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
39,800
check_mb_utf8_valid
eloqsql/libmariadb/libmariadb/ma_charset.c
static unsigned int check_mb_utf8_valid(const char *start, const char *end) { unsigned int len = check_mb_utf8_sequence(start, end); return (len > 1)? len:0; }
O3
c
check_mb_utf8_valid: pushq %rbp movq %rsp, %rbp cmpq %rsi, %rdi jae 0x2ff4b movb (%rdi), %al cmpb $-0x3e, %al jae 0x2ff4f xorl %eax, %eax popq %rbp retq cmpb $-0x21, %al ja 0x2ff69 leaq 0x2(%rdi), %rax cmpq %rsi, %rax ja 0x2ff4b movl $0x2, %eax cmpb $-0x40, 0x1(%rdi) jge 0x2ff4b jmp 0x2ff4d cmpb $-0x11, %al ja 0x2ff9a leaq 0x3(%rdi), %rcx cmpq %rsi, %rcx ja 0x2ff4b movb 0x1(%rdi), %cl cmpb $-0x41, %cl jg 0x2ff4b cmpb $-0x41, 0x2(%rdi) jg 0x2ff4b cmpb $-0x20, %al setne %al cmpb $-0x60, %cl setae %cl orb %al, %cl movl $0x3, %eax je 0x2ff4b jmp 0x2ff4d cmpb $-0xb, %al setae %cl leaq 0x4(%rdi), %rdx cmpq %rsi, %rdx seta %dl orb %cl, %dl jne 0x2ff4b movb 0x1(%rdi), %cl cmpb $-0x41, %cl jg 0x2ff4b cmpb $-0x41, 0x2(%rdi) jg 0x2ff4b cmpb $-0x41, 0x3(%rdi) jg 0x2ff4b cmpb $-0x10, %al sete %dl cmpb $-0x70, %cl setb %sil testb %sil, %dl jne 0x2ff4b cmpb $-0xc, %al setne %al cmpb $-0x70, %cl setb %cl orb %al, %cl movl $0x4, %eax je 0x2ff4b jmp 0x2ff4d
check_mb_utf8_valid: push rbp mov rbp, rsp cmp rdi, rsi jnb short loc_2FF4B mov al, [rdi] cmp al, 0C2h jnb short loc_2FF4F loc_2FF4B: xor eax, eax loc_2FF4D: pop rbp retn loc_2FF4F: cmp al, 0DFh ja short loc_2FF69 lea rax, [rdi+2] cmp rax, rsi ja short loc_2FF4B mov eax, 2 cmp byte ptr [rdi+1], 0C0h jge short loc_2FF4B jmp short loc_2FF4D loc_2FF69: cmp al, 0EFh ja short loc_2FF9A lea rcx, [rdi+3] cmp rcx, rsi ja short loc_2FF4B mov cl, [rdi+1] cmp cl, 0BFh jg short loc_2FF4B cmp byte ptr [rdi+2], 0BFh jg short loc_2FF4B cmp al, 0E0h setnz al cmp cl, 0A0h setnb cl or cl, al mov eax, 3 jz short loc_2FF4B jmp short loc_2FF4D loc_2FF9A: cmp al, 0F5h setnb cl lea rdx, [rdi+4] cmp rdx, rsi setnbe dl or dl, cl jnz short loc_2FF4B mov cl, [rdi+1] cmp cl, 0BFh jg short loc_2FF4B cmp byte ptr [rdi+2], 0BFh jg short loc_2FF4B cmp byte ptr [rdi+3], 0BFh jg short loc_2FF4B cmp al, 0F0h setz dl cmp cl, 90h setb sil test dl, sil jnz loc_2FF4B cmp al, 0F4h setnz al cmp cl, 90h setb cl or cl, al mov eax, 4 jz loc_2FF4B jmp loc_2FF4D
long long check_mb_utf8_valid(unsigned __int8 *a1, unsigned long long a2) { unsigned __int8 v2; // al long long result; // rax char v4; // cl bool v5; // cl char v6; // cl bool v7; // cl if ( (unsigned long long)a1 >= a2 ) return 0LL; v2 = *a1; if ( *a1 < 0xC2u ) return 0LL; if ( v2 <= 0xDFu ) { if ( (unsigned long long)(a1 + 2) <= a2 ) { result = 2LL; if ( (char)a1[1] < -64 ) return result; } return 0LL; } if ( v2 > 0xEFu ) { if ( v2 >= 0xF5u || (unsigned long long)(a1 + 4) > a2 ) return 0LL; v6 = a1[1]; if ( v6 > -65 ) return 0LL; if ( (char)a1[2] > -65 ) return 0LL; if ( (char)a1[3] > -65 ) return 0LL; if ( (unsigned __int8)v6 < 0x90u && v2 == 0xF0 ) return 0LL; v7 = v2 != 0xF4 || (unsigned __int8)v6 < 0x90u; result = 4LL; if ( !v7 ) return 0LL; } else { if ( (unsigned long long)(a1 + 3) > a2 ) return 0LL; v4 = a1[1]; if ( v4 > -65 ) return 0LL; if ( (char)a1[2] > -65 ) return 0LL; v5 = v2 != 0xE0 || (unsigned __int8)v4 >= 0xA0u; result = 3LL; if ( !v5 ) return 0LL; } return result; }
check_mb_utf8_valid: PUSH RBP MOV RBP,RSP CMP RDI,RSI JNC 0x0012ff4b MOV AL,byte ptr [RDI] CMP AL,0xc2 JNC 0x0012ff4f LAB_0012ff4b: XOR EAX,EAX LAB_0012ff4d: POP RBP RET LAB_0012ff4f: CMP AL,0xdf JA 0x0012ff69 LEA RAX,[RDI + 0x2] CMP RAX,RSI JA 0x0012ff4b MOV EAX,0x2 CMP byte ptr [RDI + 0x1],0xc0 JGE 0x0012ff4b JMP 0x0012ff4d LAB_0012ff69: CMP AL,0xef JA 0x0012ff9a LEA RCX,[RDI + 0x3] CMP RCX,RSI JA 0x0012ff4b MOV CL,byte ptr [RDI + 0x1] CMP CL,0xbf JG 0x0012ff4b CMP byte ptr [RDI + 0x2],0xbf JG 0x0012ff4b CMP AL,0xe0 SETNZ AL CMP CL,0xa0 SETNC CL OR CL,AL MOV EAX,0x3 JZ 0x0012ff4b JMP 0x0012ff4d LAB_0012ff9a: CMP AL,0xf5 SETNC CL LEA RDX,[RDI + 0x4] CMP RDX,RSI SETA DL OR DL,CL JNZ 0x0012ff4b MOV CL,byte ptr [RDI + 0x1] CMP CL,0xbf JG 0x0012ff4b CMP byte ptr [RDI + 0x2],0xbf JG 0x0012ff4b CMP byte ptr [RDI + 0x3],0xbf JG 0x0012ff4b CMP AL,0xf0 SETZ DL CMP CL,0x90 SETC SIL TEST DL,SIL JNZ 0x0012ff4b CMP AL,0xf4 SETNZ AL CMP CL,0x90 SETC CL OR CL,AL MOV EAX,0x4 JZ 0x0012ff4b JMP 0x0012ff4d
int8 check_mb_utf8_valid(byte *param_1,byte *param_2) { byte bVar1; byte bVar2; if ((param_1 < param_2) && (bVar1 = *param_1, 0xc1 < bVar1)) { if (bVar1 < 0xe0) { if ((param_1 + 2 <= param_2) && ((char)param_1[1] < -0x40)) { return 2; } } else if (bVar1 < 0xf0) { if (((param_1 + 3 <= param_2) && ((char)param_1[1] < -0x40)) && (((char)param_1[2] < -0x40 && (0x9f < param_1[1] || bVar1 != 0xe0)))) { return 3; } } else if (((((param_1 + 4 <= param_2 && bVar1 < 0xf5) && (bVar2 = param_1[1], (char)bVar2 < -0x40)) && ((char)param_1[2] < -0x40)) && (((char)param_1[3] < -0x40 && (bVar1 != 0xf0 || 0x8f < bVar2)))) && (bVar2 < 0x90 || bVar1 != 0xf4)) { return 4; } } return 0; }
39,801
write_hook_for_undo_key_insert
eloqsql/storage/maria/ma_key_recover.c
my_bool write_hook_for_undo_key_insert(enum translog_record_type type, TRN *trn, MARIA_HA *tbl_info, LSN *lsn, void *hook_arg) { struct st_msg_to_write_hook_for_undo_key *msg= (struct st_msg_to_write_hook_for_undo_key *) hook_arg; MARIA_SHARE *share= tbl_info->s; if (msg->auto_increment > 0) { /* Only reason to set it here is to have a mutex protect from checkpoint reading at the same time (would see a corrupted value). The purpose of the following code is to set auto_increment if the row has a with auto_increment value higher than the current one. We also want to be able to restore the old value, in case of rollback, if no one else has tried to set the value. The logic used is that we only restore the auto_increment value if tbl_info->last_auto_increment == share->last_auto_increment when it's time to do the rollback. */ DBUG_PRINT("info",("auto_inc: %lu new auto_inc: %lu", (ulong)share->state.auto_increment, (ulong)msg->auto_increment)); if (share->state.auto_increment < msg->auto_increment) { /* Remember the original value, in case of rollback */ tbl_info->last_auto_increment= share->last_auto_increment= share->state.auto_increment; share->state.auto_increment= msg->auto_increment; } else { /* If the current value would have affected the original auto_increment value, set it to an impossible value so that it's not restored on rollback */ if (msg->auto_increment > share->last_auto_increment) share->last_auto_increment= ~(ulonglong) 0; } } return write_hook_for_undo_key(type, trn, tbl_info, lsn, hook_arg); }
O0
c
write_hook_for_undo_key_insert: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movl %edi, -0x4(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq -0x28(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x18(%rbp), %rax movq (%rax), %rax movq %rax, -0x38(%rbp) movq -0x30(%rbp), %rax cmpq $0x0, 0x18(%rax) jbe 0x454d0 jmp 0x4545b jmp 0x4545d movq -0x38(%rbp), %rax movq 0xd8(%rax), %rax movq -0x30(%rbp), %rcx cmpq 0x18(%rcx), %rax jae 0x454a8 movq -0x38(%rbp), %rax movq 0xd8(%rax), %rcx movq -0x38(%rbp), %rax movq %rcx, 0x610(%rax) movq -0x18(%rbp), %rax movq %rcx, 0x3e8(%rax) movq -0x30(%rbp), %rax movq 0x18(%rax), %rcx movq -0x38(%rbp), %rax movq %rcx, 0xd8(%rax) jmp 0x454ce movq -0x30(%rbp), %rax movq 0x18(%rax), %rax movq -0x38(%rbp), %rcx cmpq 0x610(%rcx), %rax jbe 0x454cc movq -0x38(%rbp), %rax movq $-0x1, 0x610(%rax) jmp 0x454ce jmp 0x454d0 movl -0x4(%rbp), %edi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx movq -0x20(%rbp), %rcx movq -0x28(%rbp), %r8 callq 0x45390 addq $0x40, %rsp popq %rbp retq nop
write_hook_for_undo_key_insert: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_4], edi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov rax, [rbp+var_28] mov [rbp+var_30], rax mov rax, [rbp+var_18] mov rax, [rax] mov [rbp+var_38], rax mov rax, [rbp+var_30] cmp qword ptr [rax+18h], 0 jbe short loc_454D0 jmp short $+2 loc_4545B: jmp short $+2 loc_4545D: mov rax, [rbp+var_38] mov rax, [rax+0D8h] mov rcx, [rbp+var_30] cmp rax, [rcx+18h] jnb short loc_454A8 mov rax, [rbp+var_38] mov rcx, [rax+0D8h] mov rax, [rbp+var_38] mov [rax+610h], rcx mov rax, [rbp+var_18] mov [rax+3E8h], rcx mov rax, [rbp+var_30] mov rcx, [rax+18h] mov rax, [rbp+var_38] mov [rax+0D8h], rcx jmp short loc_454CE loc_454A8: mov rax, [rbp+var_30] mov rax, [rax+18h] mov rcx, [rbp+var_38] cmp rax, [rcx+610h] jbe short loc_454CC mov rax, [rbp+var_38] mov qword ptr [rax+610h], 0FFFFFFFFFFFFFFFFh loc_454CC: jmp short $+2 loc_454CE: jmp short $+2 loc_454D0: mov edi, [rbp+var_4] mov rsi, [rbp+var_10] mov rdx, [rbp+var_18] mov rcx, [rbp+var_20] mov r8, [rbp+var_28] call write_hook_for_undo_key add rsp, 40h pop rbp retn
long long write_hook_for_undo_key_insert(unsigned int a1, long long a2, long long *a3, long long a4, long long a5) { long long v5; // rcx long long v7; // [rsp+8h] [rbp-38h] v7 = *a3; if ( *(_QWORD *)(a5 + 24) ) { if ( *(_QWORD *)(v7 + 216) >= *(_QWORD *)(a5 + 24) ) { if ( *(_QWORD *)(a5 + 24) > *(_QWORD *)(v7 + 1552) ) *(_QWORD *)(v7 + 1552) = -1LL; } else { v5 = *(_QWORD *)(v7 + 216); *(_QWORD *)(v7 + 1552) = v5; a3[125] = v5; *(_QWORD *)(v7 + 216) = *(_QWORD *)(a5 + 24); } } return write_hook_for_undo_key(a1, a2, (long long)a3, a4, a5); }
write_hook_for_undo_key_insert: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV dword ptr [RBP + -0x4],EDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x30] CMP qword ptr [RAX + 0x18],0x0 JBE 0x001454d0 JMP 0x0014545b LAB_0014545b: JMP 0x0014545d LAB_0014545d: MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX + 0xd8] MOV RCX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RCX + 0x18] JNC 0x001454a8 MOV RAX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RAX + 0xd8] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0x610],RCX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x3e8],RCX MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RAX + 0x18] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0xd8],RCX JMP 0x001454ce LAB_001454a8: MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x18] MOV RCX,qword ptr [RBP + -0x38] CMP RAX,qword ptr [RCX + 0x610] JBE 0x001454cc MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0x610],-0x1 LAB_001454cc: JMP 0x001454ce LAB_001454ce: JMP 0x001454d0 LAB_001454d0: MOV EDI,dword ptr [RBP + -0x4] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x20] MOV R8,qword ptr [RBP + -0x28] CALL 0x00145390 ADD RSP,0x40 POP RBP RET
void write_hook_for_undo_key_insert (int4 param_1,int8 param_2,long *param_3,int8 param_4,long param_5) { long lVar1; lVar1 = *param_3; if (*(long *)(param_5 + 0x18) != 0) { if (*(ulong *)(lVar1 + 0xd8) < *(ulong *)(param_5 + 0x18)) { *(long *)(lVar1 + 0x610) = *(long *)(lVar1 + 0xd8); param_3[0x7d] = *(long *)(lVar1 + 0xd8); *(int8 *)(lVar1 + 0xd8) = *(int8 *)(param_5 + 0x18); } else if (*(ulong *)(lVar1 + 0x610) < *(ulong *)(param_5 + 0x18)) { *(int8 *)(lVar1 + 0x610) = 0xffffffffffffffff; } } write_hook_for_undo_key(param_1,param_2,param_3,param_4,param_5); return; }
39,802
write_hook_for_undo_key_insert
eloqsql/storage/maria/ma_key_recover.c
my_bool write_hook_for_undo_key_insert(enum translog_record_type type, TRN *trn, MARIA_HA *tbl_info, LSN *lsn, void *hook_arg) { struct st_msg_to_write_hook_for_undo_key *msg= (struct st_msg_to_write_hook_for_undo_key *) hook_arg; MARIA_SHARE *share= tbl_info->s; if (msg->auto_increment > 0) { /* Only reason to set it here is to have a mutex protect from checkpoint reading at the same time (would see a corrupted value). The purpose of the following code is to set auto_increment if the row has a with auto_increment value higher than the current one. We also want to be able to restore the old value, in case of rollback, if no one else has tried to set the value. The logic used is that we only restore the auto_increment value if tbl_info->last_auto_increment == share->last_auto_increment when it's time to do the rollback. */ DBUG_PRINT("info",("auto_inc: %lu new auto_inc: %lu", (ulong)share->state.auto_increment, (ulong)msg->auto_increment)); if (share->state.auto_increment < msg->auto_increment) { /* Remember the original value, in case of rollback */ tbl_info->last_auto_increment= share->last_auto_increment= share->state.auto_increment; share->state.auto_increment= msg->auto_increment; } else { /* If the current value would have affected the original auto_increment value, set it to an impossible value so that it's not restored on rollback */ if (msg->auto_increment > share->last_auto_increment) share->last_auto_increment= ~(ulonglong) 0; } } return write_hook_for_undo_key(type, trn, tbl_info, lsn, hook_arg); }
O3
c
write_hook_for_undo_key_insert: movq 0x18(%r8), %r9 testq %r9, %r9 je 0x4096e pushq %rbp movq %rsp, %rbp movq (%rdx), %rax movq 0xd8(%rax), %r10 cmpq %r9, %r10 jae 0x409f7 movq %r10, 0x610(%rax) movq %r10, 0x3e8(%rdx) movq 0x18(%r8), %r9 movq %r9, 0xd8(%rax) jmp 0x40a0b cmpq 0x610(%rax), %r9 jbe 0x40a0b movq $-0x1, 0x610(%rax) popq %rbp jmp 0x4096e
write_hook_for_undo_key_insert: mov r9, [r8+18h] test r9, r9 jz write_hook_for_undo_key push rbp mov rbp, rsp mov rax, [rdx] mov r10, [rax+0D8h] cmp r10, r9 jnb short loc_409F7 mov [rax+610h], r10 mov [rdx+3E8h], r10 mov r9, [r8+18h] mov [rax+0D8h], r9 jmp short loc_40A0B loc_409F7: cmp r9, [rax+610h] jbe short loc_40A0B mov qword ptr [rax+610h], 0FFFFFFFFFFFFFFFFh loc_40A0B: pop rbp jmp write_hook_for_undo_key
long long write_hook_for_undo_key_insert(unsigned int a1, long long a2, long long a3, long long a4, long long a5) { unsigned long long v5; // r9 long long v7; // rax unsigned long long v8; // r10 v5 = *(_QWORD *)(a5 + 24); if ( v5 ) { v7 = *(_QWORD *)a3; v8 = *(_QWORD *)(*(_QWORD *)a3 + 216LL); if ( v8 >= v5 ) { if ( v5 > *(_QWORD *)(v7 + 1552) ) *(_QWORD *)(v7 + 1552) = -1LL; } else { *(_QWORD *)(v7 + 1552) = v8; *(_QWORD *)(a3 + 1000) = v8; *(_QWORD *)(v7 + 216) = *(_QWORD *)(a5 + 24); } } return write_hook_for_undo_key(a1, a2, a3, a4, a5); }
write_hook_for_undo_key_insert: MOV R9,qword ptr [R8 + 0x18] TEST R9,R9 JZ 0x0014096e PUSH RBP MOV RBP,RSP MOV RAX,qword ptr [RDX] MOV R10,qword ptr [RAX + 0xd8] CMP R10,R9 JNC 0x001409f7 MOV qword ptr [RAX + 0x610],R10 MOV qword ptr [RDX + 0x3e8],R10 MOV R9,qword ptr [R8 + 0x18] MOV qword ptr [RAX + 0xd8],R9 JMP 0x00140a0b LAB_001409f7: CMP R9,qword ptr [RAX + 0x610] JBE 0x00140a0b MOV qword ptr [RAX + 0x610],-0x1 LAB_00140a0b: POP RBP JMP 0x0014096e
void write_hook_for_undo_key_insert (int4 param_1,int8 param_2,long *param_3,int8 param_4, int8 *param_5) { ulong uVar1; long lVar2; ulong uVar3; uVar1 = param_5[3]; if (uVar1 != 0) { lVar2 = *param_3; uVar3 = *(ulong *)(lVar2 + 0xd8); if (uVar3 < uVar1) { *(ulong *)(lVar2 + 0x610) = uVar3; param_3[0x7d] = uVar3; *(int8 *)(lVar2 + 0xd8) = param_5[3]; } else if (*(ulong *)(lVar2 + 0x610) < uVar1) { *(int8 *)(lVar2 + 0x610) = 0xffffffffffffffff; } write_hook_for_undo_key(); return; } *(int8 *)*param_5 = param_5[1]; if (*(char *)((long)param_3 + 0x67e) != '\0') { _ma_unlock_key_del(param_3); } write_hook_for_undo(param_1,param_2,param_3,param_4,0); return; }
39,803
rtree_d_mbr
eloqsql/storage/myisam/rt_mbr.c
int rtree_d_mbr(HA_KEYSEG *keyseg, uchar *a, uint key_length, double *res) { for (; (int)key_length > 0; keyseg += 2) { uint32 keyseg_length; switch ((enum ha_base_keytype) keyseg->type) { case HA_KEYTYPE_INT8: RT_D_MBR_KORR(int8, mi_sint1korr, 1, (double)); break; case HA_KEYTYPE_BINARY: RT_D_MBR_KORR(uint8, mi_uint1korr, 1, (double)); break; case HA_KEYTYPE_SHORT_INT: RT_D_MBR_KORR(int16, mi_sint2korr, 2, (double)); break; case HA_KEYTYPE_USHORT_INT: RT_D_MBR_KORR(uint16, mi_uint2korr, 2, (double)); break; case HA_KEYTYPE_INT24: RT_D_MBR_KORR(int32, mi_sint3korr, 3, (double)); break; case HA_KEYTYPE_UINT24: RT_D_MBR_KORR(uint32, mi_uint3korr, 3, (double)); break; case HA_KEYTYPE_LONG_INT: RT_D_MBR_KORR(int32, mi_sint4korr, 4, (double)); break; case HA_KEYTYPE_ULONG_INT: RT_D_MBR_KORR(uint32, mi_uint4korr, 4, (double)); break; #ifdef HAVE_LONG_LONG case HA_KEYTYPE_LONGLONG: RT_D_MBR_KORR(longlong, mi_sint8korr, 8, (double)); break; case HA_KEYTYPE_ULONGLONG: RT_D_MBR_KORR(longlong, mi_sint8korr, 8, ulonglong2double); break; #endif case HA_KEYTYPE_FLOAT: RT_D_MBR_GET(float, mi_float4get, 4, (double)); break; case HA_KEYTYPE_DOUBLE: RT_D_MBR_GET(double, mi_float8get, 8, (double)); break; case HA_KEYTYPE_END: key_length = 0; break; default: return 1; } keyseg_length= keyseg->length * 2; key_length-= keyseg_length; a+= keyseg_length; } return 0; }
O3
c
rtree_d_mbr: pushq %rbp movq %rsp, %rbp pushq %rbx testl %edx, %edx jle 0xa7288 addq $0x18, %rdi leaq 0x5eec1(%rip), %r8 # 0x105ed8 movq 0x5de81(%rip), %xmm0 # 0x104ea0 movapd 0x5de89(%rip), %xmm1 # 0x104eb0 movzbl (%rdi), %r9d movl $0x1, %eax cmpq $0xe, %r9 ja 0xa728a movslq (%r8,%r9,4), %r10 addq %r8, %r10 jmpq *%r10 movl %r9d, %edx jmp 0xa7273 movq (%rsi), %rax movq 0x8(%rsi), %r9 bswapq %rax bswapq %r9 movq %rax, (%rcx) movq %r9, 0x8(%rcx) jmp 0xa726f movzbl (%rsi), %eax leal 0x1(%rax), %r9d xorps %xmm2, %xmm2 cvtsi2sd %eax, %xmm2 movsd %xmm2, (%rcx) movzbl %r9b, %eax jmp 0xa71c8 movl (%rsi), %eax movl 0x4(%rsi), %r9d bswapl %eax bswapl %r9d xorps %xmm2, %xmm2 cvtsi2sd %eax, %xmm2 jmp 0xa7104 movq (%rsi), %rax movq 0x8(%rsi), %r9 bswapq %rax bswapq %r9 jmp 0xa71df movzwl (%rsi), %eax rolw $0x8, %ax movzwl 0x2(%rsi), %r9d rolw $0x8, %r9w cwtl xorps %xmm2, %xmm2 cvtsi2sd %eax, %xmm2 movsd %xmm2, (%rcx) movswl %r9w, %eax jmp 0xa71c8 movzwl 0x1(%rsi), %eax movzwl 0x4(%rsi), %r9d rolw $0x8, %ax movzwl %ax, %eax movzbl (%rsi), %r10d shll $0x10, %r10d rolw $0x8, %r9w orl %eax, %r10d movzwl %r9w, %eax movzbl 0x3(%rsi), %r9d shll $0x10, %r9d orl %eax, %r9d xorps %xmm2, %xmm2 cvtsi2sd %r10d, %xmm2 movsd %xmm2, (%rcx) xorps %xmm2, %xmm2 cvtsi2sd %r9d, %xmm2 jmp 0xa726a movzwl (%rsi), %eax rolw $0x8, %ax movzwl 0x2(%rsi), %r9d rolw $0x8, %r9w movzwl %ax, %eax xorps %xmm2, %xmm2 cvtsi2sd %eax, %xmm2 movsd %xmm2, (%rcx) movzwl %r9w, %eax jmp 0xa71c8 movl (%rsi), %eax movl 0x4(%rsi), %r9d bswapl %eax movd %eax, %xmm2 bswapl %r9d movd %r9d, %xmm3 cvtss2sd %xmm2, %xmm2 movsd %xmm2, (%rcx) xorps %xmm2, %xmm2 cvtss2sd %xmm3, %xmm2 jmp 0xa726a movq (%rsi), %rax movq 0x8(%rsi), %r9 bswapq %rax bswapq %r9 movq %rax, %xmm2 punpckldq %xmm0, %xmm2 # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1] subpd %xmm1, %xmm2 movapd %xmm2, %xmm3 unpckhpd %xmm2, %xmm3 # xmm3 = xmm3[1],xmm2[1] addsd %xmm2, %xmm3 movsd %xmm3, (%rcx) movq %r9, %xmm2 punpckldq %xmm0, %xmm2 # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1] subpd %xmm1, %xmm2 movapd %xmm2, %xmm3 unpckhpd %xmm2, %xmm3 # xmm3 = xmm3[1],xmm2[1] addsd %xmm2, %xmm3 movsd %xmm3, 0x8(%rcx) jmp 0xa726f movsbl (%rsi), %eax leal 0x1(%rax), %r9d xorps %xmm2, %xmm2 cvtsi2sd %eax, %xmm2 movsd %xmm2, (%rcx) movsbl %r9b, %eax xorps %xmm2, %xmm2 cvtsi2sd %eax, %xmm2 jmp 0xa726a movl (%rsi), %eax movl 0x4(%rsi), %r9d bswapl %eax bswapl %r9d xorps %xmm2, %xmm2 cvtsi2sd %rax, %xmm2 movsd %xmm2, (%rcx) xorps %xmm2, %xmm2 cvtsi2sd %r9, %xmm2 jmp 0xa726a movzbl (%rsi), %r11d movl %r11d, %eax shll $0x10, %eax movzbl 0x1(%rsi), %r9d shll $0x8, %r9d movzbl 0x2(%rsi), %r10d testb %r11b, %r11b js 0xa721a orl %r10d, %eax orl %r9d, %eax jmp 0xa7225 orl %r10d, %r9d addl %r9d, %eax addl $0xff000000, %eax # imm = 0xFF000000 movzbl 0x3(%rsi), %ebx movl %ebx, %r9d shll $0x10, %r9d movzbl 0x4(%rsi), %r10d shll $0x8, %r10d movzbl 0x5(%rsi), %r11d testb %bl, %bl js 0xa724a orl %r11d, %r9d orl %r10d, %r9d jmp 0xa7257 orl %r11d, %r10d addl %r10d, %r9d addl $0xff000000, %r9d # imm = 0xFF000000 xorps %xmm2, %xmm2 cvtsi2sd %eax, %xmm2 movsd %xmm2, (%rcx) xorps %xmm2, %xmm2 cvtsi2sd %r9d, %xmm2 movsd %xmm2, 0x8(%rcx) addq $0x10, %rcx movzwl -0x4(%rdi), %eax addl %eax, %eax addq %rax, %rsi addq $0x40, %rdi subl %eax, %edx jg 0xa7027 xorl %eax, %eax popq %rbx popq %rbp retq
rtree_d_mbr: push rbp mov rbp, rsp push rbx test edx, edx jle loc_A7288 add rdi, 18h lea r8, jpt_A7041 movq xmm0, qword ptr cs:xmmword_104EA0 movapd xmm1, cs:xmmword_104EB0 loc_A7027: movzx r9d, byte ptr [rdi] mov eax, 1 cmp r9, 0Eh; switch 15 cases ja def_A7041; jumptable 00000000000A7041 default case, cases 1,7 movsxd r10, ds:(jpt_A7041 - 105ED8h)[r8+r9*4] add r10, r8 jmp r10; switch jump loc_A7044: mov edx, r9d; jumptable 00000000000A7041 case 0 jmp loc_A7273 loc_A704C: mov rax, [rsi]; jumptable 00000000000A7041 case 6 mov r9, [rsi+8] bswap rax bswap r9 mov [rcx], rax mov [rcx+8], r9 jmp loc_A726F loc_A7065: movzx eax, byte ptr [rsi]; jumptable 00000000000A7041 case 2 lea r9d, [rax+1] xorps xmm2, xmm2 cvtsi2sd xmm2, eax movsd qword ptr [rcx], xmm2 movzx eax, r9b jmp loc_A71C8 loc_A7080: mov eax, [rsi]; jumptable 00000000000A7041 case 4 mov r9d, [rsi+4] bswap eax bswap r9d xorps xmm2, xmm2 cvtsi2sd xmm2, eax jmp short loc_A7104 loc_A7094: mov rax, [rsi]; jumptable 00000000000A7041 case 10 mov r9, [rsi+8] bswap rax bswap r9 jmp loc_A71DF loc_A70A6: movzx eax, word ptr [rsi]; jumptable 00000000000A7041 case 3 rol ax, 8 movzx r9d, word ptr [rsi+2] rol r9w, 8 cwde xorps xmm2, xmm2 cvtsi2sd xmm2, eax movsd qword ptr [rcx], xmm2 movsx eax, r9w jmp loc_A71C8 loc_A70CC: movzx eax, word ptr [rsi+1]; jumptable 00000000000A7041 case 13 movzx r9d, word ptr [rsi+4] rol ax, 8 movzx eax, ax movzx r10d, byte ptr [rsi] shl r10d, 10h rol r9w, 8 or r10d, eax movzx eax, r9w movzx r9d, byte ptr [rsi+3] shl r9d, 10h or r9d, eax xorps xmm2, xmm2 cvtsi2sd xmm2, r10d loc_A7104: movsd qword ptr [rcx], xmm2 xorps xmm2, xmm2 cvtsi2sd xmm2, r9d jmp loc_A726A loc_A7115: movzx eax, word ptr [rsi]; jumptable 00000000000A7041 case 8 rol ax, 8 movzx r9d, word ptr [rsi+2] rol r9w, 8 movzx eax, ax xorps xmm2, xmm2 cvtsi2sd xmm2, eax movsd qword ptr [rcx], xmm2 movzx eax, r9w jmp loc_A71C8 loc_A713D: mov eax, [rsi]; jumptable 00000000000A7041 case 5 mov r9d, [rsi+4] bswap eax movd xmm2, eax bswap r9d movd xmm3, r9d cvtss2sd xmm2, xmm2 movsd qword ptr [rcx], xmm2 xorps xmm2, xmm2 cvtss2sd xmm2, xmm3 jmp loc_A726A loc_A7165: mov rax, [rsi]; jumptable 00000000000A7041 case 11 mov r9, [rsi+8] bswap rax bswap r9 movq xmm2, rax punpckldq xmm2, xmm0 subpd xmm2, xmm1 movapd xmm3, xmm2 unpckhpd xmm3, xmm2 addsd xmm3, xmm2 movsd qword ptr [rcx], xmm3 movq xmm2, r9 punpckldq xmm2, xmm0 subpd xmm2, xmm1 movapd xmm3, xmm2 unpckhpd xmm3, xmm2 addsd xmm3, xmm2 movsd qword ptr [rcx+8], xmm3 jmp loc_A726F loc_A71B2: movsx eax, byte ptr [rsi]; jumptable 00000000000A7041 case 14 lea r9d, [rax+1] xorps xmm2, xmm2 cvtsi2sd xmm2, eax movsd qword ptr [rcx], xmm2 movsx eax, r9b loc_A71C8: xorps xmm2, xmm2 cvtsi2sd xmm2, eax jmp loc_A726A loc_A71D4: mov eax, [rsi]; jumptable 00000000000A7041 case 9 mov r9d, [rsi+4] bswap eax bswap r9d loc_A71DF: xorps xmm2, xmm2 cvtsi2sd xmm2, rax movsd qword ptr [rcx], xmm2 xorps xmm2, xmm2 cvtsi2sd xmm2, r9 jmp short loc_A726A loc_A71F5: movzx r11d, byte ptr [rsi]; jumptable 00000000000A7041 case 12 mov eax, r11d shl eax, 10h movzx r9d, byte ptr [rsi+1] shl r9d, 8 movzx r10d, byte ptr [rsi+2] test r11b, r11b js short loc_A721A or eax, r10d or eax, r9d jmp short loc_A7225 loc_A721A: or r9d, r10d add eax, r9d add eax, 0FF000000h loc_A7225: movzx ebx, byte ptr [rsi+3] mov r9d, ebx shl r9d, 10h movzx r10d, byte ptr [rsi+4] shl r10d, 8 movzx r11d, byte ptr [rsi+5] test bl, bl js short loc_A724A or r9d, r11d or r9d, r10d jmp short loc_A7257 loc_A724A: or r10d, r11d add r9d, r10d add r9d, 0FF000000h loc_A7257: xorps xmm2, xmm2 cvtsi2sd xmm2, eax movsd qword ptr [rcx], xmm2 xorps xmm2, xmm2 cvtsi2sd xmm2, r9d loc_A726A: movsd qword ptr [rcx+8], xmm2 loc_A726F: add rcx, 10h loc_A7273: movzx eax, word ptr [rdi-4] add eax, eax add rsi, rax add rdi, 40h ; '@' sub edx, eax jg loc_A7027 loc_A7288: xor eax, eax def_A7041: pop rbx; jumptable 00000000000A7041 default case, cases 1,7 pop rbp retn
long long rtree_d_mbr(long long a1, unsigned __int8 *a2, int a3, long long a4) { _BYTE *v4; // rdi __m128i v5; // xmm0 long long result; // rax unsigned long long v7; // r9 int v8; // eax int v9; // eax int v10; // r9d double v11; // xmm2_8 int v12; // eax int v13; // r9d __int16 v14; // r9 double v15; // xmm2_8 __int16 v16; // r9 float v17; // xmm3_4 unsigned long long v18; // r9 __m128d v19; // xmm2 __m128d v20; // xmm2 int v21; // eax int v22; // eax int v23; // r9d int v24; // r10d int v25; // eax int v26; // r9d int v27; // r10d int v28; // r11d int v29; // r9d long long v30; // rax bool v31; // cc if ( a3 > 0 ) { v4 = (_BYTE *)(a1 + 24); v5 = _mm_loadl_epi64((const __m128i *)&xmmword_104EA0); while ( 2 ) { result = 1LL; switch ( *v4 ) { case 0: a3 = (unsigned __int8)*v4; goto LABEL_28; case 2: v8 = *a2; *(double *)a4 = (double)v8; v9 = (unsigned __int8)(v8 + 1); goto LABEL_16; case 3: v14 = *((_WORD *)a2 + 1); *(double *)a4 = (double)(__int16)__ROL2__(*(_WORD *)a2, 8); v9 = (__int16)__ROL2__(v14, 8); goto LABEL_16; case 4: v10 = _byteswap_ulong(*((_DWORD *)a2 + 1)); v11 = (double)(int)_byteswap_ulong(*(_DWORD *)a2); goto LABEL_11; case 5: v17 = COERCE_FLOAT(_byteswap_ulong(*((_DWORD *)a2 + 1))); *(double *)a4 = COERCE_FLOAT(_byteswap_ulong(*(_DWORD *)a2)); v15 = v17; goto LABEL_26; case 6: v7 = _byteswap_uint64(*((_QWORD *)a2 + 1)); *(_QWORD *)a4 = _byteswap_uint64(*(_QWORD *)a2); *(_QWORD *)(a4 + 8) = v7; goto LABEL_27; case 8: v16 = *((_WORD *)a2 + 1); *(double *)a4 = (double)(unsigned __int16)__ROL2__(*(_WORD *)a2, 8); v9 = (unsigned __int16)__ROL2__(v16, 8); goto LABEL_16; case 9: v12 = _byteswap_ulong(*(_DWORD *)a2); v13 = _byteswap_ulong(*((_DWORD *)a2 + 1)); goto LABEL_18; case 0xA: v12 = _byteswap_uint64(*(_QWORD *)a2); v13 = _byteswap_uint64(*((_QWORD *)a2 + 1)); LABEL_18: *(double *)a4 = (double)v12; v15 = (double)v13; goto LABEL_26; case 0xB: v18 = _byteswap_uint64(*((_QWORD *)a2 + 1)); v19 = _mm_sub_pd( (__m128d)_mm_unpacklo_epi32((__m128i)_byteswap_uint64(*(_QWORD *)a2), v5), (__m128d)xmmword_104EB0); *(double *)a4 = _mm_unpackhi_pd(v19, v19).m128d_f64[0] + v19.m128d_f64[0]; v20 = _mm_sub_pd((__m128d)_mm_unpacklo_epi32((__m128i)v18, v5), (__m128d)xmmword_104EB0); *(double *)(a4 + 8) = _mm_unpackhi_pd(v20, v20).m128d_f64[0] + v20.m128d_f64[0]; goto LABEL_27; case 0xC: v22 = *a2 << 16; v23 = a2[1] << 8; v24 = a2[2]; if ( (*a2 & 0x80u) != 0 ) v25 = (v24 | v23) + v22 - 0x1000000; else v25 = v23 | v24 | v22; v26 = a2[3] << 16; v27 = a2[4] << 8; v28 = a2[5]; if ( (a2[3] & 0x80u) != 0 ) v29 = (v28 | v27) + v26 - 0x1000000; else v29 = v27 | v28 | v26; *(double *)a4 = (double)v25; v15 = (double)v29; goto LABEL_26; case 0xD: v10 = (unsigned __int16)__ROL2__(*((_WORD *)a2 + 2), 8) | (a2[3] << 16); v11 = (double)((unsigned __int16)__ROL2__(*(_WORD *)(a2 + 1), 8) | (*a2 << 16)); LABEL_11: *(double *)a4 = v11; v15 = (double)v10; goto LABEL_26; case 0xE: v21 = (char)*a2; *(double *)a4 = (double)v21; v9 = (char)(v21 + 1); LABEL_16: v15 = (double)v9; LABEL_26: *(double *)(a4 + 8) = v15; LABEL_27: a4 += 16LL; LABEL_28: v30 = 2 * (unsigned int)*((unsigned __int16 *)v4 - 2); a2 += v30; v4 += 64; v31 = a3 <= (int)v30; a3 -= v30; if ( v31 ) return 0LL; continue; default: return result; } } } return 0LL; }
rtree_d_mbr: PUSH RBP MOV RBP,RSP PUSH RBX TEST EDX,EDX JLE 0x001a7288 ADD RDI,0x18 LEA R8,[0x205ed8] MOVQ XMM0,qword ptr [0x00204ea0] MOVAPD XMM1,xmmword ptr [0x00204eb0] LAB_001a7027: MOVZX R9D,byte ptr [RDI] MOV EAX,0x1 CMP R9,0xe JA 0x001a728a MOVSXD R10,dword ptr [R8 + R9*0x4] ADD R10,R8 switchD: JMP R10 caseD_0: MOV EDX,R9D JMP 0x001a7273 caseD_6: MOV RAX,qword ptr [RSI] MOV R9,qword ptr [RSI + 0x8] BSWAP RAX BSWAP R9 MOV qword ptr [RCX],RAX MOV qword ptr [RCX + 0x8],R9 JMP 0x001a726f caseD_2: MOVZX EAX,byte ptr [RSI] LEA R9D,[RAX + 0x1] XORPS XMM2,XMM2 CVTSI2SD XMM2,EAX MOVSD qword ptr [RCX],XMM2 MOVZX EAX,R9B JMP 0x001a71c8 caseD_4: MOV EAX,dword ptr [RSI] MOV R9D,dword ptr [RSI + 0x4] BSWAP EAX BSWAP R9D XORPS XMM2,XMM2 CVTSI2SD XMM2,EAX JMP 0x001a7104 caseD_a: MOV RAX,qword ptr [RSI] MOV R9,qword ptr [RSI + 0x8] BSWAP RAX BSWAP R9 JMP 0x001a71df caseD_3: MOVZX EAX,word ptr [RSI] ROL AX,0x8 MOVZX R9D,word ptr [RSI + 0x2] ROL R9W,0x8 CWDE XORPS XMM2,XMM2 CVTSI2SD XMM2,EAX MOVSD qword ptr [RCX],XMM2 MOVSX EAX,R9W JMP 0x001a71c8 caseD_d: MOVZX EAX,word ptr [RSI + 0x1] MOVZX R9D,word ptr [RSI + 0x4] ROL AX,0x8 MOVZX EAX,AX MOVZX R10D,byte ptr [RSI] SHL R10D,0x10 ROL R9W,0x8 OR R10D,EAX MOVZX EAX,R9W MOVZX R9D,byte ptr [RSI + 0x3] SHL R9D,0x10 OR R9D,EAX XORPS XMM2,XMM2 CVTSI2SD XMM2,R10D LAB_001a7104: MOVSD qword ptr [RCX],XMM2 XORPS XMM2,XMM2 CVTSI2SD XMM2,R9D JMP 0x001a726a caseD_8: MOVZX EAX,word ptr [RSI] ROL AX,0x8 MOVZX R9D,word ptr [RSI + 0x2] ROL R9W,0x8 MOVZX EAX,AX XORPS XMM2,XMM2 CVTSI2SD XMM2,EAX MOVSD qword ptr [RCX],XMM2 MOVZX EAX,R9W JMP 0x001a71c8 caseD_5: MOV EAX,dword ptr [RSI] MOV R9D,dword ptr [RSI + 0x4] BSWAP EAX MOVD XMM2,EAX BSWAP R9D MOVD XMM3,R9D CVTSS2SD XMM2,XMM2 MOVSD qword ptr [RCX],XMM2 XORPS XMM2,XMM2 CVTSS2SD XMM2,XMM3 JMP 0x001a726a caseD_b: MOV RAX,qword ptr [RSI] MOV R9,qword ptr [RSI + 0x8] BSWAP RAX BSWAP R9 MOVQ XMM2,RAX PUNPCKLDQ XMM2,XMM0 SUBPD XMM2,XMM1 MOVAPD XMM3,XMM2 UNPCKHPD XMM3,XMM2 ADDSD XMM3,XMM2 MOVSD qword ptr [RCX],XMM3 MOVQ XMM2,R9 PUNPCKLDQ XMM2,XMM0 SUBPD XMM2,XMM1 MOVAPD XMM3,XMM2 UNPCKHPD XMM3,XMM2 ADDSD XMM3,XMM2 MOVSD qword ptr [RCX + 0x8],XMM3 JMP 0x001a726f caseD_e: MOVSX EAX,byte ptr [RSI] LEA R9D,[RAX + 0x1] XORPS XMM2,XMM2 CVTSI2SD XMM2,EAX MOVSD qword ptr [RCX],XMM2 MOVSX EAX,R9B LAB_001a71c8: XORPS XMM2,XMM2 CVTSI2SD XMM2,EAX JMP 0x001a726a caseD_9: MOV EAX,dword ptr [RSI] MOV R9D,dword ptr [RSI + 0x4] BSWAP EAX BSWAP R9D LAB_001a71df: XORPS XMM2,XMM2 CVTSI2SD XMM2,RAX MOVSD qword ptr [RCX],XMM2 XORPS XMM2,XMM2 CVTSI2SD XMM2,R9 JMP 0x001a726a caseD_c: MOVZX R11D,byte ptr [RSI] MOV EAX,R11D SHL EAX,0x10 MOVZX R9D,byte ptr [RSI + 0x1] SHL R9D,0x8 MOVZX R10D,byte ptr [RSI + 0x2] TEST R11B,R11B JS 0x001a721a OR EAX,R10D OR EAX,R9D JMP 0x001a7225 LAB_001a721a: OR R9D,R10D ADD EAX,R9D ADD EAX,0xff000000 LAB_001a7225: MOVZX EBX,byte ptr [RSI + 0x3] MOV R9D,EBX SHL R9D,0x10 MOVZX R10D,byte ptr [RSI + 0x4] SHL R10D,0x8 MOVZX R11D,byte ptr [RSI + 0x5] TEST BL,BL JS 0x001a724a OR R9D,R11D OR R9D,R10D JMP 0x001a7257 LAB_001a724a: OR R10D,R11D ADD R9D,R10D ADD R9D,0xff000000 LAB_001a7257: XORPS XMM2,XMM2 CVTSI2SD XMM2,EAX MOVSD qword ptr [RCX],XMM2 XORPS XMM2,XMM2 CVTSI2SD XMM2,R9D LAB_001a726a: MOVSD qword ptr [RCX + 0x8],XMM2 LAB_001a726f: ADD RCX,0x10 LAB_001a7273: MOVZX EAX,word ptr [RDI + -0x4] ADD EAX,EAX ADD RSI,RAX ADD RDI,0x40 SUB EDX,EAX JG 0x001a7027 LAB_001a7288: XOR EAX,EAX caseD_1: POP RBX POP RBP RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ int8 rtree_d_mbr(long param_1,ulong *param_2,uint param_3,double *param_4) { ushort *puVar1; ushort uVar2; int4 uVar3; int4 uVar4; double dVar5; double dVar6; uint uVar7; int8 uVar8; ulong uVar9; ulong uVar10; byte *pbVar11; uint uVar12; ulong uVar13; ulong uVar14; bool bVar15; double dVar16; int1 auVar17 [16]; int1 auVar18 [16]; dVar6 = _UNK_00204eb8; dVar5 = _DAT_00204eb0; uVar4 = DAT_00204ea0._4_4_; uVar3 = (int4)DAT_00204ea0; if (0 < (int)param_3) { pbVar11 = (byte *)(param_1 + 0x18); do { uVar8 = 1; switch(*pbVar11) { case 0: param_3 = (uint)*pbVar11; goto LAB_001a7273; default: goto switchD_001a7041_caseD_1; case 2: uVar9 = *param_2; *param_4 = (double)(byte)uVar9; uVar7 = (byte)uVar9 + 1 & 0xff; goto LAB_001a71c8; case 3: uVar2 = *(ushort *)((long)param_2 + 2); *param_4 = (double)(int)(short)((ushort)*param_2 << 8 | (ushort)*param_2 >> 8); uVar7 = (uint)(short)(uVar2 << 8 | uVar2 >> 8); goto LAB_001a71c8; case 4: uVar7 = (uint)*param_2; uVar12 = *(uint *)((long)param_2 + 4); uVar7 = uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 | uVar7 << 0x18; uVar12 = uVar12 >> 0x18 | (uVar12 & 0xff0000) >> 8 | (uVar12 & 0xff00) << 8 | uVar12 << 0x18 ; goto LAB_001a7104; case 5: uVar7 = (uint)*param_2; uVar12 = *(uint *)((long)param_2 + 4); *param_4 = (double)(float)(uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 | uVar7 << 0x18); dVar16 = (double)(float)(uVar12 >> 0x18 | (uVar12 & 0xff0000) >> 8 | (uVar12 & 0xff00) << 8 | uVar12 << 0x18); break; case 6: uVar9 = *param_2; uVar13 = param_2[1]; *param_4 = (double)(uVar9 >> 0x38 | (uVar9 & 0xff000000000000) >> 0x28 | (uVar9 & 0xff0000000000) >> 0x18 | (uVar9 & 0xff00000000) >> 8 | (uVar9 & 0xff000000) << 8 | (uVar9 & 0xff0000) << 0x18 | (uVar9 & 0xff00) << 0x28 | uVar9 << 0x38); param_4[1] = (double)(uVar13 >> 0x38 | (uVar13 & 0xff000000000000) >> 0x28 | (uVar13 & 0xff0000000000) >> 0x18 | (uVar13 & 0xff00000000) >> 8 | (uVar13 & 0xff000000) << 8 | (uVar13 & 0xff0000) << 0x18 | (uVar13 & 0xff00) << 0x28 | uVar13 << 0x38); goto LAB_001a726f; case 8: uVar2 = *(ushort *)((long)param_2 + 2); *param_4 = (double)(ushort)((ushort)*param_2 << 8 | (ushort)*param_2 >> 8); uVar7 = (uint)(ushort)(uVar2 << 8 | uVar2 >> 8); goto LAB_001a71c8; case 9: uVar7 = (uint)*param_2; uVar12 = *(uint *)((long)param_2 + 4); uVar9 = (ulong)(uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 | uVar7 << 0x18); uVar13 = (ulong)(uVar12 >> 0x18 | (uVar12 & 0xff0000) >> 8 | (uVar12 & 0xff00) << 8 | uVar12 << 0x18); goto LAB_001a71df; case 10: uVar9 = *param_2; uVar13 = param_2[1]; uVar9 = uVar9 >> 0x38 | (uVar9 & 0xff000000000000) >> 0x28 | (uVar9 & 0xff0000000000) >> 0x18 | (uVar9 & 0xff00000000) >> 8 | (uVar9 & 0xff000000) << 8 | (uVar9 & 0xff0000) << 0x18 | (uVar9 & 0xff00) << 0x28 | uVar9 << 0x38; uVar13 = uVar13 >> 0x38 | (uVar13 & 0xff000000000000) >> 0x28 | (uVar13 & 0xff0000000000) >> 0x18 | (uVar13 & 0xff00000000) >> 8 | (uVar13 & 0xff000000) << 8 | (uVar13 & 0xff0000) << 0x18 | (uVar13 & 0xff00) << 0x28 | uVar13 << 0x38; LAB_001a71df: *param_4 = (double)(long)uVar9; dVar16 = (double)(long)uVar13; break; case 0xb: uVar9 = *param_2; uVar13 = param_2[1]; uVar10 = (uVar9 & 0xff000000) << 8 | (uVar9 & 0xff0000) << 0x18 | (uVar9 & 0xff00) << 0x28 | uVar9 << 0x38; uVar14 = (uVar13 & 0xff000000) << 8 | (uVar13 & 0xff0000) << 0x18 | (uVar13 & 0xff00) << 0x28 | uVar13 << 0x38; auVar17._8_4_ = (int)(uVar10 >> 0x20); auVar17._0_8_ = uVar10; auVar17._12_4_ = uVar4; *param_4 = (auVar17._8_8_ - dVar6) + ((double)CONCAT44(uVar3,(uint)(byte)(uVar9 >> 0x38) | ((uint)(uVar9 >> 0x20) & 0xff0000) >> 8 | (uint)(uVar9 >> 0x18) & 0xff0000 | (uint)(uVar9 >> 8) & 0xff000000) - dVar5); auVar18._8_4_ = (int)(uVar14 >> 0x20); auVar18._0_8_ = uVar14; auVar18._12_4_ = uVar4; param_4[1] = (auVar18._8_8_ - dVar6) + ((double)CONCAT44(uVar3,(uint)(byte)(uVar13 >> 0x38) | ((uint)(uVar13 >> 0x20) & 0xff0000) >> 8 | (uint)(uVar13 >> 0x18) & 0xff0000 | (uint)(uVar13 >> 8) & 0xff000000) - dVar5); goto LAB_001a726f; case 0xc: uVar7 = (uint)(byte)*param_2 * 0x10000; if ((char)(byte)*param_2 < '\0') { uVar7 = (uVar7 + CONCAT11(*(byte *)((long)param_2 + 1),*(byte *)((long)param_2 + 2))) - 0x1000000; } else { uVar7 = uVar7 | *(byte *)((long)param_2 + 2) | (uint)*(byte *)((long)param_2 + 1) << 8; } uVar12 = (uint)*(byte *)((long)param_2 + 3) * 0x10000; if ((char)*(byte *)((long)param_2 + 3) < '\0') { uVar12 = (uVar12 + CONCAT11(*(byte *)((long)param_2 + 4),*(byte *)((long)param_2 + 5))) - 0x1000000; } else { uVar12 = uVar12 | *(byte *)((long)param_2 + 5) | (uint)*(byte *)((long)param_2 + 4) << 8; } *param_4 = (double)(int)uVar7; dVar16 = (double)(int)uVar12; break; case 0xd: uVar7 = (uint)CONCAT12((byte)*param_2, *(ushort *)((long)param_2 + 1) << 8 | *(ushort *)((long)param_2 + 1) >> 8); uVar12 = (uint)CONCAT12(*(byte *)((long)param_2 + 3), *(ushort *)((long)param_2 + 4) << 8 | *(ushort *)((long)param_2 + 4) >> 8); LAB_001a7104: *param_4 = (double)(int)uVar7; dVar16 = (double)(int)uVar12; break; case 0xe: uVar9 = *param_2; *param_4 = (double)(int)(char)(byte)uVar9; uVar7 = (uint)(char)((byte)uVar9 + 1); LAB_001a71c8: dVar16 = (double)(int)uVar7; } param_4[1] = dVar16; LAB_001a726f: param_4 = param_4 + 2; LAB_001a7273: puVar1 = (ushort *)(pbVar11 + -4); uVar7 = (uint)*puVar1 * 2; param_2 = (ulong *)((long)param_2 + (ulong)uVar7); pbVar11 = pbVar11 + 0x40; bVar15 = SBORROW4(param_3,uVar7); param_3 = param_3 + (uint)*puVar1 * -2; } while (param_3 != 0 && bVar15 == (int)param_3 < 0); } uVar8 = 0; switchD_001a7041_caseD_1: return uVar8; }
39,804
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>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t)
monkey531[P]llama/common/json.hpp
void destroy(value_t t) { if ( (t == value_t::object && object == nullptr) || (t == value_t::array && array == nullptr) || (t == value_t::string && string == nullptr) || (t == value_t::binary && binary == nullptr) ) { //not initialized (e.g. due to exception in the ctor) return; } if (t == value_t::array || t == value_t::object) { // flatten the current json_value to a heap-allocated stack std::vector<basic_json> stack; // move the top-level items to stack if (t == value_t::array) { stack.reserve(array->size()); std::move(array->begin(), array->end(), std::back_inserter(stack)); } else { stack.reserve(object->size()); for (auto&& it : *object) { stack.push_back(std::move(it.second)); } } while (!stack.empty()) { // move the last item to local variable to be processed basic_json current_item(std::move(stack.back())); stack.pop_back(); // if current_item is array/object, move // its children to the stack to be processed later if (current_item.is_array()) { std::move(current_item.m_data.m_value.array->begin(), current_item.m_data.m_value.array->end(), std::back_inserter(stack)); current_item.m_data.m_value.array->clear(); } else if (current_item.is_object()) { for (auto&& it : *current_item.m_data.m_value.object) { stack.push_back(std::move(it.second)); } current_item.m_data.m_value.object->clear(); } // it's now safe that current_item get destructed // since it doesn't have any children } } switch (t) { case value_t::object: { AllocatorType<object_t> alloc; std::allocator_traits<decltype(alloc)>::destroy(alloc, object); std::allocator_traits<decltype(alloc)>::deallocate(alloc, object, 1); break; } case value_t::array: { AllocatorType<array_t> alloc; std::allocator_traits<decltype(alloc)>::destroy(alloc, array); std::allocator_traits<decltype(alloc)>::deallocate(alloc, array, 1); break; } case value_t::string: { AllocatorType<string_t> alloc; std::allocator_traits<decltype(alloc)>::destroy(alloc, string); std::allocator_traits<decltype(alloc)>::deallocate(alloc, string, 1); break; } case value_t::binary: { AllocatorType<binary_t> alloc; std::allocator_traits<decltype(alloc)>::destroy(alloc, binary); std::allocator_traits<decltype(alloc)>::deallocate(alloc, binary, 1); break; } case value_t::null: case value_t::boolean: case value_t::number_integer: case value_t::number_unsigned: case value_t::number_float: case value_t::discarded: default: { break; } } }
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>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t): subq $0x128, %rsp # imm = 0x128 movb %sil, %al movq %rdi, 0x120(%rsp) movb %al, 0x11f(%rsp) movq 0x120(%rsp), %rax movq %rax, 0x50(%rsp) cmpb $0x1, 0x11f(%rsp) jne 0xb0f9b movq 0x50(%rsp), %rax cmpq $0x0, (%rax) je 0xb0fda cmpb $0x2, 0x11f(%rsp) jne 0xb0fb0 movq 0x50(%rsp), %rax cmpq $0x0, (%rax) je 0xb0fda cmpb $0x3, 0x11f(%rsp) jne 0xb0fc5 movq 0x50(%rsp), %rax cmpq $0x0, (%rax) je 0xb0fda cmpb $0x8, 0x11f(%rsp) jne 0xb0fdf movq 0x50(%rsp), %rax cmpq $0x0, (%rax) jne 0xb0fdf jmp 0xb1537 cmpb $0x2, 0x11f(%rsp) je 0xb0ff7 cmpb $0x1, 0x11f(%rsp) jne 0xb1360 leaq 0x100(%rsp), %rdi callq 0x9e820 cmpb $0x2, 0x11f(%rsp) jne 0xb10ce movq 0x50(%rsp), %rax movq (%rax), %rdi callq 0xac5e0 movq %rax, %rsi leaq 0x100(%rsp), %rdi callq 0xb1550 jmp 0xb1031 movq 0x50(%rsp), %rax movq (%rax), %rdi callq 0xac4a0 movq %rax, %rcx movq 0x50(%rsp), %rax movq %rcx, 0xe8(%rsp) movq (%rax), %rdi callq 0xac310 movq %rax, 0xe0(%rsp) leaq 0x100(%rsp), %rdi callq 0xb16d0 movq %rax, 0x48(%rsp) jmp 0xb1072 movq 0x48(%rsp), %rax movq %rax, 0xd8(%rsp) movq 0xe8(%rsp), %rdi movq 0xe0(%rsp), %rsi movq 0xd8(%rsp), %rdx callq 0xb1660 movq %rax, 0x40(%rsp) jmp 0xb10a3 movq 0x40(%rsp), %rax movq %rax, 0xd0(%rsp) jmp 0xb1185 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf8(%rsp) movl %eax, 0xf4(%rsp) jmp 0xb134e movq 0x50(%rsp), %rax movq (%rax), %rdi callq 0xad1e0 movq %rax, %rsi leaq 0x100(%rsp), %rdi callq 0xb1550 jmp 0xb10ed movq 0x50(%rsp), %rax movq (%rax), %rax movq %rax, 0xc8(%rsp) movq 0xc8(%rsp), %rdi callq 0xb1700 movq %rax, 0xc0(%rsp) movq 0xc8(%rsp), %rdi callq 0xb1730 movq %rax, 0xb8(%rsp) leaq 0xc0(%rsp), %rdi leaq 0xb8(%rsp), %rsi callq 0xb1760 testb $0x1, %al jne 0xb1142 jmp 0xb1183 leaq 0xc0(%rsp), %rdi callq 0xb17a0 movq %rax, 0xb0(%rsp) movq 0xb0(%rsp), %rsi addq $0x20, %rsi leaq 0x100(%rsp), %rdi callq 0xb17b0 jmp 0xb1172 jmp 0xb1174 leaq 0xc0(%rsp), %rdi callq 0xb17e0 jmp 0xb1127 jmp 0xb1185 jmp 0xb1187 leaq 0x100(%rsp), %rdi callq 0xb1800 xorb $-0x1, %al testb $0x1, %al jne 0xb119f jmp 0xb133f leaq 0x100(%rsp), %rdi callq 0xabfd0 movq %rax, %rsi leaq 0xa0(%rsp), %rdi callq 0xabe60 leaq 0x100(%rsp), %rdi callq 0xb1850 leaq 0xa0(%rsp), %rdi callq 0xabf10 testb $0x1, %al jne 0xb11df jmp 0xb1293 movq 0xa8(%rsp), %rdi callq 0xac4a0 movq %rax, 0x98(%rsp) movq 0xa8(%rsp), %rdi callq 0xac310 movq %rax, 0x90(%rsp) leaq 0x100(%rsp), %rdi callq 0xb16d0 movq %rax, 0x38(%rsp) jmp 0xb121d movq 0x38(%rsp), %rax movq %rax, 0x88(%rsp) movq 0x98(%rsp), %rdi movq 0x90(%rsp), %rsi movq 0x88(%rsp), %rdx callq 0xb1660 movq %rax, 0x30(%rsp) jmp 0xb124e movq 0x30(%rsp), %rax movq %rax, 0x80(%rsp) movq 0xa8(%rsp), %rdi callq 0xb1870 jmp 0xb132d movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf8(%rsp) movl %eax, 0xf4(%rsp) leaq 0xa0(%rsp), %rdi callq 0x9cbb0 jmp 0xb134e leaq 0xa0(%rsp), %rdi callq 0xabf30 testb $0x1, %al jne 0xb12a9 jmp 0xb132b movq 0xa8(%rsp), %rax movq %rax, 0x78(%rsp) movq 0x78(%rsp), %rdi callq 0xb1700 movq %rax, 0x70(%rsp) movq 0x78(%rsp), %rdi callq 0xb1730 movq %rax, 0x68(%rsp) leaq 0x70(%rsp), %rdi leaq 0x68(%rsp), %rsi callq 0xb1760 testb $0x1, %al jne 0xb12e9 jmp 0xb131e leaq 0x70(%rsp), %rdi callq 0xb17a0 movq %rax, 0x60(%rsp) movq 0x60(%rsp), %rsi addq $0x20, %rsi leaq 0x100(%rsp), %rdi callq 0xb17b0 jmp 0xb1310 jmp 0xb1312 leaq 0x70(%rsp), %rdi callq 0xb17e0 jmp 0xb12d4 movq 0xa8(%rsp), %rdi callq 0xb1890 jmp 0xb132d leaq 0xa0(%rsp), %rdi callq 0x9cbb0 jmp 0xb1187 leaq 0x100(%rsp), %rdi callq 0xb18b0 jmp 0xb1360 leaq 0x100(%rsp), %rdi callq 0xb18b0 jmp 0xb153f movzbl 0x11f(%rsp), %eax movq %rax, 0x28(%rsp) subq $0x9, %rax ja 0xb1535 movq 0x28(%rsp), %rax leaq 0x153829(%rip), %rcx # 0x204bac movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax leaq 0x5f(%rsp), %rdi movq %rdi, 0x20(%rsp) callq 0x9ddd0 movq 0x50(%rsp), %rax movq 0x20(%rsp), %rdi movq (%rax), %rsi callq 0xb1910 movq 0x50(%rsp), %rax movq 0x20(%rsp), %rdi movq (%rax), %rsi movl $0x1, %edx callq 0x9e420 jmp 0xb13c6 leaq 0x5f(%rsp), %rdi callq 0x9df40 jmp 0xb1537 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf8(%rsp) movl %eax, 0xf4(%rsp) leaq 0x5f(%rsp), %rdi callq 0x9df40 jmp 0xb153f leaq 0x5e(%rsp), %rdi movq %rdi, 0x18(%rsp) callq 0x9e490 movq 0x50(%rsp), %rax movq 0x18(%rsp), %rdi movq (%rax), %rsi callq 0xb1940 movq 0x50(%rsp), %rax movq 0x18(%rsp), %rdi movq (%rax), %rsi movl $0x1, %edx callq 0x9eac0 jmp 0xb1432 leaq 0x5e(%rsp), %rdi callq 0x9e600 jmp 0xb1537 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf8(%rsp) movl %eax, 0xf4(%rsp) leaq 0x5e(%rsp), %rdi callq 0x9e600 jmp 0xb153f leaq 0x5d(%rsp), %rdi movq %rdi, 0x10(%rsp) callq 0x612d0 movq 0x50(%rsp), %rax movq 0x10(%rsp), %rdi movq (%rax), %rsi callq 0x8adb0 movq 0x50(%rsp), %rax movq 0x10(%rsp), %rdi movq (%rax), %rsi movl $0x1, %edx callq 0x61bb0 jmp 0xb149e leaq 0x5d(%rsp), %rdi callq 0x61370 jmp 0xb1537 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf8(%rsp) movl %eax, 0xf4(%rsp) leaq 0x5d(%rsp), %rdi callq 0x61370 jmp 0xb153f leaq 0x5c(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0x9f030 movq 0x50(%rsp), %rax movq 0x8(%rsp), %rdi movq (%rax), %rsi callq 0xb1970 movq 0x50(%rsp), %rax movq 0x8(%rsp), %rdi movq (%rax), %rsi movl $0x1, %edx callq 0x9f680 jmp 0xb1507 leaq 0x5c(%rsp), %rdi callq 0x9f1a0 jmp 0xb1537 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf8(%rsp) movl %eax, 0xf4(%rsp) leaq 0x5c(%rsp), %rdi callq 0x9f1a0 jmp 0xb153f jmp 0xb1535 jmp 0xb1537 addq $0x128, %rsp # imm = 0x128 retq movq 0xf8(%rsp), %rdi callq 0x59b80 nopl (%rax)
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10json_value7destroyENS0_6detail7value_tE: sub rsp, 128h mov al, sil mov [rsp+128h+var_8], rdi mov [rsp+128h+var_9], al mov rax, [rsp+128h+var_8] mov [rsp+128h+var_D8], rax cmp [rsp+128h+var_9], 1 jnz short loc_B0F9B mov rax, [rsp+128h+var_D8] cmp qword ptr [rax], 0 jz short loc_B0FDA loc_B0F9B: cmp [rsp+128h+var_9], 2 jnz short loc_B0FB0 mov rax, [rsp+128h+var_D8] cmp qword ptr [rax], 0 jz short loc_B0FDA loc_B0FB0: cmp [rsp+128h+var_9], 3 jnz short loc_B0FC5 mov rax, [rsp+128h+var_D8] cmp qword ptr [rax], 0 jz short loc_B0FDA loc_B0FC5: cmp [rsp+128h+var_9], 8 jnz short loc_B0FDF mov rax, [rsp+128h+var_D8] cmp qword ptr [rax], 0 jnz short loc_B0FDF loc_B0FDA: jmp loc_B1537 loc_B0FDF: cmp [rsp+128h+var_9], 2 jz short loc_B0FF7 cmp [rsp+128h+var_9], 1 jnz loc_B1360 loc_B0FF7: lea rdi, [rsp+128h+var_28] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EEC2Ev; 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>>::vector(void) cmp [rsp+128h+var_9], 2 jnz loc_B10CE mov rax, [rsp+128h+var_D8] mov rdi, [rax] call _ZNKSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE4sizeEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::size(void) mov rsi, rax lea rdi, [rsp+128h+var_28] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE7reserveEm; 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>>::reserve(ulong) jmp short $+2 loc_B1031: mov rax, [rsp+128h+var_D8] mov rdi, [rax] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE5beginEv; 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>>::begin(void) mov rcx, rax mov rax, [rsp+128h+var_D8] mov [rsp+128h+var_40], rcx mov rdi, [rax] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE3endEv; 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>>::end(void) mov [rsp+128h+var_48], rax lea rdi, [rsp+128h+var_28] call _ZSt13back_inserterISt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES0_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES0_IhSaIhEEvEESaISE_EEESt20back_insert_iteratorIT_ERSI_; std::back_inserter<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>(std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>&) mov [rsp+128h+var_E0], rax jmp short $+2 loc_B1072: mov rax, [rsp+128h+var_E0] mov [rsp+128h+var_50], rax mov rdi, [rsp+128h+var_40] mov rsi, [rsp+128h+var_48] mov rdx, [rsp+128h+var_50] call _ZSt4moveIN9__gnu_cxx17__normal_iteratorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEES6_ISG_SaISG_EEEESt20back_insert_iteratorISJ_EET0_T_SO_SN_; std::move<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,std::back_insert_iterator<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>>>>(__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,std::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>) mov [rsp+128h+var_E8], rax jmp short $+2 loc_B10A3: mov rax, [rsp+128h+var_E8] mov [rsp+128h+var_58], rax jmp loc_B1185 mov rcx, rax mov eax, edx mov [rsp+arg_F0], rcx mov [rsp+arg_EC], eax jmp loc_B134E loc_B10CE: mov rax, [rsp+128h+var_D8] mov rdi, [rax] call _ZNKSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE4sizeEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::size(void) mov rsi, rax lea rdi, [rsp+128h+var_28] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE7reserveEm; 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>>::reserve(ulong) jmp short $+2 loc_B10ED: mov rax, [rsp+128h+var_D8] mov rax, [rax] mov [rsp+128h+var_60], rax mov rdi, [rsp+128h+var_60] call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE5beginEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::begin(void) mov [rsp+128h+var_68], rax mov rdi, [rsp+128h+var_60] call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE3endEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::end(void) mov [rsp+128h+var_70], rax loc_B1127: lea rdi, [rsp+128h+var_68] lea rsi, [rsp+128h+var_70] call _ZN9__gnu_cxxneIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbRKNS_17__normal_iteratorIT_T0_EESR_; __gnu_cxx::operator!=<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>(__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&,__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&) test al, 1 jnz short loc_B1142 jmp short loc_B1183 loc_B1142: lea rdi, [rsp+128h+var_68] call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEdeEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator*(void) mov [rsp+128h+var_78], rax mov rsi, [rsp+128h+var_78] add rsi, 20h ; ' ' lea rdi, [rsp+128h+var_28] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE9push_backEOSD_; 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>>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&) jmp short $+2 loc_B1172: jmp short $+2 loc_B1174: lea rdi, [rsp+128h+var_68] call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEppEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator++(void) jmp short loc_B1127 loc_B1183: jmp short $+2 loc_B1185: jmp short $+2 loc_B1187: lea rdi, [rsp+128h+var_28] call _ZNKSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE5emptyEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::empty(void) xor al, 0FFh test al, 1 jnz short loc_B119F jmp loc_B133F loc_B119F: lea rdi, [rsp+128h+var_28] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::back(void) mov rsi, rax lea rdi, [rsp+128h+var_88] 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>&&) lea rdi, [rsp+128h+var_28] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE8pop_backEv; 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>>::pop_back(void) lea rdi, [rsp+128h+var_88] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8is_arrayEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_array(void) test al, 1 jnz short loc_B11DF jmp loc_B1293 loc_B11DF: mov rdi, [rsp+128h+var_80] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE5beginEv; 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>>::begin(void) mov [rsp+128h+var_90], rax mov rdi, [rsp+128h+var_80] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE3endEv; 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>>::end(void) mov [rsp+128h+var_98], rax lea rdi, [rsp+128h+var_28] call _ZSt13back_inserterISt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES0_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES0_IhSaIhEEvEESaISE_EEESt20back_insert_iteratorIT_ERSI_; std::back_inserter<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>(std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>&) mov [rsp+128h+var_F0], rax jmp short $+2 loc_B121D: mov rax, [rsp+128h+var_F0] mov [rsp+128h+var_A0], rax mov rdi, [rsp+128h+var_90] mov rsi, [rsp+128h+var_98] mov rdx, [rsp+128h+var_A0] call _ZSt4moveIN9__gnu_cxx17__normal_iteratorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEES6_ISG_SaISG_EEEESt20back_insert_iteratorISJ_EET0_T_SO_SN_; std::move<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,std::back_insert_iterator<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>>>>(__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,std::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>) mov [rsp+128h+var_F8], rax jmp short $+2 loc_B124E: mov rax, [rsp+128h+var_F8] mov [rsp+128h+var_A8], rax mov rdi, [rsp+128h+var_80] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE5clearEv; 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>>::clear(void) jmp loc_B132D mov rcx, rax mov eax, edx mov [rsp+arg_F0], rcx mov [rsp+arg_EC], eax lea rdi, [rsp+arg_98] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() jmp loc_B134E loc_B1293: lea rdi, [rsp+128h+var_88] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_objectEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_object(void) test al, 1 jnz short loc_B12A9 jmp loc_B132B loc_B12A9: mov rax, [rsp+128h+var_80] mov [rsp+128h+var_B0], rax mov rdi, [rsp+128h+var_B0] call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE5beginEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::begin(void) mov [rsp+128h+var_B8], rax mov rdi, [rsp+128h+var_B0] call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE3endEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::end(void) mov [rsp+128h+var_C0], rax loc_B12D4: lea rdi, [rsp+128h+var_B8] lea rsi, [rsp+128h+var_C0] call _ZN9__gnu_cxxneIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbRKNS_17__normal_iteratorIT_T0_EESR_; __gnu_cxx::operator!=<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>(__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&,__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&) test al, 1 jnz short loc_B12E9 jmp short loc_B131E loc_B12E9: lea rdi, [rsp+128h+var_B8] call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEdeEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator*(void) mov [rsp+128h+var_C8], rax mov rsi, [rsp+128h+var_C8] add rsi, 20h ; ' ' lea rdi, [rsp+128h+var_28] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE9push_backEOSD_; 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>>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&) jmp short $+2 loc_B1310: jmp short $+2 loc_B1312: lea rdi, [rsp+128h+var_B8] call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEppEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator++(void) jmp short loc_B12D4 loc_B131E: mov rdi, [rsp+128h+var_80] call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE5clearEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::clear(void) loc_B132B: jmp short $+2 loc_B132D: lea rdi, [rsp+128h+var_88] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() jmp loc_B1187 loc_B133F: lea rdi, [rsp+128h+var_28] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; 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>>::~vector() jmp short loc_B1360 loc_B134E: lea rdi, [rsp+arg_F8] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; 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>>::~vector() jmp loc_B153F loc_B1360: movzx eax, [rsp+128h+var_9] mov [rsp+128h+var_100], rax sub rax, 9; switch 10 cases ja def_B138A; jumptable 00000000000B138A default case mov rax, [rsp+128h+var_100] lea rcx, jpt_B138A movsxd rax, ds:(jpt_B138A - 204BACh)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_B138C: lea rdi, [rsp+128h+var_C9]; jumptable 00000000000B138A case 1 mov [rsp+128h+var_108], rdi call _ZNSaIN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEEEEC2Ev; std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>::allocator(void) mov rax, [rsp+128h+var_D8] mov rdi, [rsp+128h+var_108] mov rsi, [rax] call _ZNSt16allocator_traitsISaIN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS1_10basic_jsonIS2_St6vectorS8_blmdSaNS1_14adl_serializerESA_IhSaIhEEvEESt4lessIvESaISt4pairIKS8_SE_EEEEEE7destroyISL_EEvRSM_PT_; std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>>::destroy<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>(std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>&,nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> *) mov rax, [rsp+128h+var_D8] mov rdi, [rsp+128h+var_108] mov rsi, [rax] mov edx, 1 call _ZNSt16allocator_traitsISaIN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS1_10basic_jsonIS2_St6vectorS8_blmdSaNS1_14adl_serializerESA_IhSaIhEEvEESt4lessIvESaISt4pairIKS8_SE_EEEEEE10deallocateERSM_PSL_m; std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>>::deallocate(std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>&,nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>*,ulong) jmp short $+2 loc_B13C6: lea rdi, [rsp+128h+var_C9] call _ZNSaIN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEEEED2Ev; std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>::~allocator() jmp loc_B1537 mov rcx, rax mov eax, edx mov [rsp+arg_F0], rcx mov [rsp+arg_EC], eax lea rdi, [rsp+arg_57] call _ZNSaIN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEEEED2Ev; std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>::~allocator() jmp loc_B153F loc_B13F8: lea rdi, [rsp+128h+var_CA]; jumptable 00000000000B138A case 2 mov [rsp+128h+var_110], rdi call _ZNSaISt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EEEC2Ev; std::allocator<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>>>::allocator(void) mov rax, [rsp+128h+var_D8] mov rdi, [rsp+128h+var_110] mov rsi, [rax] call _ZNSt16allocator_traitsISaISt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES0_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES0_IhSaIhEEvEESaISE_EEEE7destroyISG_EEvRSH_PT_; std::allocator_traits<std::allocator<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>>>>::destroy<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>(std::allocator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>&,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *) mov rax, [rsp+128h+var_D8] mov rdi, [rsp+128h+var_110] mov rsi, [rax] mov edx, 1 call _ZNSt16allocator_traitsISaISt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES0_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES0_IhSaIhEEvEESaISE_EEEE10deallocateERSH_PSG_m; std::allocator_traits<std::allocator<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>>>>::deallocate(std::allocator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>&,std::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>>*,ulong) jmp short $+2 loc_B1432: lea rdi, [rsp+128h+var_CA] call _ZNSaISt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EEED2Ev; std::allocator<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>>>::~allocator() jmp loc_B1537 mov rcx, rax mov eax, edx mov [rsp+arg_F0], rcx mov [rsp+arg_EC], eax lea rdi, [rsp+arg_56] call _ZNSaISt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EEED2Ev; std::allocator<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>>>::~allocator() jmp loc_B153F loc_B1464: lea rdi, [rsp+128h+var_CB]; jumptable 00000000000B138A case 3 mov [rsp+128h+var_118], rdi call _ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2Ev; std::allocator<std::string>::allocator(void) mov rax, [rsp+128h+var_D8] mov rdi, [rsp+128h+var_118] mov rsi, [rax] call _ZNSt16allocator_traitsISaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE7destroyIS5_EEvRS6_PT_; std::allocator_traits<std::allocator<std::string>>::destroy<std::string>(std::allocator<std::string>&,std::string *) mov rax, [rsp+128h+var_D8] mov rdi, [rsp+128h+var_118] mov rsi, [rax] mov edx, 1 call _ZNSt16allocator_traitsISaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE10deallocateERS6_PS5_m; std::allocator_traits<std::allocator<std::string>>::deallocate(std::allocator<std::string>&,std::string*,ulong) jmp short $+2 loc_B149E: lea rdi, [rsp+128h+var_CB] call _ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; std::allocator<std::string>::~allocator() jmp loc_B1537 mov rcx, rax mov eax, edx mov [rsp+arg_F0], rcx mov [rsp+arg_EC], eax lea rdi, [rsp+arg_55] call _ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; std::allocator<std::string>::~allocator() jmp short loc_B153F loc_B14CD: lea rdi, [rsp+128h+var_CC]; jumptable 00000000000B138A case 8 mov [rsp+128h+var_120], rdi call _ZNSaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEEC2Ev; std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>::allocator(void) mov rax, [rsp+128h+var_D8] mov rdi, [rsp+128h+var_120] mov rsi, [rax] call _ZNSt16allocator_traitsISaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEEE7destroyIS6_EEvRS7_PT_; std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>>::destroy<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>(std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>&,nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>> *) mov rax, [rsp+128h+var_D8] mov rdi, [rsp+128h+var_120] mov rsi, [rax] mov edx, 1 call _ZNSt16allocator_traitsISaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEEE10deallocateERS7_PS6_m; std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>>::deallocate(std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>&,nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>*,ulong) jmp short $+2 loc_B1507: lea rdi, [rsp+128h+var_CC] call _ZNSaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEED2Ev; std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>::~allocator() jmp short loc_B1537 mov rcx, rax mov eax, edx mov [rsp+arg_F0], rcx mov [rsp+arg_EC], eax lea rdi, [rsp+arg_54] call _ZNSaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEED2Ev; std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>::~allocator() jmp short loc_B153F loc_B1533: jmp short $+2; jumptable 00000000000B138A cases 0,4-7,9 def_B138A: jmp short $+2; jumptable 00000000000B138A default case loc_B1537: add rsp, 128h retn loc_B153F: mov rdi, [rsp+arg_F0] 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>::json_value::destroy( long long *a1, unsigned __int8 a2) { long long result; // rax long long v3; // rax long long v4; // rax long long v5; // rsi long long v6; // rcx long long v7; // r8 long long v8; // r9 long long v9; // rcx long long v10; // r8 long long v11; // r9 long long v12; // rcx long long v13; // r8 long long v14; // r9 long long v15; // rcx long long v16; // r8 long long v17; // r9 char v18; // [rsp+5Ch] [rbp-CCh] BYREF char v19; // [rsp+5Dh] [rbp-CBh] BYREF char v20; // [rsp+5Eh] [rbp-CAh] BYREF char v21; // [rsp+5Fh] [rbp-C9h] BYREF long long v22; // [rsp+60h] [rbp-C8h] long long v23; // [rsp+68h] [rbp-C0h] BYREF long long v24; // [rsp+70h] [rbp-B8h] BYREF long long v25; // [rsp+78h] [rbp-B0h] long long v26; // [rsp+80h] [rbp-A8h] long long v27; // [rsp+88h] [rbp-A0h] long long v28; // [rsp+90h] [rbp-98h] long long v29; // [rsp+98h] [rbp-90h] __int128 v30; // [rsp+A0h] [rbp-88h] BYREF long long v31; // [rsp+B0h] [rbp-78h] long long v32; // [rsp+B8h] [rbp-70h] BYREF long long v33; // [rsp+C0h] [rbp-68h] BYREF long long v34; // [rsp+C8h] [rbp-60h] long long v35; // [rsp+D0h] [rbp-58h] long long v36; // [rsp+D8h] [rbp-50h] long long v37; // [rsp+E0h] [rbp-48h] long long v38; // [rsp+E8h] [rbp-40h] _BYTE v39[31]; // [rsp+100h] [rbp-28h] BYREF unsigned __int8 v40; // [rsp+11Fh] [rbp-9h] long long *v41; // [rsp+120h] [rbp-8h] v41 = a1; v40 = a2; if ( a2 != 1 || (result = (long long)a1, *a1) ) { if ( v40 != 2 || (result = (long long)a1, *a1) ) { if ( v40 != 3 || (result = (long long)a1, *a1) ) { if ( v40 != 8 || (result = (long long)a1, *a1) ) { if ( v40 == 2 || v40 == 1 ) { 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>>::vector((long long)v39); if ( v40 == 2 ) { v3 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::size((_QWORD *)*a1); 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>>::reserve( v39, v3); v38 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::begin(*a1); v37 = 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>>::end(*a1); v36 = std::back_inserter<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>>>(v39); v35 = std::move<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>,std::back_insert_iterator<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>>>>( v38, v37, v36); } else { v4 = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::size((_QWORD *)*a1); 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>>::reserve( v39, v4); v34 = *a1; v33 = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::begin(v34); v32 = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::end(v34); while ( (__gnu_cxx::operator!=<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>( &v33, &v32) & 1) != 0 ) { v31 = __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator*(&v33); 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>>::push_back( v39, v31 + 32); __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator++(&v33); } } while ( (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>>::empty(v39) & 1) == 0 ) { v5 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::back((long long)v39); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( &v30, v5); 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>>::pop_back(v39); if ( nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_array(&v30) ) { v29 = 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>>::begin(*((long long *)&v30 + 1)); v28 = 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>>::end(*((long long *)&v30 + 1)); v27 = std::back_inserter<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>>>(v39); v26 = std::move<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>,std::back_insert_iterator<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>>>>( v29, v28, v27); 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>>::clear(*((_QWORD *)&v30 + 1)); } else if ( nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_object(&v30) ) { v25 = *((_QWORD *)&v30 + 1); v24 = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::begin(*((_QWORD *)&v30 + 1)); v23 = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::end(v25); while ( (__gnu_cxx::operator!=<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>( &v24, &v23) & 1) != 0 ) { v22 = __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator*(&v24); 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>>::push_back( v39, v22 + 32); __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator++(&v24); } std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::clear(*((_QWORD *)&v30 + 1)); } nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)&v30); } 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>>::~vector(v39); } result = v40; switch ( v40 ) { case 1u: std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>>::allocator((long long)&v21); std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>>>::destroy<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>>( &v21, *a1); std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>>>::deallocate( (long long)&v21, *a1, 1LL, v6, v7, v8); result = std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>>::~allocator((long long)&v21); break; case 2u: std::allocator<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>>>::allocator((long long)&v20); std::allocator_traits<std::allocator<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>>>>::destroy<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>>>( &v20, *a1); std::allocator_traits<std::allocator<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>>>>::deallocate( (long long)&v20, *a1, 1LL, v9, v10, v11); result = std::allocator<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>>>::~allocator((long long)&v20); break; case 3u: std::allocator<std::string>::allocator((long long)&v19); std::allocator_traits<std::allocator<std::string>>::destroy<std::string>((long long)&v19, *a1); std::allocator_traits<std::allocator<std::string>>::deallocate((long long)&v19, *a1, 1LL, v12, v13, v14); result = std::allocator<std::string>::~allocator((long long)&v19); break; case 8u: std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>::allocator((long long)&v18); std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>>::destroy<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>( &v18, *a1); std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>>::deallocate( (long long)&v18, *a1, 1LL, v15, v16, v17); result = std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>::~allocator((long long)&v18); break; default: return result; } } } } } return result; }
destroy: SUB RSP,0x128 MOV AL,SIL MOV qword ptr [RSP + 0x120],RDI MOV byte ptr [RSP + 0x11f],AL MOV RAX,qword ptr [RSP + 0x120] MOV qword ptr [RSP + 0x50],RAX CMP byte ptr [RSP + 0x11f],0x1 JNZ 0x001b0f9b MOV RAX,qword ptr [RSP + 0x50] CMP qword ptr [RAX],0x0 JZ 0x001b0fda LAB_001b0f9b: CMP byte ptr [RSP + 0x11f],0x2 JNZ 0x001b0fb0 MOV RAX,qword ptr [RSP + 0x50] CMP qword ptr [RAX],0x0 JZ 0x001b0fda LAB_001b0fb0: CMP byte ptr [RSP + 0x11f],0x3 JNZ 0x001b0fc5 MOV RAX,qword ptr [RSP + 0x50] CMP qword ptr [RAX],0x0 JZ 0x001b0fda LAB_001b0fc5: CMP byte ptr [RSP + 0x11f],0x8 JNZ 0x001b0fdf MOV RAX,qword ptr [RSP + 0x50] CMP qword ptr [RAX],0x0 JNZ 0x001b0fdf LAB_001b0fda: JMP 0x001b1537 LAB_001b0fdf: CMP byte ptr [RSP + 0x11f],0x2 JZ 0x001b0ff7 CMP byte ptr [RSP + 0x11f],0x1 JNZ 0x001b1360 LAB_001b0ff7: LEA RDI,[RSP + 0x100] CALL 0x0019e820 CMP byte ptr [RSP + 0x11f],0x2 JNZ 0x001b10ce MOV RAX,qword ptr [RSP + 0x50] MOV RDI,qword ptr [RAX] CALL 0x001ac5e0 MOV RSI,RAX LAB_001b1022: LEA RDI,[RSP + 0x100] CALL 0x001b1550 JMP 0x001b1031 LAB_001b1031: MOV RAX,qword ptr [RSP + 0x50] MOV RDI,qword ptr [RAX] CALL 0x001ac4a0 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x50] MOV qword ptr [RSP + 0xe8],RCX MOV RDI,qword ptr [RAX] CALL 0x001ac310 MOV qword ptr [RSP + 0xe0],RAX LEA RDI,[RSP + 0x100] CALL 0x001b16d0 MOV qword ptr [RSP + 0x48],RAX JMP 0x001b1072 LAB_001b1072: MOV RAX,qword ptr [RSP + 0x48] MOV qword ptr [RSP + 0xd8],RAX MOV RDI,qword ptr [RSP + 0xe8] MOV RSI,qword ptr [RSP + 0xe0] MOV RDX,qword ptr [RSP + 0xd8] CALL 0x001b1660 MOV qword ptr [RSP + 0x40],RAX JMP 0x001b10a3 LAB_001b10a3: MOV RAX,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0xd0],RAX JMP 0x001b1185 LAB_001b10ce: MOV RAX,qword ptr [RSP + 0x50] MOV RDI,qword ptr [RAX] CALL 0x001ad1e0 MOV RSI,RAX LEA RDI,[RSP + 0x100] CALL 0x001b1550 JMP 0x001b10ed LAB_001b10ed: MOV RAX,qword ptr [RSP + 0x50] MOV RAX,qword ptr [RAX] MOV qword ptr [RSP + 0xc8],RAX MOV RDI,qword ptr [RSP + 0xc8] CALL 0x001b1700 MOV qword ptr [RSP + 0xc0],RAX MOV RDI,qword ptr [RSP + 0xc8] CALL 0x001b1730 MOV qword ptr [RSP + 0xb8],RAX LAB_001b1127: LEA RDI,[RSP + 0xc0] LEA RSI,[RSP + 0xb8] CALL 0x001b1760 TEST AL,0x1 JNZ 0x001b1142 JMP 0x001b1183 LAB_001b1142: LEA RDI,[RSP + 0xc0] CALL 0x001b17a0 MOV qword ptr [RSP + 0xb0],RAX MOV RSI,qword ptr [RSP + 0xb0] ADD RSI,0x20 LEA RDI,[RSP + 0x100] CALL 0x001b17b0 JMP 0x001b1172 LAB_001b1172: JMP 0x001b1174 LAB_001b1174: LEA RDI,[RSP + 0xc0] CALL 0x001b17e0 JMP 0x001b1127 LAB_001b1183: JMP 0x001b1185 LAB_001b1185: JMP 0x001b1187 LAB_001b1187: LEA RDI,[RSP + 0x100] CALL 0x001b1800 XOR AL,0xff TEST AL,0x1 JNZ 0x001b119f JMP 0x001b133f LAB_001b119f: LEA RDI,[RSP + 0x100] CALL 0x001abfd0 MOV RSI,RAX LEA RDI,[RSP + 0xa0] CALL 0x001abe60 LEA RDI,[RSP + 0x100] CALL 0x001b1850 LEA RDI,[RSP + 0xa0] CALL 0x001abf10 TEST AL,0x1 JNZ 0x001b11df JMP 0x001b1293 LAB_001b11df: MOV RDI,qword ptr [RSP + 0xa8] CALL 0x001ac4a0 MOV qword ptr [RSP + 0x98],RAX MOV RDI,qword ptr [RSP + 0xa8] CALL 0x001ac310 MOV qword ptr [RSP + 0x90],RAX LAB_001b1209: LEA RDI,[RSP + 0x100] CALL 0x001b16d0 MOV qword ptr [RSP + 0x38],RAX JMP 0x001b121d LAB_001b121d: MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x88],RAX MOV RDI,qword ptr [RSP + 0x98] MOV RSI,qword ptr [RSP + 0x90] MOV RDX,qword ptr [RSP + 0x88] CALL 0x001b1660 MOV qword ptr [RSP + 0x30],RAX JMP 0x001b124e LAB_001b124e: MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x80],RAX MOV RDI,qword ptr [RSP + 0xa8] CALL 0x001b1870 JMP 0x001b132d LAB_001b1293: LEA RDI,[RSP + 0xa0] CALL 0x001abf30 TEST AL,0x1 JNZ 0x001b12a9 JMP 0x001b132b LAB_001b12a9: MOV RAX,qword ptr [RSP + 0xa8] MOV qword ptr [RSP + 0x78],RAX MOV RDI,qword ptr [RSP + 0x78] CALL 0x001b1700 MOV qword ptr [RSP + 0x70],RAX MOV RDI,qword ptr [RSP + 0x78] CALL 0x001b1730 MOV qword ptr [RSP + 0x68],RAX LAB_001b12d4: LEA RDI,[RSP + 0x70] LEA RSI,[RSP + 0x68] CALL 0x001b1760 TEST AL,0x1 JNZ 0x001b12e9 JMP 0x001b131e LAB_001b12e9: LEA RDI,[RSP + 0x70] CALL 0x001b17a0 MOV qword ptr [RSP + 0x60],RAX MOV RSI,qword ptr [RSP + 0x60] ADD RSI,0x20 LEA RDI,[RSP + 0x100] CALL 0x001b17b0 JMP 0x001b1310 LAB_001b1310: JMP 0x001b1312 LAB_001b1312: LEA RDI,[RSP + 0x70] CALL 0x001b17e0 JMP 0x001b12d4 LAB_001b131e: MOV RDI,qword ptr [RSP + 0xa8] CALL 0x001b1890 LAB_001b132b: JMP 0x001b132d LAB_001b132d: LEA RDI,[RSP + 0xa0] CALL 0x0019cbb0 JMP 0x001b1187 LAB_001b133f: LEA RDI,[RSP + 0x100] CALL 0x001b18b0 JMP 0x001b1360 LAB_001b1360: MOVZX EAX,byte ptr [RSP + 0x11f] MOV qword ptr [RSP + 0x28],RAX SUB RAX,0x9 JA 0x001b1535 MOV RAX,qword ptr [RSP + 0x28] LEA RCX,[0x304bac] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_1: LEA RDI,[RSP + 0x5f] MOV qword ptr [RSP + 0x20],RDI CALL 0x0019ddd0 MOV RAX,qword ptr [RSP + 0x50] MOV RDI,qword ptr [RSP + 0x20] MOV RSI,qword ptr [RAX] CALL 0x001b1910 MOV RAX,qword ptr [RSP + 0x50] MOV RDI,qword ptr [RSP + 0x20] MOV RSI,qword ptr [RAX] LAB_001b13ba: MOV EDX,0x1 CALL 0x0019e420 JMP 0x001b13c6 LAB_001b13c6: LEA RDI,[RSP + 0x5f] CALL 0x0019df40 JMP 0x001b1537 caseD_2: LEA RDI,[RSP + 0x5e] MOV qword ptr [RSP + 0x18],RDI CALL 0x0019e490 MOV RAX,qword ptr [RSP + 0x50] MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RAX] CALL 0x001b1940 MOV RAX,qword ptr [RSP + 0x50] MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RAX] LAB_001b1426: MOV EDX,0x1 CALL 0x0019eac0 JMP 0x001b1432 LAB_001b1432: LEA RDI,[RSP + 0x5e] CALL 0x0019e600 JMP 0x001b1537 caseD_3: LEA RDI,[RSP + 0x5d] MOV qword ptr [RSP + 0x10],RDI CALL 0x001612d0 MOV RAX,qword ptr [RSP + 0x50] MOV RDI,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RAX] CALL 0x0018adb0 MOV RAX,qword ptr [RSP + 0x50] MOV RDI,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RAX] LAB_001b1492: MOV EDX,0x1 CALL 0x00161bb0 JMP 0x001b149e LAB_001b149e: LEA RDI,[RSP + 0x5d] CALL 0x00161370 JMP 0x001b1537 caseD_8: LEA RDI,[RSP + 0x5c] MOV qword ptr [RSP + 0x8],RDI CALL 0x0019f030 MOV RAX,qword ptr [RSP + 0x50] MOV RDI,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RAX] CALL 0x001b1970 MOV RAX,qword ptr [RSP + 0x50] MOV RDI,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RAX] LAB_001b14fb: MOV EDX,0x1 CALL 0x0019f680 LAB_001b1505: JMP 0x001b1507 LAB_001b1507: LEA RDI,[RSP + 0x5c] CALL 0x0019f1a0 JMP 0x001b1537 caseD_0: JMP 0x001b1535 LAB_001b1535: JMP 0x001b1537 default: ADD RSP,0x128 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>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t) */ void __thiscall nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::json_value::destroy(json_value *this,char param_2) { byte bVar1; bool bVar2; ulong uVar3; basic_json *pbVar4; allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>> local_cc; allocator<std::__cxx11::string> local_cb; allocator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> local_ca; allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> local_c9; long local_c8; int8 local_c0; int8 local_b8; vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *local_b0; int8 local_a8; int8 local_a0; int8 local_98; int8 local_90; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_88 [8]; vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *local_80; long local_78; int8 local_70; int8 local_68; vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *local_60; int8 local_58; int8 local_50; int8 local_48; int8 local_40; vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> local_28 [31]; char local_9; json_value *local_8; if (((((param_2 != '\x01') || (*(long *)this != 0)) && ((param_2 != '\x02' || (*(long *)this != 0)))) && ((param_2 != '\x03' || (*(long *)this != 0)))) && ((param_2 != '\b' || (*(long *)this != 0)))) { local_9 = param_2; local_8 = this; if ((param_2 == '\x02') || (param_2 == '\x01')) { 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>>> ::vector(local_28); if (local_9 == '\x02') { uVar3 = std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::size(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)this); /* try { // try from 001b1022 to 001b116f has its CatchHandler @ 001b10b5 */ 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>>> ::reserve(local_28,uVar3); local_40 = 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>>> ::begin(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)this); local_48 = 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>>> ::end(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)this); local_50 = std:: back_inserter<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>>>> ((vector *)local_28); local_58 = std:: move<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,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>>>>,std::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> (local_40,local_48,local_50); } else { uVar3 = std:: vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::size(*(vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> **)this); 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>>> ::reserve(local_28,uVar3); local_60 = *(vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> **)this; local_68 = std:: vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::begin(local_60); local_70 = std:: vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::end(local_60); while (bVar2 = __gnu_cxx::operator!= ((__normal_iterator *)&local_68,(__normal_iterator *)&local_70), bVar2) { local_78 = __gnu_cxx:: __normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> ::operator*((__normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> *)&local_68); 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>>> ::push_back(local_28,(basic_json *)(local_78 + 0x20)); __gnu_cxx:: __normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> ::operator++((__normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> *)&local_68); } } while (bVar1 = std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::empty(local_28), ((bVar1 ^ 0xff) & 1) != 0) { pbVar4 = (basic_json *) std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::back(local_28); basic_json(local_88,pbVar4); 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>>> ::pop_back(local_28); uVar3 = is_array(local_88); if ((uVar3 & 1) == 0) { uVar3 = is_object(local_88); if ((uVar3 & 1) != 0) { local_b0 = (vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *)local_80; local_b8 = std:: vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::begin((vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *)local_80); local_c0 = std:: vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::end(local_b0); while (bVar2 = __gnu_cxx::operator!= ((__normal_iterator *)&local_b8,(__normal_iterator *)&local_c0) , bVar2) { local_c8 = __gnu_cxx:: __normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> ::operator*((__normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> *)&local_b8); 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>>> ::push_back(local_28,(basic_json *)(local_c8 + 0x20)); __gnu_cxx:: __normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> ::operator++((__normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> *)&local_b8); } std:: vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::clear((vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *)local_80); } } else { local_90 = 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>>> ::begin(local_80); local_98 = 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>>> ::end(local_80); /* try { // try from 001b1209 to 001b130d has its CatchHandler @ 001b126d */ local_a0 = std:: back_inserter<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>>>> ((vector *)local_28); local_a8 = std:: move<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,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>>>>,std::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> (local_90,local_98,local_a0); 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>>> ::clear(local_80); } ~basic_json(local_88); } 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>>> ::~vector(local_28); } switch(local_9) { case '\0': case '\x04': case '\x05': case '\x06': case '\a': case '\t': break; case '\x01': std:: allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> ::allocator(&local_c9); std:: allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>> :: destroy<nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> ((allocator *)&local_c9,*(ordered_map **)this); /* try { // try from 001b13ba to 001b13c3 has its CatchHandler @ 001b13d5 */ std:: allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>> ::deallocate((allocator *)&local_c9,*(ordered_map **)this,1); std:: allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> ::~allocator(&local_c9); break; case '\x02': std:: allocator<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>>>> ::allocator(&local_ca); std:: allocator_traits<std::allocator<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>>>>> :: destroy<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>>>> ((allocator *)&local_ca,*(vector **)this); /* try { // try from 001b1426 to 001b142f has its CatchHandler @ 001b1441 */ std:: allocator_traits<std::allocator<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>>>>> ::deallocate((allocator *)&local_ca,*(vector **)this,1); std:: allocator<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>>>> ::~allocator(&local_ca); break; case '\x03': std::allocator<std::__cxx11::string>::allocator(&local_cb); std::allocator_traits<std::allocator<std::__cxx11::string>>::destroy<std::__cxx11::string> ((allocator *)&local_cb,*(string **)this); /* try { // try from 001b1492 to 001b149b has its CatchHandler @ 001b14ad */ std::allocator_traits<std::allocator<std::__cxx11::string>>::deallocate ((allocator *)&local_cb,*(string **)this,1); std::allocator<std::__cxx11::string>::~allocator(&local_cb); break; case '\b': std:: allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>> ::allocator(&local_cc); std:: allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>> :: destroy<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>> ((allocator *)&local_cc,*(byte_container_with_subtype **)this); /* try { // try from 001b14fb to 001b1504 has its CatchHandler @ 001b1513 */ std:: allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>> ::deallocate((allocator *)&local_cc,*(byte_container_with_subtype **)this,1); std:: allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>> ::~allocator(&local_cc); } } return; }
39,805
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>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t)
monkey531[P]llama/common/json.hpp
void destroy(value_t t) { if ( (t == value_t::object && object == nullptr) || (t == value_t::array && array == nullptr) || (t == value_t::string && string == nullptr) || (t == value_t::binary && binary == nullptr) ) { //not initialized (e.g. due to exception in the ctor) return; } if (t == value_t::array || t == value_t::object) { // flatten the current json_value to a heap-allocated stack std::vector<basic_json> stack; // move the top-level items to stack if (t == value_t::array) { stack.reserve(array->size()); std::move(array->begin(), array->end(), std::back_inserter(stack)); } else { stack.reserve(object->size()); for (auto&& it : *object) { stack.push_back(std::move(it.second)); } } while (!stack.empty()) { // move the last item to local variable to be processed basic_json current_item(std::move(stack.back())); stack.pop_back(); // if current_item is array/object, move // its children to the stack to be processed later if (current_item.is_array()) { std::move(current_item.m_data.m_value.array->begin(), current_item.m_data.m_value.array->end(), std::back_inserter(stack)); current_item.m_data.m_value.array->clear(); } else if (current_item.is_object()) { for (auto&& it : *current_item.m_data.m_value.object) { stack.push_back(std::move(it.second)); } current_item.m_data.m_value.object->clear(); } // it's now safe that current_item get destructed // since it doesn't have any children } } switch (t) { case value_t::object: { AllocatorType<object_t> alloc; std::allocator_traits<decltype(alloc)>::destroy(alloc, object); std::allocator_traits<decltype(alloc)>::deallocate(alloc, object, 1); break; } case value_t::array: { AllocatorType<array_t> alloc; std::allocator_traits<decltype(alloc)>::destroy(alloc, array); std::allocator_traits<decltype(alloc)>::deallocate(alloc, array, 1); break; } case value_t::string: { AllocatorType<string_t> alloc; std::allocator_traits<decltype(alloc)>::destroy(alloc, string); std::allocator_traits<decltype(alloc)>::deallocate(alloc, string, 1); break; } case value_t::binary: { AllocatorType<binary_t> alloc; std::allocator_traits<decltype(alloc)>::destroy(alloc, binary); std::allocator_traits<decltype(alloc)>::deallocate(alloc, binary, 1); break; } case value_t::null: case value_t::boolean: case value_t::number_integer: case value_t::number_unsigned: case value_t::number_float: case value_t::discarded: default: { break; } } }
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>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp cmpl $0x1, %esi sete %cl movq (%rdi), %rax testq %rax, %rax sete %dl testb %dl, %cl jne 0x5ce88 movl %esi, %r14d testq %rax, %rax sete %cl movl %r14d, %edx andb $-0x2, %dl cmpb $0x2, %dl sete %dl cmpb $0x8, %r14b sete %sil orb %dl, %sil testb %cl, %sil jne 0x5ce88 movq %rdi, %rbx leal -0x1(%r14), %ecx cmpb $0x1, %cl ja 0x5ce08 xorps %xmm0, %xmm0 movaps %xmm0, (%rsp) movq $0x0, 0x10(%rsp) movq 0x8(%rax), %rsi subq (%rax), %rsi sarq $0x4, %rsi cmpb $0x2, %r14b jne 0x5ccb7 movq %rsp, %rdi callq 0x5cecc movq (%rbx), %rax movq (%rax), %r15 movq 0x8(%rax), %r13 subq %r15, %r13 sarq $0x4, %r13 testq %r13, %r13 jle 0x5ccf8 incq %r13 movq %rsp, %r12 movq %r12, %rdi movq %r15, %rsi callq 0x5bd6a addq $0x10, %r15 decq %r13 cmpq $0x1, %r13 jg 0x5cc9d jmp 0x5ccf8 movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB imulq %rsi, %rax movq %rsp, %rdi movq %rax, %rsi callq 0x5cecc movq (%rbx), %rax movq (%rax), %r12 movq 0x8(%rax), %r13 cmpq %r13, %r12 je 0x5ccf8 movq %rsp, %r15 leaq 0x20(%r12), %rsi movq %r15, %rdi callq 0x5bd6a addq $0x30, %r12 cmpq %r13, %r12 jne 0x5cce2 movq 0x8(%rsp), %r13 cmpq %r13, (%rsp) je 0x5ce00 leaq 0x20(%rsp), %r15 movq %rsp, %r12 leaq -0x10(%r13), %rdi movups -0x10(%r13), %xmm0 movaps %xmm0, 0x20(%rsp) xorl %esi, %esi callq 0x56f38 movb $0x0, -0x10(%r13) movq $0x0, -0x8(%r13) movq %r15, %rdi movl $0x1, %esi callq 0x56f38 movq 0x8(%rsp), %r13 addq $-0x10, %r13 movq %r13, 0x8(%rsp) movq %r13, %rdi xorl %esi, %esi callq 0x56f38 movq %r13, %rdi callq 0x5c724 movzbl 0x20(%rsp), %eax cmpl $0x1, %eax je 0x5cdaf cmpl $0x2, %eax jne 0x5cddf movq 0x28(%rsp), %rax movq (%rax), %r13 movq 0x8(%rax), %rbp subq %r13, %rbp sarq $0x4, %rbp testq %rbp, %rbp jle 0x5cda0 incq %rbp movq %r12, %rdi movq %r13, %rsi callq 0x5bd6a addq $0x10, %r13 decq %rbp cmpq $0x1, %rbp jg 0x5cd88 movq 0x28(%rsp), %rdi movq (%rdi), %rsi callq 0x5cfac jmp 0x5cddf movq 0x28(%rsp), %rax movq (%rax), %r13 movq 0x8(%rax), %rbp cmpq %rbp, %r13 je 0x5cdd2 leaq 0x20(%r13), %rsi movq %r12, %rdi callq 0x5bd6a addq $0x30, %r13 jmp 0x5cdbb movq 0x28(%rsp), %rdi movq (%rdi), %rsi callq 0x5cff2 movq %r15, %rdi xorl %esi, %esi callq 0x56f38 movq %r15, %rdi callq 0x5c724 movq 0x8(%rsp), %r13 cmpq %r13, (%rsp) jne 0x5cd0f movq %rsp, %rdi callq 0x5cf60 movzbl %r14b, %eax decl %eax cmpl $0x7, %eax ja 0x5ce88 leaq 0x8aa5e(%rip), %rcx # 0xe7878 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq (%rbx), %rdi callq 0x5d0ac movl $0x20, %r14d jmp 0x5ce7d movq (%rbx), %rax movq (%rax), %rdi addq $0x10, %rax movl $0x20, %r14d cmpq %rax, %rdi je 0x5ce7d movq (%rax), %rsi incq %rsi jmp 0x5ce78 movq (%rbx), %rdi callq 0x5cf60 movl $0x18, %r14d jmp 0x5ce7d movq (%rbx), %rax movq (%rax), %rdi movl $0x28, %r14d testq %rdi, %rdi je 0x5ce7d movq 0x10(%rax), %rsi subq %rdi, %rsi callq 0x1a890 movq (%rbx), %rdi movq %r14, %rsi callq 0x1a890 addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x5ce9b jmp 0x5ce9b movq %rax, %rbx jmp 0x5cebc jmp 0x5cea2 movq %rax, %rbx leaq 0x20(%rsp), %r14 movq %r14, %rdi xorl %esi, %esi callq 0x56f38 movq %r14, %rdi callq 0x5c724 movq %rsp, %rdi callq 0x5cf60 movq %rbx, %rdi callq 0x1af20
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10json_value7destroyENS0_6detail7value_tE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h cmp esi, 1 setz cl mov rax, [rdi] test rax, rax setz dl test cl, dl jnz def_5CE21; jumptable 000000000005CE21 default case, cases 4-7 mov r14d, esi test rax, rax setz cl mov edx, r14d and dl, 0FEh cmp dl, 2 setz dl cmp r14b, 8 setz sil or sil, dl test sil, cl jnz def_5CE21; jumptable 000000000005CE21 default case, cases 4-7 mov rbx, rdi lea ecx, [r14-1] cmp cl, 1 ja loc_5CE08 xorps xmm0, xmm0 movaps [rsp+68h+var_68], xmm0 mov [rsp+68h+var_58], 0 mov rsi, [rax+8] sub rsi, [rax] sar rsi, 4 cmp r14b, 2 jnz short loc_5CCB7 mov rdi, rsp call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE7reserveEm; 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>>::reserve(ulong) mov rax, [rbx] mov r15, [rax] mov r13, [rax+8] sub r13, r15 sar r13, 4 test r13, r13 jle short loc_5CCF8 inc r13 mov r12, rsp loc_5CC9D: mov rdi, r12 mov rsi, r15 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> &&) add r15, 10h dec r13 cmp r13, 1 jg short loc_5CC9D jmp short loc_5CCF8 loc_5CCB7: mov rax, 0AAAAAAAAAAAAAAABh imul rax, rsi mov rdi, rsp mov rsi, rax call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE7reserveEm; 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>>::reserve(ulong) mov rax, [rbx] mov r12, [rax] mov r13, [rax+8] cmp r12, r13 jz short loc_5CCF8 mov r15, rsp loc_5CCE2: lea rsi, [r12+20h] mov rdi, r15 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> &&) add r12, 30h ; '0' cmp r12, r13 jnz short loc_5CCE2 loc_5CCF8: mov r13, qword ptr [rsp+68h+var_68+8] cmp qword ptr [rsp+68h+var_68], r13 jz loc_5CE00 lea r15, [rsp+68h+var_48] mov r12, rsp loc_5CD0F: lea rdi, [r13-10h] movups xmm0, xmmword ptr [r13-10h] movaps [rsp+68h+var_48], xmm0 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 [r13-10h], 0 mov qword ptr [r13-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 r13, qword ptr [rsp+68h+var_68+8] add r13, 0FFFFFFFFFFFFFFF0h mov qword ptr [rsp+68h+var_68+8], r13 mov rdi, r13 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, r13 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() movzx eax, byte ptr [rsp+68h+var_48] cmp eax, 1 jz short loc_5CDAF cmp eax, 2 jnz short loc_5CDDF mov rax, qword ptr [rsp+68h+var_48+8] mov r13, [rax] mov rbp, [rax+8] sub rbp, r13 sar rbp, 4 test rbp, rbp jle short loc_5CDA0 inc rbp loc_5CD88: mov rdi, r12 mov rsi, r13 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> &&) add r13, 10h dec rbp cmp rbp, 1 jg short loc_5CD88 loc_5CDA0: mov rdi, qword ptr [rsp+68h+var_48+8] mov rsi, [rdi] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE15_M_erase_at_endEPSD_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::_M_erase_at_end(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>*) jmp short loc_5CDDF loc_5CDAF: mov rax, qword ptr [rsp+68h+var_48+8] mov r13, [rax] mov rbp, [rax+8] loc_5CDBB: cmp r13, rbp jz short loc_5CDD2 lea rsi, [r13+20h] mov rdi, r12 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> &&) add r13, 30h ; '0' jmp short loc_5CDBB loc_5CDD2: mov rdi, qword ptr [rsp+68h+var_48+8] mov rsi, [rdi] call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE15_M_erase_at_endEPSG_; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::_M_erase_at_end(std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>*) loc_5CDDF: 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 r13, qword ptr [rsp+68h+var_68+8] cmp qword ptr [rsp+68h+var_68], r13 jnz loc_5CD0F loc_5CE00: mov rdi, rsp call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; 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>>::~vector() loc_5CE08: movzx eax, r14b dec eax; switch 8 cases cmp eax, 7 ja short def_5CE21; jumptable 000000000005CE21 default case, cases 4-7 lea rcx, jpt_5CE21 movsxd rax, ds:(jpt_5CE21 - 0E7878h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_5CE23: mov rdi, [rbx]; jumptable 000000000005CE21 case 1 call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EED2Ev; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::~vector() mov r14d, 20h ; ' ' jmp short loc_5CE7D loc_5CE33: mov rax, [rbx]; jumptable 000000000005CE21 case 3 mov rdi, [rax] add rax, 10h mov r14d, 20h ; ' ' cmp rdi, rax jz short loc_5CE7D mov rsi, [rax] inc rsi jmp short loc_5CE78 loc_5CE50: mov rdi, [rbx]; jumptable 000000000005CE21 case 2 call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; 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>>::~vector() mov r14d, 18h jmp short loc_5CE7D loc_5CE60: mov rax, [rbx]; jumptable 000000000005CE21 case 8 mov rdi, [rax]; void * mov r14d, 28h ; '(' test rdi, rdi jz short loc_5CE7D mov rsi, [rax+10h] sub rsi, rdi; unsigned __int64 loc_5CE78: call __ZdlPvm; operator delete(void *,ulong) loc_5CE7D: mov rdi, [rbx]; void * mov rsi, r14; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) def_5CE21: add rsp, 38h; jumptable 000000000005CE21 default case, cases 4-7 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_5CE9B jmp short $+2 loc_5CE9B: mov rbx, rax jmp short loc_5CEBC jmp short $+2 loc_5CEA2: mov rbx, rax lea r14, [rsp+arg_18] 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() loc_5CEBC: mov rdi, rsp call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; 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>>::~vector() mov rdi, rbx call __Unwind_Resume
void nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::json_value::destroy( long long **a1, int a2) { long long *v2; // rax char v3; // r14 long long v5; // rsi long long v6; // r15 long long v7; // r13 long long v8; // r13 long long v9; // r12 long long i; // r13 long long j; // r13 char *v12; // r13 long long v13; // r13 long long v14; // rbp long long v15; // rbp long long v16; // r13 long long v17; // rbp unsigned long long v18; // r14 _BYTE *v19; // rdi _QWORD *v20; // rax unsigned long long v21; // rsi void **v22; // rax __int128 v23; // [rsp+0h] [rbp-68h] BYREF long long v24; // [rsp+10h] [rbp-58h] _OWORD v25[4]; // [rsp+20h] [rbp-48h] BYREF v2 = *a1; if ( *a1 != 0LL || a2 != 1 ) { v3 = a2; if ( v2 != 0LL || (a2 & 0xFE) != 2 && (_BYTE)a2 != 8 ) { if ( (unsigned __int8)(a2 - 1) <= 1u ) { v23 = 0LL; v24 = 0LL; v5 = (v2[1] - *v2) >> 4; if ( v3 == 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>>::reserve( &v23, v5); v6 = **a1; v7 = ((*a1)[1] - v6) >> 4; if ( v7 > 0 ) { v8 = v7 + 1; do { 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>>( (long long)&v23, v6); v6 += 16LL; --v8; } while ( v8 > 1 ); } } else { 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>>::reserve( &v23, 0xAAAAAAAAAAAAAAABLL * v5); v9 = **a1; for ( i = (*a1)[1]; v9 != i; v9 += 48LL ) 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>>( (long long)&v23, v9 + 32); } for ( j = *((_QWORD *)&v23 + 1); (_QWORD)v23 != *((_QWORD *)&v23 + 1); j = *((_QWORD *)&v23 + 1) ) { v25[0] = *(_OWORD *)(j - 16); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)(j - 16)); *(_BYTE *)(j - 16) = 0; *(_QWORD *)(j - 8) = 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 *)v25); v12 = (char *)(*((_QWORD *)&v23 + 1) - 16LL); *((_QWORD *)&v23 + 1) = v12; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v12); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v12); if ( LOBYTE(v25[0]) == 1 ) { v16 = **((_QWORD **)&v25[0] + 1); v17 = *(_QWORD *)(*((_QWORD *)&v25[0] + 1) + 8LL); while ( v16 != v17 ) { 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>>( (long long)&v23, v16 + 32); v16 += 48LL; } std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::_M_erase_at_end( *((_QWORD *)&v25[0] + 1), **((_QWORD **)&v25[0] + 1)); } else if ( LOBYTE(v25[0]) == 2 ) { v13 = **((_QWORD **)&v25[0] + 1); v14 = (long long)(*(_QWORD *)(*((_QWORD *)&v25[0] + 1) + 8LL) - **((_QWORD **)&v25[0] + 1)) >> 4; if ( v14 > 0 ) { v15 = v14 + 1; do { 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>>( (long long)&v23, v13); v13 += 16LL; --v15; } while ( v15 > 1 ); } 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>>::_M_erase_at_end( *((_QWORD *)&v25[0] + 1), **((_QWORD **)&v25[0] + 1)); } nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v25); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v25); } 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>>::~vector(&v23); } switch ( v3 ) { case 1: std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::~vector(*a1); v18 = 32LL; goto LABEL_32; case 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>>::~vector(*a1); v18 = 24LL; goto LABEL_32; case 3: v19 = (_BYTE *)**a1; v20 = *a1 + 2; v18 = 32LL; if ( v19 == (_BYTE *)v20 ) goto LABEL_32; v21 = *v20 + 1LL; break; case 8: v22 = (void **)*a1; v19 = (_BYTE *)**a1; v18 = 40LL; if ( !v19 ) goto LABEL_32; v21 = (_BYTE *)v22[2] - v19; break; default: return; } operator delete(v19, v21); LABEL_32: operator delete(*a1, v18); } } }
destroy: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 CMP ESI,0x1 SETZ CL MOV RAX,qword ptr [RDI] TEST RAX,RAX SETZ DL TEST CL,DL JNZ 0x0015ce88 MOV R14D,ESI TEST RAX,RAX SETZ CL MOV EDX,R14D AND DL,0xfe CMP DL,0x2 SETZ DL CMP R14B,0x8 SETZ SIL OR SIL,DL TEST SIL,CL JNZ 0x0015ce88 MOV RBX,RDI LEA ECX,[R14 + -0x1] CMP CL,0x1 JA 0x0015ce08 XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP],XMM0 MOV qword ptr [RSP + 0x10],0x0 MOV RSI,qword ptr [RAX + 0x8] SUB RSI,qword ptr [RAX] SAR RSI,0x4 CMP R14B,0x2 JNZ 0x0015ccb7 LAB_0015cc79: MOV RDI,RSP CALL 0x0015cecc MOV RAX,qword ptr [RBX] MOV R15,qword ptr [RAX] MOV R13,qword ptr [RAX + 0x8] SUB R13,R15 SAR R13,0x4 TEST R13,R13 JLE 0x0015ccf8 INC R13 MOV R12,RSP LAB_0015cc9d: MOV RDI,R12 MOV RSI,R15 CALL 0x0015bd6a ADD R15,0x10 DEC R13 CMP R13,0x1 JG 0x0015cc9d JMP 0x0015ccf8 LAB_0015ccb7: MOV RAX,-0x5555555555555555 IMUL RAX,RSI LAB_0015ccc5: MOV RDI,RSP MOV RSI,RAX CALL 0x0015cecc MOV RAX,qword ptr [RBX] MOV R12,qword ptr [RAX] MOV R13,qword ptr [RAX + 0x8] CMP R12,R13 JZ 0x0015ccf8 MOV R15,RSP LAB_0015cce2: LEA RSI,[R12 + 0x20] LAB_0015cce7: MOV RDI,R15 CALL 0x0015bd6a ADD R12,0x30 CMP R12,R13 JNZ 0x0015cce2 LAB_0015ccf8: MOV R13,qword ptr [RSP + 0x8] CMP qword ptr [RSP],R13 JZ 0x0015ce00 LEA R15,[RSP + 0x20] MOV R12,RSP LAB_0015cd0f: LEA RDI,[R13 + -0x10] MOVUPS XMM0,xmmword ptr [R13 + -0x10] MOVAPS xmmword ptr [RSP + 0x20],XMM0 XOR ESI,ESI CALL 0x00156f38 MOV byte ptr [R13 + -0x10],0x0 MOV qword ptr [R13 + -0x8],0x0 MOV RDI,R15 MOV ESI,0x1 CALL 0x00156f38 MOV R13,qword ptr [RSP + 0x8] ADD R13,-0x10 MOV qword ptr [RSP + 0x8],R13 MOV RDI,R13 XOR ESI,ESI CALL 0x00156f38 MOV RDI,R13 CALL 0x0015c724 MOVZX EAX,byte ptr [RSP + 0x20] CMP EAX,0x1 JZ 0x0015cdaf CMP EAX,0x2 JNZ 0x0015cddf MOV RAX,qword ptr [RSP + 0x28] MOV R13,qword ptr [RAX] MOV RBP,qword ptr [RAX + 0x8] SUB RBP,R13 SAR RBP,0x4 TEST RBP,RBP JLE 0x0015cda0 INC RBP LAB_0015cd88: MOV RDI,R12 MOV RSI,R13 CALL 0x0015bd6a ADD R13,0x10 DEC RBP CMP RBP,0x1 JG 0x0015cd88 LAB_0015cda0: MOV RDI,qword ptr [RSP + 0x28] MOV RSI,qword ptr [RDI] CALL 0x0015cfac JMP 0x0015cddf LAB_0015cdaf: MOV RAX,qword ptr [RSP + 0x28] MOV R13,qword ptr [RAX] MOV RBP,qword ptr [RAX + 0x8] LAB_0015cdbb: CMP R13,RBP JZ 0x0015cdd2 LEA RSI,[R13 + 0x20] LAB_0015cdc4: MOV RDI,R12 CALL 0x0015bd6a LAB_0015cdcc: ADD R13,0x30 JMP 0x0015cdbb LAB_0015cdd2: MOV RDI,qword ptr [RSP + 0x28] MOV RSI,qword ptr [RDI] CALL 0x0015cff2 LAB_0015cddf: MOV RDI,R15 XOR ESI,ESI CALL 0x00156f38 MOV RDI,R15 CALL 0x0015c724 MOV R13,qword ptr [RSP + 0x8] CMP qword ptr [RSP],R13 JNZ 0x0015cd0f LAB_0015ce00: MOV RDI,RSP CALL 0x0015cf60 LAB_0015ce08: MOVZX EAX,R14B DEC EAX CMP EAX,0x7 JA 0x0015ce88 LEA RCX,[0x1e7878] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_1: MOV RDI,qword ptr [RBX] CALL 0x0015d0ac MOV R14D,0x20 JMP 0x0015ce7d caseD_3: MOV RAX,qword ptr [RBX] MOV RDI,qword ptr [RAX] ADD RAX,0x10 MOV R14D,0x20 CMP RDI,RAX JZ 0x0015ce7d MOV RSI,qword ptr [RAX] INC RSI JMP 0x0015ce78 caseD_2: MOV RDI,qword ptr [RBX] CALL 0x0015cf60 MOV R14D,0x18 JMP 0x0015ce7d caseD_8: MOV RAX,qword ptr [RBX] MOV RDI,qword ptr [RAX] MOV R14D,0x28 TEST RDI,RDI JZ 0x0015ce7d MOV RSI,qword ptr [RAX + 0x10] SUB RSI,RDI LAB_0015ce78: CALL 0x0011a890 LAB_0015ce7d: MOV RDI,qword ptr [RBX] MOV RSI,R14 CALL 0x0011a890 caseD_4: ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP 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>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t) */ void __thiscall nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::json_value::destroy(json_value *this,uint param_2) { long lVar1; long *plVar2; byte bVar3; ulong uVar4; ulong uVar5; bool bVar6; long *plVar7; long lVar8; data *pdVar9; basic_json *pbVar10; data *local_68; data *pdStack_60; int8 local_58; int8 local_48; 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>>> *pvStack_40; plVar7 = *(long **)this; if (param_2 == 1 && plVar7 == (long *)0x0) { return; } bVar3 = (byte)param_2; if ((bVar3 == 8 || (bVar3 & 0xfe) == 2) && plVar7 == (long *)0x0) { return; } if ((byte)(bVar3 - 1) < 2) { local_68 = (data *)0x0; pdStack_60 = (data *)0x0; local_58 = 0; uVar4 = plVar7[1] - *plVar7 >> 4; if (bVar3 == 2) { /* try { // try from 0015cc79 to 0015cc80 has its CatchHandler @ 0015ce97 */ 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>>> ::reserve((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *)&local_68,uVar4); pbVar10 = (basic_json *)**(long **)this; lVar8 = (*(long **)this)[1] - (long)pbVar10 >> 4; if (0 < lVar8) { lVar8 = lVar8 + 1; do { /* try { // try from 0015cc9d to 0015cca7 has its CatchHandler @ 0015ce9b */ 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>>> *)&local_68,pbVar10); pbVar10 = pbVar10 + 0x10; lVar8 = lVar8 + -1; } while (1 < lVar8); } } else { /* try { // try from 0015ccc5 to 0015cccf has its CatchHandler @ 0015ce97 */ 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>>> ::reserve((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *)&local_68,uVar4 * -0x5555555555555555); lVar1 = (*(long **)this)[1]; for (lVar8 = **(long **)this; lVar8 != lVar1; lVar8 = lVar8 + 0x30) { /* try { // try from 0015cce7 to 0015ccee has its CatchHandler @ 0015ce99 */ 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>>> *)&local_68,(basic_json *)(lVar8 + 0x20)); } } if (local_68 != pdStack_60) { do { pdVar9 = pdStack_60; local_48 = *(int8 *)(pdStack_60 + -0x10); pvStack_40 = *(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>>> **)(pdStack_60 + -8); assert_invariant((bool)((char)pdStack_60 + -0x10)); pdVar9[-0x10] = (data)0x0; *(int8 *)(pdVar9 + -8) = 0; bVar6 = SUB81((data *)&local_48,0); assert_invariant(bVar6); pdVar9 = pdStack_60 + -0x10; pdStack_60 = pdVar9; assert_invariant(SUB81(pdVar9,0)); data::~data(pdVar9); if (local_48._0_1_ == (data)0x1) { lVar1 = *(long *)(pvStack_40 + 8); for (lVar8 = *(long *)pvStack_40; lVar8 != lVar1; lVar8 = lVar8 + 0x30) { /* try { // try from 0015cdc4 to 0015cdcb has its CatchHandler @ 0015cea2 */ 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>>> *)&local_68,(basic_json *)(lVar8 + 0x20)); } std:: vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::_M_erase_at_end((vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *)pvStack_40,*(pair **)pvStack_40); } else if (local_48._0_1_ == (data)0x2) { pbVar10 = *(basic_json **)pvStack_40; lVar8 = *(long *)(pvStack_40 + 8) - (long)pbVar10 >> 4; if (0 < lVar8) { lVar8 = lVar8 + 1; do { /* try { // try from 0015cd88 to 0015cd92 has its CatchHandler @ 0015cea0 */ 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>>> *)&local_68,pbVar10); pbVar10 = pbVar10 + 0x10; lVar8 = lVar8 + -1; } while (1 < lVar8); } std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::_M_erase_at_end(pvStack_40,*(basic_json **)pvStack_40); } assert_invariant(bVar6); data::~data((data *)&local_48); } while (local_68 != pdStack_60); } 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>>> ::~vector((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *)&local_68); } switch(param_2 & 0xff) { case 1: std:: vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::~vector(*(vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> **)this); uVar4 = 0x20; break; case 2: 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>>> ::~vector(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)this); uVar4 = 0x18; break; case 3: plVar7 = (long *)**(long **)this; plVar2 = *(long **)this + 2; uVar4 = 0x20; if (plVar7 != plVar2) { uVar5 = *plVar2 + 1; LAB_0015ce78: operator_delete(plVar7,uVar5); } break; default: goto switchD_0015ce21_caseD_4; case 8: plVar7 = (long *)**(long **)this; uVar4 = 0x28; if (plVar7 != (long *)0x0) { uVar5 = (*(long **)this)[2] - (long)plVar7; goto LAB_0015ce78; } } operator_delete(*(void **)this,uVar4); switchD_0015ce21_caseD_4: return; }
39,806
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>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t)
monkey531[P]llama/common/json.hpp
void destroy(value_t t) { if ( (t == value_t::object && object == nullptr) || (t == value_t::array && array == nullptr) || (t == value_t::string && string == nullptr) || (t == value_t::binary && binary == nullptr) ) { //not initialized (e.g. due to exception in the ctor) return; } if (t == value_t::array || t == value_t::object) { // flatten the current json_value to a heap-allocated stack std::vector<basic_json> stack; // move the top-level items to stack if (t == value_t::array) { stack.reserve(array->size()); std::move(array->begin(), array->end(), std::back_inserter(stack)); } else { stack.reserve(object->size()); for (auto&& it : *object) { stack.push_back(std::move(it.second)); } } while (!stack.empty()) { // move the last item to local variable to be processed basic_json current_item(std::move(stack.back())); stack.pop_back(); // if current_item is array/object, move // its children to the stack to be processed later if (current_item.is_array()) { std::move(current_item.m_data.m_value.array->begin(), current_item.m_data.m_value.array->end(), std::back_inserter(stack)); current_item.m_data.m_value.array->clear(); } else if (current_item.is_object()) { for (auto&& it : *current_item.m_data.m_value.object) { stack.push_back(std::move(it.second)); } current_item.m_data.m_value.object->clear(); } // it's now safe that current_item get destructed // since it doesn't have any children } } switch (t) { case value_t::object: { AllocatorType<object_t> alloc; std::allocator_traits<decltype(alloc)>::destroy(alloc, object); std::allocator_traits<decltype(alloc)>::deallocate(alloc, object, 1); break; } case value_t::array: { AllocatorType<array_t> alloc; std::allocator_traits<decltype(alloc)>::destroy(alloc, array); std::allocator_traits<decltype(alloc)>::deallocate(alloc, array, 1); break; } case value_t::string: { AllocatorType<string_t> alloc; std::allocator_traits<decltype(alloc)>::destroy(alloc, string); std::allocator_traits<decltype(alloc)>::deallocate(alloc, string, 1); break; } case value_t::binary: { AllocatorType<binary_t> alloc; std::allocator_traits<decltype(alloc)>::destroy(alloc, binary); std::allocator_traits<decltype(alloc)>::deallocate(alloc, binary, 1); break; } case value_t::null: case value_t::boolean: case value_t::number_integer: case value_t::number_unsigned: case value_t::number_float: case value_t::discarded: default: { break; } } }
O2
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp cmpl $0x1, %esi sete %al movq (%rdi), %rcx testq %rcx, %rcx sete %dl testb %dl, %al jne 0x41fbc movl %esi, %r14d testq %rcx, %rcx sete %al movl %r14d, %edx andb $-0x2, %dl cmpb $0x2, %dl sete %dl cmpb $0x8, %r14b sete %sil orb %dl, %sil testb %al, %sil jne 0x41fbc movq %rdi, %rbx leal -0x1(%r14), %eax cmpb $0x1, %al ja 0x41f2a xorps %xmm0, %xmm0 movaps %xmm0, (%rsp) andq $0x0, 0x10(%rsp) movq 0x8(%rcx), %rax subq (%rcx), %rax cmpb $0x2, %r14b jne 0x41f53 sarq $0x4, %rax movq %rsp, %rdi movq %rax, %rsi callq 0x41ff2 movq (%rbx), %rax movq (%rax), %rdi movq 0x8(%rax), %rsi movq %rsp, %rdx callq 0x420cc leaq 0x18(%rsp), %r15 movq %rsp, %r12 movq 0x8(%rsp), %rsi cmpq %rsi, (%rsp) je 0x41f22 addq $-0x10, %rsi movq %r15, %rdi callq 0x40eac movq 0x8(%rsp), %rdi addq $-0x10, %rdi movq %rdi, 0x8(%rsp) callq 0x3c602 movzbl 0x18(%rsp), %eax cmpl $0x1, %eax je 0x41ee5 cmpl $0x2, %eax jne 0x41f15 movq 0x20(%rsp), %rax movq (%rax), %rdi movq 0x8(%rax), %rsi movq %r12, %rdx callq 0x420cc movq 0x20(%rsp), %rdi callq 0x4209a jmp 0x41f15 movq 0x20(%rsp), %rax movq (%rax), %r13 movq 0x8(%rax), %rbp cmpq %rbp, %r13 je 0x41f0b addq $0x20, %r13 movq %r12, %rdi movq %r13, %rsi callq 0x40ee0 addq $0x10, %r13 jmp 0x41ef1 movq 0x20(%rsp), %rdi callq 0x420a2 movq %r15, %rdi callq 0x3c602 jmp 0x41e88 movq %rsp, %rdi callq 0x420aa movzbl %r14b, %eax decl %eax cmpl $0x7, %eax ja 0x41fbc leaq 0x67938(%rip), %rcx # 0xa9878 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq (%rbx), %rdi callq 0x42164 jmp 0x41f99 pushq $0x30 popq %rcx cqto idivq %rcx movq %rsp, %rdi movq %rax, %rsi callq 0x41ff2 movq (%rbx), %rax movq (%rax), %r15 movq 0x8(%rax), %r13 movq %rsp, %r12 cmpq %r13, %r15 je 0x41e80 addq $0x20, %r15 movq %r12, %rdi movq %r15, %rsi callq 0x40ee0 addq $0x10, %r15 jmp 0x41f73 movq (%rbx), %rdi callq 0x24158 pushq $0x20 jmp 0x41fb3 movq (%rbx), %rdi callq 0x420aa pushq $0x18 jmp 0x41fb3 movq (%rbx), %rdi callq 0x41d6a pushq $0x28 popq %rsi movq (%rbx), %rdi callq 0x238a0 addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x41fcf jmp 0x41fd4 movq %rax, %rbx jmp 0x41fe1 movq %rax, %rbx leaq 0x18(%rsp), %rdi callq 0x3c602 movq %rsp, %rdi callq 0x420aa movq %rbx, %rdi callq 0x23f10 nop
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10json_value7destroyENS0_6detail7value_tE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h cmp esi, 1 setz al mov rcx, [rdi] test rcx, rcx setz dl test al, dl jnz def_41F47; jumptable 0000000000041F47 default case, cases 4-7 mov r14d, esi test rcx, rcx setz al mov edx, r14d and dl, 0FEh cmp dl, 2 setz dl cmp r14b, 8 setz sil or sil, dl test sil, al jnz def_41F47; jumptable 0000000000041F47 default case, cases 4-7 mov rbx, rdi lea eax, [r14-1] cmp al, 1 ja loc_41F2A xorps xmm0, xmm0 movaps [rsp+58h+var_58], xmm0 and [rsp+58h+var_48], 0 mov rax, [rcx+8] sub rax, [rcx] cmp r14b, 2 jnz loc_41F53 sar rax, 4 mov rdi, rsp mov rsi, rax call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE7reserveEm; 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>>::reserve(ulong) mov rax, [rbx] mov rdi, [rax] mov rsi, [rax+8] mov rdx, rsp call _ZNSt11__copy_moveILb1ELb0ESt26random_access_iterator_tagE8__copy_mIPN8nlohmann16json_abi_v3_11_310basic_jsonINS4_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS4_14adl_serializerES7_IhSaIhEEvEESt20back_insert_iteratorIS7_ISH_SaISH_EEEEET0_T_SO_SN_; std::__copy_move<true,false,std::random_access_iterator_tag>::__copy_m<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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> *,std::back_insert_iterator<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>>>) loc_41E80: lea r15, [rsp+58h+var_40] mov r12, rsp loc_41E88: mov rsi, qword ptr [rsp+58h+var_58+8] cmp qword ptr [rsp+58h+var_58], rsi jz loc_41F22 add rsi, 0FFFFFFFFFFFFFFF0h mov rdi, r15 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, qword ptr [rsp+58h+var_58+8] add rdi, 0FFFFFFFFFFFFFFF0h mov qword ptr [rsp+58h+var_58+8], rdi 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() movzx eax, [rsp+58h+var_40] cmp eax, 1 jz short loc_41EE5 cmp eax, 2 jnz short loc_41F15 mov rax, [rsp+58h+var_38] mov rdi, [rax] mov rsi, [rax+8] mov rdx, r12 call _ZNSt11__copy_moveILb1ELb0ESt26random_access_iterator_tagE8__copy_mIPN8nlohmann16json_abi_v3_11_310basic_jsonINS4_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS4_14adl_serializerES7_IhSaIhEEvEESt20back_insert_iteratorIS7_ISH_SaISH_EEEEET0_T_SO_SN_; std::__copy_move<true,false,std::random_access_iterator_tag>::__copy_m<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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> *,std::back_insert_iterator<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>) mov rdi, [rsp+58h+var_38] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE5clearEv; 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>>::clear(void) jmp short loc_41F15 loc_41EE5: mov rax, [rsp+58h+var_38] mov r13, [rax] mov rbp, [rax+8] loc_41EF1: cmp r13, rbp jz short loc_41F0B add r13, 20h ; ' ' mov rdi, r12 mov rsi, r13 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> &&) add r13, 10h jmp short loc_41EF1 loc_41F0B: mov rdi, [rsp+58h+var_38] call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE5clearEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::clear(void) loc_41F15: 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() jmp loc_41E88 loc_41F22: mov rdi, rsp call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; 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>>::~vector() loc_41F2A: movzx eax, r14b dec eax; switch 8 cases cmp eax, 7 ja def_41F47; jumptable 0000000000041F47 default case, cases 4-7 lea rcx, jpt_41F47 movsxd rax, ds:(jpt_41F47 - 0A9878h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_41F49: mov rdi, [rbx]; jumptable 0000000000041F47 case 1 call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EED2Ev; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::~vector() jmp short loc_41F99 loc_41F53: push 30h ; '0' pop rcx cqo idiv rcx mov rdi, rsp mov rsi, rax call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE7reserveEm; 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>>::reserve(ulong) mov rax, [rbx] mov r15, [rax] mov r13, [rax+8] mov r12, rsp loc_41F73: cmp r15, r13 jz loc_41E80 add r15, 20h ; ' ' mov rdi, r12 mov rsi, r15 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> &&) add r15, 10h jmp short loc_41F73 loc_41F91: mov rdi, [rbx]; jumptable 0000000000041F47 case 3 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_41F99: push 20h ; ' ' jmp short loc_41FB3 loc_41F9D: mov rdi, [rbx]; jumptable 0000000000041F47 case 2 call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; 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>>::~vector() push 18h jmp short loc_41FB3 loc_41FA9: mov rdi, [rbx]; jumptable 0000000000041F47 case 8 call _ZNSt12_Vector_baseIhSaIhEED2Ev; std::_Vector_base<uchar>::~_Vector_base() push 28h ; '(' loc_41FB3: pop rsi; unsigned __int64 mov rdi, [rbx]; void * call __ZdlPvm; operator delete(void *,ulong) def_41F47: add rsp, 28h; jumptable 0000000000041F47 default case, cases 4-7 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_41FCF jmp short loc_41FD4 loc_41FCF: mov rbx, rax jmp short loc_41FE1 loc_41FD4: mov rbx, rax lea rdi, [rsp+arg_10] 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_41FE1: mov rdi, rsp call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; 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>>::~vector() mov rdi, rbx call __Unwind_Resume
void nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::json_value::destroy( void **a1, unsigned int a2) { _QWORD *v2; // rcx long long v3; // rdx long long v4; // rax long long v5; // r13 long long v6; // rbp long long v7; // r15 long long v8; // r13 long long v9; // r15 __int128 v10; // [rsp+0h] [rbp-58h] BYREF long long v11; // [rsp+10h] [rbp-48h] char v12[8]; // [rsp+18h] [rbp-40h] BYREF _QWORD *v13; // [rsp+20h] [rbp-38h] v2 = *a1; if ( *a1 != 0LL || a2 != 1 ) { v3 = a2; LOBYTE(v3) = (a2 & 0xFE) == 2; if ( ((v2 == 0LL) & (unsigned __int8)(v3 | ((_BYTE)a2 == 8))) == 0 ) { if ( (unsigned __int8)(a2 - 1) <= 1u ) { v10 = 0LL; v11 = 0LL; v4 = v2[1] - *v2; if ( (_BYTE)a2 == 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>>::reserve( &v10, v4 >> 4, v3); std::__copy_move<true,false,std::random_access_iterator_tag>::__copy_m<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::back_insert_iterator<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>>>>( *(_QWORD *)*a1, *((_QWORD *)*a1 + 1), &v10); } else { 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>>::reserve( &v10, v4 / 48, v4 % 48); v7 = *(_QWORD *)*a1; v8 = *((_QWORD *)*a1 + 1); while ( v7 != v8 ) { v9 = v7 + 32; 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>>( (long long)&v10, v9); v7 = v9 + 16; } } while ( (_QWORD)v10 != *((_QWORD *)&v10 + 1) ) { nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( v12, *((_QWORD *)&v10 + 1) - 16LL); *((_QWORD *)&v10 + 1) -= 16LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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 *)&v10 + 1)); if ( v12[0] == 1 ) { v5 = *v13; v6 = v13[1]; while ( v5 != v6 ) { 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>>( (long long)&v10, v5 + 32); v5 += 48LL; } std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::clear(v13); } else if ( v12[0] == 2 ) { std::__copy_move<true,false,std::random_access_iterator_tag>::__copy_m<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::back_insert_iterator<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>>>>( *v13, v13[1], &v10); 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>>::clear(v13); } nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v12); } 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>>::~vector(&v10); } switch ( (char)a2 ) { case 1: std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::~vector(*a1); goto LABEL_22; case 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>>::~vector(*a1); operator delete(*a1, 0x18uLL); break; case 3: std::string::~string(*a1); LABEL_22: operator delete(*a1, 0x20uLL); break; case 8: std::_Vector_base<unsigned char>::~_Vector_base(*a1); operator delete(*a1, 0x28uLL); break; default: return; } } } }
destroy: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 CMP ESI,0x1 SETZ AL MOV RCX,qword ptr [RDI] TEST RCX,RCX SETZ DL TEST AL,DL JNZ 0x00141fbc MOV R14D,ESI TEST RCX,RCX SETZ AL MOV EDX,R14D AND DL,0xfe CMP DL,0x2 SETZ DL CMP R14B,0x8 SETZ SIL OR SIL,DL TEST SIL,AL JNZ 0x00141fbc MOV RBX,RDI LEA EAX,[R14 + -0x1] CMP AL,0x1 JA 0x00141f2a XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP],XMM0 AND qword ptr [RSP + 0x10],0x0 MOV RAX,qword ptr [RCX + 0x8] SUB RAX,qword ptr [RCX] CMP R14B,0x2 JNZ 0x00141f53 SAR RAX,0x4 LAB_00141e63: MOV RDI,RSP MOV RSI,RAX CALL 0x00141ff2 MOV RAX,qword ptr [RBX] MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RAX + 0x8] MOV RDX,RSP CALL 0x001420cc LAB_00141e80: LEA R15,[RSP + 0x18] MOV R12,RSP LAB_00141e88: MOV RSI,qword ptr [RSP + 0x8] CMP qword ptr [RSP],RSI JZ 0x00141f22 ADD RSI,-0x10 MOV RDI,R15 CALL 0x00140eac MOV RDI,qword ptr [RSP + 0x8] ADD RDI,-0x10 MOV qword ptr [RSP + 0x8],RDI CALL 0x0013c602 MOVZX EAX,byte ptr [RSP + 0x18] CMP EAX,0x1 JZ 0x00141ee5 CMP EAX,0x2 JNZ 0x00141f15 MOV RAX,qword ptr [RSP + 0x20] MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RAX + 0x8] LAB_00141ed1: MOV RDX,R12 CALL 0x001420cc MOV RDI,qword ptr [RSP + 0x20] CALL 0x0014209a JMP 0x00141f15 LAB_00141ee5: MOV RAX,qword ptr [RSP + 0x20] MOV R13,qword ptr [RAX] MOV RBP,qword ptr [RAX + 0x8] LAB_00141ef1: CMP R13,RBP JZ 0x00141f0b ADD R13,0x20 LAB_00141efa: MOV RDI,R12 MOV RSI,R13 CALL 0x00140ee0 ADD R13,0x10 JMP 0x00141ef1 LAB_00141f0b: MOV RDI,qword ptr [RSP + 0x20] CALL 0x001420a2 LAB_00141f15: MOV RDI,R15 CALL 0x0013c602 JMP 0x00141e88 LAB_00141f22: MOV RDI,RSP CALL 0x001420aa LAB_00141f2a: MOVZX EAX,R14B DEC EAX CMP EAX,0x7 JA 0x00141fbc LEA RCX,[0x1a9878] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_1: MOV RDI,qword ptr [RBX] CALL 0x00142164 JMP 0x00141f99 LAB_00141f53: PUSH 0x30 POP RCX CQO IDIV RCX LAB_00141f5b: MOV RDI,RSP MOV RSI,RAX CALL 0x00141ff2 MOV RAX,qword ptr [RBX] MOV R15,qword ptr [RAX] MOV R13,qword ptr [RAX + 0x8] MOV R12,RSP LAB_00141f73: CMP R15,R13 JZ 0x00141e80 ADD R15,0x20 LAB_00141f80: MOV RDI,R12 MOV RSI,R15 CALL 0x00140ee0 LAB_00141f8b: ADD R15,0x10 JMP 0x00141f73 caseD_3: MOV RDI,qword ptr [RBX] CALL 0x00124158 LAB_00141f99: PUSH 0x20 JMP 0x00141fb3 caseD_2: MOV RDI,qword ptr [RBX] CALL 0x001420aa PUSH 0x18 JMP 0x00141fb3 caseD_8: MOV RDI,qword ptr [RBX] CALL 0x00141d6a PUSH 0x28 LAB_00141fb3: POP RSI MOV RDI,qword ptr [RBX] CALL 0x001238a0 caseD_4: ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP 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>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t) */ void __thiscall nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::json_value::destroy(json_value *this,uint param_2) { long *plVar1; long lVar2; byte bVar3; long lVar4; ulong uStack_60; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *pbStack_50; int8 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> local_40 [8]; vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *local_38; plVar1 = *(long **)this; if (param_2 == 1 && plVar1 == (long *)0x0) { return; } bVar3 = (byte)param_2; if ((bVar3 == 8 || (bVar3 & 0xfe) == 2) && plVar1 == (long *)0x0) { return; } if ((byte)(bVar3 - 1) < 2) { 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> *)0x0; pbStack_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> *)0x0; local_48 = 0; if (bVar3 == 2) { /* try { // try from 00141e63 to 00141e7f has its CatchHandler @ 00141fcb */ 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>>> ::reserve((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *)&local_58,plVar1[1] - *plVar1 >> 4); std::__copy_move<true,false,std::random_access_iterator_tag>:: __copy_m<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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::back_insert_iterator<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>>>>> (**(int8 **)this,(*(int8 **)this)[1],&local_58); } else { /* try { // try from 00141f5b to 00141f65 has its CatchHandler @ 00141fcb */ 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>>> ::reserve((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *)&local_58,(plVar1[1] - *plVar1) / 0x30); lVar2 = (*(long **)this)[1]; for (lVar4 = **(long **)this; lVar4 != lVar2; lVar4 = lVar4 + 0x30) { /* try { // try from 00141f80 to 00141f8a has its CatchHandler @ 00141fcf */ 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>>> *)&local_58,(basic_json *)(lVar4 + 0x20)); } } while (local_58 != pbStack_50) { basic_json(local_40,pbStack_50 + -0x10); pbStack_50 = pbStack_50 + -0x10; ~basic_json(pbStack_50); if (local_40[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> )0x1) { lVar2 = *(long *)(local_38 + 8); for (lVar4 = *(long *)local_38; lVar4 != lVar2; lVar4 = lVar4 + 0x30) { /* try { // try from 00141efa to 00141f04 has its CatchHandler @ 00141fd4 */ 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>>> *)&local_58,(basic_json *)(lVar4 + 0x20)); } std:: vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::clear((vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *)local_38); } else if (local_40[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> )0x2) { /* try { // try from 00141ed1 to 00141ed8 has its CatchHandler @ 00141fcd */ std::__copy_move<true,false,std::random_access_iterator_tag>:: __copy_m<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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::back_insert_iterator<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>>>>> (*(long *)local_38,*(long *)(local_38 + 8),&local_58); 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>>> ::clear(local_38); } ~basic_json(local_40); } 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>>> ::~vector((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *)&local_58); } switch(param_2 & 0xff) { case 1: std:: vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::~vector(*(vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> **)this); goto LAB_00141f99; case 2: 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>>> ::~vector(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)this); uStack_60 = 0x18; break; case 3: std::__cxx11::string::~string(*(string **)this); LAB_00141f99: uStack_60 = 0x20; break; default: goto switchD_00141f47_caseD_4; case 8: std::_Vector_base<unsigned_char,std::allocator<unsigned_char>>::~_Vector_base (*(_Vector_base<unsigned_char,std::allocator<unsigned_char>> **)this); uStack_60 = 0x28; } operator_delete(*(void **)this,uStack_60); switchD_00141f47_caseD_4: return; }
39,807
VideoCommon::PostProcessingConfiguration::LoadShader(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
Dolphin-anty/Source/Core/VideoCommon/PostProcessing.cpp
void PostProcessingConfiguration::LoadShader(const std::string& shader) { // Load the shader from the configuration if there isn't one sent to us. m_current_shader = shader; if (shader.empty()) { LoadDefaultShader(); return; } std::string sub_dir = ""; if (g_Config.stereo_mode == StereoMode::Anaglyph) { sub_dir = ANAGLYPH_DIR DIR_SEP; } else if (g_Config.stereo_mode == StereoMode::Passive) { sub_dir = PASSIVE_DIR DIR_SEP; } std::string code; if (!LoadShaderFromFile(shader, sub_dir, code)) { LoadDefaultShader(); return; } LoadOptions(code); // Note that this will build the shaders with the custom options values users // might have set in the settings LoadOptionsConfiguration(); m_current_shader_code = code; }
O3
cpp
VideoCommon::PostProcessingConfiguration::LoadShader(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rsi, %r14 movq %rdi, %rbx addq $0x10, %rdi callq 0x176344 cmpq $0x0, 0x8(%r14) je 0x423aa1 leaq 0x18(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0x7b3fc3(%rip), %rdx # 0xbd7a28 leaq 0x8(%rsp), %rdi movq %rdx, %rsi callq 0x176f78 leaq 0xe30b9f(%rip), %rax # 0x1254618 movl 0x200(%rax), %eax cmpl $0x5, %eax je 0x423ab4 cmpl $0x3, %eax jne 0x423ad1 leaq 0x8(%rsp), %rdi movq 0x8(%rdi), %rdx leaq 0x62f5cf(%rip), %rcx # 0xa53068 movl $0x9, %r8d jmp 0x423aca movq %rbx, %rdi addq $0x48, %rsp popq %rbx popq %r12 popq %r14 popq %r15 jmp 0x423b6a leaq 0x8(%rsp), %rdi movq 0x8(%rdi), %rdx leaq 0x697aa3(%rip), %rcx # 0xabb567 movl $0x8, %r8d xorl %esi, %esi callq 0x1766c4 leaq 0x38(%rsp), %r12 movq %r12, -0x10(%r12) movq $0x0, -0x8(%r12) movb $0x0, (%r12) leaq 0x8(%rsp), %rsi leaq 0x28(%rsp), %rdx movq %r14, %rdi callq 0x423bce testb %al, %al je 0x423b28 leaq 0x28(%rsp), %r14 movq %rbx, %rdi movq %r14, %rsi callq 0x423f8a movq %rbx, %rdi callq 0x424a5a addq $0x30, %rbx movq %rbx, %rdi movq %r14, %rsi callq 0x176344 jmp 0x423b30 movq %rbx, %rdi callq 0x423b6a movq 0x28(%rsp), %rdi cmpq %r12, %rdi je 0x423b47 movq 0x38(%rsp), %rsi incq %rsi callq 0x10fa70 movq 0x8(%rsp), %rdi cmpq %r15, %rdi je 0x423b5e movq 0x18(%rsp), %rsi incq %rsi callq 0x10fa70 addq $0x48, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
_ZN11VideoCommon27PostProcessingConfiguration10LoadShaderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push r15 push r14 push r12 push rbx sub rsp, 48h mov r14, rsi mov rbx, rdi add rdi, 10h call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&) cmp qword ptr [r14+8], 0 jz short loc_423AA1 lea r15, [rsp+68h+var_50] mov [r15-10h], r15 lea rdx, byte_BD7A28 lea rdi, [rsp+68h+var_60] mov rsi, rdx 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 rax, g_Config mov eax, [rax+200h] cmp eax, 5 jz short loc_423AB4 cmp eax, 3 jnz short loc_423AD1 lea rdi, [rsp+68h+var_60] mov rdx, [rdi+8] lea rcx, aAnaglyph; "Anaglyph/" mov r8d, 9 jmp short loc_423ACA loc_423AA1: mov rdi, rbx; this add rsp, 48h pop rbx pop r12 pop r14 pop r15 jmp _ZN11VideoCommon27PostProcessingConfiguration17LoadDefaultShaderEv; VideoCommon::PostProcessingConfiguration::LoadDefaultShader(void) loc_423AB4: lea rdi, [rsp+68h+var_60] mov rdx, [rdi+8] lea rcx, _ZZL10WriteStageR10ShaderCodePK21pixel_shader_uid_datai7APITypebbE17tev_ind_fmt_shift+4; "Passive/" mov r8d, 8 loc_423ACA: xor esi, esi call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong) loc_423AD1: lea r12, [rsp+68h+var_30] mov [r12-10h], r12 mov qword ptr [r12-8], 0 mov byte ptr [r12], 0 lea rsi, [rsp+68h+var_60] lea rdx, [rsp+68h+var_40] mov rdi, r14 call _ZN11VideoCommonL18LoadShaderFromFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_RS5_; VideoCommon::LoadShaderFromFile(std::string const&,std::string const&,std::string&) test al, al jz short loc_423B28 lea r14, [rsp+68h+var_40] mov rdi, rbx mov rsi, r14 call _ZN11VideoCommon27PostProcessingConfiguration11LoadOptionsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; VideoCommon::PostProcessingConfiguration::LoadOptions(std::string const&) mov rdi, rbx; this call _ZN11VideoCommon27PostProcessingConfiguration24LoadOptionsConfigurationEv; VideoCommon::PostProcessingConfiguration::LoadOptionsConfiguration(void) add rbx, 30h ; '0' mov rdi, rbx mov rsi, r14 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&) jmp short loc_423B30 loc_423B28: mov rdi, rbx; this call _ZN11VideoCommon27PostProcessingConfiguration17LoadDefaultShaderEv; VideoCommon::PostProcessingConfiguration::LoadDefaultShader(void) loc_423B30: mov rdi, [rsp+68h+var_40]; void * cmp rdi, r12 jz short loc_423B47 mov rsi, [rsp+68h+var_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_423B47: mov rdi, [rsp+68h+var_60]; void * cmp rdi, r15 jz short loc_423B5E mov rsi, [rsp+68h+var_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_423B5E: add rsp, 48h pop rbx pop r12 pop r14 pop r15 retn
void VideoCommon::PostProcessingConfiguration::LoadShader( VideoCommon::PostProcessingConfiguration *this, long long a2) { int v2; // eax unsigned long long v3; // rdx char *v4; // rcx unsigned long long v5; // r8 void *v6; // [rsp+8h] [rbp-60h] BYREF unsigned long long v7; // [rsp+10h] [rbp-58h] _QWORD v8[2]; // [rsp+18h] [rbp-50h] BYREF void *v9[2]; // [rsp+28h] [rbp-40h] BYREF _QWORD v10[6]; // [rsp+38h] [rbp-30h] BYREF std::string::_M_assign((long long)this + 16, a2); if ( !*(_QWORD *)(a2 + 8) ) { VideoCommon::PostProcessingConfiguration::LoadDefaultShader(this); return; } v6 = v8; std::string::_M_construct<char const*>(&v6, &byte_BD7A28, (long long)&byte_BD7A28); v2 = *((_DWORD *)&g_Config + 128); if ( v2 == 5 ) { v3 = v7; v4 = "Passive/"; v5 = 8LL; goto LABEL_7; } if ( v2 == 3 ) { v3 = v7; v4 = "Anaglyph/"; v5 = 9LL; LABEL_7: std::string::_M_replace(&v6, 0LL, v3, v4, v5); } v9[0] = v10; v9[1] = 0LL; LOBYTE(v10[0]) = 0; if ( (unsigned __int8)VideoCommon::LoadShaderFromFile(a2, &v6, v9) ) { VideoCommon::PostProcessingConfiguration::LoadOptions(this, v9); VideoCommon::PostProcessingConfiguration::LoadOptionsConfiguration(this); std::string::_M_assign((long long)this + 48, (long long)v9); } else { VideoCommon::PostProcessingConfiguration::LoadDefaultShader(this); } if ( v9[0] != v10 ) operator delete(v9[0], v10[0] + 1LL); if ( v6 != v8 ) operator delete(v6, v8[0] + 1LL); }
vector: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI MOV RAX,qword ptr [RSI + 0x8] MOV RCX,qword ptr [RSI] MOV R15,RAX SUB R15,RCX SAR R15,0x1 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI],XMM0 MOV qword ptr [RDI + 0x10],0x0 CMP RAX,RCX JZ 0x00423a77 MOV RDI,RBX MOV RSI,R15 XOR EDX,EDX CALL 0x0029d868 MOV R12,RAX JMP 0x00423a7a LAB_00423a77: XOR R12D,R12D LAB_00423a7a: MOV qword ptr [RBX],R12 MOV qword ptr [RBX + 0x8],R12 LEA RAX,[R12 + R15*0x2] MOV qword ptr [RBX + 0x10],RAX MOV RSI,qword ptr [R14] MOV R14,qword ptr [R14 + 0x8] SUB R14,RSI JZ 0x00423aa0 MOV RDI,R12 MOV RDX,R14 CALL 0x0020fb10 LAB_00423aa0: ADD R12,R14 MOV qword ptr [RBX + 0x8],R12 ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
/* std::vector<unsigned short, std::allocator<unsigned short> >::vector(std::vector<unsigned short, std::allocator<unsigned short> > const&) */ void __thiscall std::vector<unsigned_short,std::allocator<unsigned_short>>::vector (vector<unsigned_short,std::allocator<unsigned_short>> *this,vector *param_1) { long lVar1; long lVar2; void *__dest; size_t __n; void *pvVar3; lVar1 = *(long *)(param_1 + 8); lVar2 = *(long *)param_1; pvVar3 = (void *)(lVar1 - lVar2 >> 1); *(int8 *)this = 0; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; if (lVar1 == lVar2) { __dest = (void *)0x0; } else { __dest = (void *)__gnu_cxx::new_allocator<unsigned_short>::allocate((ulong)this,pvVar3); } *(void **)this = __dest; *(void **)(this + 8) = __dest; *(void **)(this + 0x10) = (void *)((long)__dest + (long)pvVar3 * 2); __n = *(long *)(param_1 + 8) - (long)*(void **)param_1; if (__n != 0) { memmove(__dest,*(void **)param_1,__n); } *(size_t *)(this + 8) = (long)__dest + __n; return; }
39,808
mi_ft_del
eloqsql/storage/myisam/ft_update.c
int _mi_ft_del(MI_INFO *info, uint keynr, uchar *keybuf, const uchar *record, my_off_t pos) { int error= -1; FT_WORD *wlist; DBUG_ENTER("_mi_ft_del"); DBUG_PRINT("enter",("keynr: %d",keynr)); if ((wlist=_mi_ft_parserecord(info, keynr, record, &info->ft_memroot))) error=_mi_ft_erase(info,keynr,keybuf,wlist,pos); free_root(&info->ft_memroot, MYF(MY_MARK_BLOCKS_FREE)); DBUG_PRINT("exit",("Return: %d",error)); DBUG_RETURN(error); }
O0
c
mi_ft_del: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movl $0xffffffff, -0x2c(%rbp) # imm = 0xFFFFFFFF jmp 0xa35d4 movq -0x8(%rbp), %rdi movl -0xc(%rbp), %esi movq -0x20(%rbp), %rdx movq -0x8(%rbp), %rcx addq $0x90, %rcx callq 0xa2e70 movq %rax, -0x38(%rbp) cmpq $0x0, %rax je 0xa3614 movq -0x8(%rbp), %rdi movl -0xc(%rbp), %esi movq -0x18(%rbp), %rdx movq -0x38(%rbp), %rcx movq -0x28(%rbp), %r8 callq 0xa3400 movl %eax, -0x2c(%rbp) movq -0x8(%rbp), %rdi addq $0x90, %rdi movl $0x2, %esi callq 0xeda10 jmp 0xa362b jmp 0xa362d movl -0x2c(%rbp), %eax movl %eax, -0x3c(%rbp) movl -0x3c(%rbp), %eax addq $0x40, %rsp popq %rbp retq nopl (%rax)
_mi_ft_del: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov [rbp+var_2C], 0FFFFFFFFh jmp short $+2 loc_A35D4: mov rdi, [rbp+var_8] mov esi, [rbp+var_C] mov rdx, [rbp+var_20] mov rcx, [rbp+var_8] add rcx, 90h call _mi_ft_parserecord mov [rbp+var_38], rax cmp rax, 0 jz short loc_A3614 mov rdi, [rbp+var_8] mov esi, [rbp+var_C] mov rdx, [rbp+var_18] mov rcx, [rbp+var_38] mov r8, [rbp+var_28] call _mi_ft_erase mov [rbp+var_2C], eax loc_A3614: mov rdi, [rbp+var_8] add rdi, 90h mov esi, 2 call free_root jmp short $+2 loc_A362B: jmp short $+2 loc_A362D: mov eax, [rbp+var_2C] mov [rbp+var_3C], eax mov eax, [rbp+var_3C] add rsp, 40h pop rbp retn
long long mi_ft_del(_QWORD *a1, unsigned int a2, long long a3, long long a4, long long a5) { _QWORD *v6; // [rsp+8h] [rbp-38h] unsigned int v7; // [rsp+14h] [rbp-2Ch] v7 = -1; v6 = (_QWORD *)mi_ft_parserecord(a1, a2, a4, (long long)(a1 + 18)); if ( v6 ) v7 = mi_ft_erase((long long)a1, a2, a3, v6, a5); free_root(a1 + 18, 2LL); return v7; }
_mi_ft_del: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV dword ptr [RBP + -0x2c],0xffffffff JMP 0x001a35d4 LAB_001a35d4: MOV RDI,qword ptr [RBP + -0x8] MOV ESI,dword ptr [RBP + -0xc] MOV RDX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x8] ADD RCX,0x90 CALL 0x001a2e70 MOV qword ptr [RBP + -0x38],RAX CMP RAX,0x0 JZ 0x001a3614 MOV RDI,qword ptr [RBP + -0x8] MOV ESI,dword ptr [RBP + -0xc] MOV RDX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x38] MOV R8,qword ptr [RBP + -0x28] CALL 0x001a3400 MOV dword ptr [RBP + -0x2c],EAX LAB_001a3614: MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x90 MOV ESI,0x2 CALL 0x001eda10 JMP 0x001a362b LAB_001a362b: JMP 0x001a362d LAB_001a362d: MOV EAX,dword ptr [RBP + -0x2c] MOV dword ptr [RBP + -0x3c],EAX MOV EAX,dword ptr [RBP + -0x3c] ADD RSP,0x40 POP RBP RET
int4 _mi_ft_del(long param_1,int4 param_2,int8 param_3,int8 param_4,int8 param_5) { long lVar1; int4 local_34; local_34 = 0xffffffff; lVar1 = _mi_ft_parserecord(param_1,param_2,param_4,param_1 + 0x90); if (lVar1 != 0) { local_34 = _mi_ft_erase(param_1,param_2,param_3,lVar1,param_5); } free_root(param_1 + 0x90,2); return local_34; }
39,809
nlohmann::json_abi_v3_11_3::detail::invalid_iterator nlohmann::json_abi_v3_11_3::detail::invalid_iterator::create<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const*)
monkey531[P]llama/common/json.hpp
static invalid_iterator create(int id_, const std::string& what_arg, BasicJsonContext context) { const std::string w = concat(exception::name("invalid_iterator", id_), exception::diagnostics(context), what_arg); return {id_, w.c_str()}; }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::invalid_iterator nlohmann::json_abi_v3_11_3::detail::invalid_iterator::create<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x98, %rsp movq %rdx, %r15 movl %esi, %ebp movq %rdi, %rbx leaq 0x38(%rsp), %r13 movq %r13, -0x10(%r13) leaq 0x5b32d(%rip), %rsi # 0xbc22e leaq 0x5b336(%rip), %rdx # 0xbc23e leaq 0x28(%rsp), %rdi callq 0x25304 leaq 0x48(%rsp), %rdi leaq 0x28(%rsp), %rsi movl %ebp, %edx callq 0x510ae leaq 0x78(%rsp), %r14 movq %r14, -0x10(%r14) xorl %eax, %eax movq %rax, -0x8(%r14) movb %al, (%r14) leaq 0x18(%rsp), %r12 movq %r12, -0x10(%r12) movq %rax, -0x8(%r12) movb %al, (%r12) movq 0x8(%r15), %rsi addq 0x50(%rsp), %rsi leaq 0x8(%rsp), %rdi callq 0x19c00 movq 0x48(%rsp), %rsi movq 0x50(%rsp), %rdx leaq 0x8(%rsp), %rdi callq 0x19210 movq 0x68(%rsp), %rsi movq 0x70(%rsp), %rdx leaq 0x8(%rsp), %rdi callq 0x19210 movq (%r15), %rsi movq 0x8(%r15), %rdx leaq 0x8(%rsp), %rdi callq 0x19210 movq 0x68(%rsp), %rdi cmpq %r14, %rdi je 0x60fab movq 0x78(%rsp), %rsi incq %rsi callq 0x197f0 leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x60fc6 movq 0x58(%rsp), %rsi incq %rsi callq 0x197f0 movq 0x28(%rsp), %rdi cmpq %r13, %rdi je 0x60fdd movq 0x38(%rsp), %rsi incq %rsi callq 0x197f0 movq 0x8(%rsp), %rdx movq %rbx, %rdi movl %ebp, %esi callq 0x512aa leaq 0x8e415(%rip), %rax # 0xef408 addq $0x10, %rax movq %rax, (%rbx) movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x61011 movq 0x18(%rsp), %rsi incq %rsi callq 0x197f0 movq %rbx, %rax addq $0x98, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x6109f movq 0x18(%rsp), %rsi jmp 0x61097 movq %rax, %rbx jmp 0x61088 movq %rax, %rbx jmp 0x6109f movq %rdx, %rbx movq %rax, %r15 movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x61061 movq 0x18(%rsp), %rsi incq %rsi callq 0x197f0 leaq 0x68(%rsp), %rdi leaq 0x48(%rsp), %rdx leaq 0x88(%rsp), %r12 movq %r14, %rsi movq %r15, %rcx movl %ebx, %r8d movq %r12, %r9 callq 0x1a9aa movq (%r12), %rbx movq 0x28(%rsp), %rdi cmpq %r13, %rdi je 0x6109f movq 0x38(%rsp), %rsi incq %rsi callq 0x197f0 movq %rbx, %rdi callq 0x19dc0 nop
_ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 98h mov r15, rdx mov ebp, esi mov rbx, rdi lea r13, [rsp+0C8h+var_90] mov [r13-10h], r13 lea rsi, aInvalidIterato; "invalid_iterator" lea rdx, aInvalidIterato+10h; "" lea rdi, [rsp+0C8h+var_A0] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rdi, [rsp+0C8h+var_80]; int lea rsi, [rsp+0C8h+var_A0]; int mov edx, ebp; int call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int) lea r14, [rsp+0C8h+var_50] mov [r14-10h], r14 xor eax, eax mov [r14-8], rax mov [r14], al lea r12, [rsp+0C8h+var_B0] mov [r12-10h], r12 mov [r12-8], rax mov [r12], al mov rsi, [r15+8] add rsi, [rsp+0C8h+var_78] lea rdi, [rsp+0C8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) mov rsi, qword ptr [rsp+0C8h+var_80] mov rdx, [rsp+0C8h+var_78] lea rdi, [rsp+0C8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rsi, [rsp+0C8h+var_60] mov rdx, [rsp+0C8h+var_58] lea rdi, [rsp+0C8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rsi, [r15] mov rdx, [r15+8] lea rdi, [rsp+0C8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rdi, [rsp+0C8h+var_60]; void * cmp rdi, r14 jz short loc_60FAB mov rsi, [rsp+0C8h+var_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_60FAB: lea rax, [rsp+0C8h+var_70] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_60FC6 mov rsi, [rsp+0C8h+var_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_60FC6: mov rdi, [rsp+0C8h+var_A0]; void * cmp rdi, r13 jz short loc_60FDD mov rsi, [rsp+0C8h+var_90] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_60FDD: mov rdx, [rsp+0C8h+var_C0]; char * mov rdi, rbx; this mov esi, ebp; int call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionC2EiPKc; nlohmann::json_abi_v3_11_3::detail::exception::exception(int,char const*) lea rax, _ZTVN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorE; `vtable for'nlohmann::json_abi_v3_11_3::detail::invalid_iterator add rax, 10h mov [rbx], rax mov rdi, [rsp+0C8h+var_C0]; void * cmp rdi, r12 jz short loc_61011 mov rsi, [rsp+0C8h+var_B0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_61011: mov rax, rbx add rsp, 98h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax mov rdi, [rsp+arg_0] cmp rdi, r12 jz short loc_6109F mov rsi, [rsp+arg_10] jmp short loc_61097 mov rbx, rax jmp short loc_61088 mov rbx, rax jmp short loc_6109F mov rbx, rdx mov r15, rax mov rdi, [rsp+arg_0]; void * cmp rdi, r12 jz short loc_61061 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_61061: lea rdi, [rsp+arg_60] lea rdx, [rsp+arg_40] lea r12, [rsp+arg_80] mov rsi, r14 mov rcx, r15 mov r8d, ebx mov r9, r12 call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK__cold_1 mov rbx, [r12] loc_61088: mov rdi, [rsp+arg_20]; void * cmp rdi, r13 jz short loc_6109F mov rsi, [rsp+arg_30] loc_61097: inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_6109F: mov rdi, rbx call __Unwind_Resume
nlohmann::json_abi_v3_11_3::detail::exception * ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( nlohmann::json_abi_v3_11_3::detail::exception *this, int a2, _QWORD *a3) { char *v5[2]; // [rsp+8h] [rbp-C0h] BYREF _QWORD v6[2]; // [rsp+18h] [rbp-B0h] BYREF void *v7[2]; // [rsp+28h] [rbp-A0h] BYREF _QWORD v8[2]; // [rsp+38h] [rbp-90h] BYREF int v9[2]; // [rsp+48h] [rbp-80h] BYREF long long v10; // [rsp+50h] [rbp-78h] long long v11; // [rsp+58h] [rbp-70h] BYREF void *v12; // [rsp+68h] [rbp-60h] long long v13; // [rsp+70h] [rbp-58h] _QWORD v14[10]; // [rsp+78h] [rbp-50h] BYREF v7[0] = v8; std::string::_M_construct<char const*>((long long)v7, "invalid_iterator", (long long)""); nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v9, (long long)v7, a2); v12 = v14; v13 = 0LL; LOBYTE(v14[0]) = 0; v5[0] = (char *)v6; v5[1] = 0LL; LOBYTE(v6[0]) = 0; std::string::reserve(v5, v10 + a3[1]); std::string::_M_append(v5, *(_QWORD *)v9); std::string::_M_append(v5, v12); std::string::_M_append(v5, *a3); if ( v12 != v14 ) operator delete(v12, v14[0] + 1LL); if ( *(long long **)v9 != &v11 ) operator delete(*(void **)v9, v11 + 1); if ( v7[0] != v8 ) operator delete(v7[0], v8[0] + 1LL); nlohmann::json_abi_v3_11_3::detail::exception::exception(this, a2, v5[0]); *(_QWORD *)this = &`vtable for'nlohmann::json_abi_v3_11_3::detail::invalid_iterator + 2; if ( (_QWORD *)v5[0] != v6 ) operator delete(v5[0], v6[0] + 1LL); return this; }
_ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x98 MOV R15,RDX MOV EBP,ESI MOV RBX,RDI LEA R13,[RSP + 0x38] MOV qword ptr [R13 + -0x10],R13 LAB_00160efa: LEA RSI,[0x1bc22e] LEA RDX,[0x1bc23e] LEA RDI,[RSP + 0x28] CALL 0x00125304 LAB_00160f12: LEA RDI,[RSP + 0x48] LEA RSI,[RSP + 0x28] MOV EDX,EBP CALL 0x001510ae LEA R14,[RSP + 0x78] MOV qword ptr [R14 + -0x10],R14 XOR EAX,EAX MOV qword ptr [R14 + -0x8],RAX MOV byte ptr [R14],AL LEA R12,[RSP + 0x18] MOV qword ptr [R12 + -0x10],R12 MOV qword ptr [R12 + -0x8],RAX MOV byte ptr [R12],AL MOV RSI,qword ptr [R15 + 0x8] ADD RSI,qword ptr [RSP + 0x50] LAB_00160f51: LEA RDI,[RSP + 0x8] CALL 0x00119c00 MOV RSI,qword ptr [RSP + 0x48] MOV RDX,qword ptr [RSP + 0x50] LEA RDI,[RSP + 0x8] CALL 0x00119210 MOV RSI,qword ptr [RSP + 0x68] MOV RDX,qword ptr [RSP + 0x70] LEA RDI,[RSP + 0x8] CALL 0x00119210 MOV RSI,qword ptr [R15] MOV RDX,qword ptr [R15 + 0x8] LEA RDI,[RSP + 0x8] CALL 0x00119210 MOV RDI,qword ptr [RSP + 0x68] CMP RDI,R14 JZ 0x00160fab MOV RSI,qword ptr [RSP + 0x78] INC RSI CALL 0x001197f0 LAB_00160fab: LEA RAX,[RSP + 0x58] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00160fc6 MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x001197f0 LAB_00160fc6: MOV RDI,qword ptr [RSP + 0x28] CMP RDI,R13 JZ 0x00160fdd MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x001197f0 LAB_00160fdd: MOV RDX,qword ptr [RSP + 0x8] LAB_00160fe2: MOV RDI,RBX MOV ESI,EBP CALL 0x001512aa LAB_00160fec: LEA RAX,[0x1ef408] ADD RAX,0x10 MOV qword ptr [RBX],RAX MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R12 JZ 0x00161011 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001197f0 LAB_00161011: MOV RAX,RBX ADD RSP,0x98 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
exception * _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (exception *param_1,int param_2,ulong *param_3) { char *local_c0; int8 local_b8; char local_b0; int7 uStack_af; long *local_a0 [2]; long local_90 [2]; long *local_80 [2]; long local_70 [2]; int1 *local_60; int8 local_58; int1 local_50; int7 uStack_4f; /* try { // try from 00160efa to 00160f11 has its CatchHandler @ 0016103f */ local_a0[0] = local_90; std::__cxx11::string::_M_construct<char_const*>(local_a0,"invalid_iterator",""); /* try { // try from 00160f12 to 00160f22 has its CatchHandler @ 0016103a */ nlohmann::json_abi_v3_11_3::detail::exception::name ((exception *)local_80,(string *)local_a0,param_2); local_58 = 0; local_50 = 0; local_b8 = 0; local_b0 = '\0'; /* try { // try from 00160f51 to 00160f93 has its CatchHandler @ 00161044 */ local_c0 = &local_b0; local_60 = &local_50; std::__cxx11::string::reserve((ulong)&local_c0); std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_80[0]); std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_60); std::__cxx11::string::_M_append((char *)&local_c0,*param_3); if (local_60 != &local_50) { operator_delete(local_60,CONCAT71(uStack_4f,local_50) + 1); } if (local_80[0] != local_70) { operator_delete(local_80[0],local_70[0] + 1); } if (local_a0[0] != local_90) { operator_delete(local_a0[0],local_90[0] + 1); } /* try { // try from 00160fe2 to 00160feb has its CatchHandler @ 00161026 */ nlohmann::json_abi_v3_11_3::detail::exception::exception(param_1,param_2,local_c0); *(int ***)param_1 = &PTR__exception_001ef418; if (local_c0 != &local_b0) { operator_delete(local_c0,CONCAT71(uStack_af,local_b0) + 1); } return param_1; }
39,810
MyCTX_gcm::init(evp_cipher_st const*, int, unsigned char const*, unsigned int, unsigned char const*, unsigned int)
eloqsql/mysys_ssl/my_crypt.cc
int init(const EVP_CIPHER *cipher, int encrypt, const uchar *key, uint klen, const uchar *iv, uint ivlen) { compile_time_assert(MY_AES_CTX_SIZE >= sizeof(MyCTX_gcm)); int res= MyCTX::init(cipher, encrypt, key, klen, iv, ivlen); int real_ivlen= EVP_CIPHER_CTX_iv_length(ctx); aad= iv + real_ivlen; aadlen= ivlen - real_ivlen; return res; }
O3
cpp
MyCTX_gcm::init(evp_cipher_st const*, int, unsigned char const*, unsigned int, unsigned char const*, unsigned int): pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %r9, %r14 movq %rdi, %rbx movl 0x10(%rbp), %r12d testq %rsi, %rsi je 0x24d63 movl %edx, %r9d movq 0xc8(%rbx), %rdi xorl %r13d, %r13d xorl %edx, %edx movq %r14, %r8 callq 0x243a0 cmpl $0x1, %eax pushq $-0x65 popq %r15 cmovel %r13d, %r15d movq 0xc8(%rbx), %rdi callq 0x24160 cltq addq %rax, %r14 movq %r14, 0xd0(%rbx) subl %eax, %r12d movl %r12d, 0xd8(%rbx) movl %r15d, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq pushq $-0x66 popq %r15 jmp 0x24d2f nop
_ZN9MyCTX_gcm4initEPK13evp_cipher_stiPKhjS4_j: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r14, r9 mov rbx, rdi mov r12d, [rbp+arg_0] test rsi, rsi jz short loc_24D63 mov r9d, edx mov rdi, [rbx+0C8h] xor r13d, r13d xor edx, edx mov r8, r14 call _EVP_CipherInit_ex cmp eax, 1 push 0FFFFFFFFFFFFFF9Bh pop r15 cmovz r15d, r13d loc_24D2F: mov rdi, [rbx+0C8h] call _EVP_CIPHER_CTX_get_iv_length cdqe add r14, rax mov [rbx+0D0h], r14 sub r12d, eax mov [rbx+0D8h], r12d mov eax, r15d add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_24D63: push 0FFFFFFFFFFFFFF9Ah pop r15 jmp short loc_24D2F
long long MyCTX_gcm::init(long long a1, long long a2, unsigned int a3, long long a4, long long a5, long long a6, int a7) { long long v7; // rax unsigned int v9; // r15d int iv_length; // eax if ( a2 ) { v9 = -101; if ( (unsigned int)EVP_CipherInit_ex(*(_QWORD *)(a1 + 200), a2, 0LL, a4, a6, a3, v7) == 1 ) v9 = 0; } else { v9 = -102; } iv_length = EVP_CIPHER_CTX_get_iv_length(*(_QWORD *)(a1 + 200)); *(_QWORD *)(a1 + 208) = iv_length + a6; *(_DWORD *)(a1 + 216) = a7 - iv_length; return v9; }
init: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R14,R9 MOV RBX,RDI MOV R12D,dword ptr [RBP + 0x10] TEST RSI,RSI JZ 0x00124d63 MOV R9D,EDX MOV RDI,qword ptr [RBX + 0xc8] XOR R13D,R13D XOR EDX,EDX MOV R8,R14 CALL 0x001243a0 CMP EAX,0x1 PUSH -0x65 POP R15 CMOVZ R15D,R13D LAB_00124d2f: MOV RDI,qword ptr [RBX + 0xc8] CALL 0x00124160 CDQE ADD R14,RAX MOV qword ptr [RBX + 0xd0],R14 SUB R12D,EAX MOV dword ptr [RBX + 0xd8],R12D MOV EAX,R15D ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00124d63: PUSH -0x66 POP R15 JMP 0x00124d2f
/* MyCTX_gcm::init(evp_cipher_st const*, int, unsigned char const*, unsigned int, unsigned char const*, unsigned int) */ int4 __thiscall MyCTX_gcm::init(MyCTX_gcm *this,evp_cipher_st *param_1,int param_2,uchar *param_3,uint param_4, uchar *param_5,uint param_6) { int iVar1; int4 uVar2; if (param_1 == (evp_cipher_st *)0x0) { uVar2 = 0xffffff9a; } else { iVar1 = EVP_CipherInit_ex(*(EVP_CIPHER_CTX **)(this + 200),param_1,(ENGINE *)0x0,param_3,param_5 ,param_2); uVar2 = 0xffffff9b; if (iVar1 == 1) { uVar2 = 0; } } iVar1 = EVP_CIPHER_CTX_get_iv_length(*(int8 *)(this + 200)); *(uchar **)(this + 0xd0) = param_5 + iVar1; *(uint *)(this + 0xd8) = param_6 - iVar1; return uVar2; }
39,811
sapphire_plugins::shared::ProcessorShim<sapphire_plugins::galaxy::GalaxyClap>::stateLoad(clap_istream const*)
sapphire-plugins/src/shared/processor_shim.h
bool stateLoad(const clap_istream *istream) noexcept override { if (!sst::plugininfra::patch_support::inStreamToPatch(istream, asProcessor()->patch)) return false; for (auto &[id, p] : asProcessor()->patch.paramMap) { p->snap(); } pushFullUIRefresh(); _host.paramsRescan(CLAP_PARAM_RESCAN_VALUES); _host.paramsRequestFlush(); return true; }
O3
c
sapphire_plugins::shared::ProcessorShim<sapphire_plugins::galaxy::GalaxyClap>::stateLoad(clap_istream const*): pushq %r14 pushq %rbx pushq %rax movq %rsi, %rax movq %rdi, %r14 leaq 0x100258(%rdi), %rsi movq %rax, %rdi callq 0xfe63f movl %eax, %ebx testb %al, %al je 0xfc26a movq 0x100288(%r14), %rax testq %rax, %rax je 0xfc249 movq 0x10(%rax), %rcx movss (%rcx), %xmm0 movss %xmm0, 0x1ac(%rcx) movss %xmm0, 0x1a8(%rcx) movb $0x0, 0x1b0(%rcx) movq (%rax), %rax jmp 0xfc220 movq %r14, %rdi callq 0xfd44a leaq 0x8(%r14), %rdi movl $0x1, %esi callq 0xdb7b0 movq 0x8(%r14), %rdi movq 0x68(%r14), %rax callq *0x10(%rax) movl %ebx, %eax addq $0x8, %rsp popq %rbx popq %r14 retq jmp 0xfc276 movq %rax, %rdi callq 0xd4dfb
_ZN16sapphire_plugins6shared13ProcessorShimINS_6galaxy10GalaxyClapEE9stateLoadEPK12clap_istream: push r14 push rbx push rax mov rax, rsi mov r14, rdi lea rsi, loc_100258[rdi] mov rdi, rax call _ZN3sst11plugininfra13patch_support15inStreamToPatchIN16sapphire_plugins6galaxy5PatchEEEbPK12clap_istreamRT_; sst::plugininfra::patch_support::inStreamToPatch<sapphire_plugins::galaxy::Patch>(clap_istream const*,sapphire_plugins::galaxy::Patch &) mov ebx, eax test al, al jz short loc_FC26A mov rax, [r14+100288h] loc_FC220: test rax, rax jz short loc_FC249 mov rcx, [rax+10h] movss xmm0, dword ptr [rcx] movss dword ptr [rcx+1ACh], xmm0 movss dword ptr [rcx+1A8h], xmm0 mov byte ptr [rcx+1B0h], 0 mov rax, [rax] jmp short loc_FC220 loc_FC249: mov rdi, r14 call _ZN16sapphire_plugins6shared13ProcessorShimINS_6galaxy10GalaxyClapEE17pushFullUIRefreshEv; sapphire_plugins::shared::ProcessorShim<sapphire_plugins::galaxy::GalaxyClap>::pushFullUIRefresh(void) lea rdi, [r14+8] mov esi, 1 call _ZNK4clap7helpers9HostProxyILNS0_19MisbehaviourHandlerE0ELNS0_13CheckingLevelE2EE12paramsRescanEj; clap::helpers::HostProxy<(clap::helpers::MisbehaviourHandler)0,(clap::helpers::CheckingLevel)2>::paramsRescan(uint) mov rdi, [r14+8] mov rax, [r14+68h] call qword ptr [rax+10h] loc_FC26A: mov eax, ebx add rsp, 8 pop rbx pop r14 retn jmp short $+2 loc_FC276: mov rdi, rax call __clang_call_terminate
stateLoad: PUSH R14 PUSH RBX PUSH RAX MOV RAX,RSI MOV R14,RDI LEA RSI,[RDI + 0x100258] MOV RDI,RAX CALL 0x001fe63f MOV EBX,EAX TEST AL,AL JZ 0x001fc26a MOV RAX,qword ptr [R14 + 0x100288] LAB_001fc220: TEST RAX,RAX JZ 0x001fc249 MOV RCX,qword ptr [RAX + 0x10] MOVSS XMM0,dword ptr [RCX] MOVSS dword ptr [RCX + 0x1ac],XMM0 MOVSS dword ptr [RCX + 0x1a8],XMM0 MOV byte ptr [RCX + 0x1b0],0x0 MOV RAX,qword ptr [RAX] JMP 0x001fc220 LAB_001fc249: MOV RDI,R14 CALL 0x001fd44a LEA RDI,[R14 + 0x8] MOV ESI,0x1 CALL 0x001db7b0 MOV RDI,qword ptr [R14 + 0x8] MOV RAX,qword ptr [R14 + 0x68] LAB_001fc267: CALL qword ptr [RAX + 0x10] LAB_001fc26a: MOV EAX,EBX ADD RSP,0x8 POP RBX POP R14 RET
/* sapphire_plugins::shared::ProcessorShim<sapphire_plugins::galaxy::GalaxyClap>::stateLoad(clap_istream const*) */ ulong __thiscall sapphire_plugins::shared::ProcessorShim<sapphire_plugins::galaxy::GalaxyClap>::stateLoad (ProcessorShim<sapphire_plugins::galaxy::GalaxyClap> *this,clap_istream *param_1) { int4 *puVar1; bool bVar2; int7 extraout_var; int8 *puVar3; bVar2 = sst::plugininfra::patch_support::inStreamToPatch<sapphire_plugins::galaxy::Patch> (param_1,(Patch *)(this + 0x100258)); if (bVar2) { for (puVar3 = *(int8 **)(this + 0x100288); puVar3 != (int8 *)0x0; puVar3 = (int8 *)*puVar3) { puVar1 = (int4 *)puVar3[2]; puVar1[0x6b] = *puVar1; puVar1[0x6a] = *puVar1; *(int1 *)(puVar1 + 0x6c) = 0; } /* try { // try from 001fc249 to 001fc250 has its CatchHandler @ 001fc276 */ pushFullUIRefresh(this); clap::helpers::HostProxy<(clap::helpers::MisbehaviourHandler)0,(clap::helpers::CheckingLevel)2> ::paramsRescan((HostProxy<(clap::helpers::MisbehaviourHandler)0,(clap::helpers::CheckingLevel)2> *)(this + 8),1); /* try { // try from 001fc267 to 001fc269 has its CatchHandler @ 001fc274 */ (**(code **)(*(long *)(this + 0x68) + 0x10))(*(int8 *)(this + 8)); } return CONCAT71(extraout_var,bVar2) & 0xffffffff; }
39,812
lunasvg::Rect::intersected(lunasvg::Rect const&) const
dmazzella[P]pylunasvg/lunasvg/source/graphics.h
constexpr Rect Rect::intersected(const Rect& rect) const { if(!rect.isValid()) return *this; if(!isValid()) return rect; auto l = std::max(x, rect.x); auto t = std::max(y, rect.y); auto r = std::min(x + w, rect.x + rect.w); auto b = std::min(y + h, rect.y + rect.h); if(l >= r || t >= b) return Rect::Empty; return Rect(l, t, r - l, b - t); }
O0
c
lunasvg::Rect::intersected(lunasvg::Rect const&) const: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x18(%rbp) movq %rsi, -0x20(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x20(%rbp), %rdi callq 0x14530 testb $0x1, %al jne 0x217fd movq -0x48(%rbp), %rax movq (%rax), %rcx movq %rcx, -0x10(%rbp) movq 0x8(%rax), %rax movq %rax, -0x8(%rbp) jmp 0x2192f movq -0x48(%rbp), %rdi callq 0x14530 testb $0x1, %al jne 0x21822 movq -0x20(%rbp), %rax movq (%rax), %rcx movq %rcx, -0x10(%rbp) movq 0x8(%rax), %rax movq %rax, -0x8(%rbp) jmp 0x2192f movq -0x48(%rbp), %rdi movq -0x20(%rbp), %rsi callq 0x22550 movq -0x48(%rbp), %rdi movss (%rax), %xmm0 movss %xmm0, -0x24(%rbp) addq $0x4, %rdi movq -0x20(%rbp), %rsi addq $0x4, %rsi callq 0x22550 movq %rax, %rcx movq -0x48(%rbp), %rax movss (%rcx), %xmm0 movss %xmm0, -0x28(%rbp) movss (%rax), %xmm0 addss 0x8(%rax), %xmm0 movss %xmm0, -0x30(%rbp) movq -0x20(%rbp), %rax movss (%rax), %xmm0 movq -0x20(%rbp), %rax addss 0x8(%rax), %xmm0 movss %xmm0, -0x34(%rbp) leaq -0x30(%rbp), %rdi leaq -0x34(%rbp), %rsi callq 0x22510 movq %rax, %rcx movq -0x48(%rbp), %rax movss (%rcx), %xmm0 movss %xmm0, -0x2c(%rbp) movss 0x4(%rax), %xmm0 addss 0xc(%rax), %xmm0 movss %xmm0, -0x3c(%rbp) movq -0x20(%rbp), %rax movss 0x4(%rax), %xmm0 movq -0x20(%rbp), %rax addss 0xc(%rax), %xmm0 movss %xmm0, -0x40(%rbp) leaq -0x3c(%rbp), %rdi leaq -0x40(%rbp), %rsi callq 0x22510 movss (%rax), %xmm0 movss %xmm0, -0x38(%rbp) movss -0x24(%rbp), %xmm0 ucomiss -0x2c(%rbp), %xmm0 jae 0x218f0 movss -0x28(%rbp), %xmm0 ucomiss -0x38(%rbp), %xmm0 jb 0x21908 leaq 0x6a861(%rip), %rax # 0x8c158 movq (%rax), %rcx movq %rcx, -0x10(%rbp) movq 0x8(%rax), %rax movq %rax, -0x8(%rbp) jmp 0x2192f movss -0x24(%rbp), %xmm0 movss -0x28(%rbp), %xmm1 movss -0x2c(%rbp), %xmm2 subss -0x24(%rbp), %xmm2 movss -0x38(%rbp), %xmm3 subss -0x28(%rbp), %xmm3 leaq -0x10(%rbp), %rdi callq 0x14ee0 movsd -0x10(%rbp), %xmm0 movsd -0x8(%rbp), %xmm1 addq $0x50, %rsp popq %rbp retq nop
_ZNK7lunasvg4Rect11intersectedERKS0_: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_18], rdi mov [rbp+var_20], rsi mov rax, [rbp+var_18] mov [rbp+var_48], rax mov rdi, [rbp+var_20]; this call _ZNK7lunasvg4Rect7isValidEv; lunasvg::Rect::isValid(void) test al, 1 jnz short loc_217FD mov rax, [rbp+var_48] mov rcx, [rax] mov [rbp+var_10], rcx mov rax, [rax+8] mov [rbp+var_8], rax jmp loc_2192F loc_217FD: mov rdi, [rbp+var_48]; this call _ZNK7lunasvg4Rect7isValidEv; lunasvg::Rect::isValid(void) test al, 1 jnz short loc_21822 mov rax, [rbp+var_20] mov rcx, [rax] mov [rbp+var_10], rcx mov rax, [rax+8] mov [rbp+var_8], rax jmp loc_2192F loc_21822: mov rdi, [rbp+var_48] mov rsi, [rbp+var_20] call _ZSt3maxIfERKT_S2_S2_; std::max<float>(float const&,float const&) mov rdi, [rbp+var_48] movss xmm0, dword ptr [rax] movss [rbp+var_24], xmm0 add rdi, 4 mov rsi, [rbp+var_20] add rsi, 4 call _ZSt3maxIfERKT_S2_S2_; std::max<float>(float const&,float const&) mov rcx, rax mov rax, [rbp+var_48] movss xmm0, dword ptr [rcx] movss [rbp+var_28], xmm0 movss xmm0, dword ptr [rax] addss xmm0, dword ptr [rax+8] movss [rbp+var_30], xmm0 mov rax, [rbp+var_20] movss xmm0, dword ptr [rax] mov rax, [rbp+var_20] addss xmm0, dword ptr [rax+8] movss [rbp+var_34], xmm0 lea rdi, [rbp+var_30] lea rsi, [rbp+var_34] call _ZSt3minIfERKT_S2_S2_; std::min<float>(float const&,float const&) mov rcx, rax mov rax, [rbp+var_48] movss xmm0, dword ptr [rcx] movss [rbp+var_2C], xmm0 movss xmm0, dword ptr [rax+4] addss xmm0, dword ptr [rax+0Ch] movss [rbp+var_3C], xmm0 mov rax, [rbp+var_20] movss xmm0, dword ptr [rax+4] mov rax, [rbp+var_20] addss xmm0, dword ptr [rax+0Ch] movss [rbp+var_40], xmm0 lea rdi, [rbp+var_3C] lea rsi, [rbp+var_40] call _ZSt3minIfERKT_S2_S2_; std::min<float>(float const&,float const&) movss xmm0, dword ptr [rax] movss [rbp+var_38], xmm0 movss xmm0, [rbp+var_24] ucomiss xmm0, [rbp+var_2C] jnb short loc_218F0 movss xmm0, [rbp+var_28] ucomiss xmm0, [rbp+var_38] jb short loc_21908 loc_218F0: lea rax, _ZN7lunasvg4Rect5EmptyE; lunasvg::Rect::Empty mov rcx, [rax] mov [rbp+var_10], rcx mov rax, [rax+8] mov [rbp+var_8], rax jmp short loc_2192F loc_21908: movss xmm0, [rbp+var_24]; float movss xmm1, [rbp+var_28]; float movss xmm2, [rbp+var_2C] subss xmm2, [rbp+var_24]; float movss xmm3, [rbp+var_38] subss xmm3, [rbp+var_28]; float lea rdi, [rbp+var_10]; this call _ZN7lunasvg4RectC2Effff; lunasvg::Rect::Rect(float,float,float,float) loc_2192F: movsd xmm0, [rbp+var_10] movsd xmm1, [rbp+var_8] add rsp, 50h pop rbp retn
double lunasvg::Rect::intersected(lunasvg::Rect *this, const lunasvg::Rect *a2) { float v3; // [rsp+10h] [rbp-40h] BYREF float v4; // [rsp+14h] [rbp-3Ch] BYREF float v5; // [rsp+18h] [rbp-38h] float v6; // [rsp+1Ch] [rbp-34h] BYREF float v7; // [rsp+20h] [rbp-30h] BYREF float v8; // [rsp+24h] [rbp-2Ch] float v9; // [rsp+28h] [rbp-28h] float v10; // [rsp+2Ch] [rbp-24h] lunasvg::Rect *v11; // [rsp+30h] [rbp-20h] lunasvg::Rect *v12; // [rsp+38h] [rbp-18h] double v13; // [rsp+40h] [rbp-10h] BYREF long long v14; // [rsp+48h] [rbp-8h] v12 = this; v11 = a2; if ( lunasvg::Rect::isValid(a2) ) { if ( lunasvg::Rect::isValid(this) ) { v10 = *(float *)std::max<float>(this, v11); v9 = *(float *)std::max<float>((char *)this + 4, (char *)v11 + 4); v7 = *(float *)this + *((float *)this + 2); v6 = *(float *)v11 + *((float *)v11 + 2); v8 = *(float *)std::min<float>(&v7, &v6); v4 = *((float *)this + 1) + *((float *)this + 3); v3 = *((float *)v11 + 1) + *((float *)v11 + 3); v5 = *(float *)std::min<float>(&v4, &v3); if ( v10 < v8 && v9 < v5 ) { lunasvg::Rect::Rect((lunasvg::Rect *)&v13, v10, v9, v8 - v10, v5 - v9); } else { v13 = *(double *)&lunasvg::Rect::Empty; v14 = *(&lunasvg::Rect::Empty + 1); } } else { v13 = *(double *)v11; v14 = *((_QWORD *)v11 + 1); } } else { v13 = *(double *)this; v14 = *((_QWORD *)this + 1); } return v13; }
intersected: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x18],RDI MOV qword ptr [RBP + -0x20],RSI MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x48],RAX MOV RDI,qword ptr [RBP + -0x20] CALL 0x00114530 TEST AL,0x1 JNZ 0x001217fd MOV RAX,qword ptr [RBP + -0x48] MOV RCX,qword ptr [RAX] MOV qword ptr [RBP + -0x10],RCX MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x8],RAX JMP 0x0012192f LAB_001217fd: MOV RDI,qword ptr [RBP + -0x48] CALL 0x00114530 TEST AL,0x1 JNZ 0x00121822 MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RAX] MOV qword ptr [RBP + -0x10],RCX MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x8],RAX JMP 0x0012192f LAB_00121822: MOV RDI,qword ptr [RBP + -0x48] MOV RSI,qword ptr [RBP + -0x20] CALL 0x00122550 MOV RDI,qword ptr [RBP + -0x48] MOVSS XMM0,dword ptr [RAX] MOVSS dword ptr [RBP + -0x24],XMM0 ADD RDI,0x4 MOV RSI,qword ptr [RBP + -0x20] ADD RSI,0x4 CALL 0x00122550 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x48] MOVSS XMM0,dword ptr [RCX] MOVSS dword ptr [RBP + -0x28],XMM0 MOVSS XMM0,dword ptr [RAX] ADDSS XMM0,dword ptr [RAX + 0x8] MOVSS dword ptr [RBP + -0x30],XMM0 MOV RAX,qword ptr [RBP + -0x20] MOVSS XMM0,dword ptr [RAX] MOV RAX,qword ptr [RBP + -0x20] ADDSS XMM0,dword ptr [RAX + 0x8] MOVSS dword ptr [RBP + -0x34],XMM0 LEA RDI,[RBP + -0x30] LEA RSI,[RBP + -0x34] CALL 0x00122510 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x48] MOVSS XMM0,dword ptr [RCX] MOVSS dword ptr [RBP + -0x2c],XMM0 MOVSS XMM0,dword ptr [RAX + 0x4] ADDSS XMM0,dword ptr [RAX + 0xc] MOVSS dword ptr [RBP + -0x3c],XMM0 MOV RAX,qword ptr [RBP + -0x20] MOVSS XMM0,dword ptr [RAX + 0x4] MOV RAX,qword ptr [RBP + -0x20] ADDSS XMM0,dword ptr [RAX + 0xc] MOVSS dword ptr [RBP + -0x40],XMM0 LEA RDI,[RBP + -0x3c] LEA RSI,[RBP + -0x40] CALL 0x00122510 MOVSS XMM0,dword ptr [RAX] MOVSS dword ptr [RBP + -0x38],XMM0 MOVSS XMM0,dword ptr [RBP + -0x24] UCOMISS XMM0,dword ptr [RBP + -0x2c] JNC 0x001218f0 MOVSS XMM0,dword ptr [RBP + -0x28] UCOMISS XMM0,dword ptr [RBP + -0x38] JC 0x00121908 LAB_001218f0: LEA RAX,[0x18c158] MOV RCX,qword ptr [RAX] MOV qword ptr [RBP + -0x10],RCX MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x8],RAX JMP 0x0012192f LAB_00121908: MOVSS XMM0,dword ptr [RBP + -0x24] MOVSS XMM1,dword ptr [RBP + -0x28] MOVSS XMM2,dword ptr [RBP + -0x2c] SUBSS XMM2,dword ptr [RBP + -0x24] MOVSS XMM3,dword ptr [RBP + -0x38] SUBSS XMM3,dword ptr [RBP + -0x28] LEA RDI,[RBP + -0x10] CALL 0x00114ee0 LAB_0012192f: MOVSD XMM0,qword ptr [RBP + -0x10] MOVSD XMM1,qword ptr [RBP + -0x8] ADD RSP,0x50 POP RBP RET
/* lunasvg::Rect::intersected(lunasvg::Rect const&) const */ int1 [16] __thiscall lunasvg::Rect::intersected(Rect *this,Rect *param_1) { int1 auVar1 [16]; ulong uVar2; float *pfVar3; float local_48; float local_44; float local_40; float local_3c; float local_38; float local_34; float local_30; float local_2c; Rect *local_28; Rect *local_20; int8 local_18; int8 local_10; local_28 = param_1; local_20 = this; uVar2 = isValid(param_1); if ((uVar2 & 1) == 0) { local_18 = *(int8 *)this; local_10 = *(int8 *)(this + 8); } else { uVar2 = isValid(this); if ((uVar2 & 1) == 0) { local_18 = *(int8 *)local_28; local_10 = *(int8 *)(local_28 + 8); } else { pfVar3 = std::max<float>((float *)this,(float *)local_28); local_2c = *pfVar3; pfVar3 = std::max<float>((float *)(this + 4),(float *)(local_28 + 4)); local_30 = *pfVar3; local_38 = *(float *)this + *(float *)(this + 8); local_3c = *(float *)local_28 + *(float *)(local_28 + 8); pfVar3 = std::min<float>(&local_38,&local_3c); local_34 = *pfVar3; local_44 = *(float *)(this + 4) + *(float *)(this + 0xc); local_48 = *(float *)(local_28 + 4) + *(float *)(local_28 + 0xc); pfVar3 = std::min<float>(&local_44,&local_48); local_40 = *pfVar3; if ((local_34 <= local_2c) || (local_40 <= local_30)) { local_18 = Empty; local_10 = DAT_0018c160; } else { Rect((Rect *)&local_18,local_2c,local_30,local_34 - local_2c,local_40 - local_30); } } } auVar1._8_8_ = local_10; auVar1._0_8_ = local_18; return auVar1; }
39,813
my_wc_mb_latin1
eloqsql/strings/ctype-latin1.c
static int my_wc_mb_latin1(CHARSET_INFO *cs __attribute__((unused)), my_wc_t wc, uchar *str, uchar *end __attribute__((unused))) { const uchar *pl; if (str >= end) return MY_CS_TOOSMALL; if (wc > 0xFFFF) return MY_CS_ILUNI; pl= uni_to_cs[wc >> 8]; str[0]= pl ? pl[wc & 0xFF] : '\0'; return (!str[0] && wc) ? MY_CS_ILUNI : 1; }
O0
c
my_wc_mb_latin1: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x20(%rbp), %rax cmpq -0x28(%rbp), %rax jb 0x8f11a movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B jmp 0x8f1a1 cmpq $0xffff, -0x18(%rbp) # imm = 0xFFFF jbe 0x8f12d movl $0x0, -0x4(%rbp) jmp 0x8f1a1 movq -0x18(%rbp), %rcx shrq $0x8, %rcx leaq 0x199f04(%rip), %rax # 0x229040 movq (%rax,%rcx,8), %rax movq %rax, -0x30(%rbp) cmpq $0x0, -0x30(%rbp) je 0x8f163 movq -0x30(%rbp), %rax movq -0x18(%rbp), %rcx andq $0xff, %rcx movzbl (%rax,%rcx), %eax movl %eax, -0x34(%rbp) jmp 0x8f16a xorl %eax, %eax movl %eax, -0x34(%rbp) jmp 0x8f16a movl -0x34(%rbp), %eax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, (%rax) movq -0x20(%rbp), %rcx xorl %eax, %eax cmpb $0x0, (%rcx) movb %al, -0x35(%rbp) jne 0x8f18e cmpq $0x0, -0x18(%rbp) setne %al movb %al, -0x35(%rbp) movb -0x35(%rbp), %dl movl $0x1, %eax xorl %ecx, %ecx testb $0x1, %dl cmovnel %ecx, %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopw %cs:(%rax,%rax)
my_wc_mb_latin1: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov rax, [rbp+var_20] cmp rax, [rbp+var_28] jb short loc_8F11A mov [rbp+var_4], 0FFFFFF9Bh jmp loc_8F1A1 loc_8F11A: cmp [rbp+var_18], 0FFFFh jbe short loc_8F12D mov [rbp+var_4], 0 jmp short loc_8F1A1 loc_8F12D: mov rcx, [rbp+var_18] shr rcx, 8 lea rax, uni_to_cs mov rax, [rax+rcx*8] mov [rbp+var_30], rax cmp [rbp+var_30], 0 jz short loc_8F163 mov rax, [rbp+var_30] mov rcx, [rbp+var_18] and rcx, 0FFh movzx eax, byte ptr [rax+rcx] mov [rbp+var_34], eax jmp short loc_8F16A loc_8F163: xor eax, eax mov [rbp+var_34], eax jmp short $+2 loc_8F16A: mov eax, [rbp+var_34] mov cl, al mov rax, [rbp+var_20] mov [rax], cl mov rcx, [rbp+var_20] xor eax, eax cmp byte ptr [rcx], 0 mov [rbp+var_35], al jnz short loc_8F18E cmp [rbp+var_18], 0 setnz al mov [rbp+var_35], al loc_8F18E: mov dl, [rbp+var_35] mov eax, 1 xor ecx, ecx test dl, 1 cmovnz eax, ecx mov [rbp+var_4], eax loc_8F1A1: mov eax, [rbp+var_4] pop rbp retn
long long my_wc_mb_latin1(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4) { bool v5; // [rsp+1h] [rbp-35h] char v6; // [rsp+2h] [rbp-34h] long long v7; // [rsp+6h] [rbp-30h] if ( (unsigned long long)a3 < a4 ) { if ( a2 <= 0xFFFF ) { v7 = (long long)*(&uni_to_cs + (a2 >> 8)); if ( v7 ) v6 = *(_BYTE *)(v7 + (unsigned __int8)a2); else v6 = 0; *a3 = v6; v5 = 0; if ( !*a3 ) v5 = a2 != 0; return !v5; } else { return 0; } } else { return (unsigned int)-101; } }
my_wc_mb_latin1: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV RAX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [RBP + -0x28] JC 0x0018f11a MOV dword ptr [RBP + -0x4],0xffffff9b JMP 0x0018f1a1 LAB_0018f11a: CMP qword ptr [RBP + -0x18],0xffff JBE 0x0018f12d MOV dword ptr [RBP + -0x4],0x0 JMP 0x0018f1a1 LAB_0018f12d: MOV RCX,qword ptr [RBP + -0x18] SHR RCX,0x8 LEA RAX,[0x329040] MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RBP + -0x30],RAX CMP qword ptr [RBP + -0x30],0x0 JZ 0x0018f163 MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x18] AND RCX,0xff MOVZX EAX,byte ptr [RAX + RCX*0x1] MOV dword ptr [RBP + -0x34],EAX JMP 0x0018f16a LAB_0018f163: XOR EAX,EAX MOV dword ptr [RBP + -0x34],EAX JMP 0x0018f16a LAB_0018f16a: MOV EAX,dword ptr [RBP + -0x34] MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX],CL MOV RCX,qword ptr [RBP + -0x20] XOR EAX,EAX CMP byte ptr [RCX],0x0 MOV byte ptr [RBP + -0x35],AL JNZ 0x0018f18e CMP qword ptr [RBP + -0x18],0x0 SETNZ AL MOV byte ptr [RBP + -0x35],AL LAB_0018f18e: MOV DL,byte ptr [RBP + -0x35] MOV EAX,0x1 XOR ECX,ECX TEST DL,0x1 CMOVNZ EAX,ECX MOV dword ptr [RBP + -0x4],EAX LAB_0018f1a1: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
uint my_wc_mb_latin1(int8 param_1,ulong param_2,char *param_3,char *param_4) { char cVar1; uint local_c; if (param_3 < param_4) { if (param_2 < 0x10000) { if (*(long *)(uni_to_cs + (param_2 >> 8) * 8) == 0) { cVar1 = '\0'; } else { cVar1 = *(char *)(*(long *)(uni_to_cs + (param_2 >> 8) * 8) + (param_2 & 0xff)); } *param_3 = cVar1; local_c = (uint)(*param_3 != '\0' || param_2 == 0); } else { local_c = 0; } } else { local_c = 0xffffff9b; } return local_c; }
39,814
my_coll_parser_scan_character_list
eloqsql/strings/ctype-uca.c
static int my_coll_parser_scan_character_list(MY_COLL_RULE_PARSER *p, my_wc_t *pwc, size_t limit, const char *name) { if (my_coll_parser_curr(p)->term != MY_COLL_LEXEM_CHAR) return my_coll_parser_expected_error(p, MY_COLL_LEXEM_CHAR); if (!my_coll_rule_expand(pwc, limit, my_coll_parser_curr(p)->code)) return my_coll_parser_too_long_error(p, name); if (!my_coll_parser_scan_term(p, MY_COLL_LEXEM_CHAR)) return 0; while (my_coll_parser_curr(p)->term == MY_COLL_LEXEM_CHAR) { if (!my_coll_rule_expand(pwc, limit, my_coll_parser_curr(p)->code)) return my_coll_parser_too_long_error(p, name); my_coll_parser_scan(p); } return 1; }
O0
c
my_coll_parser_scan_character_list: 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 -0x10(%rbp), %rdi callq 0x4e3f0 cmpl $0x5, (%rax) je 0x4f3ec movq -0x10(%rbp), %rdi movl $0x5, %esi callq 0x4ed30 movl %eax, -0x4(%rbp) jmp 0x4f4ac movq -0x18(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x20(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x10(%rbp), %rdi callq 0x4e3f0 movq -0x38(%rbp), %rdi movq -0x30(%rbp), %rsi movslq 0x24(%rax), %rdx callq 0x4f4c0 cmpl $0x0, %eax jne 0x4f42d movq -0x10(%rbp), %rdi movq -0x28(%rbp), %rsi callq 0x4f530 movl %eax, -0x4(%rbp) jmp 0x4f4ac movq -0x10(%rbp), %rdi movl $0x5, %esi callq 0x4e9c0 cmpl $0x0, %eax jne 0x4f449 movl $0x0, -0x4(%rbp) jmp 0x4f4ac jmp 0x4f44b movq -0x10(%rbp), %rdi callq 0x4e3f0 cmpl $0x5, (%rax) jne 0x4f4a5 movq -0x18(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x20(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x10(%rbp), %rdi callq 0x4e3f0 movq -0x48(%rbp), %rdi movq -0x40(%rbp), %rsi movslq 0x24(%rax), %rdx callq 0x4f4c0 cmpl $0x0, %eax jne 0x4f49a movq -0x10(%rbp), %rdi movq -0x28(%rbp), %rsi callq 0x4f530 movl %eax, -0x4(%rbp) jmp 0x4f4ac movq -0x10(%rbp), %rdi callq 0x4ebd0 jmp 0x4f44b movl $0x1, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x50, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_coll_parser_scan_character_list: 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 rdi, [rbp+var_10] call my_coll_parser_curr cmp dword ptr [rax], 5 jz short loc_4F3EC mov rdi, [rbp+var_10] mov esi, 5 call my_coll_parser_expected_error mov [rbp+var_4], eax jmp loc_4F4AC loc_4F3EC: mov rax, [rbp+var_18] mov [rbp+var_38], rax mov rax, [rbp+var_20] mov [rbp+var_30], rax mov rdi, [rbp+var_10] call my_coll_parser_curr mov rdi, [rbp+var_38] mov rsi, [rbp+var_30] movsxd rdx, dword ptr [rax+24h] call my_coll_rule_expand cmp eax, 0 jnz short loc_4F42D mov rdi, [rbp+var_10] mov rsi, [rbp+var_28] call my_coll_parser_too_long_error mov [rbp+var_4], eax jmp short loc_4F4AC loc_4F42D: mov rdi, [rbp+var_10] mov esi, 5 call my_coll_parser_scan_term cmp eax, 0 jnz short loc_4F449 mov [rbp+var_4], 0 jmp short loc_4F4AC loc_4F449: jmp short $+2 loc_4F44B: mov rdi, [rbp+var_10] call my_coll_parser_curr cmp dword ptr [rax], 5 jnz short loc_4F4A5 mov rax, [rbp+var_18] mov [rbp+var_48], rax mov rax, [rbp+var_20] mov [rbp+var_40], rax mov rdi, [rbp+var_10] call my_coll_parser_curr mov rdi, [rbp+var_48] mov rsi, [rbp+var_40] movsxd rdx, dword ptr [rax+24h] call my_coll_rule_expand cmp eax, 0 jnz short loc_4F49A mov rdi, [rbp+var_10] mov rsi, [rbp+var_28] call my_coll_parser_too_long_error mov [rbp+var_4], eax jmp short loc_4F4AC loc_4F49A: mov rdi, [rbp+var_10] call my_coll_parser_scan jmp short loc_4F44B loc_4F4A5: mov [rbp+var_4], 1 loc_4F4AC: mov eax, [rbp+var_4] add rsp, 50h pop rbp retn
long long my_coll_parser_scan_character_list(long long a1, long long a2, long long a3, long long a4) { long long v4; // rax long long v5; // rax if ( *(_DWORD *)my_coll_parser_curr(a1) == 5 ) { v4 = my_coll_parser_curr(a1); if ( (unsigned int)my_coll_rule_expand(a2, a3, *(int *)(v4 + 36)) ) { if ( (unsigned int)my_coll_parser_scan_term(a1, 5u) ) { while ( *(_DWORD *)my_coll_parser_curr(a1) == 5 ) { v5 = my_coll_parser_curr(a1); if ( !(unsigned int)my_coll_rule_expand(a2, a3, *(int *)(v5 + 36)) ) return (unsigned int)my_coll_parser_too_long_error(a1, a4); my_coll_parser_scan(a1); } return 1; } else { return 0; } } else { return (unsigned int)my_coll_parser_too_long_error(a1, a4); } } else { return (unsigned int)my_coll_parser_expected_error(a1, 5u); } }
my_coll_parser_scan_character_list: 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 RDI,qword ptr [RBP + -0x10] CALL 0x0014e3f0 CMP dword ptr [RAX],0x5 JZ 0x0014f3ec MOV RDI,qword ptr [RBP + -0x10] MOV ESI,0x5 CALL 0x0014ed30 MOV dword ptr [RBP + -0x4],EAX JMP 0x0014f4ac LAB_0014f3ec: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x30],RAX MOV RDI,qword ptr [RBP + -0x10] CALL 0x0014e3f0 MOV RDI,qword ptr [RBP + -0x38] MOV RSI,qword ptr [RBP + -0x30] MOVSXD RDX,dword ptr [RAX + 0x24] CALL 0x0014f4c0 CMP EAX,0x0 JNZ 0x0014f42d MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x28] CALL 0x0014f530 MOV dword ptr [RBP + -0x4],EAX JMP 0x0014f4ac LAB_0014f42d: MOV RDI,qword ptr [RBP + -0x10] MOV ESI,0x5 CALL 0x0014e9c0 CMP EAX,0x0 JNZ 0x0014f449 MOV dword ptr [RBP + -0x4],0x0 JMP 0x0014f4ac LAB_0014f449: JMP 0x0014f44b LAB_0014f44b: MOV RDI,qword ptr [RBP + -0x10] CALL 0x0014e3f0 CMP dword ptr [RAX],0x5 JNZ 0x0014f4a5 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x40],RAX MOV RDI,qword ptr [RBP + -0x10] CALL 0x0014e3f0 MOV RDI,qword ptr [RBP + -0x48] MOV RSI,qword ptr [RBP + -0x40] MOVSXD RDX,dword ptr [RAX + 0x24] CALL 0x0014f4c0 CMP EAX,0x0 JNZ 0x0014f49a MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x28] CALL 0x0014f530 MOV dword ptr [RBP + -0x4],EAX JMP 0x0014f4ac LAB_0014f49a: MOV RDI,qword ptr [RBP + -0x10] CALL 0x0014ebd0 JMP 0x0014f44b LAB_0014f4a5: MOV dword ptr [RBP + -0x4],0x1 LAB_0014f4ac: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x50 POP RBP RET
int4 my_coll_parser_scan_character_list (int8 param_1,int8 param_2,int8 param_3,int8 param_4) { int iVar1; int4 uVar2; int *piVar3; long lVar4; int4 local_c; piVar3 = (int *)my_coll_parser_curr(param_1); if (*piVar3 == 5) { lVar4 = my_coll_parser_curr(param_1); iVar1 = my_coll_rule_expand(param_2,param_3,(long)*(int *)(lVar4 + 0x24)); if (iVar1 == 0) { local_c = my_coll_parser_too_long_error(param_1,param_4); } else { iVar1 = my_coll_parser_scan_term(param_1,5); if (iVar1 == 0) { local_c = 0; } else { while (piVar3 = (int *)my_coll_parser_curr(param_1), *piVar3 == 5) { lVar4 = my_coll_parser_curr(param_1); iVar1 = my_coll_rule_expand(param_2,param_3,(long)*(int *)(lVar4 + 0x24)); if (iVar1 == 0) { uVar2 = my_coll_parser_too_long_error(param_1,param_4); return uVar2; } my_coll_parser_scan(param_1); } local_c = 1; } } } else { local_c = my_coll_parser_expected_error(param_1,5); } return local_c; }
39,815
YAML::detail::iterator_value::iterator_value(YAML::Node const&)
aimrt_mujoco_sim/_deps/yaml-cpp-src/include/yaml-cpp/node/iterator.h
explicit iterator_value(const Node& rhs) : Node(rhs), std::pair<Node, Node>(Node(Node::ZombieNode), Node(Node::ZombieNode)) {}
O0
c
YAML::detail::iterator_value::iterator_value(YAML::Node const&): subq $0xb8, %rsp movq %rdi, 0xb0(%rsp) movq %rsi, 0xa8(%rsp) movq 0xb0(%rsp), %rdi movq %rdi, 0x8(%rsp) movq 0xa8(%rsp), %rsi callq 0xd8390 movq 0x8(%rsp), %rax addq $0x40, %rax movq %rax, 0x10(%rsp) leaq 0x68(%rsp), %rdi xorl %esi, %esi callq 0xe7580 jmp 0xe72ed leaq 0x18(%rsp), %rdi xorl %esi, %esi callq 0xe7580 jmp 0xe72fb movq 0x10(%rsp), %rdi leaq 0x68(%rsp), %rsi leaq 0x18(%rsp), %rdx callq 0xe75c0 jmp 0xe7311 leaq 0x18(%rsp), %rdi callq 0xd83f0 leaq 0x68(%rsp), %rdi callq 0xd83f0 addq $0xb8, %rsp retq movq %rax, %rcx movl %edx, %eax movq %rcx, 0x60(%rsp) movl %eax, 0x5c(%rsp) jmp 0xe736f movq %rax, %rcx movl %edx, %eax movq %rcx, 0x60(%rsp) movl %eax, 0x5c(%rsp) jmp 0xe7365 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x60(%rsp) movl %eax, 0x5c(%rsp) leaq 0x18(%rsp), %rdi callq 0xd83f0 leaq 0x68(%rsp), %rdi callq 0xd83f0 movq 0x8(%rsp), %rdi callq 0xd83f0 movq 0x60(%rsp), %rdi callq 0x90db0 nopw %cs:(%rax,%rax) nopl (%rax)
_ZN4YAML6detail14iterator_valueC2ERKNS_4NodeE: sub rsp, 0B8h mov [rsp+0B8h+var_8], rdi mov [rsp+0B8h+var_10], rsi mov rdi, [rsp+0B8h+var_8]; this mov qword ptr [rsp+0B8h+var_B0], rdi; int mov rsi, [rsp+0B8h+var_10]; YAML::Node * call _ZN4YAML4NodeC2ERKS0_; YAML::Node::Node(YAML::Node const&) mov rax, qword ptr [rsp+0B8h+var_B0] add rax, 40h ; '@' mov [rsp+0B8h+var_A8], rax; __int64 lea rdi, [rsp+0B8h+var_50] xor esi, esi call _ZN4YAML4NodeC2ENS0_6ZombieE; YAML::Node::Node(YAML::Node::Zombie) jmp short $+2 loc_E72ED: lea rdi, [rsp+0B8h+var_A0] xor esi, esi call _ZN4YAML4NodeC2ENS0_6ZombieE; YAML::Node::Node(YAML::Node::Zombie) jmp short $+2 loc_E72FB: mov rdi, [rsp+0B8h+var_A8]; int lea rsi, [rsp+0B8h+var_50]; int lea rdx, [rsp+0B8h+var_A0]; int call _ZNSt4pairIN4YAML4NodeES1_EC2IS1_S1_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_ jmp short $+2 loc_E7311: lea rdi, [rsp+0B8h+var_A0]; this call _ZN4YAML4NodeD2Ev; YAML::Node::~Node() lea rdi, [rsp+0B8h+var_50]; this call _ZN4YAML4NodeD2Ev; YAML::Node::~Node() add rsp, 0B8h retn mov rcx, rax mov eax, edx mov [rsp+arg_58], rcx mov [rsp+arg_54], eax jmp short loc_E736F mov rcx, rax mov eax, edx mov [rsp+arg_58], rcx mov [rsp+arg_54], eax jmp short loc_E7365 mov rcx, rax mov eax, edx mov [rsp+arg_58], rcx mov [rsp+arg_54], eax lea rdi, [rsp+arg_10]; this call _ZN4YAML4NodeD2Ev; YAML::Node::~Node() loc_E7365: lea rdi, [rsp+arg_60]; this call _ZN4YAML4NodeD2Ev; YAML::Node::~Node() loc_E736F: mov rdi, [rsp+arg_0]; this call _ZN4YAML4NodeD2Ev; YAML::Node::~Node() mov rdi, [rsp+arg_58] call __Unwind_Resume
void YAML::detail::iterator_value::iterator_value( YAML::detail::iterator_value *this, const YAML::Node *a2, int a3, int a4, int a5, int a6) { int v6; // ecx int v7; // r8d int v8; // r9d YAML::Node *v9; // [rsp+0h] [rbp-B8h] int v10[20]; // [rsp+18h] [rbp-A0h] BYREF int v11[16]; // [rsp+68h] [rbp-50h] BYREF YAML::Node *v12; // [rsp+A8h] [rbp-10h] YAML::Node *v13; // [rsp+B0h] [rbp-8h] v13 = this; v12 = a2; YAML::Node::Node(this, a2, a3, a4, a5, a6); YAML::Node::Node(v11, 0LL); YAML::Node::Node(v10, 0LL); ZNSt4pairIN4YAML4NodeES1_EC2IS1_S1_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_( (_DWORD)this + 64, (int)v11, (int)v10, v6, v7, v8, v9, (int)this, (long long)this + 64); YAML::Node::~Node((YAML::Node *)v10); YAML::Node::~Node((YAML::Node *)v11); }
iterator_value: SUB RSP,0xb8 MOV qword ptr [RSP + 0xb0],RDI MOV qword ptr [RSP + 0xa8],RSI MOV RDI,qword ptr [RSP + 0xb0] MOV qword ptr [RSP + 0x8],RDI MOV RSI,qword ptr [RSP + 0xa8] CALL 0x001d8390 MOV RAX,qword ptr [RSP + 0x8] ADD RAX,0x40 MOV qword ptr [RSP + 0x10],RAX LAB_001e72df: LEA RDI,[RSP + 0x68] XOR ESI,ESI CALL 0x001e7580 JMP 0x001e72ed LAB_001e72ed: LEA RDI,[RSP + 0x18] XOR ESI,ESI CALL 0x001e7580 JMP 0x001e72fb LAB_001e72fb: MOV RDI,qword ptr [RSP + 0x10] LEA RSI,[RSP + 0x68] LEA RDX,[RSP + 0x18] CALL 0x001e75c0 LAB_001e730f: JMP 0x001e7311 LAB_001e7311: LEA RDI,[RSP + 0x18] CALL 0x001d83f0 LEA RDI,[RSP + 0x68] CALL 0x001d83f0 ADD RSP,0xb8 RET
/* YAML::detail::iterator_value::iterator_value(YAML::Node const&) */ void __thiscall YAML::detail::iterator_value::iterator_value(iterator_value *this,Node *param_1) { Node local_a0 [80]; Node local_50 [64]; Node *local_10; iterator_value *local_8; local_10 = param_1; local_8 = this; Node::Node((Node *)this,param_1); /* try { // try from 001e72df to 001e72ea has its CatchHandler @ 001e732d */ Node::Node(local_50,0); /* try { // try from 001e72ed to 001e72f8 has its CatchHandler @ 001e733d */ Node::Node(local_a0,0); /* try { // try from 001e72fb to 001e730e has its CatchHandler @ 001e734d */ _ZNSt4pairIN4YAML4NodeES1_EC2IS1_S1_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_ (this + 0x40,local_50,local_a0); Node::~Node(local_a0); Node::~Node(local_50); return; }
39,816
convert_dirname
eloqsql/mysys/mf_dirname.c
char *convert_dirname(char *to, const char *from, const char *from_end) { char *to_org=to; #ifdef BACKSLASH_MBTAIL CHARSET_INFO *fs= fs_character_set(); #endif DBUG_ENTER("convert_dirname"); /* We use -2 here, becasue we need place for the last FN_LIBCHAR */ if (!from_end || (from_end - from) > FN_REFLEN-2) from_end=from+FN_REFLEN -2; #if FN_LIBCHAR != '/' { for (; from != from_end && *from ; from++) { if (*from == '/') *to++= FN_LIBCHAR; else { #ifdef BACKSLASH_MBTAIL uint l; if (my_ci_use_mb(fs) && (l= my_ismbchar(fs, from, from + 3))) { memmove(to, from, l); to+= l; from+= l - 1; to_org= to; /* Don't look inside mbchar */ } else #endif { *to++= *from; } } } *to=0; } #else /* This is ok even if to == from, becasue we need to cut the string */ to= strmake(to, from, (size_t) (from_end-from)); #endif /* Add FN_LIBCHAR to the end of directory path */ if (to != to_org && (to[-1] != FN_LIBCHAR && to[-1] != FN_DEVCHAR)) { *to++=FN_LIBCHAR; *to=0; } DBUG_RETURN(to); /* Pointer to end of dir */ }
O3
c
convert_dirname: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq %rdi, %rbx movq %rdx, %rax subq %rsi, %rax leaq 0x1fe(%rsi), %rcx cmpq $0x1ff, %rax # imm = 0x1FF movq %rdx, %rax cmovgeq %rcx, %rax testq %rdx, %rdx cmoveq %rcx, %rax subq %rsi, %rax movq %rax, %rdx callq 0x962f8 cmpq %rbx, %rax je 0x52fe2 movzbl -0x1(%rax), %ecx testl %ecx, %ecx je 0x52fe2 cmpl $0x2f, %ecx je 0x52fe2 movw $0x2f, (%rax) incq %rax addq $0x8, %rsp popq %rbx popq %rbp retq nopl (%rax)
convert_dirname: push rbp mov rbp, rsp push rbx push rax mov rbx, rdi mov rax, rdx sub rax, rsi lea rcx, [rsi+1FEh] cmp rax, 1FFh mov rax, rdx cmovge rax, rcx test rdx, rdx cmovz rax, rcx sub rax, rsi mov rdx, rax call strmake cmp rax, rbx jz short loc_52FE2 movzx ecx, byte ptr [rax-1] test ecx, ecx jz short loc_52FE2 cmp ecx, 2Fh ; '/' jz short loc_52FE2 mov word ptr [rax], 2Fh ; '/' inc rax loc_52FE2: add rsp, 8 pop rbx pop rbp retn
_WORD * convert_dirname(_WORD *a1, long long a2, long long a3) { long long v3; // rax _WORD *result; // rax v3 = a3; if ( a3 - a2 >= 511 ) v3 = a2 + 510; if ( !a3 ) v3 = a2 + 510; result = (_WORD *)strmake(a1, a2, v3 - a2); if ( result != a1 && *((_BYTE *)result - 1) && *((_BYTE *)result - 1) != 47 ) { *result = 47; return (_WORD *)((char *)result + 1); } return result; }
convert_dirname: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RBX,RDI MOV RAX,RDX SUB RAX,RSI LEA RCX,[RSI + 0x1fe] CMP RAX,0x1ff MOV RAX,RDX CMOVGE RAX,RCX TEST RDX,RDX CMOVZ RAX,RCX SUB RAX,RSI MOV RDX,RAX CALL 0x001962f8 CMP RAX,RBX JZ 0x00152fe2 MOVZX ECX,byte ptr [RAX + -0x1] TEST ECX,ECX JZ 0x00152fe2 CMP ECX,0x2f JZ 0x00152fe2 MOV word ptr [RAX],0x2f INC RAX LAB_00152fe2: ADD RSP,0x8 POP RBX POP RBP RET
int2 * convert_dirname(int2 *param_1,long param_2,long param_3) { long lVar1; int2 *puVar2; lVar1 = param_3; if (0x1fe < param_3 - param_2) { lVar1 = param_2 + 0x1fe; } if (param_3 == 0) { lVar1 = param_2 + 0x1fe; } puVar2 = (int2 *)strmake(param_1,param_2,lVar1 - param_2); if (((puVar2 != param_1) && (*(char *)((long)puVar2 + -1) != '\0')) && (*(char *)((long)puVar2 + -1) != '/')) { *puVar2 = 0x2f; puVar2 = (int2 *)((long)puVar2 + 1); } return puVar2; }
39,817
bool httplib::detail::write_content_chunked<httplib::Server::write_content_with_provider(httplib::Stream&, httplib::Request const&, httplib::Response&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)::'lambda'(), httplib::detail::compressor>(httplib::Stream&, std::function<bool (unsigned long, unsigned long, httplib::DataSink&)> const&, httplib::Server::write_content_with_provider(httplib::Stream&, httplib::Request const&, httplib::Response&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)::'lambda'() const&, httplib::detail::compressor&, httplib::Error&)
nickolajgrishuk[P]metricz-cpp/build_O3/_deps/httplib-src/httplib.h
inline bool write_content_chunked(Stream &strm, const ContentProvider &content_provider, const T &is_shutting_down, U &compressor, Error &error) { size_t offset = 0; auto data_available = true; auto ok = true; DataSink data_sink; data_sink.write = [&](const char *d, size_t l) -> bool { if (ok) { data_available = l > 0; offset += l; std::string payload; if (compressor.compress(d, l, false, [&](const char *data, size_t data_len) { payload.append(data, data_len); return true; })) { if (!payload.empty()) { // Emit chunked response header and footer for each chunk auto chunk = from_i_to_hex(payload.size()) + "\r\n" + payload + "\r\n"; if (!strm.is_writable() || !write_data(strm, chunk.data(), chunk.size())) { ok = false; } } } else { ok = false; } } return ok; }; data_sink.done = [&](void) { if (!ok) { return; } data_available = false; std::string payload; if (!compressor.compress(nullptr, 0, true, [&](const char *data, size_t data_len) { payload.append(data, data_len); return true; })) { ok = false; return; } if (!payload.empty()) { // Emit chunked response header and footer for each chunk auto chunk = from_i_to_hex(payload.size()) + "\r\n" + payload + "\r\n"; if (!write_data(strm, chunk.data(), chunk.size())) { ok = false; return; } } static const std::string done_marker("0\r\n\r\n"); if (!write_data(strm, done_marker.data(), done_marker.size())) { ok = false; } }; while (data_available && !is_shutting_down()) { if (!strm.is_writable()) { error = Error::Write; return false; } else if (!content_provider(offset, 0, data_sink)) { error = Error::Canceled; return false; } else if (!ok) { error = Error::Write; return false; } } error = Error::Success; return true; }
O3
c
bool httplib::detail::write_content_chunked<httplib::Server::write_content_with_provider(httplib::Stream&, httplib::Request const&, httplib::Response&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)::'lambda'(), httplib::detail::compressor>(httplib::Stream&, std::function<bool (unsigned long, unsigned long, httplib::DataSink&)> const&, httplib::Server::write_content_with_provider(httplib::Stream&, httplib::Request const&, httplib::Response&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)::'lambda'() const&, httplib::detail::compressor&, httplib::Error&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1e8, %rsp # imm = 0x1E8 movq %r8, 0x18(%rsp) movq %rcx, %rbx movq %rdx, %r15 movq %rsi, %r12 movq %rdi, %r13 leaq 0x10(%rsp), %rax movq $0x0, (%rax) movb $0x1, %al leaq 0xe(%rsp), %r14 movb %al, (%r14) leaq 0xf(%rsp), %rbp movb %al, (%rbp) leaq 0x50(%rsp), %rdi callq 0x1eb24 leaq 0x28(%rsp), %rsi movq %rbp, (%rsi) movq %r14, 0x8(%rsi) leaq 0x10(%rsp), %rax movq %rax, 0x10(%rsi) movq %rbx, 0x18(%rsi) movq %r13, 0x20(%rsi) leaq 0x50(%rsp), %rdi callq 0x1f486 leaq 0x28(%rsp), %rsi movq %rbp, (%rsi) leaq 0xe(%rsp), %rax movq %rax, 0x8(%rsi) movq %rbx, 0x10(%rsi) movq %r13, 0x18(%rsi) leaq 0x70(%rsp), %rdi callq 0x1f522 leaq 0x50(%rsp), %r14 movb $0x1, %bpl xorl %ebx, %ebx cmpb $0x1, 0xe(%rsp) jne 0x1f3e4 movq (%r15), %rax movl 0x28(%rax), %eax cmpl $-0x1, %eax je 0x1f3e4 movq (%r13), %rax movq %r13, %rdi callq *0x18(%rax) movl $0x5, %ebx testb %al, %al je 0x1f3e2 movq 0x10(%rsp), %rax movq %rax, 0x28(%rsp) movq $0x0, 0x20(%rsp) cmpq $0x0, 0x10(%r12) je 0x1f45c movq %r12, %rdi leaq 0x28(%rsp), %rsi leaq 0x20(%rsp), %rdx movq %r14, %rcx callq *0x18(%r12) testb %al, %al je 0x1f3dd cmpb $0x0, 0xf(%rsp) jne 0x1f372 jmp 0x1f3e2 movl $0x7, %ebx xorl %ebp, %ebp movq 0x18(%rsp), %rax movl %ebx, (%rax) movq 0x20b8e(%rip), %rax # 0x3ff80 addq $0x10, %rax leaq 0x1d8(%rsp), %rdi movq %rax, -0x38(%rdi) callq 0x87c0 leaq 0x98(%rsp), %rbx movq %rbx, %rdi callq 0x81c0 movq -0x18(%rbx), %rax testq %rax, %rax je 0x1f42f leaq 0x70(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq 0x60(%rsp), %rax testq %rax, %rax je 0x1f448 leaq 0x50(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movl %ebp, %eax addq $0x1e8, %rsp # imm = 0x1E8 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0x81f0 jmp 0x1f463 movq %rax, %rdi callq 0x9339 jmp 0x1f471 jmp 0x1f471 jmp 0x1f471 movq %rax, %rbx leaq 0x50(%rsp), %rdi callq 0x1ec78 movq %rbx, %rdi callq 0x8980
_ZN7httplib6detail21write_content_chunkedIZNS_6Server27write_content_with_providerERNS_6StreamERKNS_7RequestERNS_8ResponseERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESH_EUlvE_NS0_10compressorEEEbS4_RKSt8functionIFbmmRNS_8DataSinkEEERKT_RT0_RNS_5ErrorE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 1E8h mov [rsp+218h+var_200], r8 mov rbx, rcx mov r15, rdx mov r12, rsi mov r13, rdi lea rax, [rsp+218h+var_208] mov qword ptr [rax], 0 mov al, 1 lea r14, [rsp+218h+var_20A] mov [r14], al lea rbp, [rsp+218h+var_209] mov [rbp+0], al lea rdi, [rsp+218h+var_1C8]; this call _ZN7httplib8DataSinkC2Ev; httplib::DataSink::DataSink(void) lea rsi, [rsp+218h+var_1F0] mov [rsi], rbp mov [rsi+8], r14 lea rax, [rsp+218h+var_208] mov [rsi+10h], rax mov [rsi+18h], rbx mov [rsi+20h], r13 lea rdi, [rsp+218h+var_1C8] call _ZNSt8functionIFbPKcmEEaSIZN7httplib6detail21write_content_chunkedIZNS5_6Server27write_content_with_providerERNS5_6StreamERKNS5_7RequestERNS5_8ResponseERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESN_EUlvE_NS6_10compressorEEEbSA_RKS_IFbmmRNS5_8DataSinkEEERKT_RT0_RNS5_5ErrorEEUlS1_mE_EENSt9enable_ifIXsrNS3_9_CallableISW_NS14_IXntsr7is_sameINSt9remove_cvINSt16remove_referenceISW_E4typeEE4typeES3_EE5valueESt5decayISW_EE4type4typeESt15__invoke_resultIRS1G_JS1_mEEEE5valueERS3_E4typeEOSW_ lea rsi, [rsp+218h+var_1F0] mov [rsi], rbp lea rax, [rsp+218h+var_20A] mov [rsi+8], rax mov [rsi+10h], rbx mov [rsi+18h], r13 lea rdi, [rsp+218h+var_1A8] call _ZNSt8functionIFvvEEaSIZN7httplib6detail21write_content_chunkedIZNS3_6Server27write_content_with_providerERNS3_6StreamERKNS3_7RequestERNS3_8ResponseERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESL_EUlvE_NS4_10compressorEEEbS8_RKS_IFbmmRNS3_8DataSinkEEERKT_RT0_RNS3_5ErrorEEUlvE_EENSt9enable_ifIXsrNS1_9_CallableISU_NS12_IXntsr7is_sameINSt9remove_cvINSt16remove_referenceISU_E4typeEE4typeES1_EE5valueESt5decayISU_EE4type4typeESt15__invoke_resultIRS1E_JEEEE5valueERS1_E4typeEOSU_ lea r14, [rsp+218h+var_1C8] loc_1F372: mov bpl, 1 xor ebx, ebx cmp [rsp+218h+var_20A], 1 jnz short loc_1F3E4 mov rax, [r15] mov eax, [rax+28h] cmp eax, 0FFFFFFFFh jz short loc_1F3E4 mov rax, [r13+0] mov rdi, r13 call qword ptr [rax+18h] mov ebx, 5 test al, al jz short loc_1F3E2 mov rax, [rsp+218h+var_208] mov [rsp+218h+var_1F0], rax mov [rsp+218h+var_1F8], 0 cmp qword ptr [r12+10h], 0 jz loc_1F45C mov rdi, r12 lea rsi, [rsp+218h+var_1F0] lea rdx, [rsp+218h+var_1F8] mov rcx, r14 call qword ptr [r12+18h] test al, al jz short loc_1F3DD cmp [rsp+218h+var_209], 0 jnz short loc_1F372 jmp short loc_1F3E2 loc_1F3DD: mov ebx, 7 loc_1F3E2: xor ebp, ebp loc_1F3E4: mov rax, [rsp+218h+var_200] mov [rax], ebx mov rax, cs:_ZTVSt15basic_streambufIcSt11char_traitsIcEE_ptr add rax, 10h lea rdi, [rsp+218h+var_40]; this mov [rdi-38h], rax call __ZNSt6localeD1Ev; std::locale::~locale() lea rbx, [rsp+218h+var_180] mov rdi, rbx; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() mov rax, [rbx-18h] test rax, rax jz short loc_1F42F lea rdi, [rsp+218h+var_1A8] mov rsi, rdi mov edx, 3 call rax loc_1F42F: mov rax, [rsp+218h+var_1B8] test rax, rax jz short loc_1F448 lea rdi, [rsp+218h+var_1C8] mov rsi, rdi mov edx, 3 call rax loc_1F448: mov eax, ebp add rsp, 1E8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_1F45C: call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void) jmp short $+2 loc_1F463: mov rdi, rax call __clang_call_terminate jmp short loc_1F471 jmp short loc_1F471 jmp short $+2 loc_1F471: mov rbx, rax lea rdi, [rsp+218h+var_1C8]; this call _ZN7httplib8DataSinkD2Ev; httplib::DataSink::~DataSink() mov rdi, rbx call __Unwind_Resume
long long httplib::detail::write_content_chunked<httplib::Server::write_content_with_provider(httplib::Stream &,httplib::Request const&,httplib::Response &,std::string const&,std::string const&)::{lambda(void)#1},httplib::detail::compressor>( _QWORD *a1, long long a2, long long a3, _QWORD *a4, int *a5) { char *v7; // rbp int v8; // ebx char v10; // [rsp+Eh] [rbp-20Ah] BYREF char v11; // [rsp+Fh] [rbp-209h] BYREF char *v12; // [rsp+10h] [rbp-208h] BYREF int *v13; // [rsp+18h] [rbp-200h] long long v14; // [rsp+20h] [rbp-1F8h] BYREF char *v15; // [rsp+28h] [rbp-1F0h] BYREF char *v16; // [rsp+30h] [rbp-1E8h] char **v17; // [rsp+38h] [rbp-1E0h] _QWORD *v18; // [rsp+40h] [rbp-1D8h] _QWORD *v19; // [rsp+48h] [rbp-1D0h] _BYTE v20[16]; // [rsp+50h] [rbp-1C8h] BYREF void ( *v21)(_BYTE *, _BYTE *, long long); // [rsp+60h] [rbp-1B8h] _BYTE v22[16]; // [rsp+70h] [rbp-1A8h] BYREF void ( *v23)(_BYTE *, _BYTE *, long long); // [rsp+80h] [rbp-198h] char v24[264]; // [rsp+98h] [rbp-180h] BYREF char *v25; // [rsp+1A0h] [rbp-78h] char v26[64]; // [rsp+1D8h] [rbp-40h] BYREF v13 = a5; v12 = 0LL; v10 = 1; v7 = &v11; v11 = 1; httplib::DataSink::DataSink((httplib::DataSink *)v20); v15 = &v11; v16 = &v10; v17 = &v12; v18 = a4; v19 = a1; std::function<bool ()(char const*,unsigned long)>::operator=<bool httplib::detail::write_content_chunked<httplib::Server::write_content_with_provider(httplib::Stream &,httplib::Request const&,httplib::Response &,std::string const&,std::string const&)::{lambda(void)#1},httplib::detail::compressor>(httplib::Stream &,std::function const&<bool ()(unsigned long,unsigned long,httplib::DataSink &)>,httplib::Server::write_content_with_provider(httplib::Stream &,httplib::Request const&,httplib::Response &,std::string const&,std::string const&)::{lambda(void)#1} const&,httplib::detail::compressor &,httplib::Error &)::{lambda(char const*,unsigned long)#1}>(v20); v15 = &v11; v16 = &v10; v17 = (char **)a4; v18 = a1; std::function<void ()(void)>::operator=<bool httplib::detail::write_content_chunked<httplib::Server::write_content_with_provider(httplib::Stream &,httplib::Request const&,httplib::Response &,std::string const&,std::string const&)::{lambda(void)#1},httplib::detail::compressor>(httplib::Stream &,std::function const&<bool ()(unsigned long,unsigned long,httplib::DataSink &)>,httplib::Server::write_content_with_provider(httplib::Stream &,httplib::Request const&,httplib::Response &,std::string const&,std::string const&)::{lambda(void)#1} const&,httplib::detail::compressor &,httplib::Error &)::{lambda(void)#1}>(v22); while ( 1 ) { LOBYTE(v7) = 1; v8 = 0; if ( v10 != 1 || *(_DWORD *)(*(_QWORD *)a3 + 40LL) == -1 ) break; v8 = 5; if ( !(*(unsigned __int8 ( **)(_QWORD *))(*a1 + 24LL))(a1) ) goto LABEL_10; v15 = v12; v14 = 0LL; if ( !*(_QWORD *)(a2 + 16) ) std::__throw_bad_function_call(); if ( !(*(unsigned __int8 ( **)(long long, char **, long long *, _BYTE *))(a2 + 24))(a2, &v15, &v14, v20) ) { v8 = 7; LABEL_10: LODWORD(v7) = 0; break; } if ( !v11 ) goto LABEL_10; } *v13 = v8; v25 = (char *)&`vtable for'std::streambuf + 16; std::locale::~locale((std::locale *)v26); std::ios_base::~ios_base((std::ios_base *)v24); if ( v23 ) v23(v22, v22, 3LL); if ( v21 ) v21(v20, v20, 3LL); return (unsigned int)v7; }
write_content_chunked<httplib::Server::write_content_with_provider(httplib::Stream&,httplib::Request_const&,httplib::Response&,std::__cxx11::string_const&,std::__cxx11::string_const&)::{lambda()#1},httplib::detail::compressor>: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x1e8 MOV qword ptr [RSP + 0x18],R8 MOV RBX,RCX MOV R15,RDX MOV R12,RSI MOV R13,RDI LEA RAX,[RSP + 0x10] MOV qword ptr [RAX],0x0 MOV AL,0x1 LEA R14,[RSP + 0xe] MOV byte ptr [R14],AL LEA RBP,[RSP + 0xf] MOV byte ptr [RBP],AL LEA RDI,[RSP + 0x50] CALL 0x0011eb24 LEA RSI,[RSP + 0x28] MOV qword ptr [RSI],RBP MOV qword ptr [RSI + 0x8],R14 LEA RAX,[RSP + 0x10] MOV qword ptr [RSI + 0x10],RAX MOV qword ptr [RSI + 0x18],RBX MOV qword ptr [RSI + 0x20],R13 LAB_0011f340: LEA RDI,[RSP + 0x50] CALL 0x0011f486 LEA RSI,[RSP + 0x28] MOV qword ptr [RSI],RBP LEA RAX,[RSP + 0xe] MOV qword ptr [RSI + 0x8],RAX MOV qword ptr [RSI + 0x10],RBX MOV qword ptr [RSI + 0x18],R13 LEA RDI,[RSP + 0x70] LAB_0011f368: CALL 0x0011f522 LEA R14,[RSP + 0x50] LAB_0011f372: MOV BPL,0x1 XOR EBX,EBX CMP byte ptr [RSP + 0xe],0x1 JNZ 0x0011f3e4 MOV RAX,qword ptr [R15] MOV EAX,dword ptr [RAX + 0x28] CMP EAX,-0x1 JZ 0x0011f3e4 MOV RAX,qword ptr [R13] LAB_0011f38d: MOV RDI,R13 CALL qword ptr [RAX + 0x18] MOV EBX,0x5 TEST AL,AL JZ 0x0011f3e2 MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x28],RAX MOV qword ptr [RSP + 0x20],0x0 CMP qword ptr [R12 + 0x10],0x0 JZ 0x0011f45c MOV RDI,R12 LEA RSI,[RSP + 0x28] LEA RDX,[RSP + 0x20] MOV RCX,R14 CALL qword ptr [R12 + 0x18] TEST AL,AL JZ 0x0011f3dd CMP byte ptr [RSP + 0xf],0x0 JNZ 0x0011f372 JMP 0x0011f3e2 LAB_0011f3dd: MOV EBX,0x7 LAB_0011f3e2: XOR EBP,EBP LAB_0011f3e4: MOV RAX,qword ptr [RSP + 0x18] MOV dword ptr [RAX],EBX MOV RAX,qword ptr [0x0013ff80] ADD RAX,0x10 LEA RDI,[RSP + 0x1d8] MOV qword ptr [RDI + -0x38],RAX CALL 0x001087c0 LEA RBX,[RSP + 0x98] MOV RDI,RBX CALL 0x001081c0 MOV RAX,qword ptr [RBX + -0x18] TEST RAX,RAX JZ 0x0011f42f LAB_0011f420: LEA RDI,[RSP + 0x70] MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_0011f42f: MOV RAX,qword ptr [RSP + 0x60] TEST RAX,RAX JZ 0x0011f448 LAB_0011f439: LEA RDI,[RSP + 0x50] MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_0011f448: MOV EAX,EBP ADD RSP,0x1e8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0011f45c: CALL 0x001081f0
/* bool httplib::detail::write_content_chunked<httplib::Server::write_content_with_provider(httplib::Stream&, httplib::Request const&, httplib::Response&, std::__cxx11::string const&, std::__cxx11::string const&)::{lambda()#1}, httplib::detail::compressor>(httplib::Stream&, std::function<bool (unsigned long, unsigned long, httplib::DataSink&)> const&, httplib::Server::write_content_with_provider(httplib::Stream&, httplib::Request const&, httplib::Response&, std::__cxx11::string const&, std::__cxx11::string const&)::{lambda()#1} const&, httplib::detail::compressor&, httplib::Error&) */ bool httplib::detail:: write_content_chunked<httplib::Server::write_content_with_provider(httplib::Stream&,httplib::Request_const&,httplib::Response&,std::__cxx11::string_const&,std::__cxx11::string_const&)::_lambda()_1_,httplib::detail::compressor> (Stream *param_1,function *param_2,_lambda___1_ *param_3,compressor *param_4, Error *param_5) { char cVar1; int4 uVar2; bool bVar3; char local_20a; char local_209; char *local_208; Error *local_200; int8 local_1f8; char *local_1f0; char *local_1e8; compressor *local_1e0; compressor *local_1d8; Stream *local_1d0; DataSink local_1c8 [16]; code *local_1b8; function<void()> local_1a8 [16]; code *local_198; ios_base local_180 [264]; int *local_78; locale local_40 [16]; local_208 = (char *)0x0; local_20a = '\x01'; local_209 = '\x01'; local_200 = param_5; DataSink::DataSink(local_1c8); local_1e0 = (compressor *)&local_208; /* try { // try from 0011f340 to 0011f349 has its CatchHandler @ 0011f46d */ local_1f0 = &local_209; local_1e8 = &local_20a; local_1d8 = param_4; local_1d0 = param_1; std::function<bool(char_const*,unsigned_long)>::operator= ((function<bool(char_const*,unsigned_long)> *)local_1c8, (_lambda_char_const__unsigned_long__1_ *)&local_1f0); local_1e8 = &local_20a; local_1f0 = &local_209; local_1e0 = param_4; local_1d8 = (compressor *)param_1; /* try { // try from 0011f368 to 0011f36c has its CatchHandler @ 0011f46b */ std::function<void()>::operator=(local_1a8,(_lambda___1_ *)&local_1f0); while( true ) { bVar3 = true; uVar2 = 0; if ((local_20a != '\x01') || (uVar2 = 0, *(int *)(*(long *)param_3 + 0x28) == -1)) goto LAB_0011f3e4; /* try { // try from 0011f38d to 0011f3cf has its CatchHandler @ 0011f471 */ cVar1 = (**(code **)(*(long *)param_1 + 0x18))(param_1); uVar2 = 5; if (cVar1 == '\0') goto LAB_0011f3e2; local_1f0 = local_208; local_1f8 = 0; if (*(long *)(param_2 + 0x10) == 0) { /* WARNING: Subroutine does not return */ /* try { // try from 0011f45c to 0011f460 has its CatchHandler @ 0011f46f */ std::__throw_bad_function_call(); } cVar1 = (**(code **)(param_2 + 0x18))(param_2,&local_1f0,&local_1f8,local_1c8); if (cVar1 == '\0') break; if (local_209 == '\0') { LAB_0011f3e2: bVar3 = false; LAB_0011f3e4: *(int4 *)local_200 = uVar2; local_78 = PTR_vtable_0013ff80 + 0x10; std::locale::~locale(local_40); std::ios_base::~ios_base(local_180); if (local_198 != (code *)0x0) { /* try { // try from 0011f420 to 0011f42e has its CatchHandler @ 0011f463 */ (*local_198)(local_1a8,local_1a8,3); } if (local_1b8 != (code *)0x0) { /* try { // try from 0011f439 to 0011f447 has its CatchHandler @ 0011f461 */ (*local_1b8)(local_1c8,local_1c8,3); } return bVar3; } } uVar2 = 7; goto LAB_0011f3e2; }
39,818
TestResult()
SDL3Lite/Tests.cpp
void TestResult() { Result result; SDL_TEST(result.Ok() == true); SDL_TEST(result.Message() == ""); result.Message("message"); SDL_TEST(result.Ok() == false); SDL_TEST(result.Message() == "message"); result.Message("error", "detail"); SDL_TEST(result.Ok() == false); SDL_TEST(result.Message() == "errordetail"); result.Clear(); SDL_TEST(result.Ok() == true); SDL_TEST(result.Message() == ""); }
O3
cpp
TestResult(): subq $0x128, %rsp # imm = 0x128 leaq 0x100(%rsp), %rdi movq %rdi, 0x70(%rsp) callq 0x2d470 movq 0x70(%rsp), %rdi callq 0x2d490 movb %al, 0x7e(%rsp) jmp 0x1abe9 movb 0x7e(%rsp), %al movzbl %al, %edi andl $0x1, %edi leaq 0x14438(%rip), %rsi # 0x2f032 leaq 0x145fb(%rip), %rcx # 0x2f1fc movl $0x6e, %edx callq 0x1a630 jmp 0x1ac0d leaq 0x100(%rsp), %rdi callq 0x2d4a0 movq %rax, 0x68(%rsp) jmp 0x1ac21 movq 0x68(%rsp), %rdi leaq 0x14404(%rip), %rsi # 0x2f031 callq 0x1cb90 movb %al, 0x67(%rsp) jmp 0x1ac38 movb 0x67(%rsp), %al movzbl %al, %edi andl $0x1, %edi leaq 0x143e9(%rip), %rsi # 0x2f032 leaq 0x145c0(%rip), %rcx # 0x2f210 movl $0x6f, %edx callq 0x1a630 jmp 0x1ac5c leaq 0xcf(%rsp), %rdi movq %rdi, 0x58(%rsp) callq 0x1a460 movq 0x58(%rsp), %rdx leaq 0x145ad(%rip), %rsi # 0x2f227 leaq 0xd0(%rsp), %rdi callq 0x1cbc0 jmp 0x1ac89 leaq 0x100(%rsp), %rdi leaq 0xd0(%rsp), %rsi callq 0x2d4b0 jmp 0x1aca0 leaq 0xd0(%rsp), %rdi callq 0x1a150 leaq 0xcf(%rsp), %rdi callq 0x1a2c0 leaq 0x100(%rsp), %rdi callq 0x2d490 movb %al, 0x57(%rsp) jmp 0x1accd movb 0x57(%rsp), %al notb %al movzbl %al, %edi andl $0x1, %edi leaq 0x14352(%rip), %rsi # 0x2f032 leaq 0x14548(%rip), %rcx # 0x2f22f movl $0x72, %edx callq 0x1a630 jmp 0x1acf3 leaq 0x100(%rsp), %rdi callq 0x2d4a0 movq %rax, 0x48(%rsp) jmp 0x1ad07 movq 0x48(%rsp), %rdi leaq 0x14514(%rip), %rsi # 0x2f227 callq 0x1cb90 movb %al, 0x47(%rsp) jmp 0x1ad1e movb 0x47(%rsp), %al movzbl %al, %edi andl $0x1, %edi leaq 0x14303(%rip), %rsi # 0x2f032 leaq 0x1450e(%rip), %rcx # 0x2f244 movl $0x73, %edx callq 0x1a630 jmp 0x1ad42 leaq 0xa7(%rsp), %rdi movq %rdi, 0x38(%rsp) callq 0x1a460 movq 0x38(%rsp), %rdx leaq 0x15138(%rip), %rsi # 0x2fe98 leaq 0xa8(%rsp), %rdi callq 0x1cbc0 jmp 0x1ad6f leaq 0x7f(%rsp), %rdi movq %rdi, 0x30(%rsp) callq 0x1a460 movq 0x30(%rsp), %rdx leaq 0x144dd(%rip), %rsi # 0x2f267 leaq 0x80(%rsp), %rdi callq 0x1cbc0 jmp 0x1ad99 leaq 0x100(%rsp), %rdi leaq 0xa8(%rsp), %rsi leaq 0x80(%rsp), %rdx callq 0x2d4e0 jmp 0x1adb8 leaq 0x80(%rsp), %rdi callq 0x1a150 leaq 0x7f(%rsp), %rdi callq 0x1a2c0 leaq 0xa8(%rsp), %rdi callq 0x1a150 leaq 0xa7(%rsp), %rdi callq 0x1a2c0 leaq 0x100(%rsp), %rdi callq 0x2d490 movb %al, 0x2f(%rsp) jmp 0x1adfc movb 0x2f(%rsp), %al notb %al movzbl %al, %edi andl $0x1, %edi leaq 0x14223(%rip), %rsi # 0x2f032 leaq 0x14419(%rip), %rcx # 0x2f22f movl $0x76, %edx callq 0x1a630 jmp 0x1ae22 leaq 0x100(%rsp), %rdi callq 0x2d4a0 movq %rax, 0x20(%rsp) jmp 0x1ae36 movq 0x20(%rsp), %rdi leaq 0x14420(%rip), %rsi # 0x2f262 callq 0x1cb90 movb %al, 0x1f(%rsp) jmp 0x1ae4d movb 0x1f(%rsp), %al movzbl %al, %edi andl $0x1, %edi leaq 0x141d4(%rip), %rsi # 0x2f032 leaq 0x14409(%rip), %rcx # 0x2f26e movl $0x77, %edx callq 0x1a630 jmp 0x1ae71 leaq 0x100(%rsp), %rdi callq 0x2d530 jmp 0x1ae80 leaq 0x100(%rsp), %rdi callq 0x2d490 movb %al, 0x1e(%rsp) jmp 0x1ae93 movb 0x1e(%rsp), %al movzbl %al, %edi andl $0x1, %edi leaq 0x1418e(%rip), %rsi # 0x2f032 leaq 0x14351(%rip), %rcx # 0x2f1fc movl $0x7a, %edx callq 0x1a630 jmp 0x1aeb7 leaq 0x100(%rsp), %rdi callq 0x2d4a0 movq %rax, 0x10(%rsp) jmp 0x1aecb movq 0x10(%rsp), %rdi leaq 0x1415a(%rip), %rsi # 0x2f031 callq 0x1cb90 movb %al, 0xf(%rsp) jmp 0x1aee2 movb 0xf(%rsp), %al movzbl %al, %edi andl $0x1, %edi leaq 0x1413f(%rip), %rsi # 0x2f032 leaq 0x14316(%rip), %rcx # 0x2f210 movl $0x7b, %edx callq 0x1a630 jmp 0x1af06 leaq 0x100(%rsp), %rdi callq 0x1cc80 addq $0x128, %rsp # imm = 0x128 retq movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf8(%rsp) movl %eax, 0xf4(%rsp) jmp 0x1afeb movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf8(%rsp) movl %eax, 0xf4(%rsp) jmp 0x1af6b movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf8(%rsp) movl %eax, 0xf4(%rsp) leaq 0xd0(%rsp), %rdi callq 0x1a150 leaq 0xcf(%rsp), %rdi callq 0x1a2c0 jmp 0x1afeb movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf8(%rsp) movl %eax, 0xf4(%rsp) jmp 0x1afde movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf8(%rsp) movl %eax, 0xf4(%rsp) jmp 0x1afc7 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf8(%rsp) movl %eax, 0xf4(%rsp) leaq 0x80(%rsp), %rdi callq 0x1a150 leaq 0x7f(%rsp), %rdi callq 0x1a2c0 leaq 0xa8(%rsp), %rdi callq 0x1a150 leaq 0xa7(%rsp), %rdi callq 0x1a2c0 leaq 0x100(%rsp), %rdi callq 0x1cc80 movq 0xf8(%rsp), %rdi callq 0x1a450 nopw %cs:(%rax,%rax)
_Z10TestResultv: sub rsp, 128h lea rdi, [rsp+128h+var_28]; this mov [rsp+128h+var_B8], rdi call _ZN3SDL6ResultC2Ev; SDL::Result::Result(void) mov rdi, [rsp+128h+var_B8]; this call _ZN3SDL6Result2OkEv; SDL::Result::Ok(void) mov [rsp+128h+var_AA], al jmp short $+2 loc_1ABE9: mov al, [rsp+128h+var_AA] movzx edi, al and edi, 1; bool lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/SDL3Li"... lea rcx, aResultOkTrue; "result.Ok() == true" mov edx, 6Eh ; 'n'; int call _Z12SDL3LiteTestbPKciS0_; SDL3LiteTest(bool,char const*,int,char const*) jmp short $+2 loc_1AC0D: lea rdi, [rsp+128h+var_28] call _ZN3SDL6Result7MessageB5cxx11Ev; SDL::Result::Message(void) mov [rsp+128h+var_C0], rax jmp short $+2 loc_1AC21: mov rdi, [rsp+128h+var_C0] lea rsi, aTestFailExpres+2Dh; "" call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) mov [rsp+128h+var_C1], al jmp short $+2 loc_1AC38: mov al, [rsp+128h+var_C1] movzx edi, al and edi, 1; bool lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/SDL3Li"... lea rcx, aResultMessage; "result.Message() == \"\"" mov edx, 6Fh ; 'o'; int call _Z12SDL3LiteTestbPKciS0_; SDL3LiteTest(bool,char const*,int,char const*) jmp short $+2 loc_1AC5C: lea rdi, [rsp+128h+var_59] mov [rsp+128h+var_D0], rdi call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdx, [rsp+128h+var_D0] lea rsi, aMessage; "message" lea rdi, [rsp+128h+var_58] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_1AC89: lea rdi, [rsp+128h+var_28] lea rsi, [rsp+128h+var_58] call _ZN3SDL6Result7MessageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; SDL::Result::Message(std::string const&) jmp short $+2 loc_1ACA0: lea rdi, [rsp+128h+var_58] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rsp+128h+var_59] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() lea rdi, [rsp+128h+var_28]; this call _ZN3SDL6Result2OkEv; SDL::Result::Ok(void) mov [rsp+128h+var_D1], al jmp short $+2 loc_1ACCD: mov al, [rsp+128h+var_D1] not al movzx edi, al and edi, 1; bool lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/SDL3Li"... lea rcx, aResultOkFalse; "result.Ok() == false" mov edx, 72h ; 'r'; int call _Z12SDL3LiteTestbPKciS0_; SDL3LiteTest(bool,char const*,int,char const*) jmp short $+2 loc_1ACF3: lea rdi, [rsp+128h+var_28] call _ZN3SDL6Result7MessageB5cxx11Ev; SDL::Result::Message(void) mov [rsp+128h+var_E0], rax jmp short $+2 loc_1AD07: mov rdi, [rsp+128h+var_E0] lea rsi, aMessage; "message" call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) mov [rsp+128h+var_E1], al jmp short $+2 loc_1AD1E: mov al, [rsp+128h+var_E1] movzx edi, al and edi, 1; bool lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/SDL3Li"... lea rcx, aResultMessageM; "result.Message() == \"message\"" mov edx, 73h ; 's'; int call _Z12SDL3LiteTestbPKciS0_; SDL3LiteTest(bool,char const*,int,char const*) jmp short $+2 loc_1AD42: lea rdi, [rsp+128h+var_81] mov [rsp+128h+var_F0], rdi call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdx, [rsp+128h+var_F0] lea rsi, aUnknownError+8; "error" lea rdi, [rsp+128h+var_80] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_1AD6F: lea rdi, [rsp+128h+var_A9] mov [rsp+128h+var_F8], rdi call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdx, [rsp+128h+var_F8] lea rsi, aErrordetail+5; "detail" lea rdi, [rsp+128h+var_A8] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_1AD99: lea rdi, [rsp+128h+var_28] lea rsi, [rsp+128h+var_80] lea rdx, [rsp+128h+var_A8] call _ZN3SDL6Result7MessageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_; SDL::Result::Message(std::string const&,std::string const&) jmp short $+2 loc_1ADB8: lea rdi, [rsp+128h+var_A8] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rsp+128h+var_A9] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() lea rdi, [rsp+128h+var_80] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rsp+128h+var_81] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() lea rdi, [rsp+128h+var_28]; this call _ZN3SDL6Result2OkEv; SDL::Result::Ok(void) mov [rsp+128h+var_F9], al jmp short $+2 loc_1ADFC: mov al, [rsp+128h+var_F9] not al movzx edi, al and edi, 1; bool lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/SDL3Li"... lea rcx, aResultOkFalse; "result.Ok() == false" mov edx, 76h ; 'v'; int call _Z12SDL3LiteTestbPKciS0_; SDL3LiteTest(bool,char const*,int,char const*) jmp short $+2 loc_1AE22: lea rdi, [rsp+128h+var_28] call _ZN3SDL6Result7MessageB5cxx11Ev; SDL::Result::Message(void) mov [rsp+128h+var_108], rax jmp short $+2 loc_1AE36: mov rdi, [rsp+128h+var_108] lea rsi, aErrordetail; "errordetail" call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) mov [rsp+128h+var_109], al jmp short $+2 loc_1AE4D: mov al, [rsp+128h+var_109] movzx edi, al and edi, 1; bool lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/SDL3Li"... lea rcx, aResultMessageE; "result.Message() == \"errordetail\"" mov edx, 77h ; 'w'; int call _Z12SDL3LiteTestbPKciS0_; SDL3LiteTest(bool,char const*,int,char const*) jmp short $+2 loc_1AE71: lea rdi, [rsp+128h+var_28]; this call _ZN3SDL6Result5ClearEv; SDL::Result::Clear(void) jmp short $+2 loc_1AE80: lea rdi, [rsp+128h+var_28]; this call _ZN3SDL6Result2OkEv; SDL::Result::Ok(void) mov [rsp+128h+var_10A], al jmp short $+2 loc_1AE93: mov al, [rsp+128h+var_10A] movzx edi, al and edi, 1; bool lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/SDL3Li"... lea rcx, aResultOkTrue; "result.Ok() == true" mov edx, 7Ah ; 'z'; int call _Z12SDL3LiteTestbPKciS0_; SDL3LiteTest(bool,char const*,int,char const*) jmp short $+2 loc_1AEB7: lea rdi, [rsp+128h+var_28] call _ZN3SDL6Result7MessageB5cxx11Ev; SDL::Result::Message(void) mov [rsp+128h+var_118], rax jmp short $+2 loc_1AECB: mov rdi, [rsp+128h+var_118] lea rsi, aTestFailExpres+2Dh; "" call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) mov [rsp+128h+var_119], al jmp short $+2 loc_1AEE2: mov al, [rsp+128h+var_119] movzx edi, al and edi, 1; bool lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/SDL3Li"... lea rcx, aResultMessage; "result.Message() == \"\"" mov edx, 7Bh ; '{'; int call _Z12SDL3LiteTestbPKciS0_; SDL3LiteTest(bool,char const*,int,char const*) jmp short $+2 loc_1AF06: lea rdi, [rsp+128h+var_28]; this call _ZN3SDL6ResultD2Ev; SDL::Result::~Result() add rsp, 128h retn mov rcx, rax mov eax, edx mov [rsp+arg_F0], rcx mov [rsp+arg_EC], eax jmp loc_1AFEB mov rcx, rax mov eax, edx mov [rsp+arg_F0], rcx mov [rsp+arg_EC], eax jmp short loc_1AF6B mov rcx, rax mov eax, edx mov [rsp+arg_F0], rcx mov [rsp+arg_EC], eax lea rdi, [rsp+arg_C8] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_1AF6B: lea rdi, [rsp+arg_C7] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() jmp short loc_1AFEB mov rcx, rax mov eax, edx mov [rsp+arg_F0], rcx mov [rsp+arg_EC], eax jmp short loc_1AFDE mov rcx, rax mov eax, edx mov [rsp+arg_F0], rcx mov [rsp+arg_EC], eax jmp short loc_1AFC7 mov rcx, rax mov eax, edx mov [rsp+arg_F0], rcx mov [rsp+arg_EC], eax lea rdi, [rsp+arg_78] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_1AFC7: lea rdi, [rsp+arg_77] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() lea rdi, [rsp+arg_A0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_1AFDE: lea rdi, [rsp+arg_9F] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() loc_1AFEB: lea rdi, [rsp+arg_F8]; this call _ZN3SDL6ResultD2Ev; SDL::Result::~Result() mov rdi, [rsp+arg_F0] call __Unwind_Resume
void TestResult(void) { int v0; // ecx int v1; // r8d int v2; // r9d int v3; // ecx int v4; // r8d int v5; // r9d int v6; // ecx int v7; // r8d int v8; // r9d char v9; // [rsp+Fh] [rbp-119h] long long v10; // [rsp+10h] [rbp-118h] char v11; // [rsp+1Eh] [rbp-10Ah] char v12; // [rsp+1Fh] [rbp-109h] long long v13; // [rsp+20h] [rbp-108h] char v14; // [rsp+2Fh] [rbp-F9h] char v15; // [rsp+47h] [rbp-E1h] long long v16; // [rsp+48h] [rbp-E0h] char v17; // [rsp+57h] [rbp-D1h] char v18; // [rsp+67h] [rbp-C1h] long long v19; // [rsp+68h] [rbp-C0h] char v20; // [rsp+7Eh] [rbp-AAh] char v21; // [rsp+7Fh] [rbp-A9h] BYREF _BYTE v22[39]; // [rsp+80h] [rbp-A8h] BYREF char v23; // [rsp+A7h] [rbp-81h] BYREF _BYTE v24[39]; // [rsp+A8h] [rbp-80h] BYREF char v25; // [rsp+CFh] [rbp-59h] BYREF _BYTE v26[48]; // [rsp+D0h] [rbp-58h] BYREF _BYTE v27[40]; // [rsp+100h] [rbp-28h] BYREF SDL::Result::Result((SDL::Result *)v27); v20 = SDL::Result::Ok((SDL::Result *)v27); SDL3LiteTest(v20 & 1, "/workspace/llm4binary/github2025/SDL3Lite/Tests.cpp", 110, "result.Ok() == true"); v19 = SDL::Result::Message[abi:cxx11](v27); v18 = std::operator==<char>(v19, ""); SDL3LiteTest(v18 & 1, "/workspace/llm4binary/github2025/SDL3Lite/Tests.cpp", 111, "result.Message() == \"\""); std::allocator<char>::allocator(); std::string::basic_string<std::allocator<char>>( (unsigned int)v26, (unsigned int)"message", (unsigned int)&v25, v0, v1, v2); SDL::Result::Message(v27, v26); std::string::~string(v26); std::allocator<char>::~allocator(&v25); v17 = SDL::Result::Ok((SDL::Result *)v27); SDL3LiteTest((v17 & 1) == 0, "/workspace/llm4binary/github2025/SDL3Lite/Tests.cpp", 114, "result.Ok() == false"); v16 = SDL::Result::Message[abi:cxx11](v27); v15 = std::operator==<char>(v16, "message"); SDL3LiteTest(v15 & 1, "/workspace/llm4binary/github2025/SDL3Lite/Tests.cpp", 115, "result.Message() == \"message\""); std::allocator<char>::allocator(); std::string::basic_string<std::allocator<char>>( (unsigned int)v24, (unsigned int)"error", (unsigned int)&v23, v3, v4, v5); std::allocator<char>::allocator(); std::string::basic_string<std::allocator<char>>( (unsigned int)v22, (unsigned int)"detail", (unsigned int)&v21, v6, v7, v8); SDL::Result::Message(v27, v24, v22); std::string::~string(v22); std::allocator<char>::~allocator(&v21); std::string::~string(v24); std::allocator<char>::~allocator(&v23); v14 = SDL::Result::Ok((SDL::Result *)v27); SDL3LiteTest((v14 & 1) == 0, "/workspace/llm4binary/github2025/SDL3Lite/Tests.cpp", 118, "result.Ok() == false"); v13 = SDL::Result::Message[abi:cxx11](v27); v12 = std::operator==<char>(v13, "errordetail"); SDL3LiteTest( v12 & 1, "/workspace/llm4binary/github2025/SDL3Lite/Tests.cpp", 119, "result.Message() == \"errordetail\""); SDL::Result::Clear((SDL::Result *)v27); v11 = SDL::Result::Ok((SDL::Result *)v27); SDL3LiteTest(v11 & 1, "/workspace/llm4binary/github2025/SDL3Lite/Tests.cpp", 122, "result.Ok() == true"); v10 = SDL::Result::Message[abi:cxx11](v27); v9 = std::operator==<char>(v10, ""); SDL3LiteTest(v9 & 1, "/workspace/llm4binary/github2025/SDL3Lite/Tests.cpp", 123, "result.Message() == \"\""); SDL::Result::~Result((SDL::Result *)v27); }
TestResult: SUB RSP,0x128 LEA RDI,[RSP + 0x100] MOV qword ptr [RSP + 0x70],RDI CALL 0x0012d470 MOV RDI,qword ptr [RSP + 0x70] LAB_0011abde: CALL 0x0012d490 MOV byte ptr [RSP + 0x7e],AL JMP 0x0011abe9 LAB_0011abe9: MOV AL,byte ptr [RSP + 0x7e] MOVZX EDI,AL AND EDI,0x1 LEA RSI,[0x12f032] LEA RCX,[0x12f1fc] MOV EDX,0x6e CALL 0x0011a630 JMP 0x0011ac0d LAB_0011ac0d: LEA RDI,[RSP + 0x100] CALL 0x0012d4a0 MOV qword ptr [RSP + 0x68],RAX JMP 0x0011ac21 LAB_0011ac21: MOV RDI,qword ptr [RSP + 0x68] LEA RSI,[0x12f031] CALL 0x0011cb90 MOV byte ptr [RSP + 0x67],AL JMP 0x0011ac38 LAB_0011ac38: MOV AL,byte ptr [RSP + 0x67] MOVZX EDI,AL AND EDI,0x1 LEA RSI,[0x12f032] LEA RCX,[0x12f210] MOV EDX,0x6f CALL 0x0011a630 JMP 0x0011ac5c LAB_0011ac5c: LEA RDI,[RSP + 0xcf] MOV qword ptr [RSP + 0x58],RDI CALL 0x0011a460 MOV RDX,qword ptr [RSP + 0x58] LAB_0011ac73: LEA RSI,[0x12f227] LEA RDI,[RSP + 0xd0] CALL 0x0011cbc0 JMP 0x0011ac89 LAB_0011ac89: LEA RDI,[RSP + 0x100] LEA RSI,[RSP + 0xd0] CALL 0x0012d4b0 JMP 0x0011aca0 LAB_0011aca0: LEA RDI,[RSP + 0xd0] CALL 0x0011a150 LEA RDI,[RSP + 0xcf] CALL 0x0011a2c0 LAB_0011acba: LEA RDI,[RSP + 0x100] CALL 0x0012d490 MOV byte ptr [RSP + 0x57],AL JMP 0x0011accd LAB_0011accd: MOV AL,byte ptr [RSP + 0x57] NOT AL MOVZX EDI,AL AND EDI,0x1 LEA RSI,[0x12f032] LEA RCX,[0x12f22f] MOV EDX,0x72 CALL 0x0011a630 JMP 0x0011acf3 LAB_0011acf3: LEA RDI,[RSP + 0x100] CALL 0x0012d4a0 MOV qword ptr [RSP + 0x48],RAX JMP 0x0011ad07 LAB_0011ad07: MOV RDI,qword ptr [RSP + 0x48] LEA RSI,[0x12f227] CALL 0x0011cb90 MOV byte ptr [RSP + 0x47],AL JMP 0x0011ad1e LAB_0011ad1e: MOV AL,byte ptr [RSP + 0x47] MOVZX EDI,AL AND EDI,0x1 LEA RSI,[0x12f032] LEA RCX,[0x12f244] MOV EDX,0x73 CALL 0x0011a630 JMP 0x0011ad42 LAB_0011ad42: LEA RDI,[RSP + 0xa7] MOV qword ptr [RSP + 0x38],RDI CALL 0x0011a460 MOV RDX,qword ptr [RSP + 0x38] LAB_0011ad59: LEA RSI,[0x12fe98] LEA RDI,[RSP + 0xa8] CALL 0x0011cbc0 JMP 0x0011ad6f LAB_0011ad6f: LEA RDI,[RSP + 0x7f] MOV qword ptr [RSP + 0x30],RDI CALL 0x0011a460 MOV RDX,qword ptr [RSP + 0x30] LAB_0011ad83: LEA RSI,[0x12f267] LEA RDI,[RSP + 0x80] CALL 0x0011cbc0 JMP 0x0011ad99 LAB_0011ad99: LEA RDI,[RSP + 0x100] LEA RSI,[RSP + 0xa8] LEA RDX,[RSP + 0x80] CALL 0x0012d4e0 JMP 0x0011adb8 LAB_0011adb8: LEA RDI,[RSP + 0x80] CALL 0x0011a150 LEA RDI,[RSP + 0x7f] CALL 0x0011a2c0 LEA RDI,[RSP + 0xa8] CALL 0x0011a150 LEA RDI,[RSP + 0xa7] CALL 0x0011a2c0 LAB_0011ade9: LEA RDI,[RSP + 0x100] CALL 0x0012d490 MOV byte ptr [RSP + 0x2f],AL JMP 0x0011adfc LAB_0011adfc: MOV AL,byte ptr [RSP + 0x2f] NOT AL MOVZX EDI,AL AND EDI,0x1 LEA RSI,[0x12f032] LEA RCX,[0x12f22f] MOV EDX,0x76 CALL 0x0011a630 JMP 0x0011ae22 LAB_0011ae22: LEA RDI,[RSP + 0x100] CALL 0x0012d4a0 MOV qword ptr [RSP + 0x20],RAX JMP 0x0011ae36 LAB_0011ae36: MOV RDI,qword ptr [RSP + 0x20] LEA RSI,[0x12f262] CALL 0x0011cb90 MOV byte ptr [RSP + 0x1f],AL JMP 0x0011ae4d LAB_0011ae4d: MOV AL,byte ptr [RSP + 0x1f] MOVZX EDI,AL AND EDI,0x1 LEA RSI,[0x12f032] LEA RCX,[0x12f26e] MOV EDX,0x77 CALL 0x0011a630 JMP 0x0011ae71 LAB_0011ae71: LEA RDI,[RSP + 0x100] CALL 0x0012d530 JMP 0x0011ae80 LAB_0011ae80: LEA RDI,[RSP + 0x100] CALL 0x0012d490 MOV byte ptr [RSP + 0x1e],AL JMP 0x0011ae93 LAB_0011ae93: MOV AL,byte ptr [RSP + 0x1e] MOVZX EDI,AL AND EDI,0x1 LEA RSI,[0x12f032] LEA RCX,[0x12f1fc] MOV EDX,0x7a CALL 0x0011a630 JMP 0x0011aeb7 LAB_0011aeb7: LEA RDI,[RSP + 0x100] CALL 0x0012d4a0 MOV qword ptr [RSP + 0x10],RAX JMP 0x0011aecb LAB_0011aecb: MOV RDI,qword ptr [RSP + 0x10] LEA RSI,[0x12f031] CALL 0x0011cb90 MOV byte ptr [RSP + 0xf],AL JMP 0x0011aee2 LAB_0011aee2: MOV AL,byte ptr [RSP + 0xf] MOVZX EDI,AL AND EDI,0x1 LEA RSI,[0x12f032] LEA RCX,[0x12f210] MOV EDX,0x7b CALL 0x0011a630 LAB_0011af04: JMP 0x0011af06 LAB_0011af06: LEA RDI,[RSP + 0x100] CALL 0x0011cc80 ADD RSP,0x128 RET
/* WARNING: Unknown calling convention -- yet parameter storage is locked */ /* TestResult() */ void TestResult(void) { string *psVar1; byte bVar2; bool bVar3; allocator local_a9; string local_a8 [39]; allocator local_81; string local_80 [39]; allocator local_59; string local_58 [48]; Result local_28 [40]; SDL::Result::Result(local_28); /* try { // try from 0011abde to 0011ac59 has its CatchHandler @ 0011af1b */ bVar2 = SDL::Result::Ok(local_28); SDL3LiteTest((bool)(bVar2 & 1),"/workspace/llm4binary/github2025/SDL3Lite/Tests.cpp",0x6e, "result.Ok() == true"); psVar1 = (string *)SDL::Result::Message_abi_cxx11_(local_28); bVar3 = std::operator==(psVar1,""); SDL3LiteTest(bVar3,"/workspace/llm4binary/github2025/SDL3Lite/Tests.cpp",0x6f, "result.Message() == \"\""); std::allocator<char>::allocator(); /* try { // try from 0011ac73 to 0011ac86 has its CatchHandler @ 0011af34 */ std::__cxx11::string::string<std::allocator<char>>(local_58,"message",&local_59); /* try { // try from 0011ac89 to 0011ac9d has its CatchHandler @ 0011af4a */ SDL::Result::Message(local_28,local_58); std::__cxx11::string::~string(local_58); std::allocator<char>::~allocator((allocator<char> *)&local_59); /* try { // try from 0011acba to 0011ad3f has its CatchHandler @ 0011af1b */ bVar2 = SDL::Result::Ok(local_28); SDL3LiteTest((bool)(~bVar2 & 1),"/workspace/llm4binary/github2025/SDL3Lite/Tests.cpp",0x72, "result.Ok() == false"); psVar1 = (string *)SDL::Result::Message_abi_cxx11_(local_28); bVar3 = std::operator==(psVar1,"message"); SDL3LiteTest(bVar3,"/workspace/llm4binary/github2025/SDL3Lite/Tests.cpp",0x73, "result.Message() == \"message\""); std::allocator<char>::allocator(); /* try { // try from 0011ad59 to 0011ad6c has its CatchHandler @ 0011af7a */ std::__cxx11::string::string<std::allocator<char>>(local_80,"error",&local_81); std::allocator<char>::allocator(); /* try { // try from 0011ad83 to 0011ad96 has its CatchHandler @ 0011af90 */ std::__cxx11::string::string<std::allocator<char>>(local_a8,"detail",&local_a9); /* try { // try from 0011ad99 to 0011adb5 has its CatchHandler @ 0011afa6 */ SDL::Result::Message(local_28,local_80,local_a8); std::__cxx11::string::~string(local_a8); std::allocator<char>::~allocator((allocator<char> *)&local_a9); std::__cxx11::string::~string(local_80); std::allocator<char>::~allocator((allocator<char> *)&local_81); /* try { // try from 0011ade9 to 0011af03 has its CatchHandler @ 0011af1b */ bVar2 = SDL::Result::Ok(local_28); SDL3LiteTest((bool)(~bVar2 & 1),"/workspace/llm4binary/github2025/SDL3Lite/Tests.cpp",0x76, "result.Ok() == false"); psVar1 = (string *)SDL::Result::Message_abi_cxx11_(local_28); bVar3 = std::operator==(psVar1,"errordetail"); SDL3LiteTest(bVar3,"/workspace/llm4binary/github2025/SDL3Lite/Tests.cpp",0x77, "result.Message() == \"errordetail\""); SDL::Result::Clear(local_28); bVar2 = SDL::Result::Ok(local_28); SDL3LiteTest((bool)(bVar2 & 1),"/workspace/llm4binary/github2025/SDL3Lite/Tests.cpp",0x7a, "result.Ok() == true"); psVar1 = (string *)SDL::Result::Message_abi_cxx11_(local_28); bVar3 = std::operator==(psVar1,""); SDL3LiteTest(bVar3,"/workspace/llm4binary/github2025/SDL3Lite/Tests.cpp",0x7b, "result.Message() == \"\""); SDL::Result::~Result(local_28); return; }
39,819
nlohmann::json_abi_v3_11_3::detail::iteration_proxy<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>::end() const
monkey531[P]llama/common/./json.hpp
iteration_proxy_value<IteratorType> end() const noexcept { return iteration_proxy_value<IteratorType>(container->end()); }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::iteration_proxy<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>::end() const: pushq %rbx subq $0x20, %rsp movq %rdi, %rbx movq (%rsi), %rax movq %rax, (%rsp) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%rsp) movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000 movq %rcx, 0x18(%rsp) movzbl (%rax), %ecx cmpl $0x2, %ecx je 0xe6b40 cmpl $0x1, %ecx jne 0xe6b4f movq 0x8(%rax), %rax movq 0x8(%rax), %rax movq %rax, 0x8(%rsp) jmp 0xe6b58 movq 0x8(%rax), %rax movq 0x8(%rax), %rax movq %rax, 0x10(%rsp) jmp 0xe6b58 movq $0x1, 0x18(%rsp) movq %rsp, %rsi movq %rbx, %rdi xorl %edx, %edx callq 0xb011a movq %rbx, %rax addq $0x20, %rsp popq %rbx retq
_ZNK8nlohmann16json_abi_v3_11_36detail15iteration_proxyINS1_9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEE3endEv: push rbx sub rsp, 20h mov rbx, rdi mov rax, [rsi] mov [rsp+28h+var_28], rax xorps xmm0, xmm0 movups [rsp+28h+var_20], xmm0 mov rcx, 8000000000000000h mov [rsp+28h+var_10], rcx movzx ecx, byte ptr [rax] cmp ecx, 2 jz short loc_E6B40 cmp ecx, 1 jnz short loc_E6B4F mov rax, [rax+8] mov rax, [rax+8] mov qword ptr [rsp+28h+var_20], rax jmp short loc_E6B58 loc_E6B40: mov rax, [rax+8] mov rax, [rax+8] mov qword ptr [rsp+28h+var_20+8], rax jmp short loc_E6B58 loc_E6B4F: mov [rsp+28h+var_10], 1 loc_E6B58: mov rsi, rsp mov rdi, rbx xor edx, edx call _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEEC2ESH_m; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::iteration_proxy_value(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,ulong) mov rax, rbx add rsp, 20h pop rbx retn
long long nlohmann::json_abi_v3_11_3::detail::iteration_proxy<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::end( long long a1, unsigned __int8 **a2) { unsigned __int8 *v2; // rax int v3; // ecx unsigned __int8 *v5; // [rsp+0h] [rbp-28h] BYREF __int128 v6; // [rsp+8h] [rbp-20h] long long v7; // [rsp+18h] [rbp-10h] v2 = *a2; v5 = v2; v6 = 0LL; v7 = 0x8000000000000000LL; v3 = *v2; if ( v3 == 2 ) { *((_QWORD *)&v6 + 1) = *(_QWORD *)(*((_QWORD *)v2 + 1) + 8LL); } else if ( v3 == 1 ) { *(_QWORD *)&v6 = *(_QWORD *)(*((_QWORD *)v2 + 1) + 8LL); } else { v7 = 1LL; } nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::iteration_proxy_value( a1, (__int128 *)&v5, 0LL); return a1; }
end: PUSH RBX SUB RSP,0x20 MOV RBX,RDI MOV RAX,qword ptr [RSI] MOV qword ptr [RSP],RAX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RSP + 0x8],XMM0 MOV RCX,-0x8000000000000000 MOV qword ptr [RSP + 0x18],RCX MOVZX ECX,byte ptr [RAX] CMP ECX,0x2 JZ 0x001e6b40 CMP ECX,0x1 JNZ 0x001e6b4f MOV RAX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x8],RAX JMP 0x001e6b58 LAB_001e6b40: MOV RAX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x10],RAX JMP 0x001e6b58 LAB_001e6b4f: MOV qword ptr [RSP + 0x18],0x1 LAB_001e6b58: MOV RSI,RSP MOV RDI,RBX XOR EDX,EDX CALL 0x001b011a MOV RAX,RBX ADD RSP,0x20 POP RBX RET
/* nlohmann::json_abi_v3_11_3::detail::iteration_proxy<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> > >::end() const */ void nlohmann::json_abi_v3_11_3::detail:: iteration_proxy<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::end(void) { iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::iteration_proxy_value(); return; }
39,820
ma_ck_real_write_btree
eloqsql/storage/maria/ma_write.c
my_bool _ma_ck_real_write_btree(MARIA_HA *info, MARIA_KEY *key, my_off_t *root, uint32 comp_flag) { int error; DBUG_ENTER("_ma_ck_real_write_btree"); /* key_length parameter is used only if comp_flag is SEARCH_FIND */ if (*root == HA_OFFSET_ERROR || (error= w_search(info, comp_flag, key, *root, (MARIA_PAGE *) 0, (uchar*) 0, 1)) > 0) error= _ma_enlarge_root(info, key, root); DBUG_RETURN(error != 0); }
O0
c
ma_ck_real_write_btree: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movq -0x18(%rbp), %rax cmpq $-0x1, (%rax) je 0x65aaf movq -0x8(%rbp), %rdi movl -0x1c(%rbp), %esi movq -0x10(%rbp), %rdx movq -0x18(%rbp), %rax movq (%rax), %rcx xorl %eax, %eax movl %eax, %r9d movq %r9, %r8 movl $0x1, (%rsp) callq 0x65ae0 movl %eax, -0x20(%rbp) cmpl $0x0, %eax jle 0x65ac6 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx callq 0x661c0 movsbl %al, %eax movl %eax, -0x20(%rbp) jmp 0x65ac8 cmpl $0x0, -0x20(%rbp) setne %al andb $0x1, %al movzbl %al, %eax movb %al, -0x21(%rbp) movb -0x21(%rbp), %al addq $0x30, %rsp popq %rbp retq
_ma_ck_real_write_btree: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_1C], ecx mov rax, [rbp+var_18] cmp qword ptr [rax], 0FFFFFFFFFFFFFFFFh jz short loc_65AAF mov rdi, [rbp+var_8] mov esi, [rbp+var_1C] mov rdx, [rbp+var_10] mov rax, [rbp+var_18] mov rcx, [rax] xor eax, eax mov r9d, eax mov r8, r9 mov [rsp+30h+var_30], 1 call w_search mov [rbp+var_20], eax cmp eax, 0 jle short loc_65AC6 loc_65AAF: mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov rdx, [rbp+var_18] call _ma_enlarge_root movsx eax, al mov [rbp+var_20], eax loc_65AC6: jmp short $+2 loc_65AC8: cmp [rbp+var_20], 0 setnz al and al, 1 movzx eax, al mov [rbp+var_21], al mov al, [rbp+var_21] add rsp, 30h pop rbp retn
_BOOL8 ma_ck_real_write_btree(long long a1, long long a2, _QWORD *a3, int a4) { int v5; // [rsp+10h] [rbp-20h] if ( *a3 == -1LL || (v5 = w_search(a1, a4, a2, *a3, 0, 0, 1), v5 > 0) ) v5 = (char)ma_enlarge_root(a1, a2, a3); return v5 != 0; }
_ma_ck_real_write_btree: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV dword ptr [RBP + -0x1c],ECX MOV RAX,qword ptr [RBP + -0x18] CMP qword ptr [RAX],-0x1 JZ 0x00165aaf MOV RDI,qword ptr [RBP + -0x8] MOV ESI,dword ptr [RBP + -0x1c] MOV RDX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RAX] XOR EAX,EAX MOV R9D,EAX MOV R8,R9 MOV dword ptr [RSP],0x1 CALL 0x00165ae0 MOV dword ptr [RBP + -0x20],EAX CMP EAX,0x0 JLE 0x00165ac6 LAB_00165aaf: MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] CALL 0x001661c0 MOVSX EAX,AL MOV dword ptr [RBP + -0x20],EAX LAB_00165ac6: JMP 0x00165ac8 LAB_00165ac8: CMP dword ptr [RBP + -0x20],0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL MOV byte ptr [RBP + -0x21],AL MOV AL,byte ptr [RBP + -0x21] ADD RSP,0x30 POP RBP RET
bool _ma_ck_real_write_btree(int8 param_1,int8 param_2,long *param_3,int4 param_4) { char cVar1; int4 local_28; if (*param_3 != -1) { local_28 = w_search(param_1,param_4,param_2,*param_3,0,0,1); if (local_28 < 1) goto LAB_00165ac6; } cVar1 = _ma_enlarge_root(param_1,param_2,param_3); local_28 = (int)cVar1; LAB_00165ac6: return local_28 != 0; }
39,821
common_params_get_system_info[abi:cxx11](common_params const&)
llama.cpp/common/common.cpp
std::string common_params_get_system_info(const common_params & params) { std::ostringstream os; os << "system_info: n_threads = " << params.cpuparams.n_threads; if (params.cpuparams_batch.n_threads != -1) { os << " (n_threads_batch = " << params.cpuparams_batch.n_threads << ")"; } #if defined(_WIN32) && (_WIN32_WINNT >= 0x0601) && !defined(__MINGW64__) // windows 7 and later // TODO: windows + arm64 + mingw64 DWORD logicalProcessorCount = GetActiveProcessorCount(ALL_PROCESSOR_GROUPS); os << " / " << logicalProcessorCount << " | " << llama_print_system_info(); #else os << " / " << std::thread::hardware_concurrency() << " | " << llama_print_system_info(); #endif return os.str(); }
O3
cpp
common_params_get_system_info[abi:cxx11](common_params const&): pushq %r15 pushq %r14 pushq %rbx subq $0x180, %rsp # imm = 0x180 movq %rsi, %r14 movq %rdi, %rbx leaq 0x8(%rsp), %r15 movq %r15, %rdi callq 0x1dd90 leaq 0x27c35(%rip), %rsi # 0xd8d3a movl $0x19, %edx movq %r15, %rdi callq 0x1ddc0 movl 0x274(%r14), %esi leaq 0x8(%rsp), %rdi callq 0x1d410 cmpl $-0x1, 0x488(%r14) je 0xb1168 leaq 0x27c20(%rip), %rsi # 0xd8d54 leaq 0x8(%rsp), %rdi movl $0x14, %edx callq 0x1ddc0 movl 0x488(%r14), %esi leaq 0x8(%rsp), %rdi callq 0x1d410 leaq 0x28e00(%rip), %rsi # 0xd9f5b movl $0x1, %edx movq %rax, %rdi callq 0x1ddc0 leaq 0x27bfa(%rip), %rsi # 0xd8d69 leaq 0x8(%rsp), %rdi movl $0x3, %edx callq 0x1ddc0 callq 0x1db70 movl %eax, %esi leaq 0x8(%rsp), %rdi callq 0x1d6e0 movq %rax, %r14 leaq 0x291d2(%rip), %rsi # 0xda36b movl $0x3, %edx movq %rax, %rdi callq 0x1ddc0 callq 0x1d050 movq %rax, %r15 testq %rax, %rax je 0xb11cb movq %r15, %rdi callq 0x1d550 movq %r14, %rdi movq %r15, %rsi movq %rax, %rdx callq 0x1ddc0 jmp 0xb11e5 movq (%r14), %rax movq -0x18(%rax), %rax movq %r14, %rdi addq %rax, %rdi movl 0x20(%r14,%rax), %esi orl $0x1, %esi callq 0x1dfb0 leaq 0x10(%rsp), %rsi movq %rbx, %rdi callq 0x1d530 movq 0x59d5f(%rip), %rsi # 0x10af58 leaq 0x8(%rsp), %rdi callq 0x1da20 leaq 0x78(%rsp), %rdi callq 0x1d9f0 movq %rbx, %rax addq $0x180, %rsp # imm = 0x180 popq %rbx popq %r14 popq %r15 retq movq %rax, %rbx movq 0x59d31(%rip), %rsi # 0x10af58 leaq 0x8(%rsp), %rdi callq 0x1da20 leaq 0x78(%rsp), %rdi callq 0x1d9f0 movq %rbx, %rdi callq 0x1d8e0
_Z29common_params_get_system_infoB5cxx11RK13common_params: push r15 push r14 push rbx sub rsp, 180h mov r14, rsi mov rbx, rdi lea r15, [rsp+198h+var_190] mov rdi, r15 call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void) lea rsi, aSystemInfoNThr; "system_info: n_threads = " mov edx, 19h mov rdi, r15 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov esi, [r14+274h] lea rdi, [rsp+198h+var_190] call __ZNSolsEi; std::ostream::operator<<(int) cmp dword ptr [r14+488h], 0FFFFFFFFh jz short loc_B1168 lea rsi, aNThreadsBatch; " (n_threads_batch = " lea rdi, [rsp+198h+var_190] mov edx, 14h call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov esi, [r14+488h] lea rdi, [rsp+198h+var_190] call __ZNSolsEi; std::ostream::operator<<(int) lea rsi, a09401910201912+51h; ")" 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_B1168: lea rsi, asc_D8D69; " / " lea rdi, [rsp+198h+var_190]; this mov edx, 3 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) call __ZNSt6thread20hardware_concurrencyEv; std::thread::hardware_concurrency(void) mov esi, eax lea rdi, [rsp+198h+var_190] call __ZNSo9_M_insertImEERSoT_; std::ostream::_M_insert<ulong>(ulong) mov r14, rax lea rsi, asc_DA36A+1; " | " mov edx, 3 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) call _llama_print_system_info mov r15, rax test rax, rax jz short loc_B11CB mov rdi, r15 call _strlen mov rdi, r14 mov rsi, r15 mov rdx, rax call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) jmp short loc_B11E5 loc_B11CB: mov rax, [r14] mov rax, [rax-18h] mov rdi, r14 add rdi, rax mov esi, [r14+rax+20h] or esi, 1 call __ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate; std::ios::clear(std::_Ios_Iostate) loc_B11E5: lea rsi, [rsp+198h+var_188] mov rdi, rbx call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void) mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+198h+var_190] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream() lea rdi, [rsp+198h+var_120]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() mov rax, rbx add rsp, 180h pop rbx pop r14 pop r15 retn mov rbx, rax mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+arg_0] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream() lea rdi, [rsp+arg_70]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() mov rdi, rbx call __Unwind_Resume
long long common_params_get_system_info[abi:cxx11](long long a1, long long a2) { long long v2; // rax unsigned int v3; // eax _QWORD *v4; // r14 long long v5; // rax long long v6; // r15 long long v7; // rax _BYTE v9[8]; // [rsp+8h] [rbp-190h] BYREF _BYTE v10[104]; // [rsp+10h] [rbp-188h] BYREF _BYTE v11[288]; // [rsp+78h] [rbp-120h] BYREF std::ostringstream::basic_ostringstream(v9); std::__ostream_insert<char,std::char_traits<char>>(v9, "system_info: n_threads = ", 25LL); std::ostream::operator<<(v9, *(unsigned int *)(a2 + 628)); if ( *(_DWORD *)(a2 + 1160) != -1 ) { std::__ostream_insert<char,std::char_traits<char>>(v9, " (n_threads_batch = ", 20LL); v2 = std::ostream::operator<<(v9, *(unsigned int *)(a2 + 1160)); std::__ostream_insert<char,std::char_traits<char>>(v2, ")", 1LL); } std::__ostream_insert<char,std::char_traits<char>>(v9, " / ", 3LL); v3 = std::thread::hardware_concurrency((std::thread *)v9); v4 = (_QWORD *)std::ostream::_M_insert<unsigned long>(v9, v3); std::__ostream_insert<char,std::char_traits<char>>(v4, " | ", 3LL); v5 = llama_print_system_info(); v6 = v5; if ( v5 ) { v7 = strlen(v5); std::__ostream_insert<char,std::char_traits<char>>(v4, v6, v7); } else { std::ios::clear((char *)v4 + *(_QWORD *)(*v4 - 24LL), *(_DWORD *)((char *)v4 + *(_QWORD *)(*v4 - 24LL) + 32) | 1u); } std::stringbuf::str(a1, v10); std::ostringstream::~ostringstream(v9, &`VTT for'std::ostringstream); std::ios_base::~ios_base((std::ios_base *)v11); return a1; }
common_params_get_system_info[abi:cxx11]: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x180 MOV R14,RSI MOV RBX,RDI LEA R15,[RSP + 0x8] MOV RDI,R15 CALL 0x0011dd90 LAB_001b10fe: LEA RSI,[0x1d8d3a] MOV EDX,0x19 MOV RDI,R15 CALL 0x0011ddc0 MOV ESI,dword ptr [R14 + 0x274] LEA RDI,[RSP + 0x8] CALL 0x0011d410 CMP dword ptr [R14 + 0x488],-0x1 JZ 0x001b1168 LEA RSI,[0x1d8d54] LEA RDI,[RSP + 0x8] MOV EDX,0x14 CALL 0x0011ddc0 MOV ESI,dword ptr [R14 + 0x488] LEA RDI,[RSP + 0x8] CALL 0x0011d410 LEA RSI,[0x1d9f5b] MOV EDX,0x1 MOV RDI,RAX CALL 0x0011ddc0 LAB_001b1168: LEA RSI,[0x1d8d69] LEA RDI,[RSP + 0x8] MOV EDX,0x3 CALL 0x0011ddc0 CALL 0x0011db70 MOV ESI,EAX LEA RDI,[RSP + 0x8] CALL 0x0011d6e0 MOV R14,RAX LEA RSI,[0x1da36b] MOV EDX,0x3 MOV RDI,RAX CALL 0x0011ddc0 CALL 0x0011d050 MOV R15,RAX TEST RAX,RAX JZ 0x001b11cb MOV RDI,R15 CALL 0x0011d550 MOV RDI,R14 MOV RSI,R15 MOV RDX,RAX CALL 0x0011ddc0 JMP 0x001b11e5 LAB_001b11cb: MOV RAX,qword ptr [R14] MOV RAX,qword ptr [RAX + -0x18] MOV RDI,R14 ADD RDI,RAX MOV ESI,dword ptr [R14 + RAX*0x1 + 0x20] OR ESI,0x1 CALL 0x0011dfb0 LAB_001b11e5: LEA RSI,[RSP + 0x10] MOV RDI,RBX CALL 0x0011d530 LAB_001b11f2: MOV RSI,qword ptr [0x0020af58] LEA RDI,[RSP + 0x8] CALL 0x0011da20 LEA RDI,[RSP + 0x78] CALL 0x0011d9f0 MOV RAX,RBX ADD RSP,0x180 POP RBX POP R14 POP R15 RET
/* common_params_get_system_info[abi:cxx11](common_params const&) */ common_params * common_params_get_system_info_abi_cxx11_(common_params *param_1) { ostream *poVar1; char *__s; size_t sVar2; long in_RSI; ostringstream local_190 [112]; ios_base local_120 [264]; std::__cxx11::ostringstream::ostringstream(local_190); /* try { // try from 001b10fe to 001b11f1 has its CatchHandler @ 001b121d */ std::__ostream_insert<char,std::char_traits<char>> ((ostream *)local_190,"system_info: n_threads = ",0x19); std::ostream::operator<<((ostream *)local_190,*(int *)(in_RSI + 0x274)); if (*(int *)(in_RSI + 0x488) != -1) { std::__ostream_insert<char,std::char_traits<char>> ((ostream *)local_190," (n_threads_batch = ",0x14); poVar1 = (ostream *)std::ostream::operator<<((ostream *)local_190,*(int *)(in_RSI + 0x488)); std::__ostream_insert<char,std::char_traits<char>>(poVar1,")",1); } std::__ostream_insert<char,std::char_traits<char>>((ostream *)local_190," / ",3); std::thread::hardware_concurrency(); poVar1 = std::ostream::_M_insert<unsigned_long>((ulong)local_190); std::__ostream_insert<char,std::char_traits<char>>(poVar1," | ",3); __s = (char *)llama_print_system_info(); if (__s == (char *)0x0) { std::ios::clear(poVar1 + *(long *)(*(long *)poVar1 + -0x18), *(uint *)(poVar1 + *(long *)(*(long *)poVar1 + -0x18) + 0x20) | 1); } else { sVar2 = strlen(__s); std::__ostream_insert<char,std::char_traits<char>>(poVar1,__s,sVar2); } std::__cxx11::stringbuf::str(); std::__cxx11::ostringstream::~ostringstream(local_190); std::ios_base::~ios_base(local_120); return param_1; }
39,822
my_error_unregister
eloqsql/mysys/my_error.c
my_bool my_error_unregister(uint first, uint last) { struct my_err_head *meh_p; struct my_err_head **search_meh_pp; /* Search for the registration in the list. */ for (search_meh_pp= &my_errmsgs_list; *search_meh_pp; search_meh_pp= &(*search_meh_pp)->meh_next) { if (((*search_meh_pp)->meh_first == first) && ((*search_meh_pp)->meh_last == last)) break; } if (! *search_meh_pp) return TRUE; /* Remove header from the chain. */ meh_p= *search_meh_pp; *search_meh_pp= meh_p->meh_next; my_free(meh_p); return FALSE; }
O0
c
my_error_unregister: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl %edi, -0x8(%rbp) movl %esi, -0xc(%rbp) leaq 0x1cf2a3(%rip), %rax # 0x2be828 movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax cmpq $0x0, (%rax) je 0xef5c2 movq -0x20(%rbp), %rax movq (%rax), %rax movl 0x10(%rax), %eax cmpl -0x8(%rbp), %eax jne 0xef5b3 movq -0x20(%rbp), %rax movq (%rax), %rax movl 0x14(%rax), %eax cmpl -0xc(%rbp), %eax jne 0xef5b3 jmp 0xef5c2 jmp 0xef5b5 movq -0x20(%rbp), %rax movq (%rax), %rax movq %rax, -0x20(%rbp) jmp 0xef589 movq -0x20(%rbp), %rax cmpq $0x0, (%rax) jne 0xef5d2 movb $0x1, -0x1(%rbp) jmp 0xef5f8 movq -0x20(%rbp), %rax movq (%rax), %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax movq (%rax), %rcx movq -0x20(%rbp), %rax movq %rcx, (%rax) movq -0x18(%rbp), %rdi callq 0xf31b0 movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_error_unregister: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], edi mov [rbp+var_C], esi lea rax, my_errmsgs_list mov [rbp+var_20], rax loc_EF589: mov rax, [rbp+var_20] cmp qword ptr [rax], 0 jz short loc_EF5C2 mov rax, [rbp+var_20] mov rax, [rax] mov eax, [rax+10h] cmp eax, [rbp+var_8] jnz short loc_EF5B3 mov rax, [rbp+var_20] mov rax, [rax] mov eax, [rax+14h] cmp eax, [rbp+var_C] jnz short loc_EF5B3 jmp short loc_EF5C2 loc_EF5B3: jmp short $+2 loc_EF5B5: mov rax, [rbp+var_20] mov rax, [rax] mov [rbp+var_20], rax jmp short loc_EF589 loc_EF5C2: mov rax, [rbp+var_20] cmp qword ptr [rax], 0 jnz short loc_EF5D2 mov [rbp+var_1], 1 jmp short loc_EF5F8 loc_EF5D2: mov rax, [rbp+var_20] mov rax, [rax] mov [rbp+var_18], rax mov rax, [rbp+var_18] mov rcx, [rax] mov rax, [rbp+var_20] mov [rax], rcx mov rdi, [rbp+var_18] call my_free mov [rbp+var_1], 0 loc_EF5F8: mov al, [rbp+var_1] add rsp, 20h pop rbp retn
char my_error_unregister(int a1, int a2, double a3) { long long **i; // [rsp+0h] [rbp-20h] long long *v5; // [rsp+8h] [rbp-18h] for ( i = &my_errmsgs_list; *i && (*((_DWORD *)*i + 4) != a1 || *((_DWORD *)*i + 5) != a2); i = (long long **)*i ) ; if ( !*i ) return 1; v5 = *i; *i = (long long *)**i; my_free(v5, a3); return 0; }
my_error_unregister: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV dword ptr [RBP + -0x8],EDI MOV dword ptr [RBP + -0xc],ESI LEA RAX,[0x3be828] MOV qword ptr [RBP + -0x20],RAX LAB_001ef589: MOV RAX,qword ptr [RBP + -0x20] CMP qword ptr [RAX],0x0 JZ 0x001ef5c2 MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX] MOV EAX,dword ptr [RAX + 0x10] CMP EAX,dword ptr [RBP + -0x8] JNZ 0x001ef5b3 MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX] MOV EAX,dword ptr [RAX + 0x14] CMP EAX,dword ptr [RBP + -0xc] JNZ 0x001ef5b3 JMP 0x001ef5c2 LAB_001ef5b3: JMP 0x001ef5b5 LAB_001ef5b5: MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x20],RAX JMP 0x001ef589 LAB_001ef5c2: MOV RAX,qword ptr [RBP + -0x20] CMP qword ptr [RAX],0x0 JNZ 0x001ef5d2 MOV byte ptr [RBP + -0x1],0x1 JMP 0x001ef5f8 LAB_001ef5d2: MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX],RCX MOV RDI,qword ptr [RBP + -0x18] CALL 0x001f31b0 MOV byte ptr [RBP + -0x1],0x0 LAB_001ef5f8: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x20 POP RBP RET
bool my_error_unregister(int param_1,int param_2) { long *plVar1; int *puVar2; int **local_28; bool local_9; for (local_28 = &my_errmsgs_list; (*local_28 != (int *)0x0 && ((*(int *)(*local_28 + 0x10) != param_1 || (*(int *)(*local_28 + 0x14) != param_2)))); local_28 = (int **)*local_28) { } puVar2 = *local_28; if (puVar2 != (int *)0x0) { plVar1 = (long *)*local_28; *local_28 = (int *)*plVar1; my_free(plVar1); } local_9 = puVar2 == (int *)0x0; return local_9; }
39,823
my_error_unregister
eloqsql/mysys/my_error.c
my_bool my_error_unregister(uint first, uint last) { struct my_err_head *meh_p; struct my_err_head **search_meh_pp; /* Search for the registration in the list. */ for (search_meh_pp= &my_errmsgs_list; *search_meh_pp; search_meh_pp= &(*search_meh_pp)->meh_next) { if (((*search_meh_pp)->meh_first == first) && ((*search_meh_pp)->meh_last == last)) break; } if (! *search_meh_pp) return TRUE; /* Remove header from the chain. */ meh_p= *search_meh_pp; *search_meh_pp= meh_p->meh_next; my_free(meh_p); return FALSE; }
O3
c
my_error_unregister: movq 0x2e699d(%rip), %r8 # 0x3847a8 movb $0x1, %al testq %r8, %r8 je 0x9de49 pushq %rbp movq %rsp, %rbp leaq 0x2e698b(%rip), %rdx # 0x3847a8 movq %r8, %rcx cmpl %edi, 0x10(%r8) jne 0x9de2b cmpl %esi, 0x14(%rcx) je 0x9de38 movq (%rcx), %r8 movq %rcx, %rdx testq %r8, %r8 jne 0x9de1d jmp 0x9de48 movq (%rcx), %rax movq %rax, (%rdx) movq %rcx, %rdi callq 0x9f90e xorl %eax, %eax popq %rbp retq
my_error_unregister: mov r8, cs:my_errmsgs_list mov al, 1 test r8, r8 jz short locret_9DE49 push rbp mov rbp, rsp lea rdx, my_errmsgs_list loc_9DE1D: mov rcx, r8 cmp [r8+10h], edi jnz short loc_9DE2B cmp [rcx+14h], esi jz short loc_9DE38 loc_9DE2B: mov r8, [rcx] mov rdx, rcx test r8, r8 jnz short loc_9DE1D jmp short loc_9DE48 loc_9DE38: mov rax, [rcx] mov [rdx], rax mov rdi, rcx call my_free xor eax, eax loc_9DE48: pop rbp locret_9DE49: retn
char my_error_unregister(int a1, int a2) { long long *v2; // r8 char result; // al long long **v4; // rdx long long *v5; // rcx v2 = my_errmsgs_list; result = 1; if ( my_errmsgs_list ) { v4 = &my_errmsgs_list; while ( 1 ) { v5 = v2; if ( *((_DWORD *)v2 + 4) == a1 && *((_DWORD *)v2 + 5) == a2 ) break; v2 = (long long *)*v2; v4 = (long long **)v5; if ( !*v5 ) return result; } *v4 = (long long *)*v2; my_free(v2); return 0; } return result; }
my_error_unregister: MOV R8,qword ptr [0x004847a8] MOV AL,0x1 TEST R8,R8 JZ 0x0019de49 PUSH RBP MOV RBP,RSP LEA RDX,[0x4847a8] LAB_0019de1d: MOV RCX,R8 CMP dword ptr [R8 + 0x10],EDI JNZ 0x0019de2b CMP dword ptr [RCX + 0x14],ESI JZ 0x0019de38 LAB_0019de2b: MOV R8,qword ptr [RCX] MOV RDX,RCX TEST R8,R8 JNZ 0x0019de1d JMP 0x0019de48 LAB_0019de38: MOV RAX,qword ptr [RCX] MOV qword ptr [RDX],RAX MOV RDI,RCX CALL 0x0019f90e XOR EAX,EAX LAB_0019de48: POP RBP LAB_0019de49: RET
int8 my_error_unregister(int param_1,int param_2) { int **ppuVar1; int **ppuVar2; int **ppuVar3; if (my_errmsgs_list != (int *)0x0) { ppuVar2 = &my_errmsgs_list; ppuVar3 = (int **)my_errmsgs_list; do { if ((*(int *)(ppuVar3 + 2) == param_1) && (*(int *)((long)ppuVar3 + 0x14) == param_2)) { *ppuVar2 = *ppuVar3; my_free(ppuVar3); return 0; } ppuVar1 = (int **)*ppuVar3; ppuVar2 = ppuVar3; ppuVar3 = ppuVar1; } while (ppuVar1 != (int **)0x0); } return 1; }
39,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>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>, bool, nlohmann::json_abi_v3_11_3::detail::value_t)
monkey531[P]llama/common/json.hpp
basic_json(initializer_list_t init, bool type_deduction = true, value_t manual_type = value_t::array) { // check if each element is an array with two elements whose first // element is a string bool is_an_object = std::all_of(init.begin(), init.end(), [](const detail::json_ref<basic_json>& element_ref) { // The cast is to ensure op[size_type] is called, bearing in mind size_type may not be int; // (many string types can be constructed from 0 via its null-pointer guise, so we get a // broken call to op[key_type], the wrong semantics and a 4804 warning on Windows) return element_ref->is_array() && element_ref->size() == 2 && (*element_ref)[static_cast<size_type>(0)].is_string(); }); // adjust type if type deduction is not wanted if (!type_deduction) { // if array is wanted, do not create an object though possible if (manual_type == value_t::array) { is_an_object = false; } // if object is wanted but impossible, throw an exception if (JSON_HEDLEY_UNLIKELY(manual_type == value_t::object && !is_an_object)) { JSON_THROW(type_error::create(301, "cannot create object from initializer list", nullptr)); } } if (is_an_object) { // the initializer list is a list of pairs -> create object m_data.m_type = value_t::object; m_data.m_value = value_t::object; for (auto& element_ref : init) { auto element = element_ref.moved_or_copied(); m_data.m_value.object->emplace( std::move(*((*element.m_data.m_value.array)[0].m_data.m_value.string)), std::move((*element.m_data.m_value.array)[1])); } } else { // the initializer list describes an array -> create array m_data.m_type = value_t::array; m_data.m_value.array = create<array_t>(init.begin(), init.end()); } set_parents(); assert_invariant(); }
O3
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>, bool, nlohmann::json_abi_v3_11_3::detail::value_t): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movl %r8d, %ebp movl %ecx, %r13d movq %rdx, %r15 movq %rsi, %r14 movq %rdi, %rbx leaq (%rdx,%rdx,2), %rax leaq (%rsi,%rax,8), %r12 xorps %xmm0, %xmm0 movups %xmm0, (%rdi) movq %rsi, %rdi movq %r12, %rsi callq 0xa0f18 cmpq %r12, %rax sete %cl testb %r13b, %r13b jne 0x7e943 cmpq %r12, %rax sete %al cmpb $0x2, %bpl setne %cl cmpb $0x1, %bpl setne %dl orb %al, %dl je 0x7e9ee andb %al, %cl testb %cl, %cl je 0x7e9b8 movb $0x1, (%rbx) movl $0x20, %edi callq 0x1a890 xorps %xmm0, %xmm0 movups %xmm0, (%rax) movq $0x0, 0x10(%rax) movq %rax, 0x8(%rbx) testq %r15, %r15 je 0x7e9d2 shlq $0x3, %r15 leaq (%r15,%r15,2), %r12 movq %rsp, %r15 movq %r15, %rdi movq %r14, %rsi callq 0xa0e72 movq 0x8(%rbx), %rdi movq 0x8(%rsp), %rax movq (%rax), %rdx movq 0x8(%rdx), %rsi addq $0x10, %rdx callq 0x5eebe movq %r15, %rdi xorl %esi, %esi callq 0x582ec movq %r15, %rdi callq 0x5d7da addq $0x18, %r14 addq $-0x18, %r12 jne 0x7e976 jmp 0x7e9d2 movb $0x2, (%rbx) movq %rsp, %rdi movq %r14, (%rdi) leaq 0x20(%rsp), %rsi movq %r12, (%rsi) callq 0xa0ec4 movq %rax, 0x8(%rbx) movq %rbx, %rdi movl $0x1, %esi callq 0x582ec addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0x20, %edi callq 0x1a430 movq %rax, %r14 leaq 0x10(%rsp), %r12 movq %r12, -0x10(%r12) leaq 0x71529(%rip), %rsi # 0xeff35 leaq 0x7154c(%rip), %rdx # 0xeff5f movq %rsp, %rdi callq 0x21b46 movb $0x1, %bpl movq %rsp, %rdx movq %r14, %rdi movl $0x12d, %esi # imm = 0x12D xorl %ecx, %ecx callq 0xa0ca2 xorl %ebp, %ebp leaq 0xaa51f(%rip), %rsi # 0x128f58 leaq -0x23fd6(%rip), %rdx # 0x5aa6a movq %r14, %rdi callq 0x1aee0 jmp 0x7ea4e jmp 0x7ea4e jmp 0x7ea4e movq %rax, %r15 jmp 0x7ea98 movq %rax, %r15 movq %rsp, %r14 movq %r14, %rdi xorl %esi, %esi callq 0x582ec movq %r14, %rdi callq 0x5d7da jmp 0x7ea98 movq %rax, %r15 movq (%rsp), %rdi cmpq %r12, %rdi je 0x7ea86 movq 0x10(%rsp), %rsi incq %rsi callq 0x1a8b0 testb %bpl, %bpl jne 0x7ea90 jmp 0x7ea98 movq %rax, %r15 movq %r14, %rdi callq 0x1a660 movq %rbx, %rdi callq 0x5d7da movq %r15, %rdi callq 0x1af70
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE: push rbp; int push r15; int push r14; char push r13; int push r12; __int64 push rbx; int sub rsp, 28h mov ebp, r8d mov r13d, ecx mov r15, rdx mov r14, rsi mov rbx, rdi lea rax, [rdx+rdx*2] lea r12, [rsi+rax*8] xorps xmm0, xmm0 movups xmmword ptr [rdi], xmm0 mov rdi, rsi mov rsi, r12 call _ZSt9__find_ifIPKN8nlohmann16json_abi_v3_11_36detail8json_refINS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEN9__gnu_cxx5__ops12_Iter_negateIZNSG_C1ESt16initializer_listISH_EbNS2_7value_tEEUlRSI_E_EEET_ST_ST_T0_St26random_access_iterator_tag; std::__find_if<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const*,__gnu_cxx::__ops::_Iter_negate<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)::{lambda(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const&)#1}>>(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const*,nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const*,__gnu_cxx::__ops::_Iter_negate<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)::{lambda(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const&)#1}>,std::random_access_iterator_tag) cmp rax, r12 setz cl test r13b, r13b jnz short loc_7E943 cmp rax, r12 setz al cmp bpl, 2 setnz cl cmp bpl, 1 setnz dl or dl, al jz loc_7E9EE and cl, al loc_7E943: test cl, cl jz short loc_7E9B8 mov byte ptr [rbx], 1 mov edi, 20h ; ' '; unsigned __int64 call __Znwm; operator new(ulong) xorps xmm0, xmm0 movups xmmword ptr [rax], xmm0 mov qword ptr [rax+10h], 0 mov [rbx+8], rax test r15, r15 jz short loc_7E9D2 shl r15, 3 lea r12, [r15+r15*2] mov r15, rsp loc_7E976: mov rdi, r15 mov rsi, r14 call _ZNK8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15moved_or_copiedEv; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::moved_or_copied(void) mov rdi, [rbx+8] mov rax, [rsp+58h+var_50] mov rdx, [rax] mov rsi, [rdx+8] add rdx, 10h call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE7emplaceERSH_OSD_; nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::emplace(std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&) mov rdi, r15 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() add r14, 18h add r12, 0FFFFFFFFFFFFFFE8h jnz short loc_7E976 jmp short loc_7E9D2 loc_7E9B8: mov byte ptr [rbx], 2 mov rdi, rsp mov [rdi], r14 lea rsi, [rsp+58h+var_38] mov [rsi], r12 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6createIS3_ISD_SaISD_EEJPKNS0_6detail8json_refISD_EESL_EEEPT_DpOT0_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::create<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const*,nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const*>(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const*,nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const* &&) mov [rbx+8], rax loc_7E9D2: mov rdi, rbx mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_7E9EE: mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov r14, rax lea r12, [rsp+58h+var_48] mov [r12-10h], r12 lea rsi, aCannotCreateOb; "cannot create object from initializer l"... lea rdx, aCannotCreateOb+2Ah; "" mov rdi, rsp call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) mov bpl, 1 mov rdx, rsp mov rdi, r14; this mov esi, 12Dh; int xor ecx, ecx call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, r14; void * call ___cxa_throw jmp short loc_7EA4E jmp short loc_7EA4E jmp short $+2 loc_7EA4E: mov r15, rax jmp short loc_7EA98 mov r15, rax mov r14, rsp mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() jmp short loc_7EA98 mov r15, rax mov rdi, [rsp+58h+var_58]; void * cmp rdi, r12 jz short loc_7EA86 mov rsi, [rsp+58h+var_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_7EA86: test bpl, bpl jnz short loc_7EA90 jmp short loc_7EA98 mov r15, rax loc_7EA90: mov rdi, r14; void * call ___cxa_free_exception loc_7EA98: mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rdi, r15 call __Unwind_Resume
basic_json: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV EBP,R8D MOV R13D,ECX MOV R15,RDX MOV R14,RSI MOV RBX,RDI LEA RAX,[RDX + RDX*0x2] LEA R12,[RSI + RAX*0x8] XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI],XMM0 LAB_0017e90f: MOV RDI,RSI MOV RSI,R12 CALL 0x001a0f18 CMP RAX,R12 SETZ CL TEST R13B,R13B JNZ 0x0017e943 CMP RAX,R12 SETZ AL CMP BPL,0x2 SETNZ CL CMP BPL,0x1 SETNZ DL OR DL,AL JZ 0x0017e9ee AND CL,AL LAB_0017e943: TEST CL,CL JZ 0x0017e9b8 MOV byte ptr [RBX],0x1 LAB_0017e94a: MOV EDI,0x20 CALL 0x0011a890 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX],XMM0 MOV qword ptr [RAX + 0x10],0x0 MOV qword ptr [RBX + 0x8],RAX TEST R15,R15 JZ 0x0017e9d2 SHL R15,0x3 LEA R12,[R15 + R15*0x2] MOV R15,RSP LAB_0017e976: MOV RDI,R15 MOV RSI,R14 CALL 0x001a0e72 MOV RDI,qword ptr [RBX + 0x8] MOV RAX,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RAX] MOV RSI,qword ptr [RDX + 0x8] ADD RDX,0x10 LAB_0017e995: CALL 0x0015eebe MOV RDI,R15 XOR ESI,ESI CALL 0x001582ec MOV RDI,R15 CALL 0x0015d7da ADD R14,0x18 ADD R12,-0x18 JNZ 0x0017e976 JMP 0x0017e9d2 LAB_0017e9b8: MOV byte ptr [RBX],0x2 MOV RDI,RSP MOV qword ptr [RDI],R14 LEA RSI,[RSP + 0x20] MOV qword ptr [RSI],R12 LAB_0017e9c9: CALL 0x001a0ec4 LAB_0017e9ce: MOV qword ptr [RBX + 0x8],RAX LAB_0017e9d2: MOV RDI,RBX MOV ESI,0x1 CALL 0x001582ec ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0017e9ee: MOV EDI,0x20 CALL 0x0011a430 MOV R14,RAX LEA R12,[RSP + 0x10] MOV qword ptr [R12 + -0x10],R12 LAB_0017ea05: LEA RSI,[0x1eff35] LEA RDX,[0x1eff5f] MOV RDI,RSP CALL 0x00121b46 MOV BPL,0x1 LAB_0017ea1e: MOV RDX,RSP MOV RDI,R14 MOV ESI,0x12d XOR ECX,ECX CALL 0x001a0ca2 XOR EBP,EBP LEA RSI,[0x228f58] LEA RDX,[0x15aa6a] MOV RDI,R14 CALL 0x0011aee0
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> > >, bool, nlohmann::json_abi_v3_11_3::detail::value_t) */ void nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json(int8 *param_1,json_ref *param_2,long param_3,char param_4,char param_5) { json_ref *pjVar1; json_ref *pjVar2; int8 *puVar3; vector *pvVar4; int8 uVar5; bool bVar6; json_ref *local_58; long *local_50; json_ref local_48 [16]; json_ref *local_38; pjVar1 = param_2 + param_3 * 0x18; *param_1 = 0; param_1[1] = 0; /* try { // try from 0017e90f to 0017e919 has its CatchHandler @ 0017ea4c */ pjVar2 = std:: __find_if<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>const*,__gnu_cxx::__ops::_Iter_negate<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>::_Iter_negate(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)::_lambda(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>const&)_1_>> (param_2,pjVar1); bVar6 = pjVar2 == pjVar1; if (param_4 == '\0') { if (param_5 == '\x01' && pjVar2 != pjVar1) { uVar5 = __cxa_allocate_exception(0x20); local_58 = local_48; /* try { // try from 0017ea05 to 0017ea1a has its CatchHandler @ 0017ea8d */ std::__cxx11::string::_M_construct<char_const*> (&local_58,"cannot create object from initializer list",""); /* try { // try from 0017ea1e to 0017ea47 has its CatchHandler @ 0017ea6d */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ (uVar5,0x12d,&local_58,0); /* WARNING: Subroutine does not return */ __cxa_throw(uVar5,&detail::type_error::typeinfo,detail::exception::~exception); } bVar6 = param_5 != '\x02' && pjVar2 == pjVar1; } if (bVar6) { *(int1 *)param_1 = 1; /* try { // try from 0017e94a to 0017e953 has its CatchHandler @ 0017ea4a */ puVar3 = (int8 *)operator_new(0x20); *puVar3 = 0; puVar3[1] = 0; puVar3[2] = 0; param_1[1] = puVar3; if (param_3 != 0) { param_3 = param_3 * 0x18; do { /* try { // try from 0017e976 to 0017e980 has its CatchHandler @ 0017ea4e */ detail:: json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::moved_or_copied(); /* try { // try from 0017e995 to 0017e999 has its CatchHandler @ 0017ea53 */ ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::emplace((ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *)param_1[1],*(string **)(*local_50 + 8),(basic_json *)(*local_50 + 0x10)); assert_invariant(SUB81(&local_58,0)); data::~data((data *)&local_58); param_3 = param_3 + -0x18; } while (param_3 != 0); } } else { *(int1 *)param_1 = 2; local_58 = param_2; local_38 = pjVar1; /* try { // try from 0017e9c9 to 0017e9cd has its CatchHandler @ 0017ea48 */ pvVar4 = create<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>,nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>const*,nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>const*> (&local_58,&local_38); param_1[1] = pvVar4; } assert_invariant(SUB81(param_1,0)); return; }
39,825
translog_write_file_header
eloqsql/storage/maria/ma_loghandler.c
static my_bool translog_write_file_header() { TRANSLOG_FILE *file; ulonglong timestamp; uchar page_buff[TRANSLOG_PAGE_SIZE], *page= page_buff; my_bool rc; DBUG_ENTER("translog_write_file_header"); /* file tag */ memcpy(page, maria_trans_file_magic, sizeof(maria_trans_file_magic)); page+= sizeof(maria_trans_file_magic); /* timestamp */ timestamp= my_hrtime().val; int8store(page, timestamp); page+= 8; /* maria version */ int4store(page, TRANSLOG_VERSION_ID); page+= 4; /* mysql version (MYSQL_VERSION_ID) */ int4store(page, log_descriptor.server_version); page+= 4; /* server ID */ int4store(page, log_descriptor.server_id); page+= 4; /* loghandler page_size */ int2store(page, TRANSLOG_PAGE_SIZE - 1); page+= 2; /* file number */ int3store(page, LSN_FILE_NO(log_descriptor.horizon)); page+= 3; lsn_store(page, LSN_IMPOSSIBLE); page+= LSN_STORE_SIZE; memset(page, TRANSLOG_FILLER, sizeof(page_buff) - (page- page_buff)); file= get_current_logfile(); rc= my_pwrite(file->handler.file, page_buff, sizeof(page_buff), 0, log_write_flags) != 0; /* Dropping the flag in such way can make false alarm: signalling than the file in not sync when it is sync, but the situation is quite rare and protections with mutexes give much more overhead to the whole engine */ file->is_sync= 0; DBUG_RETURN(rc); }
O3
c
translog_write_file_header: pushq %rbp movq %rsp, %rbp pushq %rbx subq $0x2008, %rsp # imm = 0x2008 movq %fs:0x28, %rax movq %rax, -0x10(%rbp) movl 0x321001(%rip), %eax # 0x38efc0 leaq -0x1fe4(%rbp), %rbx movl %eax, -0x24(%rbx) movq 0x320fe8(%rip), %rax # 0x38efb8 movq %rax, -0x2c(%rbx) callq 0xa5770 movq %rax, -0x20(%rbx) movl $0x2710, -0x18(%rbx) # imm = 0x2710 movq 0x39c8d9(%rip), %rax # 0x40a8c4 movq %rax, -0x14(%rbx) movw $0x1fff, -0xc(%rbx) # imm = 0x1FFF movq 0xb9d4fc(%rip), %rax # 0xc0b4f8 movq %rax, %rcx shrq $0x20, %rcx movb %cl, -0xa(%rbx) movq %rax, %rcx shrq $0x28, %rcx movb %cl, -0x9(%rbx) shrq $0x30, %rax movb %al, -0x8(%rbx) xorl %eax, %eax movl %eax, -0x7(%rbx) movl %eax, -0x4(%rbx) movl $0x1fd4, %edx # imm = 0x1FD4 movq %rbx, %rdi movl $0xff, %esi callq 0x2a290 callq 0x6f198 movq %rax, %rbx movl 0x18(%rax), %edi leaq -0x2010(%rbp), %rsi movl $0x2000, %edx # imm = 0x2000 movl $0x34, %r8d xorl %ecx, %ecx callq 0xa796a testq %rax, %rax setne %al movb $0x0, 0x51(%rbx) movq %fs:0x28, %rcx cmpq -0x10(%rbp), %rcx jne 0x6e078 addq $0x2008, %rsp # imm = 0x2008 popq %rbx popq %rbp retq callq 0x2a240
translog_write_file_header: push rbp mov rbp, rsp push rbx sub rsp, 2008h mov rax, fs:28h mov [rbp+var_10], rax mov eax, cs:dword_38EFC0 lea rbx, [rbp+var_1FE4] mov [rbx-24h], eax mov rax, cs:maria_trans_file_magic mov [rbx-2Ch], rax call my_hrtime mov [rbx-20h], rax mov dword ptr [rbx-18h], 2710h mov rax, cs:qword_40A8C4 mov [rbx-14h], rax mov word ptr [rbx-0Ch], 1FFFh mov rax, cs:qword_C0B4F8 mov rcx, rax shr rcx, 20h mov [rbx-0Ah], cl mov rcx, rax shr rcx, 28h mov [rbx-9], cl shr rax, 30h mov [rbx-8], al xor eax, eax mov [rbx-7], eax mov [rbx-4], eax mov edx, 1FD4h mov rdi, rbx mov esi, 0FFh call _memset call get_current_logfile mov rbx, rax mov edi, [rax+18h] lea rsi, [rbp+var_2010] mov edx, 2000h mov r8d, 34h ; '4' xor ecx, ecx call my_pwrite test rax, rax setnz al mov byte ptr [rbx+51h], 0 mov rcx, fs:28h cmp rcx, [rbp+var_10] jnz short loc_6E078 add rsp, 2008h pop rbx pop rbp retn loc_6E078: call ___stack_chk_fail
bool translog_write_file_header(long long a1, long long a2) { long long current_logfile; // rbx bool result; // al long long v4; // [rsp+0h] [rbp-2010h] BYREF int v5; // [rsp+8h] [rbp-2008h] long long v6; // [rsp+Ch] [rbp-2004h] int v7; // [rsp+14h] [rbp-1FFCh] long long v8; // [rsp+18h] [rbp-1FF8h] __int16 v9; // [rsp+20h] [rbp-1FF0h] __int16 v10; // [rsp+22h] [rbp-1FEEh] char v11; // [rsp+24h] [rbp-1FECh] _BYTE v12[7]; // [rsp+25h] [rbp-1FEBh] BYREF _BYTE v13[8148]; // [rsp+2Ch] [rbp-1FE4h] BYREF unsigned long long v14; // [rsp+2000h] [rbp-10h] v14 = __readfsqword(0x28u); v5 = dword_38EFC0; v4 = maria_trans_file_magic; v6 = my_hrtime(a1, a2); v7 = 10000; v8 = qword_40A8C4; v9 = 0x1FFF; v10 = WORD2(qword_C0B4F8); v11 = BYTE6(qword_C0B4F8); memset(v12, 0, sizeof(v12)); memset(v13, 255LL, sizeof(v13)); current_logfile = get_current_logfile(v13); result = my_pwrite(*(unsigned int *)(current_logfile + 24), &v4, 0x2000LL, 0LL, 52LL) != 0; *(_BYTE *)(current_logfile + 81) = 0; return result; }
translog_write_file_header: PUSH RBP MOV RBP,RSP PUSH RBX SUB RSP,0x2008 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x10],RAX MOV EAX,dword ptr [0x0048efc0] LEA RBX,[RBP + -0x1fe4] MOV dword ptr [RBX + -0x24],EAX MOV RAX,qword ptr [0x0048efb8] MOV qword ptr [RBX + -0x2c],RAX CALL 0x001a5770 MOV qword ptr [RBX + -0x20],RAX MOV dword ptr [RBX + -0x18],0x2710 MOV RAX,qword ptr [0x0050a8c4] MOV qword ptr [RBX + -0x14],RAX MOV word ptr [RBX + -0xc],0x1fff MOV RAX,qword ptr [0x00d0b4f8] MOV RCX,RAX SHR RCX,0x20 MOV byte ptr [RBX + -0xa],CL MOV RCX,RAX SHR RCX,0x28 MOV byte ptr [RBX + -0x9],CL SHR RAX,0x30 MOV byte ptr [RBX + -0x8],AL XOR EAX,EAX MOV dword ptr [RBX + -0x7],EAX MOV dword ptr [RBX + -0x4],EAX MOV EDX,0x1fd4 MOV RDI,RBX MOV ESI,0xff CALL 0x0012a290 CALL 0x0016f198 MOV RBX,RAX MOV EDI,dword ptr [RAX + 0x18] LEA RSI,[RBP + -0x2010] MOV EDX,0x2000 MOV R8D,0x34 XOR ECX,ECX CALL 0x001a796a TEST RAX,RAX SETNZ AL MOV byte ptr [RBX + 0x51],0x0 MOV RCX,qword ptr FS:[0x28] CMP RCX,qword ptr [RBP + -0x10] JNZ 0x0016e078 ADD RSP,0x2008 POP RBX POP RBP RET LAB_0016e078: CALL 0x0012a240
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ bool translog_write_file_header(void) { long lVar1; long lVar2; long in_FS_OFFSET; int8 local_2018; char local_2010 [4]; int8 local_200c; int4 local_2004; int8 local_2000; int2 local_1ff8; int1 local_1ff6; int1 local_1ff5; int1 local_1ff4; int4 local_1ff3; int3 uStack_1fef; int1 local_1fec [8148]; long local_18; local_18 = *(long *)(in_FS_OFFSET + 0x28); local_2010 = (char [4])s_MARIALOG_0048efbc._4_4_; local_2018 = _maria_trans_file_magic; local_200c = my_hrtime(); local_2004 = 10000; local_2000 = DAT_0050a8c4; local_1ff8 = 0x1fff; local_1ff6 = (int1)((ulong)DAT_00d0b4f8 >> 0x20); local_1ff5 = (int1)((ulong)DAT_00d0b4f8 >> 0x28); local_1ff4 = (int1)((ulong)DAT_00d0b4f8 >> 0x30); local_1ff3 = 0; uStack_1fef = 0; memset(local_1fec,0xff,0x1fd4); lVar1 = get_current_logfile(); lVar2 = my_pwrite(*(int4 *)(lVar1 + 0x18),&local_2018,0x2000,0,0x34); *(int1 *)(lVar1 + 0x51) = 0; if (*(long *)(in_FS_OFFSET + 0x28) == local_18) { return lVar2 != 0; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
39,826
JS_NewObjectProtoClass
bluesky950520[P]quickjs/quickjs.c
JSValue JS_NewObjectProtoClass(JSContext *ctx, JSValue proto_val, JSClassID class_id) { JSShape *sh; JSObject *proto; proto = get_proto_obj(proto_val); sh = find_hashed_shape_proto(ctx->rt, proto); if (likely(sh)) { sh = js_dup_shape(sh); } else { sh = js_new_shape(ctx, proto); if (!sh) return JS_EXCEPTION; } return JS_NewObjectFromShape(ctx, sh, class_id); }
O0
c
JS_NewObjectProtoClass: subq $0x48, %rsp movq %rsi, 0x28(%rsp) movq %rdx, 0x30(%rsp) movq %rdi, 0x20(%rsp) movl %ecx, 0x1c(%rsp) movq 0x28(%rsp), %rdi movq 0x30(%rsp), %rsi callq 0x29f70 movq %rax, 0x8(%rsp) movq 0x20(%rsp), %rax movq 0x18(%rax), %rdi movq 0x8(%rsp), %rsi callq 0x29fa0 movq %rax, 0x10(%rsp) cmpq $0x0, 0x10(%rsp) setne %al xorb $-0x1, %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x29f0e movq 0x10(%rsp), %rdi callq 0x2a050 movq %rax, 0x10(%rsp) jmp 0x29f3f movq 0x20(%rsp), %rdi movq 0x8(%rsp), %rsi callq 0x2a070 movq %rax, 0x10(%rsp) cmpq $0x0, 0x10(%rsp) jne 0x29f3d movl $0x0, 0x38(%rsp) movq $0x6, 0x40(%rsp) jmp 0x29f5c jmp 0x29f3f movq 0x20(%rsp), %rdi movq 0x10(%rsp), %rsi movl 0x1c(%rsp), %edx callq 0x2a0a0 movq %rax, 0x38(%rsp) movq %rdx, 0x40(%rsp) movq 0x38(%rsp), %rax movq 0x40(%rsp), %rdx addq $0x48, %rsp retq nopl (%rax,%rax)
JS_NewObjectProtoClass: sub rsp, 48h mov [rsp+48h+var_20], rsi mov [rsp+48h+var_18], rdx mov [rsp+48h+var_28], rdi mov [rsp+48h+var_2C], ecx mov rdi, [rsp+48h+var_20] mov rsi, [rsp+48h+var_18] call get_proto_obj mov [rsp+48h+var_40], rax mov rax, [rsp+48h+var_28] mov rdi, [rax+18h] mov rsi, [rsp+48h+var_40] call find_hashed_shape_proto mov [rsp+48h+var_38], rax cmp [rsp+48h+var_38], 0 setnz al xor al, 0FFh xor al, 0FFh and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_29F0E mov rdi, [rsp+48h+var_38] call js_dup_shape mov [rsp+48h+var_38], rax jmp short loc_29F3F loc_29F0E: mov rdi, [rsp+48h+var_28] mov rsi, [rsp+48h+var_40] call js_new_shape mov [rsp+48h+var_38], rax cmp [rsp+48h+var_38], 0 jnz short loc_29F3D mov dword ptr [rsp+48h+var_10], 0 mov [rsp+48h+var_8], 6 jmp short loc_29F5C loc_29F3D: jmp short $+2 loc_29F3F: mov rdi, [rsp+48h+var_28] mov rsi, [rsp+48h+var_38] mov edx, [rsp+48h+var_2C] call JS_NewObjectFromShape mov [rsp+48h+var_10], rax mov [rsp+48h+var_8], rdx loc_29F5C: mov rax, [rsp+48h+var_10] mov rdx, [rsp+48h+var_8] add rsp, 48h retn
long long JS_NewObjectProtoClass(long long a1, long long a2, long long a3, unsigned int a4) { long long proto_obj; // [rsp+8h] [rbp-40h] long long hashed_shape_proto; // [rsp+10h] [rbp-38h] long long v8; // [rsp+10h] [rbp-38h] long long v9; // [rsp+10h] [rbp-38h] long long v11; // [rsp+38h] [rbp-10h] proto_obj = get_proto_obj(a2, a3); hashed_shape_proto = find_hashed_shape_proto(*(_QWORD *)(a1 + 24), proto_obj); if ( hashed_shape_proto ) { v8 = js_dup_shape(hashed_shape_proto); return JS_NewObjectFromShape(a1, v8, a4); } v9 = js_new_shape(a1, proto_obj); if ( v9 ) return JS_NewObjectFromShape(a1, v9, a4); LODWORD(v11) = 0; return v11; }
JS_NewObjectProtoClass: SUB RSP,0x48 MOV qword ptr [RSP + 0x28],RSI MOV qword ptr [RSP + 0x30],RDX MOV qword ptr [RSP + 0x20],RDI MOV dword ptr [RSP + 0x1c],ECX MOV RDI,qword ptr [RSP + 0x28] MOV RSI,qword ptr [RSP + 0x30] CALL 0x00129f70 MOV qword ptr [RSP + 0x8],RAX MOV RAX,qword ptr [RSP + 0x20] MOV RDI,qword ptr [RAX + 0x18] MOV RSI,qword ptr [RSP + 0x8] CALL 0x00129fa0 MOV qword ptr [RSP + 0x10],RAX CMP qword ptr [RSP + 0x10],0x0 SETNZ AL XOR AL,0xff XOR AL,0xff AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x00129f0e MOV RDI,qword ptr [RSP + 0x10] CALL 0x0012a050 MOV qword ptr [RSP + 0x10],RAX JMP 0x00129f3f LAB_00129f0e: MOV RDI,qword ptr [RSP + 0x20] MOV RSI,qword ptr [RSP + 0x8] CALL 0x0012a070 MOV qword ptr [RSP + 0x10],RAX CMP qword ptr [RSP + 0x10],0x0 JNZ 0x00129f3d MOV dword ptr [RSP + 0x38],0x0 MOV qword ptr [RSP + 0x40],0x6 JMP 0x00129f5c LAB_00129f3d: JMP 0x00129f3f LAB_00129f3f: MOV RDI,qword ptr [RSP + 0x20] MOV RSI,qword ptr [RSP + 0x10] MOV EDX,dword ptr [RSP + 0x1c] CALL 0x0012a0a0 MOV qword ptr [RSP + 0x38],RAX MOV qword ptr [RSP + 0x40],RDX LAB_00129f5c: MOV RAX,qword ptr [RSP + 0x38] MOV RDX,qword ptr [RSP + 0x40] ADD RSP,0x48 RET
int1 [16] JS_NewObjectProtoClass(long param_1,int8 param_2,int8 param_3,int4 param_4) { int8 uVar1; long lVar2; int1 auVar3 [16]; long local_38; int4 local_10; int4 uStack_c; int8 local_8; uVar1 = get_proto_obj(param_2,param_3); lVar2 = find_hashed_shape_proto(*(int8 *)(param_1 + 0x18),uVar1); if (lVar2 == 0) { local_38 = js_new_shape(param_1,uVar1); if (local_38 == 0) { local_10 = 0; local_8 = 6; goto LAB_00129f5c; } } else { local_38 = js_dup_shape(lVar2); } auVar3 = JS_NewObjectFromShape(param_1,local_38,param_4); local_8 = auVar3._8_8_; local_10 = auVar3._0_4_; uStack_c = auVar3._4_4_; LAB_00129f5c: auVar3._4_4_ = uStack_c; auVar3._0_4_ = local_10; auVar3._8_8_ = local_8; return auVar3; }
39,827
JS_NewObjectProtoClass
bluesky950520[P]quickjs/quickjs.c
JSValue JS_NewObjectProtoClass(JSContext *ctx, JSValue proto_val, JSClassID class_id) { JSShape *sh; JSObject *proto; proto = get_proto_obj(proto_val); sh = find_hashed_shape_proto(ctx->rt, proto); if (likely(sh)) { sh = js_dup_shape(sh); } else { sh = js_new_shape(ctx, proto); if (!sh) return JS_EXCEPTION; } return JS_NewObjectFromShape(ctx, sh, class_id); }
O1
c
JS_NewObjectProtoClass: pushq %r14 pushq %rbx pushq %rax movl %ecx, %ebx movq %rsi, %rax xorl %esi, %esi cmpl $-0x1, %edx cmovneq %rsi, %rax movq %rdi, %r14 movq 0x18(%rdi), %rdi imull $0x9e370001, %eax, %ecx # imm = 0x9E370001 movq %rax, %rdx shrq $0x20, %rdx addl %ecx, %edx imull $0x9e370001, %edx, %edx # imm = 0x9E370001 addl $0x3c6e0001, %edx # imm = 0x3C6E0001 xorl %ecx, %ecx subb 0x184(%rdi), %cl movl %edx, %r8d shrl %cl, %r8d movq 0x190(%rdi), %rcx movq (%rcx,%r8,8), %rcx testq %rcx, %rcx je 0x20f73 xorl %esi, %esi cmpl %edx, 0x1c(%rcx) jne 0x20f6a cmpq %rax, 0x38(%rcx) jne 0x20f6a cmpl $0x0, 0x28(%rcx) je 0x20f8c movq 0x30(%rcx), %rcx testq %rcx, %rcx jne 0x20f59 testq %rsi, %rsi je 0x20f91 incl (%rsi) movq %r14, %rdi movl %ebx, %edx callq 0xf516 addq $0x8, %rsp popq %rbx popq %r14 retq movq %rcx, %rsi jmp 0x20f73 movq %r14, %rdi movq %rax, %rsi movl $0x2, %edx callq 0x3bd61 testq %rax, %rax jne 0x20faf movl $0x6, %edx xorl %eax, %eax jmp 0x20f84 movq %rax, %rsi jmp 0x20f7a
JS_NewObjectProtoClass: push r14 push rbx push rax mov ebx, ecx mov rax, rsi xor esi, esi cmp edx, 0FFFFFFFFh cmovnz rax, rsi mov r14, rdi mov rdi, [rdi+18h] imul ecx, eax, 9E370001h mov rdx, rax shr rdx, 20h add edx, ecx imul edx, 9E370001h add edx, 3C6E0001h xor ecx, ecx sub cl, [rdi+184h] mov r8d, edx shr r8d, cl mov rcx, [rdi+190h] mov rcx, [rcx+r8*8] test rcx, rcx jz short loc_20F73 xor esi, esi loc_20F59: cmp [rcx+1Ch], edx jnz short loc_20F6A cmp [rcx+38h], rax jnz short loc_20F6A cmp dword ptr [rcx+28h], 0 jz short loc_20F8C loc_20F6A: mov rcx, [rcx+30h] test rcx, rcx jnz short loc_20F59 loc_20F73: test rsi, rsi jz short loc_20F91 inc dword ptr [rsi] loc_20F7A: mov rdi, r14 mov edx, ebx call JS_NewObjectFromShape loc_20F84: add rsp, 8 pop rbx pop r14 retn loc_20F8C: mov rsi, rcx jmp short loc_20F73 loc_20F91: mov rdi, r14 mov rsi, rax mov edx, 2 call js_new_shape2 test rax, rax jnz short loc_20FAF mov edx, 6 xor eax, eax jmp short loc_20F84 loc_20FAF: mov rsi, rax jmp short loc_20F7A
long long JS_NewObjectProtoClass(long long a1, long long a2, int a3, unsigned int a4) { _DWORD *v6; // rsi long long v7; // rcx long long v9; // rax v6 = 0LL; if ( a3 != -1 ) a2 = 0LL; v7 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 24) + 400LL) + 8LL * ((unsigned int)(-1640562687 * (-1640562687 * a2 + HIDWORD(a2)) + 1013841921) >> -*(_BYTE *)(*(_QWORD *)(a1 + 24) + 388LL))); if ( v7 ) { v6 = 0LL; while ( *(_DWORD *)(v7 + 28) != -1640562687 * (-1640562687 * (_DWORD)a2 + HIDWORD(a2)) + 1013841921 || *(_QWORD *)(v7 + 56) != a2 || *(_DWORD *)(v7 + 40) ) { v7 = *(_QWORD *)(v7 + 48); if ( !v7 ) goto LABEL_9; } v6 = (_DWORD *)v7; } LABEL_9: if ( v6 ) { ++*v6; } else { v9 = js_new_shape2(a1, a2, 2LL); if ( !v9 ) return 0LL; v6 = (_DWORD *)v9; } return JS_NewObjectFromShape(a1, v6, a4); }
39,828
JS_NewObjectProtoClass
bluesky950520[P]quickjs/quickjs.c
JSValue JS_NewObjectProtoClass(JSContext *ctx, JSValue proto_val, JSClassID class_id) { JSShape *sh; JSObject *proto; proto = get_proto_obj(proto_val); sh = find_hashed_shape_proto(ctx->rt, proto); if (likely(sh)) { sh = js_dup_shape(sh); } else { sh = js_new_shape(ctx, proto); if (!sh) return JS_EXCEPTION; } return JS_NewObjectFromShape(ctx, sh, class_id); }
O2
c
JS_NewObjectProtoClass: pushq %r14 pushq %rbx pushq %rax movl %ecx, %ebx movq %rdi, %r14 xorl %ecx, %ecx cmpl $-0x1, %edx cmovneq %rcx, %rsi movq 0x18(%rdi), %rdi imull $0x9e370001, %esi, %eax # imm = 0x9E370001 movq %rsi, %rdx shrq $0x20, %rdx addl %eax, %edx imull $0x9e370001, %edx, %edx # imm = 0x9E370001 addl $0x3c6e0001, %edx # imm = 0x3C6E0001 subb 0x184(%rdi), %cl movl %edx, %eax shrl %cl, %eax shlq $0x3, %rax addq 0x190(%rdi), %rax movq (%rax), %rax testq %rax, %rax je 0x1b0ce cmpl %edx, 0x1c(%rax) jne 0x1b0c8 cmpq %rsi, 0x38(%rax) jne 0x1b0c8 cmpl $0x0, 0x28(%rax) je 0x1b0e5 addq $0x30, %rax jmp 0x1b0af pushq $0x2 popq %rdx movq %r14, %rdi callq 0x34b64 testq %rax, %rax jne 0x1b0e7 pushq $0x6 popq %rdx xorl %eax, %eax jmp 0x1b0f4 incl (%rax) movq %r14, %rdi movq %rax, %rsi movl %ebx, %edx callq 0x1b0fc addq $0x8, %rsp popq %rbx popq %r14 retq
JS_NewObjectProtoClass: push r14 push rbx push rax mov ebx, ecx mov r14, rdi xor ecx, ecx cmp edx, 0FFFFFFFFh cmovnz rsi, rcx mov rdi, [rdi+18h] imul eax, esi, 9E370001h mov rdx, rsi shr rdx, 20h add edx, eax imul edx, 9E370001h add edx, 3C6E0001h sub cl, [rdi+184h] mov eax, edx shr eax, cl shl rax, 3 add rax, [rdi+190h] loc_1B0AF: mov rax, [rax] test rax, rax jz short loc_1B0CE cmp [rax+1Ch], edx jnz short loc_1B0C8 cmp [rax+38h], rsi jnz short loc_1B0C8 cmp dword ptr [rax+28h], 0 jz short loc_1B0E5 loc_1B0C8: add rax, 30h ; '0' jmp short loc_1B0AF loc_1B0CE: push 2 pop rdx mov rdi, r14 call js_new_shape2 test rax, rax jnz short loc_1B0E7 push 6 pop rdx xor eax, eax jmp short loc_1B0F4 loc_1B0E5: inc dword ptr [rax] loc_1B0E7: mov rdi, r14 mov rsi, rax mov edx, ebx call JS_NewObjectFromShape loc_1B0F4: add rsp, 8 pop rbx pop r14 retn
long long JS_NewObjectProtoClass(long long a1, long long a2, int a3, unsigned int a4) { long long *i; // rax long long v6; // rax if ( a3 != -1 ) a2 = 0LL; for ( i = (long long *)(*(_QWORD *)(*(_QWORD *)(a1 + 24) + 400LL) + 8LL * ((unsigned int)(-1640562687 * (-1640562687 * a2 + HIDWORD(a2)) + 1013841921) >> -*(_BYTE *)(*(_QWORD *)(a1 + 24) + 388LL))); ; i = (long long *)(v6 + 48) ) { v6 = *i; if ( !v6 ) break; if ( *(_DWORD *)(v6 + 28) == -1640562687 * (-1640562687 * (_DWORD)a2 + HIDWORD(a2)) + 1013841921 && *(_QWORD *)(v6 + 56) == a2 && !*(_DWORD *)(v6 + 40) ) { ++*(_DWORD *)v6; return JS_NewObjectFromShape(a1, v6, a4); } } v6 = js_new_shape2(a1, a2, 2LL); if ( !v6 ) return 0LL; return JS_NewObjectFromShape(a1, v6, a4); }
JS_NewObjectProtoClass: PUSH R14 PUSH RBX PUSH RAX MOV EBX,ECX MOV R14,RDI XOR ECX,ECX CMP EDX,-0x1 CMOVNZ RSI,RCX MOV RDI,qword ptr [RDI + 0x18] IMUL EAX,ESI,-0x61c8ffff MOV RDX,RSI SHR RDX,0x20 ADD EDX,EAX IMUL EDX,EDX,-0x61c8ffff ADD EDX,0x3c6e0001 SUB CL,byte ptr [RDI + 0x184] MOV EAX,EDX SHR EAX,CL SHL RAX,0x3 ADD RAX,qword ptr [RDI + 0x190] LAB_0011b0af: MOV RAX,qword ptr [RAX] TEST RAX,RAX JZ 0x0011b0ce CMP dword ptr [RAX + 0x1c],EDX JNZ 0x0011b0c8 CMP qword ptr [RAX + 0x38],RSI JNZ 0x0011b0c8 CMP dword ptr [RAX + 0x28],0x0 JZ 0x0011b0e5 LAB_0011b0c8: ADD RAX,0x30 JMP 0x0011b0af LAB_0011b0ce: PUSH 0x2 POP RDX MOV RDI,R14 CALL 0x00134b64 TEST RAX,RAX JNZ 0x0011b0e7 PUSH 0x6 POP RDX XOR EAX,EAX JMP 0x0011b0f4 LAB_0011b0e5: INC dword ptr [RAX] LAB_0011b0e7: MOV RDI,R14 MOV RSI,RAX MOV EDX,EBX CALL 0x0011b0fc LAB_0011b0f4: ADD RSP,0x8 POP RBX POP R14 RET
int8 JS_NewObjectProtoClass(long param_1,long param_2,int param_3,int4 param_4) { int *piVar1; int8 uVar2; uint uVar3; if (param_3 != -1) { param_2 = 0; } uVar3 = ((int)((ulong)param_2 >> 0x20) + (int)param_2 * -0x61c8ffff) * -0x61c8ffff + 0x3c6e0001; piVar1 = (int *)((ulong)(uVar3 >> (-*(char *)(*(long *)(param_1 + 0x18) + 0x184) & 0x1fU)) * 8 + *(long *)(*(long *)(param_1 + 0x18) + 400)); do { piVar1 = *(int **)piVar1; if (piVar1 == (int *)0x0) { piVar1 = (int *)js_new_shape2(param_1,param_2,2); if (piVar1 == (int *)0x0) { uVar2 = 0; } else { LAB_0011b0e7: uVar2 = JS_NewObjectFromShape(param_1,piVar1,param_4); } return uVar2; } if (((piVar1[7] == uVar3) && (*(long *)(piVar1 + 0xe) == param_2)) && (piVar1[10] == 0)) { *piVar1 = *piVar1 + 1; goto LAB_0011b0e7; } piVar1 = piVar1 + 0xc; } while( true ); }
39,829
LefDefParser::lefwEncrypt()
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp
int lefwEncrypt() { if (!lefwFile || (lefwFile == stdout)) { // No output filename is given fprintf(stderr, "ERROR (LEFWRITE-4006): Need an output file if writing in encrypted format.\n"); return LEFW_BAD_ORDER; } // Set the flag in crypt.cpp encWritingEncrypted(); lefwWriteEncrypt = 1; return LEFW_OK; }
O0
cpp
LefDefParser::lefwEncrypt(): pushq %rax leaq 0x26c58(%rip), %rax # 0x32e00 cmpq $0x0, (%rax) je 0xc1c4 leaq 0x26c4b(%rip), %rax # 0x32e00 movq (%rax), %rax movq 0x23df1(%rip), %rcx # 0x2ffb0 cmpq (%rcx), %rax jne 0xc1e6 movq 0x23dfd(%rip), %rax # 0x2ffc8 movq (%rax), %rdi leaq 0x1dc98(%rip), %rsi # 0x29e6d movb $0x0, %al callq 0x1100 movl $0x2, 0x4(%rsp) jmp 0xc1fd callq 0x28950 movl $0x1, 0x26ef7(%rip) # 0x330ec movl $0x0, 0x4(%rsp) movl 0x4(%rsp), %eax popq %rcx retq nopw %cs:(%rax,%rax)
_ZN12LefDefParser11lefwEncryptEv: push rax lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile cmp qword ptr [rax], 0 jz short loc_C1C4 lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rax, [rax] mov rcx, cs:stdout_ptr cmp rax, [rcx] jnz short loc_C1E6 loc_C1C4: mov rax, cs:stderr_ptr mov rdi, [rax]; this lea rsi, aErrorLefwrite4; "ERROR (LEFWRITE-4006): Need an output f"... mov al, 0 call _fprintf mov [rsp+8+var_4], 2 jmp short loc_C1FD loc_C1E6: call _ZN12LefDefParser19encWritingEncryptedEv; LefDefParser::encWritingEncrypted(void) mov cs:_ZN12LefDefParserL16lefwWriteEncryptE, 1; LefDefParser::lefwWriteEncrypt mov [rsp+8+var_4], 0 loc_C1FD: mov eax, [rsp+8+var_4] pop rcx retn
long long LefDefParser::lefwEncrypt(LefDefParser *this) { if ( *(_QWORD *)&LefDefParser::lefwFile && *(_QWORD *)&LefDefParser::lefwFile != stdout ) { LefDefParser::encWritingEncrypted(this); LefDefParser::lefwWriteEncrypt = 1; return 0; } else { fprintf(stderr, "ERROR (LEFWRITE-4006): Need an output file if writing in encrypted format.\n"); return 2; } }
lefwEncrypt: PUSH RAX LEA RAX,[0x132e00] CMP qword ptr [RAX],0x0 JZ 0x0010c1c4 LEA RAX,[0x132e00] MOV RAX,qword ptr [RAX] MOV RCX,qword ptr [0x0012ffb0] CMP RAX,qword ptr [RCX] JNZ 0x0010c1e6 LAB_0010c1c4: MOV RAX,qword ptr [0x0012ffc8] MOV RDI,qword ptr [RAX] LEA RSI,[0x129e6d] MOV AL,0x0 CALL 0x00101100 MOV dword ptr [RSP + 0x4],0x2 JMP 0x0010c1fd LAB_0010c1e6: CALL 0x00128950 MOV dword ptr [0x001330ec],0x1 MOV dword ptr [RSP + 0x4],0x0 LAB_0010c1fd: MOV EAX,dword ptr [RSP + 0x4] POP RCX RET
/* LefDefParser::lefwEncrypt() */ int4 LefDefParser::lefwEncrypt(void) { int4 local_4; if ((lefwFile == 0) || (lefwFile == *(long *)PTR_stdout_0012ffb0)) { fprintf(*(FILE **)PTR_stderr_0012ffc8, "ERROR (LEFWRITE-4006): Need an output file if writing in encrypted format.\n"); local_4 = 2; } else { encWritingEncrypted(); lefwWriteEncrypt = 1; local_4 = 0; } return local_4; }
39,830
init_sync_state
corpus-core[P]colibri-stateless/src/chains/eth/verifier/sync_committee_state.c
static c4_status_t init_sync_state(verify_ctx_t* ctx) { c4_chain_state_t chain_state = c4_get_chain_state(ctx->chain_id); c4_state_t* state = &ctx->state; json_t data = {0}; bool success = false; bytes_t client_update = {0}; bytes_t client_update_past = {0}; bytes32_t blockhash = {0}; if (chain_state.len == 0) { // no trusted blockhashes, so we need to fetch the last client update success = req_header(state, (json_t) {0}, ctx->chain_id, &data); if (success) { uint64_t slot = json_get_uint64(data, "slot"); uint32_t period = (slot >> 13) - 1; req_client_update(state, period, 1, ctx->chain_id, &client_update); success = req_client_update(state, period - 20, 1, ctx->chain_id, &client_update_past); } } else if (trusted_blocks_len(chain_state)) { char name[100]; buffer_t tmp = stack_buffer(name); for (int i = 0; i < chain_state.len; i++) { // currently we only support one trusted block if (!chain_state.blocks[i].slot) { bprintf(&tmp, "\"0x%x\"", bytes(chain_state.blocks[i].blockhash, 32)); memcpy(blockhash, chain_state.blocks[i].blockhash, 32); break; } } // we need to resolve the client update for the given blockhash. success = req_header(state, (json_t) {.type = JSON_TYPE_STRING, .start = name, .len = tmp.data.len}, ctx->chain_id, &data); if (success) { uint64_t period = (json_get_uint64(data, "slot") >> 13); success = req_client_update(state, period, 1, ctx->chain_id, &client_update); } } #ifndef C4_STATIC_MEMORY safe_free(chain_state.blocks); #endif if (success && client_update.len && !c4_handle_client_updates(ctx, client_update, blockhash)) state->error = strdup("Failed to handle client updates"); if (success && client_update_past.len && !c4_handle_client_updates(ctx, client_update_past, blockhash)) state->error = strdup("Failed to handle client updates"); return state->error ? C4_ERROR : (c4_state_get_pending_request(state) ? C4_PENDING : C4_SUCCESS); }
O0
c
init_sync_state: pushq %rbp movq %rsp, %rbp subq $0x1b0, %rsp # imm = 0x1B0 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movl 0x80(%rax), %edi callq 0x16b00 movq %rax, -0x18(%rbp) movl %edx, -0x10(%rbp) movq -0x8(%rbp), %rax addq $0x70, %rax movq %rax, -0x20(%rbp) leaq -0x38(%rbp), %rdi xorl %esi, %esi movl $0x18, %edx callq 0x5110 movb $0x0, -0x39(%rbp) leaq -0x50(%rbp), %rdi xorl %esi, %esi movl $0x10, %edx callq 0x5110 leaq -0x60(%rbp), %rdi xorl %esi, %esi movl $0x10, %edx callq 0x5110 leaq -0x80(%rbp), %rdi xorl %esi, %esi movl $0x20, %edx callq 0x5110 cmpl $0x0, -0x10(%rbp) jne 0x176e8 movq -0x20(%rbp), %rax movq %rax, -0x190(%rbp) leaq -0x98(%rbp), %rdi xorl %esi, %esi movl $0x18, %edx callq 0x5110 movq -0x190(%rbp), %rdi movq -0x8(%rbp), %rax movl 0x80(%rax), %esi leaq -0x98(%rbp), %rax leaq -0x38(%rbp), %rdx movq (%rax), %rcx movq %rcx, (%rsp) movq 0x8(%rax), %rcx movq %rcx, 0x8(%rsp) movq 0x10(%rax), %rax movq %rax, 0x10(%rsp) callq 0x17ad0 andb $0x1, %al movb %al, -0x39(%rbp) testb $0x1, -0x39(%rbp) je 0x176e3 leaq -0xb8(%rbp), %rdi leaq -0x38(%rbp), %rax leaq 0x3b1d0(%rip), %rsi # 0x52808 movq (%rax), %rcx movq %rcx, (%rsp) movq 0x8(%rax), %rcx movq %rcx, 0x8(%rsp) movq 0x10(%rax), %rax movq %rax, 0x10(%rsp) callq 0x20500 leaq -0xb8(%rbp), %rax movq (%rax), %rcx movq %rcx, (%rsp) movq 0x8(%rax), %rcx movq %rcx, 0x8(%rsp) movq 0x10(%rax), %rax movq %rax, 0x10(%rsp) callq 0x20920 movq %rax, -0xa0(%rbp) movq -0xa0(%rbp), %rax shrq $0xd, %rax subq $0x1, %rax movl %eax, -0xbc(%rbp) movq -0x20(%rbp), %rdi movl -0xbc(%rbp), %esi movq -0x8(%rbp), %rax movl 0x80(%rax), %ecx movl $0x1, %edx leaq -0x50(%rbp), %r8 callq 0x179b0 movq -0x20(%rbp), %rdi movl -0xbc(%rbp), %esi subl $0x14, %esi movq -0x8(%rbp), %rax movl 0x80(%rax), %ecx movl $0x1, %edx leaq -0x60(%rbp), %r8 callq 0x179b0 andb $0x1, %al movb %al, -0x39(%rbp) jmp 0x178dc movq -0x18(%rbp), %rdi movl -0x10(%rbp), %esi callq 0x17130 cmpl $0x0, %eax je 0x178da movl $0x0, -0x138(%rbp) leaq -0x120(%rbp), %rax movq %rax, -0x130(%rbp) movl $0xffffff9c, -0x128(%rbp) # imm = 0xFFFFFF9C movl $0x0, -0x13c(%rbp) movl -0x13c(%rbp), %eax cmpl -0x10(%rbp), %eax jae 0x177e3 movq -0x18(%rbp), %rax movslq -0x13c(%rbp), %rcx imulq $0x30, %rcx, %rcx addq %rcx, %rax cmpq $0x0, (%rax) jne 0x177cd movl $0x20, -0x150(%rbp) movq -0x18(%rbp), %rax movslq -0x13c(%rbp), %rcx imulq $0x30, %rcx, %rcx addq %rcx, %rax addq $0x8, %rax movq %rax, -0x148(%rbp) movl -0x150(%rbp), %edx movq -0x148(%rbp), %rcx leaq -0x138(%rbp), %rdi leaq 0x3c5f7(%rip), %rsi # 0x53d89 movb $0x0, %al callq 0x19740 movq -0x18(%rbp), %rax movslq -0x13c(%rbp), %rcx imulq $0x30, %rcx, %rcx addq %rcx, %rax movq 0x8(%rax), %rcx movq %rcx, -0x80(%rbp) movq 0x10(%rax), %rcx movq %rcx, -0x78(%rbp) movq 0x18(%rax), %rcx movq %rcx, -0x70(%rbp) movq 0x20(%rax), %rax movq %rax, -0x68(%rbp) jmp 0x177e3 jmp 0x177cf movl -0x13c(%rbp), %eax addl $0x1, %eax movl %eax, -0x13c(%rbp) jmp 0x17729 movq -0x20(%rbp), %rdi leaq -0x120(%rbp), %rax movq %rax, -0x168(%rbp) movl -0x138(%rbp), %eax movq %rax, -0x160(%rbp) movl $0x1, -0x158(%rbp) movq -0x8(%rbp), %rax movl 0x80(%rax), %esi leaq -0x168(%rbp), %rax leaq -0x38(%rbp), %rdx movq (%rax), %rcx movq %rcx, (%rsp) movq 0x8(%rax), %rcx movq %rcx, 0x8(%rsp) movq 0x10(%rax), %rax movq %rax, 0x10(%rsp) callq 0x17ad0 andb $0x1, %al movb %al, -0x39(%rbp) testb $0x1, -0x39(%rbp) je 0x178d8 leaq -0x188(%rbp), %rdi leaq -0x38(%rbp), %rax leaq 0x3afa8(%rip), %rsi # 0x52808 movq (%rax), %rcx movq %rcx, (%rsp) movq 0x8(%rax), %rcx movq %rcx, 0x8(%rsp) movq 0x10(%rax), %rax movq %rax, 0x10(%rsp) callq 0x20500 leaq -0x188(%rbp), %rax movq (%rax), %rcx movq %rcx, (%rsp) movq 0x8(%rax), %rcx movq %rcx, 0x8(%rsp) movq 0x10(%rax), %rax movq %rax, 0x10(%rsp) callq 0x20920 shrq $0xd, %rax movq %rax, -0x170(%rbp) movq -0x20(%rbp), %rdi movq -0x170(%rbp), %rax movl %eax, %esi movq -0x8(%rbp), %rax movl 0x80(%rax), %ecx movl $0x1, %edx leaq -0x50(%rbp), %r8 callq 0x179b0 andb $0x1, %al movb %al, -0x39(%rbp) jmp 0x178da jmp 0x178dc movq -0x18(%rbp), %rdi callq 0x18740 testb $0x1, -0x39(%rbp) je 0x17920 cmpl $0x0, -0x50(%rbp) je 0x17920 movq -0x8(%rbp), %rdi leaq -0x80(%rbp), %rcx movl -0x50(%rbp), %esi movq -0x48(%rbp), %rdx callq 0x183a0 testb $0x1, %al jne 0x17920 leaq 0x3c440(%rip), %rdi # 0x53d50 callq 0x5030 movq %rax, %rcx movq -0x20(%rbp), %rax movq %rcx, 0x8(%rax) testb $0x1, -0x39(%rbp) je 0x1795b cmpl $0x0, -0x60(%rbp) je 0x1795b movq -0x8(%rbp), %rdi leaq -0x80(%rbp), %rcx movl -0x60(%rbp), %esi movq -0x58(%rbp), %rdx callq 0x183a0 testb $0x1, %al jne 0x1795b leaq 0x3c405(%rip), %rdi # 0x53d50 callq 0x5030 movq %rax, %rcx movq -0x20(%rbp), %rax movq %rcx, 0x8(%rax) movq -0x20(%rbp), %rax cmpq $0x0, 0x8(%rax) je 0x17973 movl $0xffffffff, %eax # imm = 0xFFFFFFFF movl %eax, -0x194(%rbp) jmp 0x17993 movq -0x20(%rbp), %rdi callq 0x224b0 movq %rax, %rdx xorl %eax, %eax movl $0x2, %ecx cmpq $0x0, %rdx cmovnel %ecx, %eax movl %eax, -0x194(%rbp) movl -0x194(%rbp), %eax addq $0x1b0, %rsp # imm = 0x1B0 popq %rbp retq nopw %cs:(%rax,%rax)
init_sync_state: push rbp mov rbp, rsp sub rsp, 1B0h mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov edi, [rax+80h] call c4_get_chain_state mov [rbp+var_18], rax mov [rbp+var_10], edx mov rax, [rbp+var_8] add rax, 70h ; 'p' mov [rbp+var_20], rax lea rdi, [rbp+var_38] xor esi, esi mov edx, 18h call _memset mov [rbp+var_39], 0 lea rdi, [rbp+var_50] xor esi, esi mov edx, 10h call _memset lea rdi, [rbp+var_60] xor esi, esi mov edx, 10h call _memset lea rdi, [rbp+var_80] xor esi, esi mov edx, 20h ; ' ' call _memset cmp [rbp+var_10], 0 jnz loc_176E8 mov rax, [rbp+var_20] mov [rbp+var_190], rax lea rdi, [rbp+var_98] xor esi, esi mov edx, 18h call _memset mov rdi, [rbp+var_190] mov rax, [rbp+var_8] mov esi, [rax+80h] lea rax, [rbp+var_98] lea rdx, [rbp+var_38] mov rcx, [rax] mov [rsp+1B0h+var_1B0], rcx mov rcx, [rax+8] mov [rsp+1B0h+var_1A8], rcx mov rax, [rax+10h] mov [rsp+1B0h+var_1A0], rax call req_header and al, 1 mov [rbp+var_39], al test [rbp+var_39], 1 jz loc_176E3 lea rdi, [rbp+var_B8] lea rax, [rbp+var_38] lea rsi, aSlot; "slot" mov rcx, [rax] mov [rsp+1B0h+var_1B0], rcx mov rcx, [rax+8] mov [rsp+1B0h+var_1A8], rcx mov rax, [rax+10h] mov [rsp+1B0h+var_1A0], rax call json_get lea rax, [rbp+var_B8] mov rcx, [rax] mov [rsp+1B0h+var_1B0], rcx mov rcx, [rax+8] mov [rsp+1B0h+var_1A8], rcx mov rax, [rax+10h] mov [rsp+1B0h+var_1A0], rax call json_as_uint64 mov [rbp+var_A0], rax mov rax, [rbp+var_A0] shr rax, 0Dh sub rax, 1 mov [rbp+var_BC], eax mov rdi, [rbp+var_20] mov esi, [rbp+var_BC] mov rax, [rbp+var_8] mov ecx, [rax+80h] mov edx, 1 lea r8, [rbp+var_50] call req_client_update_0 mov rdi, [rbp+var_20] mov esi, [rbp+var_BC] sub esi, 14h mov rax, [rbp+var_8] mov ecx, [rax+80h] mov edx, 1 lea r8, [rbp+var_60] call req_client_update_0 and al, 1 mov [rbp+var_39], al loc_176E3: jmp loc_178DC loc_176E8: mov rdi, [rbp+var_18] mov esi, [rbp+var_10] call trusted_blocks_len cmp eax, 0 jz loc_178DA mov [rbp+var_138], 0 lea rax, [rbp+var_120] mov [rbp+var_130], rax mov [rbp+var_128], 0FFFFFF9Ch mov [rbp+var_13C], 0 loc_17729: mov eax, [rbp+var_13C] cmp eax, [rbp+var_10] jnb loc_177E3 mov rax, [rbp+var_18] movsxd rcx, [rbp+var_13C] imul rcx, 30h ; '0' add rax, rcx cmp qword ptr [rax], 0 jnz short loc_177CD mov [rbp+var_150], 20h ; ' ' mov rax, [rbp+var_18] movsxd rcx, [rbp+var_13C] imul rcx, 30h ; '0' add rax, rcx add rax, 8 mov [rbp+var_148], rax mov edx, [rbp+var_150] mov rcx, [rbp+var_148] lea rdi, [rbp+var_138] lea rsi, a0xX; "\"0x%x\"" mov al, 0 call bprintf mov rax, [rbp+var_18] movsxd rcx, [rbp+var_13C] imul rcx, 30h ; '0' add rax, rcx mov rcx, [rax+8] mov [rbp+var_80], rcx mov rcx, [rax+10h] mov [rbp+var_78], rcx mov rcx, [rax+18h] mov [rbp+var_70], rcx mov rax, [rax+20h] mov [rbp+var_68], rax jmp short loc_177E3 loc_177CD: jmp short $+2 loc_177CF: mov eax, [rbp+var_13C] add eax, 1 mov [rbp+var_13C], eax jmp loc_17729 loc_177E3: mov rdi, [rbp+var_20] lea rax, [rbp+var_120] mov [rbp+var_168], rax mov eax, [rbp+var_138] mov [rbp+var_160], rax mov [rbp+var_158], 1 mov rax, [rbp+var_8] mov esi, [rax+80h] lea rax, [rbp+var_168] lea rdx, [rbp+var_38] mov rcx, [rax] mov [rsp+1B0h+var_1B0], rcx mov rcx, [rax+8] mov [rsp+1B0h+var_1A8], rcx mov rax, [rax+10h] mov [rsp+1B0h+var_1A0], rax call req_header and al, 1 mov [rbp+var_39], al test [rbp+var_39], 1 jz loc_178D8 lea rdi, [rbp+var_188] lea rax, [rbp+var_38] lea rsi, aSlot; "slot" mov rcx, [rax] mov [rsp+1B0h+var_1B0], rcx mov rcx, [rax+8] mov [rsp+1B0h+var_1A8], rcx mov rax, [rax+10h] mov [rsp+1B0h+var_1A0], rax call json_get lea rax, [rbp+var_188] mov rcx, [rax] mov [rsp+1B0h+var_1B0], rcx mov rcx, [rax+8] mov [rsp+1B0h+var_1A8], rcx mov rax, [rax+10h] mov [rsp+1B0h+var_1A0], rax call json_as_uint64 shr rax, 0Dh mov [rbp+var_170], rax mov rdi, [rbp+var_20] mov rax, [rbp+var_170] mov esi, eax mov rax, [rbp+var_8] mov ecx, [rax+80h] mov edx, 1 lea r8, [rbp+var_50] call req_client_update_0 and al, 1 mov [rbp+var_39], al loc_178D8: jmp short $+2 loc_178DA: jmp short $+2 loc_178DC: mov rdi, [rbp+var_18] call safe_free test [rbp+var_39], 1 jz short loc_17920 cmp [rbp+var_50], 0 jz short loc_17920 mov rdi, [rbp+var_8] lea rcx, [rbp+var_80] mov esi, [rbp+var_50] mov rdx, [rbp+var_48] call c4_handle_client_updates test al, 1 jnz short loc_17920 lea rdi, aFailedToHandle; "Failed to handle client updates" call _strdup mov rcx, rax mov rax, [rbp+var_20] mov [rax+8], rcx loc_17920: test [rbp+var_39], 1 jz short loc_1795B cmp [rbp+var_60], 0 jz short loc_1795B mov rdi, [rbp+var_8] lea rcx, [rbp+var_80] mov esi, [rbp+var_60] mov rdx, [rbp+var_58] call c4_handle_client_updates test al, 1 jnz short loc_1795B lea rdi, aFailedToHandle; "Failed to handle client updates" call _strdup mov rcx, rax mov rax, [rbp+var_20] mov [rax+8], rcx loc_1795B: mov rax, [rbp+var_20] cmp qword ptr [rax+8], 0 jz short loc_17973 mov eax, 0FFFFFFFFh mov [rbp+var_194], eax jmp short loc_17993 loc_17973: mov rdi, [rbp+var_20] call c4_state_get_pending_request mov rdx, rax xor eax, eax mov ecx, 2 cmp rdx, 0 cmovnz eax, ecx mov [rbp+var_194], eax loc_17993: mov eax, [rbp+var_194] add rsp, 1B0h pop rbp retn
long long init_sync_state(long long a1) { unsigned int v1; // edx int v2; // r8d int v3; // r9d int v4; // edx int v5; // r8d int v6; // r9d int v7; // edx int v8; // r8d int v9; // r9d int v10; // r8d int v11; // r9d long long v12; // rcx int v13; // edx int v14; // r8d int v15; // r9d int v16; // edx int v17; // r8d int v18; // r9d long long v19; // rax long long v20; // rax long long pending_request; // rdx unsigned int v22; // eax int v25; // [rsp+20h] [rbp-190h] long long v26; // [rsp+28h] [rbp-188h] BYREF long long v27; // [rsp+30h] [rbp-180h] long long v28; // [rsp+38h] [rbp-178h] unsigned long long v29; // [rsp+40h] [rbp-170h] _BYTE *v30; // [rsp+48h] [rbp-168h] long long v31; // [rsp+50h] [rbp-160h] long long v32; // [rsp+58h] [rbp-158h] int v33; // [rsp+60h] [rbp-150h] long long v34; // [rsp+68h] [rbp-148h] signed int i; // [rsp+74h] [rbp-13Ch] unsigned int v36; // [rsp+78h] [rbp-138h] BYREF _BYTE *v37; // [rsp+80h] [rbp-130h] int v38; // [rsp+88h] [rbp-128h] _BYTE v39[100]; // [rsp+90h] [rbp-120h] BYREF unsigned int v40; // [rsp+F4h] [rbp-BCh] long long v41; // [rsp+F8h] [rbp-B8h] BYREF long long v42; // [rsp+100h] [rbp-B0h] long long v43; // [rsp+108h] [rbp-A8h] unsigned long long v44; // [rsp+110h] [rbp-A0h] long long v45; // [rsp+118h] [rbp-98h] BYREF long long v46; // [rsp+120h] [rbp-90h] long long v47; // [rsp+128h] [rbp-88h] _QWORD v48[4]; // [rsp+130h] [rbp-80h] BYREF unsigned int v49; // [rsp+150h] [rbp-60h] BYREF long long v50; // [rsp+158h] [rbp-58h] unsigned int v51; // [rsp+160h] [rbp-50h] BYREF long long v52; // [rsp+168h] [rbp-48h] char v53; // [rsp+177h] [rbp-39h] long long v54; // [rsp+178h] [rbp-38h] BYREF long long v55; // [rsp+180h] [rbp-30h] long long v56; // [rsp+188h] [rbp-28h] long long v57; // [rsp+190h] [rbp-20h] long long chain_state; // [rsp+198h] [rbp-18h] unsigned int v59; // [rsp+1A0h] [rbp-10h] long long v60; // [rsp+1A8h] [rbp-8h] v60 = a1; chain_state = c4_get_chain_state(*(_DWORD *)(a1 + 128)); v59 = v1; v57 = a1 + 112; memset(&v54, 0LL, 24LL); v53 = 0; memset(&v51, 0LL, 16LL); memset(&v49, 0LL, 16LL); memset(v48, 0LL, sizeof(v48)); if ( v59 ) { if ( (unsigned int)trusted_blocks_len(chain_state, v59) ) { v36 = 0; v37 = v39; v38 = -100; for ( i = 0; i < v59; ++i ) { if ( !*(_QWORD *)(48LL * i + chain_state) ) { v33 = 32; v34 = 48LL * i + chain_state + 8; bprintf((unsigned int)&v36, (unsigned int)"\"0x%x\"", 32, 48 * i + chain_state + 8, v10, v11); v12 = 48LL * i; v48[0] = *(_QWORD *)(v12 + chain_state + 8); v48[1] = *(_QWORD *)(v12 + chain_state + 16); v48[2] = *(_QWORD *)(v12 + chain_state + 24); v48[3] = *(_QWORD *)(v12 + chain_state + 32); break; } } v30 = v39; v31 = v36; LODWORD(v32) = 1; v53 = req_header(v57, *(_DWORD *)(v60 + 128), (unsigned int)&v54, v36, v10, v11, v39, v36, v32) & 1; if ( v53 ) { json_get((unsigned int)&v26, (unsigned int)"slot", v13, v55, v14, v15, v54, v55, v56); v29 = (unsigned long long)json_as_uint64( (unsigned int)&v26, (unsigned int)"slot", v16, v27, v17, v18, v26, v27, v28) >> 13; v53 = req_client_update_0(v57, (unsigned int)v29, 1LL, *(unsigned int *)(v60 + 128), &v51) & 1; } } } else { v25 = v57; memset(&v45, 0LL, 24LL); v53 = req_header(v25, *(_DWORD *)(v60 + 128), (unsigned int)&v54, v46, v2, v3, v45, v46, v47) & 1; if ( v53 ) { json_get((unsigned int)&v41, (unsigned int)"slot", v4, v55, v5, v6, v54, v55, v56); v44 = json_as_uint64((unsigned int)&v41, (unsigned int)"slot", v7, v42, v8, v9, v41, v42, v43); v40 = (v44 >> 13) - 1; req_client_update_0(v57, v40, 1LL, *(unsigned int *)(v60 + 128), &v51); v53 = req_client_update_0(v57, v40 - 20, 1LL, *(unsigned int *)(v60 + 128), &v49) & 1; } } safe_free(chain_state); if ( (v53 & 1) != 0 && v51 && (c4_handle_client_updates(v60, v51, v52, v48) & 1) == 0 ) { v19 = strdup("Failed to handle client updates"); *(_QWORD *)(v57 + 8) = v19; } if ( (v53 & 1) != 0 && v49 && (c4_handle_client_updates(v60, v49, v50, v48) & 1) == 0 ) { v20 = strdup("Failed to handle client updates"); *(_QWORD *)(v57 + 8) = v20; } if ( *(_QWORD *)(v57 + 8) ) { return (unsigned int)-1; } else { pending_request = c4_state_get_pending_request(v57); v22 = 0; if ( pending_request ) return 2; return v22; } }
init_sync_state: PUSH RBP MOV RBP,RSP SUB RSP,0x1b0 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV EDI,dword ptr [RAX + 0x80] CALL 0x00116b00 MOV qword ptr [RBP + -0x18],RAX MOV dword ptr [RBP + -0x10],EDX MOV RAX,qword ptr [RBP + -0x8] ADD RAX,0x70 MOV qword ptr [RBP + -0x20],RAX LEA RDI,[RBP + -0x38] XOR ESI,ESI MOV EDX,0x18 CALL 0x00105110 MOV byte ptr [RBP + -0x39],0x0 LEA RDI,[RBP + -0x50] XOR ESI,ESI MOV EDX,0x10 CALL 0x00105110 LEA RDI,[RBP + -0x60] XOR ESI,ESI MOV EDX,0x10 CALL 0x00105110 LEA RDI,[RBP + -0x80] XOR ESI,ESI MOV EDX,0x20 CALL 0x00105110 CMP dword ptr [RBP + -0x10],0x0 JNZ 0x001176e8 MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x190],RAX LEA RDI,[RBP + -0x98] XOR ESI,ESI MOV EDX,0x18 CALL 0x00105110 MOV RDI,qword ptr [RBP + -0x190] MOV RAX,qword ptr [RBP + -0x8] MOV ESI,dword ptr [RAX + 0x80] LEA RAX,[RBP + -0x98] LEA RDX,[RBP + -0x38] MOV RCX,qword ptr [RAX] MOV qword ptr [RSP],RCX MOV RCX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x8],RCX MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0x10],RAX CALL 0x00117ad0 AND AL,0x1 MOV byte ptr [RBP + -0x39],AL TEST byte ptr [RBP + -0x39],0x1 JZ 0x001176e3 LEA RDI,[RBP + -0xb8] LEA RAX,[RBP + -0x38] LEA RSI,[0x152808] MOV RCX,qword ptr [RAX] MOV qword ptr [RSP],RCX MOV RCX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x8],RCX MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0x10],RAX CALL 0x00120500 LEA RAX,[RBP + -0xb8] MOV RCX,qword ptr [RAX] MOV qword ptr [RSP],RCX MOV RCX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x8],RCX MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0x10],RAX CALL 0x00120920 MOV qword ptr [RBP + -0xa0],RAX MOV RAX,qword ptr [RBP + -0xa0] SHR RAX,0xd SUB RAX,0x1 MOV dword ptr [RBP + -0xbc],EAX MOV RDI,qword ptr [RBP + -0x20] MOV ESI,dword ptr [RBP + -0xbc] MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x80] MOV EDX,0x1 LEA R8,[RBP + -0x50] CALL 0x001179b0 MOV RDI,qword ptr [RBP + -0x20] MOV ESI,dword ptr [RBP + -0xbc] SUB ESI,0x14 MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x80] MOV EDX,0x1 LEA R8,[RBP + -0x60] CALL 0x001179b0 AND AL,0x1 MOV byte ptr [RBP + -0x39],AL LAB_001176e3: JMP 0x001178dc LAB_001176e8: MOV RDI,qword ptr [RBP + -0x18] MOV ESI,dword ptr [RBP + -0x10] CALL 0x00117130 CMP EAX,0x0 JZ 0x001178da MOV dword ptr [RBP + -0x138],0x0 LEA RAX,[RBP + -0x120] MOV qword ptr [RBP + -0x130],RAX MOV dword ptr [RBP + -0x128],0xffffff9c MOV dword ptr [RBP + -0x13c],0x0 LAB_00117729: MOV EAX,dword ptr [RBP + -0x13c] CMP EAX,dword ptr [RBP + -0x10] JNC 0x001177e3 MOV RAX,qword ptr [RBP + -0x18] MOVSXD RCX,dword ptr [RBP + -0x13c] IMUL RCX,RCX,0x30 ADD RAX,RCX CMP qword ptr [RAX],0x0 JNZ 0x001177cd MOV dword ptr [RBP + -0x150],0x20 MOV RAX,qword ptr [RBP + -0x18] MOVSXD RCX,dword ptr [RBP + -0x13c] IMUL RCX,RCX,0x30 ADD RAX,RCX ADD RAX,0x8 MOV qword ptr [RBP + -0x148],RAX MOV EDX,dword ptr [RBP + -0x150] MOV RCX,qword ptr [RBP + -0x148] LEA RDI,[RBP + -0x138] LEA RSI,[0x153d89] MOV AL,0x0 CALL 0x00119740 MOV RAX,qword ptr [RBP + -0x18] MOVSXD RCX,dword ptr [RBP + -0x13c] IMUL RCX,RCX,0x30 ADD RAX,RCX MOV RCX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x80],RCX MOV RCX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0x78],RCX MOV RCX,qword ptr [RAX + 0x18] MOV qword ptr [RBP + -0x70],RCX MOV RAX,qword ptr [RAX + 0x20] MOV qword ptr [RBP + -0x68],RAX JMP 0x001177e3 LAB_001177cd: JMP 0x001177cf LAB_001177cf: MOV EAX,dword ptr [RBP + -0x13c] ADD EAX,0x1 MOV dword ptr [RBP + -0x13c],EAX JMP 0x00117729 LAB_001177e3: MOV RDI,qword ptr [RBP + -0x20] LEA RAX,[RBP + -0x120] MOV qword ptr [RBP + -0x168],RAX MOV EAX,dword ptr [RBP + -0x138] MOV qword ptr [RBP + -0x160],RAX MOV dword ptr [RBP + -0x158],0x1 MOV RAX,qword ptr [RBP + -0x8] MOV ESI,dword ptr [RAX + 0x80] LEA RAX,[RBP + -0x168] LEA RDX,[RBP + -0x38] MOV RCX,qword ptr [RAX] MOV qword ptr [RSP],RCX MOV RCX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x8],RCX MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0x10],RAX CALL 0x00117ad0 AND AL,0x1 MOV byte ptr [RBP + -0x39],AL TEST byte ptr [RBP + -0x39],0x1 JZ 0x001178d8 LEA RDI,[RBP + -0x188] LEA RAX,[RBP + -0x38] LEA RSI,[0x152808] MOV RCX,qword ptr [RAX] MOV qword ptr [RSP],RCX MOV RCX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x8],RCX MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0x10],RAX CALL 0x00120500 LEA RAX,[RBP + -0x188] MOV RCX,qword ptr [RAX] MOV qword ptr [RSP],RCX MOV RCX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x8],RCX MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0x10],RAX CALL 0x00120920 SHR RAX,0xd MOV qword ptr [RBP + -0x170],RAX MOV RDI,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x170] MOV ESI,EAX MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x80] MOV EDX,0x1 LEA R8,[RBP + -0x50] CALL 0x001179b0 AND AL,0x1 MOV byte ptr [RBP + -0x39],AL LAB_001178d8: JMP 0x001178da LAB_001178da: JMP 0x001178dc LAB_001178dc: MOV RDI,qword ptr [RBP + -0x18] CALL 0x00118740 TEST byte ptr [RBP + -0x39],0x1 JZ 0x00117920 CMP dword ptr [RBP + -0x50],0x0 JZ 0x00117920 MOV RDI,qword ptr [RBP + -0x8] LEA RCX,[RBP + -0x80] MOV ESI,dword ptr [RBP + -0x50] MOV RDX,qword ptr [RBP + -0x48] CALL 0x001183a0 TEST AL,0x1 JNZ 0x00117920 LEA RDI,[0x153d50] CALL 0x00105030 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x8],RCX LAB_00117920: TEST byte ptr [RBP + -0x39],0x1 JZ 0x0011795b CMP dword ptr [RBP + -0x60],0x0 JZ 0x0011795b MOV RDI,qword ptr [RBP + -0x8] LEA RCX,[RBP + -0x80] MOV ESI,dword ptr [RBP + -0x60] MOV RDX,qword ptr [RBP + -0x58] CALL 0x001183a0 TEST AL,0x1 JNZ 0x0011795b LEA RDI,[0x153d50] CALL 0x00105030 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x8],RCX LAB_0011795b: MOV RAX,qword ptr [RBP + -0x20] CMP qword ptr [RAX + 0x8],0x0 JZ 0x00117973 MOV EAX,0xffffffff MOV dword ptr [RBP + -0x194],EAX JMP 0x00117993 LAB_00117973: MOV RDI,qword ptr [RBP + -0x20] CALL 0x001224b0 MOV RDX,RAX XOR EAX,EAX MOV ECX,0x2 CMP RDX,0x0 CMOVNZ EAX,ECX MOV dword ptr [RBP + -0x194],EAX LAB_00117993: MOV EAX,dword ptr [RBP + -0x194] ADD RSP,0x1b0 POP RBP RET
int4 init_sync_state(long param_1) { int iVar1; ulong uVar2; char *pcVar3; long lVar4; int8 in_R9; int4 local_19c; int8 local_190; int8 local_188; int8 local_180; ulong local_178; int1 *local_170; ulong local_168; int4 local_160; int4 local_158; long local_150; uint local_144; uint local_140 [2]; int1 *local_138; int4 local_130; int1 local_128 [100]; int local_c4; int8 local_c0; int8 local_b8; int8 local_b0; ulong local_a8; int1 local_a0 [24]; int8 local_88; int8 local_80; int8 local_78; int8 local_70; int local_68 [2]; int8 local_60; int local_58 [2]; int8 local_50; byte local_41; int1 local_40 [24]; long local_28; int1 local_20 [12]; long local_10; local_10 = param_1; local_20 = c4_get_chain_state(*(int4 *)(param_1 + 0x80)); local_28 = local_10 + 0x70; memset(local_40,0,0x18); local_41 = 0; memset(local_58,0,0x10); memset(local_68,0,0x10); memset(&local_88,0,0x20); lVar4 = local_28; if (local_20._8_4_ == 0) { memset(local_a0,0,0x18); local_41 = req_header(lVar4,*(int4 *)(local_10 + 0x80),local_40); local_41 = local_41 & 1; if (local_41 != 0) { json_get(&local_c0,&DAT_00152808); local_a8 = json_as_uint64(); local_c4 = (int)(local_a8 >> 0xd) + -1; req_client_update(local_28,local_c4,1,*(int4 *)(local_10 + 0x80),local_58,in_R9,local_c0 ,local_b8,local_b0); local_41 = req_client_update(local_28,local_c4 + -0x14,1,*(int4 *)(local_10 + 0x80), local_68); local_41 = local_41 & 1; } } else { iVar1 = trusted_blocks_len(local_20._0_8_,local_20._8_4_); if (iVar1 != 0) { local_140[0] = 0; local_138 = local_128; local_130 = 0xffffff9c; for (local_144 = 0; local_144 < (uint)local_20._8_4_; local_144 = local_144 + 1) { if (*(long *)(local_20._0_8_ + (long)(int)local_144 * 0x30) == 0) { local_158 = 0x20; local_150 = local_20._0_8_ + (long)(int)local_144 * 0x30 + 8; bprintf(local_140,"\"0x%x\"",0x20,local_150); lVar4 = local_20._0_8_ + (long)(int)local_144 * 0x30; local_88 = *(int8 *)(lVar4 + 8); local_80 = *(int8 *)(lVar4 + 0x10); local_78 = *(int8 *)(lVar4 + 0x18); local_70 = *(int8 *)(lVar4 + 0x20); break; } } local_170 = local_128; local_168 = (ulong)local_140[0]; local_160 = 1; local_41 = req_header(local_28,*(int4 *)(local_10 + 0x80),local_40); local_41 = local_41 & 1; if (local_41 != 0) { json_get(&local_190,&DAT_00152808); local_178 = json_as_uint64(); local_178 = local_178 >> 0xd; local_41 = req_client_update(local_28,local_178 & 0xffffffff,1, *(int4 *)(local_10 + 0x80),local_58,in_R9,local_190, local_188,local_180); local_41 = local_41 & 1; } } } safe_free(local_20._0_8_); if (((local_41 & 1) != 0) && (local_58[0] != 0)) { uVar2 = c4_handle_client_updates(local_10,local_58[0],local_50,&local_88); if ((uVar2 & 1) == 0) { pcVar3 = strdup("Failed to handle client updates"); *(char **)(local_28 + 8) = pcVar3; } } if (((local_41 & 1) != 0) && (local_68[0] != 0)) { uVar2 = c4_handle_client_updates(local_10,local_68[0],local_60,&local_88); if ((uVar2 & 1) == 0) { pcVar3 = strdup("Failed to handle client updates"); *(char **)(local_28 + 8) = pcVar3; } } if (*(long *)(local_28 + 8) == 0) { lVar4 = c4_state_get_pending_request(local_28); local_19c = 0; if (lVar4 != 0) { local_19c = 2; } } else { local_19c = 0xffffffff; } return local_19c; }
39,831
get_wval_limb
corpus-core[P]colibri-stateless/build_O3/_deps/blst-src/src/ec_mult.h
static limb_t get_wval_limb(const byte *d, size_t off, size_t bits) { size_t i, top = (off + bits - 1)/8; limb_t ret, mask = (limb_t)0 - 1; d += off/8; top -= off/8-1; /* this is not about constant-time-ness, but branch optimization */ for (ret=0, i=0; i<4;) { ret |= (*d & mask) << (8*i); mask = (limb_t)0 - ((++i - top) >> (8*sizeof(top)-1)); d += 1 & mask; } return ret >> (off%8); }
O3
c
get_wval_limb: pushq %rbp movq %rsp, %rbp leaq (%rsi,%rdx), %rax decq %rax shrq $0x3, %rax movq %rsi, %rdx shrq $0x3, %rdx addq %rdx, %rdi subq %rax, %rdx movq $-0x1, %r8 xorl %ecx, %ecx xorl %eax, %eax movzbl (%rdi), %r9d andl %r9d, %r8d shlq %cl, %r8 orq %r8, %rax movq %rdx, %r8 sarq $0x3f, %r8 movq %rdx, %r9 shrq $0x3f, %r9 addq %r9, %rdi addq $0x8, %rcx incq %rdx cmpq $0x20, %rcx jne 0x696e8 andb $0x7, %sil movl %esi, %ecx shrq %cl, %rax popq %rbp retq
get_wval_limb: push rbp mov rbp, rsp lea rax, [rsi+rdx] dec rax shr rax, 3 mov rdx, rsi shr rdx, 3 add rdi, rdx sub rdx, rax mov r8, 0FFFFFFFFFFFFFFFFh xor ecx, ecx xor eax, eax loc_696E8: movzx r9d, byte ptr [rdi] and r8d, r9d shl r8, cl or rax, r8 mov r8, rdx sar r8, 3Fh mov r9, rdx shr r9, 3Fh add rdi, r9 add rcx, 8 inc rdx cmp rcx, 20h ; ' ' jnz short loc_696E8 and sil, 7 mov ecx, esi shr rax, cl pop rbp retn
unsigned long long get_wval_limb(long long a1, unsigned long long a2, long long a3) { _BYTE *v3; // rdi signed long long v4; // rdx long long v5; // r8 long long v6; // rcx unsigned long long v7; // rax v3 = (_BYTE *)((a2 >> 3) + a1); v4 = (a2 >> 3) - ((a2 + a3 - 1) >> 3); LOBYTE(v5) = -1; v6 = 0LL; v7 = 0LL; do { v7 |= (unsigned long long)(unsigned __int8)(*v3 & v5) << v6; v5 = v4 >> 63; v3 += (unsigned long long)v4 >> 63; v6 += 8LL; ++v4; } while ( v6 != 32 ); return v7 >> (a2 & 7); }
get_wval_limb: PUSH RBP MOV RBP,RSP LEA RAX,[RSI + RDX*0x1] DEC RAX SHR RAX,0x3 MOV RDX,RSI SHR RDX,0x3 ADD RDI,RDX SUB RDX,RAX MOV R8,-0x1 XOR ECX,ECX XOR EAX,EAX LAB_001696e8: MOVZX R9D,byte ptr [RDI] AND R8D,R9D SHL R8,CL OR RAX,R8 MOV R8,RDX SAR R8,0x3f MOV R9,RDX SHR R9,0x3f ADD RDI,R9 ADD RCX,0x8 INC RDX CMP RCX,0x20 JNZ 0x001696e8 AND SIL,0x7 MOV ECX,ESI SHR RAX,CL POP RBP RET
ulong get_wval_limb(long param_1,ulong param_2,long param_3) { ulong uVar1; long lVar2; long lVar3; byte *pbVar4; long lVar5; pbVar4 = (byte *)(param_1 + (param_2 >> 3)); lVar3 = (param_2 >> 3) - ((param_2 + param_3) - 1 >> 3); lVar5 = -1; lVar2 = 0; uVar1 = 0; do { uVar1 = uVar1 | (ulong)((uint)lVar5 & (uint)*pbVar4) << ((byte)lVar2 & 0x3f); lVar5 = lVar3 >> 0x3f; pbVar4 = pbVar4 + -lVar5; lVar2 = lVar2 + 8; lVar3 = lVar3 + 1; } while (lVar2 != 0x20); return uVar1 >> ((byte)param_2 & 7); }
39,832
my_rename_with_symlink
eloqsql/mysys/my_symlink2.c
int my_rename_with_symlink(const char *from, const char *to, myf MyFlags) { #ifndef HAVE_READLINK return my_rename(from, to, MyFlags); #else char link_name[FN_REFLEN], tmp_name[FN_REFLEN]; int was_symlink= (!my_disable_symlinks && !my_readlink(link_name, from, MYF(0))); int result=0; int name_is_different; DBUG_ENTER("my_rename_with_symlink"); if (!was_symlink) DBUG_RETURN(my_rename(from, to, MyFlags)); /* Change filename that symlink pointed to */ strmov(tmp_name, to); fn_same(tmp_name,link_name,1); /* Copy dir */ name_is_different= strcmp(link_name, tmp_name); if (name_is_different && !access(tmp_name, F_OK)) { my_errno= EEXIST; if (MyFlags & MY_WME) my_error(EE_CANTCREATEFILE, MYF(0), tmp_name, EEXIST); DBUG_RETURN(1); } /* Create new symlink */ if (my_symlink(tmp_name, to, MyFlags)) DBUG_RETURN(1); /* Rename symlinked file if the base name didn't change. This can happen if you use this function where 'from' and 'to' has the same basename and different directories. */ if (name_is_different && my_rename(link_name, tmp_name, MyFlags)) { int save_errno=my_errno; my_delete(to, MyFlags); /* Remove created symlink */ my_errno=save_errno; DBUG_RETURN(1); } /* Remove original symlink */ if (my_delete(from, MyFlags)) { int save_errno=my_errno; /* Remove created link */ my_delete(to, MyFlags); /* Rename file back */ if (strcmp(link_name, tmp_name)) (void) my_rename(tmp_name, link_name, MyFlags); my_errno=save_errno; result= 1; } DBUG_RETURN(result); #endif /* HAVE_READLINK */ }
O0
c
my_rename_with_symlink: pushq %rbp movq %rsp, %rbp subq $0x460, %rsp # imm = 0x460 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x420(%rbp) movq %rsi, -0x428(%rbp) movq %rdx, -0x430(%rbp) xorl %eax, %eax leaq 0xb8d886(%rip), %rcx # 0xc82f6c cmpb $0x0, (%rcx) movb %al, -0x445(%rbp) jne 0xf5716 leaq -0x210(%rbp), %rdi movq -0x420(%rbp), %rsi xorl %eax, %eax movl %eax, %edx callq 0xf4e20 cmpl $0x0, %eax setne %al xorb $-0x1, %al movb %al, -0x445(%rbp) movb -0x445(%rbp), %al andb $0x1, %al movzbl %al, %eax movl %eax, -0x434(%rbp) movl $0x0, -0x438(%rbp) cmpl $0x0, -0x434(%rbp) jne 0xf5761 jmp 0xf573c movq -0x420(%rbp), %rdi movq -0x428(%rbp), %rsi movq -0x430(%rbp), %rdx callq 0x103720 movl %eax, -0x414(%rbp) jmp 0xf5945 leaq -0x410(%rbp), %rdi movq -0x428(%rbp), %rsi callq 0x2a710 leaq -0x410(%rbp), %rdi leaq -0x210(%rbp), %rsi movl $0x1, %edx callq 0x103100 leaq -0x210(%rbp), %rdi leaq -0x410(%rbp), %rsi callq 0x2a640 movl %eax, -0x43c(%rbp) cmpl $0x0, -0x43c(%rbp) je 0xf580a leaq -0x410(%rbp), %rdi xorl %esi, %esi callq 0x2a0e0 cmpl $0x0, %eax jne 0xf580a callq 0xf6060 movl $0x11, (%rax) movq -0x430(%rbp), %rax andq $0x10, %rax cmpq $0x0, %rax je 0xf57f9 leaq -0x410(%rbp), %rdx movl $0x1, %edi xorl %eax, %eax movl %eax, %esi movl $0x11, %ecx movb $0x0, %al callq 0xef890 jmp 0xf57fb movl $0x1, -0x414(%rbp) jmp 0xf5945 leaq -0x410(%rbp), %rdi movq -0x428(%rbp), %rsi movq -0x430(%rbp), %rdx callq 0xf4ef0 cmpl $0x0, %eax je 0xf583a jmp 0xf582b movl $0x1, -0x414(%rbp) jmp 0xf5945 cmpl $0x0, -0x43c(%rbp) je 0xf58aa leaq -0x210(%rbp), %rdi leaq -0x410(%rbp), %rsi movq -0x430(%rbp), %rdx callq 0x103720 cmpl $0x0, %eax je 0xf58aa callq 0xf6060 movl (%rax), %eax movl %eax, -0x440(%rbp) movq -0x428(%rbp), %rdi movq -0x430(%rbp), %rsi callq 0xef4a0 movl -0x440(%rbp), %eax movl %eax, -0x44c(%rbp) callq 0xf6060 movl -0x44c(%rbp), %ecx movl %ecx, (%rax) movl $0x1, -0x414(%rbp) jmp 0xf5945 movq -0x420(%rbp), %rdi movq -0x430(%rbp), %rsi callq 0xef4a0 cmpl $0x0, %eax je 0xf5937 callq 0xf6060 movl (%rax), %eax movl %eax, -0x444(%rbp) movq -0x428(%rbp), %rdi movq -0x430(%rbp), %rsi callq 0xef4a0 leaq -0x210(%rbp), %rdi leaq -0x410(%rbp), %rsi callq 0x2a640 cmpl $0x0, %eax je 0xf5914 leaq -0x410(%rbp), %rdi leaq -0x210(%rbp), %rsi movq -0x430(%rbp), %rdx callq 0x103720 movl -0x444(%rbp), %eax movl %eax, -0x450(%rbp) callq 0xf6060 movl -0x450(%rbp), %ecx movl %ecx, (%rax) movl $0x1, -0x438(%rbp) jmp 0xf5939 movl -0x438(%rbp), %eax movl %eax, -0x414(%rbp) movl -0x414(%rbp), %eax movl %eax, -0x454(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0xf5972 movl -0x454(%rbp), %eax addq $0x460, %rsp # imm = 0x460 popq %rbp retq callq 0x2a250 nopw (%rax,%rax)
my_rename_with_symlink: push rbp mov rbp, rsp sub rsp, 460h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_420], rdi mov [rbp+var_428], rsi mov [rbp+var_430], rdx xor eax, eax lea rcx, my_disable_symlinks cmp byte ptr [rcx], 0 mov [rbp+var_445], al jnz short loc_F5716 lea rdi, [rbp+var_210] mov rsi, [rbp+var_420] xor eax, eax mov edx, eax call my_readlink cmp eax, 0 setnz al xor al, 0FFh mov [rbp+var_445], al loc_F5716: mov al, [rbp+var_445] and al, 1 movzx eax, al mov [rbp+var_434], eax mov [rbp+var_438], 0 cmp [rbp+var_434], 0 jnz short loc_F5761 jmp short $+2 loc_F573C: mov rdi, [rbp+var_420] mov rsi, [rbp+var_428] mov rdx, [rbp+var_430] call my_rename mov [rbp+var_414], eax jmp loc_F5945 loc_F5761: lea rdi, [rbp+var_410] mov rsi, [rbp+var_428] call _stpcpy lea rdi, [rbp+var_410] lea rsi, [rbp+var_210] mov edx, 1 call fn_same lea rdi, [rbp+var_210] lea rsi, [rbp+var_410] call _strcmp mov [rbp+var_43C], eax cmp [rbp+var_43C], 0 jz short loc_F580A lea rdi, [rbp+var_410] xor esi, esi call _access cmp eax, 0 jnz short loc_F580A call _my_thread_var mov dword ptr [rax], 11h mov rax, [rbp+var_430] and rax, 10h cmp rax, 0 jz short loc_F57F9 lea rdx, [rbp+var_410] mov edi, 1 xor eax, eax mov esi, eax mov ecx, 11h mov al, 0 call my_error loc_F57F9: jmp short $+2 loc_F57FB: mov [rbp+var_414], 1 jmp loc_F5945 loc_F580A: lea rdi, [rbp+var_410] mov rsi, [rbp+var_428] mov rdx, [rbp+var_430] call my_symlink cmp eax, 0 jz short loc_F583A jmp short $+2 loc_F582B: mov [rbp+var_414], 1 jmp loc_F5945 loc_F583A: cmp [rbp+var_43C], 0 jz short loc_F58AA lea rdi, [rbp+var_210] lea rsi, [rbp+var_410] mov rdx, [rbp+var_430] call my_rename cmp eax, 0 jz short loc_F58AA call _my_thread_var mov eax, [rax] mov [rbp+var_440], eax mov rdi, [rbp+var_428] mov rsi, [rbp+var_430] call my_delete mov eax, [rbp+var_440] mov [rbp+var_44C], eax call _my_thread_var mov ecx, [rbp+var_44C] mov [rax], ecx mov [rbp+var_414], 1 jmp loc_F5945 loc_F58AA: mov rdi, [rbp+var_420] mov rsi, [rbp+var_430] call my_delete cmp eax, 0 jz short loc_F5937 call _my_thread_var mov eax, [rax] mov [rbp+var_444], eax mov rdi, [rbp+var_428] mov rsi, [rbp+var_430] call my_delete lea rdi, [rbp+var_210] lea rsi, [rbp+var_410] call _strcmp cmp eax, 0 jz short loc_F5914 lea rdi, [rbp+var_410] lea rsi, [rbp+var_210] mov rdx, [rbp+var_430] call my_rename loc_F5914: mov eax, [rbp+var_444] mov [rbp+var_450], eax call _my_thread_var mov ecx, [rbp+var_450] mov [rax], ecx mov [rbp+var_438], 1 loc_F5937: jmp short $+2 loc_F5939: mov eax, [rbp+var_438] mov [rbp+var_414], eax loc_F5945: mov eax, [rbp+var_414] mov [rbp+var_454], eax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_F5972 mov eax, [rbp+var_454] add rsp, 460h pop rbp retn loc_F5972: call ___stack_chk_fail
long long my_rename_with_symlink(long long a1, const char *a2, long long a3) { char *v3; // rdi const char *v4; // rsi char v6; // [rsp+1Bh] [rbp-445h] int v7; // [rsp+1Ch] [rbp-444h] int v8; // [rsp+20h] [rbp-440h] int v9; // [rsp+24h] [rbp-43Ch] unsigned int v10; // [rsp+28h] [rbp-438h] char v13[512]; // [rsp+50h] [rbp-410h] BYREF char v14[520]; // [rsp+250h] [rbp-210h] BYREF unsigned long long v15; // [rsp+458h] [rbp-8h] v15 = __readfsqword(0x28u); v6 = 0; if ( !my_disable_symlinks ) v6 = ~((unsigned int)my_readlink(v14, a1, 0) != 0); v10 = 0; if ( (v6 & 1) != 0 ) { stpcpy(v13, a2); fn_same(v13, v14, 1LL); v9 = strcmp(v14, v13); if ( !v9 || (unsigned int)access(v13, 0LL) ) { if ( (unsigned int)my_symlink((long long)v13, a2, a3) ) { return 1; } else if ( v9 && (unsigned int)my_rename(v14, v13, a3) ) { v8 = *(_DWORD *)my_thread_var(v14, v13); my_delete((long long)a2, (const char *)a3); *(_DWORD *)my_thread_var(a2, (const char *)a3) = v8; return 1; } else { if ( (unsigned int)my_delete(a1, (const char *)a3) ) { v7 = *(_DWORD *)my_thread_var(a1, (const char *)a3); my_delete((long long)a2, (const char *)a3); v3 = v14; v4 = v13; if ( (unsigned int)strcmp(v14, v13) ) { v3 = v13; v4 = v14; my_rename(v13, v14, a3); } *(_DWORD *)my_thread_var(v3, v4) = v7; return 1; } return v10; } } else { *(_DWORD *)my_thread_var(v13, 0LL) = 17; if ( (a3 & 0x10) != 0 ) my_error(1u, 0LL, v13, 17LL); return 1; } } else { return (unsigned int)my_rename(a1, a2, a3); } }
my_rename_with_symlink: PUSH RBP MOV RBP,RSP SUB RSP,0x460 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x420],RDI MOV qword ptr [RBP + -0x428],RSI MOV qword ptr [RBP + -0x430],RDX XOR EAX,EAX LEA RCX,[0xd82f6c] CMP byte ptr [RCX],0x0 MOV byte ptr [RBP + -0x445],AL JNZ 0x001f5716 LEA RDI,[RBP + -0x210] MOV RSI,qword ptr [RBP + -0x420] XOR EAX,EAX MOV EDX,EAX CALL 0x001f4e20 CMP EAX,0x0 SETNZ AL XOR AL,0xff MOV byte ptr [RBP + -0x445],AL LAB_001f5716: MOV AL,byte ptr [RBP + -0x445] AND AL,0x1 MOVZX EAX,AL MOV dword ptr [RBP + -0x434],EAX MOV dword ptr [RBP + -0x438],0x0 CMP dword ptr [RBP + -0x434],0x0 JNZ 0x001f5761 JMP 0x001f573c LAB_001f573c: MOV RDI,qword ptr [RBP + -0x420] MOV RSI,qword ptr [RBP + -0x428] MOV RDX,qword ptr [RBP + -0x430] CALL 0x00203720 MOV dword ptr [RBP + -0x414],EAX JMP 0x001f5945 LAB_001f5761: LEA RDI,[RBP + -0x410] MOV RSI,qword ptr [RBP + -0x428] CALL 0x0012a710 LEA RDI,[RBP + -0x410] LEA RSI,[RBP + -0x210] MOV EDX,0x1 CALL 0x00203100 LEA RDI,[RBP + -0x210] LEA RSI,[RBP + -0x410] CALL 0x0012a640 MOV dword ptr [RBP + -0x43c],EAX CMP dword ptr [RBP + -0x43c],0x0 JZ 0x001f580a LEA RDI,[RBP + -0x410] XOR ESI,ESI CALL 0x0012a0e0 CMP EAX,0x0 JNZ 0x001f580a CALL 0x001f6060 MOV dword ptr [RAX],0x11 MOV RAX,qword ptr [RBP + -0x430] AND RAX,0x10 CMP RAX,0x0 JZ 0x001f57f9 LEA RDX,[RBP + -0x410] MOV EDI,0x1 XOR EAX,EAX MOV ESI,EAX MOV ECX,0x11 MOV AL,0x0 CALL 0x001ef890 LAB_001f57f9: JMP 0x001f57fb LAB_001f57fb: MOV dword ptr [RBP + -0x414],0x1 JMP 0x001f5945 LAB_001f580a: LEA RDI,[RBP + -0x410] MOV RSI,qword ptr [RBP + -0x428] MOV RDX,qword ptr [RBP + -0x430] CALL 0x001f4ef0 CMP EAX,0x0 JZ 0x001f583a JMP 0x001f582b LAB_001f582b: MOV dword ptr [RBP + -0x414],0x1 JMP 0x001f5945 LAB_001f583a: CMP dword ptr [RBP + -0x43c],0x0 JZ 0x001f58aa LEA RDI,[RBP + -0x210] LEA RSI,[RBP + -0x410] MOV RDX,qword ptr [RBP + -0x430] CALL 0x00203720 CMP EAX,0x0 JZ 0x001f58aa CALL 0x001f6060 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x440],EAX MOV RDI,qword ptr [RBP + -0x428] MOV RSI,qword ptr [RBP + -0x430] CALL 0x001ef4a0 MOV EAX,dword ptr [RBP + -0x440] MOV dword ptr [RBP + -0x44c],EAX CALL 0x001f6060 MOV ECX,dword ptr [RBP + -0x44c] MOV dword ptr [RAX],ECX MOV dword ptr [RBP + -0x414],0x1 JMP 0x001f5945 LAB_001f58aa: MOV RDI,qword ptr [RBP + -0x420] MOV RSI,qword ptr [RBP + -0x430] CALL 0x001ef4a0 CMP EAX,0x0 JZ 0x001f5937 CALL 0x001f6060 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x444],EAX MOV RDI,qword ptr [RBP + -0x428] MOV RSI,qword ptr [RBP + -0x430] CALL 0x001ef4a0 LEA RDI,[RBP + -0x210] LEA RSI,[RBP + -0x410] CALL 0x0012a640 CMP EAX,0x0 JZ 0x001f5914 LEA RDI,[RBP + -0x410] LEA RSI,[RBP + -0x210] MOV RDX,qword ptr [RBP + -0x430] CALL 0x00203720 LAB_001f5914: MOV EAX,dword ptr [RBP + -0x444] MOV dword ptr [RBP + -0x450],EAX CALL 0x001f6060 MOV ECX,dword ptr [RBP + -0x450] MOV dword ptr [RAX],ECX MOV dword ptr [RBP + -0x438],0x1 LAB_001f5937: JMP 0x001f5939 LAB_001f5939: MOV EAX,dword ptr [RBP + -0x438] MOV dword ptr [RBP + -0x414],EAX LAB_001f5945: MOV EAX,dword ptr [RBP + -0x414] MOV dword ptr [RBP + -0x454],EAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x001f5972 MOV EAX,dword ptr [RBP + -0x454] ADD RSP,0x460 POP RBP RET LAB_001f5972: CALL 0x0012a250
int4 my_rename_with_symlink(int8 param_1,char *param_2,ulong param_3) { int4 uVar1; int iVar2; int iVar3; int4 *puVar4; long in_FS_OFFSET; bool bVar5; int4 local_440; int4 local_41c; char local_418 [512]; char local_218 [520]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); bVar5 = false; if (my_disable_symlinks == '\0') { iVar2 = my_readlink(local_218,param_1,0); bVar5 = iVar2 == 0; } local_440 = 0; if (bVar5) { stpcpy(local_418,param_2); fn_same(local_418,local_218,1); iVar2 = strcmp(local_218,local_418); if (iVar2 != 0) { iVar3 = access(local_418,0); if (iVar3 == 0) { puVar4 = (int4 *)_my_thread_var(); *puVar4 = 0x11; if ((param_3 & 0x10) != 0) { my_error(1,0,local_418,0x11); } local_41c = 1; goto LAB_001f5945; } } iVar3 = my_symlink(local_418,param_2,param_3); if (iVar3 == 0) { if (iVar2 != 0) { iVar2 = my_rename(local_218,local_418,param_3); if (iVar2 != 0) { puVar4 = (int4 *)_my_thread_var(); uVar1 = *puVar4; my_delete(param_2,param_3); puVar4 = (int4 *)_my_thread_var(); *puVar4 = uVar1; local_41c = 1; goto LAB_001f5945; } } iVar2 = my_delete(param_1,param_3); if (iVar2 != 0) { puVar4 = (int4 *)_my_thread_var(); uVar1 = *puVar4; my_delete(param_2,param_3); iVar2 = strcmp(local_218,local_418); if (iVar2 != 0) { my_rename(local_418,local_218,param_3); } puVar4 = (int4 *)_my_thread_var(); *puVar4 = uVar1; local_440 = 1; } local_41c = local_440; } else { local_41c = 1; } } else { local_41c = my_rename(param_1,param_2,param_3); } LAB_001f5945: if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return local_41c; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
39,833
Cache::initCache()
DanielDanyang[P]CSC3050-2025-Spring-Project-4/src/Cache.cpp
void Cache::initCache() { this->blocks = std::vector<Block>(policy.blockNum); for (uint32_t i = 0; i < this->blocks.size(); ++i) { Block &b = this->blocks[i]; b.valid = false; b.modified = false; b.size = policy.blockSize; b.tag = 0; b.id = i / policy.associativity; b.lastReference = 0; b.data = std::vector<uint8_t>(b.size); } }
O0
cpp
Cache::initCache(): subq $0x98, %rsp movq %rdi, 0x90(%rsp) movq 0x90(%rsp), %rax movq %rax, 0x20(%rsp) movl 0x40(%rax), %eax movq %rax, 0x28(%rsp) leaq 0x77(%rsp), %rdi movq %rdi, 0x30(%rsp) callq 0x5680 movq 0x28(%rsp), %rsi movq 0x30(%rsp), %rdx leaq 0x78(%rsp), %rdi callq 0x5690 jmp 0x43f9 movq 0x20(%rsp), %rdi addq $0x50, %rdi leaq 0x78(%rsp), %rsi callq 0x5710 leaq 0x78(%rsp), %rdi callq 0x55c0 leaq 0x77(%rsp), %rdi callq 0x5750 movl $0x0, 0x60(%rsp) movq 0x20(%rsp), %rdi movl 0x60(%rsp), %eax movq %rax, 0x18(%rsp) addq $0x50, %rdi callq 0x5660 movq %rax, %rcx movq 0x18(%rsp), %rax cmpq %rcx, %rax jae 0x4554 movq 0x20(%rsp), %rdi addq $0x50, %rdi movl 0x60(%rsp), %eax movl %eax, %esi callq 0x5620 movq 0x20(%rsp), %rcx movq %rax, 0x58(%rsp) movq 0x58(%rsp), %rax movb $0x0, (%rax) movq 0x58(%rsp), %rax movb $0x0, 0x1(%rax) movl 0x3c(%rcx), %edx movq 0x58(%rsp), %rax movl %edx, 0xc(%rax) movq 0x58(%rsp), %rax movl $0x0, 0x4(%rax) movl 0x60(%rsp), %eax movl 0x44(%rcx), %ecx xorl %edx, %edx divl %ecx movl %eax, %ecx movq 0x58(%rsp), %rax movl %ecx, 0x8(%rax) movq 0x58(%rsp), %rax movl $0x0, 0x10(%rax) movq 0x58(%rsp), %rax movl 0xc(%rax), %eax movq %rax, 0x8(%rsp) leaq 0x3f(%rsp), %rdi movq %rdi, 0x10(%rsp) callq 0x5760 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx leaq 0x40(%rsp), %rdi callq 0x5770 jmp 0x44e9 movq 0x58(%rsp), %rdi addq $0x18, %rdi leaq 0x40(%rsp), %rsi callq 0x57f0 leaq 0x40(%rsp), %rdi callq 0x5830 leaq 0x3f(%rsp), %rdi callq 0x5890 movl 0x60(%rsp), %eax addl $0x1, %eax movl %eax, 0x60(%rsp) jmp 0x4428 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x68(%rsp) movl %eax, 0x64(%rsp) leaq 0x77(%rsp), %rdi callq 0x5750 jmp 0x455c movq %rax, %rcx movl %edx, %eax movq %rcx, 0x68(%rsp) movl %eax, 0x64(%rsp) leaq 0x3f(%rsp), %rdi callq 0x5890 jmp 0x455c addq $0x98, %rsp retq movq 0x68(%rsp), %rdi callq 0x22c0 nopw %cs:(%rax,%rax)
_ZN5Cache9initCacheEv: sub rsp, 98h mov [rsp+98h+var_8], rdi mov rax, [rsp+98h+var_8] mov [rsp+98h+var_78], rax mov eax, [rax+40h] mov [rsp+98h+var_70], rax lea rdi, [rsp+98h+var_21] mov [rsp+98h+var_68], rdi call _ZNSaIN5Cache5BlockEEC2Ev; std::allocator<Cache::Block>::allocator(void) mov rsi, [rsp+98h+var_70] mov rdx, [rsp+98h+var_68] lea rdi, [rsp+98h+var_20] call _ZNSt6vectorIN5Cache5BlockESaIS1_EEC2EmRKS2_; std::vector<Cache::Block>::vector(ulong,std::allocator<Cache::Block> const&) jmp short $+2 loc_43F9: mov rdi, [rsp+98h+var_78] add rdi, 50h ; 'P' lea rsi, [rsp+98h+var_20] call _ZNSt6vectorIN5Cache5BlockESaIS1_EEaSEOS3_; std::vector<Cache::Block>::operator=(std::vector<Cache::Block>&&) lea rdi, [rsp+98h+var_20] call _ZNSt6vectorIN5Cache5BlockESaIS1_EED2Ev; std::vector<Cache::Block>::~vector() lea rdi, [rsp+98h+var_21] call _ZNSaIN5Cache5BlockEED2Ev; std::allocator<Cache::Block>::~allocator() mov [rsp+98h+var_38], 0 loc_4428: mov rdi, [rsp+98h+var_78] mov eax, [rsp+98h+var_38] mov [rsp+98h+var_80], rax add rdi, 50h ; 'P' call _ZNKSt6vectorIN5Cache5BlockESaIS1_EE4sizeEv; std::vector<Cache::Block>::size(void) mov rcx, rax mov rax, [rsp+98h+var_80] cmp rax, rcx jnb loc_4554 mov rdi, [rsp+98h+var_78] add rdi, 50h ; 'P' mov eax, [rsp+98h+var_38] mov esi, eax call _ZNSt6vectorIN5Cache5BlockESaIS1_EEixEm; std::vector<Cache::Block>::operator[](ulong) mov rcx, [rsp+98h+var_78] mov [rsp+98h+var_40], rax mov rax, [rsp+98h+var_40] mov byte ptr [rax], 0 mov rax, [rsp+98h+var_40] mov byte ptr [rax+1], 0 mov edx, [rcx+3Ch] mov rax, [rsp+98h+var_40] mov [rax+0Ch], edx mov rax, [rsp+98h+var_40] mov dword ptr [rax+4], 0 mov eax, [rsp+98h+var_38] mov ecx, [rcx+44h] xor edx, edx div ecx mov ecx, eax mov rax, [rsp+98h+var_40] mov [rax+8], ecx mov rax, [rsp+98h+var_40] mov dword ptr [rax+10h], 0 mov rax, [rsp+98h+var_40] mov eax, [rax+0Ch] mov [rsp+98h+var_90], rax lea rdi, [rsp+98h+var_59] mov [rsp+98h+var_88], rdi call _ZNSaIhEC2Ev; std::allocator<uchar>::allocator(void) mov rsi, [rsp+98h+var_90] mov rdx, [rsp+98h+var_88] lea rdi, [rsp+98h+var_58] call _ZNSt6vectorIhSaIhEEC2EmRKS0_; std::vector<uchar>::vector(ulong,std::allocator<uchar> const&) jmp short $+2 loc_44E9: mov rdi, [rsp+98h+var_40] add rdi, 18h lea rsi, [rsp+98h+var_58] call _ZNSt6vectorIhSaIhEEaSEOS1_; std::vector<uchar>::operator=(std::vector<uchar>&&) lea rdi, [rsp+98h+var_58] call _ZNSt6vectorIhSaIhEED2Ev; std::vector<uchar>::~vector() lea rdi, [rsp+98h+var_59] call _ZNSaIhED2Ev; std::allocator<uchar>::~allocator() mov eax, [rsp+98h+var_38] add eax, 1 mov [rsp+98h+var_38], eax jmp loc_4428 mov rcx, rax mov eax, edx mov [rsp+arg_60], rcx mov [rsp+arg_5C], eax lea rdi, [rsp+arg_6F] call _ZNSaIN5Cache5BlockEED2Ev; std::allocator<Cache::Block>::~allocator() jmp short loc_455C mov rcx, rax mov eax, edx mov [rsp+arg_60], rcx mov [rsp+arg_5C], eax lea rdi, [rsp+arg_37] call _ZNSaIhED2Ev; std::allocator<uchar>::~allocator() jmp short loc_455C loc_4554: add rsp, 98h retn loc_455C: mov rdi, [rsp+arg_60] call __Unwind_Resume
unsigned long long Cache::initCache(Cache *this) { int v1; // ecx int v2; // r8d int v3; // r9d unsigned long long v4; // rcx unsigned long long result; // rax long long v6; // rsi unsigned int v7; // ecx unsigned int v8; // edx int v9; // ecx int v10; // r8d int v11; // r9d long long v12; // [rsp+0h] [rbp-98h] int v13; // [rsp+8h] [rbp-90h] unsigned long long v14; // [rsp+18h] [rbp-80h] int v15; // [rsp+28h] [rbp-70h] char v16; // [rsp+3Fh] [rbp-59h] BYREF _BYTE v17[24]; // [rsp+40h] [rbp-58h] BYREF long long v18; // [rsp+58h] [rbp-40h] unsigned int i; // [rsp+60h] [rbp-38h] char v20; // [rsp+77h] [rbp-21h] BYREF _BYTE v21[24]; // [rsp+78h] [rbp-20h] BYREF Cache *v22; // [rsp+90h] [rbp-8h] v22 = this; v15 = *((_DWORD *)this + 16); std::allocator<Cache::Block>::allocator(); std::vector<Cache::Block>::vector((unsigned int)v21, v15, (unsigned int)&v20, v1, v2, v3); std::vector<Cache::Block>::operator=((char *)this + 80, v21); std::vector<Cache::Block>::~vector(v21); std::allocator<Cache::Block>::~allocator(&v20); for ( i = 0; ; ++i ) { v14 = i; v4 = std::vector<Cache::Block>::size((char *)this + 80); result = v14; if ( v14 >= v4 ) break; v6 = i; v18 = std::vector<Cache::Block>::operator[]((char *)this + 80, i); *(_BYTE *)v18 = 0; *(_BYTE *)(v18 + 1) = 0; *(_DWORD *)(v18 + 12) = *((_DWORD *)this + 15); *(_DWORD *)(v18 + 4) = 0; v7 = *((_DWORD *)this + 17); v8 = i % v7; *(_DWORD *)(v18 + 8) = i / v7; *(_DWORD *)(v18 + 16) = 0; v13 = *(_DWORD *)(v18 + 12); std::allocator<unsigned char>::allocator(&v16, v6, v8); std::vector<unsigned char>::vector( (unsigned int)v17, v13, (unsigned int)&v16, v9, v10, v11, v12, v13, (long long)&v16); std::vector<unsigned char>::operator=(v18 + 24, v17); std::vector<unsigned char>::~vector(v17); std::allocator<unsigned char>::~allocator(&v16); } return result; }
initCache: SUB RSP,0x98 MOV qword ptr [RSP + 0x90],RDI MOV RAX,qword ptr [RSP + 0x90] MOV qword ptr [RSP + 0x20],RAX MOV EAX,dword ptr [RAX + 0x40] MOV qword ptr [RSP + 0x28],RAX LEA RDI,[RSP + 0x77] MOV qword ptr [RSP + 0x30],RDI CALL 0x00105680 MOV RSI,qword ptr [RSP + 0x28] MOV RDX,qword ptr [RSP + 0x30] LAB_001043ed: LEA RDI,[RSP + 0x78] CALL 0x00105690 JMP 0x001043f9 LAB_001043f9: MOV RDI,qword ptr [RSP + 0x20] ADD RDI,0x50 LEA RSI,[RSP + 0x78] CALL 0x00105710 LEA RDI,[RSP + 0x78] CALL 0x001055c0 LEA RDI,[RSP + 0x77] CALL 0x00105750 MOV dword ptr [RSP + 0x60],0x0 LAB_00104428: MOV RDI,qword ptr [RSP + 0x20] MOV EAX,dword ptr [RSP + 0x60] MOV qword ptr [RSP + 0x18],RAX ADD RDI,0x50 CALL 0x00105660 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x18] CMP RAX,RCX JNC 0x00104554 MOV RDI,qword ptr [RSP + 0x20] ADD RDI,0x50 MOV EAX,dword ptr [RSP + 0x60] MOV ESI,EAX CALL 0x00105620 MOV RCX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x58],RAX MOV RAX,qword ptr [RSP + 0x58] MOV byte ptr [RAX],0x0 MOV RAX,qword ptr [RSP + 0x58] MOV byte ptr [RAX + 0x1],0x0 MOV EDX,dword ptr [RCX + 0x3c] MOV RAX,qword ptr [RSP + 0x58] MOV dword ptr [RAX + 0xc],EDX MOV RAX,qword ptr [RSP + 0x58] MOV dword ptr [RAX + 0x4],0x0 MOV EAX,dword ptr [RSP + 0x60] MOV ECX,dword ptr [RCX + 0x44] XOR EDX,EDX DIV ECX MOV ECX,EAX MOV RAX,qword ptr [RSP + 0x58] MOV dword ptr [RAX + 0x8],ECX MOV RAX,qword ptr [RSP + 0x58] MOV dword ptr [RAX + 0x10],0x0 MOV RAX,qword ptr [RSP + 0x58] MOV EAX,dword ptr [RAX + 0xc] MOV qword ptr [RSP + 0x8],RAX LEA RDI,[RSP + 0x3f] MOV qword ptr [RSP + 0x10],RDI CALL 0x00105760 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] LAB_001044dd: LEA RDI,[RSP + 0x40] CALL 0x00105770 LAB_001044e7: JMP 0x001044e9 LAB_001044e9: MOV RDI,qword ptr [RSP + 0x58] ADD RDI,0x18 LEA RSI,[RSP + 0x40] CALL 0x001057f0 LEA RDI,[RSP + 0x40] CALL 0x00105830 LEA RDI,[RSP + 0x3f] CALL 0x00105890 MOV EAX,dword ptr [RSP + 0x60] ADD EAX,0x1 MOV dword ptr [RSP + 0x60],EAX JMP 0x00104428 LAB_00104554: ADD RSP,0x98 RET
/* Cache::initCache() */ void __thiscall Cache::initCache(Cache *this) { uint uVar1; ulong uVar2; ulong uVar3; allocator<unsigned_char> local_59; vector<unsigned_char,std::allocator<unsigned_char>> local_58 [24]; int1 *local_40; uint local_38; allocator<Cache::Block> local_21; vector<Cache::Block,std::allocator<Cache::Block>> local_20 [24]; Cache *local_8; uVar1 = *(uint *)(this + 0x40); local_8 = this; std::allocator<Cache::Block>::allocator(&local_21); /* try { // try from 001043ed to 001043f6 has its CatchHandler @ 00104520 */ std::vector<Cache::Block,std::allocator<Cache::Block>>::vector (local_20,(ulong)uVar1,(allocator *)&local_21); std::vector<Cache::Block,std::allocator<Cache::Block>>::operator= ((vector<Cache::Block,std::allocator<Cache::Block>> *)(this + 0x50),(vector *)local_20); std::vector<Cache::Block,std::allocator<Cache::Block>>::~vector(local_20); std::allocator<Cache::Block>::~allocator(&local_21); local_38 = 0; while( true ) { uVar2 = (ulong)local_38; uVar3 = std::vector<Cache::Block,std::allocator<Cache::Block>>::size ((vector<Cache::Block,std::allocator<Cache::Block>> *)(this + 0x50)); if (uVar3 <= uVar2) break; local_40 = (int1 *) std::vector<Cache::Block,std::allocator<Cache::Block>>::operator[] ((vector<Cache::Block,std::allocator<Cache::Block>> *)(this + 0x50), (ulong)local_38); *local_40 = 0; local_40[1] = 0; *(int4 *)(local_40 + 0xc) = *(int4 *)(this + 0x3c); *(int4 *)(local_40 + 4) = 0; *(uint *)(local_40 + 8) = local_38 / *(uint *)(this + 0x44); *(int4 *)(local_40 + 0x10) = 0; uVar1 = *(uint *)(local_40 + 0xc); std::allocator<unsigned_char>::allocator(&local_59); /* try { // try from 001044dd to 001044e6 has its CatchHandler @ 0010453a */ std::vector<unsigned_char,std::allocator<unsigned_char>>::vector (local_58,(ulong)uVar1,(allocator *)&local_59); std::vector<unsigned_char,std::allocator<unsigned_char>>::operator= ((vector<unsigned_char,std::allocator<unsigned_char>> *)(local_40 + 0x18), (vector *)local_58); std::vector<unsigned_char,std::allocator<unsigned_char>>::~vector(local_58); std::allocator<unsigned_char>::~allocator(&local_59); local_38 = local_38 + 1; } return; }
39,834
Cache::initCache()
DanielDanyang[P]CSC3050-2025-Spring-Project-4/src/Cache.cpp
void Cache::initCache() { this->blocks = std::vector<Block>(policy.blockNum); for (uint32_t i = 0; i < this->blocks.size(); ++i) { Block &b = this->blocks[i]; b.valid = false; b.modified = false; b.size = policy.blockSize; b.tag = 0; b.id = i / policy.associativity; b.lastReference = 0; b.data = std::vector<uint8_t>(b.size); } }
O1
cpp
Cache::initCache(): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rdi, %rbx movl 0x40(%rdi), %esi leaq 0x30(%rsp), %r14 leaq 0xf(%rsp), %rdx movq %r14, %rdi callq 0x4266 xorps %xmm0, %xmm0 leaq 0x10(%rsp), %rdi movaps %xmm0, (%rdi) movq $0x0, 0x10(%rdi) movups 0x50(%rbx), %xmm0 movq 0x60(%rbx), %rax movaps (%r14), %xmm1 movups %xmm1, 0x50(%rbx) movq 0x10(%r14), %rcx movq %rcx, 0x60(%rbx) movq 0x10(%rdi), %rcx movq %rax, 0x10(%rdi) movaps (%rdi), %xmm1 movaps %xmm0, (%rdi) movaps %xmm1, (%r14) movq %rcx, 0x10(%r14) callq 0x4226 movq %r14, %rdi callq 0x4226 movq 0x50(%rbx), %r14 cmpq %r14, 0x58(%rbx) je 0x3849 xorl %r13d, %r13d leaq 0x30(%rsp), %r15 xorl %eax, %eax xorl %r12d, %r12d leaq (%rax,%rax,2), %rbp shlq $0x4, %rbp movw $0x0, (%r14,%rbp) movl 0x3c(%rbx), %eax movl %eax, 0xc(%r14,%rbp) movl %r13d, 0x4(%r14,%rbp) movl %r12d, %eax xorl %edx, %edx divl 0x44(%rbx) movl %eax, 0x8(%r14,%rbp) movl %r13d, 0x10(%r14,%rbp) movl 0xc(%r14,%rbp), %esi leaq 0x10(%rsp), %rdi movq %r15, %rdx callq 0x42ee movq 0x18(%r14,%rbp), %rdi movaps 0x10(%rsp), %xmm0 movups 0x20(%r14,%rbp), %xmm1 movups %xmm0, 0x18(%r14,%rbp) movq 0x20(%rsp), %rax movq %rax, 0x28(%r14,%rbp) movq %rdi, 0x10(%rsp) movups %xmm1, 0x18(%rsp) xorps %xmm0, %xmm0 movaps %xmm0, 0x10(%rsp) movq $0x0, 0x20(%rsp) testq %rdi, %rdi je 0x380e callq 0x2150 movq 0x10(%rsp), %rdi testq %rdi, %rdi je 0x381d callq 0x2150 incl %r12d movq 0x50(%rbx), %r14 movq 0x58(%rbx), %rcx subq %r14, %rcx sarq $0x4, %rcx movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB imulq %rax, %rcx movq %r12, %rax cmpq %r12, %rcx ja 0x3789 addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZN5Cache9initCacheEv: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h mov rbx, rdi mov esi, [rdi+40h] lea r14, [rsp+78h+var_48] lea rdx, [rsp+78h+var_69] mov rdi, r14 call _ZNSt6vectorIN5Cache5BlockESaIS1_EEC2EmRKS2_; std::vector<Cache::Block>::vector(ulong,std::allocator<Cache::Block> const&) xorps xmm0, xmm0 lea rdi, [rsp+78h+var_68] movaps xmmword ptr [rdi], xmm0 mov qword ptr [rdi+10h], 0 movups xmm0, xmmword ptr [rbx+50h] mov rax, [rbx+60h] movaps xmm1, xmmword ptr [r14] movups xmmword ptr [rbx+50h], xmm1 mov rcx, [r14+10h] mov [rbx+60h], rcx mov rcx, [rdi+10h] mov [rdi+10h], rax movaps xmm1, xmmword ptr [rdi] movaps xmmword ptr [rdi], xmm0 movaps xmmword ptr [r14], xmm1 mov [r14+10h], rcx call _ZNSt6vectorIN5Cache5BlockESaIS1_EED2Ev; std::vector<Cache::Block>::~vector() mov rdi, r14 call _ZNSt6vectorIN5Cache5BlockESaIS1_EED2Ev; std::vector<Cache::Block>::~vector() mov r14, [rbx+50h] cmp [rbx+58h], r14 jz loc_3849 xor r13d, r13d lea r15, [rsp+78h+var_48] xor eax, eax xor r12d, r12d loc_3789: lea rbp, [rax+rax*2] shl rbp, 4 mov word ptr [r14+rbp], 0 mov eax, [rbx+3Ch] mov [r14+rbp+0Ch], eax mov [r14+rbp+4], r13d mov eax, r12d xor edx, edx div dword ptr [rbx+44h] mov [r14+rbp+8], eax mov [r14+rbp+10h], r13d mov esi, [r14+rbp+0Ch] lea rdi, [rsp+78h+var_68] mov rdx, r15 call _ZNSt6vectorIhSaIhEEC2EmRKS0_; std::vector<uchar>::vector(ulong,std::allocator<uchar> const&) mov rdi, [r14+rbp+18h]; void * movaps xmm0, xmmword ptr [rsp+78h+var_68] movups xmm1, xmmword ptr [r14+rbp+20h] movups xmmword ptr [r14+rbp+18h], xmm0 mov rax, [rsp+78h+var_58] mov [r14+rbp+28h], rax mov [rsp+78h+var_68], rdi movups xmmword ptr [rsp+78h+var_68+8], xmm1 xorps xmm0, xmm0 movaps xmmword ptr [rsp+78h+var_68], xmm0 mov [rsp+78h+var_58], 0 test rdi, rdi jz short loc_380E call __ZdlPv; operator delete(void *) loc_380E: mov rdi, [rsp+78h+var_68]; void * test rdi, rdi jz short loc_381D call __ZdlPv; operator delete(void *) loc_381D: inc r12d mov r14, [rbx+50h] mov rcx, [rbx+58h] sub rcx, r14 sar rcx, 4 mov rax, 0AAAAAAAAAAAAAAABh imul rcx, rax mov rax, r12 cmp rcx, r12 ja loc_3789 loc_3849: add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
unsigned long long Cache::initCache(Cache *this) { __int128 v2; // xmm0 long long v3; // rax long long v4; // rcx __int128 v5; // xmm1 unsigned long long result; // rax long long v7; // r14 unsigned long long v8; // r12 long long v9; // rbp void *v10; // rdi char v11; // [rsp+Fh] [rbp-69h] BYREF void *v12[2]; // [rsp+10h] [rbp-68h] BYREF long long v13; // [rsp+20h] [rbp-58h] __int128 v14; // [rsp+30h] [rbp-48h] BYREF long long v15; // [rsp+40h] [rbp-38h] std::vector<Cache::Block>::vector(&v14, *((unsigned int *)this + 16), &v11); *(_OWORD *)v12 = 0LL; v13 = 0LL; v2 = *((_OWORD *)this + 5); v3 = *((_QWORD *)this + 12); *((_OWORD *)this + 5) = v14; *((_QWORD *)this + 12) = v15; v4 = v13; v13 = v3; v5 = *(_OWORD *)v12; *(_OWORD *)v12 = v2; v14 = v5; v15 = v4; ((void (*)(void))std::vector<Cache::Block>::~vector)(); result = std::vector<Cache::Block>::~vector(&v14); v7 = *((_QWORD *)this + 10); if ( *((_QWORD *)this + 11) != v7 ) { result = 0LL; LODWORD(v8) = 0; do { v9 = 48 * result; *(_WORD *)(v7 + v9) = 0; *(_DWORD *)(v7 + v9 + 12) = *((_DWORD *)this + 15); *(_DWORD *)(v7 + v9 + 4) = 0; *(_DWORD *)(v7 + v9 + 8) = (unsigned int)v8 / *((_DWORD *)this + 17); *(_DWORD *)(v7 + v9 + 16) = 0; std::vector<unsigned char>::vector(v12, *(unsigned int *)(v7 + 48 * result + 12), &v14); v10 = *(void **)(v7 + v9 + 24); *(_OWORD *)(v7 + v9 + 24) = *(_OWORD *)v12; *(_QWORD *)(v7 + v9 + 40) = v13; *(_OWORD *)v12 = 0LL; v13 = 0LL; if ( v10 ) operator delete(v10); if ( v12[0] ) operator delete(v12[0]); v8 = (unsigned int)(v8 + 1); v7 = *((_QWORD *)this + 10); result = v8; } while ( 0xAAAAAAAAAAAAAAABLL * ((*((_QWORD *)this + 11) - v7) >> 4) > v8 ); } return result; }
initCache: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 MOV RBX,RDI MOV ESI,dword ptr [RDI + 0x40] LEA R14,[RSP + 0x30] LEA RDX,[RSP + 0xf] MOV RDI,R14 CALL 0x00104266 XORPS XMM0,XMM0 LEA RDI,[RSP + 0x10] MOVAPS xmmword ptr [RDI],XMM0 MOV qword ptr [RDI + 0x10],0x0 MOVUPS XMM0,xmmword ptr [RBX + 0x50] MOV RAX,qword ptr [RBX + 0x60] MOVAPS XMM1,xmmword ptr [R14] MOVUPS xmmword ptr [RBX + 0x50],XMM1 MOV RCX,qword ptr [R14 + 0x10] MOV qword ptr [RBX + 0x60],RCX MOV RCX,qword ptr [RDI + 0x10] MOV qword ptr [RDI + 0x10],RAX MOVAPS XMM1,xmmword ptr [RDI] MOVAPS xmmword ptr [RDI],XMM0 MOVAPS xmmword ptr [R14],XMM1 MOV qword ptr [R14 + 0x10],RCX CALL 0x00104226 MOV RDI,R14 CALL 0x00104226 MOV R14,qword ptr [RBX + 0x50] CMP qword ptr [RBX + 0x58],R14 JZ 0x00103849 XOR R13D,R13D LEA R15,[RSP + 0x30] XOR EAX,EAX XOR R12D,R12D LAB_00103789: LEA RBP,[RAX + RAX*0x2] SHL RBP,0x4 MOV word ptr [R14 + RBP*0x1],0x0 MOV EAX,dword ptr [RBX + 0x3c] MOV dword ptr [R14 + RBP*0x1 + 0xc],EAX MOV dword ptr [R14 + RBP*0x1 + 0x4],R13D MOV EAX,R12D XOR EDX,EDX DIV dword ptr [RBX + 0x44] MOV dword ptr [R14 + RBP*0x1 + 0x8],EAX MOV dword ptr [R14 + RBP*0x1 + 0x10],R13D MOV ESI,dword ptr [R14 + RBP*0x1 + 0xc] LEA RDI,[RSP + 0x10] MOV RDX,R15 CALL 0x001042ee MOV RDI,qword ptr [R14 + RBP*0x1 + 0x18] MOVAPS XMM0,xmmword ptr [RSP + 0x10] MOVUPS XMM1,xmmword ptr [R14 + RBP*0x1 + 0x20] MOVUPS xmmword ptr [R14 + RBP*0x1 + 0x18],XMM0 MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [R14 + RBP*0x1 + 0x28],RAX MOV qword ptr [RSP + 0x10],RDI MOVUPS xmmword ptr [RSP + 0x18],XMM1 XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP + 0x10],XMM0 MOV qword ptr [RSP + 0x20],0x0 TEST RDI,RDI JZ 0x0010380e CALL 0x00102150 LAB_0010380e: MOV RDI,qword ptr [RSP + 0x10] TEST RDI,RDI JZ 0x0010381d CALL 0x00102150 LAB_0010381d: INC R12D MOV R14,qword ptr [RBX + 0x50] MOV RCX,qword ptr [RBX + 0x58] SUB RCX,R14 SAR RCX,0x4 MOV RAX,-0x5555555555555555 IMUL RCX,RAX MOV RAX,R12 CMP RCX,R12 JA 0x00103789 LAB_00103849: ADD RSP,0x48 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* Cache::initCache() */ void __thiscall Cache::initCache(Cache *this) { int8 *puVar1; void *pvVar2; ulong uVar3; long lVar4; ulong uVar5; long lVar6; void *local_68; int8 uStack_60; int8 local_58; int8 local_48; int8 uStack_40; int8 local_38; std::vector<Cache::Block,std::allocator<Cache::Block>>::vector ((ulong)&local_48,(allocator *)(ulong)*(uint *)(this + 0x40)); local_68 = *(void **)(this + 0x50); uStack_60 = *(int8 *)(this + 0x58); local_58 = *(int8 *)(this + 0x60); *(int8 *)(this + 0x50) = local_48; *(int8 *)(this + 0x58) = uStack_40; *(int8 *)(this + 0x60) = local_38; local_48 = 0; uStack_40 = 0; local_38 = 0; std::vector<Cache::Block,std::allocator<Cache::Block>>::~vector ((vector<Cache::Block,std::allocator<Cache::Block>> *)&local_68); std::vector<Cache::Block,std::allocator<Cache::Block>>::~vector ((vector<Cache::Block,std::allocator<Cache::Block>> *)&local_48); lVar6 = *(long *)(this + 0x50); if (*(long *)(this + 0x58) != lVar6) { uVar5 = 0; do { lVar4 = uVar5 * 0x30; *(int2 *)(lVar6 + lVar4) = 0; *(int4 *)(lVar6 + 0xc + lVar4) = *(int4 *)(this + 0x3c); *(int4 *)(lVar6 + 4 + lVar4) = 0; *(int *)(lVar6 + 8 + lVar4) = (int)(uVar5 / *(uint *)(this + 0x44)); *(int4 *)(lVar6 + 0x10 + lVar4) = 0; std::vector<unsigned_char,std::allocator<unsigned_char>>::vector ((ulong)&local_68,(allocator *)(ulong)*(uint *)(lVar6 + 0xc + lVar4)); pvVar2 = *(void **)(lVar6 + 0x18 + lVar4); puVar1 = (int8 *)(lVar6 + 0x18 + lVar4); *puVar1 = local_68; puVar1[1] = uStack_60; *(int8 *)(lVar6 + 0x28 + lVar4) = local_58; local_68 = (void *)0x0; uStack_60 = 0; local_58 = 0; if (pvVar2 != (void *)0x0) { operator_delete(pvVar2); } if (local_68 != (void *)0x0) { operator_delete(local_68); } uVar5 = (ulong)((int)uVar5 + 1); lVar6 = *(long *)(this + 0x50); uVar3 = (*(long *)(this + 0x58) - lVar6 >> 4) * -0x5555555555555555; } while (uVar5 <= uVar3 && uVar3 - uVar5 != 0); } return; }
39,835
Cache::initCache()
DanielDanyang[P]CSC3050-2025-Spring-Project-4/src/Cache.cpp
void Cache::initCache() { this->blocks = std::vector<Block>(policy.blockNum); for (uint32_t i = 0; i < this->blocks.size(); ++i) { Block &b = this->blocks[i]; b.valid = false; b.modified = false; b.size = policy.blockSize; b.tag = 0; b.id = i / policy.associativity; b.lastReference = 0; b.data = std::vector<uint8_t>(b.size); } }
O2
cpp
Cache::initCache(): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx movl 0x40(%rdi), %esi leaq 0x10(%rsp), %r14 leaq 0xf(%rsp), %r15 movq %r14, %rdi movq %r15, %rdx callq 0x3d7c leaq 0x50(%rbx), %rdi movq %r14, %rsi callq 0x40e2 movq %r14, %rdi callq 0x3d5a xorl %eax, %eax pushq $0x30 popq %rbp movl %eax, %r12d movq 0x50(%rbx), %rcx movq 0x58(%rbx), %rax subq %rcx, %rax cqto idivq %rbp cmpq %r12, %rax jbe 0x358c imulq $0x30, %r12, %rax leaq (%rcx,%rax), %r13 addq $0x18, %r13 andw $0x0, -0x18(%r13) movl 0x3c(%rbx), %esi movl %esi, -0xc(%r13) andl $0x0, -0x14(%r13) movl %r12d, %eax xorl %edx, %edx divl 0x44(%rbx) movl %eax, -0x10(%r13) andl $0x0, -0x8(%r13) movq %r14, %rdi movq %r15, %rdx callq 0x3dce movq %r13, %rdi movq %r14, %rsi callq 0x41aa movq %r14, %rdi callq 0x3fe0 leal 0x1(%r12), %eax jmp 0x3520 addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
_ZN5Cache9initCacheEv: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov rbx, rdi mov esi, [rdi+40h] lea r14, [rsp+58h+var_48] lea r15, [rsp+58h+var_49] mov rdi, r14 mov rdx, r15 call _ZNSt6vectorIN5Cache5BlockESaIS1_EEC2EmRKS2_; std::vector<Cache::Block>::vector(ulong,std::allocator<Cache::Block> const&) lea rdi, [rbx+50h] mov rsi, r14 call _ZNSt6vectorIN5Cache5BlockESaIS1_EE14_M_move_assignEOS3_St17integral_constantIbLb1EE; std::vector<Cache::Block>::_M_move_assign(std::vector<Cache::Block>&&,std::integral_constant<bool,true>) mov rdi, r14 call _ZNSt6vectorIN5Cache5BlockESaIS1_EED2Ev; std::vector<Cache::Block>::~vector() xor eax, eax push 30h ; '0' pop rbp loc_3520: mov r12d, eax mov rcx, [rbx+50h] mov rax, [rbx+58h] sub rax, rcx cqo idiv rbp cmp rax, r12 jbe short loc_358C imul rax, r12, 30h ; '0' lea r13, [rcx+rax] add r13, 18h and word ptr [r13-18h], 0 mov esi, [rbx+3Ch] mov [r13-0Ch], esi and dword ptr [r13-14h], 0 mov eax, r12d xor edx, edx div dword ptr [rbx+44h] mov [r13-10h], eax and dword ptr [r13-8], 0 mov rdi, r14 mov rdx, r15 call _ZNSt6vectorIhSaIhEEC2EmRKS0_; std::vector<uchar>::vector(ulong,std::allocator<uchar> const&) mov rdi, r13 mov rsi, r14 call _ZNSt6vectorIhSaIhEE14_M_move_assignEOS1_St17integral_constantIbLb1EE; std::vector<uchar>::_M_move_assign(std::vector<uchar>&&,std::integral_constant<bool,true>) mov rdi, r14 call _ZNSt12_Vector_baseIhSaIhEED2Ev; std::_Vector_base<uchar>::~_Vector_base() lea eax, [r12+1] jmp short loc_3520 loc_358C: add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
unsigned long long Cache::initCache(Cache *this) { unsigned int i; // eax unsigned long long v2; // r12 long long v3; // rcx unsigned long long result; // rax long long v5; // r13 long long v6; // rsi char v7; // [rsp+Fh] [rbp-49h] BYREF _BYTE v8[72]; // [rsp+10h] [rbp-48h] BYREF std::vector<Cache::Block>::vector(v8, *((unsigned int *)this + 16), &v7); std::vector<Cache::Block>::_M_move_assign((char *)this + 80, v8); std::vector<Cache::Block>::~vector(v8); for ( i = 0; ; i = v2 + 1 ) { v2 = i; v3 = *((_QWORD *)this + 10); result = (*((_QWORD *)this + 11) - v3) / 48; if ( result <= v2 ) break; v5 = v3 + 48 * v2 + 24; *(_WORD *)(v5 - 24) = 0; v6 = *((unsigned int *)this + 15); *(_DWORD *)(v5 - 12) = v6; *(_DWORD *)(v5 - 20) = 0; *(_DWORD *)(v5 - 16) = (unsigned int)v2 / *((_DWORD *)this + 17); *(_DWORD *)(v5 - 8) = 0; std::vector<unsigned char>::vector(v8, v6, &v7); std::vector<unsigned char>::_M_move_assign(v5, v8); std::_Vector_base<unsigned char>::~_Vector_base(v8); } return result; }
initCache: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,RDI MOV ESI,dword ptr [RDI + 0x40] LEA R14,[RSP + 0x10] LEA R15,[RSP + 0xf] MOV RDI,R14 MOV RDX,R15 CALL 0x00103d7c LEA RDI,[RBX + 0x50] MOV RSI,R14 CALL 0x001040e2 MOV RDI,R14 CALL 0x00103d5a XOR EAX,EAX PUSH 0x30 POP RBP LAB_00103520: MOV R12D,EAX MOV RCX,qword ptr [RBX + 0x50] MOV RAX,qword ptr [RBX + 0x58] SUB RAX,RCX CQO IDIV RBP CMP RAX,R12 JBE 0x0010358c IMUL RAX,R12,0x30 LEA R13,[RCX + RAX*0x1] ADD R13,0x18 AND word ptr [R13 + -0x18],0x0 MOV ESI,dword ptr [RBX + 0x3c] MOV dword ptr [R13 + -0xc],ESI AND dword ptr [R13 + -0x14],0x0 MOV EAX,R12D XOR EDX,EDX DIV dword ptr [RBX + 0x44] MOV dword ptr [R13 + -0x10],EAX AND dword ptr [R13 + -0x8],0x0 MOV RDI,R14 MOV RDX,R15 CALL 0x00103dce MOV RDI,R13 MOV RSI,R14 CALL 0x001041aa MOV RDI,R14 CALL 0x00103fe0 LEA EAX,[R12 + 0x1] JMP 0x00103520 LAB_0010358c: ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* Cache::initCache() */ void __thiscall Cache::initCache(Cache *this) { int2 *puVar1; uint uVar2; uint uVar3; allocator local_49; vector<Cache::Block,std::allocator<Cache::Block>> local_48 [24]; std::vector<Cache::Block,std::allocator<Cache::Block>>::vector (local_48,(ulong)*(uint *)(this + 0x40),&local_49); std::vector<Cache::Block,std::allocator<Cache::Block>>::_M_move_assign(this + 0x50,local_48); std::vector<Cache::Block,std::allocator<Cache::Block>>::~vector(local_48); uVar3 = 0; while( true ) { if ((ulong)((*(long *)(this + 0x58) - *(long *)(this + 0x50)) / 0x30) <= (ulong)uVar3) break; puVar1 = (int2 *)(*(long *)(this + 0x50) + (ulong)uVar3 * 0x30); *puVar1 = 0; uVar2 = *(uint *)(this + 0x3c); *(uint *)(puVar1 + 6) = uVar2; *(int4 *)(puVar1 + 2) = 0; *(uint *)(puVar1 + 4) = uVar3 / *(uint *)(this + 0x44); *(int4 *)(puVar1 + 8) = 0; std::vector<unsigned_char,std::allocator<unsigned_char>>::vector ((vector<unsigned_char,std::allocator<unsigned_char>> *)local_48,(ulong)uVar2, &local_49); std::vector<unsigned_char,std::allocator<unsigned_char>>::_M_move_assign(puVar1 + 0xc,local_48); std::_Vector_base<unsigned_char,std::allocator<unsigned_char>>::~_Vector_base ((_Vector_base<unsigned_char,std::allocator<unsigned_char>> *)local_48); uVar3 = uVar3 + 1; } return; }
39,836
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[](unsigned long)
monkey531[P]llama/common/./json.hpp
reference operator[](size_type idx) { // implicitly convert null value to an empty array if (is_null()) { m_data.m_type = value_t::array; m_data.m_value.array = create<array_t>(); assert_invariant(); } // operator[] only works for arrays if (JSON_HEDLEY_LIKELY(is_array())) { // fill up array with null values if given idx is outside range if (idx >= m_data.m_value.array->size()) { #if JSON_DIAGNOSTICS // remember array size & capacity before resizing const auto old_size = m_data.m_value.array->size(); const auto old_capacity = m_data.m_value.array->capacity(); #endif m_data.m_value.array->resize(idx + 1); #if JSON_DIAGNOSTICS if (JSON_HEDLEY_UNLIKELY(m_data.m_value.array->capacity() != old_capacity)) { // capacity has changed: update all parents set_parents(); } else { // set parent for values added above set_parents(begin() + static_cast<typename iterator::difference_type>(old_size), static_cast<typename iterator::difference_type>(idx + 1 - old_size)); } #endif assert_invariant(); } return m_data.m_value.array->operator[](idx); } JSON_THROW(type_error::create(305, detail::concat("cannot use operator[] with a numeric argument with ", type_name()), this)); }
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>::operator[](unsigned long): pushq %rbp pushq %r14 pushq %rbx subq $0x30, %rsp movq %rsi, %rbx movq %rdi, %r14 cmpb $0x0, (%rdi) jne 0x70c08 movb $0x2, (%r14) movl $0x18, %edi callq 0x18690 xorps %xmm0, %xmm0 movups %xmm0, (%rax) movq $0x0, 0x10(%rax) movq %rax, 0x8(%r14) movq %r14, %rdi movl $0x1, %esi callq 0x3efdc cmpb $0x2, (%r14) jne 0x70c4f movq 0x8(%r14), %rdi movq 0x8(%rdi), %rax subq (%rdi), %rax sarq $0x4, %rax cmpq %rbx, %rax ja 0x70c38 leaq 0x1(%rbx), %rsi callq 0x70eb2 movq %r14, %rdi movl $0x1, %esi callq 0x3efdc movq 0x8(%r14), %rax shlq $0x4, %rbx addq (%rax), %rbx movq %rbx, %rax addq $0x30, %rsp popq %rbx popq %r14 popq %rbp retq movl $0x20, %edi callq 0x18360 movq %rax, %rbx movq %r14, %rdi callq 0x3f6d8 leaq 0x8(%rsp), %rdx movq %rax, (%rdx) leaq 0x4eefe(%rip), %rsi # 0xbfb71 leaq 0x10(%rsp), %rdi callq 0x66a8e movb $0x1, %bpl leaq 0x10(%rsp), %rdx movq %rbx, %rdi movl $0x131, %esi # imm = 0x131 movq %r14, %rcx callq 0x4b700 xorl %ebp, %ebp leaq 0x8061a(%rip), %rsi # 0xf12b8 leaq -0x22f03(%rip), %rdx # 0x4dda2 movq %rbx, %rdi callq 0x18b30 movq %rax, %r14 leaq 0x20(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x70cd3 movq 0x20(%rsp), %rsi incq %rsi callq 0x186a0 jmp 0x70cd3 movq %rax, %r14 movb $0x1, %bpl testb %bpl, %bpl je 0x70ce0 movq %rbx, %rdi callq 0x18500 movq %r14, %rdi callq 0x18b90
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixEm: push rbp; char push r14; int push rbx; __int64 sub rsp, 30h mov rbx, rsi mov r14, rdi cmp byte ptr [rdi], 0 jnz short loc_70C08 mov byte ptr [r14], 2 mov edi, 18h; unsigned __int64 call __Znwm; operator new(ulong) xorps xmm0, xmm0 movups xmmword ptr [rax], xmm0 mov qword ptr [rax+10h], 0 mov [r14+8], rax mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) loc_70C08: cmp byte ptr [r14], 2 jnz short loc_70C4F mov rdi, [r14+8] mov rax, [rdi+8] sub rax, [rdi] sar rax, 4 cmp rax, rbx ja short loc_70C38 lea rsi, [rbx+1] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE6resizeEm; 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>>::resize(ulong) 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_70C38: mov rax, [r14+8] shl rbx, 4 add rbx, [rax] mov rax, rbx add rsp, 30h pop rbx pop r14 pop rbp retn loc_70C4F: mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) lea rdx, [rsp+48h+var_40] mov [rdx], rax lea rsi, aCannotUseOpera; "cannot use operator[] with a numeric ar"... lea rdi, [rsp+48h+var_38] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA52_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[52],char const*>(char const(&)[52],char const* &&) mov bpl, 1 lea rdx, [rsp+48h+var_38] mov rdi, rbx; this mov esi, 131h; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rax, [rsp+48h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_70CD3 mov rsi, [rsp+48h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_70CD3 mov r14, rax mov bpl, 1 loc_70CD3: test bpl, bpl jz short loc_70CE0 mov rdi, rbx; void * call ___cxa_free_exception loc_70CE0: mov rdi, r14 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[]( long long a1, unsigned long long a2) { long long v3; // rax _QWORD *v4; // rdi nlohmann::json_abi_v3_11_3::detail::exception *exception; // rbx const char *v7; // [rsp+8h] [rbp-40h] BYREF _QWORD v8[2]; // [rsp+10h] [rbp-38h] BYREF if ( !*(_BYTE *)a1 ) { *(_BYTE *)a1 = 2; v3 = operator new(0x18uLL); *(_OWORD *)v3 = 0LL; *(_QWORD *)(v3 + 16) = 0LL; *(_QWORD *)(a1 + 8) = v3; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1); } if ( *(_BYTE *)a1 != 2 ) { exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL); 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>::type_name((unsigned __int8 *)a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[52],char const*>( (long long)v8, (long long)"cannot use operator[] with a numeric argument with ", &v7); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_( exception, 305, v8); __cxa_throw( exception, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } v4 = *(_QWORD **)(a1 + 8); if ( (long long)(v4[1] - *v4) >> 4 <= a2 ) { 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>>::resize( v4, a2 + 1); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1); } return **(_QWORD **)(a1 + 8) + 16 * a2; }
operator[]: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x30 MOV RBX,RSI MOV R14,RDI CMP byte ptr [RDI],0x0 JNZ 0x00170c08 MOV byte ptr [R14],0x2 MOV EDI,0x18 CALL 0x00118690 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX],XMM0 MOV qword ptr [RAX + 0x10],0x0 MOV qword ptr [R14 + 0x8],RAX MOV RDI,R14 MOV ESI,0x1 CALL 0x0013efdc LAB_00170c08: CMP byte ptr [R14],0x2 JNZ 0x00170c4f MOV RDI,qword ptr [R14 + 0x8] MOV RAX,qword ptr [RDI + 0x8] SUB RAX,qword ptr [RDI] SAR RAX,0x4 CMP RAX,RBX JA 0x00170c38 LEA RSI,[RBX + 0x1] CALL 0x00170eb2 MOV RDI,R14 MOV ESI,0x1 CALL 0x0013efdc LAB_00170c38: MOV RAX,qword ptr [R14 + 0x8] SHL RBX,0x4 ADD RBX,qword ptr [RAX] MOV RAX,RBX ADD RSP,0x30 POP RBX POP R14 POP RBP RET LAB_00170c4f: MOV EDI,0x20 CALL 0x00118360 MOV RBX,RAX MOV RDI,R14 CALL 0x0013f6d8 LEA RDX,[RSP + 0x8] MOV qword ptr [RDX],RAX LAB_00170c6c: LEA RSI,[0x1bfb71] LEA RDI,[RSP + 0x10] CALL 0x00166a8e MOV BPL,0x1 LAB_00170c80: LEA RDX,[RSP + 0x10] MOV RDI,RBX MOV ESI,0x131 MOV RCX,R14 CALL 0x0014b700 XOR EBP,EBP LEA RSI,[0x1f12b8] LEA RDX,[0x14dda2] MOV RDI,RBX CALL 0x00118b30
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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[](unsigned long) */ long __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[](basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *this,ulong param_1) { vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *this_00; int8 *puVar1; int8 uVar2; char *local_40; detail local_38 [32]; if (*this == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x0) { *this = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x2; puVar1 = (int8 *)operator_new(0x18); *puVar1 = 0; puVar1[1] = 0; puVar1[2] = 0; *(int8 **)(this + 8) = puVar1; assert_invariant(SUB81(this,0)); } if (*this == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x2) { this_00 = *(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)(this + 8); if ((ulong)(*(long *)(this_00 + 8) - *(long *)this_00 >> 4) <= param_1) { 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>>> ::resize(this_00,param_1 + 1); assert_invariant(SUB81(this,0)); } return param_1 * 0x10 + **(long **)(this + 8); } uVar2 = __cxa_allocate_exception(0x20); local_40 = (char *)type_name(this); /* try { // try from 00170c6c to 00170c7c has its CatchHandler @ 00170ccd */ detail::concat<std::__cxx11::string,char_const(&)[52],char_const*> (local_38,"cannot use operator[] with a numeric argument with ",&local_40); /* try { // try from 00170c80 to 00170cac has its CatchHandler @ 00170cad */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar2,0x131,local_38,this); /* WARNING: Subroutine does not return */ __cxa_throw(uVar2,&detail::type_error::typeinfo,detail::exception::~exception); }
39,837
ma_ft_parserecord
eloqsql/storage/maria/ma_ft_update.c
FT_WORD * _ma_ft_parserecord(MARIA_HA *info, uint keynr, const uchar *record, MEM_ROOT *mem_root) { TREE ptree; MYSQL_FTPARSER_PARAM *param; DBUG_ENTER("_ma_ft_parserecord"); if (! (param= maria_ftparser_call_initializer(info, keynr, 0))) DBUG_RETURN(NULL); bzero((char*) &ptree, sizeof(ptree)); param->flags= 0; if (_ma_ft_parse(&ptree, info, keynr, record, param, mem_root)) DBUG_RETURN(NULL); DBUG_RETURN(maria_ft_linearize(&ptree, mem_root)); }
O0
c
ma_ft_parserecord: pushq %rbp movq %rsp, %rbp subq $0x2d0, %rsp # imm = 0x2D0 movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x10(%rbp), %rdi movl -0x14(%rbp), %esi xorl %edx, %edx callq 0x4bff0 movq %rax, -0x2c8(%rbp) cmpq $0x0, %rax jne 0x8c811 jmp 0x8c807 movq $0x0, -0x8(%rbp) jmp 0x8c87b leaq -0x2c0(%rbp), %rdi xorl %esi, %esi movl $0x298, %edx # imm = 0x298 callq 0x2a2c0 movq -0x2c8(%rbp), %rax movl $0x0, 0x34(%rax) movq -0x10(%rbp), %rsi movl -0x14(%rbp), %edx movq -0x20(%rbp), %rcx movq -0x2c8(%rbp), %r8 movq -0x28(%rbp), %r9 leaq -0x2c0(%rbp), %rdi callq 0x8c6f0 cmpl $0x0, %eax je 0x8c865 jmp 0x8c85b movq $0x0, -0x8(%rbp) jmp 0x8c87b jmp 0x8c867 movq -0x28(%rbp), %rsi leaq -0x2c0(%rbp), %rdi callq 0x4b300 movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x2d0, %rsp # imm = 0x2D0 popq %rbp retq nopl (%rax,%rax)
_ma_ft_parserecord: push rbp mov rbp, rsp sub rsp, 2D0h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov rdi, [rbp+var_10] mov esi, [rbp+var_14] xor edx, edx call maria_ftparser_call_initializer mov [rbp+var_2C8], rax cmp rax, 0 jnz short loc_8C811 jmp short $+2 loc_8C807: mov [rbp+var_8], 0 jmp short loc_8C87B loc_8C811: lea rdi, [rbp+var_2C0] xor esi, esi mov edx, 298h call _memset mov rax, [rbp+var_2C8] mov dword ptr [rax+34h], 0 mov rsi, [rbp+var_10] mov edx, [rbp+var_14] mov rcx, [rbp+var_20] mov r8, [rbp+var_2C8] mov r9, [rbp+var_28] lea rdi, [rbp+var_2C0] call _ma_ft_parse cmp eax, 0 jz short loc_8C865 jmp short $+2 loc_8C85B: mov [rbp+var_8], 0 jmp short loc_8C87B loc_8C865: jmp short $+2 loc_8C867: mov rsi, [rbp+var_28] lea rdi, [rbp+var_2C0] call maria_ft_linearize mov [rbp+var_8], rax loc_8C87B: mov rax, [rbp+var_8] add rsp, 2D0h pop rbp retn
long long ma_ft_parserecord(_QWORD *a1, unsigned int a2, long long a3, long long a4) { unsigned long long v5; // [rsp+8h] [rbp-2C8h] _QWORD v6[83]; // [rsp+10h] [rbp-2C0h] BYREF long long v7; // [rsp+2A8h] [rbp-28h] long long v8; // [rsp+2B0h] [rbp-20h] unsigned int v9; // [rsp+2BCh] [rbp-14h] _QWORD *v10; // [rsp+2C0h] [rbp-10h] v10 = a1; v9 = a2; v8 = a3; v7 = a4; v5 = maria_ftparser_call_initializer(a1, a2, 0); if ( !v5 ) return 0LL; memset(v6, 0LL, sizeof(v6)); *(_DWORD *)(v5 + 52) = 0; if ( (unsigned int)ma_ft_parse(v6, (long long)v10, v9, v8, (_QWORD *)v5, v7) ) return 0LL; else return maria_ft_linearize((long long)v6, v7); }
_ma_ft_parserecord: PUSH RBP MOV RBP,RSP SUB RSP,0x2d0 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV RDI,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RBP + -0x14] XOR EDX,EDX CALL 0x0014bff0 MOV qword ptr [RBP + -0x2c8],RAX CMP RAX,0x0 JNZ 0x0018c811 JMP 0x0018c807 LAB_0018c807: MOV qword ptr [RBP + -0x8],0x0 JMP 0x0018c87b LAB_0018c811: LEA RDI,[RBP + -0x2c0] XOR ESI,ESI MOV EDX,0x298 CALL 0x0012a2c0 MOV RAX,qword ptr [RBP + -0x2c8] MOV dword ptr [RAX + 0x34],0x0 MOV RSI,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RBP + -0x14] MOV RCX,qword ptr [RBP + -0x20] MOV R8,qword ptr [RBP + -0x2c8] MOV R9,qword ptr [RBP + -0x28] LEA RDI,[RBP + -0x2c0] CALL 0x0018c6f0 CMP EAX,0x0 JZ 0x0018c865 JMP 0x0018c85b LAB_0018c85b: MOV qword ptr [RBP + -0x8],0x0 JMP 0x0018c87b LAB_0018c865: JMP 0x0018c867 LAB_0018c867: MOV RSI,qword ptr [RBP + -0x28] LEA RDI,[RBP + -0x2c0] CALL 0x0014b300 MOV qword ptr [RBP + -0x8],RAX LAB_0018c87b: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x2d0 POP RBP RET
int8 _ma_ft_parserecord(int8 param_1,int4 param_2,int8 param_3,int8 param_4) { int iVar1; long lVar2; int1 local_2c8 [664]; int8 local_30; int8 local_28; int4 local_1c; int8 local_18; int8 local_10; local_30 = param_4; local_28 = param_3; local_1c = param_2; local_18 = param_1; lVar2 = maria_ftparser_call_initializer(param_1,param_2,0); if (lVar2 == 0) { local_10 = 0; } else { memset(local_2c8,0,0x298); *(int4 *)(lVar2 + 0x34) = 0; iVar1 = _ma_ft_parse(local_2c8,local_18,local_1c,local_28,lVar2,local_30); if (iVar1 == 0) { local_10 = maria_ft_linearize(local_2c8,local_30); } else { local_10 = 0; } } return local_10; }
39,838
ast_create_case_clause
tsotchke[P]eshkol/src/frontend/ast/create/ast_create.c
AstNode* ast_create_case_clause(Arena* arena, AstNode* datum, AstNode* expr, size_t line, size_t column) { AstNode* node = ast_create_node(arena, AST_CASE_CLAUSE, line, column); if (!node) { return NULL; } node->as.case_clause.datum = datum; node->as.case_clause.expr = expr; return node; }
O2
c
ast_create_case_clause: pushq %r14 pushq %rbx pushq %rax movq %rdx, %rbx movq %rsi, %r14 pushq $0x22 popq %rsi movq %rcx, %rdx movq %r8, %rcx callq 0x99ac testq %rax, %rax je 0xa020 movq %r14, 0x48(%rax) movq %rbx, 0x50(%rax) addq $0x8, %rsp popq %rbx popq %r14 retq
ast_create_case_clause: push r14 push rbx push rax mov rbx, rdx mov r14, rsi push 22h ; '"' pop rsi mov rdx, rcx mov rcx, r8 call ast_create_node test rax, rax jz short loc_A020 mov [rax+48h], r14 mov [rax+50h], rbx loc_A020: add rsp, 8 pop rbx pop r14 retn
long long ast_create_case_clause(long long a1, long long a2, long long a3, long long a4, long long a5) { long long result; // rax result = ast_create_node(a1, 34, a4, a5); if ( result ) { *(_QWORD *)(result + 72) = a2; *(_QWORD *)(result + 80) = a3; } return result; }
ast_create_case_clause: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDX MOV R14,RSI PUSH 0x22 POP RSI MOV RDX,RCX MOV RCX,R8 CALL 0x001099ac TEST RAX,RAX JZ 0x0010a020 MOV qword ptr [RAX + 0x48],R14 MOV qword ptr [RAX + 0x50],RBX LAB_0010a020: ADD RSP,0x8 POP RBX POP R14 RET
void ast_create_case_clause (int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5) { long lVar1; lVar1 = ast_create_node(param_1,0x22,param_4,param_5); if (lVar1 != 0) { *(int8 *)(lVar1 + 0x48) = param_2; *(int8 *)(lVar1 + 0x50) = param_3; } return; }
39,839
namelist_find
bluesky950520[P]quickjs/qjsc.c
namelist_entry_t *namelist_find(namelist_t *lp, const char *name) { int i; for(i = 0; i < lp->count; i++) { namelist_entry_t *e = &lp->array[i]; if (!strcmp(e->name, name)) return e; } return NULL; }
O1
c
namelist_find: pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movslq 0x8(%rdi), %r15 testq %r15, %r15 jle 0x13bef movq %rsi, %rbx movq (%rdi), %r12 movq (%r12), %rdi movq %rbx, %rsi callq 0xe510 testl %eax, %eax cmoveq %r12, %r14 je 0x13bf2 addq $0x18, %r12 decq %r15 jne 0x13bd2 xorl %r14d, %r14d movq %r14, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
namelist_find: push r15 push r14 push r12 push rbx push rax movsxd r15, dword ptr [rdi+8] test r15, r15 jle short loc_13BEF mov rbx, rsi mov r12, [rdi] loc_13BD2: mov rdi, [r12] mov rsi, rbx call _strcmp test eax, eax cmovz r14, r12 jz short loc_13BF2 add r12, 18h dec r15 jnz short loc_13BD2 loc_13BEF: xor r14d, r14d loc_13BF2: mov rax, r14 add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn
_QWORD * namelist_find(long long a1, long long a2) { long long v2; // r15 _QWORD *i; // r12 v2 = *(int *)(a1 + 8); if ( v2 <= 0 ) return 0LL; for ( i = *(_QWORD **)a1; (unsigned int)strcmp(*i, a2); i += 3 ) { if ( !--v2 ) return 0LL; } return i; }
namelist_find: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOVSXD R15,dword ptr [RDI + 0x8] TEST R15,R15 JLE 0x00113bef MOV RBX,RSI MOV R12,qword ptr [RDI] LAB_00113bd2: MOV RDI,qword ptr [R12] MOV RSI,RBX CALL 0x0010e510 TEST EAX,EAX CMOVZ R14,R12 JZ 0x00113bf2 ADD R12,0x18 DEC R15 JNZ 0x00113bd2 LAB_00113bef: XOR R14D,R14D LAB_00113bf2: MOV RAX,R14 ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
int8 * namelist_find(int8 *param_1,char *param_2) { int iVar1; long lVar2; lVar2 = (long)*(int *)(param_1 + 1); if (0 < lVar2) { param_1 = (int8 *)*param_1; do { iVar1 = strcmp((char *)*param_1,param_2); if (iVar1 == 0) { return param_1; } param_1 = param_1 + 3; lVar2 = lVar2 + -1; } while (lVar2 != 0); } return (int8 *)0x0; }
39,840
namelist_find
bluesky950520[P]quickjs/qjsc.c
namelist_entry_t *namelist_find(namelist_t *lp, const char *name) { int i; for(i = 0; i < lp->count; i++) { namelist_entry_t *e = &lp->array[i]; if (!strcmp(e->name, name)) return e; } return NULL; }
O2
c
namelist_find: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %r15 movslq 0x8(%rdi), %r13 pushq $-0x18 popq %r12 pushq $-0x1 popq %rbp incq %rbp cmpq %r13, %rbp jge 0xec03 movq (%r15), %rbx movq 0x18(%rbx,%r12), %rdi addq $0x18, %r12 movq %r14, %rsi callq 0xe520 testl %eax, %eax jne 0xebdb addq %r12, %rbx movq %rbx, %rax jmp 0xec05 xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
namelist_find: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov r14, rsi mov r15, rdi movsxd r13, dword ptr [rdi+8] push 0FFFFFFFFFFFFFFE8h pop r12 push 0FFFFFFFFFFFFFFFFh pop rbp loc_EBDB: inc rbp cmp rbp, r13 jge short loc_EC03 mov rbx, [r15] mov rdi, [rbx+r12+18h] add r12, 18h mov rsi, r14 call _strcmp test eax, eax jnz short loc_EBDB add rbx, r12 mov rax, rbx jmp short loc_EC05 loc_EC03: xor eax, eax loc_EC05: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long namelist_find(long long *a1, long long a2) { long long v3; // r13 long long v4; // r12 long long v5; // rbp long long v6; // rbx long long v7; // rdi v3 = *((int *)a1 + 2); v4 = -24LL; v5 = -1LL; while ( ++v5 < v3 ) { v6 = *a1; v7 = *(_QWORD *)(*a1 + v4 + 24); v4 += 24LL; if ( !(unsigned int)strcmp(v7, a2) ) return v4 + v6; } return 0LL; }
namelist_find: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R14,RSI MOV R15,RDI MOVSXD R13,dword ptr [RDI + 0x8] PUSH -0x18 POP R12 PUSH -0x1 POP RBP LAB_0010ebdb: INC RBP CMP RBP,R13 JGE 0x0010ec03 MOV RBX,qword ptr [R15] MOV RDI,qword ptr [RBX + R12*0x1 + 0x18] ADD R12,0x18 MOV RSI,R14 CALL 0x0010e520 TEST EAX,EAX JNZ 0x0010ebdb ADD RBX,R12 MOV RAX,RBX JMP 0x0010ec05 LAB_0010ec03: XOR EAX,EAX LAB_0010ec05: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
long namelist_find(long *param_1,char *param_2) { int8 *puVar1; long lVar2; long lVar3; int iVar4; long lVar5; long lVar6; lVar3 = param_1[1]; lVar6 = -0x18; lVar5 = -1; do { lVar5 = lVar5 + 1; if ((int)lVar3 <= lVar5) { return 0; } lVar2 = *param_1; puVar1 = (int8 *)(lVar2 + 0x18 + lVar6); lVar6 = lVar6 + 0x18; iVar4 = strcmp((char *)*puVar1,param_2); } while (iVar4 != 0); return lVar2 + lVar6; }
39,841
psi_mutex_trylock
eloqsql/mysys/my_thr_init.c
ATTRIBUTE_COLD int psi_mutex_trylock(mysql_mutex_t *that, const char *file, uint line) { PSI_mutex_locker_state state; PSI_mutex_locker *locker= PSI_MUTEX_CALL(start_mutex_wait) (&state, that->m_psi, PSI_MUTEX_TRYLOCK, file, line); # ifdef SAFE_MUTEX int result= safe_mutex_lock(&that->m_mutex, TRUE, file, line); # else int result= pthread_mutex_trylock(&that->m_mutex); # endif if (locker) PSI_MUTEX_CALL(end_mutex_wait)(locker, result); return result; }
O0
c
psi_mutex_trylock: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) leaq 0x1af976(%rip), %rax # 0x1d68d0 movq (%rax), %rax movq 0x190(%rax), %rax movq -0x8(%rbp), %rcx movq 0x40(%rcx), %rsi movq -0x10(%rbp), %rcx movl -0x14(%rbp), %r8d leaq -0x48(%rbp), %rdi movl $0x1, %edx callq *%rax movq %rax, -0x50(%rbp) movq -0x8(%rbp), %rdi callq 0x240a0 movl %eax, -0x54(%rbp) cmpq $0x0, -0x50(%rbp) je 0x26fb0 leaq 0x1af933(%rip), %rax # 0x1d68d0 movq (%rax), %rax movq 0x198(%rax), %rax movq -0x50(%rbp), %rdi movl -0x54(%rbp), %esi callq *%rax movl -0x54(%rbp), %eax addq $0x60, %rsp popq %rbp retq nopl (%rax)
psi_mutex_trylock: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx lea rax, PSI_server mov rax, [rax] mov rax, [rax+190h] mov rcx, [rbp+var_8] mov rsi, [rcx+40h] mov rcx, [rbp+var_10] mov r8d, [rbp+var_14] lea rdi, [rbp+var_48] mov edx, 1 call rax mov [rbp+var_50], rax mov rdi, [rbp+var_8] call _pthread_mutex_trylock mov [rbp+var_54], eax cmp [rbp+var_50], 0 jz short loc_26FB0 lea rax, PSI_server mov rax, [rax] mov rax, [rax+198h] mov rdi, [rbp+var_50] mov esi, [rbp+var_54] call rax loc_26FB0: mov eax, [rbp+var_54] add rsp, 60h pop rbp retn
long long psi_mutex_trylock(long long a1, long long a2, unsigned int a3) { unsigned int v4; // [rsp+Ch] [rbp-54h] long long v5; // [rsp+10h] [rbp-50h] _BYTE v6[52]; // [rsp+18h] [rbp-48h] BYREF unsigned int v7; // [rsp+4Ch] [rbp-14h] long long v8; // [rsp+50h] [rbp-10h] long long v9; // [rsp+58h] [rbp-8h] v9 = a1; v8 = a2; v7 = a3; v5 = (*((long long ( **)(_BYTE *, _QWORD, long long, long long, _QWORD))PSI_server[0] + 50))( v6, *(_QWORD *)(a1 + 64), 1LL, a2, a3); v4 = pthread_mutex_trylock(v9); if ( v5 ) (*((void ( **)(long long, _QWORD))PSI_server[0] + 51))(v5, v4); return v4; }
psi_mutex_trylock: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX LEA RAX,[0x2d68d0] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x190] MOV RCX,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RCX + 0x40] MOV RCX,qword ptr [RBP + -0x10] MOV R8D,dword ptr [RBP + -0x14] LEA RDI,[RBP + -0x48] MOV EDX,0x1 CALL RAX MOV qword ptr [RBP + -0x50],RAX MOV RDI,qword ptr [RBP + -0x8] CALL 0x001240a0 MOV dword ptr [RBP + -0x54],EAX CMP qword ptr [RBP + -0x50],0x0 JZ 0x00126fb0 LEA RAX,[0x2d68d0] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x198] MOV RDI,qword ptr [RBP + -0x50] MOV ESI,dword ptr [RBP + -0x54] CALL RAX LAB_00126fb0: MOV EAX,dword ptr [RBP + -0x54] ADD RSP,0x60 POP RBP RET
int psi_mutex_trylock(pthread_mutex_t *param_1,int8 param_2,int4 param_3) { int iVar1; long lVar2; int1 local_50 [52]; int4 local_1c; int8 local_18; pthread_mutex_t *local_10; local_1c = param_3; local_18 = param_2; local_10 = param_1; lVar2 = (**(code **)(PSI_server + 400)) (local_50,*(int8 *)((long)param_1 + 0x40),1,param_2,param_3); iVar1 = pthread_mutex_trylock(local_10); if (lVar2 != 0) { (**(code **)(PSI_server + 0x198))(lVar2,iVar1); } return iVar1; }
39,842
js_string_fromCodePoint
bluesky950520[P]quickjs/quickjs.c
static JSValue js_string_fromCodePoint(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { double d; int i, c; StringBuffer b_s, *b = NULL; // shortcut for single argument common case if (argc == 1 && JS_VALUE_GET_TAG(argv[0]) == JS_TAG_INT) { c = JS_VALUE_GET_INT(argv[0]); if (c < 0 || c > 0x10ffff) goto range_error; if (c <= 0xffff) { return js_new_string_char(ctx, c); } else { uint16_t c16[2]; c16[0] = get_hi_surrogate(c); c16[1] = get_lo_surrogate(c); return js_new_string16_len(ctx, c16, 2); } } /* XXX: could pre-compute string length if all arguments are JS_TAG_INT */ b = &b_s; if (string_buffer_init(ctx, b, argc)) goto fail; for(i = 0; i < argc; i++) { if (JS_VALUE_GET_TAG(argv[i]) == JS_TAG_INT) { c = JS_VALUE_GET_INT(argv[i]); if (c < 0 || c > 0x10ffff) goto range_error; } else { if (JS_ToFloat64(ctx, &d, argv[i])) goto fail; if (!(d >= 0 && d <= 0x10ffff) || (c = (int)d) != d) goto range_error; } if (string_buffer_putc(b, c)) goto fail; } return string_buffer_end(b); range_error: JS_ThrowRangeError(ctx, "invalid code point"); fail: if (b) string_buffer_free(b); return JS_EXCEPTION; }
O1
c
js_string_fromCodePoint: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %r8, %r15 movl %ecx, %ebp movq %rdi, %rbx cmpl $0x1, %ecx jne 0x7a9dd cmpl $0x0, 0x8(%r15) je 0x7aab8 movq %rbx, (%rsp) movl %ebp, 0x14(%rsp) movl $0x0, 0x10(%rsp) movq $0x0, 0x18(%rsp) movq %rbx, %rdi movl %ebp, %esi xorl %edx, %edx callq 0x20b73 movq %rax, 0x8(%rsp) testq %rax, %rax je 0x7ab8b testl %ebp, %ebp jle 0x7aa9e movl %ebp, %r13d shlq $0x4, %r13 xorl %ebp, %ebp movq %rsp, %r14 leaq 0x20(%rsp), %r12 movq 0x8(%r15,%rbp), %rcx testl %ecx, %ecx je 0x7aa7d movq (%r15,%rbp), %rdx movq %rbx, %rdi movq %r12, %rsi callq 0x27681 testl %eax, %eax jne 0x7aad7 movsd 0x20(%rsp), %xmm0 ucomisd 0x23ea9(%rip), %xmm0 # 0x9e900 jb 0x7aac6 movsd 0x23ef7(%rip), %xmm1 # 0x9e958 ucomisd %xmm0, %xmm1 jb 0x7aac6 cvttpd2dq %xmm0, %xmm1 cvtdq2pd %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jne 0x7aac6 jp 0x7aac6 cvttsd2si %xmm0, %esi jmp 0x7aa89 movl (%r15,%rbp), %esi cmpl $0x10ffff, %esi # imm = 0x10FFFF ja 0x7aac6 movq %r14, %rdi callq 0x333f0 testl %eax, %eax jne 0x7aad7 addq $0x10, %rbp cmpq %rbp, %r13 jne 0x7aa29 movq %rsp, %rdi callq 0x33444 movq %rdx, %rbx movabsq $-0x100000000, %r14 # imm = 0xFFFFFFFF00000000 andq %rax, %r14 jmp 0x7aafa movl (%r15), %ebp cmpl $0x10ffff, %ebp # imm = 0x10FFFF jbe 0x7ab11 xorl %r14d, %r14d leaq 0x27582(%rip), %rsi # 0xa204f movq %rbx, %rdi xorl %eax, %eax callq 0x20add movl $0x6, %ebx testq %r14, %r14 je 0x7aaf5 movq (%r14), %rdi movq 0x8(%r14), %rsi callq 0x1cb99 movq $0x0, 0x8(%r14) xorl %eax, %eax xorl %r14d, %r14d movl %eax, %eax orq %r14, %rax movq %rbx, %rdx addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movabsq $-0x100000000, %r14 # imm = 0xFFFFFFFF00000000 cmpl $0xffff, %ebp # imm = 0xFFFF jg 0x7ab33 movzwl %bp, %esi movq %rbx, %rdi callq 0x3d58e movq %rdx, %rbx jmp 0x7aab3 movq %rbx, %rdi movl $0x2, %esi movl $0x1, %edx callq 0x20b73 testq %rax, %rax je 0x7ab76 movl %ebp, %ecx andl $0x3ff, %ecx # imm = 0x3FF orl $0xdc00, %ecx # imm = 0xDC00 shrl $0xa, %ebp addl $0xffffd7c0, %ebp # imm = 0xFFFFD7C0 movw %bp, 0x18(%rax) movw %cx, 0x1a(%rax) movq %rax, (%rsp) movq $-0x7, %rbx jmp 0x7ab82 movl $0x0, (%rsp) movl $0x6, %ebx movq (%rsp), %rax jmp 0x7aab3 movq %rsp, %r14 movl $0x0, 0x14(%r14) movl $0xffffffff, 0x1c(%r14) # imm = 0xFFFFFFFF jmp 0x7aad7
js_string_fromCodePoint: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov r15, r8 mov ebp, ecx mov rbx, rdi cmp ecx, 1 jnz short loc_7A9DD cmp dword ptr [r15+8], 0 jz loc_7AAB8 loc_7A9DD: mov [rsp+58h+var_58], rbx mov [rsp+58h+var_44], ebp mov [rsp+58h+var_48], 0 mov [rsp+58h+var_40], 0 mov rdi, rbx mov esi, ebp xor edx, edx call js_alloc_string mov [rsp+58h+var_50], rax test rax, rax jz loc_7AB8B test ebp, ebp jle loc_7AA9E mov r13d, ebp shl r13, 4 xor ebp, ebp mov r14, rsp lea r12, [rsp+58h+var_38] loc_7AA29: mov rcx, [r15+rbp+8] test ecx, ecx jz short loc_7AA7D mov rdx, [r15+rbp] mov rdi, rbx mov rsi, r12 call JS_ToFloat64 test eax, eax jnz loc_7AAD7 movsd xmm0, [rsp+58h+var_38] ucomisd xmm0, cs:qword_9E900 jb short loc_7AAC6 movsd xmm1, cs:qword_9E958 ucomisd xmm1, xmm0 jb short loc_7AAC6 cvttpd2dq xmm1, xmm0 cvtdq2pd xmm1, xmm1 ucomisd xmm0, xmm1 jnz short loc_7AAC6 jp short loc_7AAC6 cvttsd2si esi, xmm0 jmp short loc_7AA89 loc_7AA7D: mov esi, [r15+rbp] cmp esi, 10FFFFh ja short loc_7AAC6 loc_7AA89: mov rdi, r14 call string_buffer_putc test eax, eax jnz short loc_7AAD7 add rbp, 10h cmp r13, rbp jnz short loc_7AA29 loc_7AA9E: mov rdi, rsp call string_buffer_end mov rbx, rdx mov r14, 0FFFFFFFF00000000h loc_7AAB3: and r14, rax jmp short loc_7AAFA loc_7AAB8: mov ebp, [r15] cmp ebp, 10FFFFh jbe short loc_7AB11 xor r14d, r14d loc_7AAC6: lea rsi, aInvalidCodePoi; "invalid code point" mov rdi, rbx xor eax, eax call JS_ThrowRangeError loc_7AAD7: mov ebx, 6 test r14, r14 jz short loc_7AAF5 mov rdi, [r14] mov rsi, [r14+8] call js_free mov qword ptr [r14+8], 0 loc_7AAF5: xor eax, eax xor r14d, r14d loc_7AAFA: mov eax, eax or rax, r14 mov rdx, rbx add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_7AB11: mov r14, 0FFFFFFFF00000000h cmp ebp, 0FFFFh jg short loc_7AB33 movzx esi, bp mov rdi, rbx call js_new_string_char mov rbx, rdx jmp short loc_7AAB3 loc_7AB33: mov rdi, rbx mov esi, 2 mov edx, 1 call js_alloc_string test rax, rax jz short loc_7AB76 mov ecx, ebp and ecx, 3FFh or ecx, 0DC00h shr ebp, 0Ah add ebp, 0FFFFD7C0h mov [rax+18h], bp mov [rax+1Ah], cx mov [rsp+58h+var_58], rax mov rbx, 0FFFFFFFFFFFFFFF9h jmp short loc_7AB82 loc_7AB76: mov dword ptr [rsp+58h+var_58], 0 mov ebx, 6 loc_7AB82: mov rax, [rsp+58h+var_58] jmp loc_7AAB3 loc_7AB8B: mov r14, rsp mov dword ptr [r14+14h], 0 mov dword ptr [r14+1Ch], 0FFFFFFFFh jmp loc_7AAD7
unsigned long long js_string_fromCodePoint( long long a1, __m128 a2, __m128 a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, long long a10, long long a11, long long a12, int *a13, long long a14) { int v15; // ebp long long v16; // r13 unsigned long long v17; // rbp long long *v18; // r14 unsigned int v19; // esi long long v20; // rax unsigned long long v21; // r14 int v22; // ebp long long v24; // rax long long v25; // [rsp+0h] [rbp-58h] BYREF int v27; // [rsp+10h] [rbp-48h] int v28; // [rsp+14h] [rbp-44h] long long v29; // [rsp+18h] [rbp-40h] unsigned long long v30[7]; // [rsp+20h] [rbp-38h] BYREF v15 = a12; if ( (_DWORD)a12 == 1 && !a13[2] ) { v22 = *a13; if ( (unsigned int)*a13 <= 0x10FFFF ) { if ( v22 > 0xFFFF ) { v24 = js_alloc_string(a1, 2LL, 1u); if ( v24 ) { *(_WORD *)(v24 + 24) = ((unsigned int)v22 >> 10) - 10304; *(_WORD *)(v24 + 26) = v22 & 0x3FF | 0xDC00; v25 = v24; } else { LODWORD(v25) = 0; } v20 = v25; } else { v20 = js_new_string_char(a1, (unsigned __int16)v22); } LABEL_16: v21 = v20 & 0xFFFFFFFF00000000LL; return v21 | (unsigned int)v20; } v18 = 0LL; LABEL_19: JS_ThrowRangeError( a1, (long long)"invalid code point", a11, a12, (long long)a13, a14, a2, a3, a4, a5, a6, a7, a8, a9, v25); } else { v25 = a1; v28 = a12; v27 = 0; v29 = 0LL; if ( js_alloc_string(a1, (unsigned int)a12, 0) ) { if ( v15 > 0 ) { v16 = 16LL * (unsigned int)v15; v17 = 0LL; v18 = &v25; do { a12 = *(_QWORD *)&a13[v17 / 4 + 2]; if ( (_DWORD)a12 ) { if ( (unsigned int)JS_ToFloat64(a1, (double *)v30, *(_DWORD **)&a13[v17 / 4], a12) ) goto LABEL_20; a2 = (__m128)v30[0]; if ( *(double *)v30 < 0.0 ) goto LABEL_19; a3 = (__m128)0x4130FFFF00000000uLL; if ( *(double *)v30 > 1114111.0 ) goto LABEL_19; a3 = (__m128)_mm_cvtepi32_pd(_mm_cvttpd_epi32((__m128d)v30[0])); if ( *(double *)v30 != *(double *)a3.m128_u64 ) goto LABEL_19; v19 = (int)*(double *)v30; } else { v19 = a13[v17 / 4]; if ( v19 > 0x10FFFF ) goto LABEL_19; } if ( (unsigned int)string_buffer_putc((long long)&v25, v19) ) goto LABEL_20; v17 += 16LL; } while ( v16 != v17 ); } v20 = (long long)string_buffer_end((long long)&v25); goto LABEL_16; } v18 = &v25; v28 = 0; HIDWORD(v29) = -1; } LABEL_20: if ( v18 ) { js_free(*v18, v18[1]); v18[1] = 0LL; } LODWORD(v20) = 0; v21 = 0LL; return v21 | (unsigned int)v20; }
js_string_fromCodePoint: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV R15,R8 MOV EBP,ECX MOV RBX,RDI CMP ECX,0x1 JNZ 0x0017a9dd CMP dword ptr [R15 + 0x8],0x0 JZ 0x0017aab8 LAB_0017a9dd: MOV qword ptr [RSP],RBX MOV dword ptr [RSP + 0x14],EBP MOV dword ptr [RSP + 0x10],0x0 MOV qword ptr [RSP + 0x18],0x0 MOV RDI,RBX MOV ESI,EBP XOR EDX,EDX CALL 0x00120b73 MOV qword ptr [RSP + 0x8],RAX TEST RAX,RAX JZ 0x0017ab8b TEST EBP,EBP JLE 0x0017aa9e MOV R13D,EBP SHL R13,0x4 XOR EBP,EBP MOV R14,RSP LEA R12,[RSP + 0x20] LAB_0017aa29: MOV RCX,qword ptr [R15 + RBP*0x1 + 0x8] TEST ECX,ECX JZ 0x0017aa7d MOV RDX,qword ptr [R15 + RBP*0x1] MOV RDI,RBX MOV RSI,R12 CALL 0x00127681 TEST EAX,EAX JNZ 0x0017aad7 MOVSD XMM0,qword ptr [RSP + 0x20] UCOMISD XMM0,qword ptr [0x0019e900] JC 0x0017aac6 MOVSD XMM1,qword ptr [0x0019e958] UCOMISD XMM1,XMM0 JC 0x0017aac6 CVTTPD2DQ XMM1,XMM0 CVTDQ2PD XMM1,XMM1 UCOMISD XMM0,XMM1 JNZ 0x0017aac6 JP 0x0017aac6 CVTTSD2SI ESI,XMM0 JMP 0x0017aa89 LAB_0017aa7d: MOV ESI,dword ptr [R15 + RBP*0x1] CMP ESI,0x10ffff JA 0x0017aac6 LAB_0017aa89: MOV RDI,R14 CALL 0x001333f0 TEST EAX,EAX JNZ 0x0017aad7 ADD RBP,0x10 CMP R13,RBP JNZ 0x0017aa29 LAB_0017aa9e: MOV RDI,RSP CALL 0x00133444 MOV RBX,RDX MOV R14,-0x100000000 LAB_0017aab3: AND R14,RAX JMP 0x0017aafa LAB_0017aab8: MOV EBP,dword ptr [R15] CMP EBP,0x10ffff JBE 0x0017ab11 XOR R14D,R14D LAB_0017aac6: LEA RSI,[0x1a204f] MOV RDI,RBX XOR EAX,EAX CALL 0x00120add LAB_0017aad7: MOV EBX,0x6 TEST R14,R14 JZ 0x0017aaf5 MOV RDI,qword ptr [R14] MOV RSI,qword ptr [R14 + 0x8] CALL 0x0011cb99 MOV qword ptr [R14 + 0x8],0x0 LAB_0017aaf5: XOR EAX,EAX XOR R14D,R14D LAB_0017aafa: MOV EAX,EAX OR RAX,R14 MOV RDX,RBX ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0017ab11: MOV R14,-0x100000000 CMP EBP,0xffff JG 0x0017ab33 MOVZX ESI,BP MOV RDI,RBX CALL 0x0013d58e MOV RBX,RDX JMP 0x0017aab3 LAB_0017ab33: MOV RDI,RBX MOV ESI,0x2 MOV EDX,0x1 CALL 0x00120b73 TEST RAX,RAX JZ 0x0017ab76 MOV ECX,EBP AND ECX,0x3ff OR ECX,0xdc00 SHR EBP,0xa ADD EBP,0xffffd7c0 MOV word ptr [RAX + 0x18],BP MOV word ptr [RAX + 0x1a],CX MOV qword ptr [RSP],RAX MOV RBX,-0x7 JMP 0x0017ab82 LAB_0017ab76: MOV dword ptr [RSP],0x0 MOV EBX,0x6 LAB_0017ab82: MOV RAX,qword ptr [RSP] JMP 0x0017aab3 LAB_0017ab8b: MOV R14,RSP MOV dword ptr [R14 + 0x14],0x0 MOV dword ptr [R14 + 0x1c],0xffffffff JMP 0x0017aad7
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ int1 [16] js_string_fromCodePoint (ulong param_1,int8 param_2,int8 param_3,uint param_4,uint *param_5) { int iVar1; long lVar2; uint uVar3; ulong uVar4; ulong *puVar5; int1 auVar6 [16]; int1 auVar7 [16]; ulong local_58; long local_50; int4 local_48; uint local_44; int8 local_40; double local_38; puVar5 = &local_58; if ((param_4 == 1) && (param_5[2] == 0)) { uVar3 = *param_5; if (0x10ffff < uVar3) { puVar5 = (int8 *)0x0; LAB_0017aac6: JS_ThrowRangeError(param_1,"invalid code point"); LAB_0017aad7: if (puVar5 != (int8 *)0x0) { js_free(*puVar5,puVar5[1]); puVar5[1] = 0; } auVar6 = ZEXT816(6) << 0x40; uVar4 = 0; goto LAB_0017aafa; } if ((int)uVar3 < 0x10000) { auVar6 = js_new_string_char(param_1,uVar3 & 0xffff); } else { lVar2 = js_alloc_string(param_1,2,1); if (lVar2 == 0) { local_58 = local_58 & 0xffffffff00000000; auVar6._8_8_ = 6; auVar6._0_8_ = local_58; } else { *(short *)(lVar2 + 0x18) = (short)(uVar3 >> 10) + -0x2840; *(ushort *)(lVar2 + 0x1a) = (ushort)uVar3 & 0x3ff | 0xdc00; auVar6._8_8_ = 0xfffffffffffffff9; auVar6._0_8_ = lVar2; } } } else { local_48 = 0; local_40 = 0; local_58 = param_1; local_44 = param_4; local_50 = js_alloc_string(param_1,param_4,0); if (local_50 == 0) { local_44 = 0; local_40 = CONCAT44(0xffffffff,(int4)local_40); goto LAB_0017aad7; } if (0 < (int)param_4) { lVar2 = 0; do { if ((int)*(int8 *)((long)param_5 + lVar2 + 8) == 0) { uVar3 = *(uint *)((long)param_5 + lVar2); puVar5 = &local_58; if (0x10ffff < uVar3) goto LAB_0017aac6; } else { iVar1 = JS_ToFloat64(param_1,&local_38,*(int8 *)((long)param_5 + lVar2)); puVar5 = &local_58; if (iVar1 != 0) goto LAB_0017aad7; puVar5 = &local_58; if ((((local_38 < _DAT_0019e900) || (puVar5 = &local_58, DAT_0019e958 < local_38)) || (puVar5 = &local_58, local_38 != (double)(int)local_38)) || (puVar5 = &local_58, NAN(local_38) || NAN((double)(int)local_38))) goto LAB_0017aac6; uVar3 = (uint)local_38; } iVar1 = string_buffer_putc(&local_58,uVar3); puVar5 = &local_58; if (iVar1 != 0) goto LAB_0017aad7; lVar2 = lVar2 + 0x10; } while ((ulong)param_4 << 4 != lVar2); } auVar6 = string_buffer_end(&local_58); } uVar4 = auVar6._0_8_ & 0xffffffff00000000; LAB_0017aafa: auVar7._0_8_ = auVar6._0_8_ & 0xffffffff | uVar4; auVar7._8_8_ = auVar6._8_8_; return auVar7; }
39,843
js_string_fromCodePoint
bluesky950520[P]quickjs/quickjs.c
static JSValue js_string_fromCodePoint(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { double d; int i, c; StringBuffer b_s, *b = NULL; // shortcut for single argument common case if (argc == 1 && JS_VALUE_GET_TAG(argv[0]) == JS_TAG_INT) { c = JS_VALUE_GET_INT(argv[0]); if (c < 0 || c > 0x10ffff) goto range_error; if (c <= 0xffff) { return js_new_string_char(ctx, c); } else { uint16_t c16[2]; c16[0] = get_hi_surrogate(c); c16[1] = get_lo_surrogate(c); return js_new_string16_len(ctx, c16, 2); } } /* XXX: could pre-compute string length if all arguments are JS_TAG_INT */ b = &b_s; if (string_buffer_init(ctx, b, argc)) goto fail; for(i = 0; i < argc; i++) { if (JS_VALUE_GET_TAG(argv[i]) == JS_TAG_INT) { c = JS_VALUE_GET_INT(argv[i]); if (c < 0 || c > 0x10ffff) goto range_error; } else { if (JS_ToFloat64(ctx, &d, argv[i])) goto fail; if (!(d >= 0 && d <= 0x10ffff) || (c = (int)d) != d) goto range_error; } if (string_buffer_putc(b, c)) goto fail; } return string_buffer_end(b); range_error: JS_ThrowRangeError(ctx, "invalid code point"); fail: if (b) string_buffer_free(b); return JS_EXCEPTION; }
O2
c
js_string_fromCodePoint: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %r8, %r12 movl %ecx, %r13d movq %rdi, %r14 pushq $0x6 popq %rbx cmpl $0x1, %ecx jne 0x67117 cmpl $0x0, 0x8(%r12) je 0x671c7 leaq 0x8(%rsp), %r15 movq %r14, %rdi movq %r15, %rsi movl %r13d, %edx callq 0x2e042 testl %eax, %eax jne 0x671f3 xorl %edx, %edx testl %r13d, %r13d cmovlel %edx, %r13d shlq $0x4, %r13 addq $0x10, %r13 leaq 0x8(%rsp), %r15 movq %rsp, %rbp leaq 0x10(%rdx), %rbx cmpq %rbx, %r13 je 0x6722c movq 0x8(%r12,%rdx), %rcx testl %ecx, %ecx je 0x671a7 movq (%r12,%rdx), %rdx movq %r14, %rdi movq %rbp, %rsi callq 0x2127f testl %eax, %eax jne 0x671c2 movsd (%rsp), %xmm0 ucomisd 0x1e6a7(%rip), %xmm0 # 0x85828 jb 0x671d7 movsd 0x1e71d(%rip), %xmm1 # 0x858a8 ucomisd %xmm0, %xmm1 jb 0x671d7 cvttpd2dq %xmm0, %xmm1 cvtdq2pd %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jne 0x671d7 jp 0x671d7 cvttsd2si %xmm0, %esi jmp 0x671b3 movl (%r12,%rdx), %esi cmpl $0x10ffff, %esi # imm = 0x10FFFF ja 0x671d7 movq %r15, %rdi callq 0x2ca82 movq %rbx, %rdx testl %eax, %eax je 0x6714b pushq $0x6 popq %rbx jmp 0x671f3 movl (%r12), %eax cmpl $0x10ffff, %eax # imm = 0x10FFFF jbe 0x67218 xorl %r15d, %r15d jmp 0x671da pushq $0x6 popq %rbx leaq 0x21da8(%rip), %rsi # 0x88f89 xorl %r12d, %r12d movq %r14, %rdi xorl %eax, %eax callq 0x1acb3 testq %r15, %r15 je 0x671fe movq %r15, %rdi callq 0x2ef01 xorl %r12d, %r12d xorl %ecx, %ecx movl %r12d, %eax orq %rcx, %rax movq %rbx, %rdx addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq cmpl $0xffff, %eax # imm = 0xFFFF ja 0x67238 movzwl %ax, %esi movq %r14, %rdi callq 0x35e9c jmp 0x67264 leaq 0x8(%rsp), %rdi callq 0x2cad4 jmp 0x67264 movl %eax, %ecx shrl $0xa, %ecx addl $0xffffd7c0, %ecx # imm = 0xFFFFD7C0 leaq 0x8(%rsp), %rsi movw %cx, (%rsi) andl $0x3ff, %eax # imm = 0x3FF orl $0xdc00, %eax # imm = 0xDC00 movw %ax, 0x2(%rsi) pushq $0x2 popq %rdx movq %r14, %rdi callq 0x35ff3 movq %rax, %r12 movq %rdx, %rbx movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 andq %rax, %rcx jmp 0x67200
js_string_fromCodePoint: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov r12, r8 mov r13d, ecx mov r14, rdi push 6 pop rbx cmp ecx, 1 jnz short loc_67117 cmp dword ptr [r12+8], 0 jz loc_671C7 loc_67117: lea r15, [rsp+58h+var_50] mov rdi, r14 mov rsi, r15 mov edx, r13d call string_buffer_init test eax, eax jnz loc_671F3 xor edx, edx test r13d, r13d cmovle r13d, edx shl r13, 4 add r13, 10h lea r15, [rsp+58h+var_50] mov rbp, rsp loc_6714B: lea rbx, [rdx+10h] cmp r13, rbx jz loc_6722C mov rcx, [r12+rdx+8] test ecx, ecx jz short loc_671A7 mov rdx, [r12+rdx] mov rdi, r14 mov rsi, rbp call JS_ToFloat64 test eax, eax jnz short loc_671C2 movsd xmm0, [rsp+58h+var_58] ucomisd xmm0, cs:qword_85828 jb short loc_671D7 movsd xmm1, cs:qword_858A8 ucomisd xmm1, xmm0 jb short loc_671D7 cvttpd2dq xmm1, xmm0 cvtdq2pd xmm1, xmm1 ucomisd xmm0, xmm1 jnz short loc_671D7 jp short loc_671D7 cvttsd2si esi, xmm0 jmp short loc_671B3 loc_671A7: mov esi, [r12+rdx] cmp esi, 10FFFFh ja short loc_671D7 loc_671B3: mov rdi, r15 call string_buffer_putc mov rdx, rbx test eax, eax jz short loc_6714B loc_671C2: push 6 pop rbx jmp short loc_671F3 loc_671C7: mov eax, [r12] cmp eax, 10FFFFh jbe short loc_67218 xor r15d, r15d jmp short loc_671DA loc_671D7: push 6 pop rbx loc_671DA: lea rsi, aInvalidCodePoi; "invalid code point" xor r12d, r12d mov rdi, r14 xor eax, eax call JS_ThrowRangeError test r15, r15 jz short loc_671FE loc_671F3: mov rdi, r15 call string_buffer_free xor r12d, r12d loc_671FE: xor ecx, ecx loc_67200: mov eax, r12d or rax, rcx mov rdx, rbx add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_67218: cmp eax, 0FFFFh ja short loc_67238 movzx esi, ax mov rdi, r14 call js_new_string_char jmp short loc_67264 loc_6722C: lea rdi, [rsp+58h+var_50] call string_buffer_end jmp short loc_67264 loc_67238: mov ecx, eax shr ecx, 0Ah add ecx, 0FFFFD7C0h lea rsi, [rsp+58h+var_50] mov [rsi], cx and eax, 3FFh or eax, 0DC00h mov [rsi+2], ax push 2 pop rdx mov rdi, r14 call js_new_string16_len loc_67264: mov r12, rax mov rbx, rdx mov rcx, 0FFFFFFFF00000000h and rcx, rax jmp short loc_67200
unsigned long long js_string_fromCodePoint( long long a1, __m128 a2, __m128 a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, long long a10, long long a11, long long a12, unsigned int *a13, long long a14) { long long v15; // r13 long long *v16; // r15 long long v17; // r13 long long v18; // rbx unsigned int v19; // esi int v20; // eax unsigned int v21; // eax unsigned int v22; // r12d unsigned long long v23; // rcx long long v25; // rax double v26; // [rsp+0h] [rbp-58h] BYREF long long v27[10]; // [rsp+8h] [rbp-50h] BYREF v15 = (unsigned int)a12; if ( (_DWORD)a12 != 1 || a13[2] ) { v16 = v27; if ( !(unsigned int)string_buffer_init(a1, (long long)v27, a12) ) { a11 = 0LL; if ( (int)v15 <= 0 ) v15 = 0LL; v17 = 16 * v15 + 16; v16 = v27; while ( 1 ) { v18 = a11 + 16; if ( v17 == a11 + 16 ) break; a12 = *(_QWORD *)((char *)a13 + a11 + 8); if ( (_DWORD)a12 ) { if ( (unsigned int)JS_ToFloat64(a1, (long long)&v26, *(_DWORD **)((char *)a13 + a11), a12) ) goto LABEL_20; a2 = (__m128)*(unsigned long long *)&v26; if ( v26 < 0.0 ) goto LABEL_19; a3 = (__m128)0x4130FFFF00000000uLL; if ( v26 > 1114111.0 ) goto LABEL_19; a3 = (__m128)_mm_cvtepi32_pd(_mm_cvttpd_epi32((__m128d)*(unsigned long long *)&v26)); if ( v26 != *(double *)a3.m128_u64 ) goto LABEL_19; v19 = (int)v26; } else { v19 = *(unsigned int *)((char *)a13 + a11); if ( v19 > 0x10FFFF ) goto LABEL_19; } v20 = string_buffer_putc((long long)v27, v19); a11 = v18; if ( v20 ) goto LABEL_20; } v25 = string_buffer_end(v27); goto LABEL_27; } LABEL_20: string_buffer_free(v16); v22 = 0; goto LABEL_21; } v21 = *a13; if ( *a13 <= 0x10FFFF ) { if ( v21 > 0xFFFF ) { LOWORD(v27[0]) = (v21 >> 10) - 10304; WORD1(v27[0]) = v21 & 0x3FF | 0xDC00; v25 = js_new_string16_len(a1, (long long)v27, 2u); } else { v25 = js_new_string_char(a1, v21); } LABEL_27: v22 = v25; v23 = v25 & 0xFFFFFFFF00000000LL; return v23 | v22; } v16 = 0LL; LABEL_19: v22 = 0; JS_ThrowRangeError( a1, (long long)"invalid code point", a11, a12, (long long)a13, a14, a2, a3, a4, a5, a6, a7, a8, a9, SLOBYTE(v26)); if ( v16 ) goto LABEL_20; LABEL_21: v23 = 0LL; return v23 | v22; }
js_string_fromCodePoint: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV R12,R8 MOV R13D,ECX MOV R14,RDI PUSH 0x6 POP RBX CMP ECX,0x1 JNZ 0x00167117 CMP dword ptr [R12 + 0x8],0x0 JZ 0x001671c7 LAB_00167117: LEA R15,[RSP + 0x8] MOV RDI,R14 MOV RSI,R15 MOV EDX,R13D CALL 0x0012e042 TEST EAX,EAX JNZ 0x001671f3 XOR EDX,EDX TEST R13D,R13D CMOVLE R13D,EDX SHL R13,0x4 ADD R13,0x10 LEA R15,[RSP + 0x8] MOV RBP,RSP LAB_0016714b: LEA RBX,[RDX + 0x10] CMP R13,RBX JZ 0x0016722c MOV RCX,qword ptr [R12 + RDX*0x1 + 0x8] TEST ECX,ECX JZ 0x001671a7 MOV RDX,qword ptr [R12 + RDX*0x1] MOV RDI,R14 MOV RSI,RBP CALL 0x0012127f TEST EAX,EAX JNZ 0x001671c2 MOVSD XMM0,qword ptr [RSP] UCOMISD XMM0,qword ptr [0x00185828] JC 0x001671d7 MOVSD XMM1,qword ptr [0x001858a8] UCOMISD XMM1,XMM0 JC 0x001671d7 CVTTPD2DQ XMM1,XMM0 CVTDQ2PD XMM1,XMM1 UCOMISD XMM0,XMM1 JNZ 0x001671d7 JP 0x001671d7 CVTTSD2SI ESI,XMM0 JMP 0x001671b3 LAB_001671a7: MOV ESI,dword ptr [R12 + RDX*0x1] CMP ESI,0x10ffff JA 0x001671d7 LAB_001671b3: MOV RDI,R15 CALL 0x0012ca82 MOV RDX,RBX TEST EAX,EAX JZ 0x0016714b LAB_001671c2: PUSH 0x6 POP RBX JMP 0x001671f3 LAB_001671c7: MOV EAX,dword ptr [R12] CMP EAX,0x10ffff JBE 0x00167218 XOR R15D,R15D JMP 0x001671da LAB_001671d7: PUSH 0x6 POP RBX LAB_001671da: LEA RSI,[0x188f89] XOR R12D,R12D MOV RDI,R14 XOR EAX,EAX CALL 0x0011acb3 TEST R15,R15 JZ 0x001671fe LAB_001671f3: MOV RDI,R15 CALL 0x0012ef01 XOR R12D,R12D LAB_001671fe: XOR ECX,ECX LAB_00167200: MOV EAX,R12D OR RAX,RCX MOV RDX,RBX ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00167218: CMP EAX,0xffff JA 0x00167238 MOVZX ESI,AX MOV RDI,R14 CALL 0x00135e9c JMP 0x00167264 LAB_0016722c: LEA RDI,[RSP + 0x8] CALL 0x0012cad4 JMP 0x00167264 LAB_00167238: MOV ECX,EAX SHR ECX,0xa ADD ECX,0xffffd7c0 LEA RSI,[RSP + 0x8] MOV word ptr [RSI],CX AND EAX,0x3ff OR EAX,0xdc00 MOV word ptr [RSI + 0x2],AX PUSH 0x2 POP RDX MOV RDI,R14 CALL 0x00135ff3 LAB_00167264: MOV R12,RAX MOV RBX,RDX MOV RCX,-0x100000000 AND RCX,RAX JMP 0x00167200
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ int1 [16] js_string_fromCodePoint (int8 param_1,int8 param_2,int8 param_3,uint param_4,uint *param_5) { uint uVar1; int iVar2; ulong uVar3; ulong uVar4; int4 uVar6; ulong uVar5; short *psVar7; int1 auVar8 [16]; int1 auVar9 [16]; double local_58; short local_50; ushort local_4e; if ((param_4 == 1) && (param_5[2] == 0)) { uVar1 = *param_5; if (uVar1 < 0x110000) { if (uVar1 < 0x10000) { auVar9 = js_new_string_char(param_1,uVar1 & 0xffff); } else { local_50 = (short)(uVar1 >> 10) + -0x2840; local_4e = (ushort)uVar1 & 0x3ff | 0xdc00; auVar9 = js_new_string16_len(param_1,&local_50,2); } LAB_00167264: uVar3 = auVar9._0_8_ & 0xffffffff00000000; goto LAB_00167200; } psVar7 = (short *)0x0; LAB_001671da: JS_ThrowRangeError(param_1,"invalid code point"); if (psVar7 != (short *)0x0) goto LAB_001671f3; } else { psVar7 = &local_50; iVar2 = string_buffer_init(param_1,psVar7,param_4); if (iVar2 == 0) { uVar3 = (ulong)param_4; if ((int)param_4 < 1) { uVar3 = 0; } psVar7 = &local_50; uVar4 = 0; do { if (uVar3 * 0x10 + 0x10 == uVar4 + 0x10) { auVar9 = string_buffer_end(&local_50); goto LAB_00167264; } if ((int)*(int8 *)((long)param_5 + uVar4 + 8) == 0) { uVar5 = (ulong)*(uint *)((long)param_5 + uVar4); if (0x10ffff < *(uint *)((long)param_5 + uVar4)) goto LAB_001671da; } else { uVar6 = (int)((ulong)&local_58 >> 0x20); iVar2 = JS_ToFloat64(param_1,&local_58,*(int8 *)((long)param_5 + uVar4)); if (iVar2 != 0) break; if ((((local_58 < _DAT_00185828) || (DAT_001858a8 < local_58)) || (local_58 != (double)(int)local_58)) || (NAN(local_58) || NAN((double)(int)local_58))) goto LAB_001671da; uVar5 = CONCAT44(uVar6,(int)local_58); } iVar2 = string_buffer_putc(psVar7,uVar5); uVar4 = uVar4 + 0x10; } while (iVar2 == 0); } LAB_001671f3: string_buffer_free(psVar7); } auVar9 = ZEXT816(6) << 0x40; uVar3 = 0; LAB_00167200: auVar8._0_8_ = auVar9._0_8_ & 0xffffffff | uVar3; auVar8._8_8_ = auVar9._8_8_; return auVar8; }
39,844
js_string_toLowerCase
bluesky950520[P]quickjs/quickjs.c
static JSValue js_string_toLowerCase(JSContext *ctx, JSValue this_val, int argc, JSValue *argv, int to_lower) { JSValue val; StringBuffer b_s, *b = &b_s; JSString *p; int i, c, j, l; uint32_t res[LRE_CC_RES_LEN_MAX]; val = JS_ToStringCheckObject(ctx, this_val); if (JS_IsException(val)) return val; p = JS_VALUE_GET_STRING(val); if (p->len == 0) return val; if (string_buffer_init(ctx, b, p->len)) goto fail; for(i = 0; i < p->len;) { c = string_getc(p, &i); if (c == 0x3a3 && to_lower && test_final_sigma(p, i - 1)) { res[0] = 0x3c2; /* final sigma */ l = 1; } else { l = lre_case_conv(res, c, to_lower); } for(j = 0; j < l; j++) { if (string_buffer_putc(b, res[j])) goto fail; } } JS_FreeValue(ctx, val); return string_buffer_end(b); fail: JS_FreeValue(ctx, val); string_buffer_free(b); return JS_EXCEPTION; }
O1
c
js_string_toLowerCase: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movl %r9d, %r13d movq %rdi, %r14 callq 0x425ff movq %rdx, %rbx movq %rax, 0x18(%rsp) cmpl $0x6, %ebx je 0x7d522 movq 0x18(%rsp), %r15 movl $0x7fffffff, %esi # imm = 0x7FFFFFFF andl 0x4(%r15), %esi je 0x7d4db movq %r14, 0x20(%rsp) movl %esi, 0x34(%rsp) movl $0x0, 0x30(%rsp) movq $0x0, 0x38(%rsp) movq %r14, %rdi xorl %edx, %edx callq 0x20b73 movq %rax, 0x28(%rsp) testq %rax, %rax je 0x7d4e2 movl $0x0, 0x10(%rsp) testl $0x7fffffff, 0x4(%r15) # imm = 0x7FFFFFFF je 0x7d4bb leaq 0x20(%rsp), %r12 movl %r13d, 0xc(%rsp) testl %r13d, %r13d sete %bpl movq %r15, %rdi leaq 0x10(%rsp), %rsi callq 0x4c5ad movl %eax, %esi cmpl $0x3a3, %eax # imm = 0x3A3 setne %al orb %bpl, %al jne 0x7d473 movl %esi, 0x14(%rsp) movl 0x10(%rsp), %eax movq %rax, 0x40(%rsp) leal -0x1(%rax), %r13d movl %r13d, 0x8(%rsp) testl %r13d, %r13d jle 0x7d3a5 leal -0x1(%r13), %eax testb $-0x80, 0x7(%r15) jne 0x7d3b4 movzbl 0x18(%r15,%rax), %ebp movl %eax, %r13d jmp 0x7d3a7 xorl %ebp, %ebp movl %ebp, %edi callq 0x98620 testl %eax, %eax jne 0x7d38a jmp 0x7d403 movzwl 0x18(%r15,%rax,2), %ebp cmpl $0x1, %r13d je 0x7d3a0 movl %ebp, %ecx andl $0xfc00, %ecx # imm = 0xFC00 cmpl $0xdc00, %ecx # imm = 0xDC00 jne 0x7d3a0 addl $-0x2, %r13d movzwl 0x18(%r15,%r13,2), %ecx movl %ecx, %edx andl $0xfc00, %edx # imm = 0xFC00 cmpl $0xd800, %edx # imm = 0xD800 jne 0x7d3a0 shll $0xa, %ecx andl $0xffc00, %ecx # imm = 0xFFC00 andl $0x3ff, %ebp # imm = 0x3FF addl %ecx, %ebp addl $0x10000, %ebp # imm = 0x10000 jmp 0x7d3a7 movl %r13d, 0x8(%rsp) movl %ebp, %edi callq 0x98507 testl %eax, %eax je 0x7d46a movq 0x40(%rsp), %rax movl %eax, 0x8(%rsp) movl 0xc(%rsp), %r13d movl 0x4(%r15), %eax movl $0x7fffffff, %ecx # imm = 0x7FFFFFFF andl %ecx, %eax cmpl %eax, 0x8(%rsp) jge 0x7d45b movq %r15, %rdi leaq 0x8(%rsp), %rsi callq 0x4c5ad movl %eax, %ebp movl %eax, %edi callq 0x98620 testl %eax, %eax jne 0x7d421 movl %ebp, %edi callq 0x98507 testl %eax, %eax movl 0x14(%rsp), %esi jne 0x7d473 movl $0x3c2, 0x4c(%rsp) # imm = 0x3C2 movl $0x1, %eax jmp 0x7d480 movl 0xc(%rsp), %r13d movl 0x14(%rsp), %esi leaq 0x4c(%rsp), %rdi movl %r13d, %edx callq 0x98094 testl %eax, %eax jle 0x7d4a1 movl %eax, %r13d xorl %ebp, %ebp movl 0x4c(%rsp,%rbp,4), %esi movq %r12, %rdi callq 0x333f0 testl %eax, %eax jne 0x7d4f2 incq %rbp cmpq %rbp, %r13 jne 0x7d489 movl 0x4(%r15), %eax movl $0x7fffffff, %ecx # imm = 0x7FFFFFFF andl %ecx, %eax cmpl %eax, 0x10(%rsp) movl 0xc(%rsp), %r13d jl 0x7d34d movq 0x18(%rsp), %rsi movq 0x18(%r14), %rdi movq %rbx, %rdx callq 0x1d8c6 leaq 0x20(%rsp), %rdi callq 0x33444 movq %rdx, %rbx jmp 0x7d522 movq 0x18(%rsp), %rax jmp 0x7d522 movl $0x0, 0x34(%rsp) movl $0xffffffff, 0x3c(%rsp) # imm = 0xFFFFFFFF movq 0x18(%rsp), %rsi movq 0x18(%r14), %rdi movq %rbx, %rdx callq 0x1d8c6 movq 0x20(%rsp), %rdi movq 0x28(%rsp), %rsi callq 0x1cb99 movq $0x0, 0x28(%rsp) movl $0x6, %ebx xorl %eax, %eax movq %rbx, %rdx addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
js_string_toLowerCase: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 58h mov r13d, r9d mov r14, rdi call JS_ToStringCheckObject mov rbx, rdx mov [rsp+88h+var_70], rax cmp ebx, 6 jz loc_7D522 mov r15, [rsp+88h+var_70] mov esi, 7FFFFFFFh and esi, [r15+4] jz loc_7D4DB mov [rsp+88h+var_68], r14 mov [rsp+88h+var_54], esi mov [rsp+88h+var_58], 0 mov [rsp+88h+var_50], 0 mov rdi, r14 xor edx, edx call js_alloc_string mov [rsp+88h+var_60], rax test rax, rax jz loc_7D4E2 mov [rsp+88h+var_78], 0 test dword ptr [r15+4], 7FFFFFFFh jz loc_7D4BB lea r12, [rsp+88h+var_68] mov [rsp+88h+var_7C], r13d loc_7D34D: test r13d, r13d setz bpl mov rdi, r15 lea rsi, [rsp+88h+var_78] call string_getc mov esi, eax cmp eax, 3A3h setnz al or al, bpl jnz loc_7D473 mov [rsp+88h+var_74], esi mov eax, [rsp+88h+var_78] mov [rsp+88h+var_48], rax lea r13d, [rax-1] mov [rsp+88h+var_80], r13d loc_7D38A: test r13d, r13d jle short loc_7D3A5 lea eax, [r13-1] test byte ptr [r15+7], 80h jnz short loc_7D3B4 movzx ebp, byte ptr [r15+rax+18h] loc_7D3A0: mov r13d, eax jmp short loc_7D3A7 loc_7D3A5: xor ebp, ebp loc_7D3A7: mov edi, ebp call lre_is_case_ignorable test eax, eax jnz short loc_7D38A jmp short loc_7D403 loc_7D3B4: movzx ebp, word ptr [r15+rax*2+18h] cmp r13d, 1 jz short loc_7D3A0 mov ecx, ebp and ecx, 0FC00h cmp ecx, 0DC00h jnz short loc_7D3A0 add r13d, 0FFFFFFFEh movzx ecx, word ptr [r15+r13*2+18h] mov edx, ecx and edx, 0FC00h cmp edx, 0D800h jnz short loc_7D3A0 shl ecx, 0Ah and ecx, 0FFC00h and ebp, 3FFh add ebp, ecx add ebp, 10000h jmp short loc_7D3A7 loc_7D403: mov [rsp+88h+var_80], r13d mov edi, ebp call lre_is_cased test eax, eax jz short loc_7D46A mov rax, [rsp+88h+var_48] mov [rsp+88h+var_80], eax mov r13d, [rsp+88h+var_7C] loc_7D421: mov eax, [r15+4] mov ecx, 7FFFFFFFh and eax, ecx cmp [rsp+88h+var_80], eax jge short loc_7D45B mov rdi, r15 lea rsi, [rsp+88h+var_80] call string_getc mov ebp, eax mov edi, eax call lre_is_case_ignorable test eax, eax jnz short loc_7D421 mov edi, ebp call lre_is_cased test eax, eax mov esi, [rsp+88h+var_74] jnz short loc_7D473 loc_7D45B: mov [rsp+88h+var_3C], 3C2h mov eax, 1 jmp short loc_7D480 loc_7D46A: mov r13d, [rsp+88h+var_7C] mov esi, [rsp+88h+var_74] loc_7D473: lea rdi, [rsp+88h+var_3C] mov edx, r13d call lre_case_conv loc_7D480: test eax, eax jle short loc_7D4A1 mov r13d, eax xor ebp, ebp loc_7D489: mov esi, [rsp+rbp*4+88h+var_3C] mov rdi, r12 call string_buffer_putc test eax, eax jnz short loc_7D4F2 inc rbp cmp r13, rbp jnz short loc_7D489 loc_7D4A1: mov eax, [r15+4] mov ecx, 7FFFFFFFh and eax, ecx cmp [rsp+88h+var_78], eax mov r13d, [rsp+88h+var_7C] jl loc_7D34D loc_7D4BB: mov rsi, [rsp+88h+var_70] mov rdi, [r14+18h] mov rdx, rbx call JS_FreeValueRT lea rdi, [rsp+88h+var_68] call string_buffer_end mov rbx, rdx jmp short loc_7D522 loc_7D4DB: mov rax, [rsp+88h+var_70] jmp short loc_7D522 loc_7D4E2: mov [rsp+88h+var_54], 0 mov dword ptr [rsp+88h+var_50+4], 0FFFFFFFFh loc_7D4F2: mov rsi, [rsp+88h+var_70] mov rdi, [r14+18h] mov rdx, rbx call JS_FreeValueRT mov rdi, [rsp+88h+var_68] mov rsi, [rsp+88h+var_60] call js_free mov [rsp+88h+var_60], 0 mov ebx, 6 xor eax, eax loc_7D522: mov rdx, rbx add rsp, 58h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
char * js_string_toLowerCase( 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) { unsigned int v14; // r13d char *result; // rax long long v16; // rdx long long v17; // rbx char *v18; // r15 long long v19; // rsi unsigned int v20; // eax long long v21; // rsi long long v22; // r13 long long v23; // rax unsigned int v24; // ebp long long v26; // rbp int is_cased; // eax int v28; // eax long long v29; // r13 long long v30; // rbp int v31; // [rsp+8h] [rbp-80h] BYREF unsigned int v32; // [rsp+Ch] [rbp-7Ch] int v33; // [rsp+10h] [rbp-78h] BYREF unsigned int v34; // [rsp+14h] [rbp-74h] char *v35; // [rsp+18h] [rbp-70h] long long v36; // [rsp+20h] [rbp-68h] BYREF long long v37; // [rsp+28h] [rbp-60h] int v38; // [rsp+30h] [rbp-58h] int v39; // [rsp+34h] [rbp-54h] long long v40; // [rsp+38h] [rbp-50h] long long v41; // [rsp+40h] [rbp-48h] _DWORD v42[15]; // [rsp+4Ch] [rbp-3Ch] BYREF v14 = a6; result = (char *)JS_ToStringCheckObject(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14); v17 = v16; v35 = result; if ( (_DWORD)v16 == 6 ) return result; v18 = v35; v19 = *((_DWORD *)v35 + 1) & 0x7FFFFFFF; if ( (*((_DWORD *)v35 + 1) & 0x7FFFFFFF) == 0 ) return v35; v36 = a1; v39 = v19; v38 = 0; v40 = 0LL; v37 = js_alloc_string(a1, v19, 0); if ( !v37 ) { v39 = 0; HIDWORD(v40) = -1; goto LABEL_35; } v33 = 0; if ( (*((_DWORD *)v35 + 1) & 0x7FFFFFFF) == 0 ) { LABEL_32: JS_FreeValueRT(*(_QWORD *)(a1 + 24), v35, v17); return (char *)string_buffer_end((long long)&v36); } v32 = v14; while ( 2 ) { v20 = string_getc((long long)v18, &v33); v21 = v20; if ( v14 == 0 || v20 != 931 ) goto LABEL_26; v34 = v20; v41 = (unsigned int)v33; LODWORD(v22) = v33 - 1; v31 = v33 - 1; do { if ( (int)v22 <= 0 ) { v24 = 0; } else { v23 = (unsigned int)(v22 - 1); if ( v18[7] >= 0 ) { v24 = (unsigned __int8)v18[v23 + 24]; LABEL_11: LODWORD(v22) = v23; continue; } v24 = *(unsigned __int16 *)&v18[2 * v23 + 24]; if ( (_DWORD)v22 == 1 ) goto LABEL_11; if ( (v24 & 0xFC00) != 0xDC00 ) goto LABEL_11; v22 = (unsigned int)(v22 - 2); if ( (*(_WORD *)&v18[2 * v22 + 24] & 0xFC00) != 0xD800 ) goto LABEL_11; v24 = ((*(unsigned __int16 *)&v18[2 * v22 + 24] << 10) & 0xFFC00) + (v24 & 0x3FF) + 0x10000; } } while ( (unsigned int)lre_is_case_ignorable(v24) ); v31 = v22; if ( !(unsigned int)lre_is_cased(v24) ) { v14 = v32; v21 = v34; LABEL_26: v28 = lre_case_conv(v42, v21, v14); goto LABEL_27; } v31 = v41; v14 = v32; while ( v31 < (*((_DWORD *)v18 + 1) & 0x7FFFFFFF) ) { v26 = (unsigned int)string_getc((long long)v18, &v31); if ( !(unsigned int)lre_is_case_ignorable(v26) ) { is_cased = lre_is_cased((unsigned int)v26); v21 = v34; if ( is_cased ) goto LABEL_26; break; } } v42[0] = 962; v28 = 1; LABEL_27: if ( v28 <= 0 ) { LABEL_31: v14 = v32; if ( v33 >= (*((_DWORD *)v18 + 1) & 0x7FFFFFFF) ) goto LABEL_32; continue; } break; } v29 = (unsigned int)v28; v30 = 0LL; while ( !(unsigned int)string_buffer_putc((long long)&v36, v42[v30]) ) { if ( v29 == ++v30 ) goto LABEL_31; } LABEL_35: JS_FreeValueRT(*(_QWORD *)(a1 + 24), v35, v17); js_free(v36, v37); return 0LL; }
js_string_toLowerCase: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x58 MOV R13D,R9D MOV R14,RDI CALL 0x001425ff MOV RBX,RDX MOV qword ptr [RSP + 0x18],RAX CMP EBX,0x6 JZ 0x0017d522 MOV R15,qword ptr [RSP + 0x18] MOV ESI,0x7fffffff AND ESI,dword ptr [R15 + 0x4] JZ 0x0017d4db MOV qword ptr [RSP + 0x20],R14 MOV dword ptr [RSP + 0x34],ESI MOV dword ptr [RSP + 0x30],0x0 MOV qword ptr [RSP + 0x38],0x0 MOV RDI,R14 XOR EDX,EDX CALL 0x00120b73 MOV qword ptr [RSP + 0x28],RAX TEST RAX,RAX JZ 0x0017d4e2 MOV dword ptr [RSP + 0x10],0x0 TEST dword ptr [R15 + 0x4],0x7fffffff JZ 0x0017d4bb LEA R12,[RSP + 0x20] MOV dword ptr [RSP + 0xc],R13D LAB_0017d34d: TEST R13D,R13D SETZ BPL MOV RDI,R15 LEA RSI,[RSP + 0x10] CALL 0x0014c5ad MOV ESI,EAX CMP EAX,0x3a3 SETNZ AL OR AL,BPL JNZ 0x0017d473 MOV dword ptr [RSP + 0x14],ESI MOV EAX,dword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x40],RAX LEA R13D,[RAX + -0x1] MOV dword ptr [RSP + 0x8],R13D LAB_0017d38a: TEST R13D,R13D JLE 0x0017d3a5 LEA EAX,[R13 + -0x1] TEST byte ptr [R15 + 0x7],0x80 JNZ 0x0017d3b4 MOVZX EBP,byte ptr [R15 + RAX*0x1 + 0x18] LAB_0017d3a0: MOV R13D,EAX JMP 0x0017d3a7 LAB_0017d3a5: XOR EBP,EBP LAB_0017d3a7: MOV EDI,EBP CALL 0x00198620 TEST EAX,EAX JNZ 0x0017d38a JMP 0x0017d403 LAB_0017d3b4: MOVZX EBP,word ptr [R15 + RAX*0x2 + 0x18] CMP R13D,0x1 JZ 0x0017d3a0 MOV ECX,EBP AND ECX,0xfc00 CMP ECX,0xdc00 JNZ 0x0017d3a0 ADD R13D,-0x2 MOVZX ECX,word ptr [R15 + R13*0x2 + 0x18] MOV EDX,ECX AND EDX,0xfc00 CMP EDX,0xd800 JNZ 0x0017d3a0 SHL ECX,0xa AND ECX,0xffc00 AND EBP,0x3ff ADD EBP,ECX ADD EBP,0x10000 JMP 0x0017d3a7 LAB_0017d403: MOV dword ptr [RSP + 0x8],R13D MOV EDI,EBP CALL 0x00198507 TEST EAX,EAX JZ 0x0017d46a MOV RAX,qword ptr [RSP + 0x40] MOV dword ptr [RSP + 0x8],EAX MOV R13D,dword ptr [RSP + 0xc] LAB_0017d421: MOV EAX,dword ptr [R15 + 0x4] MOV ECX,0x7fffffff AND EAX,ECX CMP dword ptr [RSP + 0x8],EAX JGE 0x0017d45b MOV RDI,R15 LEA RSI,[RSP + 0x8] CALL 0x0014c5ad MOV EBP,EAX MOV EDI,EAX CALL 0x00198620 TEST EAX,EAX JNZ 0x0017d421 MOV EDI,EBP CALL 0x00198507 TEST EAX,EAX MOV ESI,dword ptr [RSP + 0x14] JNZ 0x0017d473 LAB_0017d45b: MOV dword ptr [RSP + 0x4c],0x3c2 MOV EAX,0x1 JMP 0x0017d480 LAB_0017d46a: MOV R13D,dword ptr [RSP + 0xc] MOV ESI,dword ptr [RSP + 0x14] LAB_0017d473: LEA RDI,[RSP + 0x4c] MOV EDX,R13D CALL 0x00198094 LAB_0017d480: TEST EAX,EAX JLE 0x0017d4a1 MOV R13D,EAX XOR EBP,EBP LAB_0017d489: MOV ESI,dword ptr [RSP + RBP*0x4 + 0x4c] MOV RDI,R12 CALL 0x001333f0 TEST EAX,EAX JNZ 0x0017d4f2 INC RBP CMP R13,RBP JNZ 0x0017d489 LAB_0017d4a1: MOV EAX,dword ptr [R15 + 0x4] MOV ECX,0x7fffffff AND EAX,ECX CMP dword ptr [RSP + 0x10],EAX MOV R13D,dword ptr [RSP + 0xc] JL 0x0017d34d LAB_0017d4bb: MOV RSI,qword ptr [RSP + 0x18] MOV RDI,qword ptr [R14 + 0x18] MOV RDX,RBX CALL 0x0011d8c6 LEA RDI,[RSP + 0x20] CALL 0x00133444 MOV RBX,RDX JMP 0x0017d522 LAB_0017d4db: MOV RAX,qword ptr [RSP + 0x18] JMP 0x0017d522 LAB_0017d4e2: MOV dword ptr [RSP + 0x34],0x0 MOV dword ptr [RSP + 0x3c],0xffffffff LAB_0017d4f2: MOV RSI,qword ptr [RSP + 0x18] MOV RDI,qword ptr [R14 + 0x18] MOV RDX,RBX CALL 0x0011d8c6 MOV RDI,qword ptr [RSP + 0x20] MOV RSI,qword ptr [RSP + 0x28] CALL 0x0011cb99 MOV qword ptr [RSP + 0x28],0x0 MOV EBX,0x6 XOR EAX,EAX LAB_0017d522: MOV RDX,RBX ADD RSP,0x58 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int1 [16] js_string_toLowerCase(long param_1) { ushort uVar1; ushort uVar2; int iVar3; uint uVar4; int iVar5; int iVar6; int4 uVar7; uint uVar8; long lVar9; ulong uVar10; int in_R9D; bool bVar11; int1 auVar12 [16]; uint local_80; int local_7c; uint local_78; int local_74; long local_70; long local_68; long local_60; int4 local_58; uint local_54; int8 local_50; ulong local_48; int4 local_3c [3]; auVar12 = JS_ToStringCheckObject(); lVar9 = auVar12._0_8_; if ((auVar12._8_4_ != 6) && (local_54 = *(uint *)(lVar9 + 4) & 0x7fffffff, local_54 != 0)) { local_58 = 0; local_50 = 0; local_70 = lVar9; local_68 = param_1; local_60 = js_alloc_string(param_1,local_54,0); if (local_60 == 0) { local_54 = 0; local_50 = CONCAT44(0xffffffff,(int4)local_50); LAB_0017d4f2: JS_FreeValueRT(*(int8 *)(param_1 + 0x18),local_70,auVar12._8_8_); js_free(local_68,local_60); auVar12 = ZEXT816(6) << 0x40; } else { local_78 = 0; if ((*(uint *)(lVar9 + 4) & 0x7fffffff) != 0) { local_7c = in_R9D; do { iVar5 = local_7c; bVar11 = local_7c != 0; iVar3 = string_getc(lVar9,&local_78); if (iVar3 == 0x3a3 && bVar11) { local_48 = (ulong)local_78; local_80 = local_78 - 1; uVar10 = (ulong)local_80; local_74 = iVar3; do { iVar5 = (int)uVar10; if (iVar5 < 1) { uVar8 = 0; } else { uVar4 = iVar5 - 1; if ((*(byte *)(lVar9 + 7) & 0x80) == 0) { uVar8 = (uint)*(byte *)(lVar9 + 0x18 + (ulong)uVar4); } else { uVar1 = *(ushort *)(lVar9 + 0x18 + (ulong)uVar4 * 2); uVar8 = (uint)uVar1; if ((iVar5 != 1) && ((uVar1 & 0xfc00) == 0xdc00)) { uVar10 = (ulong)(iVar5 - 2); uVar2 = *(ushort *)(lVar9 + 0x18 + uVar10 * 2); if ((uVar2 & 0xfc00) == 0xd800) { uVar8 = (uVar1 & 0x3ff) + (uVar2 & 0x3ff) * 0x400 + 0x10000; goto LAB_0017d3a7; } } } uVar10 = (ulong)uVar4; } LAB_0017d3a7: iVar5 = lre_is_case_ignorable(uVar8); } while (iVar5 != 0); local_80 = (uint)uVar10; iVar6 = lre_is_cased(uVar8); iVar5 = local_7c; iVar3 = local_74; if (iVar6 == 0) goto LAB_0017d473; local_80 = (uint)local_48; do { if ((int)(*(uint *)(lVar9 + 4) & 0x7fffffff) <= (int)local_80) goto LAB_0017d45b; uVar7 = string_getc(lVar9,&local_80); iVar3 = lre_is_case_ignorable(uVar7); } while (iVar3 != 0); iVar6 = lre_is_cased(uVar7); iVar3 = local_74; if (iVar6 != 0) goto LAB_0017d473; LAB_0017d45b: local_3c[0] = 0x3c2; uVar8 = 1; } else { LAB_0017d473: uVar8 = lre_case_conv(local_3c,iVar3,iVar5); } if (0 < (int)uVar8) { uVar10 = 0; do { iVar5 = string_buffer_putc(&local_68,local_3c[uVar10]); if (iVar5 != 0) goto LAB_0017d4f2; uVar10 = uVar10 + 1; } while (uVar8 != uVar10); } } while ((int)local_78 < (int)(*(uint *)(lVar9 + 4) & 0x7fffffff)); } JS_FreeValueRT(*(int8 *)(param_1 + 0x18),local_70,auVar12._8_8_); auVar12 = string_buffer_end(&local_68); } } return auVar12; }
39,845
js_string_toLowerCase
bluesky950520[P]quickjs/quickjs.c
static JSValue js_string_toLowerCase(JSContext *ctx, JSValue this_val, int argc, JSValue *argv, int to_lower) { JSValue val; StringBuffer b_s, *b = &b_s; JSString *p; int i, c, j, l; uint32_t res[LRE_CC_RES_LEN_MAX]; val = JS_ToStringCheckObject(ctx, this_val); if (JS_IsException(val)) return val; p = JS_VALUE_GET_STRING(val); if (p->len == 0) return val; if (string_buffer_init(ctx, b, p->len)) goto fail; for(i = 0; i < p->len;) { c = string_getc(p, &i); if (c == 0x3a3 && to_lower && test_final_sigma(p, i - 1)) { res[0] = 0x3c2; /* final sigma */ l = 1; } else { l = lre_case_conv(res, c, to_lower); } for(j = 0; j < l; j++) { if (string_buffer_putc(b, res[j])) goto fail; } } JS_FreeValue(ctx, val); return string_buffer_end(b); fail: JS_FreeValue(ctx, val); string_buffer_free(b); return JS_EXCEPTION; }
O2
c
js_string_toLowerCase: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movl %r9d, %ebp movq %rdi, %r15 callq 0x3a290 movq %rax, %r14 movq %rdx, %rbx cmpl $0x6, %ebx je 0x69294 movl $0x7fffffff, %edx # imm = 0x7FFFFFFF andl 0x4(%r14), %edx je 0x69294 movl %ebp, (%rsp) leaq 0x28(%rsp), %rsi movq %r15, %rdi callq 0x2e042 testl %eax, %eax je 0x692a9 movq %r15, %rdi movq %r14, %rsi movq %rbx, %rdx callq 0x1801e leaq 0x28(%rsp), %rdi callq 0x2ef01 pushq $0x6 popq %rbx xorl %r14d, %r14d movq %r14, %rax movq %rbx, %rdx addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x4(%rsp), %rax andl $0x0, (%rax) movl $0x7fffffff, %edx # imm = 0x7FFFFFFF leaq 0x28(%rsp), %r12 xorl %eax, %eax movl 0x4(%r14), %ecx andl %edx, %ecx cmpl %ecx, %eax movl (%rsp), %r13d jge 0x69432 testl %r13d, %r13d sete %bpl movq %r14, %rdi leaq 0x4(%rsp), %rsi callq 0x41a28 movl %eax, %esi cmpl $0x3a3, %eax # imm = 0x3A3 setne %al orb %bpl, %al jne 0x693ea movl %esi, 0x8(%rsp) movl 0x4(%rsp), %eax movq %rax, 0x10(%rsp) leal -0x1(%rax), %ebp testl %ebp, %ebp jle 0x6931e leal -0x1(%rbp), %eax testb $-0x80, 0x7(%r14) jne 0x6932f movzbl 0x18(%r14,%rax), %r13d movl %eax, %ebp jmp 0x69321 xorl %r13d, %r13d movl %r13d, %edi callq 0x7f3de testl %eax, %eax jne 0x69306 jmp 0x69380 movzwl 0x18(%r14,%rax,2), %r13d cmpl $0x1, %ebp je 0x6931a movl %r13d, %ecx andl $0xfc00, %ecx # imm = 0xFC00 cmpl $0xdc00, %ecx # imm = 0xDC00 jne 0x6931a addl $-0x2, %ebp movzwl 0x18(%r14,%rbp,2), %ecx movl %ecx, %edx andl $0xfc00, %edx # imm = 0xFC00 cmpl $0xd800, %edx # imm = 0xD800 jne 0x6931a shll $0xa, %ecx andl $0xffc00, %ecx # imm = 0xFFC00 andl $0x3ff, %r13d # imm = 0x3FF addl %ecx, %r13d addl $0x10000, %r13d # imm = 0x10000 jmp 0x69321 movl %r13d, %edi callq 0x7f2cb testl %eax, %eax je 0x693e2 movq 0x10(%rsp), %rax movl %eax, 0xc(%rsp) movl $0x7fffffff, %ebp # imm = 0x7FFFFFFF movl 0x4(%r14), %eax andl %ebp, %eax cmpl %eax, 0xc(%rsp) jge 0x693d5 movq %r14, %rdi leaq 0xc(%rsp), %rsi callq 0x41a28 movl %eax, %r13d movl %eax, %edi callq 0x7f3de testl %eax, %eax jne 0x6939a movl %r13d, %edi callq 0x7f2cb testl %eax, %eax movl (%rsp), %r13d movl 0x8(%rsp), %esi jne 0x693ea movl $0x3c2, 0x1c(%rsp) # imm = 0x3C2 pushq $0x1 popq %rax jmp 0x693f7 movl (%rsp), %r13d movl 0x8(%rsp), %esi leaq 0x1c(%rsp), %rdi movl %r13d, %edx callq 0x7eee8 movl %eax, %r13d testl %eax, %eax movl $0x0, %eax cmovlel %eax, %r13d xorl %ebp, %ebp cmpq %rbp, %r13 je 0x69424 movl 0x1c(%rsp,%rbp,4), %esi movq %r12, %rdi callq 0x2ca82 incq %rbp testl %eax, %eax je 0x69407 jmp 0x69276 movl 0x4(%rsp), %eax movl $0x7fffffff, %edx # imm = 0x7FFFFFFF jmp 0x692bd movq %r15, %rdi movq %r14, %rsi movq %rbx, %rdx callq 0x1801e leaq 0x28(%rsp), %rdi callq 0x2cad4 movq %rax, %r14 movq %rdx, %rbx jmp 0x69294
js_string_toLowerCase: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h mov ebp, r9d mov r15, rdi call JS_ToStringCheckObject mov r14, rax mov rbx, rdx cmp ebx, 6 jz short loc_69294 mov edx, 7FFFFFFFh and edx, [r14+4] jz short loc_69294 mov [rsp+78h+var_78], ebp lea rsi, [rsp+78h+var_50] mov rdi, r15 call string_buffer_init test eax, eax jz short loc_692A9 loc_69276: mov rdi, r15 mov rsi, r14 mov rdx, rbx call JS_FreeValue lea rdi, [rsp+78h+var_50] call string_buffer_free push 6 pop rbx xor r14d, r14d loc_69294: mov rax, r14 mov rdx, rbx add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_692A9: lea rax, [rsp+78h+var_74] and dword ptr [rax], 0 mov edx, 7FFFFFFFh lea r12, [rsp+78h+var_50] xor eax, eax loc_692BD: mov ecx, [r14+4] and ecx, edx cmp eax, ecx mov r13d, [rsp+78h+var_78] jge loc_69432 test r13d, r13d setz bpl mov rdi, r14 lea rsi, [rsp+78h+var_74] call string_getc mov esi, eax cmp eax, 3A3h setnz al or al, bpl jnz loc_693EA mov [rsp+78h+var_70], esi mov eax, [rsp+78h+var_74] mov [rsp+78h+var_68], rax lea ebp, [rax-1] loc_69306: test ebp, ebp jle short loc_6931E lea eax, [rbp-1] test byte ptr [r14+7], 80h jnz short loc_6932F movzx r13d, byte ptr [r14+rax+18h] loc_6931A: mov ebp, eax jmp short loc_69321 loc_6931E: xor r13d, r13d loc_69321: mov edi, r13d call lre_is_case_ignorable test eax, eax jnz short loc_69306 jmp short loc_69380 loc_6932F: movzx r13d, word ptr [r14+rax*2+18h] cmp ebp, 1 jz short loc_6931A mov ecx, r13d and ecx, 0FC00h cmp ecx, 0DC00h jnz short loc_6931A add ebp, 0FFFFFFFEh movzx ecx, word ptr [r14+rbp*2+18h] mov edx, ecx and edx, 0FC00h cmp edx, 0D800h jnz short loc_6931A shl ecx, 0Ah and ecx, 0FFC00h and r13d, 3FFh add r13d, ecx add r13d, 10000h jmp short loc_69321 loc_69380: mov edi, r13d call lre_is_cased test eax, eax jz short loc_693E2 mov rax, [rsp+78h+var_68] mov [rsp+78h+var_6C], eax mov ebp, 7FFFFFFFh loc_6939A: mov eax, [r14+4] and eax, ebp cmp [rsp+78h+var_6C], eax jge short loc_693D5 mov rdi, r14 lea rsi, [rsp+78h+var_6C] call string_getc mov r13d, eax mov edi, eax call lre_is_case_ignorable test eax, eax jnz short loc_6939A mov edi, r13d call lre_is_cased test eax, eax mov r13d, [rsp+78h+var_78] mov esi, [rsp+78h+var_70] jnz short loc_693EA loc_693D5: mov [rsp+78h+var_5C], 3C2h push 1 pop rax jmp short loc_693F7 loc_693E2: mov r13d, [rsp+78h+var_78] mov esi, [rsp+78h+var_70] loc_693EA: lea rdi, [rsp+78h+var_5C] mov edx, r13d call lre_case_conv loc_693F7: mov r13d, eax test eax, eax mov eax, 0 cmovle r13d, eax xor ebp, ebp loc_69407: cmp r13, rbp jz short loc_69424 mov esi, [rsp+rbp*4+78h+var_5C] mov rdi, r12 call string_buffer_putc inc rbp test eax, eax jz short loc_69407 jmp loc_69276 loc_69424: mov eax, [rsp+78h+var_74] mov edx, 7FFFFFFFh jmp loc_692BD loc_69432: mov rdi, r15 mov rsi, r14 mov rdx, rbx call JS_FreeValue lea rdi, [rsp+78h+var_50] call string_buffer_end mov r14, rax mov rbx, rdx jmp loc_69294
long long js_string_toLowerCase( 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) { unsigned int v14; // ebp long long v15; // rax long long v16; // r14 long long v17; // rdx long long v18; // rbx int v20; // eax unsigned int v21; // r13d unsigned int v22; // eax long long v23; // rsi long long v24; // rbp long long v25; // rax unsigned int v26; // r13d long long v28; // r13 int is_cased; // eax int v30; // eax long long v31; // r13 long long v32; // rbp unsigned int v34; // [rsp+0h] [rbp-78h] unsigned int v35; // [rsp+4h] [rbp-74h] BYREF unsigned int v36; // [rsp+8h] [rbp-70h] int v37; // [rsp+Ch] [rbp-6Ch] BYREF long long v38; // [rsp+10h] [rbp-68h] _DWORD v39[3]; // [rsp+1Ch] [rbp-5Ch] BYREF long long v40[10]; // [rsp+28h] [rbp-50h] BYREF v14 = a6; v15 = JS_ToStringCheckObject(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14); v16 = v15; v18 = v17; if ( (_DWORD)v17 != 6 && (*(_DWORD *)(v15 + 4) & 0x7FFFFFFF) != 0 ) { v34 = v14; if ( (unsigned int)string_buffer_init(a1, (long long)v40, *(_DWORD *)(v15 + 4) & 0x7FFFFFFF) ) { LABEL_4: JS_FreeValue(a1, v16, v18); string_buffer_free(v40); return 0LL; } v35 = 0; v20 = 0; LABEL_7: v21 = v34; if ( v20 >= (*(_DWORD *)(v16 + 4) & 0x7FFFFFFF) ) { JS_FreeValue(a1, v16, v18); return string_buffer_end(v40); } v22 = string_getc(v16, (int *)&v35); v23 = v22; if ( v34 == 0 || v22 != 931 ) goto LABEL_28; v36 = v22; v38 = v35; LODWORD(v24) = v35 - 1; while ( 1 ) { if ( (int)v24 <= 0 ) { v26 = 0; } else { v25 = (unsigned int)(v24 - 1); if ( *(char *)(v16 + 7) < 0 ) { v26 = *(unsigned __int16 *)(v16 + 2 * v25 + 24); if ( (_DWORD)v24 != 1 && (v26 & 0xFC00) == 0xDC00 ) { v24 = (unsigned int)(v24 - 2); if ( (*(_WORD *)(v16 + 2 * v24 + 24) & 0xFC00) == 0xD800 ) { v26 = ((*(unsigned __int16 *)(v16 + 2 * v24 + 24) << 10) & 0xFFC00) + (v26 & 0x3FF) + 0x10000; goto LABEL_15; } } } else { v26 = *(unsigned __int8 *)(v16 + v25 + 24); } LODWORD(v24) = v25; } LABEL_15: if ( !(unsigned int)lre_is_case_ignorable(v26) ) { if ( !(unsigned int)lre_is_cased(v26) ) { v21 = v34; v23 = v36; LABEL_28: v30 = lre_case_conv(v39, v23, v21); goto LABEL_29; } v37 = v38; while ( v37 < (*(_DWORD *)(v16 + 4) & 0x7FFFFFFF) ) { v28 = (unsigned int)string_getc(v16, &v37); if ( !(unsigned int)lre_is_case_ignorable(v28) ) { is_cased = lre_is_cased((unsigned int)v28); v21 = v34; v23 = v36; if ( is_cased ) goto LABEL_28; break; } } v39[0] = 962; v30 = 1; LABEL_29: v31 = (unsigned int)v30; if ( v30 <= 0 ) v31 = 0LL; v32 = 0LL; while ( v31 != v32 ) { if ( (unsigned int)string_buffer_putc((long long)v40, v39[v32++]) ) goto LABEL_4; } v20 = v35; goto LABEL_7; } } } return v16; }
js_string_toLowerCase: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 MOV EBP,R9D MOV R15,RDI CALL 0x0013a290 MOV R14,RAX MOV RBX,RDX CMP EBX,0x6 JZ 0x00169294 MOV EDX,0x7fffffff AND EDX,dword ptr [R14 + 0x4] JZ 0x00169294 MOV dword ptr [RSP],EBP LEA RSI,[RSP + 0x28] MOV RDI,R15 CALL 0x0012e042 TEST EAX,EAX JZ 0x001692a9 LAB_00169276: MOV RDI,R15 MOV RSI,R14 MOV RDX,RBX CALL 0x0011801e LEA RDI,[RSP + 0x28] CALL 0x0012ef01 PUSH 0x6 POP RBX XOR R14D,R14D LAB_00169294: MOV RAX,R14 MOV RDX,RBX ADD RSP,0x48 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001692a9: LEA RAX,[RSP + 0x4] AND dword ptr [RAX],0x0 MOV EDX,0x7fffffff LEA R12,[RSP + 0x28] XOR EAX,EAX LAB_001692bd: MOV ECX,dword ptr [R14 + 0x4] AND ECX,EDX CMP EAX,ECX MOV R13D,dword ptr [RSP] JGE 0x00169432 TEST R13D,R13D SETZ BPL MOV RDI,R14 LEA RSI,[RSP + 0x4] CALL 0x00141a28 MOV ESI,EAX CMP EAX,0x3a3 SETNZ AL OR AL,BPL JNZ 0x001693ea MOV dword ptr [RSP + 0x8],ESI MOV EAX,dword ptr [RSP + 0x4] MOV qword ptr [RSP + 0x10],RAX LEA EBP,[RAX + -0x1] LAB_00169306: TEST EBP,EBP JLE 0x0016931e LEA EAX,[RBP + -0x1] TEST byte ptr [R14 + 0x7],0x80 JNZ 0x0016932f MOVZX R13D,byte ptr [R14 + RAX*0x1 + 0x18] LAB_0016931a: MOV EBP,EAX JMP 0x00169321 LAB_0016931e: XOR R13D,R13D LAB_00169321: MOV EDI,R13D CALL 0x0017f3de TEST EAX,EAX JNZ 0x00169306 JMP 0x00169380 LAB_0016932f: MOVZX R13D,word ptr [R14 + RAX*0x2 + 0x18] CMP EBP,0x1 JZ 0x0016931a MOV ECX,R13D AND ECX,0xfc00 CMP ECX,0xdc00 JNZ 0x0016931a ADD EBP,-0x2 MOVZX ECX,word ptr [R14 + RBP*0x2 + 0x18] MOV EDX,ECX AND EDX,0xfc00 CMP EDX,0xd800 JNZ 0x0016931a SHL ECX,0xa AND ECX,0xffc00 AND R13D,0x3ff ADD R13D,ECX ADD R13D,0x10000 JMP 0x00169321 LAB_00169380: MOV EDI,R13D CALL 0x0017f2cb TEST EAX,EAX JZ 0x001693e2 MOV RAX,qword ptr [RSP + 0x10] MOV dword ptr [RSP + 0xc],EAX MOV EBP,0x7fffffff LAB_0016939a: MOV EAX,dword ptr [R14 + 0x4] AND EAX,EBP CMP dword ptr [RSP + 0xc],EAX JGE 0x001693d5 MOV RDI,R14 LEA RSI,[RSP + 0xc] CALL 0x00141a28 MOV R13D,EAX MOV EDI,EAX CALL 0x0017f3de TEST EAX,EAX JNZ 0x0016939a MOV EDI,R13D CALL 0x0017f2cb TEST EAX,EAX MOV R13D,dword ptr [RSP] MOV ESI,dword ptr [RSP + 0x8] JNZ 0x001693ea LAB_001693d5: MOV dword ptr [RSP + 0x1c],0x3c2 PUSH 0x1 POP RAX JMP 0x001693f7 LAB_001693e2: MOV R13D,dword ptr [RSP] MOV ESI,dword ptr [RSP + 0x8] LAB_001693ea: LEA RDI,[RSP + 0x1c] MOV EDX,R13D CALL 0x0017eee8 LAB_001693f7: MOV R13D,EAX TEST EAX,EAX MOV EAX,0x0 CMOVLE R13D,EAX XOR EBP,EBP LAB_00169407: CMP R13,RBP JZ 0x00169424 MOV ESI,dword ptr [RSP + RBP*0x4 + 0x1c] MOV RDI,R12 CALL 0x0012ca82 INC RBP TEST EAX,EAX JZ 0x00169407 JMP 0x00169276 LAB_00169424: MOV EAX,dword ptr [RSP + 0x4] MOV EDX,0x7fffffff JMP 0x001692bd LAB_00169432: MOV RDI,R15 MOV RSI,R14 MOV RDX,RBX CALL 0x0011801e LEA RDI,[RSP + 0x28] CALL 0x0012cad4 MOV R14,RAX MOV RBX,RDX JMP 0x00169294
int1 [16] js_string_toLowerCase(int8 param_1) { ushort uVar1; int iVar2; uint uVar3; int iVar4; int4 uVar5; long lVar6; ulong uVar7; ulong uVar8; int in_R9D; uint uVar9; int1 auVar10 [16]; uint local_74; int local_70; int local_6c; ulong local_68; int4 local_5c [3]; int1 local_50 [32]; auVar10 = JS_ToStringCheckObject(); lVar6 = auVar10._0_8_; if ((auVar10._8_4_ != 6) && ((*(uint *)(lVar6 + 4) & 0x7fffffff) != 0)) { iVar2 = string_buffer_init(param_1,local_50); if (iVar2 == 0) { local_74 = 0; while ((int)local_74 < (int)(*(uint *)(lVar6 + 4) & 0x7fffffff)) { iVar2 = string_getc(lVar6,&local_74); if (iVar2 == 0x3a3 && in_R9D != 0) { local_68 = (ulong)local_74; uVar7 = (ulong)(local_74 - 1); local_70 = iVar2; do { iVar2 = (int)uVar7; if (iVar2 < 1) { uVar9 = 0; } else { uVar3 = iVar2 - 1; if ((*(byte *)(lVar6 + 7) & 0x80) == 0) { uVar9 = (uint)*(byte *)(lVar6 + 0x18 + (ulong)uVar3); } else { uVar9 = (uint)*(ushort *)(lVar6 + 0x18 + (ulong)uVar3 * 2); if ((iVar2 != 1) && ((uVar9 & 0xfc00) == 0xdc00)) { uVar7 = (ulong)(iVar2 - 2); uVar1 = *(ushort *)(lVar6 + 0x18 + uVar7 * 2); if ((uVar1 & 0xfc00) == 0xd800) { uVar9 = (uVar9 & 0x3ff) + (uVar1 & 0x3ff) * 0x400 + 0x10000; goto LAB_00169321; } } } uVar7 = (ulong)uVar3; } LAB_00169321: iVar2 = lre_is_case_ignorable(uVar9); } while (iVar2 != 0); iVar4 = lre_is_cased(uVar9); iVar2 = local_70; if (iVar4 == 0) goto LAB_001693ea; local_6c = (int)local_68; do { if ((int)(*(uint *)(lVar6 + 4) & 0x7fffffff) <= local_6c) goto LAB_001693d5; uVar5 = string_getc(lVar6,&local_6c); iVar2 = lre_is_case_ignorable(uVar5); } while (iVar2 != 0); iVar4 = lre_is_cased(uVar5); iVar2 = local_70; if (iVar4 != 0) goto LAB_001693ea; LAB_001693d5: local_5c[0] = 0x3c2; uVar9 = 1; } else { LAB_001693ea: uVar9 = lre_case_conv(local_5c,iVar2,in_R9D); } uVar7 = (ulong)uVar9; if ((int)uVar9 < 1) { uVar7 = 0; } uVar8 = 0; while (uVar7 != uVar8) { iVar2 = string_buffer_putc(local_50,local_5c[uVar8]); uVar8 = uVar8 + 1; if (iVar2 != 0) goto LAB_00169276; } } JS_FreeValue(param_1,lVar6,auVar10._8_8_); auVar10 = string_buffer_end(local_50); } else { LAB_00169276: JS_FreeValue(param_1,lVar6,auVar10._8_8_); string_buffer_free(local_50); auVar10 = ZEXT816(6) << 0x40; } } return auVar10; }
39,846
get_proxy_method
bluesky950520[P]quickjs/quickjs.c
static JSProxyData *get_proxy_method(JSContext *ctx, JSValue *pmethod, JSValue obj, JSAtom name) { JSProxyData *s = JS_GetOpaque(obj, JS_CLASS_PROXY); JSValue method; /* safer to test recursion in all proxy methods */ if (js_check_stack_overflow(ctx->rt, 0)) { JS_ThrowStackOverflow(ctx); return NULL; } /* 's' should never be NULL */ if (s->is_revoked) { JS_ThrowTypeErrorRevokedProxy(ctx); return NULL; } method = JS_GetProperty(ctx, s->handler, name); if (JS_IsException(method)) return NULL; if (JS_IsNull(method)) method = JS_UNDEFINED; *pmethod = method; return s; }
O2
c
get_proxy_method: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rsi, %r14 cmpl $-0x1, %ecx jne 0x398cd cmpw $0x30, 0x6(%rdx) jne 0x398cd movq 0x30(%rdx), %rbx jmp 0x398cf xorl %ebx, %ebx movq 0x18(%rdi), %rax cmpq %rbp, 0xe8(%rax) jbe 0x398e3 callq 0x39941 jmp 0x39908 cmpb $0x0, 0x21(%rbx) je 0x398f0 callq 0x3994f jmp 0x39908 movq 0x10(%rbx), %rsi movq 0x18(%rbx), %rdx movl %r8d, %ecx callq 0x1ebf3 movl %edx, %ecx cmpq $0x6, %rcx jne 0x39912 xorl %ebx, %ebx movq %rbx, %rax popq %rbx popq %r14 popq %rbp retq movabsq $-0x100000000, %rsi # imm = 0xFFFFFFFF00000000 andq %rax, %rsi cmpl $0x2, %ecx pushq $0x3 popq %rdi cmoveq %rdi, %rdx xorl %edi, %edi cmpq $0x2, %rcx movl %eax, %eax cmovneq %rax, %rdi orq %rsi, %rdi movq %rdi, (%r14) movq %rdx, 0x8(%r14) jmp 0x3990a
get_proxy_method: push rbp mov rbp, rsp push r14 push rbx mov r14, rsi cmp ecx, 0FFFFFFFFh jnz short loc_398CD cmp word ptr [rdx+6], 30h ; '0' jnz short loc_398CD mov rbx, [rdx+30h] jmp short loc_398CF loc_398CD: xor ebx, ebx loc_398CF: mov rax, [rdi+18h] cmp [rax+0E8h], rbp jbe short loc_398E3 call JS_ThrowStackOverflow jmp short loc_39908 loc_398E3: cmp byte ptr [rbx+21h], 0 jz short loc_398F0 call JS_ThrowTypeErrorRevokedProxy jmp short loc_39908 loc_398F0: mov rsi, [rbx+10h] mov rdx, [rbx+18h] mov ecx, r8d call JS_GetProperty mov ecx, edx cmp rcx, 6 jnz short loc_39912 loc_39908: xor ebx, ebx loc_3990A: mov rax, rbx pop rbx pop r14 pop rbp retn loc_39912: mov rsi, 0FFFFFFFF00000000h and rsi, rax cmp ecx, 2 push 3 pop rdi cmovz rdx, rdi xor edi, edi cmp rcx, 2 mov eax, eax cmovnz rdi, rax or rdi, rsi mov [r14], rdi mov [r14+8], rdx jmp short loc_3990A
long long get_proxy_method(long long a1, unsigned long long *a2, long long a3, int a4, int a5) { long long v5; // rbx long long Property; // rax long long v7; // rdx long long v8; // rcx long long v10; // rdi long long savedregs; // [rsp+10h] [rbp+0h] BYREF if ( a4 == -1 && *(_WORD *)(a3 + 6) == 48 ) v5 = *(_QWORD *)(a3 + 48); else v5 = 0LL; if ( *(_QWORD *)(*(_QWORD *)(a1 + 24) + 232LL) > (unsigned long long)&savedregs ) { JS_ThrowStackOverflow(a1); return 0LL; } if ( *(_BYTE *)(v5 + 33) ) { JS_ThrowTypeErrorRevokedProxy(); return 0LL; } Property = JS_GetProperty(a1, *(_QWORD *)(v5 + 16), *(_QWORD *)(v5 + 24), a5); v8 = (unsigned int)v7; if ( (unsigned int)v7 == 6LL ) return 0LL; if ( (_DWORD)v7 == 2 ) v7 = 3LL; v10 = 0LL; if ( v8 != 2 ) v10 = (unsigned int)Property; *a2 = Property & 0xFFFFFFFF00000000LL | v10; a2[1] = v7; return v5; }
get_proxy_method: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV R14,RSI CMP ECX,-0x1 JNZ 0x001398cd CMP word ptr [RDX + 0x6],0x30 JNZ 0x001398cd MOV RBX,qword ptr [RDX + 0x30] JMP 0x001398cf LAB_001398cd: XOR EBX,EBX LAB_001398cf: MOV RAX,qword ptr [RDI + 0x18] CMP qword ptr [RAX + 0xe8],RBP JBE 0x001398e3 CALL 0x00139941 JMP 0x00139908 LAB_001398e3: CMP byte ptr [RBX + 0x21],0x0 JZ 0x001398f0 CALL 0x0013994f JMP 0x00139908 LAB_001398f0: MOV RSI,qword ptr [RBX + 0x10] MOV RDX,qword ptr [RBX + 0x18] MOV ECX,R8D CALL 0x0011ebf3 MOV ECX,EDX CMP RCX,0x6 JNZ 0x00139912 LAB_00139908: XOR EBX,EBX LAB_0013990a: MOV RAX,RBX POP RBX POP R14 POP RBP RET LAB_00139912: MOV RSI,-0x100000000 AND RSI,RAX CMP ECX,0x2 PUSH 0x3 POP RDI CMOVZ RDX,RDI XOR EDI,EDI CMP RCX,0x2 MOV EAX,EAX CMOVNZ RDI,RAX OR RDI,RSI MOV qword ptr [R14],RDI MOV qword ptr [R14 + 0x8],RDX JMP 0x0013990a
long get_proxy_method(long param_1,ulong *param_2,long param_3,int param_4,int4 param_5) { ulong uVar1; ulong uVar2; long lVar3; ulong uVar4; int1 auVar5 [16]; if ((param_4 == -1) && (*(short *)(param_3 + 6) == 0x30)) { lVar3 = *(long *)(param_3 + 0x30); } else { lVar3 = 0; } if (&stack0xfffffffffffffff8 < *(int1 **)(*(long *)(param_1 + 0x18) + 0xe8)) { JS_ThrowStackOverflow(); } else if (*(char *)(lVar3 + 0x21) == '\0') { auVar5 = JS_GetProperty(param_1,*(int8 *)(lVar3 + 0x10),*(int8 *)(lVar3 + 0x18), param_5); uVar1 = auVar5._8_8_ & 0xffffffff; if (uVar1 != 6) { uVar2 = auVar5._8_8_; if (auVar5._8_4_ == 2) { uVar2 = 3; } uVar4 = 0; if (uVar1 != 2) { uVar4 = auVar5._0_8_ & 0xffffffff; } *param_2 = uVar4 | auVar5._0_8_ & 0xffffffff00000000; param_2[1] = uVar2; return lVar3; } } else { JS_ThrowTypeErrorRevokedProxy(); } return 0; }
39,847
Update_plan::save_explain_update_data(st_mem_root*, THD*)
eloqsql/sql/sql_delete.cc
Explain_update* Update_plan::save_explain_update_data(MEM_ROOT *mem_root, THD *thd) { Explain_query *query= thd->lex->explain; Explain_update* explain= new (mem_root) Explain_update(mem_root, thd->lex->analyze_stmt); if (!explain) return 0; if (save_explain_data_intern(mem_root, explain, thd->lex->analyze_stmt)) return 0; query->add_upd_del_plan(explain); return explain; }
O0
cpp
Update_plan::save_explain_update_data(st_mem_root*, THD*): pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x68(%rbp) movq -0x20(%rbp), %rax movq 0x58(%rax), %rax movq 0xd60(%rax), %rax movq %rax, -0x28(%rbp) movq -0x18(%rbp), %rsi movq %rsi, -0x60(%rbp) movl $0x268, %edi # imm = 0x268 callq 0x7dbfd0 movq %rax, %rcx movq %rcx, -0x58(%rbp) movb $0x0, -0x31(%rbp) xorl %eax, %eax cmpq $0x0, %rcx movq %rax, -0x50(%rbp) je 0xdc0199 movq -0x58(%rbp), %rdi movb $0x1, -0x31(%rbp) movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rax movq 0x58(%rax), %rax movl 0x17c6(%rax), %edx shrl $0x3, %edx andl $0x1, %edx callq 0xdc4a20 jmp 0xdc018f movq -0x58(%rbp), %rax movq %rax, -0x50(%rbp) jmp 0xdc0199 movq -0x50(%rbp), %rax movq %rax, -0x30(%rbp) cmpq $0x0, -0x30(%rbp) jne 0xdc01d5 movq $0x0, -0x8(%rbp) jmp 0xdc0222 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x40(%rbp) movl %eax, -0x44(%rbp) testb $0x1, -0x31(%rbp) jne 0xdc01c6 jmp 0xdc01d3 movq -0x60(%rbp), %rsi movq -0x58(%rbp), %rdi callq 0x7dc010 jmp 0xdc022c movq -0x68(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x30(%rbp), %rdx movq -0x20(%rbp), %rax movq 0x58(%rax), %rax movl 0x17c6(%rax), %ecx shrl $0x3, %ecx andl $0x1, %ecx andl $0x1, %ecx callq 0xdbfc50 testb $0x1, %al jne 0xdc0203 jmp 0xdc020d movq $0x0, -0x8(%rbp) jmp 0xdc0222 movq -0x28(%rbp), %rdi movq -0x30(%rbp), %rsi callq 0xa91200 movq -0x30(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x70, %rsp popq %rbp retq movq -0x40(%rbp), %rdi callq 0x7589b0 nopw %cs:(%rax,%rax)
_ZN11Update_plan24save_explain_update_dataEP11st_mem_rootP3THD: push rbp mov rbp, rsp sub rsp, 70h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rax, [rbp+var_10] mov [rbp+var_68], rax mov rax, [rbp+var_20] mov rax, [rax+58h] mov rax, [rax+0D60h] mov [rbp+var_28], rax mov rsi, [rbp+var_18] mov [rbp+var_60], rsi mov edi, 268h call _ZN9Sql_allocnwEmP11st_mem_root; Sql_alloc::operator new(ulong,st_mem_root *) mov rcx, rax mov [rbp+var_58], rcx mov [rbp+var_31], 0 xor eax, eax cmp rcx, 0 mov [rbp+var_50], rax jz short loc_DC0199 mov rdi, [rbp+var_58] mov [rbp+var_31], 1 mov rsi, [rbp+var_18] mov rax, [rbp+var_20] mov rax, [rax+58h] mov edx, [rax+17C6h] shr edx, 3 and edx, 1 call _ZN14Explain_updateC2EP11st_mem_rootb; Explain_update::Explain_update(st_mem_root *,bool) jmp short $+2 loc_DC018F: mov rax, [rbp+var_58] mov [rbp+var_50], rax jmp short $+2 loc_DC0199: mov rax, [rbp+var_50] mov [rbp+var_30], rax cmp [rbp+var_30], 0 jnz short loc_DC01D5 mov [rbp+var_8], 0 jmp short loc_DC0222 mov rcx, rax mov eax, edx mov [rbp+var_40], rcx mov [rbp+var_44], eax test [rbp+var_31], 1 jnz short loc_DC01C6 jmp short loc_DC01D3 loc_DC01C6: mov rsi, [rbp+var_60] mov rdi, [rbp+var_58] call _ZN9Sql_allocdlEPvP11st_mem_root; Sql_alloc::operator delete(void *,st_mem_root *) loc_DC01D3: jmp short loc_DC022C loc_DC01D5: mov rdi, [rbp+var_68] mov rsi, [rbp+var_18] mov rdx, [rbp+var_30] mov rax, [rbp+var_20] mov rax, [rax+58h] mov ecx, [rax+17C6h] shr ecx, 3 and ecx, 1 and ecx, 1 call _ZN11Update_plan24save_explain_data_internEP11st_mem_rootP14Explain_updateb; Update_plan::save_explain_data_intern(st_mem_root *,Explain_update *,bool) test al, 1 jnz short loc_DC0203 jmp short loc_DC020D loc_DC0203: mov [rbp+var_8], 0 jmp short loc_DC0222 loc_DC020D: mov rdi, [rbp+var_28]; this mov rsi, [rbp+var_30]; Explain_update * call _ZN13Explain_query16add_upd_del_planEP14Explain_update; Explain_query::add_upd_del_plan(Explain_update *) mov rax, [rbp+var_30] mov [rbp+var_8], rax loc_DC0222: mov rax, [rbp+var_8] add rsp, 70h pop rbp retn loc_DC022C: mov rdi, [rbp+var_40] call __Unwind_Resume
Explain_update * Update_plan::save_explain_update_data(long long a1, long long a2, long long a3) { long long v4; // [rsp+18h] [rbp-58h] Explain_update *v5; // [rsp+20h] [rbp-50h] Explain_query *v6; // [rsp+48h] [rbp-28h] v6 = *(Explain_query **)(*(_QWORD *)(a3 + 88) + 3424LL); v4 = Sql_alloc::operator new(616LL, a2); v5 = 0LL; if ( v4 ) { Explain_update::Explain_update(v4, a2, (*(_DWORD *)(*(_QWORD *)(a3 + 88) + 6086LL) >> 3) & 1); v5 = (Explain_update *)v4; } if ( !v5 ) return 0LL; if ( (Update_plan::save_explain_data_intern( a1, a2, (long long)v5, (*(_DWORD *)(*(_QWORD *)(a3 + 88) + 6086LL) & 8) != 0) & 1) != 0 ) return 0LL; Explain_query::add_upd_del_plan(v6, v5); return v5; }
char_to_byte_length_safe: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RBP + -0xc] IMUL RAX,RCX MOV qword ptr [RBP + -0x18],RAX MOV EAX,0xffffffff CMP qword ptr [RBP + -0x18],RAX JBE 0x00dc013f MOV EAX,0xffffffff MOV dword ptr [RBP + -0x1c],EAX JMP 0x00dc0146 LAB_00dc013f: MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RBP + -0x1c],EAX LAB_00dc0146: MOV EAX,dword ptr [RBP + -0x1c] POP RBP RET
/* char_to_byte_length_safe(unsigned long, unsigned int) */ int4 char_to_byte_length_safe(ulong param_1,uint param_2) { int4 local_24; if (param_1 * param_2 < 0x100000000) { local_24 = (int4)(param_1 * param_2); } else { local_24 = 0xffffffff; } return local_24; }
39,848
yoyo::LocationInfo::LocationInfo(std::source_location const&)
isyoCode[P]yoyologger/test/./../src/logger.hpp
explicit LocationInfo( const std::source_location& loc = std::source_location::current()) : _Line(loc.line()), _threadId(std::this_thread::get_id()), _fileName(loc.file_name()), _Function(loc.function_name()) {}
O2
cpp
yoyo::LocationInfo::LocationInfo(std::source_location const&): pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rsi, %r15 movq %rdi, %rbx movq (%rsi), %rax testq %rax, %rax je 0x463b movl 0x10(%rax), %eax jmp 0x463d xorl %eax, %eax movq %rax, (%rbx) callq 0x3250 movq %rax, 0x8(%rbx) leaq 0x10(%rbx), %r14 movq (%r15), %rax leaq 0x2c62(%rip), %r12 # 0x72b9 movq %r12, %rsi testq %rax, %rax je 0x4662 movq (%rax), %rsi leaq 0x7(%rsp), %rdx movq %r14, %rdi callq 0x39e6 addq $0x30, %rbx movq (%r15), %rax testq %rax, %rax je 0x467f movq 0x8(%rax), %r12 leaq 0x6(%rsp), %rdx movq %rbx, %rdi movq %r12, %rsi callq 0x39e6 addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq movq %rax, %rbx movq %r14, %rdi callq 0x3a22 movq %rbx, %rdi callq 0x33e0
_ZN4yoyo12LocationInfoC2ERKSt15source_location: push r15 push r14 push r12 push rbx push rax mov r15, rsi mov rbx, rdi mov rax, [rsi] test rax, rax jz short loc_463B mov eax, [rax+10h] jmp short loc_463D loc_463B: xor eax, eax loc_463D: mov [rbx], rax call _pthread_self mov [rbx+8], rax lea r14, [rbx+10h] mov rax, [r15] lea r12, asc_72B8+1; "嬀崀㨀" mov rsi, r12 test rax, rax jz short loc_4662 mov rsi, [rax] loc_4662: lea rdx, [rsp+28h+var_21] mov rdi, r14 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) add rbx, 30h ; '0' mov rax, [r15] test rax, rax jz short loc_467F mov r12, [rax+8] loc_467F: lea rdx, [rsp+28h+var_22] mov rdi, rbx mov rsi, r12 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn mov rbx, rax mov rdi, r14; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, rbx call __Unwind_Resume
long long yoyo::LocationInfo::LocationInfo(_QWORD *a1, char ***a2) { long long v3; // rax char **v4; // rax char *v5; // r12 char *v6; // rsi if ( *a2 ) v3 = *((unsigned int *)*a2 + 4); else v3 = 0LL; *a1 = v3; a1[1] = pthread_self(a1); v4 = *a2; v5 = (char *)asc_72B8 + 1; v6 = (char *)asc_72B8 + 1; if ( *a2 ) v6 = *v4; std::string::basic_string<std::allocator<char>>(a1 + 2, (long long)v6); if ( *a2 ) v5 = (*a2)[1]; return std::string::basic_string<std::allocator<char>>(a1 + 6, (long long)v5); }
LocationInfo: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV R15,RSI MOV RBX,RDI MOV RAX,qword ptr [RSI] TEST RAX,RAX JZ 0x0010463b MOV EAX,dword ptr [RAX + 0x10] JMP 0x0010463d LAB_0010463b: XOR EAX,EAX LAB_0010463d: MOV qword ptr [RBX],RAX CALL 0x00103250 MOV qword ptr [RBX + 0x8],RAX LEA R14,[RBX + 0x10] MOV RAX,qword ptr [R15] LEA R12,[0x1072b9] MOV RSI,R12 TEST RAX,RAX JZ 0x00104662 MOV RSI,qword ptr [RAX] LAB_00104662: LEA RDX,[RSP + 0x7] MOV RDI,R14 CALL 0x001039e6 ADD RBX,0x30 MOV RAX,qword ptr [R15] TEST RAX,RAX JZ 0x0010467f MOV R12,qword ptr [RAX + 0x8] LAB_0010467f: LEA RDX,[RSP + 0x6] MOV RDI,RBX MOV RSI,R12 CALL 0x001039e6 LAB_0010468f: ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
/* yoyo::LocationInfo::LocationInfo(std::source_location const&) */ void __thiscall yoyo::LocationInfo::LocationInfo(LocationInfo *this,source_location *param_1) { ulong uVar1; pthread_t pVar2; char *pcVar3; char *pcVar4; allocator local_22; allocator local_21; if (*(long *)param_1 == 0) { uVar1 = 0; } else { uVar1 = (ulong)*(uint *)(*(long *)param_1 + 0x10); } *(ulong *)this = uVar1; pVar2 = pthread_self(); *(pthread_t *)(this + 8) = pVar2; pcVar4 = ""; pcVar3 = ""; if (*(int8 **)param_1 != (int8 *)0x0) { pcVar3 = (char *)**(int8 **)param_1; } std::__cxx11::string::string<std::allocator<char>>((string *)(this + 0x10),pcVar3,&local_21); if (*(long *)param_1 != 0) { pcVar4 = *(char **)(*(long *)param_1 + 8); } /* try { // try from 0010467f to 0010468e has its CatchHandler @ 0010469b */ std::__cxx11::string::string<std::allocator<char>>((string *)(this + 0x30),pcVar4,&local_22); return; }
39,849
yoyo::LocationInfo::LocationInfo(std::source_location const&)
isyoCode[P]yoyologger/test/./../src/logger.hpp
explicit LocationInfo( const std::source_location& loc = std::source_location::current()) : _Line(loc.line()), _threadId(std::this_thread::get_id()), _fileName(loc.file_name()), _Function(loc.function_name()) {}
O3
cpp
yoyo::LocationInfo::LocationInfo(std::source_location const&): pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq %rsi, %r14 movq %rdi, %rbx movq (%rsi), %rax testq %rax, %rax je 0x4940 movl 0x10(%rax), %eax jmp 0x4942 xorl %eax, %eax movq %rax, (%rbx) callq 0x3270 movq %rax, 0x8(%rbx) leaq 0x10(%rbx), %rdi movq (%r14), %rax leaq 0x29a9(%rip), %r15 # 0x7305 movq %r15, %rsi testq %rax, %rax je 0x4967 movq (%rax), %rsi leaq 0xf(%rsp), %rdx callq 0x3d0c leaq 0x30(%rbx), %rdi movq (%r14), %rax testq %rax, %rax je 0x4981 movq 0x8(%rax), %r15 leaq 0xe(%rsp), %rdx movq %r15, %rsi callq 0x3d0c addq $0x10, %rsp popq %rbx popq %r14 popq %r15 retq movq %rax, %r14 movq 0x10(%rbx), %rdi addq $0x20, %rbx cmpq %rbx, %rdi je 0x49b3 movq (%rbx), %rsi incq %rsi callq 0x32e0 movq %r14, %rdi callq 0x3420 nop
_ZN4yoyo12LocationInfoC2ERKSt15source_location: push r15 push r14 push rbx sub rsp, 10h mov r14, rsi mov rbx, rdi mov rax, [rsi] test rax, rax jz short loc_4940 mov eax, [rax+10h] jmp short loc_4942 loc_4940: xor eax, eax loc_4942: mov [rbx], rax call _pthread_self mov [rbx+8], rax lea rdi, [rbx+10h] mov rax, [r14] lea r15, asc_7304+1; "嬀崀㨀" mov rsi, r15 test rax, rax jz short loc_4967 mov rsi, [rax] loc_4967: lea rdx, [rsp+28h+var_19] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rdi, [rbx+30h] mov rax, [r14] test rax, rax jz short loc_4981 mov r15, [rax+8] loc_4981: lea rdx, [rsp+28h+var_1A] mov rsi, r15 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) add rsp, 10h pop rbx pop r14 pop r15 retn mov r14, rax mov rdi, [rbx+10h]; void * add rbx, 20h ; ' ' cmp rdi, rbx jz short loc_49B3 mov rsi, [rbx] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_49B3: mov rdi, r14 call __Unwind_Resume
long long yoyo::LocationInfo::LocationInfo(_QWORD *a1, char ***a2) { long long v4; // rax _QWORD *v5; // rdi char **v6; // rax char *v7; // r15 char *v8; // rsi if ( *a2 ) v4 = *((unsigned int *)*a2 + 4); else v4 = 0LL; *a1 = v4; a1[1] = pthread_self(); v5 = a1 + 2; v6 = *a2; v7 = (char *)asc_7304 + 1; v8 = (char *)asc_7304 + 1; if ( *a2 ) v8 = *v6; std::string::basic_string<std::allocator<char>>(v5, (long long)v8); if ( *a2 ) v7 = (*a2)[1]; return std::string::basic_string<std::allocator<char>>(a1 + 6, (long long)v7); }
LocationInfo: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x10 MOV R14,RSI MOV RBX,RDI MOV RAX,qword ptr [RSI] TEST RAX,RAX JZ 0x00104940 MOV EAX,dword ptr [RAX + 0x10] JMP 0x00104942 LAB_00104940: XOR EAX,EAX LAB_00104942: MOV qword ptr [RBX],RAX CALL 0x00103270 MOV qword ptr [RBX + 0x8],RAX LEA RDI,[RBX + 0x10] MOV RAX,qword ptr [R14] LEA R15,[0x107305] MOV RSI,R15 TEST RAX,RAX JZ 0x00104967 MOV RSI,qword ptr [RAX] LAB_00104967: LEA RDX,[RSP + 0xf] CALL 0x00103d0c LEA RDI,[RBX + 0x30] MOV RAX,qword ptr [R14] TEST RAX,RAX JZ 0x00104981 MOV R15,qword ptr [RAX + 0x8] LAB_00104981: LEA RDX,[RSP + 0xe] MOV RSI,R15 CALL 0x00103d0c LAB_0010498e: ADD RSP,0x10 POP RBX POP R14 POP R15 RET
/* yoyo::LocationInfo::LocationInfo(std::source_location const&) */ void __thiscall yoyo::LocationInfo::LocationInfo(LocationInfo *this,source_location *param_1) { ulong uVar1; pthread_t pVar2; char *pcVar3; char *pcVar4; allocator local_1a; allocator local_19; if (*(long *)param_1 == 0) { uVar1 = 0; } else { uVar1 = (ulong)*(uint *)(*(long *)param_1 + 0x10); } *(ulong *)this = uVar1; pVar2 = pthread_self(); *(pthread_t *)(this + 8) = pVar2; pcVar4 = ""; pcVar3 = ""; if (*(int8 **)param_1 != (int8 *)0x0) { pcVar3 = (char *)**(int8 **)param_1; } std::__cxx11::string::string<std::allocator<char>>((string *)(this + 0x10),pcVar3,&local_19); if (*(long *)param_1 != 0) { pcVar4 = *(char **)(*(long *)param_1 + 8); } /* try { // try from 00104981 to 0010498d has its CatchHandler @ 00104998 */ std::__cxx11::string::string<std::allocator<char>>((string *)(this + 0x30),pcVar4,&local_1a); return; }
39,850
coro::scheduler::init_impl(unsigned long)
tinyCoroLab/src/scheduler.cpp
auto scheduler::init_impl(size_t ctx_cnt) noexcept -> void { // TODO[lab2b]: Add you codes detail::init_meta_info(); m_ctx_cnt = ctx_cnt; m_ctxs = detail::ctx_container{}; m_ctxs.reserve(m_ctx_cnt); for (int i = 0; i < m_ctx_cnt; i++) { m_ctxs.emplace_back(std::make_unique<context>()); } m_dispatcher.init(m_ctx_cnt, &m_ctxs); }
O0
cpp
coro::scheduler::init_impl(unsigned long): subq $0x58, %rsp movq %rdi, 0x50(%rsp) movq %rsi, 0x48(%rsp) movq 0x50(%rsp), %rax movq %rax, 0x10(%rsp) callq 0x6c540 movq 0x10(%rsp), %rax movq 0x48(%rsp), %rcx movq %rcx, (%rax) xorps %xmm0, %xmm0 movaps %xmm0, 0x30(%rsp) movq $0x0, 0x40(%rsp) leaq 0x30(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0xfbe0 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdi addq $0x8, %rdi movq %rdi, 0x18(%rsp) callq 0x6c570 movq 0x8(%rsp), %rdi callq 0xfcf0 movq 0x10(%rsp), %rax movq 0x18(%rsp), %rdi movq (%rax), %rsi callq 0x6c5b0 jmp 0x6c3e0 movl $0x0, 0x2c(%rsp) movq 0x10(%rsp), %rcx movslq 0x2c(%rsp), %rax cmpq (%rcx), %rax jae 0x6c437 movq 0x10(%rsp), %rax addq $0x8, %rax movq %rax, (%rsp) leaq 0x20(%rsp), %rdi callq 0x6c740 jmp 0x6c410 movq (%rsp), %rdi leaq 0x20(%rsp), %rsi callq 0x6c6c0 jmp 0x6c420 leaq 0x20(%rsp), %rdi callq 0xfe60 movl 0x2c(%rsp), %eax addl $0x1, %eax movl %eax, 0x2c(%rsp) jmp 0x6c3e8 movq 0x10(%rsp), %rdx movq %rdx, %rdi addq $0x20, %rdi movq (%rdx), %rsi addq $0x8, %rdx callq 0x6c790 addq $0x58, %rsp retq movq %rax, %rdi callq 0xebf0 nopl (%rax)
_ZN4coro9scheduler9init_implEm: sub rsp, 58h mov [rsp+58h+var_8], rdi mov [rsp+58h+var_10], rsi mov rax, [rsp+58h+var_8] mov [rsp+58h+var_48], rax call _ZN4coro6detail14init_meta_infoEv; coro::detail::init_meta_info(void) mov rax, [rsp+58h+var_48] mov rcx, [rsp+58h+var_10] mov [rax], rcx xorps xmm0, xmm0 movaps [rsp+58h+var_28], xmm0 mov [rsp+58h+var_18], 0 lea rdi, [rsp+58h+var_28] mov [rsp+58h+var_50], rdi call _ZNSt6vectorISt10unique_ptrIN4coro7contextESt14default_deleteIS2_EESaIS5_EEC2Ev; std::vector<std::unique_ptr<coro::context>>::vector(void) mov rsi, [rsp+58h+var_50] mov rdi, [rsp+58h+var_48] add rdi, 8 mov [rsp+58h+var_40], rdi call _ZNSt6vectorISt10unique_ptrIN4coro7contextESt14default_deleteIS2_EESaIS5_EEaSEOS7_; std::vector<std::unique_ptr<coro::context>>::operator=(std::vector<std::unique_ptr<coro::context>>&&) mov rdi, [rsp+58h+var_50] call _ZNSt6vectorISt10unique_ptrIN4coro7contextESt14default_deleteIS2_EESaIS5_EED2Ev; std::vector<std::unique_ptr<coro::context>>::~vector() mov rax, [rsp+58h+var_48] mov rdi, [rsp+58h+var_40] mov rsi, [rax] call _ZNSt6vectorISt10unique_ptrIN4coro7contextESt14default_deleteIS2_EESaIS5_EE7reserveEm; std::vector<std::unique_ptr<coro::context>>::reserve(ulong) jmp short $+2 loc_6C3E0: mov [rsp+58h+var_2C], 0 loc_6C3E8: mov rcx, [rsp+58h+var_48] movsxd rax, [rsp+58h+var_2C] cmp rax, [rcx] jnb short loc_6C437 mov rax, [rsp+58h+var_48] add rax, 8 mov [rsp+58h+var_58], rax lea rdi, [rsp+58h+var_38] call _ZSt11make_uniqueIN4coro7contextEJEENSt9_MakeUniqIT_E15__single_objectEDpOT0_; std::make_unique<coro::context>() jmp short $+2 loc_6C410: mov rdi, [rsp+58h+var_58] lea rsi, [rsp+58h+var_38] call _ZNSt6vectorISt10unique_ptrIN4coro7contextESt14default_deleteIS2_EESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::unique_ptr<coro::context>>::emplace_back<std::unique_ptr<coro::context>>(std::unique_ptr<coro::context> &&) jmp short $+2 loc_6C420: lea rdi, [rsp+58h+var_38] call _ZNSt10unique_ptrIN4coro7contextESt14default_deleteIS1_EED2Ev; std::unique_ptr<coro::context>::~unique_ptr() mov eax, [rsp+58h+var_2C] add eax, 1 mov [rsp+58h+var_2C], eax jmp short loc_6C3E8 loc_6C437: mov rdx, [rsp+58h+var_48] mov rdi, rdx add rdi, 20h ; ' ' mov rsi, [rdx] add rdx, 8 call _ZN4coro6detail10dispatcherILNS0_17dispatch_strategyE0EE4initEmPSt6vectorISt10unique_ptrINS_7contextESt14default_deleteIS6_EESaIS9_EE; coro::detail::dispatcher<(coro::detail::dispatch_strategy)0>::init(ulong,std::vector<std::unique_ptr<coro::context>> *) add rsp, 58h retn mov rdi, rax call __clang_call_terminate
long long coro::scheduler::init_impl(coro::scheduler *this, long long a2) { _BYTE v3[12]; // [rsp+20h] [rbp-38h] BYREF int i; // [rsp+2Ch] [rbp-2Ch] __int128 v5; // [rsp+30h] [rbp-28h] BYREF long long v6; // [rsp+40h] [rbp-18h] long long v7; // [rsp+48h] [rbp-10h] coro::scheduler *v8; // [rsp+50h] [rbp-8h] v8 = this; v7 = a2; coro::detail::init_meta_info(this); *(_QWORD *)this = a2; v5 = 0LL; v6 = 0LL; std::vector<std::unique_ptr<coro::context>>::vector((long long)&v5); std::vector<std::unique_ptr<coro::context>>::operator=((char *)this + 8, &v5); std::vector<std::unique_ptr<coro::context>>::~vector((long long *)&v5); std::vector<std::unique_ptr<coro::context>>::reserve((char *)this + 8, *(_QWORD *)this); for ( i = 0; (unsigned long long)i < *(_QWORD *)this; ++i ) { std::make_unique<coro::context>(v3); std::vector<std::unique_ptr<coro::context>>::emplace_back<std::unique_ptr<coro::context>>((char *)this + 8, v3); std::unique_ptr<coro::context>::~unique_ptr((long long)v3); } return coro::detail::dispatcher<(coro::detail::dispatch_strategy)0>::init( (char *)this + 32, *(_QWORD *)this, (char *)this + 8); }
init_impl: SUB RSP,0x58 MOV qword ptr [RSP + 0x50],RDI MOV qword ptr [RSP + 0x48],RSI MOV RAX,qword ptr [RSP + 0x50] MOV qword ptr [RSP + 0x10],RAX CALL 0x0016c540 MOV RAX,qword ptr [RSP + 0x10] MOV RCX,qword ptr [RSP + 0x48] MOV qword ptr [RAX],RCX XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP + 0x30],XMM0 MOV qword ptr [RSP + 0x40],0x0 LEA RDI,[RSP + 0x30] MOV qword ptr [RSP + 0x8],RDI CALL 0x0010fbe0 MOV RSI,qword ptr [RSP + 0x8] MOV RDI,qword ptr [RSP + 0x10] ADD RDI,0x8 MOV qword ptr [RSP + 0x18],RDI CALL 0x0016c570 MOV RDI,qword ptr [RSP + 0x8] CALL 0x0010fcf0 MOV RAX,qword ptr [RSP + 0x10] MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RAX] LAB_0016c3d9: CALL 0x0016c5b0 JMP 0x0016c3e0 LAB_0016c3e0: MOV dword ptr [RSP + 0x2c],0x0 LAB_0016c3e8: MOV RCX,qword ptr [RSP + 0x10] MOVSXD RAX,dword ptr [RSP + 0x2c] CMP RAX,qword ptr [RCX] JNC 0x0016c437 MOV RAX,qword ptr [RSP + 0x10] ADD RAX,0x8 MOV qword ptr [RSP],RAX LEA RDI,[RSP + 0x20] CALL 0x0016c740 JMP 0x0016c410 LAB_0016c410: MOV RDI,qword ptr [RSP] LEA RSI,[RSP + 0x20] CALL 0x0016c6c0 JMP 0x0016c420 LAB_0016c420: LEA RDI,[RSP + 0x20] CALL 0x0010fe60 MOV EAX,dword ptr [RSP + 0x2c] ADD EAX,0x1 MOV dword ptr [RSP + 0x2c],EAX JMP 0x0016c3e8 LAB_0016c437: MOV RDX,qword ptr [RSP + 0x10] MOV RDI,RDX ADD RDI,0x20 MOV RSI,qword ptr [RDX] ADD RDX,0x8 CALL 0x0016c790 ADD RSP,0x58 RET
/* coro::scheduler::init_impl(unsigned long) */ void __thiscall coro::scheduler::init_impl(scheduler *this,ulong param_1) { unique_ptr local_38 [12]; int local_2c; int8 local_28; int8 uStack_20; int8 local_18; ulong local_10; scheduler *local_8; local_10 = param_1; local_8 = this; detail::init_meta_info(); *(ulong *)this = local_10; local_28 = 0; uStack_20 = 0; local_18 = 0; std:: vector<std::unique_ptr<coro::context,std::default_delete<coro::context>>,std::allocator<std::unique_ptr<coro::context,std::default_delete<coro::context>>>> ::vector((vector<std::unique_ptr<coro::context,std::default_delete<coro::context>>,std::allocator<std::unique_ptr<coro::context,std::default_delete<coro::context>>>> *)&local_28); std:: vector<std::unique_ptr<coro::context,std::default_delete<coro::context>>,std::allocator<std::unique_ptr<coro::context,std::default_delete<coro::context>>>> ::operator=((vector<std::unique_ptr<coro::context,std::default_delete<coro::context>>,std::allocator<std::unique_ptr<coro::context,std::default_delete<coro::context>>>> *)(this + 8),(vector *)&local_28); std:: vector<std::unique_ptr<coro::context,std::default_delete<coro::context>>,std::allocator<std::unique_ptr<coro::context,std::default_delete<coro::context>>>> ::~vector((vector<std::unique_ptr<coro::context,std::default_delete<coro::context>>,std::allocator<std::unique_ptr<coro::context,std::default_delete<coro::context>>>> *)&local_28); /* try { // try from 0016c3d9 to 0016c41d has its CatchHandler @ 0016c454 */ std:: vector<std::unique_ptr<coro::context,std::default_delete<coro::context>>,std::allocator<std::unique_ptr<coro::context,std::default_delete<coro::context>>>> ::reserve((vector<std::unique_ptr<coro::context,std::default_delete<coro::context>>,std::allocator<std::unique_ptr<coro::context,std::default_delete<coro::context>>>> *)(this + 8),*(ulong *)this); for (local_2c = 0; (ulong)(long)local_2c < *(ulong *)this; local_2c = local_2c + 1) { std::make_unique<coro::context>(); std:: vector<std::unique_ptr<coro::context,std::default_delete<coro::context>>,std::allocator<std::unique_ptr<coro::context,std::default_delete<coro::context>>>> ::emplace_back<std::unique_ptr<coro::context,std::default_delete<coro::context>>> ((vector<std::unique_ptr<coro::context,std::default_delete<coro::context>>,std::allocator<std::unique_ptr<coro::context,std::default_delete<coro::context>>>> *)(this + 8),local_38); std::unique_ptr<coro::context,std::default_delete<coro::context>>::~unique_ptr ((unique_ptr<coro::context,std::default_delete<coro::context>> *)local_38); } detail::dispatcher<(coro::detail::dispatch_strategy)0>::init ((ulong)(this + 0x20),*(vector **)this); return; }
39,851
google::protobuf::internal::VersionString[abi:cxx11](int)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/stubs/common.cc
std::string VersionString(int version) { int major = version / 1000000; int minor = (version / 1000) % 1000; int micro = version % 1000; // 128 bytes should always be enough, but we use snprintf() anyway to be // safe. char buffer[128]; snprintf(buffer, sizeof(buffer), "%d.%d.%d", major, minor, micro); // Guard against broken MSVC snprintf(). buffer[sizeof(buffer)-1] = '\0'; return buffer; }
O3
cpp
google::protobuf::internal::VersionString[abi:cxx11](int): pushq %r14 pushq %rbx subq $0x88, %rsp movq %rdi, %rbx movslq %esi, %r9 imulq $0x431bde83, %r9, %rcx # imm = 0x431BDE83 movq %rcx, %rax shrq $0x3f, %rax sarq $0x32, %rcx addl %eax, %ecx imulq $0x10624dd3, %r9, %rax # imm = 0x10624DD3 movq %rax, %rdx shrq $0x3f, %rdx sarq $0x26, %rax addl %edx, %eax movslq %eax, %r8 imulq $0x10624dd3, %r8, %rax # imm = 0x10624DD3 movq %rax, %rdx shrq $0x3f, %rdx sarq $0x26, %rax addl %edx, %eax imull $0x3e8, %eax, %eax # imm = 0x3E8 imull $0x3e8, %r8d, %edx # imm = 0x3E8 subl %eax, %r8d subl %edx, %r9d leaq 0xe1671(%rip), %rdx # 0x1669c8 movq %rsp, %r14 movl $0x80, %esi movq %r14, %rdi xorl %eax, %eax callq 0x2dee0 movb $0x0, 0x7f(%r14) leaq 0x10(%rbx), %rax movq %rax, (%rbx) movq %r14, %rdi callq 0x2c700 leaq (%rsp,%rax), %rdx movq %rbx, %rdi movq %r14, %rsi callq 0x2c610 movq %rbx, %rax addq $0x88, %rsp popq %rbx popq %r14 retq
_ZN6google8protobuf8internal13VersionStringB5cxx11Ei: push r14 push rbx sub rsp, 88h mov rbx, rdi movsxd r9, esi imul rcx, r9, 431BDE83h mov rax, rcx shr rax, 3Fh sar rcx, 32h add ecx, eax imul rax, r9, 10624DD3h mov rdx, rax shr rdx, 3Fh sar rax, 26h add eax, edx movsxd r8, eax imul rax, r8, 10624DD3h mov rdx, rax shr rdx, 3Fh sar rax, 26h add eax, edx imul eax, 3E8h imul edx, r8d, 3E8h sub r8d, eax sub r9d, edx lea rdx, aDDD; "%d.%d.%d" mov r14, rsp mov esi, 80h mov rdi, r14 xor eax, eax call _snprintf mov byte ptr [r14+7Fh], 0 lea rax, [rbx+10h] mov [rbx], rax mov rdi, r14 call _strlen lea rdx, [rsp+rax+98h+var_98] mov rdi, rbx mov rsi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) mov rax, rbx add rsp, 88h pop rbx pop r14 retn
_QWORD * google::protobuf::internal::VersionString[abi:cxx11](_QWORD *a1, int a2) { long long v2; // rax char v4[152]; // [rsp+0h] [rbp-98h] BYREF snprintf(v4, 128LL, "%d.%d.%d", a2 / 1000000, a2 / 1000 % 1000, a2 % 1000); v4[127] = 0; *a1 = a1 + 2; v2 = strlen(v4); std::string::_M_construct<char const*>(a1, v4, &v4[v2]); return a1; }
VersionString[abi:cxx11]: PUSH R14 PUSH RBX SUB RSP,0x88 MOV RBX,RDI MOVSXD R9,ESI IMUL RCX,R9,0x431bde83 MOV RAX,RCX SHR RAX,0x3f SAR RCX,0x32 ADD ECX,EAX IMUL RAX,R9,0x10624dd3 MOV RDX,RAX SHR RDX,0x3f SAR RAX,0x26 ADD EAX,EDX MOVSXD R8,EAX IMUL RAX,R8,0x10624dd3 MOV RDX,RAX SHR RDX,0x3f SAR RAX,0x26 ADD EAX,EDX IMUL EAX,EAX,0x3e8 IMUL EDX,R8D,0x3e8 SUB R8D,EAX SUB R9D,EDX LEA RDX,[0x2669c8] MOV R14,RSP MOV ESI,0x80 MOV RDI,R14 XOR EAX,EAX CALL 0x0012dee0 MOV byte ptr [R14 + 0x7f],0x0 LEA RAX,[RBX + 0x10] MOV qword ptr [RBX],RAX MOV RDI,R14 CALL 0x0012c700 LEA RDX,[RSP + RAX*0x1] MOV RDI,RBX MOV RSI,R14 CALL 0x0012c610 MOV RAX,RBX ADD RSP,0x88 POP RBX POP R14 RET
/* google::protobuf::internal::VersionString[abi:cxx11](int) */ internal * __thiscall google::protobuf::internal::VersionString_abi_cxx11_(internal *this,int param_1) { size_t sVar1; char acStack_98 [127]; int1 local_19; snprintf(acStack_98,0x80,"%d.%d.%d",(ulong)(uint)(param_1 / 1000000), (ulong)(uint)((param_1 / 1000) % 1000),(ulong)(uint)(param_1 % 1000)); local_19 = 0; *(internal **)this = this + 0x10; sVar1 = strlen(acStack_98); std::__cxx11::string::_M_construct<char_const*>(this,acStack_98,acStack_98 + sVar1); return this; }
39,852
LefDefParser::defiPinProp::Init()
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiPinProp.cpp
void defiPinProp::Init() { instName_ = (char*)malloc(16); pinName_ = (char*)malloc(16); pinNameSize_ = 16; instNameSize_ = 16; isPin_ = 0; numProps_ = 0; propsAllocated_ = 2; propNames_ = (char**)malloc(sizeof(char*)*2); propValues_ = (char**)malloc(sizeof(char*)*2); propDValues_ = (double*)malloc(sizeof(double)*2); propTypes_ = (char*)malloc(sizeof(char)*2); }
O3
cpp
LefDefParser::defiPinProp::Init(): pushq %rbx movq %rdi, %rbx movl $0x10, %edi callq 0x6270 movq %rax, 0x8(%rbx) movl $0x10, %edi callq 0x6270 movq %rax, 0x18(%rbx) movl $0x10, %eax movl %eax, 0x10(%rbx) movl %eax, 0x4(%rbx) movb $0x0, (%rbx) movabsq $0x200000000, %rax # imm = 0x200000000 movq %rax, 0x20(%rbx) movl $0x10, %edi callq 0x6270 movq %rax, 0x28(%rbx) movl $0x10, %edi callq 0x6270 movq %rax, 0x30(%rbx) movl $0x10, %edi callq 0x6270 movq %rax, 0x38(%rbx) movl $0x2, %edi callq 0x6270 movq %rax, 0x40(%rbx) popq %rbx retq
_ZN12LefDefParser11defiPinProp4InitEv: push rbx mov rbx, rdi mov edi, 10h call _malloc mov [rbx+8], rax mov edi, 10h call _malloc mov [rbx+18h], rax mov eax, 10h mov [rbx+10h], eax mov [rbx+4], eax mov byte ptr [rbx], 0 mov rax, 200000000h mov [rbx+20h], rax mov edi, 10h call _malloc mov [rbx+28h], rax mov edi, 10h call _malloc mov [rbx+30h], rax mov edi, 10h call _malloc mov [rbx+38h], rax mov edi, 2 call _malloc mov [rbx+40h], rax pop rbx retn
long long LefDefParser::defiPinProp::Init(LefDefParser::defiPinProp *this) { long long result; // rax *((_QWORD *)this + 1) = malloc(16LL); *((_QWORD *)this + 3) = malloc(16LL); *((_DWORD *)this + 4) = 16; *((_DWORD *)this + 1) = 16; *(_BYTE *)this = 0; *((_QWORD *)this + 4) = 0x200000000LL; *((_QWORD *)this + 5) = malloc(16LL); *((_QWORD *)this + 6) = malloc(16LL); *((_QWORD *)this + 7) = malloc(16LL); result = malloc(2LL); *((_QWORD *)this + 8) = result; return result; }
Init: PUSH RBX MOV RBX,RDI MOV EDI,0x10 CALL 0x00106270 MOV qword ptr [RBX + 0x8],RAX MOV EDI,0x10 CALL 0x00106270 MOV qword ptr [RBX + 0x18],RAX MOV EAX,0x10 MOV dword ptr [RBX + 0x10],EAX MOV dword ptr [RBX + 0x4],EAX MOV byte ptr [RBX],0x0 MOV RAX,0x200000000 MOV qword ptr [RBX + 0x20],RAX MOV EDI,0x10 CALL 0x00106270 MOV qword ptr [RBX + 0x28],RAX MOV EDI,0x10 CALL 0x00106270 MOV qword ptr [RBX + 0x30],RAX MOV EDI,0x10 CALL 0x00106270 MOV qword ptr [RBX + 0x38],RAX MOV EDI,0x2 CALL 0x00106270 MOV qword ptr [RBX + 0x40],RAX POP RBX RET
/* LefDefParser::defiPinProp::Init() */ void __thiscall LefDefParser::defiPinProp::Init(defiPinProp *this) { void *pvVar1; pvVar1 = malloc(0x10); *(void **)(this + 8) = pvVar1; pvVar1 = malloc(0x10); *(void **)(this + 0x18) = pvVar1; *(int4 *)(this + 0x10) = 0x10; *(int4 *)(this + 4) = 0x10; *this = (defiPinProp)0x0; *(int8 *)(this + 0x20) = 0x200000000; pvVar1 = malloc(0x10); *(void **)(this + 0x28) = pvVar1; pvVar1 = malloc(0x10); *(void **)(this + 0x30) = pvVar1; pvVar1 = malloc(0x10); *(void **)(this + 0x38) = pvVar1; pvVar1 = malloc(2); *(void **)(this + 0x40) = pvVar1; return; }
39,853
pvio_socket_close
eloqsql/libmariadb/plugins/pvio/pvio_socket.c
my_bool pvio_socket_close(MARIADB_PVIO *pvio) { struct st_pvio_socket *csock= NULL; int r= 0; if (!pvio) return 1; if (pvio->data) { csock= (struct st_pvio_socket *)pvio->data; if (csock && csock->socket != INVALID_SOCKET) { r= closesocket(csock->socket); csock->socket= INVALID_SOCKET; } free((gptr)pvio->data); pvio->data= NULL; } return r; }
O0
c
pvio_socket_close: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movq $0x0, -0x18(%rbp) movl $0x0, -0x1c(%rbp) cmpq $0x0, -0x10(%rbp) jne 0xca738 movb $0x1, -0x1(%rbp) jmp 0xca792 movq -0x10(%rbp), %rax cmpq $0x0, (%rax) je 0xca78c movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x18(%rbp) cmpq $0x0, -0x18(%rbp) je 0xca775 movq -0x18(%rbp), %rax cmpl $-0x1, (%rax) je 0xca775 movq -0x18(%rbp), %rax movl (%rax), %edi callq 0x3a210 movl %eax, -0x1c(%rbp) movq -0x18(%rbp), %rax movl $0xffffffff, (%rax) # imm = 0xFFFFFFFF movq -0x10(%rbp), %rax movq (%rax), %rdi callq 0x3a1a0 movq -0x10(%rbp), %rax movq $0x0, (%rax) movl -0x1c(%rbp), %eax movb %al, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x20, %rsp popq %rbp retq nopl (%rax,%rax)
pvio_socket_close: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi mov [rbp+var_18], 0 mov [rbp+var_1C], 0 cmp [rbp+var_10], 0 jnz short loc_CA738 mov [rbp+var_1], 1 jmp short loc_CA792 loc_CA738: mov rax, [rbp+var_10] cmp qword ptr [rax], 0 jz short loc_CA78C mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_18], rax cmp [rbp+var_18], 0 jz short loc_CA775 mov rax, [rbp+var_18] cmp dword ptr [rax], 0FFFFFFFFh jz short loc_CA775 mov rax, [rbp+var_18] mov edi, [rax] call _close mov [rbp+var_1C], eax mov rax, [rbp+var_18] mov dword ptr [rax], 0FFFFFFFFh loc_CA775: mov rax, [rbp+var_10] mov rdi, [rax] call _free mov rax, [rbp+var_10] mov qword ptr [rax], 0 loc_CA78C: mov eax, [rbp+var_1C] mov [rbp+var_1], al loc_CA792: mov al, [rbp+var_1] add rsp, 20h pop rbp retn
char pvio_socket_close(_QWORD *a1) { char v2; // [rsp+4h] [rbp-1Ch] _DWORD *v3; // [rsp+8h] [rbp-18h] v2 = 0; if ( !a1 ) return 1; if ( *a1 ) { v3 = (_DWORD *)*a1; if ( *(_DWORD *)*a1 != -1 ) { v2 = close((unsigned int)*v3); *v3 = -1; } free(*a1); *a1 = 0LL; } return v2; }
pvio_socket_close: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],0x0 MOV dword ptr [RBP + -0x1c],0x0 CMP qword ptr [RBP + -0x10],0x0 JNZ 0x001ca738 MOV byte ptr [RBP + -0x1],0x1 JMP 0x001ca792 LAB_001ca738: MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX],0x0 JZ 0x001ca78c MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x18],RAX CMP qword ptr [RBP + -0x18],0x0 JZ 0x001ca775 MOV RAX,qword ptr [RBP + -0x18] CMP dword ptr [RAX],-0x1 JZ 0x001ca775 MOV RAX,qword ptr [RBP + -0x18] MOV EDI,dword ptr [RAX] CALL 0x0013a210 MOV dword ptr [RBP + -0x1c],EAX MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX],0xffffffff LAB_001ca775: MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX] CALL 0x0013a1a0 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],0x0 LAB_001ca78c: MOV EAX,dword ptr [RBP + -0x1c] MOV byte ptr [RBP + -0x1],AL LAB_001ca792: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x20 POP RBP RET
int1 pvio_socket_close(long *param_1) { int *piVar1; int1 uVar2; int iVar3; int1 local_24; int1 local_9; local_24 = 0; uVar2 = local_24; local_24 = 0; if (param_1 == (long *)0x0) { local_9 = 1; } else { if (*param_1 != 0) { piVar1 = (int *)*param_1; local_24 = uVar2; if ((piVar1 != (int *)0x0) && (*piVar1 != -1)) { iVar3 = close(*piVar1); local_24 = (int1)iVar3; *piVar1 = -1; } free((void *)*param_1); *param_1 = 0; } local_9 = local_24; } return local_9; }
39,854
test_bug24179
eloqsql/libmariadb/unittest/libmariadb/cursor.c
static int test_bug24179(MYSQL *mysql) { int rc; MYSQL_STMT *stmt; // works with xpand SKIP_XPAND; stmt= open_cursor(mysql, "select 1 into @a"); rc= mysql_stmt_execute(stmt); FAIL_UNLESS(rc, "Error expected"); FAIL_UNLESS(mysql_stmt_errno(stmt) == 1323, "stmt_errno != 1323"); mysql_stmt_close(stmt); return OK; }
O0
c
test_bug24179: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) cmpq $0x0, 0x4f5cc(%rip) # 0x6a6b0 je 0x1b107 movq 0x4f5c3(%rip), %rdi # 0x6a6b0 callq 0x28680 movq %rax, %rdi leaq 0x38490(%rip), %rsi # 0x5358c callq 0x13100 cmpq $0x0, %rax jne 0x1b139 leaq 0x38484(%rip), %rdi # 0x53592 callq 0x13540 cmpq $0x0, %rax je 0x1b153 leaq 0x38472(%rip), %rdi # 0x53592 callq 0x13540 movq %rax, %rdi leaq 0x3a5a5(%rip), %rsi # 0x556d4 callq 0x135f0 cmpl $0x0, %eax jne 0x1b153 leaq 0x3a581(%rip), %rdi # 0x556c1 movb $0x0, %al callq 0x1d330 movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x1b1f3 movq -0x10(%rbp), %rdi leaq 0x3a57c(%rip), %rsi # 0x556da callq 0x14f50 movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rdi callq 0x33c70 movl %eax, -0x14(%rbp) cmpl $0x0, -0x14(%rbp) jne 0x1b1a3 leaq 0x37fd8(%rip), %rdi # 0x53158 leaq 0x3a564(%rip), %rsi # 0x556eb leaq 0x38556(%rip), %rdx # 0x536e4 movl $0x576, %ecx # imm = 0x576 movb $0x0, %al callq 0x1d330 movl $0x1, -0x4(%rbp) jmp 0x1b1f3 jmp 0x1b1a5 jmp 0x1b1a7 movq -0x20(%rbp), %rdi callq 0x316a0 cmpl $0x52b, %eax # imm = 0x52B je 0x1b1e1 leaq 0x37f9a(%rip), %rdi # 0x53158 leaq 0x3a535(%rip), %rsi # 0x556fa leaq 0x38518(%rip), %rdx # 0x536e4 movl $0x577, %ecx # imm = 0x577 movb $0x0, %al callq 0x1d330 movl $0x1, -0x4(%rbp) jmp 0x1b1f3 jmp 0x1b1e3 movq -0x20(%rbp), %rdi callq 0x315a0 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x20, %rsp popq %rbp retq nopl (%rax)
test_bug24179: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi cmp cs:mysql_default, 0 jz short loc_1B107 mov rdi, cs:mysql_default call mysql_get_server_info mov rdi, rax lea rsi, aXpand; "Xpand" call _strstr cmp rax, 0 jnz short loc_1B139 loc_1B107: lea rdi, aSrv; "srv" call _getenv cmp rax, 0 jz short loc_1B153 lea rdi, aSrv; "srv" call _getenv mov rdi, rax lea rsi, aTestDisabledWi+13h; "xpand" call _strcmp cmp eax, 0 jnz short loc_1B153 loc_1B139: lea rdi, aTestDisabledWi; "test disabled with xpand" mov al, 0 call diag mov [rbp+var_4], 0FFFFFFFFh jmp loc_1B1F3 loc_1B153: mov rdi, [rbp+var_10] lea rsi, aSelect1IntoA; "select 1 into @a" call open_cursor mov [rbp+var_20], rax mov rdi, [rbp+var_20] call mysql_stmt_execute mov [rbp+var_14], eax cmp [rbp+var_14], 0 jnz short loc_1B1A3 lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rsi, aErrorExpected; "Error expected" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov ecx, 576h mov al, 0 call diag mov [rbp+var_4], 1 jmp short loc_1B1F3 loc_1B1A3: jmp short $+2 loc_1B1A5: jmp short $+2 loc_1B1A7: mov rdi, [rbp+var_20] call mysql_stmt_errno cmp eax, 52Bh jz short loc_1B1E1 lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rsi, aStmtErrno1323; "stmt_errno != 1323" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov ecx, 577h mov al, 0 call diag mov [rbp+var_4], 1 jmp short loc_1B1F3 loc_1B1E1: jmp short $+2 loc_1B1E3: mov rdi, [rbp+var_20] call mysql_stmt_close mov [rbp+var_4], 0 loc_1B1F3: mov eax, [rbp+var_4] add rsp, 20h pop rbp retn
long long test_bug24179(long long a1) { long long server_info; // rax char *v2; // rsi int v3; // edx int v4; // ecx int v5; // r8d int v6; // r9d long long v7; // rax int v8; // r8d int v9; // r9d int v10; // r8d int v11; // r9d long long v13; // [rsp+0h] [rbp-20h] if ( mysql_default && (server_info = mysql_get_server_info(mysql_default), v2 = "Xpand", strstr(server_info, "Xpand")) || getenv("srv") && (v7 = getenv("srv"), v2 = "xpand", !(unsigned int)strcmp(v7, "xpand")) ) { diag((unsigned int)"test disabled with xpand", (_DWORD)v2, v3, v4, v5, v6); return (unsigned int)-1; } else { v13 = open_cursor(a1, (long long)"select 1 into @a"); if ( (unsigned int)mysql_stmt_execute(v13) ) { if ( (unsigned int)mysql_stmt_errno(v13) == 1323 ) { mysql_stmt_close(v13); return 0; } else { diag( (unsigned int)"Error: %s (%s: %d)", (unsigned int)"stmt_errno != 1323", (unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/cursor.c", 1399, v10, v11); return 1; } } else { diag( (unsigned int)"Error: %s (%s: %d)", (unsigned int)"Error expected", (unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/cursor.c", 1398, v8, v9); return 1; } } }
test_bug24179: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI CMP qword ptr [0x0016a6b0],0x0 JZ 0x0011b107 MOV RDI,qword ptr [0x0016a6b0] CALL 0x00128680 MOV RDI,RAX LEA RSI,[0x15358c] CALL 0x00113100 CMP RAX,0x0 JNZ 0x0011b139 LAB_0011b107: LEA RDI,[0x153592] CALL 0x00113540 CMP RAX,0x0 JZ 0x0011b153 LEA RDI,[0x153592] CALL 0x00113540 MOV RDI,RAX LEA RSI,[0x1556d4] CALL 0x001135f0 CMP EAX,0x0 JNZ 0x0011b153 LAB_0011b139: LEA RDI,[0x1556c1] MOV AL,0x0 CALL 0x0011d330 MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x0011b1f3 LAB_0011b153: MOV RDI,qword ptr [RBP + -0x10] LEA RSI,[0x1556da] CALL 0x00114f50 MOV qword ptr [RBP + -0x20],RAX MOV RDI,qword ptr [RBP + -0x20] CALL 0x00133c70 MOV dword ptr [RBP + -0x14],EAX CMP dword ptr [RBP + -0x14],0x0 JNZ 0x0011b1a3 LEA RDI,[0x153158] LEA RSI,[0x1556eb] LEA RDX,[0x1536e4] MOV ECX,0x576 MOV AL,0x0 CALL 0x0011d330 MOV dword ptr [RBP + -0x4],0x1 JMP 0x0011b1f3 LAB_0011b1a3: JMP 0x0011b1a5 LAB_0011b1a5: JMP 0x0011b1a7 LAB_0011b1a7: MOV RDI,qword ptr [RBP + -0x20] CALL 0x001316a0 CMP EAX,0x52b JZ 0x0011b1e1 LEA RDI,[0x153158] LEA RSI,[0x1556fa] LEA RDX,[0x1536e4] MOV ECX,0x577 MOV AL,0x0 CALL 0x0011d330 MOV dword ptr [RBP + -0x4],0x1 JMP 0x0011b1f3 LAB_0011b1e1: JMP 0x0011b1e3 LAB_0011b1e3: MOV RDI,qword ptr [RBP + -0x20] CALL 0x001315a0 MOV dword ptr [RBP + -0x4],0x0 LAB_0011b1f3: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x20 POP RBP RET
int4 test_bug24179(int8 param_1) { int iVar1; char *pcVar2; int8 uVar3; int4 local_c; if (mysql_default == 0) { LAB_0011b107: pcVar2 = getenv("srv"); if (pcVar2 != (char *)0x0) { pcVar2 = getenv("srv"); iVar1 = strcmp(pcVar2,"xpand"); if (iVar1 == 0) goto LAB_0011b139; } uVar3 = open_cursor(param_1,"select 1 into @a"); iVar1 = mysql_stmt_execute(uVar3); if (iVar1 == 0) { diag("Error: %s (%s: %d)","Error expected", "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/cursor.c",0x576) ; local_c = 1; } else { iVar1 = mysql_stmt_errno(uVar3); if (iVar1 == 0x52b) { mysql_stmt_close(uVar3); local_c = 0; } else { diag("Error: %s (%s: %d)","stmt_errno != 1323", "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/cursor.c", 0x577); local_c = 1; } } } else { pcVar2 = (char *)mysql_get_server_info(mysql_default); pcVar2 = strstr(pcVar2,"Xpand"); if (pcVar2 == (char *)0x0) goto LAB_0011b107; LAB_0011b139: diag("test disabled with xpand"); local_c = 0xffffffff; } return local_c; }
39,855
apply_one_rule
eloqsql/strings/ctype-uca.c
static my_bool apply_one_rule(MY_CHARSET_LOADER *loader, MY_COLL_RULES *rules, MY_COLL_RULE *r, MY_UCA_WEIGHT_LEVEL *dst) { size_t nweights; size_t nreset= my_coll_rule_reset_length(r); /* Length of reset sequence */ size_t nshift= my_coll_rule_shift_length(r); /* Length of shift sequence */ uint16 *to; my_bool rc; if ((rules->shift_after_method == my_shift_method_expand && r->diff[0]) || r->before_level == 1) { /* Suppose we have this rule: &B[before primary] < C i.e. we need to put C before B, but after A, so the result order is: A < C < B. Let primary weight of B be [BBBB]. We cannot just use [BBBB-1] as weight for C: DUCET does not have enough unused weights between any two characters, so using [BBBB-1] will likely make C equal to the previous character, which is A, so we'll get this order instead of the desired: A = C < B. To guarantee that that C is sorted after A, we'll use expansion with a kind of "biggest possible character". As "biggest possible character" we'll use "last_non_ignorable": We'll compose weight for C as: [BBBB-1][MMMM+1] where [MMMM] is weight for "last_non_ignorable". We also do the same trick for "reset after" if the collation option says so. E.g. for the rules "&B < C", weight for C will be calculated as: [BBBB][MMMM+1] At this point we only need to store codepoints 'B' and 'last_non_ignorable'. Actual weights for 'C' will be calculated according to the above formula later, in create_tailoring(). */ if (!my_coll_rule_expand(r->base, MY_UCA_MAX_EXPANSION, rules->uca->last_non_ignorable)) { my_charset_loader_error_for_rule(loader, r, "Expansion", r->base, nreset); return TRUE; } nreset= my_coll_rule_reset_length(r); } if (nshift >= 2) /* Contraction */ { MY_CONTRACTIONS *contractions= &dst->contractions; to= my_uca_init_one_contraction(contractions, r->curr, (uint)nshift, r->with_context); /* Store weights of the "reset to" character */ dst->contractions.nitems--; /* Temporarily hide - it's incomplete */ rc= my_char_weight_put(dst, to, MY_UCA_CONTRACTION_MAX_WEIGHT_SIZE, &nweights, r->base, nreset); dst->contractions.nitems++; /* Activate, now it's complete */ } else { my_wc_t pagec= (r->curr[0] >> 8); DBUG_ASSERT(dst->weights[pagec]); to= my_char_weight_addr(dst, r->curr[0]); /* Store weights of the "reset to" character */ rc= my_char_weight_put(dst, to, dst->lengths[pagec], &nweights, r->base, nreset); } if (rc) { my_charset_loader_error_for_rule(loader, r, "Expansion", r->base, nreset); return rc; } /* Apply level difference. */ return apply_shift(loader, rules, r, dst->levelno, to, nweights); }
O0
c
apply_one_rule: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x20(%rbp), %rdi callq 0x57020 movq %rax, -0x38(%rbp) movq -0x20(%rbp), %rdi callq 0x57040 movq %rax, -0x40(%rbp) movq -0x18(%rbp), %rax cmpl $0x1, 0x30(%rax) jne 0x569f9 movq -0x20(%rbp), %rax cmpl $0x0, 0x80(%rax) jne 0x56a07 movq -0x20(%rbp), %rax cmpq $0x1, 0x90(%rax) jne 0x56a58 movq -0x20(%rbp), %rdi movq -0x18(%rbp), %rax movq 0x8(%rax), %rax movq 0x78(%rax), %rdx movl $0xa, %esi callq 0x56400 cmpl $0x0, %eax jne 0x56a4b movq -0x10(%rbp), %rdi movq -0x20(%rbp), %rsi movq -0x20(%rbp), %rcx movq -0x38(%rbp), %r8 leaq 0x2cea3(%rip), %rdx # 0x838e0 callq 0x57070 movb $0x1, -0x1(%rbp) jmp 0x56b78 movq -0x20(%rbp), %rdi callq 0x57020 movq %rax, -0x38(%rbp) cmpq $0x2, -0x40(%rbp) jb 0x56ad4 movq -0x28(%rbp), %rax addq $0x18, %rax movq %rax, -0x58(%rbp) movq -0x58(%rbp), %rdi movq -0x20(%rbp), %rsi addq $0x50, %rsi movq -0x40(%rbp), %rax movl %eax, %edx movq -0x20(%rbp), %rax movsbl 0x98(%rax), %ecx callq 0x56b90 movq %rax, -0x48(%rbp) movq -0x28(%rbp), %rax movq 0x18(%rax), %rcx addq $-0x1, %rcx movq %rcx, 0x18(%rax) movq -0x28(%rbp), %rdi movq -0x48(%rbp), %rsi movq -0x20(%rbp), %r8 movq -0x38(%rbp), %r9 movl $0x11, %edx leaq -0x30(%rbp), %rcx callq 0x57130 movb %al, -0x49(%rbp) movq -0x28(%rbp), %rax movq 0x18(%rax), %rcx addq $0x1, %rcx movq %rcx, 0x18(%rax) jmp 0x56b2b movq -0x20(%rbp), %rax movq 0x50(%rax), %rax shrq $0x8, %rax movq %rax, -0x60(%rbp) jmp 0x56ae6 movq -0x28(%rbp), %rdi movq -0x20(%rbp), %rax movq 0x50(%rax), %rax movl %eax, %esi callq 0x548f0 movq %rax, -0x48(%rbp) movq -0x28(%rbp), %rdi movq -0x48(%rbp), %rsi movq -0x28(%rbp), %rax movq 0x8(%rax), %rax movq -0x60(%rbp), %rcx movzbl (%rax,%rcx), %eax movl %eax, %edx movq -0x20(%rbp), %r8 movq -0x38(%rbp), %r9 leaq -0x30(%rbp), %rcx callq 0x57130 movb %al, -0x49(%rbp) cmpb $0x0, -0x49(%rbp) je 0x56b55 movq -0x10(%rbp), %rdi movq -0x20(%rbp), %rsi movq -0x20(%rbp), %rcx movq -0x38(%rbp), %r8 leaq 0x2cd98(%rip), %rdx # 0x838e0 callq 0x57070 movb -0x49(%rbp), %al movb %al, -0x1(%rbp) jmp 0x56b78 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rdx movq -0x28(%rbp), %rax movl 0x30(%rax), %ecx movq -0x48(%rbp), %r8 movq -0x30(%rbp), %r9 callq 0x57330 movb %al, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
apply_one_rule: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov rdi, [rbp+var_20] call my_coll_rule_reset_length mov [rbp+var_38], rax mov rdi, [rbp+var_20] call my_coll_rule_shift_length mov [rbp+var_40], rax mov rax, [rbp+var_18] cmp dword ptr [rax+30h], 1 jnz short loc_569F9 mov rax, [rbp+var_20] cmp dword ptr [rax+80h], 0 jnz short loc_56A07 loc_569F9: mov rax, [rbp+var_20] cmp qword ptr [rax+90h], 1 jnz short loc_56A58 loc_56A07: mov rdi, [rbp+var_20] mov rax, [rbp+var_18] mov rax, [rax+8] mov rdx, [rax+78h] mov esi, 0Ah call my_coll_rule_expand cmp eax, 0 jnz short loc_56A4B mov rdi, [rbp+var_10] mov rsi, [rbp+var_20] mov rcx, [rbp+var_20] mov r8, [rbp+var_38] lea rdx, aExpansion; "Expansion" call my_charset_loader_error_for_rule mov [rbp+var_1], 1 jmp loc_56B78 loc_56A4B: mov rdi, [rbp+var_20] call my_coll_rule_reset_length mov [rbp+var_38], rax loc_56A58: cmp [rbp+var_40], 2 jb short loc_56AD4 mov rax, [rbp+var_28] add rax, 18h mov [rbp+var_58], rax mov rdi, [rbp+var_58] mov rsi, [rbp+var_20] add rsi, 50h ; 'P' mov rax, [rbp+var_40] mov edx, eax mov rax, [rbp+var_20] movsx ecx, byte ptr [rax+98h] call my_uca_init_one_contraction mov [rbp+var_48], rax mov rax, [rbp+var_28] mov rcx, [rax+18h] add rcx, 0FFFFFFFFFFFFFFFFh mov [rax+18h], rcx mov rdi, [rbp+var_28] mov rsi, [rbp+var_48] mov r8, [rbp+var_20] mov r9, [rbp+var_38] mov edx, 11h lea rcx, [rbp+var_30] call my_char_weight_put mov [rbp+var_49], al mov rax, [rbp+var_28] mov rcx, [rax+18h] add rcx, 1 mov [rax+18h], rcx jmp short loc_56B2B loc_56AD4: mov rax, [rbp+var_20] mov rax, [rax+50h] shr rax, 8 mov [rbp+var_60], rax jmp short $+2 loc_56AE6: mov rdi, [rbp+var_28] mov rax, [rbp+var_20] mov rax, [rax+50h] mov esi, eax call my_char_weight_addr mov [rbp+var_48], rax mov rdi, [rbp+var_28] mov rsi, [rbp+var_48] mov rax, [rbp+var_28] mov rax, [rax+8] mov rcx, [rbp+var_60] movzx eax, byte ptr [rax+rcx] mov edx, eax mov r8, [rbp+var_20] mov r9, [rbp+var_38] lea rcx, [rbp+var_30] call my_char_weight_put mov [rbp+var_49], al loc_56B2B: cmp [rbp+var_49], 0 jz short loc_56B55 mov rdi, [rbp+var_10] mov rsi, [rbp+var_20] mov rcx, [rbp+var_20] mov r8, [rbp+var_38] lea rdx, aExpansion; "Expansion" call my_charset_loader_error_for_rule mov al, [rbp+var_49] mov [rbp+var_1], al jmp short loc_56B78 loc_56B55: mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] mov rdx, [rbp+var_20] mov rax, [rbp+var_28] mov ecx, [rax+30h] mov r8, [rbp+var_48] mov r9, [rbp+var_30] call apply_shift mov [rbp+var_1], al loc_56B78: mov al, [rbp+var_1] add rsp, 60h pop rbp retn
char apply_one_rule(long long a1, long long a2, long long a3, _QWORD *a4) { long long v5; // [rsp+0h] [rbp-60h] char v6; // [rsp+17h] [rbp-49h] long long inited; // [rsp+18h] [rbp-48h] unsigned long long v8; // [rsp+20h] [rbp-40h] long long v9; // [rsp+28h] [rbp-38h] long long v10; // [rsp+30h] [rbp-30h] BYREF _QWORD *v11; // [rsp+38h] [rbp-28h] long long v12; // [rsp+40h] [rbp-20h] long long v13; // [rsp+48h] [rbp-18h] long long v14; // [rsp+50h] [rbp-10h] v14 = a1; v13 = a2; v12 = a3; v11 = a4; v9 = my_coll_rule_reset_length(a3); v8 = my_coll_rule_shift_length(v12); if ( *(_DWORD *)(a2 + 48) == 1 && *(_DWORD *)(v12 + 128) || *(_QWORD *)(v12 + 144) == 1LL ) { if ( !(unsigned int)my_coll_rule_expand(v12, 0xAuLL, *(_QWORD *)(*(_QWORD *)(v13 + 8) + 120LL)) ) { my_charset_loader_error_for_rule(v14, v12, "Expansion", v12, v9); return 1; } v9 = my_coll_rule_reset_length(v12); } if ( v8 < 2 ) { v5 = *(_QWORD *)(v12 + 80) >> 8; inited = my_char_weight_addr(v11, *(_QWORD *)(v12 + 80)); v6 = my_char_weight_put(v11, inited, *(unsigned __int8 *)(v11[1] + v5), &v10, v12, v9); } else { inited = my_uca_init_one_contraction(v11 + 3, v12 + 80, (unsigned int)v8, (unsigned int)*(char *)(v12 + 152)); --v11[3]; v6 = my_char_weight_put(v11, inited, 17LL, &v10, v12, v9); ++v11[3]; } if ( !v6 ) return apply_shift(v14, v13, v12, *((unsigned int *)v11 + 12), inited, v10); my_charset_loader_error_for_rule(v14, v12, "Expansion", v12, v9); return v6; }
apply_one_rule: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV RDI,qword ptr [RBP + -0x20] CALL 0x00157020 MOV qword ptr [RBP + -0x38],RAX MOV RDI,qword ptr [RBP + -0x20] CALL 0x00157040 MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x18] CMP dword ptr [RAX + 0x30],0x1 JNZ 0x001569f9 MOV RAX,qword ptr [RBP + -0x20] CMP dword ptr [RAX + 0x80],0x0 JNZ 0x00156a07 LAB_001569f9: MOV RAX,qword ptr [RBP + -0x20] CMP qword ptr [RAX + 0x90],0x1 JNZ 0x00156a58 LAB_00156a07: MOV RDI,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x8] MOV RDX,qword ptr [RAX + 0x78] MOV ESI,0xa CALL 0x00156400 CMP EAX,0x0 JNZ 0x00156a4b MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x20] MOV R8,qword ptr [RBP + -0x38] LEA RDX,[0x1838e0] CALL 0x00157070 MOV byte ptr [RBP + -0x1],0x1 JMP 0x00156b78 LAB_00156a4b: MOV RDI,qword ptr [RBP + -0x20] CALL 0x00157020 MOV qword ptr [RBP + -0x38],RAX LAB_00156a58: CMP qword ptr [RBP + -0x40],0x2 JC 0x00156ad4 MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x18 MOV qword ptr [RBP + -0x58],RAX MOV RDI,qword ptr [RBP + -0x58] MOV RSI,qword ptr [RBP + -0x20] ADD RSI,0x50 MOV RAX,qword ptr [RBP + -0x40] MOV EDX,EAX MOV RAX,qword ptr [RBP + -0x20] MOVSX ECX,byte ptr [RAX + 0x98] CALL 0x00156b90 MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RAX + 0x18] ADD RCX,-0x1 MOV qword ptr [RAX + 0x18],RCX MOV RDI,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RBP + -0x48] MOV R8,qword ptr [RBP + -0x20] MOV R9,qword ptr [RBP + -0x38] MOV EDX,0x11 LEA RCX,[RBP + -0x30] CALL 0x00157130 MOV byte ptr [RBP + -0x49],AL MOV RAX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RAX + 0x18] ADD RCX,0x1 MOV qword ptr [RAX + 0x18],RCX JMP 0x00156b2b LAB_00156ad4: MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x50] SHR RAX,0x8 MOV qword ptr [RBP + -0x60],RAX JMP 0x00156ae6 LAB_00156ae6: MOV RDI,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x50] MOV ESI,EAX CALL 0x001548f0 MOV qword ptr [RBP + -0x48],RAX MOV RDI,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RBP + -0x48] MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX + 0x8] MOV RCX,qword ptr [RBP + -0x60] MOVZX EAX,byte ptr [RAX + RCX*0x1] MOV EDX,EAX MOV R8,qword ptr [RBP + -0x20] MOV R9,qword ptr [RBP + -0x38] LEA RCX,[RBP + -0x30] CALL 0x00157130 MOV byte ptr [RBP + -0x49],AL LAB_00156b2b: CMP byte ptr [RBP + -0x49],0x0 JZ 0x00156b55 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x20] MOV R8,qword ptr [RBP + -0x38] LEA RDX,[0x1838e0] CALL 0x00157070 MOV AL,byte ptr [RBP + -0x49] MOV byte ptr [RBP + -0x1],AL JMP 0x00156b78 LAB_00156b55: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x28] MOV ECX,dword ptr [RAX + 0x30] MOV R8,qword ptr [RBP + -0x48] MOV R9,qword ptr [RBP + -0x30] CALL 0x00157330 MOV byte ptr [RBP + -0x1],AL LAB_00156b78: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x60 POP RBP RET
int8 apply_one_rule(int8 param_1,long param_2,long param_3,long param_4) { char extraout_AL; int iVar1; ulong uVar2; int7 extraout_var; int8 uVar3; int7 uVar4; int7 extraout_var_00; char local_51; int8 local_50; int8 local_40; int8 local_38; long local_30; long local_28; long local_20; int8 local_18; char local_9; local_30 = param_4; local_28 = param_3; local_20 = param_2; local_18 = param_1; local_40 = my_coll_rule_reset_length(param_3); uVar2 = my_coll_rule_shift_length(local_28); if (((*(int *)(local_20 + 0x30) == 1) && (*(int *)(local_28 + 0x80) != 0)) || (*(long *)(local_28 + 0x90) == 1)) { iVar1 = my_coll_rule_expand(local_28,10,*(int8 *)(*(long *)(local_20 + 8) + 0x78)); if (iVar1 == 0) { my_charset_loader_error_for_rule(local_18,local_28,"Expansion",local_28,local_40); local_9 = '\x01'; uVar4 = extraout_var; goto LAB_00156b78; } local_40 = my_coll_rule_reset_length(local_28); } if (uVar2 < 2) { uVar2 = *(ulong *)(local_28 + 0x50); local_50 = my_char_weight_addr(local_30,*(ulong *)(local_28 + 0x50) & 0xffffffff); local_51 = my_char_weight_put(local_30,local_50, *(int1 *)(*(long *)(local_30 + 8) + (uVar2 >> 8)),&local_38, local_28,local_40); } else { local_50 = my_uca_init_one_contraction (local_30 + 0x18,local_28 + 0x50,uVar2 & 0xffffffff, (int)*(char *)(local_28 + 0x98)); *(long *)(local_30 + 0x18) = *(long *)(local_30 + 0x18) + -1; local_51 = my_char_weight_put(local_30,local_50,0x11,&local_38,local_28,local_40); *(long *)(local_30 + 0x18) = *(long *)(local_30 + 0x18) + 1; } if (local_51 == '\0') { apply_shift(local_18,local_20,local_28,*(int4 *)(local_30 + 0x30),local_50,local_38); uVar4 = extraout_var_00; local_9 = extraout_AL; } else { uVar3 = my_charset_loader_error_for_rule(local_18,local_28,"Expansion",local_28,local_40); uVar4 = (int7)((ulong)uVar3 >> 8); local_9 = local_51; } LAB_00156b78: return CONCAT71(uVar4,local_9); }
39,856
ma_init_dynamic_string
eloqsql/libmariadb/libmariadb/ma_string.c
my_bool ma_init_dynamic_string(DYNAMIC_STRING *str, const char *init_str, size_t init_alloc, size_t alloc_increment) { uint length; if (!alloc_increment) alloc_increment=128; length=1; if (init_str && (length= (uint) strlen(init_str)+1) < init_alloc) init_alloc=((length+alloc_increment-1)/alloc_increment)*alloc_increment; if (!init_alloc) init_alloc=alloc_increment; if (!(str->str=(char*) malloc(init_alloc))) return(TRUE); str->length=length-1; if (init_str) memcpy(str->str,init_str,length); str->max_length=init_alloc; str->alloc_increment=alloc_increment; return(FALSE); }
O0
c
ma_init_dynamic_string: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) cmpq $0x0, -0x28(%rbp) jne 0x4c137 movq $0x80, -0x28(%rbp) movl $0x1, -0x2c(%rbp) cmpq $0x0, -0x18(%rbp) je 0x4c178 movq -0x18(%rbp), %rdi callq 0x141a0 addl $0x1, %eax movl %eax, -0x2c(%rbp) movl %eax, %eax cmpq -0x20(%rbp), %rax jae 0x4c178 movl -0x2c(%rbp), %eax addq -0x28(%rbp), %rax subq $0x1, %rax xorl %ecx, %ecx movl %ecx, %edx divq -0x28(%rbp) imulq -0x28(%rbp), %rax movq %rax, -0x20(%rbp) cmpq $0x0, -0x20(%rbp) jne 0x4c187 movq -0x28(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rdi callq 0x145c0 movq -0x10(%rbp), %rcx movq %rax, (%rcx) cmpq $0x0, %rax jne 0x4c1a3 movb $0x1, -0x1(%rbp) jmp 0x4c1ed movl -0x2c(%rbp), %eax subl $0x1, %eax movl %eax, %eax movl %eax, %ecx movq -0x10(%rbp), %rax movq %rcx, 0x8(%rax) cmpq $0x0, -0x18(%rbp) je 0x4c1d1 movq -0x10(%rbp), %rax movq (%rax), %rdi movq -0x18(%rbp), %rsi movl -0x2c(%rbp), %eax movl %eax, %edx callq 0x14370 movq -0x20(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x10(%rax) movq -0x28(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x18(%rax) movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
ma_init_dynamic_string: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx cmp [rbp+var_28], 0 jnz short loc_4C137 mov [rbp+var_28], 80h loc_4C137: mov [rbp+var_2C], 1 cmp [rbp+var_18], 0 jz short loc_4C178 mov rdi, [rbp+var_18] call _strlen add eax, 1 mov [rbp+var_2C], eax mov eax, eax cmp rax, [rbp+var_20] jnb short loc_4C178 mov eax, [rbp+var_2C] add rax, [rbp+var_28] sub rax, 1 xor ecx, ecx mov edx, ecx div [rbp+var_28] imul rax, [rbp+var_28] mov [rbp+var_20], rax loc_4C178: cmp [rbp+var_20], 0 jnz short loc_4C187 mov rax, [rbp+var_28] mov [rbp+var_20], rax loc_4C187: mov rdi, [rbp+var_20] call _malloc mov rcx, [rbp+var_10] mov [rcx], rax cmp rax, 0 jnz short loc_4C1A3 mov [rbp+var_1], 1 jmp short loc_4C1ED loc_4C1A3: mov eax, [rbp+var_2C] sub eax, 1 mov eax, eax mov ecx, eax mov rax, [rbp+var_10] mov [rax+8], rcx cmp [rbp+var_18], 0 jz short loc_4C1D1 mov rax, [rbp+var_10] mov rdi, [rax] mov rsi, [rbp+var_18] mov eax, [rbp+var_2C] mov edx, eax call _memcpy loc_4C1D1: mov rcx, [rbp+var_20] mov rax, [rbp+var_10] mov [rax+10h], rcx mov rcx, [rbp+var_28] mov rax, [rbp+var_10] mov [rax+18h], rcx mov [rbp+var_1], 0 loc_4C1ED: mov al, [rbp+var_1] add rsp, 30h pop rbp retn
char ma_init_dynamic_string(long long *a1, long long a2, unsigned long long a3, unsigned long long a4) { long long v4; // rax unsigned int v6; // [rsp+4h] [rbp-2Ch] unsigned long long v7; // [rsp+8h] [rbp-28h] v7 = a4; if ( !a4 ) v7 = 128LL; v6 = 1; if ( a2 ) { v6 = strlen(a2) + 1; if ( v6 < a3 ) a3 = v7 * ((v7 + v6 - 1) / v7); } if ( !a3 ) a3 = v7; v4 = malloc(a3); *a1 = v4; if ( !v4 ) return 1; a1[1] = v6 - 1; if ( a2 ) memcpy(*a1, a2, v6); a1[2] = a3; a1[3] = v7; return 0; }
ma_init_dynamic_string: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX CMP qword ptr [RBP + -0x28],0x0 JNZ 0x0014c137 MOV qword ptr [RBP + -0x28],0x80 LAB_0014c137: MOV dword ptr [RBP + -0x2c],0x1 CMP qword ptr [RBP + -0x18],0x0 JZ 0x0014c178 MOV RDI,qword ptr [RBP + -0x18] CALL 0x001141a0 ADD EAX,0x1 MOV dword ptr [RBP + -0x2c],EAX MOV EAX,EAX CMP RAX,qword ptr [RBP + -0x20] JNC 0x0014c178 MOV EAX,dword ptr [RBP + -0x2c] ADD RAX,qword ptr [RBP + -0x28] SUB RAX,0x1 XOR ECX,ECX MOV EDX,ECX DIV qword ptr [RBP + -0x28] IMUL RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x20],RAX LAB_0014c178: CMP qword ptr [RBP + -0x20],0x0 JNZ 0x0014c187 MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x20],RAX LAB_0014c187: MOV RDI,qword ptr [RBP + -0x20] CALL 0x001145c0 MOV RCX,qword ptr [RBP + -0x10] MOV qword ptr [RCX],RAX CMP RAX,0x0 JNZ 0x0014c1a3 MOV byte ptr [RBP + -0x1],0x1 JMP 0x0014c1ed LAB_0014c1a3: MOV EAX,dword ptr [RBP + -0x2c] SUB EAX,0x1 MOV EAX,EAX MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x8],RCX CMP qword ptr [RBP + -0x18],0x0 JZ 0x0014c1d1 MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RBP + -0x2c] MOV EDX,EAX CALL 0x00114370 LAB_0014c1d1: MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x10],RCX MOV RCX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x18],RCX MOV byte ptr [RBP + -0x1],0x0 LAB_0014c1ed: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x30 POP RBP RET
int1 ma_init_dynamic_string(int8 *param_1,char *param_2,ulong param_3,ulong param_4) { size_t sVar1; void *pvVar2; uint local_34; ulong local_30; ulong local_28; int1 local_9; local_30 = param_4; if (param_4 == 0) { local_30 = 0x80; } local_34 = 1; local_28 = param_3; if (param_2 != (char *)0x0) { sVar1 = strlen(param_2); local_34 = (int)sVar1 + 1; if (local_34 < param_3) { local_28 = (((local_34 + local_30) - 1) / local_30) * local_30; } } if (local_28 == 0) { local_28 = local_30; } pvVar2 = malloc(local_28); *param_1 = pvVar2; if (pvVar2 == (void *)0x0) { local_9 = 1; } else { param_1[1] = (ulong)(local_34 - 1); if (param_2 != (char *)0x0) { memcpy((void *)*param_1,param_2,(ulong)local_34); } param_1[2] = local_28; param_1[3] = local_30; local_9 = 0; } return local_9; }
39,857
close_lexical_var
bluesky950520[P]quickjs/quickjs.c
static void close_lexical_var(JSContext *ctx, JSStackFrame *sf, int var_idx) { struct list_head *el, *el1; JSVarRef *var_ref; list_for_each_safe(el, el1, &sf->var_ref_list) { var_ref = list_entry(el, JSVarRef, header.link); if (var_idx == var_ref->var_idx && !var_ref->is_arg) { var_ref->value = js_dup(sf->var_buf[var_idx]); var_ref->pvalue = &var_ref->value; list_del(&var_ref->header.link); /* the reference is no longer to a local variable */ var_ref->is_detached = TRUE; add_gc_object(ctx->rt, &var_ref->header, JS_GC_OBJ_TYPE_VAR_REF); } } }
O0
c
close_lexical_var: subq $0x48, %rsp movq %rdi, 0x40(%rsp) movq %rsi, 0x38(%rsp) movl %edx, 0x34(%rsp) movq 0x38(%rsp), %rax movq 0x30(%rax), %rax movq %rax, 0x28(%rsp) movq 0x28(%rsp), %rax movq 0x8(%rax), %rax movq %rax, 0x20(%rsp) movq 0x28(%rsp), %rax movq 0x38(%rsp), %rcx addq $0x28, %rcx cmpq %rcx, %rax je 0x67261 movq 0x28(%rsp), %rax addq $-0x8, %rax movq %rax, 0x18(%rsp) movl 0x34(%rsp), %eax movq 0x18(%rsp), %rcx movzwl 0x6(%rcx), %ecx cmpl %ecx, %eax jne 0x67242 movq 0x18(%rsp), %rax movb 0x5(%rax), %al shrb %al andb $0x1, %al cmpb $0x0, %al jne 0x67242 movq 0x18(%rsp), %rax movq %rax, (%rsp) movq 0x38(%rsp), %rax movq 0x20(%rax), %rax movslq 0x34(%rsp), %rcx shlq $0x4, %rcx addq %rcx, %rax movq (%rax), %rdi movq 0x8(%rax), %rsi callq 0x216d0 movq %rax, %rcx movq (%rsp), %rax movq %rcx, 0x8(%rsp) movq %rdx, 0x10(%rsp) movq 0x8(%rsp), %rcx movq %rcx, 0x20(%rax) movq 0x10(%rsp), %rcx movq %rcx, 0x28(%rax) movq 0x18(%rsp), %rcx addq $0x20, %rcx movq 0x18(%rsp), %rax movq %rcx, 0x18(%rax) movq 0x18(%rsp), %rdi addq $0x8, %rdi callq 0x23c30 movq 0x18(%rsp), %rax movb 0x5(%rax), %cl andb $-0x2, %cl orb $0x1, %cl movb %cl, 0x5(%rax) movq 0x40(%rsp), %rax movq 0x18(%rax), %rdi movq 0x18(%rsp), %rsi movl $0x3, %edx callq 0x240d0 jmp 0x67244 movq 0x20(%rsp), %rax movq %rax, 0x28(%rsp) movq 0x28(%rsp), %rax movq 0x8(%rax), %rax movq %rax, 0x20(%rsp) jmp 0x6715e addq $0x48, %rsp retq nopw %cs:(%rax,%rax)
close_lexical_var: sub rsp, 48h mov [rsp+48h+var_8], rdi mov [rsp+48h+var_10], rsi mov [rsp+48h+var_14], edx mov rax, [rsp+48h+var_10] mov rax, [rax+30h] mov [rsp+48h+var_20], rax mov rax, [rsp+48h+var_20] mov rax, [rax+8] mov [rsp+48h+var_28], rax loc_6715E: mov rax, [rsp+48h+var_20] mov rcx, [rsp+48h+var_10] add rcx, 28h ; '(' cmp rax, rcx jz loc_67261 mov rax, [rsp+48h+var_20] add rax, 0FFFFFFFFFFFFFFF8h mov [rsp+48h+var_30], rax mov eax, [rsp+48h+var_14] mov rcx, [rsp+48h+var_30] movzx ecx, word ptr [rcx+6] cmp eax, ecx jnz loc_67242 mov rax, [rsp+48h+var_30] mov al, [rax+5] shr al, 1 and al, 1 cmp al, 0 jnz loc_67242 mov rax, [rsp+48h+var_30] mov [rsp+48h+var_48], rax mov rax, [rsp+48h+var_10] mov rax, [rax+20h] movsxd rcx, [rsp+48h+var_14] shl rcx, 4 add rax, rcx mov rdi, [rax] mov rsi, [rax+8] call js_dup mov rcx, rax mov rax, [rsp+48h+var_48] mov [rsp+48h+var_40], rcx mov [rsp+48h+var_38], rdx mov rcx, [rsp+48h+var_40] mov [rax+20h], rcx mov rcx, [rsp+48h+var_38] mov [rax+28h], rcx mov rcx, [rsp+48h+var_30] add rcx, 20h ; ' ' mov rax, [rsp+48h+var_30] mov [rax+18h], rcx mov rdi, [rsp+48h+var_30] add rdi, 8 call list_del_0 mov rax, [rsp+48h+var_30] mov cl, [rax+5] and cl, 0FEh or cl, 1 mov [rax+5], cl mov rax, [rsp+48h+var_8] mov rdi, [rax+18h] mov rsi, [rsp+48h+var_30] mov edx, 3 call add_gc_object loc_67242: jmp short $+2 loc_67244: mov rax, [rsp+48h+var_28] mov [rsp+48h+var_20], rax mov rax, [rsp+48h+var_20] mov rax, [rax+8] mov [rsp+48h+var_28], rax jmp loc_6715E loc_67261: add rsp, 48h retn
_QWORD * close_lexical_var(long long a1, _QWORD *a2, int a3) { _QWORD *result; // rax long long v4; // rax long long v5; // rdx long long v6; // [rsp+18h] [rbp-30h] _QWORD *i; // [rsp+20h] [rbp-28h] _QWORD *v8; // [rsp+28h] [rbp-20h] v8 = (_QWORD *)a2[6]; for ( i = (_QWORD *)v8[1]; ; i = (_QWORD *)i[1] ) { result = v8; if ( v8 == a2 + 5 ) break; v6 = (long long)(v8 - 1); if ( a3 == *((unsigned __int16 *)v8 - 1) && (*(_BYTE *)(v6 + 5) & 2) == 0 ) { v4 = 16LL * a3 + a2[4]; *(_QWORD *)(v6 + 32) = js_dup(*(_DWORD **)v4, *(_QWORD *)(v4 + 8)); *(_QWORD *)(v6 + 40) = v5; *(_QWORD *)(v6 + 24) = v6 + 32; list_del_0(v8); *(_BYTE *)(v6 + 5) = *(_BYTE *)(v6 + 5) & 0xFE | 1; add_gc_object(*(_QWORD *)(a1 + 24), v6, 3); } v8 = i; } return result; }
close_lexical_var: SUB RSP,0x48 MOV qword ptr [RSP + 0x40],RDI MOV qword ptr [RSP + 0x38],RSI MOV dword ptr [RSP + 0x34],EDX MOV RAX,qword ptr [RSP + 0x38] MOV RAX,qword ptr [RAX + 0x30] MOV qword ptr [RSP + 0x28],RAX MOV RAX,qword ptr [RSP + 0x28] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x20],RAX LAB_0016715e: MOV RAX,qword ptr [RSP + 0x28] MOV RCX,qword ptr [RSP + 0x38] ADD RCX,0x28 CMP RAX,RCX JZ 0x00167261 MOV RAX,qword ptr [RSP + 0x28] ADD RAX,-0x8 MOV qword ptr [RSP + 0x18],RAX MOV EAX,dword ptr [RSP + 0x34] MOV RCX,qword ptr [RSP + 0x18] MOVZX ECX,word ptr [RCX + 0x6] CMP EAX,ECX JNZ 0x00167242 MOV RAX,qword ptr [RSP + 0x18] MOV AL,byte ptr [RAX + 0x5] SHR AL,0x1 AND AL,0x1 CMP AL,0x0 JNZ 0x00167242 MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP],RAX MOV RAX,qword ptr [RSP + 0x38] MOV RAX,qword ptr [RAX + 0x20] MOVSXD RCX,dword ptr [RSP + 0x34] SHL RCX,0x4 ADD RAX,RCX MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RAX + 0x8] CALL 0x001216d0 MOV RCX,RAX MOV RAX,qword ptr [RSP] MOV qword ptr [RSP + 0x8],RCX MOV qword ptr [RSP + 0x10],RDX MOV RCX,qword ptr [RSP + 0x8] MOV qword ptr [RAX + 0x20],RCX MOV RCX,qword ptr [RSP + 0x10] MOV qword ptr [RAX + 0x28],RCX MOV RCX,qword ptr [RSP + 0x18] ADD RCX,0x20 MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RAX + 0x18],RCX MOV RDI,qword ptr [RSP + 0x18] ADD RDI,0x8 CALL 0x00123c30 MOV RAX,qword ptr [RSP + 0x18] MOV CL,byte ptr [RAX + 0x5] AND CL,0xfe OR CL,0x1 MOV byte ptr [RAX + 0x5],CL MOV RAX,qword ptr [RSP + 0x40] MOV RDI,qword ptr [RAX + 0x18] MOV RSI,qword ptr [RSP + 0x18] MOV EDX,0x3 CALL 0x001240d0 LAB_00167242: JMP 0x00167244 LAB_00167244: MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x28],RAX MOV RAX,qword ptr [RSP + 0x28] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x20],RAX JMP 0x0016715e LAB_00167261: ADD RSP,0x48 RET
void close_lexical_var(long param_1,long param_2,uint param_3) { int8 *puVar1; int1 auVar2 [16]; long local_28; long local_20; local_20 = *(long *)(param_2 + 0x30); local_28 = *(long *)(local_20 + 8); while (local_20 != param_2 + 0x28) { if ((param_3 == *(ushort *)(local_20 + -2)) && ((*(byte *)(local_20 + -3) >> 1 & 1) == 0)) { puVar1 = (int8 *)(*(long *)(param_2 + 0x20) + (long)(int)param_3 * 0x10); auVar2 = js_dup(*puVar1,puVar1[1]); *(int1 (*) [16])(local_20 + 0x18) = auVar2; *(long *)(local_20 + 0x10) = local_20 + 0x18; list_del(local_20); *(byte *)(local_20 + -3) = *(byte *)(local_20 + -3) & 0xfe | 1; add_gc_object(*(int8 *)(param_1 + 0x18),local_20 + -8,3); } local_20 = local_28; local_28 = *(long *)(local_28 + 8); } return; }
39,858
nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::insert(std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> const&)
monkey531[P]llama/common/json.hpp
std::pair<iterator, bool> insert( const value_type& value ) { for (auto it = this->begin(); it != this->end(); ++it) { if (m_compare(it->first, value.first)) { return {it, false}; } } Container::push_back(value); return {--this->end(), true}; }
O2
cpp
nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::insert(std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> const&): pushq %r15 pushq %r14 pushq %rbx movq %rsi, %r15 movq %rdi, %r14 movq (%rdi), %rbx cmpq 0x8(%r14), %rbx je 0x8b6e5 movq %rbx, %rdi movq %r15, %rsi callq 0x2961f testb %al, %al jne 0x8b6fc addq $0x30, %rbx jmp 0x8b6ca movq %r14, %rdi movq %r15, %rsi callq 0x8b708 movq 0x8(%r14), %rbx addq $-0x30, %rbx movb $0x1, %dl jmp 0x8b6fe xorl %edx, %edx movq %rbx, %rax popq %rbx popq %r14 popq %r15 retq nop
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE6insertERKSI_: push r15 push r14 push rbx mov r15, rsi mov r14, rdi mov rbx, [rdi] loc_8B6CA: cmp rbx, [r14+8] jz short loc_8B6E5 mov rdi, rbx mov rsi, r15 call _ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_ test al, al jnz short loc_8B6FC add rbx, 30h ; '0' jmp short loc_8B6CA loc_8B6E5: mov rdi, r14 mov rsi, r15 call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE9push_backERKSG_; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::push_back(std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const&) mov rbx, [r14+8] add rbx, 0FFFFFFFFFFFFFFD0h mov dl, 1 jmp short loc_8B6FE loc_8B6FC: xor edx, edx loc_8B6FE: mov rax, rbx pop rbx pop r14 pop r15 retn
long long nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::insert( long long **a1, long long *a2) { long long *i; // rbx for ( i = *a1; i != a1[1]; i += 6 ) { if ( std::operator==<char>(i, a2) ) return (long long)i; } std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::push_back( a1, a2); return (long long)(a1[1] - 6); }
insert: PUSH R15 PUSH R14 PUSH RBX MOV R15,RSI MOV R14,RDI MOV RBX,qword ptr [RDI] LAB_0018b6ca: CMP RBX,qword ptr [R14 + 0x8] JZ 0x0018b6e5 MOV RDI,RBX MOV RSI,R15 CALL 0x0012961f TEST AL,AL JNZ 0x0018b6fc ADD RBX,0x30 JMP 0x0018b6ca LAB_0018b6e5: MOV RDI,R14 MOV RSI,R15 CALL 0x0018b708 MOV RBX,qword ptr [R14 + 0x8] ADD RBX,-0x30 MOV DL,0x1 JMP 0x0018b6fe LAB_0018b6fc: XOR EDX,EDX LAB_0018b6fe: MOV RAX,RBX POP RBX POP R14 POP R15 RET
/* nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::string const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> > > >::insert(std::pair<std::__cxx11::string const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> > const&) */ int1 [16] __thiscall nlohmann::json_abi_v3_11_3:: ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::insert(ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *this,pair *param_1) { char cVar1; int8 extraout_RDX; int8 uVar2; string *psVar3; int1 auVar4 [16]; psVar3 = *(string **)this; do { if (psVar3 == *(string **)(this + 8)) { std:: vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::push_back((vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *)this,param_1); psVar3 = (string *)(*(long *)(this + 8) + -0x30); uVar2 = CONCAT71((int7)((ulong)extraout_RDX >> 8),1); LAB_0018b6fe: auVar4._8_8_ = uVar2; auVar4._0_8_ = psVar3; return auVar4; } cVar1 = std::operator==(psVar3,(string *)param_1); if (cVar1 != '\0') { uVar2 = 0; goto LAB_0018b6fe; } psVar3 = psVar3 + 0x30; } while( true ); }
39,859
my_strntoll_8bit
eloqsql/strings/ctype-simple.c
longlong my_strntoll_8bit(CHARSET_INFO *cs __attribute__((unused)), const char *nptr, size_t l, int base, char **endptr,int *err) { int negative; register ulonglong cutoff; register uint cutlim; register ulonglong i; register const char *s, *e; const char *save; 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; } if (*s == '-') { negative = 1; ++s; } else if (*s == '+') { negative = 0; ++s; } else negative = 0; save = s; cutoff = (~(ulonglong) 0) / (unsigned long int) base; cutlim = (uint) ((~(ulonglong) 0) % (unsigned long int) base); overflow = 0; i = 0; for ( ; s != e; s++) { register uchar 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 *= (ulonglong) base; i += c; } } if (s == save) goto noconv; if (endptr != NULL) *endptr = (char *) s; if (negative) { if (i > (ulonglong) LONGLONG_MIN) overflow = 1; } else if (i > (ulonglong) LONGLONG_MAX) overflow = 1; if (overflow) { err[0]= ERANGE; return negative ? LONGLONG_MIN : LONGLONG_MAX; } return (negative ? -((longlong) i) : (longlong) i); noconv: err[0]= EDOM; if (endptr != NULL) *endptr = (char *) nptr; return 0L; }
O3
c
my_strntoll_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 0x37712 movq 0x40(%rdi), %rax movq %rsi, %r10 movzbl (%r10), %edx testb $0x8, 0x1(%rax,%rdx) je 0x37712 incq %r10 cmpq %r11, %r10 jb 0x376ff cmpq %r11, %r10 je 0x37821 movb (%r10), %bl leal -0x2b(%rbx), %eax andb $-0x3, %al cmpb $0x1, %al adcq $0x0, %r10 movslq %ecx, %rdi movq $-0x1, %rax xorl %edx, %edx movq %rdi, -0x38(%rbp) divq %rdi movq %rax, %rdi xorl %eax, %eax cmpq %r11, %r10 je 0x377cf movq %rbx, -0x30(%rbp) xorl %r13d, %r13d movq %r10, %r14 xorl %ebx, %ebx movq %rbx, %rax movl %r13d, %r12d movb (%r14), %r13b leal -0x30(%r13), %ebx cmpb $0xa, %bl jb 0x37787 leal -0x41(%r13), %ebx cmpb $0x19, %bl ja 0x37777 addb $-0x37, %r13b jmp 0x37784 leal -0x61(%r13), %ebx cmpb $0x19, %bl ja 0x377c9 addb $-0x57, %r13b movl %r13d, %ebx movzbl %bl, %r15d cmpl %ecx, %r15d jge 0x377c9 movl $0x1, %r13d cmpq %rdi, %rax jbe 0x377a0 movq %rax, %rbx jmp 0x377b8 jne 0x377aa movq %rdi, %rbx cmpl %edx, %r15d ja 0x377b8 imulq -0x38(%rbp), %rax movl %r15d, %ebx addq %rax, %rbx movl %r12d, %r13d incq %r14 cmpq %r11, %r14 jne 0x37756 movq %rbx, %rax movq %r11, %r14 movl %r13d, %r12d movq -0x30(%rbp), %rbx jmp 0x377d5 movq %r11, %r14 xorl %r12d, %r12d cmpq %r10, %r14 je 0x37821 testq %r8, %r8 je 0x377e2 movq %r14, (%r8) movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000 cmpq %rdx, %rax movl $0x1, %ecx movl %r12d, %esi cmoval %ecx, %esi testq %rax, %rax cmovsl %ecx, %r12d cmpb $0x2d, %bl cmovel %esi, %r12d testl %r12d, %r12d je 0x37840 leaq -0x1(%rdx), %rcx cmpb $0x2d, %bl movl $0x22, (%r9) cmoveq %rdx, %rcx jmp 0x37832 movl $0x21, (%r9) testq %r8, %r8 je 0x37830 movq %rsi, (%r8) xorl %ecx, %ecx movq %rcx, %rax popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rcx negq %rcx cmpb $0x2d, %bl cmovneq %rax, %rcx jmp 0x37832
my_strntoll_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_37712 mov rax, [rdi+40h] mov r10, rsi loc_376FF: movzx edx, byte ptr [r10] test byte ptr [rax+rdx+1], 8 jz short loc_37712 inc r10 cmp r10, r11 jb short loc_376FF loc_37712: cmp r10, r11 jz loc_37821 mov bl, [r10] lea eax, [rbx-2Bh] and al, 0FDh cmp al, 1 adc r10, 0 movsxd rdi, ecx mov rax, 0FFFFFFFFFFFFFFFFh xor edx, edx mov [rbp+var_38], rdi div rdi mov rdi, rax xor eax, eax cmp r10, r11 jz loc_377CF mov [rbp+var_30], rbx xor r13d, r13d mov r14, r10 xor ebx, ebx loc_37756: mov rax, rbx mov r12d, r13d mov r13b, [r14] lea ebx, [r13-30h] cmp bl, 0Ah jb short loc_37787 lea ebx, [r13-41h] cmp bl, 19h ja short loc_37777 add r13b, 0C9h jmp short loc_37784 loc_37777: lea ebx, [r13-61h] cmp bl, 19h ja short loc_377C9 add r13b, 0A9h loc_37784: mov ebx, r13d loc_37787: movzx r15d, bl cmp r15d, ecx jge short loc_377C9 mov r13d, 1 cmp rax, rdi jbe short loc_377A0 mov rbx, rax jmp short loc_377B8 loc_377A0: jnz short loc_377AA mov rbx, rdi cmp r15d, edx ja short loc_377B8 loc_377AA: imul rax, [rbp+var_38] mov ebx, r15d add rbx, rax mov r13d, r12d loc_377B8: inc r14 cmp r14, r11 jnz short loc_37756 mov rax, rbx mov r14, r11 mov r12d, r13d loc_377C9: mov rbx, [rbp+var_30] jmp short loc_377D5 loc_377CF: mov r14, r11 xor r12d, r12d loc_377D5: cmp r14, r10 jz short loc_37821 test r8, r8 jz short loc_377E2 mov [r8], r14 loc_377E2: mov rdx, 8000000000000000h cmp rax, rdx mov ecx, 1 mov esi, r12d cmova esi, ecx test rax, rax cmovs r12d, ecx cmp bl, 2Dh ; '-' cmovz r12d, esi test r12d, r12d jz short loc_37840 lea rcx, [rdx-1] cmp bl, 2Dh ; '-' mov dword ptr [r9], 22h ; '"' cmovz rcx, rdx jmp short loc_37832 loc_37821: mov dword ptr [r9], 21h ; '!' test r8, r8 jz short loc_37830 mov [r8], rsi loc_37830: xor ecx, ecx loc_37832: mov rax, rcx pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_37840: mov rcx, rax neg rcx cmp bl, 2Dh ; '-' cmovnz rcx, rax jmp short loc_37832
unsigned long long my_strntoll_8bit( long long a1, unsigned __int8 *a2, long long a3, int a4, unsigned __int8 **a5, _DWORD *a6) { unsigned __int8 *v6; // r11 unsigned __int8 *v7; // r10 unsigned __int8 v8; // bl unsigned __int8 *v9; // r10 unsigned long long v10; // rdi long long v11; // rax int v12; // r13d unsigned __int8 *v13; // r14 unsigned long long v14; // rbx int v15; // r12d unsigned __int8 v16; // r13 unsigned __int8 v17; // bl unsigned __int8 v18; // r13 unsigned int v19; // r15d int v20; // esi long long v21; // rcx unsigned __int8 v23; // [rsp+8h] [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_37; v8 = *v7; v9 = &v7[((*v7 - 43) & 0xFD) == 0]; v10 = 0xFFFFFFFFFFFFFFFFLL / a4; v11 = 0LL; if ( v9 == v6 ) { v13 = &a2[a3]; v15 = 0; } else { v23 = v8; v12 = 0; v13 = v9; v14 = 0LL; 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; } v19 = v17; if ( v17 >= a4 ) break; v12 = 1; if ( v11 <= v10 ) { if ( v11 != v10 || (v14 = 0xFFFFFFFFFFFFFFFFLL / a4, v19 <= (unsigned int)(0xFFFFFFFFFFFFFFFFLL % a4)) ) { v14 = a4 * v11 + v19; v12 = v15; } } else { v14 = v11; } if ( ++v13 == v6 ) { v11 = v14; v13 = &a2[a3]; v15 = v12; break; } } v8 = v23; } if ( v13 == v9 ) { LABEL_37: *a6 = 33; if ( a5 ) *a5 = a2; return 0LL; } else { if ( a5 ) *a5 = v13; v20 = v15; if ( (unsigned long long)v11 > 0x8000000000000000LL ) v20 = 1; if ( v11 < 0 ) v15 = 1; if ( v8 == 45 ) v15 = v20; if ( v15 ) { v21 = 0x7FFFFFFFFFFFFFFFLL; *a6 = 34; if ( v8 == 45 ) return 0x8000000000000000LL; } else { v21 = -v11; if ( v8 != 45 ) return v11; } } return v21; }
my_strntoll_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 0x00137712 MOV RAX,qword ptr [RDI + 0x40] MOV R10,RSI LAB_001376ff: MOVZX EDX,byte ptr [R10] TEST byte ptr [RAX + RDX*0x1 + 0x1],0x8 JZ 0x00137712 INC R10 CMP R10,R11 JC 0x001376ff LAB_00137712: CMP R10,R11 JZ 0x00137821 MOV BL,byte ptr [R10] LEA EAX,[RBX + -0x2b] AND AL,0xfd CMP AL,0x1 ADC R10,0x0 MOVSXD RDI,ECX MOV RAX,-0x1 XOR EDX,EDX MOV qword ptr [RBP + -0x38],RDI DIV RDI MOV RDI,RAX XOR EAX,EAX CMP R10,R11 JZ 0x001377cf MOV qword ptr [RBP + -0x30],RBX XOR R13D,R13D MOV R14,R10 XOR EBX,EBX LAB_00137756: MOV RAX,RBX MOV R12D,R13D MOV R13B,byte ptr [R14] LEA EBX,[R13 + -0x30] CMP BL,0xa JC 0x00137787 LEA EBX,[R13 + -0x41] CMP BL,0x19 JA 0x00137777 ADD R13B,0xc9 JMP 0x00137784 LAB_00137777: LEA EBX,[R13 + -0x61] CMP BL,0x19 JA 0x001377c9 ADD R13B,0xa9 LAB_00137784: MOV EBX,R13D LAB_00137787: MOVZX R15D,BL CMP R15D,ECX JGE 0x001377c9 MOV R13D,0x1 CMP RAX,RDI JBE 0x001377a0 MOV RBX,RAX JMP 0x001377b8 LAB_001377a0: JNZ 0x001377aa MOV RBX,RDI CMP R15D,EDX JA 0x001377b8 LAB_001377aa: IMUL RAX,qword ptr [RBP + -0x38] MOV EBX,R15D ADD RBX,RAX MOV R13D,R12D LAB_001377b8: INC R14 CMP R14,R11 JNZ 0x00137756 MOV RAX,RBX MOV R14,R11 MOV R12D,R13D LAB_001377c9: MOV RBX,qword ptr [RBP + -0x30] JMP 0x001377d5 LAB_001377cf: MOV R14,R11 XOR R12D,R12D LAB_001377d5: CMP R14,R10 JZ 0x00137821 TEST R8,R8 JZ 0x001377e2 MOV qword ptr [R8],R14 LAB_001377e2: MOV RDX,-0x8000000000000000 CMP RAX,RDX MOV ECX,0x1 MOV ESI,R12D CMOVA ESI,ECX TEST RAX,RAX CMOVS R12D,ECX CMP BL,0x2d CMOVZ R12D,ESI TEST R12D,R12D JZ 0x00137840 LEA RCX,[RDX + -0x1] CMP BL,0x2d MOV dword ptr [R9],0x22 CMOVZ RCX,RDX JMP 0x00137832 LAB_00137821: MOV dword ptr [R9],0x21 TEST R8,R8 JZ 0x00137830 MOV qword ptr [R8],RSI LAB_00137830: XOR ECX,ECX LAB_00137832: MOV RAX,RCX POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00137840: MOV RCX,RAX NEG RCX CMP BL,0x2d CMOVNZ RCX,RAX JMP 0x00137832
ulong my_strntoll_8bit(long param_1,byte *param_2,long param_3,int param_4,ulong *param_5, int4 *param_6) { byte *pbVar1; byte bVar2; byte bVar3; int1 auVar4 [16]; int1 auVar5 [16]; bool bVar6; bool bVar7; ulong uVar8; ulong uVar9; ulong uVar10; byte *pbVar11; byte bVar12; byte *pbVar13; byte *pbVar14; *param_6 = 0; pbVar1 = param_2 + param_3; pbVar11 = param_2; if (0 < param_3) { do { if ((*(byte *)(*(long *)(param_1 + 0x40) + 1 + (ulong)*pbVar11) & 8) == 0) break; pbVar11 = pbVar11 + 1; } while (pbVar11 < pbVar1); } if (pbVar11 != pbVar1) { bVar2 = *pbVar11; pbVar11 = pbVar11 + ((bVar2 - 0x2b & 0xfd) == 0); auVar4._8_8_ = 0; auVar4._0_8_ = (long)param_4; auVar5 = ZEXT816(0) << 0x40 | ZEXT816(0xffffffffffffffff); uVar9 = SUB168(auVar5 / auVar4,0); uVar10 = 0; if (pbVar11 == pbVar1) { bVar6 = false; pbVar14 = pbVar1; } else { bVar6 = false; uVar10 = 0; pbVar13 = pbVar11; do { bVar3 = *pbVar13; bVar12 = bVar3 - 0x30; pbVar14 = pbVar13; if (9 < bVar12) { if ((byte)(bVar3 + 0xbf) < 0x1a) { bVar12 = bVar3 - 0x37; } else { if (0x19 < (byte)(bVar3 + 0x9f)) break; bVar12 = bVar3 + 0xa9; } } if (param_4 <= (int)(uint)bVar12) break; uVar8 = uVar10; bVar7 = true; if ((uVar10 <= uVar9) && ((uVar10 != uVar9 || (uVar8 = uVar9, (uint)bVar12 <= SUB164(auVar5 % auVar4,0))))) { uVar8 = (ulong)bVar12 + uVar10 * (long)param_4; bVar7 = bVar6; } bVar6 = bVar7; uVar10 = uVar8; pbVar13 = pbVar13 + 1; pbVar14 = pbVar1; } while (pbVar13 != pbVar1); } if (pbVar14 != pbVar11) { if (param_5 != (ulong *)0x0) { *param_5 = (ulong)pbVar14; } bVar7 = bVar6; if (0x8000000000000000 < uVar10) { bVar7 = true; } if ((long)uVar10 < 0) { bVar6 = true; } if (bVar2 == 0x2d) { bVar6 = bVar7; } if (bVar6) { *param_6 = 0x22; if (bVar2 != 0x2d) { return 0x7fffffffffffffff; } return 0x8000000000000000; } if (bVar2 == 0x2d) { return -uVar10; } return uVar10; } } *param_6 = 0x21; if (param_5 != (ulong *)0x0) { *param_5 = (ulong)param_2; } return 0; }
39,860
cpu_tensor_init_ops_copy_e8m23_Test::~cpu_tensor_init_ops_copy_e8m23_Test()
magnetron/test/unittests/tensor/init_operators.cpp
TEST(cpu_tensor_init_ops, copy_e8m23) { context ctx {compute_device::cpu}; for_all_shape_perms(lim, 1, [&](std::span<const std::int64_t> shape) { tensor t {ctx, dtype::e8m23, shape}; std::vector<e8m23_t> fill_data {}; fill_data.resize(t.numel()); std::uniform_real_distribution<e8m23_t> dist {dtype_traits<e8m23_t>::min, dtype_traits<e8m23_t>::max}; std::ranges::generate(fill_data, [&] { return dist(gen); }); t.copy_buffer_from<e8m23_t>(fill_data); std::vector<e8m23_t> data {t.to_vector()}; ASSERT_EQ(data.size(), t.numel()); for (std::size_t i {}; i < data.size(); ++i) { ASSERT_EQ(data[i], fill_data[i]); } }); }
O0
cpp
cpu_tensor_init_ops_copy_e8m23_Test::~cpu_tensor_init_ops_copy_e8m23_Test(): pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x89f80 movq -0x10(%rbp), %rdi movl $0x10, %esi callq 0x13700 addq $0x10, %rsp popq %rbp retq nopl (%rax)
_ZN35cpu_tensor_init_ops_copy_e8m23_TestD0Ev: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov rdi, [rbp+var_8]; this mov [rbp+var_10], rdi call _ZN35cpu_tensor_init_ops_copy_e8m23_TestD2Ev; cpu_tensor_init_ops_copy_e8m23_Test::~cpu_tensor_init_ops_copy_e8m23_Test() mov rdi, [rbp+var_10]; void * mov esi, 10h; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) add rsp, 10h pop rbp retn
void cpu_tensor_init_ops_copy_e8m23_Test::~cpu_tensor_init_ops_copy_e8m23_Test( cpu_tensor_init_ops_copy_e8m23_Test *this) { cpu_tensor_init_ops_copy_e8m23_Test::~cpu_tensor_init_ops_copy_e8m23_Test(this); operator delete(this, 0x10uLL); }
~cpu_tensor_init_ops_copy_e8m23_Test: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RDI,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x10],RDI CALL 0x00189f80 MOV RDI,qword ptr [RBP + -0x10] MOV ESI,0x10 CALL 0x00113700 ADD RSP,0x10 POP RBP RET
/* cpu_tensor_init_ops_copy_e8m23_Test::~cpu_tensor_init_ops_copy_e8m23_Test() */ void __thiscall cpu_tensor_init_ops_copy_e8m23_Test::~cpu_tensor_init_ops_copy_e8m23_Test (cpu_tensor_init_ops_copy_e8m23_Test *this) { ~cpu_tensor_init_ops_copy_e8m23_Test(this); operator_delete(this,0x10); return; }
39,861
my_uuid_init
eloqsql/mysys/my_uuid.c
void my_uuid_init(ulong seed1, ulong seed2) { uchar *mac= uuid_suffix+2; ulonglong now; if (my_uuid_inited) return; my_uuid_inited= 1; now= my_interval_timer()/100 + interval_timer_offset; nanoseq= 0; if (my_gethwaddr(mac)) { uint i; /* Generating random "hardware addr" Specs explicitly specify that node identifier should NOT correlate with a clock_seq value, so we use a separate randominit() here. */ /* purecov: begin inspected */ my_rnd_init(&uuid_rand, (ulong) (seed2+ now/2), (ulong) (now+rand())); for (i=0; i < array_elements(uuid_suffix) -2 ; i++) mac[i]= (uchar)(my_rnd(&uuid_rand)*255); /* purecov: end */ } my_rnd_init(&uuid_rand, (ulong) (seed1 + now), (ulong) (now/2+ getpid())); set_clock_seq(); mysql_mutex_init(key_LOCK_uuid_generator, &LOCK_uuid_generator, MY_MUTEX_INIT_FAST); }
O3
c
my_uuid_init: cmpb $0x0, 0xb64dad(%rip) # 0xc11c50 je 0xacea6 retq pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %r12 movq %rdi, -0x30(%rbp) movb $0x1, 0xb64d8e(%rip) # 0xc11c50 callq 0xa4b90 shrq $0x2, %rax movabsq $0x28f5c28f5c28f5c3, %rcx # imm = 0x28F5C28F5C28F5C3 mulq %rcx movq %rdx, %r14 shrq $0x2, %r14 addq 0xb64d72(%rip), %r14 # 0xc11c58 movl $0x0, 0xb64d70(%rip) # 0xc11c60 leaq 0xb64d53(%rip), %rdi # 0xc11c4a callq 0xafc54 movq %r14, %r15 shrq %r15 testb %al, %al je 0xacf54 addq %r15, %r12 callq 0x2a810 movslq %eax, %rdx addq %r14, %rdx leaq 0xb64d4d(%rip), %r13 # 0xc11c68 movq %r13, %rdi movq %r12, %rsi callq 0xafed4 movl $0x2, %r12d leaq 0xb64d15(%rip), %rbx # 0xc11c48 movq %r13, %rdi callq 0xaff4a mulsd 0x3c4a5(%rip), %xmm0 # 0xe93e8 cvttsd2si %xmm0, %eax movb %al, (%r12,%rbx) incq %r12 cmpq $0x8, %r12 jne 0xacf33 addq -0x30(%rbp), %r14 callq 0x2a9a0 cltq addq %rax, %r15 leaq 0xb64cff(%rip), %rdi # 0xc11c68 movq %r14, %rsi movq %r15, %rdx callq 0xafed4 callq 0xad1fc leaq 0xb63fe8(%rip), %rax # 0xc10f68 movl (%rax), %edi leaq 0x2e22cf(%rip), %rax # 0x38f258 movq (%rax), %rax leaq 0xb64cf5(%rip), %rbx # 0xc11c88 movq %rbx, %rsi callq *0x40(%rax) movq %rax, 0xb64d28(%rip) # 0xc11cc8 movq %rbx, 0xb64d19(%rip) # 0xc11cc0 xorpd %xmm0, %xmm0 movupd %xmm0, 0xb64cfd(%rip) # 0xc11cb0 leaq 0xb64c86(%rip), %rsi # 0xc11c40 movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x2a340
my_uuid_init: cmp cs:my_uuid_inited, 0 jz short loc_ACEA6 retn loc_ACEA6: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r12, rsi mov [rbp-30h], rdi mov cs:my_uuid_inited, 1 call my_interval_timer shr rax, 2 mov rcx, 28F5C28F5C28F5C3h mul rcx mov r14, rdx shr r14, 2 add r14, cs:interval_timer_offset mov cs:nanoseq, 0 lea rdi, uuid_suffix+2 call my_gethwaddr mov r15, r14 shr r15, 1 test al, al jz short loc_ACF54 add r12, r15 call _rand movsxd rdx, eax add rdx, r14 lea r13, uuid_rand mov rdi, r13 mov rsi, r12 call my_rnd_init mov r12d, 2 lea rbx, uuid_suffix loc_ACF33: mov rdi, r13 call my_rnd mulsd xmm0, cs:qword_E93E8 cvttsd2si eax, xmm0 mov [r12+rbx], al inc r12 cmp r12, 8 jnz short loc_ACF33 loc_ACF54: add r14, [rbp-30h] call _getpid cdqe add r15, rax lea rdi, uuid_rand mov rsi, r14 mov rdx, r15 call my_rnd_init call set_clock_seq lea rax, key_LOCK_uuid_generator mov edi, [rax] lea rax, PSI_server mov rax, [rax] lea rbx, LOCK_uuid_generator mov rsi, rbx call qword ptr [rax+40h] mov cs:qword_C11CC8, rax mov cs:qword_C11CC0, rbx xorpd xmm0, xmm0 movupd cs:xmmword_C11CB0, xmm0 lea rsi, my_fast_mutexattr mov rdi, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp _pthread_mutex_init
void my_uuid_init(long long a1, long long a2) { unsigned long long v2; // r14 unsigned long long v3; // r15 int v4; // eax long long i; // r12 int v6; // eax if ( !my_uuid_inited ) { my_uuid_inited = 1; v2 = interval_timer_offset + my_interval_timer() / 0x64uLL; nanoseq = 0; v3 = v2 >> 1; if ( (unsigned __int8)my_gethwaddr((char *)&uuid_suffix + 2) ) { v4 = rand((char *)&uuid_suffix + 2); my_rnd_init(&uuid_rand, v3 + a2, v2 + v4); for ( i = 2LL; i != 8; ++i ) *((_BYTE *)&uuid_suffix + i) = (int)(my_rnd(&uuid_rand) * 255.0); } v6 = getpid(); my_rnd_init(&uuid_rand, a1 + v2, v6 + v3); set_clock_seq(); qword_C11CC8 = ((long long ( *)(_QWORD, void *))PSI_server[8])( key_LOCK_uuid_generator, &LOCK_uuid_generator); qword_C11CC0 = (long long)&LOCK_uuid_generator; xmmword_C11CB0 = 0LL; pthread_mutex_init(&LOCK_uuid_generator, &my_fast_mutexattr); } }
my_uuid_init: CMP byte ptr [0x00d11c50],0x0 JZ 0x001acea6 RET LAB_001acea6: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R12,RSI MOV qword ptr [RBP + -0x30],RDI MOV byte ptr [0x00d11c50],0x1 CALL 0x001a4b90 SHR RAX,0x2 MOV RCX,0x28f5c28f5c28f5c3 MUL RCX MOV R14,RDX SHR R14,0x2 ADD R14,qword ptr [0x00d11c58] MOV dword ptr [0x00d11c60],0x0 LEA RDI,[0xd11c4a] CALL 0x001afc54 MOV R15,R14 SHR R15,0x1 TEST AL,AL JZ 0x001acf54 ADD R12,R15 CALL 0x0012a810 MOVSXD RDX,EAX ADD RDX,R14 LEA R13,[0xd11c68] MOV RDI,R13 MOV RSI,R12 CALL 0x001afed4 MOV R12D,0x2 LEA RBX,[0xd11c48] LAB_001acf33: MOV RDI,R13 CALL 0x001aff4a MULSD XMM0,qword ptr [0x001e93e8] CVTTSD2SI EAX,XMM0 MOV byte ptr [R12 + RBX*0x1],AL INC R12 CMP R12,0x8 JNZ 0x001acf33 LAB_001acf54: ADD R14,qword ptr [RBP + -0x30] CALL 0x0012a9a0 CDQE ADD R15,RAX LEA RDI,[0xd11c68] MOV RSI,R14 MOV RDX,R15 CALL 0x001afed4 CALL 0x001ad1fc LEA RAX,[0xd10f68] MOV EDI,dword ptr [RAX] LEA RAX,[0x48f258] MOV RAX,qword ptr [RAX] LEA RBX,[0xd11c88] MOV RSI,RBX CALL qword ptr [RAX + 0x40] MOV qword ptr [0x00d11cc8],RAX MOV qword ptr [0x00d11cc0],RBX XORPD XMM0,XMM0 MOVUPD xmmword ptr [0x00d11cb0],XMM0 LEA RSI,[0xd11c40] MOV RDI,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x0012a340
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ void my_uuid_init(long param_1,long param_2) { char cVar1; int iVar2; __pid_t _Var3; ulong uVar4; long lVar5; double dVar6; if (my_uuid_inited != '\0') { return; } my_uuid_inited = 1; uVar4 = my_interval_timer(); uVar4 = uVar4 / 100 + interval_timer_offset; nanoseq = 0; cVar1 = my_gethwaddr(0xd11c4a); if (cVar1 != '\0') { iVar2 = rand(); my_rnd_init(uuid_rand,param_2 + (uVar4 >> 1),(long)iVar2 + uVar4); lVar5 = 2; do { dVar6 = (double)my_rnd(uuid_rand); *(char *)((long)&uuid_suffix + lVar5) = (char)(int)(dVar6 * _DAT_001e93e8); lVar5 = lVar5 + 1; } while (lVar5 != 8); } _Var3 = getpid(); my_rnd_init(uuid_rand,uVar4 + param_1,(uVar4 >> 1) + (long)_Var3); set_clock_seq(); LOCK_uuid_generator._64_8_ = (**(code **)(PSI_server + 0x40))(key_LOCK_uuid_generator,LOCK_uuid_generator); LOCK_uuid_generator._56_8_ = LOCK_uuid_generator; LOCK_uuid_generator._40_8_ = 0; LOCK_uuid_generator._48_8_ = 0; pthread_mutex_init((pthread_mutex_t *)LOCK_uuid_generator, (pthread_mutexattr_t *)&my_fast_mutexattr); return; }
39,862
testing::internal::edit_distance::(anonymous namespace)::Hunk::FlushEdits()
giladroyz[P]FindPeaks/build_O3/_deps/googletest-src/googletest/src/gtest.cc
void FlushEdits() { hunk_.splice(hunk_.end(), hunk_removes_); hunk_.splice(hunk_.end(), hunk_adds_); }
O3
cpp
testing::internal::edit_distance::(anonymous namespace)::Hunk::FlushEdits(): pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx leaq 0x28(%rdi), %r14 leaq 0x58(%rdi), %rdx movq 0x58(%rdi), %rsi cmpq %rdx, %rsi je 0x3023e movq %r14, %rdi callq 0x8240 movq 0x68(%rbx), %rax addq %rax, 0x38(%rbx) movq $0x0, 0x68(%rbx) leaq 0x40(%rbx), %rdx movq 0x40(%rbx), %rsi cmpq %rdx, %rsi je 0x30263 movq %r14, %rdi callq 0x8240 movq 0x50(%rbx), %rax addq %rax, 0x38(%rbx) movq $0x0, 0x50(%rbx) addq $0x8, %rsp popq %rbx popq %r14 retq
_ZN7testing8internal13edit_distance12_GLOBAL__N_14Hunk10FlushEditsEv: push r14 push rbx push rax mov rbx, rdi lea r14, [rdi+28h] lea rdx, [rdi+58h] mov rsi, [rdi+58h] cmp rsi, rdx jz short loc_3023E mov rdi, r14 call __ZNSt8__detail15_List_node_base11_M_transferEPS0_S1_; std::__detail::_List_node_base::_M_transfer(std::__detail::_List_node_base*,std::__detail::_List_node_base*) mov rax, [rbx+68h] add [rbx+38h], rax mov qword ptr [rbx+68h], 0 loc_3023E: lea rdx, [rbx+40h] mov rsi, [rbx+40h] cmp rsi, rdx jz short loc_30263 mov rdi, r14 call __ZNSt8__detail15_List_node_base11_M_transferEPS0_S1_; std::__detail::_List_node_base::_M_transfer(std::__detail::_List_node_base*,std::__detail::_List_node_base*) mov rax, [rbx+50h] add [rbx+38h], rax mov qword ptr [rbx+50h], 0 loc_30263: add rsp, 8 pop rbx pop r14 retn
long long testing::internal::edit_distance::`anonymous namespace'::Hunk::FlushEdits( testing::internal::edit_distance::_anonymous_namespace_::Hunk *this) { long long result; // rax if ( *((testing::internal::edit_distance::_anonymous_namespace_::Hunk **)this + 11) != (testing::internal::edit_distance::_anonymous_namespace_::Hunk *)((char *)this + 88) ) { std::__detail::_List_node_base::_M_transfer((char *)this + 40); result = *((_QWORD *)this + 13); *((_QWORD *)this + 7) += result; *((_QWORD *)this + 13) = 0LL; } if ( *((testing::internal::edit_distance::_anonymous_namespace_::Hunk **)this + 8) != (testing::internal::edit_distance::_anonymous_namespace_::Hunk *)((char *)this + 64) ) { std::__detail::_List_node_base::_M_transfer((char *)this + 40); result = *((_QWORD *)this + 10); *((_QWORD *)this + 7) += result; *((_QWORD *)this + 10) = 0LL; } return result; }
FlushEdits: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI LEA R14,[RDI + 0x28] LEA RDX,[RDI + 0x58] MOV RSI,qword ptr [RDI + 0x58] CMP RSI,RDX JZ 0x0013023e MOV RDI,R14 CALL 0x00108240 MOV RAX,qword ptr [RBX + 0x68] ADD qword ptr [RBX + 0x38],RAX MOV qword ptr [RBX + 0x68],0x0 LAB_0013023e: LEA RDX,[RBX + 0x40] MOV RSI,qword ptr [RBX + 0x40] CMP RSI,RDX JZ 0x00130263 MOV RDI,R14 CALL 0x00108240 MOV RAX,qword ptr [RBX + 0x50] ADD qword ptr [RBX + 0x38],RAX MOV qword ptr [RBX + 0x50],0x0 LAB_00130263: ADD RSP,0x8 POP RBX POP R14 RET
/* testing::internal::edit_distance::(anonymous namespace)::Hunk::FlushEdits() */ void __thiscall testing::internal::edit_distance::(anonymous_namespace)::Hunk::FlushEdits(Hunk *this) { if (*(_List_node_base **)(this + 0x58) != (_List_node_base *)(this + 0x58)) { std::__detail::_List_node_base::_M_transfer ((_List_node_base *)(this + 0x28),*(_List_node_base **)(this + 0x58)); *(long *)(this + 0x38) = *(long *)(this + 0x38) + *(long *)(this + 0x68); *(int8 *)(this + 0x68) = 0; } if (*(_List_node_base **)(this + 0x40) != (_List_node_base *)(this + 0x40)) { std::__detail::_List_node_base::_M_transfer ((_List_node_base *)(this + 0x28),*(_List_node_base **)(this + 0x40)); *(long *)(this + 0x38) = *(long *)(this + 0x38) + *(long *)(this + 0x50); *(int8 *)(this + 0x50) = 0; } return; }
39,863
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 0x6dfc0 movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax jne 0x6e3b4 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 0x240b0 movq -0x50(%rbp), %rdi callq 0x24130 movq %rax, %rcx movq -0x40(%rbp), %rax addq 0x690(%rax), %rcx movq %rcx, 0x690(%rax) movl $0x0, -0x4(%rbp) jmp 0x6e3bb 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_6E3B4 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_6E3BB loc_6E3B4: mov [rbp+var_4], 1 loc_6E3BB: 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 0x0016dfc0 MOV ECX,EAX XOR EAX,EAX CMP EAX,ECX JNZ 0x0016e3b4 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 0x001240b0 MOV RDI,qword ptr [RBP + -0x50] CALL 0x00124130 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 0x0016e3bb LAB_0016e3b4: MOV dword ptr [RBP + -0x4],0x1 LAB_0016e3bb: 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; }
39,864
main
AlayaLite/build_O3/_deps/libcoro-src/examples/coro_semaphore.cpp
int main() { // Have more threads/tasks than the semaphore will allow for at any given point in time. coro::thread_pool tp{coro::thread_pool::options{.thread_count = 8}}; coro::semaphore semaphore{2}; auto make_rate_limited_task = [](coro::thread_pool& tp, coro::semaphore& semaphore, uint64_t task_num) -> coro::task<void> { co_await tp.schedule(); // This will only allow 2 tasks through at any given point in time, all other tasks will // await the resource to be available before proceeding. auto result = co_await semaphore.acquire(); if (result == coro::semaphore::acquire_result::acquired) { std::cout << task_num << ", "; semaphore.release(); } else { std::cout << task_num << " failed to acquire semaphore [" << coro::semaphore::to_string(result) << "],"; } co_return; }; const size_t num_tasks{100}; std::vector<coro::task<void>> tasks{}; for (size_t i = 1; i <= num_tasks; ++i) { tasks.emplace_back(make_rate_limited_task(tp, semaphore, i)); } coro::sync_wait(coro::when_all(std::move(tasks))); }
O3
cpp
main: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x218, %rsp # imm = 0x218 leaq 0x58(%rsp), %rsi movl $0x8, (%rsi) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%rsi) movups %xmm0, 0x18(%rsi) movups %xmm0, 0x28(%rsi) movups %xmm0, 0x38(%rsi) leaq 0xe8(%rsp), %rdi callq 0x38cc movq 0x90(%rsp), %rax testq %rax, %rax je 0x2587 leaq 0x80(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq 0x70(%rsp), %rax testq %rax, %rax je 0x25a0 leaq 0x60(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax leaq 0xa0(%rsp), %r14 movl $0x2, %esi movq %r14, %rdi callq 0x3488 xorps %xmm0, %xmm0 movq %rsp, %r15 movaps %xmm0, (%r15) movq $0x0, 0x10(%r15) movl $0x1, %r13d leaq 0x230(%rip), %rbp # 0x2804 leaq 0x395(%rip), %rbx # 0x2970 leaq 0x18(%rsp), %r12 movl $0x58, %edi callq 0x2160 movq %rbp, (%rax) movq %rbx, 0x8(%rax) movq %r13, 0x48(%rax) movq %r14, 0x40(%rax) leaq 0xe8(%rsp), %rcx movq %rcx, 0x38(%rax) xorps %xmm0, %xmm0 movups %xmm0, 0x10(%rax) movq %rax, 0x18(%rsp) movb $0x0, 0x50(%rax) movq %r15, %rdi movq %r12, %rsi callq 0x2aae movq 0x18(%rsp), %rdi testq %rdi, %rdi je 0x262d callq *0x8(%rdi) incq %r13 cmpq $0x65, %r13 jne 0x25e0 movaps (%rsp), %xmm0 leaq 0x40(%rsp), %rsi movaps %xmm0, (%rsi) movq 0x10(%rsp), %rax movq %rax, 0x10(%rsi) xorps %xmm0, %xmm0 movaps %xmm0, (%rsp) movq $0x0, 0x10(%rsp) leaq 0x18(%rsp), %rdi callq 0x2b99 leaq 0x18(%rsp), %rdi callq 0x2aec leaq 0x28(%rsp), %rdi callq 0x2ff2 leaq 0x40(%rsp), %rdi callq 0x2ce0 movq %rsp, %rdi callq 0x2ce0 leaq 0xa0(%rsp), %rdi callq 0x34c6 leaq 0xe8(%rsp), %rdi callq 0x3bdc xorl %eax, %eax addq $0x218, %rsp # imm = 0x218 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x2730 jmp 0x2730 movq %rax, %rbx leaq 0x28(%rsp), %rdi callq 0x2ff2 jmp 0x26cf movq %rax, %rbx leaq 0x40(%rsp), %rdi callq 0x2ce0 jmp 0x2706 movq %rax, %rbx jmp 0x271b movq %rax, %rbx leaq 0x58(%rsp), %rdi callq 0x2a6c jmp 0x2728 jmp 0x2730 movq %rax, %rbx jmp 0x2706 movq %rax, %rbx movq 0x18(%rsp), %rdi testq %rdi, %rdi je 0x2706 callq *0x8(%rdi) movq %rsp, %rdi callq 0x2ce0 leaq 0xa0(%rsp), %rdi callq 0x34c6 leaq 0xe8(%rsp), %rdi callq 0x3bdc movq %rbx, %rdi callq 0x2250 movq %rax, %rdi callq 0x2d32
main: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 218h lea rsi, [rsp+248h+var_1F0] mov dword ptr [rsi], 8 xorps xmm0, xmm0 movups xmmword ptr [rsi+8], xmm0 movups xmmword ptr [rsi+18h], xmm0 movups xmmword ptr [rsi+28h], xmm0 movups xmmword ptr [rsi+38h], xmm0 lea rdi, [rsp+248h+var_160] call _ZN4coro11thread_poolC2ENS0_7optionsE; coro::thread_pool::thread_pool(coro::thread_pool::options) mov rax, [rsp+248h+var_1B8] test rax, rax jz short loc_2587 lea rdi, [rsp+248h+var_1C8] mov rsi, rdi mov edx, 3 call rax loc_2587: mov rax, [rsp+248h+var_1D8] test rax, rax jz short loc_25A0 lea rdi, [rsp+248h+var_1E8] mov rsi, rdi mov edx, 3 call rax loc_25A0: lea r14, [rsp+248h+var_1A8] mov esi, 2; __int64 mov rdi, r14; this call _ZN4coro9semaphoreC2El; coro::semaphore::semaphore(long) xorps xmm0, xmm0 mov r15, rsp movaps xmmword ptr [r15], xmm0 mov qword ptr [r15+10h], 0 mov r13d, 1 lea rbp, _ZZ4mainENK3$_0clERN4coro11thread_poolERNS0_9semaphoreEm_resume lea rbx, _ZZ4mainENK3$_0clERN4coro11thread_poolERNS0_9semaphoreEm_destroy lea r12, [rsp+248h+var_230] loc_25E0: mov edi, 58h ; 'X'; unsigned __int64 call __Znwm; operator new(ulong) mov [rax], rbp mov [rax+8], rbx mov [rax+48h], r13 mov [rax+40h], r14 lea rcx, [rsp+248h+var_160] mov [rax+38h], rcx xorps xmm0, xmm0 movups xmmword ptr [rax+10h], xmm0 mov [rsp+248h+var_230], rax mov byte ptr [rax+50h], 0 mov rdi, r15 mov rsi, r12 call _ZNSt6vectorIN4coro4taskIvEESaIS2_EE12emplace_backIJS2_EEERS2_DpOT_; std::vector<coro::task<void>>::emplace_back<coro::task<void>>(coro::task<void> &&) mov rdi, [rsp+248h+var_230] test rdi, rdi jz short loc_262D call qword ptr [rdi+8] loc_262D: inc r13 cmp r13, 65h ; 'e' jnz short loc_25E0 movaps xmm0, [rsp+248h+var_248] lea rsi, [rsp+248h+var_208] movaps xmmword ptr [rsi], xmm0 mov rax, [rsp+248h+var_238] mov [rsi+10h], rax xorps xmm0, xmm0 movaps [rsp+248h+var_248], xmm0 mov [rsp+248h+var_238], 0 lea rdi, [rsp+248h+var_230] call _ZN4coro8when_allITkNSt6ranges5rangeESt6vectorINS_4taskIvEESaIS4_EETkNS_8concepts9awaitableES4_vEENS_6detail24when_all_ready_awaitableIS2_INS8_13when_all_taskIT1_EESaISC_EEEET_ lea rdi, [rsp+248h+var_230] call _ZN4coro9sync_waitITkNS_8concepts9awaitableENS_6detail24when_all_ready_awaitableISt6vectorINS2_13when_all_taskIvEESaIS6_EEEEOS8_EEDcOT_ lea rdi, [rsp+248h+var_220] call _ZNSt6vectorIN4coro6detail13when_all_taskIvEESaIS3_EED2Ev; std::vector<coro::detail::when_all_task<void>>::~vector() lea rdi, [rsp+248h+var_208] call _ZNSt6vectorIN4coro4taskIvEESaIS2_EED2Ev; std::vector<coro::task<void>>::~vector() mov rdi, rsp call _ZNSt6vectorIN4coro4taskIvEESaIS2_EED2Ev; std::vector<coro::task<void>>::~vector() lea rdi, [rsp+248h+var_1A8]; this call _ZN4coro9semaphoreD2Ev; coro::semaphore::~semaphore() lea rdi, [rsp+248h+var_160]; this call _ZN4coro11thread_poolD2Ev; coro::thread_pool::~thread_pool() xor eax, eax add rsp, 218h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_2730 jmp short loc_2730 mov rbx, rax lea rdi, [rsp+248h+var_220] call _ZNSt6vectorIN4coro6detail13when_all_taskIvEESaIS3_EED2Ev; std::vector<coro::detail::when_all_task<void>>::~vector() jmp short loc_26CF mov rbx, rax loc_26CF: lea rdi, [rsp+248h+var_208] call _ZNSt6vectorIN4coro4taskIvEESaIS2_EED2Ev; std::vector<coro::task<void>>::~vector() jmp short loc_2706 mov rbx, rax jmp short loc_271B mov rbx, rax lea rdi, [rsp+248h+var_1F0]; this call _ZN4coro11thread_pool7optionsD2Ev; coro::thread_pool::options::~options() jmp short loc_2728 jmp short loc_2730 mov rbx, rax jmp short loc_2706 mov rbx, rax mov rdi, [rsp+248h+var_230] test rdi, rdi jz short loc_2706 call qword ptr [rdi+8] loc_2706: mov rdi, rsp call _ZNSt6vectorIN4coro4taskIvEESaIS2_EED2Ev; std::vector<coro::task<void>>::~vector() lea rdi, [rsp+248h+var_1A8]; this call _ZN4coro9semaphoreD2Ev; coro::semaphore::~semaphore() loc_271B: lea rdi, [rsp+248h+var_160]; this call _ZN4coro11thread_poolD2Ev; coro::thread_pool::~thread_pool() loc_2728: mov rdi, rbx call __Unwind_Resume loc_2730: mov rdi, rax call __clang_call_terminate
int main(int argc, const char **argv, const char **envp) { long long i; // r13 long long v4; // rax int v5; // edx int v6; // ecx int v7; // r8d int v8; // r9d __int128 v10; // [rsp+0h] [rbp-248h] BYREF long long v11; // [rsp+10h] [rbp-238h] long long v12; // [rsp+18h] [rbp-230h] BYREF char v13; // [rsp+20h] [rbp-228h] _BYTE v14[24]; // [rsp+28h] [rbp-220h] BYREF __int128 v15; // [rsp+40h] [rbp-208h] BYREF long long v16; // [rsp+50h] [rbp-1F8h] int v17; // [rsp+58h] [rbp-1F0h] BYREF __int128 v18; // [rsp+60h] [rbp-1E8h] BYREF __int128 v19; // [rsp+70h] [rbp-1D8h] __int128 v20; // [rsp+80h] [rbp-1C8h] BYREF __int128 v21; // [rsp+90h] [rbp-1B8h] _BYTE v22[72]; // [rsp+A0h] [rbp-1A8h] BYREF _BYTE v23[352]; // [rsp+E8h] [rbp-160h] BYREF v17 = 8; v18 = 0LL; v19 = 0LL; v20 = 0LL; v21 = 0LL; coro::thread_pool::thread_pool(v23, &v17, envp); if ( (_QWORD)v21 ) ((void ( *)(__int128 *, __int128 *, long long))v21)(&v20, &v20, 3LL); if ( (_QWORD)v19 ) ((void ( *)(__int128 *, __int128 *, long long))v19)(&v18, &v18, 3LL); coro::semaphore::semaphore((coro::semaphore *)v22, 2LL); v10 = 0LL; v11 = 0LL; for ( i = 1LL; i != 101; ++i ) { v4 = operator new(0x58uLL); *(_QWORD *)v4 = main::$_0::operator(); *(_QWORD *)(v4 + 8) = main::$_0::operator(); *(_QWORD *)(v4 + 72) = i; *(_QWORD *)(v4 + 64) = v22; *(_QWORD *)(v4 + 56) = v23; *(_OWORD *)(v4 + 16) = 0LL; v12 = v4; *(_BYTE *)(v4 + 80) = 0; std::vector<coro::task<void>>::emplace_back<coro::task<void>>(&v10, &v12); if ( v12 ) (*(void (**)(void))(v12 + 8))(); } v15 = v10; v16 = v11; v10 = 0LL; v11 = 0LL; ZN4coro8when_allITkNSt6ranges5rangeESt6vectorINS_4taskIvEESaIS4_EETkNS_8concepts9awaitableES4_vEENS_6detail24when_all_ready_awaitableIS2_INS8_13when_all_taskIT1_EESaISC_EEEET_(&v12); ZN4coro9sync_waitITkNS_8concepts9awaitableENS_6detail24when_all_ready_awaitableISt6vectorINS2_13when_all_taskIvEESaIS6_EEEEOS8_EEDcOT_( (unsigned int)&v12, (unsigned int)&v15, v5, v6, v7, v8, v10, DWORD2(v10), v11, v12, v13); std::vector<coro::detail::when_all_task<void>>::~vector(v14); std::vector<coro::task<void>>::~vector(&v15); std::vector<coro::task<void>>::~vector(&v10); coro::semaphore::~semaphore((coro::semaphore *)v22); coro::thread_pool::~thread_pool((coro::thread_pool *)v23); return 0; }
main: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x218 LEA RSI,[RSP + 0x58] MOV dword ptr [RSI],0x8 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RSI + 0x8],XMM0 MOVUPS xmmword ptr [RSI + 0x18],XMM0 MOVUPS xmmword ptr [RSI + 0x28],XMM0 MOVUPS xmmword ptr [RSI + 0x38],XMM0 LAB_0010255b: LEA RDI,[RSP + 0xe8] CALL 0x001038cc MOV RAX,qword ptr [RSP + 0x90] TEST RAX,RAX JZ 0x00102587 LEA RDI,[RSP + 0x80] LAB_0010257d: MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_00102587: MOV RAX,qword ptr [RSP + 0x70] TEST RAX,RAX JZ 0x001025a0 LEA RDI,[RSP + 0x60] LAB_00102596: MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_001025a0: LEA R14,[RSP + 0xa0] MOV ESI,0x2 MOV RDI,R14 CALL 0x00103488 XORPS XMM0,XMM0 MOV R15,RSP MOVAPS xmmword ptr [R15],XMM0 MOV qword ptr [R15 + 0x10],0x0 MOV R13D,0x1 LEA RBP,[0x102804] LEA RBX,[0x102970] LEA R12,[RSP + 0x18] LAB_001025e0: MOV EDI,0x58 CALL 0x00102160 MOV qword ptr [RAX],RBP MOV qword ptr [RAX + 0x8],RBX MOV qword ptr [RAX + 0x48],R13 MOV qword ptr [RAX + 0x40],R14 LEA RCX,[RSP + 0xe8] MOV qword ptr [RAX + 0x38],RCX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX + 0x10],XMM0 MOV qword ptr [RSP + 0x18],RAX MOV byte ptr [RAX + 0x50],0x0 LAB_00102615: MOV RDI,R15 MOV RSI,R12 CALL 0x00102aae MOV RDI,qword ptr [RSP + 0x18] TEST RDI,RDI JZ 0x0010262d LAB_0010262a: CALL qword ptr [RDI + 0x8] LAB_0010262d: INC R13 CMP R13,0x65 JNZ 0x001025e0 MOVAPS XMM0,xmmword ptr [RSP] LEA RSI,[RSP + 0x40] MOVAPS xmmword ptr [RSI],XMM0 MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSI + 0x10],RAX XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP],XMM0 MOV qword ptr [RSP + 0x10],0x0 LAB_0010265b: LEA RDI,[RSP + 0x18] CALL 0x00102b99 LAB_00102665: LEA RDI,[RSP + 0x18] CALL 0x00102aec LEA RDI,[RSP + 0x28] CALL 0x00102ff2 LEA RDI,[RSP + 0x40] CALL 0x00102ce0 MOV RDI,RSP CALL 0x00102ce0 LEA RDI,[RSP + 0xa0] CALL 0x001034c6 LEA RDI,[RSP + 0xe8] CALL 0x00103bdc XOR EAX,EAX ADD RSP,0x218 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 main(void) { long lVar1; int8 local_248; int8 uStack_240; int8 local_238; int8 *local_230 [2]; vector<coro::detail::when_all_task<void>,std::allocator<coro::detail::when_all_task<void>>> local_220 [24]; int8 local_208; int8 uStack_200; int8 local_1f8; int4 local_1f0; int8 local_1e8; int8 uStack_1e0; code *local_1d8; int8 uStack_1d0; int8 local_1c8; int8 uStack_1c0; code *local_1b8; int8 uStack_1b0; semaphore local_1a8 [72]; thread_pool local_160 [304]; local_1f0 = 8; local_1e8 = 0; uStack_1e0 = 0; local_1d8 = (code *)0x0; uStack_1d0 = 0; local_1c8 = 0; uStack_1c0 = 0; local_1b8 = (code *)0x0; uStack_1b0 = 0; /* try { // try from 0010255b to 00102567 has its CatchHandler @ 001026e0 */ coro::thread_pool::thread_pool(local_160); if (local_1b8 != (code *)0x0) { /* try { // try from 0010257d to 00102586 has its CatchHandler @ 001026bb */ (*local_1b8)(&local_1c8,&local_1c8,3); } if (local_1d8 != (code *)0x0) { /* try { // try from 00102596 to 0010259f has its CatchHandler @ 001026b9 */ (*local_1d8)(&local_1e8,&local_1e8,3); } /* try { // try from 001025a0 to 001025b4 has its CatchHandler @ 001026db */ coro::semaphore::semaphore(local_1a8,2); local_248 = 0; uStack_240 = 0; local_238 = 0; lVar1 = 1; do { /* try { // try from 001025e0 to 001025e9 has its CatchHandler @ 001026f1 */ local_230[0] = (int8 *)operator_new(0x58); *local_230[0] = main::$_0::operator(); local_230[0][1] = main::$_0::operator(); local_230[0][9] = lVar1; local_230[0][8] = local_1a8; local_230[0][7] = local_160; local_230[0][2] = 0; local_230[0][3] = 0; *(int1 *)(local_230[0] + 10) = 0; /* try { // try from 00102615 to 0010261f has its CatchHandler @ 001026f6 */ std::vector<coro::task<void>,std::allocator<coro::task<void>>>::emplace_back<coro::task<void>> ((vector<coro::task<void>,std::allocator<coro::task<void>>> *)&local_248, (task *)local_230); if (local_230[0] != (int8 *)0x0) { /* try { // try from 0010262a to 0010262c has its CatchHandler @ 001026ef */ (*(code *)local_230[0][1])(); } lVar1 = lVar1 + 1; } while (lVar1 != 0x65); local_208 = local_248; uStack_200 = uStack_240; local_1f8 = local_238; local_248 = 0; uStack_240 = 0; local_238 = 0; /* try { // try from 0010265b to 00102664 has its CatchHandler @ 001026cc */ _ZN4coro8when_allITkNSt6ranges5rangeESt6vectorINS_4taskIvEESaIS4_EETkNS_8concepts9awaitableES4_vEENS_6detail24when_all_ready_awaitableIS2_INS8_13when_all_taskIT1_EESaISC_EEEET_ (local_230); /* try { // try from 00102665 to 0010266e has its CatchHandler @ 001026bd */ _ZN4coro9sync_waitITkNS_8concepts9awaitableENS_6detail24when_all_ready_awaitableISt6vectorINS2_13when_all_taskIvEESaIS6_EEEEOS8_EEDcOT_ (local_230); std::vector<coro::detail::when_all_task<void>,std::allocator<coro::detail::when_all_task<void>>>:: ~vector(local_220); std::vector<coro::task<void>,std::allocator<coro::task<void>>>::~vector ((vector<coro::task<void>,std::allocator<coro::task<void>>> *)&local_208); std::vector<coro::task<void>,std::allocator<coro::task<void>>>::~vector ((vector<coro::task<void>,std::allocator<coro::task<void>>> *)&local_248); coro::semaphore::~semaphore(local_1a8); coro::thread_pool::~thread_pool(local_160); return 0; }
39,865
YAML::detail::node::push_back(YAML::detail::node&, std::shared_ptr<YAML::detail::memory_holder>)
aimrt_mujoco_sim/_deps/yaml-cpp-src/include/yaml-cpp/node/detail/node.h
void push_back(node& input, shared_memory_holder pMemory) { m_pRef->push_back(input, pMemory); input.add_dependency(*this); m_index = m_amount.fetch_add(1); }
O0
c
YAML::detail::node::push_back(YAML::detail::node&, std::shared_ptr<YAML::detail::memory_holder>): subq $0x98, %rsp movq %rdx, 0x18(%rsp) movq %rdi, 0x68(%rsp) movq %rsi, 0x60(%rsp) movq %rdx, 0x58(%rsp) movq 0x68(%rsp), %rdi movq %rdi, 0x10(%rsp) callq 0x9bd50 movq 0x18(%rsp), %rsi movq %rax, 0x20(%rsp) movq 0x60(%rsp), %rax movq %rax, 0x28(%rsp) leaq 0x48(%rsp), %rdi movq %rdi, 0x30(%rsp) callq 0x9d120 movq 0x20(%rsp), %rdi movq 0x28(%rsp), %rsi movq 0x30(%rsp), %rdx callq 0xd9c40 jmp 0xd9b13 leaq 0x48(%rsp), %rdi callq 0x9d260 movq 0x10(%rsp), %rsi movq 0x60(%rsp), %rdi callq 0xd7980 leaq 0x141715(%rip), %rax # 0x21b248 movq %rax, 0x90(%rsp) movq $0x1, 0x88(%rsp) movl $0x5, 0x84(%rsp) movq 0x90(%rsp), %rax movq %rax, (%rsp) movl 0x84(%rsp), %eax movq 0x88(%rsp), %rcx movq %rcx, 0x78(%rsp) decl %eax movl %eax, %ecx movq %rcx, 0x8(%rsp) subl $0x4, %eax ja 0xd9b95 movq 0x8(%rsp), %rax leaq 0xd3ccc(%rip), %rcx # 0x1ad858 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq (%rsp), %rcx movq 0x78(%rsp), %rax lock xaddq %rax, (%rcx) movq %rax, 0x70(%rsp) jmp 0xd9bfc movq (%rsp), %rcx movq 0x78(%rsp), %rax lock xaddq %rax, (%rcx) movq %rax, 0x70(%rsp) jmp 0xd9bfc movq (%rsp), %rcx movq 0x78(%rsp), %rax lock xaddq %rax, (%rcx) movq %rax, 0x70(%rsp) jmp 0xd9bfc movq (%rsp), %rcx movq 0x78(%rsp), %rax lock xaddq %rax, (%rcx) movq %rax, 0x70(%rsp) jmp 0xd9bfc movq (%rsp), %rcx movq 0x78(%rsp), %rax lock xaddq %rax, (%rcx) movq %rax, 0x70(%rsp) movq 0x10(%rsp), %rax movq 0x70(%rsp), %rcx movq %rcx, 0x40(%rax) addq $0x98, %rsp retq movq %rax, %rcx movl %edx, %eax movq %rcx, 0x40(%rsp) movl %eax, 0x3c(%rsp) leaq 0x48(%rsp), %rdi callq 0x9d260 movq 0x40(%rsp), %rdi callq 0x92a70 nopw %cs:(%rax,%rax) nop
_ZN4YAML6detail4node9push_backERS1_St10shared_ptrINS0_13memory_holderEE: sub rsp, 98h mov [rsp+98h+var_80], rdx mov [rsp+98h+var_30], rdi mov [rsp+98h+var_38], rsi mov [rsp+98h+var_40], rdx mov rdi, [rsp+98h+var_30] mov [rsp+98h+var_88], rdi call _ZNKSt19__shared_ptr_accessIN4YAML6detail8node_refELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<YAML::detail::node_ref,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void) mov rsi, [rsp+98h+var_80] mov [rsp+98h+var_78], rax mov rax, [rsp+98h+var_38] mov [rsp+98h+var_70], rax lea rdi, [rsp+98h+var_50] mov [rsp+98h+var_68], rdi call _ZNSt10shared_ptrIN4YAML6detail13memory_holderEEC2ERKS3_; std::shared_ptr<YAML::detail::memory_holder>::shared_ptr(std::shared_ptr<YAML::detail::memory_holder> const&) mov rdi, [rsp+98h+var_78] mov rsi, [rsp+98h+var_70] mov rdx, [rsp+98h+var_68] call _ZN4YAML6detail8node_ref9push_backERNS0_4nodeESt10shared_ptrINS0_13memory_holderEE; YAML::detail::node_ref::push_back(YAML::detail::node &,std::shared_ptr<YAML::detail::memory_holder>) jmp short $+2 loc_D9B13: lea rdi, [rsp+98h+var_50] call _ZNSt10shared_ptrIN4YAML6detail13memory_holderEED2Ev; std::shared_ptr<YAML::detail::memory_holder>::~shared_ptr() mov rsi, [rsp+98h+var_88]; YAML::detail::node * mov rdi, [rsp+98h+var_38]; this call _ZN4YAML6detail4node14add_dependencyERS1_; YAML::detail::node::add_dependency(YAML::detail::node&) lea rax, _ZN4YAML6detail4node8m_amountE; YAML::detail::node::m_amount mov [rsp+98h+var_8], rax mov [rsp+98h+var_10], 1 mov [rsp+98h+var_14], 5 mov rax, [rsp+98h+var_8] mov [rsp+98h+var_98], rax mov eax, [rsp+98h+var_14] mov rcx, [rsp+98h+var_10] mov [rsp+98h+var_20], rcx dec eax; switch 5 cases mov ecx, eax mov [rsp+98h+var_90], rcx sub eax, 4 ja short def_D9B93; jumptable 00000000000D9B93 default case mov rax, [rsp+98h+var_90] lea rcx, jpt_D9B93 movsxd rax, ds:(jpt_D9B93 - 1AD858h)[rcx+rax*4] add rax, rcx jmp rax; switch jump def_D9B93: mov rcx, [rsp+98h+var_98]; jumptable 00000000000D9B93 default case mov rax, [rsp+98h+var_20] lock xadd [rcx], rax mov [rsp+98h+var_28], rax jmp short loc_D9BFC loc_D9BAA: mov rcx, [rsp+98h+var_98]; jumptable 00000000000D9B93 cases 1,2 mov rax, [rsp+98h+var_20] lock xadd [rcx], rax mov [rsp+98h+var_28], rax jmp short loc_D9BFC loc_D9BBF: mov rcx, [rsp+98h+var_98]; jumptable 00000000000D9B93 case 3 mov rax, [rsp+98h+var_20] lock xadd [rcx], rax mov [rsp+98h+var_28], rax jmp short loc_D9BFC loc_D9BD4: mov rcx, [rsp+98h+var_98]; jumptable 00000000000D9B93 case 4 mov rax, [rsp+98h+var_20] lock xadd [rcx], rax mov [rsp+98h+var_28], rax jmp short loc_D9BFC loc_D9BE9: mov rcx, [rsp+98h+var_98]; jumptable 00000000000D9B93 case 5 mov rax, [rsp+98h+var_20] lock xadd [rcx], rax mov [rsp+98h+var_28], rax loc_D9BFC: mov rax, [rsp+98h+var_88] mov rcx, [rsp+98h+var_28] mov [rax+40h], rcx add rsp, 98h retn mov rcx, rax mov eax, edx mov [rsp+arg_38], rcx mov [rsp+arg_34], eax lea rdi, [rsp+arg_40] call _ZNSt10shared_ptrIN4YAML6detail13memory_holderEED2Ev; std::shared_ptr<YAML::detail::memory_holder>::~shared_ptr() mov rdi, [rsp+arg_38] call __Unwind_Resume
YAML::detail::node * YAML::detail::node::push_back( YAML::detail::node *a1, YAML::detail::node *a2, long long a3) { YAML::detail::node *result; // rax long long v5; // [rsp+20h] [rbp-78h] _BYTE v6[16]; // [rsp+48h] [rbp-50h] BYREF long long v7; // [rsp+58h] [rbp-40h] YAML::detail::node *v8; // [rsp+60h] [rbp-38h] YAML::detail::node *v9; // [rsp+68h] [rbp-30h] signed long long v10; // [rsp+70h] [rbp-28h] long long v11; // [rsp+78h] [rbp-20h] int v12; // [rsp+84h] [rbp-14h] long long v13; // [rsp+88h] [rbp-10h] signed long long *v14; // [rsp+90h] [rbp-8h] v9 = a1; v8 = a2; v7 = a3; v5 = std::__shared_ptr_access<YAML::detail::node_ref,(__gnu_cxx::_Lock_policy)2,false,false>::operator->((long long)a1); std::shared_ptr<YAML::detail::memory_holder>::shared_ptr((long long)v6, a3); YAML::detail::node_ref::push_back(v5, a2, v6); std::shared_ptr<YAML::detail::memory_holder>::~shared_ptr((long long)v6); YAML::detail::node::add_dependency(v8, a1); v14 = &YAML::detail::node::m_amount; v13 = 1LL; v12 = 5; v11 = 1LL; v10 = _InterlockedExchangeAdd64(&YAML::detail::node::m_amount, 1uLL); result = a1; *((_QWORD *)a1 + 8) = v10; return result; }
push_back: SUB RSP,0x98 MOV qword ptr [RSP + 0x18],RDX MOV qword ptr [RSP + 0x68],RDI MOV qword ptr [RSP + 0x60],RSI MOV qword ptr [RSP + 0x58],RDX MOV RDI,qword ptr [RSP + 0x68] MOV qword ptr [RSP + 0x10],RDI CALL 0x0019bd50 MOV RSI,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x20],RAX MOV RAX,qword ptr [RSP + 0x60] MOV qword ptr [RSP + 0x28],RAX LEA RDI,[RSP + 0x48] MOV qword ptr [RSP + 0x30],RDI CALL 0x0019d120 MOV RDI,qword ptr [RSP + 0x20] MOV RSI,qword ptr [RSP + 0x28] MOV RDX,qword ptr [RSP + 0x30] LAB_001d9b0c: CALL 0x001d9c40 LAB_001d9b11: JMP 0x001d9b13 LAB_001d9b13: LEA RDI,[RSP + 0x48] CALL 0x0019d260 MOV RSI,qword ptr [RSP + 0x10] MOV RDI,qword ptr [RSP + 0x60] CALL 0x001d7980 LEA RAX,[0x31b248] MOV qword ptr [RSP + 0x90],RAX MOV qword ptr [RSP + 0x88],0x1 MOV dword ptr [RSP + 0x84],0x5 MOV RAX,qword ptr [RSP + 0x90] MOV qword ptr [RSP],RAX MOV EAX,dword ptr [RSP + 0x84] MOV RCX,qword ptr [RSP + 0x88] MOV qword ptr [RSP + 0x78],RCX DEC EAX MOV ECX,EAX MOV qword ptr [RSP + 0x8],RCX SUB EAX,0x4 JA 0x001d9b95 MOV RAX,qword ptr [RSP + 0x8] LEA RCX,[0x2ad858] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX JMP RAX LAB_001d9b95: MOV RCX,qword ptr [RSP] MOV RAX,qword ptr [RSP + 0x78] XADD.LOCK qword ptr [RCX],RAX MOV qword ptr [RSP + 0x70],RAX JMP 0x001d9bfc LAB_001d9bfc: MOV RAX,qword ptr [RSP + 0x10] MOV RCX,qword ptr [RSP + 0x70] MOV qword ptr [RAX + 0x40],RCX ADD RSP,0x98 RET
/* WARNING: Removing unreachable block (ram,0x001d9b95) */ /* YAML::detail::node::push_back(YAML::detail::node&, std::shared_ptr<YAML::detail::memory_holder>) */ void __thiscall YAML::detail::node::push_back(node *this,node *param_1,shared_ptr *param_3) { node *pnVar1; node_ref *pnVar2; shared_ptr<YAML::detail::memory_holder> local_50 [16]; shared_ptr *local_40; node *local_38; node *local_30; int8 local_20; int4 local_14; int8 local_10; int8 *local_8; local_40 = param_3; local_38 = param_1; local_30 = this; pnVar2 = (node_ref *) std::__shared_ptr_access<YAML::detail::node_ref,(__gnu_cxx::_Lock_policy)2,false,false>:: operator->((__shared_ptr_access<YAML::detail::node_ref,(__gnu_cxx::_Lock_policy)2,false,false> *)this); pnVar1 = local_38; std::shared_ptr<YAML::detail::memory_holder>::shared_ptr(local_50,param_3); /* try { // try from 001d9b0c to 001d9b10 has its CatchHandler @ 001d9c12 */ node_ref::push_back(pnVar2,pnVar1,local_50); std::shared_ptr<YAML::detail::memory_holder>::~shared_ptr(local_50); add_dependency(local_38,this); local_8 = &m_amount; local_10 = 1; local_14 = 5; local_20 = 1; /* WARNING: Could not recover jumptable at 0x001d9b93. Too many branches */ /* WARNING: Treating indirect jump as call */ (*(code *)(&DAT_002ad858 + DAT_002ad868))(); return; }
39,866
YAML::detail::node::push_back(YAML::detail::node&, std::shared_ptr<YAML::detail::memory_holder>)
aimrt_mujoco_sim/_deps/yaml-cpp-src/include/yaml-cpp/node/detail/node.h
void push_back(node& input, shared_memory_holder pMemory) { m_pRef->push_back(input, pMemory); input.add_dependency(*this); m_index = m_amount.fetch_add(1); }
O3
c
YAML::detail::node::push_back(YAML::detail::node&, std::shared_ptr<YAML::detail::memory_holder>): pushq %r14 pushq %rbx subq $0x18, %rsp movq %rsi, %r14 movq %rdi, %rbx movq (%rdi), %rax movq (%rdx), %rcx movq %rcx, 0x8(%rsp) movq 0x8(%rdx), %rcx movq %rcx, 0x10(%rsp) testq %rcx, %rcx je 0x3ae8d movq 0x75081(%rip), %rdx # 0xaff00 cmpb $0x0, (%rdx) je 0x3ae89 incl 0x8(%rcx) jmp 0x3ae8d lock incl 0x8(%rcx) movq (%rax), %rdi leaq 0x8(%rsp), %rdx movq %r14, %rsi callq 0x814e6 movq 0x10(%rsp), %rdi testq %rdi, %rdi je 0x3aeac callq 0x1ed80 movq %r14, %rdi movq %rbx, %rsi callq 0x3a384 leaq 0x7690a(%rip), %rax # 0xb17c8 movl $0x1, %ecx lock xaddq %rcx, (%rax) movq %rcx, 0x40(%rbx) addq $0x18, %rsp popq %rbx popq %r14 retq movq %rax, %rbx movq 0x10(%rsp), %rdi testq %rdi, %rdi je 0x3aee6 callq 0x1ed80 movq %rbx, %rdi callq 0x1ffd0
_ZN4YAML6detail4node9push_backERS1_St10shared_ptrINS0_13memory_holderEE: push r14 push rbx sub rsp, 18h mov r14, rsi mov rbx, rdi mov rax, [rdi] mov rcx, [rdx] mov [rsp+28h+var_20], rcx mov rcx, [rdx+8] mov [rsp+28h+var_18], rcx test rcx, rcx jz short loc_3AE8D mov rdx, cs:__libc_single_threaded_ptr cmp byte ptr [rdx], 0 jz short loc_3AE89 inc dword ptr [rcx+8] jmp short loc_3AE8D loc_3AE89: lock inc dword ptr [rcx+8] loc_3AE8D: mov rdi, [rax] lea rdx, [rsp+28h+var_20] mov rsi, r14 call _ZN4YAML6detail9node_data9push_backERNS0_4nodeERKSt10shared_ptrINS0_13memory_holderEE; YAML::detail::node_data::push_back(YAML::detail::node &,std::shared_ptr<YAML::detail::memory_holder> const&) mov rdi, [rsp+28h+var_18] test rdi, rdi jz short loc_3AEAC call __ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_3AEAC: mov rdi, r14; this mov rsi, rbx; YAML::detail::node * call _ZN4YAML6detail4node14add_dependencyERS1_; YAML::detail::node::add_dependency(YAML::detail::node&) lea rax, _ZN4YAML6detail4node8m_amountE; YAML::detail::node::m_amount mov ecx, 1 lock xadd [rax], rcx mov [rbx+40h], rcx add rsp, 18h pop rbx pop r14 retn mov rbx, rax mov rdi, [rsp+arg_8] test rdi, rdi jz short loc_3AEE6 call __ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_3AEE6: mov rdi, rbx call __Unwind_Resume
signed long long * YAML::detail::node::push_back(YAML::detail::node *a1, YAML::detail::node *this, long long *a3) { _QWORD *v3; // rax long long v4; // rcx signed long long *result; // rax long long v6; // [rsp+8h] [rbp-20h] BYREF long long v7; // [rsp+10h] [rbp-18h] v3 = *(_QWORD **)a1; v6 = *a3; v4 = a3[1]; v7 = v4; if ( v4 ) { if ( _libc_single_threaded ) ++*(_DWORD *)(v4 + 8); else _InterlockedIncrement((volatile signed __int32 *)(v4 + 8)); } YAML::detail::node_data::push_back(*v3, this, &v6); if ( v7 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v7); YAML::detail::node::add_dependency(this, a1); result = &YAML::detail::node::m_amount; *((_QWORD *)a1 + 8) = _InterlockedExchangeAdd64(&YAML::detail::node::m_amount, 1uLL); return result; }
push_back: PUSH R14 PUSH RBX SUB RSP,0x18 MOV R14,RSI MOV RBX,RDI MOV RAX,qword ptr [RDI] MOV RCX,qword ptr [RDX] MOV qword ptr [RSP + 0x8],RCX MOV RCX,qword ptr [RDX + 0x8] MOV qword ptr [RSP + 0x10],RCX TEST RCX,RCX JZ 0x0013ae8d MOV RDX,qword ptr [0x001aff00] CMP byte ptr [RDX],0x0 JZ 0x0013ae89 INC dword ptr [RCX + 0x8] JMP 0x0013ae8d LAB_0013ae89: INC.LOCK dword ptr [RCX + 0x8] LAB_0013ae8d: MOV RDI,qword ptr [RAX] LAB_0013ae90: LEA RDX,[RSP + 0x8] MOV RSI,R14 CALL 0x001814e6 LAB_0013ae9d: MOV RDI,qword ptr [RSP + 0x10] TEST RDI,RDI JZ 0x0013aeac CALL 0x0011ed80 LAB_0013aeac: MOV RDI,R14 MOV RSI,RBX CALL 0x0013a384 LEA RAX,[0x1b17c8] MOV ECX,0x1 XADD.LOCK qword ptr [RAX],RCX MOV qword ptr [RBX + 0x40],RCX ADD RSP,0x18 POP RBX POP R14 RET
/* YAML::detail::node::push_back(YAML::detail::node&, std::shared_ptr<YAML::detail::memory_holder>) */ void __thiscall YAML::detail::node::push_back(node *this,node *param_1,long param_3) { int8 *puVar1; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *this_00; long lVar2; puVar1 = *(int8 **)this; this_00 = *(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(param_3 + 8); if (this_00 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { if (*PTR___libc_single_threaded_001aff00 == '\0') { LOCK(); *(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1; UNLOCK(); } else { *(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1; } } /* try { // try from 0013ae90 to 0013ae9c has its CatchHandler @ 0013aed4 */ node_data::push_back((node *)*puVar1,param_1); if (this_00 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(this_00); } add_dependency(param_1,this); LOCK(); UNLOCK(); lVar2 = m_amount + 1; *(long *)(this + 0x40) = m_amount; m_amount = lVar2; return; }
39,867
ma_crypt_create
eloqsql/storage/maria/ma_crypt.c
int ma_crypt_create(MARIA_SHARE* share) { MARIA_CRYPT_DATA *crypt_data= (MARIA_CRYPT_DATA*)my_malloc(PSI_INSTRUMENT_ME, sizeof(MARIA_CRYPT_DATA), MYF(MY_ZEROFILL)); crypt_data->scheme.type= CRYPT_SCHEME_1; crypt_data->scheme.locker= crypt_data_scheme_locker; mysql_mutex_init(key_CRYPT_DATA_lock, &crypt_data->lock, MY_MUTEX_INIT_FAST); crypt_data->scheme.key_id= get_encryption_key_id(share); my_random_bytes(crypt_data->scheme.iv, sizeof(crypt_data->scheme.iv)); my_random_bytes((uchar*)&crypt_data->space, sizeof(crypt_data->space)); share->crypt_data= crypt_data; share->crypt_page_header_space= CRYPT_SCHEME_1_KEY_VERSION_SIZE; return 0; }
O0
c
ma_crypt_create: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) xorl %edi, %edi movl $0xb0, %esi movl $0x20, %edx callq 0xc1ac20 movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rax movl $0x1, 0x54(%rax) movq -0x10(%rbp), %rax leaq 0x79(%rip), %rcx # 0xb2f8d0 movq %rcx, 0x58(%rax) movl 0x12c7b23(%rip), %edi # 0x1df7384 movq -0x10(%rbp), %rsi addq $0x68, %rsi leaq 0x12d1280(%rip), %rdx # 0x1e00af0 callq 0xb2f920 movq -0x8(%rbp), %rdi callq 0xb2f990 movl %eax, %ecx movq -0x10(%rbp), %rax movl %ecx, 0x50(%rax) movq -0x10(%rbp), %rdi movl $0x10, %esi callq 0xb9c3c0 movq -0x10(%rbp), %rdi addq $0x60, %rdi movl $0x4, %esi callq 0xb9c3c0 movq -0x10(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0xc20(%rax) movq -0x8(%rbp), %rax movl $0x4, 0xc18(%rax) xorl %eax, %eax addq $0x10, %rsp popq %rbp retq nopl (%rax)
ma_crypt_create: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi xor edi, edi mov esi, 0B0h mov edx, 20h ; ' ' call my_malloc mov [rbp+var_10], rax mov rax, [rbp+var_10] mov dword ptr [rax+54h], 1 mov rax, [rbp+var_10] lea rcx, crypt_data_scheme_locker mov [rax+58h], rcx mov edi, cs:key_CRYPT_DATA_lock mov rsi, [rbp+var_10] add rsi, 68h ; 'h' lea rdx, my_fast_mutexattr call inline_mysql_mutex_init_4 mov rdi, [rbp+var_8] call get_encryption_key_id mov ecx, eax mov rax, [rbp+var_10] mov [rax+50h], ecx mov rdi, [rbp+var_10] mov esi, 10h call my_random_bytes mov rdi, [rbp+var_10] add rdi, 60h ; '`' mov esi, 4 call my_random_bytes mov rcx, [rbp+var_10] mov rax, [rbp+var_8] mov [rax+0C20h], rcx mov rax, [rbp+var_8] mov dword ptr [rax+0C18h], 4 xor eax, eax add rsp, 10h pop rbp retn
long long ma_crypt_create(long long a1) { long long v2; // [rsp+0h] [rbp-10h] v2 = my_malloc(0LL, 176LL, 32LL); *(_DWORD *)(v2 + 84) = 1; *(_QWORD *)(v2 + 88) = crypt_data_scheme_locker; inline_mysql_mutex_init_4((unsigned int)key_CRYPT_DATA_lock, v2 + 104, &my_fast_mutexattr); *(_DWORD *)(v2 + 80) = get_encryption_key_id(a1); my_random_bytes(v2, 16LL); my_random_bytes(v2 + 96, 4LL); *(_QWORD *)(a1 + 3104) = v2; *(_DWORD *)(a1 + 3096) = 4; return 0LL; }
~_Auto_node: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x10],RAX CMP qword ptr [RAX + 0x8],0x0 JZ 0x00b2f84b MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RAX + 0x8] CALL 0x00b2ee30 LAB_00b2f84b: ADD RSP,0x10 POP RBP RET
/* std::_Rb_tree<unsigned int, std::pair<unsigned int const, unsigned int>, std::_Select1st<std::pair<unsigned int const, unsigned int> >, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, unsigned int> > >::_Auto_node::~_Auto_node() */ void __thiscall std:: _Rb_tree<unsigned_int,std::pair<unsigned_int_const,unsigned_int>,std::_Select1st<std::pair<unsigned_int_const,unsigned_int>>,std::less<unsigned_int>,std::allocator<std::pair<unsigned_int_const,unsigned_int>>> ::_Auto_node::~_Auto_node(_Auto_node *this) { if (*(long *)(this + 8) != 0) { _M_drop_node(*(_Rb_tree<unsigned_int,std::pair<unsigned_int_const,unsigned_int>,std::_Select1st<std::pair<unsigned_int_const,unsigned_int>>,std::less<unsigned_int>,std::allocator<std::pair<unsigned_int_const,unsigned_int>>> **)this,*(_Rb_tree_node **)(this + 8)); } return; }
39,868
bin2decimal
eloqsql/strings/decimal.c
int bin2decimal(const uchar *from, decimal_t *to, decimal_digits_t precision, decimal_digits_t scale) { int error=E_DEC_OK, intg=precision-scale, intg0=intg/DIG_PER_DEC1, frac0=scale/DIG_PER_DEC1, intg0x=intg-intg0*DIG_PER_DEC1, frac0x=scale-frac0*DIG_PER_DEC1, intg1=intg0+(intg0x>0), frac1=frac0+(frac0x>0); dec1 *buf=to->buf, mask=(*from & 0x80) ? 0 : -1; const uchar *stop; uchar *d_copy; int bin_size= decimal_bin_size(precision, scale); sanity(to); d_copy= (uchar*) my_alloca(bin_size); memcpy(d_copy, from, bin_size); d_copy[0]^= 0x80; from= d_copy; FIX_INTG_FRAC_ERROR(to->len, intg1, frac1, error); if (unlikely(error)) { if (intg1 < intg0+(intg0x>0)) { from+=dig2bytes[intg0x]+sizeof(dec1)*(intg0-intg1); frac0=frac0x=intg0x=0; intg0=intg1; } else { frac0x=0; frac0=frac1; } } to->sign=(mask != 0); to->intg=intg0*DIG_PER_DEC1+intg0x; to->frac=frac0*DIG_PER_DEC1+frac0x; if (intg0x) { int i=dig2bytes[intg0x]; dec1 UNINIT_VAR(x); switch (i) { case 1: x=mi_sint1korr(from); break; case 2: x=mi_sint2korr(from); break; case 3: x=mi_sint3korr(from); break; case 4: x=mi_sint4korr(from); break; default: abort(); } from+=i; *buf=x ^ mask; if (((ulonglong)*buf) >= (ulonglong) powers10[intg0x+1]) goto err; if (buf > to->buf || *buf != 0) buf++; else to->intg-=intg0x; } for (stop=from+intg0*sizeof(dec1); from < stop; from+=sizeof(dec1)) { DBUG_ASSERT(sizeof(dec1) == 4); *buf=mi_sint4korr(from) ^ mask; if (((uint32)*buf) > DIG_MAX) goto err; if (buf > to->buf || *buf != 0) buf++; else to->intg-=DIG_PER_DEC1; } DBUG_ASSERT(to->intg >=0); for (stop=from+frac0*sizeof(dec1); from < stop; from+=sizeof(dec1)) { DBUG_ASSERT(sizeof(dec1) == 4); *buf=mi_sint4korr(from) ^ mask; if (((uint32)*buf) > DIG_MAX) goto err; buf++; } if (frac0x) { int i=dig2bytes[frac0x]; dec1 UNINIT_VAR(x); switch (i) { case 1: x=mi_sint1korr(from); break; case 2: x=mi_sint2korr(from); break; case 3: x=mi_sint3korr(from); break; case 4: x=mi_sint4korr(from); break; default: abort(); } *buf=(x ^ mask) * powers10[DIG_PER_DEC1 - frac0x]; if (((uint32)*buf) > DIG_MAX) goto err; buf++; } my_afree(d_copy); /* No digits? We have read the number zero, of unspecified precision. Make it a proper zero, with non-zero precision. */ if (to->intg == 0 && to->frac == 0) decimal_make_zero(to); return error; err: my_afree(d_copy); decimal_make_zero(to); return(E_DEC_BAD_NUM); }
O3
c
bin2decimal: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rsi, -0x68(%rbp) movq %rdi, %r10 movq %fs:0x28, %rax movq %rax, -0x30(%rbp) subl %ecx, %edx movslq %edx, %rdx imulq $0x38e38e39, %rdx, %r8 # imm = 0x38E38E39 movq %r8, %rax shrq $0x3f, %rax sarq $0x21, %r8 addl %eax, %r8d imull $0xe38f, %ecx, %edi # imm = 0xE38F shrl $0x13, %edi leal (%r8,%r8,8), %eax subl %eax, %edx leal (%rdi,%rdi,8), %eax subl %eax, %ecx xorl %eax, %eax testl %edx, %edx setg %al addl %r8d, %eax movl %eax, -0x50(%rbp) xorl %ebx, %ebx testl %ecx, %ecx setg %bl addl %edi, %ebx movb (%r10), %r9b xorl %eax, %eax movb %r9b, -0x31(%rbp) testb %r9b, %r9b setns %al movl %eax, -0x38(%rbp) movq %rdx, -0x58(%rbp) movslq %edx, %rax leaq 0x3b5b8(%rip), %rdx # 0x63c60 movslq (%rdx,%rax,4), %r9 movq %rdi, -0x40(%rbp) movq %r8, -0x48(%rbp) leal (%r8,%rdi), %eax movq %r9, -0x60(%rbp) leal (%r9,%rax,4), %eax movl %ecx, -0x4c(%rbp) movslq %ecx, %rcx addl (%rdx,%rcx,4), %eax movslq %eax, %rdx leaq 0xf(%rdx), %r12 andq $-0x10, %r12 movq 0x10(%rsi), %r13 movq %rsp, %r14 movq %r14, %r15 subq %r12, %r15 negq %r12 movq %r15, %rsp movq %r15, %rdi movq %r10, %rsi callq 0x24240 movl -0x50(%rbp), %edx movq -0x68(%rbp), %r10 xorb $-0x80, (%r14,%r12) addl %edx, %ebx movl 0x8(%r10), %ecx xorl %eax, %eax cmpl %ecx, %ebx jg 0x2895c movl -0x4c(%rbp), %r14d movl -0x38(%rbp), %ebx movq -0x40(%rbp), %rdi movq -0x48(%rbp), %r12 movq -0x58(%rbp), %r11 movb -0x31(%rbp), %cl negl %ebx notb %cl shrb $0x7, %cl movb %cl, 0xc(%r10) leal (%r12,%r12,8), %ecx addl %r11d, %ecx movl %ecx, (%r10) leal (%rdi,%rdi,8), %ecx addl %r14d, %ecx movl %ecx, 0x4(%r10) testl %r11d, %r11d je 0x28802 movslq %r11d, %rdx leaq 0x3b50a(%rip), %rcx # 0x63c60 movl (%rcx,%rdx,4), %ecx leal -0x1(%rcx), %esi cmpl $0x3, %esi ja 0x289a2 movq %rdi, -0x40(%rbp) leaq 0x3b480(%rip), %rdi # 0x63bf0 movslq (%rdi,%rsi,4), %rsi addq %rdi, %rsi jmpq *%rsi movsbl (%r15), %esi jmp 0x287c7 movzbl (%r15), %r9d movl %r9d, %esi shll $0x10, %esi movzbl 0x1(%r15), %edi shll $0x8, %edi movzbl 0x2(%r15), %r8d testb %r9b, %r9b js 0x287bc orl %r8d, %esi orl %edi, %esi jmp 0x287c7 movl (%r15), %esi bswapl %esi jmp 0x287c7 movzbl 0x1(%r15), %edi movzbl (%r15), %esi shll $0x8, %esi movswl %si, %esi orl %edi, %esi jmp 0x287c7 orl %r8d, %edi addl %edi, %esi addl $0xff000000, %esi # imm = 0xFF000000 movl %esi, %r8d xorl %ebx, %r8d movl %r8d, (%r13) leaq 0x3b458(%rip), %r9 # 0x63c30 movl $0x8, %edi cmpl 0x4(%r9,%rdx,4), %r8d jae 0x28926 addq %rcx, %r15 cmpq 0x10(%r10), %r13 ja 0x287fa cmpl %ebx, %esi jne 0x287fa subl %r11d, (%r10) jmp 0x287fe addq $0x4, %r13 movq -0x40(%rbp), %rdi testl %r12d, %r12d jle 0x28840 movslq %r12d, %rcx leaq (%r15,%rcx,4), %rcx movl (%r15), %edx bswapl %edx movl %edx, %esi xorl %ebx, %esi movl %esi, (%r13) cmpl $0x3b9ac9ff, %esi # imm = 0x3B9AC9FF ja 0x288a2 cmpq 0x10(%r10), %r13 ja 0x28833 cmpl %ebx, %edx jne 0x28833 addl $-0x9, (%r10) jmp 0x28837 addq $0x4, %r13 addq $0x4, %r15 cmpq %rcx, %r15 jb 0x2880e testl %edi, %edi jle 0x2886b movslq %edi, %rcx leaq (%r15,%rcx,4), %rcx movl (%r15), %edx bswapl %edx xorl %ebx, %edx movl %edx, (%r13) cmpl $0x3b9ac9ff, %edx # imm = 0x3B9AC9FF ja 0x288a2 addq $0x4, %r13 addq $0x4, %r15 cmpq %rcx, %r15 jb 0x2884b testl %r14d, %r14d je 0x28917 movslq %r14d, %rcx leaq 0x3b3e2(%rip), %rdx # 0x63c60 movl (%rdx,%rcx,4), %ecx decl %ecx cmpl $0x3, %ecx ja 0x289a2 leaq 0x3b36d(%rip), %rdx # 0x63c00 movslq (%rdx,%rcx,4), %rcx addq %rdx, %rcx jmpq *%rcx movsbl (%r15), %ecx jmp 0x288ee movl $0x8, %edi jmp 0x28926 movzbl (%r15), %edi movl %edi, %ecx shll $0x10, %ecx movzbl 0x1(%r15), %edx shll $0x8, %edx movzbl 0x2(%r15), %esi testb %dil, %dil js 0x288e4 orl %esi, %ecx orl %edx, %ecx jmp 0x288ee movl (%r15), %ecx bswapl %ecx jmp 0x288ee movzbl 0x1(%r15), %edx movzbl (%r15), %ecx shll $0x8, %ecx movswl %cx, %ecx orl %edx, %ecx jmp 0x288ee orl %esi, %edx addl %edx, %ecx addl $0xff000000, %ecx # imm = 0xFF000000 xorl %ebx, %ecx movl $0x9, %edx subl %r14d, %edx movslq %edx, %rdx leaq 0x3b32e(%rip), %rsi # 0x63c30 imull (%rsi,%rdx,4), %ecx movl %ecx, (%r13) movl $0x8, %edi cmpl $0x3b9ac9ff, %ecx # imm = 0x3B9AC9FF ja 0x28926 cmpl $0x0, (%r10) jne 0x2893e cmpl $0x0, 0x4(%r10) movl %eax, %edi jne 0x2893e movq 0x10(%r10), %rax movl $0x0, (%rax) movq $0x1, (%r10) movb $0x0, 0xc(%r10) movl %edi, %eax movq %fs:0x28, %rcx cmpq -0x30(%rbp), %rcx jne 0x28976 leaq -0x28(%rbp), %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq -0x60(%rbp), %rsi movl %ecx, %edi subl %edx, %edi jl 0x2897b xorl %r14d, %r14d movl $0x1, %eax movl -0x38(%rbp), %ebx jmp 0x28719 callq 0x24320 movq -0x48(%rbp), %rax subl %ecx, %eax cltq leaq (%r15,%rax,4), %r15 addq %rsi, %r15 xorl %r11d, %r11d movl $0x2, %eax xorl %r14d, %r14d xorl %edi, %edi movl %ecx, %r12d movl -0x38(%rbp), %ebx jmp 0x28721 callq 0x24190
bin2decimal: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h mov [rbp+var_68], rsi mov r10, rdi mov rax, fs:28h mov [rbp+var_30], rax sub edx, ecx movsxd rdx, edx imul r8, rdx, 38E38E39h mov rax, r8 shr rax, 3Fh sar r8, 21h add r8d, eax imul edi, ecx, 0E38Fh shr edi, 13h lea eax, [r8+r8*8] sub edx, eax lea eax, [rdi+rdi*8] sub ecx, eax xor eax, eax test edx, edx setnle al add eax, r8d mov [rbp+var_50], eax xor ebx, ebx test ecx, ecx setnle bl add ebx, edi mov r9b, [r10] xor eax, eax mov [rbp+var_31], r9b test r9b, r9b setns al mov [rbp+var_38], eax mov [rbp+var_58], rdx movsxd rax, edx lea rdx, dig2bytes movsxd r9, dword ptr [rdx+rax*4] mov [rbp+var_40], rdi mov [rbp+var_48], r8 lea eax, [r8+rdi] mov [rbp+var_60], r9 lea eax, [r9+rax*4] mov [rbp+var_4C], ecx movsxd rcx, ecx add eax, [rdx+rcx*4] movsxd rdx, eax lea r12, [rdx+0Fh] and r12, 0FFFFFFFFFFFFFFF0h mov r13, [rsi+10h] mov r14, rsp mov r15, r14 sub r15, r12 neg r12 mov rsp, r15 mov rdi, r15 mov rsi, r10 call _memcpy mov edx, [rbp+var_50] mov r10, [rbp+var_68] xor byte ptr [r14+r12], 80h add ebx, edx mov ecx, [r10+8] xor eax, eax cmp ebx, ecx jg loc_2895C mov r14d, [rbp+var_4C] mov ebx, [rbp+var_38] mov rdi, [rbp+var_40] loc_28719: mov r12, [rbp+var_48] mov r11, [rbp+var_58] loc_28721: mov cl, [rbp+var_31] neg ebx not cl shr cl, 7 mov [r10+0Ch], cl lea ecx, [r12+r12*8] add ecx, r11d mov [r10], ecx lea ecx, [rdi+rdi*8] add ecx, r14d mov [r10+4], ecx test r11d, r11d jz loc_28802 movsxd rdx, r11d lea rcx, dig2bytes mov ecx, [rcx+rdx*4] lea esi, [rcx-1]; switch 4 cases cmp esi, 3 ja def_28777; jumptable 0000000000028777 default case mov [rbp+var_40], rdi lea rdi, jpt_28777 movsxd rsi, ds:(jpt_28777 - 63BF0h)[rdi+rsi*4] add rsi, rdi jmp rsi; switch jump loc_28779: movsx esi, byte ptr [r15]; jumptable 0000000000028777 case 1 jmp short loc_287C7 loc_2877F: movzx r9d, byte ptr [r15]; jumptable 0000000000028777 case 3 mov esi, r9d shl esi, 10h movzx edi, byte ptr [r15+1] shl edi, 8 movzx r8d, byte ptr [r15+2] test r9b, r9b js short loc_287BC or esi, r8d or esi, edi jmp short loc_287C7 loc_287A2: mov esi, [r15]; jumptable 0000000000028777 case 4 bswap esi jmp short loc_287C7 loc_287A9: movzx edi, byte ptr [r15+1]; jumptable 0000000000028777 case 2 movzx esi, byte ptr [r15] shl esi, 8 movsx esi, si or esi, edi jmp short loc_287C7 loc_287BC: or edi, r8d add esi, edi add esi, 0FF000000h loc_287C7: mov r8d, esi xor r8d, ebx mov [r13+0], r8d lea r9, powers10 mov edi, 8 cmp r8d, [r9+rdx*4+4] jnb loc_28926 add r15, rcx cmp r13, [r10+10h] ja short loc_287FA cmp esi, ebx jnz short loc_287FA sub [r10], r11d jmp short loc_287FE loc_287FA: add r13, 4 loc_287FE: mov rdi, [rbp+var_40] loc_28802: test r12d, r12d jle short loc_28840 movsxd rcx, r12d lea rcx, [r15+rcx*4] loc_2880E: mov edx, [r15] bswap edx mov esi, edx xor esi, ebx mov [r13+0], esi cmp esi, 3B9AC9FFh ja short loc_288A2 cmp r13, [r10+10h] ja short loc_28833 cmp edx, ebx jnz short loc_28833 add dword ptr [r10], 0FFFFFFF7h jmp short loc_28837 loc_28833: add r13, 4 loc_28837: add r15, 4 cmp r15, rcx jb short loc_2880E loc_28840: test edi, edi jle short loc_2886B movsxd rcx, edi lea rcx, [r15+rcx*4] loc_2884B: mov edx, [r15] bswap edx xor edx, ebx mov [r13+0], edx cmp edx, 3B9AC9FFh ja short loc_288A2 add r13, 4 add r15, 4 cmp r15, rcx jb short loc_2884B loc_2886B: test r14d, r14d jz loc_28917 movsxd rcx, r14d lea rdx, dig2bytes mov ecx, [rdx+rcx*4] dec ecx; switch 4 cases cmp ecx, 3 ja def_28777; jumptable 0000000000028777 default case lea rdx, jpt_2889A movsxd rcx, ds:(jpt_2889A - 63C00h)[rdx+rcx*4] add rcx, rdx jmp rcx; switch jump loc_2889C: movsx ecx, byte ptr [r15]; jumptable 000000000002889A case 1 jmp short loc_288EE loc_288A2: mov edi, 8 jmp short loc_28926 loc_288A9: movzx edi, byte ptr [r15]; jumptable 000000000002889A case 3 mov ecx, edi shl ecx, 10h movzx edx, byte ptr [r15+1] shl edx, 8 movzx esi, byte ptr [r15+2] test dil, dil js short loc_288E4 or ecx, esi or ecx, edx jmp short loc_288EE loc_288CA: mov ecx, [r15]; jumptable 000000000002889A case 4 bswap ecx jmp short loc_288EE loc_288D1: movzx edx, byte ptr [r15+1]; jumptable 000000000002889A case 2 movzx ecx, byte ptr [r15] shl ecx, 8 movsx ecx, cx or ecx, edx jmp short loc_288EE loc_288E4: or edx, esi add ecx, edx add ecx, 0FF000000h loc_288EE: xor ecx, ebx mov edx, 9 sub edx, r14d movsxd rdx, edx lea rsi, powers10 imul ecx, [rsi+rdx*4] mov [r13+0], ecx mov edi, 8 cmp ecx, 3B9AC9FFh ja short loc_28926 loc_28917: cmp dword ptr [r10], 0 jnz short loc_2893E cmp dword ptr [r10+4], 0 mov edi, eax jnz short loc_2893E loc_28926: mov rax, [r10+10h] mov dword ptr [rax], 0 mov qword ptr [r10], 1 mov byte ptr [r10+0Ch], 0 mov eax, edi loc_2893E: mov rcx, fs:28h cmp rcx, [rbp+var_30] jnz short loc_28976 lea rsp, [rbp-28h] pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_2895C: mov rsi, [rbp+var_60] mov edi, ecx sub edi, edx jl short loc_2897B xor r14d, r14d mov eax, 1 mov ebx, [rbp+var_38] jmp loc_28719 loc_28976: call ___stack_chk_fail loc_2897B: mov rax, [rbp+var_48] sub eax, ecx cdqe lea r15, [r15+rax*4] add r15, rsi xor r11d, r11d mov eax, 2 xor r14d, r14d xor edi, edi mov r12d, ecx mov ebx, [rbp+var_38] jmp loc_28721 def_28777: call _abort; jumptable 0000000000028777 default case
long long bin2decimal(char *a1, long long a2, int a3, int a4) { int v5; // edx long long v6; // r8 long long v7; // rdi long long v8; // rdx int v9; // ecx int v10; // ebx long long v11; // r9 long long v12; // rdx _DWORD *v13; // r13 unsigned __int8 *v14; // r15 int v15; // edx long long v16; // r10 int v17; // ecx long long result; // rax int v19; // r14d int v20; // ebx long long v21; // rdi int v22; // r12d int v23; // r11d int v24; // ebx long long v25; // rcx int v26; // esi int v27; // esi int v28; // edi int v29; // r8d unsigned int v30; // edi char *v31; // rcx unsigned __int32 v32; // edx char *v33; // rcx unsigned __int32 v34; // edx int v35; // ecx int v36; // ecx int v37; // edx int v38; // esi unsigned int v39; // ecx long long v40; // [rsp+0h] [rbp-70h] BYREF long long v41; // [rsp+8h] [rbp-68h] long long v42; // [rsp+10h] [rbp-60h] long long v43; // [rsp+18h] [rbp-58h] int v44; // [rsp+20h] [rbp-50h] int v45; // [rsp+24h] [rbp-4Ch] long long v46; // [rsp+28h] [rbp-48h] long long v47; // [rsp+30h] [rbp-40h] BOOL v48; // [rsp+38h] [rbp-38h] char v49; // [rsp+3Fh] [rbp-31h] unsigned long long v50; // [rsp+40h] [rbp-30h] v41 = a2; v50 = __readfsqword(0x28u); v5 = a3 - a4; v6 = (unsigned int)(v5 / 9); v7 = (unsigned int)(58255 * a4) >> 19; v8 = (unsigned int)(v5 % 9); v9 = a4 - 9 * v7; v44 = v6 + ((int)v8 > 0); v10 = v7 + (v9 > 0); v49 = *a1; v48 = v49 >= 0; v43 = v8; v11 = dig2bytes[(int)v8]; v47 = v7; v46 = v6; v42 = v11; v45 = v9; v12 = dig2bytes[v9] + (int)v11 + 4 * ((int)v6 + (int)v7); v13 = *(_DWORD **)(a2 + 16); v14 = (unsigned __int8 *)&v40 - ((v12 + 15) & 0xFFFFFFFFFFFFFFF0LL); memcpy(v14, a1, v12, v9, v6, v11); v15 = v44; v16 = v41; *v14 ^= 0x80u; v17 = *(_DWORD *)(v16 + 8); result = 0LL; if ( v15 + v10 <= v17 ) { v19 = v45; v20 = v48; v21 = v47; LABEL_3: v22 = v46; v23 = v43; goto LABEL_4; } v21 = (unsigned int)(v17 - v15); if ( v17 >= v15 ) { v19 = 0; result = 1LL; v20 = v48; goto LABEL_3; } v14 += 4 * ((int)v46 - v17) + v42; v23 = 0; result = 2LL; v19 = 0; v21 = 0LL; v22 = *(_DWORD *)(v16 + 8); v20 = v48; LABEL_4: v24 = -v20; *(_BYTE *)(v16 + 12) = (unsigned __int8)~v49 >> 7; *(_DWORD *)v16 = v23 + 9 * v22; *(_DWORD *)(v16 + 4) = v19 + 9 * v21; if ( v23 ) { v25 = (unsigned int)dig2bytes[v23]; v47 = v21; switch ( (int)v25 ) { case 1: v26 = (char)*v14; break; case 2: v26 = v14[1] | (__int16)(*v14 << 8); break; case 3: v27 = *v14 << 16; v28 = v14[1] << 8; v29 = v14[2]; if ( (*v14 & 0x80u) != 0 ) v26 = (v29 | v28) + v27 - 0x1000000; else v26 = v28 | v29 | v27; break; case 4: v26 = _byteswap_ulong(*(_DWORD *)v14); break; default: LABEL_47: abort(); } *v13 = v24 ^ v26; v30 = 8; if ( (v24 ^ (unsigned int)v26) >= powers10[v23 + 1] ) goto LABEL_42; v14 += v25; if ( (unsigned long long)v13 <= *(_QWORD *)(v16 + 16) && v26 == v24 ) *(_DWORD *)v16 -= v23; else ++v13; LODWORD(v21) = v47; } if ( v22 > 0 ) { v31 = (char *)&v14[4 * v22]; do { v32 = _byteswap_ulong(*(_DWORD *)v14); *v13 = v24 ^ v32; if ( (v24 ^ v32) > 0x3B9AC9FF ) goto LABEL_33; if ( (unsigned long long)v13 <= *(_QWORD *)(v16 + 16) && v32 == v24 ) *(_DWORD *)v16 -= 9; else ++v13; v14 += 4; } while ( v14 < (unsigned __int8 *)v31 ); } if ( (int)v21 > 0 ) { v33 = (char *)&v14[4 * (int)v21]; while ( 1 ) { v34 = v24 ^ _byteswap_ulong(*(_DWORD *)v14); *v13 = v34; if ( v34 > 0x3B9AC9FF ) break; ++v13; v14 += 4; if ( v14 >= (unsigned __int8 *)v33 ) goto LABEL_30; } LABEL_33: v30 = 8; LABEL_42: **(_DWORD **)(v16 + 16) = 0; *(_QWORD *)v16 = 1LL; *(_BYTE *)(v16 + 12) = 0; return v30; } LABEL_30: if ( v19 ) { switch ( v19 ) { case 1: case 2: v35 = (char)*v14; goto LABEL_39; case 3: case 4: v35 = v14[1] | (__int16)(*v14 << 8); goto LABEL_39; case 5: case 6: v36 = *v14 << 16; v37 = v14[1] << 8; v38 = v14[2]; if ( (*v14 & 0x80u) != 0 ) v35 = (v38 | v37) + v36 - 0x1000000; else v35 = v37 | v38 | v36; goto LABEL_39; case 7: case 8: case 9: v35 = _byteswap_ulong(*(_DWORD *)v14); LABEL_39: v39 = powers10[9 - v19] * (v24 ^ v35); *v13 = v39; v30 = 8; if ( v39 <= 0x3B9AC9FF ) break; goto LABEL_42; default: goto LABEL_47; } } if ( !*(_DWORD *)v16 ) { v30 = result; if ( !*(_DWORD *)(v16 + 4) ) goto LABEL_42; } return result; }
bin2decimal: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 MOV qword ptr [RBP + -0x68],RSI MOV R10,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX SUB EDX,ECX MOVSXD RDX,EDX IMUL R8,RDX,0x38e38e39 MOV RAX,R8 SHR RAX,0x3f SAR R8,0x21 ADD R8D,EAX IMUL EDI,ECX,0xe38f SHR EDI,0x13 LEA EAX,[R8 + R8*0x8] SUB EDX,EAX LEA EAX,[RDI + RDI*0x8] SUB ECX,EAX XOR EAX,EAX TEST EDX,EDX SETG AL ADD EAX,R8D MOV dword ptr [RBP + -0x50],EAX XOR EBX,EBX TEST ECX,ECX SETG BL ADD EBX,EDI MOV R9B,byte ptr [R10] XOR EAX,EAX MOV byte ptr [RBP + -0x31],R9B TEST R9B,R9B SETNS AL MOV dword ptr [RBP + -0x38],EAX MOV qword ptr [RBP + -0x58],RDX MOVSXD RAX,EDX LEA RDX,[0x163c60] MOVSXD R9,dword ptr [RDX + RAX*0x4] MOV qword ptr [RBP + -0x40],RDI MOV qword ptr [RBP + -0x48],R8 LEA EAX,[R8 + RDI*0x1] MOV qword ptr [RBP + -0x60],R9 LEA EAX,[R9 + RAX*0x4] MOV dword ptr [RBP + -0x4c],ECX MOVSXD RCX,ECX ADD EAX,dword ptr [RDX + RCX*0x4] MOVSXD RDX,EAX LEA R12,[RDX + 0xf] AND R12,-0x10 MOV R13,qword ptr [RSI + 0x10] MOV R14,RSP MOV R15,R14 SUB R15,R12 NEG R12 MOV RSP,R15 MOV RDI,R15 MOV RSI,R10 CALL 0x00124240 MOV EDX,dword ptr [RBP + -0x50] MOV R10,qword ptr [RBP + -0x68] XOR byte ptr [R14 + R12*0x1],0x80 ADD EBX,EDX MOV ECX,dword ptr [R10 + 0x8] XOR EAX,EAX CMP EBX,ECX JG 0x0012895c MOV R14D,dword ptr [RBP + -0x4c] MOV EBX,dword ptr [RBP + -0x38] MOV RDI,qword ptr [RBP + -0x40] LAB_00128719: MOV R12,qword ptr [RBP + -0x48] MOV R11,qword ptr [RBP + -0x58] LAB_00128721: MOV CL,byte ptr [RBP + -0x31] NEG EBX NOT CL SHR CL,0x7 MOV byte ptr [R10 + 0xc],CL LEA ECX,[R12 + R12*0x8] ADD ECX,R11D MOV dword ptr [R10],ECX LEA ECX,[RDI + RDI*0x8] ADD ECX,R14D MOV dword ptr [R10 + 0x4],ECX TEST R11D,R11D JZ 0x00128802 MOVSXD RDX,R11D LEA RCX,[0x163c60] MOV ECX,dword ptr [RCX + RDX*0x4] LEA ESI,[RCX + -0x1] CMP ESI,0x3 JA 0x001289a2 MOV qword ptr [RBP + -0x40],RDI LEA RDI,[0x163bf0] MOVSXD RSI,dword ptr [RDI + RSI*0x4] ADD RSI,RDI switchD: JMP RSI caseD_1: MOVSX ESI,byte ptr [R15] JMP 0x001287c7 caseD_3: MOVZX R9D,byte ptr [R15] MOV ESI,R9D SHL ESI,0x10 MOVZX EDI,byte ptr [R15 + 0x1] SHL EDI,0x8 MOVZX R8D,byte ptr [R15 + 0x2] TEST R9B,R9B JS 0x001287bc OR ESI,R8D OR ESI,EDI JMP 0x001287c7 caseD_4: MOV ESI,dword ptr [R15] BSWAP ESI JMP 0x001287c7 caseD_2: MOVZX EDI,byte ptr [R15 + 0x1] MOVZX ESI,byte ptr [R15] SHL ESI,0x8 MOVSX ESI,SI OR ESI,EDI JMP 0x001287c7 LAB_001287bc: OR EDI,R8D ADD ESI,EDI ADD ESI,0xff000000 LAB_001287c7: MOV R8D,ESI XOR R8D,EBX MOV dword ptr [R13],R8D LEA R9,[0x163c30] MOV EDI,0x8 CMP R8D,dword ptr [R9 + RDX*0x4 + 0x4] JNC 0x00128926 ADD R15,RCX CMP R13,qword ptr [R10 + 0x10] JA 0x001287fa CMP ESI,EBX JNZ 0x001287fa SUB dword ptr [R10],R11D JMP 0x001287fe LAB_001287fa: ADD R13,0x4 LAB_001287fe: MOV RDI,qword ptr [RBP + -0x40] LAB_00128802: TEST R12D,R12D JLE 0x00128840 MOVSXD RCX,R12D LEA RCX,[R15 + RCX*0x4] LAB_0012880e: MOV EDX,dword ptr [R15] BSWAP EDX MOV ESI,EDX XOR ESI,EBX MOV dword ptr [R13],ESI CMP ESI,0x3b9ac9ff JA 0x001288a2 CMP R13,qword ptr [R10 + 0x10] JA 0x00128833 CMP EDX,EBX JNZ 0x00128833 ADD dword ptr [R10],-0x9 JMP 0x00128837 LAB_00128833: ADD R13,0x4 LAB_00128837: ADD R15,0x4 CMP R15,RCX JC 0x0012880e LAB_00128840: TEST EDI,EDI JLE 0x0012886b MOVSXD RCX,EDI LEA RCX,[R15 + RCX*0x4] LAB_0012884b: MOV EDX,dword ptr [R15] BSWAP EDX XOR EDX,EBX MOV dword ptr [R13],EDX CMP EDX,0x3b9ac9ff JA 0x001288a2 ADD R13,0x4 ADD R15,0x4 CMP R15,RCX JC 0x0012884b LAB_0012886b: TEST R14D,R14D JZ 0x00128917 MOVSXD RCX,R14D LEA RDX,[0x163c60] MOV ECX,dword ptr [RDX + RCX*0x4] DEC ECX CMP ECX,0x3 JA 0x001289a2 LEA RDX,[0x163c00] MOVSXD RCX,dword ptr [RDX + RCX*0x4] ADD RCX,RDX switchD: JMP RCX caseD_1: MOVSX ECX,byte ptr [R15] JMP 0x001288ee LAB_001288a2: MOV EDI,0x8 JMP 0x00128926 caseD_3: MOVZX EDI,byte ptr [R15] MOV ECX,EDI SHL ECX,0x10 MOVZX EDX,byte ptr [R15 + 0x1] SHL EDX,0x8 MOVZX ESI,byte ptr [R15 + 0x2] TEST DIL,DIL JS 0x001288e4 OR ECX,ESI OR ECX,EDX JMP 0x001288ee caseD_4: MOV ECX,dword ptr [R15] BSWAP ECX JMP 0x001288ee caseD_2: MOVZX EDX,byte ptr [R15 + 0x1] MOVZX ECX,byte ptr [R15] SHL ECX,0x8 MOVSX ECX,CX OR ECX,EDX JMP 0x001288ee LAB_001288e4: OR EDX,ESI ADD ECX,EDX ADD ECX,0xff000000 LAB_001288ee: XOR ECX,EBX MOV EDX,0x9 SUB EDX,R14D MOVSXD RDX,EDX LEA RSI,[0x163c30] IMUL ECX,dword ptr [RSI + RDX*0x4] MOV dword ptr [R13],ECX MOV EDI,0x8 CMP ECX,0x3b9ac9ff JA 0x00128926 LAB_00128917: CMP dword ptr [R10],0x0 JNZ 0x0012893e CMP dword ptr [R10 + 0x4],0x0 MOV EDI,EAX JNZ 0x0012893e LAB_00128926: MOV RAX,qword ptr [R10 + 0x10] MOV dword ptr [RAX],0x0 MOV qword ptr [R10],0x1 MOV byte ptr [R10 + 0xc],0x0 MOV EAX,EDI LAB_0012893e: MOV RCX,qword ptr FS:[0x28] CMP RCX,qword ptr [RBP + -0x30] JNZ 0x00128976 LEA RSP,[RBP + -0x28] POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0012895c: MOV RSI,qword ptr [RBP + -0x60] MOV EDI,ECX SUB EDI,EDX JL 0x0012897b XOR R14D,R14D MOV EAX,0x1 MOV EBX,dword ptr [RBP + -0x38] JMP 0x00128719 LAB_00128976: CALL 0x00124320 LAB_0012897b: MOV RAX,qword ptr [RBP + -0x48] SUB EAX,ECX CDQE LEA R15,[R15 + RAX*0x4] ADD R15,RSI XOR R11D,R11D MOV EAX,0x2 XOR R14D,R14D XOR EDI,EDI MOV R12D,ECX MOV EBX,dword ptr [RBP + -0x38] JMP 0x00128721 default: CALL 0x00124190
int8 bin2decimal(byte *param_1,int *param_2,int param_3,int param_4) { byte *pbVar1; uint *puVar2; bool bVar3; long lVar4; int iVar5; int *piVar6; int8 uVar7; int8 uVar8; uint uVar9; size_t __n; uint uVar10; uint uVar11; ulong uVar12; int iVar13; int iVar14; ulong uVar15; uint *puVar16; int iVar17; uint *__dest; long in_FS_OFFSET; int8 uStack_80; uint auStack_78 [2]; int *local_70; long local_68; ulong local_60; int local_58; int local_54; ulong local_50; ulong local_48; uint local_40; byte local_39; long local_38; local_38 = *(long *)(in_FS_OFFSET + 0x28); uVar10 = (param_3 - param_4) / 9; local_50 = (ulong)uVar10; uVar11 = (uint)(param_4 * 0xe38f) >> 0x13; local_48 = (ulong)uVar11; uVar9 = (param_3 - param_4) % 9; local_60 = (ulong)uVar9; local_54 = param_4 + uVar11 * -9; local_58 = (0 < (int)uVar9) + uVar10; bVar3 = 0 < local_54; local_39 = *param_1; local_40 = (uint)(-1 < (char)local_39); local_68 = (long)*(int *)(dig2bytes + (long)(int)uVar9 * 4); __n = (size_t)(int)(*(int *)(dig2bytes + (long)(int)uVar9 * 4) + (uVar10 + uVar11) * 4 + *(int *)(dig2bytes + (long)local_54 * 4)); uVar15 = __n + 0xf & 0xfffffffffffffff0; puVar16 = *(uint **)(param_2 + 4); lVar4 = -uVar15; __dest = (uint *)((long)auStack_78 + lVar4); local_70 = param_2; *(int8 *)((long)&uStack_80 + lVar4) = 0x1286f2; memcpy(__dest,param_1,__n); iVar13 = local_58; piVar6 = local_70; pbVar1 = (byte *)((long)auStack_78 - uVar15); *pbVar1 = *pbVar1 ^ 0x80; uVar15 = local_48; iVar14 = piVar6[2]; uVar8 = 0; uVar12 = local_48; iVar17 = local_54; if (iVar14 < (int)(bVar3 + uVar11 + iVar13)) { if (iVar13 <= iVar14) { uVar8 = 1; uVar12 = (ulong)(uint)(iVar14 - iVar13); iVar17 = 0; goto LAB_00128719; } __dest = (uint *)((long)__dest + local_68 + (long)((int)local_50 - iVar14) * 4); iVar13 = 0; uVar8 = 2; iVar17 = 0; uVar12 = 0; } else { LAB_00128719: iVar13 = (int)local_60; iVar14 = (int)local_50; } uVar10 = -local_40; *(byte *)(piVar6 + 3) = (byte)~local_39 >> 7; *piVar6 = iVar14 * 9 + iVar13; iVar5 = (int)uVar12; piVar6[1] = iVar5 * 9 + iVar17; if (iVar13 != 0) { uVar9 = *(uint *)(dig2bytes + (long)iVar13 * 4); local_48 = uVar12; switch(uVar9) { case 1: uVar11 = (uint)(char)(byte)*__dest; break; case 2: uVar11 = (int)(short)((ushort)(byte)*__dest << 8) | (uint)*(byte *)((long)__dest + 1); break; case 3: uVar11 = (uint)(byte)*__dest * 0x10000; if ((char)(byte)*__dest < '\0') { uVar11 = (uVar11 + CONCAT11(*(byte *)((long)__dest + 1),*(byte *)((long)__dest + 2))) - 0x1000000; } else { uVar11 = uVar11 | *(byte *)((long)__dest + 2) | (uint)*(byte *)((long)__dest + 1) << 8; } break; case 4: uVar11 = *__dest; uVar11 = uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18; break; default: goto switchD_00128777_default; } *puVar16 = uVar11 ^ uVar10; uVar7 = 8; if ((uint)(&DAT_00163c34)[iVar13] <= (uVar11 ^ uVar10)) goto LAB_00128926; __dest = (uint *)((long)__dest + (ulong)uVar9); if ((*(uint **)(piVar6 + 4) < puVar16) || (uVar11 != uVar10)) { puVar16 = puVar16 + 1; } else { *piVar6 = *piVar6 - iVar13; } } if (0 < iVar14) { puVar2 = __dest + iVar14; do { uVar9 = *__dest; uVar9 = uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8 | (uVar9 & 0xff00) << 8 | uVar9 << 0x18; uVar11 = uVar9 ^ uVar10; *puVar16 = uVar11; if (999999999 < uVar11) goto LAB_001288a2; if ((*(uint **)(piVar6 + 4) < puVar16) || (uVar9 != uVar10)) { puVar16 = puVar16 + 1; } else { *piVar6 = *piVar6 + -9; } __dest = __dest + 1; } while (__dest < puVar2); } if (0 < iVar5) { puVar2 = __dest + iVar5; do { uVar9 = *__dest; uVar9 = (uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8 | (uVar9 & 0xff00) << 8 | uVar9 << 0x18) ^ uVar10; *puVar16 = uVar9; if (999999999 < uVar9) goto LAB_001288a2; puVar16 = puVar16 + 1; __dest = __dest + 1; } while (__dest < puVar2); } if (iVar17 != 0) { uVar15 = local_48; switch(*(int4 *)(dig2bytes + (long)iVar17 * 4)) { case 1: uVar9 = (uint)(char)(byte)*__dest; break; case 2: uVar9 = (int)(short)((ushort)(byte)*__dest << 8) | (uint)*(byte *)((long)__dest + 1); break; case 3: uVar9 = (uint)(byte)*__dest * 0x10000; if ((char)(byte)*__dest < '\0') { uVar9 = (uVar9 + CONCAT11(*(byte *)((long)__dest + 1),*(byte *)((long)__dest + 2))) - 0x1000000; } else { uVar9 = uVar9 | *(byte *)((long)__dest + 2) | (uint)*(byte *)((long)__dest + 1) << 8; } break; case 4: uVar9 = *__dest; uVar9 = uVar9 >> 0x18 | (uVar9 & 0xff0000) >> 8 | (uVar9 & 0xff00) << 8 | uVar9 << 0x18; break; default: switchD_00128777_default: local_48 = uVar15; /* WARNING: Subroutine does not return */ *(code **)((long)&uStack_80 + lVar4) = decimal_bin_size; abort(); } uVar10 = (uVar9 ^ uVar10) * (&powers10)[9 - iVar17]; *puVar16 = uVar10; uVar7 = 8; if (999999999 < uVar10) goto LAB_00128926; } if ((*piVar6 != 0) || (uVar7 = uVar8, piVar6[1] != 0)) goto LAB_0012893e; goto LAB_00128926; LAB_001288a2: uVar7 = 8; LAB_00128926: uVar8 = uVar7; **(int4 **)(piVar6 + 4) = 0; piVar6[0] = 1; piVar6[1] = 0; *(int1 *)(piVar6 + 3) = 0; LAB_0012893e: if (*(long *)(in_FS_OFFSET + 0x28) != local_38) { /* WARNING: Subroutine does not return */ *(int8 *)((long)&uStack_80 + lVar4) = 0x12897b; __stack_chk_fail(); } return uVar8; }
39,869
gguf_kv::cast(gguf_type)
Yangxiaoz[P]GGML-Tutorial/ggml/src/gguf.cpp
void cast(const enum gguf_type new_type) { const size_t new_type_size = gguf_type_size(new_type); GGML_ASSERT(data.size() % new_type_size == 0); type = new_type; }
O3
cpp
gguf_kv::cast(gguf_type): pushq %rax movq 0x6ce46(%rip), %rcx # 0xaf360 testq %rcx, %rcx je 0x4254d leaq 0x6ce32(%rip), %rax # 0xaf358 xorl %edx, %edx cmpl %esi, 0x20(%rcx) setl %dl cmovgeq %rcx, %rax movq 0x10(%rcx,%rdx,8), %rcx testq %rcx, %rcx jne 0x42526 leaq 0x6ce15(%rip), %rcx # 0xaf358 cmpq %rcx, %rax je 0x4254d cmpl %esi, 0x20(%rax) jle 0x42566 xorl %ecx, %ecx movq 0x30(%rdi), %rax subq 0x28(%rdi), %rax xorl %edx, %edx divq %rcx testq %rdx, %rdx jne 0x4256c movl %esi, 0x24(%rdi) popq %rax retq movq 0x28(%rax), %rcx jmp 0x4254f leaq 0x1af6a(%rip), %rdi # 0x5d4dd leaq 0xa0eb(%rip), %rdx # 0x4c665 leaq 0x1b620(%rip), %rcx # 0x5dba1 movl $0xc4, %esi xorl %eax, %eax callq 0x17cd0 nop
_ZN7gguf_kv4castE9gguf_type: push rax mov rcx, cs:qword_AF360 test rcx, rcx jz short loc_4254D lea rax, unk_AF358 loc_42526: xor edx, edx cmp [rcx+20h], esi setl dl cmovge rax, rcx mov rcx, [rcx+rdx*8+10h] test rcx, rcx jnz short loc_42526 lea rcx, unk_AF358 cmp rax, rcx jz short loc_4254D cmp [rax+20h], esi jle short loc_42566 loc_4254D: xor ecx, ecx loc_4254F: mov rax, [rdi+30h] sub rax, [rdi+28h] xor edx, edx div rcx test rdx, rdx jnz short loc_4256C mov [rdi+24h], esi pop rax retn loc_42566: mov rcx, [rax+28h] jmp short loc_4254F loc_4256C: lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aDataSizeNewTyp; "data.size() % new_type_size == 0" mov esi, 0C4h xor eax, eax call _ggml_abort
void __spoils<rdx,rcx,r8,r9,r10,r11,xmm4,xmm5> gguf_kv::cast( long long a1, int a2, long long a3, long long a4, int a5, int a6) { long long v6; // rcx _QWORD *v7; // rax unsigned long long v8; // rcx v6 = qword_AF360; if ( !qword_AF360 ) goto LABEL_8; v7 = &unk_AF358; do { if ( *(_DWORD *)(v6 + 32) >= a2 ) v7 = (_QWORD *)v6; v6 = *(_QWORD *)(v6 + 8LL * (*(_DWORD *)(v6 + 32) < a2) + 16); } while ( v6 ); if ( v7 != (_QWORD *)&unk_AF358 && *((_DWORD *)v7 + 8) <= a2 ) v8 = v7[5]; else LABEL_8: v8 = 0LL; if ( (*(_QWORD *)(a1 + 48) - *(_QWORD *)(a1 + 40)) % v8 ) ggml_abort( (unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/gguf.cpp", 196, (unsigned int)"GGML_ASSERT(%s) failed", (unsigned int)"data.size() % new_type_size == 0", a5, a6); *(_DWORD *)(a1 + 36) = a2; }
cast: PUSH RAX MOV RCX,qword ptr [0x001af360] TEST RCX,RCX JZ 0x0014254d LEA RAX,[0x1af358] LAB_00142526: XOR EDX,EDX CMP dword ptr [RCX + 0x20],ESI SETL DL CMOVGE RAX,RCX MOV RCX,qword ptr [RCX + RDX*0x8 + 0x10] TEST RCX,RCX JNZ 0x00142526 LEA RCX,[0x1af358] CMP RAX,RCX JZ 0x0014254d CMP dword ptr [RAX + 0x20],ESI JLE 0x00142566 LAB_0014254d: XOR ECX,ECX LAB_0014254f: MOV RAX,qword ptr [RDI + 0x30] SUB RAX,qword ptr [RDI + 0x28] XOR EDX,EDX DIV RCX TEST RDX,RDX JNZ 0x0014256c MOV dword ptr [RDI + 0x24],ESI POP RAX RET LAB_00142566: MOV RCX,qword ptr [RAX + 0x28] JMP 0x0014254f LAB_0014256c: LEA RDI,[0x15d4dd] LEA RDX,[0x14c665] LEA RCX,[0x15dba1] MOV ESI,0xc4 XOR EAX,EAX CALL 0x00117cd0
/* gguf_kv::cast(gguf_type) */ int8 __thiscall gguf_kv::cast(gguf_kv *this,int param_2) { int8 in_RAX; long lVar1; long lVar2; ulong uVar3; if (GGUF_TYPE_SIZE._16_8_ != 0) { lVar1 = 0x1af358; lVar2 = GGUF_TYPE_SIZE._16_8_; do { if (param_2 <= *(int *)(lVar2 + 0x20)) { lVar1 = lVar2; } lVar2 = *(long *)(lVar2 + 0x10 + (ulong)(*(int *)(lVar2 + 0x20) < param_2) * 8); } while (lVar2 != 0); if ((lVar1 != 0x1af358) && (*(int *)(lVar1 + 0x20) <= param_2)) { uVar3 = *(ulong *)(lVar1 + 0x28); goto LAB_0014254f; } } uVar3 = 0; LAB_0014254f: if ((ulong)(*(long *)(this + 0x30) - *(long *)(this + 0x28)) % uVar3 == 0) { *(int *)(this + 0x24) = param_2; return in_RAX; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/gguf.cpp", 0xc4,"GGML_ASSERT(%s) failed","data.size() % new_type_size == 0"); }
39,870
copy_typelib
eloqsql/mysys/typelib.c
TYPELIB *copy_typelib(MEM_ROOT *root, const TYPELIB *from) { TYPELIB *to; uint i; if (!from) return NULL; if (!(to= (TYPELIB*) alloc_root(root, sizeof(TYPELIB)))) return NULL; if (!(to->type_names= (const char **) alloc_root(root, (sizeof(char *) + sizeof(int)) * (from->count + 1)))) return NULL; to->type_lengths= (unsigned int *)(to->type_names + from->count + 1); to->count= from->count; if (from->name) { if (!(to->name= strdup_root(root, from->name))) return NULL; } else to->name= NULL; for (i= 0; i < from->count; i++) { if (!(to->type_names[i]= strmake_root(root, from->type_names[i], from->type_lengths[i]))) return NULL; to->type_lengths[i]= from->type_lengths[i]; } to->type_names[to->count]= NULL; to->type_lengths[to->count]= 0; return to; }
O0
c
copy_typelib: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) cmpq $0x0, -0x18(%rbp) jne 0x3a8d4 movq $0x0, -0x8(%rbp) jmp 0x3aa51 movq -0x10(%rbp), %rdi movl $0x20, %esi callq 0x429c0 movq %rax, -0x20(%rbp) cmpq $0x0, %rax jne 0x3a8f9 movq $0x0, -0x8(%rbp) jmp 0x3aa51 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rax movl (%rax), %eax addl $0x1, %eax movl %eax, %eax imulq $0xc, %rax, %rsi callq 0x429c0 movq -0x20(%rbp), %rcx movq %rax, 0x10(%rcx) cmpq $0x0, %rax jne 0x3a92c movq $0x0, -0x8(%rbp) jmp 0x3aa51 movq -0x20(%rbp), %rax movq 0x10(%rax), %rcx movq -0x18(%rbp), %rax movl (%rax), %eax shlq $0x3, %rax addq %rax, %rcx addq $0x8, %rcx movq -0x20(%rbp), %rax movq %rcx, 0x18(%rax) movq -0x18(%rbp), %rax movl (%rax), %ecx movq -0x20(%rbp), %rax movl %ecx, (%rax) movq -0x18(%rbp), %rax cmpq $0x0, 0x8(%rax) je 0x3a992 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rax movq 0x8(%rax), %rsi callq 0x43230 movq -0x20(%rbp), %rcx movq %rax, 0x8(%rcx) cmpq $0x0, %rax jne 0x3a990 movq $0x0, -0x8(%rbp) jmp 0x3aa51 jmp 0x3a99e movq -0x20(%rbp), %rax movq $0x0, 0x8(%rax) movl $0x0, -0x24(%rbp) movl -0x24(%rbp), %eax movq -0x18(%rbp), %rcx cmpl (%rcx), %eax jae 0x3aa1e movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rax movq 0x10(%rax), %rax movl -0x24(%rbp), %ecx movq (%rax,%rcx,8), %rsi movq -0x18(%rbp), %rax movq 0x18(%rax), %rax movl -0x24(%rbp), %ecx movl (%rax,%rcx,4), %eax movl %eax, %edx callq 0x43270 movq -0x20(%rbp), %rcx movq 0x10(%rcx), %rcx movl -0x24(%rbp), %edx movq %rax, (%rcx,%rdx,8) cmpq $0x0, %rax jne 0x3a9f7 movq $0x0, -0x8(%rbp) jmp 0x3aa51 movq -0x18(%rbp), %rax movq 0x18(%rax), %rax movl -0x24(%rbp), %ecx movl (%rax,%rcx,4), %edx movq -0x20(%rbp), %rax movq 0x18(%rax), %rax movl -0x24(%rbp), %ecx movl %edx, (%rax,%rcx,4) movl -0x24(%rbp), %eax addl $0x1, %eax movl %eax, -0x24(%rbp) jmp 0x3a9a5 movq -0x20(%rbp), %rax movq 0x10(%rax), %rax movq -0x20(%rbp), %rcx movl (%rcx), %ecx movq $0x0, (%rax,%rcx,8) movq -0x20(%rbp), %rax movq 0x18(%rax), %rax movq -0x20(%rbp), %rcx movl (%rcx), %ecx movl $0x0, (%rax,%rcx,4) movq -0x20(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x30, %rsp popq %rbp retq nopl (%rax,%rax)
copy_typelib: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi cmp [rbp+var_18], 0 jnz short loc_3A8D4 mov [rbp+var_8], 0 jmp loc_3AA51 loc_3A8D4: mov rdi, [rbp+var_10] mov esi, 20h ; ' ' call alloc_root mov [rbp+var_20], rax cmp rax, 0 jnz short loc_3A8F9 mov [rbp+var_8], 0 jmp loc_3AA51 loc_3A8F9: mov rdi, [rbp+var_10] mov rax, [rbp+var_18] mov eax, [rax] add eax, 1 mov eax, eax imul rsi, rax, 0Ch call alloc_root mov rcx, [rbp+var_20] mov [rcx+10h], rax cmp rax, 0 jnz short loc_3A92C mov [rbp+var_8], 0 jmp loc_3AA51 loc_3A92C: mov rax, [rbp+var_20] mov rcx, [rax+10h] mov rax, [rbp+var_18] mov eax, [rax] shl rax, 3 add rcx, rax add rcx, 8 mov rax, [rbp+var_20] mov [rax+18h], rcx mov rax, [rbp+var_18] mov ecx, [rax] mov rax, [rbp+var_20] mov [rax], ecx mov rax, [rbp+var_18] cmp qword ptr [rax+8], 0 jz short loc_3A992 mov rdi, [rbp+var_10] mov rax, [rbp+var_18] mov rsi, [rax+8] call strdup_root mov rcx, [rbp+var_20] mov [rcx+8], rax cmp rax, 0 jnz short loc_3A990 mov [rbp+var_8], 0 jmp loc_3AA51 loc_3A990: jmp short loc_3A99E loc_3A992: mov rax, [rbp+var_20] mov qword ptr [rax+8], 0 loc_3A99E: mov [rbp+var_24], 0 loc_3A9A5: mov eax, [rbp+var_24] mov rcx, [rbp+var_18] cmp eax, [rcx] jnb short loc_3AA1E mov rdi, [rbp+var_10] mov rax, [rbp+var_18] mov rax, [rax+10h] mov ecx, [rbp+var_24] mov rsi, [rax+rcx*8] mov rax, [rbp+var_18] mov rax, [rax+18h] mov ecx, [rbp+var_24] mov eax, [rax+rcx*4] mov edx, eax call strmake_root mov rcx, [rbp+var_20] mov rcx, [rcx+10h] mov edx, [rbp+var_24] mov [rcx+rdx*8], rax cmp rax, 0 jnz short loc_3A9F7 mov [rbp+var_8], 0 jmp short loc_3AA51 loc_3A9F7: mov rax, [rbp+var_18] mov rax, [rax+18h] mov ecx, [rbp+var_24] mov edx, [rax+rcx*4] mov rax, [rbp+var_20] mov rax, [rax+18h] mov ecx, [rbp+var_24] mov [rax+rcx*4], edx mov eax, [rbp+var_24] add eax, 1 mov [rbp+var_24], eax jmp short loc_3A9A5 loc_3AA1E: mov rax, [rbp+var_20] mov rax, [rax+10h] mov rcx, [rbp+var_20] mov ecx, [rcx] mov qword ptr [rax+rcx*8], 0 mov rax, [rbp+var_20] mov rax, [rax+18h] mov rcx, [rbp+var_20] mov ecx, [rcx] mov dword ptr [rax+rcx*4], 0 mov rax, [rbp+var_20] mov [rbp+var_8], rax loc_3AA51: mov rax, [rbp+var_8] add rsp, 30h pop rbp retn
unsigned int * copy_typelib(long long a1, unsigned int *a2) { long long v2; // rax long long v3; // rax long long v4; // rax unsigned int i; // [rsp+Ch] [rbp-24h] unsigned int *v7; // [rsp+10h] [rbp-20h] if ( !a2 ) return 0LL; v7 = (unsigned int *)alloc_root(a1, 32LL); if ( !v7 ) return 0LL; v2 = alloc_root(a1, 12LL * (*a2 + 1)); *((_QWORD *)v7 + 2) = v2; if ( !v2 ) return 0LL; *((_QWORD *)v7 + 3) = 8LL * *a2 + *((_QWORD *)v7 + 2) + 8; *v7 = *a2; if ( *((_QWORD *)a2 + 1) ) { v3 = strdup_root(a1, *((_QWORD *)a2 + 1)); *((_QWORD *)v7 + 1) = v3; if ( !v3 ) return 0LL; } else { *((_QWORD *)v7 + 1) = 0LL; } for ( i = 0; i < *a2; ++i ) { v4 = strmake_root(a1, *(_QWORD *)(*((_QWORD *)a2 + 2) + 8LL * i), *(unsigned int *)(*((_QWORD *)a2 + 3) + 4LL * i)); *(_QWORD *)(*((_QWORD *)v7 + 2) + 8LL * i) = v4; if ( !v4 ) return 0LL; *(_DWORD *)(*((_QWORD *)v7 + 3) + 4LL * i) = *(_DWORD *)(*((_QWORD *)a2 + 3) + 4LL * i); } *(_QWORD *)(*((_QWORD *)v7 + 2) + 8LL * *v7) = 0LL; *(_DWORD *)(*((_QWORD *)v7 + 3) + 4LL * *v7) = 0; return v7; }
copy_typelib: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI CMP qword ptr [RBP + -0x18],0x0 JNZ 0x0013a8d4 MOV qword ptr [RBP + -0x8],0x0 JMP 0x0013aa51 LAB_0013a8d4: MOV RDI,qword ptr [RBP + -0x10] MOV ESI,0x20 CALL 0x001429c0 MOV qword ptr [RBP + -0x20],RAX CMP RAX,0x0 JNZ 0x0013a8f9 MOV qword ptr [RBP + -0x8],0x0 JMP 0x0013aa51 LAB_0013a8f9: MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX] ADD EAX,0x1 MOV EAX,EAX IMUL RSI,RAX,0xc CALL 0x001429c0 MOV RCX,qword ptr [RBP + -0x20] MOV qword ptr [RCX + 0x10],RAX CMP RAX,0x0 JNZ 0x0013a92c MOV qword ptr [RBP + -0x8],0x0 JMP 0x0013aa51 LAB_0013a92c: MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RAX + 0x10] MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX] SHL RAX,0x3 ADD RCX,RAX ADD RCX,0x8 MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x18],RCX MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RAX] MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x18] CMP qword ptr [RAX + 0x8],0x0 JZ 0x0013a992 MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RAX + 0x8] CALL 0x00143230 MOV RCX,qword ptr [RBP + -0x20] MOV qword ptr [RCX + 0x8],RAX CMP RAX,0x0 JNZ 0x0013a990 MOV qword ptr [RBP + -0x8],0x0 JMP 0x0013aa51 LAB_0013a990: JMP 0x0013a99e LAB_0013a992: MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x8],0x0 LAB_0013a99e: MOV dword ptr [RBP + -0x24],0x0 LAB_0013a9a5: MOV EAX,dword ptr [RBP + -0x24] MOV RCX,qword ptr [RBP + -0x18] CMP EAX,dword ptr [RCX] JNC 0x0013aa1e MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x10] MOV ECX,dword ptr [RBP + -0x24] MOV RSI,qword ptr [RAX + RCX*0x8] MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x18] MOV ECX,dword ptr [RBP + -0x24] MOV EAX,dword ptr [RAX + RCX*0x4] MOV EDX,EAX CALL 0x00143270 MOV RCX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RCX + 0x10] MOV EDX,dword ptr [RBP + -0x24] MOV qword ptr [RCX + RDX*0x8],RAX CMP RAX,0x0 JNZ 0x0013a9f7 MOV qword ptr [RBP + -0x8],0x0 JMP 0x0013aa51 LAB_0013a9f7: MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x18] MOV ECX,dword ptr [RBP + -0x24] MOV EDX,dword ptr [RAX + RCX*0x4] MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x18] MOV ECX,dword ptr [RBP + -0x24] MOV dword ptr [RAX + RCX*0x4],EDX MOV EAX,dword ptr [RBP + -0x24] ADD EAX,0x1 MOV dword ptr [RBP + -0x24],EAX JMP 0x0013a9a5 LAB_0013aa1e: MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x10] MOV RCX,qword ptr [RBP + -0x20] MOV ECX,dword ptr [RCX] MOV qword ptr [RAX + RCX*0x8],0x0 MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x18] MOV RCX,qword ptr [RBP + -0x20] MOV ECX,dword ptr [RCX] MOV dword ptr [RAX + RCX*0x4],0x0 MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x8],RAX LAB_0013aa51: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x30 POP RBP RET
uint * copy_typelib(int8 param_1,uint *param_2) { long lVar1; uint local_2c; uint *local_10; if (param_2 == (uint *)0x0) { local_10 = (uint *)0x0; } else { local_10 = (uint *)alloc_root(param_1,0x20); if (local_10 == (uint *)0x0) { local_10 = (uint *)0x0; } else { lVar1 = alloc_root(param_1,(ulong)(*param_2 + 1) * 0xc); *(long *)(local_10 + 4) = lVar1; if (lVar1 == 0) { local_10 = (uint *)0x0; } else { *(ulong *)(local_10 + 6) = *(long *)(local_10 + 4) + (ulong)*param_2 * 8 + 8; *local_10 = *param_2; if (*(long *)(param_2 + 2) == 0) { local_10[2] = 0; local_10[3] = 0; } else { lVar1 = strdup_root(param_1,*(int8 *)(param_2 + 2)); *(long *)(local_10 + 2) = lVar1; if (lVar1 == 0) { return (uint *)0x0; } } for (local_2c = 0; local_2c < *param_2; local_2c = local_2c + 1) { lVar1 = strmake_root(param_1,*(int8 *)(*(long *)(param_2 + 4) + (ulong)local_2c * 8) ,*(int4 *)(*(long *)(param_2 + 6) + (ulong)local_2c * 4)); *(long *)(*(long *)(local_10 + 4) + (ulong)local_2c * 8) = lVar1; if (lVar1 == 0) { return (uint *)0x0; } *(int4 *)(*(long *)(local_10 + 6) + (ulong)local_2c * 4) = *(int4 *)(*(long *)(param_2 + 6) + (ulong)local_2c * 4); } *(int8 *)(*(long *)(local_10 + 4) + (ulong)*local_10 * 8) = 0; *(int4 *)(*(long *)(local_10 + 6) + (ulong)*local_10 * 4) = 0; } } } return local_10; }
39,871
copy_typelib
eloqsql/mysys/typelib.c
TYPELIB *copy_typelib(MEM_ROOT *root, const TYPELIB *from) { TYPELIB *to; uint i; if (!from) return NULL; if (!(to= (TYPELIB*) alloc_root(root, sizeof(TYPELIB)))) return NULL; if (!(to->type_names= (const char **) alloc_root(root, (sizeof(char *) + sizeof(int)) * (from->count + 1)))) return NULL; to->type_lengths= (unsigned int *)(to->type_names + from->count + 1); to->count= from->count; if (from->name) { if (!(to->name= strdup_root(root, from->name))) return NULL; } else to->name= NULL; for (i= 0; i < from->count; i++) { if (!(to->type_names[i]= strmake_root(root, from->type_names[i], from->type_lengths[i]))) return NULL; to->type_lengths[i]= from->type_lengths[i]; } to->type_names[to->count]= NULL; to->type_lengths[to->count]= 0; return to; }
O3
c
copy_typelib: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx testq %rsi, %rsi je 0x325f7 movq %rsi, %r14 movq %rdi, %r15 movl $0x20, %esi callq 0x3613f testq %rax, %rax je 0x325f7 movq %rax, %rbx movl (%r14), %eax incl %eax shlq $0x2, %rax leaq (%rax,%rax,2), %rsi movq %r15, %rdi callq 0x3613f movq %rax, 0x10(%rbx) testq %rax, %rax je 0x325f7 movl (%r14), %ecx leaq (%rax,%rcx,8), %rax addq $0x8, %rax movq %rax, 0x18(%rbx) movl (%r14), %eax movl %eax, (%rbx) movq 0x8(%r14), %rsi testq %rsi, %rsi je 0x32605 movq %r15, %rdi callq 0x364da movq %rax, 0x8(%rbx) testq %rax, %rax jne 0x3260d xorl %ebx, %ebx movq %rbx, %rax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq $0x0, 0x8(%rbx) cmpl $0x0, (%r14) je 0x32656 xorl %r12d, %r12d movq 0x10(%r14), %rax movq 0x18(%r14), %rcx movq (%rax,%r12,8), %rsi movl (%rcx,%r12,4), %edx movq %r15, %rdi callq 0x36501 movq 0x10(%rbx), %rcx movq %rax, (%rcx,%r12,8) testq %rax, %rax je 0x325f7 movq 0x18(%r14), %rax movl (%rax,%r12,4), %eax movq 0x18(%rbx), %rcx movl %eax, (%rcx,%r12,4) incq %r12 movl (%r14), %eax cmpq %rax, %r12 jb 0x32616 movq 0x10(%rbx), %rax movl (%rbx), %ecx movq $0x0, (%rax,%rcx,8) movq 0x18(%rbx), %rax movl (%rbx), %ecx movl $0x0, (%rax,%rcx,4) jmp 0x325f9
copy_typelib: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx test rsi, rsi jz short loc_325F7 mov r14, rsi mov r15, rdi mov esi, 20h ; ' ' call alloc_root test rax, rax jz short loc_325F7 mov rbx, rax mov eax, [r14] inc eax shl rax, 2 lea rsi, [rax+rax*2] mov rdi, r15 call alloc_root mov [rbx+10h], rax test rax, rax jz short loc_325F7 mov ecx, [r14] lea rax, [rax+rcx*8] add rax, 8 mov [rbx+18h], rax mov eax, [r14] mov [rbx], eax mov rsi, [r14+8] test rsi, rsi jz short loc_32605 mov rdi, r15 call strdup_root mov [rbx+8], rax test rax, rax jnz short loc_3260D loc_325F7: xor ebx, ebx loc_325F9: mov rax, rbx pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_32605: mov qword ptr [rbx+8], 0 loc_3260D: cmp dword ptr [r14], 0 jz short loc_32656 xor r12d, r12d loc_32616: mov rax, [r14+10h] mov rcx, [r14+18h] mov rsi, [rax+r12*8] mov edx, [rcx+r12*4] mov rdi, r15 call strmake_root mov rcx, [rbx+10h] mov [rcx+r12*8], rax test rax, rax jz short loc_325F7 mov rax, [r14+18h] mov eax, [rax+r12*4] mov rcx, [rbx+18h] mov [rcx+r12*4], eax inc r12 mov eax, [r14] cmp r12, rax jb short loc_32616 loc_32656: mov rax, [rbx+10h] mov ecx, [rbx] mov qword ptr [rax+rcx*8], 0 mov rax, [rbx+18h] mov ecx, [rbx] mov dword ptr [rax+rcx*4], 0 jmp short loc_325F9
unsigned int * copy_typelib(long long a1, unsigned int *a2) { long long v3; // rax unsigned int *v4; // rbx long long v5; // rax long long v6; // rsi long long v7; // rax long long v9; // r12 long long v10; // rax if ( !a2 ) return 0LL; v3 = alloc_root(a1, 32LL); if ( !v3 ) return 0LL; v4 = (unsigned int *)v3; v5 = alloc_root(a1, 12LL * (*a2 + 1)); *((_QWORD *)v4 + 2) = v5; if ( !v5 ) return 0LL; *((_QWORD *)v4 + 3) = v5 + 8LL * *a2 + 8; *v4 = *a2; v6 = *((_QWORD *)a2 + 1); if ( v6 ) { v7 = strdup_root(a1, v6); *((_QWORD *)v4 + 1) = v7; if ( !v7 ) return 0LL; } else { *((_QWORD *)v4 + 1) = 0LL; } if ( !*a2 ) { LABEL_13: *(_QWORD *)(*((_QWORD *)v4 + 2) + 8LL * *v4) = 0LL; *(_DWORD *)(*((_QWORD *)v4 + 3) + 4LL * *v4) = 0; return v4; } v9 = 0LL; while ( 1 ) { v10 = strmake_root(a1, *(_QWORD *)(*((_QWORD *)a2 + 2) + 8 * v9), *(unsigned int *)(*((_QWORD *)a2 + 3) + 4 * v9)); *(_QWORD *)(*((_QWORD *)v4 + 2) + 8 * v9) = v10; if ( !v10 ) return 0LL; *(_DWORD *)(*((_QWORD *)v4 + 3) + 4 * v9) = *(_DWORD *)(*((_QWORD *)a2 + 3) + 4 * v9); if ( ++v9 >= (unsigned long long)*a2 ) goto LABEL_13; } }
copy_typelib: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX TEST RSI,RSI JZ 0x001325f7 MOV R14,RSI MOV R15,RDI MOV ESI,0x20 CALL 0x0013613f TEST RAX,RAX JZ 0x001325f7 MOV RBX,RAX MOV EAX,dword ptr [R14] INC EAX SHL RAX,0x2 LEA RSI,[RAX + RAX*0x2] MOV RDI,R15 CALL 0x0013613f MOV qword ptr [RBX + 0x10],RAX TEST RAX,RAX JZ 0x001325f7 MOV ECX,dword ptr [R14] LEA RAX,[RAX + RCX*0x8] ADD RAX,0x8 MOV qword ptr [RBX + 0x18],RAX MOV EAX,dword ptr [R14] MOV dword ptr [RBX],EAX MOV RSI,qword ptr [R14 + 0x8] TEST RSI,RSI JZ 0x00132605 MOV RDI,R15 CALL 0x001364da MOV qword ptr [RBX + 0x8],RAX TEST RAX,RAX JNZ 0x0013260d LAB_001325f7: XOR EBX,EBX LAB_001325f9: MOV RAX,RBX POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_00132605: MOV qword ptr [RBX + 0x8],0x0 LAB_0013260d: CMP dword ptr [R14],0x0 JZ 0x00132656 XOR R12D,R12D LAB_00132616: MOV RAX,qword ptr [R14 + 0x10] MOV RCX,qword ptr [R14 + 0x18] MOV RSI,qword ptr [RAX + R12*0x8] MOV EDX,dword ptr [RCX + R12*0x4] MOV RDI,R15 CALL 0x00136501 MOV RCX,qword ptr [RBX + 0x10] MOV qword ptr [RCX + R12*0x8],RAX TEST RAX,RAX JZ 0x001325f7 MOV RAX,qword ptr [R14 + 0x18] MOV EAX,dword ptr [RAX + R12*0x4] MOV RCX,qword ptr [RBX + 0x18] MOV dword ptr [RCX + R12*0x4],EAX INC R12 MOV EAX,dword ptr [R14] CMP R12,RAX JC 0x00132616 LAB_00132656: MOV RAX,qword ptr [RBX + 0x10] MOV ECX,dword ptr [RBX] MOV qword ptr [RAX + RCX*0x8],0x0 MOV RAX,qword ptr [RBX + 0x18] MOV ECX,dword ptr [RBX] MOV dword ptr [RAX + RCX*0x4],0x0 JMP 0x001325f9
uint * copy_typelib(int8 param_1,uint *param_2) { uint *puVar1; long lVar2; ulong uVar3; if ((param_2 != (uint *)0x0) && (puVar1 = (uint *)alloc_root(param_1,0x20), puVar1 != (uint *)0x0) ) { lVar2 = alloc_root(param_1,(ulong)(*param_2 + 1) * 0xc); *(long *)(puVar1 + 4) = lVar2; if (lVar2 != 0) { *(ulong *)(puVar1 + 6) = lVar2 + (ulong)*param_2 * 8 + 8; *puVar1 = *param_2; if (*(long *)(param_2 + 2) == 0) { puVar1[2] = 0; puVar1[3] = 0; } else { lVar2 = strdup_root(param_1); *(long *)(puVar1 + 2) = lVar2; if (lVar2 == 0) { return (uint *)0x0; } } if (*param_2 != 0) { uVar3 = 0; do { lVar2 = strmake_root(param_1,*(int8 *)(*(long *)(param_2 + 4) + uVar3 * 8), *(int4 *)(*(long *)(param_2 + 6) + uVar3 * 4)); *(long *)(*(long *)(puVar1 + 4) + uVar3 * 8) = lVar2; if (lVar2 == 0) { return (uint *)0x0; } *(int4 *)(*(long *)(puVar1 + 6) + uVar3 * 4) = *(int4 *)(*(long *)(param_2 + 6) + uVar3 * 4); uVar3 = uVar3 + 1; } while (uVar3 < *param_2); } *(int8 *)(*(long *)(puVar1 + 4) + (ulong)*puVar1 * 8) = 0; *(int4 *)(*(long *)(puVar1 + 6) + (ulong)*puVar1 * 4) = 0; return puVar1; } } return (uint *)0x0; }
39,872
my_8bit_collation_flags_from_data
eloqsql/strings/ctype-simple.c
uint my_8bit_collation_flags_from_data(CHARSET_INFO *cs) { uint flags= 0; if (cs->sort_order && cs->sort_order['A'] < cs->sort_order['a'] && cs->sort_order['a'] < cs->sort_order['B']) flags|= MY_CS_CSSORT; return flags; }
O0
c
my_8bit_collation_flags_from_data: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movl $0x0, -0xc(%rbp) movq -0x8(%rbp), %rax cmpq $0x0, 0x58(%rax) je 0x5378d movq -0x8(%rbp), %rax movq 0x58(%rax), %rax movzbl 0x41(%rax), %eax movq -0x8(%rbp), %rcx movq 0x58(%rcx), %rcx movzbl 0x61(%rcx), %ecx cmpl %ecx, %eax jge 0x5378d movq -0x8(%rbp), %rax movq 0x58(%rax), %rax movzbl 0x61(%rax), %eax movq -0x8(%rbp), %rcx movq 0x58(%rcx), %rcx movzbl 0x42(%rcx), %ecx cmpl %ecx, %eax jge 0x5378d movl -0xc(%rbp), %eax orl $0x400, %eax # imm = 0x400 movl %eax, -0xc(%rbp) movl -0xc(%rbp), %eax popq %rbp retq nopw %cs:(%rax,%rax)
my_8bit_collation_flags_from_data: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_C], 0 mov rax, [rbp+var_8] cmp qword ptr [rax+58h], 0 jz short loc_5378D mov rax, [rbp+var_8] mov rax, [rax+58h] movzx eax, byte ptr [rax+41h] mov rcx, [rbp+var_8] mov rcx, [rcx+58h] movzx ecx, byte ptr [rcx+61h] cmp eax, ecx jge short loc_5378D mov rax, [rbp+var_8] mov rax, [rax+58h] movzx eax, byte ptr [rax+61h] mov rcx, [rbp+var_8] mov rcx, [rcx+58h] movzx ecx, byte ptr [rcx+42h] cmp eax, ecx jge short loc_5378D mov eax, [rbp+var_C] or eax, 400h mov [rbp+var_C], eax loc_5378D: mov eax, [rbp+var_C] pop rbp retn
long long my_8bit_collation_flags_from_data(long long a1) { unsigned int v2; // [rsp+0h] [rbp-Ch] v2 = 0; if ( *(_QWORD *)(a1 + 88) && *(unsigned __int8 *)(*(_QWORD *)(a1 + 88) + 65LL) < (int)*(unsigned __int8 *)(*(_QWORD *)(a1 + 88) + 97LL) && *(unsigned __int8 *)(*(_QWORD *)(a1 + 88) + 97LL) < (int)*(unsigned __int8 *)(*(_QWORD *)(a1 + 88) + 66LL) ) { return 1024; } return v2; }
my_8bit_collation_flags_from_data: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],0x0 MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x58],0x0 JZ 0x0015378d MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x58] MOVZX EAX,byte ptr [RAX + 0x41] MOV RCX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RCX + 0x58] MOVZX ECX,byte ptr [RCX + 0x61] CMP EAX,ECX JGE 0x0015378d MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x58] MOVZX EAX,byte ptr [RAX + 0x61] MOV RCX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RCX + 0x58] MOVZX ECX,byte ptr [RCX + 0x42] CMP EAX,ECX JGE 0x0015378d MOV EAX,dword ptr [RBP + -0xc] OR EAX,0x400 MOV dword ptr [RBP + -0xc],EAX LAB_0015378d: MOV EAX,dword ptr [RBP + -0xc] POP RBP RET
int4 my_8bit_collation_flags_from_data(long param_1) { int4 local_14; local_14 = 0; if (((*(long *)(param_1 + 0x58) != 0) && (*(byte *)(*(long *)(param_1 + 0x58) + 0x41) < *(byte *)(*(long *)(param_1 + 0x58) + 0x61))) && (*(byte *)(*(long *)(param_1 + 0x58) + 0x61) < *(byte *)(*(long *)(param_1 + 0x58) + 0x42))) { local_14 = 0x400; } return local_14; }
39,873
heap_write
eloqsql/storage/heap/hp_write.c
int heap_write(HP_INFO *info, const uchar *record) { HP_KEYDEF *keydef, *end; uchar *pos; HP_SHARE *share=info->s; DBUG_ENTER("heap_write"); #ifndef DBUG_OFF if (info->mode & O_RDONLY) { DBUG_RETURN(my_errno=EACCES); } #endif if (!(pos=next_free_record_pos(share))) DBUG_RETURN(my_errno); share->changed=1; for (keydef = share->keydef, end = keydef + share->keys; keydef < end; keydef++) { if ((*keydef->write_key)(info, keydef, record, pos)) goto err; } memcpy(pos,record,(size_t) share->reclength); pos[share->visible]= 1; /* Mark record as not deleted */ if (++share->records == share->blength) share->blength+= share->blength; info->s->key_version++; info->update|=HA_STATE_AKTIV; #if !defined(DBUG_OFF) && defined(EXTRA_HEAP_DEBUG) DBUG_EXECUTE("check_heap",heap_check_heap(info, 0);); #endif if (share->auto_key) heap_update_auto_increment(info, record); DBUG_RETURN(0); err: if (my_errno == HA_ERR_FOUND_DUPP_KEY) DBUG_PRINT("info",("Duplicate key: %d", (int) (keydef - share->keydef))); info->errkey= (int) (keydef - share->keydef); /* We don't need to delete non-inserted key from rb-tree. Also, if we got ENOMEM, the key wasn't inserted, so don't try to delete it either. Otherwise for HASH index on HA_ERR_FOUND_DUPP_KEY the key was inserted and we have to delete it. */ if (keydef->algorithm == HA_KEY_ALG_BTREE || my_errno == ENOMEM) { keydef--; } while (keydef >= share->keydef) { if ((*keydef->delete_key)(info, keydef, record, pos, 0)) break; keydef--; } share->deleted++; *((uchar**) pos)=share->del_link; share->del_link=pos; pos[share->visible]= 0; /* Record deleted */ DBUG_RETURN(my_errno); }
O3
c
heap_write: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rsi, -0x38(%rbp) movq %rdi, %r14 movq (%rdi), %rbx movq 0x110(%rbx), %r12 testq %r12, %r12 je 0x28308 movq %r14, -0x30(%rbp) movq (%r12), %rax movq %rax, 0x110(%rbx) decq 0xe0(%rbx) movl $0x1, 0xfc(%rbx) movq %rbx, -0x40(%rbp) movl 0x100(%rbx), %eax testq %rax, %rax je 0x28294 movq -0x40(%rbp), %rcx movq 0x98(%rcx), %rbx imulq $0x368, %rax, %r15 # imm = 0x368 addq %rbx, %r15 movl $0x368, %r14d # imm = 0x368 movq %rbx, %r13 movq -0x30(%rbp), %rdi movq %r13, %rsi movq -0x38(%rbp), %rdx movq %r12, %rcx callq *0x350(%r13) testl %eax, %eax jne 0x2837f addq %r14, %r13 addq %r14, %rbx cmpq %r15, %r13 jb 0x2826c movq -0x40(%rbp), %rbx movl 0xf4(%rbx), %edx movq %r12, %rdi movq -0x38(%rbp), %rsi callq 0x24210 movl 0xf8(%rbx), %eax movb $0x1, (%r12,%rax) movq 0xd0(%rbx), %rax incq %rax movq %rax, 0xd0(%rbx) cmpq 0xd8(%rbx), %rax jne 0x282d9 addq %rax, %rax movq %rax, 0xd8(%rbx) movq -0x30(%rbp), %rdi movq (%rdi), %rax incl 0xec(%rax) orb $0x2, 0x38(%rdi) xorl %r12d, %r12d cmpl $0x0, 0x240(%rbx) je 0x2842e movq -0x38(%rbp), %rsi callq 0x27b2c jmp 0x2842e movq 0xc8(%rbx), %rcx movq 0xd0(%rbx), %rax cmpq %rcx, %rax seta %dl testq %rcx, %rcx setne %cl testb %cl, %dl jne 0x2836f movq 0xa8(%rbx), %rcx addq 0xa0(%rbx), %rcx cmpq 0xb0(%rbx), %rcx jae 0x2836f xorl %edx, %edx divq 0x88(%rbx) movq %rdx, %r13 testl %r13d, %r13d je 0x283b3 movq 0x18(%rbx), %r12 testq %r12, %r12 je 0x28426 movq %r14, -0x30(%rbp) imull 0x84(%rbx), %r13d addq %r13, %r12 jmp 0x28235 callq 0x2a59a movl $0x87, (%rax) jmp 0x28426 callq 0x2a59a movq -0x40(%rbp), %r14 subq 0x98(%r14), %rbx shrq $0x3, %rbx imull $0xda6c0965, %ebx, %eax # imm = 0xDA6C0965 movq -0x30(%rbp), %rbx movl %eax, 0x2c(%rbx) cmpb $0x1, 0xc(%r13) je 0x283d6 callq 0x2a59a cmpl $0xc, (%rax) je 0x283d6 jmp 0x283dd leaq -0x48(%rbp), %rdx movq %rbx, %rdi movq %rbx, %rsi callq 0x25757 testl %eax, %eax jne 0x28426 movq -0x48(%rbp), %rax addq %rax, 0xa0(%rbx) jmp 0x2834e addq $-0x368, %r13 # imm = 0xFC98 cmpq 0x98(%r14), %r13 jb 0x28401 movq %rbx, %rdi movq %r13, %rsi movq -0x38(%rbp), %rdx movq %r12, %rcx xorl %r8d, %r8d callq *0x358(%r13) testl %eax, %eax je 0x283d6 incq 0xe0(%r14) movq 0x110(%r14), %rax movq %rax, (%r12) movq %r12, 0x110(%r14) movl 0xf8(%r14), %eax movb $0x0, (%r12,%rax) callq 0x2a59a movl (%rax), %r12d movl %r12d, %eax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
heap_write: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov [rbp+var_38], rsi mov r14, rdi mov rbx, [rdi] mov r12, [rbx+110h] test r12, r12 jz loc_28308 mov [rbp+var_30], r14 mov rax, [r12] mov [rbx+110h], rax dec qword ptr [rbx+0E0h] loc_28235: mov dword ptr [rbx+0FCh], 1 mov [rbp+var_40], rbx mov eax, [rbx+100h] test rax, rax jz short loc_28294 mov rcx, [rbp+var_40] mov rbx, [rcx+98h] imul r15, rax, 368h add r15, rbx mov r14d, 368h mov r13, rbx loc_2826C: mov rdi, [rbp+var_30] mov rsi, r13 mov rdx, [rbp+var_38] mov rcx, r12 call qword ptr [r13+350h] test eax, eax jnz loc_2837F add r13, r14 add rbx, r14 cmp r13, r15 jb short loc_2826C loc_28294: mov rbx, [rbp+var_40] mov edx, [rbx+0F4h] mov rdi, r12 mov rsi, [rbp+var_38] call _memcpy mov eax, [rbx+0F8h] mov byte ptr [r12+rax], 1 mov rax, [rbx+0D0h] inc rax mov [rbx+0D0h], rax cmp rax, [rbx+0D8h] jnz short loc_282D9 add rax, rax mov [rbx+0D8h], rax loc_282D9: mov rdi, [rbp+var_30] mov rax, [rdi] inc dword ptr [rax+0ECh] or byte ptr [rdi+38h], 2 xor r12d, r12d cmp dword ptr [rbx+240h], 0 jz loc_2842E mov rsi, [rbp+var_38] call heap_update_auto_increment jmp loc_2842E loc_28308: mov rcx, [rbx+0C8h] mov rax, [rbx+0D0h] cmp rax, rcx setnbe dl test rcx, rcx setnz cl test dl, cl jnz short loc_2836F mov rcx, [rbx+0A8h] add rcx, [rbx+0A0h] cmp rcx, [rbx+0B0h] jnb short loc_2836F xor edx, edx div qword ptr [rbx+88h] mov r13, rdx test r13d, r13d jz short loc_283B3 loc_2834E: mov r12, [rbx+18h] test r12, r12 jz loc_28426 mov [rbp+var_30], r14 imul r13d, [rbx+84h] add r12, r13 jmp loc_28235 loc_2836F: call _my_thread_var mov dword ptr [rax], 87h jmp loc_28426 loc_2837F: call _my_thread_var mov r14, [rbp+var_40] sub rbx, [r14+98h] shr rbx, 3 imul eax, ebx, 0DA6C0965h mov rbx, [rbp+var_30] mov [rbx+2Ch], eax cmp byte ptr [r13+0Ch], 1 jz short loc_283D6 call _my_thread_var cmp dword ptr [rax], 0Ch jz short loc_283D6 jmp short loc_283DD loc_283B3: lea rdx, [rbp+var_48] mov rdi, rbx mov rsi, rbx call hp_get_new_block test eax, eax jnz short loc_28426 mov rax, [rbp+var_48] add [rbx+0A0h], rax jmp loc_2834E loc_283D6: add r13, 0FFFFFFFFFFFFFC98h loc_283DD: cmp r13, [r14+98h] jb short loc_28401 mov rdi, rbx mov rsi, r13 mov rdx, [rbp+var_38] mov rcx, r12 xor r8d, r8d call qword ptr [r13+358h] test eax, eax jz short loc_283D6 loc_28401: inc qword ptr [r14+0E0h] mov rax, [r14+110h] mov [r12], rax mov [r14+110h], r12 mov eax, [r14+0F8h] mov byte ptr [r12+rax], 0 loc_28426: call _my_thread_var mov r12d, [rax] loc_2842E: mov eax, r12d add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long heap_write(long long a1, long long a2) { _DWORD *v2; // r14 long long v3; // rbx _QWORD *v4; // r12 long long v5; // rax unsigned long long v6; // rbx unsigned long long v7; // r15 unsigned long long v8; // r13 long long v9; // rbx long long v10; // rax _DWORD *v11; // rdi unsigned int v12; // r12d long long v13; // r13 long long v14; // r12 long long v15; // r14 int v16; // eax _DWORD *v17; // rbx long long v19; // [rsp+8h] [rbp-48h] BYREF long long v20; // [rsp+10h] [rbp-40h] long long v21; // [rsp+18h] [rbp-38h] _DWORD *v22; // [rsp+20h] [rbp-30h] v21 = a2; v2 = (_DWORD *)a1; v3 = *(_QWORD *)a1; v4 = *(_QWORD **)(*(_QWORD *)a1 + 272LL); if ( v4 ) { v22 = (_DWORD *)a1; *(_QWORD *)(v3 + 272) = *v4; --*(_QWORD *)(v3 + 224); goto LABEL_3; } if ( *(_QWORD *)(v3 + 200) != 0LL && *(_QWORD *)(v3 + 208) > *(_QWORD *)(v3 + 200) || *(_QWORD *)(v3 + 160) + *(_QWORD *)(v3 + 168) >= *(_QWORD *)(v3 + 176) ) { *(_DWORD *)my_thread_var(a1, a2) = 135; return *(unsigned int *)my_thread_var(a1, a2); } v13 = *(_QWORD *)(v3 + 208) % *(_QWORD *)(v3 + 136); if ( !(_DWORD)v13 ) { a1 = *(_QWORD *)a1; a2 = v3; if ( (unsigned int)hp_get_new_block(a1, v3, &v19) ) return *(unsigned int *)my_thread_var(a1, a2); *(_QWORD *)(v3 + 160) += v19; } v14 = *(_QWORD *)(v3 + 24); if ( !v14 ) return *(unsigned int *)my_thread_var(a1, a2); v22 = v2; v4 = (_QWORD *)((unsigned int)(*(_DWORD *)(v3 + 132) * v13) + v14); LABEL_3: *(_DWORD *)(v3 + 252) = 1; v20 = v3; v5 = *(unsigned int *)(v3 + 256); if ( *(_DWORD *)(v3 + 256) ) { v6 = *(_QWORD *)(v20 + 152); v7 = v6 + 872 * v5; v8 = v6; while ( 1 ) { a1 = (long long)v22; a2 = v8; if ( (*(unsigned int ( **)(_DWORD *, unsigned long long, long long, _QWORD *))(v8 + 848))(v22, v8, v21, v4) ) break; v8 += 872LL; v6 += 872LL; if ( v8 >= v7 ) goto LABEL_7; } my_thread_var(a1, v8); v15 = v20; v16 = -630453915 * ((v6 - *(_QWORD *)(v20 + 152)) >> 3); v17 = v22; v22[11] = v16; if ( *(_BYTE *)(v8 + 12) == 1 || *(_DWORD *)my_thread_var(a1, v8) == 12 ) goto LABEL_22; while ( v8 >= *(_QWORD *)(v15 + 152) ) { a1 = (long long)v17; a2 = v8; if ( (*(unsigned int ( **)(_DWORD *, unsigned long long, long long, _QWORD *, _QWORD))(v8 + 856))( v17, v8, v21, v4, 0LL) ) { break; } LABEL_22: v8 -= 872LL; } ++*(_QWORD *)(v15 + 224); *v4 = *(_QWORD *)(v15 + 272); *(_QWORD *)(v15 + 272) = v4; *((_BYTE *)v4 + *(unsigned int *)(v15 + 248)) = 0; return *(unsigned int *)my_thread_var(a1, a2); } LABEL_7: v9 = v20; memcpy(v4, v21, *(unsigned int *)(v20 + 244)); *((_BYTE *)v4 + *(unsigned int *)(v9 + 248)) = 1; v10 = *(_QWORD *)(v9 + 208) + 1LL; *(_QWORD *)(v9 + 208) = v10; if ( v10 == *(_QWORD *)(v9 + 216) ) *(_QWORD *)(v9 + 216) = 2 * v10; v11 = v22; ++*(_DWORD *)(*(_QWORD *)v22 + 236LL); *((_BYTE *)v11 + 56) |= 2u; v12 = 0; if ( *(_DWORD *)(v9 + 576) ) heap_update_auto_increment((long long *)v11, v21); return v12; }
heap_write: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV qword ptr [RBP + -0x38],RSI MOV R14,RDI MOV RBX,qword ptr [RDI] MOV R12,qword ptr [RBX + 0x110] TEST R12,R12 JZ 0x00128308 MOV qword ptr [RBP + -0x30],R14 MOV RAX,qword ptr [R12] MOV qword ptr [RBX + 0x110],RAX DEC qword ptr [RBX + 0xe0] LAB_00128235: MOV dword ptr [RBX + 0xfc],0x1 MOV qword ptr [RBP + -0x40],RBX MOV EAX,dword ptr [RBX + 0x100] TEST RAX,RAX JZ 0x00128294 MOV RCX,qword ptr [RBP + -0x40] MOV RBX,qword ptr [RCX + 0x98] IMUL R15,RAX,0x368 ADD R15,RBX MOV R14D,0x368 MOV R13,RBX LAB_0012826c: MOV RDI,qword ptr [RBP + -0x30] MOV RSI,R13 MOV RDX,qword ptr [RBP + -0x38] MOV RCX,R12 CALL qword ptr [R13 + 0x350] TEST EAX,EAX JNZ 0x0012837f ADD R13,R14 ADD RBX,R14 CMP R13,R15 JC 0x0012826c LAB_00128294: MOV RBX,qword ptr [RBP + -0x40] MOV EDX,dword ptr [RBX + 0xf4] MOV RDI,R12 MOV RSI,qword ptr [RBP + -0x38] CALL 0x00124210 MOV EAX,dword ptr [RBX + 0xf8] MOV byte ptr [R12 + RAX*0x1],0x1 MOV RAX,qword ptr [RBX + 0xd0] INC RAX MOV qword ptr [RBX + 0xd0],RAX CMP RAX,qword ptr [RBX + 0xd8] JNZ 0x001282d9 ADD RAX,RAX MOV qword ptr [RBX + 0xd8],RAX LAB_001282d9: MOV RDI,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RDI] INC dword ptr [RAX + 0xec] OR byte ptr [RDI + 0x38],0x2 XOR R12D,R12D CMP dword ptr [RBX + 0x240],0x0 JZ 0x0012842e MOV RSI,qword ptr [RBP + -0x38] CALL 0x00127b2c JMP 0x0012842e LAB_00128308: MOV RCX,qword ptr [RBX + 0xc8] MOV RAX,qword ptr [RBX + 0xd0] CMP RAX,RCX SETA DL TEST RCX,RCX SETNZ CL TEST DL,CL JNZ 0x0012836f MOV RCX,qword ptr [RBX + 0xa8] ADD RCX,qword ptr [RBX + 0xa0] CMP RCX,qword ptr [RBX + 0xb0] JNC 0x0012836f XOR EDX,EDX DIV qword ptr [RBX + 0x88] MOV R13,RDX TEST R13D,R13D JZ 0x001283b3 LAB_0012834e: MOV R12,qword ptr [RBX + 0x18] TEST R12,R12 JZ 0x00128426 MOV qword ptr [RBP + -0x30],R14 IMUL R13D,dword ptr [RBX + 0x84] ADD R12,R13 JMP 0x00128235 LAB_0012836f: CALL 0x0012a59a MOV dword ptr [RAX],0x87 JMP 0x00128426 LAB_0012837f: CALL 0x0012a59a MOV R14,qword ptr [RBP + -0x40] SUB RBX,qword ptr [R14 + 0x98] SHR RBX,0x3 IMUL EAX,EBX,-0x2593f69b MOV RBX,qword ptr [RBP + -0x30] MOV dword ptr [RBX + 0x2c],EAX CMP byte ptr [R13 + 0xc],0x1 JZ 0x001283d6 CALL 0x0012a59a CMP dword ptr [RAX],0xc JZ 0x001283d6 JMP 0x001283dd LAB_001283b3: LEA RDX,[RBP + -0x48] MOV RDI,RBX MOV RSI,RBX CALL 0x00125757 TEST EAX,EAX JNZ 0x00128426 MOV RAX,qword ptr [RBP + -0x48] ADD qword ptr [RBX + 0xa0],RAX JMP 0x0012834e LAB_001283d6: ADD R13,-0x368 LAB_001283dd: CMP R13,qword ptr [R14 + 0x98] JC 0x00128401 MOV RDI,RBX MOV RSI,R13 MOV RDX,qword ptr [RBP + -0x38] MOV RCX,R12 XOR R8D,R8D CALL qword ptr [R13 + 0x358] TEST EAX,EAX JZ 0x001283d6 LAB_00128401: INC qword ptr [R14 + 0xe0] MOV RAX,qword ptr [R14 + 0x110] MOV qword ptr [R12],RAX MOV qword ptr [R14 + 0x110],R12 MOV EAX,dword ptr [R14 + 0xf8] MOV byte ptr [R12 + RAX*0x1],0x0 LAB_00128426: CALL 0x0012a59a MOV R12D,dword ptr [RAX] LAB_0012842e: MOV EAX,R12D ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int4 heap_write(long *param_1,void *param_2) { long lVar1; long *plVar2; int iVar3; int iVar4; long lVar5; int *piVar6; int4 *puVar7; ulong uVar8; int4 uVar9; int8 *__dest; ulong uVar10; ulong uVar11; long local_50; long local_48; void *local_40; long *local_38; lVar1 = *param_1; __dest = *(int8 **)(lVar1 + 0x110); local_40 = param_2; if (__dest == (int8 *)0x0) { if ((*(ulong *)(lVar1 + 200) < *(ulong *)(lVar1 + 0xd0) && *(ulong *)(lVar1 + 200) != 0) || (*(ulong *)(lVar1 + 0xb0) <= (ulong)(*(long *)(lVar1 + 0xa8) + *(long *)(lVar1 + 0xa0)))) { puVar7 = (int4 *)_my_thread_var(); *puVar7 = 0x87; } else { iVar3 = (int)(*(ulong *)(lVar1 + 0xd0) % *(ulong *)(lVar1 + 0x88)); if (iVar3 == 0) { iVar4 = hp_get_new_block(lVar1,lVar1,&local_50); if (iVar4 != 0) goto LAB_00128426; *(long *)(lVar1 + 0xa0) = *(long *)(lVar1 + 0xa0) + local_50; } if (*(long *)(lVar1 + 0x18) != 0) { __dest = (int8 *) (*(long *)(lVar1 + 0x18) + (ulong)(uint)(iVar3 * *(int *)(lVar1 + 0x84))); goto LAB_00128235; } } LAB_00128426: puVar7 = (int4 *)_my_thread_var(); uVar9 = *puVar7; } else { *(int8 *)(lVar1 + 0x110) = *__dest; *(long *)(lVar1 + 0xe0) = *(long *)(lVar1 + 0xe0) + -1; LAB_00128235: *(int4 *)(lVar1 + 0xfc) = 1; local_48 = lVar1; local_38 = param_1; if ((ulong)*(uint *)(lVar1 + 0x100) != 0) { uVar8 = *(ulong *)(lVar1 + 0x98); uVar11 = (ulong)*(uint *)(lVar1 + 0x100) * 0x368 + uVar8; uVar10 = uVar8; LAB_0012826c: iVar3 = (**(code **)(uVar10 + 0x350))(local_38,uVar10,local_40,__dest); if (iVar3 == 0) goto code_r0x00128289; _my_thread_var(); plVar2 = local_38; lVar1 = local_48; *(int *)((long)local_38 + 0x2c) = (int)(uVar8 - *(long *)(local_48 + 0x98) >> 3) * -0x2593f69b ; if (*(char *)(uVar10 + 0xc) == '\x01') goto LAB_001283d6; piVar6 = (int *)_my_thread_var(); if (*piVar6 == 0xc) goto LAB_001283d6; while ((*(ulong *)(lVar1 + 0x98) <= uVar10 && (iVar3 = (**(code **)(uVar10 + 0x358))(plVar2,uVar10,local_40,__dest,0), iVar3 == 0))) { LAB_001283d6: uVar10 = uVar10 - 0x368; } *(long *)(lVar1 + 0xe0) = *(long *)(lVar1 + 0xe0) + 1; *__dest = *(int8 *)(lVar1 + 0x110); *(int8 **)(lVar1 + 0x110) = __dest; *(int1 *)((long)__dest + (ulong)*(uint *)(lVar1 + 0xf8)) = 0; goto LAB_00128426; } LAB_00128294: lVar1 = local_48; memcpy(__dest,local_40,(ulong)*(uint *)(local_48 + 0xf4)); *(int1 *)((long)__dest + (ulong)*(uint *)(lVar1 + 0xf8)) = 1; lVar5 = *(long *)(lVar1 + 0xd0) + 1; *(long *)(lVar1 + 0xd0) = lVar5; if (lVar5 == *(long *)(lVar1 + 0xd8)) { *(long *)(lVar1 + 0xd8) = lVar5 * 2; } *(int *)(*local_38 + 0xec) = *(int *)(*local_38 + 0xec) + 1; *(byte *)(local_38 + 7) = *(byte *)(local_38 + 7) | 2; uVar9 = 0; if (*(int *)(lVar1 + 0x240) != 0) { heap_update_auto_increment(local_38,local_40); uVar9 = 0; } } return uVar9; code_r0x00128289: uVar10 = uVar10 + 0x368; uVar8 = uVar8 + 0x368; if (uVar11 <= uVar10) goto LAB_00128294; goto LAB_0012826c; }
39,874
common_log::set_file(char const*)
monkey531[P]llama/common/log.cpp
void set_file(const char * path) { pause(); if (file) { fclose(file); } if (path) { file = fopen(path, "w"); } else { file = nullptr; } resume(); }
O1
cpp
common_log::set_file(char const*): pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx callq 0xcd5e4 movq 0x60(%rbx), %rdi testq %rdi, %rdi je 0xcd9f3 callq 0x1b8b0 testq %r14, %r14 je 0xcda09 leaq 0x1e05b(%rip), %rsi # 0xeba5a movq %r14, %rdi callq 0x1ba60 jmp 0xcda0b xorl %eax, %eax movq %rax, 0x60(%rbx) movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r14 jmp 0xcd66c
_ZN10common_log8set_fileEPKc: push r14 push rbx push rax mov r14, rsi mov rbx, rdi call _ZN10common_log5pauseEv; common_log::pause(void) mov rdi, [rbx+60h] test rdi, rdi jz short loc_CD9F3 call _fclose loc_CD9F3: test r14, r14 jz short loc_CDA09 lea rsi, aGrpAttnW+0Bh; "w" mov rdi, r14 call _fopen jmp short loc_CDA0B loc_CDA09: xor eax, eax loc_CDA0B: mov [rbx+60h], rax mov rdi, rbx; this add rsp, 8 pop rbx pop r14 jmp _ZN10common_log6resumeEv; common_log::resume(void)
long long common_log::set_file(common_log *this, const char *a2) { long long v3; // rdi long long v4; // rax common_log::pause(this); v3 = *((_QWORD *)this + 12); if ( v3 ) fclose(v3); if ( a2 ) v4 = fopen(a2, "w"); else v4 = 0LL; *((_QWORD *)this + 12) = v4; return common_log::resume(this); }
set_file: PUSH R14 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI CALL 0x001cd5e4 MOV RDI,qword ptr [RBX + 0x60] TEST RDI,RDI JZ 0x001cd9f3 CALL 0x0011b8b0 LAB_001cd9f3: TEST R14,R14 JZ 0x001cda09 LEA RSI,[0x1eba5a] MOV RDI,R14 CALL 0x0011ba60 JMP 0x001cda0b LAB_001cda09: XOR EAX,EAX LAB_001cda0b: MOV qword ptr [RBX + 0x60],RAX MOV RDI,RBX ADD RSP,0x8 POP RBX POP R14 JMP 0x001cd66c
/* common_log::set_file(char const*) */ void __thiscall common_log::set_file(common_log *this,char *param_1) { FILE *pFVar1; pause(this); if (*(FILE **)(this + 0x60) != (FILE *)0x0) { fclose(*(FILE **)(this + 0x60)); } if (param_1 == (char *)0x0) { pFVar1 = (FILE *)0x0; } else { pFVar1 = fopen(param_1,"w"); } *(FILE **)(this + 0x60) = pFVar1; resume(this); return; }
39,875
common_log::set_file(char const*)
monkey531[P]llama/common/log.cpp
void set_file(const char * path) { pause(); if (file) { fclose(file); } if (path) { file = fopen(path, "w"); } else { file = nullptr; } resume(); }
O3
cpp
common_log::set_file(char const*): pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx callq 0xcba4a movq 0x60(%rbx), %rdi testq %rdi, %rdi je 0xcbe5b callq 0x1a8b0 testq %r14, %r14 je 0xcbe71 leaq 0x1cbf3(%rip), %rsi # 0xe8a5a movq %r14, %rdi callq 0x1aa60 jmp 0xcbe73 xorl %eax, %eax movq %rax, 0x60(%rbx) movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r14 jmp 0xcbad2
_ZN10common_log8set_fileEPKc: push r14 push rbx push rax mov r14, rsi mov rbx, rdi call _ZN10common_log5pauseEv; common_log::pause(void) mov rdi, [rbx+60h] test rdi, rdi jz short loc_CBE5B call _fclose loc_CBE5B: test r14, r14 jz short loc_CBE71 lea rsi, aGrpAttnW+0Bh; "w" mov rdi, r14 call _fopen jmp short loc_CBE73 loc_CBE71: xor eax, eax loc_CBE73: mov [rbx+60h], rax mov rdi, rbx; this add rsp, 8 pop rbx pop r14 jmp _ZN10common_log6resumeEv; common_log::resume(void)
long long common_log::set_file(common_log *this, const char *a2) { long long v3; // rdi long long v4; // rax common_log::pause(this); v3 = *((_QWORD *)this + 12); if ( v3 ) fclose(v3); if ( a2 ) v4 = fopen(a2, "w"); else v4 = 0LL; *((_QWORD *)this + 12) = v4; return common_log::resume(this); }
set_file: PUSH R14 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI CALL 0x001cba4a MOV RDI,qword ptr [RBX + 0x60] TEST RDI,RDI JZ 0x001cbe5b CALL 0x0011a8b0 LAB_001cbe5b: TEST R14,R14 JZ 0x001cbe71 LEA RSI,[0x1e8a5a] MOV RDI,R14 CALL 0x0011aa60 JMP 0x001cbe73 LAB_001cbe71: XOR EAX,EAX LAB_001cbe73: MOV qword ptr [RBX + 0x60],RAX MOV RDI,RBX ADD RSP,0x8 POP RBX POP R14 JMP 0x001cbad2
/* common_log::set_file(char const*) */ void __thiscall common_log::set_file(common_log *this,char *param_1) { FILE *pFVar1; pause(this); if (*(FILE **)(this + 0x60) != (FILE *)0x0) { fclose(*(FILE **)(this + 0x60)); } if (param_1 == (char *)0x0) { pFVar1 = (FILE *)0x0; } else { pFVar1 = fopen(param_1,"w"); } *(FILE **)(this + 0x60) = pFVar1; resume(this); return; }
39,876
ma_randominit
eloqsql/libmariadb/libmariadb/ma_password.c
void ma_randominit(struct rand_struct *rand_st,ulong seed1, ulong seed2) { /* For mysql 3.21.# */ #ifdef HAVE_purify memset((char*) rand_st, 0m sizeof(*rand_st)); /* Avoid UMC warnings */ #endif rand_st->max_value= 0x3FFFFFFFL; rand_st->max_value_dbl=(double) rand_st->max_value; rand_st->seed1=seed1%rand_st->max_value ; rand_st->seed2=seed2%rand_st->max_value; }
O0
c
ma_randominit: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rax movq $0x3fffffff, 0x10(%rax) # imm = 0x3FFFFFFF movq -0x8(%rbp), %rax movq 0x10(%rax), %xmm0 movaps 0x66254(%rip), %xmm1 # 0xd1f50 punpckldq %xmm1, %xmm0 # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1] movapd 0x66258(%rip), %xmm1 # 0xd1f60 subpd %xmm1, %xmm0 movaps %xmm0, %xmm1 unpckhpd %xmm0, %xmm0 # xmm0 = xmm0[1,1] addsd %xmm1, %xmm0 movq -0x8(%rbp), %rax movsd %xmm0, 0x18(%rax) movq -0x10(%rbp), %rax movq -0x8(%rbp), %rcx xorl %edx, %edx divq 0x10(%rcx) movq -0x8(%rbp), %rax movq %rdx, (%rax) movq -0x18(%rbp), %rax movq -0x8(%rbp), %rcx xorl %edx, %edx divq 0x10(%rcx) movq -0x8(%rbp), %rax movq %rdx, 0x8(%rax) popq %rbp retq nopl (%rax)
ma_randominit: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov rax, [rbp+var_8] mov qword ptr [rax+10h], 3FFFFFFFh mov rax, [rbp+var_8] movq xmm0, qword ptr [rax+10h] movaps xmm1, cs:xmmword_D1F50 punpckldq xmm0, xmm1 movapd xmm1, cs:xmmword_D1F60 subpd xmm0, xmm1 movaps xmm1, xmm0 unpckhpd xmm0, xmm0 addsd xmm0, xmm1 mov rax, [rbp+var_8] movsd qword ptr [rax+18h], xmm0 mov rax, [rbp+var_10] mov rcx, [rbp+var_8] xor edx, edx div qword ptr [rcx+10h] mov rax, [rbp+var_8] mov [rax], rdx mov rax, [rbp+var_18] mov rcx, [rbp+var_8] xor edx, edx div qword ptr [rcx+10h] mov rax, [rbp+var_8] mov [rax+8], rdx pop rbp retn
long long ma_randominit(long long a1, unsigned long long a2, unsigned long long a3) { __m128d v3; // xmm1 long long result; // rax *(_QWORD *)(a1 + 16) = 0x3FFFFFFFLL; v3 = _mm_sub_pd( (__m128d)_mm_unpacklo_epi32(_mm_loadl_epi64((const __m128i *)(a1 + 16)), (__m128i)xmmword_D1F50), (__m128d)xmmword_D1F60); *(double *)(a1 + 24) = _mm_unpackhi_pd(v3, v3).m128d_f64[0] + v3.m128d_f64[0]; *(_QWORD *)a1 = a2 % *(_QWORD *)(a1 + 16); result = a1; *(_QWORD *)(a1 + 8) = a3 % *(_QWORD *)(a1 + 16); return result; }
ma_randominit: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x10],0x3fffffff MOV RAX,qword ptr [RBP + -0x8] MOVQ XMM0,qword ptr [RAX + 0x10] MOVAPS XMM1,xmmword ptr [0x001d1f50] PUNPCKLDQ XMM0,XMM1 MOVAPD XMM1,xmmword ptr [0x001d1f60] SUBPD XMM0,XMM1 MOVAPS XMM1,XMM0 UNPCKHPD XMM0,XMM0 ADDSD XMM0,XMM1 MOV RAX,qword ptr [RBP + -0x8] MOVSD qword ptr [RAX + 0x18],XMM0 MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x8] XOR EDX,EDX DIV qword ptr [RCX + 0x10] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX],RDX MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x8] XOR EDX,EDX DIV qword ptr [RCX + 0x10] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x8],RDX POP RBP RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ void ma_randominit(ulong *param_1,ulong param_2,ulong param_3) { ulong uVar1; int1 auVar2 [16]; param_1[2] = 0x3fffffff; uVar1 = param_1[2]; auVar2._8_4_ = (int)(uVar1 >> 0x20); auVar2._0_8_ = uVar1; auVar2._12_4_ = _UNK_001d1f54; param_1[3] = (ulong)((auVar2._8_8_ - _UNK_001d1f68) + ((double)CONCAT44(_DAT_001d1f50,(int)uVar1) - _DAT_001d1f60)); *param_1 = param_2 % param_1[2]; param_1[1] = param_3 % param_1[2]; return; }
39,877
ma_bitmap_free_full_pages
eloqsql/storage/maria/ma_bitmap.c
my_bool _ma_bitmap_free_full_pages(MARIA_HA *info, const uchar *extents, uint count) { MARIA_FILE_BITMAP *bitmap= &info->s->bitmap; my_bool res; DBUG_ENTER("_ma_bitmap_free_full_pages"); for (; count--; extents+= ROW_EXTENT_SIZE) { pgcache_page_no_t page= uint5korr(extents); uint page_count= (uint2korr(extents + ROW_EXTENT_PAGE_SIZE) & ~START_EXTENT_BIT); if (!(page_count & TAIL_BIT)) { if (page == 0 && page_count == 0) continue; /* Not used extent */ if (pagecache_delete_pages(info->s->pagecache, &info->dfile, page, page_count, PAGECACHE_LOCK_WRITE, 1)) DBUG_RETURN(1); mysql_mutex_lock(&bitmap->bitmap_lock); res= _ma_bitmap_reset_full_page_bits(info, bitmap, page, page_count); mysql_mutex_unlock(&bitmap->bitmap_lock); if (res) DBUG_RETURN(1); } } DBUG_RETURN(0); }
O3
c
ma_bitmap_free_full_pages: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp testl %edx, %edx je 0x3dd2f movl %edx, %ebx movq %rsi, %r14 movq (%rdi), %rax leaq 0xa10(%rax), %rcx movq %rcx, -0x48(%rbp) leaq 0x470(%rdi), %rcx movq %rcx, -0x50(%rbp) movq %rax, -0x40(%rbp) addq $0xa98, %rax # imm = 0xA98 movq %rax, -0x38(%rbp) movzwl 0x5(%r14), %r13d testw %r13w, %r13w js 0x3dcf6 movl (%r14), %eax movzbl 0x4(%r14), %r15d shlq $0x20, %r15 orq %rax, %r15 andl $0xbfff, %r13d # imm = 0xBFFF jne 0x3dc74 testq %r15, %r15 je 0x3dcf6 movq %rdi, %r12 movq (%rdi), %rax movq 0x600(%rax), %rdi movq -0x50(%rbp), %rsi movq %r15, %rdx movl %r13d, %ecx movl $0x4, %r8d movl $0x1, %r9d callq 0x4e28c testb %al, %al jne 0x3dd48 movb $0x1, %al movl %eax, -0x2c(%rbp) movq -0x40(%rbp), %rax cmpq $0x0, 0xad8(%rax) jne 0x3dd06 movq -0x38(%rbp), %rdi callq 0x29210 movq %r12, %rdi movq -0x48(%rbp), %rsi movq %r15, %rdx movl %r13d, %ecx callq 0x3d546 movl %eax, %r15d movq -0x40(%rbp), %rax movq 0xad8(%rax), %rdi testq %rdi, %rdi jne 0x3dd1d movq -0x38(%rbp), %rdi callq 0x291e0 testb %r15b, %r15b movq %r12, %rdi jne 0x3dd36 decl %ebx addq $0x7, %r14 testl %ebx, %ebx jne 0x3dc44 jmp 0x3dd2f movq -0x38(%rbp), %rdi leaq 0x9a94c(%rip), %rsi # 0xd865d movl $0xb31, %edx # imm = 0xB31 callq 0x2eb6f jmp 0x3dcc0 leaq 0x3472ec(%rip), %rax # 0x385010 movq (%rax), %rax callq *0x160(%rax) jmp 0x3dce5 movl $0x0, -0x2c(%rbp) movl -0x2c(%rbp), %eax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movb $0x1, %al movl %eax, -0x2c(%rbp) jmp 0x3dd36
_ma_bitmap_free_full_pages: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h test edx, edx jz loc_3DD2F mov ebx, edx mov r14, rsi mov rax, [rdi] lea rcx, [rax+0A10h] mov [rbp+var_48], rcx lea rcx, [rdi+470h] mov [rbp+var_50], rcx mov [rbp+var_40], rax add rax, 0A98h mov [rbp+var_38], rax loc_3DC44: movzx r13d, word ptr [r14+5] test r13w, r13w js loc_3DCF6 mov eax, [r14] movzx r15d, byte ptr [r14+4] shl r15, 20h or r15, rax and r13d, 0BFFFh jnz short loc_3DC74 test r15, r15 jz loc_3DCF6 loc_3DC74: mov r12, rdi mov rax, [rdi] mov rdi, [rax+600h] mov rsi, [rbp+var_50] mov rdx, r15 mov ecx, r13d mov r8d, 4 mov r9d, 1 call pagecache_delete_pages test al, al jnz loc_3DD48 mov al, 1 mov [rbp+var_2C], eax mov rax, [rbp+var_40] cmp qword ptr [rax+0AD8h], 0 jnz short loc_3DD06 mov rdi, [rbp+var_38] call _pthread_mutex_lock loc_3DCC0: mov rdi, r12 mov rsi, [rbp+var_48] mov rdx, r15 mov ecx, r13d call _ma_bitmap_reset_full_page_bits mov r15d, eax mov rax, [rbp+var_40] mov rdi, [rax+0AD8h] test rdi, rdi jnz short loc_3DD1D loc_3DCE5: mov rdi, [rbp+var_38] call _pthread_mutex_unlock test r15b, r15b mov rdi, r12 jnz short loc_3DD36 loc_3DCF6: dec ebx add r14, 7 test ebx, ebx jnz loc_3DC44 jmp short loc_3DD2F loc_3DD06: mov rdi, [rbp+var_38] lea rsi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 0B31h call psi_mutex_lock jmp short loc_3DCC0 loc_3DD1D: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp short loc_3DCE5 loc_3DD2F: mov [rbp+var_2C], 0 loc_3DD36: mov eax, [rbp+var_2C] add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_3DD48: mov al, 1 mov [rbp+var_2C], eax jmp short loc_3DD36
long long ma_bitmap_free_full_pages(long long *a1, unsigned int *a2, int a3) { int v3; // ebx __int16 v5; // r13 unsigned long long v6; // r15 unsigned int v7; // r13d unsigned int v8; // eax char v9; // r15 long long v11; // [rsp+8h] [rbp-48h] long long v12; // [rsp+10h] [rbp-40h] long long v13; // [rsp+18h] [rbp-38h] unsigned int v14; // [rsp+24h] [rbp-2Ch] if ( a3 ) { v3 = a3; v11 = *a1 + 2576; v12 = *a1; v13 = *a1 + 2712; do { v5 = *(_WORD *)((char *)a2 + 5); if ( v5 >= 0 ) { v6 = *a2 | ((unsigned long long)*((unsigned __int8 *)a2 + 4) << 32); v7 = v5 & 0xBFFF; if ( v7 || v6 ) { v8 = pagecache_delete_pages(*(_QWORD *)(*a1 + 1536), a1 + 142, v6, v7, 4LL, 1LL); if ( (_BYTE)v8 ) { LOBYTE(v8) = 1; return v8; } LOBYTE(v8) = 1; v14 = v8; if ( *(_QWORD *)(v12 + 2776) ) psi_mutex_lock(v13, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_bitmap.c", 0xB31u); else pthread_mutex_lock(v13); v9 = ma_bitmap_reset_full_page_bits(a1, v11, v6, v7); if ( *(_QWORD *)(v12 + 2776) ) PSI_server[44](); pthread_mutex_unlock(v13); if ( v9 ) return v14; } } --v3; a2 = (unsigned int *)((char *)a2 + 7); } while ( v3 ); } return 0; }
_ma_bitmap_free_full_pages: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 TEST EDX,EDX JZ 0x0013dd2f MOV EBX,EDX MOV R14,RSI MOV RAX,qword ptr [RDI] LEA RCX,[RAX + 0xa10] MOV qword ptr [RBP + -0x48],RCX LEA RCX,[RDI + 0x470] MOV qword ptr [RBP + -0x50],RCX MOV qword ptr [RBP + -0x40],RAX ADD RAX,0xa98 MOV qword ptr [RBP + -0x38],RAX LAB_0013dc44: MOVZX R13D,word ptr [R14 + 0x5] TEST R13W,R13W JS 0x0013dcf6 MOV EAX,dword ptr [R14] MOVZX R15D,byte ptr [R14 + 0x4] SHL R15,0x20 OR R15,RAX AND R13D,0xbfff JNZ 0x0013dc74 TEST R15,R15 JZ 0x0013dcf6 LAB_0013dc74: MOV R12,RDI MOV RAX,qword ptr [RDI] MOV RDI,qword ptr [RAX + 0x600] MOV RSI,qword ptr [RBP + -0x50] MOV RDX,R15 MOV ECX,R13D MOV R8D,0x4 MOV R9D,0x1 CALL 0x0014e28c TEST AL,AL JNZ 0x0013dd48 MOV AL,0x1 MOV dword ptr [RBP + -0x2c],EAX MOV RAX,qword ptr [RBP + -0x40] CMP qword ptr [RAX + 0xad8],0x0 JNZ 0x0013dd06 MOV RDI,qword ptr [RBP + -0x38] CALL 0x00129210 LAB_0013dcc0: MOV RDI,R12 MOV RSI,qword ptr [RBP + -0x48] MOV RDX,R15 MOV ECX,R13D CALL 0x0013d546 MOV R15D,EAX MOV RAX,qword ptr [RBP + -0x40] MOV RDI,qword ptr [RAX + 0xad8] TEST RDI,RDI JNZ 0x0013dd1d LAB_0013dce5: MOV RDI,qword ptr [RBP + -0x38] CALL 0x001291e0 TEST R15B,R15B MOV RDI,R12 JNZ 0x0013dd36 LAB_0013dcf6: DEC EBX ADD R14,0x7 TEST EBX,EBX JNZ 0x0013dc44 JMP 0x0013dd2f LAB_0013dd06: MOV RDI,qword ptr [RBP + -0x38] LEA RSI,[0x1d865d] MOV EDX,0xb31 CALL 0x0012eb6f JMP 0x0013dcc0 LAB_0013dd1d: LEA RAX,[0x485010] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x0013dce5 LAB_0013dd2f: MOV dword ptr [RBP + -0x2c],0x0 LAB_0013dd36: MOV EAX,dword ptr [RBP + -0x2c] ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0013dd48: MOV AL,0x1 MOV dword ptr [RBP + -0x2c],EAX JMP 0x0013dd36
int4 _ma_bitmap_free_full_pages(long *param_1,uint5 *param_2,int param_3) { ushort uVar1; long lVar2; char cVar3; pthread_mutex_t *__mutex; int8 uVar4; int7 uVar5; ulong uVar6; if (param_3 != 0) { lVar2 = *param_1; __mutex = (pthread_mutex_t *)(lVar2 + 0xa98); do { uVar1 = *(ushort *)((long)param_2 + 5); if (-1 < (short)uVar1) { uVar6 = (ulong)*param_2; if (((uVar1 & 0xbfff) != 0) || (uVar6 != 0)) { uVar4 = pagecache_delete_pages (*(int8 *)(*param_1 + 0x600),param_1 + 0x8e,uVar6,uVar1 & 0xbfff,4 ,1); uVar5 = (int7)((ulong)uVar4 >> 8); if ((char)uVar4 != '\0') { return (int)CONCAT71(uVar5,1); } if (*(long *)(lVar2 + 0xad8) == 0) { pthread_mutex_lock(__mutex); } else { psi_mutex_lock(__mutex, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_bitmap.c", 0xb31); } cVar3 = _ma_bitmap_reset_full_page_bits(param_1,lVar2 + 0xa10,uVar6,uVar1 & 0xbfff); if (*(long *)(lVar2 + 0xad8) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock(__mutex); if (cVar3 != '\0') { return (int)CONCAT71(uVar5,1); } } } param_3 = param_3 + -1; param_2 = (uint5 *)((long)param_2 + 7); } while (param_3 != 0); } return 0; }
39,878
nglog::(anonymous namespace)::LogCleaner::Run(std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l>>> const&, bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
ng-log[P]ng-log/src/logging.cc
void LogCleaner::Run(const std::chrono::system_clock::time_point& current_time, bool base_filename_selected, const string& base_filename, const string& filename_extension) { assert(enabled_); assert(!base_filename_selected || !base_filename.empty()); // avoid scanning logs too frequently if (current_time < next_cleanup_time_) { return; } next_cleanup_time_ = current_time + std::chrono::duration_cast<std::chrono::system_clock::duration>( std::chrono::duration<int32>{FLAGS_logcleansecs}); vector<string> dirs; if (!base_filename_selected) { dirs = GetLoggingDirectories(); } else { size_t pos = base_filename.find_last_of(possible_dir_delim, string::npos, sizeof(possible_dir_delim)); if (pos != string::npos) { string dir = base_filename.substr(0, pos + 1); dirs.push_back(dir); } else { dirs.emplace_back("."); } } for (const std::string& dir : dirs) { vector<string> logs = GetOverdueLogNames(dir, current_time, base_filename, filename_extension); for (const std::string& log : logs) { // NOTE May fail on Windows if the file is still open int result = unlink(log.c_str()); if (result != 0) { perror(("Could not remove overdue log " + log).c_str()); } } } }
O0
cpp
nglog::(anonymous namespace)::LogCleaner::Run(std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l>>> const&, bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %rbp movq %rsp, %rbp subq $0x150, %rsp # imm = 0x150 movb %dl, %al movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) andb $0x1, %al movb %al, -0x11(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x138(%rbp) testb $0x1, (%rax) je 0x175c4 jmp 0x175e3 leaq 0x375ac(%rip), %rdi # 0x4eb77 leaq 0x37158(%rip), %rsi # 0x4e72a movl $0x51a, %edx # imm = 0x51A leaq 0x375a2(%rip), %rcx # 0x4eb80 callq 0x9490 movb $0x1, %al testb $0x1, -0x11(%rbp) movb %al, -0x139(%rbp) je 0x17602 movq -0x20(%rbp), %rdi callq 0x9bf0 xorb $-0x1, %al movb %al, -0x139(%rbp) movb -0x139(%rbp), %al testb $0x1, %al jne 0x1760e jmp 0x17610 jmp 0x1762f leaq 0x375f1(%rip), %rdi # 0x4ec08 leaq 0x3710c(%rip), %rsi # 0x4e72a movl $0x51b, %edx # imm = 0x51B leaq 0x37556(%rip), %rcx # 0x4eb80 callq 0x9490 movq -0x138(%rbp), %rsi movq -0x10(%rbp), %rdi addq $0x10, %rsi callq 0x1bbd0 testb $0x1, %al jne 0x17649 jmp 0x1764e jmp 0x17974 movq -0x10(%rbp), %rax movq %rax, -0x148(%rbp) leaq -0x3c(%rbp), %rdi leaq 0x5b71c(%rip), %rsi # 0x72d80 callq 0x1bb20 leaq -0x3c(%rbp), %rdi callq 0x1bcf0 movq -0x148(%rbp), %rdi movq %rax, -0x38(%rbp) leaq -0x38(%rbp), %rsi callq 0x1bca0 movq %rax, %rcx movq -0x138(%rbp), %rax movq %rcx, -0x30(%rbp) movq -0x30(%rbp), %rcx movq %rcx, 0x10(%rax) leaq -0x58(%rbp), %rdi callq 0xc3d0 testb $0x1, -0x11(%rbp) jne 0x176e1 callq 0x13780 movq %rax, -0x150(%rbp) jmp 0x176b9 movq -0x150(%rbp), %rsi leaq -0x58(%rbp), %rdi callq 0x1be10 jmp 0x176cb jmp 0x17778 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x60(%rbp) movl %eax, -0x64(%rbp) jmp 0x1797d movq -0x20(%rbp), %rdi leaq 0x36dac(%rip), %rsi # 0x4e498 movq $-0x1, %rdx movl $0x1, %ecx callq 0x9e50 movq %rax, -0x70(%rbp) cmpq $-0x1, -0x70(%rbp) je 0x17762 movq -0x20(%rbp), %rsi movq -0x70(%rbp), %rcx incq %rcx xorl %eax, %eax movl %eax, %edx leaq -0x90(%rbp), %rdi callq 0x9720 jmp 0x17725 leaq -0x58(%rbp), %rdi leaq -0x90(%rbp), %rsi callq 0x1ad50 jmp 0x17737 leaq -0x90(%rbp), %rdi callq 0x9e68 jmp 0x17776 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x60(%rbp) movl %eax, -0x64(%rbp) leaq -0x90(%rbp), %rdi callq 0x9e68 jmp 0x1797d leaq 0x3880c(%rip), %rsi # 0x4ff75 leaq -0x58(%rbp), %rdi callq 0x1c060 jmp 0x17774 jmp 0x17776 jmp 0x17778 leaq -0x58(%rbp), %rax movq %rax, -0x98(%rbp) movq -0x98(%rbp), %rdi callq 0xc640 movq %rax, -0xa0(%rbp) movq -0x98(%rbp), %rdi callq 0x1ae30 movq %rax, -0xa8(%rbp) leaq -0xa0(%rbp), %rdi leaq -0xa8(%rbp), %rsi callq 0x1adf0 testb $0x1, %al jne 0x177c5 jmp 0x1796b leaq -0xa0(%rbp), %rdi callq 0xc670 movq %rax, -0xb0(%rbp) movq -0xb0(%rbp), %rsi leaq -0xe8(%rbp), %rdi callq 0x92d0 jmp 0x177ed movq -0x138(%rbp), %rsi movq -0x10(%rbp), %rcx movq -0x20(%rbp), %r8 movq -0x28(%rbp), %r9 leaq -0xc8(%rbp), %rdi leaq -0xe8(%rbp), %rdx callq 0x17990 jmp 0x17815 leaq -0xe8(%rbp), %rdi callq 0x9e68 leaq -0xc8(%rbp), %rax movq %rax, -0xf0(%rbp) movq -0xf0(%rbp), %rdi callq 0xc640 movq %rax, -0xf8(%rbp) movq -0xf0(%rbp), %rdi callq 0x1ae30 movq %rax, -0x100(%rbp) leaq -0xf8(%rbp), %rdi leaq -0x100(%rbp), %rsi callq 0x1adf0 testb $0x1, %al jne 0x17871 jmp 0x17940 leaq -0xf8(%rbp), %rdi callq 0xc670 movq %rax, -0x108(%rbp) movq -0x108(%rbp), %rdi callq 0x92b0 movq %rax, %rdi callq 0x9320 movl %eax, -0x10c(%rbp) cmpl $0x0, -0x10c(%rbp) je 0x1792d movq -0x108(%rbp), %rdx leaq 0x37381(%rip), %rsi # 0x4ec3a leaq -0x130(%rbp), %rdi callq 0x1c0e0 jmp 0x178c7 leaq -0x130(%rbp), %rdi callq 0x92b0 movq %rax, %rdi callq 0x95a0 jmp 0x178dd leaq -0x130(%rbp), %rdi callq 0x9e68 jmp 0x1792d movq %rax, %rcx movl %edx, %eax movq %rcx, -0x60(%rbp) movl %eax, -0x64(%rbp) leaq -0xe8(%rbp), %rdi callq 0x9e68 jmp 0x1797d movq %rax, %rcx movl %edx, %eax movq %rcx, -0x60(%rbp) movl %eax, -0x64(%rbp) jmp 0x1795d movq %rax, %rcx movl %edx, %eax movq %rcx, -0x60(%rbp) movl %eax, -0x64(%rbp) leaq -0x130(%rbp), %rdi callq 0x9e68 jmp 0x1795d jmp 0x1792f leaq -0xf8(%rbp), %rdi callq 0x1af30 jmp 0x17855 leaq -0xc8(%rbp), %rdi callq 0xc460 leaq -0xa0(%rbp), %rdi callq 0x1af30 jmp 0x177a9 leaq -0xc8(%rbp), %rdi callq 0xc460 jmp 0x1797d leaq -0x58(%rbp), %rdi callq 0xc460 addq $0x150, %rsp # imm = 0x150 popq %rbp retq leaq -0x58(%rbp), %rdi callq 0xc460 movq -0x60(%rbp), %rdi callq 0x9cc0 nop
_ZN5nglog12_GLOBAL__N_110LogCleaner3RunERKNSt6chrono10time_pointINS2_3_V212system_clockENS2_8durationIlSt5ratioILl1ELl1000000000EEEEEEbRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESK_: push rbp mov rbp, rsp sub rsp, 150h mov al, dl mov [rbp+var_8], rdi mov [rbp+var_10], rsi and al, 1 mov [rbp+var_11], al mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov rax, [rbp+var_8] mov [rbp+var_138], rax test byte ptr [rax], 1 jz short loc_175C4 jmp short loc_175E3 loc_175C4: lea rdi, aEnabled; "enabled_" lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... mov edx, 51Ah lea rcx, aVoidNglogAnony; "void nglog::(anonymous namespace)::LogC"... call ___assert_fail loc_175E3: mov al, 1 test [rbp+var_11], 1 mov [rbp+var_139], al jz short loc_17602 mov rdi, [rbp+var_20] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void) xor al, 0FFh mov [rbp+var_139], al loc_17602: mov al, [rbp+var_139] test al, 1 jnz short loc_1760E jmp short loc_17610 loc_1760E: jmp short loc_1762F loc_17610: lea rdi, aBaseFilenameSe; "!base_filename_selected || !base_filena"... lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... mov edx, 51Bh lea rcx, aVoidNglogAnony; "void nglog::(anonymous namespace)::LogC"... call ___assert_fail loc_1762F: mov rsi, [rbp+var_138] mov rdi, [rbp+var_10] add rsi, 10h call _ZNSt6chronoltINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEES6_EEbRKNS_10time_pointIT_T0_EERKNS7_IS8_T1_EE; std::chrono::operator<<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>,std::chrono::duration<long,std::ratio<1l,1000000000l>>>(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>> const&,std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>> const&) test al, 1 jnz short loc_17649 jmp short loc_1764E loc_17649: jmp loc_17974 loc_1764E: mov rax, [rbp+var_10] mov [rbp+var_148], rax lea rdi, [rbp+var_3C] lea rsi, _ZN3fLI18FLAGS_logcleansecsE; fLI::FLAGS_logcleansecs call _ZNSt6chrono8durationIiSt5ratioILl1ELl1EEEC2IivEERKT_; std::chrono::duration<int,std::ratio<1l,1l>>::duration<int,void>(int const&) lea rdi, [rbp+var_3C] call _ZNSt6chrono13duration_castINS_8durationIlSt5ratioILl1ELl1000000000EEEEiS2_ILl1ELl1EEEENSt9enable_ifIXsr13__is_durationIT_EE5valueES7_E4typeERKNS1_IT0_T1_EE mov rdi, [rbp+var_148] mov [rbp+var_38], rax lea rsi, [rbp+var_38] call _ZNSt6chronoplINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEElS5_EENS_10time_pointIT_NSt11common_typeIJT0_NS3_IT1_T2_EEEE4typeEEERKNS7_IS8_SA_EERKSD_; std::chrono::operator+<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>,long,std::ratio<1l,1000000000l>>(std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>> const&,std::chrono::duration<long,std::ratio<1l,1000000000l>> const&) mov rcx, rax mov rax, [rbp+var_138] mov [rbp+var_30], rcx mov rcx, [rbp+var_30] mov [rax+10h], rcx lea rdi, [rbp+var_58] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev; std::vector<std::string>::vector(void) test [rbp+var_11], 1 jnz short loc_176E1 call _ZN5nglog21GetLoggingDirectoriesB5cxx11Ev; nglog::GetLoggingDirectories(void) mov [rbp+var_150], rax jmp short $+2 loc_176B9: mov rsi, [rbp+var_150] lea rdi, [rbp+var_58] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEaSERKS7_; std::vector<std::string>::operator=(std::vector<std::string> const&) jmp short $+2 loc_176CB: jmp loc_17778 mov rcx, rax mov eax, edx mov [rbp+var_60], rcx mov [rbp+var_64], eax jmp loc_1797D loc_176E1: mov rdi, [rbp+var_20] lea rsi, _ZN5nglog12_GLOBAL__N_118possible_dir_delimE; nglog::`anonymous namespace'::possible_dir_delim mov rdx, 0FFFFFFFFFFFFFFFFh mov ecx, 1 call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12find_last_ofEPKcmm; std::string::find_last_of(char const*,ulong,ulong) mov [rbp+var_70], rax cmp [rbp+var_70], 0FFFFFFFFFFFFFFFFh jz short loc_17762 mov rsi, [rbp+var_20] mov rcx, [rbp+var_70] inc rcx xor eax, eax mov edx, eax lea rdi, [rbp+var_90] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong) jmp short $+2 loc_17725: lea rdi, [rbp+var_58] lea rsi, [rbp+var_90] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_; std::vector<std::string>::push_back(std::string const&) jmp short $+2 loc_17737: lea rdi, [rbp+var_90]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_17776 mov rcx, rax mov eax, edx mov [rbp+var_60], rcx mov [rbp+var_64], eax lea rdi, [rbp+var_90]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp loc_1797D loc_17762: lea rsi, aSectionNameSIs+50h; "." lea rdi, [rbp+var_58] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJRA2_KcEEERS5_DpOT_; std::vector<std::string>::emplace_back<char const(&)[2]>(char const(&)[2] &&) jmp short $+2 loc_17774: jmp short $+2 loc_17776: jmp short $+2 loc_17778: lea rax, [rbp+var_58] mov [rbp+var_98], rax mov rdi, [rbp+var_98] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5beginEv; std::vector<std::string>::begin(void) mov [rbp+var_A0], rax mov rdi, [rbp+var_98] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE3endEv; std::vector<std::string>::end(void) mov [rbp+var_A8], rax loc_177A9: lea rdi, [rbp+var_A0] lea rsi, [rbp+var_A8] call _ZN9__gnu_cxxneIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_; __gnu_cxx::operator!=<std::string *,std::vector<std::string>>(__gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>> const&,__gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>> const&) test al, 1 jnz short loc_177C5 jmp loc_1796B loc_177C5: lea rdi, [rbp+var_A0] call _ZNK9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEdeEv; __gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>::operator*(void) mov [rbp+var_B0], rax mov rsi, [rbp+var_B0] lea rdi, [rbp+var_E8] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&) jmp short $+2 loc_177ED: mov rsi, [rbp+var_138] mov rcx, [rbp+var_10] mov r8, [rbp+var_20] mov r9, [rbp+var_28] lea rdi, [rbp+var_C8] lea rdx, [rbp+var_E8] call _ZNK5nglog12_GLOBAL__N_110LogCleaner18GetOverdueLogNamesENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNSt6chrono10time_pointINS8_3_V212system_clockENS8_8durationIlSt5ratioILl1ELl1000000000EEEEEERKS7_SK_; nglog::`anonymous namespace'::LogCleaner::GetOverdueLogNames(std::string,std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>> const&,std::string const&,std::string const&) jmp short $+2 loc_17815: lea rdi, [rbp+var_E8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rax, [rbp+var_C8] mov [rbp+var_F0], rax mov rdi, [rbp+var_F0] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5beginEv; std::vector<std::string>::begin(void) mov [rbp+var_F8], rax mov rdi, [rbp+var_F0] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE3endEv; std::vector<std::string>::end(void) mov [rbp+var_100], rax loc_17855: lea rdi, [rbp+var_F8] lea rsi, [rbp+var_100] call _ZN9__gnu_cxxneIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_; __gnu_cxx::operator!=<std::string *,std::vector<std::string>>(__gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>> const&,__gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>> const&) test al, 1 jnz short loc_17871 jmp loc_17940 loc_17871: lea rdi, [rbp+var_F8] call _ZNK9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEdeEv; __gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>::operator*(void) mov [rbp+var_108], rax mov rdi, [rbp+var_108] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void) mov rdi, rax call _unlink mov [rbp+var_10C], eax cmp [rbp+var_10C], 0 jz loc_1792D mov rdx, [rbp+var_108] lea rsi, aCouldNotRemove; "Could not remove overdue log " lea rdi, [rbp+var_130] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_; std::operator+<char>(char const*,std::string const&) jmp short $+2 loc_178C7: lea rdi, [rbp+var_130] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void) mov rdi, rax call _perror jmp short $+2 loc_178DD: lea rdi, [rbp+var_130]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_1792D mov rcx, rax mov eax, edx mov [rbp+var_60], rcx mov [rbp+var_64], eax lea rdi, [rbp+var_E8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_1797D mov rcx, rax mov eax, edx mov [rbp+var_60], rcx mov [rbp+var_64], eax jmp short loc_1795D mov rcx, rax mov eax, edx mov [rbp+var_60], rcx mov [rbp+var_64], eax lea rdi, [rbp+var_130]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_1795D loc_1792D: jmp short $+2 loc_1792F: lea rdi, [rbp+var_F8] call _ZN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEppEv; __gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>::operator++(void) jmp loc_17855 loc_17940: lea rdi, [rbp+var_C8] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() lea rdi, [rbp+var_A0] call _ZN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEppEv; __gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>::operator++(void) jmp loc_177A9 loc_1795D: lea rdi, [rbp+var_C8] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() jmp short loc_1797D loc_1796B: lea rdi, [rbp+var_58] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() loc_17974: add rsp, 150h pop rbp retn loc_1797D: lea rdi, [rbp+var_58] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() mov rdi, [rbp+var_60] call __Unwind_Resume
long long nglog::`anonymous namespace'::LogCleaner::Run( long long a1, long long a2, char a3, long long a4, long long a5) { long long result; // rax long long v6; // rax long long v7; // rax long long v8; // [rsp+0h] [rbp-150h] long long v9; // [rsp+8h] [rbp-148h] char v10; // [rsp+17h] [rbp-139h] _BYTE v11[36]; // [rsp+20h] [rbp-130h] BYREF long long v13; // [rsp+48h] [rbp-108h] long long v14; // [rsp+50h] [rbp-100h] BYREF long long v15; // [rsp+58h] [rbp-F8h] BYREF long long *v16; // [rsp+60h] [rbp-F0h] _BYTE v17[32]; // [rsp+68h] [rbp-E8h] BYREF long long v18[3]; // [rsp+88h] [rbp-C8h] BYREF long long v19; // [rsp+A0h] [rbp-B0h] long long v20; // [rsp+A8h] [rbp-A8h] BYREF _QWORD v21[2]; // [rsp+B0h] [rbp-A0h] BYREF _BYTE v22[32]; // [rsp+C0h] [rbp-90h] BYREF long long last_of; // [rsp+E0h] [rbp-70h] long long v24[3]; // [rsp+F8h] [rbp-58h] BYREF _BYTE v25[4]; // [rsp+114h] [rbp-3Ch] BYREF long long v26; // [rsp+118h] [rbp-38h] BYREF long long v27; // [rsp+120h] [rbp-30h] long long v28; // [rsp+128h] [rbp-28h] long long v29; // [rsp+130h] [rbp-20h] char v30; // [rsp+13Fh] [rbp-11h] long long v31; // [rsp+140h] [rbp-10h] long long v32; // [rsp+148h] [rbp-8h] v32 = a1; v31 = a2; v30 = a3 & 1; v29 = a4; v28 = a5; if ( (*(_BYTE *)a1 & 1) == 0 ) __assert_fail( "enabled_", "/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging.cc", 1306LL, "void nglog::(anonymous namespace)::LogCleaner::Run(const std::chrono::system_clock::time_point &, bool, const stri" "ng &, const string &)"); v10 = 1; if ( (v30 & 1) != 0 ) v10 = ~(unsigned __int8)std::string::empty(v29); if ( (v10 & 1) == 0 ) __assert_fail( "!base_filename_selected || !base_filename.empty()", "/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging.cc", 1307LL, "void nglog::(anonymous namespace)::LogCleaner::Run(const std::chrono::system_clock::time_point &, bool, const stri" "ng &, const string &)"); result = std::chrono::operator<<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>,std::chrono::duration<long,std::ratio<1l,1000000000l>>>( v31, a1 + 16); if ( (result & 1) == 0 ) { v9 = v31; std::chrono::duration<int,std::ratio<1l,1l>>::duration<int,void>(v25, &fLI::FLAGS_logcleansecs); v26 = std::chrono::duration_cast<std::chrono::duration<long,std::ratio<1l,1000000000l>>,int,std::ratio<1l,1l>>(v25); v27 = std::chrono::operator+<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>,long,std::ratio<1l,1000000000l>>( v9, &v26); *(_QWORD *)(a1 + 16) = v27; std::vector<std::string>::vector((long long)v24); if ( (v30 & 1) != 0 ) { last_of = std::string::find_last_of(v29, &nglog::`anonymous namespace'::possible_dir_delim, -1LL, 1LL); if ( last_of == -1 ) { std::vector<std::string>::emplace_back<char const(&)[2]>(v24, "."); } else { std::string::substr(v22, v29, 0LL, last_of + 1); std::vector<std::string>::push_back(v24, v22); std::string::~string(v22); } } else { v8 = nglog::GetLoggingDirectories[abi:cxx11](); std::vector<std::string>::operator=(v24, v8); } v21[1] = v24; v21[0] = std::vector<std::string>::begin((long long)v24); v20 = std::vector<std::string>::end(v24); while ( (__gnu_cxx::operator!=<std::string *,std::vector<std::string>>(v21, &v20) & 1) != 0 ) { v19 = __gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>::operator*((long long)v21); std::string::basic_string(v17, v19); nglog::`anonymous namespace'::LogCleaner::GetOverdueLogNames(v18, a1, v17, v31, v29, v28); std::string::~string(v17); v16 = v18; v15 = std::vector<std::string>::begin((long long)v18); v14 = std::vector<std::string>::end(v16); while ( (__gnu_cxx::operator!=<std::string *,std::vector<std::string>>(&v15, &v14) & 1) != 0 ) { v13 = __gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>::operator*((long long)&v15); v6 = std::string::c_str(v13); if ( (unsigned int)unlink(v6) ) { std::operator+<char>(v11, "Could not remove overdue log ", v13); v7 = std::string::c_str(v11); perror(v7); std::string::~string(v11); } __gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>::operator++(&v15); } std::vector<std::string>::~vector(v18); __gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>::operator++(v21); } return std::vector<std::string>::~vector(v24); } return result; }
Run: PUSH RBP MOV RBP,RSP SUB RSP,0x150 MOV AL,DL MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI AND AL,0x1 MOV byte ptr [RBP + -0x11],AL MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x138],RAX TEST byte ptr [RAX],0x1 JZ 0x001175c4 JMP 0x001175e3 LAB_001175c4: LEA RDI,[0x14eb77] LEA RSI,[0x14e72a] MOV EDX,0x51a LEA RCX,[0x14eb80] CALL 0x00109490 LAB_001175e3: MOV AL,0x1 TEST byte ptr [RBP + -0x11],0x1 MOV byte ptr [RBP + -0x139],AL JZ 0x00117602 MOV RDI,qword ptr [RBP + -0x20] CALL 0x00109bf0 XOR AL,0xff MOV byte ptr [RBP + -0x139],AL LAB_00117602: MOV AL,byte ptr [RBP + -0x139] TEST AL,0x1 JNZ 0x0011760e JMP 0x00117610 LAB_0011760e: JMP 0x0011762f LAB_00117610: LEA RDI,[0x14ec08] LEA RSI,[0x14e72a] MOV EDX,0x51b LEA RCX,[0x14eb80] CALL 0x00109490 LAB_0011762f: MOV RSI,qword ptr [RBP + -0x138] MOV RDI,qword ptr [RBP + -0x10] ADD RSI,0x10 CALL 0x0011bbd0 TEST AL,0x1 JNZ 0x00117649 JMP 0x0011764e LAB_00117649: JMP 0x00117974 LAB_0011764e: MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x148],RAX LEA RDI,[RBP + -0x3c] LEA RSI,[0x172d80] CALL 0x0011bb20 LEA RDI,[RBP + -0x3c] CALL 0x0011bcf0 MOV RDI,qword ptr [RBP + -0x148] MOV qword ptr [RBP + -0x38],RAX LEA RSI,[RBP + -0x38] CALL 0x0011bca0 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x138] MOV qword ptr [RBP + -0x30],RCX MOV RCX,qword ptr [RBP + -0x30] MOV qword ptr [RAX + 0x10],RCX LEA RDI,[RBP + -0x58] CALL 0x0010c3d0 TEST byte ptr [RBP + -0x11],0x1 JNZ 0x001176e1 LAB_001176ab: CALL 0x00113780 MOV qword ptr [RBP + -0x150],RAX JMP 0x001176b9 LAB_001176b9: MOV RSI,qword ptr [RBP + -0x150] LEA RDI,[RBP + -0x58] CALL 0x0011be10 JMP 0x001176cb LAB_001176cb: JMP 0x00117778 LAB_001176e1: MOV RDI,qword ptr [RBP + -0x20] LEA RSI,[0x14e498] MOV RDX,-0x1 MOV ECX,0x1 CALL 0x00109e50 MOV qword ptr [RBP + -0x70],RAX CMP qword ptr [RBP + -0x70],-0x1 JZ 0x00117762 MOV RSI,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x70] INC RCX XOR EAX,EAX MOV EDX,EAX LEA RDI,[RBP + -0x90] CALL 0x00109720 JMP 0x00117725 LAB_00117725: LEA RDI,[RBP + -0x58] LEA RSI,[RBP + -0x90] CALL 0x0011ad50 JMP 0x00117737 LAB_00117737: LEA RDI,[RBP + -0x90] CALL 0x00109e68 JMP 0x00117776 LAB_00117762: LEA RSI,[0x14ff75] LEA RDI,[RBP + -0x58] CALL 0x0011c060 JMP 0x00117774 LAB_00117774: JMP 0x00117776 LAB_00117776: JMP 0x00117778 LAB_00117778: LEA RAX,[RBP + -0x58] MOV qword ptr [RBP + -0x98],RAX MOV RDI,qword ptr [RBP + -0x98] CALL 0x0010c640 MOV qword ptr [RBP + -0xa0],RAX MOV RDI,qword ptr [RBP + -0x98] CALL 0x0011ae30 MOV qword ptr [RBP + -0xa8],RAX LAB_001177a9: LEA RDI,[RBP + -0xa0] LEA RSI,[RBP + -0xa8] CALL 0x0011adf0 TEST AL,0x1 JNZ 0x001177c5 JMP 0x0011796b LAB_001177c5: LEA RDI,[RBP + -0xa0] CALL 0x0010c670 MOV qword ptr [RBP + -0xb0],RAX MOV RSI,qword ptr [RBP + -0xb0] LEA RDI,[RBP + -0xe8] CALL 0x001092d0 JMP 0x001177ed LAB_001177ed: MOV RSI,qword ptr [RBP + -0x138] MOV RCX,qword ptr [RBP + -0x10] MOV R8,qword ptr [RBP + -0x20] MOV R9,qword ptr [RBP + -0x28] LAB_00117800: LEA RDI,[RBP + -0xc8] LEA RDX,[RBP + -0xe8] CALL 0x00117990 JMP 0x00117815 LAB_00117815: LEA RDI,[RBP + -0xe8] CALL 0x00109e68 LEA RAX,[RBP + -0xc8] MOV qword ptr [RBP + -0xf0],RAX MOV RDI,qword ptr [RBP + -0xf0] CALL 0x0010c640 MOV qword ptr [RBP + -0xf8],RAX MOV RDI,qword ptr [RBP + -0xf0] CALL 0x0011ae30 MOV qword ptr [RBP + -0x100],RAX LAB_00117855: LEA RDI,[RBP + -0xf8] LEA RSI,[RBP + -0x100] CALL 0x0011adf0 TEST AL,0x1 JNZ 0x00117871 JMP 0x00117940 LAB_00117871: LEA RDI,[RBP + -0xf8] CALL 0x0010c670 MOV qword ptr [RBP + -0x108],RAX MOV RDI,qword ptr [RBP + -0x108] CALL 0x001092b0 MOV RDI,RAX CALL 0x00109320 MOV dword ptr [RBP + -0x10c],EAX CMP dword ptr [RBP + -0x10c],0x0 JZ 0x0011792d MOV RDX,qword ptr [RBP + -0x108] LAB_001178b2: LEA RSI,[0x14ec3a] LEA RDI,[RBP + -0x130] CALL 0x0011c0e0 JMP 0x001178c7 LAB_001178c7: LEA RDI,[RBP + -0x130] CALL 0x001092b0 MOV RDI,RAX LAB_001178d6: CALL 0x001095a0 LAB_001178db: JMP 0x001178dd LAB_001178dd: LEA RDI,[RBP + -0x130] CALL 0x00109e68 JMP 0x0011792d LAB_0011792d: JMP 0x0011792f LAB_0011792f: LEA RDI,[RBP + -0xf8] CALL 0x0011af30 JMP 0x00117855 LAB_00117940: LEA RDI,[RBP + -0xc8] CALL 0x0010c460 LEA RDI,[RBP + -0xa0] CALL 0x0011af30 JMP 0x001177a9 LAB_0011796b: LEA RDI,[RBP + -0x58] CALL 0x0010c460 LAB_00117974: ADD RSP,0x150 POP RBP RET
/* nglog::(anonymous namespace)::LogCleaner::Run(std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l> > > const&, bool, std::__cxx11::string const&, std::__cxx11::string const&) */ void __thiscall nglog::(anonymous_namespace)::LogCleaner::Run (LogCleaner *this,time_point *param_1,bool param_2,string *param_3,string *param_4) { time_point *ptVar1; bool bVar2; vector *pvVar3; char *pcVar4; byte local_141; string local_138 [36]; int local_114; int8 local_110; int8 local_108; int8 local_100; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *local_f8; string local_f0 [32]; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> local_d0 [24]; string *local_b8; int8 local_b0; int8 local_a8; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *local_a0; string local_98 [32]; long local_78; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> local_60 [28]; duration<int,std::ratio<1l,1l>> local_44 [4]; int8 local_40; int8 local_38; string *local_30; string *local_28; byte local_19; time_point *local_18; LogCleaner *local_10; local_30 = param_4; local_28 = param_3; local_19 = param_2; local_18 = param_1; local_10 = this; if (((byte)*this & 1) == 0) { /* WARNING: Subroutine does not return */ __assert_fail("enabled_", "/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging.cc",0x51a, "void nglog::(anonymous namespace)::LogCleaner::Run(const std::chrono::system_clock::time_point &, bool, const string &, const string &)" ); } local_141 = 1; if (param_2) { local_141 = std::__cxx11::string::empty(); local_141 = local_141 ^ 0xff; } if ((local_141 & 1) != 0) { bVar2 = std::chrono::operator<(local_18,this + 0x10); ptVar1 = local_18; if (!bVar2) { std::chrono::duration<int,std::ratio<1l,1l>>::duration<int,void> (local_44,&fLI::FLAGS_logcleansecs); local_40 = std::chrono:: duration_cast<std::chrono::duration<long,std::ratio<1l,1000000000l>>,int,std::ratio<1l,1l>> ((duration *)local_44); local_38 = std::chrono::operator+(ptVar1,(duration *)&local_40); *(int8 *)(this + 0x10) = local_38; std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector(local_60); if ((local_19 & 1) == 0) { /* try { // try from 001176ab to 00117722 has its CatchHandler @ 001176d0 */ pvVar3 = (vector *)GetLoggingDirectories_abi_cxx11_(); std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::operator= (local_60,pvVar3); } else { local_78 = std::__cxx11::string::find_last_of((char *)local_28,0x14e498,0xffffffffffffffff); if (local_78 == -1) { /* try { // try from 00117762 to 001177ea has its CatchHandler @ 001176d0 */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>:: emplace_back<char_const(&)[2]>(local_60,"."); } else { std::__cxx11::string::substr((ulong)local_98,(ulong)local_28); /* try { // try from 00117725 to 00117734 has its CatchHandler @ 00117745 */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::push_back (local_60,local_98); std::__cxx11::string::~string(local_98); } } local_a0 = local_60; local_a8 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::begin (local_a0); local_b0 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::end (local_a0); while (bVar2 = __gnu_cxx::operator!= ((__normal_iterator *)&local_a8,(__normal_iterator *)&local_b0), bVar2) { local_b8 = (string *) __gnu_cxx:: __normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>> ::operator*((__normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>> *)&local_a8); std::__cxx11::string::string(local_f0,local_b8); /* try { // try from 00117800 to 00117812 has its CatchHandler @ 001178eb */ GetOverdueLogNames(local_d0,this,local_f0,local_18,local_28,local_30); std::__cxx11::string::~string(local_f0); local_f8 = local_d0; local_100 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::begin (local_f8); local_108 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::end (local_f8); while (bVar2 = __gnu_cxx::operator!= ((__normal_iterator *)&local_100,(__normal_iterator *)&local_108), bVar2) { local_110 = __gnu_cxx:: __normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>> ::operator*((__normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>> *)&local_100); pcVar4 = (char *)std::__cxx11::string::c_str(); local_114 = unlink(pcVar4); if (local_114 != 0) { /* try { // try from 001178b2 to 001178c4 has its CatchHandler @ 00117905 */ std::operator+((char *)local_138,(string *)"Could not remove overdue log "); pcVar4 = (char *)std::__cxx11::string::c_str(); /* try { // try from 001178d6 to 001178da has its CatchHandler @ 00117913 */ perror(pcVar4); std::__cxx11::string::~string(local_138); } __gnu_cxx:: __normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>> ::operator++((__normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>> *)&local_100); } std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector(local_d0); __gnu_cxx:: __normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>> ::operator++((__normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>> *)&local_a8); } std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector(local_60); } return; } /* WARNING: Subroutine does not return */ __assert_fail("!base_filename_selected || !base_filename.empty()", "/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging.cc",0x51b, "void nglog::(anonymous namespace)::LogCleaner::Run(const std::chrono::system_clock::time_point &, bool, const string &, const string &)" ); }
39,879
cxxopts::values::parser_tool::IsFalseText(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
zkingston[P]unknot/build_O1/_deps/cxxopts-src/include/cxxopts.hpp
inline bool IsFalseText(const std::string &text) { static const std::basic_regex<char> falsy_matcher(falsy_pattern); std::smatch result; std::regex_match(text, result, falsy_matcher); return !result.empty(); }
O1
cpp
cxxopts::values::parser_tool::IsFalseText(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %r14 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx movb 0x307c05(%rip), %al # 0x336c58 testb %al, %al je 0x2f0c0 vxorps %xmm0, %xmm0, %xmm0 movq %rsp, %rdx vmovups %ymm0, (%rdx) movq (%rbx), %rdi movq 0x8(%rbx), %rsi addq %rdi, %rsi leaq 0x307bc5(%rip), %rcx # 0x336c38 xorl %r8d, %r8d vzeroupper callq 0x2f18d movq (%rsp), %rbx movq 0x8(%rsp), %r14 testq %rbx, %rbx je 0x2f09c movq 0x10(%rsp), %rsi subq %rbx, %rsi movq %rbx, %rdi callq 0xfa70 subq %rbx, %r14 sarq $0x3, %r14 movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB imulq %r14, %rax cmpq $0x4, %rax setae %al addq $0x28, %rsp popq %rbx popq %r14 retq leaq 0x307b91(%rip), %rdi # 0x336c58 callq 0x10230 testl %eax, %eax je 0x2f057 leaq 0x307b61(%rip), %rdi # 0x336c38 leaq 0x261391(%rip), %rsi # 0x29046f movl $0x10, %edx callq 0x158d6 leaq -0x197af(%rip), %rdi # 0x15940 leaq 0x307b42(%rip), %rsi # 0x336c38 leaq 0x3068db(%rip), %rdx # 0x3359d8 callq 0xf910 leaq 0x307b4f(%rip), %rdi # 0x336c58 callq 0xf680 jmp 0x2f057 movq %rax, %rbx leaq 0x307b3b(%rip), %rdi # 0x336c58 callq 0xf660 jmp 0x2f13d movq %rax, %rbx movq (%rsp), %rdi testq %rdi, %rdi je 0x2f13d movq 0x10(%rsp), %rsi subq %rdi, %rsi callq 0xfa70 movq %rbx, %rdi callq 0x101c0
_ZN7cxxopts6values11parser_tool11IsFalseTextERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push r14 push rbx sub rsp, 28h mov rbx, rdi mov al, cs:_ZGVZN7cxxopts6values11parser_tool11IsFalseTextERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE13falsy_matcherB5cxx11; `guard variable for'cxxopts::values::parser_tool::IsFalseText(std::string const&)::falsy_matcher test al, al jz short loc_2F0C0 loc_2F057: vxorps xmm0, xmm0, xmm0 mov rdx, rsp vmovups ymmword ptr [rdx], ymm0 mov rdi, [rbx] mov rsi, [rbx+8] add rsi, rdi lea rcx, _ZZN7cxxopts6values11parser_tool11IsFalseTextERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE13falsy_matcherB5cxx11; cxxopts::values::parser_tool::IsFalseText(std::string const&)::falsy_matcher xor r8d, r8d vzeroupper call _ZNSt8__detail17__regex_algo_implIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEESaINS5_9sub_matchISB_EEEcNS5_12regex_traitsIcEELNS_20_RegexExecutorPolicyE0ELb1EEEbT_SI_RNS5_13match_resultsISI_T0_EERKNS5_11basic_regexIT1_T2_EENSt15regex_constants15match_flag_typeE; std::__detail::__regex_algo_impl<__gnu_cxx::__normal_iterator<char const*,std::string>,std::allocator<std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>>,char,std::regex_traits<char>,(std::__detail::_RegexExecutorPolicy)0,true>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>> &,std::basic_regex<char,std::regex_traits<char>> const&,std::regex_constants::match_flag_type) mov rbx, [rsp+38h+var_38] mov r14, [rsp+38h+var_30] test rbx, rbx jz short loc_2F09C mov rsi, [rsp+38h+var_28] sub rsi, rbx; unsigned __int64 mov rdi, rbx; void * call __ZdlPvm; operator delete(void *,ulong) loc_2F09C: sub r14, rbx sar r14, 3 mov rax, 0AAAAAAAAAAAAAAABh imul rax, r14 cmp rax, 4 setnb al add rsp, 28h pop rbx pop r14 retn loc_2F0C0: lea rdi, _ZGVZN7cxxopts6values11parser_tool11IsFalseTextERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE13falsy_matcherB5cxx11; __guard * call ___cxa_guard_acquire test eax, eax jz short loc_2F057 lea rdi, _ZZN7cxxopts6values11parser_tool11IsFalseTextERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE13falsy_matcherB5cxx11; cxxopts::values::parser_tool::IsFalseText(std::string const&)::falsy_matcher lea rsi, aFFAlse0; "(f|F)(alse)?|0" 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, _ZZN7cxxopts6values11parser_tool11IsFalseTextERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE13falsy_matcherB5cxx11; obj lea rdx, __dso_handle; lpdso_handle call ___cxa_atexit lea rdi, _ZGVZN7cxxopts6values11parser_tool11IsFalseTextERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE13falsy_matcherB5cxx11; __guard * call ___cxa_guard_release jmp loc_2F057 mov rbx, rax lea rdi, _ZGVZN7cxxopts6values11parser_tool11IsFalseTextERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE13falsy_matcherB5cxx11; __guard * call ___cxa_guard_abort jmp short loc_2F13D mov rbx, rax mov rdi, [rsp+0]; void * test rdi, rdi jz short loc_2F13D mov rsi, [rsp+arg_8] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_2F13D: mov rdi, rbx call __Unwind_Resume
bool cxxopts::values::parser_tool::IsFalseText(_QWORD *a1, __m128 _XMM0) { _BYTE *v5; // rbx _BYTE *v6; // r14 void *v8[7]; // [rsp+0h] [rbp-38h] BYREF if ( !(_BYTE)`guard variable for'cxxopts::values::parser_tool::IsFalseText(std::string const&)::falsy_matcher[abi:cxx11] && __cxa_guard_acquire(&`guard variable for'cxxopts::values::parser_tool::IsFalseText(std::string const&)::falsy_matcher[abi:cxx11]) ) { std::basic_regex<char,std::regex_traits<char>>::basic_regex( (long long)&cxxopts::values::parser_tool::IsFalseText(std::string const&)::falsy_matcher[abi:cxx11], (long long)"(f|F)(alse)?|0", 0x10u, _XMM0); __cxa_atexit( (void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex, &cxxopts::values::parser_tool::IsFalseText(std::string const&)::falsy_matcher[abi:cxx11], &_dso_handle); __cxa_guard_release(&`guard variable for'cxxopts::values::parser_tool::IsFalseText(std::string const&)::falsy_matcher[abi:cxx11]); } __asm { vxorps xmm0, xmm0, xmm0 } _RDX = v8; __asm { vmovups ymmword ptr [rdx], ymm0 vzeroupper } std::__detail::__regex_algo_impl<__gnu_cxx::__normal_iterator<char const*,std::string>,std::allocator<std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>>,char,std::regex_traits<char>,(std::__detail::_RegexExecutorPolicy)0,true>( *a1, *a1 + a1[1], v8, &cxxopts::values::parser_tool::IsFalseText(std::string const&)::falsy_matcher[abi:cxx11], 0LL, *(double *)&_XMM0); v5 = v8[0]; v6 = v8[1]; if ( v8[0] ) operator delete(v8[0], (char *)v8[2] - (char *)v8[0]); return 0xAAAAAAAAAAAAAAABLL * ((v6 - v5) >> 3) >= 4; }
IsFalseText: PUSH R14 PUSH RBX SUB RSP,0x28 MOV RBX,RDI MOV AL,byte ptr [0x00436c58] TEST AL,AL JZ 0x0012f0c0 LAB_0012f057: VXORPS XMM0,XMM0,XMM0 MOV RDX,RSP VMOVUPS ymmword ptr [RDX],YMM0 MOV RDI,qword ptr [RBX] MOV RSI,qword ptr [RBX + 0x8] ADD RSI,RDI LAB_0012f06c: LEA RCX,[0x436c38] XOR R8D,R8D VZEROUPPER CALL 0x0012f18d MOV RBX,qword ptr [RSP] MOV R14,qword ptr [RSP + 0x8] TEST RBX,RBX JZ 0x0012f09c MOV RSI,qword ptr [RSP + 0x10] SUB RSI,RBX MOV RDI,RBX CALL 0x0010fa70 LAB_0012f09c: SUB R14,RBX SAR R14,0x3 MOV RAX,-0x5555555555555555 IMUL RAX,R14 CMP RAX,0x4 SETNC AL ADD RSP,0x28 POP RBX POP R14 RET LAB_0012f0c0: LEA RDI,[0x436c58] CALL 0x00110230 TEST EAX,EAX JZ 0x0012f057 LAB_0012f0d0: LEA RDI,[0x436c38] LEA RSI,[0x39046f] MOV EDX,0x10 CALL 0x001158d6 LAB_0012f0e8: LEA RDI,[0x115940] LEA RSI,[0x436c38] LEA RDX,[0x4359d8] CALL 0x0010f910 LEA RDI,[0x436c58] CALL 0x0010f680 JMP 0x0012f057
/* cxxopts::values::parser_tool::IsFalseText(std::__cxx11::string const&) */ int8 cxxopts::values::parser_tool::IsFalseText(string *param_1) { void *pvVar1; long lVar2; int iVar3; ulong uVar4; void *local_38; long lStack_30; long lStack_28; int8 uStack_20; if (IsFalseText(std::__cxx11::string_const&)::falsy_matcher_abi_cxx11_ == '\0') { iVar3 = __cxa_guard_acquire(&IsFalseText(std::__cxx11::string_const&)::falsy_matcher_abi_cxx11_) ; if (iVar3 != 0) { /* try { // try from 0012f0d0 to 0012f0e7 has its CatchHandler @ 0012f113 */ std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex ((basic_regex<char,std::__cxx11::regex_traits<char>> *) IsFalseText(std::__cxx11::string_const&)::falsy_matcher_abi_cxx11_,"(f|F)(alse)?|0" ,0x10); __cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex, IsFalseText(std::__cxx11::string_const&)::falsy_matcher_abi_cxx11_,&__dso_handle) ; __cxa_guard_release(&IsFalseText(std::__cxx11::string_const&)::falsy_matcher_abi_cxx11_); } } local_38 = (void *)0x0; lStack_30 = 0; lStack_28 = 0; uStack_20 = 0; /* try { // try from 0012f06c to 0012f07d has its CatchHandler @ 0012f124 */ std::__detail:: __regex_algo_impl<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>,char,std::__cxx11::regex_traits<char>,(std::__detail::_RegexExecutorPolicy)0,true> (*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1,&local_38, IsFalseText(std::__cxx11::string_const&)::falsy_matcher_abi_cxx11_,0); lVar2 = lStack_30; pvVar1 = local_38; if (local_38 != (void *)0x0) { operator_delete(local_38,lStack_28 - (long)local_38); } uVar4 = (lVar2 - (long)pvVar1 >> 3) * -0x5555555555555555; return CONCAT71((int7)(uVar4 >> 8),3 < uVar4); }
39,880
cpu_get_num_physical_cores()
monkey531[P]llama/common/common.cpp
std::string string_from(bool value) { return value ? "true" : "false"; }
O3
cpp
cpu_get_num_physical_cores(): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x2a8, %rsp # imm = 0x2A8 leaq 0x98(%rsp), %rax movq %rax, -0x30(%rax) movq $0x1, -0x28(%rax) xorps %xmm0, %xmm0 movups %xmm0, -0x20(%rax) movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000 movups %xmm0, -0x8(%rax) leaq 0x38(%rsp), %rbp leaq 0x18(%rsp), %r13 xorl %r14d, %r14d leaq 0x48(%rsp), %r12 leaq 0xa0(%rsp), %rbx movl $0xd1b71759, %esi # imm = 0xD1B71759 movl $0x1, %eax cmpl $0xa, %r14d jb 0x1d3b1 movl $0x4, %eax movl %r14d, %ecx cmpl $0x63, %ecx jbe 0x1d3aa cmpl $0x3e7, %ecx # imm = 0x3E7 jbe 0x1d3af cmpl $0x2710, %ecx # imm = 0x2710 jb 0x1d3b1 movl %ecx, %edx imulq %rsi, %rdx shrq $0x2d, %rdx addl $0x4, %eax cmpl $0x1869f, %ecx # imm = 0x1869F movl %edx, %ecx ja 0x1d379 addl $-0x3, %eax jmp 0x1d3b1 addl $-0x2, %eax jmp 0x1d3b1 decl %eax movq %rbp, %r15 movl %eax, %esi leaq 0x58(%rsp), %rax movq %rax, 0x48(%rsp) movq %r12, %rbp movq %r12, %rdi xorl %edx, %edx callq 0x187a0 movq 0x48(%rsp), %rdi movl 0x50(%rsp), %esi movl %r14d, %edx callq 0x2ae0d movl $0x1b, %r8d movq %rbp, %r12 movq %rbp, %rdi xorl %esi, %esi xorl %edx, %edx leaq 0x8afdf(%rip), %rcx # 0xa83d4 callq 0x18750 movq %r15, %rbp movq %r15, 0x28(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x1d420 movq %rdx, 0x28(%rsp) movq (%rcx), %rdx movq %rdx, 0x38(%rsp) jmp 0x1d427 movups (%rcx), %xmm0 movups %xmm0, (%rbp) movq 0x8(%rax), %rdx movq %rdx, 0x30(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x28(%rsp), %rdi leaq 0x8afa5(%rip), %rsi # 0xa83f0 callq 0x18cc0 movq %r13, 0x8(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x1d473 movq %rdx, 0x8(%rsp) movq (%rcx), %rdx movq %rdx, 0x18(%rsp) jmp 0x1d47b movups (%rcx), %xmm0 movups %xmm0, (%r13) movq 0x8(%rax), %rdx movq %rdx, 0x10(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) movq %rbx, %rdi leaq 0x8(%rsp), %rsi movl $0x8, %edx callq 0x18a70 movq 0x8(%rsp), %rdi cmpq %r13, %rdi je 0x1d4bc movq 0x18(%rsp), %rsi incq %rsi callq 0x186a0 movq 0x28(%rsp), %rdi cmpq %rbp, %rdi je 0x1d4d3 movq 0x38(%rsp), %rsi incq %rsi callq 0x186a0 movq 0x48(%rsp), %rdi leaq 0x58(%rsp), %rax cmpq %rax, %rdi je 0x1d4ef movq 0x58(%rsp), %rsi incq %rsi callq 0x186a0 leaq 0x118(%rsp), %rdi callq 0x18160 testb %al, %al je 0x1d59a movq %r13, 0x8(%rsp) movq $0x0, 0x10(%rsp) movb $0x0, 0x18(%rsp) movq 0xa0(%rsp), %rax movq -0x18(%rax), %rdi addq %rbx, %rdi movl $0xa, %esi callq 0x18660 movsbl %al, %edx movq %rbx, %rdi leaq 0x8(%rsp), %rsi callq 0x18c50 movq (%rax), %rcx movq -0x18(%rcx), %rcx testb $0x5, 0x20(%rax,%rcx) jne 0x1d567 leaq 0x68(%rsp), %rdi movq %rdi, 0x28(%rsp) leaq 0x8(%rsp), %rsi leaq 0x28(%rsp), %rdx callq 0x7c920 movq 0x8(%rsp), %rdi cmpq %r13, %rdi je 0x1d57e movq 0x18(%rsp), %rsi incq %rsi callq 0x186a0 movq %rbx, %rdi callq 0x18170 incl %r14d cmpl $-0x1, %r14d movl $0xd1b71759, %esi # imm = 0xD1B71759 jne 0x1d366 jmp 0x1d5a7 leaq 0xa0(%rsp), %rdi callq 0x18170 movq 0x80(%rsp), %rbx testq %rbx, %rbx jne 0x1d5cd callq 0x188d0 cmpl $0x5, %eax setae %cl movl %eax, %edx shrl %cl, %edx testl %eax, %eax movl $0x4, %ebx cmovnel %edx, %ebx leaq 0x68(%rsp), %rdi callq 0x2ae80 movl %ebx, %eax addq $0x2a8, %rsp # imm = 0x2A8 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx jmp 0x1d60f movq %rax, %rbx jmp 0x1d670 movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r13, %rdi je 0x1d60f movq 0x18(%rsp), %rsi incq %rsi callq 0x186a0 movq 0x28(%rsp), %rdi cmpq %r15, %rdi je 0x1d62b movq 0x38(%rsp), %rsi incq %rsi callq 0x186a0 jmp 0x1d62b movq %rax, %rbx movq 0x48(%rsp), %rdi leaq 0x58(%rsp), %rax cmpq %rax, %rdi je 0x1d670 movq 0x58(%rsp), %rsi incq %rsi callq 0x186a0 jmp 0x1d670 movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r13, %rdi je 0x1d663 movq 0x18(%rsp), %rsi incq %rsi callq 0x186a0 leaq 0xa0(%rsp), %rdi callq 0x18170 leaq 0x68(%rsp), %rdi callq 0x2ae80 movq %rbx, %rdi callq 0x18b90
_Z26cpu_get_num_physical_coresv: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 2A8h lea rax, [rsp+2D8h+var_240] mov [rax-30h], rax mov qword ptr [rax-28h], 1 xorps xmm0, xmm0 movups xmmword ptr [rax-20h], xmm0 mov dword ptr [rax-10h], 3F800000h movups xmmword ptr [rax-8], xmm0 lea rbp, [rsp+2D8h+var_2A0] lea r13, [rsp+2D8h+var_2C0] xor r14d, r14d lea r12, [rsp+2D8h+var_290] lea rbx, [rsp+2D8h+var_238] mov esi, 0D1B71759h loc_1D366: mov eax, 1 cmp r14d, 0Ah jb short loc_1D3B1 mov eax, 4 mov ecx, r14d loc_1D379: cmp ecx, 63h ; 'c' jbe short loc_1D3AA cmp ecx, 3E7h jbe short loc_1D3AF cmp ecx, 2710h jb short loc_1D3B1 mov edx, ecx imul rdx, rsi shr rdx, 2Dh add eax, 4 cmp ecx, 1869Fh mov ecx, edx ja short loc_1D379 add eax, 0FFFFFFFDh jmp short loc_1D3B1 loc_1D3AA: add eax, 0FFFFFFFEh jmp short loc_1D3B1 loc_1D3AF: dec eax loc_1D3B1: mov r15, rbp mov esi, eax lea rax, [rsp+2D8h+var_280] mov [rsp+2D8h+var_290], rax mov rbp, r12 mov rdi, r12 xor edx, edx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc; std::string::_M_construct(ulong,char) mov rdi, [rsp+2D8h+var_290] mov esi, [rsp+2D8h+var_288] mov edx, r14d call _ZNSt8__detail18__to_chars_10_implIjEEvPcjT_; std::__detail::__to_chars_10_impl<uint>(char *,uint,uint) mov r8d, 1Bh mov r12, rbp mov rdi, rbp xor esi, esi xor edx, edx lea rcx, aSysDevicesSyst; "/sys/devices/system/cpu/cpu" call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong) mov rbp, r15 mov [rsp+2D8h+var_2B0], r15 mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jz short loc_1D420 mov [rsp+2D8h+var_2B0], rdx mov rdx, [rcx] mov [rsp+2D8h+var_2A0], rdx jmp short loc_1D427 loc_1D420: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [rbp+0], xmm0 loc_1D427: mov rdx, [rax+8] mov [rsp+2D8h+var_2A8], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 lea rdi, [rsp+2D8h+var_2B0] lea rsi, aTopologyThread; "/topology/thread_siblings" call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov [rsp+2D8h+var_2D0], r13 mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jz short loc_1D473 mov [rsp+2D8h+var_2D0], rdx mov rdx, [rcx] mov [rsp+2D8h+var_2C0], rdx jmp short loc_1D47B loc_1D473: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [r13+0], xmm0 loc_1D47B: mov rdx, [rax+8] mov [rsp+2D8h+var_2C8], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 mov rdi, rbx lea rsi, [rsp+2D8h+var_2D0] mov edx, 8 call __ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1ERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode; std::ifstream::basic_ifstream(std::string const&,std::_Ios_Openmode) mov rdi, [rsp+2D8h+var_2D0]; void * cmp rdi, r13 jz short loc_1D4BC mov rsi, [rsp+2D8h+var_2C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1D4BC: mov rdi, [rsp+2D8h+var_2B0]; void * cmp rdi, rbp jz short loc_1D4D3 mov rsi, [rsp+2D8h+var_2A0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1D4D3: mov rdi, [rsp+2D8h+var_290]; void * lea rax, [rsp+2D8h+var_280] cmp rdi, rax jz short loc_1D4EF mov rsi, [rsp+2D8h+var_280] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1D4EF: lea rdi, [rsp+2D8h+var_1C0] call __ZNKSt12__basic_fileIcE7is_openEv; std::__basic_file<char>::is_open(void) test al, al jz loc_1D59A mov [rsp+2D8h+var_2D0], r13 mov [rsp+2D8h+var_2C8], 0 mov byte ptr [rsp+2D8h+var_2C0], 0 mov rax, [rsp+2D8h+var_238] mov rdi, [rax-18h] add rdi, rbx mov esi, 0Ah call __ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc; std::ios::widen(char) movsx edx, al mov rdi, rbx lea rsi, [rsp+2D8h+var_2D0] 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) mov rcx, [rax] mov rcx, [rcx-18h] test byte ptr [rax+rcx+20h], 5 jnz short loc_1D567 lea rdi, [rsp+2D8h+var_270] mov [rsp+2D8h+var_2B0], rdi lea rsi, [rsp+2D8h+var_2D0] lea rdx, [rsp+2D8h+var_2B0] call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEE9_M_insertIRKS5_NS7_10_AllocNodeISaINS7_10_Hash_nodeIS5_Lb1EEEEEEEESt4pairINS7_14_Node_iteratorIS5_Lb1ELb1EEEbEOT_RKT0_St17integral_constantIbLb1EE; std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::_M_insert<std::string const&,std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::string,true>>>>(std::string const&,std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::string,true>>> const&,std::integral_constant<bool,true>) loc_1D567: mov rdi, [rsp+2D8h+var_2D0]; void * cmp rdi, r13 jz short loc_1D57E mov rsi, [rsp+2D8h+var_2C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1D57E: mov rdi, rbx call __ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev; std::ifstream::~ifstream() inc r14d cmp r14d, 0FFFFFFFFh mov esi, 0D1B71759h jnz loc_1D366 jmp short loc_1D5A7 loc_1D59A: lea rdi, [rsp+2D8h+var_238]; this call __ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev; std::ifstream::~ifstream() loc_1D5A7: mov rbx, [rsp+2D8h+var_258] test rbx, rbx jnz short loc_1D5CD call __ZNSt6thread20hardware_concurrencyEv; std::thread::hardware_concurrency(void) cmp eax, 5 setnb cl mov edx, eax shr edx, cl test eax, eax mov ebx, 4 cmovnz ebx, edx loc_1D5CD: lea rdi, [rsp+2D8h+var_270] call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEED2Ev; std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::~_Hashtable() mov eax, ebx add rsp, 2A8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax jmp short loc_1D60F mov rbx, rax jmp short loc_1D670 mov rbx, rax mov rdi, [rsp+arg_0]; void * cmp rdi, r13 jz short loc_1D60F mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1D60F: mov rdi, [rsp+arg_20]; void * cmp rdi, r15 jz short loc_1D62B mov rsi, [rsp+arg_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_1D62B mov rbx, rax loc_1D62B: mov rdi, [rsp+arg_40]; void * lea rax, [rsp+arg_50] cmp rdi, rax jz short loc_1D670 mov rsi, [rsp+arg_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_1D670 mov rbx, rax mov rdi, [rsp+arg_0]; void * cmp rdi, r13 jz short loc_1D663 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1D663: lea rdi, [rsp+arg_98] call __ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev; std::ifstream::~ifstream() loc_1D670: lea rdi, [rsp+arg_60] call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEED2Ev; std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::~_Hashtable() mov rdi, rbx call __Unwind_Resume
long long cpu_get_num_physical_cores(void) { unsigned int v0; // r14d unsigned int v1; // eax unsigned int v2; // ecx bool v3; // cc long long v4; // rax __int128 *v5; // rcx long long v6; // rax __int128 *v7; // rcx long long v8; // rsi char v9; // al _QWORD *v10; // rax int v11; // r8d int v12; // r9d long long v13; // rcx unsigned int v14; // ebx unsigned int v15; // eax char v17; // [rsp+0h] [rbp-2D8h] void *v18; // [rsp+8h] [rbp-2D0h] BYREF long long v19; // [rsp+10h] [rbp-2C8h] __int128 v20; // [rsp+18h] [rbp-2C0h] BYREF void *v21[2]; // [rsp+28h] [rbp-2B0h] BYREF __int128 v22; // [rsp+38h] [rbp-2A0h] BYREF void *v23; // [rsp+48h] [rbp-290h] BYREF unsigned int v24; // [rsp+50h] [rbp-288h] _QWORD v25[2]; // [rsp+58h] [rbp-280h] BYREF _QWORD v26[2]; // [rsp+68h] [rbp-270h] BYREF __int128 v27; // [rsp+78h] [rbp-260h] int v28; // [rsp+88h] [rbp-250h] __int128 v29; // [rsp+90h] [rbp-248h] BYREF _QWORD v30[15]; // [rsp+A0h] [rbp-238h] BYREF _BYTE v31[448]; // [rsp+118h] [rbp-1C0h] BYREF v26[0] = (char *)&v29 + 8; v26[1] = 1LL; v27 = 0LL; v28 = 1065353216; v29 = 0LL; v0 = 0; while ( 1 ) { v1 = 1; if ( v0 >= 0xA ) { v1 = 4; v2 = v0; while ( 1 ) { if ( v2 <= 0x63 ) { v1 -= 2; goto LABEL_11; } if ( v2 <= 0x3E7 ) break; if ( v2 < 0x2710 ) goto LABEL_11; v1 += 4; v3 = v2 <= 0x1869F; v2 /= 0x2710u; if ( v3 ) { v1 -= 3; goto LABEL_11; } } --v1; } LABEL_11: v23 = v25; std::string::_M_construct(&v23, v1, 0LL); std::__detail::__to_chars_10_impl<unsigned int>(v23, v24, v0); v4 = std::string::replace(&v23, 0LL, 0LL, "/sys/devices/system/cpu/cpu", 27LL); v21[0] = &v22; v5 = (__int128 *)(v4 + 16); if ( *(_QWORD *)v4 == v4 + 16 ) { v22 = *v5; } else { v21[0] = *(void **)v4; *(_QWORD *)&v22 = *(_QWORD *)v5; } v21[1] = *(void **)(v4 + 8); *(_QWORD *)v4 = v5; *(_QWORD *)(v4 + 8) = 0LL; *(_BYTE *)(v4 + 16) = 0; v6 = std::string::append(v21, "/topology/thread_siblings"); v18 = &v20; v7 = (__int128 *)(v6 + 16); if ( *(_QWORD *)v6 == v6 + 16 ) { v20 = *v7; } else { v18 = *(void **)v6; *(_QWORD *)&v20 = *(_QWORD *)v7; } v19 = *(_QWORD *)(v6 + 8); *(_QWORD *)v6 = v7; *(_QWORD *)(v6 + 8) = 0LL; *(_BYTE *)(v6 + 16) = 0; v8 = (long long)&v18; std::ifstream::basic_ifstream(v30, &v18, 8LL); if ( v18 != &v20 ) { v8 = v20 + 1; operator delete(v18, v20 + 1); } if ( v21[0] != &v22 ) { v8 = v22 + 1; operator delete(v21[0], v22 + 1); } if ( v23 != v25 ) { v8 = v25[0] + 1LL; operator delete(v23, v25[0] + 1LL); } if ( !(unsigned __int8)std::__basic_file<char>::is_open(v31) ) break; v18 = &v20; v19 = 0LL; LOBYTE(v20) = 0; v9 = std::ios::widen((char *)v30 + *(_QWORD *)(v30[0] - 24LL), 10LL); v10 = (_QWORD *)std::getline<char,std::char_traits<char>,std::allocator<char>>(v30, &v18, (unsigned int)v9); v13 = *(_QWORD *)(*v10 - 24LL); if ( (*((_BYTE *)v10 + v13 + 32) & 5) == 0 ) { v21[0] = v26; std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::_M_insert<std::string const&,std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::string,true>>>>( (unsigned int)v26, (unsigned int)&v18, (unsigned int)v21, v13, v11, v12, v17); } if ( v18 != &v20 ) operator delete(v18, v20 + 1); std::ifstream::~ifstream(v30); ++v0; v8 = 3518437209LL; if ( v0 == -1 ) goto LABEL_31; } std::ifstream::~ifstream(v30); LABEL_31: v14 = DWORD2(v27); if ( !*((_QWORD *)&v27 + 1) ) { v15 = std::thread::hardware_concurrency((std::thread *)v30); v14 = 4; if ( v15 ) v14 = v15 >> (v15 >= 5); } std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::~_Hashtable( v26, v8); return v14; }
cpu_get_num_physical_cores: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x2a8 LEA RAX,[RSP + 0x98] MOV qword ptr [RAX + -0x30],RAX MOV qword ptr [RAX + -0x28],0x1 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX + -0x20],XMM0 MOV dword ptr [RAX + -0x10],0x3f800000 MOVUPS xmmword ptr [RAX + -0x8],XMM0 LEA RBP,[RSP + 0x38] LEA R13,[RSP + 0x18] XOR R14D,R14D LEA R12,[RSP + 0x48] LEA RBX,[RSP + 0xa0] MOV ESI,0xd1b71759 LAB_0011d366: MOV EAX,0x1 CMP R14D,0xa JC 0x0011d3b1 MOV EAX,0x4 MOV ECX,R14D LAB_0011d379: CMP ECX,0x63 JBE 0x0011d3aa CMP ECX,0x3e7 JBE 0x0011d3af CMP ECX,0x2710 JC 0x0011d3b1 MOV EDX,ECX IMUL RDX,RSI SHR RDX,0x2d ADD EAX,0x4 CMP ECX,0x1869f MOV ECX,EDX JA 0x0011d379 ADD EAX,-0x3 JMP 0x0011d3b1 LAB_0011d3aa: ADD EAX,-0x2 JMP 0x0011d3b1 LAB_0011d3af: DEC EAX LAB_0011d3b1: MOV R15,RBP MOV ESI,EAX LEA RAX,[RSP + 0x58] MOV qword ptr [RSP + 0x48],RAX LAB_0011d3c0: MOV RBP,R12 MOV RDI,R12 XOR EDX,EDX CALL 0x001187a0 MOV RDI,qword ptr [RSP + 0x48] MOV ESI,dword ptr [RSP + 0x50] MOV EDX,R14D CALL 0x0012ae0d LAB_0011d3de: MOV R8D,0x1b MOV R12,RBP MOV RDI,RBP XOR ESI,ESI XOR EDX,EDX LEA RCX,[0x1a83d4] CALL 0x00118750 MOV RBP,R15 MOV qword ptr [RSP + 0x28],R15 MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JZ 0x0011d420 MOV qword ptr [RSP + 0x28],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x38],RDX JMP 0x0011d427 LAB_0011d420: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [RBP],XMM0 LAB_0011d427: MOV RDX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x30],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 LAB_0011d43f: LEA RDI,[RSP + 0x28] LEA RSI,[0x1a83f0] CALL 0x00118cc0 MOV qword ptr [RSP + 0x8],R13 MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JZ 0x0011d473 MOV qword ptr [RSP + 0x8],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x18],RDX JMP 0x0011d47b LAB_0011d473: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [R13],XMM0 LAB_0011d47b: MOV RDX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x10],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 LAB_0011d493: MOV RDI,RBX LEA RSI,[RSP + 0x8] MOV EDX,0x8 CALL 0x00118a70 MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R13 JZ 0x0011d4bc MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001186a0 LAB_0011d4bc: MOV RDI,qword ptr [RSP + 0x28] CMP RDI,RBP JZ 0x0011d4d3 MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x001186a0 LAB_0011d4d3: MOV RDI,qword ptr [RSP + 0x48] LEA RAX,[RSP + 0x58] CMP RDI,RAX JZ 0x0011d4ef MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x001186a0 LAB_0011d4ef: LEA RDI,[RSP + 0x118] CALL 0x00118160 TEST AL,AL JZ 0x0011d59a MOV qword ptr [RSP + 0x8],R13 MOV qword ptr [RSP + 0x10],0x0 MOV byte ptr [RSP + 0x18],0x0 MOV RAX,qword ptr [RSP + 0xa0] MOV RDI,qword ptr [RAX + -0x18] ADD RDI,RBX LAB_0011d526: MOV ESI,0xa CALL 0x00118660 MOVSX EDX,AL MOV RDI,RBX LEA RSI,[RSP + 0x8] CALL 0x00118c50 MOV RCX,qword ptr [RAX] MOV RCX,qword ptr [RCX + -0x18] TEST byte ptr [RAX + RCX*0x1 + 0x20],0x5 JNZ 0x0011d567 LEA RDI,[RSP + 0x68] MOV qword ptr [RSP + 0x28],RDI LEA RSI,[RSP + 0x8] LEA RDX,[RSP + 0x28] CALL 0x0017c920 LAB_0011d567: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R13 JZ 0x0011d57e MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001186a0 LAB_0011d57e: MOV RDI,RBX CALL 0x00118170 INC R14D CMP R14D,-0x1 MOV ESI,0xd1b71759 JNZ 0x0011d366 JMP 0x0011d5a7 LAB_0011d59a: LEA RDI,[RSP + 0xa0] CALL 0x00118170 LAB_0011d5a7: MOV RBX,qword ptr [RSP + 0x80] TEST RBX,RBX JNZ 0x0011d5cd CALL 0x001188d0 CMP EAX,0x5 SETNC CL MOV EDX,EAX SHR EDX,CL TEST EAX,EAX MOV EBX,0x4 CMOVNZ EBX,EDX LAB_0011d5cd: LEA RDI,[RSP + 0x68] CALL 0x0012ae80 MOV EAX,EBX ADD RSP,0x2a8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* WARNING: Unknown calling convention -- yet parameter storage is locked */ /* cpu_get_num_physical_cores() */ ulong cpu_get_num_physical_cores(void) { char cVar1; char cVar2; long *plVar3; istream *piVar4; uint uVar5; int8 **ppuVar6; ulong *puVar7; ulong uVar8; uint uVar9; ulong *local_2d0; long local_2c8; ulong local_2c0; int4 uStack_2b8; int4 uStack_2b4; int8 **local_2b0; long local_2a8; int8 *local_2a0; long lStack_298; long *local_290; uint local_288; long local_280 [2]; int8 *local_270; int8 local_268; int8 local_260; ulong uStack_258; int4 local_250; int8 local_248; int8 uStack_240; long local_238 [65]; local_270 = &uStack_240; local_268 = 1; local_260 = 0; uStack_258 = 0; local_250 = 0x3f800000; local_248 = 0; uStack_240 = 0; uVar9 = 0; do { cVar2 = '\x01'; if (9 < uVar9) { uVar8 = (ulong)uVar9; cVar1 = '\x04'; do { cVar2 = cVar1; uVar5 = (uint)uVar8; if (uVar5 < 100) { cVar2 = cVar2 + -2; goto LAB_0011d3b1; } if (uVar5 < 1000) { cVar2 = cVar2 + -1; goto LAB_0011d3b1; } if (uVar5 < 10000) goto LAB_0011d3b1; uVar8 = uVar8 / 10000; cVar1 = cVar2 + '\x04'; } while (99999 < uVar5); cVar2 = cVar2 + '\x01'; } LAB_0011d3b1: local_290 = local_280; /* try { // try from 0011d3c0 to 0011d3cc has its CatchHandler @ 0011d5f0 */ std::__cxx11::string::_M_construct((ulong)&local_290,cVar2); std::__detail::__to_chars_10_impl<unsigned_int>((char *)local_290,local_288,uVar9); /* try { // try from 0011d3de to 0011d3f9 has its CatchHandler @ 0011d628 */ plVar3 = (long *)std::__cxx11::string::replace((ulong)&local_290,0,(char *)0x0,0x1a83d4); ppuVar6 = (int8 **)(plVar3 + 2); if ((int8 **)*plVar3 == ppuVar6) { local_2a0 = *ppuVar6; lStack_298 = plVar3[3]; local_2b0 = &local_2a0; } else { local_2a0 = *ppuVar6; local_2b0 = (int8 **)*plVar3; } local_2a8 = plVar3[1]; *plVar3 = (long)ppuVar6; plVar3[1] = 0; *(int1 *)(plVar3 + 2) = 0; /* try { // try from 0011d43f to 0011d44f has its CatchHandler @ 0011d5eb */ plVar3 = (long *)std::__cxx11::string::append((char *)&local_2b0); puVar7 = (ulong *)(plVar3 + 2); if ((ulong *)*plVar3 == puVar7) { local_2c0 = *puVar7; uStack_2b8 = (int4)plVar3[3]; uStack_2b4 = *(int4 *)((long)plVar3 + 0x1c); local_2d0 = &local_2c0; } else { local_2c0 = *puVar7; local_2d0 = (ulong *)*plVar3; } local_2c8 = plVar3[1]; *plVar3 = (long)puVar7; plVar3[1] = 0; *(int1 *)(plVar3 + 2) = 0; /* try { // try from 0011d493 to 0011d4a4 has its CatchHandler @ 0011d5f5 */ std::ifstream::ifstream((ifstream *)local_238,&local_2d0,8); if (local_2d0 != &local_2c0) { operator_delete(local_2d0,local_2c0 + 1); } if (local_2b0 != &local_2a0) { operator_delete(local_2b0,(long)local_2a0 + 1); } if (local_290 != local_280) { operator_delete(local_290,local_280[0] + 1); } cVar2 = std::__basic_file<char>::is_open(); if (cVar2 == '\0') { std::ifstream::~ifstream((ifstream *)local_238); goto LAB_0011d5a7; } local_2c8 = 0; local_2c0 = local_2c0 & 0xffffffffffffff00; local_2d0 = &local_2c0; /* try { // try from 0011d526 to 0011d566 has its CatchHandler @ 0011d649 */ cVar2 = std::ios::widen((char)*(int8 *)(local_238[0] + -0x18) + (char)(istream *)local_238 ); piVar4 = std::getline<char,std::char_traits<char>,std::allocator<char>> ((istream *)local_238,(string *)&local_2d0,cVar2); if (((byte)piVar4[*(long *)(*(long *)piVar4 + -0x18) + 0x20] & 5) == 0) { local_2b0 = &local_270; std:: _Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>> :: _M_insert<std::__cxx11::string_const&,std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::__cxx11::string,true>>>> (local_2b0,&local_2d0,&local_2b0); } if (local_2d0 != &local_2c0) { operator_delete(local_2d0,local_2c0 + 1); } std::ifstream::~ifstream((ifstream *)local_238); uVar9 = uVar9 + 1; if (uVar9 == 0xffffffff) { LAB_0011d5a7: uVar8 = uStack_258; if (uStack_258 == 0) { uVar9 = std::thread::hardware_concurrency(); uVar8 = 4; if (uVar9 != 0) { uVar8 = (ulong)(uVar9 >> (4 < uVar9)); } } std:: _Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>> ::~_Hashtable((_Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>> *)&local_270); return uVar8 & 0xffffffff; } } while( true ); }
39,881
mthd_stmt_get_param_metadata
eloqsql/libmariadb/libmariadb/mariadb_stmt.c
my_bool mthd_stmt_get_param_metadata(MYSQL_STMT *stmt) { MYSQL_DATA *result; if (!(result= stmt->mysql->methods->db_read_rows(stmt->mysql, (MYSQL_FIELD *)0, 7 + ma_extended_type_info_rows(stmt->mysql)))) return(1); free_rows(result); return(0); }
O3
c
mthd_stmt_get_param_metadata: pushq %rbp movq %rsp, %rbp movq 0x38(%rdi), %rdi movq 0x4d0(%rdi), %rax movq 0x4f0(%rdi), %rcx xorl %edx, %edx btl $0x3, 0x70(%rcx) adcl $0x7, %edx xorl %esi, %esi callq *0x28(%rax) testq %rax, %rax je 0x25829 movq %rax, %rdi callq 0x1a25a xorl %eax, %eax jmp 0x2582b movb $0x1, %al popq %rbp retq
mthd_stmt_get_param_metadata: push rbp mov rbp, rsp mov rdi, [rdi+38h] mov rax, [rdi+4D0h] mov rcx, [rdi+4F0h] xor edx, edx bt dword ptr [rcx+70h], 3 adc edx, 7 xor esi, esi call qword ptr [rax+28h] test rax, rax jz short loc_25829 mov rdi, rax call free_rows xor eax, eax jmp short loc_2582B loc_25829: mov al, 1 loc_2582B: pop rbp retn
long long mthd_stmt_get_param_metadata(long long a1) { long long v1; // rax v1 = (*(long long ( **)(_QWORD, _QWORD, _QWORD))(*(_QWORD *)(*(_QWORD *)(a1 + 56) + 1232LL) + 40LL))( *(_QWORD *)(a1 + 56), 0LL, (unsigned int)_bittest((const signed __int32 *)(*(_QWORD *)(*(_QWORD *)(a1 + 56) + 1264LL) + 112LL), 3u) + 7); if ( !v1 ) return 1LL; free_rows(v1); return 0LL; }
mthd_stmt_get_param_metadata: PUSH RBP MOV RBP,RSP MOV RDI,qword ptr [RDI + 0x38] MOV RAX,qword ptr [RDI + 0x4d0] MOV RCX,qword ptr [RDI + 0x4f0] XOR EDX,EDX BT dword ptr [RCX + 0x70],0x3 ADC EDX,0x7 XOR ESI,ESI CALL qword ptr [RAX + 0x28] TEST RAX,RAX JZ 0x00125829 MOV RDI,RAX CALL 0x0011a25a XOR EAX,EAX JMP 0x0012582b LAB_00125829: MOV AL,0x1 LAB_0012582b: POP RBP RET
bool mthd_stmt_get_param_metadata(long param_1) { long lVar1; lVar1 = *(long *)(param_1 + 0x38); lVar1 = (**(code **)(*(long *)(lVar1 + 0x4d0) + 0x28)) (lVar1,0,((*(uint *)(*(long *)(lVar1 + 0x4f0) + 0x70) >> 3 & 1) != 0) + '\a'); if (lVar1 != 0) { free_rows(lVar1); } return lVar1 == 0; }
39,882
thr_downgrade_write_lock
eloqsql/mysys/thr_lock.c
void thr_downgrade_write_lock(THR_LOCK_DATA *in_data, enum thr_lock_type new_lock_type) { THR_LOCK *lock=in_data->lock; #ifdef DBUG_ASSERT_EXISTS enum thr_lock_type old_lock_type= in_data->type; #endif DBUG_ENTER("thr_downgrade_write_only_lock"); mysql_mutex_lock(&lock->mutex); DBUG_ASSERT(old_lock_type == TL_WRITE_ONLY); DBUG_ASSERT(old_lock_type > new_lock_type); in_data->type= new_lock_type; check_locks(lock,"after downgrading lock", old_lock_type, 0); mysql_mutex_unlock(&lock->mutex); DBUG_VOID_RETURN; }
O3
c
thr_downgrade_write_lock: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movl %esi, %r14d movq %rdi, %r15 movq 0x18(%rdi), %r12 leaq 0x18(%r12), %rbx cmpq $0x0, 0x58(%r12) jne 0x60a2f movq %rbx, %rdi callq 0x285a0 movl %r14d, 0x40(%r15) movq 0x58(%r12), %rdi testq %rdi, %rdi jne 0x60a45 movq %rbx, %rdi popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp jmp 0x28280 leaq 0x36da6(%rip), %rsi # 0x977dc movq %rbx, %rdi movl $0x591, %edx # imm = 0x591 callq 0x29f5c jmp 0x60a11 leaq 0x2d5e7c(%rip), %rax # 0x3368c8 movq (%rax), %rax callq *0x160(%rax) jmp 0x60a1f
thr_downgrade_write_lock: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov r14d, esi mov r15, rdi mov r12, [rdi+18h] lea rbx, [r12+18h] cmp qword ptr [r12+58h], 0 jnz short loc_60A2F mov rdi, rbx call _pthread_mutex_lock loc_60A11: mov [r15+40h], r14d mov rdi, [r12+58h] test rdi, rdi jnz short loc_60A45 loc_60A1F: mov rdi, rbx pop rbx pop r12 pop r14 pop r15 pop rbp jmp _pthread_mutex_unlock loc_60A2F: lea rsi, aWorkspaceLlm4b_11; "/workspace/llm4binary/github2025/eloqsq"... mov rdi, rbx mov edx, 591h call psi_mutex_lock jmp short loc_60A11 loc_60A45: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp short loc_60A1F
long long thr_downgrade_write_lock(long long a1, int a2) { long long v2; // r12 v2 = *(_QWORD *)(a1 + 24); if ( *(_QWORD *)(v2 + 88) ) psi_mutex_lock(v2 + 24, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c", 0x591u); else pthread_mutex_lock(v2 + 24); *(_DWORD *)(a1 + 64) = a2; if ( *(_QWORD *)(v2 + 88) ) (*((void (**)(void))PSI_server + 44))(); return pthread_mutex_unlock(v2 + 24); }
thr_downgrade_write_lock: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV R14D,ESI MOV R15,RDI MOV R12,qword ptr [RDI + 0x18] LEA RBX,[R12 + 0x18] CMP qword ptr [R12 + 0x58],0x0 JNZ 0x00160a2f MOV RDI,RBX CALL 0x001285a0 LAB_00160a11: MOV dword ptr [R15 + 0x40],R14D MOV RDI,qword ptr [R12 + 0x58] TEST RDI,RDI JNZ 0x00160a45 LAB_00160a1f: MOV RDI,RBX POP RBX POP R12 POP R14 POP R15 POP RBP JMP 0x00128280 LAB_00160a2f: LEA RSI,[0x1977dc] MOV RDI,RBX MOV EDX,0x591 CALL 0x00129f5c JMP 0x00160a11 LAB_00160a45: LEA RAX,[0x4368c8] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x00160a1f
void thr_downgrade_write_lock(long param_1,int4 param_2) { pthread_mutex_t *__mutex; long lVar1; lVar1 = *(long *)(param_1 + 0x18); __mutex = (pthread_mutex_t *)(lVar1 + 0x18); if (*(long *)(lVar1 + 0x58) == 0) { pthread_mutex_lock(__mutex); } else { psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c",0x591); } *(int4 *)(param_1 + 0x40) = param_2; if (*(long *)(lVar1 + 0x58) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock(__mutex); return; }
39,883
Generator::gen_bin_expr(NodeBinExpr const*)::BinExprVisitor::operator()(NodeBinExprDiv const*) const
BhuvanGudi[P]LexiParse/src/generation.hpp
void operator()(const NodeBinExprDiv* div) const { gen.gen_expr(div->rhs); gen.gen_expr(div->lhs); gen.pop("rax"); gen.pop("rbx"); gen.m_output << " div rbx\n"; gen.push("rax"); }
O2
cpp
Generator::gen_bin_expr(NodeBinExpr const*)::BinExprVisitor::operator()(NodeBinExprDiv const*) const: pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rsi, %r14 movq %rdi, %rbx movq (%rdi), %rax movq 0x8(%rsi), %rsi leaq 0x8(%rsp), %r15 movq %rax, (%r15) movzbl 0x8(%rsi), %eax leaq 0x6797(%rip), %r12 # 0xcd40 movq %r15, %rdi callq *(%r12,%rax,8) movq (%rbx), %rax movq (%r14), %rsi movq %rax, (%r15) movzbl 0x8(%rsi), %eax leaq 0x8(%rsp), %rdi callq *(%r12,%rax,8) movq (%rbx), %r14 leaq 0x1e49(%rip), %rsi # 0x8419 leaq 0x8(%rsp), %rdi leaq 0x7(%rsp), %rdx callq 0x43bc leaq 0x8(%rsp), %rsi movq %r14, %rdi callq 0x5e6e leaq 0x8(%rsp), %rdi callq 0x27ea movq (%rbx), %r14 leaq 0x1e4f(%rip), %rsi # 0x844f leaq 0x8(%rsp), %rdi leaq 0x7(%rsp), %rdx callq 0x43bc leaq 0x8(%rsp), %rsi movq %r14, %rdi callq 0x5e6e leaq 0x8(%rsp), %rdi callq 0x27ea movq (%rbx), %rdi addq $0x28, %rdi leaq 0x1e50(%rip), %rsi # 0x8484 callq 0x21a0 movq (%rbx), %rbx leaq 0x1dd6(%rip), %rsi # 0x8419 leaq 0x8(%rsp), %rdi leaq 0x7(%rsp), %rdx callq 0x43bc leaq 0x8(%rsp), %rsi movq %rbx, %rdi callq 0x5fa6 leaq 0x8(%rsp), %rdi callq 0x27ea addq $0x28, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq jmp 0x667d jmp 0x668c jmp 0x667d jmp 0x668c movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x27ea jmp 0x668f movq %rax, %rbx movq %rbx, %rdi callq 0x2270
_ZZN9Generator12gen_bin_exprEPK11NodeBinExprENK14BinExprVisitorclEPK14NodeBinExprDiv: push r15 push r14 push r12 push rbx sub rsp, 28h mov r14, rsi mov rbx, rdi mov rax, [rdi] mov rsi, [rsi+8] lea r15, [rsp+48h+var_40] mov [r15], rax movzx eax, byte ptr [rsi+8] lea r12, _ZNSt8__detail9__variant12__gen_vtableINS0_21__deduce_visit_resultIvEERZN9Generator8gen_exprEPK8NodeExprE11ExprVisitorJRKSt7variantIJP8NodeTermP11NodeBinExprEEEE9_S_vtableE; std::__detail::__variant::__gen_vtable<std::__detail::__variant::__deduce_visit_result<void>,Generator::gen_expr(NodeExpr const*)::ExprVisitor &,std::variant<NodeTerm *,NodeBinExpr *> const&>::_S_vtable mov rdi, r15 call ds:(_ZNSt8__detail9__variant12__gen_vtableINS0_21__deduce_visit_resultIvEERZN9Generator8gen_exprEPK8NodeExprE11ExprVisitorJRKSt7variantIJP8NodeTermP11NodeBinExprEEEE9_S_vtableE - 0CD40h)[r12+rax*8]; std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<std::__detail::__variant::__deduce_visit_result<void> (*)(Generator::gen_expr(NodeExpr const*)::ExprVisitor &,std::variant<NodeTerm *,NodeBinExpr *> const&)>,std::integer_sequence<ulong,0ul>>::__visit_invoke(Generator::gen_expr(NodeExpr const*)::ExprVisitor &,std::variant<NodeTerm *,NodeBinExpr *> const&) mov rax, [rbx] mov rsi, [r14] mov [r15], rax movzx eax, byte ptr [rsi+8] lea rdi, [rsp+48h+var_40] call ds:(_ZNSt8__detail9__variant12__gen_vtableINS0_21__deduce_visit_resultIvEERZN9Generator8gen_exprEPK8NodeExprE11ExprVisitorJRKSt7variantIJP8NodeTermP11NodeBinExprEEEE9_S_vtableE - 0CD40h)[r12+rax*8]; std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<std::__detail::__variant::__deduce_visit_result<void> (*)(Generator::gen_expr(NodeExpr const*)::ExprVisitor &,std::variant<NodeTerm *,NodeBinExpr *> const&)>,std::integer_sequence<ulong,0ul>>::__visit_invoke(Generator::gen_expr(NodeExpr const*)::ExprVisitor &,std::variant<NodeTerm *,NodeBinExpr *> const&) mov r14, [rbx] lea rsi, aRax; "rax" lea rdi, [rsp+48h+var_40] lea rdx, [rsp+48h+var_41] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rsi, [rsp+48h+var_40] mov rdi, r14 call _ZN9Generator3popERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; Generator::pop(std::string const&) lea rdi, [rsp+48h+var_40] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov r14, [rbx] lea rsi, aRbx; "rbx" lea rdi, [rsp+48h+var_40] lea rdx, [rsp+48h+var_41] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rsi, [rsp+48h+var_40] mov rdi, r14 call _ZN9Generator3popERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; Generator::pop(std::string const&) lea rdi, [rsp+48h+var_40] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, [rbx] add rdi, 28h ; '(' lea rsi, aDivRbx; " div rbx\n" call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov rbx, [rbx] lea rsi, aRax; "rax" lea rdi, [rsp+48h+var_40] lea rdx, [rsp+48h+var_41] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rsi, [rsp+48h+var_40] mov rdi, rbx call _ZN9Generator4pushERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; Generator::push(std::string const&) lea rdi, [rsp+48h+var_40] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() add rsp, 28h pop rbx pop r12 pop r14 pop r15 retn jmp short loc_667D jmp short loc_668C jmp short loc_667D jmp short loc_668C loc_667D: mov rbx, rax lea rdi, [rsp+arg_0] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_668F loc_668C: mov rbx, rax loc_668F: mov rdi, rbx call __Unwind_Resume
long long Generator::gen_bin_expr(NodeBinExpr const*)::BinExprVisitor::operator()(long long *a1, long long *a2) { long long v3; // rsi long long v4; // rsi long long v5; // r14 long long v6; // rdx long long v7; // r14 long long v8; // rdx long long v9; // rdx long long v10; // rbx long long v11; // rdx long long result; // rax _QWORD v13[8]; // [rsp+8h] [rbp-40h] BYREF v3 = a2[1]; v13[0] = *a1; ((void ( *)(_QWORD *))*(&std::__detail::__variant::__gen_vtable<std::__detail::__variant::__deduce_visit_result<void>,Generator::gen_expr(NodeExpr const*)::ExprVisitor &,std::variant<NodeTerm *,NodeBinExpr *> const&>::_S_vtable + *(unsigned __int8 *)(v3 + 8)))(v13); v4 = *a2; v13[0] = *a1; ((void ( *)(_QWORD *))*(&std::__detail::__variant::__gen_vtable<std::__detail::__variant::__deduce_visit_result<void>,Generator::gen_expr(NodeExpr const*)::ExprVisitor &,std::variant<NodeTerm *,NodeBinExpr *> const&>::_S_vtable + *(unsigned __int8 *)(v4 + 8)))(v13); v5 = *a1; std::string::basic_string<std::allocator<char>>(v13, (long long)"rax"); Generator::pop(v5, (long long)v13, v6); std::string::~string(); v7 = *a1; std::string::basic_string<std::allocator<char>>(v13, (long long)"rbx"); Generator::pop(v7, (long long)v13, v8); std::string::~string(); std::operator<<<std::char_traits<char>>(*a1 + 40, " div rbx\n", v9); v10 = *a1; std::string::basic_string<std::allocator<char>>(v13, (long long)"rax"); result = Generator::push(v10, (long long)v13, v11); std::string::~string(); return result; }
operator(): PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x28 MOV R14,RSI MOV RBX,RDI MOV RAX,qword ptr [RDI] MOV RSI,qword ptr [RSI + 0x8] LEA R15,[RSP + 0x8] MOV qword ptr [R15],RAX MOVZX EAX,byte ptr [RSI + 0x8] LEA R12,[0x10cd40] MOV RDI,R15 CALL qword ptr [R12 + RAX*0x8] MOV RAX,qword ptr [RBX] MOV RSI,qword ptr [R14] MOV qword ptr [R15],RAX MOVZX EAX,byte ptr [RSI + 0x8] LEA RDI,[RSP + 0x8] CALL qword ptr [R12 + RAX*0x8] MOV R14,qword ptr [RBX] LAB_001065c9: LEA RSI,[0x108419] LEA RDI,[RSP + 0x8] LEA RDX,[RSP + 0x7] CALL 0x001043bc LAB_001065df: LEA RSI,[RSP + 0x8] MOV RDI,R14 CALL 0x00105e6e LEA RDI,[RSP + 0x8] CALL 0x001027ea MOV R14,qword ptr [RBX] LAB_001065f9: LEA RSI,[0x10844f] LEA RDI,[RSP + 0x8] LEA RDX,[RSP + 0x7] CALL 0x001043bc LAB_0010660f: LEA RSI,[RSP + 0x8] MOV RDI,R14 CALL 0x00105e6e LAB_0010661c: LEA RDI,[RSP + 0x8] CALL 0x001027ea MOV RDI,qword ptr [RBX] ADD RDI,0x28 LEA RSI,[0x108484] CALL 0x001021a0 MOV RBX,qword ptr [RBX] LAB_0010663c: LEA RSI,[0x108419] LEA RDI,[RSP + 0x8] LEA RDX,[RSP + 0x7] CALL 0x001043bc LAB_00106652: LEA RSI,[RSP + 0x8] MOV RDI,RBX CALL 0x00105fa6 LAB_0010665f: LEA RDI,[RSP + 0x8] CALL 0x001027ea ADD RSP,0x28 POP RBX POP R12 POP R14 POP R15 RET
/* Generator::gen_bin_expr(NodeBinExpr const*)::BinExprVisitor::TEMPNAMEPLACEHOLDERVALUE(NodeBinExprDiv const*) const */ void __thiscall Generator::gen_bin_expr(NodeBinExpr_const*)::BinExprVisitor::operator() (BinExprVisitor *this,NodeBinExprDiv *param_1) { Generator *pGVar1; allocator local_41; int8 local_40 [4]; local_40[0] = *(int8 *)this; (**(code **)(std::__detail::__variant:: __gen_vtable<std::__detail::__variant::__deduce_visit_result<void>,Generator::gen_expr(NodeExpr_const*)::ExprVisitor&,std::variant<NodeTerm*,NodeBinExpr*>const&> ::_S_vtable + (ulong)*(byte *)(*(long *)(param_1 + 8) + 8) * 8))(local_40); local_40[0] = *(int8 *)this; (**(code **)(std::__detail::__variant:: __gen_vtable<std::__detail::__variant::__deduce_visit_result<void>,Generator::gen_expr(NodeExpr_const*)::ExprVisitor&,std::variant<NodeTerm*,NodeBinExpr*>const&> ::_S_vtable + (ulong)*(byte *)(*(long *)param_1 + 8) * 8))(local_40); pGVar1 = *(Generator **)this; /* try { // try from 001065c9 to 001065de has its CatchHandler @ 0010668c */ std::__cxx11::string::string<std::allocator<char>>((string *)local_40,"rax",&local_41); /* try { // try from 001065df to 001065eb has its CatchHandler @ 0010667d */ pop(pGVar1,(string *)local_40); std::__cxx11::string::~string((string *)local_40); pGVar1 = *(Generator **)this; /* try { // try from 001065f9 to 0010660e has its CatchHandler @ 0010667b */ std::__cxx11::string::string<std::allocator<char>>((string *)local_40,"rbx",&local_41); /* try { // try from 0010660f to 0010661b has its CatchHandler @ 00106679 */ pop(pGVar1,(string *)local_40); std::__cxx11::string::~string((string *)local_40); std::operator<<((ostream *)(*(long *)this + 0x28)," div rbx\n"); pGVar1 = *(Generator **)this; /* try { // try from 0010663c to 00106651 has its CatchHandler @ 00106677 */ std::__cxx11::string::string<std::allocator<char>>((string *)local_40,"rax",&local_41); /* try { // try from 00106652 to 0010665e has its CatchHandler @ 00106675 */ push(pGVar1,(string *)local_40); std::__cxx11::string::~string((string *)local_40); return; }
39,884
ps_fetch_int32
eloqsql/libmariadb/libmariadb/ma_stmt_codec.c
static void ps_fetch_int32(MYSQL_BIND *r_param, const MYSQL_FIELD * const field, unsigned char **row) { switch (r_param->buffer_type) { /* case MYSQL_TYPE_TINY: ps_fetch_from_1_to_8_bytes(r_param, field, row, 1); break; case MYSQL_TYPE_YEAR: case MYSQL_TYPE_SHORT: ps_fetch_from_1_to_8_bytes(r_param, field, row, 2); break; */ case MYSQL_TYPE_INT24: case MYSQL_TYPE_LONG: ps_fetch_from_1_to_8_bytes(r_param, field, row, 4); break; default: { int32 sval= sint4korr(*row); longlong lval= field->flags & UNSIGNED_FLAG ? (longlong)(uint32) sval : (longlong)sval; convert_from_long(r_param, field, lval, field->flags & UNSIGNED_FLAG); (*row) += 4; } break; } }
O3
c
ps_fetch_int32: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq %rdx, %rbx movl 0x60(%rdi), %eax cmpl $0x9, %eax je 0x237ad cmpl $0x3, %eax jne 0x237c0 movq %rbx, %rdx movl $0x4, %ecx addq $0x8, %rsp popq %rbx popq %rbp jmp 0x22b90 movq (%rbx), %rax movslq (%rax), %rax movl 0x64(%rsi), %ecx andl $0x20, %ecx movl %eax, %edx cmoveq %rax, %rdx callq 0x2426b addq $0x4, (%rbx) addq $0x8, %rsp popq %rbx popq %rbp retq
ps_fetch_int32: push rbp mov rbp, rsp push rbx push rax mov rbx, rdx mov eax, [rdi+60h] cmp eax, 9 jz short loc_237AD cmp eax, 3 jnz short loc_237C0 loc_237AD: mov rdx, rbx mov ecx, 4 add rsp, 8 pop rbx pop rbp jmp ps_fetch_from_1_to_8_bytes loc_237C0: mov rax, [rbx] movsxd rax, dword ptr [rax] mov ecx, [rsi+64h] and ecx, 20h mov edx, eax cmovz rdx, rax call convert_from_long add qword ptr [rbx], 4 add rsp, 8 pop rbx pop rbp retn
long long ps_fetch_int32(long long a1, long long a2, _BYTE **a3) { int v4; // eax long long result; // rax long long v6; // rdx v4 = *(_DWORD *)(a1 + 96); if ( v4 == 9 || v4 == 3 ) return ps_fetch_from_1_to_8_bytes(a1, a2, a3, 4u); v6 = *(unsigned int *)*a3; if ( (*(_DWORD *)(a2 + 100) & 0x20) == 0 ) v6 = *(int *)*a3; result = convert_from_long(a1, a2, v6, *(_DWORD *)(a2 + 100) & 0x20); *a3 += 4; return result; }
ps_fetch_int32: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RBX,RDX MOV EAX,dword ptr [RDI + 0x60] CMP EAX,0x9 JZ 0x001237ad CMP EAX,0x3 JNZ 0x001237c0 LAB_001237ad: MOV RDX,RBX MOV ECX,0x4 ADD RSP,0x8 POP RBX POP RBP JMP 0x00122b90 LAB_001237c0: MOV RAX,qword ptr [RBX] MOVSXD RAX,dword ptr [RAX] MOV ECX,dword ptr [RSI + 0x64] AND ECX,0x20 MOV EDX,EAX CMOVZ RDX,RAX CALL 0x0012426b ADD qword ptr [RBX],0x4 ADD RSP,0x8 POP RBX POP RBP RET
void ps_fetch_int32(long param_1,long param_2,long *param_3) { ulong uVar1; if ((*(int *)(param_1 + 0x60) != 9) && (*(int *)(param_1 + 0x60) != 3)) { uVar1 = (ulong)*(uint *)*param_3; if ((*(uint *)(param_2 + 100) & 0x20) == 0) { uVar1 = (long)(int)*(uint *)*param_3; } convert_from_long(param_1,param_2,uVar1); *param_3 = *param_3 + 4; return; } ps_fetch_from_1_to_8_bytes(param_1,param_2,param_3,4); return; }
39,885
ma_cmp_block_unique
eloqsql/storage/maria/ma_blockrec.c
my_bool _ma_cmp_block_unique(MARIA_HA *info, MARIA_UNIQUEDEF *def, const uchar *record, MARIA_RECORD_POS pos) { uchar *org_rec_buff, *old_record; size_t org_rec_buff_size; int error; my_bool buff_alloced; DBUG_ENTER("_ma_cmp_block_unique"); alloc_on_stack(*info->stack_end_ptr, old_record, buff_alloced, info->s->base.reclength); if (!old_record) DBUG_RETURN(1); /* Don't let the compare destroy blobs that may be in use */ org_rec_buff= info->rec_buff; org_rec_buff_size= info->rec_buff_size; if (info->s->base.blobs) { /* Force realloc of record buffer*/ info->rec_buff= 0; info->rec_buff_size= 0; } error= _ma_read_block_record(info, old_record, pos); if (!error) error= _ma_unique_comp(def, record, old_record, def->null_are_equal); if (info->s->base.blobs) { my_free(info->rec_buff); info->rec_buff= org_rec_buff; info->rec_buff_size= org_rec_buff_size; } DBUG_PRINT("exit", ("result: %d", error)); stack_alloc_free(old_record, buff_alloced); DBUG_RETURN(error != 0); }
O0
c
ma_cmp_block_unique: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x18(%rbp) movq %rsi, -0x20(%rbp) movq %rdx, -0x28(%rbp) movq %rcx, -0x30(%rbp) movq -0x18(%rbp), %rax movq (%rax), %rax movq 0x398(%rax), %rax movq %rax, -0x58(%rbp) movq -0x18(%rbp), %rax movq 0x78(%rax), %rax movq (%rax), %rax leaq -0x58(%rbp), %rcx subq %rcx, %rax movq %rax, -0x60(%rbp) movq -0x60(%rbp), %rax cmpq -0x58(%rbp), %rax jbe 0x787ef movq -0x60(%rbp), %rcx subq -0x58(%rbp), %rcx movl $0x10000, %eax # imm = 0x10000 cmpq %rcx, %rax jb 0x787c6 movq -0x60(%rbp), %rcx subq -0x58(%rbp), %rcx movl $0x8000, %eax # imm = 0x8000 cmpq %rcx, %rax jae 0x787ef movl $0x1000, %eax # imm = 0x1000 cmpq -0x58(%rbp), %rax ja 0x787ef movb $0x0, -0x4d(%rbp) movq -0x18(%rbp), %rax movq (%rax), %rax movq 0x398(%rax), %rcx addq $0xf, %rcx andq $-0x10, %rcx movq %rsp, %rax subq %rcx, %rax movq %rax, %rsp movq %rax, -0x40(%rbp) jmp 0x78811 movb $0x1, -0x4d(%rbp) movq -0x18(%rbp), %rax movq (%rax), %rax movq 0x398(%rax), %rsi xorl %edi, %edi movl $0x10010, %edx # imm = 0x10010 callq 0xf3830 movq %rax, -0x40(%rbp) jmp 0x78813 cmpq $0x0, -0x40(%rbp) jne 0x78825 jmp 0x7881c movb $0x1, -0x9(%rbp) jmp 0x78908 movq -0x18(%rbp), %rax movq 0x3a0(%rax), %rax movq %rax, -0x38(%rbp) movq -0x18(%rbp), %rax movq 0x460(%rax), %rax movq %rax, -0x48(%rbp) movq -0x18(%rbp), %rax movq (%rax), %rax cmpl $0x0, 0x3f0(%rax) je 0x78871 movq -0x18(%rbp), %rax movq $0x0, 0x3a0(%rax) movq -0x18(%rbp), %rax movq $0x0, 0x460(%rax) movq -0x18(%rbp), %rdi movq -0x40(%rbp), %rsi movq -0x30(%rbp), %rdx callq 0x78520 movl %eax, -0x4c(%rbp) cmpl $0x0, -0x4c(%rbp) jne 0x788aa movq -0x20(%rbp), %rdi movq -0x28(%rbp), %rsi movq -0x40(%rbp), %rdx movq -0x20(%rbp), %rax movsbl 0x3(%rax), %ecx callq 0x46120 movsbl %al, %eax movl %eax, -0x4c(%rbp) movq -0x18(%rbp), %rax movq (%rax), %rax cmpl $0x0, 0x3f0(%rax) je 0x788e8 movq -0x18(%rbp), %rax movq 0x3a0(%rax), %rdi callq 0xf3bb0 movq -0x38(%rbp), %rcx movq -0x18(%rbp), %rax movq %rcx, 0x3a0(%rax) movq -0x48(%rbp), %rcx movq -0x18(%rbp), %rax movq %rcx, 0x460(%rax) jmp 0x788ea jmp 0x788ec movq -0x40(%rbp), %rdi movsbl -0x4d(%rbp), %esi callq 0x78930 cmpl $0x0, -0x4c(%rbp) setne %al andb $0x1, %al movzbl %al, %eax movb %al, -0x9(%rbp) movb -0x9(%rbp), %al movb %al, -0x61(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x78928 movb -0x61(%rbp), %al movq %rbp, %rsp popq %rbp retq callq 0x2a270 nopl (%rax)
_ma_cmp_block_unique: push rbp mov rbp, rsp sub rsp, 70h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_18], rdi mov [rbp+var_20], rsi mov [rbp+var_28], rdx mov [rbp+var_30], rcx mov rax, [rbp+var_18] mov rax, [rax] mov rax, [rax+398h] mov [rbp+var_58], rax mov rax, [rbp+var_18] mov rax, [rax+78h] mov rax, [rax] lea rcx, [rbp+var_58] sub rax, rcx mov [rbp+var_60], rax mov rax, [rbp+var_60] cmp rax, [rbp+var_58] jbe short loc_787EF mov rcx, [rbp+var_60] sub rcx, [rbp+var_58] mov eax, 10000h cmp rax, rcx jb short loc_787C6 mov rcx, [rbp+var_60] sub rcx, [rbp+var_58] mov eax, 8000h cmp rax, rcx jnb short loc_787EF mov eax, 1000h cmp rax, [rbp+var_58] ja short loc_787EF loc_787C6: mov [rbp+var_4D], 0 mov rax, [rbp+var_18] mov rax, [rax] mov rcx, [rax+398h] add rcx, 0Fh and rcx, 0FFFFFFFFFFFFFFF0h mov rax, rsp sub rax, rcx mov rsp, rax mov [rbp+var_40], rax jmp short loc_78811 loc_787EF: mov [rbp+var_4D], 1 mov rax, [rbp+var_18] mov rax, [rax] mov rsi, [rax+398h] xor edi, edi mov edx, offset stru_10010 call my_malloc mov [rbp+var_40], rax loc_78811: jmp short $+2 loc_78813: cmp [rbp+var_40], 0 jnz short loc_78825 jmp short $+2 loc_7881C: mov [rbp+var_9], 1 jmp loc_78908 loc_78825: mov rax, [rbp+var_18] mov rax, [rax+3A0h] mov [rbp+var_38], rax mov rax, [rbp+var_18] mov rax, [rax+460h] mov [rbp+var_48], rax mov rax, [rbp+var_18] mov rax, [rax] cmp dword ptr [rax+3F0h], 0 jz short loc_78871 mov rax, [rbp+var_18] mov qword ptr [rax+3A0h], 0 mov rax, [rbp+var_18] mov qword ptr [rax+460h], 0 loc_78871: mov rdi, [rbp+var_18] mov rsi, [rbp+var_40] mov rdx, [rbp+var_30] call _ma_read_block_record mov [rbp+var_4C], eax cmp [rbp+var_4C], 0 jnz short loc_788AA mov rdi, [rbp+var_20] mov rsi, [rbp+var_28] mov rdx, [rbp+var_40] mov rax, [rbp+var_20] movsx ecx, byte ptr [rax+3] call _ma_unique_comp movsx eax, al mov [rbp+var_4C], eax loc_788AA: mov rax, [rbp+var_18] mov rax, [rax] cmp dword ptr [rax+3F0h], 0 jz short loc_788E8 mov rax, [rbp+var_18] mov rdi, [rax+3A0h] call my_free mov rcx, [rbp+var_38] mov rax, [rbp+var_18] mov [rax+3A0h], rcx mov rcx, [rbp+var_48] mov rax, [rbp+var_18] mov [rax+460h], rcx loc_788E8: jmp short $+2 loc_788EA: jmp short $+2 loc_788EC: mov rdi, [rbp+var_40] movsx esi, [rbp+var_4D] call stack_alloc_free_1 cmp [rbp+var_4C], 0 setnz al and al, 1 movzx eax, al mov [rbp+var_9], al loc_78908: mov al, [rbp+var_9] mov [rbp+var_61], al mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_78928 mov al, [rbp+var_61] mov rsp, rbp pop rbp retn loc_78928: call ___stack_chk_fail
bool ma_cmp_block_unique(long long a1, long long a2, long long a3, unsigned long long a4) { long long v5; // [rsp+0h] [rbp-70h] BYREF unsigned long long v6; // [rsp+10h] [rbp-60h] unsigned long long v7; // [rsp+18h] [rbp-58h] BYREF char v8; // [rsp+23h] [rbp-4Dh] int block_record; // [rsp+24h] [rbp-4Ch] long long v10; // [rsp+28h] [rbp-48h] long long v11; // [rsp+30h] [rbp-40h] long long v12; // [rsp+38h] [rbp-38h] unsigned long long v13; // [rsp+40h] [rbp-30h] long long v14; // [rsp+48h] [rbp-28h] long long v15; // [rsp+50h] [rbp-20h] _QWORD *v16; // [rsp+58h] [rbp-18h] unsigned long long v18; // [rsp+68h] [rbp-8h] v18 = __readfsqword(0x28u); v16 = (_QWORD *)a1; v15 = a2; v14 = a3; v13 = a4; v7 = *(_QWORD *)(*(_QWORD *)a1 + 920LL); v6 = **(_QWORD **)(a1 + 120) - (_QWORD)&v7; if ( v6 <= v7 || v6 - v7 <= 0x10000 && (v6 - v7 <= 0x8000 || v7 < 0x1000) ) { v8 = 1; v11 = my_malloc(0LL, *(_QWORD *)(*v16 + 920LL), &stru_10010); } else { v8 = 0; v11 = (long long)&v5 - ((*(_QWORD *)(*v16 + 920LL) + 15LL) & 0xFFFFFFFFFFFFFFF0LL); } if ( !v11 ) return 1; v12 = v16[116]; v10 = v16[140]; if ( *(_DWORD *)(*v16 + 1008LL) ) { v16[116] = 0LL; v16[140] = 0LL; } block_record = ma_read_block_record(v16, v11, v13); if ( !block_record ) block_record = ma_unique_comp(v15, v14, v11, *(_BYTE *)(v15 + 3)); if ( *(_DWORD *)(*v16 + 1008LL) ) { my_free(v16[116]); v16[116] = v12; v16[140] = v10; } stack_alloc_free_1(v11, (unsigned int)v8); return block_record != 0; }
_ma_cmp_block_unique: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x18],RDI MOV qword ptr [RBP + -0x20],RSI MOV qword ptr [RBP + -0x28],RDX MOV qword ptr [RBP + -0x30],RCX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x398] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x78] MOV RAX,qword ptr [RAX] LEA RCX,[RBP + -0x58] SUB RAX,RCX MOV qword ptr [RBP + -0x60],RAX MOV RAX,qword ptr [RBP + -0x60] CMP RAX,qword ptr [RBP + -0x58] JBE 0x001787ef MOV RCX,qword ptr [RBP + -0x60] SUB RCX,qword ptr [RBP + -0x58] MOV EAX,0x10000 CMP RAX,RCX JC 0x001787c6 MOV RCX,qword ptr [RBP + -0x60] SUB RCX,qword ptr [RBP + -0x58] MOV EAX,0x8000 CMP RAX,RCX JNC 0x001787ef MOV EAX,0x1000 CMP RAX,qword ptr [RBP + -0x58] JA 0x001787ef LAB_001787c6: MOV byte ptr [RBP + -0x4d],0x0 MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] MOV RCX,qword ptr [RAX + 0x398] ADD RCX,0xf AND RCX,-0x10 MOV RAX,RSP SUB RAX,RCX MOV RSP,RAX MOV qword ptr [RBP + -0x40],RAX JMP 0x00178811 LAB_001787ef: MOV byte ptr [RBP + -0x4d],0x1 MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] MOV RSI,qword ptr [RAX + 0x398] XOR EDI,EDI MOV EDX,0x10010 CALL 0x001f3830 MOV qword ptr [RBP + -0x40],RAX LAB_00178811: JMP 0x00178813 LAB_00178813: CMP qword ptr [RBP + -0x40],0x0 JNZ 0x00178825 JMP 0x0017881c LAB_0017881c: MOV byte ptr [RBP + -0x9],0x1 JMP 0x00178908 LAB_00178825: MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x3a0] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x460] MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] CMP dword ptr [RAX + 0x3f0],0x0 JZ 0x00178871 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x3a0],0x0 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x460],0x0 LAB_00178871: MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x40] MOV RDX,qword ptr [RBP + -0x30] CALL 0x00178520 MOV dword ptr [RBP + -0x4c],EAX CMP dword ptr [RBP + -0x4c],0x0 JNZ 0x001788aa MOV RDI,qword ptr [RBP + -0x20] MOV RSI,qword ptr [RBP + -0x28] MOV RDX,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RBP + -0x20] MOVSX ECX,byte ptr [RAX + 0x3] CALL 0x00146120 MOVSX EAX,AL MOV dword ptr [RBP + -0x4c],EAX LAB_001788aa: MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] CMP dword ptr [RAX + 0x3f0],0x0 JZ 0x001788e8 MOV RAX,qword ptr [RBP + -0x18] MOV RDI,qword ptr [RAX + 0x3a0] CALL 0x001f3bb0 MOV RCX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x3a0],RCX MOV RCX,qword ptr [RBP + -0x48] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x460],RCX LAB_001788e8: JMP 0x001788ea LAB_001788ea: JMP 0x001788ec LAB_001788ec: MOV RDI,qword ptr [RBP + -0x40] MOVSX ESI,byte ptr [RBP + -0x4d] CALL 0x00178930 CMP dword ptr [RBP + -0x4c],0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL MOV byte ptr [RBP + -0x9],AL LAB_00178908: MOV AL,byte ptr [RBP + -0x9] MOV byte ptr [RBP + -0x61],AL MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x00178928 MOV AL,byte ptr [RBP + -0x61] MOV RSP,RBP POP RBP RET LAB_00178928: CALL 0x0012a270
int8 _ma_cmp_block_unique(long *param_1,long param_2,int8 param_3,int8 param_4) { long lVar1; int1 *puVar2; int8 uVar3; long *plVar4; char cVar5; int1 *puVar6; int iVar7; long in_FS_OFFSET; int1 auStack_78 [15]; bool local_69; ulong local_68; ulong local_60; char local_55; int local_54; long local_50; int1 *local_48; long local_40; int8 local_38; int8 local_30; long local_28; long *local_20; bool local_11; long local_10; puVar6 = auStack_78; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_60 = *(ulong *)(*param_1 + 0x398); local_68 = *(long *)param_1[0xf] - (long)&local_60; local_38 = param_4; local_30 = param_3; local_28 = param_2; local_20 = param_1; if ((local_60 < local_68) && ((0x10000 < local_68 - local_60 || ((0x8000 < local_68 - local_60 && (0xfff < local_60)))))) { local_55 = '\0'; puVar6 = auStack_78 + -(*(long *)(*param_1 + 0x398) + 0xfU & 0xfffffffffffffff0); local_48 = puVar6; } else { local_55 = '\x01'; local_48 = (int1 *)my_malloc(0,*(int8 *)(*param_1 + 0x398),0x10010); } plVar4 = local_20; uVar3 = local_38; puVar2 = local_48; if (local_48 == (int1 *)0x0) { local_11 = true; } else { local_40 = local_20[0x74]; local_50 = local_20[0x8c]; if (*(int *)(*local_20 + 0x3f0) != 0) { local_20[0x74] = 0; local_20[0x8c] = 0; } *(int8 *)(puVar6 + -8) = 0x178882; local_54 = _ma_read_block_record(plVar4,puVar2,uVar3); lVar1 = local_28; uVar3 = local_30; puVar2 = local_48; if (local_54 == 0) { cVar5 = *(char *)(local_28 + 3); *(int8 *)(puVar6 + -8) = 0x1788a4; cVar5 = _ma_unique_comp(lVar1,uVar3,puVar2,(int)cVar5); local_54 = (int)cVar5; } if (*(int *)(*local_20 + 0x3f0) != 0) { lVar1 = local_20[0x74]; *(int8 *)(puVar6 + -8) = 0x1788ca; my_free(lVar1); local_20[0x74] = local_40; local_20[0x8c] = local_50; } puVar2 = local_48; iVar7 = (int)local_55; *(int8 *)(puVar6 + -8) = 0x1788f9; stack_alloc_free(puVar2,iVar7); local_11 = local_54 != 0; } local_69 = local_11; if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),local_11); } /* WARNING: Subroutine does not return */ *(int8 *)(puVar6 + -8) = 0x17892d; __stack_chk_fail(); }
39,886
my_convert_fix
eloqsql/strings/ctype.c
size_t my_convert_fix(CHARSET_INFO *to_cs, char *to, size_t to_length, CHARSET_INFO *from_cs, const char *from, size_t from_length, size_t nchars, MY_STRCOPY_STATUS *copy_status, MY_STRCONV_STATUS *conv_status) { int cnvres; my_wc_t wc; my_charset_conv_mb_wc mb_wc= from_cs->cset->mb_wc; my_charset_conv_wc_mb wc_mb= to_cs->cset->wc_mb; const uchar *from_end= (const uchar*) from + from_length; uchar *to_end= (uchar*) to + to_length; char *to_start= to; DBUG_ASSERT(to_cs != &my_charset_bin); DBUG_ASSERT(from_cs != &my_charset_bin); copy_status->m_well_formed_error_pos= NULL; conv_status->m_cannot_convert_error_pos= NULL; for ( ; nchars; nchars--) { const char *from_prev= from; if ((cnvres= (*mb_wc)(from_cs, &wc, (uchar*) from, from_end)) > 0) from+= cnvres; else if (cnvres == MY_CS_ILSEQ) { if (!copy_status->m_well_formed_error_pos) copy_status->m_well_formed_error_pos= from; from++; wc= '?'; } else if (cnvres > MY_CS_TOOSMALL) { /* A correct multibyte sequence detected But it doesn't have Unicode mapping. */ if (!conv_status->m_cannot_convert_error_pos) conv_status->m_cannot_convert_error_pos= from; from+= (-cnvres); wc= '?'; } else { if ((uchar *) from >= from_end) break; // End of line // Incomplete byte sequence if (!copy_status->m_well_formed_error_pos) copy_status->m_well_formed_error_pos= from; from++; wc= '?'; } outp: if ((cnvres= (*wc_mb)(to_cs, wc, (uchar*) to, to_end)) > 0) to+= cnvres; else if (cnvres == MY_CS_ILUNI && wc != '?') { if (!conv_status->m_cannot_convert_error_pos) conv_status->m_cannot_convert_error_pos= from_prev; wc= '?'; goto outp; } else { from= from_prev; break; } } copy_status->m_source_end_pos= from; return to - to_start; }
O0
c
my_convert_fix: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq 0x20(%rbp), %rax movq 0x18(%rbp), %rax 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 -0x20(%rbp), %rax movq 0xb8(%rax), %rax movq 0x28(%rax), %rax movq %rax, -0x48(%rbp) movq -0x8(%rbp), %rax movq 0xb8(%rax), %rax movq 0x30(%rax), %rax movq %rax, -0x50(%rbp) movq -0x28(%rbp), %rax addq -0x30(%rbp), %rax movq %rax, -0x58(%rbp) movq -0x10(%rbp), %rax addq -0x18(%rbp), %rax movq %rax, -0x60(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x68(%rbp) jmp 0x6e334 jmp 0x6e336 jmp 0x6e338 movq 0x18(%rbp), %rax movq $0x0, 0x8(%rax) movq 0x20(%rbp), %rax movq $0x0, (%rax) cmpq $0x0, 0x10(%rbp) je 0x6e4bb movq -0x28(%rbp), %rax movq %rax, -0x70(%rbp) movq -0x48(%rbp), %rax movq -0x20(%rbp), %rdi movq -0x28(%rbp), %rdx movq -0x58(%rbp), %rcx leaq -0x40(%rbp), %rsi callq *%rax movl %eax, -0x34(%rbp) cmpl $0x0, %eax jle 0x6e396 movl -0x34(%rbp), %ecx movq -0x28(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x28(%rbp) jmp 0x6e43f cmpl $0x0, -0x34(%rbp) jne 0x6e3c9 movq 0x18(%rbp), %rax cmpq $0x0, 0x8(%rax) jne 0x6e3b3 movq -0x28(%rbp), %rcx movq 0x18(%rbp), %rax movq %rcx, 0x8(%rax) movq -0x28(%rbp), %rax addq $0x1, %rax movq %rax, -0x28(%rbp) movq $0x3f, -0x40(%rbp) jmp 0x6e43d cmpl $-0x65, -0x34(%rbp) jle 0x6e401 movq 0x20(%rbp), %rax cmpq $0x0, (%rax) jne 0x6e3e4 movq -0x28(%rbp), %rcx movq 0x20(%rbp), %rax movq %rcx, (%rax) xorl %ecx, %ecx subl -0x34(%rbp), %ecx movq -0x28(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x28(%rbp) movq $0x3f, -0x40(%rbp) jmp 0x6e43b movq -0x28(%rbp), %rax cmpq -0x58(%rbp), %rax jb 0x6e410 jmp 0x6e4bb movq 0x18(%rbp), %rax cmpq $0x0, 0x8(%rax) jne 0x6e427 movq -0x28(%rbp), %rcx movq 0x18(%rbp), %rax movq %rcx, 0x8(%rax) movq -0x28(%rbp), %rax addq $0x1, %rax movq %rax, -0x28(%rbp) movq $0x3f, -0x40(%rbp) jmp 0x6e43d jmp 0x6e43f jmp 0x6e441 movq -0x50(%rbp), %rax movq -0x8(%rbp), %rdi movq -0x40(%rbp), %rsi movq -0x10(%rbp), %rdx movq -0x60(%rbp), %rcx callq *%rax movl %eax, -0x34(%rbp) cmpl $0x0, %eax jle 0x6e472 movl -0x34(%rbp), %ecx movq -0x10(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x10(%rbp) jmp 0x6e4a8 cmpl $0x0, -0x34(%rbp) jne 0x6e49e cmpq $0x3f, -0x40(%rbp) je 0x6e49e movq 0x20(%rbp), %rax cmpq $0x0, (%rax) jne 0x6e494 movq -0x70(%rbp), %rcx movq 0x20(%rbp), %rax movq %rcx, (%rax) movq $0x3f, -0x40(%rbp) jmp 0x6e441 movq -0x70(%rbp), %rax movq %rax, -0x28(%rbp) jmp 0x6e4bb jmp 0x6e4aa movq 0x10(%rbp), %rax addq $-0x1, %rax movq %rax, 0x10(%rbp) jmp 0x6e34f movq -0x28(%rbp), %rcx movq 0x18(%rbp), %rax movq %rcx, (%rax) movq -0x10(%rbp), %rax movq -0x68(%rbp), %rcx subq %rcx, %rax addq $0x70, %rsp popq %rbp retq nopw (%rax,%rax)
my_convert_fix: push rbp mov rbp, rsp sub rsp, 70h mov rax, [rbp+arg_10] mov rax, [rbp+arg_8] 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_20] mov rax, [rax+0B8h] mov rax, [rax+28h] mov [rbp+var_48], rax mov rax, [rbp+var_8] mov rax, [rax+0B8h] mov rax, [rax+30h] mov [rbp+var_50], rax mov rax, [rbp+var_28] add rax, [rbp+var_30] mov [rbp+var_58], rax mov rax, [rbp+var_10] add rax, [rbp+var_18] mov [rbp+var_60], rax mov rax, [rbp+var_10] mov [rbp+var_68], rax jmp short $+2 loc_6E334: jmp short $+2 loc_6E336: jmp short $+2 loc_6E338: mov rax, [rbp+arg_8] mov qword ptr [rax+8], 0 mov rax, [rbp+arg_10] mov qword ptr [rax], 0 loc_6E34F: cmp [rbp+arg_0], 0 jz loc_6E4BB mov rax, [rbp+var_28] mov [rbp+var_70], rax mov rax, [rbp+var_48] mov rdi, [rbp+var_20] mov rdx, [rbp+var_28] mov rcx, [rbp+var_58] lea rsi, [rbp+var_40] call rax mov [rbp+var_34], eax cmp eax, 0 jle short loc_6E396 mov ecx, [rbp+var_34] mov rax, [rbp+var_28] movsxd rcx, ecx add rax, rcx mov [rbp+var_28], rax jmp loc_6E43F loc_6E396: cmp [rbp+var_34], 0 jnz short loc_6E3C9 mov rax, [rbp+arg_8] cmp qword ptr [rax+8], 0 jnz short loc_6E3B3 mov rcx, [rbp+var_28] mov rax, [rbp+arg_8] mov [rax+8], rcx loc_6E3B3: mov rax, [rbp+var_28] add rax, 1 mov [rbp+var_28], rax mov [rbp+var_40], 3Fh ; '?' jmp short loc_6E43D loc_6E3C9: cmp [rbp+var_34], 0FFFFFF9Bh jle short loc_6E401 mov rax, [rbp+arg_10] cmp qword ptr [rax], 0 jnz short loc_6E3E4 mov rcx, [rbp+var_28] mov rax, [rbp+arg_10] mov [rax], rcx loc_6E3E4: xor ecx, ecx sub ecx, [rbp+var_34] mov rax, [rbp+var_28] movsxd rcx, ecx add rax, rcx mov [rbp+var_28], rax mov [rbp+var_40], 3Fh ; '?' jmp short loc_6E43B loc_6E401: mov rax, [rbp+var_28] cmp rax, [rbp+var_58] jb short loc_6E410 jmp loc_6E4BB loc_6E410: mov rax, [rbp+arg_8] cmp qword ptr [rax+8], 0 jnz short loc_6E427 mov rcx, [rbp+var_28] mov rax, [rbp+arg_8] mov [rax+8], rcx loc_6E427: mov rax, [rbp+var_28] add rax, 1 mov [rbp+var_28], rax mov [rbp+var_40], 3Fh ; '?' loc_6E43B: jmp short $+2 loc_6E43D: jmp short $+2 loc_6E43F: jmp short $+2 loc_6E441: mov rax, [rbp+var_50] mov rdi, [rbp+var_8] mov rsi, [rbp+var_40] mov rdx, [rbp+var_10] mov rcx, [rbp+var_60] call rax mov [rbp+var_34], eax cmp eax, 0 jle short loc_6E472 mov ecx, [rbp+var_34] mov rax, [rbp+var_10] movsxd rcx, ecx add rax, rcx mov [rbp+var_10], rax jmp short loc_6E4A8 loc_6E472: cmp [rbp+var_34], 0 jnz short loc_6E49E cmp [rbp+var_40], 3Fh ; '?' jz short loc_6E49E mov rax, [rbp+arg_10] cmp qword ptr [rax], 0 jnz short loc_6E494 mov rcx, [rbp+var_70] mov rax, [rbp+arg_10] mov [rax], rcx loc_6E494: mov [rbp+var_40], 3Fh ; '?' jmp short loc_6E441 loc_6E49E: mov rax, [rbp+var_70] mov [rbp+var_28], rax jmp short loc_6E4BB loc_6E4A8: jmp short $+2 loc_6E4AA: mov rax, [rbp+arg_0] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+arg_0], rax jmp loc_6E34F loc_6E4BB: mov rcx, [rbp+var_28] mov rax, [rbp+arg_8] mov [rax], rcx mov rax, [rbp+var_10] mov rcx, [rbp+var_68] sub rax, rcx add rsp, 70h pop rbp retn
long long my_convert_fix( long long a1, long long a2, long long a3, long long a4, unsigned long long a5, long long a6, long long a7, unsigned long long *a8, unsigned long long *a9) { unsigned long long v10; // [rsp+0h] [rbp-70h] long long v11; // [rsp+10h] [rbp-60h] unsigned long long v12; // [rsp+18h] [rbp-58h] long long ( *v13)(long long, long long, long long, long long); // [rsp+20h] [rbp-50h] long long ( *v14)(long long, long long *, unsigned long long, unsigned long long); // [rsp+28h] [rbp-48h] long long i; // [rsp+30h] [rbp-40h] BYREF int v16; // [rsp+3Ch] [rbp-34h] long long v17; // [rsp+40h] [rbp-30h] unsigned long long v18; // [rsp+48h] [rbp-28h] long long v19; // [rsp+50h] [rbp-20h] long long v20; // [rsp+58h] [rbp-18h] long long v21; // [rsp+60h] [rbp-10h] long long v22; // [rsp+68h] [rbp-8h] v22 = a1; v21 = a2; v20 = a3; v19 = a4; v18 = a5; v17 = a6; v14 = *(long long ( **)(long long, long long *, unsigned long long, unsigned long long))(*(_QWORD *)(a4 + 184) + 40LL); v13 = *(long long ( **)(long long, long long, long long, long long))(*(_QWORD *)(a1 + 184) + 48LL); v12 = a6 + a5; v11 = a3 + a2; a8[1] = 0LL; *a9 = 0LL; LABEL_2: if ( a7 ) { v10 = v18; v16 = v14(v19, &i, v18, v12); if ( v16 > 0 ) { v18 += v16; goto LABEL_17; } if ( !v16 ) { if ( !a8[1] ) a8[1] = v18; ++v18; i = 63LL; goto LABEL_17; } if ( v16 > -101 ) { if ( !*a9 ) *a9 = v18; v18 += -v16; i = 63LL; goto LABEL_17; } if ( v18 < v12 ) { if ( !a8[1] ) a8[1] = v18; ++v18; for ( i = 63LL; ; i = 63LL ) { LABEL_17: v16 = v13(v22, i, v21, v11); if ( v16 > 0 ) { v21 += v16; --a7; goto LABEL_2; } if ( v16 || i == 63 ) break; if ( !*a9 ) *a9 = v10; } v18 = v10; } } *a8 = v18; return v21 - a2; }
my_convert_fix: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV RAX,qword ptr [RBP + 0x20] MOV RAX,qword ptr [RBP + 0x18] 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 + -0x20] MOV RAX,qword ptr [RAX + 0xb8] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0xb8] MOV RAX,qword ptr [RAX + 0x30] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x10] ADD RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x60],RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x68],RAX JMP 0x0016e334 LAB_0016e334: JMP 0x0016e336 LAB_0016e336: JMP 0x0016e338 LAB_0016e338: MOV RAX,qword ptr [RBP + 0x18] MOV qword ptr [RAX + 0x8],0x0 MOV RAX,qword ptr [RBP + 0x20] MOV qword ptr [RAX],0x0 LAB_0016e34f: CMP qword ptr [RBP + 0x10],0x0 JZ 0x0016e4bb MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x70],RAX MOV RAX,qword ptr [RBP + -0x48] MOV RDI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x58] LEA RSI,[RBP + -0x40] CALL RAX MOV dword ptr [RBP + -0x34],EAX CMP EAX,0x0 JLE 0x0016e396 MOV ECX,dword ptr [RBP + -0x34] MOV RAX,qword ptr [RBP + -0x28] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x28],RAX JMP 0x0016e43f LAB_0016e396: CMP dword ptr [RBP + -0x34],0x0 JNZ 0x0016e3c9 MOV RAX,qword ptr [RBP + 0x18] CMP qword ptr [RAX + 0x8],0x0 JNZ 0x0016e3b3 MOV RCX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + 0x18] MOV qword ptr [RAX + 0x8],RCX LAB_0016e3b3: MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x1 MOV qword ptr [RBP + -0x28],RAX MOV qword ptr [RBP + -0x40],0x3f JMP 0x0016e43d LAB_0016e3c9: CMP dword ptr [RBP + -0x34],-0x65 JLE 0x0016e401 MOV RAX,qword ptr [RBP + 0x20] CMP qword ptr [RAX],0x0 JNZ 0x0016e3e4 MOV RCX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + 0x20] MOV qword ptr [RAX],RCX LAB_0016e3e4: XOR ECX,ECX SUB ECX,dword ptr [RBP + -0x34] MOV RAX,qword ptr [RBP + -0x28] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x28],RAX MOV qword ptr [RBP + -0x40],0x3f JMP 0x0016e43b LAB_0016e401: MOV RAX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RBP + -0x58] JC 0x0016e410 JMP 0x0016e4bb LAB_0016e410: MOV RAX,qword ptr [RBP + 0x18] CMP qword ptr [RAX + 0x8],0x0 JNZ 0x0016e427 MOV RCX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + 0x18] MOV qword ptr [RAX + 0x8],RCX LAB_0016e427: MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x1 MOV qword ptr [RBP + -0x28],RAX MOV qword ptr [RBP + -0x40],0x3f LAB_0016e43b: JMP 0x0016e43d LAB_0016e43d: JMP 0x0016e43f LAB_0016e43f: JMP 0x0016e441 LAB_0016e441: MOV RAX,qword ptr [RBP + -0x50] MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x40] MOV RDX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x60] CALL RAX MOV dword ptr [RBP + -0x34],EAX CMP EAX,0x0 JLE 0x0016e472 MOV ECX,dword ptr [RBP + -0x34] MOV RAX,qword ptr [RBP + -0x10] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x10],RAX JMP 0x0016e4a8 LAB_0016e472: CMP dword ptr [RBP + -0x34],0x0 JNZ 0x0016e49e CMP qword ptr [RBP + -0x40],0x3f JZ 0x0016e49e MOV RAX,qword ptr [RBP + 0x20] CMP qword ptr [RAX],0x0 JNZ 0x0016e494 MOV RCX,qword ptr [RBP + -0x70] MOV RAX,qword ptr [RBP + 0x20] MOV qword ptr [RAX],RCX LAB_0016e494: MOV qword ptr [RBP + -0x40],0x3f JMP 0x0016e441 LAB_0016e49e: MOV RAX,qword ptr [RBP + -0x70] MOV qword ptr [RBP + -0x28],RAX JMP 0x0016e4bb LAB_0016e4a8: JMP 0x0016e4aa LAB_0016e4aa: MOV RAX,qword ptr [RBP + 0x10] ADD RAX,-0x1 MOV qword ptr [RBP + 0x10],RAX JMP 0x0016e34f LAB_0016e4bb: MOV RCX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + 0x18] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x68] SUB RAX,RCX ADD RSP,0x70 POP RBP RET
long my_convert_fix(long param_1,long param_2,long param_3,long param_4,ulong param_5,long param_6, long param_7,ulong *param_8,ulong *param_9) { code *pcVar1; code *pcVar2; ulong uVar3; ulong uVar4; long local_48; int local_3c; long local_38; ulong local_30; long local_28; long local_20; long local_18; long local_10; pcVar1 = *(code **)(*(long *)(param_4 + 0xb8) + 0x28); pcVar2 = *(code **)(*(long *)(param_1 + 0xb8) + 0x30); param_8[1] = 0; *param_9 = 0; local_38 = param_6; local_30 = param_5; local_28 = param_4; local_20 = param_3; local_18 = param_2; local_10 = param_1; for (; uVar3 = local_30, uVar4 = uVar3, param_7 != 0; param_7 = param_7 + -1) { local_3c = (*pcVar1)(local_28,&local_48,local_30); if (local_3c < 1) { if (local_3c == 0) { if (param_8[1] == 0) { param_8[1] = local_30; } local_30 = local_30 + 1; } else if (local_3c < -100) { uVar4 = local_30; if (param_5 + param_6 <= local_30) break; if (param_8[1] == 0) { param_8[1] = local_30; } local_30 = local_30 + 1; } else { if (*param_9 == 0) { *param_9 = local_30; } local_30 = local_30 + (long)-local_3c; } local_48 = 0x3f; } else { local_30 = local_30 + (long)local_3c; } while (local_3c = (*pcVar2)(local_10,local_48,local_18,param_2 + param_3), local_3c < 1) { uVar4 = uVar3; if ((local_3c != 0) || (local_48 == 0x3f)) goto LAB_0016e4bb; if (*param_9 == 0) { *param_9 = uVar3; } local_48 = 0x3f; local_3c = 0; } local_18 = local_18 + local_3c; } LAB_0016e4bb: local_30 = uVar4; *param_8 = local_30; return local_18 - param_2; }
39,887
testing::Matcher<std::basic_string_view<char, std::char_traits<char>> const&>::operator=(testing::Matcher<std::basic_string_view<char, std::char_traits<char>> const&>&&)
AlayaLite/build_O0/_deps/googletest-src/googletest/include/gtest/gtest-matchers.h
class GTEST_API_ Matcher<const internal::StringView&> : public internal::MatcherBase<const internal::StringView&> { public: Matcher() = default; explicit Matcher(const MatcherInterface<const internal::StringView&>* impl) : internal::MatcherBase<const internal::StringView&>(impl) {} template <typename M, typename = typename std::remove_reference< M>::type::is_gtest_matcher> Matcher(M&& m) // NOLINT : internal::MatcherBase<const internal::StringView&>(std::forward<M>(m)) { } // Allows the user to write str instead of Eq(str) sometimes, where // str is a std::string object. Matcher(const std::string& s); // NOLINT // Allows the user to write "foo" instead of Eq("foo") sometimes. Matcher(const char* s); // NOLINT // Allows the user to pass absl::string_views or std::string_views directly. Matcher(internal::StringView s); // NOLINT }
O0
c
testing::Matcher<std::basic_string_view<char, std::char_traits<char>> const&>::operator=(testing::Matcher<std::basic_string_view<char, std::char_traits<char>> const&>&&): subq $0x18, %rsp movq %rdi, 0x10(%rsp) movq %rsi, 0x8(%rsp) movq 0x10(%rsp), %rdi movq %rdi, (%rsp) movq 0x8(%rsp), %rsi callq 0x51d30 movq (%rsp), %rax addq $0x18, %rsp retq nopw (%rax,%rax)
_ZN7testing7MatcherIRKSt17basic_string_viewIcSt11char_traitsIcEEEaSEOS7_: sub rsp, 18h mov [rsp+18h+var_8], rdi mov [rsp+18h+var_10], rsi mov rdi, [rsp+18h+var_8] mov [rsp+18h+var_18], rdi mov rsi, [rsp+18h+var_10] call _ZN7testing8internal11MatcherBaseIRKSt17basic_string_viewIcSt11char_traitsIcEEEaSEOS8_; testing::internal::MatcherBase<std::string_view const&>::operator=(testing::internal::MatcherBase<std::string_view const&>&&) mov rax, [rsp+18h+var_18] add rsp, 18h retn
long long testing::Matcher<std::string_view const&>::operator=(long long a1, long long a2) { testing::internal::MatcherBase<std::string_view const&>::operator=(a1, a2); return a1; }
operator=: SUB RSP,0x18 MOV qword ptr [RSP + 0x10],RDI MOV qword ptr [RSP + 0x8],RSI MOV RDI,qword ptr [RSP + 0x10] MOV qword ptr [RSP],RDI MOV RSI,qword ptr [RSP + 0x8] CALL 0x00151d30 MOV RAX,qword ptr [RSP] ADD RSP,0x18 RET
/* testing::Matcher<std::basic_string_view<char, std::char_traits<char> > const&>::TEMPNAMEPLACEHOLDERVALUE(testing::Matcher<std::basic_string_view<char, std::char_traits<char> > const&>&&) */ Matcher<std::basic_string_view<char,std::char_traits<char>>const&> * __thiscall testing::Matcher<std::basic_string_view<char,std::char_traits<char>>const&>::operator= (Matcher<std::basic_string_view<char,std::char_traits<char>>const&> *this,Matcher *param_1 ) { internal::MatcherBase<std::basic_string_view<char,std::char_traits<char>>const&>::operator= ((MatcherBase<std::basic_string_view<char,std::char_traits<char>>const&> *)this, (MatcherBase *)param_1); return this; }
39,888
my_b_write
eloqsql/include/my_sys.h
static inline int my_b_write(IO_CACHE *info, const uchar *Buffer, size_t Count) { MEM_CHECK_DEFINED(Buffer, Count); if (info->write_pos + Count <= info->write_end) { if (Count) { memcpy(info->write_pos, Buffer, Count); info->write_pos+= Count; } return 0; } return _my_b_write(info, Buffer, Count); }
O0
c
my_b_write: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rax movq 0x40(%rax), %rax addq -0x20(%rbp), %rax movq -0x10(%rbp), %rcx cmpq 0x48(%rcx), %rax ja 0x4fe8f cmpq $0x0, -0x20(%rbp) je 0x4fe86 movq -0x10(%rbp), %rax movq 0x40(%rax), %rdi movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rdx callq 0x292d0 movq -0x20(%rbp), %rcx movq -0x10(%rbp), %rax addq 0x40(%rax), %rcx movq %rcx, 0x40(%rax) movl $0x0, -0x4(%rbp) jmp 0x4fea3 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rdx callq 0x750a0 movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x20, %rsp popq %rbp retq nopl (%rax)
my_b_write_0: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rax, [rbp+var_10] mov rax, [rax+40h] add rax, [rbp+var_20] mov rcx, [rbp+var_10] cmp rax, [rcx+48h] ja short loc_4FE8F cmp [rbp+var_20], 0 jz short loc_4FE86 mov rax, [rbp+var_10] mov rdi, [rax+40h] 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+40h] mov [rax+40h], rcx loc_4FE86: mov [rbp+var_4], 0 jmp short loc_4FEA3 loc_4FE8F: mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] mov rdx, [rbp+var_20] call _my_b_write mov [rbp+var_4], eax loc_4FEA3: mov eax, [rbp+var_4] add rsp, 20h pop rbp retn
long long my_b_write_0(long long a1, long long a2, long long a3) { if ( (unsigned long long)(a3 + *(_QWORD *)(a1 + 64)) > *(_QWORD *)(a1 + 72) ) { return (unsigned int)my_b_write(a1, a2, a3); } else { if ( a3 ) { memcpy(*(_QWORD *)(a1 + 64), a2, a3); *(_QWORD *)(a1 + 64) += a3; } return 0; } }
my_b_write: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x40] ADD RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RCX + 0x48] JA 0x0014fe8f CMP qword ptr [RBP + -0x20],0x0 JZ 0x0014fe86 MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x40] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x20] CALL 0x001292d0 MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x10] ADD RCX,qword ptr [RAX + 0x40] MOV qword ptr [RAX + 0x40],RCX LAB_0014fe86: MOV dword ptr [RBP + -0x4],0x0 JMP 0x0014fea3 LAB_0014fe8f: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x20] CALL 0x001750a0 MOV dword ptr [RBP + -0x4],EAX LAB_0014fea3: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x20 POP RBP RET
int4 my_b_write(long param_1,void *param_2,size_t param_3) { int4 local_c; if (*(ulong *)(param_1 + 0x48) < *(long *)(param_1 + 0x40) + param_3) { local_c = _my_b_write(param_1,param_2,param_3); } else { if (param_3 != 0) { memcpy(*(void **)(param_1 + 0x40),param_2,param_3); *(size_t *)(param_1 + 0x40) = param_3 + *(long *)(param_1 + 0x40); } local_c = 0; } return local_c; }
39,889
dec_counter_for_resize_op
eloqsql/storage/maria/ma_pagecache.c
static inline void dec_counter_for_resize_op(PAGECACHE *pagecache) { struct st_my_thread_var *last_thread; mysql_mutex_assert_owner(&pagecache->cache_lock); if (!--pagecache->cnt_for_resize_op && (last_thread= pagecache->resize_queue.last_thread)) { DBUG_PRINT("signal", ("thread %s %ld", last_thread->next->name, (ulong) last_thread->next->id)); pagecache_pthread_cond_signal(&last_thread->next->suspend); } }
O0
c
dec_counter_for_resize_op: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) jmp 0x2d58e movq -0x8(%rbp), %rcx movq 0x68(%rcx), %rax addq $-0x1, %rax movq %rax, 0x68(%rcx) cmpq $0x0, %rax jne 0x2d5d1 movq -0x8(%rbp), %rax movq 0x110(%rax), %rax movq %rax, -0x10(%rbp) cmpq $0x0, %rax je 0x2d5d1 jmp 0x2d5bb jmp 0x2d5bd movq -0x10(%rbp), %rax movq 0x88(%rax), %rdi addq $0x8, %rdi callq 0x30e00 addq $0x10, %rsp popq %rbp retq nopw (%rax,%rax)
dec_counter_for_resize_op: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi jmp short $+2 loc_2D58E: mov rcx, [rbp+var_8] mov rax, [rcx+68h] add rax, 0FFFFFFFFFFFFFFFFh mov [rcx+68h], rax cmp rax, 0 jnz short loc_2D5D1 mov rax, [rbp+var_8] mov rax, [rax+110h] mov [rbp+var_10], rax cmp rax, 0 jz short loc_2D5D1 jmp short $+2 loc_2D5BB: jmp short $+2 loc_2D5BD: mov rax, [rbp+var_10] mov rdi, [rax+88h] add rdi, 8 call inline_mysql_cond_signal loc_2D5D1: add rsp, 10h pop rbp retn
long long dec_counter_for_resize_op(long long a1) { long long result; // rax result = *(_QWORD *)(a1 + 104) - 1LL; *(_QWORD *)(a1 + 104) = result; if ( !result ) { result = *(_QWORD *)(a1 + 272); if ( result ) return inline_mysql_cond_signal(*(_QWORD *)(result + 136) + 8LL); } return result; }
dec_counter_for_resize_op: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI JMP 0x0012d58e LAB_0012d58e: MOV RCX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RCX + 0x68] ADD RAX,-0x1 MOV qword ptr [RCX + 0x68],RAX CMP RAX,0x0 JNZ 0x0012d5d1 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x110] MOV qword ptr [RBP + -0x10],RAX CMP RAX,0x0 JZ 0x0012d5d1 JMP 0x0012d5bb LAB_0012d5bb: JMP 0x0012d5bd LAB_0012d5bd: MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x88] ADD RDI,0x8 CALL 0x00130e00 LAB_0012d5d1: ADD RSP,0x10 POP RBP RET
void dec_counter_for_resize_op(long param_1) { long lVar1; lVar1 = *(long *)(param_1 + 0x68) + -1; *(long *)(param_1 + 0x68) = lVar1; if ((lVar1 == 0) && (*(long *)(param_1 + 0x110) != 0)) { inline_mysql_cond_signal(*(long *)(*(long *)(param_1 + 0x110) + 0x88) + 8); } return; }
39,890
int10_to_str
eloqsql/strings/int2str.c
char *int10_to_str(long int val,char *dst,int radix) { char buffer[65]; register char *p; long int new_val; unsigned long int uval = (unsigned long int) val; if (radix < 0) /* -10 */ { if (val < 0) { *dst++ = '-'; /* Avoid integer overflow in (-val) for LONGLONG_MIN (BUG#31799). */ uval = (unsigned long int)0 - uval; } } p = &buffer[sizeof(buffer)-1]; *p = '\0'; new_val= (long) (uval / 10); *--p = '0'+ (char) (uval - (unsigned long) new_val * 10); val = new_val; while (val != 0) { new_val=val/10; *--p = '0' + (char) (val-new_val*10); val= new_val; } while ((*dst++ = *p++) != 0) ; return dst-1; }
O3
c
int10_to_str: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %fs:0x28, %rax movq %rax, -0x8(%rbp) testl %edx, %edx setns %al testq %rdi, %rdi setns %cl orb %al, %cl jne 0x58c57 movb $0x2d, (%rsi) incq %rsi negq %rdi leaq -0x11(%rbp), %r8 movabsq $-0x3333333333333333, %r9 # imm = 0xCCCCCCCCCCCCCCCD movq %rdi, %rax mulq %r9 movq %rdx, %rcx movb $0x0, 0x1(%r8) shrq $0x3, %rcx imull $0xf6, %ecx, %eax addl %edi, %eax addb $0x30, %al movb %al, (%r8) cmpq $0xa, %rdi jb 0x58cae movq %rcx, %rax mulq %r9 shrq $0x3, %rdx imull $0xf6, %edx, %eax addl %ecx, %eax addb $0x30, %al movb %al, -0x1(%r8) decq %r8 cmpq $0x9, %rcx movq %rdx, %rcx ja 0x58c8a decq %rsi movb (%r8), %al incq %r8 movb %al, 0x1(%rsi) incq %rsi testb %al, %al jne 0x58cb1 movq %fs:0x28, %rax cmpq -0x8(%rbp), %rax jne 0x58cd9 movq %rsi, %rax addq $0x50, %rsp popq %rbp retq callq 0x24320 nop
int10_to_str: push rbp mov rbp, rsp sub rsp, 50h mov rax, fs:28h mov [rbp+var_8], rax test edx, edx setns al test rdi, rdi setns cl or cl, al jnz short loc_58C57 mov byte ptr [rsi], 2Dh ; '-' inc rsi neg rdi loc_58C57: lea r8, [rbp+var_11] mov r9, 0CCCCCCCCCCCCCCCDh mov rax, rdi mul r9 mov rcx, rdx mov byte ptr [r8+1], 0 shr rcx, 3 imul eax, ecx, 0F6h add eax, edi add al, 30h ; '0' mov [r8], al cmp rdi, 0Ah jb short loc_58CAE loc_58C8A: mov rax, rcx mul r9 shr rdx, 3 imul eax, edx, 0F6h add eax, ecx add al, 30h ; '0' mov [r8-1], al dec r8 cmp rcx, 9 mov rcx, rdx ja short loc_58C8A loc_58CAE: dec rsi loc_58CB1: mov al, [r8] inc r8 mov [rsi+1], al inc rsi test al, al jnz short loc_58CB1 mov rax, fs:28h cmp rax, [rbp+var_8] jnz short loc_58CD9 mov rax, rsi add rsp, 50h pop rbp retn loc_58CD9: call ___stack_chk_fail
_BYTE * int10_to_str(unsigned long long a1, _BYTE *a2, int a3) { char *v3; // r8 unsigned long long v4; // rcx bool v5; // cc _BYTE *v6; // rsi char v7; // al _BYTE v9[9]; // [rsp+3Fh] [rbp-11h] BYREF unsigned long long v10; // [rsp+48h] [rbp-8h] v10 = __readfsqword(0x28u); if ( a3 < 0 && (a1 & 0x8000000000000000LL) != 0LL ) { *a2++ = 45; a1 = -(long long)a1; } v3 = v9; v9[1] = 0; v4 = a1 / 0xA; v9[0] = a1 % 0xA + 48; if ( a1 >= 0xA ) { do { *--v3 = v4 % 0xA + 48; v5 = v4 <= 9; v4 /= 0xAuLL; } while ( !v5 ); } v6 = a2 - 1; do { v7 = *v3++; *++v6 = v7; } while ( v7 ); return v6; }
int10_to_str: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX TEST EDX,EDX SETNS AL TEST RDI,RDI SETNS CL OR CL,AL JNZ 0x00158c57 MOV byte ptr [RSI],0x2d INC RSI NEG RDI LAB_00158c57: LEA R8,[RBP + -0x11] MOV R9,-0x3333333333333333 MOV RAX,RDI MUL R9 MOV RCX,RDX MOV byte ptr [R8 + 0x1],0x0 SHR RCX,0x3 IMUL EAX,ECX,0xf6 ADD EAX,EDI ADD AL,0x30 MOV byte ptr [R8],AL CMP RDI,0xa JC 0x00158cae LAB_00158c8a: MOV RAX,RCX MUL R9 SHR RDX,0x3 IMUL EAX,EDX,0xf6 ADD EAX,ECX ADD AL,0x30 MOV byte ptr [R8 + -0x1],AL DEC R8 CMP RCX,0x9 MOV RCX,RDX JA 0x00158c8a LAB_00158cae: DEC RSI LAB_00158cb1: MOV AL,byte ptr [R8] INC R8 MOV byte ptr [RSI + 0x1],AL INC RSI TEST AL,AL JNZ 0x00158cb1 MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x8] JNZ 0x00158cd9 MOV RAX,RSI ADD RSP,0x50 POP RBP RET LAB_00158cd9: CALL 0x00124320
int1 * int10_to_str(ulong param_1,int1 *param_2,int param_3) { char cVar1; ulong uVar2; ulong uVar3; char *pcVar4; long in_FS_OFFSET; char local_1a [10]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); if ((long)param_1 < 0 && param_3 < 0) { *param_2 = 0x2d; param_2 = param_2 + 1; param_1 = -param_1; } pcVar4 = local_1a + 1; local_1a[2] = 0; local_1a[1] = (char)(param_1 / 10) * -10 + (char)param_1 + '0'; uVar3 = param_1 / 10; while (uVar2 = uVar3, 9 < param_1) { pcVar4[-1] = (char)(uVar2 / 10) * -10 + (char)uVar2 + '0'; pcVar4 = pcVar4 + -1; uVar3 = uVar2 / 10; param_1 = uVar2; } param_2 = param_2 + -1; do { cVar1 = *pcVar4; pcVar4 = pcVar4 + 1; param_2[1] = cVar1; param_2 = param_2 + 1; } while (cVar1 != '\0'); if (*(long *)(in_FS_OFFSET + 0x28) != local_10) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return param_2; }
39,891
js_global_decodeURI
bluesky950520[P]quickjs/quickjs.c
static JSValue js_global_decodeURI(JSContext *ctx, JSValue this_val, int argc, JSValue *argv, int isComponent) { JSValue str; StringBuffer b_s, *b = &b_s; JSString *p; int k, c, c1, n, c_min; str = JS_ToString(ctx, argv[0]); if (JS_IsException(str)) return str; string_buffer_init(ctx, b, 0); p = JS_VALUE_GET_STRING(str); for (k = 0; k < p->len;) { c = string_get(p, k); if (c == '%') { c = hex_decode(ctx, p, k); if (c < 0) goto fail; k += 3; if (c < 0x80) { if (!isComponent && isURIReserved(c)) { c = '%'; k -= 2; } } else { /* Decode URI-encoded UTF-8 sequence */ if (c >= 0xc0 && c <= 0xdf) { n = 1; c_min = 0x80; c &= 0x1f; } else if (c >= 0xe0 && c <= 0xef) { n = 2; c_min = 0x800; c &= 0xf; } else if (c >= 0xf0 && c <= 0xf7) { n = 3; c_min = 0x10000; c &= 0x7; } else { n = 0; c_min = 1; c = 0; } while (n-- > 0) { c1 = hex_decode(ctx, p, k); if (c1 < 0) goto fail; k += 3; if ((c1 & 0xc0) != 0x80) { c = 0; break; } c = (c << 6) | (c1 & 0x3f); } if (c < c_min || c > 0x10FFFF || is_surrogate(c)) { js_throw_URIError(ctx, "malformed UTF-8"); goto fail; } } } else { k++; } string_buffer_putc(b, c); } JS_FreeValue(ctx, str); return string_buffer_end(b); fail: JS_FreeValue(ctx, str); string_buffer_free(b); return JS_EXCEPTION; }
O3
c
js_global_decodeURI: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movl %r9d, %ebx movq %rdi, %r15 movq (%r8), %rsi movq 0x8(%r8), %rdx xorl %ecx, %ecx callq 0x27518 movq %rax, %r14 cmpl $0x6, %edx je 0x7b44c movl %ebx, 0xc(%rsp) movq %rdx, 0x10(%rsp) movq %r15, 0x18(%rsp) xorps %xmm0, %xmm0 movups %xmm0, 0x28(%rsp) movq %r15, %rdi xorl %esi, %esi xorl %edx, %edx callq 0x20686 movq %rax, 0x20(%rsp) testq %rax, %rax je 0x7b45e movq 0x4(%r14), %rax testl $0x7fffffff, %eax # imm = 0x7FFFFFFF je 0x7b41b xorl %ebp, %ebp movslq %ebp, %rcx testl %eax, %eax js 0x7b27f movzbl 0x18(%r14,%rcx), %r12d jmp 0x7b285 movzwl 0x18(%r14,%rcx,2), %r12d cmpl $0x25, %r12d jne 0x7b2db movq %r15, %rdi movq %r14, %rsi movl %ebp, %edx callq 0x7ba71 testl %eax, %eax js 0x7b3de movl %eax, %r12d leal 0x3(%rbp), %r13d cmpl $0x7f, %eax ja 0x7b30a cmpl $0x0, 0xc(%rsp) jne 0x7b2e0 movl $0xb, %edx leaq 0x28487(%rip), %rdi # 0xa3746 movl %r12d, %esi callq 0xe430 incl %ebp testq %rax, %rax movl $0x25, %eax cmovnel %eax, %r12d cmovel %r13d, %ebp jmp 0x7b2dd incl %ebp movl %ebp, %r13d leaq 0x18(%rsp), %rdi movl %r12d, %esi callq 0x33621 movq 0x4(%r14), %rax movl %eax, %ecx andl $0x7fffffff, %ecx # imm = 0x7FFFFFFF movl %r13d, %ebp cmpl %ecx, %r13d jl 0x7b270 jmp 0x7b41b movl %r12d, %eax andl $0x7fffffe0, %eax # imm = 0x7FFFFFE0 cmpl $0xc0, %eax jne 0x7b32a movl $0x80, 0x8(%rsp) xorl %ebp, %ebp movl $0x1f, %eax jmp 0x7b36e movl %r12d, %eax andl $0x7ffffff0, %eax # imm = 0x7FFFFFF0 cmpl $0xe0, %eax jne 0x7b34d movl $0x800, 0x8(%rsp) # imm = 0x800 movl $0x1, %ebp movl $0xf, %eax jmp 0x7b36e movl %r12d, %eax andl $0x7ffffff8, %eax # imm = 0x7FFFFFF8 cmpl $0xf0, %eax jne 0x7b3cd movl $0x10000, 0x8(%rsp) # imm = 0x10000 movl $0x2, %ebp movl $0x7, %eax andl %eax, %r12d incl %ebp movl %r12d, %ebx movq %r15, %rdi movq %r14, %rsi movl %r13d, %edx callq 0x7ba71 testl %eax, %eax js 0x7b3de movl %eax, %r12d andl $0xc0, %eax cmpl $0x80, %eax jne 0x7b3cd addl $0x3, %r13d movl %ebx, %eax shll $0x6, %eax andl $0x3f, %r12d orl %eax, %r12d decl %ebp jg 0x7b373 cmpl 0x8(%rsp), %r12d jl 0x7b3cd cmpl $0x10ffff, %r12d # imm = 0x10FFFF jg 0x7b3cd andl $0x3ffffe0, %ebx # imm = 0x3FFFFE0 cmpl $0x360, %ebx # imm = 0x360 jne 0x7b2e0 leaq 0x28341(%rip), %rsi # 0xa3715 movq %r15, %rdi xorl %eax, %eax callq 0x7bae3 movq 0x10(%rsp), %rdx cmpl $-0x9, %edx jb 0x7b402 movq 0x18(%r15), %rdi movl (%r14), %eax leal -0x1(%rax), %ecx movl %ecx, (%r14) cmpl $0x1, %eax jg 0x7b402 movq %r14, %rsi callq 0x20d90 movq 0x18(%rsp), %rdi movq 0x20(%rsp), %rsi callq 0x1c845 movl $0x6, %edx xorl %r14d, %r14d jmp 0x7b44c movq 0x10(%rsp), %rdx cmpl $-0x9, %edx jb 0x7b43f movq 0x18(%r15), %rdi movl (%r14), %eax leal -0x1(%rax), %ecx movl %ecx, (%r14) cmpl $0x1, %eax jg 0x7b43f movq %r14, %rsi callq 0x20d90 leaq 0x18(%rsp), %rdi callq 0x33675 movq %rax, %r14 movq %r14, %rax addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0x0, 0x2c(%rsp) movl $0xffffffff, 0x34(%rsp) # imm = 0xFFFFFFFF jmp 0x7b25f
js_global_decodeURI: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov ebx, r9d mov r15, rdi mov rsi, [r8] mov rdx, [r8+8] xor ecx, ecx call JS_ToStringInternal mov r14, rax cmp edx, 6 jz loc_7B44C mov [rsp+68h+var_5C], ebx mov [rsp+68h+var_58], rdx mov [rsp+68h+var_50], r15 xorps xmm0, xmm0 movups [rsp+68h+var_40], xmm0 mov rdi, r15 xor esi, esi xor edx, edx call js_alloc_string mov [rsp+68h+var_48], rax test rax, rax jz loc_7B45E loc_7B25F: mov rax, [r14+4] test eax, 7FFFFFFFh jz loc_7B41B xor ebp, ebp loc_7B270: movsxd rcx, ebp test eax, eax js short loc_7B27F movzx r12d, byte ptr [r14+rcx+18h] jmp short loc_7B285 loc_7B27F: movzx r12d, word ptr [r14+rcx*2+18h] loc_7B285: cmp r12d, 25h ; '%' jnz short loc_7B2DB mov rdi, r15 mov rsi, r14 mov edx, ebp call hex_decode test eax, eax js loc_7B3DE mov r12d, eax lea r13d, [rbp+3] cmp eax, 7Fh ja short loc_7B30A cmp [rsp+68h+var_5C], 0 jnz short loc_7B2E0 mov edx, 0Bh lea rdi, asc_A3746; ";/?:@&=+$,#" mov esi, r12d call _memchr inc ebp test rax, rax mov eax, 25h ; '%' cmovnz r12d, eax cmovz ebp, r13d jmp short loc_7B2DD loc_7B2DB: inc ebp loc_7B2DD: mov r13d, ebp loc_7B2E0: lea rdi, [rsp+68h+var_50] mov esi, r12d call string_buffer_putc mov rax, [r14+4] mov ecx, eax and ecx, 7FFFFFFFh mov ebp, r13d cmp r13d, ecx jl loc_7B270 jmp loc_7B41B loc_7B30A: mov eax, r12d and eax, 7FFFFFE0h cmp eax, 0C0h jnz short loc_7B32A mov [rsp+68h+var_60], 80h xor ebp, ebp mov eax, 1Fh jmp short loc_7B36E loc_7B32A: mov eax, r12d and eax, 7FFFFFF0h cmp eax, 0E0h jnz short loc_7B34D mov [rsp+68h+var_60], 800h mov ebp, 1 mov eax, 0Fh jmp short loc_7B36E loc_7B34D: mov eax, r12d and eax, 7FFFFFF8h cmp eax, 0F0h jnz short loc_7B3CD mov [rsp+68h+var_60], offset loc_10000 mov ebp, 2 mov eax, 7 loc_7B36E: and r12d, eax inc ebp loc_7B373: mov ebx, r12d mov rdi, r15 mov rsi, r14 mov edx, r13d call hex_decode test eax, eax js short loc_7B3DE mov r12d, eax and eax, 0C0h cmp eax, 80h jnz short loc_7B3CD add r13d, 3 mov eax, ebx shl eax, 6 and r12d, 3Fh or r12d, eax dec ebp jg short loc_7B373 cmp r12d, [rsp+68h+var_60] jl short loc_7B3CD cmp r12d, 10FFFFh jg short loc_7B3CD and ebx, 3FFFFE0h cmp ebx, 360h jnz loc_7B2E0 loc_7B3CD: lea rsi, aMalformedUtf8; "malformed UTF-8" mov rdi, r15 xor eax, eax call js_throw_URIError loc_7B3DE: mov rdx, [rsp+68h+var_58] cmp edx, 0FFFFFFF7h jb short loc_7B402 mov rdi, [r15+18h] mov eax, [r14] lea ecx, [rax-1] mov [r14], ecx cmp eax, 1 jg short loc_7B402 mov rsi, r14 call js_free_value_rt loc_7B402: mov rdi, [rsp+68h+var_50] mov rsi, [rsp+68h+var_48] call js_free mov edx, 6 xor r14d, r14d jmp short loc_7B44C loc_7B41B: mov rdx, [rsp+68h+var_58] cmp edx, 0FFFFFFF7h jb short loc_7B43F mov rdi, [r15+18h] mov eax, [r14] lea ecx, [rax-1] mov [r14], ecx cmp eax, 1 jg short loc_7B43F mov rsi, r14 call js_free_value_rt loc_7B43F: lea rdi, [rsp+68h+var_50] call string_buffer_end mov r14, rax loc_7B44C: mov rax, r14 add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_7B45E: mov dword ptr [rsp+68h+var_40+4], 0 mov dword ptr [rsp+68h+var_40+0Ch], 0FFFFFFFFh jmp loc_7B25F
long long js_global_decodeURI( long long a1, __m128 a2, __m128 a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, long long a10, long long a11, long long a12, long long a13, long long a14) { int v14; // ebx long long v15; // rdx _QWORD *v16; // r14 long long v17; // r8 long long v18; // r9 long long v19; // rax int v20; // ebp signed int v21; // r12d int v22; // eax int v23; // edx long long v24; // rcx long long v25; // r8 long long v26; // r9 int v27; // r13d int v28; // ebp int v29; // ebp int v30; // eax int v31; // ebp signed int v32; // ebx int v33; // eax long long v35; // rdi int v36; // eax long long v37; // rcx long long v38; // rdi int v39; // eax long long v40; // rcx int v42; // [rsp+8h] [rbp-60h] int v43; // [rsp+Ch] [rbp-5Ch] long long v44; // [rsp+10h] [rbp-58h] long long v45; // [rsp+18h] [rbp-50h] BYREF long long v46; // [rsp+20h] [rbp-48h] __int128 v47; // [rsp+28h] [rbp-40h] v14 = a14; v16 = (_QWORD *)JS_ToStringInternal( a1, *(_DWORD **)a13, *(_QWORD *)(a13 + 8), 0LL, a13, a14, a2, a3, a4, a5, a6, a7, a8, a9); if ( (_DWORD)v15 == 6 ) return (long long)v16; v43 = v14; v44 = v15; v45 = a1; v47 = 0LL; v46 = js_alloc_string(a1, 0LL, 0); if ( !v46 ) { DWORD1(v47) = 0; HIDWORD(v47) = -1; } v19 = *(_QWORD *)((char *)v16 + 4); if ( (v19 & 0x7FFFFFFF) == 0 ) { LABEL_38: if ( (unsigned int)v44 >= 0xFFFFFFF7 ) { v38 = *(_QWORD *)(a1 + 24); v39 = *(_DWORD *)v16; v40 = (unsigned int)(*(_DWORD *)v16 - 1); *(_DWORD *)v16 = v40; if ( v39 <= 1 ) js_free_value_rt(v38, v16, v44, v40, v17, v18); } return string_buffer_end(&v45); } v20 = 0; while ( 1 ) { if ( (int)v19 < 0 ) v21 = *((unsigned __int16 *)v16 + v20 + 12); else v21 = *((unsigned __int8 *)v16 + v20 + 24); if ( v21 != 37 ) { v28 = v20 + 1; LABEL_17: v27 = v28; goto LABEL_18; } v22 = hex_decode(a1, v16, (unsigned int)v20, v20); if ( v22 < 0 ) goto LABEL_34; v21 = v22; v27 = v20 + 3; if ( (unsigned int)v22 > 0x7F ) break; if ( !v43 ) { v28 = v20 + 1; if ( memchr(";/?:@&=+$,#", (unsigned int)v22, 11LL) ) v21 = 37; else v28 = v27; goto LABEL_17; } LABEL_18: string_buffer_putc((long long)&v45, v21); v19 = *(_QWORD *)((char *)v16 + 4); v20 = v27; if ( v27 >= (*((_DWORD *)v16 + 1) & 0x7FFFFFFF) ) goto LABEL_38; } if ( (v22 & 0x7FFFFFE0) == 0xC0 ) { v42 = 128; v29 = 0; v30 = 31; LABEL_26: v21 &= v30; v31 = v29 + 1; while ( 1 ) { v32 = v21; v33 = hex_decode(a1, v16, (unsigned int)v27, v24); if ( v33 < 0 ) break; if ( (v33 & 0xC0) != 0x80 ) goto LABEL_33; v27 += 3; v21 = (v21 << 6) | v33 & 0x3F; if ( v31-- <= 1 ) { if ( v21 >= v42 && v21 <= 1114111 && (v32 & 0x3FFFFE0) != 0x360 ) goto LABEL_18; goto LABEL_33; } } } else { if ( (v22 & 0x7FFFFFF0) == 0xE0 ) { v42 = 2048; v29 = 1; v30 = 15; goto LABEL_26; } if ( (v22 & 0x7FFFFFF8) == 0xF0 ) { v42 = (int)&loc_10000; v29 = 2; v30 = 7; goto LABEL_26; } LABEL_33: js_throw_URIError(a1, (unsigned int)"malformed UTF-8", v23, v24, v25, v26); } LABEL_34: if ( (unsigned int)v44 >= 0xFFFFFFF7 ) { v35 = *(_QWORD *)(a1 + 24); v36 = *(_DWORD *)v16; v37 = (unsigned int)(*(_DWORD *)v16 - 1); *(_DWORD *)v16 = v37; if ( v36 <= 1 ) js_free_value_rt(v35, v16, v44, v37, v25, v26); } js_free(v45, v46); return 0LL; }
js_global_decodeURI: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV EBX,R9D MOV R15,RDI MOV RSI,qword ptr [R8] MOV RDX,qword ptr [R8 + 0x8] XOR ECX,ECX CALL 0x00127518 MOV R14,RAX CMP EDX,0x6 JZ 0x0017b44c MOV dword ptr [RSP + 0xc],EBX MOV qword ptr [RSP + 0x10],RDX MOV qword ptr [RSP + 0x18],R15 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RSP + 0x28],XMM0 MOV RDI,R15 XOR ESI,ESI XOR EDX,EDX CALL 0x00120686 MOV qword ptr [RSP + 0x20],RAX TEST RAX,RAX JZ 0x0017b45e LAB_0017b25f: MOV RAX,qword ptr [R14 + 0x4] TEST EAX,0x7fffffff JZ 0x0017b41b XOR EBP,EBP LAB_0017b270: MOVSXD RCX,EBP TEST EAX,EAX JS 0x0017b27f MOVZX R12D,byte ptr [R14 + RCX*0x1 + 0x18] JMP 0x0017b285 LAB_0017b27f: MOVZX R12D,word ptr [R14 + RCX*0x2 + 0x18] LAB_0017b285: CMP R12D,0x25 JNZ 0x0017b2db MOV RDI,R15 MOV RSI,R14 MOV EDX,EBP CALL 0x0017ba71 TEST EAX,EAX JS 0x0017b3de MOV R12D,EAX LEA R13D,[RBP + 0x3] CMP EAX,0x7f JA 0x0017b30a CMP dword ptr [RSP + 0xc],0x0 JNZ 0x0017b2e0 MOV EDX,0xb LEA RDI,[0x1a3746] MOV ESI,R12D CALL 0x0010e430 INC EBP TEST RAX,RAX MOV EAX,0x25 CMOVNZ R12D,EAX CMOVZ EBP,R13D JMP 0x0017b2dd LAB_0017b2db: INC EBP LAB_0017b2dd: MOV R13D,EBP LAB_0017b2e0: LEA RDI,[RSP + 0x18] MOV ESI,R12D CALL 0x00133621 MOV RAX,qword ptr [R14 + 0x4] MOV ECX,EAX AND ECX,0x7fffffff MOV EBP,R13D CMP R13D,ECX JL 0x0017b270 JMP 0x0017b41b LAB_0017b30a: MOV EAX,R12D AND EAX,0x7fffffe0 CMP EAX,0xc0 JNZ 0x0017b32a MOV dword ptr [RSP + 0x8],0x80 XOR EBP,EBP MOV EAX,0x1f JMP 0x0017b36e LAB_0017b32a: MOV EAX,R12D AND EAX,0x7ffffff0 CMP EAX,0xe0 JNZ 0x0017b34d MOV dword ptr [RSP + 0x8],0x800 MOV EBP,0x1 MOV EAX,0xf JMP 0x0017b36e LAB_0017b34d: MOV EAX,R12D AND EAX,0x7ffffff8 CMP EAX,0xf0 JNZ 0x0017b3cd MOV dword ptr [RSP + 0x8],0x10000 MOV EBP,0x2 MOV EAX,0x7 LAB_0017b36e: AND R12D,EAX INC EBP LAB_0017b373: MOV EBX,R12D MOV RDI,R15 MOV RSI,R14 MOV EDX,R13D CALL 0x0017ba71 TEST EAX,EAX JS 0x0017b3de MOV R12D,EAX AND EAX,0xc0 CMP EAX,0x80 JNZ 0x0017b3cd ADD R13D,0x3 MOV EAX,EBX SHL EAX,0x6 AND R12D,0x3f OR R12D,EAX DEC EBP JG 0x0017b373 CMP R12D,dword ptr [RSP + 0x8] JL 0x0017b3cd CMP R12D,0x10ffff JG 0x0017b3cd AND EBX,0x3ffffe0 CMP EBX,0x360 JNZ 0x0017b2e0 LAB_0017b3cd: LEA RSI,[0x1a3715] MOV RDI,R15 XOR EAX,EAX CALL 0x0017bae3 LAB_0017b3de: MOV RDX,qword ptr [RSP + 0x10] CMP EDX,-0x9 JC 0x0017b402 MOV RDI,qword ptr [R15 + 0x18] MOV EAX,dword ptr [R14] LEA ECX,[RAX + -0x1] MOV dword ptr [R14],ECX CMP EAX,0x1 JG 0x0017b402 MOV RSI,R14 CALL 0x00120d90 LAB_0017b402: MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RSP + 0x20] CALL 0x0011c845 MOV EDX,0x6 XOR R14D,R14D JMP 0x0017b44c LAB_0017b41b: MOV RDX,qword ptr [RSP + 0x10] CMP EDX,-0x9 JC 0x0017b43f MOV RDI,qword ptr [R15 + 0x18] MOV EAX,dword ptr [R14] LEA ECX,[RAX + -0x1] MOV dword ptr [R14],ECX CMP EAX,0x1 JG 0x0017b43f MOV RSI,R14 CALL 0x00120d90 LAB_0017b43f: LEA RDI,[RSP + 0x18] CALL 0x00133675 MOV R14,RAX LAB_0017b44c: MOV RAX,R14 ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0017b45e: MOV dword ptr [RSP + 0x2c],0x0 MOV dword ptr [RSP + 0x34],0xffffffff JMP 0x0017b25f
int * js_global_decodeURI(long param_1) { int8 uVar1; bool bVar2; uint uVar3; uint uVar4; ulong uVar5; void *pvVar6; int *piVar7; uint uVar8; int iVar9; int iVar10; int8 *in_R8; int in_R9D; int iVar11; int1 auVar12 [12]; int local_60; long local_50; long local_48; ulong local_40; int8 uStack_38; auVar12 = JS_ToStringInternal(param_1,*in_R8,in_R8[1],0); uVar8 = auVar12._8_4_; piVar7 = auVar12._0_8_; if (uVar8 != 6) { local_40 = 0; uStack_38 = 0; local_50 = param_1; local_48 = js_alloc_string(param_1,0,0); if (local_48 == 0) { local_40 = local_40 & 0xffffffff; uStack_38 = CONCAT44(0xffffffff,(int4)uStack_38); } uVar5 = *(ulong *)(piVar7 + 1); if ((uVar5 & 0x7fffffff) != 0) { iVar9 = 0; do { if ((int)uVar5 < 0) { uVar3 = (uint)*(ushort *)((long)piVar7 + (long)iVar9 * 2 + 0x18); } else { uVar3 = (uint)*(byte *)((long)piVar7 + (long)iVar9 + 0x18); } if (uVar3 == 0x25) { uVar3 = hex_decode(param_1,piVar7,iVar9); if ((int)uVar3 < 0) goto LAB_0017b3de; iVar11 = iVar9 + 3; if (uVar3 < 0x80) { if (in_R9D == 0) { pvVar6 = memchr(";/?:@&=+$,#",uVar3,0xb); if (pvVar6 != (void *)0x0) { uVar3 = 0x25; iVar11 = iVar9 + 1; } } goto LAB_0017b2e0; } if ((uVar3 & 0x7fffffe0) == 0xc0) { local_60 = 0x80; iVar9 = 0; uVar4 = 0x1f; LAB_0017b36e: uVar3 = uVar3 & uVar4; iVar9 = iVar9 + 1; do { uVar4 = uVar3; uVar3 = hex_decode(param_1,piVar7,iVar11); if ((int)uVar3 < 0) goto LAB_0017b3de; if ((uVar3 & 0xc0) != 0x80) goto LAB_0017b3cd; iVar11 = iVar11 + 3; uVar3 = uVar3 & 0x3f | uVar4 << 6; iVar10 = iVar9 + -1; bVar2 = 0 < iVar9; iVar9 = iVar10; } while (iVar10 != 0 && bVar2); if (((local_60 <= (int)uVar3) && ((int)uVar3 < 0x110000)) && ((uVar4 & 0x3ffffe0) != 0x360)) goto LAB_0017b2e0; } else { if ((uVar3 & 0x7ffffff0) == 0xe0) { local_60 = 0x800; iVar9 = 1; uVar4 = 0xf; goto LAB_0017b36e; } if ((uVar3 & 0x7ffffff8) == 0xf0) { local_60 = 0x10000; iVar9 = 2; uVar4 = 7; goto LAB_0017b36e; } } LAB_0017b3cd: js_throw_URIError(param_1,"malformed UTF-8"); LAB_0017b3de: if (0xfffffff6 < uVar8) { uVar1 = *(int8 *)(param_1 + 0x18); iVar9 = *piVar7; *piVar7 = iVar9 + -1; if (iVar9 < 2) { js_free_value_rt(uVar1,piVar7); } } js_free(local_50,local_48); return (int *)0x0; } iVar11 = iVar9 + 1; LAB_0017b2e0: iVar9 = iVar11; string_buffer_putc(&local_50,uVar3); uVar5 = *(ulong *)(piVar7 + 1); } while (iVar9 < (int)((uint)uVar5 & 0x7fffffff)); } if (0xfffffff6 < uVar8) { uVar1 = *(int8 *)(param_1 + 0x18); iVar9 = *piVar7; *piVar7 = iVar9 + -1; if (iVar9 < 2) { js_free_value_rt(uVar1,piVar7); } } piVar7 = (int *)string_buffer_end(&local_50); } return piVar7; }
39,892
google::protobuf::io::CodedInputStream::ReadVarint64Slow(unsigned long*)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/io/coded_stream.cc
bool CodedInputStream::ReadVarint64Slow(uint64_t* value) { // Slow path: This read might cross the end of the buffer, so we // need to check and refresh the buffer if and when it does. uint64_t result = 0; int count = 0; uint32_t b; do { if (count == kMaxVarintBytes) { *value = 0; return false; } while (buffer_ == buffer_end_) { if (!Refresh()) { *value = 0; return false; } } b = *buffer_; result |= static_cast<uint64_t>(b & 0x7F) << (7 * count); Advance(1); ++count; } while (b & 0x80); *value = result; return true; }
O0
cpp
google::protobuf::io::CodedInputStream::ReadVarint64Slow(unsigned long*): subq $0x38, %rsp movq %rdi, 0x28(%rsp) movq %rsi, 0x20(%rsp) movq 0x28(%rsp), %rax movq %rax, 0x8(%rsp) movq $0x0, 0x18(%rsp) movl $0x0, 0x14(%rsp) cmpl $0xa, 0x14(%rsp) jne 0x204e6 movq 0x20(%rsp), %rax movq $0x0, (%rax) movb $0x0, 0x37(%rsp) jmp 0x2057e jmp 0x204e8 movq 0x8(%rsp), %rcx movq (%rcx), %rax cmpq 0x8(%rcx), %rax jne 0x20519 movq 0x8(%rsp), %rdi callq 0x1ec50 testb $0x1, %al jne 0x20517 movq 0x20(%rsp), %rax movq $0x0, (%rax) movb $0x0, 0x37(%rsp) jmp 0x2057e jmp 0x204e8 movq 0x8(%rsp), %rdi movq (%rdi), %rax movzbl (%rax), %eax movl %eax, 0x10(%rsp) movl 0x10(%rsp), %eax andl $0x7f, %eax movl %eax, %eax imull $0x7, 0x14(%rsp), %ecx movl %ecx, %ecx shlq %cl, %rax orq 0x18(%rsp), %rax movq %rax, 0x18(%rsp) movl $0x1, %esi callq 0x22190 movl 0x14(%rsp), %eax addl $0x1, %eax movl %eax, 0x14(%rsp) movl 0x10(%rsp), %eax andl $0x80, %eax cmpl $0x0, %eax jne 0x204c9 movq 0x18(%rsp), %rcx movq 0x20(%rsp), %rax movq %rcx, (%rax) movb $0x1, 0x37(%rsp) movb 0x37(%rsp), %al andb $0x1, %al addq $0x38, %rsp retq nopl (%rax)
_ZN6google8protobuf2io16CodedInputStream16ReadVarint64SlowEPm: sub rsp, 38h mov [rsp+38h+var_10], rdi mov [rsp+38h+var_18], rsi mov rax, [rsp+38h+var_10] mov [rsp+38h+var_30], rax mov [rsp+38h+var_20], 0 mov [rsp+38h+var_24], 0 loc_204C9: cmp [rsp+38h+var_24], 0Ah jnz short loc_204E6 mov rax, [rsp+38h+var_18] mov qword ptr [rax], 0 mov [rsp+38h+var_1], 0 jmp loc_2057E loc_204E6: jmp short $+2 loc_204E8: mov rcx, [rsp+38h+var_30] mov rax, [rcx] cmp rax, [rcx+8] jnz short loc_20519 mov rdi, [rsp+38h+var_30]; this call _ZN6google8protobuf2io16CodedInputStream7RefreshEv; google::protobuf::io::CodedInputStream::Refresh(void) test al, 1 jnz short loc_20517 mov rax, [rsp+38h+var_18] mov qword ptr [rax], 0 mov [rsp+38h+var_1], 0 jmp short loc_2057E loc_20517: jmp short loc_204E8 loc_20519: mov rdi, [rsp+38h+var_30]; this mov rax, [rdi] movzx eax, byte ptr [rax] mov [rsp+38h+var_28], eax mov eax, [rsp+38h+var_28] and eax, 7Fh mov eax, eax imul ecx, [rsp+38h+var_24], 7 mov ecx, ecx shl rax, cl or rax, [rsp+38h+var_20] mov [rsp+38h+var_20], rax mov esi, 1; int call _ZN6google8protobuf2io16CodedInputStream7AdvanceEi; google::protobuf::io::CodedInputStream::Advance(int) mov eax, [rsp+38h+var_24] add eax, 1 mov [rsp+38h+var_24], eax mov eax, [rsp+38h+var_28] and eax, 80h cmp eax, 0 jnz loc_204C9 mov rcx, [rsp+38h+var_20] mov rax, [rsp+38h+var_18] mov [rax], rcx mov [rsp+38h+var_1], 1 loc_2057E: mov al, [rsp+38h+var_1] and al, 1 add rsp, 38h retn
char google::protobuf::io::CodedInputStream::ReadVarint64Slow( google::protobuf::io::_anonymous_namespace_ **this, unsigned long long *a2) { char v3; // [rsp+10h] [rbp-28h] int v4; // [rsp+14h] [rbp-24h] unsigned long long v5; // [rsp+18h] [rbp-20h] v5 = 0LL; v4 = 0; do { if ( v4 == 10 ) { *a2 = 0LL; return 0; } while ( *this == this[1] ) { if ( (google::protobuf::io::CodedInputStream::Refresh(this) & 1) == 0 ) { *a2 = 0LL; return 0; } } v3 = *(_BYTE *)*this; v5 |= (unsigned long long)(v3 & 0x7F) << (7 * (unsigned __int8)v4); google::protobuf::io::CodedInputStream::Advance((google::protobuf::io::CodedInputStream *)this, 1); ++v4; } while ( v3 < 0 ); *a2 = v5; return 1; }
ReadVarint64Slow: SUB RSP,0x38 MOV qword ptr [RSP + 0x28],RDI MOV qword ptr [RSP + 0x20],RSI MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x8],RAX MOV qword ptr [RSP + 0x18],0x0 MOV dword ptr [RSP + 0x14],0x0 LAB_001204c9: CMP dword ptr [RSP + 0x14],0xa JNZ 0x001204e6 MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RAX],0x0 MOV byte ptr [RSP + 0x37],0x0 JMP 0x0012057e LAB_001204e6: JMP 0x001204e8 LAB_001204e8: MOV RCX,qword ptr [RSP + 0x8] MOV RAX,qword ptr [RCX] CMP RAX,qword ptr [RCX + 0x8] JNZ 0x00120519 MOV RDI,qword ptr [RSP + 0x8] CALL 0x0011ec50 TEST AL,0x1 JNZ 0x00120517 MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RAX],0x0 MOV byte ptr [RSP + 0x37],0x0 JMP 0x0012057e LAB_00120517: JMP 0x001204e8 LAB_00120519: MOV RDI,qword ptr [RSP + 0x8] MOV RAX,qword ptr [RDI] MOVZX EAX,byte ptr [RAX] MOV dword ptr [RSP + 0x10],EAX MOV EAX,dword ptr [RSP + 0x10] AND EAX,0x7f MOV EAX,EAX IMUL ECX,dword ptr [RSP + 0x14],0x7 MOV ECX,ECX SHL RAX,CL OR RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x18],RAX MOV ESI,0x1 CALL 0x00122190 MOV EAX,dword ptr [RSP + 0x14] ADD EAX,0x1 MOV dword ptr [RSP + 0x14],EAX MOV EAX,dword ptr [RSP + 0x10] AND EAX,0x80 CMP EAX,0x0 JNZ 0x001204c9 MOV RCX,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RAX],RCX MOV byte ptr [RSP + 0x37],0x1 LAB_0012057e: MOV AL,byte ptr [RSP + 0x37] AND AL,0x1 ADD RSP,0x38 RET
/* google::protobuf::io::CodedInputStream::ReadVarint64Slow(unsigned long*) */ int1 __thiscall google::protobuf::io::CodedInputStream::ReadVarint64Slow(CodedInputStream *this,ulong *param_1) { byte bVar1; ulong uVar2; int local_24; ulong local_20; local_20 = 0; local_24 = 0; do { if (local_24 == 10) { *param_1 = 0; return 0; } while (*(long *)this == *(long *)(this + 8)) { uVar2 = Refresh(this); if ((uVar2 & 1) == 0) { *param_1 = 0; return 0; } } bVar1 = **(byte **)this; local_20 = (ulong)(bVar1 & 0x7f) << ((char)local_24 * '\a' & 0x3fU) | local_20; Advance(this,1); local_24 = local_24 + 1; } while ((bVar1 & 0x80) != 0); *param_1 = local_20; return 1; }
39,893
minja::Value::to_int() const
monkey531[P]llama/common/minja.hpp
int64_t to_int() const { if (is_null()) return 0; if (is_boolean()) return get<bool>() ? 1 : 0; if (is_number()) return static_cast<int64_t>(get<double>()); if (is_string()) { try { return std::stol(get<std::string>()); } catch (const std::exception &) { return 0; } } return 0; }
O0
cpp
minja::Value::to_int() const: subq $0x58, %rsp movq %rdi, 0x48(%rsp) movq 0x48(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0x113310 testb $0x1, %al jne 0x17a8fe jmp 0x17a90c movq $0x0, 0x50(%rsp) jmp 0x17aa19 movq 0x8(%rsp), %rdi callq 0x113910 testb $0x1, %al jne 0x17a91c jmp 0x17a941 movq 0x8(%rsp), %rdi callq 0x113e80 movb %al, %dl xorl %eax, %eax movl $0x1, %ecx testb $0x1, %dl cmovnel %ecx, %eax cltq movq %rax, 0x50(%rsp) jmp 0x17aa19 movq 0x8(%rsp), %rdi callq 0x113f90 testb $0x1, %al jne 0x17a951 jmp 0x17a96a movq 0x8(%rsp), %rdi callq 0x112380 cvttsd2si %xmm0, %rax movq %rax, 0x50(%rsp) jmp 0x17aa19 movq 0x8(%rsp), %rdi callq 0x113930 testb $0x1, %al jne 0x17a97d jmp 0x17aa10 movq 0x8(%rsp), %rsi leaq 0x28(%rsp), %rdi callq 0x113fb0 jmp 0x17a98e xorl %eax, %eax movl %eax, %esi leaq 0x28(%rsp), %rdi movl $0xa, %edx callq 0x17aa30 movq %rax, (%rsp) jmp 0x17a9a7 movq (%rsp), %rax movq %rax, 0x50(%rsp) leaq 0x28(%rsp), %rdi callq 0x5b558 jmp 0x17aa19 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x20(%rsp) movl %eax, 0x1c(%rsp) jmp 0x17a9e4 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x20(%rsp) movl %eax, 0x1c(%rsp) leaq 0x28(%rsp), %rdi callq 0x5b558 movl 0x1c(%rsp), %eax movl $0x1, %ecx cmpl %ecx, %eax jne 0x17aa23 movq 0x20(%rsp), %rdi callq 0x5a0f0 movq %rax, 0x10(%rsp) movq $0x0, 0x50(%rsp) callq 0x5adb0 jmp 0x17aa19 movq $0x0, 0x50(%rsp) movq 0x50(%rsp), %rax addq $0x58, %rsp retq movq 0x20(%rsp), %rdi callq 0x5abc0 nopl (%rax)
_ZNK5minja5Value6to_intEv: sub rsp, 58h mov [rsp+58h+var_10], rdi; int mov rdi, [rsp+58h+var_10]; this mov [rsp+58h+var_50], rdi; int call _ZNK5minja5Value7is_nullEv; minja::Value::is_null(void) test al, 1 jnz short loc_17A8FE jmp short loc_17A90C loc_17A8FE: mov [rsp+58h+var_8], 0 jmp loc_17AA19 loc_17A90C: mov rdi, [rsp+58h+var_50]; this call _ZNK5minja5Value10is_booleanEv; minja::Value::is_boolean(void) test al, 1 jnz short loc_17A91C jmp short loc_17A941 loc_17A91C: mov rdi, [rsp+58h+var_50] call _ZNK5minja5Value3getIbEET_v; minja::Value::get<bool>(void) mov dl, al xor eax, eax mov ecx, 1 test dl, 1 cmovnz eax, ecx cdqe mov [rsp+58h+var_8], rax jmp loc_17AA19 loc_17A941: mov rdi, [rsp+58h+var_50]; this call _ZNK5minja5Value9is_numberEv; minja::Value::is_number(void) test al, 1 jnz short loc_17A951 jmp short loc_17A96A loc_17A951: mov rdi, [rsp+58h+var_50] call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) cvttsd2si rax, xmm0 mov [rsp+58h+var_8], rax jmp loc_17AA19 loc_17A96A: mov rdi, [rsp+58h+var_50]; this call _ZNK5minja5Value9is_stringEv; minja::Value::is_string(void) test al, 1 jnz short loc_17A97D jmp loc_17AA10 loc_17A97D: mov rsi, [rsp+58h+var_50]; int lea rdi, [rsp+58h+var_30]; int call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void) jmp short $+2 loc_17A98E: xor eax, eax mov esi, eax lea rdi, [rsp+58h+var_30] mov edx, 0Ah call _ZNSt7__cxx114stolERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi; std::stol(std::string const&,ulong *,int) mov [rsp+58h+var_58], rax jmp short $+2 loc_17A9A7: mov rax, [rsp+58h+var_58] mov [rsp+58h+var_8], rax lea rdi, [rsp+58h+var_30]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_17AA19 mov rcx, rax mov eax, edx mov [rsp+58h+var_38], rcx mov [rsp+58h+var_3C], eax jmp short loc_17A9E4 mov rcx, rax mov eax, edx mov [rsp+58h+var_38], rcx mov [rsp+58h+var_3C], eax lea rdi, [rsp+58h+var_30]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_17A9E4: mov eax, [rsp+58h+var_3C] mov ecx, 1 cmp eax, ecx jnz short loc_17AA23 mov rdi, [rsp+58h+var_38]; void * call ___cxa_begin_catch mov [rsp+58h+var_48], rax mov [rsp+58h+var_8], 0 call ___cxa_end_catch jmp short loc_17AA19 loc_17AA10: mov [rsp+58h+var_8], 0 loc_17AA19: mov rax, [rsp+58h+var_8] add rsp, 58h retn loc_17AA23: mov rdi, [rsp+58h+var_38] call __Unwind_Resume
long long minja::Value::to_int(minja::Value *this, double a2) { int v3[8]; // [rsp+28h] [rbp-30h] BYREF minja::Value *v4; // [rsp+48h] [rbp-10h] long long v5; // [rsp+50h] [rbp-8h] v4 = this; if ( (minja::Value::is_null(this) & 1) != 0 ) return 0LL; if ( (minja::Value::is_boolean(this) & 1) != 0 ) return (minja::Value::get<bool>(this) & 1) != 0; if ( (minja::Value::is_number(this) & 1) != 0 ) { minja::Value::get<double>(this); return (unsigned int)(int)a2; } else if ( minja::Value::is_string(this) ) { minja::Value::get<std::string>(v3, this); v5 = std::stol(v3, 0LL, 10LL); std::string::~string(v3); } else { return 0LL; } return v5; }
39,894
minja::Value::to_int() const
monkey531[P]llama/common/minja.hpp
int64_t to_int() const { if (is_null()) return 0; if (is_boolean()) return get<bool>() ? 1 : 0; if (is_number()) return static_cast<int64_t>(get<double>()); if (is_string()) { try { return std::stol(get<std::string>()); } catch (const std::exception &) { return 0; } } return 0; }
O3
cpp
minja::Value::to_int() const: pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x30, %rsp movq %rdi, %rsi cmpq $0x0, 0x20(%rdi) movb 0x40(%rdi), %al jne 0xb045c cmpq $0x0, 0x10(%rsi) jne 0xb045c testb %al, %al jne 0xb045c cmpq $0x0, 0x30(%rsi) jne 0xb045c xorl %ebx, %ebx jmp 0xb04fe cmpb $0x4, %al jne 0xb0470 movq %rsi, %rdi callq 0x86892 movzbl %al, %ebx jmp 0xb04fe leal -0x5(%rax), %ecx cmpb $0x2, %cl ja 0xb0487 movq %rsi, %rdi callq 0x85a08 cvttsd2si %xmm0, %rbx jmp 0xb04fe cmpb $0x3, %al jne 0xb0455 leaq 0x8(%rsp), %rdi callq 0x869a2 movq 0x8(%rsp), %r15 callq 0x1a060 movq %rax, %r14 movl (%rax), %ebp movl $0x0, (%rax) leaq 0x28(%rsp), %r12 movq %r15, %rdi movq %r12, %rsi movl $0xa, %edx callq 0x1ac50 cmpq %r15, (%r12) je 0xb050e movq %rax, %rbx movl (%r14), %eax testl %eax, %eax je 0xb04e0 cmpl $0x22, %eax jne 0xb04e3 leaq 0x3fbce(%rip), %rdi # 0xf00a9 callq 0x1aca0 movl %ebp, (%r14) leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xb04fe movq 0x18(%rsp), %rsi incq %rsi callq 0x1a8e0 movq %rbx, %rax addq $0x30, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq leaq 0x3fb94(%rip), %rdi # 0xf00a9 callq 0x1a560 movq %rdx, %r15 movq %rax, %rbx jmp 0xb054c movq %rdx, %r15 movq %rax, %rbx cmpl $0x0, (%r14) jne 0xb0531 movl %ebp, (%r14) leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xb054c movq 0x18(%rsp), %rsi incq %rsi callq 0x1a8e0 movq %rbx, %rdi cmpl $0x1, %r15d jne 0xb0564 callq 0x1a380 callq 0x1ae60 jmp 0xb0455 callq 0x1afa0 nop
_ZNK5minja5Value6to_intEv: push rbp push r15 push r14 push r12 push rbx sub rsp, 30h mov rsi, rdi cmp qword ptr [rdi+20h], 0 mov al, [rdi+40h] jnz short loc_B045C cmp qword ptr [rsi+10h], 0 jnz short loc_B045C test al, al jnz short loc_B045C cmp qword ptr [rsi+30h], 0 jnz short loc_B045C loc_B0455: xor ebx, ebx jmp loc_B04FE loc_B045C: cmp al, 4 jnz short loc_B0470 mov rdi, rsi call _ZNK5minja5Value3getIbEET_v; minja::Value::get<bool>(void) movzx ebx, al jmp loc_B04FE loc_B0470: lea ecx, [rax-5] cmp cl, 2 ja short loc_B0487 mov rdi, rsi call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) cvttsd2si rbx, xmm0 jmp short loc_B04FE loc_B0487: cmp al, 3 jnz short loc_B0455 lea rdi, [rsp+58h+var_50] call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void) mov r15, [rsp+58h+var_50] call ___errno_location mov r14, rax mov ebp, [rax] mov dword ptr [rax], 0 lea r12, [rsp+58h+var_30] mov rdi, r15 mov rsi, r12 mov edx, 0Ah call _strtol cmp [r12], r15 jz short loc_B050E mov rbx, rax mov eax, [r14] test eax, eax jz short loc_B04E0 cmp eax, 22h ; '"' jnz short loc_B04E3 lea rdi, aStol; "stol" call __ZSt20__throw_out_of_rangePKc; std::__throw_out_of_range(char const*) loc_B04E0: mov [r14], ebp loc_B04E3: lea rax, [rsp+58h+var_40] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_B04FE mov rsi, [rsp+58h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_B04FE: mov rax, rbx add rsp, 30h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_B050E: lea rdi, aStol; "stol" call __ZSt24__throw_invalid_argumentPKc; std::__throw_invalid_argument(char const*) mov r15, rdx mov rbx, rax jmp short loc_B054C mov r15, rdx mov rbx, rax cmp dword ptr [r14], 0 jnz short loc_B0531 mov [r14], ebp loc_B0531: lea rax, [rsp+58h+var_40] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_B054C mov rsi, [rsp+58h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_B054C: mov rdi, rbx; void * cmp r15d, 1 jnz short loc_B0564 call ___cxa_begin_catch call ___cxa_end_catch jmp loc_B0455 loc_B0564: call __Unwind_Resume
long long minja::Value::to_int(minja::Value *this, double a2) { char v2; // al long long v3; // rbx long long *v4; // r15 int *v5; // r14 int v6; // ebp long long v7; // rax void *v9; // rdi int v10; // edx long long *v11; // [rsp+8h] [rbp-50h] BYREF long long v12; // [rsp+18h] [rbp-40h] BYREF long long *v13; // [rsp+28h] [rbp-30h] BYREF v2 = *((_BYTE *)this + 64); if ( !*((_QWORD *)this + 4) && !*((_QWORD *)this + 2) && !v2 && !*((_QWORD *)this + 6) ) return 0LL; if ( v2 == 4 ) return (unsigned __int8)minja::Value::get<bool>(this); if ( (unsigned __int8)(v2 - 5) <= 2u ) return (unsigned int)(int)minja::Value::get<double>(this); if ( v2 != 3 ) return 0LL; minja::Value::get<std::string>((long long)&v11, this); v4 = v11; v5 = (int *)__errno_location(a2); v6 = *v5; *v5 = 0; v7 = strtol(v4, &v13, 10LL); if ( v13 == v4 ) { v9 = (void *)std::__throw_invalid_argument("stol"); if ( v10 != 1 ) _Unwind_Resume(v9); __cxa_begin_catch(v9); __cxa_end_catch(); return 0LL; } v3 = v7; if ( *v5 ) { if ( *v5 == 34 ) std::__throw_out_of_range("stol"); } else { *v5 = v6; } if ( v11 != &v12 ) operator delete(v11, v12 + 1); return v3; }
to_int: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x30 MOV RSI,RDI CMP qword ptr [RDI + 0x20],0x0 MOV AL,byte ptr [RDI + 0x40] JNZ 0x001b045c CMP qword ptr [RSI + 0x10],0x0 JNZ 0x001b045c TEST AL,AL JNZ 0x001b045c CMP qword ptr [RSI + 0x30],0x0 JNZ 0x001b045c LAB_001b0455: XOR EBX,EBX JMP 0x001b04fe LAB_001b045c: CMP AL,0x4 JNZ 0x001b0470 MOV RDI,RSI CALL 0x00186892 MOVZX EBX,AL JMP 0x001b04fe LAB_001b0470: LEA ECX,[RAX + -0x5] CMP CL,0x2 JA 0x001b0487 MOV RDI,RSI CALL 0x00185a08 CVTTSD2SI RBX,XMM0 JMP 0x001b04fe LAB_001b0487: CMP AL,0x3 JNZ 0x001b0455 LAB_001b048b: LEA RDI,[RSP + 0x8] CALL 0x001869a2 MOV R15,qword ptr [RSP + 0x8] CALL 0x0011a060 MOV R14,RAX MOV EBP,dword ptr [RAX] MOV dword ptr [RAX],0x0 LEA R12,[RSP + 0x28] MOV RDI,R15 MOV RSI,R12 MOV EDX,0xa CALL 0x0011ac50 CMP qword ptr [R12],R15 JZ 0x001b050e MOV RBX,RAX MOV EAX,dword ptr [R14] TEST EAX,EAX JZ 0x001b04e0 CMP EAX,0x22 JNZ 0x001b04e3 LAB_001b04d4: LEA RDI,[0x1f00a9] CALL 0x0011aca0 LAB_001b04e0: MOV dword ptr [R14],EBP LAB_001b04e3: LEA RAX,[RSP + 0x18] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001b04fe MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0011a8e0 LAB_001b04fe: MOV RAX,RBX ADD RSP,0x30 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_001b050e: LEA RDI,[0x1f00a9] CALL 0x0011a560 LAB_001b051a: MOV R15,RDX MOV RBX,RAX JMP 0x001b054c LAB_001b054c: MOV RDI,RBX CMP R15D,0x1 JNZ 0x001b0564 CALL 0x0011a380 CALL 0x0011ae60 JMP 0x001b0455 LAB_001b0564: CALL 0x0011afa0
/* minja::Value::to_int() const */ ulong __thiscall minja::Value::to_int(Value *this) { Value VVar1; int iVar2; bool bVar3; int *piVar4; ulong uVar5; double dVar6; int1 auVar7 [12]; long *local_50; long local_40 [2]; long *local_30; VVar1 = this[0x40]; if ((((*(long *)(this + 0x20) == 0) && (*(long *)(this + 0x10) == 0)) && (VVar1 == (Value)0x0)) && (*(long *)(this + 0x30) == 0)) { return 0; } if (VVar1 == (Value)0x4) { bVar3 = get<bool>(this); return (ulong)bVar3; } if ((byte)((char)VVar1 - 5U) < 3) { dVar6 = get<double>(this); return (long)dVar6; } if (VVar1 != (Value)0x3) { return 0; } /* try { // try from 001b048b to 001b0494 has its CatchHandler @ 001b051a */ get<std::__cxx11::string>(); piVar4 = __errno_location(); iVar2 = *piVar4; *piVar4 = 0; uVar5 = strtol((char *)local_50,(char **)&local_30,10); if (local_30 == local_50) { auVar7 = std::__throw_invalid_argument("stol"); /* catch(type#1 @ 0022d930, ) { ... } // from try @ 001b048b with catch @ 001b051a */ if (auVar7._8_4_ == 1) { __cxa_begin_catch(); __cxa_end_catch(); return 0; } /* WARNING: Subroutine does not return */ _Unwind_Resume(auVar7._0_8_); } if (*piVar4 != 0) { if (*piVar4 != 0x22) goto LAB_001b04e3; /* try { // try from 001b04d4 to 001b0519 has its CatchHandler @ 001b0522 */ std::__throw_out_of_range("stol"); } *piVar4 = iVar2; LAB_001b04e3: if (local_50 != local_40) { operator_delete(local_50,local_40[0] + 1); return uVar5; } return uVar5; }
39,895
reciprocal_fr
corpus-core[P]colibri-stateless/build_O3/_deps/blst-src/src/recip.c
static void reciprocal_fr(vec256 out, const vec256 inp) { static const vec256 rx2 = { /* left-aligned value of the modulus */ TO_LIMB_T(0xfffffffe00000002), TO_LIMB_T(0xa77b4805fffcb7fd), TO_LIMB_T(0x6673b0101343b00a), TO_LIMB_T(0xe7db4ea6533afa90), }; vec512 temp; ct_inverse_mod_256(temp, inp, BLS12_381_r, rx2); redc_mont_256(out, temp, BLS12_381_r, r0); mul_mont_sparse_256(out, out, BLS12_381_rRR, BLS12_381_r, r0); }
O3
c
reciprocal_fr: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x40, %rsp movq %rdi, %rbx leaq 0x29f59(%rip), %r14 # 0x8a6b0 leaq 0x2bdd2(%rip), %rcx # 0x8c530 leaq -0x60(%rbp), %r15 movq %r15, %rdi movq %r14, %rdx callq 0x74be0 movabsq $-0x100000001, %r12 # imm = 0xFFFFFFFEFFFFFFFF movq %rbx, %rdi movq %r15, %rsi movq %r14, %rdx movq %r12, %rcx callq 0x744c0 leaq 0x2a431(%rip), %rdx # 0x8abc0 movq %rbx, %rdi movq %rbx, %rsi movq %r14, %rcx movq %r12, %r8 callq 0x74000 addq $0x40, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
reciprocal_fr: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx sub rsp, 40h mov rbx, rdi lea r14, BLS12_381_r lea rcx, reciprocal_fr_rx2 lea r15, [rbp+var_60] mov rdi, r15 mov rdx, r14 call ct_inverse_mod_256 mov r12, 0FFFFFFFEFFFFFFFFh mov rdi, rbx mov rsi, r15 mov rdx, r14 mov rcx, r12 call redc_mont_256 lea rdx, BLS12_381_rRR mov rdi, rbx mov rsi, rbx mov rcx, r14 mov r8, r12 call mul_mont_sparse_256 add rsp, 40h pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long reciprocal_fr(long long a1, long long a2) { _BYTE v3[96]; // [rsp+0h] [rbp-60h] BYREF ct_inverse_mod_256(v3, a2, &BLS12_381_r, &reciprocal_fr_rx2); redc_mont_256(a1, v3, &BLS12_381_r, 0xFFFFFFFEFFFFFFFFLL); return mul_mont_sparse_256(a1, a1, &BLS12_381_rRR, &BLS12_381_r, 0xFFFFFFFEFFFFFFFFLL); }
reciprocal_fr: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x40 MOV RBX,RDI LEA R14,[0x18a6b0] LEA RCX,[0x18c530] LEA R15,[RBP + -0x60] MOV RDI,R15 MOV RDX,R14 CALL 0x00174be0 MOV R12,-0x100000001 MOV RDI,RBX MOV RSI,R15 MOV RDX,R14 MOV RCX,R12 CALL 0x001744c0 LEA RDX,[0x18abc0] MOV RDI,RBX MOV RSI,RBX MOV RCX,R14 MOV R8,R12 CALL 0x00174000 ADD RSP,0x40 POP RBX POP R12 POP R14 POP R15 POP RBP RET
void reciprocal_fr(int8 param_1,int8 param_2) { int1 local_68 [64]; ct_inverse_mod_256(local_68,param_2,BLS12_381_r,reciprocal_fr_rx2); redc_mont_256(param_1,local_68,BLS12_381_r,0xfffffffeffffffff); mul_mont_sparse_256(param_1,param_1,BLS12_381_rRR,BLS12_381_r,0xfffffffeffffffff); return; }
39,896
keys_free
eloqsql/storage/myisam/mi_write.c
static int keys_free(void* key_arg, TREE_FREE mode, void *param_arg) { /* Probably I can use info->lastkey here, but I'm not sure, and to be safe I'd better use local lastkey. */ bulk_insert_param *param= (bulk_insert_param*)param_arg; uchar lastkey[HA_MAX_KEY_BUFF], *key= (uchar*)key_arg; uint keylen; MI_KEYDEF *keyinfo; switch (mode) { case free_init: if (param->info->s->concurrent_insert) { mysql_rwlock_wrlock(&param->info->s->key_root_lock[param->keynr]); param->info->s->keyinfo[param->keynr].version++; } return 0; case free_free: keyinfo=param->info->s->keyinfo+param->keynr; keylen=_mi_keylength(keyinfo, key); memcpy(lastkey, key, keylen); _mi_ck_write_btree(param->info, param->keynr, lastkey, keylen - param->info->s->rec_reflength); return 0; case free_end: if (param->info->s->concurrent_insert) mysql_rwlock_unlock(&param->info->s->key_root_lock[param->keynr]); return 0; } return 0; }
O0
c
keys_free: pushq %rbp movq %rsp, %rbp subq $0x510, %rsp # imm = 0x510 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x4d0(%rbp) movl %esi, -0x4d4(%rbp) movq %rdx, -0x4e0(%rbp) movq -0x4e0(%rbp), %rax movq %rax, -0x4e8(%rbp) movq -0x4d0(%rbp), %rax movq %rax, -0x4f0(%rbp) movl -0x4d4(%rbp), %eax movl %eax, -0x504(%rbp) testl %eax, %eax je 0xc97cf jmp 0xc97aa movl -0x504(%rbp), %eax subl $0x1, %eax je 0xc985b jmp 0xc97bb movl -0x504(%rbp), %eax subl $0x2, %eax je 0xc9900 jmp 0xc994f movq -0x4e8(%rbp), %rax movq (%rax), %rax movq (%rax), %rax cmpb $0x0, 0x384(%rax) je 0xc984c movq -0x4e8(%rbp), %rax movq (%rax), %rax movq (%rax), %rax movq 0x4c8(%rax), %rdi movq -0x4e8(%rbp), %rax movl 0x8(%rax), %eax imulq $0x98, %rax, %rax addq %rax, %rdi leaq 0x92ce0(%rip), %rsi # 0x15c4f4 movl $0x3b4, %edx # imm = 0x3B4 callq 0xc6e00 movq -0x4e8(%rbp), %rax movq (%rax), %rax movq (%rax), %rax movq 0x218(%rax), %rax movq -0x4e8(%rbp), %rcx movl 0x8(%rcx), %ecx imulq $0x70, %rcx, %rcx addq %rcx, %rax movl 0x1c(%rax), %ecx addl $0x1, %ecx movl %ecx, 0x1c(%rax) movl $0x0, -0x4c4(%rbp) jmp 0xc9959 movq -0x4e8(%rbp), %rax movq (%rax), %rax movq (%rax), %rax movq 0x218(%rax), %rax movq -0x4e8(%rbp), %rcx movl 0x8(%rcx), %ecx imulq $0x70, %rcx, %rcx addq %rcx, %rax movq %rax, -0x500(%rbp) movq -0x500(%rbp), %rdi movq -0x4f0(%rbp), %rsi callq 0xc2e20 movl %eax, -0x4f4(%rbp) leaq -0x4c0(%rbp), %rdi movq -0x4f0(%rbp), %rsi movl -0x4f4(%rbp), %eax movl %eax, %edx callq 0x2a0b0 movq -0x4e8(%rbp), %rax movq (%rax), %rdi movq -0x4e8(%rbp), %rax movl 0x8(%rax), %esi leaq -0x4c0(%rbp), %rdx movl -0x4f4(%rbp), %ecx movq -0x4e8(%rbp), %rax movq (%rax), %rax movq (%rax), %rax subl 0x338(%rax), %ecx callq 0xc7050 movl $0x0, -0x4c4(%rbp) jmp 0xc9959 movq -0x4e8(%rbp), %rax movq (%rax), %rax movq (%rax), %rax cmpb $0x0, 0x384(%rax) je 0xc9943 movq -0x4e8(%rbp), %rax movq (%rax), %rax movq (%rax), %rax movq 0x4c8(%rax), %rdi movq -0x4e8(%rbp), %rax movl 0x8(%rax), %eax imulq $0x98, %rax, %rax addq %rax, %rdi callq 0xc6e70 movl $0x0, -0x4c4(%rbp) jmp 0xc9959 movl $0x0, -0x4c4(%rbp) movl -0x4c4(%rbp), %eax movl %eax, -0x508(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0xc9986 movl -0x508(%rbp), %eax addq $0x510, %rsp # imm = 0x510 popq %rbp retq callq 0x2a270 nopl (%rax,%rax)
keys_free_0: push rbp mov rbp, rsp sub rsp, 510h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_4D0], rdi mov [rbp+var_4D4], esi mov [rbp+var_4E0], rdx mov rax, [rbp+var_4E0] mov [rbp+var_4E8], rax mov rax, [rbp+var_4D0] mov [rbp+var_4F0], rax mov eax, [rbp+var_4D4] mov [rbp+var_504], eax test eax, eax jz short loc_C97CF jmp short $+2 loc_C97AA: mov eax, [rbp+var_504] sub eax, 1 jz loc_C985B jmp short $+2 loc_C97BB: mov eax, [rbp+var_504] sub eax, 2 jz loc_C9900 jmp loc_C994F loc_C97CF: mov rax, [rbp+var_4E8] mov rax, [rax] mov rax, [rax] cmp byte ptr [rax+384h], 0 jz short loc_C984C mov rax, [rbp+var_4E8] mov rax, [rax] mov rax, [rax] mov rdi, [rax+4C8h] mov rax, [rbp+var_4E8] mov eax, [rax+8] imul rax, 98h add rdi, rax lea rsi, aWorkspaceLlm4b_31; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 3B4h call inline_mysql_rwlock_wrlock_3 mov rax, [rbp+var_4E8] mov rax, [rax] mov rax, [rax] mov rax, [rax+218h] mov rcx, [rbp+var_4E8] mov ecx, [rcx+8] imul rcx, 70h ; 'p' add rax, rcx mov ecx, [rax+1Ch] add ecx, 1 mov [rax+1Ch], ecx loc_C984C: mov [rbp+var_4C4], 0 jmp loc_C9959 loc_C985B: mov rax, [rbp+var_4E8] mov rax, [rax] mov rax, [rax] mov rax, [rax+218h] mov rcx, [rbp+var_4E8] mov ecx, [rcx+8] imul rcx, 70h ; 'p' add rax, rcx mov [rbp+var_500], rax mov rdi, [rbp+var_500] mov rsi, [rbp+var_4F0] call _mi_keylength mov [rbp+var_4F4], eax lea rdi, [rbp+var_4C0] mov rsi, [rbp+var_4F0] mov eax, [rbp+var_4F4] mov edx, eax call _memcpy mov rax, [rbp+var_4E8] mov rdi, [rax] mov rax, [rbp+var_4E8] mov esi, [rax+8] lea rdx, [rbp+var_4C0] mov ecx, [rbp+var_4F4] mov rax, [rbp+var_4E8] mov rax, [rax] mov rax, [rax] sub ecx, [rax+338h] call _mi_ck_write_btree mov [rbp+var_4C4], 0 jmp short loc_C9959 loc_C9900: mov rax, [rbp+var_4E8] mov rax, [rax] mov rax, [rax] cmp byte ptr [rax+384h], 0 jz short loc_C9943 mov rax, [rbp+var_4E8] mov rax, [rax] mov rax, [rax] mov rdi, [rax+4C8h] mov rax, [rbp+var_4E8] mov eax, [rax+8] imul rax, 98h add rdi, rax call inline_mysql_rwlock_unlock_7 loc_C9943: mov [rbp+var_4C4], 0 jmp short loc_C9959 loc_C994F: mov [rbp+var_4C4], 0 loc_C9959: mov eax, [rbp+var_4C4] mov [rbp+var_508], eax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_C9986 mov eax, [rbp+var_508] add rsp, 510h pop rbp retn loc_C9986: call ___stack_chk_fail
long long keys_free_0(unsigned __int8 *a1, int a2, unsigned int *a3) { long long v3; // rax unsigned int v5; // [rsp+1Ch] [rbp-4F4h] unsigned __int8 v7[1208]; // [rsp+50h] [rbp-4C0h] BYREF unsigned long long v8; // [rsp+508h] [rbp-8h] v8 = __readfsqword(0x28u); if ( a2 ) { if ( a2 == 1 ) { v5 = mi_keylength(112LL * a3[2] + *(_QWORD *)(**(_QWORD **)a3 + 536LL), a1); memcpy(v7, a1, v5); mi_ck_write_btree(*(_QWORD **)a3, a3[2], v7, v5 - *(_DWORD *)(**(_QWORD **)a3 + 824LL)); } else if ( a2 == 2 && *(_BYTE *)(**(_QWORD **)a3 + 900LL) ) { inline_mysql_rwlock_unlock_7(152LL * a3[2] + *(_QWORD *)(**(_QWORD **)a3 + 1224LL)); } } else if ( *(_BYTE *)(**(_QWORD **)a3 + 900LL) ) { inline_mysql_rwlock_wrlock_3( 152LL * a3[2] + *(_QWORD *)(**(_QWORD **)a3 + 1224LL), (long long)"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_write.c", 0x3B4u); v3 = 112LL * a3[2] + *(_QWORD *)(**(_QWORD **)a3 + 536LL); ++*(_DWORD *)(v3 + 28); } return 0LL; }
keys_free: PUSH RBP MOV RBP,RSP SUB RSP,0x510 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x4d0],RDI MOV dword ptr [RBP + -0x4d4],ESI MOV qword ptr [RBP + -0x4e0],RDX MOV RAX,qword ptr [RBP + -0x4e0] MOV qword ptr [RBP + -0x4e8],RAX MOV RAX,qword ptr [RBP + -0x4d0] MOV qword ptr [RBP + -0x4f0],RAX MOV EAX,dword ptr [RBP + -0x4d4] MOV dword ptr [RBP + -0x504],EAX TEST EAX,EAX JZ 0x001c97cf JMP 0x001c97aa LAB_001c97aa: MOV EAX,dword ptr [RBP + -0x504] SUB EAX,0x1 JZ 0x001c985b JMP 0x001c97bb LAB_001c97bb: MOV EAX,dword ptr [RBP + -0x504] SUB EAX,0x2 JZ 0x001c9900 JMP 0x001c994f LAB_001c97cf: MOV RAX,qword ptr [RBP + -0x4e8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX] CMP byte ptr [RAX + 0x384],0x0 JZ 0x001c984c MOV RAX,qword ptr [RBP + -0x4e8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX] MOV RDI,qword ptr [RAX + 0x4c8] MOV RAX,qword ptr [RBP + -0x4e8] MOV EAX,dword ptr [RAX + 0x8] IMUL RAX,RAX,0x98 ADD RDI,RAX LEA RSI,[0x25c4f4] MOV EDX,0x3b4 CALL 0x001c6e00 MOV RAX,qword ptr [RBP + -0x4e8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x218] MOV RCX,qword ptr [RBP + -0x4e8] MOV ECX,dword ptr [RCX + 0x8] IMUL RCX,RCX,0x70 ADD RAX,RCX MOV ECX,dword ptr [RAX + 0x1c] ADD ECX,0x1 MOV dword ptr [RAX + 0x1c],ECX LAB_001c984c: MOV dword ptr [RBP + -0x4c4],0x0 JMP 0x001c9959 LAB_001c985b: MOV RAX,qword ptr [RBP + -0x4e8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x218] MOV RCX,qword ptr [RBP + -0x4e8] MOV ECX,dword ptr [RCX + 0x8] IMUL RCX,RCX,0x70 ADD RAX,RCX MOV qword ptr [RBP + -0x500],RAX MOV RDI,qword ptr [RBP + -0x500] MOV RSI,qword ptr [RBP + -0x4f0] CALL 0x001c2e20 MOV dword ptr [RBP + -0x4f4],EAX LEA RDI,[RBP + -0x4c0] MOV RSI,qword ptr [RBP + -0x4f0] MOV EAX,dword ptr [RBP + -0x4f4] MOV EDX,EAX CALL 0x0012a0b0 MOV RAX,qword ptr [RBP + -0x4e8] MOV RDI,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x4e8] MOV ESI,dword ptr [RAX + 0x8] LEA RDX,[RBP + -0x4c0] MOV ECX,dword ptr [RBP + -0x4f4] MOV RAX,qword ptr [RBP + -0x4e8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX] SUB ECX,dword ptr [RAX + 0x338] CALL 0x001c7050 MOV dword ptr [RBP + -0x4c4],0x0 JMP 0x001c9959 LAB_001c9900: MOV RAX,qword ptr [RBP + -0x4e8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX] CMP byte ptr [RAX + 0x384],0x0 JZ 0x001c9943 MOV RAX,qword ptr [RBP + -0x4e8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX] MOV RDI,qword ptr [RAX + 0x4c8] MOV RAX,qword ptr [RBP + -0x4e8] MOV EAX,dword ptr [RAX + 0x8] IMUL RAX,RAX,0x98 ADD RDI,RAX CALL 0x001c6e70 LAB_001c9943: MOV dword ptr [RBP + -0x4c4],0x0 JMP 0x001c9959 LAB_001c994f: MOV dword ptr [RBP + -0x4c4],0x0 LAB_001c9959: MOV EAX,dword ptr [RBP + -0x4c4] MOV dword ptr [RBP + -0x508],EAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x001c9986 MOV EAX,dword ptr [RBP + -0x508] ADD RSP,0x510 POP RBP RET LAB_001c9986: CALL 0x0012a270
int4 keys_free(void *param_1,int param_2,int8 *param_3) { uint uVar1; long lVar2; long in_FS_OFFSET; int1 local_4c8 [1208]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); if (param_2 == 0) { if (*(char *)(*(long *)*param_3 + 900) != '\0') { inline_mysql_rwlock_wrlock (*(long *)(*(long *)*param_3 + 0x4c8) + (ulong)*(uint *)(param_3 + 1) * 0x98, "/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_write.c",0x3b4); lVar2 = *(long *)(*(long *)*param_3 + 0x218) + (ulong)*(uint *)(param_3 + 1) * 0x70; *(int *)(lVar2 + 0x1c) = *(int *)(lVar2 + 0x1c) + 1; } } else if (param_2 == 1) { uVar1 = _mi_keylength(*(long *)(*(long *)*param_3 + 0x218) + (ulong)*(uint *)(param_3 + 1) * 0x70,param_1); memcpy(local_4c8,param_1,(ulong)uVar1); _mi_ck_write_btree(*param_3,*(int4 *)(param_3 + 1),local_4c8, uVar1 - *(int *)(*(long *)*param_3 + 0x338)); } else if ((param_2 == 2) && (*(char *)(*(long *)*param_3 + 900) != '\0')) { inline_mysql_rwlock_unlock (*(long *)(*(long *)*param_3 + 0x4c8) + (ulong)*(uint *)(param_3 + 1) * 0x98); } if (*(long *)(in_FS_OFFSET + 0x28) != local_10) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return 0; }
39,897
GetFileNameWithoutExt
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rcore.c
const char *GetFileNameWithoutExt(const char *filePath) { #define MAX_FILENAME_LENGTH 256 static char fileName[MAX_FILENAME_LENGTH] = { 0 }; memset(fileName, 0, MAX_FILENAME_LENGTH); if (filePath != NULL) { strcpy(fileName, GetFileName(filePath)); // Get filename.ext without path int size = (int)strlen(fileName); // Get size in bytes for (int i = size; i > 0; i--) // Reverse search '.' { if (fileName[i] == '.') { // NOTE: We break on first '.' found fileName[i] = '\0'; break; } } } return fileName; }
O1
c
GetFileNameWithoutExt: pushq %r15 pushq %r14 pushq %rbx movq %rdi, %rbx leaq 0xc873e(%rip), %rdi # 0x1427c0 movl $0x100, %edx # imm = 0x100 xorl %esi, %esi callq 0x92d0 testq %rbx, %rbx je 0x7a0ef xorl %eax, %eax leaq 0x6c10f(%rip), %r14 # 0xe61ab movq %rbx, %rdi movq %rax, %r15 movq %r14, %rsi callq 0x99b0 leaq 0x1(%rax), %rdi testq %rax, %rax jne 0x7a09f leaq 0x1(%r15), %rsi testq %r15, %r15 cmoveq %rbx, %rsi leaq 0xc86fb(%rip), %rbx # 0x1427c0 movq %rbx, %rdi callq 0x94b0 movq %rbx, %rdi callq 0x9230 testl %eax, %eax jle 0x7a0ef movl %eax, %ecx cmpb $0x2e, (%rcx,%rbx) je 0x7a0eb leal -0x1(%rcx), %eax cmpl $0x2, %ecx jge 0x7a0d9 jmp 0x7a0ef movb $0x0, (%rcx,%rbx) leaq 0xc86ca(%rip), %rax # 0x1427c0 popq %rbx popq %r14 popq %r15 retq
GetFileNameWithoutExt: push r15 push r14 push rbx mov rbx, rdi lea rdi, GetFileNameWithoutExt_fileName mov edx, 100h xor esi, esi call _memset test rbx, rbx jz short loc_7A0EF xor eax, eax lea r14, asc_E61AB; "\\/" mov rdi, rbx loc_7A09F: mov r15, rax mov rsi, r14 call _strpbrk lea rdi, [rax+1] test rax, rax jnz short loc_7A09F lea rsi, [r15+1] test r15, r15 cmovz rsi, rbx lea rbx, GetFileNameWithoutExt_fileName mov rdi, rbx call _strcpy mov rdi, rbx call _strlen test eax, eax jle short loc_7A0EF loc_7A0D9: mov ecx, eax cmp byte ptr [rcx+rbx], 2Eh ; '.' jz short loc_7A0EB lea eax, [rcx-1] cmp ecx, 2 jge short loc_7A0D9 jmp short loc_7A0EF loc_7A0EB: mov byte ptr [rcx+rbx], 0 loc_7A0EF: lea rax, GetFileNameWithoutExt_fileName pop rbx pop r14 pop r15 retn
_BYTE * GetFileNameWithoutExt(long long a1) { long long v1; // rbx long long v2; // rax long long v3; // r15 long long v4; // rsi int v5; // eax int v6; // ecx v1 = a1; memset(GetFileNameWithoutExt_fileName, 0LL, sizeof(GetFileNameWithoutExt_fileName)); if ( a1 ) { v2 = 0LL; do { v3 = v2; v2 = strpbrk(a1, "\\/"); a1 = v2 + 1; } while ( v2 ); v4 = v3 + 1; if ( !v3 ) v4 = v1; strcpy(GetFileNameWithoutExt_fileName, v4); v5 = strlen(GetFileNameWithoutExt_fileName); if ( v5 > 0 ) { while ( 1 ) { v6 = v5; if ( GetFileNameWithoutExt_fileName[v5] == 46 ) break; --v5; if ( v6 < 2 ) return GetFileNameWithoutExt_fileName; } GetFileNameWithoutExt_fileName[v5] = 0; } } return GetFileNameWithoutExt_fileName; }
GetFileNameWithoutExt: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RDI LEA RDI,[0x2427c0] MOV EDX,0x100 XOR ESI,ESI CALL 0x001092d0 TEST RBX,RBX JZ 0x0017a0ef XOR EAX,EAX LEA R14,[0x1e61ab] MOV RDI,RBX LAB_0017a09f: MOV R15,RAX MOV RSI,R14 CALL 0x001099b0 LEA RDI,[RAX + 0x1] TEST RAX,RAX JNZ 0x0017a09f LEA RSI,[R15 + 0x1] TEST R15,R15 CMOVZ RSI,RBX LEA RBX,[0x2427c0] MOV RDI,RBX CALL 0x001094b0 MOV RDI,RBX CALL 0x00109230 TEST EAX,EAX JLE 0x0017a0ef LAB_0017a0d9: MOV ECX,EAX CMP byte ptr [RCX + RBX*0x1],0x2e JZ 0x0017a0eb LEA EAX,[RCX + -0x1] CMP ECX,0x2 JGE 0x0017a0d9 JMP 0x0017a0ef LAB_0017a0eb: MOV byte ptr [RCX + RBX*0x1],0x0 LAB_0017a0ef: LEA RAX,[0x2427c0] POP RBX POP R14 POP R15 RET
int1 * GetFileNameWithoutExt(char *param_1) { int iVar1; char *pcVar2; char *pcVar3; ulong uVar4; char *pcVar5; memset(GetFileNameWithoutExt_fileName,0,0x100); if (param_1 != (char *)0x0) { pcVar3 = (char *)0x0; pcVar5 = param_1; do { pcVar2 = pcVar3; pcVar3 = strpbrk(pcVar5,"\\/"); pcVar5 = pcVar3 + 1; } while (pcVar3 != (char *)0x0); pcVar5 = pcVar2 + 1; if (pcVar2 == (char *)0x0) { pcVar5 = param_1; } strcpy(GetFileNameWithoutExt_fileName,pcVar5); uVar4 = strlen(GetFileNameWithoutExt_fileName); if (0 < (int)uVar4) { do { if (GetFileNameWithoutExt_fileName[uVar4 & 0xffffffff] == '.') { GetFileNameWithoutExt_fileName[uVar4 & 0xffffffff] = 0; break; } iVar1 = (int)uVar4; uVar4 = (ulong)(iVar1 - 1); } while (1 < iVar1); } } return GetFileNameWithoutExt_fileName; }
39,898
GetFileNameWithoutExt
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rcore.c
const char *GetFileNameWithoutExt(const char *filePath) { #define MAX_FILENAME_LENGTH 256 static char fileName[MAX_FILENAME_LENGTH] = { 0 }; memset(fileName, 0, MAX_FILENAME_LENGTH); if (filePath != NULL) { strcpy(fileName, GetFileName(filePath)); // Get filename.ext without path int size = (int)strlen(fileName); // Get size in bytes for (int i = size; i > 0; i--) // Reverse search '.' { if (fileName[i] == '.') { // NOTE: We break on first '.' found fileName[i] = '\0'; break; } } } return fileName; }
O2
c
GetFileNameWithoutExt: pushq %r14 pushq %rbx pushq %rax movq %rdi, %r14 leaq 0xc5060(%rip), %rbx # 0x1287f0 movl $0x100, %edx # imm = 0x100 movq %rbx, %rdi xorl %esi, %esi callq 0x92c0 testq %r14, %r14 je 0x637d1 movq %r14, %rdi callq 0x635eb movq %rbx, %rdi movq %rax, %rsi callq 0x94a0 movq %rbx, %rdi callq 0x9210 testl %eax, %eax jle 0x637d1 movl %eax, %ecx decl %eax cmpb $0x2e, (%rcx,%rbx) jne 0x637bf movb $0x0, (%rcx,%rbx) leaq 0xc5018(%rip), %rax # 0x1287f0 addq $0x8, %rsp popq %rbx popq %r14 retq
GetFileNameWithoutExt: push r14 push rbx push rax mov r14, rdi lea rbx, GetFileNameWithoutExt_fileName mov edx, 100h mov rdi, rbx xor esi, esi call _memset test r14, r14 jz short loc_637D1 mov rdi, r14 call GetFileName mov rdi, rbx mov rsi, rax call _strcpy mov rdi, rbx call _strlen loc_637BF: test eax, eax jle short loc_637D1 mov ecx, eax dec eax cmp byte ptr [rcx+rbx], 2Eh ; '.' jnz short loc_637BF mov byte ptr [rcx+rbx], 0 loc_637D1: lea rax, GetFileNameWithoutExt_fileName add rsp, 8 pop rbx pop r14 retn
_BYTE * GetFileNameWithoutExt(long long a1) { long long FileName; // rax int v2; // eax long long v3; // rcx memset(GetFileNameWithoutExt_fileName, 0LL, sizeof(GetFileNameWithoutExt_fileName)); if ( a1 ) { FileName = GetFileName(a1); strcpy(GetFileNameWithoutExt_fileName, FileName); v2 = strlen(GetFileNameWithoutExt_fileName); while ( v2 > 0 ) { v3 = (unsigned int)v2--; if ( GetFileNameWithoutExt_fileName[v3] == 46 ) { GetFileNameWithoutExt_fileName[v3] = 0; return GetFileNameWithoutExt_fileName; } } } return GetFileNameWithoutExt_fileName; }
GetFileNameWithoutExt: PUSH R14 PUSH RBX PUSH RAX MOV R14,RDI LEA RBX,[0x2287f0] MOV EDX,0x100 MOV RDI,RBX XOR ESI,ESI CALL 0x001092c0 TEST R14,R14 JZ 0x001637d1 MOV RDI,R14 CALL 0x001635eb MOV RDI,RBX MOV RSI,RAX CALL 0x001094a0 MOV RDI,RBX CALL 0x00109210 LAB_001637bf: TEST EAX,EAX JLE 0x001637d1 MOV ECX,EAX DEC EAX CMP byte ptr [RCX + RBX*0x1],0x2e JNZ 0x001637bf MOV byte ptr [RCX + RBX*0x1],0x0 LAB_001637d1: LEA RAX,[0x2287f0] ADD RSP,0x8 POP RBX POP R14 RET
int1 * GetFileNameWithoutExt(long param_1) { char *__src; ulong uVar1; ulong uVar2; memset(GetFileNameWithoutExt_fileName,0,0x100); if (param_1 != 0) { __src = (char *)GetFileName(param_1); strcpy(GetFileNameWithoutExt_fileName,__src); uVar1 = strlen(GetFileNameWithoutExt_fileName); do { if ((int)uVar1 < 1) { return GetFileNameWithoutExt_fileName; } uVar2 = uVar1 & 0xffffffff; uVar1 = (ulong)((int)uVar1 - 1); } while (GetFileNameWithoutExt_fileName[uVar2] != '.'); GetFileNameWithoutExt_fileName[uVar2] = 0; } return GetFileNameWithoutExt_fileName; }
39,899
int OpenSubdiv::v3_6_0::Bfr::Parameterization::convertCoordToSubFace<float>(bool, float const*, float*) const
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/../bfr/parameterization.h
inline bool Parameterization::HasSubFaces() const { return (_type == QUAD_SUBFACES); }
O1
c
int OpenSubdiv::v3_6_0::Bfr::Parameterization::convertCoordToSubFace<float>(bool, float const*, float*) const: cmpb $0x2, (%rdi) jne 0x8b9e4 movss (%rdx), %xmm0 movss 0x4(%rdx), %xmm1 cvttss2si %xmm0, %eax cvttss2si %xmm1, %edx cvttps2dq %xmm0, %xmm2 cvtdq2ps %xmm2, %xmm2 subss %xmm2, %xmm0 cvttps2dq %xmm1, %xmm2 cvtdq2ps %xmm2, %xmm2 subss %xmm2, %xmm1 movss 0x266a0(%rip), %xmm5 # 0xb2010 movaps %xmm0, %xmm3 addss %xmm5, %xmm3 movss 0x2668d(%rip), %xmm2 # 0xb200c movaps %xmm2, %xmm4 cmpltss %xmm0, %xmm4 andps %xmm4, %xmm3 andnps %xmm0, %xmm4 orps %xmm3, %xmm4 addss %xmm1, %xmm5 movaps %xmm2, %xmm3 cmpltss %xmm1, %xmm3 andps %xmm3, %xmm5 andnps %xmm1, %xmm3 orps %xmm5, %xmm3 testb %sil, %sil je 0x8b9b8 addss %xmm4, %xmm4 movss %xmm4, (%rcx) addss %xmm3, %xmm3 jmp 0x8b9bc movss %xmm4, (%rcx) xorl %esi, %esi ucomiss %xmm2, %xmm1 seta %sil xorl %r8d, %r8d ucomiss %xmm2, %xmm0 seta %r8b movss %xmm3, 0x4(%rcx) addl %edx, %esi addl %eax, %r8d movzbl 0x1(%rdi), %eax imull %esi, %eax addl %r8d, %eax retq pushq %rax leaq 0x3321c(%rip), %rdi # 0xbec08 leaq 0x33223(%rip), %rsi # 0xbec16 leaq 0x3327e(%rip), %rcx # 0xbec78 movl $0x97, %edx callq 0x39560
_ZNK10OpenSubdiv6v3_6_03Bfr16Parameterization21convertCoordToSubFaceIfEEibPKT_PS4_: cmp byte ptr [rdi], 2 jnz loc_8B9E4 movss xmm0, dword ptr [rdx] movss xmm1, dword ptr [rdx+4] cvttss2si eax, xmm0 cvttss2si edx, xmm1 cvttps2dq xmm2, xmm0 cvtdq2ps xmm2, xmm2 subss xmm0, xmm2 cvttps2dq xmm2, xmm1 cvtdq2ps xmm2, xmm2 subss xmm1, xmm2 movss xmm5, cs:dword_B2010 movaps xmm3, xmm0 addss xmm3, xmm5 movss xmm2, cs:dword_B200C movaps xmm4, xmm2 cmpltss xmm4, xmm0 andps xmm3, xmm4 andnps xmm4, xmm0 orps xmm4, xmm3 addss xmm5, xmm1 movaps xmm3, xmm2 cmpltss xmm3, xmm1 andps xmm5, xmm3 andnps xmm3, xmm1 orps xmm3, xmm5 test sil, sil jz short loc_8B9B8 addss xmm4, xmm4 movss dword ptr [rcx], xmm4 addss xmm3, xmm3 jmp short loc_8B9BC loc_8B9B8: movss dword ptr [rcx], xmm4 loc_8B9BC: xor esi, esi ucomiss xmm1, xmm2 setnbe sil xor r8d, r8d ucomiss xmm0, xmm2 setnbe r8b movss dword ptr [rcx+4], xmm3 add esi, edx add r8d, eax movzx eax, byte ptr [rdi+1] imul eax, esi add eax, r8d retn loc_8B9E4: push rax lea rdi, aHassubfaces; "HasSubFaces()" lea rsi, aWorkspaceLlm4b_37; "/workspace/llm4binary/github/2025_star3"... lea rcx, aIntOpensubdivV_25; "int OpenSubdiv::v3_6_0::Bfr::Parameteri"... mov edx, 97h call ___assert_fail
long long OpenSubdiv::v3_6_0::Bfr::Parameterization::convertCoordToSubFace<float>( _BYTE *a1, char a2, unsigned int *a3, float *a4) { int v4; // eax int v5; // edx __m128 v6; // xmm0 __m128 v7; // xmm1 __m128 v8; // xmm4 float v9; // xmm4_4 __m128 v10; // xmm3 float v11; // xmm3_4 if ( *a1 != 2 ) __assert_fail( "HasSubFaces()", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/parameterization.cpp", 151LL, "int OpenSubdiv::v3_6_0::Bfr::Parameterization::convertCoordToSubFace(bool, const REAL *, REAL *) const [REAL = float]"); v6 = (__m128)*a3; v7 = (__m128)a3[1]; v4 = (int)v6.m128_f32[0]; v5 = (int)v7.m128_f32[0]; v6.m128_f32[0] = v6.m128_f32[0] - _mm_cvtepi32_ps(_mm_cvttps_epi32(v6)).m128_f32[0]; v7.m128_f32[0] = v7.m128_f32[0] - _mm_cvtepi32_ps(_mm_cvttps_epi32(v7)).m128_f32[0]; v8 = _mm_cmplt_ss((__m128)0x3F400000u, v6); LODWORD(v9) = _mm_andnot_ps(v8, v6).m128_u32[0] | COERCE_UNSIGNED_INT(v6.m128_f32[0] + -1.0) & v8.m128_i32[0]; v10 = _mm_cmplt_ss((__m128)0x3F400000u, v7); LODWORD(v11) = _mm_andnot_ps(v10, v7).m128_u32[0] | COERCE_UNSIGNED_INT(v7.m128_f32[0] + -1.0) & v10.m128_i32[0]; if ( a2 ) { *a4 = v9 + v9; v11 = v11 + v11; } else { *a4 = v9; } a4[1] = v11; return v4 + (v6.m128_f32[0] > 0.75) + (v5 + (v7.m128_f32[0] > 0.75)) * (unsigned int)(unsigned __int8)a1[1]; }
convertCoordToSubFace<float>: CMP byte ptr [RDI],0x2 JNZ 0x0018b9e4 MOVSS XMM0,dword ptr [RDX] MOVSS XMM1,dword ptr [RDX + 0x4] CVTTSS2SI EAX,XMM0 CVTTSS2SI EDX,XMM1 CVTTPS2DQ XMM2,XMM0 CVTDQ2PS XMM2,XMM2 SUBSS XMM0,XMM2 CVTTPS2DQ XMM2,XMM1 CVTDQ2PS XMM2,XMM2 SUBSS XMM1,XMM2 MOVSS XMM5,dword ptr [0x001b2010] MOVAPS XMM3,XMM0 ADDSS XMM3,XMM5 MOVSS XMM2,dword ptr [0x001b200c] MOVAPS XMM4,XMM2 CMPLTSS XMM4,XMM0 ANDPS XMM3,XMM4 ANDNPS XMM4,XMM0 ORPS XMM4,XMM3 ADDSS XMM5,XMM1 MOVAPS XMM3,XMM2 CMPLTSS XMM3,XMM1 ANDPS XMM5,XMM3 ANDNPS XMM3,XMM1 ORPS XMM3,XMM5 TEST SIL,SIL JZ 0x0018b9b8 ADDSS XMM4,XMM4 MOVSS dword ptr [RCX],XMM4 ADDSS XMM3,XMM3 JMP 0x0018b9bc LAB_0018b9b8: MOVSS dword ptr [RCX],XMM4 LAB_0018b9bc: XOR ESI,ESI UCOMISS XMM1,XMM2 SETA SIL XOR R8D,R8D UCOMISS XMM0,XMM2 SETA R8B MOVSS dword ptr [RCX + 0x4],XMM3 ADD ESI,EDX ADD R8D,EAX MOVZX EAX,byte ptr [RDI + 0x1] IMUL EAX,ESI ADD EAX,R8D RET LAB_0018b9e4: PUSH RAX LEA RDI,[0x1bec08] LEA RSI,[0x1bec16] LEA RCX,[0x1bec78] MOV EDX,0x97 CALL 0x00139560
/* int OpenSubdiv::v3_6_0::Bfr::Parameterization::convertCoordToSubFace<float>(bool, float const*, float*) const */ int __thiscall OpenSubdiv::v3_6_0::Bfr::Parameterization::convertCoordToSubFace<float> (Parameterization *this,bool param_1,float *param_2,float *param_3) { float fVar1; float fVar2; float fVar3; float fVar4; float fVar5; float fVar6; float fVar7; fVar3 = DAT_001b200c; if (*this == (Parameterization)0x2) { fVar1 = *param_2; fVar2 = param_2[1]; fVar4 = fVar1 - (float)(int)fVar1; fVar5 = fVar2 - (float)(int)fVar2; fVar7 = (float)(~-(uint)(DAT_001b200c < fVar4) & (uint)fVar4 | (uint)(fVar4 + DAT_001b2010) & -(uint)(DAT_001b200c < fVar4)); fVar6 = (float)(~-(uint)(DAT_001b200c < fVar5) & (uint)fVar5 | (uint)(DAT_001b2010 + fVar5) & -(uint)(DAT_001b200c < fVar5)); if (param_1) { *param_3 = fVar7 + fVar7; fVar6 = fVar6 + fVar6; } else { *param_3 = fVar7; } param_3[1] = fVar6; return (uint)(byte)this[1] * ((uint)(fVar3 < fVar5) + (int)fVar2) + (uint)(fVar3 < fVar4) + (int)fVar1; } /* WARNING: Subroutine does not return */ __assert_fail("HasSubFaces()", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/parameterization.cpp" ,0x97, "int OpenSubdiv::v3_6_0::Bfr::Parameterization::convertCoordToSubFace(bool, const REAL *, REAL *) const [REAL = float]" ); }