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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
37,800 | ma_log_del_prefix | eloqsql/storage/maria/ma_write.c | static my_bool _ma_log_del_prefix(MARIA_PAGE *ma_page,
uint org_length, uint new_length,
const uchar *key_pos, uint key_length,
int move_length)
{
LSN lsn;
uchar log_data[FILEID_STORE_SIZE + PAGE_STORE_SIZE + 2 + 2 + 12 + 7];
uchar *log_pos;
LEX_CUSTRING log_array[TRANSLOG_INTERNAL_PARTS + 4];
uint offset= (uint) (key_pos - ma_page->buff);
uint diff_length= org_length + move_length - new_length;
uint translog_parts, extra_length;
MARIA_HA *info= ma_page->info;
my_off_t page= ma_page->pos / info->s->block_size;
DBUG_ENTER("_ma_log_del_prefix");
DBUG_PRINT("enter", ("page: %lu org_length: %u new_length: %u",
(ulong) page, org_length, new_length));
DBUG_ASSERT((int) diff_length > 0);
DBUG_ASSERT(ma_page->org_size == org_length);
DBUG_ASSERT(ma_page->size == new_length);
log_pos= log_data + FILEID_STORE_SIZE;
page_store(log_pos, page);
log_pos+= PAGE_STORE_SIZE;
translog_parts= 1;
extra_length= 0;
#ifdef EXTRA_DEBUG_KEY_CHANGES
*log_pos++= KEY_OP_DEBUG;
*log_pos++= KEY_OP_DEBUG_LOG_DEL_PREFIX;
#endif
/* Store keypage_flag */
*log_pos++= KEY_OP_SET_PAGEFLAG;
*log_pos++= _ma_get_keypage_flag(info->s, ma_page->buff);
if (offset < diff_length + info->s->keypage_header)
{
/*
Key is not anymore on page. Move data down, but take into account that
the original page had grown with 'move_length bytes'
*/
DBUG_ASSERT(offset + key_length <= diff_length + info->s->keypage_header);
log_pos[0]= KEY_OP_DEL_PREFIX;
int2store(log_pos+1, diff_length - move_length);
log_pos+= 3;
}
else
{
/*
Correct position to key, as data before key has been delete and key
has thus been moved down
*/
offset-= diff_length;
key_pos-= diff_length;
/* Move data down */
log_pos[0]= KEY_OP_DEL_PREFIX;
int2store(log_pos+1, diff_length);
log_pos+= 3;
log_pos[0]= KEY_OP_OFFSET;
int2store(log_pos+1, offset);
log_pos+= 3;
if (move_length)
{
log_pos[0]= KEY_OP_SHIFT;
int2store(log_pos+1, move_length);
log_pos+= 3;
}
log_pos[0]= KEY_OP_CHANGE;
int2store(log_pos+1, key_length);
log_pos+= 3;
log_array[TRANSLOG_INTERNAL_PARTS + 1].str= key_pos;
log_array[TRANSLOG_INTERNAL_PARTS + 1].length= key_length;
translog_parts= 2;
extra_length= key_length;
}
log_array[TRANSLOG_INTERNAL_PARTS + 0].str= log_data;
log_array[TRANSLOG_INTERNAL_PARTS + 0].length= (uint) (log_pos -
log_data);
_ma_log_key_changes(ma_page,
log_array + TRANSLOG_INTERNAL_PARTS + translog_parts,
log_pos, &extra_length, &translog_parts);
/* Remember new page length for future log entires for same page */
ma_page->org_size= ma_page->size;
DBUG_RETURN(translog_write_record(&lsn, LOGREC_REDO_INDEX,
info->trn, info,
(translog_size_t)
log_array[TRANSLOG_INTERNAL_PARTS +
0].length + extra_length,
TRANSLOG_INTERNAL_PARTS + translog_parts,
log_array, log_data, NULL));
} | O3 | c | ma_log_del_prefix:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xa0, %rsp
movq %rcx, %r10
movq %fs:0x28, %rax
movq %rax, -0x28(%rbp)
movq (%rdi), %rcx
movq 0x10(%rdi), %r14
movl %r10d, %r11d
subl %r14d, %r11d
subl %edx, %esi
leal (%rsi,%r9), %ebx
movq 0x18(%rdi), %rax
movq (%rcx), %r15
movl 0x7bc(%r15), %r12d
xorl %edx, %edx
divq %r12
movl %eax, -0x4e(%rbp)
shrq $0x20, %rax
movb %al, -0x4a(%rbp)
movb $0xa, -0x49(%rbp)
movl 0x744(%r15), %eax
leal -0x3(%rax), %edx
movb (%r14,%rdx), %dl
movb %dl, -0x48(%rbp)
addl %ebx, %eax
cmpl %r11d, %eax
jbe 0x59b32
leaq -0x44(%rbp), %rax
movb $0x5, -0x3(%rax)
movw %si, -0x2(%rax)
movl $0x3, %r9d
xorl %r8d, %r8d
jmp 0x59b86
subl %ebx, %r11d
movl %ebx, %eax
subq %rax, %r10
movb $0x5, -0x47(%rbp)
movw %bx, -0x46(%rbp)
movb $0x1, -0x44(%rbp)
movw %r11w, -0x43(%rbp)
testl %r9d, %r9d
je 0x59b5f
leaq -0x3e(%rbp), %rax
movb $0x2, -0x3(%rax)
movw %r9w, -0x2(%rax)
jmp 0x59b63
leaq -0x41(%rbp), %rax
movb $0x3, (%rax)
movw %r8w, 0x1(%rax)
addq $0x3, %rax
movq %r10, -0x90(%rbp)
movl %r8d, %edx
movq %rdx, -0x88(%rbp)
movl $0x4, %r9d
leaq -0x50(%rbp), %r10
leaq -0xc0(%rbp), %r11
movq %r10, 0x20(%r11)
subq %r10, %rax
movl %eax, %edx
movq %rdx, 0x28(%r11)
movl 0x20(%rdi), %edx
movl %edx, 0x24(%rdi)
movq 0x8(%rcx), %rdx
addl %eax, %r8d
subq $0x8, %rsp
leaq -0x58(%rbp), %rdi
movl $0xc, %esi
pushq $0x0
pushq %r10
pushq %r11
callq 0x29c54
addq $0x20, %rsp
movq %fs:0x28, %rcx
cmpq -0x28(%rbp), %rcx
jne 0x59be6
addq $0xa0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x29250
nop
| _ma_log_del_prefix:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 0A0h
mov r10, rcx
mov rax, fs:28h
mov [rbp+var_28], rax
mov rcx, [rdi]
mov r14, [rdi+10h]
mov r11d, r10d
sub r11d, r14d
sub esi, edx
lea ebx, [rsi+r9]
mov rax, [rdi+18h]
mov r15, [rcx]
mov r12d, [r15+7BCh]
xor edx, edx
div r12
mov [rbp+var_4E], eax
shr rax, 20h
mov [rbp+var_4A], al
mov [rbp+var_49], 0Ah
mov eax, [r15+744h]
lea edx, [rax-3]
mov dl, [r14+rdx]
mov [rbp+var_48], dl
add eax, ebx
cmp eax, r11d
jbe short loc_59B32
lea rax, [rbp+var_44]
mov byte ptr [rax-3], 5
mov [rax-2], si
mov r9d, 3
xor r8d, r8d
jmp short loc_59B86
loc_59B32:
sub r11d, ebx
mov eax, ebx
sub r10, rax
mov [rbp+var_47], 5
mov [rbp+var_46], bx
mov [rbp+var_44], 1
mov [rbp+var_43], r11w
test r9d, r9d
jz short loc_59B5F
lea rax, [rbp+var_3E]
mov byte ptr [rax-3], 2
mov [rax-2], r9w
jmp short loc_59B63
loc_59B5F:
lea rax, [rbp+var_41]
loc_59B63:
mov byte ptr [rax], 3
mov [rax+1], r8w
add rax, 3
mov [rbp+var_90], r10
mov edx, r8d
mov [rbp+var_88], rdx
mov r9d, 4
loc_59B86:
lea r10, [rbp+var_50]
lea r11, [rbp+var_C0]
mov [r11+20h], r10
sub rax, r10
mov edx, eax
mov [r11+28h], rdx
mov edx, [rdi+20h]
mov [rdi+24h], edx
mov rdx, [rcx+8]
add r8d, eax
sub rsp, 8
lea rdi, [rbp+var_58]
mov esi, 0Ch
push 0
push r10
push r11
call translog_write_record
add rsp, 20h
mov rcx, fs:28h
cmp rcx, [rbp+var_28]
jnz short loc_59BE6
add rsp, 0A0h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_59BE6:
call ___stack_chk_fail
| long long ma_log_del_prefix(long long **a1, int a2, int a3, long long a4, unsigned int a5, int a6)
{
long long *v7; // rcx
long long *v8; // r14
__int16 v9; // r11
int v10; // esi
unsigned int v11; // ebx
long long v12; // r15
unsigned long long v13; // rax
char *v14; // rax
int v15; // r9d
long long v16; // r10
char *v17; // rax
signed long long v18; // rax
__int128 v20; // [rsp+0h] [rbp-C0h] BYREF
__int16 *v21; // [rsp+20h] [rbp-A0h]
long long v22; // [rsp+28h] [rbp-98h]
long long v23; // [rsp+30h] [rbp-90h]
long long v24; // [rsp+38h] [rbp-88h]
_BYTE v25[8]; // [rsp+68h] [rbp-58h] BYREF
__int16 v26; // [rsp+70h] [rbp-50h] BYREF
int v27; // [rsp+72h] [rbp-4Eh]
char v28; // [rsp+76h] [rbp-4Ah]
char v29; // [rsp+77h] [rbp-49h]
char v30; // [rsp+78h] [rbp-48h]
char v31; // [rsp+79h] [rbp-47h]
__int16 v32; // [rsp+7Ah] [rbp-46h]
char v33; // [rsp+7Ch] [rbp-44h] BYREF
__int16 v34; // [rsp+7Dh] [rbp-43h]
char v35; // [rsp+7Fh] [rbp-41h] BYREF
__int16 v36; // [rsp+80h] [rbp-40h]
char v37; // [rsp+82h] [rbp-3Eh] BYREF
unsigned long long v38; // [rsp+98h] [rbp-28h]
v38 = __readfsqword(0x28u);
v7 = *a1;
v8 = a1[2];
v9 = a4 - (_WORD)v8;
v10 = a2 - a3;
v11 = v10 + a6;
v12 = **a1;
v13 = (unsigned long long)a1[3] / *(unsigned int *)(v12 + 1980);
v27 = v13;
v28 = BYTE4(v13);
v29 = 10;
LODWORD(v13) = *(_DWORD *)(v12 + 1860);
v30 = *((_BYTE *)v8 + (unsigned int)(v13 - 3));
if ( v10 + a6 + (int)v13 <= (unsigned int)(a4 - (_DWORD)v8) )
{
v16 = a4 - v11;
v31 = 5;
v32 = v10 + a6;
v33 = 1;
v34 = v9 - v11;
if ( a6 )
{
v17 = &v37;
v35 = 2;
v36 = a6;
}
else
{
v17 = &v35;
}
*v17 = 3;
*(_WORD *)(v17 + 1) = a5;
v14 = v17 + 3;
v23 = v16;
v24 = a5;
v15 = 4;
}
else
{
v14 = &v33;
v31 = 5;
v32 = v10;
v15 = 3;
a5 = 0;
}
v21 = &v26;
v18 = v14 - (char *)&v26;
v22 = (unsigned int)v18;
*((_DWORD *)a1 + 9) = *((_DWORD *)a1 + 8);
return translog_write_record(
(unsigned long long)v25,
&byte_9[3],
v7[1],
v7,
(unsigned int)v18 + a5,
v15,
&v20,
&v26,
0LL);
}
| _ma_log_del_prefix:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0xa0
MOV R10,RCX
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x28],RAX
MOV RCX,qword ptr [RDI]
MOV R14,qword ptr [RDI + 0x10]
MOV R11D,R10D
SUB R11D,R14D
SUB ESI,EDX
LEA EBX,[RSI + R9*0x1]
MOV RAX,qword ptr [RDI + 0x18]
MOV R15,qword ptr [RCX]
MOV R12D,dword ptr [R15 + 0x7bc]
XOR EDX,EDX
DIV R12
MOV dword ptr [RBP + -0x4e],EAX
SHR RAX,0x20
MOV byte ptr [RBP + -0x4a],AL
MOV byte ptr [RBP + -0x49],0xa
MOV EAX,dword ptr [R15 + 0x744]
LEA EDX,[RAX + -0x3]
MOV DL,byte ptr [R14 + RDX*0x1]
MOV byte ptr [RBP + -0x48],DL
ADD EAX,EBX
CMP EAX,R11D
JBE 0x00159b32
LEA RAX,[RBP + -0x44]
MOV byte ptr [RAX + -0x3],0x5
MOV word ptr [RAX + -0x2],SI
MOV R9D,0x3
XOR R8D,R8D
JMP 0x00159b86
LAB_00159b32:
SUB R11D,EBX
MOV EAX,EBX
SUB R10,RAX
MOV byte ptr [RBP + -0x47],0x5
MOV word ptr [RBP + -0x46],BX
MOV byte ptr [RBP + -0x44],0x1
MOV word ptr [RBP + -0x43],R11W
TEST R9D,R9D
JZ 0x00159b5f
LEA RAX,[RBP + -0x3e]
MOV byte ptr [RAX + -0x3],0x2
MOV word ptr [RAX + -0x2],R9W
JMP 0x00159b63
LAB_00159b5f:
LEA RAX,[RBP + -0x41]
LAB_00159b63:
MOV byte ptr [RAX],0x3
MOV word ptr [RAX + 0x1],R8W
ADD RAX,0x3
MOV qword ptr [RBP + -0x90],R10
MOV EDX,R8D
MOV qword ptr [RBP + -0x88],RDX
MOV R9D,0x4
LAB_00159b86:
LEA R10,[RBP + -0x50]
LEA R11,[RBP + -0xc0]
MOV qword ptr [R11 + 0x20],R10
SUB RAX,R10
MOV EDX,EAX
MOV qword ptr [R11 + 0x28],RDX
MOV EDX,dword ptr [RDI + 0x20]
MOV dword ptr [RDI + 0x24],EDX
MOV RDX,qword ptr [RCX + 0x8]
ADD R8D,EAX
SUB RSP,0x8
LEA RDI,[RBP + -0x58]
MOV ESI,0xc
PUSH 0x0
PUSH R10
PUSH R11
CALL 0x00129c54
ADD RSP,0x20
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x28]
JNZ 0x00159be6
ADD RSP,0xa0
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_00159be6:
CALL 0x00129250
|
void _ma_log_del_prefix(long *param_1,int param_2,int param_3,long param_4,uint param_5,int param_6)
{
long *plVar1;
int1 auVar2 [16];
int iVar3;
uint uVar4;
int1 *puVar5;
int8 uVar6;
uint uVar7;
long in_FS_OFFSET;
int1 local_c8 [32];
int1 *local_a8;
ulong local_a0;
long local_98;
ulong local_90;
int1 local_60 [8];
int1 local_58 [2];
int4 local_56;
int1 local_52;
int1 local_51;
int1 local_50;
int1 local_4f;
short local_4e;
int1 local_4c;
short local_4b;
int1 local_49;
int2 local_48;
int1 local_46 [22];
long local_30;
local_30 = *(long *)(in_FS_OFFSET + 0x28);
plVar1 = (long *)*param_1;
uVar7 = (int)param_4 - (int)param_1[2];
uVar4 = (param_2 - param_3) + param_6;
auVar2._8_8_ = 0;
auVar2._0_8_ = param_1[3];
auVar2 = auVar2 / ZEXT416(*(uint *)(*plVar1 + 0x7bc));
local_56 = auVar2._0_4_;
local_52 = auVar2[4];
local_51 = 10;
iVar3 = *(int *)(*plVar1 + 0x744);
local_50 = *(int1 *)(param_1[2] + (ulong)(iVar3 - 3));
if (uVar7 < iVar3 + uVar4) {
iVar3 = (int)&local_4c;
local_4e = (short)(param_2 - param_3);
uVar6 = 3;
param_5 = 0;
}
else {
local_4e = (short)uVar4;
local_4b = (short)uVar7 - local_4e;
local_98 = param_4 - (ulong)uVar4;
local_4c = 1;
if (param_6 == 0) {
puVar5 = &local_49;
}
else {
puVar5 = local_46;
local_49 = 2;
local_48 = (int2)param_6;
}
*puVar5 = 3;
*(short *)(puVar5 + 1) = (short)param_5;
iVar3 = (int)puVar5 + 3;
local_90 = (ulong)param_5;
uVar6 = 4;
}
local_4f = 5;
local_a8 = local_58;
uVar4 = iVar3 - (int)local_a8;
local_a0 = (ulong)uVar4;
*(int *)((long)param_1 + 0x24) = (int)param_1[4];
translog_write_record(local_60,0xc,plVar1[1],plVar1,param_5 + uVar4,uVar6,local_c8,local_a8,0);
if (*(long *)(in_FS_OFFSET + 0x28) == local_30) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
37,801 | maria_ft_add_word | eloqsql/storage/maria/ma_ft_parser.c | static int maria_ft_add_word(MYSQL_FTPARSER_PARAM *param,
const char *word, int word_len,
MYSQL_FTPARSER_BOOLEAN_INFO *boolean_info
__attribute__((unused)))
{
TREE *wtree;
FT_WORD w;
MY_FT_PARSER_PARAM *ft_param=param->mysql_ftparam;
DBUG_ENTER("maria_ft_add_word");
wtree= ft_param->wtree;
if (param->flags & MYSQL_FTFLAGS_NEED_COPY)
{
uchar *ptr;
DBUG_ASSERT(wtree->with_delete == 0);
ptr= (uchar *)alloc_root(ft_param->mem_root, word_len);
memcpy(ptr, word, word_len);
w.pos= ptr;
}
else
w.pos= (uchar*) word;
w.len= word_len;
if (!tree_insert(wtree, &w, 0, wtree->custom_arg))
{
delete_tree(wtree, 0);
DBUG_RETURN(1);
}
DBUG_RETURN(0);
} | O0 | c | maria_ft_add_word:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movl 0x34(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x77421
jmp 0x773ef
jmp 0x773f1
movq -0x50(%rbp), %rax
movq 0x8(%rax), %rdi
movslq -0x1c(%rbp), %rsi
callq 0xed1a0
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rdi
movq -0x18(%rbp), %rsi
movslq -0x1c(%rbp), %rdx
callq 0x2a090
movq -0x58(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x77429
movq -0x18(%rbp), %rax
movq %rax, -0x48(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, -0x40(%rbp)
movq -0x30(%rbp), %rdi
movq -0x30(%rbp), %rax
movq 0x230(%rax), %rcx
leaq -0x48(%rbp), %rsi
xorl %edx, %edx
callq 0xfa750
cmpq $0x0, %rax
jne 0x77463
movq -0x30(%rbp), %rdi
xorl %esi, %esi
callq 0xfa580
movl $0x1, -0x4(%rbp)
jmp 0x7746c
jmp 0x77465
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| maria_ft_add_word:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov [rbp+var_28], rcx
mov rax, [rbp+var_10]
mov rax, [rax+18h]
mov [rbp+var_50], rax
mov rax, [rbp+var_50]
mov rax, [rax]
mov [rbp+var_30], rax
mov rax, [rbp+var_10]
mov eax, [rax+34h]
and eax, 1
cmp eax, 0
jz short loc_77421
jmp short $+2
loc_773EF:
jmp short $+2
loc_773F1:
mov rax, [rbp+var_50]
mov rdi, [rax+8]
movsxd rsi, [rbp+var_1C]
call alloc_root
mov [rbp+var_58], rax
mov rdi, [rbp+var_58]
mov rsi, [rbp+var_18]
movsxd rdx, [rbp+var_1C]
call _memcpy
mov rax, [rbp+var_58]
mov [rbp+var_48], rax
jmp short loc_77429
loc_77421:
mov rax, [rbp+var_18]
mov [rbp+var_48], rax
loc_77429:
mov eax, [rbp+var_1C]
mov [rbp+var_40], eax
mov rdi, [rbp+var_30]
mov rax, [rbp+var_30]
mov rcx, [rax+230h]
lea rsi, [rbp+var_48]
xor edx, edx
call tree_insert
cmp rax, 0
jnz short loc_77463
mov rdi, [rbp+var_30]
xor esi, esi
call delete_tree
mov [rbp+var_4], 1
jmp short loc_7746C
loc_77463:
jmp short $+2
loc_77465:
mov [rbp+var_4], 0
loc_7746C:
mov eax, [rbp+var_4]
add rsp, 60h
pop rbp
retn
| long long maria_ft_add_word(long long a1, long long a2, int a3, long long a4)
{
long long v5; // [rsp+8h] [rbp-58h]
long long *v6; // [rsp+10h] [rbp-50h]
long long v7; // [rsp+18h] [rbp-48h] BYREF
int v8; // [rsp+20h] [rbp-40h]
long long v9; // [rsp+30h] [rbp-30h]
long long v10; // [rsp+38h] [rbp-28h]
int v11; // [rsp+44h] [rbp-1Ch]
long long v12; // [rsp+48h] [rbp-18h]
long long v13; // [rsp+50h] [rbp-10h]
v13 = a1;
v12 = a2;
v11 = a3;
v10 = a4;
v6 = *(long long **)(a1 + 24);
v9 = *v6;
if ( (*(_DWORD *)(a1 + 52) & 1) != 0 )
{
v5 = alloc_root(v6[1], v11);
memcpy(v5, v12, v11);
v7 = v5;
}
else
{
v7 = v12;
}
v8 = v11;
if ( tree_insert(v9, &v7, 0LL, *(_QWORD *)(v9 + 560)) )
{
return 0;
}
else
{
delete_tree(v9, 0LL);
return 1;
}
}
| maria_ft_add_word:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x34]
AND EAX,0x1
CMP EAX,0x0
JZ 0x00177421
JMP 0x001773ef
LAB_001773ef:
JMP 0x001773f1
LAB_001773f1:
MOV RAX,qword ptr [RBP + -0x50]
MOV RDI,qword ptr [RAX + 0x8]
MOVSXD RSI,dword ptr [RBP + -0x1c]
CALL 0x001ed1a0
MOV qword ptr [RBP + -0x58],RAX
MOV RDI,qword ptr [RBP + -0x58]
MOV RSI,qword ptr [RBP + -0x18]
MOVSXD RDX,dword ptr [RBP + -0x1c]
CALL 0x0012a090
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RBP + -0x48],RAX
JMP 0x00177429
LAB_00177421:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x48],RAX
LAB_00177429:
MOV EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0x40],EAX
MOV RDI,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RAX + 0x230]
LEA RSI,[RBP + -0x48]
XOR EDX,EDX
CALL 0x001fa750
CMP RAX,0x0
JNZ 0x00177463
MOV RDI,qword ptr [RBP + -0x30]
XOR ESI,ESI
CALL 0x001fa580
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0017746c
LAB_00177463:
JMP 0x00177465
LAB_00177465:
MOV dword ptr [RBP + -0x4],0x0
LAB_0017746c:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x60
POP RBP
RET
|
bool maria_ft_add_word(long param_1,void *param_2,int param_3,int8 param_4)
{
void *__dest;
long lVar1;
void *local_50;
int local_48;
long local_38;
int8 local_30;
int local_24;
void *local_20;
long local_18;
local_38 = **(long **)(param_1 + 0x18);
local_50 = param_2;
local_30 = param_4;
local_24 = param_3;
local_20 = param_2;
local_18 = param_1;
if ((*(uint *)(param_1 + 0x34) & 1) != 0) {
__dest = (void *)alloc_root((*(long **)(param_1 + 0x18))[1],(long)param_3);
memcpy(__dest,local_20,(long)local_24);
local_50 = __dest;
}
local_48 = local_24;
lVar1 = tree_insert(local_38,&local_50,0,*(int8 *)(local_38 + 0x230));
if (lVar1 == 0) {
delete_tree(local_38,0);
}
return lVar1 == 0;
}
| |
37,802 | my_strntol_8bit | eloqsql/strings/ctype-simple.c | long my_strntol_8bit(CHARSET_INFO *cs,
const char *nptr, size_t l, int base,
char **endptr, int *err)
{
int negative;
register uint32 cutoff;
register uint cutlim;
register uint32 i;
register const char *s;
register uchar c;
const char *save, *e;
int overflow;
*err= 0; /* Initialize error indicator */
s = nptr;
e = nptr+l;
for ( ; s<e && my_isspace(cs, *s) ; s++);
if (s == e)
{
goto noconv;
}
/* Check for a sign. */
if (*s == '-')
{
negative = 1;
++s;
}
else if (*s == '+')
{
negative = 0;
++s;
}
else
negative = 0;
save = s;
cutoff = ((uint32)~0L) / (uint32) base;
cutlim = (uint) (((uint32)~0L) % (uint32) base);
overflow = 0;
i = 0;
for (c = *s; s != e; c = *++s)
{
if (c>='0' && c<='9')
c -= '0';
else if (c>='A' && c<='Z')
c = c - 'A' + 10;
else if (c>='a' && c<='z')
c = c - 'a' + 10;
else
break;
if (c >= base)
break;
if (i > cutoff || (i == cutoff && c > cutlim))
overflow = 1;
else
{
i *= (uint32) base;
i += c;
}
}
if (s == save)
goto noconv;
if (endptr != NULL)
*endptr = (char *) s;
if (negative)
{
if (i > (uint32) INT_MIN32)
overflow = 1;
}
else if (i > INT_MAX32)
overflow = 1;
if (overflow)
{
err[0]= ERANGE;
return negative ? INT_MIN32 : INT_MAX32;
}
return (negative ? -((long) i) : (long) i);
noconv:
err[0]= EDOM;
if (endptr != NULL)
*endptr = (char *) nptr;
return 0L;
} | O3 | c | my_strntol_8bit:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl $0x0, (%r9)
leaq (%rsi,%rdx), %r11
movq %rsi, %r10
testq %rdx, %rdx
jle 0x371ff
movq 0x40(%rdi), %rax
movq %rsi, %r10
movzbl (%r10), %edx
testb $0x8, 0x1(%rax,%rdx)
je 0x371ff
incq %r10
cmpq %r11, %r10
jb 0x371ec
cmpq %r11, %r10
je 0x37304
movb (%r10), %dil
leal -0x2b(%rdi), %eax
andb $-0x3, %al
cmpb $0x1, %al
adcq $0x0, %r10
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
xorl %edx, %edx
divl %ecx
xorl %ebx, %ebx
cmpq %r11, %r10
je 0x372b0
movq %rdi, -0x30(%rbp)
xorl %r12d, %r12d
movq %r10, %r14
xorl %r13d, %r13d
movl %r13d, %ebx
movl %r12d, %r15d
movb (%r14), %r12b
leal -0x30(%r12), %edi
cmpb $0xa, %dil
jb 0x3726e
leal -0x41(%r12), %edi
cmpb $0x19, %dil
ja 0x3725c
addb $-0x37, %r12b
jmp 0x3726b
leal -0x61(%r12), %edi
cmpb $0x19, %dil
ja 0x372aa
addb $-0x57, %r12b
movl %r12d, %edi
movzbl %dil, %edi
cmpl %ecx, %edi
jge 0x372aa
movl $0x1, %r12d
cmpl %eax, %ebx
jbe 0x37285
movl %ebx, %r13d
jmp 0x37299
jne 0x3728e
movl %eax, %r13d
cmpl %edi, %edx
jb 0x37299
imull %ecx, %ebx
addl %edi, %ebx
movl %ebx, %r13d
movl %r15d, %r12d
incq %r14
cmpq %r11, %r14
jne 0x37237
movl %r13d, %ebx
movq %r11, %r14
movl %r12d, %r15d
movq -0x30(%rbp), %rdi
jmp 0x372b6
movq %r11, %r14
xorl %r15d, %r15d
cmpq %r10, %r14
je 0x37304
testq %r8, %r8
je 0x372c3
movq %r14, (%r8)
cmpl $0x80000001, %ebx # imm = 0x80000001
movl $0x1, %eax
movl %r15d, %ecx
cmovael %eax, %ecx
testl %ebx, %ebx
cmovsl %eax, %r15d
cmpb $0x2d, %dil
cmovel %ecx, %r15d
testl %r15d, %r15d
je 0x37320
cmpb $0x2d, %dil
movl $0x22, (%r9)
movq $-0x80000000, %rcx # imm = 0x80000000
movl $0x7fffffff, %eax # imm = 0x7FFFFFFF
cmoveq %rcx, %rax
jmp 0x37315
movl $0x21, (%r9)
testq %r8, %r8
je 0x37313
movq %rsi, (%r8)
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %ebx, %ecx
movq %rcx, %rax
negq %rax
cmpb $0x2d, %dil
cmovneq %rcx, %rax
jmp 0x37315
| my_strntol_8bit:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
mov dword ptr [r9], 0
lea r11, [rsi+rdx]
mov r10, rsi
test rdx, rdx
jle short loc_371FF
mov rax, [rdi+40h]
mov r10, rsi
loc_371EC:
movzx edx, byte ptr [r10]
test byte ptr [rax+rdx+1], 8
jz short loc_371FF
inc r10
cmp r10, r11
jb short loc_371EC
loc_371FF:
cmp r10, r11
jz loc_37304
mov dil, [r10]
lea eax, [rdi-2Bh]
and al, 0FDh
cmp al, 1
adc r10, 0
mov eax, 0FFFFFFFFh
xor edx, edx
div ecx
xor ebx, ebx
cmp r10, r11
jz loc_372B0
mov [rbp+var_30], rdi
xor r12d, r12d
mov r14, r10
xor r13d, r13d
loc_37237:
mov ebx, r13d
mov r15d, r12d
mov r12b, [r14]
lea edi, [r12-30h]
cmp dil, 0Ah
jb short loc_3726E
lea edi, [r12-41h]
cmp dil, 19h
ja short loc_3725C
add r12b, 0C9h
jmp short loc_3726B
loc_3725C:
lea edi, [r12-61h]
cmp dil, 19h
ja short loc_372AA
add r12b, 0A9h
loc_3726B:
mov edi, r12d
loc_3726E:
movzx edi, dil
cmp edi, ecx
jge short loc_372AA
mov r12d, 1
cmp ebx, eax
jbe short loc_37285
mov r13d, ebx
jmp short loc_37299
loc_37285:
jnz short loc_3728E
mov r13d, eax
cmp edx, edi
jb short loc_37299
loc_3728E:
imul ebx, ecx
add ebx, edi
mov r13d, ebx
mov r12d, r15d
loc_37299:
inc r14
cmp r14, r11
jnz short loc_37237
mov ebx, r13d
mov r14, r11
mov r15d, r12d
loc_372AA:
mov rdi, [rbp+var_30]
jmp short loc_372B6
loc_372B0:
mov r14, r11
xor r15d, r15d
loc_372B6:
cmp r14, r10
jz short loc_37304
test r8, r8
jz short loc_372C3
mov [r8], r14
loc_372C3:
cmp ebx, 80000001h
mov eax, 1
mov ecx, r15d
cmovnb ecx, eax
test ebx, ebx
cmovs r15d, eax
cmp dil, 2Dh ; '-'
cmovz r15d, ecx
test r15d, r15d
jz short loc_37320
cmp dil, 2Dh ; '-'
mov dword ptr [r9], 22h ; '"'
mov rcx, 0FFFFFFFF80000000h
mov eax, 7FFFFFFFh
cmovz rax, rcx
jmp short loc_37315
loc_37304:
mov dword ptr [r9], 21h ; '!'
test r8, r8
jz short loc_37313
mov [r8], rsi
loc_37313:
xor eax, eax
loc_37315:
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_37320:
mov ecx, ebx
mov rax, rcx
neg rax
cmp dil, 2Dh ; '-'
cmovnz rax, rcx
jmp short loc_37315
| long long my_strntol_8bit(
long long a1,
unsigned __int8 *a2,
long long a3,
unsigned int a4,
unsigned __int8 **a5,
_DWORD *a6)
{
unsigned __int8 *v6; // r11
unsigned __int8 *v7; // r10
unsigned __int8 v8; // di
unsigned __int8 *v9; // r10
unsigned int v10; // eax
unsigned int v11; // ebx
int v12; // r12d
unsigned __int8 *v13; // r14
unsigned int v14; // r13d
int v15; // r15d
unsigned __int8 v16; // r12
unsigned __int8 v17; // di
unsigned __int8 v18; // r12
int v19; // ecx
long long result; // rax
unsigned __int8 v21; // [rsp+0h] [rbp-30h]
*a6 = 0;
v6 = &a2[a3];
v7 = a2;
if ( a3 > 0 )
{
v7 = a2;
do
{
if ( (*(_BYTE *)(*(_QWORD *)(a1 + 64) + *v7 + 1LL) & 8) == 0 )
break;
++v7;
}
while ( v7 < v6 );
}
if ( v7 == v6 )
goto LABEL_36;
v8 = *v7;
v9 = &v7[((*v7 - 43) & 0xFD) == 0];
v10 = 0xFFFFFFFF / a4;
v11 = 0;
if ( v9 == v6 )
{
v13 = &a2[a3];
v15 = 0;
}
else
{
v21 = v8;
v12 = 0;
v13 = v9;
v14 = 0;
while ( 1 )
{
v11 = v14;
v15 = v12;
v16 = *v13;
v17 = *v13 - 48;
if ( v17 >= 0xAu )
{
if ( (unsigned __int8)(v16 - 65) > 0x19u )
{
if ( (unsigned __int8)(v16 - 97) > 0x19u )
break;
v18 = v16 - 87;
}
else
{
v18 = v16 - 55;
}
v17 = v18;
}
if ( v17 >= (int)a4 )
break;
v12 = 1;
if ( v14 <= v10 )
{
if ( v14 != v10 || (v14 = 0xFFFFFFFF / a4, 0xFFFFFFFF % a4 >= v17) )
{
v14 = v17 + a4 * v11;
v12 = v15;
}
}
if ( ++v13 == v6 )
{
v11 = v14;
v13 = &a2[a3];
v15 = v12;
break;
}
}
v8 = v21;
}
if ( v13 == v9 )
{
LABEL_36:
*a6 = 33;
if ( a5 )
*a5 = a2;
return 0LL;
}
else
{
if ( a5 )
*a5 = v13;
v19 = v15;
if ( v11 >= 0x80000001 )
v19 = 1;
if ( (v11 & 0x80000000) != 0 )
v15 = 1;
if ( v8 == 45 )
v15 = v19;
if ( v15 )
{
*a6 = 34;
result = 0x7FFFFFFFLL;
if ( v8 == 45 )
return 0xFFFFFFFF80000000LL;
}
else
{
result = -(long long)v11;
if ( v8 != 45 )
return v11;
}
}
return result;
}
| my_strntol_8bit:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV dword ptr [R9],0x0
LEA R11,[RSI + RDX*0x1]
MOV R10,RSI
TEST RDX,RDX
JLE 0x001371ff
MOV RAX,qword ptr [RDI + 0x40]
MOV R10,RSI
LAB_001371ec:
MOVZX EDX,byte ptr [R10]
TEST byte ptr [RAX + RDX*0x1 + 0x1],0x8
JZ 0x001371ff
INC R10
CMP R10,R11
JC 0x001371ec
LAB_001371ff:
CMP R10,R11
JZ 0x00137304
MOV DIL,byte ptr [R10]
LEA EAX,[RDI + -0x2b]
AND AL,0xfd
CMP AL,0x1
ADC R10,0x0
MOV EAX,0xffffffff
XOR EDX,EDX
DIV ECX
XOR EBX,EBX
CMP R10,R11
JZ 0x001372b0
MOV qword ptr [RBP + -0x30],RDI
XOR R12D,R12D
MOV R14,R10
XOR R13D,R13D
LAB_00137237:
MOV EBX,R13D
MOV R15D,R12D
MOV R12B,byte ptr [R14]
LEA EDI,[R12 + -0x30]
CMP DIL,0xa
JC 0x0013726e
LEA EDI,[R12 + -0x41]
CMP DIL,0x19
JA 0x0013725c
ADD R12B,0xc9
JMP 0x0013726b
LAB_0013725c:
LEA EDI,[R12 + -0x61]
CMP DIL,0x19
JA 0x001372aa
ADD R12B,0xa9
LAB_0013726b:
MOV EDI,R12D
LAB_0013726e:
MOVZX EDI,DIL
CMP EDI,ECX
JGE 0x001372aa
MOV R12D,0x1
CMP EBX,EAX
JBE 0x00137285
MOV R13D,EBX
JMP 0x00137299
LAB_00137285:
JNZ 0x0013728e
MOV R13D,EAX
CMP EDX,EDI
JC 0x00137299
LAB_0013728e:
IMUL EBX,ECX
ADD EBX,EDI
MOV R13D,EBX
MOV R12D,R15D
LAB_00137299:
INC R14
CMP R14,R11
JNZ 0x00137237
MOV EBX,R13D
MOV R14,R11
MOV R15D,R12D
LAB_001372aa:
MOV RDI,qword ptr [RBP + -0x30]
JMP 0x001372b6
LAB_001372b0:
MOV R14,R11
XOR R15D,R15D
LAB_001372b6:
CMP R14,R10
JZ 0x00137304
TEST R8,R8
JZ 0x001372c3
MOV qword ptr [R8],R14
LAB_001372c3:
CMP EBX,0x80000001
MOV EAX,0x1
MOV ECX,R15D
CMOVNC ECX,EAX
TEST EBX,EBX
CMOVS R15D,EAX
CMP DIL,0x2d
CMOVZ R15D,ECX
TEST R15D,R15D
JZ 0x00137320
CMP DIL,0x2d
MOV dword ptr [R9],0x22
MOV RCX,-0x80000000
MOV EAX,0x7fffffff
CMOVZ RAX,RCX
JMP 0x00137315
LAB_00137304:
MOV dword ptr [R9],0x21
TEST R8,R8
JZ 0x00137313
MOV qword ptr [R8],RSI
LAB_00137313:
XOR EAX,EAX
LAB_00137315:
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00137320:
MOV ECX,EBX
MOV RAX,RCX
NEG RAX
CMP DIL,0x2d
CMOVNZ RAX,RCX
JMP 0x00137315
|
ulong my_strntol_8bit(long param_1,byte *param_2,long param_3,uint param_4,ulong *param_5,
int4 *param_6)
{
byte *pbVar1;
byte bVar2;
byte bVar3;
bool bVar4;
bool bVar5;
uint uVar6;
uint uVar7;
byte *pbVar8;
byte bVar9;
uint uVar10;
byte *pbVar11;
byte *pbVar12;
*param_6 = 0;
pbVar1 = param_2 + param_3;
pbVar8 = param_2;
if (0 < param_3) {
do {
if ((*(byte *)(*(long *)(param_1 + 0x40) + 1 + (ulong)*pbVar8) & 8) == 0) break;
pbVar8 = pbVar8 + 1;
} while (pbVar8 < pbVar1);
}
if (pbVar8 != pbVar1) {
bVar2 = *pbVar8;
pbVar8 = pbVar8 + ((bVar2 - 0x2b & 0xfd) == 0);
uVar10 = 0;
if (pbVar8 == pbVar1) {
bVar4 = false;
pbVar12 = pbVar1;
}
else {
bVar4 = false;
uVar10 = 0;
pbVar11 = pbVar8;
do {
bVar3 = *pbVar11;
bVar9 = bVar3 - 0x30;
pbVar12 = pbVar11;
if (9 < bVar9) {
if ((byte)(bVar3 + 0xbf) < 0x1a) {
bVar9 = bVar3 - 0x37;
}
else {
if (0x19 < (byte)(bVar3 + 0x9f)) break;
bVar9 = bVar3 + 0xa9;
}
}
if ((int)param_4 <= (int)(uint)bVar9) break;
uVar7 = (uint)(0xffffffff / (ulong)param_4);
uVar6 = uVar10;
bVar5 = true;
if ((uVar10 <= uVar7) &&
((uVar10 != uVar7 || (uVar6 = uVar7, (uint)bVar9 <= (uint)(0xffffffff % (ulong)param_4)))
)) {
uVar6 = uVar10 * param_4 + (uint)bVar9;
bVar5 = bVar4;
}
bVar4 = bVar5;
uVar10 = uVar6;
pbVar11 = pbVar11 + 1;
pbVar12 = pbVar1;
} while (pbVar11 != pbVar1);
}
if (pbVar12 != pbVar8) {
if (param_5 != (ulong *)0x0) {
*param_5 = (ulong)pbVar12;
}
bVar5 = bVar4;
if (0x80000000 < uVar10) {
bVar5 = true;
}
if ((int)uVar10 < 0) {
bVar4 = true;
}
if (bVar2 == 0x2d) {
bVar4 = bVar5;
}
if (bVar4) {
*param_6 = 0x22;
if (bVar2 != 0x2d) {
return 0x7fffffff;
}
return 0xffffffff80000000;
}
if (bVar2 == 0x2d) {
return -(ulong)uVar10;
}
return (ulong)uVar10;
}
}
*param_6 = 0x21;
if (param_5 != (ulong *)0x0) {
*param_5 = (ulong)param_2;
}
return 0;
}
| |
37,803 | my_mb_wc_gbk | eloqsql/strings/ctype-gbk.c | static int
my_mb_wc_gbk(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t *pwc, const uchar *s, const uchar *e)
{
int hi;
if (s >= e)
return MY_CS_TOOSMALL;
hi=s[0];
if (hi<0x80)
{
pwc[0]=hi;
return 1;
}
if (s+2>e)
return MY_CS_TOOSMALL2;
if (!IS_MB2_CHAR(hi, s[1]))
return MY_CS_ILSEQ;
if (!(pwc[0]=func_gbk_uni_onechar( (hi<<8) + s[1])))
return -2;
return 2;
} | O3 | c | my_mb_wc_gbk:
pushq %rbp
movq %rsp, %rbp
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rcx, %rdx
jae 0xb2e6d
movsbq (%rdx), %rdi
testq %rdi, %rdi
js 0xb2df1
movq %rdi, (%rsi)
movl $0x1, %eax
jmp 0xb2e6d
leaq 0x2(%rdx), %r8
movl $0xffffff9a, %eax # imm = 0xFFFFFF9A
cmpq %rcx, %r8
ja 0xb2e6d
movzbl %dil, %ecx
xorl %eax, %eax
cmpl $0x80, %ecx
je 0xb2e6d
cmpl $0xff, %ecx
je 0xb2e6d
movzbl 0x1(%rdx), %edx
leal -0x7f(%rdx), %edi
cmpb $-0x3f, %dil
setb %dil
cmpb $-0x1, %dl
setge %r8b
testb %dil, %r8b
jne 0xb2e6d
shll $0x8, %ecx
leal (%rcx,%rdx), %eax
addl $0xffff7ec0, %eax # imm = 0xFFFF7EC0
cmpl $0x7d10, %eax # imm = 0x7D10
jae 0xb2e61
movl %eax, %eax
leaq 0x14ae15(%rip), %rcx # 0x1fdc60
movzwl (%rcx,%rax,2), %eax
movzwl %ax, %ecx
movq %rcx, (%rsi)
movl $0x2, %eax
testw %cx, %cx
jne 0xb2e6d
jmp 0xb2e68
movq $0x0, (%rsi)
movl $0xfffffffe, %eax # imm = 0xFFFFFFFE
popq %rbp
retq
| my_mb_wc_gbk:
push rbp
mov rbp, rsp
mov eax, 0FFFFFF9Bh
cmp rdx, rcx
jnb loc_B2E6D
movsx rdi, byte ptr [rdx]
test rdi, rdi
js short loc_B2DF1
mov [rsi], rdi
mov eax, 1
jmp short loc_B2E6D
loc_B2DF1:
lea r8, [rdx+2]
mov eax, 0FFFFFF9Ah
cmp r8, rcx
ja short loc_B2E6D
movzx ecx, dil
xor eax, eax
cmp ecx, 80h
jz short loc_B2E6D
cmp ecx, 0FFh
jz short loc_B2E6D
movzx edx, byte ptr [rdx+1]
lea edi, [rdx-7Fh]
cmp dil, 0C1h
setb dil
cmp dl, 0FFh
setnl r8b
test r8b, dil
jnz short loc_B2E6D
shl ecx, 8
lea eax, [rcx+rdx]
add eax, 0FFFF7EC0h
cmp eax, 7D10h
jnb short loc_B2E61
mov eax, eax
lea rcx, tab_gbk_uni0
movzx eax, word ptr [rcx+rax*2]
movzx ecx, ax
mov [rsi], rcx
mov eax, 2
test cx, cx
jnz short loc_B2E6D
jmp short loc_B2E68
loc_B2E61:
mov qword ptr [rsi], 0
loc_B2E68:
mov eax, 0FFFFFFFEh
loc_B2E6D:
pop rbp
retn
| long long my_mb_wc_gbk(long long a1, long long *a2, char *a3, unsigned long long a4)
{
long long result; // rax
long long v5; // rdi
int v6; // edx
unsigned int v7; // eax
long long v8; // rcx
result = 4294967195LL;
if ( (unsigned long long)a3 < a4 )
{
v5 = *a3;
if ( v5 >= 0 )
{
*a2 = v5;
return 1LL;
}
result = 4294967194LL;
if ( (unsigned long long)(a3 + 2) <= a4 )
{
result = 0LL;
if ( (unsigned __int8)v5 != 128 && (unsigned __int8)v5 != 255 )
{
v6 = (unsigned __int8)a3[1];
if ( (unsigned __int8)(v6 - 127) >= 0xC1u || (char)v6 < -1 )
{
v7 = ((unsigned __int8)v5 << 8) + v6 - 33088;
if ( v7 >= 0x7D10 )
{
*a2 = 0LL;
}
else
{
v8 = tab_gbk_uni0[v7];
*a2 = v8;
result = 2LL;
if ( (_WORD)v8 )
return result;
}
return 4294967294LL;
}
}
}
}
return result;
}
| my_mb_wc_gbk:
PUSH RBP
MOV RBP,RSP
MOV EAX,0xffffff9b
CMP RDX,RCX
JNC 0x001b2e6d
MOVSX RDI,byte ptr [RDX]
TEST RDI,RDI
JS 0x001b2df1
MOV qword ptr [RSI],RDI
MOV EAX,0x1
JMP 0x001b2e6d
LAB_001b2df1:
LEA R8,[RDX + 0x2]
MOV EAX,0xffffff9a
CMP R8,RCX
JA 0x001b2e6d
MOVZX ECX,DIL
XOR EAX,EAX
CMP ECX,0x80
JZ 0x001b2e6d
CMP ECX,0xff
JZ 0x001b2e6d
MOVZX EDX,byte ptr [RDX + 0x1]
LEA EDI,[RDX + -0x7f]
CMP DIL,0xc1
SETC DIL
CMP DL,0xff
SETGE R8B
TEST R8B,DIL
JNZ 0x001b2e6d
SHL ECX,0x8
LEA EAX,[RCX + RDX*0x1]
ADD EAX,0xffff7ec0
CMP EAX,0x7d10
JNC 0x001b2e61
MOV EAX,EAX
LEA RCX,[0x2fdc60]
MOVZX EAX,word ptr [RCX + RAX*0x2]
MOVZX ECX,AX
MOV qword ptr [RSI],RCX
MOV EAX,0x2
TEST CX,CX
JNZ 0x001b2e6d
JMP 0x001b2e68
LAB_001b2e61:
MOV qword ptr [RSI],0x0
LAB_001b2e68:
MOV EAX,0xfffffffe
LAB_001b2e6d:
POP RBP
RET
|
int8 my_mb_wc_gbk(int8 param_1,ulong *param_2,byte *param_3,byte *param_4)
{
byte bVar1;
byte bVar2;
ushort uVar3;
uint uVar4;
int8 uVar5;
uVar5 = 0xffffff9b;
if (param_3 < param_4) {
bVar1 = *param_3;
if ((long)(char)bVar1 < 0) {
uVar5 = 0xffffff9a;
if ((((param_3 + 2 <= param_4) && (uVar5 = 0, bVar1 != 0x80)) && (bVar1 != 0xff)) &&
(bVar2 = param_3[1], (char)bVar2 < -1 || 0xc0 < (byte)(bVar2 + 0x81))) {
uVar4 = ((uint)bVar1 * 0x100 + (uint)bVar2) - 0x8140;
if (uVar4 < 0x7d10) {
uVar3 = *(ushort *)(&tab_gbk_uni0 + (ulong)uVar4 * 2);
*param_2 = (ulong)uVar3;
if (uVar3 != 0) {
return 2;
}
}
else {
*param_2 = 0;
}
uVar5 = 0xfffffffe;
}
}
else {
*param_2 = (long)(char)bVar1;
uVar5 = 1;
}
}
return uVar5;
}
| |
37,804 | bc_idx_to_atom | bluesky950520[P]quickjs/quickjs.c | static int bc_idx_to_atom(BCReaderState *s, JSAtom *patom, uint32_t idx)
{
JSAtom atom;
if (__JS_AtomIsTaggedInt(idx)) {
atom = idx;
} else if (idx < s->first_atom) {
atom = JS_DupAtom(s->ctx, idx);
} else {
idx -= s->first_atom;
if (idx >= s->idx_to_atom_count) {
JS_ThrowSyntaxError(s->ctx, "invalid atom index (pos=%u)",
(unsigned int)(s->ptr - s->buf_start));
*patom = JS_ATOM_NULL;
return s->error_state = -1;
}
atom = JS_DupAtom(s->ctx, s->idx_to_atom[idx]);
}
*patom = atom;
return 0;
} | O0 | c | bc_idx_to_atom:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
movl %edx, 0x1c(%rsp)
movl 0x1c(%rsp), %edi
callq 0x3c3b0
cmpl $0x0, %eax
je 0x8364d
movl 0x1c(%rsp), %eax
movl %eax, 0x18(%rsp)
jmp 0x83710
movl 0x1c(%rsp), %eax
movq 0x28(%rsp), %rcx
cmpl 0x20(%rcx), %eax
jae 0x83675
movq 0x28(%rsp), %rax
movq (%rax), %rdi
movl 0x1c(%rsp), %esi
callq 0x2e290
movl %eax, 0x18(%rsp)
jmp 0x8370e
movq 0x28(%rsp), %rax
movl 0x20(%rax), %ecx
movl 0x1c(%rsp), %eax
subl %ecx, %eax
movl %eax, 0x1c(%rsp)
movl 0x1c(%rsp), %eax
movq 0x28(%rsp), %rcx
cmpl 0x24(%rcx), %eax
jb 0x836ed
movq 0x28(%rsp), %rax
movq (%rax), %rdi
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x28(%rsp), %rcx
movq 0x8(%rcx), %rcx
subq %rcx, %rax
movl %eax, %edx
leaq 0x9156e(%rip), %rsi # 0x114c29
movb $0x0, %al
callq 0x33500
movq %rax, 0x8(%rsp)
movq %rdx, 0x10(%rsp)
movq 0x20(%rsp), %rax
movl $0x0, (%rax)
movq 0x28(%rsp), %rax
movl $0xffffffff, 0x30(%rax) # imm = 0xFFFFFFFF
movl $0xffffffff, 0x34(%rsp) # imm = 0xFFFFFFFF
jmp 0x83723
movq 0x28(%rsp), %rax
movq (%rax), %rdi
movq 0x28(%rsp), %rax
movq 0x28(%rax), %rax
movl 0x1c(%rsp), %ecx
movl (%rax,%rcx,4), %esi
callq 0x2e290
movl %eax, 0x18(%rsp)
jmp 0x83710
movl 0x18(%rsp), %ecx
movq 0x20(%rsp), %rax
movl %ecx, (%rax)
movl $0x0, 0x34(%rsp)
movl 0x34(%rsp), %eax
addq $0x38, %rsp
retq
nopl (%rax)
| bc_idx_to_atom:
sub rsp, 38h
mov [rsp+38h+var_10], rdi
mov [rsp+38h+var_18], rsi
mov [rsp+38h+var_1C], edx
mov edi, [rsp+38h+var_1C]
call __JS_AtomIsTaggedInt
cmp eax, 0
jz short loc_8364D
mov eax, [rsp+38h+var_1C]
mov [rsp+38h+var_20], eax
jmp loc_83710
loc_8364D:
mov eax, [rsp+38h+var_1C]
mov rcx, [rsp+38h+var_10]
cmp eax, [rcx+20h]
jnb short loc_83675
mov rax, [rsp+38h+var_10]
mov rdi, [rax]
mov esi, [rsp+38h+var_1C]
call JS_DupAtom
mov [rsp+38h+var_20], eax
jmp loc_8370E
loc_83675:
mov rax, [rsp+38h+var_10]
mov ecx, [rax+20h]
mov eax, [rsp+38h+var_1C]
sub eax, ecx
mov [rsp+38h+var_1C], eax
mov eax, [rsp+38h+var_1C]
mov rcx, [rsp+38h+var_10]
cmp eax, [rcx+24h]
jb short loc_836ED
mov rax, [rsp+38h+var_10]
mov rdi, [rax]
mov rax, [rsp+38h+var_10]
mov rax, [rax+10h]
mov rcx, [rsp+38h+var_10]
mov rcx, [rcx+8]
sub rax, rcx
mov edx, eax
lea rsi, aInvalidAtomInd; "invalid atom index (pos=%u)"
mov al, 0
call JS_ThrowSyntaxError
mov [rsp+38h+var_30], rax
mov [rsp+38h+var_28], rdx
mov rax, [rsp+38h+var_18]
mov dword ptr [rax], 0
mov rax, [rsp+38h+var_10]
mov dword ptr [rax+30h], 0FFFFFFFFh
mov [rsp+38h+var_4], 0FFFFFFFFh
jmp short loc_83723
loc_836ED:
mov rax, [rsp+38h+var_10]
mov rdi, [rax]
mov rax, [rsp+38h+var_10]
mov rax, [rax+28h]
mov ecx, [rsp+38h+var_1C]
mov esi, [rax+rcx*4]
call JS_DupAtom
mov [rsp+38h+var_20], eax
loc_8370E:
jmp short $+2
loc_83710:
mov ecx, [rsp+38h+var_20]
mov rax, [rsp+38h+var_18]
mov [rax], ecx
mov [rsp+38h+var_4], 0
loc_83723:
mov eax, [rsp+38h+var_4]
add rsp, 38h
retn
| long long bc_idx_to_atom(
long long a1,
_DWORD *a2,
unsigned int a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
double a8,
double a9,
__m128 a10,
__m128 a11)
{
long long v11; // r8
long long v12; // r9
__m128 v13; // xmm4
__m128 v14; // xmm5
char v16; // [rsp+0h] [rbp-38h]
int v17; // [rsp+18h] [rbp-20h]
unsigned int v19; // [rsp+1Ch] [rbp-1Ch]
if ( _JS_AtomIsTaggedInt(a3) )
{
v17 = a3;
LABEL_8:
*a2 = v17;
return 0;
}
if ( a3 < *(_DWORD *)(a1 + 32) )
{
v17 = JS_DupAtom(*(_QWORD *)a1, a3);
goto LABEL_8;
}
v19 = a3 - *(_DWORD *)(a1 + 32);
if ( v19 < *(_DWORD *)(a1 + 36) )
{
v17 = JS_DupAtom(*(_QWORD *)a1, *(_DWORD *)(*(_QWORD *)(a1 + 40) + 4LL * v19));
goto LABEL_8;
}
JS_ThrowSyntaxError(
*(_QWORD *)a1,
(long long)"invalid atom index (pos=%u)",
(unsigned int)*(_QWORD *)(a1 + 16) - (unsigned int)*(_QWORD *)(a1 + 8),
*(_QWORD *)(a1 + 8),
v11,
v12,
a4,
a5,
a6,
a7,
v13,
v14,
a10,
a11,
v16);
*a2 = 0;
*(_DWORD *)(a1 + 48) = -1;
return (unsigned int)-1;
}
| bc_idx_to_atom:
SUB RSP,0x38
MOV qword ptr [RSP + 0x28],RDI
MOV qword ptr [RSP + 0x20],RSI
MOV dword ptr [RSP + 0x1c],EDX
MOV EDI,dword ptr [RSP + 0x1c]
CALL 0x0013c3b0
CMP EAX,0x0
JZ 0x0018364d
MOV EAX,dword ptr [RSP + 0x1c]
MOV dword ptr [RSP + 0x18],EAX
JMP 0x00183710
LAB_0018364d:
MOV EAX,dword ptr [RSP + 0x1c]
MOV RCX,qword ptr [RSP + 0x28]
CMP EAX,dword ptr [RCX + 0x20]
JNC 0x00183675
MOV RAX,qword ptr [RSP + 0x28]
MOV RDI,qword ptr [RAX]
MOV ESI,dword ptr [RSP + 0x1c]
CALL 0x0012e290
MOV dword ptr [RSP + 0x18],EAX
JMP 0x0018370e
LAB_00183675:
MOV RAX,qword ptr [RSP + 0x28]
MOV ECX,dword ptr [RAX + 0x20]
MOV EAX,dword ptr [RSP + 0x1c]
SUB EAX,ECX
MOV dword ptr [RSP + 0x1c],EAX
MOV EAX,dword ptr [RSP + 0x1c]
MOV RCX,qword ptr [RSP + 0x28]
CMP EAX,dword ptr [RCX + 0x24]
JC 0x001836ed
MOV RAX,qword ptr [RSP + 0x28]
MOV RDI,qword ptr [RAX]
MOV RAX,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RSP + 0x28]
MOV RCX,qword ptr [RCX + 0x8]
SUB RAX,RCX
MOV EDX,EAX
LEA RSI,[0x214c29]
MOV AL,0x0
CALL 0x00133500
MOV qword ptr [RSP + 0x8],RAX
MOV qword ptr [RSP + 0x10],RDX
MOV RAX,qword ptr [RSP + 0x20]
MOV dword ptr [RAX],0x0
MOV RAX,qword ptr [RSP + 0x28]
MOV dword ptr [RAX + 0x30],0xffffffff
MOV dword ptr [RSP + 0x34],0xffffffff
JMP 0x00183723
LAB_001836ed:
MOV RAX,qword ptr [RSP + 0x28]
MOV RDI,qword ptr [RAX]
MOV RAX,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RAX + 0x28]
MOV ECX,dword ptr [RSP + 0x1c]
MOV ESI,dword ptr [RAX + RCX*0x4]
CALL 0x0012e290
MOV dword ptr [RSP + 0x18],EAX
LAB_0018370e:
JMP 0x00183710
LAB_00183710:
MOV ECX,dword ptr [RSP + 0x18]
MOV RAX,qword ptr [RSP + 0x20]
MOV dword ptr [RAX],ECX
MOV dword ptr [RSP + 0x34],0x0
LAB_00183723:
MOV EAX,dword ptr [RSP + 0x34]
ADD RSP,0x38
RET
|
int4 bc_idx_to_atom(int8 *param_1,uint *param_2,uint param_3)
{
int iVar1;
uint local_20;
iVar1 = __JS_AtomIsTaggedInt(param_3);
local_20 = param_3;
if (iVar1 == 0) {
if (param_3 < *(uint *)(param_1 + 4)) {
local_20 = JS_DupAtom(*param_1,param_3);
}
else {
if (*(uint *)((long)param_1 + 0x24) <= param_3 - *(int *)(param_1 + 4)) {
JS_ThrowSyntaxError(*param_1,"invalid atom index (pos=%u)",(int)param_1[2] - (int)param_1[1]
);
*param_2 = 0;
*(int4 *)(param_1 + 6) = 0xffffffff;
return 0xffffffff;
}
local_20 = JS_DupAtom(*param_1,*(int4 *)
(param_1[5] + (ulong)(param_3 - *(int *)(param_1 + 4)) * 4));
}
}
*param_2 = local_20;
return 0;
}
| |
37,805 | bc_idx_to_atom | bluesky950520[P]quickjs/quickjs.c | static int bc_idx_to_atom(BCReaderState *s, JSAtom *patom, uint32_t idx)
{
JSAtom atom;
if (__JS_AtomIsTaggedInt(idx)) {
atom = idx;
} else if (idx < s->first_atom) {
atom = JS_DupAtom(s->ctx, idx);
} else {
idx -= s->first_atom;
if (idx >= s->idx_to_atom_count) {
JS_ThrowSyntaxError(s->ctx, "invalid atom index (pos=%u)",
(unsigned int)(s->ptr - s->buf_start));
*patom = JS_ATOM_NULL;
return s->error_state = -1;
}
atom = JS_DupAtom(s->ctx, s->idx_to_atom[idx]);
}
*patom = atom;
return 0;
} | O1 | c | bc_idx_to_atom:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
testl %edx, %edx
js 0x4b09a
movq %rdi, %r14
movl %edx, %eax
subl 0x20(%rdi), %eax
jae 0x4b0a6
cmpl $0xdf, %edx
jle 0x4b09a
movq (%r14), %rax
movq 0x18(%rax), %rax
movq 0x68(%rax), %rax
movl %edx, %ecx
movq (%rax,%rcx,8), %rax
incl (%rax)
movl %edx, (%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
cmpl 0x24(%r14), %eax
jae 0x4b0bf
movq 0x28(%r14), %rcx
movl %eax, %eax
movl (%rcx,%rax,4), %edx
cmpl $0xe0, %edx
jge 0x4b087
jmp 0x4b09a
movq (%r14), %rdi
movl 0x10(%r14), %edx
subl 0x8(%r14), %edx
leaq 0x58b6c(%rip), %rsi # 0xa3c3d
xorl %eax, %eax
callq 0x2652d
movl $0x0, (%rbx)
movl $0xffffffff, 0x30(%r14) # imm = 0xFFFFFFFF
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
jmp 0x4b09e
| bc_idx_to_atom:
push r14
push rbx
push rax
mov rbx, rsi
test edx, edx
js short loc_4B09A
mov r14, rdi
mov eax, edx
sub eax, [rdi+20h]
jnb short loc_4B0A6
cmp edx, 0DFh
jle short loc_4B09A
loc_4B087:
mov rax, [r14]
mov rax, [rax+18h]
mov rax, [rax+68h]
mov ecx, edx
mov rax, [rax+rcx*8]
inc dword ptr [rax]
loc_4B09A:
mov [rbx], edx
xor eax, eax
loc_4B09E:
add rsp, 8
pop rbx
pop r14
retn
loc_4B0A6:
cmp eax, [r14+24h]
jnb short loc_4B0BF
mov rcx, [r14+28h]
mov eax, eax
mov edx, [rcx+rax*4]
cmp edx, 0E0h
jge short loc_4B087
jmp short loc_4B09A
loc_4B0BF:
mov rdi, [r14]
mov edx, [r14+10h]
sub edx, [r14+8]
lea rsi, aInvalidAtomInd; "invalid atom index (pos=%u)"
xor eax, eax
call JS_ThrowSyntaxError
mov dword ptr [rbx], 0
mov dword ptr [r14+30h], 0FFFFFFFFh
mov eax, 0FFFFFFFFh
jmp short loc_4B09E
| long long bc_idx_to_atom(
long long a1,
int *a2,
int a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
char v14; // al
unsigned int v15; // eax
_DWORD *v16; // rax
char v18; // [rsp-8h] [rbp-18h]
v18 = v14;
if ( a3 < 0 )
goto LABEL_5;
v15 = a3 - *(_DWORD *)(a1 + 32);
if ( (unsigned int)a3 >= *(_DWORD *)(a1 + 32) )
{
if ( v15 >= *(_DWORD *)(a1 + 36) )
{
JS_ThrowSyntaxError(
*(_QWORD *)a1,
(long long)"invalid atom index (pos=%u)",
(unsigned int)(*(_DWORD *)(a1 + 16) - *(_DWORD *)(a1 + 8)),
a4,
a5,
a6,
a7,
a8,
a9,
a10,
a11,
a12,
a13,
a14,
v18);
*a2 = 0;
*(_DWORD *)(a1 + 48) = -1;
return 0xFFFFFFFFLL;
}
a3 = *(_DWORD *)(*(_QWORD *)(a1 + 40) + 4LL * v15);
if ( a3 >= 224 )
goto LABEL_4;
}
else if ( a3 > 223 )
{
LABEL_4:
v16 = *(_DWORD **)(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)a1 + 24LL) + 104LL) + 8LL * (unsigned int)a3);
++*v16;
}
LABEL_5:
*a2 = a3;
return 0LL;
}
| bc_idx_to_atom:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RSI
TEST EDX,EDX
JS 0x0014b09a
MOV R14,RDI
MOV EAX,EDX
SUB EAX,dword ptr [RDI + 0x20]
JNC 0x0014b0a6
CMP EDX,0xdf
JLE 0x0014b09a
LAB_0014b087:
MOV RAX,qword ptr [R14]
MOV RAX,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RAX + 0x68]
MOV ECX,EDX
MOV RAX,qword ptr [RAX + RCX*0x8]
INC dword ptr [RAX]
LAB_0014b09a:
MOV dword ptr [RBX],EDX
XOR EAX,EAX
LAB_0014b09e:
ADD RSP,0x8
POP RBX
POP R14
RET
LAB_0014b0a6:
CMP EAX,dword ptr [R14 + 0x24]
JNC 0x0014b0bf
MOV RCX,qword ptr [R14 + 0x28]
MOV EAX,EAX
MOV EDX,dword ptr [RCX + RAX*0x4]
CMP EDX,0xe0
JGE 0x0014b087
JMP 0x0014b09a
LAB_0014b0bf:
MOV RDI,qword ptr [R14]
MOV EDX,dword ptr [R14 + 0x10]
SUB EDX,dword ptr [R14 + 0x8]
LEA RSI,[0x1a3c3d]
XOR EAX,EAX
CALL 0x0012652d
MOV dword ptr [RBX],0x0
MOV dword ptr [R14 + 0x30],0xffffffff
MOV EAX,0xffffffff
JMP 0x0014b09e
|
int8 bc_idx_to_atom(long *param_1,uint *param_2,uint param_3)
{
int *piVar1;
uint uVar2;
if (-1 < (int)param_3) {
uVar2 = param_3 - *(uint *)(param_1 + 4);
if (param_3 < *(uint *)(param_1 + 4)) {
if ((int)param_3 < 0xe0) goto LAB_0014b09a;
}
else {
if (*(uint *)((long)param_1 + 0x24) <= uVar2) {
JS_ThrowSyntaxError(*param_1,"invalid atom index (pos=%u)",(int)param_1[2] - (int)param_1[1]
);
*param_2 = 0;
*(int4 *)(param_1 + 6) = 0xffffffff;
return 0xffffffff;
}
param_3 = *(uint *)(param_1[5] + (ulong)uVar2 * 4);
if ((int)param_3 < 0xe0) goto LAB_0014b09a;
}
piVar1 = *(int **)(*(long *)(*(long *)(*param_1 + 0x18) + 0x68) + (ulong)param_3 * 8);
*piVar1 = *piVar1 + 1;
}
LAB_0014b09a:
*param_2 = param_3;
return 0;
}
| |
37,806 | bc_idx_to_atom | bluesky950520[P]quickjs/quickjs.c | static int bc_idx_to_atom(BCReaderState *s, JSAtom *patom, uint32_t idx)
{
JSAtom atom;
if (__JS_AtomIsTaggedInt(idx)) {
atom = idx;
} else if (idx < s->first_atom) {
atom = JS_DupAtom(s->ctx, idx);
} else {
idx -= s->first_atom;
if (idx >= s->idx_to_atom_count) {
JS_ThrowSyntaxError(s->ctx, "invalid atom index (pos=%u)",
(unsigned int)(s->ptr - s->buf_start));
*patom = JS_ATOM_NULL;
return s->error_state = -1;
}
atom = JS_DupAtom(s->ctx, s->idx_to_atom[idx]);
}
*patom = atom;
return 0;
} | O2 | c | bc_idx_to_atom:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
testl %edx, %edx
js 0x40fb0
movq %rdi, %r14
movl %edx, %eax
subl 0x20(%rdi), %eax
jae 0x40fbc
cmpl $0xdf, %edx
jbe 0x40fb0
movq (%r14), %rax
movq 0x18(%rax), %rax
movq 0x68(%rax), %rax
movl %edx, %ecx
movq (%rax,%rcx,8), %rax
incl (%rax)
movl %edx, (%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
cmpl 0x24(%r14), %eax
jae 0x40fd5
movq 0x28(%r14), %rcx
movl %eax, %eax
movl (%rcx,%rax,4), %edx
cmpl $0xe0, %edx
jge 0x40f9d
jmp 0x40fb0
movq (%r14), %rdi
movl 0x10(%r14), %edx
subl 0x8(%r14), %edx
leaq 0x48ba6(%rip), %rsi # 0x89b8d
xorl %eax, %eax
callq 0x2016b
andl $0x0, (%rbx)
orl $-0x1, 0x30(%r14)
pushq $-0x1
popq %rax
jmp 0x40fb4
| bc_idx_to_atom:
push r14
push rbx
push rax
mov rbx, rsi
test edx, edx
js short loc_40FB0
mov r14, rdi
mov eax, edx
sub eax, [rdi+20h]
jnb short loc_40FBC
cmp edx, 0DFh
jbe short loc_40FB0
loc_40F9D:
mov rax, [r14]
mov rax, [rax+18h]
mov rax, [rax+68h]
mov ecx, edx
mov rax, [rax+rcx*8]
inc dword ptr [rax]
loc_40FB0:
mov [rbx], edx
xor eax, eax
loc_40FB4:
add rsp, 8
pop rbx
pop r14
retn
loc_40FBC:
cmp eax, [r14+24h]
jnb short loc_40FD5
mov rcx, [r14+28h]
mov eax, eax
mov edx, [rcx+rax*4]
cmp edx, 0E0h
jge short loc_40F9D
jmp short loc_40FB0
loc_40FD5:
mov rdi, [r14]
mov edx, [r14+10h]
sub edx, [r14+8]
lea rsi, aInvalidAtomInd; "invalid atom index (pos=%u)"
xor eax, eax
call JS_ThrowSyntaxError
and dword ptr [rbx], 0
or dword ptr [r14+30h], 0FFFFFFFFh
push 0FFFFFFFFFFFFFFFFh
pop rax
jmp short loc_40FB4
| long long bc_idx_to_atom(
long long a1,
int *a2,
int a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
char v14; // al
unsigned int v15; // eax
_DWORD *v16; // rax
char v18; // [rsp-8h] [rbp-18h]
v18 = v14;
if ( a3 < 0 )
goto LABEL_5;
v15 = a3 - *(_DWORD *)(a1 + 32);
if ( (unsigned int)a3 >= *(_DWORD *)(a1 + 32) )
{
if ( v15 >= *(_DWORD *)(a1 + 36) )
{
JS_ThrowSyntaxError(
*(_QWORD *)a1,
(long long)"invalid atom index (pos=%u)",
(unsigned int)(*(_DWORD *)(a1 + 16) - *(_DWORD *)(a1 + 8)),
a4,
a5,
a6,
a7,
a8,
a9,
a10,
a11,
a12,
a13,
a14,
v18);
*a2 = 0;
*(_DWORD *)(a1 + 48) = -1;
return -1LL;
}
a3 = *(_DWORD *)(*(_QWORD *)(a1 + 40) + 4LL * v15);
if ( a3 >= 224 )
goto LABEL_4;
}
else if ( (unsigned int)a3 > 0xDF )
{
LABEL_4:
v16 = *(_DWORD **)(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)a1 + 24LL) + 104LL) + 8LL * (unsigned int)a3);
++*v16;
}
LABEL_5:
*a2 = a3;
return 0LL;
}
| bc_idx_to_atom:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RSI
TEST EDX,EDX
JS 0x00140fb0
MOV R14,RDI
MOV EAX,EDX
SUB EAX,dword ptr [RDI + 0x20]
JNC 0x00140fbc
CMP EDX,0xdf
JBE 0x00140fb0
LAB_00140f9d:
MOV RAX,qword ptr [R14]
MOV RAX,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RAX + 0x68]
MOV ECX,EDX
MOV RAX,qword ptr [RAX + RCX*0x8]
INC dword ptr [RAX]
LAB_00140fb0:
MOV dword ptr [RBX],EDX
XOR EAX,EAX
LAB_00140fb4:
ADD RSP,0x8
POP RBX
POP R14
RET
LAB_00140fbc:
CMP EAX,dword ptr [R14 + 0x24]
JNC 0x00140fd5
MOV RCX,qword ptr [R14 + 0x28]
MOV EAX,EAX
MOV EDX,dword ptr [RCX + RAX*0x4]
CMP EDX,0xe0
JGE 0x00140f9d
JMP 0x00140fb0
LAB_00140fd5:
MOV RDI,qword ptr [R14]
MOV EDX,dword ptr [R14 + 0x10]
SUB EDX,dword ptr [R14 + 0x8]
LEA RSI,[0x189b8d]
XOR EAX,EAX
CALL 0x0012016b
AND dword ptr [RBX],0x0
OR dword ptr [R14 + 0x30],0xffffffff
PUSH -0x1
POP RAX
JMP 0x00140fb4
|
int8 bc_idx_to_atom(long *param_1,uint *param_2,uint param_3)
{
int *piVar1;
uint uVar2;
if (-1 < (int)param_3) {
uVar2 = param_3 - *(uint *)(param_1 + 4);
if (param_3 < *(uint *)(param_1 + 4)) {
if (param_3 < 0xe0) goto LAB_00140fb0;
}
else {
if (*(uint *)((long)param_1 + 0x24) <= uVar2) {
JS_ThrowSyntaxError(*param_1,"invalid atom index (pos=%u)",(int)param_1[2] - (int)param_1[1]
);
*param_2 = 0;
*(int4 *)(param_1 + 6) = 0xffffffff;
return 0xffffffffffffffff;
}
param_3 = *(uint *)(param_1[5] + (ulong)uVar2 * 4);
if ((int)param_3 < 0xe0) goto LAB_00140fb0;
}
piVar1 = *(int **)(*(long *)(*(long *)(*param_1 + 0x18) + 0x68) + (ulong)param_3 * 8);
*piVar1 = *piVar1 + 1;
}
LAB_00140fb0:
*param_2 = param_3;
return 0;
}
| |
37,807 | minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const | monkey531[P]llama/common/minja.hpp | Value do_evaluate(const std::shared_ptr<Context> & context) const override {
if (!left) throw std::runtime_error("BinaryOpExpr.left is null");
if (!right) throw std::runtime_error("BinaryOpExpr.right is null");
auto l = left->evaluate(context);
auto do_eval = [&](const Value & l) -> Value {
if (op == Op::Is || op == Op::IsNot) {
auto t = dynamic_cast<VariableExpr*>(right.get());
if (!t) throw std::runtime_error("Right side of 'is' operator must be a variable");
auto eval = [&]() {
const auto & name = t->get_name();
if (name == "none") return l.is_null();
if (name == "boolean") return l.is_boolean();
if (name == "integer") return l.is_number_integer();
if (name == "float") return l.is_number_float();
if (name == "number") return l.is_number();
if (name == "string") return l.is_string();
if (name == "mapping") return l.is_object();
if (name == "iterable") return l.is_iterable();
if (name == "sequence") return l.is_array();
if (name == "defined") return !l.is_null();
throw std::runtime_error("Unknown type for 'is' operator: " + name);
};
auto value = eval();
return Value(op == Op::Is ? value : !value);
}
if (op == Op::And) {
if (!l.to_bool()) return Value(false);
return right->evaluate(context).to_bool();
} else if (op == Op::Or) {
if (l.to_bool()) return l;
return right->evaluate(context);
}
auto r = right->evaluate(context);
switch (op) {
case Op::StrConcat: return l.to_str() + r.to_str();
case Op::Add: return l + r;
case Op::Sub: return l - r;
case Op::Mul: return l * r;
case Op::Div: return l / r;
case Op::MulMul: return std::pow(l.get<double>(), r.get<double>());
case Op::DivDiv: return l.get<int64_t>() / r.get<int64_t>();
case Op::Mod: return l.get<int64_t>() % r.get<int64_t>();
case Op::Eq: return l == r;
case Op::Ne: return l != r;
case Op::Lt: return l < r;
case Op::Gt: return l > r;
case Op::Le: return l <= r;
case Op::Ge: return l >= r;
case Op::In: return (r.is_array() || r.is_object()) && r.contains(l);
case Op::NotIn: return !(r.is_array() && r.contains(l));
default: break;
}
throw std::runtime_error("Unknown binary operator");
};
if (l.is_callable()) {
return Value::callable([l, do_eval](const std::shared_ptr<Context> & context, ArgumentsValue & args) {
auto ll = l.call(context, args);
return do_eval(ll); //args[0].second);
});
} else {
return do_eval(l);
}
} | O0 | cpp | minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const:
subq $0x138, %rsp # imm = 0x138
movq %rdi, 0x10(%rsp)
movq %rdi, %rax
movq %rax, 0x18(%rsp)
movq %rdi, 0x130(%rsp)
movq %rsi, 0x128(%rsp)
movq %rdx, 0x120(%rsp)
movq 0x128(%rsp), %rdi
movq %rdi, 0x20(%rsp)
addq $0x20, %rdi
callq 0x10e0b0
testb $0x1, %al
jne 0x13c8d4
movl $0x10, %edi
callq 0x5d680
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x8(%rsp)
leaq 0xdd785(%rip), %rsi # 0x21a017
callq 0x5d460
jmp 0x13c899
movq 0x8(%rsp), %rdi
movq 0x17170b(%rip), %rsi # 0x2adfb0
movq 0x1716c4(%rip), %rdx # 0x2adf70
callq 0x5db00
movq 0x8(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x118(%rsp)
movl %eax, 0x114(%rsp)
callq 0x5df80
jmp 0x13cab1
movq 0x20(%rsp), %rdi
addq $0x30, %rdi
callq 0x10e0b0
testb $0x1, %al
jne 0x13c941
movl $0x10, %edi
callq 0x5d680
movq %rax, %rdi
movq %rdi, %rax
movq %rax, (%rsp)
leaq 0xdd730(%rip), %rsi # 0x21a031
callq 0x5d460
jmp 0x13c908
movq (%rsp), %rdi
movq 0x17169d(%rip), %rsi # 0x2adfb0
movq 0x171656(%rip), %rdx # 0x2adf70
callq 0x5db00
movq (%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x118(%rsp)
movl %eax, 0x114(%rsp)
callq 0x5df80
jmp 0x13cab1
movq 0x20(%rsp), %rdi
addq $0x20, %rdi
callq 0x1141e0
movq %rax, %rsi
movq 0x120(%rsp), %rdx
leaq 0xc0(%rsp), %rdi
callq 0x1141f0
movq 0x20(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq 0x120(%rsp), %rax
movq %rax, 0xb8(%rsp)
leaq 0xc0(%rsp), %rdi
callq 0x133e30
testb $0x1, %al
jne 0x13c99a
jmp 0x13ca66
leaq 0x30(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x123f60
jmp 0x13c9ae
movups 0xb0(%rsp), %xmm0
movups %xmm0, 0x80(%rsp)
leaq 0x90(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x13cbc0
jmp 0x13c9d2
movq 0x10(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x13cb40
jmp 0x13c9e6
leaq 0x90(%rsp), %rdi
callq 0x13cc70
leaq 0x30(%rsp), %rdi
callq 0x13cc80
movl $0x1, 0x2c(%rsp)
jmp 0x13ca8a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x118(%rsp)
movl %eax, 0x114(%rsp)
jmp 0x13caa4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x118(%rsp)
movl %eax, 0x114(%rsp)
jmp 0x13ca5a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x118(%rsp)
movl %eax, 0x114(%rsp)
leaq 0x90(%rsp), %rdi
callq 0x13cc70
leaq 0x30(%rsp), %rdi
callq 0x13cc80
jmp 0x13caa4
movq 0x10(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
callq 0x13cc90
jmp 0x13ca82
movl $0x1, 0x2c(%rsp)
leaq 0xc0(%rsp), %rdi
callq 0x114690
movq 0x18(%rsp), %rax
addq $0x138, %rsp # imm = 0x138
retq
leaq 0xc0(%rsp), %rdi
callq 0x114690
movq 0x118(%rsp), %rdi
callq 0x5dbc0
nop
| _ZNK5minja12BinaryOpExpr11do_evaluateERKSt10shared_ptrINS_7ContextEE:
sub rsp, 138h
mov [rsp+138h+var_128], rdi
mov rax, rdi
mov [rsp+138h+var_120], rax
mov [rsp+138h+var_8], rdi
mov [rsp+138h+var_10], rsi
mov [rsp+138h+var_18], rdx
mov rdi, [rsp+138h+var_10]
mov [rsp+138h+var_118], rdi
add rdi, 20h ; ' '
call _ZNKSt12__shared_ptrIN5minja10ExpressionELN9__gnu_cxx12_Lock_policyE2EEcvbEv; std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator bool(void)
test al, 1
jnz short loc_13C8D4
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rdi, rax; this
mov rax, rdi
mov [rsp+138h+var_130], rax
lea rsi, aBinaryopexprLe; "BinaryOpExpr.left is null"
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
jmp short $+2
loc_13C899:
mov rdi, [rsp+138h+var_130]; void *
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
call ___cxa_throw
mov rdi, [rsp+138h+var_130]; void *
mov rcx, rax
mov eax, edx
mov [rsp+138h+var_20], rcx
mov [rsp+138h+var_24], eax
call ___cxa_free_exception
jmp loc_13CAB1
loc_13C8D4:
mov rdi, [rsp+138h+var_118]
add rdi, 30h ; '0'
call _ZNKSt12__shared_ptrIN5minja10ExpressionELN9__gnu_cxx12_Lock_policyE2EEcvbEv; std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator bool(void)
test al, 1
jnz short loc_13C941
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rdi, rax; this
mov rax, rdi
mov [rsp+138h+var_138], rax
lea rsi, aBinaryopexprRi; "BinaryOpExpr.right is null"
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
jmp short $+2
loc_13C908:
mov rdi, [rsp+138h+var_138]; void *
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
call ___cxa_throw
mov rdi, [rsp+138h+var_138]; void *
mov rcx, rax
mov eax, edx
mov [rsp+138h+var_20], rcx
mov [rsp+138h+var_24], eax
call ___cxa_free_exception
jmp loc_13CAB1
loc_13C941:
mov rdi, [rsp+138h+var_118]
add rdi, 20h ; ' '
call _ZNKSt19__shared_ptr_accessIN5minja10ExpressionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<minja::Expression,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void)
mov rsi, rax
mov rdx, [rsp+138h+var_18]
lea rdi, [rsp+138h+var_78]
call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&)
mov rax, [rsp+138h+var_118]
mov qword ptr [rsp+138h+var_88], rax
mov rax, [rsp+138h+var_18]
mov qword ptr [rsp+138h+var_88+8], rax
lea rdi, [rsp+138h+var_78]; this
call _ZNK5minja5Value11is_callableEv; minja::Value::is_callable(void)
test al, 1
jnz short loc_13C99A
jmp loc_13CA66
loc_13C99A:
lea rdi, [rsp+138h+var_108]; this
lea rsi, [rsp+138h+var_78]; minja::Value *
call _ZN5minja5ValueC2ERKS0_; minja::Value::Value(minja::Value const&)
jmp short $+2
loc_13C9AE:
movups xmm0, [rsp+138h+var_88]
movups [rsp+138h+var_B8], xmm0
lea rdi, [rsp+138h+var_A8]
lea rsi, [rsp+138h+var_108]
call _ZNSt8functionIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERNS0_14ArgumentsValueEEEC2IZNKS0_12BinaryOpExpr11do_evaluateES6_EUlS6_S8_E_vEEOT_; std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>::function<minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&)::{lambda(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)#1},void>(minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&)::{lambda(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)#1} &&)
jmp short $+2
loc_13C9D2:
mov rdi, [rsp+138h+var_128]
lea rsi, [rsp+138h+var_A8]
call _ZN5minja5Value8callableERKSt8functionIFS0_RKSt10shared_ptrINS_7ContextEERNS_14ArgumentsValueEEE; minja::Value::callable(std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)> const&)
jmp short $+2
loc_13C9E6:
lea rdi, [rsp+138h+var_A8]
call _ZNSt8functionIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERNS0_14ArgumentsValueEEED2Ev; std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>::~function()
lea rdi, [rsp+138h+var_108]
call _ZZNK5minja12BinaryOpExpr11do_evaluateERKSt10shared_ptrINS_7ContextEEENUlS5_RNS_14ArgumentsValueEE_D2Ev; minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&)::{lambda(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)#1}::~ArgumentsValue()
mov [rsp+138h+var_10C], 1
jmp loc_13CA8A
mov rcx, rax
mov eax, edx
mov [rsp+138h+var_20], rcx
mov [rsp+138h+var_24], eax
jmp loc_13CAA4
mov rcx, rax
mov eax, edx
mov [rsp+138h+var_20], rcx
mov [rsp+138h+var_24], eax
jmp short loc_13CA5A
mov rcx, rax
mov eax, edx
mov [rsp+138h+var_20], rcx
mov [rsp+138h+var_24], eax
lea rdi, [rsp+138h+var_A8]
call _ZNSt8functionIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERNS0_14ArgumentsValueEEED2Ev; std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>::~function()
loc_13CA5A:
lea rdi, [rsp+138h+var_108]
call _ZZNK5minja12BinaryOpExpr11do_evaluateERKSt10shared_ptrINS_7ContextEEENUlS5_RNS_14ArgumentsValueEE_D2Ev; minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&)::{lambda(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)#1}::~ArgumentsValue()
jmp short loc_13CAA4
loc_13CA66:
mov rdi, [rsp+138h+var_128]
lea rsi, [rsp+138h+var_88]
lea rdx, [rsp+138h+var_78]
call _ZZNK5minja12BinaryOpExpr11do_evaluateERKSt10shared_ptrINS_7ContextEEENKUlRKNS_5ValueEE_clES8_; minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&)::{lambda(minja::Value const&)#1}::operator()(minja::Value const&)
jmp short $+2
loc_13CA82:
mov [rsp+138h+var_10C], 1
loc_13CA8A:
lea rdi, [rsp+138h+var_78]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
mov rax, [rsp+138h+var_120]
add rsp, 138h
retn
loc_13CAA4:
lea rdi, [rsp+138h+var_78]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
loc_13CAB1:
mov rdi, [rsp+138h+var_20]
call __Unwind_Resume
| long long minja::BinaryOpExpr::do_evaluate(long long a1, long long a2, long long a3)
{
void (***v3)(void); // rax
int v4; // edx
int v5; // ecx
int v6; // r8d
int v7; // r9d
int v8; // edx
int v9; // ecx
int v10; // r8d
int v11; // r9d
std::runtime_error *v13; // [rsp+0h] [rbp-138h]
std::runtime_error *exception; // [rsp+8h] [rbp-130h]
_BYTE v15[80]; // [rsp+30h] [rbp-108h] BYREF
__int128 v16; // [rsp+80h] [rbp-B8h]
_BYTE v17[32]; // [rsp+90h] [rbp-A8h] BYREF
__int128 v18; // [rsp+B0h] [rbp-88h]
_BYTE v19[84]; // [rsp+C0h] [rbp-78h] BYREF
long long v20; // [rsp+120h] [rbp-18h]
long long v21; // [rsp+128h] [rbp-10h]
long long v22; // [rsp+130h] [rbp-8h]
v22 = a1;
v21 = a2;
v20 = a3;
if ( !std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator bool((_QWORD *)(a2 + 32)) )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "BinaryOpExpr.left is null");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
if ( !std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator bool((_QWORD *)(a2 + 48)) )
{
v13 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(v13, "BinaryOpExpr.right is null");
__cxa_throw(
v13,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v3 = (void (***)(void))std::__shared_ptr_access<minja::Expression,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(a2 + 32);
minja::Expression::evaluate((long long)v19, v3);
*(_QWORD *)&v18 = a2;
*((_QWORD *)&v18 + 1) = v20;
if ( minja::Value::is_callable((minja::Value *)v19) )
{
minja::Value::Value((minja::Value *)v15, (const minja::Value *)v19);
v16 = v18;
std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>::function<minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&)::{lambda(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)#1},void>(
(unsigned int)v17,
(unsigned int)v15,
v4,
v5,
v6,
v7);
minja::Value::callable(a1, (unsigned int)v17, v8, v9, v10, v11);
std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>::~function(v17);
minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&)const::{lambda(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)#1}::~ArgumentsValue(v15);
}
else
{
minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&)const::{lambda(minja::Value const&)#1}::operator()(a1);
}
minja::Value::~Value((minja::Value *)v19);
return a1;
}
| |||
37,808 | minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const | monkey531[P]llama/common/minja.hpp | Value do_evaluate(const std::shared_ptr<Context> & context) const override {
if (!left) throw std::runtime_error("BinaryOpExpr.left is null");
if (!right) throw std::runtime_error("BinaryOpExpr.right is null");
auto l = left->evaluate(context);
auto do_eval = [&](const Value & l) -> Value {
if (op == Op::Is || op == Op::IsNot) {
auto t = dynamic_cast<VariableExpr*>(right.get());
if (!t) throw std::runtime_error("Right side of 'is' operator must be a variable");
auto eval = [&]() {
const auto & name = t->get_name();
if (name == "none") return l.is_null();
if (name == "boolean") return l.is_boolean();
if (name == "integer") return l.is_number_integer();
if (name == "float") return l.is_number_float();
if (name == "number") return l.is_number();
if (name == "string") return l.is_string();
if (name == "mapping") return l.is_object();
if (name == "iterable") return l.is_iterable();
if (name == "sequence") return l.is_array();
if (name == "defined") return !l.is_null();
throw std::runtime_error("Unknown type for 'is' operator: " + name);
};
auto value = eval();
return Value(op == Op::Is ? value : !value);
}
if (op == Op::And) {
if (!l.to_bool()) return Value(false);
return right->evaluate(context).to_bool();
} else if (op == Op::Or) {
if (l.to_bool()) return l;
return right->evaluate(context);
}
auto r = right->evaluate(context);
switch (op) {
case Op::StrConcat: return l.to_str() + r.to_str();
case Op::Add: return l + r;
case Op::Sub: return l - r;
case Op::Mul: return l * r;
case Op::Div: return l / r;
case Op::MulMul: return std::pow(l.get<double>(), r.get<double>());
case Op::DivDiv: return l.get<int64_t>() / r.get<int64_t>();
case Op::Mod: return l.get<int64_t>() % r.get<int64_t>();
case Op::Eq: return l == r;
case Op::Ne: return l != r;
case Op::Lt: return l < r;
case Op::Gt: return l > r;
case Op::Le: return l <= r;
case Op::Ge: return l >= r;
case Op::In: return (r.is_array() || r.is_object()) && r.contains(l);
case Op::NotIn: return !(r.is_array() && r.contains(l));
default: break;
}
throw std::runtime_error("Unknown binary operator");
};
if (l.is_callable()) {
return Value::callable([l, do_eval](const std::shared_ptr<Context> & context, ArgumentsValue & args) {
auto ll = l.call(context, args);
return do_eval(ll); //args[0].second);
});
} else {
return do_eval(l);
}
} | O2 | cpp | minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rsi, %r15
movq 0x20(%rsi), %rsi
testq %rsi, %rsi
je 0x6fab5
cmpq $0x0, 0x30(%r15)
je 0x6fad1
movq %rdx, %r14
movq %rdi, %rbx
leaq 0x38(%rsp), %r12
movq %r12, %rdi
callq 0x62ea2
movq %r15, 0x8(%rsp)
movq %r14, 0x10(%rsp)
cmpq $0x0, 0x30(%r12)
je 0x6fa87
leaq 0x88(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x68b08
movups 0x8(%rsp), %xmm0
leaq 0x88(%rsp), %rsi
movups %xmm0, 0x50(%rsi)
leaq 0x18(%rsp), %rdi
callq 0x6fbd8
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0x6fb8c
leaq 0x18(%rsp), %rdi
callq 0x47f7a
leaq 0x88(%rsp), %rdi
callq 0x63132
jmp 0x6fa99
leaq 0x8(%rsp), %rsi
leaq 0x38(%rsp), %rdx
movq %rbx, %rdi
callq 0x6fc20
leaq 0x38(%rsp), %rdi
callq 0x63132
movq %rbx, %rax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
pushq $0x10
popq %rdi
callq 0x24460
movq %rax, %r14
leaq 0x46b69(%rip), %rsi # 0xb6630
movq %rax, %rdi
callq 0x24320
jmp 0x6faeb
pushq $0x10
popq %rdi
callq 0x24460
movq %rax, %r14
leaq 0x46b67(%rip), %rsi # 0xb664a
movq %rax, %rdi
callq 0x24320
movq 0x904fe(%rip), %rsi # 0xffff0
movq 0x90457(%rip), %rdx # 0xfff50
movq %r14, %rdi
callq 0x24ee0
jmp 0x6fb33
jmp 0x6fb05
movq %rax, %rbx
movq %r14, %rdi
callq 0x24670
jmp 0x6fb40
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x47f7a
jmp 0x6fb24
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x63132
jmp 0x6fb36
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x63132
movq %rbx, %rdi
callq 0x24f60
| _ZNK5minja12BinaryOpExpr11do_evaluateERKSt10shared_ptrINS_7ContextEE:
push r15
push r14
push r12
push rbx
sub rsp, 0E8h
mov r15, rsi
mov rsi, [rsi+20h]
test rsi, rsi
jz loc_6FAB5
cmp qword ptr [r15+30h], 0
jz loc_6FAD1
mov r14, rdx
mov rbx, rdi
lea r12, [rsp+108h+var_D0]
mov rdi, r12
call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&)
mov qword ptr [rsp+108h+var_100], r15
mov qword ptr [rsp+108h+var_100+8], r14
cmp qword ptr [r12+30h], 0
jz short loc_6FA87
lea rdi, [rsp+108h+var_80]; this
lea rsi, [rsp+108h+var_D0]; minja::Value *
call _ZN5minja5ValueC2ERKS0_; minja::Value::Value(minja::Value const&)
movups xmm0, [rsp+108h+var_100]
lea rsi, [rsp+108h+var_80]
movups xmmword ptr [rsi+50h], xmm0
lea rdi, [rsp+108h+var_F0]
call _ZNSt8functionIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERNS0_14ArgumentsValueEEEC2IZNKS0_12BinaryOpExpr11do_evaluateES6_EUlS6_S8_E_vEEOT_; std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>::function<minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&)::{lambda(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)#1},void>(minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&)::{lambda(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)#1} &&)
lea rsi, [rsp+108h+var_F0]
mov rdi, rbx
call _ZN5minja5Value8callableERKSt8functionIFS0_RKSt10shared_ptrINS_7ContextEERNS_14ArgumentsValueEEE; minja::Value::callable(std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)> const&)
lea rdi, [rsp+108h+var_F0]; this
call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base()
lea rdi, [rsp+108h+var_80]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
jmp short loc_6FA99
loc_6FA87:
lea rsi, [rsp+108h+var_100]
lea rdx, [rsp+108h+var_D0]
mov rdi, rbx; this
call _ZZNK5minja12BinaryOpExpr11do_evaluateERKSt10shared_ptrINS_7ContextEEENKUlRKNS_5ValueEE_clES8_; minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&)::{lambda(minja::Value const&)#1}::operator()(minja::Value const&)
loc_6FA99:
lea rdi, [rsp+108h+var_D0]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
mov rax, rbx
add rsp, 0E8h
pop rbx
pop r12
pop r14
pop r15
retn
loc_6FAB5:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aBinaryopexprLe; "BinaryOpExpr.left is null"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
jmp short loc_6FAEB
loc_6FAD1:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aBinaryopexprRi; "BinaryOpExpr.right is null"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
loc_6FAEB:
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
jmp short loc_6FB33
jmp short $+2
loc_6FB05:
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_6FB40
mov rbx, rax
lea rdi, [rsp+108h+var_F0]; this
call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base()
jmp short loc_6FB24
mov rbx, rax
loc_6FB24:
lea rdi, [rsp+108h+var_80]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
jmp short loc_6FB36
loc_6FB33:
mov rbx, rax
loc_6FB36:
lea rdi, [rsp+108h+var_D0]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
loc_6FB40:
mov rdi, rbx
call __Unwind_Resume
| minja::Value * minja::BinaryOpExpr::do_evaluate(minja::Value *this, long long a2, long long a3)
{
void (***v4)(void); // rsi
int v6; // edx
int v7; // ecx
int v8; // r8d
int v9; // r9d
std::runtime_error *exception; // r14
__int128 v12; // [rsp+8h] [rbp-100h]
_BYTE v13[32]; // [rsp+18h] [rbp-F0h] BYREF
_BYTE v14[48]; // [rsp+38h] [rbp-D0h] BYREF
long long v15; // [rsp+68h] [rbp-A0h]
_BYTE v16[80]; // [rsp+88h] [rbp-80h] BYREF
__int128 v17; // [rsp+D8h] [rbp-30h]
v4 = *(void (****)(void))(a2 + 32);
if ( !v4 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "BinaryOpExpr.left is null");
goto LABEL_9;
}
if ( !*(_QWORD *)(a2 + 48) )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "BinaryOpExpr.right is null");
LABEL_9:
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
minja::Expression::evaluate((long long)v14, v4);
*(_QWORD *)&v12 = a2;
*((_QWORD *)&v12 + 1) = a3;
if ( v15 )
{
minja::Value::Value((minja::Value *)v16, (const minja::Value *)v14);
v17 = v12;
std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>::function<minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&)::{lambda(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)#1},void>(v13);
minja::Value::callable((_DWORD)this, (unsigned int)v13, v6, v7, v8, v9);
std::_Function_base::~_Function_base((std::_Function_base *)v13);
minja::Value::~Value((minja::Value *)v16);
}
else
{
minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&)const::{lambda(minja::Value const&)#1}::operator()(this);
}
minja::Value::~Value((minja::Value *)v14);
return this;
}
| do_evaluate:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0xe8
MOV R15,RSI
MOV RSI,qword ptr [RSI + 0x20]
TEST RSI,RSI
JZ 0x0016fab5
CMP qword ptr [R15 + 0x30],0x0
JZ 0x0016fad1
MOV R14,RDX
MOV RBX,RDI
LEA R12,[RSP + 0x38]
MOV RDI,R12
CALL 0x00162ea2
MOV qword ptr [RSP + 0x8],R15
MOV qword ptr [RSP + 0x10],R14
CMP qword ptr [R12 + 0x30],0x0
JZ 0x0016fa87
LAB_0016fa34:
LEA RDI,[RSP + 0x88]
LEA RSI,[RSP + 0x38]
CALL 0x00168b08
MOVUPS XMM0,xmmword ptr [RSP + 0x8]
LEA RSI,[RSP + 0x88]
MOVUPS xmmword ptr [RSI + 0x50],XMM0
LAB_0016fa57:
LEA RDI,[RSP + 0x18]
CALL 0x0016fbd8
LAB_0016fa61:
LEA RSI,[RSP + 0x18]
MOV RDI,RBX
CALL 0x0016fb8c
LEA RDI,[RSP + 0x18]
CALL 0x00147f7a
LEA RDI,[RSP + 0x88]
CALL 0x00163132
JMP 0x0016fa99
LAB_0016fa87:
LEA RSI,[RSP + 0x8]
LEA RDX,[RSP + 0x38]
MOV RDI,RBX
CALL 0x0016fc20
LAB_0016fa99:
LEA RDI,[RSP + 0x38]
CALL 0x00163132
MOV RAX,RBX
ADD RSP,0xe8
POP RBX
POP R12
POP R14
POP R15
RET
LAB_0016fab5:
PUSH 0x10
POP RDI
CALL 0x00124460
MOV R14,RAX
LAB_0016fac0:
LEA RSI,[0x1b6630]
MOV RDI,RAX
CALL 0x00124320
LAB_0016facf:
JMP 0x0016faeb
LAB_0016fad1:
PUSH 0x10
POP RDI
CALL 0x00124460
MOV R14,RAX
LAB_0016fadc:
LEA RSI,[0x1b664a]
MOV RDI,RAX
CALL 0x00124320
LAB_0016faeb:
MOV RSI,qword ptr [0x001ffff0]
MOV RDX,qword ptr [0x001fff50]
MOV RDI,R14
CALL 0x00124ee0
|
/* minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const */
shared_ptr * minja::BinaryOpExpr::do_evaluate(shared_ptr *param_1)
{
runtime_error *this;
int8 in_RDX;
long in_RSI;
long local_100;
int8 uStack_f8;
_lambda_std__shared_ptr<minja::Context>_const__minja__ArgumentsValue___1_ local_f0 [32];
Expression local_d0 [48];
long local_a0;
Value local_80 [80];
long local_30;
int8 uStack_28;
if (*(shared_ptr **)(in_RSI + 0x20) == (shared_ptr *)0x0) {
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0016fac0 to 0016face has its CatchHandler @ 0016fb05 */
std::runtime_error::runtime_error(this,"BinaryOpExpr.left is null");
}
else {
if (*(long *)(in_RSI + 0x30) != 0) {
Expression::evaluate(local_d0,*(shared_ptr **)(in_RSI + 0x20));
if (local_a0 == 0) {
/* try { // try from 0016fa87 to 0016fa98 has its CatchHandler @ 0016fb01 */
const::{lambda(minja::Value_const&)#1}::operator()
((_lambda_minja__Value_const___1_ *)param_1,(Value *)&local_100);
}
else {
/* try { // try from 0016fa34 to 0016fa45 has its CatchHandler @ 0016fb33 */
local_100 = in_RSI;
uStack_f8 = in_RDX;
Value::Value(local_80,(Value *)local_d0);
local_30 = local_100;
uStack_28 = uStack_f8;
/* try { // try from 0016fa57 to 0016fa60 has its CatchHandler @ 0016fb21 */
std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&)>::
function<minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context>const&)const::_lambda(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&)_1_,void>
(local_f0);
/* try { // try from 0016fa61 to 0016fa6d has its CatchHandler @ 0016fb12 */
Value::callable(param_1);
std::_Function_base::~_Function_base((_Function_base *)local_f0);
Value::~Value(local_80);
}
Value::~Value((Value *)local_d0);
return param_1;
}
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0016fadc to 0016faea has its CatchHandler @ 0016fb03 */
std::runtime_error::runtime_error(this,"BinaryOpExpr.right is null");
}
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_001ffff0,PTR__runtime_error_001fff50);
}
| |
37,809 | fini_one_value | eloqsql/mysys/my_getopt.c | static void fini_one_value(const struct my_option *option, void *variable,
longlong value __attribute__ ((unused)))
{
DBUG_ENTER("fini_one_value");
switch ((option->var_type & GET_TYPE_MASK)) {
case GET_STR_ALLOC:
my_free(*((char**) variable));
*((char**) variable)= NULL;
break;
default: /* dummy default to avoid compiler warnings */
break;
}
DBUG_VOID_RETURN;
} | O3 | c | fini_one_value:
movl 0x30(%rdi), %eax
andl $0x3f, %eax
cmpl $0xa, %eax
jne 0x29730
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq (%rsi), %rdi
callq 0x2afd2
movq $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| fini_one_value:
mov eax, [rdi+30h]
and eax, 3Fh
cmp eax, 0Ah
jnz short locret_29730
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rsi
mov rdi, [rsi]
call my_free
mov qword ptr [rbx], 0
add rsp, 8
pop rbx
pop rbp
locret_29730:
retn
| long long fini_one_value(long long a1, _QWORD *a2)
{
long long result; // rax
result = *(_DWORD *)(a1 + 48) & 0x3F;
if ( (_DWORD)result == 10 )
{
result = my_free(*a2);
*a2 = 0LL;
}
return result;
}
| fini_one_value:
MOV EAX,dword ptr [RDI + 0x30]
AND EAX,0x3f
CMP EAX,0xa
JNZ 0x00129730
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV RDI,qword ptr [RSI]
CALL 0x0012afd2
MOV qword ptr [RBX],0x0
ADD RSP,0x8
POP RBX
POP RBP
LAB_00129730:
RET
|
void fini_one_value(long param_1,int8 *param_2)
{
if ((*(uint *)(param_1 + 0x30) & 0x3f) == 10) {
my_free(*param_2);
*param_2 = 0;
}
return;
}
| |
37,810 | js_thisBooleanValue | bluesky950520[P]quickjs/quickjs.c | static JSValue js_thisBooleanValue(JSContext *ctx, JSValue this_val)
{
if (JS_VALUE_GET_TAG(this_val) == JS_TAG_BOOL)
return js_dup(this_val);
if (JS_VALUE_GET_TAG(this_val) == JS_TAG_OBJECT) {
JSObject *p = JS_VALUE_GET_OBJ(this_val);
if (p->class_id == JS_CLASS_BOOLEAN) {
if (JS_VALUE_GET_TAG(p->u.object_data) == JS_TAG_BOOL)
return p->u.object_data;
}
}
return JS_ThrowTypeError(ctx, "not a boolean");
} | O1 | c | js_thisBooleanValue:
pushq %rbx
subq $0x10, %rsp
movq %rsi, (%rsp)
cmpl $-0x1, %edx
je 0x79c3e
cmpl $0x1, %edx
jne 0x79c60
movq %rsi, %rbx
movq %rsi, 0x8(%rsp)
cmpl $-0x9, %edx
jb 0x79c75
movq 0x8(%rsp), %rax
incl (%rax)
jmp 0x79c75
movq (%rsp), %rcx
movb $0x1, %al
cmpw $0x6, 0x6(%rcx)
jne 0x79c5c
movq 0x38(%rcx), %rdx
cmpl $0x1, %edx
jne 0x79c5c
movq 0x30(%rcx), %rbx
xorl %eax, %eax
jmp 0x79c5c
testb %al, %al
je 0x79c75
leaq 0x26cab(%rip), %rsi # 0xa0912
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x21953
movl $0x6, %edx
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
retq
| js_thisBooleanValue:
push rbx
sub rsp, 10h
mov [rsp+18h+var_18], rsi
cmp edx, 0FFFFFFFFh
jz short loc_79C3E
cmp edx, 1
jnz short loc_79C60
mov rbx, rsi
mov [rsp+18h+var_10], rsi
cmp edx, 0FFFFFFF7h
jb short loc_79C75
mov rax, [rsp+18h+var_10]
inc dword ptr [rax]
jmp short loc_79C75
loc_79C3E:
mov rcx, [rsp+18h+var_18]
mov al, 1
cmp word ptr [rcx+6], 6
jnz short loc_79C5C
mov rdx, [rcx+38h]
cmp edx, 1
jnz short loc_79C5C
mov rbx, [rcx+30h]
xor eax, eax
jmp short $+2
loc_79C5C:
test al, al
jz short loc_79C75
loc_79C60:
lea rsi, aNotABoolean; "not a boolean"
xor ebx, ebx
xor eax, eax
call JS_ThrowTypeError
mov edx, 6
loc_79C75:
mov rax, rbx
add rsp, 10h
pop rbx
retn
| long long js_thisBooleanValue(
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)
{
long long v14; // rbx
char v15; // al
if ( (_DWORD)a3 != -1 )
{
if ( (_DWORD)a3 == 1 )
return a2;
LABEL_8:
v14 = 0LL;
JS_ThrowTypeError(a1, (long long)"not a boolean", a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a2);
return v14;
}
a4 = a2;
v15 = 1;
if ( *(_WORD *)(a2 + 6) == 6 )
{
a3 = *(_QWORD *)(a2 + 56);
if ( (_DWORD)a3 == 1 )
{
v14 = *(_QWORD *)(a2 + 48);
v15 = 0;
}
}
if ( v15 )
goto LABEL_8;
return v14;
}
| js_thisBooleanValue:
PUSH RBX
SUB RSP,0x10
MOV qword ptr [RSP],RSI
CMP EDX,-0x1
JZ 0x00179c3e
CMP EDX,0x1
JNZ 0x00179c60
MOV RBX,RSI
MOV qword ptr [RSP + 0x8],RSI
CMP EDX,-0x9
JC 0x00179c75
MOV RAX,qword ptr [RSP + 0x8]
INC dword ptr [RAX]
JMP 0x00179c75
LAB_00179c3e:
MOV RCX,qword ptr [RSP]
MOV AL,0x1
CMP word ptr [RCX + 0x6],0x6
JNZ 0x00179c5c
MOV RDX,qword ptr [RCX + 0x38]
CMP EDX,0x1
JNZ 0x00179c5c
MOV RBX,qword ptr [RCX + 0x30]
XOR EAX,EAX
JMP 0x00179c5c
LAB_00179c5c:
TEST AL,AL
JZ 0x00179c75
LAB_00179c60:
LEA RSI,[0x1a0912]
XOR EBX,EBX
XOR EAX,EAX
CALL 0x00121953
MOV EDX,0x6
LAB_00179c75:
MOV RAX,RBX
ADD RSP,0x10
POP RBX
RET
|
/* WARNING: Removing unreachable block (ram,0x00179c35) */
int1 [16] js_thisBooleanValue(int8 param_1,long param_2,int8 param_3)
{
bool bVar1;
long unaff_RBX;
int1 auVar2 [16];
if ((int)param_3 == -1) {
bVar1 = true;
if ((*(short *)(param_2 + 6) == 6) &&
(param_3 = *(int8 *)(param_2 + 0x38), (int)param_3 == 1)) {
unaff_RBX = *(long *)(param_2 + 0x30);
bVar1 = false;
}
param_2 = unaff_RBX;
if (!bVar1) goto LAB_00179c75;
}
else if ((int)param_3 == 1) goto LAB_00179c75;
JS_ThrowTypeError(param_1,"not a boolean");
param_3 = 6;
param_2 = 0;
LAB_00179c75:
auVar2._8_8_ = param_3;
auVar2._0_8_ = param_2;
return auVar2;
}
| |
37,811 | js_thisBooleanValue | bluesky950520[P]quickjs/quickjs.c | static JSValue js_thisBooleanValue(JSContext *ctx, JSValue this_val)
{
if (JS_VALUE_GET_TAG(this_val) == JS_TAG_BOOL)
return js_dup(this_val);
if (JS_VALUE_GET_TAG(this_val) == JS_TAG_OBJECT) {
JSObject *p = JS_VALUE_GET_OBJ(this_val);
if (p->class_id == JS_CLASS_BOOLEAN) {
if (JS_VALUE_GET_TAG(p->u.object_data) == JS_TAG_BOOL)
return p->u.object_data;
}
}
return JS_ThrowTypeError(ctx, "not a boolean");
} | O3 | c | js_thisBooleanValue:
pushq %rbx
movq %rsi, %rbx
cmpl $0x1, %edx
je 0x7c57d
cmpl $-0x1, %edx
jne 0x7c568
cmpw $0x6, 0x6(%rbx)
jne 0x7c568
movq 0x38(%rbx), %rdx
cmpl $0x1, %edx
jne 0x7c568
movq 0x30(%rbx), %rbx
jmp 0x7c57d
leaq 0x2735d(%rip), %rsi # 0xa38cc
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x2214f
movl $0x6, %edx
movq %rbx, %rax
popq %rbx
retq
| js_thisBooleanValue:
push rbx
mov rbx, rsi
cmp edx, 1
jz short loc_7C57D
cmp edx, 0FFFFFFFFh
jnz short loc_7C568
cmp word ptr [rbx+6], 6
jnz short loc_7C568
mov rdx, [rbx+38h]
cmp edx, 1
jnz short loc_7C568
mov rbx, [rbx+30h]
jmp short loc_7C57D
loc_7C568:
lea rsi, aNotABoolean; "not a boolean"
xor ebx, ebx
xor eax, eax
call JS_ThrowTypeError
mov edx, 6
loc_7C57D:
mov rax, rbx
pop rbx
retn
| long long js_thisBooleanValue(
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)
{
long long v14; // rbx
char v16; // [rsp+0h] [rbp-8h]
v14 = a2;
if ( (_DWORD)a3 != 1 )
{
if ( (_DWORD)a3 == -1 && *(_WORD *)(a2 + 6) == 6 && (a3 = *(_QWORD *)(a2 + 56), (_DWORD)a3 == 1) )
{
return *(_QWORD *)(a2 + 48);
}
else
{
v14 = 0LL;
JS_ThrowTypeError(a1, (long long)"not a boolean", a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v16);
}
}
return v14;
}
| js_thisBooleanValue:
PUSH RBX
MOV RBX,RSI
CMP EDX,0x1
JZ 0x0017c57d
CMP EDX,-0x1
JNZ 0x0017c568
CMP word ptr [RBX + 0x6],0x6
JNZ 0x0017c568
MOV RDX,qword ptr [RBX + 0x38]
CMP EDX,0x1
JNZ 0x0017c568
MOV RBX,qword ptr [RBX + 0x30]
JMP 0x0017c57d
LAB_0017c568:
LEA RSI,[0x1a38cc]
XOR EBX,EBX
XOR EAX,EAX
CALL 0x0012214f
MOV EDX,0x6
LAB_0017c57d:
MOV RAX,RBX
POP RBX
RET
|
int1 [16] js_thisBooleanValue(int8 param_1,long param_2,int8 param_3)
{
int1 auVar1 [16];
if ((int)param_3 != 1) {
if ((((int)param_3 == -1) && (*(short *)(param_2 + 6) == 6)) &&
(param_3 = *(int8 *)(param_2 + 0x38), (int)param_3 == 1)) {
param_2 = *(long *)(param_2 + 0x30);
}
else {
param_2 = 0;
JS_ThrowTypeError(param_1,"not a boolean");
param_3 = 6;
}
}
auVar1._8_8_ = param_3;
auVar1._0_8_ = param_2;
return auVar1;
}
| |
37,812 | coro::shared_mutex<coro::thread_pool>::try_lock_shared() | AlayaLite/build_O3/_deps/libcoro-src/include/coro/shared_mutex.hpp | auto try_lock_shared() -> bool
{
// To acquire the shared lock the state must be one of two states:
// 1) unlocked
// 2) shared locked with zero exclusive waiters
// Zero exclusive waiters prevents exclusive starvation if shared locks are
// always continuously happening.
std::unique_lock lk{m_mutex};
return try_lock_shared_locked(lk);
} | O3 | cpp | coro::shared_mutex<coro::thread_pool>::try_lock_shared():
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
leaq 0x8(%rsp), %r14
movq %rax, (%r14)
movb $0x0, 0x8(%r14)
movq %r14, %rdi
callq 0x2e99c
movb $0x1, 0x8(%r14)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x34018
movl %eax, %ebx
leaq 0x8(%rsp), %rdi
callq 0x2e986
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2e986
movq %rbx, %rdi
callq 0x17740
| _ZN4coro12shared_mutexINS_11thread_poolEE15try_lock_sharedEv:
push r14
push rbx
sub rsp, 18h
mov rbx, rdi
lea rax, [rdi+10h]
lea r14, [rsp+28h+var_20]
mov [r14], rax
mov byte ptr [r14+8], 0
mov rdi, r14
call _ZNSt11unique_lockISt5mutexE4lockEv; std::unique_lock<std::mutex>::lock(void)
mov byte ptr [r14+8], 1
mov rdi, rbx
mov rsi, r14
call _ZN4coro12shared_mutexINS_11thread_poolEE22try_lock_shared_lockedERSt11unique_lockISt5mutexE; coro::shared_mutex<coro::thread_pool>::try_lock_shared_locked(std::unique_lock<std::mutex> &)
mov ebx, eax
lea rdi, [rsp+28h+var_20]
call _ZNSt11unique_lockISt5mutexED2Ev; std::unique_lock<std::mutex>::~unique_lock()
mov eax, ebx
add rsp, 18h
pop rbx
pop r14
retn
mov rbx, rax
lea rdi, [rsp+arg_0]
call _ZNSt11unique_lockISt5mutexED2Ev; std::unique_lock<std::mutex>::~unique_lock()
mov rdi, rbx
call __Unwind_Resume
| long long coro::shared_mutex<coro::thread_pool>::try_lock_shared(long long a1)
{
unsigned int v1; // ebx
long long v3; // [rsp+8h] [rbp-20h] BYREF
char v4; // [rsp+10h] [rbp-18h]
v3 = a1 + 16;
v4 = 0;
std::unique_lock<std::mutex>::lock(&v3);
v4 = 1;
v1 = coro::shared_mutex<coro::thread_pool>::try_lock_shared_locked(a1, &v3);
std::unique_lock<std::mutex>::~unique_lock((long long)&v3);
return v1;
}
| try_lock_shared:
PUSH R14
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
LEA RAX,[RDI + 0x10]
LEA R14,[RSP + 0x8]
MOV qword ptr [R14],RAX
MOV byte ptr [R14 + 0x8],0x0
MOV RDI,R14
CALL 0x0012e99c
MOV byte ptr [R14 + 0x8],0x1
LAB_00133fe2:
MOV RDI,RBX
MOV RSI,R14
CALL 0x00134018
LAB_00133fed:
MOV EBX,EAX
LEA RDI,[RSP + 0x8]
CALL 0x0012e986
MOV EAX,EBX
ADD RSP,0x18
POP RBX
POP R14
RET
|
/* coro::shared_mutex<coro::thread_pool>::try_lock_shared() */
int4 __thiscall
coro::shared_mutex<coro::thread_pool>::try_lock_shared(shared_mutex<coro::thread_pool> *this)
{
int4 uVar1;
shared_mutex<coro::thread_pool> *local_20;
int1 local_18;
local_20 = this + 0x10;
local_18 = 0;
std::unique_lock<std::mutex>::lock((unique_lock<std::mutex> *)&local_20);
local_18 = 1;
/* try { // try from 00133fe2 to 00133fec has its CatchHandler @ 00134003 */
uVar1 = try_lock_shared_locked(this,(unique_lock *)&local_20);
std::unique_lock<std::mutex>::~unique_lock((unique_lock<std::mutex> *)&local_20);
return uVar1;
}
| |
37,813 | pvio_socket_async_write | eloqsql/libmariadb/plugins/pvio/pvio_socket.c | ssize_t pvio_socket_async_write(MARIADB_PVIO *pvio, const uchar *buffer, size_t length)
{
ssize_t r= -1;
struct st_pvio_socket *csock= NULL;
#ifndef _WIN32
int write_flags= MSG_DONTWAIT;
#ifdef MSG_NOSIGNAL
write_flags|= MSG_NOSIGNAL;
#endif
#endif
if (!pvio || !pvio->data)
return -1;
csock= (struct st_pvio_socket *)pvio->data;
#ifndef WIN32
r= ma_send(csock->socket, buffer, length, write_flags);
#else
/* Windows doesn't support MSG_DONTWAIT, so we need to set
socket to non blocking */
pvio_socket_blocking(pvio, 0, 0);
r= send(csock->socket, (const char *)buffer, (int)length, 0);
#endif
return r;
} | O0 | c | pvio_socket_async_write:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq $-0x1, -0x28(%rbp)
movq $0x0, -0x30(%rbp)
movl $0x40, -0x34(%rbp)
movl -0x34(%rbp), %eax
orl $0x4000, %eax # imm = 0x4000
movl %eax, -0x34(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x46d17
movq -0x10(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x46d21
movq $-0x1, -0x8(%rbp)
jmp 0x46d4e
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movl (%rax), %edi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movl -0x34(%rbp), %ecx
callq 0x48190
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| pvio_socket_async_write:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], 0FFFFFFFFFFFFFFFFh
mov [rbp+var_30], 0
mov [rbp+var_34], 40h ; '@'
mov eax, [rbp+var_34]
or eax, 4000h
mov [rbp+var_34], eax
cmp [rbp+var_10], 0
jz short loc_46D17
mov rax, [rbp+var_10]
cmp qword ptr [rax], 0
jnz short loc_46D21
loc_46D17:
mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh
jmp short loc_46D4E
loc_46D21:
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_30], rax
mov rax, [rbp+var_30]
mov edi, [rax]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
mov ecx, [rbp+var_34]
call ma_send
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
mov [rbp+var_8], rax
loc_46D4E:
mov rax, [rbp+var_8]
add rsp, 40h
pop rbp
retn
| long long pvio_socket_async_write(_QWORD *a1, long long a2, long long a3)
{
if ( a1 && *a1 )
return ma_send(*(unsigned int *)*a1, a2, a3, 16448LL);
else
return -1LL;
}
| pvio_socket_async_write:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],-0x1
MOV qword ptr [RBP + -0x30],0x0
MOV dword ptr [RBP + -0x34],0x40
MOV EAX,dword ptr [RBP + -0x34]
OR EAX,0x4000
MOV dword ptr [RBP + -0x34],EAX
CMP qword ptr [RBP + -0x10],0x0
JZ 0x00146d17
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX],0x0
JNZ 0x00146d21
LAB_00146d17:
MOV qword ptr [RBP + -0x8],-0x1
JMP 0x00146d4e
LAB_00146d21:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV EDI,dword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RBP + -0x34]
CALL 0x00148190
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x8],RAX
LAB_00146d4e:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x40
POP RBP
RET
|
int8 pvio_socket_async_write(long *param_1,int8 param_2,int8 param_3)
{
int8 local_10;
if ((param_1 == (long *)0x0) || (*param_1 == 0)) {
local_10 = 0xffffffffffffffff;
}
else {
local_10 = ma_send(*(int4 *)*param_1,param_2,param_3,0x4040);
}
return local_10;
}
| |
37,814 | pvio_socket_async_write | eloqsql/libmariadb/plugins/pvio/pvio_socket.c | ssize_t pvio_socket_async_write(MARIADB_PVIO *pvio, const uchar *buffer, size_t length)
{
ssize_t r= -1;
struct st_pvio_socket *csock= NULL;
#ifndef _WIN32
int write_flags= MSG_DONTWAIT;
#ifdef MSG_NOSIGNAL
write_flags|= MSG_NOSIGNAL;
#endif
#endif
if (!pvio || !pvio->data)
return -1;
csock= (struct st_pvio_socket *)pvio->data;
#ifndef WIN32
r= ma_send(csock->socket, buffer, length, write_flags);
#else
/* Windows doesn't support MSG_DONTWAIT, so we need to set
socket to non blocking */
pvio_socket_blocking(pvio, 0, 0);
r= send(csock->socket, (const char *)buffer, (int)length, 0);
#endif
return r;
} | O3 | c | pvio_socket_async_write:
pushq %rbp
movq %rsp, %rbp
testq %rdi, %rdi
je 0x3246b
movq (%rdi), %rax
testq %rax, %rax
je 0x3246b
movl (%rax), %edi
popq %rbp
jmp 0x32fbb
movq $-0x1, %rax
popq %rbp
retq
| pvio_socket_async_write:
push rbp
mov rbp, rsp
test rdi, rdi
jz short loc_3246B
mov rax, [rdi]
test rax, rax
jz short loc_3246B
mov edi, [rax]
pop rbp
jmp ma_send
loc_3246B:
mov rax, 0FFFFFFFFFFFFFFFFh
pop rbp
retn
| long long pvio_socket_async_write(_QWORD *a1, long long a2, long long a3)
{
if ( a1 && *a1 )
return ma_send(*(unsigned int *)*a1, a2, a3);
else
return -1LL;
}
| pvio_socket_async_write:
PUSH RBP
MOV RBP,RSP
TEST RDI,RDI
JZ 0x0013246b
MOV RAX,qword ptr [RDI]
TEST RAX,RAX
JZ 0x0013246b
MOV EDI,dword ptr [RAX]
POP RBP
JMP 0x00132fbb
LAB_0013246b:
MOV RAX,-0x1
POP RBP
RET
|
int8 pvio_socket_async_write(int8 *param_1)
{
int8 uVar1;
if ((param_1 != (int8 *)0x0) && ((int4 *)*param_1 != (int4 *)0x0)) {
uVar1 = ma_send(*(int4 *)*param_1);
return uVar1;
}
return 0xffffffffffffffff;
}
| |
37,815 | list_reverse | eloqsql/libmariadb/libmariadb/ma_list.c | LIST *list_reverse(LIST *root)
{
LIST *last;
last=root;
while (root)
{
last=root;
root=root->next;
last->next=last->prev;
last->prev=root;
}
return last;
} | O0 | c | list_reverse:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x2ade7
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x8(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
jmp 0x2adb0
movq -0x10(%rbp), %rax
popq %rbp
retq
nopl (%rax)
| list_reverse:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov [rbp+var_10], rax
loc_2ADB0:
cmp [rbp+var_8], 0
jz short loc_2ADE7
mov rax, [rbp+var_8]
mov [rbp+var_10], rax
mov rax, [rbp+var_8]
mov rax, [rax+8]
mov [rbp+var_8], rax
mov rax, [rbp+var_10]
mov rcx, [rax]
mov rax, [rbp+var_10]
mov [rax+8], rcx
mov rcx, [rbp+var_8]
mov rax, [rbp+var_10]
mov [rax], rcx
jmp short loc_2ADB0
loc_2ADE7:
mov rax, [rbp+var_10]
pop rbp
retn
| _QWORD * list_reverse(_QWORD *a1)
{
_QWORD *v2; // [rsp+0h] [rbp-10h]
_QWORD *v3; // [rsp+8h] [rbp-8h]
v3 = a1;
v2 = a1;
while ( v3 )
{
v2 = v3;
v3 = (_QWORD *)v3[1];
v2[1] = *v2;
*v2 = v3;
}
return v2;
}
| list_reverse:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RAX
LAB_0012adb0:
CMP qword ptr [RBP + -0x8],0x0
JZ 0x0012ade7
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV RCX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
JMP 0x0012adb0
LAB_0012ade7:
MOV RAX,qword ptr [RBP + -0x10]
POP RBP
RET
|
int8 * list_reverse(int8 *param_1)
{
int8 *puVar1;
int8 *local_18;
int8 *local_10;
local_18 = param_1;
local_10 = param_1;
while (local_10 != (int8 *)0x0) {
local_18 = local_10;
puVar1 = (int8 *)local_10[1];
local_10[1] = *local_10;
*local_10 = puVar1;
local_10 = puVar1;
}
return local_18;
}
| |
37,816 | list_reverse | eloqsql/libmariadb/libmariadb/ma_list.c | LIST *list_reverse(LIST *root)
{
LIST *last;
last=root;
while (root)
{
last=root;
root=root->next;
last->next=last->prev;
last->prev=root;
}
return last;
} | O3 | c | list_reverse:
testq %rdi, %rdi
je 0x22108
pushq %rbp
movq %rsp, %rbp
movq %rdi, %rax
movq (%rdi), %rcx
movq 0x8(%rdi), %rdi
movq %rcx, 0x8(%rax)
movq %rdi, (%rax)
testq %rdi, %rdi
jne 0x220f0
popq %rbp
retq
xorl %eax, %eax
retq
| list_reverse:
test rdi, rdi
jz short loc_22108
push rbp
mov rbp, rsp
loc_220F0:
mov rax, rdi
mov rcx, [rdi]
mov rdi, [rdi+8]
mov [rax+8], rcx
mov [rax], rdi
test rdi, rdi
jnz short loc_220F0
pop rbp
retn
loc_22108:
xor eax, eax
retn
| _QWORD * list_reverse(_QWORD *a1)
{
_QWORD *result; // rax
long long v2; // rcx
if ( !a1 )
return 0LL;
do
{
result = a1;
v2 = *a1;
a1 = (_QWORD *)a1[1];
result[1] = v2;
*result = a1;
}
while ( a1 );
return result;
}
| list_reverse:
TEST RDI,RDI
JZ 0x00122108
PUSH RBP
MOV RBP,RSP
LAB_001220f0:
MOV RAX,RDI
MOV RCX,qword ptr [RDI]
MOV RDI,qword ptr [RDI + 0x8]
MOV qword ptr [RAX + 0x8],RCX
MOV qword ptr [RAX],RDI
TEST RDI,RDI
JNZ 0x001220f0
POP RBP
RET
LAB_00122108:
XOR EAX,EAX
RET
|
int8 * list_reverse(int8 *param_1)
{
int8 *puVar1;
int8 *puVar2;
if (param_1 == (int8 *)0x0) {
return (int8 *)0x0;
}
do {
puVar2 = param_1;
puVar1 = (int8 *)param_1[1];
param_1[1] = *param_1;
*param_1 = puVar1;
param_1 = puVar1;
} while (puVar1 != (int8 *)0x0);
return puVar2;
}
| |
37,817 | minja::Parser::parseMathUnaryPlusMinus() | monkey531[P]llama/common/minja.hpp | std::shared_ptr<Expression> parseMathUnaryPlusMinus() {
static std::regex unary_plus_minus_tok(R"(\+|-(?![}%#]\}))");
auto op_str = consumeToken(unary_plus_minus_tok);
auto expr = parseExpansion();
if (!expr) throw std::runtime_error("Expected expr of 'unary plus/minus/expansion' expression");
if (!op_str.empty()) {
auto op = op_str == "+" ? UnaryOpExpr::Op::Plus : UnaryOpExpr::Op::Minus;
return std::make_shared<UnaryOpExpr>(get_location(), std::move(expr), op);
}
return expr;
} | O3 | cpp | minja::Parser::parseMathUnaryPlusMinus():
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x9e980(%rip), %rax # 0xe3f88
movb (%rax), %al
testb %al, %al
je 0x45732
leaq 0x9e94f(%rip), %rdx # 0xe3f68
leaq 0x30(%rsp), %rdi
movq %r14, %rsi
movl $0x1, %ecx
callq 0x34de0
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x458ba
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x45789
cmpq $0x0, 0x38(%rsp)
je 0x45691
leaq 0x6bf51(%rip), %rsi # 0xb15a6
leaq 0x30(%rsp), %rdi
callq 0x1a1a0
xorl %ecx, %ecx
testl %eax, %eax
setne %cl
movl %ecx, 0xc(%rsp)
movq (%r14), %rax
movq %rax, 0x50(%rsp)
movq 0x8(%r14), %rax
movq %rax, 0x58(%rsp)
testq %rax, %rax
je 0x456a3
movq 0x9d911(%rip), %rcx # 0xe2f98
cmpb $0x0, (%rcx)
je 0x4569f
incl 0x8(%rax)
jmp 0x456a3
movq %rax, (%rbx)
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rbx)
jmp 0x4570c
lock
incl 0x8(%rax)
movq 0x20(%r14), %rax
subq 0x10(%r14), %rax
leaq 0x50(%rsp), %rcx
movq %rax, 0x10(%rcx)
leaq 0x28(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x20(%rsp), %rsi
leaq 0xb(%rsp), %rdx
leaq 0x10(%rsp), %r8
leaq 0xc(%rsp), %r9
callq 0x5b46e
movaps 0x20(%rsp), %xmm0
xorl %eax, %eax
movq %rax, 0x28(%rsp)
movups %xmm0, (%rbx)
movq %rax, 0x20(%rsp)
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x456fd
callq 0x348da
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x4570c
callq 0x348da
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x45727
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x1a740
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r14
retq
leaq 0x9e84f(%rip), %rdi # 0xe3f88
callq 0x1ad90
testl %eax, %eax
je 0x45612
leaq 0x9e81b(%rip), %rdi # 0xe3f68
leaq 0x6a1a4(%rip), %rsi # 0xaf8f8
movl $0x10, %edx
callq 0x3494a
leaq -0x10db3(%rip), %rdi # 0x349b2
leaq 0x9e7fc(%rip), %rsi # 0xe3f68
leaq 0x9e015(%rip), %rdx # 0xe3788
callq 0x1a620
leaq 0x9e809(%rip), %rdi # 0xe3f88
callq 0x1a490
jmp 0x45612
movl $0x10, %edi
callq 0x1a390
movq %rax, %r14
leaq 0x6a245(%rip), %rsi # 0xaf9e2
movq %rax, %rdi
callq 0x1a290
movq 0x9d844(%rip), %rsi # 0xe2ff0
movq 0x9d7bd(%rip), %rdx # 0xe2f70
movq %r14, %rdi
callq 0x1acd0
movq %rax, %rbx
leaq 0x9e7c3(%rip), %rdi # 0xe3f88
callq 0x1a480
jmp 0x4581f
movq %rax, %rbx
jmp 0x457f0
movq %rax, %rbx
movq %r14, %rdi
callq 0x1a530
jmp 0x457f0
movq %rax, %rbx
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x457f0
callq 0x348da
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x45804
callq 0x348da
jmp 0x45804
movq %rax, %rbx
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4581f
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x1a740
movq %rbx, %rdi
callq 0x1ad30
nop
| _ZN5minja6Parser23parseMathUnaryPlusMinusEv:
push r14
push rbx
sub rsp, 68h
mov r14, rsi
mov rbx, rdi
lea rax, _ZGVZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; `guard variable for'minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok
mov al, [rax]
test al, al
jz loc_45732
loc_45612:
lea rdx, _ZZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok
lea rdi, [rsp+78h+var_48]
mov rsi, r14
mov ecx, 1
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling)
lea rdi, [rsp+78h+var_68]; this
mov rsi, r14
call _ZN5minja6Parser14parseExpansionEv; minja::Parser::parseExpansion(void)
mov rax, [rsp+78h+var_68]
test rax, rax
jz loc_45789
cmp [rsp+78h+var_40], 0
jz short loc_45691
lea rsi, aSRN_0+0Bh; "+"
lea rdi, [rsp+78h+var_48]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
xor ecx, ecx
test eax, eax
setnz cl
mov [rsp+78h+var_6C], ecx
mov rax, [r14]
mov [rsp+78h+var_28], rax
mov rax, [r14+8]
mov [rsp+78h+var_20], rax
test rax, rax
jz short loc_456A3
mov rcx, cs:__libc_single_threaded_ptr
cmp byte ptr [rcx], 0
jz short loc_4569F
inc dword ptr [rax+8]
jmp short loc_456A3
loc_45691:
mov [rbx], rax
mov rax, [rsp+78h+var_60]
mov [rbx+8], rax
jmp short loc_4570C
loc_4569F:
lock inc dword ptr [rax+8]
loc_456A3:
mov rax, [r14+20h]
sub rax, [r14+10h]
lea rcx, [rsp+78h+var_28]
mov [rcx+10h], rax
lea rdi, [rsp+78h+var_58+8]
mov qword ptr [rdi-8], 0
lea rsi, [rsp+78h+var_58]
lea rdx, [rsp+78h+var_6D]
lea r8, [rsp+78h+var_68]
lea r9, [rsp+78h+var_6C]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEC2IN5minja11UnaryOpExprESaIS5_EJNS4_8LocationESt10shared_ptrINS4_10ExpressionEERNS5_2OpEEEERPT_St20_Sp_alloc_shared_tagIT0_EDpOT1_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<minja::UnaryOpExpr,std::allocator<minja::UnaryOpExpr>,minja::Location,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op &>(minja::UnaryOpExpr *&,std::_Sp_alloc_shared_tag<std::allocator<minja::UnaryOpExpr>>,minja::Location,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op &)
movaps xmm0, [rsp+78h+var_58]
xor eax, eax
mov qword ptr [rsp+78h+var_58+8], rax
movups xmmword ptr [rbx], xmm0
mov qword ptr [rsp+78h+var_58], rax
mov rdi, [rsp+78h+var_20]
test rdi, rdi
jz short loc_456FD
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_456FD:
mov rdi, [rsp+78h+var_60]
test rdi, rdi
jz short loc_4570C
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_4570C:
lea rax, [rsp+78h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_45727
mov rsi, [rsp+78h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_45727:
mov rax, rbx
add rsp, 68h
pop rbx
pop r14
retn
loc_45732:
lea rdi, _ZGVZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; __guard *
call ___cxa_guard_acquire
test eax, eax
jz loc_45612
lea rdi, _ZZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok
lea rsi, asc_AF8F8; "\\+|-(?![}%#]\\})"
mov edx, 10h
call _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2EPKcNSt15regex_constants18syntax_option_typeE; std::basic_regex<char,std::regex_traits<char>>::basic_regex(char const*,std::regex_constants::syntax_option_type)
lea rdi, _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev; lpfunc
lea rsi, _ZZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
lea rdi, _ZGVZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; __guard *
call ___cxa_guard_release
jmp loc_45612
loc_45789:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedExprOf; "Expected expr of 'unary plus/minus/expa"...
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
mov rbx, rax
lea rdi, _ZGVZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; __guard *
call ___cxa_guard_abort
jmp short loc_4581F
mov rbx, rax
jmp short loc_457F0
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_457F0
mov rbx, rax
mov rdi, [rsp+78h+var_20]
test rdi, rdi
jz short loc_457F0
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_457F0:
mov rdi, [rsp+78h+var_60]
test rdi, rdi
jz short loc_45804
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
jmp short loc_45804
mov rbx, rax
loc_45804:
lea rax, [rsp+78h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_4581F
mov rsi, [rsp+78h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4581F:
mov rdi, rbx
call __Unwind_Resume
| minja::Parser * minja::Parser::parseMathUnaryPlusMinus(minja::Parser *this, long long *a2)
{
volatile signed __int32 *v2; // rax
__int128 v3; // xmm0
std::runtime_error *exception; // r14
char v6; // [rsp+Bh] [rbp-6Dh] BYREF
BOOL v7; // [rsp+Ch] [rbp-6Ch] BYREF
long long v8; // [rsp+10h] [rbp-68h] BYREF
volatile signed __int32 *v9; // [rsp+18h] [rbp-60h]
__int128 v10; // [rsp+20h] [rbp-58h] BYREF
void *v11[2]; // [rsp+30h] [rbp-48h] BYREF
long long v12; // [rsp+40h] [rbp-38h] BYREF
long long v13; // [rsp+50h] [rbp-28h] BYREF
volatile signed __int32 *v14; // [rsp+58h] [rbp-20h]
long long v15; // [rsp+60h] [rbp-18h]
if ( !(_BYTE)`guard variable for'minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok[abi:cxx11]
&& __cxa_guard_acquire(&`guard variable for'minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok[abi:cxx11]) )
{
std::basic_regex<char,std::regex_traits<char>>::basic_regex(
(long long)&minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok[abi:cxx11],
"\\+|-(?![}%#]\\})",
0x10u);
__cxa_atexit(
(void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex,
&minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok[abi:cxx11],
&_dso_handle);
__cxa_guard_release(&`guard variable for'minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok[abi:cxx11]);
}
minja::Parser::consumeToken(
(long long)v11,
(long long)a2,
(long long)&minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok[abi:cxx11],
1u);
minja::Parser::parseExpansion((minja::Parser *)&v8);
if ( !v8 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected expr of 'unary plus/minus/expansion' expression");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
if ( v11[1] )
{
v7 = std::string::compare(v11, "+") != 0;
v13 = *a2;
v2 = (volatile signed __int32 *)a2[1];
v14 = v2;
if ( v2 )
{
if ( _libc_single_threaded )
++*((_DWORD *)v2 + 2);
else
_InterlockedIncrement(v2 + 2);
}
v15 = a2[4] - a2[2];
*(_QWORD *)&v10 = 0LL;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<minja::UnaryOpExpr,std::allocator<minja::UnaryOpExpr>,minja::Location,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op &>(
(char *)&v10 + 8,
&v10,
&v6,
&v13,
&v8,
&v7);
v3 = v10;
*((_QWORD *)&v10 + 1) = 0LL;
*(_OWORD *)this = v3;
*(_QWORD *)&v10 = 0LL;
if ( v14 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v14);
if ( v9 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v9);
}
else
{
*(_QWORD *)this = v8;
*((_QWORD *)this + 1) = v9;
}
if ( v11[0] != &v12 )
operator delete(v11[0], v12 + 1);
return this;
}
| parseMathUnaryPlusMinus:
PUSH R14
PUSH RBX
SUB RSP,0x68
MOV R14,RSI
MOV RBX,RDI
LEA RAX,[0x1e3f88]
MOV AL,byte ptr [RAX]
TEST AL,AL
JZ 0x00145732
LAB_00145612:
LEA RDX,[0x1e3f68]
LEA RDI,[RSP + 0x30]
MOV RSI,R14
MOV ECX,0x1
CALL 0x00134de0
LAB_0014562b:
LEA RDI,[RSP + 0x10]
MOV RSI,R14
CALL 0x001458ba
MOV RAX,qword ptr [RSP + 0x10]
TEST RAX,RAX
JZ 0x00145789
CMP qword ptr [RSP + 0x38],0x0
JZ 0x00145691
LEA RSI,[0x1b15a6]
LEA RDI,[RSP + 0x30]
CALL 0x0011a1a0
XOR ECX,ECX
TEST EAX,EAX
SETNZ CL
MOV dword ptr [RSP + 0xc],ECX
MOV RAX,qword ptr [R14]
MOV qword ptr [RSP + 0x50],RAX
MOV RAX,qword ptr [R14 + 0x8]
MOV qword ptr [RSP + 0x58],RAX
TEST RAX,RAX
JZ 0x001456a3
MOV RCX,qword ptr [0x001e2f98]
CMP byte ptr [RCX],0x0
JZ 0x0014569f
INC dword ptr [RAX + 0x8]
JMP 0x001456a3
LAB_00145691:
MOV qword ptr [RBX],RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RBX + 0x8],RAX
JMP 0x0014570c
LAB_0014569f:
INC.LOCK dword ptr [RAX + 0x8]
LAB_001456a3:
MOV RAX,qword ptr [R14 + 0x20]
SUB RAX,qword ptr [R14 + 0x10]
LEA RCX,[RSP + 0x50]
MOV qword ptr [RCX + 0x10],RAX
LEA RDI,[RSP + 0x28]
MOV qword ptr [RDI + -0x8],0x0
LAB_001456c1:
LEA RSI,[RSP + 0x20]
LEA RDX,[RSP + 0xb]
LEA R8,[RSP + 0x10]
LEA R9,[RSP + 0xc]
CALL 0x0015b46e
MOVAPS XMM0,xmmword ptr [RSP + 0x20]
XOR EAX,EAX
MOV qword ptr [RSP + 0x28],RAX
MOVUPS xmmword ptr [RBX],XMM0
MOV qword ptr [RSP + 0x20],RAX
MOV RDI,qword ptr [RSP + 0x58]
TEST RDI,RDI
JZ 0x001456fd
CALL 0x001348da
LAB_001456fd:
MOV RDI,qword ptr [RSP + 0x18]
TEST RDI,RDI
JZ 0x0014570c
CALL 0x001348da
LAB_0014570c:
LEA RAX,[RSP + 0x40]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00145727
MOV RSI,qword ptr [RSP + 0x40]
INC RSI
CALL 0x0011a740
LAB_00145727:
MOV RAX,RBX
ADD RSP,0x68
POP RBX
POP R14
RET
LAB_00145732:
LEA RDI,[0x1e3f88]
CALL 0x0011ad90
TEST EAX,EAX
JZ 0x00145612
LAB_00145746:
LEA RDI,[0x1e3f68]
LEA RSI,[0x1af8f8]
MOV EDX,0x10
CALL 0x0013494a
LAB_0014575e:
LEA RDI,[0x1349b2]
LEA RSI,[0x1e3f68]
LEA RDX,[0x1e3788]
CALL 0x0011a620
LEA RDI,[0x1e3f88]
CALL 0x0011a490
JMP 0x00145612
LAB_00145789:
MOV EDI,0x10
CALL 0x0011a390
MOV R14,RAX
LAB_00145796:
LEA RSI,[0x1af9e2]
MOV RDI,RAX
CALL 0x0011a290
LAB_001457a5:
MOV RSI,qword ptr [0x001e2ff0]
MOV RDX,qword ptr [0x001e2f70]
MOV RDI,R14
CALL 0x0011acd0
|
/* minja::Parser::parseMathUnaryPlusMinus() */
void minja::Parser::parseMathUnaryPlusMinus(void)
{
long lVar1;
int iVar2;
runtime_error *this;
int8 *in_RSI;
long *in_RDI;
int1 local_6d;
uint local_6c;
long local_68;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_60;
long local_58;
long lStack_50;
long *local_48;
long local_40;
long local_38 [2];
int8 local_28;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_20;
long local_18;
if (parseMathUnaryPlusMinus()::unary_plus_minus_tok_abi_cxx11_ == '\0') {
iVar2 = __cxa_guard_acquire(&parseMathUnaryPlusMinus()::unary_plus_minus_tok_abi_cxx11_);
if (iVar2 != 0) {
/* try { // try from 00145746 to 0014575d has its CatchHandler @ 001457bb */
std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex
((basic_regex<char,std::__cxx11::regex_traits<char>> *)
parseMathUnaryPlusMinus()::unary_plus_minus_tok_abi_cxx11_,"\\+|-(?![}%#]\\})",0x10
);
__cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex,
parseMathUnaryPlusMinus()::unary_plus_minus_tok_abi_cxx11_,&__dso_handle);
__cxa_guard_release(&parseMathUnaryPlusMinus()::unary_plus_minus_tok_abi_cxx11_);
}
}
consumeToken(&local_48);
/* try { // try from 0014562b to 00145637 has its CatchHandler @ 00145801 */
parseExpansion();
if (local_68 != 0) {
if (local_40 == 0) {
*in_RDI = local_68;
in_RDI[1] = (long)local_60;
}
else {
iVar2 = std::__cxx11::string::compare((char *)&local_48);
local_6c = (uint)(iVar2 != 0);
local_28 = *in_RSI;
local_20 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)in_RSI[1];
if (local_20 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
if (*PTR___libc_single_threaded_001e2f98 == '\0') {
LOCK();
*(int *)(local_20 + 8) = *(int *)(local_20 + 8) + 1;
UNLOCK();
}
else {
*(int *)(local_20 + 8) = *(int *)(local_20 + 8) + 1;
}
}
local_18 = in_RSI[4] - in_RSI[2];
local_58 = 0;
/* try { // try from 001456c1 to 001456d9 has its CatchHandler @ 001457de */
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::
__shared_count<minja::UnaryOpExpr,std::allocator<minja::UnaryOpExpr>,minja::Location,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op&>
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&lStack_50,&local_58,&local_6d,
&local_28,&local_68,&local_6c);
lVar1 = lStack_50;
lStack_50 = 0;
*in_RDI = local_58;
in_RDI[1] = lVar1;
local_58 = 0;
if (local_20 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_20);
}
if (local_60 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_60);
}
}
if (local_48 != local_38) {
operator_delete(local_48,local_38[0] + 1);
}
return;
}
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00145796 to 001457a4 has its CatchHandler @ 001457d1 */
std::runtime_error::runtime_error
(this,"Expected expr of \'unary plus/minus/expansion\' expression");
/* try { // try from 001457a5 to 001457ba has its CatchHandler @ 001457cc */
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_001e2ff0,PTR__runtime_error_001e2f70);
}
| |
37,818 | my_wc_mb_filename | eloqsql/strings/ctype-utf8.c | static int
my_wc_mb_filename(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc, uchar *s, uchar *e)
{
int code;
static const char hex[]= "0123456789abcdef";
if (s >= e)
return MY_CS_TOOSMALL;
if (wc < 128 && filename_safe_char[wc])
{
*s= (uchar) wc;
return 1;
}
if (s + 3 > e)
return MY_CS_TOOSMALL3;
*s++= MY_FILENAME_ESCAPE;
if ((wc >= 0x00C0 && wc <= 0x05FF && (code= uni_0C00_05FF[wc - 0x00C0])) ||
(wc >= 0x1E00 && wc <= 0x1FFF && (code= uni_1E00_1FFF[wc - 0x1E00])) ||
(wc >= 0x2160 && wc <= 0x217F && (code= uni_2160_217F[wc - 0x2160])) ||
(wc >= 0x24B0 && wc <= 0x24EF && (code= uni_24B0_24EF[wc - 0x24B0])) ||
(wc >= 0xFF20 && wc <= 0xFF5F && (code= uni_FF20_FF5F[wc - 0xFF20])))
{
*s++= (code / 80) + 0x30;
*s++= (code % 80) + 0x30;
return 3;
}
/* Non letter */
if (s + 4 > e)
return MY_CS_TOOSMALL5;
*s++= hex[(wc >> 12) & 15];
*s++= hex[(wc >> 8) & 15];
*s++= hex[(wc >> 4) & 15];
*s++= hex[(wc) & 15];
return 5;
} | O3 | c | my_wc_mb_filename:
pushq %rbp
movq %rsp, %rbp
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rcx, %rdx
jae 0x59976
cmpq $0x7f, %rsi
ja 0x598d6
leaq 0x28480d(%rip), %rax # 0x2de0d0
cmpb $0x0, (%rsi,%rax)
je 0x598d6
movb %sil, (%rdx)
movl $0x1, %eax
jmp 0x59976
leaq 0x3(%rdx), %rdi
movl $0xffffff99, %eax # imm = 0xFFFFFF99
cmpq %rcx, %rdi
ja 0x59976
movb $0x40, (%rdx)
leaq -0xc0(%rsi), %rax
cmpq $0x53f, %rax # imm = 0x53F
ja 0x5990e
leaq 0x287d6f(%rip), %rax # 0x2e1670
movzwl -0x180(%rax,%rsi,2), %eax
testw %ax, %ax
jne 0x59951
movq %rsi, %rax
andq $-0x200, %rax # imm = 0xFE00
cmpq $0x1e00, %rax # imm = 0x1E00
jne 0x59933
leaq 0x28780a(%rip), %rax # 0x2e1130
movzwl -0x3c00(%rax,%rsi,2), %eax
testw %ax, %ax
jne 0x59951
movq %rsi, %rax
andq $-0x20, %rax
cmpq $0x2160, %rax # imm = 0x2160
jne 0x59978
leaq 0x287be7(%rip), %rax # 0x2e1530
movzwl -0x42c0(%rax,%rsi,2), %eax
movzwl %ax, %ecx
imull $0xcccd, %ecx, %ecx # imm = 0xCCCD
shrl $0x16, %ecx
leal 0x30(%rcx), %esi
movb %sil, 0x1(%rdx)
shll $0x4, %ecx
leal (%rcx,%rcx,4), %ecx
subl %ecx, %eax
addb $0x30, %al
movb %al, 0x2(%rdx)
movl $0x3, %eax
popq %rbp
retq
leaq -0x24b0(%rsi), %rax
cmpq $0x3f, %rax
ja 0x599a3
leaq -0x24ea(%rsi), %rax
cmpq $-0x34, %rax
jb 0x599d1
leaq 0x287bd7(%rip), %rax # 0x2e1570
movzwl -0x4960(%rax,%rsi,2), %eax
jmp 0x59951
leaq -0xff20(%rsi), %rax
cmpq $0x3f, %rax
ja 0x599d1
movabsq $-0x7fffffe07ffffff, %rdi # imm = 0xF8000001F8000001
btq %rax, %rdi
jb 0x599d1
leaq 0x287c29(%rip), %rax # 0x2e15f0
movzwl -0x1fe40(%rax,%rsi,2), %eax
jmp 0x59951
leaq 0x5(%rdx), %rdi
movl $0xffffff97, %eax # imm = 0xFFFFFF97
cmpq %rcx, %rdi
ja 0x59976
movl %esi, %eax
shrl $0xc, %eax
andl $0xf, %eax
leaq 0x288702(%rip), %rcx # 0x2e20f0
movb (%rax,%rcx), %al
movb %al, 0x1(%rdx)
movl %esi, %eax
shrl $0x8, %eax
andl $0xf, %eax
movb (%rax,%rcx), %al
movb %al, 0x2(%rdx)
movl %esi, %eax
shrl $0x4, %eax
andl $0xf, %eax
movb (%rax,%rcx), %al
movb %al, 0x3(%rdx)
andl $0xf, %esi
movb (%rsi,%rcx), %al
movb %al, 0x4(%rdx)
movl $0x5, %eax
jmp 0x59976
| my_wc_mb_filename:
push rbp
mov rbp, rsp
mov eax, 0FFFFFF9Bh
cmp rdx, rcx
jnb loc_59976
cmp rsi, 7Fh
ja short loc_598D6
lea rax, filename_safe_char
cmp byte ptr [rsi+rax], 0
jz short loc_598D6
mov [rdx], sil
mov eax, 1
jmp loc_59976
loc_598D6:
lea rdi, [rdx+3]
mov eax, 0FFFFFF99h
cmp rdi, rcx
ja loc_59976
mov byte ptr [rdx], 40h ; '@'
lea rax, [rsi-0C0h]
cmp rax, 53Fh
ja short loc_5990E
lea rax, uni_0C00_05FF
movzx eax, word ptr [rax+rsi*2-180h]
test ax, ax
jnz short loc_59951
loc_5990E:
mov rax, rsi
and rax, 0FFFFFFFFFFFFFE00h
cmp rax, 1E00h
jnz short loc_59933
lea rax, uni_1E00_1FFF
movzx eax, word ptr [rax+rsi*2-3C00h]
test ax, ax
jnz short loc_59951
loc_59933:
mov rax, rsi
and rax, 0FFFFFFFFFFFFFFE0h
cmp rax, 2160h
jnz short loc_59978
lea rax, uni_2160_217F
movzx eax, word ptr [rax+rsi*2-42C0h]
loc_59951:
movzx ecx, ax
imul ecx, 0CCCDh
shr ecx, 16h
lea esi, [rcx+30h]
mov [rdx+1], sil
shl ecx, 4
lea ecx, [rcx+rcx*4]
sub eax, ecx
add al, 30h ; '0'
mov [rdx+2], al
mov eax, 3
loc_59976:
pop rbp
retn
loc_59978:
lea rax, [rsi-24B0h]
cmp rax, 3Fh ; '?'
ja short loc_599A3
lea rax, [rsi-24EAh]
cmp rax, 0FFFFFFFFFFFFFFCCh
jb short loc_599D1
lea rax, uni_24B0_24EF
movzx eax, word ptr [rax+rsi*2-4960h]
jmp short loc_59951
loc_599A3:
lea rax, [rsi-0FF20h]
cmp rax, 3Fh ; '?'
ja short loc_599D1
mov rdi, 0F8000001F8000001h
bt rdi, rax
jb short loc_599D1
lea rax, uni_FF20_FF5F
movzx eax, word ptr [rax+rsi*2-1FE40h]
jmp short loc_59951
loc_599D1:
lea rdi, [rdx+5]
mov eax, 0FFFFFF97h
cmp rdi, rcx
ja short loc_59976
mov eax, esi
shr eax, 0Ch
and eax, 0Fh
lea rcx, my_wc_mb_filename_hex; "0123456789abcdef"
mov al, [rax+rcx]
mov [rdx+1], al
mov eax, esi
shr eax, 8
and eax, 0Fh
mov al, [rax+rcx]
mov [rdx+2], al
mov eax, esi
shr eax, 4
and eax, 0Fh
mov al, [rax+rcx]
mov [rdx+3], al
and esi, 0Fh
mov al, [rsi+rcx]
mov [rdx+4], al
mov eax, 5
jmp loc_59976
| long long my_wc_mb_filename(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4)
{
long long result; // rax
unsigned __int16 v5; // ax
unsigned long long v6; // rdi
result = 4294967195LL;
if ( (unsigned long long)a3 < a4 )
{
if ( a2 <= 0x7F && filename_safe_char[a2] )
{
*a3 = a2;
return 1LL;
}
result = 4294967193LL;
if ( (unsigned long long)(a3 + 3) <= a4 )
{
*a3 = 64;
if ( a2 - 192 <= 0x53F )
{
v5 = uni_0C00_05FF[a2 - 192];
if ( v5 )
goto LABEL_12;
}
if ( (a2 & 0xFFFFFFFFFFFFFE00LL) == 0x1E00 )
{
v5 = uni_1E00_1FFF[a2 - 7680];
if ( v5 )
goto LABEL_12;
}
if ( (a2 & 0xFFFFFFFFFFFFFFE0LL) == 0x2160 )
{
v5 = uni_2160_217F[a2 - 8544];
LABEL_12:
a3[1] = v5 / 0x50u + 48;
a3[2] = v5 % 0x50u + 48;
return 3LL;
}
if ( a2 - 9392 > 0x3F )
{
if ( a2 - 65312 <= 0x3F )
{
v6 = 0xF8000001F8000001LL;
if ( !_bittest64((const long long *)&v6, a2 - 65312) )
{
v5 = uni_FF20_FF5F[a2 - 65312];
goto LABEL_12;
}
}
}
else if ( a2 - 9450 >= 0xFFFFFFFFFFFFFFCCLL )
{
v5 = uni_24B0_24EF[a2 - 9392];
goto LABEL_12;
}
result = 4294967191LL;
if ( (unsigned long long)(a3 + 5) <= a4 )
{
a3[1] = my_wc_mb_filename_hex[(unsigned __int16)a2 >> 12];
a3[2] = my_wc_mb_filename_hex[((unsigned int)a2 >> 8) & 0xF];
a3[3] = my_wc_mb_filename_hex[(unsigned __int8)a2 >> 4];
a3[4] = my_wc_mb_filename_hex[a2 & 0xF];
return 5LL;
}
}
}
return result;
}
| my_wc_mb_filename:
PUSH RBP
MOV RBP,RSP
MOV EAX,0xffffff9b
CMP RDX,RCX
JNC 0x00159976
CMP RSI,0x7f
JA 0x001598d6
LEA RAX,[0x3de0d0]
CMP byte ptr [RSI + RAX*0x1],0x0
JZ 0x001598d6
MOV byte ptr [RDX],SIL
MOV EAX,0x1
JMP 0x00159976
LAB_001598d6:
LEA RDI,[RDX + 0x3]
MOV EAX,0xffffff99
CMP RDI,RCX
JA 0x00159976
MOV byte ptr [RDX],0x40
LEA RAX,[RSI + -0xc0]
CMP RAX,0x53f
JA 0x0015990e
LEA RAX,[0x3e1670]
MOVZX EAX,word ptr [RAX + RSI*0x2 + -0x180]
TEST AX,AX
JNZ 0x00159951
LAB_0015990e:
MOV RAX,RSI
AND RAX,-0x200
CMP RAX,0x1e00
JNZ 0x00159933
LEA RAX,[0x3e1130]
MOVZX EAX,word ptr [RAX + RSI*0x2 + -0x3c00]
TEST AX,AX
JNZ 0x00159951
LAB_00159933:
MOV RAX,RSI
AND RAX,-0x20
CMP RAX,0x2160
JNZ 0x00159978
LEA RAX,[0x3e1530]
MOVZX EAX,word ptr [RAX + RSI*0x2 + -0x42c0]
LAB_00159951:
MOVZX ECX,AX
IMUL ECX,ECX,0xcccd
SHR ECX,0x16
LEA ESI,[RCX + 0x30]
MOV byte ptr [RDX + 0x1],SIL
SHL ECX,0x4
LEA ECX,[RCX + RCX*0x4]
SUB EAX,ECX
ADD AL,0x30
MOV byte ptr [RDX + 0x2],AL
MOV EAX,0x3
LAB_00159976:
POP RBP
RET
LAB_00159978:
LEA RAX,[RSI + -0x24b0]
CMP RAX,0x3f
JA 0x001599a3
LEA RAX,[RSI + -0x24ea]
CMP RAX,-0x34
JC 0x001599d1
LEA RAX,[0x3e1570]
MOVZX EAX,word ptr [RAX + RSI*0x2 + -0x4960]
JMP 0x00159951
LAB_001599a3:
LEA RAX,[RSI + -0xff20]
CMP RAX,0x3f
JA 0x001599d1
MOV RDI,-0x7fffffe07ffffff
BT RDI,RAX
JC 0x001599d1
LEA RAX,[0x3e15f0]
MOVZX EAX,word ptr [RAX + RSI*0x2 + -0x1fe40]
JMP 0x00159951
LAB_001599d1:
LEA RDI,[RDX + 0x5]
MOV EAX,0xffffff97
CMP RDI,RCX
JA 0x00159976
MOV EAX,ESI
SHR EAX,0xc
AND EAX,0xf
LEA RCX,[0x3e20f0]
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [RDX + 0x1],AL
MOV EAX,ESI
SHR EAX,0x8
AND EAX,0xf
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [RDX + 0x2],AL
MOV EAX,ESI
SHR EAX,0x4
AND EAX,0xf
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [RDX + 0x3],AL
AND ESI,0xf
MOV AL,byte ptr [RSI + RCX*0x1]
MOV byte ptr [RDX + 0x4],AL
MOV EAX,0x5
JMP 0x00159976
|
int8
my_wc_mb_filename(int8 param_1,ulong param_2,int1 *param_3,int1 *param_4)
{
ushort uVar1;
if (param_4 <= param_3) {
return 0xffffff9b;
}
if ((param_2 < 0x80) && (filename_safe_char[param_2] != '\0')) {
*param_3 = (char)param_2;
return 1;
}
if (param_4 < param_3 + 3) {
return 0xffffff99;
}
*param_3 = 0x40;
if (((0x53f < param_2 - 0xc0) ||
(uVar1 = *(ushort *)(uni_1E00_1FFF + param_2 * 2 + 0x3c0), uVar1 == 0)) &&
(((param_2 & 0xfffffffffffffe00) != 0x1e00 ||
(uVar1 = *(ushort *)(unicode_to_jisx0212_eucjp + param_2 * 2 + 0x1f780), uVar1 == 0)))) {
if ((param_2 & 0xffffffffffffffe0) == 0x2160) {
uVar1 = *(ushort *)(unicode_to_jisx0212_eucjp + param_2 * 2 + 0x1f4c0);
}
else if (param_2 - 0x24b0 < 0x40) {
if (param_2 - 0x24ea < 0xffffffffffffffcc) {
LAB_001599d1:
if (param_4 < param_3 + 5) {
return 0xffffff97;
}
param_3[1] = "0123456789abcdef"[(uint)(param_2 >> 0xc) & 0xf];
param_3[2] = "0123456789abcdef"[(uint)(param_2 >> 8) & 0xf];
param_3[3] = "0123456789abcdef"[(uint)(param_2 >> 4) & 0xf];
param_3[4] = "0123456789abcdef"[(uint)param_2 & 0xf];
return 5;
}
uVar1 = *(ushort *)(unicode_to_jisx0212_eucjp + param_2 * 2 + 0x1ee60);
}
else {
if ((0x3f < param_2 - 0xff20) || ((0xf8000001f8000001U >> (param_2 - 0xff20 & 0x3f) & 1) != 0)
) goto LAB_001599d1;
uVar1 = *(ushort *)(unicode_to_jisx0212_eucjp + param_2 * 2 + 0x3a00);
}
}
param_3[1] = (char)(uVar1 / 0x50) + '0';
param_3[2] = (char)uVar1 + (char)(uVar1 / 0x50 << 4) * -5 + '0';
return 3;
}
| |
37,819 | my_rmdir(char const*) | eloqsql/sql/sql_db.cc | static int my_rmdir(const char *dir)
{
auto ret= rmdir(dir);
if (ret)
return ret;
mysql_rwlock_wrlock(&rmdir_lock);
dbname_cache->clear();
mysql_rwlock_unlock(&rmdir_lock);
return 0;
} | O0 | cpp | my_rmdir(char const*):
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x4339d0
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0x563829
movl -0x14(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x563939
movl $0x0, -0x18(%rbp)
callq 0x48cc50
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x56384f
movq -0x20(%rbp), %rdi
callq 0x49d700
cwtl
cmpl $0x0, %eax
jge 0x56386f
leaq 0x10624ca(%rip), %rdi # 0x15c5d20
leaq 0x820c7f(%rip), %rsi # 0xd844dc
movl $0xec, %edx
callq 0x560da0
movl %eax, -0x18(%rbp)
jmp 0x563914
movq -0x20(%rbp), %rdi
callq 0x53de30
movq %rax, -0x38(%rbp)
movq %rdx, -0x30(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rdi
callq 0x53ded0
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0x5638a3
cmpq $0x0, -0x40(%rbp)
jne 0x5638c0
leaq 0x1062476(%rip), %rdi # 0x15c5d20
leaq 0x820c2b(%rip), %rsi # 0xd844dc
movl $0xec, %edx
callq 0x560da0
movl %eax, -0x18(%rbp)
jmp 0x563912
leaq 0x1062459(%rip), %rdi # 0x15c5d20
leaq 0x820c0e(%rip), %rsi # 0xd844dc
movl $0xec, %edx
callq 0x560e00
movl %eax, -0x44(%rbp)
cmpl $0x0, -0x44(%rbp)
je 0x563910
movq -0x40(%rbp), %rdi
callq 0x49d720
movq -0x28(%rbp), %rdi
callq 0x49d720
leaq 0x1062426(%rip), %rdi # 0x15c5d20
leaq 0x820bdb(%rip), %rsi # 0xd844dc
movl $0xec, %edx
callq 0x560e00
movl %eax, -0x44(%rbp)
jmp 0x5638db
jmp 0x563912
jmp 0x563914
movl -0x18(%rbp), %eax
movl %eax, -0x48(%rbp)
movq 0x10623f7(%rip), %rdi # 0x15c5d18
callq 0x566a10
leaq 0x10623f3(%rip), %rdi # 0x15c5d20
callq 0x560e60
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ZL8my_rmdirPKc:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_10], rdi
mov rdi, [rbp+var_10]
call _rmdir
mov [rbp+var_14], eax
cmp [rbp+var_14], 0
jz short loc_563829
mov eax, [rbp+var_14]
mov [rbp+var_4], eax
jmp loc_563939
loc_563829:
mov [rbp+var_18], 0
call _current_thd
mov [rbp+var_20], rax
cmp [rbp+var_20], 0
jz short loc_56384F
mov rdi, [rbp+var_20]; this
call _ZNK3THD10ThdGroupIdEv; THD::ThdGroupId(void)
cwde
cmp eax, 0
jge short loc_56386F
loc_56384F:
lea rdi, _ZL10rmdir_lock; rmdir_lock
lea rsi, aWorkspaceLlm4b_25; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 0ECh
call _ZL26inline_mysql_rwlock_wrlockP15st_mysql_rwlockPKcj_4; inline_mysql_rwlock_wrlock(st_mysql_rwlock *,char const*,uint)
mov [rbp+var_18], eax
jmp loc_563914
loc_56386F:
mov rdi, [rbp+var_20]; this
call _ZNK3THD12CoroFunctorsEv; THD::CoroFunctors(void)
mov [rbp+var_38], rax
mov [rbp+var_30], rdx
mov rax, [rbp+var_38]
mov [rbp+var_28], rax
mov rdi, [rbp+var_20]; this
call _ZNK3THD21CoroLongResumeFunctorEv; THD::CoroLongResumeFunctor(void)
mov [rbp+var_40], rax
cmp [rbp+var_28], 0
jz short loc_5638A3
cmp [rbp+var_40], 0
jnz short loc_5638C0
loc_5638A3:
lea rdi, _ZL10rmdir_lock; rmdir_lock
lea rsi, aWorkspaceLlm4b_25; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 0ECh
call _ZL26inline_mysql_rwlock_wrlockP15st_mysql_rwlockPKcj_4; inline_mysql_rwlock_wrlock(st_mysql_rwlock *,char const*,uint)
mov [rbp+var_18], eax
jmp short loc_563912
loc_5638C0:
lea rdi, _ZL10rmdir_lock; rmdir_lock
lea rsi, aWorkspaceLlm4b_25; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 0ECh
call _ZL29inline_mysql_rwlock_trywrlockP15st_mysql_rwlockPKcj_4; inline_mysql_rwlock_trywrlock(st_mysql_rwlock *,char const*,uint)
mov [rbp+var_44], eax
loc_5638DB:
cmp [rbp+var_44], 0
jz short loc_563910
mov rdi, [rbp+var_40]
call _ZNKSt8functionIFvvEEclEv; std::function<void ()(void)>::operator()(void)
mov rdi, [rbp+var_28]
call _ZNKSt8functionIFvvEEclEv; std::function<void ()(void)>::operator()(void)
lea rdi, _ZL10rmdir_lock; rmdir_lock
lea rsi, aWorkspaceLlm4b_25; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 0ECh
call _ZL29inline_mysql_rwlock_trywrlockP15st_mysql_rwlockPKcj_4; inline_mysql_rwlock_trywrlock(st_mysql_rwlock *,char const*,uint)
mov [rbp+var_44], eax
jmp short loc_5638DB
loc_563910:
jmp short $+2
loc_563912:
jmp short $+2
loc_563914:
mov eax, [rbp+var_18]
mov [rbp+var_48], eax
mov rdi, cs:_ZL12dbname_cache; this
call _ZN14dbname_cache_t5clearEv; dbname_cache_t::clear(void)
lea rdi, _ZL10rmdir_lock; rmdir_lock
call _ZL26inline_mysql_rwlock_unlockP15st_mysql_rwlock_5; inline_mysql_rwlock_unlock(st_mysql_rwlock *)
mov [rbp+var_4], 0
loc_563939:
mov eax, [rbp+var_4]
add rsp, 50h
pop rbp
retn
| long long my_rmdir(const char *a1)
{
int i; // [rsp+Ch] [rbp-44h]
long long (**v3)(void); // [rsp+10h] [rbp-40h]
long long (**v4)(void); // [rsp+18h] [rbp-38h]
THD *v5; // [rsp+30h] [rbp-20h]
unsigned int v6; // [rsp+3Ch] [rbp-14h]
v6 = rmdir(a1);
if ( v6 )
{
return v6;
}
else
{
v5 = (THD *)current_thd();
if ( v5
&& THD::ThdGroupId(v5) >= 0
&& (v4 = (long long (**)(void))THD::CoroFunctors(v5), v3 = (long long (**)(void))THD::CoroLongResumeFunctor(v5), v4)
&& v3 )
{
for ( i = inline_mysql_rwlock_trywrlock(
(long long)&rmdir_lock,
(long long)"/workspace/llm4binary/github2025/eloqsql/sql/sql_db.cc",
0xECu);
i;
i = inline_mysql_rwlock_trywrlock(
(long long)&rmdir_lock,
(long long)"/workspace/llm4binary/github2025/eloqsql/sql/sql_db.cc",
0xECu) )
{
std::function<void ()(void)>::operator()(v3);
std::function<void ()(void)>::operator()(v4);
}
}
else
{
inline_mysql_rwlock_wrlock(
(long long)&rmdir_lock,
(long long)"/workspace/llm4binary/github2025/eloqsql/sql/sql_db.cc",
0xECu);
}
dbname_cache_t::clear(dbname_cache);
inline_mysql_rwlock_unlock((long long)&rmdir_lock);
return 0;
}
}
| __cxx_global_var_init.1116:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
LEA RDI,[RBP + -0x8]
MOV ESI,0x1
XOR EDX,EDX
CALL 0x00835b10
MOV RAX,qword ptr [RBP + -0x8]
LEA RDI,[0x16e7f88]
LEA RSI,[0xea1408]
LEA RDX,[0xea141b]
XOR ECX,ECX
LEA R8,[0x16bd45c]
LEA R9,[0x16bea30]
SUB R8,R9
MOV R9D,0x1
XOR R10D,R10D
MOV qword ptr [RSP],RAX
MOV dword ptr [RSP + 0x8],0x0
MOV qword ptr [RSP + 0x10],0x0
MOV dword ptr [RSP + 0x18],0x0
MOV qword ptr [RSP + 0x20],0x0
MOV qword ptr [RSP + 0x28],0x0
MOV qword ptr [RSP + 0x30],0x0
CALL 0x00838d10
LEA RDI,[0x838dd0]
LEA RSI,[0x16e7f88]
LEA RDX,[0x14cf008]
CALL 0x005346c0
ADD RSP,0x40
POP RBP
RET
|
void __cxx_global_var_init_1116(void)
{
int8 local_10;
CMD_LINE::CMD_LINE((CMD_LINE *)&local_10,1,0);
Sys_var_on_access_global<Sys_var_mybool,(privilege_t)17179901952>::Sys_var_mybool
((Sys_var_on_access_global<Sys_var_mybool,(privilege_t)17179901952> *)
Sys_relay_log_recovery,"relay_log_recovery",
"Enables automatic relay log recovery right after the database startup, which means that the IO Thread starts re-fetching from the master right after the last transaction processed."
,0,0xffffffffffffea2c,1,local_10,0,0,0,0,0,0);
__cxa_atexit(Sys_var_on_access_global<Sys_var_mybool,(privilege_t)17179901952>::
~Sys_var_on_access_global,Sys_relay_log_recovery,&__dso_handle);
return;
}
| |
37,820 | change_pagecache_param | eloqsql/storage/maria/ma_pagecache.c | void change_pagecache_param(PAGECACHE *pagecache, uint division_limit,
uint age_threshold)
{
DBUG_ENTER("change_pagecache_param");
pagecache_pthread_mutex_lock(&pagecache->cache_lock);
if (division_limit)
pagecache->min_warm_blocks= (pagecache->disk_blocks *
division_limit / 100 + 1);
if (age_threshold)
pagecache->age_threshold= (pagecache->disk_blocks *
age_threshold / 100);
pagecache_pthread_mutex_unlock(&pagecache->cache_lock);
DBUG_VOID_RETURN;
} | O0 | c | change_pagecache_param:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq -0x8(%rbp), %rdi
addq $0xc8, %rdi
leaq 0x124ffd(%rip), %rsi # 0x151421
movl $0x46d, %edx # imm = 0x46D
callq 0x2c4a0
cmpl $0x0, -0xc(%rbp)
je 0x2c45c
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rax
movl -0xc(%rbp), %ecx
imulq %rcx, %rax
movl $0x64, %ecx
cqto
idivq %rcx
movq %rax, %rcx
addq $0x1, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x8(%rax)
cmpl $0x0, -0x10(%rbp)
je 0x2c486
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x10(%rbp), %ecx
imulq %rcx, %rax
movl $0x64, %ecx
cqto
idivq %rcx
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x8(%rbp), %rdi
addq $0xc8, %rdi
callq 0x2c510
jmp 0x2c498
addq $0x10, %rsp
popq %rbp
retq
nop
| change_pagecache_param:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_10], edx
mov rdi, [rbp+var_8]
add rdi, 0C8h
lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 46Dh
call inline_mysql_mutex_lock
cmp [rbp+var_C], 0
jz short loc_2C45C
mov rax, [rbp+var_8]
mov rax, [rax+40h]
mov ecx, [rbp+var_C]
imul rax, rcx
mov ecx, 64h ; 'd'
cqo
idiv rcx
mov rcx, rax
add rcx, 1
mov rax, [rbp+var_8]
mov [rax+8], rcx
loc_2C45C:
cmp [rbp+var_10], 0
jz short loc_2C486
mov rax, [rbp+var_8]
mov rax, [rax+40h]
mov ecx, [rbp+var_10]
imul rax, rcx
mov ecx, 64h ; 'd'
cqo
idiv rcx
mov rcx, rax
mov rax, [rbp+var_8]
mov [rax+10h], rcx
loc_2C486:
mov rdi, [rbp+var_8]
add rdi, 0C8h
call inline_mysql_mutex_unlock
jmp short $+2
loc_2C498:
add rsp, 10h
pop rbp
retn
| long long change_pagecache_param(_QWORD *a1, unsigned int a2, unsigned int a3)
{
long long v3; // rdx
inline_mysql_mutex_lock(a1 + 25, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 1133LL);
if ( a2 )
{
v3 = a2 * a1[8] % 100LL;
a1[1] = a2 * a1[8] / 100LL + 1;
}
if ( a3 )
{
v3 = a3 * a1[8] % 100LL;
a1[2] = a3 * a1[8] / 100LL;
}
return inline_mysql_mutex_unlock(a1 + 25, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", v3);
}
| change_pagecache_param:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV dword ptr [RBP + -0x10],EDX
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0xc8
LEA RSI,[0x251421]
MOV EDX,0x46d
CALL 0x0012c4a0
CMP dword ptr [RBP + -0xc],0x0
JZ 0x0012c45c
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x40]
MOV ECX,dword ptr [RBP + -0xc]
IMUL RAX,RCX
MOV ECX,0x64
CQO
IDIV RCX
MOV RCX,RAX
ADD RCX,0x1
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x8],RCX
LAB_0012c45c:
CMP dword ptr [RBP + -0x10],0x0
JZ 0x0012c486
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x40]
MOV ECX,dword ptr [RBP + -0x10]
IMUL RAX,RCX
MOV ECX,0x64
CQO
IDIV RCX
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x10],RCX
LAB_0012c486:
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0xc8
CALL 0x0012c510
JMP 0x0012c498
LAB_0012c498:
ADD RSP,0x10
POP RBP
RET
|
void change_pagecache_param(long param_1,uint param_2,uint param_3)
{
inline_mysql_mutex_lock
(param_1 + 200,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",
0x46d);
if (param_2 != 0) {
*(long *)(param_1 + 8) = (long)(*(long *)(param_1 + 0x40) * (ulong)param_2) / 100 + 1;
}
if (param_3 != 0) {
*(long *)(param_1 + 0x10) = (long)(*(long *)(param_1 + 0x40) * (ulong)param_3) / 100;
}
inline_mysql_mutex_unlock(param_1 + 200);
return;
}
| |
37,821 | change_pagecache_param | eloqsql/storage/maria/ma_pagecache.c | void change_pagecache_param(PAGECACHE *pagecache, uint division_limit,
uint age_threshold)
{
DBUG_ENTER("change_pagecache_param");
pagecache_pthread_mutex_lock(&pagecache->cache_lock);
if (division_limit)
pagecache->min_warm_blocks= (pagecache->disk_blocks *
division_limit / 100 + 1);
if (age_threshold)
pagecache->age_threshold= (pagecache->disk_blocks *
age_threshold / 100);
pagecache_pthread_mutex_unlock(&pagecache->cache_lock);
DBUG_VOID_RETURN;
} | O3 | c | change_pagecache_param:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %r15d
movl %esi, %r12d
movq %rdi, %r14
leaq 0xc8(%rdi), %rbx
cmpq $0x0, 0x108(%rdi)
jne 0x3141c
movq %rbx, %rdi
callq 0x29220
movabsq $-0x5c28f5c28f5c28f5, %rsi # imm = 0xA3D70A3D70A3D70B
testl %r12d, %r12d
je 0x313d8
movl %r12d, %ecx
imulq 0x40(%r14), %rcx
movq %rcx, %rax
imulq %rsi
addq %rcx, %rdx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x6, %rdx
addq %rdx, %rax
incq %rax
movq %rax, 0x8(%r14)
testl %r15d, %r15d
je 0x31400
movl %r15d, %ecx
imulq 0x40(%r14), %rcx
movq %rcx, %rax
imulq %rsi
addq %rcx, %rdx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x6, %rdx
addq %rax, %rdx
movq %rdx, 0x10(%r14)
movq 0x108(%r14), %rdi
testq %rdi, %rdi
jne 0x31435
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x291e0
leaq 0xa8177(%rip), %rsi # 0xd959a
movq %rbx, %rdi
movl $0x46d, %edx # imm = 0x46D
callq 0x2eb8f
jmp 0x313a3
leaq 0x354bd4(%rip), %rax # 0x386010
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x3140c
| change_pagecache_param:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov r15d, edx
mov r12d, esi
mov r14, rdi
lea rbx, [rdi+0C8h]
cmp qword ptr [rdi+108h], 0
jnz loc_3141C
mov rdi, rbx
call _pthread_mutex_lock
loc_313A3:
mov rsi, 0A3D70A3D70A3D70Bh
test r12d, r12d
jz short loc_313D8
mov ecx, r12d
imul rcx, [r14+40h]
mov rax, rcx
imul rsi
add rdx, rcx
mov rax, rdx
shr rax, 3Fh
sar rdx, 6
add rax, rdx
inc rax
mov [r14+8], rax
loc_313D8:
test r15d, r15d
jz short loc_31400
mov ecx, r15d
imul rcx, [r14+40h]
mov rax, rcx
imul rsi
add rdx, rcx
mov rax, rdx
shr rax, 3Fh
sar rdx, 6
add rdx, rax
mov [r14+10h], rdx
loc_31400:
mov rdi, [r14+108h]
test rdi, rdi
jnz short loc_31435
loc_3140C:
mov rdi, rbx
pop rbx
pop r12
pop r14
pop r15
pop rbp
jmp _pthread_mutex_unlock
loc_3141C:
lea rsi, aWorkspaceLlm4b_25; "/workspace/llm4binary/github2025/eloqsq"...
mov rdi, rbx
mov edx, 46Dh
call psi_mutex_lock
jmp loc_313A3
loc_31435:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_3140C
| long long change_pagecache_param(_QWORD *a1, unsigned int a2, unsigned int a3)
{
_QWORD *v4; // rbx
long long v5; // rdi
v4 = a1 + 25;
if ( a1[33] )
psi_mutex_lock(
(long long)(a1 + 25),
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",
0x46Du);
else
pthread_mutex_lock(a1 + 25);
if ( a2 )
a1[1] = a1[8] * a2 / 100LL + 1;
if ( a3 )
a1[2] = a1[8] * a3 / 100LL;
v5 = a1[33];
if ( v5 )
((void ( *)(long long, unsigned long long))PSI_server[44])(v5, 0xA3D70A3D70A3D70BLL);
return pthread_mutex_unlock(v4);
}
| change_pagecache_param:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R15D,EDX
MOV R12D,ESI
MOV R14,RDI
LEA RBX,[RDI + 0xc8]
CMP qword ptr [RDI + 0x108],0x0
JNZ 0x0013141c
MOV RDI,RBX
CALL 0x00129220
LAB_001313a3:
MOV RSI,-0x5c28f5c28f5c28f5
TEST R12D,R12D
JZ 0x001313d8
MOV ECX,R12D
IMUL RCX,qword ptr [R14 + 0x40]
MOV RAX,RCX
IMUL RSI
ADD RDX,RCX
MOV RAX,RDX
SHR RAX,0x3f
SAR RDX,0x6
ADD RAX,RDX
INC RAX
MOV qword ptr [R14 + 0x8],RAX
LAB_001313d8:
TEST R15D,R15D
JZ 0x00131400
MOV ECX,R15D
IMUL RCX,qword ptr [R14 + 0x40]
MOV RAX,RCX
IMUL RSI
ADD RDX,RCX
MOV RAX,RDX
SHR RAX,0x3f
SAR RDX,0x6
ADD RDX,RAX
MOV qword ptr [R14 + 0x10],RDX
LAB_00131400:
MOV RDI,qword ptr [R14 + 0x108]
TEST RDI,RDI
JNZ 0x00131435
LAB_0013140c:
MOV RDI,RBX
POP RBX
POP R12
POP R14
POP R15
POP RBP
JMP 0x001291e0
LAB_0013141c:
LEA RSI,[0x1d959a]
MOV RDI,RBX
MOV EDX,0x46d
CALL 0x0012eb8f
JMP 0x001313a3
LAB_00131435:
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x0013140c
|
void change_pagecache_param(long param_1,uint param_2,uint param_3)
{
pthread_mutex_t *__mutex;
__mutex = (pthread_mutex_t *)(param_1 + 200);
if (*(long *)(param_1 + 0x108) == 0) {
pthread_mutex_lock(__mutex);
}
else {
psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",
0x46d);
}
if (param_2 != 0) {
*(long *)(param_1 + 8) = (long)((ulong)param_2 * *(long *)(param_1 + 0x40)) / 100 + 1;
}
if (param_3 != 0) {
*(long *)(param_1 + 0x10) = (long)((ulong)param_3 * *(long *)(param_1 + 0x40)) / 100;
}
if (*(long *)(param_1 + 0x108) != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(__mutex);
return;
}
| |
37,822 | mi_rec_pos | eloqsql/storage/myisam/mi_search.c | my_off_t _mi_rec_pos(MYISAM_SHARE *s, uchar *ptr)
{
my_off_t pos;
switch (s->rec_reflength) {
#if SIZEOF_OFF_T > 4
case 8:
pos= (my_off_t) mi_uint8korr(ptr);
if (pos == HA_OFFSET_ERROR)
return HA_OFFSET_ERROR; /* end of list */
break;
case 7:
pos= (my_off_t) mi_uint7korr(ptr);
if (pos == (((my_off_t) 1) << 56) -1)
return HA_OFFSET_ERROR; /* end of list */
break;
case 6:
pos= (my_off_t) mi_uint6korr(ptr);
if (pos == (((my_off_t) 1) << 48) -1)
return HA_OFFSET_ERROR; /* end of list */
break;
case 5:
pos= (my_off_t) mi_uint5korr(ptr);
if (pos == (((my_off_t) 1) << 40) -1)
return HA_OFFSET_ERROR; /* end of list */
break;
#else
case 8:
case 7:
case 6:
case 5:
ptr+= (s->rec_reflength-4);
/* fall through */
#endif
case 4:
pos= (my_off_t) mi_uint4korr(ptr);
if (pos == (my_off_t) (uint32) ~0L)
return HA_OFFSET_ERROR;
break;
case 3:
pos= (my_off_t) mi_uint3korr(ptr);
if (pos == (my_off_t) (1 << 24) -1)
return HA_OFFSET_ERROR;
break;
case 2:
pos= (my_off_t) mi_uint2korr(ptr);
if (pos == (my_off_t) (1 << 16) -1)
return HA_OFFSET_ERROR;
break;
default: abort(); /* Impossible */
}
return ((s->options &
(HA_OPTION_PACK_RECORD | HA_OPTION_COMPRESS_RECORD)) ? pos :
pos*s->base.pack_reclength);
} | O0 | c | mi_rec_pos:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movl 0x338(%rax), %eax
addl $-0x2, %eax
movl %eax, %ecx
movq %rcx, -0x28(%rbp)
subl $0x6, %eax
ja 0xc0ac4
movq -0x28(%rbp), %rax
leaq 0x98c6d(%rip), %rcx # 0x159554
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x18(%rbp), %rax
movzbl 0x7(%rax), %eax
movq -0x18(%rbp), %rcx
movzbl 0x6(%rcx), %ecx
shll $0x8, %ecx
orl %ecx, %eax
movq -0x18(%rbp), %rcx
movzbl 0x5(%rcx), %ecx
shll $0x10, %ecx
orl %ecx, %eax
movq -0x18(%rbp), %rcx
movzbl 0x4(%rcx), %ecx
shll $0x18, %ecx
orl %ecx, %eax
movl %eax, %eax
movq -0x18(%rbp), %rcx
movzbl 0x3(%rcx), %ecx
movq -0x18(%rbp), %rdx
movzbl 0x2(%rdx), %edx
shll $0x8, %edx
orl %edx, %ecx
movq -0x18(%rbp), %rdx
movzbl 0x1(%rdx), %edx
shll $0x10, %edx
orl %edx, %ecx
movq -0x18(%rbp), %rdx
movzbl (%rdx), %edx
shll $0x18, %edx
orl %edx, %ecx
movl %ecx, %ecx
shlq $0x20, %rcx
orq %rcx, %rax
movq %rax, -0x20(%rbp)
cmpq $-0x1, -0x20(%rbp)
jne 0xc0970
movq $-0x1, -0x8(%rbp)
jmp 0xc0b04
jmp 0xc0ac9
movq -0x18(%rbp), %rdi
callq 0xc0530
movq %rax, -0x20(%rbp)
movabsq $0xffffffffffffff, %rax # imm = 0xFFFFFFFFFFFFFF
cmpq %rax, -0x20(%rbp)
jne 0xc099f
movq $-0x1, -0x8(%rbp)
jmp 0xc0b04
jmp 0xc0ac9
movq -0x18(%rbp), %rdi
callq 0xc0590
movq %rax, -0x20(%rbp)
movabsq $0xffffffffffff, %rax # imm = 0xFFFFFFFFFFFF
cmpq %rax, -0x20(%rbp)
jne 0xc09ce
movq $-0x1, -0x8(%rbp)
jmp 0xc0b04
jmp 0xc0ac9
movq -0x18(%rbp), %rdi
callq 0xc05e0
movq %rax, -0x20(%rbp)
movabsq $0xffffffffff, %rax # imm = 0xFFFFFFFFFF
cmpq %rax, -0x20(%rbp)
jne 0xc09fd
movq $-0x1, -0x8(%rbp)
jmp 0xc0b04
jmp 0xc0ac9
movq -0x18(%rbp), %rax
movzbl 0x3(%rax), %eax
movq -0x18(%rbp), %rcx
movzbl 0x2(%rcx), %ecx
shll $0x8, %ecx
orl %ecx, %eax
movq -0x18(%rbp), %rcx
movzbl 0x1(%rcx), %ecx
shll $0x10, %ecx
orl %ecx, %eax
movq -0x18(%rbp), %rcx
movzbl (%rcx), %ecx
shll $0x18, %ecx
orl %ecx, %eax
movl %eax, %eax
movq %rax, -0x20(%rbp)
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
cmpq %rax, -0x20(%rbp)
jne 0xc0a4e
movq $-0x1, -0x8(%rbp)
jmp 0xc0b04
jmp 0xc0ac9
movq -0x18(%rbp), %rax
movzbl 0x2(%rax), %eax
movq -0x18(%rbp), %rcx
movzbl 0x1(%rcx), %ecx
shll $0x8, %ecx
orl %ecx, %eax
movq -0x18(%rbp), %rcx
movzbl (%rcx), %ecx
shll $0x10, %ecx
orl %ecx, %eax
movl %eax, %eax
movq %rax, -0x20(%rbp)
cmpq $0xffffff, -0x20(%rbp) # imm = 0xFFFFFF
jne 0xc0a8b
movq $-0x1, -0x8(%rbp)
jmp 0xc0b04
jmp 0xc0ac9
movq -0x18(%rbp), %rax
movzbl 0x1(%rax), %eax
movzwl %ax, %eax
movq -0x18(%rbp), %rcx
movzbl (%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movzwl %ax, %eax
movq %rax, -0x20(%rbp)
cmpq $0xffff, -0x20(%rbp) # imm = 0xFFFF
jne 0xc0ac2
movq $-0x1, -0x8(%rbp)
jmp 0xc0b04
jmp 0xc0ac9
callq 0x2a5d0
movq -0x10(%rbp), %rax
movq 0x318(%rax), %rax
andq $0x5, %rax
cmpq $0x0, %rax
je 0xc0ae8
movq -0x20(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0xc0afc
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
imulq 0x148(%rcx), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nop
| _mi_rec_pos:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
mov eax, [rax+338h]
add eax, 0FFFFFFFEh; switch 7 cases
mov ecx, eax
mov [rbp+var_28], rcx
sub eax, 6
ja def_C08EE; jumptable 00000000000C08EE default case
mov rax, [rbp+var_28]
lea rcx, jpt_C08EE
movsxd rax, ds:(jpt_C08EE - 159554h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_C08F0:
mov rax, [rbp+var_18]; jumptable 00000000000C08EE case 8
movzx eax, byte ptr [rax+7]
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx+6]
shl ecx, 8
or eax, ecx
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx+5]
shl ecx, 10h
or eax, ecx
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx+4]
shl ecx, 18h
or eax, ecx
mov eax, eax
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx+3]
mov rdx, [rbp+var_18]
movzx edx, byte ptr [rdx+2]
shl edx, 8
or ecx, edx
mov rdx, [rbp+var_18]
movzx edx, byte ptr [rdx+1]
shl edx, 10h
or ecx, edx
mov rdx, [rbp+var_18]
movzx edx, byte ptr [rdx]
shl edx, 18h
or ecx, edx
mov ecx, ecx
shl rcx, 20h
or rax, rcx
mov [rbp+var_20], rax
cmp [rbp+var_20], 0FFFFFFFFFFFFFFFFh
jnz short loc_C0970
mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh
jmp loc_C0B04
loc_C0970:
jmp loc_C0AC9
loc_C0975:
mov rdi, [rbp+var_18]; jumptable 00000000000C08EE case 7
call mi_uint7korr_0
mov [rbp+var_20], rax
mov rax, 0FFFFFFFFFFFFFFh
cmp [rbp+var_20], rax
jnz short loc_C099F
mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh
jmp loc_C0B04
loc_C099F:
jmp loc_C0AC9
loc_C09A4:
mov rdi, [rbp+var_18]; jumptable 00000000000C08EE case 6
call mi_uint6korr_0
mov [rbp+var_20], rax
mov rax, 0FFFFFFFFFFFFh
cmp [rbp+var_20], rax
jnz short loc_C09CE
mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh
jmp loc_C0B04
loc_C09CE:
jmp loc_C0AC9
loc_C09D3:
mov rdi, [rbp+var_18]; jumptable 00000000000C08EE case 5
call mi_uint5korr_0
mov [rbp+var_20], rax
mov rax, 0FFFFFFFFFFh
cmp [rbp+var_20], rax
jnz short loc_C09FD
mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh
jmp loc_C0B04
loc_C09FD:
jmp loc_C0AC9
loc_C0A02:
mov rax, [rbp+var_18]; jumptable 00000000000C08EE case 4
movzx eax, byte ptr [rax+3]
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx+2]
shl ecx, 8
or eax, ecx
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx+1]
shl ecx, 10h
or eax, ecx
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx]
shl ecx, 18h
or eax, ecx
mov eax, eax
mov [rbp+var_20], rax
mov eax, 0FFFFFFFFh
cmp [rbp+var_20], rax
jnz short loc_C0A4E
mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh
jmp loc_C0B04
loc_C0A4E:
jmp short loc_C0AC9
loc_C0A50:
mov rax, [rbp+var_18]; jumptable 00000000000C08EE case 3
movzx eax, byte ptr [rax+2]
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx+1]
shl ecx, 8
or eax, ecx
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx]
shl ecx, 10h
or eax, ecx
mov eax, eax
mov [rbp+var_20], rax
cmp [rbp+var_20], 0FFFFFFh
jnz short loc_C0A8B
mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh
jmp short loc_C0B04
loc_C0A8B:
jmp short loc_C0AC9
loc_C0A8D:
mov rax, [rbp+var_18]; jumptable 00000000000C08EE case 2
movzx eax, byte ptr [rax+1]
movzx eax, ax
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx]
movzx ecx, cx
shl ecx, 8
or eax, ecx
movzx eax, ax
mov [rbp+var_20], rax
cmp [rbp+var_20], 0FFFFh
jnz short loc_C0AC2
mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh
jmp short loc_C0B04
loc_C0AC2:
jmp short loc_C0AC9
def_C08EE:
call _abort; jumptable 00000000000C08EE default case
loc_C0AC9:
mov rax, [rbp+var_10]
mov rax, [rax+318h]
and rax, 5
cmp rax, 0
jz short loc_C0AE8
mov rax, [rbp+var_20]
mov [rbp+var_30], rax
jmp short loc_C0AFC
loc_C0AE8:
mov rax, [rbp+var_20]
mov rcx, [rbp+var_10]
imul rax, [rcx+148h]
mov [rbp+var_30], rax
loc_C0AFC:
mov rax, [rbp+var_30]
mov [rbp+var_8], rax
loc_C0B04:
mov rax, [rbp+var_8]
add rsp, 30h
pop rbp
retn
| long long mi_rec_pos(long long a1, unsigned int *a2, long long a3)
{
unsigned long long v4; // [rsp+0h] [rbp-30h]
unsigned long long v5; // [rsp+10h] [rbp-20h]
long long v6; // [rsp+28h] [rbp-8h]
switch ( *(_DWORD *)(a1 + 824) )
{
case 2:
v5 = _byteswap_ushort(*(_WORD *)a2);
if ( v5 != 0xFFFF )
goto LABEL_24;
v6 = -1LL;
break;
case 3:
v5 = (*(unsigned __int8 *)a2 << 16) | (*((unsigned __int8 *)a2 + 1) << 8) | (unsigned int)*((unsigned __int8 *)a2
+ 2);
if ( v5 != 0xFFFFFF )
goto LABEL_24;
v6 = -1LL;
break;
case 4:
v5 = _byteswap_ulong(*a2);
if ( v5 != 0xFFFFFFFF )
goto LABEL_24;
v6 = -1LL;
break;
case 5:
v5 = mi_uint5korr_0(a2);
if ( v5 != 0xFFFFFFFFFFLL )
goto LABEL_24;
v6 = -1LL;
break;
case 6:
v5 = mi_uint6korr_0(a2);
if ( v5 != 0xFFFFFFFFFFFFLL )
goto LABEL_24;
v6 = -1LL;
break;
case 7:
v5 = mi_uint7korr_0(a2);
if ( v5 != 0xFFFFFFFFFFFFFFLL )
goto LABEL_24;
v6 = -1LL;
break;
case 8:
v5 = ((unsigned long long)_byteswap_ulong(*a2) << 32) | _byteswap_ulong(a2[1]);
if ( v5 == -1LL )
{
v6 = -1LL;
}
else
{
LABEL_24:
if ( (*(_QWORD *)(a1 + 792) & 5LL) != 0 )
v4 = v5;
else
v4 = *(_QWORD *)(a1 + 328) * v5;
v6 = v4;
}
break;
default:
abort(a1, a2, a3);
}
return v6;
}
| _mi_rec_pos:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x338]
ADD EAX,-0x2
MOV ECX,EAX
MOV qword ptr [RBP + -0x28],RCX
SUB EAX,0x6
JA 0x001c0ac4
MOV RAX,qword ptr [RBP + -0x28]
LEA RCX,[0x259554]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_8:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x7]
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x6]
SHL ECX,0x8
OR EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x5]
SHL ECX,0x10
OR EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x4]
SHL ECX,0x18
OR EAX,ECX
MOV EAX,EAX
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x3]
MOV RDX,qword ptr [RBP + -0x18]
MOVZX EDX,byte ptr [RDX + 0x2]
SHL EDX,0x8
OR ECX,EDX
MOV RDX,qword ptr [RBP + -0x18]
MOVZX EDX,byte ptr [RDX + 0x1]
SHL EDX,0x10
OR ECX,EDX
MOV RDX,qword ptr [RBP + -0x18]
MOVZX EDX,byte ptr [RDX]
SHL EDX,0x18
OR ECX,EDX
MOV ECX,ECX
SHL RCX,0x20
OR RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
CMP qword ptr [RBP + -0x20],-0x1
JNZ 0x001c0970
MOV qword ptr [RBP + -0x8],-0x1
JMP 0x001c0b04
LAB_001c0970:
JMP 0x001c0ac9
caseD_7:
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x001c0530
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,0xffffffffffffff
CMP qword ptr [RBP + -0x20],RAX
JNZ 0x001c099f
MOV qword ptr [RBP + -0x8],-0x1
JMP 0x001c0b04
LAB_001c099f:
JMP 0x001c0ac9
caseD_6:
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x001c0590
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,0xffffffffffff
CMP qword ptr [RBP + -0x20],RAX
JNZ 0x001c09ce
MOV qword ptr [RBP + -0x8],-0x1
JMP 0x001c0b04
LAB_001c09ce:
JMP 0x001c0ac9
caseD_5:
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x001c05e0
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,0xffffffffff
CMP qword ptr [RBP + -0x20],RAX
JNZ 0x001c09fd
MOV qword ptr [RBP + -0x8],-0x1
JMP 0x001c0b04
LAB_001c09fd:
JMP 0x001c0ac9
caseD_4:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x3]
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x2]
SHL ECX,0x8
OR EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x1]
SHL ECX,0x10
OR EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX]
SHL ECX,0x18
OR EAX,ECX
MOV EAX,EAX
MOV qword ptr [RBP + -0x20],RAX
MOV EAX,0xffffffff
CMP qword ptr [RBP + -0x20],RAX
JNZ 0x001c0a4e
MOV qword ptr [RBP + -0x8],-0x1
JMP 0x001c0b04
LAB_001c0a4e:
JMP 0x001c0ac9
caseD_3:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x2]
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x1]
SHL ECX,0x8
OR EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX]
SHL ECX,0x10
OR EAX,ECX
MOV EAX,EAX
MOV qword ptr [RBP + -0x20],RAX
CMP qword ptr [RBP + -0x20],0xffffff
JNZ 0x001c0a8b
MOV qword ptr [RBP + -0x8],-0x1
JMP 0x001c0b04
LAB_001c0a8b:
JMP 0x001c0ac9
caseD_2:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x1]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX]
MOVZX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOVZX EAX,AX
MOV qword ptr [RBP + -0x20],RAX
CMP qword ptr [RBP + -0x20],0xffff
JNZ 0x001c0ac2
MOV qword ptr [RBP + -0x8],-0x1
JMP 0x001c0b04
LAB_001c0ac2:
JMP 0x001c0ac9
default:
CALL 0x0012a5d0
LAB_001c0ac9:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x318]
AND RAX,0x5
CMP RAX,0x0
JZ 0x001c0ae8
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x30],RAX
JMP 0x001c0afc
LAB_001c0ae8:
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x10]
IMUL RAX,qword ptr [RCX + 0x148]
MOV qword ptr [RBP + -0x30],RAX
LAB_001c0afc:
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x8],RAX
LAB_001c0b04:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x30
POP RBP
RET
|
ulong _mi_rec_pos(long param_1,int1 *param_2)
{
ulong local_38;
ulong local_28;
switch(*(int4 *)(param_1 + 0x338)) {
case 2:
local_28 = (ulong)CONCAT11(*param_2,param_2[1]);
if (local_28 == 0xffff) {
return 0xffffffffffffffff;
}
break;
case 3:
local_28 = (ulong)CONCAT12(*param_2,CONCAT11(param_2[1],param_2[2]));
if (local_28 == 0xffffff) {
return 0xffffffffffffffff;
}
break;
case 4:
local_28 = (ulong)CONCAT13(*param_2,CONCAT12(param_2[1],CONCAT11(param_2[2],param_2[3])));
if (local_28 == 0xffffffff) {
return 0xffffffffffffffff;
}
break;
case 5:
local_28 = mi_uint5korr(param_2);
if (local_28 == 0xffffffffff) {
return 0xffffffffffffffff;
}
break;
case 6:
local_28 = mi_uint6korr(param_2);
if (local_28 == 0xffffffffffff) {
return 0xffffffffffffffff;
}
break;
case 7:
local_28 = mi_uint7korr(param_2);
if (local_28 == 0xffffffffffffff) {
return 0xffffffffffffffff;
}
break;
case 8:
local_28 = CONCAT44(CONCAT13(*param_2,CONCAT12(param_2[1],CONCAT11(param_2[2],param_2[3]))),
CONCAT13(param_2[4],CONCAT12(param_2[5],CONCAT11(param_2[6],param_2[7]))));
if (local_28 == 0xffffffffffffffff) {
return 0xffffffffffffffff;
}
break;
default:
/* WARNING: Subroutine does not return */
abort();
}
if ((*(ulong *)(param_1 + 0x318) & 5) == 0) {
local_38 = local_28 * *(long *)(param_1 + 0x148);
}
else {
local_38 = local_28;
}
return local_38;
}
| |
37,823 | 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>::type_name() const | monkey531[P]llama/common/./json.hpp | JSON_HEDLEY_RETURNS_NON_NULL
const char* type_name() const noexcept
{
switch (m_data.m_type)
{
case value_t::null:
return "null";
case value_t::object:
return "object";
case value_t::array:
return "array";
case value_t::string:
return "string";
case value_t::boolean:
return "boolean";
case value_t::binary:
return "binary";
case value_t::discarded:
return "discarded";
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
default:
return "number";
}
} | O0 | cpp | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::type_name() const:
movq %rdi, -0x10(%rsp)
movq -0x10(%rsp), %rax
movzbl (%rax), %eax
movq %rax, -0x18(%rsp)
subq $0x9, %rax
ja 0xa1811
movq -0x18(%rsp), %rax
leaq 0x11f44c(%rip), %rcx # 0x1c0bf0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x12d0cf(%rip), %rax # 0x1ce883
movq %rax, -0x8(%rsp)
jmp 0xa181d
leaq 0x12d80d(%rip), %rax # 0x1cefcf
movq %rax, -0x8(%rsp)
jmp 0xa181d
leaq 0x12181c(%rip), %rax # 0x1c2fec
movq %rax, -0x8(%rsp)
jmp 0xa181d
leaq 0x1296bd(%rip), %rax # 0x1cae9b
movq %rax, -0x8(%rsp)
jmp 0xa181d
leaq 0x121322(%rip), %rax # 0x1c2b0e
movq %rax, -0x8(%rsp)
jmp 0xa181d
leaq 0x12814d(%rip), %rax # 0x1c9947
movq %rax, -0x8(%rsp)
jmp 0xa181d
leaq 0x128146(%rip), %rax # 0x1c994e
movq %rax, -0x8(%rsp)
jmp 0xa181d
jmp 0xa1811
leaq 0x133025(%rip), %rax # 0x1d483d
movq %rax, -0x8(%rsp)
movq -0x8(%rsp), %rax
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
| _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv:
mov [rsp+var_10], rdi
mov rax, [rsp+var_10]
movzx eax, byte ptr [rax]
mov [rsp+var_18], rax
sub rax, 9; switch 10 cases
ja short def_A17AB; jumptable 00000000000A17AB default case
mov rax, [rsp+var_18]
lea rcx, jpt_A17AB
movsxd rax, ds:(jpt_A17AB - 1C0BF0h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_A17AD:
lea rax, aOnNull_0+5; jumptable 00000000000A17AB case 0
mov [rsp+var_8], rax
jmp short loc_A181D
loc_A17BB:
lea rax, aIsNotAnObject+0Ch; jumptable 00000000000A17AB case 1
mov [rsp+var_8], rax
jmp short loc_A181D
loc_A17C9:
lea rax, aNullableString+10h; jumptable 00000000000A17AB case 2
mov [rsp+var_8], rax
jmp short loc_A181D
loc_A17D7:
lea rax, aDateTimeString+0Ah; jumptable 00000000000A17AB case 3
mov [rsp+var_8], rax
jmp short loc_A181D
loc_A17E5:
lea rax, aBoolean; jumptable 00000000000A17AB case 4
mov [rsp+var_8], rax
jmp short loc_A181D
loc_A17F3:
lea rax, aBinary; jumptable 00000000000A17AB case 8
mov [rsp+var_8], rax
jmp short loc_A181D
loc_A1801:
lea rax, aDiscarded; jumptable 00000000000A17AB case 9
mov [rsp+var_8], rax
jmp short loc_A181D
loc_A180F:
jmp short $+2; jumptable 00000000000A17AB cases 5-7
def_A17AB:
lea rax, aHighPrecisionN+0Fh; jumptable 00000000000A17AB default case
mov [rsp+var_8], rax
loc_A181D:
mov rax, [rsp+var_8]
retn
| char * nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name(
_BYTE *a1)
{
char *v2; // [rsp+10h] [rbp-8h]
switch ( *a1 )
{
case 0:
v2 = "null";
break;
case 1:
v2 = "object";
break;
case 2:
v2 = "array";
break;
case 3:
v2 = (char *)"string";
break;
case 4:
v2 = "boolean";
break;
case 8:
v2 = "binary";
break;
case 9:
v2 = "discarded";
break;
default:
v2 = "number";
break;
}
return v2;
}
| type_name:
MOV qword ptr [RSP + -0x10],RDI
MOV RAX,qword ptr [RSP + -0x10]
MOVZX EAX,byte ptr [RAX]
MOV qword ptr [RSP + -0x18],RAX
SUB RAX,0x9
JA 0x001a1811
MOV RAX,qword ptr [RSP + -0x18]
LEA RCX,[0x2c0bf0]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_0:
LEA RAX,[0x2ce883]
MOV qword ptr [RSP + -0x8],RAX
JMP 0x001a181d
caseD_1:
LEA RAX,[0x2cefcf]
MOV qword ptr [RSP + -0x8],RAX
JMP 0x001a181d
caseD_2:
LEA RAX,[0x2c2fec]
MOV qword ptr [RSP + -0x8],RAX
JMP 0x001a181d
caseD_3:
LEA RAX,[0x2cae9b]
MOV qword ptr [RSP + -0x8],RAX
JMP 0x001a181d
caseD_4:
LEA RAX,[0x2c2b0e]
MOV qword ptr [RSP + -0x8],RAX
JMP 0x001a181d
caseD_8:
LEA RAX,[0x2c9947]
MOV qword ptr [RSP + -0x8],RAX
JMP 0x001a181d
caseD_9:
LEA RAX,[0x2c994e]
MOV qword ptr [RSP + -0x8],RAX
JMP 0x001a181d
caseD_5:
JMP 0x001a1811
default:
LEA RAX,[0x2d483d]
MOV qword ptr [RSP + -0x8],RAX
LAB_001a181d:
MOV RAX,qword ptr [RSP + -0x8]
RET
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>::type_name() const */
char * __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::type_name(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*this)
{
char *local_8;
switch(*this) {
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x0:
local_8 = "null";
break;
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x1:
local_8 = "object";
break;
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x2:
local_8 = "array";
break;
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x3:
local_8 = "string";
break;
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x4:
local_8 = "boolean";
break;
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x5:
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x6:
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x7:
default:
local_8 = "number";
break;
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x8:
local_8 = "binary";
break;
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x9:
local_8 = "discarded";
}
return local_8;
}
| |
37,824 | 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>::type_name() const | monkey531[P]llama/common/./json.hpp | JSON_HEDLEY_RETURNS_NON_NULL
const char* type_name() const noexcept
{
switch (m_data.m_type)
{
case value_t::null:
return "null";
case value_t::object:
return "object";
case value_t::array:
return "array";
case value_t::string:
return "string";
case value_t::boolean:
return "boolean";
case value_t::binary:
return "binary";
case value_t::discarded:
return "discarded";
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
default:
return "number";
}
} | 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>::type_name() const:
movzbl (%rdi), %eax
cmpq $0x9, %rax
ja 0x37e1a
leaq 0x81e9a(%rip), %rcx # 0xb9cac
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
retq
leaq 0x7b01e(%rip), %rax # 0xb2e3f
retq
| _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv:
movzx eax, byte ptr [rdi]
cmp rax, 9
ja short loc_37E1A
lea rcx, unk_B9CAC
movsxd rax, dword ptr [rcx+rax*4]
add rax, rcx
retn
loc_37E1A:
lea rax, aNumber; "number"
retn
| const char * nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name(
unsigned __int8 *a1)
{
unsigned long long v1; // rax
v1 = *a1;
if ( v1 > 9 )
return "number";
else
return (char *)dword_B9CAC + dword_B9CAC[v1];
}
| type_name:
MOVZX EAX,byte ptr [RDI]
CMP RAX,0x9
JA 0x00137e1a
LEA RCX,[0x1b9cac]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
RET
LAB_00137e1a:
LEA RAX,[0x1b2e3f]
RET
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>::type_name() const */
char * __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::type_name(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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)
{
if ((ulong)(byte)*this < 10) {
return &DAT_001b9cac + *(int *)(&DAT_001b9cac + (ulong)(byte)*this * 4);
}
return "number";
}
| |
37,825 | 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>::type_name() const | monkey531[P]llama/common/./json.hpp | JSON_HEDLEY_RETURNS_NON_NULL
const char* type_name() const noexcept
{
switch (m_data.m_type)
{
case value_t::null:
return "null";
case value_t::object:
return "object";
case value_t::array:
return "array";
case value_t::string:
return "string";
case value_t::boolean:
return "boolean";
case value_t::binary:
return "binary";
case value_t::discarded:
return "discarded";
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
default:
return "number";
}
} | 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>::type_name() const:
movzbl (%rdi), %eax
cmpq $0x9, %rax
ja 0x3750a
leaq 0x7f7aa(%rip), %rcx # 0xb6cac
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
retq
leaq 0x7892e(%rip), %rax # 0xafe3f
retq
| _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv:
movzx eax, byte ptr [rdi]
cmp rax, 9
ja short loc_3750A
lea rcx, unk_B6CAC
movsxd rax, dword ptr [rcx+rax*4]
add rax, rcx
retn
loc_3750A:
lea rax, aNumber; "number"
retn
| const char * nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name(
unsigned __int8 *a1)
{
unsigned long long v1; // rax
v1 = *a1;
if ( v1 > 9 )
return "number";
else
return (char *)dword_B6CAC + dword_B6CAC[v1];
}
| type_name:
MOVZX EAX,byte ptr [RDI]
CMP RAX,0x9
JA 0x0013750a
LEA RCX,[0x1b6cac]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
RET
LAB_0013750a:
LEA RAX,[0x1afe3f]
RET
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>::type_name() const */
char * __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::type_name(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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)
{
if ((ulong)(byte)*this < 10) {
return &DAT_001b6cac + *(int *)(&DAT_001b6cac + (ulong)(byte)*this * 4);
}
return "number";
}
| |
37,826 | zip_stream_copy | 7CodeWizard[P]stablediffusion/thirdparty/zip.c | ssize_t zip_stream_copy(struct zip_t *zip, void **buf, size_t *bufsize) {
size_t n;
if (!zip) {
return (ssize_t)ZIP_ENOINIT;
}
zip_archive_finalize(&(zip->archive));
n = (size_t)zip->archive.m_archive_size;
if (bufsize != NULL) {
*bufsize = n;
}
*buf = calloc(sizeof(unsigned char), n);
memcpy(*buf, zip->archive.m_pState->m_pMem, n);
return (ssize_t)n;
} | O1 | c | zip_stream_copy:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x8c2aa
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %r14
callq 0x89d74
movq %r14, %rdi
callq 0x8a8b9
movq (%r14), %rbx
testq %r12, %r12
je 0x8c282
movq %rbx, (%r12)
movl $0x1, %edi
movq %rbx, %rsi
callq 0xa390
movq %rax, (%r15)
movq 0x68(%r14), %rcx
movq 0x80(%rcx), %rsi
movq %rax, %rdi
movq %rbx, %rdx
callq 0xa4c0
jmp 0x8c2b1
movq $-0x1, %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
| zip_stream_copy:
push r15
push r14
push r12
push rbx
push rax
test rdi, rdi
jz short loc_8C2AA
mov r12, rdx
mov r15, rsi
mov r14, rdi
call mz_zip_writer_finalize_archive
mov rdi, r14
call zip_archive_truncate
mov rbx, [r14]
test r12, r12
jz short loc_8C282
mov [r12], rbx
loc_8C282:
mov edi, 1
mov rsi, rbx
call _calloc
mov [r15], rax
mov rcx, [r14+68h]
mov rsi, [rcx+80h]
mov rdi, rax
mov rdx, rbx
call _memcpy
jmp short loc_8C2B1
loc_8C2AA:
mov rbx, 0FFFFFFFFFFFFFFFFh
loc_8C2B1:
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
| long long zip_stream_copy(long long *a1, long long *a2, long long *a3, double a4)
{
long long v5; // rbx
long long v6; // rax
if ( !a1 )
return -1LL;
mz_zip_writer_finalize_archive(a1);
zip_archive_truncate(a1);
v5 = *a1;
if ( a3 )
*a3 = v5;
v6 = calloc(1LL, v5, a4);
*a2 = v6;
memcpy(v6, *(_QWORD *)(a1[13] + 128), v5);
return v5;
}
| |||
37,827 | zip_stream_copy | 7CodeWizard[P]stablediffusion/thirdparty/zip.c | ssize_t zip_stream_copy(struct zip_t *zip, void **buf, size_t *bufsize) {
size_t n;
if (!zip) {
return (ssize_t)ZIP_ENOINIT;
}
zip_archive_finalize(&(zip->archive));
n = (size_t)zip->archive.m_archive_size;
if (bufsize != NULL) {
*bufsize = n;
}
*buf = calloc(sizeof(unsigned char), n);
memcpy(*buf, zip->archive.m_pState->m_pMem, n);
return (ssize_t)n;
} | O2 | c | zip_stream_copy:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x663ef
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %r14
callq 0x63f48
movq %r14, %rdi
callq 0x64a45
movq (%r14), %rbx
testq %r12, %r12
je 0x663c9
movq %rbx, (%r12)
pushq $0x1
popq %rdi
movq %rbx, %rsi
callq 0xa390
movq %rax, (%r15)
movq 0x68(%r14), %rcx
movq 0x80(%rcx), %rsi
movq %rax, %rdi
movq %rbx, %rdx
callq 0xa4c0
jmp 0x663f2
pushq $-0x1
popq %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
| zip_stream_copy:
push r15
push r14
push r12
push rbx
push rax
test rdi, rdi
jz short loc_663EF
mov r12, rdx
mov r15, rsi
mov r14, rdi
call mz_zip_writer_finalize_archive
mov rdi, r14
call zip_archive_truncate
mov rbx, [r14]
test r12, r12
jz short loc_663C9
mov [r12], rbx
loc_663C9:
push 1
pop rdi
mov rsi, rbx
call _calloc
mov [r15], rax
mov rcx, [r14+68h]
mov rsi, [rcx+80h]
mov rdi, rax
mov rdx, rbx
call _memcpy
jmp short loc_663F2
loc_663EF:
push 0FFFFFFFFFFFFFFFFh
pop rbx
loc_663F2:
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
| long long zip_stream_copy(long long *a1, long long *a2, long long *a3)
{
long long v4; // rbx
long long v5; // rax
if ( !a1 )
return -1LL;
mz_zip_writer_finalize_archive((long long)a1);
zip_archive_truncate(a1);
v4 = *a1;
if ( a3 )
*a3 = v4;
v5 = calloc(1LL, v4);
*a2 = v5;
memcpy(v5, *(_QWORD *)(a1[13] + 128), v4);
return v4;
}
| zip_stream_copy:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
TEST RDI,RDI
JZ 0x001663ef
MOV R12,RDX
MOV R15,RSI
MOV R14,RDI
CALL 0x00163f48
MOV RDI,R14
CALL 0x00164a45
MOV RBX,qword ptr [R14]
TEST R12,R12
JZ 0x001663c9
MOV qword ptr [R12],RBX
LAB_001663c9:
PUSH 0x1
POP RDI
MOV RSI,RBX
CALL 0x0010a390
MOV qword ptr [R15],RAX
MOV RCX,qword ptr [R14 + 0x68]
MOV RSI,qword ptr [RCX + 0x80]
MOV RDI,RAX
MOV RDX,RBX
CALL 0x0010a4c0
JMP 0x001663f2
LAB_001663ef:
PUSH -0x1
POP RBX
LAB_001663f2:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
size_t zip_stream_copy(size_t *param_1,int8 *param_2,size_t *param_3)
{
void *__dest;
size_t __size;
if (param_1 == (size_t *)0x0) {
__size = 0xffffffffffffffff;
}
else {
mz_zip_writer_finalize_archive();
zip_archive_truncate(param_1);
__size = *param_1;
if (param_3 != (size_t *)0x0) {
*param_3 = __size;
}
__dest = calloc(1,__size);
*param_2 = __dest;
memcpy(__dest,*(void **)(param_1[0xd] + 0x80),__size);
}
return __size;
}
| |
37,828 | zip_stream_copy | 7CodeWizard[P]stablediffusion/thirdparty/zip.c | ssize_t zip_stream_copy(struct zip_t *zip, void **buf, size_t *bufsize) {
size_t n;
if (!zip) {
return (ssize_t)ZIP_ENOINIT;
}
zip_archive_finalize(&(zip->archive));
n = (size_t)zip->archive.m_archive_size;
if (bufsize != NULL) {
*bufsize = n;
}
*buf = calloc(sizeof(unsigned char), n);
memcpy(*buf, zip->archive.m_pState->m_pMem, n);
return (ssize_t)n;
} | O3 | c | zip_stream_copy:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x8af93
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %r14
callq 0x88a94
movq %r14, %rdi
callq 0x895f8
movq (%r14), %rbx
testq %r12, %r12
je 0x8af6b
movq %rbx, (%r12)
movl $0x1, %edi
movq %rbx, %rsi
callq 0xa380
movq %rax, (%r15)
movq 0x68(%r14), %rcx
movq 0x80(%rcx), %rsi
movq %rax, %rdi
movq %rbx, %rdx
callq 0xa4b0
jmp 0x8af9a
movq $-0x1, %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
| zip_stream_copy:
push r15
push r14
push r12
push rbx
push rax
test rdi, rdi
jz short loc_8AF93
mov r12, rdx
mov r15, rsi
mov r14, rdi
call mz_zip_writer_finalize_archive
mov rdi, r14
call zip_archive_truncate
mov rbx, [r14]
test r12, r12
jz short loc_8AF6B
mov [r12], rbx
loc_8AF6B:
mov edi, 1
mov rsi, rbx
call _calloc
mov [r15], rax
mov rcx, [r14+68h]
mov rsi, [rcx+80h]
mov rdi, rax
mov rdx, rbx
call _memcpy
jmp short loc_8AF9A
loc_8AF93:
mov rbx, 0FFFFFFFFFFFFFFFFh
loc_8AF9A:
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
| long long zip_stream_copy(long long *a1, long long *a2, long long *a3)
{
long long v4; // rbx
long long v5; // rax
if ( !a1 )
return -1LL;
mz_zip_writer_finalize_archive((long long)a1);
zip_archive_truncate(a1);
v4 = *a1;
if ( a3 )
*a3 = v4;
v5 = calloc(1LL, v4);
*a2 = v5;
memcpy(v5, *(_QWORD *)(a1[13] + 128), v4);
return v4;
}
| |||
37,829 | testing::TestInfo* testing::RegisterTest<testing::internal::TypeParameterizedTestSuiteRegistry::CheckForInstantiations()::$_0>(char const*, char const*, char const*, char const*, char const*, int, testing::internal::TypeParameterizedTestSuiteRegistry::CheckForInstantiations()::$_0)::FactoryImpl::~FactoryImpl() | AlayaLite/build_O3/_deps/googletest-src/googletest/include/gtest/gtest.h | explicit FactoryImpl(Factory f) : factory_(std::move(f)) {} | O3 | c | testing::TestInfo* testing::RegisterTest<testing::internal::TypeParameterizedTestSuiteRegistry::CheckForInstantiations()::$_0>(char const*, char const*, char const*, char const*, char const*, int, testing::internal::TypeParameterizedTestSuiteRegistry::CheckForInstantiations()::$_0)::FactoryImpl::~FactoryImpl():
pushq %rbx
movq %rdi, %rbx
leaq 0x41205(%rip), %rax # 0xb3628
movq %rax, (%rdi)
movq 0x48(%rdi), %rdi
leaq 0x58(%rbx), %rax
cmpq %rax, %rdi
je 0x7243e
movq (%rax), %rsi
incq %rsi
callq 0x11120
movq 0x28(%rbx), %rdi
leaq 0x38(%rbx), %rax
cmpq %rax, %rdi
je 0x72456
movq (%rax), %rsi
incq %rsi
callq 0x11120
movq 0x8(%rbx), %rdi
leaq 0x18(%rbx), %rax
cmpq %rax, %rdi
je 0x7246e
movq (%rax), %rsi
incq %rsi
callq 0x11120
movl $0x78, %esi
movq %rbx, %rdi
popq %rbx
jmp 0x11120
| _ZZN7testing12RegisterTestITpTnRiJEZNS_8internal34TypeParameterizedTestSuiteRegistry22CheckForInstantiationsEvE3$_0EEPNS_8TestInfoEPKcS8_S8_S8_S8_iT0_EN11FactoryImplD0Ev:
push rbx
mov rbx, rdi
lea rax, off_B3628
mov [rdi], rax
mov rdi, [rdi+48h]; void *
lea rax, [rbx+58h]
cmp rdi, rax
jz short loc_7243E
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_7243E:
mov rdi, [rbx+28h]; void *
lea rax, [rbx+38h]
cmp rdi, rax
jz short loc_72456
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_72456:
mov rdi, [rbx+8]; void *
lea rax, [rbx+18h]
cmp rdi, rax
jz short loc_7246E
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_7246E:
mov esi, 78h ; 'x'; unsigned __int64
mov rdi, rbx; void *
pop rbx
jmp __ZdlPvm; operator delete(void *,ulong)
| void ZZN7testing12RegisterTestITpTnRiJEZNS_8internal34TypeParameterizedTestSuiteRegistry22CheckForInstantiationsEvE3__0EEPNS_8TestInfoEPKcS8_S8_S8_S8_iT0_EN11FactoryImplD0Ev(
_QWORD *a1)
{
_QWORD *v2; // rdi
_QWORD *v3; // rdi
_QWORD *v4; // rdi
*a1 = &off_B3628;
v2 = (_QWORD *)a1[9];
if ( v2 != a1 + 11 )
operator delete(v2, a1[11] + 1LL);
v3 = (_QWORD *)a1[5];
if ( v3 != a1 + 7 )
operator delete(v3, a1[7] + 1LL);
v4 = (_QWORD *)a1[1];
if ( v4 != a1 + 3 )
operator delete(v4, a1[3] + 1LL);
operator delete(a1, 0x78uLL);
}
| _ZZN7testing12RegisterTestITpTnRiJEZNS_8internal34TypeParameterizedTestSuiteRegistry22CheckForInstantiationsEvE3$_0EEPNS_8TestInfoEPKcS8_S8_S8_S8_iT0_EN11FactoryImplD0Ev:
PUSH RBX
MOV RBX,RDI
LEA RAX,[0x1b3628]
MOV qword ptr [RDI],RAX
MOV RDI,qword ptr [RDI + 0x48]
LEA RAX,[RBX + 0x58]
CMP RDI,RAX
JZ 0x0017243e
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x00111120
LAB_0017243e:
MOV RDI,qword ptr [RBX + 0x28]
LEA RAX,[RBX + 0x38]
CMP RDI,RAX
JZ 0x00172456
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x00111120
LAB_00172456:
MOV RDI,qword ptr [RBX + 0x8]
LEA RAX,[RBX + 0x18]
CMP RDI,RAX
JZ 0x0017246e
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x00111120
LAB_0017246e:
MOV ESI,0x78
MOV RDI,RBX
POP RBX
JMP 0x00111120
|
void _ZZN7testing12RegisterTestITpTnRiJEZNS_8internal34TypeParameterizedTestSuiteRegistry22CheckForInstantiationsEvE3__0EEPNS_8TestInfoEPKcS8_S8_S8_S8_iT0_EN11FactoryImplD0Ev
(int8 *param_1)
{
*param_1 = 0x1b3628;
if ((long *)param_1[9] != param_1 + 0xb) {
operator_delete((long *)param_1[9],param_1[0xb] + 1);
}
if ((long *)param_1[5] != param_1 + 7) {
operator_delete((long *)param_1[5],param_1[7] + 1);
}
if ((long *)param_1[1] != param_1 + 3) {
operator_delete((long *)param_1[1],param_1[3] + 1);
}
operator_delete(param_1,0x78);
return;
}
| |
37,830 | js_strndup | bluesky950520[P]quickjs/quickjs.c | char *js_strndup(JSContext *ctx, const char *s, size_t n)
{
char *ptr;
ptr = js_malloc(ctx, n + 1);
if (ptr) {
memcpy(ptr, s, n);
ptr[n] = '\0';
}
return ptr;
} | O2 | c | js_strndup:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
leaq 0x1(%rdx), %rsi
callq 0x17214
movq %rax, %r15
testq %rax, %rax
je 0x1734c
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0xe5c0
movb $0x0, (%r15,%rbx)
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
| js_strndup:
push r15
push r14
push rbx
mov rbx, rdx
mov r14, rsi
lea rsi, [rdx+1]
call js_malloc
mov r15, rax
test rax, rax
jz short loc_1734C
mov rdi, r15
mov rsi, r14
mov rdx, rbx
call _memcpy
mov byte ptr [r15+rbx], 0
loc_1734C:
mov rax, r15
pop rbx
pop r14
pop r15
retn
| long long js_strndup(long long a1, long long a2, long long a3)
{
long long v4; // rax
long long v5; // r15
v4 = js_malloc(a1, a3 + 1);
v5 = v4;
if ( v4 )
{
memcpy(v4, a2, a3);
*(_BYTE *)(v5 + a3) = 0;
}
return v5;
}
| js_strndup:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RDX
MOV R14,RSI
LEA RSI,[RDX + 0x1]
CALL 0x00117214
MOV R15,RAX
TEST RAX,RAX
JZ 0x0011734c
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
CALL 0x0010e5c0
MOV byte ptr [R15 + RBX*0x1],0x0
LAB_0011734c:
MOV RAX,R15
POP RBX
POP R14
POP R15
RET
|
void * js_strndup(int8 param_1,void *param_2,size_t param_3)
{
void *__dest;
__dest = (void *)js_malloc(param_1,param_3 + 1);
if (__dest != (void *)0x0) {
memcpy(__dest,param_2,param_3);
*(int1 *)((long)__dest + param_3) = 0;
}
return __dest;
}
| |
37,831 | ggml_map_custom1_impl_f32 | 7CodeWizard[P]stablediffusion/ggml/src/ggml.c | static struct ggml_tensor * ggml_map_custom1_impl_f32(
struct ggml_context * ctx,
struct ggml_tensor * a,
const ggml_custom1_op_f32_t fun,
bool inplace) {
bool is_node = false;
if (!inplace && a->grad) {
is_node = true;
}
struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a);
ggml_set_op_params(result, (const void *) &fun, sizeof(fun));
result->op = GGML_OP_MAP_CUSTOM1_F32;
result->grad = is_node ? ggml_dup_tensor(ctx, result) : NULL;
result->src[0] = a;
return result;
} | O1 | c | ggml_map_custom1_impl_f32:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rdx, (%rsp)
testl %ecx, %ecx
je 0x9558e
xorl %ebp, %ebp
jmp 0x9559a
cmpq $0x0, 0x98(%rbx)
setne %bpl
testb %cl, %cl
je 0x955ab
movq %r14, %rdi
movq %rbx, %rsi
callq 0x90b1a
jmp 0x955c4
movl (%rbx), %esi
leaq 0x10(%rbx), %rcx
movq %r14, %rdi
movl $0x4, %edx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x8e8b7
movq %rax, %r15
movq %rsp, %rsi
movl $0x8, %edx
movq %rax, %rdi
callq 0x91e91
movl $0x40, 0x50(%r15)
testb %bpl, %bpl
je 0x95600
movl (%r15), %esi
leaq 0x10(%r15), %rcx
movq %r14, %rdi
movl $0x4, %edx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x8e8b7
jmp 0x95602
xorl %eax, %eax
movq %rax, 0x98(%r15)
movq %rbx, 0xa0(%r15)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| ggml_map_custom1_impl_f32:
push rbp
push r15
push r14
push rbx
push rax
mov rbx, rsi
mov r14, rdi
mov [rsp+28h+var_28], rdx
test ecx, ecx
jz short loc_9558E
xor ebp, ebp
jmp short loc_9559A
loc_9558E:
cmp qword ptr [rbx+98h], 0
setnz bpl
loc_9559A:
test cl, cl
jz short loc_955AB
mov rdi, r14
mov rsi, rbx
call ggml_view_tensor
jmp short loc_955C4
loc_955AB:
mov esi, [rbx]
lea rcx, [rbx+10h]
mov rdi, r14
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call ggml_new_tensor_impl
loc_955C4:
mov r15, rax
mov rsi, rsp
mov edx, 8
mov rdi, rax
call ggml_set_op_params
mov dword ptr [r15+50h], 40h ; '@'
test bpl, bpl
jz short loc_95600
mov esi, [r15]
lea rcx, [r15+10h]
mov rdi, r14
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call ggml_new_tensor_impl
jmp short loc_95602
loc_95600:
xor eax, eax
loc_95602:
mov [r15+98h], rax
mov [r15+0A0h], rbx
mov rax, r15
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| long long ggml_map_custom1_impl_f32(
long long a1,
long long a2,
long long a3,
int a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
double a9,
double a10,
__m128 a11,
__m128 a12)
{
bool v12; // bp
long long v13; // rax
long long v14; // r15
long long v15; // rax
long long v17[5]; // [rsp+0h] [rbp-28h] BYREF
v17[0] = a3;
if ( a4 )
v12 = 0;
else
v12 = *(_QWORD *)(a2 + 152) != 0LL;
if ( (_BYTE)a4 )
v13 = ggml_view_tensor(a1, a2, a5, a6, a7, a8, a9, a10, a11, a12);
else
v13 = ggml_new_tensor_impl(a1, *(_DWORD *)a2, 4, (_QWORD *)(a2 + 16), 0LL, 0LL, a5, a6);
v14 = v13;
ggml_set_op_params(v13, (long long)v17, 8LL);
*(_DWORD *)(v14 + 80) = 64;
if ( v12 )
v15 = ggml_new_tensor_impl(a1, *(_DWORD *)v14, 4, (_QWORD *)(v14 + 16), 0LL, 0LL, a5, a6);
else
v15 = 0LL;
*(_QWORD *)(v14 + 152) = v15;
*(_QWORD *)(v14 + 160) = a2;
return v14;
}
| |||
37,832 | ggml_map_custom1_impl_f32 | 7CodeWizard[P]stablediffusion/ggml/src/ggml.c | static struct ggml_tensor * ggml_map_custom1_impl_f32(
struct ggml_context * ctx,
struct ggml_tensor * a,
const ggml_custom1_op_f32_t fun,
bool inplace) {
bool is_node = false;
if (!inplace && a->grad) {
is_node = true;
}
struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a);
ggml_set_op_params(result, (const void *) &fun, sizeof(fun));
result->op = GGML_OP_MAP_CUSTOM1_F32;
result->grad = is_node ? ggml_dup_tensor(ctx, result) : NULL;
result->src[0] = a;
return result;
} | O2 | c | ggml_map_custom1_impl_f32:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rdx, (%rsp)
testl %ecx, %ecx
je 0x6f07c
movq %r14, %rdi
movq %rbx, %rsi
callq 0x69922
movq %rax, %r15
xorl %ebp, %ebp
jmp 0x6f096
cmpq $0x0, 0x98(%rbx)
setne %bpl
movq %r14, %rdi
movq %rbx, %rsi
callq 0x68a65
movq %rax, %r15
movq %rsp, %rsi
pushq $0x8
popq %rdx
movq %r15, %rdi
callq 0x6ab3d
movl $0x40, 0x50(%r15)
testb %bpl, %bpl
je 0x6f0be
movq %r14, %rdi
movq %r15, %rsi
callq 0x68a65
jmp 0x6f0c0
xorl %eax, %eax
movq %rax, 0x98(%r15)
movq %rbx, 0xa0(%r15)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| ggml_map_custom1_impl_f32:
push rbp
push r15
push r14
push rbx
push rax
mov rbx, rsi
mov r14, rdi
mov [rsp+28h+var_28], rdx
test ecx, ecx
jz short loc_6F07C
mov rdi, r14
mov rsi, rbx
call ggml_view_tensor
mov r15, rax
xor ebp, ebp
jmp short loc_6F096
loc_6F07C:
cmp qword ptr [rbx+98h], 0
setnz bpl
mov rdi, r14
mov rsi, rbx
call ggml_dup_tensor
mov r15, rax
loc_6F096:
mov rsi, rsp
push 8
pop rdx
mov rdi, r15
call ggml_set_op_params
mov dword ptr [r15+50h], 40h ; '@'
test bpl, bpl
jz short loc_6F0BE
mov rdi, r14
mov rsi, r15
call ggml_dup_tensor
jmp short loc_6F0C0
loc_6F0BE:
xor eax, eax
loc_6F0C0:
mov [r15+98h], rax
mov [r15+0A0h], rbx
mov rax, r15
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| long long ggml_map_custom1_impl_f32(
long long a1,
long long a2,
long long a3,
int a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
double a9,
double a10,
__m128 a11,
__m128 a12)
{
long long v12; // r15
bool v13; // bp
long long v14; // rax
_QWORD v16[5]; // [rsp+0h] [rbp-28h] BYREF
v16[0] = a3;
if ( a4 )
{
v12 = ggml_view_tensor(a1, a2, a5, a6, a7, a8, a9, a10, a11, a12);
v13 = 0;
}
else
{
v13 = *(_QWORD *)(a2 + 152) != 0LL;
v12 = ggml_dup_tensor(a1, (unsigned int *)a2);
}
ggml_set_op_params(v12, (long long)v16, 8LL);
*(_DWORD *)(v12 + 80) = 64;
if ( v13 )
v14 = ggml_dup_tensor(a1, (unsigned int *)v12);
else
v14 = 0LL;
*(_QWORD *)(v12 + 152) = v14;
*(_QWORD *)(v12 + 160) = a2;
return v12;
}
| ggml_map_custom1_impl_f32:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R14,RDI
MOV qword ptr [RSP],RDX
TEST ECX,ECX
JZ 0x0016f07c
MOV RDI,R14
MOV RSI,RBX
CALL 0x00169922
MOV R15,RAX
XOR EBP,EBP
JMP 0x0016f096
LAB_0016f07c:
CMP qword ptr [RBX + 0x98],0x0
SETNZ BPL
MOV RDI,R14
MOV RSI,RBX
CALL 0x00168a65
MOV R15,RAX
LAB_0016f096:
MOV RSI,RSP
PUSH 0x8
POP RDX
MOV RDI,R15
CALL 0x0016ab3d
MOV dword ptr [R15 + 0x50],0x40
TEST BPL,BPL
JZ 0x0016f0be
MOV RDI,R14
MOV RSI,R15
CALL 0x00168a65
JMP 0x0016f0c0
LAB_0016f0be:
XOR EAX,EAX
LAB_0016f0c0:
MOV qword ptr [R15 + 0x98],RAX
MOV qword ptr [R15 + 0xa0],RBX
MOV RAX,R15
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
long ggml_map_custom1_impl_f32(int8 param_1,long param_2,int8 param_3,int param_4)
{
long lVar1;
int8 uVar2;
bool bVar3;
int8 local_28;
local_28 = param_3;
if (param_4 == 0) {
bVar3 = *(long *)(param_2 + 0x98) != 0;
lVar1 = ggml_dup_tensor(param_1,param_2);
}
else {
lVar1 = ggml_view_tensor(param_1,param_2);
bVar3 = false;
}
ggml_set_op_params(lVar1,&local_28,8);
*(int4 *)(lVar1 + 0x50) = 0x40;
if (bVar3) {
uVar2 = ggml_dup_tensor(param_1,lVar1);
}
else {
uVar2 = 0;
}
*(int8 *)(lVar1 + 0x98) = uVar2;
*(long *)(lVar1 + 0xa0) = param_2;
return lVar1;
}
| |
37,833 | ggml_map_custom1_impl_f32 | 7CodeWizard[P]stablediffusion/ggml/src/ggml.c | static struct ggml_tensor * ggml_map_custom1_impl_f32(
struct ggml_context * ctx,
struct ggml_tensor * a,
const ggml_custom1_op_f32_t fun,
bool inplace) {
bool is_node = false;
if (!inplace && a->grad) {
is_node = true;
}
struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a);
ggml_set_op_params(result, (const void *) &fun, sizeof(fun));
result->op = GGML_OP_MAP_CUSTOM1_F32;
result->grad = is_node ? ggml_dup_tensor(ctx, result) : NULL;
result->src[0] = a;
return result;
} | O3 | c | ggml_map_custom1_impl_f32:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r15
movq %rdx, 0x8(%rsp)
testl %ecx, %ecx
je 0x94414
movq %r15, %rdi
movq %rbx, %rsi
callq 0x8f880
movq %rax, %r14
leaq 0x8(%rsp), %rsi
movl $0x8, %edx
movq %rax, %rdi
callq 0x90cc8
movl $0x40, 0x50(%r14)
xorl %r12d, %r12d
jmp 0x94479
movq 0x98(%rbx), %r13
movl (%rbx), %esi
leaq 0x10(%rbx), %rcx
xorl %r12d, %r12d
movq %r15, %rdi
movl $0x4, %edx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x8d64f
movq %rax, %r14
leaq 0x8(%rsp), %rsi
movl $0x8, %edx
movq %rax, %rdi
callq 0x90cc8
movl $0x40, 0x50(%r14)
testq %r13, %r13
je 0x94479
movl (%r14), %esi
movq %r14, %rcx
addq $0x10, %rcx
movq %r15, %rdi
movl $0x4, %edx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x8d64f
movq %rax, %r12
movq %r12, 0x98(%r14)
movq %rbx, 0xa0(%r14)
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
| ggml_map_custom1_impl_f32:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 10h
mov rbx, rsi
mov r15, rdi
mov [rsp+38h+var_30], rdx
test ecx, ecx
jz short loc_94414
mov rdi, r15
mov rsi, rbx
call ggml_view_tensor
mov r14, rax
lea rsi, [rsp+38h+var_30]
mov edx, 8
mov rdi, rax
call ggml_set_op_params
mov dword ptr [r14+50h], 40h ; '@'
xor r12d, r12d
jmp short loc_94479
loc_94414:
mov r13, [rbx+98h]
mov esi, [rbx]
lea rcx, [rbx+10h]
xor r12d, r12d
mov rdi, r15
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call ggml_new_tensor_impl
mov r14, rax
lea rsi, [rsp+38h+var_30]
mov edx, 8
mov rdi, rax
call ggml_set_op_params
mov dword ptr [r14+50h], 40h ; '@'
test r13, r13
jz short loc_94479
mov esi, [r14]
mov rcx, r14
add rcx, 10h
mov rdi, r15
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call ggml_new_tensor_impl
mov r12, rax
loc_94479:
mov [r14+98h], r12
mov [r14+0A0h], rbx
mov rax, r14
add rsp, 10h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
| long long ggml_map_custom1_impl_f32(
long long a1,
long long a2,
long long a3,
int a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
double a9,
double a10,
__m128 a11,
__m128 a12)
{
long long v12; // r14
long long v13; // r12
long long v14; // r13
_QWORD v16[6]; // [rsp+8h] [rbp-30h] BYREF
v16[0] = a3;
if ( a4 )
{
v12 = ggml_view_tensor(a1, a2, a5, a6, a7, a8, a9, a10, a11, a12);
ggml_set_op_params(v12, (long long)v16, 8LL);
*(_DWORD *)(v12 + 80) = 64;
v13 = 0LL;
}
else
{
v14 = *(_QWORD *)(a2 + 152);
v13 = 0LL;
v12 = ggml_new_tensor_impl(a1, *(_DWORD *)a2, 4, (_QWORD *)(a2 + 16), 0LL, 0LL, a5, a6);
ggml_set_op_params(v12, (long long)v16, 8LL);
*(_DWORD *)(v12 + 80) = 64;
if ( v14 )
v13 = ggml_new_tensor_impl(a1, *(_DWORD *)v12, 4, (_QWORD *)(v12 + 16), 0LL, 0LL, a5, a6);
}
*(_QWORD *)(v12 + 152) = v13;
*(_QWORD *)(v12 + 160) = a2;
return v12;
}
| |||
37,834 | Dimension::find_chunk(entt::entity) const | untodesu[P]voxelius/game/shared/dimension.cc | Chunk *Dimension::find_chunk(entt::entity entity) const
{
if(chunks.valid(entity))
return chunks.get<ChunkComponent>(entity).chunk;
return nullptr;
} | O3 | cpp | Dimension::find_chunk(entt::entity) const:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
addq $0xb0, %rdi
callq 0x34e46
decq %rdx
cmpq 0xf8(%r14), %rdx
jae 0x75548
addq $0x8, %r14
movq %r14, %rdi
movl $0x52f76421, %esi # imm = 0x52F76421
callq 0x75b48
movq %rax, %r14
movq %rax, %rdi
movl %ebx, %esi
callq 0x33bd2
movq 0x50(%r14), %rcx
movq %rax, %rdx
shrq $0xa, %rdx
movq (%rcx,%rdx,8), %rcx
andl $0x3ff, %eax # imm = 0x3FF
leaq (%rax,%rax,2), %rax
movq 0x10(%rcx,%rax,8), %rax
jmp 0x7554a
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| _ZNK9Dimension10find_chunkEN4entt6entityE:
push r14
push rbx
push rax
mov ebx, esi
mov r14, rdi
add rdi, 0B0h
call _ZNK4entt16basic_sparse_setINS_6entityESaIS1_EE4findES1_; entt::basic_sparse_set<entt::entity,std::allocator<entt::entity>>::find(entt::entity)
dec rdx
cmp rdx, [r14+0F8h]
jnb short loc_75548
add r14, 8
mov rdi, r14
mov esi, 52F76421h
call _ZNK4entt14basic_registryINS_6entityESaIS1_EE6assureI14ChunkComponentEEPKDaj
mov r14, rax
mov rdi, rax
mov esi, ebx
call _ZNK4entt16basic_sparse_setINS_6entityESaIS1_EE5indexES1_; entt::basic_sparse_set<entt::entity,std::allocator<entt::entity>>::index(entt::entity)
mov rcx, [r14+50h]
mov rdx, rax
shr rdx, 0Ah
mov rcx, [rcx+rdx*8]
and eax, 3FFh
lea rax, [rax+rax*2]
mov rax, [rcx+rax*8+10h]
jmp short loc_7554A
loc_75548:
xor eax, eax
loc_7554A:
add rsp, 8
pop rbx
pop r14
retn
| long long Dimension::find_chunk(long long a1, int a2)
{
long long v2; // rdx
long long v3; // r14
unsigned long long v4; // rax
entt::basic_sparse_set<entt::entity,std::allocator<entt::entity>>::find(a1 + 176, a2);
if ( (unsigned long long)(v2 - 1) >= *(_QWORD *)(a1 + 248) )
return 0LL;
v3 = entt::basic_registry<entt::entity,std::allocator<entt::entity>>::assure<ChunkComponent>(a1 + 8, 1391944737LL);
v4 = entt::basic_sparse_set<entt::entity,std::allocator<entt::entity>>::index(v3, a2);
return *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v3 + 80) + 8 * (v4 >> 10)) + 24 * (v4 & 0x3FF) + 16);
}
| find_chunk:
PUSH R14
PUSH RBX
PUSH RAX
MOV EBX,ESI
MOV R14,RDI
ADD RDI,0xb0
CALL 0x00134e46
DEC RDX
CMP RDX,qword ptr [R14 + 0xf8]
JNC 0x00175548
ADD R14,0x8
MOV RDI,R14
MOV ESI,0x52f76421
CALL 0x00175b48
MOV R14,RAX
MOV RDI,RAX
MOV ESI,EBX
CALL 0x00133bd2
MOV RCX,qword ptr [R14 + 0x50]
MOV RDX,RAX
SHR RDX,0xa
MOV RCX,qword ptr [RCX + RDX*0x8]
AND EAX,0x3ff
LEA RAX,[RAX + RAX*0x2]
MOV RAX,qword ptr [RCX + RAX*0x8 + 0x10]
JMP 0x0017554a
LAB_00175548:
XOR EAX,EAX
LAB_0017554a:
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* Dimension::find_chunk(entt::entity) const */
int8 __thiscall Dimension::find_chunk(Dimension *this,int4 param_2)
{
basic_sparse_set<entt::entity,std::allocator<entt::entity>> *pbVar1;
ulong uVar2;
int8 uVar3;
long extraout_RDX;
entt::basic_sparse_set<entt::entity,std::allocator<entt::entity>>::find
((basic_sparse_set<entt::entity,std::allocator<entt::entity>> *)(this + 0xb0));
if (extraout_RDX - 1U < *(ulong *)(this + 0xf8)) {
pbVar1 = (basic_sparse_set<entt::entity,std::allocator<entt::entity>> *)
entt::basic_registry<entt::entity,std::allocator<entt::entity>>::assure<ChunkComponent>
((int)this + 8);
uVar2 = entt::basic_sparse_set<entt::entity,std::allocator<entt::entity>>::index(pbVar1,param_2)
;
uVar3 = *(int8 *)
(*(long *)(*(long *)(pbVar1 + 0x50) + (uVar2 >> 10) * 8) + 0x10 +
(ulong)((uint)uVar2 & 0x3ff) * 0x18);
}
else {
uVar3 = 0;
}
return uVar3;
}
| |
37,835 | js_proxy_preventExtensions | bluesky950520[P]quickjs/quickjs.c | static int js_proxy_preventExtensions(JSContext *ctx, JSValue obj)
{
JSProxyData *s;
JSValue method, ret;
BOOL res;
int res2;
s = get_proxy_method(ctx, &method, obj, JS_ATOM_preventExtensions);
if (!s)
return -1;
if (JS_IsUndefined(method))
return JS_PreventExtensions(ctx, s->target);
ret = JS_CallFree(ctx, method, s->handler, 1, &s->target);
if (JS_IsException(ret))
return -1;
res = JS_ToBoolFree(ctx, ret);
if (res) {
res2 = JS_IsExtensible(ctx, s->target);
if (res2 < 0)
return res2;
if (res2) {
JS_ThrowTypeError(ctx, "proxy: inconsistent preventExtensions");
return -1;
}
}
return res;
} | O0 | c | js_proxy_preventExtensions:
subq $0x78, %rsp
movq %rsi, 0x60(%rsp)
movq %rdx, 0x68(%rsp)
movq %rdi, 0x58(%rsp)
movq 0x58(%rsp), %rdi
movq 0x60(%rsp), %rdx
movq 0x68(%rsp), %rcx
leaq 0x40(%rsp), %rsi
movl $0x63, %r8d
callq 0x60070
movq %rax, 0x50(%rsp)
cmpq $0x0, 0x50(%rsp)
jne 0x30d9c
movl $0xffffffff, 0x74(%rsp) # imm = 0xFFFFFFFF
jmp 0x30ec0
movq 0x40(%rsp), %rdi
movq 0x48(%rsp), %rsi
callq 0x2e260
cmpl $0x0, %eax
je 0x30dcf
movq 0x58(%rsp), %rdi
movq 0x50(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
callq 0x30cb0
movl %eax, 0x74(%rsp)
jmp 0x30ec0
movq 0x58(%rsp), %rdi
movq 0x50(%rsp), %r8
movq 0x50(%rsp), %rax
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq 0x10(%r8), %rcx
movq 0x18(%r8), %r8
movl $0x1, %r9d
movq %rax, (%rsp)
callq 0x2e280
movq %rax, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x23cc0
cmpl $0x0, %eax
je 0x30e3e
movl $0xffffffff, 0x74(%rsp) # imm = 0xFFFFFFFF
jmp 0x30ec0
movq 0x58(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
callq 0x2e330
movl %eax, 0x2c(%rsp)
cmpl $0x0, 0x2c(%rsp)
je 0x30eb8
movq 0x58(%rsp), %rdi
movq 0x50(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
callq 0x30aa0
movl %eax, 0x28(%rsp)
cmpl $0x0, 0x28(%rsp)
jge 0x30e88
movl 0x28(%rsp), %eax
movl %eax, 0x74(%rsp)
jmp 0x30ec0
cmpl $0x0, 0x28(%rsp)
je 0x30eb6
movq 0x58(%rsp), %rdi
leaq 0xde0b6(%rip), %rsi # 0x10ef51
movb $0x0, %al
callq 0x2d300
movq %rax, 0x8(%rsp)
movq %rdx, 0x10(%rsp)
movl $0xffffffff, 0x74(%rsp) # imm = 0xFFFFFFFF
jmp 0x30ec0
jmp 0x30eb8
movl 0x2c(%rsp), %eax
movl %eax, 0x74(%rsp)
movl 0x74(%rsp), %eax
addq $0x78, %rsp
retq
nopl (%rax)
| js_proxy_preventExtensions:
sub rsp, 78h
mov [rsp+78h+var_18], rsi
mov [rsp+78h+var_10], rdx
mov [rsp+78h+var_20], rdi
mov rdi, [rsp+78h+var_20]
mov rdx, [rsp+78h+var_18]
mov rcx, [rsp+78h+var_10]
lea rsi, [rsp+78h+var_38]
mov r8d, 63h ; 'c'
call get_proxy_method
mov [rsp+78h+var_28], rax
cmp [rsp+78h+var_28], 0
jnz short loc_30D9C
mov [rsp+78h+var_4], 0FFFFFFFFh
jmp loc_30EC0
loc_30D9C:
mov rdi, [rsp+78h+var_38]
mov rsi, [rsp+78h+var_30]
call JS_IsUndefined_0
cmp eax, 0
jz short loc_30DCF
mov rdi, [rsp+78h+var_20]
mov rax, [rsp+78h+var_28]
mov rsi, [rax]
mov rdx, [rax+8]
call JS_PreventExtensions
mov [rsp+78h+var_4], eax
jmp loc_30EC0
loc_30DCF:
mov rdi, [rsp+78h+var_20]
mov r8, [rsp+78h+var_28]
mov rax, [rsp+78h+var_28]
mov rsi, [rsp+78h+var_38]
mov rdx, [rsp+78h+var_30]
mov rcx, [r8+10h]
mov r8, [r8+18h]
mov r9d, 1
mov [rsp+78h+var_78], rax
call JS_CallFree
mov [rsp+78h+var_60], rax
mov [rsp+78h+var_58], rdx
mov rax, [rsp+78h+var_60]
mov [rsp+78h+var_48], rax
mov rax, [rsp+78h+var_58]
mov [rsp+78h+var_40], rax
mov rdi, [rsp+78h+var_48]
mov rsi, [rsp+78h+var_40]
call JS_IsException_1
cmp eax, 0
jz short loc_30E3E
mov [rsp+78h+var_4], 0FFFFFFFFh
jmp loc_30EC0
loc_30E3E:
mov rdi, [rsp+78h+var_20]
mov rsi, [rsp+78h+var_48]
mov rdx, [rsp+78h+var_40]
call JS_ToBoolFree
mov [rsp+78h+var_4C], eax
cmp [rsp+78h+var_4C], 0
jz short loc_30EB8
mov rdi, [rsp+78h+var_20]
mov rax, [rsp+78h+var_28]
mov rsi, [rax]
mov rdx, [rax+8]
call JS_IsExtensible
mov [rsp+78h+var_50], eax
cmp [rsp+78h+var_50], 0
jge short loc_30E88
mov eax, [rsp+78h+var_50]
mov [rsp+78h+var_4], eax
jmp short loc_30EC0
loc_30E88:
cmp [rsp+78h+var_50], 0
jz short loc_30EB6
mov rdi, [rsp+78h+var_20]
lea rsi, aProxyInconsist_1; "proxy: inconsistent preventExtensions"
mov al, 0
call JS_ThrowTypeError
mov [rsp+78h+var_70], rax
mov [rsp+78h+var_68], rdx
mov [rsp+78h+var_4], 0FFFFFFFFh
jmp short loc_30EC0
loc_30EB6:
jmp short $+2
loc_30EB8:
mov eax, [rsp+78h+var_4C]
mov [rsp+78h+var_4], eax
loc_30EC0:
mov eax, [rsp+78h+var_4]
add rsp, 78h
retn
| long long js_proxy_preventExtensions(
long long a1,
long long a2,
long long a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
double a8,
double a9,
__m128 a10,
__m128 a11)
{
long long v11; // rdx
long long v12; // rdx
long long v13; // rcx
long long v14; // r8
long long v15; // r9
__m128 v16; // xmm4
__m128 v17; // xmm5
char v19; // [rsp+0h] [rbp-78h]
long long v20; // [rsp+18h] [rbp-60h]
int IsExtensible; // [rsp+28h] [rbp-50h]
unsigned int v22; // [rsp+2Ch] [rbp-4Ch]
long long v23; // [rsp+38h] [rbp-40h]
long long v24; // [rsp+40h] [rbp-38h] BYREF
long long v25; // [rsp+48h] [rbp-30h]
long long *proxy_method; // [rsp+50h] [rbp-28h]
long long v27; // [rsp+58h] [rbp-20h]
long long v28; // [rsp+60h] [rbp-18h]
long long v29; // [rsp+68h] [rbp-10h]
v28 = a2;
v29 = a3;
v27 = a1;
proxy_method = (long long *)get_proxy_method(a1, &v24, a2, a3, 99LL);
if ( proxy_method )
{
if ( JS_IsUndefined_0(v24, v25) )
{
return (unsigned int)JS_PreventExtensions(v27, *proxy_method, proxy_method[1]);
}
else
{
v20 = JS_CallFree(v27, v24, v25, proxy_method[2], proxy_method[3], 1, (long long)proxy_method);
v23 = v11;
if ( !JS_IsException_1(v20, v11) )
{
v22 = JS_ToBoolFree(v27, v20, v23);
if ( v22 )
{
IsExtensible = JS_IsExtensible(v27, *proxy_method, proxy_method[1]);
if ( IsExtensible < 0 )
return (unsigned int)IsExtensible;
if ( IsExtensible )
{
JS_ThrowTypeError(
v27,
(long long)"proxy: inconsistent preventExtensions",
v12,
v13,
v14,
v15,
a4,
a5,
a6,
a7,
v16,
v17,
a10,
a11,
v19);
return (unsigned int)-1;
}
}
return v22;
}
return (unsigned int)-1;
}
}
else
{
return (unsigned int)-1;
}
}
| js_proxy_preventExtensions:
SUB RSP,0x78
MOV qword ptr [RSP + 0x60],RSI
MOV qword ptr [RSP + 0x68],RDX
MOV qword ptr [RSP + 0x58],RDI
MOV RDI,qword ptr [RSP + 0x58]
MOV RDX,qword ptr [RSP + 0x60]
MOV RCX,qword ptr [RSP + 0x68]
LEA RSI,[RSP + 0x40]
MOV R8D,0x63
CALL 0x00160070
MOV qword ptr [RSP + 0x50],RAX
CMP qword ptr [RSP + 0x50],0x0
JNZ 0x00130d9c
MOV dword ptr [RSP + 0x74],0xffffffff
JMP 0x00130ec0
LAB_00130d9c:
MOV RDI,qword ptr [RSP + 0x40]
MOV RSI,qword ptr [RSP + 0x48]
CALL 0x0012e260
CMP EAX,0x0
JZ 0x00130dcf
MOV RDI,qword ptr [RSP + 0x58]
MOV RAX,qword ptr [RSP + 0x50]
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
CALL 0x00130cb0
MOV dword ptr [RSP + 0x74],EAX
JMP 0x00130ec0
LAB_00130dcf:
MOV RDI,qword ptr [RSP + 0x58]
MOV R8,qword ptr [RSP + 0x50]
MOV RAX,qword ptr [RSP + 0x50]
MOV RSI,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x48]
MOV RCX,qword ptr [R8 + 0x10]
MOV R8,qword ptr [R8 + 0x18]
MOV R9D,0x1
MOV qword ptr [RSP],RAX
CALL 0x0012e280
MOV qword ptr [RSP + 0x18],RAX
MOV qword ptr [RSP + 0x20],RDX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x30],RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x38],RAX
MOV RDI,qword ptr [RSP + 0x30]
MOV RSI,qword ptr [RSP + 0x38]
CALL 0x00123cc0
CMP EAX,0x0
JZ 0x00130e3e
MOV dword ptr [RSP + 0x74],0xffffffff
JMP 0x00130ec0
LAB_00130e3e:
MOV RDI,qword ptr [RSP + 0x58]
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,qword ptr [RSP + 0x38]
CALL 0x0012e330
MOV dword ptr [RSP + 0x2c],EAX
CMP dword ptr [RSP + 0x2c],0x0
JZ 0x00130eb8
MOV RDI,qword ptr [RSP + 0x58]
MOV RAX,qword ptr [RSP + 0x50]
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
CALL 0x00130aa0
MOV dword ptr [RSP + 0x28],EAX
CMP dword ptr [RSP + 0x28],0x0
JGE 0x00130e88
MOV EAX,dword ptr [RSP + 0x28]
MOV dword ptr [RSP + 0x74],EAX
JMP 0x00130ec0
LAB_00130e88:
CMP dword ptr [RSP + 0x28],0x0
JZ 0x00130eb6
MOV RDI,qword ptr [RSP + 0x58]
LEA RSI,[0x20ef51]
MOV AL,0x0
CALL 0x0012d300
MOV qword ptr [RSP + 0x8],RAX
MOV qword ptr [RSP + 0x10],RDX
MOV dword ptr [RSP + 0x74],0xffffffff
JMP 0x00130ec0
LAB_00130eb6:
JMP 0x00130eb8
LAB_00130eb8:
MOV EAX,dword ptr [RSP + 0x2c]
MOV dword ptr [RSP + 0x74],EAX
LAB_00130ec0:
MOV EAX,dword ptr [RSP + 0x74]
ADD RSP,0x78
RET
|
int js_proxy_preventExtensions(int8 param_1,int8 param_2,int8 param_3)
{
int iVar1;
int iVar2;
int1 auVar3 [16];
int8 local_38;
int8 local_30;
int8 *local_28;
int8 local_20;
int8 local_18;
int8 local_10;
int local_4;
local_20 = param_1;
local_18 = param_2;
local_10 = param_3;
local_28 = (int8 *)get_proxy_method(param_1,&local_38,param_2,param_3,99);
if (local_28 == (int8 *)0x0) {
local_4 = -1;
}
else {
iVar1 = JS_IsUndefined(local_38,local_30);
if (iVar1 == 0) {
auVar3 = JS_CallFree(local_20,local_38,local_30,local_28[2],local_28[3],1,local_28);
iVar1 = JS_IsException(auVar3._0_8_,auVar3._8_8_);
if (iVar1 == 0) {
iVar1 = JS_ToBoolFree(local_20,auVar3._0_8_,auVar3._8_8_);
local_4 = iVar1;
if (((iVar1 != 0) &&
(iVar2 = JS_IsExtensible(local_20,*local_28,local_28[1]), local_4 = iVar2, -1 < iVar2))
&& (local_4 = iVar1, iVar2 != 0)) {
JS_ThrowTypeError(local_20,"proxy: inconsistent preventExtensions");
local_4 = -1;
}
}
else {
local_4 = -1;
}
}
else {
local_4 = JS_PreventExtensions(local_20,*local_28,local_28[1]);
}
}
return local_4;
}
| |
37,836 | js_proxy_preventExtensions | bluesky950520[P]quickjs/quickjs.c | static int js_proxy_preventExtensions(JSContext *ctx, JSValue obj)
{
JSProxyData *s;
JSValue method, ret;
BOOL res;
int res2;
s = get_proxy_method(ctx, &method, obj, JS_ATOM_preventExtensions);
if (!s)
return -1;
if (JS_IsUndefined(method))
return JS_PreventExtensions(ctx, s->target);
ret = JS_CallFree(ctx, method, s->handler, 1, &s->target);
if (JS_IsException(ret))
return -1;
res = JS_ToBoolFree(ctx, ret);
if (res) {
res2 = JS_IsExtensible(ctx, s->target);
if (res2 < 0)
return res2;
if (res2) {
JS_ThrowTypeError(ctx, "proxy: inconsistent preventExtensions");
return -1;
}
}
return res;
} | O1 | c | js_proxy_preventExtensions:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdx, %rcx
movq %rsi, %rdx
movq %rdi, %rbx
leaq 0x10(%rsp), %rsi
movl $0x63, %r8d
callq 0x3d3e0
testq %rax, %rax
je 0x23ffe
movq %rax, %r14
movq 0x18(%rsp), %rdx
cmpl $0x3, %edx
je 0x24021
movq 0x10(%rsp), %rsi
movq 0x10(%r14), %rcx
movq 0x18(%r14), %r8
movq %r14, (%rsp)
movq %rbx, %rdi
movl $0x1, %r9d
callq 0x22c9d
cmpl $0x6, %edx
jne 0x24005
movl $0xffffffff, %ebp # imm = 0xFFFFFFFF
jmp 0x24016
movq %rbx, %rdi
movq %rax, %rsi
callq 0x22d0d
movl %eax, %ebp
testl %eax, %eax
jne 0x24038
movl %ebp, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0xf726
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0xf6fb
testl %eax, %eax
js 0x23ffe
je 0x24016
leaq 0x7be99(%rip), %rsi # 0x9feed
movq %rbx, %rdi
xorl %eax, %eax
callq 0x22567
jmp 0x23ffe
| js_proxy_preventExtensions:
push rbp
push r14
push rbx
sub rsp, 20h
mov rcx, rdx
mov rdx, rsi
mov rbx, rdi
lea rsi, [rsp+38h+var_28]
mov r8d, 63h ; 'c'
call get_proxy_method
test rax, rax
jz short loc_23FFE
mov r14, rax
mov rdx, [rsp+38h+var_20]
cmp edx, 3
jz short loc_24021
mov rsi, [rsp+38h+var_28]
mov rcx, [r14+10h]
mov r8, [r14+18h]
mov [rsp+38h+var_38], r14
mov rdi, rbx
mov r9d, 1
call JS_CallFree
cmp edx, 6
jnz short loc_24005
loc_23FFE:
mov ebp, 0FFFFFFFFh
jmp short loc_24016
loc_24005:
mov rdi, rbx
mov rsi, rax
call JS_ToBoolFree
mov ebp, eax
test eax, eax
jnz short loc_24038
loc_24016:
mov eax, ebp
add rsp, 20h
pop rbx
pop r14
pop rbp
retn
loc_24021:
mov rsi, [r14]
mov rdx, [r14+8]
mov rdi, rbx
add rsp, 20h
pop rbx
pop r14
pop rbp
jmp JS_PreventExtensions
loc_24038:
mov rsi, [r14]
mov rdx, [r14+8]
mov rdi, rbx
call JS_IsExtensible
test eax, eax
js short loc_23FFE
jz short loc_24016
lea rsi, aProxyInconsist_1; "proxy: inconsistent preventExtensions"
mov rdi, rbx
xor eax, eax
call JS_ThrowTypeError
jmp short loc_23FFE
| long long js_proxy_preventExtensions(
long long a1,
long long a2,
long long a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
double a8,
double a9,
__m128 a10,
__m128 a11)
{
long long *proxy_method; // rax
long long *v12; // r14
long long v13; // rax
long long v14; // rdx
unsigned int v15; // ebp
int IsExtensible; // eax
long long v18; // rdx
long long v19; // rcx
long long v20; // r8
long long v21; // r9
__m128 v22; // xmm4
__m128 v23; // xmm5
char v24; // [rsp+0h] [rbp-38h]
_DWORD *v25; // [rsp+10h] [rbp-28h] BYREF
long long v26; // [rsp+18h] [rbp-20h]
proxy_method = (long long *)get_proxy_method(a1, &v25, a2, a3, 99LL);
if ( !proxy_method )
return (unsigned int)-1;
v12 = proxy_method;
if ( (_DWORD)v26 != 3 )
{
v13 = JS_CallFree(a1, v25, v26, proxy_method[2], proxy_method[3], 1, (long long)proxy_method);
if ( (_DWORD)v14 != 6 )
{
v15 = JS_ToBoolFree(a1, v13, v14);
if ( !v15 )
return v15;
IsExtensible = JS_IsExtensible(a1, *v12, v12[1]);
if ( IsExtensible >= 0 )
{
if ( !IsExtensible )
return v15;
JS_ThrowTypeError(
a1,
(long long)"proxy: inconsistent preventExtensions",
v18,
v19,
v20,
v21,
a4,
a5,
a6,
a7,
v22,
v23,
a10,
a11,
v24);
}
}
return (unsigned int)-1;
}
return JS_PreventExtensions(a1, *proxy_method, proxy_method[1]);
}
| js_proxy_preventExtensions:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x20
MOV RCX,RDX
MOV RDX,RSI
MOV RBX,RDI
LEA RSI,[RSP + 0x10]
MOV R8D,0x63
CALL 0x0013d3e0
TEST RAX,RAX
JZ 0x00123ffe
MOV R14,RAX
MOV RDX,qword ptr [RSP + 0x18]
CMP EDX,0x3
JZ 0x00124021
MOV RSI,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [R14 + 0x10]
MOV R8,qword ptr [R14 + 0x18]
MOV qword ptr [RSP],R14
MOV RDI,RBX
MOV R9D,0x1
CALL 0x00122c9d
CMP EDX,0x6
JNZ 0x00124005
LAB_00123ffe:
MOV EBP,0xffffffff
JMP 0x00124016
LAB_00124005:
MOV RDI,RBX
MOV RSI,RAX
CALL 0x00122d0d
MOV EBP,EAX
TEST EAX,EAX
JNZ 0x00124038
LAB_00124016:
MOV EAX,EBP
ADD RSP,0x20
POP RBX
POP R14
POP RBP
RET
LAB_00124021:
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
MOV RDI,RBX
ADD RSP,0x20
POP RBX
POP R14
POP RBP
JMP 0x0010f726
LAB_00124038:
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
MOV RDI,RBX
CALL 0x0010f6fb
TEST EAX,EAX
JS 0x00123ffe
JZ 0x00124016
LEA RSI,[0x19feed]
MOV RDI,RBX
XOR EAX,EAX
CALL 0x00122567
JMP 0x00123ffe
|
ulong js_proxy_preventExtensions(int8 param_1,int8 param_2,int8 param_3)
{
uint uVar1;
int iVar2;
int8 *puVar3;
ulong uVar4;
int1 auVar5 [12];
int8 local_28;
int8 local_20;
puVar3 = (int8 *)get_proxy_method(param_1,&local_28,param_2,param_3,99);
if (puVar3 != (int8 *)0x0) {
if ((int)local_20 == 3) {
uVar4 = JS_PreventExtensions(param_1,*puVar3,puVar3[1]);
return uVar4;
}
auVar5 = JS_CallFree(param_1,local_28,local_20,puVar3[2],puVar3[3],1,puVar3);
if (auVar5._8_4_ != 6) {
uVar1 = JS_ToBoolFree(param_1,auVar5._0_8_);
if (uVar1 == 0) {
return (ulong)uVar1;
}
iVar2 = JS_IsExtensible(param_1,*puVar3,puVar3[1]);
if (-1 < iVar2) {
if (iVar2 == 0) {
return (ulong)uVar1;
}
JS_ThrowTypeError(param_1,"proxy: inconsistent preventExtensions");
}
}
}
return 0xffffffff;
}
| |
37,837 | js_proxy_preventExtensions | bluesky950520[P]quickjs/quickjs.c | static int js_proxy_preventExtensions(JSContext *ctx, JSValue obj)
{
JSProxyData *s;
JSValue method, ret;
BOOL res;
int res2;
s = get_proxy_method(ctx, &method, obj, JS_ATOM_preventExtensions);
if (!s)
return -1;
if (JS_IsUndefined(method))
return JS_PreventExtensions(ctx, s->target);
ret = JS_CallFree(ctx, method, s->handler, 1, &s->target);
if (JS_IsException(ret))
return -1;
res = JS_ToBoolFree(ctx, ret);
if (res) {
res2 = JS_IsExtensible(ctx, s->target);
if (res2 < 0)
return res2;
if (res2) {
JS_ThrowTypeError(ctx, "proxy: inconsistent preventExtensions");
return -1;
}
}
return res;
} | O3 | c | js_proxy_preventExtensions:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rcx
movq %rsi, %rdx
movq %rdi, %rbx
leaq 0x8(%rsp), %rsi
pushq $0x63
popq %r8
callq 0x3e9d6
pushq $-0x1
popq %r15
testq %rax, %rax
je 0xf8eb
movq %rax, %r14
movq 0x10(%rsp), %rdx
cmpl $0x3, %edx
je 0xf8ff
movq 0x8(%rsp), %rsi
movq 0x10(%r14), %rcx
movq 0x18(%r14), %r8
movq %r14, (%rsp)
pushq $0x1
popq %r9
movq %rbx, %rdi
callq 0x234e7
cmpl $0x6, %edx
je 0xf8eb
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2356a
testl %eax, %eax
je 0xf8fb
movl %eax, %ebp
movq 0x8(%r14), %rdx
cmpl $-0x1, %edx
jne 0xf8ee
movq (%r14), %rsi
cmpw $0x30, 0x6(%rsi)
je 0xf918
movzbl 0x5(%rsi), %eax
andl $0x1, %eax
testl %eax, %eax
je 0xf8ee
leaq 0x935b6(%rip), %rsi # 0xa2e97
movq %rbx, %rdi
xorl %eax, %eax
callq 0x22d8b
movl %r15d, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
xorl %ebp, %ebp
jmp 0xf8ee
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0xf83b
movq %rbx, %rdi
callq 0xf74a
testl %eax, %eax
jns 0xf8d6
jmp 0xf8eb
| js_proxy_preventExtensions:
push rbp
push r15
push r14
push rbx
sub rsp, 18h
mov rcx, rdx
mov rdx, rsi
mov rbx, rdi
lea rsi, [rsp+38h+var_30]
push 63h ; 'c'
pop r8
call get_proxy_method
push 0FFFFFFFFFFFFFFFFh
pop r15
test rax, rax
jz short loc_F8EB
mov r14, rax
mov rdx, [rsp+38h+var_28]
cmp edx, 3
jz short loc_F8FF
mov rsi, [rsp+38h+var_30]
mov rcx, [r14+10h]
mov r8, [r14+18h]
mov [rsp+38h+var_38], r14
push 1
pop r9
mov rdi, rbx
call JS_CallFree
cmp edx, 6
jz short loc_F8EB
mov rdi, rbx
mov rsi, rax
call JS_ToBoolFree
test eax, eax
jz short loc_F8FB
mov ebp, eax
mov rdx, [r14+8]
cmp edx, 0FFFFFFFFh
jnz short loc_F8EE
mov rsi, [r14]
cmp word ptr [rsi+6], 30h ; '0'
jz short loc_F918
movzx eax, byte ptr [rsi+5]
and eax, 1
loc_F8D6:
test eax, eax
jz short loc_F8EE
lea rsi, aProxyInconsist_0; "proxy: inconsistent preventExtensions"
mov rdi, rbx
xor eax, eax
call JS_ThrowTypeError
loc_F8EB:
mov ebp, r15d
loc_F8EE:
mov eax, ebp
add rsp, 18h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_F8FB:
xor ebp, ebp
jmp short loc_F8EE
loc_F8FF:
mov rsi, [r14]
mov rdx, [r14+8]
mov rdi, rbx
add rsp, 18h
pop rbx
pop r14
pop r15
pop rbp
jmp JS_PreventExtensions
loc_F918:
mov rdi, rbx
call js_proxy_isExtensible
test eax, eax
jns short loc_F8D6
jmp short loc_F8EB
| long long js_proxy_preventExtensions(long long a1, long long a2, long long a3)
{
long long *proxy_method; // rax
long long *v4; // r14
long long v5; // rax
int v6; // edx
unsigned int v7; // eax
int v8; // ecx
int v9; // r8d
int v10; // r9d
unsigned int v11; // ebp
long long v12; // rdx
long long v13; // rsi
int isExtensible; // eax
char v16; // [rsp+0h] [rbp-38h]
long long v17; // [rsp+8h] [rbp-30h] BYREF
long long v18; // [rsp+10h] [rbp-28h]
proxy_method = (long long *)get_proxy_method(a1, &v17, a2, a3, 99LL);
if ( !proxy_method )
return (unsigned int)-1;
v4 = proxy_method;
if ( (_DWORD)v18 != 3 )
{
v5 = JS_CallFree(a1, v17, v18, proxy_method[2], proxy_method[3], 1, (long long)proxy_method);
if ( v6 != 6 )
{
v7 = JS_ToBoolFree(a1, v5);
if ( !v7 )
return 0;
v11 = v7;
v12 = v4[1];
if ( (_DWORD)v12 != -1 )
return v11;
v13 = *v4;
if ( *(_WORD *)(*v4 + 6) == 48 )
{
isExtensible = js_proxy_isExtensible(a1, v13, v12);
if ( isExtensible < 0 )
return (unsigned int)-1;
}
else
{
isExtensible = *(_BYTE *)(v13 + 5) & 1;
}
if ( !isExtensible )
return v11;
JS_ThrowTypeError(a1, (unsigned int)"proxy: inconsistent preventExtensions", v12, v8, v9, v10, v16);
}
return (unsigned int)-1;
}
return JS_PreventExtensions(a1, *proxy_method, proxy_method[1]);
}
| js_proxy_preventExtensions:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x18
MOV RCX,RDX
MOV RDX,RSI
MOV RBX,RDI
LEA RSI,[RSP + 0x8]
PUSH 0x63
POP R8
CALL 0x0013e9d6
PUSH -0x1
POP R15
TEST RAX,RAX
JZ 0x0010f8eb
MOV R14,RAX
MOV RDX,qword ptr [RSP + 0x10]
CMP EDX,0x3
JZ 0x0010f8ff
MOV RSI,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [R14 + 0x10]
MOV R8,qword ptr [R14 + 0x18]
MOV qword ptr [RSP],R14
PUSH 0x1
POP R9
MOV RDI,RBX
CALL 0x001234e7
CMP EDX,0x6
JZ 0x0010f8eb
MOV RDI,RBX
MOV RSI,RAX
CALL 0x0012356a
TEST EAX,EAX
JZ 0x0010f8fb
MOV EBP,EAX
MOV RDX,qword ptr [R14 + 0x8]
CMP EDX,-0x1
JNZ 0x0010f8ee
MOV RSI,qword ptr [R14]
CMP word ptr [RSI + 0x6],0x30
JZ 0x0010f918
MOVZX EAX,byte ptr [RSI + 0x5]
AND EAX,0x1
LAB_0010f8d6:
TEST EAX,EAX
JZ 0x0010f8ee
LEA RSI,[0x1a2e97]
MOV RDI,RBX
XOR EAX,EAX
CALL 0x00122d8b
LAB_0010f8eb:
MOV EBP,R15D
LAB_0010f8ee:
MOV EAX,EBP
ADD RSP,0x18
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0010f8fb:
XOR EBP,EBP
JMP 0x0010f8ee
LAB_0010f8ff:
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
MOV RDI,RBX
ADD RSP,0x18
POP RBX
POP R14
POP R15
POP RBP
JMP 0x0010f83b
LAB_0010f918:
MOV RDI,RBX
CALL 0x0010f74a
TEST EAX,EAX
JNS 0x0010f8d6
JMP 0x0010f8eb
|
ulong js_proxy_preventExtensions(int8 param_1,int8 param_2,int8 param_3)
{
uint uVar1;
uint uVar2;
long *plVar3;
ulong uVar4;
int1 auVar5 [12];
int8 local_30;
int8 local_28;
plVar3 = (long *)get_proxy_method(param_1,&local_30,param_2,param_3,99);
if (plVar3 != (long *)0x0) {
if ((int)local_28 == 3) {
uVar4 = JS_PreventExtensions(param_1,*plVar3,plVar3[1]);
return uVar4;
}
auVar5 = JS_CallFree(param_1,local_30,local_28,plVar3[2],plVar3[3],1,plVar3);
if (auVar5._8_4_ != 6) {
uVar1 = JS_ToBoolFree(param_1,auVar5._0_8_);
if (uVar1 == 0) {
return 0;
}
if ((int)plVar3[1] != -1) {
return (ulong)uVar1;
}
if (*(short *)(*plVar3 + 6) == 0x30) {
uVar2 = js_proxy_isExtensible(param_1);
if ((int)uVar2 < 0) {
return 0xffffffff;
}
}
else {
uVar2 = *(byte *)(*plVar3 + 5) & 1;
}
if (uVar2 == 0) {
return (ulong)uVar1;
}
JS_ThrowTypeError(param_1,"proxy: inconsistent preventExtensions");
}
}
return 0xffffffff;
}
| |
37,838 | my_round_up_to_next_power | eloqsql/include/my_bit.h | static inline uint32 my_round_up_to_next_power(uint32 v)
{
v--; /* 01100000000000000000000000001010 */
v|= v >> 1; /* 01110000000000000000000000001111 */
v|= v >> 2; /* 01111100000000000000000000001111 */
v|= v >> 4; /* 01111111110000000000000000001111 */
v|= v >> 8; /* 01111111111111111100000000001111 */
v|= v >> 16; /* 01111111111111111111111111111111 */
return v+1; /* 10000000000000000000000000000000 */
} | O0 | c | my_round_up_to_next_power:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0x4(%rbp)
movl -0x4(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
shrl %eax
orl -0x4(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
shrl $0x2, %eax
orl -0x4(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
shrl $0x4, %eax
orl -0x4(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
shrl $0x8, %eax
orl -0x4(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
shrl $0x10, %eax
orl -0x4(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addl $0x1, %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_round_up_to_next_power_0:
push rbp
mov rbp, rsp
mov [rbp+var_4], edi
mov eax, [rbp+var_4]
add eax, 0FFFFFFFFh
mov [rbp+var_4], eax
mov eax, [rbp+var_4]
shr eax, 1
or eax, [rbp+var_4]
mov [rbp+var_4], eax
mov eax, [rbp+var_4]
shr eax, 2
or eax, [rbp+var_4]
mov [rbp+var_4], eax
mov eax, [rbp+var_4]
shr eax, 4
or eax, [rbp+var_4]
mov [rbp+var_4], eax
mov eax, [rbp+var_4]
shr eax, 8
or eax, [rbp+var_4]
mov [rbp+var_4], eax
mov eax, [rbp+var_4]
shr eax, 10h
or eax, [rbp+var_4]
mov [rbp+var_4], eax
mov eax, [rbp+var_4]
add eax, 1
pop rbp
retn
| long long my_round_up_to_next_power_0(int a1)
{
unsigned int v2; // [rsp+0h] [rbp-4h]
unsigned int v3; // [rsp+0h] [rbp-4h]
v2 = (a1 - 1) | ((unsigned int)(a1 - 1) >> 1) | (((a1 - 1) | ((unsigned int)(a1 - 1) >> 1)) >> 2);
v3 = v2 | (v2 >> 4) | ((v2 | (v2 >> 4)) >> 8);
return (v3 | HIWORD(v3)) + 1;
}
| my_round_up_to_next_power:
PUSH RBP
MOV RBP,RSP
MOV dword ptr [RBP + -0x4],EDI
MOV EAX,dword ptr [RBP + -0x4]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x4],EAX
MOV EAX,dword ptr [RBP + -0x4]
SHR EAX,0x1
OR EAX,dword ptr [RBP + -0x4]
MOV dword ptr [RBP + -0x4],EAX
MOV EAX,dword ptr [RBP + -0x4]
SHR EAX,0x2
OR EAX,dword ptr [RBP + -0x4]
MOV dword ptr [RBP + -0x4],EAX
MOV EAX,dword ptr [RBP + -0x4]
SHR EAX,0x4
OR EAX,dword ptr [RBP + -0x4]
MOV dword ptr [RBP + -0x4],EAX
MOV EAX,dword ptr [RBP + -0x4]
SHR EAX,0x8
OR EAX,dword ptr [RBP + -0x4]
MOV dword ptr [RBP + -0x4],EAX
MOV EAX,dword ptr [RBP + -0x4]
SHR EAX,0x10
OR EAX,dword ptr [RBP + -0x4]
MOV dword ptr [RBP + -0x4],EAX
MOV EAX,dword ptr [RBP + -0x4]
ADD EAX,0x1
POP RBP
RET
|
int my_round_up_to_next_power(int param_1)
{
uint uVar1;
uVar1 = param_1 - 1U >> 1 | param_1 - 1U;
uVar1 = uVar1 >> 2 | uVar1;
uVar1 = uVar1 >> 4 | uVar1;
uVar1 = uVar1 >> 8 | uVar1;
return (uVar1 >> 0x10 | uVar1) + 1;
}
| |
37,839 | my_strxfrm_pad_desc_and_reverse | eloqsql/strings/ctype-simple.c | size_t
my_strxfrm_pad_desc_and_reverse(CHARSET_INFO *cs,
uchar *str, uchar *frmend, uchar *strend,
uint nweights, uint flags, uint level)
{
if (nweights && frmend < strend && (flags & MY_STRXFRM_PAD_WITH_SPACE))
{
uint fill_length= MY_MIN((uint) (strend - frmend), nweights * cs->mbminlen);
my_ci_fill(cs, (char*) frmend, fill_length, cs->pad_char);
frmend+= fill_length;
}
my_strxfrm_desc_and_reverse(str, frmend, flags, level);
if ((flags & MY_STRXFRM_PAD_TO_MAXLEN) && frmend < strend)
{
size_t fill_length= strend - frmend;
my_ci_fill(cs, (char*) frmend, fill_length, cs->pad_char);
frmend= strend;
}
return frmend - str;
} | O3 | c | my_strxfrm_pad_desc_and_reverse:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %r13d
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, -0x30(%rbp)
movq %rdi, %r12
movl 0x10(%rbp), %ecx
testl %r8d, %r8d
sete %al
cmpq %r15, %rdx
setae %sil
testb $0x40, %r13b
sete %dl
orb %al, %dl
orb %sil, %dl
jne 0x598aa
movl %r8d, %ebx
movl %r15d, %eax
subl %r14d, %eax
imull 0x98(%r12), %ebx
cmpl %eax, %ebx
cmovael %eax, %ebx
movzbl 0xb0(%r12), %ecx
movq 0xb8(%r12), %rax
movq %r12, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq *0x78(%rax)
movl 0x10(%rbp), %ecx
addq %rbx, %r14
movq -0x30(%rbp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
movl %r13d, %edx
callq 0x5b202
testb %r13b, %r13b
jns 0x598e9
cmpq %r15, %r14
jae 0x598e9
movq %r15, %rdx
subq %r14, %rdx
movzbl 0xb0(%r12), %ecx
movq 0xb8(%r12), %rax
movq %r12, %rdi
movq %r14, %rsi
callq *0x78(%rax)
movq %r15, %r14
subq %rbx, %r14
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_strxfrm_pad_desc_and_reverse:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r13d, r9d
mov r15, rcx
mov r14, rdx
mov [rbp+var_30], rsi
mov r12, rdi
mov ecx, [rbp+arg_0]
test r8d, r8d
setz al
cmp rdx, r15
setnb sil
test r13b, 40h
setz dl
or dl, al
or dl, sil
jnz short loc_598AA
mov ebx, r8d
mov eax, r15d
sub eax, r14d
imul ebx, [r12+98h]
cmp ebx, eax
cmovnb ebx, eax
movzx ecx, byte ptr [r12+0B0h]
mov rax, [r12+0B8h]
mov rdi, r12
mov rsi, r14
mov rdx, rbx
call qword ptr [rax+78h]
mov ecx, [rbp+arg_0]
add r14, rbx
loc_598AA:
mov rbx, [rbp+var_30]
mov rdi, rbx
mov rsi, r14
mov edx, r13d
call my_strxfrm_desc_and_reverse
test r13b, r13b
jns short loc_598E9
cmp r14, r15
jnb short loc_598E9
mov rdx, r15
sub rdx, r14
movzx ecx, byte ptr [r12+0B0h]
mov rax, [r12+0B8h]
mov rdi, r12
mov rsi, r14
call qword ptr [rax+78h]
mov r14, r15
loc_598E9:
sub r14, rbx
mov rax, r14
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long my_strxfrm_pad_desc_and_reverse(
long long a1,
long long a2,
unsigned long long a3,
unsigned long long a4,
int a5,
unsigned int a6,
unsigned int a7)
{
unsigned long long v9; // r14
long long v10; // rcx
long long v11; // rbx
v9 = a3;
v10 = a7;
if ( a3 < a4 && a5 != 0 && (a6 & 0x40) != 0 )
{
v11 = (unsigned int)(*(_DWORD *)(a1 + 152) * a5);
if ( (unsigned int)v11 >= (int)a4 - (int)a3 )
v11 = (unsigned int)(a4 - a3);
(*(void ( **)(long long, unsigned long long, long long, _QWORD))(*(_QWORD *)(a1 + 184) + 120LL))(
a1,
a3,
v11,
*(unsigned __int8 *)(a1 + 176));
v10 = a7;
v9 += v11;
}
my_strxfrm_desc_and_reverse(a2, v9, a6, v10);
if ( (a6 & 0x80u) != 0 && v9 < a4 )
{
(*(void ( **)(long long, unsigned long long, unsigned long long, _QWORD))(*(_QWORD *)(a1 + 184) + 120LL))(
a1,
v9,
a4 - v9,
*(unsigned __int8 *)(a1 + 176));
v9 = a4;
}
return v9 - a2;
}
| my_strxfrm_pad_desc_and_reverse:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R13D,R9D
MOV R15,RCX
MOV R14,RDX
MOV qword ptr [RBP + -0x30],RSI
MOV R12,RDI
MOV ECX,dword ptr [RBP + 0x10]
TEST R8D,R8D
SETZ AL
CMP RDX,R15
SETNC SIL
TEST R13B,0x40
SETZ DL
OR DL,AL
OR DL,SIL
JNZ 0x001598aa
MOV EBX,R8D
MOV EAX,R15D
SUB EAX,R14D
IMUL EBX,dword ptr [R12 + 0x98]
CMP EBX,EAX
CMOVNC EBX,EAX
MOVZX ECX,byte ptr [R12 + 0xb0]
MOV RAX,qword ptr [R12 + 0xb8]
MOV RDI,R12
MOV RSI,R14
MOV RDX,RBX
CALL qword ptr [RAX + 0x78]
MOV ECX,dword ptr [RBP + 0x10]
ADD R14,RBX
LAB_001598aa:
MOV RBX,qword ptr [RBP + -0x30]
MOV RDI,RBX
MOV RSI,R14
MOV EDX,R13D
CALL 0x0015b202
TEST R13B,R13B
JNS 0x001598e9
CMP R14,R15
JNC 0x001598e9
MOV RDX,R15
SUB RDX,R14
MOVZX ECX,byte ptr [R12 + 0xb0]
MOV RAX,qword ptr [R12 + 0xb8]
MOV RDI,R12
MOV RSI,R14
CALL qword ptr [RAX + 0x78]
MOV R14,R15
LAB_001598e9:
SUB R14,RBX
MOV RAX,R14
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long my_strxfrm_pad_desc_and_reverse
(long param_1,long param_2,ulong param_3,ulong param_4,int param_5,uint param_6,
int4 param_7)
{
uint uVar1;
uint uVar2;
if (((param_6 & 0x40) != 0 && param_5 != 0) && param_3 < param_4) {
uVar1 = (int)param_4 - (int)param_3;
uVar2 = param_5 * *(int *)(param_1 + 0x98);
if (uVar1 <= uVar2) {
uVar2 = uVar1;
}
(**(code **)(*(long *)(param_1 + 0xb8) + 0x78))
(param_1,param_3,(ulong)uVar2,*(int1 *)(param_1 + 0xb0));
param_3 = param_3 + uVar2;
}
my_strxfrm_desc_and_reverse(param_2,param_3,param_6,param_7);
if (((char)param_6 < '\0') && (param_3 < param_4)) {
(**(code **)(*(long *)(param_1 + 0xb8) + 0x78))
(param_1,param_3,param_4 - param_3,*(int1 *)(param_1 + 0xb0));
param_3 = param_4;
}
return param_3 - param_2;
}
| |
37,840 | 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 0x2c9fdd(%rip), %r15 # 0x2ee820
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 0x26d91
movl %eax, %r14d
testq %rbx, %rbx
je 0x2487c
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_2487C
mov rax, [r15]
mov rdi, rbx
mov esi, r14d
call qword ptr [rax+1B8h]
loc_2487C:
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[0] + 54))(
v6,
*(_QWORD *)(a1 + 144),
1LL,
a2,
a3);
v4 = my_rw_wrlock(a1);
if ( v3 )
(*((void ( **)(long long, _QWORD))PSI_server[0] + 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,[0x3ee820]
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 0x00126d91
MOV R14D,EAX
TEST RBX,RBX
JZ 0x0012487c
MOV RAX,qword ptr [R15]
MOV RDI,RBX
MOV ESI,R14D
CALL qword ptr [RAX + 0x1b8]
LAB_0012487c:
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;
}
| |
37,841 | evmone::baseline::CodeAnalysis::check_jumpdest(unsigned long) const | corpus-core[P]colibri-stateless/build_O2/_deps/evmone_external-src/lib/evmone/baseline.hpp | [[nodiscard]] bool check_jumpdest(uint64_t position) const noexcept
{
if (position >= m_jumpdest_map.size())
return false;
return m_jumpdest_map[static_cast<size_t>(position)];
} | O2 | cpp | evmone::baseline::CodeAnalysis::check_jumpdest(unsigned long) const:
pushq %rax
movq 0x30(%rdi), %rax
movl 0x38(%rdi), %ecx
subq 0x20(%rdi), %rax
leaq (%rcx,%rax,8), %rax
cmpq %rsi, %rax
jbe 0x3c0e8
addq $0x20, %rdi
callq 0x3c0f4
jmp 0x3c0ea
xorl %eax, %eax
popq %rcx
retq
movq %rax, %rdi
callq 0x2e859
| _ZNK6evmone8baseline12CodeAnalysis14check_jumpdestEm:
push rax
mov rax, [rdi+30h]
mov ecx, [rdi+38h]
sub rax, [rdi+20h]
lea rax, [rcx+rax*8]
cmp rax, rsi
jbe short loc_3C0E8
add rdi, 20h ; ' '
call _ZNKSt6vectorIbSaIbEEixEm; std::vector<bool>::operator[](ulong)
jmp short loc_3C0EA
loc_3C0E8:
xor eax, eax
loc_3C0EA:
pop rcx
retn
mov rdi, rax
call __clang_call_terminate
| long long evmone::baseline::CodeAnalysis::check_jumpdest(
evmone::baseline::CodeAnalysis *this,
unsigned long long a2)
{
if ( (unsigned long long)*((unsigned int *)this + 14) + 8LL * (*((_QWORD *)this + 6) - *((_QWORD *)this + 4)) <= a2 )
return 0LL;
else
return std::vector<bool>::operator[]((char *)this + 32);
}
| check_jumpdest:
PUSH RAX
MOV RAX,qword ptr [RDI + 0x30]
MOV ECX,dword ptr [RDI + 0x38]
SUB RAX,qword ptr [RDI + 0x20]
LEA RAX,[RCX + RAX*0x8]
CMP RAX,RSI
JBE 0x0013c0e8
LAB_0013c0dd:
ADD RDI,0x20
CALL 0x0013c0f4
JMP 0x0013c0ea
LAB_0013c0e8:
XOR EAX,EAX
LAB_0013c0ea:
POP RCX
RET
|
/* evmone::baseline::CodeAnalysis::check_jumpdest(unsigned long) const */
int8 __thiscall
evmone::baseline::CodeAnalysis::check_jumpdest(CodeAnalysis *this,ulong param_1)
{
int8 uVar1;
if (param_1 < (ulong)*(uint *)(this + 0x38) +
(*(long *)(this + 0x30) - *(long *)(this + 0x20)) * 8) {
/* try { // try from 0013c0dd to 0013c0e5 has its CatchHandler @ 0013c0ec */
uVar1 = std::vector<bool,std::allocator<bool>>::operator[]
((vector<bool,std::allocator<bool>> *)(this + 0x20),param_1);
}
else {
uVar1 = 0;
}
return uVar1;
}
| |
37,842 | str_to_TIME | eloqsql/libmariadb/libmariadb/ma_stmt_codec.c | int str_to_TIME(const char *str, size_t length, MYSQL_TIME *tm)
{
const char *p = str;
const char *end = str + length;
int is_time = 0;
if (!p)
goto error;
while (p < end && isspace(*p))
p++;
while (p < end && isspace(end[-1]))
end--;
if (end -p < 5)
goto error;
if (*p == '-')
{
tm->neg = 1;
/* Only TIME can't be negative.*/
is_time = 1;
p++;
}
else
{
int i;
tm->neg = 0;
/*
Date parsing (in server) accepts leading zeroes, thus position of the delimiters
is not fixed. Scan the string to find out what we need to parse.
*/
for (i = 1; p + i < end; i++)
{
if(p[i] == '-' || p [i] == ':')
{
is_time = p[i] == ':';
break;
}
}
}
if (is_time)
{
if (parse_time(p, end - p, &p, tm))
goto error;
tm->year = tm->month = tm->day = 0;
tm->time_type = MYSQL_TIMESTAMP_TIME;
return 0;
}
if (parse_date(p, end - p, &p, tm))
goto error;
if (p == end || p[0] != ' ')
{
tm->hour = tm->minute = tm->second = tm->second_part = 0;
tm->time_type = MYSQL_TIMESTAMP_DATE;
return 0;
}
/* Skip space. */
p++;
if (parse_time(p, end - p, &p, tm))
goto error;
/* In DATETIME, hours must be < 24.*/
if (tm->hour > 23)
goto error;
tm->time_type = MYSQL_TIMESTAMP_DATETIME;
return 0;
error:
memset(tm, 0, sizeof(*tm));
tm->time_type = MYSQL_TIMESTAMP_ERROR;
return 1;
} | O0 | c | str_to_TIME:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x3269b
jmp 0x3290f
jmp 0x3269d
movq -0x28(%rbp), %rcx
xorl %eax, %eax
cmpq -0x30(%rbp), %rcx
movb %al, -0x39(%rbp)
jae 0x326d0
callq 0x13480
movq (%rax), %rax
movq -0x28(%rbp), %rcx
movsbl (%rcx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x2000, %eax # imm = 0x2000
cmpl $0x0, %eax
setne %al
movb %al, -0x39(%rbp)
movb -0x39(%rbp), %al
testb $0x1, %al
jne 0x326d9
jmp 0x326e7
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x3269d
jmp 0x326e9
movq -0x28(%rbp), %rcx
xorl %eax, %eax
cmpq -0x30(%rbp), %rcx
movb %al, -0x3a(%rbp)
jae 0x3271d
callq 0x13480
movq (%rax), %rax
movq -0x30(%rbp), %rcx
movsbl -0x1(%rcx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x2000, %eax # imm = 0x2000
cmpl $0x0, %eax
setne %al
movb %al, -0x3a(%rbp)
movb -0x3a(%rbp), %al
testb $0x1, %al
jne 0x32726
jmp 0x32734
movq -0x30(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0x326e9
movq -0x30(%rbp), %rax
movq -0x28(%rbp), %rcx
subq %rcx, %rax
cmpq $0x5, %rax
jge 0x3274a
jmp 0x3290f
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2d, %eax
jne 0x32773
movq -0x20(%rbp), %rax
movb $0x1, 0x20(%rax)
movl $0x1, -0x34(%rbp)
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x327e0
movq -0x20(%rbp), %rax
movb $0x0, 0x20(%rax)
movl $0x1, -0x38(%rbp)
movq -0x28(%rbp), %rax
movslq -0x38(%rbp), %rcx
addq %rcx, %rax
cmpq -0x30(%rbp), %rax
jae 0x327de
movq -0x28(%rbp), %rax
movslq -0x38(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x2d, %eax
je 0x327b5
movq -0x28(%rbp), %rax
movslq -0x38(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x3a, %eax
jne 0x327d1
movq -0x28(%rbp), %rax
movslq -0x38(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x3a, %eax
sete %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x34(%rbp)
jmp 0x327de
jmp 0x327d3
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x32782
jmp 0x327e0
cmpl $0x0, -0x34(%rbp)
je 0x32843
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x28(%rbp), %rax
subq %rax, %rsi
movq -0x20(%rbp), %rcx
leaq -0x28(%rbp), %rdx
callq 0x32940
cmpl $0x0, %eax
je 0x3280c
jmp 0x3290f
movq -0x20(%rbp), %rax
movl $0x0, 0x8(%rax)
movq -0x20(%rbp), %rax
movl $0x0, 0x4(%rax)
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
movq -0x20(%rbp), %rax
movl $0x2, 0x24(%rax)
movl $0x0, -0x4(%rbp)
jmp 0x32931
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x28(%rbp), %rax
subq %rax, %rsi
movq -0x20(%rbp), %rcx
leaq -0x28(%rbp), %rdx
callq 0x32b90
cmpl $0x0, %eax
je 0x32869
jmp 0x3290f
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
je 0x3287f
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x20, %eax
je 0x328c0
movq -0x20(%rbp), %rax
movq $0x0, 0x18(%rax)
movq -0x20(%rbp), %rax
movl $0x0, 0x14(%rax)
movq -0x20(%rbp), %rax
movl $0x0, 0x10(%rax)
movq -0x20(%rbp), %rax
movl $0x0, 0xc(%rax)
movq -0x20(%rbp), %rax
movl $0x0, 0x24(%rax)
movl $0x0, -0x4(%rbp)
jmp 0x32931
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x28(%rbp), %rax
subq %rax, %rsi
movq -0x20(%rbp), %rcx
leaq -0x28(%rbp), %rdx
callq 0x32940
cmpl $0x0, %eax
je 0x328ef
jmp 0x3290f
movq -0x20(%rbp), %rax
cmpl $0x17, 0xc(%rax)
jbe 0x328fb
jmp 0x3290f
movq -0x20(%rbp), %rax
movl $0x1, 0x24(%rax)
movl $0x0, -0x4(%rbp)
jmp 0x32931
movq -0x20(%rbp), %rdi
xorl %esi, %esi
movl $0x28, %edx
callq 0x13260
movq -0x20(%rbp), %rax
movl $0xffffffff, 0x24(%rax) # imm = 0xFFFFFFFF
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| str_to_TIME:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov rax, [rbp+var_10]
mov [rbp+var_28], rax
mov rax, [rbp+var_10]
add rax, [rbp+var_18]
mov [rbp+var_30], rax
mov [rbp+var_34], 0
cmp [rbp+var_28], 0
jnz short loc_3269B
jmp loc_3290F
loc_3269B:
jmp short $+2
loc_3269D:
mov rcx, [rbp+var_28]
xor eax, eax
cmp rcx, [rbp+var_30]
mov [rbp+var_39], al
jnb short loc_326D0
call ___ctype_b_loc
mov rax, [rax]
mov rcx, [rbp+var_28]
movsx ecx, byte ptr [rcx]
movsxd rcx, ecx
movzx eax, word ptr [rax+rcx*2]
and eax, 2000h
cmp eax, 0
setnz al
mov [rbp+var_39], al
loc_326D0:
mov al, [rbp+var_39]
test al, 1
jnz short loc_326D9
jmp short loc_326E7
loc_326D9:
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
jmp short loc_3269D
loc_326E7:
jmp short $+2
loc_326E9:
mov rcx, [rbp+var_28]
xor eax, eax
cmp rcx, [rbp+var_30]
mov [rbp+var_3A], al
jnb short loc_3271D
call ___ctype_b_loc
mov rax, [rax]
mov rcx, [rbp+var_30]
movsx ecx, byte ptr [rcx-1]
movsxd rcx, ecx
movzx eax, word ptr [rax+rcx*2]
and eax, 2000h
cmp eax, 0
setnz al
mov [rbp+var_3A], al
loc_3271D:
mov al, [rbp+var_3A]
test al, 1
jnz short loc_32726
jmp short loc_32734
loc_32726:
mov rax, [rbp+var_30]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_30], rax
jmp short loc_326E9
loc_32734:
mov rax, [rbp+var_30]
mov rcx, [rbp+var_28]
sub rax, rcx
cmp rax, 5
jge short loc_3274A
jmp loc_3290F
loc_3274A:
mov rax, [rbp+var_28]
movsx eax, byte ptr [rax]
cmp eax, 2Dh ; '-'
jnz short loc_32773
mov rax, [rbp+var_20]
mov byte ptr [rax+20h], 1
mov [rbp+var_34], 1
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
jmp short loc_327E0
loc_32773:
mov rax, [rbp+var_20]
mov byte ptr [rax+20h], 0
mov [rbp+var_38], 1
loc_32782:
mov rax, [rbp+var_28]
movsxd rcx, [rbp+var_38]
add rax, rcx
cmp rax, [rbp+var_30]
jnb short loc_327DE
mov rax, [rbp+var_28]
movsxd rcx, [rbp+var_38]
movsx eax, byte ptr [rax+rcx]
cmp eax, 2Dh ; '-'
jz short loc_327B5
mov rax, [rbp+var_28]
movsxd rcx, [rbp+var_38]
movsx eax, byte ptr [rax+rcx]
cmp eax, 3Ah ; ':'
jnz short loc_327D1
loc_327B5:
mov rax, [rbp+var_28]
movsxd rcx, [rbp+var_38]
movsx eax, byte ptr [rax+rcx]
cmp eax, 3Ah ; ':'
setz al
and al, 1
movzx eax, al
mov [rbp+var_34], eax
jmp short loc_327DE
loc_327D1:
jmp short $+2
loc_327D3:
mov eax, [rbp+var_38]
add eax, 1
mov [rbp+var_38], eax
jmp short loc_32782
loc_327DE:
jmp short $+2
loc_327E0:
cmp [rbp+var_34], 0
jz short loc_32843
mov rdi, [rbp+var_28]
mov rsi, [rbp+var_30]
mov rax, [rbp+var_28]
sub rsi, rax
mov rcx, [rbp+var_20]
lea rdx, [rbp+var_28]
call parse_time
cmp eax, 0
jz short loc_3280C
jmp loc_3290F
loc_3280C:
mov rax, [rbp+var_20]
mov dword ptr [rax+8], 0
mov rax, [rbp+var_20]
mov dword ptr [rax+4], 0
mov rax, [rbp+var_20]
mov dword ptr [rax], 0
mov rax, [rbp+var_20]
mov dword ptr [rax+24h], 2
mov [rbp+var_4], 0
jmp loc_32931
loc_32843:
mov rdi, [rbp+var_28]
mov rsi, [rbp+var_30]
mov rax, [rbp+var_28]
sub rsi, rax
mov rcx, [rbp+var_20]
lea rdx, [rbp+var_28]
call parse_date
cmp eax, 0
jz short loc_32869
jmp loc_3290F
loc_32869:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_30]
jz short loc_3287F
mov rax, [rbp+var_28]
movsx eax, byte ptr [rax]
cmp eax, 20h ; ' '
jz short loc_328C0
loc_3287F:
mov rax, [rbp+var_20]
mov qword ptr [rax+18h], 0
mov rax, [rbp+var_20]
mov dword ptr [rax+14h], 0
mov rax, [rbp+var_20]
mov dword ptr [rax+10h], 0
mov rax, [rbp+var_20]
mov dword ptr [rax+0Ch], 0
mov rax, [rbp+var_20]
mov dword ptr [rax+24h], 0
mov [rbp+var_4], 0
jmp short loc_32931
loc_328C0:
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
mov rdi, [rbp+var_28]
mov rsi, [rbp+var_30]
mov rax, [rbp+var_28]
sub rsi, rax
mov rcx, [rbp+var_20]
lea rdx, [rbp+var_28]
call parse_time
cmp eax, 0
jz short loc_328EF
jmp short loc_3290F
loc_328EF:
mov rax, [rbp+var_20]
cmp dword ptr [rax+0Ch], 17h
jbe short loc_328FB
jmp short loc_3290F
loc_328FB:
mov rax, [rbp+var_20]
mov dword ptr [rax+24h], 1
mov [rbp+var_4], 0
jmp short loc_32931
loc_3290F:
mov rdi, [rbp+var_20]
xor esi, esi
mov edx, 28h ; '('
call _memset
mov rax, [rbp+var_20]
mov dword ptr [rax+24h], 0FFFFFFFFh
mov [rbp+var_4], 1
loc_32931:
mov eax, [rbp+var_4]
add rsp, 40h
pop rbp
retn
| long long str_to_TIME(_BYTE *a1, long long a2, long long a3)
{
bool v4; // [rsp+6h] [rbp-3Ah]
bool v5; // [rsp+7h] [rbp-39h]
int i; // [rsp+8h] [rbp-38h]
BOOL v7; // [rsp+Ch] [rbp-34h]
unsigned long long v8; // [rsp+10h] [rbp-30h]
_BYTE *v9; // [rsp+18h] [rbp-28h] BYREF
long long v10; // [rsp+20h] [rbp-20h]
long long v11; // [rsp+28h] [rbp-18h]
_BYTE *v12; // [rsp+30h] [rbp-10h]
v12 = a1;
v11 = a2;
v10 = a3;
v9 = a1;
v8 = (unsigned long long)&a1[a2];
v7 = 0;
if ( !a1 )
goto LABEL_29;
while ( 1 )
{
v5 = 0;
if ( (unsigned long long)v9 < v8 )
v5 = (*(_WORD *)(*(_QWORD *)__ctype_b_loc() + 2LL * (char)*v9) & 0x2000) != 0;
if ( !v5 )
break;
++v9;
}
while ( 1 )
{
v4 = 0;
if ( (unsigned long long)v9 < v8 )
v4 = (*(_WORD *)(*(_QWORD *)__ctype_b_loc() + 2LL * *(char *)(v8 - 1)) & 0x2000) != 0;
if ( !v4 )
break;
--v8;
}
if ( (long long)(v8 - (_QWORD)v9) < 5 )
goto LABEL_29;
if ( *v9 == 45 )
{
*(_BYTE *)(v10 + 32) = 1;
v7 = 1;
++v9;
}
else
{
*(_BYTE *)(v10 + 32) = 0;
for ( i = 1; (unsigned long long)&v9[i] < v8; ++i )
{
if ( v9[i] == 45 || v9[i] == 58 )
{
v7 = v9[i] == 58;
break;
}
}
}
if ( !v7 )
{
if ( !(unsigned int)parse_date(v9, v8 - (_QWORD)v9, &v9, v10) )
{
if ( v9 == (_BYTE *)v8 || *v9 != 32 )
{
*(_QWORD *)(v10 + 24) = 0LL;
*(_DWORD *)(v10 + 20) = 0;
*(_DWORD *)(v10 + 16) = 0;
*(_DWORD *)(v10 + 12) = 0;
*(_DWORD *)(v10 + 36) = 0;
return 0;
}
++v9;
if ( !(unsigned int)parse_time(v9, v8 - (_QWORD)v9, &v9, v10) && *(_DWORD *)(v10 + 12) <= 0x17u )
{
*(_DWORD *)(v10 + 36) = 1;
return 0;
}
}
LABEL_29:
memset(v10, 0LL, 40LL);
*(_DWORD *)(v10 + 36) = -1;
return 1;
}
if ( (unsigned int)parse_time(v9, v8 - (_QWORD)v9, &v9, v10) )
goto LABEL_29;
*(_DWORD *)(v10 + 8) = 0;
*(_DWORD *)(v10 + 4) = 0;
*(_DWORD *)v10 = 0;
*(_DWORD *)(v10 + 36) = 2;
return 0;
}
| str_to_TIME:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x30],RAX
MOV dword ptr [RBP + -0x34],0x0
CMP qword ptr [RBP + -0x28],0x0
JNZ 0x0013269b
JMP 0x0013290f
LAB_0013269b:
JMP 0x0013269d
LAB_0013269d:
MOV RCX,qword ptr [RBP + -0x28]
XOR EAX,EAX
CMP RCX,qword ptr [RBP + -0x30]
MOV byte ptr [RBP + -0x39],AL
JNC 0x001326d0
CALL 0x00113480
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x28]
MOVSX ECX,byte ptr [RCX]
MOVSXD RCX,ECX
MOVZX EAX,word ptr [RAX + RCX*0x2]
AND EAX,0x2000
CMP EAX,0x0
SETNZ AL
MOV byte ptr [RBP + -0x39],AL
LAB_001326d0:
MOV AL,byte ptr [RBP + -0x39]
TEST AL,0x1
JNZ 0x001326d9
JMP 0x001326e7
LAB_001326d9:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
JMP 0x0013269d
LAB_001326e7:
JMP 0x001326e9
LAB_001326e9:
MOV RCX,qword ptr [RBP + -0x28]
XOR EAX,EAX
CMP RCX,qword ptr [RBP + -0x30]
MOV byte ptr [RBP + -0x3a],AL
JNC 0x0013271d
CALL 0x00113480
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x30]
MOVSX ECX,byte ptr [RCX + -0x1]
MOVSXD RCX,ECX
MOVZX EAX,word ptr [RAX + RCX*0x2]
AND EAX,0x2000
CMP EAX,0x0
SETNZ AL
MOV byte ptr [RBP + -0x3a],AL
LAB_0013271d:
MOV AL,byte ptr [RBP + -0x3a]
TEST AL,0x1
JNZ 0x00132726
JMP 0x00132734
LAB_00132726:
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x30],RAX
JMP 0x001326e9
LAB_00132734:
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x28]
SUB RAX,RCX
CMP RAX,0x5
JGE 0x0013274a
JMP 0x0013290f
LAB_0013274a:
MOV RAX,qword ptr [RBP + -0x28]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x2d
JNZ 0x00132773
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x20],0x1
MOV dword ptr [RBP + -0x34],0x1
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
JMP 0x001327e0
LAB_00132773:
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x20],0x0
MOV dword ptr [RBP + -0x38],0x1
LAB_00132782:
MOV RAX,qword ptr [RBP + -0x28]
MOVSXD RCX,dword ptr [RBP + -0x38]
ADD RAX,RCX
CMP RAX,qword ptr [RBP + -0x30]
JNC 0x001327de
MOV RAX,qword ptr [RBP + -0x28]
MOVSXD RCX,dword ptr [RBP + -0x38]
MOVSX EAX,byte ptr [RAX + RCX*0x1]
CMP EAX,0x2d
JZ 0x001327b5
MOV RAX,qword ptr [RBP + -0x28]
MOVSXD RCX,dword ptr [RBP + -0x38]
MOVSX EAX,byte ptr [RAX + RCX*0x1]
CMP EAX,0x3a
JNZ 0x001327d1
LAB_001327b5:
MOV RAX,qword ptr [RBP + -0x28]
MOVSXD RCX,dword ptr [RBP + -0x38]
MOVSX EAX,byte ptr [RAX + RCX*0x1]
CMP EAX,0x3a
SETZ AL
AND AL,0x1
MOVZX EAX,AL
MOV dword ptr [RBP + -0x34],EAX
JMP 0x001327de
LAB_001327d1:
JMP 0x001327d3
LAB_001327d3:
MOV EAX,dword ptr [RBP + -0x38]
ADD EAX,0x1
MOV dword ptr [RBP + -0x38],EAX
JMP 0x00132782
LAB_001327de:
JMP 0x001327e0
LAB_001327e0:
CMP dword ptr [RBP + -0x34],0x0
JZ 0x00132843
MOV RDI,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x28]
SUB RSI,RAX
MOV RCX,qword ptr [RBP + -0x20]
LEA RDX,[RBP + -0x28]
CALL 0x00132940
CMP EAX,0x0
JZ 0x0013280c
JMP 0x0013290f
LAB_0013280c:
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x8],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x4],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x24],0x2
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00132931
LAB_00132843:
MOV RDI,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x28]
SUB RSI,RAX
MOV RCX,qword ptr [RBP + -0x20]
LEA RDX,[RBP + -0x28]
CALL 0x00132b90
CMP EAX,0x0
JZ 0x00132869
JMP 0x0013290f
LAB_00132869:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x30]
JZ 0x0013287f
MOV RAX,qword ptr [RBP + -0x28]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x20
JZ 0x001328c0
LAB_0013287f:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x18],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x14],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x10],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0xc],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x24],0x0
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00132931
LAB_001328c0:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
MOV RDI,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x28]
SUB RSI,RAX
MOV RCX,qword ptr [RBP + -0x20]
LEA RDX,[RBP + -0x28]
CALL 0x00132940
CMP EAX,0x0
JZ 0x001328ef
JMP 0x0013290f
LAB_001328ef:
MOV RAX,qword ptr [RBP + -0x20]
CMP dword ptr [RAX + 0xc],0x17
JBE 0x001328fb
JMP 0x0013290f
LAB_001328fb:
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x24],0x1
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00132931
LAB_0013290f:
MOV RDI,qword ptr [RBP + -0x20]
XOR ESI,ESI
MOV EDX,0x28
CALL 0x00113260
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x24],0xffffffff
MOV dword ptr [RBP + -0x4],0x1
LAB_00132931:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x40
POP RBP
RET
|
int4 str_to_TIME(char *param_1,long param_2,int4 *param_3)
{
int iVar1;
ushort **ppuVar2;
bool bVar3;
bool bVar4;
int local_40;
char *local_38;
char *local_30;
int4 *local_28;
long local_20;
char *local_18;
local_38 = param_1 + param_2;
bVar4 = false;
local_30 = param_1;
local_28 = param_3;
local_20 = param_2;
local_18 = param_1;
if (param_1 != (char *)0x0) {
while( true ) {
bVar3 = false;
if (local_30 < local_38) {
ppuVar2 = __ctype_b_loc();
bVar3 = ((*ppuVar2)[(int)*local_30] & 0x2000) != 0;
}
if (!bVar3) break;
local_30 = local_30 + 1;
}
while( true ) {
bVar3 = false;
if (local_30 < local_38) {
ppuVar2 = __ctype_b_loc();
bVar3 = ((*ppuVar2)[(int)local_38[-1]] & 0x2000) != 0;
}
if (!bVar3) break;
local_38 = local_38 + -1;
}
if (4 < (long)local_38 - (long)local_30) {
if (*local_30 == '-') {
*(int1 *)(local_28 + 8) = 1;
bVar4 = true;
local_30 = local_30 + 1;
}
else {
*(int1 *)(local_28 + 8) = 0;
for (local_40 = 1; local_30 + local_40 < local_38; local_40 = local_40 + 1) {
if ((local_30[local_40] == '-') || (local_30[local_40] == ':')) {
bVar4 = local_30[local_40] == ':';
break;
}
}
}
if (bVar4) {
iVar1 = parse_time(local_30,(long)local_38 - (long)local_30,&local_30,local_28);
if (iVar1 == 0) {
local_28[2] = 0;
local_28[1] = 0;
*local_28 = 0;
local_28[9] = 2;
return 0;
}
}
else {
iVar1 = parse_date(local_30,(long)local_38 - (long)local_30,&local_30,local_28);
if (iVar1 == 0) {
if ((local_30 == local_38) || (*local_30 != ' ')) {
*(int8 *)(local_28 + 6) = 0;
local_28[5] = 0;
local_28[4] = 0;
local_28[3] = 0;
local_28[9] = 0;
return 0;
}
local_30 = local_30 + 1;
iVar1 = parse_time(local_30,(long)local_38 - (long)local_30,&local_30,local_28);
if ((iVar1 == 0) && ((uint)local_28[3] < 0x18)) {
local_28[9] = 1;
return 0;
}
}
}
}
}
memset(local_28,0,0x28);
local_28[9] = 0xffffffff;
return 1;
}
| |
37,843 | exit_status | eloqsql/unittest/mytap/tap.c | int exit_status()
{
char buff[60];
/*
If there were no plan, we write one last instead.
*/
if (g_test.plan == NO_PLAN)
plan(g_test.last);
if (g_test.plan != g_test.last)
{
diag("%d tests planned but%s %d executed",
g_test.plan, (g_test.plan > g_test.last ? " only" : ""), g_test.last);
return EXIT_FAILURE;
}
if (g_test.failed > 0)
{
diag("Failed %d tests!", g_test.failed);
return EXIT_FAILURE;
}
if (start_time)
{
end_timer(start_time, buff);
printf("Test took %s\n", buff);
fflush(stdout);
}
return EXIT_SUCCESS;
} | O0 | c | exit_status:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
cmpl $0x0, 0x36224c(%rip) # 0x387948
jne 0x25709
movl 0x362248(%rip), %edi # 0x38794c
callq 0x25050
movl 0x362239(%rip), %eax # 0x387948
cmpl 0x362237(%rip), %eax # 0x38794c
je 0x2575a
movl 0x36222b(%rip), %esi # 0x387948
movl 0x362225(%rip), %ecx # 0x387948
movl 0x362223(%rip), %edi # 0x38794c
leaq 0x5966c(%rip), %rdx # 0x7ed9c
leaq 0x59dc7(%rip), %rax # 0x7f4fe
cmpl %edi, %ecx
cmovgq %rax, %rdx
movl 0x362209(%rip), %ecx # 0x38794c
leaq 0x55baf(%rip), %rdi # 0x7b2f9
movb $0x0, %al
callq 0x24f80
movl $0x1, -0x54(%rbp)
jmp 0x257c2
cmpl $0x0, 0x3621ef(%rip) # 0x387950
jle 0x25780
movl 0x3621e7(%rip), %esi # 0x387950
leaq 0x55bac(%rip), %rdi # 0x7b31c
movb $0x0, %al
callq 0x24f80
movl $0x1, -0x54(%rbp)
jmp 0x257c2
cmpq $0x0, 0x362250(%rip) # 0x3879d8
je 0x257bb
movq 0x362247(%rip), %rdi # 0x3879d8
leaq -0x50(%rbp), %rsi
callq 0x257f0
leaq -0x50(%rbp), %rsi
leaq 0x55b88(%rip), %rdi # 0x7b32d
movb $0x0, %al
callq 0x24060
movq 0x1aa80d(%rip), %rax # 0x1cffc0
movq (%rax), %rdi
callq 0x24330
movl $0x0, -0x54(%rbp)
movl -0x54(%rbp), %eax
movl %eax, -0x58(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x257e3
movl -0x58(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
callq 0x242f0
nopl (%rax,%rax)
| exit_status:
push rbp
mov rbp, rsp
sub rsp, 60h
mov rax, fs:28h
mov [rbp+var_8], rax
cmp cs:g_test, 0
jnz short loc_25709
mov edi, cs:dword_38794C
call plan
loc_25709:
mov eax, cs:g_test
cmp eax, cs:dword_38794C
jz short loc_2575A
mov esi, cs:g_test
mov ecx, cs:g_test
mov edi, cs:dword_38794C
lea rdx, asc_7ED98+4; ""
lea rax, aTableIsReadOnl+0Dh; " only"
cmp ecx, edi
cmovg rdx, rax
mov ecx, cs:dword_38794C
lea rdi, aDTestsPlannedB; "%d tests planned but%s %d executed"
mov al, 0
call diag
mov [rbp+var_54], 1
jmp short loc_257C2
loc_2575A:
cmp cs:dword_387950, 0
jle short loc_25780
mov esi, cs:dword_387950
lea rdi, aFailedDTests; "Failed %d tests!"
mov al, 0
call diag
mov [rbp+var_54], 1
jmp short loc_257C2
loc_25780:
cmp cs:start_time, 0
jz short loc_257BB
mov rdi, cs:start_time
lea rsi, [rbp+var_50]
call end_timer
lea rsi, [rbp+var_50]
lea rdi, aTestTookS; "Test took %s\n"
mov al, 0
call _printf
mov rax, cs:stdout_ptr
mov rdi, [rax]
call _fflush
loc_257BB:
mov [rbp+var_54], 0
loc_257C2:
mov eax, [rbp+var_54]
mov [rbp+var_58], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_257E3
mov eax, [rbp+var_58]
add rsp, 60h
pop rbp
retn
loc_257E3:
call ___stack_chk_fail
| long long exit_status(
__m128 a1,
__m128 a2,
__m128 a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
long long a9,
long long a10,
long long a11,
long long a12,
long long a13,
long long a14)
{
char *v14; // rdx
char v16; // [rsp+0h] [rbp-60h]
char v18[72]; // [rsp+10h] [rbp-50h] BYREF
unsigned long long v19; // [rsp+58h] [rbp-8h]
v19 = __readfsqword(0x28u);
if ( !g_test )
plan(dword_38794C);
if ( g_test == dword_38794C )
{
if ( dword_387950 <= 0 )
{
if ( start_time )
{
end_timer(start_time, v18);
printf("Test took %s\n", v18);
fflush(stdout);
}
return 0;
}
else
{
diag(
(long long)"Failed %d tests!",
(unsigned int)dword_387950,
a11,
a12,
a13,
a14,
a1,
a2,
a3,
a4,
a5,
a6,
a7,
a8,
v16);
return 1;
}
}
else
{
v14 = "";
if ( g_test > dword_38794C )
v14 = " only";
diag(
(long long)"%d tests planned but%s %d executed",
(unsigned int)g_test,
(long long)v14,
(unsigned int)dword_38794C,
a13,
a14,
a1,
a2,
a3,
a4,
a5,
a6,
a7,
a8,
v16);
return 1;
}
}
| exit_status:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
CMP dword ptr [0x00487948],0x0
JNZ 0x00125709
MOV EDI,dword ptr [0x0048794c]
CALL 0x00125050
LAB_00125709:
MOV EAX,dword ptr [0x00487948]
CMP EAX,dword ptr [0x0048794c]
JZ 0x0012575a
MOV ESI,dword ptr [0x00487948]
MOV ECX,dword ptr [0x00487948]
MOV EDI,dword ptr [0x0048794c]
LEA RDX,[0x17ed9c]
LEA RAX,[0x17f4fe]
CMP ECX,EDI
CMOVG RDX,RAX
MOV ECX,dword ptr [0x0048794c]
LEA RDI,[0x17b2f9]
MOV AL,0x0
CALL 0x00124f80
MOV dword ptr [RBP + -0x54],0x1
JMP 0x001257c2
LAB_0012575a:
CMP dword ptr [0x00487950],0x0
JLE 0x00125780
MOV ESI,dword ptr [0x00487950]
LEA RDI,[0x17b31c]
MOV AL,0x0
CALL 0x00124f80
MOV dword ptr [RBP + -0x54],0x1
JMP 0x001257c2
LAB_00125780:
CMP qword ptr [0x004879d8],0x0
JZ 0x001257bb
MOV RDI,qword ptr [0x004879d8]
LEA RSI,[RBP + -0x50]
CALL 0x001257f0
LEA RSI,[RBP + -0x50]
LEA RDI,[0x17b32d]
MOV AL,0x0
CALL 0x00124060
MOV RAX,qword ptr [0x002cffc0]
MOV RDI,qword ptr [RAX]
CALL 0x00124330
LAB_001257bb:
MOV dword ptr [RBP + -0x54],0x0
LAB_001257c2:
MOV EAX,dword ptr [RBP + -0x54]
MOV dword ptr [RBP + -0x58],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001257e3
MOV EAX,dword ptr [RBP + -0x58]
ADD RSP,0x60
POP RBP
RET
LAB_001257e3:
CALL 0x001242f0
|
int4 exit_status(void)
{
char *pcVar1;
long in_FS_OFFSET;
int4 local_5c;
int1 local_58 [72];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
if (g_test == 0) {
plan(DAT_0048794c);
}
if (g_test == DAT_0048794c) {
if (DAT_00487950 < 1) {
if (start_time != 0) {
end_timer(start_time,local_58);
printf("Test took %s\n",local_58);
fflush(*(FILE **)PTR_stdout_002cffc0);
}
local_5c = 0;
}
else {
diag("Failed %d tests!",DAT_00487950);
local_5c = 1;
}
}
else {
pcVar1 = "";
if (DAT_0048794c < g_test) {
pcVar1 = " only";
}
diag("%d tests planned but%s %d executed",g_test,pcVar1,DAT_0048794c);
local_5c = 1;
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return local_5c;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
37,844 | my_fill_utf8mb3 | eloqsql/strings/ctype-utf8.c | static void
my_fill_utf8mb3(CHARSET_INFO *cs, char *str, size_t length, int fill)
{
if (fill < 0x80)
my_fill_8bit(cs, str, length, fill);
else
my_fill_utf8mb3_mb(cs, str, length, fill);
} | O3 | c | my_fill_utf8mb3:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r15
movq %rsi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
cmpl $0x7f, %ecx
jg 0x53941
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x539c5
movq %rbx, %rsi
movq %r15, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3da07
leaq (%rbx,%r15), %r14
movq 0xb8(%rdi), %rax
movl %ecx, %esi
leaq -0x30(%rbp), %rcx
leaq -0x3a(%rbp), %rdx
callq *0xd8(%rax)
movsbq %al, %r12
cmpq %r15, %r12
jle 0x5396a
movq %rbx, %r13
jmp 0x5398f
movsbq %al, %r15
movq %rbx, %r13
movq %rbx, %rdi
leaq -0x3a(%rbp), %rsi
movq %r15, %rdx
callq 0x24230
addq %r12, %rbx
addq %r12, %r13
leaq (%rbx,%r12), %rax
cmpq %r14, %rax
jbe 0x53971
cmpq %r14, %rbx
jae 0x539a7
subq %r13, %r14
movq %rbx, %rdi
movl $0x20, %esi
movq %r14, %rdx
callq 0x24190
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x539c5
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x24360
| my_fill_utf8mb3:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r15, rdx
mov rbx, rsi
mov rax, fs:28h
mov [rbp+var_30], rax
cmp ecx, 7Fh
jg short loc_53941
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz loc_539C5
mov rsi, rbx
mov rdx, r15
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp my_fill_8bit
loc_53941:
lea r14, [rbx+r15]
mov rax, [rdi+0B8h]
mov esi, ecx
lea rcx, [rbp+var_30]
lea rdx, [rbp+var_3A]
call qword ptr [rax+0D8h]
movsx r12, al
cmp r12, r15
jle short loc_5396A
mov r13, rbx
jmp short loc_5398F
loc_5396A:
movsx r15, al
mov r13, rbx
loc_53971:
mov rdi, rbx
lea rsi, [rbp+var_3A]
mov rdx, r15
call _memcpy
add rbx, r12
add r13, r12
lea rax, [rbx+r12]
cmp rax, r14
jbe short loc_53971
loc_5398F:
cmp rbx, r14
jnb short loc_539A7
sub r14, r13
mov rdi, rbx
mov esi, 20h ; ' '
mov rdx, r14
call _memset
loc_539A7:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_539C5
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_539C5:
call ___stack_chk_fail
| long long my_fill_utf8mb3(long long a1, long long a2, long long a3, signed int a4)
{
unsigned long long v5; // rbx
unsigned long long v7; // r14
char v8; // al
long long v9; // r12
long long v10; // r13
long long v11; // r15
_BYTE v12[10]; // [rsp+6h] [rbp-3Ah] BYREF
unsigned long long v13[6]; // [rsp+10h] [rbp-30h] BYREF
v5 = a2;
v13[0] = __readfsqword(0x28u);
if ( a4 <= 127 )
return my_fill_8bit(a1, a2, a3, a4);
v7 = a2 + a3;
v8 = (*(long long ( **)(long long, _QWORD, _BYTE *, unsigned long long *))(*(_QWORD *)(a1 + 184) + 216LL))(
a1,
(unsigned int)a4,
v12,
v13);
v9 = v8;
if ( v8 <= a3 )
{
v11 = v8;
v10 = a2;
do
{
memcpy(v5, v12, v11);
v5 += v9;
v10 += v9;
}
while ( v5 + v9 <= v7 );
}
else
{
v10 = a2;
}
if ( v5 < v7 )
memset(v5, 32LL, v7 - v10);
return __readfsqword(0x28u);
}
| my_fill_utf8mb3:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R15,RDX
MOV RBX,RSI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
CMP ECX,0x7f
JG 0x00153941
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x001539c5
MOV RSI,RBX
MOV RDX,R15
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x0013da07
LAB_00153941:
LEA R14,[RBX + R15*0x1]
MOV RAX,qword ptr [RDI + 0xb8]
MOV ESI,ECX
LEA RCX,[RBP + -0x30]
LEA RDX,[RBP + -0x3a]
CALL qword ptr [RAX + 0xd8]
MOVSX R12,AL
CMP R12,R15
JLE 0x0015396a
MOV R13,RBX
JMP 0x0015398f
LAB_0015396a:
MOVSX R15,AL
MOV R13,RBX
LAB_00153971:
MOV RDI,RBX
LEA RSI,[RBP + -0x3a]
MOV RDX,R15
CALL 0x00124230
ADD RBX,R12
ADD R13,R12
LEA RAX,[RBX + R12*0x1]
CMP RAX,R14
JBE 0x00153971
LAB_0015398f:
CMP RBX,R14
JNC 0x001539a7
SUB R14,R13
MOV RDI,RBX
MOV ESI,0x20
MOV RDX,R14
CALL 0x00124190
LAB_001539a7:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x001539c5
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001539c5:
CALL 0x00124360
|
void my_fill_utf8mb3(long param_1,void *param_2,long param_3,int param_4)
{
void *pvVar1;
char cVar2;
long lVar3;
void *pvVar4;
long in_FS_OFFSET;
int1 local_42 [10];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
if (param_4 < 0x80) {
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
my_fill_8bit(param_1,param_2,param_3);
return;
}
}
else {
pvVar1 = (void *)((long)param_2 + param_3);
cVar2 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xd8))(param_1,param_4,local_42,&local_38);
lVar3 = (long)cVar2;
pvVar4 = param_2;
if (lVar3 <= param_3) {
do {
memcpy(param_2,local_42,(long)cVar2);
param_2 = (void *)((long)param_2 + lVar3);
pvVar4 = (void *)((long)pvVar4 + lVar3);
} while ((void *)((long)param_2 + lVar3) <= pvVar1);
}
if (param_2 < pvVar1) {
memset(param_2,0x20,(long)pvVar1 - (long)pvVar4);
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return;
}
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
37,845 | stbi__zexpand(stbi__zbuf*, char*, int) | monkey531[P]llama/examples/llava/../../common/stb_image.h | static int stbi__zexpand(stbi__zbuf *z, char *zout, int n) // need to make room for n bytes
{
char *q;
unsigned int cur, limit, old_limit;
z->zout = zout;
if (!z->z_expandable) return stbi__err("output buffer limit","Corrupt PNG");
cur = (unsigned int) (z->zout - z->zout_start);
limit = old_limit = (unsigned) (z->zout_end - z->zout_start);
if (UINT_MAX - cur < (unsigned) n) return stbi__err("outofmem", "Out of memory");
while (cur + n > limit) {
if(limit > UINT_MAX / 2) return stbi__err("outofmem", "Out of memory");
limit *= 2;
}
q = (char *) STBI_REALLOC_SIZED(z->zout_start, old_limit, limit);
STBI_NOTUSED(old_limit);
if (q == NULL) return stbi__err("outofmem", "Out of memory");
z->zout_start = q;
z->zout = q + cur;
z->zout_end = q + limit;
return 1;
} | O3 | c | stbi__zexpand(stbi__zbuf*, char*, int):
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, 0x20(%rdi)
cmpl $0x0, 0x38(%rdi)
je 0x43625
movq %rsi, %r14
movq %rdi, %rbx
movq 0x28(%rdi), %rdi
subq %rdi, %r14
addl %r14d, %edx
jb 0x43666
movl 0x30(%rbx), %eax
subl %edi, %eax
cmpl %eax, %edx
jbe 0x4363a
testl %eax, %eax
js 0x43666
addl %eax, %eax
jmp 0x43619
movq %fs:0x0, %rax
leaq 0xc83cb(%rip), %rcx # 0x10ba03
jmp 0x43679
movl %eax, %r15d
movq %r15, %rsi
callq 0x1e480
testq %rax, %rax
je 0x43666
movq %rax, 0x28(%rbx)
movl %r14d, %ecx
addq %rax, %rcx
movq %rcx, 0x20(%rbx)
addq %rax, %r15
movq %r15, 0x30(%rbx)
movl $0x1, %eax
jmp 0x43682
movq %fs:0x0, %rax
leaq 0xc7f5a(%rip), %rcx # 0x10b5d3
movq %rcx, -0x20(%rax)
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
| _ZL13stbi__zexpandP10stbi__zbufPci:
push r15
push r14
push rbx
mov [rdi+20h], rsi
cmp dword ptr [rdi+38h], 0
jz short loc_43625
mov r14, rsi
mov rbx, rdi
mov rdi, [rdi+28h]
sub r14, rdi
add edx, r14d
jb short loc_43666
mov eax, [rbx+30h]
sub eax, edi
loc_43619:
cmp edx, eax
jbe short loc_4363A
test eax, eax
js short loc_43666
add eax, eax
jmp short loc_43619
loc_43625:
mov rax, fs:0
lea rcx, aOutputBufferLi; "output buffer limit"
jmp short loc_43679
loc_4363A:
mov r15d, eax
mov rsi, r15
call _realloc
test rax, rax
jz short loc_43666
mov [rbx+28h], rax
mov ecx, r14d
add rcx, rax
mov [rbx+20h], rcx
add r15, rax
mov [rbx+30h], r15
mov eax, 1
jmp short loc_43682
loc_43666:
mov rax, fs:0
lea rcx, aOutofmem; "outofmem"
loc_43679:
mov [rax-20h], rcx
xor eax, eax
loc_43682:
pop rbx
pop r14
pop r15
retn
| long long stbi__zexpand(long long a1, long long a2, int a3)
{
long long v4; // rdi
bool v5; // cf
unsigned int v6; // edx
unsigned int i; // eax
unsigned long long v8; // rax
const char *v9; // rcx
long long v10; // r15
long long v11; // rax
*(_QWORD *)(a1 + 32) = a2;
if ( *(_DWORD *)(a1 + 56) )
{
v4 = *(_QWORD *)(a1 + 40);
v5 = __CFADD__(a2 - v4, a3);
v6 = a2 - v4 + a3;
if ( !v5 )
{
for ( i = *(_DWORD *)(a1 + 48) - v4; v6 > i; i *= 2 )
{
if ( (i & 0x80000000) != 0 )
goto LABEL_10;
}
v10 = i;
v11 = realloc(v4, i);
if ( v11 )
{
*(_QWORD *)(a1 + 40) = v11;
*(_QWORD *)(a1 + 32) = v11 + (unsigned int)(a2 - v4);
*(_QWORD *)(a1 + 48) = v11 + v10;
return 1LL;
}
}
LABEL_10:
v8 = __readfsqword(0);
v9 = "outofmem";
}
else
{
v8 = __readfsqword(0);
v9 = "output buffer limit";
}
*(_QWORD *)(v8 - 32) = v9;
return 0LL;
}
| stbi__zexpand:
PUSH R15
PUSH R14
PUSH RBX
MOV qword ptr [RDI + 0x20],RSI
CMP dword ptr [RDI + 0x38],0x0
JZ 0x00143625
MOV R14,RSI
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0x28]
SUB R14,RDI
ADD EDX,R14D
JC 0x00143666
MOV EAX,dword ptr [RBX + 0x30]
SUB EAX,EDI
LAB_00143619:
CMP EDX,EAX
JBE 0x0014363a
TEST EAX,EAX
JS 0x00143666
ADD EAX,EAX
JMP 0x00143619
LAB_00143625:
MOV RAX,qword ptr FS:[0x0]
LEA RCX,[0x20ba03]
JMP 0x00143679
LAB_0014363a:
MOV R15D,EAX
MOV RSI,R15
CALL 0x0011e480
TEST RAX,RAX
JZ 0x00143666
MOV qword ptr [RBX + 0x28],RAX
MOV ECX,R14D
ADD RCX,RAX
MOV qword ptr [RBX + 0x20],RCX
ADD R15,RAX
MOV qword ptr [RBX + 0x30],R15
MOV EAX,0x1
JMP 0x00143682
LAB_00143666:
MOV RAX,qword ptr FS:[0x0]
LEA RCX,[0x20b5d3]
LAB_00143679:
MOV qword ptr [RAX + -0x20],RCX
XOR EAX,EAX
LAB_00143682:
POP RBX
POP R14
POP R15
RET
|
/* stbi__zexpand(stbi__zbuf*, char*, int) */
int8 stbi__zexpand(stbi__zbuf *param_1,char *param_2,int param_3)
{
void *__ptr;
uint uVar1;
void *pvVar2;
long lVar3;
char *pcVar4;
uint uVar5;
long *in_FS_OFFSET;
*(char **)(param_1 + 0x20) = param_2;
if (*(int *)(param_1 + 0x38) == 0) {
lVar3 = *in_FS_OFFSET;
pcVar4 = "output buffer limit";
}
else {
__ptr = *(void **)(param_1 + 0x28);
uVar5 = (uint)((long)param_2 - (long)__ptr);
if (!CARRY4(param_3,uVar5)) {
for (uVar1 = *(int *)(param_1 + 0x30) - (int)__ptr; uVar1 < param_3 + uVar5; uVar1 = uVar1 * 2
) {
if ((int)uVar1 < 0) goto LAB_00143666;
}
pvVar2 = realloc(__ptr,(ulong)uVar1);
if (pvVar2 != (void *)0x0) {
*(void **)(param_1 + 0x28) = pvVar2;
*(ulong *)(param_1 + 0x20) = ((long)param_2 - (long)__ptr & 0xffffffffU) + (long)pvVar2;
*(ulong *)(param_1 + 0x30) = (ulong)uVar1 + (long)pvVar2;
return 1;
}
}
LAB_00143666:
lVar3 = *in_FS_OFFSET;
pcVar4 = "outofmem";
}
*(char **)(lVar3 + -0x20) = pcVar4;
return 0;
}
| |
37,846 | is_not_initialized | eloqsql/build_O0/libmariadb/libmariadb/ma_client_plugin.c | static int is_not_initialized(MYSQL *mysql, const char *name)
{
if (initialized)
return 0;
my_set_error(mysql, CR_AUTH_PLUGIN_CANNOT_LOAD,
SQLSTATE_UNKNOWN, ER(CR_AUTH_PLUGIN_CANNOT_LOAD),
name, "not initialized");
return 1;
} | O0 | c | is_not_initialized:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
cmpb $0x0, 0x2b599(%rip) # 0x65ec0
je 0x3a932
movl $0x0, -0x4(%rbp)
jmp 0x3a96c
movq -0x10(%rbp), %rdi
leaq 0x29803(%rip), %rax # 0x64140
movq (%rax), %rdx
leaq 0x29809(%rip), %rax # 0x64150
movq 0x1d8(%rax), %rcx
movq -0x18(%rbp), %r8
movl $0x80b, %esi # imm = 0x80B
leaq 0x1710d(%rip), %r9 # 0x51a6b
movb $0x0, %al
callq 0x1ac80
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| is_not_initialized:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
cmp cs:initialized, 0
jz short loc_3A932
mov [rbp+var_4], 0
jmp short loc_3A96C
loc_3A932:
mov rdi, [rbp+var_10]
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
lea rax, client_errors
mov rcx, [rax+1D8h]
mov r8, [rbp+var_18]
mov esi, 80Bh
lea r9, aNotInitialized; "not initialized"
mov al, 0
call my_set_error
mov [rbp+var_4], 1
loc_3A96C:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
| long long is_not_initialized(long long a1, long long a2)
{
if ( initialized )
{
return 0;
}
else
{
my_set_error(a1, 0x80Bu, (long long)SQLSTATE_UNKNOWN, (long long)client_errors[59], a2, "not initialized");
return 1;
}
}
| is_not_initialized:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
CMP byte ptr [0x00165ec0],0x0
JZ 0x0013a932
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0013a96c
LAB_0013a932:
MOV RDI,qword ptr [RBP + -0x10]
LEA RAX,[0x164140]
MOV RDX,qword ptr [RAX]
LEA RAX,[0x164150]
MOV RCX,qword ptr [RAX + 0x1d8]
MOV R8,qword ptr [RBP + -0x18]
MOV ESI,0x80b
LEA R9,[0x151a6b]
MOV AL,0x0
CALL 0x0011ac80
MOV dword ptr [RBP + -0x4],0x1
LAB_0013a96c:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
bool is_not_initialized(int8 param_1,int8 param_2)
{
bool bVar1;
bVar1 = initialized == '\0';
if (bVar1) {
my_set_error(param_1,0x80b,SQLSTATE_UNKNOWN,PTR_s_Plugin__s_could_not_be_loaded____00164328,
param_2,"not initialized");
}
return bVar1;
}
| |
37,847 | 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 0xf2ec5
jmp 0xf2ec7
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
callq 0x2a550
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_F2EC5:
jmp short $+2
loc_F2EC7:
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 0x001f2ec5
LAB_001f2ec5:
JMP 0x001f2ec7
LAB_001f2ec7:
MOV EDI,dword ptr [RBP + -0x4]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x0012a550
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;
}
| |
37,848 | 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<double&>(double&, bool) | monkey531[P]llama/common/./json.hpp | std::pair<bool, BasicJsonType*> handle_value(Value&& v, const bool skip_callback = false)
{
JSON_ASSERT(!keep_stack.empty());
// do not handle this value if we know it would be added to a discarded
// container
if (!keep_stack.back())
{
return {false, nullptr};
}
// create value
auto value = BasicJsonType(std::forward<Value>(v));
// check callback
const bool keep = skip_callback || callback(static_cast<int>(ref_stack.size()), parse_event_t::value, value);
// do not handle this value if we just learnt it shall be discarded
if (!keep)
{
return {false, nullptr};
}
if (ref_stack.empty())
{
root = std::move(value);
return {true, & root};
}
// skip this value if we already decided to skip the parent
// (https://github.com/nlohmann/json/issues/971#issuecomment-413678360)
if (!ref_stack.back())
{
return {false, nullptr};
}
// we now only expect arrays and objects
JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
// array
if (ref_stack.back()->is_array())
{
ref_stack.back()->m_data.m_value.array->emplace_back(std::move(value));
return {true, & (ref_stack.back()->m_data.m_value.array->back())};
}
// object
JSON_ASSERT(ref_stack.back()->is_object());
// check if we should store an element for the current key
JSON_ASSERT(!key_keep_stack.empty());
const bool store_element = key_keep_stack.back();
key_keep_stack.pop_back();
if (!store_element)
{
return {false, nullptr};
}
JSON_ASSERT(object_element);
*object_element = std::move(value);
return {true, object_element};
} | O1 | cpp | std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<double&>(double&, 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 0x821e7
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 0x8207a
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r14
movaps %xmm0, (%r14)
movsd (%rsi), %xmm0
movq %r14, %rdi
callq 0x5f2b8
movq %r14, %rdi
movl $0x1, %esi
callq 0x449aa
testb %bpl, %bpl
jne 0x82027
movq 0x10(%rbx), %rax
subq 0x8(%rbx), %rax
shrq $0x3, %rax
movl %eax, 0xc(%rsp)
movb $0x5, 0xb(%rsp)
cmpq $0x0, 0x90(%rbx)
je 0x82208
leaq 0x80(%rbx), %rdi
leaq 0xc(%rsp), %rsi
leaq 0xb(%rsp), %rdx
leaq 0x10(%rsp), %rcx
callq *0x98(%rbx)
testb %al, %al
je 0x821bb
movq 0x10(%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x82084
movq -0x8(%rax), %rax
testq %rax, %rax
je 0x821bb
movzbl (%rax), %ecx
cmpl $0x1, %ecx
je 0x820de
cmpl $0x2, %ecx
jne 0x8220d
movq 0x8(%rax), %rdi
leaq 0x10(%rsp), %rsi
callq 0x45682
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %r14
addq $-0x10, %r14
jmp 0x821b7
xorl %ebx, %ebx
xorl %r14d, %r14d
jmp 0x821d7
leaq 0x10(%rsp), %r14
movaps (%r14), %xmm0
leaq 0x30(%rsp), %r15
movaps %xmm0, (%r15)
movq %r14, %rdi
xorl %esi, %esi
callq 0x449aa
movb $0x0, (%r14)
movq $0x0, 0x8(%r14)
movq %r15, %rdi
movl $0x1, %esi
callq 0x449aa
movq (%rbx), %rdi
movq %r15, %rsi
callq 0x56e60
movq %r15, %rdi
xorl %esi, %esi
callq 0x449aa
movq %r15, %rdi
callq 0x45236
movq (%rbx), %r14
jmp 0x821b7
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 0x8221b
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 0x82150
movl $0x3f, 0x60(%rbx)
addq $-0x8, %rax
movq %rax, 0x58(%rbx)
testq %rdx, %rdx
je 0x821bb
cmpq $0x0, 0x70(%rbx)
je 0x8223c
leaq 0x10(%rsp), %r14
movaps (%r14), %xmm0
leaq 0x20(%rsp), %r15
movaps %xmm0, (%r15)
movq %r14, %rdi
xorl %esi, %esi
callq 0x449aa
movb $0x0, (%r14)
movq $0x0, 0x8(%r14)
movq %r15, %rdi
movl $0x1, %esi
callq 0x449aa
movq 0x70(%rbx), %rdi
movq %r15, %rsi
callq 0x56e60
movq %r15, %rdi
xorl %esi, %esi
callq 0x449aa
movq %r15, %rdi
callq 0x45236
movq 0x70(%rbx), %r14
movb $0x1, %bl
jmp 0x821c0
xorl %ebx, %ebx
xorl %r14d, %r14d
leaq 0x10(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x449aa
movq %r15, %rdi
callq 0x45236
movl %ebx, %eax
movq %r14, %rdx
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0xc9ba0(%rip), %rdi # 0x14bd8e
leaq 0xc9be5(%rip), %rdx # 0x14bdda
leaq 0xcd1e9(%rip), %rcx # 0x14f3e5
movl $0x1c28, %esi # imm = 0x1C28
xorl %eax, %eax
callq 0x20250
callq 0x1f3e0
leaq 0xcd1e5(%rip), %rcx # 0x14f3f9
movl $0x1c4b, %esi # imm = 0x1C4B
jmp 0x82227
leaq 0xcd215(%rip), %rcx # 0x14f437
movl $0x1c57, %esi # imm = 0x1C57
leaq 0xc9b60(%rip), %rdi # 0x14bd8e
leaq 0xc9ba5(%rip), %rdx # 0x14bdda
xorl %eax, %eax
callq 0x20250
leaq 0xc9b4b(%rip), %rdi # 0x14bd8e
leaq 0xc9b90(%rip), %rdx # 0x14bdda
leaq 0xcd1fe(%rip), %rcx # 0x14f44f
movl $0x1c60, %esi # imm = 0x1C60
xorl %eax, %eax
callq 0x20250
jmp 0x8225f
movq %rax, %rbx
leaq 0x10(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x449aa
movq %r14, %rdi
callq 0x45236
movq %rbx, %rdi
callq 0x20380
nop
| _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueIRdEESt4pairIbPSF_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_821E7
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_8207A
xorps xmm0, xmm0
lea r14, [rsp+68h+var_58]
movaps xmmword ptr [r14], xmm0
movsd xmm0, qword ptr [rsi]
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE7EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_14number_float_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_float_t)
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_82027
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_82208
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_821BB
loc_82027:
mov rax, [rbx+10h]
cmp [rbx+8], rax
jz short loc_82084
mov rax, [rax-8]
test rax, rax
jz loc_821BB
movzx ecx, byte ptr [rax]
cmp ecx, 1
jz loc_820DE
cmp ecx, 2
jnz loc_8220D
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_821B7
loc_8207A:
xor ebx, ebx
xor r14d, r14d
jmp loc_821D7
loc_82084:
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_821B7
loc_820DE:
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_8221B
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_82150
mov dword ptr [rbx+60h], 3Fh ; '?'
add rax, 0FFFFFFFFFFFFFFF8h
mov [rbx+58h], rax
loc_82150:
test rdx, rdx
jz short loc_821BB
cmp qword ptr [rbx+70h], 0
jz loc_8223C
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_821B7:
mov bl, 1
jmp short loc_821C0
loc_821BB:
xor ebx, ebx
xor r14d, r14d
loc_821C0:
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_821D7:
mov eax, ebx
mov rdx, r14
add rsp, 48h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_821E7:
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_82208:
call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void)
loc_8220D:
lea rcx, aRefStackBackIs; "ref_stack.back()->is_array() || ref_sta"...
mov esi, 1C4Bh
jmp short loc_82227
loc_8221B:
lea rcx, aKeyKeepStackEm; "!key_keep_stack.empty()"
mov esi, 1C57h
loc_82227:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
xor eax, eax
call _ggml_abort
loc_8223C:
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_8225F:
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<double &>(
long long a1,
double *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; // rax
long long v23; // rbx
char v24; // [rsp+Bh] [rbp-5Dh] BYREF
int v25; // [rsp+Ch] [rbp-5Ch] BYREF
__int128 v26; // [rsp+10h] [rbp-58h] BYREF
__int128 v27; // [rsp+20h] [rbp-48h] BYREF
_OWORD v28[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) )
{
v26 = 0LL;
nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
(unsigned __int8 *)&v26,
*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 *)&v26);
if ( a3 )
{
LABEL_8:
v10 = *(_QWORD *)(a1 + 16);
if ( *(_QWORD *)(a1 + 8) == v10 )
{
v28[0] = 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);
LOBYTE(v26) = 0;
*((_QWORD *)&v26 + 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 *)v28);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)v28);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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 *)v28);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v28);
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)&v26);
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 *)&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);
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) )
{
v27 = 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);
LOBYTE(v26) = 0;
*((_QWORD *)&v26 + 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 + 112),
(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;
}
LABEL_32:
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
7264LL,
"GGML_ASSERT(%s) failed",
"object_element");
v23 = v22;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&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);
_Unwind_Resume(v23);
}
}
LABEL_24:
v4 = 0;
goto LABEL_25;
}
v25 = (*(_QWORD *)(a1 + 16) - *(_QWORD *)(a1 + 8)) >> 3;
v24 = 5;
if ( *(_QWORD *)(a1 + 144) )
{
if ( !(*(unsigned __int8 ( **)(long long, int *, char *, __int128 *))(a1 + 152))(
a1 + 128,
&v25,
&v24,
&v26) )
goto LABEL_24;
goto LABEL_8;
}
LABEL_28:
std::__throw_bad_function_call();
}
return 0;
}
| handle_value<double&>:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x48
MOV EBP,EDX
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x30]
MOV ECX,dword ptr [RDI + 0x38]
CMP qword ptr [RDI + 0x20],RAX
SETZ DL
TEST ECX,ECX
SETZ DIL
AND DIL,DL
CMP DIL,0x1
JZ 0x001821e7
MOV ECX,ECX
MOV R15,-0x8000000000000000
LEA RDX,[RCX + -0x1]
ADD RCX,0x3e
TEST RDX,RDX
CMOVNS RCX,RDX
SAR RCX,0x6
LEA RAX,[RAX + RCX*0x8]
LEA RCX,[R15 + 0x3f]
AND RCX,RDX
XOR EDI,EDI
CMP RCX,R15
SETBE DIL
MOV RAX,qword ptr [RAX + RDI*0x8 + -0x8]
BT RAX,RDX
JNC 0x0018207a
XORPS XMM0,XMM0
LEA R14,[RSP + 0x10]
MOVAPS xmmword ptr [R14],XMM0
MOVSD XMM0,qword ptr [RSI]
MOV RDI,R14
CALL 0x0015f2b8
MOV RDI,R14
MOV ESI,0x1
CALL 0x001449aa
TEST BPL,BPL
JNZ 0x00182027
MOV RAX,qword ptr [RBX + 0x10]
SUB RAX,qword ptr [RBX + 0x8]
SHR RAX,0x3
MOV dword ptr [RSP + 0xc],EAX
MOV byte ptr [RSP + 0xb],0x5
CMP qword ptr [RBX + 0x90],0x0
JZ 0x00182208
LEA RDI,[RBX + 0x80]
LAB_0018200a:
LEA RSI,[RSP + 0xc]
LEA RDX,[RSP + 0xb]
LEA RCX,[RSP + 0x10]
CALL qword ptr [RBX + 0x98]
TEST AL,AL
JZ 0x001821bb
LAB_00182027:
MOV RAX,qword ptr [RBX + 0x10]
CMP qword ptr [RBX + 0x8],RAX
JZ 0x00182084
MOV RAX,qword ptr [RAX + -0x8]
TEST RAX,RAX
JZ 0x001821bb
MOVZX ECX,byte ptr [RAX]
CMP ECX,0x1
JZ 0x001820de
CMP ECX,0x2
JNZ 0x0018220d
MOV RDI,qword ptr [RAX + 0x8]
LEA RSI,[RSP + 0x10]
CALL 0x00145682
LAB_00182061:
MOV RAX,qword ptr [RBX + 0x10]
MOV RAX,qword ptr [RAX + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV R14,qword ptr [RAX + 0x8]
ADD R14,-0x10
JMP 0x001821b7
LAB_0018207a:
XOR EBX,EBX
XOR R14D,R14D
JMP 0x001821d7
LAB_00182084:
LEA R14,[RSP + 0x10]
MOVAPS XMM0,xmmword ptr [R14]
LEA R15,[RSP + 0x30]
MOVAPS xmmword ptr [R15],XMM0
MOV RDI,R14
XOR ESI,ESI
CALL 0x001449aa
MOV byte ptr [R14],0x0
MOV qword ptr [R14 + 0x8],0x0
MOV RDI,R15
MOV ESI,0x1
CALL 0x001449aa
MOV RDI,qword ptr [RBX]
MOV RSI,R15
CALL 0x00156e60
MOV RDI,R15
XOR ESI,ESI
CALL 0x001449aa
MOV RDI,R15
CALL 0x00145236
MOV R14,qword ptr [RBX]
JMP 0x001821b7
LAB_001820de:
MOV RAX,qword ptr [RBX + 0x58]
MOV ECX,dword ptr [RBX + 0x60]
CMP qword ptr [RBX + 0x48],RAX
SETZ DL
TEST ECX,ECX
SETZ SIL
AND SIL,DL
CMP SIL,0x1
JZ 0x0018221b
MOV ESI,ECX
LEA RCX,[RSI + -0x1]
MOV RDX,RSI
ADD RDX,0x3e
TEST RCX,RCX
CMOVNS RDX,RCX
SAR RDX,0x6
LEA RDI,[RAX + RDX*0x8]
LEA RDX,[R15 + 0x3f]
AND RDX,RCX
XOR R8D,R8D
CMP RDX,R15
SETBE R8B
MOV EDX,0x1
SHL RDX,CL
AND RDX,qword ptr [RDI + R8*0x8 + -0x8]
SUB ESI,0x1
MOV dword ptr [RBX + 0x60],ESI
JNC 0x00182150
MOV dword ptr [RBX + 0x60],0x3f
ADD RAX,-0x8
MOV qword ptr [RBX + 0x58],RAX
LAB_00182150:
TEST RDX,RDX
JZ 0x001821bb
CMP qword ptr [RBX + 0x70],0x0
JZ 0x0018223c
LEA R14,[RSP + 0x10]
MOVAPS XMM0,xmmword ptr [R14]
LEA R15,[RSP + 0x20]
MOVAPS xmmword ptr [R15],XMM0
MOV RDI,R14
XOR ESI,ESI
CALL 0x001449aa
MOV byte ptr [R14],0x0
MOV qword ptr [R14 + 0x8],0x0
MOV RDI,R15
MOV ESI,0x1
CALL 0x001449aa
MOV RDI,qword ptr [RBX + 0x70]
MOV RSI,R15
CALL 0x00156e60
MOV RDI,R15
XOR ESI,ESI
CALL 0x001449aa
MOV RDI,R15
CALL 0x00145236
MOV R14,qword ptr [RBX + 0x70]
LAB_001821b7:
MOV BL,0x1
JMP 0x001821c0
LAB_001821bb:
XOR EBX,EBX
XOR R14D,R14D
LAB_001821c0:
LEA R15,[RSP + 0x10]
MOV RDI,R15
XOR ESI,ESI
CALL 0x001449aa
MOV RDI,R15
CALL 0x00145236
LAB_001821d7:
MOV EAX,EBX
MOV RDX,R14
ADD RSP,0x48
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_001821e7:
LEA RDI,[0x24bd8e]
LEA RDX,[0x24bdda]
LEA RCX,[0x24f3e5]
MOV ESI,0x1c28
XOR EAX,EAX
CALL 0x00120250
LAB_00182208:
CALL 0x0011f3e0
LAB_0018220d:
LEA RCX,[0x24f3f9]
MOV ESI,0x1c4b
JMP 0x00182227
LAB_0018221b:
LEA RCX,[0x24f437]
MOV ESI,0x1c57
LAB_00182227:
LEA RDI,[0x24bd8e]
LEA RDX,[0x24bdda]
XOR EAX,EAX
CALL 0x00120250
LAB_0018223c:
LEA RDI,[0x24bd8e]
LEA RDX,[0x24bdda]
LEA RCX,[0x24f44f]
MOV ESI,0x1c60
XOR EAX,EAX
CALL 0x00120250
|
/* 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<double&>(double&, 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<double&>
(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,double *param_1,bool param_2)
{
uint uVar1;
char cVar2;
ulong uVar3;
char *pcVar4;
ulong uVar5;
int8 uVar6;
bool bVar7;
long lVar8;
int1 auVar9 [16];
int1 local_5d;
int4 local_5c;
ulong local_58;
int8 uStack_50;
ulong local_48;
int8 uStack_40;
ulong local_38;
int8 uStack_30;
uVar1 = *(uint *)(this + 0x38);
if (uVar1 == 0 && *(long *)(this + 0x20) == *(long *)(this + 0x30)) {
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",0x1c28,
"GGML_ASSERT(%s) failed","!keep_stack.empty()");
}
uVar5 = (ulong)uVar1 - 1;
uVar3 = (ulong)uVar1 + 0x3e;
if (-1 < (long)uVar5) {
uVar3 = uVar5;
}
if ((*(ulong *)(*(long *)(this + 0x30) + ((long)uVar3 >> 6) * 8 + -8 +
(ulong)((uVar5 & 0x800000000000003f) < 0x8000000000000001) * 8) >> (uVar5 & 0x3f) &
1) == 0) {
uVar5 = 0;
lVar8 = 0;
goto LAB_001821d7;
}
local_58 = 0;
uStack_50 = 0;
external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::
construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(SUB84(*param_1,0),&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>
::assert_invariant(SUB81(&local_58,0));
if (param_2) {
LAB_00182027:
if (*(long *)(this + 8) == *(long *)(this + 0x10)) {
local_38 = local_58;
uStack_30 = uStack_50;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(&local_58,0));
local_58 = local_58 & 0xffffffffffffff00;
uStack_50 = 0;
bVar7 = SUB81((data *)&local_38,0);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar7);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)this,(data *)&local_38);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar7);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)&local_38);
lVar8 = *(long *)this;
}
else {
pcVar4 = *(char **)(*(long *)(this + 0x10) + -8);
if (pcVar4 == (char *)0x0) goto LAB_001821bb;
if (*pcVar4 == '\x01') {
lVar8 = *(long *)(this + 0x58);
uVar1 = *(uint *)(this + 0x60);
if (uVar1 == 0 && *(long *)(this + 0x48) == lVar8) {
pcVar4 = "!key_keep_stack.empty()";
uVar6 = 0x1c57;
goto LAB_00182227;
}
uVar5 = (ulong)uVar1 - 1;
uVar3 = (ulong)uVar1 + 0x3e;
if (-1 < (long)uVar5) {
uVar3 = uVar5;
}
uVar3 = *(ulong *)(lVar8 + ((long)uVar3 >> 6) * 8 + -8 +
(ulong)((uVar5 & 0x800000000000003f) < 0x8000000000000001) * 8);
*(uint *)(this + 0x60) = uVar1 - 1;
if (uVar1 == 0) {
*(int4 *)(this + 0x60) = 0x3f;
*(long *)(this + 0x58) = lVar8 + -8;
}
if ((1L << ((byte)uVar5 & 0x3f) & uVar3) == 0) goto LAB_001821bb;
if (*(long *)(this + 0x70) == 0) {
/* try { // try from 0018223c to 0018225c has its CatchHandler @ 0018225d */
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
0x1c60,"GGML_ASSERT(%s) failed","object_element");
}
local_48 = local_58;
uStack_40 = uStack_50;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(&local_58,0));
local_58 = local_58 & 0xffffffffffffff00;
uStack_50 = 0;
bVar7 = SUB81((data *)&local_48,0);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar7);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)(this + 0x70),(data *)&local_48);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar7);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)&local_48);
lVar8 = *(long *)(this + 0x70);
}
else {
if (*pcVar4 != '\x02') {
pcVar4 = "ref_stack.back()->is_array() || ref_stack.back()->is_object()";
uVar6 = 0x1c4b;
LAB_00182227:
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
uVar6,"GGML_ASSERT(%s) failed",pcVar4);
}
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>>>
**)(pcVar4 + 8),(basic_json *)&local_58);
lVar8 = *(long *)(*(long *)(*(long *)(*(long *)(this + 0x10) + -8) + 8) + 8) + -0x10;
}
}
uVar5 = CONCAT71((int7)((ulong)this >> 8),1);
}
else {
local_5c = (int4)((ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3);
local_5d = 5;
if (*(long *)(this + 0x90) == 0) {
/* WARNING: Subroutine does not return */
/* try { // try from 00182208 to 0018223b has its CatchHandler @ 0018225f */
std::__throw_bad_function_call();
}
/* try { // try from 0018200a to 00182060 has its CatchHandler @ 0018225f */
cVar2 = (**(code **)(this + 0x98))(this + 0x80,&local_5c,&local_5d,&local_58);
if (cVar2 != '\0') goto LAB_00182027;
LAB_001821bb:
uVar5 = 0;
lVar8 = 0;
}
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81((data *)&local_58,0));
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)&local_58);
LAB_001821d7:
auVar9._0_8_ = uVar5 & 0xffffffff;
auVar9._8_8_ = lVar8;
return auVar9;
}
| |
37,849 | 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<double&>(double&, bool) | monkey531[P]llama/common/./json.hpp | std::pair<bool, BasicJsonType*> handle_value(Value&& v, const bool skip_callback = false)
{
JSON_ASSERT(!keep_stack.empty());
// do not handle this value if we know it would be added to a discarded
// container
if (!keep_stack.back())
{
return {false, nullptr};
}
// create value
auto value = BasicJsonType(std::forward<Value>(v));
// check callback
const bool keep = skip_callback || callback(static_cast<int>(ref_stack.size()), parse_event_t::value, value);
// do not handle this value if we just learnt it shall be discarded
if (!keep)
{
return {false, nullptr};
}
if (ref_stack.empty())
{
root = std::move(value);
return {true, & root};
}
// skip this value if we already decided to skip the parent
// (https://github.com/nlohmann/json/issues/971#issuecomment-413678360)
if (!ref_stack.back())
{
return {false, nullptr};
}
// we now only expect arrays and objects
JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
// array
if (ref_stack.back()->is_array())
{
ref_stack.back()->m_data.m_value.array->emplace_back(std::move(value));
return {true, & (ref_stack.back()->m_data.m_value.array->back())};
}
// object
JSON_ASSERT(ref_stack.back()->is_object());
// check if we should store an element for the current key
JSON_ASSERT(!key_keep_stack.empty());
const bool store_element = key_keep_stack.back();
key_keep_stack.pop_back();
if (!store_element)
{
return {false, nullptr};
}
JSON_ASSERT(object_element);
*object_element = std::move(value);
return {true, object_element};
} | O2 | cpp | std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<double&>(double&, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x20(%rdi), %rax
cmpq 0x30(%rdi), %rax
jne 0x72d6e
cmpl $0x0, 0x38(%rbx)
je 0x72ec6
leaq 0x20(%rbx), %rdi
callq 0x7173c
testq %rdx, (%rax)
je 0x72e09
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x66744
testb %bpl, %bpl
jne 0x72dba
leaq 0x80(%rbx), %rdi
movq 0x10(%rbx), %rsi
subq 0x8(%rbx), %rsi
shrq $0x3, %rsi
pushq $0x5
popq %rdx
leaq 0x8(%rsp), %rcx
callq 0x7176a
testb %al, %al
je 0x72ea7
movq 0x10(%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x72e13
movq -0x8(%rax), %rax
testq %rax, %rax
je 0x72ea7
movzbl (%rax), %ecx
cmpl $0x1, %ecx
je 0x72e3d
cmpl $0x2, %ecx
jne 0x72ee7
movq 0x8(%rax), %rdi
leaq 0x8(%rsp), %rsi
callq 0x3fb46
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %r14
addq $-0x10, %r14
jmp 0x72ea3
xorl %ebx, %ebx
xorl %r14d, %r14d
jmp 0x72eb6
leaq 0x28(%rsp), %r14
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x3f9f0
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x4eadc
movq %r14, %rdi
callq 0x3ec50
movq (%rbx), %r14
jmp 0x72ea3
movq 0x48(%rbx), %rax
cmpq 0x58(%rbx), %rax
jne 0x72e51
cmpl $0x0, 0x60(%rbx)
je 0x72ef5
leaq 0x48(%rbx), %rdi
callq 0x7173c
movq %rdx, %r14
leaq 0x58(%rbx), %rdi
movq (%rax), %r15
callq 0x70dd2
testq %r14, %r15
je 0x72ea7
cmpq $0x0, 0x70(%rbx)
je 0x72f16
leaq 0x18(%rsp), %r14
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x3f9f0
movq 0x70(%rbx), %rdi
movq %r14, %rsi
callq 0x4eadc
movq %r14, %rdi
callq 0x3ec50
movq 0x70(%rbx), %r14
movb $0x1, %bl
jmp 0x72eac
xorl %ebx, %ebx
xorl %r14d, %r14d
leaq 0x8(%rsp), %rdi
callq 0x3ec50
movl %ebx, %eax
movq %r14, %rdx
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x7ee49(%rip), %rdi # 0xf1d16
leaq 0x7ee8e(%rip), %rdx # 0xf1d62
leaq 0x82492(%rip), %rcx # 0xf536d
movl $0x1c28, %esi # imm = 0x1C28
xorl %eax, %eax
callq 0x292a0
leaq 0x82493(%rip), %rcx # 0xf5381
movl $0x1c4b, %esi # imm = 0x1C4B
jmp 0x72f01
leaq 0x824c3(%rip), %rcx # 0xf53bf
movl $0x1c57, %esi # imm = 0x1C57
leaq 0x7ee0e(%rip), %rdi # 0xf1d16
leaq 0x7ee53(%rip), %rdx # 0xf1d62
xorl %eax, %eax
callq 0x292a0
leaq 0x7edf9(%rip), %rdi # 0xf1d16
leaq 0x7ee3e(%rip), %rdx # 0xf1d62
leaq 0x824ac(%rip), %rcx # 0xf53d7
movl $0x1c60, %esi # imm = 0x1C60
xorl %eax, %eax
callq 0x292a0
jmp 0x72f3b
jmp 0x72f3b
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x3ec50
movq %rbx, %rdi
callq 0x293c0
| _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueIRSB_EESt4pairIbPSF_EOT_b:
push rbp
push r15
push r14
push rbx
sub rsp, 38h
mov ebp, edx
mov r14, rsi
mov rbx, rdi
mov rax, [rdi+20h]
cmp rax, [rdi+30h]
jnz short loc_72D6E
cmp dword ptr [rbx+38h], 0
jz loc_72EC6
loc_72D6E:
lea rdi, [rbx+20h]
call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void)
test [rax], rdx
jz loc_72E09
lea rdi, [rsp+58h+var_50]
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_
test bpl, bpl
jnz short loc_72DBA
lea rdi, [rbx+80h]
mov rsi, [rbx+10h]
sub rsi, [rbx+8]
shr rsi, 3
push 5
pop rdx
lea rcx, [rsp+58h+var_50]
call _ZNKSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEclEiS3_SH_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::operator()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)
test al, al
jz loc_72EA7
loc_72DBA:
mov rax, [rbx+10h]
cmp [rbx+8], rax
jz short loc_72E13
mov rax, [rax-8]
test rax, rax
jz loc_72EA7
movzx ecx, byte ptr [rax]
cmp ecx, 1
jz short loc_72E3D
cmp ecx, 2
jnz loc_72EE7
mov rdi, [rax+8]
lea rsi, [rsp+58h+var_50]
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
mov rax, [rbx+10h]
mov rax, [rax-8]
mov rax, [rax+8]
mov r14, [rax+8]
add r14, 0FFFFFFFFFFFFFFF0h
jmp loc_72EA3
loc_72E09:
xor ebx, ebx
xor r14d, r14d
jmp loc_72EB6
loc_72E13:
lea r14, [rsp+58h+var_30]
lea rsi, [rsp+58h+var_50]
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&)
mov rdi, [rbx]
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
mov r14, [rbx]
jmp short loc_72EA3
loc_72E3D:
mov rax, [rbx+48h]
cmp rax, [rbx+58h]
jnz short loc_72E51
cmp dword ptr [rbx+60h], 0
jz loc_72EF5
loc_72E51:
lea rdi, [rbx+48h]
call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void)
mov r14, rdx
lea rdi, [rbx+58h]; this
mov r15, [rax]
call _ZNSt18_Bit_iterator_base12_M_bump_downEv; std::_Bit_iterator_base::_M_bump_down(void)
test r15, r14
jz short loc_72EA7
cmp qword ptr [rbx+70h], 0
jz loc_72F16
lea r14, [rsp+58h+var_40]
lea rsi, [rsp+58h+var_50]
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&)
mov rdi, [rbx+70h]
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
mov r14, [rbx+70h]
loc_72EA3:
mov bl, 1
jmp short loc_72EAC
loc_72EA7:
xor ebx, ebx
xor r14d, r14d
loc_72EAC:
lea rdi, [rsp+58h+var_50]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
loc_72EB6:
mov eax, ebx
mov rdx, r14
add rsp, 38h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_72EC6:
lea rdi, aWorkspaceLlm4b_1; "/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_72EE7:
lea rcx, aRefStackBackIs; "ref_stack.back()->is_array() || ref_sta"...
mov esi, 1C4Bh
jmp short loc_72F01
loc_72EF5:
lea rcx, aKeyKeepStackEm; "!key_keep_stack.empty()"
mov esi, 1C57h
loc_72F01:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
xor eax, eax
call _ggml_abort
loc_72F16:
lea rdi, aWorkspaceLlm4b_1; "/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 loc_72F3B
jmp short $+2
loc_72F3B:
mov rbx, rax
lea rdi, [rsp+58h+var_50]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
mov rdi, rbx
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::handle_value<std::string&>(
long long a1,
long long a2,
char a3)
{
unsigned int v4; // ebx
_QWORD *v5; // rax
long long v6; // rdx
long long v7; // rax
unsigned __int8 *v8; // rax
int v9; // ecx
long long *v10; // rax
long long v11; // rdx
long long v12; // r14
long long v13; // r15
const char *v15; // rcx
long long v16; // rsi
long long v17; // rbx
unsigned __int8 v18[16]; // [rsp+8h] [rbp-50h] BYREF
char v19[16]; // [rsp+18h] [rbp-40h] BYREF
char v20[48]; // [rsp+28h] [rbp-30h] BYREF
v4 = a1;
if ( *(_QWORD *)(a1 + 32) == *(_QWORD *)(a1 + 48) && !*(_DWORD *)(a1 + 56) )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
7208LL,
"GGML_ASSERT(%s) failed",
"!keep_stack.empty()");
LABEL_23:
v15 = "ref_stack.back()->is_array() || ref_stack.back()->is_object()";
v16 = 7243LL;
LABEL_25:
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
v16,
"GGML_ASSERT(%s) failed",
v15);
goto LABEL_26;
}
v5 = (_QWORD *)std::vector<bool>::back(a1 + 32);
if ( (v6 & *v5) != 0 )
{
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_(
v18,
a2);
if ( a3
|| (unsigned __int8)std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::operator()(
a1 + 128,
(*(_QWORD *)(a1 + 16) - *(_QWORD *)(a1 + 8)) >> 3,
5) )
{
v7 = *(_QWORD *)(a1 + 16);
if ( *(_QWORD *)(a1 + 8) == v7 )
{
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
v20,
(long long)v18);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)v20);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v20);
goto LABEL_18;
}
v8 = *(unsigned __int8 **)(v7 - 8);
if ( v8 )
{
v9 = *v8;
if ( v9 != 1 )
{
if ( v9 == 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 *)v8 + 1),
(long long)v18);
LABEL_18:
LOBYTE(v4) = 1;
LABEL_20:
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v18);
return v4;
}
goto LABEL_23;
}
if ( *(_QWORD *)(a1 + 72) == *(_QWORD *)(a1 + 88) && !*(_DWORD *)(a1 + 96) )
{
v15 = "!key_keep_stack.empty()";
v16 = 7255LL;
goto LABEL_25;
}
v10 = (long long *)std::vector<bool>::back(a1 + 72);
v12 = v11;
v13 = *v10;
std::_Bit_iterator_base::_M_bump_down((std::_Bit_iterator_base *)(a1 + 88));
if ( (v12 & v13) != 0 )
{
if ( *(_QWORD *)(a1 + 112) )
{
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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,
(long long)v18);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)v19);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)v19);
goto LABEL_18;
}
LABEL_26:
v17 = 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((long long)v18);
_Unwind_Resume(v17);
}
}
}
v4 = 0;
goto LABEL_20;
}
return 0;
}
| handle_value<std::__cxx11::string&>:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x38
MOV EBP,EDX
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x20]
CMP RAX,qword ptr [RDI + 0x30]
JNZ 0x00172d6e
CMP dword ptr [RBX + 0x38],0x0
JZ 0x00172ec6
LAB_00172d6e:
LEA RDI,[RBX + 0x20]
CALL 0x0017173c
TEST qword ptr [RAX],RDX
JZ 0x00172e09
LEA RDI,[RSP + 0x8]
MOV RSI,R14
CALL 0x00166744
TEST BPL,BPL
JNZ 0x00172dba
LEA RDI,[RBX + 0x80]
MOV RSI,qword ptr [RBX + 0x10]
SUB RSI,qword ptr [RBX + 0x8]
SHR RSI,0x3
LAB_00172da5:
PUSH 0x5
POP RDX
LEA RCX,[RSP + 0x8]
CALL 0x0017176a
TEST AL,AL
JZ 0x00172ea7
LAB_00172dba:
MOV RAX,qword ptr [RBX + 0x10]
CMP qword ptr [RBX + 0x8],RAX
JZ 0x00172e13
MOV RAX,qword ptr [RAX + -0x8]
TEST RAX,RAX
JZ 0x00172ea7
MOVZX ECX,byte ptr [RAX]
CMP ECX,0x1
JZ 0x00172e3d
CMP ECX,0x2
JNZ 0x00172ee7
MOV RDI,qword ptr [RAX + 0x8]
LEA RSI,[RSP + 0x8]
CALL 0x0013fb46
MOV RAX,qword ptr [RBX + 0x10]
MOV RAX,qword ptr [RAX + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV R14,qword ptr [RAX + 0x8]
ADD R14,-0x10
JMP 0x00172ea3
LAB_00172e09:
XOR EBX,EBX
XOR R14D,R14D
JMP 0x00172eb6
LAB_00172e13:
LEA R14,[RSP + 0x28]
LEA RSI,[RSP + 0x8]
MOV RDI,R14
CALL 0x0013f9f0
MOV RDI,qword ptr [RBX]
MOV RSI,R14
CALL 0x0014eadc
MOV RDI,R14
CALL 0x0013ec50
MOV R14,qword ptr [RBX]
JMP 0x00172ea3
LAB_00172e3d:
MOV RAX,qword ptr [RBX + 0x48]
CMP RAX,qword ptr [RBX + 0x58]
JNZ 0x00172e51
CMP dword ptr [RBX + 0x60],0x0
JZ 0x00172ef5
LAB_00172e51:
LEA RDI,[RBX + 0x48]
CALL 0x0017173c
LAB_00172e5a:
MOV R14,RDX
LEA RDI,[RBX + 0x58]
MOV R15,qword ptr [RAX]
CALL 0x00170dd2
TEST R15,R14
JZ 0x00172ea7
CMP qword ptr [RBX + 0x70],0x0
JZ 0x00172f16
LEA R14,[RSP + 0x18]
LEA RSI,[RSP + 0x8]
MOV RDI,R14
CALL 0x0013f9f0
MOV RDI,qword ptr [RBX + 0x70]
MOV RSI,R14
CALL 0x0014eadc
MOV RDI,R14
CALL 0x0013ec50
MOV R14,qword ptr [RBX + 0x70]
LAB_00172ea3:
MOV BL,0x1
JMP 0x00172eac
LAB_00172ea7:
XOR EBX,EBX
XOR R14D,R14D
LAB_00172eac:
LEA RDI,[RSP + 0x8]
CALL 0x0013ec50
LAB_00172eb6:
MOV EAX,EBX
MOV RDX,R14
ADD RSP,0x38
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_00172ec6:
LEA RDI,[0x1f1d16]
LEA RDX,[0x1f1d62]
LEA RCX,[0x1f536d]
MOV ESI,0x1c28
XOR EAX,EAX
CALL 0x001292a0
LAB_00172ee7:
LEA RCX,[0x1f5381]
MOV ESI,0x1c4b
JMP 0x00172f01
LAB_00172ef5:
LEA RCX,[0x1f53bf]
MOV ESI,0x1c57
LAB_00172f01:
LEA RDI,[0x1f1d16]
LEA RDX,[0x1f1d62]
XOR EAX,EAX
CALL 0x001292a0
LAB_00172f16:
LEA RDI,[0x1f1d16]
LEA RDX,[0x1f1d62]
LEA RCX,[0x1f53d7]
MOV ESI,0x1c60
XOR EAX,EAX
CALL 0x001292a0
|
/* std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>*>
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::handle_value<std::__cxx11::string&>(std::__cxx11::string&, bool) */
int1 [16] __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::handle_value<std::__cxx11::string&>
(json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*this,string *param_1,bool param_2)
{
char cVar1;
char *pcVar2;
ulong uVar3;
int8 uVar4;
long lVar5;
int1 auVar6 [16];
basic_json local_50 [16];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_40 [16];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_30 [16];
if ((*(long *)(this + 0x20) == *(long *)(this + 0x30)) && (*(int *)(this + 0x38) == 0)) {
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",0x1c28,
"GGML_ASSERT(%s) failed","!keep_stack.empty()");
}
auVar6 = std::vector<bool,std::allocator<bool>>::back
((vector<bool,std::allocator<bool>> *)(this + 0x20));
if ((*auVar6._0_8_ & auVar6._8_8_) == 0) {
uVar3 = 0;
lVar5 = 0;
goto LAB_00172eb6;
}
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_
(local_50,param_1);
if (param_2) {
LAB_00172dba:
if (*(long *)(this + 8) == *(long *)(this + 0x10)) {
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_30,local_50);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)this,local_30);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_30);
lVar5 = *(long *)this;
}
else {
pcVar2 = *(char **)(*(long *)(this + 0x10) + -8);
if (pcVar2 == (char *)0x0) goto LAB_00172ea7;
if (*pcVar2 == '\x01') {
if ((*(long *)(this + 0x48) == *(long *)(this + 0x58)) && (*(int *)(this + 0x60) == 0)) {
pcVar2 = "!key_keep_stack.empty()";
uVar4 = 0x1c57;
goto LAB_00172f01;
}
/* try { // try from 00172e51 to 00172e59 has its CatchHandler @ 00172f39 */
auVar6 = std::vector<bool,std::allocator<bool>>::back
((vector<bool,std::allocator<bool>> *)(this + 0x48));
uVar3 = *auVar6._0_8_;
std::_Bit_iterator_base::_M_bump_down((_Bit_iterator_base *)(this + 0x58));
if ((uVar3 & auVar6._8_8_) == 0) goto LAB_00172ea7;
if (*(long *)(this + 0x70) == 0) {
/* try { // try from 00172f16 to 00172f36 has its CatchHandler @ 00172f37 */
/* WARNING: Subroutine does not return */
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_40,local_50);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)(this + 0x70),local_40);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_40);
lVar5 = *(long *)(this + 0x70);
}
else {
if (*pcVar2 != '\x02') {
pcVar2 = "ref_stack.back()->is_array() || ref_stack.back()->is_object()";
uVar4 = 0x1c4b;
LAB_00172f01:
/* try { // try from 00172f01 to 00172f15 has its CatchHandler @ 00172f3b */
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
uVar4,"GGML_ASSERT(%s) failed",pcVar2);
}
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::
emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
**)(pcVar2 + 8),local_50);
lVar5 = *(long *)(*(long *)(*(long *)(*(long *)(this + 0x10) + -8) + 8) + 8) + -0x10;
}
}
uVar3 = CONCAT71((int7)((ulong)this >> 8),1);
}
else {
/* try { // try from 00172da5 to 00172def has its CatchHandler @ 00172f3b */
cVar1 = std::
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
::operator()(this + 0x80,(ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3,5,
local_50);
if (cVar1 != '\0') goto LAB_00172dba;
LAB_00172ea7:
uVar3 = 0;
lVar5 = 0;
}
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)local_50);
LAB_00172eb6:
auVar6._0_8_ = uVar3 & 0xffffffff;
auVar6._8_8_ = lVar5;
return auVar6;
}
| |
37,850 | 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<double&>(double&, 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<double&>(double&, 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 0x8040c
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 0x8029f
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r14
movaps %xmm0, (%r14)
movzbl (%rsi), %esi
movq %r14, %rdi
callq 0x5d16a
movq %r14, %rdi
movl $0x1, %esi
callq 0x438fc
testb %bpl, %bpl
jne 0x8024c
movq 0x10(%rbx), %rax
subq 0x8(%rbx), %rax
shrq $0x3, %rax
movl %eax, 0xc(%rsp)
movb $0x5, 0xb(%rsp)
cmpq $0x0, 0x90(%rbx)
je 0x8042d
leaq 0x80(%rbx), %rdi
leaq 0xc(%rsp), %rsi
leaq 0xb(%rsp), %rdx
leaq 0x10(%rsp), %rcx
callq *0x98(%rbx)
testb %al, %al
je 0x803e0
movq 0x10(%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x802a9
movq -0x8(%rax), %rax
testq %rax, %rax
je 0x803e0
movzbl (%rax), %ecx
cmpl $0x1, %ecx
je 0x80303
cmpl $0x2, %ecx
jne 0x80432
movq 0x8(%rax), %rdi
leaq 0x10(%rsp), %rsi
callq 0x445f6
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %r14
addq $-0x10, %r14
jmp 0x803dc
xorl %ebx, %ebx
xorl %r14d, %r14d
jmp 0x803fc
leaq 0x10(%rsp), %r14
movaps (%r14), %xmm0
leaq 0x30(%rsp), %r15
movaps %xmm0, (%r15)
movq %r14, %rdi
xorl %esi, %esi
callq 0x438fc
movb $0x0, (%r14)
movq $0x0, 0x8(%r14)
movq %r15, %rdi
movl $0x1, %esi
callq 0x438fc
movq (%rbx), %rdi
movq %r15, %rsi
callq 0x55e76
movq %r15, %rdi
xorl %esi, %esi
callq 0x438fc
movq %r15, %rdi
callq 0x44196
movq (%rbx), %r14
jmp 0x803dc
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 0x80440
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 0x80375
movl $0x3f, 0x60(%rbx)
addq $-0x8, %rax
movq %rax, 0x58(%rbx)
testq %rdx, %rdx
je 0x803e0
cmpq $0x0, 0x70(%rbx)
je 0x80461
leaq 0x10(%rsp), %r14
movaps (%r14), %xmm0
leaq 0x20(%rsp), %r15
movaps %xmm0, (%r15)
movq %r14, %rdi
xorl %esi, %esi
callq 0x438fc
movb $0x0, (%r14)
movq $0x0, 0x8(%r14)
movq %r15, %rdi
movl $0x1, %esi
callq 0x438fc
movq 0x70(%rbx), %rdi
movq %r15, %rsi
callq 0x55e76
movq %r15, %rdi
xorl %esi, %esi
callq 0x438fc
movq %r15, %rdi
callq 0x44196
movq 0x70(%rbx), %r14
movb $0x1, %bl
jmp 0x803e5
xorl %ebx, %ebx
xorl %r14d, %r14d
leaq 0x10(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x438fc
movq %r15, %rdi
callq 0x44196
movl %ebx, %eax
movq %r14, %rdx
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0xc591b(%rip), %rdi # 0x145d2e
leaq 0xc5960(%rip), %rdx # 0x145d7a
leaq 0xc8f19(%rip), %rcx # 0x14933a
movl $0x1c28, %esi # imm = 0x1C28
xorl %eax, %eax
callq 0x20250
callq 0x1f3e0
leaq 0xc8f15(%rip), %rcx # 0x14934e
movl $0x1c4b, %esi # imm = 0x1C4B
jmp 0x8044c
leaq 0xc8f45(%rip), %rcx # 0x14938c
movl $0x1c57, %esi # imm = 0x1C57
leaq 0xc58db(%rip), %rdi # 0x145d2e
leaq 0xc5920(%rip), %rdx # 0x145d7a
xorl %eax, %eax
callq 0x20250
leaq 0xc58c6(%rip), %rdi # 0x145d2e
leaq 0xc590b(%rip), %rdx # 0x145d7a
leaq 0xc8f2e(%rip), %rcx # 0x1493a4
movl $0x1c60, %esi # imm = 0x1C60
xorl %eax, %eax
callq 0x20250
jmp 0x80484
movq %rax, %rbx
leaq 0x10(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x438fc
movq %r14, %rdi
callq 0x44196
movq %rbx, %rdi
callq 0x20380
| _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueIRbEESt4pairIbPSF_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_8040C
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_8029F
xorps xmm0, xmm0
lea r14, [rsp+68h+var_58]
movaps xmmword ptr [r14], xmm0
movzx esi, byte ptr [rsi]
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE4EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_9boolean_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)4>::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>::boolean_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_8024C
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_8042D
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_803E0
loc_8024C:
mov rax, [rbx+10h]
cmp [rbx+8], rax
jz short loc_802A9
mov rax, [rax-8]
test rax, rax
jz loc_803E0
movzx ecx, byte ptr [rax]
cmp ecx, 1
jz loc_80303
cmp ecx, 2
jnz loc_80432
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_803DC
loc_8029F:
xor ebx, ebx
xor r14d, r14d
jmp loc_803FC
loc_802A9:
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_803DC
loc_80303:
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_80440
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_80375
mov dword ptr [rbx+60h], 3Fh ; '?'
add rax, 0FFFFFFFFFFFFFFF8h
mov [rbx+58h], rax
loc_80375:
test rdx, rdx
jz short loc_803E0
cmp qword ptr [rbx+70h], 0
jz loc_80461
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_803DC:
mov bl, 1
jmp short loc_803E5
loc_803E0:
xor ebx, ebx
xor r14d, r14d
loc_803E5:
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_803FC:
mov eax, ebx
mov rdx, r14
add rsp, 48h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_8040C:
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_8042D:
call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void)
loc_80432:
lea rcx, aRefStackBackIs; "ref_stack.back()->is_array() || ref_sta"...
mov esi, 1C4Bh
jmp short loc_8044C
loc_80440:
lea rcx, aKeyKeepStackEm; "!key_keep_stack.empty()"
mov esi, 1C57h
loc_8044C:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
xor eax, eax
call _ggml_abort
loc_80461:
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_80484:
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<bool &>(
long long a1,
unsigned __int8 *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; // rax
long long v23; // rbx
char v24; // [rsp+Bh] [rbp-5Dh] BYREF
int v25; // [rsp+Ch] [rbp-5Ch] BYREF
__int128 v26; // [rsp+10h] [rbp-58h] BYREF
__int128 v27; // [rsp+20h] [rbp-48h] BYREF
_OWORD v28[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) )
{
v26 = 0LL;
nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)4>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
(unsigned __int8 *)&v26,
*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 *)&v26);
if ( a3 )
{
LABEL_8:
v10 = *(_QWORD *)(a1 + 16);
if ( *(_QWORD *)(a1 + 8) == v10 )
{
v28[0] = 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);
LOBYTE(v26) = 0;
*((_QWORD *)&v26 + 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 *)v28);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)v28);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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 *)v28);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v28);
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)&v26);
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 *)&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);
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) )
{
v27 = 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);
LOBYTE(v26) = 0;
*((_QWORD *)&v26 + 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 + 112),
(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;
}
LABEL_32:
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
7264LL,
"GGML_ASSERT(%s) failed",
"object_element");
v23 = v22;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&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);
_Unwind_Resume(v23);
}
}
LABEL_24:
v4 = 0;
goto LABEL_25;
}
v25 = (*(_QWORD *)(a1 + 16) - *(_QWORD *)(a1 + 8)) >> 3;
v24 = 5;
if ( *(_QWORD *)(a1 + 144) )
{
if ( !(*(unsigned __int8 ( **)(long long, int *, char *, __int128 *))(a1 + 152))(
a1 + 128,
&v25,
&v24,
&v26) )
goto LABEL_24;
goto LABEL_8;
}
LABEL_28:
std::__throw_bad_function_call();
}
return 0;
}
| handle_value<bool&>:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x48
MOV EBP,EDX
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x30]
MOV ECX,dword ptr [RDI + 0x38]
CMP qword ptr [RDI + 0x20],RAX
SETZ DL
TEST ECX,ECX
SETZ DIL
AND DIL,DL
CMP DIL,0x1
JZ 0x0018040c
MOV ECX,ECX
MOV R15,-0x8000000000000000
LEA RDX,[RCX + -0x1]
ADD RCX,0x3e
TEST RDX,RDX
CMOVNS RCX,RDX
SAR RCX,0x6
LEA RAX,[RAX + RCX*0x8]
LEA RCX,[R15 + 0x3f]
AND RCX,RDX
XOR EDI,EDI
CMP RCX,R15
SETBE DIL
MOV RAX,qword ptr [RAX + RDI*0x8 + -0x8]
BT RAX,RDX
JNC 0x0018029f
XORPS XMM0,XMM0
LEA R14,[RSP + 0x10]
MOVAPS xmmword ptr [R14],XMM0
MOVZX ESI,byte ptr [RSI]
MOV RDI,R14
CALL 0x0015d16a
MOV RDI,R14
MOV ESI,0x1
CALL 0x001438fc
TEST BPL,BPL
JNZ 0x0018024c
MOV RAX,qword ptr [RBX + 0x10]
SUB RAX,qword ptr [RBX + 0x8]
SHR RAX,0x3
MOV dword ptr [RSP + 0xc],EAX
MOV byte ptr [RSP + 0xb],0x5
CMP qword ptr [RBX + 0x90],0x0
JZ 0x0018042d
LEA RDI,[RBX + 0x80]
LAB_0018022f:
LEA RSI,[RSP + 0xc]
LEA RDX,[RSP + 0xb]
LEA RCX,[RSP + 0x10]
CALL qword ptr [RBX + 0x98]
TEST AL,AL
JZ 0x001803e0
LAB_0018024c:
MOV RAX,qword ptr [RBX + 0x10]
CMP qword ptr [RBX + 0x8],RAX
JZ 0x001802a9
MOV RAX,qword ptr [RAX + -0x8]
TEST RAX,RAX
JZ 0x001803e0
MOVZX ECX,byte ptr [RAX]
CMP ECX,0x1
JZ 0x00180303
CMP ECX,0x2
JNZ 0x00180432
MOV RDI,qword ptr [RAX + 0x8]
LEA RSI,[RSP + 0x10]
CALL 0x001445f6
LAB_00180286:
MOV RAX,qword ptr [RBX + 0x10]
MOV RAX,qword ptr [RAX + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV R14,qword ptr [RAX + 0x8]
ADD R14,-0x10
JMP 0x001803dc
LAB_0018029f:
XOR EBX,EBX
XOR R14D,R14D
JMP 0x001803fc
LAB_001802a9:
LEA R14,[RSP + 0x10]
MOVAPS XMM0,xmmword ptr [R14]
LEA R15,[RSP + 0x30]
MOVAPS xmmword ptr [R15],XMM0
MOV RDI,R14
XOR ESI,ESI
CALL 0x001438fc
MOV byte ptr [R14],0x0
MOV qword ptr [R14 + 0x8],0x0
MOV RDI,R15
MOV ESI,0x1
CALL 0x001438fc
MOV RDI,qword ptr [RBX]
MOV RSI,R15
CALL 0x00155e76
MOV RDI,R15
XOR ESI,ESI
CALL 0x001438fc
MOV RDI,R15
CALL 0x00144196
MOV R14,qword ptr [RBX]
JMP 0x001803dc
LAB_00180303:
MOV RAX,qword ptr [RBX + 0x58]
MOV ECX,dword ptr [RBX + 0x60]
CMP qword ptr [RBX + 0x48],RAX
SETZ DL
TEST ECX,ECX
SETZ SIL
AND SIL,DL
CMP SIL,0x1
JZ 0x00180440
MOV ESI,ECX
LEA RCX,[RSI + -0x1]
MOV RDX,RSI
ADD RDX,0x3e
TEST RCX,RCX
CMOVNS RDX,RCX
SAR RDX,0x6
LEA RDI,[RAX + RDX*0x8]
LEA RDX,[R15 + 0x3f]
AND RDX,RCX
XOR R8D,R8D
CMP RDX,R15
SETBE R8B
MOV EDX,0x1
SHL RDX,CL
AND RDX,qword ptr [RDI + R8*0x8 + -0x8]
SUB ESI,0x1
MOV dword ptr [RBX + 0x60],ESI
JNC 0x00180375
MOV dword ptr [RBX + 0x60],0x3f
ADD RAX,-0x8
MOV qword ptr [RBX + 0x58],RAX
LAB_00180375:
TEST RDX,RDX
JZ 0x001803e0
CMP qword ptr [RBX + 0x70],0x0
JZ 0x00180461
LEA R14,[RSP + 0x10]
MOVAPS XMM0,xmmword ptr [R14]
LEA R15,[RSP + 0x20]
MOVAPS xmmword ptr [R15],XMM0
MOV RDI,R14
XOR ESI,ESI
CALL 0x001438fc
MOV byte ptr [R14],0x0
MOV qword ptr [R14 + 0x8],0x0
MOV RDI,R15
MOV ESI,0x1
CALL 0x001438fc
MOV RDI,qword ptr [RBX + 0x70]
MOV RSI,R15
CALL 0x00155e76
MOV RDI,R15
XOR ESI,ESI
CALL 0x001438fc
MOV RDI,R15
CALL 0x00144196
MOV R14,qword ptr [RBX + 0x70]
LAB_001803dc:
MOV BL,0x1
JMP 0x001803e5
LAB_001803e0:
XOR EBX,EBX
XOR R14D,R14D
LAB_001803e5:
LEA R15,[RSP + 0x10]
MOV RDI,R15
XOR ESI,ESI
CALL 0x001438fc
MOV RDI,R15
CALL 0x00144196
LAB_001803fc:
MOV EAX,EBX
MOV RDX,R14
ADD RSP,0x48
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0018040c:
LEA RDI,[0x245d2e]
LEA RDX,[0x245d7a]
LEA RCX,[0x24933a]
MOV ESI,0x1c28
XOR EAX,EAX
CALL 0x00120250
LAB_0018042d:
CALL 0x0011f3e0
LAB_00180432:
LEA RCX,[0x24934e]
MOV ESI,0x1c4b
JMP 0x0018044c
LAB_00180440:
LEA RCX,[0x24938c]
MOV ESI,0x1c57
LAB_0018044c:
LEA RDI,[0x245d2e]
LEA RDX,[0x245d7a]
XOR EAX,EAX
CALL 0x00120250
LAB_00180461:
LEA RDI,[0x245d2e]
LEA RDX,[0x245d7a]
LEA RCX,[0x2493a4]
MOV ESI,0x1c60
XOR EAX,EAX
CALL 0x00120250
|
/* 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<bool&>(bool&, 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<bool&>
(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,bool *param_1,bool param_2)
{
uint uVar1;
char cVar2;
ulong uVar3;
char *pcVar4;
ulong uVar5;
int8 uVar6;
bool bVar7;
long lVar8;
int1 auVar9 [16];
int1 local_5d;
int4 local_5c;
ulong local_58;
int8 uStack_50;
ulong local_48;
int8 uStack_40;
ulong local_38;
int8 uStack_30;
uVar1 = *(uint *)(this + 0x38);
if (uVar1 == 0 && *(long *)(this + 0x20) == *(long *)(this + 0x30)) {
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",0x1c28,
"GGML_ASSERT(%s) failed","!keep_stack.empty()");
}
uVar5 = (ulong)uVar1 - 1;
uVar3 = (ulong)uVar1 + 0x3e;
if (-1 < (long)uVar5) {
uVar3 = uVar5;
}
if ((*(ulong *)(*(long *)(this + 0x30) + ((long)uVar3 >> 6) * 8 + -8 +
(ulong)((uVar5 & 0x800000000000003f) < 0x8000000000000001) * 8) >> (uVar5 & 0x3f) &
1) == 0) {
uVar5 = 0;
lVar8 = 0;
goto LAB_001803fc;
}
local_58 = 0;
uStack_50 = 0;
external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)4>::
construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(&local_58,*param_1);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(&local_58,0));
if (param_2) {
LAB_0018024c:
if (*(long *)(this + 8) == *(long *)(this + 0x10)) {
local_38 = local_58;
uStack_30 = uStack_50;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(&local_58,0));
local_58 = local_58 & 0xffffffffffffff00;
uStack_50 = 0;
bVar7 = SUB81((data *)&local_38,0);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar7);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)this,(data *)&local_38);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar7);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)&local_38);
lVar8 = *(long *)this;
}
else {
pcVar4 = *(char **)(*(long *)(this + 0x10) + -8);
if (pcVar4 == (char *)0x0) goto LAB_001803e0;
if (*pcVar4 == '\x01') {
lVar8 = *(long *)(this + 0x58);
uVar1 = *(uint *)(this + 0x60);
if (uVar1 == 0 && *(long *)(this + 0x48) == lVar8) {
pcVar4 = "!key_keep_stack.empty()";
uVar6 = 0x1c57;
goto LAB_0018044c;
}
uVar5 = (ulong)uVar1 - 1;
uVar3 = (ulong)uVar1 + 0x3e;
if (-1 < (long)uVar5) {
uVar3 = uVar5;
}
uVar3 = *(ulong *)(lVar8 + ((long)uVar3 >> 6) * 8 + -8 +
(ulong)((uVar5 & 0x800000000000003f) < 0x8000000000000001) * 8);
*(uint *)(this + 0x60) = uVar1 - 1;
if (uVar1 == 0) {
*(int4 *)(this + 0x60) = 0x3f;
*(long *)(this + 0x58) = lVar8 + -8;
}
if ((1L << ((byte)uVar5 & 0x3f) & uVar3) == 0) goto LAB_001803e0;
if (*(long *)(this + 0x70) == 0) {
/* try { // try from 00180461 to 00180481 has its CatchHandler @ 00180482 */
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
0x1c60,"GGML_ASSERT(%s) failed","object_element");
}
local_48 = local_58;
uStack_40 = uStack_50;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(&local_58,0));
local_58 = local_58 & 0xffffffffffffff00;
uStack_50 = 0;
bVar7 = SUB81((data *)&local_48,0);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar7);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)(this + 0x70),(data *)&local_48);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar7);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)&local_48);
lVar8 = *(long *)(this + 0x70);
}
else {
if (*pcVar4 != '\x02') {
pcVar4 = "ref_stack.back()->is_array() || ref_stack.back()->is_object()";
uVar6 = 0x1c4b;
LAB_0018044c:
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
uVar6,"GGML_ASSERT(%s) failed",pcVar4);
}
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>>>
**)(pcVar4 + 8),(basic_json *)&local_58);
lVar8 = *(long *)(*(long *)(*(long *)(*(long *)(this + 0x10) + -8) + 8) + 8) + -0x10;
}
}
uVar5 = CONCAT71((int7)((ulong)this >> 8),1);
}
else {
local_5c = (int4)((ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3);
local_5d = 5;
if (*(long *)(this + 0x90) == 0) {
/* WARNING: Subroutine does not return */
/* try { // try from 0018042d to 00180460 has its CatchHandler @ 00180484 */
std::__throw_bad_function_call();
}
/* try { // try from 0018022f to 00180285 has its CatchHandler @ 00180484 */
cVar2 = (**(code **)(this + 0x98))(this + 0x80,&local_5c,&local_5d,&local_58);
if (cVar2 != '\0') goto LAB_0018024c;
LAB_001803e0:
uVar5 = 0;
lVar8 = 0;
}
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81((data *)&local_58,0));
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)&local_58);
LAB_001803fc:
auVar9._0_8_ = uVar5 & 0xffffffff;
auVar9._8_8_ = lVar8;
return auVar9;
}
| |
37,851 | ma_net_write_buff | eloqsql/libmariadb/libmariadb/ma_net.c | static int ma_net_write_buff(NET *net,const char *packet, size_t len)
{
size_t left_length;
if (!len)
return 0;
if (net->max_packet > MAX_PACKET_LENGTH &&
net->compress)
left_length= (size_t)(MAX_PACKET_LENGTH - (net->write_pos - net->buff));
else
left_length=(size_t) (net->buff_end - net->write_pos);
if (len > left_length)
{
if (net->write_pos != net->buff)
{
memcpy((char*) net->write_pos,packet,left_length);
if (ma_net_real_write(net,(char*) net->buff,
(size_t)(net->write_pos - net->buff) + left_length))
return 1;
packet+=left_length;
len-=left_length;
net->write_pos= net->buff;
}
if (net->compress)
{
/* uncompressed length is stored in 3 bytes,so
packet can't be > 0xFFFFFF */
left_length= MAX_PACKET_LENGTH;
while (len > left_length)
{
if (ma_net_real_write(net, packet, left_length))
return 1;
packet+= left_length;
len-= left_length;
}
}
if (len > net->max_packet)
return(test(ma_net_real_write(net, packet, len)));
}
memcpy((char*) net->write_pos,packet,len);
net->write_pos+=len;
return 0;
} | O0 | c | ma_net_write_buff:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x45f27
movl $0x0, -0x4(%rbp)
jmp 0x460d7
movq -0x10(%rbp), %rax
cmpq $0xffffff, 0x50(%rax) # imm = 0xFFFFFF
jbe 0x45f66
movq -0x10(%rbp), %rax
movsbl 0x84(%rax), %eax
cmpl $0x0, %eax
je 0x45f66
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rcx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
subq %rax, %rcx
movl $0xffffff, %eax # imm = 0xFFFFFF
subq %rcx, %rax
movq %rax, -0x28(%rbp)
jmp 0x45f7d
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rcx
subq %rcx, %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jbe 0x460ab
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0x8(%rcx), %rax
je 0x46016
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x18(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x13360
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
subq %rax, %rdx
addq -0x28(%rbp), %rdx
callq 0x45a30
cmpl $0x0, %eax
je 0x45feb
movl $0x1, -0x4(%rbp)
jmp 0x460d7
movq -0x28(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x28(%rbp), %rcx
movq -0x20(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x10(%rbp), %rax
cmpb $0x0, 0x84(%rax)
je 0x46076
movq $0xffffff, -0x28(%rbp) # imm = 0xFFFFFF
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jbe 0x46074
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x45a30
cmpl $0x0, %eax
je 0x46057
movl $0x1, -0x4(%rbp)
jmp 0x460d7
movq -0x28(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x28(%rbp), %rcx
movq -0x20(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x20(%rbp)
jmp 0x4602b
jmp 0x46076
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x50(%rcx), %rax
jbe 0x460a9
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x45a30
movl %eax, %edx
xorl %eax, %eax
movl $0x1, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
movl %eax, -0x4(%rbp)
jmp 0x460d7
jmp 0x460ab
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x13360
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rax
addq 0x18(%rax), %rcx
movq %rcx, 0x18(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
| ma_net_write_buff:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
cmp [rbp+var_20], 0
jnz short loc_45F27
mov [rbp+var_4], 0
jmp loc_460D7
loc_45F27:
mov rax, [rbp+var_10]
cmp qword ptr [rax+50h], 0FFFFFFh
jbe short loc_45F66
mov rax, [rbp+var_10]
movsx eax, byte ptr [rax+84h]
cmp eax, 0
jz short loc_45F66
mov rax, [rbp+var_10]
mov rcx, [rax+18h]
mov rax, [rbp+var_10]
mov rax, [rax+8]
sub rcx, rax
mov eax, 0FFFFFFh
sub rax, rcx
mov [rbp+var_28], rax
jmp short loc_45F7D
loc_45F66:
mov rax, [rbp+var_10]
mov rax, [rax+10h]
mov rcx, [rbp+var_10]
mov rcx, [rcx+18h]
sub rax, rcx
mov [rbp+var_28], rax
loc_45F7D:
mov rax, [rbp+var_20]
cmp rax, [rbp+var_28]
jbe loc_460AB
mov rax, [rbp+var_10]
mov rax, [rax+18h]
mov rcx, [rbp+var_10]
cmp rax, [rcx+8]
jz short loc_46016
mov rax, [rbp+var_10]
mov rdi, [rax+18h]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_28]
call _memcpy
mov rdi, [rbp+var_10]
mov rax, [rbp+var_10]
mov rsi, [rax+8]
mov rax, [rbp+var_10]
mov rdx, [rax+18h]
mov rax, [rbp+var_10]
mov rax, [rax+8]
sub rdx, rax
add rdx, [rbp+var_28]
call ma_net_real_write
cmp eax, 0
jz short loc_45FEB
mov [rbp+var_4], 1
jmp loc_460D7
loc_45FEB:
mov rax, [rbp+var_28]
add rax, [rbp+var_18]
mov [rbp+var_18], rax
mov rcx, [rbp+var_28]
mov rax, [rbp+var_20]
sub rax, rcx
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov rcx, [rax+8]
mov rax, [rbp+var_10]
mov [rax+18h], rcx
loc_46016:
mov rax, [rbp+var_10]
cmp byte ptr [rax+84h], 0
jz short loc_46076
mov [rbp+var_28], 0FFFFFFh
loc_4602B:
mov rax, [rbp+var_20]
cmp rax, [rbp+var_28]
jbe short loc_46074
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_28]
call ma_net_real_write
cmp eax, 0
jz short loc_46057
mov [rbp+var_4], 1
jmp loc_460D7
loc_46057:
mov rax, [rbp+var_28]
add rax, [rbp+var_18]
mov [rbp+var_18], rax
mov rcx, [rbp+var_28]
mov rax, [rbp+var_20]
sub rax, rcx
mov [rbp+var_20], rax
jmp short loc_4602B
loc_46074:
jmp short $+2
loc_46076:
mov rax, [rbp+var_20]
mov rcx, [rbp+var_10]
cmp rax, [rcx+50h]
jbe short loc_460A9
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
call ma_net_real_write
mov edx, eax
xor eax, eax
mov ecx, 1
cmp edx, 0
cmovnz eax, ecx
mov [rbp+var_4], eax
jmp short loc_460D7
loc_460A9:
jmp short $+2
loc_460AB:
mov rax, [rbp+var_10]
mov rdi, [rax+18h]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
call _memcpy
mov rcx, [rbp+var_20]
mov rax, [rbp+var_10]
add rcx, [rax+18h]
mov [rax+18h], rcx
mov [rbp+var_4], 0
loc_460D7:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
| _BOOL8 ma_net_write_buff(long long a1, long long a2, unsigned long long a3)
{
unsigned long long v4; // [rsp+8h] [rbp-28h]
unsigned long long v5; // [rsp+10h] [rbp-20h]
long long v6; // [rsp+18h] [rbp-18h]
v6 = a2;
v5 = a3;
if ( a3 )
{
if ( *(_QWORD *)(a1 + 80) > 0xFFFFFFuLL && *(_BYTE *)(a1 + 132) )
v4 = 0xFFFFFFLL - (*(_QWORD *)(a1 + 24) - *(_QWORD *)(a1 + 8));
else
v4 = *(_QWORD *)(a1 + 16) - *(_QWORD *)(a1 + 24);
if ( a3 > v4 )
{
if ( *(_QWORD *)(a1 + 24) != *(_QWORD *)(a1 + 8) )
{
memcpy(*(_QWORD *)(a1 + 24), a2, v4);
if ( (unsigned int)ma_net_real_write(
(_BYTE *)a1,
*(_QWORD *)(a1 + 8),
v4 + *(_QWORD *)(a1 + 24) - *(_QWORD *)(a1 + 8)) )
return 1;
v6 = a2 + v4;
v5 -= v4;
*(_QWORD *)(a1 + 24) = *(_QWORD *)(a1 + 8);
}
if ( *(_BYTE *)(a1 + 132) )
{
while ( v5 > 0xFFFFFF )
{
if ( (unsigned int)ma_net_real_write((_BYTE *)a1, v6, 0xFFFFFFLL) )
return 1;
v6 += 0xFFFFFFLL;
v5 -= 0xFFFFFFLL;
}
}
if ( v5 > *(_QWORD *)(a1 + 80) )
return ma_net_real_write((_BYTE *)a1, v6, v5) != 0;
}
memcpy(*(_QWORD *)(a1 + 24), v6, v5);
*(_QWORD *)(a1 + 24) += v5;
return 0;
}
return 0;
}
| ma_net_write_buff:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
CMP qword ptr [RBP + -0x20],0x0
JNZ 0x00145f27
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001460d7
LAB_00145f27:
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x50],0xffffff
JBE 0x00145f66
MOV RAX,qword ptr [RBP + -0x10]
MOVSX EAX,byte ptr [RAX + 0x84]
CMP EAX,0x0
JZ 0x00145f66
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
SUB RCX,RAX
MOV EAX,0xffffff
SUB RAX,RCX
MOV qword ptr [RBP + -0x28],RAX
JMP 0x00145f7d
LAB_00145f66:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x18]
SUB RAX,RCX
MOV qword ptr [RBP + -0x28],RAX
LAB_00145f7d:
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x28]
JBE 0x001460ab
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x18]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x8]
JZ 0x00146016
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x18]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x28]
CALL 0x00113360
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
SUB RDX,RAX
ADD RDX,qword ptr [RBP + -0x28]
CALL 0x00145a30
CMP EAX,0x0
JZ 0x00145feb
MOV dword ptr [RBP + -0x4],0x1
JMP 0x001460d7
LAB_00145feb:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x18],RAX
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x20]
SUB RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x18],RCX
LAB_00146016:
MOV RAX,qword ptr [RBP + -0x10]
CMP byte ptr [RAX + 0x84],0x0
JZ 0x00146076
MOV qword ptr [RBP + -0x28],0xffffff
LAB_0014602b:
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x28]
JBE 0x00146074
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x28]
CALL 0x00145a30
CMP EAX,0x0
JZ 0x00146057
MOV dword ptr [RBP + -0x4],0x1
JMP 0x001460d7
LAB_00146057:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x18],RAX
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x20]
SUB RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
JMP 0x0014602b
LAB_00146074:
JMP 0x00146076
LAB_00146076:
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x50]
JBE 0x001460a9
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x00145a30
MOV EDX,EAX
XOR EAX,EAX
MOV ECX,0x1
CMP EDX,0x0
CMOVNZ EAX,ECX
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001460d7
LAB_001460a9:
JMP 0x001460ab
LAB_001460ab:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x18]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x00113360
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
ADD RCX,qword ptr [RAX + 0x18]
MOV qword ptr [RAX + 0x18],RCX
MOV dword ptr [RBP + -0x4],0x0
LAB_001460d7:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
bool ma_net_write_buff(long param_1,void *param_2,ulong param_3)
{
int iVar1;
ulong local_30;
ulong local_28;
void *local_20;
if (param_3 != 0) {
if ((*(ulong *)(param_1 + 0x50) < 0x1000000) || (*(char *)(param_1 + 0x84) == '\0')) {
local_30 = *(long *)(param_1 + 0x10) - *(long *)(param_1 + 0x18);
}
else {
local_30 = 0xffffff - (*(long *)(param_1 + 0x18) - *(long *)(param_1 + 8));
}
local_28 = param_3;
local_20 = param_2;
if (local_30 < param_3) {
if (*(long *)(param_1 + 0x18) != *(long *)(param_1 + 8)) {
memcpy(*(void **)(param_1 + 0x18),param_2,local_30);
iVar1 = ma_net_real_write(param_1,*(int8 *)(param_1 + 8),
(*(long *)(param_1 + 0x18) - *(long *)(param_1 + 8)) + local_30);
if (iVar1 != 0) {
return true;
}
local_20 = (void *)(local_30 + (long)param_2);
local_28 = param_3 - local_30;
*(int8 *)(param_1 + 0x18) = *(int8 *)(param_1 + 8);
}
if (*(char *)(param_1 + 0x84) != '\0') {
for (; 0xffffff < local_28; local_28 = local_28 - 0xffffff) {
iVar1 = ma_net_real_write(param_1,local_20,0xffffff);
if (iVar1 != 0) {
return true;
}
local_20 = (void *)((long)local_20 + 0xffffff);
}
}
if (*(ulong *)(param_1 + 0x50) < local_28) {
iVar1 = ma_net_real_write(param_1,local_20,local_28);
return iVar1 != 0;
}
}
memcpy(*(void **)(param_1 + 0x18),local_20,local_28);
*(ulong *)(param_1 + 0x18) = local_28 + *(long *)(param_1 + 0x18);
}
return false;
}
| |
37,852 | js_cond_wait | bluesky950520[P]quickjs/cutils.c | void js_cond_wait(js_cond_t *cond, js_mutex_t *mutex) {
#if defined(__APPLE__) && defined(__MACH__)
int r;
errno = 0;
r = pthread_cond_wait(cond, mutex);
/* Workaround for a bug in OS X at least up to 13.6
* See https://github.com/libuv/libuv/issues/4165
*/
if (r == EINVAL && errno == EBUSY)
return;
if (r)
abort();
#else
if (pthread_cond_wait(cond, mutex))
abort();
#endif
} | O0 | c | js_cond_wait:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0xe1f0
cmpl $0x0, %eax
je 0x1fda7
callq 0xe090
addq $0x18, %rsp
retq
nopl (%rax)
| js_cond_wait:
sub rsp, 18h
mov [rsp+18h+var_8], rdi
mov [rsp+18h+var_10], rsi
mov rdi, [rsp+18h+var_8]
mov rsi, [rsp+18h+var_10]
call _pthread_cond_wait
cmp eax, 0
jz short loc_1FDA7
call _abort
loc_1FDA7:
add rsp, 18h
retn
| long long js_cond_wait(long long a1, long long a2)
{
long long result; // rax
result = pthread_cond_wait(a1, a2);
if ( (_DWORD)result )
abort();
return result;
}
| js_cond_wait:
SUB RSP,0x18
MOV qword ptr [RSP + 0x10],RDI
MOV qword ptr [RSP + 0x8],RSI
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP + 0x8]
CALL 0x0010e1f0
CMP EAX,0x0
JZ 0x0011fda7
CALL 0x0010e090
LAB_0011fda7:
ADD RSP,0x18
RET
|
void js_cond_wait(pthread_cond_t *param_1,pthread_mutex_t *param_2)
{
int iVar1;
iVar1 = pthread_cond_wait(param_1,param_2);
if (iVar1 != 0) {
/* WARNING: Subroutine does not return */
abort();
}
return;
}
| |
37,853 | js_cond_wait | bluesky950520[P]quickjs/cutils.c | void js_cond_wait(js_cond_t *cond, js_mutex_t *mutex) {
#if defined(__APPLE__) && defined(__MACH__)
int r;
errno = 0;
r = pthread_cond_wait(cond, mutex);
/* Workaround for a bug in OS X at least up to 13.6
* See https://github.com/libuv/libuv/issues/4165
*/
if (r == EINVAL && errno == EBUSY)
return;
if (r)
abort();
#else
if (pthread_cond_wait(cond, mutex))
abort();
#endif
} | O3 | c | js_cond_wait:
pushq %rax
callq 0xe1f0
testl %eax, %eax
jne 0x1c4dd
popq %rax
retq
callq 0xe090
| js_cond_wait:
push rax
call _pthread_cond_wait
test eax, eax
jnz short loc_1C4DD
pop rax
retn
loc_1C4DD:
call _abort
| void __spoils<rdx,rcx,r8,r9,r10,r11,xmm4,xmm5> js_cond_wait()
{
if ( (unsigned int)pthread_cond_wait() )
abort();
}
| js_cond_wait:
PUSH RAX
CALL 0x0010e1f0
TEST EAX,EAX
JNZ 0x0011c4dd
POP RAX
RET
LAB_0011c4dd:
CALL 0x0010e090
|
int8 js_cond_wait(pthread_cond_t *param_1,pthread_mutex_t *param_2)
{
int iVar1;
int8 in_RAX;
iVar1 = pthread_cond_wait(param_1,param_2);
if (iVar1 == 0) {
return in_RAX;
}
/* WARNING: Subroutine does not return */
abort();
}
| |
37,854 | my_copy_8bit | eloqsql/strings/ctype-simple.c | size_t
my_copy_8bit(CHARSET_INFO *cs __attribute__((unused)),
char *dst, size_t dst_length,
const char *src, size_t src_length,
size_t nchars, MY_STRCOPY_STATUS *status)
{
set_if_smaller(src_length, dst_length);
set_if_smaller(src_length, nchars);
if (src_length)
memmove(dst, src, src_length);
status->m_source_end_pos= src + src_length;
status->m_well_formed_error_pos= NULL;
return src_length;
} | O0 | c | my_copy_8bit:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x28(%rbp), %rax
cmpq -0x18(%rbp), %rax
jbe 0x79d46
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x79d48
jmp 0x79d4a
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
jbe 0x79d5c
movq -0x30(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x79d5e
cmpq $0x0, -0x28(%rbp)
je 0x79d76
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x265a0
movq -0x20(%rbp), %rcx
addq -0x28(%rbp), %rcx
movq 0x10(%rbp), %rax
movq %rcx, (%rax)
movq 0x10(%rbp), %rax
movq $0x0, 0x8(%rax)
movq -0x28(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| my_copy_8bit:
push rbp
mov rbp, rsp
sub rsp, 30h
mov rax, [rbp+arg_0]
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
mov rax, [rbp+var_28]
cmp rax, [rbp+var_18]
jbe short loc_79D46
mov rax, [rbp+var_18]
mov [rbp+var_28], rax
loc_79D46:
jmp short $+2
loc_79D48:
jmp short $+2
loc_79D4A:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_30]
jbe short loc_79D5C
mov rax, [rbp+var_30]
mov [rbp+var_28], rax
loc_79D5C:
jmp short $+2
loc_79D5E:
cmp [rbp+var_28], 0
jz short loc_79D76
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_28]
call _memmove
loc_79D76:
mov rcx, [rbp+var_20]
add rcx, [rbp+var_28]
mov rax, [rbp+arg_0]
mov [rax], rcx
mov rax, [rbp+arg_0]
mov qword ptr [rax+8], 0
mov rax, [rbp+var_28]
add rsp, 30h
pop rbp
retn
| unsigned long long my_copy_8bit(
long long a1,
long long a2,
unsigned long long a3,
long long a4,
unsigned long long a5,
unsigned long long a6,
_QWORD *a7)
{
unsigned long long v8; // [rsp+8h] [rbp-28h]
v8 = a5;
if ( a5 > a3 )
v8 = a3;
if ( v8 > a6 )
v8 = a6;
if ( v8 )
memmove(a2, a4, v8);
*a7 = v8 + a4;
a7[1] = 0LL;
return v8;
}
| my_copy_8bit:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
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 + -0x28]
CMP RAX,qword ptr [RBP + -0x18]
JBE 0x00179d46
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x28],RAX
LAB_00179d46:
JMP 0x00179d48
LAB_00179d48:
JMP 0x00179d4a
LAB_00179d4a:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x30]
JBE 0x00179d5c
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x28],RAX
LAB_00179d5c:
JMP 0x00179d5e
LAB_00179d5e:
CMP qword ptr [RBP + -0x28],0x0
JZ 0x00179d76
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
CALL 0x001265a0
LAB_00179d76:
MOV RCX,qword ptr [RBP + -0x20]
ADD RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RAX + 0x8],0x0
MOV RAX,qword ptr [RBP + -0x28]
ADD RSP,0x30
POP RBP
RET
|
size_t my_copy_8bit(int8 param_1,void *param_2,ulong param_3,void *param_4,ulong param_5,
ulong param_6,long *param_7)
{
ulong local_30;
local_30 = param_5;
if (param_3 < param_5) {
local_30 = param_3;
}
if (param_6 < local_30) {
local_30 = param_6;
}
if (local_30 != 0) {
memmove(param_2,param_4,local_30);
}
*param_7 = (long)param_4 + local_30;
param_7[1] = 0;
return local_30;
}
| |
37,855 | bitmap_is_clear_all | eloqsql/mysys/my_bitmap.c | my_bool bitmap_is_clear_all(const MY_BITMAP *map)
{
my_bitmap_map *data_ptr= map->bitmap;
my_bitmap_map *end= map->last_word_ptr;
DBUG_ASSERT(map->n_bits > 0);
for (; data_ptr < end; data_ptr++)
if (*data_ptr)
return FALSE;
return (*data_ptr & ~map->last_word_mask) == 0;
} | O3 | c | bitmap_is_clear_all:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
cmpq %rcx, %rax
jae 0x9e8f9
cmpl $0x0, (%rax)
jne 0x9e905
addq $0x4, %rax
jmp 0x9e8e9
movl 0x18(%rdi), %ecx
notl %ecx
testl %ecx, (%rax)
sete %al
jmp 0x9e907
xorl %eax, %eax
popq %rbp
retq
| bitmap_is_clear_all:
push rbp
mov rbp, rsp
mov rax, [rdi]
mov rcx, [rdi+8]
loc_9E8E9:
cmp rax, rcx
jnb short loc_9E8F9
cmp dword ptr [rax], 0
jnz short loc_9E905
add rax, 4
jmp short loc_9E8E9
loc_9E8F9:
mov ecx, [rdi+18h]
not ecx
test [rax], ecx
setz al
jmp short loc_9E907
loc_9E905:
xor eax, eax
loc_9E907:
pop rbp
retn
| bool bitmap_is_clear_all(long long a1)
{
_DWORD *i; // rax
for ( i = *(_DWORD **)a1; ; ++i )
{
if ( (unsigned long long)i >= *(_QWORD *)(a1 + 8) )
return (~*(_DWORD *)(a1 + 24) & *i) == 0;
if ( *i )
break;
}
return 0;
}
| bitmap_is_clear_all:
PUSH RBP
MOV RBP,RSP
MOV RAX,qword ptr [RDI]
MOV RCX,qword ptr [RDI + 0x8]
LAB_0019e8e9:
CMP RAX,RCX
JNC 0x0019e8f9
CMP dword ptr [RAX],0x0
JNZ 0x0019e905
ADD RAX,0x4
JMP 0x0019e8e9
LAB_0019e8f9:
MOV ECX,dword ptr [RDI + 0x18]
NOT ECX
TEST dword ptr [RAX],ECX
SETZ AL
JMP 0x0019e907
LAB_0019e905:
XOR EAX,EAX
LAB_0019e907:
POP RBP
RET
|
int8 bitmap_is_clear_all(int8 *param_1)
{
uint *puVar1;
puVar1 = (uint *)*param_1;
while( true ) {
if ((uint *)param_1[1] <= puVar1) {
return CONCAT71((int7)((ulong)puVar1 >> 8),(*puVar1 & ~*(uint *)(param_1 + 3)) == 0);
}
if (*puVar1 != 0) break;
puVar1 = puVar1 + 1;
}
return 0;
}
| |
37,856 | query_int_variable | eloqsql/libmariadb/unittest/libmariadb/my_test.h | my_bool query_int_variable(MYSQL *con, const char *var_name, int *var_value)
{
MYSQL_RES *rs;
MYSQL_ROW row;
char query_buffer[MAX_TEST_QUERY_LENGTH];
my_bool is_null;
sprintf(query_buffer,
"SELECT %s",
(const char *) var_name);
FAIL_IF(mysql_query(con, query_buffer), "Query failed");
FAIL_UNLESS(rs= mysql_store_result(con), "Invaliid result set");
FAIL_UNLESS(row= mysql_fetch_row(rs), "Nothing to fetch");
is_null= row[0] == NULL;
if (!is_null)
*var_value= atoi(row[0]);
mysql_free_result(rs);
return is_null;
} | O0 | c | query_int_variable:
pushq %rbp
movq %rsp, %rbp
subq $0x180, %rsp # imm = 0x180
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x150(%rbp)
movq %rsi, -0x158(%rbp)
movq %rdx, -0x160(%rbp)
leaq -0x140(%rbp), %rdi
movq -0x158(%rbp), %rdx
leaq 0x3c3d9(%rip), %rsi # 0x5028b
movb $0x0, %al
callq 0x130f0
movq -0x150(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0x22e30
cmpl $0x0, %eax
je 0x13efe
leaq 0x3c20c(%rip), %rdi # 0x500e4
leaq 0x3c3b6(%rip), %rsi # 0x50295
leaq 0x3c226(%rip), %rdx # 0x5010c
movl $0x1a2, %ecx # imm = 0x1A2
movb $0x0, %al
callq 0x1a000
movb $0x1, -0x141(%rbp)
jmp 0x13fe5
jmp 0x13f00
jmp 0x13f02
movq -0x150(%rbp), %rdi
callq 0x24480
movq %rax, -0x168(%rbp)
cmpq $0x0, %rax
jne 0x13f48
leaq 0x3c1c2(%rip), %rdi # 0x500e4
leaq 0x3c379(%rip), %rsi # 0x502a2
leaq 0x3c1dc(%rip), %rdx # 0x5010c
movl $0x1a3, %ecx # imm = 0x1A3
movb $0x0, %al
callq 0x1a000
movb $0x1, -0x141(%rbp)
jmp 0x13fe5
jmp 0x13f4a
jmp 0x13f4c
movq -0x168(%rbp), %rdi
callq 0x247c0
movq %rax, -0x170(%rbp)
cmpq $0x0, %rax
jne 0x13f8f
leaq 0x3c178(%rip), %rdi # 0x500e4
leaq 0x3c343(%rip), %rsi # 0x502b6
leaq 0x3c192(%rip), %rdx # 0x5010c
movl $0x1a4, %ecx # imm = 0x1A4
movb $0x0, %al
callq 0x1a000
movb $0x1, -0x141(%rbp)
jmp 0x13fe5
jmp 0x13f91
movq -0x170(%rbp), %rax
cmpq $0x0, (%rax)
sete %al
andb $0x1, %al
movzbl %al, %eax
movb %al, -0x171(%rbp)
cmpb $0x0, -0x171(%rbp)
jne 0x13fcd
movq -0x170(%rbp), %rax
movq (%rax), %rdi
callq 0x136b0
movl %eax, %ecx
movq -0x160(%rbp), %rax
movl %ecx, (%rax)
movq -0x168(%rbp), %rdi
callq 0x1bcc0
movb -0x171(%rbp), %al
movb %al, -0x141(%rbp)
movb -0x141(%rbp), %al
movb %al, -0x172(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x14012
movb -0x172(%rbp), %al
addq $0x180, %rsp # imm = 0x180
popq %rbp
retq
callq 0x134b0
nopw (%rax,%rax)
| query_int_variable:
push rbp
mov rbp, rsp
sub rsp, 180h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_150], rdi
mov [rbp+var_158], rsi
mov [rbp+var_160], rdx
lea rdi, [rbp+var_140]
mov rdx, [rbp+var_158]
lea rsi, aSelectS; "SELECT %s"
mov al, 0
call _sprintf
mov rdi, [rbp+var_150]
lea rsi, [rbp+var_140]
call mysql_query
cmp eax, 0
jz short loc_13EFE
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rsi, aQueryFailed; "Query failed"
lea rdx, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 1A2h
mov al, 0
call diag
mov [rbp+var_141], 1
jmp loc_13FE5
loc_13EFE:
jmp short $+2
loc_13F00:
jmp short $+2
loc_13F02:
mov rdi, [rbp+var_150]
call mysql_store_result
mov [rbp+var_168], rax
cmp rax, 0
jnz short loc_13F48
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rsi, aInvaliidResult; "Invaliid result set"
lea rdx, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 1A3h
mov al, 0
call diag
mov [rbp+var_141], 1
jmp loc_13FE5
loc_13F48:
jmp short $+2
loc_13F4A:
jmp short $+2
loc_13F4C:
mov rdi, [rbp+var_168]
call mysql_fetch_row
mov [rbp+var_170], rax
cmp rax, 0
jnz short loc_13F8F
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rsi, aNothingToFetch; "Nothing to fetch"
lea rdx, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 1A4h
mov al, 0
call diag
mov [rbp+var_141], 1
jmp short loc_13FE5
loc_13F8F:
jmp short $+2
loc_13F91:
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_13FCD
mov rax, [rbp+var_170]
mov rdi, [rax]
call _atoi
mov ecx, eax
mov rax, [rbp+var_160]
mov [rax], ecx
loc_13FCD:
mov rdi, [rbp+var_168]
call mysql_free_result
mov al, [rbp+var_171]
mov [rbp+var_141], al
loc_13FE5:
mov al, [rbp+var_141]
mov [rbp+var_172], al
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_14012
mov al, [rbp+var_172]
add rsp, 180h
pop rbp
retn
loc_14012:
call ___stack_chk_fail
| char query_int_variable(long long a1, const char *a2, _DWORD *a3)
{
int v3; // r8d
int v4; // r9d
int v5; // r8d
int v6; // r9d
int v7; // r8d
int v8; // r9d
bool v10; // [rsp+Fh] [rbp-171h]
_QWORD *row; // [rsp+10h] [rbp-170h]
long long v12; // [rsp+18h] [rbp-168h]
_BYTE v15[312]; // [rsp+40h] [rbp-140h] BYREF
unsigned long long v16; // [rsp+178h] [rbp-8h]
v16 = __readfsqword(0x28u);
sprintf(v15, "SELECT %s", a2);
if ( (unsigned int)mysql_query(a1, v15) )
{
diag(
(unsigned int)"Error: %s (%s: %d)",
(unsigned int)"Query failed",
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h",
418,
v3,
v4);
return 1;
}
else
{
v12 = mysql_store_result(a1);
if ( v12 )
{
row = (_QWORD *)mysql_fetch_row(v12);
if ( row )
{
v10 = *row == 0LL;
if ( *row )
*a3 = atoi(*row);
mysql_free_result(v12);
return v10;
}
else
{
diag(
(unsigned int)"Error: %s (%s: %d)",
(unsigned int)"Nothing to fetch",
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h",
420,
v7,
v8);
return 1;
}
}
else
{
diag(
(unsigned int)"Error: %s (%s: %d)",
(unsigned int)"Invaliid result set",
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h",
419,
v5,
v6);
return 1;
}
}
}
| query_int_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 + -0x150],RDI
MOV qword ptr [RBP + -0x158],RSI
MOV qword ptr [RBP + -0x160],RDX
LEA RDI,[RBP + -0x140]
MOV RDX,qword ptr [RBP + -0x158]
LEA RSI,[0x15028b]
MOV AL,0x0
CALL 0x001130f0
MOV RDI,qword ptr [RBP + -0x150]
LEA RSI,[RBP + -0x140]
CALL 0x00122e30
CMP EAX,0x0
JZ 0x00113efe
LEA RDI,[0x1500e4]
LEA RSI,[0x150295]
LEA RDX,[0x15010c]
MOV ECX,0x1a2
MOV AL,0x0
CALL 0x0011a000
MOV byte ptr [RBP + -0x141],0x1
JMP 0x00113fe5
LAB_00113efe:
JMP 0x00113f00
LAB_00113f00:
JMP 0x00113f02
LAB_00113f02:
MOV RDI,qword ptr [RBP + -0x150]
CALL 0x00124480
MOV qword ptr [RBP + -0x168],RAX
CMP RAX,0x0
JNZ 0x00113f48
LEA RDI,[0x1500e4]
LEA RSI,[0x1502a2]
LEA RDX,[0x15010c]
MOV ECX,0x1a3
MOV AL,0x0
CALL 0x0011a000
MOV byte ptr [RBP + -0x141],0x1
JMP 0x00113fe5
LAB_00113f48:
JMP 0x00113f4a
LAB_00113f4a:
JMP 0x00113f4c
LAB_00113f4c:
MOV RDI,qword ptr [RBP + -0x168]
CALL 0x001247c0
MOV qword ptr [RBP + -0x170],RAX
CMP RAX,0x0
JNZ 0x00113f8f
LEA RDI,[0x1500e4]
LEA RSI,[0x1502b6]
LEA RDX,[0x15010c]
MOV ECX,0x1a4
MOV AL,0x0
CALL 0x0011a000
MOV byte ptr [RBP + -0x141],0x1
JMP 0x00113fe5
LAB_00113f8f:
JMP 0x00113f91
LAB_00113f91:
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 0x00113fcd
MOV RAX,qword ptr [RBP + -0x170]
MOV RDI,qword ptr [RAX]
CALL 0x001136b0
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x160]
MOV dword ptr [RAX],ECX
LAB_00113fcd:
MOV RDI,qword ptr [RBP + -0x168]
CALL 0x0011bcc0
MOV AL,byte ptr [RBP + -0x171]
MOV byte ptr [RBP + -0x141],AL
LAB_00113fe5:
MOV AL,byte ptr [RBP + -0x141]
MOV byte ptr [RBP + -0x172],AL
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x00114012
MOV AL,byte ptr [RBP + -0x172]
ADD RSP,0x180
POP RBP
RET
LAB_00114012:
CALL 0x001134b0
|
int8 query_int_variable(int8 param_1,int8 param_2,int *param_3)
{
int iVar1;
long lVar2;
long *plVar3;
long in_FS_OFFSET;
bool local_149;
char local_148 [312];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
sprintf(local_148,"SELECT %s",param_2);
iVar1 = mysql_query(param_1,local_148);
if (iVar1 == 0) {
lVar2 = mysql_store_result(param_1);
if (lVar2 == 0) {
diag("Error: %s (%s: %d)","Invaliid result set",
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h",0x1a3
);
local_149 = true;
}
else {
plVar3 = (long *)mysql_fetch_row(lVar2);
if (plVar3 == (long *)0x0) {
diag("Error: %s (%s: %d)","Nothing to fetch",
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h",
0x1a4);
local_149 = true;
}
else {
local_149 = *plVar3 == 0;
if (!local_149) {
iVar1 = atoi((char *)*plVar3);
*param_3 = iVar1;
}
mysql_free_result(lVar2);
}
}
}
else {
diag("Error: %s (%s: %d)","Query failed",
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h",0x1a2);
local_149 = true;
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),local_149);
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
37,857 | CLI::IncorrectConstruction::IncorrectConstruction(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) | MikePodsytnik[P]TCRtrie/build_O3/_deps/cli11-src/include/CLI/Error.hpp | static IncorrectConstruction PositionalFlag(std::string name) {
return IncorrectConstruction(name + ": Flags cannot be positional");
} | O3 | cpp | CLI::IncorrectConstruction::IncorrectConstruction(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1a306(%rip), %rsi # 0x37741
leaq 0x1a314(%rip), %rdx # 0x37756
leaq 0x28(%rsp), %rdi
callq 0x11f90
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x177be
leaq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0x64, %ecx
callq 0x1d4fa
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1d498
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x7430
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x1d4af
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x7430
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1d4da
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x7430
jmp 0x1d4da
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x1d4f1
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x7430
movq %rbx, %rdi
callq 0x7780
nop
| _ZN3CLI21IncorrectConstructionC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push r15
push r14
push r12
push rbx
sub rsp, 48h
mov r14, rsi
mov rbx, rdi
lea r15, [rsp+68h+var_30]
mov [r15-10h], r15
lea rsi, aIncorrectconst; "IncorrectConstruction"
lea rdx, aIncorrectconst+15h; ""
lea rdi, [rsp+68h+var_40]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea r12, [rsp+68h+var_50]
mov [r12-10h], r12
mov rsi, [r14]
mov rdx, [r14+8]
add rdx, rsi
lea rdi, [rsp+68h+var_60]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea rsi, [rsp+68h+var_40]
lea rdx, [rsp+68h+var_60]
mov rdi, rbx; int
mov ecx, 64h ; 'd'
call _ZN3CLI21IncorrectConstructionC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_NS_9ExitCodesE; CLI::IncorrectConstruction::IncorrectConstruction(std::string,std::string,CLI::ExitCodes)
mov rdi, [rsp+68h+var_60]; void *
cmp rdi, r12
jz short loc_1D498
mov rsi, [rsp+68h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1D498:
mov rdi, [rsp+68h+var_40]; void *
cmp rdi, r15
jz short loc_1D4AF
mov rsi, [rsp+68h+var_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1D4AF:
add rsp, 48h
pop rbx
pop r12
pop r14
pop r15
retn
mov rbx, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, r12
jz short loc_1D4DA
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_1D4DA
mov rbx, rax
loc_1D4DA:
mov rdi, [rsp+arg_20]; void *
cmp rdi, r15
jz short loc_1D4F1
mov rsi, [rsp+arg_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1D4F1:
mov rdi, rbx
call __Unwind_Resume
| void CLI::IncorrectConstruction::IncorrectConstruction(int a1, long long a2)
{
int v2; // [rsp+0h] [rbp-68h]
void *v3; // [rsp+8h] [rbp-60h] BYREF
int v4; // [rsp+10h] [rbp-58h]
char v5[16]; // [rsp+18h] [rbp-50h] BYREF
void *v6; // [rsp+28h] [rbp-40h] BYREF
_QWORD v7[6]; // [rsp+38h] [rbp-30h] BYREF
v6 = v7;
std::string::_M_construct<char const*>((long long)&v6, "IncorrectConstruction", (long long)"");
v3 = v5;
std::string::_M_construct<char *>((long long)&v3, *(_BYTE **)a2, *(_QWORD *)a2 + *(_QWORD *)(a2 + 8));
CLI::IncorrectConstruction::IncorrectConstruction(a1, v2, (long long)v3, v4, v5[0]);
if ( v3 != v5 )
operator delete(v3, *(_QWORD *)v5 + 1LL);
if ( v6 != v7 )
operator delete(v6, v7[0] + 1LL);
}
| IncorrectConstruction:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV R14,RSI
MOV RBX,RDI
LEA R15,[RSP + 0x38]
MOV qword ptr [R15 + -0x10],R15
LEA RSI,[0x137741]
LEA RDX,[0x137756]
LEA RDI,[RSP + 0x28]
CALL 0x00111f90
LEA R12,[RSP + 0x18]
MOV qword ptr [R12 + -0x10],R12
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
ADD RDX,RSI
LAB_0011d460:
LEA RDI,[RSP + 0x8]
CALL 0x001177be
LAB_0011d46a:
LEA RSI,[RSP + 0x28]
LEA RDX,[RSP + 0x8]
MOV RDI,RBX
MOV ECX,0x64
CALL 0x0011d4fa
LAB_0011d481:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R12
JZ 0x0011d498
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x00107430
LAB_0011d498:
MOV RDI,qword ptr [RSP + 0x28]
CMP RDI,R15
JZ 0x0011d4af
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x00107430
LAB_0011d4af:
ADD RSP,0x48
POP RBX
POP R12
POP R14
POP R15
RET
|
/* CLI::IncorrectConstruction::IncorrectConstruction(std::__cxx11::string) */
void __thiscall
CLI::IncorrectConstruction::IncorrectConstruction(IncorrectConstruction *this,long *param_2)
{
long *local_60 [2];
long local_50 [2];
long *local_40 [2];
long local_30 [2];
local_40[0] = local_30;
std::__cxx11::string::_M_construct<char_const*>(local_40,"IncorrectConstruction","");
/* try { // try from 0011d460 to 0011d469 has its CatchHandler @ 0011d4d7 */
local_60[0] = local_50;
std::__cxx11::string::_M_construct<char*>(local_60,*param_2,param_2[1] + *param_2);
/* try { // try from 0011d46a to 0011d480 has its CatchHandler @ 0011d4bb */
IncorrectConstruction(this,local_40,local_60,100);
if (local_60[0] != local_50) {
operator_delete(local_60[0],local_50[0] + 1);
}
if (local_40[0] != local_30) {
operator_delete(local_40[0],local_30[0] + 1);
}
return;
}
| |
37,858 | get_validators_from_cache | corpus-core[P]colibri-stateless/src/chains/eth/verifier/sync_committee_state.c | static c4_sync_state_t get_validators_from_cache(verify_ctx_t* ctx, uint32_t period) {
storage_plugin_t storage_conf = {0};
c4_chain_state_t chain_state = c4_get_chain_state(ctx->chain_id);
uint32_t last_period = 0;
#ifdef C4_STATIC_MEMORY
buffer_t validators = stack_buffer(sync_buffer);
#else
buffer_t validators = {0};
#ifdef BLS_DESERIALIZE
validators.allocated = 512 * 48 * 2;
#else
validators.allocated = 512 * 48;
#endif
#endif
bool found = false;
c4_get_storage_config(&storage_conf);
for (uint32_t i = 0; i < chain_state.len; i++) {
uint32_t p = chain_state.blocks[i].period;
if (p == period) found = true;
last_period = p > last_period && p <= period ? p : last_period;
}
#ifndef C4_STATIC_MEMORY
safe_free(chain_state.blocks);
#endif
char name[100];
sprintf(name, "sync_%" PRIu64 "_%d", (uint64_t) ctx->chain_id, period);
if (found && storage_conf.get) storage_conf.get(name, &validators);
#ifdef BLS_DESERIALIZE
if (validators.data.data && validators.data.len == 512 * 48) {
#ifdef C4_STATIC_MEMORY
memcpy(keys_48_buffer, validators.data.data, 512 * 48);
bytes_t b = blst_deserialize_p1_affine(validators.data.data, 512, sync_buffer);
#else
bytes_t b = blst_deserialize_p1_affine(validators.data.data, 512, NULL);
buffer_free(&validators);
#endif
validators.data = b;
storage_conf.set(name, b);
}
#endif
if (validators.data.len == 0) validators.data.data = NULL; // just to make sure we mark it as not found, even if we are using static memory
return (c4_sync_state_t) {
.deserialized = validators.data.data && validators.data.len > 512 * 48,
.current_period = period,
.last_period = last_period,
.validators = validators.data};
} | O0 | c | get_validators_from_cache:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp # imm = 0x100
movq %rdi, -0xf0(%rbp)
movq %rdi, -0xe8(%rbp)
movq %rsi, -0x8(%rbp)
movl %edx, -0xc(%rbp)
leaq -0x30(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x5110
movq -0x8(%rbp), %rax
movl 0x80(%rax), %edi
callq 0x16b00
movq %rax, -0x40(%rbp)
movl %edx, -0x38(%rbp)
movl $0x0, -0x44(%rbp)
leaq -0x60(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x5110
movl $0xc000, -0x50(%rbp) # imm = 0xC000
movb $0x0, -0x61(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x1f970
movl $0x0, -0x68(%rbp)
movl -0x68(%rbp), %eax
cmpl -0x38(%rbp), %eax
jae 0x17408
movq -0x40(%rbp), %rax
movl -0x68(%rbp), %ecx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movl 0x28(%rax), %eax
movl %eax, -0x6c(%rbp)
movl -0x6c(%rbp), %eax
cmpl -0xc(%rbp), %eax
jne 0x173d0
movb $0x1, -0x61(%rbp)
movl -0x6c(%rbp), %eax
cmpl -0x44(%rbp), %eax
jbe 0x173eb
movl -0x6c(%rbp), %eax
cmpl -0xc(%rbp), %eax
ja 0x173eb
movl -0x6c(%rbp), %eax
movl %eax, -0xf4(%rbp)
jmp 0x173f4
movl -0x44(%rbp), %eax
movl %eax, -0xf4(%rbp)
movl -0xf4(%rbp), %eax
movl %eax, -0x44(%rbp)
movl -0x68(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x68(%rbp)
jmp 0x173a8
movq -0x40(%rbp), %rdi
callq 0x18740
leaq -0xd0(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x80(%rax), %eax
movl %eax, %edx
movl -0xc(%rbp), %ecx
leaq 0x3c916(%rip), %rsi # 0x53d44
movb $0x0, %al
callq 0x52f0
testb $0x1, -0x61(%rbp)
je 0x17453
cmpq $0x0, -0x30(%rbp)
je 0x17453
movq -0x30(%rbp), %rax
leaq -0xd0(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq *%rax
cmpq $0x0, -0x58(%rbp)
je 0x174bb
cmpl $0x6000, -0x60(%rbp) # imm = 0x6000
jne 0x174bb
movq -0x58(%rbp), %rdi
movl $0x200, %esi # imm = 0x200
xorl %eax, %eax
movl %eax, %edx
callq 0x1f5a0
movl %eax, -0xe0(%rbp)
movq %rdx, -0xd8(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x18d90
movq -0xe0(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x28(%rbp), %rax
leaq -0xd0(%rbp), %rdi
movl -0xe0(%rbp), %esi
movq -0xd8(%rbp), %rdx
callq *%rax
cmpl $0x0, -0x60(%rbp)
jne 0x174c9
movq $0x0, -0x58(%rbp)
movq -0xf0(%rbp), %rax
movl -0x44(%rbp), %ecx
movl %ecx, (%rax)
movl -0xc(%rbp), %ecx
movl %ecx, 0x4(%rax)
movq -0x60(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x58(%rbp), %rcx
movq %rcx, 0x10(%rax)
addq $0x18, %rax
movq %rax, -0x100(%rbp)
xorl %eax, %eax
cmpq $0x0, -0x58(%rbp)
movb %al, -0xf5(%rbp)
je 0x17515
cmpl $0x6000, -0x60(%rbp) # imm = 0x6000
seta %al
movb %al, -0xf5(%rbp)
movq -0xe8(%rbp), %rax
movq -0x100(%rbp), %rcx
movb -0xf5(%rbp), %dl
andb $0x1, %dl
movb %dl, (%rcx)
addq $0x100, %rsp # imm = 0x100
popq %rbp
retq
nopw (%rax,%rax)
| get_validators_from_cache:
push rbp
mov rbp, rsp
sub rsp, 100h
mov [rbp+var_F0], rdi
mov [rbp+var_E8], rdi
mov [rbp+var_8], rsi
mov [rbp+var_C], edx
lea rdi, [rbp+var_30]
xor esi, esi
mov edx, 20h ; ' '
call _memset
mov rax, [rbp+var_8]
mov edi, [rax+80h]
call c4_get_chain_state
mov [rbp+var_40], rax
mov [rbp+var_38], edx
mov [rbp+var_44], 0
lea rdi, [rbp+var_60]
xor esi, esi
mov edx, 18h
call _memset
mov [rbp+var_50], 0C000h
mov [rbp+var_61], 0
lea rdi, [rbp+var_30]
call c4_get_storage_config
mov [rbp+var_68], 0
loc_173A8:
mov eax, [rbp+var_68]
cmp eax, [rbp+var_38]
jnb short loc_17408
mov rax, [rbp+var_40]
mov ecx, [rbp+var_68]
imul rcx, 30h ; '0'
add rax, rcx
mov eax, [rax+28h]
mov [rbp+var_6C], eax
mov eax, [rbp+var_6C]
cmp eax, [rbp+var_C]
jnz short loc_173D0
mov [rbp+var_61], 1
loc_173D0:
mov eax, [rbp+var_6C]
cmp eax, [rbp+var_44]
jbe short loc_173EB
mov eax, [rbp+var_6C]
cmp eax, [rbp+var_C]
ja short loc_173EB
mov eax, [rbp+var_6C]
mov [rbp+var_F4], eax
jmp short loc_173F4
loc_173EB:
mov eax, [rbp+var_44]
mov [rbp+var_F4], eax
loc_173F4:
mov eax, [rbp+var_F4]
mov [rbp+var_44], eax
mov eax, [rbp+var_68]
add eax, 1
mov [rbp+var_68], eax
jmp short loc_173A8
loc_17408:
mov rdi, [rbp+var_40]
call safe_free
lea rdi, [rbp+var_D0]
mov rax, [rbp+var_8]
mov eax, [rax+80h]
mov edx, eax
mov ecx, [rbp+var_C]
lea rsi, aSyncLuD; "sync_%lu_%d"
mov al, 0
call _sprintf
test [rbp+var_61], 1
jz short loc_17453
cmp [rbp+var_30], 0
jz short loc_17453
mov rax, [rbp+var_30]
lea rdi, [rbp+var_D0]
lea rsi, [rbp+var_60]
call rax
loc_17453:
cmp [rbp+var_58], 0
jz short loc_174BB
cmp dword ptr [rbp+var_60], 6000h
jnz short loc_174BB
mov rdi, [rbp+var_58]
mov esi, 200h
xor eax, eax
mov edx, eax
call blst_deserialize_p1_affine
mov dword ptr [rbp+var_E0], eax
mov [rbp+var_D8], rdx
lea rdi, [rbp+var_60]
call buffer_free
mov rax, [rbp+var_E0]
mov [rbp+var_60], rax
mov rax, [rbp+var_D8]
mov [rbp+var_58], rax
mov rax, [rbp+var_28]
lea rdi, [rbp+var_D0]
mov esi, dword ptr [rbp+var_E0]
mov rdx, [rbp+var_D8]
call rax
loc_174BB:
cmp dword ptr [rbp+var_60], 0
jnz short loc_174C9
mov [rbp+var_58], 0
loc_174C9:
mov rax, [rbp+var_F0]
mov ecx, [rbp+var_44]
mov [rax], ecx
mov ecx, [rbp+var_C]
mov [rax+4], ecx
mov rcx, [rbp+var_60]
mov [rax+8], rcx
mov rcx, [rbp+var_58]
mov [rax+10h], rcx
add rax, 18h
mov [rbp+var_100], rax
xor eax, eax
cmp [rbp+var_58], 0
mov [rbp+var_F5], al
jz short loc_17515
cmp dword ptr [rbp+var_60], 6000h
setnbe al
mov [rbp+var_F5], al
loc_17515:
mov rax, [rbp+var_E8]
mov rcx, [rbp+var_100]
mov dl, [rbp+var_F5]
and dl, 1
mov [rcx], dl
add rsp, 100h
pop rbp
retn
| long long get_validators_from_cache(long long a1, long long a2, unsigned int a3)
{
unsigned int v3; // edx
long long v4; // rdx
long long result; // rax
bool v6; // [rsp+Bh] [rbp-F5h]
unsigned int v7; // [rsp+Ch] [rbp-F4h]
long long v8; // [rsp+20h] [rbp-E0h]
long long v9; // [rsp+28h] [rbp-D8h]
_BYTE v10[100]; // [rsp+30h] [rbp-D0h] BYREF
unsigned int v11; // [rsp+94h] [rbp-6Ch]
unsigned int i; // [rsp+98h] [rbp-68h]
char v13; // [rsp+9Fh] [rbp-61h]
long long v14; // [rsp+A0h] [rbp-60h] BYREF
long long v15; // [rsp+A8h] [rbp-58h]
int v16; // [rsp+B0h] [rbp-50h]
unsigned int v17; // [rsp+BCh] [rbp-44h]
long long chain_state; // [rsp+C0h] [rbp-40h]
unsigned int v19; // [rsp+C8h] [rbp-38h]
_QWORD v20[4]; // [rsp+D0h] [rbp-30h] BYREF
unsigned int v21; // [rsp+F4h] [rbp-Ch]
long long v22; // [rsp+F8h] [rbp-8h]
v22 = a2;
v21 = a3;
memset(v20, 0LL, sizeof(v20));
chain_state = c4_get_chain_state(*(_DWORD *)(v22 + 128));
v19 = v3;
v17 = 0;
memset(&v14, 0LL, 24LL);
v16 = 49152;
v13 = 0;
c4_get_storage_config(v20);
for ( i = 0; i < v19; ++i )
{
v11 = *(_DWORD *)(48LL * i + chain_state + 40);
if ( v11 == v21 )
v13 = 1;
if ( v11 <= v17 || v11 > v21 )
v7 = v17;
else
v7 = v11;
v17 = v7;
}
safe_free(chain_state);
sprintf(v10, "sync_%lu_%d", *(unsigned int *)(v22 + 128), v21);
if ( (v13 & 1) != 0 && v20[0] )
((void ( *)(_BYTE *, long long *))v20[0])(v10, &v14);
if ( v15 && (_DWORD)v14 == 24576 )
{
LODWORD(v8) = blst_deserialize_p1_affine(v15, 512LL, 0LL);
v9 = v4;
buffer_free(&v14);
v14 = v8;
v15 = v9;
((void ( *)(_BYTE *, _QWORD, long long))v20[1])(v10, (unsigned int)v8, v9);
}
if ( !(_DWORD)v14 )
v15 = 0LL;
*(_DWORD *)a1 = v17;
*(_DWORD *)(a1 + 4) = v21;
*(_QWORD *)(a1 + 8) = v14;
*(_QWORD *)(a1 + 16) = v15;
v6 = 0;
if ( v15 )
v6 = (unsigned int)v14 > 0x6000;
result = a1;
*(_BYTE *)(a1 + 24) = v6;
return result;
}
| get_validators_from_cache:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x100
MOV qword ptr [RBP + -0xf0],RDI
MOV qword ptr [RBP + -0xe8],RDI
MOV qword ptr [RBP + -0x8],RSI
MOV dword ptr [RBP + -0xc],EDX
LEA RDI,[RBP + -0x30]
XOR ESI,ESI
MOV EDX,0x20
CALL 0x00105110
MOV RAX,qword ptr [RBP + -0x8]
MOV EDI,dword ptr [RAX + 0x80]
CALL 0x00116b00
MOV qword ptr [RBP + -0x40],RAX
MOV dword ptr [RBP + -0x38],EDX
MOV dword ptr [RBP + -0x44],0x0
LEA RDI,[RBP + -0x60]
XOR ESI,ESI
MOV EDX,0x18
CALL 0x00105110
MOV dword ptr [RBP + -0x50],0xc000
MOV byte ptr [RBP + -0x61],0x0
LEA RDI,[RBP + -0x30]
CALL 0x0011f970
MOV dword ptr [RBP + -0x68],0x0
LAB_001173a8:
MOV EAX,dword ptr [RBP + -0x68]
CMP EAX,dword ptr [RBP + -0x38]
JNC 0x00117408
MOV RAX,qword ptr [RBP + -0x40]
MOV ECX,dword ptr [RBP + -0x68]
IMUL RCX,RCX,0x30
ADD RAX,RCX
MOV EAX,dword ptr [RAX + 0x28]
MOV dword ptr [RBP + -0x6c],EAX
MOV EAX,dword ptr [RBP + -0x6c]
CMP EAX,dword ptr [RBP + -0xc]
JNZ 0x001173d0
MOV byte ptr [RBP + -0x61],0x1
LAB_001173d0:
MOV EAX,dword ptr [RBP + -0x6c]
CMP EAX,dword ptr [RBP + -0x44]
JBE 0x001173eb
MOV EAX,dword ptr [RBP + -0x6c]
CMP EAX,dword ptr [RBP + -0xc]
JA 0x001173eb
MOV EAX,dword ptr [RBP + -0x6c]
MOV dword ptr [RBP + -0xf4],EAX
JMP 0x001173f4
LAB_001173eb:
MOV EAX,dword ptr [RBP + -0x44]
MOV dword ptr [RBP + -0xf4],EAX
LAB_001173f4:
MOV EAX,dword ptr [RBP + -0xf4]
MOV dword ptr [RBP + -0x44],EAX
MOV EAX,dword ptr [RBP + -0x68]
ADD EAX,0x1
MOV dword ptr [RBP + -0x68],EAX
JMP 0x001173a8
LAB_00117408:
MOV RDI,qword ptr [RBP + -0x40]
CALL 0x00118740
LEA RDI,[RBP + -0xd0]
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x80]
MOV EDX,EAX
MOV ECX,dword ptr [RBP + -0xc]
LEA RSI,[0x153d44]
MOV AL,0x0
CALL 0x001052f0
TEST byte ptr [RBP + -0x61],0x1
JZ 0x00117453
CMP qword ptr [RBP + -0x30],0x0
JZ 0x00117453
MOV RAX,qword ptr [RBP + -0x30]
LEA RDI,[RBP + -0xd0]
LEA RSI,[RBP + -0x60]
CALL RAX
LAB_00117453:
CMP qword ptr [RBP + -0x58],0x0
JZ 0x001174bb
CMP dword ptr [RBP + -0x60],0x6000
JNZ 0x001174bb
MOV RDI,qword ptr [RBP + -0x58]
MOV ESI,0x200
XOR EAX,EAX
MOV EDX,EAX
CALL 0x0011f5a0
MOV dword ptr [RBP + -0xe0],EAX
MOV qword ptr [RBP + -0xd8],RDX
LEA RDI,[RBP + -0x60]
CALL 0x00118d90
MOV RAX,qword ptr [RBP + -0xe0]
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0xd8]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x28]
LEA RDI,[RBP + -0xd0]
MOV ESI,dword ptr [RBP + -0xe0]
MOV RDX,qword ptr [RBP + -0xd8]
CALL RAX
LAB_001174bb:
CMP dword ptr [RBP + -0x60],0x0
JNZ 0x001174c9
MOV qword ptr [RBP + -0x58],0x0
LAB_001174c9:
MOV RAX,qword ptr [RBP + -0xf0]
MOV ECX,dword ptr [RBP + -0x44]
MOV dword ptr [RAX],ECX
MOV ECX,dword ptr [RBP + -0xc]
MOV dword ptr [RAX + 0x4],ECX
MOV RCX,qword ptr [RBP + -0x60]
MOV qword ptr [RAX + 0x8],RCX
MOV RCX,qword ptr [RBP + -0x58]
MOV qword ptr [RAX + 0x10],RCX
ADD RAX,0x18
MOV qword ptr [RBP + -0x100],RAX
XOR EAX,EAX
CMP qword ptr [RBP + -0x58],0x0
MOV byte ptr [RBP + -0xf5],AL
JZ 0x00117515
CMP dword ptr [RBP + -0x60],0x6000
SETA AL
MOV byte ptr [RBP + -0xf5],AL
LAB_00117515:
MOV RAX,qword ptr [RBP + -0xe8]
MOV RCX,qword ptr [RBP + -0x100]
MOV DL,byte ptr [RBP + -0xf5]
AND DL,0x1
MOV byte ptr [RCX],DL
ADD RSP,0x100
POP RBP
RET
|
uint * get_validators_from_cache(uint *param_1,long param_2,uint param_3)
{
int4 uVar1;
long extraout_RDX;
bool local_fd;
uint local_fc;
int4 uStack_e4;
char local_d8 [100];
uint local_74;
uint local_70;
byte local_69;
int8 local_68;
long local_60;
int4 local_58;
uint local_4c;
int1 local_48 [12];
code *local_38;
code *local_30;
uint local_14;
long local_10;
local_14 = param_3;
local_10 = param_2;
memset(&local_38,0,0x20);
local_48 = c4_get_chain_state(*(int4 *)(local_10 + 0x80));
local_4c = 0;
memset(&local_68,0,0x18);
local_58 = 0xc000;
local_69 = 0;
c4_get_storage_config(&local_38);
for (local_70 = 0; local_70 < (uint)local_48._8_4_; local_70 = local_70 + 1) {
local_74 = *(uint *)(local_48._0_8_ + (ulong)local_70 * 0x30 + 0x28);
if (local_74 == local_14) {
local_69 = 1;
}
if ((local_74 <= local_4c) || (local_fc = local_74, local_14 < local_74)) {
local_fc = local_4c;
}
local_4c = local_fc;
}
safe_free(local_48._0_8_);
sprintf(local_d8,"sync_%lu_%d",(ulong)*(uint *)(local_10 + 0x80),(ulong)local_14);
if (((local_69 & 1) != 0) && (local_38 != (code *)0x0)) {
(*local_38)(local_d8,&local_68);
}
if ((local_60 != 0) && ((uint)local_68 == 0x6000)) {
uVar1 = blst_deserialize_p1_affine(local_60,0x200,0);
buffer_free(&local_68);
local_68 = CONCAT44(uStack_e4,uVar1);
local_60 = extraout_RDX;
(*local_30)(local_d8,uVar1,extraout_RDX);
}
if ((uint)local_68 == 0) {
local_60 = 0;
}
*param_1 = local_4c;
param_1[1] = local_14;
*(int8 *)(param_1 + 2) = local_68;
*(long *)(param_1 + 4) = local_60;
local_fd = local_60 != 0 && 0x6000 < (uint)local_68;
*(bool *)(param_1 + 6) = local_fd;
return param_1;
}
| |
37,859 | get_validators_from_cache | corpus-core[P]colibri-stateless/src/chains/eth/verifier/sync_committee_state.c | static c4_sync_state_t get_validators_from_cache(verify_ctx_t* ctx, uint32_t period) {
storage_plugin_t storage_conf = {0};
c4_chain_state_t chain_state = c4_get_chain_state(ctx->chain_id);
uint32_t last_period = 0;
#ifdef C4_STATIC_MEMORY
buffer_t validators = stack_buffer(sync_buffer);
#else
buffer_t validators = {0};
#ifdef BLS_DESERIALIZE
validators.allocated = 512 * 48 * 2;
#else
validators.allocated = 512 * 48;
#endif
#endif
bool found = false;
c4_get_storage_config(&storage_conf);
for (uint32_t i = 0; i < chain_state.len; i++) {
uint32_t p = chain_state.blocks[i].period;
if (p == period) found = true;
last_period = p > last_period && p <= period ? p : last_period;
}
#ifndef C4_STATIC_MEMORY
safe_free(chain_state.blocks);
#endif
char name[100];
sprintf(name, "sync_%" PRIu64 "_%d", (uint64_t) ctx->chain_id, period);
if (found && storage_conf.get) storage_conf.get(name, &validators);
#ifdef BLS_DESERIALIZE
if (validators.data.data && validators.data.len == 512 * 48) {
#ifdef C4_STATIC_MEMORY
memcpy(keys_48_buffer, validators.data.data, 512 * 48);
bytes_t b = blst_deserialize_p1_affine(validators.data.data, 512, sync_buffer);
#else
bytes_t b = blst_deserialize_p1_affine(validators.data.data, 512, NULL);
buffer_free(&validators);
#endif
validators.data = b;
storage_conf.set(name, b);
}
#endif
if (validators.data.len == 0) validators.data.data = NULL; // just to make sure we mark it as not found, even if we are using static memory
return (c4_sync_state_t) {
.deserialized = validators.data.data && validators.data.len > 512 * 48,
.current_period = period,
.last_period = last_period,
.validators = validators.data};
} | O1 | c | get_validators_from_cache:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %r13
movaps %xmm0, 0x10(%r13)
movaps %xmm0, (%r13)
movl 0x80(%rsi), %edi
callq 0x11618
movq %rax, %r15
movl %edx, %r12d
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movl $0xc000, 0x10(%rsp) # imm = 0xC000
movq %r13, %rdi
callq 0x16e0c
testl %r12d, %r12d
je 0x11f41
movl %r12d, %eax
shlq $0x4, %rax
leaq (%rax,%rax,2), %rax
xorl %ecx, %ecx
movl $0x1, %edx
xorl %r13d, %r13d
xorl %r12d, %r12d
movl %r13d, %esi
movl 0x28(%r15,%rcx), %edi
movzbl %r12b, %r12d
cmpl %r13d, %edi
cmoval %edi, %r13d
cmpl %ebp, %edi
cmoval %esi, %r13d
cmovel %edx, %r12d
addq $0x30, %rcx
cmpq %rcx, %rax
jne 0x11f19
jmp 0x11f47
xorl %r12d, %r12d
xorl %r13d, %r13d
movq %r15, %rdi
callq 0x128b8
movl 0x80(%r14), %edx
leaq 0x2ce0e(%rip), %rsi # 0x3ed6b
leaq 0x40(%rsp), %rdi
movl %ebp, %ecx
xorl %eax, %eax
callq 0x5310
movq 0x20(%rsp), %rax
testq %rax, %rax
setne %cl
testb %cl, %r12b
je 0x11f85
leaq 0x40(%rsp), %rdi
movq %rsp, %rsi
callq *%rax
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x11fcd
cmpl $0x6000, (%rsp) # imm = 0x6000
jne 0x11fcd
movl $0x200, %esi # imm = 0x200
xorl %edx, %edx
callq 0x16b4c
movl %eax, %r14d
movq %rdx, %r15
movq %rsp, %r12
movq %r12, %rdi
callq 0x12a33
movl %r14d, (%r12)
movq %r15, 0x8(%r12)
leaq 0x40(%rsp), %rdi
movl %r14d, %esi
movq %r15, %rdx
callq *0x28(%rsp)
movl (%rsp), %eax
testl %eax, %eax
jne 0x11fdd
movq $0x0, 0x8(%rsp)
movl %r13d, (%rbx)
movl %ebp, 0x4(%rbx)
movq (%rsp), %rcx
movq %rcx, 0x8(%rbx)
movq 0x8(%rsp), %rcx
movq %rcx, 0x10(%rbx)
cmpq $0x0, 0x8(%rsp)
setne %cl
cmpl $0x6001, %eax # imm = 0x6001
setae %al
andb %cl, %al
movb %al, 0x18(%rbx)
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| get_validators_from_cache:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0A8h
mov ebp, edx
mov r14, rsi
mov rbx, rdi
xorps xmm0, xmm0
lea r13, [rsp+0D8h+var_B8]
movaps xmmword ptr [r13+10h], xmm0
movaps xmmword ptr [r13+0], xmm0
mov edi, [rsi+80h]
call c4_get_chain_state
mov r15, rax
mov r12d, edx
xorps xmm0, xmm0
movaps [rsp+0D8h+var_D8], xmm0
mov [rsp+0D8h+var_C8], 0
mov dword ptr [rsp+0D8h+var_C8], 0C000h
mov rdi, r13
call c4_get_storage_config
test r12d, r12d
jz short loc_11F41
mov eax, r12d
shl rax, 4
lea rax, [rax+rax*2]
xor ecx, ecx
mov edx, 1
xor r13d, r13d
xor r12d, r12d
loc_11F19:
mov esi, r13d
mov edi, [r15+rcx+28h]
movzx r12d, r12b
cmp edi, r13d
cmova r13d, edi
cmp edi, ebp
cmova r13d, esi
cmovz r12d, edx
add rcx, 30h ; '0'
cmp rax, rcx
jnz short loc_11F19
jmp short loc_11F47
loc_11F41:
xor r12d, r12d
xor r13d, r13d
loc_11F47:
mov rdi, r15
call safe_free
mov edx, [r14+80h]
lea rsi, aSyncLuD; "sync_%lu_%d"
lea rdi, [rsp+0D8h+var_98]
mov ecx, ebp
xor eax, eax
call _sprintf
mov rax, [rsp+0D8h+var_B8]
test rax, rax
setnz cl
test r12b, cl
jz short loc_11F85
lea rdi, [rsp+0D8h+var_98]
mov rsi, rsp
call rax
loc_11F85:
mov rdi, qword ptr [rsp+0D8h+var_D8+8]
test rdi, rdi
jz short loc_11FCD
cmp dword ptr [rsp+0D8h+var_D8], 6000h
jnz short loc_11FCD
mov esi, 200h
xor edx, edx
call blst_deserialize_p1_affine
mov r14d, eax
mov r15, rdx
mov r12, rsp
mov rdi, r12
call buffer_free
mov [r12], r14d
mov [r12+8], r15
lea rdi, [rsp+0D8h+var_98]
mov esi, r14d
mov rdx, r15
call [rsp+0D8h+var_B0]
loc_11FCD:
mov eax, dword ptr [rsp+0D8h+var_D8]
test eax, eax
jnz short loc_11FDD
mov qword ptr [rsp+0D8h+var_D8+8], 0
loc_11FDD:
mov [rbx], r13d
mov [rbx+4], ebp
mov rcx, qword ptr [rsp+0D8h+var_D8]
mov [rbx+8], rcx
mov rcx, qword ptr [rsp+0D8h+var_D8+8]
mov [rbx+10h], rcx
cmp qword ptr [rsp+0D8h+var_D8+8], 0
setnz cl
cmp eax, 6001h
setnb al
and al, cl
mov [rbx+18h], al
mov rax, rbx
add rsp, 0A8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long get_validators_from_cache(long long a1, long long a2, unsigned int a3)
{
long long chain_state; // r15
unsigned int v7; // edx
unsigned int v8; // r12d
long long v9; // rax
long long v10; // rcx
unsigned int v11; // r13d
char v12; // r12
unsigned int v13; // esi
unsigned int v14; // edi
unsigned int v15; // r14d
long long v16; // rdx
long long v17; // r15
unsigned int v18; // eax
__int128 v20; // [rsp+0h] [rbp-D8h] BYREF
long long v21; // [rsp+10h] [rbp-C8h]
_QWORD v22[4]; // [rsp+20h] [rbp-B8h] BYREF
_BYTE v23[152]; // [rsp+40h] [rbp-98h] BYREF
memset(v22, 0, sizeof(v22));
chain_state = c4_get_chain_state(*(_DWORD *)(a2 + 128));
v8 = v7;
v20 = 0LL;
v21 = 49152LL;
c4_get_storage_config(v22);
if ( v8 )
{
v9 = 48LL * v8;
v10 = 0LL;
v11 = 0;
v12 = 0;
do
{
v13 = v11;
v14 = *(_DWORD *)(chain_state + v10 + 40);
if ( v14 > v11 )
v11 = *(_DWORD *)(chain_state + v10 + 40);
if ( v14 > a3 )
v11 = v13;
if ( v14 == a3 )
v12 = 1;
v10 += 48LL;
}
while ( v9 != v10 );
}
else
{
v12 = 0;
v11 = 0;
}
safe_free(chain_state);
sprintf(v23, "sync_%lu_%d", *(unsigned int *)(a2 + 128), a3);
if ( ((v22[0] != 0LL) & (unsigned __int8)v12) != 0 )
((void ( *)(_BYTE *, __int128 *))v22[0])(v23, &v20);
if ( *((_QWORD *)&v20 + 1) && (_DWORD)v20 == 24576 )
{
v15 = blst_deserialize_p1_affine(*((_QWORD *)&v20 + 1), 512LL, 0LL);
v17 = v16;
buffer_free(&v20);
LODWORD(v20) = v15;
*((_QWORD *)&v20 + 1) = v17;
((void ( *)(_BYTE *, _QWORD, long long))v22[1])(v23, v15, v17);
}
v18 = v20;
if ( !(_DWORD)v20 )
*((_QWORD *)&v20 + 1) = 0LL;
*(_DWORD *)a1 = v11;
*(_DWORD *)(a1 + 4) = a3;
*(_OWORD *)(a1 + 8) = v20;
*(_BYTE *)(a1 + 24) = *((_QWORD *)&v20 + 1) != 0LL && v18 >= 0x6001;
return a1;
}
| get_validators_from_cache:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xa8
MOV EBP,EDX
MOV R14,RSI
MOV RBX,RDI
XORPS XMM0,XMM0
LEA R13,[RSP + 0x20]
MOVAPS xmmword ptr [R13 + 0x10],XMM0
MOVAPS xmmword ptr [R13],XMM0
MOV EDI,dword ptr [RSI + 0x80]
CALL 0x00111618
MOV R15,RAX
MOV R12D,EDX
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
MOV qword ptr [RSP + 0x10],0x0
MOV dword ptr [RSP + 0x10],0xc000
MOV RDI,R13
CALL 0x00116e0c
TEST R12D,R12D
JZ 0x00111f41
MOV EAX,R12D
SHL RAX,0x4
LEA RAX,[RAX + RAX*0x2]
XOR ECX,ECX
MOV EDX,0x1
XOR R13D,R13D
XOR R12D,R12D
LAB_00111f19:
MOV ESI,R13D
MOV EDI,dword ptr [R15 + RCX*0x1 + 0x28]
MOVZX R12D,R12B
CMP EDI,R13D
CMOVA R13D,EDI
CMP EDI,EBP
CMOVA R13D,ESI
CMOVZ R12D,EDX
ADD RCX,0x30
CMP RAX,RCX
JNZ 0x00111f19
JMP 0x00111f47
LAB_00111f41:
XOR R12D,R12D
XOR R13D,R13D
LAB_00111f47:
MOV RDI,R15
CALL 0x001128b8
MOV EDX,dword ptr [R14 + 0x80]
LEA RSI,[0x13ed6b]
LEA RDI,[RSP + 0x40]
MOV ECX,EBP
XOR EAX,EAX
CALL 0x00105310
MOV RAX,qword ptr [RSP + 0x20]
TEST RAX,RAX
SETNZ CL
TEST R12B,CL
JZ 0x00111f85
LEA RDI,[RSP + 0x40]
MOV RSI,RSP
CALL RAX
LAB_00111f85:
MOV RDI,qword ptr [RSP + 0x8]
TEST RDI,RDI
JZ 0x00111fcd
CMP dword ptr [RSP],0x6000
JNZ 0x00111fcd
MOV ESI,0x200
XOR EDX,EDX
CALL 0x00116b4c
MOV R14D,EAX
MOV R15,RDX
MOV R12,RSP
MOV RDI,R12
CALL 0x00112a33
MOV dword ptr [R12],R14D
MOV qword ptr [R12 + 0x8],R15
LEA RDI,[RSP + 0x40]
MOV ESI,R14D
MOV RDX,R15
CALL qword ptr [RSP + 0x28]
LAB_00111fcd:
MOV EAX,dword ptr [RSP]
TEST EAX,EAX
JNZ 0x00111fdd
MOV qword ptr [RSP + 0x8],0x0
LAB_00111fdd:
MOV dword ptr [RBX],R13D
MOV dword ptr [RBX + 0x4],EBP
MOV RCX,qword ptr [RSP]
MOV qword ptr [RBX + 0x8],RCX
MOV RCX,qword ptr [RSP + 0x8]
MOV qword ptr [RBX + 0x10],RCX
CMP qword ptr [RSP + 0x8],0x0
SETNZ CL
CMP EAX,0x6001
SETNC AL
AND AL,CL
MOV byte ptr [RBX + 0x18],AL
MOV RAX,RBX
ADD RSP,0xa8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
uint * get_validators_from_cache(uint *param_1,long param_2,uint param_3)
{
uint uVar1;
uint uVar2;
int4 uVar3;
long lVar4;
long extraout_RDX;
byte bVar5;
uint uVar6;
int1 auVar7 [16];
int8 local_d8;
long lStack_d0;
int8 local_c8;
code *local_b8;
code *pcStack_b0;
int8 local_a8;
int8 uStack_a0;
char local_98 [104];
local_a8 = 0;
uStack_a0 = 0;
local_b8 = (code *)0x0;
pcStack_b0 = (code *)0x0;
auVar7 = c4_get_chain_state(*(int4 *)(param_2 + 0x80));
local_d8 = 0;
lStack_d0 = 0;
local_c8 = 0xc000;
c4_get_storage_config(&local_b8);
if (auVar7._8_4_ == 0) {
bVar5 = 0;
uVar6 = 0;
}
else {
lVar4 = 0;
uVar6 = 0;
bVar5 = 0;
do {
uVar1 = *(uint *)((long)auVar7._0_8_ + lVar4 + 0x28);
uVar2 = uVar6;
if (uVar6 < uVar1) {
uVar2 = uVar1;
}
if (param_3 <= uVar1 && uVar1 != param_3) {
uVar2 = uVar6;
}
uVar6 = uVar2;
if (uVar1 == param_3) {
bVar5 = 1;
}
lVar4 = lVar4 + 0x30;
} while ((auVar7._8_8_ & 0xffffffff) * 0x30 != lVar4);
}
safe_free(auVar7._0_8_);
sprintf(local_98,"sync_%lu_%d",(ulong)*(uint *)(param_2 + 0x80),(ulong)param_3);
if ((bool)(bVar5 & local_b8 != (code *)0x0)) {
(*local_b8)(local_98,&local_d8);
}
if ((lStack_d0 != 0) && ((uint)local_d8 == 0x6000)) {
uVar3 = blst_deserialize_p1_affine(lStack_d0,0x200,0);
buffer_free(&local_d8);
local_d8 = CONCAT44(local_d8._4_4_,uVar3);
lStack_d0 = extraout_RDX;
(*pcStack_b0)(local_98,uVar3,extraout_RDX);
}
if ((uint)local_d8 == 0) {
lStack_d0 = 0;
}
*param_1 = uVar6;
param_1[1] = param_3;
*(int8 *)(param_1 + 2) = local_d8;
*(long *)(param_1 + 4) = lStack_d0;
*(bool *)(param_1 + 6) = 0x6000 < (uint)local_d8 && lStack_d0 != 0;
return param_1;
}
| |
37,860 | get_validators_from_cache | corpus-core[P]colibri-stateless/src/chains/eth/verifier/sync_committee_state.c | static c4_sync_state_t get_validators_from_cache(verify_ctx_t* ctx, uint32_t period) {
storage_plugin_t storage_conf = {0};
c4_chain_state_t chain_state = c4_get_chain_state(ctx->chain_id);
uint32_t last_period = 0;
#ifdef C4_STATIC_MEMORY
buffer_t validators = stack_buffer(sync_buffer);
#else
buffer_t validators = {0};
#ifdef BLS_DESERIALIZE
validators.allocated = 512 * 48 * 2;
#else
validators.allocated = 512 * 48;
#endif
#endif
bool found = false;
c4_get_storage_config(&storage_conf);
for (uint32_t i = 0; i < chain_state.len; i++) {
uint32_t p = chain_state.blocks[i].period;
if (p == period) found = true;
last_period = p > last_period && p <= period ? p : last_period;
}
#ifndef C4_STATIC_MEMORY
safe_free(chain_state.blocks);
#endif
char name[100];
sprintf(name, "sync_%" PRIu64 "_%d", (uint64_t) ctx->chain_id, period);
if (found && storage_conf.get) storage_conf.get(name, &validators);
#ifdef BLS_DESERIALIZE
if (validators.data.data && validators.data.len == 512 * 48) {
#ifdef C4_STATIC_MEMORY
memcpy(keys_48_buffer, validators.data.data, 512 * 48);
bytes_t b = blst_deserialize_p1_affine(validators.data.data, 512, sync_buffer);
#else
bytes_t b = blst_deserialize_p1_affine(validators.data.data, 512, NULL);
buffer_free(&validators);
#endif
validators.data = b;
storage_conf.set(name, b);
}
#endif
if (validators.data.len == 0) validators.data.data = NULL; // just to make sure we mark it as not found, even if we are using static memory
return (c4_sync_state_t) {
.deserialized = validators.data.data && validators.data.len > 512 * 48,
.current_period = period,
.last_period = last_period,
.validators = validators.data};
} | O3 | c | get_validators_from_cache:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %r13
movaps %xmm0, 0x10(%r13)
movaps %xmm0, (%r13)
movl 0x80(%rsi), %edi
callq 0x11370
movq %rax, %r15
movl %edx, %r12d
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movl $0xc000, 0x10(%rsp) # imm = 0xC000
movq %r13, %rdi
callq 0x166e0
testl %r12d, %r12d
je 0x11c74
movl %r12d, %eax
shlq $0x4, %rax
leaq (%rax,%rax,2), %rax
xorl %ecx, %ecx
xorl %edx, %edx
xorl %r12d, %r12d
movl %edx, %r13d
movl 0x28(%r15,%rcx), %esi
cmpl %edx, %esi
cmoval %esi, %r13d
cmpl %ebp, %esi
sete %sil
cmoval %edx, %r13d
orb %sil, %r12b
addq $0x30, %rcx
movl %r13d, %edx
cmpq %rcx, %rax
jne 0x11c4e
jmp 0x11c7a
xorl %r12d, %r12d
xorl %r13d, %r13d
movq %r15, %rdi
callq 0x125c0
movl 0x80(%r14), %edx
leaq 0x2d0d7(%rip), %rsi # 0x3ed67
leaq 0x40(%rsp), %rdi
movl %ebp, %ecx
xorl %eax, %eax
callq 0x5310
movq 0x20(%rsp), %rax
testq %rax, %rax
setne %cl
testb %cl, %r12b
je 0x11cb8
leaq 0x40(%rsp), %rdi
movq %rsp, %rsi
callq *%rax
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
setne %cl
movl (%rsp), %eax
cmpl $0x6000, %eax # imm = 0x6000
sete %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x11d0e
movl $0x200, %esi # imm = 0x200
xorl %edx, %edx
callq 0x16428
movl %eax, %r14d
movq %rdx, %r15
movq %rsp, %r12
movq %r12, %rdi
callq 0x12733
movl %r14d, (%r12)
movq %r15, 0x8(%r12)
leaq 0x40(%rsp), %rdi
movl %r14d, %esi
movq %r15, %rdx
callq *0x28(%rsp)
movl (%r12), %eax
testl %eax, %eax
je 0x11d1d
cmpq $0x0, 0x8(%rsp)
setne %cl
jmp 0x11d28
movq $0x0, 0x8(%rsp)
xorl %ecx, %ecx
movl %r13d, (%rbx)
movl %ebp, 0x4(%rbx)
movq (%rsp), %rdx
movq %rdx, 0x8(%rbx)
movq 0x8(%rsp), %rdx
movq %rdx, 0x10(%rbx)
cmpl $0x6001, %eax # imm = 0x6001
setae %al
andb %cl, %al
movb %al, 0x18(%rbx)
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| get_validators_from_cache:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0A8h
mov ebp, edx
mov r14, rsi
mov rbx, rdi
xorps xmm0, xmm0
lea r13, [rsp+0D8h+var_B8]
movaps xmmword ptr [r13+10h], xmm0
movaps xmmword ptr [r13+0], xmm0
mov edi, [rsi+80h]
call c4_get_chain_state
mov r15, rax
mov r12d, edx
xorps xmm0, xmm0
movaps [rsp+0D8h+var_D8], xmm0
mov [rsp+0D8h+var_C8], 0
mov dword ptr [rsp+0D8h+var_C8], 0C000h
mov rdi, r13
call c4_get_storage_config
test r12d, r12d
jz short loc_11C74
mov eax, r12d
shl rax, 4
lea rax, [rax+rax*2]
xor ecx, ecx
xor edx, edx
xor r12d, r12d
mov r13d, edx
loc_11C4E:
mov esi, [r15+rcx+28h]
cmp esi, edx
cmova r13d, esi
cmp esi, ebp
setz sil
cmova r13d, edx
or r12b, sil
add rcx, 30h ; '0'
mov edx, r13d
cmp rax, rcx
jnz short loc_11C4E
jmp short loc_11C7A
loc_11C74:
xor r12d, r12d
xor r13d, r13d
loc_11C7A:
mov rdi, r15
call safe_free
mov edx, [r14+80h]
lea rsi, aSyncLuD; "sync_%lu_%d"
lea rdi, [rsp+0D8h+var_98]
mov ecx, ebp
xor eax, eax
call _sprintf
mov rax, [rsp+0D8h+var_B8]
test rax, rax
setnz cl
test r12b, cl
jz short loc_11CB8
lea rdi, [rsp+0D8h+var_98]
mov rsi, rsp
call rax
loc_11CB8:
mov rdi, qword ptr [rsp+0D8h+var_D8+8]
test rdi, rdi
setnz cl
mov eax, dword ptr [rsp+0D8h+var_D8]
cmp eax, 6000h
setz dl
and dl, cl
cmp dl, 1
jnz short loc_11D0E
mov esi, 200h
xor edx, edx
call blst_deserialize_p1_affine
mov r14d, eax
mov r15, rdx
mov r12, rsp
mov rdi, r12
call buffer_free
mov [r12], r14d
mov [r12+8], r15
lea rdi, [rsp+0D8h+var_98]
mov esi, r14d
mov rdx, r15
call [rsp+0D8h+var_B0]
mov eax, [r12]
loc_11D0E:
test eax, eax
jz short loc_11D1D
cmp qword ptr [rsp+0D8h+var_D8+8], 0
setnz cl
jmp short loc_11D28
loc_11D1D:
mov qword ptr [rsp+0D8h+var_D8+8], 0
xor ecx, ecx
loc_11D28:
mov [rbx], r13d
mov [rbx+4], ebp
mov rdx, qword ptr [rsp+0D8h+var_D8]
mov [rbx+8], rdx
mov rdx, qword ptr [rsp+0D8h+var_D8+8]
mov [rbx+10h], rdx
cmp eax, 6001h
setnb al
and al, cl
mov [rbx+18h], al
add rsp, 0A8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| bool get_validators_from_cache(long long a1, long long a2, unsigned int a3)
{
long long chain_state; // r15
unsigned int v6; // edx
unsigned int v7; // r12d
long long v8; // rax
long long v9; // rcx
unsigned int v10; // edx
unsigned __int8 v11; // r12
unsigned int v12; // r13d
unsigned int v13; // esi
unsigned int v14; // eax
unsigned int v15; // r14d
long long v16; // rdx
long long v17; // r15
bool v18; // cl
bool result; // al
__int128 v20; // [rsp+0h] [rbp-D8h] BYREF
long long v21; // [rsp+10h] [rbp-C8h]
_QWORD v22[4]; // [rsp+20h] [rbp-B8h] BYREF
_BYTE v23[152]; // [rsp+40h] [rbp-98h] BYREF
memset(v22, 0, sizeof(v22));
chain_state = c4_get_chain_state(*(_DWORD *)(a2 + 128));
v7 = v6;
v20 = 0LL;
v21 = 49152LL;
c4_get_storage_config(v22);
if ( v7 )
{
v8 = 48LL * v7;
v9 = 0LL;
v10 = 0;
v11 = 0;
v12 = 0;
do
{
v13 = *(_DWORD *)(chain_state + v9 + 40);
if ( v13 > v10 )
v12 = *(_DWORD *)(chain_state + v9 + 40);
if ( v13 > a3 )
v12 = v10;
v11 |= v13 == a3;
v9 += 48LL;
v10 = v12;
}
while ( v8 != v9 );
}
else
{
v11 = 0;
v12 = 0;
}
safe_free(chain_state);
sprintf(v23, "sync_%lu_%d", *(unsigned int *)(a2 + 128), a3);
if ( ((v22[0] != 0LL) & v11) != 0 )
((void ( *)(_BYTE *, __int128 *))v22[0])(v23, &v20);
v14 = v20;
if ( *((_QWORD *)&v20 + 1) != 0LL && (_DWORD)v20 == 24576 )
{
v15 = blst_deserialize_p1_affine(*((_QWORD *)&v20 + 1), 512LL, 0LL);
v17 = v16;
buffer_free(&v20);
LODWORD(v20) = v15;
*((_QWORD *)&v20 + 1) = v17;
((void ( *)(_BYTE *, _QWORD, long long))v22[1])(v23, v15, v17);
v14 = v20;
}
if ( v14 )
{
v18 = *((_QWORD *)&v20 + 1) != 0LL;
}
else
{
*((_QWORD *)&v20 + 1) = 0LL;
v18 = 0;
}
*(_DWORD *)a1 = v12;
*(_DWORD *)(a1 + 4) = a3;
*(_OWORD *)(a1 + 8) = v20;
result = v18 && v14 >= 0x6001;
*(_BYTE *)(a1 + 24) = result;
return result;
}
| get_validators_from_cache:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xa8
MOV EBP,EDX
MOV R14,RSI
MOV RBX,RDI
XORPS XMM0,XMM0
LEA R13,[RSP + 0x20]
MOVAPS xmmword ptr [R13 + 0x10],XMM0
MOVAPS xmmword ptr [R13],XMM0
MOV EDI,dword ptr [RSI + 0x80]
CALL 0x00111370
MOV R15,RAX
MOV R12D,EDX
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
MOV qword ptr [RSP + 0x10],0x0
MOV dword ptr [RSP + 0x10],0xc000
MOV RDI,R13
CALL 0x001166e0
TEST R12D,R12D
JZ 0x00111c74
MOV EAX,R12D
SHL RAX,0x4
LEA RAX,[RAX + RAX*0x2]
XOR ECX,ECX
XOR EDX,EDX
XOR R12D,R12D
MOV R13D,EDX
LAB_00111c4e:
MOV ESI,dword ptr [R15 + RCX*0x1 + 0x28]
CMP ESI,EDX
CMOVA R13D,ESI
CMP ESI,EBP
SETZ SIL
CMOVA R13D,EDX
OR R12B,SIL
ADD RCX,0x30
MOV EDX,R13D
CMP RAX,RCX
JNZ 0x00111c4e
JMP 0x00111c7a
LAB_00111c74:
XOR R12D,R12D
XOR R13D,R13D
LAB_00111c7a:
MOV RDI,R15
CALL 0x001125c0
MOV EDX,dword ptr [R14 + 0x80]
LEA RSI,[0x13ed67]
LEA RDI,[RSP + 0x40]
MOV ECX,EBP
XOR EAX,EAX
CALL 0x00105310
MOV RAX,qword ptr [RSP + 0x20]
TEST RAX,RAX
SETNZ CL
TEST R12B,CL
JZ 0x00111cb8
LEA RDI,[RSP + 0x40]
MOV RSI,RSP
CALL RAX
LAB_00111cb8:
MOV RDI,qword ptr [RSP + 0x8]
TEST RDI,RDI
SETNZ CL
MOV EAX,dword ptr [RSP]
CMP EAX,0x6000
SETZ DL
AND DL,CL
CMP DL,0x1
JNZ 0x00111d0e
MOV ESI,0x200
XOR EDX,EDX
CALL 0x00116428
MOV R14D,EAX
MOV R15,RDX
MOV R12,RSP
MOV RDI,R12
CALL 0x00112733
MOV dword ptr [R12],R14D
MOV qword ptr [R12 + 0x8],R15
LEA RDI,[RSP + 0x40]
MOV ESI,R14D
MOV RDX,R15
CALL qword ptr [RSP + 0x28]
MOV EAX,dword ptr [R12]
LAB_00111d0e:
TEST EAX,EAX
JZ 0x00111d1d
CMP qword ptr [RSP + 0x8],0x0
SETNZ CL
JMP 0x00111d28
LAB_00111d1d:
MOV qword ptr [RSP + 0x8],0x0
XOR ECX,ECX
LAB_00111d28:
MOV dword ptr [RBX],R13D
MOV dword ptr [RBX + 0x4],EBP
MOV RDX,qword ptr [RSP]
MOV qword ptr [RBX + 0x8],RDX
MOV RDX,qword ptr [RSP + 0x8]
MOV qword ptr [RBX + 0x10],RDX
CMP EAX,0x6001
SETNC AL
AND AL,CL
MOV byte ptr [RBX + 0x18],AL
ADD RSP,0xa8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void get_validators_from_cache(uint *param_1,long param_2,uint param_3)
{
uint uVar1;
uint uVar2;
int4 uVar3;
long lVar4;
long extraout_RDX;
byte bVar5;
uint uVar6;
int1 auVar7 [16];
int8 local_d8;
long lStack_d0;
int8 local_c8;
code *local_b8;
code *pcStack_b0;
int8 local_a8;
int8 uStack_a0;
char local_98 [104];
local_a8 = 0;
uStack_a0 = 0;
local_b8 = (code *)0x0;
pcStack_b0 = (code *)0x0;
auVar7 = c4_get_chain_state(*(int4 *)(param_2 + 0x80));
local_d8 = 0;
lStack_d0 = 0;
local_c8 = 0xc000;
c4_get_storage_config(&local_b8);
if (auVar7._8_4_ == 0) {
bVar5 = 0;
uVar6 = 0;
}
else {
lVar4 = 0;
bVar5 = 0;
uVar6 = 0;
do {
uVar1 = *(uint *)((long)auVar7._0_8_ + lVar4 + 0x28);
uVar2 = uVar6;
if (uVar6 < uVar1) {
uVar2 = uVar1;
}
if (param_3 < uVar1) {
uVar2 = uVar6;
}
uVar6 = uVar2;
bVar5 = bVar5 | uVar1 == param_3;
lVar4 = lVar4 + 0x30;
} while ((auVar7._8_8_ & 0xffffffff) * 0x30 != lVar4);
}
safe_free(auVar7._0_8_);
sprintf(local_98,"sync_%lu_%d",(ulong)*(uint *)(param_2 + 0x80),(ulong)param_3);
if ((bool)(bVar5 & local_b8 != (code *)0x0)) {
(*local_b8)(local_98,&local_d8);
}
if ((uint)local_d8 == 0x6000 && lStack_d0 != 0) {
uVar3 = blst_deserialize_p1_affine(lStack_d0,0x200,0);
buffer_free(&local_d8);
local_d8 = CONCAT44(local_d8._4_4_,uVar3);
lStack_d0 = extraout_RDX;
(*pcStack_b0)(local_98,uVar3,extraout_RDX);
}
lVar4 = lStack_d0;
if ((uint)local_d8 == 0) {
lStack_d0 = 0;
}
*param_1 = uVar6;
param_1[1] = param_3;
*(int8 *)(param_1 + 2) = local_d8;
*(long *)(param_1 + 4) = lStack_d0;
*(bool *)(param_1 + 6) = 0x6000 < (uint)local_d8 && ((uint)local_d8 != 0 && lVar4 != 0);
return;
}
| |
37,861 | blst_pairing_merge | corpus-core[P]colibri-stateless/build_O2/_deps/blst-src/src/aggregate.c | BLST_ERROR blst_pairing_merge(PAIRING *ctx, const PAIRING *ctx1)
{
if ((ctx->ctrl & MIN_SIG_OR_PK) != AGGR_UNDEFINED
&& (ctx1->ctrl & MIN_SIG_OR_PK) != AGGR_UNDEFINED
&& (ctx->ctrl & ctx1->ctrl & MIN_SIG_OR_PK) == 0)
return BLST_AGGR_TYPE_MISMATCH;
/* context producers are expected to have called blst_pairing_commit */
if (ctx->nelems || ctx1->nelems)
return BLST_AGGR_TYPE_MISMATCH;
ctx->ctrl |= ctx1->ctrl & MIN_SIG_OR_PK;
switch (ctx->ctrl & MIN_SIG_OR_PK) {
case AGGR_MIN_SIG:
if (ctx->ctrl & ctx1->ctrl & AGGR_SIGN_SET) {
POINTonE1_dadd(&ctx->AggrSign.e1, &ctx->AggrSign.e1,
&ctx1->AggrSign.e1, NULL);
} else if (ctx1->ctrl & AGGR_SIGN_SET) {
ctx->ctrl |= AGGR_SIGN_SET;
vec_copy(&ctx->AggrSign.e1, &ctx1->AggrSign.e1,
sizeof(ctx->AggrSign.e1));
}
break;
case AGGR_MIN_PK:
if (ctx->ctrl & ctx1->ctrl & AGGR_SIGN_SET) {
POINTonE2_dadd(&ctx->AggrSign.e2, &ctx->AggrSign.e2,
&ctx1->AggrSign.e2, NULL);
} else if (ctx1->ctrl & AGGR_SIGN_SET) {
ctx->ctrl |= AGGR_SIGN_SET;
vec_copy(&ctx->AggrSign.e2, &ctx1->AggrSign.e2,
sizeof(ctx->AggrSign.e2));
}
break;
case AGGR_UNDEFINED:
break;
default:
return BLST_AGGR_TYPE_MISMATCH;
}
if (ctx->ctrl & ctx1->ctrl & AGGR_GT_SET) {
mul_fp12(ctx->GT, ctx->GT, ctx1->GT);
} else if (ctx1->ctrl & AGGR_GT_SET) {
ctx->ctrl |= AGGR_GT_SET;
vec_copy(ctx->GT, ctx1->GT, sizeof(ctx->GT));
}
return BLST_SUCCESS;
} | O2 | c | blst_pairing_merge:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl (%rdi), %eax
movl %eax, %ecx
pushq $0x4
popq %r15
andl $0x3, %ecx
je 0x57a3d
movl (%rbx), %edx
testb $0x3, %dl
setne %sil
testl %edx, %ecx
sete %cl
testb %cl, %sil
jne 0x57b3c
cmpl $0x0, 0x4(%r14)
jne 0x57b3c
cmpl $0x0, 0x4(%rbx)
jne 0x57b3c
movl (%rbx), %ecx
andl $0x3, %ecx
orl %eax, %ecx
movl %ecx, (%r14)
movl %ecx, %edx
andl $0x3, %edx
leaq 0x27eb8(%rip), %rsi # 0x7f920
movslq (%rsi,%rdx,4), %rdx
addq %rsi, %rdx
jmpq *%rdx
movl (%rbx), %edx
andl %edx, %eax
testb $0x10, %al
je 0x57ab1
movl $0x258, %edx # imm = 0x258
leaq (%r14,%rdx), %rdi
addq %rbx, %rdx
movq %rdi, %rsi
xorl %ecx, %ecx
callq 0x51a8a
jmp 0x57af0
movl (%rbx), %edx
andl %edx, %eax
testb $0x10, %al
je 0x57acf
movl $0x258, %edx # imm = 0x258
leaq (%r14,%rdx), %rdi
addq %rbx, %rdx
movq %rdi, %rsi
xorl %ecx, %ecx
callq 0x540e7
jmp 0x57af0
testb $0x10, %dl
je 0x57af0
orl $0x10, %ecx
movl %ecx, (%r14)
movl $0x258, %esi # imm = 0x258
leaq (%r14,%rsi), %rdi
addq %rbx, %rsi
movl $0x90, %edx
jmp 0x57aeb
testb $0x10, %dl
je 0x57af0
orl $0x10, %ecx
movl %ecx, (%r14)
movl $0x258, %esi # imm = 0x258
leaq (%r14,%rsi), %rdi
addq %rbx, %rsi
movl $0x120, %edx # imm = 0x120
callq 0x51055
movl (%r14), %eax
movl (%rbx), %ecx
andl $0x20, %ecx
testl %eax, %ecx
je 0x57b17
addq $0x18, %r14
addq $0x18, %rbx
movq %r14, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x55f2f
xorl %r15d, %r15d
jmp 0x57b3c
xorl %r15d, %r15d
testl %ecx, %ecx
je 0x57b3c
orl $0x20, %eax
movl %eax, (%r14)
addq $0x18, %r14
addq $0x18, %rbx
movl $0x240, %edx # imm = 0x240
movq %r14, %rdi
movq %rbx, %rsi
callq 0x51055
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| blst_pairing_merge:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rsi
mov r14, rdi
mov eax, [rdi]
mov ecx, eax
push 4
pop r15
and ecx, 3
jz short loc_57A3D
mov edx, [rbx]
test dl, 3
setnz sil
test ecx, edx
setz cl
test sil, cl
jnz loc_57B3C; jumptable 0000000000057A6F case 3
loc_57A3D:
cmp dword ptr [r14+4], 0
jnz loc_57B3C; jumptable 0000000000057A6F case 3
cmp dword ptr [rbx+4], 0
jnz loc_57B3C; jumptable 0000000000057A6F case 3
mov ecx, [rbx]
and ecx, 3
or ecx, eax
mov [r14], ecx
mov edx, ecx
and edx, 3
lea rsi, jpt_57A6F
movsxd rdx, ds:(jpt_57A6F - 7F920h)[rsi+rdx*4]; switch 4 cases
add rdx, rsi
jmp rdx; switch jump
loc_57A71:
mov edx, [rbx]; jumptable 0000000000057A6F case 1
and eax, edx
test al, 10h
jz short loc_57AB1
mov edx, 258h
lea rdi, [r14+rdx]
add rdx, rbx
mov rsi, rdi
xor ecx, ecx
call POINTonE1_dadd
jmp short loc_57AF0; jumptable 0000000000057A6F case 0
loc_57A91:
mov edx, [rbx]; jumptable 0000000000057A6F case 2
and eax, edx
test al, 10h
jz short loc_57ACF
mov edx, 258h
lea rdi, [r14+rdx]
add rdx, rbx
mov rsi, rdi
xor ecx, ecx
call POINTonE2_dadd
jmp short loc_57AF0; jumptable 0000000000057A6F case 0
loc_57AB1:
test dl, 10h
jz short loc_57AF0; jumptable 0000000000057A6F case 0
or ecx, 10h
mov [r14], ecx
mov esi, 258h
lea rdi, [r14+rsi]
add rsi, rbx
mov edx, 90h
jmp short loc_57AEB
loc_57ACF:
test dl, 10h
jz short loc_57AF0; jumptable 0000000000057A6F case 0
or ecx, 10h
mov [r14], ecx
mov esi, 258h
lea rdi, [r14+rsi]
add rsi, rbx
mov edx, 120h
loc_57AEB:
call vec_copy
loc_57AF0:
mov eax, [r14]; jumptable 0000000000057A6F case 0
mov ecx, [rbx]
and ecx, 20h
test ecx, eax
jz short loc_57B17
add r14, 18h
add rbx, 18h
mov rdi, r14
mov rsi, r14
mov rdx, rbx
call mul_fp12
xor r15d, r15d
jmp short loc_57B3C; jumptable 0000000000057A6F case 3
loc_57B17:
xor r15d, r15d
test ecx, ecx
jz short loc_57B3C; jumptable 0000000000057A6F case 3
or eax, 20h
mov [r14], eax
add r14, 18h
add rbx, 18h
mov edx, 240h
mov rdi, r14
mov rsi, rbx
call vec_copy
loc_57B3C:
mov eax, r15d; jumptable 0000000000057A6F case 3
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| long long blst_pairing_merge(int *a1, _DWORD *a2)
{
int v4; // eax
unsigned int v5; // r15d
int v6; // ecx
long long v7; // rdi
long long v8; // rsi
unsigned long long v9; // rdx
int v10; // ecx
v4 = *a1;
v5 = 4;
if ( ((*a1 & 3) == 0 || (*a2 & *a1 & 3) != 0 || (*a2 & 3) == 0) && !a1[1] && !a2[1] )
{
v6 = v4 | *a2 & 3;
*a1 = v6;
switch ( v6 & 3 )
{
case 0:
goto LABEL_15;
case 1:
if ( ((unsigned __int8)*a2 & (unsigned __int8)v4 & 0x10) != 0 )
{
POINTonE1_dadd((long long)(a1 + 150), (long long)(a1 + 150), (long long)(a2 + 150), 0LL);
goto LABEL_15;
}
if ( (*a2 & 0x10) == 0 )
goto LABEL_15;
*a1 = v6 | 0x10;
v7 = (long long)(a1 + 150);
v8 = (long long)(a2 + 150);
v9 = 144LL;
goto LABEL_14;
case 2:
if ( ((unsigned __int8)*a2 & (unsigned __int8)v4 & 0x10) != 0 )
{
POINTonE2_dadd((long long)(a1 + 150), (long long)(a1 + 150), (long long)(a2 + 150), 0LL);
}
else if ( (*a2 & 0x10) != 0 )
{
*a1 = v6 | 0x10;
v7 = (long long)(a1 + 150);
v8 = (long long)(a2 + 150);
v9 = 288LL;
LABEL_14:
vec_copy(v7, v8, v9);
}
LABEL_15:
v10 = *a2 & 0x20;
if ( (*a1 & v10) != 0 )
{
mul_fp12((long long)(a1 + 6), (long long)(a1 + 6), (long long)(a2 + 6));
v5 = 0;
}
else
{
v5 = 0;
if ( v10 )
{
*a1 |= 0x20u;
vec_copy((long long)(a1 + 6), (long long)(a2 + 6), 0x240uLL);
}
}
break;
case 3:
return v5;
}
}
return v5;
}
| blst_pairing_merge:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R14,RDI
MOV EAX,dword ptr [RDI]
MOV ECX,EAX
PUSH 0x4
POP R15
AND ECX,0x3
JZ 0x00157a3d
MOV EDX,dword ptr [RBX]
TEST DL,0x3
SETNZ SIL
TEST ECX,EDX
SETZ CL
TEST SIL,CL
JNZ 0x00157b3c
LAB_00157a3d:
CMP dword ptr [R14 + 0x4],0x0
JNZ 0x00157b3c
CMP dword ptr [RBX + 0x4],0x0
JNZ 0x00157b3c
MOV ECX,dword ptr [RBX]
AND ECX,0x3
OR ECX,EAX
MOV dword ptr [R14],ECX
MOV EDX,ECX
AND EDX,0x3
LEA RSI,[0x17f920]
MOVSXD RDX,dword ptr [RSI + RDX*0x4]
ADD RDX,RSI
JMP RDX
LAB_00157b3c:
MOV EAX,R15D
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
int8 blst_pairing_merge(uint *param_1,uint *param_2)
{
uint uVar1;
uint uVar2;
int8 uVar3;
uVar1 = *param_1;
if (((((uVar1 & 3) == 0) || ((*param_2 & 3) == 0 || (uVar1 & 3 & *param_2) != 0)) &&
(param_1[1] == 0)) && (param_2[1] == 0)) {
uVar2 = *param_2;
*param_1 = uVar2 & 3 | uVar1;
/* WARNING: Could not recover jumptable at 0x00157a6f. Too many branches */
/* WARNING: Treating indirect jump as call */
uVar3 = (*(code *)(&DAT_0017f920 + *(int *)(&DAT_0017f920 + (ulong)(uVar2 & 3 | uVar1 & 3) * 4))
)(param_1,&DAT_0017f920,
&DAT_0017f920 + *(int *)(&DAT_0017f920 + (ulong)(uVar2 & 3 | uVar1 & 3) * 4));
return uVar3;
}
return 4;
}
| |
37,862 | cmdline::create(int, char**) | untodesu[P]voxelius/core/cmdline.cc | void cmdline::create(int argc, char **argv)
{
for(int idx = 1; idx < argc; ++idx) {
std::string string = argv[idx];
if(!is_option_string(string)) {
spdlog::warn("cmdline: non-argument at {}: {}", idx, string);
continue;
}
auto option_string = get_option(string);
auto next_idx = idx + 1;
if(next_idx < argc) {
std::string argument = argv[next_idx];
if(!is_option_string(argument)) {
options.insert_or_assign(option_string, argument);
idx = next_idx;
continue;
}
}
// The option is either last or has no
// argument (happens when there is a valid
// option right next to the one we're parsing)
options.insert_or_assign(option_string, std::string());
}
} | O1 | cpp | cmdline::create(int, char**):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movl $0x1, 0x18(%rsp)
cmpl $0x2, %edi
jl 0x502e8
movq %rsi, %r15
movl %edi, %ebp
leaq 0x50(%rsp), %r13
leaq 0x30(%rsp), %rbx
movl $0x1, %eax
leaq 0x78(%rsp), %r12
leaq 0x68(%rsp), %r14
movq %rsi, 0x60(%rsp)
cltq
movq (%r15,%rax,8), %rsi
movq %r14, %rdi
leaq 0x40(%rsp), %rdx
callq 0x1ccb6
movq %r14, %rdi
movl $0x2d, %esi
movq $-0x1, %rdx
callq 0x17e10
movq 0x70(%rsp), %rcx
leaq -0x1(%rcx), %rdx
cmpq %rdx, %rax
jae 0x501b1
movq 0x68(%rsp), %rax
cmpb $0x2d, (%rax)
jne 0x501b1
movq 0x68(%rsp), %rdx
leaq -0x1(%rdx), %rsi
cmpb $0x2d, 0x1(%rsi)
leaq 0x1(%rsi), %rsi
je 0x50135
addq %rcx, %rdx
movq %r13, %r15
movq %r13, 0x40(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x50744
movslq 0x18(%rsp), %rax
leal 0x1(%rax), %r13d
cmpl %ebp, %r13d
jge 0x50258
movq 0x60(%rsp), %rcx
movq 0x8(%rcx,%rax,8), %rsi
leaq 0x20(%rsp), %r12
movq %r12, %rdi
leaq 0x1f(%rsp), %rdx
callq 0x1ccb6
movq %r12, %rdi
movl $0x2d, %esi
movq $-0x1, %rdx
callq 0x17e10
movq 0x28(%rsp), %rcx
decq %rcx
cmpq %rcx, %rax
jae 0x50200
movq 0x20(%rsp), %rax
cmpb $0x2d, (%rax)
sete %r12b
jmp 0x50203
callq 0x8395b
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
movq 0x50(%rsp), %rcx
movq %rcx, 0x10(%rsp)
movaps 0x40(%rsp), %xmm0
movups %xmm0, (%rsp)
movl $0x1f, %ecx
movq %rax, %rdi
movl $0x3, %esi
leaq 0x6f738(%rip), %rdx # 0xbf926
leaq 0x18(%rsp), %r8
movq %r14, %r9
callq 0x507b8
jmp 0x502bf
xorl %r12d, %r12d
testb %r12b, %r12b
je 0x50221
movq 0x20(%rsp), %rdi
cmpq %rbx, %rdi
je 0x50258
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x176b0
jmp 0x50258
leaq 0xbb9f8(%rip), %rdi # 0x10bc20
leaq 0x40(%rsp), %rsi
leaq 0x20(%rsp), %rdx
callq 0x5056e
movl %r13d, 0x18(%rsp)
movq 0x20(%rsp), %rdi
cmpq %rbx, %rdi
je 0x50253
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x176b0
testb %r12b, %r12b
je 0x5029b
movq %rbx, %r12
movq %rbx, 0x20(%rsp)
movq $0x0, 0x28(%rsp)
movb $0x0, 0x30(%rsp)
leaq 0xbb9ab(%rip), %rdi # 0x10bc20
leaq 0x40(%rsp), %rsi
leaq 0x20(%rsp), %rdx
callq 0x505a6
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x5029b
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x176b0
movq 0x40(%rsp), %rdi
movq %r15, %r13
cmpq %r15, %rdi
je 0x502b5
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x176b0
leaq 0x78(%rsp), %r12
movq 0x60(%rsp), %r15
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x502d6
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x176b0
movl 0x18(%rsp), %eax
incl %eax
movl %eax, 0x18(%rsp)
cmpl %ebp, %eax
jl 0x500e5
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x20(%rsp), %rdi
cmpq %rbx, %rdi
jne 0x5031b
jmp 0x50328
movq %rax, %r14
jmp 0x50328
movq %rax, %r14
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x50328
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x176b0
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x50346
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x176b0
jmp 0x50346
jmp 0x50343
movq %rax, %r14
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x50362
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x176b0
movq %r14, %rdi
callq 0x17c80
| _ZN7cmdline6createEiPPc:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 88h
mov [rsp+0B8h+var_A0], 1
cmp edi, 2
jl loc_502E8
mov r15, rsi
mov ebp, edi
lea r13, [rsp+0B8h+var_68]
lea rbx, [rsp+0B8h+var_88]
mov eax, 1
lea r12, [rsp+0B8h+var_40]
lea r14, [rsp+0B8h+var_50]
mov [rsp+0B8h+var_58], rsi
loc_500E5:
cdqe
mov rsi, [r15+rax*8]
mov rdi, r14
lea rdx, [rsp+0B8h+var_78]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, r14; this
mov esi, 2Dh ; '-'
mov rdx, 0FFFFFFFFFFFFFFFFh
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5rfindEcm; std::string::rfind(char,ulong)
mov rcx, [rsp+0B8h+var_48]
lea rdx, [rcx-1]
cmp rax, rdx
jnb loc_501B1
mov rax, [rsp+0B8h+var_50]
cmp byte ptr [rax], 2Dh ; '-'
jnz loc_501B1
mov rdx, [rsp+0B8h+var_50]
lea rsi, [rdx-1]
loc_50135:
cmp byte ptr [rsi+1], 2Dh ; '-'
lea rsi, [rsi+1]
jz short loc_50135
add rdx, rcx
mov r15, r13
mov [rsp+0B8h+var_78], r13
lea rdi, [rsp+0B8h+var_78]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIN9__gnu_cxx17__normal_iteratorIPKcS4_EEEEvT_SB_St20forward_iterator_tag; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::forward_iterator_tag)
movsxd rax, [rsp+0B8h+var_A0]
lea r13d, [rax+1]
cmp r13d, ebp
jge loc_50258
mov rcx, [rsp+0B8h+var_58]
mov rsi, [rcx+rax*8+8]
lea r12, [rsp+0B8h+var_98]
mov rdi, r12
lea rdx, [rsp+0B8h+var_99]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, r12
mov esi, 2Dh ; '-'
mov rdx, 0FFFFFFFFFFFFFFFFh
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5rfindEcm; std::string::rfind(char,ulong)
mov rcx, [rsp+0B8h+var_90]
dec rcx
cmp rax, rcx
jnb short loc_50200
mov rax, [rsp+0B8h+var_98]
cmp byte ptr [rax], 2Dh ; '-'
setz r12b
jmp short loc_50203
loc_501B1:
call _ZN6spdlog18default_logger_rawEv; spdlog::default_logger_raw(void)
xorps xmm0, xmm0
movaps xmmword ptr [rsp+0B8h+var_78], xmm0
mov [rsp+0B8h+var_68], 0
mov rcx, [rsp+0B8h+var_68]
mov [rsp+0B8h+var_A8], rcx
movaps xmm0, xmmword ptr [rsp+0B8h+var_78]
movups [rsp+0B8h+var_B8], xmm0
mov ecx, 1Fh
mov rdi, rax
mov esi, 3
lea rdx, aCmdlineNonArgu; "cmdline: non-argument at {}: {}"
lea r8, [rsp+0B8h+var_A0]
mov r9, r14
call _ZN6spdlog6logger4log_IJRiRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvNS_10source_locENS_5level10level_enumEN3fmt3v1117basic_string_viewIcEEDpOT_; spdlog::logger::log_<int &,std::string &>(spdlog::source_loc,spdlog::level::level_enum,fmt::v11::basic_string_view<char>,int &,std::string &)
jmp loc_502BF
loc_50200:
xor r12d, r12d
loc_50203:
test r12b, r12b
jz short loc_50221
mov rdi, [rsp+0B8h+var_98]; void *
cmp rdi, rbx
jz short loc_50258
mov rsi, [rsp+0B8h+var_88]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_50258
loc_50221:
lea rdi, _ZL7optionsB5cxx11; options
lea rsi, [rsp+0B8h+var_78]
lea rdx, [rsp+0B8h+var_98]
call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S5_EEE16insert_or_assignIRS5_EESA_INSt8__detail14_Node_iteratorISC_Lb0ELb1EEEbERSB_OT_; std::unordered_map<std::string,std::string>::insert_or_assign<std::string&>(std::string const&,std::string&)
mov [rsp+0B8h+var_A0], r13d
mov rdi, [rsp+0B8h+var_98]; void *
cmp rdi, rbx
jz short loc_50253
mov rsi, [rsp+0B8h+var_88]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_50253:
test r12b, r12b
jz short loc_5029B
loc_50258:
mov r12, rbx
mov [rsp+0B8h+var_98], rbx
mov [rsp+0B8h+var_90], 0
mov byte ptr [rsp+0B8h+var_88], 0
lea rdi, _ZL7optionsB5cxx11; options
lea rsi, [rsp+0B8h+var_78]
lea rdx, [rsp+0B8h+var_98]
call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S5_EEE16insert_or_assignIS5_EESA_INSt8__detail14_Node_iteratorISC_Lb0ELb1EEEbERSB_OT_; std::unordered_map<std::string,std::string>::insert_or_assign<std::string>(std::string const&,std::string &&)
mov rdi, [rsp+0B8h+var_98]; void *
cmp rdi, r12
jz short loc_5029B
mov rsi, [rsp+0B8h+var_88]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5029B:
mov rdi, [rsp+0B8h+var_78]; void *
mov r13, r15
cmp rdi, r15
jz short loc_502B5
mov rsi, [rsp+0B8h+var_68]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_502B5:
lea r12, [rsp+0B8h+var_40]
mov r15, [rsp+0B8h+var_58]
loc_502BF:
mov rdi, [rsp+0B8h+var_50]; void *
cmp rdi, r12
jz short loc_502D6
mov rsi, [rsp+0B8h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_502D6:
mov eax, [rsp+0B8h+var_A0]
inc eax
mov [rsp+0B8h+var_A0], eax
cmp eax, ebp
jl loc_500E5
loc_502E8:
add rsp, 88h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r14, rax
mov rdi, [rsp+arg_18]
cmp rdi, rbx
jnz short loc_5031B
jmp short loc_50328
mov r14, rax
jmp short loc_50328
mov r14, rax
mov rdi, [rsp+arg_18]; void *
cmp rdi, r12
jz short loc_50328
loc_5031B:
mov rsi, [rsp+arg_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_50328:
mov rdi, [rsp+arg_38]; void *
cmp rdi, r15
jz short loc_50346
mov rsi, [rsp+arg_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_50346
jmp short $+2
loc_50343:
mov r14, rax
loc_50346:
mov rdi, [rsp+arg_60]; void *
lea rax, [rsp+arg_70]
cmp rdi, rax
jz short loc_50362
mov rsi, [rsp+arg_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_50362:
mov rdi, r14
call __Unwind_Resume
| void cmdline::create(cmdline *this, long long a2, char **a3)
{
long long v3; // r15
long long *v4; // r13
int v5; // eax
unsigned long long v6; // rax
char *v7; // rsi
long long *v9; // r15
int v10; // r13d
unsigned long long v11; // rax
int v13; // eax
int v14; // [rsp+18h] [rbp-A0h] BYREF
void *v15; // [rsp+20h] [rbp-98h] BYREF
long long v16; // [rsp+28h] [rbp-90h]
_QWORD v17[2]; // [rsp+30h] [rbp-88h] BYREF
void *v18[2]; // [rsp+40h] [rbp-78h] BYREF
long long v19; // [rsp+50h] [rbp-68h] BYREF
long long v20; // [rsp+60h] [rbp-58h]
void *v21; // [rsp+68h] [rbp-50h] BYREF
long long v22; // [rsp+70h] [rbp-48h]
long long v23; // [rsp+78h] [rbp-40h] BYREF
v14 = 1;
if ( (int)this >= 2 )
{
v3 = a2;
v4 = &v19;
v5 = 1;
v20 = a2;
while ( 1 )
{
std::string::basic_string<std::allocator<char>>(&v21, *(_QWORD *)(v3 + 8LL * v5));
v6 = std::string::rfind(&v21, 45LL, -1LL);
if ( v6 < v22 - 1 && *(_BYTE *)v21 == 45 )
break;
v13 = spdlog::default_logger_raw((spdlog *)&v21);
*(_OWORD *)v18 = 0LL;
v19 = 0LL;
spdlog::logger::log_<int &,std::string &>(
v13,
3,
(unsigned int)"cmdline: non-argument at {}: {}",
31,
(unsigned int)&v14,
(unsigned int)&v21,
0LL,
0LL,
0LL);
LABEL_23:
if ( v21 != &v23 )
operator delete(v21, v23 + 1);
v5 = v14 + 1;
v14 = v5;
if ( v5 >= (int)this )
return;
}
v7 = (char *)v21 - 1;
while ( *++v7 == 45 )
;
v9 = v4;
v18[0] = v4;
std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(v18, v7, (char *)v21 + v22);
v10 = v14 + 1;
if ( v14 + 1 < (int)this )
{
std::string::basic_string<std::allocator<char>>(&v15, *(_QWORD *)(v20 + 8LL * v14 + 8));
v11 = std::string::rfind(&v15, 45LL, -1LL);
if ( v11 >= v16 - 1 || *(_BYTE *)v15 != 45 )
{
std::unordered_map<std::string,std::string>::insert_or_assign<std::string&>(&options[abi:cxx11], v18, &v15);
v14 = v10;
if ( v15 != v17 )
operator delete(v15, v17[0] + 1LL);
goto LABEL_20;
}
if ( v15 != v17 )
operator delete(v15, v17[0] + 1LL);
}
v15 = v17;
v16 = 0LL;
LOBYTE(v17[0]) = 0;
std::unordered_map<std::string,std::string>::insert_or_assign<std::string>(&options[abi:cxx11], v18, &v15);
if ( v15 != v17 )
operator delete(v15, v17[0] + 1LL);
LABEL_20:
v4 = v9;
if ( v18[0] != v9 )
operator delete(v18[0], v19 + 1);
v3 = v20;
goto LABEL_23;
}
}
| create:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x88
MOV dword ptr [RSP + 0x18],0x1
CMP EDI,0x2
JL 0x001502e8
MOV R15,RSI
MOV EBP,EDI
LEA R13,[RSP + 0x50]
LEA RBX,[RSP + 0x30]
MOV EAX,0x1
LEA R12,[RSP + 0x78]
LEA R14,[RSP + 0x68]
MOV qword ptr [RSP + 0x60],RSI
LAB_001500e5:
CDQE
MOV RSI,qword ptr [R15 + RAX*0x8]
MOV RDI,R14
LEA RDX,[RSP + 0x40]
CALL 0x0011ccb6
MOV RDI,R14
MOV ESI,0x2d
MOV RDX,-0x1
CALL 0x00117e10
MOV RCX,qword ptr [RSP + 0x70]
LEA RDX,[RCX + -0x1]
CMP RAX,RDX
JNC 0x001501b1
MOV RAX,qword ptr [RSP + 0x68]
CMP byte ptr [RAX],0x2d
JNZ 0x001501b1
MOV RDX,qword ptr [RSP + 0x68]
LEA RSI,[RDX + -0x1]
LAB_00150135:
CMP byte ptr [RSI + 0x1],0x2d
LEA RSI,[RSI + 0x1]
JZ 0x00150135
ADD RDX,RCX
MOV R15,R13
MOV qword ptr [RSP + 0x40],R13
LAB_0015014a:
LEA RDI,[RSP + 0x40]
CALL 0x00150744
MOVSXD RAX,dword ptr [RSP + 0x18]
LEA R13D,[RAX + 0x1]
CMP R13D,EBP
JGE 0x00150258
MOV RCX,qword ptr [RSP + 0x60]
MOV RSI,qword ptr [RCX + RAX*0x8 + 0x8]
LAB_00150170:
LEA R12,[RSP + 0x20]
MOV RDI,R12
LEA RDX,[RSP + 0x1f]
CALL 0x0011ccb6
MOV RDI,R12
MOV ESI,0x2d
MOV RDX,-0x1
CALL 0x00117e10
MOV RCX,qword ptr [RSP + 0x28]
DEC RCX
CMP RAX,RCX
JNC 0x00150200
MOV RAX,qword ptr [RSP + 0x20]
CMP byte ptr [RAX],0x2d
SETZ R12B
JMP 0x00150203
LAB_001501b1:
CALL 0x0018395b
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x40],XMM0
MOV qword ptr [RSP + 0x50],0x0
MOV RCX,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0x10],RCX
MOVAPS XMM0,xmmword ptr [RSP + 0x40]
MOVUPS xmmword ptr [RSP],XMM0
MOV ECX,0x1f
MOV RDI,RAX
MOV ESI,0x3
LEA RDX,[0x1bf926]
LEA R8,[RSP + 0x18]
MOV R9,R14
CALL 0x001507b8
JMP 0x001502bf
LAB_00150200:
XOR R12D,R12D
LAB_00150203:
TEST R12B,R12B
JZ 0x00150221
MOV RDI,qword ptr [RSP + 0x20]
CMP RDI,RBX
JZ 0x00150258
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x001176b0
JMP 0x00150258
LAB_00150221:
LEA RDI,[0x20bc20]
LEA RSI,[RSP + 0x40]
LEA RDX,[RSP + 0x20]
CALL 0x0015056e
MOV dword ptr [RSP + 0x18],R13D
MOV RDI,qword ptr [RSP + 0x20]
CMP RDI,RBX
JZ 0x00150253
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x001176b0
LAB_00150253:
TEST R12B,R12B
JZ 0x0015029b
LAB_00150258:
MOV R12,RBX
MOV qword ptr [RSP + 0x20],RBX
MOV qword ptr [RSP + 0x28],0x0
MOV byte ptr [RSP + 0x30],0x0
LAB_0015026e:
LEA RDI,[0x20bc20]
LEA RSI,[RSP + 0x40]
LEA RDX,[RSP + 0x20]
CALL 0x001505a6
LAB_00150284:
MOV RDI,qword ptr [RSP + 0x20]
CMP RDI,R12
JZ 0x0015029b
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x001176b0
LAB_0015029b:
MOV RDI,qword ptr [RSP + 0x40]
MOV R13,R15
CMP RDI,R15
JZ 0x001502b5
MOV RSI,qword ptr [RSP + 0x50]
INC RSI
CALL 0x001176b0
LAB_001502b5:
LEA R12,[RSP + 0x78]
MOV R15,qword ptr [RSP + 0x60]
LAB_001502bf:
MOV RDI,qword ptr [RSP + 0x68]
CMP RDI,R12
JZ 0x001502d6
MOV RSI,qword ptr [RSP + 0x78]
INC RSI
CALL 0x001176b0
LAB_001502d6:
MOV EAX,dword ptr [RSP + 0x18]
INC EAX
MOV dword ptr [RSP + 0x18],EAX
CMP EAX,EBP
JL 0x001500e5
LAB_001502e8:
ADD RSP,0x88
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* cmdline::create(int, char**) */
void cmdline::create(int param_1,char **param_2)
{
char *pcVar1;
ulong uVar2;
int8 uVar3;
char *pcVar4;
int iVar5;
bool bVar6;
int local_a0;
allocator local_99;
char *local_98;
long local_90;
char local_88;
int7 uStack_87;
long *local_78;
int8 uStack_70;
long local_68 [2];
char **local_58;
long *local_50;
long local_48;
long local_40 [2];
local_a0 = 1;
if (1 < param_1) {
local_58 = param_2;
do {
std::__cxx11::string::string<std::allocator<char>>
((string *)&local_50,param_2[local_a0],(allocator *)&local_78);
uVar2 = std::__cxx11::string::rfind((char)(string *)&local_50,0x2d);
if ((uVar2 < local_48 - 1U) && ((char)*local_50 == '-')) {
pcVar4 = (char *)((long)local_50 + -1);
do {
pcVar1 = pcVar4 + 1;
pcVar4 = pcVar4 + 1;
} while (*pcVar1 == '-');
/* try { // try from 0015014a to 00150153 has its CatchHandler @ 00150341 */
local_78 = local_68;
std::__cxx11::string::
_M_construct<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>
(&local_78,pcVar4,(char *)((long)local_50 + local_48));
iVar5 = local_a0 + 1;
if (iVar5 < param_1) {
/* try { // try from 00150170 to 00150181 has its CatchHandler @ 00150309 */
std::__cxx11::string::string<std::allocator<char>>
((string *)&local_98,local_58[(long)local_a0 + 1],&local_99);
uVar2 = std::__cxx11::string::rfind((char)(string *)&local_98,0x2d);
if (uVar2 < local_90 - 1U) {
bVar6 = *local_98 == '-';
}
else {
bVar6 = false;
}
if (bVar6) {
if (local_98 != &local_88) {
operator_delete(local_98,CONCAT71(uStack_87,local_88) + 1);
}
goto LAB_00150258;
}
/* try { // try from 00150221 to 00150236 has its CatchHandler @ 001502fa */
std::
unordered_map<std::__cxx11::string,std::__cxx11::string,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
::insert_or_assign<std::__cxx11::string&>
((unordered_map<std::__cxx11::string,std::__cxx11::string,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
*)options_abi_cxx11_,(string *)&local_78,(string *)&local_98);
local_a0 = iVar5;
if (local_98 != &local_88) {
operator_delete(local_98,CONCAT71(uStack_87,local_88) + 1);
}
}
else {
LAB_00150258:
local_90 = 0;
local_88 = '\0';
/* try { // try from 0015026e to 00150283 has its CatchHandler @ 0015030e */
local_98 = &local_88;
std::
unordered_map<std::__cxx11::string,std::__cxx11::string,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
::insert_or_assign<std::__cxx11::string>
((unordered_map<std::__cxx11::string,std::__cxx11::string,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
*)options_abi_cxx11_,(string *)&local_78,(string *)&local_98);
if (local_98 != &local_88) {
operator_delete(local_98,CONCAT71(uStack_87,local_88) + 1);
}
}
param_2 = local_58;
if (local_78 != local_68) {
operator_delete(local_78,local_68[0] + 1);
param_2 = local_58;
}
}
else {
/* try { // try from 001501b1 to 001501fa has its CatchHandler @ 00150343 */
uVar3 = spdlog::default_logger_raw();
local_78 = (long *)0x0;
uStack_70 = 0;
local_68[0] = 0;
spdlog::logger::log_<int&,std::__cxx11::string&>
(uVar3,3,"cmdline: non-argument at {}: {}",0x1f,&local_a0,(string *)&local_50,0,0,
0);
}
if (local_50 != local_40) {
operator_delete(local_50,local_40[0] + 1);
}
local_a0 = local_a0 + 1;
} while (local_a0 < param_1);
}
return;
}
| |
37,863 | cmdline::create(int, char**) | untodesu[P]voxelius/core/cmdline.cc | void cmdline::create(int argc, char **argv)
{
for(int idx = 1; idx < argc; ++idx) {
std::string string = argv[idx];
if(!is_option_string(string)) {
spdlog::warn("cmdline: non-argument at {}: {}", idx, string);
continue;
}
auto option_string = get_option(string);
auto next_idx = idx + 1;
if(next_idx < argc) {
std::string argument = argv[next_idx];
if(!is_option_string(argument)) {
options.insert_or_assign(option_string, argument);
idx = next_idx;
continue;
}
}
// The option is either last or has no
// argument (happens when there is a valid
// option right next to the one we're parsing)
options.insert_or_assign(option_string, std::string());
}
} | O2 | cpp | cmdline::create(int, char**):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movl %edi, %ebp
pushq $0x1
popq %rax
leaq 0x48(%rsp), %r14
leaq 0x28(%rsp), %r15
leaq 0x8(%rsp), %r12
movl %eax, (%rsp)
cmpl %ebp, %eax
jge 0x4d14e
cltq
movq (%rbx,%rax,8), %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x190fa
movq %r14, %rdi
callq 0x4d194
testb %al, %al
je 0x4d0ff
movq 0x48(%rsp), %rdx
leaq -0x1(%rdx), %rsi
cmpb $0x2d, 0x1(%rsi)
leaq 0x1(%rsi), %rsi
je 0x4d082
addq 0x50(%rsp), %rdx
leaq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movq %r15, %rdi
callq 0x4d524
movslq (%rsp), %rax
leal 0x1(%rax), %r13d
cmpl %ebp, %r13d
jge 0x4d0d6
movq 0x8(%rbx,%rax,8), %rsi
movq %r12, %rdi
leaq 0x7(%rsp), %rdx
callq 0x190fa
movq %r12, %rdi
callq 0x4d194
testb %al, %al
je 0x4d116
movq %r12, %rdi
callq 0x17ec8
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
andq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
leaq 0xc1b7e(%rip), %rdi # 0x10ec70
movq %r15, %rsi
movq %r12, %rdx
callq 0x4d3a8
jmp 0x4d12c
leaq 0x62a04(%rip), %rdi # 0xafb0a
pushq $0x1f
popq %rsi
movq %rsp, %rdx
movq %r14, %rcx
callq 0x4d337
jmp 0x4d13c
leaq 0xc1b53(%rip), %rdi # 0x10ec70
movq %r15, %rsi
movq %r12, %rdx
callq 0x4d370
movl %r13d, (%rsp)
movq %r12, %rdi
callq 0x17ec8
movq %r15, %rdi
callq 0x17ec8
movq %r14, %rdi
callq 0x17ec8
movl (%rsp), %eax
incl %eax
jmp 0x4d04d
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4d164
movq %rax, %rbx
jmp 0x4d171
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x17ec8
leaq 0x28(%rsp), %rdi
callq 0x17ec8
jmp 0x4d182
jmp 0x4d17f
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x17ec8
movq %rbx, %rdi
callq 0x17cd0
| _ZN7cmdline6createEiPPc:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
mov rbx, rsi
mov ebp, edi
push 1
pop rax
lea r14, [rsp+98h+var_50]
lea r15, [rsp+98h+var_70]
lea r12, [rsp+98h+var_90]
loc_4D04D:
mov [rsp+98h+var_98], eax
cmp eax, ebp
jge loc_4D14E
cdqe
mov rsi, [rbx+rax*8]
mov rdi, r14
mov rdx, r15
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, r14
call _ZL16is_option_stringRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; is_option_string(std::string const&)
test al, al
jz loc_4D0FF
mov rdx, [rsp+98h+var_50]
lea rsi, [rdx-1]
loc_4D082:
cmp byte ptr [rsi+1], 2Dh ; '-'
lea rsi, [rsi+1]
jz short loc_4D082
add rdx, [rsp+98h+var_48]
lea rax, [rsp+98h+var_60]
mov [rsp+98h+var_70], rax
mov rdi, r15
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIN9__gnu_cxx17__normal_iteratorIPKcS4_EEEEvT_SB_St20forward_iterator_tag; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::forward_iterator_tag)
movsxd rax, [rsp+98h+var_98]
lea r13d, [rax+1]
cmp r13d, ebp
jge short loc_4D0D6
mov rsi, [rbx+rax*8+8]
mov rdi, r12
lea rdx, [rsp+98h+var_91]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, r12
call _ZL16is_option_stringRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; is_option_string(std::string const&)
test al, al
jz short loc_4D116
mov rdi, r12; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_4D0D6:
lea rax, [rsp+98h+var_80]
mov [rsp+98h+var_90], rax
and [rsp+98h+var_88], 0
mov [rsp+98h+var_80], 0
lea rdi, _ZL7optionsB5cxx11; options
mov rsi, r15
mov rdx, r12
call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S5_EEE16insert_or_assignIS5_EESA_INSt8__detail14_Node_iteratorISC_Lb0ELb1EEEbERSB_OT_; std::unordered_map<std::string,std::string>::insert_or_assign<std::string>(std::string const&,std::string &&)
jmp short loc_4D12C
loc_4D0FF:
lea rdi, aCmdlineNonArgu; "cmdline: non-argument at {}: {}"
push 1Fh
pop rsi
mov rdx, rsp
mov rcx, r14
call _ZN6spdlog4warnIJRiRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvN3fmt3v1119basic_format_stringIcJDpNSA_13type_identityIT_E4typeEEEEDpOSD_; spdlog::warn<int &,std::string &>(fmt::v11::basic_format_string<char,fmt::v11::type_identity<int &,std::string &>::type>,int &,std::string &&&)
jmp short loc_4D13C
loc_4D116:
lea rdi, _ZL7optionsB5cxx11; options
mov rsi, r15
mov rdx, r12
call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S5_EEE16insert_or_assignIRS5_EESA_INSt8__detail14_Node_iteratorISC_Lb0ELb1EEEbERSB_OT_; std::unordered_map<std::string,std::string>::insert_or_assign<std::string&>(std::string const&,std::string&)
mov [rsp+98h+var_98], r13d
loc_4D12C:
mov rdi, r12; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r15; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_4D13C:
mov rdi, r14; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov eax, [rsp+98h+var_98]
inc eax
jmp loc_4D04D
loc_4D14E:
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_4D164
mov rbx, rax
jmp short loc_4D171
loc_4D164:
mov rbx, rax
lea rdi, [rsp+arg_0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_4D171:
lea rdi, [rsp+arg_20]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_4D182
jmp short $+2
loc_4D17F:
mov rbx, rax
loc_4D182:
lea rdi, [rsp+arg_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, rbx
call __Unwind_Resume
| long long cmdline::create(cmdline *this, long long a2, char **a3)
{
long long result; // rax
long long v5; // rsi
int v7; // r13d
int v8; // [rsp+0h] [rbp-98h] BYREF
_QWORD v9[2]; // [rsp+8h] [rbp-90h] BYREF
char v10; // [rsp+18h] [rbp-80h] BYREF
_QWORD v11[2]; // [rsp+28h] [rbp-70h] BYREF
char v12; // [rsp+38h] [rbp-60h] BYREF
_QWORD v13[10]; // [rsp+48h] [rbp-50h] BYREF
for ( result = 1LL; ; result = (unsigned int)(v8 + 1) )
{
v8 = result;
if ( (int)result >= (int)this )
break;
std::string::basic_string<std::allocator<char>>(v13, *(_QWORD *)(a2 + 8LL * (int)result));
if ( !(unsigned __int8)is_option_string(v13) )
{
spdlog::warn<int &,std::string &>("cmdline: non-argument at {}: {}", 31LL, &v8, v13);
goto LABEL_13;
}
v5 = v13[0] - 1LL;
while ( *(_BYTE *)++v5 == 45 )
;
v11[0] = &v12;
std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(v11, v5, v13[1] + v13[0]);
v7 = v8 + 1;
if ( v8 + 1 < (int)this )
{
std::string::basic_string<std::allocator<char>>(v9, *(_QWORD *)(a2 + 8LL * v8 + 8));
if ( !(unsigned __int8)is_option_string(v9) )
{
std::unordered_map<std::string,std::string>::insert_or_assign<std::string&>(&options[abi:cxx11], v11, v9);
v8 = v7;
goto LABEL_12;
}
std::string::~string(v9);
}
v9[0] = &v10;
v9[1] = 0LL;
v10 = 0;
std::unordered_map<std::string,std::string>::insert_or_assign<std::string>(&options[abi:cxx11], v11, v9);
LABEL_12:
std::string::~string(v9);
std::string::~string(v11);
LABEL_13:
std::string::~string(v13);
}
return result;
}
| create:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV RBX,RSI
MOV EBP,EDI
PUSH 0x1
POP RAX
LEA R14,[RSP + 0x48]
LEA R15,[RSP + 0x28]
LEA R12,[RSP + 0x8]
LAB_0014d04d:
MOV dword ptr [RSP],EAX
CMP EAX,EBP
JGE 0x0014d14e
CDQE
MOV RSI,qword ptr [RBX + RAX*0x8]
MOV RDI,R14
MOV RDX,R15
CALL 0x001190fa
MOV RDI,R14
CALL 0x0014d194
TEST AL,AL
JZ 0x0014d0ff
MOV RDX,qword ptr [RSP + 0x48]
LEA RSI,[RDX + -0x1]
LAB_0014d082:
CMP byte ptr [RSI + 0x1],0x2d
LEA RSI,[RSI + 0x1]
JZ 0x0014d082
ADD RDX,qword ptr [RSP + 0x50]
LEA RAX,[RSP + 0x38]
MOV qword ptr [RSP + 0x28],RAX
LAB_0014d09b:
MOV RDI,R15
CALL 0x0014d524
MOVSXD RAX,dword ptr [RSP]
LEA R13D,[RAX + 0x1]
CMP R13D,EBP
JGE 0x0014d0d6
MOV RSI,qword ptr [RBX + RAX*0x8 + 0x8]
LAB_0014d0b5:
MOV RDI,R12
LEA RDX,[RSP + 0x7]
CALL 0x001190fa
MOV RDI,R12
CALL 0x0014d194
TEST AL,AL
JZ 0x0014d116
MOV RDI,R12
CALL 0x00117ec8
LAB_0014d0d6:
LEA RAX,[RSP + 0x18]
MOV qword ptr [RSP + 0x8],RAX
AND qword ptr [RSP + 0x10],0x0
MOV byte ptr [RSP + 0x18],0x0
LAB_0014d0eb:
LEA RDI,[0x20ec70]
MOV RSI,R15
MOV RDX,R12
CALL 0x0014d3a8
JMP 0x0014d12c
LAB_0014d0ff:
LEA RDI,[0x1afb0a]
PUSH 0x1f
POP RSI
MOV RDX,RSP
MOV RCX,R14
CALL 0x0014d337
JMP 0x0014d13c
LAB_0014d116:
LEA RDI,[0x20ec70]
MOV RSI,R15
MOV RDX,R12
CALL 0x0014d370
LAB_0014d128:
MOV dword ptr [RSP],R13D
LAB_0014d12c:
MOV RDI,R12
CALL 0x00117ec8
MOV RDI,R15
CALL 0x00117ec8
LAB_0014d13c:
MOV RDI,R14
CALL 0x00117ec8
MOV EAX,dword ptr [RSP]
INC EAX
JMP 0x0014d04d
LAB_0014d14e:
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* cmdline::create(int, char**) */
void cmdline::create(int param_1,char **param_2)
{
char *pcVar1;
char cVar2;
long lVar3;
int iVar4;
int local_98;
allocator local_91;
int1 *local_90;
int8 local_88;
int1 local_80 [16];
int1 *local_70 [2];
int1 local_60 [16];
long local_50;
long local_48;
local_98 = 1;
do {
if (param_1 <= local_98) {
return;
}
std::__cxx11::string::string<std::allocator<char>>
((string *)&local_50,param_2[local_98],(allocator *)local_70);
cVar2 = is_option_string((string *)&local_50);
if (cVar2 == '\0') {
/* try { // try from 0014d0ff to 0014d113 has its CatchHandler @ 0014d17d */
spdlog::warn<int&,std::__cxx11::string&>
((spdlog *)"cmdline: non-argument at {}: {}",0x1f,&local_98,(string *)&local_50);
}
else {
lVar3 = local_50 + -1;
do {
pcVar1 = (char *)(lVar3 + 1);
lVar3 = lVar3 + 1;
} while (*pcVar1 == '-');
local_70[0] = local_60;
/* try { // try from 0014d09b to 0014d0a2 has its CatchHandler @ 0014d17f */
std::__cxx11::string::
_M_construct<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>
((string *)local_70,lVar3,local_50 + local_48);
iVar4 = local_98 + 1;
if (iVar4 < param_1) {
/* try { // try from 0014d0b5 to 0014d0c1 has its CatchHandler @ 0014d15f */
std::__cxx11::string::string<std::allocator<char>>
((string *)&local_90,param_2[(long)local_98 + 1],&local_91);
cVar2 = is_option_string((string *)&local_90);
if (cVar2 != '\0') {
std::__cxx11::string::~string((string *)&local_90);
goto LAB_0014d0d6;
}
/* try { // try from 0014d116 to 0014d127 has its CatchHandler @ 0014d15d */
std::
unordered_map<std::__cxx11::string,std::__cxx11::string,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
::insert_or_assign<std::__cxx11::string&>
((unordered_map<std::__cxx11::string,std::__cxx11::string,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
*)options_abi_cxx11_,(string *)local_70,(string *)&local_90);
local_98 = iVar4;
}
else {
LAB_0014d0d6:
local_90 = local_80;
local_88 = 0;
local_80[0] = 0;
/* try { // try from 0014d0eb to 0014d0fc has its CatchHandler @ 0014d164 */
std::
unordered_map<std::__cxx11::string,std::__cxx11::string,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
::insert_or_assign<std::__cxx11::string>
((unordered_map<std::__cxx11::string,std::__cxx11::string,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
*)options_abi_cxx11_,(string *)local_70,(string *)&local_90);
}
std::__cxx11::string::~string((string *)&local_90);
std::__cxx11::string::~string((string *)local_70);
}
std::__cxx11::string::~string((string *)&local_50);
local_98 = local_98 + 1;
} while( true );
}
| |
37,864 | cmdline::create(int, char**) | untodesu[P]voxelius/core/cmdline.cc | void cmdline::create(int argc, char **argv)
{
for(int idx = 1; idx < argc; ++idx) {
std::string string = argv[idx];
if(!is_option_string(string)) {
spdlog::warn("cmdline: non-argument at {}: {}", idx, string);
continue;
}
auto option_string = get_option(string);
auto next_idx = idx + 1;
if(next_idx < argc) {
std::string argument = argv[next_idx];
if(!is_option_string(argument)) {
options.insert_or_assign(option_string, argument);
idx = next_idx;
continue;
}
}
// The option is either last or has no
// argument (happens when there is a valid
// option right next to the one we're parsing)
options.insert_or_assign(option_string, std::string());
}
} | O3 | cpp | cmdline::create(int, char**):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rsi, 0x60(%rsp)
movl $0x1, 0x18(%rsp)
cmpl $0x2, %edi
jl 0x4f637
movl %edi, %ebp
movl $0x1, %eax
leaq 0x78(%rsp), %r13
leaq 0x68(%rsp), %r14
leaq 0x40(%rsp), %rbx
leaq 0xba7fc(%rip), %r12 # 0x109c30
cltq
movq 0x60(%rsp), %rcx
movq (%rcx,%rax,8), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x1b480
movq %r14, %rdi
movl $0x2d, %esi
movq $-0x1, %rdx
callq 0x16e20
movq 0x70(%rsp), %rcx
leaq -0x1(%rcx), %rdx
cmpq %rdx, %rax
jae 0x4f568
movq 0x68(%rsp), %rdx
cmpb $0x2d, (%rdx)
jne 0x4f568
leaq -0x1(%rdx), %rsi
cmpb $0x2d, 0x1(%rsi)
leaq 0x1(%rsi), %rsi
je 0x4f482
addq %rcx, %rdx
leaq 0x50(%rsp), %rax
movq %rax, 0x40(%rsp)
movq %rbx, %rdi
callq 0x4fa9c
movslq 0x18(%rsp), %rax
leal 0x1(%rax), %r13d
cmpl %ebp, %r13d
jge 0x4f51b
movq %r12, %r15
movq 0x60(%rsp), %rcx
movq 0x8(%rcx,%rax,8), %rsi
leaq 0x20(%rsp), %r12
movq %r12, %rdi
leaq 0x1f(%rsp), %rdx
callq 0x1b480
movq %r12, %rdi
movl $0x2d, %esi
movq $-0x1, %rdx
callq 0x16e20
movq 0x28(%rsp), %rcx
decq %rcx
cmpq %rcx, %rax
jae 0x4f5dd
movq 0x20(%rsp), %rdi
cmpb $0x2d, (%rdi)
jne 0x4f5dd
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
movq %r15, %r12
je 0x4f51b
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x166c0
leaq 0x30(%rsp), %r13
movq %r13, 0x20(%rsp)
movq $0x0, 0x28(%rsp)
movb $0x0, 0x30(%rsp)
movq %r12, %rdi
movq %rbx, %rsi
leaq 0x20(%rsp), %rdx
callq 0x4f8fe
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
leaq 0x78(%rsp), %r13
je 0x4f616
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x166c0
jmp 0x4f616
callq 0x81f86
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
movq 0x50(%rsp), %rcx
movq %rcx, 0x10(%rsp)
movaps 0x40(%rsp), %xmm0
movups %xmm0, (%rsp)
movl $0x1f, %ecx
movq %rax, %rdi
movl $0x3, %esi
leaq 0x6f421(%rip), %rdx # 0xbe9c6
leaq 0x18(%rsp), %r8
movq %r14, %r9
callq 0x4fb16
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x4f5c9
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x166c0
movl 0x18(%rsp), %eax
incl %eax
movl %eax, 0x18(%rsp)
cmpl %ebp, %eax
jl 0x4f434
jmp 0x4f637
movq %r15, %r12
movq %r15, %rdi
movq %rbx, %rsi
leaq 0x20(%rsp), %rdx
callq 0x4f8c6
movl %r13d, 0x18(%rsp)
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x4f611
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x166c0
leaq 0x78(%rsp), %r13
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x4f5b2
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x166c0
jmp 0x4f5b2
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
jne 0x4f66f
jmp 0x4f67c
movq %rax, %rbx
jmp 0x4f67c
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x4f67c
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x166c0
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x4f69f
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x166c0
jmp 0x4f69f
jmp 0x4f69c
movq %rax, %rbx
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x4f6bb
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x166c0
movq %rbx, %rdi
callq 0x16c90
| _ZN7cmdline6createEiPPc:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 88h
mov [rsp+0B8h+var_58], rsi
mov [rsp+0B8h+var_A0], 1
cmp edi, 2
jl loc_4F637
mov ebp, edi
mov eax, 1
lea r13, [rsp+0B8h+var_40]
lea r14, [rsp+0B8h+var_50]
lea rbx, [rsp+0B8h+var_78]
lea r12, _ZL7optionsB5cxx11; options
loc_4F434:
cdqe
mov rcx, [rsp+0B8h+var_58]
mov rsi, [rcx+rax*8]
mov rdi, r14
mov rdx, rbx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, r14; this
mov esi, 2Dh ; '-'
mov rdx, 0FFFFFFFFFFFFFFFFh
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5rfindEcm; std::string::rfind(char,ulong)
mov rcx, [rsp+0B8h+var_48]
lea rdx, [rcx-1]
cmp rax, rdx
jnb loc_4F568
mov rdx, [rsp+0B8h+var_50]
cmp byte ptr [rdx], 2Dh ; '-'
jnz loc_4F568
lea rsi, [rdx-1]
loc_4F482:
cmp byte ptr [rsi+1], 2Dh ; '-'
lea rsi, [rsi+1]
jz short loc_4F482
add rdx, rcx
lea rax, [rsp+0B8h+var_68]
mov [rsp+0B8h+var_78], rax
mov rdi, rbx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIN9__gnu_cxx17__normal_iteratorIPKcS4_EEEEvT_SB_St20forward_iterator_tag; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::forward_iterator_tag)
movsxd rax, [rsp+0B8h+var_A0]
lea r13d, [rax+1]
cmp r13d, ebp
jge short loc_4F51B
mov r15, r12
mov rcx, [rsp+0B8h+var_58]
mov rsi, [rcx+rax*8+8]
lea r12, [rsp+0B8h+var_98]
mov rdi, r12
lea rdx, [rsp+0B8h+var_99]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, r12
mov esi, 2Dh ; '-'
mov rdx, 0FFFFFFFFFFFFFFFFh
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5rfindEcm; std::string::rfind(char,ulong)
mov rcx, [rsp+0B8h+var_90]
dec rcx
cmp rax, rcx
jnb loc_4F5DD
mov rdi, [rsp+0B8h+var_98]; void *
cmp byte ptr [rdi], 2Dh ; '-'
jnz loc_4F5DD
lea rax, [rsp+0B8h+var_88]
cmp rdi, rax
mov r12, r15
jz short loc_4F51B
mov rsi, [rsp+0B8h+var_88]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4F51B:
lea r13, [rsp+0B8h+var_88]
mov [rsp+0B8h+var_98], r13
mov [rsp+0B8h+var_90], 0
mov byte ptr [rsp+0B8h+var_88], 0
mov rdi, r12
mov rsi, rbx
lea rdx, [rsp+0B8h+var_98]
call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S5_EEE16insert_or_assignIS5_EESA_INSt8__detail14_Node_iteratorISC_Lb0ELb1EEEbERSB_OT_; std::unordered_map<std::string,std::string>::insert_or_assign<std::string>(std::string const&,std::string &&)
mov rdi, [rsp+0B8h+var_98]; void *
cmp rdi, r13
lea r13, [rsp+0B8h+var_40]
jz loc_4F616
mov rsi, [rsp+0B8h+var_88]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp loc_4F616
loc_4F568:
call _ZN6spdlog18default_logger_rawEv; spdlog::default_logger_raw(void)
xorps xmm0, xmm0
movaps xmmword ptr [rsp+0B8h+var_78], xmm0
mov [rsp+0B8h+var_68], 0
mov rcx, [rsp+0B8h+var_68]
mov [rsp+0B8h+var_A8], rcx
movaps xmm0, xmmword ptr [rsp+0B8h+var_78]
movups [rsp+0B8h+var_B8], xmm0
mov ecx, 1Fh
mov rdi, rax
mov esi, 3
lea rdx, aCmdlineNonArgu; "cmdline: non-argument at {}: {}"
lea r8, [rsp+0B8h+var_A0]
mov r9, r14
call _ZN6spdlog6logger4log_IJRiRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvNS_10source_locENS_5level10level_enumEN3fmt3v1117basic_string_viewIcEEDpOT_; spdlog::logger::log_<int &,std::string &>(spdlog::source_loc,spdlog::level::level_enum,fmt::v11::basic_string_view<char>,int &,std::string &)
loc_4F5B2:
mov rdi, [rsp+0B8h+var_50]; void *
cmp rdi, r13
jz short loc_4F5C9
mov rsi, [rsp+0B8h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4F5C9:
mov eax, [rsp+0B8h+var_A0]
inc eax
mov [rsp+0B8h+var_A0], eax
cmp eax, ebp
jl loc_4F434
jmp short loc_4F637
loc_4F5DD:
mov r12, r15
mov rdi, r15
mov rsi, rbx
lea rdx, [rsp+0B8h+var_98]
call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S5_EEE16insert_or_assignIRS5_EESA_INSt8__detail14_Node_iteratorISC_Lb0ELb1EEEbERSB_OT_; std::unordered_map<std::string,std::string>::insert_or_assign<std::string&>(std::string const&,std::string&)
mov [rsp+0B8h+var_A0], r13d
mov rdi, [rsp+0B8h+var_98]; void *
lea rax, [rsp+0B8h+var_88]
cmp rdi, rax
jz short loc_4F611
mov rsi, [rsp+0B8h+var_88]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4F611:
lea r13, [rsp+0B8h+var_40]
loc_4F616:
mov rdi, [rsp+0B8h+var_78]; void *
lea rax, [rsp+0B8h+var_68]
cmp rdi, rax
jz short loc_4F5B2
mov rsi, [rsp+0B8h+var_68]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp loc_4F5B2
loc_4F637:
add rsp, 88h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
mov rdi, [rsp+arg_18]
lea rax, [rsp+arg_28]
cmp rdi, rax
jnz short loc_4F66F
jmp short loc_4F67C
mov rbx, rax
jmp short loc_4F67C
mov rbx, rax
mov rdi, [rsp+arg_18]; void *
cmp rdi, r13
jz short loc_4F67C
loc_4F66F:
mov rsi, [rsp+arg_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4F67C:
mov rdi, [rsp+arg_38]; void *
lea rax, [rsp+arg_48]
cmp rdi, rax
jz short loc_4F69F
mov rsi, [rsp+arg_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_4F69F
jmp short $+2
loc_4F69C:
mov rbx, rax
loc_4F69F:
mov rdi, [rsp+arg_60]; void *
lea rax, [rsp+arg_70]
cmp rdi, rax
jz short loc_4F6BB
mov rsi, [rsp+arg_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4F6BB:
mov rdi, rbx
call __Unwind_Resume
| void cmdline::create(cmdline *this, long long a2, char **a3)
{
int v3; // eax
unsigned long long v4; // rax
char *v5; // rsi
int v7; // r13d
unsigned long long v8; // rax
int v9; // eax
int v10; // [rsp+18h] [rbp-A0h] BYREF
void *v11; // [rsp+20h] [rbp-98h] BYREF
long long v12; // [rsp+28h] [rbp-90h]
_QWORD v13[2]; // [rsp+30h] [rbp-88h] BYREF
void *v14[2]; // [rsp+40h] [rbp-78h] BYREF
_QWORD v15[2]; // [rsp+50h] [rbp-68h] BYREF
long long v16; // [rsp+60h] [rbp-58h]
void *v17; // [rsp+68h] [rbp-50h] BYREF
long long v18; // [rsp+70h] [rbp-48h]
long long v19; // [rsp+78h] [rbp-40h] BYREF
v16 = a2;
v10 = 1;
if ( (int)this >= 2 )
{
v3 = 1;
while ( 1 )
{
std::string::basic_string<std::allocator<char>>(&v17, *(_QWORD *)(v16 + 8LL * v3));
v4 = std::string::rfind(&v17, 45LL, -1LL);
if ( v4 < v18 - 1 && *(_BYTE *)v17 == 45 )
break;
v9 = spdlog::default_logger_raw((spdlog *)&v17);
*(_OWORD *)v14 = 0LL;
v15[0] = 0LL;
spdlog::logger::log_<int &,std::string &>(
v9,
3,
(unsigned int)"cmdline: non-argument at {}: {}",
31,
(unsigned int)&v10,
(unsigned int)&v17,
0LL,
0LL,
0LL);
LABEL_15:
if ( v17 != &v19 )
operator delete(v17, v19 + 1);
v3 = v10 + 1;
v10 = v3;
if ( v3 >= (int)this )
return;
}
v5 = (char *)v17 - 1;
while ( *++v5 == 45 )
;
v14[0] = v15;
std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(v14, v5, (char *)v17 + v18);
v7 = v10 + 1;
if ( v10 + 1 < (int)this )
{
std::string::basic_string<std::allocator<char>>(&v11, *(_QWORD *)(v16 + 8LL * v10 + 8));
v8 = std::string::rfind(&v11, 45LL, -1LL);
if ( v8 >= v12 - 1 || *(_BYTE *)v11 != 45 )
{
std::unordered_map<std::string,std::string>::insert_or_assign<std::string&>(&options[abi:cxx11], v14, &v11);
v10 = v7;
if ( v11 == v13 )
goto LABEL_21;
goto LABEL_20;
}
if ( v11 != v13 )
operator delete(v11, v13[0] + 1LL);
}
v11 = v13;
v12 = 0LL;
LOBYTE(v13[0]) = 0;
std::unordered_map<std::string,std::string>::insert_or_assign<std::string>(&options[abi:cxx11], v14, &v11);
if ( v11 == v13 )
goto LABEL_21;
LABEL_20:
operator delete(v11, v13[0] + 1LL);
LABEL_21:
if ( v14[0] != v15 )
operator delete(v14[0], v15[0] + 1LL);
goto LABEL_15;
}
}
| create:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x88
MOV qword ptr [RSP + 0x60],RSI
MOV dword ptr [RSP + 0x18],0x1
CMP EDI,0x2
JL 0x0014f637
MOV EBP,EDI
MOV EAX,0x1
LEA R13,[RSP + 0x78]
LEA R14,[RSP + 0x68]
LEA RBX,[RSP + 0x40]
LEA R12,[0x209c30]
LAB_0014f434:
CDQE
MOV RCX,qword ptr [RSP + 0x60]
MOV RSI,qword ptr [RCX + RAX*0x8]
MOV RDI,R14
MOV RDX,RBX
CALL 0x0011b480
MOV RDI,R14
MOV ESI,0x2d
MOV RDX,-0x1
CALL 0x00116e20
MOV RCX,qword ptr [RSP + 0x70]
LEA RDX,[RCX + -0x1]
CMP RAX,RDX
JNC 0x0014f568
MOV RDX,qword ptr [RSP + 0x68]
CMP byte ptr [RDX],0x2d
JNZ 0x0014f568
LEA RSI,[RDX + -0x1]
LAB_0014f482:
CMP byte ptr [RSI + 0x1],0x2d
LEA RSI,[RSI + 0x1]
JZ 0x0014f482
ADD RDX,RCX
LEA RAX,[RSP + 0x50]
MOV qword ptr [RSP + 0x40],RAX
LAB_0014f499:
MOV RDI,RBX
CALL 0x0014fa9c
MOVSXD RAX,dword ptr [RSP + 0x18]
LEA R13D,[RAX + 0x1]
CMP R13D,EBP
JGE 0x0014f51b
MOV R15,R12
MOV RCX,qword ptr [RSP + 0x60]
MOV RSI,qword ptr [RCX + RAX*0x8 + 0x8]
LAB_0014f4bc:
LEA R12,[RSP + 0x20]
MOV RDI,R12
LEA RDX,[RSP + 0x1f]
CALL 0x0011b480
MOV RDI,R12
MOV ESI,0x2d
MOV RDX,-0x1
CALL 0x00116e20
MOV RCX,qword ptr [RSP + 0x28]
DEC RCX
CMP RAX,RCX
JNC 0x0014f5dd
MOV RDI,qword ptr [RSP + 0x20]
CMP byte ptr [RDI],0x2d
JNZ 0x0014f5dd
LEA RAX,[RSP + 0x30]
CMP RDI,RAX
MOV R12,R15
JZ 0x0014f51b
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x001166c0
LAB_0014f51b:
LEA R13,[RSP + 0x30]
MOV qword ptr [RSP + 0x20],R13
MOV qword ptr [RSP + 0x28],0x0
MOV byte ptr [RSP + 0x30],0x0
LAB_0014f533:
MOV RDI,R12
MOV RSI,RBX
LEA RDX,[RSP + 0x20]
CALL 0x0014f8fe
MOV RDI,qword ptr [RSP + 0x20]
CMP RDI,R13
LEA R13,[RSP + 0x78]
JZ 0x0014f616
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x001166c0
JMP 0x0014f616
LAB_0014f568:
CALL 0x00181f86
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x40],XMM0
MOV qword ptr [RSP + 0x50],0x0
MOV RCX,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0x10],RCX
MOVAPS XMM0,xmmword ptr [RSP + 0x40]
MOVUPS xmmword ptr [RSP],XMM0
MOV ECX,0x1f
MOV RDI,RAX
MOV ESI,0x3
LEA RDX,[0x1be9c6]
LEA R8,[RSP + 0x18]
MOV R9,R14
CALL 0x0014fb16
LAB_0014f5b2:
MOV RDI,qword ptr [RSP + 0x68]
CMP RDI,R13
JZ 0x0014f5c9
MOV RSI,qword ptr [RSP + 0x78]
INC RSI
CALL 0x001166c0
LAB_0014f5c9:
MOV EAX,dword ptr [RSP + 0x18]
INC EAX
MOV dword ptr [RSP + 0x18],EAX
CMP EAX,EBP
JL 0x0014f434
JMP 0x0014f637
LAB_0014f5dd:
MOV R12,R15
MOV RDI,R15
MOV RSI,RBX
LEA RDX,[RSP + 0x20]
CALL 0x0014f8c6
LAB_0014f5f0:
MOV dword ptr [RSP + 0x18],R13D
MOV RDI,qword ptr [RSP + 0x20]
LEA RAX,[RSP + 0x30]
CMP RDI,RAX
JZ 0x0014f611
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x001166c0
LAB_0014f611:
LEA R13,[RSP + 0x78]
LAB_0014f616:
MOV RDI,qword ptr [RSP + 0x40]
LEA RAX,[RSP + 0x50]
CMP RDI,RAX
JZ 0x0014f5b2
MOV RSI,qword ptr [RSP + 0x50]
INC RSI
CALL 0x001166c0
JMP 0x0014f5b2
LAB_0014f637:
ADD RSP,0x88
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* cmdline::create(int, char**) */
void cmdline::create(int param_1,char **param_2)
{
char *pcVar1;
ulong uVar2;
int8 uVar3;
char *pcVar4;
int iVar5;
int local_a0;
allocator local_99;
char *local_98;
long local_90;
char local_88;
int7 uStack_87;
long *local_78;
int8 uStack_70;
long local_68 [2];
char **local_58;
long *local_50;
long local_48;
long local_40 [2];
local_a0 = 1;
if (1 < param_1) {
local_58 = param_2;
do {
std::__cxx11::string::string<std::allocator<char>>
((string *)&local_50,local_58[local_a0],(allocator *)&local_78);
uVar2 = std::__cxx11::string::rfind((char)(string *)&local_50,0x2d);
if ((uVar2 < local_48 - 1U) && ((char)*local_50 == '-')) {
pcVar4 = (char *)((long)local_50 + -1);
do {
pcVar1 = pcVar4 + 1;
pcVar4 = pcVar4 + 1;
} while (*pcVar1 == '-');
local_78 = local_68;
/* try { // try from 0014f499 to 0014f4a0 has its CatchHandler @ 0014f69a */
std::__cxx11::string::
_M_construct<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>
((string *)&local_78,pcVar4,(char *)((long)local_50 + local_48));
iVar5 = local_a0 + 1;
if (iVar5 < param_1) {
/* try { // try from 0014f4bc to 0014f4cd has its CatchHandler @ 0014f65d */
std::__cxx11::string::string<std::allocator<char>>
((string *)&local_98,local_58[(long)local_a0 + 1],&local_99);
uVar2 = std::__cxx11::string::rfind((char)(string *)&local_98,0x2d);
if ((uVar2 < local_90 - 1U) && (*local_98 == '-')) {
if (local_98 != &local_88) {
operator_delete(local_98,CONCAT71(uStack_87,local_88) + 1);
}
goto LAB_0014f51b;
}
/* try { // try from 0014f5dd to 0014f5ef has its CatchHandler @ 0014f649 */
std::
unordered_map<std::__cxx11::string,std::__cxx11::string,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
::insert_or_assign<std::__cxx11::string&>
((unordered_map<std::__cxx11::string,std::__cxx11::string,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
*)options_abi_cxx11_,(string *)&local_78,(string *)&local_98);
local_a0 = iVar5;
if (local_98 != &local_88) {
operator_delete(local_98,CONCAT71(uStack_87,local_88) + 1);
}
}
else {
LAB_0014f51b:
local_90 = 0;
local_88 = '\0';
/* try { // try from 0014f533 to 0014f542 has its CatchHandler @ 0014f662 */
local_98 = &local_88;
std::
unordered_map<std::__cxx11::string,std::__cxx11::string,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
::insert_or_assign<std::__cxx11::string>
((unordered_map<std::__cxx11::string,std::__cxx11::string,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
*)options_abi_cxx11_,(string *)&local_78,(string *)&local_98);
if (local_98 != &local_88) {
operator_delete(local_98,CONCAT71(uStack_87,local_88) + 1);
}
}
if (local_78 != local_68) {
operator_delete(local_78,local_68[0] + 1);
}
}
else {
/* try { // try from 0014f568 to 0014f5b1 has its CatchHandler @ 0014f69c */
uVar3 = spdlog::default_logger_raw();
local_78 = (long *)0x0;
uStack_70 = 0;
local_68[0] = 0;
spdlog::logger::log_<int&,std::__cxx11::string&>
(uVar3,3,"cmdline: non-argument at {}: {}",0x1f,&local_a0,(string *)&local_50,0,0,
0);
}
if (local_50 != local_40) {
operator_delete(local_50,local_40[0] + 1);
}
local_a0 = local_a0 + 1;
} while (local_a0 < param_1);
}
return;
}
| |
37,865 | stbi__free_jpeg_components(stbi__jpeg*, int, int) | 7CodeWizard[P]stablediffusion/thirdparty/stb_image.h | static int stbi__free_jpeg_components(stbi__jpeg *z, int ncomp, int why)
{
int i;
for (i=0; i < ncomp; ++i) {
if (z->img_comp[i].raw_data) {
STBI_FREE(z->img_comp[i].raw_data);
z->img_comp[i].raw_data = NULL;
z->img_comp[i].data = NULL;
}
if (z->img_comp[i].raw_coeff) {
STBI_FREE(z->img_comp[i].raw_coeff);
z->img_comp[i].raw_coeff = 0;
z->img_comp[i].coeff = 0;
}
if (z->img_comp[i].linebuf) {
STBI_FREE(z->img_comp[i].linebuf);
z->img_comp[i].linebuf = NULL;
}
}
return why;
} | O0 | c | stbi__free_jpeg_components(stbi__jpeg*, int, int):
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movl %esi, 0xc(%rsp)
movl %edx, 0x8(%rsp)
movl $0x0, 0x4(%rsp)
movl 0x4(%rsp), %eax
cmpl 0xc(%rsp), %eax
jge 0x271ce
movq 0x10(%rsp), %rax
addq $0x46a0, %rax # imm = 0x46A0
movslq 0x4(%rsp), %rcx
imulq $0x60, %rcx, %rcx
addq %rcx, %rax
cmpq $0x0, 0x38(%rax)
je 0x270e3
movq 0x10(%rsp), %rax
addq $0x46a0, %rax # imm = 0x46A0
movslq 0x4(%rsp), %rcx
imulq $0x60, %rcx, %rcx
addq %rcx, %rax
movq 0x38(%rax), %rdi
callq 0xb900
movq 0x10(%rsp), %rax
addq $0x46a0, %rax # imm = 0x46A0
movslq 0x4(%rsp), %rcx
imulq $0x60, %rcx, %rcx
addq %rcx, %rax
movq $0x0, 0x38(%rax)
movq 0x10(%rsp), %rax
addq $0x46a0, %rax # imm = 0x46A0
movslq 0x4(%rsp), %rcx
imulq $0x60, %rcx, %rcx
addq %rcx, %rax
movq $0x0, 0x30(%rax)
movq 0x10(%rsp), %rax
addq $0x46a0, %rax # imm = 0x46A0
movslq 0x4(%rsp), %rcx
imulq $0x60, %rcx, %rcx
addq %rcx, %rax
cmpq $0x0, 0x40(%rax)
je 0x2715f
movq 0x10(%rsp), %rax
addq $0x46a0, %rax # imm = 0x46A0
movslq 0x4(%rsp), %rcx
imulq $0x60, %rcx, %rcx
addq %rcx, %rax
movq 0x40(%rax), %rdi
callq 0xb900
movq 0x10(%rsp), %rax
addq $0x46a0, %rax # imm = 0x46A0
movslq 0x4(%rsp), %rcx
imulq $0x60, %rcx, %rcx
addq %rcx, %rax
movq $0x0, 0x40(%rax)
movq 0x10(%rsp), %rax
addq $0x46a0, %rax # imm = 0x46A0
movslq 0x4(%rsp), %rcx
imulq $0x60, %rcx, %rcx
addq %rcx, %rax
movq $0x0, 0x50(%rax)
movq 0x10(%rsp), %rax
addq $0x46a0, %rax # imm = 0x46A0
movslq 0x4(%rsp), %rcx
imulq $0x60, %rcx, %rcx
addq %rcx, %rax
cmpq $0x0, 0x48(%rax)
je 0x271bc
movq 0x10(%rsp), %rax
addq $0x46a0, %rax # imm = 0x46A0
movslq 0x4(%rsp), %rcx
imulq $0x60, %rcx, %rcx
addq %rcx, %rax
movq 0x48(%rax), %rdi
callq 0xb900
movq 0x10(%rsp), %rax
addq $0x46a0, %rax # imm = 0x46A0
movslq 0x4(%rsp), %rcx
imulq $0x60, %rcx, %rcx
addq %rcx, %rax
movq $0x0, 0x48(%rax)
jmp 0x271be
movl 0x4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x4(%rsp)
jmp 0x27059
movl 0x8(%rsp), %eax
addq $0x18, %rsp
retq
nopw (%rax,%rax)
| _ZL26stbi__free_jpeg_componentsP10stbi__jpegii:
sub rsp, 18h
mov [rsp+18h+var_8], rdi
mov [rsp+18h+var_C], esi
mov [rsp+18h+var_10], edx
mov [rsp+18h+var_14], 0
loc_27059:
mov eax, [rsp+18h+var_14]
cmp eax, [rsp+18h+var_C]
jge loc_271CE
mov rax, [rsp+18h+var_8]
add rax, 46A0h
movsxd rcx, [rsp+18h+var_14]
imul rcx, 60h ; '`'
add rax, rcx
cmp qword ptr [rax+38h], 0
jz short loc_270E3
mov rax, [rsp+18h+var_8]
add rax, 46A0h
movsxd rcx, [rsp+18h+var_14]
imul rcx, 60h ; '`'
add rax, rcx
mov rdi, [rax+38h]
call _free
mov rax, [rsp+18h+var_8]
add rax, 46A0h
movsxd rcx, [rsp+18h+var_14]
imul rcx, 60h ; '`'
add rax, rcx
mov qword ptr [rax+38h], 0
mov rax, [rsp+18h+var_8]
add rax, 46A0h
movsxd rcx, [rsp+18h+var_14]
imul rcx, 60h ; '`'
add rax, rcx
mov qword ptr [rax+30h], 0
loc_270E3:
mov rax, [rsp+18h+var_8]
add rax, 46A0h
movsxd rcx, [rsp+18h+var_14]
imul rcx, 60h ; '`'
add rax, rcx
cmp qword ptr [rax+40h], 0
jz short loc_2715F
mov rax, [rsp+18h+var_8]
add rax, 46A0h
movsxd rcx, [rsp+18h+var_14]
imul rcx, 60h ; '`'
add rax, rcx
mov rdi, [rax+40h]
call _free
mov rax, [rsp+18h+var_8]
add rax, 46A0h
movsxd rcx, [rsp+18h+var_14]
imul rcx, 60h ; '`'
add rax, rcx
mov qword ptr [rax+40h], 0
mov rax, [rsp+18h+var_8]
add rax, 46A0h
movsxd rcx, [rsp+18h+var_14]
imul rcx, 60h ; '`'
add rax, rcx
mov qword ptr [rax+50h], 0
loc_2715F:
mov rax, [rsp+18h+var_8]
add rax, 46A0h
movsxd rcx, [rsp+18h+var_14]
imul rcx, 60h ; '`'
add rax, rcx
cmp qword ptr [rax+48h], 0
jz short loc_271BC
mov rax, [rsp+18h+var_8]
add rax, 46A0h
movsxd rcx, [rsp+18h+var_14]
imul rcx, 60h ; '`'
add rax, rcx
mov rdi, [rax+48h]
call _free
mov rax, [rsp+18h+var_8]
add rax, 46A0h
movsxd rcx, [rsp+18h+var_14]
imul rcx, 60h ; '`'
add rax, rcx
mov qword ptr [rax+48h], 0
loc_271BC:
jmp short $+2
loc_271BE:
mov eax, [rsp+18h+var_14]
add eax, 1
mov [rsp+18h+var_14], eax
jmp loc_27059
loc_271CE:
mov eax, [rsp+18h+var_10]
add rsp, 18h
retn
| long long stbi__free_jpeg_components(long long a1, int a2, unsigned int a3)
{
int i; // [rsp+4h] [rbp-14h]
for ( i = 0; i < a2; ++i )
{
if ( *(_QWORD *)(96LL * i + a1 + 18080 + 56) )
{
free(*(_QWORD *)(96LL * i + a1 + 18080 + 56));
*(_QWORD *)(96LL * i + a1 + 18080 + 56) = 0LL;
*(_QWORD *)(96LL * i + a1 + 18080 + 48) = 0LL;
}
if ( *(_QWORD *)(96LL * i + a1 + 18080 + 64) )
{
free(*(_QWORD *)(96LL * i + a1 + 18080 + 64));
*(_QWORD *)(96LL * i + a1 + 18080 + 64) = 0LL;
*(_QWORD *)(96LL * i + a1 + 18080 + 80) = 0LL;
}
if ( *(_QWORD *)(96LL * i + a1 + 18080 + 72) )
{
free(*(_QWORD *)(96LL * i + a1 + 18080 + 72));
*(_QWORD *)(96LL * i + a1 + 18080 + 72) = 0LL;
}
}
return a3;
}
| stbi__free_jpeg_components:
SUB RSP,0x18
MOV qword ptr [RSP + 0x10],RDI
MOV dword ptr [RSP + 0xc],ESI
MOV dword ptr [RSP + 0x8],EDX
MOV dword ptr [RSP + 0x4],0x0
LAB_00127059:
MOV EAX,dword ptr [RSP + 0x4]
CMP EAX,dword ptr [RSP + 0xc]
JGE 0x001271ce
MOV RAX,qword ptr [RSP + 0x10]
ADD RAX,0x46a0
MOVSXD RCX,dword ptr [RSP + 0x4]
IMUL RCX,RCX,0x60
ADD RAX,RCX
CMP qword ptr [RAX + 0x38],0x0
JZ 0x001270e3
MOV RAX,qword ptr [RSP + 0x10]
ADD RAX,0x46a0
MOVSXD RCX,dword ptr [RSP + 0x4]
IMUL RCX,RCX,0x60
ADD RAX,RCX
MOV RDI,qword ptr [RAX + 0x38]
CALL 0x0010b900
MOV RAX,qword ptr [RSP + 0x10]
ADD RAX,0x46a0
MOVSXD RCX,dword ptr [RSP + 0x4]
IMUL RCX,RCX,0x60
ADD RAX,RCX
MOV qword ptr [RAX + 0x38],0x0
MOV RAX,qword ptr [RSP + 0x10]
ADD RAX,0x46a0
MOVSXD RCX,dword ptr [RSP + 0x4]
IMUL RCX,RCX,0x60
ADD RAX,RCX
MOV qword ptr [RAX + 0x30],0x0
LAB_001270e3:
MOV RAX,qword ptr [RSP + 0x10]
ADD RAX,0x46a0
MOVSXD RCX,dword ptr [RSP + 0x4]
IMUL RCX,RCX,0x60
ADD RAX,RCX
CMP qword ptr [RAX + 0x40],0x0
JZ 0x0012715f
MOV RAX,qword ptr [RSP + 0x10]
ADD RAX,0x46a0
MOVSXD RCX,dword ptr [RSP + 0x4]
IMUL RCX,RCX,0x60
ADD RAX,RCX
MOV RDI,qword ptr [RAX + 0x40]
CALL 0x0010b900
MOV RAX,qword ptr [RSP + 0x10]
ADD RAX,0x46a0
MOVSXD RCX,dword ptr [RSP + 0x4]
IMUL RCX,RCX,0x60
ADD RAX,RCX
MOV qword ptr [RAX + 0x40],0x0
MOV RAX,qword ptr [RSP + 0x10]
ADD RAX,0x46a0
MOVSXD RCX,dword ptr [RSP + 0x4]
IMUL RCX,RCX,0x60
ADD RAX,RCX
MOV qword ptr [RAX + 0x50],0x0
LAB_0012715f:
MOV RAX,qword ptr [RSP + 0x10]
ADD RAX,0x46a0
MOVSXD RCX,dword ptr [RSP + 0x4]
IMUL RCX,RCX,0x60
ADD RAX,RCX
CMP qword ptr [RAX + 0x48],0x0
JZ 0x001271bc
MOV RAX,qword ptr [RSP + 0x10]
ADD RAX,0x46a0
MOVSXD RCX,dword ptr [RSP + 0x4]
IMUL RCX,RCX,0x60
ADD RAX,RCX
MOV RDI,qword ptr [RAX + 0x48]
CALL 0x0010b900
MOV RAX,qword ptr [RSP + 0x10]
ADD RAX,0x46a0
MOVSXD RCX,dword ptr [RSP + 0x4]
IMUL RCX,RCX,0x60
ADD RAX,RCX
MOV qword ptr [RAX + 0x48],0x0
LAB_001271bc:
JMP 0x001271be
LAB_001271be:
MOV EAX,dword ptr [RSP + 0x4]
ADD EAX,0x1
MOV dword ptr [RSP + 0x4],EAX
JMP 0x00127059
LAB_001271ce:
MOV EAX,dword ptr [RSP + 0x8]
ADD RSP,0x18
RET
|
/* stbi__free_jpeg_components(stbi__jpeg*, int, int) */
int stbi__free_jpeg_components(stbi__jpeg *param_1,int param_2,int param_3)
{
int local_14;
for (local_14 = 0; local_14 < param_2; local_14 = local_14 + 1) {
if (*(long *)(param_1 + (long)local_14 * 0x60 + 0x46d8) != 0) {
free(*(void **)(param_1 + (long)local_14 * 0x60 + 0x46d8));
*(int8 *)(param_1 + (long)local_14 * 0x60 + 0x46d8) = 0;
*(int8 *)(param_1 + (long)local_14 * 0x60 + 0x46d0) = 0;
}
if (*(long *)(param_1 + (long)local_14 * 0x60 + 0x46e0) != 0) {
free(*(void **)(param_1 + (long)local_14 * 0x60 + 0x46e0));
*(int8 *)(param_1 + (long)local_14 * 0x60 + 0x46e0) = 0;
*(int8 *)(param_1 + (long)local_14 * 0x60 + 0x46f0) = 0;
}
if (*(long *)(param_1 + (long)local_14 * 0x60 + 0x46e8) != 0) {
free(*(void **)(param_1 + (long)local_14 * 0x60 + 0x46e8));
*(int8 *)(param_1 + (long)local_14 * 0x60 + 0x46e8) = 0;
}
}
return param_3;
}
| |
37,866 | stbi__free_jpeg_components(stbi__jpeg*, int, int) | 7CodeWizard[P]stablediffusion/thirdparty/stb_image.h | static int stbi__free_jpeg_components(stbi__jpeg *z, int ncomp, int why)
{
int i;
for (i=0; i < ncomp; ++i) {
if (z->img_comp[i].raw_data) {
STBI_FREE(z->img_comp[i].raw_data);
z->img_comp[i].raw_data = NULL;
z->img_comp[i].data = NULL;
}
if (z->img_comp[i].raw_coeff) {
STBI_FREE(z->img_comp[i].raw_coeff);
z->img_comp[i].raw_coeff = 0;
z->img_comp[i].coeff = 0;
}
if (z->img_comp[i].linebuf) {
STBI_FREE(z->img_comp[i].linebuf);
z->img_comp[i].linebuf = NULL;
}
}
return why;
} | O2 | c | stbi__free_jpeg_components(stbi__jpeg*, int, int):
pushq %r15
pushq %r14
pushq %rbx
xorl %r14d, %r14d
testl %esi, %esi
cmovlel %r14d, %esi
movq %rdi, %rbx
imulq $0x60, %rsi, %r15
addq $0x46f0, %rbx # imm = 0x46F0
cmpq %r14, %r15
je 0x1896b
movq -0x18(%rbx,%r14), %rdi
testq %rdi, %rdi
je 0x18936
callq 0xa710
xorps %xmm0, %xmm0
movups %xmm0, -0x20(%rbx,%r14)
movq -0x10(%rbx,%r14), %rdi
testq %rdi, %rdi
je 0x18950
callq 0xa710
andq $0x0, -0x10(%rbx,%r14)
andq $0x0, (%rbx,%r14)
movq -0x8(%rbx,%r14), %rdi
testq %rdi, %rdi
je 0x18965
callq 0xa710
andq $0x0, -0x8(%rbx,%r14)
addq $0x60, %r14
jmp 0x18919
popq %rbx
popq %r14
popq %r15
retq
| _ZL26stbi__free_jpeg_componentsP10stbi__jpegii:
push r15
push r14
push rbx
xor r14d, r14d
test esi, esi
cmovle esi, r14d
mov rbx, rdi
imul r15, rsi, 60h ; '`'
add rbx, 46F0h
loc_18919:
cmp r15, r14
jz short loc_1896B
mov rdi, [rbx+r14-18h]
test rdi, rdi
jz short loc_18936
call _free
xorps xmm0, xmm0
movups xmmword ptr [rbx+r14-20h], xmm0
loc_18936:
mov rdi, [rbx+r14-10h]
test rdi, rdi
jz short loc_18950
call _free
and qword ptr [rbx+r14-10h], 0
and qword ptr [rbx+r14], 0
loc_18950:
mov rdi, [rbx+r14-8]
test rdi, rdi
jz short loc_18965
call _free
and qword ptr [rbx+r14-8], 0
loc_18965:
add r14, 60h ; '`'
jmp short loc_18919
loc_1896B:
pop rbx
pop r14
pop r15
retn
| long long stbi__free_jpeg_components(long long a1, long long a2)
{
long long v2; // r14
long long v3; // rbx
long long v4; // rdi
long long result; // rax
long long v6; // rdi
long long v7; // rdi
v2 = 0LL;
if ( (int)a2 <= 0 )
a2 = 0LL;
v3 = a1 + 18160;
while ( 96 * a2 != v2 )
{
v4 = *(_QWORD *)(v3 + v2 - 24);
if ( v4 )
{
result = free(v4);
*(_OWORD *)(v3 + v2 - 32) = 0LL;
}
v6 = *(_QWORD *)(v3 + v2 - 16);
if ( v6 )
{
result = free(v6);
*(_QWORD *)(v3 + v2 - 16) = 0LL;
*(_QWORD *)(v3 + v2) = 0LL;
}
v7 = *(_QWORD *)(v3 + v2 - 8);
if ( v7 )
{
result = free(v7);
*(_QWORD *)(v3 + v2 - 8) = 0LL;
}
v2 += 96LL;
}
return result;
}
| stbi__free_jpeg_components:
PUSH R15
PUSH R14
PUSH RBX
XOR R14D,R14D
TEST ESI,ESI
CMOVLE ESI,R14D
MOV RBX,RDI
IMUL R15,RSI,0x60
ADD RBX,0x46f0
LAB_00118919:
CMP R15,R14
JZ 0x0011896b
MOV RDI,qword ptr [RBX + R14*0x1 + -0x18]
TEST RDI,RDI
JZ 0x00118936
CALL 0x0010a710
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + R14*0x1 + -0x20],XMM0
LAB_00118936:
MOV RDI,qword ptr [RBX + R14*0x1 + -0x10]
TEST RDI,RDI
JZ 0x00118950
CALL 0x0010a710
AND qword ptr [RBX + R14*0x1 + -0x10],0x0
AND qword ptr [RBX + R14*0x1],0x0
LAB_00118950:
MOV RDI,qword ptr [RBX + R14*0x1 + -0x8]
TEST RDI,RDI
JZ 0x00118965
CALL 0x0010a710
AND qword ptr [RBX + R14*0x1 + -0x8],0x0
LAB_00118965:
ADD R14,0x60
JMP 0x00118919
LAB_0011896b:
POP RBX
POP R14
POP R15
RET
|
/* stbi__free_jpeg_components(stbi__jpeg*, int, int) */
void stbi__free_jpeg_components(stbi__jpeg *param_1,int param_2,int param_3)
{
ulong uVar1;
ulong uVar2;
uVar2 = 0;
uVar1 = (ulong)(uint)param_2;
if (param_2 < 1) {
uVar1 = uVar2;
}
for (; uVar1 * 0x60 - uVar2 != 0; uVar2 = uVar2 + 0x60) {
if (*(void **)(param_1 + uVar2 + 0x46d8) != (void *)0x0) {
free(*(void **)(param_1 + uVar2 + 0x46d8));
*(int8 *)(param_1 + uVar2 + 0x46d0) = 0;
*(int8 *)(param_1 + uVar2 + 0x46d0 + 8) = 0;
}
if (*(void **)(param_1 + uVar2 + 0x46e0) != (void *)0x0) {
free(*(void **)(param_1 + uVar2 + 0x46e0));
*(int8 *)(param_1 + uVar2 + 0x46e0) = 0;
*(int8 *)(param_1 + uVar2 + 0x46f0) = 0;
}
if (*(void **)(param_1 + uVar2 + 0x46e8) != (void *)0x0) {
free(*(void **)(param_1 + uVar2 + 0x46e8));
*(int8 *)(param_1 + uVar2 + 0x46e8) = 0;
}
}
return;
}
| |
37,867 | stbi__free_jpeg_components(stbi__jpeg*, int, int) | 7CodeWizard[P]stablediffusion/thirdparty/stb_image.h | static int stbi__free_jpeg_components(stbi__jpeg *z, int ncomp, int why)
{
int i;
for (i=0; i < ncomp; ++i) {
if (z->img_comp[i].raw_data) {
STBI_FREE(z->img_comp[i].raw_data);
z->img_comp[i].raw_data = NULL;
z->img_comp[i].data = NULL;
}
if (z->img_comp[i].raw_coeff) {
STBI_FREE(z->img_comp[i].raw_coeff);
z->img_comp[i].raw_coeff = 0;
z->img_comp[i].coeff = 0;
}
if (z->img_comp[i].linebuf) {
STBI_FREE(z->img_comp[i].linebuf);
z->img_comp[i].linebuf = NULL;
}
}
return why;
} | O3 | c | stbi__free_jpeg_components(stbi__jpeg*, int, int):
testl %esi, %esi
jle 0x2b85d
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl %esi, %eax
addq $0x46f0, %rbx # imm = 0x46F0
shlq $0x5, %rax
leaq (%rax,%rax,2), %r14
xorl %r15d, %r15d
xorl %r12d, %r12d
movq -0x18(%rbx,%r12), %rdi
testq %rdi, %rdi
je 0x2b819
callq 0xa6f0
xorps %xmm0, %xmm0
movups %xmm0, -0x20(%rbx,%r12)
movq -0x10(%rbx,%r12), %rdi
testq %rdi, %rdi
je 0x2b831
callq 0xa6f0
movq %r15, -0x10(%rbx,%r12)
movq %r15, (%rbx,%r12)
movq -0x8(%rbx,%r12), %rdi
testq %rdi, %rdi
je 0x2b849
callq 0xa6f0
movq $0x0, -0x8(%rbx,%r12)
addq $0x60, %r12
cmpq %r12, %r14
jne 0x2b801
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
| _ZL26stbi__free_jpeg_componentsP10stbi__jpegii:
test esi, esi
jle short locret_2B85D
push r15
push r14
push r12
push rbx
push rax
mov rbx, rdi
mov eax, esi
add rbx, 46F0h
shl rax, 5
lea r14, [rax+rax*2]
xor r15d, r15d
xor r12d, r12d
loc_2B801:
mov rdi, [rbx+r12-18h]
test rdi, rdi
jz short loc_2B819
call _free
xorps xmm0, xmm0
movups xmmword ptr [rbx+r12-20h], xmm0
loc_2B819:
mov rdi, [rbx+r12-10h]
test rdi, rdi
jz short loc_2B831
call _free
mov [rbx+r12-10h], r15
mov [rbx+r12], r15
loc_2B831:
mov rdi, [rbx+r12-8]
test rdi, rdi
jz short loc_2B849
call _free
mov qword ptr [rbx+r12-8], 0
loc_2B849:
add r12, 60h ; '`'
cmp r14, r12
jnz short loc_2B801
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
locret_2B85D:
retn
| long long stbi__free_jpeg_components(long long a1, int a2)
{
long long v2; // rbx
long long result; // rax
long long v4; // r12
long long v5; // rdi
long long v6; // rdi
long long v7; // rdi
if ( a2 > 0 )
{
v2 = a1 + 18160;
result = 32LL * (unsigned int)a2;
v4 = 0LL;
do
{
v5 = *(_QWORD *)(v2 + v4 - 24);
if ( v5 )
{
result = free(v5);
*(_OWORD *)(v2 + v4 - 32) = 0LL;
}
v6 = *(_QWORD *)(v2 + v4 - 16);
if ( v6 )
{
result = free(v6);
*(_QWORD *)(v2 + v4 - 16) = 0LL;
*(_QWORD *)(v2 + v4) = 0LL;
}
v7 = *(_QWORD *)(v2 + v4 - 8);
if ( v7 )
{
result = free(v7);
*(_QWORD *)(v2 + v4 - 8) = 0LL;
}
v4 += 96LL;
}
while ( 96LL * (unsigned int)a2 != v4 );
}
return result;
}
| |||
37,868 | gguf_set_val_u64 | Yangxiaoz[P]GGML-Tutorial/ggml/src/gguf.cpp | void gguf_set_val_u64(struct gguf_context * ctx, const char * key, uint64_t val) {
gguf_check_reserved_keys(key, val);
gguf_remove_key(ctx, key);
ctx->kv.emplace_back(key, val);
} | O3 | cpp | gguf_set_val_u64:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
leaq 0x20(%rsp), %r15
leaq 0xf(%rsp), %rdx
movq %r15, %rdi
callq 0x17d60
leaq 0x1e0d4(%rip), %rsi # 0x5d551
movq %r15, %rdi
callq 0x17210
testl %eax, %eax
je 0x3f4cf
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3f4a4
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x170d0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x176b0
addq $0x8, %rbx
leaq 0x18(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x174d0
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x1e007(%rip), %rdi # 0x5d4dd
leaq 0x1eb09(%rip), %rdx # 0x5dfe6
movl $0x3a3, %esi # imm = 0x3A3
xorl %eax, %eax
callq 0x17cd0
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3f507
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x170d0
movq %rbx, %rdi
callq 0x17e90
| gguf_set_val_u64:
push r15
push r14
push rbx
sub rsp, 40h
mov r14, rsi
mov rbx, rdi
mov [rsp+58h+var_40], rsi
mov [rsp+58h+var_48], rdx
lea r15, [rsp+58h+var_38]
lea rdx, [rsp+58h+var_49]
mov rdi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rsi, aGeneralAlignme; "general.alignment"
mov rdi, r15
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_3F4CF
lea rax, [rsp+58h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_3F4A4
mov rsi, [rsp+58h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3F4A4:
mov rdi, rbx
mov rsi, r14
call _gguf_remove_key
add rbx, 8
lea rsi, [rsp+58h+var_40]
lea rdx, [rsp+58h+var_48]
mov rdi, rbx
call __ZNSt6vectorI7gguf_kvSaIS0_EE12emplace_backIJRPKcRmEEERS0_DpOT_; std::vector<gguf_kv>::emplace_back<char const*&,ulong &>(char const*&,ulong &)
add rsp, 40h
pop rbx
pop r14
pop r15
retn
loc_3F4CF:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGeneralAlignme_0; "general.alignment must be type u32"
mov esi, 3A3h
xor eax, eax
call _ggml_abort
mov rbx, rax
lea rax, [rsp+58h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_3F507
mov rsi, [rsp+58h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3F507:
mov rdi, rbx
call __Unwind_Resume
| long long gguf_set_val_u64(long long a1, long long a2, long long a3)
{
int v3; // ecx
int v4; // r8d
int v5; // r9d
char v7; // [rsp+Fh] [rbp-49h] BYREF
long long v8; // [rsp+10h] [rbp-48h] BYREF
long long v9; // [rsp+18h] [rbp-40h] BYREF
void *v10[2]; // [rsp+20h] [rbp-38h] BYREF
long long v11; // [rsp+30h] [rbp-28h] BYREF
v9 = a2;
v8 = a3;
std::string::basic_string<std::allocator<char>>(v10, a2, &v7);
if ( !(unsigned int)std::string::compare(v10, "general.alignment") )
ggml_abort(
(unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/gguf.cpp",
931,
(unsigned int)"general.alignment must be type u32",
v3,
v4,
v5);
if ( v10[0] != &v11 )
operator delete(v10[0], v11 + 1);
gguf_remove_key(a1, a2);
return std::vector<gguf_kv>::emplace_back<char const*&,unsigned long &>(a1 + 8, &v9, &v8);
}
| gguf_set_val_u64:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x40
MOV R14,RSI
MOV RBX,RDI
MOV qword ptr [RSP + 0x18],RSI
MOV qword ptr [RSP + 0x10],RDX
LEA R15,[RSP + 0x20]
LEA RDX,[RSP + 0xf]
MOV RDI,R15
CALL 0x00117d60
LEA RSI,[0x15d551]
MOV RDI,R15
CALL 0x00117210
TEST EAX,EAX
JZ 0x0013f4cf
LEA RAX,[RSP + 0x30]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0013f4a4
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x001170d0
LAB_0013f4a4:
MOV RDI,RBX
MOV RSI,R14
CALL 0x001176b0
ADD RBX,0x8
LEA RSI,[RSP + 0x18]
LEA RDX,[RSP + 0x10]
MOV RDI,RBX
CALL 0x001174d0
ADD RSP,0x40
POP RBX
POP R14
POP R15
RET
LAB_0013f4cf:
LEA RDI,[0x15d4dd]
LEA RDX,[0x15dfe6]
MOV ESI,0x3a3
XOR EAX,EAX
CALL 0x00117cd0
|
void gguf_set_val_u64(long param_1,char *param_2,ulong param_3)
{
int iVar1;
allocator local_49;
ulong local_48;
char *local_40;
long *local_38 [2];
long local_28 [2];
local_48 = param_3;
local_40 = param_2;
std::__cxx11::string::string<std::allocator<char>>((string *)local_38,param_2,&local_49);
iVar1 = std::__cxx11::string::compare((string *)local_38,"general.alignment");
if (iVar1 != 0) {
if (local_38[0] != local_28) {
operator_delete(local_38[0],local_28[0] + 1);
}
gguf_remove_key(param_1,param_2);
std::vector<gguf_kv,std::allocator<gguf_kv>>::emplace_back<char_const*&,unsigned_long&>
((vector<gguf_kv,std::allocator<gguf_kv>> *)(param_1 + 8),&local_40,&local_48);
return;
}
/* try { // try from 0013f4cf to 0013f4e8 has its CatchHandler @ 0013f4e9 */
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/gguf.cpp",
0x3a3,"general.alignment must be type u32");
}
| |
37,869 | get_all_kv_cache_types[abi:cxx11]() | monkey531[P]llama/common/arg.cpp | static std::string get_all_kv_cache_types() {
std::ostringstream msg;
for (const auto & type : kv_cache_types) {
msg << ggml_type_name(type) << (&type == &kv_cache_types.back() ? "" : ", ");
}
return msg.str();
} | O0 | cpp | get_all_kv_cache_types[abi:cxx11]():
subq $0x1d8, %rsp # imm = 0x1D8
movq %rdi, 0x18(%rsp)
movq %rdi, %rax
movq %rax, 0x20(%rsp)
movq %rdi, 0x1d0(%rsp)
leaq 0x58(%rsp), %rdi
callq 0x5b0a0
leaq 0x223abb(%rip), %rax # 0x2abf38
movq %rax, 0x50(%rsp)
leaq 0x223aaf(%rip), %rdi # 0x2abf38
callq 0xc48b0
movq %rax, 0x48(%rsp)
leaq 0x223a9e(%rip), %rdi # 0x2abf38
callq 0xc48e0
movq %rax, 0x40(%rsp)
leaq 0x48(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0xc4910
testb $0x1, %al
jne 0x884bc
jmp 0x8855c
leaq 0x48(%rsp), %rdi
callq 0xc4950
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movl (%rax), %edi
callq 0x5b380
movq %rax, 0x10(%rsp)
jmp 0x884de
movq 0x10(%rsp), %rsi
leaq 0x58(%rsp), %rdi
callq 0x5aa30
movq %rax, 0x8(%rsp)
jmp 0x884f4
movq 0x38(%rsp), %rax
movq %rax, (%rsp)
leaq 0x223a34(%rip), %rdi # 0x2abf38
callq 0xc4960
movq 0x8(%rsp), %rdi
movq %rax, %rcx
movq (%rsp), %rax
subq %rcx, %rax
leaq 0x18ae3c(%rip), %rax # 0x21335b
leaq 0x18ec24(%rip), %rsi # 0x21714a
cmoveq %rax, %rsi
callq 0x5aa30
jmp 0x88531
jmp 0x88533
leaq 0x48(%rsp), %rdi
callq 0xc49a0
jmp 0x884a4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x30(%rsp)
movl %eax, 0x2c(%rsp)
leaq 0x58(%rsp), %rdi
callq 0x5afc0
jmp 0x88584
movq 0x18(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x5b430
jmp 0x8856d
leaq 0x58(%rsp), %rdi
callq 0x5afc0
movq 0x20(%rsp), %rax
addq $0x1d8, %rsp # imm = 0x1D8
retq
movq 0x30(%rsp), %rdi
callq 0x5abc0
nop
| _ZL22get_all_kv_cache_typesB5cxx11v:
sub rsp, 1D8h
mov [rsp+1D8h+var_1C0], rdi
mov rax, rdi
mov [rsp+1D8h+var_1B8], rax
mov [rsp+1D8h+var_8], rdi
lea rdi, [rsp+1D8h+var_180]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void)
lea rax, _ZL14kv_cache_types; kv_cache_types
mov [rsp+1D8h+var_188], rax
lea rdi, _ZL14kv_cache_types; kv_cache_types
call _ZNKSt6vectorI9ggml_typeSaIS0_EE5beginEv; std::vector<ggml_type>::begin(void)
mov [rsp+1D8h+var_190], rax
lea rdi, _ZL14kv_cache_types; kv_cache_types
call _ZNKSt6vectorI9ggml_typeSaIS0_EE3endEv; std::vector<ggml_type>::end(void)
mov [rsp+1D8h+var_198], rax
loc_884A4:
lea rdi, [rsp+1D8h+var_190]
lea rsi, [rsp+1D8h+var_198]
call _ZN9__gnu_cxxneIPK9ggml_typeSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_; __gnu_cxx::operator!=<ggml_type const*,std::vector<ggml_type>>(__gnu_cxx::__normal_iterator<ggml_type const*,std::vector<ggml_type>> const&,__gnu_cxx::__normal_iterator<ggml_type const*,std::vector<ggml_type>> const&)
test al, 1
jnz short loc_884BC
jmp loc_8855C
loc_884BC:
lea rdi, [rsp+1D8h+var_190]
call _ZNK9__gnu_cxx17__normal_iteratorIPK9ggml_typeSt6vectorIS1_SaIS1_EEEdeEv; __gnu_cxx::__normal_iterator<ggml_type const*,std::vector<ggml_type>>::operator*(void)
mov [rsp+1D8h+var_1A0], rax
mov rax, [rsp+1D8h+var_1A0]
mov edi, [rax]
call _ggml_type_name
mov [rsp+1D8h+var_1C8], rax
jmp short $+2
loc_884DE:
mov rsi, [rsp+1D8h+var_1C8]
lea rdi, [rsp+1D8h+var_180]
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov [rsp+1D8h+var_1D0], rax
jmp short $+2
loc_884F4:
mov rax, [rsp+1D8h+var_1A0]
mov [rsp+1D8h+var_1D8], rax
lea rdi, _ZL14kv_cache_types; kv_cache_types
call _ZNKSt6vectorI9ggml_typeSaIS0_EE4backEv; std::vector<ggml_type>::back(void)
mov rdi, [rsp+1D8h+var_1D0]
mov rcx, rax
mov rax, [rsp+1D8h+var_1D8]
sub rax, rcx
lea rax, aExampleSpecifi+27h; ""
lea rsi, aZuD+6; ", "
cmovz rsi, rax
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
jmp short $+2
loc_88531:
jmp short $+2
loc_88533:
lea rdi, [rsp+1D8h+var_190]
call _ZN9__gnu_cxx17__normal_iteratorIPK9ggml_typeSt6vectorIS1_SaIS1_EEEppEv; __gnu_cxx::__normal_iterator<ggml_type const*,std::vector<ggml_type>>::operator++(void)
jmp loc_884A4
mov rcx, rax
mov eax, edx
mov [rsp+arg_28], rcx
mov [rsp+arg_24], eax
lea rdi, [rsp+arg_50]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev; std::ostringstream::~ostringstream()
jmp short loc_88584
loc_8855C:
mov rdi, [rsp+1D8h+var_1C0]
lea rsi, [rsp+1D8h+var_180]
call __ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv; std::ostringstream::str(void)
jmp short $+2
loc_8856D:
lea rdi, [rsp+1D8h+var_180]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev; std::ostringstream::~ostringstream()
mov rax, [rsp+1D8h+var_1B8]
add rsp, 1D8h
retn
loc_88584:
mov rdi, [rsp+arg_28]
call __Unwind_Resume
| long long get_all_kv_cache_types[abi:cxx11](long long a1)
{
long long v1; // rdi
char *v2; // rsi
long long v4; // [rsp+10h] [rbp-1C8h]
unsigned int *v7; // [rsp+38h] [rbp-1A0h]
long long v8; // [rsp+40h] [rbp-198h] BYREF
_QWORD v9[2]; // [rsp+48h] [rbp-190h] BYREF
_BYTE v10[376]; // [rsp+58h] [rbp-180h] BYREF
long long v11; // [rsp+1D0h] [rbp-8h]
v11 = a1;
std::ostringstream::basic_ostringstream(v10);
v9[1] = &kv_cache_types;
v9[0] = std::vector<ggml_type>::begin(&kv_cache_types);
v8 = std::vector<ggml_type>::end(&kv_cache_types);
while ( (__gnu_cxx::operator!=<ggml_type const*,std::vector<ggml_type>>(v9, &v8) & 1) != 0 )
{
v7 = (unsigned int *)__gnu_cxx::__normal_iterator<ggml_type const*,std::vector<ggml_type>>::operator*(v9);
v4 = ggml_type_name(*v7);
v1 = std::operator<<<std::char_traits<char>>(v10, v4);
v2 = ", ";
if ( v7 == (unsigned int *)std::vector<ggml_type>::back(&kv_cache_types) )
v2 = "";
std::operator<<<std::char_traits<char>>(v1, v2);
__gnu_cxx::__normal_iterator<ggml_type const*,std::vector<ggml_type>>::operator++(v9);
}
std::ostringstream::str(a1, v10);
std::ostringstream::~ostringstream(v10);
return a1;
}
| get_all_kv_cache_types[abi:cxx11]:
SUB RSP,0x1d8
MOV qword ptr [RSP + 0x18],RDI
MOV RAX,RDI
MOV qword ptr [RSP + 0x20],RAX
MOV qword ptr [RSP + 0x1d0],RDI
LEA RDI,[RSP + 0x58]
CALL 0x0015b0a0
LEA RAX,[0x3abf38]
MOV qword ptr [RSP + 0x50],RAX
LEA RDI,[0x3abf38]
CALL 0x001c48b0
MOV qword ptr [RSP + 0x48],RAX
LEA RDI,[0x3abf38]
CALL 0x001c48e0
MOV qword ptr [RSP + 0x40],RAX
LAB_001884a4:
LEA RDI,[RSP + 0x48]
LEA RSI,[RSP + 0x40]
CALL 0x001c4910
TEST AL,0x1
JNZ 0x001884bc
JMP 0x0018855c
LAB_001884bc:
LEA RDI,[RSP + 0x48]
CALL 0x001c4950
MOV qword ptr [RSP + 0x38],RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV EDI,dword ptr [RAX]
LAB_001884d2:
CALL 0x0015b380
MOV qword ptr [RSP + 0x10],RAX
JMP 0x001884de
LAB_001884de:
MOV RSI,qword ptr [RSP + 0x10]
LEA RDI,[RSP + 0x58]
CALL 0x0015aa30
MOV qword ptr [RSP + 0x8],RAX
JMP 0x001884f4
LAB_001884f4:
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP],RAX
LEA RDI,[0x3abf38]
CALL 0x001c4960
MOV RDI,qword ptr [RSP + 0x8]
MOV RCX,RAX
MOV RAX,qword ptr [RSP]
SUB RAX,RCX
LEA RAX,[0x31335b]
LEA RSI,[0x31714a]
CMOVZ RSI,RAX
CALL 0x0015aa30
JMP 0x00188531
LAB_00188531:
JMP 0x00188533
LAB_00188533:
LEA RDI,[RSP + 0x48]
CALL 0x001c49a0
JMP 0x001884a4
LAB_0018855c:
MOV RDI,qword ptr [RSP + 0x18]
LEA RSI,[RSP + 0x58]
CALL 0x0015b430
LAB_0018856b:
JMP 0x0018856d
LAB_0018856d:
LEA RDI,[RSP + 0x58]
CALL 0x0015afc0
MOV RAX,qword ptr [RSP + 0x20]
ADD RSP,0x1d8
RET
|
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* get_all_kv_cache_types[abi:cxx11]() */
int8 get_all_kv_cache_types_abi_cxx11_(void)
{
bool bVar1;
int4 *puVar2;
char *pcVar3;
ostream *poVar4;
int4 *puVar5;
int8 in_RDI;
int8 local_198;
int8 local_190;
int1 *local_188;
ostringstream local_180 [384];
std::__cxx11::ostringstream::ostringstream(local_180);
local_188 = kv_cache_types;
local_190 = std::vector<ggml_type,std::allocator<ggml_type>>::begin
((vector<ggml_type,std::allocator<ggml_type>> *)kv_cache_types);
local_198 = std::vector<ggml_type,std::allocator<ggml_type>>::end
((vector<ggml_type,std::allocator<ggml_type>> *)kv_cache_types);
while( true ) {
bVar1 = __gnu_cxx::operator!=((__normal_iterator *)&local_190,(__normal_iterator *)&local_198);
if (!bVar1) break;
puVar2 = (int4 *)
__gnu_cxx::
__normal_iterator<ggml_type_const*,std::vector<ggml_type,std::allocator<ggml_type>>>::
operator*((__normal_iterator<ggml_type_const*,std::vector<ggml_type,std::allocator<ggml_type>>>
*)&local_190);
/* try { // try from 001884d2 to 0018856a has its CatchHandler @ 00188542 */
pcVar3 = (char *)ggml_type_name(*puVar2);
poVar4 = std::operator<<((ostream *)local_180,pcVar3);
puVar5 = (int4 *)
std::vector<ggml_type,std::allocator<ggml_type>>::back
((vector<ggml_type,std::allocator<ggml_type>> *)kv_cache_types);
pcVar3 = ", ";
if (puVar2 == puVar5) {
pcVar3 = "";
}
std::operator<<(poVar4,pcVar3);
__gnu_cxx::__normal_iterator<ggml_type_const*,std::vector<ggml_type,std::allocator<ggml_type>>>
::operator++((__normal_iterator<ggml_type_const*,std::vector<ggml_type,std::allocator<ggml_type>>>
*)&local_190);
}
std::__cxx11::ostringstream::str();
std::__cxx11::ostringstream::~ostringstream(local_180);
return in_RDI;
}
| |
37,870 | test_conc117 | eloqsql/libmariadb/unittest/libmariadb/misc.c | static int test_conc117(MYSQL *unused __attribute__((unused)))
{
my_bool reconnect= 1;
MYSQL *my= mysql_init(NULL);
SKIP_MAXSCALE;
FAIL_IF(!my_test_connect(my, hostname, username, password, schema,
port, socketname, 0), mysql_error(my));
mysql_kill(my, mysql_thread_id(my));
mysql_options(my, MYSQL_OPT_RECONNECT, &reconnect);
mysql_query(my, "SET @a:=1");
mysql_close(my);
return OK;
} | O3 | c | test_conc117:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movb $0x1, -0x11(%rbp)
xorl %edi, %edi
callq 0x1cb31
movq %rax, %rbx
movq 0x39c3b(%rip), %rdi # 0x502f0
testq %rdi, %rdi
je 0x166d7
callq 0x2061e
leaq 0x2328c(%rip), %rsi # 0x39952
movq %rax, %rdi
callq 0x13100
testq %rax, %rax
jne 0x16790
leaq 0x22e77(%rip), %rdi # 0x39555
callq 0x135b0
testq %rax, %rax
je 0x16715
movq %rax, %r14
leaq 0x2369b(%rip), %rsi # 0x39d8d
movq %rax, %rdi
callq 0x13660
testl %eax, %eax
je 0x16790
leaq 0x23252(%rip), %rsi # 0x3995b
movq %r14, %rdi
callq 0x13660
testl %eax, %eax
je 0x16790
movq 0x39d14(%rip), %rsi # 0x50430
movq 0x39d15(%rip), %rdx # 0x50438
movq 0x39d16(%rip), %rcx # 0x50440
movq 0x39d17(%rip), %r8 # 0x50448
movl 0x39d18(%rip), %r9d # 0x50450
movq %rbx, %rdi
pushq $0x0
pushq 0x39d15(%rip) # 0x50458
callq 0x1421d
addq $0x10, %rsp
testq %rax, %rax
je 0x167ac
movq %rbx, %rdi
callq 0x20ec7
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2049b
leaq -0x11(%rbp), %rdx
movq %rbx, %rdi
movl $0x14, %esi
callq 0x20d9d
leaq 0x2390a(%rip), %rsi # 0x3a086
movq %rbx, %rdi
callq 0x1ee15
movq %rbx, %rdi
callq 0x1e888
xorl %eax, %eax
jmp 0x167a3
leaq 0x235e3(%rip), %rdi # 0x39d7a
xorl %eax, %eax
callq 0x1970b
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rbx, %rdi
callq 0x20e8e
leaq 0x22965(%rip), %rdi # 0x39120
leaq 0x231ac(%rip), %rdx # 0x3996e
movq %rax, %rsi
movl $0x40d, %ecx # imm = 0x40D
xorl %eax, %eax
callq 0x1970b
movl $0x1, %eax
jmp 0x167a3
| test_conc117:
push rbp
mov rbp, rsp
push r14
push rbx
sub rsp, 10h
mov [rbp+var_11], 1
xor edi, edi
call mysql_init
mov rbx, rax
mov rdi, cs:mysql_default
test rdi, rdi
jz short loc_166D7
call mysql_get_server_info
lea rsi, aMaxscale; "maxScale"
mov rdi, rax
call _strstr
test rax, rax
jnz loc_16790
loc_166D7:
lea rdi, aSrv; "srv"
call _getenv
test rax, rax
jz short loc_16715
mov r14, rax
lea rsi, aTestDisabledWi+13h; "maxscale"
mov rdi, rax
call _strcmp
test eax, eax
jz loc_16790
lea rsi, aSkysqlHa; "skysql-ha"
mov rdi, r14
call _strcmp
test eax, eax
jz short loc_16790
loc_16715:
mov rsi, cs:hostname
mov rdx, cs:username
mov rcx, cs:password
mov r8, cs:schema
mov r9d, cs:port
mov rdi, rbx
push 0
push cs:socketname
call my_test_connect
add rsp, 10h
test rax, rax
jz short loc_167AC
mov rdi, rbx
call mysql_thread_id
mov rdi, rbx
mov rsi, rax
call mysql_kill
lea rdx, [rbp+var_11]
mov rdi, rbx
mov esi, 14h
call mysql_options
lea rsi, aSetA1; "SET @a:=1"
mov rdi, rbx
call mysql_query
mov rdi, rbx
call mysql_close
xor eax, eax
jmp short loc_167A3
loc_16790:
lea rdi, aTestDisabledWi; "test disabled with maxscale"
xor eax, eax
call diag
mov eax, 0FFFFFFFFh
loc_167A3:
add rsp, 10h
pop rbx
pop r14
pop rbp
retn
loc_167AC:
mov rdi, rbx
call mysql_error
lea rdi, aErrorSSD; "Error: %s (%s: %d)"
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov rsi, rax
mov ecx, 40Dh
xor eax, eax
call diag
mov eax, 1
jmp short loc_167A3
| long long test_conc117()
{
long long v0; // rbx
long long server_info; // rax
char *v2; // rsi
int v3; // edx
int v4; // ecx
int v5; // r8d
int v6; // r9d
long long v7; // rax
long long v8; // r14
long long v9; // rax
int v11; // eax
int v12; // r8d
int v13; // r9d
char v14[17]; // [rsp+Fh] [rbp-11h] BYREF
v14[0] = 1;
v0 = mysql_init(0LL);
if ( mysql_default
&& (server_info = mysql_get_server_info(mysql_default), v2 = "maxScale", strstr(server_info, "maxScale"))
|| (v7 = getenv("srv")) != 0
&& ((v8 = v7, v2 = "maxscale", !(unsigned int)strcmp(v7, "maxscale"))
|| (v2 = "skysql-ha", !(unsigned int)strcmp(v8, "skysql-ha"))) )
{
diag((unsigned int)"test disabled with maxscale", (_DWORD)v2, v3, v4, v5, v6);
return 0xFFFFFFFFLL;
}
else if ( my_test_connect(v0, hostname, username, password, schema, port, socketname, 0LL) )
{
v9 = mysql_thread_id(v0);
mysql_kill(v0, v9);
mysql_options(v0, 20LL, v14);
mysql_query(v0, "SET @a:=1");
mysql_close(v0);
return 0LL;
}
else
{
v11 = mysql_error(v0);
diag(
(unsigned int)"Error: %s (%s: %d)",
v11,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/misc.c",
1037,
v12,
v13);
return 1LL;
}
}
| test_conc117:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV byte ptr [RBP + -0x11],0x1
XOR EDI,EDI
CALL 0x0011cb31
MOV RBX,RAX
MOV RDI,qword ptr [0x001502f0]
TEST RDI,RDI
JZ 0x001166d7
CALL 0x0012061e
LEA RSI,[0x139952]
MOV RDI,RAX
CALL 0x00113100
TEST RAX,RAX
JNZ 0x00116790
LAB_001166d7:
LEA RDI,[0x139555]
CALL 0x001135b0
TEST RAX,RAX
JZ 0x00116715
MOV R14,RAX
LEA RSI,[0x139d8d]
MOV RDI,RAX
CALL 0x00113660
TEST EAX,EAX
JZ 0x00116790
LEA RSI,[0x13995b]
MOV RDI,R14
CALL 0x00113660
TEST EAX,EAX
JZ 0x00116790
LAB_00116715:
MOV RSI,qword ptr [0x00150430]
MOV RDX,qword ptr [0x00150438]
MOV RCX,qword ptr [0x00150440]
MOV R8,qword ptr [0x00150448]
MOV R9D,dword ptr [0x00150450]
MOV RDI,RBX
PUSH 0x0
PUSH qword ptr [0x00150458]
CALL 0x0011421d
ADD RSP,0x10
TEST RAX,RAX
JZ 0x001167ac
MOV RDI,RBX
CALL 0x00120ec7
MOV RDI,RBX
MOV RSI,RAX
CALL 0x0012049b
LEA RDX,[RBP + -0x11]
MOV RDI,RBX
MOV ESI,0x14
CALL 0x00120d9d
LEA RSI,[0x13a086]
MOV RDI,RBX
CALL 0x0011ee15
MOV RDI,RBX
CALL 0x0011e888
XOR EAX,EAX
JMP 0x001167a3
LAB_00116790:
LEA RDI,[0x139d7a]
XOR EAX,EAX
CALL 0x0011970b
MOV EAX,0xffffffff
LAB_001167a3:
ADD RSP,0x10
POP RBX
POP R14
POP RBP
RET
LAB_001167ac:
MOV RDI,RBX
CALL 0x00120e8e
LEA RDI,[0x139120]
LEA RDX,[0x13996e]
MOV RSI,RAX
MOV ECX,0x40d
XOR EAX,EAX
CALL 0x0011970b
MOV EAX,0x1
JMP 0x001167a3
|
int8 test_conc117(void)
{
int iVar1;
int8 uVar2;
char *pcVar3;
long lVar4;
int8 uVar5;
int1 local_19;
local_19 = 1;
uVar2 = mysql_init(0);
if (mysql_default != 0) {
pcVar3 = (char *)mysql_get_server_info();
pcVar3 = strstr(pcVar3,"maxScale");
if (pcVar3 != (char *)0x0) goto LAB_00116790;
}
pcVar3 = getenv("srv");
if ((pcVar3 == (char *)0x0) ||
((iVar1 = strcmp(pcVar3,"maxscale"), iVar1 != 0 &&
(iVar1 = strcmp(pcVar3,"skysql-ha"), iVar1 != 0)))) {
lVar4 = my_test_connect(uVar2,hostname,username,password,schema,port,socketname,0);
if (lVar4 != 0) {
uVar5 = mysql_thread_id(uVar2);
mysql_kill(uVar2,uVar5);
mysql_options(uVar2,0x14,&local_19);
mysql_query(uVar2,"SET @a:=1");
mysql_close(uVar2);
return 0;
}
uVar2 = mysql_error(uVar2);
diag("Error: %s (%s: %d)",uVar2,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/misc.c",0x40d);
return 1;
}
LAB_00116790:
diag("test disabled with maxscale");
return 0xffffffff;
}
| |
37,871 | pfs_create_metadata_lock_v1 | eloqsql/storage/perfschema/pfs.cc | PSI_metadata_lock *
pfs_create_metadata_lock_v1(
void *identity,
const MDL_key *mdl_key,
opaque_mdl_type mdl_type,
opaque_mdl_duration mdl_duration,
opaque_mdl_status mdl_status,
const char *src_file,
uint src_line)
{
if (! flag_global_instrumentation)
return NULL;
if (! global_metadata_class.m_enabled)
return NULL;
PFS_thread *pfs_thread= my_thread_get_THR_PFS();
if (pfs_thread == NULL)
return NULL;
PFS_metadata_lock *pfs;
pfs= create_metadata_lock(identity, mdl_key,
mdl_type, mdl_duration, mdl_status,
src_file, src_line);
if (pfs != NULL)
{
pfs->m_owner_thread_id= pfs_thread->m_thread_internal_id;
pfs->m_owner_event_id= pfs_thread->m_event_id;
}
return reinterpret_cast<PSI_metadata_lock *> (pfs);
} | O3 | cpp | pfs_create_metadata_lock_v1:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
leaq 0x38dad7(%rip), %rax # 0x3d2400
cmpb $0x1, (%rax)
jne 0x449a7
leaq 0x38e54b(%rip), %rax # 0x3d2e80
cmpb $0x1, 0x4(%rax)
jne 0x449a7
movl %r8d, %r14d
movl %ecx, %r15d
movl %edx, %r12d
movq %rsi, %r13
movq %rdi, %rbx
movq %r9, -0x38(%rbp)
movl 0x3910d8(%rip), %edi # 0x3d5a2c
callq 0x26540
testq %rax, %rax
je 0x449a7
movq %rax, -0x30(%rbp)
movl 0x10(%rbp), %eax
movl %eax, (%rsp)
movq %rbx, %rdi
movq %r13, %rsi
movl %r12d, %edx
movl %r15d, %ecx
movl %r14d, %r8d
movq -0x38(%rbp), %r9
callq 0x37386
testq %rax, %rax
je 0x449a7
movq -0x30(%rbp), %rdx
movq 0x850(%rdx), %rcx
movq %rcx, 0x1c0(%rax)
movq 0x7f8(%rdx), %rcx
movq %rcx, 0x1c8(%rax)
jmp 0x449a9
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| pfs_create_metadata_lock_v1:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
lea rax, flag_global_instrumentation
cmp byte ptr [rax], 1
jnz short loc_449A7
lea rax, global_metadata_class
cmp byte ptr [rax+4], 1
jnz short loc_449A7
mov r14d, r8d
mov r15d, ecx
mov r12d, edx
mov r13, rsi
mov rbx, rdi
mov [rbp+var_38], r9
mov edi, cs:THR_PFS
call _pthread_getspecific
test rax, rax
jz short loc_449A7
mov [rbp+var_30], rax
mov eax, [rbp+arg_0]
mov [rsp+40h+var_40], eax
mov rdi, rbx
mov rsi, r13
mov edx, r12d
mov ecx, r15d
mov r8d, r14d
mov r9, [rbp+var_38]
call _Z20create_metadata_lockPvPK7MDL_keyiiiPKcj; create_metadata_lock(void *,MDL_key const*,int,int,int,char const*,uint)
test rax, rax
jz short loc_449A7
mov rdx, [rbp+var_30]
mov rcx, [rdx+850h]
mov [rax+1C0h], rcx
mov rcx, [rdx+7F8h]
mov [rax+1C8h], rcx
jmp short loc_449A9
loc_449A7:
xor eax, eax
loc_449A9:
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long pfs_create_metadata_lock_v1(
long long a1,
unsigned __int16 *a2,
int a3,
int a4,
int a5,
long long a6,
int a7)
{
long long v10; // rax
long long result; // rax
long long v13; // [rsp+10h] [rbp-30h]
if ( flag_global_instrumentation[0] != 1 )
return 0LL;
if ( *((_BYTE *)&global_metadata_class + 4) != 1 )
return 0LL;
v10 = pthread_getspecific((unsigned int)THR_PFS);
if ( !v10 )
return 0LL;
v13 = v10;
result = create_metadata_lock(a1, a2, a3, a4, a5, a6, a7);
if ( !result )
return 0LL;
*(_QWORD *)(result + 448) = *(_QWORD *)(v13 + 2128);
*(_QWORD *)(result + 456) = *(_QWORD *)(v13 + 2040);
return result;
}
| pfs_create_metadata_lock_v1:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
LEA RAX,[0x4d2400]
CMP byte ptr [RAX],0x1
JNZ 0x001449a7
LEA RAX,[0x4d2e80]
CMP byte ptr [RAX + 0x4],0x1
JNZ 0x001449a7
MOV R14D,R8D
MOV R15D,ECX
MOV R12D,EDX
MOV R13,RSI
MOV RBX,RDI
MOV qword ptr [RBP + -0x38],R9
MOV EDI,dword ptr [0x004d5a2c]
CALL 0x00126540
TEST RAX,RAX
JZ 0x001449a7
MOV qword ptr [RBP + -0x30],RAX
MOV EAX,dword ptr [RBP + 0x10]
MOV dword ptr [RSP],EAX
MOV RDI,RBX
MOV RSI,R13
MOV EDX,R12D
MOV ECX,R15D
MOV R8D,R14D
MOV R9,qword ptr [RBP + -0x38]
CALL 0x00137386
TEST RAX,RAX
JZ 0x001449a7
MOV RDX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RDX + 0x850]
MOV qword ptr [RAX + 0x1c0],RCX
MOV RCX,qword ptr [RDX + 0x7f8]
MOV qword ptr [RAX + 0x1c8],RCX
JMP 0x001449a9
LAB_001449a7:
XOR EAX,EAX
LAB_001449a9:
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long pfs_create_metadata_lock_v1
(void *param_1,MDL_key *param_2,int param_3,int param_4,int param_5,char *param_6,
uint param_7)
{
void *pvVar1;
long lVar2;
if ((((flag_global_instrumentation == '\x01') && (global_metadata_class[4] == '\x01')) &&
(pvVar1 = pthread_getspecific(THR_PFS), pvVar1 != (void *)0x0)) &&
(lVar2 = create_metadata_lock(param_1,param_2,param_3,param_4,param_5,param_6,param_7),
lVar2 != 0)) {
*(int8 *)(lVar2 + 0x1c0) = *(int8 *)((long)pvVar1 + 0x850);
*(int8 *)(lVar2 + 0x1c8) = *(int8 *)((long)pvVar1 + 0x7f8);
return lVar2;
}
return 0;
}
| |
37,872 | remapped_memory_access::get_remapped(unsigned int) | msxemulator/build_O0/_deps/picotool-src/main.cpp | pair<range_map<uint32_t>::mapping, uint32_t> get_remapped(uint32_t address) {
try {
return rmap.get(address);
} catch (not_mapped_exception&) {
return std::make_pair(range_map<uint32_t>::mapping(0, rmap.next(address) - address), address);
}
} | O0 | cpp | remapped_memory_access::get_remapped(unsigned int):
subq $0xa8, %rsp
movq %rdi, 0x90(%rsp)
movl %esi, 0x8c(%rsp)
movq 0x90(%rsp), %rdi
movq %rdi, 0x20(%rsp)
addq $0x10, %rdi
movl 0x8c(%rsp), %esi
callq 0x890f0
movl %edx, 0x2c(%rsp)
movq %rax, 0x30(%rsp)
jmp 0x88fae
movl 0x2c(%rsp), %eax
movq 0x30(%rsp), %rcx
movq %rcx, 0x68(%rsp)
movl %eax, 0x70(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x9c(%rsp)
movl 0x70(%rsp), %eax
movl %eax, 0xa4(%rsp)
jmp 0x890af
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x80(%rsp)
movl %eax, 0x7c(%rsp)
movl 0x7c(%rsp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0x890d8
movq 0x80(%rsp), %rdi
callq 0xf270
movq 0x20(%rsp), %rdi
movq %rax, 0x60(%rsp)
addq $0x10, %rdi
movl 0x8c(%rsp), %esi
callq 0x893b0
movl %eax, 0x1c(%rsp)
jmp 0x8902c
movl 0x1c(%rsp), %edx
movl 0x8c(%rsp), %eax
subl %eax, %edx
leaq 0x58(%rsp), %rdi
xorl %esi, %esi
callq 0x89420
jmp 0x89047
leaq 0x58(%rsp), %rdi
leaq 0x8c(%rsp), %rsi
callq 0x89360
movl %edx, 0xc(%rsp)
movq %rax, 0x10(%rsp)
jmp 0x89064
movl 0xc(%rsp), %eax
movq 0x10(%rsp), %rcx
movq %rcx, 0x48(%rsp)
movl %eax, 0x50(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x9c(%rsp)
movl 0x50(%rsp), %eax
movl %eax, 0xa4(%rsp)
callq 0xf920
jmp 0x890af
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x80(%rsp)
movl %eax, 0x7c(%rsp)
callq 0xf920
jmp 0x890ad
jmp 0x890d8
movl 0xa4(%rsp), %eax
movl %eax, 0x40(%rsp)
movq 0x9c(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movl 0x40(%rsp), %edx
addq $0xa8, %rsp
retq
movq 0x80(%rsp), %rdi
callq 0xf9e0
movq %rax, %rdi
callq 0x2ebc0
nopl (%rax)
| _ZN22remapped_memory_access12get_remappedEj:
sub rsp, 0A8h
mov [rsp+0A8h+var_18], rdi
mov [rsp+0A8h+var_1C], esi
mov rdi, [rsp+0A8h+var_18]
mov [rsp+0A8h+var_88], rdi
add rdi, 10h
mov esi, [rsp+0A8h+var_1C]
call _ZN9range_mapIjE3getEj; range_map<uint>::get(uint)
mov [rsp+0A8h+var_7C], edx
mov [rsp+0A8h+var_78], rax
jmp short $+2
loc_88FAE:
mov eax, [rsp+0A8h+var_7C]
mov rcx, [rsp+0A8h+var_78]
mov [rsp+0A8h+var_40], rcx
mov [rsp+0A8h+var_38], eax
mov rax, [rsp+0A8h+var_40]
mov [rsp+0A8h+var_C], rax
mov eax, [rsp+0A8h+var_38]
mov [rsp+0A8h+var_4], eax
jmp loc_890AF
mov rcx, rax
mov eax, edx
mov [rsp+0A8h+var_28], rcx
mov [rsp+0A8h+var_2C], eax
mov eax, [rsp+0A8h+var_2C]
mov ecx, 1
cmp eax, ecx
jnz loc_890D8
mov rdi, [rsp+0A8h+var_28]; void *
call ___cxa_begin_catch
mov rdi, [rsp+0A8h+var_88]
mov [rsp+0A8h+var_48], rax
add rdi, 10h
mov esi, [rsp+0A8h+var_1C]
call _ZN9range_mapIjE4nextEj; range_map<uint>::next(uint)
mov [rsp+0A8h+var_8C], eax
jmp short $+2
loc_8902C:
mov edx, [rsp+0A8h+var_8C]
mov eax, [rsp+0A8h+var_1C]
sub edx, eax
lea rdi, [rsp+0A8h+var_50]
xor esi, esi
call _ZN9range_mapIjE7mappingC2Ejj; range_map<uint>::mapping::mapping(uint,uint)
jmp short $+2
loc_89047:
lea rdi, [rsp+0A8h+var_50]
lea rsi, [rsp+0A8h+var_1C]
call _ZSt9make_pairIN9range_mapIjE7mappingERjESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS5_INS6_IT0_E4typeEE6__typeEEOS7_OSC_; std::make_pair<range_map<uint>::mapping,uint &>(range_map<uint>::mapping&&,uint &&&)
mov [rsp+0A8h+var_9C], edx
mov [rsp+0A8h+var_98], rax
jmp short $+2
loc_89064:
mov eax, [rsp+0A8h+var_9C]
mov rcx, [rsp+0A8h+var_98]
mov [rsp+0A8h+var_60], rcx
mov [rsp+0A8h+var_58], eax
mov rax, [rsp+0A8h+var_60]
mov [rsp+0A8h+var_C], rax
mov eax, [rsp+0A8h+var_58]
mov [rsp+0A8h+var_4], eax
call ___cxa_end_catch
jmp short loc_890AF
mov rcx, rax
mov eax, edx
mov [rsp+0A8h+var_28], rcx
mov [rsp+0A8h+var_2C], eax
call ___cxa_end_catch
jmp short $+2
loc_890AD:
jmp short loc_890D8
loc_890AF:
mov eax, [rsp+0A8h+var_4]
mov [rsp+0A8h+var_68], eax
mov rax, [rsp+0A8h+var_C]
mov [rsp+0A8h+var_70], rax
mov rax, [rsp+0A8h+var_70]
mov edx, [rsp+0A8h+var_68]
add rsp, 0A8h
retn
loc_890D8:
mov rdi, [rsp+0A8h+var_28]
call __Unwind_Resume
mov rdi, rax
call __clang_call_terminate
| long long remapped_memory_access::get_remapped(remapped_memory_access *this)
{
return range_map<unsigned int>::get((char *)this + 16);
}
| get_remapped:
SUB RSP,0xa8
MOV qword ptr [RSP + 0x90],RDI
MOV dword ptr [RSP + 0x8c],ESI
MOV RDI,qword ptr [RSP + 0x90]
MOV qword ptr [RSP + 0x20],RDI
ADD RDI,0x10
MOV ESI,dword ptr [RSP + 0x8c]
LAB_00188f9e:
CALL 0x001890f0
LAB_00188fa3:
MOV dword ptr [RSP + 0x2c],EDX
MOV qword ptr [RSP + 0x30],RAX
JMP 0x00188fae
LAB_00188fae:
MOV EAX,dword ptr [RSP + 0x2c]
MOV RCX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x68],RCX
MOV dword ptr [RSP + 0x70],EAX
MOV RAX,qword ptr [RSP + 0x68]
MOV qword ptr [RSP + 0x9c],RAX
MOV EAX,dword ptr [RSP + 0x70]
MOV dword ptr [RSP + 0xa4],EAX
JMP 0x001890af
LAB_001890af:
MOV EAX,dword ptr [RSP + 0xa4]
MOV dword ptr [RSP + 0x40],EAX
MOV RAX,qword ptr [RSP + 0x9c]
MOV qword ptr [RSP + 0x38],RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV EDX,dword ptr [RSP + 0x40]
ADD RSP,0xa8
RET
|
/* remapped_memory_access::get_remapped(unsigned int) */
int1 [16] __thiscall
remapped_memory_access::get_remapped(remapped_memory_access *this,uint param_1)
{
int1 auVar1 [12];
int1 auVar2 [16];
/* try { // try from 00188f9e to 00188fa2 has its CatchHandler @ 00188fdd */
auVar1 = range_map<unsigned_int>::get((range_map<unsigned_int> *)(this + 0x10),param_1);
auVar2._12_4_ = 0;
auVar2._0_12_ = auVar1;
return auVar2;
}
| |
37,873 | LefDefParser::lefiNonDefault::clear() | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiNonDefault.cpp | void
lefiNonDefault::clear()
{
int i;
lefiSpacing *sr;
lefiVia *vr;
for (i = 0; i < numProps_; i++) {
lefFree(names_[i]);
lefFree(values_[i]);
dvalues_[i] = 0;
}
numProps_ = 0;
for (i = 0; i < numLayers_; i++) {
lefFree(layerName_[i]);
layerName_[i] = 0;
}
numLayers_ = 0;
for (i = 0; i < numVias_; i++) {
vr = viaRules_[i];
vr->Destroy();
lefFree((char*) (viaRules_[i]));
viaRules_[i] = 0;
}
numVias_ = 0;
for (i = 0; i < numSpacing_; i++) {
sr = spacingRules_[i];
sr->Destroy();
lefFree((char*) (spacingRules_[i]));
spacingRules_[i] = 0;
}
numSpacing_ = 0;
hardSpacing_ = 0;
for (i = 0; i < numUseVias_; i++) {
lefFree((char*) (useViaName_[i]));
}
numUseVias_ = 0;
for (i = 0; i < numUseViaRules_; i++) {
lefFree((char*) (useViaRuleName_[i]));
}
numUseViaRules_ = 0;
for (i = 0; i < numMinCuts_; i++) {
lefFree((char*) (cutLayerName_[i]));
}
numMinCuts_ = 0;
} | O3 | cpp | LefDefParser::lefiNonDefault::clear():
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x0, 0xf0(%rdi)
jle 0x2b4e5
xorl %r14d, %r14d
movq 0xf8(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x322d0
movq 0x100(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x322d0
movq 0x108(%rbx), %rax
movq $0x0, (%rax,%r14,8)
incq %r14
movslq 0xf0(%rbx), %rax
cmpq %rax, %r14
jl 0x2b4a7
movl $0x0, 0xf0(%rbx)
cmpl $0x0, 0x10(%rbx)
jle 0x2b51d
xorl %r14d, %r14d
movq 0x18(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x322d0
movq 0x18(%rbx), %rax
movq $0x0, (%rax,%r14,8)
incq %r14
movslq 0x10(%rbx), %rax
cmpq %rax, %r14
jl 0x2b4f8
movl $0x0, 0x10(%rbx)
cmpl $0x0, 0x90(%rbx)
jle 0x2b56e
xorl %r14d, %r14d
movq 0x98(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0xe8c4
movq 0x98(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x322d0
movq 0x98(%rbx), %rax
movq $0x0, (%rax,%r14,8)
incq %r14
movslq 0x90(%rbx), %rax
cmpq %rax, %r14
jl 0x2b530
movl $0x0, 0x90(%rbx)
cmpl $0x0, 0xa0(%rbx)
jle 0x2b5c2
xorl %r14d, %r14d
movq 0xa8(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0xcbc2
movq 0xa8(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x322d0
movq 0xa8(%rbx), %rax
movq $0x0, (%rax,%r14,8)
incq %r14
movslq 0xa0(%rbx), %rax
cmpq %rax, %r14
jl 0x2b584
xorl %eax, %eax
movl %eax, 0xa0(%rbx)
movl %eax, 0xb0(%rbx)
cmpl %eax, 0xb4(%rbx)
jle 0x2b5fa
xorl %r14d, %r14d
movq 0xc0(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x322d0
incq %r14
movslq 0xb4(%rbx), %rax
cmpq %rax, %r14
jl 0x2b5db
movl $0x0, 0xb4(%rbx)
cmpl $0x0, 0xc8(%rbx)
jle 0x2b62f
xorl %r14d, %r14d
movq 0xd0(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x322d0
incq %r14
movslq 0xc8(%rbx), %rax
cmpq %rax, %r14
jl 0x2b610
movl $0x0, 0xc8(%rbx)
cmpl $0x0, 0xd8(%rbx)
jle 0x2b664
xorl %r14d, %r14d
movq 0xe0(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x322d0
incq %r14
movslq 0xd8(%rbx), %rax
cmpq %rax, %r14
jl 0x2b645
movl $0x0, 0xd8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| _ZN12LefDefParser14lefiNonDefault5clearEv:
push r14
push rbx
push rax
mov rbx, rdi
cmp dword ptr [rdi+0F0h], 0
jle short loc_2B4E5
xor r14d, r14d
loc_2B4A7:
mov rax, [rbx+0F8h]
mov rdi, [rax+r14*8]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rbx+100h]
mov rdi, [rax+r14*8]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rbx+108h]
mov qword ptr [rax+r14*8], 0
inc r14
movsxd rax, dword ptr [rbx+0F0h]
cmp r14, rax
jl short loc_2B4A7
loc_2B4E5:
mov dword ptr [rbx+0F0h], 0
cmp dword ptr [rbx+10h], 0
jle short loc_2B51D
xor r14d, r14d
loc_2B4F8:
mov rax, [rbx+18h]
mov rdi, [rax+r14*8]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rbx+18h]
mov qword ptr [rax+r14*8], 0
inc r14
movsxd rax, dword ptr [rbx+10h]
cmp r14, rax
jl short loc_2B4F8
loc_2B51D:
mov dword ptr [rbx+10h], 0
cmp dword ptr [rbx+90h], 0
jle short loc_2B56E
xor r14d, r14d
loc_2B530:
mov rax, [rbx+98h]
mov rdi, [rax+r14*8]; this
call _ZN12LefDefParser7lefiVia7DestroyEv; LefDefParser::lefiVia::Destroy(void)
mov rax, [rbx+98h]
mov rdi, [rax+r14*8]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rbx+98h]
mov qword ptr [rax+r14*8], 0
inc r14
movsxd rax, dword ptr [rbx+90h]
cmp r14, rax
jl short loc_2B530
loc_2B56E:
mov dword ptr [rbx+90h], 0
cmp dword ptr [rbx+0A0h], 0
jle short loc_2B5C2
xor r14d, r14d
loc_2B584:
mov rax, [rbx+0A8h]
mov rdi, [rax+r14*8]; this
call _ZN12LefDefParser11lefiSpacing7DestroyEv; LefDefParser::lefiSpacing::Destroy(void)
mov rax, [rbx+0A8h]
mov rdi, [rax+r14*8]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rbx+0A8h]
mov qword ptr [rax+r14*8], 0
inc r14
movsxd rax, dword ptr [rbx+0A0h]
cmp r14, rax
jl short loc_2B584
loc_2B5C2:
xor eax, eax
mov [rbx+0A0h], eax
mov [rbx+0B0h], eax
cmp [rbx+0B4h], eax
jle short loc_2B5FA
xor r14d, r14d
loc_2B5DB:
mov rax, [rbx+0C0h]
mov rdi, [rax+r14*8]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
inc r14
movsxd rax, dword ptr [rbx+0B4h]
cmp r14, rax
jl short loc_2B5DB
loc_2B5FA:
mov dword ptr [rbx+0B4h], 0
cmp dword ptr [rbx+0C8h], 0
jle short loc_2B62F
xor r14d, r14d
loc_2B610:
mov rax, [rbx+0D0h]
mov rdi, [rax+r14*8]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
inc r14
movsxd rax, dword ptr [rbx+0C8h]
cmp r14, rax
jl short loc_2B610
loc_2B62F:
mov dword ptr [rbx+0C8h], 0
cmp dword ptr [rbx+0D8h], 0
jle short loc_2B664
xor r14d, r14d
loc_2B645:
mov rax, [rbx+0E0h]
mov rdi, [rax+r14*8]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
inc r14
movsxd rax, dword ptr [rbx+0D8h]
cmp r14, rax
jl short loc_2B645
loc_2B664:
mov dword ptr [rbx+0D8h], 0
add rsp, 8
pop rbx
pop r14
retn
| long long LefDefParser::lefiNonDefault::clear(LefDefParser::lefiNonDefault *this, void *a2)
{
long long v2; // r14
long long v3; // r14
long long v4; // r14
long long v5; // r14
long long result; // rax
long long v7; // r14
long long v8; // r14
long long v9; // r14
if ( *((int *)this + 60) > 0 )
{
v2 = 0LL;
do
{
LefDefParser::lefFree(*(LefDefParser **)(*((_QWORD *)this + 31) + 8 * v2), a2);
LefDefParser::lefFree(*(LefDefParser **)(*((_QWORD *)this + 32) + 8 * v2), a2);
*(_QWORD *)(*((_QWORD *)this + 33) + 8 * v2++) = 0LL;
}
while ( v2 < *((int *)this + 60) );
}
*((_DWORD *)this + 60) = 0;
if ( *((int *)this + 4) > 0 )
{
v3 = 0LL;
do
{
LefDefParser::lefFree(*(LefDefParser **)(*((_QWORD *)this + 3) + 8 * v3), a2);
*(_QWORD *)(*((_QWORD *)this + 3) + 8 * v3++) = 0LL;
}
while ( v3 < *((int *)this + 4) );
}
*((_DWORD *)this + 4) = 0;
if ( *((int *)this + 36) > 0 )
{
v4 = 0LL;
do
{
LefDefParser::lefiVia::Destroy(*(LefDefParser ***)(*((_QWORD *)this + 19) + 8 * v4), a2);
LefDefParser::lefFree(*(LefDefParser **)(*((_QWORD *)this + 19) + 8 * v4), a2);
*(_QWORD *)(*((_QWORD *)this + 19) + 8 * v4++) = 0LL;
}
while ( v4 < *((int *)this + 36) );
}
*((_DWORD *)this + 36) = 0;
if ( *((int *)this + 40) > 0 )
{
v5 = 0LL;
do
{
LefDefParser::lefiSpacing::Destroy(*(LefDefParser::lefiSpacing **)(*((_QWORD *)this + 21) + 8 * v5), a2);
LefDefParser::lefFree(*(LefDefParser **)(*((_QWORD *)this + 21) + 8 * v5), a2);
*(_QWORD *)(*((_QWORD *)this + 21) + 8 * v5++) = 0LL;
}
while ( v5 < *((int *)this + 40) );
}
result = 0LL;
*((_DWORD *)this + 40) = 0;
*((_DWORD *)this + 44) = 0;
if ( *((int *)this + 45) > 0 )
{
v7 = 0LL;
do
{
LefDefParser::lefFree(*(LefDefParser **)(*((_QWORD *)this + 24) + 8 * v7++), a2);
result = *((int *)this + 45);
}
while ( v7 < result );
}
*((_DWORD *)this + 45) = 0;
if ( *((int *)this + 50) > 0 )
{
v8 = 0LL;
do
{
LefDefParser::lefFree(*(LefDefParser **)(*((_QWORD *)this + 26) + 8 * v8++), a2);
result = *((int *)this + 50);
}
while ( v8 < result );
}
*((_DWORD *)this + 50) = 0;
if ( *((int *)this + 54) > 0 )
{
v9 = 0LL;
do
{
LefDefParser::lefFree(*(LefDefParser **)(*((_QWORD *)this + 28) + 8 * v9++), a2);
result = *((int *)this + 54);
}
while ( v9 < result );
}
*((_DWORD *)this + 54) = 0;
return result;
}
| clear:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
CMP dword ptr [RDI + 0xf0],0x0
JLE 0x0012b4e5
XOR R14D,R14D
LAB_0012b4a7:
MOV RAX,qword ptr [RBX + 0xf8]
MOV RDI,qword ptr [RAX + R14*0x8]
CALL 0x001322d0
MOV RAX,qword ptr [RBX + 0x100]
MOV RDI,qword ptr [RAX + R14*0x8]
CALL 0x001322d0
MOV RAX,qword ptr [RBX + 0x108]
MOV qword ptr [RAX + R14*0x8],0x0
INC R14
MOVSXD RAX,dword ptr [RBX + 0xf0]
CMP R14,RAX
JL 0x0012b4a7
LAB_0012b4e5:
MOV dword ptr [RBX + 0xf0],0x0
CMP dword ptr [RBX + 0x10],0x0
JLE 0x0012b51d
XOR R14D,R14D
LAB_0012b4f8:
MOV RAX,qword ptr [RBX + 0x18]
MOV RDI,qword ptr [RAX + R14*0x8]
CALL 0x001322d0
MOV RAX,qword ptr [RBX + 0x18]
MOV qword ptr [RAX + R14*0x8],0x0
INC R14
MOVSXD RAX,dword ptr [RBX + 0x10]
CMP R14,RAX
JL 0x0012b4f8
LAB_0012b51d:
MOV dword ptr [RBX + 0x10],0x0
CMP dword ptr [RBX + 0x90],0x0
JLE 0x0012b56e
XOR R14D,R14D
LAB_0012b530:
MOV RAX,qword ptr [RBX + 0x98]
MOV RDI,qword ptr [RAX + R14*0x8]
CALL 0x0010e8c4
MOV RAX,qword ptr [RBX + 0x98]
MOV RDI,qword ptr [RAX + R14*0x8]
CALL 0x001322d0
MOV RAX,qword ptr [RBX + 0x98]
MOV qword ptr [RAX + R14*0x8],0x0
INC R14
MOVSXD RAX,dword ptr [RBX + 0x90]
CMP R14,RAX
JL 0x0012b530
LAB_0012b56e:
MOV dword ptr [RBX + 0x90],0x0
CMP dword ptr [RBX + 0xa0],0x0
JLE 0x0012b5c2
XOR R14D,R14D
LAB_0012b584:
MOV RAX,qword ptr [RBX + 0xa8]
MOV RDI,qword ptr [RAX + R14*0x8]
CALL 0x0010cbc2
MOV RAX,qword ptr [RBX + 0xa8]
MOV RDI,qword ptr [RAX + R14*0x8]
CALL 0x001322d0
MOV RAX,qword ptr [RBX + 0xa8]
MOV qword ptr [RAX + R14*0x8],0x0
INC R14
MOVSXD RAX,dword ptr [RBX + 0xa0]
CMP R14,RAX
JL 0x0012b584
LAB_0012b5c2:
XOR EAX,EAX
MOV dword ptr [RBX + 0xa0],EAX
MOV dword ptr [RBX + 0xb0],EAX
CMP dword ptr [RBX + 0xb4],EAX
JLE 0x0012b5fa
XOR R14D,R14D
LAB_0012b5db:
MOV RAX,qword ptr [RBX + 0xc0]
MOV RDI,qword ptr [RAX + R14*0x8]
CALL 0x001322d0
INC R14
MOVSXD RAX,dword ptr [RBX + 0xb4]
CMP R14,RAX
JL 0x0012b5db
LAB_0012b5fa:
MOV dword ptr [RBX + 0xb4],0x0
CMP dword ptr [RBX + 0xc8],0x0
JLE 0x0012b62f
XOR R14D,R14D
LAB_0012b610:
MOV RAX,qword ptr [RBX + 0xd0]
MOV RDI,qword ptr [RAX + R14*0x8]
CALL 0x001322d0
INC R14
MOVSXD RAX,dword ptr [RBX + 0xc8]
CMP R14,RAX
JL 0x0012b610
LAB_0012b62f:
MOV dword ptr [RBX + 0xc8],0x0
CMP dword ptr [RBX + 0xd8],0x0
JLE 0x0012b664
XOR R14D,R14D
LAB_0012b645:
MOV RAX,qword ptr [RBX + 0xe0]
MOV RDI,qword ptr [RAX + R14*0x8]
CALL 0x001322d0
INC R14
MOVSXD RAX,dword ptr [RBX + 0xd8]
CMP R14,RAX
JL 0x0012b645
LAB_0012b664:
MOV dword ptr [RBX + 0xd8],0x0
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* LefDefParser::lefiNonDefault::clear() */
void __thiscall LefDefParser::lefiNonDefault::clear(lefiNonDefault *this)
{
long lVar1;
if (0 < *(int *)(this + 0xf0)) {
lVar1 = 0;
do {
lefFree(*(void **)(*(long *)(this + 0xf8) + lVar1 * 8));
lefFree(*(void **)(*(long *)(this + 0x100) + lVar1 * 8));
*(int8 *)(*(long *)(this + 0x108) + lVar1 * 8) = 0;
lVar1 = lVar1 + 1;
} while (lVar1 < *(int *)(this + 0xf0));
}
*(int4 *)(this + 0xf0) = 0;
if (0 < *(int *)(this + 0x10)) {
lVar1 = 0;
do {
lefFree(*(void **)(*(long *)(this + 0x18) + lVar1 * 8));
*(int8 *)(*(long *)(this + 0x18) + lVar1 * 8) = 0;
lVar1 = lVar1 + 1;
} while (lVar1 < *(int *)(this + 0x10));
}
*(int4 *)(this + 0x10) = 0;
if (0 < *(int *)(this + 0x90)) {
lVar1 = 0;
do {
lefiVia::Destroy(*(lefiVia **)(*(long *)(this + 0x98) + lVar1 * 8));
lefFree(*(void **)(*(long *)(this + 0x98) + lVar1 * 8));
*(int8 *)(*(long *)(this + 0x98) + lVar1 * 8) = 0;
lVar1 = lVar1 + 1;
} while (lVar1 < *(int *)(this + 0x90));
}
*(int4 *)(this + 0x90) = 0;
if (0 < *(int *)(this + 0xa0)) {
lVar1 = 0;
do {
lefiSpacing::Destroy(*(lefiSpacing **)(*(long *)(this + 0xa8) + lVar1 * 8));
lefFree(*(void **)(*(long *)(this + 0xa8) + lVar1 * 8));
*(int8 *)(*(long *)(this + 0xa8) + lVar1 * 8) = 0;
lVar1 = lVar1 + 1;
} while (lVar1 < *(int *)(this + 0xa0));
}
*(int4 *)(this + 0xa0) = 0;
*(int4 *)(this + 0xb0) = 0;
if (0 < *(int *)(this + 0xb4)) {
lVar1 = 0;
do {
lefFree(*(void **)(*(long *)(this + 0xc0) + lVar1 * 8));
lVar1 = lVar1 + 1;
} while (lVar1 < *(int *)(this + 0xb4));
}
*(int4 *)(this + 0xb4) = 0;
if (0 < *(int *)(this + 200)) {
lVar1 = 0;
do {
lefFree(*(void **)(*(long *)(this + 0xd0) + lVar1 * 8));
lVar1 = lVar1 + 1;
} while (lVar1 < *(int *)(this + 200));
}
*(int4 *)(this + 200) = 0;
if (0 < *(int *)(this + 0xd8)) {
lVar1 = 0;
do {
lefFree(*(void **)(*(long *)(this + 0xe0) + lVar1 * 8));
lVar1 = lVar1 + 1;
} while (lVar1 < *(int *)(this + 0xd8));
}
*(int4 *)(this + 0xd8) = 0;
return;
}
| |
37,874 | is_not_initialized | eloqsql/build_O0/libmariadb/libmariadb/ma_client_plugin.c | static int is_not_initialized(MYSQL *mysql, const char *name)
{
if (initialized)
return 0;
my_set_error(mysql, CR_AUTH_PLUGIN_CANNOT_LOAD,
SQLSTATE_UNKNOWN, ER(CR_AUTH_PLUGIN_CANNOT_LOAD),
name, "not initialized");
return 1;
} | O0 | c | is_not_initialized:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
cmpb $0x0, 0x39ca69(%rip) # 0x4042e0
je 0x67882
movl $0x0, -0x4(%rbp)
jmp 0x678bc
movq -0x10(%rbp), %rdi
leaq 0x1e2143(%rip), %rax # 0x2499d0
movq (%rax), %rdx
leaq 0x1e2149(%rip), %rax # 0x2499e0
movq 0x1d8(%rax), %rcx
movq -0x18(%rbp), %r8
movl $0x80b, %esi # imm = 0x80B
leaq 0x78379(%rip), %r9 # 0xdfc27
movb $0x0, %al
callq 0x47bd0
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| is_not_initialized:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
cmp cs:initialized, 0
jz short loc_67882
mov [rbp+var_4], 0
jmp short loc_678BC
loc_67882:
mov rdi, [rbp+var_10]
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
lea rax, client_errors
mov rcx, [rax+1D8h]
mov r8, [rbp+var_18]
mov esi, 80Bh
lea r9, aNotInitialized; "not initialized"
mov al, 0
call my_set_error
mov [rbp+var_4], 1
loc_678BC:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
| long long is_not_initialized(long long a1, long long a2)
{
if ( initialized )
{
return 0;
}
else
{
my_set_error(a1, 0x80Bu, (long long)SQLSTATE_UNKNOWN, (long long)client_errors[59], a2, "not initialized");
return 1;
}
}
| is_not_initialized:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
CMP byte ptr [0x005042e0],0x0
JZ 0x00167882
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001678bc
LAB_00167882:
MOV RDI,qword ptr [RBP + -0x10]
LEA RAX,[0x3499d0]
MOV RDX,qword ptr [RAX]
LEA RAX,[0x3499e0]
MOV RCX,qword ptr [RAX + 0x1d8]
MOV R8,qword ptr [RBP + -0x18]
MOV ESI,0x80b
LEA R9,[0x1dfc27]
MOV AL,0x0
CALL 0x00147bd0
MOV dword ptr [RBP + -0x4],0x1
LAB_001678bc:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
bool is_not_initialized(int8 param_1,int8 param_2)
{
bool bVar1;
bVar1 = initialized == '\0';
if (bVar1) {
my_set_error(param_1,0x80b,SQLSTATE_UNKNOWN,PTR_s_Plugin__s_could_not_be_loaded____00349bb8,
param_2,"not initialized");
}
return bVar1;
}
| |
37,875 | Elevetor::del_out(int, int) | LeafBlue[P]myElevetor/elevetor.cpp | int Elevetor::del_out(int newstair, int direct_)
{
if(direct_ == direct){
if(direct_ == 1){
up_out->erase(
std::remove(up_out->begin(),up_out->end(),newstair),
up_out->end()
);
return 1;
}else{
down_out->erase(
std::remove(down_out->begin(),down_out->end(),newstair),
down_out->end()
);
return 1;
}
}
return 0;
} | O1 | cpp | Elevetor::del_out(int, int):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %esi, 0x4(%rsp)
xorl %eax, %eax
cmpl %edx, 0x48(%rdi)
jne 0x9094
movq %rdi, %rbx
xorl %r12d, %r12d
cmpl $0x1, %edx
setne %r12b
movq 0x10(%rdi,%r12,8), %r14
movq %r14, %rdi
callq 0x9576
movq %rax, %r15
movq 0x10(%rbx,%r12,8), %rdi
callq 0x959e
leaq 0x4(%rsp), %rdx
movq %r15, %rdi
movq %rax, %rsi
callq 0x99b2
movq %rax, %r15
movq 0x10(%rbx,%r12,8), %rdi
callq 0x959e
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x94de
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
| _ZN8Elevetor7del_outEii:
push r15
push r14
push r12
push rbx
push rax
mov [rsp+28h+var_24], esi
xor eax, eax
cmp [rdi+48h], edx
jnz short loc_9094
mov rbx, rdi
xor r12d, r12d
cmp edx, 1
setnz r12b
mov r14, [rdi+r12*8+10h]
mov rdi, r14
call _ZN5QListIiE5beginEv; QList<int>::begin(void)
mov r15, rax
mov rdi, [rbx+r12*8+10h]
call _ZN5QListIiE3endEv; QList<int>::end(void)
lea rdx, [rsp+28h+var_24]
mov rdi, r15
mov rsi, rax
call _ZSt11__remove_ifIN5QListIiE8iteratorEN9__gnu_cxx5__ops16_Iter_equals_valIKiEEET_S8_S8_T0_; std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>>(QList<int>::iterator,QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>)
mov r15, rax
mov rdi, [rbx+r12*8+10h]
call _ZN5QListIiE3endEv; QList<int>::end(void)
mov rdi, r14
mov rsi, r15
mov rdx, rax
call _ZN5QListIiE5eraseENS0_14const_iteratorES1_; QList<int>::erase(QList<int>::const_iterator,QList<int>::const_iterator)
mov eax, 1
loc_9094:
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
| long long Elevetor::del_out(Elevetor *this, int a2, int a3)
{
long long result; // rax
_BOOL8 v4; // r12
long long v5; // r14
long long v6; // r15
long long v7; // rax
long long v8; // r15
long long v9; // rax
_DWORD v10[9]; // [rsp+0h] [rbp-24h] BYREF
v10[0] = a2;
result = 0LL;
if ( *((_DWORD *)this + 18) == a3 )
{
v4 = a3 != 1;
v5 = *((_QWORD *)this + v4 + 2);
v6 = QList<int>::begin(v5);
v7 = QList<int>::end(*((_QWORD *)this + v4 + 2));
v8 = std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>>(v6, v7, v10);
v9 = QList<int>::end(*((_QWORD *)this + v4 + 2));
QList<int>::erase(v5, v8, v9);
return 1LL;
}
return result;
}
| del_out:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV dword ptr [RSP + 0x4],ESI
XOR EAX,EAX
CMP dword ptr [RDI + 0x48],EDX
JNZ 0x00109094
MOV RBX,RDI
XOR R12D,R12D
CMP EDX,0x1
SETNZ R12B
MOV R14,qword ptr [RDI + R12*0x8 + 0x10]
MOV RDI,R14
CALL 0x00109576
MOV R15,RAX
MOV RDI,qword ptr [RBX + R12*0x8 + 0x10]
CALL 0x0010959e
LEA RDX,[RSP + 0x4]
MOV RDI,R15
MOV RSI,RAX
CALL 0x001099b2
MOV R15,RAX
MOV RDI,qword ptr [RBX + R12*0x8 + 0x10]
CALL 0x0010959e
MOV RDI,R14
MOV RSI,R15
MOV RDX,RAX
CALL 0x001094de
MOV EAX,0x1
LAB_00109094:
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
/* Elevetor::del_out(int, int) */
bool __thiscall Elevetor::del_out(Elevetor *this,int param_1,int param_2)
{
int iVar1;
QList<int> *this_00;
int8 uVar2;
int8 uVar3;
ulong uVar4;
int1 local_24 [4];
iVar1 = *(int *)(this + 0x48);
if (iVar1 == param_2) {
uVar4 = (ulong)(param_2 != 1);
this_00 = *(QList<int> **)(this + uVar4 * 8 + 0x10);
uVar2 = QList<int>::begin(this_00);
uVar3 = QList<int>::end(*(QList<int> **)(this + uVar4 * 8 + 0x10));
uVar2 = std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int_const>>
(uVar2,uVar3,local_24);
uVar3 = QList<int>::end(*(QList<int> **)(this + uVar4 * 8 + 0x10));
QList<int>::erase(this_00,uVar2,uVar3);
}
return iVar1 == param_2;
}
| |
37,876 | Elevetor::del_out(int, int) | LeafBlue[P]myElevetor/elevetor.cpp | int Elevetor::del_out(int newstair, int direct_)
{
if(direct_ == direct){
if(direct_ == 1){
up_out->erase(
std::remove(up_out->begin(),up_out->end(),newstair),
up_out->end()
);
return 1;
}else{
down_out->erase(
std::remove(down_out->begin(),down_out->end(),newstair),
down_out->end()
);
return 1;
}
}
return 0;
} | O3 | cpp | Elevetor::del_out(int, int):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %esi, 0x4(%rsp)
xorl %eax, %eax
cmpl %edx, 0x48(%rdi)
jne 0x8f8a
movq %rdi, %rbx
xorl %r12d, %r12d
cmpl $0x1, %edx
setne %r12b
movq 0x10(%rdi,%r12,8), %r14
movq %r14, %rdi
callq 0x94aa
movq %rax, %r15
movq 0x10(%rbx,%r12,8), %rdi
callq 0x94d2
leaq 0x4(%rsp), %rdx
movq %r15, %rdi
movq %rax, %rsi
callq 0x9890
movq %rax, %r15
movq 0x10(%rbx,%r12,8), %rdi
callq 0x94d2
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x9400
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
| _ZN8Elevetor7del_outEii:
push r15
push r14
push r12
push rbx
push rax
mov [rsp+28h+var_24], esi
xor eax, eax
cmp [rdi+48h], edx
jnz short loc_8F8A
mov rbx, rdi
xor r12d, r12d
cmp edx, 1
setnz r12b
mov r14, [rdi+r12*8+10h]
mov rdi, r14
call _ZN5QListIiE5beginEv; QList<int>::begin(void)
mov r15, rax
mov rdi, [rbx+r12*8+10h]
call _ZN5QListIiE3endEv; QList<int>::end(void)
lea rdx, [rsp+28h+var_24]
mov rdi, r15
mov rsi, rax
call _ZSt11__remove_ifIN5QListIiE8iteratorEN9__gnu_cxx5__ops16_Iter_equals_valIKiEEET_S8_S8_T0_; std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>>(QList<int>::iterator,QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>)
mov r15, rax
mov rdi, [rbx+r12*8+10h]
call _ZN5QListIiE3endEv; QList<int>::end(void)
mov rdi, r14
mov rsi, r15
mov rdx, rax
call _ZN5QListIiE5eraseENS0_14const_iteratorES1_; QList<int>::erase(QList<int>::const_iterator,QList<int>::const_iterator)
mov eax, 1
loc_8F8A:
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
| long long Elevetor::del_out(Elevetor *this, int a2, int a3)
{
long long result; // rax
_BOOL8 v4; // r12
long long v5; // r14
long long v6; // r15
long long v7; // rax
long long v8; // r15
long long v9; // rax
_DWORD v10[9]; // [rsp+0h] [rbp-24h] BYREF
v10[0] = a2;
result = 0LL;
if ( *((_DWORD *)this + 18) == a3 )
{
v4 = a3 != 1;
v5 = *((_QWORD *)this + v4 + 2);
v6 = QList<int>::begin(v5);
v7 = QList<int>::end(*((_QWORD *)this + v4 + 2));
v8 = std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>>(v6, v7, v10);
v9 = QList<int>::end(*((_QWORD *)this + v4 + 2));
QList<int>::erase(v5, v8, v9);
return 1LL;
}
return result;
}
| del_out:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV dword ptr [RSP + 0x4],ESI
XOR EAX,EAX
CMP dword ptr [RDI + 0x48],EDX
JNZ 0x00108f8a
MOV RBX,RDI
XOR R12D,R12D
CMP EDX,0x1
SETNZ R12B
MOV R14,qword ptr [RDI + R12*0x8 + 0x10]
MOV RDI,R14
CALL 0x001094aa
MOV R15,RAX
MOV RDI,qword ptr [RBX + R12*0x8 + 0x10]
CALL 0x001094d2
LEA RDX,[RSP + 0x4]
MOV RDI,R15
MOV RSI,RAX
CALL 0x00109890
MOV R15,RAX
MOV RDI,qword ptr [RBX + R12*0x8 + 0x10]
CALL 0x001094d2
MOV RDI,R14
MOV RSI,R15
MOV RDX,RAX
CALL 0x00109400
MOV EAX,0x1
LAB_00108f8a:
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
/* Elevetor::del_out(int, int) */
bool __thiscall Elevetor::del_out(Elevetor *this,int param_1,int param_2)
{
int iVar1;
QList<int> *this_00;
int8 uVar2;
int8 uVar3;
ulong uVar4;
int1 local_24 [4];
iVar1 = *(int *)(this + 0x48);
if (iVar1 == param_2) {
uVar4 = (ulong)(param_2 != 1);
this_00 = *(QList<int> **)(this + uVar4 * 8 + 0x10);
uVar2 = QList<int>::begin(this_00);
uVar3 = QList<int>::end(*(QList<int> **)(this + uVar4 * 8 + 0x10));
uVar2 = std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int_const>>
(uVar2,uVar3,local_24);
uVar3 = QList<int>::end(*(QList<int> **)(this + uVar4 * 8 + 0x10));
QList<int>::erase(this_00,uVar2,uVar3);
}
return iVar1 == param_2;
}
| |
37,877 | ma_clear_session_state | eloqsql/libmariadb/libmariadb/mariadb_lib.c | static void ma_clear_session_state(MYSQL *mysql)
{
uint i;
if (!mysql || !mysql->extension)
return;
for (i= SESSION_TRACK_BEGIN; i <= SESSION_TRACK_END; i++)
{
list_free(mysql->extension->session_state[i].list, 0);
}
memset(mysql->extension->session_state, 0, sizeof(struct st_mariadb_session_state) * SESSION_TRACK_TYPES);
} | O3 | c | ma_clear_session_state:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x21944
movq %rdi, %rbx
cmpq $0x0, 0x4f0(%rdi)
je 0x21944
movl $0x8, %r14d
movq 0x4f0(%rbx), %rax
movq (%rax,%r14), %rdi
xorl %esi, %esi
callq 0x2434f
addq $0x10, %r14
cmpq $0x68, %r14
jne 0x21906
movq 0x4f0(%rbx), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x58(%rax)
movups %xmm0, 0x48(%rax)
movups %xmm0, 0x38(%rax)
movups %xmm0, 0x28(%rax)
movups %xmm0, 0x18(%rax)
movups %xmm0, 0x8(%rax)
popq %rbx
popq %r14
popq %rbp
retq
| ma_clear_session_state:
push rbp
mov rbp, rsp
push r14
push rbx
test rdi, rdi
jz short loc_21944
mov rbx, rdi
cmp qword ptr [rdi+4F0h], 0
jz short loc_21944
mov r14d, 8
loc_21906:
mov rax, [rbx+4F0h]
mov rdi, [rax+r14]
xor esi, esi
call list_free
add r14, 10h
cmp r14, 68h ; 'h'
jnz short loc_21906
mov rax, [rbx+4F0h]
xorps xmm0, xmm0
movups xmmword ptr [rax+58h], xmm0
movups xmmword ptr [rax+48h], xmm0
movups xmmword ptr [rax+38h], xmm0
movups xmmword ptr [rax+28h], xmm0
movups xmmword ptr [rax+18h], xmm0
movups xmmword ptr [rax+8], xmm0
loc_21944:
pop rbx
pop r14
pop rbp
retn
| long long ma_clear_session_state(long long a1)
{
long long i; // r14
long long result; // rax
if ( a1 && *(_QWORD *)(a1 + 1264) )
{
for ( i = 8LL; i != 104; i += 16LL )
list_free(*(_QWORD *)(*(_QWORD *)(a1 + 1264) + i), 0LL);
result = *(_QWORD *)(a1 + 1264);
*(_OWORD *)(result + 88) = 0LL;
*(_OWORD *)(result + 72) = 0LL;
*(_OWORD *)(result + 56) = 0LL;
*(_OWORD *)(result + 40) = 0LL;
*(_OWORD *)(result + 24) = 0LL;
*(_OWORD *)(result + 8) = 0LL;
}
return result;
}
| ma_clear_session_state:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
TEST RDI,RDI
JZ 0x00121944
MOV RBX,RDI
CMP qword ptr [RDI + 0x4f0],0x0
JZ 0x00121944
MOV R14D,0x8
LAB_00121906:
MOV RAX,qword ptr [RBX + 0x4f0]
MOV RDI,qword ptr [RAX + R14*0x1]
XOR ESI,ESI
CALL 0x0012434f
ADD R14,0x10
CMP R14,0x68
JNZ 0x00121906
MOV RAX,qword ptr [RBX + 0x4f0]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX + 0x58],XMM0
MOVUPS xmmword ptr [RAX + 0x48],XMM0
MOVUPS xmmword ptr [RAX + 0x38],XMM0
MOVUPS xmmword ptr [RAX + 0x28],XMM0
MOVUPS xmmword ptr [RAX + 0x18],XMM0
MOVUPS xmmword ptr [RAX + 0x8],XMM0
LAB_00121944:
POP RBX
POP R14
POP RBP
RET
|
void ma_clear_session_state(long param_1)
{
long lVar1;
if ((param_1 != 0) && (*(long *)(param_1 + 0x4f0) != 0)) {
lVar1 = 8;
do {
list_free(*(int8 *)(*(long *)(param_1 + 0x4f0) + lVar1),0);
lVar1 = lVar1 + 0x10;
} while (lVar1 != 0x68);
lVar1 = *(long *)(param_1 + 0x4f0);
*(int8 *)(lVar1 + 0x58) = 0;
*(int8 *)(lVar1 + 0x60) = 0;
*(int8 *)(lVar1 + 0x48) = 0;
*(int8 *)(lVar1 + 0x50) = 0;
*(int8 *)(lVar1 + 0x38) = 0;
*(int8 *)(lVar1 + 0x40) = 0;
*(int8 *)(lVar1 + 0x28) = 0;
*(int8 *)(lVar1 + 0x30) = 0;
*(int8 *)(lVar1 + 0x18) = 0;
*(int8 *)(lVar1 + 0x20) = 0;
*(int8 *)(lVar1 + 8) = 0;
*(int8 *)(lVar1 + 0x10) = 0;
}
return;
}
| |
37,878 | tailoring_append2 | eloqsql/strings/ctype.c | static int
tailoring_append2(MY_XML_PARSER *st,
const char *fmt,
size_t len1, const char *attr1,
size_t len2, const char *attr2)
{
struct my_cs_file_info *i= (struct my_cs_file_info *) st->user_data;
size_t newlen= i->tailoring_length + len1 + len2 + 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) len1, attr1, (int) len2, attr2);
i->tailoring_length+= strlen(dst);
return MY_XML_OK;
}
return MY_XML_ERROR;
} | O0 | c | tailoring_append2:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq 0x140(%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq 0x690(%rax), %rax
addq -0x20(%rbp), %rax
addq -0x30(%rbp), %rax
addq $0x40, %rax
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0xbd800
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jne 0xbdbf4
movq -0x40(%rbp), %rax
movq 0x688(%rax), %rax
movq -0x40(%rbp), %rcx
addq 0x690(%rcx), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rax
movl %eax, %edx
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %rax
movl %eax, %r8d
movq -0x38(%rbp), %r9
movb $0x0, %al
callq 0x369c0
movq -0x50(%rbp), %rdi
callq 0x363e0
movq %rax, %rcx
movq -0x40(%rbp), %rax
addq 0x690(%rax), %rcx
movq %rcx, 0x690(%rax)
movl $0x0, -0x4(%rbp)
jmp 0xbdbfb
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| tailoring_append2:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
mov [rbp+var_38], r9
mov rax, [rbp+var_10]
mov rax, [rax+140h]
mov [rbp+var_40], rax
mov rax, [rbp+var_40]
mov rax, [rax+690h]
add rax, [rbp+var_20]
add rax, [rbp+var_30]
add rax, 40h ; '@'
mov [rbp+var_48], rax
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_48]
call my_charset_file_tailoring_realloc
mov ecx, eax
xor eax, eax
cmp eax, ecx
jnz short loc_BDBF4
mov rax, [rbp+var_40]
mov rax, [rax+688h]
mov rcx, [rbp+var_40]
add rax, [rcx+690h]
mov [rbp+var_50], rax
mov rdi, [rbp+var_50]
mov rsi, [rbp+var_18]
mov rax, [rbp+var_20]
mov edx, eax
mov rcx, [rbp+var_28]
mov rax, [rbp+var_30]
mov r8d, eax
mov r9, [rbp+var_38]
mov al, 0
call _sprintf
mov rdi, [rbp+var_50]
call _strlen
mov rcx, rax
mov rax, [rbp+var_40]
add rcx, [rax+690h]
mov [rax+690h], rcx
mov [rbp+var_4], 0
jmp short loc_BDBFB
loc_BDBF4:
mov [rbp+var_4], 1
loc_BDBFB:
mov eax, [rbp+var_4]
add rsp, 50h
pop rbp
retn
| long long tailoring_append2(long long a1, const char *a2, long long a3, long long a4, long long a5, long long a6)
{
long long v7; // [rsp+0h] [rbp-50h]
_QWORD *v8; // [rsp+10h] [rbp-40h]
unsigned int v10; // [rsp+20h] [rbp-30h]
unsigned int v12; // [rsp+30h] [rbp-20h]
v12 = a3;
v10 = a5;
v8 = *(_QWORD **)(a1 + 320);
if ( (unsigned int)my_charset_file_tailoring_realloc(v8, a5 + a3 + v8[210] + 64) )
{
return 1;
}
else
{
v7 = v8[210] + v8[209];
sprintf(v7, a2, v12, a4, v10, a6);
v8[210] += strlen(v7);
return 0;
}
}
| tailoring_append2:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R8
MOV qword ptr [RBP + -0x38],R9
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x140]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RAX + 0x690]
ADD RAX,qword ptr [RBP + -0x20]
ADD RAX,qword ptr [RBP + -0x30]
ADD RAX,0x40
MOV qword ptr [RBP + -0x48],RAX
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x48]
CALL 0x001bd800
MOV ECX,EAX
XOR EAX,EAX
CMP EAX,ECX
JNZ 0x001bdbf4
MOV RAX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RAX + 0x688]
MOV RCX,qword ptr [RBP + -0x40]
ADD RAX,qword ptr [RCX + 0x690]
MOV qword ptr [RBP + -0x50],RAX
MOV RDI,qword ptr [RBP + -0x50]
MOV RSI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x20]
MOV EDX,EAX
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x30]
MOV R8D,EAX
MOV R9,qword ptr [RBP + -0x38]
MOV AL,0x0
CALL 0x001369c0
MOV RDI,qword ptr [RBP + -0x50]
CALL 0x001363e0
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x40]
ADD RCX,qword ptr [RAX + 0x690]
MOV qword ptr [RAX + 0x690],RCX
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001bdbfb
LAB_001bdbf4:
MOV dword ptr [RBP + -0x4],0x1
LAB_001bdbfb:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x50
POP RBP
RET
|
bool tailoring_append2(long param_1,char *param_2,ulong param_3,int8 param_4,ulong param_5,
int8 param_6)
{
long lVar1;
int iVar2;
char *__s;
size_t sVar3;
lVar1 = *(long *)(param_1 + 0x140);
iVar2 = my_charset_file_tailoring_realloc
(lVar1,*(long *)(lVar1 + 0x690) + param_3 + param_5 + 0x40);
if (iVar2 == 0) {
__s = (char *)(*(long *)(lVar1 + 0x688) + *(long *)(lVar1 + 0x690));
sprintf(__s,param_2,param_3 & 0xffffffff,param_4,param_5 & 0xffffffff,param_6);
sVar3 = strlen(__s);
*(size_t *)(lVar1 + 0x690) = sVar3 + *(long *)(lVar1 + 0x690);
}
return iVar2 != 0;
}
| |
37,879 | parse_ident | bluesky950520[P]quickjs/quickjs.c | static JSAtom parse_ident(JSParseState *s, const uint8_t **pp,
BOOL *pident_has_escape, int c, BOOL is_private)
{
const uint8_t *p, *p_next;
char ident_buf[128], *buf;
size_t ident_size, ident_pos;
JSAtom atom = JS_ATOM_NULL;
p = *pp;
buf = ident_buf;
ident_size = sizeof(ident_buf);
ident_pos = 0;
if (is_private)
buf[ident_pos++] = '#';
for(;;) {
if (c < 0x80) {
buf[ident_pos++] = c;
} else {
ident_pos += utf8_encode((uint8_t*)buf + ident_pos, c);
}
c = *p;
p_next = p + 1;
if (c == '\\' && *p_next == 'u') {
c = lre_parse_escape(&p_next, TRUE);
*pident_has_escape = TRUE;
} else if (c >= 0x80) {
c = utf8_decode(p, &p_next);
/* no need to test for invalid UTF-8, 0xFFFD is not ident_next */
}
if (!lre_js_is_ident_next(c))
break;
p = p_next;
if (unlikely(ident_pos >= ident_size - UTF8_CHAR_LEN_MAX)) {
if (ident_realloc(s->ctx, &buf, &ident_size, ident_buf))
goto done;
}
}
/* buf is pure ASCII or UTF-8 encoded */
atom = JS_NewAtomLen(s->ctx, buf, ident_pos);
done:
if (unlikely(buf != ident_buf))
js_free(s->ctx, buf);
*pp = p;
return atom;
} | O3 | c | parse_ident:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movl %ecx, %r15d
movq %rdx, %r12
movq %rdi, 0x10(%rsp)
movq %rsi, 0x28(%rsp)
movq (%rsi), %r14
leaq 0x30(%rsp), %rax
movq %rax, 0x8(%rsp)
movq $0x80, 0x20(%rsp)
testl %r8d, %r8d
je 0x6245e
movb $0x23, 0x30(%rsp)
movl $0x1, %ebp
jmp 0x62460
xorl %ebp, %ebp
leaq 0x43ee9(%rip), %r13 # 0xa6350
cmpl $0x7f, %r15d
jg 0x6247b
movq 0x8(%rsp), %rbx
movb %r15b, (%rbx,%rbp)
incq %rbp
jmp 0x6248f
movq 0x8(%rsp), %rbx
leaq (%rbx,%rbp), %rdi
movl %r15d, %esi
callq 0x1bfb4
addq %rax, %rbp
movzbl (%r14), %r15d
leaq 0x1(%r14), %rax
movq %rax, 0x18(%rsp)
cmpl $0x5c, %r15d
jne 0x624c9
movl $0x5c, %r15d
cmpb $0x75, (%rax)
jne 0x624e4
leaq 0x18(%rsp), %rdi
movl $0x1, %esi
callq 0x9707b
movl %eax, %r15d
movl $0x1, (%r12)
jmp 0x624de
testb %r15b, %r15b
jns 0x624de
movq %r14, %rdi
leaq 0x18(%rsp), %rsi
callq 0x1c05a
movl %eax, %r15d
cmpl $0x7f, %r15d
ja 0x624fa
movl %r15d, %eax
shrl $0x5, %eax
movl (%r13,%rax,4), %ecx
xorl %eax, %eax
btl %r15d, %ecx
setb %al
jmp 0x6251b
movl %r15d, %edi
callq 0x9b278
testl %eax, %eax
setne %al
movl %r15d, %ecx
andl $-0x2, %ecx
cmpl $0x200c, %ecx # imm = 0x200C
sete %cl
orb %al, %cl
movzbl %cl, %eax
testl %eax, %eax
je 0x62563
movq 0x18(%rsp), %r14
movq 0x20(%rsp), %rax
addq $-0x4, %rax
cmpq %rax, %rbp
jb 0x62467
movq 0x10(%rsp), %rax
movq (%rax), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x20(%rsp), %rdx
leaq 0x30(%rsp), %rcx
callq 0x4ec17
testl %eax, %eax
je 0x62467
xorl %ebp, %ebp
movq 0x8(%rsp), %rbx
jmp 0x62578
movq 0x10(%rsp), %rax
movq (%rax), %rdi
movq %rbx, %rsi
movq %rbp, %rdx
callq 0x2052b
movl %eax, %ebp
leaq 0x30(%rsp), %rax
cmpq %rax, %rbx
jne 0x6259e
movq 0x28(%rsp), %rax
movq %r14, (%rax)
movl %ebp, %eax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%rsp), %rax
movq (%rax), %rdi
movq %rbx, %rsi
callq 0x1d481
jmp 0x62582
| parse_ident:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0B8h
mov r15d, ecx
mov r12, rdx
mov [rsp+0E8h+var_D8], rdi
mov [rsp+0E8h+var_C0], rsi
mov r14, [rsi]
lea rax, [rsp+0E8h+var_B8]
mov [rsp+0E8h+var_E0], rax
mov [rsp+0E8h+var_C8], 80h
test r8d, r8d
jz short loc_6245E
mov [rsp+0E8h+var_B8], 23h ; '#'
mov ebp, 1
jmp short loc_62460
loc_6245E:
xor ebp, ebp
loc_62460:
lea r13, lre_id_continue_table_ascii
loc_62467:
cmp r15d, 7Fh
jg short loc_6247B
mov rbx, [rsp+0E8h+var_E0]
mov [rbx+rbp], r15b
inc rbp
jmp short loc_6248F
loc_6247B:
mov rbx, [rsp+0E8h+var_E0]
lea rdi, [rbx+rbp]
mov esi, r15d
call utf8_encode
add rbp, rax
loc_6248F:
movzx r15d, byte ptr [r14]
lea rax, [r14+1]
mov [rsp+0E8h+var_D0], rax
cmp r15d, 5Ch ; '\'
jnz short loc_624C9
mov r15d, 5Ch ; '\'
cmp byte ptr [rax], 75h ; 'u'
jnz short loc_624E4
lea rdi, [rsp+0E8h+var_D0]
mov esi, 1
call lre_parse_escape
mov r15d, eax
mov dword ptr [r12], 1
jmp short loc_624DE
loc_624C9:
test r15b, r15b
jns short loc_624DE
mov rdi, r14
lea rsi, [rsp+0E8h+var_D0]
call utf8_decode
mov r15d, eax
loc_624DE:
cmp r15d, 7Fh
ja short loc_624FA
loc_624E4:
mov eax, r15d
shr eax, 5
mov ecx, [r13+rax*4+0]
xor eax, eax
bt ecx, r15d
setb al
jmp short loc_6251B
loc_624FA:
mov edi, r15d
call lre_is_id_continue
test eax, eax
setnz al
mov ecx, r15d
and ecx, 0FFFFFFFEh
cmp ecx, 200Ch
setz cl
or cl, al
movzx eax, cl
loc_6251B:
test eax, eax
jz short loc_62563
mov r14, [rsp+0E8h+var_D0]
mov rax, [rsp+0E8h+var_C8]
add rax, 0FFFFFFFFFFFFFFFCh
cmp rbp, rax
jb loc_62467
mov rax, [rsp+0E8h+var_D8]
mov rdi, [rax]
lea rsi, [rsp+0E8h+var_E0]
lea rdx, [rsp+0E8h+var_C8]
lea rcx, [rsp+0E8h+var_B8]
call ident_realloc
test eax, eax
jz loc_62467
xor ebp, ebp
mov rbx, [rsp+0E8h+var_E0]
jmp short loc_62578
loc_62563:
mov rax, [rsp+0E8h+var_D8]
mov rdi, [rax]
mov rsi, rbx
mov rdx, rbp
call JS_NewAtomLen
mov ebp, eax
loc_62578:
lea rax, [rsp+0E8h+var_B8]
cmp rbx, rax
jnz short loc_6259E
loc_62582:
mov rax, [rsp+0E8h+var_C0]
mov [rax], r14
mov eax, ebp
add rsp, 0B8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_6259E:
mov rax, [rsp+0E8h+var_D8]
mov rdi, [rax]
mov rsi, rbx
call js_free
jmp short loc_62582
| long long parse_ident(long long *a1, char **a2, _DWORD *a3, unsigned int a4, int a5)
{
char *v7; // r14
unsigned long long v8; // rbp
unsigned __int8 *v9; // rbx
int v10; // ecx
int v11; // eax
unsigned int v12; // ebp
unsigned __int8 *v14; // [rsp+8h] [rbp-E0h] BYREF
long long *v15; // [rsp+10h] [rbp-D8h]
char *v16; // [rsp+18h] [rbp-D0h] BYREF
long long v17; // [rsp+20h] [rbp-C8h] BYREF
char **v18; // [rsp+28h] [rbp-C0h]
_BYTE v19[184]; // [rsp+30h] [rbp-B8h] BYREF
v15 = a1;
v18 = a2;
v7 = *a2;
v14 = v19;
v17 = 128LL;
if ( a5 )
{
v19[0] = 35;
v8 = 1LL;
}
else
{
v8 = 0LL;
}
while ( 1 )
{
v9 = v14;
if ( (int)a4 > 127 )
v8 += utf8_encode(&v14[v8], a4);
else
v14[v8++] = a4;
a4 = (unsigned __int8)*v7;
v16 = v7 + 1;
if ( a4 == 92 )
{
a4 = 92;
if ( v7[1] != 117 )
goto LABEL_13;
a4 = lre_parse_escape(&v16, 1LL);
*a3 = 1;
}
else if ( (a4 & 0x80u) != 0 )
{
a4 = utf8_decode(v7, &v16);
}
if ( a4 <= 0x7F )
{
LABEL_13:
v10 = lre_id_continue_table_ascii[a4 >> 5];
v11 = _bittest(&v10, a4);
goto LABEL_15;
}
v11 = (unsigned int)lre_is_id_continue(a4) != 0 || (a4 & 0xFFFFFFFE) == 8204;
LABEL_15:
if ( !v11 )
break;
v7 = v16;
if ( v8 >= v17 - 4 && (unsigned int)ident_realloc(*v15, (long long *)&v14, &v17, (long long)v19) )
{
v12 = 0;
v9 = v14;
goto LABEL_20;
}
}
v12 = JS_NewAtomLen(*v15, v9, v8);
LABEL_20:
if ( v9 != v19 )
js_free(*v15, (long long)v9);
*v18 = v7;
return v12;
}
| parse_ident:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xb8
MOV R15D,ECX
MOV R12,RDX
MOV qword ptr [RSP + 0x10],RDI
MOV qword ptr [RSP + 0x28],RSI
MOV R14,qword ptr [RSI]
LEA RAX,[RSP + 0x30]
MOV qword ptr [RSP + 0x8],RAX
MOV qword ptr [RSP + 0x20],0x80
TEST R8D,R8D
JZ 0x0016245e
MOV byte ptr [RSP + 0x30],0x23
MOV EBP,0x1
JMP 0x00162460
LAB_0016245e:
XOR EBP,EBP
LAB_00162460:
LEA R13,[0x1a6350]
LAB_00162467:
CMP R15D,0x7f
JG 0x0016247b
MOV RBX,qword ptr [RSP + 0x8]
MOV byte ptr [RBX + RBP*0x1],R15B
INC RBP
JMP 0x0016248f
LAB_0016247b:
MOV RBX,qword ptr [RSP + 0x8]
LEA RDI,[RBX + RBP*0x1]
MOV ESI,R15D
CALL 0x0011bfb4
ADD RBP,RAX
LAB_0016248f:
MOVZX R15D,byte ptr [R14]
LEA RAX,[R14 + 0x1]
MOV qword ptr [RSP + 0x18],RAX
CMP R15D,0x5c
JNZ 0x001624c9
MOV R15D,0x5c
CMP byte ptr [RAX],0x75
JNZ 0x001624e4
LEA RDI,[RSP + 0x18]
MOV ESI,0x1
CALL 0x0019707b
MOV R15D,EAX
MOV dword ptr [R12],0x1
JMP 0x001624de
LAB_001624c9:
TEST R15B,R15B
JNS 0x001624de
MOV RDI,R14
LEA RSI,[RSP + 0x18]
CALL 0x0011c05a
MOV R15D,EAX
LAB_001624de:
CMP R15D,0x7f
JA 0x001624fa
LAB_001624e4:
MOV EAX,R15D
SHR EAX,0x5
MOV ECX,dword ptr [R13 + RAX*0x4]
XOR EAX,EAX
BT ECX,R15D
SETC AL
JMP 0x0016251b
LAB_001624fa:
MOV EDI,R15D
CALL 0x0019b278
TEST EAX,EAX
SETNZ AL
MOV ECX,R15D
AND ECX,0xfffffffe
CMP ECX,0x200c
SETZ CL
OR CL,AL
MOVZX EAX,CL
LAB_0016251b:
TEST EAX,EAX
JZ 0x00162563
MOV R14,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RSP + 0x20]
ADD RAX,-0x4
CMP RBP,RAX
JC 0x00162467
MOV RAX,qword ptr [RSP + 0x10]
MOV RDI,qword ptr [RAX]
LEA RSI,[RSP + 0x8]
LEA RDX,[RSP + 0x20]
LEA RCX,[RSP + 0x30]
CALL 0x0014ec17
TEST EAX,EAX
JZ 0x00162467
XOR EBP,EBP
MOV RBX,qword ptr [RSP + 0x8]
JMP 0x00162578
LAB_00162563:
MOV RAX,qword ptr [RSP + 0x10]
MOV RDI,qword ptr [RAX]
MOV RSI,RBX
MOV RDX,RBP
CALL 0x0012052b
MOV EBP,EAX
LAB_00162578:
LEA RAX,[RSP + 0x30]
CMP RBX,RAX
JNZ 0x0016259e
LAB_00162582:
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RAX],R14
MOV EAX,EBP
ADD RSP,0xb8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0016259e:
MOV RAX,qword ptr [RSP + 0x10]
MOV RDI,qword ptr [RAX]
MOV RSI,RBX
CALL 0x0011d481
JMP 0x00162582
|
int4
parse_ident(int8 *param_1,long *param_2,int4 *param_3,uint param_4,int param_5)
{
byte bVar1;
uint uVar2;
int iVar3;
int4 uVar4;
long lVar5;
int1 *puVar6;
ulong uVar7;
byte *pbVar8;
ulong uVar9;
bool bVar10;
int1 *local_e0;
int8 *local_d8;
byte *local_d0;
long local_c8;
long *local_c0;
int1 local_b8 [136];
uVar9 = (ulong)param_4;
local_e0 = local_b8;
local_c8 = 0x80;
if (param_5 != 0) {
local_b8[0] = 0x23;
}
uVar7 = (ulong)(param_5 != 0);
pbVar8 = (byte *)*param_2;
local_d8 = param_1;
local_c0 = param_2;
do {
puVar6 = local_e0;
if ((int)uVar9 < 0x80) {
local_e0[uVar7] = (char)uVar9;
uVar7 = uVar7 + 1;
}
else {
lVar5 = utf8_encode(local_e0 + uVar7,uVar9);
uVar7 = uVar7 + lVar5;
}
bVar1 = *pbVar8;
uVar9 = (ulong)bVar1;
local_d0 = pbVar8 + 1;
if (bVar1 == 0x5c) {
uVar9 = 0x5c;
if (*local_d0 == 0x75) {
uVar2 = lre_parse_escape(&local_d0,1);
uVar9 = (ulong)uVar2;
*param_3 = 1;
goto LAB_001624de;
}
LAB_001624e4:
bVar10 = (*(uint *)(lre_id_continue_table_ascii + (uVar9 >> 5) * 4) >> ((uint)uVar9 & 0x1f) &
1) != 0;
}
else {
if ((char)bVar1 < '\0') {
uVar2 = utf8_decode(pbVar8,&local_d0);
uVar9 = (ulong)uVar2;
}
LAB_001624de:
if ((uint)uVar9 < 0x80) goto LAB_001624e4;
iVar3 = lre_is_id_continue(uVar9);
bVar10 = ((uint)uVar9 & 0xfffffffe) == 0x200c || iVar3 != 0;
}
if (!bVar10) {
uVar4 = JS_NewAtomLen(*local_d8,puVar6,uVar7);
goto LAB_00162578;
}
pbVar8 = local_d0;
if ((local_c8 - 4U <= uVar7) &&
(iVar3 = ident_realloc(*local_d8,&local_e0,&local_c8,local_b8), iVar3 != 0)) {
uVar4 = 0;
puVar6 = local_e0;
LAB_00162578:
if (puVar6 != local_b8) {
js_free(*local_d8,puVar6);
}
*local_c0 = (long)pbVar8;
return uVar4;
}
} while( true );
}
| |
37,880 | my_hash_free | eloqsql/mysys/hash.c | void my_hash_free(HASH *hash)
{
DBUG_ENTER("my_hash_free");
DBUG_PRINT("enter",("hash:%p elements: %ld",
hash, hash->records));
my_hash_free_elements(hash);
hash->free= 0;
delete_dynamic(&hash->array);
hash->blength= 0;
DBUG_VOID_RETURN;
} | O3 | c | my_hash_free:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x18(%rdi), %r14d
testq %r14, %r14
je 0x2ff8d
movq $0x0, 0x18(%rbx)
cmpq $0x0, 0x60(%rbx)
je 0x2ff8d
movq 0x28(%rbx), %r15
shlq $0x4, %r14
addq %r15, %r14
movq 0x8(%r15), %rdi
addq $0x10, %r15
callq *0x60(%rbx)
cmpq %r14, %r15
jb 0x2ff7d
xorl %r14d, %r14d
movq %r14, 0x60(%rbx)
leaq 0x28(%rbx), %rdi
callq 0x2e0f0
movq %r14, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| my_hash_free:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rdi
mov r14d, [rdi+18h]
test r14, r14
jz short loc_2FF8D
mov qword ptr [rbx+18h], 0
cmp qword ptr [rbx+60h], 0
jz short loc_2FF8D
mov r15, [rbx+28h]
shl r14, 4
add r14, r15
loc_2FF7D:
mov rdi, [r15+8]
add r15, 10h
call qword ptr [rbx+60h]
cmp r15, r14
jb short loc_2FF7D
loc_2FF8D:
xor r14d, r14d
mov [rbx+60h], r14
lea rdi, [rbx+28h]
call delete_dynamic
mov [rbx+10h], r14
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| long long my_hash_free(long long a1)
{
long long v2; // r14
unsigned long long v3; // r15
unsigned long long v4; // r14
long long v5; // rdi
long long result; // rax
v2 = *(unsigned int *)(a1 + 24);
if ( *(_DWORD *)(a1 + 24) )
{
*(_QWORD *)(a1 + 24) = 0LL;
if ( *(_QWORD *)(a1 + 96) )
{
v3 = *(_QWORD *)(a1 + 40);
v4 = v3 + 16 * v2;
do
{
v5 = *(_QWORD *)(v3 + 8);
v3 += 16LL;
(*(void ( **)(long long))(a1 + 96))(v5);
}
while ( v3 < v4 );
}
}
*(_QWORD *)(a1 + 96) = 0LL;
result = delete_dynamic(a1 + 40);
*(_QWORD *)(a1 + 16) = 0LL;
return result;
}
| my_hash_free:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV R14D,dword ptr [RDI + 0x18]
TEST R14,R14
JZ 0x0012ff8d
MOV qword ptr [RBX + 0x18],0x0
CMP qword ptr [RBX + 0x60],0x0
JZ 0x0012ff8d
MOV R15,qword ptr [RBX + 0x28]
SHL R14,0x4
ADD R14,R15
LAB_0012ff7d:
MOV RDI,qword ptr [R15 + 0x8]
ADD R15,0x10
CALL qword ptr [RBX + 0x60]
CMP R15,R14
JC 0x0012ff7d
LAB_0012ff8d:
XOR R14D,R14D
MOV qword ptr [RBX + 0x60],R14
LEA RDI,[RBX + 0x28]
CALL 0x0012e0f0
MOV qword ptr [RBX + 0x10],R14
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
void my_hash_free(long param_1)
{
int8 *puVar1;
uint uVar2;
ulong uVar3;
ulong uVar4;
uVar2 = *(uint *)(param_1 + 0x18);
if (((ulong)uVar2 != 0) && (*(int8 *)(param_1 + 0x18) = 0, *(long *)(param_1 + 0x60) != 0))
{
uVar4 = *(ulong *)(param_1 + 0x28);
uVar3 = (ulong)uVar2 * 0x10 + uVar4;
do {
puVar1 = (int8 *)(uVar4 + 8);
uVar4 = uVar4 + 0x10;
(**(code **)(param_1 + 0x60))(*puVar1);
} while (uVar4 < uVar3);
}
*(int8 *)(param_1 + 0x60) = 0;
delete_dynamic(param_1 + 0x28);
*(int8 *)(param_1 + 0x10) = 0;
return;
}
| |
37,881 | lf_hash_delete | eloqsql/mysys/lf_hash.cc | int lf_hash_delete(LF_HASH *hash, LF_PINS *pins, const void *key, uint keylen)
{
LF_SLIST **el;
uint bucket, hashnr;
hashnr= hash->hash_function(hash->charset, (uchar *)key, keylen) & INT_MAX32;
/* hide OOM errors - if we cannot initialize a bucket, try the previous one */
for (bucket= hashnr % hash->size; ;bucket= my_clear_highest_bit(bucket))
{
el= (LF_SLIST **)lf_dynarray_lvalue(&hash->array, bucket);
if (el && (*el || initialize_bucket(hash, el, bucket, pins) == 0))
break;
if (unlikely(bucket == 0))
return 1; /* if there's no bucket==0, the hash is empty */
}
if (l_delete(el, hash->charset, my_reverse_bits(hashnr) | 1,
(uchar *)key, keylen, pins))
{
return 1;
}
my_atomic_add32(&hash->count, -1);
return 0;
} | O3 | cpp | lf_hash_delete:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0xa8(%rdi), %rdi
movl %ecx, %eax
movq %rdx, -0x38(%rbp)
movq %rdx, %rsi
movq %rax, -0x30(%rbp)
movq %rax, %rdx
callq *0xa0(%r14)
movl %eax, %r15d
andl $0x7fffffff, %eax # imm = 0x7FFFFFFF
movq %rax, -0x58(%rbp)
xorl %edx, %edx
divl 0xc0(%r14)
movl %edx, %r12d
movq %r14, %rdi
movl %r12d, %esi
callq 0x2babd
testq %rax, %rax
jne 0x2bfc8
testl %r12d, %r12d
je 0x2c0db
movl %r12d, %eax
shrl %eax
movl %r12d, %ecx
shrl $0x2, %ecx
orl %eax, %ecx
movl %ecx, %eax
shrl $0x2, %eax
orl %ecx, %eax
movl %eax, %ecx
shrl $0x4, %ecx
orl %eax, %ecx
movl %ecx, %eax
shrl $0x8, %eax
orl %ecx, %eax
movl %eax, %ecx
shrl $0x10, %ecx
orl %eax, %ecx
andl %ecx, %r12d
jmp 0x2bf81
movq %rax, %r13
cmpq $0x0, (%rax)
jne 0x2bfe6
movq %r14, %rdi
movq %r13, %rsi
movl %r12d, %edx
movq %rbx, %rcx
callq 0x2bdcb
testl %eax, %eax
jne 0x2bf91
movq 0xa8(%r14), %rsi
movl $0xff, %eax
movl %r15d, %ecx
andl %eax, %ecx
leaq 0x551a2(%rip), %rdx # 0x811a0
movzbl (%rdx,%rcx), %ecx
shll $0x18, %ecx
movl %r15d, %edi
shrl $0x8, %edi
andl %eax, %edi
movzbl (%rdx,%rdi), %edi
shll $0x10, %edi
orl %ecx, %edi
shrl $0x10, %r15d
andl %eax, %r15d
movzbl (%rdx,%r15), %eax
shll $0x8, %eax
orl %edi, %eax
movq -0x58(%rbp), %rcx
shrl $0x18, %ecx
movzbl (%rdx,%rcx), %r15d
orl %eax, %r15d
orl $0x1, %r15d
leaq -0x50(%rbp), %r9
movq %r13, %rdi
movq %rsi, %r12
movl %r15d, %edx
movq -0x38(%rbp), %rcx
movq -0x30(%rbp), %r8
pushq $0x0
pushq %rbx
callq 0x2c2dd
popq %rcx
popq %rdx
testl %eax, %eax
je 0x2c0ca
movq -0x48(%rbp), %rcx
movq -0x40(%rbp), %rax
movq %rax, %rdx
orq $0x1, %rdx
lock
cmpxchgq %rdx, (%rcx)
je 0x2c08e
movq %rax, -0x40(%rbp)
movq %r13, %rdi
movq %r12, %rsi
movl %r15d, %edx
movq -0x38(%rbp), %rcx
movq -0x30(%rbp), %r8
leaq -0x50(%rbp), %r9
jmp 0x2c04f
movq -0x40(%rbp), %rcx
movq -0x50(%rbp), %rdx
movq -0x48(%rbp), %rax
lock
cmpxchgq %rcx, (%rdx)
jne 0x2c0ed
movq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x46e33
xorl %eax, %eax
xchgq %rax, (%rbx)
xorl %eax, %eax
xchgq %rax, 0x8(%rbx)
xorl %eax, %eax
xchgq %rax, 0x10(%rbx)
xorl %eax, %eax
lock
decl 0xc4(%r14)
jmp 0x2c0de
xorl %eax, %eax
xchgq %rax, (%rbx)
xorl %eax, %eax
xchgq %rax, 0x8(%rbx)
xorl %eax, %eax
xchgq %rax, 0x10(%rbx)
pushq $0x1
popq %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq -0x50(%rbp), %r9
movq %rax, 0x8(%r9)
movq %r13, %rdi
movq %r12, %rsi
movl %r15d, %edx
movq -0x38(%rbp), %rcx
movq -0x30(%rbp), %r8
pushq $0x0
pushq %rbx
callq 0x2c2dd
popq %rcx
popq %rdx
jmp 0x2c0ad
| lf_hash_delete:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov rbx, rsi
mov r14, rdi
mov rdi, [rdi+0A8h]
mov eax, ecx
mov [rbp+var_38], rdx
mov rsi, rdx
mov [rbp+var_30], rax
mov rdx, rax
call qword ptr [r14+0A0h]
mov r15d, eax
and eax, 7FFFFFFFh
mov [rbp+var_58], rax
xor edx, edx
div dword ptr [r14+0C0h]
mov r12d, edx
loc_2BF81:
mov rdi, r14
mov esi, r12d
call lf_dynarray_lvalue
test rax, rax
jnz short loc_2BFC8
loc_2BF91:
test r12d, r12d
jz loc_2C0DB
mov eax, r12d
shr eax, 1
mov ecx, r12d
shr ecx, 2
or ecx, eax
mov eax, ecx
shr eax, 2
or eax, ecx
mov ecx, eax
shr ecx, 4
or ecx, eax
mov eax, ecx
shr eax, 8
or eax, ecx
mov ecx, eax
shr ecx, 10h
or ecx, eax
and r12d, ecx
jmp short loc_2BF81
loc_2BFC8:
mov r13, rax
cmp qword ptr [rax], 0
jnz short loc_2BFE6
mov rdi, r14
mov rsi, r13
mov edx, r12d
mov rcx, rbx
call _ZL17initialize_bucketP10st_lf_hashPP8LF_SLISTjP7LF_PINS; initialize_bucket(st_lf_hash *,LF_SLIST **,uint,LF_PINS *)
test eax, eax
jnz short loc_2BF91
loc_2BFE6:
mov rsi, [r14+0A8h]
mov eax, 0FFh
mov ecx, r15d
and ecx, eax
lea rdx, _my_bits_reverse_table
movzx ecx, byte ptr [rdx+rcx]
shl ecx, 18h
mov edi, r15d
shr edi, 8
and edi, eax
movzx edi, byte ptr [rdx+rdi]
shl edi, 10h
or edi, ecx
shr r15d, 10h
and r15d, eax
movzx eax, byte ptr [rdx+r15]
shl eax, 8
or eax, edi
mov rcx, [rbp+var_58]
shr ecx, 18h
movzx r15d, byte ptr [rdx+rcx]
or r15d, eax
or r15d, 1
lea r9, [rbp+var_50]
mov rdi, r13
mov r12, rsi
mov edx, r15d
mov rcx, [rbp+var_38]
mov r8, [rbp+var_30]
loc_2C04F:
push 0
push rbx
call _ZL6l_findPP8LF_SLISTPK15charset_info_stjPKhmP6CURSORP7LF_PINSPFcPvSB_E; l_find(LF_SLIST **,charset_info_st const*,uint,uchar const*,ulong,CURSOR *,LF_PINS *,char (*)(void *,void *))
pop rcx
pop rdx
test eax, eax
jz short loc_2C0CA
mov rcx, [rbp+var_48]
mov rax, [rbp+var_40]
mov rdx, rax
or rdx, 1
lock cmpxchg [rcx], rdx
jz short loc_2C08E
mov [rbp+var_40], rax
mov rdi, r13
mov rsi, r12
mov edx, r15d
mov rcx, [rbp+var_38]
mov r8, [rbp+var_30]
lea r9, [rbp+var_50]
jmp short loc_2C04F
loc_2C08E:
mov rcx, [rbp+var_40]
mov rdx, [rbp+var_50]
mov rax, [rbp+var_48]
lock cmpxchg [rdx], rcx
jnz short loc_2C0ED
mov rsi, [rbp+var_48]
mov rdi, rbx
call lf_pinbox_free
loc_2C0AD:
xor eax, eax
xchg rax, [rbx]
xor eax, eax
xchg rax, [rbx+8]
xor eax, eax
xchg rax, [rbx+10h]
xor eax, eax
lock dec dword ptr [r14+0C4h]
jmp short loc_2C0DE
loc_2C0CA:
xor eax, eax
xchg rax, [rbx]
xor eax, eax
xchg rax, [rbx+8]
xor eax, eax
xchg rax, [rbx+10h]
loc_2C0DB:
push 1
pop rax
loc_2C0DE:
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_2C0ED:
lea r9, [rbp+var_50]
mov [r9+8], rax
mov rdi, r13
mov rsi, r12
mov edx, r15d
mov rcx, [rbp+var_38]
mov r8, [rbp+var_30]
push 0
push rbx
call _ZL6l_findPP8LF_SLISTPK15charset_info_stjPKhmP6CURSORP7LF_PINSPFcPvSB_E; l_find(LF_SLIST **,charset_info_st const*,uint,uchar const*,ulong,CURSOR *,LF_PINS *,char (*)(void *,void *))
pop rcx
pop rdx
jmp short loc_2C0AD
| long long lf_hash_delete(long long a1, volatile long long *a2, long long a3, unsigned int a4)
{
long long v6; // rdi
int v7; // r15d
unsigned int i; // r12d
volatile signed long long *v9; // rax
int v10; // r13d
long long v11; // rsi
int v12; // r15d
int v13; // edi
int v14; // r12d
int v15; // edx
int v16; // ecx
int j; // r8d
signed long long v18; // rax
signed long long v19; // rtt
volatile signed long long *v20; // rax
volatile signed long long *v21; // rtt
long long result; // rax
volatile signed long long *v23; // [rsp+10h] [rbp-50h] BYREF
volatile signed long long *v24; // [rsp+18h] [rbp-48h]
signed long long v25; // [rsp+20h] [rbp-40h]
long long v26; // [rsp+28h] [rbp-38h]
long long v27; // [rsp+30h] [rbp-30h]
v6 = *(_QWORD *)(a1 + 168);
v26 = a3;
v27 = a4;
v7 = (*(long long ( **)(long long, long long, _QWORD))(a1 + 160))(v6, a3, a4);
for ( i = (v7 & 0x7FFFFFFFu) % *(_DWORD *)(a1 + 192);
;
i &= (i >> 1) | (i >> 2) | (((i >> 1) | (i >> 2)) >> 2) | (((i >> 1) | (i >> 2) | (((i >> 1) | (i >> 2)) >> 2)) >> 4) | (((i >> 1) | (i >> 2) | (((i >> 1) | (i >> 2)) >> 2) | (((i >> 1) | (i >> 2) | (((i >> 1) | (i >> 2)) >> 2)) >> 4)) >> 8) | (((i >> 1) | (i >> 2) | (((i >> 1) | (i >> 2)) >> 2) | (((i >> 1) | (i >> 2) | (((i >> 1) | (i >> 2)) >> 2)) >> 4) | (((i >> 1) | (i >> 2) | (((i >> 1) | (i >> 2)) >> 2) | (((i >> 1) | (i >> 2) | (((i >> 1) | (i >> 2)) >> 2)) >> 4)) >> 8)) >> 16) )
{
v9 = (volatile signed long long *)lf_dynarray_lvalue(a1, i);
if ( v9 )
{
v10 = (int)v9;
if ( *v9 || !(unsigned int)initialize_bucket(a1, v9, i, (long long)a2) )
break;
}
if ( !i )
return 1LL;
}
v11 = *(_QWORD *)(a1 + 168);
v12 = (my_bits_reverse_table[(unsigned __int8)v7] << 24) | (my_bits_reverse_table[BYTE1(v7)] << 16) | (my_bits_reverse_table[BYTE2(v7)] << 8) | my_bits_reverse_table[(v7 & 0x7FFFFFFFu) >> 24] | 1;
v13 = v10;
v14 = v11;
v15 = v12;
v16 = v26;
for ( j = v27; ; j = v27 )
{
if ( !(unsigned int)l_find(v13, v11, v15, v16, j, (unsigned int)&v23, (long long)a2, 0LL) )
{
_InterlockedExchange64(a2, 0LL);
_InterlockedExchange64(a2 + 1, 0LL);
_InterlockedExchange64(a2 + 2, 0LL);
return 1LL;
}
v19 = v25;
v18 = _InterlockedCompareExchange64(v24, v25 | 1, v25);
if ( v19 == v18 )
break;
v25 = v18;
v13 = v10;
LODWORD(v11) = v14;
v15 = v12;
v16 = v26;
}
v21 = v24;
v20 = (volatile signed long long *)_InterlockedCompareExchange64(v23, v25, (signed long long)v24);
if ( v21 == v20 )
{
lf_pinbox_free(a2, v24);
}
else
{
v24 = v20;
l_find(v10, v14, v12, v26, v27, (unsigned int)&v23, (long long)a2, 0LL);
}
_InterlockedExchange64(a2, 0LL);
_InterlockedExchange64(a2 + 1, 0LL);
_InterlockedExchange64(a2 + 2, 0LL);
result = 0LL;
_InterlockedDecrement((volatile signed __int32 *)(a1 + 196));
return result;
}
| lf_hash_delete:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV RBX,RSI
MOV R14,RDI
MOV RDI,qword ptr [RDI + 0xa8]
MOV EAX,ECX
MOV qword ptr [RBP + -0x38],RDX
MOV RSI,RDX
MOV qword ptr [RBP + -0x30],RAX
MOV RDX,RAX
CALL qword ptr [R14 + 0xa0]
MOV R15D,EAX
AND EAX,0x7fffffff
MOV qword ptr [RBP + -0x58],RAX
XOR EDX,EDX
DIV dword ptr [R14 + 0xc0]
MOV R12D,EDX
LAB_0012bf81:
MOV RDI,R14
MOV ESI,R12D
CALL 0x0012babd
TEST RAX,RAX
JNZ 0x0012bfc8
LAB_0012bf91:
TEST R12D,R12D
JZ 0x0012c0db
MOV EAX,R12D
SHR EAX,0x1
MOV ECX,R12D
SHR ECX,0x2
OR ECX,EAX
MOV EAX,ECX
SHR EAX,0x2
OR EAX,ECX
MOV ECX,EAX
SHR ECX,0x4
OR ECX,EAX
MOV EAX,ECX
SHR EAX,0x8
OR EAX,ECX
MOV ECX,EAX
SHR ECX,0x10
OR ECX,EAX
AND R12D,ECX
JMP 0x0012bf81
LAB_0012bfc8:
MOV R13,RAX
CMP qword ptr [RAX],0x0
JNZ 0x0012bfe6
MOV RDI,R14
MOV RSI,R13
MOV EDX,R12D
MOV RCX,RBX
CALL 0x0012bdcb
TEST EAX,EAX
JNZ 0x0012bf91
LAB_0012bfe6:
MOV RSI,qword ptr [R14 + 0xa8]
MOV EAX,0xff
MOV ECX,R15D
AND ECX,EAX
LEA RDX,[0x1811a0]
MOVZX ECX,byte ptr [RDX + RCX*0x1]
SHL ECX,0x18
MOV EDI,R15D
SHR EDI,0x8
AND EDI,EAX
MOVZX EDI,byte ptr [RDX + RDI*0x1]
SHL EDI,0x10
OR EDI,ECX
SHR R15D,0x10
AND R15D,EAX
MOVZX EAX,byte ptr [RDX + R15*0x1]
SHL EAX,0x8
OR EAX,EDI
MOV RCX,qword ptr [RBP + -0x58]
SHR ECX,0x18
MOVZX R15D,byte ptr [RDX + RCX*0x1]
OR R15D,EAX
OR R15D,0x1
LEA R9,[RBP + -0x50]
MOV RDI,R13
MOV R12,RSI
MOV EDX,R15D
MOV RCX,qword ptr [RBP + -0x38]
MOV R8,qword ptr [RBP + -0x30]
LAB_0012c04f:
PUSH 0x0
PUSH RBX
CALL 0x0012c2dd
POP RCX
POP RDX
TEST EAX,EAX
JZ 0x0012c0ca
MOV RCX,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RBP + -0x40]
MOV RDX,RAX
OR RDX,0x1
CMPXCHG.LOCK qword ptr [RCX],RDX
JZ 0x0012c08e
MOV qword ptr [RBP + -0x40],RAX
MOV RDI,R13
MOV RSI,R12
MOV EDX,R15D
MOV RCX,qword ptr [RBP + -0x38]
MOV R8,qword ptr [RBP + -0x30]
LEA R9,[RBP + -0x50]
JMP 0x0012c04f
LAB_0012c08e:
MOV RCX,qword ptr [RBP + -0x40]
MOV RDX,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RBP + -0x48]
CMPXCHG.LOCK qword ptr [RDX],RCX
JNZ 0x0012c0ed
MOV RSI,qword ptr [RBP + -0x48]
MOV RDI,RBX
CALL 0x00146e33
LAB_0012c0ad:
XOR EAX,EAX
XCHG qword ptr [RBX],RAX
XOR EAX,EAX
XCHG qword ptr [RBX + 0x8],RAX
XOR EAX,EAX
XCHG qword ptr [RBX + 0x10],RAX
XOR EAX,EAX
DEC.LOCK dword ptr [R14 + 0xc4]
JMP 0x0012c0de
LAB_0012c0ca:
XOR EAX,EAX
XCHG qword ptr [RBX],RAX
XOR EAX,EAX
XCHG qword ptr [RBX + 0x8],RAX
XOR EAX,EAX
XCHG qword ptr [RBX + 0x10],RAX
LAB_0012c0db:
PUSH 0x1
POP RAX
LAB_0012c0de:
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0012c0ed:
LEA R9,[RBP + -0x50]
MOV qword ptr [R9 + 0x8],RAX
MOV RDI,R13
MOV RSI,R12
MOV EDX,R15D
MOV RCX,qword ptr [RBP + -0x38]
MOV R8,qword ptr [RBP + -0x30]
PUSH 0x0
PUSH RBX
CALL 0x0012c2dd
POP RCX
POP RDX
JMP 0x0012c0ad
|
int8 lf_hash_delete(st_lf_hash *param_1,LF_PINS *param_2,uchar *param_3,ulong param_4)
{
charset_info_st *pcVar1;
uint uVar2;
int iVar3;
LF_SLIST **ppLVar4;
ulong uVar5;
ulong *puVar6;
uint uVar7;
uint uVar8;
bool bVar9;
ulong *local_58;
ulong *local_50;
ulong local_48;
uchar *local_40;
ulong local_38;
local_38 = param_4 & 0xffffffff;
local_40 = param_3;
uVar2 = (**(code **)(param_1 + 0xa0))(*(int8 *)(param_1 + 0xa8),param_3,local_38);
uVar5 = (ulong)(uVar2 & 0x7fffffff) % (ulong)*(uint *)(param_1 + 0xc0);
while( true ) {
uVar8 = (uint)uVar5;
ppLVar4 = (LF_SLIST **)lf_dynarray_lvalue(param_1,uVar5);
if ((ppLVar4 != (LF_SLIST **)0x0) &&
((*ppLVar4 != (LF_SLIST *)0x0 ||
(iVar3 = initialize_bucket(param_1,ppLVar4,uVar8,param_2), iVar3 == 0)))) break;
if (uVar8 == 0) {
return 1;
}
uVar7 = (uint)(uVar5 >> 2) | (uint)(uVar5 >> 1);
uVar7 = uVar7 >> 2 | uVar7;
uVar7 = uVar7 >> 4 | uVar7;
uVar7 = uVar7 >> 8 | uVar7;
uVar5 = (ulong)(uVar8 & (uVar7 >> 0x10 | uVar7));
}
pcVar1 = *(charset_info_st **)(param_1 + 0xa8);
uVar2 = (uint)(byte)_my_bits_reverse_table[(uVar2 & 0x7fffffff) >> 0x18] |
(uint)(byte)_my_bits_reverse_table[uVar2 >> 0x10 & 0xff] << 8 |
(uint)(byte)_my_bits_reverse_table[uVar2 >> 8 & 0xff] << 0x10 |
(uint)(byte)_my_bits_reverse_table[uVar2 & 0xff] << 0x18 | 1;
uVar5 = local_48;
do {
local_48 = uVar5;
iVar3 = l_find(ppLVar4,pcVar1,uVar2,local_40,local_38,(CURSOR *)&local_58,param_2,
(_func_char_void_ptr_void_ptr *)0x0);
if (iVar3 == 0) {
LOCK();
*(int8 *)param_2 = 0;
UNLOCK();
LOCK();
*(int8 *)(param_2 + 8) = 0;
UNLOCK();
LOCK();
*(int8 *)(param_2 + 0x10) = 0;
UNLOCK();
return 1;
}
LOCK();
uVar5 = *local_50;
bVar9 = local_48 == uVar5;
if (bVar9) {
*local_50 = local_48 | 1;
uVar5 = local_48;
}
UNLOCK();
} while (!bVar9);
LOCK();
puVar6 = (ulong *)*local_58;
bVar9 = local_50 == puVar6;
if (bVar9) {
*local_58 = local_48;
puVar6 = local_50;
}
UNLOCK();
if (bVar9) {
lf_pinbox_free(param_2,local_50);
}
else {
local_50 = puVar6;
l_find(ppLVar4,pcVar1,uVar2,local_40,local_38,(CURSOR *)&local_58,param_2,
(_func_char_void_ptr_void_ptr *)0x0);
}
LOCK();
*(int8 *)param_2 = 0;
UNLOCK();
LOCK();
*(int8 *)(param_2 + 8) = 0;
UNLOCK();
LOCK();
*(int8 *)(param_2 + 0x10) = 0;
UNLOCK();
LOCK();
*(int *)(param_1 + 0xc4) = *(int *)(param_1 + 0xc4) + -1;
UNLOCK();
return 0;
}
| |
37,882 | my_casefold_mb | eloqsql/strings/ctype-mb.c | static size_t
my_casefold_mb(CHARSET_INFO *cs,
const char *src, size_t srclen,
char *dst, size_t dstlen __attribute__((unused)),
const uchar *map,
size_t is_upper)
{
const char *srcend= src + srclen;
char *dst0= dst;
DBUG_ASSERT(cs->mbmaxlen == 2);
while (src < srcend)
{
size_t mblen= my_ismbchar(cs, src, srcend);
if (mblen)
{
MY_UNICASE_CHARACTER *ch;
if ((ch= get_case_info_for_ch(cs, (uchar) src[0], (uchar) src[1])))
{
int code= is_upper ? ch->toupper : ch->tolower;
src+= 2;
if (code > 0xFF)
*dst++= code >> 8;
*dst++= code & 0xFF;
}
else
{
*dst++= *src++;
*dst++= *src++;
}
}
else
{
*dst++= (char) map[(uchar) *src++];
}
}
return (size_t) (dst - dst0);
} | O0 | c | my_casefold_mb:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x10(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x8f87a
jmp 0x8f87c
movq -0x10(%rbp), %rax
cmpq -0x38(%rbp), %rax
jae 0x8f9b0
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x8f6e0
movl %eax, %eax
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
je 0x8f981
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movzbl (%rax), %esi
movq -0x10(%rbp), %rax
movzbl 0x1(%rax), %edx
callq 0x923c0
movq %rax, -0x50(%rbp)
cmpq $0x0, %rax
je 0x8f93b
cmpq $0x0, 0x10(%rbp)
je 0x8f8e0
movq -0x50(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x58(%rbp)
jmp 0x8f8ea
movq -0x50(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x58(%rbp)
movl -0x58(%rbp), %eax
movl %eax, -0x54(%rbp)
movq -0x10(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x10(%rbp)
cmpl $0xff, -0x54(%rbp)
jle 0x8f91e
movl -0x54(%rbp), %eax
sarl $0x8, %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
movl -0x54(%rbp), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
jmp 0x8f97f
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x10(%rbp)
movb (%rax), %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x10(%rbp)
movb (%rax), %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
jmp 0x8f9ab
movq -0x30(%rbp), %rax
movq -0x10(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movzbl (%rcx), %ecx
movb (%rax,%rcx), %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
jmp 0x8f87c
movq -0x20(%rbp), %rax
movq -0x40(%rbp), %rcx
subq %rcx, %rax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_casefold_mb:
push rbp
mov rbp, rsp
sub rsp, 60h
mov rax, [rbp+arg_0]
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
mov rax, [rbp+var_10]
add rax, [rbp+var_18]
mov [rbp+var_38], rax
mov rax, [rbp+var_20]
mov [rbp+var_40], rax
jmp short $+2
loc_8F87A:
jmp short $+2
loc_8F87C:
mov rax, [rbp+var_10]
cmp rax, [rbp+var_38]
jnb loc_8F9B0
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_38]
call my_ismbchar_0
mov eax, eax
mov [rbp+var_48], rax
cmp [rbp+var_48], 0
jz loc_8F981
mov rdi, [rbp+var_8]
mov rax, [rbp+var_10]
movzx esi, byte ptr [rax]
mov rax, [rbp+var_10]
movzx edx, byte ptr [rax+1]
call get_case_info_for_ch
mov [rbp+var_50], rax
cmp rax, 0
jz short loc_8F93B
cmp [rbp+arg_0], 0
jz short loc_8F8E0
mov rax, [rbp+var_50]
mov eax, [rax]
mov [rbp+var_58], eax
jmp short loc_8F8EA
loc_8F8E0:
mov rax, [rbp+var_50]
mov eax, [rax+4]
mov [rbp+var_58], eax
loc_8F8EA:
mov eax, [rbp+var_58]
mov [rbp+var_54], eax
mov rax, [rbp+var_10]
add rax, 2
mov [rbp+var_10], rax
cmp [rbp+var_54], 0FFh
jle short loc_8F91E
mov eax, [rbp+var_54]
sar eax, 8
mov cl, al
mov rax, [rbp+var_20]
mov rdx, rax
add rdx, 1
mov [rbp+var_20], rdx
mov [rax], cl
loc_8F91E:
mov eax, [rbp+var_54]
and eax, 0FFh
mov cl, al
mov rax, [rbp+var_20]
mov rdx, rax
add rdx, 1
mov [rbp+var_20], rdx
mov [rax], cl
jmp short loc_8F97F
loc_8F93B:
mov rax, [rbp+var_10]
mov rcx, rax
add rcx, 1
mov [rbp+var_10], rcx
mov cl, [rax]
mov rax, [rbp+var_20]
mov rdx, rax
add rdx, 1
mov [rbp+var_20], rdx
mov [rax], cl
mov rax, [rbp+var_10]
mov rcx, rax
add rcx, 1
mov [rbp+var_10], rcx
mov cl, [rax]
mov rax, [rbp+var_20]
mov rdx, rax
add rdx, 1
mov [rbp+var_20], rdx
mov [rax], cl
loc_8F97F:
jmp short loc_8F9AB
loc_8F981:
mov rax, [rbp+var_30]
mov rcx, [rbp+var_10]
mov rdx, rcx
add rdx, 1
mov [rbp+var_10], rdx
movzx ecx, byte ptr [rcx]
mov cl, [rax+rcx]
mov rax, [rbp+var_20]
mov rdx, rax
add rdx, 1
mov [rbp+var_20], rdx
mov [rax], cl
loc_8F9AB:
jmp loc_8F87C
loc_8F9B0:
mov rax, [rbp+var_20]
mov rcx, [rbp+var_40]
sub rax, rcx
add rsp, 60h
pop rbp
retn
| _BYTE * my_casefold_mb(
long long a1,
unsigned __int8 *a2,
long long a3,
unsigned __int8 *a4,
long long a5,
long long a6,
long long a7)
{
unsigned __int8 *v7; // rax
unsigned __int8 *v8; // rax
char *v9; // rax
char v10; // cl
_BYTE *v11; // rax
unsigned __int8 *v12; // rcx
unsigned __int8 *v13; // rax
int v15; // [rsp+8h] [rbp-58h]
int *case_info_for_ch; // [rsp+10h] [rbp-50h]
unsigned long long v18; // [rsp+28h] [rbp-38h]
unsigned __int8 *v20; // [rsp+40h] [rbp-20h]
unsigned __int8 *v21; // [rsp+50h] [rbp-10h]
v21 = a2;
v20 = a4;
v18 = (unsigned long long)&a2[a3];
while ( (unsigned long long)v21 < v18 )
{
if ( (unsigned int)my_ismbchar_0(a1, (long long)v21, v18) )
{
case_info_for_ch = (int *)get_case_info_for_ch(a1, *v21, v21[1]);
if ( case_info_for_ch )
{
if ( a7 )
v15 = *case_info_for_ch;
else
v15 = case_info_for_ch[1];
v21 += 2;
if ( v15 > 255 )
{
v7 = v20++;
*v7 = BYTE1(v15);
}
v8 = v20++;
*v8 = v15;
}
else
{
*v20 = *v21;
v9 = (char *)(v21 + 1);
v21 += 2;
v10 = *v9;
v11 = v20 + 1;
v20 += 2;
*v11 = v10;
}
}
else
{
v12 = v21++;
v13 = v20++;
*v13 = *(_BYTE *)(a6 + *v12);
}
}
return (_BYTE *)(v20 - a4);
}
| my_casefold_mb:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
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]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x40],RAX
JMP 0x0018f87a
LAB_0018f87a:
JMP 0x0018f87c
LAB_0018f87c:
MOV RAX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RBP + -0x38]
JNC 0x0018f9b0
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x38]
CALL 0x0018f6e0
MOV EAX,EAX
MOV qword ptr [RBP + -0x48],RAX
CMP qword ptr [RBP + -0x48],0x0
JZ 0x0018f981
MOV RDI,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOVZX ESI,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EDX,byte ptr [RAX + 0x1]
CALL 0x001923c0
MOV qword ptr [RBP + -0x50],RAX
CMP RAX,0x0
JZ 0x0018f93b
CMP qword ptr [RBP + 0x10],0x0
JZ 0x0018f8e0
MOV RAX,qword ptr [RBP + -0x50]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x58],EAX
JMP 0x0018f8ea
LAB_0018f8e0:
MOV RAX,qword ptr [RBP + -0x50]
MOV EAX,dword ptr [RAX + 0x4]
MOV dword ptr [RBP + -0x58],EAX
LAB_0018f8ea:
MOV EAX,dword ptr [RBP + -0x58]
MOV dword ptr [RBP + -0x54],EAX
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x2
MOV qword ptr [RBP + -0x10],RAX
CMP dword ptr [RBP + -0x54],0xff
JLE 0x0018f91e
MOV EAX,dword ptr [RBP + -0x54]
SAR EAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RAX],CL
LAB_0018f91e:
MOV EAX,dword ptr [RBP + -0x54]
AND EAX,0xff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RAX],CL
JMP 0x0018f97f
LAB_0018f93b:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x10],RCX
MOV CL,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x10],RCX
MOV CL,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RAX],CL
LAB_0018f97f:
JMP 0x0018f9ab
LAB_0018f981:
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x10]
MOV RDX,RCX
ADD RDX,0x1
MOV qword ptr [RBP + -0x10],RDX
MOVZX ECX,byte ptr [RCX]
MOV CL,byte ptr [RAX + RCX*0x1]
MOV RAX,qword ptr [RBP + -0x20]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RAX],CL
LAB_0018f9ab:
JMP 0x0018f87c
LAB_0018f9b0:
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x40]
SUB RAX,RCX
ADD RSP,0x60
POP RBP
RET
|
long my_casefold_mb(int8 param_1,byte *param_2,long param_3,byte *param_4,int8 param_5,
long param_6,long param_7)
{
int iVar1;
int *piVar2;
byte *pbVar3;
int local_60;
byte *local_28;
byte *local_18;
local_28 = param_4;
local_18 = param_2;
while (local_18 < param_2 + param_3) {
iVar1 = my_ismbchar(param_1,local_18,param_2 + param_3);
if (iVar1 == 0) {
*local_28 = *(byte *)(param_6 + (ulong)*local_18);
local_28 = local_28 + 1;
local_18 = local_18 + 1;
}
else {
piVar2 = (int *)get_case_info_for_ch(param_1,*local_18,local_18[1]);
if (piVar2 == (int *)0x0) {
pbVar3 = local_28 + 1;
*local_28 = *local_18;
local_28 = local_28 + 2;
*pbVar3 = local_18[1];
}
else {
if (param_7 == 0) {
local_60 = piVar2[1];
}
else {
local_60 = *piVar2;
}
if (0xff < local_60) {
*local_28 = (byte)((uint)local_60 >> 8);
local_28 = local_28 + 1;
}
*local_28 = (byte)local_60;
local_28 = local_28 + 1;
}
local_18 = local_18 + 2;
}
}
return (long)local_28 - (long)param_4;
}
| |
37,883 | str_to_TIME | eloqsql/libmariadb/libmariadb/ma_stmt_codec.c | int str_to_TIME(const char *str, size_t length, MYSQL_TIME *tm)
{
const char *p = str;
const char *end = str + length;
int is_time = 0;
if (!p)
goto error;
while (p < end && isspace(*p))
p++;
while (p < end && isspace(end[-1]))
end--;
if (end -p < 5)
goto error;
if (*p == '-')
{
tm->neg = 1;
/* Only TIME can't be negative.*/
is_time = 1;
p++;
}
else
{
int i;
tm->neg = 0;
/*
Date parsing (in server) accepts leading zeroes, thus position of the delimiters
is not fixed. Scan the string to find out what we need to parse.
*/
for (i = 1; p + i < end; i++)
{
if(p[i] == '-' || p [i] == ':')
{
is_time = p[i] == ':';
break;
}
}
}
if (is_time)
{
if (parse_time(p, end - p, &p, tm))
goto error;
tm->year = tm->month = tm->day = 0;
tm->time_type = MYSQL_TIMESTAMP_TIME;
return 0;
}
if (parse_date(p, end - p, &p, tm))
goto error;
if (p == end || p[0] != ' ')
{
tm->hour = tm->minute = tm->second = tm->second_part = 0;
tm->time_type = MYSQL_TIMESTAMP_DATE;
return 0;
}
/* Skip space. */
p++;
if (parse_time(p, end - p, &p, tm))
goto error;
/* In DATETIME, hours must be < 24.*/
if (tm->hour > 23)
goto error;
tm->time_type = MYSQL_TIMESTAMP_DATETIME;
return 0;
error:
memset(tm, 0, sizeof(*tm));
tm->time_type = MYSQL_TIMESTAMP_ERROR;
return 1;
} | O0 | c | str_to_TIME:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x5333b
jmp 0x535af
jmp 0x5333d
movq -0x28(%rbp), %rcx
xorl %eax, %eax
cmpq -0x30(%rbp), %rcx
movb %al, -0x39(%rbp)
jae 0x53370
callq 0x36120
movq (%rax), %rax
movq -0x28(%rbp), %rcx
movsbl (%rcx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x2000, %eax # imm = 0x2000
cmpl $0x0, %eax
setne %al
movb %al, -0x39(%rbp)
movb -0x39(%rbp), %al
testb $0x1, %al
jne 0x53379
jmp 0x53387
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x5333d
jmp 0x53389
movq -0x28(%rbp), %rcx
xorl %eax, %eax
cmpq -0x30(%rbp), %rcx
movb %al, -0x3a(%rbp)
jae 0x533bd
callq 0x36120
movq (%rax), %rax
movq -0x30(%rbp), %rcx
movsbl -0x1(%rcx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x2000, %eax # imm = 0x2000
cmpl $0x0, %eax
setne %al
movb %al, -0x3a(%rbp)
movb -0x3a(%rbp), %al
testb $0x1, %al
jne 0x533c6
jmp 0x533d4
movq -0x30(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0x53389
movq -0x30(%rbp), %rax
movq -0x28(%rbp), %rcx
subq %rcx, %rax
cmpq $0x5, %rax
jge 0x533ea
jmp 0x535af
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2d, %eax
jne 0x53413
movq -0x20(%rbp), %rax
movb $0x1, 0x20(%rax)
movl $0x1, -0x34(%rbp)
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x53480
movq -0x20(%rbp), %rax
movb $0x0, 0x20(%rax)
movl $0x1, -0x38(%rbp)
movq -0x28(%rbp), %rax
movslq -0x38(%rbp), %rcx
addq %rcx, %rax
cmpq -0x30(%rbp), %rax
jae 0x5347e
movq -0x28(%rbp), %rax
movslq -0x38(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x2d, %eax
je 0x53455
movq -0x28(%rbp), %rax
movslq -0x38(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x3a, %eax
jne 0x53471
movq -0x28(%rbp), %rax
movslq -0x38(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x3a, %eax
sete %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x34(%rbp)
jmp 0x5347e
jmp 0x53473
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x53422
jmp 0x53480
cmpl $0x0, -0x34(%rbp)
je 0x534e3
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x28(%rbp), %rax
subq %rax, %rsi
movq -0x20(%rbp), %rcx
leaq -0x28(%rbp), %rdx
callq 0x535e0
cmpl $0x0, %eax
je 0x534ac
jmp 0x535af
movq -0x20(%rbp), %rax
movl $0x0, 0x8(%rax)
movq -0x20(%rbp), %rax
movl $0x0, 0x4(%rax)
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
movq -0x20(%rbp), %rax
movl $0x2, 0x24(%rax)
movl $0x0, -0x4(%rbp)
jmp 0x535d1
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x28(%rbp), %rax
subq %rax, %rsi
movq -0x20(%rbp), %rcx
leaq -0x28(%rbp), %rdx
callq 0x53830
cmpl $0x0, %eax
je 0x53509
jmp 0x535af
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
je 0x5351f
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x20, %eax
je 0x53560
movq -0x20(%rbp), %rax
movq $0x0, 0x18(%rax)
movq -0x20(%rbp), %rax
movl $0x0, 0x14(%rax)
movq -0x20(%rbp), %rax
movl $0x0, 0x10(%rax)
movq -0x20(%rbp), %rax
movl $0x0, 0xc(%rax)
movq -0x20(%rbp), %rax
movl $0x0, 0x24(%rax)
movl $0x0, -0x4(%rbp)
jmp 0x535d1
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x28(%rbp), %rax
subq %rax, %rsi
movq -0x20(%rbp), %rcx
leaq -0x28(%rbp), %rdx
callq 0x535e0
cmpl $0x0, %eax
je 0x5358f
jmp 0x535af
movq -0x20(%rbp), %rax
cmpl $0x17, 0xc(%rax)
jbe 0x5359b
jmp 0x535af
movq -0x20(%rbp), %rax
movl $0x1, 0x24(%rax)
movl $0x0, -0x4(%rbp)
jmp 0x535d1
movq -0x20(%rbp), %rdi
xorl %esi, %esi
movl $0x28, %edx
callq 0x362e0
movq -0x20(%rbp), %rax
movl $0xffffffff, 0x24(%rax) # imm = 0xFFFFFFFF
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| str_to_TIME:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov rax, [rbp+var_10]
mov [rbp+var_28], rax
mov rax, [rbp+var_10]
add rax, [rbp+var_18]
mov [rbp+var_30], rax
mov [rbp+var_34], 0
cmp [rbp+var_28], 0
jnz short loc_5333B
jmp loc_535AF
loc_5333B:
jmp short $+2
loc_5333D:
mov rcx, [rbp+var_28]
xor eax, eax
cmp rcx, [rbp+var_30]
mov [rbp+var_39], al
jnb short loc_53370
call ___ctype_b_loc
mov rax, [rax]
mov rcx, [rbp+var_28]
movsx ecx, byte ptr [rcx]
movsxd rcx, ecx
movzx eax, word ptr [rax+rcx*2]
and eax, 2000h
cmp eax, 0
setnz al
mov [rbp+var_39], al
loc_53370:
mov al, [rbp+var_39]
test al, 1
jnz short loc_53379
jmp short loc_53387
loc_53379:
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
jmp short loc_5333D
loc_53387:
jmp short $+2
loc_53389:
mov rcx, [rbp+var_28]
xor eax, eax
cmp rcx, [rbp+var_30]
mov [rbp+var_3A], al
jnb short loc_533BD
call ___ctype_b_loc
mov rax, [rax]
mov rcx, [rbp+var_30]
movsx ecx, byte ptr [rcx-1]
movsxd rcx, ecx
movzx eax, word ptr [rax+rcx*2]
and eax, 2000h
cmp eax, 0
setnz al
mov [rbp+var_3A], al
loc_533BD:
mov al, [rbp+var_3A]
test al, 1
jnz short loc_533C6
jmp short loc_533D4
loc_533C6:
mov rax, [rbp+var_30]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_30], rax
jmp short loc_53389
loc_533D4:
mov rax, [rbp+var_30]
mov rcx, [rbp+var_28]
sub rax, rcx
cmp rax, 5
jge short loc_533EA
jmp loc_535AF
loc_533EA:
mov rax, [rbp+var_28]
movsx eax, byte ptr [rax]
cmp eax, 2Dh ; '-'
jnz short loc_53413
mov rax, [rbp+var_20]
mov byte ptr [rax+20h], 1
mov [rbp+var_34], 1
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
jmp short loc_53480
loc_53413:
mov rax, [rbp+var_20]
mov byte ptr [rax+20h], 0
mov [rbp+var_38], 1
loc_53422:
mov rax, [rbp+var_28]
movsxd rcx, [rbp+var_38]
add rax, rcx
cmp rax, [rbp+var_30]
jnb short loc_5347E
mov rax, [rbp+var_28]
movsxd rcx, [rbp+var_38]
movsx eax, byte ptr [rax+rcx]
cmp eax, 2Dh ; '-'
jz short loc_53455
mov rax, [rbp+var_28]
movsxd rcx, [rbp+var_38]
movsx eax, byte ptr [rax+rcx]
cmp eax, 3Ah ; ':'
jnz short loc_53471
loc_53455:
mov rax, [rbp+var_28]
movsxd rcx, [rbp+var_38]
movsx eax, byte ptr [rax+rcx]
cmp eax, 3Ah ; ':'
setz al
and al, 1
movzx eax, al
mov [rbp+var_34], eax
jmp short loc_5347E
loc_53471:
jmp short $+2
loc_53473:
mov eax, [rbp+var_38]
add eax, 1
mov [rbp+var_38], eax
jmp short loc_53422
loc_5347E:
jmp short $+2
loc_53480:
cmp [rbp+var_34], 0
jz short loc_534E3
mov rdi, [rbp+var_28]
mov rsi, [rbp+var_30]
mov rax, [rbp+var_28]
sub rsi, rax
mov rcx, [rbp+var_20]
lea rdx, [rbp+var_28]
call parse_time
cmp eax, 0
jz short loc_534AC
jmp loc_535AF
loc_534AC:
mov rax, [rbp+var_20]
mov dword ptr [rax+8], 0
mov rax, [rbp+var_20]
mov dword ptr [rax+4], 0
mov rax, [rbp+var_20]
mov dword ptr [rax], 0
mov rax, [rbp+var_20]
mov dword ptr [rax+24h], 2
mov [rbp+var_4], 0
jmp loc_535D1
loc_534E3:
mov rdi, [rbp+var_28]
mov rsi, [rbp+var_30]
mov rax, [rbp+var_28]
sub rsi, rax
mov rcx, [rbp+var_20]
lea rdx, [rbp+var_28]
call parse_date
cmp eax, 0
jz short loc_53509
jmp loc_535AF
loc_53509:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_30]
jz short loc_5351F
mov rax, [rbp+var_28]
movsx eax, byte ptr [rax]
cmp eax, 20h ; ' '
jz short loc_53560
loc_5351F:
mov rax, [rbp+var_20]
mov qword ptr [rax+18h], 0
mov rax, [rbp+var_20]
mov dword ptr [rax+14h], 0
mov rax, [rbp+var_20]
mov dword ptr [rax+10h], 0
mov rax, [rbp+var_20]
mov dword ptr [rax+0Ch], 0
mov rax, [rbp+var_20]
mov dword ptr [rax+24h], 0
mov [rbp+var_4], 0
jmp short loc_535D1
loc_53560:
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
mov rdi, [rbp+var_28]
mov rsi, [rbp+var_30]
mov rax, [rbp+var_28]
sub rsi, rax
mov rcx, [rbp+var_20]
lea rdx, [rbp+var_28]
call parse_time
cmp eax, 0
jz short loc_5358F
jmp short loc_535AF
loc_5358F:
mov rax, [rbp+var_20]
cmp dword ptr [rax+0Ch], 17h
jbe short loc_5359B
jmp short loc_535AF
loc_5359B:
mov rax, [rbp+var_20]
mov dword ptr [rax+24h], 1
mov [rbp+var_4], 0
jmp short loc_535D1
loc_535AF:
mov rdi, [rbp+var_20]
xor esi, esi
mov edx, 28h ; '('
call _memset
mov rax, [rbp+var_20]
mov dword ptr [rax+24h], 0FFFFFFFFh
mov [rbp+var_4], 1
loc_535D1:
mov eax, [rbp+var_4]
add rsp, 40h
pop rbp
retn
| long long str_to_TIME(_BYTE *a1, long long a2, long long a3)
{
bool v4; // [rsp+6h] [rbp-3Ah]
bool v5; // [rsp+7h] [rbp-39h]
int i; // [rsp+8h] [rbp-38h]
BOOL v7; // [rsp+Ch] [rbp-34h]
unsigned long long v8; // [rsp+10h] [rbp-30h]
_BYTE *v9; // [rsp+18h] [rbp-28h] BYREF
long long v10; // [rsp+20h] [rbp-20h]
long long v11; // [rsp+28h] [rbp-18h]
_BYTE *v12; // [rsp+30h] [rbp-10h]
v12 = a1;
v11 = a2;
v10 = a3;
v9 = a1;
v8 = (unsigned long long)&a1[a2];
v7 = 0;
if ( !a1 )
goto LABEL_29;
while ( 1 )
{
v5 = 0;
if ( (unsigned long long)v9 < v8 )
v5 = (*(_WORD *)(*(_QWORD *)__ctype_b_loc() + 2LL * (char)*v9) & 0x2000) != 0;
if ( !v5 )
break;
++v9;
}
while ( 1 )
{
v4 = 0;
if ( (unsigned long long)v9 < v8 )
v4 = (*(_WORD *)(*(_QWORD *)__ctype_b_loc() + 2LL * *(char *)(v8 - 1)) & 0x2000) != 0;
if ( !v4 )
break;
--v8;
}
if ( (long long)(v8 - (_QWORD)v9) < 5 )
goto LABEL_29;
if ( *v9 == 45 )
{
*(_BYTE *)(v10 + 32) = 1;
v7 = 1;
++v9;
}
else
{
*(_BYTE *)(v10 + 32) = 0;
for ( i = 1; (unsigned long long)&v9[i] < v8; ++i )
{
if ( v9[i] == 45 || v9[i] == 58 )
{
v7 = v9[i] == 58;
break;
}
}
}
if ( !v7 )
{
if ( !(unsigned int)parse_date(v9, v8 - (_QWORD)v9, &v9, v10) )
{
if ( v9 == (_BYTE *)v8 || *v9 != 32 )
{
*(_QWORD *)(v10 + 24) = 0LL;
*(_DWORD *)(v10 + 20) = 0;
*(_DWORD *)(v10 + 16) = 0;
*(_DWORD *)(v10 + 12) = 0;
*(_DWORD *)(v10 + 36) = 0;
return 0;
}
++v9;
if ( !(unsigned int)parse_time(v9, v8 - (_QWORD)v9, &v9, v10) && *(_DWORD *)(v10 + 12) <= 0x17u )
{
*(_DWORD *)(v10 + 36) = 1;
return 0;
}
}
LABEL_29:
memset(v10, 0LL, 40LL);
*(_DWORD *)(v10 + 36) = -1;
return 1;
}
if ( (unsigned int)parse_time(v9, v8 - (_QWORD)v9, &v9, v10) )
goto LABEL_29;
*(_DWORD *)(v10 + 8) = 0;
*(_DWORD *)(v10 + 4) = 0;
*(_DWORD *)v10 = 0;
*(_DWORD *)(v10 + 36) = 2;
return 0;
}
| str_to_TIME:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x30],RAX
MOV dword ptr [RBP + -0x34],0x0
CMP qword ptr [RBP + -0x28],0x0
JNZ 0x0015333b
JMP 0x001535af
LAB_0015333b:
JMP 0x0015333d
LAB_0015333d:
MOV RCX,qword ptr [RBP + -0x28]
XOR EAX,EAX
CMP RCX,qword ptr [RBP + -0x30]
MOV byte ptr [RBP + -0x39],AL
JNC 0x00153370
CALL 0x00136120
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x28]
MOVSX ECX,byte ptr [RCX]
MOVSXD RCX,ECX
MOVZX EAX,word ptr [RAX + RCX*0x2]
AND EAX,0x2000
CMP EAX,0x0
SETNZ AL
MOV byte ptr [RBP + -0x39],AL
LAB_00153370:
MOV AL,byte ptr [RBP + -0x39]
TEST AL,0x1
JNZ 0x00153379
JMP 0x00153387
LAB_00153379:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
JMP 0x0015333d
LAB_00153387:
JMP 0x00153389
LAB_00153389:
MOV RCX,qword ptr [RBP + -0x28]
XOR EAX,EAX
CMP RCX,qword ptr [RBP + -0x30]
MOV byte ptr [RBP + -0x3a],AL
JNC 0x001533bd
CALL 0x00136120
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x30]
MOVSX ECX,byte ptr [RCX + -0x1]
MOVSXD RCX,ECX
MOVZX EAX,word ptr [RAX + RCX*0x2]
AND EAX,0x2000
CMP EAX,0x0
SETNZ AL
MOV byte ptr [RBP + -0x3a],AL
LAB_001533bd:
MOV AL,byte ptr [RBP + -0x3a]
TEST AL,0x1
JNZ 0x001533c6
JMP 0x001533d4
LAB_001533c6:
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x30],RAX
JMP 0x00153389
LAB_001533d4:
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x28]
SUB RAX,RCX
CMP RAX,0x5
JGE 0x001533ea
JMP 0x001535af
LAB_001533ea:
MOV RAX,qword ptr [RBP + -0x28]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x2d
JNZ 0x00153413
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x20],0x1
MOV dword ptr [RBP + -0x34],0x1
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
JMP 0x00153480
LAB_00153413:
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x20],0x0
MOV dword ptr [RBP + -0x38],0x1
LAB_00153422:
MOV RAX,qword ptr [RBP + -0x28]
MOVSXD RCX,dword ptr [RBP + -0x38]
ADD RAX,RCX
CMP RAX,qword ptr [RBP + -0x30]
JNC 0x0015347e
MOV RAX,qword ptr [RBP + -0x28]
MOVSXD RCX,dword ptr [RBP + -0x38]
MOVSX EAX,byte ptr [RAX + RCX*0x1]
CMP EAX,0x2d
JZ 0x00153455
MOV RAX,qword ptr [RBP + -0x28]
MOVSXD RCX,dword ptr [RBP + -0x38]
MOVSX EAX,byte ptr [RAX + RCX*0x1]
CMP EAX,0x3a
JNZ 0x00153471
LAB_00153455:
MOV RAX,qword ptr [RBP + -0x28]
MOVSXD RCX,dword ptr [RBP + -0x38]
MOVSX EAX,byte ptr [RAX + RCX*0x1]
CMP EAX,0x3a
SETZ AL
AND AL,0x1
MOVZX EAX,AL
MOV dword ptr [RBP + -0x34],EAX
JMP 0x0015347e
LAB_00153471:
JMP 0x00153473
LAB_00153473:
MOV EAX,dword ptr [RBP + -0x38]
ADD EAX,0x1
MOV dword ptr [RBP + -0x38],EAX
JMP 0x00153422
LAB_0015347e:
JMP 0x00153480
LAB_00153480:
CMP dword ptr [RBP + -0x34],0x0
JZ 0x001534e3
MOV RDI,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x28]
SUB RSI,RAX
MOV RCX,qword ptr [RBP + -0x20]
LEA RDX,[RBP + -0x28]
CALL 0x001535e0
CMP EAX,0x0
JZ 0x001534ac
JMP 0x001535af
LAB_001534ac:
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x8],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x4],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x24],0x2
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001535d1
LAB_001534e3:
MOV RDI,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x28]
SUB RSI,RAX
MOV RCX,qword ptr [RBP + -0x20]
LEA RDX,[RBP + -0x28]
CALL 0x00153830
CMP EAX,0x0
JZ 0x00153509
JMP 0x001535af
LAB_00153509:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x30]
JZ 0x0015351f
MOV RAX,qword ptr [RBP + -0x28]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x20
JZ 0x00153560
LAB_0015351f:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x18],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x14],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x10],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0xc],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x24],0x0
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001535d1
LAB_00153560:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
MOV RDI,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x28]
SUB RSI,RAX
MOV RCX,qword ptr [RBP + -0x20]
LEA RDX,[RBP + -0x28]
CALL 0x001535e0
CMP EAX,0x0
JZ 0x0015358f
JMP 0x001535af
LAB_0015358f:
MOV RAX,qword ptr [RBP + -0x20]
CMP dword ptr [RAX + 0xc],0x17
JBE 0x0015359b
JMP 0x001535af
LAB_0015359b:
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x24],0x1
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001535d1
LAB_001535af:
MOV RDI,qword ptr [RBP + -0x20]
XOR ESI,ESI
MOV EDX,0x28
CALL 0x001362e0
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x24],0xffffffff
MOV dword ptr [RBP + -0x4],0x1
LAB_001535d1:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x40
POP RBP
RET
|
int4 str_to_TIME(char *param_1,long param_2,int4 *param_3)
{
int iVar1;
ushort **ppuVar2;
bool bVar3;
bool bVar4;
int local_40;
char *local_38;
char *local_30;
int4 *local_28;
long local_20;
char *local_18;
local_38 = param_1 + param_2;
bVar4 = false;
local_30 = param_1;
local_28 = param_3;
local_20 = param_2;
local_18 = param_1;
if (param_1 != (char *)0x0) {
while( true ) {
bVar3 = false;
if (local_30 < local_38) {
ppuVar2 = __ctype_b_loc();
bVar3 = ((*ppuVar2)[(int)*local_30] & 0x2000) != 0;
}
if (!bVar3) break;
local_30 = local_30 + 1;
}
while( true ) {
bVar3 = false;
if (local_30 < local_38) {
ppuVar2 = __ctype_b_loc();
bVar3 = ((*ppuVar2)[(int)local_38[-1]] & 0x2000) != 0;
}
if (!bVar3) break;
local_38 = local_38 + -1;
}
if (4 < (long)local_38 - (long)local_30) {
if (*local_30 == '-') {
*(int1 *)(local_28 + 8) = 1;
bVar4 = true;
local_30 = local_30 + 1;
}
else {
*(int1 *)(local_28 + 8) = 0;
for (local_40 = 1; local_30 + local_40 < local_38; local_40 = local_40 + 1) {
if ((local_30[local_40] == '-') || (local_30[local_40] == ':')) {
bVar4 = local_30[local_40] == ':';
break;
}
}
}
if (bVar4) {
iVar1 = parse_time(local_30,(long)local_38 - (long)local_30,&local_30,local_28);
if (iVar1 == 0) {
local_28[2] = 0;
local_28[1] = 0;
*local_28 = 0;
local_28[9] = 2;
return 0;
}
}
else {
iVar1 = parse_date(local_30,(long)local_38 - (long)local_30,&local_30,local_28);
if (iVar1 == 0) {
if ((local_30 == local_38) || (*local_30 != ' ')) {
*(int8 *)(local_28 + 6) = 0;
local_28[5] = 0;
local_28[4] = 0;
local_28[3] = 0;
local_28[9] = 0;
return 0;
}
local_30 = local_30 + 1;
iVar1 = parse_time(local_30,(long)local_38 - (long)local_30,&local_30,local_28);
if ((iVar1 == 0) && ((uint)local_28[3] < 0x18)) {
local_28[9] = 1;
return 0;
}
}
}
}
}
memset(local_28,0,0x28);
local_28[9] = 0xffffffff;
return 1;
}
| |
37,884 | LefDefParser::defiNet::clearVia() | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiNet.cpp | void defiNet::clearVia() {
if (viaNames_) {
struct defiPoints* p;
for (int i = 0; i < numPts_; i++) {
if (viaNames_[i]) {
free((char*)(viaNames_[i]));
}
if (viaRouteStatus_[i]) {
free ((char*)(viaRouteStatus_[i]));
}
if (viaShapeTypes_[i]) {
free ((char*)(viaShapeTypes_[i]));
}
if (viaRouteStatusShieldNames_[i]) {
free ((char*)(viaRouteStatusShieldNames_[i]));
}
p = viaPts_[i];
free((char*)(p->x));
free((char*)(p->y));
free((char*)(viaPts_[i]));
}
if (viaMasks_) {
free((char*)(viaMasks_));
}
if (viaOrients_) {
free((char*)(viaOrients_));
}
if (viaNames_) {
free((char*)(viaNames_));
}
if (viaRouteStatus_) {
free((char*)(viaRouteStatus_));
}
if (viaShapeTypes_) {
free((char*)(viaShapeTypes_));
}
if (viaRouteStatusShieldNames_) {
free((char*)(viaRouteStatusShieldNames_));
}
if (viaPts_) {
free((char*)(viaPts_));
}
}
viaMasks_ = 0;
viaOrients_ = 0;
numPts_ = 0;
ptsAllocated_ = 0;
viaPts_ = 0;
viaRouteStatus_ = 0;
viaShapeTypes_ = 0;
viaRouteStatusShieldNames_ = 0;
viaNames_ = 0;
} | O0 | cpp | LefDefParser::defiNet::clearVia():
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x208(%rax)
je 0x390c8
movl $0x0, 0x14(%rsp)
movq 0x8(%rsp), %rcx
movl 0x14(%rsp), %eax
cmpl 0x210(%rcx), %eax
jge 0x38fe6
movq 0x8(%rsp), %rax
movq 0x208(%rax), %rax
movslq 0x14(%rsp), %rcx
cmpq $0x0, (%rax,%rcx,8)
je 0x38ef0
movq 0x8(%rsp), %rax
movq 0x208(%rax), %rax
movslq 0x14(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x72a0
movq 0x8(%rsp), %rax
movq 0x228(%rax), %rax
movslq 0x14(%rsp), %rcx
cmpq $0x0, (%rax,%rcx,8)
je 0x38f22
movq 0x8(%rsp), %rax
movq 0x228(%rax), %rax
movslq 0x14(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x72a0
movq 0x8(%rsp), %rax
movq 0x238(%rax), %rax
movslq 0x14(%rsp), %rcx
cmpq $0x0, (%rax,%rcx,8)
je 0x38f54
movq 0x8(%rsp), %rax
movq 0x238(%rax), %rax
movslq 0x14(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x72a0
movq 0x8(%rsp), %rax
movq 0x230(%rax), %rax
movslq 0x14(%rsp), %rcx
cmpq $0x0, (%rax,%rcx,8)
je 0x38f86
movq 0x8(%rsp), %rax
movq 0x230(%rax), %rax
movslq 0x14(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x72a0
movq 0x8(%rsp), %rax
movq 0x200(%rax), %rax
movslq 0x14(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x72a0
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x72a0
movq 0x8(%rsp), %rax
movq 0x200(%rax), %rax
movslq 0x14(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x72a0
movl 0x14(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x14(%rsp)
jmp 0x38ea9
movq 0x8(%rsp), %rax
cmpq $0x0, 0x220(%rax)
je 0x39006
movq 0x8(%rsp), %rax
movq 0x220(%rax), %rdi
callq 0x72a0
movq 0x8(%rsp), %rax
cmpq $0x0, 0x218(%rax)
je 0x39026
movq 0x8(%rsp), %rax
movq 0x218(%rax), %rdi
callq 0x72a0
movq 0x8(%rsp), %rax
cmpq $0x0, 0x208(%rax)
je 0x39046
movq 0x8(%rsp), %rax
movq 0x208(%rax), %rdi
callq 0x72a0
movq 0x8(%rsp), %rax
cmpq $0x0, 0x228(%rax)
je 0x39066
movq 0x8(%rsp), %rax
movq 0x228(%rax), %rdi
callq 0x72a0
movq 0x8(%rsp), %rax
cmpq $0x0, 0x238(%rax)
je 0x39086
movq 0x8(%rsp), %rax
movq 0x238(%rax), %rdi
callq 0x72a0
movq 0x8(%rsp), %rax
cmpq $0x0, 0x230(%rax)
je 0x390a6
movq 0x8(%rsp), %rax
movq 0x230(%rax), %rdi
callq 0x72a0
movq 0x8(%rsp), %rax
cmpq $0x0, 0x200(%rax)
je 0x390c6
movq 0x8(%rsp), %rax
movq 0x200(%rax), %rdi
callq 0x72a0
jmp 0x390c8
movq 0x8(%rsp), %rax
movq $0x0, 0x220(%rax)
movq $0x0, 0x218(%rax)
movl $0x0, 0x210(%rax)
movl $0x0, 0x214(%rax)
movq $0x0, 0x200(%rax)
movq $0x0, 0x228(%rax)
movq $0x0, 0x238(%rax)
movq $0x0, 0x230(%rax)
movq $0x0, 0x208(%rax)
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
| _ZN12LefDefParser7defiNet8clearViaEv:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov rax, [rsp+28h+var_8]
mov [rsp+28h+var_20], rax
cmp qword ptr [rax+208h], 0
jz loc_390C8
mov [rsp+28h+var_14], 0
loc_38EA9:
mov rcx, [rsp+28h+var_20]
mov eax, [rsp+28h+var_14]
cmp eax, [rcx+210h]
jge loc_38FE6
mov rax, [rsp+28h+var_20]
mov rax, [rax+208h]
movsxd rcx, [rsp+28h+var_14]
cmp qword ptr [rax+rcx*8], 0
jz short loc_38EF0
mov rax, [rsp+28h+var_20]
mov rax, [rax+208h]
movsxd rcx, [rsp+28h+var_14]
mov rdi, [rax+rcx*8]
call _free
loc_38EF0:
mov rax, [rsp+28h+var_20]
mov rax, [rax+228h]
movsxd rcx, [rsp+28h+var_14]
cmp qword ptr [rax+rcx*8], 0
jz short loc_38F22
mov rax, [rsp+28h+var_20]
mov rax, [rax+228h]
movsxd rcx, [rsp+28h+var_14]
mov rdi, [rax+rcx*8]
call _free
loc_38F22:
mov rax, [rsp+28h+var_20]
mov rax, [rax+238h]
movsxd rcx, [rsp+28h+var_14]
cmp qword ptr [rax+rcx*8], 0
jz short loc_38F54
mov rax, [rsp+28h+var_20]
mov rax, [rax+238h]
movsxd rcx, [rsp+28h+var_14]
mov rdi, [rax+rcx*8]
call _free
loc_38F54:
mov rax, [rsp+28h+var_20]
mov rax, [rax+230h]
movsxd rcx, [rsp+28h+var_14]
cmp qword ptr [rax+rcx*8], 0
jz short loc_38F86
mov rax, [rsp+28h+var_20]
mov rax, [rax+230h]
movsxd rcx, [rsp+28h+var_14]
mov rdi, [rax+rcx*8]
call _free
loc_38F86:
mov rax, [rsp+28h+var_20]
mov rax, [rax+200h]
movsxd rcx, [rsp+28h+var_14]
mov rax, [rax+rcx*8]
mov [rsp+28h+var_10], rax
mov rax, [rsp+28h+var_10]
mov rdi, [rax+8]
call _free
mov rax, [rsp+28h+var_10]
mov rdi, [rax+10h]
call _free
mov rax, [rsp+28h+var_20]
mov rax, [rax+200h]
movsxd rcx, [rsp+28h+var_14]
mov rdi, [rax+rcx*8]
call _free
mov eax, [rsp+28h+var_14]
add eax, 1
mov [rsp+28h+var_14], eax
jmp loc_38EA9
loc_38FE6:
mov rax, [rsp+28h+var_20]
cmp qword ptr [rax+220h], 0
jz short loc_39006
mov rax, [rsp+28h+var_20]
mov rdi, [rax+220h]
call _free
loc_39006:
mov rax, [rsp+28h+var_20]
cmp qword ptr [rax+218h], 0
jz short loc_39026
mov rax, [rsp+28h+var_20]
mov rdi, [rax+218h]
call _free
loc_39026:
mov rax, [rsp+28h+var_20]
cmp qword ptr [rax+208h], 0
jz short loc_39046
mov rax, [rsp+28h+var_20]
mov rdi, [rax+208h]
call _free
loc_39046:
mov rax, [rsp+28h+var_20]
cmp qword ptr [rax+228h], 0
jz short loc_39066
mov rax, [rsp+28h+var_20]
mov rdi, [rax+228h]
call _free
loc_39066:
mov rax, [rsp+28h+var_20]
cmp qword ptr [rax+238h], 0
jz short loc_39086
mov rax, [rsp+28h+var_20]
mov rdi, [rax+238h]
call _free
loc_39086:
mov rax, [rsp+28h+var_20]
cmp qword ptr [rax+230h], 0
jz short loc_390A6
mov rax, [rsp+28h+var_20]
mov rdi, [rax+230h]
call _free
loc_390A6:
mov rax, [rsp+28h+var_20]
cmp qword ptr [rax+200h], 0
jz short loc_390C6
mov rax, [rsp+28h+var_20]
mov rdi, [rax+200h]
call _free
loc_390C6:
jmp short $+2
loc_390C8:
mov rax, [rsp+28h+var_20]
mov qword ptr [rax+220h], 0
mov qword ptr [rax+218h], 0
mov dword ptr [rax+210h], 0
mov dword ptr [rax+214h], 0
mov qword ptr [rax+200h], 0
mov qword ptr [rax+228h], 0
mov qword ptr [rax+238h], 0
mov qword ptr [rax+230h], 0
mov qword ptr [rax+208h], 0
add rsp, 28h
retn
| LefDefParser::defiNet * LefDefParser::defiNet::clearVia(LefDefParser::defiNet *this)
{
LefDefParser::defiNet *result; // rax
int i; // [rsp+14h] [rbp-14h]
long long v3; // [rsp+18h] [rbp-10h]
if ( *((_QWORD *)this + 65) )
{
for ( i = 0; i < *((_DWORD *)this + 132); ++i )
{
if ( *(_QWORD *)(*((_QWORD *)this + 65) + 8LL * i) )
free(*(_QWORD *)(*((_QWORD *)this + 65) + 8LL * i));
if ( *(_QWORD *)(*((_QWORD *)this + 69) + 8LL * i) )
free(*(_QWORD *)(*((_QWORD *)this + 69) + 8LL * i));
if ( *(_QWORD *)(*((_QWORD *)this + 71) + 8LL * i) )
free(*(_QWORD *)(*((_QWORD *)this + 71) + 8LL * i));
if ( *(_QWORD *)(*((_QWORD *)this + 70) + 8LL * i) )
free(*(_QWORD *)(*((_QWORD *)this + 70) + 8LL * i));
v3 = *(_QWORD *)(*((_QWORD *)this + 64) + 8LL * i);
free(*(_QWORD *)(v3 + 8));
free(*(_QWORD *)(v3 + 16));
free(*(_QWORD *)(*((_QWORD *)this + 64) + 8LL * i));
}
if ( *((_QWORD *)this + 68) )
free(*((_QWORD *)this + 68));
if ( *((_QWORD *)this + 67) )
free(*((_QWORD *)this + 67));
if ( *((_QWORD *)this + 65) )
free(*((_QWORD *)this + 65));
if ( *((_QWORD *)this + 69) )
free(*((_QWORD *)this + 69));
if ( *((_QWORD *)this + 71) )
free(*((_QWORD *)this + 71));
if ( *((_QWORD *)this + 70) )
free(*((_QWORD *)this + 70));
if ( *((_QWORD *)this + 64) )
free(*((_QWORD *)this + 64));
}
result = this;
*((_QWORD *)this + 68) = 0LL;
*((_QWORD *)this + 67) = 0LL;
*((_DWORD *)this + 132) = 0;
*((_DWORD *)this + 133) = 0;
*((_QWORD *)this + 64) = 0LL;
*((_QWORD *)this + 69) = 0LL;
*((_QWORD *)this + 71) = 0LL;
*((_QWORD *)this + 70) = 0LL;
*((_QWORD *)this + 65) = 0LL;
return result;
}
| clearVia:
SUB RSP,0x28
MOV qword ptr [RSP + 0x20],RDI
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x8],RAX
CMP qword ptr [RAX + 0x208],0x0
JZ 0x001390c8
MOV dword ptr [RSP + 0x14],0x0
LAB_00138ea9:
MOV RCX,qword ptr [RSP + 0x8]
MOV EAX,dword ptr [RSP + 0x14]
CMP EAX,dword ptr [RCX + 0x210]
JGE 0x00138fe6
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX + 0x208]
MOVSXD RCX,dword ptr [RSP + 0x14]
CMP qword ptr [RAX + RCX*0x8],0x0
JZ 0x00138ef0
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX + 0x208]
MOVSXD RCX,dword ptr [RSP + 0x14]
MOV RDI,qword ptr [RAX + RCX*0x8]
CALL 0x001072a0
LAB_00138ef0:
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX + 0x228]
MOVSXD RCX,dword ptr [RSP + 0x14]
CMP qword ptr [RAX + RCX*0x8],0x0
JZ 0x00138f22
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX + 0x228]
MOVSXD RCX,dword ptr [RSP + 0x14]
MOV RDI,qword ptr [RAX + RCX*0x8]
CALL 0x001072a0
LAB_00138f22:
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX + 0x238]
MOVSXD RCX,dword ptr [RSP + 0x14]
CMP qword ptr [RAX + RCX*0x8],0x0
JZ 0x00138f54
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX + 0x238]
MOVSXD RCX,dword ptr [RSP + 0x14]
MOV RDI,qword ptr [RAX + RCX*0x8]
CALL 0x001072a0
LAB_00138f54:
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX + 0x230]
MOVSXD RCX,dword ptr [RSP + 0x14]
CMP qword ptr [RAX + RCX*0x8],0x0
JZ 0x00138f86
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX + 0x230]
MOVSXD RCX,dword ptr [RSP + 0x14]
MOV RDI,qword ptr [RAX + RCX*0x8]
CALL 0x001072a0
LAB_00138f86:
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX + 0x200]
MOVSXD RCX,dword ptr [RSP + 0x14]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RSP + 0x18],RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV RDI,qword ptr [RAX + 0x8]
CALL 0x001072a0
MOV RAX,qword ptr [RSP + 0x18]
MOV RDI,qword ptr [RAX + 0x10]
CALL 0x001072a0
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX + 0x200]
MOVSXD RCX,dword ptr [RSP + 0x14]
MOV RDI,qword ptr [RAX + RCX*0x8]
CALL 0x001072a0
MOV EAX,dword ptr [RSP + 0x14]
ADD EAX,0x1
MOV dword ptr [RSP + 0x14],EAX
JMP 0x00138ea9
LAB_00138fe6:
MOV RAX,qword ptr [RSP + 0x8]
CMP qword ptr [RAX + 0x220],0x0
JZ 0x00139006
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x220]
CALL 0x001072a0
LAB_00139006:
MOV RAX,qword ptr [RSP + 0x8]
CMP qword ptr [RAX + 0x218],0x0
JZ 0x00139026
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x218]
CALL 0x001072a0
LAB_00139026:
MOV RAX,qword ptr [RSP + 0x8]
CMP qword ptr [RAX + 0x208],0x0
JZ 0x00139046
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x208]
CALL 0x001072a0
LAB_00139046:
MOV RAX,qword ptr [RSP + 0x8]
CMP qword ptr [RAX + 0x228],0x0
JZ 0x00139066
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x228]
CALL 0x001072a0
LAB_00139066:
MOV RAX,qword ptr [RSP + 0x8]
CMP qword ptr [RAX + 0x238],0x0
JZ 0x00139086
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x238]
CALL 0x001072a0
LAB_00139086:
MOV RAX,qword ptr [RSP + 0x8]
CMP qword ptr [RAX + 0x230],0x0
JZ 0x001390a6
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x230]
CALL 0x001072a0
LAB_001390a6:
MOV RAX,qword ptr [RSP + 0x8]
CMP qword ptr [RAX + 0x200],0x0
JZ 0x001390c6
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x200]
CALL 0x001072a0
LAB_001390c6:
JMP 0x001390c8
LAB_001390c8:
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RAX + 0x220],0x0
MOV qword ptr [RAX + 0x218],0x0
MOV dword ptr [RAX + 0x210],0x0
MOV dword ptr [RAX + 0x214],0x0
MOV qword ptr [RAX + 0x200],0x0
MOV qword ptr [RAX + 0x228],0x0
MOV qword ptr [RAX + 0x238],0x0
MOV qword ptr [RAX + 0x230],0x0
MOV qword ptr [RAX + 0x208],0x0
ADD RSP,0x28
RET
|
/* LefDefParser::defiNet::clearVia() */
void __thiscall LefDefParser::defiNet::clearVia(defiNet *this)
{
long lVar1;
int local_14;
if (*(long *)(this + 0x208) != 0) {
for (local_14 = 0; local_14 < *(int *)(this + 0x210); local_14 = local_14 + 1) {
if (*(long *)(*(long *)(this + 0x208) + (long)local_14 * 8) != 0) {
free(*(void **)(*(long *)(this + 0x208) + (long)local_14 * 8));
}
if (*(long *)(*(long *)(this + 0x228) + (long)local_14 * 8) != 0) {
free(*(void **)(*(long *)(this + 0x228) + (long)local_14 * 8));
}
if (*(long *)(*(long *)(this + 0x238) + (long)local_14 * 8) != 0) {
free(*(void **)(*(long *)(this + 0x238) + (long)local_14 * 8));
}
if (*(long *)(*(long *)(this + 0x230) + (long)local_14 * 8) != 0) {
free(*(void **)(*(long *)(this + 0x230) + (long)local_14 * 8));
}
lVar1 = *(long *)(*(long *)(this + 0x200) + (long)local_14 * 8);
free(*(void **)(lVar1 + 8));
free(*(void **)(lVar1 + 0x10));
free(*(void **)(*(long *)(this + 0x200) + (long)local_14 * 8));
}
if (*(long *)(this + 0x220) != 0) {
free(*(void **)(this + 0x220));
}
if (*(long *)(this + 0x218) != 0) {
free(*(void **)(this + 0x218));
}
if (*(long *)(this + 0x208) != 0) {
free(*(void **)(this + 0x208));
}
if (*(long *)(this + 0x228) != 0) {
free(*(void **)(this + 0x228));
}
if (*(long *)(this + 0x238) != 0) {
free(*(void **)(this + 0x238));
}
if (*(long *)(this + 0x230) != 0) {
free(*(void **)(this + 0x230));
}
if (*(long *)(this + 0x200) != 0) {
free(*(void **)(this + 0x200));
}
}
*(int8 *)(this + 0x220) = 0;
*(int8 *)(this + 0x218) = 0;
*(int4 *)(this + 0x210) = 0;
*(int4 *)(this + 0x214) = 0;
*(int8 *)(this + 0x200) = 0;
*(int8 *)(this + 0x228) = 0;
*(int8 *)(this + 0x238) = 0;
*(int8 *)(this + 0x230) = 0;
*(int8 *)(this + 0x208) = 0;
return;
}
| |
37,885 | common_log::add(ggml_log_level, char const*, __va_list_tag*) | monkey531[P]llama/common/log.cpp | void add(enum ggml_log_level level, const char * fmt, va_list args) {
std::lock_guard<std::mutex> lock(mtx);
if (!running) {
// discard messages while the worker thread is paused
return;
}
auto & entry = entries[tail];
{
// cannot use args twice, so make a copy in case we need to expand the buffer
va_list args_copy;
va_copy(args_copy, args);
#if 1
const size_t n = vsnprintf(entry.msg.data(), entry.msg.size(), fmt, args);
if (n >= entry.msg.size()) {
entry.msg.resize(n + 1);
vsnprintf(entry.msg.data(), entry.msg.size(), fmt, args_copy);
}
#else
// hack for bolding arguments
std::stringstream ss;
for (int i = 0; fmt[i] != 0; i++) {
if (fmt[i] == '%') {
ss << LOG_COL_BOLD;
while (fmt[i] != ' ' && fmt[i] != ')' && fmt[i] != ']' && fmt[i] != 0) ss << fmt[i++];
ss << LOG_COL_DEFAULT;
if (fmt[i] == 0) break;
}
ss << fmt[i];
}
const size_t n = vsnprintf(entry.msg.data(), entry.msg.size(), ss.str().c_str(), args);
if (n >= entry.msg.size()) {
entry.msg.resize(n + 1);
vsnprintf(entry.msg.data(), entry.msg.size(), ss.str().c_str(), args_copy);
}
#endif
va_end(args_copy);
}
entry.level = level;
entry.prefix = prefix;
entry.timestamp = 0;
if (timestamps) {
entry.timestamp = t_us() - t_start;
}
entry.is_end = false;
tail = (tail + 1) % entries.size();
if (tail == head) {
// expand the buffer
std::vector<common_log_entry> new_entries(2*entries.size());
size_t new_tail = 0;
do {
new_entries[new_tail] = std::move(entries[head]);
head = (head + 1) % entries.size();
new_tail = (new_tail + 1);
} while (head != tail);
head = 0;
tail = new_tail;
for (size_t i = tail; i < new_entries.size(); i++) {
new_entries[i].msg.resize(256);
}
entries = std::move(new_entries);
}
cv.notify_one();
} | O2 | cpp | common_log::add(ggml_log_level, char const*, __va_list_tag*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %r15
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
callq 0x9641e
cmpb $0x1, 0x6a(%rbx)
jne 0x95e91
movl %ebp, 0xc(%rsp)
movq 0x78(%rbx), %r13
imulq $0x30, 0x98(%rbx), %rbp
movq %r13, %r12
addq %rbp, %r12
movq 0x10(%r15), %rax
movq %rax, 0x20(%rsp)
movups (%r15), %xmm0
movaps %xmm0, 0x10(%rsp)
movq 0x10(%r13,%rbp), %rdi
movq 0x18(%r13,%rbp), %rsi
subq %rdi, %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0x24160
movslq %eax, %rsi
movq 0x18(%r13,%rbp), %rax
subq 0x10(%r13,%rbp), %rax
cmpq %rsi, %rax
ja 0x95d47
leaq 0x10(,%rbp), %rdi
addq %r13, %rdi
incq %rsi
callq 0x5b828
movq 0x10(%r12), %rdi
movq 0x18(%r12), %rsi
subq %rdi, %rsi
leaq 0x10(%rsp), %rcx
movq %r14, %rdx
callq 0x24160
movl 0xc(%rsp), %eax
movl %eax, (%r12)
movb 0x68(%rbx), %al
movb %al, 0x4(%r12)
andq $0x0, 0x8(%r12)
cmpb $0x1, 0x69(%rbx)
jne 0x95d71
callq 0x95b56
subq 0x70(%rbx), %rax
movq %rax, 0x8(%r12)
movb $0x0, 0x28(%r12)
movq 0x80(%rbx), %rax
movq 0x98(%rbx), %rcx
incq %rcx
subq 0x78(%rbx), %rax
pushq $0x30
popq %r15
cqto
idivq %r15
movq %rax, %rsi
movq %rcx, %rax
xorl %edx, %edx
divq %rsi
movq %rdx, 0x98(%rbx)
cmpq 0x90(%rbx), %rdx
jne 0x95e88
addq %rsi, %rsi
leaq 0x10(%rsp), %rdi
leaq 0xb(%rsp), %rdx
callq 0x9690e
leaq 0x78(%rbx), %r14
movq 0x78(%rbx), %rdi
movq 0x90(%rbx), %rdx
pushq $0x10
popq %r12
xorl %r13d, %r13d
imulq $0x30, %rdx, %rsi
addq %rdi, %rsi
movq 0x10(%rsp), %rax
leaq (%rax,%r12), %rdi
addq $-0x10, %rdi
callq 0x96960
movq 0x90(%rbx), %rcx
incq %rcx
movq 0x78(%rbx), %rdi
movq 0x80(%rbx), %rax
subq %rdi, %rax
cqto
idivq %r15
movq %rax, %rsi
movq %rcx, %rax
xorl %edx, %edx
divq %rsi
movq %rdx, 0x90(%rbx)
incq %r13
addq $0x30, %r12
cmpq 0x98(%rbx), %rdx
jne 0x95ddc
andq $0x0, 0x90(%rbx)
movq %r13, 0x98(%rbx)
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rax
subq %rdi, %rax
cqto
idivq %r15
cmpq %rax, %r13
jae 0x95e70
addq %r12, %rdi
movl $0x100, %esi # imm = 0x100
callq 0x5b828
incq %r13
addq $0x30, %r12
jmp 0x95e43
leaq 0x10(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x96a3e
movq %r15, %rdi
callq 0x9612a
leaq 0x30(%rbx), %rdi
callq 0x23460
movq %rbx, %rdi
callq 0x236a0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x95eaa
movq %rax, %r14
jmp 0x95ebc
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x9612a
movq %rbx, %rdi
callq 0x236a0
movq %r14, %rdi
callq 0x23f10
| _ZN10common_log3addE14ggml_log_levelPKcP13__va_list_tag:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r15, rcx
mov r14, rdx
mov ebp, esi
mov rbx, rdi
call _ZNSt5mutex4lockEv; std::mutex::lock(void)
cmp byte ptr [rbx+6Ah], 1
jnz loc_95E91
mov [rsp+58h+var_4C], ebp
mov r13, [rbx+78h]
imul rbp, [rbx+98h], 30h ; '0'
mov r12, r13
add r12, rbp
mov rax, [r15+10h]
mov [rsp+58h+var_38], rax
movups xmm0, xmmword ptr [r15]
movaps [rsp+58h+var_48], xmm0
mov rdi, [r13+rbp+10h]
mov rsi, [r13+rbp+18h]
sub rsi, rdi
mov rdx, r14
mov rcx, r15
call vsnprintf
movsxd rsi, eax
mov rax, [r13+rbp+18h]
sub rax, [r13+rbp+10h]
cmp rax, rsi
ja short loc_95D47
lea rdi, ds:10h[rbp]
add rdi, r13
inc rsi
call _ZNSt6vectorIcSaIcEE6resizeEm; std::vector<char>::resize(ulong)
mov rdi, [r12+10h]
mov rsi, [r12+18h]
sub rsi, rdi
lea rcx, [rsp+58h+var_48]
mov rdx, r14
call vsnprintf
loc_95D47:
mov eax, [rsp+58h+var_4C]
mov [r12], eax
mov al, [rbx+68h]
mov [r12+4], al
and qword ptr [r12+8], 0
cmp byte ptr [rbx+69h], 1
jnz short loc_95D71
call _ZL4t_usv; t_us(void)
sub rax, [rbx+70h]
mov [r12+8], rax
loc_95D71:
mov byte ptr [r12+28h], 0
mov rax, [rbx+80h]
mov rcx, [rbx+98h]
inc rcx
sub rax, [rbx+78h]
push 30h ; '0'
pop r15
cqo
idiv r15
mov rsi, rax
mov rax, rcx
xor edx, edx
div rsi
mov [rbx+98h], rdx
cmp rdx, [rbx+90h]
jnz loc_95E88
add rsi, rsi
lea rdi, [rsp+58h+var_48]
lea rdx, [rsp+58h+var_4D]
call _ZNSt6vectorI16common_log_entrySaIS0_EEC2EmRKS1_; std::vector<common_log_entry>::vector(ulong,std::allocator<common_log_entry> const&)
lea r14, [rbx+78h]
mov rdi, [rbx+78h]
mov rdx, [rbx+90h]
push 10h
pop r12
xor r13d, r13d
loc_95DDC:
imul rsi, rdx, 30h ; '0'
add rsi, rdi
mov rax, qword ptr [rsp+58h+var_48]
lea rdi, [rax+r12]
add rdi, 0FFFFFFFFFFFFFFF0h
call _ZN16common_log_entryaSEOS_; common_log_entry::operator=(common_log_entry&&)
mov rcx, [rbx+90h]
inc rcx
mov rdi, [rbx+78h]
mov rax, [rbx+80h]
sub rax, rdi
cqo
idiv r15
mov rsi, rax
mov rax, rcx
xor edx, edx
div rsi
mov [rbx+90h], rdx
inc r13
add r12, 30h ; '0'
cmp rdx, [rbx+98h]
jnz short loc_95DDC
and qword ptr [rbx+90h], 0
mov [rbx+98h], r13
loc_95E43:
mov rdi, qword ptr [rsp+58h+var_48]
mov rax, qword ptr [rsp+58h+var_48+8]
sub rax, rdi
cqo
idiv r15
cmp r13, rax
jnb short loc_95E70
add rdi, r12
mov esi, 100h
call _ZNSt6vectorIcSaIcEE6resizeEm; std::vector<char>::resize(ulong)
inc r13
add r12, 30h ; '0'
jmp short loc_95E43
loc_95E70:
lea r15, [rsp+58h+var_48]
mov rdi, r14
mov rsi, r15
call _ZNSt6vectorI16common_log_entrySaIS0_EE14_M_move_assignEOS2_St17integral_constantIbLb1EE; std::vector<common_log_entry>::_M_move_assign(std::vector<common_log_entry>&&,std::integral_constant<bool,true>)
mov rdi, r15
call _ZNSt6vectorI16common_log_entrySaIS0_EED2Ev; std::vector<common_log_entry>::~vector()
loc_95E88:
lea rdi, [rbx+30h]; this
call __ZNSt18condition_variable10notify_oneEv; std::condition_variable::notify_one(void)
loc_95E91:
mov rdi, rbx
call _pthread_mutex_unlock
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_95EAA:
mov r14, rax
jmp short loc_95EBC
mov r14, rax
lea rdi, [rsp+arg_8]
call _ZNSt6vectorI16common_log_entrySaIS0_EED2Ev; std::vector<common_log_entry>::~vector()
loc_95EBC:
mov rdi, rbx
call _pthread_mutex_unlock
mov rdi, r14
call __Unwind_Resume
| long long common_log::add(long long a1, int a2, long long a3, __int128 *a4)
{
long long v7; // r13
long long v8; // rbp
long long v9; // r12
std::chrono::_V2::system_clock *v10; // rdi
unsigned long long v11; // rsi
unsigned long long v12; // rsi
unsigned long long v13; // rdx
long long v14; // rdi
unsigned long long v15; // rdx
long long v16; // r12
unsigned long long v17; // r13
char v19; // [rsp+Bh] [rbp-4Dh] BYREF
int v20; // [rsp+Ch] [rbp-4Ch]
__int128 v21; // [rsp+10h] [rbp-48h] BYREF
long long v22; // [rsp+20h] [rbp-38h]
std::mutex::lock((std::mutex *)a1);
if ( *(_BYTE *)(a1 + 106) == 1 )
{
v20 = a2;
v7 = *(_QWORD *)(a1 + 120);
v8 = 48LL * *(_QWORD *)(a1 + 152);
v9 = v8 + v7;
v22 = *((_QWORD *)a4 + 2);
v21 = *a4;
v10 = *(std::chrono::_V2::system_clock **)(v7 + v8 + 16);
v11 = (int)vsnprintf(v10, *(_QWORD *)(v7 + v8 + 24) - (_QWORD)v10, a3, a4);
if ( *(_QWORD *)(v7 + v8 + 24) - *(_QWORD *)(v7 + v8 + 16) <= v11 )
{
std::vector<char>::resize((_QWORD *)(v7 + v8 + 16), v11 + 1);
v10 = *(std::chrono::_V2::system_clock **)(v9 + 16);
vsnprintf(v10, *(_QWORD *)(v9 + 24) - (_QWORD)v10, a3, &v21);
}
*(_DWORD *)v9 = v20;
*(_BYTE *)(v9 + 4) = *(_BYTE *)(a1 + 104);
*(_QWORD *)(v9 + 8) = 0LL;
if ( *(_BYTE *)(a1 + 105) == 1 )
*(_QWORD *)(v9 + 8) = t_us(v10) - *(_QWORD *)(a1 + 112);
*(_BYTE *)(v9 + 40) = 0;
v12 = (*(_QWORD *)(a1 + 128) - *(_QWORD *)(a1 + 120)) / 48LL;
v13 = (*(_QWORD *)(a1 + 152) + 1LL) % v12;
*(_QWORD *)(a1 + 152) = v13;
if ( v13 == *(_QWORD *)(a1 + 144) )
{
std::vector<common_log_entry>::vector(&v21, 2 * v12, &v19);
v14 = *(_QWORD *)(a1 + 120);
v15 = *(_QWORD *)(a1 + 144);
v16 = 16LL;
v17 = 0LL;
do
{
common_log_entry::operator=(v21 + v16 - 16, v14 + 48 * v15);
v14 = *(_QWORD *)(a1 + 120);
v15 = (*(_QWORD *)(a1 + 144) + 1LL) % (unsigned long long)((*(_QWORD *)(a1 + 128) - v14) / 48);
*(_QWORD *)(a1 + 144) = v15;
++v17;
v16 += 48LL;
}
while ( v15 != *(_QWORD *)(a1 + 152) );
*(_QWORD *)(a1 + 144) = 0LL;
*(_QWORD *)(a1 + 152) = v17;
while ( v17 < (*((_QWORD *)&v21 + 1) - (_QWORD)v21) / 48LL )
{
std::vector<char>::resize((_QWORD *)(v16 + v21), 0x100uLL);
++v17;
v16 += 48LL;
}
std::vector<common_log_entry>::_M_move_assign(a1 + 120, &v21, (*((_QWORD *)&v21 + 1) - (_QWORD)v21) % 48LL);
std::vector<common_log_entry>::~vector(&v21);
}
std::condition_variable::notify_one((std::condition_variable *)(a1 + 48));
}
return pthread_mutex_unlock(a1);
}
| add:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R15,RCX
MOV R14,RDX
MOV EBP,ESI
MOV RBX,RDI
CALL 0x0019641e
CMP byte ptr [RBX + 0x6a],0x1
JNZ 0x00195e91
MOV dword ptr [RSP + 0xc],EBP
MOV R13,qword ptr [RBX + 0x78]
IMUL RBP,qword ptr [RBX + 0x98],0x30
MOV R12,R13
ADD R12,RBP
MOV RAX,qword ptr [R15 + 0x10]
MOV qword ptr [RSP + 0x20],RAX
MOVUPS XMM0,xmmword ptr [R15]
MOVAPS xmmword ptr [RSP + 0x10],XMM0
MOV RDI,qword ptr [R13 + RBP*0x1 + 0x10]
MOV RSI,qword ptr [R13 + RBP*0x1 + 0x18]
SUB RSI,RDI
MOV RDX,R14
MOV RCX,R15
CALL 0x00124160
MOVSXD RSI,EAX
MOV RAX,qword ptr [R13 + RBP*0x1 + 0x18]
SUB RAX,qword ptr [R13 + RBP*0x1 + 0x10]
CMP RAX,RSI
JA 0x00195d47
LEA RDI,[0x10 + RBP*0x1]
ADD RDI,R13
INC RSI
LAB_00195d28:
CALL 0x0015b828
MOV RDI,qword ptr [R12 + 0x10]
MOV RSI,qword ptr [R12 + 0x18]
SUB RSI,RDI
LEA RCX,[RSP + 0x10]
MOV RDX,R14
CALL 0x00124160
LAB_00195d47:
MOV EAX,dword ptr [RSP + 0xc]
MOV dword ptr [R12],EAX
MOV AL,byte ptr [RBX + 0x68]
MOV byte ptr [R12 + 0x4],AL
AND qword ptr [R12 + 0x8],0x0
CMP byte ptr [RBX + 0x69],0x1
JNZ 0x00195d71
CALL 0x00195b56
SUB RAX,qword ptr [RBX + 0x70]
MOV qword ptr [R12 + 0x8],RAX
LAB_00195d71:
MOV byte ptr [R12 + 0x28],0x0
MOV RAX,qword ptr [RBX + 0x80]
MOV RCX,qword ptr [RBX + 0x98]
INC RCX
SUB RAX,qword ptr [RBX + 0x78]
PUSH 0x30
POP R15
CQO
IDIV R15
MOV RSI,RAX
MOV RAX,RCX
XOR EDX,EDX
DIV RSI
MOV qword ptr [RBX + 0x98],RDX
CMP RDX,qword ptr [RBX + 0x90]
JNZ 0x00195e88
ADD RSI,RSI
LAB_00195db7:
LEA RDI,[RSP + 0x10]
LEA RDX,[RSP + 0xb]
CALL 0x0019690e
LEA R14,[RBX + 0x78]
MOV RDI,qword ptr [RBX + 0x78]
MOV RDX,qword ptr [RBX + 0x90]
PUSH 0x10
POP R12
XOR R13D,R13D
LAB_00195ddc:
IMUL RSI,RDX,0x30
ADD RSI,RDI
MOV RAX,qword ptr [RSP + 0x10]
LEA RDI,[RAX + R12*0x1]
ADD RDI,-0x10
CALL 0x00196960
MOV RCX,qword ptr [RBX + 0x90]
INC RCX
MOV RDI,qword ptr [RBX + 0x78]
MOV RAX,qword ptr [RBX + 0x80]
SUB RAX,RDI
CQO
IDIV R15
MOV RSI,RAX
MOV RAX,RCX
XOR EDX,EDX
DIV RSI
MOV qword ptr [RBX + 0x90],RDX
INC R13
ADD R12,0x30
CMP RDX,qword ptr [RBX + 0x98]
JNZ 0x00195ddc
AND qword ptr [RBX + 0x90],0x0
MOV qword ptr [RBX + 0x98],R13
LAB_00195e43:
MOV RDI,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RSP + 0x18]
SUB RAX,RDI
CQO
IDIV R15
CMP R13,RAX
JNC 0x00195e70
ADD RDI,R12
LAB_00195e5d:
MOV ESI,0x100
CALL 0x0015b828
LAB_00195e67:
INC R13
ADD R12,0x30
JMP 0x00195e43
LAB_00195e70:
LEA R15,[RSP + 0x10]
MOV RDI,R14
MOV RSI,R15
CALL 0x00196a3e
MOV RDI,R15
CALL 0x0019612a
LAB_00195e88:
LEA RDI,[RBX + 0x30]
CALL 0x00123460
LAB_00195e91:
MOV RDI,RBX
CALL 0x001236a0
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* common_log::add(ggml_log_level, char const*, __va_list_tag*) */
void __thiscall common_log::add(common_log *this,int4 param_2,char *param_3,long *param_4)
{
char *__s;
int iVar1;
long lVar2;
ulong uVar3;
ulong uVar4;
long lVar5;
int4 *puVar6;
allocator local_4d;
int4 local_4c;
long local_48;
long lStack_40;
long local_38;
std::mutex::lock((mutex *)this);
if (this[0x6a] == (common_log)0x1) {
lVar2 = *(long *)(this + 0x78);
lVar5 = *(long *)(this + 0x98) * 0x30;
puVar6 = (int4 *)(lVar2 + lVar5);
local_38 = param_4[2];
local_48 = *param_4;
lStack_40 = param_4[1];
__s = *(char **)(lVar2 + 0x10 + lVar5);
local_4c = param_2;
iVar1 = vsnprintf(__s,*(long *)(lVar2 + 0x18 + lVar5) - (long)__s,param_3,param_4);
if ((ulong)(*(long *)(lVar2 + 0x18 + lVar5) - *(long *)(lVar2 + 0x10 + lVar5)) <=
(ulong)(long)iVar1) {
/* try { // try from 00195d28 to 00195d2c has its CatchHandler @ 00195eaa */
std::vector<char,std::allocator<char>>::resize
((vector<char,std::allocator<char>> *)(lVar5 + 0x10 + lVar2),(long)iVar1 + 1);
vsnprintf(*(char **)(puVar6 + 4),*(long *)(puVar6 + 6) - (long)*(char **)(puVar6 + 4),param_3,
&local_48);
}
*puVar6 = local_4c;
*(common_log *)(puVar6 + 1) = this[0x68];
*(int8 *)(puVar6 + 2) = 0;
if (this[0x69] == (common_log)0x1) {
lVar2 = t_us();
*(long *)(puVar6 + 2) = lVar2 - *(long *)(this + 0x70);
}
*(int1 *)(puVar6 + 10) = 0;
uVar3 = (*(long *)(this + 0x80) - *(long *)(this + 0x78)) / 0x30;
uVar4 = (*(long *)(this + 0x98) + 1U) % uVar3;
*(ulong *)(this + 0x98) = uVar4;
if (uVar4 == *(ulong *)(this + 0x90)) {
/* try { // try from 00195db7 to 00195dc5 has its CatchHandler @ 00195ea8 */
std::vector<common_log_entry,std::allocator<common_log_entry>>::vector
((vector<common_log_entry,std::allocator<common_log_entry>> *)&local_48,uVar3 * 2,
&local_4d);
lVar2 = *(long *)(this + 0x78);
uVar3 = *(ulong *)(this + 0x90);
lVar5 = 0x10;
uVar4 = 0;
do {
common_log_entry::operator=
((common_log_entry *)(local_48 + lVar5 + -0x10),
(common_log_entry *)(uVar3 * 0x30 + lVar2));
lVar2 = *(long *)(this + 0x78);
uVar3 = (*(long *)(this + 0x90) + 1U) % (ulong)((*(long *)(this + 0x80) - lVar2) / 0x30);
*(ulong *)(this + 0x90) = uVar3;
uVar4 = uVar4 + 1;
lVar5 = lVar5 + 0x30;
} while (uVar3 != *(ulong *)(this + 0x98));
*(int8 *)(this + 0x90) = 0;
*(ulong *)(this + 0x98) = uVar4;
while( true ) {
if ((ulong)((lStack_40 - local_48) / 0x30) <= uVar4) break;
/* try { // try from 00195e5d to 00195e66 has its CatchHandler @ 00195eaf */
std::vector<char,std::allocator<char>>::resize
((vector<char,std::allocator<char>> *)(local_48 + lVar5),0x100);
uVar4 = uVar4 + 1;
lVar5 = lVar5 + 0x30;
}
std::vector<common_log_entry,std::allocator<common_log_entry>>::_M_move_assign
(this + 0x78,(vector<common_log_entry,std::allocator<common_log_entry>> *)&local_48,
(lStack_40 - local_48) % 0x30);
std::vector<common_log_entry,std::allocator<common_log_entry>>::~vector
((vector<common_log_entry,std::allocator<common_log_entry>> *)&local_48);
}
std::condition_variable::notify_one();
}
pthread_mutex_unlock((pthread_mutex_t *)this);
return;
}
| |
37,886 | common_log::add(ggml_log_level, char const*, __va_list_tag*) | monkey531[P]llama/common/log.cpp | void add(enum ggml_log_level level, const char * fmt, va_list args) {
std::lock_guard<std::mutex> lock(mtx);
if (!running) {
// discard messages while the worker thread is paused
return;
}
auto & entry = entries[tail];
{
// cannot use args twice, so make a copy in case we need to expand the buffer
va_list args_copy;
va_copy(args_copy, args);
#if 1
const size_t n = vsnprintf(entry.msg.data(), entry.msg.size(), fmt, args);
if (n >= entry.msg.size()) {
entry.msg.resize(n + 1);
vsnprintf(entry.msg.data(), entry.msg.size(), fmt, args_copy);
}
#else
// hack for bolding arguments
std::stringstream ss;
for (int i = 0; fmt[i] != 0; i++) {
if (fmt[i] == '%') {
ss << LOG_COL_BOLD;
while (fmt[i] != ' ' && fmt[i] != ')' && fmt[i] != ']' && fmt[i] != 0) ss << fmt[i++];
ss << LOG_COL_DEFAULT;
if (fmt[i] == 0) break;
}
ss << fmt[i];
}
const size_t n = vsnprintf(entry.msg.data(), entry.msg.size(), ss.str().c_str(), args);
if (n >= entry.msg.size()) {
entry.msg.resize(n + 1);
vsnprintf(entry.msg.data(), entry.msg.size(), ss.str().c_str(), args_copy);
}
#endif
va_end(args_copy);
}
entry.level = level;
entry.prefix = prefix;
entry.timestamp = 0;
if (timestamps) {
entry.timestamp = t_us() - t_start;
}
entry.is_end = false;
tail = (tail + 1) % entries.size();
if (tail == head) {
// expand the buffer
std::vector<common_log_entry> new_entries(2*entries.size());
size_t new_tail = 0;
do {
new_entries[new_tail] = std::move(entries[head]);
head = (head + 1) % entries.size();
new_tail = (new_tail + 1);
} while (head != tail);
head = 0;
tail = new_tail;
for (size_t i = tail; i < new_entries.size(); i++) {
new_entries[i].msg.resize(256);
}
entries = std::move(new_entries);
}
cv.notify_one();
} | O3 | cpp | common_log::add(ggml_log_level, char const*, __va_list_tag*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rcx, %r15
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
callq 0x1ac70
testl %eax, %eax
jne 0xcb54a
cmpb $0x1, 0x6a(%rbx)
jne 0xcb533
movl %ebp, 0xc(%rsp)
movq 0x78(%rbx), %r13
movq 0x98(%rbx), %rax
leaq (%rax,%rax,2), %rbp
shlq $0x4, %rbp
movq %r13, %r12
addq %rbp, %r12
movq 0x10(%r15), %rax
movq %rax, 0x40(%rsp)
movups (%r15), %xmm0
movaps %xmm0, 0x30(%rsp)
movq 0x10(%r13,%rbp), %rdi
movq 0x18(%r13,%rbp), %rsi
subq %rdi, %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0x1b118
movslq %eax, %rsi
movq 0x18(%r13,%rbp), %rax
subq 0x10(%r13,%rbp), %rax
cmpq %rsi, %rax
ja 0xcb332
leaq 0x10(,%rbp), %rdi
addq %r13, %rdi
incq %rsi
callq 0x7dae2
movq 0x10(%r12), %rdi
movq 0x18(%r12), %rsi
subq %rdi, %rsi
leaq 0x30(%rsp), %rcx
movq %r14, %rdx
callq 0x1b118
movl 0xc(%rsp), %eax
movl %eax, (%r12)
movb 0x68(%rbx), %al
movb %al, 0x4(%r12)
movq $0x0, 0x8(%r12)
cmpb $0x1, 0x69(%rbx)
jne 0xcb37a
callq 0x1a090
movabsq $0x20c49ba5e353f7cf, %rcx # imm = 0x20C49BA5E353F7CF
imulq %rcx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x7, %rdx
addq %rax, %rdx
subq 0x70(%rbx), %rdx
movq %rdx, 0x8(%r12)
movb $0x0, 0x28(%r12)
movq 0x80(%rbx), %rsi
movq 0x98(%rbx), %rax
incq %rax
subq 0x78(%rbx), %rsi
sarq $0x4, %rsi
movabsq $-0x5555555555555555, %r14 # imm = 0xAAAAAAAAAAAAAAAB
imulq %r14, %rsi
xorl %edx, %edx
divq %rsi
movq %rdx, 0x98(%rbx)
cmpq 0x90(%rbx), %rdx
jne 0xcb52a
addq %rsi, %rsi
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rdx
movq %rbx, (%rsp)
callq 0xcbfbc
movq 0x78(%rbx), %rcx
movq 0x90(%rbx), %rdx
movl $0x10, %r12d
xorl %ebp, %ebp
xorl %r13d, %r13d
leaq (%rdx,%rdx,2), %rax
shlq $0x4, %rax
movq 0x10(%rsp), %r15
movq %r14, %rbx
leaq (%rcx,%rax), %r14
addq $0x10, %r14
movups -0x10(%r14), %xmm0
movups %xmm0, (%r15,%rbp)
leaq (%r15,%r12), %rdi
movq %r14, %rsi
callq 0xcc03a
movb 0x18(%r14), %al
movq %rbx, %r14
movq (%rsp), %rbx
movb %al, 0x28(%r15,%rbp)
movq 0x90(%rbx), %rax
incq %rax
movq 0x78(%rbx), %rcx
movq 0x80(%rbx), %rsi
movq %rsi, %rdi
subq %rcx, %rdi
sarq $0x4, %rdi
imulq %r14, %rdi
xorl %edx, %edx
divq %rdi
movq %rdx, 0x90(%rbx)
incq %r13
addq $0x30, %r12
addq $0x30, %rbp
cmpq 0x98(%rbx), %rdx
jne 0xcb3ec
movq $0x0, 0x90(%rbx)
movq %r13, 0x98(%rbx)
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rax
movq %rax, %rdx
subq %rdi, %rdx
sarq $0x4, %rdx
imulq %r14, %rdx
cmpq %rdx, %r13
jae 0xcb4dc
addq %r12, %rdi
movl $0x100, %esi # imm = 0x100
callq 0x7dae2
incq %r13
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rax
movq %rax, %rcx
subq %rdi, %rcx
sarq $0x4, %rcx
imulq %r14, %rcx
addq $0x30, %r12
cmpq %rcx, %r13
jb 0xcb4a0
movq 0x78(%rbx), %rcx
movq 0x80(%rbx), %rsi
movq 0x88(%rbx), %rdx
movq %rdi, 0x78(%rbx)
movq %rax, 0x80(%rbx)
leaq 0x10(%rsp), %r14
movq 0x10(%r14), %rax
movq %rax, 0x88(%rbx)
leaq 0x30(%rsp), %rdi
movq %rcx, (%rdi)
movq %rsi, 0x8(%rdi)
movq %rdx, 0x10(%rdi)
xorps %xmm0, %xmm0
movaps %xmm0, (%r14)
movq $0x0, 0x10(%r14)
callq 0xcb832
movq %r14, %rdi
callq 0xcb832
leaq 0x30(%rbx), %rdi
callq 0x1a440
movq %rbx, %rdi
callq 0x1a680
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %edi
callq 0x1a5c0
jmp 0xcb557
movq %rbx, (%rsp)
movq %rax, %r14
jmp 0xcb569
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0xcb832
movq (%rsp), %rdi
callq 0x1a680
movq %r14, %rdi
callq 0x1af20
| _ZN10common_log3addE14ggml_log_levelPKcP13__va_list_tag:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov r15, rcx
mov r14, rdx
mov ebp, esi
mov rbx, rdi
call _pthread_mutex_lock
test eax, eax
jnz loc_CB54A
cmp byte ptr [rbx+6Ah], 1
jnz loc_CB533
mov [rsp+78h+var_6C], ebp
mov r13, [rbx+78h]
mov rax, [rbx+98h]
lea rbp, [rax+rax*2]
shl rbp, 4
mov r12, r13
add r12, rbp
mov rax, [r15+10h]
mov [rsp+78h+var_38], rax
movups xmm0, xmmword ptr [r15]
movaps [rsp+78h+var_48], xmm0
mov rdi, [r13+rbp+10h]
mov rsi, [r13+rbp+18h]
sub rsi, rdi
mov rdx, r14
mov rcx, r15
call vsnprintf
movsxd rsi, eax
mov rax, [r13+rbp+18h]
sub rax, [r13+rbp+10h]
cmp rax, rsi
ja short loc_CB332
lea rdi, ds:10h[rbp]
add rdi, r13
inc rsi
call _ZNSt6vectorIcSaIcEE6resizeEm; std::vector<char>::resize(ulong)
mov rdi, [r12+10h]; this
mov rsi, [r12+18h]
sub rsi, rdi
lea rcx, [rsp+78h+var_48]
mov rdx, r14
call vsnprintf
loc_CB332:
mov eax, [rsp+78h+var_6C]
mov [r12], eax
mov al, [rbx+68h]
mov [r12+4], al
mov qword ptr [r12+8], 0
cmp byte ptr [rbx+69h], 1
jnz short loc_CB37A
call __ZNSt6chrono3_V212system_clock3nowEv; std::chrono::_V2::system_clock::now(void)
mov rcx, 20C49BA5E353F7CFh
imul rcx
mov rax, rdx
shr rax, 3Fh
sar rdx, 7
add rdx, rax
sub rdx, [rbx+70h]
mov [r12+8], rdx
loc_CB37A:
mov byte ptr [r12+28h], 0
mov rsi, [rbx+80h]
mov rax, [rbx+98h]
inc rax
sub rsi, [rbx+78h]
sar rsi, 4
mov r14, 0AAAAAAAAAAAAAAABh
imul rsi, r14
xor edx, edx
div rsi
mov [rbx+98h], rdx
cmp rdx, [rbx+90h]
jnz loc_CB52A
add rsi, rsi
lea rdi, [rsp+78h+var_68]
lea rdx, [rsp+78h+var_48]
mov [rsp+78h+var_78], rbx
call _ZNSt6vectorI16common_log_entrySaIS0_EEC2EmRKS1_; std::vector<common_log_entry>::vector(ulong,std::allocator<common_log_entry> const&)
mov rcx, [rbx+78h]
mov rdx, [rbx+90h]
mov r12d, 10h
xor ebp, ebp
xor r13d, r13d
loc_CB3EC:
lea rax, [rdx+rdx*2]
shl rax, 4
mov r15, [rsp+78h+var_68]
mov rbx, r14
lea r14, [rcx+rax]
add r14, 10h
movups xmm0, xmmword ptr [r14-10h]
movups xmmword ptr [r15+rbp], xmm0
lea rdi, [r15+r12]
mov rsi, r14
call _ZNSt6vectorIcSaIcEE14_M_move_assignEOS1_St17integral_constantIbLb1EE; std::vector<char>::_M_move_assign(std::vector<char>&&,std::integral_constant<bool,true>)
mov al, [r14+18h]
mov r14, rbx
mov rbx, [rsp+78h+var_78]
mov [r15+rbp+28h], al
mov rax, [rbx+90h]
inc rax
mov rcx, [rbx+78h]
mov rsi, [rbx+80h]
mov rdi, rsi
sub rdi, rcx
sar rdi, 4
imul rdi, r14
xor edx, edx
div rdi
mov [rbx+90h], rdx
inc r13
add r12, 30h ; '0'
add rbp, 30h ; '0'
cmp rdx, [rbx+98h]
jnz loc_CB3EC
mov qword ptr [rbx+90h], 0
mov [rbx+98h], r13
mov rdi, [rsp+78h+var_68]
mov rax, [rsp+78h+var_60]
mov rdx, rax
sub rdx, rdi
sar rdx, 4
imul rdx, r14
cmp r13, rdx
jnb short loc_CB4DC
loc_CB4A0:
add rdi, r12
mov esi, 100h
call _ZNSt6vectorIcSaIcEE6resizeEm; std::vector<char>::resize(ulong)
inc r13
mov rdi, [rsp+78h+var_68]
mov rax, [rsp+78h+var_60]
mov rcx, rax
sub rcx, rdi
sar rcx, 4
imul rcx, r14
add r12, 30h ; '0'
cmp r13, rcx
jb short loc_CB4A0
mov rcx, [rbx+78h]
mov rsi, [rbx+80h]
loc_CB4DC:
mov rdx, [rbx+88h]
mov [rbx+78h], rdi
mov [rbx+80h], rax
lea r14, [rsp+78h+var_68]
mov rax, [r14+10h]
mov [rbx+88h], rax
lea rdi, [rsp+78h+var_48]
mov [rdi], rcx
mov [rdi+8], rsi
mov [rdi+10h], rdx
xorps xmm0, xmm0
movaps xmmword ptr [r14], xmm0
mov qword ptr [r14+10h], 0
call _ZNSt6vectorI16common_log_entrySaIS0_EED2Ev; std::vector<common_log_entry>::~vector()
mov rdi, r14
call _ZNSt6vectorI16common_log_entrySaIS0_EED2Ev; std::vector<common_log_entry>::~vector()
loc_CB52A:
lea rdi, [rbx+30h]; this
call __ZNSt18condition_variable10notify_oneEv; std::condition_variable::notify_one(void)
loc_CB533:
mov rdi, rbx
call _pthread_mutex_unlock
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_CB54A:
mov edi, eax; int
call __ZSt20__throw_system_errori; std::__throw_system_error(int)
jmp short loc_CB557
mov [rsp+78h+var_78], rbx
loc_CB557:
mov r14, rax
jmp short loc_CB569
mov r14, rax
lea rdi, [rsp+78h+var_68]
call _ZNSt6vectorI16common_log_entrySaIS0_EED2Ev; std::vector<common_log_entry>::~vector()
loc_CB569:
mov rdi, [rsp+78h+var_78]
call _pthread_mutex_unlock
mov rdi, r14
call __Unwind_Resume
| long long common_log::add(long long a1, int a2, long long a3, __int128 *a4)
{
_QWORD *v6; // rbx
int v7; // eax
long long v8; // r13
long long v9; // rbp
long long v10; // r12
std::chrono::_V2::system_clock *v11; // rdi
unsigned long long v12; // rsi
unsigned long long v13; // r14
unsigned long long v14; // rsi
unsigned long long v15; // rdx
long long v16; // rcx
unsigned long long v17; // rdx
long long v18; // r12
long long v19; // rbp
unsigned long long v20; // r13
long long v21; // r15
unsigned long long v22; // rbx
long long v23; // r14
char v24; // al
long long v25; // rsi
__int128 v26; // kr00_16
long long v27; // rdx
_QWORD *v29; // [rsp+0h] [rbp-78h]
__int128 v31; // [rsp+10h] [rbp-68h] BYREF
long long v32; // [rsp+20h] [rbp-58h]
__int128 v33; // [rsp+30h] [rbp-48h] BYREF
long long v34; // [rsp+40h] [rbp-38h]
v6 = (_QWORD *)a1;
v7 = pthread_mutex_lock();
if ( v7 )
std::__throw_system_error(v7);
if ( *(_BYTE *)(a1 + 106) == 1 )
{
v8 = *(_QWORD *)(a1 + 120);
v9 = 48LL * *(_QWORD *)(a1 + 152);
v10 = v9 + v8;
v34 = *((_QWORD *)a4 + 2);
v33 = *a4;
v11 = *(std::chrono::_V2::system_clock **)(v8 + v9 + 16);
v12 = (int)vsnprintf(v11, *(_QWORD *)(v8 + v9 + 24) - (_QWORD)v11, a3, a4);
if ( *(_QWORD *)(v8 + v9 + 24) - *(_QWORD *)(v8 + v9 + 16) <= v12 )
{
std::vector<char>::resize((_QWORD *)(v8 + v9 + 16), v12 + 1);
v11 = *(std::chrono::_V2::system_clock **)(v10 + 16);
vsnprintf(v11, *(_QWORD *)(v10 + 24) - (_QWORD)v11, a3, &v33);
}
*(_DWORD *)v10 = a2;
*(_BYTE *)(v10 + 4) = *((_BYTE *)v6 + 104);
*(_QWORD *)(v10 + 8) = 0LL;
if ( *((_BYTE *)v6 + 105) == 1 )
*(_QWORD *)(v10 + 8) = std::chrono::_V2::system_clock::now(v11) / 1000LL - v6[14];
*(_BYTE *)(v10 + 40) = 0;
v13 = 0xAAAAAAAAAAAAAAABLL;
v14 = 0xAAAAAAAAAAAAAAABLL * ((long long)(v6[16] - v6[15]) >> 4);
v15 = (v6[19] + 1LL) % v14;
v6[19] = v15;
if ( v15 == v6[18] )
{
v29 = v6;
std::vector<common_log_entry>::vector(&v31, 2 * v14, &v33);
v16 = v6[15];
v17 = v6[18];
v18 = 16LL;
v19 = 0LL;
v20 = 0LL;
do
{
v21 = v31;
v22 = v13;
v23 = v16 + 48 * v17 + 16;
*(_OWORD *)(v31 + v19) = *(_OWORD *)(v16 + 48 * v17);
std::vector<char>::_M_move_assign(v21 + v18, v23);
v24 = *(_BYTE *)(v23 + 24);
v13 = v22;
v6 = v29;
*(_BYTE *)(v21 + v19 + 40) = v24;
v16 = v29[15];
v25 = v29[16];
v17 = (v29[18] + 1LL) % (v13 * ((v25 - v16) >> 4));
v29[18] = v17;
++v20;
v18 += 48LL;
v19 += 48LL;
}
while ( v17 != v29[19] );
v29[18] = 0LL;
v29[19] = v20;
v26 = v31;
if ( v20 < v13 * ((long long)(*((_QWORD *)&v31 + 1) - v31) >> 4) )
{
do
{
std::vector<char>::resize((_QWORD *)(v18 + v26), 0x100uLL);
++v20;
v18 += 48LL;
v26 = v31;
}
while ( v20 < v13 * ((long long)(*((_QWORD *)&v31 + 1) - v31) >> 4) );
v16 = v29[15];
v25 = v29[16];
}
v27 = v29[17];
*(_OWORD *)(v29 + 15) = v26;
v29[17] = v32;
*(_QWORD *)&v33 = v16;
*((_QWORD *)&v33 + 1) = v25;
v34 = v27;
v31 = 0LL;
v32 = 0LL;
std::vector<common_log_entry>::~vector(&v33);
std::vector<common_log_entry>::~vector(&v31);
}
std::condition_variable::notify_one((std::condition_variable *)(v6 + 6));
}
return pthread_mutex_unlock(v6);
}
| add:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV R15,RCX
MOV R14,RDX
MOV EBP,ESI
MOV RBX,RDI
CALL 0x0011ac70
TEST EAX,EAX
JNZ 0x001cb54a
CMP byte ptr [RBX + 0x6a],0x1
JNZ 0x001cb533
MOV dword ptr [RSP + 0xc],EBP
MOV R13,qword ptr [RBX + 0x78]
MOV RAX,qword ptr [RBX + 0x98]
LEA RBP,[RAX + RAX*0x2]
SHL RBP,0x4
MOV R12,R13
ADD R12,RBP
MOV RAX,qword ptr [R15 + 0x10]
MOV qword ptr [RSP + 0x40],RAX
MOVUPS XMM0,xmmword ptr [R15]
MOVAPS xmmword ptr [RSP + 0x30],XMM0
MOV RDI,qword ptr [R13 + RBP*0x1 + 0x10]
MOV RSI,qword ptr [R13 + RBP*0x1 + 0x18]
SUB RSI,RDI
MOV RDX,R14
MOV RCX,R15
CALL 0x0011b118
MOVSXD RSI,EAX
MOV RAX,qword ptr [R13 + RBP*0x1 + 0x18]
SUB RAX,qword ptr [R13 + RBP*0x1 + 0x10]
CMP RAX,RSI
JA 0x001cb332
LEA RDI,[0x10 + RBP*0x1]
ADD RDI,R13
INC RSI
LAB_001cb313:
CALL 0x0017dae2
MOV RDI,qword ptr [R12 + 0x10]
MOV RSI,qword ptr [R12 + 0x18]
SUB RSI,RDI
LEA RCX,[RSP + 0x30]
MOV RDX,R14
CALL 0x0011b118
LAB_001cb332:
MOV EAX,dword ptr [RSP + 0xc]
MOV dword ptr [R12],EAX
MOV AL,byte ptr [RBX + 0x68]
MOV byte ptr [R12 + 0x4],AL
MOV qword ptr [R12 + 0x8],0x0
CMP byte ptr [RBX + 0x69],0x1
JNZ 0x001cb37a
CALL 0x0011a090
MOV RCX,0x20c49ba5e353f7cf
IMUL RCX
MOV RAX,RDX
SHR RAX,0x3f
SAR RDX,0x7
ADD RDX,RAX
SUB RDX,qword ptr [RBX + 0x70]
MOV qword ptr [R12 + 0x8],RDX
LAB_001cb37a:
MOV byte ptr [R12 + 0x28],0x0
MOV RSI,qword ptr [RBX + 0x80]
MOV RAX,qword ptr [RBX + 0x98]
INC RAX
SUB RSI,qword ptr [RBX + 0x78]
SAR RSI,0x4
MOV R14,-0x5555555555555555
IMUL RSI,R14
XOR EDX,EDX
DIV RSI
MOV qword ptr [RBX + 0x98],RDX
CMP RDX,qword ptr [RBX + 0x90]
JNZ 0x001cb52a
ADD RSI,RSI
LAB_001cb3c3:
LEA RDI,[RSP + 0x10]
LEA RDX,[RSP + 0x30]
MOV qword ptr [RSP],RBX
CALL 0x001cbfbc
MOV RCX,qword ptr [RBX + 0x78]
MOV RDX,qword ptr [RBX + 0x90]
MOV R12D,0x10
XOR EBP,EBP
XOR R13D,R13D
LAB_001cb3ec:
LEA RAX,[RDX + RDX*0x2]
SHL RAX,0x4
MOV R15,qword ptr [RSP + 0x10]
MOV RBX,R14
LEA R14,[RCX + RAX*0x1]
ADD R14,0x10
MOVUPS XMM0,xmmword ptr [R14 + -0x10]
MOVUPS xmmword ptr [R15 + RBP*0x1],XMM0
LEA RDI,[R15 + R12*0x1]
MOV RSI,R14
CALL 0x001cc03a
MOV AL,byte ptr [R14 + 0x18]
MOV R14,RBX
MOV RBX,qword ptr [RSP]
MOV byte ptr [R15 + RBP*0x1 + 0x28],AL
MOV RAX,qword ptr [RBX + 0x90]
INC RAX
MOV RCX,qword ptr [RBX + 0x78]
MOV RSI,qword ptr [RBX + 0x80]
MOV RDI,RSI
SUB RDI,RCX
SAR RDI,0x4
IMUL RDI,R14
XOR EDX,EDX
DIV RDI
MOV qword ptr [RBX + 0x90],RDX
INC R13
ADD R12,0x30
ADD RBP,0x30
CMP RDX,qword ptr [RBX + 0x98]
JNZ 0x001cb3ec
MOV qword ptr [RBX + 0x90],0x0
MOV qword ptr [RBX + 0x98],R13
MOV RDI,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RSP + 0x18]
MOV RDX,RAX
SUB RDX,RDI
SAR RDX,0x4
IMUL RDX,R14
CMP R13,RDX
JNC 0x001cb4dc
LAB_001cb4a0:
ADD RDI,R12
LAB_001cb4a3:
MOV ESI,0x100
CALL 0x0017dae2
LAB_001cb4ad:
INC R13
MOV RDI,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RSP + 0x18]
MOV RCX,RAX
SUB RCX,RDI
SAR RCX,0x4
IMUL RCX,R14
ADD R12,0x30
CMP R13,RCX
JC 0x001cb4a0
MOV RCX,qword ptr [RBX + 0x78]
MOV RSI,qword ptr [RBX + 0x80]
LAB_001cb4dc:
MOV RDX,qword ptr [RBX + 0x88]
MOV qword ptr [RBX + 0x78],RDI
MOV qword ptr [RBX + 0x80],RAX
LEA R14,[RSP + 0x10]
MOV RAX,qword ptr [R14 + 0x10]
MOV qword ptr [RBX + 0x88],RAX
LEA RDI,[RSP + 0x30]
MOV qword ptr [RDI],RCX
MOV qword ptr [RDI + 0x8],RSI
MOV qword ptr [RDI + 0x10],RDX
XORPS XMM0,XMM0
MOVAPS xmmword ptr [R14],XMM0
MOV qword ptr [R14 + 0x10],0x0
CALL 0x001cb832
MOV RDI,R14
CALL 0x001cb832
LAB_001cb52a:
LEA RDI,[RBX + 0x30]
CALL 0x0011a440
LAB_001cb533:
MOV RDI,RBX
CALL 0x0011a680
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001cb54a:
MOV EDI,EAX
CALL 0x0011a5c0
|
/* common_log::add(ggml_log_level, char const*, __va_list_tag*) */
void __thiscall common_log::add(common_log *this,int4 param_2,char *param_3,long *param_4)
{
int4 *puVar1;
char *__s;
int4 uVar2;
int4 uVar3;
int4 uVar4;
int iVar5;
long lVar6;
ulong uVar7;
long lVar8;
long lVar9;
int4 *puVar10;
long lVar11;
ulong uVar12;
long local_68;
long lStack_60;
int8 local_58;
long local_48;
long lStack_40;
long local_38;
iVar5 = pthread_mutex_lock((pthread_mutex_t *)this);
if (iVar5 == 0) {
if (this[0x6a] == (common_log)0x1) {
lVar6 = *(long *)(this + 0x78);
lVar8 = *(long *)(this + 0x98) * 0x30;
puVar10 = (int4 *)(lVar6 + lVar8);
local_38 = param_4[2];
local_48 = *param_4;
lStack_40 = param_4[1];
__s = *(char **)(lVar6 + 0x10 + lVar8);
iVar5 = vsnprintf(__s,*(long *)(lVar6 + 0x18 + lVar8) - (long)__s,param_3,param_4);
if ((ulong)(*(long *)(lVar6 + 0x18 + lVar8) - *(long *)(lVar6 + 0x10 + lVar8)) <=
(ulong)(long)iVar5) {
/* try { // try from 001cb313 to 001cb317 has its CatchHandler @ 001cb553 */
std::vector<char,std::allocator<char>>::resize
((vector<char,std::allocator<char>> *)(lVar8 + 0x10 + lVar6),(long)iVar5 + 1);
vsnprintf(*(char **)(puVar10 + 4),*(long *)(puVar10 + 6) - (long)*(char **)(puVar10 + 4),
param_3,&local_48);
}
*puVar10 = param_2;
*(common_log *)(puVar10 + 1) = this[0x68];
*(int8 *)(puVar10 + 2) = 0;
if (this[0x69] == (common_log)0x1) {
lVar6 = std::chrono::_V2::system_clock::now();
*(long *)(puVar10 + 2) = lVar6 / 1000 - *(long *)(this + 0x70);
}
*(int1 *)(puVar10 + 10) = 0;
lVar6 = *(long *)(this + 0x80) - *(long *)(this + 0x78) >> 4;
uVar7 = (*(long *)(this + 0x98) + 1U) % (ulong)(lVar6 * -0x5555555555555555);
*(ulong *)(this + 0x98) = uVar7;
if (uVar7 == *(ulong *)(this + 0x90)) {
/* try { // try from 001cb3c3 to 001cb3d5 has its CatchHandler @ 001cb551 */
std::vector<common_log_entry,std::allocator<common_log_entry>>::vector
((ulong)&local_68,(allocator *)(lVar6 * 0x5555555555555556));
lVar6 = *(long *)(this + 0x78);
uVar7 = *(ulong *)(this + 0x90);
lVar11 = 0x10;
lVar8 = 0;
uVar12 = 0;
do {
lVar9 = local_68;
puVar10 = (int4 *)(lVar6 + uVar7 * 0x30);
uVar2 = puVar10[1];
uVar3 = puVar10[2];
uVar4 = puVar10[3];
puVar1 = (int4 *)(local_68 + lVar8);
*puVar1 = *puVar10;
puVar1[1] = uVar2;
puVar1[2] = uVar3;
puVar1[3] = uVar4;
std::vector<char,std::allocator<char>>::_M_move_assign(local_68 + lVar11,puVar10 + 4);
*(int1 *)(lVar9 + 0x28 + lVar8) = *(int1 *)(puVar10 + 10);
lVar6 = *(long *)(this + 0x78);
lVar9 = *(long *)(this + 0x80);
uVar7 = (*(long *)(this + 0x90) + 1U) %
(ulong)((lVar9 - lVar6 >> 4) * -0x5555555555555555);
*(ulong *)(this + 0x90) = uVar7;
uVar12 = uVar12 + 1;
lVar11 = lVar11 + 0x30;
lVar8 = lVar8 + 0x30;
} while (uVar7 != *(ulong *)(this + 0x98));
*(int8 *)(this + 0x90) = 0;
*(ulong *)(this + 0x98) = uVar12;
if (uVar12 < (ulong)((lStack_60 - local_68 >> 4) * -0x5555555555555555)) {
do {
/* try { // try from 001cb4a3 to 001cb4ac has its CatchHandler @ 001cb55c */
std::vector<char,std::allocator<char>>::resize
((vector<char,std::allocator<char>> *)(local_68 + lVar11),0x100);
uVar12 = uVar12 + 1;
lVar11 = lVar11 + 0x30;
} while (uVar12 < (ulong)((lStack_60 - local_68 >> 4) * -0x5555555555555555));
lVar6 = *(long *)(this + 0x78);
lVar9 = *(long *)(this + 0x80);
}
local_38 = *(long *)(this + 0x88);
*(long *)(this + 0x78) = local_68;
*(long *)(this + 0x80) = lStack_60;
*(int8 *)(this + 0x88) = local_58;
local_68 = 0;
lStack_60 = 0;
local_58 = 0;
local_48 = lVar6;
lStack_40 = lVar9;
std::vector<common_log_entry,std::allocator<common_log_entry>>::~vector
((vector<common_log_entry,std::allocator<common_log_entry>> *)&local_48);
std::vector<common_log_entry,std::allocator<common_log_entry>>::~vector
((vector<common_log_entry,std::allocator<common_log_entry>> *)&local_68);
}
std::condition_variable::notify_one();
}
pthread_mutex_unlock((pthread_mutex_t *)this);
return;
}
/* WARNING: Subroutine does not return */
std::__throw_system_error(iVar5);
}
| |
37,887 | MatrixRotateZYX | csit-sgu[P]mit-game-2025-team-tyler/Libraries/raylib/src/raymath.h | RMAPI Matrix MatrixRotateZYX(Vector3 angle)
{
Matrix result = { 0 };
float cz = cosf(angle.z);
float sz = sinf(angle.z);
float cy = cosf(angle.y);
float sy = sinf(angle.y);
float cx = cosf(angle.x);
float sx = sinf(angle.x);
result.m0 = cz*cy;
result.m4 = cz*sy*sx - cx*sz;
result.m8 = sz*sx + cz*cx*sy;
result.m12 = 0;
result.m1 = cy*sz;
result.m5 = cz*cx + sz*sy*sx;
result.m9 = cx*sz*sy - cz*sx;
result.m13 = 0;
result.m2 = -sy;
result.m6 = cy*sx;
result.m10 = cy*cx;
result.m14 = 0;
result.m3 = 0;
result.m7 = 0;
result.m11 = 0;
result.m15 = 1;
return result;
} | O3 | c | MatrixRotateZYX:
pushq %rbx
subq $0x60, %rsp
movss %xmm1, 0x10(%rsp)
movaps %xmm0, 0x20(%rsp)
movq %rdi, %rbx
movaps %xmm1, %xmm0
callq 0xa3b0
movaps %xmm0, 0x50(%rsp)
movss 0x10(%rsp), %xmm0
callq 0xa420
movaps %xmm0, 0x10(%rsp)
movaps 0x20(%rsp), %xmm0
shufps $0x55, %xmm0, %xmm0 # xmm0 = xmm0[1,1,1,1]
movaps %xmm0, (%rsp)
callq 0xa3b0
movaps %xmm0, 0x40(%rsp)
movaps (%rsp), %xmm0
callq 0xa420
movaps %xmm0, (%rsp)
movaps 0x20(%rsp), %xmm0
callq 0xa3b0
movaps %xmm0, 0x30(%rsp)
movaps 0x20(%rsp), %xmm0
callq 0xa420
movaps 0x50(%rsp), %xmm6
movaps %xmm6, %xmm1
movaps 0x40(%rsp), %xmm7
mulss %xmm7, %xmm1
movss %xmm1, (%rbx)
movaps %xmm6, %xmm2
movaps (%rsp), %xmm9
mulss %xmm9, %xmm2
movaps 0x10(%rsp), %xmm8
movaps %xmm8, %xmm3
movaps 0x30(%rsp), %xmm10
mulss %xmm10, %xmm3
movaps 0x66364(%rip), %xmm1 # 0xcf170
movaps %xmm6, %xmm4
movaps %xmm6, %xmm5
unpcklps %xmm3, %xmm6 # xmm6 = xmm6[0],xmm3[0],xmm6[1],xmm3[1]
xorps %xmm1, %xmm3
mulss %xmm10, %xmm4
mulss %xmm9, %xmm4
unpcklps %xmm4, %xmm3 # xmm3 = xmm3[0],xmm4[0],xmm3[1],xmm4[1]
unpcklps %xmm8, %xmm2 # xmm2 = xmm2[0],xmm8[0],xmm2[1],xmm8[1]
movaps %xmm0, %xmm4
shufps $0x0, %xmm0, %xmm4 # xmm4 = xmm4[0,0],xmm0[0,0]
mulps %xmm4, %xmm2
addps %xmm3, %xmm2
movlps %xmm2, 0x4(%rbx)
xorl %eax, %eax
movl %eax, 0xc(%rbx)
movaps %xmm8, %xmm3
movaps %xmm8, %xmm2
mulss %xmm7, %xmm2
movss %xmm2, 0x10(%rbx)
movaps %xmm9, %xmm2
mulss %xmm9, %xmm3
xorps %xmm1, %xmm5
unpcklps %xmm5, %xmm3 # xmm3 = xmm3[0],xmm5[0],xmm3[1],xmm5[1]
mulps %xmm4, %xmm3
movaps %xmm10, %xmm4
unpcklps %xmm10, %xmm0 # xmm0 = xmm0[0],xmm10[0],xmm0[1],xmm10[1]
unpcklps %xmm9, %xmm4 # xmm4 = xmm4[0],xmm9[0],xmm4[1],xmm9[1]
mulps %xmm6, %xmm4
addps %xmm3, %xmm4
movlps %xmm4, 0x14(%rbx)
movl %eax, 0x1c(%rbx)
xorps %xmm1, %xmm2
movss %xmm2, 0x20(%rbx)
movaps %xmm7, %xmm1
unpcklps %xmm7, %xmm1 # xmm1 = xmm1[0],xmm7[0],xmm1[1],xmm7[1]
mulps %xmm0, %xmm1
movlps %xmm1, 0x24(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x2c(%rbx)
movl $0x3f800000, 0x3c(%rbx) # imm = 0x3F800000
movq %rbx, %rax
addq $0x60, %rsp
popq %rbx
retq
| MatrixRotateZYX:
push rbx
sub rsp, 60h
movss dword ptr [rsp+68h+var_58], xmm1
movaps [rsp+68h+var_48], xmm0
mov rbx, rdi
movaps xmm0, xmm1
call _cosf
movaps [rsp+68h+var_18], xmm0
movss xmm0, dword ptr [rsp+68h+var_58]
call _sinf
movaps [rsp+68h+var_58], xmm0
movaps xmm0, [rsp+68h+var_48]
shufps xmm0, xmm0, 55h ; 'U'
movaps [rsp+68h+var_68], xmm0
call _cosf
movaps [rsp+68h+var_28], xmm0
movaps xmm0, [rsp+68h+var_68]
call _sinf
movaps [rsp+68h+var_68], xmm0
movaps xmm0, [rsp+68h+var_48]
call _cosf
movaps [rsp+68h+var_38], xmm0
movaps xmm0, [rsp+68h+var_48]
call _sinf
movaps xmm6, [rsp+68h+var_18]
movaps xmm1, xmm6
movaps xmm7, [rsp+68h+var_28]
mulss xmm1, xmm7
movss dword ptr [rbx], xmm1
movaps xmm2, xmm6
movaps xmm9, [rsp+68h+var_68]
mulss xmm2, xmm9
movaps xmm8, [rsp+68h+var_58]
movaps xmm3, xmm8
movaps xmm10, [rsp+68h+var_38]
mulss xmm3, xmm10
movaps xmm1, cs:xmmword_CF170
movaps xmm4, xmm6
movaps xmm5, xmm6
unpcklps xmm6, xmm3
xorps xmm3, xmm1
mulss xmm4, xmm10
mulss xmm4, xmm9
unpcklps xmm3, xmm4
unpcklps xmm2, xmm8
movaps xmm4, xmm0
shufps xmm4, xmm0, 0
mulps xmm2, xmm4
addps xmm2, xmm3
movlps qword ptr [rbx+4], xmm2
xor eax, eax
mov [rbx+0Ch], eax
movaps xmm3, xmm8
movaps xmm2, xmm8
mulss xmm2, xmm7
movss dword ptr [rbx+10h], xmm2
movaps xmm2, xmm9
mulss xmm3, xmm9
xorps xmm5, xmm1
unpcklps xmm3, xmm5
mulps xmm3, xmm4
movaps xmm4, xmm10
unpcklps xmm0, xmm10
unpcklps xmm4, xmm9
mulps xmm4, xmm6
addps xmm4, xmm3
movlps qword ptr [rbx+14h], xmm4
mov [rbx+1Ch], eax
xorps xmm2, xmm1
movss dword ptr [rbx+20h], xmm2
movaps xmm1, xmm7
unpcklps xmm1, xmm7
mulps xmm1, xmm0
movlps qword ptr [rbx+24h], xmm1
xorps xmm0, xmm0
movups xmmword ptr [rbx+2Ch], xmm0
mov dword ptr [rbx+3Ch], 3F800000h
mov rax, rbx
add rsp, 60h
pop rbx
retn
| long long MatrixRotateZYX(long long a1, __m128 a2, __m128 a3)
{
__m128 v3; // xmm0
__m128 v4; // xmm0
__m128 v5; // xmm0
__m128 v6; // xmm2
__m128 v7; // xmm3
__m128 v8; // xmm4
__m128 v9; // xmm6
__m128 v10; // xmm3
__m128 v11; // xmm4
__m128 v12; // xmm3
__m128 v14; // [rsp+0h] [rbp-68h]
__m128 v15; // [rsp+0h] [rbp-68h]
__m128 v16; // [rsp+10h] [rbp-58h]
__m128 v18; // [rsp+30h] [rbp-38h]
__m128 v19; // [rsp+40h] [rbp-28h]
__m128 v20; // [rsp+50h] [rbp-18h]
v3.m128_u64[1] = a3.m128_u64[1];
*(double *)v3.m128_u64 = cosf(a3.m128_f32[0]);
v20 = v3;
v4 = (__m128)a3.m128_u32[0];
*(double *)v4.m128_u64 = sinf(a3.m128_f32[0]);
v16 = v4;
v5 = _mm_shuffle_ps(a2, a2, 85);
v14 = v5;
*(double *)v5.m128_u64 = cosf(v5.m128_f32[0]);
v19 = v5;
v5.m128_u64[1] = v14.m128_u64[1];
*(double *)v5.m128_u64 = sinf(v14.m128_f32[0]);
v15 = v5;
v5.m128_u64[1] = a2.m128_u64[1];
*(double *)v5.m128_u64 = cosf(a2.m128_f32[0]);
v18 = v5;
v5.m128_u64[1] = a2.m128_u64[1];
*(double *)v5.m128_u64 = sinf(a2.m128_f32[0]);
*(float *)a1 = v20.m128_f32[0] * v19.m128_f32[0];
v6 = v20;
v6.m128_f32[0] = v20.m128_f32[0] * v15.m128_f32[0];
v7 = v16;
v7.m128_f32[0] = v16.m128_f32[0] * v18.m128_f32[0];
v8 = v20;
v9 = _mm_unpacklo_ps(v20, v7);
v8.m128_f32[0] = (float)(v20.m128_f32[0] * v18.m128_f32[0]) * v15.m128_f32[0];
v10 = _mm_unpacklo_ps(_mm_xor_ps(v7, (__m128)xmmword_CF170), v8);
v11 = _mm_shuffle_ps(v5, v5, 0);
_mm_storel_ps((double *)(a1 + 4), _mm_add_ps(_mm_mul_ps(_mm_unpacklo_ps(v6, v16), v11), v10));
*(_DWORD *)(a1 + 12) = 0;
v12 = v16;
*(float *)(a1 + 16) = v16.m128_f32[0] * v19.m128_f32[0];
v12.m128_f32[0] = v16.m128_f32[0] * v15.m128_f32[0];
_mm_storel_ps(
(double *)(a1 + 20),
_mm_add_ps(
_mm_mul_ps(_mm_unpacklo_ps(v18, v15), v9),
_mm_mul_ps(_mm_unpacklo_ps(v12, _mm_xor_ps(v20, (__m128)xmmword_CF170)), v11)));
*(_DWORD *)(a1 + 28) = 0;
*(float *)(a1 + 32) = -v15.m128_f32[0];
_mm_storel_ps((double *)(a1 + 36), _mm_mul_ps(_mm_unpacklo_ps(v19, v19), _mm_unpacklo_ps(v5, v18)));
*(_OWORD *)(a1 + 44) = 0LL;
*(_DWORD *)(a1 + 60) = 1065353216;
return a1;
}
| MatrixRotateZYX:
PUSH RBX
SUB RSP,0x60
MOVSS dword ptr [RSP + 0x10],XMM1
MOVAPS xmmword ptr [RSP + 0x20],XMM0
MOV RBX,RDI
MOVAPS XMM0,XMM1
CALL 0x0010a3b0
MOVAPS xmmword ptr [RSP + 0x50],XMM0
MOVSS XMM0,dword ptr [RSP + 0x10]
CALL 0x0010a420
MOVAPS xmmword ptr [RSP + 0x10],XMM0
MOVAPS XMM0,xmmword ptr [RSP + 0x20]
SHUFPS XMM0,XMM0,0x55
MOVAPS xmmword ptr [RSP],XMM0
CALL 0x0010a3b0
MOVAPS xmmword ptr [RSP + 0x40],XMM0
MOVAPS XMM0,xmmword ptr [RSP]
CALL 0x0010a420
MOVAPS xmmword ptr [RSP],XMM0
MOVAPS XMM0,xmmword ptr [RSP + 0x20]
CALL 0x0010a3b0
MOVAPS xmmword ptr [RSP + 0x30],XMM0
MOVAPS XMM0,xmmword ptr [RSP + 0x20]
CALL 0x0010a420
MOVAPS XMM6,xmmword ptr [RSP + 0x50]
MOVAPS XMM1,XMM6
MOVAPS XMM7,xmmword ptr [RSP + 0x40]
MULSS XMM1,XMM7
MOVSS dword ptr [RBX],XMM1
MOVAPS XMM2,XMM6
MOVAPS XMM9,xmmword ptr [RSP]
MULSS XMM2,XMM9
MOVAPS XMM8,xmmword ptr [RSP + 0x10]
MOVAPS XMM3,XMM8
MOVAPS XMM10,xmmword ptr [RSP + 0x30]
MULSS XMM3,XMM10
MOVAPS XMM1,xmmword ptr [0x001cf170]
MOVAPS XMM4,XMM6
MOVAPS XMM5,XMM6
UNPCKLPS XMM6,XMM3
XORPS XMM3,XMM1
MULSS XMM4,XMM10
MULSS XMM4,XMM9
UNPCKLPS XMM3,XMM4
UNPCKLPS XMM2,XMM8
MOVAPS XMM4,XMM0
SHUFPS XMM4,XMM0,0x0
MULPS XMM2,XMM4
ADDPS XMM2,XMM3
MOVLPS qword ptr [RBX + 0x4],XMM2
XOR EAX,EAX
MOV dword ptr [RBX + 0xc],EAX
MOVAPS XMM3,XMM8
MOVAPS XMM2,XMM8
MULSS XMM2,XMM7
MOVSS dword ptr [RBX + 0x10],XMM2
MOVAPS XMM2,XMM9
MULSS XMM3,XMM9
XORPS XMM5,XMM1
UNPCKLPS XMM3,XMM5
MULPS XMM3,XMM4
MOVAPS XMM4,XMM10
UNPCKLPS XMM0,XMM10
UNPCKLPS XMM4,XMM9
MULPS XMM4,XMM6
ADDPS XMM4,XMM3
MOVLPS qword ptr [RBX + 0x14],XMM4
MOV dword ptr [RBX + 0x1c],EAX
XORPS XMM2,XMM1
MOVSS dword ptr [RBX + 0x20],XMM2
MOVAPS XMM1,XMM7
UNPCKLPS XMM1,XMM7
MULPS XMM1,XMM0
MOVLPS qword ptr [RBX + 0x24],XMM1
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x2c],XMM0
MOV dword ptr [RBX + 0x3c],0x3f800000
MOV RAX,RBX
ADD RSP,0x60
POP RBX
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
float * MatrixRotateZYX(int8 param_1,float param_2,float *param_3)
{
uint uVar1;
float fVar2;
float fVar3;
float fVar4;
float fVar5;
float fVar6;
float fVar7;
fVar5 = (float)((ulong)param_1 >> 0x20);
fVar2 = cosf(param_2);
fVar3 = sinf(param_2);
fVar4 = cosf(fVar5);
fVar5 = sinf(fVar5);
fVar6 = cosf((float)param_1);
fVar7 = sinf((float)param_1);
*param_3 = fVar2 * fVar4;
uVar1 = _DAT_001cf170;
*(ulong *)(param_3 + 1) =
CONCAT44(fVar3 * fVar7 + fVar2 * fVar6 * fVar5,
fVar2 * fVar5 * fVar7 + (float)((uint)(fVar3 * fVar6) ^ _DAT_001cf170));
param_3[3] = 0.0;
param_3[4] = fVar3 * fVar4;
*(ulong *)(param_3 + 5) =
CONCAT44(fVar5 * fVar3 * fVar6 + (float)((uint)fVar2 ^ uVar1) * fVar7,
fVar6 * fVar2 + fVar3 * fVar5 * fVar7);
param_3[7] = 0.0;
param_3[8] = (float)((uint)fVar5 ^ uVar1);
*(ulong *)(param_3 + 9) = CONCAT44(fVar4 * fVar6,fVar4 * fVar7);
param_3[0xb] = 0.0;
param_3[0xc] = 0.0;
param_3[0xd] = 0.0;
param_3[0xe] = 0.0;
param_3[0xf] = 1.0;
return param_3;
}
| |
37,888 | yy::parser::error(yy::location const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | msxemulator/build_O3/_deps/pico_sdk-src/tools/pioasm/gen/parser.cpp | void yy::parser::error(const location_type& l, const std::string& m)
{
if (l.begin.filename) {
std::cerr << l << ": " << m << '\n';
pioasm.error_count++;
if (l.begin.line == l.end.line && *l.begin.filename == *l.end.filename) {
std::ifstream file(l.begin.filename->c_str());
std::string line;
for(int i = 0; i < l.begin.line; ++i) {
std::getline(file, line);
}
fprintf(stderr, "%5d | %s\n", l.begin.line, line.c_str());
fprintf(stderr, "%5s | %*s", "", l.begin.column, "^");
for (int i = l.begin.column; i < l.end.column - 1; i++) {
putc ('~', stderr);
}
putc ('\n', stderr);
}
} else {
std::cerr << m << '\n';
}
} | O3 | cpp | yy::parser::error(yy::location const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x230, %rsp # imm = 0x230
movq %rdx, %r15
cmpq $0x0, (%rsi)
je 0x1bd3d
movq %rsi, %rbx
movq %rdi, %r14
movq 0x1a3f5(%rip), %rdi # 0x35fe8
callq 0xc1ea
movq %rax, %r12
leaq 0xc3c6(%rip), %rsi # 0x27fc8
movl $0x2, %edx
movq %rax, %rdi
callq 0x6370
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r12, %rdi
callq 0x6370
leaq 0x28(%rsp), %rsi
movb $0xa, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x6370
movq 0x40(%r14), %rax
incl 0x28(%rax)
movl 0x8(%rbx), %eax
cmpl 0x18(%rbx), %eax
jne 0x1bd65
movq (%rbx), %rcx
movq 0x10(%rbx), %rax
movq 0x8(%rcx), %rdx
cmpq 0x8(%rax), %rdx
jne 0x1bd65
movq (%rcx), %r15
testq %rdx, %rdx
je 0x1bc76
movq (%rax), %rsi
movq %r15, %rdi
callq 0x6310
testl %eax, %eax
jne 0x1bd65
leaq 0x28(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
movl $0x8, %edx
callq 0x65b0
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
movl 0x8(%rbx), %edx
movq %r12, %rcx
testl %edx, %edx
jle 0x1bce6
xorl %ebp, %ebp
leaq 0x8(%rsp), %r15
movq 0x28(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x62d0
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x65c0
incl %ebp
movl 0x8(%rbx), %edx
cmpl %edx, %ebp
jl 0x1bcb4
movq 0x8(%rsp), %rcx
movq 0x1a2db(%rip), %r14 # 0x35fc8
movq (%r14), %rdi
leaq 0xdd8a(%rip), %rsi # 0x29a81
xorl %eax, %eax
callq 0x6470
movq (%r14), %rdi
movl 0xc(%rbx), %ecx
leaq 0xdd80(%rip), %rsi # 0x29a8b
leaq 0xeb4a(%rip), %rdx # 0x2a85c
leaq 0xdd7c(%rip), %r8 # 0x29a95
xorl %eax, %eax
callq 0x6470
movl 0xc(%rbx), %ebp
movl 0x1c(%rbx), %eax
decl %eax
cmpl %eax, %ebp
jge 0x1bd75
movq (%r14), %rsi
movl $0x7e, %edi
callq 0x6610
incl %ebp
jmp 0x1bd23
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq 0x1a29d(%rip), %rdi # 0x35fe8
callq 0x6370
leaq 0x28(%rsp), %rsi
movb $0xa, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x6370
addq $0x230, %rsp # imm = 0x230
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq (%r14), %rsi
movl $0xa, %edi
callq 0x6610
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1bd91
callq 0x62c0
leaq 0x28(%rsp), %rdi
callq 0x60b0
jmp 0x1bd65
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1bdaf
callq 0x62c0
leaq 0x28(%rsp), %rdi
callq 0x60b0
movq %rbx, %rdi
callq 0x6580
nop
| _ZN2yy6parser5errorERKNS_8locationERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 230h
mov r15, rdx
cmp qword ptr [rsi], 0
jz loc_1BD3D
mov rbx, rsi
mov r14, rdi
mov rdi, cs:_ZSt4cerr_ptr
call _ZN2yylsIcEERSt13basic_ostreamIT_St11char_traitsIS2_EES6_RKNS_8locationE; yy::operator<<<char>(std::ostream &,yy::location const&)
mov r12, rax
lea rsi, aIntegerIsOutOf+17h; ": "
mov edx, 2
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rsi, [r15]
mov rdx, [r15+8]
mov rdi, r12
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rsi, [rsp+258h+var_230]
mov byte ptr [rsi], 0Ah
mov edx, 1
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rax, [r14+40h]
inc dword ptr [rax+28h]
mov eax, [rbx+8]
cmp eax, [rbx+18h]
jnz loc_1BD65
mov rcx, [rbx]
mov rax, [rbx+10h]
mov rdx, [rcx+8]
cmp rdx, [rax+8]
jnz loc_1BD65
mov r15, [rcx]
test rdx, rdx
jz short loc_1BC76
mov rsi, [rax]
mov rdi, r15
call _bcmp
test eax, eax
jnz loc_1BD65
loc_1BC76:
lea r14, [rsp+258h+var_230]
mov rdi, r14
mov rsi, r15
mov edx, 8
call __ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode; std::ifstream::basic_ifstream(char const*,std::_Ios_Openmode)
lea r12, [rsp+258h+var_240]
mov [r12-10h], r12
mov qword ptr [r12-8], 0
mov byte ptr [r12], 0
mov edx, [rbx+8]
mov rcx, r12
test edx, edx
jle short loc_1BCE6
xor ebp, ebp
lea r15, [rsp+258h+var_250]
loc_1BCB4:
mov rax, [rsp+258h+var_230]
mov rdi, [rax-18h]
add rdi, r14
mov esi, 0Ah
call __ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc; std::ios::widen(char)
movsx edx, al
mov rdi, r14
mov rsi, r15
call __ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_; std::getline<char,std::char_traits<char>,std::allocator<char>>(std::istream &,std::string &,char)
inc ebp
mov edx, [rbx+8]
cmp ebp, edx
jl short loc_1BCB4
mov rcx, [rsp+258h+var_250]
loc_1BCE6:
mov r14, cs:stderr_ptr
mov rdi, [r14]
lea rsi, a5dS; "%5d | %s\n"
xor eax, eax
call _fprintf
mov rdi, [r14]
mov ecx, [rbx+0Ch]
lea rsi, a5sS; "%5s | %*s"
lea rdx, asc_2A859+3; ""
lea r8, asc_29A95; "^"
xor eax, eax
call _fprintf
mov ebp, [rbx+0Ch]
loc_1BD23:
mov eax, [rbx+1Ch]
dec eax
cmp ebp, eax
jge short loc_1BD75
mov rsi, [r14]
mov edi, 7Eh ; '~'
call _putc
inc ebp
jmp short loc_1BD23
loc_1BD3D:
mov rsi, [r15]
mov rdx, [r15+8]
mov rdi, cs:_ZSt4cerr_ptr
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rsi, [rsp+258h+var_230]
mov byte ptr [rsi], 0Ah
mov edx, 1
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
loc_1BD65:
add rsp, 230h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_1BD75:
mov rsi, [r14]
mov edi, 0Ah
call _putc
mov rdi, [rsp+258h+var_250]; void *
cmp rdi, r12
jz short loc_1BD91
call __ZdlPv; operator delete(void *)
loc_1BD91:
lea rdi, [rsp+258h+var_230]
call __ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev; std::ifstream::~ifstream()
jmp short loc_1BD65
mov rbx, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, r12
jz short loc_1BDAF
call __ZdlPv; operator delete(void *)
loc_1BDAF:
lea rdi, [rsp+arg_20]
call __ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev; std::ifstream::~ifstream()
mov rdi, rbx
call __Unwind_Resume
| long long yy::parser::error(long long a1, long long a2, _QWORD *a3)
{
long long v4; // r12
long long v5; // rax
long long result; // rax
_QWORD *v7; // rcx
long long v8; // rdx
long long v9; // r15
int v10; // edx
const char *v11; // rcx
int i; // ebp
char v13; // al
int j; // ebp
long long v15; // rax
void *v16[2]; // [rsp+8h] [rbp-250h] BYREF
_BYTE v17[16]; // [rsp+18h] [rbp-240h] BYREF
_QWORD v18[70]; // [rsp+28h] [rbp-230h] BYREF
if ( *(_QWORD *)a2 )
{
v4 = yy::operator<<<char>((long long)&std::cerr, a2);
std::__ostream_insert<char,std::char_traits<char>>(v4, ": ", 2LL);
v5 = std::__ostream_insert<char,std::char_traits<char>>(v4, *a3, a3[1]);
LOBYTE(v18[0]) = 10;
std::__ostream_insert<char,std::char_traits<char>>(v5, v18, 1LL);
++*(_DWORD *)(*(_QWORD *)(a1 + 64) + 40LL);
result = *(unsigned int *)(a2 + 8);
if ( (_DWORD)result == *(_DWORD *)(a2 + 24) )
{
v7 = *(_QWORD **)a2;
result = *(_QWORD *)(a2 + 16);
v8 = *(_QWORD *)(*(_QWORD *)a2 + 8LL);
if ( v8 == *(_QWORD *)(result + 8) )
{
v9 = *v7;
if ( !v8 || (result = bcmp(*v7, *(_QWORD *)result, v8), !(_DWORD)result) )
{
std::ifstream::basic_ifstream(v18, v9, 8LL);
v16[0] = v17;
v16[1] = 0LL;
v17[0] = 0;
v10 = *(_DWORD *)(a2 + 8);
v11 = v17;
if ( v10 > 0 )
{
for ( i = 0; i < v10; ++i )
{
v13 = std::ios::widen((char *)v18 + *(_QWORD *)(v18[0] - 24LL), 10LL);
std::getline<char,std::char_traits<char>,std::allocator<char>>(v18, v16, (unsigned int)v13);
v10 = *(_DWORD *)(a2 + 8);
}
v11 = (const char *)v16[0];
}
fprintf(stderr, "%5d | %s\n", v10, v11);
fprintf(stderr, "%5s | %*s", "", *(_DWORD *)(a2 + 12), "^");
for ( j = *(_DWORD *)(a2 + 12); j < *(_DWORD *)(a2 + 28) - 1; ++j )
putc(126LL, stderr);
putc(10LL, stderr);
if ( v16[0] != v17 )
operator delete(v16[0]);
return std::ifstream::~ifstream(v18);
}
}
}
}
else
{
v15 = std::__ostream_insert<char,std::char_traits<char>>(&std::cerr, *a3, a3[1]);
LOBYTE(v18[0]) = 10;
return std::__ostream_insert<char,std::char_traits<char>>(v15, v18, 1LL);
}
return result;
}
| error:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x230
MOV R15,RDX
CMP qword ptr [RSI],0x0
JZ 0x0011bd3d
MOV RBX,RSI
MOV R14,RDI
MOV RDI,qword ptr [0x00135fe8]
CALL 0x0010c1ea
MOV R12,RAX
LEA RSI,[0x127fc8]
MOV EDX,0x2
MOV RDI,RAX
CALL 0x00106370
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
MOV RDI,R12
CALL 0x00106370
LEA RSI,[RSP + 0x28]
MOV byte ptr [RSI],0xa
MOV EDX,0x1
MOV RDI,RAX
CALL 0x00106370
MOV RAX,qword ptr [R14 + 0x40]
INC dword ptr [RAX + 0x28]
MOV EAX,dword ptr [RBX + 0x8]
CMP EAX,dword ptr [RBX + 0x18]
JNZ 0x0011bd65
MOV RCX,qword ptr [RBX]
MOV RAX,qword ptr [RBX + 0x10]
MOV RDX,qword ptr [RCX + 0x8]
CMP RDX,qword ptr [RAX + 0x8]
JNZ 0x0011bd65
MOV R15,qword ptr [RCX]
TEST RDX,RDX
JZ 0x0011bc76
MOV RSI,qword ptr [RAX]
MOV RDI,R15
CALL 0x00106310
TEST EAX,EAX
JNZ 0x0011bd65
LAB_0011bc76:
LEA R14,[RSP + 0x28]
MOV RDI,R14
MOV RSI,R15
MOV EDX,0x8
CALL 0x001065b0
LEA R12,[RSP + 0x18]
MOV qword ptr [R12 + -0x10],R12
MOV qword ptr [R12 + -0x8],0x0
MOV byte ptr [R12],0x0
MOV EDX,dword ptr [RBX + 0x8]
MOV RCX,R12
TEST EDX,EDX
JLE 0x0011bce6
XOR EBP,EBP
LEA R15,[RSP + 0x8]
LAB_0011bcb4:
MOV RAX,qword ptr [RSP + 0x28]
MOV RDI,qword ptr [RAX + -0x18]
ADD RDI,R14
LAB_0011bcc0:
MOV ESI,0xa
CALL 0x001062d0
MOVSX EDX,AL
MOV RDI,R14
MOV RSI,R15
CALL 0x001065c0
LAB_0011bcd8:
INC EBP
MOV EDX,dword ptr [RBX + 0x8]
CMP EBP,EDX
JL 0x0011bcb4
MOV RCX,qword ptr [RSP + 0x8]
LAB_0011bce6:
MOV R14,qword ptr [0x00135fc8]
MOV RDI,qword ptr [R14]
LEA RSI,[0x129a81]
XOR EAX,EAX
CALL 0x00106470
MOV RDI,qword ptr [R14]
MOV ECX,dword ptr [RBX + 0xc]
LEA RSI,[0x129a8b]
LEA RDX,[0x12a85c]
LEA R8,[0x129a95]
XOR EAX,EAX
CALL 0x00106470
MOV EBP,dword ptr [RBX + 0xc]
LAB_0011bd23:
MOV EAX,dword ptr [RBX + 0x1c]
DEC EAX
CMP EBP,EAX
JGE 0x0011bd75
MOV RSI,qword ptr [R14]
MOV EDI,0x7e
CALL 0x00106610
INC EBP
JMP 0x0011bd23
LAB_0011bd3d:
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
MOV RDI,qword ptr [0x00135fe8]
CALL 0x00106370
LEA RSI,[RSP + 0x28]
MOV byte ptr [RSI],0xa
MOV EDX,0x1
MOV RDI,RAX
CALL 0x00106370
LAB_0011bd65:
ADD RSP,0x230
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0011bd75:
MOV RSI,qword ptr [R14]
MOV EDI,0xa
CALL 0x00106610
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R12
JZ 0x0011bd91
CALL 0x001062c0
LAB_0011bd91:
LEA RDI,[RSP + 0x28]
CALL 0x001060b0
JMP 0x0011bd65
|
/* yy::parser::error(yy::location const&, std::__cxx11::string const&) */
void __thiscall yy::parser::error(parser *this,location *param_1,string *param_2)
{
uint uVar1;
size_t __n;
void *__s1;
int *puVar2;
char cVar3;
int iVar4;
ostream *poVar5;
int1 *local_250;
int8 local_248;
int1 local_240 [16];
istream local_230;
int7 uStack_22f;
if (*(long *)param_1 == 0) {
poVar5 = std::__ostream_insert<char,std::char_traits<char>>
((ostream *)PTR_cerr_00135fe8,*(char **)param_2,*(long *)(param_2 + 8));
local_230 = (istream)0xa;
std::__ostream_insert<char,std::char_traits<char>>(poVar5,(char *)&local_230,1);
}
else {
poVar5 = operator<<((ostream *)PTR_cerr_00135fe8,param_1);
std::__ostream_insert<char,std::char_traits<char>>(poVar5,": ",2);
poVar5 = std::__ostream_insert<char,std::char_traits<char>>
(poVar5,*(char **)param_2,*(long *)(param_2 + 8));
local_230 = (istream)0xa;
std::__ostream_insert<char,std::char_traits<char>>(poVar5,(char *)&local_230,1);
*(int *)(*(long *)(this + 0x40) + 0x28) = *(int *)(*(long *)(this + 0x40) + 0x28) + 1;
if (*(int *)(param_1 + 8) == *(int *)(param_1 + 0x18)) {
__n = (*(int8 **)param_1)[1];
if ((__n == (*(int8 **)(param_1 + 0x10))[1]) &&
((__s1 = (void *)**(int8 **)param_1, __n == 0 ||
(iVar4 = bcmp(__s1,(void *)**(int8 **)(param_1 + 0x10),__n), iVar4 == 0)))) {
std::ifstream::ifstream((ifstream *)&local_230,__s1,8);
local_248 = 0;
local_240[0] = 0;
uVar1 = *(uint *)(param_1 + 8);
local_250 = local_240;
if (0 < (int)uVar1) {
iVar4 = 0;
do {
/* try { // try from 0011bcc0 to 0011bcd7 has its CatchHandler @ 0011bd9d */
cVar3 = std::ios::widen((char)*(int8 *)(CONCAT71(uStack_22f,local_230) + -0x18) +
(char)&local_230);
std::getline<char,std::char_traits<char>,std::allocator<char>>
(&local_230,(string *)&local_250,cVar3);
iVar4 = iVar4 + 1;
uVar1 = *(uint *)(param_1 + 8);
} while (iVar4 < (int)uVar1);
}
puVar2 = PTR_stderr_00135fc8;
fprintf(*(FILE **)PTR_stderr_00135fc8,"%5d | %s\n",(ulong)uVar1,local_250);
fprintf(*(FILE **)puVar2,"%5s | %*s",&DAT_0012a85c,(ulong)*(uint *)(param_1 + 0xc),
&DAT_00129a95);
for (iVar4 = *(int *)(param_1 + 0xc); iVar4 < *(int *)(param_1 + 0x1c) + -1;
iVar4 = iVar4 + 1) {
putc(0x7e,*(FILE **)puVar2);
}
putc(10,*(FILE **)puVar2);
if (local_250 != local_240) {
operator_delete(local_250);
}
std::ifstream::~ifstream((ifstream *)&local_230);
}
}
}
return;
}
| |
37,889 | mysql_stmt_bind_result | eloqsql/libmariadb/libmariadb/mariadb_stmt.c | my_bool STDCALL mysql_stmt_bind_result(MYSQL_STMT *stmt, MYSQL_BIND *bind)
{
uint i;
if (stmt->state < MYSQL_STMT_PREPARED)
{
SET_CLIENT_STMT_ERROR(stmt, CR_NO_PREPARE_STMT, SQLSTATE_UNKNOWN, 0);
return(1);
}
if (!stmt->field_count)
{
SET_CLIENT_STMT_ERROR(stmt, CR_NO_STMT_METADATA, SQLSTATE_UNKNOWN, 0);
return(1);
}
if (!bind)
return(1);
/* In case of a stored procedure we don't allocate memory for bind
in mysql_stmt_prepare
*/
if (stmt->field_count && !stmt->bind)
{
MA_MEM_ROOT *fields_ma_alloc_root=
&((MADB_STMT_EXTENSION *)stmt->extension)->fields_ma_alloc_root;
if (!(stmt->bind= (MYSQL_BIND *)ma_alloc_root(fields_ma_alloc_root, stmt->field_count * sizeof(MYSQL_BIND))))
{
SET_CLIENT_STMT_ERROR(stmt, CR_OUT_OF_MEMORY, SQLSTATE_UNKNOWN, 0);
return(1);
}
}
memcpy(stmt->bind, bind, sizeof(MYSQL_BIND) * stmt->field_count);
for (i=0; i < stmt->field_count; i++)
{
if (stmt->mysql->methods->db_supported_buffer_type &&
!stmt->mysql->methods->db_supported_buffer_type(bind[i].buffer_type))
{
SET_CLIENT_STMT_ERROR(stmt, CR_UNSUPPORTED_PARAM_TYPE, SQLSTATE_UNKNOWN, 0);
return(1);
}
if (!stmt->bind[i].is_null)
stmt->bind[i].is_null= &stmt->bind[i].is_null_value;
if (!stmt->bind[i].length)
stmt->bind[i].length= &stmt->bind[i].length_value;
if (!stmt->bind[i].error)
stmt->bind[i].error= &stmt->bind[i].error_value;
/* set length values for numeric types */
switch(bind[i].buffer_type) {
case MYSQL_TYPE_NULL:
*stmt->bind[i].length= stmt->bind[i].length_value= 0;
break;
case MYSQL_TYPE_TINY:
*stmt->bind[i].length= stmt->bind[i].length_value= 1;
break;
case MYSQL_TYPE_SHORT:
case MYSQL_TYPE_YEAR:
*stmt->bind[i].length= stmt->bind[i].length_value= 2;
break;
case MYSQL_TYPE_INT24:
case MYSQL_TYPE_LONG:
case MYSQL_TYPE_FLOAT:
*stmt->bind[i].length= stmt->bind[i].length_value= 4;
break;
case MYSQL_TYPE_LONGLONG:
case MYSQL_TYPE_DOUBLE:
*stmt->bind[i].length= stmt->bind[i].length_value= 8;
break;
case MYSQL_TYPE_TIME:
case MYSQL_TYPE_DATE:
case MYSQL_TYPE_DATETIME:
case MYSQL_TYPE_TIMESTAMP:
*stmt->bind[i].length= stmt->bind[i].length_value= sizeof(MYSQL_TIME);
break;
default:
break;
}
}
stmt->bind_result_done= 1;
CLEAR_CLIENT_STMT_ERROR(stmt);
return(0);
} | O3 | c | mysql_stmt_bind_result:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x0, 0x50(%rdi)
je 0x234c4
movl 0x60(%rbx), %eax
testq %rax, %rax
je 0x2350a
movq %rsi, %r15
movb $0x1, %r14b
testq %rsi, %rsi
je 0x23562
movq 0x78(%rbx), %rdi
testq %rdi, %rdi
jne 0x233ca
movq 0x340(%rbx), %rdi
imulq $0x70, %rax, %rsi
callq 0x20d6b
movq %rax, 0x78(%rbx)
testq %rax, %rax
je 0x235ba
movq %rax, %rdi
movl 0x60(%rbx), %eax
movl %eax, %eax
imulq $0x70, %rax, %rdx
movq %r15, %rsi
callq 0x13390
cmpl $0x0, 0x60(%rbx)
je 0x23491
movl $0x50, %r12d
xorl %r13d, %r13d
movq 0x38(%rbx), %rax
movq 0x4d0(%rax), %rax
movq 0x38(%rax), %rax
testq %rax, %rax
je 0x2340e
movl 0x10(%r15,%r12), %edi
callq *%rax
testb %al, %al
je 0x23574
movq 0x78(%rbx), %rax
cmpq $0x0, -0x48(%rax,%r12)
jne 0x23429
addq %r12, %rax
addq $0x17, %rax
movq %rax, -0x5f(%rax)
movq 0x78(%rbx), %rax
cmpq $0x0, -0x50(%rax,%r12)
jne 0x2343e
leaq (%rax,%r12), %rcx
movq %rcx, -0x50(%rax,%r12)
movq 0x78(%rbx), %rax
cmpq $0x0, -0x38(%rax,%r12)
jne 0x23451
addq %r12, %rax
addq $0x14, %rax
movq %rax, -0x4c(%rax)
movl 0x10(%r15,%r12), %eax
decl %eax
cmpl $0xc, %eax
ja 0x2347e
movl %eax, %eax
leaq 0x194a2(%rip), %rcx # 0x3c908
movq (%rcx,%rax,8), %rax
movq 0x78(%rbx), %rcx
movq %rax, (%rcx,%r12)
movq 0x78(%rbx), %rcx
movq -0x50(%rcx,%r12), %rcx
movq %rax, (%rcx)
incq %r13
movl 0x60(%rbx), %eax
addq $0x70, %r12
cmpq %rax, %r13
jb 0x233eb
movb $0x1, 0xe8(%rbx)
movl $0x0, 0x108(%rbx)
movl $0x30303030, 0x30d(%rbx) # imm = 0x30303030
movw $0x30, 0x311(%rbx)
movb $0x0, 0x10c(%rbx)
xorl %r14d, %r14d
jmp 0x23562
movl $0x7ee, 0x108(%rbx) # imm = 0x7EE
leaq 0x30d(%rbx), %rdi
leaq 0x2a7c4(%rip), %rax # 0x4dca0
movq (%rax), %rsi
movl $0x5, %edx
callq 0x13220
xorl %r14d, %r14d
movb %r14b, 0x312(%rbx)
leaq 0x10c(%rbx), %rdi
leaq 0x2a7af(%rip), %rax # 0x4dcb0
movq 0xf0(%rax), %rsi
jmp 0x2354e
movl $0x804, 0x108(%rbx) # imm = 0x804
leaq 0x30d(%rbx), %rdi
leaq 0x2a77e(%rip), %rax # 0x4dca0
movq (%rax), %rsi
movl $0x5, %edx
callq 0x13220
xorl %r14d, %r14d
movb %r14b, 0x312(%rbx)
leaq 0x10c(%rbx), %rdi
leaq 0x2a769(%rip), %rax # 0x4dcb0
movq 0x1a0(%rax), %rsi
movl $0x200, %edx # imm = 0x200
callq 0x13220
movb %r14b, 0x30b(%rbx)
movb $0x1, %r14b
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x7f4, 0x108(%rbx) # imm = 0x7F4
leaq 0x30d(%rbx), %rdi
leaq 0x2a714(%rip), %rax # 0x4dca0
movq (%rax), %rsi
movl $0x5, %edx
callq 0x13220
xorl %r15d, %r15d
movb %r15b, 0x312(%rbx)
leaq 0x10c(%rbx), %rdi
leaq 0x2a6ff(%rip), %rax # 0x4dcb0
movq 0x120(%rax), %rsi
jmp 0x235fb
movl $0x7d8, 0x108(%rbx) # imm = 0x7D8
leaq 0x30d(%rbx), %rdi
leaq 0x2a6ce(%rip), %rax # 0x4dca0
movq (%rax), %rsi
movl $0x5, %edx
callq 0x13220
xorl %r15d, %r15d
movb %r15b, 0x312(%rbx)
leaq 0x10c(%rbx), %rdi
leaq 0x2a6b9(%rip), %rax # 0x4dcb0
movq 0x40(%rax), %rsi
movl $0x200, %edx # imm = 0x200
callq 0x13220
movb %r15b, 0x30b(%rbx)
jmp 0x23562
| mysql_stmt_bind_result:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdi
cmp dword ptr [rdi+50h], 0
jz loc_234C4
mov eax, [rbx+60h]
test rax, rax
jz loc_2350A
mov r15, rsi
mov r14b, 1
test rsi, rsi
jz loc_23562
mov rdi, [rbx+78h]
test rdi, rdi
jnz short loc_233CA
mov rdi, [rbx+340h]
imul rsi, rax, 70h ; 'p'
call ma_alloc_root
mov [rbx+78h], rax
test rax, rax
jz loc_235BA
mov rdi, rax
mov eax, [rbx+60h]
loc_233CA:
mov eax, eax
imul rdx, rax, 70h ; 'p'
mov rsi, r15
call _memcpy
cmp dword ptr [rbx+60h], 0
jz loc_23491
mov r12d, 50h ; 'P'
xor r13d, r13d
loc_233EB:
mov rax, [rbx+38h]
mov rax, [rax+4D0h]
mov rax, [rax+38h]
test rax, rax
jz short loc_2340E
mov edi, [r15+r12+10h]
call rax
test al, al
jz loc_23574
loc_2340E:
mov rax, [rbx+78h]
cmp qword ptr [rax+r12-48h], 0
jnz short loc_23429
add rax, r12
add rax, 17h
mov [rax-5Fh], rax
mov rax, [rbx+78h]
loc_23429:
cmp qword ptr [rax+r12-50h], 0
jnz short loc_2343E
lea rcx, [rax+r12]
mov [rax+r12-50h], rcx
mov rax, [rbx+78h]
loc_2343E:
cmp qword ptr [rax+r12-38h], 0
jnz short loc_23451
add rax, r12
add rax, 14h
mov [rax-4Ch], rax
loc_23451:
mov eax, [r15+r12+10h]
dec eax
cmp eax, 0Ch
ja short loc_2347E
mov eax, eax
lea rcx, unk_3C908
mov rax, [rcx+rax*8]
mov rcx, [rbx+78h]
mov [rcx+r12], rax
mov rcx, [rbx+78h]
mov rcx, [rcx+r12-50h]
mov [rcx], rax
loc_2347E:
inc r13
mov eax, [rbx+60h]
add r12, 70h ; 'p'
cmp r13, rax
jb loc_233EB
loc_23491:
mov byte ptr [rbx+0E8h], 1
mov dword ptr [rbx+108h], 0
mov dword ptr [rbx+30Dh], 30303030h
mov word ptr [rbx+311h], 30h ; '0'
mov byte ptr [rbx+10Ch], 0
xor r14d, r14d
jmp loc_23562
loc_234C4:
mov dword ptr [rbx+108h], 7EEh
lea rdi, [rbx+30Dh]
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
xor r14d, r14d
mov [rbx+312h], r14b
lea rdi, [rbx+10Ch]
lea rax, client_errors
mov rsi, [rax+0F0h]
jmp short loc_2354E
loc_2350A:
mov dword ptr [rbx+108h], 804h
lea rdi, [rbx+30Dh]
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
xor r14d, r14d
mov [rbx+312h], r14b
lea rdi, [rbx+10Ch]
lea rax, client_errors
mov rsi, [rax+1A0h]
loc_2354E:
mov edx, 200h
call _strncpy
mov [rbx+30Bh], r14b
mov r14b, 1
loc_23562:
mov eax, r14d
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_23574:
mov dword ptr [rbx+108h], 7F4h
lea rdi, [rbx+30Dh]
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
xor r15d, r15d
mov [rbx+312h], r15b
lea rdi, [rbx+10Ch]
lea rax, client_errors
mov rsi, [rax+120h]
jmp short loc_235FB
loc_235BA:
mov dword ptr [rbx+108h], 7D8h
lea rdi, [rbx+30Dh]
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
xor r15d, r15d
mov [rbx+312h], r15b
lea rdi, [rbx+10Ch]
lea rax, client_errors
mov rsi, [rax+40h]
loc_235FB:
mov edx, 200h
call _strncpy
mov [rbx+30Bh], r15b
jmp loc_23562
| long long mysql_stmt_bind_result(long long a1, long long a2)
{
unsigned int v2; // r14d
char *v4; // rax
char *v5; // rdi
long long v6; // r12
unsigned long long v7; // r13
unsigned __int8 ( *v8)(_QWORD); // rax
long long v9; // rax
unsigned int v10; // eax
long long v11; // rax
long long v12; // rdi
char *v13; // rsi
long long v15; // rdi
char *v16; // rsi
if ( !*(_DWORD *)(a1 + 80) )
{
*(_DWORD *)(a1 + 264) = 2030;
strncpy(a1 + 781, SQLSTATE_UNKNOWN, 5LL);
v2 = 0;
*(_BYTE *)(a1 + 786) = 0;
v12 = a1 + 268;
v13 = client_errors[30];
LABEL_23:
strncpy(v12, v13, 512LL);
*(_BYTE *)(a1 + 779) = 0;
LOBYTE(v2) = 1;
return v2;
}
v4 = (char *)*(unsigned int *)(a1 + 96);
if ( !*(_DWORD *)(a1 + 96) )
{
*(_DWORD *)(a1 + 264) = 2052;
strncpy(a1 + 781, SQLSTATE_UNKNOWN, 5LL);
v2 = 0;
*(_BYTE *)(a1 + 786) = 0;
v12 = a1 + 268;
v13 = client_errors[52];
goto LABEL_23;
}
LOBYTE(v2) = 1;
if ( a2 )
{
v5 = *(char **)(a1 + 120);
if ( !v5 )
{
v4 = ma_alloc_root(*(_QWORD *)(a1 + 832), 112LL * (_QWORD)v4);
*(_QWORD *)(a1 + 120) = v4;
if ( !v4 )
{
*(_DWORD *)(a1 + 264) = 2008;
strncpy(a1 + 781, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(a1 + 786) = 0;
v15 = a1 + 268;
v16 = client_errors[8];
LABEL_27:
strncpy(v15, v16, 512LL);
*(_BYTE *)(a1 + 779) = 0;
return v2;
}
v5 = v4;
LODWORD(v4) = *(_DWORD *)(a1 + 96);
}
memcpy(v5, a2, 112LL * (unsigned int)v4);
if ( *(_DWORD *)(a1 + 96) )
{
v6 = 80LL;
v7 = 0LL;
while ( 1 )
{
v8 = *(unsigned __int8 ( **)(_QWORD))(*(_QWORD *)(*(_QWORD *)(a1 + 56) + 1232LL) + 56LL);
if ( v8 )
{
if ( !v8(*(unsigned int *)(a2 + v6 + 16)) )
break;
}
v9 = *(_QWORD *)(a1 + 120);
if ( !*(_QWORD *)(v9 + v6 - 72) )
{
*(_QWORD *)(v6 + v9 - 72) = v6 + v9 + 23;
v9 = *(_QWORD *)(a1 + 120);
}
if ( !*(_QWORD *)(v9 + v6 - 80) )
{
*(_QWORD *)(v9 + v6 - 80) = v9 + v6;
v9 = *(_QWORD *)(a1 + 120);
}
if ( !*(_QWORD *)(v9 + v6 - 56) )
*(_QWORD *)(v6 + v9 - 56) = v6 + v9 + 20;
v10 = *(_DWORD *)(a2 + v6 + 16) - 1;
if ( v10 <= 0xC )
{
v11 = qword_3C908[v10];
*(_QWORD *)(*(_QWORD *)(a1 + 120) + v6) = v11;
**(_QWORD **)(*(_QWORD *)(a1 + 120) + v6 - 80) = v11;
}
++v7;
v6 += 112LL;
if ( v7 >= *(unsigned int *)(a1 + 96) )
goto LABEL_20;
}
*(_DWORD *)(a1 + 264) = 2036;
strncpy(a1 + 781, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(a1 + 786) = 0;
v15 = a1 + 268;
v16 = client_errors[36];
goto LABEL_27;
}
LABEL_20:
*(_BYTE *)(a1 + 232) = 1;
*(_DWORD *)(a1 + 264) = 0;
strcpy((char *)(a1 + 781), "00000");
*(_BYTE *)(a1 + 268) = 0;
return 0;
}
return v2;
}
| mysql_stmt_bind_result:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
CMP dword ptr [RDI + 0x50],0x0
JZ 0x001234c4
MOV EAX,dword ptr [RBX + 0x60]
TEST RAX,RAX
JZ 0x0012350a
MOV R15,RSI
MOV R14B,0x1
TEST RSI,RSI
JZ 0x00123562
MOV RDI,qword ptr [RBX + 0x78]
TEST RDI,RDI
JNZ 0x001233ca
MOV RDI,qword ptr [RBX + 0x340]
IMUL RSI,RAX,0x70
CALL 0x00120d6b
MOV qword ptr [RBX + 0x78],RAX
TEST RAX,RAX
JZ 0x001235ba
MOV RDI,RAX
MOV EAX,dword ptr [RBX + 0x60]
LAB_001233ca:
MOV EAX,EAX
IMUL RDX,RAX,0x70
MOV RSI,R15
CALL 0x00113390
CMP dword ptr [RBX + 0x60],0x0
JZ 0x00123491
MOV R12D,0x50
XOR R13D,R13D
LAB_001233eb:
MOV RAX,qword ptr [RBX + 0x38]
MOV RAX,qword ptr [RAX + 0x4d0]
MOV RAX,qword ptr [RAX + 0x38]
TEST RAX,RAX
JZ 0x0012340e
MOV EDI,dword ptr [R15 + R12*0x1 + 0x10]
CALL RAX
TEST AL,AL
JZ 0x00123574
LAB_0012340e:
MOV RAX,qword ptr [RBX + 0x78]
CMP qword ptr [RAX + R12*0x1 + -0x48],0x0
JNZ 0x00123429
ADD RAX,R12
ADD RAX,0x17
MOV qword ptr [RAX + -0x5f],RAX
MOV RAX,qword ptr [RBX + 0x78]
LAB_00123429:
CMP qword ptr [RAX + R12*0x1 + -0x50],0x0
JNZ 0x0012343e
LEA RCX,[RAX + R12*0x1]
MOV qword ptr [RAX + R12*0x1 + -0x50],RCX
MOV RAX,qword ptr [RBX + 0x78]
LAB_0012343e:
CMP qword ptr [RAX + R12*0x1 + -0x38],0x0
JNZ 0x00123451
ADD RAX,R12
ADD RAX,0x14
MOV qword ptr [RAX + -0x4c],RAX
LAB_00123451:
MOV EAX,dword ptr [R15 + R12*0x1 + 0x10]
DEC EAX
CMP EAX,0xc
JA 0x0012347e
MOV EAX,EAX
LEA RCX,[0x13c908]
MOV RAX,qword ptr [RCX + RAX*0x8]
MOV RCX,qword ptr [RBX + 0x78]
MOV qword ptr [RCX + R12*0x1],RAX
MOV RCX,qword ptr [RBX + 0x78]
MOV RCX,qword ptr [RCX + R12*0x1 + -0x50]
MOV qword ptr [RCX],RAX
LAB_0012347e:
INC R13
MOV EAX,dword ptr [RBX + 0x60]
ADD R12,0x70
CMP R13,RAX
JC 0x001233eb
LAB_00123491:
MOV byte ptr [RBX + 0xe8],0x1
MOV dword ptr [RBX + 0x108],0x0
MOV dword ptr [RBX + 0x30d],0x30303030
MOV word ptr [RBX + 0x311],0x30
MOV byte ptr [RBX + 0x10c],0x0
XOR R14D,R14D
JMP 0x00123562
LAB_001234c4:
MOV dword ptr [RBX + 0x108],0x7ee
LEA RDI,[RBX + 0x30d]
LEA RAX,[0x14dca0]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00113220
XOR R14D,R14D
MOV byte ptr [RBX + 0x312],R14B
LEA RDI,[RBX + 0x10c]
LEA RAX,[0x14dcb0]
MOV RSI,qword ptr [RAX + 0xf0]
JMP 0x0012354e
LAB_0012350a:
MOV dword ptr [RBX + 0x108],0x804
LEA RDI,[RBX + 0x30d]
LEA RAX,[0x14dca0]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00113220
XOR R14D,R14D
MOV byte ptr [RBX + 0x312],R14B
LEA RDI,[RBX + 0x10c]
LEA RAX,[0x14dcb0]
MOV RSI,qword ptr [RAX + 0x1a0]
LAB_0012354e:
MOV EDX,0x200
CALL 0x00113220
MOV byte ptr [RBX + 0x30b],R14B
MOV R14B,0x1
LAB_00123562:
MOV EAX,R14D
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00123574:
MOV dword ptr [RBX + 0x108],0x7f4
LEA RDI,[RBX + 0x30d]
LEA RAX,[0x14dca0]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00113220
XOR R15D,R15D
MOV byte ptr [RBX + 0x312],R15B
LEA RDI,[RBX + 0x10c]
LEA RAX,[0x14dcb0]
MOV RSI,qword ptr [RAX + 0x120]
JMP 0x001235fb
LAB_001235ba:
MOV dword ptr [RBX + 0x108],0x7d8
LEA RDI,[RBX + 0x30d]
LEA RAX,[0x14dca0]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00113220
XOR R15D,R15D
MOV byte ptr [RBX + 0x312],R15B
LEA RDI,[RBX + 0x10c]
LEA RAX,[0x14dcb0]
MOV RSI,qword ptr [RAX + 0x40]
LAB_001235fb:
MOV EDX,0x200
CALL 0x00113220
MOV byte ptr [RBX + 0x30b],R15B
JMP 0x00123562
|
ulong mysql_stmt_bind_result(long param_1,void *param_2)
{
code *pcVar1;
int8 uVar2;
char cVar3;
uint uVar4;
void *__dest;
long lVar5;
char *pcVar6;
long lVar7;
ulong uVar8;
int8 unaff_R14;
ulong uVar9;
if (*(int *)(param_1 + 0x50) == 0) {
*(int4 *)(param_1 + 0x108) = 0x7ee;
strncpy((char *)(param_1 + 0x30d),SQLSTATE_UNKNOWN,5);
*(int1 *)(param_1 + 0x312) = 0;
pcVar6 = PTR_s_Statement_is_not_prepared_0014dda0;
}
else {
uVar8 = (ulong)*(uint *)(param_1 + 0x60);
if (uVar8 != 0) {
uVar9 = CONCAT71((int7)((ulong)unaff_R14 >> 8),1);
if (param_2 != (void *)0x0) {
__dest = *(void **)(param_1 + 0x78);
if (__dest == (void *)0x0) {
__dest = (void *)ma_alloc_root(*(int8 *)(param_1 + 0x340),uVar8 * 0x70);
*(void **)(param_1 + 0x78) = __dest;
if (__dest == (void *)0x0) {
*(int4 *)(param_1 + 0x108) = 0x7d8;
strncpy((char *)(param_1 + 0x30d),SQLSTATE_UNKNOWN,5);
*(int1 *)(param_1 + 0x312) = 0;
pcVar6 = PTR_s_Client_run_out_of_memory_0014dcf0;
LAB_001235fb:
strncpy((char *)(param_1 + 0x10c),pcVar6,0x200);
*(int1 *)(param_1 + 0x30b) = 0;
goto LAB_00123562;
}
uVar8 = (ulong)*(uint *)(param_1 + 0x60);
}
memcpy(__dest,param_2,uVar8 * 0x70);
if (*(int *)(param_1 + 0x60) != 0) {
lVar7 = 0x50;
uVar8 = 0;
do {
pcVar1 = *(code **)(*(long *)(*(long *)(param_1 + 0x38) + 0x4d0) + 0x38);
if (pcVar1 != (code *)0x0) {
cVar3 = (*pcVar1)(*(int4 *)((long)param_2 + lVar7 + 0x10));
if (cVar3 == '\0') {
*(int4 *)(param_1 + 0x108) = 0x7f4;
strncpy((char *)(param_1 + 0x30d),SQLSTATE_UNKNOWN,5);
*(int1 *)(param_1 + 0x312) = 0;
pcVar6 = PTR_s_Buffer_type_is_not_supported_0014ddd0;
goto LAB_001235fb;
}
}
lVar5 = *(long *)(param_1 + 0x78);
if (*(long *)(lVar5 + -0x48 + lVar7) == 0) {
*(long *)(lVar5 + lVar7 + -0x48) = lVar5 + lVar7 + 0x17;
lVar5 = *(long *)(param_1 + 0x78);
}
if (*(long *)(lVar5 + -0x50 + lVar7) == 0) {
*(long *)(lVar5 + -0x50 + lVar7) = lVar5 + lVar7;
lVar5 = *(long *)(param_1 + 0x78);
}
if (*(long *)(lVar5 + -0x38 + lVar7) == 0) {
*(long *)(lVar5 + lVar7 + -0x38) = lVar5 + lVar7 + 0x14;
}
uVar4 = *(int *)((long)param_2 + lVar7 + 0x10) - 1;
if (uVar4 < 0xd) {
uVar2 = *(int8 *)(&DAT_0013c908 + (ulong)uVar4 * 8);
*(int8 *)(*(long *)(param_1 + 0x78) + lVar7) = uVar2;
**(int8 **)(*(long *)(param_1 + 0x78) + -0x50 + lVar7) = uVar2;
}
uVar8 = uVar8 + 1;
lVar7 = lVar7 + 0x70;
} while (uVar8 < *(uint *)(param_1 + 0x60));
}
*(int1 *)(param_1 + 0xe8) = 1;
*(int4 *)(param_1 + 0x108) = 0;
*(int4 *)(param_1 + 0x30d) = 0x30303030;
*(int2 *)(param_1 + 0x311) = 0x30;
*(int1 *)(param_1 + 0x10c) = 0;
uVar9 = 0;
}
goto LAB_00123562;
}
*(int4 *)(param_1 + 0x108) = 0x804;
strncpy((char *)(param_1 + 0x30d),SQLSTATE_UNKNOWN,5);
*(int1 *)(param_1 + 0x312) = 0;
pcVar6 = PTR_s_Prepared_statement_contains_no_m_0014de50;
}
strncpy((char *)(param_1 + 0x10c),pcVar6,0x200);
*(int1 *)(param_1 + 0x30b) = 0;
uVar9 = 1;
LAB_00123562:
return uVar9 & 0xffffffff;
}
| |
37,890 | LefDefParser::defiOrdered::clear() | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiScanchain.cpp | void defiOrdered::clear() {
int i;
for (i = 0; i < num_; i++) {
free((char*)(inst_[i]));
if (in_[i]) free((char*)(in_[i]));
if (out_[i]) free((char*)(out_[i]));
}
num_ = 0;
} | O3 | cpp | LefDefParser::defiOrdered::clear():
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x0, (%rdi)
jle 0x282fb
xorl %r14d, %r14d
movq 0x8(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x7220
movq 0x10(%rbx), %rax
movq (%rax,%r14,8), %rdi
testq %rdi, %rdi
je 0x282de
callq 0x7220
movq 0x18(%rbx), %rax
movq (%rax,%r14,8), %rdi
testq %rdi, %rdi
je 0x282f0
callq 0x7220
incq %r14
movslq (%rbx), %rax
cmpq %rax, %r14
jl 0x282bf
movl $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
| _ZN12LefDefParser11defiOrdered5clearEv:
push r14
push rbx
push rax
mov rbx, rdi
cmp dword ptr [rdi], 0
jle short loc_282FB
xor r14d, r14d
loc_282BF:
mov rax, [rbx+8]
mov rdi, [rax+r14*8]
call _free
mov rax, [rbx+10h]
mov rdi, [rax+r14*8]
test rdi, rdi
jz short loc_282DE
call _free
loc_282DE:
mov rax, [rbx+18h]
mov rdi, [rax+r14*8]
test rdi, rdi
jz short loc_282F0
call _free
loc_282F0:
inc r14
movsxd rax, dword ptr [rbx]
cmp r14, rax
jl short loc_282BF
loc_282FB:
mov dword ptr [rbx], 0
add rsp, 8
pop rbx
pop r14
retn
| long long LefDefParser::defiOrdered::clear(LefDefParser::defiOrdered *this)
{
long long v2; // r14
void *v3; // rdi
void *v4; // rdi
long long result; // rax
if ( *(int *)this > 0 )
{
v2 = 0LL;
do
{
free(*(void **)(*((_QWORD *)this + 1) + 8 * v2));
v3 = *(void **)(*((_QWORD *)this + 2) + 8 * v2);
if ( v3 )
free(v3);
v4 = *(void **)(*((_QWORD *)this + 3) + 8 * v2);
if ( v4 )
free(v4);
++v2;
result = *(int *)this;
}
while ( v2 < result );
}
*(_DWORD *)this = 0;
return result;
}
| clear:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
CMP dword ptr [RDI],0x0
JLE 0x001282fb
XOR R14D,R14D
LAB_001282bf:
MOV RAX,qword ptr [RBX + 0x8]
MOV RDI,qword ptr [RAX + R14*0x8]
CALL 0x00107220
MOV RAX,qword ptr [RBX + 0x10]
MOV RDI,qword ptr [RAX + R14*0x8]
TEST RDI,RDI
JZ 0x001282de
CALL 0x00107220
LAB_001282de:
MOV RAX,qword ptr [RBX + 0x18]
MOV RDI,qword ptr [RAX + R14*0x8]
TEST RDI,RDI
JZ 0x001282f0
CALL 0x00107220
LAB_001282f0:
INC R14
MOVSXD RAX,dword ptr [RBX]
CMP R14,RAX
JL 0x001282bf
LAB_001282fb:
MOV dword ptr [RBX],0x0
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* LefDefParser::defiOrdered::clear() */
void __thiscall LefDefParser::defiOrdered::clear(defiOrdered *this)
{
void *pvVar1;
long lVar2;
if (0 < *(int *)this) {
lVar2 = 0;
do {
free(*(void **)(*(long *)(this + 8) + lVar2 * 8));
pvVar1 = *(void **)(*(long *)(this + 0x10) + lVar2 * 8);
if (pvVar1 != (void *)0x0) {
free(pvVar1);
}
pvVar1 = *(void **)(*(long *)(this + 0x18) + lVar2 * 8);
if (pvVar1 != (void *)0x0) {
free(pvVar1);
}
lVar2 = lVar2 + 1;
} while (lVar2 < *(int *)this);
}
*(int4 *)this = 0;
return;
}
| |
37,891 | lo0bits | eloqsql/libmariadb/libmariadb/ma_dtoa.c | static int lo0bits(ULong *y)
{
register int k;
register ULong x= *y;
if (x & 7)
{
if (x & 1)
return 0;
if (x & 2)
{
*y= x >> 1;
return 1;
}
*y= x >> 2;
return 2;
}
k= 0;
if (!(x & 0xffff))
{
k= 16;
x>>= 16;
}
if (!(x & 0xff))
{
k+= 8;
x>>= 8;
}
if (!(x & 0xf))
{
k+= 4;
x>>= 4;
}
if (!(x & 0x3))
{
k+= 2;
x>>= 2;
}
if (!(x & 1))
{
k++;
x>>= 1;
if (!x)
return 32;
}
*y= x;
return k;
} | O3 | c | lo0bits:
pushq %rbp
movq %rsp, %rbp
movl (%rdi), %ecx
testb $0x7, %cl
je 0x271fc
xorl %eax, %eax
testb $0x1, %cl
jne 0x27263
testb $0x2, %cl
jne 0x2725a
shrl $0x2, %ecx
movl $0x2, %eax
jmp 0x27261
movl %ecx, %eax
shrl $0x10, %eax
xorl %edx, %edx
testl $0xfff8, %ecx # imm = 0xFFF8
cmovnel %ecx, %eax
sete %dl
shll $0x4, %edx
leal 0x8(%rdx), %ecx
movl %eax, %esi
shrl $0x8, %esi
testb %al, %al
cmovnel %edx, %ecx
cmovnel %eax, %esi
leal 0x4(%rcx), %edx
movl %esi, %r8d
shrl $0x4, %r8d
testb $0xf, %sil
cmovnel %ecx, %edx
cmovnel %esi, %r8d
leal 0x2(%rdx), %eax
movl %r8d, %ecx
shrl $0x2, %ecx
testb $0x3, %r8b
cmovnel %edx, %eax
cmovnel %r8d, %ecx
testb $0x1, %cl
jne 0x27261
testl %ecx, %ecx
je 0x27265
incl %eax
shrl %ecx
jmp 0x27261
shrl %ecx
movl $0x1, %eax
movl %ecx, (%rdi)
popq %rbp
retq
movl $0x20, %eax
jmp 0x27263
| lo0bits:
push rbp
mov rbp, rsp
mov ecx, [rdi]
test cl, 7
jz short loc_271FC
xor eax, eax
test cl, 1
jnz short loc_27263
test cl, 2
jnz short loc_2725A
shr ecx, 2
mov eax, 2
jmp short loc_27261
loc_271FC:
mov eax, ecx
shr eax, 10h
xor edx, edx
test ecx, 0FFF8h
cmovnz eax, ecx
setz dl
shl edx, 4
lea ecx, [rdx+8]
mov esi, eax
shr esi, 8
test al, al
cmovnz ecx, edx
cmovnz esi, eax
lea edx, [rcx+4]
mov r8d, esi
shr r8d, 4
test sil, 0Fh
cmovnz edx, ecx
cmovnz r8d, esi
lea eax, [rdx+2]
mov ecx, r8d
shr ecx, 2
test r8b, 3
cmovnz eax, edx
cmovnz ecx, r8d
test cl, 1
jnz short loc_27261
test ecx, ecx
jz short loc_27265
inc eax
shr ecx, 1
jmp short loc_27261
loc_2725A:
shr ecx, 1
mov eax, 1
loc_27261:
mov [rdi], ecx
loc_27263:
pop rbp
retn
loc_27265:
mov eax, 20h ; ' '
jmp short loc_27263
| long long lo0bits(unsigned int *a1)
{
unsigned int v1; // ecx
long long result; // rax
unsigned int v3; // ecx
unsigned int v4; // eax
int v5; // edx
int v6; // edx
int v7; // ecx
unsigned int v8; // esi
unsigned int v9; // edx
unsigned int v10; // r8d
v1 = *a1;
if ( (*a1 & 7) != 0 )
{
result = 0LL;
if ( (v1 & 1) != 0 )
return result;
if ( (v1 & 2) != 0 )
{
v3 = v1 >> 1;
result = 1LL;
}
else
{
v3 = v1 >> 2;
result = 2LL;
}
}
else
{
v4 = HIWORD(v1);
v5 = 0;
if ( (v1 & 0xFFF8) != 0 )
v4 = *a1;
LOBYTE(v5) = (*a1 & 0xFFF8) == 0;
v6 = 16 * v5;
v7 = v6 + 8;
v8 = v4 >> 8;
if ( (_BYTE)v4 )
{
v7 = v6;
v8 = v4;
}
v9 = v7 + 4;
v10 = v8 >> 4;
if ( (v8 & 0xF) != 0 )
{
v9 = v7;
v10 = v8;
}
result = v9 + 2;
v3 = v10 >> 2;
if ( (v10 & 3) != 0 )
{
result = v9;
v3 = v10;
}
if ( (v3 & 1) == 0 )
{
if ( !v3 )
return 32LL;
result = (unsigned int)(result + 1);
v3 >>= 1;
}
}
*a1 = v3;
return result;
}
| lo0bits:
PUSH RBP
MOV RBP,RSP
MOV ECX,dword ptr [RDI]
TEST CL,0x7
JZ 0x001271fc
XOR EAX,EAX
TEST CL,0x1
JNZ 0x00127263
TEST CL,0x2
JNZ 0x0012725a
SHR ECX,0x2
MOV EAX,0x2
JMP 0x00127261
LAB_001271fc:
MOV EAX,ECX
SHR EAX,0x10
XOR EDX,EDX
TEST ECX,0xfff8
CMOVNZ EAX,ECX
SETZ DL
SHL EDX,0x4
LEA ECX,[RDX + 0x8]
MOV ESI,EAX
SHR ESI,0x8
TEST AL,AL
CMOVNZ ECX,EDX
CMOVNZ ESI,EAX
LEA EDX,[RCX + 0x4]
MOV R8D,ESI
SHR R8D,0x4
TEST SIL,0xf
CMOVNZ EDX,ECX
CMOVNZ R8D,ESI
LEA EAX,[RDX + 0x2]
MOV ECX,R8D
SHR ECX,0x2
TEST R8B,0x3
CMOVNZ EAX,EDX
CMOVNZ ECX,R8D
TEST CL,0x1
JNZ 0x00127261
TEST ECX,ECX
JZ 0x00127265
INC EAX
SHR ECX,0x1
JMP 0x00127261
LAB_0012725a:
SHR ECX,0x1
MOV EAX,0x1
LAB_00127261:
MOV dword ptr [RDI],ECX
LAB_00127263:
POP RBP
RET
LAB_00127265:
MOV EAX,0x20
JMP 0x00127263
|
int lo0bits(uint *param_1)
{
uint uVar1;
int iVar2;
uint uVar3;
int iVar4;
bool bVar5;
uVar3 = *param_1;
if ((uVar3 & 7) == 0) {
bVar5 = (uVar3 & 0xfff8) == 0;
uVar1 = uVar3 >> 0x10;
if (!bVar5) {
uVar1 = uVar3;
}
iVar4 = (uint)bVar5 * 0x10;
uVar3 = uVar1 >> 8;
iVar2 = iVar4 + 8;
if ((char)uVar1 != '\0') {
uVar3 = uVar1;
iVar2 = iVar4;
}
uVar1 = uVar3 >> 4;
iVar4 = iVar2 + 4;
if ((uVar3 & 0xf) != 0) {
uVar1 = uVar3;
iVar4 = iVar2;
}
uVar3 = uVar1 >> 2;
iVar2 = iVar4 + 2;
if ((uVar1 & 3) != 0) {
uVar3 = uVar1;
iVar2 = iVar4;
}
if ((uVar3 & 1) == 0) {
if (uVar3 == 0) {
return 0x20;
}
iVar2 = iVar2 + 1;
uVar3 = uVar3 >> 1;
}
}
else {
if ((uVar3 & 1) != 0) {
return 0;
}
if ((uVar3 & 2) == 0) {
uVar3 = uVar3 >> 2;
iVar2 = 2;
}
else {
uVar3 = uVar3 >> 1;
iVar2 = 1;
}
}
*param_1 = uVar3;
return iVar2;
}
| |
37,892 | ha_find_null | eloqsql/mysys/my_compare.c | HA_KEYSEG *ha_find_null(HA_KEYSEG *keyseg, const uchar *a)
{
for (; (enum ha_base_keytype) keyseg->type != HA_KEYTYPE_END; keyseg++)
{
const uchar *end;
if (keyseg->null_bit)
{
if (!*a++)
return keyseg;
}
end= a+ keyseg->length;
switch ((enum ha_base_keytype) keyseg->type) {
case HA_KEYTYPE_TEXT:
case HA_KEYTYPE_BINARY:
case HA_KEYTYPE_BIT:
if (keyseg->flag & HA_SPACE_PACK)
{
int a_length;
get_key_length(a_length, a);
a += a_length;
break;
}
else
a= end;
break;
case HA_KEYTYPE_VARTEXT1:
case HA_KEYTYPE_VARTEXT2:
case HA_KEYTYPE_VARBINARY1:
case HA_KEYTYPE_VARBINARY2:
{
int a_length;
get_key_length(a_length, a);
a+= a_length;
break;
}
case HA_KEYTYPE_NUM:
if (keyseg->flag & HA_SPACE_PACK)
{
int alength= *a++;
end= a+alength;
}
a= end;
break;
case HA_KEYTYPE_INT8:
case HA_KEYTYPE_SHORT_INT:
case HA_KEYTYPE_USHORT_INT:
case HA_KEYTYPE_LONG_INT:
case HA_KEYTYPE_ULONG_INT:
case HA_KEYTYPE_INT24:
case HA_KEYTYPE_UINT24:
#ifdef HAVE_LONG_LONG
case HA_KEYTYPE_LONGLONG:
case HA_KEYTYPE_ULONGLONG:
#endif
case HA_KEYTYPE_FLOAT:
case HA_KEYTYPE_DOUBLE:
a= end;
break;
case HA_KEYTYPE_END: /* purecov: inspected */
/* keep compiler happy */
DBUG_ASSERT(0);
break;
}
}
return keyseg;
} | O0 | c | ha_find_null:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movzbl 0x18(%rax), %eax
cmpl $0x0, %eax
je 0xfaf62
movq -0x10(%rbp), %rax
cmpb $0x0, 0x19(%rax)
je 0xfadda
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x18(%rbp)
cmpb $0x0, (%rax)
jne 0xfadd8
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xfaf6a
jmp 0xfadda
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movzwl 0x14(%rcx), %ecx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movzbl 0x18(%rax), %eax
movq %rax, -0x38(%rbp)
subq $0x13, %rax
ja 0xfaf4f
movq -0x38(%rbp), %rax
leaq 0x6b06e(%rip), %rcx # 0x165e7c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x10(%rbp), %rax
movzwl 0x12(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0xfae8f
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xff, %eax
je 0xfae4c
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x18(%rbp)
movzbl (%rax), %eax
movl %eax, -0x24(%rbp)
jmp 0xfae79
movq -0x18(%rbp), %rax
movzbl 0x2(%rax), %eax
movzwl %ax, %eax
movq -0x18(%rbp), %rcx
movzbl 0x1(%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movzwl %ax, %eax
movl %eax, -0x24(%rbp)
movq -0x18(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x18(%rbp)
movl -0x24(%rbp), %ecx
movq -0x18(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
jmp 0xfaf4f
movq -0x20(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0xfaf4f
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xff, %eax
je 0xfaec1
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x18(%rbp)
movzbl (%rax), %eax
movl %eax, -0x28(%rbp)
jmp 0xfaeee
movq -0x18(%rbp), %rax
movzbl 0x2(%rax), %eax
movzwl %ax, %eax
movq -0x18(%rbp), %rcx
movzbl 0x1(%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movzwl %ax, %eax
movl %eax, -0x28(%rbp)
movq -0x18(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x18(%rbp)
movl -0x28(%rbp), %ecx
movq -0x18(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
jmp 0xfaf4f
movq -0x10(%rbp), %rax
movzwl 0x12(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0xfaf35
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x18(%rbp)
movzbl (%rax), %eax
movl %eax, -0x2c(%rbp)
movq -0x18(%rbp), %rax
movslq -0x2c(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0xfaf4f
movq -0x20(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0xfaf4f
jmp 0xfaf4b
jmp 0xfaf4d
jmp 0xfaf4f
jmp 0xfaf51
movq -0x10(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x10(%rbp)
jmp 0xfad9c
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
| ha_find_null:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
loc_FAD9C:
mov rax, [rbp+var_10]
movzx eax, byte ptr [rax+18h]
cmp eax, 0
jz loc_FAF62
mov rax, [rbp+var_10]
cmp byte ptr [rax+19h], 0
jz short loc_FADDA
mov rax, [rbp+var_18]
mov rcx, rax
add rcx, 1
mov [rbp+var_18], rcx
cmp byte ptr [rax], 0
jnz short loc_FADD8
mov rax, [rbp+var_10]
mov [rbp+var_8], rax
jmp loc_FAF6A
loc_FADD8:
jmp short $+2
loc_FADDA:
mov rax, [rbp+var_18]
mov rcx, [rbp+var_10]
movzx ecx, word ptr [rcx+14h]
add rax, rcx
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
movzx eax, byte ptr [rax+18h]
mov [rbp+var_38], rax
sub rax, 13h; switch 20 cases
ja def_FAE15; jumptable 00000000000FAE15 default case
mov rax, [rbp+var_38]
lea rcx, jpt_FAE15
movsxd rax, ds:(jpt_FAE15 - 165E7Ch)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_FAE17:
mov rax, [rbp+var_10]; jumptable 00000000000FAE15 cases 1,2,19
movzx eax, word ptr [rax+12h]
and eax, 1
cmp eax, 0
jz short loc_FAE8F
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax]
cmp eax, 0FFh
jz short loc_FAE4C
mov rax, [rbp+var_18]
mov rcx, rax
add rcx, 1
mov [rbp+var_18], rcx
movzx eax, byte ptr [rax]
mov [rbp+var_24], eax
jmp short loc_FAE79
loc_FAE4C:
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+2]
movzx eax, ax
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx+1]
movzx ecx, cx
shl ecx, 8
or eax, ecx
movzx eax, ax
mov [rbp+var_24], eax
mov rax, [rbp+var_18]
add rax, 3
mov [rbp+var_18], rax
loc_FAE79:
mov ecx, [rbp+var_24]
mov rax, [rbp+var_18]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_18], rax
jmp def_FAE15; jumptable 00000000000FAE15 default case
loc_FAE8F:
mov rax, [rbp+var_20]
mov [rbp+var_18], rax
jmp def_FAE15; jumptable 00000000000FAE15 default case
loc_FAE9C:
mov rax, [rbp+var_18]; jumptable 00000000000FAE15 cases 15-18
movzx eax, byte ptr [rax]
cmp eax, 0FFh
jz short loc_FAEC1
mov rax, [rbp+var_18]
mov rcx, rax
add rcx, 1
mov [rbp+var_18], rcx
movzx eax, byte ptr [rax]
mov [rbp+var_28], eax
jmp short loc_FAEEE
loc_FAEC1:
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+2]
movzx eax, ax
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx+1]
movzx ecx, cx
shl ecx, 8
or eax, ecx
movzx eax, ax
mov [rbp+var_28], eax
mov rax, [rbp+var_18]
add rax, 3
mov [rbp+var_18], rax
loc_FAEEE:
mov ecx, [rbp+var_28]
mov rax, [rbp+var_18]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_18], rax
jmp short def_FAE15; jumptable 00000000000FAE15 default case
loc_FAF01:
mov rax, [rbp+var_10]; jumptable 00000000000FAE15 case 7
movzx eax, word ptr [rax+12h]
and eax, 1
cmp eax, 0
jz short loc_FAF35
mov rax, [rbp+var_18]
mov rcx, rax
add rcx, 1
mov [rbp+var_18], rcx
movzx eax, byte ptr [rax]
mov [rbp+var_2C], eax
mov rax, [rbp+var_18]
movsxd rcx, [rbp+var_2C]
add rax, rcx
mov [rbp+var_20], rax
loc_FAF35:
mov rax, [rbp+var_20]
mov [rbp+var_18], rax
jmp short def_FAE15; jumptable 00000000000FAE15 default case
loc_FAF3F:
mov rax, [rbp+var_20]; jumptable 00000000000FAE15 cases 3-6,8-14
mov [rbp+var_18], rax
jmp short def_FAE15; jumptable 00000000000FAE15 default case
loc_FAF49:
jmp short $+2; jumptable 00000000000FAE15 case 0
loc_FAF4B:
jmp short $+2
loc_FAF4D:
jmp short $+2; jumptable 00000000000FAE15 default case
def_FAE15:
jmp short $+2; jumptable 00000000000FAE15 default case
loc_FAF51:
mov rax, [rbp+var_10]
add rax, 20h ; ' '
mov [rbp+var_10], rax
jmp loc_FAD9C
loc_FAF62:
mov rax, [rbp+var_10]
mov [rbp+var_8], rax
loc_FAF6A:
mov rax, [rbp+var_8]
pop rbp
retn
| long long ha_find_null(long long a1, unsigned __int8 *a2)
{
unsigned __int8 *v2; // rax
unsigned __int8 *v3; // rax
unsigned __int8 *v4; // rax
int v6; // [rsp+10h] [rbp-28h]
int v7; // [rsp+14h] [rbp-24h]
long long v8; // [rsp+18h] [rbp-20h]
unsigned __int8 *v10; // [rsp+20h] [rbp-18h]
unsigned __int8 *v11; // [rsp+20h] [rbp-18h]
while ( *(_BYTE *)(a1 + 24) )
{
if ( *(_BYTE *)(a1 + 25) )
{
v2 = a2++;
if ( !*v2 )
return a1;
}
v8 = (long long)&a2[*(unsigned __int16 *)(a1 + 20)];
switch ( *(_BYTE *)(a1 + 24) )
{
case 1:
case 2:
case 0x13:
if ( (*(_WORD *)(a1 + 18) & 1) != 0 )
{
if ( *a2 == 255 )
{
v7 = _byteswap_ushort(*(_WORD *)(a2 + 1));
v10 = a2 + 3;
}
else
{
v3 = a2;
v10 = a2 + 1;
v7 = *v3;
}
a2 = &v10[v7];
}
else
{
a2 += *(unsigned __int16 *)(a1 + 20);
}
break;
case 3:
case 4:
case 5:
case 6:
case 8:
case 9:
case 0xA:
case 0xB:
case 0xC:
case 0xD:
case 0xE:
a2 += *(unsigned __int16 *)(a1 + 20);
break;
case 7:
if ( (*(_WORD *)(a1 + 18) & 1) != 0 )
v8 = (long long)&a2[*a2 + 1];
a2 = (unsigned __int8 *)v8;
break;
case 0xF:
case 0x10:
case 0x11:
case 0x12:
if ( *a2 == 255 )
{
v6 = _byteswap_ushort(*(_WORD *)(a2 + 1));
v11 = a2 + 3;
}
else
{
v4 = a2;
v11 = a2 + 1;
v6 = *v4;
}
a2 = &v11[v6];
break;
default:
break;
}
a1 += 32LL;
}
return a1;
}
| ha_find_null:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
LAB_001fad9c:
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX + 0x18]
CMP EAX,0x0
JZ 0x001faf62
MOV RAX,qword ptr [RBP + -0x10]
CMP byte ptr [RAX + 0x19],0x0
JZ 0x001fadda
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x18],RCX
CMP byte ptr [RAX],0x0
JNZ 0x001fadd8
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001faf6a
LAB_001fadd8:
JMP 0x001fadda
LAB_001fadda:
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
MOVZX ECX,word ptr [RCX + 0x14]
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x38],RAX
SUB RAX,0x13
JA 0x001faf4f
MOV RAX,qword ptr [RBP + -0x38]
LEA RCX,[0x265e7c]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_1:
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,word ptr [RAX + 0x12]
AND EAX,0x1
CMP EAX,0x0
JZ 0x001fae8f
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0xff
JZ 0x001fae4c
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x18],RCX
MOVZX EAX,byte ptr [RAX]
MOV dword ptr [RBP + -0x24],EAX
JMP 0x001fae79
LAB_001fae4c:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x2]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x1]
MOVZX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOVZX EAX,AX
MOV dword ptr [RBP + -0x24],EAX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x3
MOV qword ptr [RBP + -0x18],RAX
LAB_001fae79:
MOV ECX,dword ptr [RBP + -0x24]
MOV RAX,qword ptr [RBP + -0x18]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001faf4f
LAB_001fae8f:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001faf4f
caseD_f:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0xff
JZ 0x001faec1
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x18],RCX
MOVZX EAX,byte ptr [RAX]
MOV dword ptr [RBP + -0x28],EAX
JMP 0x001faeee
LAB_001faec1:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x2]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x1]
MOVZX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOVZX EAX,AX
MOV dword ptr [RBP + -0x28],EAX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x3
MOV qword ptr [RBP + -0x18],RAX
LAB_001faeee:
MOV ECX,dword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x18]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001faf4f
caseD_7:
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,word ptr [RAX + 0x12]
AND EAX,0x1
CMP EAX,0x0
JZ 0x001faf35
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x18],RCX
MOVZX EAX,byte ptr [RAX]
MOV dword ptr [RBP + -0x2c],EAX
MOV RAX,qword ptr [RBP + -0x18]
MOVSXD RCX,dword ptr [RBP + -0x2c]
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
LAB_001faf35:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001faf4f
caseD_3:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001faf4f
caseD_0:
JMP 0x001faf4b
LAB_001faf4b:
JMP 0x001faf4d
LAB_001faf4d:
JMP 0x001faf4f
default:
JMP 0x001faf51
LAB_001faf51:
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x20
MOV qword ptr [RBP + -0x10],RAX
JMP 0x001fad9c
LAB_001faf62:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x8],RAX
LAB_001faf6a:
MOV RAX,qword ptr [RBP + -0x8]
POP RBP
RET
|
long ha_find_null(long param_1,byte *param_2)
{
byte bVar1;
byte *pbVar2;
uint local_30;
uint local_2c;
byte *local_28;
byte *local_20;
long local_18;
local_20 = param_2;
local_18 = param_1;
while ((*(char *)(local_18 + 0x18) != '\0' &&
((*(char *)(local_18 + 0x19) == '\0' ||
(bVar1 = *local_20, local_20 = local_20 + 1, bVar1 != 0))))) {
local_28 = local_20 + *(ushort *)(local_18 + 0x14);
pbVar2 = local_20;
switch(*(int1 *)(local_18 + 0x18)) {
case 0:
break;
case 1:
case 2:
case 0x13:
pbVar2 = local_28;
if ((*(ushort *)(local_18 + 0x12) & 1) != 0) {
if (*local_20 == 0xff) {
local_2c = (uint)CONCAT11(local_20[1],local_20[2]);
local_20 = local_20 + 3;
}
else {
local_2c = (uint)*local_20;
local_20 = local_20 + 1;
}
pbVar2 = local_20 + (int)local_2c;
}
break;
case 3:
case 4:
case 5:
case 6:
case 8:
case 9:
case 10:
case 0xb:
case 0xc:
case 0xd:
case 0xe:
pbVar2 = local_28;
break;
case 7:
if ((*(ushort *)(local_18 + 0x12) & 1) != 0) {
local_28 = local_20 + (long)(int)(uint)*local_20 + 1;
}
local_20 = local_28;
pbVar2 = local_20;
break;
case 0xf:
case 0x10:
case 0x11:
case 0x12:
if (*local_20 == 0xff) {
local_30 = (uint)CONCAT11(local_20[1],local_20[2]);
local_20 = local_20 + 3;
}
else {
local_30 = (uint)*local_20;
local_20 = local_20 + 1;
}
pbVar2 = local_20 + (int)local_30;
}
local_20 = pbVar2;
local_18 = local_18 + 0x20;
}
return local_18;
}
| |
37,893 | mysql_stmt_send_long_data | eloqsql/libmariadb/libmariadb/mariadb_stmt.c | my_bool STDCALL mysql_stmt_send_long_data(MYSQL_STMT *stmt, uint param_number,
const char *data, unsigned long length)
{
CLEAR_CLIENT_ERROR(stmt->mysql);
CLEAR_CLIENT_STMT_ERROR(stmt);
if (stmt->state < MYSQL_STMT_PREPARED || !stmt->params)
{
SET_CLIENT_STMT_ERROR(stmt, CR_NO_PREPARE_STMT, SQLSTATE_UNKNOWN, 0);
return(1);
}
if (param_number >= stmt->param_count)
{
SET_CLIENT_STMT_ERROR(stmt, CR_INVALID_PARAMETER_NO, SQLSTATE_UNKNOWN, 0);
return(1);
}
if (length || !stmt->params[param_number].long_data_used)
{
int ret;
size_t packet_len= STMT_ID_LENGTH + 2 + length;
uchar *cmd_buff= (uchar *)calloc(1, packet_len);
int4store(cmd_buff, stmt->stmt_id);
int2store(cmd_buff + STMT_ID_LENGTH, param_number);
memcpy(cmd_buff + STMT_ID_LENGTH + 2, data, length);
stmt->params[param_number].long_data_used= 1;
ret= stmt->mysql->methods->db_command(stmt->mysql, COM_STMT_SEND_LONG_DATA,
(char *)cmd_buff, packet_len, 1, stmt);
if (ret)
UPDATE_STMT_ERROR(stmt);
free(cmd_buff);
return(ret);
}
return(0);
} | O3 | c | mysql_stmt_send_long_data:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %r12
movl %esi, %ecx
movq %rdi, %rbx
movq 0x38(%rdi), %rax
movl $0x0, 0x90(%rax)
movq 0x38(%rdi), %rax
movw $0x30, 0x29b(%rax)
movl $0x30303030, 0x297(%rax) # imm = 0x30303030
movq 0x38(%rdi), %rax
movb $0x0, 0x97(%rax)
movq 0x38(%rdi), %rax
movq 0x2a0(%rax), %rax
testq %rax, %rax
je 0x50e1c
movl $0x0, 0x4(%rax)
movl $0x0, 0x108(%rbx)
leaq 0x30d(%rbx), %r15
movl $0x30303030, 0x30d(%rbx) # imm = 0x30303030
movw $0x30, 0x311(%rbx)
leaq 0x10c(%rbx), %r14
movb $0x0, 0x10c(%rbx)
cmpl $0x0, 0x50(%rbx)
je 0x50f60
movq 0x70(%rbx), %r13
testq %r13, %r13
je 0x50f60
cmpl %ecx, 0x64(%rbx)
jbe 0x50f9b
movl %ecx, %r8d
testq %r12, %r12
je 0x50ffd
movq %r14, -0x30(%rbp)
leaq 0x6(%r12), %rsi
movq %rsi, -0x48(%rbp)
movl $0x1, %edi
movq %r8, -0x40(%rbp)
movq %rdx, -0x38(%rbp)
movl %ecx, %r14d
callq 0x378f0
movq 0x40(%rbx), %rdx
movb %dl, (%rax)
movb %dh, 0x1(%rax)
movl %edx, %ecx
shrl $0x10, %ecx
movb %cl, 0x2(%rax)
shrl $0x18, %edx
movb %dl, 0x3(%rax)
movl %r14d, %ecx
movb %cl, 0x4(%rax)
movb %ch, 0x5(%rax)
leaq 0x6(%rax), %rdi
movq %rax, %r14
movq -0x38(%rbp), %rsi
movq %r12, %rdx
callq 0x370a0
imulq $0x70, -0x40(%rbp), %rax
movb $0x1, 0x66(%r13,%rax)
movq 0x38(%rbx), %rdi
movq 0x4d0(%rdi), %rax
movl $0x18, %esi
movq %r14, %r13
movq %r14, %rdx
movq -0x48(%rbp), %rcx
movl $0x1, %r8d
movq %rbx, %r9
callq *0x10(%rax)
movl %eax, %r12d
testl %eax, %eax
je 0x50f53
movq 0x38(%rbx), %rsi
movl 0x90(%rsi), %eax
movl %eax, 0x108(%rbx)
addq $0x297, %rsi # imm = 0x297
movl $0x5, %edx
movq %r15, %rdi
callq 0x37130
xorl %r15d, %r15d
movb %r15b, 0x312(%rbx)
movl $0x97, %esi
addq 0x38(%rbx), %rsi
movl $0x200, %edx # imm = 0x200
movq -0x30(%rbp), %rdi
callq 0x37130
movb %r15b, 0x30b(%rbx)
movq %r13, %rdi
callq 0x37190
jmp 0x50feb
movl $0x7ee, 0x108(%rbx) # imm = 0x7EE
leaq 0x2fc60f(%rip), %rax # 0x34d580
movq (%rax), %rsi
movl $0x5, %edx
movq %r15, %rdi
callq 0x37130
xorl %r15d, %r15d
movb %r15b, 0x312(%rbx)
leaq 0x2fc5fe(%rip), %rax # 0x34d590
movq 0xf0(%rax), %rsi
jmp 0x50fd4
movl $0x7f2, 0x108(%rbx) # imm = 0x7F2
leaq 0x2fc5d4(%rip), %rax # 0x34d580
movq (%rax), %rsi
movl $0x5, %edx
movq %r15, %rdi
callq 0x37130
xorl %r15d, %r15d
movb %r15b, 0x312(%rbx)
leaq 0x2fc5c3(%rip), %rax # 0x34d590
movq 0x110(%rax), %rsi
movl $0x200, %edx # imm = 0x200
movq %r14, %rdi
callq 0x37130
movb %r15b, 0x30b(%rbx)
movb $0x1, %r12b
movl %r12d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
imulq $0x70, %r8, %rax
cmpb $0x0, 0x66(%r13,%rax)
je 0x50e7a
xorl %r12d, %r12d
jmp 0x50feb
| mysql_stmt_send_long_data:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r12, rcx
mov ecx, esi
mov rbx, rdi
mov rax, [rdi+38h]
mov dword ptr [rax+90h], 0
mov rax, [rdi+38h]
mov word ptr [rax+29Bh], 30h ; '0'
mov dword ptr [rax+297h], 30303030h
mov rax, [rdi+38h]
mov byte ptr [rax+97h], 0
mov rax, [rdi+38h]
mov rax, [rax+2A0h]
test rax, rax
jz short loc_50E1C
mov dword ptr [rax+4], 0
loc_50E1C:
mov dword ptr [rbx+108h], 0
lea r15, [rbx+30Dh]
mov dword ptr [rbx+30Dh], 30303030h
mov word ptr [rbx+311h], 30h ; '0'
lea r14, [rbx+10Ch]
mov byte ptr [rbx+10Ch], 0
cmp dword ptr [rbx+50h], 0
jz loc_50F60
mov r13, [rbx+70h]
test r13, r13
jz loc_50F60
cmp [rbx+64h], ecx
jbe loc_50F9B
mov r8d, ecx
test r12, r12
jz loc_50FFD
loc_50E7A:
mov [rbp+var_30], r14
lea rsi, [r12+6]
mov [rbp+var_48], rsi
mov edi, 1
mov [rbp+var_40], r8
mov [rbp+var_38], rdx
mov r14d, ecx
call _calloc
mov rdx, [rbx+40h]
mov [rax], dl
mov [rax+1], dh
mov ecx, edx
shr ecx, 10h
mov [rax+2], cl
shr edx, 18h
mov [rax+3], dl
mov ecx, r14d
mov [rax+4], cl
mov [rax+5], ch
lea rdi, [rax+6]
mov r14, rax
mov rsi, [rbp+var_38]
mov rdx, r12
call _memcpy
imul rax, [rbp+var_40], 70h ; 'p'
mov byte ptr [r13+rax+66h], 1
mov rdi, [rbx+38h]
mov rax, [rdi+4D0h]
mov esi, 18h
mov r13, r14
mov rdx, r14
mov rcx, [rbp+var_48]
mov r8d, 1
mov r9, rbx
call qword ptr [rax+10h]
mov r12d, eax
test eax, eax
jz short loc_50F53
mov rsi, [rbx+38h]
mov eax, [rsi+90h]
mov [rbx+108h], eax
add rsi, 297h
mov edx, 5
mov rdi, r15
call _strncpy
xor r15d, r15d
mov [rbx+312h], r15b
mov esi, 97h
add rsi, [rbx+38h]
mov edx, 200h
mov rdi, [rbp+var_30]
call _strncpy
mov [rbx+30Bh], r15b
loc_50F53:
mov rdi, r13
call _free
jmp loc_50FEB
loc_50F60:
mov dword ptr [rbx+108h], 7EEh
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
mov rdi, r15
call _strncpy
xor r15d, r15d
mov [rbx+312h], r15b
lea rax, client_errors
mov rsi, [rax+0F0h]
jmp short loc_50FD4
loc_50F9B:
mov dword ptr [rbx+108h], 7F2h
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
mov rdi, r15
call _strncpy
xor r15d, r15d
mov [rbx+312h], r15b
lea rax, client_errors
mov rsi, [rax+110h]
loc_50FD4:
mov edx, 200h
mov rdi, r14
call _strncpy
mov [rbx+30Bh], r15b
mov r12b, 1
loc_50FEB:
mov eax, r12d
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_50FFD:
imul rax, r8, 70h ; 'p'
cmp byte ptr [r13+rax+66h], 0
jz loc_50E7A
xor r12d, r12d
jmp short loc_50FEB
| long long mysql_stmt_send_long_data(long long a1, unsigned int a2, long long a3, long long a4)
{
long long v4; // r12
long long v5; // rax
long long v6; // r13
long long v7; // rax
long long v8; // rdx
long long v9; // r14
long long v10; // rsi
char *v11; // rsi
v4 = a4;
*(_DWORD *)(*(_QWORD *)(a1 + 56) + 144LL) = 0;
strcpy((char *)(*(_QWORD *)(a1 + 56) + 663LL), "00000");
*(_BYTE *)(*(_QWORD *)(a1 + 56) + 151LL) = 0;
v5 = *(_QWORD *)(*(_QWORD *)(a1 + 56) + 672LL);
if ( v5 )
*(_DWORD *)(v5 + 4) = 0;
*(_DWORD *)(a1 + 264) = 0;
strcpy((char *)(a1 + 781), "00000");
*(_BYTE *)(a1 + 268) = 0;
if ( !*(_DWORD *)(a1 + 80) || (v6 = *(_QWORD *)(a1 + 112)) == 0 )
{
*(_DWORD *)(a1 + 264) = 2030;
strncpy(a1 + 781, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(a1 + 786) = 0;
v11 = client_errors[30];
LABEL_12:
strncpy(a1 + 268, v11, 512LL);
*(_BYTE *)(a1 + 779) = 0;
LOBYTE(v4) = 1;
return (unsigned int)v4;
}
if ( *(_DWORD *)(a1 + 100) <= a2 )
{
*(_DWORD *)(a1 + 264) = 2034;
strncpy(a1 + 781, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(a1 + 786) = 0;
v11 = client_errors[34];
goto LABEL_12;
}
if ( a4 || !*(_BYTE *)(v6 + 112LL * a2 + 102) )
{
v7 = calloc(1LL, a4 + 6);
v8 = *(_QWORD *)(a1 + 64);
*(_WORD *)v7 = v8;
*(_BYTE *)(v7 + 2) = BYTE2(v8);
*(_BYTE *)(v7 + 3) = BYTE3(v8);
*(_WORD *)(v7 + 4) = a2;
v9 = v7;
memcpy(v7 + 6, a3, v4);
*(_BYTE *)(v6 + 112LL * a2 + 102) = 1;
LODWORD(v4) = (*(long long ( **)(_QWORD, long long, long long, long long, long long, long long))(*(_QWORD *)(*(_QWORD *)(a1 + 56) + 1232LL)
+ 16LL))(
*(_QWORD *)(a1 + 56),
24LL,
v9,
v4 + 6,
1LL,
a1);
if ( (_DWORD)v4 )
{
v10 = *(_QWORD *)(a1 + 56);
*(_DWORD *)(a1 + 264) = *(_DWORD *)(v10 + 144);
strncpy(a1 + 781, v10 + 663, 5LL);
*(_BYTE *)(a1 + 786) = 0;
strncpy(a1 + 268, *(_QWORD *)(a1 + 56) + 151LL, 512LL);
*(_BYTE *)(a1 + 779) = 0;
}
free(v9);
}
else
{
LODWORD(v4) = 0;
}
return (unsigned int)v4;
}
| mysql_stmt_send_long_data:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R12,RCX
MOV ECX,ESI
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x38]
MOV dword ptr [RAX + 0x90],0x0
MOV RAX,qword ptr [RDI + 0x38]
MOV word ptr [RAX + 0x29b],0x30
MOV dword ptr [RAX + 0x297],0x30303030
MOV RAX,qword ptr [RDI + 0x38]
MOV byte ptr [RAX + 0x97],0x0
MOV RAX,qword ptr [RDI + 0x38]
MOV RAX,qword ptr [RAX + 0x2a0]
TEST RAX,RAX
JZ 0x00150e1c
MOV dword ptr [RAX + 0x4],0x0
LAB_00150e1c:
MOV dword ptr [RBX + 0x108],0x0
LEA R15,[RBX + 0x30d]
MOV dword ptr [RBX + 0x30d],0x30303030
MOV word ptr [RBX + 0x311],0x30
LEA R14,[RBX + 0x10c]
MOV byte ptr [RBX + 0x10c],0x0
CMP dword ptr [RBX + 0x50],0x0
JZ 0x00150f60
MOV R13,qword ptr [RBX + 0x70]
TEST R13,R13
JZ 0x00150f60
CMP dword ptr [RBX + 0x64],ECX
JBE 0x00150f9b
MOV R8D,ECX
TEST R12,R12
JZ 0x00150ffd
LAB_00150e7a:
MOV qword ptr [RBP + -0x30],R14
LEA RSI,[R12 + 0x6]
MOV qword ptr [RBP + -0x48],RSI
MOV EDI,0x1
MOV qword ptr [RBP + -0x40],R8
MOV qword ptr [RBP + -0x38],RDX
MOV R14D,ECX
CALL 0x001378f0
MOV RDX,qword ptr [RBX + 0x40]
MOV byte ptr [RAX],DL
MOV byte ptr [RAX + 0x1],DH
MOV ECX,EDX
SHR ECX,0x10
MOV byte ptr [RAX + 0x2],CL
SHR EDX,0x18
MOV byte ptr [RAX + 0x3],DL
MOV ECX,R14D
MOV byte ptr [RAX + 0x4],CL
MOV byte ptr [RAX + 0x5],CH
LEA RDI,[RAX + 0x6]
MOV R14,RAX
MOV RSI,qword ptr [RBP + -0x38]
MOV RDX,R12
CALL 0x001370a0
IMUL RAX,qword ptr [RBP + -0x40],0x70
MOV byte ptr [R13 + RAX*0x1 + 0x66],0x1
MOV RDI,qword ptr [RBX + 0x38]
MOV RAX,qword ptr [RDI + 0x4d0]
MOV ESI,0x18
MOV R13,R14
MOV RDX,R14
MOV RCX,qword ptr [RBP + -0x48]
MOV R8D,0x1
MOV R9,RBX
CALL qword ptr [RAX + 0x10]
MOV R12D,EAX
TEST EAX,EAX
JZ 0x00150f53
MOV RSI,qword ptr [RBX + 0x38]
MOV EAX,dword ptr [RSI + 0x90]
MOV dword ptr [RBX + 0x108],EAX
ADD RSI,0x297
MOV EDX,0x5
MOV RDI,R15
CALL 0x00137130
XOR R15D,R15D
MOV byte ptr [RBX + 0x312],R15B
MOV ESI,0x97
ADD RSI,qword ptr [RBX + 0x38]
MOV EDX,0x200
MOV RDI,qword ptr [RBP + -0x30]
CALL 0x00137130
MOV byte ptr [RBX + 0x30b],R15B
LAB_00150f53:
MOV RDI,R13
CALL 0x00137190
JMP 0x00150feb
LAB_00150f60:
MOV dword ptr [RBX + 0x108],0x7ee
LEA RAX,[0x44d580]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
MOV RDI,R15
CALL 0x00137130
XOR R15D,R15D
MOV byte ptr [RBX + 0x312],R15B
LEA RAX,[0x44d590]
MOV RSI,qword ptr [RAX + 0xf0]
JMP 0x00150fd4
LAB_00150f9b:
MOV dword ptr [RBX + 0x108],0x7f2
LEA RAX,[0x44d580]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
MOV RDI,R15
CALL 0x00137130
XOR R15D,R15D
MOV byte ptr [RBX + 0x312],R15B
LEA RAX,[0x44d590]
MOV RSI,qword ptr [RAX + 0x110]
LAB_00150fd4:
MOV EDX,0x200
MOV RDI,R14
CALL 0x00137130
MOV byte ptr [RBX + 0x30b],R15B
MOV R12B,0x1
LAB_00150feb:
MOV EAX,R12D
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00150ffd:
IMUL RAX,R8,0x70
CMP byte ptr [R13 + RAX*0x1 + 0x66],0x0
JZ 0x00150e7a
XOR R12D,R12D
JMP 0x00150feb
|
ulong mysql_stmt_send_long_data(long param_1,uint param_2,void *param_3,size_t param_4)
{
long lVar1;
int8 uVar2;
uint uVar3;
int1 *__ptr;
char *pcVar4;
ulong uVar5;
*(int4 *)(*(long *)(param_1 + 0x38) + 0x90) = 0;
lVar1 = *(long *)(param_1 + 0x38);
*(int2 *)(lVar1 + 0x29b) = 0x30;
*(int4 *)(lVar1 + 0x297) = 0x30303030;
*(int1 *)(*(long *)(param_1 + 0x38) + 0x97) = 0;
lVar1 = *(long *)(*(long *)(param_1 + 0x38) + 0x2a0);
if (lVar1 != 0) {
*(int4 *)(lVar1 + 4) = 0;
}
*(int4 *)(param_1 + 0x108) = 0;
pcVar4 = (char *)(param_1 + 0x30d);
*(int4 *)(param_1 + 0x30d) = 0x30303030;
*(int2 *)(param_1 + 0x311) = 0x30;
*(int1 *)(param_1 + 0x10c) = 0;
if ((*(int *)(param_1 + 0x50) == 0) || (lVar1 = *(long *)(param_1 + 0x70), lVar1 == 0)) {
*(int4 *)(param_1 + 0x108) = 0x7ee;
strncpy(pcVar4,SQLSTATE_UNKNOWN,5);
*(int1 *)(param_1 + 0x312) = 0;
pcVar4 = PTR_s_Statement_is_not_prepared_0044d680;
}
else {
if (param_2 < *(uint *)(param_1 + 100)) {
if ((param_4 == 0) && (*(char *)(lVar1 + 0x66 + (ulong)param_2 * 0x70) != '\0')) {
uVar5 = 0;
}
else {
__ptr = (int1 *)calloc(1,param_4 + 6);
uVar2 = *(int8 *)(param_1 + 0x40);
*__ptr = (char)uVar2;
__ptr[1] = (char)((ulong)uVar2 >> 8);
__ptr[2] = (char)((ulong)uVar2 >> 0x10);
__ptr[3] = (char)((ulong)uVar2 >> 0x18);
__ptr[4] = (char)param_2;
__ptr[5] = (char)(param_2 >> 8);
memcpy(__ptr + 6,param_3,param_4);
*(int1 *)(lVar1 + 0x66 + (ulong)param_2 * 0x70) = 1;
uVar3 = (**(code **)(*(long *)(*(long *)(param_1 + 0x38) + 0x4d0) + 0x10))
(*(long *)(param_1 + 0x38),0x18,__ptr,param_4 + 6,1,param_1);
uVar5 = (ulong)uVar3;
if (uVar3 != 0) {
*(int4 *)(param_1 + 0x108) = *(int4 *)(*(long *)(param_1 + 0x38) + 0x90);
strncpy(pcVar4,(char *)(*(long *)(param_1 + 0x38) + 0x297),5);
*(int1 *)(param_1 + 0x312) = 0;
strncpy((char *)(param_1 + 0x10c),(char *)(*(long *)(param_1 + 0x38) + 0x97),0x200);
*(int1 *)(param_1 + 0x30b) = 0;
}
free(__ptr);
}
goto LAB_00150feb;
}
*(int4 *)(param_1 + 0x108) = 0x7f2;
strncpy(pcVar4,SQLSTATE_UNKNOWN,5);
*(int1 *)(param_1 + 0x312) = 0;
pcVar4 = PTR_s_Invalid_parameter_number_0044d6a0;
}
strncpy((char *)(param_1 + 0x10c),pcVar4,0x200);
*(int1 *)(param_1 + 0x30b) = 0;
uVar5 = CONCAT71((int7)(param_4 >> 8),1);
LAB_00150feb:
return uVar5 & 0xffffffff;
}
| |
37,894 | 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_array() | monkey531[P]llama/common/json.hpp | bool end_array()
{
JSON_ASSERT(!ref_stack.empty());
JSON_ASSERT(ref_stack.back()->is_array());
ref_stack.back()->set_parents();
ref_stack.pop_back();
return true;
} | O1 | 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_array():
pushq %rax
movq 0x10(%rdi), %rax
cmpq %rax, 0x8(%rdi)
je 0x7285a
movq -0x8(%rax), %rcx
cmpb $0x2, (%rcx)
jne 0x72876
addq $-0x8, %rax
movq %rax, 0x10(%rdi)
movb $0x1, %al
popq %rcx
retq
leaq 0x45b6d(%rip), %rdi # 0xb83ce
leaq 0x419e9(%rip), %rdx # 0xb4251
leaq 0x46296(%rip), %rcx # 0xb8b05
movl $0x1b01, %esi # imm = 0x1B01
jmp 0x72890
leaq 0x45b51(%rip), %rdi # 0xb83ce
leaq 0x419cd(%rip), %rdx # 0xb4251
leaq 0x46309(%rip), %rcx # 0xb8b94
movl $0x1b02, %esi # imm = 0x1B02
xorl %eax, %eax
callq 0x19d20
nop
| _ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE9end_arrayEv:
push rax
mov rax, [rdi+10h]
cmp [rdi+8], rax
jz short loc_7285A
mov rcx, [rax-8]
cmp byte ptr [rcx], 2
jnz short loc_72876
add rax, 0FFFFFFFFFFFFFFF8h
mov [rdi+10h], rax
mov al, 1
pop rcx
retn
loc_7285A:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aRefStackEmpty; "!ref_stack.empty()"
mov esi, 1B01h
jmp short loc_72890
loc_72876:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aRefStackBackIs_0; "ref_stack.back()->is_array()"
mov esi, 1B02h
loc_72890:
xor eax, eax
call _ggml_abort
nop
| 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_array(
long long a1)
{
long long v1; // rax
long long v3; // rsi
long long v4; // rdx
v1 = *(_QWORD *)(a1 + 16);
if ( *(_QWORD *)(a1 + 8) == v1 )
{
v3 = 6913LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
6913LL,
"GGML_ASSERT(%s) failed",
"!ref_stack.empty()");
}
else
{
if ( **(_BYTE **)(v1 - 8) == 2 )
{
*(_QWORD *)(a1 + 16) = v1 - 8;
return 1;
}
v3 = 6914LL;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
6914LL,
"GGML_ASSERT(%s) failed",
"ref_stack.back()->is_array()");
}
return std::__shared_ptr<minja::Value,(__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<minja::Value>,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &>(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
v3,
v4);
}
| end_array:
PUSH RAX
MOV RAX,qword ptr [RDI + 0x10]
CMP qword ptr [RDI + 0x8],RAX
JZ 0x0017285a
MOV RCX,qword ptr [RAX + -0x8]
CMP byte ptr [RCX],0x2
JNZ 0x00172876
ADD RAX,-0x8
MOV qword ptr [RDI + 0x10],RAX
MOV AL,0x1
POP RCX
RET
LAB_0017285a:
LEA RDI,[0x1b83ce]
LEA RDX,[0x1b4251]
LEA RCX,[0x1b8b05]
MOV ESI,0x1b01
JMP 0x00172890
LAB_00172876:
LEA RDI,[0x1b83ce]
LEA RDX,[0x1b4251]
LEA RCX,[0x1b8b94]
MOV ESI,0x1b02
LAB_00172890:
XOR EAX,EAX
CALL 0x00119d20
|
/* 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_array() */
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_array(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;
char *pcVar2;
int8 uVar3;
lVar1 = *(long *)(this + 0x10);
if (*(long *)(this + 8) == lVar1) {
pcVar2 = "!ref_stack.empty()";
uVar3 = 0x1b01;
}
else {
if (**(char **)(lVar1 + -8) == '\x02') {
*(long *)(this + 0x10) = lVar1 + -8;
return CONCAT71((int7)((ulong)(lVar1 + -8) >> 8),1);
}
pcVar2 = "ref_stack.back()->is_array()";
uVar3 = 0x1b02;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",uVar3,
"GGML_ASSERT(%s) failed",pcVar2);
}
| |
37,895 | google::protobuf::compiler::cpp::RepeatedMessageFieldGenerator::GenerateMergingCode(google::protobuf::io::Printer*) const | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/cpp/message_field.cc | void RepeatedMessageFieldGenerator::GenerateMergingCode(
io::Printer* printer) const {
GOOGLE_CHECK(!IsFieldStripped(descriptor_, options_));
Formatter format(printer, variables_);
format("_this->$field$.MergeFrom(from.$field$);\n");
} | O3 | cpp | google::protobuf::compiler::cpp::RepeatedMessageFieldGenerator::GenerateMergingCode(google::protobuf::io::Printer*) const:
pushq %r14
pushq %rbx
subq $0x38, %rsp
leaq 0x18(%rdi), %rax
leaq 0x8(%rsp), %rbx
movq %rsi, -0x8(%rbx)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x7e61e
leaq 0xfeba8(%rip), %rsi # 0x1c850c
movq %rsp, %rdi
callq 0x39938
movq %rbx, %rdi
callq 0x2e5e0
addq $0x38, %rsp
popq %rbx
popq %r14
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x2e5e0
movq %r14, %rdi
callq 0x1f860
nop
| _ZNK6google8protobuf8compiler3cpp29RepeatedMessageFieldGenerator19GenerateMergingCodeEPNS0_2io7PrinterE:
push r14
push rbx
sub rsp, 38h
lea rax, [rdi+18h]
lea rbx, [rsp+48h+var_40]
mov [rbx-8], rsi
mov rdi, rbx
mov rsi, rax
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EEC2ERKSE_; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::_Rb_tree(std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>> const&)
lea rsi, aThisFieldMerge; "_this->$field$.MergeFrom(from.$field$);"...
mov rdi, rsp
call _ZNK6google8protobuf8compiler3cpp9FormatterclIJEEEvPKcDpRKT_
mov rdi, rbx
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree()
add rsp, 38h
pop rbx
pop r14
retn
mov r14, rax
mov rdi, rbx
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree()
mov rdi, r14
call __Unwind_Resume
| long long google::protobuf::compiler::cpp::RepeatedMessageFieldGenerator::GenerateMergingCode(
google::protobuf::compiler::cpp::RepeatedMessageFieldGenerator *this,
google::protobuf::io::Printer *a2)
{
long long result; // rax
google::protobuf::io::Printer *v3; // [rsp+0h] [rbp-48h] BYREF
_BYTE v4[64]; // [rsp+8h] [rbp-40h] BYREF
v3 = a2;
std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::_Rb_tree(
(long long)v4,
(long long)this + 24);
result = google::protobuf::compiler::cpp::Formatter::operator()<>(&v3, "_this->$field$.MergeFrom(from.$field$);\n");
std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree((long long)v4);
return result;
}
| GenerateMergingCode:
PUSH R14
PUSH RBX
SUB RSP,0x38
LEA RAX,[RDI + 0x18]
LEA RBX,[RSP + 0x8]
MOV qword ptr [RBX + -0x8],RSI
MOV RDI,RBX
MOV RSI,RAX
CALL 0x0017e61e
LAB_001c995d:
LEA RSI,[0x2c850c]
MOV RDI,RSP
CALL 0x00139938
LAB_001c996c:
MOV RDI,RBX
CALL 0x0012e5e0
ADD RSP,0x38
POP RBX
POP R14
RET
|
/* google::protobuf::compiler::cpp::RepeatedMessageFieldGenerator::GenerateMergingCode(google::protobuf::io::Printer*)
const */
void __thiscall
google::protobuf::compiler::cpp::RepeatedMessageFieldGenerator::GenerateMergingCode
(RepeatedMessageFieldGenerator *this,Printer *param_1)
{
Printer *local_48;
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
local_40 [48];
local_48 = param_1;
std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
::_Rb_tree(local_40,(_Rb_tree *)(this + 0x18));
/* try { // try from 001c995d to 001c996b has its CatchHandler @ 001c997c */
Formatter::operator()<>((Formatter *)&local_48,"_this->$field$.MergeFrom(from.$field$);\n");
std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
::~_Rb_tree(local_40);
return;
}
| |
37,896 | bool google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolCompare::operator()<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolEntry, google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolEntry>(google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolEntry const&, google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolEntry const&) const | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor_database.cc | bool operator()(const T& lhs, const U& rhs) const {
auto lhs_parts = GetParts(lhs);
auto rhs_parts = GetParts(rhs);
// Fast path to avoid making the whole string for common cases.
if (int res =
lhs_parts.first.substr(0, rhs_parts.first.size())
.compare(rhs_parts.first.substr(0, lhs_parts.first.size()))) {
// If the packages already differ, exit early.
return res < 0;
} else if (lhs_parts.first.size() == rhs_parts.first.size()) {
return lhs_parts.second < rhs_parts.second;
}
return AsString(lhs) < AsString(rhs);
} | O0 | cpp | bool google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolCompare::operator()<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolEntry, google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolEntry>(google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolEntry const&, google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolEntry const&) const:
subq $0x118, %rsp # imm = 0x118
movq %rdi, 0x108(%rsp)
movq %rsi, 0x100(%rsp)
movq %rdx, 0xf8(%rsp)
movq 0x108(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq 0x100(%rsp), %rdx
leaq 0xd8(%rsp), %rdi
callq 0xf6500
movq 0x8(%rsp), %rsi
movq 0xf8(%rsp), %rdx
leaq 0xb8(%rsp), %rdi
callq 0xf6500
leaq 0xd8(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0xb8(%rsp), %rdi
callq 0x24080
movq 0x10(%rsp), %rdi
movq %rax, %rdx
xorl %eax, %eax
movl %eax, %esi
callq 0x1d4a80
movq %rax, 0xa0(%rsp)
movq %rdx, 0xa8(%rsp)
leaq 0xb8(%rsp), %rax
movq %rax, 0x18(%rsp)
leaq 0xd8(%rsp), %rdi
callq 0x24080
movq 0x18(%rsp), %rdi
movq %rax, %rdx
xorl %eax, %eax
movl %eax, %esi
callq 0x1d4a80
movq %rax, 0x90(%rsp)
movq %rdx, 0x98(%rsp)
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
leaq 0xa0(%rsp), %rdi
callq 0xf65c0
movl %eax, 0xb4(%rsp)
cmpl $0x0, 0xb4(%rsp)
je 0xf6368
cmpl $0x0, 0xb4(%rsp)
setl %al
andb $0x1, %al
movb %al, 0x117(%rsp)
jmp 0xf6470
leaq 0xd8(%rsp), %rdi
callq 0x24080
movq %rax, (%rsp)
leaq 0xb8(%rsp), %rdi
callq 0x24080
movq %rax, %rcx
movq (%rsp), %rax
cmpq %rcx, %rax
jne 0xf63f6
movq 0xe8(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0xf0(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0xc8(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0xd0(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x80(%rsp), %rdi
movq 0x88(%rsp), %rsi
movq 0x70(%rsp), %rdx
movq 0x78(%rsp), %rcx
callq 0x854d0
andb $0x1, %al
movb %al, 0x117(%rsp)
jmp 0xf6470
jmp 0xf63f8
movq 0x8(%rsp), %rsi
movq 0x100(%rsp), %rdx
leaq 0x50(%rsp), %rdi
callq 0xf6690
movq 0x8(%rsp), %rsi
movq 0xf8(%rsp), %rdx
leaq 0x30(%rsp), %rdi
callq 0xf6690
jmp 0xf6428
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x89c70
andb $0x1, %al
movb %al, 0x117(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x13290
leaq 0x50(%rsp), %rdi
callq 0x13290
jmp 0xf6470
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x28(%rsp)
movl %eax, 0x24(%rsp)
leaq 0x50(%rsp), %rdi
callq 0x13290
jmp 0xf6481
movb 0x117(%rsp), %al
andb $0x1, %al
addq $0x118, %rsp # imm = 0x118
retq
movq 0x28(%rsp), %rdi
callq 0x13750
nopl (%rax,%rax)
| _ZNK6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex13SymbolCompareclINS2_11SymbolEntryES5_EEbRKT_RKT0_:
sub rsp, 118h
mov [rsp+118h+var_10], rdi
mov [rsp+118h+var_18], rsi
mov [rsp+118h+var_20], rdx
mov rsi, [rsp+118h+var_10]; google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolEntry *
mov [rsp+118h+var_110], rsi
mov rdx, [rsp+118h+var_18]
lea rdi, [rsp+118h+var_40]; this
call _ZNK6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex13SymbolCompare8GetPartsERKNS2_11SymbolEntryE; google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolCompare::GetParts(google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolEntry const&)
mov rsi, [rsp+118h+var_110]; google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolEntry *
mov rdx, [rsp+118h+var_20]
lea rdi, [rsp+118h+var_60]; this
call _ZNK6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex13SymbolCompare8GetPartsERKNS2_11SymbolEntryE; google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolCompare::GetParts(google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolEntry const&)
lea rax, [rsp+118h+var_40]
mov [rsp+118h+var_108], rax
lea rdi, [rsp+118h+var_60]; this
call _ZNK6google8protobuf20stringpiece_internal11StringPiece4sizeEv; google::protobuf::stringpiece_internal::StringPiece::size(void)
mov rdi, [rsp+118h+var_108]; this
mov rdx, rax; unsigned __int64
xor eax, eax
mov esi, eax; unsigned __int64
call _ZNK6google8protobuf20stringpiece_internal11StringPiece6substrEmm; google::protobuf::stringpiece_internal::StringPiece::substr(ulong,ulong)
mov [rsp+118h+var_78], rax
mov [rsp+118h+var_70], rdx
lea rax, [rsp+118h+var_60]
mov [rsp+118h+var_100], rax
lea rdi, [rsp+118h+var_40]; this
call _ZNK6google8protobuf20stringpiece_internal11StringPiece4sizeEv; google::protobuf::stringpiece_internal::StringPiece::size(void)
mov rdi, [rsp+118h+var_100]; this
mov rdx, rax; unsigned __int64
xor eax, eax
mov esi, eax; unsigned __int64
call _ZNK6google8protobuf20stringpiece_internal11StringPiece6substrEmm; google::protobuf::stringpiece_internal::StringPiece::substr(ulong,ulong)
mov [rsp+118h+var_88], rax
mov [rsp+118h+var_80], rdx
mov rsi, [rsp+118h+var_88]
mov rdx, [rsp+118h+var_80]
lea rdi, [rsp+118h+var_78]
call _ZNK6google8protobuf20stringpiece_internal11StringPiece7compareES2_; google::protobuf::stringpiece_internal::StringPiece::compare(google::protobuf::stringpiece_internal::StringPiece)
mov [rsp+118h+var_64], eax
cmp [rsp+118h+var_64], 0
jz short loc_F6368
cmp [rsp+118h+var_64], 0
setl al
and al, 1
mov [rsp+118h+var_1], al
jmp loc_F6470
loc_F6368:
lea rdi, [rsp+118h+var_40]; this
call _ZNK6google8protobuf20stringpiece_internal11StringPiece4sizeEv; google::protobuf::stringpiece_internal::StringPiece::size(void)
mov [rsp+118h+var_118], rax
lea rdi, [rsp+118h+var_60]; this
call _ZNK6google8protobuf20stringpiece_internal11StringPiece4sizeEv; google::protobuf::stringpiece_internal::StringPiece::size(void)
mov rcx, rax
mov rax, [rsp+118h+var_118]
cmp rax, rcx
jnz short loc_F63F6
mov rax, [rsp+118h+var_30]
mov [rsp+118h+var_98], rax
mov rax, [rsp+118h+var_28]
mov [rsp+118h+var_90], rax
mov rax, [rsp+118h+var_50]
mov [rsp+118h+var_A8], rax
mov rax, [rsp+118h+var_48]
mov [rsp+118h+var_A0], rax
mov rdi, [rsp+118h+var_98]
mov rsi, [rsp+118h+var_90]
mov rdx, [rsp+118h+var_A8]
mov rcx, [rsp+118h+var_A0]
call _ZN6google8protobuf20stringpiece_internalltENS1_11StringPieceES2_; google::protobuf::stringpiece_internal::operator<(google::protobuf::stringpiece_internal::StringPiece,google::protobuf::stringpiece_internal::StringPiece)
and al, 1
mov [rsp+118h+var_1], al
jmp short loc_F6470
loc_F63F6:
jmp short $+2
loc_F63F8:
mov rsi, [rsp+118h+var_110]
mov rdx, [rsp+118h+var_18]
lea rdi, [rsp+118h+var_C8]
call _ZNK6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex13SymbolCompare8AsStringB5cxx11ERKNS2_11SymbolEntryE; google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolCompare::AsString(google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolEntry const&)
mov rsi, [rsp+118h+var_110]
mov rdx, [rsp+118h+var_20]
lea rdi, [rsp+118h+var_E8]
call _ZNK6google8protobuf25EncodedDescriptorDatabase15DescriptorIndex13SymbolCompare8AsStringB5cxx11ERKNS2_11SymbolEntryE; google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolCompare::AsString(google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolEntry const&)
jmp short $+2
loc_F6428:
lea rdi, [rsp+118h+var_C8]
lea rsi, [rsp+118h+var_E8]
call _ZStltIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EESA_; std::operator<<char>(std::string const&,std::string const&)
and al, 1
mov [rsp+118h+var_1], al
lea rdi, [rsp+118h+var_E8]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+118h+var_C8]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_F6470
mov rcx, rax
mov eax, edx
mov [rsp+arg_20], rcx
mov [rsp+arg_1C], eax
lea rdi, [rsp+arg_48]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_F6481
loc_F6470:
mov al, [rsp+118h+var_1]
and al, 1
add rsp, 118h
retn
loc_F6481:
mov rdi, [rsp+arg_20]
call __Unwind_Resume
| char google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolCompare::operator()<google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolEntry,google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolEntry>(
google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolEntry *a1,
long long a2,
long long a3)
{
unsigned long long v3; // rax
long long v4; // rdx
unsigned long long v5; // rax
long long v6; // rdx
long long v8; // [rsp+0h] [rbp-118h]
_BYTE v9[32]; // [rsp+30h] [rbp-E8h] BYREF
_BYTE v10[32]; // [rsp+50h] [rbp-C8h] BYREF
long long v11; // [rsp+70h] [rbp-A8h]
long long v12; // [rsp+78h] [rbp-A0h]
long long v13; // [rsp+80h] [rbp-98h]
long long v14; // [rsp+88h] [rbp-90h]
long long v15; // [rsp+90h] [rbp-88h]
long long v16; // [rsp+98h] [rbp-80h]
_QWORD v17[2]; // [rsp+A0h] [rbp-78h] BYREF
int v18; // [rsp+B4h] [rbp-64h]
_BYTE v19[16]; // [rsp+B8h] [rbp-60h] BYREF
long long v20; // [rsp+C8h] [rbp-50h]
long long v21; // [rsp+D0h] [rbp-48h]
_BYTE v22[16]; // [rsp+D8h] [rbp-40h] BYREF
long long v23; // [rsp+E8h] [rbp-30h]
long long v24; // [rsp+F0h] [rbp-28h]
long long v25; // [rsp+F8h] [rbp-20h]
long long v26; // [rsp+100h] [rbp-18h]
google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolEntry *v27; // [rsp+108h] [rbp-10h]
char v28; // [rsp+117h] [rbp-1h]
v27 = a1;
v26 = a2;
v25 = a3;
google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolCompare::GetParts(
(google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolCompare *)v22,
a1);
google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolCompare::GetParts(
(google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolCompare *)v19,
a1);
v3 = google::protobuf::stringpiece_internal::StringPiece::size((google::protobuf::stringpiece_internal::StringPiece *)v19);
v17[0] = google::protobuf::stringpiece_internal::StringPiece::substr(
(google::protobuf::stringpiece_internal::StringPiece *)v22,
0LL,
v3);
v17[1] = v4;
v5 = google::protobuf::stringpiece_internal::StringPiece::size((google::protobuf::stringpiece_internal::StringPiece *)v22);
v15 = google::protobuf::stringpiece_internal::StringPiece::substr(
(google::protobuf::stringpiece_internal::StringPiece *)v19,
0LL,
v5);
v16 = v6;
v18 = google::protobuf::stringpiece_internal::StringPiece::compare(v17, v15, v6);
if ( v18 )
{
v28 = v18 < 0;
}
else
{
v8 = google::protobuf::stringpiece_internal::StringPiece::size((google::protobuf::stringpiece_internal::StringPiece *)v22);
if ( v8 == google::protobuf::stringpiece_internal::StringPiece::size((google::protobuf::stringpiece_internal::StringPiece *)v19) )
{
v13 = v23;
v14 = v24;
v11 = v20;
v12 = v21;
v28 = google::protobuf::stringpiece_internal::operator<(v23, v24, v20, v21) & 1;
}
else
{
google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolCompare::AsString[abi:cxx11](v10, a1, v26);
google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolCompare::AsString[abi:cxx11](v9, a1, v25);
v28 = std::operator<<char>();
std::string::~string(v9);
std::string::~string(v10);
}
}
return v28 & 1;
}
| operator():
SUB RSP,0x118
MOV qword ptr [RSP + 0x108],RDI
MOV qword ptr [RSP + 0x100],RSI
MOV qword ptr [RSP + 0xf8],RDX
MOV RSI,qword ptr [RSP + 0x108]
MOV qword ptr [RSP + 0x8],RSI
MOV RDX,qword ptr [RSP + 0x100]
LEA RDI,[RSP + 0xd8]
CALL 0x001f6500
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0xf8]
LEA RDI,[RSP + 0xb8]
CALL 0x001f6500
LEA RAX,[RSP + 0xd8]
MOV qword ptr [RSP + 0x10],RAX
LEA RDI,[RSP + 0xb8]
CALL 0x00124080
MOV RDI,qword ptr [RSP + 0x10]
MOV RDX,RAX
XOR EAX,EAX
MOV ESI,EAX
CALL 0x002d4a80
MOV qword ptr [RSP + 0xa0],RAX
MOV qword ptr [RSP + 0xa8],RDX
LEA RAX,[RSP + 0xb8]
MOV qword ptr [RSP + 0x18],RAX
LEA RDI,[RSP + 0xd8]
CALL 0x00124080
MOV RDI,qword ptr [RSP + 0x18]
MOV RDX,RAX
XOR EAX,EAX
MOV ESI,EAX
CALL 0x002d4a80
MOV qword ptr [RSP + 0x90],RAX
MOV qword ptr [RSP + 0x98],RDX
MOV RSI,qword ptr [RSP + 0x90]
MOV RDX,qword ptr [RSP + 0x98]
LEA RDI,[RSP + 0xa0]
CALL 0x001f65c0
MOV dword ptr [RSP + 0xb4],EAX
CMP dword ptr [RSP + 0xb4],0x0
JZ 0x001f6368
CMP dword ptr [RSP + 0xb4],0x0
SETL AL
AND AL,0x1
MOV byte ptr [RSP + 0x117],AL
JMP 0x001f6470
LAB_001f6368:
LEA RDI,[RSP + 0xd8]
CALL 0x00124080
MOV qword ptr [RSP],RAX
LEA RDI,[RSP + 0xb8]
CALL 0x00124080
MOV RCX,RAX
MOV RAX,qword ptr [RSP]
CMP RAX,RCX
JNZ 0x001f63f6
MOV RAX,qword ptr [RSP + 0xe8]
MOV qword ptr [RSP + 0x80],RAX
MOV RAX,qword ptr [RSP + 0xf0]
MOV qword ptr [RSP + 0x88],RAX
MOV RAX,qword ptr [RSP + 0xc8]
MOV qword ptr [RSP + 0x70],RAX
MOV RAX,qword ptr [RSP + 0xd0]
MOV qword ptr [RSP + 0x78],RAX
MOV RDI,qword ptr [RSP + 0x80]
MOV RSI,qword ptr [RSP + 0x88]
MOV RDX,qword ptr [RSP + 0x70]
MOV RCX,qword ptr [RSP + 0x78]
CALL 0x001854d0
AND AL,0x1
MOV byte ptr [RSP + 0x117],AL
JMP 0x001f6470
LAB_001f63f6:
JMP 0x001f63f8
LAB_001f63f8:
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x100]
LEA RDI,[RSP + 0x50]
CALL 0x001f6690
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0xf8]
LAB_001f641c:
LEA RDI,[RSP + 0x30]
CALL 0x001f6690
LAB_001f6426:
JMP 0x001f6428
LAB_001f6428:
LEA RDI,[RSP + 0x50]
LEA RSI,[RSP + 0x30]
CALL 0x00189c70
AND AL,0x1
MOV byte ptr [RSP + 0x117],AL
LEA RDI,[RSP + 0x30]
CALL 0x00113290
LEA RDI,[RSP + 0x50]
CALL 0x00113290
JMP 0x001f6470
LAB_001f6470:
MOV AL,byte ptr [RSP + 0x117]
AND AL,0x1
ADD RSP,0x118
RET
|
/* bool
google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolCompare::TEMPNAMEPLACEHOLDERVALUE(google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolEntry
const&, google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolEntry const&) const
*/
bool __thiscall
google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::SymbolCompare::operator()
(SymbolCompare *this,SymbolEntry *param_1,SymbolEntry *param_2)
{
ulong uVar1;
long lVar2;
long lVar3;
SymbolEntry local_e8 [32];
SymbolEntry local_c8 [32];
int8 local_a8;
int8 local_a0;
int8 local_98;
int8 local_90;
int1 local_88 [16];
int1 local_78 [16];
int local_64;
SymbolEntry local_60 [16];
int8 local_50;
int8 local_48;
SymbolEntry local_40 [16];
int8 local_30;
int8 local_28;
SymbolEntry *local_20;
SymbolEntry *local_18;
SymbolCompare *local_10;
byte local_1;
local_20 = param_2;
local_18 = param_1;
local_10 = this;
GetParts(local_40);
GetParts(local_60);
uVar1 = stringpiece_internal::StringPiece::size((StringPiece *)local_60);
local_78 = stringpiece_internal::StringPiece::substr((StringPiece *)local_40,0,uVar1);
uVar1 = stringpiece_internal::StringPiece::size((StringPiece *)local_40);
local_88 = stringpiece_internal::StringPiece::substr((StringPiece *)local_60,0,uVar1);
local_64 = stringpiece_internal::StringPiece::compare(local_78,local_88._0_8_,local_88._8_8_);
if (local_64 == 0) {
lVar2 = stringpiece_internal::StringPiece::size((StringPiece *)local_40);
lVar3 = stringpiece_internal::StringPiece::size((StringPiece *)local_60);
if (lVar2 == lVar3) {
local_98 = local_30;
local_90 = local_28;
local_a8 = local_50;
local_a0 = local_48;
local_1 = stringpiece_internal::operator<(local_30,local_28,local_50,local_48);
local_1 = local_1 & 1;
}
else {
AsString_abi_cxx11_(local_c8);
/* try { // try from 001f641c to 001f6425 has its CatchHandler @ 001f6456 */
AsString_abi_cxx11_(local_e8);
local_1 = std::operator<((string *)local_c8,(string *)local_e8);
std::__cxx11::string::~string((string *)local_e8);
std::__cxx11::string::~string((string *)local_c8);
}
}
else {
local_1 = local_64 < 0;
}
return (bool)(local_1 & 1);
}
| |
37,897 | 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>>>>>::parse(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>&) | monkey531[P]llama/common/json.hpp | void parse(const bool strict, BasicJsonType& result)
{
if (callback)
{
json_sax_dom_callback_parser<BasicJsonType> sdp(result, callback, allow_exceptions);
sax_parse_internal(&sdp);
// in strict mode, input must be completely read
if (strict && (get_token() != token_type::end_of_input))
{
sdp.parse_error(m_lexer.get_position(),
m_lexer.get_token_string(),
parse_error::create(101, m_lexer.get_position(),
exception_message(token_type::end_of_input, "value"), nullptr));
}
// in case of an error, return discarded value
if (sdp.is_errored())
{
result = value_t::discarded;
return;
}
// set top-level value to null if it was discarded by the callback
// function
if (result.is_discarded())
{
result = nullptr;
}
}
else
{
json_sax_dom_parser<BasicJsonType> sdp(result, allow_exceptions);
sax_parse_internal(&sdp);
// in strict mode, input must be completely read
if (strict && (get_token() != token_type::end_of_input))
{
sdp.parse_error(m_lexer.get_position(),
m_lexer.get_token_string(),
parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_of_input, "value"), nullptr));
}
// in case of an error, return discarded value
if (sdp.is_errored())
{
result = value_t::discarded;
return;
}
}
result.assert_invariant();
} | 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>>>>>::parse(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>&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1c0, %rsp # imm = 0x1C0
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r15
cmpq $0x0, 0x10(%rdi)
je 0x3d4b4
leaq 0xc8(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x3d306
movzbl 0xc0(%r15), %ecx
leaq 0x108(%rsp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x3ee44
leaq 0xc8(%rsp), %rdi
callq 0x47c98
leaq 0x108(%rsp), %rsi
movq %r15, %rdi
callq 0x3ef08
testb %bpl, %bpl
je 0x3d48a
movq %r15, %rdi
callq 0x3dfaa
cmpl $0xf, %eax
je 0x3d48a
leaq 0x28(%r15), %rsi
movq 0x48(%r15), %r14
leaq 0x70(%rsp), %rdi
callq 0x3fa24
leaq 0x48(%r15), %rax
movq 0x10(%rax), %rcx
movq %rcx, 0x20(%rsp)
movups (%rax), %xmm0
movaps %xmm0, 0x10(%rsp)
leaq 0x7291b(%rip), %rsi # 0xafd1c
leaq 0x30(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x275c8
leaq 0x50(%rsp), %rdi
pushq $0xf
popq %rdx
leaq 0x30(%rsp), %rcx
movq %r15, %rsi
callq 0x3fc02
leaq 0x90(%rsp), %rdi
pushq $0x65
popq %rsi
leaq 0x10(%rsp), %rdx
leaq 0x50(%rsp), %rcx
xorl %r8d, %r8d
callq 0x3facc
leaq 0x108(%rsp), %rdi
leaq 0x70(%rsp), %rdx
leaq 0x90(%rsp), %rcx
movq %r14, %rsi
callq 0x3f9e0
leaq 0x90(%rsp), %rdi
callq 0x3fd9e
leaq 0x50(%rsp), %rdi
callq 0x24208
leaq 0x30(%rsp), %rdi
callq 0x24208
leaq 0x70(%rsp), %rdi
callq 0x24208
movb 0x180(%rsp), %bpl
cmpb $0x1, %bpl
jne 0x3d5fc
leaq 0xf8(%rsp), %r14
pushq $0x9
popq %rsi
movq %r14, %rdi
callq 0x3fdc2
jmp 0x3d613
movb 0xc0(%r15), %al
leaq 0x110(%rsp), %r14
movq %rbx, -0x8(%r14)
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movups %xmm0, 0x10(%r14)
movb $0x0, 0x20(%r14)
movb %al, 0x21(%r14)
leaq 0x108(%rsp), %rsi
movq %r15, %rdi
callq 0x3fe58
testb %bpl, %bpl
je 0x3d5bd
movq %r15, %rdi
callq 0x3dfaa
cmpl $0xf, %eax
je 0x3d5bd
leaq 0x28(%r15), %rsi
movq 0x48(%r15), %r12
leaq 0x70(%rsp), %rdi
callq 0x3fa24
leaq 0x48(%r15), %rax
movq 0x10(%rax), %rcx
movq %rcx, 0x20(%rsp)
movups (%rax), %xmm0
movaps %xmm0, 0x10(%rsp)
leaq 0x727e8(%rip), %rsi # 0xafd1c
leaq 0x30(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x275c8
leaq 0x50(%rsp), %rdi
pushq $0xf
popq %rdx
leaq 0x30(%rsp), %rcx
movq %r15, %rsi
callq 0x3fc02
leaq 0x90(%rsp), %rdi
pushq $0x65
popq %rsi
leaq 0x10(%rsp), %rdx
leaq 0x50(%rsp), %rcx
xorl %r8d, %r8d
callq 0x3facc
leaq 0x108(%rsp), %rdi
leaq 0x70(%rsp), %rdx
leaq 0x90(%rsp), %rcx
movq %r12, %rsi
callq 0x40930
leaq 0x90(%rsp), %rdi
callq 0x3fd9e
leaq 0x50(%rsp), %rdi
callq 0x24208
leaq 0x30(%rsp), %rdi
callq 0x24208
leaq 0x70(%rsp), %rdi
callq 0x24208
cmpb $0x1, 0x130(%rsp)
jne 0x3d63a
leaq 0xb8(%rsp), %rdi
pushq $0x9
popq %rsi
callq 0x3fdc2
leaq 0xb8(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3fdd8
movq %r15, %rdi
callq 0x3d252
movq %r14, %rdi
callq 0x40edc
jmp 0x3d64d
cmpb $0x9, (%rbx)
jne 0x3d626
leaq 0xe8(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x3d266
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3fdd8
movq %r14, %rdi
callq 0x3d252
leaq 0x108(%rsp), %rdi
callq 0x3fe1c
testb %bpl, %bpl
je 0x3d642
jmp 0x3d64d
movq %r14, %rdi
callq 0x40edc
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x3d72c
addq $0x1c0, %rsp # imm = 0x1C0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0x3fd9e
jmp 0x3d672
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x24208
jmp 0x3d681
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x24208
jmp 0x3d690
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x24208
jmp 0x3d6f4
jmp 0x3d6f1
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0x3fd9e
jmp 0x3d6b3
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x24208
jmp 0x3d6c2
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x24208
jmp 0x3d6d1
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x24208
jmp 0x3d701
jmp 0x3d6fe
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0x47c98
jmp 0x3d70e
movq %rax, %rbx
movq %r14, %rdi
callq 0x40edc
jmp 0x3d70e
movq %rax, %rbx
leaq 0x108(%rsp), %rdi
callq 0x3fe1c
movq %rbx, %rdi
callq 0x23fd0
| _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5parseEbRSF_:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 1C0h
mov rbx, rdx
mov ebp, esi
mov r15, rdi
cmp qword ptr [rdi+10h], 0
jz loc_3D4B4
lea r14, [rsp+1E8h+var_120]
mov rdi, r14
mov rsi, r15
call _ZNSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEC2ERKSJ_; 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> &)>::function(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> &)> const&)
movzx ecx, byte ptr [r15+0C0h]
lea rdi, [rsp+1E8h+var_E0]
mov rsi, rbx
mov rdx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ERSF_St8functionIFbiNS1_13parse_event_tESH_EEb; 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,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::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,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&,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)
lea rdi, [rsp+1E8h+var_120]; this
call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base()
lea rsi, [rsp+1E8h+var_E0]
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE18sax_parse_internalINS1_28json_sax_dom_callback_parserISF_EEEEbPT_; 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>>>::sax_parse_internal<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,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,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::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *)
test bpl, bpl
jz loc_3D48A
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE9get_tokenEv; 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>>>::get_token(void)
cmp eax, 0Fh
jz loc_3D48A
lea rsi, [r15+28h]
mov r14, [r15+48h]
lea rdi, [rsp+1E8h+var_178]
call _ZNK8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE16get_token_stringEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string(void)
lea rax, [r15+48h]
mov rcx, [rax+10h]
mov qword ptr [rsp+1E8h+var_1C8], rcx; int
movups xmm0, xmmword ptr [rax]
movaps xmmword ptr [rsp+1E8h+var_1D8], xmm0; char
lea rsi, aInvalidValue+8; "value"
lea rdi, [rsp+1E8h+var_1B8]
lea rdx, [rsp+1E8h+var_1D9]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rdi, [rsp+1E8h+var_198]
push 0Fh
pop rdx
lea rcx, [rsp+1E8h+var_1B8]
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE17exception_messageENS1_10lexer_baseISF_E10token_typeERKSB_; 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>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type,std::string const&)
lea rdi, [rsp+1E8h+var_158]; this
push 65h ; 'e'
pop rsi; int
lea rdx, [rsp+1E8h+var_1D8]
lea rcx, [rsp+1E8h+var_198]
xor r8d, r8d
call _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_
lea rdi, [rsp+1E8h+var_E0]
lea rdx, [rsp+1E8h+var_178]
lea rcx, [rsp+1E8h+var_158]
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE11parse_errorINS1_11parse_errorEEEbmRKSB_RKT_; 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,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>(ulong,std::string const&,nlohmann::json_abi_v3_11_3::detail::parse_error const&)
lea rdi, [rsp+1E8h+var_158]; void *
call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; nlohmann::json_abi_v3_11_3::detail::exception::~exception()
lea rdi, [rsp+1E8h+var_198]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+1E8h+var_1B8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+1E8h+var_178]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_3D48A:
mov bpl, [rsp+1E8h+var_68]
cmp bpl, 1
jnz loc_3D5FC
lea r14, [rsp+1E8h+var_F0]
push 9
pop rsi
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ENS0_6detail7value_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(nlohmann::json_abi_v3_11_3::detail::value_t)
jmp loc_3D613
loc_3D4B4:
mov al, [r15+0C0h]
lea r14, [rsp+1E8h+var_D8]
mov [r14-8], rbx
xorps xmm0, xmm0
movups xmmword ptr [r14], xmm0
movups xmmword ptr [r14+10h], xmm0
mov byte ptr [r14+20h], 0
mov [r14+21h], al
lea rsi, [rsp+1E8h+var_E0]
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE18sax_parse_internalINS1_19json_sax_dom_parserISF_EEEEbPT_; 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>>>::sax_parse_internal<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,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>(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,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *)
test bpl, bpl
jz loc_3D5BD
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE9get_tokenEv; 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>>>::get_token(void)
cmp eax, 0Fh
jz loc_3D5BD
lea rsi, [r15+28h]
mov r12, [r15+48h]
lea rdi, [rsp+1E8h+var_178]
call _ZNK8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE16get_token_stringEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string(void)
lea rax, [r15+48h]
mov rcx, [rax+10h]
mov qword ptr [rsp+1E8h+var_1C8], rcx; int
movups xmm0, xmmword ptr [rax]
movaps xmmword ptr [rsp+1E8h+var_1D8], xmm0; char
lea rsi, aInvalidValue+8; "value"
lea rdi, [rsp+1E8h+var_1B8]
lea rdx, [rsp+1E8h+var_1D9]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rdi, [rsp+1E8h+var_198]
push 0Fh
pop rdx
lea rcx, [rsp+1E8h+var_1B8]
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE17exception_messageENS1_10lexer_baseISF_E10token_typeERKSB_; 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>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type,std::string const&)
lea rdi, [rsp+1E8h+var_158]; this
push 65h ; 'e'
pop rsi; int
lea rdx, [rsp+1E8h+var_1D8]
lea rcx, [rsp+1E8h+var_198]
xor r8d, r8d
call _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_
lea rdi, [rsp+1E8h+var_E0]
lea rdx, [rsp+1E8h+var_178]
lea rcx, [rsp+1E8h+var_158]
mov rsi, r12
call _ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE11parse_errorINS1_11parse_errorEEEbmRKSB_RKT_; 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,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>(ulong,std::string const&,nlohmann::json_abi_v3_11_3::detail::parse_error const&)
lea rdi, [rsp+1E8h+var_158]; void *
call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; nlohmann::json_abi_v3_11_3::detail::exception::~exception()
lea rdi, [rsp+1E8h+var_198]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+1E8h+var_1B8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+1E8h+var_178]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_3D5BD:
cmp [rsp+1E8h+var_B8], 1
jnz short loc_3D63A
lea rdi, [rsp+1E8h+var_130]
push 9
pop rsi
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ENS0_6detail7value_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(nlohmann::json_abi_v3_11_3::detail::value_t)
lea r15, [rsp+1E8h+var_130]
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
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
mov rdi, r14
call _ZNSt12_Vector_baseIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEESaISF_EED2Ev; std::_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,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> *>>::~_Vector_base()
jmp short loc_3D64D
loc_3D5FC:
cmp byte ptr [rbx], 9
jnz short loc_3D626
lea r14, [rsp+1E8h+var_100]
mov rdi, r14
xor esi, esi
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EDn; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(decltype(nullptr))
loc_3D613:
mov rdi, rbx
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
loc_3D626:
lea rdi, [rsp+1E8h+var_E0]
call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev; 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,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~json_sax_dom_callback_parser()
test bpl, bpl
jz short loc_3D642
jmp short loc_3D64D
loc_3D63A:
mov rdi, r14
call _ZNSt12_Vector_baseIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEESaISF_EED2Ev; std::_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,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> *>>::~_Vector_base()
loc_3D642:
push 1
pop rsi
mov rdi, rbx
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_3D64D:
add rsp, 1C0h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
mov rbx, rax
lea rdi, [rsp+arg_88]; void *
call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; nlohmann::json_abi_v3_11_3::detail::exception::~exception()
jmp short loc_3D672
mov rbx, rax
loc_3D672:
lea rdi, [rsp+arg_48]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_3D681
mov rbx, rax
loc_3D681:
lea rdi, [rsp+arg_28]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_3D690
mov rbx, rax
loc_3D690:
lea rdi, [rsp+arg_68]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_3D6F4
jmp short loc_3D6F1
mov rbx, rax
lea rdi, [rsp+arg_88]; void *
call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; nlohmann::json_abi_v3_11_3::detail::exception::~exception()
jmp short loc_3D6B3
mov rbx, rax
loc_3D6B3:
lea rdi, [rsp+arg_48]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_3D6C2
mov rbx, rax
loc_3D6C2:
lea rdi, [rsp+arg_28]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_3D6D1
mov rbx, rax
loc_3D6D1:
lea rdi, [rsp+arg_68]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_3D701
jmp short loc_3D6FE
mov rbx, rax
lea rdi, [rsp+arg_C0]; this
call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base()
jmp short loc_3D70E
loc_3D6F1:
mov rbx, rax
loc_3D6F4:
mov rdi, r14
call _ZNSt12_Vector_baseIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEESaISF_EED2Ev; std::_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,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> *>>::~_Vector_base()
jmp short loc_3D70E
loc_3D6FE:
mov rbx, rax
loc_3D701:
lea rdi, [rsp+arg_100]
call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev; 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,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~json_sax_dom_callback_parser()
loc_3D70E:
mov rdi, rbx
call __Unwind_Resume
| long long 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>>>::parse(
long long a1,
char a2,
_BYTE *a3,
int a4,
int a5,
int a6)
{
int v7; // edx
int v8; // ecx
int v9; // r8d
int v10; // r9d
long long v11; // r14
int v12; // r8d
int v13; // r9d
char v14; // bp
_BYTE *v15; // r14
char v16; // al
long long v17; // r12
int v18; // r8d
int v19; // r9d
long long result; // rax
int v21; // [rsp+0h] [rbp-1E8h]
int v22; // [rsp+8h] [rbp-1E0h]
char v23[16]; // [rsp+10h] [rbp-1D8h]
char v24[16]; // [rsp+10h] [rbp-1D8h]
int v25[2]; // [rsp+20h] [rbp-1C8h]
int v26[2]; // [rsp+20h] [rbp-1C8h]
int v27; // [rsp+28h] [rbp-1C0h]
long long v28; // [rsp+30h] [rbp-1B8h] BYREF
int v29; // [rsp+38h] [rbp-1B0h]
int v30; // [rsp+40h] [rbp-1A8h]
int v31; // [rsp+48h] [rbp-1A0h]
char v32[8]; // [rsp+50h] [rbp-198h] BYREF
int v33; // [rsp+58h] [rbp-190h]
int v34; // [rsp+60h] [rbp-188h]
int v35; // [rsp+68h] [rbp-180h]
char v36[8]; // [rsp+70h] [rbp-178h] BYREF
int v37; // [rsp+78h] [rbp-170h]
int v38; // [rsp+80h] [rbp-168h]
int v39; // [rsp+88h] [rbp-160h]
char v40[40]; // [rsp+90h] [rbp-158h] BYREF
_BYTE v41[16]; // [rsp+B8h] [rbp-130h] BYREF
_OWORD v42[2]; // [rsp+C8h] [rbp-120h] BYREF
_BYTE v43[16]; // [rsp+E8h] [rbp-100h] BYREF
_BYTE v44[16]; // [rsp+F8h] [rbp-F0h] BYREF
_BYTE *v45; // [rsp+108h] [rbp-E0h] BYREF
_BYTE v46[32]; // [rsp+110h] [rbp-D8h] BYREF
char v47; // [rsp+130h] [rbp-B8h]
char v48; // [rsp+131h] [rbp-B7h]
char v49; // [rsp+180h] [rbp-68h]
if ( !*(_QWORD *)(a1 + 16) )
{
v16 = *(_BYTE *)(a1 + 192);
v45 = a3;
memset(v46, 0, sizeof(v46));
v47 = 0;
v48 = v16;
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>>>::sax_parse_internal<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>>>(
a1,
(unsigned int)&v45,
(_DWORD)a3,
a4,
a5,
a6);
if ( a2
&& (unsigned int)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>>>::get_token(a1) != 15 )
{
v17 = *(_QWORD *)(a1 + 72);
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string(
v36,
a1 + 40);
*(_QWORD *)v26 = *(_QWORD *)(a1 + 88);
*(_OWORD *)v24 = *(_OWORD *)(a1 + 72);
std::string::basic_string<std::allocator<char>>(&v28, (long long)"value");
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::exception_message(
(unsigned int)v32,
a1,
15,
(unsigned int)&v28,
v18,
v19);
ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_(
(nlohmann::json_abi_v3_11_3::detail::parse_error *)v40,
101,
v21,
v22,
v24[0],
*(int *)&v24[8],
v26[0],
v27,
v28,
v29,
v30,
v31,
v32[0],
v33,
v34,
v35,
v36[0],
v37,
v38,
v39,
v40[0]);
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>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>(
&v45,
v17,
v36,
v40);
nlohmann::json_abi_v3_11_3::detail::exception::~exception(v40);
std::string::~string(v32);
std::string::~string(&v28);
std::string::~string(v36);
}
if ( v47 == 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(
v41,
9LL);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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=(
a3,
v41);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)v41);
return std::_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,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> *>>::~_Vector_base(v46);
}
std::_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,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> *>>::~_Vector_base(v46);
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>::assert_invariant(
a3,
1LL);
}
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> &)>::function(
v42,
a1);
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::json_sax_dom_callback_parser(
&v45,
a3,
v42,
*(unsigned __int8 *)(a1 + 192));
std::_Function_base::~_Function_base((std::_Function_base *)v42);
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>>>::sax_parse_internal<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>>>(
a1,
(unsigned int)&v45,
v7,
v8,
v9,
v10);
if ( a2 )
{
if ( (unsigned int)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>>>::get_token(a1) != 15 )
{
v11 = *(_QWORD *)(a1 + 72);
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string(
v36,
a1 + 40);
*(_QWORD *)v25 = *(_QWORD *)(a1 + 88);
*(_OWORD *)v23 = *(_OWORD *)(a1 + 72);
std::string::basic_string<std::allocator<char>>(&v28, (long long)"value");
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::exception_message(
(unsigned int)v32,
a1,
15,
(unsigned int)&v28,
v12,
v13);
ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_(
(nlohmann::json_abi_v3_11_3::detail::parse_error *)v40,
101,
v21,
v22,
v23[0],
*(int *)&v23[8],
v25[0],
v27,
v28,
v29,
v30,
v31,
v32[0],
v33,
v34,
v35,
v36[0],
v37,
v38,
v39,
v40[0]);
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>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>(
&v45,
v11,
v36,
v40);
nlohmann::json_abi_v3_11_3::detail::exception::~exception(v40);
std::string::~string(v32);
std::string::~string(&v28);
std::string::~string(v36);
}
}
v14 = v49;
if ( v49 == 1 )
{
v15 = v44;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(
v44,
9LL);
}
else
{
if ( *a3 != 9 )
goto LABEL_15;
v15 = v43;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)v43);
}
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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=(
a3,
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);
LABEL_15:
result = nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~json_sax_dom_callback_parser(&v45);
if ( !v14 )
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>::assert_invariant(
a3,
1LL);
return result;
}
| parse:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x1c0
MOV RBX,RDX
MOV EBP,ESI
MOV R15,RDI
CMP qword ptr [RDI + 0x10],0x0
JZ 0x0013d4b4
LEA R14,[RSP + 0xc8]
MOV RDI,R14
MOV RSI,R15
CALL 0x0013d306
MOVZX ECX,byte ptr [R15 + 0xc0]
LAB_0013d389:
LEA RDI,[RSP + 0x108]
MOV RSI,RBX
MOV RDX,R14
CALL 0x0013ee44
LEA RDI,[RSP + 0xc8]
CALL 0x00147c98
LAB_0013d3a9:
LEA RSI,[RSP + 0x108]
MOV RDI,R15
CALL 0x0013ef08
TEST BPL,BPL
JZ 0x0013d48a
MOV RDI,R15
CALL 0x0013dfaa
CMP EAX,0xf
JZ 0x0013d48a
LEA RSI,[R15 + 0x28]
MOV R14,qword ptr [R15 + 0x48]
LAB_0013d3db:
LEA RDI,[RSP + 0x70]
CALL 0x0013fa24
LEA RAX,[R15 + 0x48]
MOV RCX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x20],RCX
MOVUPS XMM0,xmmword ptr [RAX]
MOVAPS xmmword ptr [RSP + 0x10],XMM0
LAB_0013d3fa:
LEA RSI,[0x1afd1c]
LEA RDI,[RSP + 0x30]
LEA RDX,[RSP + 0xf]
CALL 0x001275c8
LAB_0013d410:
LEA RDI,[RSP + 0x50]
PUSH 0xf
POP RDX
LEA RCX,[RSP + 0x30]
MOV RSI,R15
CALL 0x0013fc02
LAB_0013d425:
LEA RDI,[RSP + 0x90]
PUSH 0x65
POP RSI
LEA RDX,[RSP + 0x10]
LEA RCX,[RSP + 0x50]
XOR R8D,R8D
CALL 0x0013facc
LAB_0013d442:
LEA RDI,[RSP + 0x108]
LEA RDX,[RSP + 0x70]
LEA RCX,[RSP + 0x90]
MOV RSI,R14
CALL 0x0013f9e0
LEA RDI,[RSP + 0x90]
CALL 0x0013fd9e
LEA RDI,[RSP + 0x50]
CALL 0x00124208
LEA RDI,[RSP + 0x30]
CALL 0x00124208
LEA RDI,[RSP + 0x70]
CALL 0x00124208
LAB_0013d48a:
MOV BPL,byte ptr [RSP + 0x180]
CMP BPL,0x1
JNZ 0x0013d5fc
LEA R14,[RSP + 0xf8]
LAB_0013d4a4:
PUSH 0x9
POP RSI
MOV RDI,R14
CALL 0x0013fdc2
JMP 0x0013d613
LAB_0013d4b4:
MOV AL,byte ptr [R15 + 0xc0]
LEA R14,[RSP + 0x110]
MOV qword ptr [R14 + -0x8],RBX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R14],XMM0
MOVUPS xmmword ptr [R14 + 0x10],XMM0
MOV byte ptr [R14 + 0x20],0x0
MOV byte ptr [R14 + 0x21],AL
LAB_0013d4dc:
LEA RSI,[RSP + 0x108]
MOV RDI,R15
CALL 0x0013fe58
TEST BPL,BPL
JZ 0x0013d5bd
MOV RDI,R15
CALL 0x0013dfaa
CMP EAX,0xf
JZ 0x0013d5bd
LEA RSI,[R15 + 0x28]
MOV R12,qword ptr [R15 + 0x48]
LAB_0013d50e:
LEA RDI,[RSP + 0x70]
CALL 0x0013fa24
LEA RAX,[R15 + 0x48]
MOV RCX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x20],RCX
MOVUPS XMM0,xmmword ptr [RAX]
MOVAPS xmmword ptr [RSP + 0x10],XMM0
LAB_0013d52d:
LEA RSI,[0x1afd1c]
LEA RDI,[RSP + 0x30]
LEA RDX,[RSP + 0xf]
CALL 0x001275c8
LAB_0013d543:
LEA RDI,[RSP + 0x50]
PUSH 0xf
POP RDX
LEA RCX,[RSP + 0x30]
MOV RSI,R15
CALL 0x0013fc02
LAB_0013d558:
LEA RDI,[RSP + 0x90]
PUSH 0x65
POP RSI
LEA RDX,[RSP + 0x10]
LEA RCX,[RSP + 0x50]
XOR R8D,R8D
CALL 0x0013facc
LAB_0013d575:
LEA RDI,[RSP + 0x108]
LEA RDX,[RSP + 0x70]
LEA RCX,[RSP + 0x90]
MOV RSI,R12
CALL 0x00140930
LEA RDI,[RSP + 0x90]
CALL 0x0013fd9e
LEA RDI,[RSP + 0x50]
CALL 0x00124208
LEA RDI,[RSP + 0x30]
CALL 0x00124208
LEA RDI,[RSP + 0x70]
CALL 0x00124208
LAB_0013d5bd:
CMP byte ptr [RSP + 0x130],0x1
JNZ 0x0013d63a
LAB_0013d5c7:
LEA RDI,[RSP + 0xb8]
PUSH 0x9
POP RSI
CALL 0x0013fdc2
LAB_0013d5d7:
LEA R15,[RSP + 0xb8]
MOV RDI,RBX
MOV RSI,R15
CALL 0x0013fdd8
MOV RDI,R15
CALL 0x0013d252
MOV RDI,R14
CALL 0x00140edc
JMP 0x0013d64d
LAB_0013d5fc:
CMP byte ptr [RBX],0x9
JNZ 0x0013d626
LEA R14,[RSP + 0xe8]
MOV RDI,R14
XOR ESI,ESI
CALL 0x0013d266
LAB_0013d613:
MOV RDI,RBX
MOV RSI,R14
CALL 0x0013fdd8
MOV RDI,R14
CALL 0x0013d252
LAB_0013d626:
LEA RDI,[RSP + 0x108]
CALL 0x0013fe1c
TEST BPL,BPL
JZ 0x0013d642
JMP 0x0013d64d
LAB_0013d63a:
MOV RDI,R14
CALL 0x00140edc
LAB_0013d642:
PUSH 0x1
POP RSI
MOV RDI,RBX
CALL 0x0013d72c
LAB_0013d64d:
ADD RSP,0x1c0
POP RBX
POP R12
POP R14
POP R15
POP RBP
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 > > >::parse(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>&) */
void __thiscall
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>>>
::parse(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>>>
*this,bool param_1,basic_json *param_2)
{
ulong uVar1;
int iVar2;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_00;
allocator local_1d9;
int8 local_1d8;
int8 uStack_1d0;
int8 local_1c8;
string local_1b8 [32];
string local_198 [32];
string local_178 [32];
parse_error local_158 [40];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_130 [16];
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>&)>
local_120 [32];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_100 [16];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_f0 [16];
basic_json *local_e0;
int8 local_d8;
int8 uStack_d0;
int8 local_c8;
int8 uStack_c0;
char local_b8;
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>>>
local_b7;
char local_68;
if (*(long *)(this + 0x10) == 0) {
local_b7 = this[0xc0];
local_d8 = 0;
uStack_d0 = 0;
local_c8 = 0;
uStack_c0 = 0;
local_b8 = '\0';
/* try { // try from 0013d4dc to 0013d4fc has its CatchHandler @ 0013d6f1 */
local_e0 = param_2;
sax_parse_internal<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>>>
(this,(json_sax_dom_parser *)&local_e0);
if ((param_1) && (iVar2 = get_token(this), iVar2 != 0xf)) {
uVar1 = *(ulong *)(this + 0x48);
/* try { // try from 0013d50e to 0013d517 has its CatchHandler @ 0013d69c */
lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::get_token_string();
local_1c8 = *(int8 *)(this + 0x58);
local_1d8 = *(int8 *)(this + 0x48);
uStack_1d0 = *(int8 *)(this + 0x50);
/* try { // try from 0013d52d to 0013d542 has its CatchHandler @ 0013d68d */
std::__cxx11::string::string<std::allocator<char>>(local_1b8,"value",&local_1d9);
/* try { // try from 0013d543 to 0013d557 has its CatchHandler @ 0013d67e */
exception_message(local_198,this,0xf,local_1b8);
/* try { // try from 0013d558 to 0013d574 has its CatchHandler @ 0013d66f */
_ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_
(local_158,0x65,&local_1d8,local_198,0);
/* try { // try from 0013d575 to 0013d591 has its CatchHandler @ 0013d65d */
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>>
::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>
((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>>
*)&local_e0,uVar1,local_178,local_158);
exception::~exception((exception *)local_158);
std::__cxx11::string::~string(local_198);
std::__cxx11::string::~string(local_1b8);
std::__cxx11::string::~string(local_178);
}
if (local_b8 == '\x01') {
/* try { // try from 0013d5c7 to 0013d5d6 has its CatchHandler @ 0013d6f1 */
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_130,9);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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>
*)param_2,local_130);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_130);
std::
_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::~_Vector_base((_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)&local_d8);
return;
}
std::
_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::~_Vector_base((_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)&local_d8);
goto LAB_0013d642;
}
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>&)>
::function(local_120,this);
/* try { // try from 0013d389 to 0013d39b has its CatchHandler @ 0013d6df */
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>>
::json_sax_dom_callback_parser
((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_e0,param_2,local_120,this[0xc0]);
std::_Function_base::~_Function_base((_Function_base *)local_120);
/* try { // try from 0013d3a9 to 0013d3c9 has its CatchHandler @ 0013d6fe */
sax_parse_internal<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>>>
(this,(json_sax_dom_callback_parser *)&local_e0);
if ((param_1) && (iVar2 = get_token(this), iVar2 != 0xf)) {
uVar1 = *(ulong *)(this + 0x48);
/* try { // try from 0013d3db to 0013d3e4 has its CatchHandler @ 0013d6dd */
lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::get_token_string();
local_1c8 = *(int8 *)(this + 0x58);
local_1d8 = *(int8 *)(this + 0x48);
uStack_1d0 = *(int8 *)(this + 0x50);
/* try { // try from 0013d3fa to 0013d40f has its CatchHandler @ 0013d6ce */
std::__cxx11::string::string<std::allocator<char>>(local_1b8,"value",&local_1d9);
/* try { // try from 0013d410 to 0013d424 has its CatchHandler @ 0013d6bf */
exception_message(local_198,this,0xf,local_1b8);
/* try { // try from 0013d425 to 0013d441 has its CatchHandler @ 0013d6b0 */
_ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_
(local_158,0x65,&local_1d8,local_198,0);
/* try { // try from 0013d442 to 0013d45e has its CatchHandler @ 0013d69e */
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>>
::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>
((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_e0,uVar1,local_178,local_158);
exception::~exception((exception *)local_158);
std::__cxx11::string::~string(local_198);
std::__cxx11::string::~string(local_1b8);
std::__cxx11::string::~string(local_178);
}
if (local_68 == '\x01') {
this_00 = local_f0;
/* try { // try from 0013d4a4 to 0013d4ae has its CatchHandler @ 0013d6fe */
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(this_00,9);
LAB_0013d613:
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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>
*)param_2,this_00);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(this_00);
}
else if (*param_2 == '\t') {
this_00 = local_100;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json((_func_decltype_nullptr *)this_00);
goto LAB_0013d613;
}
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>>
::~json_sax_dom_callback_parser
((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_e0);
if (local_68 != '\0') {
return;
}
LAB_0013d642:
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(param_2,0));
return;
}
| |
37,898 | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::operator[]<char const>(char const*) | monkey531[P]llama/common/json.hpp | reference operator[](T* key)
{
return operator[](typename object_t::key_type(key));
} | O3 | cpp | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::operator[]<char const>(char const*):
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
leaq 0x7(%rsp), %rdx
movq %r14, %rdi
callq 0x53516
movq %rbx, %rdi
movq %r14, %rsi
callq 0xabdf2
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa5395
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a900
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa53be
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a900
movq %rbx, %rdi
callq 0x1afc0
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERSD_PT_:
push r14
push rbx
sub rsp, 28h
mov rbx, rdi
lea r14, [rsp+38h+var_30]
lea rdx, [rsp+38h+var_31]
mov rdi, r14
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, rbx
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixES9_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[](std::string)
mov rbx, rax
lea rax, [rsp+38h+var_20]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_A5395
mov rsi, [rsp+38h+var_20]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_A5395:
mov rax, rbx
add rsp, 28h
pop rbx
pop r14
retn
mov rbx, rax
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_A53BE
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_A53BE:
mov rdi, rbx
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>(
long long a1,
_BYTE *a2)
{
long long v2; // rbx
void *v4[2]; // [rsp+8h] [rbp-30h] BYREF
long long v5; // [rsp+18h] [rbp-20h] BYREF
std::string::basic_string<std::allocator<char>>(v4, a2);
v2 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[](
a1,
v4);
if ( v4[0] != &v5 )
operator delete(v4[0], v5 + 1);
return v2;
}
| operator[]<char_const>:
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV RBX,RDI
LEA R14,[RSP + 0x8]
LEA RDX,[RSP + 0x7]
MOV RDI,R14
CALL 0x00153516
LAB_001a536c:
MOV RDI,RBX
MOV RSI,R14
CALL 0x001abdf2
LAB_001a5377:
MOV RBX,RAX
LEA RAX,[RSP + 0x18]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001a5395
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011a900
LAB_001a5395:
MOV RAX,RBX
ADD RSP,0x28
POP RBX
POP R14
RET
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>::operator[]<char const>(char const*) */
basic_json * __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator[]<char_const>
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*this,char *param_1)
{
basic_json *pbVar1;
allocator local_31;
long *local_30 [2];
long local_20 [2];
std::__cxx11::string::string<std::allocator<char>>((string *)local_30,param_1,&local_31);
/* try { // try from 001a536c to 001a5376 has its CatchHandler @ 001a53a0 */
pbVar1 = (basic_json *)operator[](this,(string *)local_30);
if (local_30[0] != local_20) {
operator_delete(local_30[0],local_20[0] + 1);
}
return pbVar1;
}
| |
37,899 | minja::Value::operator+(minja::Value const&) const | monkey531[P]llama/common/minja.hpp | Value operator+(const Value& rhs) const {
if (is_string() || rhs.is_string()) {
return to_str() + rhs.to_str();
} else if (is_number_integer() && rhs.is_number_integer()) {
return get<int64_t>() + rhs.get<int64_t>();
} else if (is_array() && rhs.is_array()) {
auto res = Value::array();
for (const auto& item : *array_) res.push_back(item);
for (const auto& item : *rhs.array_) res.push_back(item);
return res;
} else {
return get<double>() + rhs.get<double>();
}
} | O3 | cpp | minja::Value::operator+(minja::Value const&) const:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movb 0x40(%rsi), %al
cmpb $0x3, %al
je 0x9b761
movb 0x40(%r14), %cl
cmpb $0x3, %cl
jne 0x9b7cf
leaq 0x50(%rsp), %rdi
movq %r15, %rsi
callq 0x9b5a0
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
callq 0x9b5a0
leaq 0x60(%rsp), %r14
movq -0x10(%r14), %rcx
movq -0x8(%r14), %r8
movq 0x30(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r14, %rcx
je 0x9b7a0
movq 0x60(%rsp), %rdi
movq 0x28(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x9b7c3
leaq 0x38(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x9b7be
movq 0x38(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x9b825
leaq 0x50(%rsp), %rdi
callq 0x1b270
jmp 0x9b833
addb $-0x5, %al
addb $-0x5, %cl
orb %al, %cl
cmpb $0x1, %cl
ja 0x9b8df
movq %r15, %rdi
callq 0x8ad2c
movq %rax, %r15
movq %r14, %rdi
callq 0x8ad2c
addq %rax, %r15
leaq 0x40(%rbx), %r14
xorpd %xmm0, %xmm0
movupd %xmm0, (%rbx)
movupd %xmm0, 0x10(%rbx)
movupd %xmm0, 0x20(%rbx)
movupd %xmm0, 0x30(%rbx)
movupd %xmm0, 0x40(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x6542a
jmp 0x9b973
leaq 0x28(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x1ba40
leaq 0x18(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x9b857
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x9b85f
movupd (%rcx), %xmm0
movupd %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x8ecfe
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9b8a4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b930
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9b8bf
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1b930
movq 0x50(%rsp), %rdi
cmpq %r14, %rdi
je 0x9b980
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x1b930
jmp 0x9b980
cmpq $0x0, 0x10(%r15)
je 0x9b935
cmpq $0x0, 0x10(%r14)
je 0x9b935
xorpd %xmm0, %xmm0
leaq 0x70(%rsp), %rsi
movapd %xmm0, (%rsi)
movq $0x0, 0x10(%rsi)
movq %rbx, %rdi
callq 0x92c98
leaq 0x70(%rsp), %rdi
callq 0x92482
movq 0x10(%r15), %rax
movq (%rax), %r15
movq 0x8(%rax), %r12
cmpq %r12, %r15
je 0x9b992
movq %rbx, %rdi
movq %r15, %rsi
callq 0x92d50
addq $0x50, %r15
jmp 0x9b91f
movq %r15, %rdi
callq 0x8ae76
movsd %xmm0, 0x48(%rsp)
movq %r14, %rdi
callq 0x8ae76
addsd 0x48(%rsp), %xmm0
leaq 0x40(%rbx), %r14
xorps %xmm1, %xmm1
movups %xmm1, (%rbx)
movups %xmm1, 0x10(%rbx)
movups %xmm1, 0x20(%rbx)
movups %xmm1, 0x30(%rbx)
movups %xmm1, 0x40(%rbx)
movq %r14, %rdi
callq 0x649f2
movq %r14, %rdi
movl $0x1, %esi
callq 0x5d708
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x10(%r14), %rax
movq (%rax), %r14
movq 0x8(%rax), %r15
cmpq %r15, %r14
je 0x9b980
movq %rbx, %rdi
movq %r14, %rsi
callq 0x92d50
addq $0x50, %r14
jmp 0x9b99d
movq %rax, %r14
leaq 0x70(%rsp), %rdi
callq 0x92482
jmp 0x9ba2f
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9b9e5
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b930
jmp 0x9b9e5
movq %rax, %r14
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9ba05
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1b930
jmp 0x9ba05
movq %rax, %r14
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9ba2f
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x1b930
jmp 0x9ba2f
jmp 0x9ba24
movq %rax, %r14
movq %rbx, %rdi
callq 0x8aca0
movq %r14, %rdi
callq 0x1c0d0
nop
| _ZNK5minja5ValueplERKS0_:
push r15
push r14
push r12
push rbx
sub rsp, 88h
mov r14, rdx
mov r15, rsi
mov rbx, rdi
mov al, [rsi+40h]
cmp al, 3
jz short loc_9B761
mov cl, [r14+40h]
cmp cl, 3
jnz short loc_9B7CF
loc_9B761:
lea rdi, [rsp+0A8h+var_58]
mov rsi, r15
call _ZNK5minja5Value6to_strB5cxx11Ev; minja::Value::to_str(void)
lea rdi, [rsp+0A8h+var_80]
mov rsi, r14
call _ZNK5minja5Value6to_strB5cxx11Ev; minja::Value::to_str(void)
lea r14, [rsp+0A8h+var_48]
mov rcx, [r14-10h]
mov r8, [r14-8]
mov rdx, [rsp+0A8h+var_78]
lea rax, [rdx+r8]
mov edi, 0Fh
cmp rcx, r14
jz short loc_9B7A0
mov rdi, [rsp+0A8h+var_48]
loc_9B7A0:
mov rsi, [rsp+0A8h+var_80]
cmp rax, rdi
jbe short loc_9B7C3
lea r9, [rsp+0A8h+var_70]
mov edi, 0Fh
cmp rsi, r9
jz short loc_9B7BE
mov rdi, [rsp+0A8h+var_70]
loc_9B7BE:
cmp rax, rdi
jbe short loc_9B825
loc_9B7C3:
lea rdi, [rsp+0A8h+var_58]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
jmp short loc_9B833
loc_9B7CF:
add al, 0FBh
add cl, 0FBh
or cl, al
cmp cl, 1
ja loc_9B8DF
mov rdi, r15
call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void)
mov r15, rax
mov rdi, r14
call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void)
add r15, rax
lea r14, [rbx+40h]
xorpd xmm0, xmm0
movupd xmmword ptr [rbx], xmm0
movupd xmmword ptr [rbx+10h], xmm0
movupd xmmword ptr [rbx+20h], xmm0
movupd xmmword ptr [rbx+30h], xmm0
movupd xmmword ptr [rbx+40h], xmm0
mov rdi, r14
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE5EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_16number_integer_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_integer_t)
jmp loc_9B973
loc_9B825:
lea rdi, [rsp+0A8h+var_80]
xor esi, esi
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong)
loc_9B833:
lea rdx, [rsp+0A8h+var_90]
mov [rdx-10h], rdx
mov rsi, [rax]
lea rcx, [rax+10h]
cmp rsi, rcx
jz short loc_9B857
mov [rsp+0A8h+var_A0], rsi
mov rdx, [rcx]
mov [rsp+0A8h+var_90], rdx
jmp short loc_9B85F
loc_9B857:
movupd xmm0, xmmword ptr [rcx]
movupd xmmword ptr [rdx], xmm0
loc_9B85F:
mov rdx, rax
add rdx, 8
mov rsi, [rax+8]
mov [rsp+0A8h+var_98], rsi
mov [rax], rcx
mov qword ptr [rdx], 0
mov byte ptr [rcx], 0
lea rsi, [rsp+0A8h+var_A0]
mov rdi, rbx
call _ZN5minja5ValueC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::Value(std::string const&)
lea rax, [rsp+0A8h+var_90]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_9B8A4
mov rsi, [rsp+0A8h+var_90]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_9B8A4:
lea rax, [rsp+0A8h+var_70]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_9B8BF
mov rsi, [rsp+0A8h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_9B8BF:
mov rdi, [rsp+0A8h+var_58]; void *
cmp rdi, r14
jz loc_9B980
mov rsi, [rsp+0A8h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp loc_9B980
loc_9B8DF:
cmp qword ptr [r15+10h], 0
jz short loc_9B935
cmp qword ptr [r14+10h], 0
jz short loc_9B935
xorpd xmm0, xmm0
lea rsi, [rsp+0A8h+var_38]
movapd xmmword ptr [rsi], xmm0
mov qword ptr [rsi+10h], 0
mov rdi, rbx
call _ZN5minja5Value5arrayESt6vectorIS0_SaIS0_EE; minja::Value::array(std::vector<minja::Value>)
lea rdi, [rsp+0A8h+var_38]
call _ZNSt6vectorIN5minja5ValueESaIS1_EED2Ev; std::vector<minja::Value>::~vector()
mov rax, [r15+10h]
mov r15, [rax]
mov r12, [rax+8]
loc_9B91F:
cmp r15, r12
jz short loc_9B992
mov rdi, rbx; this
mov rsi, r15; minja::Value *
call _ZN5minja5Value9push_backERKS0_; minja::Value::push_back(minja::Value const&)
add r15, 50h ; 'P'
jmp short loc_9B91F
loc_9B935:
mov rdi, r15
call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void)
movsd [rsp+0A8h+var_60], xmm0
mov rdi, r14
call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void)
addsd xmm0, [rsp+0A8h+var_60]
lea r14, [rbx+40h]
xorps xmm1, xmm1
movups xmmword ptr [rbx], xmm1
movups xmmword ptr [rbx+10h], xmm1
movups xmmword ptr [rbx+20h], xmm1
movups xmmword ptr [rbx+30h], xmm1
movups xmmword ptr [rbx+40h], xmm1
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE7EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_14number_float_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_float_t)
loc_9B973:
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_9B980:
mov rax, rbx
add rsp, 88h
pop rbx
pop r12
pop r14
pop r15
retn
loc_9B992:
mov rax, [r14+10h]
mov r14, [rax]
mov r15, [rax+8]
loc_9B99D:
cmp r14, r15
jz short loc_9B980
mov rdi, rbx; this
mov rsi, r14; minja::Value *
call _ZN5minja5Value9push_backERKS0_; minja::Value::push_back(minja::Value const&)
add r14, 50h ; 'P'
jmp short loc_9B99D
mov r14, rax
lea rdi, [rsp+arg_68]
call _ZNSt6vectorIN5minja5ValueESaIS1_EED2Ev; std::vector<minja::Value>::~vector()
jmp short loc_9BA2F
mov r14, rax
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_9B9E5
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_9B9E5
mov r14, rax
loc_9B9E5:
lea rax, [rsp+arg_30]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_9BA05
mov rsi, [rsp+arg_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_9BA05
mov r14, rax
loc_9BA05:
lea rax, [rsp+arg_58]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_9BA2F
mov rsi, [rsp+arg_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_9BA2F
jmp short $+2
loc_9BA24:
mov r14, rax
mov rdi, rbx; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
loc_9BA2F:
mov rdi, r14
call __Unwind_Resume
| minja::Value * minja::Value::operator+(minja::Value *this, long long a2, long long a3)
{
char v5; // al
char v6; // cl
unsigned long long v7; // rax
unsigned long long v8; // rdi
unsigned long long v9; // rdi
void **v10; // rax
long long v11; // r15
long long v12; // rax
char *v13; // r14
__int128 *v14; // rcx
const minja::Value **v15; // rax
const minja::Value *v16; // r15
const minja::Value *v17; // r12
double v18; // xmm0_8
const minja::Value **v20; // rax
const minja::Value *v21; // r14
const minja::Value *v22; // r15
void *v23[2]; // [rsp+8h] [rbp-A0h] BYREF
__int128 v24; // [rsp+18h] [rbp-90h] BYREF
_QWORD *v25; // [rsp+28h] [rbp-80h] BYREF
long long v26; // [rsp+30h] [rbp-78h]
_QWORD v27[2]; // [rsp+38h] [rbp-70h] BYREF
double v28; // [rsp+48h] [rbp-60h]
void *v29; // [rsp+50h] [rbp-58h] BYREF
long long v30; // [rsp+58h] [rbp-50h]
_QWORD v31[2]; // [rsp+60h] [rbp-48h] BYREF
__int128 v32; // [rsp+70h] [rbp-38h] BYREF
long long v33; // [rsp+80h] [rbp-28h]
v5 = *(_BYTE *)(a2 + 64);
if ( v5 != 3 )
{
v6 = *(_BYTE *)(a3 + 64);
if ( v6 != 3 )
{
if ( (unsigned __int8)((v5 - 5) | (v6 - 5)) > 1u )
{
if ( *(_QWORD *)(a2 + 16) && *(_QWORD *)(a3 + 16) )
{
v32 = 0LL;
v33 = 0LL;
minja::Value::array((long long)this, (long long *)&v32);
std::vector<minja::Value>::~vector(&v32);
v15 = *(const minja::Value ***)(a2 + 16);
v16 = *v15;
v17 = v15[1];
while ( v16 != v17 )
{
minja::Value::push_back(this, v16);
v16 = (const minja::Value *)((char *)v16 + 80);
}
v20 = *(const minja::Value ***)(a3 + 16);
v21 = *v20;
v22 = v20[1];
while ( v21 != v22 )
{
minja::Value::push_back(this, v21);
v21 = (const minja::Value *)((char *)v21 + 80);
}
return this;
}
v28 = minja::Value::get<double>(a2);
v18 = minja::Value::get<double>(a3) + v28;
v13 = (char *)this + 64;
*(_OWORD *)this = 0LL;
*((_OWORD *)this + 1) = 0LL;
*((_OWORD *)this + 2) = 0LL;
*((_OWORD *)this + 3) = 0LL;
*((_OWORD *)this + 4) = 0LL;
nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
(unsigned __int8 *)this + 64,
v18);
}
else
{
v11 = minja::Value::get<long>(a2);
v12 = minja::Value::get<long>(a3);
v13 = (char *)this + 64;
*(_OWORD *)this = 0LL;
*((_OWORD *)this + 1) = 0LL;
*((_OWORD *)this + 2) = 0LL;
*((_OWORD *)this + 3) = 0LL;
*((_OWORD *)this + 4) = 0LL;
nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
(unsigned __int8 *)this + 64,
v12 + 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(v13);
return this;
}
}
minja::Value::to_str[abi:cxx11](&v29, a2);
minja::Value::to_str[abi:cxx11](&v25, a3);
v7 = v26 + v30;
v8 = 15LL;
if ( v29 != v31 )
v8 = v31[0];
if ( v7 <= v8 )
goto LABEL_9;
v9 = 15LL;
if ( v25 != v27 )
v9 = v27[0];
if ( v7 <= v9 )
v10 = (void **)std::string::replace(&v25, 0LL, 0LL, v29, v30);
else
LABEL_9:
v10 = (void **)std::string::_M_append(&v29, v25, v26);
v23[0] = &v24;
v14 = (__int128 *)(v10 + 2);
if ( *v10 == v10 + 2 )
{
v24 = *v14;
}
else
{
v23[0] = *v10;
*(_QWORD *)&v24 = *(_QWORD *)v14;
}
v23[1] = v10[1];
*v10 = v14;
v10[1] = 0LL;
*(_BYTE *)v14 = 0;
minja::Value::Value((long long)this, (long long)v23);
if ( v23[0] != &v24 )
operator delete(v23[0], v24 + 1);
if ( v25 != v27 )
operator delete(v25, v27[0] + 1LL);
if ( v29 != v31 )
operator delete(v29, v31[0] + 1LL);
return this;
}
| operator+:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x88
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
MOV AL,byte ptr [RSI + 0x40]
CMP AL,0x3
JZ 0x0019b761
MOV CL,byte ptr [R14 + 0x40]
CMP CL,0x3
JNZ 0x0019b7cf
LAB_0019b761:
LEA RDI,[RSP + 0x50]
MOV RSI,R15
CALL 0x0019b5a0
LAB_0019b76e:
LEA RDI,[RSP + 0x28]
MOV RSI,R14
CALL 0x0019b5a0
LEA R14,[RSP + 0x60]
MOV RCX,qword ptr [R14 + -0x10]
MOV R8,qword ptr [R14 + -0x8]
MOV RDX,qword ptr [RSP + 0x30]
LEA RAX,[RDX + R8*0x1]
MOV EDI,0xf
CMP RCX,R14
JZ 0x0019b7a0
MOV RDI,qword ptr [RSP + 0x60]
LAB_0019b7a0:
MOV RSI,qword ptr [RSP + 0x28]
CMP RAX,RDI
JBE 0x0019b7c3
LEA R9,[RSP + 0x38]
MOV EDI,0xf
CMP RSI,R9
JZ 0x0019b7be
MOV RDI,qword ptr [RSP + 0x38]
LAB_0019b7be:
CMP RAX,RDI
JBE 0x0019b825
LAB_0019b7c3:
LEA RDI,[RSP + 0x50]
CALL 0x0011b270
LAB_0019b7cd:
JMP 0x0019b833
LAB_0019b7cf:
ADD AL,0xfb
ADD CL,0xfb
OR CL,AL
CMP CL,0x1
JA 0x0019b8df
MOV RDI,R15
CALL 0x0018ad2c
MOV R15,RAX
MOV RDI,R14
CALL 0x0018ad2c
ADD R15,RAX
LEA R14,[RBX + 0x40]
XORPD XMM0,XMM0
MOVUPD xmmword ptr [RBX],XMM0
MOVUPD xmmword ptr [RBX + 0x10],XMM0
MOVUPD xmmword ptr [RBX + 0x20],XMM0
MOVUPD xmmword ptr [RBX + 0x30],XMM0
MOVUPD xmmword ptr [RBX + 0x40],XMM0
MOV RDI,R14
MOV RSI,R15
CALL 0x0016542a
JMP 0x0019b973
LAB_0019b825:
LEA RDI,[RSP + 0x28]
XOR ESI,ESI
XOR EDX,EDX
CALL 0x0011ba40
LAB_0019b833:
LEA RDX,[RSP + 0x18]
MOV qword ptr [RDX + -0x10],RDX
MOV RSI,qword ptr [RAX]
LEA RCX,[RAX + 0x10]
CMP RSI,RCX
JZ 0x0019b857
MOV qword ptr [RSP + 0x8],RSI
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x18],RDX
JMP 0x0019b85f
LAB_0019b857:
MOVUPD XMM0,xmmword ptr [RCX]
MOVUPD xmmword ptr [RDX],XMM0
LAB_0019b85f:
MOV RDX,RAX
ADD RDX,0x8
MOV RSI,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x10],RSI
MOV qword ptr [RAX],RCX
MOV qword ptr [RDX],0x0
MOV byte ptr [RCX],0x0
LAB_0019b87c:
LEA RSI,[RSP + 0x8]
MOV RDI,RBX
CALL 0x0018ecfe
LEA RAX,[RSP + 0x18]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0019b8a4
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011b930
LAB_0019b8a4:
LEA RAX,[RSP + 0x38]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0019b8bf
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x0011b930
LAB_0019b8bf:
MOV RDI,qword ptr [RSP + 0x50]
CMP RDI,R14
JZ 0x0019b980
MOV RSI,qword ptr [RSP + 0x60]
INC RSI
CALL 0x0011b930
JMP 0x0019b980
LAB_0019b8df:
CMP qword ptr [R15 + 0x10],0x0
JZ 0x0019b935
CMP qword ptr [R14 + 0x10],0x0
JZ 0x0019b935
XORPD XMM0,XMM0
LEA RSI,[RSP + 0x70]
MOVAPD xmmword ptr [RSI],XMM0
MOV qword ptr [RSI + 0x10],0x0
LAB_0019b902:
MOV RDI,RBX
CALL 0x00192c98
LEA RDI,[RSP + 0x70]
CALL 0x00192482
MOV RAX,qword ptr [R15 + 0x10]
MOV R15,qword ptr [RAX]
MOV R12,qword ptr [RAX + 0x8]
LAB_0019b91f:
CMP R15,R12
JZ 0x0019b992
LAB_0019b924:
MOV RDI,RBX
MOV RSI,R15
CALL 0x00192d50
LAB_0019b92f:
ADD R15,0x50
JMP 0x0019b91f
LAB_0019b935:
MOV RDI,R15
CALL 0x0018ae76
MOVSD qword ptr [RSP + 0x48],XMM0
MOV RDI,R14
CALL 0x0018ae76
ADDSD XMM0,qword ptr [RSP + 0x48]
LEA R14,[RBX + 0x40]
XORPS XMM1,XMM1
MOVUPS xmmword ptr [RBX],XMM1
MOVUPS xmmword ptr [RBX + 0x10],XMM1
MOVUPS xmmword ptr [RBX + 0x20],XMM1
MOVUPS xmmword ptr [RBX + 0x30],XMM1
MOVUPS xmmword ptr [RBX + 0x40],XMM1
MOV RDI,R14
CALL 0x001649f2
LAB_0019b973:
MOV RDI,R14
MOV ESI,0x1
CALL 0x0015d708
LAB_0019b980:
MOV RAX,RBX
ADD RSP,0x88
POP RBX
POP R12
POP R14
POP R15
RET
LAB_0019b992:
MOV RAX,qword ptr [R14 + 0x10]
MOV R14,qword ptr [RAX]
MOV R15,qword ptr [RAX + 0x8]
LAB_0019b99d:
CMP R14,R15
JZ 0x0019b980
LAB_0019b9a2:
MOV RDI,RBX
MOV RSI,R14
CALL 0x00192d50
LAB_0019b9ad:
ADD R14,0x50
JMP 0x0019b99d
|
/* minja::Value::TEMPNAMEPLACEHOLDERVALUE(minja::Value const&) const */
Value * __thiscall minja::Value::operator+(Value *this,Value *param_1)
{
long *plVar1;
Value *pVVar2;
int8 *puVar3;
long lVar4;
long lVar5;
Value *in_RDX;
ulong uVar6;
Value *pVVar7;
double dVar8;
long *local_a0;
int8 local_98;
long local_90;
int8 uStack_88;
ulong *local_80;
long local_78;
ulong local_70 [2];
double local_60;
ulong *local_58;
long local_50;
ulong local_48 [2];
int8 local_38;
int8 uStack_30;
int8 local_28;
if ((param_1[0x40] != (Value)0x3) && (in_RDX[0x40] != (Value)0x3)) {
if ((byte)((char)in_RDX[0x40] - 5U | (char)param_1[0x40] - 5U) < 2) {
lVar4 = get<long>(param_1);
lVar5 = get<long>(in_RDX);
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
*(int8 *)(this + 0x40) = 0;
*(int8 *)(this + 0x48) = 0;
nlohmann::json_abi_v3_11_3::detail::
external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::
construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(this + 0x40,lVar4 + lVar5);
}
else {
if ((*(long *)(param_1 + 0x10) != 0) && (*(long *)(in_RDX + 0x10) != 0)) {
local_38 = 0;
uStack_30 = 0;
local_28 = 0;
/* try { // try from 0019b902 to 0019b909 has its CatchHandler @ 0019b9b3 */
array(this);
std::vector<minja::Value,std::allocator<minja::Value>>::~vector
((vector<minja::Value,std::allocator<minja::Value>> *)&local_38);
pVVar2 = (Value *)(*(int8 **)(param_1 + 0x10))[1];
for (pVVar7 = (Value *)**(int8 **)(param_1 + 0x10); pVVar7 != pVVar2;
pVVar7 = pVVar7 + 0x50) {
/* try { // try from 0019b924 to 0019b92e has its CatchHandler @ 0019ba24 */
push_back(this,pVVar7);
}
pVVar2 = (Value *)(*(int8 **)(in_RDX + 0x10))[1];
for (pVVar7 = (Value *)**(int8 **)(in_RDX + 0x10); pVVar7 != pVVar2;
pVVar7 = pVVar7 + 0x50) {
/* try { // try from 0019b9a2 to 0019b9ac has its CatchHandler @ 0019ba22 */
push_back(this,pVVar7);
}
return this;
}
local_60 = get<double>(param_1);
dVar8 = get<double>(in_RDX);
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
*(int8 *)(this + 0x40) = 0;
*(int8 *)(this + 0x48) = 0;
nlohmann::json_abi_v3_11_3::detail::
external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::
construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(dVar8 + local_60,this + 0x40);
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant((bool)((char)this + '@'));
return this;
}
to_str_abi_cxx11_();
/* try { // try from 0019b76e to 0019b77a has its CatchHandler @ 0019ba02 */
to_str_abi_cxx11_();
uVar6 = 0xf;
if (local_58 != local_48) {
uVar6 = local_48[0];
}
if (uVar6 < (ulong)(local_78 + local_50)) {
uVar6 = 0xf;
if (local_80 != local_70) {
uVar6 = local_70[0];
}
if ((ulong)(local_78 + local_50) <= uVar6) {
/* try { // try from 0019b825 to 0019b832 has its CatchHandler @ 0019b9e2 */
puVar3 = (int8 *)
std::__cxx11::string::replace((ulong)&local_80,0,(char *)0x0,(ulong)local_58);
goto LAB_0019b833;
}
}
/* try { // try from 0019b7c3 to 0019b7cc has its CatchHandler @ 0019b9e2 */
puVar3 = (int8 *)std::__cxx11::string::_M_append((char *)&local_58,(ulong)local_80);
LAB_0019b833:
local_a0 = &local_90;
plVar1 = puVar3 + 2;
if ((long *)*puVar3 == plVar1) {
local_90 = *plVar1;
uStack_88 = puVar3[3];
}
else {
local_90 = *plVar1;
local_a0 = (long *)*puVar3;
}
local_98 = puVar3[1];
*puVar3 = plVar1;
puVar3[1] = 0;
*(int1 *)plVar1 = 0;
/* try { // try from 0019b87c to 0019b888 has its CatchHandler @ 0019b9c2 */
Value(this,(string *)&local_a0);
if (local_a0 != &local_90) {
operator_delete(local_a0,local_90 + 1);
}
if (local_80 != local_70) {
operator_delete(local_80,local_70[0] + 1);
}
if (local_58 != local_48) {
operator_delete(local_58,local_48[0] + 1);
}
return this;
}
|
Subsets and Splits
C++ Functions With Standard Library Dependencies
Identifies C++ functions that depend on standard library components, revealing patterns in how developers utilize STL libraries and potentially highlighting common coding practices or dependencies in the dataset.
C++ Standard Library Function Analysis
Filters C++ code examples that use standard library containers and types, providing useful insights into common programming patterns and data structures in the dataset.
Random Training Function Samples
Performs basic filtering and random sampling of assembly code data without revealing meaningful patterns or relationships.
Random Training Function Samples
Retrieves a random sample of 1000 records from the training dataset, providing basic data exploration but offering limited analytical value beyond seeing raw entries.