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
|
---|---|---|---|---|---|---|---|---|---|---|---|
66,200 |
skip_all
|
eloqsql/libmariadb/unittest/mytap/tap.c
|
void
skip_all(char const *reason, ...)
{
va_list ap;
va_start(ap, reason);
fprintf(tapout, "1..0 # skip ");
vfprintf(tapout, reason, ap);
va_end(ap);
exit(0);
}
|
O0
|
c
|
skip_all:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
testb %al, %al
je 0x2fe25
movaps %xmm0, -0xa0(%rbp)
movaps %xmm1, -0x90(%rbp)
movaps %xmm2, -0x80(%rbp)
movaps %xmm3, -0x70(%rbp)
movaps %xmm4, -0x60(%rbp)
movaps %xmm5, -0x50(%rbp)
movaps %xmm6, -0x40(%rbp)
movaps %xmm7, -0x30(%rbp)
movq %r9, -0xa8(%rbp)
movq %r8, -0xb0(%rbp)
movq %rcx, -0xb8(%rbp)
movq %rdx, -0xc0(%rbp)
movq %rsi, -0xc8(%rbp)
movq %rdi, -0x8(%rbp)
leaq -0x20(%rbp), %rax
leaq -0xd0(%rbp), %rcx
movq %rcx, 0x10(%rax)
leaq 0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl $0x30, 0x4(%rax)
movl $0x8, (%rax)
movq 0x4e151(%rip), %rax # 0x7dfc8
movq (%rax), %rdi
leaq 0x3acb0(%rip), %rsi # 0x6ab31
movb $0x0, %al
callq 0x14650
movq 0x4e139(%rip), %rax # 0x7dfc8
movq (%rax), %rdi
movq -0x8(%rbp), %rsi
leaq -0x20(%rbp), %rdx
callq 0x145d0
leaq -0x20(%rbp), %rax
xorl %edi, %edi
callq 0x14540
nopw (%rax,%rax)
|
skip_all:
push rbp
mov rbp, rsp
sub rsp, 0D0h
test al, al
jz short loc_2FE25
movaps [rbp+var_A0], xmm0
movaps [rbp+var_90], xmm1
movaps [rbp+var_80], xmm2
movaps [rbp+var_70], xmm3
movaps [rbp+var_60], xmm4
movaps [rbp+var_50], xmm5
movaps [rbp+var_40], xmm6
movaps [rbp+var_30], xmm7
loc_2FE25:
mov [rbp+var_A8], r9
mov [rbp+var_B0], r8
mov [rbp+var_B8], rcx
mov [rbp+var_C0], rdx
mov [rbp+var_C8], rsi
mov [rbp+var_8], rdi
lea rax, [rbp+var_20]
lea rcx, [rbp+var_D0]
mov [rax+10h], rcx
lea rcx, [rbp+arg_0]
mov [rax+8], rcx
mov dword ptr [rax+4], 30h ; '0'
mov dword ptr [rax], 8
mov rax, cs:stdout_ptr
mov rdi, [rax]
lea rsi, a10Skip; "1..0 # skip "
mov al, 0
call _fprintf
mov rax, cs:stdout_ptr
mov rdi, [rax]
mov rsi, [rbp+var_8]
lea rdx, [rbp+var_20]
call _vfprintf
lea rax, [rbp+var_20]
xor edi, edi
call _exit
|
void __noreturn skip_all(
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 v15; // [rsp+0h] [rbp-D0h] BYREF
long long v16; // [rsp+8h] [rbp-C8h]
long long v17; // [rsp+10h] [rbp-C0h]
long long v18; // [rsp+18h] [rbp-B8h]
long long v19; // [rsp+20h] [rbp-B0h]
long long v20; // [rsp+28h] [rbp-A8h]
__m128 v21; // [rsp+30h] [rbp-A0h]
__m128 v22; // [rsp+40h] [rbp-90h]
__m128 v23; // [rsp+50h] [rbp-80h]
__m128 v24; // [rsp+60h] [rbp-70h]
__m128 v25; // [rsp+70h] [rbp-60h]
__m128 v26; // [rsp+80h] [rbp-50h]
__m128 v27; // [rsp+90h] [rbp-40h]
__m128 v28; // [rsp+A0h] [rbp-30h]
_DWORD v29[2]; // [rsp+B0h] [rbp-20h] BYREF
char *v30; // [rsp+B8h] [rbp-18h]
char *v31; // [rsp+C0h] [rbp-10h]
long long v32; // [rsp+C8h] [rbp-8h]
v21 = a7;
v22 = a8;
v23 = a9;
v24 = a10;
v25 = a11;
v26 = a12;
v27 = a13;
v28 = a14;
v20 = a6;
v19 = a5;
v18 = a4;
v17 = a3;
v16 = a2;
v32 = a1;
v31 = &v15;
v30 = &a15;
v29[1] = 48;
v29[0] = 8;
fprintf(stdout, "1..0 # skip ");
vfprintf(stdout, v32, v29);
exit(0LL);
}
|
skip_all:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xd0
TEST AL,AL
JZ 0x0012fe25
MOVAPS xmmword ptr [RBP + -0xa0],XMM0
MOVAPS xmmword ptr [RBP + -0x90],XMM1
MOVAPS xmmword ptr [RBP + -0x80],XMM2
MOVAPS xmmword ptr [RBP + -0x70],XMM3
MOVAPS xmmword ptr [RBP + -0x60],XMM4
MOVAPS xmmword ptr [RBP + -0x50],XMM5
MOVAPS xmmword ptr [RBP + -0x40],XMM6
MOVAPS xmmword ptr [RBP + -0x30],XMM7
LAB_0012fe25:
MOV qword ptr [RBP + -0xa8],R9
MOV qword ptr [RBP + -0xb0],R8
MOV qword ptr [RBP + -0xb8],RCX
MOV qword ptr [RBP + -0xc0],RDX
MOV qword ptr [RBP + -0xc8],RSI
MOV qword ptr [RBP + -0x8],RDI
LEA RAX,[RBP + -0x20]
LEA RCX,[RBP + -0xd0]
MOV qword ptr [RAX + 0x10],RCX
LEA RCX,[RBP + 0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV dword ptr [RAX + 0x4],0x30
MOV dword ptr [RAX],0x8
MOV RAX,qword ptr [0x0017dfc8]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x16ab31]
MOV AL,0x0
CALL 0x00114650
MOV RAX,qword ptr [0x0017dfc8]
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x8]
LEA RDX,[RBP + -0x20]
CALL 0x001145d0
LEA RAX,[RBP + -0x20]
XOR EDI,EDI
CALL 0x00114540
|
void skip_all(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6,int8 param_7,int8 param_8,
char *param_9,int8 param_10,int8 param_11,int8 param_12,
int8 param_13,int8 param_14)
{
char in_AL;
int1 local_d8 [8];
int8 local_d0;
int8 local_c8;
int8 local_c0;
int8 local_b8;
int8 local_b0;
int8 local_a8;
int8 local_98;
int8 local_88;
int8 local_78;
int8 local_68;
int8 local_58;
int8 local_48;
int8 local_38;
int4 local_28;
int4 local_24;
int1 *local_20;
int1 *local_18;
char *local_10;
if (in_AL != '\0') {
local_a8 = param_1;
local_98 = param_2;
local_88 = param_3;
local_78 = param_4;
local_68 = param_5;
local_58 = param_6;
local_48 = param_7;
local_38 = param_8;
}
local_18 = local_d8;
local_20 = &stack0x00000008;
local_24 = 0x30;
local_28 = 8;
local_d0 = param_10;
local_c8 = param_11;
local_c0 = param_12;
local_b8 = param_13;
local_b0 = param_14;
local_10 = param_9;
fprintf(*(FILE **)PTR_stdout_0017dfc8,"1..0 # skip ");
vfprintf(*(FILE **)PTR_stdout_0017dfc8,local_10,&local_28);
/* WARNING: Subroutine does not return */
exit(0);
}
|
|
66,201 |
my_copy_fix_mb2_or_mb4
|
eloqsql/strings/ctype-ucs2.c
|
static size_t
my_copy_fix_mb2_or_mb4(CHARSET_INFO *cs,
char *dst, size_t dst_length,
const char *src, size_t src_length,
size_t nchars, MY_STRCOPY_STATUS *status)
{
size_t length2, src_offset= src_length % cs->mbminlen;
my_char_copy_status_t padstatus;
if (!src_offset)
return my_copy_fix_mb(cs, dst, dst_length,
src, src_length, nchars, status);
if ((padstatus= my_copy_incomplete_char(cs, dst, dst_length,
src, src_length, nchars, TRUE)) ==
MY_CHAR_COPY_ERROR)
{
status->m_source_end_pos= status->m_well_formed_error_pos= src;
return 0;
}
length2= my_copy_fix_mb(cs, dst + cs->mbminlen, dst_length - cs->mbminlen,
src + src_offset, src_length - src_offset,
nchars - 1, status);
if (padstatus == MY_CHAR_COPY_FIXED)
status->m_well_formed_error_pos= src;
return cs->mbminlen /* The left-padded character */ + length2;
}
|
O3
|
c
|
my_copy_fix_mb2_or_mb4:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, %r12
movq %rdx, %r10
movq %rsi, %rbx
movq %rdi, %r14
movl 0x98(%rdi), %r13d
movq %r8, %rax
xorl %edx, %edx
divq %r13
testq %rdx, %rdx
je 0xc4811
cmpq %r10, %r13
seta %al
movq 0x10(%rbp), %rsi
testq %r9, %r9
sete %cl
orb %al, %cl
jne 0xc48a0
movq %rdx, %r15
movq %rsi, -0x38(%rbp)
movq %r10, -0x40(%rbp)
movq %r8, -0x48(%rbp)
movq %r9, -0x50(%rbp)
subq %rdx, %r13
movq %rbx, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x292a0
addq %rbx, %r13
movq %r13, %rdi
movq %r12, -0x58(%rbp)
movq %r12, %rsi
movq %r15, %rdx
callq 0x29110
movl 0x98(%r14), %edx
addq %rbx, %rdx
movq 0xb8(%r14), %rax
movq %r14, %rdi
movq %rbx, %rsi
callq *0xc0(%rax)
movl 0x98(%r14), %r13d
cmpl %r13d, %eax
movl %eax, -0x2c(%rbp)
jne 0xc4830
movq -0x58(%rbp), %r12
movq -0x50(%rbp), %r9
movq -0x48(%rbp), %r8
movq -0x40(%rbp), %rdx
movq -0x38(%rbp), %rsi
jmp 0xc4866
movq %r14, %rdi
movq %rbx, %rsi
movq %r10, %rdx
movq %r12, %rcx
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xb37ea
movq 0xb8(%r14), %rax
leaq (%rbx,%r13), %rcx
movl $0x3f, %esi
movq %r14, %rdi
movq %rbx, %rdx
callq *0x30(%rax)
cmpl 0x98(%r14), %eax
movq -0x58(%rbp), %r12
movq -0x50(%rbp), %r9
movq -0x48(%rbp), %r8
movq -0x40(%rbp), %rdx
movq -0x38(%rbp), %rsi
jne 0xc48a0
movl %eax, %eax
addq %rax, %rbx
subq %rax, %rdx
leaq (%r12,%r15), %rcx
subq %r15, %r8
decq %r9
movq %rsi, (%rsp)
movq %r14, %rdi
movq %rsi, %r15
movq %rbx, %rsi
callq 0xb37ea
cmpl %r13d, -0x2c(%rbp)
je 0xc4894
movq %r12, 0x8(%r15)
movl 0x98(%r14), %ecx
addq %rcx, %rax
jmp 0xc48a9
movq %r12, 0x8(%rsi)
movq %r12, (%rsi)
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
my_copy_fix_mb2_or_mb4:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov r12, rcx
mov r10, rdx
mov rbx, rsi
mov r14, rdi
mov r13d, [rdi+98h]
mov rax, r8
xor edx, edx
div r13
test rdx, rdx
jz loc_C4811
cmp r13, r10
setnbe al
mov rsi, [rbp+arg_0]
test r9, r9
setz cl
or cl, al
jnz loc_C48A0
mov r15, rdx
mov [rbp+var_38], rsi
mov [rbp+var_40], r10
mov [rbp+var_48], r8
mov [rbp+var_50], r9
sub r13, rdx
mov rdi, rbx
xor esi, esi
mov rdx, r13
call _memset
add r13, rbx
mov rdi, r13
mov [rbp+var_58], r12
mov rsi, r12
mov rdx, r15
call _memmove
mov edx, [r14+98h]
add rdx, rbx
mov rax, [r14+0B8h]
mov rdi, r14
mov rsi, rbx
call qword ptr [rax+0C0h]
mov r13d, [r14+98h]
cmp eax, r13d
mov [rbp+var_2C], eax
jnz short loc_C4830
mov r12, [rbp+var_58]
mov r9, [rbp+var_50]
mov r8, [rbp+var_48]
mov rdx, [rbp+var_40]
mov rsi, [rbp+var_38]
jmp short loc_C4866
loc_C4811:
mov rdi, r14
mov rsi, rbx
mov rdx, r10
mov rcx, r12
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp my_copy_fix_mb
loc_C4830:
mov rax, [r14+0B8h]
lea rcx, [rbx+r13]
mov esi, 3Fh ; '?'
mov rdi, r14
mov rdx, rbx
call qword ptr [rax+30h]
cmp eax, [r14+98h]
mov r12, [rbp+var_58]
mov r9, [rbp+var_50]
mov r8, [rbp+var_48]
mov rdx, [rbp+var_40]
mov rsi, [rbp+var_38]
jnz short loc_C48A0
loc_C4866:
mov eax, eax
add rbx, rax
sub rdx, rax
lea rcx, [r12+r15]
sub r8, r15
dec r9
mov [rsp+60h+var_60], rsi
mov rdi, r14
mov r15, rsi
mov rsi, rbx
call my_copy_fix_mb
cmp [rbp+var_2C], r13d
jz short loc_C4894
mov [r15+8], r12
loc_C4894:
mov ecx, [r14+98h]
add rax, rcx
jmp short loc_C48A9
loc_C48A0:
mov [rsi+8], r12
mov [rsi], r12
xor eax, eax
loc_C48A9:
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
unsigned long long my_copy_fix_mb2_or_mb4(
long long a1,
long long a2,
unsigned long long a3,
long long a4,
unsigned long long a5,
long long a6,
unsigned long long *a7)
{
unsigned long long v9; // r13
unsigned long long *v10; // rsi
unsigned long long v11; // r15
unsigned long long v12; // r13
unsigned int v13; // eax
long long v14; // r13
long long v15; // r9
unsigned long long v16; // r8
unsigned long long v17; // rdx
unsigned long long fixed; // rax
unsigned int v23; // [rsp+34h] [rbp-2Ch]
v9 = *(unsigned int *)(a1 + 152);
if ( !(a5 % v9) )
return my_copy_fix_mb(a1, a2, a3, a4, a5, a6, a7);
v10 = a7;
if ( v9 > a3 || a6 == 0 )
goto LABEL_10;
v11 = a5 % *(unsigned int *)(a1 + 152);
v12 = v9 - a5 % v9;
memset(a2, 0LL, v12);
memmove(a2 + v12, a4, v11);
v13 = (*(long long ( **)(long long, long long, long long))(*(_QWORD *)(a1 + 184) + 192LL))(
a1,
a2,
a2 + *(unsigned int *)(a1 + 152));
v14 = *(unsigned int *)(a1 + 152);
v23 = v13;
if ( v13 != (_DWORD)v14 )
{
v13 = (*(long long ( **)(long long, long long, long long, long long))(*(_QWORD *)(a1 + 184) + 48LL))(
a1,
63LL,
a2,
a2 + v14);
v15 = a6;
v16 = a5;
v17 = a3;
v10 = a7;
if ( v13 == *(_DWORD *)(a1 + 152) )
goto LABEL_7;
LABEL_10:
v10[1] = a4;
*v10 = a4;
return 0LL;
}
v15 = a6;
v16 = a5;
v17 = a3;
v10 = a7;
LABEL_7:
fixed = my_copy_fix_mb(a1, v13 + a2, v17 - v13, a4 + v11, v16 - v11, v15 - 1, v10);
if ( v23 != (_DWORD)v14 )
v10[1] = a4;
return *(unsigned int *)(a1 + 152) + fixed;
}
|
my_copy_fix_mb2_or_mb4:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV R12,RCX
MOV R10,RDX
MOV RBX,RSI
MOV R14,RDI
MOV R13D,dword ptr [RDI + 0x98]
MOV RAX,R8
XOR EDX,EDX
DIV R13
TEST RDX,RDX
JZ 0x001c4811
CMP R13,R10
SETA AL
MOV RSI,qword ptr [RBP + 0x10]
TEST R9,R9
SETZ CL
OR CL,AL
JNZ 0x001c48a0
MOV R15,RDX
MOV qword ptr [RBP + -0x38],RSI
MOV qword ptr [RBP + -0x40],R10
MOV qword ptr [RBP + -0x48],R8
MOV qword ptr [RBP + -0x50],R9
SUB R13,RDX
MOV RDI,RBX
XOR ESI,ESI
MOV RDX,R13
CALL 0x001292a0
ADD R13,RBX
MOV RDI,R13
MOV qword ptr [RBP + -0x58],R12
MOV RSI,R12
MOV RDX,R15
CALL 0x00129110
MOV EDX,dword ptr [R14 + 0x98]
ADD RDX,RBX
MOV RAX,qword ptr [R14 + 0xb8]
MOV RDI,R14
MOV RSI,RBX
CALL qword ptr [RAX + 0xc0]
MOV R13D,dword ptr [R14 + 0x98]
CMP EAX,R13D
MOV dword ptr [RBP + -0x2c],EAX
JNZ 0x001c4830
MOV R12,qword ptr [RBP + -0x58]
MOV R9,qword ptr [RBP + -0x50]
MOV R8,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x38]
JMP 0x001c4866
LAB_001c4811:
MOV RDI,R14
MOV RSI,RBX
MOV RDX,R10
MOV RCX,R12
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x001b37ea
LAB_001c4830:
MOV RAX,qword ptr [R14 + 0xb8]
LEA RCX,[RBX + R13*0x1]
MOV ESI,0x3f
MOV RDI,R14
MOV RDX,RBX
CALL qword ptr [RAX + 0x30]
CMP EAX,dword ptr [R14 + 0x98]
MOV R12,qword ptr [RBP + -0x58]
MOV R9,qword ptr [RBP + -0x50]
MOV R8,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x38]
JNZ 0x001c48a0
LAB_001c4866:
MOV EAX,EAX
ADD RBX,RAX
SUB RDX,RAX
LEA RCX,[R12 + R15*0x1]
SUB R8,R15
DEC R9
MOV qword ptr [RSP],RSI
MOV RDI,R14
MOV R15,RSI
MOV RSI,RBX
CALL 0x001b37ea
CMP dword ptr [RBP + -0x2c],R13D
JZ 0x001c4894
MOV qword ptr [R15 + 0x8],R12
LAB_001c4894:
MOV ECX,dword ptr [R14 + 0x98]
ADD RAX,RCX
JMP 0x001c48a9
LAB_001c48a0:
MOV qword ptr [RSI + 0x8],R12
MOV qword ptr [RSI],R12
XOR EAX,EAX
LAB_001c48a9:
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long my_copy_fix_mb2_or_mb4
(long param_1,void *param_2,ulong param_3,void *param_4,ulong param_5,long param_6,
int8 *param_7)
{
uint uVar1;
uint uVar2;
uint uVar3;
long lVar4;
ulong __n;
ulong uVar5;
uVar5 = (ulong)*(uint *)(param_1 + 0x98);
__n = param_5 % uVar5;
if (__n == 0) {
lVar4 = my_copy_fix_mb(param_1,param_2,param_3,param_4);
return lVar4;
}
if (param_6 != 0 && uVar5 <= param_3) {
memset(param_2,0,uVar5 - __n);
memmove((void *)((uVar5 - __n) + (long)param_2),param_4,__n);
uVar2 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))
(param_1,param_2,(ulong)*(uint *)(param_1 + 0x98) + (long)param_2);
uVar1 = *(uint *)(param_1 + 0x98);
uVar3 = uVar2;
if ((uVar2 == uVar1) ||
(uVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 0x30))
(param_1,0x3f,param_2,(long)param_2 + (ulong)uVar1),
uVar3 == *(uint *)(param_1 + 0x98))) {
lVar4 = my_copy_fix_mb(param_1,(long)param_2 + (ulong)uVar3,param_3 - uVar3,
(long)param_4 + __n,param_5 - __n,param_6 + -1,param_7);
if (uVar2 != uVar1) {
param_7[1] = param_4;
}
return lVar4 + (ulong)*(uint *)(param_1 + 0x98);
}
}
param_7[1] = param_4;
*param_7 = param_4;
return 0;
}
|
|
66,202 |
quantize_q4_1
|
ngxson[P]ggml-easy/ggml/src/ggml-quants.c
|
size_t quantize_q4_1(const float * GGML_RESTRICT src, void * GGML_RESTRICT dst, int64_t nrow, int64_t n_per_row, const float * quant_weights) {
if (!quant_weights) {
quantize_row_q4_1_ref(src, dst, (int64_t)nrow*n_per_row);
return nrow * ggml_row_size(GGML_TYPE_Q4_1, n_per_row);
}
size_t row_size = ggml_row_size(GGML_TYPE_Q4_1, n_per_row);
char * qrow = (char *)dst;
for (int64_t row = 0; row < nrow; ++row) {
quantize_row_q4_1_impl(src, (block_q4_1*)qrow, n_per_row, quant_weights);
src += n_per_row;
qrow += row_size;
}
return nrow * row_size;
}
|
O3
|
c
|
quantize_q4_1:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp # imm = 0x128
movq %rcx, %r14
movq %rdx, %rbx
movq %rsi, %rbp
movq %rdi, %r12
movq %r8, 0x30(%rsp)
testq %r8, %r8
je 0x3168a
movl $0x3, %edi
movq %r14, %rsi
callq 0x17840
testq %rbx, %rbx
jle 0x316a9
cvtsi2ss %r14, %xmm0
movss %xmm0, 0x1c(%rsp)
movq %r14, %rcx
shrq $0x5, %rcx
movq %rcx, 0x58(%rsp)
leaq (,%r14,4), %rcx
movq %rcx, 0x38(%rsp)
xorl %ecx, %ecx
movq %rbx, 0x48(%rsp)
movq %r14, 0x28(%rsp)
movq %rax, 0x40(%rsp)
movq %rcx, 0x50(%rsp)
movq %r12, 0x10(%rsp)
testq %r14, %r14
jle 0x3165b
xorps %xmm1, %xmm1
xorl %eax, %eax
movq 0x28(%rsp), %rcx
movq 0x10(%rsp), %rdx
movss (%rdx,%rax,4), %xmm0
mulss %xmm0, %xmm0
addss %xmm0, %xmm1
incq %rax
cmpq %rax, %rcx
jne 0x31492
cmpq $0x20, %rcx
jl 0x3165b
divss 0x1c(%rsp), %xmm1
movq 0x30(%rsp), %rbx
movq 0x10(%rsp), %r12
xorl %r14d, %r14d
movss %xmm1, 0xc(%rsp)
movq %r14, %r13
shlq $0x7, %r13
addq 0x10(%rsp), %r13
xorl %r15d, %r15d
movss (%rbx,%r15,4), %xmm2
movss (%r12,%r15,4), %xmm0
mulss %xmm0, %xmm0
addss %xmm1, %xmm0
ucomiss 0x1d620(%rip), %xmm0 # 0x4eb14
jb 0x314fc
sqrtss %xmm0, %xmm0
jmp 0x31513
movss %xmm2, 0x20(%rsp)
callq 0x17f20
movss 0x20(%rsp), %xmm2
movss 0xc(%rsp), %xmm1
mulss %xmm0, %xmm2
movss %xmm2, 0xa0(%rsp,%r15,4)
incq %r15
cmpq $0x20, %r15
jne 0x314d9
leaq 0x80(%rsp), %rax
movq %rax, (%rsp)
movl $0x20, %edi
movl $0xf, %esi
movq %r13, %rdx
leaq 0xa0(%rsp), %rcx
leaq 0x60(%rsp), %r8
leaq 0x24(%rsp), %r9
callq 0x3b343
movss 0x24(%rsp), %xmm2
movaps %xmm0, %xmm1
unpcklps %xmm2, %xmm0 # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
movaps 0x18b13(%rip), %xmm3 # 0x4a080
xorps %xmm3, %xmm2
unpcklps %xmm2, %xmm1 # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movaps %xmm1, %xmm2
paddd %xmm1, %xmm2
pxor %xmm3, %xmm2
movdqa %xmm2, %xmm3
pcmpgtd 0x1d046(%rip), %xmm3 # 0x4e5d0
movdqa %xmm1, %xmm4
pand 0x1d04a(%rip), %xmm4 # 0x4e5e0
paddd 0x1d052(%rip), %xmm4 # 0x4e5f0
pand %xmm3, %xmm4
pandn 0x1d056(%rip), %xmm3 # 0x4e600
por %xmm4, %xmm3
andps 0x18a6b(%rip), %xmm0 # 0x4a020
mulps 0x1cff4(%rip), %xmm0 # 0x4e5b0
mulps 0x1cffd(%rip), %xmm0 # 0x4e5c0
addps %xmm0, %xmm3
movaps %xmm3, %xmm0
psrld $0xd, %xmm0
pand 0x1d03a(%rip), %xmm0 # 0x4e610
andps 0x1d043(%rip), %xmm3 # 0x4e620
paddd %xmm0, %xmm3
pcmpgtd 0x1d057(%rip), %xmm2 # 0x4e640
movdqa %xmm2, %xmm0
pandn %xmm3, %xmm0
psrld $0x10, %xmm1
pand 0x1d032(%rip), %xmm1 # 0x4e630
pand 0x1d04a(%rip), %xmm2 # 0x4e650
por %xmm1, %xmm2
movss 0xc(%rsp), %xmm1
por %xmm0, %xmm2
leaq (%r14,%r14,4), %rax
pshuflw $0xe8, %xmm2, %xmm0 # xmm0 = xmm2[0,2,2,3,4,5,6,7]
movd %xmm0, (%rbp,%rax,4)
movdqa 0x70(%rsp), %xmm0
psllw $0x4, %xmm0
pand 0x1cf6a(%rip), %xmm0 # 0x4e5a0
por 0x60(%rsp), %xmm0
movdqu %xmm0, 0x4(%rbp,%rax,4)
incq %r14
movl $0x80, %eax
addq %rax, %r12
addq %rax, %rbx
cmpq 0x58(%rsp), %r14
jne 0x314ca
movq 0x10(%rsp), %r12
addq 0x38(%rsp), %r12
movq 0x40(%rsp), %rax
addq %rax, %rbp
movq 0x50(%rsp), %rcx
incq %rcx
movq 0x48(%rsp), %rbx
cmpq %rbx, %rcx
movq 0x28(%rsp), %r14
jne 0x31470
jmp 0x316a9
movq %r14, %rdx
imulq %rbx, %rdx
movq %r12, %rdi
movq %rbp, %rsi
callq 0x17be0
movl $0x3, %edi
movq %r14, %rsi
callq 0x17840
imulq %rbx, %rax
addq $0x128, %rsp # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
quantize_q4_1:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 128h
mov r14, rcx
mov rbx, rdx
mov rbp, rsi
mov r12, rdi
mov [rsp+158h+var_128], r8
test r8, r8
jz loc_3168A
mov edi, 3
mov rsi, r14
call _ggml_row_size
test rbx, rbx
jle loc_316A9
cvtsi2ss xmm0, r14
movss [rsp+158h+var_13C], xmm0
mov rcx, r14
shr rcx, 5
mov [rsp+158h+var_100], rcx
lea rcx, ds:0[r14*4]
mov [rsp+158h+var_120], rcx
xor ecx, ecx
mov [rsp+158h+var_110], rbx
mov [rsp+158h+var_130], r14
mov [rsp+158h+var_118], rax
loc_31470:
mov [rsp+158h+var_108], rcx
mov [rsp+158h+var_148], r12
test r14, r14
jle loc_3165B
xorps xmm1, xmm1
xor eax, eax
mov rcx, [rsp+158h+var_130]
mov rdx, [rsp+158h+var_148]
loc_31492:
movss xmm0, dword ptr [rdx+rax*4]
mulss xmm0, xmm0
addss xmm1, xmm0
inc rax
cmp rcx, rax
jnz short loc_31492
cmp rcx, 20h ; ' '
jl loc_3165B
divss xmm1, [rsp+158h+var_13C]
mov rbx, [rsp+158h+var_128]
mov r12, [rsp+158h+var_148]
xor r14d, r14d
movss [rsp+158h+var_14C], xmm1
loc_314CA:
mov r13, r14
shl r13, 7
add r13, [rsp+158h+var_148]
xor r15d, r15d
loc_314D9:
movss xmm2, dword ptr [rbx+r15*4]
movss xmm0, dword ptr [r12+r15*4]
mulss xmm0, xmm0
addss xmm0, xmm1
ucomiss xmm0, cs:dword_4EB14
jb short loc_314FC
sqrtss xmm0, xmm0
jmp short loc_31513
loc_314FC:
movss [rsp+158h+var_138], xmm2
call _sqrtf
movss xmm2, [rsp+158h+var_138]
movss xmm1, [rsp+158h+var_14C]
loc_31513:
mulss xmm2, xmm0
movss [rsp+r15*4+158h+var_B8], xmm2
inc r15
cmp r15, 20h ; ' '
jnz short loc_314D9
lea rax, [rsp+158h+var_D8]
mov [rsp+158h+var_158], rax
mov edi, 20h ; ' '
mov esi, 0Fh
mov rdx, r13
lea rcx, [rsp+158h+var_B8]
lea r8, [rsp+158h+var_F8]
lea r9, [rsp+158h+var_134]
call make_qkx3_quants
movss xmm2, [rsp+158h+var_134]
movaps xmm1, xmm0
unpcklps xmm0, xmm2
movaps xmm3, cs:xmmword_4A080
xorps xmm2, xmm3
unpcklps xmm1, xmm2
movaps xmm2, xmm1
paddd xmm2, xmm1
pxor xmm2, xmm3
movdqa xmm3, xmm2
pcmpgtd xmm3, cs:xmmword_4E5D0
movdqa xmm4, xmm1
pand xmm4, cs:xmmword_4E5E0
paddd xmm4, cs:xmmword_4E5F0
pand xmm4, xmm3
pandn xmm3, cs:xmmword_4E600
por xmm3, xmm4
andps xmm0, cs:xmmword_4A020
mulps xmm0, cs:xmmword_4E5B0
mulps xmm0, cs:xmmword_4E5C0
addps xmm3, xmm0
movaps xmm0, xmm3
psrld xmm0, 0Dh
pand xmm0, cs:xmmword_4E610
andps xmm3, cs:xmmword_4E620
paddd xmm3, xmm0
pcmpgtd xmm2, cs:xmmword_4E640
movdqa xmm0, xmm2
pandn xmm0, xmm3
psrld xmm1, 10h
pand xmm1, cs:xmmword_4E630
pand xmm2, cs:xmmword_4E650
por xmm2, xmm1
movss xmm1, [rsp+158h+var_14C]
por xmm2, xmm0
lea rax, [r14+r14*4]
pshuflw xmm0, xmm2, 0E8h
movd dword ptr [rbp+rax*4+0], xmm0
movdqa xmm0, [rsp+158h+var_E8]
psllw xmm0, 4
pand xmm0, cs:xmmword_4E5A0
por xmm0, [rsp+158h+var_F8]
movdqu xmmword ptr [rbp+rax*4+4], xmm0
inc r14
mov eax, 80h
add r12, rax
add rbx, rax
cmp r14, [rsp+158h+var_100]
jnz loc_314CA
loc_3165B:
mov r12, [rsp+158h+var_148]
add r12, [rsp+158h+var_120]
mov rax, [rsp+158h+var_118]
add rbp, rax
mov rcx, [rsp+158h+var_108]
inc rcx
mov rbx, [rsp+158h+var_110]
cmp rcx, rbx
mov r14, [rsp+158h+var_130]
jnz loc_31470
jmp short loc_316A9
loc_3168A:
mov rdx, r14
imul rdx, rbx
mov rdi, r12
mov rsi, rbp
call _quantize_row_q4_1_ref
mov edi, 3
mov rsi, r14
call _ggml_row_size
loc_316A9:
imul rax, rbx
add rsp, 128h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
unsigned long long quantize_q4_1(long long a1, long long a2, long long a3, long long a4, long long a5)
{
long long v5; // r14
long long v6; // rbx
long long v7; // rbp
long long v8; // r12
unsigned long long v9; // rax
long long v10; // rcx
float v11; // xmm1_4
long long v12; // rax
float v13; // xmm1_4
long long v14; // rbx
long long v15; // r14
long long i; // r15
float v17; // xmm2_4
__m128 v18; // xmm0
__m128i v19; // xmm1
__m128i v20; // xmm2
__m128i v21; // xmm3
__m128 v22; // xmm3
__m128i v23; // xmm2
__m128i v24; // xmm0
__m128i v25; // xmm2
long long v26; // rax
float v28; // [rsp+Ch] [rbp-14Ch]
long long v29; // [rsp+10h] [rbp-148h]
float v30; // [rsp+1Ch] [rbp-13Ch]
float v31; // [rsp+20h] [rbp-138h]
unsigned int v32; // [rsp+24h] [rbp-134h] BYREF
long long v33; // [rsp+28h] [rbp-130h]
long long v34; // [rsp+30h] [rbp-128h]
long long v35; // [rsp+38h] [rbp-120h]
unsigned long long v36; // [rsp+40h] [rbp-118h]
long long v37; // [rsp+48h] [rbp-110h]
long long v38; // [rsp+50h] [rbp-108h]
unsigned long long v39; // [rsp+58h] [rbp-100h]
__m128i v40; // [rsp+60h] [rbp-F8h] BYREF
__m128i v41; // [rsp+70h] [rbp-E8h] BYREF
char v42[32]; // [rsp+80h] [rbp-D8h] BYREF
float v43[46]; // [rsp+A0h] [rbp-B8h] BYREF
v5 = a4;
v6 = a3;
v7 = a2;
v8 = a1;
v34 = a5;
if ( a5 )
{
v9 = ggml_row_size(3u, a4);
if ( v6 > 0 )
{
v30 = (float)(int)v5;
v39 = (unsigned long long)v5 >> 5;
v35 = 4 * v5;
v10 = 0LL;
v37 = v6;
v33 = v5;
v36 = v9;
do
{
v38 = v10;
v29 = v8;
if ( v5 > 0 )
{
v11 = 0.0;
v12 = 0LL;
do
{
v11 = v11 + (float)(*(float *)(v8 + 4 * v12) * *(float *)(v8 + 4 * v12));
++v12;
}
while ( v33 != v12 );
if ( v33 >= 32 )
{
v13 = v11 / v30;
v14 = v34;
v15 = 0LL;
v28 = v13;
do
{
for ( i = 0LL; i != 32; ++i )
{
v17 = *(float *)(v14 + 4 * i);
v18 = (__m128)*(unsigned int *)(v8 + 4 * i);
v18.m128_f32[0] = (float)(v18.m128_f32[0] * v18.m128_f32[0]) + v13;
if ( v18.m128_f32[0] < 0.0 )
{
v31 = *(float *)(v14 + 4 * i);
*(double *)v18.m128_u64 = sqrtf(*(double *)v18.m128_u64);
v17 = v31;
v13 = v28;
}
else
{
v18.m128_f32[0] = fsqrt(v18.m128_f32[0]);
}
v43[i] = v17 * v18.m128_f32[0];
}
*(double *)v18.m128_u64 = make_qkx3_quants(
32,
15,
(int)v29 + ((_DWORD)v15 << 7),
(unsigned int)v43,
(unsigned int)&v40,
(unsigned int)&v32,
(long long)v42);
v19 = (__m128i)_mm_unpacklo_ps(v18, _mm_xor_ps((__m128)v32, (__m128)xmmword_4A080));
v20 = _mm_xor_si128(_mm_add_epi32(v19, v19), (__m128i)xmmword_4A080);
v21 = _mm_cmpgt_epi32(v20, (__m128i)xmmword_4E5D0);
v22 = _mm_add_ps(
(__m128)_mm_or_si128(
_mm_andnot_si128(v21, (__m128i)xmmword_4E600),
_mm_and_si128(
_mm_add_epi32(_mm_and_si128(v19, (__m128i)xmmword_4E5E0), (__m128i)xmmword_4E5F0),
v21)),
_mm_mul_ps(
_mm_mul_ps(
_mm_and_ps(_mm_unpacklo_ps(v18, (__m128)v32), (__m128)xmmword_4A020),
(__m128)xmmword_4E5B0),
(__m128)xmmword_4E5C0));
v23 = _mm_cmpgt_epi32(v20, (__m128i)xmmword_4E640);
v24 = _mm_andnot_si128(
v23,
_mm_add_epi32(
(__m128i)_mm_and_ps(v22, (__m128)xmmword_4E620),
_mm_and_si128(_mm_srli_epi32((__m128i)v22, 0xDu), (__m128i)xmmword_4E610)));
v25 = _mm_or_si128(
_mm_and_si128(v23, (__m128i)xmmword_4E650),
_mm_and_si128(_mm_srli_epi32(v19, 0x10u), (__m128i)xmmword_4E630));
v13 = v28;
v26 = 5 * v15;
*(_DWORD *)(v7 + 4 * v26) = _mm_cvtsi128_si32(_mm_shufflelo_epi16(_mm_or_si128(v25, v24), 232));
*(__m128i *)(v7 + 4 * v26 + 4) = _mm_or_si128(
_mm_and_si128(
_mm_slli_epi16(_mm_load_si128(&v41), 4u),
(__m128i)xmmword_4E5A0),
v40);
++v15;
v8 += 128LL;
v14 += 128LL;
}
while ( v15 != v39 );
}
}
v8 = v35 + v29;
v9 = v36;
v7 += v36;
v10 = v38 + 1;
v6 = v37;
v5 = v33;
}
while ( v38 + 1 != v37 );
}
}
else
{
quantize_row_q4_1_ref(a1, a2, a3 * a4);
v9 = ggml_row_size(3u, v5);
}
return v6 * v9;
}
|
quantize_q4_1:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x128
MOV R14,RCX
MOV RBX,RDX
MOV RBP,RSI
MOV R12,RDI
MOV qword ptr [RSP + 0x30],R8
TEST R8,R8
JZ 0x0013168a
MOV EDI,0x3
MOV RSI,R14
CALL 0x00117840
TEST RBX,RBX
JLE 0x001316a9
CVTSI2SS XMM0,R14
MOVSS dword ptr [RSP + 0x1c],XMM0
MOV RCX,R14
SHR RCX,0x5
MOV qword ptr [RSP + 0x58],RCX
LEA RCX,[R14*0x4]
MOV qword ptr [RSP + 0x38],RCX
XOR ECX,ECX
MOV qword ptr [RSP + 0x48],RBX
MOV qword ptr [RSP + 0x28],R14
MOV qword ptr [RSP + 0x40],RAX
LAB_00131470:
MOV qword ptr [RSP + 0x50],RCX
MOV qword ptr [RSP + 0x10],R12
TEST R14,R14
JLE 0x0013165b
XORPS XMM1,XMM1
XOR EAX,EAX
MOV RCX,qword ptr [RSP + 0x28]
MOV RDX,qword ptr [RSP + 0x10]
LAB_00131492:
MOVSS XMM0,dword ptr [RDX + RAX*0x4]
MULSS XMM0,XMM0
ADDSS XMM1,XMM0
INC RAX
CMP RCX,RAX
JNZ 0x00131492
CMP RCX,0x20
JL 0x0013165b
DIVSS XMM1,dword ptr [RSP + 0x1c]
MOV RBX,qword ptr [RSP + 0x30]
MOV R12,qword ptr [RSP + 0x10]
XOR R14D,R14D
MOVSS dword ptr [RSP + 0xc],XMM1
LAB_001314ca:
MOV R13,R14
SHL R13,0x7
ADD R13,qword ptr [RSP + 0x10]
XOR R15D,R15D
LAB_001314d9:
MOVSS XMM2,dword ptr [RBX + R15*0x4]
MOVSS XMM0,dword ptr [R12 + R15*0x4]
MULSS XMM0,XMM0
ADDSS XMM0,XMM1
UCOMISS XMM0,dword ptr [0x0014eb14]
JC 0x001314fc
SQRTSS XMM0,XMM0
JMP 0x00131513
LAB_001314fc:
MOVSS dword ptr [RSP + 0x20],XMM2
CALL 0x00117f20
MOVSS XMM2,dword ptr [RSP + 0x20]
MOVSS XMM1,dword ptr [RSP + 0xc]
LAB_00131513:
MULSS XMM2,XMM0
MOVSS dword ptr [RSP + R15*0x4 + 0xa0],XMM2
INC R15
CMP R15,0x20
JNZ 0x001314d9
LEA RAX,[RSP + 0x80]
MOV qword ptr [RSP],RAX
MOV EDI,0x20
MOV ESI,0xf
MOV RDX,R13
LEA RCX,[RSP + 0xa0]
LEA R8,[RSP + 0x60]
LEA R9,[RSP + 0x24]
CALL 0x0013b343
MOVSS XMM2,dword ptr [RSP + 0x24]
MOVAPS XMM1,XMM0
UNPCKLPS XMM0,XMM2
MOVAPS XMM3,xmmword ptr [0x0014a080]
XORPS XMM2,XMM3
UNPCKLPS XMM1,XMM2
MOVAPS XMM2,XMM1
PADDD XMM2,XMM1
PXOR XMM2,XMM3
MOVDQA XMM3,XMM2
PCMPGTD XMM3,xmmword ptr [0x0014e5d0]
MOVDQA XMM4,XMM1
PAND XMM4,xmmword ptr [0x0014e5e0]
PADDD XMM4,xmmword ptr [0x0014e5f0]
PAND XMM4,XMM3
PANDN XMM3,xmmword ptr [0x0014e600]
POR XMM3,XMM4
ANDPS XMM0,xmmword ptr [0x0014a020]
MULPS XMM0,xmmword ptr [0x0014e5b0]
MULPS XMM0,xmmword ptr [0x0014e5c0]
ADDPS XMM3,XMM0
MOVAPS XMM0,XMM3
PSRLD XMM0,0xd
PAND XMM0,xmmword ptr [0x0014e610]
ANDPS XMM3,xmmword ptr [0x0014e620]
PADDD XMM3,XMM0
PCMPGTD XMM2,xmmword ptr [0x0014e640]
MOVDQA XMM0,XMM2
PANDN XMM0,XMM3
PSRLD XMM1,0x10
PAND XMM1,xmmword ptr [0x0014e630]
PAND XMM2,xmmword ptr [0x0014e650]
POR XMM2,XMM1
MOVSS XMM1,dword ptr [RSP + 0xc]
POR XMM2,XMM0
LEA RAX,[R14 + R14*0x4]
PSHUFLW XMM0,XMM2,0xe8
MOVD dword ptr [RBP + RAX*0x4],XMM0
MOVDQA XMM0,xmmword ptr [RSP + 0x70]
PSLLW XMM0,0x4
PAND XMM0,xmmword ptr [0x0014e5a0]
POR XMM0,xmmword ptr [RSP + 0x60]
MOVDQU xmmword ptr [RBP + RAX*0x4 + 0x4],XMM0
INC R14
MOV EAX,0x80
ADD R12,RAX
ADD RBX,RAX
CMP R14,qword ptr [RSP + 0x58]
JNZ 0x001314ca
LAB_0013165b:
MOV R12,qword ptr [RSP + 0x10]
ADD R12,qword ptr [RSP + 0x38]
MOV RAX,qword ptr [RSP + 0x40]
ADD RBP,RAX
MOV RCX,qword ptr [RSP + 0x50]
INC RCX
MOV RBX,qword ptr [RSP + 0x48]
CMP RCX,RBX
MOV R14,qword ptr [RSP + 0x28]
JNZ 0x00131470
JMP 0x001316a9
LAB_0013168a:
MOV RDX,R14
IMUL RDX,RBX
MOV RDI,R12
MOV RSI,RBP
CALL 0x00117be0
MOV EDI,0x3
MOV RSI,R14
CALL 0x00117840
LAB_001316a9:
IMUL RAX,RBX
ADD RSP,0x128
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
long quantize_q4_1(long param_1,long param_2,long param_3,ulong param_4,long param_5)
{
ulong uVar1;
long lVar2;
long lVar3;
long lVar4;
float fVar5;
uint extraout_XMM0_Da;
uint extraout_XMM0_Db;
int1 auVar6 [16];
float fVar7;
uint uVar8;
uint uVar9;
uint uVar11;
uint uVar12;
uint uVar13;
int1 auVar10 [16];
uint uVar14;
float fVar15;
uint uVar17;
uint uVar18;
float fVar19;
uint uVar20;
float fVar21;
int1 auVar16 [16];
uint local_134;
ulong local_130;
long local_128;
long local_120;
long local_118;
long local_110;
long local_108;
ulong local_100;
int1 local_f8 [16];
int1 local_e8 [16];
int1 local_d8 [32];
float local_b8 [34];
local_128 = param_5;
if (param_5 == 0) {
quantize_row_q4_1_ref(param_1,param_2,param_4 * param_3);
local_118 = ggml_row_size(3,param_4);
}
else {
local_118 = ggml_row_size(3,param_4);
if (0 < param_3) {
local_100 = param_4 >> 5;
local_120 = param_4 * 4;
local_108 = 0;
local_130 = param_4;
local_110 = param_3;
do {
if (0 < (long)local_130) {
fVar7 = 0.0;
uVar1 = 0;
do {
fVar15 = *(float *)(param_1 + uVar1 * 4);
fVar7 = fVar7 + fVar15 * fVar15;
uVar1 = uVar1 + 1;
} while (local_130 != uVar1);
if (0x1f < (long)local_130) {
uVar1 = 0;
lVar2 = local_128;
lVar3 = param_1;
do {
lVar4 = 0;
do {
fVar15 = *(float *)(lVar2 + lVar4 * 4);
fVar5 = *(float *)(lVar3 + lVar4 * 4);
fVar5 = fVar5 * fVar5 + fVar7 / (float)(long)param_4;
if (fVar5 < DAT_0014eb14) {
fVar5 = sqrtf(fVar5);
}
else {
fVar5 = SQRT(fVar5);
}
local_b8[lVar4] = fVar15 * fVar5;
lVar4 = lVar4 + 1;
} while (lVar4 != 0x20);
make_qkx3_quants(0x20,0xf,uVar1 * 0x80 + param_1,local_b8,local_f8,&local_134,local_d8
);
uVar8 = local_134 ^ _DAT_0014a080;
uVar9 = extraout_XMM0_Da * 2 ^ _DAT_0014a080;
uVar11 = uVar8 * 2 ^ _UNK_0014a084;
uVar12 = extraout_XMM0_Db * 2 ^ _UNK_0014a088;
uVar13 = _UNK_0014a084 * 2 ^ _UNK_0014a08c;
uVar14 = -(uint)(_DAT_0014e5d0 < (int)uVar9);
uVar17 = -(uint)(_UNK_0014e5d4 < (int)uVar11);
uVar18 = -(uint)(_UNK_0014e5d8 < (int)uVar12);
uVar20 = -(uint)(_UNK_0014e5dc < (int)uVar13);
fVar15 = (float)(~uVar14 & _DAT_0014e600 |
(extraout_XMM0_Da & _DAT_0014e5e0) + _DAT_0014e5f0 & uVar14) +
(float)(extraout_XMM0_Da & _DAT_0014a020) * _DAT_0014e5b0 * _DAT_0014e5c0;
fVar5 = (float)(~uVar17 & _UNK_0014e604 |
(uVar8 & _UNK_0014e5e4) + _UNK_0014e5f4 & uVar17) +
(float)(local_134 & _UNK_0014a024) * _UNK_0014e5b4 * _UNK_0014e5c4;
fVar19 = (float)(~uVar18 & _UNK_0014e608 |
(extraout_XMM0_Db & _UNK_0014e5e8) + _UNK_0014e5f8 & uVar18) +
(float)(extraout_XMM0_Db & _UNK_0014a028) * _UNK_0014e5b8 * _UNK_0014e5c8;
fVar21 = (float)(~uVar20 & _UNK_0014e60c |
(_UNK_0014a084 & _UNK_0014e5ec) + _UNK_0014e5fc & uVar20) +
_UNK_0014e5bc * 0.0 * _UNK_0014e5cc;
auVar16._0_4_ = ((uint)fVar15 & _DAT_0014e620) + ((uint)fVar15 >> 0xd & _DAT_0014e610)
;
auVar16._4_4_ = ((uint)fVar5 & _UNK_0014e624) + ((uint)fVar5 >> 0xd & _UNK_0014e614);
auVar16._8_4_ = ((uint)fVar19 & _UNK_0014e628) + ((uint)fVar19 >> 0xd & _UNK_0014e618)
;
auVar16._12_4_ =
((uint)fVar21 & _UNK_0014e62c) + ((uint)fVar21 >> 0xd & _UNK_0014e61c);
auVar10._0_4_ = -(uint)(_DAT_0014e640 < (int)uVar9);
auVar10._4_4_ = -(uint)(_UNK_0014e644 < (int)uVar11);
auVar10._8_4_ = -(uint)(_UNK_0014e648 < (int)uVar12);
auVar10._12_4_ = -(uint)(_UNK_0014e64c < (int)uVar13);
auVar6._0_4_ = extraout_XMM0_Da >> 0x10;
auVar6._4_4_ = uVar8 >> 0x10;
auVar6._8_4_ = extraout_XMM0_Db >> 0x10;
auVar6._12_4_ = _UNK_0014a084 >> 0x10;
auVar6 = pshuflw(~auVar10 & auVar16,
auVar10 & _DAT_0014e650 | auVar6 & _DAT_0014e630 | ~auVar10 & auVar16
,0xe8);
*(int *)(param_2 + uVar1 * 0x14) = auVar6._0_4_;
auVar6 = psllw(local_e8,4);
*(int1 (*) [16])(param_2 + 4 + uVar1 * 0x14) = auVar6 & _DAT_0014e5a0 | local_f8
;
uVar1 = uVar1 + 1;
lVar3 = lVar3 + 0x80;
lVar2 = lVar2 + 0x80;
} while (uVar1 != local_100);
}
}
param_1 = param_1 + local_120;
param_2 = param_2 + local_118;
local_108 = local_108 + 1;
param_3 = local_110;
} while (local_108 != local_110);
}
}
return local_118 * param_3;
}
|
|
66,203 |
Catch::operator<(Catch::TestCaseInfo const&, Catch::TestCaseInfo const&)
|
AlayaLite/build_O3/_deps/libcoro-src/test/catch_amalgamated.cpp
|
bool operator<( TestCaseInfo const& lhs, TestCaseInfo const& rhs ) {
// We want to avoid redoing the string comparisons multiple times,
// so we store the result of a three-way comparison before using
// it in the actual comparison logic.
const auto cmpName = lhs.name.compare( rhs.name );
if ( cmpName != 0 ) {
return cmpName < 0;
}
const auto cmpClassName = lhs.className.compare( rhs.className );
if ( cmpClassName != 0 ) {
return cmpClassName < 0;
}
return lhs.tags < rhs.tags;
}
|
O3
|
cpp
|
Catch::operator<(Catch::TestCaseInfo const&, Catch::TestCaseInfo const&):
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x77252
testl %eax, %eax
je 0x5722b
movl %eax, %ebp
jmp 0x5725d
movq 0x20(%rbx), %rsi
movq 0x28(%rbx), %rdx
movq 0x20(%r14), %rdi
movq 0x28(%r14), %rax
xorl %ecx, %ecx
cmpq %rdx, %rax
seta %cl
cmovbq %rax, %rdx
movl $0xffffffff, %ebp # imm = 0xFFFFFFFF
cmovael %ecx, %ebp
callq 0x172f0
testl %eax, %eax
cmovnel %eax, %ebp
testl %ebp, %ebp
je 0x57267
shrl $0x1f, %ebp
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
movq 0x50(%r14), %rdi
movq 0x58(%r14), %rsi
movq 0x50(%rbx), %rdx
movq 0x58(%rbx), %rcx
callq 0x81f39
movl %eax, %ebp
shrb $0x7, %bpl
jmp 0x57260
|
_ZN5CatchltERKNS_12TestCaseInfoES2_:
push rbp
push r14
push rbx
mov rbx, rsi
mov r14, rdi
call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareERKS4_; std::string::compare(std::string const&)
test eax, eax
jz short loc_5722B
mov ebp, eax
jmp short loc_5725D
loc_5722B:
mov rsi, [rbx+20h]
mov rdx, [rbx+28h]
mov rdi, [r14+20h]
mov rax, [r14+28h]
xor ecx, ecx
cmp rax, rdx
setnbe cl
cmovb rdx, rax
mov ebp, 0FFFFFFFFh
cmovnb ebp, ecx
call _strncmp
test eax, eax
cmovnz ebp, eax
test ebp, ebp
jz short loc_57267
loc_5725D:
shr ebp, 1Fh
loc_57260:
mov eax, ebp
pop rbx
pop r14
pop rbp
retn
loc_57267:
mov rdi, [r14+50h]
mov rsi, [r14+58h]
mov rdx, [rbx+50h]
mov rcx, [rbx+58h]
call _ZSt33lexicographical_compare_three_wayIN9__gnu_cxx17__normal_iteratorIPKN5Catch3TagESt6vectorIS3_SaIS3_EEEES9_NSt8__detail10_Synth3wayEEDTclfp3_defp_defp1_EET_SD_T0_SE_T1_
mov ebp, eax
shr bpl, 7
jmp short loc_57260
|
long long Catch::operator<(_QWORD *a1, _QWORD *a2)
{
unsigned int v4; // eax
unsigned int v5; // ebp
long long v6; // rsi
unsigned long long v7; // rdx
long long v8; // rdi
unsigned long long v9; // rax
bool v10; // cf
_BOOL8 v11; // rcx
unsigned int v12; // eax
unsigned int v13; // ebp
v4 = std::string::compare();
if ( v4 )
{
v5 = v4;
}
else
{
v6 = a2[4];
v7 = a2[5];
v8 = a1[4];
v9 = a1[5];
v10 = v9 < v7;
v11 = v9 > v7;
if ( v9 < v7 )
v7 = a1[5];
v5 = -1;
if ( !v10 )
v5 = v11;
v12 = strncmp(v8, v6, v7, v11);
if ( v12 )
v5 = v12;
if ( !v5 )
{
v13 = std::lexicographical_compare_three_way<__gnu_cxx::__normal_iterator<Catch::Tag const*,std::vector<Catch::Tag>>,__gnu_cxx::__normal_iterator<Catch::Tag const*,std::vector<Catch::Tag>>,std::__detail::_Synth3way>(
a1[10],
a1[11],
a2[10],
a2[11]);
LOBYTE(v13) = (unsigned __int8)v13 >> 7;
return v13;
}
}
return v5 >> 31;
}
|
operator<:
PUSH RBP
PUSH R14
PUSH RBX
MOV RBX,RSI
MOV R14,RDI
CALL 0x00177252
TEST EAX,EAX
JZ 0x0015722b
MOV EBP,EAX
JMP 0x0015725d
LAB_0015722b:
MOV RSI,qword ptr [RBX + 0x20]
MOV RDX,qword ptr [RBX + 0x28]
MOV RDI,qword ptr [R14 + 0x20]
MOV RAX,qword ptr [R14 + 0x28]
XOR ECX,ECX
CMP RAX,RDX
SETA CL
CMOVC RDX,RAX
MOV EBP,0xffffffff
CMOVNC EBP,ECX
CALL 0x001172f0
TEST EAX,EAX
CMOVNZ EBP,EAX
TEST EBP,EBP
JZ 0x00157267
LAB_0015725d:
SHR EBP,0x1f
LAB_00157260:
MOV EAX,EBP
POP RBX
POP R14
POP RBP
RET
LAB_00157267:
MOV RDI,qword ptr [R14 + 0x50]
MOV RSI,qword ptr [R14 + 0x58]
MOV RDX,qword ptr [RBX + 0x50]
MOV RCX,qword ptr [RBX + 0x58]
CALL 0x00181f39
MOV EBP,EAX
SHR BPL,0x7
JMP 0x00157260
|
/* Catch::TEMPNAMEPLACEHOLDERVALUE(Catch::TestCaseInfo const&, Catch::TestCaseInfo const&) */
uint Catch::operator<(TestCaseInfo *param_1,TestCaseInfo *param_2)
{
ulong uVar1;
ulong uVar2;
byte bVar3;
uint uVar4;
uint uVar5;
ulong __n;
bool bVar6;
uVar4 = std::__cxx11::string::compare((string *)param_1,(string *)param_2);
if (uVar4 == 0) {
uVar1 = *(ulong *)(param_2 + 0x28);
uVar2 = *(ulong *)(param_1 + 0x28);
bVar6 = uVar2 < uVar1;
__n = uVar1;
if (bVar6) {
__n = uVar2;
}
uVar4 = 0xffffffff;
if (!bVar6) {
uVar4 = (uint)(!bVar6 && uVar2 != uVar1);
}
uVar5 = strncmp(*(char **)(param_1 + 0x20),*(char **)(param_2 + 0x20),__n);
if (uVar5 != 0) {
uVar4 = uVar5;
}
if (uVar4 == 0) {
bVar3 = std::
lexicographical_compare_three_way<__gnu_cxx::__normal_iterator<Catch::Tag_const*,std::vector<Catch::Tag,std::allocator<Catch::Tag>>>,__gnu_cxx::__normal_iterator<Catch::Tag_const*,std::vector<Catch::Tag,std::allocator<Catch::Tag>>>,std::__detail::_Synth3way>
(*(int8 *)(param_1 + 0x50),*(int8 *)(param_1 + 0x58),
*(int8 *)(param_2 + 0x50),*(int8 *)(param_2 + 0x58));
return (uint)(bVar3 >> 7);
}
}
return uVar4 >> 0x1f;
}
|
|
66,204 |
coro::detail::promise<void>::unhandled_exception()
|
AlayaLite/build_O3/_deps/libcoro-src/include/coro/task.hpp
|
auto unhandled_exception() noexcept -> void { m_exception_ptr = std::current_exception(); }
|
O3
|
cpp
|
coro::detail::promise<void>::unhandled_exception():
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x21a0
movq (%r14), %rax
movq $0x0, (%r14)
movq 0x8(%rbx), %rcx
movq %rcx, 0x10(%rsp)
movq %rax, 0x8(%rbx)
testq %rcx, %rcx
je 0x3225
leaq 0x10(%rsp), %rdi
callq 0x2140
cmpq $0x0, 0x8(%rsp)
je 0x3225
leaq 0x8(%rsp), %rdi
callq 0x2140
addq $0x18, %rsp
popq %rbx
popq %r14
retq
nop
|
_ZN4coro6detail7promiseIvE19unhandled_exceptionEv:
push r14
push rbx
sub rsp, 18h
mov rbx, rdi
lea r14, [rsp+28h+var_20]
mov rdi, r14
call __ZSt17current_exceptionv; std::current_exception(void)
mov rax, [r14]
mov qword ptr [r14], 0
mov rcx, [rbx+8]
mov [rsp+28h+var_18], rcx
mov [rbx+8], rax
test rcx, rcx
jz short loc_3225
lea rdi, [rsp+28h+var_18]; this
call __ZNSt15__exception_ptr13exception_ptr10_M_releaseEv; std::__exception_ptr::exception_ptr::_M_release(void)
cmp [rsp+28h+var_20], 0
jz short loc_3225
lea rdi, [rsp+28h+var_20]; this
call __ZNSt15__exception_ptr13exception_ptr10_M_releaseEv; std::__exception_ptr::exception_ptr::_M_release(void)
loc_3225:
add rsp, 18h
pop rbx
pop r14
retn
|
long long coro::detail::promise<void>::unhandled_exception(long long a1)
{
long long result; // rax
long long v2; // rcx
long long v3; // [rsp+8h] [rbp-20h] BYREF
_QWORD v4[3]; // [rsp+10h] [rbp-18h] BYREF
std::current_exception();
result = v3;
v3 = 0LL;
v4[0] = *(_QWORD *)(a1 + 8);
v2 = v4[0];
*(_QWORD *)(a1 + 8) = result;
if ( v2 )
{
result = std::__exception_ptr::exception_ptr::_M_release((std::__exception_ptr::exception_ptr *)v4);
if ( v3 )
return std::__exception_ptr::exception_ptr::_M_release((std::__exception_ptr::exception_ptr *)&v3);
}
return result;
}
|
unhandled_exception:
PUSH R14
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
LEA R14,[RSP + 0x8]
MOV RDI,R14
CALL 0x001021a0
MOV RAX,qword ptr [R14]
MOV qword ptr [R14],0x0
MOV RCX,qword ptr [RBX + 0x8]
MOV qword ptr [RSP + 0x10],RCX
MOV qword ptr [RBX + 0x8],RAX
TEST RCX,RCX
JZ 0x00103225
LEA RDI,[RSP + 0x10]
CALL 0x00102140
CMP qword ptr [RSP + 0x8],0x0
JZ 0x00103225
LEA RDI,[RSP + 0x8]
CALL 0x00102140
LAB_00103225:
ADD RSP,0x18
POP RBX
POP R14
RET
|
/* WARNING: Removing unreachable block (ram,0x0010321b) */
/* coro::detail::promise<void>::unhandled_exception() */
void __thiscall coro::detail::promise<void>::unhandled_exception(promise<void> *this)
{
long lVar1;
int8 local_20;
std::current_exception();
lVar1 = *(long *)(this + 8);
*(int8 *)(this + 8) = local_20;
if (lVar1 != 0) {
std::__exception_ptr::exception_ptr::_M_release();
}
return;
}
|
|
66,205 |
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::end_object()
|
monkey531[P]llama/common/./json.hpp
|
bool end_object()
{
JSON_ASSERT(!ref_stack.empty());
JSON_ASSERT(ref_stack.back()->is_object());
ref_stack.back()->set_parents();
ref_stack.pop_back();
return true;
}
|
O2
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::end_object():
pushq %rax
movq 0x10(%rdi), %rax
cmpq %rax, 0x8(%rdi)
je 0x47242
movq -0x8(%rax), %rcx
cmpb $0x1, (%rcx)
jne 0x47261
addq $-0x8, %rax
movq %rax, 0x10(%rdi)
movb $0x1, %al
popq %rcx
retq
leaq 0x5508c(%rip), %rdi # 0x9c2d5
leaq 0x52bde(%rip), %rsi # 0x99e2e
leaq 0x56266(%rip), %rcx # 0x9d4bd
movl $0x1aeb, %edx # imm = 0x1AEB
callq 0x204a0
leaq 0x5501b(%rip), %rdi # 0x9c283
leaq 0x52bbf(%rip), %rsi # 0x99e2e
leaq 0x56247(%rip), %rcx # 0x9d4bd
movl $0x1aec, %edx # imm = 0x1AEC
callq 0x204a0
|
_ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE10end_objectEv:
push rax
mov rax, [rdi+10h]
cmp [rdi+8], rax
jz short loc_47242
mov rcx, [rax-8]
cmp byte ptr [rcx], 1
jnz short loc_47261
add rax, 0FFFFFFFFFFFFFFF8h
mov [rdi+10h], rax
mov al, 1
pop rcx
retn
loc_47242:
lea rdi, aRefStackEmpty; "!ref_stack.empty()"
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aBoolNlohmannDe_5; "bool nlohmann::detail::json_sax_dom_par"...
mov edx, 1AEBh
call ___assert_fail
loc_47261:
lea rdi, aRefStackBackIs+20h; "ref_stack.back()->is_object()"
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aBoolNlohmannDe_5; "bool nlohmann::detail::json_sax_dom_par"...
mov edx, 1AECh
call ___assert_fail
|
char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::end_object(
long long a1)
{
long long v1; // rax
v1 = *(_QWORD *)(a1 + 16);
if ( *(_QWORD *)(a1 + 8) == v1 )
__assert_fail(
"!ref_stack.empty()",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
6891LL,
"bool nlohmann::detail::json_sax_dom_parser<nlohmann::basic_json<nlohmann::ordered_map>>::end_object() [BasicJsonTy"
"pe = nlohmann::basic_json<nlohmann::ordered_map>]");
if ( **(_BYTE **)(v1 - 8) != 1 )
__assert_fail(
"ref_stack.back()->is_object()",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
6892LL,
"bool nlohmann::detail::json_sax_dom_parser<nlohmann::basic_json<nlohmann::ordered_map>>::end_object() [BasicJsonTy"
"pe = nlohmann::basic_json<nlohmann::ordered_map>]");
*(_QWORD *)(a1 + 16) = v1 - 8;
return 1;
}
|
end_object:
PUSH RAX
MOV RAX,qword ptr [RDI + 0x10]
CMP qword ptr [RDI + 0x8],RAX
JZ 0x00147242
MOV RCX,qword ptr [RAX + -0x8]
CMP byte ptr [RCX],0x1
JNZ 0x00147261
ADD RAX,-0x8
MOV qword ptr [RDI + 0x10],RAX
MOV AL,0x1
POP RCX
RET
LAB_00147242:
LEA RDI,[0x19c2d5]
LEA RSI,[0x199e2e]
LEA RCX,[0x19d4bd]
MOV EDX,0x1aeb
CALL 0x001204a0
LAB_00147261:
LEA RDI,[0x19c283]
LEA RSI,[0x199e2e]
LEA RCX,[0x19d4bd]
MOV EDX,0x1aec
CALL 0x001204a0
|
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::end_object() */
int8 __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::end_object(json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*this)
{
long lVar1;
lVar1 = *(long *)(this + 0x10);
if (*(long *)(this + 8) == lVar1) {
/* WARNING: Subroutine does not return */
__assert_fail("!ref_stack.empty()",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
0x1aeb,
"bool nlohmann::detail::json_sax_dom_parser<nlohmann::basic_json<nlohmann::ordered_map>>::end_object() [BasicJsonType = nlohmann::basic_json<nlohmann::ordered_map>]"
);
}
if (**(char **)(lVar1 + -8) == '\x01') {
*(long *)(this + 0x10) = lVar1 + -8;
return CONCAT71((int7)((ulong)(lVar1 + -8) >> 8),1);
}
/* WARNING: Subroutine does not return */
__assert_fail("ref_stack.back()->is_object()",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",0x1aec
,
"bool nlohmann::detail::json_sax_dom_parser<nlohmann::basic_json<nlohmann::ordered_map>>::end_object() [BasicJsonType = nlohmann::basic_json<nlohmann::ordered_map>]"
);
}
|
|
66,206 |
void OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::addCrease<false>(int, int, float)
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/neighborhoodBuilder.cpp
|
inline void
NeighborhoodBuilder::addCrease(Index v0, Index v1, float sharpness) {
LocalIndex lv0 = findLocalIndex(v0);
LocalIndex lv1 = findLocalIndex(v1);
assert(v0!=INDEX_INVALID && v1!= INDEX_INVALID && sharpness > 0.f);
if (lv0 == LOCAL_INDEX_INVALID || lv1 == LOCAL_INDEX_INVALID)
return;
if (lv0 > lv1)
std::swap(lv0, lv1);
int ncreases = (int)_creaseSharpness.size();
for (int i = 0; i < ncreases; ++i)
if ((_creaseVerts[i].first == lv0) && (_creaseVerts[i].second == lv1)) {
if constexpr (quash) _creaseSharpness[i] = sharpness;
return;
}
_creaseVerts.push_back({ lv0, lv1 });
_creaseSharpness.push_back(sharpness);
}
|
O0
|
cpp
|
void OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::addCrease<false>(int, int, float):
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movss %xmm0, -0x14(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x38(%rbp)
movl -0xc(%rbp), %esi
callq 0xc6640
movq -0x38(%rbp), %rdi
movw %ax, -0x16(%rbp)
movl -0x10(%rbp), %esi
callq 0xc6640
movw %ax, -0x18(%rbp)
xorl %eax, %eax
cmpl $-0x1, -0xc(%rbp)
movb %al, -0x29(%rbp)
je 0x1cad62
xorl %eax, %eax
cmpl $-0x1, -0x10(%rbp)
movb %al, -0x29(%rbp)
je 0x1cad62
movss -0x14(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
seta %al
movb %al, -0x29(%rbp)
movb -0x29(%rbp), %al
testb $0x1, %al
jne 0x1cad6b
jmp 0x1cad6d
jmp 0x1cad8c
leaq 0x31e23(%rip), %rdi # 0x1fcb97
leaq 0x3146c(%rip), %rsi # 0x1fc1e7
movl $0xd4, %edx
leaq 0x31e4b(%rip), %rcx # 0x1fcbd2
callq 0xc9440
movzwl -0x16(%rbp), %eax
cmpl $0xffff, %eax # imm = 0xFFFF
je 0x1cada2
movzwl -0x18(%rbp), %eax
cmpl $0xffff, %eax # imm = 0xFFFF
jne 0x1cada7
jmp 0x1cae6e
movzwl -0x16(%rbp), %eax
movzwl -0x18(%rbp), %ecx
cmpl %ecx, %eax
jle 0x1cadc0
leaq -0x16(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0xcdfa0
movq -0x38(%rbp), %rdi
addq $0xc0, %rdi
callq 0xd6570
movl %eax, -0x1c(%rbp)
movl $0x0, -0x20(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x1cae2e
movq -0x38(%rbp), %rdi
addq $0xa8, %rdi
movslq -0x20(%rbp), %rsi
callq 0xcb4e0
movl (%rax), %eax
movzwl -0x16(%rbp), %ecx
cmpl %ecx, %eax
jne 0x1cae21
movq -0x38(%rbp), %rdi
addq $0xa8, %rdi
movslq -0x20(%rbp), %rsi
callq 0xcb4e0
movl 0x4(%rax), %eax
movzwl -0x18(%rbp), %ecx
cmpl %ecx, %eax
jne 0x1cae21
jmp 0x1cae6e
jmp 0x1cae23
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x1cadda
movq -0x38(%rbp), %rax
addq $0xa8, %rax
movq %rax, -0x40(%rbp)
leaq -0x28(%rbp), %rdi
leaq -0x16(%rbp), %rsi
leaq -0x18(%rbp), %rdx
callq 0xd56b0
movq -0x40(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0xd32d0
movq -0x38(%rbp), %rdi
addq $0xc0, %rdi
leaq -0x14(%rbp), %rsi
callq 0xd0630
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
|
_ZN10OpenSubdiv6v3_6_03Tmr19NeighborhoodBuilder9addCreaseILb0EEEviif:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_10], edx
movss [rbp+var_14], xmm0
mov rdi, [rbp+var_8]; this
mov [rbp+var_38], rdi
mov esi, [rbp+var_C]; int
call __ZN10OpenSubdiv6v3_6_03Tmr19NeighborhoodBuilder14findLocalIndexEi; OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::findLocalIndex(int)
mov rdi, [rbp+var_38]; this
mov [rbp+var_16], ax
mov esi, [rbp+var_10]; int
call __ZN10OpenSubdiv6v3_6_03Tmr19NeighborhoodBuilder14findLocalIndexEi; OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::findLocalIndex(int)
mov [rbp+var_18], ax
xor eax, eax
cmp [rbp+var_C], 0FFFFFFFFh
mov [rbp+var_29], al
jz short loc_1CAD62
xor eax, eax
cmp [rbp+var_10], 0FFFFFFFFh
mov [rbp+var_29], al
jz short loc_1CAD62
movss xmm0, [rbp+var_14]
xorps xmm1, xmm1
ucomiss xmm0, xmm1
setnbe al
mov [rbp+var_29], al
loc_1CAD62:
mov al, [rbp+var_29]
test al, 1
jnz short loc_1CAD6B
jmp short loc_1CAD6D
loc_1CAD6B:
jmp short loc_1CAD8C
loc_1CAD6D:
lea rdi, aV0IndexInvalid; "v0!=INDEX_INVALID && v1!= INDEX_INVALID"...
lea rsi, aWorkspaceLlm4b_44; "/workspace/llm4binary/github/2025_star3"...
mov edx, 0D4h
lea rcx, aVoidOpensubdiv_168; "void OpenSubdiv::v3_6_0::Tmr::Neighborh"...
call ___assert_fail
loc_1CAD8C:
movzx eax, [rbp+var_16]
cmp eax, 0FFFFh
jz short loc_1CADA2
movzx eax, [rbp+var_18]
cmp eax, 0FFFFh
jnz short loc_1CADA7
loc_1CADA2:
jmp loc_1CAE6E
loc_1CADA7:
movzx eax, [rbp+var_16]
movzx ecx, [rbp+var_18]
cmp eax, ecx
jle short loc_1CADC0
lea rdi, [rbp+var_16]
lea rsi, [rbp+var_18]
call __ZSt4swapItENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_
loc_1CADC0:
mov rdi, [rbp+var_38]
add rdi, 0C0h
call __ZNKSt6vectorIfSaIfEE4sizeEv; std::vector<float>::size(void)
mov [rbp+var_1C], eax
mov [rbp+var_20], 0
loc_1CADDA:
mov eax, [rbp+var_20]
cmp eax, [rbp+var_1C]
jge short loc_1CAE2E
mov rdi, [rbp+var_38]
add rdi, 0A8h
movsxd rsi, [rbp+var_20]
call __ZNSt6vectorISt4pairIiiESaIS1_EEixEm; std::vector<std::pair<int,int>>::operator[](ulong)
mov eax, [rax]
movzx ecx, [rbp+var_16]
cmp eax, ecx
jnz short loc_1CAE21
mov rdi, [rbp+var_38]
add rdi, 0A8h
movsxd rsi, [rbp+var_20]
call __ZNSt6vectorISt4pairIiiESaIS1_EEixEm; std::vector<std::pair<int,int>>::operator[](ulong)
mov eax, [rax+4]
movzx ecx, [rbp+var_18]
cmp eax, ecx
jnz short loc_1CAE21
jmp short loc_1CAE6E
loc_1CAE21:
jmp short $+2
loc_1CAE23:
mov eax, [rbp+var_20]
add eax, 1
mov [rbp+var_20], eax
jmp short loc_1CADDA
loc_1CAE2E:
mov rax, [rbp+var_38]
add rax, 0A8h
mov [rbp+var_40], rax
lea rdi, [rbp+var_28]
lea rsi, [rbp+var_16]
lea rdx, [rbp+var_18]
call __ZNSt4pairIiiEC2IRtS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_
mov rdi, [rbp+var_40]
lea rsi, [rbp+var_28]
call __ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_; std::vector<std::pair<int,int>>::push_back(std::pair<int,int>&&)
mov rdi, [rbp+var_38]
add rdi, 0C0h
lea rsi, [rbp+var_14]
call __ZNSt6vectorIfSaIfEE9push_backERKf; std::vector<float>::push_back(float const&)
loc_1CAE6E:
add rsp, 40h
pop rbp
retn
|
long long OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::addCrease<false>(
OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder *a1,
int a2,
int a3,
float a4)
{
long long result; // rax
_DWORD *v5; // rax
bool v6; // [rsp+17h] [rbp-29h]
_BYTE v7[8]; // [rsp+18h] [rbp-28h] BYREF
int i; // [rsp+20h] [rbp-20h]
int v9; // [rsp+24h] [rbp-1Ch]
unsigned __int16 v10; // [rsp+28h] [rbp-18h] BYREF
unsigned __int16 LocalIndex; // [rsp+2Ah] [rbp-16h] BYREF
float v12; // [rsp+2Ch] [rbp-14h] BYREF
int v13; // [rsp+30h] [rbp-10h]
int v14; // [rsp+34h] [rbp-Ch]
OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder *v15; // [rsp+38h] [rbp-8h]
v15 = a1;
v14 = a2;
v13 = a3;
v12 = a4;
LocalIndex = OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::findLocalIndex(a1, a2);
v10 = OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::findLocalIndex(a1, v13);
v6 = 0;
if ( a2 != -1 )
{
v6 = 0;
if ( v13 != -1 )
v6 = v12 > 0.0;
}
if ( !v6 )
__assert_fail(
"v0!=INDEX_INVALID && v1!= INDEX_INVALID && sharpness > 0.f",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/neighborhoodBuilder.cpp",
212LL,
"void OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::addCrease(Index, Index, float) [quash = false]");
result = LocalIndex;
if ( LocalIndex != 0xFFFF )
{
result = v10;
if ( v10 != 0xFFFF )
{
if ( LocalIndex > (int)v10 )
std::swap<unsigned short>(&LocalIndex, &v10);
v9 = std::vector<float>::size((char *)a1 + 192);
for ( i = 0; i < v9; ++i )
{
v5 = (_DWORD *)std::vector<std::pair<int,int>>::operator[]((char *)a1 + 168, i);
if ( *v5 == LocalIndex )
{
result = *(unsigned int *)(std::vector<std::pair<int,int>>::operator[]((char *)a1 + 168, i) + 4);
if ( (_DWORD)result == v10 )
return result;
}
}
_ZNSt4pairIiiEC2IRtS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(
v7,
&LocalIndex,
&v10);
std::vector<std::pair<int,int>>::push_back((char *)a1 + 168, v7);
return std::vector<float>::push_back((char *)a1 + 192, &v12);
}
}
return result;
}
| |||
66,207 |
void OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::addCrease<false>(int, int, float)
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/neighborhoodBuilder.cpp
|
inline void
NeighborhoodBuilder::addCrease(Index v0, Index v1, float sharpness) {
LocalIndex lv0 = findLocalIndex(v0);
LocalIndex lv1 = findLocalIndex(v1);
assert(v0!=INDEX_INVALID && v1!= INDEX_INVALID && sharpness > 0.f);
if (lv0 == LOCAL_INDEX_INVALID || lv1 == LOCAL_INDEX_INVALID)
return;
if (lv0 > lv1)
std::swap(lv0, lv1);
int ncreases = (int)_creaseSharpness.size();
for (int i = 0; i < ncreases; ++i)
if ((_creaseVerts[i].first == lv0) && (_creaseVerts[i].second == lv1)) {
if constexpr (quash) _creaseSharpness[i] = sharpness;
return;
}
_creaseVerts.push_back({ lv0, lv1 });
_creaseSharpness.push_back(sharpness);
}
|
O1
|
cpp
|
void OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::addCrease<false>(int, int, float):
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movss %xmm0, 0x4(%rsp)
movq 0x48(%rdi), %rdi
movq 0x50(%rbx), %r8
subq %rdi, %r8
movw $0xffff, %ax # imm = 0xFFFF
movw $0xffff, %cx # imm = 0xFFFF
testl $0x3fffc, %r8d # imm = 0x3FFFC
je 0xa5dfe
movl %r8d, %ecx
shrl $0x2, %ecx
cmpw $0x1, %cx
adcl $0x0, %ecx
movzwl %cx, %r9d
xorl %ecx, %ecx
cmpl %esi, (%rdi,%rcx,4)
je 0xa5dfe
incq %rcx
cmpq %rcx, %r9
jne 0xa5ded
movw $0xffff, %cx # imm = 0xFFFF
testl $0x3fffc, %r8d # imm = 0x3FFFC
je 0xa5e2e
shrl $0x2, %r8d
cmpw $0x1, %r8w
adcl $0x0, %r8d
movzwl %r8w, %r9d
xorl %r8d, %r8d
cmpl %edx, (%rdi,%r8,4)
je 0xa5e2b
incq %r8
cmpq %r8, %r9
jne 0xa5e1b
jmp 0xa5e2e
movl %r8d, %eax
cmpl $-0x1, %esi
je 0xa5f04
cmpl $-0x1, %edx
je 0xa5f04
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe 0xa5f04
cmpw $-0x1, %cx
sete %dl
cmpw $-0x1, %ax
sete %sil
orb %dl, %sil
jne 0xa5efe
cmpw %ax, %cx
movl %eax, %edx
cmovbl %ecx, %edx
cmoval %ecx, %eax
movq 0xc8(%rbx), %rcx
subq 0xc0(%rbx), %rcx
shrq $0x2, %rcx
movzwl %dx, %edx
movzwl %ax, %eax
testl %ecx, %ecx
jle 0xa5ead
movq 0xa8(%rbx), %rsi
andl $0x7fffffff, %ecx # imm = 0x7FFFFFFF
xorl %edi, %edi
cmpl %edx, (%rsi,%rdi,8)
jne 0xa5ea5
cmpl %eax, 0x4(%rsi,%rdi,8)
je 0xa5efe
incq %rdi
cmpq %rdi, %rcx
jne 0xa5e9a
leaq 0xa8(%rbx), %rdi
leaq 0x8(%rsp), %rsi
movl %edx, (%rsi)
movl %eax, 0x4(%rsi)
callq 0x39350
movq 0xc8(%rbx), %rsi
cmpq 0xd0(%rbx), %rsi
je 0xa5eea
movss 0x4(%rsp), %xmm0
movss %xmm0, (%rsi)
addq $0x4, %rsi
movq %rsi, 0xc8(%rbx)
jmp 0xa5efe
addq $0xc0, %rbx
leaq 0x4(%rsp), %rdx
movq %rbx, %rdi
callq 0x3c0b0
addq $0x10, %rsp
popq %rbx
retq
leaq 0x1d5a5(%rip), %rdi # 0xc34b0
leaq 0x1cc55(%rip), %rsi # 0xc2b67
leaq 0x1d5d2(%rip), %rcx # 0xc34eb
movl $0xd4, %edx
callq 0x39560
nop
|
_ZN10OpenSubdiv6v3_6_03Tmr19NeighborhoodBuilder9addCreaseILb0EEEviif:
push rbx
sub rsp, 10h
mov rbx, rdi
movss [rsp+18h+var_14], xmm0
mov rdi, [rdi+48h]
mov r8, [rbx+50h]
sub r8, rdi
mov ax, 0FFFFh
mov cx, 0FFFFh
test r8d, 3FFFCh
jz short loc_A5DFE
mov ecx, r8d
shr ecx, 2
cmp cx, 1
adc ecx, 0
movzx r9d, cx
xor ecx, ecx
loc_A5DED:
cmp [rdi+rcx*4], esi
jz short loc_A5DFE
inc rcx
cmp r9, rcx
jnz short loc_A5DED
mov cx, 0FFFFh
loc_A5DFE:
test r8d, 3FFFCh
jz short loc_A5E2E
shr r8d, 2
cmp r8w, 1
adc r8d, 0
movzx r9d, r8w
xor r8d, r8d
loc_A5E1B:
cmp [rdi+r8*4], edx
jz short loc_A5E2B
inc r8
cmp r9, r8
jnz short loc_A5E1B
jmp short loc_A5E2E
loc_A5E2B:
mov eax, r8d
loc_A5E2E:
cmp esi, 0FFFFFFFFh
jz loc_A5F04
cmp edx, 0FFFFFFFFh
jz loc_A5F04
xorps xmm1, xmm1
ucomiss xmm0, xmm1
jbe loc_A5F04
cmp cx, 0FFFFh
setz dl
cmp ax, 0FFFFh
setz sil
or sil, dl
jnz loc_A5EFE
cmp cx, ax
mov edx, eax
cmovb edx, ecx
cmova eax, ecx
mov rcx, [rbx+0C8h]
sub rcx, [rbx+0C0h]
shr rcx, 2
movzx edx, dx
movzx eax, ax
test ecx, ecx
jle short loc_A5EAD
mov rsi, [rbx+0A8h]
and ecx, 7FFFFFFFh
xor edi, edi
loc_A5E9A:
cmp [rsi+rdi*8], edx
jnz short loc_A5EA5
cmp [rsi+rdi*8+4], eax
jz short loc_A5EFE
loc_A5EA5:
inc rdi
cmp rcx, rdi
jnz short loc_A5E9A
loc_A5EAD:
lea rdi, [rbx+0A8h]
lea rsi, [rsp+18h+var_10]
mov [rsi], edx
mov [rsi+4], eax
call __ZNSt6vectorISt4pairIiiESaIS1_EE12emplace_backIJS1_EEERS1_DpOT_; std::vector<std::pair<int,int>>::emplace_back<std::pair<int,int>>(std::pair<int,int> &&)
mov rsi, [rbx+0C8h]
cmp rsi, [rbx+0D0h]
jz short loc_A5EEA
movss xmm0, [rsp+18h+var_14]
movss dword ptr [rsi], xmm0
add rsi, 4
mov [rbx+0C8h], rsi
jmp short loc_A5EFE
loc_A5EEA:
add rbx, 0C0h
lea rdx, [rsp+18h+var_14]
mov rdi, rbx
call __ZNSt6vectorIfSaIfEE17_M_realloc_insertIJRKfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_; std::vector<float>::_M_realloc_insert<float const&>(__gnu_cxx::__normal_iterator<float *,std::vector<float>>,float const&)
loc_A5EFE:
add rsp, 10h
pop rbx
retn
loc_A5F04:
lea rdi, aV0IndexInvalid; "v0!=INDEX_INVALID && v1!= INDEX_INVALID"...
lea rsi, aWorkspaceLlm4b_48; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aVoidOpensubdiv_154; "void OpenSubdiv::v3_6_0::Tmr::Neighborh"...
mov edx, 0D4h
call ___assert_fail
|
unsigned __int16 OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::addCrease<false>(
_QWORD *a1,
int a2,
int a3,
float a4)
{
long long v5; // rdi
long long v6; // r8
unsigned __int16 result; // ax
long long v8; // rcx
long long v9; // r9
long long v10; // r8
unsigned __int16 v11; // dx
long long v12; // rsi
long long v13; // rdi
_DWORD *v14; // rsi
_DWORD v15[5]; // [rsp+4h] [rbp-14h] BYREF
*(float *)v15 = a4;
v5 = a1[9];
v6 = a1[10] - v5;
result = -1;
LOWORD(v8) = -1;
if ( (v6 & 0x3FFFC) != 0 )
{
v8 = 0LL;
while ( *(_DWORD *)(v5 + 4 * v8) != a2 )
{
if ( (unsigned __int16)(((unsigned __int16)((unsigned int)v6 >> 2) == 0)
+ (unsigned __int16)((unsigned int)v6 >> 2)) == ++v8 )
{
LOWORD(v8) = -1;
break;
}
}
}
if ( (v6 & 0x3FFFC) != 0 )
{
v9 = (unsigned __int16)(((unsigned __int16)((unsigned int)v6 >> 2) == 0) + (unsigned __int16)((unsigned int)v6 >> 2));
v10 = 0LL;
while ( *(_DWORD *)(v5 + 4 * v10) != a3 )
{
if ( v9 == ++v10 )
goto LABEL_12;
}
result = v10;
}
LABEL_12:
if ( a2 == -1 || a3 == -1 || a4 <= 0.0 )
__assert_fail(
"v0!=INDEX_INVALID && v1!= INDEX_INVALID && sharpness > 0.f",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/neighborhoodBuilder.cpp",
212LL,
"void OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::addCrease(Index, Index, float) [quash = false]");
if ( (_WORD)v8 != 0xFFFF && result != 0xFFFF )
{
v11 = result;
if ( (unsigned __int16)v8 < result )
v11 = v8;
if ( (unsigned __int16)v8 > result )
result = v8;
if ( (int)((a1[25] - a1[24]) >> 2) <= 0 )
{
LABEL_25:
v15[1] = v11;
v15[2] = result;
result = std::vector<std::pair<int,int>>::emplace_back<std::pair<int,int>>(a1 + 21);
v14 = (_DWORD *)a1[25];
if ( v14 == (_DWORD *)a1[26] )
{
return std::vector<float>::_M_realloc_insert<float const&>(a1 + 24, v14, v15);
}
else
{
*v14 = v15[0];
a1[25] = v14 + 1;
}
}
else
{
v12 = a1[21];
v13 = 0LL;
while ( *(_DWORD *)(v12 + 8 * v13) != v11 || *(_DWORD *)(v12 + 8 * v13 + 4) != result )
{
if ( (((a1[25] - a1[24]) >> 2) & 0x7FFFFFFFLL) == ++v13 )
goto LABEL_25;
}
}
}
return result;
}
|
addCrease<false>:
PUSH RBX
SUB RSP,0x10
MOV RBX,RDI
MOVSS dword ptr [RSP + 0x4],XMM0
MOV RDI,qword ptr [RDI + 0x48]
MOV R8,qword ptr [RBX + 0x50]
SUB R8,RDI
MOV AX,0xffff
MOV CX,0xffff
TEST R8D,0x3fffc
JZ 0x001a5dfe
MOV ECX,R8D
SHR ECX,0x2
CMP CX,0x1
ADC ECX,0x0
MOVZX R9D,CX
XOR ECX,ECX
LAB_001a5ded:
CMP dword ptr [RDI + RCX*0x4],ESI
JZ 0x001a5dfe
INC RCX
CMP R9,RCX
JNZ 0x001a5ded
MOV CX,0xffff
LAB_001a5dfe:
TEST R8D,0x3fffc
JZ 0x001a5e2e
SHR R8D,0x2
CMP R8W,0x1
ADC R8D,0x0
MOVZX R9D,R8W
XOR R8D,R8D
LAB_001a5e1b:
CMP dword ptr [RDI + R8*0x4],EDX
JZ 0x001a5e2b
INC R8
CMP R9,R8
JNZ 0x001a5e1b
JMP 0x001a5e2e
LAB_001a5e2b:
MOV EAX,R8D
LAB_001a5e2e:
CMP ESI,-0x1
JZ 0x001a5f04
CMP EDX,-0x1
JZ 0x001a5f04
XORPS XMM1,XMM1
UCOMISS XMM0,XMM1
JBE 0x001a5f04
CMP CX,-0x1
SETZ DL
CMP AX,-0x1
SETZ SIL
OR SIL,DL
JNZ 0x001a5efe
CMP CX,AX
MOV EDX,EAX
CMOVC EDX,ECX
CMOVA EAX,ECX
MOV RCX,qword ptr [RBX + 0xc8]
SUB RCX,qword ptr [RBX + 0xc0]
SHR RCX,0x2
MOVZX EDX,DX
MOVZX EAX,AX
TEST ECX,ECX
JLE 0x001a5ead
MOV RSI,qword ptr [RBX + 0xa8]
AND ECX,0x7fffffff
XOR EDI,EDI
LAB_001a5e9a:
CMP dword ptr [RSI + RDI*0x8],EDX
JNZ 0x001a5ea5
CMP dword ptr [RSI + RDI*0x8 + 0x4],EAX
JZ 0x001a5efe
LAB_001a5ea5:
INC RDI
CMP RCX,RDI
JNZ 0x001a5e9a
LAB_001a5ead:
LEA RDI,[RBX + 0xa8]
LEA RSI,[RSP + 0x8]
MOV dword ptr [RSI],EDX
MOV dword ptr [RSI + 0x4],EAX
CALL 0x00139350
MOV RSI,qword ptr [RBX + 0xc8]
CMP RSI,qword ptr [RBX + 0xd0]
JZ 0x001a5eea
MOVSS XMM0,dword ptr [RSP + 0x4]
MOVSS dword ptr [RSI],XMM0
ADD RSI,0x4
MOV qword ptr [RBX + 0xc8],RSI
JMP 0x001a5efe
LAB_001a5eea:
ADD RBX,0xc0
LEA RDX,[RSP + 0x4]
MOV RDI,RBX
CALL 0x0013c0b0
LAB_001a5efe:
ADD RSP,0x10
POP RBX
RET
LAB_001a5f04:
LEA RDI,[0x1c34b0]
LEA RSI,[0x1c2b67]
LEA RCX,[0x1c34eb]
MOV EDX,0xd4
CALL 0x00139560
|
/* void OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::addCrease<false>(int, int, float) */
void __thiscall
OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::addCrease<false>
(NeighborhoodBuilder *this,int param_1,int param_2,float param_3)
{
long lVar1;
float *pfVar2;
ushort uVar3;
ushort uVar4;
ulong uVar5;
ulong uVar6;
ushort uVar7;
uint uVar8;
ulong uVar9;
float local_14;
uint local_10;
uint local_c;
lVar1 = *(long *)(this + 0x48);
uVar9 = *(long *)(this + 0x50) - lVar1;
uVar3 = 0xffff;
uVar6 = 0xffff;
if ((uVar9 & 0x3fffc) != 0) {
uVar5 = uVar9 >> 2 & 0x3fffffff;
uVar6 = 0;
do {
if (*(int *)(lVar1 + uVar6 * 4) == param_1) goto LAB_001a5dfe;
uVar6 = uVar6 + 1;
} while (((int)uVar5 + (uint)((short)uVar5 == 0) & 0xffff) != uVar6);
uVar6 = 0xffff;
}
LAB_001a5dfe:
if ((uVar9 & 0x3fffc) != 0) {
uVar8 = (uint)uVar9 >> 2;
uVar9 = 0;
do {
if (*(int *)(lVar1 + uVar9 * 4) == param_2) {
uVar3 = (ushort)uVar9;
break;
}
uVar9 = uVar9 + 1;
} while ((uVar8 + ((short)uVar8 == 0) & 0xffff) != uVar9);
}
local_14 = param_3;
if (((param_1 != -1) && (param_2 != -1)) && (0.0 < param_3)) {
uVar4 = (ushort)uVar6;
if (uVar3 != 0xffff && uVar4 != 0xffff) {
uVar7 = uVar3;
if (uVar4 < uVar3) {
uVar7 = uVar4;
}
if (uVar3 < uVar4) {
uVar3 = uVar4;
}
uVar8 = (uint)((ulong)(*(long *)(this + 200) - *(long *)(this + 0xc0)) >> 2);
local_10 = (uint)uVar7;
local_c = (uint)uVar3;
if (0 < (int)uVar8) {
uVar6 = 0;
do {
if ((*(uint *)(*(long *)(this + 0xa8) + uVar6 * 8) == local_10) &&
(*(uint *)(*(long *)(this + 0xa8) + 4 + uVar6 * 8) == local_c)) {
return;
}
uVar6 = uVar6 + 1;
} while ((uVar8 & 0x7fffffff) != uVar6);
}
std::vector<std::pair<int,int>,std::allocator<std::pair<int,int>>>::
emplace_back<std::pair<int,int>>
((vector<std::pair<int,int>,std::allocator<std::pair<int,int>>> *)(this + 0xa8),
(pair *)&local_10);
pfVar2 = *(float **)(this + 200);
if (pfVar2 == *(float **)(this + 0xd0)) {
std::vector<float,std::allocator<float>>::_M_realloc_insert<float_const&>
((vector<float,std::allocator<float>> *)(this + 0xc0),pfVar2,&local_14);
}
else {
*pfVar2 = local_14;
*(float **)(this + 200) = pfVar2 + 1;
}
}
return;
}
/* WARNING: Subroutine does not return */
__assert_fail("v0!=INDEX_INVALID && v1!= INDEX_INVALID && sharpness > 0.f",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/neighborhoodBuilder.cpp"
,0xd4,
"void OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::addCrease(Index, Index, float) [quash = false]"
);
}
|
|
66,208 |
void OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::addCrease<false>(int, int, float)
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/neighborhoodBuilder.cpp
|
inline void
NeighborhoodBuilder::addCrease(Index v0, Index v1, float sharpness) {
LocalIndex lv0 = findLocalIndex(v0);
LocalIndex lv1 = findLocalIndex(v1);
assert(v0!=INDEX_INVALID && v1!= INDEX_INVALID && sharpness > 0.f);
if (lv0 == LOCAL_INDEX_INVALID || lv1 == LOCAL_INDEX_INVALID)
return;
if (lv0 > lv1)
std::swap(lv0, lv1);
int ncreases = (int)_creaseSharpness.size();
for (int i = 0; i < ncreases; ++i)
if ((_creaseVerts[i].first == lv0) && (_creaseVerts[i].second == lv1)) {
if constexpr (quash) _creaseSharpness[i] = sharpness;
return;
}
_creaseVerts.push_back({ lv0, lv1 });
_creaseSharpness.push_back(sharpness);
}
|
O2
|
cpp
|
void OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::addCrease<false>(int, int, float):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl %edx, %r14d
movl %esi, %r15d
movq %rdi, %rbx
movss %xmm0, 0x8(%rsp)
movss %xmm0, 0xc(%rsp)
callq 0x50230
movl %eax, %ebp
movq %rbx, %rdi
movl %r14d, %esi
callq 0x50230
cmpl $-0x1, %r15d
je 0xb0da4
cmpl $-0x1, %r14d
je 0xb0da4
xorps %xmm0, %xmm0
movss 0x8(%rsp), %xmm1
ucomiss %xmm0, %xmm1
jbe 0xb0da4
cmpw $-0x1, %bp
sete %cl
cmpw $-0x1, %ax
sete %dl
orb %cl, %dl
jne 0xb0d99
cmpw %ax, %bp
movl %eax, %ecx
cmoval %ebp, %eax
cmovbl %ebp, %ecx
leaq 0xc0(%rbx), %r14
movq 0xa8(%rbx), %rdx
movq 0xc8(%rbx), %rsi
subq 0xc0(%rbx), %rsi
shrq $0x2, %rsi
addq $0xa8, %rbx
movl $0xffff, %edi # imm = 0xFFFF
andl %edi, %ecx
andl %edi, %eax
xorl %edi, %edi
testl %esi, %esi
cmovlel %edi, %esi
cmpq %rdi, %rsi
je 0xb0d7a
cmpl %ecx, (%rdx,%rdi,8)
jne 0xb0d75
cmpl %eax, 0x4(%rdx,%rdi,8)
je 0xb0d99
incq %rdi
jmp 0xb0d65
leaq 0x10(%rsp), %rsi
movl %ecx, (%rsi)
movl %eax, 0x4(%rsi)
movq %rbx, %rdi
callq 0x50ef0
leaq 0xc(%rsp), %rsi
movq %r14, %rdi
callq 0x53810
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1d34c(%rip), %rdi # 0xce0f7
leaq 0x1c995(%rip), %rsi # 0xcd747
leaq 0x1d379(%rip), %rcx # 0xce132
movl $0xd4, %edx
callq 0x512a0
nop
|
_ZN10OpenSubdiv6v3_6_03Tmr19NeighborhoodBuilder9addCreaseILb0EEEviif:
push rbp
push r15
push r14
push rbx
sub rsp, 18h
mov r14d, edx
mov r15d, esi
mov rbx, rdi
movss [rsp+38h+var_30], xmm0
movss [rsp+38h+var_2C], xmm0
call __ZN10OpenSubdiv6v3_6_03Tmr19NeighborhoodBuilder14findLocalIndexEi; OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::findLocalIndex(int)
mov ebp, eax
mov rdi, rbx; this
mov esi, r14d; int
call __ZN10OpenSubdiv6v3_6_03Tmr19NeighborhoodBuilder14findLocalIndexEi; OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::findLocalIndex(int)
cmp r15d, 0FFFFFFFFh
jz loc_B0DA4
cmp r14d, 0FFFFFFFFh
jz loc_B0DA4
xorps xmm0, xmm0
movss xmm1, [rsp+38h+var_30]
ucomiss xmm1, xmm0
jbe loc_B0DA4
cmp bp, 0FFFFh
setz cl
cmp ax, 0FFFFh
setz dl
or dl, cl
jnz short loc_B0D99
cmp bp, ax
mov ecx, eax
cmova eax, ebp
cmovb ecx, ebp
lea r14, [rbx+0C0h]
mov rdx, [rbx+0A8h]
mov rsi, [rbx+0C8h]
sub rsi, [rbx+0C0h]
shr rsi, 2
add rbx, 0A8h
mov edi, 0FFFFh
and ecx, edi
and eax, edi
xor edi, edi
test esi, esi
cmovle esi, edi
loc_B0D65:
cmp rsi, rdi
jz short loc_B0D7A
cmp [rdx+rdi*8], ecx
jnz short loc_B0D75
cmp [rdx+rdi*8+4], eax
jz short loc_B0D99
loc_B0D75:
inc rdi
jmp short loc_B0D65
loc_B0D7A:
lea rsi, [rsp+38h+var_28]
mov [rsi], ecx
mov [rsi+4], eax
mov rdi, rbx
call __ZNSt6vectorISt4pairIiiESaIS1_EE12emplace_backIJS1_EEERS1_DpOT_; std::vector<std::pair<int,int>>::emplace_back<std::pair<int,int>>(std::pair<int,int> &&)
lea rsi, [rsp+38h+var_2C]
mov rdi, r14
call __ZNSt6vectorIfSaIfEE9push_backERKf; std::vector<float>::push_back(float const&)
loc_B0D99:
add rsp, 18h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_B0DA4:
lea rdi, aV0IndexInvalid; "v0!=INDEX_INVALID && v1!= INDEX_INVALID"...
lea rsi, aWorkspaceLlm4b_44; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aVoidOpensubdiv_156; "void OpenSubdiv::v3_6_0::Tmr::Neighborh"...
mov edx, 0D4h
call ___assert_fail
|
long long OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::addCrease<false>(
OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder *this,
int a2,
int a3,
float a4)
{
unsigned __int16 LocalIndex; // bp
long long result; // rax
bool v7; // cf
unsigned __int16 v8; // cx
char *v9; // r14
long long v10; // rdx
long long v11; // rsi
char *v12; // rbx
long long v13; // rdi
float v14; // [rsp+Ch] [rbp-2Ch] BYREF
_DWORD v15[10]; // [rsp+10h] [rbp-28h] BYREF
v14 = a4;
LocalIndex = OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::findLocalIndex(this, a2);
result = OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::findLocalIndex(this, a3);
if ( a2 == -1 || a3 == -1 || a4 <= 0.0 )
__assert_fail(
"v0!=INDEX_INVALID && v1!= INDEX_INVALID && sharpness > 0.f",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/neighborhoodBuilder.cpp",
212LL,
"void OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::addCrease(Index, Index, float) [quash = false]");
if ( LocalIndex != 0xFFFF && (_WORD)result != 0xFFFF )
{
v7 = LocalIndex < (unsigned __int16)result;
v8 = result;
if ( LocalIndex > (unsigned __int16)result )
LOWORD(result) = LocalIndex;
if ( v7 )
v8 = LocalIndex;
v9 = (char *)this + 192;
v10 = *((_QWORD *)this + 21);
v11 = (*((_QWORD *)this + 25) - *((_QWORD *)this + 24)) >> 2;
v12 = (char *)this + 168;
result = (unsigned __int16)result;
v13 = 0LL;
if ( (int)v11 <= 0 )
v11 = 0LL;
while ( v11 != v13 )
{
if ( *(_QWORD *)(v10 + 8 * v13) == __PAIR64__((unsigned __int16)result, v8) )
return result;
++v13;
}
v15[0] = v8;
v15[1] = (unsigned __int16)result;
std::vector<std::pair<int,int>>::emplace_back<std::pair<int,int>>(v12, v15, v10);
return std::vector<float>::push_back(v9, &v14);
}
return result;
}
|
addCrease<false>:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x18
MOV R14D,EDX
MOV R15D,ESI
MOV RBX,RDI
MOVSS dword ptr [RSP + 0x8],XMM0
MOVSS dword ptr [RSP + 0xc],XMM0
CALL 0x00150230
MOV EBP,EAX
MOV RDI,RBX
MOV ESI,R14D
CALL 0x00150230
CMP R15D,-0x1
JZ 0x001b0da4
CMP R14D,-0x1
JZ 0x001b0da4
XORPS XMM0,XMM0
MOVSS XMM1,dword ptr [RSP + 0x8]
UCOMISS XMM1,XMM0
JBE 0x001b0da4
CMP BP,-0x1
SETZ CL
CMP AX,-0x1
SETZ DL
OR DL,CL
JNZ 0x001b0d99
CMP BP,AX
MOV ECX,EAX
CMOVA EAX,EBP
CMOVC ECX,EBP
LEA R14,[RBX + 0xc0]
MOV RDX,qword ptr [RBX + 0xa8]
MOV RSI,qword ptr [RBX + 0xc8]
SUB RSI,qword ptr [RBX + 0xc0]
SHR RSI,0x2
ADD RBX,0xa8
MOV EDI,0xffff
AND ECX,EDI
AND EAX,EDI
XOR EDI,EDI
TEST ESI,ESI
CMOVLE ESI,EDI
LAB_001b0d65:
CMP RSI,RDI
JZ 0x001b0d7a
CMP dword ptr [RDX + RDI*0x8],ECX
JNZ 0x001b0d75
CMP dword ptr [RDX + RDI*0x8 + 0x4],EAX
JZ 0x001b0d99
LAB_001b0d75:
INC RDI
JMP 0x001b0d65
LAB_001b0d7a:
LEA RSI,[RSP + 0x10]
MOV dword ptr [RSI],ECX
MOV dword ptr [RSI + 0x4],EAX
MOV RDI,RBX
CALL 0x00150ef0
LEA RSI,[RSP + 0xc]
MOV RDI,R14
CALL 0x00153810
LAB_001b0d99:
ADD RSP,0x18
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_001b0da4:
LEA RDI,[0x1ce0f7]
LEA RSI,[0x1cd747]
LEA RCX,[0x1ce132]
MOV EDX,0xd4
CALL 0x001512a0
|
/* void OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::addCrease<false>(int, int, float) */
void __thiscall
OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::addCrease<false>
(NeighborhoodBuilder *this,int param_1,int param_2,float param_3)
{
ushort uVar1;
ushort uVar2;
ushort uVar3;
ulong uVar4;
ulong uVar5;
ulong uVar6;
float local_2c;
uint local_28;
uint local_24;
local_2c = param_3;
uVar1 = findLocalIndex(this,param_1);
uVar2 = findLocalIndex(this,param_2);
if (((param_1 != -1) && (param_2 != -1)) && (0.0 < param_3)) {
if (uVar2 != 0xffff && uVar1 != 0xffff) {
uVar3 = uVar2;
if (uVar2 < uVar1) {
uVar3 = uVar1;
}
if (uVar1 < uVar2) {
uVar2 = uVar1;
}
uVar4 = (ulong)(*(long *)(this + 200) - *(long *)(this + 0xc0)) >> 2;
local_28 = (uint)uVar2;
local_24 = (uint)uVar3;
uVar6 = 0;
uVar5 = uVar4 & 0xffffffff;
if ((int)uVar4 < 1) {
uVar5 = uVar6;
}
for (; uVar5 != uVar6; uVar6 = uVar6 + 1) {
if ((*(uint *)(*(long *)(this + 0xa8) + uVar6 * 8) == local_28) &&
(*(uint *)(*(long *)(this + 0xa8) + 4 + uVar6 * 8) == local_24)) {
return;
}
}
std::vector<std::pair<int,int>,std::allocator<std::pair<int,int>>>::
emplace_back<std::pair<int,int>>
((vector<std::pair<int,int>,std::allocator<std::pair<int,int>>> *)(this + 0xa8),
(pair *)&local_28);
std::vector<float,std::allocator<float>>::push_back
((vector<float,std::allocator<float>> *)(this + 0xc0),&local_2c);
}
return;
}
/* WARNING: Subroutine does not return */
__assert_fail("v0!=INDEX_INVALID && v1!= INDEX_INVALID && sharpness > 0.f",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/neighborhoodBuilder.cpp"
,0xd4,
"void OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::addCrease(Index, Index, float) [quash = false]"
);
}
|
|
66,209 |
void OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::addCrease<false>(int, int, float)
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/neighborhoodBuilder.cpp
|
inline void
NeighborhoodBuilder::addCrease(Index v0, Index v1, float sharpness) {
LocalIndex lv0 = findLocalIndex(v0);
LocalIndex lv1 = findLocalIndex(v1);
assert(v0!=INDEX_INVALID && v1!= INDEX_INVALID && sharpness > 0.f);
if (lv0 == LOCAL_INDEX_INVALID || lv1 == LOCAL_INDEX_INVALID)
return;
if (lv0 > lv1)
std::swap(lv0, lv1);
int ncreases = (int)_creaseSharpness.size();
for (int i = 0; i < ncreases; ++i)
if ((_creaseVerts[i].first == lv0) && (_creaseVerts[i].second == lv1)) {
if constexpr (quash) _creaseSharpness[i] = sharpness;
return;
}
_creaseVerts.push_back({ lv0, lv1 });
_creaseSharpness.push_back(sharpness);
}
|
O3
|
cpp
|
void OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::addCrease<false>(int, int, float):
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movss %xmm0, 0x4(%rsp)
movq 0x48(%rdi), %rdi
movq 0x50(%rbx), %rcx
subq %rdi, %rcx
movw $0xffff, %ax # imm = 0xFFFF
testl $0x3fffc, %ecx # imm = 0x3FFFC
je 0xa8711
shrl $0x2, %ecx
cmpw $0x1, %cx
adcl $0x0, %ecx
movzwl %cx, %r8d
xorl %ecx, %ecx
cmpl %esi, (%rdi,%rcx,4)
je 0xa86fe
incq %rcx
cmpq %rcx, %r8
jne 0xa86ed
movw $0xffff, %cx # imm = 0xFFFF
xorl %r9d, %r9d
cmpl %edx, (%rdi,%r9,4)
je 0xa8717
incq %r9
cmpq %r9, %r8
jne 0xa8701
jmp 0xa871a
movw $0xffff, %cx # imm = 0xFFFF
jmp 0xa871a
movl %r9d, %eax
cmpl $-0x1, %esi
je 0xa8801
cmpl $-0x1, %edx
je 0xa8801
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe 0xa8801
cmpw $-0x1, %cx
sete %dl
cmpw $-0x1, %ax
sete %sil
orb %dl, %sil
jne 0xa87fb
cmpw %ax, %cx
movl %eax, %edi
cmovbl %ecx, %edi
cmoval %ecx, %eax
movq 0xc8(%rbx), %rdx
subq 0xc0(%rbx), %rdx
shrq $0x2, %rdx
testl %edx, %edx
jle 0xa87a0
movq 0xa8(%rbx), %rsi
movzwl %di, %ecx
movzwl %ax, %eax
andl $0x7fffffff, %edx # imm = 0x7FFFFFFF
xorl %edi, %edi
cmpl %ecx, (%rsi,%rdi,8)
jne 0xa8791
cmpl %eax, 0x4(%rsi,%rdi,8)
je 0xa87fb
incq %rdi
cmpq %rdi, %rdx
jne 0xa8786
movss %xmm0, (%rsp)
jmp 0xa87ab
movss %xmm0, (%rsp)
movzwl %di, %ecx
movzwl %ax, %eax
leaq 0xa8(%rbx), %rdi
leaq 0x8(%rsp), %rsi
movl %ecx, (%rsi)
movl %eax, 0x4(%rsi)
callq 0x39340
movq 0xc8(%rbx), %rsi
cmpq 0xd0(%rbx), %rsi
je 0xa87e7
movss (%rsp), %xmm0
movss %xmm0, (%rsi)
addq $0x4, %rsi
movq %rsi, 0xc8(%rbx)
jmp 0xa87fb
addq $0xc0, %rbx
leaq 0x4(%rsp), %rdx
movq %rbx, %rdi
callq 0x3c060
addq $0x10, %rsp
popq %rbx
retq
leaq 0x1e518(%rip), %rdi # 0xc6d20
leaq 0x1dbc8(%rip), %rsi # 0xc63d7
leaq 0x1e545(%rip), %rcx # 0xc6d5b
movl $0xd4, %edx
callq 0x39540
|
_ZN10OpenSubdiv6v3_6_03Tmr19NeighborhoodBuilder9addCreaseILb0EEEviif:
push rbx
sub rsp, 10h
mov rbx, rdi
movss [rsp+18h+var_14], xmm0
mov rdi, [rdi+48h]
mov rcx, [rbx+50h]
sub rcx, rdi
mov ax, 0FFFFh
test ecx, 3FFFCh
jz short loc_A8711
shr ecx, 2
cmp cx, 1
adc ecx, 0
movzx r8d, cx
xor ecx, ecx
loc_A86ED:
cmp [rdi+rcx*4], esi
jz short loc_A86FE
inc rcx
cmp r8, rcx
jnz short loc_A86ED
mov cx, 0FFFFh
loc_A86FE:
xor r9d, r9d
loc_A8701:
cmp [rdi+r9*4], edx
jz short loc_A8717
inc r9
cmp r8, r9
jnz short loc_A8701
jmp short loc_A871A
loc_A8711:
mov cx, 0FFFFh
jmp short loc_A871A
loc_A8717:
mov eax, r9d
loc_A871A:
cmp esi, 0FFFFFFFFh
jz loc_A8801
cmp edx, 0FFFFFFFFh
jz loc_A8801
xorps xmm1, xmm1
ucomiss xmm0, xmm1
jbe loc_A8801
cmp cx, 0FFFFh
setz dl
cmp ax, 0FFFFh
setz sil
or sil, dl
jnz loc_A87FB
cmp cx, ax
mov edi, eax
cmovb edi, ecx
cmova eax, ecx
mov rdx, [rbx+0C8h]
sub rdx, [rbx+0C0h]
shr rdx, 2
test edx, edx
jle short loc_A87A0
mov rsi, [rbx+0A8h]
movzx ecx, di
movzx eax, ax
and edx, 7FFFFFFFh
xor edi, edi
loc_A8786:
cmp [rsi+rdi*8], ecx
jnz short loc_A8791
cmp [rsi+rdi*8+4], eax
jz short loc_A87FB
loc_A8791:
inc rdi
cmp rdx, rdi
jnz short loc_A8786
movss [rsp+18h+var_18], xmm0
jmp short loc_A87AB
loc_A87A0:
movss [rsp+18h+var_18], xmm0
movzx ecx, di
movzx eax, ax
loc_A87AB:
lea rdi, [rbx+0A8h]
lea rsi, [rsp+18h+var_10]
mov [rsi], ecx
mov [rsi+4], eax
call __ZNSt6vectorISt4pairIiiESaIS1_EE12emplace_backIJS1_EEERS1_DpOT_; std::vector<std::pair<int,int>>::emplace_back<std::pair<int,int>>(std::pair<int,int> &&)
mov rsi, [rbx+0C8h]
cmp rsi, [rbx+0D0h]
jz short loc_A87E7
movss xmm0, [rsp+18h+var_18]
movss dword ptr [rsi], xmm0
add rsi, 4
mov [rbx+0C8h], rsi
jmp short loc_A87FB
loc_A87E7:
add rbx, 0C0h
lea rdx, [rsp+18h+var_14]
mov rdi, rbx
call __ZNSt6vectorIfSaIfEE17_M_realloc_insertIJRKfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_; std::vector<float>::_M_realloc_insert<float const&>(__gnu_cxx::__normal_iterator<float *,std::vector<float>>,float const&)
loc_A87FB:
add rsp, 10h
pop rbx
retn
loc_A8801:
lea rdi, aV0IndexInvalid; "v0!=INDEX_INVALID && v1!= INDEX_INVALID"...
lea rsi, aWorkspaceLlm4b_48; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aVoidOpensubdiv_154; "void OpenSubdiv::v3_6_0::Tmr::Neighborh"...
mov edx, 0D4h
call ___assert_fail
|
__int16 OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::addCrease<false>(_QWORD *a1, int a2, int a3, float a4)
{
long long v5; // rdi
long long v6; // rcx
int v7; // eax
long long v8; // r8
long long v9; // rcx
long long v10; // r9
unsigned __int16 v11; // di
long long v12; // rsi
int v13; // ecx
long long v14; // rdi
float *v15; // rsi
float v17; // [rsp+0h] [rbp-18h]
_DWORD v18[5]; // [rsp+4h] [rbp-14h] BYREF
*(float *)v18 = a4;
v5 = a1[9];
v6 = a1[10] - v5;
LOWORD(v7) = -1;
if ( (v6 & 0x3FFFC) != 0 )
{
v8 = (unsigned __int16)(((unsigned __int16)((unsigned int)v6 >> 2) == 0) + (unsigned __int16)((unsigned int)v6 >> 2));
v9 = 0LL;
while ( *(_DWORD *)(v5 + 4 * v9) != a2 )
{
if ( v8 == ++v9 )
{
LOWORD(v9) = -1;
break;
}
}
v10 = 0LL;
while ( *(_DWORD *)(v5 + 4 * v10) != a3 )
{
if ( v8 == ++v10 )
goto LABEL_12;
}
LOWORD(v7) = v10;
}
else
{
LOWORD(v9) = -1;
}
LABEL_12:
if ( a2 == -1 || a3 == -1 || a4 <= 0.0 )
__assert_fail(
"v0!=INDEX_INVALID && v1!= INDEX_INVALID && sharpness > 0.f",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/neighborhoodBuilder.cpp",
212LL,
"void OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::addCrease(Index, Index, float) [quash = false]");
if ( (_WORD)v9 != 0xFFFF && (_WORD)v7 != 0xFFFF )
{
v11 = v7;
if ( (unsigned __int16)v9 < (unsigned __int16)v7 )
v11 = v9;
if ( (unsigned __int16)v9 > (unsigned __int16)v7 )
LOWORD(v7) = v9;
if ( (int)((a1[25] - a1[24]) >> 2) <= 0 )
{
v17 = a4;
v13 = v11;
v7 = (unsigned __int16)v7;
LABEL_27:
v18[1] = v13;
v18[2] = v7;
LOWORD(v7) = std::vector<std::pair<int,int>>::emplace_back<std::pair<int,int>>(a1 + 21);
v15 = (float *)a1[25];
if ( v15 == (float *)a1[26] )
{
LOWORD(v7) = std::vector<float>::_M_realloc_insert<float const&>(a1 + 24, v15, v18);
}
else
{
*v15 = v17;
a1[25] = v15 + 1;
}
}
else
{
v12 = a1[21];
v13 = v11;
v7 = (unsigned __int16)v7;
v14 = 0LL;
while ( *(_DWORD *)(v12 + 8 * v14) != v13 || *(_DWORD *)(v12 + 8 * v14 + 4) != (unsigned __int16)v7 )
{
if ( (((a1[25] - a1[24]) >> 2) & 0x7FFFFFFFLL) == ++v14 )
{
v17 = a4;
goto LABEL_27;
}
}
}
}
return v7;
}
|
addCrease<false>:
PUSH RBX
SUB RSP,0x10
MOV RBX,RDI
MOVSS dword ptr [RSP + 0x4],XMM0
MOV RDI,qword ptr [RDI + 0x48]
MOV RCX,qword ptr [RBX + 0x50]
SUB RCX,RDI
MOV AX,0xffff
TEST ECX,0x3fffc
JZ 0x001a8711
SHR ECX,0x2
CMP CX,0x1
ADC ECX,0x0
MOVZX R8D,CX
XOR ECX,ECX
LAB_001a86ed:
CMP dword ptr [RDI + RCX*0x4],ESI
JZ 0x001a86fe
INC RCX
CMP R8,RCX
JNZ 0x001a86ed
MOV CX,0xffff
LAB_001a86fe:
XOR R9D,R9D
LAB_001a8701:
CMP dword ptr [RDI + R9*0x4],EDX
JZ 0x001a8717
INC R9
CMP R8,R9
JNZ 0x001a8701
JMP 0x001a871a
LAB_001a8711:
MOV CX,0xffff
JMP 0x001a871a
LAB_001a8717:
MOV EAX,R9D
LAB_001a871a:
CMP ESI,-0x1
JZ 0x001a8801
CMP EDX,-0x1
JZ 0x001a8801
XORPS XMM1,XMM1
UCOMISS XMM0,XMM1
JBE 0x001a8801
CMP CX,-0x1
SETZ DL
CMP AX,-0x1
SETZ SIL
OR SIL,DL
JNZ 0x001a87fb
CMP CX,AX
MOV EDI,EAX
CMOVC EDI,ECX
CMOVA EAX,ECX
MOV RDX,qword ptr [RBX + 0xc8]
SUB RDX,qword ptr [RBX + 0xc0]
SHR RDX,0x2
TEST EDX,EDX
JLE 0x001a87a0
MOV RSI,qword ptr [RBX + 0xa8]
MOVZX ECX,DI
MOVZX EAX,AX
AND EDX,0x7fffffff
XOR EDI,EDI
LAB_001a8786:
CMP dword ptr [RSI + RDI*0x8],ECX
JNZ 0x001a8791
CMP dword ptr [RSI + RDI*0x8 + 0x4],EAX
JZ 0x001a87fb
LAB_001a8791:
INC RDI
CMP RDX,RDI
JNZ 0x001a8786
MOVSS dword ptr [RSP],XMM0
JMP 0x001a87ab
LAB_001a87a0:
MOVSS dword ptr [RSP],XMM0
MOVZX ECX,DI
MOVZX EAX,AX
LAB_001a87ab:
LEA RDI,[RBX + 0xa8]
LEA RSI,[RSP + 0x8]
MOV dword ptr [RSI],ECX
MOV dword ptr [RSI + 0x4],EAX
CALL 0x00139340
MOV RSI,qword ptr [RBX + 0xc8]
CMP RSI,qword ptr [RBX + 0xd0]
JZ 0x001a87e7
MOVSS XMM0,dword ptr [RSP]
MOVSS dword ptr [RSI],XMM0
ADD RSI,0x4
MOV qword ptr [RBX + 0xc8],RSI
JMP 0x001a87fb
LAB_001a87e7:
ADD RBX,0xc0
LEA RDX,[RSP + 0x4]
MOV RDI,RBX
CALL 0x0013c060
LAB_001a87fb:
ADD RSP,0x10
POP RBX
RET
LAB_001a8801:
LEA RDI,[0x1c6d20]
LEA RSI,[0x1c63d7]
LEA RCX,[0x1c6d5b]
MOV EDX,0xd4
CALL 0x00139540
|
/* void OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::addCrease<false>(int, int, float) */
void __thiscall
OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::addCrease<false>
(NeighborhoodBuilder *this,int param_1,int param_2,float param_3)
{
long lVar1;
float *pfVar2;
ushort uVar3;
ushort uVar4;
uint uVar5;
ulong uVar6;
ulong uVar7;
float local_14;
uint local_10;
uint local_c;
lVar1 = *(long *)(this + 0x48);
local_c = 0xffff;
if ((*(long *)(this + 0x50) - lVar1 & 0x3fffcU) == 0) {
uVar5 = 0xffff;
}
else {
uVar5 = (uint)(*(long *)(this + 0x50) - lVar1) >> 2;
uVar7 = (ulong)(uVar5 + ((short)uVar5 == 0) & 0xffff);
uVar6 = 0;
do {
if (*(int *)(lVar1 + uVar6 * 4) == param_1) goto LAB_001a86fe;
uVar6 = uVar6 + 1;
} while (uVar7 != uVar6);
uVar6 = 0xffff;
LAB_001a86fe:
uVar5 = (uint)uVar6;
uVar6 = 0;
do {
if (*(int *)(lVar1 + uVar6 * 4) == param_2) {
local_c = (uint)uVar6;
break;
}
uVar6 = uVar6 + 1;
} while (uVar7 != uVar6);
}
local_14 = param_3;
if (((param_1 != -1) && (param_2 != -1)) && (0.0 < param_3)) {
uVar4 = (ushort)uVar5;
uVar3 = (ushort)local_c;
if (uVar3 != 0xffff && uVar4 != 0xffff) {
local_10 = local_c;
if (uVar4 < uVar3) {
local_10 = uVar5;
}
if (uVar3 < uVar4) {
local_c = uVar5;
}
uVar5 = (uint)((ulong)(*(long *)(this + 200) - *(long *)(this + 0xc0)) >> 2);
if (0 < (int)uVar5) {
uVar6 = 0;
do {
if ((*(uint *)(*(long *)(this + 0xa8) + uVar6 * 8) == (local_10 & 0xffff)) &&
(*(uint *)(*(long *)(this + 0xa8) + 4 + uVar6 * 8) == (local_c & 0xffff))) {
return;
}
uVar6 = uVar6 + 1;
} while ((uVar5 & 0x7fffffff) != uVar6);
}
local_c = local_c & 0xffff;
local_10 = local_10 & 0xffff;
std::vector<std::pair<int,int>,std::allocator<std::pair<int,int>>>::
emplace_back<std::pair<int,int>>
((vector<std::pair<int,int>,std::allocator<std::pair<int,int>>> *)(this + 0xa8),
(pair *)&local_10);
pfVar2 = *(float **)(this + 200);
if (pfVar2 == *(float **)(this + 0xd0)) {
std::vector<float,std::allocator<float>>::_M_realloc_insert<float_const&>
((vector<float,std::allocator<float>> *)(this + 0xc0),pfVar2,&local_14);
}
else {
*pfVar2 = param_3;
*(float **)(this + 200) = pfVar2 + 1;
}
}
return;
}
/* WARNING: Subroutine does not return */
__assert_fail("v0!=INDEX_INVALID && v1!= INDEX_INVALID && sharpness > 0.f",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/neighborhoodBuilder.cpp"
,0xd4,
"void OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::addCrease(Index, Index, float) [quash = false]"
);
}
|
|
66,210 |
check_skipped_lsn
|
eloqsql/storage/maria/ma_loghandler.c
|
void check_skipped_lsn(MARIA_HA *info, LSN lsn, my_bool index_file,
pgcache_page_no_t page)
{
if (lsn <= log_descriptor.horizon)
{
DBUG_PRINT("info", ("Page is up to date, skipping redo"));
}
else
{
/* Give error, but don't flood the log */
if (skipped_lsn_err_count++ < MAX_LSN_ERRORS &&
! info->s->redo_error_given++)
{
eprint(tracef, "Table %s has wrong LSN: " LSN_FMT " on page: %llu",
(index_file ? info->s->data_file_name.str :
info->s->index_file_name.str),
LSN_IN_PARTS(lsn), (ulonglong) page);
recovery_found_crashed_tables++;
}
}
}
|
O0
|
c
|
check_skipped_lsn:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movb %dl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movb %al, -0x11(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rax
cmpq 0xc24014(%rip), %rax # 0xc7a008
jg 0x55fff
jmp 0x55ff8
jmp 0x55ffa
jmp 0x560cb
leaq 0xc24402(%rip), %rax # 0xc7a408
movl (%rax), %eax
movl %eax, %edx
addl $0x1, %edx
leaq 0xc243f4(%rip), %rcx # 0xc7a408
movl %edx, (%rcx)
cmpl $0xa, %eax
jae 0x560c9
movq -0x8(%rbp), %rax
movq (%rax), %rcx
movb 0x7eb(%rcx), %al
movb %al, %dl
addb $0x1, %dl
movb %dl, 0x7eb(%rcx)
cmpb $0x0, %al
jne 0x560c9
leaq 0xc243b2(%rip), %rax # 0xc7a3f8
movq (%rax), %rax
movq %rax, -0x28(%rbp)
movsbl -0x11(%rbp), %eax
cmpl $0x0, %eax
je 0x5606a
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x5c0(%rax), %rax
movq %rax, -0x30(%rbp)
jmp 0x5607c
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x5d0(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rdx
movq -0x10(%rbp), %rax
sarq $0x20, %rax
movl %eax, %ecx
movabsq $0xffffffff, %rax # imm = 0xFFFFFFFF
andq -0x10(%rbp), %rax
movl %eax, %r8d
movq -0x20(%rbp), %r9
leaq 0xfbcee(%rip), %rsi # 0x151d98
movb $0x0, %al
callq 0x5daf0
leaq 0xc24348(%rip), %rax # 0xc7a400
movq (%rax), %rcx
addq $0x1, %rcx
leaq 0xc2433a(%rip), %rax # 0xc7a400
movq %rcx, (%rax)
jmp 0x560cb
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
check_skipped_lsn:
push rbp
mov rbp, rsp
sub rsp, 30h
mov al, dl
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_11], al
mov [rbp+var_20], rcx
mov rax, [rbp+var_10]
cmp rax, cs:qword_C7A008
jg short loc_55FFF
jmp short $+2
loc_55FF8:
jmp short $+2
loc_55FFA:
jmp loc_560CB
loc_55FFF:
lea rax, skipped_lsn_err_count
mov eax, [rax]
mov edx, eax
add edx, 1
lea rcx, skipped_lsn_err_count
mov [rcx], edx
cmp eax, 0Ah
jnb loc_560C9
mov rax, [rbp+var_8]
mov rcx, [rax]
mov al, [rcx+7EBh]
mov dl, al
add dl, 1
mov [rcx+7EBh], dl
cmp al, 0
jnz loc_560C9
lea rax, tracef
mov rax, [rax]
mov [rbp+var_28], rax
movsx eax, [rbp+var_11]
cmp eax, 0
jz short loc_5606A
mov rax, [rbp+var_8]
mov rax, [rax]
mov rax, [rax+5C0h]
mov [rbp+var_30], rax
jmp short loc_5607C
loc_5606A:
mov rax, [rbp+var_8]
mov rax, [rax]
mov rax, [rax+5D0h]
mov [rbp+var_30], rax
loc_5607C:
mov rdi, [rbp+var_28]
mov rdx, [rbp+var_30]
mov rax, [rbp+var_10]
sar rax, 20h
mov ecx, eax
mov rax, 0FFFFFFFFh
and rax, [rbp+var_10]
mov r8d, eax
mov r9, [rbp+var_20]
lea rsi, aTableSHasWrong; "Table %s has wrong LSN: (%u,0x%x) on pa"...
mov al, 0
call eprint
lea rax, recovery_found_crashed_tables
mov rcx, [rax]
add rcx, 1
lea rax, recovery_found_crashed_tables
mov [rax], rcx
loc_560C9:
jmp short $+2
loc_560CB:
add rsp, 30h
pop rbp
retn
|
char check_skipped_lsn(long long a1, long long a2, char a3, int a4)
{
_QWORD *v4; // rax
LOBYTE(v4) = a2;
if ( a2 > qword_C7A008 )
{
LODWORD(v4) = skipped_lsn_err_count++;
if ( (unsigned int)v4 < 0xA )
{
LOBYTE(v4) = *(_BYTE *)(*(_QWORD *)a1 + 2027LL);
*(_BYTE *)(*(_QWORD *)a1 + 2027LL) = (_BYTE)v4 + 1;
if ( !(_BYTE)v4 )
{
if ( a3 )
eprint(
tracef,
(unsigned int)"Table %s has wrong LSN: (%u,0x%x) on page: %llu",
*(_QWORD *)(*(_QWORD *)a1 + 1472LL),
HIDWORD(a2),
a2,
a4,
*(_QWORD *)(*(_QWORD *)a1 + 1472LL));
else
eprint(
tracef,
(unsigned int)"Table %s has wrong LSN: (%u,0x%x) on page: %llu",
*(_QWORD *)(*(_QWORD *)a1 + 1488LL),
HIDWORD(a2),
a2,
a4,
*(_QWORD *)(*(_QWORD *)a1 + 1488LL));
v4 = &recovery_found_crashed_tables;
++recovery_found_crashed_tables;
}
}
}
return (char)v4;
}
|
check_skipped_lsn:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV AL,DL
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV byte ptr [RBP + -0x11],AL
MOV qword ptr [RBP + -0x20],RCX
MOV RAX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [0x00d7a008]
JG 0x00155fff
JMP 0x00155ff8
LAB_00155ff8:
JMP 0x00155ffa
LAB_00155ffa:
JMP 0x001560cb
LAB_00155fff:
LEA RAX,[0xd7a408]
MOV EAX,dword ptr [RAX]
MOV EDX,EAX
ADD EDX,0x1
LEA RCX,[0xd7a408]
MOV dword ptr [RCX],EDX
CMP EAX,0xa
JNC 0x001560c9
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX]
MOV AL,byte ptr [RCX + 0x7eb]
MOV DL,AL
ADD DL,0x1
MOV byte ptr [RCX + 0x7eb],DL
CMP AL,0x0
JNZ 0x001560c9
LEA RAX,[0xd7a3f8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x28],RAX
MOVSX EAX,byte ptr [RBP + -0x11]
CMP EAX,0x0
JZ 0x0015606a
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x5c0]
MOV qword ptr [RBP + -0x30],RAX
JMP 0x0015607c
LAB_0015606a:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x5d0]
MOV qword ptr [RBP + -0x30],RAX
LAB_0015607c:
MOV RDI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x10]
SAR RAX,0x20
MOV ECX,EAX
MOV RAX,0xffffffff
AND RAX,qword ptr [RBP + -0x10]
MOV R8D,EAX
MOV R9,qword ptr [RBP + -0x20]
LEA RSI,[0x251d98]
MOV AL,0x0
CALL 0x0015daf0
LEA RAX,[0xd7a400]
MOV RCX,qword ptr [RAX]
ADD RCX,0x1
LEA RAX,[0xd7a400]
MOV qword ptr [RAX],RCX
LAB_001560c9:
JMP 0x001560cb
LAB_001560cb:
ADD RSP,0x30
POP RBP
RET
|
void check_skipped_lsn(long *param_1,ulong param_2,char param_3,int8 param_4)
{
char cVar1;
uint uVar2;
bool bVar3;
int8 local_38;
if (((DAT_00d7a008 < (long)param_2) &&
(uVar2 = skipped_lsn_err_count + 1, bVar3 = skipped_lsn_err_count < 10,
skipped_lsn_err_count = uVar2, bVar3)) &&
(cVar1 = *(char *)(*param_1 + 0x7eb), *(char *)(*param_1 + 0x7eb) = cVar1 + '\x01',
cVar1 == '\0')) {
if (param_3 == '\0') {
local_38 = *(int8 *)(*param_1 + 0x5d0);
}
else {
local_38 = *(int8 *)(*param_1 + 0x5c0);
}
eprint(tracef,"Table %s has wrong LSN: (%u,0x%x) on page: %llu",local_38,
(long)param_2 >> 0x20 & 0xffffffff,param_2 & 0xffffffff,param_4);
recovery_found_crashed_tables = recovery_found_crashed_tables + 1;
}
return;
}
|
|
66,211 |
my_fill_mb2
|
eloqsql/strings/ctype-ucs2.c
|
static void
my_fill_mb2(CHARSET_INFO *cs, char *s, size_t slen, int fill)
{
char buf[10], *last;
size_t buflen, remainder;
DBUG_ASSERT((slen % 2) == 0);
buflen= my_ci_wc_mb(cs, (my_wc_t) fill, (uchar*) buf,
(uchar*) buf + sizeof(buf));
DBUG_ASSERT(buflen > 0);
/*
"last" in the last position where a sequence of "buflen" bytes can start.
*/
for (last= s + slen - buflen; s <= last; s+= buflen)
{
/* Enough space for the character */
memcpy(s, buf, buflen);
}
/*
If there are some more space which is not enough
for the whole multibyte character, then add trailing zeros.
*/
if ((remainder= last + buflen - s) > 0)
bzero(s, (size_t) remainder);
}
|
O0
|
c
|
my_fill_mb2:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x20(%rbp)
movq %rsi, -0x28(%rbp)
movq %rdx, -0x30(%rbp)
movl %ecx, -0x34(%rbp)
jmp 0x62036
movq -0x20(%rbp), %rax
movq 0xb8(%rax), %rax
movq 0x30(%rax), %rax
movq -0x20(%rbp), %rdi
movslq -0x34(%rbp), %rsi
leaq -0x12(%rbp), %rdx
leaq -0x12(%rbp), %rcx
addq $0xa, %rcx
callq *%rax
cltq
movq %rax, -0x48(%rbp)
jmp 0x62063
movq -0x28(%rbp), %rax
addq -0x30(%rbp), %rax
xorl %ecx, %ecx
subq -0x48(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x28(%rbp), %rax
cmpq -0x40(%rbp), %rax
ja 0x620a1
movq -0x28(%rbp), %rdi
leaq -0x12(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq 0x25230
movq -0x48(%rbp), %rax
addq -0x28(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x62078
movq -0x40(%rbp), %rax
addq -0x48(%rbp), %rax
movq -0x28(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x50(%rbp)
cmpq $0x0, %rax
jbe 0x620c9
movq -0x28(%rbp), %rdi
movq -0x50(%rbp), %rdx
xorl %esi, %esi
callq 0x25190
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x620e1
addq $0x50, %rsp
popq %rbp
retq
callq 0x25330
nopw %cs:(%rax,%rax)
|
my_fill_mb2:
push rbp
mov rbp, rsp
sub rsp, 50h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_20], rdi
mov [rbp+var_28], rsi
mov [rbp+var_30], rdx
mov [rbp+var_34], ecx
jmp short $+2
loc_62036:
mov rax, [rbp+var_20]
mov rax, [rax+0B8h]
mov rax, [rax+30h]
mov rdi, [rbp+var_20]
movsxd rsi, [rbp+var_34]
lea rdx, [rbp+var_12]
lea rcx, [rbp+var_12]
add rcx, 0Ah
call rax
cdqe
mov [rbp+var_48], rax
jmp short $+2
loc_62063:
mov rax, [rbp+var_28]
add rax, [rbp+var_30]
xor ecx, ecx
sub rcx, [rbp+var_48]
add rax, rcx
mov [rbp+var_40], rax
loc_62078:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_40]
ja short loc_620A1
mov rdi, [rbp+var_28]
lea rsi, [rbp+var_12]
mov rdx, [rbp+var_48]
call _memcpy
mov rax, [rbp+var_48]
add rax, [rbp+var_28]
mov [rbp+var_28], rax
jmp short loc_62078
loc_620A1:
mov rax, [rbp+var_40]
add rax, [rbp+var_48]
mov rcx, [rbp+var_28]
sub rax, rcx
mov [rbp+var_50], rax
cmp rax, 0
jbe short loc_620C9
mov rdi, [rbp+var_28]
mov rdx, [rbp+var_50]
xor esi, esi
call _memset
loc_620C9:
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_620E1
add rsp, 50h
pop rbp
retn
loc_620E1:
call ___stack_chk_fail
|
unsigned long long my_fill_mb2(long long a1, unsigned long long a2, long long a3, int a4)
{
long long i; // [rsp+8h] [rbp-48h]
unsigned long long v7; // [rsp+28h] [rbp-28h]
_BYTE v8[10]; // [rsp+3Eh] [rbp-12h] BYREF
unsigned long long v9; // [rsp+48h] [rbp-8h] BYREF
v9 = __readfsqword(0x28u);
v7 = a2;
for ( i = (*(int ( **)(long long, _QWORD, _BYTE *, unsigned long long *))(*(_QWORD *)(a1 + 184) + 48LL))(
a1,
a4,
v8,
&v9); v7 <= a3 + a2 - i; v7 += i )
memcpy(v7, v8, i);
if ( a3 + a2 != v7 )
memset(v7, 0LL, a3 + a2 - v7);
return __readfsqword(0x28u);
}
|
my_fill_mb2:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x20],RDI
MOV qword ptr [RBP + -0x28],RSI
MOV qword ptr [RBP + -0x30],RDX
MOV dword ptr [RBP + -0x34],ECX
JMP 0x00162036
LAB_00162036:
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0xb8]
MOV RAX,qword ptr [RAX + 0x30]
MOV RDI,qword ptr [RBP + -0x20]
MOVSXD RSI,dword ptr [RBP + -0x34]
LEA RDX,[RBP + -0x12]
LEA RCX,[RBP + -0x12]
ADD RCX,0xa
CALL RAX
CDQE
MOV qword ptr [RBP + -0x48],RAX
JMP 0x00162063
LAB_00162063:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,qword ptr [RBP + -0x30]
XOR ECX,ECX
SUB RCX,qword ptr [RBP + -0x48]
ADD RAX,RCX
MOV qword ptr [RBP + -0x40],RAX
LAB_00162078:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x40]
JA 0x001620a1
MOV RDI,qword ptr [RBP + -0x28]
LEA RSI,[RBP + -0x12]
MOV RDX,qword ptr [RBP + -0x48]
CALL 0x00125230
MOV RAX,qword ptr [RBP + -0x48]
ADD RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x28],RAX
JMP 0x00162078
LAB_001620a1:
MOV RAX,qword ptr [RBP + -0x40]
ADD RAX,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RBP + -0x28]
SUB RAX,RCX
MOV qword ptr [RBP + -0x50],RAX
CMP RAX,0x0
JBE 0x001620c9
MOV RDI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x50]
XOR ESI,ESI
CALL 0x00125190
LAB_001620c9:
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001620e1
ADD RSP,0x50
POP RBP
RET
LAB_001620e1:
CALL 0x00125330
|
void my_fill_mb2(long param_1,void *param_2,long param_3,int param_4)
{
int iVar1;
size_t sVar2;
void *pvVar3;
long in_FS_OFFSET;
void *local_30;
int1 local_1a [10];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
iVar1 = (**(code **)(*(long *)(param_1 + 0xb8) + 0x30))(param_1,(long)param_4,local_1a);
sVar2 = (size_t)iVar1;
pvVar3 = (void *)((long)param_2 + (param_3 - sVar2));
for (local_30 = param_2; local_30 <= pvVar3; local_30 = (void *)(sVar2 + (long)local_30)) {
memcpy(local_30,local_1a,sVar2);
}
sVar2 = (long)pvVar3 + (sVar2 - (long)local_30);
if (sVar2 != 0) {
memset(local_30,0,sVar2);
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
66,212 |
handler::ha_rnd_init(bool)
|
eloqsql/sql/handler.h
|
int ha_rnd_init(bool scan) __attribute__ ((warn_unused_result))
{
DBUG_EXECUTE_IF("ha_rnd_init_fail", return HA_ERR_TABLE_DEF_CHANGED;);
int result;
DBUG_ENTER("ha_rnd_init");
DBUG_ASSERT(inited==NONE || (inited==RND && scan));
inited= (result= rnd_init(scan)) ? NONE: RND;
end_range= NULL;
DBUG_RETURN(result);
}
|
O0
|
c
|
handler::ha_rnd_init(bool):
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movb %sil, %al
movq %rdi, -0x8(%rbp)
andb $0x1, %al
movb %al, -0x9(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0x9a5e
jmp 0x9a60
jmp 0x9a62
movq -0x18(%rbp), %rdi
movb -0x9(%rbp), %cl
movq (%rdi), %rax
andb $0x1, %cl
movzbl %cl, %esi
callq *0x4e0(%rax)
movl %eax, %esi
movq -0x18(%rbp), %rax
movl %esi, -0x10(%rbp)
movl $0x2, %ecx
xorl %edx, %edx
cmpl $0x0, %esi
cmovnel %edx, %ecx
movl %ecx, 0x1b0(%rax)
movq $0x0, 0x170(%rax)
movl -0x10(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
_ZN7handler11ha_rnd_initEb:
push rbp
mov rbp, rsp
sub rsp, 20h
mov al, sil
mov [rbp+var_8], rdi
and al, 1
mov [rbp+var_9], al
mov rax, [rbp+var_8]
mov [rbp+var_18], rax
jmp short $+2
loc_9A5E:
jmp short $+2
loc_9A60:
jmp short $+2
loc_9A62:
mov rdi, [rbp+var_18]
mov cl, [rbp+var_9]
mov rax, [rdi]
and cl, 1
movzx esi, cl
call qword ptr [rax+4E0h]
mov esi, eax
mov rax, [rbp+var_18]
mov [rbp+var_10], esi
mov ecx, 2
xor edx, edx
cmp esi, 0
cmovnz ecx, edx
mov [rax+1B0h], ecx
mov qword ptr [rax+170h], 0
mov eax, [rbp+var_10]
add rsp, 20h
pop rbp
retn
|
long long handler::ha_rnd_init(handler *this, char a2)
{
unsigned int v2; // esi
int v3; // ecx
v2 = (*(long long ( **)(handler *, _QWORD))(*(_QWORD *)this + 1248LL))(this, a2 & 1);
v3 = 2;
if ( v2 )
v3 = 0;
*((_DWORD *)this + 108) = v3;
*((_QWORD *)this + 46) = 0LL;
return v2;
}
|
ha_rnd_init:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV AL,SIL
MOV qword ptr [RBP + -0x8],RDI
AND AL,0x1
MOV byte ptr [RBP + -0x9],AL
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x18],RAX
JMP 0x00109a5e
LAB_00109a5e:
JMP 0x00109a60
LAB_00109a60:
JMP 0x00109a62
LAB_00109a62:
MOV RDI,qword ptr [RBP + -0x18]
MOV CL,byte ptr [RBP + -0x9]
MOV RAX,qword ptr [RDI]
AND CL,0x1
MOVZX ESI,CL
CALL qword ptr [RAX + 0x4e0]
MOV ESI,EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RBP + -0x10],ESI
MOV ECX,0x2
XOR EDX,EDX
CMP ESI,0x0
CMOVNZ ECX,EDX
MOV dword ptr [RAX + 0x1b0],ECX
MOV qword ptr [RAX + 0x170],0x0
MOV EAX,dword ptr [RBP + -0x10]
ADD RSP,0x20
POP RBP
RET
|
/* handler::ha_rnd_init(bool) */
int handler::ha_rnd_init(bool param_1)
{
int iVar1;
int4 uVar2;
int8 in_RCX;
int8 in_RDX;
byte in_SIL;
int7 in_register_00000039;
long *plVar3;
plVar3 = (long *)CONCAT71(in_register_00000039,param_1);
iVar1 = (**(code **)(*plVar3 + 0x4e0))
(plVar3,in_SIL & 1,in_RDX,
CONCAT71((int7)((ulong)in_RCX >> 8),in_SIL) & 0xffffffffffffff01);
uVar2 = 2;
if (iVar1 != 0) {
uVar2 = 0;
}
*(int4 *)(plVar3 + 0x36) = uVar2;
plVar3[0x2e] = 0;
return iVar1;
}
|
|
66,213 |
common_chat_params_init_functionary_v3_1_llama_3_1(minja::chat_template const&, templates_params const&)
|
llama.cpp/common/chat.cpp
|
static common_chat_params common_chat_params_init_functionary_v3_1_llama_3_1(const common_chat_template & tmpl, const struct templates_params & inputs) {
// https://github.com/MeetKai/functionary/blob/main/tests/prompt_test_v3-llama3.1.txt
common_chat_params data;
json tools = inputs.tools.is_null() ? inputs.tools : json::array();
std::string python_code_argument_name;
auto has_raw_python = false;
data.grammar_lazy = inputs.tool_choice != COMMON_CHAT_TOOL_CHOICE_REQUIRED;
data.grammar = build_grammar([&](const common_grammar_builder & builder) {
std::vector<std::string> tool_rules;
foreach_function(inputs.tools, [&](const json & tool) {
const auto & function = tool.at("function");
const auto & parameters = function.at("parameters");
std::string name = function.at("name");
if (name == "python" || name == "ipython") {
if (!parameters.contains("type")) {
throw std::runtime_error("Missing type in python tool");
}
has_raw_python = true;
const auto & type = parameters.at("type");
if (type == "object") {
auto properties = parameters.at("properties");
for (auto it = properties.begin(); it != properties.end(); ++it) {
if (it.value().at("type") == "string") {
if (!python_code_argument_name.empty()) {
throw std::runtime_error("Multiple string arguments found in python tool");
}
python_code_argument_name = it.key();
}
}
if (python_code_argument_name.empty()) {
throw std::runtime_error("No string argument found in python tool");
}
} else if (type != "string") {
throw std::runtime_error("Invalid type in python tool: " + type.dump());
}
}
tool_rules.push_back(builder.add_rule(name + "-call", "\"<function=" + name + ">\" " + builder.add_schema(name + "-args", parameters) + " \"</function>\" space"));
});
if (has_raw_python) {
tool_rules.push_back(builder.add_rule("python-call", "\"<|python_tag|>\" .*"));
data.grammar_triggers.push_back({COMMON_GRAMMAR_TRIGGER_TYPE_WORD, "<|python_tag|>"});
data.preserved_tokens.push_back("<|python_tag|>");
}
auto tool_call = builder.add_rule("tool_call", string_join(tool_rules, " | ")) + " space";
builder.add_rule("root", inputs.parallel_tool_calls ? "(" + tool_call + ")+" : tool_call);
data.grammar_triggers.push_back({COMMON_GRAMMAR_TRIGGER_TYPE_WORD, "<function="});
});
data.prompt = apply(tmpl, inputs.messages, inputs.tools.empty() ? json() : inputs.tools, inputs.add_generation_prompt);
// TODO: if (has_raw_python)
data.format = COMMON_CHAT_FORMAT_FUNCTIONARY_V3_1_LLAMA_3_1;
return data;
}
|
O3
|
cpp
|
common_chat_params_init_functionary_v3_1_llama_3_1(minja::chat_template const&, templates_params const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdx, %r14
movq %rsi, %rbp
movq %rdi, %rbx
movl $0x0, (%rdi)
leaq 0x18(%rdi), %rax
movq %rax, 0x8(%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rdi)
movb %al, 0x18(%rdi)
leaq 0x38(%rdi), %rcx
movq %rcx, 0x28(%rdi)
movq %rax, 0x30(%rdi)
movb %al, 0x38(%rdi)
movb %al, 0x48(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%rdi)
movups %xmm0, 0x60(%rdi)
movups %xmm0, 0x70(%rdi)
movups %xmm0, 0x80(%rdi)
movq %rax, 0x90(%rdi)
leaq 0x10(%rdx), %r12
cmpb %al, 0x10(%rdx)
je 0x9ee99
leaq 0x58(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0x2, %r8d
callq 0xb46e4
jmp 0x9eea6
leaq 0x58(%rsp), %rdi
movq %r12, %rsi
callq 0x8c93c
leaq 0x78(%rsp), %r15
movq %r15, -0x10(%r15)
xorl %eax, %eax
movq %rax, -0x8(%r15)
movb %al, (%r15)
movb %al, 0x7(%rsp)
cmpl $0x1, 0x20(%r14)
setne 0x48(%rbx)
movq %rax, 0x10(%rsp)
movl $0x20, %edi
callq 0x21250
movq %r14, (%rax)
leaq 0x7(%rsp), %rcx
movq %rcx, 0x8(%rax)
leaq 0x68(%rsp), %rcx
movq %rcx, 0x10(%rax)
movq %rbx, 0x18(%rax)
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
leaq 0xb360(%rip), %rax # 0xaa25c
movq %rax, 0x18(%rsi)
leaq 0xbb25(%rip), %rax # 0xaaa2c
movq %rax, 0x10(%rsi)
leaq 0x28(%rsp), %rdx
movb $0x0, (%rdx)
leaq 0x38(%rsp), %rdi
callq 0x1002d2
leaq 0x28(%rbx), %rdi
leaq 0x38(%rsp), %r13
movq %r13, %rsi
callq 0x219a0
movq (%r13), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x9ef49
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x211a0
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0x9ef62
leaq 0x8(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movzbl (%r12), %eax
testl %eax, %eax
je 0x9ef94
cmpl $0x2, %eax
je 0x9ef75
cmpl $0x1, %eax
jne 0x9ef82
movq 0x18(%r14), %rax
movq (%rax), %rcx
cmpq 0x8(%rax), %rcx
je 0x9ef94
movq %rbp, %r13
leaq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x8c93c
jmp 0x9efc4
movq %rbp, %r13
leaq 0x8(%rsp), %r12
movb $0x0, (%r12)
movq $0x0, 0x8(%r12)
movq %r12, %rdi
movl $0x1, %esi
callq 0x886ee
movq %r12, %rdi
movl $0x1, %esi
callq 0x886ee
movzbl 0x60(%r14), %ebp
leaq 0x28(%rsp), %r12
movb $0x0, (%r12)
movq $0x0, 0x8(%r12)
movq %r12, %rdi
movl $0x1, %esi
callq 0x886ee
movq %r12, %rdi
movl $0x1, %esi
callq 0x886ee
leaq 0x38(%rsp), %rdi
leaq 0x8(%rsp), %rcx
movq %r13, %rsi
movq %r14, %rdx
movl %ebp, %r8d
movq %r12, %r9
callq 0x9fb09
leaq 0x8(%rbx), %rdi
leaq 0x38(%rsp), %r14
movq %r14, %rsi
callq 0x219a0
movq (%r14), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x9f03c
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x211a0
leaq 0x28(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x886ee
movq %r14, %rdi
callq 0x8ce08
leaq 0x8(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x886ee
movq %r14, %rdi
callq 0x8ce08
movl $0x9, (%rbx)
movq 0x68(%rsp), %rdi
cmpq %r15, %rdi
je 0x9f087
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x211a0
leaq 0x58(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x886ee
movq %rbx, %rdi
callq 0x8ce08
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9f10d
jmp 0x9f105
movq %rax, %r14
leaq 0x28(%rsp), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x886ee
movq %r12, %rdi
callq 0x8ce08
leaq 0x8(%rsp), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x886ee
movq %r12, %rdi
callq 0x8ce08
jmp 0x9f110
movq %rax, %r14
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0x9f110
leaq 0x8(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x9f110
movq %rax, %rdi
callq 0x2a927
movq %rax, %r14
movq 0x68(%rsp), %rdi
cmpq %r15, %rdi
je 0x9f127
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x211a0
leaq 0x58(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x886ee
movq %r15, %rdi
callq 0x8ce08
jmp 0x9f143
movq %rax, %r14
movq %rbx, %rdi
callq 0xb4f9a
movq %r14, %rdi
callq 0x21c10
|
_ZL50common_chat_params_init_functionary_v3_1_llama_3_1RKN5minja13chat_templateERK16templates_params:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 88h
mov r14, rdx
mov rbp, rsi
mov rbx, rdi
mov dword ptr [rdi], 0
lea rax, [rdi+18h]
mov [rdi+8], rax
xor eax, eax
mov [rdi+10h], rax
mov [rdi+18h], al
lea rcx, [rdi+38h]
mov [rdi+28h], rcx
mov [rdi+30h], rax
mov [rdi+38h], al
mov [rdi+48h], al
xorps xmm0, xmm0
movups xmmword ptr [rdi+50h], xmm0
movups xmmword ptr [rdi+60h], xmm0
movups xmmword ptr [rdi+70h], xmm0
movups xmmword ptr [rdi+80h], xmm0
mov [rdi+90h], rax
lea r12, [rdx+10h]
cmp [rdx+10h], al
jz short loc_9EE99
lea rdi, [rsp+0B8h+var_60]
xor esi, esi
xor edx, edx
xor ecx, ecx
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)
jmp short loc_9EEA6
loc_9EE99:
lea rdi, [rsp+0B8h+var_60]
mov rsi, r12
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&)
loc_9EEA6:
lea r15, [rsp+0B8h+var_40]
mov [r15-10h], r15
xor eax, eax
mov [r15-8], rax
mov [r15], al
mov [rsp+0B8h+var_B1], al
cmp dword ptr [r14+20h], 1
setnz byte ptr [rbx+48h]
mov [rsp+0B8h+var_A8], rax
mov edi, 20h ; ' '; unsigned __int64
call __Znwm; operator new(ulong)
mov [rax], r14
lea rcx, [rsp+0B8h+var_B1]
mov [rax+8], rcx
lea rcx, [rsp+0B8h+var_50]
mov [rax+10h], rcx
mov [rax+18h], rbx
lea rsi, [rsp+0B8h+var_B0]
mov [rsi], rax
lea rax, _ZNSt17_Function_handlerIFvRK22common_grammar_builderEZL50common_chat_params_init_functionary_v3_1_llama_3_1RKN5minja13chat_templateERK16templates_paramsE3$_0E9_M_invokeERKSt9_Any_dataS2_; std::_Function_handler<void ()(common_grammar_builder const&),common_chat_params_init_functionary_v3_1_llama_3_1(minja::chat_template const&,templates_params const&)::$_0>::_M_invoke(std::_Any_data const&,common_grammar_builder const&)
mov [rsi+18h], rax
lea rax, _ZNSt17_Function_handlerIFvRK22common_grammar_builderEZL50common_chat_params_init_functionary_v3_1_llama_3_1RKN5minja13chat_templateERK16templates_paramsE3$_0E10_M_managerERSt9_Any_dataRKSD_St18_Manager_operation; std::_Function_handler<void ()(common_grammar_builder const&),common_chat_params_init_functionary_v3_1_llama_3_1(minja::chat_template const&,templates_params const&)::$_0>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation)
mov [rsi+10h], rax
lea rdx, [rsp+0B8h+var_90]
mov byte ptr [rdx], 0
lea rdi, [rsp+0B8h+var_80]
call _Z13build_grammarB5cxx11RKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_options; build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)
lea rdi, [rbx+28h]
lea r13, [rsp+0B8h+var_80]
mov rsi, r13
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [r13+0]; void *
lea rax, [rsp+0B8h+var_70]
cmp rdi, rax
jz short loc_9EF49
mov rsi, [rsp+0B8h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_9EF49:
mov rax, [rsp+0B8h+var_A0]
test rax, rax
jz short loc_9EF62
lea rdi, [rsp+0B8h+var_B0]
mov rsi, rdi
mov edx, 3
call rax
loc_9EF62:
movzx eax, byte ptr [r12]
test eax, eax
jz short loc_9EF94
cmp eax, 2
jz short loc_9EF75
cmp eax, 1
jnz short loc_9EF82
loc_9EF75:
mov rax, [r14+18h]
mov rcx, [rax]
cmp rcx, [rax+8]
jz short loc_9EF94
loc_9EF82:
mov r13, rbp
lea rdi, [rsp+0B8h+var_B0]
mov rsi, r12
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&)
jmp short loc_9EFC4
loc_9EF94:
mov r13, rbp
lea r12, [rsp+0B8h+var_B0]
mov byte ptr [r12], 0
mov qword ptr [r12+8], 0
mov rdi, r12
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r12
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
loc_9EFC4:
movzx ebp, byte ptr [r14+60h]
lea r12, [rsp+0B8h+var_90]
mov byte ptr [r12], 0
mov qword ptr [r12+8], 0
mov rdi, r12
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r12
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)
lea rdi, [rsp+0B8h+var_80]
lea rcx, [rsp+0B8h+var_B0]
mov rsi, r13
mov rdx, r14
mov r8d, ebp
mov r9, r12
call _ZL5applyRKN5minja13chat_templateERKN8nlohmann16json_abi_v3_11_310basic_jsonINS4_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS4_14adl_serializerES7_IhSaIhEEvEESJ_bSJ_; apply(minja::chat_template 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&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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&,bool,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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+8]
lea r14, [rsp+0B8h+var_80]
mov rsi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [r14]; void *
lea rax, [rsp+0B8h+var_70]
cmp rdi, rax
jz short loc_9F03C
mov rsi, [rsp+0B8h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_9F03C:
lea r14, [rsp+0B8h+var_90]
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()
lea r14, [rsp+0B8h+var_B0]
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 dword ptr [rbx], 9
mov rdi, [rsp+0B8h+var_50]; void *
cmp rdi, r15
jz short loc_9F087
mov rsi, [rsp+0B8h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_9F087:
lea rbx, [rsp+0B8h+var_60]
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, 88h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_9F10D
jmp short loc_9F105
mov r14, rax
lea r12, [rsp+0B8h+var_90]
mov rdi, r12
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, r12
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 r12, [rsp+0B8h+var_B0]
mov rdi, r12
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, r12
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_9F110
mov r14, rax
mov rax, [rsp+0B8h+var_A0]
test rax, rax
jz short loc_9F110
lea rdi, [rsp+0B8h+var_B0]
mov rsi, rdi
mov edx, 3
call rax
jmp short loc_9F110
loc_9F105:
mov rdi, rax
call __clang_call_terminate
loc_9F10D:
mov r14, rax
loc_9F110:
mov rdi, [rsp+0B8h+var_50]; void *
cmp rdi, r15
jz short loc_9F127
mov rsi, [rsp+0B8h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_9F127:
lea r15, [rsp+0B8h+var_60]
mov rdi, r15
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
jmp short loc_9F143
mov r14, rax
loc_9F143:
mov rdi, rbx; this
call _ZN18common_chat_paramsD2Ev; common_chat_params::~common_chat_params()
mov rdi, r14
call __Unwind_Resume
|
long long common_chat_params_init_functionary_v3_1_llama_3_1(long long a1, int a2, long long a3)
{
unsigned __int8 *v4; // r12
_QWORD *v5; // rax
int v6; // eax
int v7; // r13d
int v8; // ebp
char v10; // [rsp+7h] [rbp-B1h] BYREF
_QWORD *v11; // [rsp+8h] [rbp-B0h] BYREF
long long v12; // [rsp+10h] [rbp-A8h]
long long ( *v13)(); // [rsp+18h] [rbp-A0h]
long long ( *v14)(); // [rsp+20h] [rbp-98h]
char v15[8]; // [rsp+28h] [rbp-90h] BYREF
long long v16; // [rsp+30h] [rbp-88h]
void *v17[2]; // [rsp+38h] [rbp-80h] BYREF
_QWORD v18[2]; // [rsp+48h] [rbp-70h] BYREF
unsigned __int8 v19[16]; // [rsp+58h] [rbp-60h] BYREF
void *v20[2]; // [rsp+68h] [rbp-50h] BYREF
_QWORD v21[8]; // [rsp+78h] [rbp-40h] BYREF
*(_DWORD *)a1 = 0;
*(_QWORD *)(a1 + 8) = a1 + 24;
*(_QWORD *)(a1 + 16) = 0LL;
*(_BYTE *)(a1 + 24) = 0;
*(_QWORD *)(a1 + 40) = a1 + 56;
*(_QWORD *)(a1 + 48) = 0LL;
*(_BYTE *)(a1 + 56) = 0;
*(_BYTE *)(a1 + 72) = 0;
*(_OWORD *)(a1 + 80) = 0LL;
*(_OWORD *)(a1 + 96) = 0LL;
*(_OWORD *)(a1 + 112) = 0LL;
*(_OWORD *)(a1 + 128) = 0LL;
*(_QWORD *)(a1 + 144) = 0LL;
v4 = (unsigned __int8 *)(a3 + 16);
if ( *(_BYTE *)(a3 + 16) )
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
v19,
0LL,
0LL,
0LL,
2LL);
else
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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,
(unsigned __int8 *)(a3 + 16));
v20[0] = v21;
v20[1] = 0LL;
LOBYTE(v21[0]) = 0;
v10 = 0;
*(_BYTE *)(a1 + 72) = *(_DWORD *)(a3 + 32) != 1;
v12 = 0LL;
v5 = (_QWORD *)operator new(0x20uLL);
*v5 = a3;
v5[1] = &v10;
v5[2] = v20;
v5[3] = a1;
v11 = v5;
v14 = std::_Function_handler<void ()(common_grammar_builder const&),common_chat_params_init_functionary_v3_1_llama_3_1(minja::chat_template const&,templates_params const&)::$_0>::_M_invoke;
v13 = std::_Function_handler<void ()(common_grammar_builder const&),common_chat_params_init_functionary_v3_1_llama_3_1(minja::chat_template const&,templates_params const&)::$_0>::_M_manager;
v15[0] = 0;
build_grammar[abi:cxx11](v17, &v11, v15);
std::string::operator=(a1 + 40, v17);
if ( v17[0] != v18 )
operator delete(v17[0], v18[0] + 1LL);
if ( v13 )
((void ( *)(_QWORD **, _QWORD **, long long))v13)(&v11, &v11, 3LL);
v6 = *v4;
if ( !*v4 || (v6 == 2 || v6 == 1) && **(_QWORD **)(a3 + 24) == *(_QWORD *)(*(_QWORD *)(a3 + 24) + 8LL) )
{
v7 = a2;
LOBYTE(v11) = 0;
v12 = 0LL;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&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>::assert_invariant((char *)&v11);
}
else
{
v7 = 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>::basic_json(
(unsigned __int8 *)&v11,
v4);
}
v8 = *(unsigned __int8 *)(a3 + 96);
v15[0] = 0;
v16 = 0LL;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v15);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v15);
apply((unsigned int)v17, v7, a3, (unsigned int)&v11, v8, (unsigned int)v15);
std::string::operator=(a1 + 8, v17);
if ( v17[0] != v18 )
operator delete(v17[0], v18[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>::assert_invariant(v15);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v15);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&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);
*(_DWORD *)a1 = 9;
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>::assert_invariant((char *)v19);
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(v19);
}
|
common_chat_params_init_functionary_v3_1_llama_3_1:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x88
MOV R14,RDX
MOV RBP,RSI
MOV RBX,RDI
MOV dword ptr [RDI],0x0
LEA RAX,[RDI + 0x18]
MOV qword ptr [RDI + 0x8],RAX
XOR EAX,EAX
MOV qword ptr [RDI + 0x10],RAX
MOV byte ptr [RDI + 0x18],AL
LEA RCX,[RDI + 0x38]
MOV qword ptr [RDI + 0x28],RCX
MOV qword ptr [RDI + 0x30],RAX
MOV byte ptr [RDI + 0x38],AL
MOV byte ptr [RDI + 0x48],AL
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x50],XMM0
MOVUPS xmmword ptr [RDI + 0x60],XMM0
MOVUPS xmmword ptr [RDI + 0x70],XMM0
MOVUPS xmmword ptr [RDI + 0x80],XMM0
MOV qword ptr [RDI + 0x90],RAX
LEA R12,[RDX + 0x10]
CMP byte ptr [RDX + 0x10],AL
JZ 0x0019ee99
LAB_0019ee81:
LEA RDI,[RSP + 0x58]
XOR ESI,ESI
XOR EDX,EDX
XOR ECX,ECX
MOV R8D,0x2
CALL 0x001b46e4
JMP 0x0019eea6
LAB_0019ee99:
LEA RDI,[RSP + 0x58]
MOV RSI,R12
CALL 0x0018c93c
LAB_0019eea6:
LEA R15,[RSP + 0x78]
MOV qword ptr [R15 + -0x10],R15
XOR EAX,EAX
MOV qword ptr [R15 + -0x8],RAX
MOV byte ptr [R15],AL
MOV byte ptr [RSP + 0x7],AL
CMP dword ptr [R14 + 0x20],0x1
SETNZ byte ptr [RBX + 0x48]
MOV qword ptr [RSP + 0x10],RAX
LAB_0019eeca:
MOV EDI,0x20
CALL 0x00121250
MOV qword ptr [RAX],R14
LEA RCX,[RSP + 0x7]
MOV qword ptr [RAX + 0x8],RCX
LEA RCX,[RSP + 0x68]
MOV qword ptr [RAX + 0x10],RCX
MOV qword ptr [RAX + 0x18],RBX
LEA RSI,[RSP + 0x8]
MOV qword ptr [RSI],RAX
LEA RAX,[0x1aa25c]
MOV qword ptr [RSI + 0x18],RAX
LEA RAX,[0x1aaa2c]
MOV qword ptr [RSI + 0x10],RAX
LEA RDX,[RSP + 0x28]
MOV byte ptr [RDX],0x0
LAB_0019ef13:
LEA RDI,[RSP + 0x38]
CALL 0x002002d2
LEA RDI,[RBX + 0x28]
LEA R13,[RSP + 0x38]
MOV RSI,R13
CALL 0x001219a0
MOV RDI,qword ptr [R13]
LEA RAX,[RSP + 0x48]
CMP RDI,RAX
JZ 0x0019ef49
MOV RSI,qword ptr [RSP + 0x48]
INC RSI
CALL 0x001211a0
LAB_0019ef49:
MOV RAX,qword ptr [RSP + 0x18]
TEST RAX,RAX
JZ 0x0019ef62
LAB_0019ef53:
LEA RDI,[RSP + 0x8]
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_0019ef62:
MOVZX EAX,byte ptr [R12]
TEST EAX,EAX
JZ 0x0019ef94
CMP EAX,0x2
JZ 0x0019ef75
CMP EAX,0x1
JNZ 0x0019ef82
LAB_0019ef75:
MOV RAX,qword ptr [R14 + 0x18]
MOV RCX,qword ptr [RAX]
CMP RCX,qword ptr [RAX + 0x8]
JZ 0x0019ef94
LAB_0019ef82:
MOV R13,RBP
LEA RDI,[RSP + 0x8]
MOV RSI,R12
CALL 0x0018c93c
JMP 0x0019efc4
LAB_0019ef94:
MOV R13,RBP
LEA R12,[RSP + 0x8]
MOV byte ptr [R12],0x0
MOV qword ptr [R12 + 0x8],0x0
MOV RDI,R12
MOV ESI,0x1
CALL 0x001886ee
MOV RDI,R12
MOV ESI,0x1
CALL 0x001886ee
LAB_0019efc4:
MOVZX EBP,byte ptr [R14 + 0x60]
LEA R12,[RSP + 0x28]
MOV byte ptr [R12],0x0
MOV qword ptr [R12 + 0x8],0x0
MOV RDI,R12
MOV ESI,0x1
CALL 0x001886ee
MOV RDI,R12
MOV ESI,0x1
CALL 0x001886ee
LAB_0019eff6:
LEA RDI,[RSP + 0x38]
LEA RCX,[RSP + 0x8]
MOV RSI,R13
MOV RDX,R14
MOV R8D,EBP
MOV R9,R12
CALL 0x0019fb09
LEA RDI,[RBX + 0x8]
LEA R14,[RSP + 0x38]
MOV RSI,R14
CALL 0x001219a0
MOV RDI,qword ptr [R14]
LEA RAX,[RSP + 0x48]
CMP RDI,RAX
JZ 0x0019f03c
MOV RSI,qword ptr [RSP + 0x48]
INC RSI
CALL 0x001211a0
LAB_0019f03c:
LEA R14,[RSP + 0x28]
MOV RDI,R14
XOR ESI,ESI
CALL 0x001886ee
MOV RDI,R14
CALL 0x0018ce08
LEA R14,[RSP + 0x8]
MOV RDI,R14
XOR ESI,ESI
CALL 0x001886ee
MOV RDI,R14
CALL 0x0018ce08
MOV dword ptr [RBX],0x9
MOV RDI,qword ptr [RSP + 0x68]
CMP RDI,R15
JZ 0x0019f087
MOV RSI,qword ptr [RSP + 0x78]
INC RSI
CALL 0x001211a0
LAB_0019f087:
LEA RBX,[RSP + 0x58]
MOV RDI,RBX
XOR ESI,ESI
CALL 0x001886ee
MOV RDI,RBX
CALL 0x0018ce08
ADD RSP,0x88
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* common_chat_params_init_functionary_v3_1_llama_3_1(minja::chat_template const&, templates_params
const&) */
void common_chat_params_init_functionary_v3_1_llama_3_1
(chat_template *param_1,templates_params *param_2)
{
basic_json *pbVar1;
basic_json bVar2;
basic_json *in_RDX;
int1 local_b1;
int8 *local_b0;
int8 local_a8;
code *local_a0;
code *local_98;
data local_90 [8];
int8 local_88;
long *local_80 [2];
long local_70 [2];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_60 [16];
int1 *local_50;
int8 local_48;
int1 local_40;
int7 uStack_3f;
*(int4 *)param_1 = 0;
*(chat_template **)(param_1 + 8) = param_1 + 0x18;
*(int8 *)(param_1 + 0x10) = 0;
param_1[0x18] = (chat_template)0x0;
*(chat_template **)(param_1 + 0x28) = param_1 + 0x38;
*(int8 *)(param_1 + 0x30) = 0;
param_1[0x38] = (chat_template)0x0;
param_1[0x48] = (chat_template)0x0;
*(int8 *)(param_1 + 0x50) = 0;
*(int8 *)(param_1 + 0x58) = 0;
*(int8 *)(param_1 + 0x60) = 0;
*(int8 *)(param_1 + 0x68) = 0;
*(int8 *)(param_1 + 0x70) = 0;
*(int8 *)(param_1 + 0x78) = 0;
*(int8 *)(param_1 + 0x80) = 0;
*(int8 *)(param_1 + 0x88) = 0;
*(int8 *)(param_1 + 0x90) = 0;
pbVar1 = in_RDX + 0x10;
if (in_RDX[0x10] == (basic_json)0x0) {
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_60,pbVar1);
}
else {
/* try { // try from 0019ee81 to 0019eea5 has its CatchHandler @ 0019f140 */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_60,0,0,0,2);
}
local_48 = 0;
local_40 = 0;
local_b1 = 0;
param_1[0x48] = (chat_template)(*(int *)(in_RDX + 0x20) != 1);
local_a8 = 0;
local_50 = &local_40;
/* try { // try from 0019eeca to 0019eed3 has its CatchHandler @ 0019f10d */
local_b0 = (int8 *)operator_new(0x20);
*local_b0 = in_RDX;
local_b0[1] = &local_b1;
local_b0[2] = &local_50;
local_b0[3] = param_1;
local_98 = std::
_Function_handler<void(common_grammar_builder_const&),common_chat_params_init_functionary_v3_1_llama_3_1(minja::chat_template_const&,templates_params_const&)::$_0>
::_M_invoke;
local_a0 = std::
_Function_handler<void(common_grammar_builder_const&),common_chat_params_init_functionary_v3_1_llama_3_1(minja::chat_template_const&,templates_params_const&)::$_0>
::_M_manager;
local_90[0] = (data)0x0;
/* try { // try from 0019ef13 to 0019ef1c has its CatchHandler @ 0019f0e7 */
build_grammar_abi_cxx11_((function *)local_80,(common_grammar_options *)&local_b0);
std::__cxx11::string::operator=((string *)(param_1 + 0x28),(string *)local_80);
if (local_80[0] != local_70) {
operator_delete(local_80[0],local_70[0] + 1);
}
if (local_a0 != (code *)0x0) {
/* try { // try from 0019ef53 to 0019ef61 has its CatchHandler @ 0019f0b2 */
(*local_a0)(&local_b0,&local_b0,3);
}
bVar2 = *pbVar1;
if ((bVar2 == (basic_json)0x0) ||
(((bVar2 == (basic_json)0x2 || (bVar2 == (basic_json)0x1)) &&
(**(long **)(in_RDX + 0x18) == (*(long **)(in_RDX + 0x18))[1])))) {
local_b0 = (int8 *)((ulong)local_b0 & 0xffffffffffffff00);
local_a8 = 0;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(&local_b0,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(&local_b0,0));
}
else {
/* try { // try from 0019ef82 to 0019ef91 has its CatchHandler @ 0019f0b0 */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)&local_b0,pbVar1);
}
bVar2 = in_RDX[0x60];
local_90[0] = (data)0x0;
local_88 = 0;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(local_90,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(local_90,0));
/* try { // try from 0019eff6 to 0019f010 has its CatchHandler @ 0019f0b4 */
apply((chat_template *)local_80,(basic_json *)param_2,in_RDX,SUB81(&local_b0,0),
(basic_json *)(ulong)(byte)bVar2);
std::__cxx11::string::operator=((string *)(param_1 + 8),(string *)local_80);
if (local_80[0] != local_70) {
operator_delete(local_80[0],local_70[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>
::assert_invariant(SUB81(local_90,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_90);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81((data *)&local_b0,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_b0);
*(int4 *)param_1 = 9;
if (local_50 != &local_40) {
operator_delete(local_50,CONCAT71(uStack_3f,local_40) + 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>
::assert_invariant(SUB81((data *)local_60,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)local_60);
return;
}
|
|
66,214 |
Create_func_trt<(TR_table::field_id_t)1>::create_native(THD*, st_mysql_const_lex_string const*, List<Item>*)
|
eloqsql/plugin/versioning/versioning.cc
|
Item*
Create_func_trt<TRT_FIELD>::create_native(THD *thd, const LEX_CSTRING *name,
List<Item> *item_list)
{
Item *func= NULL;
int arg_count= 0;
if (item_list != NULL)
arg_count= item_list->elements;
switch (arg_count) {
case 1:
{
Item *param_1= item_list->pop();
switch (TRT_FIELD)
{
case TR_table::FLD_BEGIN_TS:
case TR_table::FLD_COMMIT_TS:
func= new (thd->mem_root) Item_func_trt_ts(thd, param_1, TRT_FIELD);
break;
case TR_table::FLD_TRX_ID:
case TR_table::FLD_COMMIT_ID:
case TR_table::FLD_ISO_LEVEL:
func= new (thd->mem_root) Item_func_trt_id(thd, param_1, TRT_FIELD);
break;
default:
DBUG_ASSERT(0);
}
break;
}
case 2:
{
Item *param_1= item_list->pop();
Item *param_2= item_list->pop();
switch (TRT_FIELD)
{
case TR_table::FLD_TRX_ID:
case TR_table::FLD_COMMIT_ID:
func= new (thd->mem_root) Item_func_trt_id(thd, param_1, param_2, TRT_FIELD);
break;
default:
goto error;
}
break;
}
error:
default:
{
my_error(ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT, MYF(0), name->str);
break;
}
}
return func;
}
|
O0
|
cpp
|
Create_func_trt<(TR_table::field_id_t)1>::create_native(THD*, st_mysql_const_lex_string const*, List<Item>*):
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq $0x0, -0x28(%rbp)
movl $0x0, -0x2c(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0xf55b
movq -0x20(%rbp), %rax
movl 0x10(%rax), %eax
movl %eax, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movl %eax, -0x88(%rbp)
subl $0x1, %eax
je 0xf57f
jmp 0xf56b
movl -0x88(%rbp), %eax
subl $0x2, %eax
je 0xf639
jmp 0xf705
movq -0x20(%rbp), %rdi
callq 0xe700
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rsi
movq %rsi, -0xa0(%rbp)
movl $0xb0, %edi
callq 0xe3d0
movq %rax, %rcx
movq %rcx, -0x98(%rbp)
movb $0x0, -0x49(%rbp)
xorl %eax, %eax
cmpq $0x0, %rcx
movq %rax, -0x90(%rbp)
je 0xf603
movq -0x98(%rbp), %rdi
movq -0xa0(%rbp), %rax
movq %rdi, -0x40(%rbp)
movq %rax, -0x48(%rbp)
movb $0x1, -0x49(%rbp)
movq -0x10(%rbp), %rsi
movq -0x38(%rbp), %rdx
movl $0x1, %ecx
xorl %r8d, %r8d
callq 0xe440
jmp 0xf5f3
movq -0x98(%rbp), %rax
movq %rax, -0x90(%rbp)
jmp 0xf603
movq -0x90(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0xf726
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
testb $0x1, -0x49(%rbp)
jne 0xf627
jmp 0xf634
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0xe580
jmp 0xf733
movq -0x20(%rbp), %rdi
callq 0xe700
movq %rax, -0x68(%rbp)
movq -0x20(%rbp), %rdi
callq 0xe700
movq %rax, -0x70(%rbp)
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rsi
movq %rsi, -0xb8(%rbp)
movl $0xb0, %edi
callq 0xe3d0
movq %rax, %rcx
movq %rcx, -0xb0(%rbp)
movb $0x0, -0x81(%rbp)
xorl %eax, %eax
cmpq $0x0, %rcx
movq %rax, -0xa8(%rbp)
je 0xf6d2
movq -0xb0(%rbp), %rdi
movq -0xb8(%rbp), %rax
movq %rdi, -0x78(%rbp)
movq %rax, -0x80(%rbp)
movb $0x1, -0x81(%rbp)
movq -0x10(%rbp), %rsi
movq -0x68(%rbp), %rdx
movq -0x70(%rbp), %rcx
movl $0x1, %r8d
callq 0xe5f0
jmp 0xf6c2
movq -0xb0(%rbp), %rax
movq %rax, -0xa8(%rbp)
jmp 0xf6d2
movq -0xa8(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0xf726
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
testb $0x1, -0x81(%rbp)
jne 0xf6f6
jmp 0xf703
movq -0x78(%rbp), %rdi
movq -0x80(%rbp), %rsi
callq 0xe580
jmp 0xf733
movq 0xa7a4(%rip), %rax # 0x19eb0
movq (%rax), %rax
movq (%rax), %rcx
movq -0x18(%rbp), %rax
movq (%rax), %rdx
movl $0x62e, %edi # imm = 0x62E
xorl %eax, %eax
movl %eax, %esi
movb $0x0, %al
callq *%rcx
movq -0x28(%rbp), %rax
addq $0xc0, %rsp
popq %rbp
retq
movq -0x58(%rbp), %rdi
callq 0xe730
nopl (%rax)
|
_ZN15Create_func_trtILN8TR_table10field_id_tE1EE13create_nativeEP3THDPK25st_mysql_const_lex_stringP4ListI4ItemE:
push rbp
mov rbp, rsp
sub rsp, 0C0h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], 0
mov [rbp+var_2C], 0
cmp [rbp+var_20], 0
jz short loc_F55B
mov rax, [rbp+var_20]
mov eax, [rax+10h]
mov [rbp+var_2C], eax
loc_F55B:
mov eax, [rbp+var_2C]
mov [rbp+var_88], eax
sub eax, 1
jz short loc_F57F
jmp short $+2
loc_F56B:
mov eax, [rbp+var_88]
sub eax, 2
jz loc_F639
jmp loc_F705
loc_F57F:
mov rdi, [rbp+var_20]
call __ZN4ListI4ItemE3popEv; List<Item>::pop(void)
mov [rbp+var_38], rax
mov rax, [rbp+var_10]
mov rsi, [rax+28h]
mov [rbp+var_A0], rsi
mov edi, 0B0h
call __ZN4ItemnwEmP11st_mem_root; Item::operator new(ulong,st_mem_root *)
mov rcx, rax
mov [rbp+var_98], rcx
mov [rbp+var_49], 0
xor eax, eax
cmp rcx, 0
mov [rbp+var_90], rax
jz short loc_F603
mov rdi, [rbp+var_98]
mov rax, [rbp+var_A0]
mov [rbp+var_40], rdi
mov [rbp+var_48], rax
mov [rbp+var_49], 1
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_38]
mov ecx, 1
xor r8d, r8d
call __ZN16Item_func_trt_idC1EP3THDP4ItemN8TR_table10field_id_tEb; Item_func_trt_id::Item_func_trt_id(THD *,Item *,TR_table::field_id_t,bool)
jmp short $+2
loc_F5F3:
mov rax, [rbp+var_98]
mov [rbp+var_90], rax
jmp short $+2
loc_F603:
mov rax, [rbp+var_90]
mov [rbp+var_28], rax
jmp loc_F726
mov rcx, rax
mov eax, edx
mov [rbp+var_58], rcx
mov [rbp+var_5C], eax
test [rbp+var_49], 1
jnz short loc_F627
jmp short loc_F634
loc_F627:
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_48]
call __ZN4ItemdlEPvP11st_mem_root; Item::operator delete(void *,st_mem_root *)
loc_F634:
jmp loc_F733
loc_F639:
mov rdi, [rbp+var_20]
call __ZN4ListI4ItemE3popEv; List<Item>::pop(void)
mov [rbp+var_68], rax
mov rdi, [rbp+var_20]
call __ZN4ListI4ItemE3popEv; List<Item>::pop(void)
mov [rbp+var_70], rax
mov rax, [rbp+var_10]
mov rsi, [rax+28h]
mov [rbp+var_B8], rsi
mov edi, 0B0h
call __ZN4ItemnwEmP11st_mem_root; Item::operator new(ulong,st_mem_root *)
mov rcx, rax
mov [rbp+var_B0], rcx
mov [rbp+var_81], 0
xor eax, eax
cmp rcx, 0
mov [rbp+var_A8], rax
jz short loc_F6D2
mov rdi, [rbp+var_B0]
mov rax, [rbp+var_B8]
mov [rbp+var_78], rdi
mov [rbp+var_80], rax
mov [rbp+var_81], 1
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_68]
mov rcx, [rbp+var_70]
mov r8d, 1
call __ZN16Item_func_trt_idC1EP3THDP4ItemS3_N8TR_table10field_id_tE; Item_func_trt_id::Item_func_trt_id(THD *,Item *,Item *,TR_table::field_id_t)
jmp short $+2
loc_F6C2:
mov rax, [rbp+var_B0]
mov [rbp+var_A8], rax
jmp short $+2
loc_F6D2:
mov rax, [rbp+var_A8]
mov [rbp+var_28], rax
jmp short loc_F726
mov rcx, rax
mov eax, edx
mov [rbp+var_58], rcx
mov [rbp+var_5C], eax
test [rbp+var_81], 1
jnz short loc_F6F6
jmp short loc_F703
loc_F6F6:
mov rdi, [rbp+var_78]
mov rsi, [rbp+var_80]
call __ZN4ItemdlEPvP11st_mem_root; Item::operator delete(void *,st_mem_root *)
loc_F703:
jmp short loc_F733
loc_F705:
mov rax, cs:my_print_error_service_ptr
mov rax, [rax]
mov rcx, [rax]
mov rax, [rbp+var_18]
mov rdx, [rax]
mov edi, 62Eh
xor eax, eax
mov esi, eax
mov al, 0
call rcx
loc_F726:
mov rax, [rbp+var_28]
add rsp, 0C0h
pop rbp
retn
loc_F733:
mov rdi, [rbp+var_58]
call __Unwind_Resume
|
long long Create_func_trt<(TR_table::field_id_t)1>::create_native(
long long a1,
long long a2,
_QWORD *a3,
long long a4)
{
long long v5; // [rsp+10h] [rbp-B0h]
long long v6; // [rsp+18h] [rbp-A8h]
long long v7; // [rsp+28h] [rbp-98h]
long long v8; // [rsp+30h] [rbp-90h]
long long v9; // [rsp+50h] [rbp-70h]
long long v10; // [rsp+58h] [rbp-68h]
long long v11; // [rsp+88h] [rbp-38h]
int v12; // [rsp+94h] [rbp-2Ch]
long long v13; // [rsp+98h] [rbp-28h]
v13 = 0LL;
v12 = 0;
if ( a4 )
v12 = *(_DWORD *)(a4 + 16);
if ( v12 == 1 )
{
v11 = List<Item>::pop(a4);
v7 = Item::operator new(176LL);
v8 = 0LL;
if ( v7 )
{
Item_func_trt_id::Item_func_trt_id(v7, a2, v11, 1LL, 0LL);
return v7;
}
return v8;
}
else if ( v12 == 2 )
{
v10 = List<Item>::pop(a4);
v9 = List<Item>::pop(a4);
v5 = Item::operator new(176LL);
v6 = 0LL;
if ( v5 )
{
Item_func_trt_id::Item_func_trt_id(v5, a2, v10, v9, 1LL);
return v5;
}
return v6;
}
else
{
((void ( *)(long long, _QWORD, _QWORD))*my_print_error_service)(1582LL, 0LL, *a3);
}
return v13;
}
|
create_native:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xc0
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],0x0
MOV dword ptr [RBP + -0x2c],0x0
CMP qword ptr [RBP + -0x20],0x0
JZ 0x0010f55b
MOV RAX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RAX + 0x10]
MOV dword ptr [RBP + -0x2c],EAX
LAB_0010f55b:
MOV EAX,dword ptr [RBP + -0x2c]
MOV dword ptr [RBP + -0x88],EAX
SUB EAX,0x1
JZ 0x0010f57f
JMP 0x0010f56b
LAB_0010f56b:
MOV EAX,dword ptr [RBP + -0x88]
SUB EAX,0x2
JZ 0x0010f639
JMP 0x0010f705
LAB_0010f57f:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x0010e700
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0xa0],RSI
MOV EDI,0xb0
CALL 0x0010e3d0
MOV RCX,RAX
MOV qword ptr [RBP + -0x98],RCX
MOV byte ptr [RBP + -0x49],0x0
XOR EAX,EAX
CMP RCX,0x0
MOV qword ptr [RBP + -0x90],RAX
JZ 0x0010f603
MOV RDI,qword ptr [RBP + -0x98]
MOV RAX,qword ptr [RBP + -0xa0]
MOV qword ptr [RBP + -0x40],RDI
MOV qword ptr [RBP + -0x48],RAX
MOV byte ptr [RBP + -0x49],0x1
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x38]
LAB_0010f5e4:
MOV ECX,0x1
XOR R8D,R8D
CALL 0x0010e440
LAB_0010f5f1:
JMP 0x0010f5f3
LAB_0010f5f3:
MOV RAX,qword ptr [RBP + -0x98]
MOV qword ptr [RBP + -0x90],RAX
JMP 0x0010f603
LAB_0010f603:
MOV RAX,qword ptr [RBP + -0x90]
MOV qword ptr [RBP + -0x28],RAX
JMP 0x0010f726
LAB_0010f639:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x0010e700
MOV qword ptr [RBP + -0x68],RAX
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x0010e700
MOV qword ptr [RBP + -0x70],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0xb8],RSI
MOV EDI,0xb0
CALL 0x0010e3d0
MOV RCX,RAX
MOV qword ptr [RBP + -0xb0],RCX
MOV byte ptr [RBP + -0x81],0x0
XOR EAX,EAX
CMP RCX,0x0
MOV qword ptr [RBP + -0xa8],RAX
JZ 0x0010f6d2
MOV RDI,qword ptr [RBP + -0xb0]
MOV RAX,qword ptr [RBP + -0xb8]
MOV qword ptr [RBP + -0x78],RDI
MOV qword ptr [RBP + -0x80],RAX
MOV byte ptr [RBP + -0x81],0x1
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x68]
MOV RCX,qword ptr [RBP + -0x70]
LAB_0010f6b5:
MOV R8D,0x1
CALL 0x0010e5f0
LAB_0010f6c0:
JMP 0x0010f6c2
LAB_0010f6c2:
MOV RAX,qword ptr [RBP + -0xb0]
MOV qword ptr [RBP + -0xa8],RAX
JMP 0x0010f6d2
LAB_0010f6d2:
MOV RAX,qword ptr [RBP + -0xa8]
MOV qword ptr [RBP + -0x28],RAX
JMP 0x0010f726
LAB_0010f705:
MOV RAX,qword ptr [0x00119eb0]
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RAX]
MOV EDI,0x62e
XOR EAX,EAX
MOV ESI,EAX
MOV AL,0x0
CALL RCX
LAB_0010f726:
MOV RAX,qword ptr [RBP + -0x28]
ADD RSP,0xc0
POP RBP
RET
|
/* Create_func_trt<(TR_table::field_id_t)1>::create_native(THD*, st_mysql_const_lex_string const*,
List<Item>*) */
Item_func_trt_id * __thiscall
Create_func_trt<(TR_table::field_id_t)1>::create_native
(Create_func_trt<(TR_table::field_id_t)1> *this,THD *param_1,
st_mysql_const_lex_string *param_2,List *param_3)
{
int8 uVar1;
int8 uVar2;
Item_func_trt_id *pIVar3;
Item_func_trt_id *local_b0;
Item_func_trt_id *local_98;
int local_34;
Item_func_trt_id *local_30;
local_30 = (Item_func_trt_id *)0x0;
local_34 = 0;
if (param_3 != (List *)0x0) {
local_34 = *(int *)(param_3 + 0x10);
}
if (local_34 == 1) {
uVar1 = List<Item>::pop((List<Item> *)param_3);
pIVar3 = (Item_func_trt_id *)Item::operator_new(0xb0,*(st_mem_root **)(param_1 + 0x28));
local_98 = (Item_func_trt_id *)0x0;
if (pIVar3 != (Item_func_trt_id *)0x0) {
/* try { // try from 0010f5e4 to 0010f5f0 has its CatchHandler @ 0010f613 */
Item_func_trt_id::Item_func_trt_id(pIVar3,param_1,uVar1,1,0);
local_98 = pIVar3;
}
local_30 = local_98;
}
else if (local_34 == 2) {
uVar1 = List<Item>::pop((List<Item> *)param_3);
uVar2 = List<Item>::pop((List<Item> *)param_3);
pIVar3 = (Item_func_trt_id *)Item::operator_new(0xb0,*(st_mem_root **)(param_1 + 0x28));
local_b0 = (Item_func_trt_id *)0x0;
if (pIVar3 != (Item_func_trt_id *)0x0) {
/* try { // try from 0010f6b5 to 0010f6bf has its CatchHandler @ 0010f6df */
Item_func_trt_id::Item_func_trt_id(pIVar3,param_1,uVar1,uVar2,1);
local_b0 = pIVar3;
}
local_30 = local_b0;
}
else {
(*(code *)**(int8 **)PTR_my_print_error_service_00119eb0)(0x62e,0,*(int8 *)param_2);
}
return local_30;
}
|
|
66,215 |
fmt::v11::detail::bigint::divmod_assign(fmt::v11::detail::bigint const&)
|
zkingston[P]unknot/build_O1/_deps/fmt-src/include/fmt/format.h
|
FMT_CONSTEXPR auto divmod_assign(const bigint& divisor) -> int {
FMT_ASSERT(this != &divisor, "");
if (compare(*this, divisor) < 0) return 0;
FMT_ASSERT(divisor.bigits_[divisor.bigits_.size() - 1u] != 0, "");
align(divisor);
int quotient = 0;
do {
subtract_aligned(divisor);
++quotient;
} while (compare(*this, divisor) >= 0);
return quotient;
}
|
O1
|
c
|
fmt::v11::detail::bigint::divmod_assign(fmt::v11::detail::bigint const&):
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x44b21
testl %eax, %eax
js 0x44b18
movq %r14, %rdi
movq %rbx, %rsi
callq 0x45078
xorl %ebp, %ebp
movq %r14, %rdi
movq %rbx, %rsi
callq 0x45106
incl %ebp
movq %r14, %rdi
movq %rbx, %rsi
callq 0x44b21
testl %eax, %eax
jns 0x44afa
jmp 0x44b1a
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
|
_ZN3fmt3v116detail6bigint13divmod_assignERKS2_:
push rbp
push r14
push rbx
mov rbx, rsi
mov r14, rdi
call _ZN3fmt3v116detail7compareERKNS1_6bigintES4_; fmt::v11::detail::compare(fmt::v11::detail::bigint const&,fmt::v11::detail::bigint const&)
test eax, eax
js short loc_44B18
mov rdi, r14; this
mov rsi, rbx; fmt::v11::detail::bigint *
call _ZN3fmt3v116detail6bigint5alignERKS2_; fmt::v11::detail::bigint::align(fmt::v11::detail::bigint const&)
xor ebp, ebp
loc_44AFA:
mov rdi, r14; this
mov rsi, rbx; fmt::v11::detail::bigint *
call _ZN3fmt3v116detail6bigint16subtract_alignedERKS2_; fmt::v11::detail::bigint::subtract_aligned(fmt::v11::detail::bigint const&)
inc ebp
mov rdi, r14
mov rsi, rbx
call _ZN3fmt3v116detail7compareERKNS1_6bigintES4_; fmt::v11::detail::compare(fmt::v11::detail::bigint const&,fmt::v11::detail::bigint const&)
test eax, eax
jns short loc_44AFA
jmp short loc_44B1A
loc_44B18:
xor ebp, ebp
loc_44B1A:
mov eax, ebp
pop rbx
pop r14
pop rbp
retn
|
long long fmt::v11::detail::bigint::divmod_assign(
fmt::v11::detail::bigint *this,
const fmt::v11::detail::bigint *a2,
const fmt::v11::detail::bigint *a3)
{
unsigned int v3; // ebp
const fmt::v11::detail::bigint *v4; // rdx
if ( (int)fmt::v11::detail::compare(this, a2, a3) < 0 )
{
return 0;
}
else
{
fmt::v11::detail::bigint::align(this, a2);
v3 = 0;
do
{
fmt::v11::detail::bigint::subtract_aligned(this, a2);
++v3;
}
while ( (int)fmt::v11::detail::compare(this, a2, v4) >= 0 );
}
return v3;
}
|
divmod_assign:
PUSH RBP
PUSH R14
PUSH RBX
MOV RBX,RSI
MOV R14,RDI
CALL 0x00144b21
TEST EAX,EAX
JS 0x00144b18
MOV RDI,R14
MOV RSI,RBX
CALL 0x00145078
XOR EBP,EBP
LAB_00144afa:
MOV RDI,R14
MOV RSI,RBX
CALL 0x00145106
INC EBP
MOV RDI,R14
MOV RSI,RBX
CALL 0x00144b21
TEST EAX,EAX
JNS 0x00144afa
JMP 0x00144b1a
LAB_00144b18:
XOR EBP,EBP
LAB_00144b1a:
MOV EAX,EBP
POP RBX
POP R14
POP RBP
RET
|
/* fmt::v11::detail::bigint::divmod_assign(fmt::v11::detail::bigint const&) */
int __thiscall fmt::v11::detail::bigint::divmod_assign(bigint *this,bigint *param_1)
{
int iVar1;
int iVar2;
iVar1 = compare(this,param_1);
if (iVar1 < 0) {
iVar1 = 0;
}
else {
align(this,param_1);
iVar1 = 0;
do {
subtract_aligned(this,param_1);
iVar1 = iVar1 + 1;
iVar2 = compare(this,param_1);
} while (-1 < iVar2);
}
return iVar1;
}
|
|
66,216 |
minja::Value::contains(char const*) const
|
monkey531[P]llama/common/minja.hpp
|
bool contains(const char * key) const { return contains(std::string(key)); }
|
O3
|
cpp
|
minja::Value::contains(char const*) const:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
leaq 0x7(%rsp), %rdx
movq %r14, %rdi
callq 0x526fe
movq %rbx, %rdi
movq %r14, %rsi
callq 0x934d0
movl %eax, %ebx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xad1aa
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b8b0
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xad1d2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b8b0
movq %rbx, %rdi
callq 0x1bf70
|
_ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS7_EESJ_IJEEEEESt17_Rb_tree_iteratorIS8_ESt23_Rb_tree_const_iteratorIS8_EDpOT_:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r15, r8
mov r12, rcx
mov r13, rdx
mov rbp, rsi
mov rbx, rdi
mov edi, 48h ; 'H'; unsigned __int64
call __Znwm; operator new(ulong)
mov r14, rax
mov rdi, rbx
mov rsi, rax
mov rdx, r13
mov rcx, r12
mov r8, r15
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE17_M_construct_nodeIJRKSt21piecewise_construct_tSt5tupleIJRS7_EESJ_IJEEEEEvPSt13_Rb_tree_nodeIS8_EDpOT_; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::_M_construct_node<std::piecewise_construct_t const&,std::tuple<std::string const&>,std::tuple<>>(std::_Rb_tree_node<std::pair<std::string const,ulong>> *)
mov rdx, r14
add rdx, 20h ; ' '
mov rdi, rbx
mov rsi, rbp
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorIS8_ERS7_; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<std::string const,ulong>>,std::string const&)
mov r15, rax
test rdx, rdx
jz short loc_AD1CE
mov rdi, rbx
mov rsi, r15
mov rcx, r14
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE14_M_insert_nodeEPSt18_Rb_tree_node_baseSG_PSt13_Rb_tree_nodeIS8_E; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::_M_insert_node(std::_Rb_tree_node_base *,std::_Rb_tree_node_base *,std::_Rb_tree_node<std::pair<std::string const,ulong>> *)
mov r15, rax
jmp short loc_AD1D9
loc_AD1CE:
mov rdi, rbx
mov rsi, r14
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE12_M_drop_nodeEPSt13_Rb_tree_nodeIS8_E; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::_M_drop_node(std::_Rb_tree_node<std::pair<std::string const,ulong>> *)
loc_AD1D9:
mov rax, r15
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rdi, rax; void *
call ___cxa_begin_catch
mov rdi, rbx
mov rsi, r14
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE12_M_drop_nodeEPSt13_Rb_tree_nodeIS8_E; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::_M_drop_node(std::_Rb_tree_node<std::pair<std::string const,ulong>> *)
call ___cxa_rethrow
mov rbx, rax
call ___cxa_end_catch
mov rdi, rbx
call __Unwind_Resume
mov rdi, rax
call __clang_call_terminate
|
long long std::_Rb_tree<std::string,std::pair<std::string const,unsigned long>,std::_Select1st<std::pair<std::string const,unsigned long>>,std::less<std::string>,std::allocator<std::pair<std::string const,unsigned long>>>::_M_emplace_hint_unique<std::piecewise_construct_t const&,std::tuple<std::string const&>,std::tuple<>>(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5)
{
long long v8; // r14
long long insert_hint_unique_pos; // rax
long long v10; // rdx
long long v11; // r15
v8 = operator new(0x48uLL);
std::_Rb_tree<std::string,std::pair<std::string const,unsigned long>,std::_Select1st<std::pair<std::string const,unsigned long>>,std::less<std::string>,std::allocator<std::pair<std::string const,unsigned long>>>::_M_construct_node<std::piecewise_construct_t const&,std::tuple<std::string const&>,std::tuple<>>(
a1,
v8,
a3,
a4,
a5);
insert_hint_unique_pos = std::_Rb_tree<std::string,std::pair<std::string const,unsigned long>,std::_Select1st<std::pair<std::string const,unsigned long>>,std::less<std::string>,std::allocator<std::pair<std::string const,unsigned long>>>::_M_get_insert_hint_unique_pos(
a1,
a2,
v8 + 32);
v11 = insert_hint_unique_pos;
if ( v10 )
return std::_Rb_tree<std::string,std::pair<std::string const,unsigned long>,std::_Select1st<std::pair<std::string const,unsigned long>>,std::less<std::string>,std::allocator<std::pair<std::string const,unsigned long>>>::_M_insert_node(
a1,
insert_hint_unique_pos,
v10,
v8);
std::_Rb_tree<std::string,std::pair<std::string const,unsigned long>,std::_Select1st<std::pair<std::string const,unsigned long>>,std::less<std::string>,std::allocator<std::pair<std::string const,unsigned long>>>::_M_drop_node(
a1,
v8);
return v11;
}
|
_M_emplace_hint_unique<std::piecewise_construct_t_const&,std::tuple<std::__cxx11::string_const&>,std::tuple<>>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,R8
MOV R12,RCX
MOV R13,RDX
MOV RBP,RSI
MOV RBX,RDI
MOV EDI,0x48
CALL 0x0011b8c0
MOV R14,RAX
MOV RDI,RBX
MOV RSI,RAX
MOV RDX,R13
MOV RCX,R12
MOV R8,R15
CALL 0x001ad3f8
MOV RDX,R14
ADD RDX,0x20
LAB_001ad1a8:
MOV RDI,RBX
MOV RSI,RBP
CALL 0x001ad260
MOV R15,RAX
TEST RDX,RDX
JZ 0x001ad1ce
MOV RDI,RBX
MOV RSI,R15
MOV RCX,R14
CALL 0x001ad36a
LAB_001ad1c9:
MOV R15,RAX
JMP 0x001ad1d9
LAB_001ad1ce:
MOV RDI,RBX
MOV RSI,R14
CALL 0x001ad3ce
LAB_001ad1d9:
MOV RAX,R15
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* std::_Rb_tree_iterator<std::pair<std::__cxx11::string const, unsigned long> >
std::_Rb_tree<std::__cxx11::string, std::pair<std::__cxx11::string const, unsigned long>,
std::_Select1st<std::pair<std::__cxx11::string const, unsigned long> >,
std::less<std::__cxx11::string >, std::allocator<std::pair<std::__cxx11::string const, unsigned
long> > >::_M_emplace_hint_unique<std::piecewise_construct_t const&,
std::tuple<std::__cxx11::string const&>, std::tuple<>
>(std::_Rb_tree_const_iterator<std::pair<std::__cxx11::string const, unsigned long> >,
std::piecewise_construct_t const&, std::tuple<std::__cxx11::string const&>&&, std::tuple<>&&) */
_Rb_tree_node_base *
std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>>
::
_M_emplace_hint_unique<std::piecewise_construct_t_const&,std::tuple<std::__cxx11::string_const&>,std::tuple<>>
(_Rb_tree_node *param_1,int8 param_2,tuple *param_3,tuple *param_4)
{
piecewise_construct_t *ppVar1;
_Rb_tree_node_base *p_Var2;
int1 auVar3 [16];
ppVar1 = (piecewise_construct_t *)operator_new(0x48);
_M_construct_node<std::piecewise_construct_t_const&,std::tuple<std::__cxx11::string_const&>,std::tuple<>>
(param_1,ppVar1,param_3,param_4);
/* try { // try from 001ad1a8 to 001ad1c8 has its CatchHandler @ 001ad1eb */
auVar3 = _M_get_insert_hint_unique_pos
((_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>>
*)param_1,param_2,ppVar1 + 0x20);
p_Var2 = auVar3._0_8_;
if (auVar3._8_8_ == (_Rb_tree_node_base *)0x0) {
_M_drop_node((_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>>
*)param_1,(_Rb_tree_node *)ppVar1);
}
else {
p_Var2 = (_Rb_tree_node_base *)
_M_insert_node((_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>>
*)param_1,p_Var2,auVar3._8_8_,(_Rb_tree_node *)ppVar1);
}
return p_Var2;
}
|
|
66,217 |
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>> 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>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool)
|
monkey531[P]llama/common/json.hpp
|
static ::nlohmann::detail::parser<basic_json, InputAdapterType> parser(
InputAdapterType adapter,
detail::parser_callback_t<basic_json>cb = nullptr,
const bool allow_exceptions = true,
const bool ignore_comments = false
)
{
return ::nlohmann::detail::parser<basic_json, InputAdapterType>(std::move(adapter),
std::move(cb), allow_exceptions, ignore_comments);
}
|
O2
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>> 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>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool):
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movq %rsi, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
movq 0x18(%rcx), %rax
movq %rax, 0x18(%rsp)
movq 0x10(%rcx), %rax
testq %rax, %rax
je 0x3d5ac
movups (%rcx), %xmm1
addq $0x10, %rcx
movaps %xmm1, (%rsp)
movq %rax, 0x10(%rsp)
movups %xmm0, (%rcx)
movzbl %r8b, %ecx
movzbl %r9b, %r8d
leaq 0x20(%rsp), %rsi
movq %rsp, %rdx
movq %rbx, %rdi
callq 0x3e1cc
movq %rsp, %rdi
callq 0x47f7a
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x47f7a
movq %rbx, %rdi
callq 0x24f60
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6parserINS0_6detail22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcS9_EEEEEENSF_6parserISD_T_EESO_St8functionIFbiNSF_13parse_event_tERSD_EEbb:
push rbx
sub rsp, 30h
mov rbx, rdi
mov [rsp+38h+var_18], rsi
mov [rsp+38h+var_10], rdx
xorps xmm0, xmm0
movaps [rsp+38h+var_38], xmm0
and [rsp+38h+var_28], 0
mov rax, [rcx+18h]
mov [rsp+38h+var_20], rax
mov rax, [rcx+10h]
test rax, rax
jz short loc_3D5AC
movups xmm1, xmmword ptr [rcx]
add rcx, 10h
movaps [rsp+38h+var_38], xmm1
mov [rsp+38h+var_28], rax
movups xmmword ptr [rcx], xmm0
loc_3D5AC:
movzx ecx, r8b
movzx r8d, r9b
lea rsi, [rsp+38h+var_18]
mov rdx, rsp
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEEC2EOSM_St8functionIFbiNS1_13parse_event_tERSF_EEbb; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parser(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>&&,std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)>,bool,bool)
mov rdi, rsp; this
call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base()
mov rax, rbx
add rsp, 30h
pop rbx
retn
mov rbx, rax
mov rdi, rsp; this
call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base()
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>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>(
long long a1,
long long a2,
long long a3,
__int128 *a4,
unsigned __int8 a5,
unsigned __int8 a6)
{
long long v6; // rax
__int128 v8; // [rsp+0h] [rbp-38h] BYREF
long long v9; // [rsp+10h] [rbp-28h]
long long v10; // [rsp+18h] [rbp-20h]
_QWORD v11[3]; // [rsp+20h] [rbp-18h] BYREF
v11[0] = a2;
v11[1] = a3;
v8 = 0LL;
v9 = 0LL;
v10 = *((_QWORD *)a4 + 3);
v6 = *((_QWORD *)a4 + 2);
if ( v6 )
{
v8 = *a4;
v9 = v6;
a4[1] = 0LL;
}
((void ( *)(long long, _QWORD *, __int128 *, _QWORD, _QWORD))nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parser)(
a1,
v11,
&v8,
a5,
a6);
std::_Function_base::~_Function_base((std::_Function_base *)&v8);
return a1;
}
|
parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>:
PUSH RBX
SUB RSP,0x30
MOV RBX,RDI
MOV qword ptr [RSP + 0x20],RSI
MOV qword ptr [RSP + 0x28],RDX
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
AND qword ptr [RSP + 0x10],0x0
MOV RAX,qword ptr [RCX + 0x18]
MOV qword ptr [RSP + 0x18],RAX
MOV RAX,qword ptr [RCX + 0x10]
TEST RAX,RAX
JZ 0x0013d5ac
MOVUPS XMM1,xmmword ptr [RCX]
ADD RCX,0x10
MOVAPS xmmword ptr [RSP],XMM1
MOV qword ptr [RSP + 0x10],RAX
MOVUPS xmmword ptr [RCX],XMM0
LAB_0013d5ac:
MOVZX ECX,R8B
MOVZX R8D,R9B
LEA RSI,[RSP + 0x20]
MOV RDX,RSP
MOV RDI,RBX
CALL 0x0013e1cc
LAB_0013d5c4:
MOV RDI,RSP
CALL 0x00147f7a
MOV RAX,RBX
ADD RSP,0x30
POP RBX
RET
|
/* nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>,
nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > > >
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >,
void>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > >
>(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > >, std::function<bool (int,
nlohmann::json_abi_v3_11_3::detail::parse_event_t,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>&)>, bool, bool) */
parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
* nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::
parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
(parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
*param_1,int8 param_2,int8 param_3,int8 *param_4,int1 param_5,
int1 param_6)
{
long lVar1;
int8 local_38;
int8 uStack_30;
long local_28;
int8 local_20;
int8 local_18;
int8 local_10;
local_38 = 0;
uStack_30 = 0;
local_28 = 0;
local_20 = param_4[3];
lVar1 = param_4[2];
if (lVar1 != 0) {
local_38 = *param_4;
uStack_30 = param_4[1];
param_4[2] = 0;
param_4[3] = 0;
local_28 = lVar1;
}
/* try { // try from 0013d5ac to 0013d5c3 has its CatchHandler @ 0013d5d5 */
local_18 = param_2;
local_10 = param_3;
detail::
parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::parser(param_1,&local_18,&local_38,param_5,param_6);
std::_Function_base::~_Function_base((_Function_base *)&local_38);
return param_1;
}
|
|
66,218 |
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>> 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>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool)
|
monkey531[P]llama/common/json.hpp
|
static ::nlohmann::detail::parser<basic_json, InputAdapterType> parser(
InputAdapterType adapter,
detail::parser_callback_t<basic_json>cb = nullptr,
const bool allow_exceptions = true,
const bool ignore_comments = false
)
{
return ::nlohmann::detail::parser<basic_json, InputAdapterType>(std::move(adapter),
std::move(cb), allow_exceptions, ignore_comments);
}
|
O3
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>> 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>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool):
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movq %rsi, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq 0x18(%rcx), %rax
movq %rax, 0x18(%rsp)
movq 0x10(%rcx), %rax
testq %rax, %rax
je 0x57f81
movups (%rcx), %xmm1
addq $0x10, %rcx
movaps %xmm1, (%rsp)
movq %rax, 0x10(%rsp)
movups %xmm0, (%rcx)
movzbl %r8b, %ecx
movzbl %r9b, %r8d
leaq 0x20(%rsp), %rsi
movq %rsp, %rdx
movq %rbx, %rdi
callq 0x58a9a
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x57fb0
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
retq
jmp 0x57fdd
movq %rax, %rbx
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x57fd5
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rdi
callq 0x1bf70
movq %rax, %rdi
callq 0x21ae5
nop
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6parserINS0_6detail22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcS9_EEEEEENSF_6parserISD_T_EESO_St8functionIFbiNSF_13parse_event_tERSD_EEbb:
push rbx
sub rsp, 30h
mov rbx, rdi
mov [rsp+38h+var_18], rsi
mov [rsp+38h+var_10], rdx
xorps xmm0, xmm0
movaps [rsp+38h+var_38], xmm0
mov [rsp+38h+var_28], 0
mov rax, [rcx+18h]
mov [rsp+38h+var_20], rax
mov rax, [rcx+10h]
test rax, rax
jz short loc_57F81
movups xmm1, xmmword ptr [rcx]
add rcx, 10h
movaps [rsp+38h+var_38], xmm1
mov [rsp+38h+var_28], rax
movups xmmword ptr [rcx], xmm0
loc_57F81:
movzx ecx, r8b
movzx r8d, r9b
lea rsi, [rsp+38h+var_18]
mov rdx, rsp
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEEC2EOSM_St8functionIFbiNS1_13parse_event_tERSF_EEbb; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parser(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>&&,std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)>,bool,bool)
mov rax, [rsp+38h+var_28]
test rax, rax
jz short loc_57FB0
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
loc_57FB0:
mov rax, rbx
add rsp, 30h
pop rbx
retn
jmp short loc_57FDD
mov rbx, rax
mov rax, [rsp+38h+var_28]
test rax, rax
jz short loc_57FD5
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
loc_57FD5:
mov rdi, rbx
call __Unwind_Resume
loc_57FDD:
mov rdi, rax
call __clang_call_terminate
|
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>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>(
long long a1,
long long a2,
long long a3,
__int128 *a4,
unsigned __int8 a5,
unsigned __int8 a6)
{
void ( *v6)(__int128 *, __int128 *, long long); // rax
__int128 v8; // [rsp+0h] [rbp-38h] BYREF
void ( *v9)(__int128 *, __int128 *, long long); // [rsp+10h] [rbp-28h]
long long v10; // [rsp+18h] [rbp-20h]
_QWORD v11[3]; // [rsp+20h] [rbp-18h] BYREF
v11[0] = a2;
v11[1] = a3;
v8 = 0LL;
v9 = 0LL;
v10 = *((_QWORD *)a4 + 3);
v6 = (void ( *)(__int128 *, __int128 *, long long))*((_QWORD *)a4 + 2);
if ( v6 )
{
v8 = *a4;
v9 = v6;
a4[1] = 0LL;
}
((void ( *)(long long, _QWORD *, __int128 *, _QWORD, _QWORD))nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parser)(
a1,
v11,
&v8,
a5,
a6);
if ( v9 )
v9(&v8, &v8, 3LL);
return a1;
}
|
parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>:
PUSH RBX
SUB RSP,0x30
MOV RBX,RDI
MOV qword ptr [RSP + 0x20],RSI
MOV qword ptr [RSP + 0x28],RDX
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
MOV qword ptr [RSP + 0x10],0x0
MOV RAX,qword ptr [RCX + 0x18]
MOV qword ptr [RSP + 0x18],RAX
MOV RAX,qword ptr [RCX + 0x10]
TEST RAX,RAX
JZ 0x00157f81
MOVUPS XMM1,xmmword ptr [RCX]
ADD RCX,0x10
MOVAPS xmmword ptr [RSP],XMM1
MOV qword ptr [RSP + 0x10],RAX
MOVUPS xmmword ptr [RCX],XMM0
LAB_00157f81:
MOVZX ECX,R8B
MOVZX R8D,R9B
LEA RSI,[RSP + 0x20]
MOV RDX,RSP
MOV RDI,RBX
CALL 0x00158a9a
MOV RAX,qword ptr [RSP + 0x10]
TEST RAX,RAX
JZ 0x00157fb0
LAB_00157fa3:
MOV RDI,RSP
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_00157fb0:
MOV RAX,RBX
ADD RSP,0x30
POP RBX
RET
|
/* nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>,
nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > > >
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >,
void>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > >
>(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > >, std::function<bool (int,
nlohmann::json_abi_v3_11_3::detail::parse_event_t,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>&)>, bool, bool) */
parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
* nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::
parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
(parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
*param_1,int8 param_2,int8 param_3,int8 *param_4,int1 param_5,
int1 param_6)
{
code *pcVar1;
int8 local_38;
int8 uStack_30;
code *local_28;
int8 local_20;
int8 local_18;
int8 local_10;
local_38 = 0;
uStack_30 = 0;
local_28 = (code *)0x0;
local_20 = param_4[3];
pcVar1 = (code *)param_4[2];
if (pcVar1 != (code *)0x0) {
local_38 = *param_4;
uStack_30 = param_4[1];
param_4[2] = 0;
param_4[3] = 0;
local_28 = pcVar1;
}
/* try { // try from 00157f81 to 00157f98 has its CatchHandler @ 00157fbb */
local_18 = param_2;
local_10 = param_3;
detail::
parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::parser(param_1,&local_18,&local_38,param_5,param_6);
if (local_28 != (code *)0x0) {
/* try { // try from 00157fa3 to 00157faf has its CatchHandler @ 00157fb9 */
(*local_28)(&local_38,&local_38,3);
}
return param_1;
}
|
|
66,219 |
my_numcells_eucjpms
|
eloqsql/strings/ctype-eucjpms.c
|
static
size_t my_numcells_eucjpms(CHARSET_INFO *cs __attribute__((unused)),
const char *str, const char *str_end)
{
size_t clen;
const uchar *b= (const uchar *) str;
const uchar *e= (const uchar *) str_end;
for (clen= 0; b < e; )
{
if (*b == 0x8E)
{
clen++;
b+= 2;
}
else if (*b == 0x8F)
{
clen+= 2;
b+= 3;
}
else if (*b & 0x80)
{
clen+= 2;
b+= 2;
}
else
{
clen++;
b++;
}
}
return clen;
}
|
O0
|
c
|
my_numcells_eucjpms:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movq $0x0, -0x20(%rbp)
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
jae 0x40ba2
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x8e, %eax
jne 0x40b2e
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x28(%rbp)
jmp 0x40b9d
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x8f, %eax
jne 0x40b56
movq -0x20(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x28(%rbp)
jmp 0x40b9b
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0x40b81
movq -0x20(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x28(%rbp)
jmp 0x40b99
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x40b9b
jmp 0x40b9d
jmp 0x40af8
movq -0x20(%rbp), %rax
popq %rbp
retq
nopl (%rax,%rax)
|
my_numcells_eucjpms:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, [rbp+var_10]
mov [rbp+var_28], rax
mov rax, [rbp+var_18]
mov [rbp+var_30], rax
mov [rbp+var_20], 0
loc_40AF8:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_30]
jnb loc_40BA2
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax]
cmp eax, 8Eh
jnz short loc_40B2E
mov rax, [rbp+var_20]
add rax, 1
mov [rbp+var_20], rax
mov rax, [rbp+var_28]
add rax, 2
mov [rbp+var_28], rax
jmp short loc_40B9D
loc_40B2E:
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax]
cmp eax, 8Fh
jnz short loc_40B56
mov rax, [rbp+var_20]
add rax, 2
mov [rbp+var_20], rax
mov rax, [rbp+var_28]
add rax, 3
mov [rbp+var_28], rax
jmp short loc_40B9B
loc_40B56:
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax]
and eax, 80h
cmp eax, 0
jz short loc_40B81
mov rax, [rbp+var_20]
add rax, 2
mov [rbp+var_20], rax
mov rax, [rbp+var_28]
add rax, 2
mov [rbp+var_28], rax
jmp short loc_40B99
loc_40B81:
mov rax, [rbp+var_20]
add rax, 1
mov [rbp+var_20], rax
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
loc_40B99:
jmp short $+2
loc_40B9B:
jmp short $+2
loc_40B9D:
jmp loc_40AF8
loc_40BA2:
mov rax, [rbp+var_20]
pop rbp
retn
|
long long my_numcells_eucjpms(long long a1, _BYTE *a2, unsigned long long a3)
{
long long v5; // [rsp+10h] [rbp-20h]
v5 = 0LL;
while ( (unsigned long long)a2 < a3 )
{
if ( (unsigned __int8)*a2 == 142 )
{
++v5;
a2 += 2;
}
else if ( (unsigned __int8)*a2 == 143 )
{
v5 += 2LL;
a2 += 3;
}
else if ( (*a2 & 0x80) != 0 )
{
v5 += 2LL;
a2 += 2;
}
else
{
++v5;
++a2;
}
}
return v5;
}
|
my_numcells_eucjpms:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x30],RAX
MOV qword ptr [RBP + -0x20],0x0
LAB_00140af8:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNC 0x00140ba2
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x8e
JNZ 0x00140b2e
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x2
MOV qword ptr [RBP + -0x28],RAX
JMP 0x00140b9d
LAB_00140b2e:
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x8f
JNZ 0x00140b56
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x2
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x3
MOV qword ptr [RBP + -0x28],RAX
JMP 0x00140b9b
LAB_00140b56:
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX]
AND EAX,0x80
CMP EAX,0x0
JZ 0x00140b81
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x2
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x2
MOV qword ptr [RBP + -0x28],RAX
JMP 0x00140b99
LAB_00140b81:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
LAB_00140b99:
JMP 0x00140b9b
LAB_00140b9b:
JMP 0x00140b9d
LAB_00140b9d:
JMP 0x00140af8
LAB_00140ba2:
MOV RAX,qword ptr [RBP + -0x20]
POP RBP
RET
|
long my_numcells_eucjpms(int8 param_1,byte *param_2,byte *param_3)
{
byte *local_30;
long local_28;
local_28 = 0;
local_30 = param_2;
while (local_30 < param_3) {
if (*local_30 == 0x8e) {
local_28 = local_28 + 1;
local_30 = local_30 + 2;
}
else if (*local_30 == 0x8f) {
local_28 = local_28 + 2;
local_30 = local_30 + 3;
}
else if ((*local_30 & 0x80) == 0) {
local_28 = local_28 + 1;
local_30 = local_30 + 1;
}
else {
local_28 = local_28 + 2;
local_30 = local_30 + 2;
}
}
return local_28;
}
|
|
66,220 |
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>::basic_json<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>>, 0>(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>> const&)
|
monkey531[P]llama/common/json.hpp
|
basic_json(const JsonRef& ref) : basic_json(ref.moved_or_copied()) {}
|
O1
|
cpp
|
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::basic_json<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>>, 0>(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>> const&):
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x65690
movups (%r14), %xmm0
movups %xmm0, (%rbx)
movq %r14, %rdi
xorl %esi, %esi
callq 0x3dcd2
movb $0x0, (%r14)
movq $0x0, 0x8(%r14)
movq %rbx, %rdi
movl $0x1, %esi
callq 0x3dcd2
movq %r14, %rdi
xorl %esi, %esi
callq 0x3dcd2
movq %r14, %rdi
callq 0x4ac3e
addq $0x18, %rsp
popq %rbx
popq %r14
retq
nop
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2INS0_6detail8json_refISD_EETnNSt9enable_ifIXsr6detail11conjunctionINSF_11is_json_refIT_EESt7is_sameINSK_10value_typeESD_EEE5valueEiE4typeELi0EEERKSK_:
push r14
push rbx
sub rsp, 18h
mov rbx, rdi
lea r14, [rsp+28h+var_20]
mov rdi, 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)
movups xmm0, xmmword ptr [r14]
movups xmmword ptr [rbx], xmm0
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov byte ptr [r14], 0
mov qword ptr [r14+8], 0
mov rdi, rbx
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
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()
add rsp, 18h
pop rbx
pop r14
retn
|
char * ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2INS0_6detail8json_refISD_EETnNSt9enable_ifIXsr6detail11conjunctionINSF_11is_json_refIT_EESt7is_sameINSK_10value_typeESD_EEE5valueEiE4typeELi0EEERKSK_(
char *a1,
long long a2)
{
char *result; // rax
_OWORD v3[2]; // [rsp+8h] [rbp-20h] BYREF
result = 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(
(char *)v3,
a2);
*(_OWORD *)a1 = v3[0];
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v3);
LOBYTE(v3[0]) = 0;
*((_QWORD *)&v3[0] + 1) = 0LL;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(a1);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v3);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data((void **)v3);
return result;
}
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2INS0_6detail8json_refISD_EETnNSt9enable_ifIXsr6detail11conjunctionINSF_11is_json_refIT_EESt7is_sameINSK_10value_typeESD_EEE5valueEiE4typeELi0EEERKSK_:
PUSH R14
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
LEA R14,[RSP + 0x8]
MOV RDI,R14
CALL 0x00165690
MOVUPS XMM0,xmmword ptr [R14]
MOVUPS xmmword ptr [RBX],XMM0
MOV RDI,R14
XOR ESI,ESI
CALL 0x0013dcd2
MOV byte ptr [R14],0x0
MOV qword ptr [R14 + 0x8],0x0
MOV RDI,RBX
MOV ESI,0x1
CALL 0x0013dcd2
MOV RDI,R14
XOR ESI,ESI
CALL 0x0013dcd2
MOV RDI,R14
CALL 0x0014ac3e
ADD RSP,0x18
POP RBX
POP R14
RET
|
void _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2INS0_6detail8json_refISD_EETnNSt9enable_ifIXsr6detail11conjunctionINSF_11is_json_refIT_EESt7is_sameINSK_10value_typeESD_EEE5valueEiE4typeELi0EEERKSK_
(int8 *param_1)
{
bool bVar1;
data local_20;
int7 uStack_1f;
int8 uStack_18;
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>>
::moved_or_copied();
*param_1 = CONCAT71(uStack_1f,local_20);
param_1[1] = uStack_18;
bVar1 = SUB81(&local_20,0);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar1);
local_20 = (data)0x0;
uStack_18 = 0;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(param_1,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar1);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_20);
return;
}
|
|
66,221 |
ssz_add_uint32
|
corpus-core[P]colibri-stateless/src/util/ssz_builder.c
|
void ssz_add_uint32(ssz_builder_t* buffer, uint32_t value) {
uint8_t tmp[4];
tmp[0] = value & 0xFF;
tmp[1] = (value >> 8) & 0xFF;
tmp[2] = (value >> 16) & 0xFF;
tmp[3] = (value >> 24) & 0xFF;
buffer_append(&buffer->fixed, bytes(tmp, 4));
}
|
O0
|
c
|
ssz_add_uint32:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl -0xc(%rbp), %eax
andl $0xff, %eax
movb %al, -0x10(%rbp)
movl -0xc(%rbp), %eax
shrl $0x8, %eax
andl $0xff, %eax
movb %al, -0xf(%rbp)
movl -0xc(%rbp), %eax
shrl $0x10, %eax
andl $0xff, %eax
movb %al, -0xe(%rbp)
movl -0xc(%rbp), %eax
shrl $0x18, %eax
andl $0xff, %eax
movb %al, -0xd(%rbp)
movq -0x8(%rbp), %rdi
addq $0x8, %rdi
movl $0x4, -0x20(%rbp)
leaq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
movl -0x20(%rbp), %esi
movq -0x18(%rbp), %rdx
callq 0x18bd0
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
|
ssz_add_uint32:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov eax, [rbp+var_C]
and eax, 0FFh
mov [rbp+var_10], al
mov eax, [rbp+var_C]
shr eax, 8
and eax, 0FFh
mov [rbp+var_F], al
mov eax, [rbp+var_C]
shr eax, 10h
and eax, 0FFh
mov [rbp+var_E], al
mov eax, [rbp+var_C]
shr eax, 18h
and eax, 0FFh
mov [rbp+var_D], al
mov rdi, [rbp+var_8]
add rdi, 8
mov [rbp+var_20], 4
lea rax, [rbp+var_10]
mov [rbp+var_18], rax
mov esi, [rbp+var_20]
mov rdx, [rbp+var_18]
call buffer_append
add rsp, 20h
pop rbp
retn
|
long long ssz_add_uint32(long long a1, int a2)
{
_DWORD v3[2]; // [rsp+10h] [rbp-10h] BYREF
long long v4; // [rsp+18h] [rbp-8h]
v4 = a1;
v3[1] = a2;
v3[0] = a2;
return buffer_append((unsigned int *)(a1 + 8), 4u, (long long)v3);
}
|
ssz_add_uint32:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV EAX,dword ptr [RBP + -0xc]
AND EAX,0xff
MOV byte ptr [RBP + -0x10],AL
MOV EAX,dword ptr [RBP + -0xc]
SHR EAX,0x8
AND EAX,0xff
MOV byte ptr [RBP + -0xf],AL
MOV EAX,dword ptr [RBP + -0xc]
SHR EAX,0x10
AND EAX,0xff
MOV byte ptr [RBP + -0xe],AL
MOV EAX,dword ptr [RBP + -0xc]
SHR EAX,0x18
AND EAX,0xff
MOV byte ptr [RBP + -0xd],AL
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x8
MOV dword ptr [RBP + -0x20],0x4
LEA RAX,[RBP + -0x10]
MOV qword ptr [RBP + -0x18],RAX
MOV ESI,dword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x18]
CALL 0x00118bd0
ADD RSP,0x20
POP RBP
RET
|
void ssz_add_uint32(long param_1,int4 param_2)
{
int1 local_18;
int1 local_17;
int1 local_16;
int1 local_15;
int4 local_14;
long local_10;
local_18 = (int1)param_2;
local_17 = (int1)((uint)param_2 >> 8);
local_16 = (int1)((uint)param_2 >> 0x10);
local_15 = (int1)((uint)param_2 >> 0x18);
local_14 = param_2;
local_10 = param_1;
buffer_append(param_1 + 8,4,&local_18);
return;
}
|
|
66,222 |
ssz_add_uint32
|
corpus-core[P]colibri-stateless/src/util/ssz_builder.c
|
void ssz_add_uint32(ssz_builder_t* buffer, uint32_t value) {
uint8_t tmp[4];
tmp[0] = value & 0xFF;
tmp[1] = (value >> 8) & 0xFF;
tmp[2] = (value >> 16) & 0xFF;
tmp[3] = (value >> 24) & 0xFF;
buffer_append(&buffer->fixed, bytes(tmp, 4));
}
|
O1
|
c
|
ssz_add_uint32:
pushq %rax
leaq 0x4(%rsp), %rdx
movl %esi, (%rdx)
addq $0x8, %rdi
movl $0x4, %esi
callq 0x1294d
popq %rax
retq
|
ssz_add_uint32:
push rax
lea rdx, [rsp+8+var_4]
mov [rdx], esi
add rdi, 8
mov esi, 4
call buffer_append
pop rax
retn
|
unsigned long long ssz_add_uint32(long long a1, unsigned int a2)
{
unsigned int v2; // eax
unsigned long long v4; // [rsp-4h] [rbp-8h] BYREF
v4 = __PAIR64__(a2, v2);
buffer_append((unsigned int *)(a1 + 8), 4u, (long long)&v4 + 4);
return v4;
}
|
ssz_add_uint32:
PUSH RAX
LEA RDX,[RSP + 0x4]
MOV dword ptr [RDX],ESI
ADD RDI,0x8
MOV ESI,0x4
CALL 0x0011294d
POP RAX
RET
|
int8 ssz_add_uint32(long param_1,int4 param_2)
{
int4 in_EAX;
int8 uStack_8;
uStack_8 = CONCAT44(param_2,in_EAX);
buffer_append(param_1 + 8,4);
return uStack_8;
}
|
|
66,223 |
ssz_add_uint32
|
corpus-core[P]colibri-stateless/src/util/ssz_builder.c
|
void ssz_add_uint32(ssz_builder_t* buffer, uint32_t value) {
uint8_t tmp[4];
tmp[0] = value & 0xFF;
tmp[1] = (value >> 8) & 0xFF;
tmp[2] = (value >> 16) & 0xFF;
tmp[3] = (value >> 24) & 0xFF;
buffer_append(&buffer->fixed, bytes(tmp, 4));
}
|
O3
|
c
|
ssz_add_uint32:
pushq %rax
leaq 0x4(%rsp), %rdx
movl %esi, (%rdx)
addq $0x8, %rdi
movl $0x4, %esi
callq 0x12651
popq %rax
retq
|
ssz_add_uint32:
push rax
lea rdx, [rsp+8+var_4]
mov [rdx], esi
add rdi, 8
mov esi, 4
call buffer_append
pop rax
retn
|
unsigned long long ssz_add_uint32(long long a1, unsigned int a2)
{
unsigned int v2; // eax
unsigned long long v4; // [rsp-4h] [rbp-8h] BYREF
v4 = __PAIR64__(a2, v2);
buffer_append((unsigned int *)(a1 + 8), 4u, (long long)&v4 + 4);
return v4;
}
|
ssz_add_uint32:
PUSH RAX
LEA RDX,[RSP + 0x4]
MOV dword ptr [RDX],ESI
ADD RDI,0x8
MOV ESI,0x4
CALL 0x00112651
POP RAX
RET
|
int8 ssz_add_uint32(long param_1,int4 param_2)
{
int4 in_EAX;
int8 uStack_8;
uStack_8 = CONCAT44(param_2,in_EAX);
buffer_append(param_1 + 8,4);
return uStack_8;
}
|
|
66,224 |
LefDefParser::lefiNonDefault::cutLayerName(int) const
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiNonDefault.cpp
|
const char *
lefiNonDefault::cutLayerName(int index) const
{
char msg[160];
if (index < 0 || index >= numMinCuts_) {
sprintf(msg, "ERROR (LEFPARS-1407): The index number %d given for the NONDEFAULT CUT is invalid.\nValid index is from 0 to %d", index, numMinCuts_);
lefiError(0, 1407, msg);
return 0;
}
return cutLayerName_[index];
}
|
O3
|
cpp
|
LefDefParser::lefiNonDefault::cutLayerName(int) const:
pushq %r14
pushq %rbx
subq $0xa8, %rsp
movl %esi, %edx
testl %esi, %esi
setns %al
movl 0xd8(%rdi), %ecx
cmpl %esi, %ecx
setg %sil
testb %sil, %al
je 0x2c73b
movq 0xe0(%rdi), %rax
movl %edx, %ecx
movq (%rax,%rcx,8), %rbx
jmp 0x2c760
leaq 0x3215b(%rip), %rsi # 0x5e89d
xorl %ebx, %ebx
movq %rsp, %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x2050
xorl %edi, %edi
movl $0x57f, %esi # imm = 0x57F
movq %r14, %rdx
callq 0x33d78
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r14
retq
|
_ZNK12LefDefParser14lefiNonDefault12cutLayerNameEi:
push r14
push rbx
sub rsp, 0A8h
mov edx, esi
test esi, esi
setns al
mov ecx, [rdi+0D8h]
cmp ecx, esi
setnle sil
test al, sil
jz short loc_2C73B
mov rax, [rdi+0E0h]
mov ecx, edx
mov rbx, [rax+rcx*8]
jmp short loc_2C760
loc_2C73B:
lea rsi, aErrorLefpars14_8; "ERROR (LEFPARS-1407): The index number "...
xor ebx, ebx
mov r14, rsp
mov rdi, r14
xor eax, eax
call _sprintf
xor edi, edi; this
mov esi, 57Fh; int
mov rdx, r14; int
call _ZN12LefDefParser9lefiErrorEiiPKc; LefDefParser::lefiError(int,int,char const*)
loc_2C760:
mov rax, rbx
add rsp, 0A8h
pop rbx
pop r14
retn
|
long long LefDefParser::lefiNonDefault::cutLayerName(LefDefParser::lefiNonDefault *this, signed int a2)
{
int v2; // ecx
long long v3; // rbx
const char *v4; // rcx
_BYTE v6[184]; // [rsp+0h] [rbp-B8h] BYREF
v2 = *((_DWORD *)this + 54);
if ( v2 > a2 && a2 >= 0 )
return *(_QWORD *)(*((_QWORD *)this + 28) + 8LL * (unsigned int)a2);
v3 = 0LL;
sprintf(
v6,
"ERROR (LEFPARS-1407): The index number %d given for the NONDEFAULT CUT is invalid.\nValid index is from 0 to %d",
a2,
v2);
LefDefParser::lefiError(0LL, 1407, (int)v6, v4);
return v3;
}
|
cutLayerName:
PUSH R14
PUSH RBX
SUB RSP,0xa8
MOV EDX,ESI
TEST ESI,ESI
SETNS AL
MOV ECX,dword ptr [RDI + 0xd8]
CMP ECX,ESI
SETG SIL
TEST AL,SIL
JZ 0x0012c73b
MOV RAX,qword ptr [RDI + 0xe0]
MOV ECX,EDX
MOV RBX,qword ptr [RAX + RCX*0x8]
JMP 0x0012c760
LAB_0012c73b:
LEA RSI,[0x15e89d]
XOR EBX,EBX
MOV R14,RSP
MOV RDI,R14
XOR EAX,EAX
CALL 0x00102050
XOR EDI,EDI
MOV ESI,0x57f
MOV RDX,R14
CALL 0x00133d78
LAB_0012c760:
MOV RAX,RBX
ADD RSP,0xa8
POP RBX
POP R14
RET
|
/* LefDefParser::lefiNonDefault::cutLayerName(int) const */
int8 __thiscall LefDefParser::lefiNonDefault::cutLayerName(lefiNonDefault *this,int param_1)
{
int8 uVar1;
char acStack_b8 [168];
if (param_1 < 0 || *(int *)(this + 0xd8) <= param_1) {
uVar1 = 0;
sprintf(acStack_b8,
"ERROR (LEFPARS-1407): The index number %d given for the NONDEFAULT CUT is invalid.\nValid index is from 0 to %d"
);
lefiError(0,0x57f,acStack_b8);
}
else {
uVar1 = *(int8 *)(*(long *)(this + 0xe0) + (ulong)(uint)param_1 * 8);
}
return uVar1;
}
|
|
66,225 |
httplib::DataSink::DataSink()
|
monkey531[P]llama/examples/server/httplib.h
|
DataSink() : os(&sb_), sb_(*this) {}
|
O3
|
c
|
httplib::DataSink::DataSink():
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0x20(%rdi), %r14
leaq 0x40(%rdi), %r12
leaq 0x60(%rdi), %r13
leaq 0x80(%rdi), %rdi
leaq 0x190(%rbx), %rsi
xorps %xmm0, %xmm0
movups %xmm0, 0x70(%rbx)
movups %xmm0, 0x60(%rbx)
movups %xmm0, 0x50(%rbx)
movups %xmm0, 0x40(%rbx)
movups %xmm0, 0x30(%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x10(%rbx)
movups %xmm0, (%rbx)
callq 0x1f430
movq 0x13dbf4(%rip), %rax # 0x1a4f38
addq $0x10, %rax
movq %rax, 0x190(%rbx)
leaq 0x1c8(%rbx), %rdi
xorps %xmm0, %xmm0
movups %xmm0, 0x198(%rbx)
movups %xmm0, 0x1a8(%rbx)
movups %xmm0, 0x1b8(%rbx)
callq 0x205b0
leaq 0x13b6a6(%rip), %rax # 0x1a2a20
movq %rax, 0x190(%rbx)
movq %rbx, 0x1d0(%rbx)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r15
movq 0x70(%rbx), %rax
testq %rax, %rax
je 0x673ab
movq %r13, %rdi
movq %r13, %rsi
movl $0x3, %edx
callq *%rax
movq 0x50(%rbx), %rax
testq %rax, %rax
je 0x673c1
movq %r12, %rdi
movq %r12, %rsi
movl $0x3, %edx
callq *%rax
movq 0x30(%rbx), %rax
testq %rax, %rax
je 0x673d7
movq %r14, %rdi
movq %r14, %rsi
movl $0x3, %edx
callq *%rax
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0x673ed
movq %rbx, %rdi
movq %rbx, %rsi
movl $0x3, %edx
callq *%rax
movq %r15, %rdi
callq 0x20380
jmp 0x673fb
jmp 0x673fb
jmp 0x673fb
movq %rax, %rdi
callq 0x3f24b
nop
|
_ZN7httplib8DataSinkC2Ev:
push r15
push r14
push r13
push r12
push rbx
mov rbx, rdi
lea r14, [rdi+20h]
lea r12, [rdi+40h]
lea r13, [rdi+60h]
lea rdi, [rdi+80h]
lea rsi, [rbx+190h]
xorps xmm0, xmm0
movups xmmword ptr [rbx+70h], xmm0
movups xmmword ptr [rbx+60h], xmm0
movups xmmword ptr [rbx+50h], xmm0
movups xmmword ptr [rbx+40h], xmm0
movups xmmword ptr [rbx+30h], xmm0
movups xmmword ptr [rbx+20h], xmm0
movups xmmword ptr [rbx+10h], xmm0
movups xmmword ptr [rbx], xmm0
call __ZNSoC1EPSt15basic_streambufIcSt11char_traitsIcEE; std::ostream::ostream(std::streambuf *)
mov rax, cs:_ZTVSt15basic_streambufIcSt11char_traitsIcEE_ptr
add rax, 10h
mov [rbx+190h], rax
lea rdi, [rbx+1C8h]; this
xorps xmm0, xmm0
movups xmmword ptr [rbx+198h], xmm0
movups xmmword ptr [rbx+1A8h], xmm0
movups xmmword ptr [rbx+1B8h], xmm0
call __ZNSt6localeC1Ev; std::locale::locale(void)
lea rax, off_1A2A20
mov [rbx+190h], rax
mov [rbx+1D0h], rbx
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
mov r15, rax
mov rax, [rbx+70h]
test rax, rax
jz short loc_673AB
mov rdi, r13
mov rsi, r13
mov edx, 3
call rax
loc_673AB:
mov rax, [rbx+50h]
test rax, rax
jz short loc_673C1
mov rdi, r12
mov rsi, r12
mov edx, 3
call rax
loc_673C1:
mov rax, [rbx+30h]
test rax, rax
jz short loc_673D7
mov rdi, r14
mov rsi, r14
mov edx, 3
call rax
loc_673D7:
mov rax, [rbx+10h]
test rax, rax
jz short loc_673ED
mov rdi, rbx
mov rsi, rbx
mov edx, 3
call rax
loc_673ED:
mov rdi, r15
call __Unwind_Resume
jmp short loc_673FB
jmp short loc_673FB
jmp short $+2
loc_673FB:
mov rdi, rax
call __clang_call_terminate
|
_UNKNOWN ** httplib::DataSink::DataSink(httplib::DataSink *this)
{
_UNKNOWN **result; // rax
*((_OWORD *)this + 7) = 0LL;
*((_OWORD *)this + 6) = 0LL;
*((_OWORD *)this + 5) = 0LL;
*((_OWORD *)this + 4) = 0LL;
*((_OWORD *)this + 3) = 0LL;
*((_OWORD *)this + 2) = 0LL;
*((_OWORD *)this + 1) = 0LL;
*(_OWORD *)this = 0LL;
std::ostream::ostream((char *)this + 128, (char *)this + 400);
*((_QWORD *)this + 50) = (char *)&`vtable for'std::streambuf + 16;
*(_OWORD *)((char *)this + 408) = 0LL;
*(_OWORD *)((char *)this + 424) = 0LL;
*(_OWORD *)((char *)this + 440) = 0LL;
std::locale::locale((httplib::DataSink *)((char *)this + 456));
result = &off_1A2A20;
*((_QWORD *)this + 50) = &off_1A2A20;
*((_QWORD *)this + 58) = this;
return result;
}
|
DataSink:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV RBX,RDI
LEA R14,[RDI + 0x20]
LEA R12,[RDI + 0x40]
LEA R13,[RDI + 0x60]
LEA RDI,[RDI + 0x80]
LEA RSI,[RBX + 0x190]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x70],XMM0
MOVUPS xmmword ptr [RBX + 0x60],XMM0
MOVUPS xmmword ptr [RBX + 0x50],XMM0
MOVUPS xmmword ptr [RBX + 0x40],XMM0
MOVUPS xmmword ptr [RBX + 0x30],XMM0
MOVUPS xmmword ptr [RBX + 0x20],XMM0
MOVUPS xmmword ptr [RBX + 0x10],XMM0
MOVUPS xmmword ptr [RBX],XMM0
LAB_00167338:
CALL 0x0011f430
MOV RAX,qword ptr [0x002a4f38]
ADD RAX,0x10
MOV qword ptr [RBX + 0x190],RAX
LEA RDI,[RBX + 0x1c8]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x198],XMM0
MOVUPS xmmword ptr [RBX + 0x1a8],XMM0
MOVUPS xmmword ptr [RBX + 0x1b8],XMM0
CALL 0x001205b0
LEA RAX,[0x2a2a20]
MOV qword ptr [RBX + 0x190],RAX
MOV qword ptr [RBX + 0x1d0],RBX
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* httplib::DataSink::DataSink() */
void __thiscall httplib::DataSink::DataSink(DataSink *this)
{
*(int8 *)(this + 0x70) = 0;
*(int8 *)(this + 0x78) = 0;
*(int8 *)(this + 0x60) = 0;
*(int8 *)(this + 0x68) = 0;
*(int8 *)(this + 0x50) = 0;
*(int8 *)(this + 0x58) = 0;
*(int8 *)(this + 0x40) = 0;
*(int8 *)(this + 0x48) = 0;
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
/* try { // try from 00167338 to 0016733c has its CatchHandler @ 00167392 */
std::ostream::ostream((ostream *)(this + 0x80),(streambuf *)(this + 400));
*(int **)(this + 400) = PTR_vtable_002a4f38 + 0x10;
*(int8 *)(this + 0x198) = 0;
*(int8 *)(this + 0x1a0) = 0;
*(int8 *)(this + 0x1a8) = 0;
*(int8 *)(this + 0x1b0) = 0;
*(int8 *)(this + 0x1b8) = 0;
*(int8 *)(this + 0x1c0) = 0;
std::locale::locale((locale *)(this + 0x1c8));
*(int ***)(this + 400) = &PTR__streambuf_002a2a20;
*(DataSink **)(this + 0x1d0) = this;
return;
}
|
|
66,226 |
bchange
|
eloqsql/strings/bchange.c
|
void bchange(register uchar *dst, size_t old_length, register const uchar *src,
size_t new_length, size_t tot_length)
{
size_t rest=tot_length-old_length;
if (old_length < new_length)
bmove_upp(dst+rest+new_length,dst+tot_length,rest);
else
bmove(dst+new_length,dst+old_length,rest);
memcpy(dst,src,new_length);
}
|
O0
|
c
|
bchange:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x28(%rbp), %rax
subq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
cmpq -0x20(%rbp), %rax
jae 0x116ea1
movq -0x8(%rbp), %rdi
addq -0x30(%rbp), %rdi
addq -0x20(%rbp), %rdi
movq -0x8(%rbp), %rsi
addq -0x28(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x116ee0
jmp 0x116eba
movq -0x8(%rbp), %rdi
addq -0x20(%rbp), %rdi
movq -0x8(%rbp), %rsi
addq -0x10(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x2a140
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x2a0b0
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
|
bchange:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov rax, [rbp+var_28]
sub rax, [rbp+var_10]
mov [rbp+var_30], rax
mov rax, [rbp+var_10]
cmp rax, [rbp+var_20]
jnb short loc_116EA1
mov rdi, [rbp+var_8]
add rdi, [rbp+var_30]
add rdi, [rbp+var_20]
mov rsi, [rbp+var_8]
add rsi, [rbp+var_28]
mov rdx, [rbp+var_30]
call bmove_upp
jmp short loc_116EBA
loc_116EA1:
mov rdi, [rbp+var_8]
add rdi, [rbp+var_20]
mov rsi, [rbp+var_8]
add rsi, [rbp+var_10]
mov rdx, [rbp+var_30]
call _memmove
loc_116EBA:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
call _memcpy
add rsp, 30h
pop rbp
retn
|
long long bchange(long long a1, unsigned long long a2, long long a3, unsigned long long a4, long long a5)
{
long long v6; // [rsp+0h] [rbp-30h]
v6 = a5 - a2;
if ( a2 >= a4 )
memmove(a4 + a1, a2 + a1, v6);
else
bmove_upp(a4 + v6 + a1, a5 + a1, v6);
return memcpy(a1, a3, a4);
}
| |||
66,227 |
bchange
|
eloqsql/strings/bchange.c
|
void bchange(register uchar *dst, size_t old_length, register const uchar *src,
size_t new_length, size_t tot_length)
{
size_t rest=tot_length-old_length;
if (old_length < new_length)
bmove_upp(dst+rest+new_length,dst+tot_length,rest);
else
bmove(dst+new_length,dst+old_length,rest);
memcpy(dst,src,new_length);
}
|
O3
|
c
|
bchange:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rdi, %r15
movq %r8, %rdx
subq %rsi, %rdx
cmpq %rcx, %rsi
jae 0xb3742
leaq (%r15,%rdx), %rdi
addq %rbx, %rdi
addq %r15, %r8
movq %r8, %rsi
callq 0xb3768
jmp 0xb374e
leaq (%r15,%rbx), %rdi
addq %r15, %rsi
callq 0x2a130
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2a0a0
nop
|
bchange:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rcx
mov r14, rdx
mov r15, rdi
mov rdx, r8
sub rdx, rsi
cmp rsi, rcx
jnb short loc_B3742
lea rdi, [r15+rdx]
add rdi, rbx
add r8, r15
mov rsi, r8
call bmove_upp
jmp short loc_B374E
loc_B3742:
lea rdi, [r15+rbx]
add rsi, r15
call _memmove
loc_B374E:
mov rdi, r15
mov rsi, r14
mov rdx, rbx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
jmp _memcpy
|
long long bchange(long long a1, unsigned long long a2, long long a3, unsigned long long a4, long long a5)
{
long long v7; // rdx
v7 = a5 - a2;
if ( a2 >= a4 )
memmove(a1 + a4, a1 + a2, v7);
else
bmove_upp(a4 + a1 + v7, a1 + a5);
return memcpy(a1, a3, a4);
}
|
bchange:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RCX
MOV R14,RDX
MOV R15,RDI
MOV RDX,R8
SUB RDX,RSI
CMP RSI,RCX
JNC 0x001b3742
LEA RDI,[R15 + RDX*0x1]
ADD RDI,RBX
ADD R8,R15
MOV RSI,R8
CALL 0x001b3768
JMP 0x001b374e
LAB_001b3742:
LEA RDI,[R15 + RBX*0x1]
ADD RSI,R15
CALL 0x0012a130
LAB_001b374e:
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
JMP 0x0012a0a0
|
void bchange(void *param_1,ulong param_2,void *param_3,ulong param_4,long param_5)
{
if (param_2 < param_4) {
bmove_upp((long)param_1 + param_4 + (param_5 - param_2),param_5 + (long)param_1);
}
else {
memmove((void *)((long)param_1 + param_4),(void *)(param_2 + (long)param_1),param_5 - param_2);
}
memcpy(param_1,param_3,param_4);
return;
}
|
|
66,228 |
ImPlot3D::RenderLegend()
|
zkingston[P]unknot/build_O0/_deps/implot3d-src/implot3d.cpp
|
void RenderLegend() {
ImPlot3DContext& gp = *GImPlot3D;
ImPlot3DPlot& plot = *gp.CurrentPlot;
if (ImPlot3D::ImHasFlag(plot.Flags, ImPlot3DFlags_NoLegend) || plot.Items.GetLegendCount() == 0)
return;
ImGuiContext& g = *GImGui;
ImGuiWindow* window = g.CurrentWindow;
ImDrawList* draw_list = window->DrawList;
const ImGuiIO& IO = ImGui::GetIO();
ImPlot3DLegend& legend = plot.Items.Legend;
const bool legend_horz = ImPlot3D::ImHasFlag(legend.Flags, ImPlot3DLegendFlags_Horizontal);
const ImVec2 legend_size = CalcLegendSize(plot.Items, gp.Style.LegendInnerPadding, gp.Style.LegendSpacing, !legend_horz);
const ImVec2 legend_pos = GetLocationPos(plot.PlotRect,
legend_size,
legend.Location,
gp.Style.LegendPadding);
legend.Rect = ImRect(legend_pos, legend_pos + legend_size);
// Test hover
legend.Hovered = legend.Rect.Contains(IO.MousePos);
// Render background
ImU32 col_bg = GetStyleColorU32(ImPlot3DCol_LegendBg);
ImU32 col_bd = GetStyleColorU32(ImPlot3DCol_LegendBorder);
draw_list->AddRectFilled(legend.Rect.Min, legend.Rect.Max, col_bg);
draw_list->AddRect(legend.Rect.Min, legend.Rect.Max, col_bd);
// Render legends
ShowLegendEntries(plot.Items, legend.Rect, legend.Hovered, gp.Style.LegendInnerPadding, gp.Style.LegendSpacing, !legend_horz, *draw_list);
}
|
O0
|
cpp
|
ImPlot3D::RenderLegend():
subq $0x88, %rsp
movq 0x5c57ba(%rip), %rax # 0x68f638
movq %rax, 0x80(%rsp)
movq 0x80(%rsp), %rax
movq 0x28(%rax), %rax
movq %rax, 0x78(%rsp)
movq 0x78(%rsp), %rax
movl 0x4(%rax), %edi
movl $0x2, %esi
callq 0xca0f0
testb $0x1, %al
jne 0xc9ec3
movq 0x78(%rsp), %rdi
addq $0x1f8, %rdi # imm = 0x1F8
callq 0xd8980
cmpl $0x0, %eax
jne 0xc9ec8
jmp 0xca0df
leaq 0x5c5c81(%rip), %rax # 0x68fb50
movq (%rax), %rax
movq %rax, 0x70(%rsp)
movq 0x70(%rsp), %rax
movq 0x1368(%rax), %rax
movq %rax, 0x68(%rsp)
movq 0x68(%rsp), %rax
movq 0x2b0(%rax), %rax
movq %rax, 0x60(%rsp)
callq 0x4fe590
movq %rax, 0x58(%rsp)
movq 0x78(%rsp), %rax
addq $0x220, %rax # imm = 0x220
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rax
movl (%rax), %edi
movl $0x4, %esi
callq 0xc9da0
movb %al, 0x4f(%rsp)
movq 0x78(%rsp), %rdi
addq $0x1f8, %rdi # imm = 0x1F8
movq 0x80(%rsp), %rdx
movq %rdx, %rsi
addq $0xd0, %rsi
addq $0xd8, %rdx
movb 0x4f(%rsp), %al
notb %al
movzbl %al, %ecx
andl $0x1, %ecx
callq 0xc9440
movlpd %xmm0, 0x44(%rsp)
movq 0x78(%rsp), %rdi
addq $0x44, %rdi
movq 0x50(%rsp), %rax
movl 0x8(%rax), %edx
movq 0x80(%rsp), %rcx
addq $0xc8, %rcx
leaq 0x44(%rsp), %rsi
movq %rsi, 0x10(%rsp)
callq 0xc9210
movq 0x10(%rsp), %rsi
movlpd %xmm0, 0x3c(%rsp)
leaq 0x3c(%rsp), %rdi
callq 0xc9100
movlpd %xmm0, 0x24(%rsp)
leaq 0x2c(%rsp), %rdi
leaq 0x3c(%rsp), %rsi
leaq 0x24(%rsp), %rdx
callq 0xd8a60
movq 0x50(%rsp), %rax
movq 0x2c(%rsp), %rcx
movq %rcx, 0x30(%rax)
movq 0x34(%rsp), %rcx
movq %rcx, 0x38(%rax)
movq 0x50(%rsp), %rdi
addq $0x30, %rdi
movq 0x58(%rsp), %rsi
addq $0xe0, %rsi
callq 0xd8a90
movb %al, %cl
movq 0x50(%rsp), %rax
andb $0x1, %cl
movb %cl, 0x40(%rax)
movl $0x9, %edi
callq 0xc9d30
movl %eax, 0x20(%rsp)
movl $0xa, %edi
callq 0xc9d30
movl %eax, 0x1c(%rsp)
movq 0x60(%rsp), %rdi
movq 0x50(%rsp), %rsi
addq $0x30, %rsi
movq 0x50(%rsp), %rdx
addq $0x30, %rdx
addq $0x8, %rdx
movl 0x20(%rsp), %ecx
xorps %xmm0, %xmm0
xorl %r8d, %r8d
callq 0x53c130
movq 0x60(%rsp), %rdi
movq 0x50(%rsp), %rsi
addq $0x30, %rsi
movq 0x50(%rsp), %rdx
addq $0x30, %rdx
addq $0x8, %rdx
movl 0x1c(%rsp), %ecx
xorps %xmm0, %xmm0
xorl %r8d, %r8d
movss 0x501fa1(%rip), %xmm1 # 0x5cc014
callq 0x53bf40
movq 0x78(%rsp), %rdi
addq $0x1f8, %rdi # imm = 0x1F8
movq 0x50(%rsp), %rsi
addq $0x30, %rsi
movq 0x50(%rsp), %rax
movb 0x40(%rax), %dl
movq 0x80(%rsp), %rcx
addq $0x94, %rcx
addq $0x3c, %rcx
movq 0x80(%rsp), %r8
addq $0x94, %r8
addq $0x44, %r8
movb 0x4f(%rsp), %al
xorb $-0x1, %al
movq 0x60(%rsp), %r10
movq %rsp, %r9
movq %r10, (%r9)
movzbl %dl, %edx
andl $0x1, %edx
movzbl %al, %r9d
andl $0x1, %r9d
callq 0xc9620
addq $0x88, %rsp
retq
nopw (%rax,%rax)
|
_ZN8ImPlot3D12RenderLegendEv:
sub rsp, 88h
mov rax, cs:_ZN8ImPlot3D9GImPlot3DE; ImPlot3D::GImPlot3D
mov [rsp+88h+var_8], rax
mov rax, [rsp+88h+var_8]
mov rax, [rax+28h]
mov [rsp+88h+var_10], rax
mov rax, [rsp+88h+var_10]
mov edi, [rax+4]
mov esi, 2
call _ZN8ImPlot3DL9ImHasFlagIi14ImPlot3DFlags_EEbT_T0_; ImPlot3D::ImHasFlag<int,ImPlot3DFlags_>(int,ImPlot3DFlags_)
test al, 1
jnz short loc_C9EC3
mov rdi, [rsp+88h+var_10]
add rdi, 1F8h; this
call _ZNK17ImPlot3DItemGroup14GetLegendCountEv; ImPlot3DItemGroup::GetLegendCount(void)
cmp eax, 0
jnz short loc_C9EC8
loc_C9EC3:
jmp loc_CA0DF
loc_C9EC8:
lea rax, GImGui
mov rax, [rax]
mov [rsp+88h+var_18], rax
mov rax, [rsp+88h+var_18]
mov rax, [rax+1368h]
mov [rsp+88h+var_20], rax
mov rax, [rsp+88h+var_20]
mov rax, [rax+2B0h]
mov [rsp+88h+var_28], rax
call _ZN5ImGui5GetIOEv; ImGui::GetIO(void)
mov [rsp+88h+var_30], rax
mov rax, [rsp+88h+var_10]
add rax, 220h
mov [rsp+88h+var_38], rax
mov rax, [rsp+88h+var_38]
mov edi, [rax]
mov esi, 4
call _ZN8ImPlot3DL9ImHasFlagIi20ImPlot3DLegendFlags_EEbT_T0_; ImPlot3D::ImHasFlag<int,ImPlot3DLegendFlags_>(int,ImPlot3DLegendFlags_)
mov [rsp+88h+var_39], al
mov rdi, [rsp+88h+var_10]
add rdi, 1F8h; this
mov rdx, [rsp+88h+var_8]
mov rsi, rdx
add rsi, 0D0h; ImPlot3DItemGroup *
add rdx, 0D8h; ImVec2 *
mov al, [rsp+88h+var_39]
not al
movzx ecx, al
and ecx, 1; ImVec2 *
call _ZN8ImPlot3D14CalcLegendSizeER17ImPlot3DItemGroupRK6ImVec2S4_b; ImPlot3D::CalcLegendSize(ImPlot3DItemGroup &,ImVec2 const&,ImVec2 const&,bool)
movlpd [rsp+88h+var_44], xmm0
mov rdi, [rsp+88h+var_10]
add rdi, 44h ; 'D'; this
mov rax, [rsp+88h+var_38]
mov edx, [rax+8]; ImVec2 *
mov rcx, [rsp+88h+var_8]
add rcx, 0C8h; int
lea rsi, [rsp+88h+var_44]; ImRect *
mov [rsp+88h+var_78], rsi
call _ZN8ImPlot3D14GetLocationPosERK6ImRectRK6ImVec2iS5_; ImPlot3D::GetLocationPos(ImRect const&,ImVec2 const&,int,ImVec2 const&)
mov rsi, [rsp+88h+var_78]
movlpd [rsp+88h+var_4C], xmm0
lea rdi, [rsp+88h+var_4C]
call _ZplRK6ImVec2S1__0; operator+(ImVec2 const&,ImVec2 const&)
movlpd [rsp+88h+var_64], xmm0
lea rdi, [rsp+88h+var_5C]; this
lea rsi, [rsp+88h+var_4C]; ImVec2 *
lea rdx, [rsp+88h+var_64]; ImVec2 *
call _ZN6ImRectC2ERK6ImVec2S2_; ImRect::ImRect(ImVec2 const&,ImVec2 const&)
mov rax, [rsp+88h+var_38]
mov rcx, [rsp+88h+var_5C]
mov [rax+30h], rcx
mov rcx, [rsp+88h+var_54]
mov [rax+38h], rcx
mov rdi, [rsp+88h+var_38]
add rdi, 30h ; '0'; this
mov rsi, [rsp+88h+var_30]
add rsi, 0E0h; int
call _ZNK6ImRect8ContainsERK6ImVec2; ImRect::Contains(ImVec2 const&)
mov cl, al
mov rax, [rsp+88h+var_38]
and cl, 1
mov [rax+40h], cl
mov edi, offset byte_9; this
call _ZN8ImPlot3D16GetStyleColorU32Ei; ImPlot3D::GetStyleColorU32(int)
mov [rsp+88h+var_68], eax
mov edi, (offset byte_9+1); this
call _ZN8ImPlot3D16GetStyleColorU32Ei; ImPlot3D::GetStyleColorU32(int)
mov [rsp+88h+var_6C], eax
mov rdi, [rsp+88h+var_28]; this
mov rsi, [rsp+88h+var_38]
add rsi, 30h ; '0'; ImVec2 *
mov rdx, [rsp+88h+var_38]
add rdx, 30h ; '0'
add rdx, 8; ImVec2 *
mov ecx, [rsp+88h+var_68]; unsigned int
xorps xmm0, xmm0; float
xor r8d, r8d; int
call _ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi; ImDrawList::AddRectFilled(ImVec2 const&,ImVec2 const&,uint,float,int)
mov rdi, [rsp+88h+var_28]; this
mov rsi, [rsp+88h+var_38]
add rsi, 30h ; '0'; ImVec2 *
mov rdx, [rsp+88h+var_38]
add rdx, 30h ; '0'
add rdx, 8; ImVec2 *
mov ecx, [rsp+88h+var_6C]; unsigned int
xorps xmm0, xmm0; float
xor r8d, r8d; int
movss xmm1, cs:flt_5CC014; float
call _ZN10ImDrawList7AddRectERK6ImVec2S2_jfif; ImDrawList::AddRect(ImVec2 const&,ImVec2 const&,uint,float,int,float)
mov rdi, [rsp+88h+var_10]
add rdi, 1F8h; this
mov rsi, [rsp+88h+var_38]
add rsi, 30h ; '0'; ImPlot3DItemGroup *
mov rax, [rsp+88h+var_38]
mov dl, [rax+40h]
mov rcx, [rsp+88h+var_8]
add rcx, 94h
add rcx, 3Ch ; '<'; bool
mov r8, [rsp+88h+var_8]
add r8, 94h
add r8, 44h ; 'D'; ImVec2 *
mov al, [rsp+88h+var_39]
xor al, 0FFh
mov r10, [rsp+88h+var_28]
mov r9, rsp
mov [r9], r10
movzx edx, dl
and edx, 1; ImRect *
movzx r9d, al
and r9d, 1; ImVec2 *
call _ZN8ImPlot3D17ShowLegendEntriesER17ImPlot3DItemGroupRK6ImRectbRK6ImVec2S7_bR10ImDrawList; ImPlot3D::ShowLegendEntries(ImPlot3DItemGroup &,ImRect const&,bool,ImVec2 const&,ImVec2 const&,bool,ImDrawList &)
loc_CA0DF:
add rsp, 88h
retn
|
long long ImPlot3D::RenderLegend(ImPlot3D *this, __m128 a2, double a3)
{
long long result; // rax
const ImVec2 *v4; // r8
double v5; // xmm0_8
_BYTE *v6; // rax
const ImVec4 *v7; // rsi
char v8; // al
unsigned int v9; // [rsp+1Ch] [rbp-6Ch]
unsigned int StyleColorU32; // [rsp+20h] [rbp-68h]
double v11; // [rsp+24h] [rbp-64h] BYREF
_QWORD v12[2]; // [rsp+2Ch] [rbp-5Ch] BYREF
double LocationPos; // [rsp+3Ch] [rbp-4Ch] BYREF
double v14; // [rsp+44h] [rbp-44h] BYREF
bool v15; // [rsp+4Fh] [rbp-39h]
_BYTE *v16; // [rsp+50h] [rbp-38h]
long long IO; // [rsp+58h] [rbp-30h]
ImDrawList *v18; // [rsp+60h] [rbp-28h]
long long v19; // [rsp+68h] [rbp-20h]
long long v20; // [rsp+70h] [rbp-18h]
long long v21; // [rsp+78h] [rbp-10h]
float *v22; // [rsp+80h] [rbp-8h]
v22 = (float *)ImPlot3D::GImPlot3D;
v21 = *(_QWORD *)(ImPlot3D::GImPlot3D + 40);
result = ImPlot3D::ImHasFlag<int,ImPlot3DFlags_>(*(unsigned int *)(v21 + 4), 2LL);
if ( (result & 1) == 0 )
{
result = ImPlot3DItemGroup::GetLegendCount((ImPlot3DItemGroup *)(v21 + 504));
if ( (_DWORD)result )
{
v20 = GImGui;
v19 = *(_QWORD *)(GImGui + 4968);
v18 = *(ImDrawList **)(v19 + 688);
IO = ImGui::GetIO((ImGui *)(v21 + 504));
v16 = (_BYTE *)(v21 + 544);
v15 = ImPlot3D::ImHasFlag<int,ImPlot3DLegendFlags_>(*(_DWORD *)(v21 + 544), 4);
v14 = ImPlot3D::CalcLegendSize(
(ImPlot3D *)(v21 + 504),
(ImPlot3DItemGroup *)(v22 + 52),
(const ImVec2 *)(v22 + 54),
(const ImVec2 *)!v15,
a2);
LocationPos = ImPlot3D::GetLocationPos(
(ImPlot3D *)(v21 + 68),
(const ImRect *)&v14,
(const ImVec2 *)*(unsigned int *)(v21 + 552),
v22 + 50,
v4,
*(float *)&v14);
v5 = operator+((unsigned int *)&LocationPos, (float *)&v14);
v11 = v5;
ImRect::ImRect((ImRect *)v12, (const ImVec2 *)&LocationPos, (const ImVec2 *)&v11);
v6 = v16;
*((_QWORD *)v16 + 6) = v12[0];
*((_QWORD *)v6 + 7) = v12[1];
v7 = (const ImVec4 *)(IO + 224);
v8 = ImRect::Contains((ImRect *)(v16 + 48), (const ImVec2 *)(IO + 224));
v16[64] = v8 & 1;
StyleColorU32 = ImPlot3D::GetStyleColorU32((ImPlot3D *)byte_9, v7, v5, a3);
v9 = ImPlot3D::GetStyleColorU32((ImPlot3D *)&byte_9[1], v7, v5, a3);
ImDrawList::AddRectFilled(v18, (const ImVec2 *)(v16 + 48), (const ImVec2 *)(v16 + 56), StyleColorU32, 0.0, 0);
ImDrawList::AddRect(v18, (const ImVec2 *)(v16 + 48), (const ImVec2 *)(v16 + 56), v9, 0.0, 0, 1.0);
return ImPlot3D::ShowLegendEntries(
(ImPlot3D *)(v21 + 504),
(ImPlot3DItemGroup *)(v16 + 48),
(const ImRect *)(v16[64] & 1),
v22 + 52,
(const ImVec2 *)(v22 + 54),
(const ImVec2 *)!v15,
0.0,
(__m128)0x3F800000u,
v18);
}
}
return result;
}
|
RenderLegend:
SUB RSP,0x88
MOV RAX,qword ptr [0x0078f638]
MOV qword ptr [RSP + 0x80],RAX
MOV RAX,qword ptr [RSP + 0x80]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RSP + 0x78],RAX
MOV RAX,qword ptr [RSP + 0x78]
MOV EDI,dword ptr [RAX + 0x4]
MOV ESI,0x2
CALL 0x001ca0f0
TEST AL,0x1
JNZ 0x001c9ec3
MOV RDI,qword ptr [RSP + 0x78]
ADD RDI,0x1f8
CALL 0x001d8980
CMP EAX,0x0
JNZ 0x001c9ec8
LAB_001c9ec3:
JMP 0x001ca0df
LAB_001c9ec8:
LEA RAX,[0x78fb50]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x70],RAX
MOV RAX,qword ptr [RSP + 0x70]
MOV RAX,qword ptr [RAX + 0x1368]
MOV qword ptr [RSP + 0x68],RAX
MOV RAX,qword ptr [RSP + 0x68]
MOV RAX,qword ptr [RAX + 0x2b0]
MOV qword ptr [RSP + 0x60],RAX
CALL 0x005fe590
MOV qword ptr [RSP + 0x58],RAX
MOV RAX,qword ptr [RSP + 0x78]
ADD RAX,0x220
MOV qword ptr [RSP + 0x50],RAX
MOV RAX,qword ptr [RSP + 0x50]
MOV EDI,dword ptr [RAX]
MOV ESI,0x4
CALL 0x001c9da0
MOV byte ptr [RSP + 0x4f],AL
MOV RDI,qword ptr [RSP + 0x78]
ADD RDI,0x1f8
MOV RDX,qword ptr [RSP + 0x80]
MOV RSI,RDX
ADD RSI,0xd0
ADD RDX,0xd8
MOV AL,byte ptr [RSP + 0x4f]
NOT AL
MOVZX ECX,AL
AND ECX,0x1
CALL 0x001c9440
MOVLPD qword ptr [RSP + 0x44],XMM0
MOV RDI,qword ptr [RSP + 0x78]
ADD RDI,0x44
MOV RAX,qword ptr [RSP + 0x50]
MOV EDX,dword ptr [RAX + 0x8]
MOV RCX,qword ptr [RSP + 0x80]
ADD RCX,0xc8
LEA RSI,[RSP + 0x44]
MOV qword ptr [RSP + 0x10],RSI
CALL 0x001c9210
MOV RSI,qword ptr [RSP + 0x10]
MOVLPD qword ptr [RSP + 0x3c],XMM0
LEA RDI,[RSP + 0x3c]
CALL 0x001c9100
MOVLPD qword ptr [RSP + 0x24],XMM0
LEA RDI,[RSP + 0x2c]
LEA RSI,[RSP + 0x3c]
LEA RDX,[RSP + 0x24]
CALL 0x001d8a60
MOV RAX,qword ptr [RSP + 0x50]
MOV RCX,qword ptr [RSP + 0x2c]
MOV qword ptr [RAX + 0x30],RCX
MOV RCX,qword ptr [RSP + 0x34]
MOV qword ptr [RAX + 0x38],RCX
MOV RDI,qword ptr [RSP + 0x50]
ADD RDI,0x30
MOV RSI,qword ptr [RSP + 0x58]
ADD RSI,0xe0
CALL 0x001d8a90
MOV CL,AL
MOV RAX,qword ptr [RSP + 0x50]
AND CL,0x1
MOV byte ptr [RAX + 0x40],CL
MOV EDI,0x9
CALL 0x001c9d30
MOV dword ptr [RSP + 0x20],EAX
MOV EDI,0xa
CALL 0x001c9d30
MOV dword ptr [RSP + 0x1c],EAX
MOV RDI,qword ptr [RSP + 0x60]
MOV RSI,qword ptr [RSP + 0x50]
ADD RSI,0x30
MOV RDX,qword ptr [RSP + 0x50]
ADD RDX,0x30
ADD RDX,0x8
MOV ECX,dword ptr [RSP + 0x20]
XORPS XMM0,XMM0
XOR R8D,R8D
CALL 0x0063c130
MOV RDI,qword ptr [RSP + 0x60]
MOV RSI,qword ptr [RSP + 0x50]
ADD RSI,0x30
MOV RDX,qword ptr [RSP + 0x50]
ADD RDX,0x30
ADD RDX,0x8
MOV ECX,dword ptr [RSP + 0x1c]
XORPS XMM0,XMM0
XOR R8D,R8D
MOVSS XMM1,dword ptr [0x006cc014]
CALL 0x0063bf40
MOV RDI,qword ptr [RSP + 0x78]
ADD RDI,0x1f8
MOV RSI,qword ptr [RSP + 0x50]
ADD RSI,0x30
MOV RAX,qword ptr [RSP + 0x50]
MOV DL,byte ptr [RAX + 0x40]
MOV RCX,qword ptr [RSP + 0x80]
ADD RCX,0x94
ADD RCX,0x3c
MOV R8,qword ptr [RSP + 0x80]
ADD R8,0x94
ADD R8,0x44
MOV AL,byte ptr [RSP + 0x4f]
XOR AL,0xff
MOV R10,qword ptr [RSP + 0x60]
MOV R9,RSP
MOV qword ptr [R9],R10
MOVZX EDX,DL
AND EDX,0x1
MOVZX R9D,AL
AND R9D,0x1
CALL 0x001c9620
LAB_001ca0df:
ADD RSP,0x88
RET
|
/* ImPlot3D::RenderLegend() */
void ImPlot3D::RenderLegend(void)
{
bool bVar1;
byte bVar2;
int iVar3;
uint uVar4;
uint uVar5;
int8 local_64;
int8 local_5c;
int8 local_54;
int8 local_4c;
int8 local_44;
byte local_39;
int4 *local_38;
long local_30;
ImDrawList *local_28;
long local_20;
long local_18;
long local_10;
long local_8;
local_8 = GImPlot3D;
local_10 = *(long *)(GImPlot3D + 0x28);
bVar1 = ImHasFlag<int,ImPlot3DFlags_>(*(int4 *)(local_10 + 4),2);
if ((!bVar1) &&
(iVar3 = ImPlot3DItemGroup::GetLegendCount((ImPlot3DItemGroup *)(local_10 + 0x1f8)), iVar3 != 0
)) {
local_18 = GImGui;
local_20 = *(long *)(GImGui + 0x1368);
local_28 = *(ImDrawList **)(local_20 + 0x2b0);
local_30 = ImGui::GetIO();
local_38 = (int4 *)(local_10 + 0x220);
local_39 = ImHasFlag<int,ImPlot3DLegendFlags_>(*local_38,4);
local_44 = CalcLegendSize((ImPlot3DItemGroup *)(local_10 + 0x1f8),(ImVec2 *)(local_8 + 0xd0),
(ImVec2 *)(local_8 + 0xd8),(bool)(~local_39 & 1));
local_4c = GetLocationPos((ImRect *)(local_10 + 0x44),(ImVec2 *)&local_44,local_38[2],
(ImVec2 *)(local_8 + 200));
local_64 = ::operator+((ImVec2 *)&local_4c,(ImVec2 *)&local_44);
ImRect::ImRect((ImRect *)&local_5c,(ImVec2 *)&local_4c,(ImVec2 *)&local_64);
*(int8 *)(local_38 + 0xc) = local_5c;
*(int8 *)(local_38 + 0xe) = local_54;
bVar2 = ImRect::Contains((ImRect *)(local_38 + 0xc),(ImVec2 *)(local_30 + 0xe0));
*(byte *)(local_38 + 0x10) = bVar2 & 1;
uVar4 = GetStyleColorU32(9);
uVar5 = GetStyleColorU32(10);
ImDrawList::AddRectFilled
(local_28,(ImVec2 *)(local_38 + 0xc),(ImVec2 *)(local_38 + 0xe),uVar4,0.0,0);
ImDrawList::AddRect(local_28,(ImVec2 *)(local_38 + 0xc),(ImVec2 *)(local_38 + 0xe),uVar5,0.0,0,
DAT_006cc014);
ShowLegendEntries((ImPlot3DItemGroup *)(local_10 + 0x1f8),(ImRect *)(local_38 + 0xc),
(bool)(*(byte *)(local_38 + 0x10) & 1),(ImVec2 *)(local_8 + 0xd0),
(ImVec2 *)(local_8 + 0xd8),(bool)((local_39 ^ 0xff) & 1),local_28);
}
return;
}
|
|
66,229 |
get_func_name
|
bluesky950520[P]quickjs/quickjs.c
|
static const char *get_func_name(JSContext *ctx, JSValue func)
{
JSProperty *pr;
JSShapeProperty *prs;
JSValue val;
if (JS_VALUE_GET_TAG(func) != JS_TAG_OBJECT)
return NULL;
prs = find_own_property(&pr, JS_VALUE_GET_OBJ(func), JS_ATOM_name);
if (!prs)
return NULL;
if ((prs->flags & JS_PROP_TMASK) != JS_PROP_NORMAL)
return NULL;
val = pr->u.value;
if (JS_VALUE_GET_TAG(val) != JS_TAG_STRING)
return NULL;
return JS_ToCString(ctx, val);
}
|
O1
|
c
|
get_func_name:
movq %rsi, -0x8(%rsp)
cmpl $-0x1, %edx
jne 0x473b2
movq -0x8(%rsp), %rcx
movq 0x18(%rcx), %rdx
movl 0x20(%rdx), %eax
notl %eax
orl $-0x38, %eax
cltq
movl (%rdx,%rax,4), %r9d
testl %r9d, %r9d
je 0x4738b
addq $0x40, %rdx
xorl %eax, %eax
movl $0x3ffffff, %r8d # imm = 0x3FFFFFF
movl %r9d, %r9d
leaq (%rdx,%r9,8), %rsi
addq $-0x8, %rsi
cmpl $0x37, 0x4(%rsi)
je 0x4737b
movl (%rsi), %r9d
movl $0x0, %esi
andl %r8d, %r9d
jne 0x4735b
jmp 0x4738f
decq %r9
shlq $0x4, %r9
addq 0x20(%rcx), %r9
movq %r9, %rax
jmp 0x4738f
xorl %eax, %eax
xorl %esi, %esi
testq %rsi, %rsi
je 0x473b2
cmpl $0x3fffffff, (%rsi) # imm = 0x3FFFFFFF
ja 0x473b2
movq 0x8(%rax), %rcx
cmpl $-0x7, %ecx
jne 0x473b2
movq (%rax), %rdx
xorl %esi, %esi
xorl %r8d, %r8d
jmp 0x24c53
xorl %eax, %eax
retq
|
get_func_name:
mov [rsp+var_8], rsi
cmp edx, 0FFFFFFFFh
jnz short loc_473B2
mov rcx, [rsp+var_8]
mov rdx, [rcx+18h]
mov eax, [rdx+20h]
not eax
or eax, 0FFFFFFC8h
cdqe
mov r9d, [rdx+rax*4]
test r9d, r9d
jz short loc_4738B
add rdx, 40h ; '@'
xor eax, eax
mov r8d, 3FFFFFFh
loc_4735B:
mov r9d, r9d
lea rsi, [rdx+r9*8]
add rsi, 0FFFFFFFFFFFFFFF8h
cmp dword ptr [rsi+4], 37h ; '7'
jz short loc_4737B
mov r9d, [rsi]
mov esi, 0
and r9d, r8d
jnz short loc_4735B
jmp short loc_4738F
loc_4737B:
dec r9
shl r9, 4
add r9, [rcx+20h]
mov rax, r9
jmp short loc_4738F
loc_4738B:
xor eax, eax
xor esi, esi
loc_4738F:
test rsi, rsi
jz short loc_473B2
cmp dword ptr [rsi], 3FFFFFFFh
ja short loc_473B2
mov rcx, [rax+8]
cmp ecx, 0FFFFFFF9h
jnz short loc_473B2
mov rdx, [rax]
xor esi, esi
xor r8d, r8d
jmp JS_ToCStringLen2
loc_473B2:
xor eax, eax
retn
|
long long get_func_name(long long a1, long long a2, int a3)
{
long long v3; // rdx
unsigned int v4; // r9d
long long v5; // rdx
long long *v6; // rax
int *v7; // rsi
int v8; // r9d
long long v9; // rcx
if ( a3 != -1 )
return 0LL;
v3 = *(_QWORD *)(a2 + 24);
v4 = *(_DWORD *)(v3 + 4LL * (int)(~*(_BYTE *)(v3 + 32) | 0xFFFFFFC8));
if ( v4 )
{
v5 = v3 + 64;
v6 = 0LL;
while ( 1 )
{
v7 = (int *)(v5 + 8LL * v4 - 8);
if ( v7[1] == 55 )
break;
v8 = *v7;
v7 = 0LL;
v4 = v8 & 0x3FFFFFF;
if ( !v4 )
goto LABEL_9;
}
v6 = (long long *)(*(_QWORD *)(a2 + 32) + 16 * (v4 - 1LL));
}
else
{
v6 = 0LL;
v7 = 0LL;
}
LABEL_9:
if ( v7 && (unsigned int)*v7 <= 0x3FFFFFFF && (v9 = v6[1], (_DWORD)v9 == -7) )
return JS_ToCStringLen2(a1, 0LL, *v6, v9, 0);
else
return 0LL;
}
|
get_func_name:
MOV qword ptr [RSP + -0x8],RSI
CMP EDX,-0x1
JNZ 0x001473b2
MOV RCX,qword ptr [RSP + -0x8]
MOV RDX,qword ptr [RCX + 0x18]
MOV EAX,dword ptr [RDX + 0x20]
NOT EAX
OR EAX,0xffffffc8
CDQE
MOV R9D,dword ptr [RDX + RAX*0x4]
TEST R9D,R9D
JZ 0x0014738b
ADD RDX,0x40
XOR EAX,EAX
MOV R8D,0x3ffffff
LAB_0014735b:
MOV R9D,R9D
LEA RSI,[RDX + R9*0x8]
ADD RSI,-0x8
CMP dword ptr [RSI + 0x4],0x37
JZ 0x0014737b
MOV R9D,dword ptr [RSI]
MOV ESI,0x0
AND R9D,R8D
JNZ 0x0014735b
JMP 0x0014738f
LAB_0014737b:
DEC R9
SHL R9,0x4
ADD R9,qword ptr [RCX + 0x20]
MOV RAX,R9
JMP 0x0014738f
LAB_0014738b:
XOR EAX,EAX
XOR ESI,ESI
LAB_0014738f:
TEST RSI,RSI
JZ 0x001473b2
CMP dword ptr [RSI],0x3fffffff
JA 0x001473b2
MOV RCX,qword ptr [RAX + 0x8]
CMP ECX,-0x7
JNZ 0x001473b2
MOV RDX,qword ptr [RAX]
XOR ESI,ESI
XOR R8D,R8D
JMP 0x00124c53
LAB_001473b2:
XOR EAX,EAX
RET
|
int8 get_func_name(int8 param_1,long param_2,int param_3)
{
long lVar1;
long lVar2;
int8 uVar3;
uint *puVar4;
uint uVar5;
int8 *puVar6;
if (param_3 == -1) {
lVar2 = *(long *)(param_2 + 0x18);
uVar5 = *(uint *)(lVar2 + (long)(int)(~*(uint *)(lVar2 + 0x20) | 0xffffffc8) * 4);
if (uVar5 == 0) {
puVar6 = (int8 *)0x0;
puVar4 = (uint *)0x0;
}
else {
puVar6 = (int8 *)0x0;
do {
lVar1 = lVar2 + 0x40 + (ulong)uVar5 * 8;
puVar4 = (uint *)(lVar1 + -8);
if (*(int *)(lVar1 + -4) == 0x37) {
puVar6 = (int8 *)(((ulong)uVar5 - 1) * 0x10 + *(long *)(param_2 + 0x20));
break;
}
uVar5 = *puVar4;
puVar4 = (uint *)0x0;
uVar5 = uVar5 & 0x3ffffff;
} while (uVar5 != 0);
}
if (((puVar4 != (uint *)0x0) && (*puVar4 < 0x40000000)) && ((int)puVar6[1] == -7)) {
uVar3 = JS_ToCStringLen2(param_1,0,*puVar6,puVar6[1],0);
return uVar3;
}
}
return 0;
}
|
|
66,230 |
get_func_name
|
bluesky950520[P]quickjs/quickjs.c
|
static const char *get_func_name(JSContext *ctx, JSValue func)
{
JSProperty *pr;
JSShapeProperty *prs;
JSValue val;
if (JS_VALUE_GET_TAG(func) != JS_TAG_OBJECT)
return NULL;
prs = find_own_property(&pr, JS_VALUE_GET_OBJ(func), JS_ATOM_name);
if (!prs)
return NULL;
if ((prs->flags & JS_PROP_TMASK) != JS_PROP_NORMAL)
return NULL;
val = pr->u.value;
if (JS_VALUE_GET_TAG(val) != JS_TAG_STRING)
return NULL;
return JS_ToCString(ctx, val);
}
|
O2
|
c
|
get_func_name:
cmpl $-0x1, %edx
jne 0x3eb08
movq 0x18(%rsi), %rax
movl 0x20(%rax), %ecx
notl %ecx
orl $-0x38, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %ecx
movl $0x3ffffff, %edx # imm = 0x3FFFFFF
testl %ecx, %ecx
je 0x3eb08
movl %ecx, %ecx
cmpl $0x37, 0x3c(%rax,%rcx,8)
je 0x3eae2
movl 0x38(%rax,%rcx,8), %ecx
andl %edx, %ecx
jmp 0x3eacd
cmpl $0x3fffffff, 0x38(%rax,%rcx,8) # imm = 0x3FFFFFFF
ja 0x3eb08
decq %rcx
shlq $0x4, %rcx
addq 0x20(%rsi), %rcx
movq 0x8(%rcx), %rdx
cmpl $-0x7, %edx
jne 0x3eb08
movq (%rcx), %rsi
jmp 0x1e5bd
xorl %eax, %eax
retq
|
get_func_name:
cmp edx, 0FFFFFFFFh
jnz short loc_3EB08
mov rax, [rsi+18h]
mov ecx, [rax+20h]
not ecx
or ecx, 0FFFFFFC8h
movsxd rcx, ecx
mov ecx, [rax+rcx*4]
mov edx, 3FFFFFFh
loc_3EACD:
test ecx, ecx
jz short loc_3EB08
mov ecx, ecx
cmp dword ptr [rax+rcx*8+3Ch], 37h ; '7'
jz short loc_3EAE2
mov ecx, [rax+rcx*8+38h]
and ecx, edx
jmp short loc_3EACD
loc_3EAE2:
cmp dword ptr [rax+rcx*8+38h], 3FFFFFFFh
ja short loc_3EB08
dec rcx
shl rcx, 4
add rcx, [rsi+20h]
mov rdx, [rcx+8]
cmp edx, 0FFFFFFF9h
jnz short loc_3EB08
mov rsi, [rcx]
jmp JS_ToCString_1
loc_3EB08:
xor eax, eax
retn
|
long long get_func_name(long long a1, long long a2, int a3)
{
long long v3; // rax
unsigned int i; // ecx
long long *v5; // rcx
long long v6; // rdx
if ( a3 == -1 )
{
v3 = *(_QWORD *)(a2 + 24);
for ( i = *(_DWORD *)(v3 + 4LL * (int)(~*(_BYTE *)(v3 + 32) | 0xFFFFFFC8));
i;
i = *(_DWORD *)(v3 + 8LL * i + 56) & 0x3FFFFFF )
{
if ( *(_DWORD *)(v3 + 8LL * i + 60) == 55 )
{
if ( *(_DWORD *)(v3 + 8LL * i + 56) <= 0x3FFFFFFFu )
{
v5 = (long long *)(*(_QWORD *)(a2 + 32) + 16 * (i - 1LL));
v6 = v5[1];
if ( (_DWORD)v6 == -7 )
return JS_ToCString_1(a1, *v5, v6);
}
return 0LL;
}
}
}
return 0LL;
}
|
get_func_name:
CMP EDX,-0x1
JNZ 0x0013eb08
MOV RAX,qword ptr [RSI + 0x18]
MOV ECX,dword ptr [RAX + 0x20]
NOT ECX
OR ECX,0xffffffc8
MOVSXD RCX,ECX
MOV ECX,dword ptr [RAX + RCX*0x4]
MOV EDX,0x3ffffff
LAB_0013eacd:
TEST ECX,ECX
JZ 0x0013eb08
MOV ECX,ECX
CMP dword ptr [RAX + RCX*0x8 + 0x3c],0x37
JZ 0x0013eae2
MOV ECX,dword ptr [RAX + RCX*0x8 + 0x38]
AND ECX,EDX
JMP 0x0013eacd
LAB_0013eae2:
CMP dword ptr [RAX + RCX*0x8 + 0x38],0x3fffffff
JA 0x0013eb08
DEC RCX
SHL RCX,0x4
ADD RCX,qword ptr [RSI + 0x20]
MOV RDX,qword ptr [RCX + 0x8]
CMP EDX,-0x7
JNZ 0x0013eb08
MOV RSI,qword ptr [RCX]
JMP 0x0011e5bd
LAB_0013eb08:
XOR EAX,EAX
RET
|
int8 get_func_name(int8 param_1,long param_2,int param_3)
{
long lVar1;
int8 uVar2;
uint uVar3;
ulong uVar4;
int8 *puVar5;
if (param_3 == -1) {
lVar1 = *(long *)(param_2 + 0x18);
uVar3 = *(uint *)(lVar1 + (long)(int)(~*(uint *)(lVar1 + 0x20) | 0xffffffc8) * 4);
while (uVar3 != 0) {
uVar4 = (ulong)uVar3;
if (*(int *)(lVar1 + 0x3c + uVar4 * 8) == 0x37) {
if (0x3fffffff < *(uint *)(lVar1 + 0x38 + uVar4 * 8)) {
return 0;
}
puVar5 = (int8 *)((uVar4 - 1) * 0x10 + *(long *)(param_2 + 0x20));
if ((int)puVar5[1] != -7) {
return 0;
}
uVar2 = JS_ToCString(param_1,*puVar5);
return uVar2;
}
uVar3 = *(uint *)(lVar1 + 0x38 + uVar4 * 8) & 0x3ffffff;
}
}
return 0;
}
|
|
66,231 |
tailoring_append
|
eloqsql/strings/ctype.c
|
static int
tailoring_append(MY_XML_PARSER *st,
const char *fmt, size_t len, const char *attr)
{
struct my_cs_file_info *i= (struct my_cs_file_info *) st->user_data;
size_t newlen= i->tailoring_length + len + 64; /* 64 for format */
if (MY_XML_OK == my_charset_file_tailoring_realloc(i, newlen))
{
char *dst= i->tailoring + i->tailoring_length;
sprintf(dst, fmt, (int) len, attr);
i->tailoring_length+= strlen(dst);
return MY_XML_OK;
}
return MY_XML_ERROR;
}
|
O3
|
c
|
tailoring_append:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r9
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movq 0x690(%rdi), %r13
leaq (%rdx,%r13), %rax
addq $0x40, %rax
cmpq %rax, 0x698(%rdi)
jbe 0x55c1b
movq 0x688(%rbx), %rax
jmp 0x55c5f
movq %r9, %r14
addq %r15, %r13
movq 0x688(%rbx), %rdi
movq 0x7a8(%rbx), %rax
movq 0x90(%rax), %rax
addq $0x8040, %r13 # imm = 0x8040
movq %r13, 0x698(%rbx)
movq %r13, %rsi
callq *%rax
movq %rax, 0x688(%rbx)
testq %rax, %rax
je 0x55ca2
movq 0x690(%rbx), %r13
movq %r14, %r9
addq %rax, %r13
xorl %r14d, %r14d
movq %r13, %rdi
movl $0x1, %esi
movq $-0x1, %rdx
movq %r12, %rcx
movl %r15d, %r8d
xorl %eax, %eax
callq 0x241f0
movq %r13, %rdi
callq 0x24140
addq %rax, 0x690(%rbx)
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, %r14d
jmp 0x55c90
|
tailoring_append:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r9, rcx
mov r15, rdx
mov r12, rsi
mov rbx, rdi
mov r13, [rdi+690h]
lea rax, [rdx+r13]
add rax, 40h ; '@'
cmp [rdi+698h], rax
jbe short loc_55C1B
mov rax, [rbx+688h]
jmp short loc_55C5F
loc_55C1B:
mov r14, r9
add r13, r15
mov rdi, [rbx+688h]
mov rax, [rbx+7A8h]
mov rax, [rax+90h]
add r13, 8040h
mov [rbx+698h], r13
mov rsi, r13
call rax
mov [rbx+688h], rax
test rax, rax
jz short loc_55CA2
mov r13, [rbx+690h]
mov r9, r14
loc_55C5F:
add r13, rax
xor r14d, r14d
mov rdi, r13
mov esi, 1
mov rdx, 0FFFFFFFFFFFFFFFFh
mov rcx, r12
mov r8d, r15d
xor eax, eax
call ___sprintf_chk
mov rdi, r13
call _strlen
add [rbx+690h], rax
loc_55C90:
mov eax, r14d
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_55CA2:
mov r14d, 1
jmp short loc_55C90
|
long long tailoring_append(_QWORD *a1, const char *a2, long long a3, long long a4)
{
long long v4; // rax
long long v5; // r9
unsigned int v6; // r15d
long long v8; // r13
long long v9; // rax
long long v11; // rdi
long long ( *v12)(long long, long long); // rax
long long v13; // r13
long long v14; // r13
unsigned int v15; // r14d
long long v17; // [rsp-8h] [rbp-30h]
v17 = v4;
v5 = a4;
v6 = a3;
v8 = a1[210];
if ( a1[211] <= (unsigned long long)(a3 + v8 + 64) )
{
v11 = a1[209];
v12 = *(long long ( **)(long long, long long))(a1[245] + 144LL);
v13 = a3 + v8 + 32832;
a1[211] = v13;
v9 = v12(v11, v13);
a1[209] = v9;
if ( !v9 )
return 1;
v8 = a1[210];
v5 = a4;
}
else
{
v9 = a1[209];
}
v14 = v9 + v8;
v15 = 0;
__sprintf_chk(v14, 1LL, -1LL, a2, v6, v5, v17);
a1[210] += strlen(v14);
return v15;
}
|
tailoring_append:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R9,RCX
MOV R15,RDX
MOV R12,RSI
MOV RBX,RDI
MOV R13,qword ptr [RDI + 0x690]
LEA RAX,[RDX + R13*0x1]
ADD RAX,0x40
CMP qword ptr [RDI + 0x698],RAX
JBE 0x00155c1b
MOV RAX,qword ptr [RBX + 0x688]
JMP 0x00155c5f
LAB_00155c1b:
MOV R14,R9
ADD R13,R15
MOV RDI,qword ptr [RBX + 0x688]
MOV RAX,qword ptr [RBX + 0x7a8]
MOV RAX,qword ptr [RAX + 0x90]
ADD R13,0x8040
MOV qword ptr [RBX + 0x698],R13
MOV RSI,R13
CALL RAX
MOV qword ptr [RBX + 0x688],RAX
TEST RAX,RAX
JZ 0x00155ca2
MOV R13,qword ptr [RBX + 0x690]
MOV R9,R14
LAB_00155c5f:
ADD R13,RAX
XOR R14D,R14D
MOV RDI,R13
MOV ESI,0x1
MOV RDX,-0x1
MOV RCX,R12
MOV R8D,R15D
XOR EAX,EAX
CALL 0x001241f0
MOV RDI,R13
CALL 0x00124140
ADD qword ptr [RBX + 0x690],RAX
LAB_00155c90:
MOV EAX,R14D
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00155ca2:
MOV R14D,0x1
JMP 0x00155c90
|
int8 tailoring_append(long param_1,int8 param_2,ulong param_3,int8 param_4)
{
code *pcVar1;
long lVar2;
size_t sVar3;
long lVar4;
lVar4 = *(long *)(param_1 + 0x690);
if (param_3 + lVar4 + 0x40 < *(ulong *)(param_1 + 0x698)) {
lVar2 = *(long *)(param_1 + 0x688);
}
else {
pcVar1 = *(code **)(*(long *)(param_1 + 0x7a8) + 0x90);
lVar4 = lVar4 + param_3 + 0x8040;
*(long *)(param_1 + 0x698) = lVar4;
lVar2 = (*pcVar1)(*(int8 *)(param_1 + 0x688),lVar4);
*(long *)(param_1 + 0x688) = lVar2;
if (lVar2 == 0) {
return 1;
}
lVar4 = *(long *)(param_1 + 0x690);
}
__sprintf_chk((char *)(lVar4 + lVar2),1,0xffffffffffffffff,param_2,param_3 & 0xffffffff,param_4);
sVar3 = strlen((char *)(lVar4 + lVar2));
*(long *)(param_1 + 0x690) = *(long *)(param_1 + 0x690) + sVar3;
return 0;
}
|
|
66,232 |
SchemaConverter::resolve_refs(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
|
monkey531[P]llama/common/json-schema-to-grammar.cpp
|
void resolve_refs(json & schema, const std::string & url) {
/*
* Resolves all $ref fields in the given schema, fetching any remote schemas,
* replacing each $ref with absolute reference URL and populates _refs with the
* respective referenced (sub)schema dictionaries.
*/
std::function<void(json &)> visit_refs = [&](json & n) {
if (n.is_array()) {
for (auto & x : n) {
visit_refs(x);
}
} else if (n.is_object()) {
if (n.contains("$ref")) {
std::string ref = n["$ref"];
if (_refs.find(ref) == _refs.end()) {
json target;
if (ref.find("https://") == 0) {
std::string base_url = ref.substr(0, ref.find('#'));
auto it = _refs.find(base_url);
if (it != _refs.end()) {
target = it->second;
} else {
// Fetch the referenced schema and resolve its refs
auto referenced = _fetch_json(ref);
resolve_refs(referenced, base_url);
_refs[base_url] = referenced;
}
if (ref.find('#') == std::string::npos || ref.substr(ref.find('#') + 1).empty()) {
return;
}
} else if (ref.find("#/") == 0) {
target = schema;
n["$ref"] = url + ref;
ref = url + ref;
} else {
_errors.push_back("Unsupported ref: " + ref);
return;
}
std::string pointer = ref.substr(ref.find('#') + 1);
std::vector<std::string> tokens = string_split(pointer, "/");
for (size_t i = 1; i < tokens.size(); ++i) {
std::string sel = tokens[i];
if (target.is_null() || !target.contains(sel)) {
_errors.push_back("Error resolving ref " + ref + ": " + sel + " not in " + target.dump());
return;
}
target = target[sel];
}
_refs[ref] = target;
}
} else {
for (auto & kv : n.items()) {
visit_refs(kv.value());
}
}
}
};
visit_refs(schema);
}
|
O1
|
cpp
|
SchemaConverter::resolve_refs(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
xorps %xmm0, %xmm0
movq %rsp, %r12
movaps %xmm0, 0x10(%r12)
movaps %xmm0, (%r12)
movl $0x20, %edi
callq 0x1b8c0
movq %r12, (%rax)
movq %r15, 0x8(%rax)
movq %r14, 0x10(%rax)
movq %rbx, 0x18(%rax)
movq %rax, (%r12)
leaq 0x6b(%rip), %rcx # 0xcc6fe
movq %rcx, 0x18(%r12)
leaq 0x67(%rip), %rcx # 0xcc706
movq %rcx, 0x10(%r12)
movq %rax, %rdi
movq %r14, %rsi
callq 0xcc72e
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0xcc6c6
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0xcc6f6
movq %rax, %rbx
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0xcc6ee
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rdi
callq 0x1bfd0
movq %rax, %rdi
callq 0x229a1
|
_ZN15SchemaConverter12resolve_refsERN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEERKSA_:
push r15
push r14
push r12
push rbx
sub rsp, 28h
mov rbx, rdx
mov r14, rsi
mov r15, rdi
xorps xmm0, xmm0
mov r12, rsp
movaps xmmword ptr [r12+10h], xmm0
movaps xmmword ptr [r12], xmm0
mov edi, 20h ; ' '; unsigned __int64
call __Znwm; operator new(ulong)
mov [rax], r12
mov [rax+8], r15
mov [rax+10h], r14
mov [rax+18h], rbx
mov [r12], rax
lea rcx, _ZNSt17_Function_handlerIFvRN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEZN15SchemaConverter12resolve_refsESF_RKSA_EUlSF_E_E9_M_invokeERKSt9_Any_dataSF_; std::_Function_handler<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> &),SchemaConverter::resolve_refs(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,std::string const&)::{lambda(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)#1}>::_M_invoke(std::_Any_data const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)
mov [r12+18h], rcx
lea rcx, _ZNSt17_Function_handlerIFvRN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEZN15SchemaConverter12resolve_refsESF_RKSA_EUlSF_E_E10_M_managerERSt9_Any_dataRKSM_St18_Manager_operation; std::_Function_handler<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> &),SchemaConverter::resolve_refs(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,std::string const&)::{lambda(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)#1}>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation)
mov [r12+10h], rcx
mov rdi, rax
mov rsi, r14
call _ZZN15SchemaConverter12resolve_refsERN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEERKSA_ENKUlSF_E_clESF_; SchemaConverter::resolve_refs(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,std::string const&)::{lambda(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)#1}::operator()(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)
mov rax, [rsp+48h+var_38]
test rax, rax
jz short loc_CC6C6
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
loc_CC6C6:
add rsp, 28h
pop rbx
pop r12
pop r14
pop r15
retn
jmp short loc_CC6F6
mov rbx, rax
mov rax, [rsp+48h+var_38]
test rax, rax
jz short loc_CC6EE
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
loc_CC6EE:
mov rdi, rbx
call __Unwind_Resume
loc_CC6F6:
mov rdi, rax
call __clang_call_terminate
|
long long SchemaConverter::resolve_refs(long long a1, long long a2, long long a3)
{
_QWORD *v4; // rax
long long result; // rax
__int128 v6; // [rsp+0h] [rbp-48h] BYREF
__int128 v7; // [rsp+10h] [rbp-38h]
v7 = 0LL;
v6 = 0LL;
v4 = (_QWORD *)operator new(0x20uLL);
*v4 = &v6;
v4[1] = a1;
v4[2] = a2;
v4[3] = a3;
*(_QWORD *)&v6 = v4;
*((_QWORD *)&v7 + 1) = std::_Function_handler<void ()(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &),SchemaConverter::resolve_refs(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &,std::string const&)::{lambda(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)#1}>::_M_invoke;
*(_QWORD *)&v7 = std::_Function_handler<void ()(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &),SchemaConverter::resolve_refs(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &,std::string const&)::{lambda(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)#1}>::_M_manager;
SchemaConverter::resolve_refs(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &,std::string const&)::{lambda(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)#1}::operator()(
v4,
a2);
result = v7;
if ( (_QWORD)v7 )
return ((long long ( *)(__int128 *, __int128 *, long long))v7)(&v6, &v6, 3LL);
return result;
}
|
resolve_refs:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV RBX,RDX
MOV R14,RSI
MOV R15,RDI
XORPS XMM0,XMM0
MOV R12,RSP
MOVAPS xmmword ptr [R12 + 0x10],XMM0
MOVAPS xmmword ptr [R12],XMM0
MOV EDI,0x20
CALL 0x0011b8c0
MOV qword ptr [RAX],R12
MOV qword ptr [RAX + 0x8],R15
MOV qword ptr [RAX + 0x10],R14
MOV qword ptr [RAX + 0x18],RBX
MOV qword ptr [R12],RAX
LEA RCX,[0x1cc6fe]
MOV qword ptr [R12 + 0x18],RCX
LEA RCX,[0x1cc706]
MOV qword ptr [R12 + 0x10],RCX
LAB_001cc6a4:
MOV RDI,RAX
MOV RSI,R14
CALL 0x001cc72e
MOV RAX,qword ptr [RSP + 0x10]
TEST RAX,RAX
JZ 0x001cc6c6
LAB_001cc6b9:
MOV RDI,RSP
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_001cc6c6:
ADD RSP,0x28
POP RBX
POP R12
POP R14
POP R15
RET
|
/* SchemaConverter::resolve_refs(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>&, std::__cxx11::string const&) */
void __thiscall
SchemaConverter::resolve_refs(SchemaConverter *this,basic_json *param_1,string *param_2)
{
_lambda_nlohmann__json_abi_v3_11_3__basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>___1_
*local_48;
int8 uStack_40;
code *local_38;
code *pcStack_30;
local_38 = (code *)0x0;
pcStack_30 = (code *)0x0;
local_48 = (_lambda_nlohmann__json_abi_v3_11_3__basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>___1_
*)0x0;
uStack_40 = 0;
local_48 = (_lambda_nlohmann__json_abi_v3_11_3__basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>___1_
*)operator_new(0x20);
*(_lambda_nlohmann__json_abi_v3_11_3__basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>___1_
***)local_48 = &local_48;
*(SchemaConverter **)(local_48 + 8) = this;
*(basic_json **)(local_48 + 0x10) = param_1;
*(string **)(local_48 + 0x18) = param_2;
pcStack_30 = std::
_Function_handler<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>&),SchemaConverter::resolve_refs(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&,std::__cxx11::string_const&)::{lambda(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)#1}>
::_M_invoke;
local_38 = std::
_Function_handler<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>&),SchemaConverter::resolve_refs(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&,std::__cxx11::string_const&)::{lambda(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)#1}>
::_M_manager;
/* try { // try from 001cc6a4 to 001cc6ae has its CatchHandler @ 001cc6d4 */
resolve_refs(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&,std::__cxx11::string_const&)
::
{lambda(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)#1}
::operator()(local_48,param_1);
if (local_38 != (code *)0x0) {
/* try { // try from 001cc6b9 to 001cc6c5 has its CatchHandler @ 001cc6d2 */
(*local_38)(&local_48,&local_48,3);
}
return;
}
|
|
66,233 |
my_8bit_charset_flags_from_data
|
eloqsql/strings/ctype-simple.c
|
uint my_8bit_charset_flags_from_data(CHARSET_INFO *cs)
{
uint flags= 0;
if (my_charset_is_8bit_pure_ascii(cs))
flags|= MY_CS_PUREASCII;
if (!my_charset_is_ascii_compatible(cs))
flags|= MY_CS_NONASCII;
return flags;
}
|
O3
|
c
|
my_8bit_charset_flags_from_data:
movq 0x68(%rdi), %rcx
testq %rcx, %rcx
je 0x7134c
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
xorl %edx, %edx
cmpw $0x80, (%rcx,%rdx,2)
jae 0x71333
incq %rdx
cmpq $0x100, %rdx # imm = 0x100
jne 0x7131a
movl $0x1000, %eax # imm = 0x1000
xorl %edx, %edx
movzwl (%rcx,%rdx,2), %esi
cmpq %rsi, %rdx
jne 0x7134f
incq %rdx
cmpq $0x80, %rdx
jne 0x71335
jmp 0x71354
xorl %eax, %eax
retq
orl $0x2000, %eax # imm = 0x2000
popq %rbp
retq
|
my_8bit_charset_flags_from_data:
mov rcx, [rdi+68h]
test rcx, rcx
jz short loc_7134C
push rbp
mov rbp, rsp
xor eax, eax
xor edx, edx
loc_7131A:
cmp word ptr [rcx+rdx*2], 80h
jnb short loc_71333
inc rdx
cmp rdx, 100h
jnz short loc_7131A
mov eax, 1000h
loc_71333:
xor edx, edx
loc_71335:
movzx esi, word ptr [rcx+rdx*2]
cmp rdx, rsi
jnz short loc_7134F
inc rdx
cmp rdx, 80h
jnz short loc_71335
jmp short loc_71354
loc_7134C:
xor eax, eax
retn
loc_7134F:
or eax, 2000h
loc_71354:
pop rbp
retn
|
long long my_8bit_charset_flags_from_data(long long a1)
{
long long v1; // rcx
long long result; // rax
long long v3; // rdx
long long v4; // rdx
v1 = *(_QWORD *)(a1 + 104);
if ( !v1 )
return 0LL;
result = 0LL;
v3 = 0LL;
while ( *(_WORD *)(v1 + 2 * v3) < 0x80u )
{
if ( ++v3 == 256 )
{
result = 4096LL;
break;
}
}
v4 = 0LL;
while ( v4 == *(unsigned __int16 *)(v1 + 2 * v4) )
{
if ( ++v4 == 128 )
return result;
}
return (unsigned int)result | 0x2000;
}
|
my_8bit_charset_flags_from_data:
MOV RCX,qword ptr [RDI + 0x68]
TEST RCX,RCX
JZ 0x0017134c
PUSH RBP
MOV RBP,RSP
XOR EAX,EAX
XOR EDX,EDX
LAB_0017131a:
CMP word ptr [RCX + RDX*0x2],0x80
JNC 0x00171333
INC RDX
CMP RDX,0x100
JNZ 0x0017131a
MOV EAX,0x1000
LAB_00171333:
XOR EDX,EDX
LAB_00171335:
MOVZX ESI,word ptr [RCX + RDX*0x2]
CMP RDX,RSI
JNZ 0x0017134f
INC RDX
CMP RDX,0x80
JNZ 0x00171335
JMP 0x00171354
LAB_0017134c:
XOR EAX,EAX
RET
LAB_0017134f:
OR EAX,0x2000
LAB_00171354:
POP RBP
RET
|
uint my_8bit_charset_flags_from_data(long param_1)
{
long lVar1;
uint uVar2;
long lVar3;
ulong uVar4;
lVar1 = *(long *)(param_1 + 0x68);
if (lVar1 == 0) {
return 0;
}
uVar2 = 0;
lVar3 = 0;
do {
if (0x7f < *(ushort *)(lVar1 + lVar3 * 2)) goto LAB_00171333;
lVar3 = lVar3 + 1;
} while (lVar3 != 0x100);
uVar2 = 0x1000;
LAB_00171333:
uVar4 = 0;
do {
if (uVar4 != *(ushort *)(lVar1 + uVar4 * 2)) {
return uVar2 | 0x2000;
}
uVar4 = uVar4 + 1;
} while (uVar4 != 0x80);
return uVar2;
}
|
|
66,234 |
(anonymous namespace)::msgpack23_StdArrayTypePacking_Test::~msgpack23_StdArrayTypePacking_Test()
|
msgpack23/tests/type_packing_tests.cpp
|
TEST(msgpack23, StdArrayTypePacking) {
msgpack23::Packer packer{};
std::array<std::string, 3> const expected{"one", "two", "three"};
std::vector<std::byte> const expected_data{
static_cast<std::byte>(0b10010000 | 3),
static_cast<std::byte>(0b10100000 | 3),
static_cast<std::byte>('o'),
static_cast<std::byte>('n'),
static_cast<std::byte>('e'),
static_cast<std::byte>(0b10100000 | 3),
static_cast<std::byte>('t'),
static_cast<std::byte>('w'),
static_cast<std::byte>('o'),
static_cast<std::byte>(0b10100000 | 5),
static_cast<std::byte>('t'),
static_cast<std::byte>('h'),
static_cast<std::byte>('r'),
static_cast<std::byte>('e'),
static_cast<std::byte>('e'),
};
auto const data = packer(expected);
EXPECT_EQ(data, expected_data);
msgpack23::Unpacker unpacker{data};
std::array<std::string, 3> actual{};
unpacker(actual);
EXPECT_EQ(expected, actual);
}
|
O0
|
cpp
|
(anonymous namespace)::msgpack23_StdArrayTypePacking_Test::~msgpack23_StdArrayTypePacking_Test():
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x10(%rbp)
callq 0x77610
movq -0x10(%rbp), %rdi
movl $0x10, %esi
callq 0x16580
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
|
_ZN12_GLOBAL__N_134msgpack23_StdArrayTypePacking_TestD0Ev:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]; this
mov [rbp+var_10], rdi
call _ZN12_GLOBAL__N_134msgpack23_StdArrayTypePacking_TestD2Ev; `anonymous namespace'::msgpack23_StdArrayTypePacking_Test::~msgpack23_StdArrayTypePacking_Test()
mov rdi, [rbp+var_10]; void *
mov esi, 10h; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
add rsp, 10h
pop rbp
retn
|
void `anonymous namespace'::msgpack23_StdArrayTypePacking_Test::~msgpack23_StdArrayTypePacking_Test(
_anonymous_namespace_::msgpack23_StdArrayTypePacking_Test *this)
{
`anonymous namespace'::msgpack23_StdArrayTypePacking_Test::~msgpack23_StdArrayTypePacking_Test(this);
operator delete(this, 0x10uLL);
}
|
~msgpack23_StdArrayTypePacking_Test:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RDI
CALL 0x00177610
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,0x10
CALL 0x00116580
ADD RSP,0x10
POP RBP
RET
|
/* (anonymous namespace)::msgpack23_StdArrayTypePacking_Test::~msgpack23_StdArrayTypePacking_Test()
*/
void __thiscall
(anonymous_namespace)::msgpack23_StdArrayTypePacking_Test::~msgpack23_StdArrayTypePacking_Test
(msgpack23_StdArrayTypePacking_Test *this)
{
~msgpack23_StdArrayTypePacking_Test(this);
operator_delete(this,0x10);
return;
}
|
|
66,235 |
mariadb_convert_string
|
eloqsql/libmariadb/libmariadb/ma_charset.c
|
size_t STDCALL mariadb_convert_string(const char *from __attribute__((unused)),
size_t *from_len __attribute__((unused)),
MARIADB_CHARSET_INFO *from_cs __attribute__((unused)),
char *to __attribute__((unused)),
size_t *to_len __attribute__((unused)),
MARIADB_CHARSET_INFO *to_cs __attribute__((unused)), int *errorcode)
{
#ifndef HAVE_ICONV
*errorcode= ENOTSUP;
return -1;
#else
iconv_t conv= 0;
size_t rc= -1;
size_t save_len= *to_len;
char to_encoding[128], from_encoding[128];
*errorcode= 0;
/* check if conversion is supported */
if (!from_cs || !from_cs->encoding || !from_cs->encoding[0] ||
!to_cs || !to_cs->encoding || !to_cs->encoding[0])
{
*errorcode= EINVAL;
return rc;
}
map_charset_name(to_cs->encoding, 1, to_encoding, sizeof(to_encoding));
map_charset_name(from_cs->encoding, 0, from_encoding, sizeof(from_encoding));
if ((conv= iconv_open(to_encoding, from_encoding)) == (iconv_t)-1)
{
*errorcode= errno;
goto error;
}
if ((rc= iconv(conv, IF_WIN(,IF_SOLARIS(,(char **)))&from, from_len, &to, to_len)) == (size_t)-1)
{
*errorcode= errno;
goto error;
}
rc= save_len - *to_len;
error:
if (conv != (iconv_t)-1)
iconv_close(conv);
return rc;
#endif
}
|
O0
|
c
|
mariadb_convert_string:
pushq %rbp
movq %rsp, %rbp
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq 0x10(%rbp), %rax
movl $0x5f, (%rax)
movq $-0x1, %rax
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
mariadb_convert_string:
push rbp
mov rbp, rsp
mov rax, [rbp+arg_0]
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
mov rax, [rbp+arg_0]
mov dword ptr [rax], 5Fh ; '_'
mov rax, 0FFFFFFFFFFFFFFFFh
pop rbp
retn
|
long long mariadb_convert_string(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
_DWORD *a7)
{
*a7 = 95;
return -1LL;
}
|
mariadb_convert_string:
PUSH RBP
MOV RBP,RSP
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
MOV RAX,qword ptr [RBP + 0x10]
MOV dword ptr [RAX],0x5f
MOV RAX,-0x1
POP RBP
RET
|
int8 mariadb_convert_string(void)
{
int4 *in_stack_00000008;
*in_stack_00000008 = 0x5f;
return 0xffffffffffffffff;
}
|
|
66,236 |
inline_mysql_file_chsize
|
eloqsql/include/mysql/psi/mysql_file.h
|
static inline int
inline_mysql_file_chsize(
#ifdef HAVE_PSI_FILE_INTERFACE
const char *src_file, uint src_line,
#endif
File file, my_off_t newlength, int filler, myf flags)
{
int result;
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;
locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_CHSIZE);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_wait)(locker, (size_t) newlength, src_file,
src_line);
result= my_chsize(file, newlength, filler, flags);
PSI_FILE_CALL(end_file_wait)(locker, (size_t) newlength);
return result;
}
#endif
result= my_chsize(file, newlength, filler, flags);
return result;
}
|
O0
|
c
|
inline_mysql_file_chsize:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movq %r9, -0x30(%rbp)
leaq 0x249960(%rip), %rax # 0x2c0238
movq (%rax), %rax
movq 0x158(%rax), %rax
movl -0x18(%rbp), %esi
leaq -0x88(%rbp), %rdi
movl $0xd, %edx
callq *%rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x76972
leaq 0x24991a(%rip), %rax # 0x2c0238
movq (%rax), %rax
movq 0x210(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x10(%rbp), %rdx
movl -0x14(%rbp), %ecx
callq *%rax
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
movl -0x24(%rbp), %edx
movq -0x30(%rbp), %rcx
callq 0xef3a0
movl %eax, -0x34(%rbp)
leaq 0x2498e2(%rip), %rax # 0x2c0238
movq (%rax), %rax
movq 0x218(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq *%rax
movl -0x34(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x7698e
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
movl -0x24(%rbp), %edx
movq -0x30(%rbp), %rcx
callq 0xef3a0
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x90, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
inline_mysql_file_chsize_2:
push rbp
mov rbp, rsp
sub rsp, 90h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov [rbp+var_20], rcx
mov [rbp+var_24], r8d
mov [rbp+var_30], r9
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+158h]
mov esi, [rbp+var_18]
lea rdi, [rbp+var_88]
mov edx, 0Dh
call rax
mov [rbp+var_40], rax
cmp [rbp+var_40], 0
setnz al
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_76972
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+210h]
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_10]
mov ecx, [rbp+var_14]
call rax
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov edx, [rbp+var_24]
mov rcx, [rbp+var_30]
call my_chsize
mov [rbp+var_34], eax
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+218h]
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_20]
call rax
mov eax, [rbp+var_34]
mov [rbp+var_4], eax
jmp short loc_7698E
loc_76972:
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov edx, [rbp+var_24]
mov rcx, [rbp+var_30]
call my_chsize
mov [rbp+var_34], eax
mov eax, [rbp+var_34]
mov [rbp+var_4], eax
loc_7698E:
mov eax, [rbp+var_4]
add rsp, 90h
pop rbp
retn
|
long long inline_mysql_file_chsize_2(
long long a1,
unsigned int a2,
unsigned int a3,
long long a4,
unsigned int a5,
long long a6)
{
_BYTE v7[72]; // [rsp+8h] [rbp-88h] BYREF
long long v8; // [rsp+50h] [rbp-40h]
unsigned int v9; // [rsp+5Ch] [rbp-34h]
long long v10; // [rsp+60h] [rbp-30h]
unsigned int v11; // [rsp+6Ch] [rbp-24h]
long long v12; // [rsp+70h] [rbp-20h]
unsigned int v13; // [rsp+78h] [rbp-18h]
unsigned int v14; // [rsp+7Ch] [rbp-14h]
long long v15; // [rsp+80h] [rbp-10h]
v15 = a1;
v14 = a2;
v13 = a3;
v12 = a4;
v11 = a5;
v10 = a6;
v8 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v7, a3, 13LL);
if ( v8 )
{
((void ( *)(long long, long long, long long, _QWORD))PSI_server[66])(v8, v12, v15, v14);
v9 = my_chsize(v13, v12, v11, v10);
((void ( *)(long long, long long))PSI_server[67])(v8, v12);
}
else
{
return (unsigned int)my_chsize(v13, v12, v11, v10);
}
return v9;
}
|
inline_mysql_file_chsize:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV qword ptr [RBP + -0x20],RCX
MOV dword ptr [RBP + -0x24],R8D
MOV qword ptr [RBP + -0x30],R9
LEA RAX,[0x3c0238]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x158]
MOV ESI,dword ptr [RBP + -0x18]
LEA RDI,[RBP + -0x88]
MOV EDX,0xd
CALL RAX
MOV qword ptr [RBP + -0x40],RAX
CMP qword ptr [RBP + -0x40],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x00176972
LEA RAX,[0x3c0238]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x210]
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x14]
CALL RAX
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV EDX,dword ptr [RBP + -0x24]
MOV RCX,qword ptr [RBP + -0x30]
CALL 0x001ef3a0
MOV dword ptr [RBP + -0x34],EAX
LEA RAX,[0x3c0238]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x218]
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x20]
CALL RAX
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0017698e
LAB_00176972:
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV EDX,dword ptr [RBP + -0x24]
MOV RCX,qword ptr [RBP + -0x30]
CALL 0x001ef3a0
MOV dword ptr [RBP + -0x34],EAX
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RBP + -0x4],EAX
LAB_0017698e:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x90
POP RBP
RET
|
int4
inline_mysql_file_chsize
(int8 param_1,int4 param_2,int4 param_3,int8 param_4,
int4 param_5,int8 param_6)
{
int1 local_90 [72];
long local_48;
int4 local_3c;
int8 local_38;
int4 local_2c;
int8 local_28;
int4 local_20;
int4 local_1c;
int8 local_18;
int4 local_c;
local_38 = param_6;
local_2c = param_5;
local_28 = param_4;
local_20 = param_3;
local_1c = param_2;
local_18 = param_1;
local_48 = (**(code **)(PSI_server + 0x158))(local_90,param_3,0xd);
if (local_48 == 0) {
local_c = my_chsize(local_20,local_28,local_2c,local_38);
}
else {
(**(code **)(PSI_server + 0x210))(local_48,local_28,local_18,local_1c);
local_3c = my_chsize(local_20,local_28,local_2c,local_38);
(**(code **)(PSI_server + 0x218))(local_48,local_28);
local_c = local_3c;
}
return local_c;
}
|
|
66,237 |
CLI::App::parse(int, char const* const*)
|
MikePodsytnik[P]TCRtrie/build_O0/_deps/cli11-src/include/CLI/impl/App_inl.hpp
|
CLI11_INLINE void App::parse(int argc, const char *const *argv) {
// If the name is not set, read from command line
if(name_.empty() || has_automatic_name_) {
has_automatic_name_ = true;
name_ = argv[0];
}
std::vector<std::string> args;
args.reserve(static_cast<std::size_t>(argc) - 1U);
for(auto i = static_cast<std::size_t>(argc) - 1U; i > 0U; --i)
args.emplace_back(argv[i]);
parse(std::move(args));
}
|
O0
|
cpp
|
CLI::App::parse(int, char const* const*):
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x50(%rbp)
addq $0x8, %rdi
callq 0x99c0
testb $0x1, %al
jne 0x10262
movq -0x50(%rbp), %rax
testb $0x1, 0x4b(%rax)
je 0x1027a
movq -0x50(%rbp), %rdi
movb $0x1, 0x4b(%rdi)
movq -0x18(%rbp), %rax
movq (%rax), %rsi
addq $0x8, %rdi
callq 0x9870
leaq -0x30(%rbp), %rdi
movq %rdi, -0x58(%rbp)
callq 0x18480
movq -0x58(%rbp), %rdi
movslq -0xc(%rbp), %rsi
decq %rsi
callq 0x32e80
jmp 0x10299
movslq -0xc(%rbp), %rax
subq $0x1, %rax
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
jbe 0x102ea
movq -0x18(%rbp), %rax
movq -0x48(%rbp), %rcx
leaq (%rax,%rcx,8), %rsi
leaq -0x30(%rbp), %rdi
callq 0x32f80
jmp 0x102c3
jmp 0x102c5
movq -0x48(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x48(%rbp)
jmp 0x102a5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x30(%rbp), %rdi
callq 0xe270
jmp 0x10308
movq -0x50(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x33000
jmp 0x102f9
leaq -0x30(%rbp), %rdi
callq 0xe270
addq $0x60, %rsp
popq %rbp
retq
movq -0x38(%rbp), %rdi
callq 0x9a70
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
|
_ZN3CLI3App5parseEiPKPKc:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_18], rdx
mov rdi, [rbp+var_8]
mov [rbp+var_50], rdi
add rdi, 8
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_10262
mov rax, [rbp+var_50]
test byte ptr [rax+4Bh], 1
jz short loc_1027A
loc_10262:
mov rdi, [rbp+var_50]
mov byte ptr [rdi+4Bh], 1
mov rax, [rbp+var_18]
mov rsi, [rax]
add rdi, 8
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc; std::string::operator=(char const*)
loc_1027A:
lea rdi, [rbp+var_30]
mov [rbp+var_58], rdi
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev; std::vector<std::string>::vector(void)
mov rdi, [rbp+var_58]
movsxd rsi, [rbp+var_C]
dec rsi
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE7reserveEm; std::vector<std::string>::reserve(ulong)
jmp short $+2
loc_10299:
movsxd rax, [rbp+var_C]
sub rax, 1
mov [rbp+var_48], rax
loc_102A5:
cmp [rbp+var_48], 0
jbe short loc_102EA
mov rax, [rbp+var_18]
mov rcx, [rbp+var_48]
lea rsi, [rax+rcx*8]
lea rdi, [rbp+var_30]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJRKPKcEEERS5_DpOT_; std::vector<std::string>::emplace_back<char const* const&>(char const* const&)
jmp short $+2
loc_102C3:
jmp short $+2
loc_102C5:
mov rax, [rbp+var_48]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_48], rax
jmp short loc_102A5
mov rcx, rax
mov eax, edx
mov [rbp+var_38], rcx
mov [rbp+var_3C], eax
lea rdi, [rbp+var_30]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
jmp short loc_10308
loc_102EA:
mov rdi, [rbp+var_50]
lea rsi, [rbp+var_30]
call _ZN3CLI3App5parseEOSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EE; CLI::App::parse(std::vector<std::string> &&)
jmp short $+2
loc_102F9:
lea rdi, [rbp+var_30]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
add rsp, 60h
pop rbp
retn
loc_10308:
mov rdi, [rbp+var_38]
call __Unwind_Resume
|
long long CLI::App::parse(CLI::App *this, int a2, const char *const *a3)
{
long long i; // [rsp+18h] [rbp-48h]
long long v5[3]; // [rsp+30h] [rbp-30h] BYREF
const char *const *v6; // [rsp+48h] [rbp-18h]
int v7; // [rsp+54h] [rbp-Ch]
CLI::App *v8; // [rsp+58h] [rbp-8h]
v8 = this;
v7 = a2;
v6 = a3;
if ( (std::string::empty((char *)this + 8) & 1) != 0 || (*((_BYTE *)this + 75) & 1) != 0 )
{
*((_BYTE *)this + 75) = 1;
std::string::operator=((char *)this + 8, *v6);
}
std::vector<std::string>::vector();
std::vector<std::string>::reserve(v5, v7 - 1LL);
for ( i = v7 - 1LL; i; --i )
std::vector<std::string>::emplace_back<char const* const&>(v5, &v6[i]);
CLI::App::parse(this, v5);
return std::vector<std::string>::~vector(v5);
}
|
parse:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV qword ptr [RBP + -0x18],RDX
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x50],RDI
ADD RDI,0x8
CALL 0x001099c0
TEST AL,0x1
JNZ 0x00110262
MOV RAX,qword ptr [RBP + -0x50]
TEST byte ptr [RAX + 0x4b],0x1
JZ 0x0011027a
LAB_00110262:
MOV RDI,qword ptr [RBP + -0x50]
MOV byte ptr [RDI + 0x4b],0x1
MOV RAX,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RAX]
ADD RDI,0x8
CALL 0x00109870
LAB_0011027a:
LEA RDI,[RBP + -0x30]
MOV qword ptr [RBP + -0x58],RDI
CALL 0x00118480
MOV RDI,qword ptr [RBP + -0x58]
MOVSXD RSI,dword ptr [RBP + -0xc]
DEC RSI
LAB_00110292:
CALL 0x00132e80
JMP 0x00110299
LAB_00110299:
MOVSXD RAX,dword ptr [RBP + -0xc]
SUB RAX,0x1
MOV qword ptr [RBP + -0x48],RAX
LAB_001102a5:
CMP qword ptr [RBP + -0x48],0x0
JBE 0x001102ea
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x48]
LEA RSI,[RAX + RCX*0x8]
LEA RDI,[RBP + -0x30]
CALL 0x00132f80
JMP 0x001102c3
LAB_001102c3:
JMP 0x001102c5
LAB_001102c5:
MOV RAX,qword ptr [RBP + -0x48]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x48],RAX
JMP 0x001102a5
LAB_001102ea:
MOV RDI,qword ptr [RBP + -0x50]
LEA RSI,[RBP + -0x30]
CALL 0x00133000
LAB_001102f7:
JMP 0x001102f9
LAB_001102f9:
LEA RDI,[RBP + -0x30]
CALL 0x0010e270
ADD RSP,0x60
POP RBP
RET
|
/* CLI::App::parse(int, char const* const*) */
void __thiscall CLI::App::parse(App *this,int param_1,char **param_2)
{
ulong uVar1;
long local_50;
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> local_38 [24];
char **local_20;
int local_14;
App *local_10;
local_20 = param_2;
local_14 = param_1;
local_10 = this;
uVar1 = std::__cxx11::string::empty();
if (((uVar1 & 1) != 0) || (((byte)this[0x4b] & 1) != 0)) {
this[0x4b] = (App)0x1;
std::__cxx11::string::operator=((string *)(this + 8),*local_20);
}
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector(local_38);
/* try { // try from 00110292 to 001102f6 has its CatchHandler @ 001102d3 */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::reserve
(local_38,(long)local_14 - 1);
local_50 = (long)local_14;
while (local_50 = local_50 + -1, local_50 != 0) {
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::
emplace_back<char_const*const&>(local_38,local_20 + local_50);
}
parse(this,(vector *)local_38);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector(local_38);
return;
}
|
|
66,238 |
ma_copy_key
|
eloqsql/storage/maria/ma_key.c
|
void _ma_copy_key(MARIA_KEY *to, const MARIA_KEY *from)
{
memcpy(to->data, from->data, from->data_length + from->ref_length);
to->keyinfo= from->keyinfo;
to->data_length= from->data_length;
to->ref_length= from->ref_length;
to->flag= from->flag;
}
|
O3
|
c
|
ma_copy_key:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rdi
movq (%rsi), %rsi
movl 0x14(%rbx), %edx
addl 0x10(%rbx), %edx
callq 0x29080
movq 0x8(%rbx), %rax
movq %rax, 0x8(%r14)
movl 0x10(%rbx), %eax
movl %eax, 0x10(%r14)
movl 0x14(%rbx), %eax
movl %eax, 0x14(%r14)
movl 0x18(%rbx), %eax
movl %eax, 0x18(%r14)
popq %rbx
popq %r14
popq %rbp
retq
|
_ma_copy_key:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rsi
mov r14, rdi
mov rdi, [rdi]
mov rsi, [rsi]
mov edx, [rbx+14h]
add edx, [rbx+10h]
call _memcpy
mov rax, [rbx+8]
mov [r14+8], rax
mov eax, [rbx+10h]
mov [r14+10h], eax
mov eax, [rbx+14h]
mov [r14+14h], eax
mov eax, [rbx+18h]
mov [r14+18h], eax
pop rbx
pop r14
pop rbp
retn
|
long long ma_copy_key(long long a1, long long a2)
{
long long result; // rax
memcpy(*(_QWORD *)a1, *(_QWORD *)a2, (unsigned int)(*(_DWORD *)(a2 + 16) + *(_DWORD *)(a2 + 20)));
*(_QWORD *)(a1 + 8) = *(_QWORD *)(a2 + 8);
*(_DWORD *)(a1 + 16) = *(_DWORD *)(a2 + 16);
*(_DWORD *)(a1 + 20) = *(_DWORD *)(a2 + 20);
result = *(unsigned int *)(a2 + 24);
*(_DWORD *)(a1 + 24) = result;
return result;
}
|
_ma_copy_key:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RSI
MOV R14,RDI
MOV RDI,qword ptr [RDI]
MOV RSI,qword ptr [RSI]
MOV EDX,dword ptr [RBX + 0x14]
ADD EDX,dword ptr [RBX + 0x10]
CALL 0x00129080
MOV RAX,qword ptr [RBX + 0x8]
MOV qword ptr [R14 + 0x8],RAX
MOV EAX,dword ptr [RBX + 0x10]
MOV dword ptr [R14 + 0x10],EAX
MOV EAX,dword ptr [RBX + 0x14]
MOV dword ptr [R14 + 0x14],EAX
MOV EAX,dword ptr [RBX + 0x18]
MOV dword ptr [R14 + 0x18],EAX
POP RBX
POP R14
POP RBP
RET
|
void _ma_copy_key(int8 *param_1,int8 *param_2)
{
memcpy((void *)*param_1,(void *)*param_2,
(ulong)(uint)(*(int *)((long)param_2 + 0x14) + *(int *)(param_2 + 2)));
param_1[1] = param_2[1];
*(int4 *)(param_1 + 2) = *(int4 *)(param_2 + 2);
*(int4 *)((long)param_1 + 0x14) = *(int4 *)((long)param_2 + 0x14);
*(int4 *)(param_1 + 3) = *(int4 *)(param_2 + 3);
return;
}
|
|
66,239 |
FindPeaksCppTest_HeightFiltering_Test::~FindPeaksCppTest_HeightFiltering_Test()
|
giladroyz[P]FindPeaks/tests/test_find_peaks_cpp.cpp
|
TEST_F(FindPeaksCppTest, HeightFiltering) {
PeakConditions conditions;
conditions.set_height(2.5); // Only peaks >= 2.5
auto peaks = find_peaks(simple_signal, conditions);
ASSERT_EQ(1, peaks.size());
EXPECT_EQ(5, peaks[0].peak); // Only the peak with height 3
EXPECT_DOUBLE_EQ(3.0, peaks[0].peak_height);
}
|
O1
|
cpp
|
FindPeaksCppTest_HeightFiltering_Test::~FindPeaksCppTest_HeightFiltering_Test():
pushq %rbx
movq %rdi, %rbx
callq 0xdbf4
movl $0x88, %esi
movq %rbx, %rdi
popq %rbx
jmp 0x84e0
nop
|
_ZN37FindPeaksCppTest_HeightFiltering_TestD0Ev:
push rbx
mov rbx, rdi
call _ZN16FindPeaksCppTestD2Ev; FindPeaksCppTest::~FindPeaksCppTest()
mov esi, 88h; unsigned __int64
mov rdi, rbx; void *
pop rbx
jmp __ZdlPvm; operator delete(void *,ulong)
|
void FindPeaksCppTest_HeightFiltering_Test::~FindPeaksCppTest_HeightFiltering_Test(
FindPeaksCppTest_HeightFiltering_Test *this)
{
FindPeaksCppTest::~FindPeaksCppTest(this);
operator delete(this, 0x88uLL);
}
|
~FindPeaksCppTest_HeightFiltering_Test:
PUSH RBX
MOV RBX,RDI
CALL 0x0010dbf4
MOV ESI,0x88
MOV RDI,RBX
POP RBX
JMP 0x001084e0
|
/* FindPeaksCppTest_HeightFiltering_Test::~FindPeaksCppTest_HeightFiltering_Test() */
void __thiscall
FindPeaksCppTest_HeightFiltering_Test::~FindPeaksCppTest_HeightFiltering_Test
(FindPeaksCppTest_HeightFiltering_Test *this)
{
FindPeaksCppTest::~FindPeaksCppTest((FindPeaksCppTest *)this);
operator_delete(this,0x88);
return;
}
|
|
66,240 |
google::protobuf::compiler::java::FileGenerator::GenerateDescriptorInitializationCodeForImmutable(google::protobuf::io::Printer*)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/java/file.cc
|
void FileGenerator::GenerateDescriptorInitializationCodeForImmutable(
io::Printer* printer) {
printer->Print(
"public static com.google.protobuf.Descriptors.FileDescriptor\n"
" getDescriptor() {\n"
" return descriptor;\n"
"}\n"
"private static $final$ com.google.protobuf.Descriptors.FileDescriptor\n"
" descriptor;\n"
"static {\n",
// TODO(dweis): Mark this as final.
"final", "");
printer->Indent();
SharedCodeGenerator shared_code_generator(file_, options_);
shared_code_generator.GenerateDescriptors(printer);
int bytecode_estimate = 0;
int method_num = 0;
for (int i = 0; i < file_->message_type_count(); i++) {
bytecode_estimate +=
message_generators_[i]->GenerateStaticVariableInitializers(printer);
MaybeRestartJavaMethod(
printer, &bytecode_estimate, &method_num,
"_clinit_autosplit_dinit_$method_num$();\n",
"private static void _clinit_autosplit_dinit_$method_num$() {\n");
}
for (int i = 0; i < file_->extension_count(); i++) {
bytecode_estimate +=
extension_generators_[i]->GenerateNonNestedInitializationCode(printer);
MaybeRestartJavaMethod(
printer, &bytecode_estimate, &method_num,
"_clinit_autosplit_dinit_$method_num$();\n",
"private static void _clinit_autosplit_dinit_$method_num$() {\n");
}
// Proto compiler builds a DescriptorPool, which holds all the descriptors to
// generate, when processing the ".proto" files. We call this DescriptorPool
// the parsed pool (a.k.a. file_->pool()).
//
// Note that when users try to extend the (.*)DescriptorProto in their
// ".proto" files, it does not affect the pre-built FileDescriptorProto class
// in proto compiler. When we put the descriptor data in the file_proto, those
// extensions become unknown fields.
//
// Now we need to find out all the extension value to the (.*)DescriptorProto
// in the file_proto message, and prepare an ExtensionRegistry to return.
//
// To find those extensions, we need to parse the data into a dynamic message
// of the FileDescriptor based on the builder-pool, then we can use
// reflections to find all extension fields
FileDescriptorProto file_proto;
file_->CopyTo(&file_proto);
std::string file_data;
file_proto.SerializeToString(&file_data);
FieldDescriptorSet extensions;
CollectExtensions(file_proto, *file_->pool(), &extensions, file_data);
if (extensions.size() > 0) {
// Must construct an ExtensionRegistry containing all existing extensions
// and use it to parse the descriptor data again to recognize extensions.
printer->Print(
"com.google.protobuf.ExtensionRegistry registry =\n"
" com.google.protobuf.ExtensionRegistry.newInstance();\n");
FieldDescriptorSet::iterator it;
for (it = extensions.begin(); it != extensions.end(); it++) {
std::unique_ptr<ExtensionGenerator> generator(
generator_factory_->NewExtensionGenerator(*it));
bytecode_estimate += generator->GenerateRegistrationCode(printer);
MaybeRestartJavaMethod(
printer, &bytecode_estimate, &method_num,
"_clinit_autosplit_dinit_$method_num$(registry);\n",
"private static void _clinit_autosplit_dinit_$method_num$(\n"
" com.google.protobuf.ExtensionRegistry registry) {\n");
}
printer->Print(
"com.google.protobuf.Descriptors.FileDescriptor\n"
" .internalUpdateFileDescriptor(descriptor, registry);\n");
}
// Force descriptor initialization of all dependencies.
for (int i = 0; i < file_->dependency_count(); i++) {
if (ShouldIncludeDependency(file_->dependency(i), true)) {
std::string dependency =
name_resolver_->GetImmutableClassName(file_->dependency(i));
printer->Print("$dependency$.getDescriptor();\n", "dependency",
dependency);
}
}
printer->Outdent();
printer->Print("}\n");
}
|
O3
|
cpp
|
google::protobuf::compiler::java::FileGenerator::GenerateDescriptorInitializationCodeForImmutable(google::protobuf::io::Printer*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a8, %rsp # imm = 0x1A8
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x11449e(%rip), %rsi # 0x1ba586
leaq 0x10a2ac(%rip), %rdx # 0x1b039b
leaq 0xf44b3(%rip), %rcx # 0x19a5a9
movq %rbx, %rdi
callq 0xa8e1c
movq %rbx, %rdi
callq 0x16d126
movq (%r14), %rsi
leaq 0x90(%r14), %rdx
leaq 0x78(%rsp), %r15
movq %r15, %rdi
callq 0xb8748
movq %r15, %rdi
movq %rbx, %rsi
callq 0xb8dc6
xorl %ecx, %ecx
movl %ecx, (%rsp)
movl %ecx, 0x4(%rsp)
movq (%r14), %rax
cmpl %ecx, 0x34(%rax)
jle 0xa6186
xorl %r15d, %r15d
leaq 0x114536(%rip), %r12 # 0x1ba679
movq %rsp, %r13
leaq 0x4(%rsp), %rbp
movq 0x48(%r14), %rax
movq (%rax,%r15,8), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x18(%rax)
addl %eax, (%rsp)
movq %rbx, %rdi
movq %r13, %rsi
movq %rbp, %rdx
leaq 0x1144e1(%rip), %rcx # 0x1ba650
movq %r12, %r8
callq 0xa6ed1
incq %r15
movq (%r14), %rax
movslq 0x34(%rax), %rcx
cmpq %rcx, %r15
jl 0xa614b
cmpl $0x0, 0x4(%rax)
jle 0xa61d9
xorl %r15d, %r15d
leaq 0x1144e3(%rip), %r12 # 0x1ba679
movq %rsp, %r13
leaq 0x4(%rsp), %rbp
movq 0x60(%r14), %rax
movq (%rax,%r15,8), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x18(%rax)
addl %eax, (%rsp)
movq %rbx, %rdi
movq %r13, %rsi
movq %rbp, %rdx
leaq 0x11448e(%rip), %rcx # 0x1ba650
movq %r12, %r8
callq 0xa6ed1
incq %r15
movq (%r14), %rax
movslq 0x4(%rax), %rax
cmpq %rax, %r15
jl 0xa619e
leaq 0xd0(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x144fce
movq (%r14), %rdi
leaq 0xd0(%rsp), %rsi
callq 0x11eb58
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0xd0(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xfdce0
leaq 0x30(%rsp), %rcx
movl $0x0, (%rcx)
xorl %eax, %eax
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
movq (%r14), %rax
movq 0x18(%rax), %rsi
leaq 0xd0(%rsp), %rdi
leaq 0x28(%rsp), %rdx
leaq 0x8(%rsp), %rcx
callq 0xa700b
cmpq $0x0, 0x50(%rsp)
je 0xa62f7
leaq 0x114449(%rip), %rsi # 0x1ba6b7
movq %rbx, %rdi
callq 0x2e40a
movq 0x40(%rsp), %r15
leaq 0x30(%rsp), %rax
cmpq %rax, %r15
je 0xa62e8
movq %rsp, %rbp
leaq 0x4(%rsp), %r12
movq 0x78(%r14), %rdi
movq 0x20(%r15), %rsi
movq (%rdi), %rax
callq *0x18(%rax)
movq %rax, %r13
movq (%rax), %rax
movq %r13, %rdi
movq %rbx, %rsi
callq *0x20(%rax)
addl %eax, (%rsp)
movq %rbx, %rdi
movq %rbp, %rsi
movq %r12, %rdx
leaq 0x114465(%rip), %rcx # 0x1ba722
leaq 0x11448f(%rip), %r8 # 0x1ba753
callq 0xa6ed1
movq (%r13), %rax
movq %r13, %rdi
callq *0x8(%rax)
movq %r15, %rdi
callq 0x1f570
movq %rax, %r15
leaq 0x30(%rsp), %rax
cmpq %rax, %r15
jne 0xa628d
leaq 0x1144d5(%rip), %rsi # 0x1ba7c4
movq %rbx, %rdi
callq 0x2e40a
movq (%r14), %rdi
cmpl $0x0, 0x28(%rdi)
jle 0xa636c
xorl %ebp, %ebp
leaq 0x58(%rsp), %r15
leaq 0x11453e(%rip), %r13 # 0x1ba84c
movl %ebp, %esi
callq 0x11ef00
movq (%r14), %rdi
movq 0x88(%r14), %r12
movl %ebp, %esi
callq 0x11ef00
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rdx
movl $0x1, %ecx
callq 0x47900
movq %rbx, %rdi
leaq 0x1144ea(%rip), %rsi # 0x1ba82d
movq %r13, %rdx
movq %r15, %rcx
callq 0x40d74
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0xa6362
callq 0x1f4a0
incl %ebp
movq (%r14), %rdi
cmpl 0x28(%rdi), %ebp
jl 0xa630e
movq %rbx, %rdi
callq 0x16d136
leaq 0x13bd9c(%rip), %rsi # 0x1e2117
movq %rbx, %rdi
callq 0x2e40a
movq 0x38(%rsp), %rdi
callq 0xa8b6e
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xa63a1
callq 0x1f4a0
leaq 0xd0(%rsp), %rdi
callq 0x14540a
leaq 0x78(%rsp), %rdi
callq 0xb87fc
addq $0x1a8, %rsp # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xa6408
movq %rax, %rbx
jmp 0xa6415
movq %rax, %rbx
jmp 0xa6429
jmp 0xa643a
jmp 0xa643a
jmp 0xa6408
jmp 0xa6408
jmp 0xa6408
movq %rax, %rbx
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0xa640b
callq 0x1f4a0
jmp 0xa640b
movq %rax, %rbx
movq (%r13), %rax
movq %r13, %rdi
callq *0x8(%rax)
jmp 0xa640b
movq %rax, %rbx
movq 0x38(%rsp), %rdi
callq 0xa8b6e
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xa6429
callq 0x1f4a0
leaq 0xd0(%rsp), %rdi
callq 0x14540a
jmp 0xa643d
jmp 0xa643a
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0xb87fc
movq %rbx, %rdi
callq 0x1f860
nop
|
_ZN6google8protobuf8compiler4java13FileGenerator48GenerateDescriptorInitializationCodeForImmutableEPNS0_2io7PrinterE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 1A8h
mov rbx, rsi
mov r14, rdi
lea rsi, aPublicStaticCo; "public static com.google.protobuf.Descr"...
lea rdx, aFullFinal+5; "final"
lea rcx, asc_19A5A7+2; ""
mov rdi, rbx; this
call _ZN6google8protobuf2io7Printer5PrintIJA6_cA1_cEEEvPKcDpRKT_; google::protobuf::io::Printer::Print<char [6],char [1]>(char const*,char [6],char [1] const&)
mov rdi, rbx; this
call _ZN6google8protobuf2io7Printer6IndentEv; google::protobuf::io::Printer::Indent(void)
mov rsi, [r14]; google::protobuf::FileDescriptor *
lea rdx, [r14+90h]; google::protobuf::compiler::java::Options *
lea r15, [rsp+1D8h+var_160]
mov rdi, r15; this
call _ZN6google8protobuf8compiler4java19SharedCodeGeneratorC2EPKNS0_14FileDescriptorERKNS2_7OptionsE; google::protobuf::compiler::java::SharedCodeGenerator::SharedCodeGenerator(google::protobuf::FileDescriptor const*,google::protobuf::compiler::java::Options const&)
mov rdi, r15; this
mov rsi, rbx; google::protobuf::io::Printer *
call _ZN6google8protobuf8compiler4java19SharedCodeGenerator19GenerateDescriptorsEPNS0_2io7PrinterE; google::protobuf::compiler::java::SharedCodeGenerator::GenerateDescriptors(google::protobuf::io::Printer *)
xor ecx, ecx
mov [rsp+1D8h+var_1D8], ecx
mov [rsp+1D8h+var_1D4], ecx
mov rax, [r14]
cmp [rax+34h], ecx
jle short loc_A6186
xor r15d, r15d
lea r12, aPrivateStaticV_3; "private static void _clinit_autosplit_d"...
mov r13, rsp
lea rbp, [rsp+1D8h+var_1D4]
loc_A614B:
mov rax, [r14+48h]
mov rdi, [rax+r15*8]
mov rax, [rdi]
mov rsi, rbx
call qword ptr [rax+18h]
add [rsp+1D8h+var_1D8], eax
mov rdi, rbx; this
mov rsi, r13; google::protobuf::io::Printer *
mov rdx, rbp; int *
lea rcx, aClinitAutospli_0; "_clinit_autosplit_dinit_$method_num$();"...
mov r8, r12; char *
call _ZN6google8protobuf8compiler4java12_GLOBAL__N_122MaybeRestartJavaMethodEPNS0_2io7PrinterEPiS7_PKcS9_; google::protobuf::compiler::java::`anonymous namespace'::MaybeRestartJavaMethod(google::protobuf::io::Printer *,int *,int *,char const*,char const*)
inc r15
mov rax, [r14]
movsxd rcx, dword ptr [rax+34h]
cmp r15, rcx
jl short loc_A614B
loc_A6186:
cmp dword ptr [rax+4], 0
jle short loc_A61D9
xor r15d, r15d
lea r12, aPrivateStaticV_3; "private static void _clinit_autosplit_d"...
mov r13, rsp
lea rbp, [rsp+1D8h+var_1D4]
loc_A619E:
mov rax, [r14+60h]
mov rdi, [rax+r15*8]
mov rax, [rdi]
mov rsi, rbx
call qword ptr [rax+18h]
add [rsp+1D8h+var_1D8], eax
mov rdi, rbx; this
mov rsi, r13; google::protobuf::io::Printer *
mov rdx, rbp; int *
lea rcx, aClinitAutospli_0; "_clinit_autosplit_dinit_$method_num$();"...
mov r8, r12; char *
call _ZN6google8protobuf8compiler4java12_GLOBAL__N_122MaybeRestartJavaMethodEPNS0_2io7PrinterEPiS7_PKcS9_; google::protobuf::compiler::java::`anonymous namespace'::MaybeRestartJavaMethod(google::protobuf::io::Printer *,int *,int *,char const*,char const*)
inc r15
mov rax, [r14]
movsxd rax, dword ptr [rax+4]
cmp r15, rax
jl short loc_A619E
loc_A61D9:
lea rdi, [rsp+1D8h+var_108]
xor esi, esi
xor edx, edx
call _ZN6google8protobuf19FileDescriptorProtoC2EPNS0_5ArenaEb; google::protobuf::FileDescriptorProto::FileDescriptorProto(google::protobuf::Arena *,bool)
mov rdi, [r14]; this
lea rsi, [rsp+1D8h+var_108]; google::protobuf::FileDescriptorProto *
call _ZNK6google8protobuf14FileDescriptor6CopyToEPNS0_19FileDescriptorProtoE; google::protobuf::FileDescriptor::CopyTo(google::protobuf::FileDescriptorProto *)
lea rax, [rsp+1D8h+var_1C0]
mov [rax-10h], rax
mov qword ptr [rax-8], 0
mov byte ptr [rax], 0
lea rdi, [rsp+1D8h+var_108]
lea rsi, [rsp+1D8h+var_1D0]
call _ZNK6google8protobuf11MessageLite17SerializeToStringEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::MessageLite::SerializeToString(std::string *)
lea rcx, [rsp+1D8h+var_1A8]
mov dword ptr [rcx], 0
xor eax, eax
mov [rcx+8], rax
mov [rcx+10h], rcx
mov [rcx+18h], rcx
mov [rcx+20h], rax
mov rax, [r14]
mov rsi, [rax+18h]
lea rdi, [rsp+1D8h+var_108]
lea rdx, [rsp+1D8h+var_1B0]
lea rcx, [rsp+1D8h+var_1D0]
call _ZN6google8protobuf8compiler4java12_GLOBAL__N_117CollectExtensionsERKNS0_19FileDescriptorProtoERKNS0_14DescriptorPoolEPSt3setIPKNS0_15FieldDescriptorENS3_22FieldDescriptorCompareESaISD_EERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::compiler::java::`anonymous namespace'::CollectExtensions(google::protobuf::FileDescriptorProto const&,google::protobuf::DescriptorPool const&,std::set<google::protobuf::FieldDescriptor const*,google::protobuf::compiler::java::`anonymous namespace'::FieldDescriptorCompare,std::allocator<google::protobuf::FieldDescriptor const*>> *,std::string const&)
cmp [rsp+1D8h+var_188], 0
jz loc_A62F7
lea rsi, aComGoogleProto_2; "com.google.protobuf.ExtensionRegistry r"...
mov rdi, rbx
call _ZN6google8protobuf2io7Printer5PrintIJEEEvPKcDpRKT_
mov r15, [rsp+1D8h+var_198]
lea rax, [rsp+1D8h+var_1A8]
cmp r15, rax
jz short loc_A62E8
mov rbp, rsp
lea r12, [rsp+1D8h+var_1D4]
loc_A628D:
mov rdi, [r14+78h]
mov rsi, [r15+20h]
mov rax, [rdi]
call qword ptr [rax+18h]
mov r13, rax
mov rax, [rax]
mov rdi, r13
mov rsi, rbx
call qword ptr [rax+20h]
add [rsp+1D8h+var_1D8], eax
mov rdi, rbx; this
mov rsi, rbp; google::protobuf::io::Printer *
mov rdx, r12; int *
lea rcx, aClinitAutospli_1; "_clinit_autosplit_dinit_$method_num$(re"...
lea r8, aPrivateStaticV_4; "private static void _clinit_autosplit_d"...
call _ZN6google8protobuf8compiler4java12_GLOBAL__N_122MaybeRestartJavaMethodEPNS0_2io7PrinterEPiS7_PKcS9_; google::protobuf::compiler::java::`anonymous namespace'::MaybeRestartJavaMethod(google::protobuf::io::Printer *,int *,int *,char const*,char const*)
mov rax, [r13+0]
mov rdi, r13
call qword ptr [rax+8]
mov rdi, r15
call __ZSt18_Rb_tree_incrementPKSt18_Rb_tree_node_base; std::_Rb_tree_increment(std::_Rb_tree_node_base const*)
mov r15, rax
lea rax, [rsp+1D8h+var_1A8]
cmp r15, rax
jnz short loc_A628D
loc_A62E8:
lea rsi, aComGoogleProto_3; "com.google.protobuf.Descriptors.FileDes"...
mov rdi, rbx
call _ZN6google8protobuf2io7Printer5PrintIJEEEvPKcDpRKT_
loc_A62F7:
mov rdi, [r14]; this
cmp dword ptr [rdi+28h], 0
jle short loc_A636C
xor ebp, ebp
lea r15, [rsp+1D8h+var_180]
lea r13, aDependency; "dependency"
loc_A630E:
mov esi, ebp; int
call _ZNK6google8protobuf14FileDescriptor10dependencyEi; google::protobuf::FileDescriptor::dependency(int)
mov rdi, [r14]; this
mov r12, [r14+88h]
mov esi, ebp; int
call _ZNK6google8protobuf14FileDescriptor10dependencyEi; google::protobuf::FileDescriptor::dependency(int)
mov rdi, r15
mov rsi, r12
mov rdx, rax
mov ecx, 1
call _ZN6google8protobuf8compiler4java17ClassNameResolver12GetClassNameB5cxx11EPKNS0_14FileDescriptorEb; google::protobuf::compiler::java::ClassNameResolver::GetClassName(google::protobuf::FileDescriptor const*,bool)
mov rdi, rbx
lea rsi, aDependencyGetd; "$dependency$.getDescriptor();\n"
mov rdx, r13
mov rcx, r15
call _ZN6google8protobuf2io7Printer5PrintIJA11_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvPKcDpRKT_; google::protobuf::io::Printer::Print<char [11],std::string>(char const*,char [11],std::string const&)
mov rdi, [rsp+1D8h+var_180]; void *
lea rax, [rsp+1D8h+var_170]
cmp rdi, rax
jz short loc_A6362
call __ZdlPv; operator delete(void *)
loc_A6362:
inc ebp
mov rdi, [r14]
cmp ebp, [rdi+28h]
jl short loc_A630E
loc_A636C:
mov rdi, rbx; this
call _ZN6google8protobuf2io7Printer7OutdentEv; google::protobuf::io::Printer::Outdent(void)
lea rsi, aIfOtherHasCapi_1+6Dh; "}\n"
mov rdi, rbx
call _ZN6google8protobuf2io7Printer5PrintIJEEEvPKcDpRKT_
mov rdi, [rsp+1D8h+var_1A0]; void *
call _ZNSt8_Rb_treeIPKN6google8protobuf15FieldDescriptorES4_St9_IdentityIS4_ENS1_8compiler4java12_GLOBAL__N_122FieldDescriptorCompareESaIS4_EE8_M_eraseEPSt13_Rb_tree_nodeIS4_E; std::_Rb_tree<google::protobuf::FieldDescriptor const*,google::protobuf::FieldDescriptor const*,std::_Identity<google::protobuf::FieldDescriptor const*>,google::protobuf::compiler::java::`anonymous namespace'::FieldDescriptorCompare,std::allocator<google::protobuf::FieldDescriptor const*>>::_M_erase(std::_Rb_tree_node<google::protobuf::FieldDescriptor const*> *)
mov rdi, [rsp+1D8h+var_1D0]; void *
lea rax, [rsp+1D8h+var_1C0]
cmp rdi, rax
jz short loc_A63A1
call __ZdlPv; operator delete(void *)
loc_A63A1:
lea rdi, [rsp+1D8h+var_108]; this
call _ZN6google8protobuf19FileDescriptorProtoD2Ev; google::protobuf::FileDescriptorProto::~FileDescriptorProto()
lea rdi, [rsp+1D8h+var_160]; this
call _ZN6google8protobuf8compiler4java19SharedCodeGeneratorD2Ev; google::protobuf::compiler::java::SharedCodeGenerator::~SharedCodeGenerator()
add rsp, 1A8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_A6408
mov rbx, rax
jmp short loc_A6415
mov rbx, rax
jmp short loc_A6429
jmp short loc_A643A
jmp short loc_A643A
jmp short loc_A6408
jmp short loc_A6408
jmp short loc_A6408
mov rbx, rax
mov rdi, [rsp+arg_50]; void *
lea rax, [rsp+arg_60]
cmp rdi, rax
jz short loc_A640B
call __ZdlPv; operator delete(void *)
jmp short loc_A640B
mov rbx, rax
mov rax, [r13+0]
mov rdi, r13
call qword ptr [rax+8]
jmp short loc_A640B
loc_A6408:
mov rbx, rax
loc_A640B:
mov rdi, [rsp+arg_30]; void *
call _ZNSt8_Rb_treeIPKN6google8protobuf15FieldDescriptorES4_St9_IdentityIS4_ENS1_8compiler4java12_GLOBAL__N_122FieldDescriptorCompareESaIS4_EE8_M_eraseEPSt13_Rb_tree_nodeIS4_E; std::_Rb_tree<google::protobuf::FieldDescriptor const*,google::protobuf::FieldDescriptor const*,std::_Identity<google::protobuf::FieldDescriptor const*>,google::protobuf::compiler::java::`anonymous namespace'::FieldDescriptorCompare,std::allocator<google::protobuf::FieldDescriptor const*>>::_M_erase(std::_Rb_tree_node<google::protobuf::FieldDescriptor const*> *)
loc_A6415:
mov rdi, [rsp+arg_0]; void *
lea rax, [rsp+arg_10]
cmp rdi, rax
jz short loc_A6429
call __ZdlPv; operator delete(void *)
loc_A6429:
lea rdi, [rsp+arg_C8]; this
call _ZN6google8protobuf19FileDescriptorProtoD2Ev; google::protobuf::FileDescriptorProto::~FileDescriptorProto()
jmp short loc_A643D
jmp short $+2
loc_A643A:
mov rbx, rax
loc_A643D:
lea rdi, [rsp+arg_70]; this
call _ZN6google8protobuf8compiler4java19SharedCodeGeneratorD2Ev; google::protobuf::compiler::java::SharedCodeGenerator::~SharedCodeGenerator()
mov rdi, rbx
call __Unwind_Resume
|
void google::protobuf::compiler::java::FileGenerator::GenerateDescriptorInitializationCodeForImmutable(
const google::protobuf::FileDescriptor **this,
google::protobuf::io::Printer *a2)
{
const google::protobuf::FileDescriptor *v3; // rax
long long v4; // r15
long long v5; // rdi
int v6; // eax
const char *v7; // r9
long long v8; // r15
long long v9; // rdi
int v10; // eax
const char *v11; // r9
long long i; // r15
long long v13; // r13
int v14; // eax
const char *v15; // r9
google::protobuf::FileDescriptor *v16; // rdi
int v17; // ebp
const google::protobuf::FileDescriptor *v18; // r12
long long v19; // rax
int v20; // [rsp+0h] [rbp-1D8h] BYREF
int v21; // [rsp+4h] [rbp-1D4h] BYREF
void *v22; // [rsp+8h] [rbp-1D0h] BYREF
long long v23; // [rsp+10h] [rbp-1C8h]
char v24[16]; // [rsp+18h] [rbp-1C0h] BYREF
_BYTE v25[8]; // [rsp+28h] [rbp-1B0h] BYREF
int v26; // [rsp+30h] [rbp-1A8h] BYREF
void *v27; // [rsp+38h] [rbp-1A0h]
int *v28; // [rsp+40h] [rbp-198h]
int *v29; // [rsp+48h] [rbp-190h]
long long v30; // [rsp+50h] [rbp-188h]
void *v31; // [rsp+58h] [rbp-180h] BYREF
char v32; // [rsp+68h] [rbp-170h] BYREF
_BYTE v33[88]; // [rsp+78h] [rbp-160h] BYREF
_BYTE v34[264]; // [rsp+D0h] [rbp-108h] BYREF
google::protobuf::io::Printer::Print<char [6],char [1]>(a2, v20, (int)v22, v23, v24[0]);
google::protobuf::io::Printer::Indent(a2);
google::protobuf::compiler::java::SharedCodeGenerator::SharedCodeGenerator(
(google::protobuf::compiler::java::SharedCodeGenerator *)v33,
*this,
(const google::protobuf::compiler::java::Options *)(this + 18));
google::protobuf::compiler::java::SharedCodeGenerator::GenerateDescriptors(
(google::protobuf::compiler::java::SharedCodeGenerator *)v33,
a2);
v20 = 0;
v21 = 0;
v3 = *this;
if ( *((int *)*this + 13) > 0 )
{
v4 = 0LL;
do
{
v5 = *((_QWORD *)this[9] + v4);
v6 = (*(long long ( **)(long long, google::protobuf::io::Printer *))(*(_QWORD *)v5 + 24LL))(v5, a2);
v20 += v6;
google::protobuf::compiler::java::`anonymous namespace'::MaybeRestartJavaMethod(
a2,
(google::protobuf::io::Printer *)&v20,
&v21,
(int *)"_clinit_autosplit_dinit_$method_num$();\n",
"private static void _clinit_autosplit_dinit_$method_num$() {\n",
v7);
++v4;
v3 = *this;
}
while ( v4 < *((int *)*this + 13) );
}
if ( *((int *)v3 + 1) > 0 )
{
v8 = 0LL;
do
{
v9 = *((_QWORD *)this[12] + v8);
v10 = (*(long long ( **)(long long, google::protobuf::io::Printer *))(*(_QWORD *)v9 + 24LL))(v9, a2);
v20 += v10;
google::protobuf::compiler::java::`anonymous namespace'::MaybeRestartJavaMethod(
a2,
(google::protobuf::io::Printer *)&v20,
&v21,
(int *)"_clinit_autosplit_dinit_$method_num$();\n",
"private static void _clinit_autosplit_dinit_$method_num$() {\n",
v11);
++v8;
}
while ( v8 < *((int *)*this + 1) );
}
google::protobuf::FileDescriptorProto::FileDescriptorProto((google::protobuf::FileDescriptorProto *)v34, 0LL, 0);
google::protobuf::FileDescriptor::CopyTo(*this, (google::protobuf::FileDescriptorProto *)v34);
v22 = v24;
v23 = 0LL;
v24[0] = 0;
google::protobuf::MessageLite::SerializeToString(v34, &v22);
v26 = 0;
v27 = 0LL;
v28 = &v26;
v29 = &v26;
v30 = 0LL;
google::protobuf::compiler::java::`anonymous namespace'::CollectExtensions(v34, *((_QWORD *)*this + 3), v25, &v22);
if ( v30 )
{
google::protobuf::io::Printer::Print<>(
a2,
"com.google.protobuf.ExtensionRegistry registry =\n com.google.protobuf.ExtensionRegistry.newInstance();\n");
for ( i = (long long)v28; (int *)i != &v26; i = std::_Rb_tree_increment(i) )
{
v13 = (*(long long ( **)(const google::protobuf::FileDescriptor *, _QWORD))(*(_QWORD *)this[15] + 24LL))(
this[15],
*(_QWORD *)(i + 32));
v14 = (*(long long ( **)(long long, google::protobuf::io::Printer *))(*(_QWORD *)v13 + 32LL))(v13, a2);
v20 += v14;
google::protobuf::compiler::java::`anonymous namespace'::MaybeRestartJavaMethod(
a2,
(google::protobuf::io::Printer *)&v20,
&v21,
(int *)"_clinit_autosplit_dinit_$method_num$(registry);\n",
"private static void _clinit_autosplit_dinit_$method_num$(\n"
" com.google.protobuf.ExtensionRegistry registry) {\n",
v15);
(*(void ( **)(long long))(*(_QWORD *)v13 + 8LL))(v13);
}
google::protobuf::io::Printer::Print<>(
a2,
"com.google.protobuf.Descriptors.FileDescriptor\n .internalUpdateFileDescriptor(descriptor, registry);\n");
}
v16 = *this;
if ( *((int *)*this + 10) > 0 )
{
v17 = 0;
do
{
google::protobuf::FileDescriptor::dependency(v16, v17);
v18 = this[17];
v19 = google::protobuf::FileDescriptor::dependency(*this, v17);
google::protobuf::compiler::java::ClassNameResolver::GetClassName[abi:cxx11](&v31, v18, v19, 1LL);
google::protobuf::io::Printer::Print<char [11],std::string>(a2);
if ( v31 != &v32 )
operator delete(v31);
++v17;
v16 = *this;
}
while ( v17 < *((_DWORD *)*this + 10) );
}
google::protobuf::io::Printer::Outdent(a2);
google::protobuf::io::Printer::Print<>(a2, "}\n");
std::_Rb_tree<google::protobuf::FieldDescriptor const*,google::protobuf::FieldDescriptor const*,std::_Identity<google::protobuf::FieldDescriptor const*>,google::protobuf::compiler::java::`anonymous namespace'::FieldDescriptorCompare,std::allocator<google::protobuf::FieldDescriptor const*>>::_M_erase(v27);
if ( v22 != v24 )
operator delete(v22);
google::protobuf::FileDescriptorProto::~FileDescriptorProto((google::protobuf::FileDescriptorProto *)v34);
google::protobuf::compiler::java::SharedCodeGenerator::~SharedCodeGenerator((google::protobuf::compiler::java::SharedCodeGenerator *)v33);
}
|
GenerateDescriptorInitializationCodeForImmutable:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x1a8
MOV RBX,RSI
MOV R14,RDI
LEA RSI,[0x2ba586]
LEA RDX,[0x2b039b]
LEA RCX,[0x29a5a9]
MOV RDI,RBX
CALL 0x001a8e1c
MOV RDI,RBX
CALL 0x0026d126
MOV RSI,qword ptr [R14]
LEA RDX,[R14 + 0x90]
LEA R15,[RSP + 0x78]
MOV RDI,R15
CALL 0x001b8748
LAB_001a611d:
MOV RDI,R15
MOV RSI,RBX
CALL 0x001b8dc6
XOR ECX,ECX
MOV dword ptr [RSP],ECX
MOV dword ptr [RSP + 0x4],ECX
MOV RAX,qword ptr [R14]
CMP dword ptr [RAX + 0x34],ECX
JLE 0x001a6186
XOR R15D,R15D
LEA R12,[0x2ba679]
MOV R13,RSP
LEA RBP,[RSP + 0x4]
LAB_001a614b:
MOV RAX,qword ptr [R14 + 0x48]
MOV RDI,qword ptr [RAX + R15*0x8]
MOV RAX,qword ptr [RDI]
LAB_001a6156:
MOV RSI,RBX
CALL qword ptr [RAX + 0x18]
ADD dword ptr [RSP],EAX
MOV RDI,RBX
MOV RSI,R13
MOV RDX,RBP
LEA RCX,[0x2ba650]
MOV R8,R12
CALL 0x001a6ed1
INC R15
MOV RAX,qword ptr [R14]
MOVSXD RCX,dword ptr [RAX + 0x34]
CMP R15,RCX
JL 0x001a614b
LAB_001a6186:
CMP dword ptr [RAX + 0x4],0x0
JLE 0x001a61d9
XOR R15D,R15D
LEA R12,[0x2ba679]
MOV R13,RSP
LEA RBP,[RSP + 0x4]
LAB_001a619e:
MOV RAX,qword ptr [R14 + 0x60]
MOV RDI,qword ptr [RAX + R15*0x8]
MOV RAX,qword ptr [RDI]
LAB_001a61a9:
MOV RSI,RBX
CALL qword ptr [RAX + 0x18]
ADD dword ptr [RSP],EAX
MOV RDI,RBX
MOV RSI,R13
MOV RDX,RBP
LEA RCX,[0x2ba650]
MOV R8,R12
CALL 0x001a6ed1
INC R15
MOV RAX,qword ptr [R14]
MOVSXD RAX,dword ptr [RAX + 0x4]
CMP R15,RAX
JL 0x001a619e
LAB_001a61d9:
LEA RDI,[RSP + 0xd0]
XOR ESI,ESI
XOR EDX,EDX
CALL 0x00244fce
MOV RDI,qword ptr [R14]
LAB_001a61ed:
LEA RSI,[RSP + 0xd0]
CALL 0x0021eb58
LEA RAX,[RSP + 0x18]
MOV qword ptr [RAX + -0x10],RAX
MOV qword ptr [RAX + -0x8],0x0
MOV byte ptr [RAX],0x0
LAB_001a620e:
LEA RDI,[RSP + 0xd0]
LEA RSI,[RSP + 0x8]
CALL 0x001fdce0
LEA RCX,[RSP + 0x30]
MOV dword ptr [RCX],0x0
XOR EAX,EAX
MOV qword ptr [RCX + 0x8],RAX
MOV qword ptr [RCX + 0x10],RCX
MOV qword ptr [RCX + 0x18],RCX
MOV qword ptr [RCX + 0x20],RAX
MOV RAX,qword ptr [R14]
MOV RSI,qword ptr [RAX + 0x18]
LAB_001a6244:
LEA RDI,[RSP + 0xd0]
LEA RDX,[RSP + 0x28]
LEA RCX,[RSP + 0x8]
CALL 0x001a700b
CMP qword ptr [RSP + 0x50],0x0
JZ 0x001a62f7
LEA RSI,[0x2ba6b7]
MOV RDI,RBX
CALL 0x0012e40a
MOV R15,qword ptr [RSP + 0x40]
LEA RAX,[RSP + 0x30]
CMP R15,RAX
JZ 0x001a62e8
MOV RBP,RSP
LEA R12,[RSP + 0x4]
LAB_001a628d:
MOV RDI,qword ptr [R14 + 0x78]
MOV RSI,qword ptr [R15 + 0x20]
MOV RAX,qword ptr [RDI]
LAB_001a6298:
CALL qword ptr [RAX + 0x18]
MOV R13,RAX
MOV RAX,qword ptr [RAX]
LAB_001a62a1:
MOV RDI,R13
MOV RSI,RBX
CALL qword ptr [RAX + 0x20]
ADD dword ptr [RSP],EAX
MOV RDI,RBX
MOV RSI,RBP
MOV RDX,R12
LEA RCX,[0x2ba722]
LEA R8,[0x2ba753]
CALL 0x001a6ed1
LAB_001a62c9:
MOV RAX,qword ptr [R13]
MOV RDI,R13
CALL qword ptr [RAX + 0x8]
MOV RDI,R15
CALL 0x0011f570
MOV R15,RAX
LEA RAX,[RSP + 0x30]
CMP R15,RAX
JNZ 0x001a628d
LAB_001a62e8:
LEA RSI,[0x2ba7c4]
MOV RDI,RBX
CALL 0x0012e40a
LAB_001a62f7:
MOV RDI,qword ptr [R14]
CMP dword ptr [RDI + 0x28],0x0
JLE 0x001a636c
XOR EBP,EBP
LEA R15,[RSP + 0x58]
LEA R13,[0x2ba84c]
LAB_001a630e:
MOV ESI,EBP
CALL 0x0021ef00
MOV RDI,qword ptr [R14]
MOV R12,qword ptr [R14 + 0x88]
LAB_001a631f:
MOV ESI,EBP
CALL 0x0021ef00
MOV RDI,R15
MOV RSI,R12
MOV RDX,RAX
MOV ECX,0x1
CALL 0x00147900
LAB_001a6339:
MOV RDI,RBX
LEA RSI,[0x2ba82d]
MOV RDX,R13
MOV RCX,R15
CALL 0x00140d74
MOV RDI,qword ptr [RSP + 0x58]
LEA RAX,[RSP + 0x68]
CMP RDI,RAX
JZ 0x001a6362
CALL 0x0011f4a0
LAB_001a6362:
INC EBP
MOV RDI,qword ptr [R14]
CMP EBP,dword ptr [RDI + 0x28]
JL 0x001a630e
LAB_001a636c:
MOV RDI,RBX
CALL 0x0026d136
LEA RSI,[0x2e2117]
MOV RDI,RBX
CALL 0x0012e40a
LAB_001a6383:
MOV RDI,qword ptr [RSP + 0x38]
CALL 0x001a8b6e
MOV RDI,qword ptr [RSP + 0x8]
LEA RAX,[RSP + 0x18]
CMP RDI,RAX
JZ 0x001a63a1
CALL 0x0011f4a0
LAB_001a63a1:
LEA RDI,[RSP + 0xd0]
CALL 0x0024540a
LEA RDI,[RSP + 0x78]
CALL 0x001b87fc
ADD RSP,0x1a8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* google::protobuf::compiler::java::FileGenerator::GenerateDescriptorInitializationCodeForImmutable(google::protobuf::io::Printer*)
*/
void __thiscall
google::protobuf::compiler::java::FileGenerator::GenerateDescriptorInitializationCodeForImmutable
(FileGenerator *this,Printer *param_1)
{
bool bVar1;
int iVar2;
long *plVar3;
_Rb_tree_node_base *p_Var4;
FileDescriptor *pFVar5;
long lVar6;
long lVar7;
int local_1d8 [2];
int1 *local_1d0;
int8 local_1c8;
int1 local_1c0 [16];
set local_1b0 [8];
int4 local_1a8 [2];
_Rb_tree_node *local_1a0;
_Rb_tree_node_base *local_198;
_Rb_tree_node_base *local_190;
long local_188;
int1 *local_180 [2];
int1 local_170 [16];
SharedCodeGenerator local_160 [88];
FileDescriptorProto local_108 [216];
io::Printer::Print<char[6],char[1]>
(param_1,
"public static com.google.protobuf.Descriptors.FileDescriptor\n getDescriptor() {\n return descriptor;\n}\nprivate static $final$ com.google.protobuf.Descriptors.FileDescriptor\n descriptor;\nstatic {\n"
,"final","");
io::Printer::Indent(param_1);
SharedCodeGenerator::SharedCodeGenerator
(local_160,*(FileDescriptor **)this,(Options *)(this + 0x90));
/* try { // try from 001a611d to 001a6127 has its CatchHandler @ 001a63d8 */
SharedCodeGenerator::GenerateDescriptors(local_160,param_1);
local_1d8[0] = 0;
local_1d8[1] = 0;
lVar7 = *(long *)this;
if (0 < *(int *)(lVar7 + 0x34)) {
lVar6 = 0;
do {
plVar3 = *(long **)(*(long *)(this + 0x48) + lVar6 * 8);
/* try { // try from 001a6156 to 001a6176 has its CatchHandler @ 001a643a */
iVar2 = (**(code **)(*plVar3 + 0x18))(plVar3,param_1);
local_1d8[0] = local_1d8[0] + iVar2;
(anonymous_namespace)::MaybeRestartJavaMethod
(param_1,local_1d8,local_1d8 + 1,"_clinit_autosplit_dinit_$method_num$();\n",
"private static void _clinit_autosplit_dinit_$method_num$() {\n");
lVar6 = lVar6 + 1;
lVar7 = *(long *)this;
} while (lVar6 < *(int *)(lVar7 + 0x34));
}
if (0 < *(int *)(lVar7 + 4)) {
lVar7 = 0;
do {
plVar3 = *(long **)(*(long *)(this + 0x60) + lVar7 * 8);
/* try { // try from 001a61a9 to 001a61c9 has its CatchHandler @ 001a6438 */
iVar2 = (**(code **)(*plVar3 + 0x18))(plVar3,param_1);
local_1d8[0] = local_1d8[0] + iVar2;
(anonymous_namespace)::MaybeRestartJavaMethod
(param_1,local_1d8,local_1d8 + 1,"_clinit_autosplit_dinit_$method_num$();\n",
"private static void _clinit_autosplit_dinit_$method_num$() {\n");
lVar7 = lVar7 + 1;
} while (lVar7 < *(int *)(*(long *)this + 4));
}
/* try { // try from 001a61d9 to 001a61e9 has its CatchHandler @ 001a63d6 */
FileDescriptorProto::FileDescriptorProto(local_108,(Arena *)0x0,false);
/* try { // try from 001a61ed to 001a61f9 has its CatchHandler @ 001a63d1 */
FileDescriptor::CopyTo(*(FileDescriptor **)this,local_108);
local_1d0 = local_1c0;
local_1c8 = 0;
local_1c0[0] = 0;
/* try { // try from 001a620e to 001a621f has its CatchHandler @ 001a63cc */
MessageLite::SerializeToString((MessageLite *)local_108,(string *)&local_1d0);
local_198 = (_Rb_tree_node_base *)local_1a8;
local_1a8[0] = 0;
local_1a0 = (_Rb_tree_node *)0x0;
local_188 = 0;
/* try { // try from 001a6244 to 001a6275 has its CatchHandler @ 001a63da */
local_190 = local_198;
(anonymous_namespace)::CollectExtensions
(local_108,*(DescriptorPool **)(*(long *)this + 0x18),local_1b0,(string *)&local_1d0);
if (local_188 != 0) {
io::Printer::Print<>
(param_1,
"com.google.protobuf.ExtensionRegistry registry =\n com.google.protobuf.ExtensionRegistry.newInstance();\n"
);
if (local_198 != (_Rb_tree_node_base *)local_1a8) {
p_Var4 = local_198;
do {
/* try { // try from 001a6298 to 001a629a has its CatchHandler @ 001a63dc */
plVar3 = (long *)(**(code **)(**(long **)(this + 0x78) + 0x18))
(*(long **)(this + 0x78),*(int8 *)(p_Var4 + 0x20));
/* try { // try from 001a62a1 to 001a62c8 has its CatchHandler @ 001a63f9 */
iVar2 = (**(code **)(*plVar3 + 0x20))(plVar3,param_1);
local_1d8[0] = local_1d8[0] + iVar2;
(anonymous_namespace)::MaybeRestartJavaMethod
(param_1,local_1d8,local_1d8 + 1,
"_clinit_autosplit_dinit_$method_num$(registry);\n",
"private static void _clinit_autosplit_dinit_$method_num$(\n com.google.protobuf.ExtensionRegistry registry) {\n"
);
(**(code **)(*plVar3 + 8))(plVar3);
p_Var4 = (_Rb_tree_node_base *)std::_Rb_tree_increment(p_Var4);
} while (p_Var4 != (_Rb_tree_node_base *)local_1a8);
}
/* try { // try from 001a62e8 to 001a62f6 has its CatchHandler @ 001a63ca */
io::Printer::Print<>
(param_1,
"com.google.protobuf.Descriptors.FileDescriptor\n .internalUpdateFileDescriptor(descriptor, registry);\n"
);
}
pFVar5 = *(FileDescriptor **)this;
if (0 < *(int *)(pFVar5 + 0x28)) {
iVar2 = 0;
do {
/* try { // try from 001a630e to 001a6314 has its CatchHandler @ 001a63de */
FileDescriptor::dependency(pFVar5,iVar2);
pFVar5 = *(FileDescriptor **)(this + 0x88);
/* try { // try from 001a631f to 001a6338 has its CatchHandler @ 001a6408 */
bVar1 = (bool)FileDescriptor::dependency(*(FileDescriptor **)this,iVar2);
ClassNameResolver::GetClassName_abi_cxx11_((ClassNameResolver *)local_180,pFVar5,bVar1);
/* try { // try from 001a6339 to 001a634d has its CatchHandler @ 001a63e0 */
io::Printer::Print<char[11],std::__cxx11::string>
((char *)param_1,"$dependency$.getDescriptor();\n",(string *)"dependency");
if (local_180[0] != local_170) {
operator_delete(local_180[0]);
}
iVar2 = iVar2 + 1;
pFVar5 = *(FileDescriptor **)this;
} while (iVar2 < *(int *)(pFVar5 + 0x28));
}
/* try { // try from 001a636c to 001a6382 has its CatchHandler @ 001a63da */
io::Printer::Outdent(param_1);
io::Printer::Print<>(param_1,"}\n");
std::
_Rb_tree<google::protobuf::FieldDescriptor_const*,google::protobuf::FieldDescriptor_const*,std::_Identity<google::protobuf::FieldDescriptor_const*>,google::protobuf::compiler::java::(anonymous_namespace)::FieldDescriptorCompare,std::allocator<google::protobuf::FieldDescriptor_const*>>
::_M_erase(local_1a0);
if (local_1d0 != local_1c0) {
operator_delete(local_1d0);
}
FileDescriptorProto::~FileDescriptorProto(local_108);
SharedCodeGenerator::~SharedCodeGenerator(local_160);
return;
}
|
|
66,241 |
list_walk
|
eloqsql/mysys/list.c
|
int list_walk(LIST *list, list_walk_action action, uchar* argument)
{
int error=0;
while (list)
{
if ((error = (*action)(list->data,argument)))
return error;
list=list_rest(list);
}
return 0;
}
|
O3
|
c
|
list_walk:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
xorl %ebx, %ebx
testq %rdi, %rdi
je 0x96788
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movq 0x10(%r12), %rdi
movq %r14, %rsi
callq *%r15
testl %eax, %eax
jne 0x96786
movq 0x8(%r12), %r12
testq %r12, %r12
jne 0x9676b
jmp 0x96788
movl %eax, %ebx
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
|
list_walk:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
xor ebx, ebx
test rdi, rdi
jz short loc_96788
mov r14, rdx
mov r15, rsi
mov r12, rdi
loc_9676B:
mov rdi, [r12+10h]
mov rsi, r14
call r15
test eax, eax
jnz short loc_96786
mov r12, [r12+8]
test r12, r12
jnz short loc_9676B
jmp short loc_96788
loc_96786:
mov ebx, eax
loc_96788:
mov eax, ebx
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
|
long long list_walk(long long a1, long long ( *a2)(_QWORD, long long), long long a3)
{
unsigned int v3; // ebx
long long v5; // r12
unsigned int v6; // eax
v3 = 0;
if ( a1 )
{
v5 = a1;
while ( 1 )
{
v6 = a2(*(_QWORD *)(v5 + 16), a3);
if ( v6 )
break;
v5 = *(_QWORD *)(v5 + 8);
if ( !v5 )
return v3;
}
return v6;
}
return v3;
}
|
list_walk:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
XOR EBX,EBX
TEST RDI,RDI
JZ 0x00196788
MOV R14,RDX
MOV R15,RSI
MOV R12,RDI
LAB_0019676b:
MOV RDI,qword ptr [R12 + 0x10]
MOV RSI,R14
CALL R15
TEST EAX,EAX
JNZ 0x00196786
MOV R12,qword ptr [R12 + 0x8]
TEST R12,R12
JNZ 0x0019676b
JMP 0x00196788
LAB_00196786:
MOV EBX,EAX
LAB_00196788:
MOV EAX,EBX
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
int list_walk(long param_1,code *param_2,int8 param_3)
{
int iVar1;
if (param_1 != 0) {
do {
iVar1 = (*param_2)(*(int8 *)(param_1 + 0x10),param_3);
if (iVar1 != 0) {
return iVar1;
}
param_1 = *(long *)(param_1 + 8);
} while (param_1 != 0);
}
return 0;
}
|
|
66,242 |
psi_rwlock_wrlock
|
eloqsql/mysys/my_thr_init.c
|
ATTRIBUTE_COLD
int psi_rwlock_wrlock(mysql_rwlock_t *that, const char *file, uint line)
{
PSI_rwlock_locker_state state;
PSI_rwlock_locker *locker= PSI_RWLOCK_CALL(start_rwlock_wrwait)
(&state, that->m_psi, PSI_RWLOCK_WRITELOCK, file, line);
int result= rw_wrlock(&that->m_rwlock);
if (locker)
PSI_RWLOCK_CALL(end_rwlock_wrwait)(locker, result);
return result;
}
|
O3
|
c
|
psi_rwlock_wrlock:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
movl %edx, %r8d
movq %rsi, %rcx
movq %rdi, %r14
leaq 0x35ea4c(%rip), %r15 # 0x38f258
movq (%r15), %rax
movq 0x90(%rdi), %rsi
leaq -0x48(%rbp), %rdi
pushq $0x1
popq %rdx
callq *0x1b0(%rax)
movq %rax, %rbx
movq %r14, %rdi
callq 0xaaa61
movl %eax, %r14d
testq %rbx, %rbx
je 0x30845
movq (%r15), %rax
movq %rbx, %rdi
movl %r14d, %esi
callq *0x1b8(%rax)
movl %r14d, %eax
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
psi_rwlock_wrlock:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
sub rsp, 38h
mov r8d, edx
mov rcx, rsi
mov r14, rdi
lea r15, PSI_server
mov rax, [r15]
mov rsi, [rdi+90h]
lea rdi, [rbp+var_48]
push 1
pop rdx
call qword ptr [rax+1B0h]
mov rbx, rax
mov rdi, r14
call my_rw_wrlock
mov r14d, eax
test rbx, rbx
jz short loc_30845
mov rax, [r15]
mov rdi, rbx
mov esi, r14d
call qword ptr [rax+1B8h]
loc_30845:
mov eax, r14d
add rsp, 38h
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long psi_rwlock_wrlock(long long a1, long long a2, unsigned int a3)
{
long long v3; // rbx
unsigned int v4; // r14d
_BYTE v6[72]; // [rsp+8h] [rbp-48h] BYREF
v3 = ((long long ( *)(_BYTE *, _QWORD, long long, long long, _QWORD))PSI_server[54])(
v6,
*(_QWORD *)(a1 + 144),
1LL,
a2,
a3);
v4 = my_rw_wrlock(a1);
if ( v3 )
((void ( *)(long long, _QWORD))PSI_server[55])(v3, v4);
return v4;
}
|
psi_rwlock_wrlock:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x38
MOV R8D,EDX
MOV RCX,RSI
MOV R14,RDI
LEA R15,[0x48f258]
MOV RAX,qword ptr [R15]
MOV RSI,qword ptr [RDI + 0x90]
LEA RDI,[RBP + -0x48]
PUSH 0x1
POP RDX
CALL qword ptr [RAX + 0x1b0]
MOV RBX,RAX
MOV RDI,R14
CALL 0x001aaa61
MOV R14D,EAX
TEST RBX,RBX
JZ 0x00130845
MOV RAX,qword ptr [R15]
MOV RDI,RBX
MOV ESI,R14D
CALL qword ptr [RAX + 0x1b8]
LAB_00130845:
MOV EAX,R14D
ADD RSP,0x38
POP RBX
POP R14
POP R15
POP RBP
RET
|
int4 psi_rwlock_wrlock(long param_1,int8 param_2,int4 param_3)
{
int4 uVar1;
long lVar2;
int1 local_50 [48];
lVar2 = (**(code **)(PSI_server + 0x1b0))
(local_50,*(int8 *)(param_1 + 0x90),1,param_2,param_3);
uVar1 = my_rw_wrlock(param_1);
if (lVar2 != 0) {
(**(code **)(PSI_server + 0x1b8))(lVar2,uVar1);
}
return uVar1;
}
|
|
66,243 |
ma_alloc_buffer
|
eloqsql/storage/maria/ma_open.c
|
my_bool _ma_alloc_buffer(uchar **old_addr, size_t *old_size,
size_t new_size, myf flag)
{
if (*old_size < new_size)
{
uchar *addr;
if (!(addr= (uchar*) my_realloc(PSI_INSTRUMENT_ME, *old_addr, new_size,
MYF(MY_ALLOW_ZERO_PTR | flag))))
return 1;
*old_addr= addr;
*old_size= new_size;
}
return 0;
}
|
O0
|
c
|
ma_alloc_buffer:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
cmpq -0x20(%rbp), %rax
jae 0x64af5
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
orq $0x40, %rcx
xorl %edi, %edi
callq 0xf3000
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
jne 0x64adf
movb $0x1, -0x1(%rbp)
jmp 0x64af9
movq -0x30(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movq -0x20(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
_ma_alloc_buffer:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rax, [rbp+var_18]
mov rax, [rax]
cmp rax, [rbp+var_20]
jnb short loc_64AF5
mov rax, [rbp+var_10]
mov rsi, [rax]
mov rdx, [rbp+var_20]
mov rcx, [rbp+var_28]
or rcx, 40h
xor edi, edi
call my_realloc
mov [rbp+var_30], rax
cmp rax, 0
jnz short loc_64ADF
mov [rbp+var_1], 1
jmp short loc_64AF9
loc_64ADF:
mov rcx, [rbp+var_30]
mov rax, [rbp+var_10]
mov [rax], rcx
mov rcx, [rbp+var_20]
mov rax, [rbp+var_18]
mov [rax], rcx
loc_64AF5:
mov [rbp+var_1], 0
loc_64AF9:
mov al, [rbp+var_1]
add rsp, 30h
pop rbp
retn
|
char ma_alloc_buffer(long long *a1, unsigned long long *a2, unsigned long long a3, long long a4)
{
long long v5; // [rsp+0h] [rbp-30h]
if ( *a2 >= a3 )
return 0;
v5 = my_realloc(0LL, *a1, a3, a4 | 0x40);
if ( v5 )
{
*a1 = v5;
*a2 = a3;
return 0;
}
return 1;
}
|
_ma_alloc_buffer:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
CMP RAX,qword ptr [RBP + -0x20]
JNC 0x00164af5
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x28]
OR RCX,0x40
XOR EDI,EDI
CALL 0x001f3000
MOV qword ptr [RBP + -0x30],RAX
CMP RAX,0x0
JNZ 0x00164adf
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00164af9
LAB_00164adf:
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
LAB_00164af5:
MOV byte ptr [RBP + -0x1],0x0
LAB_00164af9:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
int1 _ma_alloc_buffer(long *param_1,ulong *param_2,ulong param_3,ulong param_4)
{
long lVar1;
if (*param_2 < param_3) {
lVar1 = my_realloc(0,*param_1,param_3,param_4 | 0x40);
if (lVar1 == 0) {
return 1;
}
*param_1 = lVar1;
*param_2 = param_3;
}
return 0;
}
|
|
66,244 |
ma_alloc_buffer
|
eloqsql/storage/maria/ma_open.c
|
my_bool _ma_alloc_buffer(uchar **old_addr, size_t *old_size,
size_t new_size, myf flag)
{
if (*old_size < new_size)
{
uchar *addr;
if (!(addr= (uchar*) my_realloc(PSI_INSTRUMENT_ME, *old_addr, new_size,
MYF(MY_ALLOW_ZERO_PTR | flag))))
return 1;
*old_addr= addr;
*old_size= new_size;
}
return 0;
}
|
O3
|
c
|
ma_alloc_buffer:
cmpq %rdx, (%rsi)
jae 0x54810
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq (%rdi), %rsi
orq $0x40, %rcx
xorl %edi, %edi
callq 0x9f804
testq %rax, %rax
je 0x54813
movq %rax, (%r15)
movq %rbx, (%r14)
xorl %eax, %eax
jmp 0x54815
xorl %eax, %eax
retq
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
_ma_alloc_buffer:
cmp [rsi], rdx
jnb short loc_54810
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rdx
mov r14, rsi
mov r15, rdi
mov rsi, [rdi]
or rcx, 40h
xor edi, edi
call my_realloc
test rax, rax
jz short loc_54813
mov [r15], rax
mov [r14], rbx
xor eax, eax
jmp short loc_54815
loc_54810:
xor eax, eax
retn
loc_54813:
mov al, 1
loc_54815:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long ma_alloc_buffer(
long long *a1,
unsigned long long *a2,
unsigned long long a3,
long long a4,
long long a5,
long long a6)
{
long long v7; // rax
if ( *a2 >= a3 )
return 0LL;
v7 = my_realloc(0LL, *a1, a3, a4 | 0x40, a5, a6);
if ( !v7 )
return 1LL;
*a1 = v7;
*a2 = a3;
return 0LL;
}
|
_ma_alloc_buffer:
CMP qword ptr [RSI],RDX
JNC 0x00154810
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV R14,RSI
MOV R15,RDI
MOV RSI,qword ptr [RDI]
OR RCX,0x40
XOR EDI,EDI
CALL 0x0019f804
TEST RAX,RAX
JZ 0x00154813
MOV qword ptr [R15],RAX
MOV qword ptr [R14],RBX
XOR EAX,EAX
JMP 0x00154815
LAB_00154810:
XOR EAX,EAX
RET
LAB_00154813:
MOV AL,0x1
LAB_00154815:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
bool _ma_alloc_buffer(long *param_1,ulong *param_2,ulong param_3,ulong param_4)
{
long lVar1;
if (param_3 <= *param_2) {
return false;
}
lVar1 = my_realloc(0,*param_1,param_3,param_4 | 0x40);
if (lVar1 != 0) {
*param_1 = lVar1;
*param_2 = param_3;
}
return lVar1 == 0;
}
|
|
66,245 |
_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 (&) [9], 0>(char const (&) [9])
|
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 (&) [9], 0>(char const (&) [9]):
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
movq 0x28(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0xb3740
movq %rax, 0x30(%rsp)
movq 0x10(%rsp), %rdi
callq 0xb3770
movq %rax, 0x18(%rsp)
leaq 0x30(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0xb37a0
testb $0x1, %al
jne 0x16bbe6
jmp 0x16bc26
movq 0x10(%rsp), %rax
addq $0x18, %rax
movq %rax, 0x8(%rsp)
leaq 0x30(%rsp), %rdi
callq 0xb4910
movq 0x8(%rsp), %rdi
movq %rax, %rsi
movq 0x20(%rsp), %rdx
callq 0x16bc40
testb $0x1, %al
jne 0x16bc16
jmp 0x16bc18
jmp 0x16bc35
jmp 0x16bc1a
leaq 0x30(%rsp), %rdi
callq 0xb3820
jmp 0x16bbc2
movq 0x10(%rsp), %rdi
callq 0xb3770
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_EEE4findIRA9_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_16BBC2:
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_16BBE6
jmp short loc_16BC26
loc_16BBE6:
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_traitsIcESaIcEEERA9_KcEEDTeqclsr3stdE7forwardIT_Efp_Eclsr3stdE7forwardIT0_Efp0_EEOSD_OSE_
test al, 1
jnz short loc_16BC16
jmp short loc_16BC18
loc_16BC16:
jmp short loc_16BC35
loc_16BC18:
jmp short $+2
loc_16BC1A:
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_16BBC2
loc_16BC26:
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_16BC35:
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_EEE4findIRA9_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(&)[9]>(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);
}
| |||
66,246 |
_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 (&) [9], 0>(char const (&) [9])
|
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 (&) [9], 0>(char const (&) [9]):
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r15
movq (%rdi), %r14
movq 0x8(%r15), %rax
cmpq %rax, %r14
je 0x7e913
movq %r14, %rdi
movq %rbx, %rsi
callq 0x391b2
testb %al, %al
jne 0x7e910
addq $0x30, %r14
jmp 0x7e8f2
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_EEE4findIRA13_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_7E8F2:
mov rax, [r15+8]
cmp r14, rax
jz short loc_7E913
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_7E910
add r14, 30h ; '0'
jmp short loc_7E8F2
loc_7E910:
mov rax, r14
loc_7E913:
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_EEE4findIRA13_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_EEE4findIRA13_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_0017e8f2:
MOV RAX,qword ptr [R15 + 0x8]
CMP R14,RAX
JZ 0x0017e913
MOV RDI,R14
MOV RSI,RBX
CALL 0x001391b2
TEST AL,AL
JNZ 0x0017e910
ADD R14,0x30
JMP 0x0017e8f2
LAB_0017e910:
MOV RAX,R14
LAB_0017e913:
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_EEE4findIRA13_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;
}
|
|
66,247 |
minja::Value::insert(unsigned long, minja::Value const&)
|
monkey531[P]llama/common/minja.hpp
|
void insert(size_t index, const Value& v) {
if (!array_)
throw std::runtime_error("Value is not an array: " + dump());
array_->insert(array_->begin() + index, v);
}
|
O2
|
cpp
|
minja::Value::insert(unsigned long, minja::Value const&):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %r14
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0x6d9ec
imulq $0x50, %rsi, %rsi
addq (%rdi), %rsi
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x6ea80
pushq $0x10
popq %rdi
callq 0x23460
movq %rax, %rbx
movq %rsp, %rdi
pushq $-0x1
popq %rdx
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x63a00
leaq 0x46f42(%rip), %rsi # 0xb4950
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0x59126
movb $0x1, %bpl
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x23e60
xorl %ebp, %ebp
movq 0x905bc(%rip), %rsi # 0xfdff0
movq 0x9051d(%rip), %rdx # 0xfdf58
movq %rbx, %rdi
callq 0x23f30
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x24208
jmp 0x6da58
movq %rax, %r14
movb $0x1, %bpl
movq %rsp, %rdi
callq 0x24208
testb %bpl, %bpl
jne 0x6da6a
jmp 0x6da72
movq %rax, %r14
movq %rbx, %rdi
callq 0x236a0
movq %r14, %rdi
callq 0x23fc0
|
_ZN5minja5Value6insertEmRKS0_:
push rbp
push r14
push rbx
sub rsp, 40h
mov r14, rdi
mov rdi, [rdi+10h]
test rdi, rdi
jz short loc_6D9EC
imul rsi, 50h ; 'P'
add rsi, [rdi]
add rsp, 40h
pop rbx
pop r14
pop rbp
jmp _ZNSt6vectorIN5minja5ValueESaIS1_EE6insertEN9__gnu_cxx17__normal_iteratorIPKS1_S3_EERS6_; std::vector<minja::Value>::insert(__gnu_cxx::__normal_iterator<minja::Value const*,std::vector<minja::Value>>,minja::Value const&)
loc_6D9EC:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, rsp
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov rsi, r14
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aValueIsNotAnAr; "Value is not an array: "
lea rdi, [rsp+58h+var_38]
mov rdx, rsp
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+58h+var_38]
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+58h+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_6DA58
mov r14, rax
mov bpl, 1
loc_6DA58:
mov rdi, rsp; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_6DA6A
jmp short loc_6DA72
mov r14, rax
loc_6DA6A:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_6DA72:
mov rdi, r14
call __Unwind_Resume
|
long long minja::Value::insert(minja::Value *this, long long a2, const minja::Value *a3)
{
_QWORD *v4; // rdi
void *exception; // rbx
_BYTE v7[32]; // [rsp+0h] [rbp-58h] BYREF
_BYTE v8[56]; // [rsp+20h] [rbp-38h] BYREF
v4 = (_QWORD *)*((_QWORD *)this + 2);
if ( !v4 )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v7, (long long)this, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v8, (long long)"Value is not an array: ", (long long)v7);
std::runtime_error::runtime_error(exception, v8);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
return std::vector<minja::Value>::insert(v4, *v4 + 80 * a2, a3);
}
|
insert:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x40
MOV R14,RDI
MOV RDI,qword ptr [RDI + 0x10]
TEST RDI,RDI
JZ 0x0016d9ec
IMUL RSI,RSI,0x50
ADD RSI,qword ptr [RDI]
ADD RSP,0x40
POP RBX
POP R14
POP RBP
JMP 0x0016ea80
LAB_0016d9ec:
PUSH 0x10
POP RDI
CALL 0x00123460
MOV RBX,RAX
LAB_0016d9f7:
MOV RDI,RSP
PUSH -0x1
POP RDX
MOV RSI,R14
XOR ECX,ECX
CALL 0x00163a00
LAB_0016da07:
LEA RSI,[0x1b4950]
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
CALL 0x00159126
MOV BPL,0x1
LAB_0016da1e:
LEA RSI,[RSP + 0x20]
MOV RDI,RBX
CALL 0x00123e60
XOR EBP,EBP
MOV RSI,qword ptr [0x001fdff0]
MOV RDX,qword ptr [0x001fdf58]
MOV RDI,RBX
CALL 0x00123f30
|
/* minja::Value::insert(unsigned long, minja::Value const&) */
void minja::Value::insert(ulong param_1,Value *param_2)
{
vector<minja::Value,std::allocator<minja::Value>> *pvVar1;
runtime_error *this;
int1 auStack_58 [32];
string local_38 [32];
pvVar1 = *(vector<minja::Value,std::allocator<minja::Value>> **)(param_1 + 0x10);
if (pvVar1 != (vector<minja::Value,std::allocator<minja::Value>> *)0x0) {
std::vector<minja::Value,std::allocator<minja::Value>>::insert
(pvVar1,(long)param_2 * 0x50 + *(long *)pvVar1);
return;
}
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0016d9f7 to 0016da06 has its CatchHandler @ 0016da67 */
dump_abi_cxx11_((int)auStack_58,SUB81(param_1,0));
/* try { // try from 0016da07 to 0016da1a has its CatchHandler @ 0016da52 */
std::operator+((char *)local_38,(string *)"Value is not an array: ");
/* try { // try from 0016da1e to 0016da42 has its CatchHandler @ 0016da43 */
std::runtime_error::runtime_error(this,local_38);
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_001fdff0,PTR__runtime_error_001fdf58);
}
|
|
66,248 |
testing::internal::XmlUnitTestResultPrinter::OnTestIterationEnd(testing::UnitTest const&, int)
|
AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest.cc
|
void XmlUnitTestResultPrinter::OnTestIterationEnd(const UnitTest& unit_test,
int /*iteration*/) {
FILE* xmlout = OpenFileForWriting(output_file_);
std::stringstream stream;
PrintXmlUnitTest(&stream, unit_test);
fprintf(xmlout, "%s", StringStreamToString(&stream).c_str());
fclose(xmlout);
}
|
O0
|
cpp
|
testing::internal::XmlUnitTestResultPrinter::OnTestIterationEnd(testing::UnitTest const&, int):
subq $0x1f8, %rsp # imm = 0x1F8
movq %rdi, 0x1f0(%rsp)
movq %rsi, 0x1e8(%rsp)
movl %edx, 0x1e4(%rsp)
movq 0x1f0(%rsp), %rdi
addq $0x8, %rdi
callq 0x2d930
movq %rax, 0x1d8(%rsp)
leaq 0x50(%rsp), %rdi
callq 0xb300
xorl %eax, %eax
leaq 0x50(%rsp), %rcx
cmpq $0x0, %rcx
movq %rax, 0x18(%rsp)
je 0x2d881
leaq 0x50(%rsp), %rax
addq $0x10, %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rdi
movq 0x1e8(%rsp), %rsi
callq 0x2db20
jmp 0x2d895
movq 0x1d8(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0x20(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x23260
jmp 0x2d8b3
leaq 0x20(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0xf200
movq 0x10(%rsp), %rdi
movq %rax, %rdx
leaq 0x48126(%rip), %rsi # 0x759f7
xorl %eax, %eax
callq 0xb780
movq 0x8(%rsp), %rdi
callq 0xec60
movq 0x1d8(%rsp), %rdi
callq 0xb470
jmp 0x2d8f1
leaq 0x50(%rsp), %rdi
callq 0xb360
addq $0x1f8, %rsp # imm = 0x1F8
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x48(%rsp)
movl %eax, 0x44(%rsp)
leaq 0x50(%rsp), %rdi
callq 0xb360
movq 0x48(%rsp), %rdi
callq 0xb910
nopw %cs:(%rax,%rax)
|
_ZN7testing8internal24XmlUnitTestResultPrinter18OnTestIterationEndERKNS_8UnitTestEi:
sub rsp, 1F8h
mov [rsp+1F8h+var_8], rdi
mov [rsp+1F8h+var_10], rsi
mov [rsp+1F8h+var_14], edx
mov rdi, [rsp+1F8h+var_8]
add rdi, 8
call _ZN7testing8internalL18OpenFileForWritingERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::OpenFileForWriting(std::string const&)
mov [rsp+1F8h+var_20], rax
lea rdi, [rsp+1F8h+var_1A8]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(void)
xor eax, eax
lea rcx, [rsp+1F8h+var_1A8]
cmp rcx, 0
mov [rsp+1F8h+var_1E0], rax
jz short loc_2D881
lea rax, [rsp+1F8h+var_1A8]
add rax, 10h
mov [rsp+1F8h+var_1E0], rax; int
loc_2D881:
mov rdi, [rsp+1F8h+var_1E0]; this
mov rsi, [rsp+1F8h+var_10]; std::ostream *
call _ZN7testing8internal24XmlUnitTestResultPrinter16PrintXmlUnitTestEPSoRKNS_8UnitTestE; testing::internal::XmlUnitTestResultPrinter::PrintXmlUnitTest(std::ostream *,testing::UnitTest const&)
jmp short $+2
loc_2D895:
mov rax, [rsp+1F8h+var_20]
mov [rsp+1F8h+var_1E8], rax; void *
lea rdi, [rsp+1F8h+var_1D8]; int
lea rsi, [rsp+1F8h+var_1A8]; int
call _ZN7testing8internal20StringStreamToStringEPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE; testing::internal::StringStreamToString(std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>> *)
jmp short $+2
loc_2D8B3:
lea rdi, [rsp+1F8h+var_1D8]
mov [rsp+1F8h+var_1F0], rdi
call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void)
mov rdi, [rsp+1F8h+var_1E8]
mov rdx, rax
lea rsi, aS_2+2; "%s"
xor eax, eax
call _fprintf
mov rdi, [rsp+1F8h+var_1F0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, [rsp+1F8h+var_20]
call _fclose
jmp short $+2
loc_2D8F1:
lea rdi, [rsp+1F8h+var_1A8]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
add rsp, 1F8h
retn
mov rcx, rax
mov eax, edx
mov [rsp+arg_40], rcx
mov [rsp+arg_3C], eax
lea rdi, [rsp+arg_48]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
mov rdi, [rsp+arg_40]
call __Unwind_Resume
|
long long testing::internal::XmlUnitTestResultPrinter::OnTestIterationEnd(
testing::internal::XmlUnitTestResultPrinter *this,
const testing::UnitTest *a2,
int a3,
int a4,
int a5,
int a6)
{
const testing::UnitTest *v6; // rdx
const char *v7; // rax
int v9; // [rsp+0h] [rbp-1F8h] BYREF
void *v10; // [rsp+8h] [rbp-1F0h]
void *v11; // [rsp+10h] [rbp-1E8h]
testing::internal::XmlUnitTestResultPrinter *v12; // [rsp+18h] [rbp-1E0h]
int v13[4]; // [rsp+20h] [rbp-1D8h] BYREF
char v14; // [rsp+30h] [rbp-1C8h]
int v15; // [rsp+38h] [rbp-1C0h]
int v16; // [rsp+40h] [rbp-1B8h]
int v17; // [rsp+48h] [rbp-1B0h]
int v18; // [rsp+50h] [rbp-1A8h] BYREF
long long v19; // [rsp+58h] [rbp-1A0h]
char v20; // [rsp+60h] [rbp-198h] BYREF
int v21; // [rsp+68h] [rbp-190h]
int v22; // [rsp+70h] [rbp-188h]
int v23; // [rsp+78h] [rbp-180h]
char v24; // [rsp+80h] [rbp-178h]
void *v25; // [rsp+1D8h] [rbp-20h]
int v26; // [rsp+1E4h] [rbp-14h]
std::ostream *v27; // [rsp+1E8h] [rbp-10h]
testing::internal::XmlUnitTestResultPrinter *v28; // [rsp+1F0h] [rbp-8h]
v28 = this;
v27 = a2;
v26 = a3;
v25 = (void *)testing::internal::OpenFileForWriting(
(int)this + 8,
(_DWORD)a2,
a3,
a4,
a5,
a6,
v9,
(_DWORD)v10,
(_DWORD)v11,
(_DWORD)v12,
v13[0],
v13[2],
v14,
v15,
v16,
v17,
v18,
v19,
v20,
v21,
v22,
v23,
v24);
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(&v18);
v12 = 0LL;
if ( &v9 != (int *)-80LL )
v12 = (testing::internal::XmlUnitTestResultPrinter *)&v20;
testing::internal::XmlUnitTestResultPrinter::PrintXmlUnitTest(v12, v27, v6);
v11 = v25;
testing::internal::StringStreamToString(v13, (long long)&v18);
v10 = v13;
v7 = (const char *)std::string::c_str((long long)v13);
fprintf(v11, "%s", v7);
std::string::~string(v10);
fclose(v25);
return std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream(&v18);
}
|
OnTestIterationEnd:
SUB RSP,0x1f8
MOV qword ptr [RSP + 0x1f0],RDI
MOV qword ptr [RSP + 0x1e8],RSI
MOV dword ptr [RSP + 0x1e4],EDX
MOV RDI,qword ptr [RSP + 0x1f0]
ADD RDI,0x8
CALL 0x0012d930
MOV qword ptr [RSP + 0x1d8],RAX
LEA RDI,[RSP + 0x50]
CALL 0x0010b300
XOR EAX,EAX
LEA RCX,[RSP + 0x50]
CMP RCX,0x0
MOV qword ptr [RSP + 0x18],RAX
JZ 0x0012d881
LEA RAX,[RSP + 0x50]
ADD RAX,0x10
MOV qword ptr [RSP + 0x18],RAX
LAB_0012d881:
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RSP + 0x1e8]
LAB_0012d88e:
CALL 0x0012db20
JMP 0x0012d895
LAB_0012d895:
MOV RAX,qword ptr [RSP + 0x1d8]
MOV qword ptr [RSP + 0x10],RAX
LEA RDI,[RSP + 0x20]
LEA RSI,[RSP + 0x50]
CALL 0x00123260
JMP 0x0012d8b3
LAB_0012d8b3:
LEA RDI,[RSP + 0x20]
MOV qword ptr [RSP + 0x8],RDI
CALL 0x0010f200
MOV RDI,qword ptr [RSP + 0x10]
MOV RDX,RAX
LEA RSI,[0x1759f7]
XOR EAX,EAX
CALL 0x0010b780
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x0010ec60
MOV RDI,qword ptr [RSP + 0x1d8]
CALL 0x0010b470
LAB_0012d8ef:
JMP 0x0012d8f1
LAB_0012d8f1:
LEA RDI,[RSP + 0x50]
CALL 0x0010b360
ADD RSP,0x1f8
RET
|
/* testing::internal::XmlUnitTestResultPrinter::OnTestIterationEnd(testing::UnitTest const&, int) */
void __thiscall
testing::internal::XmlUnitTestResultPrinter::OnTestIterationEnd
(XmlUnitTestResultPrinter *this,UnitTest *param_1,int param_2)
{
FILE *__stream;
int8 uVar1;
ostream *local_1e0;
internal local_1d8 [48];
stringstream local_1a8 [16];
ostream aoStack_198 [376];
FILE *local_20;
int local_14;
UnitTest *local_10;
XmlUnitTestResultPrinter *local_8;
local_14 = param_2;
local_10 = param_1;
local_8 = this;
local_20 = (FILE *)OpenFileForWriting((string *)(this + 8));
std::__cxx11::stringstream::stringstream(local_1a8);
local_1e0 = (ostream *)0x0;
if (&stack0x00000000 != (int1 *)0x1a8) {
local_1e0 = aoStack_198;
}
/* try { // try from 0012d88e to 0012d8ee has its CatchHandler @ 0012d903 */
PrintXmlUnitTest(local_1e0,local_10);
__stream = local_20;
StringStreamToString(local_1d8,local_1a8);
uVar1 = std::__cxx11::string::c_str((string *)local_1d8);
fprintf(__stream,"%s",uVar1);
std::__cxx11::string::~string((string *)local_1d8);
fclose(local_20);
std::__cxx11::stringstream::~stringstream(local_1a8);
return;
}
|
|
66,249 |
escape_quotes_for_mysql
|
eloqsql/mysys/charset.c
|
size_t escape_quotes_for_mysql(CHARSET_INFO *charset_info,
char *to, size_t to_length,
const char *from, size_t length,
my_bool *overflow)
{
const char *to_start= to;
const char *end, *to_end=to_start + (to_length ? to_length-1 : 2*length);
#ifdef USE_MB
my_bool use_mb_flag= my_ci_use_mb(charset_info);
#endif
*overflow= FALSE;
for (end= from + length; from < end; from++)
{
#ifdef USE_MB
int tmp_length;
if (use_mb_flag && (tmp_length= my_ismbchar(charset_info, from, end)))
{
if (to + tmp_length > to_end)
{
*overflow= TRUE;
break;
}
while (tmp_length--)
*to++= *from++;
from--;
continue;
}
/*
We don't have the same issue here with a non-multi-byte character being
turned into a multi-byte character by the addition of an escaping
character, because we are only escaping the ' character with itself.
*/
#endif
if (*from == '\'')
{
if (to + 2 > to_end)
{
*overflow= TRUE;
break;
}
*to++= '\'';
*to++= '\'';
}
else
{
if (to + 1 > to_end)
{
*overflow= TRUE;
break;
}
*to++= *from;
}
}
*to= 0;
return (size_t) (to - to_start);
}
|
O3
|
c
|
escape_quotes_for_mysql:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r12
leaq (%r8,%r8), %rax
subq $0x1, %r12
cmovbq %rax, %r12
movq %rdi, -0x40(%rbp)
movl 0x9c(%rdi), %r13d
movq %r9, -0x38(%rbp)
movb $0x0, (%r9)
movq %rsi, -0x30(%rbp)
movq %rsi, %rax
testq %r8, %r8
jle 0x29113
movq %r8, %r15
movq %rcx, %r14
movq -0x30(%rbp), %rbx
addq %rbx, %r12
addq %rcx, %r15
cmpl $0x2, %r13d
jb 0x290ae
movq -0x40(%rbp), %rdi
movq 0xb8(%rdi), %rax
movq %r14, %rsi
movq %r15, %rdx
callq *0xc0(%rax)
cmpl $0x2, %eax
jge 0x290d3
movb (%r14), %cl
cmpb $0x27, %cl
jne 0x290c6
leaq 0x2(%rbx), %rax
cmpq %r12, %rax
ja 0x29109
movw $0x2727, (%rbx) # imm = 0x2727
jmp 0x290fc
leaq 0x1(%rbx), %rax
cmpq %r12, %rax
ja 0x29109
movb %cl, (%rbx)
jmp 0x290fc
movl %eax, %ecx
movl %eax, %eax
addq %rbx, %rax
cmpq %r12, %rax
ja 0x29109
decq %r14
movq %r14, %rdx
leaq 0x1(%rdx), %r14
leaq 0x1(%rbx), %rax
movb 0x1(%rdx), %dl
movb %dl, (%rbx)
movq %r14, %rdx
movq %rax, %rbx
decl %ecx
jne 0x290e5
incq %r14
movq %rax, %rbx
cmpq %r15, %r14
jb 0x2908c
jmp 0x29113
movq -0x38(%rbp), %rax
movb $0x1, (%rax)
movq %rbx, %rax
movb $0x0, (%rax)
subq -0x30(%rbp), %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
escape_quotes_for_mysql:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r12, rdx
lea rax, [r8+r8]
sub r12, 1
cmovb r12, rax
mov [rbp+var_40], rdi
mov r13d, [rdi+9Ch]
mov [rbp+var_38], r9
mov byte ptr [r9], 0
mov [rbp+var_30], rsi
mov rax, rsi
test r8, r8
jle loc_29113
mov r15, r8
mov r14, rcx
mov rbx, [rbp+var_30]
add r12, rbx
add r15, rcx
loc_2908C:
cmp r13d, 2
jb short loc_290AE
mov rdi, [rbp+var_40]
mov rax, [rdi+0B8h]
mov rsi, r14
mov rdx, r15
call qword ptr [rax+0C0h]
cmp eax, 2
jge short loc_290D3
loc_290AE:
mov cl, [r14]
cmp cl, 27h ; '''
jnz short loc_290C6
lea rax, [rbx+2]
cmp rax, r12
ja short loc_29109
mov word ptr [rbx], 2727h
jmp short loc_290FC
loc_290C6:
lea rax, [rbx+1]
cmp rax, r12
ja short loc_29109
mov [rbx], cl
jmp short loc_290FC
loc_290D3:
mov ecx, eax
mov eax, eax
add rax, rbx
cmp rax, r12
ja short loc_29109
dec r14
mov rdx, r14
loc_290E5:
lea r14, [rdx+1]
lea rax, [rbx+1]
mov dl, [rdx+1]
mov [rbx], dl
mov rdx, r14
mov rbx, rax
dec ecx
jnz short loc_290E5
loc_290FC:
inc r14
mov rbx, rax
cmp r14, r15
jb short loc_2908C
jmp short loc_29113
loc_29109:
mov rax, [rbp+var_38]
mov byte ptr [rax], 1
mov rax, rbx
loc_29113:
mov byte ptr [rax], 0
sub rax, [rbp+var_30]
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
_BYTE * escape_quotes_for_mysql(long long a1, _BYTE *a2, long long a3, _BYTE *a4, long long a5, _BYTE *a6)
{
long long v6; // r12
unsigned int v7; // r13d
_BYTE *v8; // rax
_BYTE *v9; // r14
_WORD *v10; // rbx
unsigned long long v11; // r12
unsigned long long v12; // r15
int v13; // eax
int v14; // ecx
_BYTE *v15; // rdx
v6 = a3 - 1;
if ( !a3 )
v6 = 2 * a5;
v7 = *(_DWORD *)(a1 + 156);
*a6 = 0;
v8 = a2;
if ( a5 > 0 )
{
v9 = a4;
v10 = a2;
v11 = (unsigned long long)&a2[v6];
v12 = (unsigned long long)&a4[a5];
do
{
if ( v7 >= 2
&& (v13 = (*(long long ( **)(long long, _BYTE *, unsigned long long))(*(_QWORD *)(a1 + 184) + 192LL))(
a1,
v9,
v12),
v13 >= 2) )
{
v14 = v13;
if ( (unsigned long long)v10 + (unsigned int)v13 > v11 )
{
LABEL_17:
*a6 = 1;
v8 = v10;
break;
}
v15 = v9 - 1;
do
{
v9 = v15 + 1;
v8 = (char *)v10 + 1;
*(_BYTE *)v10 = *++v15;
v10 = (_WORD *)((char *)v10 + 1);
--v14;
}
while ( v14 );
}
else if ( *v9 == 39 )
{
v8 = v10 + 1;
if ( (unsigned long long)(v10 + 1) > v11 )
goto LABEL_17;
*v10 = 10023;
}
else
{
v8 = (char *)v10 + 1;
if ( (unsigned long long)v10 + 1 > v11 )
goto LABEL_17;
*(_BYTE *)v10 = *v9;
}
++v9;
v10 = v8;
}
while ( (unsigned long long)v9 < v12 );
}
*v8 = 0;
return (_BYTE *)(v8 - a2);
}
|
escape_quotes_for_mysql:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R12,RDX
LEA RAX,[R8 + R8*0x1]
SUB R12,0x1
CMOVC R12,RAX
MOV qword ptr [RBP + -0x40],RDI
MOV R13D,dword ptr [RDI + 0x9c]
MOV qword ptr [RBP + -0x38],R9
MOV byte ptr [R9],0x0
MOV qword ptr [RBP + -0x30],RSI
MOV RAX,RSI
TEST R8,R8
JLE 0x00129113
MOV R15,R8
MOV R14,RCX
MOV RBX,qword ptr [RBP + -0x30]
ADD R12,RBX
ADD R15,RCX
LAB_0012908c:
CMP R13D,0x2
JC 0x001290ae
MOV RDI,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RDI + 0xb8]
MOV RSI,R14
MOV RDX,R15
CALL qword ptr [RAX + 0xc0]
CMP EAX,0x2
JGE 0x001290d3
LAB_001290ae:
MOV CL,byte ptr [R14]
CMP CL,0x27
JNZ 0x001290c6
LEA RAX,[RBX + 0x2]
CMP RAX,R12
JA 0x00129109
MOV word ptr [RBX],0x2727
JMP 0x001290fc
LAB_001290c6:
LEA RAX,[RBX + 0x1]
CMP RAX,R12
JA 0x00129109
MOV byte ptr [RBX],CL
JMP 0x001290fc
LAB_001290d3:
MOV ECX,EAX
MOV EAX,EAX
ADD RAX,RBX
CMP RAX,R12
JA 0x00129109
DEC R14
MOV RDX,R14
LAB_001290e5:
LEA R14,[RDX + 0x1]
LEA RAX,[RBX + 0x1]
MOV DL,byte ptr [RDX + 0x1]
MOV byte ptr [RBX],DL
MOV RDX,R14
MOV RBX,RAX
DEC ECX
JNZ 0x001290e5
LAB_001290fc:
INC R14
MOV RBX,RAX
CMP R14,R15
JC 0x0012908c
JMP 0x00129113
LAB_00129109:
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX],0x1
MOV RAX,RBX
LAB_00129113:
MOV byte ptr [RAX],0x0
SUB RAX,qword ptr [RBP + -0x30]
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long escape_quotes_for_mysql
(long param_1,char *param_2,long param_3,char *param_4,long param_5,
int1 *param_6)
{
uint uVar1;
uint uVar2;
char *pcVar3;
char *pcVar4;
char *pcVar5;
long lVar6;
char *pcVar7;
char *pcVar8;
lVar6 = param_3 + -1;
if (param_3 == 0) {
lVar6 = param_5 * 2;
}
uVar1 = *(uint *)(param_1 + 0x9c);
*param_6 = 0;
pcVar3 = param_2;
if (0 < param_5) {
pcVar7 = param_2 + lVar6;
pcVar8 = param_4 + param_5;
pcVar5 = param_2;
do {
if ((uVar1 < 2) ||
(uVar2 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,param_4,pcVar8),
(int)uVar2 < 2)) {
if (*param_4 == '\'') {
pcVar3 = pcVar5 + 2;
if (pcVar7 < pcVar3) {
LAB_00129109:
*param_6 = 1;
pcVar3 = pcVar5;
break;
}
pcVar5[0] = '\'';
pcVar5[1] = '\'';
}
else {
pcVar3 = pcVar5 + 1;
if (pcVar7 < pcVar3) goto LAB_00129109;
*pcVar5 = *param_4;
}
}
else {
if (pcVar7 < pcVar5 + uVar2) goto LAB_00129109;
pcVar4 = param_4 + -1;
do {
param_4 = pcVar4 + 1;
pcVar3 = pcVar5 + 1;
*pcVar5 = pcVar4[1];
uVar2 = uVar2 - 1;
pcVar4 = param_4;
pcVar5 = pcVar3;
} while (uVar2 != 0);
}
param_4 = param_4 + 1;
pcVar5 = pcVar3;
} while (param_4 < pcVar8);
}
*pcVar3 = '\0';
return (long)pcVar3 - (long)param_2;
}
|
|
66,250 |
my_fstat
|
eloqsql/mysys/my_lib.c
|
int my_fstat(File Filedes, MY_STAT *stat_area,
myf MyFlags __attribute__((unused)))
{
DBUG_ENTER("my_fstat");
DBUG_PRINT("my",("fd: %d MyFlags: %lu", Filedes, MyFlags));
#ifdef _WIN32
DBUG_RETURN(my_win_fstat(Filedes, stat_area));
#elif defined HAVE_valgrind
{
int s= fstat(Filedes, stat_area);
if (!s)
MSAN_STAT_WORKAROUND(stat_area);
DBUG_RETURN(s);
}
#else
DBUG_RETURN(fstat(Filedes, (struct stat *) stat_area));
#endif
}
|
O0
|
c
|
my_fstat:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
jmp 0x65445
jmp 0x65447
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
callq 0x265f0
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nop
|
my_fstat:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
jmp short $+2
loc_65445:
jmp short $+2
loc_65447:
mov edi, [rbp+var_4]
mov rsi, [rbp+var_10]
call _fstat64
mov [rbp+var_1C], eax
mov eax, [rbp+var_1C]
add rsp, 20h
pop rbp
retn
|
long long my_fstat(unsigned int a1, long long a2)
{
return (unsigned int)fstat64(a1, a2);
}
|
my_fstat:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
JMP 0x00165445
LAB_00165445:
JMP 0x00165447
LAB_00165447:
MOV EDI,dword ptr [RBP + -0x4]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x001265f0
MOV dword ptr [RBP + -0x1c],EAX
MOV EAX,dword ptr [RBP + -0x1c]
ADD RSP,0x20
POP RBP
RET
|
int my_fstat(int param_1,stat64 *param_2)
{
int iVar1;
iVar1 = fstat64(param_1,param_2);
return iVar1;
}
|
|
66,251 |
nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::dump_float(double)
|
monkey531[P]llama/common/json.hpp
|
void dump_float(number_float_t x)
{
// NaN / inf
if (!std::isfinite(x))
{
o->write_characters("null", 4);
return;
}
// If number_float_t is an IEEE-754 single or double precision number,
// use the Grisu2 algorithm to produce short numbers which are
// guaranteed to round-trip, using strtof and strtod, resp.
//
// NB: The test below works if <long double> == <double>.
static constexpr bool is_ieee_single_or_double
= (std::numeric_limits<number_float_t>::is_iec559 && std::numeric_limits<number_float_t>::digits == 24 && std::numeric_limits<number_float_t>::max_exponent == 128) ||
(std::numeric_limits<number_float_t>::is_iec559 && std::numeric_limits<number_float_t>::digits == 53 && std::numeric_limits<number_float_t>::max_exponent == 1024);
dump_float(x, std::integral_constant<bool, is_ieee_single_or_double>());
}
|
O1
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::dump_float(double):
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %xmm0, %rax
btrq $0x3f, %rax
movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000
cmpq %rcx, %rax
jl 0x7b621
movq (%rbx), %rdi
movq (%rdi), %rax
movq 0x8(%rax), %rax
leaq 0x31c97(%rip), %rsi # 0xad2aa
movl $0x4, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *%rax
leaq 0x10(%rbx), %r14
leaq 0x50(%rbx), %rsi
movq %r14, %rdi
callq 0x7b865
movq (%rbx), %rdi
subq %r14, %rax
movq (%rdi), %rcx
movq 0x8(%rcx), %rcx
movq %r14, %rsi
movq %rax, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *%rcx
nop
|
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE10dump_floatEd:
push r14
push rbx
push rax
mov rbx, rdi
movq rax, xmm0
btr rax, 3Fh ; '?'
mov rcx, 7FF0000000000000h
cmp rax, rcx
jl short loc_7B621
mov rdi, [rbx]
mov rax, [rdi]
mov rax, [rax+8]
lea rsi, aOnNull_0+5; "null"
mov edx, 4
add rsp, 8
pop rbx
pop r14
jmp rax
loc_7B621:
lea r14, [rbx+10h]
lea rsi, [rbx+50h]
mov rdi, r14; int
call _ZN8nlohmann16json_abi_v3_11_36detail8to_charsIdEEPcS3_PKcT_; nlohmann::json_abi_v3_11_3::detail::to_chars<double>(char *,char const*,double)
mov rdi, [rbx]
sub rax, r14
mov rcx, [rdi]
mov rcx, [rcx+8]
mov rsi, r14
mov rdx, rax
add rsp, 8
pop rbx
pop r14
jmp rcx
|
long long nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::dump_float(
_QWORD *a1,
double a2)
{
long long v3; // rax
if ( (*(_QWORD *)&a2 & 0x7FFFFFFFFFFFFFFFuLL) >= 0x7FF0000000000000LL )
return (*(long long ( **)(_QWORD, char *, long long))(*(_QWORD *)*a1 + 8LL))(*a1, "null", 4LL);
v3 = nlohmann::json_abi_v3_11_3::detail::to_chars<double>((int)a1 + 16);
return (*(long long ( **)(_QWORD, _QWORD *, long long))(*(_QWORD *)*a1 + 8LL))(
*a1,
a1 + 2,
v3 - (_QWORD)(a1 + 2));
}
|
dump_float:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOVQ RAX,XMM0
BTR RAX,0x3f
MOV RCX,0x7ff0000000000000
CMP RAX,RCX
JL 0x0017b621
MOV RDI,qword ptr [RBX]
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + 0x8]
LEA RSI,[0x1ad2aa]
MOV EDX,0x4
ADD RSP,0x8
POP RBX
POP R14
JMP RAX
LAB_0017b621:
LEA R14,[RBX + 0x10]
LEA RSI,[RBX + 0x50]
MOV RDI,R14
CALL 0x0017b865
MOV RDI,qword ptr [RBX]
SUB RAX,R14
MOV RCX,qword ptr [RDI]
MOV RCX,qword ptr [RCX + 0x8]
MOV RSI,R14
MOV RDX,RAX
ADD RSP,0x8
POP RBX
POP R14
JMP RCX
|
/* nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::dump_float(double) */
void __thiscall
nlohmann::json_abi_v3_11_3::detail::
serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::dump_float(serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*this,double param_1)
{
serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*psVar1;
code *UNRECOVERED_JUMPTABLE;
char *pcVar2;
if (0x7fefffffffffffff < (ulong)ABS(param_1)) {
/* WARNING: Could not recover jumptable at 0x0017b61f. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(**(long **)this + 8))(*(long **)this,"null",4);
return;
}
psVar1 = this + 0x10;
pcVar2 = to_chars<double>((char *)psVar1,(char *)(this + 0x50),param_1);
UNRECOVERED_JUMPTABLE = *(code **)(**(long **)this + 8);
/* WARNING: Could not recover jumptable at 0x0017b64b. Too many branches */
/* WARNING: Treating indirect jump as call */
(*UNRECOVERED_JUMPTABLE)(*(long **)this,psVar1,(long)pcVar2 - (long)psVar1,UNRECOVERED_JUMPTABLE);
return;
}
|
|
66,252 |
stbi__tga_info(stbi__context*, int*, int*, int*)
|
llama.cpp/examples/llava/../../common/stb_image.h
|
static int stbi__tga_info(stbi__context *s, int *x, int *y, int *comp)
{
int tga_w, tga_h, tga_comp, tga_image_type, tga_bits_per_pixel, tga_colormap_bpp;
int sz, tga_colormap_type;
stbi__get8(s); // discard Offset
tga_colormap_type = stbi__get8(s); // colormap type
if( tga_colormap_type > 1 ) {
stbi__rewind(s);
return 0; // only RGB or indexed allowed
}
tga_image_type = stbi__get8(s); // image type
if ( tga_colormap_type == 1 ) { // colormapped (paletted) image
if (tga_image_type != 1 && tga_image_type != 9) {
stbi__rewind(s);
return 0;
}
stbi__skip(s,4); // skip index of first colormap entry and number of entries
sz = stbi__get8(s); // check bits per palette color entry
if ( (sz != 8) && (sz != 15) && (sz != 16) && (sz != 24) && (sz != 32) ) {
stbi__rewind(s);
return 0;
}
stbi__skip(s,4); // skip image x and y origin
tga_colormap_bpp = sz;
} else { // "normal" image w/o colormap - only RGB or grey allowed, +/- RLE
if ( (tga_image_type != 2) && (tga_image_type != 3) && (tga_image_type != 10) && (tga_image_type != 11) ) {
stbi__rewind(s);
return 0; // only RGB or grey allowed, +/- RLE
}
stbi__skip(s,9); // skip colormap specification and image x/y origin
tga_colormap_bpp = 0;
}
tga_w = stbi__get16le(s);
if( tga_w < 1 ) {
stbi__rewind(s);
return 0; // test width
}
tga_h = stbi__get16le(s);
if( tga_h < 1 ) {
stbi__rewind(s);
return 0; // test height
}
tga_bits_per_pixel = stbi__get8(s); // bits per pixel
stbi__get8(s); // ignore alpha bits
if (tga_colormap_bpp != 0) {
if((tga_bits_per_pixel != 8) && (tga_bits_per_pixel != 16)) {
// when using a colormap, tga_bits_per_pixel is the size of the indexes
// I don't think anything but 8 or 16bit indexes makes sense
stbi__rewind(s);
return 0;
}
tga_comp = stbi__tga_get_comp(tga_colormap_bpp, 0, NULL);
} else {
tga_comp = stbi__tga_get_comp(tga_bits_per_pixel, (tga_image_type == 3) || (tga_image_type == 11), NULL);
}
if(!tga_comp) {
stbi__rewind(s);
return 0;
}
if (x) *x = tga_w;
if (y) *y = tga_h;
if (comp) *comp = tga_comp;
return 1; // seems to have passed everything
}
|
O3
|
c
|
stbi__tga_info(stbi__context*, int*, int*, int*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r14
movq %rdx, %rbp
movq %rsi, %r15
movq %rdi, %r12
movq 0xc0(%rdi), %rax
movq 0xc8(%rdi), %rcx
cmpq %rcx, %rax
jb 0x37580
cmpl $0x0, 0x30(%r12)
je 0x3758b
movq %r12, %rdi
callq 0x2fe81
movq 0xc0(%r12), %rax
movq 0xc8(%r12), %rcx
incq %rax
movq %rax, 0xc0(%r12)
cmpq %rcx, %rax
jb 0x375a8
cmpl $0x0, 0x30(%r12)
je 0x375d0
movq %r12, %rdi
callq 0x2fe81
movq 0xc0(%r12), %rax
movq %rax, %rcx
incq %rax
movq %rax, 0xc0(%r12)
movb (%rcx), %dl
cmpb $0x1, %dl
ja 0x37877
movq 0xc8(%r12), %rcx
testb %dl, %dl
sete %bl
jmp 0x375d2
movb $0x1, %bl
cmpq %rcx, %rax
jb 0x375f3
cmpl $0x0, 0x30(%r12)
je 0x37699
movq %r12, %rdi
callq 0x2fe81
movq 0xc0(%r12), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xc0(%r12)
movb (%rax), %r13b
movq %rcx, %rax
movl %r13d, %ecx
testb %bl, %bl
je 0x37651
andb $-0xa, %cl
cmpb $0x2, %cl
jne 0x37877
cmpq $0x0, 0x10(%r12)
movq %rbp, 0x10(%rsp)
je 0x376a1
movq 0xc8(%r12), %rdx
movl %edx, %ecx
subl %eax, %ecx
cmpl $0x8, %ecx
jg 0x376a1
movq %rdx, 0xc0(%r12)
movq 0x28(%r12), %rdi
movl $0x9, %esi
subl %ecx, %esi
callq *0x18(%r12)
jmp 0x376ad
andb $-0x9, %cl
cmpb $0x1, %cl
jne 0x37877
cmpq $0x0, 0x10(%r12)
je 0x376b4
movq 0xc8(%r12), %rdx
movl %edx, %ecx
subl %eax, %ecx
cmpl $0x3, %ecx
jg 0x376b4
movq %rdx, 0xc0(%r12)
movq 0x28(%r12), %rdi
movl $0x4, %esi
subl %ecx, %esi
callq *0x18(%r12)
movq 0xc0(%r12), %rax
jmp 0x376c0
xorl %r13d, %r13d
jmp 0x37605
addq $0x9, %rax
movq %rax, 0xc0(%r12)
xorl %ebx, %ebx
jmp 0x37758
addq $0x4, %rax
movq %rax, 0xc0(%r12)
cmpq 0xc8(%r12), %rax
jb 0x376e6
cmpl $0x0, 0x30(%r12)
je 0x37877
movq %r12, %rdi
callq 0x2fe81
movq 0xc0(%r12), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xc0(%r12)
movzbl (%rax), %ebx
cmpq $0x20, %rbx
ja 0x37877
movabsq $0x101018100, %rdx # imm = 0x101018100
btq %rbx, %rdx
jae 0x37877
cmpq $0x0, 0x10(%r12)
movq %rbp, 0x10(%rsp)
je 0x3774c
movq 0xc8(%r12), %rsi
movl %esi, %edx
subl %ecx, %edx
cmpl $0x3, %edx
jg 0x3774c
movq %rsi, 0xc0(%r12)
movq 0x28(%r12), %rdi
movl $0x4, %esi
subl %edx, %esi
callq *0x18(%r12)
jmp 0x37758
addq $0x5, %rax
movq %rax, 0xc0(%r12)
movq %r12, %rdi
callq 0x321c7
testl %eax, %eax
je 0x37877
movl %eax, %ebp
movq %r12, %rdi
callq 0x321c7
testl %eax, %eax
je 0x37877
movq 0xc0(%r12), %rsi
movq 0xc8(%r12), %rcx
cmpq %rcx, %rsi
movq %r14, (%rsp)
jb 0x377bd
cmpl $0x0, 0x30(%r12)
je 0x3789a
movq %r12, %rdi
movl %eax, %r14d
callq 0x2fe81
movl %r14d, %eax
movq 0xc0(%r12), %rsi
movq 0xc8(%r12), %rcx
leaq 0x1(%rsi), %rdx
movq %rdx, 0xc0(%r12)
movb (%rsi), %r14b
movq %rdx, %rsi
cmpq %rcx, %rsi
jb 0x377f4
cmpl $0x0, 0x30(%r12)
je 0x377ff
movq %r12, %rdi
movl %eax, 0xc(%rsp)
callq 0x2fe81
movl 0xc(%rsp), %eax
movq 0xc0(%r12), %rsi
incq %rsi
movq %rsi, 0xc0(%r12)
testb %bl, %bl
je 0x3782f
cmpb $0x8, %r14b
je 0x37812
movzbl %r14b, %ecx
cmpl $0x10, %ecx
jne 0x37877
movzbl %bl, %esi
cmpl $0xf, %esi
jle 0x3785d
cmpl $0x20, %esi
movq (%rsp), %rdx
je 0x378a2
cmpl $0x18, %esi
je 0x378a2
cmpl $0x10, %esi
je 0x37870
jmp 0x37877
movzbl %r14b, %esi
cmpl $0xf, %esi
jle 0x3785d
cmpl $0x20, %esi
je 0x378aa
cmpl $0x18, %esi
je 0x378aa
cmpl $0x10, %esi
movq (%rsp), %rdx
jne 0x37877
andb $-0x9, %r13b
xorl %ecx, %ecx
cmpb $0x3, %r13b
sete %cl
xorl $0x3, %ecx
jmp 0x378b6
movl $0x1, %ecx
cmpl $0x8, %esi
movq (%rsp), %rdx
je 0x378b6
cmpl $0xf, %esi
jne 0x37877
movl $0x3, %ecx
jmp 0x378b6
movups 0xd0(%r12), %xmm0
movups %xmm0, 0xc0(%r12)
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r14d, %r14d
jmp 0x377cf
shrb $0x3, %bl
movzbl %bl, %ecx
jmp 0x378b6
shrb $0x3, %r14b
movzbl %r14b, %ecx
movq (%rsp), %rdx
testq %r15, %r15
je 0x378be
movl %ebp, (%r15)
movq 0x10(%rsp), %rsi
testq %rsi, %rsi
je 0x378ca
movl %eax, (%rsi)
movl $0x1, %eax
testq %rdx, %rdx
je 0x3788b
movl %ecx, (%rdx)
jmp 0x3788b
|
_ZL14stbi__tga_infoP13stbi__contextPiS1_S1_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r14, rcx
mov rbp, rdx
mov r15, rsi
mov r12, rdi
mov rax, [rdi+0C0h]
mov rcx, [rdi+0C8h]
cmp rax, rcx
jb short loc_37580
cmp dword ptr [r12+30h], 0
jz short loc_3758B
mov rdi, r12
call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *)
mov rax, [r12+0C0h]
mov rcx, [r12+0C8h]
loc_37580:
inc rax
mov [r12+0C0h], rax
loc_3758B:
cmp rax, rcx
jb short loc_375A8
cmp dword ptr [r12+30h], 0
jz short loc_375D0
mov rdi, r12
call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *)
mov rax, [r12+0C0h]
loc_375A8:
mov rcx, rax
inc rax
mov [r12+0C0h], rax
mov dl, [rcx]
cmp dl, 1
ja loc_37877
mov rcx, [r12+0C8h]
test dl, dl
setz bl
jmp short loc_375D2
loc_375D0:
mov bl, 1
loc_375D2:
cmp rax, rcx
jb short loc_375F3
cmp dword ptr [r12+30h], 0
jz loc_37699
mov rdi, r12
call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *)
mov rax, [r12+0C0h]
loc_375F3:
lea rcx, [rax+1]
mov [r12+0C0h], rcx
mov r13b, [rax]
mov rax, rcx
loc_37605:
mov ecx, r13d
test bl, bl
jz short loc_37651
and cl, 0F6h
cmp cl, 2
jnz loc_37877
cmp qword ptr [r12+10h], 0
mov [rsp+48h+var_38], rbp
jz short loc_376A1
mov rdx, [r12+0C8h]
mov ecx, edx
sub ecx, eax
cmp ecx, 8
jg short loc_376A1
mov [r12+0C0h], rdx
mov rdi, [r12+28h]
mov esi, 9
sub esi, ecx
call qword ptr [r12+18h]
jmp short loc_376AD
loc_37651:
and cl, 0F7h
cmp cl, 1
jnz loc_37877
cmp qword ptr [r12+10h], 0
jz short loc_376B4
mov rdx, [r12+0C8h]
mov ecx, edx
sub ecx, eax
cmp ecx, 3
jg short loc_376B4
mov [r12+0C0h], rdx
mov rdi, [r12+28h]
mov esi, 4
sub esi, ecx
call qword ptr [r12+18h]
mov rax, [r12+0C0h]
jmp short loc_376C0
loc_37699:
xor r13d, r13d
jmp loc_37605
loc_376A1:
add rax, 9
mov [r12+0C0h], rax
loc_376AD:
xor ebx, ebx
jmp loc_37758
loc_376B4:
add rax, 4
mov [r12+0C0h], rax
loc_376C0:
cmp rax, [r12+0C8h]
jb short loc_376E6
cmp dword ptr [r12+30h], 0
jz loc_37877
mov rdi, r12
call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *)
mov rax, [r12+0C0h]
loc_376E6:
lea rcx, [rax+1]
mov [r12+0C0h], rcx
movzx ebx, byte ptr [rax]
cmp rbx, 20h ; ' '
ja loc_37877
mov rdx, 101018100h
bt rdx, rbx
jnb loc_37877
cmp qword ptr [r12+10h], 0
mov [rsp+48h+var_38], rbp
jz short loc_3774C
mov rsi, [r12+0C8h]
mov edx, esi
sub edx, ecx
cmp edx, 3
jg short loc_3774C
mov [r12+0C0h], rsi
mov rdi, [r12+28h]
mov esi, 4
sub esi, edx
call qword ptr [r12+18h]
jmp short loc_37758
loc_3774C:
add rax, 5
mov [r12+0C0h], rax
loc_37758:
mov rdi, r12
call _ZL13stbi__get16leP13stbi__context; stbi__get16le(stbi__context *)
test eax, eax
jz loc_37877
mov ebp, eax
mov rdi, r12
call _ZL13stbi__get16leP13stbi__context; stbi__get16le(stbi__context *)
test eax, eax
jz loc_37877
mov rsi, [r12+0C0h]
mov rcx, [r12+0C8h]
cmp rsi, rcx
mov [rsp+48h+var_48], r14
jb short loc_377BD
cmp dword ptr [r12+30h], 0
jz loc_3789A
mov rdi, r12
mov r14d, eax
call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *)
mov eax, r14d
mov rsi, [r12+0C0h]
mov rcx, [r12+0C8h]
loc_377BD:
lea rdx, [rsi+1]
mov [r12+0C0h], rdx
mov r14b, [rsi]
mov rsi, rdx
loc_377CF:
cmp rsi, rcx
jb short loc_377F4
cmp dword ptr [r12+30h], 0
jz short loc_377FF
mov rdi, r12
mov [rsp+48h+var_3C], eax
call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *)
mov eax, [rsp+48h+var_3C]
mov rsi, [r12+0C0h]
loc_377F4:
inc rsi
mov [r12+0C0h], rsi
loc_377FF:
test bl, bl
jz short loc_3782F
cmp r14b, 8
jz short loc_37812
movzx ecx, r14b
cmp ecx, 10h
jnz short loc_37877
loc_37812:
movzx esi, bl
cmp esi, 0Fh
jle short loc_3785D
cmp esi, 20h ; ' '
mov rdx, [rsp+48h+var_48]
jz short loc_378A2
cmp esi, 18h
jz short loc_378A2
cmp esi, 10h
jz short loc_37870
jmp short loc_37877
loc_3782F:
movzx esi, r14b
cmp esi, 0Fh
jle short loc_3785D
cmp esi, 20h ; ' '
jz short loc_378AA
cmp esi, 18h
jz short loc_378AA
cmp esi, 10h
mov rdx, [rsp+48h+var_48]
jnz short loc_37877
and r13b, 0F7h
xor ecx, ecx
cmp r13b, 3
setz cl
xor ecx, 3
jmp short loc_378B6
loc_3785D:
mov ecx, 1
cmp esi, 8
mov rdx, [rsp+48h+var_48]
jz short loc_378B6
cmp esi, 0Fh
jnz short loc_37877
loc_37870:
mov ecx, 3
jmp short loc_378B6
loc_37877:
movups xmm0, xmmword ptr [r12+0D0h]
movups xmmword ptr [r12+0C0h], xmm0
xor eax, eax
loc_3788B:
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_3789A:
xor r14d, r14d
jmp loc_377CF
loc_378A2:
shr bl, 3
movzx ecx, bl
jmp short loc_378B6
loc_378AA:
shr r14b, 3
movzx ecx, r14b
mov rdx, [rsp+48h+var_48]
loc_378B6:
test r15, r15
jz short loc_378BE
mov [r15], ebp
loc_378BE:
mov rsi, [rsp+48h+var_38]
test rsi, rsi
jz short loc_378CA
mov [rsi], eax
loc_378CA:
mov eax, 1
test rdx, rdx
jz short loc_3788B
mov [rdx], ecx
jmp short loc_3788B
|
long long stbi__tga_info(long long a1, _DWORD *a2, _DWORD *a3, int *a4)
{
char *v7; // rax
unsigned long long v8; // rcx
char *v9; // rcx
char v10; // dl
bool v11; // bl
char v12; // r13
int v13; // ecx
int v14; // ecx
unsigned __int8 *v15; // rax
unsigned long long v16; // rbx
long long v17; // rdx
int v18; // edx
int v19; // eax
int v20; // ebp
int v21; // eax
unsigned __int8 *v22; // rsi
unsigned long long v23; // rcx
int v24; // r14d
unsigned __int8 v25; // r14
int v26; // esi
int *v27; // rdx
int v28; // ecx
long long result; // rax
int *v30; // [rsp+0h] [rbp-48h]
int v31; // [rsp+Ch] [rbp-3Ch]
_DWORD *v32; // [rsp+10h] [rbp-38h]
v7 = *(char **)(a1 + 192);
v8 = *(_QWORD *)(a1 + 200);
if ( (unsigned long long)v7 >= v8 )
{
if ( !*(_DWORD *)(a1 + 48) )
goto LABEL_5;
stbi__refill_buffer(a1);
v7 = *(char **)(a1 + 192);
v8 = *(_QWORD *)(a1 + 200);
}
*(_QWORD *)(a1 + 192) = ++v7;
LABEL_5:
if ( (unsigned long long)v7 >= v8 )
{
if ( !*(_DWORD *)(a1 + 48) )
{
v11 = 1;
goto LABEL_11;
}
stbi__refill_buffer(a1);
v7 = *(char **)(a1 + 192);
}
v9 = v7++;
*(_QWORD *)(a1 + 192) = v7;
v10 = *v9;
if ( (unsigned __int8)*v9 > 1u )
goto LABEL_63;
v8 = *(_QWORD *)(a1 + 200);
v11 = v10 == 0;
LABEL_11:
if ( (unsigned long long)v7 < v8 )
{
LABEL_14:
*(_QWORD *)(a1 + 192) = v7 + 1;
v12 = *v7++;
goto LABEL_15;
}
if ( *(_DWORD *)(a1 + 48) )
{
stbi__refill_buffer(a1);
v7 = *(char **)(a1 + 192);
goto LABEL_14;
}
v12 = 0;
LABEL_15:
if ( v11 )
{
if ( (v12 & 0xF6) != 2 )
goto LABEL_63;
v32 = a3;
if ( *(_QWORD *)(a1 + 16) && (v13 = *(_QWORD *)(a1 + 200) - (_DWORD)v7, v13 <= 8) )
{
*(_QWORD *)(a1 + 192) = *(_QWORD *)(a1 + 200);
(*(void ( **)(_QWORD, _QWORD))(a1 + 24))(*(_QWORD *)(a1 + 40), (unsigned int)(9 - v13));
}
else
{
*(_QWORD *)(a1 + 192) = v7 + 9;
}
LOBYTE(v16) = 0;
}
else
{
if ( (v12 & 0xF7) != 1 )
goto LABEL_63;
if ( *(_QWORD *)(a1 + 16) && (v14 = *(_QWORD *)(a1 + 200) - (_DWORD)v7, v14 <= 3) )
{
*(_QWORD *)(a1 + 192) = *(_QWORD *)(a1 + 200);
(*(void ( **)(_QWORD, _QWORD))(a1 + 24))(*(_QWORD *)(a1 + 40), (unsigned int)(4 - v14));
v15 = *(unsigned __int8 **)(a1 + 192);
}
else
{
v15 = (unsigned __int8 *)(v7 + 4);
*(_QWORD *)(a1 + 192) = v15;
}
if ( (unsigned long long)v15 >= *(_QWORD *)(a1 + 200) )
{
if ( !*(_DWORD *)(a1 + 48) )
goto LABEL_63;
stbi__refill_buffer(a1);
v15 = *(unsigned __int8 **)(a1 + 192);
}
*(_QWORD *)(a1 + 192) = v15 + 1;
v16 = *v15;
if ( v16 > 0x20 )
goto LABEL_63;
v17 = 0x101018100LL;
if ( !_bittest64(&v17, v16) )
goto LABEL_63;
v32 = a3;
if ( *(_QWORD *)(a1 + 16) && (v18 = *(_QWORD *)(a1 + 200) - ((_DWORD)v15 + 1), v18 <= 3) )
{
*(_QWORD *)(a1 + 192) = *(_QWORD *)(a1 + 200);
(*(void ( **)(_QWORD, _QWORD))(a1 + 24))(*(_QWORD *)(a1 + 40), (unsigned int)(4 - v18));
}
else
{
*(_QWORD *)(a1 + 192) = v15 + 5;
}
}
v19 = stbi__get16le(a1);
if ( !v19 )
goto LABEL_63;
v20 = v19;
v21 = stbi__get16le(a1);
if ( !v21 )
goto LABEL_63;
v22 = *(unsigned __int8 **)(a1 + 192);
v23 = *(_QWORD *)(a1 + 200);
v30 = a4;
if ( (unsigned long long)v22 < v23 )
goto LABEL_42;
if ( *(_DWORD *)(a1 + 48) )
{
v24 = v21;
stbi__refill_buffer(a1);
v21 = v24;
v22 = *(unsigned __int8 **)(a1 + 192);
v23 = *(_QWORD *)(a1 + 200);
LABEL_42:
*(_QWORD *)(a1 + 192) = v22 + 1;
v25 = *v22++;
goto LABEL_43;
}
v25 = 0;
LABEL_43:
if ( (unsigned long long)v22 >= v23 )
{
if ( !*(_DWORD *)(a1 + 48) )
goto LABEL_47;
v31 = v21;
stbi__refill_buffer(a1);
v21 = v31;
v22 = *(unsigned __int8 **)(a1 + 192);
}
*(_QWORD *)(a1 + 192) = v22 + 1;
LABEL_47:
if ( (_BYTE)v16 )
{
if ( v25 != 8 && v25 != 16 )
goto LABEL_63;
v26 = (unsigned __int8)v16;
if ( (unsigned __int8)v16 > 0xFu )
{
v27 = v30;
if ( (unsigned __int8)v16 == 32 || (unsigned __int8)v16 == 24 )
{
v28 = (unsigned __int8)v16 >> 3;
goto LABEL_68;
}
if ( (unsigned __int8)v16 != 16 )
goto LABEL_63;
goto LABEL_62;
}
}
else
{
v26 = v25;
if ( v25 > 0xFu )
{
if ( v25 == 32 || v25 == 24 )
{
v28 = v25 >> 3;
v27 = v30;
goto LABEL_68;
}
v27 = v30;
if ( v25 != 16 )
goto LABEL_63;
v28 = ((v12 & 0xF7) == 3) ^ 3;
goto LABEL_68;
}
}
v28 = 1;
v27 = v30;
if ( v26 != 8 )
{
if ( v26 == 15 )
{
LABEL_62:
v28 = 3;
goto LABEL_68;
}
LABEL_63:
*(_OWORD *)(a1 + 192) = *(_OWORD *)(a1 + 208);
return 0LL;
}
LABEL_68:
if ( a2 )
*a2 = v20;
if ( v32 )
*v32 = v21;
result = 1LL;
if ( v27 )
*v27 = v28;
return result;
}
|
stbi__tga_info:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R14,RCX
MOV RBP,RDX
MOV R15,RSI
MOV R12,RDI
MOV RAX,qword ptr [RDI + 0xc0]
MOV RCX,qword ptr [RDI + 0xc8]
CMP RAX,RCX
JC 0x00137580
CMP dword ptr [R12 + 0x30],0x0
JZ 0x0013758b
MOV RDI,R12
CALL 0x0012fe81
MOV RAX,qword ptr [R12 + 0xc0]
MOV RCX,qword ptr [R12 + 0xc8]
LAB_00137580:
INC RAX
MOV qword ptr [R12 + 0xc0],RAX
LAB_0013758b:
CMP RAX,RCX
JC 0x001375a8
CMP dword ptr [R12 + 0x30],0x0
JZ 0x001375d0
MOV RDI,R12
CALL 0x0012fe81
MOV RAX,qword ptr [R12 + 0xc0]
LAB_001375a8:
MOV RCX,RAX
INC RAX
MOV qword ptr [R12 + 0xc0],RAX
MOV DL,byte ptr [RCX]
CMP DL,0x1
JA 0x00137877
MOV RCX,qword ptr [R12 + 0xc8]
TEST DL,DL
SETZ BL
JMP 0x001375d2
LAB_001375d0:
MOV BL,0x1
LAB_001375d2:
CMP RAX,RCX
JC 0x001375f3
CMP dword ptr [R12 + 0x30],0x0
JZ 0x00137699
MOV RDI,R12
CALL 0x0012fe81
MOV RAX,qword ptr [R12 + 0xc0]
LAB_001375f3:
LEA RCX,[RAX + 0x1]
MOV qword ptr [R12 + 0xc0],RCX
MOV R13B,byte ptr [RAX]
MOV RAX,RCX
LAB_00137605:
MOV ECX,R13D
TEST BL,BL
JZ 0x00137651
AND CL,0xf6
CMP CL,0x2
JNZ 0x00137877
CMP qword ptr [R12 + 0x10],0x0
MOV qword ptr [RSP + 0x10],RBP
JZ 0x001376a1
MOV RDX,qword ptr [R12 + 0xc8]
MOV ECX,EDX
SUB ECX,EAX
CMP ECX,0x8
JG 0x001376a1
MOV qword ptr [R12 + 0xc0],RDX
MOV RDI,qword ptr [R12 + 0x28]
MOV ESI,0x9
SUB ESI,ECX
CALL qword ptr [R12 + 0x18]
JMP 0x001376ad
LAB_00137651:
AND CL,0xf7
CMP CL,0x1
JNZ 0x00137877
CMP qword ptr [R12 + 0x10],0x0
JZ 0x001376b4
MOV RDX,qword ptr [R12 + 0xc8]
MOV ECX,EDX
SUB ECX,EAX
CMP ECX,0x3
JG 0x001376b4
MOV qword ptr [R12 + 0xc0],RDX
MOV RDI,qword ptr [R12 + 0x28]
MOV ESI,0x4
SUB ESI,ECX
CALL qword ptr [R12 + 0x18]
MOV RAX,qword ptr [R12 + 0xc0]
JMP 0x001376c0
LAB_00137699:
XOR R13D,R13D
JMP 0x00137605
LAB_001376a1:
ADD RAX,0x9
MOV qword ptr [R12 + 0xc0],RAX
LAB_001376ad:
XOR EBX,EBX
JMP 0x00137758
LAB_001376b4:
ADD RAX,0x4
MOV qword ptr [R12 + 0xc0],RAX
LAB_001376c0:
CMP RAX,qword ptr [R12 + 0xc8]
JC 0x001376e6
CMP dword ptr [R12 + 0x30],0x0
JZ 0x00137877
MOV RDI,R12
CALL 0x0012fe81
MOV RAX,qword ptr [R12 + 0xc0]
LAB_001376e6:
LEA RCX,[RAX + 0x1]
MOV qword ptr [R12 + 0xc0],RCX
MOVZX EBX,byte ptr [RAX]
CMP RBX,0x20
JA 0x00137877
MOV RDX,0x101018100
BT RDX,RBX
JNC 0x00137877
CMP qword ptr [R12 + 0x10],0x0
MOV qword ptr [RSP + 0x10],RBP
JZ 0x0013774c
MOV RSI,qword ptr [R12 + 0xc8]
MOV EDX,ESI
SUB EDX,ECX
CMP EDX,0x3
JG 0x0013774c
MOV qword ptr [R12 + 0xc0],RSI
MOV RDI,qword ptr [R12 + 0x28]
MOV ESI,0x4
SUB ESI,EDX
CALL qword ptr [R12 + 0x18]
JMP 0x00137758
LAB_0013774c:
ADD RAX,0x5
MOV qword ptr [R12 + 0xc0],RAX
LAB_00137758:
MOV RDI,R12
CALL 0x001321c7
TEST EAX,EAX
JZ 0x00137877
MOV EBP,EAX
MOV RDI,R12
CALL 0x001321c7
TEST EAX,EAX
JZ 0x00137877
MOV RSI,qword ptr [R12 + 0xc0]
MOV RCX,qword ptr [R12 + 0xc8]
CMP RSI,RCX
MOV qword ptr [RSP],R14
JC 0x001377bd
CMP dword ptr [R12 + 0x30],0x0
JZ 0x0013789a
MOV RDI,R12
MOV R14D,EAX
CALL 0x0012fe81
MOV EAX,R14D
MOV RSI,qword ptr [R12 + 0xc0]
MOV RCX,qword ptr [R12 + 0xc8]
LAB_001377bd:
LEA RDX,[RSI + 0x1]
MOV qword ptr [R12 + 0xc0],RDX
MOV R14B,byte ptr [RSI]
MOV RSI,RDX
LAB_001377cf:
CMP RSI,RCX
JC 0x001377f4
CMP dword ptr [R12 + 0x30],0x0
JZ 0x001377ff
MOV RDI,R12
MOV dword ptr [RSP + 0xc],EAX
CALL 0x0012fe81
MOV EAX,dword ptr [RSP + 0xc]
MOV RSI,qword ptr [R12 + 0xc0]
LAB_001377f4:
INC RSI
MOV qword ptr [R12 + 0xc0],RSI
LAB_001377ff:
TEST BL,BL
JZ 0x0013782f
CMP R14B,0x8
JZ 0x00137812
MOVZX ECX,R14B
CMP ECX,0x10
JNZ 0x00137877
LAB_00137812:
MOVZX ESI,BL
CMP ESI,0xf
JLE 0x0013785d
CMP ESI,0x20
MOV RDX,qword ptr [RSP]
JZ 0x001378a2
CMP ESI,0x18
JZ 0x001378a2
CMP ESI,0x10
JZ 0x00137870
JMP 0x00137877
LAB_0013782f:
MOVZX ESI,R14B
CMP ESI,0xf
JLE 0x0013785d
CMP ESI,0x20
JZ 0x001378aa
CMP ESI,0x18
JZ 0x001378aa
CMP ESI,0x10
MOV RDX,qword ptr [RSP]
JNZ 0x00137877
AND R13B,0xf7
XOR ECX,ECX
CMP R13B,0x3
SETZ CL
XOR ECX,0x3
JMP 0x001378b6
LAB_0013785d:
MOV ECX,0x1
CMP ESI,0x8
MOV RDX,qword ptr [RSP]
JZ 0x001378b6
CMP ESI,0xf
JNZ 0x00137877
LAB_00137870:
MOV ECX,0x3
JMP 0x001378b6
LAB_00137877:
MOVUPS XMM0,xmmword ptr [R12 + 0xd0]
MOVUPS xmmword ptr [R12 + 0xc0],XMM0
XOR EAX,EAX
LAB_0013788b:
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0013789a:
XOR R14D,R14D
JMP 0x001377cf
LAB_001378a2:
SHR BL,0x3
MOVZX ECX,BL
JMP 0x001378b6
LAB_001378aa:
SHR R14B,0x3
MOVZX ECX,R14B
MOV RDX,qword ptr [RSP]
LAB_001378b6:
TEST R15,R15
JZ 0x001378be
MOV dword ptr [R15],EBP
LAB_001378be:
MOV RSI,qword ptr [RSP + 0x10]
TEST RSI,RSI
JZ 0x001378ca
MOV dword ptr [RSI],EAX
LAB_001378ca:
MOV EAX,0x1
TEST RDX,RDX
JZ 0x0013788b
MOV dword ptr [RDX],ECX
JMP 0x0013788b
|
/* stbi__tga_info(stbi__context*, int*, int*, int*) */
int8 stbi__tga_info(stbi__context *param_1,int *param_2,int *param_3,int *param_4)
{
int iVar1;
byte *pbVar2;
int iVar3;
uint uVar4;
byte *pbVar5;
byte bVar6;
byte bVar7;
byte bVar8;
bool bVar9;
pbVar2 = *(byte **)(param_1 + 0xc0);
pbVar5 = *(byte **)(param_1 + 200);
if (pbVar2 < pbVar5) {
LAB_00137580:
pbVar2 = pbVar2 + 1;
*(byte **)(param_1 + 0xc0) = pbVar2;
}
else if (*(int *)(param_1 + 0x30) != 0) {
stbi__refill_buffer(param_1);
pbVar2 = *(byte **)(param_1 + 0xc0);
pbVar5 = *(byte **)(param_1 + 200);
goto LAB_00137580;
}
if (pbVar2 < pbVar5) {
LAB_001375a8:
*(byte **)(param_1 + 0xc0) = pbVar2 + 1;
if (1 < *pbVar2) goto LAB_00137877;
pbVar5 = *(byte **)(param_1 + 200);
bVar9 = *pbVar2 == 0;
pbVar2 = pbVar2 + 1;
}
else {
if (*(int *)(param_1 + 0x30) != 0) {
stbi__refill_buffer(param_1);
pbVar2 = *(byte **)(param_1 + 0xc0);
goto LAB_001375a8;
}
bVar9 = true;
}
if (pbVar2 < pbVar5) {
LAB_001375f3:
*(byte **)(param_1 + 0xc0) = pbVar2 + 1;
bVar7 = *pbVar2;
pbVar2 = pbVar2 + 1;
}
else {
if (*(int *)(param_1 + 0x30) != 0) {
stbi__refill_buffer(param_1);
pbVar2 = *(byte **)(param_1 + 0xc0);
goto LAB_001375f3;
}
bVar7 = 0;
}
if (bVar9) {
if ((bVar7 & 0xf6) != 2) goto LAB_00137877;
if (*(long *)(param_1 + 0x10) == 0) {
LAB_001376a1:
*(byte **)(param_1 + 0xc0) = pbVar2 + 9;
}
else {
iVar3 = (int)*(int8 *)(param_1 + 200) - (int)pbVar2;
if (8 < iVar3) goto LAB_001376a1;
*(int8 *)(param_1 + 0xc0) = *(int8 *)(param_1 + 200);
(**(code **)(param_1 + 0x18))(*(int8 *)(param_1 + 0x28),9 - iVar3);
}
bVar6 = 0;
}
else {
if ((bVar7 & 0xf7) != 1) goto LAB_00137877;
if (*(long *)(param_1 + 0x10) == 0) {
LAB_001376b4:
pbVar2 = pbVar2 + 4;
*(byte **)(param_1 + 0xc0) = pbVar2;
}
else {
iVar3 = (int)*(int8 *)(param_1 + 200) - (int)pbVar2;
if (3 < iVar3) goto LAB_001376b4;
*(int8 *)(param_1 + 0xc0) = *(int8 *)(param_1 + 200);
(**(code **)(param_1 + 0x18))(*(int8 *)(param_1 + 0x28),4 - iVar3);
pbVar2 = *(byte **)(param_1 + 0xc0);
}
if (*(byte **)(param_1 + 200) <= pbVar2) {
if (*(int *)(param_1 + 0x30) == 0) goto LAB_00137877;
stbi__refill_buffer(param_1);
pbVar2 = *(byte **)(param_1 + 0xc0);
}
*(byte **)(param_1 + 0xc0) = pbVar2 + 1;
bVar6 = *pbVar2;
if ((0x20 < (ulong)bVar6) || ((0x101018100U >> ((ulong)bVar6 & 0x3f) & 1) == 0))
goto LAB_00137877;
if (*(long *)(param_1 + 0x10) == 0) {
LAB_0013774c:
*(byte **)(param_1 + 0xc0) = pbVar2 + 5;
}
else {
iVar3 = (int)*(int8 *)(param_1 + 200) - (int)(pbVar2 + 1);
if (3 < iVar3) goto LAB_0013774c;
*(int8 *)(param_1 + 0xc0) = *(int8 *)(param_1 + 200);
(**(code **)(param_1 + 0x18))(*(int8 *)(param_1 + 0x28),4 - iVar3);
}
}
iVar3 = stbi__get16le(param_1);
if ((iVar3 == 0) || (iVar1 = stbi__get16le(param_1), iVar1 == 0)) goto LAB_00137877;
pbVar2 = *(byte **)(param_1 + 0xc0);
pbVar5 = *(byte **)(param_1 + 200);
if (pbVar2 < pbVar5) {
LAB_001377bd:
*(byte **)(param_1 + 0xc0) = pbVar2 + 1;
bVar8 = *pbVar2;
pbVar2 = pbVar2 + 1;
}
else {
if (*(int *)(param_1 + 0x30) != 0) {
stbi__refill_buffer(param_1);
pbVar2 = *(byte **)(param_1 + 0xc0);
pbVar5 = *(byte **)(param_1 + 200);
goto LAB_001377bd;
}
bVar8 = 0;
}
if (pbVar2 < pbVar5) {
LAB_001377f4:
*(byte **)(param_1 + 0xc0) = pbVar2 + 1;
}
else if (*(int *)(param_1 + 0x30) != 0) {
stbi__refill_buffer(param_1);
pbVar2 = *(byte **)(param_1 + 0xc0);
goto LAB_001377f4;
}
if (bVar6 == 0) {
if (0xf < bVar8) {
if ((bVar8 == 0x20) || (bVar8 == 0x18)) {
uVar4 = (uint)(bVar8 >> 3);
}
else {
if (bVar8 != 0x10) goto LAB_00137877;
uVar4 = (bVar7 & 0xf7) == 3 ^ 3;
}
goto LAB_001378b6;
}
LAB_0013785d:
uVar4 = 1;
if (bVar8 == 8) goto LAB_001378b6;
if (bVar8 != 0xf) {
LAB_00137877:
*(int8 *)(param_1 + 0xc0) = *(int8 *)(param_1 + 0xd0);
*(int8 *)(param_1 + 200) = *(int8 *)(param_1 + 0xd8);
return 0;
}
}
else {
if ((bVar8 != 8) && (bVar8 != 0x10)) goto LAB_00137877;
bVar8 = bVar6;
if (bVar6 < 0x10) goto LAB_0013785d;
if ((bVar6 == 0x20) || (bVar6 == 0x18)) {
uVar4 = (uint)(bVar6 >> 3);
goto LAB_001378b6;
}
if (bVar6 != 0x10) goto LAB_00137877;
}
uVar4 = 3;
LAB_001378b6:
if (param_2 != (int *)0x0) {
*param_2 = iVar3;
}
if (param_3 != (int *)0x0) {
*param_3 = iVar1;
}
if (param_4 == (int *)0x0) {
return 1;
}
*param_4 = uVar4;
return 1;
}
|
|
66,253 |
mi_readinfo
|
eloqsql/storage/myisam/mi_locking.c
|
int _mi_readinfo(register MI_INFO *info, int lock_type, int check_keybuffer)
{
DBUG_ENTER("_mi_readinfo");
if (info->lock_type == F_UNLCK)
{
MYISAM_SHARE *share=info->s;
if (!share->tot_locks)
{
if (my_lock(share->kfile,lock_type,0L,F_TO_EOF,
info->lock_wait | MY_SEEK_NOT_DONE))
DBUG_RETURN(1);
if (mi_state_info_read_dsk(share->kfile, &share->state, 1))
{
int error= my_errno ? my_errno : HA_ERR_FILE_TOO_SHORT;
(void) my_lock(share->kfile,F_UNLCK,0L,F_TO_EOF,
MYF(MY_SEEK_NOT_DONE));
my_errno= error;
DBUG_RETURN(1);
}
}
if (check_keybuffer)
(void) _mi_test_if_changed(info);
info->invalidator=info->s->invalidator;
}
else if (lock_type == F_WRLCK && info->lock_type == F_RDLCK)
{
my_errno=EACCES; /* Not allowed to change */
DBUG_RETURN(-1); /* when have read_lock() */
}
DBUG_RETURN(0);
}
|
O3
|
c
|
mi_readinfo:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl 0x1f4(%rdi), %ecx
cmpl $0x2, %ecx
jne 0x7c66b
movl %edx, %r15d
movq %rdi, %r14
movq (%rdi), %rbx
cmpl $0x0, 0x368(%rbx)
je 0x7c68a
testl %r15d, %r15d
je 0x7c653
movq %r14, %rdi
callq 0x7c41a
movq (%r14), %rax
movq 0x2f0(%rax), %rax
movq %rax, 0x148(%r14)
xorl %eax, %eax
jmp 0x7c707
xorl $0x1, %esi
xorl %eax, %eax
orl %ecx, %esi
jne 0x7c707
callq 0xa1ac2
movl $0xd, (%rax)
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
jmp 0x7c707
movl 0x350(%rbx), %edi
movq 0x330(%r14), %r8
orq $0x20, %r8
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x9faf4
movl %eax, %ecx
movl $0x1, %eax
testl %ecx, %ecx
jne 0x7c707
movl 0x350(%rbx), %edi
movq %rbx, %rsi
movl $0x1, %edx
callq 0x7ffa0
testl %eax, %eax
je 0x7c646
callq 0xa1ac2
cmpl $0x0, (%rax)
je 0x7c6da
callq 0xa1ac2
movl (%rax), %r14d
jmp 0x7c6e0
movl $0xaf, %r14d
movl 0x350(%rbx), %edi
movl $0x20, %r8d
movl $0x2, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x9faf4
callq 0xa1ac2
movl %r14d, (%rax)
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
_mi_readinfo:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov ecx, [rdi+1F4h]
cmp ecx, 2
jnz short loc_7C66B
mov r15d, edx
mov r14, rdi
mov rbx, [rdi]
cmp dword ptr [rbx+368h], 0
jz short loc_7C68A
loc_7C646:
test r15d, r15d
jz short loc_7C653
mov rdi, r14
call _mi_test_if_changed
loc_7C653:
mov rax, [r14]
mov rax, [rax+2F0h]
mov [r14+148h], rax
xor eax, eax
jmp loc_7C707
loc_7C66B:
xor esi, 1
xor eax, eax
or esi, ecx
jnz loc_7C707
call _my_thread_var
mov dword ptr [rax], 0Dh
mov eax, 0FFFFFFFFh
jmp short loc_7C707
loc_7C68A:
mov edi, [rbx+350h]
mov r8, [r14+330h]
or r8, 20h
xor edx, edx
xor ecx, ecx
call my_lock
mov ecx, eax
mov eax, 1
test ecx, ecx
jnz short loc_7C707
mov edi, [rbx+350h]
mov rsi, rbx
mov edx, 1
call mi_state_info_read_dsk
test eax, eax
jz short loc_7C646
call _my_thread_var
cmp dword ptr [rax], 0
jz short loc_7C6DA
call _my_thread_var
mov r14d, [rax]
jmp short loc_7C6E0
loc_7C6DA:
mov r14d, 0AFh
loc_7C6E0:
mov edi, [rbx+350h]
mov r8d, 20h ; ' '
mov esi, 2
xor edx, edx
xor ecx, ecx
call my_lock
call _my_thread_var
mov [rax], r14d
mov eax, 1
loc_7C707:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long mi_readinfo(long long *a1, long long a2, int a3)
{
int v3; // ecx
long long v6; // rbx
long long result; // rax
int v8; // ecx
long long v9; // rdi
int v10; // r14d
long long v11; // rdi
v3 = *((_DWORD *)a1 + 125);
if ( v3 == 2 )
{
v6 = *a1;
if ( *(_DWORD *)(*a1 + 872) )
goto LABEL_3;
v8 = my_lock(*(unsigned int *)(v6 + 848), a2, 0LL, 0LL, a1[102] | 0x20);
result = 1LL;
if ( v8 )
return result;
v9 = *(unsigned int *)(v6 + 848);
if ( !(unsigned int)mi_state_info_read_dsk(v9, v6, 1LL) )
{
LABEL_3:
if ( a3 )
mi_test_if_changed(a1);
a1[41] = *(_QWORD *)(*a1 + 752);
return 0LL;
}
else
{
if ( *(_DWORD *)my_thread_var(v9) )
v10 = *(_DWORD *)my_thread_var(v9);
else
v10 = 175;
v11 = *(unsigned int *)(v6 + 848);
my_lock(v11, 2LL, 0LL, 0LL, 32LL);
*(_DWORD *)my_thread_var(v11) = v10;
return 1LL;
}
}
else
{
result = 0LL;
if ( !(v3 | (unsigned int)a2 ^ 1) )
{
*(_DWORD *)my_thread_var(a1) = 13;
return 0xFFFFFFFFLL;
}
}
return result;
}
|
_mi_readinfo:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV ECX,dword ptr [RDI + 0x1f4]
CMP ECX,0x2
JNZ 0x0017c66b
MOV R15D,EDX
MOV R14,RDI
MOV RBX,qword ptr [RDI]
CMP dword ptr [RBX + 0x368],0x0
JZ 0x0017c68a
LAB_0017c646:
TEST R15D,R15D
JZ 0x0017c653
MOV RDI,R14
CALL 0x0017c41a
LAB_0017c653:
MOV RAX,qword ptr [R14]
MOV RAX,qword ptr [RAX + 0x2f0]
MOV qword ptr [R14 + 0x148],RAX
XOR EAX,EAX
JMP 0x0017c707
LAB_0017c66b:
XOR ESI,0x1
XOR EAX,EAX
OR ESI,ECX
JNZ 0x0017c707
CALL 0x001a1ac2
MOV dword ptr [RAX],0xd
MOV EAX,0xffffffff
JMP 0x0017c707
LAB_0017c68a:
MOV EDI,dword ptr [RBX + 0x350]
MOV R8,qword ptr [R14 + 0x330]
OR R8,0x20
XOR EDX,EDX
XOR ECX,ECX
CALL 0x0019faf4
MOV ECX,EAX
MOV EAX,0x1
TEST ECX,ECX
JNZ 0x0017c707
MOV EDI,dword ptr [RBX + 0x350]
MOV RSI,RBX
MOV EDX,0x1
CALL 0x0017ffa0
TEST EAX,EAX
JZ 0x0017c646
CALL 0x001a1ac2
CMP dword ptr [RAX],0x0
JZ 0x0017c6da
CALL 0x001a1ac2
MOV R14D,dword ptr [RAX]
JMP 0x0017c6e0
LAB_0017c6da:
MOV R14D,0xaf
LAB_0017c6e0:
MOV EDI,dword ptr [RBX + 0x350]
MOV R8D,0x20
MOV ESI,0x2
XOR EDX,EDX
XOR ECX,ECX
CALL 0x0019faf4
CALL 0x001a1ac2
MOV dword ptr [RAX],R14D
MOV EAX,0x1
LAB_0017c707:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
int8 _mi_readinfo(long *param_1,int8 param_2,int param_3)
{
long lVar1;
int iVar2;
int *piVar3;
int4 *puVar4;
int4 uVar5;
if (*(int *)((long)param_1 + 500) != 2) {
if ((int)param_2 != 1 || *(int *)((long)param_1 + 500) != 0) {
return 0;
}
puVar4 = (int4 *)_my_thread_var();
*puVar4 = 0xd;
return 0xffffffff;
}
lVar1 = *param_1;
if (*(int *)(lVar1 + 0x368) == 0) {
iVar2 = my_lock(*(int4 *)(lVar1 + 0x350),param_2,0,0,param_1[0x66] | 0x20);
if (iVar2 != 0) {
return 1;
}
iVar2 = mi_state_info_read_dsk(*(int4 *)(lVar1 + 0x350),lVar1,1);
if (iVar2 != 0) {
piVar3 = (int *)_my_thread_var();
if (*piVar3 == 0) {
uVar5 = 0xaf;
}
else {
puVar4 = (int4 *)_my_thread_var();
uVar5 = *puVar4;
}
my_lock(*(int4 *)(lVar1 + 0x350),2,0,0,0x20);
puVar4 = (int4 *)_my_thread_var();
*puVar4 = uVar5;
return 1;
}
}
if (param_3 != 0) {
_mi_test_if_changed(param_1);
}
param_1[0x29] = *(long *)(*param_1 + 0x2f0);
return 0;
}
|
|
66,254 |
std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<bool&>(bool&, bool)
|
monkey531[P]llama/common/json.hpp
|
std::pair<bool, BasicJsonType*> handle_value(Value&& v, const bool skip_callback = false)
{
JSON_ASSERT(!keep_stack.empty());
// do not handle this value if we know it would be added to a discarded
// container
if (!keep_stack.back())
{
return {false, nullptr};
}
// create value
auto value = BasicJsonType(std::forward<Value>(v));
// check callback
const bool keep = skip_callback || callback(static_cast<int>(ref_stack.size()), parse_event_t::value, value);
// do not handle this value if we just learnt it shall be discarded
if (!keep)
{
return {false, nullptr};
}
if (ref_stack.empty())
{
root = std::move(value);
return {true, & root};
}
// skip this value if we already decided to skip the parent
// (https://github.com/nlohmann/json/issues/971#issuecomment-413678360)
if (!ref_stack.back())
{
return {false, nullptr};
}
// we now only expect arrays and objects
JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
// array
if (ref_stack.back()->is_array())
{
ref_stack.back()->m_data.m_value.array->emplace_back(std::move(value));
return {true, & (ref_stack.back()->m_data.m_value.array->back())};
}
// object
JSON_ASSERT(ref_stack.back()->is_object());
// check if we should store an element for the current key
JSON_ASSERT(!key_keep_stack.empty());
const bool store_element = key_keep_stack.back();
key_keep_stack.pop_back();
if (!store_element)
{
return {false, nullptr};
}
JSON_ASSERT(object_element);
*object_element = std::move(value);
return {true, object_element};
}
|
O0
|
cpp
|
std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<bool&>(bool&, bool):
subq $0x148, %rsp # imm = 0x148
movb %dl, %al
movq %rdi, 0x130(%rsp)
movq %rsi, 0x128(%rsp)
andb $0x1, %al
movb %al, 0x127(%rsp)
movq 0x130(%rsp), %rdi
movq %rdi, 0x40(%rsp)
addq $0x20, %rdi
callq 0xae730
testb $0x1, %al
jne 0xba0de
jmp 0xba0ff
leaq 0x15528f(%rip), %rdi # 0x20f374
movl $0x1c28, %esi # imm = 0x1C28
leaq 0x14f059(%rip), %rdx # 0x20914a
leaq 0x1561fc(%rip), %rcx # 0x2102f4
movb $0x0, %al
callq 0x5aed0
movq 0x40(%rsp), %rdi
addq $0x20, %rdi
callq 0xae7b0
movq %rax, 0x110(%rsp)
movq %rdx, 0x118(%rsp)
leaq 0x110(%rsp), %rdi
callq 0xac7a0
xorb $-0x1, %al
testb $0x1, %al
jne 0xba132
jmp 0xba168
movb $0x0, 0x10f(%rsp)
movq $0x0, 0x100(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0x10f(%rsp), %rsi
leaq 0x100(%rsp), %rdx
callq 0xaf2c0
jmp 0xba5d1
movq 0x128(%rsp), %rsi
leaq 0xf0(%rsp), %rdi
callq 0xba600
movb $0x1, %al
testb $0x1, 0x127(%rsp)
movb %al, 0x3f(%rsp)
jne 0xba1d0
movq 0x40(%rsp), %rdi
movq %rdi, %rax
subq $-0x80, %rax
movq %rax, 0x30(%rsp)
addq $0x8, %rdi
callq 0xae8b0
movq 0x30(%rsp), %rdi
movl %eax, %esi
movl $0x5, %edx
leaq 0xf0(%rsp), %rcx
callq 0xae850
movb %al, 0x3e(%rsp)
jmp 0xba1c6
movb 0x3e(%rsp), %al
movb %al, 0x3f(%rsp)
jmp 0xba1d0
movb 0x3f(%rsp), %al
andb $0x1, %al
movb %al, 0xef(%rsp)
testb $0x1, 0xef(%rsp)
jne 0xba250
movb $0x0, 0xdb(%rsp)
movq $0x0, 0xd0(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0xdb(%rsp), %rsi
leaq 0xd0(%rsp), %rdx
callq 0xaf2c0
jmp 0xba21a
movl $0x1, 0xcc(%rsp)
jmp 0xba5c4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xe0(%rsp)
movl %eax, 0xdc(%rsp)
leaq 0xf0(%rsp), %rdi
callq 0xa00f0
jmp 0xba5e8
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xaf2f0
testb $0x1, %al
jne 0xba264
jmp 0xba2e1
leaq 0xb8(%rsp), %rdi
movq %rdi, 0x28(%rsp)
leaq 0xf0(%rsp), %rsi
callq 0xaf340
movq 0x28(%rsp), %rsi
movq 0x40(%rsp), %rax
movq (%rax), %rdi
callq 0xa92d0
movq 0x28(%rsp), %rdi
callq 0xa00f0
movq 0x40(%rsp), %rax
movb $0x1, 0xb7(%rsp)
movq (%rax), %rax
movq %rax, 0xa8(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0xb7(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0xaf3c0
jmp 0xba2d1
movl $0x1, 0xcc(%rsp)
jmp 0xba5c4
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xaeea0
cmpq $0x0, (%rax)
jne 0xba338
movb $0x0, 0xa7(%rsp)
movq $0x0, 0x98(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0xa7(%rsp), %rsi
leaq 0x98(%rsp), %rdx
callq 0xaf2c0
jmp 0xba328
movl $0x1, 0xcc(%rsp)
jmp 0xba5c4
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xaeea0
movq (%rax), %rdi
callq 0xaf3f0
testb $0x1, %al
jne 0xba38f
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xaeea0
movq (%rax), %rdi
callq 0xaf410
testb $0x1, %al
jne 0xba38f
leaq 0x155001(%rip), %rdi # 0x20f374
leaq 0x14edd0(%rip), %rdx # 0x20914a
leaq 0x155f87(%rip), %rcx # 0x210308
xorl %eax, %eax
movl $0x1c4b, %esi # imm = 0x1C4B
callq 0x5aed0
jmp 0xba38f
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xaeea0
movq (%rax), %rdi
callq 0xaf3f0
testb $0x1, %al
jne 0xba3ab
jmp 0xba428
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xaeea0
movq (%rax), %rax
movq 0x8(%rax), %rdi
leaq 0xf0(%rsp), %rsi
callq 0xaf430
jmp 0xba3cf
movq 0x40(%rsp), %rdi
movb $0x1, 0x97(%rsp)
addq $0x8, %rdi
callq 0xaeea0
movq (%rax), %rax
movq 0x8(%rax), %rdi
callq 0xaf4b0
movq %rax, 0x88(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0x97(%rsp), %rsi
leaq 0x88(%rsp), %rdx
callq 0xaf3c0
jmp 0xba418
movl $0x1, 0xcc(%rsp)
jmp 0xba5c4
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0xaeea0
movq (%rax), %rdi
callq 0xaf410
testb $0x1, %al
jne 0xba465
leaq 0x154f2b(%rip), %rdi # 0x20f374
leaq 0x14ecfa(%rip), %rdx # 0x20914a
leaq 0x155ed1(%rip), %rcx # 0x210328
xorl %eax, %eax
movl $0x1c55, %esi # imm = 0x1C55
callq 0x5aed0
jmp 0xba465
movq 0x40(%rsp), %rdi
addq $0x48, %rdi
callq 0xae730
testb $0x1, %al
jne 0xba479
jmp 0xba49c
leaq 0x154ef4(%rip), %rdi # 0x20f374
leaq 0x14ecc3(%rip), %rdx # 0x20914a
leaq 0x155eb8(%rip), %rcx # 0x210346
xorl %eax, %eax
movl $0x1c57, %esi # imm = 0x1C57
callq 0x5aed0
jmp 0xba49c
movq 0x40(%rsp), %rdi
addq $0x48, %rdi
callq 0xae7b0
movq %rdx, 0x18(%rsp)
movq %rax, 0x20(%rsp)
jmp 0xba4b6
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rcx
movq %rcx, 0x70(%rsp)
movq %rax, 0x78(%rsp)
leaq 0x70(%rsp), %rdi
callq 0xac7a0
movq 0x40(%rsp), %rdi
movb %al, 0x87(%rsp)
addq $0x48, %rdi
callq 0xae830
jmp 0xba4eb
testb $0x1, 0x87(%rsp)
jne 0xba52c
movb $0x0, 0x6f(%rsp)
movq $0x0, 0x60(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0x6f(%rsp), %rsi
leaq 0x60(%rsp), %rdx
callq 0xaf2c0
jmp 0xba51c
movl $0x1, 0xcc(%rsp)
jmp 0xba5c4
movq 0x40(%rsp), %rax
cmpq $0x0, 0x70(%rax)
jne 0xba55b
leaq 0x154e35(%rip), %rdi # 0x20f374
leaq 0x14ec04(%rip), %rdx # 0x20914a
leaq 0x155e11(%rip), %rcx # 0x21035e
xorl %eax, %eax
movl $0x1c60, %esi # imm = 0x1C60
callq 0x5aed0
jmp 0xba55b
leaq 0x50(%rsp), %rdi
movq %rdi, 0x8(%rsp)
leaq 0xf0(%rsp), %rsi
callq 0xaf340
movq 0x40(%rsp), %rax
movq 0x8(%rsp), %rsi
movq %rax, %rcx
addq $0x70, %rcx
movq %rcx, 0x10(%rsp)
movq 0x70(%rax), %rdi
callq 0xa92d0
movq 0x8(%rsp), %rdi
callq 0xa00f0
movq 0x10(%rsp), %rdx
movb $0x1, 0x4f(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0x4f(%rsp), %rsi
callq 0xaf4f0
jmp 0xba5b9
movl $0x1, 0xcc(%rsp)
leaq 0xf0(%rsp), %rdi
callq 0xa00f0
movb 0x138(%rsp), %al
movq 0x140(%rsp), %rdx
addq $0x148, %rsp # imm = 0x148
retq
movq 0xe0(%rsp), %rdi
callq 0x5aba0
nopw %cs:(%rax,%rax)
nop
|
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueIRmEESt4pairIbPSF_EOT_b:
sub rsp, 148h
mov al, dl
mov [rsp+148h+var_18], rdi
mov [rsp+148h+var_20], rsi
and al, 1
mov [rsp+148h+var_21], al
mov rdi, [rsp+148h+var_18]
mov [rsp+148h+var_108], rdi
add rdi, 20h ; ' '
call _ZNKSt6vectorIbSaIbEE5emptyEv; std::vector<bool>::empty(void)
test al, 1
jnz short loc_BA0DE
jmp short loc_BA0FF
loc_BA0DE:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
mov esi, 1C28h
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aKeepStackEmpty; "!keep_stack.empty()"
mov al, 0
call _ggml_abort
loc_BA0FF:
mov rdi, [rsp+148h+var_108]
add rdi, 20h ; ' '
call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void)
mov [rsp+148h+var_38], rax
mov [rsp+148h+var_30], rdx
lea rdi, [rsp+148h+var_38]
call _ZNKSt14_Bit_referencecvbEv; std::_Bit_reference::operator bool(void)
xor al, 0FFh
test al, 1
jnz short loc_BA132
jmp short loc_BA168
loc_BA132:
mov [rsp+148h+var_39], 0
mov [rsp+148h+var_48], 0
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_39]
lea rdx, [rsp+148h+var_48]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp loc_BA5D1
loc_BA168:
mov rsi, [rsp+148h+var_20]
lea rdi, [rsp+148h+var_58]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRmmTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_
mov al, 1
test [rsp+148h+var_21], 1
mov [rsp+148h+var_109], al
jnz short loc_BA1D0
mov rdi, [rsp+148h+var_108]
mov rax, rdi
sub rax, 0FFFFFFFFFFFFFF80h
mov [rsp+148h+var_118], rax
add rdi, 8
call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4sizeEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::size(void)
mov rdi, [rsp+148h+var_118]
mov esi, eax
mov edx, 5
lea rcx, [rsp+148h+var_58]
call _ZNKSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEclEiS3_SH_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::operator()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)
mov [rsp+148h+var_10A], al
jmp short $+2
loc_BA1C6:
mov al, [rsp+148h+var_10A]
mov [rsp+148h+var_109], al
jmp short $+2
loc_BA1D0:
mov al, [rsp+148h+var_109]
and al, 1
mov [rsp+148h+var_59], al
test [rsp+148h+var_59], 1
jnz short loc_BA250
mov [rsp+148h+var_6D], 0
mov [rsp+148h+var_78], 0
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_6D]
lea rdx, [rsp+148h+var_78]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_BA21A:
mov [rsp+148h+var_7C], 1
jmp loc_BA5C4
mov rcx, rax
mov eax, edx
mov [rsp+arg_D8], rcx
mov [rsp+arg_D4], eax
lea rdi, [rsp+arg_E8]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
jmp loc_BA5E8
loc_BA250:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE5emptyEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::empty(void)
test al, 1
jnz short loc_BA264
jmp short loc_BA2E1
loc_BA264:
lea rdi, [rsp+148h+var_90]
mov [rsp+148h+var_120], rdi
lea rsi, [rsp+148h+var_58]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&)
mov rsi, [rsp+148h+var_120]
mov rax, [rsp+148h+var_108]
mov rdi, [rax]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, [rsp+148h+var_120]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
mov rax, [rsp+148h+var_108]
mov [rsp+148h+var_91], 1
mov rax, [rax]
mov [rsp+148h+var_A0], rax
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_91]
lea rdx, [rsp+148h+var_A0]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_BA2D1:
mov [rsp+148h+var_7C], 1
jmp loc_BA5C4
loc_BA2E1:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
cmp qword ptr [rax], 0
jnz short loc_BA338
mov [rsp+148h+var_A1], 0
mov [rsp+148h+var_B0], 0
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_A1]
lea rdx, [rsp+148h+var_B0]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_BA328:
mov [rsp+148h+var_7C], 1
jmp loc_BA5C4
loc_BA338:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8is_arrayEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_array(void)
test al, 1
jnz short loc_BA38F
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_objectEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_object(void)
test al, 1
jnz short loc_BA38F
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aRefStackBackIs; "ref_stack.back()->is_array() || ref_sta"...
xor eax, eax
mov esi, 1C4Bh
call _ggml_abort
jmp short $+2
loc_BA38F:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8is_arrayEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_array(void)
test al, 1
jnz short loc_BA3AB
jmp short loc_BA428
loc_BA3AB:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rax, [rax]
mov rdi, [rax+8]
lea rsi, [rsp+148h+var_58]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
jmp short $+2
loc_BA3CF:
mov rdi, [rsp+148h+var_108]
mov [rsp+148h+var_B1], 1
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rax, [rax]
mov rdi, [rax+8]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::back(void)
mov [rsp+148h+var_C0], rax
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_B1]
lea rdx, [rsp+148h+var_C0]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_BA418:
mov [rsp+148h+var_7C], 1
jmp loc_BA5C4
loc_BA428:
mov rdi, [rsp+148h+var_108]
add rdi, 8
call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void)
mov rdi, [rax]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_objectEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_object(void)
test al, 1
jnz short loc_BA465
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aRefStackBackIs+20h; "ref_stack.back()->is_object()"
xor eax, eax
mov esi, 1C55h
call _ggml_abort
jmp short $+2
loc_BA465:
mov rdi, [rsp+148h+var_108]
add rdi, 48h ; 'H'
call _ZNKSt6vectorIbSaIbEE5emptyEv; std::vector<bool>::empty(void)
test al, 1
jnz short loc_BA479
jmp short loc_BA49C
loc_BA479:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aKeyKeepStackEm; "!key_keep_stack.empty()"
xor eax, eax
mov esi, 1C57h
call _ggml_abort
jmp short $+2
loc_BA49C:
mov rdi, [rsp+148h+var_108]
add rdi, 48h ; 'H'
call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void)
mov [rsp+148h+var_130], rdx
mov [rsp+148h+var_128], rax
jmp short $+2
loc_BA4B6:
mov rax, [rsp+148h+var_130]
mov rcx, [rsp+148h+var_128]
mov [rsp+148h+var_D8], rcx
mov [rsp+148h+var_D0], rax
lea rdi, [rsp+148h+var_D8]
call _ZNKSt14_Bit_referencecvbEv; std::_Bit_reference::operator bool(void)
mov rdi, [rsp+148h+var_108]
mov [rsp+148h+var_C1], al
add rdi, 48h ; 'H'
call _ZNSt6vectorIbSaIbEE8pop_backEv; std::vector<bool>::pop_back(void)
jmp short $+2
loc_BA4EB:
test [rsp+148h+var_C1], 1
jnz short loc_BA52C
mov [rsp+148h+var_D9], 0
mov [rsp+148h+var_E8], 0
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_D9]
lea rdx, [rsp+148h+var_E8]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
jmp short $+2
loc_BA51C:
mov [rsp+148h+var_7C], 1
jmp loc_BA5C4
loc_BA52C:
mov rax, [rsp+148h+var_108]
cmp qword ptr [rax+70h], 0
jnz short loc_BA55B
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aObjectElement; "object_element"
xor eax, eax
mov esi, 1C60h
call _ggml_abort
jmp short $+2
loc_BA55B:
lea rdi, [rsp+148h+var_F8]
mov [rsp+148h+var_140], rdi
lea rsi, [rsp+148h+var_58]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&)
mov rax, [rsp+148h+var_108]
mov rsi, [rsp+148h+var_140]
mov rcx, rax
add rcx, 70h ; 'p'
mov [rsp+148h+var_138], rcx
mov rdi, [rax+70h]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, [rsp+148h+var_140]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
mov rdx, [rsp+148h+var_138]
mov [rsp+148h+var_F9], 1
lea rdi, [rsp+148h+var_10]
lea rsi, [rsp+148h+var_F9]
call _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbRSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISK_SL_EEEbE4typeELb1EEEOSK_OSL_
jmp short $+2
loc_BA5B9:
mov [rsp+148h+var_7C], 1
loc_BA5C4:
lea rdi, [rsp+148h+var_58]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
loc_BA5D1:
mov al, [rsp+148h+var_10]
mov rdx, [rsp+148h+var_8]
add rsp, 148h
retn
loc_BA5E8:
mov rdi, [rsp+arg_D8]
call __Unwind_Resume
|
char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::handle_value<unsigned long &>(
long long a1,
long long a2,
char a3)
{
long long v3; // rdx
int v4; // eax
_BYTE **v5; // rax
_BYTE **v6; // rax
_BYTE **v7; // rax
long long v8; // rax
long long v9; // rax
_BYTE **v10; // rax
long long v11; // rdx
char v13; // [rsp+3Fh] [rbp-109h]
char v14; // [rsp+4Fh] [rbp-F9h] BYREF
__int128 v15; // [rsp+50h] [rbp-F8h] BYREF
long long v16; // [rsp+60h] [rbp-E8h]
char v17; // [rsp+6Fh] [rbp-D9h] BYREF
_QWORD v18[2]; // [rsp+70h] [rbp-D8h] BYREF
bool v19; // [rsp+87h] [rbp-C1h]
long long v20; // [rsp+88h] [rbp-C0h] BYREF
char v21; // [rsp+97h] [rbp-B1h] BYREF
long long v22; // [rsp+98h] [rbp-B0h]
char v23; // [rsp+A7h] [rbp-A1h] BYREF
long long v24; // [rsp+A8h] [rbp-A0h] BYREF
char v25; // [rsp+B7h] [rbp-91h] BYREF
__int128 v26; // [rsp+B8h] [rbp-90h] BYREF
int v27; // [rsp+CCh] [rbp-7Ch]
long long v28; // [rsp+D0h] [rbp-78h]
_BYTE v29[21]; // [rsp+DBh] [rbp-6Dh] BYREF
_BYTE v30[16]; // [rsp+F0h] [rbp-58h] BYREF
long long v31; // [rsp+100h] [rbp-48h]
char v32; // [rsp+10Fh] [rbp-39h] BYREF
_QWORD v33[2]; // [rsp+110h] [rbp-38h] BYREF
char v34; // [rsp+127h] [rbp-21h]
long long v35; // [rsp+128h] [rbp-20h]
long long v36; // [rsp+130h] [rbp-18h]
_BYTE v37[8]; // [rsp+138h] [rbp-10h] BYREF
v36 = a1;
v35 = a2;
v34 = a3 & 1;
if ( (std::vector<bool>::empty((unsigned long long **)(a1 + 32)) & 1) != 0 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7208LL,
"GGML_ASSERT(%s) failed",
"!keep_stack.empty()");
v33[0] = std::vector<bool>::back(a1 + 32);
v33[1] = v3;
if ( std::_Bit_reference::operator bool((long long)v33) )
{
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRmmTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_(
v30,
v35);
v13 = 1;
if ( (v34 & 1) == 0 )
{
v4 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::size((_QWORD *)(a1 + 8));
v13 = std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::operator()(
(std::_Function_base *)(a1 + 128),
v4,
5,
(long long)v30);
}
v29[20] = v13 & 1;
if ( (v13 & 1) != 0 )
{
if ( (std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::empty(a1 + 8) & 1) != 0 )
{
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
&v26,
(long long)v30);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
*(_QWORD *)a1,
(long long)&v26);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)&v26);
v25 = 1;
v24 = *(_QWORD *)a1;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v37,
&v25,
&v24);
v27 = 1;
}
else if ( *(_QWORD *)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8) )
{
v5 = (_BYTE **)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
if ( !nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_array(*v5) )
{
v6 = (_BYTE **)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
if ( !nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_object(*v6) )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7243LL,
"GGML_ASSERT(%s) failed",
"ref_stack.back()->is_array() || ref_stack.back()->is_object()");
}
v7 = (_BYTE **)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
if ( nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_array(*v7) )
{
v8 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
*(_QWORD *)(*(_QWORD *)v8 + 8LL),
(long long)v30);
v21 = 1;
v9 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
v20 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::back(*(_QWORD *)(*(_QWORD *)v9 + 8LL));
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v37,
&v21,
&v20);
v27 = 1;
}
else
{
v10 = (_BYTE **)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8);
if ( !nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_object(*v10) )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7253LL,
"GGML_ASSERT(%s) failed",
"ref_stack.back()->is_object()");
if ( (std::vector<bool>::empty((unsigned long long **)(a1 + 72)) & 1) != 0 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7255LL,
"GGML_ASSERT(%s) failed",
"!key_keep_stack.empty()");
v18[0] = std::vector<bool>::back(a1 + 72);
v18[1] = v11;
v19 = std::_Bit_reference::operator bool((long long)v18);
std::vector<bool>::pop_back(a1 + 72);
if ( v19 )
{
if ( !*(_QWORD *)(a1 + 112) )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7264LL,
"GGML_ASSERT(%s) failed",
"object_element");
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
&v15,
(long long)v30);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
*(_QWORD *)(a1 + 112),
(long long)&v15);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)&v15);
v14 = 1;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbRSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISK_SL_EEEbE4typeELb1EEEOSK_OSL_(
(long long)v37,
&v14,
(_QWORD *)(a1 + 112));
v27 = 1;
}
else
{
v17 = 0;
v16 = 0LL;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v37,
&v17);
v27 = 1;
}
}
}
else
{
v23 = 0;
v22 = 0LL;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v37,
&v23);
v27 = 1;
}
}
else
{
v29[0] = 0;
v28 = 0LL;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v37,
v29);
v27 = 1;
}
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v30);
}
else
{
v32 = 0;
v31 = 0LL;
ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
(long long)v37,
&v32);
}
return v37[0];
}
|
handle_value<unsigned_long&>:
SUB RSP,0x148
MOV AL,DL
MOV qword ptr [RSP + 0x130],RDI
MOV qword ptr [RSP + 0x128],RSI
AND AL,0x1
MOV byte ptr [RSP + 0x127],AL
MOV RDI,qword ptr [RSP + 0x130]
MOV qword ptr [RSP + 0x40],RDI
ADD RDI,0x20
CALL 0x001ae730
TEST AL,0x1
JNZ 0x001ba0de
JMP 0x001ba0ff
LAB_001ba0de:
LEA RDI,[0x30f374]
MOV ESI,0x1c28
LEA RDX,[0x30914a]
LEA RCX,[0x3102f4]
MOV AL,0x0
CALL 0x0015aed0
LAB_001ba0ff:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x20
CALL 0x001ae7b0
MOV qword ptr [RSP + 0x110],RAX
MOV qword ptr [RSP + 0x118],RDX
LEA RDI,[RSP + 0x110]
CALL 0x001ac7a0
XOR AL,0xff
TEST AL,0x1
JNZ 0x001ba132
JMP 0x001ba168
LAB_001ba132:
MOV byte ptr [RSP + 0x10f],0x0
MOV qword ptr [RSP + 0x100],0x0
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0x10f]
LEA RDX,[RSP + 0x100]
CALL 0x001af2c0
JMP 0x001ba5d1
LAB_001ba168:
MOV RSI,qword ptr [RSP + 0x128]
LEA RDI,[RSP + 0xf0]
CALL 0x001ba600
MOV AL,0x1
TEST byte ptr [RSP + 0x127],0x1
MOV byte ptr [RSP + 0x3f],AL
JNZ 0x001ba1d0
MOV RDI,qword ptr [RSP + 0x40]
MOV RAX,RDI
SUB RAX,-0x80
MOV qword ptr [RSP + 0x30],RAX
ADD RDI,0x8
CALL 0x001ae8b0
MOV RDI,qword ptr [RSP + 0x30]
MOV ESI,EAX
LAB_001ba1ae:
MOV EDX,0x5
LEA RCX,[RSP + 0xf0]
CALL 0x001ae850
MOV byte ptr [RSP + 0x3e],AL
JMP 0x001ba1c6
LAB_001ba1c6:
MOV AL,byte ptr [RSP + 0x3e]
MOV byte ptr [RSP + 0x3f],AL
JMP 0x001ba1d0
LAB_001ba1d0:
MOV AL,byte ptr [RSP + 0x3f]
AND AL,0x1
MOV byte ptr [RSP + 0xef],AL
TEST byte ptr [RSP + 0xef],0x1
JNZ 0x001ba250
MOV byte ptr [RSP + 0xdb],0x0
MOV qword ptr [RSP + 0xd0],0x0
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0xdb]
LEA RDX,[RSP + 0xd0]
CALL 0x001af2c0
JMP 0x001ba21a
LAB_001ba21a:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001ba5c4
LAB_001ba250:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001af2f0
TEST AL,0x1
JNZ 0x001ba264
JMP 0x001ba2e1
LAB_001ba264:
LEA RDI,[RSP + 0xb8]
MOV qword ptr [RSP + 0x28],RDI
LEA RSI,[RSP + 0xf0]
CALL 0x001af340
MOV RSI,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x40]
MOV RDI,qword ptr [RAX]
CALL 0x001a92d0
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x001a00f0
MOV RAX,qword ptr [RSP + 0x40]
MOV byte ptr [RSP + 0xb7],0x1
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0xa8],RAX
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0xb7]
LEA RDX,[RSP + 0xa8]
CALL 0x001af3c0
JMP 0x001ba2d1
LAB_001ba2d1:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001ba5c4
LAB_001ba2e1:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001aeea0
CMP qword ptr [RAX],0x0
JNZ 0x001ba338
MOV byte ptr [RSP + 0xa7],0x0
MOV qword ptr [RSP + 0x98],0x0
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0xa7]
LEA RDX,[RSP + 0x98]
CALL 0x001af2c0
JMP 0x001ba328
LAB_001ba328:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001ba5c4
LAB_001ba338:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001aeea0
MOV RDI,qword ptr [RAX]
CALL 0x001af3f0
TEST AL,0x1
JNZ 0x001ba38f
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001aeea0
MOV RDI,qword ptr [RAX]
CALL 0x001af410
TEST AL,0x1
JNZ 0x001ba38f
LEA RDI,[0x30f374]
LEA RDX,[0x30914a]
LEA RCX,[0x310308]
XOR EAX,EAX
MOV ESI,0x1c4b
CALL 0x0015aed0
JMP 0x001ba38f
LAB_001ba38f:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001aeea0
MOV RDI,qword ptr [RAX]
CALL 0x001af3f0
TEST AL,0x1
JNZ 0x001ba3ab
JMP 0x001ba428
LAB_001ba3ab:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001aeea0
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x8]
LEA RSI,[RSP + 0xf0]
CALL 0x001af430
JMP 0x001ba3cf
LAB_001ba3cf:
MOV RDI,qword ptr [RSP + 0x40]
MOV byte ptr [RSP + 0x97],0x1
ADD RDI,0x8
CALL 0x001aeea0
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x8]
CALL 0x001af4b0
MOV qword ptr [RSP + 0x88],RAX
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0x97]
LEA RDX,[RSP + 0x88]
CALL 0x001af3c0
JMP 0x001ba418
LAB_001ba418:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001ba5c4
LAB_001ba428:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x8
CALL 0x001aeea0
MOV RDI,qword ptr [RAX]
CALL 0x001af410
TEST AL,0x1
JNZ 0x001ba465
LEA RDI,[0x30f374]
LEA RDX,[0x30914a]
LEA RCX,[0x310328]
XOR EAX,EAX
MOV ESI,0x1c55
CALL 0x0015aed0
JMP 0x001ba465
LAB_001ba465:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x48
CALL 0x001ae730
TEST AL,0x1
JNZ 0x001ba479
JMP 0x001ba49c
LAB_001ba479:
LEA RDI,[0x30f374]
LEA RDX,[0x30914a]
LEA RCX,[0x310346]
XOR EAX,EAX
MOV ESI,0x1c57
CALL 0x0015aed0
JMP 0x001ba49c
LAB_001ba49c:
MOV RDI,qword ptr [RSP + 0x40]
ADD RDI,0x48
CALL 0x001ae7b0
MOV qword ptr [RSP + 0x18],RDX
MOV qword ptr [RSP + 0x20],RAX
JMP 0x001ba4b6
LAB_001ba4b6:
MOV RAX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x70],RCX
MOV qword ptr [RSP + 0x78],RAX
LEA RDI,[RSP + 0x70]
CALL 0x001ac7a0
MOV RDI,qword ptr [RSP + 0x40]
MOV byte ptr [RSP + 0x87],AL
ADD RDI,0x48
CALL 0x001ae830
JMP 0x001ba4eb
LAB_001ba4eb:
TEST byte ptr [RSP + 0x87],0x1
JNZ 0x001ba52c
MOV byte ptr [RSP + 0x6f],0x0
MOV qword ptr [RSP + 0x60],0x0
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0x6f]
LEA RDX,[RSP + 0x60]
CALL 0x001af2c0
JMP 0x001ba51c
LAB_001ba51c:
MOV dword ptr [RSP + 0xcc],0x1
JMP 0x001ba5c4
LAB_001ba52c:
MOV RAX,qword ptr [RSP + 0x40]
CMP qword ptr [RAX + 0x70],0x0
JNZ 0x001ba55b
LEA RDI,[0x30f374]
LEA RDX,[0x30914a]
LEA RCX,[0x31035e]
XOR EAX,EAX
MOV ESI,0x1c60
CALL 0x0015aed0
JMP 0x001ba55b
LAB_001ba55b:
LEA RDI,[RSP + 0x50]
MOV qword ptr [RSP + 0x8],RDI
LEA RSI,[RSP + 0xf0]
CALL 0x001af340
MOV RAX,qword ptr [RSP + 0x40]
MOV RSI,qword ptr [RSP + 0x8]
MOV RCX,RAX
ADD RCX,0x70
MOV qword ptr [RSP + 0x10],RCX
MOV RDI,qword ptr [RAX + 0x70]
CALL 0x001a92d0
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x001a00f0
MOV RDX,qword ptr [RSP + 0x10]
MOV byte ptr [RSP + 0x4f],0x1
LEA RDI,[RSP + 0x138]
LEA RSI,[RSP + 0x4f]
CALL 0x001af4f0
LAB_001ba5b7:
JMP 0x001ba5b9
LAB_001ba5b9:
MOV dword ptr [RSP + 0xcc],0x1
LAB_001ba5c4:
LEA RDI,[RSP + 0xf0]
CALL 0x001a00f0
LAB_001ba5d1:
MOV AL,byte ptr [RSP + 0x138]
MOV RDX,qword ptr [RSP + 0x140]
ADD RSP,0x148
RET
|
/* std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>*>
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::handle_value<unsigned long&>(unsigned long&, bool) */
int1 [16] __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::handle_value<unsigned_long&>
(json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*this,ulong *param_1,bool param_2)
{
bool bVar1;
int4 uVar2;
ulong uVar3;
long *plVar4;
int8 *puVar5;
int8 uVar6;
int1 auVar7 [16];
byte local_109;
int1 local_f9;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_f8 [16];
int8 local_e8;
int1 local_d9;
int1 local_d8 [16];
byte local_c1;
int8 local_c0;
int1 local_b1;
int8 local_b0;
int1 local_a1;
int8 local_a0;
int1 local_91;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_90 [20];
int4 local_7c;
int8 local_78;
int1 local_6d [20];
byte local_59;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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];
int8 local_48;
int1 local_39;
_Bit_reference local_38 [23];
byte local_21;
ulong *local_20;
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*local_18;
int1 local_10 [8];
int8 local_8;
local_21 = param_2;
local_20 = param_1;
local_18 = this;
uVar3 = std::vector<bool,std::allocator<bool>>::empty
((vector<bool,std::allocator<bool>> *)(this + 0x20));
if ((uVar3 & 1) != 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x1c28,
"GGML_ASSERT(%s) failed","!keep_stack.empty()");
}
local_38._0_16_ =
std::vector<bool,std::allocator<bool>>::back
((vector<bool,std::allocator<bool>> *)(this + 0x20));
bVar1 = std::_Bit_reference::operator_cast_to_bool(local_38);
if (((bVar1 ^ 0xffU) & 1) == 0) {
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRmmTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_
(local_58,local_20);
local_109 = 1;
if ((local_21 & 1) == 0) {
uVar2 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::size((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
/* try { // try from 001ba1ae to 001ba5b6 has its CatchHandler @ 001ba22a */
local_109 = std::
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
::operator()((function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
*)(this + 0x80),uVar2,5,local_58);
}
local_59 = local_109 & 1;
if (local_59 == 0) {
local_6d[0] = 0;
local_78 = 0;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,local_6d,&local_78);
}
else {
uVar3 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::empty((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
if ((uVar3 & 1) == 0) {
plVar4 = (long *)std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
if (*plVar4 == 0) {
local_a1 = 0;
local_b0 = 0;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_a1,&local_b0);
}
else {
puVar5 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
uVar3 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::is_array((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar5);
if ((uVar3 & 1) == 0) {
puVar5 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
uVar3 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::is_object((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar5);
if ((uVar3 & 1) == 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp"
,0x1c4b,"GGML_ASSERT(%s) failed",
"ref_stack.back()->is_array() || ref_stack.back()->is_object()");
}
}
puVar5 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
uVar3 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::is_array((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar5);
if ((uVar3 & 1) == 0) {
puVar5 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
uVar3 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::is_object((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar5);
if ((uVar3 & 1) == 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp"
,0x1c55,"GGML_ASSERT(%s) failed","ref_stack.back()->is_object()");
}
uVar3 = std::vector<bool,std::allocator<bool>>::empty
((vector<bool,std::allocator<bool>> *)(this + 0x48));
if ((uVar3 & 1) != 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp"
,0x1c57,"GGML_ASSERT(%s) failed","!key_keep_stack.empty()");
}
local_d8 = std::vector<bool,std::allocator<bool>>::back
((vector<bool,std::allocator<bool>> *)(this + 0x48));
local_c1 = std::_Bit_reference::operator_cast_to_bool((_Bit_reference *)local_d8);
std::vector<bool,std::allocator<bool>>::pop_back
((vector<bool,std::allocator<bool>> *)(this + 0x48));
if ((local_c1 & 1) == 0) {
local_d9 = 0;
local_e8 = 0;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_d9,&local_e8);
}
else {
if (*(long *)(this + 0x70) == 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp"
,0x1c60,"GGML_ASSERT(%s) failed","object_element");
}
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_f8,local_58);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)(this + 0x70),local_f8);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_f8);
local_f9 = 1;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbRSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISK_SL_EEEbE4typeELb1EEEOSK_OSL_
(local_10,&local_f9,this + 0x70);
}
}
else {
plVar4 = (long *)std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::
emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(*plVar4 + 8),local_58);
local_b1 = 1;
plVar4 = (long *)std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
local_c0 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::back(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(*plVar4 + 8));
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_b1,&local_c0);
}
}
}
else {
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_90,local_58);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)this,local_90);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_90);
local_91 = 1;
local_a0 = *(int8 *)this;
_ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbSF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_91,&local_a0);
}
}
local_7c = 1;
uVar6 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_58);
}
else {
local_39 = 0;
local_48 = 0;
uVar6 = _ZNSt4pairIbPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEEC2IbDnTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
(local_10,&local_39,&local_48);
}
auVar7._1_7_ = (int7)((ulong)uVar6 >> 8);
auVar7[0] = local_10[0];
auVar7._8_8_ = local_8;
return auVar7;
}
|
|
66,255 |
std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<bool&>(bool&, bool)
|
monkey531[P]llama/common/json.hpp
|
std::pair<bool, BasicJsonType*> handle_value(Value&& v, const bool skip_callback = false)
{
JSON_ASSERT(!keep_stack.empty());
// do not handle this value if we know it would be added to a discarded
// container
if (!keep_stack.back())
{
return {false, nullptr};
}
// create value
auto value = BasicJsonType(std::forward<Value>(v));
// check callback
const bool keep = skip_callback || callback(static_cast<int>(ref_stack.size()), parse_event_t::value, value);
// do not handle this value if we just learnt it shall be discarded
if (!keep)
{
return {false, nullptr};
}
if (ref_stack.empty())
{
root = std::move(value);
return {true, & root};
}
// skip this value if we already decided to skip the parent
// (https://github.com/nlohmann/json/issues/971#issuecomment-413678360)
if (!ref_stack.back())
{
return {false, nullptr};
}
// we now only expect arrays and objects
JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
// array
if (ref_stack.back()->is_array())
{
ref_stack.back()->m_data.m_value.array->emplace_back(std::move(value));
return {true, & (ref_stack.back()->m_data.m_value.array->back())};
}
// object
JSON_ASSERT(ref_stack.back()->is_object());
// check if we should store an element for the current key
JSON_ASSERT(!key_keep_stack.empty());
const bool store_element = key_keep_stack.back();
key_keep_stack.pop_back();
if (!store_element)
{
return {false, nullptr};
}
JSON_ASSERT(object_element);
*object_element = std::move(value);
return {true, object_element};
}
|
O3
|
cpp
|
std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<bool&>(bool&, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movl %edx, %ebp
movq %rdi, %rbx
movq 0x30(%rdi), %rax
movl 0x38(%rdi), %ecx
cmpq %rax, 0x20(%rdi)
sete %dl
testl %ecx, %ecx
sete %dil
andb %dl, %dil
cmpb $0x1, %dil
je 0x6010c
movl %ecx, %ecx
movabsq $-0x8000000000000000, %r15 # imm = 0x8000000000000000
leaq -0x1(%rcx), %rdx
addq $0x3e, %rcx
testq %rdx, %rdx
cmovnsq %rdx, %rcx
sarq $0x6, %rcx
leaq (%rax,%rcx,8), %rax
leaq 0x3f(%r15), %rcx
andq %rdx, %rcx
xorl %edi, %edi
cmpq %r15, %rcx
setbe %dil
movq -0x8(%rax,%rdi,8), %rax
btq %rdx, %rax
jae 0x5ff9f
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r14
movaps %xmm0, (%r14)
movq (%rsi), %rsi
movq %r14, %rdi
callq 0x601a6
movq %r14, %rdi
movl $0x1, %esi
callq 0x58484
testb %bpl, %bpl
jne 0x5ff4c
movq 0x10(%rbx), %rax
subq 0x8(%rbx), %rax
shrq $0x3, %rax
movl %eax, 0xc(%rsp)
movb $0x5, 0xb(%rsp)
cmpq $0x0, 0x90(%rbx)
je 0x6012d
leaq 0x80(%rbx), %rdi
leaq 0xc(%rsp), %rsi
leaq 0xb(%rsp), %rdx
leaq 0x10(%rsp), %rcx
callq *0x98(%rbx)
testb %al, %al
je 0x600e0
movq 0x10(%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x5ffa9
movq -0x8(%rax), %rax
testq %rax, %rax
je 0x600e0
movzbl (%rax), %ecx
cmpl $0x1, %ecx
je 0x60003
cmpl $0x2, %ecx
jne 0x60132
movq 0x8(%rax), %rdi
leaq 0x10(%rsp), %rsi
callq 0x5d046
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %r14
addq $-0x10, %r14
jmp 0x600dc
xorl %ebx, %ebx
xorl %r14d, %r14d
jmp 0x600fc
leaq 0x10(%rsp), %r14
movaps (%r14), %xmm0
leaq 0x30(%rsp), %r15
movaps %xmm0, (%r15)
movq %r14, %rdi
xorl %esi, %esi
callq 0x58484
movb $0x0, (%r14)
movq $0x0, 0x8(%r14)
movq %r15, %rdi
movl $0x1, %esi
callq 0x58484
movq (%rbx), %rdi
movq %r15, %rsi
callq 0x5ac26
movq %r15, %rdi
xorl %esi, %esi
callq 0x58484
movq %r15, %rdi
callq 0x5d972
movq (%rbx), %r14
jmp 0x600dc
movq 0x58(%rbx), %rax
movl 0x60(%rbx), %ecx
cmpq %rax, 0x48(%rbx)
sete %dl
testl %ecx, %ecx
sete %sil
andb %dl, %sil
cmpb $0x1, %sil
je 0x60140
movl %ecx, %esi
leaq -0x1(%rsi), %rcx
movq %rsi, %rdx
addq $0x3e, %rdx
testq %rcx, %rcx
cmovnsq %rcx, %rdx
sarq $0x6, %rdx
leaq (%rax,%rdx,8), %rdi
leaq 0x3f(%r15), %rdx
andq %rcx, %rdx
xorl %r8d, %r8d
cmpq %r15, %rdx
setbe %r8b
movl $0x1, %edx
shlq %cl, %rdx
andq -0x8(%rdi,%r8,8), %rdx
subl $0x1, %esi
movl %esi, 0x60(%rbx)
jae 0x60075
movl $0x3f, 0x60(%rbx)
addq $-0x8, %rax
movq %rax, 0x58(%rbx)
testq %rdx, %rdx
je 0x600e0
cmpq $0x0, 0x70(%rbx)
je 0x60161
leaq 0x10(%rsp), %r14
movaps (%r14), %xmm0
leaq 0x20(%rsp), %r15
movaps %xmm0, (%r15)
movq %r14, %rdi
xorl %esi, %esi
callq 0x58484
movb $0x0, (%r14)
movq $0x0, 0x8(%r14)
movq %r15, %rdi
movl $0x1, %esi
callq 0x58484
movq 0x70(%rbx), %rdi
movq %r15, %rsi
callq 0x5ac26
movq %r15, %rdi
xorl %esi, %esi
callq 0x58484
movq %r15, %rdi
callq 0x5d972
movq 0x70(%rbx), %r14
movb $0x1, %bl
jmp 0x600e5
xorl %ebx, %ebx
xorl %r14d, %r14d
leaq 0x10(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x58484
movq %r15, %rdi
callq 0x5d972
movl %ebx, %eax
movq %r14, %rdx
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8bcb6(%rip), %rdi # 0xebdc9
leaq 0x860f0(%rip), %rdx # 0xe620a
leaq 0x8cc0d(%rip), %rcx # 0xecd2e
movl $0x1c28, %esi # imm = 0x1C28
xorl %eax, %eax
callq 0x1aec0
callq 0x1a330
leaq 0x8cc09(%rip), %rcx # 0xecd42
movl $0x1c4b, %esi # imm = 0x1C4B
jmp 0x6014c
leaq 0x8cc39(%rip), %rcx # 0xecd80
movl $0x1c57, %esi # imm = 0x1C57
leaq 0x8bc76(%rip), %rdi # 0xebdc9
leaq 0x860b0(%rip), %rdx # 0xe620a
xorl %eax, %eax
callq 0x1aec0
leaq 0x8bc61(%rip), %rdi # 0xebdc9
leaq 0x8609b(%rip), %rdx # 0xe620a
leaq 0x8cc22(%rip), %rcx # 0xecd98
movl $0x1c60, %esi # imm = 0x1C60
xorl %eax, %eax
callq 0x1aec0
jmp 0x60184
movq %rax, %rbx
leaq 0x10(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x58484
movq %r14, %rdi
callq 0x5d972
movq %rbx, %rdi
callq 0x1afd0
|
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueIRlEESt4pairIbPSF_EOT_b:
push rbp
push r15
push r14
push rbx
sub rsp, 48h
mov ebp, edx
mov rbx, rdi
mov rax, [rdi+30h]
mov ecx, [rdi+38h]
cmp [rdi+20h], rax
setz dl
test ecx, ecx
setz dil
and dil, dl
cmp dil, 1
jz loc_6010C
mov ecx, ecx
mov r15, 8000000000000000h
lea rdx, [rcx-1]
add rcx, 3Eh ; '>'
test rdx, rdx
cmovns rcx, rdx
sar rcx, 6
lea rax, [rax+rcx*8]
lea rcx, [r15+3Fh]
and rcx, rdx
xor edi, edi
cmp rcx, r15
setbe dil
mov rax, [rax+rdi*8-8]
bt rax, rdx
jnb loc_5FF9F
xorps xmm0, xmm0
lea r14, [rsp+68h+var_58]
movaps xmmword ptr [r14], xmm0
mov rsi, [rsi]
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE5EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_16number_integer_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_integer_t)
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
test bpl, bpl
jnz short loc_5FF4C
mov rax, [rbx+10h]
sub rax, [rbx+8]
shr rax, 3
mov [rsp+68h+var_5C], eax
mov [rsp+68h+var_5D], 5
cmp qword ptr [rbx+90h], 0
jz loc_6012D
lea rdi, [rbx+80h]
lea rsi, [rsp+68h+var_5C]
lea rdx, [rsp+68h+var_5D]
lea rcx, [rsp+68h+var_58]
call qword ptr [rbx+98h]
test al, al
jz loc_600E0
loc_5FF4C:
mov rax, [rbx+10h]
cmp [rbx+8], rax
jz short loc_5FFA9
mov rax, [rax-8]
test rax, rax
jz loc_600E0
movzx ecx, byte ptr [rax]
cmp ecx, 1
jz loc_60003
cmp ecx, 2
jnz loc_60132
mov rdi, [rax+8]
lea rsi, [rsp+68h+var_58]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
mov rax, [rbx+10h]
mov rax, [rax-8]
mov rax, [rax+8]
mov r14, [rax+8]
add r14, 0FFFFFFFFFFFFFFF0h
jmp loc_600DC
loc_5FF9F:
xor ebx, ebx
xor r14d, r14d
jmp loc_600FC
loc_5FFA9:
lea r14, [rsp+68h+var_58]
movaps xmm0, xmmword ptr [r14]
lea r15, [rsp+68h+var_38]
movaps xmmword ptr [r15], xmm0
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov byte ptr [r14], 0
mov qword ptr [r14+8], 0
mov rdi, r15
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, [rbx]
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, r15
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov r14, [rbx]
jmp loc_600DC
loc_60003:
mov rax, [rbx+58h]
mov ecx, [rbx+60h]
cmp [rbx+48h], rax
setz dl
test ecx, ecx
setz sil
and sil, dl
cmp sil, 1
jz loc_60140
mov esi, ecx
lea rcx, [rsi-1]
mov rdx, rsi
add rdx, 3Eh ; '>'
test rcx, rcx
cmovns rdx, rcx
sar rdx, 6
lea rdi, [rax+rdx*8]
lea rdx, [r15+3Fh]
and rdx, rcx
xor r8d, r8d
cmp rdx, r15
setbe r8b
mov edx, 1
shl rdx, cl
and rdx, [rdi+r8*8-8]
sub esi, 1
mov [rbx+60h], esi
jnb short loc_60075
mov dword ptr [rbx+60h], 3Fh ; '?'
add rax, 0FFFFFFFFFFFFFFF8h
mov [rbx+58h], rax
loc_60075:
test rdx, rdx
jz short loc_600E0
cmp qword ptr [rbx+70h], 0
jz loc_60161
lea r14, [rsp+68h+var_58]
movaps xmm0, xmmword ptr [r14]
lea r15, [rsp+68h+var_48]
movaps xmmword ptr [r15], xmm0
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov byte ptr [r14], 0
mov qword ptr [r14+8], 0
mov rdi, r15
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, [rbx+70h]
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, r15
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov r14, [rbx+70h]
loc_600DC:
mov bl, 1
jmp short loc_600E5
loc_600E0:
xor ebx, ebx
xor r14d, r14d
loc_600E5:
lea r15, [rsp+68h+var_58]
mov rdi, r15
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
loc_600FC:
mov eax, ebx
mov rdx, r14
add rsp, 48h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_6010C:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aKeepStackEmpty; "!keep_stack.empty()"
mov esi, 1C28h
xor eax, eax
call _ggml_abort
loc_6012D:
call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void)
loc_60132:
lea rcx, aRefStackBackIs; "ref_stack.back()->is_array() || ref_sta"...
mov esi, 1C4Bh
jmp short loc_6014C
loc_60140:
lea rcx, aKeyKeepStackEm; "!key_keep_stack.empty()"
mov esi, 1C57h
loc_6014C:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
xor eax, eax
call _ggml_abort
loc_60161:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aObjectElement; "object_element"
mov esi, 1C60h
xor eax, eax
call _ggml_abort
jmp short $+2
loc_60184:
mov rbx, rax
lea r14, [rsp+68h+var_58]
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, rbx
call __Unwind_Resume
|
long long nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::handle_value<long &>(
long long a1,
_QWORD *a2,
char a3)
{
unsigned int v4; // ebx
long long v5; // rax
unsigned int v6; // ecx
signed long long v7; // rdx
long long v8; // rcx
long long v9; // rax
long long v10; // rax
unsigned __int8 *v11; // rax
int v12; // ecx
long long v13; // rax
unsigned int v14; // ecx
long long v15; // rsi
long long v16; // rcx
long long v17; // rdx
long long v18; // rdx
const char *v20; // rcx
long long v21; // rsi
long long v22; // rbx
char v23; // [rsp+Bh] [rbp-5Dh] BYREF
int v24; // [rsp+Ch] [rbp-5Ch] BYREF
__int128 v25; // [rsp+10h] [rbp-58h] BYREF
__int128 v26; // [rsp+20h] [rbp-48h] BYREF
_OWORD v27[3]; // [rsp+30h] [rbp-38h] BYREF
v4 = a1;
v5 = *(_QWORD *)(a1 + 48);
v6 = *(_DWORD *)(a1 + 56);
if ( *(_QWORD *)(a1 + 32) == v5 && v6 == 0 )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7208LL,
"GGML_ASSERT(%s) failed",
"!keep_stack.empty()");
goto LABEL_28;
}
v7 = v6 - 1LL;
v8 = v6 + 62LL;
if ( v7 >= 0 )
v8 = v7;
v9 = *(_QWORD *)(v5 + 8 * (v8 >> 6) + 8LL * ((v7 & 0x800000000000003FLL) <= 0x8000000000000000LL) - 8);
if ( _bittest64(&v9, v7) )
{
v25 = 0LL;
nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
&v25,
*a2);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v25);
if ( a3 )
{
LABEL_8:
v10 = *(_QWORD *)(a1 + 16);
if ( *(_QWORD *)(a1 + 8) == v10 )
{
v27[0] = v25;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v25);
LOBYTE(v25) = 0;
*((_QWORD *)&v25 + 1) = 0LL;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v27);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
*(_QWORD *)a1,
(long long)v27);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v27);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v27);
goto LABEL_23;
}
v11 = *(unsigned __int8 **)(v10 - 8);
if ( v11 )
{
v12 = *v11;
if ( v12 != 1 )
{
if ( v12 == 2 )
{
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
*((_QWORD *)v11 + 1),
(long long)&v25);
LABEL_23:
LOBYTE(v4) = 1;
LABEL_25:
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v25);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v25);
return v4;
}
v20 = "ref_stack.back()->is_array() || ref_stack.back()->is_object()";
v21 = 7243LL;
goto LABEL_31;
}
v13 = *(_QWORD *)(a1 + 88);
v14 = *(_DWORD *)(a1 + 96);
if ( *(_QWORD *)(a1 + 72) == v13 && v14 == 0 )
{
v20 = "!key_keep_stack.empty()";
v21 = 7255LL;
LABEL_31:
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
v21,
"GGML_ASSERT(%s) failed",
v20);
goto LABEL_32;
}
v15 = v14;
v16 = v14 - 1LL;
v17 = v15 + 62;
if ( v16 >= 0 )
v17 = v16;
v18 = *(_QWORD *)(v13 + 8 * (v17 >> 6) + 8LL * ((v16 & 0x800000000000003FLL) <= 0x8000000000000000LL) - 8) & (1LL << v16);
*(_DWORD *)(a1 + 96) = v15 - 1;
if ( !(_DWORD)v15 )
{
*(_DWORD *)(a1 + 96) = 63;
*(_QWORD *)(a1 + 88) = v13 - 8;
}
if ( v18 )
{
if ( *(_QWORD *)(a1 + 112) )
{
v26 = v25;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v25);
LOBYTE(v25) = 0;
*((_QWORD *)&v25 + 1) = 0LL;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v26);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
*(_QWORD *)(a1 + 112),
(long long)&v26);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v26);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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);
goto LABEL_23;
}
LABEL_32:
v22 = ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7264LL,
"GGML_ASSERT(%s) failed",
"object_element");
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v25);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v25);
_Unwind_Resume(v22);
}
}
LABEL_24:
v4 = 0;
goto LABEL_25;
}
v24 = (*(_QWORD *)(a1 + 16) - *(_QWORD *)(a1 + 8)) >> 3;
v23 = 5;
if ( *(_QWORD *)(a1 + 144) )
{
if ( !(*(unsigned __int8 ( **)(long long, int *, char *, __int128 *))(a1 + 152))(
a1 + 128,
&v24,
&v23,
&v25) )
goto LABEL_24;
goto LABEL_8;
}
LABEL_28:
std::__throw_bad_function_call();
}
return 0;
}
| |||
66,256 |
default_handle_fatal_signal
|
eloqsql/mysys/stacktrace.c
|
static sig_handler default_handle_fatal_signal(int sig)
{
my_safe_printf_stderr("%s: Got signal %d. Attempting backtrace\n",
my_progname_short, sig);
my_print_stacktrace(0,0,1);
#ifndef _WIN32
signal(sig, SIG_DFL);
kill(getpid(), sig);
#endif /* _WIN32 */
return;
}
|
O3
|
c
|
default_handle_fatal_signal:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl %edi, %ebx
leaq 0x3ca071(%rip), %rax # 0x468788
movq (%rax), %rsi
leaq 0x74eeb(%rip), %rdi # 0x11360c
movl %ebx, %edx
xorl %eax, %eax
callq 0x9e818
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0x9e939
movl %ebx, %edi
xorl %esi, %esi
callq 0x5f410
callq 0x5fde0
movl %eax, %edi
movl %ebx, %esi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x5fab0
|
default_handle_fatal_signal:
push rbp
mov rbp, rsp
push rbx
push rax
mov ebx, edi
lea rax, my_progname_short
mov rsi, [rax]
lea rdi, aSGotSignalDAtt; "%s: Got signal %d. Attempting backtrace"...
mov edx, ebx
xor eax, eax
call my_safe_printf_stderr
xor edi, edi
xor esi, esi
xor edx, edx
call my_print_stacktrace
mov edi, ebx
xor esi, esi
call _signal
call _getpid
mov edi, eax
mov esi, ebx
add rsp, 8
pop rbx
pop rbp
jmp _kill
|
long long default_handle_fatal_signal(unsigned int a1, long long a2, long long a3, int a4, int a5, int a6)
{
char v6; // al
unsigned int v7; // eax
my_safe_printf_stderr(
(unsigned int)"%s: Got signal %d. Attempting backtrace\n",
my_progname_short,
a1,
a4,
a5,
a6,
v6);
my_print_stacktrace(0LL, 0LL, 0LL);
signal(a1, 0LL);
v7 = getpid();
return kill(v7, a1);
}
|
default_handle_fatal_signal:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV EBX,EDI
LEA RAX,[0x568788]
MOV RSI,qword ptr [RAX]
LEA RDI,[0x21360c]
MOV EDX,EBX
XOR EAX,EAX
CALL 0x0019e818
XOR EDI,EDI
XOR ESI,ESI
XOR EDX,EDX
CALL 0x0019e939
MOV EDI,EBX
XOR ESI,ESI
CALL 0x0015f410
CALL 0x0015fde0
MOV EDI,EAX
MOV ESI,EBX
ADD RSP,0x8
POP RBX
POP RBP
JMP 0x0015fab0
|
void default_handle_fatal_signal(int param_1)
{
__pid_t __pid;
my_safe_printf_stderr("%s: Got signal %d. Attempting backtrace\n",my_progname_short,param_1);
my_print_stacktrace(0,0,0);
signal(param_1,(__sighandler_t)0x0);
__pid = getpid();
kill(__pid,param_1);
return;
}
|
|
66,257 |
mjv_updateScene
|
aimrt_mujoco_sim/_deps/mujoco-src/src/engine/engine_vis_visualize.c
|
void mjv_updateScene(const mjModel* m, mjData* d, const mjvOption* opt,
const mjvPerturb* pert, mjvCamera* cam, int catmask, mjvScene* scn) {
// clear geoms
scn->ngeom = 0;
// trigger plugin visualization hooks
if (m->nplugin) {
const int nslot = mjp_pluginCount();
// iterate over plugins, call visualize if defined
for (int i=0; i < m->nplugin; i++) {
const int slot = m->plugin[i];
const mjpPlugin* plugin = mjp_getPluginAtSlotUnsafe(slot, nslot);
if (!plugin) {
mjERROR("invalid plugin slot: %d", slot);
}
if (plugin->visualize) {
plugin->visualize(m, d, opt, scn, i);
}
}
}
// add all categories
mjv_addGeoms(m, d, opt, pert, catmask, scn);
// update camera
mjv_updateCamera(m, d, cam, scn);
// add lights
mjv_makeLights(m, d, scn);
// update flexes
if (opt->flags[mjVIS_FLEXVERT] || opt->flags[mjVIS_FLEXEDGE] ||
opt->flags[mjVIS_FLEXFACE] || opt->flags[mjVIS_FLEXSKIN]) {
mjv_updateActiveFlex(m, d, scn, opt);
}
// update skins
if (opt->flags[mjVIS_SKIN]) {
mjv_updateActiveSkin(m, d, scn, opt);
}
}
|
O0
|
c
|
mjv_updateScene:
subq $0x458, %rsp # imm = 0x458
movq 0x460(%rsp), %rax
movq %rdi, 0x450(%rsp)
movq %rsi, 0x448(%rsp)
movq %rdx, 0x440(%rsp)
movq %rcx, 0x438(%rsp)
movq %r8, 0x430(%rsp)
movl %r9d, 0x42c(%rsp)
movq 0x460(%rsp), %rax
movl $0x0, 0x4(%rax)
movq 0x450(%rsp), %rax
cmpl $0x0, 0xd0(%rax)
je 0x30951d
callq 0x49700
movl %eax, 0x428(%rsp)
movl $0x0, 0x424(%rsp)
movl 0x424(%rsp), %eax
movq 0x450(%rsp), %rcx
cmpl 0xd0(%rcx), %eax
jge 0x30951b
movq 0x450(%rsp), %rax
movq 0xf58(%rax), %rax
movslq 0x424(%rsp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, 0x420(%rsp)
movl 0x420(%rsp), %edi
movl 0x428(%rsp), %esi
callq 0xe79d0
movq %rax, 0x418(%rsp)
cmpq $0x0, 0x418(%rsp)
jne 0x3094be
movq $0xf, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
leaq 0x2206d7(%rip), %rsi # 0x529b58
movl $0x400, %edx # imm = 0x400
callq 0x49400
leaq 0x10(%rsp), %rdi
addq 0x8(%rsp), %rdi
movl $0x400, %esi # imm = 0x400
subq 0x8(%rsp), %rsi
movl 0x420(%rsp), %ecx
leaq 0x20ee91(%rip), %rdx # 0x51833e
movb $0x0, %al
callq 0x49410
leaq 0x10(%rsp), %rdi
callq 0x49420
movq 0x418(%rsp), %rax
cmpq $0x0, 0x60(%rax)
je 0x309503
movq 0x418(%rsp), %rax
movq 0x60(%rax), %rax
movq 0x450(%rsp), %rdi
movq 0x448(%rsp), %rsi
movq 0x440(%rsp), %rdx
movq 0x460(%rsp), %rcx
movl 0x424(%rsp), %r8d
callq *%rax
jmp 0x309505
movl 0x424(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x424(%rsp)
jmp 0x30940a
jmp 0x30951d
movq 0x450(%rsp), %rdi
movq 0x448(%rsp), %rsi
movq 0x440(%rsp), %rdx
movq 0x438(%rsp), %rcx
movl 0x42c(%rsp), %r8d
movq 0x460(%rsp), %r9
callq 0x4ab10
movq 0x450(%rsp), %rdi
movq 0x448(%rsp), %rsi
movq 0x430(%rsp), %rdx
movq 0x460(%rsp), %rcx
callq 0x4ab20
movq 0x450(%rsp), %rdi
movq 0x448(%rsp), %rsi
movq 0x460(%rsp), %rdx
callq 0x4ab30
movq 0x440(%rsp), %rax
movzbl 0x4a(%rax), %eax
cmpl $0x0, %eax
jne 0x3095d8
movq 0x440(%rsp), %rax
movzbl 0x4b(%rax), %eax
cmpl $0x0, %eax
jne 0x3095d8
movq 0x440(%rsp), %rax
movzbl 0x4c(%rax), %eax
cmpl $0x0, %eax
jne 0x3095d8
movq 0x440(%rsp), %rax
movzbl 0x4d(%rax), %eax
cmpl $0x0, %eax
je 0x3095fd
movq 0x450(%rsp), %rdi
movq 0x448(%rsp), %rsi
movq 0x460(%rsp), %rdx
movq 0x440(%rsp), %rcx
callq 0x4ab40
movq 0x440(%rsp), %rax
cmpb $0x0, 0x49(%rax)
je 0x309630
movq 0x450(%rsp), %rdi
movq 0x448(%rsp), %rsi
movq 0x460(%rsp), %rdx
movq 0x440(%rsp), %rcx
callq 0x4ab50
addq $0x458, %rsp # imm = 0x458
retq
nopl (%rax,%rax)
|
mjv_updateScene:
sub rsp, 458h
mov rax, [rsp+458h+arg_0]
mov [rsp+458h+var_8], rdi
mov [rsp+458h+var_10], rsi
mov [rsp+458h+var_18], rdx
mov [rsp+458h+var_20], rcx
mov [rsp+458h+var_28], r8
mov [rsp+458h+var_2C], r9d
mov rax, [rsp+458h+arg_0]
mov dword ptr [rax+4], 0
mov rax, [rsp+458h+var_8]
cmp dword ptr [rax+0D0h], 0
jz loc_30951D
call _mjp_pluginCount
mov [rsp+458h+var_30], eax
mov [rsp+458h+var_34], 0
loc_30940A:
mov eax, [rsp+458h+var_34]
mov rcx, [rsp+458h+var_8]
cmp eax, [rcx+0D0h]
jge loc_30951B
mov rax, [rsp+458h+var_8]
mov rax, [rax+0F58h]
movsxd rcx, [rsp+458h+var_34]
mov eax, [rax+rcx*4]
mov [rsp+458h+var_38], eax
mov edi, [rsp+458h+var_38]
mov esi, [rsp+458h+var_30]
call mjp_getPluginAtSlotUnsafe
mov [rsp+458h+var_40], rax
cmp [rsp+458h+var_40], 0
jnz short loc_3094BE
mov [rsp+458h+var_450], 0Fh
lea rdi, [rsp+458h+var_448]
lea rsi, aMjvUpdatescene_3; "mjv_updateScene"
mov edx, 400h
call _strncpy
lea rdi, [rsp+458h+var_448]
add rdi, [rsp+458h+var_450]
mov esi, 400h
sub rsi, [rsp+458h+var_450]
mov ecx, [rsp+458h+var_38]
lea rdx, aInvalidPluginS; ": invalid plugin slot: %d"
mov al, 0
call _snprintf
lea rdi, [rsp+458h+var_448]
call _mju_error_raw
loc_3094BE:
mov rax, [rsp+458h+var_40]
cmp qword ptr [rax+60h], 0
jz short loc_309503
mov rax, [rsp+458h+var_40]
mov rax, [rax+60h]
mov rdi, [rsp+458h+var_8]
mov rsi, [rsp+458h+var_10]
mov rdx, [rsp+458h+var_18]
mov rcx, [rsp+458h+arg_0]
mov r8d, [rsp+458h+var_34]
call rax
loc_309503:
jmp short $+2
loc_309505:
mov eax, [rsp+458h+var_34]
add eax, 1
mov [rsp+458h+var_34], eax
jmp loc_30940A
loc_30951B:
jmp short $+2
loc_30951D:
mov rdi, [rsp+458h+var_8]
mov rsi, [rsp+458h+var_10]
mov rdx, [rsp+458h+var_18]
mov rcx, [rsp+458h+var_20]
mov r8d, [rsp+458h+var_2C]
mov r9, [rsp+458h+arg_0]
call _mjv_addGeoms
mov rdi, [rsp+458h+var_8]
mov rsi, [rsp+458h+var_10]
mov rdx, [rsp+458h+var_28]
mov rcx, [rsp+458h+arg_0]
call _mjv_updateCamera
mov rdi, [rsp+458h+var_8]
mov rsi, [rsp+458h+var_10]
mov rdx, [rsp+458h+arg_0]
call _mjv_makeLights
mov rax, [rsp+458h+var_18]
movzx eax, byte ptr [rax+4Ah]
cmp eax, 0
jnz short loc_3095D8
mov rax, [rsp+458h+var_18]
movzx eax, byte ptr [rax+4Bh]
cmp eax, 0
jnz short loc_3095D8
mov rax, [rsp+458h+var_18]
movzx eax, byte ptr [rax+4Ch]
cmp eax, 0
jnz short loc_3095D8
mov rax, [rsp+458h+var_18]
movzx eax, byte ptr [rax+4Dh]
cmp eax, 0
jz short loc_3095FD
loc_3095D8:
mov rdi, [rsp+458h+var_8]
mov rsi, [rsp+458h+var_10]
mov rdx, [rsp+458h+arg_0]
mov rcx, [rsp+458h+var_18]
call _mjv_updateActiveFlex
loc_3095FD:
mov rax, [rsp+458h+var_18]
cmp byte ptr [rax+49h], 0
jz short loc_309630
mov rdi, [rsp+458h+var_8]
mov rsi, [rsp+458h+var_10]
mov rdx, [rsp+458h+arg_0]
mov rcx, [rsp+458h+var_18]
call _mjv_updateActiveSkin
loc_309630:
add rsp, 458h
retn
|
long long mjv_updateScene(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
unsigned int a6,
double a7,
long long a8)
{
long long result; // rax
_BYTE v9[15]; // [rsp+10h] [rbp-448h] BYREF
char v10; // [rsp+1Fh] [rbp-439h] BYREF
long long PluginAtSlotUnsafe; // [rsp+418h] [rbp-40h]
unsigned int v12; // [rsp+420h] [rbp-38h]
unsigned int i; // [rsp+424h] [rbp-34h]
unsigned int v14; // [rsp+428h] [rbp-30h]
unsigned int v15; // [rsp+42Ch] [rbp-2Ch]
long long v16; // [rsp+430h] [rbp-28h]
long long v17; // [rsp+438h] [rbp-20h]
long long v18; // [rsp+440h] [rbp-18h]
long long v19; // [rsp+448h] [rbp-10h]
long long v20; // [rsp+450h] [rbp-8h]
v20 = a1;
v19 = a2;
v18 = a3;
v17 = a4;
v16 = a5;
v15 = a6;
*(_DWORD *)(a8 + 4) = 0;
if ( *(_DWORD *)(v20 + 208) )
{
v14 = mjp_pluginCount(a7);
for ( i = 0; (signed int)i < *(_DWORD *)(v20 + 208); ++i )
{
v12 = *(_DWORD *)(*(_QWORD *)(v20 + 3928) + 4LL * (int)i);
PluginAtSlotUnsafe = mjp_getPluginAtSlotUnsafe(v12, v14);
if ( !PluginAtSlotUnsafe )
{
strncpy(v9, "mjv_updateScene", 1024LL);
snprintf(&v10, 1009LL, ": invalid plugin slot: %d", v12);
a7 = mju_error_raw(v9);
}
if ( *(_QWORD *)(PluginAtSlotUnsafe + 96) )
(*(void ( **)(long long, long long, long long, long long, _QWORD, double))(PluginAtSlotUnsafe + 96))(
v20,
v19,
v18,
a8,
i,
a7);
}
}
mjv_addGeoms(v20, v19, v18, v17, v15, a8);
mjv_updateCamera(v20, v19, v16, a8);
mjv_makeLights(v20, v19, a8);
if ( *(_WORD *)(v18 + 74) || *(_BYTE *)(v18 + 76) || *(_BYTE *)(v18 + 77) )
mjv_updateActiveFlex(v20, v19, a8, v18);
result = v18;
if ( *(_BYTE *)(v18 + 73) )
return mjv_updateActiveSkin(v20, v19, a8, v18);
return result;
}
| |||
66,258 |
mjv_updateScene
|
aimrt_mujoco_sim/_deps/mujoco-src/src/engine/engine_vis_visualize.c
|
void mjv_updateScene(const mjModel* m, mjData* d, const mjvOption* opt,
const mjvPerturb* pert, mjvCamera* cam, int catmask, mjvScene* scn) {
// clear geoms
scn->ngeom = 0;
// trigger plugin visualization hooks
if (m->nplugin) {
const int nslot = mjp_pluginCount();
// iterate over plugins, call visualize if defined
for (int i=0; i < m->nplugin; i++) {
const int slot = m->plugin[i];
const mjpPlugin* plugin = mjp_getPluginAtSlotUnsafe(slot, nslot);
if (!plugin) {
mjERROR("invalid plugin slot: %d", slot);
}
if (plugin->visualize) {
plugin->visualize(m, d, opt, scn, i);
}
}
}
// add all categories
mjv_addGeoms(m, d, opt, pert, catmask, scn);
// update camera
mjv_updateCamera(m, d, cam, scn);
// add lights
mjv_makeLights(m, d, scn);
// update flexes
if (opt->flags[mjVIS_FLEXVERT] || opt->flags[mjVIS_FLEXEDGE] ||
opt->flags[mjVIS_FLEXFACE] || opt->flags[mjVIS_FLEXSKIN]) {
mjv_updateActiveFlex(m, d, scn, opt);
}
// update skins
if (opt->flags[mjVIS_SKIN]) {
mjv_updateActiveSkin(m, d, scn, opt);
}
}
|
O3
|
c
|
mjv_updateScene:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x428, %rsp # imm = 0x428
movl %r9d, 0x8(%rsp)
movq %r8, 0x18(%rsp)
movq %rcx, 0x10(%rsp)
movq %rdx, %rbx
movq %rsi, (%rsp)
movq %rdi, %r12
movq 0x460(%rsp), %rax
movl $0x0, 0x4(%rax)
cmpl $0x0, 0xd0(%rdi)
je 0xb6df5
callq 0x2d560
cmpl $0x0, 0xd0(%r12)
jle 0xb6df5
movl %eax, %ebp
xorl %r15d, %r15d
movl %eax, 0xc(%rsp)
movq 0xf58(%r12), %rax
movl (%rax,%r15,4), %r14d
movl %r14d, %edi
movl %ebp, %esi
callq 0x7c0f6
movq %rax, %r13
testq %rax, %rax
jne 0xb6dc1
movl $0x400, %edx # imm = 0x400
movq %rbx, %rbp
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
leaq 0x1184b2(%rip), %rsi # 0x1cf244
callq 0x2d240
movl $0x3f1, %esi # imm = 0x3F1
leaq 0x2f(%rsp), %rdi
leaq 0x107186(%rip), %rdx # 0x1bdf2e
movl %r14d, %ecx
xorl %eax, %eax
callq 0x2d250
movq %rbx, %rdi
movq %rbp, %rbx
movl 0xc(%rsp), %ebp
callq 0x2d260
movq 0x60(%r13), %rax
testq %rax, %rax
je 0xb6de1
movq %r12, %rdi
movq (%rsp), %rsi
movq %rbx, %rdx
movq 0x460(%rsp), %rcx
movl %r15d, %r8d
callq *%rax
incq %r15
movslq 0xd0(%r12), %rax
cmpq %rax, %r15
jl 0xb6d5d
movq %r12, %rdi
movq (%rsp), %r14
movq %r14, %rsi
movq %rbx, %rdx
movq 0x10(%rsp), %rcx
movl 0x8(%rsp), %r8d
movq 0x460(%rsp), %r15
movq %r15, %r9
callq 0x2e5c0
movq %r12, %rdi
movq %r14, %rsi
movq 0x18(%rsp), %rdx
movq %r15, %rcx
callq 0x2e5d0
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x2e5e0
cmpb $0x0, 0x4a(%rbx)
jne 0xb6e55
cmpb $0x0, 0x4b(%rbx)
jne 0xb6e55
cmpb $0x0, 0x4c(%rbx)
jne 0xb6e55
cmpb $0x0, 0x4d(%rbx)
je 0xb6e6c
movq %r12, %rdi
movq (%rsp), %rsi
movq 0x460(%rsp), %rdx
movq %rbx, %rcx
callq 0x2e5f0
cmpb $0x0, 0x49(%rbx)
je 0xb6e89
movq %r12, %rdi
movq (%rsp), %rsi
movq 0x460(%rsp), %rdx
movq %rbx, %rcx
callq 0x2e600
addq $0x428, %rsp # imm = 0x428
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
mjv_updateScene:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 428h
mov [rsp+458h+var_450], r9d
mov [rsp+458h+var_440], r8
mov [rsp+458h+var_448], rcx
mov rbx, rdx
mov [rsp+458h+var_458], rsi
mov r12, rdi
mov rax, [rsp+458h+arg_0]
mov dword ptr [rax+4], 0
cmp dword ptr [rdi+0D0h], 0
jz loc_B6DF5
call _mjp_pluginCount
cmp dword ptr [r12+0D0h], 0
jle loc_B6DF5
mov ebp, eax
xor r15d, r15d
mov [rsp+458h+var_44C], eax
loc_B6D5D:
mov rax, [r12+0F58h]
mov r14d, [rax+r15*4]
mov edi, r14d
mov esi, ebp
call mjp_getPluginAtSlotUnsafe
mov r13, rax
test rax, rax
jnz short loc_B6DC1
mov edx, 400h
mov rbp, rbx
lea rbx, [rsp+458h+var_438]
mov rdi, rbx
lea rsi, aMjvUpdatescene_3; "mjv_updateScene"
call _strncpy
mov esi, 3F1h
lea rdi, [rsp+458h+var_429]
lea rdx, aInvalidPluginS; ": invalid plugin slot: %d"
mov ecx, r14d
xor eax, eax
call _snprintf
mov rdi, rbx
mov rbx, rbp
mov ebp, [rsp+458h+var_44C]
call _mju_error_raw
loc_B6DC1:
mov rax, [r13+60h]
test rax, rax
jz short loc_B6DE1
mov rdi, r12
mov rsi, [rsp+458h+var_458]
mov rdx, rbx
mov rcx, [rsp+458h+arg_0]
mov r8d, r15d
call rax
loc_B6DE1:
inc r15
movsxd rax, dword ptr [r12+0D0h]
cmp r15, rax
jl loc_B6D5D
loc_B6DF5:
mov rdi, r12
mov r14, [rsp+458h+var_458]
mov rsi, r14
mov rdx, rbx
mov rcx, [rsp+458h+var_448]
mov r8d, [rsp+458h+var_450]
mov r15, [rsp+458h+arg_0]
mov r9, r15
call _mjv_addGeoms
mov rdi, r12
mov rsi, r14
mov rdx, [rsp+458h+var_440]
mov rcx, r15
call _mjv_updateCamera
mov rdi, r12
mov rsi, r14
mov rdx, r15
call _mjv_makeLights
cmp byte ptr [rbx+4Ah], 0
jnz short loc_B6E55
cmp byte ptr [rbx+4Bh], 0
jnz short loc_B6E55
cmp byte ptr [rbx+4Ch], 0
jnz short loc_B6E55
cmp byte ptr [rbx+4Dh], 0
jz short loc_B6E6C
loc_B6E55:
mov rdi, r12
mov rsi, [rsp+458h+var_458]
mov rdx, [rsp+458h+arg_0]
mov rcx, rbx
call _mjv_updateActiveFlex
loc_B6E6C:
cmp byte ptr [rbx+49h], 0
jz short loc_B6E89
mov rdi, r12
mov rsi, [rsp+458h+var_458]
mov rdx, [rsp+458h+arg_0]
mov rcx, rbx
call _mjv_updateActiveSkin
loc_B6E89:
add rsp, 428h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long mjv_updateScene(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
unsigned int a6,
__m128 a7,
long long a8)
{
unsigned int v9; // eax
unsigned int v10; // ebp
long long v11; // r15
unsigned int v12; // r14d
long long PluginAtSlotUnsafe; // r13
void ( *v14)(long long, long long, long long, long long, _QWORD, double); // rax
long long result; // rax
unsigned int v17; // [rsp+Ch] [rbp-44Ch]
_BYTE v20[15]; // [rsp+20h] [rbp-438h] BYREF
_BYTE v21[1065]; // [rsp+2Fh] [rbp-429h] BYREF
*(_DWORD *)(a8 + 4) = 0;
if ( *(_DWORD *)(a1 + 208) )
{
v9 = mjp_pluginCount(*(double *)a7.m128_u64);
if ( *(int *)(a1 + 208) > 0 )
{
v10 = v9;
v11 = 0LL;
v17 = v9;
do
{
v12 = *(_DWORD *)(*(_QWORD *)(a1 + 3928) + 4 * v11);
PluginAtSlotUnsafe = mjp_getPluginAtSlotUnsafe(v12, v10, a7);
if ( !PluginAtSlotUnsafe )
{
strncpy(v20, "mjv_updateScene", 1024LL);
snprintf(v21, 1009LL, ": invalid plugin slot: %d", v12);
v10 = v17;
*(double *)a7.m128_u64 = mju_error_raw(v20);
}
v14 = *(void ( **)(long long, long long, long long, long long, _QWORD, double))(PluginAtSlotUnsafe + 96);
if ( v14 )
v14(a1, a2, a3, a8, (unsigned int)v11, *(double *)a7.m128_u64);
++v11;
}
while ( v11 < *(int *)(a1 + 208) );
}
}
mjv_addGeoms(a1, a2, a3, a4, a6, a8);
mjv_updateCamera(a1, a2, a5, a8);
result = mjv_makeLights(a1, a2, a8);
if ( *(_WORD *)(a3 + 74) || *(_BYTE *)(a3 + 76) || *(_BYTE *)(a3 + 77) )
result = mjv_updateActiveFlex(a1, a2, a8, a3);
if ( *(_BYTE *)(a3 + 73) )
return mjv_updateActiveSkin(a1, a2, a8, a3);
return result;
}
|
mjv_updateScene:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x428
MOV dword ptr [RSP + 0x8],R9D
MOV qword ptr [RSP + 0x18],R8
MOV qword ptr [RSP + 0x10],RCX
MOV RBX,RDX
MOV qword ptr [RSP],RSI
MOV R12,RDI
MOV RAX,qword ptr [RSP + 0x460]
MOV dword ptr [RAX + 0x4],0x0
CMP dword ptr [RDI + 0xd0],0x0
JZ 0x001b6df5
CALL 0x0012d560
CMP dword ptr [R12 + 0xd0],0x0
JLE 0x001b6df5
MOV EBP,EAX
XOR R15D,R15D
MOV dword ptr [RSP + 0xc],EAX
LAB_001b6d5d:
MOV RAX,qword ptr [R12 + 0xf58]
MOV R14D,dword ptr [RAX + R15*0x4]
MOV EDI,R14D
MOV ESI,EBP
CALL 0x0017c0f6
MOV R13,RAX
TEST RAX,RAX
JNZ 0x001b6dc1
MOV EDX,0x400
MOV RBP,RBX
LEA RBX,[RSP + 0x20]
MOV RDI,RBX
LEA RSI,[0x2cf244]
CALL 0x0012d240
MOV ESI,0x3f1
LEA RDI,[RSP + 0x2f]
LEA RDX,[0x2bdf2e]
MOV ECX,R14D
XOR EAX,EAX
CALL 0x0012d250
MOV RDI,RBX
MOV RBX,RBP
MOV EBP,dword ptr [RSP + 0xc]
CALL 0x0012d260
LAB_001b6dc1:
MOV RAX,qword ptr [R13 + 0x60]
TEST RAX,RAX
JZ 0x001b6de1
MOV RDI,R12
MOV RSI,qword ptr [RSP]
MOV RDX,RBX
MOV RCX,qword ptr [RSP + 0x460]
MOV R8D,R15D
CALL RAX
LAB_001b6de1:
INC R15
MOVSXD RAX,dword ptr [R12 + 0xd0]
CMP R15,RAX
JL 0x001b6d5d
LAB_001b6df5:
MOV RDI,R12
MOV R14,qword ptr [RSP]
MOV RSI,R14
MOV RDX,RBX
MOV RCX,qword ptr [RSP + 0x10]
MOV R8D,dword ptr [RSP + 0x8]
MOV R15,qword ptr [RSP + 0x460]
MOV R9,R15
CALL 0x0012e5c0
MOV RDI,R12
MOV RSI,R14
MOV RDX,qword ptr [RSP + 0x18]
MOV RCX,R15
CALL 0x0012e5d0
MOV RDI,R12
MOV RSI,R14
MOV RDX,R15
CALL 0x0012e5e0
CMP byte ptr [RBX + 0x4a],0x0
JNZ 0x001b6e55
CMP byte ptr [RBX + 0x4b],0x0
JNZ 0x001b6e55
CMP byte ptr [RBX + 0x4c],0x0
JNZ 0x001b6e55
CMP byte ptr [RBX + 0x4d],0x0
JZ 0x001b6e6c
LAB_001b6e55:
MOV RDI,R12
MOV RSI,qword ptr [RSP]
MOV RDX,qword ptr [RSP + 0x460]
MOV RCX,RBX
CALL 0x0012e5f0
LAB_001b6e6c:
CMP byte ptr [RBX + 0x49],0x0
JZ 0x001b6e89
MOV RDI,R12
MOV RSI,qword ptr [RSP]
MOV RDX,qword ptr [RSP + 0x460]
MOV RCX,RBX
CALL 0x0012e600
LAB_001b6e89:
ADD RSP,0x428
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void mjv_updateScene(long param_1,int8 param_2,long param_3,int8 param_4,
int8 param_5,int4 param_6,long param_7)
{
uint uVar1;
int4 uVar2;
long lVar3;
ulong uVar4;
char local_438 [15];
char local_429 [1017];
*(int4 *)(param_7 + 4) = 0;
if (*(int *)(param_1 + 0xd0) != 0) {
uVar2 = mjp_pluginCount();
if (0 < *(int *)(param_1 + 0xd0)) {
uVar4 = 0;
do {
uVar1 = *(uint *)(*(long *)(param_1 + 0xf58) + uVar4 * 4);
lVar3 = mjp_getPluginAtSlotUnsafe(uVar1,uVar2);
if (lVar3 == 0) {
strncpy(local_438,"mjv_updateScene",0x400);
snprintf(local_429,0x3f1,": invalid plugin slot: %d",(ulong)uVar1);
mju_error_raw(local_438);
}
if (*(code **)(lVar3 + 0x60) != (code *)0x0) {
(**(code **)(lVar3 + 0x60))(param_1,param_2,param_3,param_7,uVar4 & 0xffffffff);
}
uVar4 = uVar4 + 1;
} while ((long)uVar4 < (long)*(int *)(param_1 + 0xd0));
}
}
mjv_addGeoms(param_1,param_2,param_3,param_4,param_6,param_7);
mjv_updateCamera(param_1,param_2,param_5,param_7);
mjv_makeLights(param_1,param_2,param_7);
if ((((*(char *)(param_3 + 0x4a) != '\0') || (*(char *)(param_3 + 0x4b) != '\0')) ||
(*(char *)(param_3 + 0x4c) != '\0')) || (*(char *)(param_3 + 0x4d) != '\0')) {
mjv_updateActiveFlex(param_1,param_2,param_7,param_3);
}
if (*(char *)(param_3 + 0x49) != '\0') {
mjv_updateActiveSkin(param_1,param_2,param_7,param_3);
}
return;
}
|
|
66,259 |
dummy_fallback_auth_client
|
eloqsql/libmariadb/plugins/auth/my_auth.c
|
static int dummy_fallback_auth_client(MYSQL_PLUGIN_VIO *vio, MYSQL *mysql __attribute__((unused)))
{
char last_error[MYSQL_ERRMSG_SIZE];
unsigned int i, last_errno= ((MCPVIO_EXT *)vio)->mysql->net.last_errno;
if (last_errno)
{
strncpy(last_error, ((MCPVIO_EXT *)vio)->mysql->net.last_error,
sizeof(last_error) - 1);
last_error[sizeof(last_error) - 1]= 0;
}
/* safety-wise we only do 10 round-trips */
for (i=0; i < 10; i++)
{
uchar *pkt;
if (vio->read_packet(vio, &pkt) < 0)
break;
if (vio->write_packet(vio, 0, 0))
break;
}
if (last_errno)
{
MYSQL *mysql= ((MCPVIO_EXT *)vio)->mysql;
strncpy(mysql->net.last_error, last_error,
sizeof(mysql->net.last_error) - 1);
mysql->net.last_error[sizeof(mysql->net.last_error) - 1]= 0;
}
return CR_ERROR;
}
|
O0
|
c
|
dummy_fallback_auth_client:
pushq %rbp
movq %rsp, %rbp
subq $0x240, %rsp # imm = 0x240
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x218(%rbp)
movq %rsi, -0x220(%rbp)
movq -0x218(%rbp), %rax
movq 0x18(%rax), %rax
movl 0x90(%rax), %eax
movl %eax, -0x228(%rbp)
cmpl $0x0, -0x228(%rbp)
je 0x443dd
leaq -0x210(%rbp), %rdi
movq -0x218(%rbp), %rax
movq 0x18(%rax), %rsi
addq $0x97, %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x13210
movb $0x0, -0x11(%rbp)
movl $0x0, -0x224(%rbp)
cmpl $0xa, -0x224(%rbp)
jae 0x44445
movq -0x218(%rbp), %rax
movq (%rax), %rax
movq -0x218(%rbp), %rdi
leaq -0x230(%rbp), %rsi
callq *%rax
cmpl $0x0, %eax
jge 0x44411
jmp 0x44445
movq -0x218(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x218(%rbp), %rdi
xorl %ecx, %ecx
movl %ecx, %esi
xorl %edx, %edx
callq *%rax
cmpl $0x0, %eax
je 0x44432
jmp 0x44445
jmp 0x44434
movl -0x224(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x224(%rbp)
jmp 0x443e7
cmpl $0x0, -0x228(%rbp)
je 0x4448d
movq -0x218(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x238(%rbp)
movq -0x238(%rbp), %rdi
addq $0x97, %rdi
leaq -0x210(%rbp), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x13210
movq -0x238(%rbp), %rax
movb $0x0, 0x296(%rax)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x444aa
xorl %eax, %eax
addq $0x240, %rsp # imm = 0x240
popq %rbp
retq
callq 0x134b0
nop
|
dummy_fallback_auth_client:
push rbp
mov rbp, rsp
sub rsp, 240h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_218], rdi
mov [rbp+var_220], rsi
mov rax, [rbp+var_218]
mov rax, [rax+18h]
mov eax, [rax+90h]
mov [rbp+var_228], eax
cmp [rbp+var_228], 0
jz short loc_443DD
lea rdi, [rbp+var_210]
mov rax, [rbp+var_218]
mov rsi, [rax+18h]
add rsi, 97h
mov edx, 1FFh
call _strncpy
mov [rbp+var_11], 0
loc_443DD:
mov [rbp+var_224], 0
loc_443E7:
cmp [rbp+var_224], 0Ah
jnb short loc_44445
mov rax, [rbp+var_218]
mov rax, [rax]
mov rdi, [rbp+var_218]
lea rsi, [rbp+var_230]
call rax
cmp eax, 0
jge short loc_44411
jmp short loc_44445
loc_44411:
mov rax, [rbp+var_218]
mov rax, [rax+8]
mov rdi, [rbp+var_218]
xor ecx, ecx
mov esi, ecx
xor edx, edx
call rax
cmp eax, 0
jz short loc_44432
jmp short loc_44445
loc_44432:
jmp short $+2
loc_44434:
mov eax, [rbp+var_224]
add eax, 1
mov [rbp+var_224], eax
jmp short loc_443E7
loc_44445:
cmp [rbp+var_228], 0
jz short loc_4448D
mov rax, [rbp+var_218]
mov rax, [rax+18h]
mov [rbp+var_238], rax
mov rdi, [rbp+var_238]
add rdi, 97h
lea rsi, [rbp+var_210]
mov edx, 1FFh
call _strncpy
mov rax, [rbp+var_238]
mov byte ptr [rax+296h], 0
loc_4448D:
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_444AA
xor eax, eax
add rsp, 240h
pop rbp
retn
loc_444AA:
call ___stack_chk_fail
|
long long dummy_fallback_auth_client(long long a1, long long a2)
{
long long v3; // [rsp+8h] [rbp-238h]
_BYTE v4[8]; // [rsp+10h] [rbp-230h] BYREF
int v5; // [rsp+18h] [rbp-228h]
unsigned int i; // [rsp+1Ch] [rbp-224h]
long long v7; // [rsp+20h] [rbp-220h]
long long v8; // [rsp+28h] [rbp-218h]
_BYTE v9[520]; // [rsp+30h] [rbp-210h] BYREF
unsigned long long v10; // [rsp+238h] [rbp-8h]
v10 = __readfsqword(0x28u);
v8 = a1;
v7 = a2;
v5 = *(_DWORD *)(*(_QWORD *)(a1 + 24) + 144LL);
if ( v5 )
{
strncpy(v9, *(_QWORD *)(v8 + 24) + 151LL, 511LL);
v9[511] = 0;
}
for ( i = 0;
i < 0xA
&& (*(int ( **)(long long, _BYTE *))v8)(v8, v4) >= 0
&& !(*(unsigned int ( **)(long long, _QWORD, _QWORD))(v8 + 8))(v8, 0LL, 0LL);
++i )
{
;
}
if ( v5 )
{
v3 = *(_QWORD *)(v8 + 24);
strncpy(v3 + 151, v9, 511LL);
*(_BYTE *)(v3 + 662) = 0;
}
return 0LL;
}
|
dummy_fallback_auth_client:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x240
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x218],RDI
MOV qword ptr [RBP + -0x220],RSI
MOV RAX,qword ptr [RBP + -0x218]
MOV RAX,qword ptr [RAX + 0x18]
MOV EAX,dword ptr [RAX + 0x90]
MOV dword ptr [RBP + -0x228],EAX
CMP dword ptr [RBP + -0x228],0x0
JZ 0x001443dd
LEA RDI,[RBP + -0x210]
MOV RAX,qword ptr [RBP + -0x218]
MOV RSI,qword ptr [RAX + 0x18]
ADD RSI,0x97
MOV EDX,0x1ff
CALL 0x00113210
MOV byte ptr [RBP + -0x11],0x0
LAB_001443dd:
MOV dword ptr [RBP + -0x224],0x0
LAB_001443e7:
CMP dword ptr [RBP + -0x224],0xa
JNC 0x00144445
MOV RAX,qword ptr [RBP + -0x218]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RBP + -0x218]
LEA RSI,[RBP + -0x230]
CALL RAX
CMP EAX,0x0
JGE 0x00144411
JMP 0x00144445
LAB_00144411:
MOV RAX,qword ptr [RBP + -0x218]
MOV RAX,qword ptr [RAX + 0x8]
MOV RDI,qword ptr [RBP + -0x218]
XOR ECX,ECX
MOV ESI,ECX
XOR EDX,EDX
CALL RAX
CMP EAX,0x0
JZ 0x00144432
JMP 0x00144445
LAB_00144432:
JMP 0x00144434
LAB_00144434:
MOV EAX,dword ptr [RBP + -0x224]
ADD EAX,0x1
MOV dword ptr [RBP + -0x224],EAX
JMP 0x001443e7
LAB_00144445:
CMP dword ptr [RBP + -0x228],0x0
JZ 0x0014448d
MOV RAX,qword ptr [RBP + -0x218]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x238],RAX
MOV RDI,qword ptr [RBP + -0x238]
ADD RDI,0x97
LEA RSI,[RBP + -0x210]
MOV EDX,0x1ff
CALL 0x00113210
MOV RAX,qword ptr [RBP + -0x238]
MOV byte ptr [RAX + 0x296],0x0
LAB_0014448d:
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001444aa
XOR EAX,EAX
ADD RSP,0x240
POP RBP
RET
LAB_001444aa:
CALL 0x001134b0
|
int8 dummy_fallback_auth_client(int8 *param_1,int8 param_2)
{
long lVar1;
int iVar2;
long in_FS_OFFSET;
int1 local_238 [8];
int local_230;
uint local_22c;
int8 local_228;
int8 *local_220;
char local_218 [511];
int1 local_19;
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_230 = *(int *)(param_1[3] + 0x90);
local_228 = param_2;
local_220 = param_1;
if (local_230 != 0) {
strncpy(local_218,(char *)(param_1[3] + 0x97),0x1ff);
local_19 = 0;
}
local_22c = 0;
while (((local_22c < 10 && (iVar2 = (*(code *)*local_220)(local_220,local_238), -1 < iVar2)) &&
(iVar2 = (*(code *)local_220[1])(local_220,0,0), iVar2 == 0))) {
local_22c = local_22c + 1;
}
if (local_230 != 0) {
lVar1 = local_220[3];
strncpy((char *)(lVar1 + 0x97),local_218,0x1ff);
*(int1 *)(lVar1 + 0x296) = 0;
}
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return 0;
}
|
|
66,260 |
dummy_fallback_auth_client
|
eloqsql/libmariadb/plugins/auth/my_auth.c
|
static int dummy_fallback_auth_client(MYSQL_PLUGIN_VIO *vio, MYSQL *mysql __attribute__((unused)))
{
char last_error[MYSQL_ERRMSG_SIZE];
unsigned int i, last_errno= ((MCPVIO_EXT *)vio)->mysql->net.last_errno;
if (last_errno)
{
strncpy(last_error, ((MCPVIO_EXT *)vio)->mysql->net.last_error,
sizeof(last_error) - 1);
last_error[sizeof(last_error) - 1]= 0;
}
/* safety-wise we only do 10 round-trips */
for (i=0; i < 10; i++)
{
uchar *pkt;
if (vio->read_packet(vio, &pkt) < 0)
break;
if (vio->write_packet(vio, 0, 0))
break;
}
if (last_errno)
{
MYSQL *mysql= ((MCPVIO_EXT *)vio)->mysql;
strncpy(mysql->net.last_error, last_error,
sizeof(mysql->net.last_error) - 1);
mysql->net.last_error[sizeof(mysql->net.last_error) - 1]= 0;
}
return CR_ERROR;
}
|
O3
|
c
|
dummy_fallback_auth_client:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x220, %rsp # imm = 0x220
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x28(%rbp)
movq 0x18(%rdi), %rsi
movl 0x90(%rsi), %r15d
testl %r15d, %r15d
je 0x306a9
addq $0x97, %rsi
leaq -0x230(%rbp), %r14
movl $0x1ff, %edx # imm = 0x1FF
movq %r14, %rdi
callq 0x13220
movb $0x0, 0x1ff(%r14)
movl $0xa, %r12d
leaq -0x238(%rbp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq *(%rbx)
testl %eax, %eax
js 0x306d5
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq *0x8(%rbx)
testl %eax, %eax
jne 0x306d5
decl %r12d
jne 0x306b6
testl %r15d, %r15d
je 0x306fd
movq 0x18(%rbx), %rbx
leaq 0x97(%rbx), %rdi
leaq -0x230(%rbp), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x13220
movb $0x0, 0x296(%rbx)
movq %fs:0x28, %rax
cmpq -0x28(%rbp), %rax
jne 0x3071e
xorl %eax, %eax
addq $0x220, %rsp # imm = 0x220
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x13500
|
dummy_fallback_auth_client:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 220h
mov rbx, rdi
mov rax, fs:28h
mov [rbp+var_28], rax
mov rsi, [rdi+18h]
mov r15d, [rsi+90h]
test r15d, r15d
jz short loc_306A9
add rsi, 97h
lea r14, [rbp+var_230]
mov edx, 1FFh
mov rdi, r14
call _strncpy
mov byte ptr [r14+1FFh], 0
loc_306A9:
mov r12d, 0Ah
lea r14, [rbp+var_238]
loc_306B6:
mov rdi, rbx
mov rsi, r14
call qword ptr [rbx]
test eax, eax
js short loc_306D5
mov rdi, rbx
xor esi, esi
xor edx, edx
call qword ptr [rbx+8]
test eax, eax
jnz short loc_306D5
dec r12d
jnz short loc_306B6
loc_306D5:
test r15d, r15d
jz short loc_306FD
mov rbx, [rbx+18h]
lea rdi, [rbx+97h]
lea rsi, [rbp+var_230]
mov edx, 1FFh
call _strncpy
mov byte ptr [rbx+296h], 0
loc_306FD:
mov rax, fs:28h
cmp rax, [rbp+var_28]
jnz short loc_3071E
xor eax, eax
add rsp, 220h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_3071E:
call ___stack_chk_fail
|
long long dummy_fallback_auth_client(long long a1)
{
long long v1; // rsi
int v2; // r15d
int v3; // r12d
long long v4; // rbx
_BYTE v6[8]; // [rsp+8h] [rbp-238h] BYREF
_BYTE v7[520]; // [rsp+10h] [rbp-230h] BYREF
unsigned long long v8; // [rsp+218h] [rbp-28h]
v8 = __readfsqword(0x28u);
v1 = *(_QWORD *)(a1 + 24);
v2 = *(_DWORD *)(v1 + 144);
if ( v2 )
{
strncpy(v7, v1 + 151, 511LL);
v7[511] = 0;
}
v3 = 10;
do
{
if ( (*(int ( **)(long long, _BYTE *))a1)(a1, v6) < 0 )
break;
if ( (*(unsigned int ( **)(long long, _QWORD, _QWORD))(a1 + 8))(a1, 0LL, 0LL) )
break;
--v3;
}
while ( v3 );
if ( v2 )
{
v4 = *(_QWORD *)(a1 + 24);
strncpy(v4 + 151, v7, 511LL);
*(_BYTE *)(v4 + 662) = 0;
}
return 0LL;
}
|
dummy_fallback_auth_client:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x220
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x28],RAX
MOV RSI,qword ptr [RDI + 0x18]
MOV R15D,dword ptr [RSI + 0x90]
TEST R15D,R15D
JZ 0x001306a9
ADD RSI,0x97
LEA R14,[RBP + -0x230]
MOV EDX,0x1ff
MOV RDI,R14
CALL 0x00113220
MOV byte ptr [R14 + 0x1ff],0x0
LAB_001306a9:
MOV R12D,0xa
LEA R14,[RBP + -0x238]
LAB_001306b6:
MOV RDI,RBX
MOV RSI,R14
CALL qword ptr [RBX]
TEST EAX,EAX
JS 0x001306d5
MOV RDI,RBX
XOR ESI,ESI
XOR EDX,EDX
CALL qword ptr [RBX + 0x8]
TEST EAX,EAX
JNZ 0x001306d5
DEC R12D
JNZ 0x001306b6
LAB_001306d5:
TEST R15D,R15D
JZ 0x001306fd
MOV RBX,qword ptr [RBX + 0x18]
LEA RDI,[RBX + 0x97]
LEA RSI,[RBP + -0x230]
MOV EDX,0x1ff
CALL 0x00113220
MOV byte ptr [RBX + 0x296],0x0
LAB_001306fd:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x28]
JNZ 0x0013071e
XOR EAX,EAX
ADD RSP,0x220
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0013071e:
CALL 0x00113500
|
int8 dummy_fallback_auth_client(int8 *param_1)
{
int iVar1;
long lVar2;
int iVar3;
int iVar4;
long in_FS_OFFSET;
int1 local_240 [8];
char local_238 [511];
int1 local_39;
long local_30;
local_30 = *(long *)(in_FS_OFFSET + 0x28);
iVar1 = *(int *)(param_1[3] + 0x90);
if (iVar1 != 0) {
strncpy(local_238,(char *)(param_1[3] + 0x97),0x1ff);
local_39 = 0;
}
iVar4 = 10;
while( true ) {
iVar3 = (*(code *)*param_1)(param_1,local_240);
if (iVar3 < 0) break;
iVar3 = (*(code *)param_1[1])(param_1,0,0);
if ((iVar3 != 0) || (iVar4 = iVar4 + -1, iVar4 == 0)) break;
}
if (iVar1 != 0) {
lVar2 = param_1[3];
strncpy((char *)(lVar2 + 0x97),local_238,0x1ff);
*(int1 *)(lVar2 + 0x296) = 0;
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_30) {
return 0;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
66,261 |
uf_varchar1
|
eloqsql/storage/myisam/mi_packrec.c
|
static void uf_varchar1(MI_COLUMNDEF *rec, MI_BIT_BUFF *bit_buff,
uchar *to, uchar *end __attribute__((unused)))
{
if (get_bit(bit_buff))
to[0]= 0; /* Zero lengths */
else
{
ulong length=get_bits(bit_buff,rec->space_length_bits);
*to= (uchar) length;
decode_bytes(rec,bit_buff,to+1,to+1+length);
}
}
|
O3
|
c
|
uf_varchar1:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl 0x4(%rsi), %eax
testl %eax, %eax
je 0x3e6d2
movl (%r14), %r13d
decl %eax
movl %eax, 0x4(%r14)
btl %eax, %r13d
jae 0x3e6ef
movb $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0x3d059
movl $0x1f, 0x4(%r14)
movl (%r14), %r13d
movl $0x1f, %eax
testl %r13d, %r13d
js 0x3e6c0
movl 0x1c(%r15), %r12d
movl %eax, %ecx
subl %r12d, %ecx
jae 0x3e734
subl %eax, %r12d
movl %eax, %eax
leaq 0x5cb5a(%rip), %rcx # 0x9b260
andl (%rcx,%rax,4), %r13d
movl %r12d, %ecx
shll %cl, %r13d
movq %r14, %rdi
callq 0x3d059
movl $0x20, %eax
subl %r12d, %eax
movl %eax, 0x4(%r14)
movl (%r14), %eax
negl %r12d
movl %r12d, %ecx
shrl %cl, %eax
addl %eax, %r13d
jmp 0x3e74a
movl %ecx, 0x4(%r14)
shrl %cl, %r13d
movl 0x1c(%r15), %eax
leaq 0x5cb1a(%rip), %rcx # 0x9b260
andl (%rcx,%rax,4), %r13d
movl %r13d, %eax
movb %r13b, (%rbx)
leaq (%rbx,%rax), %rcx
incq %rcx
incq %rbx
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3d94a
|
uf_varchar1:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdx
mov r14, rsi
mov r15, rdi
mov eax, [rsi+4]
test eax, eax
jz short loc_3E6D2
mov r13d, [r14]
dec eax
mov [r14+4], eax
bt r13d, eax
jnb short loc_3E6EF
loc_3E6C0:
mov byte ptr [rbx], 0
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_3E6D2:
mov rdi, r14
call fill_buffer
mov dword ptr [r14+4], 1Fh
mov r13d, [r14]
mov eax, 1Fh
test r13d, r13d
js short loc_3E6C0
loc_3E6EF:
mov r12d, [r15+1Ch]
mov ecx, eax
sub ecx, r12d
jnb short loc_3E734
sub r12d, eax
mov eax, eax
lea rcx, mask
and r13d, [rcx+rax*4]
mov ecx, r12d
shl r13d, cl
mov rdi, r14
call fill_buffer
mov eax, 20h ; ' '
sub eax, r12d
mov [r14+4], eax
mov eax, [r14]
neg r12d
mov ecx, r12d
shr eax, cl
add r13d, eax
jmp short loc_3E74A
loc_3E734:
mov [r14+4], ecx
shr r13d, cl
mov eax, [r15+1Ch]
lea rcx, mask
and r13d, [rcx+rax*4]
loc_3E74A:
mov eax, r13d
mov [rbx], r13b
lea rcx, [rbx+rax]
inc rcx
inc rbx
mov rdi, r15
mov rsi, r14
mov rdx, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp decode_bytes
|
long long uf_varchar1(long long a1, unsigned int *a2, _BYTE *a3)
{
unsigned int v4; // eax
unsigned int v5; // r13d
long long result; // rax
unsigned int v7; // r12d
unsigned int v8; // ecx
int v9; // r12d
int v10; // r13d
unsigned int v11; // r13d
v4 = a2[1];
if ( v4 )
{
v5 = *a2;
result = v4 - 1;
a2[1] = result;
if ( _bittest((const int *)&v5, result) )
{
LABEL_3:
*a3 = 0;
return result;
}
}
else
{
fill_buffer((long long)a2);
a2[1] = 31;
v5 = *a2;
result = 31LL;
if ( (*a2 & 0x80000000) != 0 )
goto LABEL_3;
}
v7 = *(_DWORD *)(a1 + 28);
v8 = result - v7;
if ( (unsigned int)result >= v7 )
{
a2[1] = v8;
v11 = mask[*(unsigned int *)(a1 + 28)] & (v5 >> v8);
}
else
{
v9 = v7 - result;
v10 = (mask[(unsigned int)result] & v5) << v9;
fill_buffer((long long)a2);
a2[1] = 32 - v9;
v11 = (*a2 >> -(char)v9) + v10;
}
*a3 = v11;
return (long long)decode_bytes(a1, (long long)a2, a3 + 1, &a3[v11 + 1]);
}
|
uf_varchar1:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV R14,RSI
MOV R15,RDI
MOV EAX,dword ptr [RSI + 0x4]
TEST EAX,EAX
JZ 0x0013e6d2
MOV R13D,dword ptr [R14]
DEC EAX
MOV dword ptr [R14 + 0x4],EAX
BT R13D,EAX
JNC 0x0013e6ef
LAB_0013e6c0:
MOV byte ptr [RBX],0x0
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0013e6d2:
MOV RDI,R14
CALL 0x0013d059
MOV dword ptr [R14 + 0x4],0x1f
MOV R13D,dword ptr [R14]
MOV EAX,0x1f
TEST R13D,R13D
JS 0x0013e6c0
LAB_0013e6ef:
MOV R12D,dword ptr [R15 + 0x1c]
MOV ECX,EAX
SUB ECX,R12D
JNC 0x0013e734
SUB R12D,EAX
MOV EAX,EAX
LEA RCX,[0x19b260]
AND R13D,dword ptr [RCX + RAX*0x4]
MOV ECX,R12D
SHL R13D,CL
MOV RDI,R14
CALL 0x0013d059
MOV EAX,0x20
SUB EAX,R12D
MOV dword ptr [R14 + 0x4],EAX
MOV EAX,dword ptr [R14]
NEG R12D
MOV ECX,R12D
SHR EAX,CL
ADD R13D,EAX
JMP 0x0013e74a
LAB_0013e734:
MOV dword ptr [R14 + 0x4],ECX
SHR R13D,CL
MOV EAX,dword ptr [R15 + 0x1c]
LEA RCX,[0x19b260]
AND R13D,dword ptr [RCX + RAX*0x4]
LAB_0013e74a:
MOV EAX,R13D
MOV byte ptr [RBX],R13B
LEA RCX,[RBX + RAX*0x1]
INC RCX
INC RBX
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x0013d94a
|
void uf_varchar1(long param_1,uint *param_2,int1 *param_3)
{
uint uVar1;
uint uVar2;
uint uVar3;
byte bVar4;
uint uVar5;
if (param_2[1] == 0) {
fill_buffer(param_2);
param_2[1] = 0x1f;
uVar5 = *param_2;
uVar3 = 0x1f;
if (-1 < (int)uVar5) goto LAB_0013e6ef;
}
else {
uVar5 = *param_2;
uVar3 = param_2[1] - 1;
param_2[1] = uVar3;
if ((uVar5 >> (uVar3 & 0x1f) & 1) == 0) {
LAB_0013e6ef:
uVar1 = *(uint *)(param_1 + 0x1c);
if (uVar3 < uVar1) {
uVar2 = (&mask)[uVar3];
bVar4 = (byte)(uVar1 - uVar3);
fill_buffer(param_2);
param_2[1] = 0x20 - (uVar1 - uVar3);
uVar5 = ((uVar5 & uVar2) << (bVar4 & 0x1f)) + (*param_2 >> (-bVar4 & 0x1f));
}
else {
param_2[1] = uVar3 - uVar1;
uVar5 = uVar5 >> ((byte)(uVar3 - uVar1) & 0x1f) & (&mask)[*(uint *)(param_1 + 0x1c)];
}
*param_3 = (char)uVar5;
decode_bytes(param_1,param_2,param_3 + 1,param_3 + (ulong)uVar5 + 1);
return;
}
}
*param_3 = 0;
return;
}
|
|
66,262 |
js_set_isSubsetOf
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_set_isSubsetOf(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue item, iter, keys, has, next, rv, rval;
BOOL done, found;
JSMapState *s;
int64_t size;
int ok;
has = JS_UNDEFINED;
iter = JS_UNDEFINED;
keys = JS_UNDEFINED;
next = JS_UNDEFINED;
rval = JS_EXCEPTION;
s = JS_GetOpaque2(ctx, this_val, JS_CLASS_SET);
if (!s)
goto exception;
// order matters!
if (js_setlike_get_size(ctx, argv[0], &size) < 0)
goto exception;
if (js_setlike_get_has(ctx, argv[0], &has) < 0)
goto exception;
if (js_setlike_get_keys(ctx, argv[0], &keys) < 0)
goto exception;
found = FALSE;
if (s->record_count > size)
goto fini;
iter = js_create_map_iterator(ctx, this_val, 0, NULL, MAGIC_SET);
if (JS_IsException(iter))
goto exception;
found = TRUE;
do {
item = js_map_iterator_next(ctx, iter, 0, NULL, &done, MAGIC_SET);
if (JS_IsException(item))
goto exception;
if (done) // item is JS_UNDEFINED
break;
rv = JS_Call(ctx, has, argv[0], 1, &item);
JS_FreeValue(ctx, item);
ok = JS_ToBoolFree(ctx, rv); // returns -1 if rv is JS_EXCEPTION
if (ok < 0)
goto exception;
found = (ok > 0);
} while (found);
fini:
rval = found ? JS_TRUE : JS_FALSE;
exception:
JS_FreeValue(ctx, has);
JS_FreeValue(ctx, keys);
JS_FreeValue(ctx, iter);
JS_FreeValue(ctx, next);
return rval;
}
|
O2
|
c
|
js_set_isSubsetOf:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r8, %r13
movq %rdx, %r12
andl $0x0, 0x10(%rsp)
movq %rsi, %rbp
movq %rdi, %rbx
pushq $0x3
popq %r15
movq %r15, 0x18(%rsp)
andl $0x0, 0x20(%rsp)
movq %r15, 0x28(%rsp)
pushq $0x24
popq %rcx
callq 0x24db7
testq %rax, %rax
je 0x48bae
movq %rax, %r14
movq (%r13), %rsi
movq 0x8(%r13), %rdx
leaq 0x50(%rsp), %rcx
movq %rbx, %rdi
callq 0x49feb
testl %eax, %eax
js 0x48bae
movq (%r13), %rsi
movq 0x8(%r13), %rdx
leaq 0x10(%rsp), %rcx
movq %rbx, %rdi
callq 0x4a07f
testl %eax, %eax
js 0x48bae
movq (%r13), %rsi
movq 0x8(%r13), %rdx
leaq 0x20(%rsp), %rcx
movq %rbx, %rdi
callq 0x4a108
testl %eax, %eax
js 0x48bae
movl 0x18(%r14), %eax
cmpq %rax, 0x50(%rsp)
jge 0x48c0c
pushq $0x1
popq %r14
xorl %r12d, %r12d
jmp 0x48ccd
xorl %r12d, %r12d
xorl %r13d, %r13d
pushq $0x6
popq %r14
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rbx, %rdi
callq 0x1bbce
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x1bbce
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x1bbce
pushq $0x3
popq %rdx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1bbce
movq %r13, %rax
movq %r14, %rdx
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x1
popq %r9
movq %rbx, %rdi
movq %rbp, %rsi
movq %r12, %rdx
callq 0x48662
movq %rax, %r12
movq %rdx, %r15
cmpl $0x6, %r15d
je 0x48bb1
movq 0x10(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x40(%rsp)
movl $0x1, (%rsp)
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
leaq 0xc(%rsp), %r9
callq 0x4a191
movq %rax, 0x30(%rsp)
movq %rdx, 0x38(%rsp)
cmpl $0x6, %edx
je 0x48cc9
cmpl $0x0, 0xc(%rsp)
jne 0x48cd5
movq (%r13), %rcx
movq 0x8(%r13), %r8
leaq 0x30(%rsp), %rax
movq %rax, (%rsp)
movq %rbx, %rdi
movq 0x48(%rsp), %rsi
movq 0x40(%rsp), %rdx
pushq $0x1
popq %r9
callq 0x25a66
movq %rax, %r14
movq %rdx, %rbp
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq %rbx, %rdi
callq 0x1bbce
movq %rbx, %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0x209aa
testl %eax, %eax
js 0x48cc9
jne 0x48c3e
pushq $0x1
jmp 0x48ccb
pushq $0x6
popq %r14
xorl %r13d, %r13d
jmp 0x48bb8
pushq $0x1
popq %r14
movq %r14, %r13
jmp 0x48bb8
|
js_set_isSubsetOf:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov r13, r8
mov r12, rdx
and dword ptr [rsp+88h+var_78], 0
mov rbp, rsi
mov rbx, rdi
push 3
pop r15
mov [rsp+88h+var_70], r15
and dword ptr [rsp+88h+var_68], 0
mov [rsp+88h+var_60], r15
push 24h ; '$'
pop rcx
call JS_GetOpaque2
test rax, rax
jz short loc_48BAE
mov r14, rax
mov rsi, [r13+0]
mov rdx, [r13+8]
lea rcx, [rsp+88h+var_38]
mov rdi, rbx
call js_setlike_get_size
test eax, eax
js short loc_48BAE
mov rsi, [r13+0]
mov rdx, [r13+8]
lea rcx, [rsp+88h+var_78]
mov rdi, rbx
call js_setlike_get_has
test eax, eax
js short loc_48BAE
mov rsi, [r13+0]
mov rdx, [r13+8]
lea rcx, [rsp+88h+var_68]
mov rdi, rbx
call js_setlike_get_keys
test eax, eax
js short loc_48BAE
mov eax, [r14+18h]
cmp [rsp+88h+var_38], rax
jge short loc_48C0C
push 1
pop r14
xor r12d, r12d
jmp loc_48CCD
loc_48BAE:
xor r12d, r12d
loc_48BB1:
xor r13d, r13d
push 6
pop r14
loc_48BB8:
mov rsi, [rsp+88h+var_78]
mov rdx, [rsp+88h+var_70]
mov rdi, rbx
call JS_FreeValue
mov rsi, [rsp+88h+var_68]
mov rdx, [rsp+88h+var_60]
mov rdi, rbx
call JS_FreeValue
mov rdi, rbx
mov rsi, r12
mov rdx, r15
call JS_FreeValue
push 3
pop rdx
mov rdi, rbx
xor esi, esi
call JS_FreeValue
mov rax, r13
mov rdx, r14
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_48C0C:
push 1
pop r9
mov rdi, rbx
mov rsi, rbp
mov rdx, r12
call js_create_map_iterator
mov r12, rax
mov r15, rdx
cmp r15d, 6
jz short loc_48BB1
mov rax, [rsp+88h+var_78]
mov [rsp+88h+var_40], rax
mov rax, [rsp+88h+var_70]
mov [rsp+88h+var_48], rax
loc_48C3E:
mov dword ptr [rsp+88h+var_88], 1
mov rdi, rbx
mov rsi, r12
mov rdx, r15
lea r9, [rsp+88h+var_7C]
call js_map_iterator_next
mov [rsp+88h+var_58], rax
mov [rsp+88h+var_50], rdx
cmp edx, 6
jz short loc_48CC9
cmp [rsp+88h+var_7C], 0
jnz short loc_48CD5
mov rcx, [r13+0]
mov r8, [r13+8]
lea rax, [rsp+88h+var_58]
mov [rsp+88h+var_88], rax
mov rdi, rbx
mov rsi, [rsp+88h+var_40]
mov rdx, [rsp+88h+var_48]
push 1
pop r9
call JS_Call
mov r14, rax
mov rbp, rdx
mov rsi, [rsp+88h+var_58]
mov rdx, [rsp+88h+var_50]
mov rdi, rbx
call JS_FreeValue
mov rdi, rbx
mov rsi, r14
mov rdx, rbp
call JS_ToBoolFree
test eax, eax
js short loc_48CC9
jnz loc_48C3E
push 1
jmp short loc_48CCB
loc_48CC9:
push 6
loc_48CCB:
pop r14
loc_48CCD:
xor r13d, r13d
jmp loc_48BB8
loc_48CD5:
push 1
pop r14
mov r13, r14
jmp loc_48BB8
|
long long js_set_isSubsetOf(long long a1, _DWORD *a2, long long a3, long long a4, _QWORD *a5)
{
long long v7; // r15
long long Opaque2; // rax
long long v9; // r14
long long v10; // rcx
long long v11; // r8
unsigned long long map_iterator; // r12
long long v13; // r13
int v15; // ecx
int v16; // r8d
long long v17; // rdx
long long v18; // rdx
long long v19; // r14
long long v20; // rdx
long long v21; // rbp
int v22; // [rsp+Ch] [rbp-7Ch] BYREF
long long v23; // [rsp+10h] [rbp-78h] BYREF
long long v24; // [rsp+18h] [rbp-70h]
long long v25; // [rsp+20h] [rbp-68h] BYREF
long long v26; // [rsp+28h] [rbp-60h]
long long v27; // [rsp+30h] [rbp-58h] BYREF
long long v28; // [rsp+38h] [rbp-50h]
long long v29; // [rsp+40h] [rbp-48h]
long long v30; // [rsp+48h] [rbp-40h]
long long v31[7]; // [rsp+50h] [rbp-38h] BYREF
LODWORD(v23) = 0;
v7 = 3LL;
v24 = 3LL;
LODWORD(v25) = 0;
v26 = 3LL;
Opaque2 = JS_GetOpaque2(a1, (long long)a2, a3, 0x24u);
if ( Opaque2
&& (v9 = Opaque2, (int)js_setlike_get_size(a1, *a5, a5[1], v31) >= 0)
&& (int)js_setlike_get_has(a1, *a5, a5[1], &v23) >= 0
&& (int)js_setlike_get_keys(a1, *a5, a5[1], &v25) >= 0 )
{
if ( v31[0] < *(unsigned int *)(v9 + 24) )
{
map_iterator = 0LL;
LABEL_15:
v13 = 0LL;
goto LABEL_9;
}
map_iterator = js_create_map_iterator(a1, a2, a3, v10, v11, 1);
v7 = v17;
if ( (_DWORD)v17 != 6 )
{
v30 = v23;
v29 = v24;
while ( 1 )
{
v27 = js_map_iterator_next(a1, map_iterator, v7, v15, v16, (unsigned int)&v22, 1);
v28 = v18;
if ( (_DWORD)v18 == 6 )
goto LABEL_15;
if ( v22 )
{
v13 = 1LL;
goto LABEL_9;
}
v19 = JS_Call(a1, v30, v29, *a5, a5[1], 1, (long long)&v27);
v21 = v20;
JS_FreeValue(a1, v27, v28);
if ( (int)JS_ToBoolFree(a1, v19, v21) <= 0 )
goto LABEL_15;
}
}
}
else
{
map_iterator = 0LL;
}
v13 = 0LL;
LABEL_9:
JS_FreeValue(a1, v23, v24);
JS_FreeValue(a1, v25, v26);
JS_FreeValue(a1, map_iterator, v7);
JS_FreeValue(a1, 0LL, 3LL);
return v13;
}
|
js_set_isSubsetOf:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV R13,R8
MOV R12,RDX
AND dword ptr [RSP + 0x10],0x0
MOV RBP,RSI
MOV RBX,RDI
PUSH 0x3
POP R15
MOV qword ptr [RSP + 0x18],R15
AND dword ptr [RSP + 0x20],0x0
MOV qword ptr [RSP + 0x28],R15
PUSH 0x24
POP RCX
CALL 0x00124db7
TEST RAX,RAX
JZ 0x00148bae
MOV R14,RAX
MOV RSI,qword ptr [R13]
MOV RDX,qword ptr [R13 + 0x8]
LEA RCX,[RSP + 0x50]
MOV RDI,RBX
CALL 0x00149feb
TEST EAX,EAX
JS 0x00148bae
MOV RSI,qword ptr [R13]
MOV RDX,qword ptr [R13 + 0x8]
LEA RCX,[RSP + 0x10]
MOV RDI,RBX
CALL 0x0014a07f
TEST EAX,EAX
JS 0x00148bae
MOV RSI,qword ptr [R13]
MOV RDX,qword ptr [R13 + 0x8]
LEA RCX,[RSP + 0x20]
MOV RDI,RBX
CALL 0x0014a108
TEST EAX,EAX
JS 0x00148bae
MOV EAX,dword ptr [R14 + 0x18]
CMP qword ptr [RSP + 0x50],RAX
JGE 0x00148c0c
PUSH 0x1
POP R14
XOR R12D,R12D
JMP 0x00148ccd
LAB_00148bae:
XOR R12D,R12D
LAB_00148bb1:
XOR R13D,R13D
PUSH 0x6
POP R14
LAB_00148bb8:
MOV RSI,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x18]
MOV RDI,RBX
CALL 0x0011bbce
MOV RSI,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x28]
MOV RDI,RBX
CALL 0x0011bbce
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R15
CALL 0x0011bbce
PUSH 0x3
POP RDX
MOV RDI,RBX
XOR ESI,ESI
CALL 0x0011bbce
MOV RAX,R13
MOV RDX,R14
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00148c0c:
PUSH 0x1
POP R9
MOV RDI,RBX
MOV RSI,RBP
MOV RDX,R12
CALL 0x00148662
MOV R12,RAX
MOV R15,RDX
CMP R15D,0x6
JZ 0x00148bb1
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x48],RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x40],RAX
LAB_00148c3e:
MOV dword ptr [RSP],0x1
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R15
LEA R9,[RSP + 0xc]
CALL 0x0014a191
MOV qword ptr [RSP + 0x30],RAX
MOV qword ptr [RSP + 0x38],RDX
CMP EDX,0x6
JZ 0x00148cc9
CMP dword ptr [RSP + 0xc],0x0
JNZ 0x00148cd5
MOV RCX,qword ptr [R13]
MOV R8,qword ptr [R13 + 0x8]
LEA RAX,[RSP + 0x30]
MOV qword ptr [RSP],RAX
MOV RDI,RBX
MOV RSI,qword ptr [RSP + 0x48]
MOV RDX,qword ptr [RSP + 0x40]
PUSH 0x1
POP R9
CALL 0x00125a66
MOV R14,RAX
MOV RBP,RDX
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,qword ptr [RSP + 0x38]
MOV RDI,RBX
CALL 0x0011bbce
MOV RDI,RBX
MOV RSI,R14
MOV RDX,RBP
CALL 0x001209aa
TEST EAX,EAX
JS 0x00148cc9
JNZ 0x00148c3e
PUSH 0x1
JMP 0x00148ccb
LAB_00148cc9:
PUSH 0x6
LAB_00148ccb:
POP R14
LAB_00148ccd:
XOR R13D,R13D
JMP 0x00148bb8
LAB_00148cd5:
PUSH 0x1
POP R14
MOV R13,R14
JMP 0x00148bb8
|
int1 [16]
js_set_isSubsetOf(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 *param_5)
{
int iVar1;
long lVar2;
int8 uVar3;
int1 auVar4 [16];
int1 auVar5 [16];
int8 uStackY_90;
int local_7c;
int4 local_78;
int4 uStack_74;
int8 local_70;
int4 local_68;
int4 uStack_64;
int8 local_60;
int1 local_58 [16];
int8 local_48;
int8 local_40;
long local_38;
local_78 = 0;
local_70 = 3;
local_68 = 0;
local_60 = 3;
lVar2 = JS_GetOpaque2();
if (((lVar2 == 0) ||
(iVar1 = js_setlike_get_size(param_1,*param_5,param_5[1],&local_38), iVar1 < 0)) ||
(iVar1 = js_setlike_get_has(param_1,*param_5,param_5[1],&local_78), iVar1 < 0)) {
LAB_00148bae:
auVar4 = ZEXT816(3) << 0x40;
}
else {
iVar1 = js_setlike_get_keys(param_1,*param_5,param_5[1],&local_68);
auVar5._8_8_ = local_58._8_8_;
auVar5._0_8_ = local_58._0_8_;
if (iVar1 < 0) goto LAB_00148bae;
if (local_38 < (long)(ulong)*(uint *)(lVar2 + 0x18)) {
auVar4 = ZEXT816(3) << 0x40;
uVar3 = 1;
LAB_00148ccd:
uStackY_90 = 0;
goto LAB_00148bb8;
}
auVar4 = js_create_map_iterator(param_1,param_2,param_3);
if (auVar4._8_4_ != 6) {
local_40 = CONCAT44(uStack_74,local_78);
local_48 = local_70;
do {
auVar5 = js_map_iterator_next(param_1,auVar4._0_8_,auVar4._8_8_);
local_58 = auVar5;
if (auVar5._8_4_ == 6) {
LAB_00148cc9:
uStackY_90 = 6;
uVar3 = uStackY_90;
auVar5 = local_58;
goto LAB_00148ccd;
}
if (local_7c != 0) {
uStackY_90 = 1;
uVar3 = uStackY_90;
goto LAB_00148bb8;
}
auVar5 = JS_Call(param_1,local_40,local_48,*param_5,param_5[1],1,local_58);
JS_FreeValue(param_1,local_58._0_8_,local_58._8_8_);
iVar1 = JS_ToBoolFree(param_1,auVar5._0_8_,auVar5._8_8_);
if (iVar1 < 0) goto LAB_00148cc9;
} while (iVar1 != 0);
uStackY_90 = 1;
uVar3 = uStackY_90;
auVar5 = local_58;
goto LAB_00148ccd;
}
}
auVar5._8_8_ = local_58._8_8_;
auVar5._0_8_ = local_58._0_8_;
uStackY_90 = 0;
uVar3 = 6;
LAB_00148bb8:
local_58 = auVar5;
JS_FreeValue(param_1,CONCAT44(uStack_74,local_78),local_70);
JS_FreeValue(param_1,CONCAT44(uStack_64,local_68),local_60);
JS_FreeValue(param_1,auVar4._0_8_,auVar4._8_8_);
JS_FreeValue(param_1,0,3);
auVar4._8_8_ = uVar3;
auVar4._0_8_ = uStackY_90;
return auVar4;
}
|
|
66,263 |
mysql_change_user
|
eloqsql/libmariadb/libmariadb/mariadb_lib.c
|
my_bool STDCALL mysql_change_user(MYSQL *mysql, const char *user,
const char *passwd, const char *db)
{
const MARIADB_CHARSET_INFO *s_cs= mysql->charset;
char *s_user= mysql->user,
*s_passwd= mysql->passwd,
*s_db= mysql->db;
int rc;
if (mysql->options.charset_name)
mysql->charset= mysql_find_charset_name(mysql->options.charset_name);
else
mysql->charset=mysql_find_charset_name(MARIADB_DEFAULT_CHARSET);
mysql->user= strdup(user ? user : "");
mysql->passwd= strdup(passwd ? passwd : "");
/* db will be set in run_plugin_auth */
mysql->db= 0;
rc= run_plugin_auth(mysql, 0, 0, 0, db);
/* COM_CHANGE_USER always releases prepared statements, so we need to invalidate them */
ma_invalidate_stmts(mysql, "mysql_change_user()");
if (rc==0)
{
free(s_user);
free(s_passwd);
free(s_db);
if (!mysql->db && db && !(mysql->db= strdup(db)))
{
SET_CLIENT_ERROR(mysql, CR_OUT_OF_MEMORY, SQLSTATE_UNKNOWN, 0);
rc= 1;
}
} else
{
free(mysql->user);
free(mysql->passwd);
free(mysql->db);
mysql->user= s_user;
mysql->passwd= s_passwd;
mysql->db= s_db;
mysql->charset= s_cs;
}
return(rc);
}
|
O3
|
c
|
mysql_change_user:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movq 0x2f0(%rdi), %rax
movq %rax, -0x48(%rbp)
movq 0x2b8(%rdi), %rax
movq %rax, -0x30(%rbp)
movq 0x2c0(%rdi), %rax
movq %rax, -0x38(%rbp)
movq 0x2e8(%rdi), %rax
movq %rax, -0x40(%rbp)
movq 0x3f8(%rdi), %rax
testq %rax, %rax
leaq 0x1a8ea(%rip), %rdi # 0x34aed
cmovneq %rax, %rdi
callq 0x301c2
movq %rax, 0x2f0(%rbx)
testq %r12, %r12
leaq 0x1a422(%rip), %r13 # 0x3463f
cmoveq %r13, %r12
movq %r12, %rdi
callq 0x137d0
movq %rax, 0x2b8(%rbx)
testq %r15, %r15
cmoveq %r13, %r15
movq %r15, %rdi
callq 0x137d0
movq %rax, 0x2c0(%rbx)
movq $0x0, 0x2e8(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movq %r14, %r8
callq 0x2dc05
movl %eax, %r15d
leaq 0x1a926(%rip), %rsi # 0x34b92
movq %rbx, %rdi
callq 0x1a08a
testl %r15d, %r15d
je 0x1a2db
movq 0x2b8(%rbx), %rdi
callq 0x13570
movq 0x2c0(%rbx), %rdi
callq 0x13570
movq 0x2e8(%rbx), %rdi
callq 0x13570
movq -0x30(%rbp), %rax
movq %rax, 0x2b8(%rbx)
movq -0x38(%rbp), %rax
movq %rax, 0x2c0(%rbx)
movq -0x40(%rbp), %rax
movq %rax, 0x2e8(%rbx)
movq -0x48(%rbp), %rax
movq %rax, 0x2f0(%rbx)
movl %r15d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x30(%rbp), %rdi
callq 0x13570
movq -0x38(%rbp), %rdi
callq 0x13570
movq -0x40(%rbp), %rdi
callq 0x13570
xorl %r15d, %r15d
testq %r14, %r14
je 0x1a2c9
cmpq $0x0, 0x2e8(%rbx)
jne 0x1a2c9
movq %r14, %rdi
callq 0x137d0
movq %rax, 0x2e8(%rbx)
testq %rax, %rax
je 0x1a321
xorl %r15d, %r15d
jmp 0x1a2c9
movl $0x7d8, 0x90(%rbx) # imm = 0x7D8
leaq 0x297(%rbx), %rdi
leaq 0x2e727(%rip), %rax # 0x48a60
movq (%rax), %rsi
movl $0x5, %edx
callq 0x13220
xorl %r14d, %r14d
movb %r14b, 0x29c(%rbx)
leaq 0x97(%rbx), %rdi
leaq 0x2e712(%rip), %rax # 0x48a70
movq 0x40(%rax), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x13220
movb %r14b, 0x296(%rbx)
movb $0x1, %r15b
jmp 0x1a2c9
|
mysql_change_user:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r14, rcx
mov r15, rdx
mov r12, rsi
mov rbx, rdi
mov rax, [rdi+2F0h]
mov [rbp+var_48], rax
mov rax, [rdi+2B8h]
mov [rbp+var_30], rax
mov rax, [rdi+2C0h]
mov [rbp+var_38], rax
mov rax, [rdi+2E8h]
mov [rbp+var_40], rax
mov rax, [rdi+3F8h]
test rax, rax
lea rdi, aUtf8mb4; "utf8mb4"
cmovnz rdi, rax
call mysql_find_charset_name
mov [rbx+2F0h], rax
test r12, r12
lea r13, aExecuteTestWit+29h; ""
cmovz r12, r13
mov rdi, r12
call _strdup
mov [rbx+2B8h], rax
test r15, r15
cmovz r15, r13
mov rdi, r15
call _strdup
mov [rbx+2C0h], rax
mov qword ptr [rbx+2E8h], 0
mov rdi, rbx
xor esi, esi
xor edx, edx
xor ecx, ecx
mov r8, r14
call run_plugin_auth
mov r15d, eax
lea rsi, aMysqlChangeUse; "mysql_change_user()"
mov rdi, rbx
call ma_invalidate_stmts
test r15d, r15d
jz short loc_1A2DB
mov rdi, [rbx+2B8h]
call _free
mov rdi, [rbx+2C0h]
call _free
mov rdi, [rbx+2E8h]
call _free
mov rax, [rbp+var_30]
mov [rbx+2B8h], rax
mov rax, [rbp+var_38]
mov [rbx+2C0h], rax
mov rax, [rbp+var_40]
mov [rbx+2E8h], rax
mov rax, [rbp+var_48]
mov [rbx+2F0h], rax
loc_1A2C9:
mov eax, r15d
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_1A2DB:
mov rdi, [rbp+var_30]
call _free
mov rdi, [rbp+var_38]
call _free
mov rdi, [rbp+var_40]
call _free
xor r15d, r15d
test r14, r14
jz short loc_1A2C9
cmp qword ptr [rbx+2E8h], 0
jnz short loc_1A2C9
mov rdi, r14
call _strdup
mov [rbx+2E8h], rax
test rax, rax
jz short loc_1A321
xor r15d, r15d
jmp short loc_1A2C9
loc_1A321:
mov dword ptr [rbx+90h], 7D8h
lea rdi, [rbx+297h]
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
xor r14d, r14d
mov [rbx+29Ch], r14b
lea rdi, [rbx+97h]
lea rax, client_errors
mov rsi, [rax+40h]
mov edx, 1FFh
call _strncpy
mov [rbx+296h], r14b
mov r15b, 1
jmp loc_1A2C9
|
long long mysql_change_user(long long a1, char *a2, char *a3, long long a4)
{
char *v6; // r12
const char *v8; // rax
const char *v9; // rdi
unsigned int v10; // r15d
long long v12; // rax
long long v13; // [rsp+8h] [rbp-48h]
long long v14; // [rsp+10h] [rbp-40h]
long long v15; // [rsp+18h] [rbp-38h]
long long v16; // [rsp+20h] [rbp-30h]
v6 = a2;
v13 = *(_QWORD *)(a1 + 752);
v16 = *(_QWORD *)(a1 + 696);
v15 = *(_QWORD *)(a1 + 704);
v14 = *(_QWORD *)(a1 + 744);
v8 = *(const char **)(a1 + 1016);
v9 = "utf8mb4";
if ( v8 )
v9 = v8;
*(_QWORD *)(a1 + 752) = mysql_find_charset_name(v9);
if ( !a2 )
v6 = "";
*(_QWORD *)(a1 + 696) = strdup(v6);
if ( !a3 )
a3 = "";
*(_QWORD *)(a1 + 704) = strdup(a3);
*(_QWORD *)(a1 + 744) = 0LL;
v10 = run_plugin_auth(a1, 0LL, 0LL, 0LL, a4);
ma_invalidate_stmts(a1, "mysql_change_user()");
if ( v10 )
{
free(*(_QWORD *)(a1 + 696));
free(*(_QWORD *)(a1 + 704));
free(*(_QWORD *)(a1 + 744));
*(_QWORD *)(a1 + 696) = v16;
*(_QWORD *)(a1 + 704) = v15;
*(_QWORD *)(a1 + 744) = v14;
*(_QWORD *)(a1 + 752) = v13;
}
else
{
free(v16);
free(v15);
free(v14);
v10 = 0;
if ( a4 && !*(_QWORD *)(a1 + 744) )
{
v12 = strdup(a4);
*(_QWORD *)(a1 + 744) = v12;
if ( v12 )
{
return 0;
}
else
{
*(_DWORD *)(a1 + 144) = 2008;
strncpy(a1 + 663, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(a1 + 668) = 0;
strncpy(a1 + 151, client_errors[8], 511LL);
*(_BYTE *)(a1 + 662) = 0;
LOBYTE(v10) = 1;
}
}
}
return v10;
}
|
mysql_change_user:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R14,RCX
MOV R15,RDX
MOV R12,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x2f0]
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RDI + 0x2b8]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RDI + 0x2c0]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RDI + 0x2e8]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RDI + 0x3f8]
TEST RAX,RAX
LEA RDI,[0x134aed]
CMOVNZ RDI,RAX
CALL 0x001301c2
MOV qword ptr [RBX + 0x2f0],RAX
TEST R12,R12
LEA R13,[0x13463f]
CMOVZ R12,R13
MOV RDI,R12
CALL 0x001137d0
MOV qword ptr [RBX + 0x2b8],RAX
TEST R15,R15
CMOVZ R15,R13
MOV RDI,R15
CALL 0x001137d0
MOV qword ptr [RBX + 0x2c0],RAX
MOV qword ptr [RBX + 0x2e8],0x0
MOV RDI,RBX
XOR ESI,ESI
XOR EDX,EDX
XOR ECX,ECX
MOV R8,R14
CALL 0x0012dc05
MOV R15D,EAX
LEA RSI,[0x134b92]
MOV RDI,RBX
CALL 0x0011a08a
TEST R15D,R15D
JZ 0x0011a2db
MOV RDI,qword ptr [RBX + 0x2b8]
CALL 0x00113570
MOV RDI,qword ptr [RBX + 0x2c0]
CALL 0x00113570
MOV RDI,qword ptr [RBX + 0x2e8]
CALL 0x00113570
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBX + 0x2b8],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBX + 0x2c0],RAX
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBX + 0x2e8],RAX
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RBX + 0x2f0],RAX
LAB_0011a2c9:
MOV EAX,R15D
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0011a2db:
MOV RDI,qword ptr [RBP + -0x30]
CALL 0x00113570
MOV RDI,qword ptr [RBP + -0x38]
CALL 0x00113570
MOV RDI,qword ptr [RBP + -0x40]
CALL 0x00113570
XOR R15D,R15D
TEST R14,R14
JZ 0x0011a2c9
CMP qword ptr [RBX + 0x2e8],0x0
JNZ 0x0011a2c9
MOV RDI,R14
CALL 0x001137d0
MOV qword ptr [RBX + 0x2e8],RAX
TEST RAX,RAX
JZ 0x0011a321
XOR R15D,R15D
JMP 0x0011a2c9
LAB_0011a321:
MOV dword ptr [RBX + 0x90],0x7d8
LEA RDI,[RBX + 0x297]
LEA RAX,[0x148a60]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00113220
XOR R14D,R14D
MOV byte ptr [RBX + 0x29c],R14B
LEA RDI,[RBX + 0x97]
LEA RAX,[0x148a70]
MOV RSI,qword ptr [RAX + 0x40]
MOV EDX,0x1ff
CALL 0x00113220
MOV byte ptr [RBX + 0x296],R14B
MOV R15B,0x1
JMP 0x0011a2c9
|
int mysql_change_user(long param_1,char *param_2,char *param_3,char *param_4)
{
int8 uVar1;
void *__ptr;
void *__ptr_00;
void *__ptr_01;
int iVar2;
int8 uVar3;
char *pcVar4;
uVar1 = *(int8 *)(param_1 + 0x2f0);
__ptr = *(void **)(param_1 + 0x2b8);
__ptr_00 = *(void **)(param_1 + 0x2c0);
__ptr_01 = *(void **)(param_1 + 0x2e8);
pcVar4 = "utf8mb4";
if (*(char **)(param_1 + 0x3f8) != (char *)0x0) {
pcVar4 = *(char **)(param_1 + 0x3f8);
}
uVar3 = mysql_find_charset_name(pcVar4);
*(int8 *)(param_1 + 0x2f0) = uVar3;
if (param_2 == (char *)0x0) {
param_2 = "";
}
pcVar4 = strdup(param_2);
*(char **)(param_1 + 0x2b8) = pcVar4;
if (param_3 == (char *)0x0) {
param_3 = "";
}
pcVar4 = strdup(param_3);
*(char **)(param_1 + 0x2c0) = pcVar4;
*(int8 *)(param_1 + 0x2e8) = 0;
iVar2 = run_plugin_auth(param_1,0,0,0,param_4);
ma_invalidate_stmts(param_1,"mysql_change_user()");
if (iVar2 == 0) {
free(__ptr);
free(__ptr_00);
free(__ptr_01);
iVar2 = 0;
if ((param_4 != (char *)0x0) && (*(long *)(param_1 + 0x2e8) == 0)) {
pcVar4 = strdup(param_4);
*(char **)(param_1 + 0x2e8) = pcVar4;
if (pcVar4 == (char *)0x0) {
*(int4 *)(param_1 + 0x90) = 0x7d8;
strncpy((char *)(param_1 + 0x297),SQLSTATE_UNKNOWN,5);
*(int1 *)(param_1 + 0x29c) = 0;
strncpy((char *)(param_1 + 0x97),PTR_s_Client_run_out_of_memory_00148ab0,0x1ff);
*(int1 *)(param_1 + 0x296) = 0;
iVar2 = 1;
}
else {
iVar2 = 0;
}
}
}
else {
free(*(void **)(param_1 + 0x2b8));
free(*(void **)(param_1 + 0x2c0));
free(*(void **)(param_1 + 0x2e8));
*(void **)(param_1 + 0x2b8) = __ptr;
*(void **)(param_1 + 0x2c0) = __ptr_00;
*(void **)(param_1 + 0x2e8) = __ptr_01;
*(int8 *)(param_1 + 0x2f0) = uVar1;
}
return iVar2;
}
|
|
66,264 |
minja::Context::get(minja::Value const&)
|
monkey531[P]llama/common/./minja.hpp
|
virtual Value get(const Value & key) {
if (values_.contains(key)) return values_.at(key);
if (parent_) return parent_->get(key);
return Value();
}
|
O3
|
cpp
|
minja::Context::get(minja::Value const&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x18(%rsi), %r12
movq %r12, %rdi
movq %rdx, %rsi
callq 0x549f4
testb %al, %al
je 0x602b4
movq %r12, %rdi
movq %r14, %rsi
callq 0x547e2
movq %rbx, %rdi
movq %rax, %rsi
callq 0x4ed98
jmp 0x60307
movq 0x68(%r15), %rsi
testq %rsi, %rsi
je 0x602cb
movq (%rsi), %rax
movq %rbx, %rdi
movq %r14, %rdx
callq *0x10(%rax)
jmp 0x60307
leaq 0x40(%rbx), %r14
movq $0x0, 0x48(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movups %xmm0, 0x10(%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x30(%rbx)
movb $0x0, 0x40(%rbx)
movq %r14, %rdi
movl $0x1, %esi
callq 0x3d970
movq %r14, %rdi
movl $0x1, %esi
callq 0x3d970
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
|
_ZN5minja7Context3getERKNS_5ValueE:
push r15
push r14
push r12
push rbx
push rax
mov r14, rdx
mov r15, rsi
mov rbx, rdi
lea r12, [rsi+18h]
mov rdi, r12; this
mov rsi, rdx; minja::Value *
call _ZNK5minja5Value8containsERKS0_; minja::Value::contains(minja::Value const&)
test al, al
jz short loc_602B4
mov rdi, r12; this
mov rsi, r14; minja::Value *
call _ZN5minja5Value2atERKS0_; minja::Value::at(minja::Value const&)
mov rdi, rbx; this
mov rsi, rax; minja::Value *
call _ZN5minja5ValueC2ERKS0_; minja::Value::Value(minja::Value const&)
jmp short loc_60307
loc_602B4:
mov rsi, [r15+68h]
test rsi, rsi
jz short loc_602CB
mov rax, [rsi]
mov rdi, rbx
mov rdx, r14
call qword ptr [rax+10h]
jmp short loc_60307
loc_602CB:
lea r14, [rbx+40h]
mov qword ptr [rbx+48h], 0
xorps xmm0, xmm0
movups xmmword ptr [rbx], xmm0
movups xmmword ptr [rbx+10h], xmm0
movups xmmword ptr [rbx+20h], xmm0
movups xmmword ptr [rbx+30h], xmm0
mov byte ptr [rbx+40h], 0
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
loc_60307:
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
|
minja::Context * minja::Context::get(
minja::Context *this,
const minja::Value *a2,
const minja::Value *a3,
__m128d a4)
{
const minja::Value *v5; // rax
long long v6; // rsi
if ( minja::Value::contains((const minja::Value *)((char *)a2 + 24), a3, a4) )
{
v5 = (const minja::Value *)minja::Value::at((const minja::Value *)((char *)a2 + 24), a3);
minja::Value::Value(this, v5);
}
else
{
v6 = *((_QWORD *)a2 + 13);
if ( v6 )
{
(*(void ( **)(minja::Context *, long long, const minja::Value *))(*(_QWORD *)v6 + 16LL))(this, v6, a3);
}
else
{
*((_QWORD *)this + 9) = 0LL;
*(_OWORD *)this = 0LL;
*((_OWORD *)this + 1) = 0LL;
*((_OWORD *)this + 2) = 0LL;
*((_OWORD *)this + 3) = 0LL;
*((_BYTE *)this + 64) = 0;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)this + 64);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)this + 64);
}
}
return this;
}
|
get:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
LEA R12,[RSI + 0x18]
MOV RDI,R12
MOV RSI,RDX
CALL 0x001549f4
TEST AL,AL
JZ 0x001602b4
MOV RDI,R12
MOV RSI,R14
CALL 0x001547e2
MOV RDI,RBX
MOV RSI,RAX
CALL 0x0014ed98
JMP 0x00160307
LAB_001602b4:
MOV RSI,qword ptr [R15 + 0x68]
TEST RSI,RSI
JZ 0x001602cb
MOV RAX,qword ptr [RSI]
MOV RDI,RBX
MOV RDX,R14
CALL qword ptr [RAX + 0x10]
JMP 0x00160307
LAB_001602cb:
LEA R14,[RBX + 0x40]
MOV qword ptr [RBX + 0x48],0x0
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX],XMM0
MOVUPS xmmword ptr [RBX + 0x10],XMM0
MOVUPS xmmword ptr [RBX + 0x20],XMM0
MOVUPS xmmword ptr [RBX + 0x30],XMM0
MOV byte ptr [RBX + 0x40],0x0
MOV RDI,R14
MOV ESI,0x1
CALL 0x0013d970
MOV RDI,R14
MOV ESI,0x1
CALL 0x0013d970
LAB_00160307:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
/* minja::Context::get(minja::Value const&) */
Value * minja::Context::get(Value *param_1)
{
char cVar1;
Value *pVVar2;
Value *in_RDX;
long in_RSI;
bool bVar3;
cVar1 = minja::Value::contains((Value *)(in_RSI + 0x18),in_RDX);
if (cVar1 == '\0') {
if (*(long **)(in_RSI + 0x68) == (long *)0x0) {
bVar3 = (bool)((char)param_1 + '@');
*(int8 *)(param_1 + 0x48) = 0;
*(int8 *)param_1 = 0;
*(int8 *)(param_1 + 8) = 0;
*(int8 *)(param_1 + 0x10) = 0;
*(int8 *)(param_1 + 0x18) = 0;
*(int8 *)(param_1 + 0x20) = 0;
*(int8 *)(param_1 + 0x28) = 0;
*(int8 *)(param_1 + 0x30) = 0;
*(int8 *)(param_1 + 0x38) = 0;
param_1[0x40] = (Value)0x0;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar3);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar3);
}
else {
(**(code **)(**(long **)(in_RSI + 0x68) + 0x10))(param_1);
}
}
else {
pVVar2 = (Value *)minja::Value::at((Value *)(in_RSI + 0x18),in_RDX);
minja::Value::Value(param_1,pVVar2);
}
return param_1;
}
|
|
66,265 |
mi_init_bulk_insert
|
eloqsql/storage/myisam/mi_write.c
|
int mi_init_bulk_insert(MI_INFO *info, size_t cache_size, ha_rows rows)
{
MYISAM_SHARE *share=info->s;
MI_KEYDEF *key=share->keyinfo;
bulk_insert_param *params;
uint i, num_keys, total_keylength;
ulonglong key_map;
DBUG_ENTER("_mi_init_bulk_insert");
DBUG_PRINT("enter",("cache_size: %lu", (ulong) cache_size));
DBUG_ASSERT(!info->bulk_insert &&
(!rows || rows >= MI_MIN_ROWS_TO_USE_BULK_INSERT));
mi_clear_all_keys_active(key_map);
for (i=total_keylength=num_keys=0 ; i < share->base.keys ; i++)
{
if (! (key[i].flag & HA_NOSAME) && (share->base.auto_key != i + 1) &&
mi_is_key_active(share->state.key_map, i))
{
num_keys++;
mi_set_key_active(key_map, i);
total_keylength+=key[i].maxlength+TREE_ELEMENT_EXTRA_SIZE;
}
}
if (num_keys==0 ||
num_keys * (size_t) MI_MIN_SIZE_BULK_INSERT_TREE > cache_size)
DBUG_RETURN(0);
if (rows && rows*total_keylength < cache_size)
cache_size= (size_t) rows;
else
cache_size/=total_keylength*16;
info->bulk_insert=(TREE *)
my_malloc(mi_key_memory_MI_INFO_bulk_insert,
(sizeof(TREE)*share->base.keys+
sizeof(bulk_insert_param)*num_keys),MYF(0));
if (!info->bulk_insert)
DBUG_RETURN(HA_ERR_OUT_OF_MEM);
params=(bulk_insert_param *)(info->bulk_insert+share->base.keys);
for (i=0 ; i < share->base.keys ; i++)
{
if (mi_is_key_active(key_map, i))
{
params->info=info;
params->keynr=i;
/* Only allocate a 16'th of the buffer at a time */
init_tree(&info->bulk_insert[i],
cache_size * key[i].maxlength,
cache_size * key[i].maxlength, 0,
(qsort_cmp2)keys_compare, keys_free, (void *)params++, MYF(0));
}
else
info->bulk_insert[i].root=0;
}
DBUG_RETURN(0);
}
|
O0
|
c
|
mi_init_bulk_insert:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq 0x218(%rax), %rax
movq %rax, -0x30(%rbp)
jmp 0xc94c0
jmp 0xc94c2
jmp 0xc94c4
movq $0x0, -0x50(%rbp)
movl $0x0, -0x40(%rbp)
movl $0x0, -0x44(%rbp)
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
movq -0x28(%rbp), %rcx
cmpl 0x180(%rcx), %eax
jae 0xc95a7
movq -0x30(%rbp), %rax
movl -0x3c(%rbp), %ecx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movzwl 0xa(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0xc9597
movq -0x28(%rbp), %rax
movl 0x184(%rax), %eax
movl -0x3c(%rbp), %ecx
addl $0x1, %ecx
cmpl %ecx, %eax
je 0xc9597
movq -0x28(%rbp), %rax
movq 0xc0(%rax), %rax
movl -0x3c(%rbp), %ecx
movl $0x1, %edx
shlq %cl, %rdx
movq %rdx, %rcx
andq %rcx, %rax
cmpq $0x0, %rax
je 0xc9550
movb $0x1, %al
testb $0x1, %al
jne 0xc9558
jmp 0xc9597
xorl %eax, %eax
testb $0x1, %al
jne 0xc9558
jmp 0xc9597
movl -0x40(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x40(%rbp)
movl -0x3c(%rbp), %eax
movl %eax, %ecx
movl $0x1, %eax
shlq %cl, %rax
orq -0x50(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x30(%rbp), %rax
movl -0x3c(%rbp), %ecx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movzwl 0x16(%rax), %eax
movl %eax, %ecx
addq $0x20, %rcx
movl -0x44(%rbp), %eax
addq %rcx, %rax
movl %eax, -0x44(%rbp)
jmp 0xc9599
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0xc94e1
cmpl $0x0, -0x40(%rbp)
je 0xc95ba
movl -0x40(%rbp), %eax
shlq $0xe, %rax
cmpq -0x18(%rbp), %rax
jbe 0xc95c8
jmp 0xc95bc
movl $0x0, -0x4(%rbp)
jmp 0xc9795
cmpq $0x0, -0x20(%rbp)
je 0xc95ea
movq -0x20(%rbp), %rax
movl -0x44(%rbp), %ecx
imulq %rcx, %rax
cmpq -0x18(%rbp), %rax
jae 0xc95ea
movq -0x20(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0xc9601
movl -0x44(%rbp), %eax
shll $0x4, %eax
movl %eax, %eax
movl %eax, %ecx
movq -0x18(%rbp), %rax
xorl %edx, %edx
divq %rcx
movq %rax, -0x18(%rbp)
leaq 0xbb220c(%rip), %rax # 0xc7b814
movl (%rax), %edi
movq -0x28(%rbp), %rax
movl 0x180(%rax), %eax
imulq $0x298, %rax, %rsi # imm = 0x298
movl -0x40(%rbp), %eax
shlq $0x4, %rax
addq %rax, %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0xf4be0
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x80(%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x80(%rax)
jne 0xc9658
jmp 0xc964c
movl $0x80, -0x4(%rbp)
jmp 0xc9795
movq -0x10(%rbp), %rax
movq 0x80(%rax), %rax
movq -0x28(%rbp), %rcx
movl 0x180(%rcx), %ecx
imulq $0x298, %rcx, %rcx # imm = 0x298
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
movq -0x28(%rbp), %rcx
cmpl 0x180(%rcx), %eax
jae 0xc978c
movq -0x50(%rbp), %rax
movl -0x3c(%rbp), %ecx
movl $0x1, %edx
shlq %cl, %rdx
movq %rdx, %rcx
andq %rcx, %rax
cmpq $0x0, %rax
je 0xc96bb
movb $0x1, %al
testb $0x1, %al
jne 0xc96c6
jmp 0xc975d
xorl %eax, %eax
testb $0x1, %al
jne 0xc96c6
jmp 0xc975d
movq -0x10(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
movl -0x3c(%rbp), %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x10(%rbp), %rax
movq 0x80(%rax), %rdi
movl -0x3c(%rbp), %eax
imulq $0x298, %rax, %rax # imm = 0x298
addq %rax, %rdi
movq -0x18(%rbp), %rsi
movq -0x30(%rbp), %rax
movl -0x3c(%rbp), %ecx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movzwl 0x16(%rax), %eax
imulq %rax, %rsi
movq -0x18(%rbp), %rdx
movq -0x30(%rbp), %rax
movl -0x3c(%rbp), %ecx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movzwl 0x16(%rax), %eax
imulq %rax, %rdx
movq -0x38(%rbp), %rax
movq %rax, %rcx
addq $0x10, %rcx
movq %rcx, -0x38(%rbp)
xorl %ecx, %ecx
leaq 0x61(%rip), %r8 # 0xc97a0
leaq 0xba(%rip), %r9 # 0xc9800
xorl %r10d, %r10d
movq %rax, (%rsp)
movq $0x0, 0x8(%rsp)
callq 0xfb740
jmp 0xc977c
movq -0x10(%rbp), %rax
movq 0x80(%rax), %rax
movl -0x3c(%rbp), %ecx
imulq $0x298, %rcx, %rcx # imm = 0x298
addq %rcx, %rax
movq $0x0, (%rax)
jmp 0xc977e
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0xc9682
jmp 0xc978e
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nop
|
mi_init_bulk_insert:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
mov rax, [rax+218h]
mov [rbp+var_30], rax
jmp short $+2
loc_C94C0:
jmp short $+2
loc_C94C2:
jmp short $+2
loc_C94C4:
mov [rbp+var_50], 0
mov [rbp+var_40], 0
mov [rbp+var_44], 0
mov [rbp+var_3C], 0
loc_C94E1:
mov eax, [rbp+var_3C]
mov rcx, [rbp+var_28]
cmp eax, [rcx+180h]
jnb loc_C95A7
mov rax, [rbp+var_30]
mov ecx, [rbp+var_3C]
imul rcx, 70h ; 'p'
add rax, rcx
movzx eax, word ptr [rax+0Ah]
and eax, 1
cmp eax, 0
jnz loc_C9597
mov rax, [rbp+var_28]
mov eax, [rax+184h]
mov ecx, [rbp+var_3C]
add ecx, 1
cmp eax, ecx
jz short loc_C9597
mov rax, [rbp+var_28]
mov rax, [rax+0C0h]
mov ecx, [rbp+var_3C]
mov edx, 1
shl rdx, cl
mov rcx, rdx
and rax, rcx
cmp rax, 0
jz short loc_C9550
mov al, 1
test al, 1
jnz short loc_C9558
jmp short loc_C9597
loc_C9550:
xor eax, eax
test al, 1
jnz short loc_C9558
jmp short loc_C9597
loc_C9558:
mov eax, [rbp+var_40]
add eax, 1
mov [rbp+var_40], eax
mov eax, [rbp+var_3C]
mov ecx, eax
mov eax, 1
shl rax, cl
or rax, [rbp+var_50]
mov [rbp+var_50], rax
mov rax, [rbp+var_30]
mov ecx, [rbp+var_3C]
imul rcx, 70h ; 'p'
add rax, rcx
movzx eax, word ptr [rax+16h]
mov ecx, eax
add rcx, 20h ; ' '
mov eax, [rbp+var_44]
add rax, rcx
mov [rbp+var_44], eax
loc_C9597:
jmp short $+2
loc_C9599:
mov eax, [rbp+var_3C]
add eax, 1
mov [rbp+var_3C], eax
jmp loc_C94E1
loc_C95A7:
cmp [rbp+var_40], 0
jz short loc_C95BA
mov eax, [rbp+var_40]
shl rax, 0Eh
cmp rax, [rbp+var_18]
jbe short loc_C95C8
loc_C95BA:
jmp short $+2
loc_C95BC:
mov [rbp+var_4], 0
jmp loc_C9795
loc_C95C8:
cmp [rbp+var_20], 0
jz short loc_C95EA
mov rax, [rbp+var_20]
mov ecx, [rbp+var_44]
imul rax, rcx
cmp rax, [rbp+var_18]
jnb short loc_C95EA
mov rax, [rbp+var_20]
mov [rbp+var_18], rax
jmp short loc_C9601
loc_C95EA:
mov eax, [rbp+var_44]
shl eax, 4
mov eax, eax
mov ecx, eax
mov rax, [rbp+var_18]
xor edx, edx
div rcx
mov [rbp+var_18], rax
loc_C9601:
lea rax, mi_key_memory_MI_INFO_bulk_insert
mov edi, [rax]
mov rax, [rbp+var_28]
mov eax, [rax+180h]
imul rsi, rax, 298h
mov eax, [rbp+var_40]
shl rax, 4
add rsi, rax
xor eax, eax
mov edx, eax
call my_malloc
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+80h], rcx
mov rax, [rbp+var_10]
cmp qword ptr [rax+80h], 0
jnz short loc_C9658
jmp short $+2
loc_C964C:
mov [rbp+var_4], 80h
jmp loc_C9795
loc_C9658:
mov rax, [rbp+var_10]
mov rax, [rax+80h]
mov rcx, [rbp+var_28]
mov ecx, [rcx+180h]
imul rcx, 298h
add rax, rcx
mov [rbp+var_38], rax
mov [rbp+var_3C], 0
loc_C9682:
mov eax, [rbp+var_3C]
mov rcx, [rbp+var_28]
cmp eax, [rcx+180h]
jnb loc_C978C
mov rax, [rbp+var_50]
mov ecx, [rbp+var_3C]
mov edx, 1
shl rdx, cl
mov rcx, rdx
and rax, rcx
cmp rax, 0
jz short loc_C96BB
mov al, 1
test al, 1
jnz short loc_C96C6
jmp loc_C975D
loc_C96BB:
xor eax, eax
test al, 1
jnz short loc_C96C6
jmp loc_C975D
loc_C96C6:
mov rcx, [rbp+var_10]
mov rax, [rbp+var_38]
mov [rax], rcx
mov ecx, [rbp+var_3C]
mov rax, [rbp+var_38]
mov [rax+8], ecx
mov rax, [rbp+var_10]
mov rdi, [rax+80h]
mov eax, [rbp+var_3C]
imul rax, 298h
add rdi, rax
mov rsi, [rbp+var_18]
mov rax, [rbp+var_30]
mov ecx, [rbp+var_3C]
imul rcx, 70h ; 'p'
add rax, rcx
movzx eax, word ptr [rax+16h]
imul rsi, rax
mov rdx, [rbp+var_18]
mov rax, [rbp+var_30]
mov ecx, [rbp+var_3C]
imul rcx, 70h ; 'p'
add rax, rcx
movzx eax, word ptr [rax+16h]
imul rdx, rax
mov rax, [rbp+var_38]
mov rcx, rax
add rcx, 10h
mov [rbp+var_38], rcx
xor ecx, ecx
lea r8, keys_compare_0
lea r9, keys_free_0
xor r10d, r10d
mov [rsp+60h+var_60], rax
mov [rsp+60h+var_58], 0
call init_tree
jmp short loc_C977C
loc_C975D:
mov rax, [rbp+var_10]
mov rax, [rax+80h]
mov ecx, [rbp+var_3C]
imul rcx, 298h
add rax, rcx
mov qword ptr [rax], 0
loc_C977C:
jmp short $+2
loc_C977E:
mov eax, [rbp+var_3C]
add eax, 1
mov [rbp+var_3C], eax
jmp loc_C9682
loc_C978C:
jmp short $+2
loc_C978E:
mov [rbp+var_4], 0
loc_C9795:
mov eax, [rbp+var_4]
add rsp, 60h
pop rbp
retn
|
long long mi_init_bulk_insert(_QWORD *a1, unsigned long long a2, long long a3)
{
long long v3; // rax
long long v5; // [rsp+10h] [rbp-50h]
unsigned int v6; // [rsp+1Ch] [rbp-44h]
unsigned int v7; // [rsp+20h] [rbp-40h]
unsigned int i; // [rsp+24h] [rbp-3Ch]
unsigned int j; // [rsp+24h] [rbp-3Ch]
long long v10; // [rsp+28h] [rbp-38h]
long long v11; // [rsp+30h] [rbp-30h]
long long v12; // [rsp+38h] [rbp-28h]
unsigned long long v13; // [rsp+48h] [rbp-18h]
v12 = *a1;
v11 = *(_QWORD *)(*a1 + 536LL);
v5 = 0LL;
v7 = 0;
v6 = 0;
for ( i = 0; i < *(_DWORD *)(v12 + 384); ++i )
{
if ( (*(_WORD *)(112LL * i + v11 + 10) & 1) == 0
&& *(_DWORD *)(v12 + 388) != i + 1
&& ((1LL << i) & *(_QWORD *)(v12 + 192)) != 0 )
{
++v7;
v5 |= 1LL << i;
v6 += *(unsigned __int16 *)(112LL * i + v11 + 22) + 32;
}
}
if ( v7 && (unsigned long long)v7 << 14 <= a2 )
{
if ( a3 && (unsigned long long)v6 * a3 < a2 )
LODWORD(v13) = a3;
else
v13 = a2 / (16 * v6);
a1[16] = my_malloc(mi_key_memory_MI_INFO_bulk_insert, 16LL * v7 + 664LL * *(unsigned int *)(v12 + 384), 0LL);
if ( a1[16] )
{
v10 = 664LL * *(unsigned int *)(v12 + 384) + a1[16];
for ( j = 0; j < *(_DWORD *)(v12 + 384); ++j )
{
if ( ((1LL << j) & v5) != 0 )
{
*(_QWORD *)v10 = a1;
*(_DWORD *)(v10 + 8) = j;
v3 = v10;
v10 += 16LL;
init_tree(
664 * j + *((_DWORD *)a1 + 32),
*(unsigned __int16 *)(112LL * j + v11 + 22) * (_DWORD)v13,
*(unsigned __int16 *)(112LL * j + v11 + 22) * (_DWORD)v13,
0,
(unsigned int)keys_compare_0,
(unsigned int)keys_free_0,
v3,
0LL);
}
else
{
*(_QWORD *)(664LL * j + a1[16]) = 0LL;
}
}
return 0;
}
else
{
return 128;
}
}
else
{
return 0;
}
}
|
mi_init_bulk_insert:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x218]
MOV qword ptr [RBP + -0x30],RAX
JMP 0x001c94c0
LAB_001c94c0:
JMP 0x001c94c2
LAB_001c94c2:
JMP 0x001c94c4
LAB_001c94c4:
MOV qword ptr [RBP + -0x50],0x0
MOV dword ptr [RBP + -0x40],0x0
MOV dword ptr [RBP + -0x44],0x0
MOV dword ptr [RBP + -0x3c],0x0
LAB_001c94e1:
MOV EAX,dword ptr [RBP + -0x3c]
MOV RCX,qword ptr [RBP + -0x28]
CMP EAX,dword ptr [RCX + 0x180]
JNC 0x001c95a7
MOV RAX,qword ptr [RBP + -0x30]
MOV ECX,dword ptr [RBP + -0x3c]
IMUL RCX,RCX,0x70
ADD RAX,RCX
MOVZX EAX,word ptr [RAX + 0xa]
AND EAX,0x1
CMP EAX,0x0
JNZ 0x001c9597
MOV RAX,qword ptr [RBP + -0x28]
MOV EAX,dword ptr [RAX + 0x184]
MOV ECX,dword ptr [RBP + -0x3c]
ADD ECX,0x1
CMP EAX,ECX
JZ 0x001c9597
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0xc0]
MOV ECX,dword ptr [RBP + -0x3c]
MOV EDX,0x1
SHL RDX,CL
MOV RCX,RDX
AND RAX,RCX
CMP RAX,0x0
JZ 0x001c9550
MOV AL,0x1
TEST AL,0x1
JNZ 0x001c9558
JMP 0x001c9597
LAB_001c9550:
XOR EAX,EAX
TEST AL,0x1
JNZ 0x001c9558
JMP 0x001c9597
LAB_001c9558:
MOV EAX,dword ptr [RBP + -0x40]
ADD EAX,0x1
MOV dword ptr [RBP + -0x40],EAX
MOV EAX,dword ptr [RBP + -0x3c]
MOV ECX,EAX
MOV EAX,0x1
SHL RAX,CL
OR RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV ECX,dword ptr [RBP + -0x3c]
IMUL RCX,RCX,0x70
ADD RAX,RCX
MOVZX EAX,word ptr [RAX + 0x16]
MOV ECX,EAX
ADD RCX,0x20
MOV EAX,dword ptr [RBP + -0x44]
ADD RAX,RCX
MOV dword ptr [RBP + -0x44],EAX
LAB_001c9597:
JMP 0x001c9599
LAB_001c9599:
MOV EAX,dword ptr [RBP + -0x3c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x3c],EAX
JMP 0x001c94e1
LAB_001c95a7:
CMP dword ptr [RBP + -0x40],0x0
JZ 0x001c95ba
MOV EAX,dword ptr [RBP + -0x40]
SHL RAX,0xe
CMP RAX,qword ptr [RBP + -0x18]
JBE 0x001c95c8
LAB_001c95ba:
JMP 0x001c95bc
LAB_001c95bc:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001c9795
LAB_001c95c8:
CMP qword ptr [RBP + -0x20],0x0
JZ 0x001c95ea
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x44]
IMUL RAX,RCX
CMP RAX,qword ptr [RBP + -0x18]
JNC 0x001c95ea
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001c9601
LAB_001c95ea:
MOV EAX,dword ptr [RBP + -0x44]
SHL EAX,0x4
MOV EAX,EAX
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x18]
XOR EDX,EDX
DIV RCX
MOV qword ptr [RBP + -0x18],RAX
LAB_001c9601:
LEA RAX,[0xd7b814]
MOV EDI,dword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x28]
MOV EAX,dword ptr [RAX + 0x180]
IMUL RSI,RAX,0x298
MOV EAX,dword ptr [RBP + -0x40]
SHL RAX,0x4
ADD RSI,RAX
XOR EAX,EAX
MOV EDX,EAX
CALL 0x001f4be0
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x80],RCX
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x80],0x0
JNZ 0x001c9658
JMP 0x001c964c
LAB_001c964c:
MOV dword ptr [RBP + -0x4],0x80
JMP 0x001c9795
LAB_001c9658:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x80]
MOV RCX,qword ptr [RBP + -0x28]
MOV ECX,dword ptr [RCX + 0x180]
IMUL RCX,RCX,0x298
ADD RAX,RCX
MOV qword ptr [RBP + -0x38],RAX
MOV dword ptr [RBP + -0x3c],0x0
LAB_001c9682:
MOV EAX,dword ptr [RBP + -0x3c]
MOV RCX,qword ptr [RBP + -0x28]
CMP EAX,dword ptr [RCX + 0x180]
JNC 0x001c978c
MOV RAX,qword ptr [RBP + -0x50]
MOV ECX,dword ptr [RBP + -0x3c]
MOV EDX,0x1
SHL RDX,CL
MOV RCX,RDX
AND RAX,RCX
CMP RAX,0x0
JZ 0x001c96bb
MOV AL,0x1
TEST AL,0x1
JNZ 0x001c96c6
JMP 0x001c975d
LAB_001c96bb:
XOR EAX,EAX
TEST AL,0x1
JNZ 0x001c96c6
JMP 0x001c975d
LAB_001c96c6:
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX],RCX
MOV ECX,dword ptr [RBP + -0x3c]
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX + 0x8],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x80]
MOV EAX,dword ptr [RBP + -0x3c]
IMUL RAX,RAX,0x298
ADD RDI,RAX
MOV RSI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x30]
MOV ECX,dword ptr [RBP + -0x3c]
IMUL RCX,RCX,0x70
ADD RAX,RCX
MOVZX EAX,word ptr [RAX + 0x16]
IMUL RSI,RAX
MOV RDX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x30]
MOV ECX,dword ptr [RBP + -0x3c]
IMUL RCX,RCX,0x70
ADD RAX,RCX
MOVZX EAX,word ptr [RAX + 0x16]
IMUL RDX,RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,RAX
ADD RCX,0x10
MOV qword ptr [RBP + -0x38],RCX
XOR ECX,ECX
LEA R8,[0x1c97a0]
LEA R9,[0x1c9800]
XOR R10D,R10D
MOV qword ptr [RSP],RAX
MOV qword ptr [RSP + 0x8],0x0
CALL 0x001fb740
JMP 0x001c977c
LAB_001c975d:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x80]
MOV ECX,dword ptr [RBP + -0x3c]
IMUL RCX,RCX,0x298
ADD RAX,RCX
MOV qword ptr [RAX],0x0
LAB_001c977c:
JMP 0x001c977e
LAB_001c977e:
MOV EAX,dword ptr [RBP + -0x3c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x3c],EAX
JMP 0x001c9682
LAB_001c978c:
JMP 0x001c978e
LAB_001c978e:
MOV dword ptr [RBP + -0x4],0x0
LAB_001c9795:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x60
POP RBP
RET
|
/* WARNING: Removing unreachable block (ram,0x001c96b6) */
/* WARNING: Removing unreachable block (ram,0x001c954e) */
int4 mi_init_bulk_insert(long *param_1,ulong param_2,ulong param_3)
{
long lVar1;
long lVar2;
long lVar3;
ulong local_58;
uint local_4c;
uint local_48;
uint local_44;
int8 *local_40;
ulong local_20;
int4 local_c;
lVar1 = *param_1;
lVar2 = *(long *)(lVar1 + 0x218);
local_58 = 0;
local_48 = 0;
local_4c = 0;
for (local_44 = 0; local_44 < *(uint *)(lVar1 + 0x180); local_44 = local_44 + 1) {
if ((((*(ushort *)(lVar2 + (ulong)local_44 * 0x70 + 10) & 1) == 0) &&
(*(int *)(lVar1 + 0x184) != local_44 + 1)) &&
((*(ulong *)(lVar1 + 0xc0) & 1L << ((byte)local_44 & 0x3f)) != 0)) {
local_48 = local_48 + 1;
local_58 = 1L << ((byte)local_44 & 0x3f) | local_58;
local_4c = local_4c + *(ushort *)(lVar2 + (ulong)local_44 * 0x70 + 0x16) + 0x20;
}
}
if ((local_48 == 0) || (param_2 < (ulong)local_48 << 0xe)) {
local_c = 0;
}
else {
if ((param_3 == 0) || (local_20 = param_3, param_2 <= param_3 * local_4c)) {
local_20 = param_2 / (local_4c << 4);
}
lVar3 = my_malloc(mi_key_memory_MI_INFO_bulk_insert,
(ulong)*(uint *)(lVar1 + 0x180) * 0x298 + (ulong)local_48 * 0x10,0);
param_1[0x10] = lVar3;
if (param_1[0x10] == 0) {
local_c = 0x80;
}
else {
local_40 = (int8 *)(param_1[0x10] + (ulong)*(uint *)(lVar1 + 0x180) * 0x298);
for (local_44 = 0; local_44 < *(uint *)(lVar1 + 0x180); local_44 = local_44 + 1) {
if ((local_58 & 1L << ((byte)local_44 & 0x3f)) == 0) {
*(int8 *)(param_1[0x10] + (ulong)local_44 * 0x298) = 0;
}
else {
*local_40 = param_1;
*(uint *)(local_40 + 1) = local_44;
init_tree(param_1[0x10] + (ulong)local_44 * 0x298,
local_20 * *(ushort *)(lVar2 + (ulong)local_44 * 0x70 + 0x16),
local_20 * *(ushort *)(lVar2 + (ulong)local_44 * 0x70 + 0x16),0,keys_compare,
keys_free,local_40,0);
local_40 = local_40 + 2;
}
}
local_c = 0;
}
}
return local_c;
}
|
|
66,266 |
mi_init_bulk_insert
|
eloqsql/storage/myisam/mi_write.c
|
int mi_init_bulk_insert(MI_INFO *info, size_t cache_size, ha_rows rows)
{
MYISAM_SHARE *share=info->s;
MI_KEYDEF *key=share->keyinfo;
bulk_insert_param *params;
uint i, num_keys, total_keylength;
ulonglong key_map;
DBUG_ENTER("_mi_init_bulk_insert");
DBUG_PRINT("enter",("cache_size: %lu", (ulong) cache_size));
DBUG_ASSERT(!info->bulk_insert &&
(!rows || rows >= MI_MIN_ROWS_TO_USE_BULK_INSERT));
mi_clear_all_keys_active(key_map);
for (i=total_keylength=num_keys=0 ; i < share->base.keys ; i++)
{
if (! (key[i].flag & HA_NOSAME) && (share->base.auto_key != i + 1) &&
mi_is_key_active(share->state.key_map, i))
{
num_keys++;
mi_set_key_active(key_map, i);
total_keylength+=key[i].maxlength+TREE_ELEMENT_EXTRA_SIZE;
}
}
if (num_keys==0 ||
num_keys * (size_t) MI_MIN_SIZE_BULK_INSERT_TREE > cache_size)
DBUG_RETURN(0);
if (rows && rows*total_keylength < cache_size)
cache_size= (size_t) rows;
else
cache_size/=total_keylength*16;
info->bulk_insert=(TREE *)
my_malloc(mi_key_memory_MI_INFO_bulk_insert,
(sizeof(TREE)*share->base.keys+
sizeof(bulk_insert_param)*num_keys),MYF(0));
if (!info->bulk_insert)
DBUG_RETURN(HA_ERR_OUT_OF_MEM);
params=(bulk_insert_param *)(info->bulk_insert+share->base.keys);
for (i=0 ; i < share->base.keys ; i++)
{
if (mi_is_key_active(key_map, i))
{
params->info=info;
params->keynr=i;
/* Only allocate a 16'th of the buffer at a time */
init_tree(&info->bulk_insert[i],
cache_size * key[i].maxlength,
cache_size * key[i].maxlength, 0,
(qsort_cmp2)keys_compare, keys_free, (void *)params++, MYF(0));
}
else
info->bulk_insert[i].root=0;
}
DBUG_RETURN(0);
}
|
O3
|
c
|
mi_init_bulk_insert:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, -0x30(%rbp)
movq (%rdi), %r13
movl 0x180(%r13), %r8d
testq %r8, %r8
je 0x8a75a
movq %rdx, %rbx
movq 0x218(%r13), %r14
xorl %ecx, %ecx
xorl %r15d, %r15d
xorl %edi, %edi
xorl %eax, %eax
imulq $0x70, %rcx, %r9
testb $0x1, 0xa(%r14,%r9)
jne 0x8a630
movl 0x184(%r13), %r10d
leaq 0x1(%rcx), %rdx
cmpq %r10, %rdx
je 0x8a636
movq 0xc0(%r13), %r11
movl $0x1, %r10d
shlq %cl, %r10
btq %rcx, %r11
jae 0x8a636
addq %r14, %r9
incl %eax
orq %r10, %r15
movzwl 0x16(%r9), %ecx
addl %ecx, %edi
addl $0x20, %edi
jmp 0x8a636
incq %rcx
movq %rcx, %rdx
movq %rdx, %rcx
cmpq %r8, %rdx
jne 0x8a5ea
xorl %r12d, %r12d
testl %eax, %eax
je 0x8a75d
movq %r15, -0x40(%rbp)
movl %eax, %ecx
movq %rcx, %rax
shlq $0xe, %rax
cmpq %rsi, %rax
ja 0x8a75d
testq %rbx, %rbx
je 0x8a66f
movl %edi, %eax
imulq %rbx, %rax
cmpq %rsi, %rax
jb 0x8a67d
shll $0x4, %edi
movq %rsi, %rax
xorl %edx, %edx
divq %rdi
movq %rax, %rbx
leaq 0xb775a0(%rip), %rax # 0xc01c24
movl (%rax), %edi
imulq $0x298, %r8, %rax # imm = 0x298
shlq $0x4, %rcx
addq %rax, %rcx
xorl %r12d, %r12d
movq %rcx, %rsi
xorl %edx, %edx
callq 0xa0cdd
movq %rax, %r15
movq -0x30(%rbp), %rax
movq %r15, 0x80(%rax)
testq %r15, %r15
je 0x8a76f
movl 0x180(%r13), %eax
testq %rax, %rax
je 0x8a75d
movq %rbx, -0x38(%rbp)
imulq $0x298, %rax, %rax # imm = 0x298
addq %rax, %r15
addq $0x16, %r14
xorl %r12d, %r12d
xorl %ebx, %ebx
movq -0x40(%rbp), %rax
btq %rbx, %rax
jae 0x8a72d
movq -0x30(%rbp), %rax
movq %rax, (%r15)
movl %ebx, 0x8(%r15)
movq 0x80(%rax), %rdi
addq %r12, %rdi
movzwl (%r14), %edx
imulq -0x38(%rbp), %rdx
movq %rdx, %rsi
xorl %ecx, %ecx
leaq 0x64(%rip), %r8 # 0x8a777
leaq 0x98(%rip), %r9 # 0x8a7b2
pushq $0x0
pushq %r15
addq $0x10, %r15
callq 0xa556c
addq $0x10, %rsp
jmp 0x8a740
movq -0x30(%rbp), %rax
movq 0x80(%rax), %rax
movq $0x0, (%rax,%r12)
incq %rbx
movl 0x180(%r13), %eax
addq $0x298, %r12 # imm = 0x298
addq $0x70, %r14
cmpq %rax, %rbx
jb 0x8a6df
xorl %r12d, %r12d
movl %r12d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x80, %r12d
jmp 0x8a75d
|
mi_init_bulk_insert:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov [rbp+var_30], rdi
mov r13, [rdi]
mov r8d, [r13+180h]
test r8, r8
jz loc_8A75A
mov rbx, rdx
mov r14, [r13+218h]
xor ecx, ecx
xor r15d, r15d
xor edi, edi
xor eax, eax
loc_8A5EA:
imul r9, rcx, 70h ; 'p'
test byte ptr [r14+r9+0Ah], 1
jnz short loc_8A630
mov r10d, [r13+184h]
lea rdx, [rcx+1]
cmp rdx, r10
jz short loc_8A636
mov r11, [r13+0C0h]
mov r10d, 1
shl r10, cl
bt r11, rcx
jnb short loc_8A636
add r9, r14
inc eax
or r15, r10
movzx ecx, word ptr [r9+16h]
add edi, ecx
add edi, 20h ; ' '
jmp short loc_8A636
loc_8A630:
inc rcx
mov rdx, rcx
loc_8A636:
mov rcx, rdx
cmp rdx, r8
jnz short loc_8A5EA
xor r12d, r12d
test eax, eax
jz loc_8A75D
mov [rbp+var_40], r15
mov ecx, eax
mov rax, rcx
shl rax, 0Eh
cmp rax, rsi
ja loc_8A75D
test rbx, rbx
jz short loc_8A66F
mov eax, edi
imul rax, rbx
cmp rax, rsi
jb short loc_8A67D
loc_8A66F:
shl edi, 4
mov rax, rsi
xor edx, edx
div rdi
mov rbx, rax
loc_8A67D:
lea rax, mi_key_memory_MI_INFO_bulk_insert
mov edi, [rax]
imul rax, r8, 298h
shl rcx, 4
add rcx, rax
xor r12d, r12d
mov rsi, rcx
xor edx, edx
call my_malloc
mov r15, rax
mov rax, [rbp+var_30]
mov [rax+80h], r15
test r15, r15
jz loc_8A76F
mov eax, [r13+180h]
test rax, rax
jz loc_8A75D
mov [rbp+var_38], rbx
imul rax, 298h
add r15, rax
add r14, 16h
xor r12d, r12d
xor ebx, ebx
loc_8A6DF:
mov rax, [rbp+var_40]
bt rax, rbx
jnb short loc_8A72D
mov rax, [rbp+var_30]
mov [r15], rax
mov [r15+8], ebx
mov rdi, [rax+80h]
add rdi, r12
movzx edx, word ptr [r14]
imul rdx, [rbp+var_38]
mov rsi, rdx
xor ecx, ecx
lea r8, keys_compare_0
lea r9, keys_free_0
push 0
push r15
add r15, 10h
call init_tree
add rsp, 10h
jmp short loc_8A740
loc_8A72D:
mov rax, [rbp+var_30]
mov rax, [rax+80h]
mov qword ptr [rax+r12], 0
loc_8A740:
inc rbx
mov eax, [r13+180h]
add r12, 298h
add r14, 70h ; 'p'
cmp rbx, rax
jb short loc_8A6DF
loc_8A75A:
xor r12d, r12d
loc_8A75D:
mov eax, r12d
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_8A76F:
mov r12d, 80h
jmp short loc_8A75D
|
long long mi_init_bulk_insert(_QWORD *a1, unsigned long long a2, unsigned long long a3)
{
long long v3; // r13
long long v4; // r8
long long v6; // r14
unsigned long long v7; // rcx
long long v8; // r15
unsigned int v9; // edi
unsigned int v10; // eax
unsigned long long v11; // rdx
long long v12; // r11
unsigned int v13; // r12d
long long v14; // r15
long long v15; // r15
unsigned __int16 *v16; // r14
long long v17; // r12
unsigned long long v18; // rbx
long long v19; // rax
long long v21; // [rsp-10h] [rbp-50h]
long long v22; // [rsp+0h] [rbp-40h]
int v23; // [rsp+8h] [rbp-38h]
v3 = *a1;
v4 = *(unsigned int *)(*a1 + 384LL);
if ( !*(_DWORD *)(*a1 + 384LL) )
return 0;
v6 = *(_QWORD *)(v3 + 536);
v7 = 0LL;
v8 = 0LL;
v9 = 0;
v10 = 0;
do
{
if ( (*(_BYTE *)(v6 + 112 * v7 + 10) & 1) != 0 )
{
v11 = v7 + 1;
}
else
{
v11 = v7 + 1;
if ( v7 + 1 != *(_DWORD *)(v3 + 388) )
{
v12 = *(_QWORD *)(v3 + 192);
if ( _bittest64(&v12, v7) )
{
++v10;
v8 |= 1LL << v7;
v9 += *(unsigned __int16 *)(v6 + 112 * v7 + 22) + 32;
}
}
}
v7 = v11;
}
while ( v11 != v4 );
v13 = 0;
if ( v10 )
{
v22 = v8;
if ( (unsigned long long)v10 << 14 <= a2 )
{
if ( !a3 || a3 * v9 >= a2 )
a3 = a2 / (16 * v9);
v13 = 0;
v14 = my_malloc(mi_key_memory_MI_INFO_bulk_insert, 664 * v4 + 16LL * v10, 0LL);
a1[16] = v14;
if ( !v14 )
return 128;
if ( *(_DWORD *)(v3 + 384) )
{
v23 = a3;
v15 = 664LL * *(unsigned int *)(v3 + 384) + v14;
v16 = (unsigned __int16 *)(v6 + 22);
v17 = 0LL;
v18 = 0LL;
do
{
v19 = v22;
if ( _bittest64(&v19, v18) )
{
*(_QWORD *)v15 = a1;
*(_DWORD *)(v15 + 8) = v18;
v21 = v15;
v15 += 16LL;
init_tree(
v17 + *((_DWORD *)a1 + 32),
v23 * *v16,
v23 * *v16,
0,
(unsigned int)keys_compare_0,
(unsigned int)keys_free_0,
v21,
0LL);
}
else
{
*(_QWORD *)(a1[16] + v17) = 0LL;
}
++v18;
v17 += 664LL;
v16 += 56;
}
while ( v18 < *(unsigned int *)(v3 + 384) );
return 0;
}
}
}
return v13;
}
|
mi_init_bulk_insert:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV qword ptr [RBP + -0x30],RDI
MOV R13,qword ptr [RDI]
MOV R8D,dword ptr [R13 + 0x180]
TEST R8,R8
JZ 0x0018a75a
MOV RBX,RDX
MOV R14,qword ptr [R13 + 0x218]
XOR ECX,ECX
XOR R15D,R15D
XOR EDI,EDI
XOR EAX,EAX
LAB_0018a5ea:
IMUL R9,RCX,0x70
TEST byte ptr [R14 + R9*0x1 + 0xa],0x1
JNZ 0x0018a630
MOV R10D,dword ptr [R13 + 0x184]
LEA RDX,[RCX + 0x1]
CMP RDX,R10
JZ 0x0018a636
MOV R11,qword ptr [R13 + 0xc0]
MOV R10D,0x1
SHL R10,CL
BT R11,RCX
JNC 0x0018a636
ADD R9,R14
INC EAX
OR R15,R10
MOVZX ECX,word ptr [R9 + 0x16]
ADD EDI,ECX
ADD EDI,0x20
JMP 0x0018a636
LAB_0018a630:
INC RCX
MOV RDX,RCX
LAB_0018a636:
MOV RCX,RDX
CMP RDX,R8
JNZ 0x0018a5ea
XOR R12D,R12D
TEST EAX,EAX
JZ 0x0018a75d
MOV qword ptr [RBP + -0x40],R15
MOV ECX,EAX
MOV RAX,RCX
SHL RAX,0xe
CMP RAX,RSI
JA 0x0018a75d
TEST RBX,RBX
JZ 0x0018a66f
MOV EAX,EDI
IMUL RAX,RBX
CMP RAX,RSI
JC 0x0018a67d
LAB_0018a66f:
SHL EDI,0x4
MOV RAX,RSI
XOR EDX,EDX
DIV RDI
MOV RBX,RAX
LAB_0018a67d:
LEA RAX,[0xd01c24]
MOV EDI,dword ptr [RAX]
IMUL RAX,R8,0x298
SHL RCX,0x4
ADD RCX,RAX
XOR R12D,R12D
MOV RSI,RCX
XOR EDX,EDX
CALL 0x001a0cdd
MOV R15,RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RAX + 0x80],R15
TEST R15,R15
JZ 0x0018a76f
MOV EAX,dword ptr [R13 + 0x180]
TEST RAX,RAX
JZ 0x0018a75d
MOV qword ptr [RBP + -0x38],RBX
IMUL RAX,RAX,0x298
ADD R15,RAX
ADD R14,0x16
XOR R12D,R12D
XOR EBX,EBX
LAB_0018a6df:
MOV RAX,qword ptr [RBP + -0x40]
BT RAX,RBX
JNC 0x0018a72d
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [R15],RAX
MOV dword ptr [R15 + 0x8],EBX
MOV RDI,qword ptr [RAX + 0x80]
ADD RDI,R12
MOVZX EDX,word ptr [R14]
IMUL RDX,qword ptr [RBP + -0x38]
MOV RSI,RDX
XOR ECX,ECX
LEA R8,[0x18a777]
LEA R9,[0x18a7b2]
PUSH 0x0
PUSH R15
ADD R15,0x10
CALL 0x001a556c
ADD RSP,0x10
JMP 0x0018a740
LAB_0018a72d:
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX + 0x80]
MOV qword ptr [RAX + R12*0x1],0x0
LAB_0018a740:
INC RBX
MOV EAX,dword ptr [R13 + 0x180]
ADD R12,0x298
ADD R14,0x70
CMP RBX,RAX
JC 0x0018a6df
LAB_0018a75a:
XOR R12D,R12D
LAB_0018a75d:
MOV EAX,R12D
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0018a76f:
MOV R12D,0x80
JMP 0x0018a75d
|
int8 mi_init_bulk_insert(long *param_1,ulong param_2,ulong param_3)
{
long lVar1;
uint uVar2;
long lVar3;
ulong uVar4;
ulong uVar5;
uint uVar6;
long lVar7;
ushort *puVar8;
ulong uVar9;
int8 *puVar10;
lVar1 = *param_1;
uVar5 = (ulong)*(uint *)(lVar1 + 0x180);
if (uVar5 != 0) {
lVar7 = *(long *)(lVar1 + 0x218);
uVar4 = 0;
uVar9 = 0;
uVar6 = 0;
uVar2 = 0;
do {
if ((((*(byte *)(lVar7 + 10 + uVar4 * 0x70) & 1) == 0) &&
(uVar4 + 1 != (ulong)*(uint *)(lVar1 + 0x184))) &&
((*(ulong *)(lVar1 + 0xc0) >> (uVar4 & 0x3f) & 1) != 0)) {
uVar2 = uVar2 + 1;
uVar9 = uVar9 | 1L << ((byte)uVar4 & 0x3f);
uVar6 = uVar6 + *(ushort *)(uVar4 * 0x70 + lVar7 + 0x16) + 0x20;
}
uVar4 = uVar4 + 1;
} while (uVar4 != uVar5);
if (uVar2 == 0) {
return 0;
}
if (param_2 < (ulong)uVar2 << 0xe) {
return 0;
}
if ((param_3 == 0) || (param_2 <= uVar6 * param_3)) {
param_3 = param_2 / (uVar6 << 4);
}
lVar3 = my_malloc(mi_key_memory_MI_INFO_bulk_insert,(ulong)uVar2 * 0x10 + uVar5 * 0x298,0);
param_1[0x10] = lVar3;
if (lVar3 == 0) {
return 0x80;
}
if ((ulong)*(uint *)(lVar1 + 0x180) == 0) {
return 0;
}
puVar10 = (int8 *)(lVar3 + (ulong)*(uint *)(lVar1 + 0x180) * 0x298);
puVar8 = (ushort *)(lVar7 + 0x16);
lVar7 = 0;
uVar5 = 0;
do {
if ((uVar9 >> (uVar5 & 0x3f) & 1) == 0) {
*(int8 *)(param_1[0x10] + lVar7) = 0;
}
else {
*puVar10 = param_1;
*(int *)(puVar10 + 1) = (int)uVar5;
init_tree(param_1[0x10] + lVar7,*puVar8 * param_3,*puVar8 * param_3,0,keys_compare,keys_free
,puVar10,0,uVar9,param_3);
puVar10 = puVar10 + 2;
}
uVar5 = uVar5 + 1;
lVar7 = lVar7 + 0x298;
puVar8 = puVar8 + 0x38;
} while (uVar5 < *(uint *)(lVar1 + 0x180));
}
return 0;
}
|
|
66,267 |
wt_resource_create
|
eloqsql/mysys/waiting_threads.c
|
static void wt_resource_create(uchar *arg)
{
WT_RESOURCE *rc= (WT_RESOURCE*)(arg+LF_HASH_OVERHEAD);
DBUG_ENTER("wt_resource_create");
bzero(rc, sizeof(*rc));
rc_rwlock_init(rc);
mysql_cond_init(key_WT_RESOURCE_cond, &rc->cond, 0);
my_init_dynamic_array(PSI_INSTRUMENT_ME, &rc->owners,
sizeof(WT_THD *), 0, 5, MYF(0));
DBUG_VOID_RETURN;
}
|
O3
|
c
|
wt_resource_create:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x3cfca(%rip), %rax # 0xeb2bc
movslq (%rax), %r15
addq %r15, %rdi
movl $0x108, %edx # imm = 0x108
xorl %esi, %esi
callq 0x2a290
leaq (%rbx,%r15), %rdi
addq $0x18, %rdi
callq 0xab5e8
leaq 0xb65b6c(%rip), %rax # 0xc13e84
movl (%rax), %edi
leaq (%rbx,%r15), %r14
addq $0xa8, %r14
leaq 0x2e2bac(%rip), %rax # 0x390ed8
movq (%rax), %rax
movq %r14, %rsi
callq *0x60(%rax)
movq %rax, 0x30(%r14)
movq %r14, %rdi
xorl %esi, %esi
callq 0x2a350
leaq (%rbx,%r15), %rsi
addq $0xe0, %rsi
movq $0x0, (%rsp)
xorl %edi, %edi
movl $0x8, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
movl $0x5, %r9d
callq 0x9691c
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
wt_resource_create:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rdi
lea rax, LF_HASH_OVERHEAD
movsxd r15, dword ptr [rax]
add rdi, r15
mov edx, 108h
xor esi, esi
call _memset
lea rdi, [rbx+r15]
add rdi, 18h
call my_rw_init
lea rax, key_WT_RESOURCE_cond
mov edi, [rax]
lea r14, [rbx+r15]
add r14, 0A8h
lea rax, PSI_server
mov rax, [rax]
mov rsi, r14
call qword ptr [rax+60h]
mov [r14+30h], rax
mov rdi, r14
xor esi, esi
call _pthread_cond_init
lea rsi, [rbx+r15]
add rsi, 0E0h
mov [rsp+20h+var_20], 0
xor edi, edi
mov edx, 8
xor ecx, ecx
xor r8d, r8d
mov r9d, 5
call init_dynamic_array2
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long wt_resource_create(long long a1)
{
memset(LF_HASH_OVERHEAD + a1, 0LL, 264LL);
my_rw_init(a1 + LF_HASH_OVERHEAD + 24);
*(_QWORD *)(a1 + LF_HASH_OVERHEAD + 216) = ((long long ( *)(_QWORD, long long))PSI_server[12])(
key_WT_RESOURCE_cond,
a1 + LF_HASH_OVERHEAD + 168);
pthread_cond_init(a1 + LF_HASH_OVERHEAD + 168, 0LL);
return init_dynamic_array2(0LL, a1 + LF_HASH_OVERHEAD + 224, 8u, 0LL, 0, 5u, 0LL);
}
|
wt_resource_create:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
LEA RAX,[0x1eb2bc]
MOVSXD R15,dword ptr [RAX]
ADD RDI,R15
MOV EDX,0x108
XOR ESI,ESI
CALL 0x0012a290
LEA RDI,[RBX + R15*0x1]
ADD RDI,0x18
CALL 0x001ab5e8
LEA RAX,[0xd13e84]
MOV EDI,dword ptr [RAX]
LEA R14,[RBX + R15*0x1]
ADD R14,0xa8
LEA RAX,[0x490ed8]
MOV RAX,qword ptr [RAX]
MOV RSI,R14
CALL qword ptr [RAX + 0x60]
MOV qword ptr [R14 + 0x30],RAX
MOV RDI,R14
XOR ESI,ESI
CALL 0x0012a350
LEA RSI,[RBX + R15*0x1]
ADD RSI,0xe0
MOV qword ptr [RSP],0x0
XOR EDI,EDI
MOV EDX,0x8
XOR ECX,ECX
XOR R8D,R8D
MOV R9D,0x5
CALL 0x0019691c
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
void wt_resource_create(long param_1)
{
int8 uVar1;
long lVar2;
lVar2 = (long)LF_HASH_OVERHEAD;
memset((void *)(param_1 + lVar2),0,0x108);
my_rw_init(param_1 + lVar2 + 0x18);
uVar1 = (**(code **)(PSI_server + 0x60))(key_WT_RESOURCE_cond);
*(int8 *)(param_1 + lVar2 + 0xd8) = uVar1;
pthread_cond_init((pthread_cond_t *)(param_1 + lVar2 + 0xa8),(pthread_condattr_t *)0x0);
init_dynamic_array2(0,param_1 + lVar2 + 0xe0,8,0,0,5,0);
return;
}
|
|
66,268 |
blst_p1_affine_compress
|
corpus-core[P]colibri-stateless/build_O3/_deps/blst-src/src/e1.c
|
void blst_p1_affine_compress(unsigned char out[48], const POINTonE1_affine *in)
{
if (vec_is_zero(in->X, 2*sizeof(in->X))) {
bytes_zero(out, 48);
out[0] = 0xc0; /* compressed and infinity bits */
} else {
limb_t sign = POINTonE1_affine_Compress_BE(out, in);
out[0] |= (unsigned char)(0x80 | ((sign & 2) << 4));
}
}
|
O3
|
c
|
blst_p1_affine_compress:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movl $0x60, %esi
movq %r14, %rdi
callq 0x6e900
testq %rax, %rax
je 0x578c2
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x11(%rbx)
movups %xmm0, 0x1(%rbx)
movb $-0x40, %al
jmp 0x578d6
movq %rbx, %rdi
movq %r14, %rsi
callq 0x578dd
shlb $0x4, %al
andb $0x20, %al
orb (%rbx), %al
orb $-0x80, %al
movb %al, (%rbx)
popq %rbx
popq %r14
popq %rbp
retq
|
blst_p1_affine_compress:
push rbp
mov rbp, rsp
push r14
push rbx
mov r14, rsi
mov rbx, rdi
mov esi, 60h ; '`'
mov rdi, r14
call vec_is_zero_16x
test rax, rax
jz short loc_578C2
xorps xmm0, xmm0
movups xmmword ptr [rbx+20h], xmm0
movups xmmword ptr [rbx+11h], xmm0
movups xmmword ptr [rbx+1], xmm0
mov al, 0C0h
jmp short loc_578D6
loc_578C2:
mov rdi, rbx
mov rsi, r14
call POINTonE1_affine_Compress_BE
shl al, 4
and al, 20h
or al, [rbx]
or al, 80h
loc_578D6:
mov [rbx], al
pop rbx
pop r14
pop rbp
retn
|
char blst_p1_affine_compress(long long a1, long long a2)
{
char result; // al
if ( vec_is_zero_16x(a2, 96LL) )
{
*(_OWORD *)(a1 + 32) = 0LL;
*(_OWORD *)(a1 + 17) = 0LL;
*(_OWORD *)(a1 + 1) = 0LL;
result = -64;
}
else
{
result = *(_BYTE *)a1 | (16 * POINTonE1_affine_Compress_BE(a1, a2)) & 0x20 | 0x80;
}
*(_BYTE *)a1 = result;
return result;
}
|
blst_p1_affine_compress:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV R14,RSI
MOV RBX,RDI
MOV ESI,0x60
MOV RDI,R14
CALL 0x0016e900
TEST RAX,RAX
JZ 0x001578c2
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x20],XMM0
MOVUPS xmmword ptr [RBX + 0x11],XMM0
MOVUPS xmmword ptr [RBX + 0x1],XMM0
MOV AL,0xc0
JMP 0x001578d6
LAB_001578c2:
MOV RDI,RBX
MOV RSI,R14
CALL 0x001578dd
SHL AL,0x4
AND AL,0x20
OR AL,byte ptr [RBX]
OR AL,0x80
LAB_001578d6:
MOV byte ptr [RBX],AL
POP RBX
POP R14
POP RBP
RET
|
void blst_p1_affine_compress(byte *param_1,int8 param_2)
{
long lVar1;
byte bVar2;
lVar1 = vec_is_zero_16x(param_2,0x60);
if (lVar1 == 0) {
bVar2 = POINTonE1_affine_Compress_BE(param_1,param_2);
bVar2 = (bVar2 & 2) << 4 | *param_1 | 0x80;
}
else {
param_1[0x20] = 0;
param_1[0x21] = 0;
param_1[0x22] = 0;
param_1[0x23] = 0;
param_1[0x24] = 0;
param_1[0x25] = 0;
param_1[0x26] = 0;
param_1[0x27] = 0;
param_1[0x28] = 0;
param_1[0x29] = 0;
param_1[0x2a] = 0;
param_1[0x2b] = 0;
param_1[0x2c] = 0;
param_1[0x2d] = 0;
param_1[0x2e] = 0;
param_1[0x2f] = 0;
param_1[0x11] = 0;
param_1[0x12] = 0;
param_1[0x13] = 0;
param_1[0x14] = 0;
param_1[0x15] = 0;
param_1[0x16] = 0;
param_1[0x17] = 0;
param_1[0x18] = 0;
param_1[0x19] = 0;
param_1[0x1a] = 0;
param_1[0x1b] = 0;
param_1[0x1c] = 0;
param_1[0x1d] = 0;
param_1[0x1e] = 0;
param_1[0x1f] = 0;
param_1[0x20] = 0;
param_1[1] = 0;
param_1[2] = 0;
param_1[3] = 0;
param_1[4] = 0;
param_1[5] = 0;
param_1[6] = 0;
param_1[7] = 0;
param_1[8] = 0;
param_1[9] = 0;
param_1[10] = 0;
param_1[0xb] = 0;
param_1[0xc] = 0;
param_1[0xd] = 0;
param_1[0xe] = 0;
param_1[0xf] = 0;
param_1[0x10] = 0;
bVar2 = 0xc0;
}
*param_1 = bVar2;
return;
}
|
|
66,269 |
ma_bitmap_lock
|
eloqsql/storage/maria/ma_bitmap.c
|
void _ma_bitmap_lock(MARIA_SHARE *share)
{
MARIA_FILE_BITMAP *bitmap= &share->bitmap;
DBUG_ENTER("_ma_bitmap_lock");
if (!share->now_transactional)
DBUG_VOID_RETURN;
mysql_mutex_lock(&bitmap->bitmap_lock);
bitmap->flush_all_requested++;
bitmap->waiting_for_non_flushable++;
while (bitmap->non_flushable)
{
DBUG_PRINT("info", ("waiting for bitmap to be flushable"));
mysql_cond_wait(&bitmap->bitmap_cond, &bitmap->bitmap_lock);
}
bitmap->waiting_for_non_flushable--;
/*
Ensure that _ma_bitmap_flush_all() and _ma_bitmap_lock() are blocked.
ma_bitmap_flushable() is blocked thanks to 'flush_all_requested'.
*/
bitmap->non_flushable= 1;
mysql_mutex_unlock(&bitmap->bitmap_lock);
DBUG_VOID_RETURN;
}
|
O3
|
c
|
ma_bitmap_lock:
cmpb $0x0, 0x7e7(%rdi)
je 0x52b7c
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %r14
leaq 0xa98(%rdi), %rbx
cmpq $0x0, 0xad8(%rdi)
jne 0x52b7d
movq %rbx, %rdi
callq 0x29200
incl 0xa40(%r14)
movl 0xa4c(%r14), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0xa4c(%r14)
cmpl $0x0, 0xa48(%r14)
je 0x52b4e
leaq 0xae0(%r14), %r15
leaq 0x87b4d(%rip), %r12 # 0xda65c
cmpq $0x0, 0xb10(%r14)
jne 0x52b30
movq %r15, %rdi
movq %rbx, %rsi
callq 0x29420
cmpl $0x0, 0xa48(%r14)
jne 0x52b0f
jmp 0x52b45
movq %r15, %rdi
movq %rbx, %rsi
movq %r12, %rdx
movl $0x25c, %ecx # imm = 0x25C
callq 0x2ee80
jmp 0x52b24
movl 0xa4c(%r14), %eax
decl %eax
movl %eax, 0xa4c(%r14)
movl $0x1, 0xa48(%r14)
movq 0xad8(%r14), %rdi
testq %rdi, %rdi
jne 0x52b96
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x291c0
retq
leaq 0x87ad8(%rip), %rsi # 0xda65c
movq %rbx, %rdi
movl $0x256, %edx # imm = 0x256
callq 0x2eb6f
jmp 0x52adf
leaq 0x333473(%rip), %rax # 0x386010
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x52b6c
|
_ma_bitmap_lock:
cmp byte ptr [rdi+7E7h], 0
jz locret_52B7C
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov r14, rdi
lea rbx, [rdi+0A98h]
cmp qword ptr [rdi+0AD8h], 0
jnz loc_52B7D
mov rdi, rbx
call _pthread_mutex_lock
loc_52ADF:
inc dword ptr [r14+0A40h]
mov eax, [r14+0A4Ch]
lea ecx, [rax+1]
mov [r14+0A4Ch], ecx
cmp dword ptr [r14+0A48h], 0
jz short loc_52B4E
lea r15, [r14+0AE0h]
lea r12, aWorkspaceLlm4b_5; "/workspace/llm4binary/github2025/eloqsq"...
loc_52B0F:
cmp qword ptr [r14+0B10h], 0
jnz short loc_52B30
mov rdi, r15
mov rsi, rbx
call _pthread_cond_wait
loc_52B24:
cmp dword ptr [r14+0A48h], 0
jnz short loc_52B0F
jmp short loc_52B45
loc_52B30:
mov rdi, r15
mov rsi, rbx
mov rdx, r12
mov ecx, 25Ch
call psi_cond_wait
jmp short loc_52B24
loc_52B45:
mov eax, [r14+0A4Ch]
dec eax
loc_52B4E:
mov [r14+0A4Ch], eax
mov dword ptr [r14+0A48h], 1
mov rdi, [r14+0AD8h]
test rdi, rdi
jnz short loc_52B96
loc_52B6C:
mov rdi, rbx
pop rbx
pop r12
pop r14
pop r15
pop rbp
jmp _pthread_mutex_unlock
locret_52B7C:
retn
loc_52B7D:
lea rsi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github2025/eloqsq"...
mov rdi, rbx
mov edx, 256h
call psi_mutex_lock
jmp loc_52ADF
loc_52B96:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_52B6C
|
void ma_bitmap_lock(long long a1)
{
long long v1; // rbx
int v2; // eax
if ( *(_BYTE *)(a1 + 2023) )
{
v1 = a1 + 2712;
if ( *(_QWORD *)(a1 + 2776) )
psi_mutex_lock(a1 + 2712, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_bitmap.c", 0x256u);
else
pthread_mutex_lock(a1 + 2712);
++*(_DWORD *)(a1 + 2624);
v2 = *(_DWORD *)(a1 + 2636);
*(_DWORD *)(a1 + 2636) = v2 + 1;
if ( *(_DWORD *)(a1 + 2632) )
{
do
{
if ( *(_QWORD *)(a1 + 2832) )
psi_cond_wait(
a1 + 2784,
v1,
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_bitmap.c",
0x25Cu);
else
pthread_cond_wait(a1 + 2784, v1);
}
while ( *(_DWORD *)(a1 + 2632) );
v2 = *(_DWORD *)(a1 + 2636) - 1;
}
*(_DWORD *)(a1 + 2636) = v2;
*(_DWORD *)(a1 + 2632) = 1;
if ( *(_QWORD *)(a1 + 2776) )
PSI_server[44]();
pthread_mutex_unlock(v1);
}
}
|
_ma_bitmap_lock:
CMP byte ptr [RDI + 0x7e7],0x0
JZ 0x00152b7c
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R14,RDI
LEA RBX,[RDI + 0xa98]
CMP qword ptr [RDI + 0xad8],0x0
JNZ 0x00152b7d
MOV RDI,RBX
CALL 0x00129200
LAB_00152adf:
INC dword ptr [R14 + 0xa40]
MOV EAX,dword ptr [R14 + 0xa4c]
LEA ECX,[RAX + 0x1]
MOV dword ptr [R14 + 0xa4c],ECX
CMP dword ptr [R14 + 0xa48],0x0
JZ 0x00152b4e
LEA R15,[R14 + 0xae0]
LEA R12,[0x1da65c]
LAB_00152b0f:
CMP qword ptr [R14 + 0xb10],0x0
JNZ 0x00152b30
MOV RDI,R15
MOV RSI,RBX
CALL 0x00129420
LAB_00152b24:
CMP dword ptr [R14 + 0xa48],0x0
JNZ 0x00152b0f
JMP 0x00152b45
LAB_00152b30:
MOV RDI,R15
MOV RSI,RBX
MOV RDX,R12
MOV ECX,0x25c
CALL 0x0012ee80
JMP 0x00152b24
LAB_00152b45:
MOV EAX,dword ptr [R14 + 0xa4c]
DEC EAX
LAB_00152b4e:
MOV dword ptr [R14 + 0xa4c],EAX
MOV dword ptr [R14 + 0xa48],0x1
MOV RDI,qword ptr [R14 + 0xad8]
TEST RDI,RDI
JNZ 0x00152b96
LAB_00152b6c:
MOV RDI,RBX
POP RBX
POP R12
POP R14
POP R15
POP RBP
JMP 0x001291c0
LAB_00152b7c:
RET
LAB_00152b7d:
LEA RSI,[0x1da65c]
MOV RDI,RBX
MOV EDX,0x256
CALL 0x0012eb6f
JMP 0x00152adf
LAB_00152b96:
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x00152b6c
|
void _ma_bitmap_lock(long param_1)
{
pthread_mutex_t *__mutex;
int iVar1;
if (*(char *)(param_1 + 0x7e7) != '\0') {
__mutex = (pthread_mutex_t *)(param_1 + 0xa98);
if (*(long *)(param_1 + 0xad8) == 0) {
pthread_mutex_lock(__mutex);
}
else {
psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_bitmap.c",
0x256);
}
*(int *)(param_1 + 0xa40) = *(int *)(param_1 + 0xa40) + 1;
iVar1 = *(int *)(param_1 + 0xa4c);
*(int *)(param_1 + 0xa4c) = iVar1 + 1;
if (*(int *)(param_1 + 0xa48) != 0) {
do {
if (*(long *)(param_1 + 0xb10) == 0) {
pthread_cond_wait((pthread_cond_t *)(param_1 + 0xae0),__mutex);
}
else {
psi_cond_wait((pthread_cond_t *)(param_1 + 0xae0),__mutex,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_bitmap.c",0x25c);
}
} while (*(int *)(param_1 + 0xa48) != 0);
iVar1 = *(int *)(param_1 + 0xa4c) + -1;
}
*(int *)(param_1 + 0xa4c) = iVar1;
*(int4 *)(param_1 + 0xa48) = 1;
if (*(long *)(param_1 + 0xad8) != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(__mutex);
return;
}
return;
}
|
|
66,270 |
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>::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::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>, bool, nlohmann::json_abi_v3_11_3::detail::value_t)
|
monkey531[P]llama/common/json.hpp
|
basic_json(initializer_list_t init,
bool type_deduction = true,
value_t manual_type = value_t::array)
{
// check if each element is an array with two elements whose first
// element is a string
bool is_an_object = std::all_of(init.begin(), init.end(),
[](const detail::json_ref<basic_json>& element_ref)
{
// The cast is to ensure op[size_type] is called, bearing in mind size_type may not be int;
// (many string types can be constructed from 0 via its null-pointer guise, so we get a
// broken call to op[key_type], the wrong semantics and a 4804 warning on Windows)
return element_ref->is_array() && element_ref->size() == 2 && (*element_ref)[static_cast<size_type>(0)].is_string();
});
// adjust type if type deduction is not wanted
if (!type_deduction)
{
// if array is wanted, do not create an object though possible
if (manual_type == value_t::array)
{
is_an_object = false;
}
// if object is wanted but impossible, throw an exception
if (JSON_HEDLEY_UNLIKELY(manual_type == value_t::object && !is_an_object))
{
JSON_THROW(type_error::create(301, "cannot create object from initializer list", nullptr));
}
}
if (is_an_object)
{
// the initializer list is a list of pairs -> create object
m_data.m_type = value_t::object;
m_data.m_value = value_t::object;
for (auto& element_ref : init)
{
auto element = element_ref.moved_or_copied();
m_data.m_value.object->emplace(
std::move(*((*element.m_data.m_value.array)[0].m_data.m_value.string)),
std::move((*element.m_data.m_value.array)[1]));
}
}
else
{
// the initializer list describes an array -> create array
m_data.m_type = value_t::array;
m_data.m_value.array = create<array_t>(init.begin(), init.end());
}
set_parents();
assert_invariant();
}
|
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>::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::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>, bool, nlohmann::json_abi_v3_11_3::detail::value_t):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r8d, %ebp
movl %ecx, %r13d
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq (%rdx,%rdx,2), %rax
leaq (%rsi,%rax,8), %r12
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rsi, %rdi
movq %r12, %rsi
callq 0xa0f78
cmpq %r12, %rax
sete %cl
testb %r13b, %r13b
jne 0x7e9a3
cmpq %r12, %rax
sete %al
cmpb $0x2, %bpl
setne %cl
cmpb $0x1, %bpl
setne %dl
orb %al, %dl
je 0x7ea4e
andb %al, %cl
testb %cl, %cl
je 0x7ea18
movb $0x1, (%rbx)
movl $0x20, %edi
callq 0x1a8a0
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rax, 0x8(%rbx)
testq %r15, %r15
je 0x7ea32
shlq $0x3, %r15
leaq (%r15,%r15,2), %r12
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0xa0ed2
movq 0x8(%rbx), %rdi
movq 0x8(%rsp), %rax
movq (%rax), %rdx
movq 0x8(%rdx), %rsi
addq $0x10, %rdx
callq 0x5ef1e
movq %r15, %rdi
xorl %esi, %esi
callq 0x5834c
movq %r15, %rdi
callq 0x5d83a
addq $0x18, %r14
addq $-0x18, %r12
jne 0x7e9d6
jmp 0x7ea32
movb $0x2, (%rbx)
movq %rsp, %rdi
movq %r14, (%rdi)
leaq 0x20(%rsp), %rsi
movq %r12, (%rsi)
callq 0xa0f24
movq %rax, 0x8(%rbx)
movq %rbx, %rdi
movl $0x1, %esi
callq 0x5834c
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x1a430
movq %rax, %r14
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x71409(%rip), %rsi # 0xefe75
leaq 0x7142c(%rip), %rdx # 0xefe9f
movq %rsp, %rdi
callq 0x21b26
movb $0x1, %bpl
movq %rsp, %rdx
movq %r14, %rdi
movl $0x12d, %esi # imm = 0x12D
xorl %ecx, %ecx
callq 0xa0d02
xorl %ebp, %ebp
leaq 0xaa4bf(%rip), %rsi # 0x128f58
leaq -0x23fd6(%rip), %rdx # 0x5aaca
movq %r14, %rdi
callq 0x1aef0
jmp 0x7eaae
jmp 0x7eaae
jmp 0x7eaae
movq %rax, %r15
jmp 0x7eaf8
movq %rax, %r15
movq %rsp, %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x5834c
movq %r14, %rdi
callq 0x5d83a
jmp 0x7eaf8
movq %rax, %r15
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x7eae6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1a8c0
testb %bpl, %bpl
jne 0x7eaf0
jmp 0x7eaf8
movq %rax, %r15
movq %r14, %rdi
callq 0x1a660
movq %rbx, %rdi
callq 0x5d83a
movq %r15, %rdi
callq 0x1af80
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE:
push rbp; int
push r15; int
push r14; char
push r13; int
push r12; __int64
push rbx; int
sub rsp, 28h
mov ebp, r8d
mov r13d, ecx
mov r15, rdx
mov r14, rsi
mov rbx, rdi
lea rax, [rdx+rdx*2]
lea r12, [rsi+rax*8]
xorps xmm0, xmm0
movups xmmword ptr [rdi], xmm0
mov rdi, rsi
mov rsi, r12
call _ZSt9__find_ifIPKN8nlohmann16json_abi_v3_11_36detail8json_refINS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEN9__gnu_cxx5__ops12_Iter_negateIZNSG_C1ESt16initializer_listISH_EbNS2_7value_tEEUlRSI_E_EEET_ST_ST_T0_St26random_access_iterator_tag; std::__find_if<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>> const*,__gnu_cxx::__ops::_Iter_negate<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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::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)::{lambda(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>> const&)#1}>>(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>> const*,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>> const*,__gnu_cxx::__ops::_Iter_negate<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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::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)::{lambda(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>> const&)#1}>,std::random_access_iterator_tag)
cmp rax, r12
setz cl
test r13b, r13b
jnz short loc_7E9A3
cmp rax, r12
setz al
cmp bpl, 2
setnz cl
cmp bpl, 1
setnz dl
or dl, al
jz loc_7EA4E
and cl, al
loc_7E9A3:
test cl, cl
jz short loc_7EA18
mov byte ptr [rbx], 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 [rbx+8], rax
test r15, r15
jz short loc_7EA32
shl r15, 3
lea r12, [r15+r15*2]
mov r15, rsp
loc_7E9D6:
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, [rbx+8]
mov rax, [rsp+58h+var_50]
mov rdx, [rax]
mov rsi, [rdx+8]
add rdx, 10h
call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE7emplaceERSH_OSD_; 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>>>>::emplace(std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&)
mov rdi, r15
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
add r14, 18h
add r12, 0FFFFFFFFFFFFFFE8h
jnz short loc_7E9D6
jmp short loc_7EA32
loc_7EA18:
mov byte ptr [rbx], 2
mov rdi, rsp
mov [rdi], r14
lea rsi, [rsp+58h+var_38]
mov [rsi], r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6createIS3_ISD_SaISD_EEJPKNS0_6detail8json_refISD_EESL_EEEPT_DpOT0_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::create<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,nlohmann::json_abi_v3_11_3::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>> const*,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>> const*>(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>> const*,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>> const* &&)
mov [rbx+8], rax
loc_7EA32:
mov rdi, rbx
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)
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_7EA4E:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea r12, [rsp+58h+var_48]
mov [r12-10h], r12
lea rsi, aCannotCreateOb; "cannot create object from initializer l"...
lea rdx, aCannotCreateOb+2Ah; ""
mov rdi, rsp
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov bpl, 1
mov rdx, rsp
mov rdi, r14; this
mov esi, 12Dh; int
xor ecx, ecx
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
jmp short loc_7EAAE
jmp short loc_7EAAE
jmp short $+2
loc_7EAAE:
mov r15, rax
jmp short loc_7EAF8
mov r15, rax
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_7EAF8
mov r15, rax
mov rdi, [rsp+58h+var_58]; void *
cmp rdi, r12
jz short loc_7EAE6
mov rsi, [rsp+58h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_7EAE6:
test bpl, bpl
jnz short loc_7EAF0
jmp short loc_7EAF8
mov r15, rax
loc_7EAF0:
mov rdi, r14; void *
call ___cxa_free_exception
loc_7EAF8:
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, r15
call __Unwind_Resume
|
basic_json:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV EBP,R8D
MOV R13D,ECX
MOV R15,RDX
MOV R14,RSI
MOV RBX,RDI
LEA RAX,[RDX + RDX*0x2]
LEA R12,[RSI + RAX*0x8]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI],XMM0
LAB_0017e96f:
MOV RDI,RSI
MOV RSI,R12
CALL 0x001a0f78
CMP RAX,R12
SETZ CL
TEST R13B,R13B
JNZ 0x0017e9a3
CMP RAX,R12
SETZ AL
CMP BPL,0x2
SETNZ CL
CMP BPL,0x1
SETNZ DL
OR DL,AL
JZ 0x0017ea4e
AND CL,AL
LAB_0017e9a3:
TEST CL,CL
JZ 0x0017ea18
MOV byte ptr [RBX],0x1
LAB_0017e9aa:
MOV EDI,0x20
CALL 0x0011a8a0
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX],XMM0
MOV qword ptr [RAX + 0x10],0x0
MOV qword ptr [RBX + 0x8],RAX
TEST R15,R15
JZ 0x0017ea32
SHL R15,0x3
LEA R12,[R15 + R15*0x2]
MOV R15,RSP
LAB_0017e9d6:
MOV RDI,R15
MOV RSI,R14
CALL 0x001a0ed2
MOV RDI,qword ptr [RBX + 0x8]
MOV RAX,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RAX]
MOV RSI,qword ptr [RDX + 0x8]
ADD RDX,0x10
LAB_0017e9f5:
CALL 0x0015ef1e
MOV RDI,R15
XOR ESI,ESI
CALL 0x0015834c
MOV RDI,R15
CALL 0x0015d83a
ADD R14,0x18
ADD R12,-0x18
JNZ 0x0017e9d6
JMP 0x0017ea32
LAB_0017ea18:
MOV byte ptr [RBX],0x2
MOV RDI,RSP
MOV qword ptr [RDI],R14
LEA RSI,[RSP + 0x20]
MOV qword ptr [RSI],R12
LAB_0017ea29:
CALL 0x001a0f24
LAB_0017ea2e:
MOV qword ptr [RBX + 0x8],RAX
LAB_0017ea32:
MOV RDI,RBX
MOV ESI,0x1
CALL 0x0015834c
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0017ea4e:
MOV EDI,0x20
CALL 0x0011a430
MOV R14,RAX
LEA R12,[RSP + 0x10]
MOV qword ptr [R12 + -0x10],R12
LAB_0017ea65:
LEA RSI,[0x1efe75]
LEA RDX,[0x1efe9f]
MOV RDI,RSP
CALL 0x00121b26
MOV BPL,0x1
LAB_0017ea7e:
MOV RDX,RSP
MOV RDI,R14
MOV ESI,0x12d
XOR ECX,ECX
CALL 0x001a0d02
XOR EBP,EBP
LEA RSI,[0x228f58]
LEA RDX,[0x15aaca]
MOV RDI,R14
CALL 0x0011aef0
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, 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(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> > >, bool, nlohmann::json_abi_v3_11_3::detail::value_t) */
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>
::basic_json(int8 *param_1,json_ref *param_2,long param_3,char param_4,char param_5)
{
json_ref *pjVar1;
json_ref *pjVar2;
int8 *puVar3;
vector *pvVar4;
int8 uVar5;
bool bVar6;
json_ref *local_58;
long *local_50;
json_ref local_48 [16];
json_ref *local_38;
pjVar1 = param_2 + param_3 * 0x18;
*param_1 = 0;
param_1[1] = 0;
/* try { // try from 0017e96f to 0017e979 has its CatchHandler @ 0017eaac */
pjVar2 = std::
__find_if<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>>const*,__gnu_cxx::__ops::_Iter_negate<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>::_Iter_negate(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>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)::_lambda(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>>const&)_1_>>
(param_2,pjVar1);
bVar6 = pjVar2 == pjVar1;
if (param_4 == '\0') {
if (param_5 == '\x01' && pjVar2 != pjVar1) {
uVar5 = __cxa_allocate_exception(0x20);
local_58 = local_48;
/* try { // try from 0017ea65 to 0017ea7a has its CatchHandler @ 0017eaed */
std::__cxx11::string::_M_construct<char_const*>
(&local_58,"cannot create object from initializer list","");
/* try { // try from 0017ea7e to 0017eaa7 has its CatchHandler @ 0017eacd */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_
(uVar5,0x12d,&local_58,0);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar5,&detail::type_error::typeinfo,detail::exception::~exception);
}
bVar6 = param_5 != '\x02' && pjVar2 == pjVar1;
}
if (bVar6) {
*(int1 *)param_1 = 1;
/* try { // try from 0017e9aa to 0017e9b3 has its CatchHandler @ 0017eaaa */
puVar3 = (int8 *)operator_new(0x20);
*puVar3 = 0;
puVar3[1] = 0;
puVar3[2] = 0;
param_1[1] = puVar3;
if (param_3 != 0) {
param_3 = param_3 * 0x18;
do {
/* try { // try from 0017e9d6 to 0017e9e0 has its CatchHandler @ 0017eaae */
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 0017e9f5 to 0017e9f9 has its CatchHandler @ 0017eab3 */
ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::emplace((ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
*)param_1[1],*(string **)(*local_50 + 8),(basic_json *)(*local_50 + 0x10));
assert_invariant(SUB81(&local_58,0));
data::~data((data *)&local_58);
param_3 = param_3 + -0x18;
} while (param_3 != 0);
}
}
else {
*(int1 *)param_1 = 2;
local_58 = param_2;
local_38 = pjVar1;
/* try { // try from 0017ea29 to 0017ea2d has its CatchHandler @ 0017eaa8 */
pvVar4 = create<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>,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>>const*,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>>const*>
(&local_58,&local_38);
param_1[1] = pvVar4;
}
assert_invariant(SUB81(param_1,0));
return;
}
|
||
66,271 |
my_thread_destroy_internal_mutex
|
eloqsql/mysys/my_thr_init.c
|
void my_thread_destroy_internal_mutex(void)
{
mysql_mutex_destroy(&THR_LOCK_threads);
mysql_mutex_destroy(&THR_LOCK_malloc);
mysql_cond_destroy(&THR_COND_threads);
}
|
O3
|
c
|
my_thread_destroy_internal_mutex:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
leaq 0x3cb4c0(%rip), %rbx # 0x469308
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x9de66
leaq 0x347c70(%rip), %rax # 0x3e5ac8
movq (%rax), %rax
callq *0x48(%rax)
movq $0x0, 0x40(%rbx)
leaq 0x3cb49b(%rip), %rdi # 0x469308
callq 0x5f120
leaq 0x3cb4d7(%rip), %rbx # 0x469350
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x9de97
leaq 0x347c3f(%rip), %rax # 0x3e5ac8
movq (%rax), %rax
callq *0x48(%rax)
movq $0x0, 0x40(%rbx)
leaq 0x3cb4b2(%rip), %rdi # 0x469350
callq 0x5f120
leaq 0x3cb4ee(%rip), %rax # 0x469398
movq 0x30(%rax), %rdi
testq %rdi, %rdi
jne 0x9dec5
leaq 0x3cb4de(%rip), %rdi # 0x469398
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x5f330
callq 0x61449
jmp 0x9deb3
|
my_thread_destroy_internal_mutex:
push rbp
mov rbp, rsp
push rbx
push rax
lea rbx, THR_LOCK_threads
mov rdi, [rbx+40h]
test rdi, rdi
jz short loc_9DE66
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+48h]
mov qword ptr [rbx+40h], 0
loc_9DE66:
lea rdi, THR_LOCK_threads
call _pthread_mutex_destroy
lea rbx, THR_LOCK_malloc
mov rdi, [rbx+40h]
test rdi, rdi
jz short loc_9DE97
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+48h]
mov qword ptr [rbx+40h], 0
loc_9DE97:
lea rdi, THR_LOCK_malloc
call _pthread_mutex_destroy
lea rax, THR_COND_threads
mov rdi, [rax+30h]
test rdi, rdi
jnz short loc_9DEC5
loc_9DEB3:
lea rdi, THR_COND_threads
add rsp, 8
pop rbx
pop rbp
jmp _pthread_cond_destroy
loc_9DEC5:
call my_thread_destroy_internal_mutex_cold_1
jmp short loc_9DEB3
|
long long my_thread_destroy_internal_mutex()
{
long long v0; // rdi
long long v1; // rdi
v0 = THR_LOCK_threads[8];
if ( v0 )
{
(*((void ( **)(long long))PSI_server + 9))(v0);
THR_LOCK_threads[8] = 0LL;
}
pthread_mutex_destroy(THR_LOCK_threads);
v1 = THR_LOCK_malloc[8];
if ( v1 )
{
(*((void ( **)(long long))PSI_server + 9))(v1);
THR_LOCK_malloc[8] = 0LL;
}
pthread_mutex_destroy(THR_LOCK_malloc);
if ( THR_COND_threads[6] )
my_thread_destroy_internal_mutex_cold_1();
return pthread_cond_destroy(THR_COND_threads);
}
|
my_thread_destroy_internal_mutex:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
LEA RBX,[0x569308]
MOV RDI,qword ptr [RBX + 0x40]
TEST RDI,RDI
JZ 0x0019de66
LEA RAX,[0x4e5ac8]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x48]
MOV qword ptr [RBX + 0x40],0x0
LAB_0019de66:
LEA RDI,[0x569308]
CALL 0x0015f120
LEA RBX,[0x569350]
MOV RDI,qword ptr [RBX + 0x40]
TEST RDI,RDI
JZ 0x0019de97
LEA RAX,[0x4e5ac8]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x48]
MOV qword ptr [RBX + 0x40],0x0
LAB_0019de97:
LEA RDI,[0x569350]
CALL 0x0015f120
LEA RAX,[0x569398]
MOV RDI,qword ptr [RAX + 0x30]
TEST RDI,RDI
JNZ 0x0019dec5
LAB_0019deb3:
LEA RDI,[0x569398]
ADD RSP,0x8
POP RBX
POP RBP
JMP 0x0015f330
LAB_0019dec5:
CALL 0x00161449
JMP 0x0019deb3
|
void my_thread_destroy_internal_mutex(void)
{
if (THR_LOCK_threads._64_8_ != 0) {
(**(code **)(PSI_server + 0x48))();
THR_LOCK_threads._64_8_ = 0;
}
pthread_mutex_destroy((pthread_mutex_t *)THR_LOCK_threads);
if (THR_LOCK_malloc._64_8_ != 0) {
(**(code **)(PSI_server + 0x48))();
THR_LOCK_malloc._64_8_ = 0;
}
pthread_mutex_destroy((pthread_mutex_t *)THR_LOCK_malloc);
if (THR_COND_threads._48_8_ != 0) {
my_thread_destroy_internal_mutex_cold_1();
}
pthread_cond_destroy((pthread_cond_t *)THR_COND_threads);
return;
}
|
|
66,272 |
my_dir
|
eloqsql/mysys/my_lib.c
|
MY_DIR *my_dir(const char *path, myf MyFlags)
{
MY_DIR_HANDLE *dirh;
FILEINFO finfo;
DIR *dirp;
struct dirent *dp;
char tmp_path[FN_REFLEN + 2], *tmp_file;
char dirent_tmp[sizeof(struct dirent)+_POSIX_PATH_MAX+1];
DBUG_ENTER("my_dir");
DBUG_PRINT("my",("path: '%s' MyFlags: %lu",path,MyFlags));
tmp_file= directory_file_name(tmp_path, path);
if (!(dirp= opendir(tmp_path)))
{
my_errno= errno;
goto err_open;
}
if (!(dirh= my_malloc(key_memory_MY_DIR, sizeof(*dirh),
MYF(MyFlags | MY_ZEROFILL))))
goto err_alloc;
if (my_init_dynamic_array(key_memory_MY_DIR, &dirh->array, sizeof(FILEINFO),
ENTRIES_START_SIZE, ENTRIES_INCREMENT,
MYF(MyFlags)))
goto error;
init_alloc_root(key_memory_MY_DIR, &dirh->root, NAMES_START_SIZE,
NAMES_START_SIZE, MYF(MyFlags));
dp= (struct dirent*) dirent_tmp;
while (!(READDIR(dirp,(struct dirent*) dirent_tmp,dp)))
{
MY_STAT statbuf, *mystat= 0;
if (dp->d_name[0] == '.' &&
(dp->d_name[1] == '\0' ||
(dp->d_name[1] == '.' && dp->d_name[2] == '\0')))
continue; /* . or .. */
if (MyFlags & MY_WANT_STAT)
{
mystat= &statbuf;
bzero(mystat, sizeof(*mystat));
(void) strmov(tmp_file, dp->d_name);
(void) my_stat(tmp_path, mystat, MyFlags);
if (!(mystat->st_mode & MY_S_IREAD))
continue;
}
if (!(finfo.name= strdup_root(&dirh->root, dp->d_name)))
goto error;
if (mystat &&
!((mystat= memdup_root(&dirh->root, mystat, sizeof(*mystat)))))
goto error;
finfo.mystat= mystat;
if (push_dynamic(&dirh->array, (uchar*)&finfo))
goto error;
}
(void) closedir(dirp);
if (MyFlags & MY_WANT_SORT)
sort_dynamic(&dirh->array, (qsort_cmp) comp_names);
dirh->dir.dir_entry= dynamic_element(&dirh->array, 0, FILEINFO *);
dirh->dir.number_of_files= dirh->array.elements;
DBUG_RETURN(&dirh->dir);
error:
my_dirend(&dirh->dir);
err_alloc:
(void) closedir(dirp);
err_open:
if (MyFlags & (MY_FAE | MY_WME))
my_error(EE_DIR, MYF(ME_BELL), path, my_errno);
DBUG_RETURN(NULL);
}
|
O0
|
c
|
my_dir:
pushq %rbp
movq %rsp, %rbp
subq $0x530, %rsp # imm = 0x530
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x440(%rbp)
movq %rsi, -0x448(%rbp)
jmp 0xf2f98
leaq -0x210(%rbp), %rdi
movq -0x440(%rbp), %rsi
callq 0xf3340
movq %rax, -0x478(%rbp)
leaq -0x210(%rbp), %rdi
callq 0x2a470
movq %rax, -0x468(%rbp)
cmpq $0x0, %rax
jne 0xf2fea
callq 0x2a760
movl (%rax), %eax
movl %eax, -0x514(%rbp)
callq 0xf6090
movl -0x514(%rbp), %ecx
movl %ecx, (%rax)
jmp 0xf32bb
leaq 0xb902d3(%rip), %rax # 0xc832c4
movl (%rax), %edi
movq -0x448(%rbp), %rdx
orq $0x20, %rdx
movl $0x78, %esi
callq 0xf3830
movq %rax, -0x450(%rbp)
cmpq $0x0, %rax
jne 0xf301a
jmp 0xf32af
leaq 0xb902a3(%rip), %rax # 0xc832c4
movl (%rax), %edi
movq -0x450(%rbp), %rsi
addq $0x10, %rsi
movq -0x448(%rbp), %rax
movl $0x10, %edx
xorl %ecx, %ecx
movl $0x200, %r8d # imm = 0x200
movl $0x1000, %r9d # imm = 0x1000
movq %rax, (%rsp)
callq 0xda7e0
cmpb $0x0, %al
je 0xf305a
jmp 0xf32a3
leaq 0xb90263(%rip), %rax # 0xc832c4
movl (%rax), %edi
movq -0x450(%rbp), %rsi
addq $0x38, %rsi
movq -0x448(%rbp), %r8
movl $0x8000, %ecx # imm = 0x8000
movq %rcx, %rdx
callq 0xed170
leaq -0x430(%rbp), %rax
movq %rax, -0x470(%rbp)
movq -0x468(%rbp), %rdi
callq 0x2a480
movq %rax, -0x470(%rbp)
cmpq $0x0, %rax
setne %al
xorb $-0x1, %al
xorb $-0x1, %al
testb $0x1, %al
jne 0xf30b7
jmp 0xf321c
movq $0x0, -0x510(%rbp)
movq -0x470(%rbp), %rax
movsbl 0x13(%rax), %eax
cmpl $0x2e, %eax
jne 0xf3104
movq -0x470(%rbp), %rax
movsbl 0x14(%rax), %eax
cmpl $0x0, %eax
je 0xf3102
movq -0x470(%rbp), %rax
movsbl 0x14(%rax), %eax
cmpl $0x2e, %eax
jne 0xf3104
movq -0x470(%rbp), %rax
movsbl 0x15(%rax), %eax
cmpl $0x0, %eax
jne 0xf3104
jmp 0xf3090
movq -0x448(%rbp), %rax
andq $0x4000, %rax # imm = 0x4000
cmpq $0x0, %rax
je 0xf3184
leaq -0x508(%rbp), %rax
movq %rax, -0x510(%rbp)
movq -0x510(%rbp), %rdi
xorl %esi, %esi
movl $0x90, %edx
callq 0x2a2c0
movq -0x478(%rbp), %rdi
movq -0x470(%rbp), %rsi
addq $0x13, %rsi
callq 0x2a730
leaq -0x210(%rbp), %rdi
movq -0x510(%rbp), %rsi
movq -0x448(%rbp), %rdx
callq 0xf33b0
movq -0x510(%rbp), %rax
movl 0x18(%rax), %eax
andl $0x100, %eax # imm = 0x100
cmpl $0x0, %eax
jne 0xf3182
jmp 0xf3090
jmp 0xf3184
movq -0x450(%rbp), %rdi
addq $0x38, %rdi
movq -0x470(%rbp), %rsi
addq $0x13, %rsi
callq 0xedca0
movq %rax, -0x460(%rbp)
cmpq $0x0, %rax
jne 0xf31b1
jmp 0xf32a3
cmpq $0x0, -0x510(%rbp)
je 0xf31e9
movq -0x450(%rbp), %rdi
addq $0x38, %rdi
movq -0x510(%rbp), %rsi
movl $0x90, %edx
callq 0xedd40
movq %rax, -0x510(%rbp)
cmpq $0x0, %rax
jne 0xf31e9
jmp 0xf32a3
movq -0x510(%rbp), %rax
movq %rax, -0x458(%rbp)
movq -0x450(%rbp), %rdi
addq $0x10, %rdi
leaq -0x460(%rbp), %rsi
callq 0xda910
cmpb $0x0, %al
je 0xf3217
jmp 0xf32a3
jmp 0xf3090
movq -0x468(%rbp), %rdi
callq 0x2a450
movq -0x448(%rbp), %rax
andq $0x2000, %rax # imm = 0x2000
cmpq $0x0, %rax
je 0xf326a
movq -0x450(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x450(%rbp), %rax
movl 0x18(%rax), %eax
movl %eax, %esi
movq -0x450(%rbp), %rax
movl 0x24(%rax), %eax
movl %eax, %edx
leaq 0x23b(%rip), %rcx # 0xf34a0
callq 0xe9780
movq -0x450(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x450(%rbp), %rax
movq %rcx, (%rax)
movq -0x450(%rbp), %rax
movl 0x18(%rax), %ecx
movq -0x450(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x450(%rbp), %rax
movq %rax, -0x438(%rbp)
jmp 0xf3306
movq -0x450(%rbp), %rdi
callq 0xf2f20
movq -0x468(%rbp), %rdi
callq 0x2a450
movq -0x448(%rbp), %rax
andq $0x18, %rax
cmpq $0x0, %rax
je 0xf32f9
movq -0x440(%rbp), %rax
movq %rax, -0x520(%rbp)
callq 0xf6090
movq -0x520(%rbp), %rdx
movl (%rax), %ecx
movl $0xc, %edi
movl $0x4, %esi
movb $0x0, %al
callq 0xefb40
jmp 0xf32fb
movq $0x0, -0x438(%rbp)
movq -0x438(%rbp), %rax
movq %rax, -0x528(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xf3336
movq -0x528(%rbp), %rax
addq $0x530, %rsp # imm = 0x530
popq %rbp
retq
callq 0x2a270
nopl (%rax,%rax)
|
my_dir:
push rbp
mov rbp, rsp
sub rsp, 530h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_440], rdi
mov [rbp+var_448], rsi
jmp short $+2
loc_F2F98:
lea rdi, [rbp+var_210]
mov rsi, [rbp+var_440]
call directory_file_name
mov [rbp+var_478], rax
lea rdi, [rbp+var_210]
call _opendir
mov [rbp+var_468], rax
cmp rax, 0
jnz short loc_F2FEA
call ___errno_location
mov eax, [rax]
mov [rbp+var_514], eax
call _my_thread_var
mov ecx, [rbp+var_514]
mov [rax], ecx
jmp loc_F32BB
loc_F2FEA:
lea rax, key_memory_MY_DIR
mov edi, [rax]
mov rdx, [rbp+var_448]
or rdx, 20h
mov esi, 78h ; 'x'
call my_malloc
mov [rbp+var_450], rax
cmp rax, 0
jnz short loc_F301A
jmp loc_F32AF
loc_F301A:
lea rax, key_memory_MY_DIR
mov edi, [rax]
mov rsi, [rbp+var_450]
add rsi, 10h
mov rax, [rbp+var_448]
mov edx, 10h
xor ecx, ecx
mov r8d, 200h
mov r9d, 1000h
mov [rsp+530h+var_530], rax
call init_dynamic_array2
cmp al, 0
jz short loc_F305A
jmp loc_F32A3
loc_F305A:
lea rax, key_memory_MY_DIR
mov edi, [rax]
mov rsi, [rbp+var_450]
add rsi, 38h ; '8'
mov r8, [rbp+var_448]
mov ecx, 8000h
mov rdx, rcx
call init_alloc_root
lea rax, [rbp+var_430]
mov [rbp+var_470], rax
loc_F3090:
mov rdi, [rbp+var_468]
call _readdir64
mov [rbp+var_470], rax
cmp rax, 0
setnz al
xor al, 0FFh
xor al, 0FFh
test al, 1
jnz short loc_F30B7
jmp loc_F321C
loc_F30B7:
mov [rbp+var_510], 0
mov rax, [rbp+var_470]
movsx eax, byte ptr [rax+13h]
cmp eax, 2Eh ; '.'
jnz short loc_F3104
mov rax, [rbp+var_470]
movsx eax, byte ptr [rax+14h]
cmp eax, 0
jz short loc_F3102
mov rax, [rbp+var_470]
movsx eax, byte ptr [rax+14h]
cmp eax, 2Eh ; '.'
jnz short loc_F3104
mov rax, [rbp+var_470]
movsx eax, byte ptr [rax+15h]
cmp eax, 0
jnz short loc_F3104
loc_F3102:
jmp short loc_F3090
loc_F3104:
mov rax, [rbp+var_448]
and rax, 4000h
cmp rax, 0
jz short loc_F3184
lea rax, [rbp+var_508]
mov [rbp+var_510], rax
mov rdi, [rbp+var_510]
xor esi, esi
mov edx, 90h
call _memset
mov rdi, [rbp+var_478]
mov rsi, [rbp+var_470]
add rsi, 13h
call _stpcpy
lea rdi, [rbp+var_210]
mov rsi, [rbp+var_510]
mov rdx, [rbp+var_448]
call my_stat
mov rax, [rbp+var_510]
mov eax, [rax+18h]
and eax, 100h
cmp eax, 0
jnz short loc_F3182
jmp loc_F3090
loc_F3182:
jmp short $+2
loc_F3184:
mov rdi, [rbp+var_450]
add rdi, 38h ; '8'
mov rsi, [rbp+var_470]
add rsi, 13h
call strdup_root
mov [rbp+var_460], rax
cmp rax, 0
jnz short loc_F31B1
jmp loc_F32A3
loc_F31B1:
cmp [rbp+var_510], 0
jz short loc_F31E9
mov rdi, [rbp+var_450]
add rdi, 38h ; '8'
mov rsi, [rbp+var_510]
mov edx, 90h
call memdup_root
mov [rbp+var_510], rax
cmp rax, 0
jnz short loc_F31E9
jmp loc_F32A3
loc_F31E9:
mov rax, [rbp+var_510]
mov [rbp+var_458], rax
mov rdi, [rbp+var_450]
add rdi, 10h
lea rsi, [rbp+var_460]
call insert_dynamic
cmp al, 0
jz short loc_F3217
jmp loc_F32A3
loc_F3217:
jmp loc_F3090
loc_F321C:
mov rdi, [rbp+var_468]
call _closedir
mov rax, [rbp+var_448]
and rax, 2000h
cmp rax, 0
jz short loc_F326A
mov rax, [rbp+var_450]
mov rdi, [rax+10h]
mov rax, [rbp+var_450]
mov eax, [rax+18h]
mov esi, eax
mov rax, [rbp+var_450]
mov eax, [rax+24h]
mov edx, eax
lea rcx, comp_names
call my_qsort
loc_F326A:
mov rax, [rbp+var_450]
mov rcx, [rax+10h]
mov rax, [rbp+var_450]
mov [rax], rcx
mov rax, [rbp+var_450]
mov ecx, [rax+18h]
mov rax, [rbp+var_450]
mov [rax+8], ecx
mov rax, [rbp+var_450]
mov [rbp+var_438], rax
jmp short loc_F3306
loc_F32A3:
mov rdi, [rbp+var_450]
call my_dirend
loc_F32AF:
mov rdi, [rbp+var_468]
call _closedir
loc_F32BB:
mov rax, [rbp+var_448]
and rax, 18h
cmp rax, 0
jz short loc_F32F9
mov rax, [rbp+var_440]
mov [rbp+var_520], rax
call _my_thread_var
mov rdx, [rbp+var_520]
mov ecx, [rax]
mov edi, 0Ch
mov esi, 4
mov al, 0
call my_error
loc_F32F9:
jmp short $+2
loc_F32FB:
mov [rbp+var_438], 0
loc_F3306:
mov rax, [rbp+var_438]
mov [rbp+var_528], rax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_F3336
mov rax, [rbp+var_528]
add rsp, 530h
pop rbp
retn
loc_F3336:
call ___stack_chk_fail
|
long long my_dir(const char *a1, long long a2)
{
const char *v2; // rsi
_BYTE *v3; // rdi
unsigned int *v4; // rax
const char *v6; // [rsp+10h] [rbp-520h]
int v7; // [rsp+1Ch] [rbp-514h]
char *v8; // [rsp+20h] [rbp-510h]
_BYTE v9[24]; // [rsp+28h] [rbp-508h] BYREF
__int16 v10; // [rsp+40h] [rbp-4F0h]
long long v11; // [rsp+B8h] [rbp-478h]
char *v12; // [rsp+C0h] [rbp-470h]
long long v13; // [rsp+C8h] [rbp-468h]
_QWORD v14[2]; // [rsp+D0h] [rbp-460h] BYREF
long long v15; // [rsp+E0h] [rbp-450h]
long long v16; // [rsp+E8h] [rbp-448h]
const char *v17; // [rsp+F0h] [rbp-440h]
char v19; // [rsp+100h] [rbp-430h] BYREF
_BYTE v20[520]; // [rsp+320h] [rbp-210h] BYREF
unsigned long long v21; // [rsp+528h] [rbp-8h]
v21 = __readfsqword(0x28u);
v17 = a1;
v16 = a2;
v2 = a1;
v11 = directory_file_name(v20, a1);
v3 = v20;
v13 = opendir(v20);
if ( !v13 )
{
v7 = *(_DWORD *)__errno_location();
*(_DWORD *)my_thread_var(v20, v2) = v7;
LABEL_24:
if ( (v16 & 0x18) != 0 )
{
v6 = v17;
v4 = (unsigned int *)my_thread_var(v3, v2);
my_error(0xCu, 4LL, v6, *v4);
}
return 0LL;
}
v2 = (const char *)&dword_78;
v15 = my_malloc(key_memory_MY_DIR, 120LL, v16 | 0x20);
if ( !v15 )
{
LABEL_23:
v3 = (_BYTE *)v13;
closedir(v13);
goto LABEL_24;
}
v2 = (const char *)(v15 + 16);
if ( init_dynamic_array2(key_memory_MY_DIR, v15 + 16, 0x10u, 0LL, 0x200u, 4096, v16) )
{
LABEL_22:
my_dirend(v15);
goto LABEL_23;
}
init_alloc_root(key_memory_MY_DIR, (long long *)(v15 + 56), 0x8000LL, 0x8000LL, v16);
v12 = &v19;
while ( 1 )
{
v12 = (char *)readdir64(v13);
if ( !v12 )
break;
v8 = 0LL;
if ( v12[19] != 46 || v12[20] && (v12[20] != 46 || v12[21]) )
{
if ( (v16 & 0x4000) == 0
|| (v8 = v9, memset(v9, 0LL, 144LL), stpcpy(v11, v12 + 19), my_stat(v20, v9, v16), (v10 & 0x100) != 0) )
{
v2 = v12 + 19;
v14[0] = strdup_root(v15 + 56, (long long)(v12 + 19));
if ( !v14[0] )
goto LABEL_22;
if ( v8 )
{
v2 = v8;
v8 = memdup_root((_QWORD **)(v15 + 56), (long long)v8, 144LL);
if ( !v8 )
goto LABEL_22;
}
v14[1] = v8;
v2 = (const char *)v14;
if ( insert_dynamic(v15 + 16, (long long)v14) )
goto LABEL_22;
}
}
}
closedir(v13);
if ( (v16 & 0x2000) != 0 )
my_qsort(
*(char **)(v15 + 16),
*(unsigned int *)(v15 + 24),
*(unsigned int *)(v15 + 36),
(int ( *)(char *, char *))comp_names);
*(_QWORD *)v15 = *(_QWORD *)(v15 + 16);
*(_DWORD *)(v15 + 8) = *(_DWORD *)(v15 + 24);
return v15;
}
|
my_dir:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x530
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x440],RDI
MOV qword ptr [RBP + -0x448],RSI
JMP 0x001f2f98
LAB_001f2f98:
LEA RDI,[RBP + -0x210]
MOV RSI,qword ptr [RBP + -0x440]
CALL 0x001f3340
MOV qword ptr [RBP + -0x478],RAX
LEA RDI,[RBP + -0x210]
CALL 0x0012a470
MOV qword ptr [RBP + -0x468],RAX
CMP RAX,0x0
JNZ 0x001f2fea
CALL 0x0012a760
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x514],EAX
CALL 0x001f6090
MOV ECX,dword ptr [RBP + -0x514]
MOV dword ptr [RAX],ECX
JMP 0x001f32bb
LAB_001f2fea:
LEA RAX,[0xd832c4]
MOV EDI,dword ptr [RAX]
MOV RDX,qword ptr [RBP + -0x448]
OR RDX,0x20
MOV ESI,0x78
CALL 0x001f3830
MOV qword ptr [RBP + -0x450],RAX
CMP RAX,0x0
JNZ 0x001f301a
JMP 0x001f32af
LAB_001f301a:
LEA RAX,[0xd832c4]
MOV EDI,dword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x450]
ADD RSI,0x10
MOV RAX,qword ptr [RBP + -0x448]
MOV EDX,0x10
XOR ECX,ECX
MOV R8D,0x200
MOV R9D,0x1000
MOV qword ptr [RSP],RAX
CALL 0x001da7e0
CMP AL,0x0
JZ 0x001f305a
JMP 0x001f32a3
LAB_001f305a:
LEA RAX,[0xd832c4]
MOV EDI,dword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x450]
ADD RSI,0x38
MOV R8,qword ptr [RBP + -0x448]
MOV ECX,0x8000
MOV RDX,RCX
CALL 0x001ed170
LEA RAX,[RBP + -0x430]
MOV qword ptr [RBP + -0x470],RAX
LAB_001f3090:
MOV RDI,qword ptr [RBP + -0x468]
CALL 0x0012a480
MOV qword ptr [RBP + -0x470],RAX
CMP RAX,0x0
SETNZ AL
XOR AL,0xff
XOR AL,0xff
TEST AL,0x1
JNZ 0x001f30b7
JMP 0x001f321c
LAB_001f30b7:
MOV qword ptr [RBP + -0x510],0x0
MOV RAX,qword ptr [RBP + -0x470]
MOVSX EAX,byte ptr [RAX + 0x13]
CMP EAX,0x2e
JNZ 0x001f3104
MOV RAX,qword ptr [RBP + -0x470]
MOVSX EAX,byte ptr [RAX + 0x14]
CMP EAX,0x0
JZ 0x001f3102
MOV RAX,qword ptr [RBP + -0x470]
MOVSX EAX,byte ptr [RAX + 0x14]
CMP EAX,0x2e
JNZ 0x001f3104
MOV RAX,qword ptr [RBP + -0x470]
MOVSX EAX,byte ptr [RAX + 0x15]
CMP EAX,0x0
JNZ 0x001f3104
LAB_001f3102:
JMP 0x001f3090
LAB_001f3104:
MOV RAX,qword ptr [RBP + -0x448]
AND RAX,0x4000
CMP RAX,0x0
JZ 0x001f3184
LEA RAX,[RBP + -0x508]
MOV qword ptr [RBP + -0x510],RAX
MOV RDI,qword ptr [RBP + -0x510]
XOR ESI,ESI
MOV EDX,0x90
CALL 0x0012a2c0
MOV RDI,qword ptr [RBP + -0x478]
MOV RSI,qword ptr [RBP + -0x470]
ADD RSI,0x13
CALL 0x0012a730
LEA RDI,[RBP + -0x210]
MOV RSI,qword ptr [RBP + -0x510]
MOV RDX,qword ptr [RBP + -0x448]
CALL 0x001f33b0
MOV RAX,qword ptr [RBP + -0x510]
MOV EAX,dword ptr [RAX + 0x18]
AND EAX,0x100
CMP EAX,0x0
JNZ 0x001f3182
JMP 0x001f3090
LAB_001f3182:
JMP 0x001f3184
LAB_001f3184:
MOV RDI,qword ptr [RBP + -0x450]
ADD RDI,0x38
MOV RSI,qword ptr [RBP + -0x470]
ADD RSI,0x13
CALL 0x001edca0
MOV qword ptr [RBP + -0x460],RAX
CMP RAX,0x0
JNZ 0x001f31b1
JMP 0x001f32a3
LAB_001f31b1:
CMP qword ptr [RBP + -0x510],0x0
JZ 0x001f31e9
MOV RDI,qword ptr [RBP + -0x450]
ADD RDI,0x38
MOV RSI,qword ptr [RBP + -0x510]
MOV EDX,0x90
CALL 0x001edd40
MOV qword ptr [RBP + -0x510],RAX
CMP RAX,0x0
JNZ 0x001f31e9
JMP 0x001f32a3
LAB_001f31e9:
MOV RAX,qword ptr [RBP + -0x510]
MOV qword ptr [RBP + -0x458],RAX
MOV RDI,qword ptr [RBP + -0x450]
ADD RDI,0x10
LEA RSI,[RBP + -0x460]
CALL 0x001da910
CMP AL,0x0
JZ 0x001f3217
JMP 0x001f32a3
LAB_001f3217:
JMP 0x001f3090
LAB_001f321c:
MOV RDI,qword ptr [RBP + -0x468]
CALL 0x0012a450
MOV RAX,qword ptr [RBP + -0x448]
AND RAX,0x2000
CMP RAX,0x0
JZ 0x001f326a
MOV RAX,qword ptr [RBP + -0x450]
MOV RDI,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x450]
MOV EAX,dword ptr [RAX + 0x18]
MOV ESI,EAX
MOV RAX,qword ptr [RBP + -0x450]
MOV EAX,dword ptr [RAX + 0x24]
MOV EDX,EAX
LEA RCX,[0x1f34a0]
CALL 0x001e9780
LAB_001f326a:
MOV RAX,qword ptr [RBP + -0x450]
MOV RCX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x450]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x450]
MOV ECX,dword ptr [RAX + 0x18]
MOV RAX,qword ptr [RBP + -0x450]
MOV dword ptr [RAX + 0x8],ECX
MOV RAX,qword ptr [RBP + -0x450]
MOV qword ptr [RBP + -0x438],RAX
JMP 0x001f3306
LAB_001f32a3:
MOV RDI,qword ptr [RBP + -0x450]
CALL 0x001f2f20
LAB_001f32af:
MOV RDI,qword ptr [RBP + -0x468]
CALL 0x0012a450
LAB_001f32bb:
MOV RAX,qword ptr [RBP + -0x448]
AND RAX,0x18
CMP RAX,0x0
JZ 0x001f32f9
MOV RAX,qword ptr [RBP + -0x440]
MOV qword ptr [RBP + -0x520],RAX
CALL 0x001f6090
MOV RDX,qword ptr [RBP + -0x520]
MOV ECX,dword ptr [RAX]
MOV EDI,0xc
MOV ESI,0x4
MOV AL,0x0
CALL 0x001efb40
LAB_001f32f9:
JMP 0x001f32fb
LAB_001f32fb:
MOV qword ptr [RBP + -0x438],0x0
LAB_001f3306:
MOV RAX,qword ptr [RBP + -0x438]
MOV qword ptr [RBP + -0x528],RAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001f3336
MOV RAX,qword ptr [RBP + -0x528]
ADD RSP,0x530
POP RBP
RET
LAB_001f3336:
CALL 0x0012a270
|
int8 * my_dir(int8 param_1,ulong param_2)
{
int iVar1;
int8 uVar2;
char cVar3;
int *piVar4;
int4 *puVar5;
long in_FS_OFFSET;
int1 *local_518;
int1 local_510 [24];
uint local_4f8;
char *local_480;
dirent64 *local_478;
DIR *local_470;
long local_468;
int1 *local_460;
int8 *local_458;
ulong local_450;
int8 local_448;
int8 *local_440;
dirent64 local_438;
char local_218 [520];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_450 = param_2;
local_448 = param_1;
local_480 = (char *)directory_file_name(local_218,param_1);
local_470 = opendir(local_218);
if (local_470 == (DIR *)0x0) {
piVar4 = __errno_location();
iVar1 = *piVar4;
piVar4 = (int *)_my_thread_var();
*piVar4 = iVar1;
}
else {
local_458 = (int8 *)my_malloc(key_memory_MY_DIR,0x78,local_450 | 0x20);
if (local_458 != (int8 *)0x0) {
cVar3 = init_dynamic_array2(key_memory_MY_DIR,local_458 + 2,0x10,0,0x200,0x1000,local_450);
if (cVar3 == '\0') {
init_alloc_root(key_memory_MY_DIR,local_458 + 7,0x8000,0x8000,local_450);
local_478 = &local_438;
LAB_001f3090:
do {
do {
local_478 = readdir64(local_470);
if (local_478 == (dirent64 *)0x0) {
closedir(local_470);
if ((local_450 & 0x2000) != 0) {
my_qsort(local_458[2],*(int4 *)(local_458 + 3),
*(int4 *)((long)local_458 + 0x24),comp_names);
}
*local_458 = local_458[2];
*(int4 *)(local_458 + 1) = *(int4 *)(local_458 + 3);
local_440 = local_458;
goto LAB_001f3306;
}
local_518 = (int1 *)0x0;
} while ((local_478->d_name[0] == '.') &&
((local_478->d_name[1] == '\0' ||
((local_478->d_name[1] == '.' && (local_478->d_name[2] == '\0'))))));
if ((local_450 & 0x4000) != 0) {
local_518 = local_510;
memset(local_518,0,0x90);
stpcpy(local_480,local_478->d_name);
my_stat(local_218,local_518,local_450);
if ((local_4f8 & 0x100) == 0) goto LAB_001f3090;
}
local_468 = strdup_root(local_458 + 7,local_478->d_name);
if ((local_468 == 0) ||
((local_518 != (int1 *)0x0 &&
(local_518 = (int1 *)memdup_root(local_458 + 7,local_518,0x90),
local_518 == (int1 *)0x0)))) break;
local_460 = local_518;
cVar3 = insert_dynamic(local_458 + 2);
if (cVar3 != '\0') break;
} while( true );
}
my_dirend(local_458);
}
closedir(local_470);
}
uVar2 = local_448;
if ((local_450 & 0x18) != 0) {
puVar5 = (int4 *)_my_thread_var();
my_error(0xc,4,uVar2,*puVar5);
}
local_440 = (int8 *)0x0;
LAB_001f3306:
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return local_440;
}
|
|
66,273 |
my_wc_to_printable_8bit
|
eloqsql/strings/ctype.c
|
int
my_wc_to_printable_8bit(CHARSET_INFO *cs, my_wc_t wc,
uchar *str, uchar *end)
{
/*
Special case: swe7 does not have the backslash character.
Use dot instead of backslash for escaping.
*/
uint bs= cs->tab_to_uni && cs->tab_to_uni['\\'] != '\\' ? '.' : '\\';
DBUG_ASSERT(cs->mbminlen == 1);
/*
Additionally, if the original swe7 string contains backslashes,
replace them to dots, so this error message:
Invalid swe7 character string: '\xEF\xBC\xB4'
is displayed as:
Invalid swe7 character string: '.xEF.xBC.xB4'
which is more readable than what would happen without '\'-to-dot mapping:
Invalid swe7 character string: '.005CxEF.005CxBC.005CxB4'
*/
if (bs == '.' && wc == '\\')
wc= '.';
return my_wc_to_printable_ex(cs, wc, str, end, bs, 1, 1);
}
|
O0
|
c
|
my_wc_to_printable_8bit:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rcx
xorl %eax, %eax
cmpq $0x0, 0x68(%rcx)
movb %al, -0x25(%rbp)
je 0x7d9e0
movq -0x8(%rbp), %rax
movq 0x68(%rax), %rax
movzwl 0xb8(%rax), %eax
cmpl $0x5c, %eax
setne %al
movb %al, -0x25(%rbp)
movb -0x25(%rbp), %dl
movl $0x5c, %eax
movl $0x2e, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, -0x24(%rbp)
jmp 0x7d9f8
cmpl $0x2e, -0x24(%rbp)
jne 0x7da0d
cmpq $0x5c, -0x10(%rbp)
jne 0x7da0d
movq $0x2e, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %r8d
movl $0x1, %r9d
movl $0x1, (%rsp)
callq 0x7d670
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
|
my_wc_to_printable_8bit:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov rcx, [rbp+var_8]
xor eax, eax
cmp qword ptr [rcx+68h], 0
mov [rbp+var_25], al
jz short loc_7D9E0
mov rax, [rbp+var_8]
mov rax, [rax+68h]
movzx eax, word ptr [rax+0B8h]
cmp eax, 5Ch ; '\'
setnz al
mov [rbp+var_25], al
loc_7D9E0:
mov dl, [rbp+var_25]
mov eax, 5Ch ; '\'
mov ecx, 2Eh ; '.'
test dl, 1
cmovnz eax, ecx
mov [rbp+var_24], eax
jmp short $+2
loc_7D9F8:
cmp [rbp+var_24], 2Eh ; '.'
jnz short loc_7DA0D
cmp [rbp+var_10], 5Ch ; '\'
jnz short loc_7DA0D
mov [rbp+var_10], 2Eh ; '.'
loc_7DA0D:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
mov r8d, [rbp+var_24]
mov r9d, 1
mov [rsp+30h+var_30], 1
call my_wc_to_printable_ex
add rsp, 30h
pop rbp
retn
|
long long my_wc_to_printable_8bit(long long a1, long long a2, long long a3, unsigned long long a4)
{
unsigned int v4; // eax
bool v6; // [rsp+Bh] [rbp-25h]
long long v7; // [rsp+20h] [rbp-10h]
v7 = a2;
v6 = 0;
if ( *(_QWORD *)(a1 + 104) )
v6 = *(unsigned __int16 *)(*(_QWORD *)(a1 + 104) + 184LL) != 92;
v4 = 92;
if ( v6 )
v4 = 46;
if ( v4 == 46 && a2 == 92 )
v7 = 46LL;
return my_wc_to_printable_ex(a1, v7, a3, a4, v4, 1u, 1u);
}
|
my_wc_to_printable_8bit:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV RCX,qword ptr [RBP + -0x8]
XOR EAX,EAX
CMP qword ptr [RCX + 0x68],0x0
MOV byte ptr [RBP + -0x25],AL
JZ 0x0017d9e0
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x68]
MOVZX EAX,word ptr [RAX + 0xb8]
CMP EAX,0x5c
SETNZ AL
MOV byte ptr [RBP + -0x25],AL
LAB_0017d9e0:
MOV DL,byte ptr [RBP + -0x25]
MOV EAX,0x5c
MOV ECX,0x2e
TEST DL,0x1
CMOVNZ EAX,ECX
MOV dword ptr [RBP + -0x24],EAX
JMP 0x0017d9f8
LAB_0017d9f8:
CMP dword ptr [RBP + -0x24],0x2e
JNZ 0x0017da0d
CMP qword ptr [RBP + -0x10],0x5c
JNZ 0x0017da0d
MOV qword ptr [RBP + -0x10],0x2e
LAB_0017da0d:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x20]
MOV R8D,dword ptr [RBP + -0x24]
MOV R9D,0x1
MOV dword ptr [RSP],0x1
CALL 0x0017d670
ADD RSP,0x30
POP RBP
RET
|
void my_wc_to_printable_8bit(long param_1,long param_2,int8 param_3,int8 param_4)
{
int iVar1;
bool bVar2;
int8 local_18;
bVar2 = false;
if (*(long *)(param_1 + 0x68) != 0) {
bVar2 = *(short *)(*(long *)(param_1 + 0x68) + 0xb8) != 0x5c;
}
iVar1 = 0x5c;
if (bVar2) {
iVar1 = 0x2e;
}
local_18 = param_2;
if ((iVar1 == 0x2e) && (param_2 == 0x5c)) {
local_18 = 0x2e;
}
my_wc_to_printable_ex(param_1,local_18,param_3,param_4,iVar1,1,1);
return;
}
|
|
66,274 |
OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::NeighborhoodBuilder(int)
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/neighborhoodBuilder.cpp
|
NeighborhoodBuilder::NeighborhoodBuilder(int maxValence) {
reserve(maxValence);
{
using namespace Far;
// Prevent accidental optimized builds w/ neighborhood debugging features still active
// note : this guard-rail will be disabled if client code does not use CMake (or does
// not define NDEBUG)
#ifndef NDEBUG
#define NDEBUG 0
#endif
static_assert((NDEBUG == 0) || (NDEBUG > 0 && kDebugNeighborhoods==false));
// Make sure the Neighborhood vertex indexing types are binary-compatible with Far::TopologyDescriptor.
// This allows to populate a local Far::TopologyRefiner directly from a Neighborhood without any
// transcoding (at the cost of some memory though, since most of the neighborhood indices can be
// represeneted with LocalIndices, with half the bits).
static_assert(sizeof(Neighborhood) == (sizeof(uint32_t) * 4));
static_assert(std::is_same_v<decltype(NeighborhoodBuilder::_faceVerts)::value_type,
std::remove_const_t<std::remove_pointer_t<decltype(TopologyDescriptor::vertIndicesPerFace)>>>);
static_assert(std::is_same_v<decltype(TopologyDescriptor::vertIndicesPerFace), decltype(TopologyDescriptor::cornerVertexIndices)>);
static_assert(std::is_same_v<decltype(TopologyDescriptor::vertIndicesPerFace), decltype(TopologyDescriptor::creaseVertexIndexPairs)>);
static_assert(std::is_same_v<decltype(TopologyDescriptor::vertIndicesPerFace), decltype(TopologyDescriptor::holeIndices)>);
}
}
|
O1
|
cpp
|
OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::NeighborhoodBuilder(int):
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
movl $0xd8, %edx
xorl %esi, %esi
callq 0x391b0
movq %rbx, %rdi
movl %ebp, %esi
callq 0x3b530
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
movq 0xc0(%rbx), %rdi
testq %rdi, %rdi
je 0xa3c8e
movq 0xd0(%rbx), %rsi
subq %rdi, %rsi
callq 0x3a2d0
movq 0xa8(%rbx), %rdi
testq %rdi, %rdi
je 0xa3ca9
movq 0xb8(%rbx), %rsi
subq %rdi, %rsi
callq 0x3a2d0
movq 0x90(%rbx), %rdi
testq %rdi, %rdi
je 0xa3cc4
movq 0xa0(%rbx), %rsi
subq %rdi, %rsi
callq 0x3a2d0
movq 0x78(%rbx), %rdi
testq %rdi, %rdi
je 0xa3cdc
movq 0x88(%rbx), %rsi
subq %rdi, %rsi
callq 0x3a2d0
movq 0x60(%rbx), %rdi
testq %rdi, %rdi
je 0xa3cf1
movq 0x70(%rbx), %rsi
subq %rdi, %rsi
callq 0x3a2d0
movq 0x48(%rbx), %rdi
testq %rdi, %rdi
je 0xa3d06
movq 0x58(%rbx), %rsi
subq %rdi, %rsi
callq 0x3a2d0
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
je 0xa3d1b
movq 0x40(%rbx), %rsi
subq %rdi, %rsi
callq 0x3a2d0
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0xa3d30
movq 0x28(%rbx), %rsi
subq %rdi, %rsi
callq 0x3a2d0
movq (%rbx), %rdi
testq %rdi, %rdi
je 0xa3d44
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x3a2d0
movq %r14, %rdi
callq 0x3bd70
|
_ZN10OpenSubdiv6v3_6_03Tmr19NeighborhoodBuilderC2Ei:
push rbp; Alternative name is 'OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::NeighborhoodBuilder(int)'
push r14
push rbx
mov ebp, esi
mov rbx, rdi
mov edx, 0D8h
xor esi, esi
call _memset
mov rdi, rbx; this
mov esi, ebp; int
call __ZN10OpenSubdiv6v3_6_03Tmr19NeighborhoodBuilder7reserveEi; OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::reserve(int)
pop rbx
pop r14
pop rbp
retn
mov r14, rax
mov rdi, [rbx+0C0h]; void *
test rdi, rdi
jz short loc_A3C8E
mov rsi, [rbx+0D0h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_A3C8E:
mov rdi, [rbx+0A8h]; void *
test rdi, rdi
jz short loc_A3CA9
mov rsi, [rbx+0B8h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_A3CA9:
mov rdi, [rbx+90h]; void *
test rdi, rdi
jz short loc_A3CC4
mov rsi, [rbx+0A0h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_A3CC4:
mov rdi, [rbx+78h]; void *
test rdi, rdi
jz short loc_A3CDC
mov rsi, [rbx+88h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_A3CDC:
mov rdi, [rbx+60h]; void *
test rdi, rdi
jz short loc_A3CF1
mov rsi, [rbx+70h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_A3CF1:
mov rdi, [rbx+48h]; void *
test rdi, rdi
jz short loc_A3D06
mov rsi, [rbx+58h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_A3D06:
mov rdi, [rbx+30h]; void *
test rdi, rdi
jz short loc_A3D1B
mov rsi, [rbx+40h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_A3D1B:
mov rdi, [rbx+18h]; void *
test rdi, rdi
jz short loc_A3D30
mov rsi, [rbx+28h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_A3D30:
mov rdi, [rbx]; void *
test rdi, rdi
jz short loc_A3D44
mov rsi, [rbx+10h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_A3D44:
mov rdi, r14
call __Unwind_Resume
|
long long OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::NeighborhoodBuilder(
OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder *this,
int a2)
{
memset(this, 0LL, 216LL);
return OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::reserve(this, a2);
}
|
NeighborhoodBuilder:
PUSH RBP
PUSH R14
PUSH RBX
MOV EBP,ESI
MOV RBX,RDI
MOV EDX,0xd8
XOR ESI,ESI
CALL 0x001391b0
LAB_001a3c61:
MOV RDI,RBX
MOV ESI,EBP
CALL 0x0013b530
LAB_001a3c6b:
POP RBX
POP R14
POP RBP
RET
|
/* OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::NeighborhoodBuilder(int) */
void __thiscall
OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::NeighborhoodBuilder
(NeighborhoodBuilder *this,int param_1)
{
memset(this,0,0xd8);
/* try { // try from 001a3c61 to 001a3c6a has its CatchHandler @ 001a3c70 */
reserve(this,param_1);
return;
}
|
|
66,275 |
OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::NeighborhoodBuilder(int)
|
NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/neighborhoodBuilder.cpp
|
NeighborhoodBuilder::NeighborhoodBuilder(int maxValence) {
reserve(maxValence);
{
using namespace Far;
// Prevent accidental optimized builds w/ neighborhood debugging features still active
// note : this guard-rail will be disabled if client code does not use CMake (or does
// not define NDEBUG)
#ifndef NDEBUG
#define NDEBUG 0
#endif
static_assert((NDEBUG == 0) || (NDEBUG > 0 && kDebugNeighborhoods==false));
// Make sure the Neighborhood vertex indexing types are binary-compatible with Far::TopologyDescriptor.
// This allows to populate a local Far::TopologyRefiner directly from a Neighborhood without any
// transcoding (at the cost of some memory though, since most of the neighborhood indices can be
// represeneted with LocalIndices, with half the bits).
static_assert(sizeof(Neighborhood) == (sizeof(uint32_t) * 4));
static_assert(std::is_same_v<decltype(NeighborhoodBuilder::_faceVerts)::value_type,
std::remove_const_t<std::remove_pointer_t<decltype(TopologyDescriptor::vertIndicesPerFace)>>>);
static_assert(std::is_same_v<decltype(TopologyDescriptor::vertIndicesPerFace), decltype(TopologyDescriptor::cornerVertexIndices)>);
static_assert(std::is_same_v<decltype(TopologyDescriptor::vertIndicesPerFace), decltype(TopologyDescriptor::creaseVertexIndexPairs)>);
static_assert(std::is_same_v<decltype(TopologyDescriptor::vertIndicesPerFace), decltype(TopologyDescriptor::holeIndices)>);
}
}
|
O3
|
cpp
|
OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::NeighborhoodBuilder(int):
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
movl $0xd8, %edx
xorl %esi, %esi
callq 0x391a0
movq %rbx, %rdi
movl %ebp, %esi
callq 0x3b4f0
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
movq 0xc0(%rbx), %rdi
testq %rdi, %rdi
je 0xa672a
movq 0xd0(%rbx), %rsi
subq %rdi, %rsi
callq 0x3a2b0
movq 0xa8(%rbx), %rdi
testq %rdi, %rdi
je 0xa6745
movq 0xb8(%rbx), %rsi
subq %rdi, %rsi
callq 0x3a2b0
movq 0x90(%rbx), %rdi
testq %rdi, %rdi
je 0xa6760
movq 0xa0(%rbx), %rsi
subq %rdi, %rsi
callq 0x3a2b0
movq 0x78(%rbx), %rdi
testq %rdi, %rdi
je 0xa6778
movq 0x88(%rbx), %rsi
subq %rdi, %rsi
callq 0x3a2b0
movq 0x60(%rbx), %rdi
testq %rdi, %rdi
je 0xa678d
movq 0x70(%rbx), %rsi
subq %rdi, %rsi
callq 0x3a2b0
movq 0x48(%rbx), %rdi
testq %rdi, %rdi
je 0xa67a2
movq 0x58(%rbx), %rsi
subq %rdi, %rsi
callq 0x3a2b0
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
je 0xa67b7
movq 0x40(%rbx), %rsi
subq %rdi, %rsi
callq 0x3a2b0
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0xa67cc
movq 0x28(%rbx), %rsi
subq %rdi, %rsi
callq 0x3a2b0
movq (%rbx), %rdi
testq %rdi, %rdi
je 0xa67e0
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x3a2b0
movq %r14, %rdi
callq 0x3bd30
|
_ZN10OpenSubdiv6v3_6_03Tmr19NeighborhoodBuilderC2Ei:
push rbp; Alternative name is 'OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::NeighborhoodBuilder(int)'
push r14
push rbx
mov ebp, esi
mov rbx, rdi
mov edx, 0D8h
xor esi, esi
call _memset
mov rdi, rbx; this
mov esi, ebp; int
call __ZN10OpenSubdiv6v3_6_03Tmr19NeighborhoodBuilder7reserveEi; OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::reserve(int)
pop rbx
pop r14
pop rbp
retn
mov r14, rax
mov rdi, [rbx+0C0h]; void *
test rdi, rdi
jz short loc_A672A
mov rsi, [rbx+0D0h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_A672A:
mov rdi, [rbx+0A8h]; void *
test rdi, rdi
jz short loc_A6745
mov rsi, [rbx+0B8h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_A6745:
mov rdi, [rbx+90h]; void *
test rdi, rdi
jz short loc_A6760
mov rsi, [rbx+0A0h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_A6760:
mov rdi, [rbx+78h]; void *
test rdi, rdi
jz short loc_A6778
mov rsi, [rbx+88h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_A6778:
mov rdi, [rbx+60h]; void *
test rdi, rdi
jz short loc_A678D
mov rsi, [rbx+70h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_A678D:
mov rdi, [rbx+48h]; void *
test rdi, rdi
jz short loc_A67A2
mov rsi, [rbx+58h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_A67A2:
mov rdi, [rbx+30h]; void *
test rdi, rdi
jz short loc_A67B7
mov rsi, [rbx+40h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_A67B7:
mov rdi, [rbx+18h]; void *
test rdi, rdi
jz short loc_A67CC
mov rsi, [rbx+28h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_A67CC:
mov rdi, [rbx]; void *
test rdi, rdi
jz short loc_A67E0
mov rsi, [rbx+10h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_A67E0:
mov rdi, r14
call __Unwind_Resume
|
long long OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::NeighborhoodBuilder(
OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder *this,
int a2)
{
memset(this, 0LL, 216LL);
return OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::reserve(this, a2);
}
|
NeighborhoodBuilder:
PUSH RBP
PUSH R14
PUSH RBX
MOV EBP,ESI
MOV RBX,RDI
MOV EDX,0xd8
XOR ESI,ESI
CALL 0x001391a0
LAB_001a66fd:
MOV RDI,RBX
MOV ESI,EBP
CALL 0x0013b4f0
LAB_001a6707:
POP RBX
POP R14
POP RBP
RET
|
/* OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::NeighborhoodBuilder(int) */
void __thiscall
OpenSubdiv::v3_6_0::Tmr::NeighborhoodBuilder::NeighborhoodBuilder
(NeighborhoodBuilder *this,int param_1)
{
memset(this,0,0xd8);
/* try { // try from 001a66fd to 001a6706 has its CatchHandler @ 001a670c */
reserve(this,param_1);
return;
}
|
|
66,276 |
mi_state_info_read_dsk
|
eloqsql/storage/myisam/mi_open.c
|
uint mi_state_info_read_dsk(File file, MI_STATE_INFO *state, my_bool pRead)
{
uchar buff[MI_STATE_INFO_SIZE + MI_STATE_EXTRA_SIZE];
if (!myisam_single_user)
{
if (pRead)
{
if (mysql_file_pread(file, buff, state->state_length, 0L, MYF(MY_NABP)))
return 1;
}
else if (mysql_file_read(file, buff, state->state_length, MYF(MY_NABP)))
return 1;
mi_state_info_read(buff, state);
}
return 0;
}
|
O0
|
c
|
mi_state_info_read_dsk:
pushq %rbp
movq %rsp, %rbp
subq $0x2360, %rsp # imm = 0x2360
movb %dl, %al
movq %fs:0x28, %rcx
movq %rcx, -0x8(%rbp)
movl %edi, -0x2348(%rbp)
movq %rsi, -0x2350(%rbp)
movb %al, -0x2351(%rbp)
leaq 0xbc5216(%rip), %rax # 0xc8579a
cmpb $0x0, (%rax)
jne 0xc0640
cmpb $0x0, -0x2351(%rbp)
je 0xc05e5
movl -0x2348(%rbp), %edx
leaq -0x2340(%rbp), %rcx
movq -0x2350(%rbp), %rax
movl 0xf8(%rax), %eax
movl %eax, %r8d
leaq 0x9b557(%rip), %rdi # 0x15bb11
movl $0x418, %esi # imm = 0x418
xorl %eax, %eax
movl %eax, %r9d
movq $0x4, (%rsp)
callq 0xc0680
cmpq $0x0, %rax
je 0xc05e3
movl $0x1, -0x2344(%rbp)
jmp 0xc064a
jmp 0xc062d
movl -0x2348(%rbp), %edx
leaq -0x2340(%rbp), %rcx
movq -0x2350(%rbp), %rax
movl 0xf8(%rax), %eax
movl %eax, %r8d
leaq 0x9b508(%rip), %rdi # 0x15bb11
movl $0x41b, %esi # imm = 0x41B
movl $0x4, %r9d
callq 0xbc590
cmpq $0x0, %rax
je 0xc062b
movl $0x1, -0x2344(%rbp)
jmp 0xc064a
jmp 0xc062d
leaq -0x2340(%rbp), %rdi
movq -0x2350(%rbp), %rsi
callq 0xbc7f0
movl $0x0, -0x2344(%rbp)
movl -0x2344(%rbp), %eax
movl %eax, -0x2358(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xc0677
movl -0x2358(%rbp), %eax
addq $0x2360, %rsp # imm = 0x2360
popq %rbp
retq
callq 0x29230
nopl (%rax)
|
mi_state_info_read_dsk:
push rbp
mov rbp, rsp
sub rsp, 2360h
mov al, dl
mov rcx, fs:28h
mov [rbp+var_8], rcx
mov [rbp+var_2348], edi
mov [rbp+var_2350], rsi
mov [rbp+var_2351], al
lea rax, myisam_single_user
cmp byte ptr [rax], 0
jnz loc_C0640
cmp [rbp+var_2351], 0
jz short loc_C05E5
mov edx, [rbp+var_2348]
lea rcx, [rbp+var_2340]
mov rax, [rbp+var_2350]
mov eax, [rax+0F8h]
mov r8d, eax
lea rdi, aWorkspaceLlm4b_38; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 418h
xor eax, eax
mov r9d, eax
mov [rsp+2360h+var_2360], 4
call inline_mysql_file_pread_7
cmp rax, 0
jz short loc_C05E3
mov [rbp+var_2344], 1
jmp short loc_C064A
loc_C05E3:
jmp short loc_C062D
loc_C05E5:
mov edx, [rbp+var_2348]
lea rcx, [rbp+var_2340]
mov rax, [rbp+var_2350]
mov eax, [rax+0F8h]
mov r8d, eax
lea rdi, aWorkspaceLlm4b_38; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 41Bh
mov r9d, 4
call inline_mysql_file_read_2
cmp rax, 0
jz short loc_C062B
mov [rbp+var_2344], 1
jmp short loc_C064A
loc_C062B:
jmp short $+2
loc_C062D:
lea rdi, [rbp+var_2340]
mov rsi, [rbp+var_2350]
call mi_state_info_read
loc_C0640:
mov [rbp+var_2344], 0
loc_C064A:
mov eax, [rbp+var_2344]
mov [rbp+var_2358], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_C0677
mov eax, [rbp+var_2358]
add rsp, 2360h
pop rbp
retn
loc_C0677:
call ___stack_chk_fail
|
long long mi_state_info_read_dsk(unsigned int a1, long long a2, char a3)
{
_BYTE v5[9016]; // [rsp+20h] [rbp-2340h] BYREF
unsigned long long v6; // [rsp+2358h] [rbp-8h]
v6 = __readfsqword(0x28u);
if ( myisam_single_user )
return 0;
if ( !a3 )
{
if ( inline_mysql_file_read_2(
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_open.c",
0x41Bu,
a1,
(long long)v5,
*(unsigned int *)(a2 + 248),
4LL) )
{
return 1;
}
goto LABEL_8;
}
if ( !inline_mysql_file_pread_7(
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_open.c",
1048,
a1,
(unsigned int)v5,
*(_DWORD *)(a2 + 248),
0,
4LL) )
{
LABEL_8:
mi_state_info_read((long long)v5, a2);
return 0;
}
return 1;
}
|
mi_state_info_read_dsk:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x2360
MOV AL,DL
MOV RCX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RCX
MOV dword ptr [RBP + -0x2348],EDI
MOV qword ptr [RBP + -0x2350],RSI
MOV byte ptr [RBP + -0x2351],AL
LEA RAX,[0xd8579a]
CMP byte ptr [RAX],0x0
JNZ 0x001c0640
CMP byte ptr [RBP + -0x2351],0x0
JZ 0x001c05e5
MOV EDX,dword ptr [RBP + -0x2348]
LEA RCX,[RBP + -0x2340]
MOV RAX,qword ptr [RBP + -0x2350]
MOV EAX,dword ptr [RAX + 0xf8]
MOV R8D,EAX
LEA RDI,[0x25bb11]
MOV ESI,0x418
XOR EAX,EAX
MOV R9D,EAX
MOV qword ptr [RSP],0x4
CALL 0x001c0680
CMP RAX,0x0
JZ 0x001c05e3
MOV dword ptr [RBP + -0x2344],0x1
JMP 0x001c064a
LAB_001c05e3:
JMP 0x001c062d
LAB_001c05e5:
MOV EDX,dword ptr [RBP + -0x2348]
LEA RCX,[RBP + -0x2340]
MOV RAX,qword ptr [RBP + -0x2350]
MOV EAX,dword ptr [RAX + 0xf8]
MOV R8D,EAX
LEA RDI,[0x25bb11]
MOV ESI,0x41b
MOV R9D,0x4
CALL 0x001bc590
CMP RAX,0x0
JZ 0x001c062b
MOV dword ptr [RBP + -0x2344],0x1
JMP 0x001c064a
LAB_001c062b:
JMP 0x001c062d
LAB_001c062d:
LEA RDI,[RBP + -0x2340]
MOV RSI,qword ptr [RBP + -0x2350]
CALL 0x001bc7f0
LAB_001c0640:
MOV dword ptr [RBP + -0x2344],0x0
LAB_001c064a:
MOV EAX,dword ptr [RBP + -0x2344]
MOV dword ptr [RBP + -0x2358],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001c0677
MOV EAX,dword ptr [RBP + -0x2358]
ADD RSP,0x2360
POP RBP
RET
LAB_001c0677:
CALL 0x00129230
|
int4 mi_state_info_read_dsk(int4 param_1,long param_2,char param_3)
{
long lVar1;
long in_FS_OFFSET;
int4 local_234c;
int1 local_2348 [9016];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
if (myisam_single_user == '\0') {
if (param_3 == '\0') {
lVar1 = inline_mysql_file_read
("/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_open.c",0x41b,
param_1,local_2348,*(int4 *)(param_2 + 0xf8),4);
if (lVar1 != 0) {
local_234c = 1;
goto LAB_001c064a;
}
}
else {
lVar1 = inline_mysql_file_pread
("/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_open.c",0x418,
param_1,local_2348,*(int4 *)(param_2 + 0xf8),0,4);
if (lVar1 != 0) {
local_234c = 1;
goto LAB_001c064a;
}
}
mi_state_info_read(local_2348,param_2);
}
local_234c = 0;
LAB_001c064a:
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return local_234c;
}
|
|
66,277 |
rw_pr_init
|
eloqsql/mysys/thr_rwlock.c
|
int rw_pr_init(rw_pr_lock_t *rwlock)
{
pthread_mutex_init(&rwlock->lock, NULL);
pthread_cond_init(&rwlock->no_active_readers, NULL);
rwlock->active_readers= 0;
rwlock->writers_waiting_readers= 0;
rwlock->active_writer= FALSE;
#ifdef SAFE_MUTEX
rwlock->writer_thread= 0;
#endif
return 0;
}
|
O3
|
c
|
rw_pr_init:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %esi, %esi
callq 0x26510
leaq 0x28(%rbx), %rdi
xorl %esi, %esi
callq 0x26420
movq $0x0, 0x58(%rbx)
movb $0x0, 0x60(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
|
rw_pr_init:
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rdi
xor esi, esi
call _pthread_mutex_init
lea rdi, [rbx+28h]
xor esi, esi
call _pthread_cond_init
mov qword ptr [rbx+58h], 0
mov byte ptr [rbx+60h], 0
xor eax, eax
add rsp, 8
pop rbx
pop rbp
retn
|
long long rw_pr_init(long long a1)
{
pthread_mutex_init(a1, 0LL);
pthread_cond_init(a1 + 40, 0LL);
*(_QWORD *)(a1 + 88) = 0LL;
*(_BYTE *)(a1 + 96) = 0;
return 0LL;
}
|
rw_pr_init:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RDI
XOR ESI,ESI
CALL 0x00126510
LEA RDI,[RBX + 0x28]
XOR ESI,ESI
CALL 0x00126420
MOV qword ptr [RBX + 0x58],0x0
MOV byte ptr [RBX + 0x60],0x0
XOR EAX,EAX
ADD RSP,0x8
POP RBX
POP RBP
RET
|
int8 rw_pr_init(pthread_mutex_t *param_1)
{
pthread_mutex_init(param_1,(pthread_mutexattr_t *)0x0);
pthread_cond_init((pthread_cond_t *)(param_1 + 1),(pthread_condattr_t *)0x0);
*(int8 *)((long)param_1 + 0x58) = 0;
*(int1 *)((long)param_1 + 0x60) = 0;
return 0;
}
|
|
66,278 |
void mujoco::plugin::elasticity::MetricTensor<mujoco::plugin::elasticity::Stencil2D>(std::vector<double, std::allocator<double>>&, int, double, double, double const (*) [9])
|
aimrt_mujoco_sim/_deps/mujoco-src/plugin/elasticity/elasticity.h
|
void inline MetricTensor(std::vector<mjtNum>& metric, int idx, mjtNum mu,
mjtNum la, const mjtNum basis[T::kNumEdges][9]) {
mjtNum trE[T::kNumEdges] = {0};
mjtNum trEE[T::kNumEdges*T::kNumEdges] = {0};
// compute first invariant i.e. trace(strain)
for (int e = 0; e < T::kNumEdges; e++) {
for (int i = 0; i < 3; i++) {
trE[e] += basis[e][4*i];
}
}
// compute second invariant i.e. trace(strain^2)
for (int ed1 = 0; ed1 < T::kNumEdges; ed1++) {
for (int ed2 = 0; ed2 < T::kNumEdges; ed2++) {
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
trEE[T::kNumEdges*ed1+ed2] += basis[ed1][3*i+j] * basis[ed2][3*j+i];
}
}
}
}
// assembly of strain metric tensor
for (int ed1 = 0; ed1 < T::kNumEdges; ed1++) {
for (int ed2 = 0; ed2 < T::kNumEdges; ed2++) {
int index = T::kNumEdges*T::kNumEdges*idx + T::kNumEdges*ed1 + ed2;
metric[index] = mu * trEE[T::kNumEdges * ed1 + ed2] +
la * trE[ed2] * trE[ed1];
}
}
}
|
O0
|
c
|
void mujoco::plugin::elasticity::MetricTensor<mujoco::plugin::elasticity::Stencil2D>(std::vector<double, std::allocator<double>>&, int, double, double, double const (*) [9]):
subq $0xc8, %rsp
movq %rdi, 0xc0(%rsp)
movl %esi, 0xbc(%rsp)
vmovsd %xmm0, 0xb0(%rsp)
vmovsd %xmm1, 0xa8(%rsp)
movq %rdx, 0xa0(%rsp)
leaq 0x80(%rsp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x52d0
leaq 0x30(%rsp), %rdi
xorl %esi, %esi
movl $0x48, %edx
callq 0x52d0
movl $0x0, 0x2c(%rsp)
cmpl $0x3, 0x2c(%rsp)
jge 0x10279
movl $0x0, 0x28(%rsp)
cmpl $0x3, 0x28(%rsp)
jge 0x1026a
movq 0xa0(%rsp), %rax
movslq 0x2c(%rsp), %rcx
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movl 0x28(%rsp), %ecx
shll $0x2, %ecx
movslq %ecx, %rcx
vmovsd (%rax,%rcx,8), %xmm0
movslq 0x2c(%rsp), %rax
vaddsd 0x80(%rsp,%rax,8), %xmm0, %xmm0
vmovsd %xmm0, 0x80(%rsp,%rax,8)
movl 0x28(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x28(%rsp)
jmp 0x1021c
jmp 0x1026c
movl 0x2c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x2c(%rsp)
jmp 0x1020d
movl $0x0, 0x24(%rsp)
cmpl $0x3, 0x24(%rsp)
jge 0x1036d
movl $0x0, 0x20(%rsp)
cmpl $0x3, 0x20(%rsp)
jge 0x1035b
movl $0x0, 0x1c(%rsp)
cmpl $0x3, 0x1c(%rsp)
jge 0x10349
movl $0x0, 0x18(%rsp)
cmpl $0x3, 0x18(%rsp)
jge 0x10337
movq 0xa0(%rsp), %rax
movslq 0x24(%rsp), %rcx
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
imull $0x3, 0x1c(%rsp), %ecx
addl 0x18(%rsp), %ecx
movslq %ecx, %rcx
vmovsd (%rax,%rcx,8), %xmm0
movq 0xa0(%rsp), %rax
movslq 0x20(%rsp), %rcx
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
imull $0x3, 0x18(%rsp), %ecx
addl 0x1c(%rsp), %ecx
movslq %ecx, %rcx
vmovsd (%rax,%rcx,8), %xmm2
imull $0x3, 0x24(%rsp), %eax
addl 0x20(%rsp), %eax
cltq
vmovsd 0x30(%rsp,%rax,8), %xmm1
vmulsd %xmm2, %xmm0, %xmm0
vaddsd %xmm1, %xmm0, %xmm0
vmovsd %xmm0, 0x30(%rsp,%rax,8)
movl 0x18(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x18(%rsp)
jmp 0x102ba
jmp 0x10339
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
jmp 0x102a7
jmp 0x1034b
movl 0x20(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x20(%rsp)
jmp 0x10294
jmp 0x1035d
movl 0x24(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x24(%rsp)
jmp 0x10281
movl $0x0, 0x14(%rsp)
cmpl $0x3, 0x14(%rsp)
jge 0x10433
movl $0x0, 0x10(%rsp)
cmpl $0x3, 0x10(%rsp)
jge 0x10421
imull $0x9, 0xbc(%rsp), %eax
imull $0x3, 0x14(%rsp), %ecx
addl %ecx, %eax
addl 0x10(%rsp), %eax
movl %eax, 0xc(%rsp)
vmovsd 0xb0(%rsp), %xmm0
imull $0x3, 0x14(%rsp), %eax
addl 0x10(%rsp), %eax
cltq
vmovsd 0x30(%rsp,%rax,8), %xmm2
vmovsd 0xa8(%rsp), %xmm1
movslq 0x10(%rsp), %rax
vmulsd 0x80(%rsp,%rax,8), %xmm1, %xmm1
movslq 0x14(%rsp), %rax
vmulsd 0x80(%rsp,%rax,8), %xmm1, %xmm1
vmulsd %xmm2, %xmm0, %xmm0
vaddsd %xmm1, %xmm0, %xmm0
vmovsd %xmm0, (%rsp)
movq 0xc0(%rsp), %rdi
movslq 0xc(%rsp), %rsi
callq 0x6e40
vmovsd (%rsp), %xmm0
vmovsd %xmm0, (%rax)
movl 0x10(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x10(%rsp)
jmp 0x10388
jmp 0x10423
movl 0x14(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x14(%rsp)
jmp 0x10375
addq $0xc8, %rsp
retq
nopl (%rax,%rax)
|
_ZN6mujoco6plugin10elasticity12MetricTensorINS1_9Stencil2DEEEvRSt6vectorIdSaIdEEiddPA9_Kd:
sub rsp, 0C8h
mov [rsp+0C8h+var_8], rdi
mov [rsp+0C8h+var_C], esi
vmovsd [rsp+0C8h+var_18], xmm0
vmovsd [rsp+0C8h+var_20], xmm1
mov [rsp+0C8h+var_28], rdx
lea rdi, [rsp+0C8h+var_48]
xor esi, esi
mov edx, 18h
call _memset
lea rdi, [rsp+0C8h+var_98]
xor esi, esi
mov edx, 48h ; 'H'
call _memset
mov [rsp+0C8h+var_9C], 0
loc_1020D:
cmp [rsp+0C8h+var_9C], 3
jge short loc_10279
mov [rsp+0C8h+var_A0], 0
loc_1021C:
cmp [rsp+0C8h+var_A0], 3
jge short loc_1026A
mov rax, [rsp+0C8h+var_28]
movsxd rcx, [rsp+0C8h+var_9C]
imul rcx, 48h ; 'H'
add rax, rcx
mov ecx, [rsp+0C8h+var_A0]
shl ecx, 2
movsxd rcx, ecx
vmovsd xmm0, qword ptr [rax+rcx*8]
movsxd rax, [rsp+0C8h+var_9C]
vaddsd xmm0, xmm0, [rsp+rax*8+0C8h+var_48]
vmovsd [rsp+rax*8+0C8h+var_48], xmm0
mov eax, [rsp+0C8h+var_A0]
add eax, 1
mov [rsp+0C8h+var_A0], eax
jmp short loc_1021C
loc_1026A:
jmp short $+2
loc_1026C:
mov eax, [rsp+0C8h+var_9C]
add eax, 1
mov [rsp+0C8h+var_9C], eax
jmp short loc_1020D
loc_10279:
mov [rsp+0C8h+var_A4], 0
loc_10281:
cmp [rsp+0C8h+var_A4], 3
jge loc_1036D
mov [rsp+0C8h+var_A8], 0
loc_10294:
cmp [rsp+0C8h+var_A8], 3
jge loc_1035B
mov [rsp+0C8h+var_AC], 0
loc_102A7:
cmp [rsp+0C8h+var_AC], 3
jge loc_10349
mov [rsp+0C8h+var_B0], 0
loc_102BA:
cmp [rsp+0C8h+var_B0], 3
jge short loc_10337
mov rax, [rsp+0C8h+var_28]
movsxd rcx, [rsp+0C8h+var_A4]
imul rcx, 48h ; 'H'
add rax, rcx
imul ecx, [rsp+0C8h+var_AC], 3
add ecx, [rsp+0C8h+var_B0]
movsxd rcx, ecx
vmovsd xmm0, qword ptr [rax+rcx*8]
mov rax, [rsp+0C8h+var_28]
movsxd rcx, [rsp+0C8h+var_A8]
imul rcx, 48h ; 'H'
add rax, rcx
imul ecx, [rsp+0C8h+var_B0], 3
add ecx, [rsp+0C8h+var_AC]
movsxd rcx, ecx
vmovsd xmm2, qword ptr [rax+rcx*8]
imul eax, [rsp+0C8h+var_A4], 3
add eax, [rsp+0C8h+var_A8]
cdqe
vmovsd xmm1, [rsp+rax*8+0C8h+var_98]
vmulsd xmm0, xmm0, xmm2
vaddsd xmm0, xmm0, xmm1
vmovsd [rsp+rax*8+0C8h+var_98], xmm0
mov eax, [rsp+0C8h+var_B0]
add eax, 1
mov [rsp+0C8h+var_B0], eax
jmp short loc_102BA
loc_10337:
jmp short $+2
loc_10339:
mov eax, [rsp+0C8h+var_AC]
add eax, 1
mov [rsp+0C8h+var_AC], eax
jmp loc_102A7
loc_10349:
jmp short $+2
loc_1034B:
mov eax, [rsp+0C8h+var_A8]
add eax, 1
mov [rsp+0C8h+var_A8], eax
jmp loc_10294
loc_1035B:
jmp short $+2
loc_1035D:
mov eax, [rsp+0C8h+var_A4]
add eax, 1
mov [rsp+0C8h+var_A4], eax
jmp loc_10281
loc_1036D:
mov [rsp+0C8h+var_B4], 0
loc_10375:
cmp [rsp+0C8h+var_B4], 3
jge loc_10433
mov [rsp+0C8h+var_B8], 0
loc_10388:
cmp [rsp+0C8h+var_B8], 3
jge loc_10421
imul eax, [rsp+0C8h+var_C], 9
imul ecx, [rsp+0C8h+var_B4], 3
add eax, ecx
add eax, [rsp+0C8h+var_B8]
mov [rsp+0C8h+var_BC], eax
vmovsd xmm0, [rsp+0C8h+var_18]
imul eax, [rsp+0C8h+var_B4], 3
add eax, [rsp+0C8h+var_B8]
cdqe
vmovsd xmm2, [rsp+rax*8+0C8h+var_98]
vmovsd xmm1, [rsp+0C8h+var_20]
movsxd rax, [rsp+0C8h+var_B8]
vmulsd xmm1, xmm1, [rsp+rax*8+0C8h+var_48]
movsxd rax, [rsp+0C8h+var_B4]
vmulsd xmm1, xmm1, [rsp+rax*8+0C8h+var_48]
vmulsd xmm0, xmm0, xmm2
vaddsd xmm0, xmm0, xmm1
vmovsd [rsp+0C8h+var_C8], xmm0
mov rdi, [rsp+0C8h+var_8]
movsxd rsi, [rsp+0C8h+var_BC]
call _ZNSt6vectorIdSaIdEEixEm; std::vector<double>::operator[](ulong)
vmovsd xmm0, [rsp+0C8h+var_C8]
vmovsd qword ptr [rax], xmm0
mov eax, [rsp+0C8h+var_B8]
add eax, 1
mov [rsp+0C8h+var_B8], eax
jmp loc_10388
loc_10421:
jmp short $+2
loc_10423:
mov eax, [rsp+0C8h+var_B4]
add eax, 1
mov [rsp+0C8h+var_B4], eax
jmp loc_10375
loc_10433:
add rsp, 0C8h
retn
|
long long mujoco::plugin::elasticity::MetricTensor<mujoco::plugin::elasticity::Stencil2D>(
_QWORD *a1,
int a2,
long long a3,
__m128 _XMM0,
__m128 _XMM1)
{
long long result; // rax
int kk; // [rsp+10h] [rbp-B8h]
int jj; // [rsp+14h] [rbp-B4h]
int ii; // [rsp+18h] [rbp-B0h]
int n; // [rsp+1Ch] [rbp-ACh]
int m; // [rsp+20h] [rbp-A8h]
int k; // [rsp+24h] [rbp-A4h]
int j; // [rsp+28h] [rbp-A0h]
int i; // [rsp+2Ch] [rbp-9Ch]
_QWORD v40[10]; // [rsp+30h] [rbp-98h] BYREF
_QWORD v41[4]; // [rsp+80h] [rbp-48h] BYREF
long long v42; // [rsp+A0h] [rbp-28h]
int v45; // [rsp+BCh] [rbp-Ch]
_QWORD *v46; // [rsp+C0h] [rbp-8h]
v46 = a1;
v45 = a2;
__asm
{
vmovsd [rsp+0C8h+var_18], xmm0
vmovsd [rsp+0C8h+var_20], xmm1
}
v42 = a3;
memset(v41, 0LL, 24LL);
result = memset(v40, 0LL, 72LL);
for ( i = 0; i < 3; ++i )
{
for ( j = 0; j < 3; ++j )
{
_RAX = 72LL * i + v42;
_RCX = 4 * j;
__asm { vmovsd xmm0, qword ptr [rax+rcx*8] }
_RAX = i;
__asm
{
vaddsd xmm0, xmm0, [rsp+rax*8+0C8h+var_48]
vmovsd [rsp+rax*8+0C8h+var_48], xmm0
}
}
result = (unsigned int)(i + 1);
}
for ( k = 0; k < 3; ++k )
{
for ( m = 0; m < 3; ++m )
{
for ( n = 0; n < 3; ++n )
{
for ( ii = 0; ii < 3; ++ii )
{
_RAX = 72LL * k + v42;
_RCX = ii + 3 * n;
__asm { vmovsd xmm0, qword ptr [rax+rcx*8] }
_RAX = 72LL * m + v42;
_RCX = n + 3 * ii;
__asm { vmovsd xmm2, qword ptr [rax+rcx*8] }
_RAX = m + 3 * k;
__asm
{
vmovsd xmm1, [rsp+rax*8+0C8h+var_98]
vmulsd xmm0, xmm0, xmm2
vaddsd xmm0, xmm0, xmm1
vmovsd [rsp+rax*8+0C8h+var_98], xmm0
}
}
}
}
result = (unsigned int)(k + 1);
}
for ( jj = 0; jj < 3; ++jj )
{
for ( kk = 0; kk < 3; ++kk )
{
__asm { vmovsd xmm0, [rsp+0C8h+var_18] }
_RAX = kk + 3 * jj;
__asm
{
vmovsd xmm2, [rsp+rax*8+0C8h+var_98]
vmovsd xmm1, [rsp+0C8h+var_20]
vmulsd xmm1, xmm1, [rsp+rax*8+0C8h+var_48]
vmulsd xmm1, xmm1, [rsp+rax*8+0C8h+var_48]
vmulsd xmm0, xmm0, xmm2
vaddsd xmm0, xmm0, xmm1
vmovsd [rsp+0C8h+var_C8], xmm0
}
_RAX = std::vector<double>::operator[](v46, kk + 3 * jj + 9 * v45);
__asm
{
vmovsd xmm0, [rsp+0C8h+var_C8]
vmovsd qword ptr [rax], xmm0
}
}
result = (unsigned int)(jj + 1);
}
return result;
}
|
MetricTensor<mujoco::plugin::elasticity::Stencil2D>:
SUB RSP,0xc8
MOV qword ptr [RSP + 0xc0],RDI
MOV dword ptr [RSP + 0xbc],ESI
VMOVSD qword ptr [RSP + 0xb0],XMM0
VMOVSD qword ptr [RSP + 0xa8],XMM1
MOV qword ptr [RSP + 0xa0],RDX
LEA RDI,[RSP + 0x80]
XOR ESI,ESI
MOV EDX,0x18
CALL 0x001052d0
LEA RDI,[RSP + 0x30]
XOR ESI,ESI
MOV EDX,0x48
CALL 0x001052d0
MOV dword ptr [RSP + 0x2c],0x0
LAB_0011020d:
CMP dword ptr [RSP + 0x2c],0x3
JGE 0x00110279
MOV dword ptr [RSP + 0x28],0x0
LAB_0011021c:
CMP dword ptr [RSP + 0x28],0x3
JGE 0x0011026a
MOV RAX,qword ptr [RSP + 0xa0]
MOVSXD RCX,dword ptr [RSP + 0x2c]
IMUL RCX,RCX,0x48
ADD RAX,RCX
MOV ECX,dword ptr [RSP + 0x28]
SHL ECX,0x2
MOVSXD RCX,ECX
VMOVSD XMM0,qword ptr [RAX + RCX*0x8]
MOVSXD RAX,dword ptr [RSP + 0x2c]
VADDSD XMM0,XMM0,qword ptr [RSP + RAX*0x8 + 0x80]
VMOVSD qword ptr [RSP + RAX*0x8 + 0x80],XMM0
MOV EAX,dword ptr [RSP + 0x28]
ADD EAX,0x1
MOV dword ptr [RSP + 0x28],EAX
JMP 0x0011021c
LAB_0011026a:
JMP 0x0011026c
LAB_0011026c:
MOV EAX,dword ptr [RSP + 0x2c]
ADD EAX,0x1
MOV dword ptr [RSP + 0x2c],EAX
JMP 0x0011020d
LAB_00110279:
MOV dword ptr [RSP + 0x24],0x0
LAB_00110281:
CMP dword ptr [RSP + 0x24],0x3
JGE 0x0011036d
MOV dword ptr [RSP + 0x20],0x0
LAB_00110294:
CMP dword ptr [RSP + 0x20],0x3
JGE 0x0011035b
MOV dword ptr [RSP + 0x1c],0x0
LAB_001102a7:
CMP dword ptr [RSP + 0x1c],0x3
JGE 0x00110349
MOV dword ptr [RSP + 0x18],0x0
LAB_001102ba:
CMP dword ptr [RSP + 0x18],0x3
JGE 0x00110337
MOV RAX,qword ptr [RSP + 0xa0]
MOVSXD RCX,dword ptr [RSP + 0x24]
IMUL RCX,RCX,0x48
ADD RAX,RCX
IMUL ECX,dword ptr [RSP + 0x1c],0x3
ADD ECX,dword ptr [RSP + 0x18]
MOVSXD RCX,ECX
VMOVSD XMM0,qword ptr [RAX + RCX*0x8]
MOV RAX,qword ptr [RSP + 0xa0]
MOVSXD RCX,dword ptr [RSP + 0x20]
IMUL RCX,RCX,0x48
ADD RAX,RCX
IMUL ECX,dword ptr [RSP + 0x18],0x3
ADD ECX,dword ptr [RSP + 0x1c]
MOVSXD RCX,ECX
VMOVSD XMM2,qword ptr [RAX + RCX*0x8]
IMUL EAX,dword ptr [RSP + 0x24],0x3
ADD EAX,dword ptr [RSP + 0x20]
CDQE
VMOVSD XMM1,qword ptr [RSP + RAX*0x8 + 0x30]
VMULSD XMM0,XMM0,XMM2
VADDSD XMM0,XMM0,XMM1
VMOVSD qword ptr [RSP + RAX*0x8 + 0x30],XMM0
MOV EAX,dword ptr [RSP + 0x18]
ADD EAX,0x1
MOV dword ptr [RSP + 0x18],EAX
JMP 0x001102ba
LAB_00110337:
JMP 0x00110339
LAB_00110339:
MOV EAX,dword ptr [RSP + 0x1c]
ADD EAX,0x1
MOV dword ptr [RSP + 0x1c],EAX
JMP 0x001102a7
LAB_00110349:
JMP 0x0011034b
LAB_0011034b:
MOV EAX,dword ptr [RSP + 0x20]
ADD EAX,0x1
MOV dword ptr [RSP + 0x20],EAX
JMP 0x00110294
LAB_0011035b:
JMP 0x0011035d
LAB_0011035d:
MOV EAX,dword ptr [RSP + 0x24]
ADD EAX,0x1
MOV dword ptr [RSP + 0x24],EAX
JMP 0x00110281
LAB_0011036d:
MOV dword ptr [RSP + 0x14],0x0
LAB_00110375:
CMP dword ptr [RSP + 0x14],0x3
JGE 0x00110433
MOV dword ptr [RSP + 0x10],0x0
LAB_00110388:
CMP dword ptr [RSP + 0x10],0x3
JGE 0x00110421
IMUL EAX,dword ptr [RSP + 0xbc],0x9
IMUL ECX,dword ptr [RSP + 0x14],0x3
ADD EAX,ECX
ADD EAX,dword ptr [RSP + 0x10]
MOV dword ptr [RSP + 0xc],EAX
VMOVSD XMM0,qword ptr [RSP + 0xb0]
IMUL EAX,dword ptr [RSP + 0x14],0x3
ADD EAX,dword ptr [RSP + 0x10]
CDQE
VMOVSD XMM2,qword ptr [RSP + RAX*0x8 + 0x30]
VMOVSD XMM1,qword ptr [RSP + 0xa8]
MOVSXD RAX,dword ptr [RSP + 0x10]
VMULSD XMM1,XMM1,qword ptr [RSP + RAX*0x8 + 0x80]
MOVSXD RAX,dword ptr [RSP + 0x14]
VMULSD XMM1,XMM1,qword ptr [RSP + RAX*0x8 + 0x80]
VMULSD XMM0,XMM0,XMM2
VADDSD XMM0,XMM0,XMM1
VMOVSD qword ptr [RSP],XMM0
MOV RDI,qword ptr [RSP + 0xc0]
MOVSXD RSI,dword ptr [RSP + 0xc]
CALL 0x00106e40
VMOVSD XMM0,qword ptr [RSP]
VMOVSD qword ptr [RAX],XMM0
MOV EAX,dword ptr [RSP + 0x10]
ADD EAX,0x1
MOV dword ptr [RSP + 0x10],EAX
JMP 0x00110388
LAB_00110421:
JMP 0x00110423
LAB_00110423:
MOV EAX,dword ptr [RSP + 0x14]
ADD EAX,0x1
MOV dword ptr [RSP + 0x14],EAX
JMP 0x00110375
LAB_00110433:
ADD RSP,0xc8
RET
|
/* void
mujoco::plugin::elasticity::MetricTensor<mujoco::plugin::elasticity::Stencil2D>(std::vector<double,
std::allocator<double> >&, int, double, double, double const (*) [9]) */
void mujoco::plugin::elasticity::MetricTensor<mujoco::plugin::elasticity::Stencil2D>
(vector *param_1,int param_2,double param_3,double param_4,double *param_5)
{
double dVar1;
double dVar2;
double dVar3;
int iVar4;
double *pdVar5;
int local_b8;
int local_b4;
int local_b0;
int local_ac;
int local_a8;
int local_a4;
int local_a0;
int local_9c;
double local_98 [10];
double local_48 [4];
double *local_28;
double local_20;
double local_18;
int local_c;
vector *local_8;
local_28 = param_5;
local_20 = param_4;
local_18 = param_3;
local_c = param_2;
local_8 = param_1;
memset(local_48,0,0x18);
memset(local_98,0,0x48);
for (local_9c = 0; local_9c < 3; local_9c = local_9c + 1) {
for (local_a0 = 0; local_a0 < 3; local_a0 = local_a0 + 1) {
local_48[local_9c] = local_28[(long)local_9c * 9 + (long)(local_a0 << 2)] + local_48[local_9c]
;
}
}
for (local_a4 = 0; local_a4 < 3; local_a4 = local_a4 + 1) {
for (local_a8 = 0; local_a8 < 3; local_a8 = local_a8 + 1) {
for (local_ac = 0; local_ac < 3; local_ac = local_ac + 1) {
for (local_b0 = 0; local_b0 < 3; local_b0 = local_b0 + 1) {
iVar4 = local_a4 * 3 + local_a8;
local_98[iVar4] =
local_28[(long)local_a4 * 9 + (long)(local_ac * 3 + local_b0)] *
local_28[(long)local_a8 * 9 + (long)(local_b0 * 3 + local_ac)] + local_98[iVar4];
}
}
}
}
for (local_b4 = 0; local_b4 < 3; local_b4 = local_b4 + 1) {
for (local_b8 = 0; local_b8 < 3; local_b8 = local_b8 + 1) {
dVar2 = local_20 * local_48[local_b8];
dVar1 = local_48[local_b4];
dVar3 = local_18 * local_98[local_b4 * 3 + local_b8];
pdVar5 = (double *)
std::vector<double,std::allocator<double>>::operator[]
((vector<double,std::allocator<double>> *)local_8,
(long)(local_c * 9 + local_b4 * 3 + local_b8));
*pdVar5 = dVar3 + dVar2 * dVar1;
}
}
return;
}
|
|
66,279 |
js_array_reduce
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_array_reduce(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv, int special)
{
JSValue obj, val, index_val, acc, acc1;
JSValue args[4];
JSValue func;
int64_t len, k, k1;
int present;
acc = JS_UNDEFINED;
val = JS_UNDEFINED;
if (special & special_TA) {
obj = js_dup(this_val);
len = js_typed_array_get_length_unsafe(ctx, obj);
if (len < 0)
goto exception;
} else {
obj = JS_ToObject(ctx, this_val);
if (js_get_length64(ctx, &len, obj))
goto exception;
}
func = argv[0];
if (check_function(ctx, func))
goto exception;
k = 0;
if (argc > 1) {
acc = js_dup(argv[1]);
} else {
for(;;) {
if (k >= len) {
JS_ThrowTypeError(ctx, "empty array");
goto exception;
}
k1 = (special & special_reduceRight) ? len - k - 1 : k;
k++;
if (special & special_TA) {
acc = JS_GetPropertyInt64(ctx, obj, k1);
if (JS_IsException(acc))
goto exception;
break;
} else {
present = JS_TryGetPropertyInt64(ctx, obj, k1, &acc);
if (present < 0)
goto exception;
if (present)
break;
}
}
}
for (; k < len; k++) {
k1 = (special & special_reduceRight) ? len - k - 1 : k;
if (special & special_TA) {
val = JS_GetPropertyInt64(ctx, obj, k1);
if (JS_IsException(val))
goto exception;
present = TRUE;
} else {
present = JS_TryGetPropertyInt64(ctx, obj, k1, &val);
if (present < 0)
goto exception;
}
if (present) {
index_val = js_int64(k1);
args[0] = acc;
args[1] = val;
args[2] = index_val;
args[3] = obj;
acc1 = JS_Call(ctx, func, JS_UNDEFINED, 4, args);
JS_FreeValue(ctx, index_val);
JS_FreeValue(ctx, val);
val = JS_UNDEFINED;
if (JS_IsException(acc1))
goto exception;
JS_FreeValue(ctx, acc);
acc = acc1;
}
}
JS_FreeValue(ctx, obj);
return acc;
exception:
JS_FreeValue(ctx, acc);
JS_FreeValue(ctx, val);
JS_FreeValue(ctx, obj);
return JS_EXCEPTION;
}
|
O2
|
c
|
js_array_reduce:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %r8, %r13
movl %ecx, %ebx
movq %rdx, %r12
movq %rsi, %r14
andl $0x0, 0x10(%rsp)
movq %rdi, %r15
andl $0x0, 0x30(%rsp)
pushq $0x3
popq %rax
movq %rax, 0x18(%rsp)
movq %rax, 0x40(%rsp)
movq %rax, 0x38(%rsp)
movl %r9d, 0x8(%rsp)
testb $0x8, %r9b
jne 0x6285b
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x20b92
movq %rax, %r14
movq %rdx, %r12
leaq 0x50(%rsp), %rsi
movq %r15, %rdi
movq %rax, %rdx
movq %r12, %rcx
callq 0x1cc43
testl %eax, %eax
jne 0x6289b
jmp 0x6287d
cmpl $-0x9, %r12d
jb 0x62864
incl (%r14)
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x64e60
cltq
movq %rax, 0x50(%rsp)
testl %eax, %eax
js 0x6289b
movl %ebx, 0x48(%rsp)
movq (%r13), %rbx
movq 0x8(%r13), %rbp
movq %r15, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
callq 0x3949a
testl %eax, %eax
je 0x628e8
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r15, %rdi
callq 0x1801e
movq 0x30(%rsp), %rsi
movq %r15, %rdi
movq 0x40(%rsp), %rdx
callq 0x1801e
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x1801e
pushq $0x6
popq %r13
xorl %eax, %eax
movq %r13, %rdx
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbp, 0x70(%rsp)
cmpl $0x1, 0x48(%rsp)
movq %rbx, 0x78(%rsp)
jle 0x6292f
movq 0x10(%r13), %rax
movq 0x18(%r13), %r13
cmpl $-0x9, %r13d
jb 0x62909
incl (%rax)
movq %rax, 0x28(%rsp)
movq %rax, 0x10(%rsp)
movq %r13, 0x18(%rsp)
movq 0x50(%rsp), %rbp
movl 0x8(%rsp), %eax
andl $0x1, %eax
movl %eax, 0xc(%rsp)
xorl %edx, %edx
jmp 0x62a1a
movq %r15, %rbp
movq %r14, %r13
movq 0x50(%rsp), %rax
movl 0x8(%rsp), %ecx
andl $0x1, %ecx
movl %ecx, 0xc(%rsp)
xorl %r14d, %r14d
testq %rax, %rax
movl $0x0, %r15d
movq %rax, 0x20(%rsp)
cmovgq %rax, %r15
pushq $-0x1
popq %rcx
cmpq %r14, %r15
je 0x629c3
movq %rcx, %rbx
movq 0x20(%rsp), %rax
addq %rax, %rcx
cmpl $0x0, 0xc(%rsp)
cmoveq %r14, %rcx
testb $0x8, 0x8(%rsp)
jne 0x629df
movq %rbp, %rdi
movq %r13, %rsi
movq %r12, %rdx
leaq 0x10(%rsp), %r8
callq 0x42688
testl %eax, %eax
js 0x62bf0
leaq -0x1(%rbx), %rcx
incq %r14
testl %eax, %eax
je 0x6295d
movq %rbx, %rdx
movq 0x10(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x18(%rsp), %rax
negq %rdx
movq %r13, %r14
movq %rax, %r13
movq %rbp, %r15
jmp 0x62a15
leaq 0x2632c(%rip), %rsi # 0x88cf6
movq %rbp, %r15
movq %rbp, %rdi
xorl %eax, %eax
callq 0x1c64d
movq %r13, %r14
jmp 0x6289b
movq %rbp, %r15
movq %rbp, %rdi
movq %r13, %r14
movq %r13, %rsi
movq %r12, %rdx
callq 0x1e178
movq %rdx, %r13
movq %rax, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
cmpl $0x6, %r13d
je 0x6289b
movq %rax, 0x28(%rsp)
movq %rbx, %rdx
negq %rdx
movq 0x20(%rsp), %rbp
movq %rdx, %rbx
notq %rbx
addq %rbp, %rbx
pushq $0x3
popq %rax
movq %rax, 0x40(%rsp)
movq %r14, 0x60(%rsp)
movq %r12, 0x58(%rsp)
movq %rbp, 0x20(%rsp)
cmpq %rbp, %rdx
jge 0x62bc9
cmpl $0x0, 0xc(%rsp)
movq %rbx, 0x88(%rsp)
movq %rdx, 0x48(%rsp)
cmoveq %rdx, %rbx
testb $0x8, 0x8(%rsp)
jne 0x62a98
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %rbx, %rcx
leaq 0x30(%rsp), %r8
callq 0x42688
testl %eax, %eax
js 0x62bfb
je 0x62bb1
movq %r13, 0x68(%rsp)
movq 0x30(%rsp), %rax
movq %r12, %r13
movq 0x38(%rsp), %r12
jmp 0x62ac8
movq %r13, 0x68(%rsp)
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x1e178
movq %r12, %r13
movq %rdx, %r12
movq %rax, 0x30(%rsp)
movq %rdx, 0x38(%rsp)
cmpl $0x6, %r12d
je 0x62c0a
movq %rax, 0x80(%rsp)
movq %rbx, %rdi
callq 0x20a0b
movq %rax, %rbp
movq %r14, %rax
movq %rdx, %r14
movups 0x10(%rsp), %xmm0
movaps %xmm0, 0x90(%rsp)
movups 0x30(%rsp), %xmm0
leaq 0xa0(%rsp), %rcx
movups %xmm0, (%rcx)
movq %rbp, 0xb0(%rsp)
movq %rdx, 0xb8(%rsp)
movq %rax, 0xc0(%rsp)
movq %r13, 0xc8(%rsp)
leaq 0x90(%rsp), %rax
movq %rax, (%rsp)
movq %r15, %rdi
movq 0x78(%rsp), %rsi
movq 0x70(%rsp), %rdx
xorl %ecx, %ecx
pushq $0x3
popq %r8
pushq $0x4
popq %r9
callq 0x21eb6
movq %rax, %rbx
movq %rdx, %r13
movq %r15, %rdi
movq %rbp, %rsi
movq %r14, %rdx
callq 0x1801e
movq %r15, %rdi
movq 0x80(%rsp), %rsi
movq %r12, %rdx
callq 0x1801e
andl $0x0, 0x30(%rsp)
movq $0x3, 0x38(%rsp)
cmpl $0x6, %r13d
je 0x62be1
movq %r15, %rdi
movq 0x28(%rsp), %rsi
movq 0x68(%rsp), %rdx
callq 0x1801e
movq %rbx, 0x10(%rsp)
movq %r13, 0x18(%rsp)
movq %rbx, 0x28(%rsp)
movq 0x58(%rsp), %r12
movq 0x60(%rsp), %r14
movq 0x20(%rsp), %rbp
movq 0x48(%rsp), %rdx
incq %rdx
movq 0x88(%rsp), %rbx
decq %rbx
jmp 0x62a3a
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x1801e
movq 0x28(%rsp), %rax
jmp 0x628d3
movq 0x58(%rsp), %r12
movq 0x60(%rsp), %r14
jmp 0x6289b
movq %r13, %r14
movq %rbp, %r15
jmp 0x6289b
movq 0x38(%rsp), %rax
movq %rax, 0x40(%rsp)
jmp 0x6289b
movq %r12, 0x40(%rsp)
movq %r13, %r12
jmp 0x6289b
|
js_array_reduce:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0D8h
mov r13, r8
mov ebx, ecx
mov r12, rdx
mov r14, rsi
and dword ptr [rsp+108h+var_F8], 0
mov r15, rdi
and dword ptr [rsp+108h+var_D8], 0
push 3
pop rax
mov qword ptr [rsp+108h+var_F8+8], rax
mov [rsp+108h+var_C8], rax
mov qword ptr [rsp+108h+var_D8+8], rax
mov [rsp+108h+var_100], r9d
test r9b, 8
jnz short loc_6285B
mov rdi, r15
mov rsi, r14
mov rdx, r12
call JS_ToObject
mov r14, rax
mov r12, rdx
lea rsi, [rsp+108h+var_B8]
mov rdi, r15
mov rdx, rax
mov rcx, r12
call js_get_length64
test eax, eax
jnz short loc_6289B
jmp short loc_6287D
loc_6285B:
cmp r12d, 0FFFFFFF7h
jb short loc_62864
inc dword ptr [r14]
loc_62864:
mov rdi, r15
mov rsi, r14
mov rdx, r12
call js_typed_array_get_length_unsafe
cdqe
mov [rsp+108h+var_B8], rax
test eax, eax
js short loc_6289B
loc_6287D:
mov dword ptr [rsp+108h+var_C0], ebx
mov rbx, [r13+0]
mov rbp, [r13+8]
mov rdi, r15
mov rsi, rbx
mov rdx, rbp
call check_function
test eax, eax
jz short loc_628E8
loc_6289B:
mov rsi, qword ptr [rsp+108h+var_F8]
mov rdx, qword ptr [rsp+108h+var_F8+8]
mov rdi, r15
call JS_FreeValue
mov rsi, qword ptr [rsp+108h+var_D8]
mov rdi, r15
mov rdx, [rsp+108h+var_C8]
call JS_FreeValue
mov rdi, r15
mov rsi, r14
mov rdx, r12
call JS_FreeValue
push 6
pop r13
xor eax, eax
loc_628D3:
mov rdx, r13
add rsp, 0D8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_628E8:
mov [rsp+108h+var_98], rbp
cmp dword ptr [rsp+108h+var_C0], 1
mov [rsp+108h+var_90], rbx
jle short loc_6292F
mov rax, [r13+10h]
mov r13, [r13+18h]
cmp r13d, 0FFFFFFF7h
jb short loc_62909
inc dword ptr [rax]
loc_62909:
mov [rsp+108h+var_E0], rax
mov qword ptr [rsp+108h+var_F8], rax
mov qword ptr [rsp+108h+var_F8+8], r13
mov rbp, [rsp+108h+var_B8]
mov eax, [rsp+108h+var_100]
and eax, 1
mov [rsp+108h+var_FC], eax
xor edx, edx
jmp loc_62A1A
loc_6292F:
mov rbp, r15
mov r13, r14
mov rax, [rsp+108h+var_B8]
mov ecx, [rsp+108h+var_100]
and ecx, 1
mov [rsp+108h+var_FC], ecx
xor r14d, r14d
test rax, rax
mov r15d, 0
mov [rsp+108h+var_E8], rax
cmovg r15, rax
push 0FFFFFFFFFFFFFFFFh
pop rcx
loc_6295D:
cmp r15, r14
jz short loc_629C3
mov rbx, rcx
mov rax, [rsp+108h+var_E8]
add rcx, rax
cmp [rsp+108h+var_FC], 0
cmovz rcx, r14
test byte ptr [rsp+108h+var_100], 8
jnz short loc_629DF
mov rdi, rbp
mov rsi, r13
mov rdx, r12
lea r8, [rsp+108h+var_F8]
call JS_TryGetPropertyInt64
test eax, eax
js loc_62BF0
lea rcx, [rbx-1]
inc r14
test eax, eax
jz short loc_6295D
mov rdx, rbx
mov rax, qword ptr [rsp+108h+var_F8]
mov [rsp+108h+var_E0], rax
mov rax, qword ptr [rsp+108h+var_F8+8]
neg rdx
mov r14, r13
mov r13, rax
mov r15, rbp
jmp short loc_62A15
loc_629C3:
lea rsi, aEmptyArray; "empty array"
mov r15, rbp
mov rdi, rbp
xor eax, eax
call JS_ThrowTypeError
mov r14, r13
jmp loc_6289B
loc_629DF:
mov r15, rbp
mov rdi, rbp
mov r14, r13
mov rsi, r13
mov rdx, r12
call JS_GetPropertyInt64
mov r13, rdx
mov qword ptr [rsp+108h+var_F8], rax
mov qword ptr [rsp+108h+var_F8+8], rdx
cmp r13d, 6
jz loc_6289B
mov [rsp+108h+var_E0], rax
mov rdx, rbx
neg rdx
loc_62A15:
mov rbp, [rsp+108h+var_E8]
loc_62A1A:
mov rbx, rdx
not rbx
add rbx, rbp
push 3
pop rax
mov [rsp+108h+var_C8], rax
mov [rsp+108h+var_A8], r14
mov [rsp+108h+var_B0], r12
mov [rsp+108h+var_E8], rbp
loc_62A3A:
cmp rdx, rbp
jge loc_62BC9
cmp [rsp+108h+var_FC], 0
mov [rsp+108h+var_80], rbx
mov [rsp+108h+var_C0], rdx
cmovz rbx, rdx
test byte ptr [rsp+108h+var_100], 8
jnz short loc_62A98
mov rdi, r15
mov rsi, r14
mov rdx, r12
mov rcx, rbx
lea r8, [rsp+108h+var_D8]
call JS_TryGetPropertyInt64
test eax, eax
js loc_62BFB
jz loc_62BB1
mov [rsp+108h+var_A0], r13
mov rax, qword ptr [rsp+108h+var_D8]
mov r13, r12
mov r12, qword ptr [rsp+108h+var_D8+8]
jmp short loc_62AC8
loc_62A98:
mov [rsp+108h+var_A0], r13
mov rdi, r15
mov rsi, r14
mov rdx, r12
mov rcx, rbx
call JS_GetPropertyInt64
mov r13, r12
mov r12, rdx
mov qword ptr [rsp+108h+var_D8], rax
mov qword ptr [rsp+108h+var_D8+8], rdx
cmp r12d, 6
jz loc_62C0A
loc_62AC8:
mov [rsp+108h+var_88], rax
mov rdi, rbx
call js_int64
mov rbp, rax
mov rax, r14
mov r14, rdx
movups xmm0, [rsp+108h+var_F8]
movaps [rsp+108h+var_78], xmm0
movups xmm0, [rsp+108h+var_D8]
lea rcx, [rsp+108h+var_68]
movups xmmword ptr [rcx], xmm0
mov [rsp+108h+var_58], rbp
mov [rsp+108h+var_50], rdx
mov [rsp+108h+var_48], rax
mov [rsp+108h+var_40], r13
lea rax, [rsp+108h+var_78]
mov [rsp+108h+var_108], rax
mov rdi, r15
mov rsi, [rsp+108h+var_90]
mov rdx, [rsp+108h+var_98]
xor ecx, ecx
push 3
pop r8
push 4
pop r9
call JS_Call
mov rbx, rax
mov r13, rdx
mov rdi, r15
mov rsi, rbp
mov rdx, r14
call JS_FreeValue
mov rdi, r15
mov rsi, [rsp+108h+var_88]
mov rdx, r12
call JS_FreeValue
and dword ptr [rsp+108h+var_D8], 0
mov qword ptr [rsp+108h+var_D8+8], 3
cmp r13d, 6
jz short loc_62BE1
mov rdi, r15
mov rsi, [rsp+108h+var_E0]
mov rdx, [rsp+108h+var_A0]
call JS_FreeValue
mov qword ptr [rsp+108h+var_F8], rbx
mov qword ptr [rsp+108h+var_F8+8], r13
mov [rsp+108h+var_E0], rbx
mov r12, [rsp+108h+var_B0]
mov r14, [rsp+108h+var_A8]
mov rbp, [rsp+108h+var_E8]
loc_62BB1:
mov rdx, [rsp+108h+var_C0]
inc rdx
mov rbx, [rsp+108h+var_80]
dec rbx
jmp loc_62A3A
loc_62BC9:
mov rdi, r15
mov rsi, r14
mov rdx, r12
call JS_FreeValue
mov rax, [rsp+108h+var_E0]
jmp loc_628D3
loc_62BE1:
mov r12, [rsp+108h+var_B0]
mov r14, [rsp+108h+var_A8]
jmp loc_6289B
loc_62BF0:
mov r14, r13
mov r15, rbp
jmp loc_6289B
loc_62BFB:
mov rax, qword ptr [rsp+108h+var_D8+8]
mov [rsp+108h+var_C8], rax
jmp loc_6289B
loc_62C0A:
mov [rsp+108h+var_C8], r12
mov r12, r13
jmp loc_6289B
|
long long js_array_reduce(
long long a1,
_DWORD *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)
{
int v15; // ebx
long long v16; // r12
long long v17; // r14
long long v18; // r15
long long v19; // rdx
double v20; // xmm4_8
double v21; // xmm5_8
int length_unsafe; // eax
long long v23; // rbx
long long v24; // rbp
long long v25; // rdx
long long v26; // r8
long long v27; // r9
__m128 v28; // xmm4
__m128 v29; // xmm5
_DWORD *v31; // rax
long long v32; // r13
long long v33; // rbp
signed long long v34; // rdx
long long v35; // r13
unsigned long long v36; // r14
long long v37; // r15
long long v38; // rcx
long long v39; // rbx
unsigned long long v40; // rcx
int PropertyInt64; // eax
__int128 v42; // rax
unsigned long long v43; // rbx
int v44; // eax
__int128 v45; // rax
long long v46; // r13
long long v47; // r12
long long v48; // rbp
long long v49; // rax
long long v50; // rdx
long long v51; // r14
long long v52; // rbx
long long v53; // rdx
char v54; // [rsp+0h] [rbp-108h]
char v55; // [rsp+8h] [rbp-100h]
int v56; // [rsp+Ch] [rbp-FCh]
__int128 v57; // [rsp+10h] [rbp-F8h] BYREF
long long v58; // [rsp+20h] [rbp-E8h]
_DWORD *v59; // [rsp+28h] [rbp-E0h]
__int128 v60; // [rsp+30h] [rbp-D8h] BYREF
long long v61; // [rsp+40h] [rbp-C8h]
signed long long v62; // [rsp+48h] [rbp-C0h]
long long v63; // [rsp+50h] [rbp-B8h] BYREF
long long v64; // [rsp+58h] [rbp-B0h]
long long v65; // [rsp+60h] [rbp-A8h]
long long v66; // [rsp+68h] [rbp-A0h]
long long v67; // [rsp+70h] [rbp-98h]
long long v68; // [rsp+78h] [rbp-90h]
long long v69; // [rsp+80h] [rbp-88h]
unsigned long long v70; // [rsp+88h] [rbp-80h]
_OWORD v71[2]; // [rsp+90h] [rbp-78h] BYREF
long long v72; // [rsp+B0h] [rbp-58h]
long long v73; // [rsp+B8h] [rbp-50h]
long long v74; // [rsp+C0h] [rbp-48h]
long long v75; // [rsp+C8h] [rbp-40h]
v15 = a4;
v16 = a3;
v17 = (long long)a2;
LODWORD(v57) = 0;
v18 = a1;
LODWORD(v60) = 0;
*((_QWORD *)&v57 + 1) = 3LL;
v61 = 3LL;
*((_QWORD *)&v60 + 1) = 3LL;
v55 = a6;
if ( (a6 & 8) != 0 )
{
if ( (unsigned int)a3 >= 0xFFFFFFF7 )
++*a2;
length_unsafe = js_typed_array_get_length_unsafe(a1, a2, a3);
v63 = length_unsafe;
if ( length_unsafe < 0 )
goto LABEL_8;
}
else
{
v17 = JS_ToObject(a1, (long long)a2, a3, a4, (long long)a5, a6, a7, a8, a9, a10, a11, a12, a13, a14);
v16 = v19;
if ( (unsigned int)js_get_length64(a1, &v63, v17, v19) )
goto LABEL_8;
}
LODWORD(v62) = v15;
v23 = *a5;
v24 = a5[1];
if ( !(unsigned int)check_function(a1, *a5, v24, a7, a8, a9, a10, v20, v21, a13, a14) )
{
v67 = v24;
v68 = v23;
if ( (int)v62 > 1 )
{
v31 = (_DWORD *)a5[2];
v32 = a5[3];
if ( (unsigned int)v32 >= 0xFFFFFFF7 )
++*v31;
v59 = v31;
*(_QWORD *)&v57 = v31;
*((_QWORD *)&v57 + 1) = v32;
v33 = v63;
v56 = v55 & 1;
v34 = 0LL;
goto LABEL_27;
}
v35 = v17;
v56 = v55 & 1;
v36 = 0LL;
v37 = 0LL;
v58 = v63;
if ( v63 > 0 )
v37 = v63;
v38 = -1LL;
while ( 1 )
{
if ( v37 == v36 )
{
v18 = a1;
JS_ThrowTypeError(a1, (long long)"empty array", v25, v38, v26, v27, a7, a8, a9, a10, v28, v29, a13, a14, v54);
v17 = v35;
goto LABEL_8;
}
v39 = v38;
v40 = v58 + v38;
if ( (v55 & 1) == 0 )
v40 = v36;
if ( (v55 & 8) != 0 )
break;
PropertyInt64 = JS_TryGetPropertyInt64(a1, v35, v16, v40, (long long)&v57);
if ( PropertyInt64 < 0 )
{
v17 = v35;
v18 = a1;
goto LABEL_8;
}
v38 = v39 - 1;
++v36;
if ( PropertyInt64 )
{
v59 = (_DWORD *)v57;
v34 = -v39;
v17 = v35;
v32 = *((_QWORD *)&v57 + 1);
v18 = a1;
goto LABEL_26;
}
}
v18 = a1;
v17 = v35;
*(_QWORD *)&v42 = JS_GetPropertyInt64(a1, v35, v16, v40);
v32 = *((_QWORD *)&v42 + 1);
v57 = v42;
if ( DWORD2(v42) != 6 )
{
v59 = (_DWORD *)v42;
v34 = -v39;
LABEL_26:
v33 = v58;
LABEL_27:
v43 = v33 + ~v34;
v61 = 3LL;
v65 = v17;
v64 = v16;
v58 = v33;
while ( 2 )
{
if ( v34 >= v33 )
{
JS_FreeValue(v18, v17, v16);
return (long long)v59;
}
v70 = v43;
v62 = v34;
if ( !v56 )
v43 = v34;
if ( (v55 & 8) != 0 )
{
v66 = v32;
*(_QWORD *)&v45 = JS_GetPropertyInt64(v18, v17, v16, v43);
v46 = v16;
v47 = *((_QWORD *)&v45 + 1);
v60 = v45;
if ( DWORD2(v45) == 6 )
{
v61 = *((_QWORD *)&v45 + 1);
v16 = v46;
break;
}
LABEL_36:
v69 = v45;
v48 = js_int64(v43);
v49 = v17;
v51 = v50;
v71[0] = v57;
v71[1] = v60;
v72 = v48;
v73 = v50;
v74 = v49;
v75 = v46;
v52 = JS_Call(v18, v68, v67, 0, 3, 4, (long long)v71);
v32 = v53;
JS_FreeValue(v18, v48, v51);
JS_FreeValue(v18, v69, v47);
LODWORD(v60) = 0;
*((_QWORD *)&v60 + 1) = 3LL;
if ( (_DWORD)v32 == 6 )
{
v16 = v64;
v17 = v65;
break;
}
JS_FreeValue(v18, (long long)v59, v66);
*(_QWORD *)&v57 = v52;
*((_QWORD *)&v57 + 1) = v32;
v59 = (_DWORD *)v52;
v16 = v64;
v17 = v65;
v33 = v58;
}
else
{
v44 = JS_TryGetPropertyInt64(v18, v17, v16, v43, (long long)&v60);
if ( v44 < 0 )
{
v61 = *((_QWORD *)&v60 + 1);
break;
}
if ( v44 )
{
v66 = v32;
*(_QWORD *)&v45 = v60;
v46 = v16;
v47 = *((_QWORD *)&v60 + 1);
goto LABEL_36;
}
}
v34 = v62 + 1;
v43 = v70 - 1;
continue;
}
}
}
LABEL_8:
JS_FreeValue(v18, v57, *((long long *)&v57 + 1));
JS_FreeValue(v18, v60, v61);
JS_FreeValue(v18, v17, v16);
return 0LL;
}
|
js_array_reduce:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xd8
MOV R13,R8
MOV EBX,ECX
MOV R12,RDX
MOV R14,RSI
AND dword ptr [RSP + 0x10],0x0
MOV R15,RDI
AND dword ptr [RSP + 0x30],0x0
PUSH 0x3
POP RAX
MOV qword ptr [RSP + 0x18],RAX
MOV qword ptr [RSP + 0x40],RAX
MOV qword ptr [RSP + 0x38],RAX
MOV dword ptr [RSP + 0x8],R9D
TEST R9B,0x8
JNZ 0x0016285b
MOV RDI,R15
MOV RSI,R14
MOV RDX,R12
CALL 0x00120b92
MOV R14,RAX
MOV R12,RDX
LEA RSI,[RSP + 0x50]
MOV RDI,R15
MOV RDX,RAX
MOV RCX,R12
CALL 0x0011cc43
TEST EAX,EAX
JNZ 0x0016289b
JMP 0x0016287d
LAB_0016285b:
CMP R12D,-0x9
JC 0x00162864
INC dword ptr [R14]
LAB_00162864:
MOV RDI,R15
MOV RSI,R14
MOV RDX,R12
CALL 0x00164e60
CDQE
MOV qword ptr [RSP + 0x50],RAX
TEST EAX,EAX
JS 0x0016289b
LAB_0016287d:
MOV dword ptr [RSP + 0x48],EBX
MOV RBX,qword ptr [R13]
MOV RBP,qword ptr [R13 + 0x8]
MOV RDI,R15
MOV RSI,RBX
MOV RDX,RBP
CALL 0x0013949a
TEST EAX,EAX
JZ 0x001628e8
LAB_0016289b:
MOV RSI,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x18]
MOV RDI,R15
CALL 0x0011801e
MOV RSI,qword ptr [RSP + 0x30]
MOV RDI,R15
MOV RDX,qword ptr [RSP + 0x40]
CALL 0x0011801e
MOV RDI,R15
MOV RSI,R14
MOV RDX,R12
CALL 0x0011801e
PUSH 0x6
POP R13
XOR EAX,EAX
LAB_001628d3:
MOV RDX,R13
ADD RSP,0xd8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001628e8:
MOV qword ptr [RSP + 0x70],RBP
CMP dword ptr [RSP + 0x48],0x1
MOV qword ptr [RSP + 0x78],RBX
JLE 0x0016292f
MOV RAX,qword ptr [R13 + 0x10]
MOV R13,qword ptr [R13 + 0x18]
CMP R13D,-0x9
JC 0x00162909
INC dword ptr [RAX]
LAB_00162909:
MOV qword ptr [RSP + 0x28],RAX
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RSP + 0x18],R13
MOV RBP,qword ptr [RSP + 0x50]
MOV EAX,dword ptr [RSP + 0x8]
AND EAX,0x1
MOV dword ptr [RSP + 0xc],EAX
XOR EDX,EDX
JMP 0x00162a1a
LAB_0016292f:
MOV RBP,R15
MOV R13,R14
MOV RAX,qword ptr [RSP + 0x50]
MOV ECX,dword ptr [RSP + 0x8]
AND ECX,0x1
MOV dword ptr [RSP + 0xc],ECX
XOR R14D,R14D
TEST RAX,RAX
MOV R15D,0x0
MOV qword ptr [RSP + 0x20],RAX
CMOVG R15,RAX
PUSH -0x1
POP RCX
LAB_0016295d:
CMP R15,R14
JZ 0x001629c3
MOV RBX,RCX
MOV RAX,qword ptr [RSP + 0x20]
ADD RCX,RAX
CMP dword ptr [RSP + 0xc],0x0
CMOVZ RCX,R14
TEST byte ptr [RSP + 0x8],0x8
JNZ 0x001629df
MOV RDI,RBP
MOV RSI,R13
MOV RDX,R12
LEA R8,[RSP + 0x10]
CALL 0x00142688
TEST EAX,EAX
JS 0x00162bf0
LEA RCX,[RBX + -0x1]
INC R14
TEST EAX,EAX
JZ 0x0016295d
MOV RDX,RBX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x28],RAX
MOV RAX,qword ptr [RSP + 0x18]
NEG RDX
MOV R14,R13
MOV R13,RAX
MOV R15,RBP
JMP 0x00162a15
LAB_001629c3:
LEA RSI,[0x188cf6]
MOV R15,RBP
MOV RDI,RBP
XOR EAX,EAX
CALL 0x0011c64d
MOV R14,R13
JMP 0x0016289b
LAB_001629df:
MOV R15,RBP
MOV RDI,RBP
MOV R14,R13
MOV RSI,R13
MOV RDX,R12
CALL 0x0011e178
MOV R13,RDX
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RSP + 0x18],RDX
CMP R13D,0x6
JZ 0x0016289b
MOV qword ptr [RSP + 0x28],RAX
MOV RDX,RBX
NEG RDX
LAB_00162a15:
MOV RBP,qword ptr [RSP + 0x20]
LAB_00162a1a:
MOV RBX,RDX
NOT RBX
ADD RBX,RBP
PUSH 0x3
POP RAX
MOV qword ptr [RSP + 0x40],RAX
MOV qword ptr [RSP + 0x60],R14
MOV qword ptr [RSP + 0x58],R12
MOV qword ptr [RSP + 0x20],RBP
LAB_00162a3a:
CMP RDX,RBP
JGE 0x00162bc9
CMP dword ptr [RSP + 0xc],0x0
MOV qword ptr [RSP + 0x88],RBX
MOV qword ptr [RSP + 0x48],RDX
CMOVZ RBX,RDX
TEST byte ptr [RSP + 0x8],0x8
JNZ 0x00162a98
MOV RDI,R15
MOV RSI,R14
MOV RDX,R12
MOV RCX,RBX
LEA R8,[RSP + 0x30]
CALL 0x00142688
TEST EAX,EAX
JS 0x00162bfb
JZ 0x00162bb1
MOV qword ptr [RSP + 0x68],R13
MOV RAX,qword ptr [RSP + 0x30]
MOV R13,R12
MOV R12,qword ptr [RSP + 0x38]
JMP 0x00162ac8
LAB_00162a98:
MOV qword ptr [RSP + 0x68],R13
MOV RDI,R15
MOV RSI,R14
MOV RDX,R12
MOV RCX,RBX
CALL 0x0011e178
MOV R13,R12
MOV R12,RDX
MOV qword ptr [RSP + 0x30],RAX
MOV qword ptr [RSP + 0x38],RDX
CMP R12D,0x6
JZ 0x00162c0a
LAB_00162ac8:
MOV qword ptr [RSP + 0x80],RAX
MOV RDI,RBX
CALL 0x00120a0b
MOV RBP,RAX
MOV RAX,R14
MOV R14,RDX
MOVUPS XMM0,xmmword ptr [RSP + 0x10]
MOVAPS xmmword ptr [RSP + 0x90],XMM0
MOVUPS XMM0,xmmword ptr [RSP + 0x30]
LEA RCX,[RSP + 0xa0]
MOVUPS xmmword ptr [RCX],XMM0
MOV qword ptr [RSP + 0xb0],RBP
MOV qword ptr [RSP + 0xb8],RDX
MOV qword ptr [RSP + 0xc0],RAX
MOV qword ptr [RSP + 0xc8],R13
LEA RAX,[RSP + 0x90]
MOV qword ptr [RSP],RAX
MOV RDI,R15
MOV RSI,qword ptr [RSP + 0x78]
MOV RDX,qword ptr [RSP + 0x70]
XOR ECX,ECX
PUSH 0x3
POP R8
PUSH 0x4
POP R9
CALL 0x00121eb6
MOV RBX,RAX
MOV R13,RDX
MOV RDI,R15
MOV RSI,RBP
MOV RDX,R14
CALL 0x0011801e
MOV RDI,R15
MOV RSI,qword ptr [RSP + 0x80]
MOV RDX,R12
CALL 0x0011801e
AND dword ptr [RSP + 0x30],0x0
MOV qword ptr [RSP + 0x38],0x3
CMP R13D,0x6
JZ 0x00162be1
MOV RDI,R15
MOV RSI,qword ptr [RSP + 0x28]
MOV RDX,qword ptr [RSP + 0x68]
CALL 0x0011801e
MOV qword ptr [RSP + 0x10],RBX
MOV qword ptr [RSP + 0x18],R13
MOV qword ptr [RSP + 0x28],RBX
MOV R12,qword ptr [RSP + 0x58]
MOV R14,qword ptr [RSP + 0x60]
MOV RBP,qword ptr [RSP + 0x20]
LAB_00162bb1:
MOV RDX,qword ptr [RSP + 0x48]
INC RDX
MOV RBX,qword ptr [RSP + 0x88]
DEC RBX
JMP 0x00162a3a
LAB_00162bc9:
MOV RDI,R15
MOV RSI,R14
MOV RDX,R12
CALL 0x0011801e
MOV RAX,qword ptr [RSP + 0x28]
JMP 0x001628d3
LAB_00162be1:
MOV R12,qword ptr [RSP + 0x58]
MOV R14,qword ptr [RSP + 0x60]
JMP 0x0016289b
LAB_00162bf0:
MOV R14,R13
MOV R15,RBP
JMP 0x0016289b
LAB_00162bfb:
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x40],RAX
JMP 0x0016289b
LAB_00162c0a:
MOV qword ptr [RSP + 0x40],R12
MOV R12,R13
JMP 0x0016289b
|
int1 [16]
js_array_reduce(int8 param_1,int *param_2,int8 param_3,int4 param_4,
int8 *param_5,ulong param_6)
{
int *piVar1;
int1 auVar2 [16];
int1 auVar3 [16];
int iVar4;
long lVar5;
long lVar6;
ulong uVar7;
ulong uVar8;
ulong uVar9;
long lVar10;
int8 uVar11;
int8 uVar12;
long lVar13;
int8 uVar14;
int1 auVar15 [16];
int1 auVar16 [16];
int1 auVar17 [16];
int1 auVar18 [16];
int1 local_f8 [16];
long local_e8;
int8 local_e0;
int1 local_d8 [16];
int8 local_c8;
ulong local_c0;
long local_b8;
int8 local_b0;
int8 local_a8;
int8 local_a0;
int8 local_98;
int8 local_90;
int8 local_88;
ulong local_80;
int *local_78;
int8 uStack_70;
int4 local_68;
int4 uStack_64;
int4 uStack_60;
int4 uStack_5c;
int1 local_58 [16];
int1 local_48 [16];
auVar15._8_8_ = param_3;
auVar15._0_8_ = param_2;
local_f8._0_8_ = local_f8._0_8_ & 0xffffffff00000000;
local_d8._0_8_ = local_d8._0_8_ & 0xffffffff00000000;
local_f8._8_8_ = 3;
local_c8 = 3;
local_d8._8_8_ = 3;
if ((param_6 & 8) == 0) {
auVar15 = JS_ToObject(param_1,param_2,param_3);
iVar4 = js_get_length64(param_1,&local_b8,auVar15._0_8_,auVar15._8_8_);
auVar17._8_8_ = local_c8;
auVar17._0_8_ = local_d8._0_8_;
if (iVar4 == 0) {
LAB_0016287d:
local_c0 = CONCAT44(local_c0._4_4_,param_4);
uVar12 = *param_5;
uVar11 = param_5[1];
iVar4 = check_function(param_1,uVar12,uVar11);
auVar17._8_8_ = local_c8;
auVar17._0_8_ = local_d8._0_8_;
if (iVar4 == 0) {
local_98 = uVar11;
local_90 = uVar12;
if ((int)local_c0 < 2) {
lVar13 = 0;
local_e8 = local_b8;
lVar10 = 0;
if (0 < local_b8) {
lVar10 = local_b8;
}
lVar6 = -1;
do {
lVar5 = lVar6;
if (lVar10 == lVar13) {
JS_ThrowTypeError(param_1,"empty array");
auVar17._8_8_ = local_c8;
auVar17._0_8_ = local_d8._0_8_;
goto LAB_0016289b;
}
lVar6 = lVar5 + local_e8;
if ((param_6 & 1) == 0) {
lVar6 = lVar13;
}
if ((param_6 & 8) != 0) {
local_f8 = JS_GetPropertyInt64(param_1,auVar15._0_8_,auVar15._8_8_,lVar6);
auVar17._8_8_ = local_c8;
auVar17._0_8_ = local_d8._0_8_;
if (local_f8._8_4_ == 6) goto LAB_0016289b;
break;
}
iVar4 = JS_TryGetPropertyInt64(param_1,auVar15._0_8_,auVar15._8_8_,lVar6,local_f8);
auVar17._8_8_ = local_c8;
auVar17._0_8_ = local_d8._0_8_;
if (iVar4 < 0) goto LAB_0016289b;
lVar13 = lVar13 + 1;
lVar6 = lVar5 + -1;
} while (iVar4 == 0);
uVar7 = -lVar5;
lVar10 = local_e8;
auVar18 = local_f8;
}
else {
piVar1 = *(int **)*(int1 (*) [16])(param_5 + 2);
auVar18 = *(int1 (*) [16])(param_5 + 2);
if (0xfffffff6 < (uint)param_5[3]) {
*piVar1 = *piVar1 + 1;
}
uVar7 = 0;
lVar10 = local_b8;
}
uVar8 = ~uVar7 + lVar10;
local_c8 = 3;
local_e8 = lVar10;
auVar2 = auVar18;
auVar3 = auVar15;
while( true ) {
local_b0 = auVar3._8_8_;
local_a8 = auVar3._0_8_;
local_f8._8_8_ = auVar2._8_8_;
local_e0 = auVar2._0_8_;
uVar11 = auVar15._8_8_;
uVar14 = auVar15._0_8_;
uVar12 = auVar18._8_8_;
local_f8._0_8_ = auVar18._0_8_;
if (lVar10 <= (long)uVar7) break;
uVar9 = uVar8;
if ((param_6 & 1) == 0) {
uVar9 = uVar7;
}
local_c0 = uVar7;
local_80 = uVar8;
if ((param_6 & 8) == 0) {
iVar4 = JS_TryGetPropertyInt64(param_1,uVar14,uVar11,uVar9,local_d8);
auVar2._8_8_ = local_f8._8_8_;
auVar2._0_8_ = local_e0;
auVar18._8_8_ = uVar12;
auVar18._0_8_ = local_f8._0_8_;
if (iVar4 < 0) {
auVar17._8_8_ = local_d8._8_8_;
auVar17._0_8_ = local_d8._0_8_;
goto LAB_0016289b;
}
if (iVar4 != 0) goto LAB_00162ac8;
}
else {
local_a0 = uVar12;
local_d8 = JS_GetPropertyInt64(param_1,uVar14,uVar11,uVar9);
uVar12 = local_a0;
auVar17 = local_d8;
if (local_d8._8_4_ == 6) goto LAB_0016289b;
LAB_00162ac8:
local_a0 = uVar12;
uVar12 = local_d8._8_8_;
local_88 = local_d8._0_8_;
auVar17 = js_int64(uVar9);
local_78 = (int *)local_f8._0_8_;
uStack_70 = local_f8._8_8_;
local_68 = local_d8._0_4_;
uStack_64 = local_d8._4_4_;
uStack_60 = local_d8._8_4_;
uStack_5c = local_d8._12_4_;
local_58 = auVar17;
local_48 = auVar15;
auVar18 = JS_Call(param_1,local_90,local_98,0,3,4,&local_78);
JS_FreeValue(param_1,auVar17._0_8_,auVar17._8_8_);
JS_FreeValue(param_1,local_88,uVar12);
auVar15._8_8_ = local_b0;
auVar15._0_8_ = local_a8;
local_d8._0_8_ = local_d8._0_8_ & 0xffffffff00000000;
auVar17._8_8_ = local_c8;
auVar17._0_8_ = local_d8._0_8_;
local_d8._8_8_ = 3;
if (auVar18._8_4_ == 6) goto LAB_0016289b;
JS_FreeValue(param_1,local_e0,local_a0);
auVar15._8_8_ = local_b0;
auVar15._0_8_ = local_a8;
lVar10 = local_e8;
auVar2 = auVar18;
}
auVar3._8_8_ = local_b0;
auVar3._0_8_ = local_a8;
uVar7 = local_c0 + 1;
uVar8 = local_80 - 1;
}
JS_FreeValue(param_1,uVar14,uVar11);
goto LAB_001628d3;
}
}
}
else {
if (0xfffffff6 < (uint)param_3) {
*param_2 = *param_2 + 1;
}
iVar4 = js_typed_array_get_length_unsafe(param_1,param_2,param_3);
auVar17._8_8_ = local_c8;
auVar17._0_8_ = local_d8._0_8_;
local_b8 = (long)iVar4;
if (-1 < iVar4) goto LAB_0016287d;
}
LAB_0016289b:
local_c8 = auVar17._8_8_;
local_d8._0_8_ = auVar17._0_8_;
JS_FreeValue(param_1,local_f8._0_8_,local_f8._8_8_);
JS_FreeValue(param_1,local_d8._0_8_,local_c8);
JS_FreeValue(param_1,auVar15._0_8_,auVar15._8_8_);
uVar12 = 6;
local_e0 = 0;
LAB_001628d3:
auVar16._8_8_ = uVar12;
auVar16._0_8_ = local_e0;
return auVar16;
}
|
|
66,280 |
ma_SHA1Encode
|
eloqsql/libmariadb/libmariadb/ma_sha1.c
|
static void ma_SHA1Encode(unsigned char *output, uint32 *input, unsigned int len)
{
unsigned int i, j;
for (i = 0, j = 0; j < len; i++, j += 4) {
output[j] = (unsigned char) ((input[i] >> 24) & 0xff);
output[j + 1] = (unsigned char) ((input[i] >> 16) & 0xff);
output[j + 2] = (unsigned char) ((input[i] >> 8) & 0xff);
output[j + 3] = (unsigned char) (input[i] & 0xff);
}
}
|
O0
|
c
|
ma_SHA1Encode:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl $0x0, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
cmpl -0x14(%rbp), %eax
jae 0x64d74
movq -0x10(%rbp), %rax
movl -0x18(%rbp), %ecx
movl (%rax,%rcx,4), %eax
shrl $0x18, %eax
andl $0xff, %eax
movb %al, %dl
movq -0x8(%rbp), %rax
movl -0x1c(%rbp), %ecx
movb %dl, (%rax,%rcx)
movq -0x10(%rbp), %rax
movl -0x18(%rbp), %ecx
movl (%rax,%rcx,4), %eax
shrl $0x10, %eax
andl $0xff, %eax
movb %al, %dl
movq -0x8(%rbp), %rax
movl -0x1c(%rbp), %ecx
addl $0x1, %ecx
movl %ecx, %ecx
movb %dl, (%rax,%rcx)
movq -0x10(%rbp), %rax
movl -0x18(%rbp), %ecx
movl (%rax,%rcx,4), %eax
shrl $0x8, %eax
andl $0xff, %eax
movb %al, %dl
movq -0x8(%rbp), %rax
movl -0x1c(%rbp), %ecx
addl $0x2, %ecx
movl %ecx, %ecx
movb %dl, (%rax,%rcx)
movq -0x10(%rbp), %rax
movl -0x18(%rbp), %ecx
movl (%rax,%rcx,4), %eax
andl $0xff, %eax
movb %al, %dl
movq -0x8(%rbp), %rax
movl -0x1c(%rbp), %ecx
addl $0x3, %ecx
movl %ecx, %ecx
movb %dl, (%rax,%rcx)
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
movl -0x1c(%rbp), %eax
addl $0x4, %eax
movl %eax, -0x1c(%rbp)
jmp 0x64ccd
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
ma_SHA1Encode:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov [rbp+var_18], 0
mov [rbp+var_1C], 0
loc_64CCD:
mov eax, [rbp+var_1C]
cmp eax, [rbp+var_14]
jnb loc_64D74
mov rax, [rbp+var_10]
mov ecx, [rbp+var_18]
mov eax, [rax+rcx*4]
shr eax, 18h
and eax, 0FFh
mov dl, al
mov rax, [rbp+var_8]
mov ecx, [rbp+var_1C]
mov [rax+rcx], dl
mov rax, [rbp+var_10]
mov ecx, [rbp+var_18]
mov eax, [rax+rcx*4]
shr eax, 10h
and eax, 0FFh
mov dl, al
mov rax, [rbp+var_8]
mov ecx, [rbp+var_1C]
add ecx, 1
mov ecx, ecx
mov [rax+rcx], dl
mov rax, [rbp+var_10]
mov ecx, [rbp+var_18]
mov eax, [rax+rcx*4]
shr eax, 8
and eax, 0FFh
mov dl, al
mov rax, [rbp+var_8]
mov ecx, [rbp+var_1C]
add ecx, 2
mov ecx, ecx
mov [rax+rcx], dl
mov rax, [rbp+var_10]
mov ecx, [rbp+var_18]
mov eax, [rax+rcx*4]
and eax, 0FFh
mov dl, al
mov rax, [rbp+var_8]
mov ecx, [rbp+var_1C]
add ecx, 3
mov ecx, ecx
mov [rax+rcx], dl
mov eax, [rbp+var_18]
add eax, 1
mov [rbp+var_18], eax
mov eax, [rbp+var_1C]
add eax, 4
mov [rbp+var_1C], eax
jmp loc_64CCD
loc_64D74:
pop rbp
retn
|
long long ma_SHA1Encode(long long a1, long long a2, unsigned int a3)
{
long long result; // rax
unsigned int i; // [rsp+0h] [rbp-1Ch]
unsigned int v5; // [rsp+4h] [rbp-18h]
v5 = 0;
for ( i = 0; ; i += 4 )
{
result = i;
if ( i >= a3 )
break;
*(_BYTE *)(a1 + i) = HIBYTE(*(_DWORD *)(a2 + 4LL * v5));
*(_BYTE *)(a1 + i + 1) = BYTE2(*(_DWORD *)(a2 + 4LL * v5));
*(_BYTE *)(a1 + i + 2) = BYTE1(*(_DWORD *)(a2 + 4LL * v5));
*(_BYTE *)(a1 + i + 3) = *(_DWORD *)(a2 + 4LL * v5++);
}
return result;
}
|
ma_SHA1Encode:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
MOV dword ptr [RBP + -0x18],0x0
MOV dword ptr [RBP + -0x1c],0x0
LAB_00164ccd:
MOV EAX,dword ptr [RBP + -0x1c]
CMP EAX,dword ptr [RBP + -0x14]
JNC 0x00164d74
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + RCX*0x4]
SHR EAX,0x18
AND EAX,0xff
MOV DL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RBP + -0x1c]
MOV byte ptr [RAX + RCX*0x1],DL
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + RCX*0x4]
SHR EAX,0x10
AND EAX,0xff
MOV DL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RBP + -0x1c]
ADD ECX,0x1
MOV ECX,ECX
MOV byte ptr [RAX + RCX*0x1],DL
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + RCX*0x4]
SHR EAX,0x8
AND EAX,0xff
MOV DL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RBP + -0x1c]
ADD ECX,0x2
MOV ECX,ECX
MOV byte ptr [RAX + RCX*0x1],DL
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + RCX*0x4]
AND EAX,0xff
MOV DL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RBP + -0x1c]
ADD ECX,0x3
MOV ECX,ECX
MOV byte ptr [RAX + RCX*0x1],DL
MOV EAX,dword ptr [RBP + -0x18]
ADD EAX,0x1
MOV dword ptr [RBP + -0x18],EAX
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,0x4
MOV dword ptr [RBP + -0x1c],EAX
JMP 0x00164ccd
LAB_00164d74:
POP RBP
RET
|
void ma_SHA1Encode(long param_1,long param_2,uint param_3)
{
int4 local_24;
int4 local_20;
local_20 = 0;
for (local_24 = 0; local_24 < param_3; local_24 = local_24 + 4) {
*(char *)(param_1 + (ulong)local_24) =
(char)((uint)*(int4 *)(param_2 + (ulong)local_20 * 4) >> 0x18);
*(char *)(param_1 + (ulong)(local_24 + 1)) =
(char)((uint)*(int4 *)(param_2 + (ulong)local_20 * 4) >> 0x10);
*(char *)(param_1 + (ulong)(local_24 + 2)) =
(char)((uint)*(int4 *)(param_2 + (ulong)local_20 * 4) >> 8);
*(char *)(param_1 + (ulong)(local_24 + 3)) =
(char)*(int4 *)(param_2 + (ulong)local_20 * 4);
local_20 = local_20 + 1;
}
return;
}
|
|
66,281 |
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::boundaries nlohmann::json_abi_v3_11_3::detail::dtoa_impl::compute_boundaries<double>(double)
|
monkey531[P]llama/common/json.hpp
|
boundaries compute_boundaries(FloatType value)
{
JSON_ASSERT(std::isfinite(value));
JSON_ASSERT(value > 0);
// Convert the IEEE representation into a diyfp.
//
// If v is denormal:
// value = 0.F * 2^(1 - bias) = ( F) * 2^(1 - bias - (p-1))
// If v is normalized:
// value = 1.F * 2^(E - bias) = (2^(p-1) + F) * 2^(E - bias - (p-1))
static_assert(std::numeric_limits<FloatType>::is_iec559,
"internal error: dtoa_short requires an IEEE-754 floating-point implementation");
constexpr int kPrecision = std::numeric_limits<FloatType>::digits; // = p (includes the hidden bit)
constexpr int kBias = std::numeric_limits<FloatType>::max_exponent - 1 + (kPrecision - 1);
constexpr int kMinExp = 1 - kBias;
constexpr std::uint64_t kHiddenBit = std::uint64_t{1} << (kPrecision - 1); // = 2^(p-1)
using bits_type = typename std::conditional<kPrecision == 24, std::uint32_t, std::uint64_t >::type;
const auto bits = static_cast<std::uint64_t>(reinterpret_bits<bits_type>(value));
const std::uint64_t E = bits >> (kPrecision - 1);
const std::uint64_t F = bits & (kHiddenBit - 1);
const bool is_denormal = E == 0;
const diyfp v = is_denormal
? diyfp(F, kMinExp)
: diyfp(F + kHiddenBit, static_cast<int>(E) - kBias);
// Compute the boundaries m- and m+ of the floating-point value
// v = f * 2^e.
//
// Determine v- and v+, the floating-point predecessor and successor if v,
// respectively.
//
// v- = v - 2^e if f != 2^(p-1) or e == e_min (A)
// = v - 2^(e-1) if f == 2^(p-1) and e > e_min (B)
//
// v+ = v + 2^e
//
// Let m- = (v- + v) / 2 and m+ = (v + v+) / 2. All real numbers _strictly_
// between m- and m+ round to v, regardless of how the input rounding
// algorithm breaks ties.
//
// ---+-------------+-------------+-------------+-------------+--- (A)
// v- m- v m+ v+
//
// -----------------+------+------+-------------+-------------+--- (B)
// v- m- v m+ v+
const bool lower_boundary_is_closer = F == 0 && E > 1;
const diyfp m_plus = diyfp(2 * v.f + 1, v.e - 1);
const diyfp m_minus = lower_boundary_is_closer
? diyfp(4 * v.f - 1, v.e - 2) // (B)
: diyfp(2 * v.f - 1, v.e - 1); // (A)
// Determine the normalized w+ = m+.
const diyfp w_plus = diyfp::normalize(m_plus);
// Determine w- = m- such that e_(w-) = e_(w+).
const diyfp w_minus = diyfp::normalize_to(m_minus, w_plus.e);
return {diyfp::normalize(v), w_minus, w_plus};
}
|
O2
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::boundaries nlohmann::json_abi_v3_11_3::detail::dtoa_impl::compute_boundaries<double>(double):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %xmm0, %rax
movq %rax, %rcx
btrq $0x3f, %rcx
movabsq $0x7ff0000000000000, %rdx # imm = 0x7FF0000000000000
cmpq %rdx, %rcx
jge 0x87df0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x87e0c
movq %rdi, %rbx
movabsq $0x10000000000000, %rcx # imm = 0x10000000000000
decq %rcx
andq %rax, %rcx
movq %rax, %rdx
shrq $0x34, %rdx
movq %rcx, %r14
btsq $0x34, %r14
leal -0x433(%rdx), %esi
testq %rdx, %rdx
cmoveq %rcx, %r14
movl $0xfffffbce, %r15d # imm = 0xFFFFFBCE
cmovnel %esi, %r15d
testq %rcx, %rcx
sete %cl
shrq $0x35, %rax
setne %al
leal -0x1(%r15), %esi
addl $0xfffffbcb, %edx # imm = 0xFFFFFBCB
testb %cl, %al
cmovel %esi, %edx
leaq -0x1(%r14,%r14), %rax
movabsq $0x3fffffffffffff, %rcx # imm = 0x3FFFFFFFFFFFFF
cmoveq %rax, %rcx
leaq 0x8(%rsp), %r12
movq %rcx, (%r12)
movl %edx, 0x8(%r12)
leaq 0x1(,%r14,2), %rdi
callq 0x87f5c
movq %rax, (%rsp)
movl %edx, %ebp
movq %r12, %rdi
movl %edx, %esi
callq 0x87f9c
movq %rax, %r12
movl %edx, %r13d
movq %r14, %rdi
movl %r15d, %esi
callq 0x87f5c
movq %rax, (%rbx)
movl %edx, 0x8(%rbx)
movq %r12, 0x10(%rbx)
movl %r13d, 0x18(%rbx)
movq (%rsp), %rax
movq %rax, 0x20(%rbx)
movl %ebp, 0x28(%rbx)
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x27fd9(%rip), %rdi # 0xafdd0
leaq 0x2801c(%rip), %rdx # 0xafe1a
leaq 0x2d698(%rip), %rcx # 0xb549d
movl $0x42cb, %esi # imm = 0x42CB
jmp 0x87e26
leaq 0x27fbd(%rip), %rdi # 0xafdd0
leaq 0x28000(%rip), %rdx # 0xafe1a
leaq 0x2d795(%rip), %rcx # 0xb55b6
movl $0x42cc, %esi # imm = 0x42CC
xorl %eax, %eax
callq 0x23ef0
|
_ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl18compute_boundariesIdEENS2_10boundariesET_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
movq rax, xmm0
mov rcx, rax
btr rcx, 3Fh ; '?'
mov rdx, 7FF0000000000000h
cmp rcx, rdx
jge loc_87DF0
xorpd xmm1, xmm1
ucomisd xmm0, xmm1
jbe loc_87E0C
mov rbx, rdi
mov rcx, 10000000000000h
dec rcx
and rcx, rax
mov rdx, rax
shr rdx, 34h
mov r14, rcx
bts r14, 34h ; '4'
lea esi, [rdx-433h]
test rdx, rdx
cmovz r14, rcx
mov r15d, 0FFFFFBCEh
cmovnz r15d, esi
test rcx, rcx
setz cl
shr rax, 35h
setnz al
lea esi, [r15-1]
add edx, 0FFFFFBCBh
test al, cl
cmovz edx, esi
lea rax, [r14+r14-1]
mov rcx, 3FFFFFFFFFFFFFh
cmovz rcx, rax
lea r12, [rsp+48h+var_40]
mov [r12], rcx
mov [r12+8], edx
lea rdi, ds:1[r14*2]
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp9normalizeES3_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp)
mov [rsp+48h+var_48], rax
mov ebp, edx
mov rdi, r12
mov esi, edx
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp12normalize_toERKS3_i; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize_to(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&,int)
mov r12, rax
mov r13d, edx
mov rdi, r14
mov esi, r15d
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp9normalizeES3_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp)
mov [rbx], rax
mov [rbx+8], edx
mov [rbx+10h], r12
mov [rbx+18h], r13d
mov rax, [rsp+48h+var_48]
mov [rbx+20h], rax
mov [rbx+28h], ebp
mov rax, rbx
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_87DF0:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aStdIsfiniteVal; "std::isfinite(value)"
mov esi, 42CBh
jmp short loc_87E26
loc_87E0C:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aValue0; "value > 0"
mov esi, 42CCh
loc_87E26:
xor eax, eax
call _ggml_abort
|
long long nlohmann::json_abi_v3_11_3::detail::dtoa_impl::compute_boundaries<double>(
long long a1,
double a2,
long long a3,
long long a4,
long long a5,
long long a6,
long long a7,
long long a8,
long long a9,
long long a10,
long long a11)
{
long long v11; // r14
int v12; // r15d
bool v13; // cl
bool v14; // al
int v15; // edx
bool v16; // zf
long long v17; // rcx
unsigned int v18; // edx
unsigned int v19; // ebp
long long v20; // r12
int v21; // edx
int v22; // r13d
int v23; // edx
long long v25; // rsi
long long v26; // rdx
long long v27; // rcx
long long v28; // r8
long long v29; // r9
long long v30; // [rsp+0h] [rbp-48h]
long long v31; // [rsp+8h] [rbp-40h] BYREF
int v32; // [rsp+10h] [rbp-38h]
if ( (*(_QWORD *)&a2 & 0x7FFFFFFFFFFFFFFFuLL) >= 0x7FF0000000000000LL )
{
v25 = 17099LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17099LL,
"GGML_ASSERT(%s) failed",
"std::isfinite(value)");
return nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
v25,
v26,
v27,
v28,
v29,
a8,
a9,
a10,
a11);
}
if ( a2 <= 0.0 )
{
v25 = 17100LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17100LL,
"GGML_ASSERT(%s) failed",
"value > 0");
return nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
v25,
v26,
v27,
v28,
v29,
a8,
a9,
a10,
a11);
}
v11 = *(_QWORD *)&a2 & 0xFFFFFFFFFFFFFLL | 0x10000000000000LL;
if ( !(*(_QWORD *)&a2 >> 52) )
v11 = *(_QWORD *)&a2 & 0xFFFFFFFFFFFFFLL;
v12 = -1074;
if ( *(_QWORD *)&a2 >> 52 )
v12 = (*(_QWORD *)&a2 >> 52) - 1075;
v13 = (*(_QWORD *)&a2 & 0xFFFFFFFFFFFFFLL) == 0;
v14 = *(_QWORD *)&a2 >> 53 != 0LL;
v15 = (*(_QWORD *)&a2 >> 52) - 1077;
v16 = !v13 || !v14;
if ( !v13 || !v14 )
v15 = v12 - 1;
v17 = 0x3FFFFFFFFFFFFFLL;
if ( v16 )
v17 = 2 * v11 - 1;
v31 = v17;
v32 = v15;
v30 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(2 * v11 + 1);
v19 = v18;
v20 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize_to(&v31, v18);
v22 = v21;
*(_QWORD *)a1 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(v11);
*(_DWORD *)(a1 + 8) = v23;
*(_QWORD *)(a1 + 16) = v20;
*(_DWORD *)(a1 + 24) = v22;
*(_QWORD *)(a1 + 32) = v30;
*(_DWORD *)(a1 + 40) = v19;
return a1;
}
|
compute_boundaries<double>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOVQ RAX,XMM0
MOV RCX,RAX
BTR RCX,0x3f
MOV RDX,0x7ff0000000000000
CMP RCX,RDX
JGE 0x00187df0
XORPD XMM1,XMM1
UCOMISD XMM0,XMM1
JBE 0x00187e0c
MOV RBX,RDI
MOV RCX,0x10000000000000
DEC RCX
AND RCX,RAX
MOV RDX,RAX
SHR RDX,0x34
MOV R14,RCX
BTS R14,0x34
LEA ESI,[RDX + -0x433]
TEST RDX,RDX
CMOVZ R14,RCX
MOV R15D,0xfffffbce
CMOVNZ R15D,ESI
TEST RCX,RCX
SETZ CL
SHR RAX,0x35
SETNZ AL
LEA ESI,[R15 + -0x1]
ADD EDX,0xfffffbcb
TEST AL,CL
CMOVZ EDX,ESI
LEA RAX,[R14 + R14*0x1 + -0x1]
MOV RCX,0x3fffffffffffff
CMOVZ RCX,RAX
LEA R12,[RSP + 0x8]
MOV qword ptr [R12],RCX
MOV dword ptr [R12 + 0x8],EDX
LEA RDI,[0x1 + R14*0x2]
CALL 0x00187f5c
MOV qword ptr [RSP],RAX
MOV EBP,EDX
MOV RDI,R12
MOV ESI,EDX
CALL 0x00187f9c
MOV R12,RAX
MOV R13D,EDX
MOV RDI,R14
MOV ESI,R15D
CALL 0x00187f5c
MOV qword ptr [RBX],RAX
MOV dword ptr [RBX + 0x8],EDX
MOV qword ptr [RBX + 0x10],R12
MOV dword ptr [RBX + 0x18],R13D
MOV RAX,qword ptr [RSP]
MOV qword ptr [RBX + 0x20],RAX
MOV dword ptr [RBX + 0x28],EBP
MOV RAX,RBX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00187df0:
LEA RDI,[0x1afdd0]
LEA RDX,[0x1afe1a]
LEA RCX,[0x1b549d]
MOV ESI,0x42cb
JMP 0x00187e26
LAB_00187e0c:
LEA RDI,[0x1afdd0]
LEA RDX,[0x1afe1a]
LEA RCX,[0x1b55b6]
MOV ESI,0x42cc
LAB_00187e26:
XOR EAX,EAX
CALL 0x00123ef0
|
/* nlohmann::json_abi_v3_11_3::detail::dtoa_impl::boundaries
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::compute_boundaries<double>(double) */
dtoa_impl * __thiscall
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::compute_boundaries<double>
(dtoa_impl *this,double param_1)
{
uint uVar1;
diyfp *pdVar2;
char *pcVar3;
int8 uVar4;
diyfp *pdVar5;
int iVar6;
bool bVar7;
int1 auVar8 [12];
int1 auVar9 [12];
int1 auVar10 [12];
long local_40;
int local_38;
if ((ulong)ABS(param_1) < 0x7ff0000000000000) {
if (0.0 < param_1) {
pdVar2 = (diyfp *)((ulong)param_1 & 0xfffffffffffff);
uVar1 = (uint)((ulong)param_1 >> 0x20);
bVar7 = (ulong)param_1 >> 0x34 == 0;
pdVar5 = (diyfp *)((ulong)pdVar2 | 0x10000000000000);
if (bVar7) {
pdVar5 = pdVar2;
}
iVar6 = -0x432;
if (!bVar7) {
iVar6 = (uVar1 >> 0x14) - 0x433;
}
bVar7 = (ulong)param_1 >> 0x35 == 0;
local_38 = (uVar1 >> 0x14) - 0x435;
if (bVar7 || pdVar2 != (diyfp *)0x0) {
local_38 = iVar6 + -1;
}
local_40 = 0x3fffffffffffff;
if (bVar7 || pdVar2 != (diyfp *)0x0) {
local_40 = (long)pdVar5 * 2 + -1;
}
auVar8 = diyfp::normalize((diyfp *)((long)pdVar5 * 2 + 1));
auVar9 = diyfp::normalize_to((diyfp *)&local_40,auVar8._8_4_);
auVar10 = diyfp::normalize(pdVar5,iVar6);
*(int1 (*) [12])this = auVar10;
*(int1 (*) [12])(this + 0x10) = auVar9;
*(int1 (*) [12])(this + 0x20) = auVar8;
return this;
}
pcVar3 = "value > 0";
uVar4 = 0x42cc;
}
else {
pcVar3 = "std::isfinite(value)";
uVar4 = 0x42cb;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",uVar4,
"GGML_ASSERT(%s) failed",pcVar3);
}
|
|
66,282 |
mysql_stmt_close_start
|
eloqsql/libmariadb/libmariadb/mariadb_async.c
|
int STDCALL
mysql_stmt_close_start(my_bool *ret, MYSQL_STMT *stmt)
{
MK_ASYNC_START_BODY(
mysql_stmt_close,
stmt->mysql,
{
WIN_SET_NONBLOCKING(stmt->mysql)
parms.stmt= stmt;
},
TRUE,
r_my_bool,
/* If stmt->mysql==NULL then we will not block so can call directly. */
if (!stmt->mysql)
{
*ret= mysql_stmt_close(stmt);
return 0;
})
}
|
O3
|
c
|
mysql_stmt_close_start:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x38(%rsi), %rax
testq %rax, %rax
je 0x2f5d7
movq 0x480(%rax), %rax
movq 0x28(%rax), %r15
leaq -0x20(%rbp), %rdx
movq %r14, (%rdx)
movb $0x1, 0x14(%r15)
leaq 0x38(%r15), %rdi
leaq 0x9f(%rip), %rsi # 0x2f65c
callq 0x308a0
movw $0x0, 0x14(%r15)
testl %eax, %eax
jle 0x2f5e1
movb $0x1, 0x15(%r15)
movl (%r15), %eax
jmp 0x2f651
movq %r14, %rdi
callq 0x23611
jmp 0x2f64d
js 0x2f5e9
movb 0x8(%r15), %al
jmp 0x2f64d
movq 0x38(%r14), %rax
movl $0x7d8, 0x90(%rax) # imm = 0x7D8
movl $0x297, %edi # imm = 0x297
addq 0x38(%r14), %rdi
leaq 0x1e699(%rip), %rax # 0x4dca0
movq (%rax), %rsi
movl $0x5, %edx
callq 0x13220
movq 0x38(%r14), %rax
xorl %r15d, %r15d
movb %r15b, 0x29c(%rax)
movl $0x97, %edi
addq 0x38(%r14), %rdi
leaq 0x1e67e(%rip), %rax # 0x4dcb0
movq 0x40(%rax), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x13220
movq 0x38(%r14), %rax
movb %r15b, 0x296(%rax)
movb $0x1, %al
movb %al, (%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
mysql_stmt_close_start:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov r14, rsi
mov rbx, rdi
mov rax, [rsi+38h]
test rax, rax
jz short loc_2F5D7
mov rax, [rax+480h]
mov r15, [rax+28h]
lea rdx, [rbp+var_20]
mov [rdx], r14
mov byte ptr [r15+14h], 1
lea rdi, [r15+38h]
lea rsi, mysql_stmt_close_start_internal
call my_context_spawn
mov word ptr [r15+14h], 0
test eax, eax
jle short loc_2F5E1
mov byte ptr [r15+15h], 1
mov eax, [r15]
jmp short loc_2F651
loc_2F5D7:
mov rdi, r14
call mysql_stmt_close
jmp short loc_2F64D
loc_2F5E1:
js short loc_2F5E9
mov al, [r15+8]
jmp short loc_2F64D
loc_2F5E9:
mov rax, [r14+38h]
mov dword ptr [rax+90h], 7D8h
mov edi, 297h
add rdi, [r14+38h]
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
mov rax, [r14+38h]
xor r15d, r15d
mov [rax+29Ch], r15b
mov edi, 97h
add rdi, [r14+38h]
lea rax, client_errors
mov rsi, [rax+40h]
mov edx, 1FFh
call _strncpy
mov rax, [r14+38h]
mov [rax+296h], r15b
mov al, 1
loc_2F64D:
mov [rbx], al
xor eax, eax
loc_2F651:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long mysql_stmt_close_start(char *a1, long long a2)
{
long long v2; // rax
long long v3; // rax
_BYTE *v4; // r15
int v5; // eax
char v7; // al
long long v8[4]; // [rsp+0h] [rbp-20h] BYREF
v8[0] = v2;
v3 = *(_QWORD *)(a2 + 56);
if ( v3 )
{
v4 = *(_BYTE **)(*(_QWORD *)(v3 + 1152) + 40LL);
v8[0] = a2;
v4[20] = 1;
v5 = my_context_spawn(v4 + 56, mysql_stmt_close_start_internal, v8);
*((_WORD *)v4 + 10) = 0;
if ( v5 > 0 )
{
v4[21] = 1;
return *(unsigned int *)v4;
}
if ( v5 < 0 )
{
*(_DWORD *)(*(_QWORD *)(a2 + 56) + 144LL) = 2008;
strncpy(*(_QWORD *)(a2 + 56) + 663LL, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(*(_QWORD *)(a2 + 56) + 668LL) = 0;
strncpy(*(_QWORD *)(a2 + 56) + 151LL, client_errors[8], 511LL);
*(_BYTE *)(*(_QWORD *)(a2 + 56) + 662LL) = 0;
v7 = 1;
}
else
{
v7 = v4[8];
}
}
else
{
v7 = mysql_stmt_close(a2);
}
*a1 = v7;
return 0LL;
}
|
mysql_stmt_close_start:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RSI + 0x38]
TEST RAX,RAX
JZ 0x0012f5d7
MOV RAX,qword ptr [RAX + 0x480]
MOV R15,qword ptr [RAX + 0x28]
LEA RDX,[RBP + -0x20]
MOV qword ptr [RDX],R14
MOV byte ptr [R15 + 0x14],0x1
LEA RDI,[R15 + 0x38]
LEA RSI,[0x12f65c]
CALL 0x001308a0
MOV word ptr [R15 + 0x14],0x0
TEST EAX,EAX
JLE 0x0012f5e1
MOV byte ptr [R15 + 0x15],0x1
MOV EAX,dword ptr [R15]
JMP 0x0012f651
LAB_0012f5d7:
MOV RDI,R14
CALL 0x00123611
JMP 0x0012f64d
LAB_0012f5e1:
JS 0x0012f5e9
MOV AL,byte ptr [R15 + 0x8]
JMP 0x0012f64d
LAB_0012f5e9:
MOV RAX,qword ptr [R14 + 0x38]
MOV dword ptr [RAX + 0x90],0x7d8
MOV EDI,0x297
ADD RDI,qword ptr [R14 + 0x38]
LEA RAX,[0x14dca0]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00113220
MOV RAX,qword ptr [R14 + 0x38]
XOR R15D,R15D
MOV byte ptr [RAX + 0x29c],R15B
MOV EDI,0x97
ADD RDI,qword ptr [R14 + 0x38]
LEA RAX,[0x14dcb0]
MOV RSI,qword ptr [RAX + 0x40]
MOV EDX,0x1ff
CALL 0x00113220
MOV RAX,qword ptr [R14 + 0x38]
MOV byte ptr [RAX + 0x296],R15B
MOV AL,0x1
LAB_0012f64d:
MOV byte ptr [RBX],AL
XOR EAX,EAX
LAB_0012f651:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
int4 mysql_stmt_close_start(int1 *param_1,long param_2)
{
int4 *puVar1;
int1 uVar2;
int iVar3;
if (*(long *)(param_2 + 0x38) == 0) {
uVar2 = mysql_stmt_close(param_2);
}
else {
puVar1 = *(int4 **)(*(long *)(*(long *)(param_2 + 0x38) + 0x480) + 0x28);
*(int1 *)(puVar1 + 5) = 1;
iVar3 = my_context_spawn(puVar1 + 0xe,mysql_stmt_close_start_internal);
*(int2 *)(puVar1 + 5) = 0;
if (0 < iVar3) {
*(int1 *)((long)puVar1 + 0x15) = 1;
return *puVar1;
}
if (iVar3 < 0) {
*(int4 *)(*(long *)(param_2 + 0x38) + 0x90) = 0x7d8;
strncpy((char *)(*(long *)(param_2 + 0x38) + 0x297),SQLSTATE_UNKNOWN,5);
*(int1 *)(*(long *)(param_2 + 0x38) + 0x29c) = 0;
strncpy((char *)(*(long *)(param_2 + 0x38) + 0x97),PTR_s_Client_run_out_of_memory_0014dcf0,
0x1ff);
*(int1 *)(*(long *)(param_2 + 0x38) + 0x296) = 0;
uVar2 = 1;
}
else {
uVar2 = *(int1 *)(puVar1 + 2);
}
}
*param_1 = uVar2;
return 0;
}
|
|
66,283 |
my_uca_coll_init_utf8mb4
|
eloqsql/strings/ctype-uca.c
|
static my_bool
my_uca_coll_init_utf8mb4(struct charset_info_st *cs, MY_CHARSET_LOADER *loader)
{
if (my_coll_init_uca(cs, loader))
return TRUE;
if (my_uca_collation_can_optimize_no_contractions(cs))
my_uca_handler_map(cs, &my_uca_package_utf8mb4,
&my_uca_package_no_contractions_utf8mb4);
return FALSE;
}
|
O3
|
c
|
my_uca_coll_init_utf8mb4:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0xb8458
movl %eax, %ecx
movb $0x1, %al
testb %cl, %cl
jne 0xbb169
movzbl 0xb2(%rbx), %ecx
testq %rcx, %rcx
je 0xbb118
movq 0x60(%rbx), %rax
imulq $0x38, %rcx, %rcx
xorl %edx, %edx
cmpq $0x0, 0x18(%rax,%rdx)
jne 0xbb167
addq $0x38, %rdx
cmpq %rdx, %rcx
jne 0xbb107
movq 0xc0(%rbx), %rcx
leaq 0x2fd44a(%rip), %rdx # 0x3b8570
cmpq (%rdx), %rcx
je 0xbb14a
leaq 0x2fd45e(%rip), %rax # 0x3b8590
cmpq 0x8(%rdx), %rcx
je 0xbb153
cmpq 0x10(%rdx), %rcx
je 0xbb159
cmpq 0x18(%rdx), %rcx
jne 0xbb167
addq $0x18, %rax
jmp 0xbb15d
leaq 0x2fd43f(%rip), %rax # 0x3b8590
jmp 0xbb15d
addq $0x8, %rax
jmp 0xbb15d
addq $0x10, %rax
movq (%rax), %rax
movq %rax, 0xc0(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
|
my_uca_coll_init_utf8mb4:
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rdi
call my_coll_init_uca
mov ecx, eax
mov al, 1
test cl, cl
jnz short loc_BB169
movzx ecx, byte ptr [rbx+0B2h]
test rcx, rcx
jz short loc_BB118
mov rax, [rbx+60h]
imul rcx, 38h ; '8'
xor edx, edx
loc_BB107:
cmp qword ptr [rax+rdx+18h], 0
jnz short loc_BB167
add rdx, 38h ; '8'
cmp rcx, rdx
jnz short loc_BB107
loc_BB118:
mov rcx, [rbx+0C0h]
lea rdx, my_uca_package_utf8mb4
cmp rcx, [rdx]
jz short loc_BB14A
lea rax, my_uca_package_no_contractions_utf8mb4
cmp rcx, [rdx+8]
jz short loc_BB153
cmp rcx, [rdx+10h]
jz short loc_BB159
cmp rcx, [rdx+18h]
jnz short loc_BB167
add rax, 18h
jmp short loc_BB15D
loc_BB14A:
lea rax, my_uca_package_no_contractions_utf8mb4
jmp short loc_BB15D
loc_BB153:
add rax, 8
jmp short loc_BB15D
loc_BB159:
add rax, 10h
loc_BB15D:
mov rax, [rax]
mov [rbx+0C0h], rax
loc_BB167:
xor eax, eax
loc_BB169:
add rsp, 8
pop rbx
pop rbp
retn
|
char my_uca_coll_init_utf8mb4(
long long a1,
long long ( **a2)(unsigned long long, unsigned long long, const char *))
{
char inited; // cl
char result; // al
long long v4; // rdx
long long ( **v5)(); // rcx
long long ( ***v6)(); // rax
inited = my_coll_init_uca(a1, a2);
result = 1;
if ( !inited )
{
if ( *(_BYTE *)(a1 + 178) )
{
v4 = 0LL;
while ( !*(_QWORD *)(*(_QWORD *)(a1 + 96) + v4 + 24) )
{
v4 += 56LL;
if ( 56LL * *(unsigned __int8 *)(a1 + 178) == v4 )
goto LABEL_6;
}
return 0;
}
LABEL_6:
v5 = *(long long ( ***)())(a1 + 192);
if ( v5 == my_uca_package_utf8mb4[0] )
{
v6 = my_uca_package_no_contractions_utf8mb4;
}
else if ( v5 == my_uca_package_utf8mb4[1] )
{
v6 = &my_uca_package_no_contractions_utf8mb4[1];
}
else if ( v5 == my_uca_package_utf8mb4[2] )
{
v6 = &my_uca_package_no_contractions_utf8mb4[2];
}
else
{
if ( v5 != my_uca_package_utf8mb4[3] )
return 0;
v6 = &my_uca_package_no_contractions_utf8mb4[3];
}
*(_QWORD *)(a1 + 192) = *v6;
return 0;
}
return result;
}
|
my_uca_coll_init_utf8mb4:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RDI
CALL 0x001b8458
MOV ECX,EAX
MOV AL,0x1
TEST CL,CL
JNZ 0x001bb169
MOVZX ECX,byte ptr [RBX + 0xb2]
TEST RCX,RCX
JZ 0x001bb118
MOV RAX,qword ptr [RBX + 0x60]
IMUL RCX,RCX,0x38
XOR EDX,EDX
LAB_001bb107:
CMP qword ptr [RAX + RDX*0x1 + 0x18],0x0
JNZ 0x001bb167
ADD RDX,0x38
CMP RCX,RDX
JNZ 0x001bb107
LAB_001bb118:
MOV RCX,qword ptr [RBX + 0xc0]
LEA RDX,[0x4b8570]
CMP RCX,qword ptr [RDX]
JZ 0x001bb14a
LEA RAX,[0x4b8590]
CMP RCX,qword ptr [RDX + 0x8]
JZ 0x001bb153
CMP RCX,qword ptr [RDX + 0x10]
JZ 0x001bb159
CMP RCX,qword ptr [RDX + 0x18]
JNZ 0x001bb167
ADD RAX,0x18
JMP 0x001bb15d
LAB_001bb14a:
LEA RAX,[0x4b8590]
JMP 0x001bb15d
LAB_001bb153:
ADD RAX,0x8
JMP 0x001bb15d
LAB_001bb159:
ADD RAX,0x10
LAB_001bb15d:
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBX + 0xc0],RAX
LAB_001bb167:
XOR EAX,EAX
LAB_001bb169:
ADD RSP,0x8
POP RBX
POP RBP
RET
|
int8 my_uca_coll_init_utf8mb4(long param_1)
{
int *puVar1;
char cVar2;
int **ppuVar3;
long lVar4;
cVar2 = my_coll_init_uca();
if (cVar2 != '\0') {
return 1;
}
if ((ulong)*(byte *)(param_1 + 0xb2) != 0) {
lVar4 = 0;
do {
if (*(long *)(*(long *)(param_1 + 0x60) + 0x18 + lVar4) != 0) {
return 0;
}
lVar4 = lVar4 + 0x38;
} while ((ulong)*(byte *)(param_1 + 0xb2) * 0x38 - lVar4 != 0);
}
puVar1 = *(int **)(param_1 + 0xc0);
if (puVar1 == my_uca_package_utf8mb4) {
ppuVar3 = &my_uca_package_no_contractions_utf8mb4;
}
else if (puVar1 == PTR_my_uca_collation_handler_nopad_utf8mb4_004b8578) {
ppuVar3 = &PTR_my_uca_collation_handler_nopad_no_contractions_utf8mb4_004b8598;
}
else if (puVar1 == PTR_my_uca_collation_handler_multilevel_utf8mb4_004b8580) {
ppuVar3 = &PTR_my_uca_collation_handler_multilevel_no_contractions_utf8mb4_004b85a0;
}
else {
if (puVar1 != PTR_my_uca_collation_handler_nopad_multilevel_utf8mb4_004b8588) {
return 0;
}
ppuVar3 = &PTR_my_uca_collation_handler_nopad_multilevel_no_contractions_utf8mb4_004b85a8;
}
*(int **)(param_1 + 0xc0) = *ppuVar3;
return 0;
}
|
|
66,284 |
maria_page_crc_check_data
|
eloqsql/storage/maria/ma_pagecrc.c
|
my_bool maria_page_crc_check_data(int res, PAGECACHE_IO_HOOK_ARGS *args)
{
uchar *page= args->page;
pgcache_page_no_t page_no= args->pageno;
MARIA_SHARE *share= (MARIA_SHARE *)args->data;
if (res)
{
return 1;
}
return (maria_page_crc_check(page, (uint32) page_no, share,
MARIA_NO_CRC_NORMAL_PAGE,
share->block_size - CRC_SIZE));
}
|
O0
|
c
|
maria_page_crc_check_data:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x28(%rbp)
cmpl $0x0, -0x8(%rbp)
je 0x5d70e
movb $0x1, -0x1(%rbp)
jmp 0x5d73a
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rax
movl %eax, %eax
movl %eax, %esi
movq -0x28(%rbp), %rdx
movq -0x28(%rbp), %rax
movl 0x7bc(%rax), %r8d
subl $0x4, %r8d
movl $0xffffffff, %ecx # imm = 0xFFFFFFFF
callq 0x5d460
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
maria_page_crc_check_data:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], edi
mov [rbp+var_10], rsi
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_18], rax
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov rax, [rax+10h]
mov [rbp+var_28], rax
cmp [rbp+var_8], 0
jz short loc_5D70E
mov [rbp+var_1], 1
jmp short loc_5D73A
loc_5D70E:
mov rdi, [rbp+var_18]
mov rax, [rbp+var_20]
mov eax, eax
mov esi, eax
mov rdx, [rbp+var_28]
mov rax, [rbp+var_28]
mov r8d, [rax+7BCh]
sub r8d, 4
mov ecx, 0FFFFFFFFh
call maria_page_crc_check
mov [rbp+var_1], al
loc_5D73A:
mov al, [rbp+var_1]
add rsp, 30h
pop rbp
retn
|
bool maria_page_crc_check_data(int a1, long long a2)
{
return a1
|| maria_page_crc_check(
*(_BYTE **)a2,
(const char *)(unsigned int)*(_QWORD *)(a2 + 8),
*(_QWORD *)(a2 + 16),
-1,
*(_DWORD *)(*(_QWORD *)(a2 + 16) + 1980LL) - 4);
}
|
maria_page_crc_check_data:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV dword ptr [RBP + -0x8],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RBP + -0x28],RAX
CMP dword ptr [RBP + -0x8],0x0
JZ 0x0015d70e
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0015d73a
LAB_0015d70e:
MOV RDI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x20]
MOV EAX,EAX
MOV ESI,EAX
MOV RDX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x28]
MOV R8D,dword ptr [RAX + 0x7bc]
SUB R8D,0x4
MOV ECX,0xffffffff
CALL 0x0015d460
MOV byte ptr [RBP + -0x1],AL
LAB_0015d73a:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
int1 maria_page_crc_check_data(int param_1,int8 *param_2)
{
int1 local_9;
if (param_1 == 0) {
local_9 = maria_page_crc_check
(*param_2,param_2[1] & 0xffffffff,param_2[2],0xffffffff,
*(int *)(param_2[2] + 0x7bc) + -4);
}
else {
local_9 = 1;
}
return local_9;
}
|
|
66,285 |
my_bitmap_free
|
eloqsql/mysys/my_bitmap.c
|
void my_bitmap_free(MY_BITMAP *map)
{
DBUG_ENTER("my_bitmap_free");
if (map->bitmap)
{
if (map->mutex)
mysql_mutex_destroy(map->mutex);
my_free(map->bitmap);
map->bitmap=0;
}
DBUG_VOID_RETURN;
}
|
O0
|
c
|
my_bitmap_free:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, (%rax)
je 0xc10775
movq -0x8(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0xc1075e
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0xc10780
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0xc1afa0
movq -0x8(%rbp), %rax
movq $0x0, (%rax)
jmp 0xc10777
jmp 0xc10779
addq $0x10, %rsp
popq %rbp
retq
nop
|
my_bitmap_free:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
cmp qword ptr [rax], 0
jz short loc_C10775
mov rax, [rbp+var_8]
cmp qword ptr [rax+10h], 0
jz short loc_C1075E
mov rax, [rbp+var_8]
mov rdi, [rax+10h]
call inline_mysql_mutex_destroy_15
loc_C1075E:
mov rax, [rbp+var_8]
mov rdi, [rax]
call my_free
mov rax, [rbp+var_8]
mov qword ptr [rax], 0
loc_C10775:
jmp short $+2
loc_C10777:
jmp short $+2
loc_C10779:
add rsp, 10h
pop rbp
retn
|
_QWORD * my_bitmap_free(_QWORD *a1)
{
_QWORD *result; // rax
result = a1;
if ( *a1 )
{
if ( a1[2] )
inline_mysql_mutex_destroy_15(a1[2]);
my_free(*a1);
result = a1;
*a1 = 0LL;
}
return result;
}
|
inline_mysql_file_close:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV qword ptr [RBP + -0x20],RCX
LEA RAX,[0x14feeb0]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x158]
MOV ESI,dword ptr [RBP + -0x18]
LEA RDI,[RBP + -0x78]
MOV EDX,0x4
CALL RAX
MOV qword ptr [RBP + -0x30],RAX
CMP qword ptr [RBP + -0x30],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x00c107db
LEA RAX,[0x14feeb0]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x220]
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RBP + -0x14]
CALL RAX
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x00d1b8c0
MOV dword ptr [RBP + -0x24],EAX
LEA RAX,[0x14feeb0]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x228]
MOV RDI,qword ptr [RBP + -0x30]
MOV ESI,dword ptr [RBP + -0x24]
CALL RAX
MOV EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00c107f0
LAB_00c107db:
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x00d1b8c0
MOV dword ptr [RBP + -0x24],EAX
MOV EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x4],EAX
LAB_00c107f0:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x80
POP RBP
RET
|
int4
inline_mysql_file_close(int8 param_1,int4 param_2,int4 param_3,int8 param_4)
{
int1 local_80 [72];
long local_38;
int4 local_2c;
int8 local_28;
int4 local_20;
int4 local_1c;
int8 local_18;
int4 local_c;
local_28 = param_4;
local_20 = param_3;
local_1c = param_2;
local_18 = param_1;
local_38 = (**(code **)(PSI_server + 0x158))(local_80,param_3,4);
if (local_38 == 0) {
local_c = my_close(local_20,local_28);
}
else {
(**(code **)(PSI_server + 0x220))(local_38,local_18,local_1c);
local_2c = my_close(local_20,local_28);
(**(code **)(PSI_server + 0x228))(local_38,local_2c);
local_c = local_2c;
}
return local_c;
}
|
|
66,286 |
sha256_update
|
corpus-core[P]colibri-stateless/build_O0/_deps/blst-src/src/sha256.h
|
static void sha256_update(SHA256_CTX *ctx, const void *_inp, size_t len)
{
size_t n;
const unsigned char *inp = _inp;
ctx->N += len;
if ((len != 0) & ((n = ctx->off) != 0)) {
size_t rem = sizeof(ctx->buf) - n;
if (rem > len) {
sha256_bcopy(ctx->buf + n, inp, len);
ctx->off += len;
return;
} else {
sha256_bcopy(ctx->buf + n, inp, rem);
inp += rem;
len -= rem;
sha256_block_data_order(ctx->h, ctx->buf, 1);
vec_zero(ctx->buf, sizeof(ctx->buf));
ctx->off = 0;
}
}
n = len / sizeof(ctx->buf);
if (n > 0) {
sha256_block_data_order(ctx->h, inp, n);
n *= sizeof(ctx->buf);
inp += n;
len -= n;
}
if (len)
sha256_bcopy(ctx->buf, inp, ctx->off = len);
}
|
O0
|
c
|
sha256_update:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rcx
movq -0x8(%rbp), %rax
addq 0x20(%rax), %rcx
movq %rcx, 0x20(%rax)
cmpq $0x0, -0x18(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
movq -0x8(%rbp), %rcx
movq 0x68(%rcx), %rcx
movq %rcx, -0x20(%rbp)
cmpq $0x0, %rcx
setne %cl
andb $0x1, %cl
movzbl %cl, %ecx
andl %ecx, %eax
cmpl $0x0, %eax
je 0xb729c
movl $0x40, %eax
subq -0x20(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x18(%rbp), %rax
jbe 0xb7232
movq -0x8(%rbp), %rdi
addq $0x28, %rdi
addq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0xc3870
movq -0x18(%rbp), %rcx
movq -0x8(%rbp), %rax
addq 0x68(%rax), %rcx
movq %rcx, 0x68(%rax)
jmp 0xb730b
movq -0x8(%rbp), %rdi
addq $0x28, %rdi
addq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0xc3870
movq -0x30(%rbp), %rax
addq -0x28(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x30(%rbp), %rcx
movq -0x18(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rsi
addq $0x28, %rsi
movl $0x1, %edx
callq 0xc14c0
movq -0x8(%rbp), %rdi
addq $0x28, %rdi
movl $0x40, %esi
callq 0xa87c0
movq -0x8(%rbp), %rax
movq $0x0, 0x68(%rax)
jmp 0xb729c
movq -0x18(%rbp), %rax
shrq $0x6, %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jbe 0xb72e7
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0xc14c0
movq -0x20(%rbp), %rax
shlq $0x6, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
addq -0x28(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rcx
movq -0x18(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0xb730b
movq -0x8(%rbp), %rdi
addq $0x28, %rdi
movq -0x28(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x8(%rbp), %rax
movq %rdx, 0x68(%rax)
callq 0xc3870
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
|
sha256_update:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, [rbp+var_10]
mov [rbp+var_28], rax
mov rcx, [rbp+var_18]
mov rax, [rbp+var_8]
add rcx, [rax+20h]
mov [rax+20h], rcx
cmp [rbp+var_18], 0
setnz al
and al, 1
movzx eax, al
mov rcx, [rbp+var_8]
mov rcx, [rcx+68h]
mov [rbp+var_20], rcx
cmp rcx, 0
setnz cl
and cl, 1
movzx ecx, cl
and eax, ecx
cmp eax, 0
jz loc_B729C
mov eax, 40h ; '@'
sub rax, [rbp+var_20]
mov [rbp+var_30], rax
mov rax, [rbp+var_30]
cmp rax, [rbp+var_18]
jbe short loc_B7232
mov rdi, [rbp+var_8]
add rdi, 28h ; '('
add rdi, [rbp+var_20]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_18]
call blst_sha256_bcopy
mov rcx, [rbp+var_18]
mov rax, [rbp+var_8]
add rcx, [rax+68h]
mov [rax+68h], rcx
jmp loc_B730B
loc_B7232:
mov rdi, [rbp+var_8]
add rdi, 28h ; '('
add rdi, [rbp+var_20]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_30]
call blst_sha256_bcopy
mov rax, [rbp+var_30]
add rax, [rbp+var_28]
mov [rbp+var_28], rax
mov rcx, [rbp+var_30]
mov rax, [rbp+var_18]
sub rax, rcx
mov [rbp+var_18], rax
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_8]
add rsi, 28h ; '('
mov edx, 1
call blst_sha256_block_data_order
mov rdi, [rbp+var_8]
add rdi, 28h ; '('
mov esi, 40h ; '@'
call vec_zero
mov rax, [rbp+var_8]
mov qword ptr [rax+68h], 0
jmp short $+2
loc_B729C:
mov rax, [rbp+var_18]
shr rax, 6
mov [rbp+var_20], rax
cmp [rbp+var_20], 0
jbe short loc_B72E7
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_20]
call blst_sha256_block_data_order
mov rax, [rbp+var_20]
shl rax, 6
mov [rbp+var_20], rax
mov rax, [rbp+var_20]
add rax, [rbp+var_28]
mov [rbp+var_28], rax
mov rcx, [rbp+var_20]
mov rax, [rbp+var_18]
sub rax, rcx
mov [rbp+var_18], rax
loc_B72E7:
cmp [rbp+var_18], 0
jz short loc_B730B
mov rdi, [rbp+var_8]
add rdi, 28h ; '('
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_18]
mov rax, [rbp+var_8]
mov [rax+68h], rdx
call blst_sha256_bcopy
loc_B730B:
add rsp, 30h
pop rbp
retn
|
sha256_update:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x28],RAX
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x8]
ADD RCX,qword ptr [RAX + 0x20]
MOV qword ptr [RAX + 0x20],RCX
CMP qword ptr [RBP + -0x18],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
MOV RCX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RCX + 0x68]
MOV qword ptr [RBP + -0x20],RCX
CMP RCX,0x0
SETNZ CL
AND CL,0x1
MOVZX ECX,CL
AND EAX,ECX
CMP EAX,0x0
JZ 0x001b729c
MOV EAX,0x40
SUB RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x18]
JBE 0x001b7232
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x28
ADD RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x18]
CALL 0x001c3870
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x8]
ADD RCX,qword ptr [RAX + 0x68]
MOV qword ptr [RAX + 0x68],RCX
JMP 0x001b730b
LAB_001b7232:
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x28
ADD RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x30]
CALL 0x001c3870
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x28],RAX
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x18]
SUB RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x8]
ADD RSI,0x28
MOV EDX,0x1
CALL 0x001c14c0
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x28
MOV ESI,0x40
CALL 0x001a87c0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x68],0x0
JMP 0x001b729c
LAB_001b729c:
MOV RAX,qword ptr [RBP + -0x18]
SHR RAX,0x6
MOV qword ptr [RBP + -0x20],RAX
CMP qword ptr [RBP + -0x20],0x0
JBE 0x001b72e7
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x001c14c0
MOV RAX,qword ptr [RBP + -0x20]
SHL RAX,0x6
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x28],RAX
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x18]
SUB RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
LAB_001b72e7:
CMP qword ptr [RBP + -0x18],0x0
JZ 0x001b730b
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x28
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x68],RDX
CALL 0x001c3870
LAB_001b730b:
ADD RSP,0x30
POP RBP
RET
|
void sha256_update(long param_1,long param_2,ulong param_3)
{
long lVar1;
ulong uVar2;
long local_30;
ulong local_20;
*(ulong *)(param_1 + 0x20) = param_3 + *(long *)(param_1 + 0x20);
lVar1 = *(long *)(param_1 + 0x68);
local_30 = param_2;
local_20 = param_3;
if (param_3 != 0 && lVar1 != 0) {
local_20 = 0x40 - lVar1;
if (param_3 < local_20) {
blst_sha256_bcopy(param_1 + 0x28 + lVar1,param_2,param_3);
*(ulong *)(param_1 + 0x68) = param_3 + *(long *)(param_1 + 0x68);
return;
}
blst_sha256_bcopy(param_1 + 0x28 + lVar1,param_2,local_20);
local_30 = local_20 + param_2;
local_20 = param_3 - local_20;
blst_sha256_block_data_order(param_1,param_1 + 0x28,1);
vec_zero(param_1 + 0x28,0x40);
*(int8 *)(param_1 + 0x68) = 0;
}
uVar2 = local_20 >> 6;
if (uVar2 != 0) {
blst_sha256_block_data_order(param_1,local_30,uVar2);
local_30 = uVar2 * 0x40 + local_30;
local_20 = local_20 + uVar2 * -0x40;
}
if (local_20 != 0) {
*(ulong *)(param_1 + 0x68) = local_20;
blst_sha256_bcopy(param_1 + 0x28,local_30);
}
return;
}
|
||
66,287 |
THD::close_temporary_table(TABLE*)
|
eloqsql/sql/temporary_tables.cc
|
void THD::close_temporary_table(TABLE *table)
{
DBUG_ENTER("THD::close_temporary_table");
DBUG_PRINT("tmptable", ("closing table: '%s'.'%s'%p alias: '%s'",
table->s->db.str, table->s->table_name.str,
table, table->alias.c_ptr()));
closefrm(table);
my_free(table);
if (rgi_slave)
{
/* Natural invariant of temporary_tables */
DBUG_ASSERT(slave_open_temp_tables || !temporary_tables);
/* Decrement Slave_open_temp_table_definitions status variable count. */
slave_open_temp_tables--;
}
DBUG_VOID_RETURN;
}
|
O0
|
cpp
|
THD::close_temporary_table(TABLE*):
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0xc329fa
movq -0x10(%rbp), %rdi
callq 0xb0d870
movq -0x10(%rbp), %rdi
callq 0x1324630
movq -0x18(%rbp), %rax
cmpq $0x0, 0x298(%rax)
je 0xc32a2c
jmp 0xc32a1c
jmp 0xc32a1e
leaq 0x111528f(%rip), %rdi # 0x1d47cb4
xorl %esi, %esi
callq 0x855be0
jmp 0xc32a2e
jmp 0xc32a30
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
_ZN3THD21close_temporary_tableEP5TABLE:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_8]
mov [rbp+var_18], rax
jmp short $+2
loc_C329FA:
mov rdi, [rbp+var_10]; TABLE *
call _Z8closefrmP5TABLE; closefrm(TABLE *)
mov rdi, [rbp+var_10]
call my_free
mov rax, [rbp+var_18]
cmp qword ptr [rax+298h], 0
jz short loc_C32A2C
jmp short $+2
loc_C32A1C:
jmp short $+2
loc_C32A1E:
lea rdi, slave_open_temp_tables
xor esi, esi
call _ZN14Atomic_counterIjEmmEi; Atomic_counter<uint>::operator--(int)
loc_C32A2C:
jmp short $+2
loc_C32A2E:
jmp short $+2
loc_C32A30:
add rsp, 20h
pop rbp
retn
|
THD * THD::close_temporary_table(THD *this, TABLE *a2)
{
THD *result; // rax
closefrm(a2);
my_free(a2);
result = this;
if ( *((_QWORD *)this + 83) )
return (THD *)Atomic_counter<unsigned int>::operator--((long long)&slave_open_temp_tables);
return result;
}
|
inline_mysql_mutex_register:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RBP + -0x14]
CALL 0x010528d0
ADD RSP,0x20
POP RBP
RET
|
/* inline_mysql_mutex_register(char const*, PSI_mutex_info_v1*, int) */
void inline_mysql_mutex_register(char *param_1,PSI_mutex_info_v1 *param_2,int param_3)
{
pfs_register_mutex_v1(param_1,param_2,param_3);
return;
}
|
|
66,288 |
my_casedn_str_8bit
|
eloqsql/strings/ctype-simple.c
|
size_t my_casedn_str_8bit(CHARSET_INFO * cs,char *str)
{
register const uchar *map= cs->to_lower;
char *str_orig= str;
while ((*str= (char) map[(uchar) *str]) != 0)
str++;
return (size_t) (str - str_orig);
}
|
O0
|
c
|
my_casedn_str_8bit:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movzbl (%rcx), %ecx
movb (%rax,%rcx), %al
movq -0x10(%rbp), %rcx
movb %al, (%rcx)
movsbl %al, %eax
cmpl $0x0, %eax
je 0x4bbda
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x4bbb0
movq -0x10(%rbp), %rax
movq -0x20(%rbp), %rcx
subq %rcx, %rax
popq %rbp
retq
nopw (%rax,%rax)
|
my_casedn_str_8bit:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_8]
mov rax, [rax+48h]
mov [rbp+var_18], rax
mov rax, [rbp+var_10]
mov [rbp+var_20], rax
loc_4BBB0:
mov rax, [rbp+var_18]
mov rcx, [rbp+var_10]
movzx ecx, byte ptr [rcx]
mov al, [rax+rcx]
mov rcx, [rbp+var_10]
mov [rcx], al
movsx eax, al
cmp eax, 0
jz short loc_4BBDA
mov rax, [rbp+var_10]
add rax, 1
mov [rbp+var_10], rax
jmp short loc_4BBB0
loc_4BBDA:
mov rax, [rbp+var_10]
mov rcx, [rbp+var_20]
sub rax, rcx
pop rbp
retn
|
_BYTE * my_casedn_str_8bit(long long a1, _BYTE *a2)
{
char v2; // al
long long v4; // [rsp+8h] [rbp-18h]
_BYTE *v5; // [rsp+10h] [rbp-10h]
v5 = a2;
v4 = *(_QWORD *)(a1 + 72);
while ( 1 )
{
v2 = *(_BYTE *)(v4 + (unsigned __int8)*v5);
*v5 = v2;
if ( !v2 )
break;
++v5;
}
return (_BYTE *)(v5 - a2);
}
|
my_casedn_str_8bit:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x48]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x20],RAX
LAB_0014bbb0:
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
MOVZX ECX,byte ptr [RCX]
MOV AL,byte ptr [RAX + RCX*0x1]
MOV RCX,qword ptr [RBP + -0x10]
MOV byte ptr [RCX],AL
MOVSX EAX,AL
CMP EAX,0x0
JZ 0x0014bbda
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x1
MOV qword ptr [RBP + -0x10],RAX
JMP 0x0014bbb0
LAB_0014bbda:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x20]
SUB RAX,RCX
POP RBP
RET
|
long my_casedn_str_8bit(long param_1,byte *param_2)
{
byte bVar1;
long lVar2;
byte *local_18;
lVar2 = *(long *)(param_1 + 0x48);
local_18 = param_2;
while (bVar1 = *(byte *)(lVar2 + (ulong)*local_18), *local_18 = bVar1, bVar1 != 0) {
local_18 = local_18 + 1;
}
return (long)local_18 - (long)param_2;
}
|
|
66,289 |
spdlog::details::os::path_exists(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
|
AlayaLite/build_O0/_deps/spdlog-src/include/spdlog/details/os-inl.h
|
SPDLOG_INLINE bool path_exists(const filename_t &filename) SPDLOG_NOEXCEPT {
#ifdef _WIN32
struct _stat buffer;
#ifdef SPDLOG_WCHAR_FILENAMES
return (::_wstat(filename.c_str(), &buffer) == 0);
#else
return (::_stat(filename.c_str(), &buffer) == 0);
#endif
#else // common linux/unix all have the stat system call
struct stat buffer;
return (::stat(filename.c_str(), &buffer) == 0);
#endif
}
|
O0
|
c
|
spdlog::details::os::path_exists(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
subq $0x98, %rsp
movq %rdi, 0x90(%rsp)
movq 0x90(%rsp), %rdi
callq 0x1acc0
movq %rax, %rdi
movq %rsp, %rsi
callq 0x14610
cmpl $0x0, %eax
sete %al
andb $0x1, %al
addq $0x98, %rsp
retq
nopw (%rax,%rax)
|
_ZN6spdlog7details2os11path_existsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
sub rsp, 98h
mov [rsp+98h+var_8], rdi
mov rdi, [rsp+98h+var_8]
call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void)
mov rdi, rax
mov rsi, rsp
call _stat
cmp eax, 0
setz al
and al, 1
add rsp, 98h
retn
|
bool spdlog::details::os::path_exists(long long a1)
{
long long v1; // rax
_QWORD v3[19]; // [rsp+0h] [rbp-98h] BYREF
v3[18] = a1;
v1 = std::string::c_str(a1);
return (unsigned int)stat(v1, v3) == 0;
}
|
path_exists:
SUB RSP,0x98
MOV qword ptr [RSP + 0x90],RDI
MOV RDI,qword ptr [RSP + 0x90]
CALL 0x0011acc0
MOV RDI,RAX
MOV RSI,RSP
CALL 0x00114610
CMP EAX,0x0
SETZ AL
AND AL,0x1
ADD RSP,0x98
RET
|
/* spdlog::details::os::path_exists(std::__cxx11::string const&) */
bool spdlog::details::os::path_exists(string *param_1)
{
char *__file;
int iVar1;
stat sStack_98;
string *local_8;
local_8 = param_1;
__file = (char *)std::__cxx11::string::c_str(param_1);
iVar1 = stat(__file,&sStack_98);
return iVar1 == 0;
}
|
|
66,290 |
fmt::v10::detail::bigint::square()
|
aimrt_mujoco_sim/_deps/fmt-src/include/fmt/format.h
|
FMT_CONSTEXPR20 void square() {
int num_bigits = static_cast<int>(bigits_.size());
int num_result_bigits = 2 * num_bigits;
basic_memory_buffer<bigit, bigits_capacity> n(std::move(bigits_));
bigits_.resize(to_unsigned(num_result_bigits));
auto sum = uint128_t();
for (int bigit_index = 0; bigit_index < num_bigits; ++bigit_index) {
// Compute bigit at position bigit_index of the result by adding
// cross-product terms n[i] * n[j] such that i + j == bigit_index.
for (int i = 0, j = bigit_index; j >= 0; ++i, --j) {
// Most terms are multiplied twice which can be optimized in the future.
sum += static_cast<double_bigit>(n[i]) * n[j];
}
(*this)[bigit_index] = static_cast<bigit>(sum);
sum >>= num_bits<bigit>(); // Compute the carry.
}
// Do the same for the top half.
for (int bigit_index = num_bigits; bigit_index < num_result_bigits;
++bigit_index) {
for (int j = num_bigits - 1, i = bigit_index - j; i < num_bigits;)
sum += static_cast<double_bigit>(n[i++]) * n[j--];
(*this)[bigit_index] = static_cast<bigit>(sum);
sum >>= num_bits<bigit>();
}
remove_leading_zeros();
exp_ *= 2;
}
|
O3
|
c
|
fmt::v10::detail::bigint::square():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %r15
leal (%r15,%r15), %r14d
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0xa1780
movq 0x18(%rbx), %rax
cmpq %r14, %rax
jae 0xa1635
movq (%rbx), %rax
movq %rbx, %rdi
movq %r14, %rsi
callq *(%rax)
movq 0x18(%rbx), %rax
cmpq %r14, %rax
cmovaeq %r14, %rax
movq %rax, 0x10(%rbx)
testl %r15d, %r15d
jle 0xa1697
movq 0x10(%rsp), %rdx
movq 0x8(%rbx), %rsi
movl %r15d, %edi
andl $0x7fffffff, %edi # imm = 0x7FFFFFFF
xorl %r8d, %r8d
xorl %eax, %eax
xorl %ecx, %ecx
movq %rdx, %r9
movq %r8, %r10
movl (%r9), %r11d
movl (%rdx,%r10,4), %r12d
imulq %r11, %r12
addq %r12, %rax
adcq $0x0, %rcx
addq $0x4, %r9
addq $-0x1, %r10
jb 0xa1664
movl %eax, (%rsi,%r8,4)
shrdq $0x20, %rcx, %rax
shrq $0x20, %rcx
incq %r8
cmpq %rdi, %r8
jne 0xa165e
jmp 0xa169b
xorl %eax, %eax
xorl %ecx, %ecx
cmpl %r15d, %r14d
jle 0xa171b
leal -0x1(%r15), %edx
movq 0x10(%rsp), %rsi
movq 0x8(%rbx), %rdi
movslq %r15d, %r8
leaq (%rsi,%r8,4), %r8
movl %r15d, %r9d
negl %r9d
movl $0x1, %r10d
movl %r15d, %r11d
movl %r11d, %ebp
subl %edx, %ebp
cmpl %r15d, %ebp
jge 0xa16f9
movslq %r10d, %r14
leaq (%rsi,%r14,4), %r14
movq $-0x1, %r12
movl (%r14), %r13d
movl (%r8,%r12,4), %ebp
imulq %r13, %rbp
addq %rbp, %rax
adcq $0x0, %rcx
decq %r12
addq $0x4, %r14
cmpl %r12d, %r9d
jne 0xa16db
movl %r11d, %r14d
movl %eax, (%rdi,%r14,4)
shrdq $0x20, %rcx, %rax
shrq $0x20, %rcx
incl %r11d
leal 0x1(%r10), %ebp
incq %r9
cmpl %r15d, %r10d
movl %ebp, %r10d
jne 0xa16c3
movq %rbx, %rdi
callq 0xa17aa
shll 0xa0(%rbx)
leaq 0x28(%rsp), %rax
movq -0x18(%rax), %rdi
cmpq %rax, %rdi
je 0xa1745
movq 0x20(%rsp), %rsi
shlq $0x2, %rsi
callq 0x927a0
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xa1759
movq %rax, %rbx
leaq 0x28(%rsp), %rax
movq -0x18(%rax), %rdi
cmpq %rax, %rdi
je 0xa1778
movq 0x20(%rsp), %rsi
shlq $0x2, %rsi
callq 0x927a0
movq %rbx, %rdi
callq 0x945e0
|
_ZN3fmt3v106detail6bigint6squareEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0A8h
mov rbx, rdi
mov r15, [rdi+10h]
lea r14d, [r15+r15]
lea rdi, [rsp+0D8h+var_D0]
mov rsi, rbx
call _ZN3fmt3v1019basic_memory_bufferIjLm32ESaIjEEC2EOS3_; fmt::v10::basic_memory_buffer<uint,32ul,std::allocator<uint>>::basic_memory_buffer(fmt::v10::basic_memory_buffer<uint,32ul,std::allocator<uint>>&&)
mov rax, [rbx+18h]
cmp rax, r14
jnb short loc_A1635
mov rax, [rbx]
mov rdi, rbx
mov rsi, r14
call qword ptr [rax]
mov rax, [rbx+18h]
loc_A1635:
cmp rax, r14
cmovnb rax, r14
mov [rbx+10h], rax
test r15d, r15d
jle short loc_A1697
mov rdx, [rsp+0D8h+var_C8]
mov rsi, [rbx+8]
mov edi, r15d
and edi, 7FFFFFFFh
xor r8d, r8d
xor eax, eax
xor ecx, ecx
loc_A165E:
mov r9, rdx
mov r10, r8
loc_A1664:
mov r11d, [r9]
mov r12d, [rdx+r10*4]
imul r12, r11
add rax, r12
adc rcx, 0
add r9, 4
add r10, 0FFFFFFFFFFFFFFFFh
jb short loc_A1664
mov [rsi+r8*4], eax
shrd rax, rcx, 20h
shr rcx, 20h
inc r8
cmp r8, rdi
jnz short loc_A165E
jmp short loc_A169B
loc_A1697:
xor eax, eax
xor ecx, ecx
loc_A169B:
cmp r14d, r15d
jle short loc_A171B
lea edx, [r15-1]
mov rsi, [rsp+0D8h+var_C8]
mov rdi, [rbx+8]
movsxd r8, r15d
lea r8, [rsi+r8*4]
mov r9d, r15d
neg r9d
mov r10d, 1
mov r11d, r15d
loc_A16C3:
mov ebp, r11d
sub ebp, edx
cmp ebp, r15d
jge short loc_A16F9
movsxd r14, r10d
lea r14, [rsi+r14*4]
mov r12, 0FFFFFFFFFFFFFFFFh
loc_A16DB:
mov r13d, [r14]
mov ebp, [r8+r12*4]
imul rbp, r13
add rax, rbp
adc rcx, 0
dec r12
add r14, 4
cmp r9d, r12d
jnz short loc_A16DB
loc_A16F9:
mov r14d, r11d
mov [rdi+r14*4], eax
shrd rax, rcx, 20h
shr rcx, 20h
inc r11d
lea ebp, [r10+1]
inc r9
cmp r10d, r15d
mov r10d, ebp
jnz short loc_A16C3
loc_A171B:
mov rdi, rbx; this
call _ZN3fmt3v106detail6bigint20remove_leading_zerosEv; fmt::v10::detail::bigint::remove_leading_zeros(void)
shl dword ptr [rbx+0A0h], 1
lea rax, [rsp+0D8h+var_B0]
mov rdi, [rax-18h]; void *
cmp rdi, rax
jz short loc_A1745
mov rsi, [rsp+0D8h+var_B8]
shl rsi, 2; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_A1745:
add rsp, 0A8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_A1759:
mov rbx, rax
lea rax, [rsp+arg_20]
mov rdi, [rax-18h]; void *
cmp rdi, rax
jz short loc_A1778
mov rsi, [rsp+arg_18]
shl rsi, 2; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_A1778:
mov rdi, rbx
call __Unwind_Resume
|
void fmt::v10::detail::bigint::square(fmt::v10::detail::bigint *this)
{
long long v2; // r15
unsigned long long v3; // r14
unsigned long long v4; // rax
unsigned int *v5; // rdx
long long v6; // rsi
long long v7; // r8
unsigned long long v8; // rax
unsigned long long v9; // rcx
unsigned int *v10; // r9
long long v11; // r10
unsigned long long v12; // kr00_8
char *v14; // rsi
long long v15; // rdi
char *v16; // r8
int v17; // r9d
int v18; // r10d
unsigned int v19; // r11d
char *v20; // r14
long long v21; // r12
__int128 v22; // rt0
char v24[8]; // [rsp+8h] [rbp-D0h] BYREF
char *v25; // [rsp+10h] [rbp-C8h]
long long v26; // [rsp+20h] [rbp-B8h]
char v27; // [rsp+28h] [rbp-B0h] BYREF
v2 = *((_QWORD *)this + 2);
v3 = (unsigned int)(2 * v2);
fmt::v10::basic_memory_buffer<unsigned int,32ul,std::allocator<unsigned int>>::basic_memory_buffer(v24, this);
v4 = *((_QWORD *)this + 3);
if ( v4 < v3 )
{
(**(void ( ***)(fmt::v10::detail::bigint *, _QWORD))this)(this, (unsigned int)(2 * v2));
v4 = *((_QWORD *)this + 3);
}
if ( v4 >= v3 )
v4 = (unsigned int)(2 * v2);
*((_QWORD *)this + 2) = v4;
if ( (int)v2 <= 0 )
{
v8 = 0LL;
v9 = 0LL;
}
else
{
v5 = (unsigned int *)v25;
v6 = *((_QWORD *)this + 1);
v7 = 0LL;
v8 = 0LL;
v9 = 0LL;
do
{
v10 = v5;
v11 = v7;
do
{
v12 = *v10 * (unsigned long long)v5[v11] + v8;
v9 = (__PAIR128__(v9, *v10 * (unsigned long long)v5[v11]) + v8) >> 64;
v8 = v12;
++v10;
}
while ( v11-- != 0 );
*(_DWORD *)(v6 + 4 * v7) = v12;
v8 = (__int128)__PAIR128__(v9, v12) >> 32;
v9 >>= 32;
++v7;
}
while ( v7 != (v2 & 0x7FFFFFFF) );
}
if ( (int)v3 > (int)v2 )
{
v14 = v25;
v15 = *((_QWORD *)this + 1);
v16 = &v25[4 * (int)v2];
v17 = -(int)v2;
v18 = 1;
v19 = v2;
do
{
if ( (int)(v19 - (v2 - 1)) < (int)v2 )
{
v20 = &v14[4 * v18];
v21 = -1LL;
do
{
v9 = (__PAIR128__(v9, *(unsigned int *)v20 * (unsigned long long)*(unsigned int *)&v16[4 * v21]) + v8) >> 64;
v8 += *(unsigned int *)v20 * (unsigned long long)*(unsigned int *)&v16[4 * v21--];
v20 += 4;
}
while ( v17 != (_DWORD)v21 );
}
*(_DWORD *)(v15 + 4LL * v19) = v8;
*(_QWORD *)&v22 = v8;
*((_QWORD *)&v22 + 1) = v9;
v8 = v22 >> 32;
v9 >>= 32;
++v19;
++v17;
}
while ( v18++ != (_DWORD)v2 );
}
fmt::v10::detail::bigint::remove_leading_zeros(this);
*((_DWORD *)this + 40) *= 2;
if ( v25 != &v27 )
operator delete(v25, 4 * v26);
}
|
square:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xa8
MOV RBX,RDI
MOV R15,qword ptr [RDI + 0x10]
LEA R14D,[R15 + R15*0x1]
LEA RDI,[RSP + 0x8]
MOV RSI,RBX
CALL 0x001a1780
MOV RAX,qword ptr [RBX + 0x18]
CMP RAX,R14
JNC 0x001a1635
MOV RAX,qword ptr [RBX]
LAB_001a1629:
MOV RDI,RBX
MOV RSI,R14
CALL qword ptr [RAX]
MOV RAX,qword ptr [RBX + 0x18]
LAB_001a1635:
CMP RAX,R14
CMOVNC RAX,R14
MOV qword ptr [RBX + 0x10],RAX
TEST R15D,R15D
JLE 0x001a1697
MOV RDX,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RBX + 0x8]
MOV EDI,R15D
AND EDI,0x7fffffff
XOR R8D,R8D
XOR EAX,EAX
XOR ECX,ECX
LAB_001a165e:
MOV R9,RDX
MOV R10,R8
LAB_001a1664:
MOV R11D,dword ptr [R9]
MOV R12D,dword ptr [RDX + R10*0x4]
IMUL R12,R11
ADD RAX,R12
ADC RCX,0x0
ADD R9,0x4
ADD R10,-0x1
JC 0x001a1664
MOV dword ptr [RSI + R8*0x4],EAX
SHRD RAX,RCX,0x20
SHR RCX,0x20
INC R8
CMP R8,RDI
JNZ 0x001a165e
JMP 0x001a169b
LAB_001a1697:
XOR EAX,EAX
XOR ECX,ECX
LAB_001a169b:
CMP R14D,R15D
JLE 0x001a171b
LEA EDX,[R15 + -0x1]
MOV RSI,qword ptr [RSP + 0x10]
MOV RDI,qword ptr [RBX + 0x8]
MOVSXD R8,R15D
LEA R8,[RSI + R8*0x4]
MOV R9D,R15D
NEG R9D
MOV R10D,0x1
MOV R11D,R15D
LAB_001a16c3:
MOV EBP,R11D
SUB EBP,EDX
CMP EBP,R15D
JGE 0x001a16f9
MOVSXD R14,R10D
LEA R14,[RSI + R14*0x4]
MOV R12,-0x1
LAB_001a16db:
MOV R13D,dword ptr [R14]
MOV EBP,dword ptr [R8 + R12*0x4]
IMUL RBP,R13
ADD RAX,RBP
ADC RCX,0x0
DEC R12
ADD R14,0x4
CMP R9D,R12D
JNZ 0x001a16db
LAB_001a16f9:
MOV R14D,R11D
MOV dword ptr [RDI + R14*0x4],EAX
SHRD RAX,RCX,0x20
SHR RCX,0x20
INC R11D
LEA EBP,[R10 + 0x1]
INC R9
CMP R10D,R15D
MOV R10D,EBP
JNZ 0x001a16c3
LAB_001a171b:
MOV RDI,RBX
CALL 0x001a17aa
LAB_001a1723:
SHL dword ptr [RBX + 0xa0],0x1
LEA RAX,[RSP + 0x28]
MOV RDI,qword ptr [RAX + -0x18]
CMP RDI,RAX
JZ 0x001a1745
MOV RSI,qword ptr [RSP + 0x20]
SHL RSI,0x2
CALL 0x001927a0
LAB_001a1745:
ADD RSP,0xa8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* fmt::v10::detail::bigint::square() */
void __thiscall fmt::v10::detail::bigint::square(bigint *this)
{
long lVar1;
uint uVar2;
ulong uVar3;
ulong uVar4;
ulong uVar5;
int iVar6;
uint *puVar7;
uint uVar8;
ulong uVar9;
ulong uVar10;
long lVar11;
bool bVar12;
basic_memory_buffer<unsigned_int,32ul,std::allocator<unsigned_int>> local_d0 [8];
uint *local_c8;
long local_b8;
uint local_b0 [32];
uVar10 = *(ulong *)(this + 0x10);
uVar2 = (uint)uVar10;
uVar4 = (ulong)(uVar2 * 2);
basic_memory_buffer<unsigned_int,32ul,std::allocator<unsigned_int>>::basic_memory_buffer
(local_d0,(basic_memory_buffer *)this);
uVar3 = *(ulong *)(this + 0x18);
if (uVar3 < uVar4) {
/* try { // try from 001a1629 to 001a1630 has its CatchHandler @ 001a1757 */
(*(code *)**(int8 **)this)(this,uVar4);
uVar3 = *(ulong *)(this + 0x18);
}
if (uVar4 <= uVar3) {
uVar3 = uVar4;
}
*(ulong *)(this + 0x10) = uVar3;
if ((int)uVar2 < 1) {
uVar3 = 0;
uVar4 = 0;
}
else {
lVar1 = *(long *)(this + 8);
uVar9 = 0;
uVar3 = 0;
uVar4 = 0;
puVar7 = local_c8;
uVar5 = uVar9;
do {
do {
bVar12 = CARRY8(uVar3,(ulong)local_c8[uVar9] * (ulong)*puVar7);
uVar3 = uVar3 + (ulong)local_c8[uVar9] * (ulong)*puVar7;
uVar4 = uVar4 + bVar12;
bVar12 = uVar9 != 0;
uVar9 = uVar9 - 1;
puVar7 = puVar7 + 1;
} while (bVar12);
*(int *)(lVar1 + uVar5 * 4) = (int)uVar3;
uVar3 = uVar3 >> 0x20 | uVar4 << 0x20;
uVar4 = uVar4 >> 0x20;
uVar9 = uVar5 + 1;
puVar7 = local_c8;
uVar5 = uVar9;
} while (uVar9 != (uVar2 & 0x7fffffff));
}
if ((int)uVar2 < (int)(uVar2 * 2)) {
lVar1 = *(long *)(this + 8);
iVar6 = -uVar2;
uVar10 = uVar10 & 0xffffffff;
uVar8 = 1;
do {
if ((int)((int)uVar10 - (uVar2 - 1)) < (int)uVar2) {
puVar7 = local_c8 + (int)uVar8;
lVar11 = -1;
do {
bVar12 = CARRY8(uVar3,(ulong)local_c8[(int)uVar2 + lVar11] * (ulong)*puVar7);
uVar3 = uVar3 + (ulong)local_c8[(int)uVar2 + lVar11] * (ulong)*puVar7;
uVar4 = uVar4 + bVar12;
lVar11 = lVar11 + -1;
puVar7 = puVar7 + 1;
} while (iVar6 != (int)lVar11);
}
*(int *)(lVar1 + uVar10 * 4) = (int)uVar3;
uVar3 = uVar3 >> 0x20 | uVar4 << 0x20;
uVar4 = uVar4 >> 0x20;
uVar10 = (ulong)((int)uVar10 + 1);
iVar6 = iVar6 + 1;
bVar12 = uVar8 != uVar2;
uVar8 = uVar8 + 1;
} while (bVar12);
}
/* try { // try from 001a171b to 001a1722 has its CatchHandler @ 001a1759 */
remove_leading_zeros(this);
*(int *)(this + 0xa0) = *(int *)(this + 0xa0) << 1;
if (local_c8 != local_b0) {
operator_delete(local_c8,local_b8 << 2);
}
return;
}
|
|
66,291 |
JS_InitAtoms
|
bluesky950520[P]quickjs/quickjs.c
|
static int JS_InitAtoms(JSRuntime *rt)
{
int i, len, atom_type;
const char *p;
rt->atom_hash_size = 0;
rt->atom_hash = NULL;
rt->atom_count = 0;
rt->atom_size = 0;
rt->atom_free_index = 0;
if (JS_ResizeAtomHash(rt, 256)) /* there are at least 195 predefined atoms */
return -1;
p = js_atom_init;
for(i = 1; i < JS_ATOM_END; i++) {
if (i == JS_ATOM_Private_brand)
atom_type = JS_ATOM_TYPE_PRIVATE;
else if (i >= JS_ATOM_Symbol_toPrimitive)
atom_type = JS_ATOM_TYPE_SYMBOL;
else
atom_type = JS_ATOM_TYPE_STRING;
len = strlen(p);
if (__JS_NewAtomInit(rt, p, len, atom_type) == JS_ATOM_NULL)
return -1;
p = p + len + 1;
}
return 0;
}
|
O0
|
c
|
JS_InitAtoms:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq 0x18(%rsp), %rax
movl $0x0, 0x50(%rax)
movq 0x18(%rsp), %rax
movq $0x0, 0x60(%rax)
movq 0x18(%rsp), %rax
movl $0x0, 0x54(%rax)
movq 0x18(%rsp), %rax
movl $0x0, 0x58(%rax)
movq 0x18(%rsp), %rax
movl $0x0, 0x70(%rax)
movq 0x18(%rsp), %rdi
movl $0x100, %esi # imm = 0x100
callq 0x5c880
cmpl $0x0, %eax
je 0x22427
movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF
jmp 0x224d8
leaq 0xea5e2(%rip), %rax # 0x10ca10
movq %rax, (%rsp)
movl $0x1, 0x14(%rsp)
cmpl $0xe0, 0x14(%rsp)
jge 0x224d0
cmpl $0xd2, 0x14(%rsp)
jne 0x2245c
movl $0x4, 0xc(%rsp)
jmp 0x2247a
cmpl $0xd3, 0x14(%rsp)
jl 0x22470
movl $0x3, 0xc(%rsp)
jmp 0x22478
movl $0x1, 0xc(%rsp)
jmp 0x2247a
movq (%rsp), %rdi
callq 0xe240
movl %eax, 0x10(%rsp)
movq 0x18(%rsp), %rdi
movq (%rsp), %rsi
movl 0x10(%rsp), %edx
movl 0xc(%rsp), %ecx
callq 0x29340
cmpl $0x0, %eax
jne 0x224ac
movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF
jmp 0x224d8
movq (%rsp), %rax
movslq 0x10(%rsp), %rcx
addq %rcx, %rax
addq $0x1, %rax
movq %rax, (%rsp)
movl 0x14(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x14(%rsp)
jmp 0x2243a
movl $0x0, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
|
JS_InitAtoms:
sub rsp, 28h
mov [rsp+28h+var_10], rdi
mov rax, [rsp+28h+var_10]
mov dword ptr [rax+50h], 0
mov rax, [rsp+28h+var_10]
mov qword ptr [rax+60h], 0
mov rax, [rsp+28h+var_10]
mov dword ptr [rax+54h], 0
mov rax, [rsp+28h+var_10]
mov dword ptr [rax+58h], 0
mov rax, [rsp+28h+var_10]
mov dword ptr [rax+70h], 0
mov rdi, [rsp+28h+var_10]
mov esi, 100h
call JS_ResizeAtomHash
cmp eax, 0
jz short loc_22427
mov [rsp+28h+var_4], 0FFFFFFFFh
jmp loc_224D8
loc_22427:
lea rax, js_atom_init; "null"
mov [rsp+28h+var_28], rax
mov [rsp+28h+var_14], 1
loc_2243A:
cmp [rsp+28h+var_14], 0E0h
jge loc_224D0
cmp [rsp+28h+var_14], 0D2h
jnz short loc_2245C
mov [rsp+28h+var_1C], 4
jmp short loc_2247A
loc_2245C:
cmp [rsp+28h+var_14], 0D3h
jl short loc_22470
mov [rsp+28h+var_1C], 3
jmp short loc_22478
loc_22470:
mov [rsp+28h+var_1C], 1
loc_22478:
jmp short $+2
loc_2247A:
mov rdi, [rsp+28h+var_28]
call _strlen
mov [rsp+28h+var_18], eax
mov rdi, [rsp+28h+var_10]
mov rsi, [rsp+28h+var_28]
mov edx, [rsp+28h+var_18]
mov ecx, [rsp+28h+var_1C]
call __JS_NewAtomInit
cmp eax, 0
jnz short loc_224AC
mov [rsp+28h+var_4], 0FFFFFFFFh
jmp short loc_224D8
loc_224AC:
mov rax, [rsp+28h+var_28]
movsxd rcx, [rsp+28h+var_18]
add rax, rcx
add rax, 1
mov [rsp+28h+var_28], rax
mov eax, [rsp+28h+var_14]
add eax, 1
mov [rsp+28h+var_14], eax
jmp loc_2243A
loc_224D0:
mov [rsp+28h+var_4], 0
loc_224D8:
mov eax, [rsp+28h+var_4]
add rsp, 28h
retn
|
long long JS_InitAtoms(long long a1)
{
const char *v2; // [rsp+0h] [rbp-28h]
unsigned int v3; // [rsp+Ch] [rbp-1Ch]
unsigned int v4; // [rsp+10h] [rbp-18h]
int i; // [rsp+14h] [rbp-14h]
*(_DWORD *)(a1 + 80) = 0;
*(_QWORD *)(a1 + 96) = 0LL;
*(_DWORD *)(a1 + 84) = 0;
*(_DWORD *)(a1 + 88) = 0;
*(_DWORD *)(a1 + 112) = 0;
if ( (unsigned int)JS_ResizeAtomHash(a1, 256LL) )
{
return (unsigned int)-1;
}
else
{
v2 = "null";
for ( i = 1; i < 224; ++i )
{
if ( i == 210 )
{
v3 = 4;
}
else if ( i < 211 )
{
v3 = 1;
}
else
{
v3 = 3;
}
v4 = strlen(v2);
if ( !(unsigned int)_JS_NewAtomInit(a1, v2, v4, v3) )
return (unsigned int)-1;
v2 += (int)v4 + 1;
}
return 0;
}
}
|
JS_InitAtoms:
SUB RSP,0x28
MOV qword ptr [RSP + 0x18],RDI
MOV RAX,qword ptr [RSP + 0x18]
MOV dword ptr [RAX + 0x50],0x0
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RAX + 0x60],0x0
MOV RAX,qword ptr [RSP + 0x18]
MOV dword ptr [RAX + 0x54],0x0
MOV RAX,qword ptr [RSP + 0x18]
MOV dword ptr [RAX + 0x58],0x0
MOV RAX,qword ptr [RSP + 0x18]
MOV dword ptr [RAX + 0x70],0x0
MOV RDI,qword ptr [RSP + 0x18]
MOV ESI,0x100
CALL 0x0015c880
CMP EAX,0x0
JZ 0x00122427
MOV dword ptr [RSP + 0x24],0xffffffff
JMP 0x001224d8
LAB_00122427:
LEA RAX,[0x20ca10]
MOV qword ptr [RSP],RAX
MOV dword ptr [RSP + 0x14],0x1
LAB_0012243a:
CMP dword ptr [RSP + 0x14],0xe0
JGE 0x001224d0
CMP dword ptr [RSP + 0x14],0xd2
JNZ 0x0012245c
MOV dword ptr [RSP + 0xc],0x4
JMP 0x0012247a
LAB_0012245c:
CMP dword ptr [RSP + 0x14],0xd3
JL 0x00122470
MOV dword ptr [RSP + 0xc],0x3
JMP 0x00122478
LAB_00122470:
MOV dword ptr [RSP + 0xc],0x1
LAB_00122478:
JMP 0x0012247a
LAB_0012247a:
MOV RDI,qword ptr [RSP]
CALL 0x0010e240
MOV dword ptr [RSP + 0x10],EAX
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RSP]
MOV EDX,dword ptr [RSP + 0x10]
MOV ECX,dword ptr [RSP + 0xc]
CALL 0x00129340
CMP EAX,0x0
JNZ 0x001224ac
MOV dword ptr [RSP + 0x24],0xffffffff
JMP 0x001224d8
LAB_001224ac:
MOV RAX,qword ptr [RSP]
MOVSXD RCX,dword ptr [RSP + 0x10]
ADD RAX,RCX
ADD RAX,0x1
MOV qword ptr [RSP],RAX
MOV EAX,dword ptr [RSP + 0x14]
ADD EAX,0x1
MOV dword ptr [RSP + 0x14],EAX
JMP 0x0012243a
LAB_001224d0:
MOV dword ptr [RSP + 0x24],0x0
LAB_001224d8:
MOV EAX,dword ptr [RSP + 0x24]
ADD RSP,0x28
RET
|
int4 JS_InitAtoms(long param_1)
{
int iVar1;
size_t sVar2;
char *local_28;
int4 local_1c;
int local_14;
int4 local_4;
*(int4 *)(param_1 + 0x50) = 0;
*(int8 *)(param_1 + 0x60) = 0;
*(int4 *)(param_1 + 0x54) = 0;
*(int4 *)(param_1 + 0x58) = 0;
*(int4 *)(param_1 + 0x70) = 0;
iVar1 = JS_ResizeAtomHash(param_1,0x100);
if (iVar1 == 0) {
local_28 = "null";
for (local_14 = 1; local_14 < 0xe0; local_14 = local_14 + 1) {
if (local_14 == 0xd2) {
local_1c = 4;
}
else if (local_14 < 0xd3) {
local_1c = 1;
}
else {
local_1c = 3;
}
sVar2 = strlen(local_28);
iVar1 = __JS_NewAtomInit(param_1,local_28,sVar2 & 0xffffffff,local_1c);
if (iVar1 == 0) {
return 0xffffffff;
}
local_28 = local_28 + (long)(int)sVar2 + 1;
}
local_4 = 0;
}
else {
local_4 = 0xffffffff;
}
return local_4;
}
|
|
66,292 |
my_uca_coll_init_utf8mb3
|
eloqsql/strings/ctype-uca.c
|
static my_bool
my_uca_coll_init_utf8mb3(struct charset_info_st *cs, MY_CHARSET_LOADER *loader)
{
if (my_coll_init_uca(cs, loader))
return TRUE;
if (my_uca_collation_can_optimize_no_contractions(cs))
my_uca_handler_map(cs, &my_uca_package_utf8mb3,
&my_uca_package_no_contractions_utf8mb3);
return FALSE;
}
|
O0
|
c
|
my_uca_coll_init_utf8mb3:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x518f0
cmpb $0x0, %al
je 0x52d87
movb $0x1, -0x1(%rbp)
jmp 0x52daf
movq -0x10(%rbp), %rdi
callq 0x5d8e0
cmpb $0x0, %al
je 0x52dab
movq -0x10(%rbp), %rdi
leaq 0x2781d1(%rip), %rsi # 0x2caf70
leaq 0x2781ea(%rip), %rdx # 0x2caf90
callq 0x5d940
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
my_uca_coll_init_utf8mb3:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call my_coll_init_uca
cmp al, 0
jz short loc_52D87
mov [rbp+var_1], 1
jmp short loc_52DAF
loc_52D87:
mov rdi, [rbp+var_10]
call my_uca_collation_can_optimize_no_contractions
cmp al, 0
jz short loc_52DAB
mov rdi, [rbp+var_10]
lea rsi, my_uca_package_utf8mb3
lea rdx, my_uca_package_no_contractions_utf8mb3
call my_uca_handler_map
loc_52DAB:
mov [rbp+var_1], 0
loc_52DAF:
mov al, [rbp+var_1]
add rsp, 20h
pop rbp
retn
|
char my_uca_coll_init_utf8mb3(long long a1, long long a2)
{
if ( (unsigned __int8)my_coll_init_uca(a1, a2) )
return 1;
if ( (unsigned __int8)my_uca_collation_can_optimize_no_contractions(a1) )
my_uca_handler_map(a1, my_uca_package_utf8mb3, my_uca_package_no_contractions_utf8mb3);
return 0;
}
|
my_uca_coll_init_utf8mb3:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x001518f0
CMP AL,0x0
JZ 0x00152d87
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00152daf
LAB_00152d87:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0015d8e0
CMP AL,0x0
JZ 0x00152dab
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x3caf70]
LEA RDX,[0x3caf90]
CALL 0x0015d940
LAB_00152dab:
MOV byte ptr [RBP + -0x1],0x0
LAB_00152daf:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x20
POP RBP
RET
|
int1 my_uca_coll_init_utf8mb3(int8 param_1,int8 param_2)
{
char cVar1;
int1 local_9;
cVar1 = my_coll_init_uca(param_1,param_2);
if (cVar1 == '\0') {
cVar1 = my_uca_collation_can_optimize_no_contractions(param_1);
if (cVar1 != '\0') {
my_uca_handler_map(param_1,my_uca_package_utf8mb3,my_uca_package_no_contractions_utf8mb3);
}
local_9 = 0;
}
else {
local_9 = 1;
}
return local_9;
}
|
|
66,293 |
bf_sqrt
|
bluesky950520[P]quickjs/libbf.c
|
int bf_sqrt(bf_t *r, const bf_t *a, limb_t prec, bf_flags_t flags)
{
bf_context_t *s = a->ctx;
int ret;
assert(r != a);
if (a->len == 0) {
if (a->expn == BF_EXP_NAN) {
bf_set_nan(r);
} else if (a->expn == BF_EXP_INF && a->sign) {
goto invalid_op;
} else {
bf_set(r, a);
}
ret = 0;
} else if (a->sign) {
invalid_op:
bf_set_nan(r);
ret = BF_ST_INVALID_OP;
} else {
limb_t *a1;
slimb_t n, n1;
limb_t res;
/* convert the mantissa to an integer with at least 2 *
prec + 4 bits */
n = (2 * (prec + 2) + 2 * LIMB_BITS - 1) / (2 * LIMB_BITS);
if (bf_resize(r, n))
goto fail;
a1 = bf_malloc(s, sizeof(limb_t) * 2 * n);
if (!a1)
goto fail;
n1 = bf_min(2 * n, a->len);
memset(a1, 0, (2 * n - n1) * sizeof(limb_t));
memcpy(a1 + 2 * n - n1, a->tab + a->len - n1, n1 * sizeof(limb_t));
if (a->expn & 1) {
res = mp_shr(a1, a1, 2 * n, 1, 0);
} else {
res = 0;
}
if (mp_sqrtrem(s, r->tab, a1, n)) {
bf_free(s, a1);
goto fail;
}
if (!res) {
res = mp_scan_nz(a1, n + 1);
}
bf_free(s, a1);
if (!res) {
res = mp_scan_nz(a->tab, a->len - n1);
}
if (res != 0)
r->tab[0] |= 1;
r->sign = 0;
r->expn = (a->expn + 1) >> 1;
ret = bf_round(r, prec, flags);
}
return ret;
fail:
bf_set_nan(r);
return BF_ST_MEM_ERROR;
}
|
O1
|
c
|
bf_sqrt:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %rbx
cmpq $0x0, 0x18(%rsi)
je 0x86c59
cmpl $0x0, 0x8(%r14)
je 0x86cb5
cmpq $0x0, 0x18(%rbx)
je 0x86c3a
movq (%rbx), %rax
movq 0x20(%rbx), %rsi
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
movq %rax, 0x20(%rbx)
movq $0x0, 0x18(%rbx)
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
movq %rax, 0x10(%rbx)
movl $0x0, 0x8(%rbx)
movl $0x1, %eax
jmp 0x86d3c
movq 0x10(%r14), %rax
movabsq $0x7ffffffffffffffe, %rcx # imm = 0x7FFFFFFFFFFFFFFE
cmpq %rcx, %rax
je 0x86d24
movabsq $0x7fffffffffffffff, %r15 # imm = 0x7FFFFFFFFFFFFFFF
cmpq %r15, %rax
jne 0x86d2f
cmpq $0x0, 0x18(%rbx)
je 0x86ca5
movq (%rbx), %rax
movq 0x20(%rbx), %rsi
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
movq %rax, 0x20(%rbx)
movq $0x0, 0x18(%rbx)
movq %r15, 0x10(%rbx)
movl $0x0, 0x8(%rbx)
jmp 0x86d3a
movl %ecx, %ebp
movq %rdx, %r12
movq (%r14), %rax
movq %rax, 0x18(%rsp)
leaq 0x83(,%rdx,2), %r15
movq %r15, %r13
shrq $0x7, %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0x83e5c
movb $0x1, %cl
testl %eax, %eax
je 0x86d4b
testb %cl, %cl
je 0x86d3c
cmpq $0x0, 0x18(%rbx)
je 0x86d08
movq (%rbx), %rax
movq 0x20(%rbx), %rsi
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
movq %rax, 0x20(%rbx)
movq $0x0, 0x18(%rbx)
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
movq %rax, 0x10(%rbx)
movl $0x0, 0x8(%rbx)
movl $0x20, %eax
jmp 0x86d3c
cmpl $0x0, 0x8(%r14)
jne 0x86c18
movq %rbx, %rdi
movq %r14, %rsi
callq 0x84079
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, 0x30(%rsp)
movq %r12, 0x20(%rsp)
movl %ebp, 0xc(%rsp)
movq %r13, %r15
shlq $0x4, %r15
movq 0x18(%rsp), %rax
movq (%rax), %rdi
xorl %esi, %esi
movq %r15, %rdx
callq *0x8(%rax)
testq %rax, %rax
je 0x86e4d
movq %rax, %r12
movq %r13, 0x28(%rsp)
movq %r15, 0x10(%rsp)
leaq (,%r13,2), %r15
movq 0x18(%r14), %rbp
cmpq %rbp, %r15
cmovlq %r15, %rbp
movq %r15, %rdx
subq %rbp, %rdx
shlq $0x3, %rdx
movq %rax, %rdi
xorl %esi, %esi
callq 0xe340
movq 0x10(%rsp), %rdi
addq %r12, %rdi
movq %rbp, 0x10(%rsp)
leaq (,%rbp,8), %rdx
subq %rdx, %rdi
movq 0x18(%r14), %rsi
shlq $0x3, %rsi
addq 0x20(%r14), %rsi
subq %rdx, %rsi
callq 0xe5a0
testb $0x1, 0x10(%r14)
sete %al
cmpq $0x80, 0x30(%rsp)
setb %cl
orb %al, %cl
movb $0x1, %bpl
jne 0x86e1a
incq %r15
xorl %eax, %eax
movq %rax, %rcx
movq -0x10(%r12,%r15,8), %rax
shldq $0x3f, %rax, %rcx
movq %rcx, -0x10(%r12,%r15,8)
decq %r15
cmpq $0x1, %r15
jg 0x86df9
testb $0x1, %al
sete %bpl
movq 0x20(%rbx), %rsi
movq 0x18(%rsp), %r15
movq %r15, %rdi
movq %r12, %rdx
movq 0x28(%rsp), %r13
movq %r13, %rcx
callq 0x86608
testl %eax, %eax
je 0x86e54
movq (%r15), %rdi
movq %r12, %rsi
xorl %edx, %edx
callq *0x8(%r15)
movb $0x1, %cl
jmp 0x86ce2
movb $0x1, %cl
jmp 0x86ce2
testb %bpl, %bpl
je 0x86eaf
xorl %eax, %eax
movl 0xc(%rsp), %ebp
movq (%r12,%rax,8), %r15
cmpq %rax, %r13
je 0x86e70
incq %rax
testq %r15, %r15
je 0x86e5f
movq 0x18(%rsp), %rax
movq (%rax), %rdi
movq %r12, %rsi
xorl %edx, %edx
callq *0x8(%rax)
testq %r15, %r15
movq 0x20(%rsp), %rsi
jne 0x86ec4
movq 0x18(%r14), %rax
subq 0x10(%rsp), %rax
testq %rax, %rax
jle 0x86ecc
movq 0x20(%r14), %rcx
xorl %edx, %edx
cmpq $0x0, (%rcx,%rdx,8)
jne 0x86ec4
incq %rdx
cmpq %rdx, %rax
jne 0x86e9e
jmp 0x86ecc
movq (%r15), %rdi
movq %r12, %rsi
xorl %edx, %edx
callq *0x8(%r15)
movl 0xc(%rsp), %ebp
movq 0x20(%rsp), %rsi
movq 0x20(%rbx), %rax
orq $0x1, (%rax)
movl $0x0, 0x8(%rbx)
movq 0x10(%r14), %rax
incq %rax
sarq %rax
movq %rax, 0x10(%rbx)
movq 0x18(%rbx), %rcx
testq %rcx, %rcx
je 0x86ef9
movq %rbx, %rdi
movl %ebp, %edx
xorl %r8d, %r8d
callq 0x84212
jmp 0x86efb
xorl %eax, %eax
xorl %ecx, %ecx
jmp 0x86ce2
|
bf_sqrt:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov r14, rsi
mov rbx, rdi
cmp qword ptr [rsi+18h], 0
jz short loc_86C59
cmp dword ptr [r14+8], 0
jz loc_86CB5
loc_86C18:
cmp qword ptr [rbx+18h], 0
jz short loc_86C3A
mov rax, [rbx]
mov rsi, [rbx+20h]
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
mov [rbx+20h], rax
mov qword ptr [rbx+18h], 0
loc_86C3A:
mov rax, 7FFFFFFFFFFFFFFFh
mov [rbx+10h], rax
mov dword ptr [rbx+8], 0
mov eax, 1
jmp loc_86D3C
loc_86C59:
mov rax, [r14+10h]
mov rcx, 7FFFFFFFFFFFFFFEh
cmp rax, rcx
jz loc_86D24
mov r15, 7FFFFFFFFFFFFFFFh
cmp rax, r15
jnz loc_86D2F
cmp qword ptr [rbx+18h], 0
jz short loc_86CA5
mov rax, [rbx]
mov rsi, [rbx+20h]
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
mov [rbx+20h], rax
mov qword ptr [rbx+18h], 0
loc_86CA5:
mov [rbx+10h], r15
mov dword ptr [rbx+8], 0
jmp loc_86D3A
loc_86CB5:
mov ebp, ecx
mov r12, rdx
mov rax, [r14]
mov [rsp+68h+var_50], rax
lea r15, ds:83h[rdx*2]
mov r13, r15
shr r13, 7
mov rdi, rbx
mov rsi, r13
call bf_resize
mov cl, 1
test eax, eax
jz short loc_86D4B
loc_86CE2:
test cl, cl
jz short loc_86D3C
cmp qword ptr [rbx+18h], 0
jz short loc_86D08
mov rax, [rbx]
mov rsi, [rbx+20h]
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
mov [rbx+20h], rax
mov qword ptr [rbx+18h], 0
loc_86D08:
mov rax, 7FFFFFFFFFFFFFFFh
mov [rbx+10h], rax
mov dword ptr [rbx+8], 0
mov eax, 20h ; ' '
jmp short loc_86D3C
loc_86D24:
cmp dword ptr [r14+8], 0
jnz loc_86C18
loc_86D2F:
mov rdi, rbx
mov rsi, r14
call bf_set
loc_86D3A:
xor eax, eax
loc_86D3C:
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_86D4B:
mov [rsp+68h+var_38], r15
mov [rsp+68h+var_48], r12
mov [rsp+68h+var_5C], ebp
mov r15, r13
shl r15, 4
mov rax, [rsp+68h+var_50]
mov rdi, [rax]
xor esi, esi
mov rdx, r15
call qword ptr [rax+8]
test rax, rax
jz loc_86E4D
mov r12, rax
mov [rsp+68h+var_40], r13
mov [rsp+68h+var_58], r15
lea r15, ds:0[r13*2]
mov rbp, [r14+18h]
cmp r15, rbp
cmovl rbp, r15
mov rdx, r15
sub rdx, rbp
shl rdx, 3
mov rdi, rax
xor esi, esi
call _memset
mov rdi, [rsp+68h+var_58]
add rdi, r12
mov [rsp+68h+var_58], rbp
lea rdx, ds:0[rbp*8]
sub rdi, rdx
mov rsi, [r14+18h]
shl rsi, 3
add rsi, [r14+20h]
sub rsi, rdx
call _memcpy
test byte ptr [r14+10h], 1
setz al
cmp [rsp+68h+var_38], 80h
setb cl
or cl, al
mov bpl, 1
jnz short loc_86E1A
inc r15
xor eax, eax
loc_86DF9:
mov rcx, rax
mov rax, [r12+r15*8-10h]
shld rcx, rax, 3Fh
mov [r12+r15*8-10h], rcx
dec r15
cmp r15, 1
jg short loc_86DF9
test al, 1
setz bpl
loc_86E1A:
mov rsi, [rbx+20h]
mov r15, [rsp+68h+var_50]
mov rdi, r15
mov rdx, r12
mov r13, [rsp+68h+var_40]
mov rcx, r13
call mp_sqrtrem
test eax, eax
jz short loc_86E54
mov rdi, [r15]
mov rsi, r12
xor edx, edx
call qword ptr [r15+8]
mov cl, 1
jmp loc_86CE2
loc_86E4D:
mov cl, 1
jmp loc_86CE2
loc_86E54:
test bpl, bpl
jz short loc_86EAF
xor eax, eax
mov ebp, [rsp+68h+var_5C]
loc_86E5F:
mov r15, [r12+rax*8]
cmp r13, rax
jz short loc_86E70
inc rax
test r15, r15
jz short loc_86E5F
loc_86E70:
mov rax, [rsp+68h+var_50]
mov rdi, [rax]
mov rsi, r12
xor edx, edx
call qword ptr [rax+8]
test r15, r15
mov rsi, [rsp+68h+var_48]
jnz short loc_86EC4
mov rax, [r14+18h]
sub rax, [rsp+68h+var_58]
test rax, rax
jle short loc_86ECC
mov rcx, [r14+20h]
xor edx, edx
loc_86E9E:
cmp qword ptr [rcx+rdx*8], 0
jnz short loc_86EC4
inc rdx
cmp rax, rdx
jnz short loc_86E9E
jmp short loc_86ECC
loc_86EAF:
mov rdi, [r15]
mov rsi, r12
xor edx, edx
call qword ptr [r15+8]
mov ebp, [rsp+68h+var_5C]
mov rsi, [rsp+68h+var_48]
loc_86EC4:
mov rax, [rbx+20h]
or qword ptr [rax], 1
loc_86ECC:
mov dword ptr [rbx+8], 0
mov rax, [r14+10h]
inc rax
sar rax, 1
mov [rbx+10h], rax
mov rcx, [rbx+18h]
test rcx, rcx
jz short loc_86EF9
mov rdi, rbx
mov edx, ebp
xor r8d, r8d
call __bf_round
jmp short loc_86EFB
loc_86EF9:
xor eax, eax
loc_86EFB:
xor ecx, ecx
jmp loc_86CE2
|
long long bf_sqrt(_QWORD **a1, long long a2, long long a3, unsigned int a4)
{
long long result; // rax
long long v6; // rax
unsigned long long v9; // r15
unsigned long long v10; // r13
long long v11; // rcx
long long v12; // r12
long long v13; // r15
long long v14; // rbp
bool v15; // bp
long long v16; // r15
long long v17; // rax
long long v18; // rcx
__int128 v19; // rt0
long long v20; // rax
unsigned int v21; // ebp
long long v22; // r15
long long v23; // rsi
long long v24; // rdx
unsigned long long v25; // rcx
unsigned int v26; // [rsp+Ch] [rbp-5Ch]
long long v27; // [rsp+10h] [rbp-58h]
_QWORD *v28; // [rsp+18h] [rbp-50h]
long long v29; // [rsp+20h] [rbp-48h]
unsigned long long v30; // [rsp+30h] [rbp-38h]
if ( !*(_QWORD *)(a2 + 24) )
{
v6 = *(_QWORD *)(a2 + 16);
if ( v6 == 0x7FFFFFFFFFFFFFFELL )
{
if ( *(_DWORD *)(a2 + 8) )
goto LABEL_3;
}
else if ( v6 == 0x7FFFFFFFFFFFFFFFLL )
{
if ( a1[3] )
{
a1[4] = (_QWORD *)((long long ( *)(_QWORD, _QWORD *, _QWORD))(*a1)[1])(**a1, a1[4], 0LL);
a1[3] = 0LL;
}
a1[2] = (_QWORD *)0x7FFFFFFFFFFFFFFFLL;
*((_DWORD *)a1 + 2) = 0;
return 0LL;
}
bf_set(a1, a2);
return 0LL;
}
if ( *(_DWORD *)(a2 + 8) )
{
LABEL_3:
if ( a1[3] )
{
a1[4] = (_QWORD *)((long long ( *)(_QWORD, _QWORD *, _QWORD))(*a1)[1])(**a1, a1[4], 0LL);
a1[3] = 0LL;
}
a1[2] = (_QWORD *)0x7FFFFFFFFFFFFFFFLL;
*((_DWORD *)a1 + 2) = 0;
return 1LL;
}
v28 = *(_QWORD **)a2;
v9 = 2 * a3 + 131;
v10 = v9 >> 7;
result = bf_resize((long long)a1, v9 >> 7);
LOBYTE(v11) = 1;
if ( !(_DWORD)result )
{
v30 = v9;
v29 = a3;
v26 = a4;
result = ((long long ( *)(_QWORD, _QWORD, unsigned long long, long long))v28[1])(*v28, 0LL, 16 * v10, v11);
if ( !result )
{
LOBYTE(v11) = 1;
goto LABEL_12;
}
v12 = result;
v13 = 2 * v10;
v14 = *(_QWORD *)(a2 + 24);
if ( (long long)(2 * v10) < v14 )
v14 = 2 * v10;
memset(result, 0LL, 8 * (v13 - v14));
v27 = v14;
memcpy(v12 + 16 * v10 - 8 * v14, *(_QWORD *)(a2 + 32) + 8LL * *(_QWORD *)(a2 + 24) - 8 * v14, 8 * v14);
v15 = 1;
if ( (*(_BYTE *)(a2 + 16) & 1) != 0 && v30 >= 0x80 )
{
v16 = v13 + 1;
v17 = 0LL;
do
{
v18 = v17;
v17 = *(_QWORD *)(v12 + 8 * v16 - 16);
*((_QWORD *)&v19 + 1) = v18;
*(_QWORD *)&v19 = v17;
*(_QWORD *)(v12 + 8 * v16-- - 16) = v19 >> 1;
}
while ( v16 > 1 );
v15 = (v17 & 1) == 0;
}
if ( (unsigned int)mp_sqrtrem(v28, (long long)a1[4], v12, v10) )
{
result = ((long long ( *)(_QWORD, long long, _QWORD))v28[1])(*v28, v12, 0LL);
LOBYTE(v11) = 1;
goto LABEL_12;
}
if ( v15 )
{
v20 = 0LL;
v21 = v26;
do
{
v22 = *(_QWORD *)(v12 + 8 * v20);
if ( v10 == v20 )
break;
++v20;
}
while ( !v22 );
((void ( *)(_QWORD, long long, _QWORD))v28[1])(*v28, v12, 0LL);
v23 = v29;
if ( !v22 )
{
if ( *(_QWORD *)(a2 + 24) - v27 <= 0 )
{
LABEL_42:
*((_DWORD *)a1 + 2) = 0;
a1[2] = (_QWORD *)((*(_QWORD *)(a2 + 16) + 1LL) >> 1);
v25 = (unsigned long long)a1[3];
if ( v25 )
result = _bf_round((long long)a1, v23, v21, v25, 0);
else
result = 0LL;
LOBYTE(v11) = 0;
goto LABEL_12;
}
v24 = 0LL;
while ( !*(_QWORD *)(*(_QWORD *)(a2 + 32) + 8 * v24) )
{
if ( *(_QWORD *)(a2 + 24) - v27 == ++v24 )
goto LABEL_42;
}
}
}
else
{
((void ( *)(_QWORD, long long, _QWORD))v28[1])(*v28, v12, 0LL);
v21 = v26;
v23 = v29;
}
*a1[4] |= 1uLL;
goto LABEL_42;
}
LABEL_12:
if ( (_BYTE)v11 )
{
if ( a1[3] )
{
a1[4] = (_QWORD *)((long long ( *)(_QWORD, _QWORD *, _QWORD))(*a1)[1])(**a1, a1[4], 0LL);
a1[3] = 0LL;
}
a1[2] = (_QWORD *)0x7FFFFFFFFFFFFFFFLL;
*((_DWORD *)a1 + 2) = 0;
return 32LL;
}
return result;
}
|
bf_sqrt:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV R14,RSI
MOV RBX,RDI
CMP qword ptr [RSI + 0x18],0x0
JZ 0x00186c59
CMP dword ptr [R14 + 0x8],0x0
JZ 0x00186cb5
LAB_00186c18:
CMP qword ptr [RBX + 0x18],0x0
JZ 0x00186c3a
MOV RAX,qword ptr [RBX]
MOV RSI,qword ptr [RBX + 0x20]
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
MOV qword ptr [RBX + 0x20],RAX
MOV qword ptr [RBX + 0x18],0x0
LAB_00186c3a:
MOV RAX,0x7fffffffffffffff
MOV qword ptr [RBX + 0x10],RAX
MOV dword ptr [RBX + 0x8],0x0
MOV EAX,0x1
JMP 0x00186d3c
LAB_00186c59:
MOV RAX,qword ptr [R14 + 0x10]
MOV RCX,0x7ffffffffffffffe
CMP RAX,RCX
JZ 0x00186d24
MOV R15,0x7fffffffffffffff
CMP RAX,R15
JNZ 0x00186d2f
CMP qword ptr [RBX + 0x18],0x0
JZ 0x00186ca5
MOV RAX,qword ptr [RBX]
MOV RSI,qword ptr [RBX + 0x20]
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
MOV qword ptr [RBX + 0x20],RAX
MOV qword ptr [RBX + 0x18],0x0
LAB_00186ca5:
MOV qword ptr [RBX + 0x10],R15
MOV dword ptr [RBX + 0x8],0x0
JMP 0x00186d3a
LAB_00186cb5:
MOV EBP,ECX
MOV R12,RDX
MOV RAX,qword ptr [R14]
MOV qword ptr [RSP + 0x18],RAX
LEA R15,[0x83 + RDX*0x2]
MOV R13,R15
SHR R13,0x7
MOV RDI,RBX
MOV RSI,R13
CALL 0x00183e5c
MOV CL,0x1
TEST EAX,EAX
JZ 0x00186d4b
LAB_00186ce2:
TEST CL,CL
JZ 0x00186d3c
CMP qword ptr [RBX + 0x18],0x0
JZ 0x00186d08
MOV RAX,qword ptr [RBX]
MOV RSI,qword ptr [RBX + 0x20]
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
MOV qword ptr [RBX + 0x20],RAX
MOV qword ptr [RBX + 0x18],0x0
LAB_00186d08:
MOV RAX,0x7fffffffffffffff
MOV qword ptr [RBX + 0x10],RAX
MOV dword ptr [RBX + 0x8],0x0
MOV EAX,0x20
JMP 0x00186d3c
LAB_00186d24:
CMP dword ptr [R14 + 0x8],0x0
JNZ 0x00186c18
LAB_00186d2f:
MOV RDI,RBX
MOV RSI,R14
CALL 0x00184079
LAB_00186d3a:
XOR EAX,EAX
LAB_00186d3c:
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00186d4b:
MOV qword ptr [RSP + 0x30],R15
MOV qword ptr [RSP + 0x20],R12
MOV dword ptr [RSP + 0xc],EBP
MOV R15,R13
SHL R15,0x4
MOV RAX,qword ptr [RSP + 0x18]
MOV RDI,qword ptr [RAX]
XOR ESI,ESI
MOV RDX,R15
CALL qword ptr [RAX + 0x8]
TEST RAX,RAX
JZ 0x00186e4d
MOV R12,RAX
MOV qword ptr [RSP + 0x28],R13
MOV qword ptr [RSP + 0x10],R15
LEA R15,[R13*0x2]
MOV RBP,qword ptr [R14 + 0x18]
CMP R15,RBP
CMOVL RBP,R15
MOV RDX,R15
SUB RDX,RBP
SHL RDX,0x3
MOV RDI,RAX
XOR ESI,ESI
CALL 0x0010e340
MOV RDI,qword ptr [RSP + 0x10]
ADD RDI,R12
MOV qword ptr [RSP + 0x10],RBP
LEA RDX,[RBP*0x8]
SUB RDI,RDX
MOV RSI,qword ptr [R14 + 0x18]
SHL RSI,0x3
ADD RSI,qword ptr [R14 + 0x20]
SUB RSI,RDX
CALL 0x0010e5a0
TEST byte ptr [R14 + 0x10],0x1
SETZ AL
CMP qword ptr [RSP + 0x30],0x80
SETC CL
OR CL,AL
MOV BPL,0x1
JNZ 0x00186e1a
INC R15
XOR EAX,EAX
LAB_00186df9:
MOV RCX,RAX
MOV RAX,qword ptr [R12 + R15*0x8 + -0x10]
SHLD RCX,RAX,0x3f
MOV qword ptr [R12 + R15*0x8 + -0x10],RCX
DEC R15
CMP R15,0x1
JG 0x00186df9
TEST AL,0x1
SETZ BPL
LAB_00186e1a:
MOV RSI,qword ptr [RBX + 0x20]
MOV R15,qword ptr [RSP + 0x18]
MOV RDI,R15
MOV RDX,R12
MOV R13,qword ptr [RSP + 0x28]
MOV RCX,R13
CALL 0x00186608
TEST EAX,EAX
JZ 0x00186e54
MOV RDI,qword ptr [R15]
MOV RSI,R12
XOR EDX,EDX
CALL qword ptr [R15 + 0x8]
MOV CL,0x1
JMP 0x00186ce2
LAB_00186e4d:
MOV CL,0x1
JMP 0x00186ce2
LAB_00186e54:
TEST BPL,BPL
JZ 0x00186eaf
XOR EAX,EAX
MOV EBP,dword ptr [RSP + 0xc]
LAB_00186e5f:
MOV R15,qword ptr [R12 + RAX*0x8]
CMP R13,RAX
JZ 0x00186e70
INC RAX
TEST R15,R15
JZ 0x00186e5f
LAB_00186e70:
MOV RAX,qword ptr [RSP + 0x18]
MOV RDI,qword ptr [RAX]
MOV RSI,R12
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
TEST R15,R15
MOV RSI,qword ptr [RSP + 0x20]
JNZ 0x00186ec4
MOV RAX,qword ptr [R14 + 0x18]
SUB RAX,qword ptr [RSP + 0x10]
TEST RAX,RAX
JLE 0x00186ecc
MOV RCX,qword ptr [R14 + 0x20]
XOR EDX,EDX
LAB_00186e9e:
CMP qword ptr [RCX + RDX*0x8],0x0
JNZ 0x00186ec4
INC RDX
CMP RAX,RDX
JNZ 0x00186e9e
JMP 0x00186ecc
LAB_00186eaf:
MOV RDI,qword ptr [R15]
MOV RSI,R12
XOR EDX,EDX
CALL qword ptr [R15 + 0x8]
MOV EBP,dword ptr [RSP + 0xc]
MOV RSI,qword ptr [RSP + 0x20]
LAB_00186ec4:
MOV RAX,qword ptr [RBX + 0x20]
OR qword ptr [RAX],0x1
LAB_00186ecc:
MOV dword ptr [RBX + 0x8],0x0
MOV RAX,qword ptr [R14 + 0x10]
INC RAX
SAR RAX,0x1
MOV qword ptr [RBX + 0x10],RAX
MOV RCX,qword ptr [RBX + 0x18]
TEST RCX,RCX
JZ 0x00186ef9
MOV RDI,RBX
MOV EDX,EBP
XOR R8D,R8D
CALL 0x00184212
JMP 0x00186efb
LAB_00186ef9:
XOR EAX,EAX
LAB_00186efb:
XOR ECX,ECX
JMP 0x00186ce2
|
int8 bf_sqrt(long *param_1,long *param_2,long param_3,int4 param_4)
{
int8 *puVar1;
ulong uVar2;
int iVar3;
long lVar4;
int8 uVar5;
void *__s;
ulong uVar6;
long lVar7;
ulong uVar8;
bool bVar9;
if (param_2[3] == 0) {
if (param_2[2] == 0x7ffffffffffffffe) {
if ((int)param_2[1] != 0) goto LAB_00186c18;
}
else if (param_2[2] == 0x7fffffffffffffff) {
if (param_1[3] != 0) {
lVar4 = (*(code *)((int8 *)*param_1)[1])(*(int8 *)*param_1,param_1[4],0);
param_1[4] = lVar4;
param_1[3] = 0;
}
param_1[2] = 0x7fffffffffffffff;
*(int4 *)(param_1 + 1) = 0;
return 0;
}
bf_set(param_1,param_2);
return 0;
}
if ((int)param_2[1] != 0) {
LAB_00186c18:
if (param_1[3] != 0) {
lVar4 = (*(code *)((int8 *)*param_1)[1])(*(int8 *)*param_1,param_1[4],0);
param_1[4] = lVar4;
param_1[3] = 0;
}
param_1[2] = 0x7fffffffffffffff;
*(int4 *)(param_1 + 1) = 0;
return 1;
}
puVar1 = (int8 *)*param_2;
uVar6 = param_3 * 2 + 0x83;
uVar8 = uVar6 >> 7;
uVar5 = bf_resize(param_1);
bVar9 = true;
if ((int)uVar5 != 0) goto LAB_00186ce2;
__s = (void *)(*(code *)puVar1[1])(*puVar1,0,uVar8 * 0x10);
if (__s == (void *)0x0) {
bVar9 = true;
uVar5 = 0;
goto LAB_00186ce2;
}
lVar4 = uVar8 * 2;
lVar7 = param_2[3];
if (lVar4 < param_2[3]) {
lVar7 = lVar4;
}
memset(__s,0,(lVar4 - lVar7) * 8);
memcpy((void *)((long)__s + lVar7 * -8 + uVar8 * 0x10),
(void *)(param_2[3] * 8 + param_2[4] + lVar7 * -8),lVar7 * 8);
bVar9 = true;
if (0x7f < uVar6 && (*(byte *)(param_2 + 2) & 1) != 0) {
lVar4 = lVar4 + 1;
uVar6 = 0;
do {
uVar2 = *(ulong *)((long)__s + lVar4 * 8 + -0x10);
*(ulong *)((long)__s + lVar4 * 8 + -0x10) = uVar6 << 0x3f | uVar2 >> 1;
lVar4 = lVar4 + -1;
uVar6 = uVar2;
} while (1 < lVar4);
bVar9 = (uVar2 & 1) == 0;
}
iVar3 = mp_sqrtrem(puVar1,param_1[4],__s,uVar8);
if (iVar3 != 0) {
uVar5 = (*(code *)puVar1[1])(*puVar1,__s,0);
bVar9 = true;
goto LAB_00186ce2;
}
if (bVar9) {
uVar6 = 0;
do {
lVar4 = *(long *)((long)__s + uVar6 * 8);
if (uVar8 == uVar6) break;
uVar6 = uVar6 + 1;
} while (lVar4 == 0);
(*(code *)puVar1[1])(*puVar1,__s,0);
if (lVar4 != 0) goto LAB_00186ec4;
if (0 < param_2[3] - lVar7) {
lVar4 = 0;
do {
if (*(long *)(param_2[4] + lVar4 * 8) != 0) goto LAB_00186ec4;
lVar4 = lVar4 + 1;
} while (param_2[3] - lVar7 != lVar4);
}
}
else {
(*(code *)puVar1[1])(*puVar1,__s,0);
LAB_00186ec4:
*(ulong *)param_1[4] = *(ulong *)param_1[4] | 1;
}
*(int4 *)(param_1 + 1) = 0;
param_1[2] = param_2[2] + 1 >> 1;
if (param_1[3] == 0) {
uVar5 = 0;
}
else {
uVar5 = __bf_round(param_1,param_3,param_4,param_1[3],0);
}
bVar9 = false;
LAB_00186ce2:
if (bVar9) {
if (param_1[3] != 0) {
lVar4 = (*(code *)((int8 *)*param_1)[1])(*(int8 *)*param_1,param_1[4],0);
param_1[4] = lVar4;
param_1[3] = 0;
}
param_1[2] = 0x7fffffffffffffff;
*(int4 *)(param_1 + 1) = 0;
return 0x20;
}
return uVar5;
}
|
|
66,294 |
bf_sqrt
|
bluesky950520[P]quickjs/libbf.c
|
int bf_sqrt(bf_t *r, const bf_t *a, limb_t prec, bf_flags_t flags)
{
bf_context_t *s = a->ctx;
int ret;
assert(r != a);
if (a->len == 0) {
if (a->expn == BF_EXP_NAN) {
bf_set_nan(r);
} else if (a->expn == BF_EXP_INF && a->sign) {
goto invalid_op;
} else {
bf_set(r, a);
}
ret = 0;
} else if (a->sign) {
invalid_op:
bf_set_nan(r);
ret = BF_ST_INVALID_OP;
} else {
limb_t *a1;
slimb_t n, n1;
limb_t res;
/* convert the mantissa to an integer with at least 2 *
prec + 4 bits */
n = (2 * (prec + 2) + 2 * LIMB_BITS - 1) / (2 * LIMB_BITS);
if (bf_resize(r, n))
goto fail;
a1 = bf_malloc(s, sizeof(limb_t) * 2 * n);
if (!a1)
goto fail;
n1 = bf_min(2 * n, a->len);
memset(a1, 0, (2 * n - n1) * sizeof(limb_t));
memcpy(a1 + 2 * n - n1, a->tab + a->len - n1, n1 * sizeof(limb_t));
if (a->expn & 1) {
res = mp_shr(a1, a1, 2 * n, 1, 0);
} else {
res = 0;
}
if (mp_sqrtrem(s, r->tab, a1, n)) {
bf_free(s, a1);
goto fail;
}
if (!res) {
res = mp_scan_nz(a1, n + 1);
}
bf_free(s, a1);
if (!res) {
res = mp_scan_nz(a->tab, a->len - n1);
}
if (res != 0)
r->tab[0] |= 1;
r->sign = 0;
r->expn = (a->expn + 1) >> 1;
ret = bf_round(r, prec, flags);
}
return ret;
fail:
bf_set_nan(r);
return BF_ST_MEM_ERROR;
}
|
O3
|
c
|
bf_sqrt:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
cmpq $0x0, 0x18(%rsi)
je 0x8971f
cmpl $0x0, 0x8(%r14)
je 0x8977b
cmpq $0x0, 0x18(%rbx)
je 0x89700
movq (%rbx), %rax
movq 0x20(%rbx), %rsi
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
movq %rax, 0x20(%rbx)
movq $0x0, 0x18(%rbx)
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
movq %rax, 0x10(%rbx)
movl $0x0, 0x8(%rbx)
movl $0x1, %eax
jmp 0x897fe
movq 0x10(%r14), %rax
movabsq $0x7ffffffffffffffe, %rcx # imm = 0x7FFFFFFFFFFFFFFE
cmpq %rcx, %rax
je 0x897e6
movabsq $0x7fffffffffffffff, %r15 # imm = 0x7FFFFFFFFFFFFFFF
cmpq %r15, %rax
jne 0x897f1
cmpq $0x0, 0x18(%rbx)
je 0x8976b
movq (%rbx), %rax
movq 0x20(%rbx), %rsi
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
movq %rax, 0x20(%rbx)
movq $0x0, 0x18(%rbx)
movq %r15, 0x10(%rbx)
movl $0x0, 0x8(%rbx)
jmp 0x897fc
movl %ecx, %r15d
movq (%r14), %rax
movq %rax, (%rsp)
movq %rdx, 0x20(%rsp)
leaq 0x83(,%rdx,2), %rbp
movq %rbp, %r13
shrq $0x7, %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0x8687d
testl %eax, %eax
je 0x8980d
cmpq $0x0, 0x18(%rbx)
je 0x897ca
movq (%rbx), %rax
movq 0x20(%rbx), %rsi
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
movq %rax, 0x20(%rbx)
movq $0x0, 0x18(%rbx)
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
movq %rax, 0x10(%rbx)
movl $0x0, 0x8(%rbx)
movl $0x20, %eax
jmp 0x897fe
cmpl $0x0, 0x8(%r14)
jne 0x896de
movq %rbx, %rdi
movq %r14, %rsi
callq 0x86a9a
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r13, %rdx
shlq $0x4, %rdx
movq (%rsp), %rax
movq (%rax), %rdi
xorl %esi, %esi
movq %rdx, 0x8(%rsp)
callq *0x8(%rax)
testq %rax, %rax
je 0x897a8
movq %rax, %r12
movq %rbp, 0x18(%rsp)
movl %r15d, 0x14(%rsp)
leaq (,%r13,2), %r15
movq 0x18(%r14), %rbp
cmpq %rbp, %r15
cmovlq %r15, %rbp
movq %r15, %rdx
subq %rbp, %rdx
shlq $0x3, %rdx
movq %rax, %rdi
xorl %esi, %esi
callq 0xe340
movq 0x8(%rsp), %rdi
addq %r12, %rdi
movq %rbp, 0x8(%rsp)
leaq (,%rbp,8), %rdx
subq %rdx, %rdi
movq 0x18(%r14), %rsi
shlq $0x3, %rsi
addq 0x20(%r14), %rsi
subq %rdx, %rsi
callq 0xe5a0
testb $0x1, 0x10(%r14)
je 0x898a4
cmpq $0x80, 0x18(%rsp)
jae 0x8993c
movq 0x20(%rbx), %rsi
movq (%rsp), %r15
movq %r15, %rdi
movq %r12, %rdx
movq %r13, %rcx
callq 0x89057
testl %eax, %eax
jne 0x89976
leaq 0x20(%rbx), %r15
xorl %eax, %eax
movq (%r12,%rax,8), %rbp
cmpq %rax, %r13
je 0x898d9
incq %rax
testq %rbp, %rbp
je 0x898c8
movq (%rsp), %rax
movq (%rax), %rdi
movq %r12, %rsi
xorl %edx, %edx
callq *0x8(%rax)
testq %rbp, %rbp
je 0x89987
movq (%r15), %rax
orq $0x1, (%rax)
movl $0x0, 0x8(%rbx)
movq 0x10(%r14), %rax
incq %rax
sarq %rax
movq %rax, 0x10(%rbx)
movq 0x18(%rbx), %rcx
testq %rcx, %rcx
je 0x897fc
movq %rbx, %rdi
movq 0x20(%rsp), %rsi
movl 0x14(%rsp), %edx
xorl %r8d, %r8d
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x86c43
incq %r15
xorl %ebp, %ebp
movq %rbp, %rax
movq -0x10(%r12,%r15,8), %rbp
shldq $0x3f, %rbp, %rax
movq %rax, -0x10(%r12,%r15,8)
decq %r15
cmpq $0x1, %r15
ja 0x89941
movq 0x20(%rbx), %rsi
movq (%rsp), %r15
movq %r15, %rdi
movq %r12, %rdx
movq %r13, %rcx
callq 0x89057
testl %eax, %eax
je 0x899b7
movq (%r15), %rdi
movq %r12, %rsi
xorl %edx, %edx
callq *0x8(%r15)
jmp 0x897a8
movq 0x18(%r14), %rax
subq 0x8(%rsp), %rax
testq %rax, %rax
jle 0x898f8
movq 0x20(%r14), %rcx
xorl %edx, %edx
cmpq $0x0, (%rcx,%rdx,8)
jne 0x898f1
incq %rdx
cmpq %rdx, %rax
jne 0x8999f
jmp 0x898f8
leaq 0x20(%rbx), %r15
testb $0x1, %bpl
je 0x898c6
movq (%rsp), %rax
movq (%rax), %rdi
movq %r12, %rsi
xorl %edx, %edx
callq *0x8(%rax)
jmp 0x898f1
|
bf_sqrt:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r14, rsi
mov rbx, rdi
cmp qword ptr [rsi+18h], 0
jz short loc_8971F
cmp dword ptr [r14+8], 0
jz loc_8977B
loc_896DE:
cmp qword ptr [rbx+18h], 0
jz short loc_89700
mov rax, [rbx]
mov rsi, [rbx+20h]
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
mov [rbx+20h], rax
mov qword ptr [rbx+18h], 0
loc_89700:
mov rax, 7FFFFFFFFFFFFFFFh
mov [rbx+10h], rax
mov dword ptr [rbx+8], 0
mov eax, 1
jmp loc_897FE
loc_8971F:
mov rax, [r14+10h]
mov rcx, 7FFFFFFFFFFFFFFEh
cmp rax, rcx
jz loc_897E6
mov r15, 7FFFFFFFFFFFFFFFh
cmp rax, r15
jnz loc_897F1
cmp qword ptr [rbx+18h], 0
jz short loc_8976B
mov rax, [rbx]
mov rsi, [rbx+20h]
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
mov [rbx+20h], rax
mov qword ptr [rbx+18h], 0
loc_8976B:
mov [rbx+10h], r15
mov dword ptr [rbx+8], 0
jmp loc_897FC
loc_8977B:
mov r15d, ecx
mov rax, [r14]
mov [rsp+58h+var_58], rax
mov [rsp+58h+var_38], rdx
lea rbp, ds:83h[rdx*2]
mov r13, rbp
shr r13, 7
mov rdi, rbx
mov rsi, r13
call bf_resize
test eax, eax
jz short loc_8980D
loc_897A8:
cmp qword ptr [rbx+18h], 0
jz short loc_897CA
mov rax, [rbx]
mov rsi, [rbx+20h]
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
mov [rbx+20h], rax
mov qword ptr [rbx+18h], 0
loc_897CA:
mov rax, 7FFFFFFFFFFFFFFFh
mov [rbx+10h], rax
mov dword ptr [rbx+8], 0
mov eax, 20h ; ' '
jmp short loc_897FE
loc_897E6:
cmp dword ptr [r14+8], 0
jnz loc_896DE
loc_897F1:
mov rdi, rbx
mov rsi, r14
call bf_set
loc_897FC:
xor eax, eax
loc_897FE:
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_8980D:
mov rdx, r13
shl rdx, 4
mov rax, [rsp+58h+var_58]
mov rdi, [rax]
xor esi, esi
mov [rsp+58h+var_50], rdx
call qword ptr [rax+8]
test rax, rax
jz loc_897A8
mov r12, rax
mov [rsp+58h+var_40], rbp
mov [rsp+58h+var_44], r15d
lea r15, ds:0[r13*2]
mov rbp, [r14+18h]
cmp r15, rbp
cmovl rbp, r15
mov rdx, r15
sub rdx, rbp
shl rdx, 3
mov rdi, rax
xor esi, esi
call _memset
mov rdi, [rsp+58h+var_50]
add rdi, r12
mov [rsp+58h+var_50], rbp
lea rdx, ds:0[rbp*8]
sub rdi, rdx
mov rsi, [r14+18h]
shl rsi, 3
add rsi, [r14+20h]
sub rsi, rdx
call _memcpy
test byte ptr [r14+10h], 1
jz short loc_898A4
cmp [rsp+58h+var_40], 80h
jnb loc_8993C
loc_898A4:
mov rsi, [rbx+20h]
mov r15, [rsp+58h+var_58]
mov rdi, r15
mov rdx, r12
mov rcx, r13
call mp_sqrtrem
test eax, eax
jnz loc_89976
lea r15, [rbx+20h]
loc_898C6:
xor eax, eax
loc_898C8:
mov rbp, [r12+rax*8]
cmp r13, rax
jz short loc_898D9
inc rax
test rbp, rbp
jz short loc_898C8
loc_898D9:
mov rax, [rsp+58h+var_58]
mov rdi, [rax]
mov rsi, r12
xor edx, edx
call qword ptr [rax+8]
test rbp, rbp
jz loc_89987
loc_898F1:
mov rax, [r15]
or qword ptr [rax], 1
loc_898F8:
mov dword ptr [rbx+8], 0
mov rax, [r14+10h]
inc rax
sar rax, 1
mov [rbx+10h], rax
mov rcx, [rbx+18h]
test rcx, rcx
jz loc_897FC
mov rdi, rbx
mov rsi, [rsp+58h+var_38]
mov edx, [rsp+58h+var_44]
xor r8d, r8d
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp __bf_round
loc_8993C:
inc r15
xor ebp, ebp
loc_89941:
mov rax, rbp
mov rbp, [r12+r15*8-10h]
shld rax, rbp, 3Fh
mov [r12+r15*8-10h], rax
dec r15
cmp r15, 1
ja short loc_89941
mov rsi, [rbx+20h]
mov r15, [rsp+58h+var_58]
mov rdi, r15
mov rdx, r12
mov rcx, r13
call mp_sqrtrem
test eax, eax
jz short loc_899B7
loc_89976:
mov rdi, [r15]
mov rsi, r12
xor edx, edx
call qword ptr [r15+8]
jmp loc_897A8
loc_89987:
mov rax, [r14+18h]
sub rax, [rsp+58h+var_50]
test rax, rax
jle loc_898F8
mov rcx, [r14+20h]
xor edx, edx
loc_8999F:
cmp qword ptr [rcx+rdx*8], 0
jnz loc_898F1
inc rdx
cmp rax, rdx
jnz short loc_8999F
jmp loc_898F8
loc_899B7:
lea r15, [rbx+20h]
test bpl, 1
jz loc_898C6
mov rax, [rsp+58h+var_58]
mov rdi, [rax]
mov rsi, r12
xor edx, edx
call qword ptr [rax+8]
jmp loc_898F1
|
long long bf_sqrt(_QWORD **a1, long long a2, long long a3, unsigned int a4)
{
long long v5; // rax
unsigned long long v7; // rbp
unsigned long long v8; // r13
long long v9; // rax
long long v10; // r12
long long v11; // r15
long long v12; // rbp
_QWORD *v13; // r15
_QWORD **v14; // r15
long long v15; // rax
long long v16; // rbp
unsigned long long v17; // rcx
long long v18; // r15
long long v19; // rbp
long long v20; // rax
__int128 v21; // rt0
bool v22; // cf
long long v23; // rdx
_QWORD *v24; // [rsp+0h] [rbp-58h]
long long v25; // [rsp+8h] [rbp-50h]
unsigned int v26; // [rsp+14h] [rbp-44h]
unsigned long long v27; // [rsp+18h] [rbp-40h]
if ( !*(_QWORD *)(a2 + 24) )
{
v5 = *(_QWORD *)(a2 + 16);
if ( v5 == 0x7FFFFFFFFFFFFFFELL )
{
if ( *(_DWORD *)(a2 + 8) )
goto LABEL_3;
}
else if ( v5 == 0x7FFFFFFFFFFFFFFFLL )
{
if ( a1[3] )
{
a1[4] = (_QWORD *)((long long ( *)(_QWORD, _QWORD *, _QWORD))(*a1)[1])(**a1, a1[4], 0LL);
a1[3] = 0LL;
}
a1[2] = (_QWORD *)0x7FFFFFFFFFFFFFFFLL;
*((_DWORD *)a1 + 2) = 0;
return 0LL;
}
bf_set(a1, a2);
return 0LL;
}
if ( *(_DWORD *)(a2 + 8) )
{
LABEL_3:
if ( a1[3] )
{
a1[4] = (_QWORD *)((long long ( *)(_QWORD, _QWORD *, _QWORD))(*a1)[1])(**a1, a1[4], 0LL);
a1[3] = 0LL;
}
a1[2] = (_QWORD *)0x7FFFFFFFFFFFFFFFLL;
*((_DWORD *)a1 + 2) = 0;
return 1LL;
}
v24 = *(_QWORD **)a2;
v7 = 2 * a3 + 131;
v8 = v7 >> 7;
if ( !(unsigned int)bf_resize((long long)a1, v7 >> 7) )
{
v9 = ((long long ( *)(_QWORD, _QWORD))v24[1])(*v24, 0LL);
if ( v9 )
{
v10 = v9;
v27 = v7;
v26 = a4;
v11 = 2 * v8;
v12 = *(_QWORD *)(a2 + 24);
if ( (long long)(2 * v8) < v12 )
v12 = 2 * v8;
memset(v9, 0LL, 8 * (v11 - v12));
v25 = v12;
memcpy(v10 + 16 * v8 - 8 * v12, *(_QWORD *)(a2 + 32) + 8LL * *(_QWORD *)(a2 + 24) - 8 * v12, 8 * v12);
if ( (*(_BYTE *)(a2 + 16) & 1) != 0 && v27 >= 0x80 )
{
v18 = v11 + 1;
v19 = 0LL;
do
{
v20 = v19;
v19 = *(_QWORD *)(v10 + 8 * v18 - 16);
*((_QWORD *)&v21 + 1) = v20;
*(_QWORD *)&v21 = v19;
*(_QWORD *)(v10 + 8 * v18 - 16) = v21 >> 1;
v22 = v18-- == 1;
}
while ( !v22 && v18 != 1 );
v13 = v24;
if ( !(unsigned int)mp_sqrtrem(v24, (long long)a1[4], v10, v8) )
{
v14 = a1 + 4;
if ( (v19 & 1) != 0 )
{
((void ( *)(_QWORD, long long, _QWORD))v24[1])(*v24, v10, 0LL);
goto LABEL_29;
}
LABEL_25:
v15 = 0LL;
do
{
v16 = *(_QWORD *)(v10 + 8 * v15);
if ( v8 == v15 )
break;
++v15;
}
while ( !v16 );
((void ( *)(_QWORD, long long, _QWORD))v24[1])(*v24, v10, 0LL);
if ( !v16 )
{
if ( *(_QWORD *)(a2 + 24) - v25 <= 0 )
{
LABEL_30:
*((_DWORD *)a1 + 2) = 0;
a1[2] = (_QWORD *)((*(_QWORD *)(a2 + 16) + 1LL) >> 1);
v17 = (unsigned long long)a1[3];
if ( v17 )
return _bf_round(a1, a3, v26, v17, 0);
return 0LL;
}
v23 = 0LL;
while ( !*(_QWORD *)(*(_QWORD *)(a2 + 32) + 8 * v23) )
{
if ( *(_QWORD *)(a2 + 24) - v25 == ++v23 )
goto LABEL_30;
}
}
LABEL_29:
**v14 |= 1uLL;
goto LABEL_30;
}
}
else
{
v13 = v24;
if ( !(unsigned int)mp_sqrtrem(v24, (long long)a1[4], v10, v8) )
{
v14 = a1 + 4;
goto LABEL_25;
}
}
((void ( *)(_QWORD, long long, _QWORD))v13[1])(*v13, v10, 0LL);
}
}
if ( a1[3] )
{
a1[4] = (_QWORD *)((long long ( *)(_QWORD, _QWORD *, _QWORD))(*a1)[1])(**a1, a1[4], 0LL);
a1[3] = 0LL;
}
a1[2] = (_QWORD *)0x7FFFFFFFFFFFFFFFLL;
*((_DWORD *)a1 + 2) = 0;
return 32LL;
}
|
bf_sqrt:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R14,RSI
MOV RBX,RDI
CMP qword ptr [RSI + 0x18],0x0
JZ 0x0018971f
CMP dword ptr [R14 + 0x8],0x0
JZ 0x0018977b
LAB_001896de:
CMP qword ptr [RBX + 0x18],0x0
JZ 0x00189700
MOV RAX,qword ptr [RBX]
MOV RSI,qword ptr [RBX + 0x20]
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
MOV qword ptr [RBX + 0x20],RAX
MOV qword ptr [RBX + 0x18],0x0
LAB_00189700:
MOV RAX,0x7fffffffffffffff
MOV qword ptr [RBX + 0x10],RAX
MOV dword ptr [RBX + 0x8],0x0
MOV EAX,0x1
JMP 0x001897fe
LAB_0018971f:
MOV RAX,qword ptr [R14 + 0x10]
MOV RCX,0x7ffffffffffffffe
CMP RAX,RCX
JZ 0x001897e6
MOV R15,0x7fffffffffffffff
CMP RAX,R15
JNZ 0x001897f1
CMP qword ptr [RBX + 0x18],0x0
JZ 0x0018976b
MOV RAX,qword ptr [RBX]
MOV RSI,qword ptr [RBX + 0x20]
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
MOV qword ptr [RBX + 0x20],RAX
MOV qword ptr [RBX + 0x18],0x0
LAB_0018976b:
MOV qword ptr [RBX + 0x10],R15
MOV dword ptr [RBX + 0x8],0x0
JMP 0x001897fc
LAB_0018977b:
MOV R15D,ECX
MOV RAX,qword ptr [R14]
MOV qword ptr [RSP],RAX
MOV qword ptr [RSP + 0x20],RDX
LEA RBP,[0x83 + RDX*0x2]
MOV R13,RBP
SHR R13,0x7
MOV RDI,RBX
MOV RSI,R13
CALL 0x0018687d
TEST EAX,EAX
JZ 0x0018980d
LAB_001897a8:
CMP qword ptr [RBX + 0x18],0x0
JZ 0x001897ca
MOV RAX,qword ptr [RBX]
MOV RSI,qword ptr [RBX + 0x20]
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
MOV qword ptr [RBX + 0x20],RAX
MOV qword ptr [RBX + 0x18],0x0
LAB_001897ca:
MOV RAX,0x7fffffffffffffff
MOV qword ptr [RBX + 0x10],RAX
MOV dword ptr [RBX + 0x8],0x0
MOV EAX,0x20
JMP 0x001897fe
LAB_001897e6:
CMP dword ptr [R14 + 0x8],0x0
JNZ 0x001896de
LAB_001897f1:
MOV RDI,RBX
MOV RSI,R14
CALL 0x00186a9a
LAB_001897fc:
XOR EAX,EAX
LAB_001897fe:
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0018980d:
MOV RDX,R13
SHL RDX,0x4
MOV RAX,qword ptr [RSP]
MOV RDI,qword ptr [RAX]
XOR ESI,ESI
MOV qword ptr [RSP + 0x8],RDX
CALL qword ptr [RAX + 0x8]
TEST RAX,RAX
JZ 0x001897a8
MOV R12,RAX
MOV qword ptr [RSP + 0x18],RBP
MOV dword ptr [RSP + 0x14],R15D
LEA R15,[R13*0x2]
MOV RBP,qword ptr [R14 + 0x18]
CMP R15,RBP
CMOVL RBP,R15
MOV RDX,R15
SUB RDX,RBP
SHL RDX,0x3
MOV RDI,RAX
XOR ESI,ESI
CALL 0x0010e340
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,R12
MOV qword ptr [RSP + 0x8],RBP
LEA RDX,[RBP*0x8]
SUB RDI,RDX
MOV RSI,qword ptr [R14 + 0x18]
SHL RSI,0x3
ADD RSI,qword ptr [R14 + 0x20]
SUB RSI,RDX
CALL 0x0010e5a0
TEST byte ptr [R14 + 0x10],0x1
JZ 0x001898a4
CMP qword ptr [RSP + 0x18],0x80
JNC 0x0018993c
LAB_001898a4:
MOV RSI,qword ptr [RBX + 0x20]
MOV R15,qword ptr [RSP]
MOV RDI,R15
MOV RDX,R12
MOV RCX,R13
CALL 0x00189057
TEST EAX,EAX
JNZ 0x00189976
LEA R15,[RBX + 0x20]
LAB_001898c6:
XOR EAX,EAX
LAB_001898c8:
MOV RBP,qword ptr [R12 + RAX*0x8]
CMP R13,RAX
JZ 0x001898d9
INC RAX
TEST RBP,RBP
JZ 0x001898c8
LAB_001898d9:
MOV RAX,qword ptr [RSP]
MOV RDI,qword ptr [RAX]
MOV RSI,R12
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
TEST RBP,RBP
JZ 0x00189987
LAB_001898f1:
MOV RAX,qword ptr [R15]
OR qword ptr [RAX],0x1
LAB_001898f8:
MOV dword ptr [RBX + 0x8],0x0
MOV RAX,qword ptr [R14 + 0x10]
INC RAX
SAR RAX,0x1
MOV qword ptr [RBX + 0x10],RAX
MOV RCX,qword ptr [RBX + 0x18]
TEST RCX,RCX
JZ 0x001897fc
MOV RDI,RBX
MOV RSI,qword ptr [RSP + 0x20]
MOV EDX,dword ptr [RSP + 0x14]
XOR R8D,R8D
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x00186c43
LAB_0018993c:
INC R15
XOR EBP,EBP
LAB_00189941:
MOV RAX,RBP
MOV RBP,qword ptr [R12 + R15*0x8 + -0x10]
SHLD RAX,RBP,0x3f
MOV qword ptr [R12 + R15*0x8 + -0x10],RAX
DEC R15
CMP R15,0x1
JA 0x00189941
MOV RSI,qword ptr [RBX + 0x20]
MOV R15,qword ptr [RSP]
MOV RDI,R15
MOV RDX,R12
MOV RCX,R13
CALL 0x00189057
TEST EAX,EAX
JZ 0x001899b7
LAB_00189976:
MOV RDI,qword ptr [R15]
MOV RSI,R12
XOR EDX,EDX
CALL qword ptr [R15 + 0x8]
JMP 0x001897a8
LAB_00189987:
MOV RAX,qword ptr [R14 + 0x18]
SUB RAX,qword ptr [RSP + 0x8]
TEST RAX,RAX
JLE 0x001898f8
MOV RCX,qword ptr [R14 + 0x20]
XOR EDX,EDX
LAB_0018999f:
CMP qword ptr [RCX + RDX*0x8],0x0
JNZ 0x001898f1
INC RDX
CMP RAX,RDX
JNZ 0x0018999f
JMP 0x001898f8
LAB_001899b7:
LEA R15,[RBX + 0x20]
TEST BPL,0x1
JZ 0x001898c6
MOV RAX,qword ptr [RSP]
MOV RDI,qword ptr [RAX]
MOV RSI,R12
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
JMP 0x001898f1
|
int8 bf_sqrt(long *param_1,long *param_2,long param_3,int4 param_4)
{
int8 *puVar1;
ulong uVar2;
int iVar3;
long lVar4;
void *__s;
ulong uVar5;
int8 uVar6;
long lVar7;
ulong uVar8;
ulong uVar9;
if (param_2[3] == 0) {
if (param_2[2] == 0x7ffffffffffffffe) {
if ((int)param_2[1] != 0) goto LAB_001896de;
}
else if (param_2[2] == 0x7fffffffffffffff) {
if (param_1[3] != 0) {
lVar4 = (*(code *)((int8 *)*param_1)[1])(*(int8 *)*param_1,param_1[4],0);
param_1[4] = lVar4;
param_1[3] = 0;
}
param_1[2] = 0x7fffffffffffffff;
*(int4 *)(param_1 + 1) = 0;
return 0;
}
bf_set(param_1,param_2);
return 0;
}
if ((int)param_2[1] != 0) {
LAB_001896de:
if (param_1[3] != 0) {
lVar4 = (*(code *)((int8 *)*param_1)[1])(*(int8 *)*param_1,param_1[4],0);
param_1[4] = lVar4;
param_1[3] = 0;
}
param_1[2] = 0x7fffffffffffffff;
*(int4 *)(param_1 + 1) = 0;
return 1;
}
puVar1 = (int8 *)*param_2;
uVar5 = param_3 * 2 + 0x83;
uVar8 = uVar5 >> 7;
iVar3 = bf_resize(param_1);
if (iVar3 != 0) goto LAB_001897a8;
__s = (void *)(*(code *)puVar1[1])(*puVar1);
if (__s == (void *)0x0) goto LAB_001897a8;
lVar4 = uVar8 * 2;
lVar7 = param_2[3];
if (lVar4 < param_2[3]) {
lVar7 = lVar4;
}
memset(__s,0,(lVar4 - lVar7) * 8);
memcpy((void *)((long)__s + lVar7 * -8 + uVar8 * 0x10),
(void *)(param_2[3] * 8 + param_2[4] + lVar7 * -8),lVar7 * 8);
if (((*(byte *)(param_2 + 2) & 1) == 0) || (uVar5 < 0x80)) {
iVar3 = mp_sqrtrem(puVar1,param_1[4],__s,uVar8);
if (iVar3 != 0) goto LAB_00189976;
LAB_001898c6:
uVar5 = 0;
do {
lVar4 = *(long *)((long)__s + uVar5 * 8);
if (uVar8 == uVar5) break;
uVar5 = uVar5 + 1;
} while (lVar4 == 0);
(*(code *)puVar1[1])(*puVar1,__s,0);
if (lVar4 == 0) {
if (0 < param_2[3] - lVar7) {
lVar4 = 0;
do {
if (*(long *)(param_2[4] + lVar4 * 8) != 0) goto LAB_001898f1;
lVar4 = lVar4 + 1;
} while (param_2[3] - lVar7 != lVar4);
}
goto LAB_001898f8;
}
}
else {
uVar9 = lVar4 + 1;
uVar5 = 0;
do {
uVar2 = *(ulong *)((long)__s + uVar9 * 8 + -0x10);
*(ulong *)((long)__s + uVar9 * 8 + -0x10) = uVar5 << 0x3f | uVar2 >> 1;
uVar9 = uVar9 - 1;
uVar5 = uVar2;
} while (1 < uVar9);
iVar3 = mp_sqrtrem(puVar1,param_1[4],__s,uVar8);
if (iVar3 != 0) {
LAB_00189976:
(*(code *)puVar1[1])(*puVar1,__s,0);
LAB_001897a8:
if (param_1[3] != 0) {
lVar4 = (*(code *)((int8 *)*param_1)[1])(*(int8 *)*param_1,param_1[4],0);
param_1[4] = lVar4;
param_1[3] = 0;
}
param_1[2] = 0x7fffffffffffffff;
*(int4 *)(param_1 + 1) = 0;
return 0x20;
}
if ((uVar2 & 1) == 0) goto LAB_001898c6;
(*(code *)puVar1[1])(*puVar1,__s,0);
}
LAB_001898f1:
*(ulong *)param_1[4] = *(ulong *)param_1[4] | 1;
LAB_001898f8:
*(int4 *)(param_1 + 1) = 0;
param_1[2] = param_2[2] + 1 >> 1;
if (param_1[3] == 0) {
return 0;
}
uVar6 = __bf_round(param_1,param_3,param_4,param_1[3],0);
return uVar6;
}
|
|
66,295 |
query_str_variable
|
eloqsql/tests/mysql_client_test.c
|
static my_bool query_str_variable(MYSQL *con,
const char *var_name,
char *str,
size_t len)
{
MYSQL_RES *rs;
MYSQL_ROW row;
char query_buffer[MAX_TEST_QUERY_LENGTH];
my_bool is_null;
my_snprintf(query_buffer, sizeof (query_buffer),
"SELECT %s", var_name);
DIE_IF(mysql_query(con, query_buffer));
DIE_UNLESS(rs= mysql_store_result(con));
DIE_UNLESS(row= mysql_fetch_row(rs));
is_null= row[0] == NULL;
if (!is_null)
my_snprintf(str, len, "%s", row[0]);
mysql_free_result(rs);
return is_null;
}
|
O0
|
c
|
query_str_variable:
pushq %rbp
movq %rsp, %rbp
subq $0x180, %rsp # imm = 0x180
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x148(%rbp)
movq %rsi, -0x150(%rbp)
movq %rdx, -0x158(%rbp)
movq %rcx, -0x160(%rbp)
leaq -0x140(%rbp), %rdi
movq -0x150(%rbp), %rcx
movl $0x12c, %esi # imm = 0x12C
leaq 0xbb383(%rip), %rdx # 0x141eb1
movb $0x0, %al
callq 0x12aaa0
movq -0x148(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0x3b3d0
cmpl $0x0, %eax
je 0x86b67
leaq 0xa70b8(%rip), %rdi # 0x12dc0c
movl $0x4307, %esi # imm = 0x4307
leaq 0xbb35b(%rip), %rdx # 0x141ebb
callq 0x3c010
jmp 0x86b69
jmp 0x86b69
movq -0x148(%rbp), %rdi
callq 0x3b210
movq %rax, -0x168(%rbp)
cmpq $0x0, %rax
je 0x86b84
jmp 0x86b9c
leaq 0xa7081(%rip), %rdi # 0x12dc0c
movl $0x4308, %esi # imm = 0x4308
leaq 0xbafdf(%rip), %rdx # 0x141b76
callq 0x3c010
movq -0x168(%rbp), %rdi
callq 0x3b000
movq %rax, -0x170(%rbp)
cmpq $0x0, %rax
je 0x86bb7
jmp 0x86bcf
leaq 0xa704e(%rip), %rdi # 0x12dc0c
movl $0x4309, %esi # imm = 0x4309
leaq 0xbafc8(%rip), %rdx # 0x141b92
callq 0x3c010
movq -0x170(%rbp), %rax
cmpq $0x0, (%rax)
sete %al
andb $0x1, %al
movzbl %al, %eax
movb %al, -0x171(%rbp)
cmpb $0x0, -0x171(%rbp)
jne 0x86c17
movq -0x158(%rbp), %rdi
movq -0x160(%rbp), %rsi
movq -0x170(%rbp), %rax
movq (%rax), %rcx
leaq 0xa6d16(%rip), %rdx # 0x12d926
movb $0x0, %al
callq 0x12aaa0
movq -0x168(%rbp), %rdi
callq 0x3b280
movb -0x171(%rbp), %al
movb %al, -0x172(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x86c50
movb -0x172(%rbp), %al
addq $0x180, %rsp # imm = 0x180
popq %rbp
retq
callq 0x3a2a0
nopw %cs:(%rax,%rax)
|
query_str_variable:
push rbp
mov rbp, rsp
sub rsp, 180h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_148], rdi
mov [rbp+var_150], rsi
mov [rbp+var_158], rdx
mov [rbp+var_160], rcx
lea rdi, [rbp+var_140]
mov rcx, [rbp+var_150]
mov esi, 12Ch
lea rdx, aSelectS_0; "SELECT %s"
mov al, 0
call my_snprintf
mov rdi, [rbp+var_148]
lea rsi, [rbp+var_140]
call wrap_mysql_query
cmp eax, 0
jz short loc_86B67
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 4307h
lea rdx, aMysqlQueryConQ_0; "mysql_query(con, query_buffer)"
call die
jmp short loc_86B69
loc_86B67:
jmp short $+2
loc_86B69:
mov rdi, [rbp+var_148]
call wrap_mysql_store_result
mov [rbp+var_168], rax
cmp rax, 0
jz short loc_86B84
jmp short loc_86B9C
loc_86B84:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 4308h
lea rdx, aRsMysqlStoreRe; "rs= mysql_store_result(con)"
call die
loc_86B9C:
mov rdi, [rbp+var_168]
call wrap_mysql_fetch_row
mov [rbp+var_170], rax
cmp rax, 0
jz short loc_86BB7
jmp short loc_86BCF
loc_86BB7:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 4309h
lea rdx, aRowMysqlFetchR; "row= mysql_fetch_row(rs)"
call die
loc_86BCF:
mov rax, [rbp+var_170]
cmp qword ptr [rax], 0
setz al
and al, 1
movzx eax, al
mov [rbp+var_171], al
cmp [rbp+var_171], 0
jnz short loc_86C17
mov rdi, [rbp+var_158]
mov rsi, [rbp+var_160]
mov rax, [rbp+var_170]
mov rcx, [rax]
lea rdx, aS+3; "%s"
mov al, 0
call my_snprintf
loc_86C17:
mov rdi, [rbp+var_168]
call wrap_mysql_free_result
mov al, [rbp+var_171]
mov [rbp+var_172], al
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_86C50
mov al, [rbp+var_172]
add rsp, 180h
pop rbp
retn
loc_86C50:
call ___stack_chk_fail
|
bool query_str_variable(long long a1, int a2, int a3, int a4, int a5, int a6)
{
int v6; // r8d
int v7; // r9d
bool v9; // [rsp+Fh] [rbp-171h]
_QWORD *row; // [rsp+10h] [rbp-170h]
long long v11; // [rsp+18h] [rbp-168h]
_BYTE v14[312]; // [rsp+40h] [rbp-140h] BYREF
unsigned long long v15; // [rsp+178h] [rbp-8h]
v15 = __readfsqword(0x28u);
my_snprintf((unsigned int)v14, 300, (unsigned int)"SELECT %s", a2, a5, a6);
if ( (unsigned int)wrap_mysql_query(a1, (long long)v14) )
die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c", 17159, "mysql_query(con, query_buffer)");
v11 = wrap_mysql_store_result(a1);
if ( !v11 )
die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c", 17160, "rs= mysql_store_result(con)");
row = (_QWORD *)wrap_mysql_fetch_row(v11);
if ( !row )
die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c", 17161, "row= mysql_fetch_row(rs)");
v9 = *row == 0LL;
if ( *row )
my_snprintf(a3, a4, (unsigned int)"%s", *row, v6, v7);
wrap_mysql_free_result(v11);
return v9;
}
|
query_str_variable:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x180
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x148],RDI
MOV qword ptr [RBP + -0x150],RSI
MOV qword ptr [RBP + -0x158],RDX
MOV qword ptr [RBP + -0x160],RCX
LEA RDI,[RBP + -0x140]
MOV RCX,qword ptr [RBP + -0x150]
MOV ESI,0x12c
LEA RDX,[0x241eb1]
MOV AL,0x0
CALL 0x0022aaa0
MOV RDI,qword ptr [RBP + -0x148]
LEA RSI,[RBP + -0x140]
CALL 0x0013b3d0
CMP EAX,0x0
JZ 0x00186b67
LEA RDI,[0x22dc0c]
MOV ESI,0x4307
LEA RDX,[0x241ebb]
CALL 0x0013c010
JMP 0x00186b69
LAB_00186b67:
JMP 0x00186b69
LAB_00186b69:
MOV RDI,qword ptr [RBP + -0x148]
CALL 0x0013b210
MOV qword ptr [RBP + -0x168],RAX
CMP RAX,0x0
JZ 0x00186b84
JMP 0x00186b9c
LAB_00186b84:
LEA RDI,[0x22dc0c]
MOV ESI,0x4308
LEA RDX,[0x241b76]
CALL 0x0013c010
LAB_00186b9c:
MOV RDI,qword ptr [RBP + -0x168]
CALL 0x0013b000
MOV qword ptr [RBP + -0x170],RAX
CMP RAX,0x0
JZ 0x00186bb7
JMP 0x00186bcf
LAB_00186bb7:
LEA RDI,[0x22dc0c]
MOV ESI,0x4309
LEA RDX,[0x241b92]
CALL 0x0013c010
LAB_00186bcf:
MOV RAX,qword ptr [RBP + -0x170]
CMP qword ptr [RAX],0x0
SETZ AL
AND AL,0x1
MOVZX EAX,AL
MOV byte ptr [RBP + -0x171],AL
CMP byte ptr [RBP + -0x171],0x0
JNZ 0x00186c17
MOV RDI,qword ptr [RBP + -0x158]
MOV RSI,qword ptr [RBP + -0x160]
MOV RAX,qword ptr [RBP + -0x170]
MOV RCX,qword ptr [RAX]
LEA RDX,[0x22d926]
MOV AL,0x0
CALL 0x0022aaa0
LAB_00186c17:
MOV RDI,qword ptr [RBP + -0x168]
CALL 0x0013b280
MOV AL,byte ptr [RBP + -0x171]
MOV byte ptr [RBP + -0x172],AL
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x00186c50
MOV AL,byte ptr [RBP + -0x172]
ADD RSP,0x180
POP RBP
RET
LAB_00186c50:
CALL 0x0013a2a0
|
int8
query_str_variable(int8 param_1,int8 param_2,int8 param_3,int8 param_4)
{
long lVar1;
int iVar2;
long lVar3;
long *plVar4;
long in_FS_OFFSET;
int1 local_148 [312];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
my_snprintf(local_148,300,"SELECT %s",param_2);
iVar2 = wrap_mysql_query(param_1,local_148);
if (iVar2 != 0) {
die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x4307,
"mysql_query(con, query_buffer)");
}
lVar3 = wrap_mysql_store_result(param_1);
if (lVar3 == 0) {
die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x4308,
"rs= mysql_store_result(con)");
}
plVar4 = (long *)wrap_mysql_fetch_row(lVar3);
if (plVar4 == (long *)0x0) {
die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x4309,
"row= mysql_fetch_row(rs)");
}
lVar1 = *plVar4;
if (lVar1 != 0) {
my_snprintf(param_3,param_4,&DAT_0022d926,*plVar4);
}
wrap_mysql_free_result(lVar3);
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),lVar1 == 0);
}
|
|
66,296 |
bf_logic_op
|
bluesky950520[P]quickjs/libbf.c
|
static int bf_logic_op(bf_t *r, const bf_t *a1, const bf_t *b1, int op)
{
bf_t b1_s, a1_s, *a, *b;
limb_t a_sign, b_sign, r_sign;
slimb_t l, i, a_bit_offset, b_bit_offset;
limb_t v1, v2, v1_mask, v2_mask, r_mask;
int ret;
assert(r != a1 && r != b1);
if (a1->expn <= 0)
a_sign = 0; /* minus zero is considered as positive */
else
a_sign = a1->sign;
if (b1->expn <= 0)
b_sign = 0; /* minus zero is considered as positive */
else
b_sign = b1->sign;
if (a_sign) {
a = &a1_s;
bf_init(r->ctx, a);
if (bf_add_si(a, a1, 1, BF_PREC_INF, BF_RNDZ)) {
b = NULL;
goto fail;
}
} else {
a = (bf_t *)a1;
}
if (b_sign) {
b = &b1_s;
bf_init(r->ctx, b);
if (bf_add_si(b, b1, 1, BF_PREC_INF, BF_RNDZ))
goto fail;
} else {
b = (bf_t *)b1;
}
r_sign = bf_logic_op1(a_sign, b_sign, op);
if (op == BF_LOGIC_AND && r_sign == 0) {
/* no need to compute extra zeros for and */
if (a_sign == 0 && b_sign == 0)
l = bf_min(a->expn, b->expn);
else if (a_sign == 0)
l = a->expn;
else
l = b->expn;
} else {
l = bf_max(a->expn, b->expn);
}
/* Note: a or b can be zero */
l = (bf_max(l, 1) + LIMB_BITS - 1) / LIMB_BITS;
if (bf_resize(r, l))
goto fail;
a_bit_offset = a->len * LIMB_BITS - a->expn;
b_bit_offset = b->len * LIMB_BITS - b->expn;
v1_mask = -a_sign;
v2_mask = -b_sign;
r_mask = -r_sign;
for(i = 0; i < l; i++) {
v1 = get_bits(a->tab, a->len, a_bit_offset + i * LIMB_BITS) ^ v1_mask;
v2 = get_bits(b->tab, b->len, b_bit_offset + i * LIMB_BITS) ^ v2_mask;
r->tab[i] = bf_logic_op1(v1, v2, op) ^ r_mask;
}
r->expn = l * LIMB_BITS;
r->sign = r_sign;
bf_normalize_and_round(r, BF_PREC_INF, BF_RNDZ); /* cannot fail */
if (r_sign) {
if (bf_add_si(r, r, -1, BF_PREC_INF, BF_RNDZ))
goto fail;
}
ret = 0;
done:
if (a == &a1_s)
bf_delete(a);
if (b == &b1_s)
bf_delete(b);
return ret;
fail:
bf_set_nan(r);
ret = BF_ST_MEM_ERROR;
goto done;
}
|
O1
|
c
|
bf_logic_op:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x10(%rdx), %rsi
cmpq $0x0, 0x10(%r14)
jle 0x880a1
movslq 0x8(%r14), %rbp
jmp 0x880a3
xorl %ebp, %ebp
cmpq $0x0, (%rsi)
jle 0x880b4
movslq 0x8(%rbx), %rax
movq %rax, 0x8(%rsp)
jmp 0x880bd
movq $0x0, 0x8(%rsp)
movl %ecx, 0x14(%rsp)
movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000
movabsq $0x3fffffffffffffff, %rcx # imm = 0x3FFFFFFFFFFFFFFF
testq %rbp, %rbp
je 0x88123
movq %rsi, %r12
leaq 0x70(%rsp), %rax
movq (%r15), %rsi
movq %rsi, -0x18(%rax)
movl $0x0, -0x10(%rax)
movq %rdx, -0x8(%rax)
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
leaq 0x58(%rsp), %r13
movl $0x1, %edx
movq %r13, %rdi
movq %r14, %rsi
movl $0x1, %r8d
callq 0x86f60
testl %eax, %eax
je 0x88129
xorl %ebx, %ebx
movq %r13, %r14
jmp 0x88259
leaq 0x10(%r14), %rdi
jmp 0x8813e
leaq 0x68(%rsp), %rdi
movq %r13, %r14
movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000
movq %r12, %rsi
cmpq $0x0, 0x8(%rsp)
movq %rdi, 0x18(%rsp)
je 0x881bb
movq %rbp, %r12
leaq 0x98(%rsp), %rax
movq (%r15), %rcx
movq %rcx, -0x18(%rax)
movl $0x0, -0x10(%rax)
movq %rdx, %rbp
movq %rdx, -0x8(%rax)
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
leaq 0x80(%rsp), %r13
movl $0x1, %edx
movq %r13, %rdi
movq %rbx, %rsi
movabsq $0x3fffffffffffffff, %rcx # imm = 0x3FFFFFFFFFFFFFFF
movl $0x1, %r8d
callq 0x86f60
testl %eax, %eax
je 0x881a8
movq %r13, %rbx
movq %rbp, %r12
jmp 0x88263
leaq 0x90(%rsp), %rsi
movq %r13, %rbx
movq %r12, %rbp
movq 0x18(%rsp), %rdi
movl 0x14(%rsp), %eax
cmpl $0x1, %eax
je 0x881d2
testl %eax, %eax
jne 0x881dc
movq 0x8(%rsp), %rcx
orq %rbp, %rcx
jmp 0x881e4
movq 0x8(%rsp), %rcx
xorq %rbp, %rcx
jmp 0x881e4
movq 0x8(%rsp), %rcx
andq %rbp, %rcx
cmpl $0x2, %eax
movq %rcx, 0x20(%rsp)
movq %rsi, 0x28(%rsp)
jne 0x8820c
testq %rcx, %rcx
jne 0x8820c
movq 0x8(%rsp), %rax
orq %rbp, %rax
je 0x8821b
testq %rbp, %rbp
je 0x8822a
movq (%rsi), %rax
jmp 0x8822d
movq (%rdi), %rcx
movq (%rsi), %rax
cmpq %rax, %rcx
cmovgq %rcx, %rax
jmp 0x8822d
movq (%rdi), %rcx
movq (%rsi), %rax
cmpq %rax, %rcx
cmovlq %rcx, %rax
jmp 0x8822d
movq (%rdi), %rax
cmpq $0x2, %rax
movl $0x1, %r13d
cmovgeq %rax, %r13
addq $0x3f, %r13
movq %r13, %r12
shrq $0x6, %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x84a70
testl %eax, %eax
je 0x882fa
movabsq $-0x8000000000000000, %r12 # imm = 0x8000000000000000
cmpq $0x0, 0x18(%r15)
je 0x88285
movq (%r15), %rax
movq 0x20(%r15), %rsi
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
movq %rax, 0x20(%r15)
movq $0x0, 0x18(%r15)
decq %r12
movq %r12, 0x10(%r15)
movl $0x0, 0x8(%r15)
movl $0x20, %ebp
leaq 0x58(%rsp), %rax
cmpq %rax, %r14
je 0x882c4
leaq 0x80(%rsp), %rax
cmpq %rax, %rbx
je 0x882df
movl %ebp, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%r14), %rax
testq %rax, %rax
je 0x882a3
movq 0x20(%r14), %rsi
testq %rsi, %rsi
je 0x882a3
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
jmp 0x882a3
movq (%rbx), %rax
testq %rax, %rax
je 0x882b0
movq 0x20(%rbx), %rsi
testq %rsi, %rsi
je 0x882b0
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
jmp 0x882b0
movq 0x18(%r14), %r8
shlq $0x6, %r8
movq 0x18(%rsp), %rax
subq (%rax), %r8
movq 0x20(%r14), %rax
movq %rax, 0x38(%rsp)
movq 0x18(%rbx), %r10
movq 0x20(%rbx), %rax
movq %rax, 0x30(%rsp)
shlq $0x6, %r10
movq 0x28(%rsp), %rax
subq (%rax), %r10
negq %rbp
negq 0x8(%rsp)
movq 0x20(%rsp), %rax
negq %rax
movq %rax, 0x18(%rsp)
movl %r8d, %eax
andl $0x3f, %eax
movl $0x40, %ecx
movl $0x40, %edx
subl %eax, %edx
movq %rdx, 0x48(%rsp)
movl %r10d, %edi
andl $0x3f, %edi
subl %edi, %ecx
movq %rcx, 0x50(%rsp)
movq %r15, 0x40(%rsp)
movq 0x20(%r15), %rcx
movq %rcx, 0x28(%rsp)
xorl %r15d, %r15d
movq %rbp, %rdx
movq %r12, %rbp
movq 0x18(%r14), %r11
movq %r8, %rcx
sarq $0x6, %rcx
cmpq %r11, %rcx
jae 0x88397
movq 0x38(%rsp), %rsi
movq (%rsi,%rcx,8), %r9
jmp 0x8839a
xorl %r9d, %r9d
testl %eax, %eax
je 0x883c6
leaq 0x1(%rcx), %r12
cmpq %r11, %r12
jae 0x883b3
movq 0x38(%rsp), %rsi
movq 0x8(%rsi,%rcx,8), %r11
jmp 0x883b6
xorl %r11d, %r11d
movl %eax, %ecx
shrq %cl, %r9
movq 0x48(%rsp), %rcx
shlq %cl, %r11
orq %r11, %r9
movq 0x18(%rbx), %r12
movq %r10, %rcx
sarq $0x6, %rcx
cmpq %r12, %rcx
jae 0x883e1
movq 0x30(%rsp), %rsi
movq (%rsi,%rcx,8), %r11
jmp 0x883e4
xorl %r11d, %r11d
testl %edi, %edi
je 0x88422
movq %rbp, %rsi
movq %r14, %rbp
movq %rbx, %r14
leaq 0x1(%rcx), %rbx
cmpq %r12, %rbx
jae 0x88406
movq 0x30(%rsp), %rbx
movq 0x8(%rbx,%rcx,8), %r12
jmp 0x88409
xorl %r12d, %r12d
movl %edi, %ecx
shrq %cl, %r11
movq 0x50(%rsp), %rcx
shlq %cl, %r12
orq %r12, %r11
movq %r14, %rbx
movq %rbp, %r14
movq %rsi, %rbp
xorq 0x8(%rsp), %r11
xorq %rdx, %r9
movl 0x14(%rsp), %ecx
cmpl $0x1, %ecx
je 0x8843c
testl %ecx, %ecx
jne 0x88441
orq %r9, %r11
jmp 0x88444
xorq %r9, %r11
jmp 0x88444
andq %r9, %r11
xorq 0x18(%rsp), %r11
movq 0x28(%rsp), %rcx
movq %r11, (%rcx,%r15,8)
incq %r15
addq $0x40, %r8
addq $0x40, %r10
cmpq %r15, %rbp
jne 0x8837c
movabsq $-0x8000000000000000, %r12 # imm = 0x8000000000000000
leaq -0x40(%r12), %rax
andq %rax, %r13
movq 0x40(%rsp), %r15
movq %r13, 0x10(%r15)
movq 0x20(%rsp), %rax
movl %eax, 0x8(%r15)
movq %r15, %rdi
movabsq $0x3fffffffffffffff, %r13 # imm = 0x3FFFFFFFFFFFFFFF
movq %r13, %rsi
movl $0x1, %edx
callq 0x84d5c
xorl %ebp, %ebp
cmpq $0x0, 0x20(%rsp)
je 0x88299
movq %r15, %rdi
movq %r15, %rsi
movq $-0x1, %rdx
movq %r13, %rcx
movl $0x1, %r8d
callq 0x86f60
testl %eax, %eax
jne 0x88263
jmp 0x88299
|
bf_logic_op:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0A8h
mov rbx, rdx
mov r14, rsi
mov r15, rdi
lea rsi, [rdx+10h]
cmp qword ptr [r14+10h], 0
jle short loc_880A1
movsxd rbp, dword ptr [r14+8]
jmp short loc_880A3
loc_880A1:
xor ebp, ebp
loc_880A3:
cmp qword ptr [rsi], 0
jle short loc_880B4
movsxd rax, dword ptr [rbx+8]
mov [rsp+0D8h+var_D0], rax
jmp short loc_880BD
loc_880B4:
mov [rsp+0D8h+var_D0], 0
loc_880BD:
mov [rsp+0D8h+var_C4], ecx
mov rdx, 8000000000000000h
mov rcx, 3FFFFFFFFFFFFFFFh
test rbp, rbp
jz short loc_88123
mov r12, rsi
lea rax, [rsp+0D8h+var_68]
mov rsi, [r15]
mov [rax-18h], rsi
mov dword ptr [rax-10h], 0
mov [rax-8], rdx
xorps xmm0, xmm0
movups xmmword ptr [rax], xmm0
lea r13, [rsp+0D8h+var_80]
mov edx, 1
mov rdi, r13
mov rsi, r14
mov r8d, 1
call bf_add_si
test eax, eax
jz short loc_88129
xor ebx, ebx
mov r14, r13
jmp loc_88259
loc_88123:
lea rdi, [r14+10h]
jmp short loc_8813E
loc_88129:
lea rdi, [rsp+0D8h+var_70]
mov r14, r13
mov rdx, 8000000000000000h
mov rsi, r12
loc_8813E:
cmp [rsp+0D8h+var_D0], 0
mov [rsp+0D8h+var_C0], rdi
jz short loc_881BB
mov r12, rbp
lea rax, [rsp+0D8h+var_40]
mov rcx, [r15]
mov [rax-18h], rcx
mov dword ptr [rax-10h], 0
mov rbp, rdx
mov [rax-8], rdx
xorps xmm0, xmm0
movups xmmword ptr [rax], xmm0
lea r13, [rsp+0D8h+var_58]
mov edx, 1
mov rdi, r13
mov rsi, rbx
mov rcx, 3FFFFFFFFFFFFFFFh
mov r8d, 1
call bf_add_si
test eax, eax
jz short loc_881A8
mov rbx, r13
mov r12, rbp
jmp loc_88263
loc_881A8:
lea rsi, [rsp+0D8h+var_48]
mov rbx, r13
mov rbp, r12
mov rdi, [rsp+0D8h+var_C0]
loc_881BB:
mov eax, [rsp+0D8h+var_C4]
cmp eax, 1
jz short loc_881D2
test eax, eax
jnz short loc_881DC
mov rcx, [rsp+0D8h+var_D0]
or rcx, rbp
jmp short loc_881E4
loc_881D2:
mov rcx, [rsp+0D8h+var_D0]
xor rcx, rbp
jmp short loc_881E4
loc_881DC:
mov rcx, [rsp+0D8h+var_D0]
and rcx, rbp
loc_881E4:
cmp eax, 2
mov [rsp+0D8h+var_B8], rcx
mov [rsp+0D8h+var_B0], rsi
jnz short loc_8820C
test rcx, rcx
jnz short loc_8820C
mov rax, [rsp+0D8h+var_D0]
or rax, rbp
jz short loc_8821B
test rbp, rbp
jz short loc_8822A
mov rax, [rsi]
jmp short loc_8822D
loc_8820C:
mov rcx, [rdi]
mov rax, [rsi]
cmp rcx, rax
cmovg rax, rcx
jmp short loc_8822D
loc_8821B:
mov rcx, [rdi]
mov rax, [rsi]
cmp rcx, rax
cmovl rax, rcx
jmp short loc_8822D
loc_8822A:
mov rax, [rdi]
loc_8822D:
cmp rax, 2
mov r13d, 1
cmovge r13, rax
add r13, 3Fh ; '?'
mov r12, r13
shr r12, 6
mov rdi, r15
mov rsi, r12
call bf_resize
test eax, eax
jz loc_882FA
loc_88259:
mov r12, 8000000000000000h
loc_88263:
cmp qword ptr [r15+18h], 0
jz short loc_88285
mov rax, [r15]
mov rsi, [r15+20h]
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
mov [r15+20h], rax
mov qword ptr [r15+18h], 0
loc_88285:
dec r12
mov [r15+10h], r12
mov dword ptr [r15+8], 0
mov ebp, 20h ; ' '
loc_88299:
lea rax, [rsp+0D8h+var_80]
cmp r14, rax
jz short loc_882C4
loc_882A3:
lea rax, [rsp+0D8h+var_58]
cmp rbx, rax
jz short loc_882DF
loc_882B0:
mov eax, ebp
add rsp, 0A8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_882C4:
mov rax, [r14]
test rax, rax
jz short loc_882A3
mov rsi, [r14+20h]
test rsi, rsi
jz short loc_882A3
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
jmp short loc_882A3
loc_882DF:
mov rax, [rbx]
test rax, rax
jz short loc_882B0
mov rsi, [rbx+20h]
test rsi, rsi
jz short loc_882B0
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
jmp short loc_882B0
loc_882FA:
mov r8, [r14+18h]
shl r8, 6
mov rax, [rsp+0D8h+var_C0]
sub r8, [rax]
mov rax, [r14+20h]
mov [rsp+0D8h+var_A0], rax
mov r10, [rbx+18h]
mov rax, [rbx+20h]
mov [rsp+0D8h+var_A8], rax
shl r10, 6
mov rax, [rsp+0D8h+var_B0]
sub r10, [rax]
neg rbp
neg [rsp+0D8h+var_D0]
mov rax, [rsp+0D8h+var_B8]
neg rax
mov [rsp+0D8h+var_C0], rax
mov eax, r8d
and eax, 3Fh
mov ecx, 40h ; '@'
mov edx, 40h ; '@'
sub edx, eax
mov [rsp+0D8h+var_90], rdx
mov edi, r10d
and edi, 3Fh
sub ecx, edi
mov [rsp+0D8h+var_88], rcx
mov [rsp+0D8h+var_98], r15
mov rcx, [r15+20h]
mov [rsp+0D8h+var_B0], rcx
xor r15d, r15d
mov rdx, rbp
mov rbp, r12
loc_8837C:
mov r11, [r14+18h]
mov rcx, r8
sar rcx, 6
cmp rcx, r11
jnb short loc_88397
mov rsi, [rsp+0D8h+var_A0]
mov r9, [rsi+rcx*8]
jmp short loc_8839A
loc_88397:
xor r9d, r9d
loc_8839A:
test eax, eax
jz short loc_883C6
lea r12, [rcx+1]
cmp r12, r11
jnb short loc_883B3
mov rsi, [rsp+0D8h+var_A0]
mov r11, [rsi+rcx*8+8]
jmp short loc_883B6
loc_883B3:
xor r11d, r11d
loc_883B6:
mov ecx, eax
shr r9, cl
mov rcx, [rsp+0D8h+var_90]
shl r11, cl
or r9, r11
loc_883C6:
mov r12, [rbx+18h]
mov rcx, r10
sar rcx, 6
cmp rcx, r12
jnb short loc_883E1
mov rsi, [rsp+0D8h+var_A8]
mov r11, [rsi+rcx*8]
jmp short loc_883E4
loc_883E1:
xor r11d, r11d
loc_883E4:
test edi, edi
jz short loc_88422
mov rsi, rbp
mov rbp, r14
mov r14, rbx
lea rbx, [rcx+1]
cmp rbx, r12
jnb short loc_88406
mov rbx, [rsp+0D8h+var_A8]
mov r12, [rbx+rcx*8+8]
jmp short loc_88409
loc_88406:
xor r12d, r12d
loc_88409:
mov ecx, edi
shr r11, cl
mov rcx, [rsp+0D8h+var_88]
shl r12, cl
or r11, r12
mov rbx, r14
mov r14, rbp
mov rbp, rsi
loc_88422:
xor r11, [rsp+0D8h+var_D0]
xor r9, rdx
mov ecx, [rsp+0D8h+var_C4]
cmp ecx, 1
jz short loc_8843C
test ecx, ecx
jnz short loc_88441
or r11, r9
jmp short loc_88444
loc_8843C:
xor r11, r9
jmp short loc_88444
loc_88441:
and r11, r9
loc_88444:
xor r11, [rsp+0D8h+var_C0]
mov rcx, [rsp+0D8h+var_B0]
mov [rcx+r15*8], r11
inc r15
add r8, 40h ; '@'
add r10, 40h ; '@'
cmp rbp, r15
jnz loc_8837C
mov r12, 8000000000000000h
lea rax, [r12-40h]
and r13, rax
mov r15, [rsp+0D8h+var_98]
mov [r15+10h], r13
mov rax, [rsp+0D8h+var_B8]
mov [r15+8], eax
mov rdi, r15
mov r13, 3FFFFFFFFFFFFFFFh
mov rsi, r13
mov edx, 1
call bf_normalize_and_round
xor ebp, ebp
cmp [rsp+0D8h+var_B8], 0
jz loc_88299
mov rdi, r15
mov rsi, r15
mov rdx, 0FFFFFFFFFFFFFFFFh
mov rcx, r13
mov r8d, 1
call bf_add_si
test eax, eax
jnz loc_88263
jmp loc_88299
|
long long bf_logic_op(long long *a1, long long *a2, long long a3, int a4)
{
long long *v4; // rbx
_QWORD *v6; // r15
long long *v7; // rsi
long long v8; // rbp
long long *v9; // rdi
long long v10; // rcx
long long v11; // rax
long long v12; // r13
unsigned long long v13; // r13
unsigned int v14; // ebp
long long v16; // rsi
long long v17; // rsi
long long v18; // r8
long long v19; // r10
int v20; // eax
int v21; // edi
long long v22; // r15
unsigned long long v23; // r11
long long v24; // rcx
unsigned long long v25; // r9
long long v26; // r11
unsigned long long v27; // r12
long long v28; // rcx
unsigned long long v29; // r11
long long v30; // r12
long long v31; // r11
long long v32; // r9
long long v33; // r11
long long v34; // [rsp+8h] [rbp-D0h]
long long v35; // [rsp+8h] [rbp-D0h]
long long v37; // [rsp+20h] [rbp-B8h]
long long v38; // [rsp+28h] [rbp-B0h]
long long v39; // [rsp+30h] [rbp-A8h]
long long v40; // [rsp+38h] [rbp-A0h]
long long v41; // [rsp+40h] [rbp-98h]
long long v42; // [rsp+58h] [rbp-80h] BYREF
int v43; // [rsp+60h] [rbp-78h]
unsigned long long v44; // [rsp+68h] [rbp-70h] BYREF
__int128 v45; // [rsp+70h] [rbp-68h]
_QWORD *v46; // [rsp+80h] [rbp-58h] BYREF
int v47; // [rsp+88h] [rbp-50h]
unsigned long long v48; // [rsp+90h] [rbp-48h] BYREF
__int128 v49; // [rsp+98h] [rbp-40h]
v4 = (long long *)a3;
v6 = a1;
v7 = (long long *)(a3 + 16);
if ( a2[2] <= 0 )
v8 = 0LL;
else
v8 = *((int *)a2 + 2);
if ( *v7 <= 0 )
v34 = 0LL;
else
v34 = *(int *)(a3 + 8);
if ( v8 )
{
v42 = *a1;
v43 = 0;
v44 = 0x8000000000000000LL;
v45 = 0LL;
if ( (unsigned int)bf_add_si(&v42, (long long)a2, 1LL, 0x3FFFFFFFFFFFFFFFLL, 1u) )
{
v4 = 0LL;
a2 = &v42;
LABEL_36:
if ( v6[3] )
{
v6[4] = (*(long long ( **)(_QWORD, _QWORD, _QWORD))(*v6 + 8LL))(*(_QWORD *)*v6, v6[4], 0LL);
v6[3] = 0LL;
}
v6[2] = 0x7FFFFFFFFFFFFFFFLL;
*((_DWORD *)v6 + 2) = 0;
v14 = 32;
goto LABEL_39;
}
v9 = (long long *)&v44;
a2 = &v42;
}
else
{
v9 = a2 + 2;
}
if ( v34 )
{
v46 = (_QWORD *)*v6;
v47 = 0;
v48 = 0x8000000000000000LL;
v49 = 0LL;
if ( (unsigned int)bf_add_si((long long *)&v46, (long long)v4, 1LL, 0x3FFFFFFFFFFFFFFFLL, 1u) )
{
v4 = (long long *)&v46;
goto LABEL_36;
}
v7 = (long long *)&v48;
v4 = (long long *)&v46;
}
if ( a4 == 1 )
{
v10 = v8 ^ v34;
}
else if ( a4 )
{
v10 = v8 & v34;
}
else
{
v10 = v8 | v34;
}
v37 = v10;
if ( a4 != 2 || v10 )
{
v11 = *v7;
if ( *v9 > *v7 )
v11 = *v9;
}
else if ( v8 | v34 )
{
if ( v8 )
v11 = *v7;
else
v11 = *v9;
}
else
{
v11 = *v7;
if ( *v9 < *v7 )
v11 = *v9;
}
v12 = 1LL;
if ( v11 >= 2 )
v12 = v11;
v13 = v12 + 63;
if ( (unsigned int)bf_resize((long long)v6, v13 >> 6) )
goto LABEL_36;
v18 = (a2[3] << 6) - *v9;
v40 = a2[4];
v39 = v4[4];
v19 = (v4[3] << 6) - *v7;
v35 = -v34;
v20 = v18 & 0x3F;
v21 = v19 & 0x3F;
v41 = (long long)v6;
v38 = v6[4];
v22 = 0LL;
do
{
v23 = a2[3];
v24 = v18 >> 6;
if ( v18 >> 6 >= v23 )
v25 = 0LL;
else
v25 = *(_QWORD *)(v40 + 8 * v24);
if ( v20 )
{
if ( v24 + 1 >= v23 )
v26 = 0LL;
else
v26 = *(_QWORD *)(v40 + 8 * v24 + 8);
v25 = (v26 << (64 - (unsigned __int8)v20)) | (v25 >> v20);
}
v27 = v4[3];
v28 = v19 >> 6;
if ( v19 >> 6 >= v27 )
v29 = 0LL;
else
v29 = *(_QWORD *)(v39 + 8 * v28);
if ( v21 )
{
if ( v28 + 1 >= v27 )
v30 = 0LL;
else
v30 = *(_QWORD *)(v39 + 8 * v28 + 8);
v29 = (v30 << (64 - (unsigned __int8)v21)) | (v29 >> v21);
}
v31 = v35 ^ v29;
v32 = -v8 ^ v25;
if ( a4 == 1 )
{
v33 = v32 ^ v31;
}
else if ( a4 )
{
v33 = v32 & v31;
}
else
{
v33 = v32 | v31;
}
*(_QWORD *)(v38 + 8 * v22++) = -v37 ^ v33;
v18 += 64LL;
v19 += 64LL;
}
while ( v13 >> 6 != v22 );
v6 = (_QWORD *)v41;
*(_QWORD *)(v41 + 16) = v13 & 0x7FFFFFFFFFFFFFC0LL;
*(_DWORD *)(v41 + 8) = v37;
bf_normalize_and_round((_QWORD *)v41, 0x3FFFFFFFFFFFFFFFLL, 1LL);
v14 = 0;
if ( v37 )
{
if ( (unsigned int)bf_add_si((long long *)v41, v41, -1LL, 0x3FFFFFFFFFFFFFFFLL, 1u) )
goto LABEL_36;
}
LABEL_39:
if ( a2 == &v42 )
{
if ( *a2 )
{
v16 = a2[4];
if ( v16 )
(*(void ( **)(_QWORD, long long, _QWORD))(*a2 + 8))(*(_QWORD *)*a2, v16, 0LL);
}
}
if ( v4 == (long long *)&v46 )
{
if ( *v4 )
{
v17 = v4[4];
if ( v17 )
(*(void ( **)(_QWORD, long long, _QWORD))(*v4 + 8))(*(_QWORD *)*v4, v17, 0LL);
}
}
return v14;
}
|
bf_logic_op:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xa8
MOV RBX,RDX
MOV R14,RSI
MOV R15,RDI
LEA RSI,[RDX + 0x10]
CMP qword ptr [R14 + 0x10],0x0
JLE 0x001880a1
MOVSXD RBP,dword ptr [R14 + 0x8]
JMP 0x001880a3
LAB_001880a1:
XOR EBP,EBP
LAB_001880a3:
CMP qword ptr [RSI],0x0
JLE 0x001880b4
MOVSXD RAX,dword ptr [RBX + 0x8]
MOV qword ptr [RSP + 0x8],RAX
JMP 0x001880bd
LAB_001880b4:
MOV qword ptr [RSP + 0x8],0x0
LAB_001880bd:
MOV dword ptr [RSP + 0x14],ECX
MOV RDX,-0x8000000000000000
MOV RCX,0x3fffffffffffffff
TEST RBP,RBP
JZ 0x00188123
MOV R12,RSI
LEA RAX,[RSP + 0x70]
MOV RSI,qword ptr [R15]
MOV qword ptr [RAX + -0x18],RSI
MOV dword ptr [RAX + -0x10],0x0
MOV qword ptr [RAX + -0x8],RDX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX],XMM0
LEA R13,[RSP + 0x58]
MOV EDX,0x1
MOV RDI,R13
MOV RSI,R14
MOV R8D,0x1
CALL 0x00186f60
TEST EAX,EAX
JZ 0x00188129
XOR EBX,EBX
MOV R14,R13
JMP 0x00188259
LAB_00188123:
LEA RDI,[R14 + 0x10]
JMP 0x0018813e
LAB_00188129:
LEA RDI,[RSP + 0x68]
MOV R14,R13
MOV RDX,-0x8000000000000000
MOV RSI,R12
LAB_0018813e:
CMP qword ptr [RSP + 0x8],0x0
MOV qword ptr [RSP + 0x18],RDI
JZ 0x001881bb
MOV R12,RBP
LEA RAX,[RSP + 0x98]
MOV RCX,qword ptr [R15]
MOV qword ptr [RAX + -0x18],RCX
MOV dword ptr [RAX + -0x10],0x0
MOV RBP,RDX
MOV qword ptr [RAX + -0x8],RDX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX],XMM0
LEA R13,[RSP + 0x80]
MOV EDX,0x1
MOV RDI,R13
MOV RSI,RBX
MOV RCX,0x3fffffffffffffff
MOV R8D,0x1
CALL 0x00186f60
TEST EAX,EAX
JZ 0x001881a8
MOV RBX,R13
MOV R12,RBP
JMP 0x00188263
LAB_001881a8:
LEA RSI,[RSP + 0x90]
MOV RBX,R13
MOV RBP,R12
MOV RDI,qword ptr [RSP + 0x18]
LAB_001881bb:
MOV EAX,dword ptr [RSP + 0x14]
CMP EAX,0x1
JZ 0x001881d2
TEST EAX,EAX
JNZ 0x001881dc
MOV RCX,qword ptr [RSP + 0x8]
OR RCX,RBP
JMP 0x001881e4
LAB_001881d2:
MOV RCX,qword ptr [RSP + 0x8]
XOR RCX,RBP
JMP 0x001881e4
LAB_001881dc:
MOV RCX,qword ptr [RSP + 0x8]
AND RCX,RBP
LAB_001881e4:
CMP EAX,0x2
MOV qword ptr [RSP + 0x20],RCX
MOV qword ptr [RSP + 0x28],RSI
JNZ 0x0018820c
TEST RCX,RCX
JNZ 0x0018820c
MOV RAX,qword ptr [RSP + 0x8]
OR RAX,RBP
JZ 0x0018821b
TEST RBP,RBP
JZ 0x0018822a
MOV RAX,qword ptr [RSI]
JMP 0x0018822d
LAB_0018820c:
MOV RCX,qword ptr [RDI]
MOV RAX,qword ptr [RSI]
CMP RCX,RAX
CMOVG RAX,RCX
JMP 0x0018822d
LAB_0018821b:
MOV RCX,qword ptr [RDI]
MOV RAX,qword ptr [RSI]
CMP RCX,RAX
CMOVL RAX,RCX
JMP 0x0018822d
LAB_0018822a:
MOV RAX,qword ptr [RDI]
LAB_0018822d:
CMP RAX,0x2
MOV R13D,0x1
CMOVGE R13,RAX
ADD R13,0x3f
MOV R12,R13
SHR R12,0x6
MOV RDI,R15
MOV RSI,R12
CALL 0x00184a70
TEST EAX,EAX
JZ 0x001882fa
LAB_00188259:
MOV R12,-0x8000000000000000
LAB_00188263:
CMP qword ptr [R15 + 0x18],0x0
JZ 0x00188285
MOV RAX,qword ptr [R15]
MOV RSI,qword ptr [R15 + 0x20]
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
MOV qword ptr [R15 + 0x20],RAX
MOV qword ptr [R15 + 0x18],0x0
LAB_00188285:
DEC R12
MOV qword ptr [R15 + 0x10],R12
MOV dword ptr [R15 + 0x8],0x0
MOV EBP,0x20
LAB_00188299:
LEA RAX,[RSP + 0x58]
CMP R14,RAX
JZ 0x001882c4
LAB_001882a3:
LEA RAX,[RSP + 0x80]
CMP RBX,RAX
JZ 0x001882df
LAB_001882b0:
MOV EAX,EBP
ADD RSP,0xa8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001882c4:
MOV RAX,qword ptr [R14]
TEST RAX,RAX
JZ 0x001882a3
MOV RSI,qword ptr [R14 + 0x20]
TEST RSI,RSI
JZ 0x001882a3
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
JMP 0x001882a3
LAB_001882df:
MOV RAX,qword ptr [RBX]
TEST RAX,RAX
JZ 0x001882b0
MOV RSI,qword ptr [RBX + 0x20]
TEST RSI,RSI
JZ 0x001882b0
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
JMP 0x001882b0
LAB_001882fa:
MOV R8,qword ptr [R14 + 0x18]
SHL R8,0x6
MOV RAX,qword ptr [RSP + 0x18]
SUB R8,qword ptr [RAX]
MOV RAX,qword ptr [R14 + 0x20]
MOV qword ptr [RSP + 0x38],RAX
MOV R10,qword ptr [RBX + 0x18]
MOV RAX,qword ptr [RBX + 0x20]
MOV qword ptr [RSP + 0x30],RAX
SHL R10,0x6
MOV RAX,qword ptr [RSP + 0x28]
SUB R10,qword ptr [RAX]
NEG RBP
NEG qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RSP + 0x20]
NEG RAX
MOV qword ptr [RSP + 0x18],RAX
MOV EAX,R8D
AND EAX,0x3f
MOV ECX,0x40
MOV EDX,0x40
SUB EDX,EAX
MOV qword ptr [RSP + 0x48],RDX
MOV EDI,R10D
AND EDI,0x3f
SUB ECX,EDI
MOV qword ptr [RSP + 0x50],RCX
MOV qword ptr [RSP + 0x40],R15
MOV RCX,qword ptr [R15 + 0x20]
MOV qword ptr [RSP + 0x28],RCX
XOR R15D,R15D
MOV RDX,RBP
MOV RBP,R12
LAB_0018837c:
MOV R11,qword ptr [R14 + 0x18]
MOV RCX,R8
SAR RCX,0x6
CMP RCX,R11
JNC 0x00188397
MOV RSI,qword ptr [RSP + 0x38]
MOV R9,qword ptr [RSI + RCX*0x8]
JMP 0x0018839a
LAB_00188397:
XOR R9D,R9D
LAB_0018839a:
TEST EAX,EAX
JZ 0x001883c6
LEA R12,[RCX + 0x1]
CMP R12,R11
JNC 0x001883b3
MOV RSI,qword ptr [RSP + 0x38]
MOV R11,qword ptr [RSI + RCX*0x8 + 0x8]
JMP 0x001883b6
LAB_001883b3:
XOR R11D,R11D
LAB_001883b6:
MOV ECX,EAX
SHR R9,CL
MOV RCX,qword ptr [RSP + 0x48]
SHL R11,CL
OR R9,R11
LAB_001883c6:
MOV R12,qword ptr [RBX + 0x18]
MOV RCX,R10
SAR RCX,0x6
CMP RCX,R12
JNC 0x001883e1
MOV RSI,qword ptr [RSP + 0x30]
MOV R11,qword ptr [RSI + RCX*0x8]
JMP 0x001883e4
LAB_001883e1:
XOR R11D,R11D
LAB_001883e4:
TEST EDI,EDI
JZ 0x00188422
MOV RSI,RBP
MOV RBP,R14
MOV R14,RBX
LEA RBX,[RCX + 0x1]
CMP RBX,R12
JNC 0x00188406
MOV RBX,qword ptr [RSP + 0x30]
MOV R12,qword ptr [RBX + RCX*0x8 + 0x8]
JMP 0x00188409
LAB_00188406:
XOR R12D,R12D
LAB_00188409:
MOV ECX,EDI
SHR R11,CL
MOV RCX,qword ptr [RSP + 0x50]
SHL R12,CL
OR R11,R12
MOV RBX,R14
MOV R14,RBP
MOV RBP,RSI
LAB_00188422:
XOR R11,qword ptr [RSP + 0x8]
XOR R9,RDX
MOV ECX,dword ptr [RSP + 0x14]
CMP ECX,0x1
JZ 0x0018843c
TEST ECX,ECX
JNZ 0x00188441
OR R11,R9
JMP 0x00188444
LAB_0018843c:
XOR R11,R9
JMP 0x00188444
LAB_00188441:
AND R11,R9
LAB_00188444:
XOR R11,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RSP + 0x28]
MOV qword ptr [RCX + R15*0x8],R11
INC R15
ADD R8,0x40
ADD R10,0x40
CMP RBP,R15
JNZ 0x0018837c
MOV R12,-0x8000000000000000
LEA RAX,[R12 + -0x40]
AND R13,RAX
MOV R15,qword ptr [RSP + 0x40]
MOV qword ptr [R15 + 0x10],R13
MOV RAX,qword ptr [RSP + 0x20]
MOV dword ptr [R15 + 0x8],EAX
MOV RDI,R15
MOV R13,0x3fffffffffffffff
MOV RSI,R13
MOV EDX,0x1
CALL 0x00184d5c
XOR EBP,EBP
CMP qword ptr [RSP + 0x20],0x0
JZ 0x00188299
MOV RDI,R15
MOV RSI,R15
MOV RDX,-0x1
MOV RCX,R13
MOV R8D,0x1
CALL 0x00186f60
TEST EAX,EAX
JNZ 0x00188263
JMP 0x00188299
|
int8 bf_logic_op(long *param_1,long *param_2,long *param_3,int param_4)
{
int8 *puVar1;
long lVar2;
long lVar3;
ulong uVar4;
ulong uVar5;
byte bVar6;
byte bVar7;
int iVar8;
long lVar9;
ulong uVar10;
ulong uVar11;
long *plVar12;
ulong uVar13;
int8 uVar14;
long *plVar15;
long *plVar16;
ulong uVar17;
ulong uVar18;
ulong uVar19;
long lVar20;
ulong uVar21;
ulong uVar22;
long lVar23;
long *plVar24;
ulong uVar25;
ulong local_d0;
long local_80;
int4 local_78;
long local_70 [4];
int4 local_50;
long local_48 [3];
plVar15 = param_3 + 2;
if (param_2[2] < 1) {
uVar13 = 0;
}
else {
uVar13 = (ulong)(int)param_2[1];
}
if (*plVar15 < 1) {
local_d0 = 0;
}
else {
local_d0 = (ulong)(int)param_3[1];
}
if (uVar13 == 0) {
plVar16 = param_2 + 2;
plVar24 = param_2;
LAB_0018813e:
plVar12 = param_3;
if (local_d0 != 0) {
local_70[3] = *param_1;
local_50 = 0;
local_48[0] = -0x8000000000000000;
local_48[1] = 0;
local_48[2] = 0;
plVar12 = local_70 + 3;
iVar8 = bf_add_si(plVar12,param_3,1,0x3fffffffffffffff,1);
if (iVar8 != 0) goto LAB_00188263;
plVar15 = local_48;
}
if (param_4 == 1) {
uVar10 = local_d0 ^ uVar13;
}
else if (param_4 == 0) {
uVar10 = local_d0 | uVar13;
}
else {
uVar10 = local_d0 & uVar13;
}
if ((param_4 == 2) && (uVar10 == 0)) {
if (local_d0 == 0 && uVar13 == 0) {
lVar9 = *plVar15;
if (*plVar16 < *plVar15) {
lVar9 = *plVar16;
}
}
else if (uVar13 == 0) {
lVar9 = *plVar16;
}
else {
lVar9 = *plVar15;
}
}
else {
lVar9 = *plVar15;
if (*plVar15 < *plVar16) {
lVar9 = *plVar16;
}
}
lVar23 = 1;
if (1 < lVar9) {
lVar23 = lVar9;
}
uVar22 = lVar23 + 0x3fU >> 6;
iVar8 = bf_resize(param_1,uVar22);
if (iVar8 == 0) {
uVar17 = plVar24[3] * 0x40 - *plVar16;
lVar9 = plVar24[4];
lVar2 = plVar12[4];
uVar19 = plVar12[3] * 0x40 - *plVar15;
uVar4 = uVar17 & 0x3f;
bVar6 = (byte)uVar17 & 0x3f;
uVar5 = uVar19 & 0x3f;
bVar7 = (byte)uVar19 & 0x3f;
lVar3 = param_1[4];
uVar25 = 0;
do {
uVar11 = (long)uVar17 >> 6;
if (uVar11 < (ulong)plVar24[3]) {
uVar18 = *(ulong *)(lVar9 + uVar11 * 8);
}
else {
uVar18 = 0;
}
if (uVar4 != 0) {
if (uVar11 + 1 < (ulong)plVar24[3]) {
lVar20 = *(long *)(lVar9 + 8 + uVar11 * 8);
}
else {
lVar20 = 0;
}
uVar18 = uVar18 >> bVar6 | lVar20 << (0x40 - bVar6 & 0x3f);
}
uVar11 = (long)uVar19 >> 6;
if (uVar11 < (ulong)plVar12[3]) {
uVar21 = *(ulong *)(lVar2 + uVar11 * 8);
}
else {
uVar21 = 0;
}
if (uVar5 != 0) {
if (uVar11 + 1 < (ulong)plVar12[3]) {
lVar20 = *(long *)(lVar2 + 8 + uVar11 * 8);
}
else {
lVar20 = 0;
}
uVar21 = uVar21 >> bVar7 | lVar20 << (0x40 - bVar7 & 0x3f);
}
uVar21 = uVar21 ^ -local_d0;
uVar18 = uVar18 ^ -uVar13;
if (param_4 == 1) {
uVar21 = uVar21 ^ uVar18;
}
else if (param_4 == 0) {
uVar21 = uVar21 | uVar18;
}
else {
uVar21 = uVar21 & uVar18;
}
*(ulong *)(lVar3 + uVar25 * 8) = uVar21 ^ -uVar10;
uVar25 = uVar25 + 1;
uVar17 = uVar17 + 0x40;
uVar19 = uVar19 + 0x40;
} while (uVar22 != uVar25);
param_1[2] = lVar23 + 0x3fU & 0x7fffffffffffffc0;
*(int *)(param_1 + 1) = (int)uVar10;
bf_normalize_and_round(param_1,0x3fffffffffffffff,1);
uVar14 = 0;
if ((uVar10 == 0) ||
(iVar8 = bf_add_si(param_1,param_1,0xffffffffffffffff,0x3fffffffffffffff,1), iVar8 == 0))
goto LAB_00188299;
}
}
else {
local_80 = *param_1;
local_78 = 0;
local_70[0] = -0x8000000000000000;
local_70[1] = 0;
local_70[2] = 0;
plVar24 = &local_80;
iVar8 = bf_add_si(plVar24,param_2,1,0x3fffffffffffffff,1);
if (iVar8 == 0) {
plVar16 = local_70;
goto LAB_0018813e;
}
plVar12 = (long *)0x0;
}
LAB_00188263:
if (param_1[3] != 0) {
lVar9 = (*(code *)((int8 *)*param_1)[1])(*(int8 *)*param_1,param_1[4],0);
param_1[4] = lVar9;
param_1[3] = 0;
}
param_1[2] = 0x7fffffffffffffff;
*(int4 *)(param_1 + 1) = 0;
uVar14 = 0x20;
LAB_00188299:
if (((plVar24 == &local_80) && (puVar1 = (int8 *)*plVar24, puVar1 != (int8 *)0x0)) &&
(plVar24[4] != 0)) {
(*(code *)puVar1[1])(*puVar1,plVar24[4],0);
}
if (((plVar12 == local_70 + 3) && (puVar1 = (int8 *)*plVar12, puVar1 != (int8 *)0x0))
&& (plVar12[4] != 0)) {
(*(code *)puVar1[1])(*puVar1,plVar12[4],0);
}
return uVar14;
}
|
|
66,297 |
bf_logic_op
|
bluesky950520[P]quickjs/libbf.c
|
static int bf_logic_op(bf_t *r, const bf_t *a1, const bf_t *b1, int op)
{
bf_t b1_s, a1_s, *a, *b;
limb_t a_sign, b_sign, r_sign;
slimb_t l, i, a_bit_offset, b_bit_offset;
limb_t v1, v2, v1_mask, v2_mask, r_mask;
int ret;
assert(r != a1 && r != b1);
if (a1->expn <= 0)
a_sign = 0; /* minus zero is considered as positive */
else
a_sign = a1->sign;
if (b1->expn <= 0)
b_sign = 0; /* minus zero is considered as positive */
else
b_sign = b1->sign;
if (a_sign) {
a = &a1_s;
bf_init(r->ctx, a);
if (bf_add_si(a, a1, 1, BF_PREC_INF, BF_RNDZ)) {
b = NULL;
goto fail;
}
} else {
a = (bf_t *)a1;
}
if (b_sign) {
b = &b1_s;
bf_init(r->ctx, b);
if (bf_add_si(b, b1, 1, BF_PREC_INF, BF_RNDZ))
goto fail;
} else {
b = (bf_t *)b1;
}
r_sign = bf_logic_op1(a_sign, b_sign, op);
if (op == BF_LOGIC_AND && r_sign == 0) {
/* no need to compute extra zeros for and */
if (a_sign == 0 && b_sign == 0)
l = bf_min(a->expn, b->expn);
else if (a_sign == 0)
l = a->expn;
else
l = b->expn;
} else {
l = bf_max(a->expn, b->expn);
}
/* Note: a or b can be zero */
l = (bf_max(l, 1) + LIMB_BITS - 1) / LIMB_BITS;
if (bf_resize(r, l))
goto fail;
a_bit_offset = a->len * LIMB_BITS - a->expn;
b_bit_offset = b->len * LIMB_BITS - b->expn;
v1_mask = -a_sign;
v2_mask = -b_sign;
r_mask = -r_sign;
for(i = 0; i < l; i++) {
v1 = get_bits(a->tab, a->len, a_bit_offset + i * LIMB_BITS) ^ v1_mask;
v2 = get_bits(b->tab, b->len, b_bit_offset + i * LIMB_BITS) ^ v2_mask;
r->tab[i] = bf_logic_op1(v1, v2, op) ^ r_mask;
}
r->expn = l * LIMB_BITS;
r->sign = r_sign;
bf_normalize_and_round(r, BF_PREC_INF, BF_RNDZ); /* cannot fail */
if (r_sign) {
if (bf_add_si(r, r, -1, BF_PREC_INF, BF_RNDZ))
goto fail;
}
ret = 0;
done:
if (a == &a1_s)
bf_delete(a);
if (b == &b1_s)
bf_delete(b);
return ret;
fail:
bf_set_nan(r);
ret = BF_ST_MEM_ERROR;
goto done;
}
|
O2
|
c
|
bf_logic_op:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r12
addq $0x10, %rdx
cmpq $0x0, 0x10(%rsi)
jle 0x72053
movslq 0x8(%r14), %r15
jmp 0x72056
xorl %r15d, %r15d
cmpq $0x0, (%rdx)
jle 0x72067
movslq 0x8(%rbx), %rax
movq %rax, 0x8(%rsp)
jmp 0x72070
movq $0x0, 0x8(%rsp)
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movabsq $0x3fffffffffffffff, %r9 # imm = 0x3FFFFFFFFFFFFFFF
testq %r15, %r15
movl %ecx, 0x14(%rsp)
je 0x720dc
movq %rdx, %rbp
movq %r15, %r13
movq %rax, %rdx
leaq 0x60(%rsp), %rax
movq (%r12), %rcx
movq %rcx, -0x18(%rax)
andl $0x0, -0x10(%rax)
movq %rdx, -0x8(%rax)
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
leaq 0x48(%rsp), %r15
pushq $0x1
popq %rdx
pushq $0x1
popq %r8
movq %r15, %rdi
movq %r14, %rsi
movq %r9, %rcx
movq %r9, %r14
callq 0x7137a
testl %eax, %eax
je 0x720e2
xorl %ebx, %ebx
movq %r15, %r14
jmp 0x721d1
leaq 0x10(%r14), %rdi
jmp 0x72101
leaq 0x58(%rsp), %rdi
movq %r14, %r9
movq %r15, %r14
movl 0x14(%rsp), %ecx
movq %r13, %r15
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %rbp, %rdx
cmpq $0x0, 0x8(%rsp)
movq %rdi, 0x18(%rsp)
je 0x7216c
movq %r15, %r13
movq %rax, %rdx
leaq 0x88(%rsp), %rax
movq (%r12), %rcx
movq %rcx, -0x18(%rax)
andl $0x0, -0x10(%rax)
movq %rdx, -0x8(%rax)
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
leaq 0x70(%rsp), %r15
pushq $0x1
popq %rdx
pushq $0x1
popq %r8
movq %r15, %rdi
movq %rbx, %rsi
movq %r9, %rcx
callq 0x7137a
testl %eax, %eax
je 0x72155
movq %r15, %rbx
jmp 0x721d1
leaq 0x80(%rsp), %rdx
movq %r15, %rbx
movl 0x14(%rsp), %ecx
movq %r13, %r15
movq 0x18(%rsp), %rdi
pushq $0x1
popq %rbp
cmpl $0x1, %ecx
movq %rdx, 0x28(%rsp)
je 0x7218b
testl %ecx, %ecx
jne 0x72330
movq 0x8(%rsp), %rsi
orq %r15, %rsi
jmp 0x72193
movq 0x8(%rsp), %rsi
xorq %r15, %rsi
testq %rsi, %rsi
sete %al
movq %rsi, 0x20(%rsp)
movb %al, 0x7(%rsp)
movq (%rdi), %rcx
movq (%rdx), %rax
cmpq %rax, %rcx
cmovgq %rcx, %rax
cmpq $0x2, %rax
cmovgeq %rax, %rbp
addq $0x3f, %rbp
movq %rbp, %r13
shrq $0x6, %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0x6f50f
testl %eax, %eax
je 0x72214
movq %r12, %rdi
callq 0x6f5cd
pushq $0x20
popq %rbp
leaq 0x48(%rsp), %rax
cmpq %rax, %r14
jne 0x721ee
movq %r14, %rdi
callq 0x7145e
leaq 0x70(%rsp), %rax
cmpq %rax, %rbx
jne 0x72200
movq %rbx, %rdi
callq 0x7145e
movl %ebp, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbp, 0x40(%rsp)
movq %r12, 0x38(%rsp)
movq %r14, 0x30(%rsp)
movq 0x18(%r14), %r12
shlq $0x6, %r12
movq 0x18(%rsp), %rax
subq (%rax), %r12
movq %rbx, 0x18(%rsp)
movq %r15, %rax
movq 0x18(%rbx), %r15
shlq $0x6, %r15
movq 0x28(%rsp), %rcx
subq (%rcx), %r15
negq %rax
movq %rax, 0x28(%rsp)
negq 0x8(%rsp)
movq 0x20(%rsp), %rbx
negq %rbx
xorl %r14d, %r14d
cmpq %r14, %r13
je 0x722d6
movq 0x30(%rsp), %rax
movq 0x18(%rax), %rsi
movq 0x20(%rax), %rdi
movq %r12, %rdx
callq 0x72665
movq %rax, %rbp
xorq 0x28(%rsp), %rbp
movq 0x18(%rsp), %rax
movq 0x18(%rax), %rsi
movq 0x20(%rax), %rdi
movq %r15, %rdx
callq 0x72665
xorq 0x8(%rsp), %rax
movl 0x14(%rsp), %ecx
cmpl $0x1, %ecx
je 0x722b1
testl %ecx, %ecx
jne 0x722b6
orq %rbp, %rax
jmp 0x722b9
xorq %rbp, %rax
jmp 0x722b9
andq %rbp, %rax
xorq %rbx, %rax
movq 0x38(%rsp), %rcx
movq 0x20(%rcx), %rcx
movq %rax, (%rcx,%r14,8)
incq %r14
addq $0x40, %r12
addq $0x40, %r15
jmp 0x72263
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
addq $-0x40, %rax
movq 0x40(%rsp), %rcx
andq %rax, %rcx
movq 0x38(%rsp), %r12
movq %rcx, 0x10(%r12)
movq 0x20(%rsp), %rax
movl %eax, 0x8(%r12)
pushq $0x1
popq %rdx
movq %r12, %rdi
movabsq $0x3fffffffffffffff, %rbx # imm = 0x3FFFFFFFFFFFFFFF
movq %rbx, %rsi
callq 0x6f707
xorl %ebp, %ebp
cmpb $0x0, 0x7(%rsp)
je 0x72361
movq 0x18(%rsp), %rbx
movq 0x30(%rsp), %r14
jmp 0x721dc
movq 0x8(%rsp), %rsi
andq %r15, %rsi
sete %al
cmpl $0x2, %ecx
jne 0x72199
testq %rsi, %rsi
jne 0x72199
movq 0x8(%rsp), %rax
orq %r15, %rax
je 0x7238d
testq %r15, %r15
je 0x7239c
movq (%rdx), %rax
jmp 0x7239f
pushq $-0x1
popq %rdx
pushq $0x1
popq %r8
movq %r12, %rdi
movq %r12, %rsi
movq %rbx, %rcx
callq 0x7137a
testl %eax, %eax
movq 0x18(%rsp), %rbx
movq 0x30(%rsp), %r14
jne 0x721d1
jmp 0x721dc
movq (%rdi), %rcx
movq (%rdx), %rax
cmpq %rax, %rcx
cmovlq %rcx, %rax
jmp 0x7239f
movq (%rdi), %rax
movb $0x1, 0x7(%rsp)
movq $0x0, 0x20(%rsp)
jmp 0x721af
|
bf_logic_op:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 98h
mov rbx, rdx
mov r14, rsi
mov r12, rdi
add rdx, 10h
cmp qword ptr [rsi+10h], 0
jle short loc_72053
movsxd r15, dword ptr [r14+8]
jmp short loc_72056
loc_72053:
xor r15d, r15d
loc_72056:
cmp qword ptr [rdx], 0
jle short loc_72067
movsxd rax, dword ptr [rbx+8]
mov [rsp+0C8h+var_C0], rax
jmp short loc_72070
loc_72067:
mov [rsp+0C8h+var_C0], 0
loc_72070:
mov rax, 8000000000000000h
mov r9, 3FFFFFFFFFFFFFFFh
test r15, r15
mov [rsp+0C8h+var_B4], ecx
jz short loc_720DC
mov rbp, rdx
mov r13, r15
mov rdx, rax
lea rax, [rsp+0C8h+var_68]
mov rcx, [r12]
mov [rax-18h], rcx
and dword ptr [rax-10h], 0
mov [rax-8], rdx
xorps xmm0, xmm0
movups xmmword ptr [rax], xmm0
lea r15, [rsp+0C8h+var_80]
push 1
pop rdx
push 1
pop r8
mov rdi, r15
mov rsi, r14
mov rcx, r9
mov r14, r9
call bf_add_si
test eax, eax
jz short loc_720E2
xor ebx, ebx
mov r14, r15
jmp loc_721D1
loc_720DC:
lea rdi, [r14+10h]
jmp short loc_72101
loc_720E2:
lea rdi, [rsp+0C8h+var_70]
mov r9, r14
mov r14, r15
mov ecx, [rsp+0C8h+var_B4]
mov r15, r13
mov rax, 8000000000000000h
mov rdx, rbp
loc_72101:
cmp [rsp+0C8h+var_C0], 0
mov [rsp+0C8h+var_B0], rdi
jz short loc_7216C
mov r13, r15
mov rdx, rax
lea rax, [rsp+0C8h+var_40]
mov rcx, [r12]
mov [rax-18h], rcx
and dword ptr [rax-10h], 0
mov [rax-8], rdx
xorps xmm0, xmm0
movups xmmword ptr [rax], xmm0
lea r15, [rsp+0C8h+var_58]
push 1
pop rdx
push 1
pop r8
mov rdi, r15
mov rsi, rbx
mov rcx, r9
call bf_add_si
test eax, eax
jz short loc_72155
mov rbx, r15
jmp short loc_721D1
loc_72155:
lea rdx, [rsp+0C8h+var_48]
mov rbx, r15
mov ecx, [rsp+0C8h+var_B4]
mov r15, r13
mov rdi, [rsp+0C8h+var_B0]
loc_7216C:
push 1
pop rbp
cmp ecx, 1
mov [rsp+0C8h+var_A0], rdx
jz short loc_7218B
test ecx, ecx
jnz loc_72330
mov rsi, [rsp+0C8h+var_C0]
or rsi, r15
jmp short loc_72193
loc_7218B:
mov rsi, [rsp+0C8h+var_C0]
xor rsi, r15
loc_72193:
test rsi, rsi
setz al
loc_72199:
mov [rsp+0C8h+var_A8], rsi
mov [rsp+0C8h+var_C1], al
mov rcx, [rdi]
mov rax, [rdx]
cmp rcx, rax
cmovg rax, rcx
loc_721AF:
cmp rax, 2
cmovge rbp, rax
add rbp, 3Fh ; '?'
mov r13, rbp
shr r13, 6
mov rdi, r12
mov rsi, r13
call bf_resize
test eax, eax
jz short loc_72214
loc_721D1:
mov rdi, r12
call bf_set_nan
push 20h ; ' '
pop rbp
loc_721DC:
lea rax, [rsp+0C8h+var_80]
cmp r14, rax
jnz short loc_721EE
mov rdi, r14
call bf_delete_0
loc_721EE:
lea rax, [rsp+0C8h+var_58]
cmp rbx, rax
jnz short loc_72200
mov rdi, rbx
call bf_delete_0
loc_72200:
mov eax, ebp
add rsp, 98h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_72214:
mov [rsp+0C8h+var_88], rbp
mov [rsp+0C8h+var_90], r12
mov [rsp+0C8h+var_98], r14
mov r12, [r14+18h]
shl r12, 6
mov rax, [rsp+0C8h+var_B0]
sub r12, [rax]
mov [rsp+0C8h+var_B0], rbx
mov rax, r15
mov r15, [rbx+18h]
shl r15, 6
mov rcx, [rsp+0C8h+var_A0]
sub r15, [rcx]
neg rax
mov [rsp+0C8h+var_A0], rax
neg [rsp+0C8h+var_C0]
mov rbx, [rsp+0C8h+var_A8]
neg rbx
xor r14d, r14d
loc_72263:
cmp r13, r14
jz short loc_722D6
mov rax, [rsp+0C8h+var_98]
mov rsi, [rax+18h]
mov rdi, [rax+20h]
mov rdx, r12
call get_bits
mov rbp, rax
xor rbp, [rsp+0C8h+var_A0]
mov rax, [rsp+0C8h+var_B0]
mov rsi, [rax+18h]
mov rdi, [rax+20h]
mov rdx, r15
call get_bits
xor rax, [rsp+0C8h+var_C0]
mov ecx, [rsp+0C8h+var_B4]
cmp ecx, 1
jz short loc_722B1
test ecx, ecx
jnz short loc_722B6
or rax, rbp
jmp short loc_722B9
loc_722B1:
xor rax, rbp
jmp short loc_722B9
loc_722B6:
and rax, rbp
loc_722B9:
xor rax, rbx
mov rcx, [rsp+0C8h+var_90]
mov rcx, [rcx+20h]
mov [rcx+r14*8], rax
inc r14
add r12, 40h ; '@'
add r15, 40h ; '@'
jmp short loc_72263
loc_722D6:
mov rax, 8000000000000000h
add rax, 0FFFFFFFFFFFFFFC0h
mov rcx, [rsp+0C8h+var_88]
and rcx, rax
mov r12, [rsp+0C8h+var_90]
mov [r12+10h], rcx
mov rax, [rsp+0C8h+var_A8]
mov [r12+8], eax
push 1
pop rdx
mov rdi, r12
mov rbx, 3FFFFFFFFFFFFFFFh
mov rsi, rbx
call bf_normalize_and_round
xor ebp, ebp
cmp [rsp+0C8h+var_C1], 0
jz short loc_72361
mov rbx, [rsp+0C8h+var_B0]
mov r14, [rsp+0C8h+var_98]
jmp loc_721DC
loc_72330:
mov rsi, [rsp+0C8h+var_C0]
and rsi, r15
setz al
cmp ecx, 2
jnz loc_72199
test rsi, rsi
jnz loc_72199
mov rax, [rsp+0C8h+var_C0]
or rax, r15
jz short loc_7238D
test r15, r15
jz short loc_7239C
mov rax, [rdx]
jmp short loc_7239F
loc_72361:
push 0FFFFFFFFFFFFFFFFh
pop rdx
push 1
pop r8
mov rdi, r12
mov rsi, r12
mov rcx, rbx
call bf_add_si
test eax, eax
mov rbx, [rsp+0C8h+var_B0]
mov r14, [rsp+0C8h+var_98]
jnz loc_721D1
jmp loc_721DC
loc_7238D:
mov rcx, [rdi]
mov rax, [rdx]
cmp rcx, rax
cmovl rax, rcx
jmp short loc_7239F
loc_7239C:
mov rax, [rdi]
loc_7239F:
mov [rsp+0C8h+var_C1], 1
mov [rsp+0C8h+var_A8], 0
jmp loc_721AF
|
long long bf_logic_op(long long *a1, long long a2, long long *a3, int a4)
{
long long *v4; // rbx
long long *v5; // r14
long long *v6; // r12
long long *v7; // rdx
long long v8; // r15
long long *v9; // rbp
long long *v10; // rdi
long long v11; // rbp
long long v12; // rsi
bool v13; // al
long long v14; // rax
unsigned long long v15; // rbp
unsigned long long v16; // r13
unsigned int v17; // ebp
long long v19; // r12
long long v20; // rax
long long v21; // r15
long long i; // r14
long long v23; // rbp
long long v24; // rax
long long v25; // rax
char v26; // [rsp+7h] [rbp-C1h]
long long v27; // [rsp+8h] [rbp-C0h]
long long v28; // [rsp+8h] [rbp-C0h]
int v29; // [rsp+14h] [rbp-B4h]
long long v30; // [rsp+20h] [rbp-A8h]
long long *v31; // [rsp+28h] [rbp-A0h]
long long v32; // [rsp+28h] [rbp-A0h]
long long *v33; // [rsp+30h] [rbp-98h]
long long v34; // [rsp+38h] [rbp-90h]
unsigned long long v35; // [rsp+40h] [rbp-88h]
long long v36; // [rsp+48h] [rbp-80h] BYREF
int v37; // [rsp+50h] [rbp-78h]
unsigned long long v38; // [rsp+58h] [rbp-70h] BYREF
__int128 v39; // [rsp+60h] [rbp-68h]
long long v40; // [rsp+70h] [rbp-58h] BYREF
int v41; // [rsp+78h] [rbp-50h]
unsigned long long v42; // [rsp+80h] [rbp-48h] BYREF
__int128 v43; // [rsp+88h] [rbp-40h]
v4 = a3;
v5 = (long long *)a2;
v6 = a1;
v7 = a3 + 2;
if ( *(long long *)(a2 + 16) <= 0 )
v8 = 0LL;
else
v8 = *(int *)(a2 + 8);
if ( *v7 <= 0 )
v27 = 0LL;
else
v27 = *((int *)v4 + 2);
v29 = a4;
if ( v8 )
{
v9 = v7;
v36 = *a1;
v37 = 0;
v38 = 0x8000000000000000LL;
v39 = 0LL;
if ( (unsigned int)bf_add_si(&v36, a2, 1LL, 0x3FFFFFFFFFFFFFFFLL, 1u) )
{
v4 = 0LL;
v5 = &v36;
LABEL_26:
bf_set_nan((long long)v6);
v17 = 32;
goto LABEL_27;
}
v10 = (long long *)&v38;
v5 = &v36;
a4 = v29;
v7 = v9;
}
else
{
v10 = (long long *)(a2 + 16);
}
if ( v27 )
{
v40 = *v6;
v41 = 0;
v42 = 0x8000000000000000LL;
v43 = 0LL;
if ( (unsigned int)bf_add_si(&v40, (long long)v4, 1LL, 0x3FFFFFFFFFFFFFFFLL, 1u) )
{
v4 = &v40;
goto LABEL_26;
}
v7 = (long long *)&v42;
v4 = &v40;
a4 = v29;
}
v11 = 1LL;
v31 = v7;
if ( a4 == 1 )
{
v12 = v8 ^ v27;
goto LABEL_20;
}
if ( !a4 )
{
v12 = v8 | v27;
LABEL_20:
v13 = v12 == 0;
goto LABEL_21;
}
v12 = v8 & v27;
v13 = (v8 & v27) == 0;
if ( a4 != 2 || v12 )
{
LABEL_21:
v30 = v12;
v26 = v13;
v14 = *v7;
if ( *v10 > *v7 )
v14 = *v10;
goto LABEL_23;
}
if ( v8 | v27 )
{
if ( v8 )
v14 = *v7;
else
v14 = *v10;
}
else
{
v14 = *v7;
if ( *v10 < *v7 )
v14 = *v10;
}
v26 = 1;
v30 = 0LL;
LABEL_23:
if ( v14 >= 2 )
v11 = v14;
v15 = v11 + 63;
v16 = v15 >> 6;
if ( (unsigned int)bf_resize((long long)v6, v15 >> 6) )
goto LABEL_26;
v35 = v15;
v34 = (long long)v6;
v33 = v5;
v19 = (v5[3] << 6) - *v10;
v20 = v8;
v21 = (v4[3] << 6) - *v31;
v32 = -v20;
v28 = -v27;
for ( i = 0LL; v16 != i; ++i )
{
v23 = v32 ^ get_bits(v33[4], v33[3], v19);
v24 = v28 ^ get_bits(v4[4], v4[3], v21);
if ( v29 == 1 )
{
v25 = v23 ^ v24;
}
else if ( v29 )
{
v25 = v23 & v24;
}
else
{
v25 = v23 | v24;
}
*(_QWORD *)(*(_QWORD *)(v34 + 32) + 8 * i) = -v30 ^ v25;
v19 += 64LL;
v21 += 64LL;
}
v6 = (long long *)v34;
*(_QWORD *)(v34 + 16) = v35 & 0x7FFFFFFFFFFFFFC0LL;
*(_DWORD *)(v34 + 8) = v30;
bf_normalize_and_round((_QWORD *)v34, 0x3FFFFFFFFFFFFFFFLL, 1LL);
v17 = 0;
if ( v26 )
{
v5 = v33;
}
else
{
v5 = v33;
if ( (unsigned int)bf_add_si((long long *)v34, v34, -1LL, 0x3FFFFFFFFFFFFFFFLL, 1u) )
goto LABEL_26;
}
LABEL_27:
if ( v5 == &v36 )
bf_delete_0(v5);
if ( v4 == &v40 )
bf_delete_0(v4);
return v17;
}
|
bf_logic_op:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x98
MOV RBX,RDX
MOV R14,RSI
MOV R12,RDI
ADD RDX,0x10
CMP qword ptr [RSI + 0x10],0x0
JLE 0x00172053
MOVSXD R15,dword ptr [R14 + 0x8]
JMP 0x00172056
LAB_00172053:
XOR R15D,R15D
LAB_00172056:
CMP qword ptr [RDX],0x0
JLE 0x00172067
MOVSXD RAX,dword ptr [RBX + 0x8]
MOV qword ptr [RSP + 0x8],RAX
JMP 0x00172070
LAB_00172067:
MOV qword ptr [RSP + 0x8],0x0
LAB_00172070:
MOV RAX,-0x8000000000000000
MOV R9,0x3fffffffffffffff
TEST R15,R15
MOV dword ptr [RSP + 0x14],ECX
JZ 0x001720dc
MOV RBP,RDX
MOV R13,R15
MOV RDX,RAX
LEA RAX,[RSP + 0x60]
MOV RCX,qword ptr [R12]
MOV qword ptr [RAX + -0x18],RCX
AND dword ptr [RAX + -0x10],0x0
MOV qword ptr [RAX + -0x8],RDX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX],XMM0
LEA R15,[RSP + 0x48]
PUSH 0x1
POP RDX
PUSH 0x1
POP R8
MOV RDI,R15
MOV RSI,R14
MOV RCX,R9
MOV R14,R9
CALL 0x0017137a
TEST EAX,EAX
JZ 0x001720e2
XOR EBX,EBX
MOV R14,R15
JMP 0x001721d1
LAB_001720dc:
LEA RDI,[R14 + 0x10]
JMP 0x00172101
LAB_001720e2:
LEA RDI,[RSP + 0x58]
MOV R9,R14
MOV R14,R15
MOV ECX,dword ptr [RSP + 0x14]
MOV R15,R13
MOV RAX,-0x8000000000000000
MOV RDX,RBP
LAB_00172101:
CMP qword ptr [RSP + 0x8],0x0
MOV qword ptr [RSP + 0x18],RDI
JZ 0x0017216c
MOV R13,R15
MOV RDX,RAX
LEA RAX,[RSP + 0x88]
MOV RCX,qword ptr [R12]
MOV qword ptr [RAX + -0x18],RCX
AND dword ptr [RAX + -0x10],0x0
MOV qword ptr [RAX + -0x8],RDX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX],XMM0
LEA R15,[RSP + 0x70]
PUSH 0x1
POP RDX
PUSH 0x1
POP R8
MOV RDI,R15
MOV RSI,RBX
MOV RCX,R9
CALL 0x0017137a
TEST EAX,EAX
JZ 0x00172155
MOV RBX,R15
JMP 0x001721d1
LAB_00172155:
LEA RDX,[RSP + 0x80]
MOV RBX,R15
MOV ECX,dword ptr [RSP + 0x14]
MOV R15,R13
MOV RDI,qword ptr [RSP + 0x18]
LAB_0017216c:
PUSH 0x1
POP RBP
CMP ECX,0x1
MOV qword ptr [RSP + 0x28],RDX
JZ 0x0017218b
TEST ECX,ECX
JNZ 0x00172330
MOV RSI,qword ptr [RSP + 0x8]
OR RSI,R15
JMP 0x00172193
LAB_0017218b:
MOV RSI,qword ptr [RSP + 0x8]
XOR RSI,R15
LAB_00172193:
TEST RSI,RSI
SETZ AL
LAB_00172199:
MOV qword ptr [RSP + 0x20],RSI
MOV byte ptr [RSP + 0x7],AL
MOV RCX,qword ptr [RDI]
MOV RAX,qword ptr [RDX]
CMP RCX,RAX
CMOVG RAX,RCX
LAB_001721af:
CMP RAX,0x2
CMOVGE RBP,RAX
ADD RBP,0x3f
MOV R13,RBP
SHR R13,0x6
MOV RDI,R12
MOV RSI,R13
CALL 0x0016f50f
TEST EAX,EAX
JZ 0x00172214
LAB_001721d1:
MOV RDI,R12
CALL 0x0016f5cd
PUSH 0x20
POP RBP
LAB_001721dc:
LEA RAX,[RSP + 0x48]
CMP R14,RAX
JNZ 0x001721ee
MOV RDI,R14
CALL 0x0017145e
LAB_001721ee:
LEA RAX,[RSP + 0x70]
CMP RBX,RAX
JNZ 0x00172200
MOV RDI,RBX
CALL 0x0017145e
LAB_00172200:
MOV EAX,EBP
ADD RSP,0x98
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00172214:
MOV qword ptr [RSP + 0x40],RBP
MOV qword ptr [RSP + 0x38],R12
MOV qword ptr [RSP + 0x30],R14
MOV R12,qword ptr [R14 + 0x18]
SHL R12,0x6
MOV RAX,qword ptr [RSP + 0x18]
SUB R12,qword ptr [RAX]
MOV qword ptr [RSP + 0x18],RBX
MOV RAX,R15
MOV R15,qword ptr [RBX + 0x18]
SHL R15,0x6
MOV RCX,qword ptr [RSP + 0x28]
SUB R15,qword ptr [RCX]
NEG RAX
MOV qword ptr [RSP + 0x28],RAX
NEG qword ptr [RSP + 0x8]
MOV RBX,qword ptr [RSP + 0x20]
NEG RBX
XOR R14D,R14D
LAB_00172263:
CMP R13,R14
JZ 0x001722d6
MOV RAX,qword ptr [RSP + 0x30]
MOV RSI,qword ptr [RAX + 0x18]
MOV RDI,qword ptr [RAX + 0x20]
MOV RDX,R12
CALL 0x00172665
MOV RBP,RAX
XOR RBP,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RAX + 0x18]
MOV RDI,qword ptr [RAX + 0x20]
MOV RDX,R15
CALL 0x00172665
XOR RAX,qword ptr [RSP + 0x8]
MOV ECX,dword ptr [RSP + 0x14]
CMP ECX,0x1
JZ 0x001722b1
TEST ECX,ECX
JNZ 0x001722b6
OR RAX,RBP
JMP 0x001722b9
LAB_001722b1:
XOR RAX,RBP
JMP 0x001722b9
LAB_001722b6:
AND RAX,RBP
LAB_001722b9:
XOR RAX,RBX
MOV RCX,qword ptr [RSP + 0x38]
MOV RCX,qword ptr [RCX + 0x20]
MOV qword ptr [RCX + R14*0x8],RAX
INC R14
ADD R12,0x40
ADD R15,0x40
JMP 0x00172263
LAB_001722d6:
MOV RAX,-0x8000000000000000
ADD RAX,-0x40
MOV RCX,qword ptr [RSP + 0x40]
AND RCX,RAX
MOV R12,qword ptr [RSP + 0x38]
MOV qword ptr [R12 + 0x10],RCX
MOV RAX,qword ptr [RSP + 0x20]
MOV dword ptr [R12 + 0x8],EAX
PUSH 0x1
POP RDX
MOV RDI,R12
MOV RBX,0x3fffffffffffffff
MOV RSI,RBX
CALL 0x0016f707
XOR EBP,EBP
CMP byte ptr [RSP + 0x7],0x0
JZ 0x00172361
MOV RBX,qword ptr [RSP + 0x18]
MOV R14,qword ptr [RSP + 0x30]
JMP 0x001721dc
LAB_00172330:
MOV RSI,qword ptr [RSP + 0x8]
AND RSI,R15
SETZ AL
CMP ECX,0x2
JNZ 0x00172199
TEST RSI,RSI
JNZ 0x00172199
MOV RAX,qword ptr [RSP + 0x8]
OR RAX,R15
JZ 0x0017238d
TEST R15,R15
JZ 0x0017239c
MOV RAX,qword ptr [RDX]
JMP 0x0017239f
LAB_00172361:
PUSH -0x1
POP RDX
PUSH 0x1
POP R8
MOV RDI,R12
MOV RSI,R12
MOV RCX,RBX
CALL 0x0017137a
TEST EAX,EAX
MOV RBX,qword ptr [RSP + 0x18]
MOV R14,qword ptr [RSP + 0x30]
JNZ 0x001721d1
JMP 0x001721dc
LAB_0017238d:
MOV RCX,qword ptr [RDI]
MOV RAX,qword ptr [RDX]
CMP RCX,RAX
CMOVL RAX,RCX
JMP 0x0017239f
LAB_0017239c:
MOV RAX,qword ptr [RDI]
LAB_0017239f:
MOV byte ptr [RSP + 0x7],0x1
MOV qword ptr [RSP + 0x20],0x0
JMP 0x001721af
|
int8 bf_logic_op(int8 *param_1,int8 *param_2,long *param_3,int param_4)
{
int iVar1;
ulong uVar2;
ulong uVar3;
long *plVar4;
long *plVar5;
long lVar6;
int8 uVar7;
long *plVar8;
long lVar9;
ulong uVar10;
int8 *puVar11;
ulong uVar12;
ulong uVar13;
long lVar14;
bool bVar15;
ulong local_c0;
ulong local_a8;
int8 local_80;
int4 local_78;
long local_70 [4];
int4 local_50;
long local_48 [3];
plVar4 = param_3 + 2;
if ((long)param_2[2] < 1) {
uVar13 = 0;
}
else {
uVar13 = (ulong)*(int *)(param_2 + 1);
}
if (*plVar4 < 1) {
local_c0 = 0;
}
else {
local_c0 = (ulong)(int)param_3[1];
}
if (uVar13 == 0) {
plVar8 = param_2 + 2;
puVar11 = param_2;
LAB_00172101:
plVar5 = param_3;
if (local_c0 != 0) {
local_70[3] = *param_1;
local_50 = 0;
local_48[0] = -0x8000000000000000;
local_48[1] = 0;
local_48[2] = 0;
plVar5 = local_70 + 3;
iVar1 = bf_add_si(plVar5,param_3,1,0x3fffffffffffffff,1);
if (iVar1 != 0) goto LAB_001721d1;
plVar4 = local_48;
}
if (param_4 == 1) {
local_a8 = local_c0 ^ uVar13;
LAB_00172193:
bVar15 = local_a8 == 0;
LAB_00172199:
lVar9 = *plVar4;
if (*plVar4 < *plVar8) {
lVar9 = *plVar8;
}
}
else {
if (param_4 == 0) {
local_a8 = local_c0 | uVar13;
goto LAB_00172193;
}
local_a8 = local_c0 & uVar13;
bVar15 = local_a8 == 0;
if ((param_4 != 2) || (local_a8 != 0)) goto LAB_00172199;
if (local_c0 == 0 && uVar13 == 0) {
lVar9 = *plVar4;
if (*plVar8 < *plVar4) {
lVar9 = *plVar8;
}
}
else if (uVar13 == 0) {
lVar9 = *plVar8;
}
else {
lVar9 = *plVar4;
}
bVar15 = true;
local_a8 = 0;
}
lVar6 = 1;
if (1 < lVar9) {
lVar6 = lVar9;
}
uVar10 = lVar6 + 0x3fU >> 6;
iVar1 = bf_resize(param_1,uVar10);
if (iVar1 == 0) {
lVar9 = puVar11[3] * 0x40 - *plVar8;
lVar14 = plVar5[3] * 0x40 - *plVar4;
for (uVar12 = 0; uVar10 != uVar12; uVar12 = uVar12 + 1) {
uVar2 = get_bits(puVar11[4],puVar11[3],lVar9);
uVar2 = uVar2 ^ -uVar13;
uVar3 = get_bits(plVar5[4],plVar5[3],lVar14);
uVar3 = uVar3 ^ -local_c0;
if (param_4 == 1) {
uVar3 = uVar3 ^ uVar2;
}
else if (param_4 == 0) {
uVar3 = uVar3 | uVar2;
}
else {
uVar3 = uVar3 & uVar2;
}
*(ulong *)(param_1[4] + uVar12 * 8) = uVar3 ^ -local_a8;
lVar9 = lVar9 + 0x40;
lVar14 = lVar14 + 0x40;
}
param_1[2] = lVar6 + 0x3fU & 0x7fffffffffffffc0;
*(int *)(param_1 + 1) = (int)local_a8;
bf_normalize_and_round(param_1,0x3fffffffffffffff,1);
uVar7 = 0;
if ((bVar15) ||
(iVar1 = bf_add_si(param_1,param_1,0xffffffffffffffff,0x3fffffffffffffff,1), iVar1 == 0))
goto LAB_001721dc;
}
}
else {
local_80 = *param_1;
local_78 = 0;
local_70[0] = -0x8000000000000000;
local_70[1] = 0;
local_70[2] = 0;
puVar11 = &local_80;
iVar1 = bf_add_si(puVar11,param_2,1,0x3fffffffffffffff,1);
if (iVar1 == 0) {
plVar8 = local_70;
goto LAB_00172101;
}
plVar5 = (long *)0x0;
}
LAB_001721d1:
bf_set_nan(param_1);
uVar7 = 0x20;
LAB_001721dc:
if (puVar11 == &local_80) {
bf_delete(puVar11);
}
if (plVar5 == local_70 + 3) {
bf_delete(plVar5);
}
return uVar7;
}
|
|
66,298 |
Create_file_log_event::Create_file_log_event(unsigned char const*, unsigned int, Format_description_log_event const*)
|
eloqsql/sql/log_event.cc
|
Create_file_log_event::
Create_file_log_event(const uchar *buf, uint len,
const Format_description_log_event* description_event)
:Load_log_event(buf,0,description_event),fake_base(0),block(0),
inited_from_old(0)
{
DBUG_ENTER("Create_file_log_event::Create_file_log_event(char*,...)");
uint block_offset;
uint header_len= description_event->common_header_len;
uint8 load_header_len= description_event->post_header_len[LOAD_EVENT-1];
uint8 create_file_header_len= description_event->post_header_len[CREATE_FILE_EVENT-1];
if (!(event_buf= (uchar*) my_memdup(PSI_INSTRUMENT_ME, buf, len,
MYF(MY_WME))) ||
copy_log_event(event_buf,len,
(((uchar)buf[EVENT_TYPE_OFFSET] == LOAD_EVENT) ?
load_header_len + header_len :
(fake_base ? (header_len+load_header_len) :
(header_len+load_header_len) +
create_file_header_len)),
description_event))
DBUG_VOID_RETURN;
if (description_event->binlog_version!=1)
{
file_id= uint4korr(buf +
header_len +
load_header_len + CF_FILE_ID_OFFSET);
/*
Note that it's ok to use get_data_size() below, because it is computed
with values we have already read from this event (because we called
copy_log_event()); we are not using slave's format info to decode
master's format, we are really using master's format info.
Anyway, both formats should be identical (except the common_header_len)
as these Load events are not changed between 4.0 and 5.0 (as logging of
LOAD DATA INFILE does not use Load_log_event in 5.0).
The + 1 is for \0 terminating fname
*/
block_offset= (description_event->common_header_len +
Load_log_event::get_data_size() +
create_file_header_len + 1);
if (len < block_offset)
DBUG_VOID_RETURN;
block= const_cast<uchar*>(buf) + block_offset;
block_len= len - block_offset;
}
else
{
sql_ex.force_new_format();
inited_from_old= 1;
}
DBUG_VOID_RETURN;
}
|
O0
|
cpp
|
Create_file_log_event::Create_file_log_event(unsigned char const*, unsigned int, Format_description_log_event const*):
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x58(%rbp)
movq -0x10(%rbp), %rsi
movq -0x20(%rbp), %rcx
xorl %edx, %edx
movl %edx, -0x4c(%rbp)
callq 0x4e760
movq -0x58(%rbp), %rax
movl -0x4c(%rbp), %edi
leaq 0x229ffe(%rip), %rcx # 0x279c20
movq %rcx, (%rax)
movb $0x0, 0x122(%rax)
movq $0x0, 0x128(%rax)
movb $0x0, 0x140(%rax)
movq -0x20(%rbp), %rax
movzbl 0xcd(%rax), %eax
movl %eax, -0x28(%rbp)
movq -0x20(%rbp), %rax
movq 0xd0(%rax), %rax
movb 0x5(%rax), %al
movb %al, -0x29(%rbp)
movq -0x20(%rbp), %rax
movq 0xd0(%rax), %rax
movb 0x7(%rax), %al
movb %al, -0x2a(%rbp)
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
movl $0x10, %ecx
callq 0xbad60
movq %rax, -0x48(%rbp)
jmp 0x4fc87
movq -0x48(%rbp), %rax
movq -0x58(%rbp), %rcx
movq %rax, 0x130(%rcx)
cmpq $0x0, %rax
je 0x4fd27
movq -0x58(%rbp), %rax
movq 0x130(%rax), %rax
movq %rax, -0x68(%rbp)
movl -0x14(%rbp), %eax
movq %rax, -0x60(%rbp)
movq -0x10(%rbp), %rax
movzbl 0x4(%rax), %eax
cmpl $0x6, %eax
jne 0x4fccf
movzbl -0x29(%rbp), %eax
addl -0x28(%rbp), %eax
movl %eax, -0x6c(%rbp)
jmp 0x4fd02
movq -0x58(%rbp), %rax
testb $0x1, 0x122(%rax)
je 0x4fcea
movl -0x28(%rbp), %eax
movzbl -0x29(%rbp), %ecx
addl %ecx, %eax
movl %eax, -0x70(%rbp)
jmp 0x4fcfc
movl -0x28(%rbp), %eax
movzbl -0x29(%rbp), %ecx
addl %ecx, %eax
movzbl -0x2a(%rbp), %ecx
addl %ecx, %eax
movl %eax, -0x70(%rbp)
movl -0x70(%rbp), %eax
movl %eax, -0x6c(%rbp)
movq -0x60(%rbp), %rdx
movq -0x68(%rbp), %rsi
movq -0x58(%rbp), %rdi
movl -0x6c(%rbp), %ecx
movq -0x20(%rbp), %r8
callq 0x4e890
movl %eax, -0x74(%rbp)
jmp 0x4fd1f
movl -0x74(%rbp), %eax
cmpl $0x0, %eax
je 0x4fd48
jmp 0x4fd29
jmp 0x4fdef
movq -0x58(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
callq 0x67be0
jmp 0x4fdf8
movq -0x20(%rbp), %rax
movzwl 0x98(%rax), %eax
cmpl $0x1, %eax
je 0x4fdce
movq -0x58(%rbp), %rdi
movq -0x10(%rbp), %rcx
movl -0x28(%rbp), %eax
addq %rax, %rcx
movzbl -0x29(%rbp), %eax
movl (%rax,%rcx), %eax
movl %eax, 0x13c(%rdi)
movq -0x20(%rbp), %rax
movzbl 0xcd(%rax), %eax
movl %eax, -0x7c(%rbp)
callq 0x65e10
movl %eax, -0x78(%rbp)
jmp 0x4fd8b
movl -0x78(%rbp), %ecx
movl -0x7c(%rbp), %eax
addl %ecx, %eax
movzbl -0x2a(%rbp), %ecx
addl %ecx, %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x24(%rbp), %eax
jae 0x4fdab
jmp 0x4fda9
jmp 0x4fdef
movq -0x58(%rbp), %rax
movq -0x10(%rbp), %rcx
movl -0x24(%rbp), %edx
addq %rdx, %rcx
movq %rcx, 0x128(%rax)
movl -0x14(%rbp), %ecx
subl -0x24(%rbp), %ecx
movl %ecx, 0x138(%rax)
jmp 0x4fdeb
movq -0x58(%rbp), %rdi
addq $0xe8, %rdi
callq 0x65e70
jmp 0x4fde0
movq -0x58(%rbp), %rax
movb $0x1, 0x140(%rax)
jmp 0x4fded
jmp 0x4fdef
addq $0x80, %rsp
popq %rbp
retq
movq -0x38(%rbp), %rdi
callq 0x3b710
nopw %cs:(%rax,%rax)
|
_ZN21Create_file_log_eventC2EPKhjPK28Format_description_log_event:
push rbp; Alternative name is 'Create_file_log_event::Create_file_log_event(unsigned char const*, unsigned int, Format_description_log_event const*)'
mov rbp, rsp
sub rsp, 80h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov [rbp+var_20], rcx
mov rdi, [rbp+var_8]; this
mov [rbp+var_58], rdi
mov rsi, [rbp+var_10]; unsigned __int8 *
mov rcx, [rbp+var_20]; Format_description_log_event *
xor edx, edx; unsigned int
mov [rbp+var_4C], edx
call _ZN14Load_log_eventC2EPKhjPK28Format_description_log_event; Load_log_event::Load_log_event(uchar const*,uint,Format_description_log_event const*)
mov rax, [rbp+var_58]
mov edi, [rbp+var_4C]
lea rcx, off_279C20
mov [rax], rcx
mov byte ptr [rax+122h], 0
mov qword ptr [rax+128h], 0
mov byte ptr [rax+140h], 0
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+0CDh]
mov [rbp+var_28], eax
mov rax, [rbp+var_20]
mov rax, [rax+0D0h]
mov al, [rax+5]
mov [rbp+var_29], al
mov rax, [rbp+var_20]
mov rax, [rax+0D0h]
mov al, [rax+7]
mov [rbp+var_2A], al
mov rsi, [rbp+var_10]
mov eax, [rbp+var_14]
mov edx, eax
mov ecx, 10h
call my_memdup
mov [rbp+var_48], rax
jmp short $+2
loc_4FC87:
mov rax, [rbp+var_48]
mov rcx, [rbp+var_58]
mov [rcx+130h], rax
cmp rax, 0
jz loc_4FD27
mov rax, [rbp+var_58]
mov rax, [rax+130h]
mov [rbp+var_68], rax
mov eax, [rbp+var_14]
mov [rbp+var_60], rax
mov rax, [rbp+var_10]
movzx eax, byte ptr [rax+4]
cmp eax, 6
jnz short loc_4FCCF
movzx eax, [rbp+var_29]
add eax, [rbp+var_28]
mov [rbp+var_6C], eax
jmp short loc_4FD02
loc_4FCCF:
mov rax, [rbp+var_58]
test byte ptr [rax+122h], 1
jz short loc_4FCEA
mov eax, [rbp+var_28]
movzx ecx, [rbp+var_29]
add eax, ecx
mov [rbp+var_70], eax
jmp short loc_4FCFC
loc_4FCEA:
mov eax, [rbp+var_28]
movzx ecx, [rbp+var_29]
add eax, ecx
movzx ecx, [rbp+var_2A]
add eax, ecx
mov [rbp+var_70], eax
loc_4FCFC:
mov eax, [rbp+var_70]
mov [rbp+var_6C], eax
loc_4FD02:
mov rdx, [rbp+var_60]; unsigned __int64
mov rsi, [rbp+var_68]; unsigned __int8 *
mov rdi, [rbp+var_58]; this
mov ecx, [rbp+var_6C]; int
mov r8, [rbp+var_20]; Format_description_log_event *
call _ZN14Load_log_event14copy_log_eventEPKhmiPK28Format_description_log_event; Load_log_event::copy_log_event(uchar const*,ulong,int,Format_description_log_event const*)
mov [rbp+var_74], eax
jmp short $+2
loc_4FD1F:
mov eax, [rbp+var_74]
cmp eax, 0
jz short loc_4FD48
loc_4FD27:
jmp short $+2
loc_4FD29:
jmp loc_4FDEF
mov rdi, [rbp+var_58]; this
mov rcx, rax
mov eax, edx
mov [rbp+var_38], rcx
mov [rbp+var_3C], eax
call _ZN14Load_log_eventD2Ev; Load_log_event::~Load_log_event()
jmp loc_4FDF8
loc_4FD48:
mov rax, [rbp+var_20]
movzx eax, word ptr [rax+98h]
cmp eax, 1
jz short loc_4FDCE
mov rdi, [rbp+var_58]; this
mov rcx, [rbp+var_10]
mov eax, [rbp+var_28]
add rcx, rax
movzx eax, [rbp+var_29]
mov eax, [rax+rcx]
mov [rdi+13Ch], eax
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+0CDh]
mov [rbp+var_7C], eax
call _ZN14Load_log_event13get_data_sizeEv; Load_log_event::get_data_size(void)
mov [rbp+var_78], eax
jmp short $+2
loc_4FD8B:
mov ecx, [rbp+var_78]
mov eax, [rbp+var_7C]
add eax, ecx
movzx ecx, [rbp+var_2A]
add eax, ecx
add eax, 1
mov [rbp+var_24], eax
mov eax, [rbp+var_14]
cmp eax, [rbp+var_24]
jnb short loc_4FDAB
jmp short $+2
loc_4FDA9:
jmp short loc_4FDEF
loc_4FDAB:
mov rax, [rbp+var_58]
mov rcx, [rbp+var_10]
mov edx, [rbp+var_24]
add rcx, rdx
mov [rax+128h], rcx
mov ecx, [rbp+var_14]
sub ecx, [rbp+var_24]
mov [rax+138h], ecx
jmp short loc_4FDEB
loc_4FDCE:
mov rdi, [rbp+var_58]
add rdi, 0E8h; this
call _ZN11sql_ex_info16force_new_formatEv; sql_ex_info::force_new_format(void)
jmp short $+2
loc_4FDE0:
mov rax, [rbp+var_58]
mov byte ptr [rax+140h], 1
loc_4FDEB:
jmp short $+2
loc_4FDED:
jmp short $+2
loc_4FDEF:
add rsp, 80h
pop rbp
retn
loc_4FDF8:
mov rdi, [rbp+var_38]
call __Unwind_Resume
|
void Create_file_log_event::Create_file_log_event(
Create_file_log_event *this,
const unsigned __int8 *a2,
unsigned int a3,
const Format_description_log_event *a4)
{
long long v4; // rax
int v5; // eax
int v6; // [rsp+4h] [rbp-7Ch]
unsigned __int8 *v7; // [rsp+18h] [rbp-68h]
unsigned __int8 v8; // [rsp+56h] [rbp-2Ah]
unsigned __int8 v9; // [rsp+57h] [rbp-29h]
int v10; // [rsp+58h] [rbp-28h]
unsigned int v11; // [rsp+5Ch] [rbp-24h]
Load_log_event::Load_log_event(this, a2, 0, a4);
*(_QWORD *)this = &off_279C20;
*((_BYTE *)this + 290) = 0;
*((_QWORD *)this + 37) = 0LL;
*((_BYTE *)this + 320) = 0;
v10 = *((unsigned __int8 *)a4 + 205);
v9 = *(_BYTE *)(*((_QWORD *)a4 + 26) + 5LL);
v8 = *(_BYTE *)(*((_QWORD *)a4 + 26) + 7LL);
v4 = my_memdup(0LL, a2, a3, 16LL);
*((_QWORD *)this + 38) = v4;
if ( v4 )
{
v7 = (unsigned __int8 *)*((_QWORD *)this + 38);
if ( a2[4] == 6 || (*((_BYTE *)this + 290) & 1) != 0 )
v5 = Load_log_event::copy_log_event(this, v7, a3, v10 + (unsigned int)v9, a4);
else
v5 = Load_log_event::copy_log_event(this, v7, a3, v8 + (unsigned int)v9 + v10, a4);
if ( !v5 )
{
if ( *((_WORD *)a4 + 76) == 1 )
{
sql_ex_info::force_new_format((Create_file_log_event *)((char *)this + 232));
*((_BYTE *)this + 320) = 1;
}
else
{
*((_DWORD *)this + 79) = *(_DWORD *)&a2[v10 + v9];
v6 = *((unsigned __int8 *)a4 + 205);
v11 = v8 + Load_log_event::get_data_size(this) + v6 + 1;
if ( a3 >= v11 )
{
*((_QWORD *)this + 37) = &a2[v11];
*((_DWORD *)this + 78) = a3 - v11;
}
}
}
}
}
|
Create_file_log_event:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
MOV qword ptr [RBP + -0x20],RCX
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x58],RDI
MOV RSI,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x20]
XOR EDX,EDX
MOV dword ptr [RBP + -0x4c],EDX
CALL 0x0014e760
MOV RAX,qword ptr [RBP + -0x58]
MOV EDI,dword ptr [RBP + -0x4c]
LEA RCX,[0x379c20]
MOV qword ptr [RAX],RCX
MOV byte ptr [RAX + 0x122],0x0
MOV qword ptr [RAX + 0x128],0x0
MOV byte ptr [RAX + 0x140],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0xcd]
MOV dword ptr [RBP + -0x28],EAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0xd0]
MOV AL,byte ptr [RAX + 0x5]
MOV byte ptr [RBP + -0x29],AL
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0xd0]
MOV AL,byte ptr [RAX + 0x7]
MOV byte ptr [RBP + -0x2a],AL
MOV RSI,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RBP + -0x14]
MOV EDX,EAX
LAB_0014fc77:
MOV ECX,0x10
CALL 0x001bad60
MOV qword ptr [RBP + -0x48],RAX
JMP 0x0014fc87
LAB_0014fc87:
MOV RAX,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RBP + -0x58]
MOV qword ptr [RCX + 0x130],RAX
CMP RAX,0x0
JZ 0x0014fd27
MOV RAX,qword ptr [RBP + -0x58]
MOV RAX,qword ptr [RAX + 0x130]
MOV qword ptr [RBP + -0x68],RAX
MOV EAX,dword ptr [RBP + -0x14]
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX + 0x4]
CMP EAX,0x6
JNZ 0x0014fccf
MOVZX EAX,byte ptr [RBP + -0x29]
ADD EAX,dword ptr [RBP + -0x28]
MOV dword ptr [RBP + -0x6c],EAX
JMP 0x0014fd02
LAB_0014fccf:
MOV RAX,qword ptr [RBP + -0x58]
TEST byte ptr [RAX + 0x122],0x1
JZ 0x0014fcea
MOV EAX,dword ptr [RBP + -0x28]
MOVZX ECX,byte ptr [RBP + -0x29]
ADD EAX,ECX
MOV dword ptr [RBP + -0x70],EAX
JMP 0x0014fcfc
LAB_0014fcea:
MOV EAX,dword ptr [RBP + -0x28]
MOVZX ECX,byte ptr [RBP + -0x29]
ADD EAX,ECX
MOVZX ECX,byte ptr [RBP + -0x2a]
ADD EAX,ECX
MOV dword ptr [RBP + -0x70],EAX
LAB_0014fcfc:
MOV EAX,dword ptr [RBP + -0x70]
MOV dword ptr [RBP + -0x6c],EAX
LAB_0014fd02:
MOV RDX,qword ptr [RBP + -0x60]
MOV RSI,qword ptr [RBP + -0x68]
MOV RDI,qword ptr [RBP + -0x58]
MOV ECX,dword ptr [RBP + -0x6c]
MOV R8,qword ptr [RBP + -0x20]
CALL 0x0014e890
MOV dword ptr [RBP + -0x74],EAX
JMP 0x0014fd1f
LAB_0014fd1f:
MOV EAX,dword ptr [RBP + -0x74]
CMP EAX,0x0
JZ 0x0014fd48
LAB_0014fd27:
JMP 0x0014fd29
LAB_0014fd29:
JMP 0x0014fdef
LAB_0014fd48:
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,word ptr [RAX + 0x98]
CMP EAX,0x1
JZ 0x0014fdce
MOV RDI,qword ptr [RBP + -0x58]
MOV RCX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RBP + -0x28]
ADD RCX,RAX
MOVZX EAX,byte ptr [RBP + -0x29]
MOV EAX,dword ptr [RAX + RCX*0x1]
MOV dword ptr [RDI + 0x13c],EAX
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0xcd]
MOV dword ptr [RBP + -0x7c],EAX
CALL 0x00165e10
MOV dword ptr [RBP + -0x78],EAX
JMP 0x0014fd8b
LAB_0014fd8b:
MOV ECX,dword ptr [RBP + -0x78]
MOV EAX,dword ptr [RBP + -0x7c]
ADD EAX,ECX
MOVZX ECX,byte ptr [RBP + -0x2a]
ADD EAX,ECX
ADD EAX,0x1
MOV dword ptr [RBP + -0x24],EAX
MOV EAX,dword ptr [RBP + -0x14]
CMP EAX,dword ptr [RBP + -0x24]
JNC 0x0014fdab
JMP 0x0014fda9
LAB_0014fda9:
JMP 0x0014fdef
LAB_0014fdab:
MOV RAX,qword ptr [RBP + -0x58]
MOV RCX,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RBP + -0x24]
ADD RCX,RDX
MOV qword ptr [RAX + 0x128],RCX
MOV ECX,dword ptr [RBP + -0x14]
SUB ECX,dword ptr [RBP + -0x24]
MOV dword ptr [RAX + 0x138],ECX
JMP 0x0014fdeb
LAB_0014fdce:
MOV RDI,qword ptr [RBP + -0x58]
ADD RDI,0xe8
CALL 0x00165e70
LAB_0014fdde:
JMP 0x0014fde0
LAB_0014fde0:
MOV RAX,qword ptr [RBP + -0x58]
MOV byte ptr [RAX + 0x140],0x1
LAB_0014fdeb:
JMP 0x0014fded
LAB_0014fded:
JMP 0x0014fdef
LAB_0014fdef:
ADD RSP,0x80
POP RBP
RET
|
/* Create_file_log_event::Create_file_log_event(unsigned char const*, unsigned int,
Format_description_log_event const*) */
void __thiscall
Create_file_log_event::Create_file_log_event
(Create_file_log_event *this,uchar *param_1,uint param_2,
Format_description_log_event *param_3)
{
byte bVar1;
byte bVar2;
Format_description_log_event FVar3;
int iVar4;
uint uVar5;
long lVar6;
int local_78;
int local_74;
Load_log_event::Load_log_event((Load_log_event *)this,param_1,0,param_3);
*(int ***)this = &PTR_print_00379c20;
this[0x122] = (Create_file_log_event)0x0;
*(int8 *)(this + 0x128) = 0;
this[0x140] = (Create_file_log_event)0x0;
uVar5 = (uint)(byte)param_3[0xcd];
bVar1 = *(byte *)(*(long *)(param_3 + 0xd0) + 5);
bVar2 = *(byte *)(*(long *)(param_3 + 0xd0) + 7);
/* try { // try from 0014fc77 to 0014fddd has its CatchHandler @ 0014fd2e */
lVar6 = my_memdup(0,param_1,param_2,0x10);
*(long *)(this + 0x130) = lVar6;
if (lVar6 != 0) {
if (param_1[4] == '\x06') {
local_74 = bVar1 + uVar5;
}
else {
if (((byte)this[0x122] & 1) == 0) {
local_78 = uVar5 + bVar1 + (uint)bVar2;
}
else {
local_78 = uVar5 + bVar1;
}
local_74 = local_78;
}
iVar4 = Load_log_event::copy_log_event
((Load_log_event *)this,*(uchar **)(this + 0x130),(ulong)param_2,local_74,
param_3);
if (iVar4 == 0) {
if (*(short *)(param_3 + 0x98) == 1) {
sql_ex_info::force_new_format((sql_ex_info *)(this + 0xe8));
this[0x140] = (Create_file_log_event)0x1;
}
else {
*(int4 *)(this + 0x13c) = *(int4 *)(param_1 + (ulong)bVar1 + (ulong)uVar5);
FVar3 = param_3[0xcd];
iVar4 = Load_log_event::get_data_size((Load_log_event *)this);
uVar5 = (uint)(byte)FVar3 + iVar4 + (uint)bVar2 + 1;
if (uVar5 <= param_2) {
*(uchar **)(this + 0x128) = param_1 + uVar5;
*(uint *)(this + 0x138) = param_2 - uVar5;
}
}
}
}
return;
}
|
|
66,299 |
minja::ForNode::ForNode(minja::Location const&, 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>>>>&&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::TemplateNode>&&, bool, std::shared_ptr<minja::TemplateNode>&&)
|
monkey531[P]llama/common/minja.hpp
|
ForNode(const Location & location, std::vector<std::string> && var_names, std::shared_ptr<Expression> && iterable,
std::shared_ptr<Expression> && condition, std::shared_ptr<TemplateNode> && body, bool recursive, std::shared_ptr<TemplateNode> && else_body)
: TemplateNode(location), var_names(var_names), iterable(std::move(iterable)), condition(std::move(condition)), body(std::move(body)), recursive(recursive), else_body(std::move(else_body)) {}
|
O2
|
cpp
|
minja::ForNode::ForNode(minja::Location const&, 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>>>>&&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::TemplateNode>&&, bool, std::shared_ptr<minja::TemplateNode>&&):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %r9, %r14
movq %r8, %r15
movq %rcx, %r12
movq %rdx, %r13
movq %rdi, %rbx
callq 0x73042
leaq 0x899c4(%rip), %rax # 0xfd090
addq $0x10, %rax
movq %rax, (%rbx)
leaq 0x20(%rbx), %rdi
movq %r13, %rsi
callq 0x39bfe
andq $0x0, 0x40(%rbx)
movups (%r12), %xmm0
andq $0x0, 0x8(%r12)
movups %xmm0, 0x38(%rbx)
andq $0x0, (%r12)
movq 0x38(%rsp), %rax
andq $0x0, 0x50(%rbx)
movups (%r15), %xmm0
andq $0x0, 0x8(%r15)
movups %xmm0, 0x48(%rbx)
andq $0x0, (%r15)
movb 0x30(%rsp), %cl
andq $0x0, 0x60(%rbx)
movups (%r14), %xmm0
andq $0x0, 0x8(%r14)
movups %xmm0, 0x58(%rbx)
andq $0x0, (%r14)
movb %cl, 0x68(%rbx)
andq $0x0, 0x78(%rbx)
movups (%rax), %xmm0
andq $0x0, 0x8(%rax)
movups %xmm0, 0x70(%rbx)
andq $0x0, (%rax)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x77cbc
movq %r14, %rdi
callq 0x23fc0
|
_ZN5minja7ForNodeC2ERKNS_8LocationEOSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISA_EEOSt10shared_ptrINS_10ExpressionEESH_OSE_INS_12TemplateNodeEEbSK_:
push r15
push r14
push r13
push r12
push rbx
mov r14, r9
mov r15, r8
mov r12, rcx
mov r13, rdx
mov rbx, rdi
call _ZN5minja12TemplateNodeC2ERKNS_8LocationE; minja::TemplateNode::TemplateNode(minja::Location const&)
lea rax, _ZTVN5minja7ForNodeE; `vtable for'minja::ForNode
add rax, 10h
mov [rbx], rax
lea rdi, [rbx+20h]
mov rsi, r13
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_; std::vector<std::string>::vector(std::vector<std::string> const&)
and qword ptr [rbx+40h], 0
movups xmm0, xmmword ptr [r12]
and qword ptr [r12+8], 0
movups xmmword ptr [rbx+38h], xmm0
and qword ptr [r12], 0
mov rax, [rsp+28h+arg_8]
and qword ptr [rbx+50h], 0
movups xmm0, xmmword ptr [r15]
and qword ptr [r15+8], 0
movups xmmword ptr [rbx+48h], xmm0
and qword ptr [r15], 0
mov cl, [rsp+28h+arg_0]
and qword ptr [rbx+60h], 0
movups xmm0, xmmword ptr [r14]
and qword ptr [r14+8], 0
movups xmmword ptr [rbx+58h], xmm0
and qword ptr [r14], 0
mov [rbx+68h], cl
and qword ptr [rbx+78h], 0
movups xmm0, xmmword ptr [rax]
and qword ptr [rax+8], 0
movups xmmword ptr [rbx+70h], xmm0
and qword ptr [rax], 0
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
mov r14, rax
mov rdi, rbx; this
call _ZN5minja12TemplateNodeD2Ev; minja::TemplateNode::~TemplateNode()
mov rdi, r14
call __Unwind_Resume
|
long long minja::ForNode::ForNode(
long long a1,
_QWORD *a2,
_QWORD *a3,
__int128 *a4,
__int128 *a5,
__int128 *a6,
char a7,
__int128 *a8)
{
__int128 v12; // xmm0
long long result; // rax
__int128 v14; // xmm0
__int128 v15; // xmm0
__int128 v16; // xmm0
minja::TemplateNode::TemplateNode((_QWORD *)a1, a2);
*(_QWORD *)a1 = &`vtable for'minja::ForNode + 2;
std::vector<std::string>::vector((_QWORD *)(a1 + 32), a3);
*(_QWORD *)(a1 + 64) = 0LL;
v12 = *a4;
*((_QWORD *)a4 + 1) = 0LL;
*(_OWORD *)(a1 + 56) = v12;
*(_QWORD *)a4 = 0LL;
result = (long long)a8;
*(_QWORD *)(a1 + 80) = 0LL;
v14 = *a5;
*((_QWORD *)a5 + 1) = 0LL;
*(_OWORD *)(a1 + 72) = v14;
*(_QWORD *)a5 = 0LL;
*(_QWORD *)(a1 + 96) = 0LL;
v15 = *a6;
*((_QWORD *)a6 + 1) = 0LL;
*(_OWORD *)(a1 + 88) = v15;
*(_QWORD *)a6 = 0LL;
*(_BYTE *)(a1 + 104) = a7;
*(_QWORD *)(a1 + 120) = 0LL;
v16 = *a8;
*((_QWORD *)a8 + 1) = 0LL;
*(_OWORD *)(a1 + 112) = v16;
*(_QWORD *)a8 = 0LL;
return result;
}
|
ForNode:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV R14,R9
MOV R15,R8
MOV R12,RCX
MOV R13,RDX
MOV RBX,RDI
CALL 0x00173042
LEA RAX,[0x1fd090]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
LEA RDI,[RBX + 0x20]
LAB_001736d7:
MOV RSI,R13
CALL 0x00139bfe
LAB_001736df:
AND qword ptr [RBX + 0x40],0x0
MOVUPS XMM0,xmmword ptr [R12]
AND qword ptr [R12 + 0x8],0x0
MOVUPS xmmword ptr [RBX + 0x38],XMM0
AND qword ptr [R12],0x0
MOV RAX,qword ptr [RSP + 0x38]
AND qword ptr [RBX + 0x50],0x0
MOVUPS XMM0,xmmword ptr [R15]
AND qword ptr [R15 + 0x8],0x0
MOVUPS xmmword ptr [RBX + 0x48],XMM0
AND qword ptr [R15],0x0
MOV CL,byte ptr [RSP + 0x30]
AND qword ptr [RBX + 0x60],0x0
MOVUPS XMM0,xmmword ptr [R14]
AND qword ptr [R14 + 0x8],0x0
MOVUPS xmmword ptr [RBX + 0x58],XMM0
AND qword ptr [R14],0x0
MOV byte ptr [RBX + 0x68],CL
AND qword ptr [RBX + 0x78],0x0
MOVUPS XMM0,xmmword ptr [RAX]
AND qword ptr [RAX + 0x8],0x0
MOVUPS xmmword ptr [RBX + 0x70],XMM0
AND qword ptr [RAX],0x0
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* minja::ForNode::ForNode(minja::Location const&, std::vector<std::__cxx11::string,
std::allocator<std::__cxx11::string > >&&, std::shared_ptr<minja::Expression>&&,
std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::TemplateNode>&&, bool,
std::shared_ptr<minja::TemplateNode>&&) */
void __thiscall
minja::ForNode::ForNode
(ForNode *this,Location *param_1,vector *param_2,shared_ptr *param_3,shared_ptr *param_4,
shared_ptr *param_5,bool param_6,shared_ptr *param_7)
{
int8 uVar1;
TemplateNode::TemplateNode((TemplateNode *)this,param_1);
*(int ***)this = &PTR_do_render_001fd0a0;
/* try { // try from 001736d7 to 001736de has its CatchHandler @ 0017374f */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x20),
param_2);
*(int8 *)(this + 0x40) = 0;
uVar1 = *(int8 *)(param_3 + 8);
*(int8 *)(param_3 + 8) = 0;
*(int8 *)(this + 0x38) = *(int8 *)param_3;
*(int8 *)(this + 0x40) = uVar1;
*(int8 *)param_3 = 0;
*(int8 *)(this + 0x50) = 0;
uVar1 = *(int8 *)(param_4 + 8);
*(int8 *)(param_4 + 8) = 0;
*(int8 *)(this + 0x48) = *(int8 *)param_4;
*(int8 *)(this + 0x50) = uVar1;
*(int8 *)param_4 = 0;
*(int8 *)(this + 0x60) = 0;
uVar1 = *(int8 *)(param_5 + 8);
*(int8 *)(param_5 + 8) = 0;
*(int8 *)(this + 0x58) = *(int8 *)param_5;
*(int8 *)(this + 0x60) = uVar1;
*(int8 *)param_5 = 0;
this[0x68] = (ForNode)param_6;
*(int8 *)(this + 0x78) = 0;
uVar1 = *(int8 *)(param_7 + 8);
*(int8 *)(param_7 + 8) = 0;
*(int8 *)(this + 0x70) = *(int8 *)param_7;
*(int8 *)(this + 0x78) = uVar1;
*(int8 *)param_7 = 0;
return;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.