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
52,800
js_c_function_data_mark
bluesky950520[P]quickjs/quickjs.c
static void js_c_function_data_mark(JSRuntime *rt, JSValue val, JS_MarkFunc *mark_func) { JSCFunctionDataRecord *s = JS_GetOpaque(val, JS_CLASS_C_FUNCTION_DATA); int i; if (s) { for(i = 0; i < s->data_len; i++) { JS_MarkValue(rt, s->data[i], mark_func); } } }
O2
c
js_c_function_data_mark: cmpl $-0x1, %edx jne 0x37794 pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx cmpw $0xf, 0x6(%rsi) jne 0x3778b movq 0x30(%rsi), %r15 testq %r15, %r15 je 0x3778b movq %rcx, %rbx movq %rdi, %r14 leaq 0x18(%r15), %r12 xorl %r13d, %r13d movzbl 0x9(%r15), %eax cmpq %rax, %r13 jae 0x3778b movl (%r12), %eax notl %eax testl $0xfffffffe, %eax # imm = 0xFFFFFFFE jne 0x37782 movq -0x8(%r12), %rsi movq %r14, %rdi callq *%rbx incq %r13 addq $0x10, %r12 jmp 0x37761 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq
js_c_function_data_mark: cmp edx, 0FFFFFFFFh jnz short locret_37794 push r15 push r14 push r13 push r12 push rbx cmp word ptr [rsi+6], 0Fh jnz short loc_3778B mov r15, [rsi+30h] test r15, r15 jz short loc_3778B mov rbx, rcx mov r14, rdi lea r12, [r15+18h] xor r13d, r13d loc_37761: movzx eax, byte ptr [r15+9] cmp r13, rax jnb short loc_3778B mov eax, [r12] not eax test eax, 0FFFFFFFEh jnz short loc_37782 mov rsi, [r12-8] mov rdi, r14 call rbx loc_37782: inc r13 add r12, 10h jmp short loc_37761 loc_3778B: pop rbx pop r12 pop r13 pop r14 pop r15 locret_37794: retn
unsigned long long js_c_function_data_mark( long long a1, long long a2, int a3, void ( *a4)(long long, _QWORD)) { long long v4; // r15 _DWORD *v6; // r12 unsigned long long i; // r13 unsigned long long result; // rax if ( a3 == -1 && *(_WORD *)(a2 + 6) == 15 ) { v4 = *(_QWORD *)(a2 + 48); if ( v4 ) { v6 = (_DWORD *)(v4 + 24); for ( i = 0LL; ; ++i ) { result = *(unsigned __int8 *)(v4 + 9); if ( i >= result ) break; if ( (~*v6 & 0xFFFFFFFE) == 0 ) a4(a1, *((_QWORD *)v6 - 1)); v6 += 4; } } } return result; }
js_c_function_data_mark: CMP EDX,-0x1 JNZ 0x00137794 PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX CMP word ptr [RSI + 0x6],0xf JNZ 0x0013778b MOV R15,qword ptr [RSI + 0x30] TEST R15,R15 JZ 0x0013778b MOV RBX,RCX MOV R14,RDI LEA R12,[R15 + 0x18] XOR R13D,R13D LAB_00137761: MOVZX EAX,byte ptr [R15 + 0x9] CMP R13,RAX JNC 0x0013778b MOV EAX,dword ptr [R12] NOT EAX TEST EAX,0xfffffffe JNZ 0x00137782 MOV RSI,qword ptr [R12 + -0x8] MOV RDI,R14 CALL RBX LAB_00137782: INC R13 ADD R12,0x10 JMP 0x00137761 LAB_0013778b: POP RBX POP R12 POP R13 POP R14 POP R15 LAB_00137794: RET
void js_c_function_data_mark(int8 param_1,long param_2,int param_3,code *param_4) { long lVar1; uint *puVar2; ulong uVar3; if (((param_3 == -1) && (*(short *)(param_2 + 6) == 0xf)) && (lVar1 = *(long *)(param_2 + 0x30), lVar1 != 0)) { puVar2 = (uint *)(lVar1 + 0x18); for (uVar3 = 0; uVar3 < *(byte *)(lVar1 + 9); uVar3 = uVar3 + 1) { if ((~*puVar2 & 0xfffffffe) == 0) { (*param_4)(param_1,*(int8 *)(puVar2 + -2)); } puVar2 = puVar2 + 4; } } return; }
52,801
my_strnxfrm_tis620_nopad
eloqsql/strings/ctype-tis620.c
static size_t my_strnxfrm_tis620_nopad(CHARSET_INFO *cs, uchar *dst, size_t dstlen, uint nweights, const uchar *src, size_t srclen, uint flags) { size_t len, dstlen0= dstlen; len= MY_MIN(dstlen, srclen); memcpy(dst, src, len); len= thai2sortable(dst, len); set_if_smaller(dstlen, nweights); set_if_smaller(len, dstlen); len= my_strxfrm_pad_desc_and_reverse_nopad(cs, dst, dst + len, dst + dstlen, (uint)(dstlen - len), flags, 0); if ((flags & MY_STRXFRM_PAD_TO_MAXLEN) && len < dstlen0) { size_t fill_length= dstlen0 - len; memset(dst + len, 0x00, fill_length); len= dstlen0; } return len; }
O0
c
my_strnxfrm_tis620_nopad: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movl 0x10(%rbp), %eax movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movq %r8, -0x28(%rbp) movq %r9, -0x30(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x18(%rbp), %rax cmpq -0x30(%rbp), %rax jae 0x492ae movq -0x18(%rbp), %rax movq %rax, -0x50(%rbp) jmp 0x492b6 movq -0x30(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x50(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x10(%rbp), %rdi movq -0x28(%rbp), %rsi movq -0x38(%rbp), %rdx callq 0x24220 movq -0x10(%rbp), %rdi movq -0x38(%rbp), %rsi callq 0x49050 movq %rax, -0x38(%rbp) movq -0x18(%rbp), %rax movl -0x1c(%rbp), %ecx cmpq %rcx, %rax jbe 0x492f3 movl -0x1c(%rbp), %eax movq %rax, -0x18(%rbp) jmp 0x492f5 jmp 0x492f7 movq -0x38(%rbp), %rax cmpq -0x18(%rbp), %rax jbe 0x49309 movq -0x18(%rbp), %rax movq %rax, -0x38(%rbp) jmp 0x4930b movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x10(%rbp), %rdx addq -0x38(%rbp), %rdx movq -0x10(%rbp), %rcx addq -0x18(%rbp), %rcx movq -0x18(%rbp), %rax subq -0x38(%rbp), %rax movl %eax, %r8d movl 0x10(%rbp), %r9d xorl %eax, %eax movl $0x0, (%rsp) callq 0x437d0 movq %rax, -0x38(%rbp) movl 0x10(%rbp), %eax andl $0x80, %eax cmpl $0x0, %eax je 0x49382 movq -0x38(%rbp), %rax cmpq -0x40(%rbp), %rax jae 0x49382 movq -0x40(%rbp), %rax subq -0x38(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x10(%rbp), %rdi addq -0x38(%rbp), %rdi movq -0x48(%rbp), %rdx xorl %esi, %esi callq 0x24180 movq -0x40(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax addq $0x60, %rsp popq %rbp retq nopl (%rax)
my_strnxfrm_tis620_nopad: push rbp mov rbp, rsp sub rsp, 60h mov eax, [rbp+arg_0] mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_1C], ecx mov [rbp+var_28], r8 mov [rbp+var_30], r9 mov rax, [rbp+var_18] mov [rbp+var_40], rax mov rax, [rbp+var_18] cmp rax, [rbp+var_30] jnb short loc_492AE mov rax, [rbp+var_18] mov [rbp+var_50], rax jmp short loc_492B6 loc_492AE: mov rax, [rbp+var_30] mov [rbp+var_50], rax loc_492B6: mov rax, [rbp+var_50] mov [rbp+var_38], rax mov rdi, [rbp+var_10] mov rsi, [rbp+var_28] mov rdx, [rbp+var_38] call _memcpy mov rdi, [rbp+var_10] mov rsi, [rbp+var_38] call thai2sortable mov [rbp+var_38], rax mov rax, [rbp+var_18] mov ecx, [rbp+var_1C] cmp rax, rcx jbe short loc_492F3 mov eax, [rbp+var_1C] mov [rbp+var_18], rax loc_492F3: jmp short $+2 loc_492F5: jmp short $+2 loc_492F7: mov rax, [rbp+var_38] cmp rax, [rbp+var_18] jbe short loc_49309 mov rax, [rbp+var_18] mov [rbp+var_38], rax loc_49309: jmp short $+2 loc_4930B: mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov rdx, [rbp+var_10] add rdx, [rbp+var_38] mov rcx, [rbp+var_10] add rcx, [rbp+var_18] mov rax, [rbp+var_18] sub rax, [rbp+var_38] mov r8d, eax mov r9d, [rbp+arg_0] xor eax, eax mov [rsp+60h+var_60], 0 call my_strxfrm_pad_desc_and_reverse_nopad mov [rbp+var_38], rax mov eax, [rbp+arg_0] and eax, 80h cmp eax, 0 jz short loc_49382 mov rax, [rbp+var_38] cmp rax, [rbp+var_40] jnb short loc_49382 mov rax, [rbp+var_40] sub rax, [rbp+var_38] mov [rbp+var_48], rax mov rdi, [rbp+var_10] add rdi, [rbp+var_38] mov rdx, [rbp+var_48] xor esi, esi call _memset mov rax, [rbp+var_40] mov [rbp+var_38], rax loc_49382: mov rax, [rbp+var_38] add rsp, 60h pop rbp retn
unsigned long long my_strnxfrm_tis620_nopad( long long a1, unsigned __int8 *a2, unsigned long long a3, unsigned int a4, long long a5, unsigned long long a6, unsigned int a7) { long long v8; // [rsp+10h] [rbp-50h] unsigned long long v10; // [rsp+28h] [rbp-38h] unsigned long long v11; // [rsp+28h] [rbp-38h] unsigned long long v13; // [rsp+48h] [rbp-18h] v13 = a3; if ( a3 >= a6 ) v8 = a6; else v8 = a3; memcpy(a2, a5, v8); v10 = thai2sortable(a2, v8); if ( v13 > a4 ) v13 = a4; if ( v10 > v13 ) v10 = v13; v11 = my_strxfrm_pad_desc_and_reverse_nopad( a1, (long long)a2, (unsigned long long)&a2[v10], (unsigned long long)&a2[v13], (int)v13 - (int)v10, a7, 0); if ( (a7 & 0x80) != 0 && v11 < a3 ) { memset(&a2[v11], 0LL, a3 - v11); return a3; } return v11; }
my_strnxfrm_tis620_nopad: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV EAX,dword ptr [RBP + 0x10] 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 qword ptr [RBP + -0x28],R8 MOV qword ptr [RBP + -0x30],R9 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x30] JNC 0x001492ae MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x50],RAX JMP 0x001492b6 LAB_001492ae: MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x50],RAX LAB_001492b6: MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RBP + -0x38],RAX MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x28] MOV RDX,qword ptr [RBP + -0x38] CALL 0x00124220 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x38] CALL 0x00149050 MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RBP + -0x1c] CMP RAX,RCX JBE 0x001492f3 MOV EAX,dword ptr [RBP + -0x1c] MOV qword ptr [RBP + -0x18],RAX LAB_001492f3: JMP 0x001492f5 LAB_001492f5: JMP 0x001492f7 LAB_001492f7: MOV RAX,qword ptr [RBP + -0x38] CMP RAX,qword ptr [RBP + -0x18] JBE 0x00149309 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x38],RAX LAB_00149309: JMP 0x0014930b LAB_0014930b: MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x10] ADD RDX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RBP + -0x10] ADD RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x18] SUB RAX,qword ptr [RBP + -0x38] MOV R8D,EAX MOV R9D,dword ptr [RBP + 0x10] XOR EAX,EAX MOV dword ptr [RSP],0x0 CALL 0x001437d0 MOV qword ptr [RBP + -0x38],RAX MOV EAX,dword ptr [RBP + 0x10] AND EAX,0x80 CMP EAX,0x0 JZ 0x00149382 MOV RAX,qword ptr [RBP + -0x38] CMP RAX,qword ptr [RBP + -0x40] JNC 0x00149382 MOV RAX,qword ptr [RBP + -0x40] SUB RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x48],RAX MOV RDI,qword ptr [RBP + -0x10] ADD RDI,qword ptr [RBP + -0x38] MOV RDX,qword ptr [RBP + -0x48] XOR ESI,ESI CALL 0x00124180 MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x38],RAX LAB_00149382: MOV RAX,qword ptr [RBP + -0x38] ADD RSP,0x60 POP RBP RET
ulong my_strnxfrm_tis620_nopad (int8 param_1,void *param_2,ulong param_3,uint param_4,void *param_5, ulong param_6,uint param_7) { size_t local_58; ulong local_40; ulong local_20; local_58 = param_6; if (param_3 < param_6) { local_58 = param_3; } memcpy(param_2,param_5,local_58); local_40 = thai2sortable(param_2,local_58); local_20 = param_3; if (param_4 < param_3) { local_20 = (ulong)param_4; } if (local_20 < local_40) { local_40 = local_20; } local_40 = my_strxfrm_pad_desc_and_reverse_nopad (param_1,param_2,(long)param_2 + local_40,(long)param_2 + local_20, (int)local_20 - (int)local_40,param_7,0); if (((param_7 & 0x80) != 0) && (local_40 < param_3)) { memset((void *)((long)param_2 + local_40),0,param_3 - local_40); local_40 = param_3; } return local_40; }
52,802
my_strnxfrm_tis620_nopad
eloqsql/strings/ctype-tis620.c
static size_t my_strnxfrm_tis620_nopad(CHARSET_INFO *cs, uchar *dst, size_t dstlen, uint nweights, const uchar *src, size_t srclen, uint flags) { size_t len, dstlen0= dstlen; len= MY_MIN(dstlen, srclen); memcpy(dst, src, len); len= thai2sortable(dst, len); set_if_smaller(dstlen, nweights); set_if_smaller(len, dstlen); len= my_strxfrm_pad_desc_and_reverse_nopad(cs, dst, dst + len, dst + dstlen, (uint)(dstlen - len), flags, 0); if ((flags & MY_STRXFRM_PAD_TO_MAXLEN) && len < dstlen0) { size_t fill_length= dstlen0 - len; memset(dst + len, 0x00, fill_length); len= dstlen0; } return len; }
O3
c
my_strnxfrm_tis620_nopad: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %r9, %r12 movl %ecx, %r15d movq %rdx, %rbx movq %rsi, %r14 movq %rdi, %r13 cmpq %r9, %rdx cmovbq %rdx, %r12 movq %rsi, %rdi movq %r8, %rsi movq %r12, %rdx callq 0x24240 movq %r14, %rdi movq %r12, %rsi callq 0x3ba3f movl %r15d, %r8d cmpq %rbx, %r8 cmovaeq %rbx, %r8 cmpq %r8, %r12 cmovaeq %r8, %r12 leaq (%r14,%r12), %rdx leaq (%r14,%r8), %rcx subl %r12d, %r8d movl $0x0, (%rsp) movq %r13, %rdi movq %r14, %rsi movl 0x10(%rbp), %r15d movl %r15d, %r9d callq 0x388d2 testb %r15b, %r15b jns 0x3bbd7 movq %rbx, %rdx subq %rax, %rdx jbe 0x3bbd7 addq %rax, %r14 movq %r14, %rdi xorl %esi, %esi callq 0x24180 movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
my_strnxfrm_tis620_nopad: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r12, r9 mov r15d, ecx mov rbx, rdx mov r14, rsi mov r13, rdi cmp rdx, r9 cmovb r12, rdx mov rdi, rsi mov rsi, r8 mov rdx, r12 call _memcpy mov rdi, r14 mov rsi, r12 call thai2sortable mov r8d, r15d cmp r8, rbx cmovnb r8, rbx cmp r12, r8 cmovnb r12, r8 lea rdx, [r14+r12] lea rcx, [r14+r8] sub r8d, r12d mov [rsp+30h+var_30], 0 mov rdi, r13 mov rsi, r14 mov r15d, [rbp+arg_0] mov r9d, r15d call my_strxfrm_pad_desc_and_reverse_nopad test r15b, r15b jns short loc_3BBD7 mov rdx, rbx sub rdx, rax jbe short loc_3BBD7 add r14, rax mov rdi, r14 xor esi, esi call _memset mov rax, rbx loc_3BBD7: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
unsigned long long my_strnxfrm_tis620_nopad( long long a1, unsigned __int8 *a2, unsigned long long a3, unsigned int a4, long long a5, unsigned long long a6, unsigned int a7) { unsigned long long v7; // r12 unsigned long long v10; // r8 unsigned long long result; // rax v7 = a6; if ( a3 < a6 ) v7 = a3; memcpy(a2, a5, v7); thai2sortable(a2, v7); v10 = a4; if ( a4 >= a3 ) v10 = a3; if ( v7 >= v10 ) v7 = v10; result = my_strxfrm_pad_desc_and_reverse_nopad( a1, (long long)a2, (unsigned long long)&a2[v7], (unsigned long long)&a2[v10], (int)v10 - (int)v7, a7, 0); if ( (a7 & 0x80u) != 0 && a3 > result ) { memset(&a2[result], 0LL, a3 - result); return a3; } return result; }
my_strnxfrm_tis620_nopad: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R12,R9 MOV R15D,ECX MOV RBX,RDX MOV R14,RSI MOV R13,RDI CMP RDX,R9 CMOVC R12,RDX MOV RDI,RSI MOV RSI,R8 MOV RDX,R12 CALL 0x00124240 MOV RDI,R14 MOV RSI,R12 CALL 0x0013ba3f MOV R8D,R15D CMP R8,RBX CMOVNC R8,RBX CMP R12,R8 CMOVNC R12,R8 LEA RDX,[R14 + R12*0x1] LEA RCX,[R14 + R8*0x1] SUB R8D,R12D MOV dword ptr [RSP],0x0 MOV RDI,R13 MOV RSI,R14 MOV R15D,dword ptr [RBP + 0x10] MOV R9D,R15D CALL 0x001388d2 TEST R15B,R15B JNS 0x0013bbd7 MOV RDX,RBX SUB RDX,RAX JBE 0x0013bbd7 ADD R14,RAX MOV RDI,R14 XOR ESI,ESI CALL 0x00124180 MOV RAX,RBX LAB_0013bbd7: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
ulong my_strnxfrm_tis620_nopad (int8 param_1,void *param_2,ulong param_3,uint param_4,void *param_5, ulong param_6,int4 param_7) { int8 in_RAX; ulong uVar1; uint uVar2; uVar2 = (uint)((ulong)in_RAX >> 0x20); if (param_3 < param_6) { param_6 = param_3; } memcpy(param_2,param_5,param_6); thai2sortable(param_2,param_6); uVar1 = (ulong)param_4; if (param_3 <= param_4) { uVar1 = param_3; } if (uVar1 <= param_6) { param_6 = uVar1; } uVar1 = my_strxfrm_pad_desc_and_reverse_nopad (param_1,param_2,(long)param_2 + param_6,(long)param_2 + uVar1, (int)uVar1 - (int)param_6,param_7,(ulong)uVar2 << 0x20); if (((char)param_7 < '\0') && (uVar1 <= param_3 && param_3 - uVar1 != 0)) { memset((void *)((long)param_2 + uVar1),0,param_3 - uVar1); uVar1 = param_3; } return uVar1; }
52,803
minja::Context::Context(minja::Value&&, std::shared_ptr<minja::Context> const&)
llama.cpp/common/minja/minja.hpp
Context(Value && values, const std::shared_ptr<Context> & parent = nullptr) : values_(std::move(values)), parent_(parent) { if (!values_.is_object()) throw std::runtime_error("Context values must be an object: " + values_.dump()); }
O3
cpp
minja::Context::Context(minja::Value&&, std::shared_ptr<minja::Context> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx xorps %xmm0, %xmm0 movups %xmm0, 0x8(%rdi) leaq 0xa09bd(%rip), %rax # 0x160520 addq $0x10, %rax movq %rax, (%rdi) movups %xmm0, 0x18(%rdi) xorl %r13d, %r13d movq %r13, 0x30(%rdi) movups 0x10(%rsi), %xmm0 movq %r13, 0x18(%rsi) movups %xmm0, 0x28(%rdi) movq %r13, 0x10(%rsi) movq %r13, 0x40(%rdi) movups 0x20(%rsi), %xmm0 movq %r13, 0x28(%rsi) movups %xmm0, 0x38(%rdi) movq %r13, 0x20(%rsi) movq %r13, 0x50(%rdi) movups 0x30(%rsi), %xmm0 movq %r13, 0x38(%rsi) movups %xmm0, 0x48(%rdi) movq %r13, 0x30(%rsi) leaq 0x58(%rdi), %r12 leaq 0x40(%rsi), %rdi movups 0x40(%rsi), %xmm0 movups %xmm0, 0x58(%rbx) xorl %esi, %esi callq 0x8508e movb $0x0, 0x40(%r15) movq %r13, 0x48(%r15) movq %r12, %rdi movl $0x1, %esi callq 0x8508e movq (%r14), %rax movq %rax, 0x68(%rbx) movq 0x8(%r14), %rax movq %rax, 0x70(%rbx) testq %rax, %rax je 0xbfc03 movq 0xa23a3(%rip), %rcx # 0x161f98 cmpb $0x0, (%rcx) je 0xbfbff incl 0x8(%rax) jmp 0xbfc03 lock incl 0x8(%rax) cmpq $0x0, 0x38(%rbx) je 0xbfc19 addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x18(%rbx), %r14 movl $0x10, %edi callq 0x20640 movq %rax, %r15 leaq 0x8(%rsp), %rdi movq %r14, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0xb6034 leaq 0x5fe16(%rip), %rsi # 0x11fa5b leaq 0x28(%rsp), %rdi leaq 0x8(%rsp), %rdx callq 0xaf8d4 movb $0x1, %bpl leaq 0x28(%rsp), %rsi movq %r15, %rdi callq 0x20470 xorl %ebp, %ebp movq 0xa2353(%rip), %rsi # 0x161fc0 movq 0xa230c(%rip), %rdx # 0x161f80 movq %r15, %rdi callq 0x20a40 movq %rax, %r12 leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xbfc9a movq 0x38(%rsp), %rsi incq %rsi callq 0x20180 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xbfcb5 movq 0x18(%rsp), %rsi incq %rsi callq 0x20180 testb %bpl, %bpl jne 0xbfcdf jmp 0xbfce7 movq %rax, %r12 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xbfcdf movq 0x18(%rsp), %rsi incq %rsi callq 0x20180 jmp 0xbfcdf movq %rax, %r12 movq %r15, %rdi callq 0x20ef0 leaq 0x8(%rbx), %r15 addq $0x70, %rbx movq %rbx, %rdi callq 0x70982 movq %r14, %rdi callq 0xb60d0 movq %r15, %rdi callq 0xbfd10 movq %r12, %rdi callq 0x20ae0 nop
_ZN5minja7ContextC2EONS_5ValueERKSt10shared_ptrIS0_E: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h mov r14, rdx mov r15, rsi mov rbx, rdi xorps xmm0, xmm0 movups xmmword ptr [rdi+8], xmm0 lea rax, _ZTVN5minja7ContextE; `vtable for'minja::Context add rax, 10h mov [rdi], rax movups xmmword ptr [rdi+18h], xmm0 xor r13d, r13d mov [rdi+30h], r13 movups xmm0, xmmword ptr [rsi+10h] mov [rsi+18h], r13 movups xmmword ptr [rdi+28h], xmm0 mov [rsi+10h], r13 mov [rdi+40h], r13 movups xmm0, xmmword ptr [rsi+20h] mov [rsi+28h], r13 movups xmmword ptr [rdi+38h], xmm0 mov [rsi+20h], r13 mov [rdi+50h], r13 movups xmm0, xmmword ptr [rsi+30h] mov [rsi+38h], r13 movups xmmword ptr [rdi+48h], xmm0 mov [rsi+30h], r13 lea r12, [rdi+58h] lea rdi, [rsi+40h] movups xmm0, xmmword ptr [rsi+40h] movups xmmword ptr [rbx+58h], 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 [r15+40h], 0 mov [r15+48h], r13 mov rdi, r12 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rax, [r14] mov [rbx+68h], rax mov rax, [r14+8] mov [rbx+70h], rax test rax, rax jz short loc_BFC03 mov rcx, cs:_ZTISt19_Sp_make_shared_tag; `typeinfo for'std::_Sp_make_shared_tag cmp byte ptr [rcx], 0 jz short loc_BFBFF inc dword ptr [rax+8] jmp short loc_BFC03 loc_BFBFF: lock inc dword ptr [rax+8] loc_BFC03: cmp qword ptr [rbx+38h], 0 jz short loc_BFC19 add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_BFC19: lea r14, [rbx+18h] mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r15, rax lea rdi, [rsp+78h+var_70] mov rsi, r14 mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) lea rsi, aContextValuesM; "Context values must be an object: " lea rdi, [rsp+78h+var_50] lea rdx, [rsp+78h+var_70] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) mov bpl, 1 lea rsi, [rsp+78h+var_50] mov rdi, r15 call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) xor ebp, ebp mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, r15; void * call ___cxa_throw mov r12, rax lea rax, [rsp+78h+var_40] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_BFC9A mov rsi, [rsp+78h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_BFC9A: lea rax, [rsp+78h+var_60] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_BFCB5 mov rsi, [rsp+78h+var_60] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_BFCB5: test bpl, bpl jnz short loc_BFCDF jmp short loc_BFCE7 mov r12, rax lea rax, [rsp+78h+var_60] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_BFCDF mov rsi, [rsp+78h+var_60] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_BFCDF mov r12, rax loc_BFCDF: mov rdi, r15; void * call ___cxa_free_exception loc_BFCE7: lea r15, [rbx+8] add rbx, 70h ; 'p' mov rdi, rbx call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() mov rdi, r14; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() mov rdi, r15 call _ZNSt23enable_shared_from_thisIN5minja7ContextEED2Ev; std::enable_shared_from_this<minja::Context>::~enable_shared_from_this() mov rdi, r12 call __Unwind_Resume
long long minja::Context::Context(long long a1, long long a2, _QWORD *a3) { __int128 v4; // xmm0 __int128 v5; // xmm0 __int128 v6; // xmm0 long long result; // rax void *exception; // r15 _BYTE v9[16]; // [rsp+8h] [rbp-70h] BYREF _QWORD v10[2]; // [rsp+28h] [rbp-50h] BYREF *(_OWORD *)(a1 + 8) = 0LL; *(_QWORD *)a1 = &`vtable for'minja::Context + 2; *(_OWORD *)(a1 + 24) = 0LL; *(_QWORD *)(a1 + 48) = 0LL; v4 = *(_OWORD *)(a2 + 16); *(_QWORD *)(a2 + 24) = 0LL; *(_OWORD *)(a1 + 40) = v4; *(_QWORD *)(a2 + 16) = 0LL; *(_QWORD *)(a1 + 64) = 0LL; v5 = *(_OWORD *)(a2 + 32); *(_QWORD *)(a2 + 40) = 0LL; *(_OWORD *)(a1 + 56) = v5; *(_QWORD *)(a2 + 32) = 0LL; *(_QWORD *)(a1 + 80) = 0LL; v6 = *(_OWORD *)(a2 + 48); *(_QWORD *)(a2 + 56) = 0LL; *(_OWORD *)(a1 + 72) = v6; *(_QWORD *)(a2 + 48) = 0LL; *(_OWORD *)(a1 + 88) = *(_OWORD *)(a2 + 64); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)(a2 + 64)); *(_BYTE *)(a2 + 64) = 0; *(_QWORD *)(a2 + 72) = 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 *)(a1 + 88)); *(_QWORD *)(a1 + 104) = *a3; result = a3[1]; *(_QWORD *)(a1 + 112) = result; if ( result ) { if ( _libc_single_threaded ) ++*(_DWORD *)(result + 8); else _InterlockedIncrement((volatile signed __int32 *)(result + 8)); } if ( !*(_QWORD *)(a1 + 56) ) { exception = __cxa_allocate_exception(0x10uLL); minja::Value::dump[abi:cxx11]((long long)v9, a1 + 24, 0xFFFFFFFF, 0); std::operator+<char>(v10, (long long)"Context values must be an object: ", (long long)v9); std::runtime_error::runtime_error(exception, v10); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } return result; }
Context: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 MOV R14,RDX MOV R15,RSI MOV RBX,RDI XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI + 0x8],XMM0 LEA RAX,[0x260520] ADD RAX,0x10 MOV qword ptr [RDI],RAX MOVUPS xmmword ptr [RDI + 0x18],XMM0 XOR R13D,R13D MOV qword ptr [RDI + 0x30],R13 MOVUPS XMM0,xmmword ptr [RSI + 0x10] MOV qword ptr [RSI + 0x18],R13 MOVUPS xmmword ptr [RDI + 0x28],XMM0 MOV qword ptr [RSI + 0x10],R13 MOV qword ptr [RDI + 0x40],R13 MOVUPS XMM0,xmmword ptr [RSI + 0x20] MOV qword ptr [RSI + 0x28],R13 MOVUPS xmmword ptr [RDI + 0x38],XMM0 MOV qword ptr [RSI + 0x20],R13 MOV qword ptr [RDI + 0x50],R13 MOVUPS XMM0,xmmword ptr [RSI + 0x30] MOV qword ptr [RSI + 0x38],R13 MOVUPS xmmword ptr [RDI + 0x48],XMM0 MOV qword ptr [RSI + 0x30],R13 LEA R12,[RDI + 0x58] LEA RDI,[RSI + 0x40] MOVUPS XMM0,xmmword ptr [RSI + 0x40] MOVUPS xmmword ptr [RBX + 0x58],XMM0 XOR ESI,ESI CALL 0x0018508e MOV byte ptr [R15 + 0x40],0x0 MOV qword ptr [R15 + 0x48],R13 MOV RDI,R12 MOV ESI,0x1 CALL 0x0018508e MOV RAX,qword ptr [R14] MOV qword ptr [RBX + 0x68],RAX MOV RAX,qword ptr [R14 + 0x8] MOV qword ptr [RBX + 0x70],RAX TEST RAX,RAX JZ 0x001bfc03 MOV RCX,qword ptr [0x00261f98] CMP byte ptr [RCX],0x0 JZ 0x001bfbff INC dword ptr [RAX + 0x8] JMP 0x001bfc03 LAB_001bfbff: INC.LOCK dword ptr [RAX + 0x8] LAB_001bfc03: CMP qword ptr [RBX + 0x38],0x0 JZ 0x001bfc19 ADD RSP,0x48 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001bfc19: LEA R14,[RBX + 0x18] MOV EDI,0x10 CALL 0x00120640 MOV R15,RAX LAB_001bfc2a: LEA RDI,[RSP + 0x8] MOV RSI,R14 MOV EDX,0xffffffff XOR ECX,ECX CALL 0x001b6034 LAB_001bfc3e: LEA RSI,[0x21fa5b] LEA RDI,[RSP + 0x28] LEA RDX,[RSP + 0x8] CALL 0x001af8d4 MOV BPL,0x1 LAB_001bfc57: LEA RSI,[RSP + 0x28] MOV RDI,R15 CALL 0x00120470 XOR EBP,EBP MOV RSI,qword ptr [0x00261fc0] MOV RDX,qword ptr [0x00261f80] MOV RDI,R15 CALL 0x00120a40
/* minja::Context::Context(minja::Value&&, std::shared_ptr<minja::Context> const&) */ void __thiscall minja::Context::Context(Context *this,Value *param_1,shared_ptr *param_2) { long lVar1; int8 uVar2; runtime_error *this_00; int1 local_70 [32]; string local_50 [32]; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int ***)this = &PTR__Context_00260530; *(int8 *)(this + 0x18) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x30) = 0; uVar2 = *(int8 *)(param_1 + 0x18); *(int8 *)(param_1 + 0x18) = 0; *(int8 *)(this + 0x28) = *(int8 *)(param_1 + 0x10); *(int8 *)(this + 0x30) = uVar2; *(int8 *)(param_1 + 0x10) = 0; *(int8 *)(this + 0x40) = 0; uVar2 = *(int8 *)(param_1 + 0x28); *(int8 *)(param_1 + 0x28) = 0; *(int8 *)(this + 0x38) = *(int8 *)(param_1 + 0x20); *(int8 *)(this + 0x40) = uVar2; *(int8 *)(param_1 + 0x20) = 0; *(int8 *)(this + 0x50) = 0; uVar2 = *(int8 *)(param_1 + 0x38); *(int8 *)(param_1 + 0x38) = 0; *(int8 *)(this + 0x48) = *(int8 *)(param_1 + 0x30); *(int8 *)(this + 0x50) = uVar2; *(int8 *)(param_1 + 0x30) = 0; uVar2 = *(int8 *)(param_1 + 0x48); *(int8 *)(this + 0x58) = *(int8 *)(param_1 + 0x40); *(int8 *)(this + 0x60) = uVar2; nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant((bool)((char)param_1 + '@')); param_1[0x40] = (Value)0x0; *(int8 *)(param_1 + 0x48) = 0; nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant((bool)((char)this + 'X')); *(int8 *)(this + 0x68) = *(int8 *)param_2; lVar1 = *(long *)(param_2 + 8); *(long *)(this + 0x70) = lVar1; if (lVar1 != 0) { if (*PTR___libc_single_threaded_00261f98 == '\0') { LOCK(); *(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1; UNLOCK(); } else { *(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1; } } if (*(long *)(this + 0x38) != 0) { return; } this_00 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001bfc2a to 001bfc3d has its CatchHandler @ 001bfcdc */ Value::dump_abi_cxx11_((int)local_70,(bool)((char)this + '\x18')); /* try { // try from 001bfc3e to 001bfc53 has its CatchHandler @ 001bfcbc */ std::operator+((char *)local_50,(string *)"Context values must be an object: "); /* try { // try from 001bfc57 to 001bfc7b has its CatchHandler @ 001bfc7c */ std::runtime_error::runtime_error(this_00,local_50); /* WARNING: Subroutine does not return */ __cxa_throw(this_00,PTR_typeinfo_00261fc0,PTR__runtime_error_00261f80); }
52,804
my_strdup
eloqsql/mysys/my_malloc.c
char *my_strdup(PSI_memory_key key, const char *from, myf my_flags) { char *ptr; size_t length= strlen(from)+1; DBUG_ENTER("my_strdup"); if ((ptr= (char*) my_malloc(key, length, my_flags))) memcpy(ptr, from, length); DBUG_RETURN(ptr); }
O3
c
my_strdup: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rdx, %r15 movq %rsi, %rbx movl %edi, %r12d movq %rsi, %rdi callq 0x2a380 movq %rax, %r14 incq %r14 movl %r12d, %edi movq %r14, %rsi movq %r15, %rdx callq 0xbf321 testq %rax, %rax je 0xbf62f movq %rax, %rdi movq %rbx, %rsi movq %r14, %rdx popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp jmp 0x2a0b0 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
my_strdup: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov r15, rdx mov rbx, rsi mov r12d, edi mov rdi, rsi call _strlen mov r14, rax inc r14 mov edi, r12d mov rsi, r14 mov rdx, r15 call my_malloc test rax, rax jz short loc_BF62F mov rdi, rax mov rsi, rbx mov rdx, r14 pop rbx pop r12 pop r14 pop r15 pop rbp jmp _memcpy loc_BF62F: pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long my_strdup(unsigned int a1, long long a2, int a3) { unsigned long long v4; // r14 long long result; // rax v4 = strlen(a2) + 1; result = my_malloc(a1, v4, a3); if ( result ) return memcpy(result, a2, v4); return result; }
my_strdup: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV R15,RDX MOV RBX,RSI MOV R12D,EDI MOV RDI,RSI CALL 0x0012a380 MOV R14,RAX INC R14 MOV EDI,R12D MOV RSI,R14 MOV RDX,R15 CALL 0x001bf321 TEST RAX,RAX JZ 0x001bf62f MOV RDI,RAX MOV RSI,RBX MOV RDX,R14 POP RBX POP R12 POP R14 POP R15 POP RBP JMP 0x0012a0b0 LAB_001bf62f: POP RBX POP R12 POP R14 POP R15 POP RBP RET
void my_strdup(int4 param_1,char *param_2,int8 param_3) { size_t sVar1; void *__dest; sVar1 = strlen(param_2); __dest = (void *)my_malloc(param_1,sVar1 + 1,param_3); if (__dest != (void *)0x0) { memcpy(__dest,param_2,sVar1 + 1); return; } return; }
52,805
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::key(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
monkey531[P]llama/common/json.hpp
bool key(string_t& val) { BasicJsonType k = BasicJsonType(val); // check callback for key const bool keep = callback(static_cast<int>(ref_stack.size()), parse_event_t::key, k); key_keep_stack.push_back(keep); // add discarded value at given key and store the reference for later if (keep && ref_stack.back()) { object_element = &(ref_stack.back()->m_data.m_value.object->operator[](val) = discarded); } return true; }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::key(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&): pushq %rbp pushq %r14 pushq %rbx subq $0x30, %rsp movq %rsi, %r14 movq %rdi, %rbx leaq 0x10(%rsp), %rdi callq 0x5fc50 movq 0x10(%rbx), %rax subq 0x8(%rbx), %rax shrq $0x3, %rax movl %eax, 0xc(%rsp) movb $0x4, 0xb(%rsp) cmpq $0x0, 0x90(%rbx) je 0x5d10e leaq 0x80(%rbx), %rdi leaq 0xc(%rsp), %rsi leaq 0xb(%rsp), %rdx leaq 0x10(%rsp), %rcx callq *0x98(%rbx) movl %eax, %ebp leaq 0x48(%rbx), %rdi movzbl %al, %esi callq 0x5c810 testb %bpl, %bpl je 0x5d0ec movq 0x10(%rbx), %rax cmpq $0x0, -0x8(%rax) je 0x5d0ec leaq 0xa8(%rbx), %rsi leaq 0x20(%rsp), %rdi callq 0x5e1a6 movq 0x10(%rbx), %rax movq -0x8(%rax), %rax movq 0x8(%rax), %rdi movq %r14, %rsi callq 0x5fc8a leaq 0x20(%rsp), %r14 movq %rax, %rdi movq %r14, %rsi callq 0x5b926 movq %rax, 0x70(%rbx) movq %r14, %rdi xorl %esi, %esi callq 0x59184 movq %r14, %rdi callq 0x5e672 leaq 0x10(%rsp), %rbx movq %rbx, %rdi xorl %esi, %esi callq 0x59184 movq %rbx, %rdi callq 0x5e672 movb $0x1, %al addq $0x30, %rsp popq %rbx popq %r14 popq %rbp retq callq 0x1a300 movq %rax, %rbx leaq 0x20(%rsp), %r14 movq %r14, %rdi xorl %esi, %esi callq 0x59184 movq %r14, %rdi callq 0x5e672 jmp 0x5d132 movq %rax, %rbx leaq 0x10(%rsp), %r14 movq %r14, %rdi xorl %esi, %esi callq 0x59184 movq %r14, %rdi callq 0x5e672 movq %rbx, %rdi callq 0x1afb0 nop
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE3keyERSB_: push rbp push r14 push rbx sub rsp, 30h mov r14, rsi mov rbx, rdi lea rdi, [rsp+48h+var_38] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_ mov rax, [rbx+10h] sub rax, [rbx+8] shr rax, 3 mov [rsp+48h+var_3C], eax mov [rsp+48h+var_3D], 4 cmp qword ptr [rbx+90h], 0 jz loc_5D10E lea rdi, [rbx+80h] lea rsi, [rsp+48h+var_3C] lea rdx, [rsp+48h+var_3D] lea rcx, [rsp+48h+var_38] call qword ptr [rbx+98h] mov ebp, eax lea rdi, [rbx+48h] movzx esi, al call _ZNSt6vectorIbSaIbEE9push_backEb; std::vector<bool>::push_back(bool) test bpl, bpl jz short loc_5D0EC mov rax, [rbx+10h] cmp qword ptr [rax-8], 0 jz short loc_5D0EC lea rsi, [rbx+0A8h] lea rdi, [rsp+48h+var_28] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) mov rax, [rbx+10h] mov rax, [rax-8] mov rdi, [rax+8] mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEEixERSH_; 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>>>>::operator[](std::string const&) lea r14, [rsp+48h+var_28] mov rdi, rax mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov [rbx+70h], rax 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_5D0EC: lea rbx, [rsp+48h+var_38] mov rdi, rbx xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov al, 1 add rsp, 30h pop rbx pop r14 pop rbp retn loc_5D10E: call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void) mov rbx, rax lea r14, [rsp+48h+var_28] 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_5D132 mov rbx, rax loc_5D132: lea r14, [rsp+48h+var_38] mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rdi, rbx call __Unwind_Resume
char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::key( long long a1, long long a2) { unsigned __int8 v2; // bp long long v3; // rax char v5; // [rsp+Bh] [rbp-3Dh] BYREF int v6; // [rsp+Ch] [rbp-3Ch] BYREF char v7[16]; // [rsp+10h] [rbp-38h] BYREF char v8[40]; // [rsp+20h] [rbp-28h] BYREF ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_(v7); v6 = (*(_QWORD *)(a1 + 16) - *(_QWORD *)(a1 + 8)) >> 3; v5 = 4; if ( !*(_QWORD *)(a1 + 144) ) std::__throw_bad_function_call(); v2 = (*(long long ( **)(long long, int *, char *, char *))(a1 + 152))(a1 + 128, &v6, &v5, v7); std::vector<bool>::push_back(a1 + 72, v2); if ( v2 && *(_QWORD *)(*(_QWORD *)(a1 + 16) - 8LL) ) { nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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( v8, a1 + 168); v3 = 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>>>>::operator[]( *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 16) - 8LL) + 8LL), a2); *(_QWORD *)(a1 + 112) = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=( v3, (long long)v8); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v8); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v8); } nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v7); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v7); return 1; }
key: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x30 MOV R14,RSI MOV RBX,RDI LEA RDI,[RSP + 0x10] CALL 0x0015fc50 MOV RAX,qword ptr [RBX + 0x10] SUB RAX,qword ptr [RBX + 0x8] SHR RAX,0x3 MOV dword ptr [RSP + 0xc],EAX MOV byte ptr [RSP + 0xb],0x4 CMP qword ptr [RBX + 0x90],0x0 JZ 0x0015d10e LEA RDI,[RBX + 0x80] LAB_0015d06e: LEA RSI,[RSP + 0xc] LEA RDX,[RSP + 0xb] LEA RCX,[RSP + 0x10] CALL qword ptr [RBX + 0x98] MOV EBP,EAX LEA RDI,[RBX + 0x48] MOVZX ESI,AL CALL 0x0015c810 TEST BPL,BPL JZ 0x0015d0ec MOV RAX,qword ptr [RBX + 0x10] CMP qword ptr [RAX + -0x8],0x0 JZ 0x0015d0ec LEA RSI,[RBX + 0xa8] LEA RDI,[RSP + 0x20] CALL 0x0015e1a6 MOV RAX,qword ptr [RBX + 0x10] MOV RAX,qword ptr [RAX + -0x8] MOV RDI,qword ptr [RAX + 0x8] LAB_0015d0be: MOV RSI,R14 CALL 0x0015fc8a LEA R14,[RSP + 0x20] MOV RDI,RAX MOV RSI,R14 CALL 0x0015b926 MOV qword ptr [RBX + 0x70],RAX MOV RDI,R14 XOR ESI,ESI CALL 0x00159184 MOV RDI,R14 CALL 0x0015e672 LAB_0015d0ec: LEA RBX,[RSP + 0x10] MOV RDI,RBX XOR ESI,ESI CALL 0x00159184 MOV RDI,RBX CALL 0x0015e672 MOV AL,0x1 ADD RSP,0x30 POP RBX POP R14 POP RBP RET LAB_0015d10e: CALL 0x0011a300
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::key(std::__cxx11::string&) */ int8 __thiscall nlohmann::json_abi_v3_11_3::detail:: json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::key(json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *this,string *param_1) { bool bVar1; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *pbVar2; int8 uVar3; int1 local_3d; int4 local_3c; data local_38 [16]; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_28 [16]; _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_ (local_38); local_3c = (int4)((ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3); local_3d = 4; if (*(long *)(this + 0x90) != 0) { /* try { // try from 0015d06e to 0015d0b1 has its CatchHandler @ 0015d12f */ bVar1 = (bool)(**(code **)(this + 0x98))(this + 0x80,&local_3c,&local_3d,local_38); std::vector<bool,std::allocator<bool>>::push_back ((vector<bool,std::allocator<bool>> *)(this + 0x48),bVar1); if ((bVar1 != false) && (*(long *)(*(long *)(this + 0x10) + -8) != 0)) { basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json(local_28,(basic_json *)(this + 0xa8)); /* try { // try from 0015d0be to 0015d0c5 has its CatchHandler @ 0015d113 */ pbVar2 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)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>>>> ::operator[](*(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>>>> **)(*(long *)(*(long *)(this + 0x10) + -8) + 8),param_1); uVar3 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator=(pbVar2,(data *)local_28); *(int8 *)(this + 0x70) = uVar3; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81((data *)local_28,0)); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)local_28); } basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(local_38,0)); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_38); return 1; } /* WARNING: Subroutine does not return */ /* try { // try from 0015d10e to 0015d112 has its CatchHandler @ 0015d12f */ std::__throw_bad_function_call(); }
52,806
minja::Value::operator-(minja::Value const&) const
monkey531[P]llama/common/minja.hpp
Value operator-(const Value& rhs) const { if (is_number_integer() && rhs.is_number_integer()) return get<int64_t>() - rhs.get<int64_t>(); else return get<double>() - rhs.get<double>(); }
O3
cpp
minja::Value::operator-(minja::Value const&) const: pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq %rdx, %r14 movq %rdi, %rbx movb 0x40(%rsi), %al addb $-0x5, %al cmpb $0x1, %al ja 0xbaae7 movb 0x40(%r14), %al addb $-0x5, %al cmpb $0x1, %al ja 0xbaae7 movq %rsi, %rdi callq 0xa9d76 movq %rax, %r15 movq %r14, %rdi callq 0xa9d76 subq %rax, %r15 leaq 0x40(%rbx), %r14 xorpd %xmm0, %xmm0 movupd %xmm0, (%rbx) movupd %xmm0, 0x10(%rbx) movupd %xmm0, 0x20(%rbx) movupd %xmm0, 0x30(%rbx) movupd %xmm0, 0x40(%rbx) movq %r14, %rdi movq %r15, %rsi callq 0x90cbc jmp 0xbab33 movq %rsi, %rdi callq 0xa9ec0 movsd %xmm0, 0x8(%rsp) movq %r14, %rdi callq 0xa9ec0 movsd 0x8(%rsp), %xmm1 subsd %xmm0, %xmm1 leaq 0x40(%rbx), %r14 xorpd %xmm0, %xmm0 movupd %xmm0, (%rbx) movupd %xmm0, 0x10(%rbx) movupd %xmm0, 0x20(%rbx) movupd %xmm0, 0x30(%rbx) movupd %xmm0, 0x40(%rbx) movq %r14, %rdi movapd %xmm1, %xmm0 callq 0x90284 movq %r14, %rdi movl $0x1, %esi callq 0x89206 movq %rbx, %rax addq $0x10, %rsp popq %rbx popq %r14 popq %r15 retq nop
_ZNK5minja5ValuemiERKS0_: push r15 push r14 push rbx sub rsp, 10h mov r14, rdx mov rbx, rdi mov al, [rsi+40h] add al, 0FBh cmp al, 1 ja short loc_BAAE7 mov al, [r14+40h] add al, 0FBh cmp al, 1 ja short loc_BAAE7 mov rdi, rsi call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void) mov r15, rax mov rdi, r14 call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void) sub r15, rax lea r14, [rbx+40h] xorpd xmm0, xmm0 movupd xmmword ptr [rbx], xmm0 movupd xmmword ptr [rbx+10h], xmm0 movupd xmmword ptr [rbx+20h], xmm0 movupd xmmword ptr [rbx+30h], xmm0 movupd xmmword ptr [rbx+40h], xmm0 mov rdi, r14 mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE5EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_16number_integer_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_integer_t) jmp short loc_BAB33 loc_BAAE7: mov rdi, rsi call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) movsd [rsp+28h+var_20], xmm0 mov rdi, r14 call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) movsd xmm1, [rsp+28h+var_20] subsd xmm1, xmm0 lea r14, [rbx+40h] xorpd xmm0, xmm0 movupd xmmword ptr [rbx], xmm0 movupd xmmword ptr [rbx+10h], xmm0 movupd xmmword ptr [rbx+20h], xmm0 movupd xmmword ptr [rbx+30h], xmm0 movupd xmmword ptr [rbx+40h], xmm0 mov rdi, r14 movapd xmm0, xmm1 call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE7EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_14number_float_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_float_t) loc_BAB33: mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rax, rbx add rsp, 10h pop rbx pop r14 pop r15 retn
long long minja::Value::operator-(long long a1, long long a2, long long a3) { long long v4; // r15 long long v5; // rax char *v6; // r14 double v7; // xmm1_8 double v9; // [rsp+8h] [rbp-20h] if ( (unsigned __int8)(*(_BYTE *)(a2 + 64) - 5) > 1u || (unsigned __int8)(*(_BYTE *)(a3 + 64) - 5) > 1u ) { v9 = minja::Value::get<double>(a2); v7 = v9 - minja::Value::get<double>(a3); v6 = (char *)(a1 + 64); *(_OWORD *)a1 = 0LL; *(_OWORD *)(a1 + 16) = 0LL; *(_OWORD *)(a1 + 32) = 0LL; *(_OWORD *)(a1 + 48) = 0LL; *(_OWORD *)(a1 + 64) = 0LL; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( (unsigned __int8 *)(a1 + 64), v7); } else { v4 = minja::Value::get<long>(a2); v5 = minja::Value::get<long>(a3); v6 = (char *)(a1 + 64); *(_OWORD *)a1 = 0LL; *(_OWORD *)(a1 + 16) = 0LL; *(_OWORD *)(a1 + 32) = 0LL; *(_OWORD *)(a1 + 48) = 0LL; *(_OWORD *)(a1 + 64) = 0LL; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( (unsigned __int8 *)(a1 + 64), v4 - v5); } nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v6); return a1; }
operator-: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x10 MOV R14,RDX MOV RBX,RDI MOV AL,byte ptr [RSI + 0x40] ADD AL,0xfb CMP AL,0x1 JA 0x001baae7 MOV AL,byte ptr [R14 + 0x40] ADD AL,0xfb CMP AL,0x1 JA 0x001baae7 MOV RDI,RSI CALL 0x001a9d76 MOV R15,RAX MOV RDI,R14 CALL 0x001a9d76 SUB R15,RAX LEA R14,[RBX + 0x40] XORPD XMM0,XMM0 MOVUPD xmmword ptr [RBX],XMM0 MOVUPD xmmword ptr [RBX + 0x10],XMM0 MOVUPD xmmword ptr [RBX + 0x20],XMM0 MOVUPD xmmword ptr [RBX + 0x30],XMM0 MOVUPD xmmword ptr [RBX + 0x40],XMM0 MOV RDI,R14 MOV RSI,R15 CALL 0x00190cbc JMP 0x001bab33 LAB_001baae7: MOV RDI,RSI CALL 0x001a9ec0 MOVSD qword ptr [RSP + 0x8],XMM0 MOV RDI,R14 CALL 0x001a9ec0 MOVSD XMM1,qword ptr [RSP + 0x8] SUBSD XMM1,XMM0 LEA R14,[RBX + 0x40] XORPD XMM0,XMM0 MOVUPD xmmword ptr [RBX],XMM0 MOVUPD xmmword ptr [RBX + 0x10],XMM0 MOVUPD xmmword ptr [RBX + 0x20],XMM0 MOVUPD xmmword ptr [RBX + 0x30],XMM0 MOVUPD xmmword ptr [RBX + 0x40],XMM0 MOV RDI,R14 MOVAPD XMM0,XMM1 CALL 0x00190284 LAB_001bab33: MOV RDI,R14 MOV ESI,0x1 CALL 0x00189206 MOV RAX,RBX ADD RSP,0x10 POP RBX POP R14 POP R15 RET
/* minja::Value::TEMPNAMEPLACEHOLDERVALUE(minja::Value const&) const */ Value * __thiscall minja::Value::operator-(Value *this,Value *param_1) { long lVar1; long lVar2; Value *in_RDX; double dVar3; double dVar4; if (((byte)((char)param_1[0x40] - 5U) < 2) && ((byte)((char)in_RDX[0x40] - 5U) < 2)) { lVar1 = get<long>(param_1); lVar2 = get<long>(in_RDX); *(int8 *)this = 0; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x40) = 0; *(int8 *)(this + 0x48) = 0; nlohmann::json_abi_v3_11_3::detail:: external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>:: construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (this + 0x40,lVar1 - lVar2); } else { dVar3 = get<double>(param_1); dVar4 = get<double>(in_RDX); *(int8 *)this = 0; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x40) = 0; *(int8 *)(this + 0x48) = 0; nlohmann::json_abi_v3_11_3::detail:: external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>:: construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (dVar3 - dVar4,this + 0x40); } nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant((bool)((char)this + '@')); return this; }
52,807
ma_find_last_pos
eloqsql/storage/maria/ma_write.c
static uchar *_ma_find_last_pos(MARIA_KEY *int_key, MARIA_PAGE *ma_page, uchar **after_key) { uint keys, length, key_ref_length, page_flag; uchar *page, *end, *lastpos, *prevpos; uchar key_buff[MARIA_MAX_KEY_BUFF]; MARIA_HA *info= ma_page->info; MARIA_SHARE *share= info->s; MARIA_KEYDEF *keyinfo= int_key->keyinfo; MARIA_KEY tmp_key; DBUG_ENTER("_ma_find_last_pos"); key_ref_length= share->keypage_header; page_flag= ma_page->flag; length= ma_page->size - key_ref_length; page= ma_page->buff + key_ref_length; if (!(keyinfo->flag & (HA_PACK_KEY | HA_SPACE_PACK_USED | HA_VAR_LENGTH_KEY | HA_BINARY_PACK_KEY)) && !(page_flag & KEYPAGE_FLAG_HAS_TRANSID)) { keys= length / keyinfo->keylength - 2; length= keyinfo->keylength; int_key->data_length= length - info->s->rec_reflength; int_key->ref_length= info->s->rec_reflength; int_key->flag= 0; end=page+keys*length; *after_key=end+length; memcpy(int_key->data, end, length); DBUG_RETURN(end); } end=page+length-key_ref_length; lastpos=page; tmp_key.data= key_buff; tmp_key.keyinfo= int_key->keyinfo; key_buff[0]= 0; /* Safety */ /* We know that there are at least 2 keys on the page */ if (!(length=(*keyinfo->get_key)(&tmp_key, page_flag, 0, &page))) { _ma_set_fatal_error(info, HA_ERR_CRASHED); DBUG_RETURN(0); } do { prevpos=lastpos; lastpos=page; int_key->data_length= tmp_key.data_length; int_key->ref_length= tmp_key.ref_length; int_key->flag= tmp_key.flag; memcpy(int_key->data, key_buff, length); /* previous key */ if (!(length=(*keyinfo->get_key)(&tmp_key, page_flag, 0, &page))) { _ma_set_fatal_error(info, HA_ERR_CRASHED); DBUG_RETURN(0); } } while (page < end); *after_key=lastpos; DBUG_PRINT("exit",("returns: %p page: %p end: %p", prevpos,page,end)); DBUG_RETURN(prevpos); }
O0
c
ma_find_last_pos: pushq %rbp movq %rsp, %rbp subq $0xa70, %rsp # imm = 0xA70 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x9f0(%rbp) movq %rsi, -0x9f8(%rbp) movq %rdx, -0xa00(%rbp) movq -0x9f8(%rbp), %rax movq (%rax), %rax movq %rax, -0xa38(%rbp) movq -0xa38(%rbp), %rax movq (%rax), %rax movq %rax, -0xa40(%rbp) movq -0x9f0(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0xa48(%rbp) movq -0xa40(%rbp), %rax movl 0x744(%rax), %eax movl %eax, -0xa0c(%rbp) movq -0x9f8(%rbp), %rax movl 0x2c(%rax), %eax movl %eax, -0xa10(%rbp) movq -0x9f8(%rbp), %rax movl 0x20(%rax), %eax subl -0xa0c(%rbp), %eax movl %eax, -0xa08(%rbp) movq -0x9f8(%rbp), %rax movq 0x10(%rax), %rax movl -0xa0c(%rbp), %ecx addq %rcx, %rax movq %rax, -0xa18(%rbp) movq -0xa48(%rbp), %rax movzwl 0xa2(%rax), %eax andl $0x2e, %eax cmpl $0x0, %eax jne 0x867c9 movl -0xa10(%rbp), %eax andl $0x2, %eax cmpl $0x0, %eax jne 0x867c9 movl -0xa08(%rbp), %eax movq -0xa48(%rbp), %rcx movzwl 0xaa(%rcx), %ecx xorl %edx, %edx divl %ecx subl $0x2, %eax movl %eax, -0xa04(%rbp) movq -0xa48(%rbp), %rax movzwl 0xaa(%rax), %eax movl %eax, -0xa08(%rbp) movl -0xa08(%rbp), %ecx movq -0xa38(%rbp), %rax movq (%rax), %rax subl 0x740(%rax), %ecx movq -0x9f0(%rbp), %rax movl %ecx, 0x10(%rax) movq -0xa38(%rbp), %rax movq (%rax), %rax movl 0x740(%rax), %ecx movq -0x9f0(%rbp), %rax movl %ecx, 0x14(%rax) movq -0x9f0(%rbp), %rax movl $0x0, 0x18(%rax) movq -0xa18(%rbp), %rax movl -0xa04(%rbp), %ecx imull -0xa08(%rbp), %ecx movl %ecx, %ecx addq %rcx, %rax movq %rax, -0xa20(%rbp) movq -0xa20(%rbp), %rcx movl -0xa08(%rbp), %eax addq %rax, %rcx movq -0xa00(%rbp), %rax movq %rcx, (%rax) movq -0x9f0(%rbp), %rax movq (%rax), %rdi movq -0xa20(%rbp), %rsi movl -0xa08(%rbp), %eax movl %eax, %edx callq 0x2a090 movq -0xa20(%rbp), %rax movq %rax, -0x9e8(%rbp) jmp 0x8696b movq -0xa18(%rbp), %rax movl -0xa08(%rbp), %ecx addq %rcx, %rax movl -0xa0c(%rbp), %ecx movl %ecx, %edx xorl %ecx, %ecx subq %rdx, %rcx addq %rcx, %rax movq %rax, -0xa20(%rbp) movq -0xa18(%rbp), %rax movq %rax, -0xa28(%rbp) leaq -0x9e0(%rbp), %rax movq %rax, -0xa68(%rbp) movq -0x9f0(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0xa60(%rbp) movb $0x0, -0x9e0(%rbp) movq -0xa48(%rbp), %rax movq 0xe0(%rax), %rax movl -0xa10(%rbp), %esi leaq -0xa68(%rbp), %rdi xorl %edx, %edx leaq -0xa18(%rbp), %rcx callq *%rax movl %eax, -0xa08(%rbp) cmpl $0x0, %eax jne 0x86877 movq -0xa38(%rbp), %rdi movl $0x7e, %esi callq 0x34c30 movq $0x0, -0x9e8(%rbp) jmp 0x8696b jmp 0x86879 movq -0xa28(%rbp), %rax movq %rax, -0xa30(%rbp) movq -0xa18(%rbp), %rax movq %rax, -0xa28(%rbp) movl -0xa58(%rbp), %ecx movq -0x9f0(%rbp), %rax movl %ecx, 0x10(%rax) movl -0xa54(%rbp), %ecx movq -0x9f0(%rbp), %rax movl %ecx, 0x14(%rax) movl -0xa50(%rbp), %ecx movq -0x9f0(%rbp), %rax movl %ecx, 0x18(%rax) movq -0x9f0(%rbp), %rax movq (%rax), %rdi leaq -0x9e0(%rbp), %rsi movl -0xa08(%rbp), %eax movl %eax, %edx callq 0x2a090 movq -0xa48(%rbp), %rax movq 0xe0(%rax), %rax movl -0xa10(%rbp), %esi leaq -0xa68(%rbp), %rdi xorl %edx, %edx leaq -0xa18(%rbp), %rcx callq *%rax movl %eax, -0xa08(%rbp) cmpl $0x0, %eax jne 0x86932 movq -0xa38(%rbp), %rdi movl $0x7e, %esi callq 0x34c30 movq $0x0, -0x9e8(%rbp) jmp 0x8696b jmp 0x86934 movq -0xa18(%rbp), %rax cmpq -0xa20(%rbp), %rax jb 0x86879 movq -0xa28(%rbp), %rcx movq -0xa00(%rbp), %rax movq %rcx, (%rax) jmp 0x8695b jmp 0x8695d movq -0xa30(%rbp), %rax movq %rax, -0x9e8(%rbp) movq -0x9e8(%rbp), %rax movq %rax, -0xa70(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x8699b movq -0xa70(%rbp), %rax addq $0xa70, %rsp # imm = 0xA70 popq %rbp retq callq 0x2a270
_ma_find_last_pos: push rbp mov rbp, rsp sub rsp, 0A70h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_9F0], rdi mov [rbp+var_9F8], rsi mov [rbp+var_A00], rdx mov rax, [rbp+var_9F8] mov rax, [rax] mov [rbp+var_A38], rax mov rax, [rbp+var_A38] mov rax, [rax] mov [rbp+var_A40], rax mov rax, [rbp+var_9F0] mov rax, [rax+8] mov [rbp+var_A48], rax mov rax, [rbp+var_A40] mov eax, [rax+744h] mov [rbp+var_A0C], eax mov rax, [rbp+var_9F8] mov eax, [rax+2Ch] mov [rbp+var_A10], eax mov rax, [rbp+var_9F8] mov eax, [rax+20h] sub eax, [rbp+var_A0C] mov [rbp+var_A08], eax mov rax, [rbp+var_9F8] mov rax, [rax+10h] mov ecx, [rbp+var_A0C] add rax, rcx mov [rbp+var_A18], rax mov rax, [rbp+var_A48] movzx eax, word ptr [rax+0A2h] and eax, 2Eh cmp eax, 0 jnz loc_867C9 mov eax, [rbp+var_A10] and eax, 2 cmp eax, 0 jnz loc_867C9 mov eax, [rbp+var_A08] mov rcx, [rbp+var_A48] movzx ecx, word ptr [rcx+0AAh] xor edx, edx div ecx sub eax, 2 mov [rbp+var_A04], eax mov rax, [rbp+var_A48] movzx eax, word ptr [rax+0AAh] mov [rbp+var_A08], eax mov ecx, [rbp+var_A08] mov rax, [rbp+var_A38] mov rax, [rax] sub ecx, [rax+740h] mov rax, [rbp+var_9F0] mov [rax+10h], ecx mov rax, [rbp+var_A38] mov rax, [rax] mov ecx, [rax+740h] mov rax, [rbp+var_9F0] mov [rax+14h], ecx mov rax, [rbp+var_9F0] mov dword ptr [rax+18h], 0 mov rax, [rbp+var_A18] mov ecx, [rbp+var_A04] imul ecx, [rbp+var_A08] mov ecx, ecx add rax, rcx mov [rbp+var_A20], rax mov rcx, [rbp+var_A20] mov eax, [rbp+var_A08] add rcx, rax mov rax, [rbp+var_A00] mov [rax], rcx mov rax, [rbp+var_9F0] mov rdi, [rax] mov rsi, [rbp+var_A20] mov eax, [rbp+var_A08] mov edx, eax call _memcpy mov rax, [rbp+var_A20] mov [rbp+var_9E8], rax jmp loc_8696B loc_867C9: mov rax, [rbp+var_A18] mov ecx, [rbp+var_A08] add rax, rcx mov ecx, [rbp+var_A0C] mov edx, ecx xor ecx, ecx sub rcx, rdx add rax, rcx mov [rbp+var_A20], rax mov rax, [rbp+var_A18] mov [rbp+var_A28], rax lea rax, [rbp+var_9E0] mov [rbp+var_A68], rax mov rax, [rbp+var_9F0] mov rax, [rax+8] mov [rbp+var_A60], rax mov [rbp+var_9E0], 0 mov rax, [rbp+var_A48] mov rax, [rax+0E0h] mov esi, [rbp+var_A10] lea rdi, [rbp+var_A68] xor edx, edx lea rcx, [rbp+var_A18] call rax mov [rbp+var_A08], eax cmp eax, 0 jnz short loc_86877 mov rdi, [rbp+var_A38] mov esi, 7Eh ; '~' call _ma_set_fatal_error mov [rbp+var_9E8], 0 jmp loc_8696B loc_86877: jmp short $+2 loc_86879: mov rax, [rbp+var_A28] mov [rbp+var_A30], rax mov rax, [rbp+var_A18] mov [rbp+var_A28], rax mov ecx, [rbp+var_A58] mov rax, [rbp+var_9F0] mov [rax+10h], ecx mov ecx, [rbp+var_A54] mov rax, [rbp+var_9F0] mov [rax+14h], ecx mov ecx, [rbp+var_A50] mov rax, [rbp+var_9F0] mov [rax+18h], ecx mov rax, [rbp+var_9F0] mov rdi, [rax] lea rsi, [rbp+var_9E0] mov eax, [rbp+var_A08] mov edx, eax call _memcpy mov rax, [rbp+var_A48] mov rax, [rax+0E0h] mov esi, [rbp+var_A10] lea rdi, [rbp+var_A68] xor edx, edx lea rcx, [rbp+var_A18] call rax mov [rbp+var_A08], eax cmp eax, 0 jnz short loc_86932 mov rdi, [rbp+var_A38] mov esi, 7Eh ; '~' call _ma_set_fatal_error mov [rbp+var_9E8], 0 jmp short loc_8696B loc_86932: jmp short $+2 loc_86934: mov rax, [rbp+var_A18] cmp rax, [rbp+var_A20] jb loc_86879 mov rcx, [rbp+var_A28] mov rax, [rbp+var_A00] mov [rax], rcx jmp short $+2 loc_8695B: jmp short $+2 loc_8695D: mov rax, [rbp+var_A30] mov [rbp+var_9E8], rax loc_8696B: mov rax, [rbp+var_9E8] mov [rbp+var_A70], rax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_8699B mov rax, [rbp+var_A70] add rsp, 0A70h pop rbp retn loc_8699B: call ___stack_chk_fail
unsigned long long ma_find_last_pos(_QWORD *a1, long long a2, unsigned long long *a3) { long long v3; // rdx long long v4; // rcx long long v5; // r8 int v6; // r9d _QWORD v8[2]; // [rsp+8h] [rbp-A68h] BYREF int v9; // [rsp+18h] [rbp-A58h] int v10; // [rsp+1Ch] [rbp-A54h] int v11; // [rsp+20h] [rbp-A50h] long long v12; // [rsp+28h] [rbp-A48h] long long v13; // [rsp+30h] [rbp-A40h] _DWORD *v14; // [rsp+38h] [rbp-A38h] unsigned long long v15; // [rsp+40h] [rbp-A30h] unsigned long long v16; // [rsp+48h] [rbp-A28h] unsigned long long v17; // [rsp+50h] [rbp-A20h] unsigned long long v18; // [rsp+58h] [rbp-A18h] BYREF unsigned int v19; // [rsp+60h] [rbp-A10h] unsigned int v20; // [rsp+64h] [rbp-A0Ch] unsigned int v21; // [rsp+68h] [rbp-A08h] unsigned int v22; // [rsp+6Ch] [rbp-A04h] unsigned long long *v23; // [rsp+70h] [rbp-A00h] long long v24; // [rsp+78h] [rbp-9F8h] _QWORD *v25; // [rsp+80h] [rbp-9F0h] _BYTE v27[2520]; // [rsp+90h] [rbp-9E0h] BYREF unsigned long long v28; // [rsp+A68h] [rbp-8h] v28 = __readfsqword(0x28u); v25 = a1; v24 = a2; v23 = a3; v14 = *(_DWORD **)a2; v13 = *(_QWORD *)v14; v12 = a1[1]; v20 = *(_DWORD *)(v13 + 1860); v19 = *(_DWORD *)(a2 + 44); v21 = *(_DWORD *)(a2 + 32) - v20; v18 = v20 + *(_QWORD *)(a2 + 16); if ( (*(_WORD *)(v12 + 162) & 0x2E) != 0 || (v19 & 2) != 0 ) { v17 = v21 + v18 - v20; v16 = v18; v8[0] = v27; v8[1] = v25[1]; v27[0] = 0; v21 = (*(long long ( **)(_QWORD *, _QWORD, _QWORD, unsigned long long *))(v12 + 224))(v8, v19, 0LL, &v18); if ( v21 ) { while ( 1 ) { v15 = v16; v16 = v18; *((_DWORD *)v25 + 4) = v9; *((_DWORD *)v25 + 5) = v10; *((_DWORD *)v25 + 6) = v11; memcpy(*v25, v27, v21); v21 = (*(long long ( **)(_QWORD *, _QWORD, _QWORD, unsigned long long *))(v12 + 224))(v8, v19, 0LL, &v18); if ( !v21 ) break; if ( v18 >= v17 ) { *v23 = v16; return v15; } } } ma_set_fatal_error(v14, 126, v3, v4, v5, v6); return 0LL; } else { v22 = v21 / *(unsigned __int16 *)(v12 + 170) - 2; v21 = *(unsigned __int16 *)(v12 + 170); *((_DWORD *)v25 + 4) = v21 - *(_DWORD *)(*(_QWORD *)v14 + 1856LL); *((_DWORD *)v25 + 5) = *(_DWORD *)(*(_QWORD *)v14 + 1856LL); *((_DWORD *)v25 + 6) = 0; v17 = v21 * v22 + v18; *v23 = v21 + v17; memcpy(*v25, v17, v21); return v17; } }
_ma_find_last_pos: PUSH RBP MOV RBP,RSP SUB RSP,0xa70 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x9f0],RDI MOV qword ptr [RBP + -0x9f8],RSI MOV qword ptr [RBP + -0xa00],RDX MOV RAX,qword ptr [RBP + -0x9f8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0xa38],RAX MOV RAX,qword ptr [RBP + -0xa38] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0xa40],RAX MOV RAX,qword ptr [RBP + -0x9f0] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0xa48],RAX MOV RAX,qword ptr [RBP + -0xa40] MOV EAX,dword ptr [RAX + 0x744] MOV dword ptr [RBP + -0xa0c],EAX MOV RAX,qword ptr [RBP + -0x9f8] MOV EAX,dword ptr [RAX + 0x2c] MOV dword ptr [RBP + -0xa10],EAX MOV RAX,qword ptr [RBP + -0x9f8] MOV EAX,dword ptr [RAX + 0x20] SUB EAX,dword ptr [RBP + -0xa0c] MOV dword ptr [RBP + -0xa08],EAX MOV RAX,qword ptr [RBP + -0x9f8] MOV RAX,qword ptr [RAX + 0x10] MOV ECX,dword ptr [RBP + -0xa0c] ADD RAX,RCX MOV qword ptr [RBP + -0xa18],RAX MOV RAX,qword ptr [RBP + -0xa48] MOVZX EAX,word ptr [RAX + 0xa2] AND EAX,0x2e CMP EAX,0x0 JNZ 0x001867c9 MOV EAX,dword ptr [RBP + -0xa10] AND EAX,0x2 CMP EAX,0x0 JNZ 0x001867c9 MOV EAX,dword ptr [RBP + -0xa08] MOV RCX,qword ptr [RBP + -0xa48] MOVZX ECX,word ptr [RCX + 0xaa] XOR EDX,EDX DIV ECX SUB EAX,0x2 MOV dword ptr [RBP + -0xa04],EAX MOV RAX,qword ptr [RBP + -0xa48] MOVZX EAX,word ptr [RAX + 0xaa] MOV dword ptr [RBP + -0xa08],EAX MOV ECX,dword ptr [RBP + -0xa08] MOV RAX,qword ptr [RBP + -0xa38] MOV RAX,qword ptr [RAX] SUB ECX,dword ptr [RAX + 0x740] MOV RAX,qword ptr [RBP + -0x9f0] MOV dword ptr [RAX + 0x10],ECX MOV RAX,qword ptr [RBP + -0xa38] MOV RAX,qword ptr [RAX] MOV ECX,dword ptr [RAX + 0x740] MOV RAX,qword ptr [RBP + -0x9f0] MOV dword ptr [RAX + 0x14],ECX MOV RAX,qword ptr [RBP + -0x9f0] MOV dword ptr [RAX + 0x18],0x0 MOV RAX,qword ptr [RBP + -0xa18] MOV ECX,dword ptr [RBP + -0xa04] IMUL ECX,dword ptr [RBP + -0xa08] MOV ECX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0xa20],RAX MOV RCX,qword ptr [RBP + -0xa20] MOV EAX,dword ptr [RBP + -0xa08] ADD RCX,RAX MOV RAX,qword ptr [RBP + -0xa00] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x9f0] MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RBP + -0xa20] MOV EAX,dword ptr [RBP + -0xa08] MOV EDX,EAX CALL 0x0012a090 MOV RAX,qword ptr [RBP + -0xa20] MOV qword ptr [RBP + -0x9e8],RAX JMP 0x0018696b LAB_001867c9: MOV RAX,qword ptr [RBP + -0xa18] MOV ECX,dword ptr [RBP + -0xa08] ADD RAX,RCX MOV ECX,dword ptr [RBP + -0xa0c] MOV EDX,ECX XOR ECX,ECX SUB RCX,RDX ADD RAX,RCX MOV qword ptr [RBP + -0xa20],RAX MOV RAX,qword ptr [RBP + -0xa18] MOV qword ptr [RBP + -0xa28],RAX LEA RAX,[RBP + -0x9e0] MOV qword ptr [RBP + -0xa68],RAX MOV RAX,qword ptr [RBP + -0x9f0] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0xa60],RAX MOV byte ptr [RBP + -0x9e0],0x0 MOV RAX,qword ptr [RBP + -0xa48] MOV RAX,qword ptr [RAX + 0xe0] MOV ESI,dword ptr [RBP + -0xa10] LEA RDI,[RBP + -0xa68] XOR EDX,EDX LEA RCX,[RBP + -0xa18] CALL RAX MOV dword ptr [RBP + -0xa08],EAX CMP EAX,0x0 JNZ 0x00186877 MOV RDI,qword ptr [RBP + -0xa38] MOV ESI,0x7e CALL 0x00134c30 MOV qword ptr [RBP + -0x9e8],0x0 JMP 0x0018696b LAB_00186877: JMP 0x00186879 LAB_00186879: MOV RAX,qword ptr [RBP + -0xa28] MOV qword ptr [RBP + -0xa30],RAX MOV RAX,qword ptr [RBP + -0xa18] MOV qword ptr [RBP + -0xa28],RAX MOV ECX,dword ptr [RBP + -0xa58] MOV RAX,qword ptr [RBP + -0x9f0] MOV dword ptr [RAX + 0x10],ECX MOV ECX,dword ptr [RBP + -0xa54] MOV RAX,qword ptr [RBP + -0x9f0] MOV dword ptr [RAX + 0x14],ECX MOV ECX,dword ptr [RBP + -0xa50] MOV RAX,qword ptr [RBP + -0x9f0] MOV dword ptr [RAX + 0x18],ECX MOV RAX,qword ptr [RBP + -0x9f0] MOV RDI,qword ptr [RAX] LEA RSI,[RBP + -0x9e0] MOV EAX,dword ptr [RBP + -0xa08] MOV EDX,EAX CALL 0x0012a090 MOV RAX,qword ptr [RBP + -0xa48] MOV RAX,qword ptr [RAX + 0xe0] MOV ESI,dword ptr [RBP + -0xa10] LEA RDI,[RBP + -0xa68] XOR EDX,EDX LEA RCX,[RBP + -0xa18] CALL RAX MOV dword ptr [RBP + -0xa08],EAX CMP EAX,0x0 JNZ 0x00186932 MOV RDI,qword ptr [RBP + -0xa38] MOV ESI,0x7e CALL 0x00134c30 MOV qword ptr [RBP + -0x9e8],0x0 JMP 0x0018696b LAB_00186932: JMP 0x00186934 LAB_00186934: MOV RAX,qword ptr [RBP + -0xa18] CMP RAX,qword ptr [RBP + -0xa20] JC 0x00186879 MOV RCX,qword ptr [RBP + -0xa28] MOV RAX,qword ptr [RBP + -0xa00] MOV qword ptr [RAX],RCX JMP 0x0018695b LAB_0018695b: JMP 0x0018695d LAB_0018695d: MOV RAX,qword ptr [RBP + -0xa30] MOV qword ptr [RBP + -0x9e8],RAX LAB_0018696b: MOV RAX,qword ptr [RBP + -0x9e8] MOV qword ptr [RBP + -0xa70],RAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x0018699b MOV RAX,qword ptr [RBP + -0xa70] ADD RSP,0xa70 POP RBP RET LAB_0018699b: CALL 0x0012a270
void * _ma_find_last_pos(int8 *param_1,int8 *param_2,long *param_3) { long in_FS_OFFSET; int1 *local_a70; int8 local_a68; int4 local_a60; int4 local_a5c; int4 local_a58; long local_a50; long local_a48; long *local_a40; void *local_a38; void *local_a30; void *local_a28; void *local_a20; uint local_a18; uint local_a14; uint local_a10; int local_a0c; long *local_a08; int8 *local_a00; int8 *local_9f8; void *local_9f0; int1 local_9e8 [2520]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_a40 = (long *)*param_2; local_a48 = *local_a40; local_a50 = param_1[1]; local_a14 = *(uint *)(local_a48 + 0x744); local_a18 = *(uint *)((long)param_2 + 0x2c); local_a10 = *(int *)(param_2 + 4) - local_a14; local_a20 = (void *)(param_2[2] + (ulong)local_a14); local_a08 = param_3; local_a00 = param_2; local_9f8 = param_1; if (((*(ushort *)(local_a50 + 0xa2) & 0x2e) == 0) && ((local_a18 & 2) == 0)) { local_a0c = local_a10 / *(ushort *)(local_a50 + 0xaa) - 2; local_a10 = (uint)*(ushort *)(local_a50 + 0xaa); *(uint *)(param_1 + 2) = local_a10 - *(int *)(*local_a40 + 0x740); *(int4 *)((long)param_1 + 0x14) = *(int4 *)(*local_a40 + 0x740); *(int4 *)(param_1 + 3) = 0; local_a28 = (void *)((long)local_a20 + (ulong)(local_a0c * local_a10)); *param_3 = (long)local_a28 + (ulong)local_a10; memcpy((void *)*param_1,local_a28,(ulong)local_a10); local_9f0 = local_a28; } else { local_a28 = (void *)((long)local_a20 + ((ulong)local_a10 - (ulong)local_a14)); local_a70 = local_9e8; local_a68 = param_1[1]; local_9e8[0] = 0; local_a30 = local_a20; local_a10 = (**(code **)(local_a50 + 0xe0))(&local_a70,local_a18,0,&local_a20); if (local_a10 == 0) { _ma_set_fatal_error(local_a40,0x7e); local_9f0 = (void *)0x0; } else { do { local_a38 = local_a30; local_a30 = local_a20; *(int4 *)(local_9f8 + 2) = local_a60; *(int4 *)((long)local_9f8 + 0x14) = local_a5c; *(int4 *)(local_9f8 + 3) = local_a58; memcpy((void *)*local_9f8,local_9e8,(ulong)local_a10); local_a10 = (**(code **)(local_a50 + 0xe0))(&local_a70,local_a18,0,&local_a20); if (local_a10 == 0) { _ma_set_fatal_error(local_a40,0x7e); local_9f0 = (void *)0x0; goto LAB_0018696b; } } while (local_a20 < local_a28); *local_a08 = (long)local_a30; local_9f0 = local_a38; } } LAB_0018696b: if (*(long *)(in_FS_OFFSET + 0x28) != local_10) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return local_9f0; }
52,808
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::boundaries nlohmann::json_abi_v3_11_3::detail::dtoa_impl::compute_boundaries<double>(double)
monkey531[P]llama/common/json.hpp
boundaries compute_boundaries(FloatType value) { JSON_ASSERT(std::isfinite(value)); JSON_ASSERT(value > 0); // Convert the IEEE representation into a diyfp. // // If v is denormal: // value = 0.F * 2^(1 - bias) = ( F) * 2^(1 - bias - (p-1)) // If v is normalized: // value = 1.F * 2^(E - bias) = (2^(p-1) + F) * 2^(E - bias - (p-1)) static_assert(std::numeric_limits<FloatType>::is_iec559, "internal error: dtoa_short requires an IEEE-754 floating-point implementation"); constexpr int kPrecision = std::numeric_limits<FloatType>::digits; // = p (includes the hidden bit) constexpr int kBias = std::numeric_limits<FloatType>::max_exponent - 1 + (kPrecision - 1); constexpr int kMinExp = 1 - kBias; constexpr std::uint64_t kHiddenBit = std::uint64_t{1} << (kPrecision - 1); // = 2^(p-1) using bits_type = typename std::conditional<kPrecision == 24, std::uint32_t, std::uint64_t >::type; const auto bits = static_cast<std::uint64_t>(reinterpret_bits<bits_type>(value)); const std::uint64_t E = bits >> (kPrecision - 1); const std::uint64_t F = bits & (kHiddenBit - 1); const bool is_denormal = E == 0; const diyfp v = is_denormal ? diyfp(F, kMinExp) : diyfp(F + kHiddenBit, static_cast<int>(E) - kBias); // Compute the boundaries m- and m+ of the floating-point value // v = f * 2^e. // // Determine v- and v+, the floating-point predecessor and successor if v, // respectively. // // v- = v - 2^e if f != 2^(p-1) or e == e_min (A) // = v - 2^(e-1) if f == 2^(p-1) and e > e_min (B) // // v+ = v + 2^e // // Let m- = (v- + v) / 2 and m+ = (v + v+) / 2. All real numbers _strictly_ // between m- and m+ round to v, regardless of how the input rounding // algorithm breaks ties. // // ---+-------------+-------------+-------------+-------------+--- (A) // v- m- v m+ v+ // // -----------------+------+------+-------------+-------------+--- (B) // v- m- v m+ v+ const bool lower_boundary_is_closer = F == 0 && E > 1; const diyfp m_plus = diyfp(2 * v.f + 1, v.e - 1); const diyfp m_minus = lower_boundary_is_closer ? diyfp(4 * v.f - 1, v.e - 2) // (B) : diyfp(2 * v.f - 1, v.e - 1); // (A) // Determine the normalized w+ = m+. const diyfp w_plus = diyfp::normalize(m_plus); // Determine w- = m- such that e_(w-) = e_(w+). const diyfp w_minus = diyfp::normalize_to(m_minus, w_plus.e); return {diyfp::normalize(v), w_minus, w_plus}; }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::boundaries nlohmann::json_abi_v3_11_3::detail::dtoa_impl::compute_boundaries<double>(double): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %xmm0, %rax movq %rax, %rcx btrq $0x3f, %rcx movabsq $0x7ff0000000000000, %rdx # imm = 0x7FF0000000000000 cmpq %rdx, %rcx jge 0xb79cc xorpd %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jbe 0xb79e8 movq %rdi, %rbx movabsq $0x10000000000000, %r14 # imm = 0x10000000000000 leaq -0x1(%r14), %rdx andq %rax, %rdx movq %rax, %rcx shrq $0x34, %rcx jne 0xb7923 leaq 0x1(,%rax,2), %rdi addq %rax, %rax movl $0xfffffbce, 0x4(%rsp) # imm = 0xFFFFFBCE movl $0xfffffbcd, %esi # imm = 0xFFFFFBCD jmp 0xb796b movq %rdx, %r8 orq %r14, %r8 leal -0x433(%rcx), %esi movl %esi, 0x4(%rsp) testq %rdx, %rdx setne %dl shrq $0x35, %rax sete %al leaq 0x1(,%r8,2), %rdi leal -0x434(%rcx), %esi orb %dl, %al jne 0xb7964 addl $0xfffffbcb, %ecx # imm = 0xFFFFFBCB movabsq $0x3fffffffffffff, %rax # imm = 0x3FFFFFFFFFFFFF jmp 0xb7973 leaq (%r8,%r8), %rax movq %r8, %rdx decq %rax movl %esi, %ecx movq %rdx, %r14 leaq 0x8(%rsp), %r15 movq %rax, (%r15) movl %ecx, 0x8(%r15) callq 0xb7b38 movq %rax, %r12 movl %edx, %r13d movq %r15, %rdi movl %edx, %esi callq 0xb7b7a movq %rax, %r15 movl %edx, %ebp movq %r14, %rdi movl 0x4(%rsp), %esi callq 0xb7b38 movq %rax, (%rbx) movl %edx, 0x8(%rbx) movq %r15, 0x10(%rbx) movl %ebp, 0x18(%rbx) movq %r12, 0x20(%rbx) movl %r13d, 0x28(%rbx) movq %rbx, %rax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x36210(%rip), %rdi # 0xedbe3 leaq 0x30766(%rip), %rdx # 0xe8140 leaq 0x3b8a0(%rip), %rcx # 0xf3281 movl $0x42cb, %esi # imm = 0x42CB jmp 0xb7a02 leaq 0x361f4(%rip), %rdi # 0xedbe3 leaq 0x3074a(%rip), %rdx # 0xe8140 leaq 0x3b99d(%rip), %rcx # 0xf339a movl $0x42cc, %esi # imm = 0x42CC xorl %eax, %eax callq 0x1be80
_ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl18compute_boundariesIdEENS2_10boundariesET_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h movq rax, xmm0 mov rcx, rax btr rcx, 3Fh ; '?' mov rdx, 7FF0000000000000h cmp rcx, rdx jge loc_B79CC xorpd xmm1, xmm1 ucomisd xmm0, xmm1 jbe loc_B79E8 mov rbx, rdi mov r14, 10000000000000h lea rdx, [r14-1] and rdx, rax mov rcx, rax shr rcx, 34h jnz short loc_B7923 lea rdi, ds:1[rax*2] add rax, rax mov [rsp+48h+var_44], 0FFFFFBCEh mov esi, 0FFFFFBCDh jmp short loc_B796B loc_B7923: mov r8, rdx or r8, r14 lea esi, [rcx-433h] mov [rsp+48h+var_44], esi test rdx, rdx setnz dl shr rax, 35h setz al lea rdi, ds:1[r8*2] lea esi, [rcx-434h] or al, dl jnz short loc_B7964 add ecx, 0FFFFFBCBh mov rax, 3FFFFFFFFFFFFFh jmp short loc_B7973 loc_B7964: lea rax, [r8+r8] mov rdx, r8 loc_B796B: dec rax mov ecx, esi mov r14, rdx loc_B7973: lea r15, [rsp+48h+var_40] mov [r15], rax mov [r15+8], ecx call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp9normalizeES3_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp) mov r12, rax mov r13d, edx mov rdi, r15 mov esi, edx call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp12normalize_toERKS3_i; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize_to(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&,int) mov r15, rax mov ebp, edx mov rdi, r14 mov esi, [rsp+48h+var_44] call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp9normalizeES3_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp) mov [rbx], rax mov [rbx+8], edx mov [rbx+10h], r15 mov [rbx+18h], ebp mov [rbx+20h], r12 mov [rbx+28h], r13d mov rax, rbx add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_B79CC: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aStdIsfiniteVal; "std::isfinite(value)" mov esi, 42CBh jmp short loc_B7A02 loc_B79E8: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aValue0; "value > 0" mov esi, 42CCh loc_B7A02: xor eax, eax call _ggml_abort
long long nlohmann::json_abi_v3_11_3::detail::dtoa_impl::compute_boundaries<double>( long long a1, double a2, long long a3, long long a4, long long a5, long long a6, long long a7, long long a8, long long a9, long long a10, long long a11) { long long v12; // r14 long long v13; // rdx long long v14; // rcx long long v15; // rdi long long v16; // rax long long v17; // rsi int v18; // ecx long long v19; // rax long long v20; // r12 unsigned int v21; // edx unsigned int v22; // r13d long long v23; // r15 int v24; // edx int v25; // ebp int v26; // edx long long v28; // rsi long long v29; // rdx long long v30; // rcx long long v31; // r8 long long v32; // r9 unsigned int v33; // [rsp+4h] [rbp-44h] long long v34; // [rsp+8h] [rbp-40h] BYREF int v35; // [rsp+10h] [rbp-38h] if ( (*(_QWORD *)&a2 & 0x7FFFFFFFFFFFFFFFuLL) >= 0x7FF0000000000000LL ) { v28 = 17099LL; ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 17099LL, "GGML_ASSERT(%s) failed", "std::isfinite(value)"); } else { if ( a2 > 0.0 ) { v12 = 0x10000000000000LL; v13 = *(_QWORD *)&a2 & 0xFFFFFFFFFFFFFLL; v14 = *(_QWORD *)&a2 >> 52; if ( *(_QWORD *)&a2 >> 52 ) { v33 = v14 - 1075; v15 = 2 * (v13 | 0x10000000000000LL) + 1; v17 = (unsigned int)(v14 - 1076); if ( v13 == 0 && *(_QWORD *)&a2 >> 53 != 0LL ) { v18 = v14 - 1077; v19 = 0x3FFFFFFFFFFFFFLL; LABEL_9: v34 = v19; v35 = v18; v20 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(v15, v17); v22 = v21; v23 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize_to(&v34, v21); v25 = v24; *(_QWORD *)a1 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize(v12, v33); *(_DWORD *)(a1 + 8) = v26; *(_QWORD *)(a1 + 16) = v23; *(_DWORD *)(a1 + 24) = v25; *(_QWORD *)(a1 + 32) = v20; *(_DWORD *)(a1 + 40) = v22; return a1; } v16 = 2 * (v13 | 0x10000000000000LL); v13 |= 0x10000000000000uLL; } else { v15 = 2LL * *(_QWORD *)&a2 + 1; v16 = 2LL * *(_QWORD *)&a2; v33 = -1074; v17 = 4294966221LL; } v19 = v16 - 1; v18 = v17; v12 = v13; goto LABEL_9; } v28 = 17100LL; ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 17100LL, "GGML_ASSERT(%s) failed", "value > 0"); } return nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", v28, v29, v30, v31, v32, a8, a9, a10, a11); }
compute_boundaries<double>: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOVQ RAX,XMM0 MOV RCX,RAX BTR RCX,0x3f MOV RDX,0x7ff0000000000000 CMP RCX,RDX JGE 0x001b79cc XORPD XMM1,XMM1 UCOMISD XMM0,XMM1 JBE 0x001b79e8 MOV RBX,RDI MOV R14,0x10000000000000 LEA RDX,[R14 + -0x1] AND RDX,RAX MOV RCX,RAX SHR RCX,0x34 JNZ 0x001b7923 LEA RDI,[0x1 + RAX*0x2] ADD RAX,RAX MOV dword ptr [RSP + 0x4],0xfffffbce MOV ESI,0xfffffbcd JMP 0x001b796b LAB_001b7923: MOV R8,RDX OR R8,R14 LEA ESI,[RCX + -0x433] MOV dword ptr [RSP + 0x4],ESI TEST RDX,RDX SETNZ DL SHR RAX,0x35 SETZ AL LEA RDI,[0x1 + R8*0x2] LEA ESI,[RCX + -0x434] OR AL,DL JNZ 0x001b7964 ADD ECX,0xfffffbcb MOV RAX,0x3fffffffffffff JMP 0x001b7973 LAB_001b7964: LEA RAX,[R8 + R8*0x1] MOV RDX,R8 LAB_001b796b: DEC RAX MOV ECX,ESI MOV R14,RDX LAB_001b7973: LEA R15,[RSP + 0x8] MOV qword ptr [R15],RAX MOV dword ptr [R15 + 0x8],ECX CALL 0x001b7b38 MOV R12,RAX MOV R13D,EDX MOV RDI,R15 MOV ESI,EDX CALL 0x001b7b7a MOV R15,RAX MOV EBP,EDX MOV RDI,R14 MOV ESI,dword ptr [RSP + 0x4] CALL 0x001b7b38 MOV qword ptr [RBX],RAX MOV dword ptr [RBX + 0x8],EDX MOV qword ptr [RBX + 0x10],R15 MOV dword ptr [RBX + 0x18],EBP MOV qword ptr [RBX + 0x20],R12 MOV dword ptr [RBX + 0x28],R13D MOV RAX,RBX ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001b79cc: LEA RDI,[0x1edbe3] LEA RDX,[0x1e8140] LEA RCX,[0x1f3281] MOV ESI,0x42cb JMP 0x001b7a02 LAB_001b79e8: LEA RDI,[0x1edbe3] LEA RDX,[0x1e8140] LEA RCX,[0x1f339a] MOV ESI,0x42cc LAB_001b7a02: XOR EAX,EAX CALL 0x0011be80
/* nlohmann::json_abi_v3_11_3::detail::dtoa_impl::boundaries nlohmann::json_abi_v3_11_3::detail::dtoa_impl::compute_boundaries<double>(double) */ dtoa_impl * __thiscall nlohmann::json_abi_v3_11_3::detail::dtoa_impl::compute_boundaries<double> (dtoa_impl *this,double param_1) { uint uVar1; char *pcVar2; diyfp *pdVar3; int8 uVar4; diyfp *pdVar5; diyfp *pdVar6; diyfp *pdVar7; int1 auVar8 [12]; int1 auVar9 [12]; int1 auVar10 [12]; int local_44; long local_40; int local_38; if (0x7fefffffffffffff < (ulong)ABS(param_1)) { pcVar2 = "std::isfinite(value)"; uVar4 = 0x42cb; LAB_001b7a02: /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",uVar4, "GGML_ASSERT(%s) failed",pcVar2); } if (param_1 <= 0.0) { pcVar2 = "value > 0"; uVar4 = 0x42cc; goto LAB_001b7a02; } pdVar7 = (diyfp *)0x10000000000000; pdVar3 = (diyfp *)((ulong)param_1 & 0xfffffffffffff); if ((ulong)param_1 >> 0x34 == 0) { pdVar5 = (diyfp *)((long)param_1 * 2 + 1); local_40 = (long)param_1 * 2; local_44 = -0x432; local_38 = -0x433; pdVar6 = pdVar3; } else { pdVar6 = (diyfp *)((ulong)pdVar3 | 0x10000000000000); uVar1 = (uint)((ulong)param_1 >> 0x20); local_44 = (uVar1 >> 0x14) - 0x433; pdVar5 = (diyfp *)((long)pdVar6 * 2 + 1); local_38 = (uVar1 >> 0x14) - 0x434; if ((ulong)param_1 >> 0x35 != 0 && pdVar3 == (diyfp *)0x0) { local_38 = (uVar1 >> 0x14) - 0x435; local_40 = 0x3fffffffffffff; goto LAB_001b7973; } local_40 = (long)pdVar6 * 2; } local_40 = local_40 + -1; pdVar7 = pdVar6; LAB_001b7973: auVar8 = diyfp::normalize(pdVar5); auVar9 = diyfp::normalize_to((diyfp *)&local_40,auVar8._8_4_); auVar10 = diyfp::normalize(pdVar7,local_44); *(int1 (*) [12])this = auVar10; *(int1 (*) [12])(this + 0x10) = auVar9; *(int1 (*) [12])(this + 0x20) = auVar8; return this; }
52,809
coro::net::tcp::server::operator=(coro::net::tcp::server&&)
AlayaLite/build_O3/_deps/libcoro-src/src/net/tcp/server.cpp
auto server::operator=(server&& other) -> server& { if (std::addressof(other) != this) { m_io_scheduler = std::move(other.m_io_scheduler); m_options = std::move(other.m_options); m_accept_socket = std::move(other.m_accept_socket); } return *this; }
O3
cpp
coro::net::tcp::server::operator=(coro::net::tcp::server&&): pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx cmpq %rdi, %rsi je 0x906d movq %rsi, %r14 movups (%rsi), %xmm0 xorps %xmm1, %xmm1 movups %xmm1, (%rsi) movq 0x8(%rbx), %rdi movups %xmm0, (%rbx) testq %rdi, %rdi je 0x904b callq 0x4ca6 movups 0x10(%r14), %xmm0 movups 0x1c(%r14), %xmm1 movups %xmm1, 0x1c(%rbx) movups %xmm0, 0x10(%rbx) addq $0x2c, %r14 leaq 0x2c(%rbx), %rdi movq %r14, %rsi callq 0x8566 movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r14 retq
_ZN4coro3net3tcp6serveraSEOS2_: push r14 push rbx push rax mov rbx, rdi cmp rsi, rdi jz short loc_906D mov r14, rsi movups xmm0, xmmword ptr [rsi] xorps xmm1, xmm1 movups xmmword ptr [rsi], xmm1 mov rdi, [rbx+8] movups xmmword ptr [rbx], xmm0 test rdi, rdi jz short loc_904B call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_904B: movups xmm0, xmmword ptr [r14+10h] movups xmm1, xmmword ptr [r14+1Ch] movups xmmword ptr [rbx+1Ch], xmm1 movups xmmword ptr [rbx+10h], xmm0 add r14, 2Ch ; ',' lea rdi, [rbx+2Ch] mov rsi, r14 call _ZN4coro3net6socketaSEOS1_; coro::net::socket::operator=(coro::net::socket&&) loc_906D: mov rax, rbx add rsp, 8 pop rbx pop r14 retn
long long coro::net::tcp::server::operator=(long long a1, __int128 *a2) { __int128 v3; // xmm0 volatile signed __int32 *v4; // rdi __int128 v5; // xmm0 if ( a2 != (__int128 *)a1 ) { v3 = *a2; *a2 = 0LL; v4 = *(volatile signed __int32 **)(a1 + 8); *(_OWORD *)a1 = v3; if ( v4 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v4); v5 = a2[1]; *(_OWORD *)(a1 + 28) = *(__int128 *)((char *)a2 + 28); *(_OWORD *)(a1 + 16) = v5; coro::net::socket::operator=((int *)(a1 + 44), (int *)a2 + 11); } return a1; }
operator=: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI CMP RSI,RDI JZ 0x0010906d MOV R14,RSI MOVUPS XMM0,xmmword ptr [RSI] XORPS XMM1,XMM1 MOVUPS xmmword ptr [RSI],XMM1 MOV RDI,qword ptr [RBX + 0x8] MOVUPS xmmword ptr [RBX],XMM0 TEST RDI,RDI JZ 0x0010904b CALL 0x00104ca6 LAB_0010904b: MOVUPS XMM0,xmmword ptr [R14 + 0x10] MOVUPS XMM1,xmmword ptr [R14 + 0x1c] MOVUPS xmmword ptr [RBX + 0x1c],XMM1 MOVUPS xmmword ptr [RBX + 0x10],XMM0 ADD R14,0x2c LEA RDI,[RBX + 0x2c] MOV RSI,R14 CALL 0x00108566 LAB_0010906d: MOV RAX,RBX ADD RSP,0x8 POP RBX POP R14 RET
/* coro::net::tcp::server::TEMPNAMEPLACEHOLDERVALUE(coro::net::tcp::server&&) */ server * __thiscall coro::net::tcp::server::operator=(server *this,server *param_1) { _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *this_00; int8 uVar1; int8 uVar2; int8 uVar3; if (param_1 != this) { uVar1 = *(int8 *)param_1; uVar2 = *(int8 *)(param_1 + 8); *(int8 *)param_1 = 0; *(int8 *)(param_1 + 8) = 0; this_00 = *(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 8); *(int8 *)this = uVar1; *(int8 *)(this + 8) = uVar2; 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); } uVar1 = *(int8 *)(param_1 + 0x10); uVar2 = *(int8 *)(param_1 + 0x18); uVar3 = *(int8 *)(param_1 + 0x24); *(int8 *)(this + 0x1c) = *(int8 *)(param_1 + 0x1c); *(int8 *)(this + 0x24) = uVar3; *(int8 *)(this + 0x10) = uVar1; *(int8 *)(this + 0x18) = uVar2; socket::operator=((socket *)(this + 0x2c),(socket *)(param_1 + 0x2c)); } return this; }
52,810
ImPlot::IsAxisHovered(int)
zkingston[P]unknot/build_O1/_deps/implot-src/implot.cpp
bool IsAxisHovered(ImAxis axis) { ImPlotContext& gp = *GImPlot; IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "IsPlotXAxisHovered() needs to be called between BeginPlot() and EndPlot()!"); SetupLock(); return gp.CurrentPlot->Axes[axis].Hovered; }
O1
cpp
ImPlot::IsAxisHovered(int): pushq %r15 pushq %r14 pushq %rbx movl %edi, %ebx movq 0x2764c5(%rip), %r14 # 0x336ca0 cmpq $0x0, 0x50(%r14) jne 0xc07ee leaq 0x1da1aa(%rip), %rdi # 0x29a993 callq 0x2161f4 movq 0x2764ab(%rip), %r15 # 0x336ca0 movq 0x50(%r15), %rax cmpb $0x0, 0x9de(%rax) jne 0xc0807 callq 0xb930f movq 0x50(%r15), %rax movb $0x1, 0x9de(%rax) movq 0x50(%r14), %rax movslq %ebx, %rcx imulq $0x178, %rcx, %rcx # imm = 0x178 movb 0x18a(%rax,%rcx), %al popq %rbx popq %r14 popq %r15 retq
_ZN6ImPlot13IsAxisHoveredEi: push r15 push r14 push rbx mov ebx, edi mov r14, cs:GImPlot cmp qword ptr [r14+50h], 0 jnz short loc_C07EE lea rdi, aIsplotxaxishov; "IsPlotXAxisHovered() needs to be called"... call _ZN5ImGui8ErrorLogEPKc; ImGui::ErrorLog(char const*) loc_C07EE: mov r15, cs:GImPlot mov rax, [r15+50h] cmp byte ptr [rax+9DEh], 0 jnz short loc_C0807 call _ZN6ImPlot11SetupFinishEv; ImPlot::SetupFinish(void) loc_C0807: mov rax, [r15+50h] mov byte ptr [rax+9DEh], 1 mov rax, [r14+50h] movsxd rcx, ebx imul rcx, 178h mov al, [rax+rcx+18Ah] pop rbx pop r14 pop r15 retn
char ImPlot::IsAxisHovered(ImPlot *this, const char *a2) { int v2; // ebx ImGui *v3; // r14 ImGui *v4; // r15 v2 = (int)this; v3 = GImPlot; if ( !*((_QWORD *)GImPlot + 10) ) { this = (ImPlot *)"IsPlotXAxisHovered() needs to be called between BeginPlot() and EndPlot()!"; ImGui::ErrorLog((ImGui *)"IsPlotXAxisHovered() needs to be called between BeginPlot() and EndPlot()!", a2); } v4 = GImPlot; if ( !*(_BYTE *)(*((_QWORD *)GImPlot + 10) + 2526LL) ) ImPlot::SetupFinish(this, a2); *(_BYTE *)(*((_QWORD *)v4 + 10) + 2526LL) = 1; return *(_BYTE *)(*((_QWORD *)v3 + 10) + 376LL * v2 + 394); }
IsAxisHovered: PUSH R15 PUSH R14 PUSH RBX MOV EBX,EDI MOV R14,qword ptr [0x00436ca0] CMP qword ptr [R14 + 0x50],0x0 JNZ 0x001c07ee LEA RDI,[0x39a993] CALL 0x003161f4 LAB_001c07ee: MOV R15,qword ptr [0x00436ca0] MOV RAX,qword ptr [R15 + 0x50] CMP byte ptr [RAX + 0x9de],0x0 JNZ 0x001c0807 CALL 0x001b930f LAB_001c0807: MOV RAX,qword ptr [R15 + 0x50] MOV byte ptr [RAX + 0x9de],0x1 MOV RAX,qword ptr [R14 + 0x50] MOVSXD RCX,EBX IMUL RCX,RCX,0x178 MOV AL,byte ptr [RAX + RCX*0x1 + 0x18a] POP RBX POP R14 POP R15 RET
/* ImPlot::IsAxisHovered(int) */ int8 ImPlot::IsAxisHovered(int param_1) { long lVar1; long lVar2; lVar1 = GImPlot; if (*(long *)(GImPlot + 0x50) == 0) { ImGui::ErrorLog("IsPlotXAxisHovered() needs to be called between BeginPlot() and EndPlot()!"); } lVar2 = GImPlot; if (*(char *)(*(long *)(GImPlot + 0x50) + 0x9de) == '\0') { SetupFinish(); } *(int1 *)(*(long *)(lVar2 + 0x50) + 0x9de) = 1; return CONCAT71((int7)((ulong)*(long *)(lVar1 + 0x50) >> 8), *(int1 *)(*(long *)(lVar1 + 0x50) + 0x18a + (long)param_1 * 0x178)); }
52,811
mi_store_blob_length
eloqsql/storage/myisam/mi_dynrec.c
void _mi_store_blob_length(uchar *pos,uint pack_length,uint length) { switch (pack_length) { case 1: *pos= (uchar) length; break; case 2: int2store(pos,length); break; case 3: int3store(pos,length); break; case 4: int4store(pos,length); default: break; } return; }
O3
c
mi_store_blob_length: pushq %rbp movq %rsp, %rbp decl %esi cmpl $0x3, %esi ja 0x78eda leaq 0x68807(%rip), %rax # 0xe16c0 movslq (%rax,%rsi,4), %rcx addq %rax, %rcx jmpq *%rcx movb %dl, (%rdi) jmp 0x78eda movb %dl, (%rdi) movb %dh, 0x1(%rdi) shrl $0x10, %edx movb %dl, 0x2(%rdi) jmp 0x78eda movl %edx, (%rdi) jmp 0x78eda movw %dx, (%rdi) popq %rbp retq
_mi_store_blob_length: push rbp mov rbp, rsp dec esi; switch 4 cases cmp esi, 3 ja short def_78EC0; jumptable 0000000000078EC0 default case lea rax, jpt_78EC0 movsxd rcx, ds:(jpt_78EC0 - 0E16C0h)[rax+rsi*4] add rcx, rax jmp rcx; switch jump loc_78EC2: mov [rdi], dl; jumptable 0000000000078EC0 case 1 jmp short def_78EC0; jumptable 0000000000078EC0 default case loc_78EC6: mov [rdi], dl; jumptable 0000000000078EC0 case 3 mov [rdi+1], dh shr edx, 10h mov [rdi+2], dl jmp short def_78EC0; jumptable 0000000000078EC0 default case loc_78ED3: mov [rdi], edx; jumptable 0000000000078EC0 case 4 jmp short def_78EC0; jumptable 0000000000078EC0 default case loc_78ED7: mov [rdi], dx; jumptable 0000000000078EC0 case 2 def_78EC0: pop rbp; jumptable 0000000000078EC0 default case retn
void mi_store_blob_length(_BYTE *a1, int a2, int a3) { switch ( a2 ) { case 1: *a1 = a3; break; case 2: *(_WORD *)a1 = a3; break; case 3: *(_WORD *)a1 = a3; a1[2] = BYTE2(a3); break; case 4: *(_DWORD *)a1 = a3; break; default: return; } }
_mi_store_blob_length: PUSH RBP MOV RBP,RSP DEC ESI CMP ESI,0x3 JA 0x00178eda LEA RAX,[0x1e16c0] MOVSXD RCX,dword ptr [RAX + RSI*0x4] ADD RCX,RAX switchD: JMP RCX caseD_1: MOV byte ptr [RDI],DL JMP 0x00178eda caseD_3: MOV byte ptr [RDI],DL MOV byte ptr [RDI + 0x1],DH SHR EDX,0x10 MOV byte ptr [RDI + 0x2],DL JMP 0x00178eda caseD_4: MOV dword ptr [RDI],EDX JMP 0x00178eda caseD_2: MOV word ptr [RDI],DX default: POP RBP RET
void _mi_store_blob_length(int4 *param_1,int4 param_2,int4 param_3) { switch(param_2) { case 1: *(char *)param_1 = (char)param_3; break; case 2: *(short *)param_1 = (short)param_3; break; case 3: *(char *)param_1 = (char)param_3; *(char *)((long)param_1 + 1) = (char)((uint)param_3 >> 8); *(char *)((long)param_1 + 2) = (char)((uint)param_3 >> 0x10); break; case 4: *param_1 = param_3; } return; }
52,812
minja::SetNode::SetNode(minja::Location const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::shared_ptr<minja::Expression>&&)
monkey531[P]llama/common/minja.hpp
SetNode(const Location & location, const std::string & ns, const std::vector<std::string> & vns, std::shared_ptr<Expression> && v) : TemplateNode(location), ns(ns), var_names(vns), value(std::move(v)) {}
O2
cpp
minja::SetNode::SetNode(minja::Location const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::shared_ptr<minja::Expression>&&): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %r8, %r14 movq %rcx, %r15 movq %rdx, %r13 movq %rdi, %rbx callq 0x73a84 leaq 0x89c25(%rip), %rax # 0x100338 addq $0x10, %rax movq %rax, (%rbx) leaq 0x20(%rbx), %r12 movq %r12, %rdi movq %r13, %rsi callq 0x24bf0 leaq 0x40(%rbx), %rdi movq %r15, %rsi callq 0x3a6aa andq $0x0, 0x60(%rbx) movups (%r14), %xmm0 andq $0x0, 0x8(%r14) movups %xmm0, 0x58(%rbx) andq $0x0, (%r14) popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq movq %rax, %r14 movq %r12, %rdi callq 0x251d8 jmp 0x76765 movq %rax, %r14 movq %rbx, %rdi callq 0x786fe movq %r14, %rdi callq 0x24f80 nop
_ZN5minja7SetNodeC2ERKNS_8LocationERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIS9_SaIS9_EEOSt10shared_ptrINS_10ExpressionEE: push r15 push r14 push r13 push r12 push rbx mov r14, r8 mov r15, rcx mov r13, rdx mov rbx, rdi call _ZN5minja12TemplateNodeC2ERKNS_8LocationE; minja::TemplateNode::TemplateNode(minja::Location const&) lea rax, _ZTVN5minja7SetNodeE; `vtable for'minja::SetNode add rax, 10h mov [rbx], rax lea r12, [rbx+20h] mov rdi, r12 mov rsi, r13 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&) lea rdi, [rbx+40h] mov rsi, r15 call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_; std::vector<std::string>::vector(std::vector<std::string> const&) and qword ptr [rbx+60h], 0 movups xmm0, xmmword ptr [r14] and qword ptr [r14+8], 0 movups xmmword ptr [rbx+58h], xmm0 and qword ptr [r14], 0 pop rbx pop r12 pop r13 pop r14 pop r15 retn mov r14, rax mov rdi, r12; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_76765 mov r14, rax loc_76765: mov rdi, rbx; this call _ZN5minja12TemplateNodeD2Ev; minja::TemplateNode::~TemplateNode() mov rdi, r14 call __Unwind_Resume
long long minja::SetNode::SetNode(long long a1, _QWORD *a2, long long a3, _QWORD *a4, __int128 *a5) { long long result; // rax __int128 v9; // xmm0 minja::TemplateNode::TemplateNode((_QWORD *)a1, a2); *(_QWORD *)a1 = &`vtable for'minja::SetNode + 2; std::string::basic_string(a1 + 32, a3); result = std::vector<std::string>::vector((_QWORD *)(a1 + 64), a4); *(_QWORD *)(a1 + 96) = 0LL; v9 = *a5; *((_QWORD *)a5 + 1) = 0LL; *(_OWORD *)(a1 + 88) = v9; *(_QWORD *)a5 = 0LL; return result; }
SetNode: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX MOV R14,R8 MOV R15,RCX MOV R13,RDX MOV RBX,RDI CALL 0x00173a84 LEA RAX,[0x200338] ADD RAX,0x10 MOV qword ptr [RBX],RAX LEA R12,[RBX + 0x20] LAB_0017671e: MOV RDI,R12 MOV RSI,R13 CALL 0x00124bf0 LEA RDI,[RBX + 0x40] LAB_0017672d: MOV RSI,R15 CALL 0x0013a6aa LAB_00176735: AND qword ptr [RBX + 0x60],0x0 MOVUPS XMM0,xmmword ptr [R14] AND qword ptr [R14 + 0x8],0x0 MOVUPS xmmword ptr [RBX + 0x58],XMM0 AND qword ptr [R14],0x0 POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* minja::SetNode::SetNode(minja::Location const&, std::__cxx11::string const&, std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > > const&, std::shared_ptr<minja::Expression>&&) */ void __thiscall minja::SetNode::SetNode (SetNode *this,Location *param_1,string *param_2,vector *param_3,shared_ptr *param_4) { int8 uVar1; TemplateNode::TemplateNode((TemplateNode *)this,param_1); *(int ***)this = &PTR_do_render_00200348; /* try { // try from 0017671e to 00176728 has its CatchHandler @ 00176762 */ std::__cxx11::string::string((string *)(this + 0x20),param_2); /* try { // try from 0017672d to 00176734 has its CatchHandler @ 00176755 */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x40), param_3); *(int8 *)(this + 0x60) = 0; uVar1 = *(int8 *)(param_4 + 8); *(int8 *)(param_4 + 8) = 0; *(int8 *)(this + 0x58) = *(int8 *)param_4; *(int8 *)(this + 0x60) = uVar1; *(int8 *)param_4 = 0; return; }
52,813
minja::SetNode::SetNode(minja::Location const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::shared_ptr<minja::Expression>&&)
monkey531[P]llama/common/minja.hpp
SetNode(const Location & location, const std::string & ns, const std::vector<std::string> & vns, std::shared_ptr<Expression> && v) : TemplateNode(location), ns(ns), var_names(vns), value(std::move(v)) {}
O3
cpp
minja::SetNode::SetNode(minja::Location const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::shared_ptr<minja::Expression>&&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %r8, %r14 movq %rcx, %r15 movq %rdi, %rbx leaq 0x8e6cd(%rip), %r13 # 0x12cfb8 addq $0x10, %r13 movq %r13, (%rdi) movq (%rsi), %rax movq %rax, 0x8(%rdi) movq 0x8(%rsi), %rax movq %rax, 0x10(%rdi) testq %rax, %rax je 0x9e91b movq 0x8f673(%rip), %rcx # 0x12df80 cmpb $0x0, (%rcx) je 0x9e917 incl 0x8(%rax) jmp 0x9e91b lock incl 0x8(%rax) movq 0x10(%rsi), %rax movq %rax, 0x18(%rbx) leaq 0x8e9fe(%rip), %rax # 0x12d328 addq $0x10, %rax movq %rax, (%rbx) leaq 0x20(%rbx), %r12 leaq 0x30(%rbx), %rbp movq %rbp, 0x20(%rbx) movq (%rdx), %rsi movq 0x8(%rdx), %rdx addq %rsi, %rdx movq %r12, %rdi callq 0x22484 leaq 0x40(%rbx), %rdi movq %r15, %rsi callq 0x55244 xorl %eax, %eax movq %rax, 0x60(%rbx) movups (%r14), %xmm0 movq %rax, 0x8(%r14) movups %xmm0, 0x58(%rbx) movq %rax, (%r14) addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %r14 movq (%r12), %rdi cmpq %rbp, %rdi je 0x9e99c movq (%rbp), %rsi incq %rsi callq 0x1b8c0 jmp 0x9e99c movq %rax, %r14 movq %r13, (%rbx) movq 0x10(%rbx), %rdi testq %rdi, %rdi je 0x9e9ad callq 0x6dfc6 movq %r14, %rdi callq 0x1bf90 nop
_ZN5minja7SetNodeC2ERKNS_8LocationERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIS9_SaIS9_EEOSt10shared_ptrINS_10ExpressionEE: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov r14, r8 mov r15, rcx mov rbx, rdi lea r13, _ZTVN5minja12TemplateNodeE; `vtable for'minja::TemplateNode add r13, 10h mov [rdi], r13 mov rax, [rsi] mov [rdi+8], rax mov rax, [rsi+8] mov [rdi+10h], rax test rax, rax jz short loc_9E91B mov rcx, cs:__libc_single_threaded_ptr cmp byte ptr [rcx], 0 jz short loc_9E917 inc dword ptr [rax+8] jmp short loc_9E91B loc_9E917: lock inc dword ptr [rax+8] loc_9E91B: mov rax, [rsi+10h] mov [rbx+18h], rax lea rax, _ZTVN5minja7SetNodeE; `vtable for'minja::SetNode add rax, 10h mov [rbx], rax lea r12, [rbx+20h] lea rbp, [rbx+30h] mov [rbx+20h], rbp mov rsi, [rdx] mov rdx, [rdx+8] add rdx, rsi mov rdi, r12 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) lea rdi, [rbx+40h] mov rsi, r15 call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_; std::vector<std::string>::vector(std::vector<std::string> const&) xor eax, eax mov [rbx+60h], rax movups xmm0, xmmword ptr [r14] mov [r14+8], rax movups xmmword ptr [rbx+58h], xmm0 mov [r14], rax add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov r14, rax mov rdi, [r12]; void * cmp rdi, rbp jz short loc_9E99C mov rsi, [rbp+0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_9E99C mov r14, rax loc_9E99C: mov [rbx], r13 mov rdi, [rbx+10h] test rdi, rdi jz short loc_9E9AD call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_9E9AD: mov rdi, r14 call __Unwind_Resume
long long minja::SetNode::SetNode(long long a1, _QWORD *a2, long long a3, _QWORD *a4, __int128 *a5) { long long v7; // rax long long result; // rax __int128 v9; // xmm0 *(_QWORD *)a1 = &`vtable for'minja::TemplateNode + 2; *(_QWORD *)(a1 + 8) = *a2; v7 = a2[1]; *(_QWORD *)(a1 + 16) = v7; if ( v7 ) { if ( _libc_single_threaded ) ++*(_DWORD *)(v7 + 8); else _InterlockedIncrement((volatile signed __int32 *)(v7 + 8)); } *(_QWORD *)(a1 + 24) = a2[2]; *(_QWORD *)a1 = &`vtable for'minja::SetNode + 2; *(_QWORD *)(a1 + 32) = a1 + 48; std::string::_M_construct<char *>(a1 + 32, *(_BYTE **)a3, *(_QWORD *)a3 + *(_QWORD *)(a3 + 8)); std::vector<std::string>::vector(a1 + 64, a4); result = 0LL; *(_QWORD *)(a1 + 96) = 0LL; v9 = *a5; *((_QWORD *)a5 + 1) = 0LL; *(_OWORD *)(a1 + 88) = v9; *(_QWORD *)a5 = 0LL; return result; }
SetNode: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R14,R8 MOV R15,RCX MOV RBX,RDI LEA R13,[0x22cfb8] ADD R13,0x10 MOV qword ptr [RDI],R13 MOV RAX,qword ptr [RSI] MOV qword ptr [RDI + 0x8],RAX MOV RAX,qword ptr [RSI + 0x8] MOV qword ptr [RDI + 0x10],RAX TEST RAX,RAX JZ 0x0019e91b MOV RCX,qword ptr [0x0022df80] CMP byte ptr [RCX],0x0 JZ 0x0019e917 INC dword ptr [RAX + 0x8] JMP 0x0019e91b LAB_0019e917: INC.LOCK dword ptr [RAX + 0x8] LAB_0019e91b: MOV RAX,qword ptr [RSI + 0x10] MOV qword ptr [RBX + 0x18],RAX LEA RAX,[0x22d328] ADD RAX,0x10 MOV qword ptr [RBX],RAX LEA R12,[RBX + 0x20] LEA RBP,[RBX + 0x30] MOV qword ptr [RBX + 0x20],RBP MOV RSI,qword ptr [RDX] MOV RDX,qword ptr [RDX + 0x8] ADD RDX,RSI LAB_0019e947: MOV RDI,R12 CALL 0x00122484 LEA RDI,[RBX + 0x40] LAB_0019e953: MOV RSI,R15 CALL 0x00155244 LAB_0019e95b: XOR EAX,EAX MOV qword ptr [RBX + 0x60],RAX MOVUPS XMM0,xmmword ptr [R14] MOV qword ptr [R14 + 0x8],RAX MOVUPS xmmword ptr [RBX + 0x58],XMM0 MOV qword ptr [R14],RAX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* minja::SetNode::SetNode(minja::Location const&, std::__cxx11::string const&, std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > > const&, std::shared_ptr<minja::Expression>&&) */ void __thiscall minja::SetNode::SetNode (SetNode *this,Location *param_1,string *param_2,vector *param_3,shared_ptr *param_4) { long lVar1; int8 uVar2; *(int ***)this = &PTR___cxa_pure_virtual_0022cfc8; *(int8 *)(this + 8) = *(int8 *)param_1; lVar1 = *(long *)(param_1 + 8); *(long *)(this + 0x10) = lVar1; if (lVar1 != 0) { if (*PTR___libc_single_threaded_0022df80 == '\0') { LOCK(); *(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1; UNLOCK(); } else { *(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1; } } *(int8 *)(this + 0x18) = *(int8 *)(param_1 + 0x10); *(int ***)this = &PTR_do_render_0022d338; *(SetNode **)(this + 0x20) = this + 0x30; /* try { // try from 0019e947 to 0019e94e has its CatchHandler @ 0019e999 */ std::__cxx11::string::_M_construct<char*> (this + 0x20,*(long *)param_2,*(long *)(param_2 + 8) + *(long *)param_2); /* try { // try from 0019e953 to 0019e95a has its CatchHandler @ 0019e97f */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x40), param_3); *(int8 *)(this + 0x60) = 0; uVar2 = *(int8 *)(param_4 + 8); *(int8 *)(param_4 + 8) = 0; *(int8 *)(this + 0x58) = *(int8 *)param_4; *(int8 *)(this + 0x60) = uVar2; *(int8 *)param_4 = 0; return; }
52,814
my_strnxfrm_unicode_full_bin
eloqsql/strings/ctype-utf8.c
size_t my_strnxfrm_unicode_full_bin(CHARSET_INFO *cs, uchar *dst, size_t dstlen, uint nweights, const uchar *src, size_t srclen, uint flags) { uchar *dst0= dst; uchar *de= dst + dstlen; dst+= my_strnxfrm_unicode_full_bin_internal(cs, dst, de, &nweights, src, src + srclen); DBUG_ASSERT(dst <= de); /* Safety */ if (flags & MY_STRXFRM_PAD_WITH_SPACE) { for ( ; dst < de && nweights; nweights--) { *dst++= 0x00; if (dst < de) { *dst++= 0x00; if (dst < de) *dst++= 0x20; } } } my_strxfrm_desc_and_reverse(dst0, dst, flags, 0); if (flags & MY_STRXFRM_PAD_TO_MAXLEN) { while (dst < de) { *dst++= 0x00; if (dst < de) { *dst++= 0x00; if (dst < de) *dst++= 0x20; } } } return dst - dst0; }
O3
c
my_strnxfrm_unicode_full_bin: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rdx, %r12 movq %rsi, %rbx movl 0x10(%rbp), %r15d leaq -0x24(%rbp), %rax movl %ecx, (%rax) leaq (%rsi,%rdx), %r14 addq %r8, %r9 movq %r14, %rdx movq %rax, %rcx callq 0x5241f leaq (%rbx,%rax), %rcx testb $0x40, %r15b jne 0x52568 movq %rcx, %r12 movq %rbx, %rdi movq %r12, %rsi movl %r15d, %edx xorl %ecx, %ecx callq 0x3d3c6 testb %r15b, %r15b setns %al cmpq %r14, %r12 setae %cl orb %al, %cl jne 0x525b4 leaq 0x1(%r12), %rax movb $0x0, (%r12) cmpq %r14, %rax jae 0x5255e leaq 0x2(%r12), %rax movb $0x0, 0x1(%r12) cmpq %r14, %rax jae 0x5255e movb $0x20, 0x2(%r12) addq $0x3, %r12 movq %r12, %rax movq %rax, %r12 cmpq %r14, %rax jb 0x52532 jmp 0x525b7 cmpq %r12, %rax jge 0x5250b cmpl $0x0, -0x24(%rbp) je 0x5250b leaq 0x1(%rcx), %r12 movb $0x0, (%rcx) cmpq %r14, %r12 jae 0x52597 leaq 0x2(%rcx), %r12 movb $0x0, 0x1(%rcx) cmpq %r14, %r12 jae 0x52597 movb $0x20, 0x2(%rcx) addq $0x3, %rcx movq %rcx, %r12 movl -0x24(%rbp), %eax decl %eax movl %eax, -0x24(%rbp) cmpq %r14, %r12 jae 0x5250e movq %r12, %rcx testl %eax, %eax jne 0x52573 jmp 0x5250e movq %r12, %rax subq %rbx, %rax addq $0x10, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
my_strnxfrm_unicode_full_bin: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx sub rsp, 10h mov r12, rdx mov rbx, rsi mov r15d, [rbp+arg_0] lea rax, [rbp+var_24] mov [rax], ecx lea r14, [rsi+rdx] add r9, r8 mov rdx, r14 mov rcx, rax call my_strnxfrm_unicode_full_bin_internal lea rcx, [rbx+rax] test r15b, 40h jnz short loc_52568 loc_5250B: mov r12, rcx loc_5250E: mov rdi, rbx mov rsi, r12 mov edx, r15d xor ecx, ecx call my_strxfrm_desc_and_reverse test r15b, r15b setns al cmp r12, r14 setnb cl or cl, al jnz loc_525B4 loc_52532: lea rax, [r12+1] mov byte ptr [r12], 0 cmp rax, r14 jnb short loc_5255E lea rax, [r12+2] mov byte ptr [r12+1], 0 cmp rax, r14 jnb short loc_5255E mov byte ptr [r12+2], 20h ; ' ' add r12, 3 mov rax, r12 loc_5255E: mov r12, rax cmp rax, r14 jb short loc_52532 jmp short loc_525B7 loc_52568: cmp rax, r12 jge short loc_5250B cmp [rbp+var_24], 0 jz short loc_5250B loc_52573: lea r12, [rcx+1] mov byte ptr [rcx], 0 cmp r12, r14 jnb short loc_52597 lea r12, [rcx+2] mov byte ptr [rcx+1], 0 cmp r12, r14 jnb short loc_52597 mov byte ptr [rcx+2], 20h ; ' ' add rcx, 3 mov r12, rcx loc_52597: mov eax, [rbp+var_24] dec eax mov [rbp+var_24], eax cmp r12, r14 jnb loc_5250E mov rcx, r12 test eax, eax jnz short loc_52573 jmp loc_5250E loc_525B4: mov rax, r12 loc_525B7: sub rax, rbx add rsp, 10h pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long my_strnxfrm_unicode_full_bin( long long a1, _BYTE *a2, long long a3, int a4, long long a5, long long a6, unsigned int a7) { unsigned long long v8; // r14 long long v9; // rax _BYTE *v10; // rcx _BYTE *v11; // r12 _BYTE *v12; // rax int v13; // eax int v15[9]; // [rsp+Ch] [rbp-24h] BYREF v15[0] = a4; v8 = (unsigned long long)&a2[a3]; v9 = my_strnxfrm_unicode_full_bin_internal(a1, a2, (unsigned long long)&a2[a3], v15, a5, a5 + a6); v10 = &a2[v9]; if ( (a7 & 0x40) != 0 && v9 < a3 && v15[0] ) { do { v11 = v10 + 1; *v10 = 0; if ( (unsigned long long)(v10 + 1) < v8 ) { v11 = v10 + 2; v10[1] = 0; if ( (unsigned long long)(v10 + 2) < v8 ) { v10[2] = 32; v11 = v10 + 3; } } v13 = --v15[0]; if ( (unsigned long long)v11 >= v8 ) break; v10 = v11; } while ( v13 ); } else { v11 = &a2[v9]; } my_strxfrm_desc_and_reverse(a2, v11, a7, 0); if ( (a7 & 0x80u) == 0 || (unsigned long long)v11 >= v8 ) { v12 = v11; } else { do { v12 = v11 + 1; *v11 = 0; if ( (unsigned long long)(v11 + 1) < v8 ) { v12 = v11 + 2; v11[1] = 0; if ( (unsigned long long)(v11 + 2) < v8 ) { v11[2] = 32; v12 = v11 + 3; } } v11 = v12; } while ( (unsigned long long)v12 < v8 ); } return v12 - a2; }
my_strnxfrm_unicode_full_bin: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x10 MOV R12,RDX MOV RBX,RSI MOV R15D,dword ptr [RBP + 0x10] LEA RAX,[RBP + -0x24] MOV dword ptr [RAX],ECX LEA R14,[RSI + RDX*0x1] ADD R9,R8 MOV RDX,R14 MOV RCX,RAX CALL 0x0015241f LEA RCX,[RBX + RAX*0x1] TEST R15B,0x40 JNZ 0x00152568 LAB_0015250b: MOV R12,RCX LAB_0015250e: MOV RDI,RBX MOV RSI,R12 MOV EDX,R15D XOR ECX,ECX CALL 0x0013d3c6 TEST R15B,R15B SETNS AL CMP R12,R14 SETNC CL OR CL,AL JNZ 0x001525b4 LAB_00152532: LEA RAX,[R12 + 0x1] MOV byte ptr [R12],0x0 CMP RAX,R14 JNC 0x0015255e LEA RAX,[R12 + 0x2] MOV byte ptr [R12 + 0x1],0x0 CMP RAX,R14 JNC 0x0015255e MOV byte ptr [R12 + 0x2],0x20 ADD R12,0x3 MOV RAX,R12 LAB_0015255e: MOV R12,RAX CMP RAX,R14 JC 0x00152532 JMP 0x001525b7 LAB_00152568: CMP RAX,R12 JGE 0x0015250b CMP dword ptr [RBP + -0x24],0x0 JZ 0x0015250b LAB_00152573: LEA R12,[RCX + 0x1] MOV byte ptr [RCX],0x0 CMP R12,R14 JNC 0x00152597 LEA R12,[RCX + 0x2] MOV byte ptr [RCX + 0x1],0x0 CMP R12,R14 JNC 0x00152597 MOV byte ptr [RCX + 0x2],0x20 ADD RCX,0x3 MOV R12,RCX LAB_00152597: MOV EAX,dword ptr [RBP + -0x24] DEC EAX MOV dword ptr [RBP + -0x24],EAX CMP R12,R14 JNC 0x0015250e MOV RCX,R12 TEST EAX,EAX JNZ 0x00152573 JMP 0x0015250e LAB_001525b4: MOV RAX,R12 LAB_001525b7: SUB RAX,RBX ADD RSP,0x10 POP RBX POP R12 POP R14 POP R15 POP RBP RET
long my_strnxfrm_unicode_full_bin (int8 param_1,long param_2,long param_3,int param_4,long param_5,long param_6, uint param_7) { int1 *puVar1; long lVar2; int1 *puVar3; int1 *puVar4; int local_2c; puVar1 = (int1 *)(param_2 + param_3); local_2c = param_4; lVar2 = my_strnxfrm_unicode_full_bin_internal (param_1,param_2,puVar1,&local_2c,param_5,param_6 + param_5); puVar4 = (int1 *)(param_2 + lVar2); if (((param_7 & 0x40) != 0) && (lVar2 < param_3)) { do { if (local_2c == 0) break; puVar3 = puVar4 + 1; *puVar4 = 0; if (puVar3 < puVar1) { puVar3 = puVar4 + 2; puVar4[1] = 0; if (puVar3 < puVar1) { puVar4[2] = 0x20; puVar3 = puVar4 + 3; } } local_2c = local_2c + -1; puVar4 = puVar3; } while (puVar3 < puVar1); } my_strxfrm_desc_and_reverse(param_2,puVar4,param_7,0); puVar3 = puVar4; if (puVar4 < puVar1 && (char)param_7 < '\0') { do { puVar4 = puVar3 + 1; *puVar3 = 0; if (puVar4 < puVar1) { puVar4 = puVar3 + 2; puVar3[1] = 0; if (puVar4 < puVar1) { puVar3[2] = 0x20; puVar4 = puVar3 + 3; } } puVar3 = puVar4; } while (puVar4 < puVar1); } return (long)puVar4 - param_2; }
52,815
rb_insert
eloqsql/mysys/tree.c
static void rb_insert(TREE *tree, TREE_ELEMENT ***parent, TREE_ELEMENT *leaf) { TREE_ELEMENT *y,*par,*par2; leaf->colour=RED; while (leaf != tree->root && (par=parent[-1][0])->colour == RED) { if (par == (par2=parent[-2][0])->left) { y= par2->right; if (y->colour == RED) { par->colour=BLACK; y->colour=BLACK; leaf=par2; parent-=2; leaf->colour=RED; /* And the loop continues */ } else { if (leaf == par->right) { left_rotate(parent[-1],par); par=leaf; /* leaf is now parent to old leaf */ } par->colour=BLACK; par2->colour=RED; right_rotate(parent[-2],par2); break; } } else { y= par2->left; if (y->colour == RED) { par->colour=BLACK; y->colour=BLACK; leaf=par2; parent-=2; leaf->colour=RED; /* And the loop continues */ } else { if (leaf == par->left) { right_rotate(parent[-1],par); par=leaf; } par->colour=BLACK; par2->colour=RED; left_rotate(parent[-2],par2); break; } } } tree->root->colour=BLACK; }
O0
c
rb_insert: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x18(%rbp), %rax movl 0x10(%rax), %ecx andl $0x7fffffff, %ecx # imm = 0x7FFFFFFF orl $0x0, %ecx movl %ecx, 0x10(%rax) movq -0x18(%rbp), %rcx movq -0x8(%rbp), %rdx xorl %eax, %eax cmpq (%rdx), %rcx movb %al, -0x31(%rbp) je 0x35427 movq -0x10(%rbp), %rax movq -0x8(%rax), %rax movq (%rax), %rax movq %rax, -0x28(%rbp) movl 0x10(%rax), %eax shrl $0x1f, %eax cmpl $0x0, %eax sete %al movb %al, -0x31(%rbp) movb -0x31(%rbp), %al testb $0x1, %al jne 0x35433 jmp 0x35602 movq -0x28(%rbp), %rax movq -0x10(%rbp), %rcx movq -0x10(%rcx), %rcx movq (%rcx), %rcx movq %rcx, -0x30(%rbp) cmpq (%rcx), %rax jne 0x3552a movq -0x30(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax movl 0x10(%rax), %eax shrl $0x1f, %eax cmpl $0x0, %eax jne 0x354bf movq -0x28(%rbp), %rax movl 0x10(%rax), %ecx andl $0x7fffffff, %ecx # imm = 0x7FFFFFFF orl $0x80000000, %ecx # imm = 0x80000000 movl %ecx, 0x10(%rax) movq -0x20(%rbp), %rax movl 0x10(%rax), %ecx andl $0x7fffffff, %ecx # imm = 0x7FFFFFFF orl $0x80000000, %ecx # imm = 0x80000000 movl %ecx, 0x10(%rax) movq -0x30(%rbp), %rax movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rax addq $-0x10, %rax movq %rax, -0x10(%rbp) movq -0x18(%rbp), %rax movl 0x10(%rax), %ecx andl $0x7fffffff, %ecx # imm = 0x7FFFFFFF orl $0x0, %ecx movl %ecx, 0x10(%rax) jmp 0x35525 movq -0x18(%rbp), %rax movq -0x28(%rbp), %rcx cmpq 0x8(%rcx), %rax jne 0x354e6 movq -0x10(%rbp), %rax movq -0x8(%rax), %rdi movq -0x28(%rbp), %rsi callq 0x36970 movq -0x18(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax movl 0x10(%rax), %ecx andl $0x7fffffff, %ecx # imm = 0x7FFFFFFF orl $0x80000000, %ecx # imm = 0x80000000 movl %ecx, 0x10(%rax) movq -0x30(%rbp), %rax movl 0x10(%rax), %ecx andl $0x7fffffff, %ecx # imm = 0x7FFFFFFF orl $0x0, %ecx movl %ecx, 0x10(%rax) movq -0x10(%rbp), %rax movq -0x10(%rax), %rdi movq -0x30(%rbp), %rsi callq 0x369b0 jmp 0x35602 jmp 0x355fd movq -0x30(%rbp), %rax movq (%rax), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax movl 0x10(%rax), %eax shrl $0x1f, %eax cmpl $0x0, %eax jne 0x35599 movq -0x28(%rbp), %rax movl 0x10(%rax), %ecx andl $0x7fffffff, %ecx # imm = 0x7FFFFFFF orl $0x80000000, %ecx # imm = 0x80000000 movl %ecx, 0x10(%rax) movq -0x20(%rbp), %rax movl 0x10(%rax), %ecx andl $0x7fffffff, %ecx # imm = 0x7FFFFFFF orl $0x80000000, %ecx # imm = 0x80000000 movl %ecx, 0x10(%rax) movq -0x30(%rbp), %rax movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rax addq $-0x10, %rax movq %rax, -0x10(%rbp) movq -0x18(%rbp), %rax movl 0x10(%rax), %ecx andl $0x7fffffff, %ecx # imm = 0x7FFFFFFF orl $0x0, %ecx movl %ecx, 0x10(%rax) jmp 0x355fb movq -0x18(%rbp), %rax movq -0x28(%rbp), %rcx cmpq (%rcx), %rax jne 0x355bf movq -0x10(%rbp), %rax movq -0x8(%rax), %rdi movq -0x28(%rbp), %rsi callq 0x369b0 movq -0x18(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax movl 0x10(%rax), %ecx andl $0x7fffffff, %ecx # imm = 0x7FFFFFFF orl $0x80000000, %ecx # imm = 0x80000000 movl %ecx, 0x10(%rax) movq -0x30(%rbp), %rax movl 0x10(%rax), %ecx andl $0x7fffffff, %ecx # imm = 0x7FFFFFFF orl $0x0, %ecx movl %ecx, 0x10(%rax) movq -0x10(%rbp), %rax movq -0x10(%rax), %rdi movq -0x30(%rbp), %rsi callq 0x36970 jmp 0x35602 jmp 0x355fd jmp 0x353f7 movq -0x8(%rbp), %rax movq (%rax), %rax movl 0x10(%rax), %ecx andl $0x7fffffff, %ecx # imm = 0x7FFFFFFF orl $0x80000000, %ecx # imm = 0x80000000 movl %ecx, 0x10(%rax) addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
rb_insert: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov rax, [rbp+var_18] mov ecx, [rax+10h] and ecx, 7FFFFFFFh or ecx, 0 mov [rax+10h], ecx loc_353F7: mov rcx, [rbp+var_18] mov rdx, [rbp+var_8] xor eax, eax cmp rcx, [rdx] mov [rbp+var_31], al jz short loc_35427 mov rax, [rbp+var_10] mov rax, [rax-8] mov rax, [rax] mov [rbp+var_28], rax mov eax, [rax+10h] shr eax, 1Fh cmp eax, 0 setz al mov [rbp+var_31], al loc_35427: mov al, [rbp+var_31] test al, 1 jnz short loc_35433 jmp loc_35602 loc_35433: mov rax, [rbp+var_28] mov rcx, [rbp+var_10] mov rcx, [rcx-10h] mov rcx, [rcx] mov [rbp+var_30], rcx cmp rax, [rcx] jnz loc_3552A mov rax, [rbp+var_30] mov rax, [rax+8] mov [rbp+var_20], rax mov rax, [rbp+var_20] mov eax, [rax+10h] shr eax, 1Fh cmp eax, 0 jnz short loc_354BF mov rax, [rbp+var_28] mov ecx, [rax+10h] and ecx, 7FFFFFFFh or ecx, 80000000h mov [rax+10h], ecx mov rax, [rbp+var_20] mov ecx, [rax+10h] and ecx, 7FFFFFFFh or ecx, 80000000h mov [rax+10h], ecx mov rax, [rbp+var_30] mov [rbp+var_18], rax mov rax, [rbp+var_10] add rax, 0FFFFFFFFFFFFFFF0h mov [rbp+var_10], rax mov rax, [rbp+var_18] mov ecx, [rax+10h] and ecx, 7FFFFFFFh or ecx, 0 mov [rax+10h], ecx jmp short loc_35525 loc_354BF: mov rax, [rbp+var_18] mov rcx, [rbp+var_28] cmp rax, [rcx+8] jnz short loc_354E6 mov rax, [rbp+var_10] mov rdi, [rax-8] mov rsi, [rbp+var_28] call left_rotate mov rax, [rbp+var_18] mov [rbp+var_28], rax loc_354E6: mov rax, [rbp+var_28] mov ecx, [rax+10h] and ecx, 7FFFFFFFh or ecx, 80000000h mov [rax+10h], ecx mov rax, [rbp+var_30] mov ecx, [rax+10h] and ecx, 7FFFFFFFh or ecx, 0 mov [rax+10h], ecx mov rax, [rbp+var_10] mov rdi, [rax-10h] mov rsi, [rbp+var_30] call right_rotate jmp loc_35602 loc_35525: jmp loc_355FD loc_3552A: mov rax, [rbp+var_30] mov rax, [rax] mov [rbp+var_20], rax mov rax, [rbp+var_20] mov eax, [rax+10h] shr eax, 1Fh cmp eax, 0 jnz short loc_35599 mov rax, [rbp+var_28] mov ecx, [rax+10h] and ecx, 7FFFFFFFh or ecx, 80000000h mov [rax+10h], ecx mov rax, [rbp+var_20] mov ecx, [rax+10h] and ecx, 7FFFFFFFh or ecx, 80000000h mov [rax+10h], ecx mov rax, [rbp+var_30] mov [rbp+var_18], rax mov rax, [rbp+var_10] add rax, 0FFFFFFFFFFFFFFF0h mov [rbp+var_10], rax mov rax, [rbp+var_18] mov ecx, [rax+10h] and ecx, 7FFFFFFFh or ecx, 0 mov [rax+10h], ecx jmp short loc_355FB loc_35599: mov rax, [rbp+var_18] mov rcx, [rbp+var_28] cmp rax, [rcx] jnz short loc_355BF mov rax, [rbp+var_10] mov rdi, [rax-8] mov rsi, [rbp+var_28] call right_rotate mov rax, [rbp+var_18] mov [rbp+var_28], rax loc_355BF: mov rax, [rbp+var_28] mov ecx, [rax+10h] and ecx, 7FFFFFFFh or ecx, 80000000h mov [rax+10h], ecx mov rax, [rbp+var_30] mov ecx, [rax+10h] and ecx, 7FFFFFFFh or ecx, 0 mov [rax+10h], ecx mov rax, [rbp+var_10] mov rdi, [rax-10h] mov rsi, [rbp+var_30] call left_rotate jmp short loc_35602 loc_355FB: jmp short $+2 loc_355FD: jmp loc_353F7 loc_35602: mov rax, [rbp+var_8] mov rax, [rax] mov ecx, [rax+10h] and ecx, 7FFFFFFFh or ecx, 80000000h mov [rax+10h], ecx add rsp, 40h pop rbp retn
long long * rb_insert(long long **a1, long long a2, long long *a3) { long long *result; // rax bool v4; // [rsp+Fh] [rbp-31h] long long *v5; // [rsp+10h] [rbp-30h] long long *v6; // [rsp+18h] [rbp-28h] long long v7; // [rsp+20h] [rbp-20h] long long *v8; // [rsp+28h] [rbp-18h] v8 = a3; *((_DWORD *)a3 + 4) &= ~0x80000000; while ( 1 ) { v4 = 0; if ( v8 != *a1 ) { v6 = **(long long ***)(a2 - 8); v4 = *((_DWORD *)v6 + 4) >> 31 == 0; } if ( !v4 ) break; v5 = **(long long ***)(a2 - 16); if ( v6 == (long long *)*v5 ) { v7 = v5[1]; if ( *(int *)(v7 + 16) < 0 ) { if ( v8 == (long long *)v6[1] ) { left_rotate(*(_QWORD *)(a2 - 8), v6); v6 = v8; } *((_DWORD *)v6 + 4) = v6[2] & 0x7FFFFFFF | 0x80000000; *((_DWORD *)v5 + 4) &= ~0x80000000; right_rotate(*(_QWORD *)(a2 - 16), v5); break; } } else { v7 = *v5; if ( *(int *)(*v5 + 16) < 0 ) { if ( v8 == (long long *)*v6 ) { right_rotate(*(_QWORD *)(a2 - 8), v6); v6 = v8; } *((_DWORD *)v6 + 4) = v6[2] & 0x7FFFFFFF | 0x80000000; *((_DWORD *)v5 + 4) &= ~0x80000000; left_rotate(*(_QWORD *)(a2 - 16), v5); break; } } *((_DWORD *)v6 + 4) = v6[2] & 0x7FFFFFFF | 0x80000000; *(_DWORD *)(v7 + 16) = *(_DWORD *)(v7 + 16) & 0x7FFFFFFF | 0x80000000; v8 = v5; a2 -= 16LL; *((_DWORD *)v5 + 4) &= ~0x80000000; } result = *a1; *((_DWORD *)*a1 + 4) = (*a1)[2] & 0x7FFFFFFF | 0x80000000; return result; }
rb_insert: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RAX + 0x10] AND ECX,0x7fffffff OR ECX,0x0 MOV dword ptr [RAX + 0x10],ECX LAB_001353f7: MOV RCX,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x8] XOR EAX,EAX CMP RCX,qword ptr [RDX] MOV byte ptr [RBP + -0x31],AL JZ 0x00135427 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x28],RAX MOV EAX,dword ptr [RAX + 0x10] SHR EAX,0x1f CMP EAX,0x0 SETZ AL MOV byte ptr [RBP + -0x31],AL LAB_00135427: MOV AL,byte ptr [RBP + -0x31] TEST AL,0x1 JNZ 0x00135433 JMP 0x00135602 LAB_00135433: MOV RAX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX + -0x10] MOV RCX,qword ptr [RCX] MOV qword ptr [RBP + -0x30],RCX CMP RAX,qword ptr [RCX] JNZ 0x0013552a MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX + 0x10] SHR EAX,0x1f CMP EAX,0x0 JNZ 0x001354bf MOV RAX,qword ptr [RBP + -0x28] MOV ECX,dword ptr [RAX + 0x10] AND ECX,0x7fffffff OR ECX,0x80000000 MOV dword ptr [RAX + 0x10],ECX MOV RAX,qword ptr [RBP + -0x20] MOV ECX,dword ptr [RAX + 0x10] AND ECX,0x7fffffff OR ECX,0x80000000 MOV dword ptr [RAX + 0x10],ECX MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x10] ADD RAX,-0x10 MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RAX + 0x10] AND ECX,0x7fffffff OR ECX,0x0 MOV dword ptr [RAX + 0x10],ECX JMP 0x00135525 LAB_001354bf: MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RCX + 0x8] JNZ 0x001354e6 MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + -0x8] MOV RSI,qword ptr [RBP + -0x28] CALL 0x00136970 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x28],RAX LAB_001354e6: MOV RAX,qword ptr [RBP + -0x28] MOV ECX,dword ptr [RAX + 0x10] AND ECX,0x7fffffff OR ECX,0x80000000 MOV dword ptr [RAX + 0x10],ECX MOV RAX,qword ptr [RBP + -0x30] MOV ECX,dword ptr [RAX + 0x10] AND ECX,0x7fffffff OR ECX,0x0 MOV dword ptr [RAX + 0x10],ECX MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + -0x10] MOV RSI,qword ptr [RBP + -0x30] CALL 0x001369b0 JMP 0x00135602 LAB_00135525: JMP 0x001355fd LAB_0013552a: MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX + 0x10] SHR EAX,0x1f CMP EAX,0x0 JNZ 0x00135599 MOV RAX,qword ptr [RBP + -0x28] MOV ECX,dword ptr [RAX + 0x10] AND ECX,0x7fffffff OR ECX,0x80000000 MOV dword ptr [RAX + 0x10],ECX MOV RAX,qword ptr [RBP + -0x20] MOV ECX,dword ptr [RAX + 0x10] AND ECX,0x7fffffff OR ECX,0x80000000 MOV dword ptr [RAX + 0x10],ECX MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x10] ADD RAX,-0x10 MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RAX + 0x10] AND ECX,0x7fffffff OR ECX,0x0 MOV dword ptr [RAX + 0x10],ECX JMP 0x001355fb LAB_00135599: MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RCX] JNZ 0x001355bf MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + -0x8] MOV RSI,qword ptr [RBP + -0x28] CALL 0x001369b0 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x28],RAX LAB_001355bf: MOV RAX,qword ptr [RBP + -0x28] MOV ECX,dword ptr [RAX + 0x10] AND ECX,0x7fffffff OR ECX,0x80000000 MOV dword ptr [RAX + 0x10],ECX MOV RAX,qword ptr [RBP + -0x30] MOV ECX,dword ptr [RAX + 0x10] AND ECX,0x7fffffff OR ECX,0x0 MOV dword ptr [RAX + 0x10],ECX MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + -0x10] MOV RSI,qword ptr [RBP + -0x30] CALL 0x00136970 JMP 0x00135602 LAB_001355fb: JMP 0x001355fd LAB_001355fd: JMP 0x001353f7 LAB_00135602: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV ECX,dword ptr [RAX + 0x10] AND ECX,0x7fffffff OR ECX,0x80000000 MOV dword ptr [RAX + 0x10],ECX ADD RSP,0x40 POP RBP RET
void rb_insert(long *param_1,long param_2,long *param_3) { long *plVar1; long lVar2; bool bVar3; long *local_30; long *local_20; long local_18; *(uint *)(param_3 + 2) = *(uint *)(param_3 + 2) & 0x7fffffff; local_20 = param_3; local_18 = param_2; do { bVar3 = false; if (local_20 != (long *)*param_1) { local_30 = (long *)**(long **)(local_18 + -8); bVar3 = -1 < (int)local_30[2]; } if (!bVar3) goto LAB_00135602; plVar1 = (long *)**(long **)(local_18 + -0x10); if (local_30 == (long *)*plVar1) { lVar2 = plVar1[1]; if (*(int *)(lVar2 + 0x10) < 0) { if (local_20 == (long *)local_30[1]) { left_rotate(*(int8 *)(local_18 + -8),local_30); local_30 = local_20; } *(uint *)(local_30 + 2) = *(uint *)(local_30 + 2) & 0x7fffffff | 0x80000000; *(uint *)(plVar1 + 2) = *(uint *)(plVar1 + 2) & 0x7fffffff; right_rotate(*(int8 *)(local_18 + -0x10),plVar1); LAB_00135602: *(uint *)(*param_1 + 0x10) = *(uint *)(*param_1 + 0x10) & 0x7fffffff | 0x80000000; return; } *(uint *)(local_30 + 2) = *(uint *)(local_30 + 2) & 0x7fffffff | 0x80000000; *(uint *)(lVar2 + 0x10) = *(uint *)(lVar2 + 0x10) & 0x7fffffff | 0x80000000; *(uint *)(plVar1 + 2) = *(uint *)(plVar1 + 2) & 0x7fffffff; } else { lVar2 = *plVar1; if (*(int *)(lVar2 + 0x10) < 0) { if (local_20 == (long *)*local_30) { right_rotate(*(int8 *)(local_18 + -8),local_30); local_30 = local_20; } *(uint *)(local_30 + 2) = *(uint *)(local_30 + 2) & 0x7fffffff | 0x80000000; *(uint *)(plVar1 + 2) = *(uint *)(plVar1 + 2) & 0x7fffffff; left_rotate(*(int8 *)(local_18 + -0x10),plVar1); goto LAB_00135602; } *(uint *)(local_30 + 2) = *(uint *)(local_30 + 2) & 0x7fffffff | 0x80000000; *(uint *)(lVar2 + 0x10) = *(uint *)(lVar2 + 0x10) & 0x7fffffff | 0x80000000; *(uint *)(plVar1 + 2) = *(uint *)(plVar1 + 2) & 0x7fffffff; } local_18 = local_18 + -0x10; local_20 = plVar1; } while( true ); }
52,816
net_field_length_ll
eloqsql/libmariadb/libmariadb/mariadb_lib.c
static unsigned long long net_field_length_ll(uchar **packet) { reg1 uchar *pos= *packet; if (*pos < 251) { (*packet)++; return (unsigned long long) *pos; } if (*pos == 251) { (*packet)++; return (unsigned long long) NULL_LENGTH; } if (*pos == 252) { (*packet)+=3; return (unsigned long long) uint2korr(pos+1); } if (*pos == 253) { (*packet)+=4; return (unsigned long long) uint3korr(pos+1); } (*packet)+=9; /* Must be 254 when here */ #ifdef NO_CLIENT_LONGLONG return (unsigned long long) uint4korr(pos+1); #else return (unsigned long long) uint8korr(pos+1); #endif }
O3
c
net_field_length_ll: pushq %rbp movq %rsp, %rbp movq (%rdi), %rax movzbl (%rax), %ecx cmpl $0xfa, %ecx ja 0x1acb2 leaq 0x1(%rax), %rcx movq %rcx, (%rdi) movzbl (%rax), %eax popq %rbp retq cmpl $0xfd, %ecx je 0x1ace6 cmpl $0xfc, %ecx je 0x1acd9 cmpl $0xfb, %ecx jne 0x1acfd incq %rax movq %rax, (%rdi) movq $-0x1, %rax jmp 0x1acb0 leaq 0x3(%rax), %rcx movq %rcx, (%rdi) movzwl 0x1(%rax), %eax jmp 0x1acb0 leaq 0x4(%rax), %rcx movq %rcx, (%rdi) movzwl 0x1(%rax), %ecx movzbl 0x3(%rax), %eax shll $0x10, %eax orq %rcx, %rax jmp 0x1acb0 leaq 0x9(%rax), %rcx movq %rcx, (%rdi) movq 0x1(%rax), %rax jmp 0x1acb0
net_field_length_ll: push rbp mov rbp, rsp mov rax, [rdi] movzx ecx, byte ptr [rax] cmp ecx, 0FAh ja short loc_1ACB2 lea rcx, [rax+1] mov [rdi], rcx movzx eax, byte ptr [rax] loc_1ACB0: pop rbp retn loc_1ACB2: cmp ecx, 0FDh jz short loc_1ACE6 cmp ecx, 0FCh jz short loc_1ACD9 cmp ecx, 0FBh jnz short loc_1ACFD inc rax mov [rdi], rax mov rax, 0FFFFFFFFFFFFFFFFh jmp short loc_1ACB0 loc_1ACD9: lea rcx, [rax+3] mov [rdi], rcx movzx eax, word ptr [rax+1] jmp short loc_1ACB0 loc_1ACE6: lea rcx, [rax+4] mov [rdi], rcx movzx ecx, word ptr [rax+1] movzx eax, byte ptr [rax+3] shl eax, 10h or rax, rcx jmp short loc_1ACB0 loc_1ACFD: lea rcx, [rax+9] mov [rdi], rcx mov rax, [rax+1] jmp short loc_1ACB0
unsigned long long net_field_length_ll(unsigned __int8 **a1) { unsigned __int8 *v1; // rax unsigned int v2; // ecx v1 = *a1; v2 = **a1; if ( v2 > 0xFA ) { switch ( v2 ) { case 0xFDu: *a1 = v1 + 4; return *(unsigned __int16 *)(v1 + 1) | (unsigned long long)(v1[3] << 16); case 0xFCu: *a1 = v1 + 3; return *(unsigned __int16 *)(v1 + 1); case 0xFBu: *a1 = v1 + 1; return -1LL; default: *a1 = v1 + 9; return *(_QWORD *)(v1 + 1); } } else { *a1 = v1 + 1; return *v1; } }
net_field_length_ll: PUSH RBP MOV RBP,RSP MOV RAX,qword ptr [RDI] MOVZX ECX,byte ptr [RAX] CMP ECX,0xfa JA 0x0011acb2 LEA RCX,[RAX + 0x1] MOV qword ptr [RDI],RCX MOVZX EAX,byte ptr [RAX] LAB_0011acb0: POP RBP RET LAB_0011acb2: CMP ECX,0xfd JZ 0x0011ace6 CMP ECX,0xfc JZ 0x0011acd9 CMP ECX,0xfb JNZ 0x0011acfd INC RAX MOV qword ptr [RDI],RAX MOV RAX,-0x1 JMP 0x0011acb0 LAB_0011acd9: LEA RCX,[RAX + 0x3] MOV qword ptr [RDI],RCX MOVZX EAX,word ptr [RAX + 0x1] JMP 0x0011acb0 LAB_0011ace6: LEA RCX,[RAX + 0x4] MOV qword ptr [RDI],RCX MOVZX ECX,word ptr [RAX + 0x1] MOVZX EAX,byte ptr [RAX + 0x3] SHL EAX,0x10 OR RAX,RCX JMP 0x0011acb0 LAB_0011acfd: LEA RCX,[RAX + 0x9] MOV qword ptr [RDI],RCX MOV RAX,qword ptr [RAX + 0x1] JMP 0x0011acb0
ulong net_field_length_ll(long *param_1) { byte bVar1; byte *pbVar2; ulong uVar3; pbVar2 = (byte *)*param_1; bVar1 = *pbVar2; if (bVar1 < 0xfb) { *param_1 = (long)(pbVar2 + 1); uVar3 = (ulong)*pbVar2; } else if (bVar1 == 0xfd) { *param_1 = (long)(pbVar2 + 4); uVar3 = (ulong)*(uint3 *)(pbVar2 + 1); } else if (bVar1 == 0xfc) { *param_1 = (long)(pbVar2 + 3); uVar3 = (ulong)*(ushort *)(pbVar2 + 1); } else if (bVar1 == 0xfb) { *param_1 = (long)(pbVar2 + 1); uVar3 = 0xffffffffffffffff; } else { *param_1 = (long)(pbVar2 + 9); uVar3 = *(ulong *)(pbVar2 + 1); } return uVar3; }
52,817
minja::Context::make(minja::Value&&, std::shared_ptr<minja::Context> const&)
monkey531[P]llama/common/minja.hpp
inline std::shared_ptr<Context> Context::make(Value && values, const std::shared_ptr<Context> & parent) { return std::make_shared<Context>(values.is_null() ? Value::object() : std::move(values), parent); }
O2
cpp
minja::Context::make(minja::Value&&, std::shared_ptr<minja::Context> const&): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x68, %rsp movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx movq %rsi, %rdi callq 0x3d1f0 movl %eax, %ebp testb %al, %al je 0x58375 leaq 0x8(%rsp), %r15 movq %r15, %rdi callq 0x4968a leaq 0x18(%rsp), %rdi movq %r15, %rsi callq 0x4b9ba jmp 0x58382 leaq 0x18(%rsp), %rdi movq %r15, %rsi callq 0x3c416 leaq 0x18(%rsp), %rsi movq %rbx, %rdi movq %r14, %rdx callq 0x5862d leaq 0x18(%rsp), %rdi callq 0x3c57c testb %bpl, %bpl je 0x583ab leaq 0x10(%rsp), %rdi callq 0x302a2 movq %rbx, %rax addq $0x68, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq 0x18(%rsp), %rdi callq 0x3c57c testb %bpl, %bpl je 0x583d5 leaq 0x10(%rsp), %rdi callq 0x302a2 movq %rbx, %rdi callq 0x20ba0 nop
_ZN5minja7Context4makeEONS_5ValueERKSt10shared_ptrIS0_E: push rbp push r15 push r14 push rbx sub rsp, 68h mov r14, rdx mov r15, rsi mov rbx, rdi mov rdi, rsi; this call _ZNK5minja5Value7is_nullEv; minja::Value::is_null(void) mov ebp, eax test al, al jz short loc_58375 lea r15, [rsp+88h+var_80] mov rdi, r15 call _ZSt11make_sharedIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEEJEESt10shared_ptrIT_EDpOT0_; std::make_shared<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>>() lea rdi, [rsp+88h+var_70] mov rsi, r15 call _ZN5minja5ValueC2ERKSt10shared_ptrIN8nlohmann16json_abi_v3_11_311ordered_mapINS3_10basic_jsonIS4_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEES0_St4lessISG_ESaISt4pairIKSG_S0_EEEEE; minja::Value::Value(std::shared_ptr<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>> const&) jmp short loc_58382 loc_58375: lea rdi, [rsp+88h+var_70] mov rsi, r15 call _ZN5minja5ValueC2EOS0_; minja::Value::Value(minja::Value&&) loc_58382: lea rsi, [rsp+88h+var_70] mov rdi, rbx mov rdx, r14 call _ZSt11make_sharedIN5minja7ContextEJNS0_5ValueERKSt10shared_ptrIS1_EEES3_IT_EDpOT0_; std::make_shared<minja::Context,minja::Value,std::shared_ptr<minja::Context> const&>(minja::Value,std::shared_ptr<minja::Context> const&) lea rdi, [rsp+88h+var_70]; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() test bpl, bpl jz short loc_583AB lea rdi, [rsp+88h+var_78] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() loc_583AB: mov rax, rbx add rsp, 68h pop rbx pop r14 pop r15 pop rbp retn mov rbx, rax lea rdi, [rsp+arg_10]; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() test bpl, bpl jz short loc_583D5 lea rdi, [rsp+arg_8] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() loc_583D5: mov rdi, rbx call __Unwind_Resume
long long minja::Context::make(long long a1, minja::Value *a2, long long a3) { bool is_null; // bp long long v6; // [rsp+8h] [rbp-80h] BYREF long long v7; // [rsp+10h] [rbp-78h] BYREF _BYTE v8[112]; // [rsp+18h] [rbp-70h] BYREF is_null = minja::Value::is_null(a2); if ( is_null ) { std::make_shared<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>>((long long)&v6); minja::Value::Value((long long)v8, &v6); } else { minja::Value::Value((long long)v8, (long long)a2); } std::make_shared<minja::Context,minja::Value,std::shared_ptr<minja::Context> const&>(a1, v8, a3); minja::Value::~Value((minja::Value *)v8); if ( is_null ) std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v7); return a1; }
make: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x68 MOV R14,RDX MOV R15,RSI MOV RBX,RDI MOV RDI,RSI CALL 0x0013d1f0 MOV EBP,EAX TEST AL,AL JZ 0x00158375 LEA R15,[RSP + 0x8] MOV RDI,R15 CALL 0x0014968a LEA RDI,[RSP + 0x18] MOV RSI,R15 CALL 0x0014b9ba JMP 0x00158382 LAB_00158375: LEA RDI,[RSP + 0x18] MOV RSI,R15 CALL 0x0013c416 LAB_00158382: LEA RSI,[RSP + 0x18] MOV RDI,RBX MOV RDX,R14 CALL 0x0015862d LAB_00158392: LEA RDI,[RSP + 0x18] CALL 0x0013c57c TEST BPL,BPL JZ 0x001583ab LEA RDI,[RSP + 0x10] CALL 0x001302a2 LAB_001583ab: MOV RAX,RBX ADD RSP,0x68 POP RBX POP R14 POP R15 POP RBP RET
/* minja::Context::make(minja::Value&&, std::shared_ptr<minja::Context> const&) */ Value * minja::Context::make(Value *param_1,shared_ptr *param_2) { char cVar1; shared_ptr local_80 [8]; __shared_count<(__gnu_cxx::_Lock_policy)2> local_78 [8]; Value local_70 [80]; cVar1 = Value::is_null((Value *)param_2); if (cVar1 == '\0') { Value::Value(local_70,(Value *)param_2); } else { std:: make_shared<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>> (); Value::Value(local_70,local_80); } /* try { // try from 00158382 to 00158391 has its CatchHandler @ 001583b9 */ std::make_shared<minja::Context,minja::Value,std::shared_ptr<minja::Context>const&> (param_1,(shared_ptr *)local_70); Value::~Value(local_70); if (cVar1 != '\0') { std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_78); } return param_1; }
52,818
nglog::LogMessage::Flush()
ng-log[P]ng-log/src/logging.cc
void LogMessage::Flush() { if (data_->has_been_flushed_ || data_->severity_ < FLAGS_minloglevel) { return; } data_->num_chars_to_log_ = data_->stream_.pcount(); data_->num_chars_to_syslog_ = data_->num_chars_to_log_ - data_->num_prefix_chars_; // Do we need to add a \n to the end of this message? bool append_newline = (data_->message_text_[data_->num_chars_to_log_ - 1] != '\n'); char original_final_char = '\0'; // If we do need to add a \n, we'll do it by violating the memory of the // ostrstream buffer. This is quick, and we'll make sure to undo our // modification before anything else is done with the ostrstream. It // would be preferable not to do things this way, but it seems to be // the best way to deal with this. if (append_newline) { original_final_char = data_->message_text_[data_->num_chars_to_log_]; data_->message_text_[data_->num_chars_to_log_++] = '\n'; } data_->message_text_[data_->num_chars_to_log_] = '\0'; // Prevent any subtle race conditions by wrapping a mutex lock around // the actual logging action per se. { std::lock_guard<std::mutex> l{log_mutex}; (this->*(data_->send_method_))(); ++num_messages_[static_cast<int>(data_->severity_)]; } LogDestination::WaitForSinks(data_); if (append_newline) { // Fix the ostrstream back how it was before we screwed with it. // It's 99.44% certain that we don't need to worry about doing this. data_->message_text_[data_->num_chars_to_log_ - 1] = original_final_char; } // If errno was already set before we enter the logging call, we'll // set it back to that value when we return from the logging call. // It happens often that we log an error message after a syscall // failure, which can potentially set the errno to some other // values. We would like to preserve the original errno. if (data_->preserved_errno_ != 0) { errno = data_->preserved_errno_; } // Note that this message is now safely logged. If we're asked to flush // again, as a result of destruction, say, we'll do nothing on future calls. data_->has_been_flushed_ = true; }
O0
cpp
nglog::LogMessage::Flush(): pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x30(%rbp) movq 0x8(%rax), %rax testb $0x1, 0x76e0(%rax) jne 0x1141a movq -0x30(%rbp), %rax movq 0x8(%rax), %rax movl 0x7698(%rax), %eax leaq 0x61952(%rip), %rcx # 0x72d68 cmpl (%rcx), %eax jge 0x1141f jmp 0x115fa movq -0x30(%rbp), %rax movq 0x8(%rax), %rdi addq $0x7538, %rdi # imm = 0x7538 callq 0x19b20 movq -0x30(%rbp), %rcx movq %rax, %rdx movq 0x8(%rcx), %rax movq %rdx, 0x76c0(%rax) movq 0x8(%rcx), %rax movq 0x76c0(%rax), %rdx movq 0x8(%rcx), %rax subq 0x76b8(%rax), %rdx movq 0x8(%rcx), %rax movq %rdx, 0x76c8(%rax) movq 0x8(%rcx), %rax movq 0x8(%rcx), %rcx movq 0x76c0(%rcx), %rcx subq $0x1, %rcx movsbl 0x4(%rax,%rcx), %eax cmpl $0xa, %eax setne %al andb $0x1, %al movb %al, -0x9(%rbp) movb $0x0, -0xa(%rbp) testb $0x1, -0x9(%rbp) je 0x114cf movq -0x30(%rbp), %rcx movq 0x8(%rcx), %rax movq 0x8(%rcx), %rdx movq 0x76c0(%rdx), %rdx movb 0x4(%rax,%rdx), %al movb %al, -0xa(%rbp) movq 0x8(%rcx), %rax movq 0x8(%rcx), %rdx movq 0x76c0(%rdx), %rcx movq %rcx, %rsi addq $0x1, %rsi movq %rsi, 0x76c0(%rdx) movb $0xa, 0x4(%rax,%rcx) movq -0x30(%rbp), %rax movq 0x8(%rax), %rax movq 0x76c0(%rax), %rcx movb $0x0, 0x4(%rax,%rcx) leaq 0x70afe(%rip), %rsi # 0x81fe8 leaq -0x18(%rbp), %rdi callq 0x198f0 movq -0x30(%rbp), %rcx movq 0x8(%rcx), %rdx movq 0x76a0(%rdx), %rax movq %rax, -0x40(%rbp) movq 0x76a8(%rdx), %rdx addq %rdx, %rcx movq %rcx, -0x38(%rbp) andq $0x1, %rax cmpq $0x0, %rax je 0x11537 movq -0x40(%rbp), %rcx movq -0x38(%rbp), %rax movq (%rax), %rax subq $0x1, %rcx movq (%rax,%rcx), %rax movq %rax, -0x48(%rbp) jmp 0x1153f movq -0x40(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x38(%rbp), %rdi movq -0x48(%rbp), %rax callq *%rax jmp 0x1154b movq -0x30(%rbp), %rax movq 0x8(%rax), %rax movslq 0x7698(%rax), %rcx leaq 0x6190f(%rip), %rax # 0x72e70 movq (%rax,%rcx,8), %rdx addq $0x1, %rdx leaq 0x61900(%rip), %rax # 0x72e70 movq %rdx, (%rax,%rcx,8) leaq -0x18(%rbp), %rdi callq 0x19920 movq -0x30(%rbp), %rax movq 0x8(%rax), %rdi callq 0x19b70 testb $0x1, -0x9(%rbp) je 0x115c7 movq -0x30(%rbp), %rcx movb -0xa(%rbp), %dl movq 0x8(%rcx), %rax movq 0x8(%rcx), %rcx movq 0x76c0(%rcx), %rcx subq $0x1, %rcx movb %dl, 0x4(%rax,%rcx) jmp 0x115c7 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x20(%rbp) movl %eax, -0x24(%rbp) leaq -0x18(%rbp), %rdi callq 0x19920 jmp 0x11600 movq -0x30(%rbp), %rax movq 0x8(%rax), %rax cmpl $0x0, (%rax) je 0x115eb movq -0x30(%rbp), %rax movq 0x8(%rax), %rax movl (%rax), %eax movl %eax, -0x4c(%rbp) callq 0x9070 movl -0x4c(%rbp), %ecx movl %ecx, (%rax) movq -0x30(%rbp), %rax movq 0x8(%rax), %rax movb $0x1, 0x76e0(%rax) addq $0x50, %rsp popq %rbp retq movq -0x20(%rbp), %rdi callq 0x9cc0 nopl (%rax)
_ZN5nglog10LogMessage5FlushEv: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov [rbp+var_30], rax mov rax, [rax+8] test byte ptr [rax+76E0h], 1 jnz short loc_1141A mov rax, [rbp+var_30] mov rax, [rax+8] mov eax, [rax+7698h] lea rcx, _ZN3fLI17FLAGS_minloglevelE; fLI::FLAGS_minloglevel cmp eax, [rcx] jge short loc_1141F loc_1141A: jmp loc_115FA loc_1141F: mov rax, [rbp+var_30] mov rdi, [rax+8] add rdi, 7538h; this call _ZNK5nglog10LogMessage9LogStream6pcountEv; nglog::LogMessage::LogStream::pcount(void) mov rcx, [rbp+var_30] mov rdx, rax mov rax, [rcx+8] mov [rax+76C0h], rdx mov rax, [rcx+8] mov rdx, [rax+76C0h] mov rax, [rcx+8] sub rdx, [rax+76B8h] mov rax, [rcx+8] mov [rax+76C8h], rdx mov rax, [rcx+8] mov rcx, [rcx+8] mov rcx, [rcx+76C0h] sub rcx, 1 movsx eax, byte ptr [rax+rcx+4] cmp eax, 0Ah setnz al and al, 1 mov [rbp+var_9], al mov [rbp+var_A], 0 test [rbp+var_9], 1 jz short loc_114CF mov rcx, [rbp+var_30] mov rax, [rcx+8] mov rdx, [rcx+8] mov rdx, [rdx+76C0h] mov al, [rax+rdx+4] mov [rbp+var_A], al mov rax, [rcx+8] mov rdx, [rcx+8] mov rcx, [rdx+76C0h] mov rsi, rcx add rsi, 1 mov [rdx+76C0h], rsi mov byte ptr [rax+rcx+4], 0Ah loc_114CF: mov rax, [rbp+var_30] mov rax, [rax+8] mov rcx, [rax+76C0h] mov byte ptr [rax+rcx+4], 0 lea rsi, _ZN5nglogL9log_mutexE; nglog::internal::LogMessageData * lea rdi, [rbp+var_18] call _ZNSt10lock_guardISt5mutexEC2ERS0_; std::lock_guard<std::mutex>::lock_guard(std::mutex&) mov rcx, [rbp+var_30] mov rdx, [rcx+8] mov rax, [rdx+76A0h] mov [rbp+var_40], rax mov rdx, [rdx+76A8h] add rcx, rdx mov [rbp+var_38], rcx and rax, 1 cmp rax, 0 jz short loc_11537 mov rcx, [rbp+var_40] mov rax, [rbp+var_38] mov rax, [rax] sub rcx, 1 mov rax, [rax+rcx] mov [rbp+var_48], rax jmp short loc_1153F loc_11537: mov rax, [rbp+var_40] mov [rbp+var_48], rax loc_1153F: mov rdi, [rbp+var_38] mov rax, [rbp+var_48] call rax jmp short $+2 loc_1154B: mov rax, [rbp+var_30] mov rax, [rax+8] movsxd rcx, dword ptr [rax+7698h] lea rax, _ZN5nglog10LogMessage13num_messages_E; nglog::LogMessage::num_messages_ mov rdx, [rax+rcx*8] add rdx, 1 lea rax, _ZN5nglog10LogMessage13num_messages_E; nglog::LogMessage::num_messages_ mov [rax+rcx*8], rdx lea rdi, [rbp+var_18] call _ZNSt10lock_guardISt5mutexED2Ev; std::lock_guard<std::mutex>::~lock_guard() mov rax, [rbp+var_30] mov rdi, [rax+8]; this call _ZN5nglog14LogDestination12WaitForSinksEPNS_8internal14LogMessageDataE; nglog::LogDestination::WaitForSinks(nglog::internal::LogMessageData *) test [rbp+var_9], 1 jz short loc_115C7 mov rcx, [rbp+var_30] mov dl, [rbp+var_A] mov rax, [rcx+8] mov rcx, [rcx+8] mov rcx, [rcx+76C0h] sub rcx, 1 mov [rax+rcx+4], dl jmp short loc_115C7 mov rcx, rax mov eax, edx mov [rbp+var_20], rcx mov [rbp+var_24], eax lea rdi, [rbp+var_18] call _ZNSt10lock_guardISt5mutexED2Ev; std::lock_guard<std::mutex>::~lock_guard() jmp short loc_11600 loc_115C7: mov rax, [rbp+var_30] mov rax, [rax+8] cmp dword ptr [rax], 0 jz short loc_115EB mov rax, [rbp+var_30] mov rax, [rax+8] mov eax, [rax] mov [rbp+var_4C], eax call ___errno_location mov ecx, [rbp+var_4C] mov [rax], ecx loc_115EB: mov rax, [rbp+var_30] mov rax, [rax+8] mov byte ptr [rax+76E0h], 1 loc_115FA: add rsp, 50h pop rbp retn loc_11600: mov rdi, [rbp+var_20] call __Unwind_Resume
nglog::LogDestination * nglog::LogMessage::Flush(nglog::LogDestination **this) { nglog::LogDestination *result; // rax nglog::LogDestination *v2; // rdx long long v3; // rcx nglog::LogDestination *v4; // rdx long long v5; // rcx int v6; // [rsp+4h] [rbp-4Ch] void ( *v7)(_QWORD); // [rsp+10h] [rbp-40h] _QWORD *v8; // [rsp+18h] [rbp-38h] _BYTE v9[14]; // [rsp+38h] [rbp-18h] BYREF char v10; // [rsp+46h] [rbp-Ah] bool v11; // [rsp+47h] [rbp-9h] nglog::LogMessage *v12; // [rsp+48h] [rbp-8h] v12 = (nglog::LogMessage *)this; result = this[1]; if ( (*((_BYTE *)result + 30432) & 1) == 0 ) { result = (nglog::LogDestination *)*((unsigned int *)this[1] + 7590); if ( (int)result >= fLI::FLAGS_minloglevel ) { *((_QWORD *)this[1] + 3800) = nglog::LogMessage::LogStream::pcount((nglog::LogDestination *)((char *)this[1] + 30008)); *((_QWORD *)this[1] + 3801) = *((_QWORD *)this[1] + 3800) - *((_QWORD *)this[1] + 3799); v11 = *((_BYTE *)this[1] + *((_QWORD *)this[1] + 3800) + 3) != 10; v10 = 0; if ( v11 ) { v10 = *((_BYTE *)this[1] + *((_QWORD *)this[1] + 3800) + 4); v2 = this[1]; v3 = *((_QWORD *)v2 + 3800); *((_QWORD *)v2 + 3800) = v3 + 1; *((_BYTE *)v2 + v3 + 4) = 10; } *((_BYTE *)this[1] + *((_QWORD *)this[1] + 3800) + 4) = 0; std::lock_guard<std::mutex>::lock_guard(v9, &nglog::log_mutex); v4 = this[1]; v7 = (void ( *)(_QWORD))*((_QWORD *)v4 + 3796); v8 = (nglog::LogDestination **)((char *)this + *((_QWORD *)v4 + 3797)); if ( ((unsigned __int8)v7 & 1) != 0 ) (*(void ( **)(_QWORD *))((char *)v7 + *v8 - 1))(v8); else v7(v8); v5 = *((int *)this[1] + 7590); ++nglog::LogMessage::num_messages_[v5]; std::lock_guard<std::mutex>::~lock_guard(v9); nglog::LogDestination::WaitForSinks(this[1], (nglog::internal::LogMessageData *)&nglog::log_mutex); if ( v11 ) *((_BYTE *)this[1] + *((_QWORD *)this[1] + 3800) + 3) = v10; if ( *(_DWORD *)this[1] ) { v6 = *(_DWORD *)this[1]; *(_DWORD *)__errno_location() = v6; } result = this[1]; *((_BYTE *)result + 30432) = 1; } } return result; }
Flush: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RAX + 0x8] TEST byte ptr [RAX + 0x76e0],0x1 JNZ 0x0011141a MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x8] MOV EAX,dword ptr [RAX + 0x7698] LEA RCX,[0x172d68] CMP EAX,dword ptr [RCX] JGE 0x0011141f LAB_0011141a: JMP 0x001115fa LAB_0011141f: MOV RAX,qword ptr [RBP + -0x30] MOV RDI,qword ptr [RAX + 0x8] ADD RDI,0x7538 CALL 0x00119b20 MOV RCX,qword ptr [RBP + -0x30] MOV RDX,RAX MOV RAX,qword ptr [RCX + 0x8] MOV qword ptr [RAX + 0x76c0],RDX MOV RAX,qword ptr [RCX + 0x8] MOV RDX,qword ptr [RAX + 0x76c0] MOV RAX,qword ptr [RCX + 0x8] SUB RDX,qword ptr [RAX + 0x76b8] MOV RAX,qword ptr [RCX + 0x8] MOV qword ptr [RAX + 0x76c8],RDX MOV RAX,qword ptr [RCX + 0x8] MOV RCX,qword ptr [RCX + 0x8] MOV RCX,qword ptr [RCX + 0x76c0] SUB RCX,0x1 MOVSX EAX,byte ptr [RAX + RCX*0x1 + 0x4] CMP EAX,0xa SETNZ AL AND AL,0x1 MOV byte ptr [RBP + -0x9],AL MOV byte ptr [RBP + -0xa],0x0 TEST byte ptr [RBP + -0x9],0x1 JZ 0x001114cf MOV RCX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RCX + 0x8] MOV RDX,qword ptr [RCX + 0x8] MOV RDX,qword ptr [RDX + 0x76c0] MOV AL,byte ptr [RAX + RDX*0x1 + 0x4] MOV byte ptr [RBP + -0xa],AL MOV RAX,qword ptr [RCX + 0x8] MOV RDX,qword ptr [RCX + 0x8] MOV RCX,qword ptr [RDX + 0x76c0] MOV RSI,RCX ADD RSI,0x1 MOV qword ptr [RDX + 0x76c0],RSI MOV byte ptr [RAX + RCX*0x1 + 0x4],0xa LAB_001114cf: MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x8] MOV RCX,qword ptr [RAX + 0x76c0] MOV byte ptr [RAX + RCX*0x1 + 0x4],0x0 LEA RSI,[0x181fe8] LEA RDI,[RBP + -0x18] CALL 0x001198f0 MOV RCX,qword ptr [RBP + -0x30] MOV RDX,qword ptr [RCX + 0x8] MOV RAX,qword ptr [RDX + 0x76a0] MOV qword ptr [RBP + -0x40],RAX MOV RDX,qword ptr [RDX + 0x76a8] ADD RCX,RDX MOV qword ptr [RBP + -0x38],RCX AND RAX,0x1 CMP RAX,0x0 JZ 0x00111537 MOV RCX,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX] SUB RCX,0x1 MOV RAX,qword ptr [RAX + RCX*0x1] MOV qword ptr [RBP + -0x48],RAX JMP 0x0011153f LAB_00111537: MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x48],RAX LAB_0011153f: MOV RDI,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x48] CALL RAX LAB_00111549: JMP 0x0011154b LAB_0011154b: MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x8] MOVSXD RCX,dword ptr [RAX + 0x7698] LEA RAX,[0x172e70] MOV RDX,qword ptr [RAX + RCX*0x8] ADD RDX,0x1 LEA RAX,[0x172e70] MOV qword ptr [RAX + RCX*0x8],RDX LEA RDI,[RBP + -0x18] CALL 0x00119920 MOV RAX,qword ptr [RBP + -0x30] MOV RDI,qword ptr [RAX + 0x8] CALL 0x00119b70 TEST byte ptr [RBP + -0x9],0x1 JZ 0x001115c7 MOV RCX,qword ptr [RBP + -0x30] MOV DL,byte ptr [RBP + -0xa] MOV RAX,qword ptr [RCX + 0x8] MOV RCX,qword ptr [RCX + 0x8] MOV RCX,qword ptr [RCX + 0x76c0] SUB RCX,0x1 MOV byte ptr [RAX + RCX*0x1 + 0x4],DL JMP 0x001115c7 LAB_001115c7: MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x8] CMP dword ptr [RAX],0x0 JZ 0x001115eb MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x8] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x4c],EAX CALL 0x00109070 MOV ECX,dword ptr [RBP + -0x4c] MOV dword ptr [RAX],ECX LAB_001115eb: MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x8] MOV byte ptr [RAX + 0x76e0],0x1 LAB_001115fa: ADD RSP,0x50 POP RBP RET
/* nglog::LogMessage::Flush() */ void __thiscall nglog::LogMessage::Flush(LogMessage *this) { int iVar1; long lVar2; long lVar3; int8 uVar4; int *piVar5; code *local_50; lock_guard<std::mutex> local_20 [14]; int1 local_12; byte local_11; LogMessage *local_10; if (((*(byte *)(*(long *)(this + 8) + 0x76e0) & 1) == 0) && (fLI::FLAGS_minloglevel <= *(int *)(*(long *)(this + 8) + 0x7698))) { local_10 = this; uVar4 = LogStream::pcount(); *(int8 *)(*(long *)(this + 8) + 0x76c0) = uVar4; *(long *)(*(long *)(this + 8) + 0x76c8) = *(long *)(*(long *)(this + 8) + 0x76c0) - *(long *)(*(long *)(this + 8) + 0x76b8); local_11 = *(char *)(*(long *)(this + 8) + *(long *)(*(long *)(this + 8) + 0x76c0) + 3) != '\n'; local_12 = 0; if ((bool)local_11) { local_12 = *(int1 *)(*(long *)(this + 8) + 4 + *(long *)(*(long *)(this + 8) + 0x76c0)); lVar2 = *(long *)(this + 8); lVar3 = *(long *)(*(long *)(this + 8) + 0x76c0); *(long *)(*(long *)(this + 8) + 0x76c0) = lVar3 + 1; *(int1 *)(lVar2 + 4 + lVar3) = 10; } *(int1 *)(*(long *)(this + 8) + 4 + *(long *)(*(long *)(this + 8) + 0x76c0)) = 0; std::lock_guard<std::mutex>::lock_guard(local_20,(mutex *)log_mutex); local_50 = *(code **)(*(long *)(this + 8) + 0x76a0); if (((ulong)local_50 & 1) != 0) { local_50 = *(code **)(local_50 + *(long *)(this + *(long *)(*(long *)(this + 8) + 0x76a8)) + -1); } /* try { // try from 0011153f to 00111548 has its CatchHandler @ 001115b0 */ (*local_50)(this + *(long *)(*(long *)(this + 8) + 0x76a8)); *(long *)(num_messages_ + (long)*(int *)(*(long *)(this + 8) + 0x7698) * 8) = *(long *)(num_messages_ + (long)*(int *)(*(long *)(this + 8) + 0x7698) * 8) + 1; std::lock_guard<std::mutex>::~lock_guard(local_20); LogDestination::WaitForSinks(*(LogMessageData **)(this + 8)); if ((local_11 & 1) != 0) { *(int1 *)(*(long *)(this + 8) + *(long *)(*(long *)(this + 8) + 0x76c0) + 3) = local_12; } if (**(int **)(this + 8) != 0) { iVar1 = **(int **)(this + 8); piVar5 = __errno_location(); *piVar5 = iVar1; } *(int1 *)(*(long *)(this + 8) + 0x76e0) = 1; } return; }
52,819
nglog::LogMessage::Flush()
ng-log[P]ng-log/src/logging.cc
void LogMessage::Flush() { if (data_->has_been_flushed_ || data_->severity_ < FLAGS_minloglevel) { return; } data_->num_chars_to_log_ = data_->stream_.pcount(); data_->num_chars_to_syslog_ = data_->num_chars_to_log_ - data_->num_prefix_chars_; // Do we need to add a \n to the end of this message? bool append_newline = (data_->message_text_[data_->num_chars_to_log_ - 1] != '\n'); char original_final_char = '\0'; // If we do need to add a \n, we'll do it by violating the memory of the // ostrstream buffer. This is quick, and we'll make sure to undo our // modification before anything else is done with the ostrstream. It // would be preferable not to do things this way, but it seems to be // the best way to deal with this. if (append_newline) { original_final_char = data_->message_text_[data_->num_chars_to_log_]; data_->message_text_[data_->num_chars_to_log_++] = '\n'; } data_->message_text_[data_->num_chars_to_log_] = '\0'; // Prevent any subtle race conditions by wrapping a mutex lock around // the actual logging action per se. { std::lock_guard<std::mutex> l{log_mutex}; (this->*(data_->send_method_))(); ++num_messages_[static_cast<int>(data_->severity_)]; } LogDestination::WaitForSinks(data_); if (append_newline) { // Fix the ostrstream back how it was before we screwed with it. // It's 99.44% certain that we don't need to worry about doing this. data_->message_text_[data_->num_chars_to_log_ - 1] = original_final_char; } // If errno was already set before we enter the logging call, we'll // set it back to that value when we return from the logging call. // It happens often that we log an error message after a syscall // failure, which can potentially set the errno to some other // values. We would like to preserve the original errno. if (data_->preserved_errno_ != 0) { errno = data_->preserved_errno_; } // Note that this message is now safely logged. If we're asked to flush // again, as a result of destruction, say, we'll do nothing on future calls. data_->has_been_flushed_ = true; }
O3
cpp
nglog::LogMessage::Flush(): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq 0x8(%rdi), %rax cmpb $0x0, 0x76e0(%rax) jne 0xaeae movl 0x7698(%rax), %ecx leaq 0x24e20(%rip), %rdx # 0x2fb58 cmpl (%rdx), %ecx jl 0xaeae movq %rdi, %rbx movq 0x7568(%rax), %rcx subq 0x7560(%rax), %rcx movq %rcx, 0x76c0(%rax) movq %rcx, %rdx subq 0x76b8(%rax), %rdx movq %rdx, 0x76c8(%rax) movb 0x3(%rcx,%rax), %r14b cmpb $0xa, %r14b jne 0xad78 xorl %ebp, %ebp jmp 0xad98 movb 0x4(%rax,%rcx), %bpl leaq 0x1(%rcx), %rdx movq %rdx, 0x76c0(%rax) movb $0xa, 0x4(%rax,%rcx) movq 0x8(%rbx), %rax movq 0x76c0(%rax), %rcx movb $0x0, 0x4(%rax,%rcx) leaq 0x34044(%rip), %rdi # 0x3ede8 callq 0x77e0 testl %eax, %eax jne 0xaeb7 movq 0x8(%rbx), %rcx movq 0x76a0(%rcx), %rax movq 0x76a8(%rcx), %rdi addq %rbx, %rdi testb $0x1, %al je 0xadd2 movq (%rdi), %rcx movq -0x1(%rcx,%rax), %rax callq *%rax movq 0x8(%rbx), %rax movslq 0x7698(%rax), %rax leaq 0x24e7a(%rip), %rcx # 0x2fc60 incq (%rcx,%rax,8) leaq 0x33ff7(%rip), %rdi # 0x3ede8 callq 0x73d0 movq 0x8(%rbx), %r15 leaq 0x24ee7(%rip), %rdi # 0x2fce8 callq 0x11be8 movq 0x24ed3(%rip), %rax # 0x2fce0 testq %rax, %rax je 0xae39 movq 0x8(%rax), %r12 subq (%rax), %r12 sarq $0x3, %r12 subq $0x1, %r12 jb 0xae39 movq 0x24eb6(%rip), %rax # 0x2fce0 movq (%rax), %rax movq (%rax,%r12,8), %rdi movq (%rdi), %rax callq *0x18(%rax) jmp 0xae1d movq 0x76a0(%r15), %rax cmpq 0x241b1(%rip), %rax # 0x2eff8 setne %cl cmpq 0x2415f(%rip), %rax # 0x2efb0 setne %al testb %al, %cl jne 0xae74 cmpq $0x0, 0x76a8(%r15) jne 0xae74 movq 0x76b0(%r15), %rdi testq %rdi, %rdi je 0xae74 movq (%rdi), %rax callq *0x18(%rax) leaq 0x24e6d(%rip), %rdi # 0x2fce8 callq 0x76d0 cmpb $0xa, %r14b je 0xae96 movq 0x8(%rbx), %rax movq 0x76c0(%rax), %rcx movb %bpl, 0x3(%rcx,%rax) movq 0x8(%rbx), %rbx movl (%rbx), %ebp testl %ebp, %ebp je 0xaea7 callq 0x7040 movl %ebp, (%rax) movb $0x1, 0x76e0(%rbx) popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movl %eax, %edi callq 0x7340 jmp 0xaed1 movq %rax, %rbx leaq 0x33f1e(%rip), %rdi # 0x3ede8 callq 0x73d0 jmp 0xaee0 movq %rax, %rbx leaq 0x24e0d(%rip), %rdi # 0x2fce8 callq 0x76d0 movq %rbx, %rdi callq 0x7930
_ZN5nglog10LogMessage5FlushEv: push rbp push r15 push r14 push r12 push rbx mov rax, [rdi+8] cmp byte ptr [rax+76E0h], 0 jnz loc_AEAE mov ecx, [rax+7698h] lea rdx, _ZN3fLI17FLAGS_minloglevelE; fLI::FLAGS_minloglevel cmp ecx, [rdx] jl loc_AEAE mov rbx, rdi mov rcx, [rax+7568h] sub rcx, [rax+7560h] mov [rax+76C0h], rcx mov rdx, rcx sub rdx, [rax+76B8h] mov [rax+76C8h], rdx mov r14b, [rcx+rax+3] cmp r14b, 0Ah jnz short loc_AD78 xor ebp, ebp jmp short loc_AD98 loc_AD78: mov bpl, [rax+rcx+4] lea rdx, [rcx+1] mov [rax+76C0h], rdx mov byte ptr [rax+rcx+4], 0Ah mov rax, [rbx+8] mov rcx, [rax+76C0h] loc_AD98: mov byte ptr [rax+rcx+4], 0 lea rdi, _ZN5nglogL9log_mutexE; nglog::log_mutex call _pthread_mutex_lock test eax, eax jnz loc_AEB7 mov rcx, [rbx+8] mov rax, [rcx+76A0h] mov rdi, [rcx+76A8h] add rdi, rbx test al, 1 jz short loc_ADD2 mov rcx, [rdi] mov rax, [rcx+rax-1] loc_ADD2: call rax mov rax, [rbx+8] movsxd rax, dword ptr [rax+7698h] lea rcx, _ZN5nglog10LogMessage13num_messages_E; nglog::LogMessage::num_messages_ inc qword ptr [rcx+rax*8] lea rdi, _ZN5nglogL9log_mutexE; nglog::log_mutex call _pthread_mutex_unlock mov r15, [rbx+8] lea rdi, _ZN5nglog14LogDestination11sink_mutex_E; this call _ZNSt22__shared_mutex_pthread11lock_sharedEv; std::__shared_mutex_pthread::lock_shared(void) mov rax, cs:_ZN5nglog14LogDestination6sinks_E; nglog::LogDestination::sinks_ test rax, rax jz short loc_AE39 mov r12, [rax+8] sub r12, [rax] sar r12, 3 loc_AE1D: sub r12, 1 jb short loc_AE39 mov rax, cs:_ZN5nglog14LogDestination6sinks_E; nglog::LogDestination::sinks_ mov rax, [rax] mov rdi, [rax+r12*8] mov rax, [rdi] call qword ptr [rax+18h] jmp short loc_AE1D loc_AE39: mov rax, [r15+76A0h] cmp rax, cs:_ZN5nglog10LogMessage10SendToSinkEv_ptr setnz cl cmp rax, cs:_ZN5nglog10LogMessage16SendToSinkAndLogEv_ptr setnz al test cl, al jnz short loc_AE74 cmp qword ptr [r15+76A8h], 0 jnz short loc_AE74 mov rdi, [r15+76B0h] test rdi, rdi jz short loc_AE74 mov rax, [rdi] call qword ptr [rax+18h] loc_AE74: lea rdi, _ZN5nglog14LogDestination11sink_mutex_E; nglog::LogDestination::sink_mutex_ call _pthread_rwlock_unlock cmp r14b, 0Ah jz short loc_AE96 mov rax, [rbx+8] mov rcx, [rax+76C0h] mov [rcx+rax+3], bpl loc_AE96: mov rbx, [rbx+8] mov ebp, [rbx] test ebp, ebp jz short loc_AEA7 call ___errno_location mov [rax], ebp loc_AEA7: mov byte ptr [rbx+76E0h], 1 loc_AEAE: pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_AEB7: mov edi, eax; int call __ZSt20__throw_system_errori; std::__throw_system_error(int) jmp short loc_AED1 mov rbx, rax lea rdi, _ZN5nglogL9log_mutexE; nglog::log_mutex call _pthread_mutex_unlock jmp short loc_AEE0 loc_AED1: mov rbx, rax lea rdi, _ZN5nglog14LogDestination11sink_mutex_E; nglog::LogDestination::sink_mutex_ call _pthread_rwlock_unlock loc_AEE0: mov rdi, rbx call __Unwind_Resume
long long nglog::LogMessage::Flush(nglog::LogMessage *this) { long long result; // rax long long v3; // rcx char v4; // r14 char v5; // bp int v6; // eax long long v7; // rcx void ( *v8)(_QWORD); // rax _QWORD *v9; // rdi long long v10; // rax _QWORD *v11; // r15 long long i; // r12 long long v14; // rdi int *v15; // rbx int v16; // ebp result = *((_QWORD *)this + 1); if ( !*(_BYTE *)(result + 30432) && *(_DWORD *)(result + 30360) >= fLI::FLAGS_minloglevel ) { v3 = *(_QWORD *)(result + 30056) - *(_QWORD *)(result + 30048); *(_QWORD *)(result + 30400) = v3; *(_QWORD *)(result + 30408) = v3 - *(_QWORD *)(result + 30392); v4 = *(_BYTE *)(v3 + result + 3); if ( v4 == 10 ) { v5 = 0; } else { v5 = *(_BYTE *)(result + v3 + 4); *(_QWORD *)(result + 30400) = v3 + 1; *(_BYTE *)(result + v3 + 4) = 10; result = *((_QWORD *)this + 1); v3 = *(_QWORD *)(result + 30400); } *(_BYTE *)(result + v3 + 4) = 0; v6 = pthread_mutex_lock(&nglog::log_mutex); if ( v6 ) std::__throw_system_error(v6); v7 = *((_QWORD *)this + 1); v8 = *(void ( **)(_QWORD))(v7 + 30368); v9 = (_QWORD *)((char *)this + *(_QWORD *)(v7 + 30376)); if ( ((unsigned __int8)v8 & 1) != 0 ) v8 = *(void ( **)(_QWORD))((char *)v8 + *v9 - 1); v8(v9); v10 = *(int *)(*((_QWORD *)this + 1) + 30360LL); ++nglog::LogMessage::num_messages_[v10]; pthread_mutex_unlock(&nglog::log_mutex); v11 = (_QWORD *)*((_QWORD *)this + 1); std::__shared_mutex_pthread::lock_shared((std::__shared_mutex_pthread *)&nglog::LogDestination::sink_mutex_); if ( nglog::LogDestination::sinks_ ) { for ( i = (long long)(*(_QWORD *)(nglog::LogDestination::sinks_ + 8) - *(_QWORD *)nglog::LogDestination::sinks_) >> 3; i-- != 0; (*(void ( **)(_QWORD))(**(_QWORD **)(*(_QWORD *)nglog::LogDestination::sinks_ + 8 * i) + 24LL))(*(_QWORD *)(*(_QWORD *)nglog::LogDestination::sinks_ + 8 * i)) ) { ; } } if ( (v11[3796] == (_QWORD)nglog::LogMessage::SendToSinkAndLog || v11[3796] == (_QWORD)nglog::LogMessage::SendToSink) && !v11[3797] ) { v14 = v11[3798]; if ( v14 ) (*(void ( **)(long long))(*(_QWORD *)v14 + 24LL))(v14); } result = pthread_rwlock_unlock(&nglog::LogDestination::sink_mutex_); if ( v4 != 10 ) { result = *((_QWORD *)this + 1); *(_BYTE *)(*(_QWORD *)(result + 30400) + result + 3) = v5; } v15 = (int *)*((_QWORD *)this + 1); v16 = *v15; if ( *v15 ) { result = __errno_location(); *(_DWORD *)result = v16; } *((_BYTE *)v15 + 30432) = 1; } return result; }
Flush: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV RAX,qword ptr [RDI + 0x8] CMP byte ptr [RAX + 0x76e0],0x0 JNZ 0x0010aeae MOV ECX,dword ptr [RAX + 0x7698] LEA RDX,[0x12fb58] CMP ECX,dword ptr [RDX] JL 0x0010aeae MOV RBX,RDI MOV RCX,qword ptr [RAX + 0x7568] SUB RCX,qword ptr [RAX + 0x7560] MOV qword ptr [RAX + 0x76c0],RCX MOV RDX,RCX SUB RDX,qword ptr [RAX + 0x76b8] MOV qword ptr [RAX + 0x76c8],RDX MOV R14B,byte ptr [RCX + RAX*0x1 + 0x3] CMP R14B,0xa JNZ 0x0010ad78 XOR EBP,EBP JMP 0x0010ad98 LAB_0010ad78: MOV BPL,byte ptr [RAX + RCX*0x1 + 0x4] LEA RDX,[RCX + 0x1] MOV qword ptr [RAX + 0x76c0],RDX MOV byte ptr [RAX + RCX*0x1 + 0x4],0xa MOV RAX,qword ptr [RBX + 0x8] MOV RCX,qword ptr [RAX + 0x76c0] LAB_0010ad98: MOV byte ptr [RAX + RCX*0x1 + 0x4],0x0 LEA RDI,[0x13ede8] CALL 0x001077e0 TEST EAX,EAX JNZ 0x0010aeb7 MOV RCX,qword ptr [RBX + 0x8] MOV RAX,qword ptr [RCX + 0x76a0] MOV RDI,qword ptr [RCX + 0x76a8] ADD RDI,RBX TEST AL,0x1 JZ 0x0010add2 MOV RCX,qword ptr [RDI] MOV RAX,qword ptr [RCX + RAX*0x1 + -0x1] LAB_0010add2: CALL RAX LAB_0010add4: MOV RAX,qword ptr [RBX + 0x8] MOVSXD RAX,dword ptr [RAX + 0x7698] LEA RCX,[0x12fc60] INC qword ptr [RCX + RAX*0x8] LEA RDI,[0x13ede8] CALL 0x001073d0 MOV R15,qword ptr [RBX + 0x8] LEA RDI,[0x12fce8] CALL 0x00111be8 MOV RAX,qword ptr [0x0012fce0] TEST RAX,RAX JZ 0x0010ae39 MOV R12,qword ptr [RAX + 0x8] SUB R12,qword ptr [RAX] SAR R12,0x3 LAB_0010ae1d: SUB R12,0x1 JC 0x0010ae39 MOV RAX,qword ptr [0x0012fce0] MOV RAX,qword ptr [RAX] MOV RDI,qword ptr [RAX + R12*0x8] MOV RAX,qword ptr [RDI] LAB_0010ae34: CALL qword ptr [RAX + 0x18] JMP 0x0010ae1d LAB_0010ae39: MOV RAX,qword ptr [R15 + 0x76a0] CMP RAX,qword ptr [0x0012eff8] SETNZ CL CMP RAX,qword ptr [0x0012efb0] SETNZ AL TEST CL,AL JNZ 0x0010ae74 CMP qword ptr [R15 + 0x76a8],0x0 JNZ 0x0010ae74 MOV RDI,qword ptr [R15 + 0x76b0] TEST RDI,RDI JZ 0x0010ae74 MOV RAX,qword ptr [RDI] LAB_0010ae71: CALL qword ptr [RAX + 0x18] LAB_0010ae74: LEA RDI,[0x12fce8] CALL 0x001076d0 CMP R14B,0xa JZ 0x0010ae96 MOV RAX,qword ptr [RBX + 0x8] MOV RCX,qword ptr [RAX + 0x76c0] MOV byte ptr [RCX + RAX*0x1 + 0x3],BPL LAB_0010ae96: MOV RBX,qword ptr [RBX + 0x8] MOV EBP,dword ptr [RBX] TEST EBP,EBP JZ 0x0010aea7 CALL 0x00107040 MOV dword ptr [RAX],EBP LAB_0010aea7: MOV byte ptr [RBX + 0x76e0],0x1 LAB_0010aeae: POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_0010aeb7: MOV EDI,EAX CALL 0x00107340
/* nglog::LogMessage::Flush() */ void __thiscall nglog::LogMessage::Flush(LogMessage *this) { char cVar1; int *piVar2; int iVar3; long lVar4; code *pcVar5; int *piVar6; long lVar7; int1 uVar8; bool bVar9; lVar4 = *(long *)(this + 8); if ((*(char *)(lVar4 + 0x76e0) == '\0') && (fLI::FLAGS_minloglevel <= *(int *)(lVar4 + 0x7698))) { lVar7 = *(long *)(lVar4 + 0x7568) - *(long *)(lVar4 + 0x7560); *(long *)(lVar4 + 0x76c0) = lVar7; *(long *)(lVar4 + 0x76c8) = lVar7 - *(long *)(lVar4 + 0x76b8); cVar1 = *(char *)(lVar7 + 3 + lVar4); if (cVar1 == '\n') { uVar8 = 0; } else { uVar8 = *(int1 *)(lVar4 + 4 + lVar7); *(long *)(lVar4 + 0x76c0) = lVar7 + 1; *(int1 *)(lVar4 + 4 + lVar7) = 10; lVar4 = *(long *)(this + 8); lVar7 = *(long *)(lVar4 + 0x76c0); } *(int1 *)(lVar4 + 4 + lVar7) = 0; iVar3 = pthread_mutex_lock((pthread_mutex_t *)log_mutex); if (iVar3 != 0) { /* WARNING: Subroutine does not return */ std::__throw_system_error(iVar3); } pcVar5 = *(code **)(*(long *)(this + 8) + 0x76a0); if (((ulong)pcVar5 & 1) != 0) { pcVar5 = *(code **)(pcVar5 + *(long *)(this + *(long *)(*(long *)(this + 8) + 0x76a8)) + -1); } /* try { // try from 0010add2 to 0010add3 has its CatchHandler @ 0010aec0 */ (*pcVar5)(); *(long *)(num_messages_ + (long)*(int *)(*(long *)(this + 8) + 0x7698) * 8) = *(long *)(num_messages_ + (long)*(int *)(*(long *)(this + 8) + 0x7698) * 8) + 1; pthread_mutex_unlock((pthread_mutex_t *)log_mutex); lVar4 = *(long *)(this + 8); std::__shared_mutex_pthread::lock_shared((__shared_mutex_pthread *)LogDestination::sink_mutex_); if (LogDestination::sinks_ != (long *)0x0) { lVar7 = LogDestination::sinks_[1] - *LogDestination::sinks_ >> 3; while (bVar9 = lVar7 != 0, lVar7 = lVar7 + -1, bVar9) { /* try { // try from 0010ae34 to 0010ae36 has its CatchHandler @ 0010aed1 */ (**(code **)(**(long **)(*LogDestination::sinks_ + lVar7 * 8) + 0x18))(); } } if (((*(int **)(lVar4 + 0x76a0) == PTR_SendToSink_0012eff8 || *(int **)(lVar4 + 0x76a0) == PTR_SendToSinkAndLog_0012efb0) && (*(long *)(lVar4 + 0x76a8) == 0)) && (*(long **)(lVar4 + 0x76b0) != (long *)0x0)) { /* try { // try from 0010ae71 to 0010ae73 has its CatchHandler @ 0010aebe */ (**(code **)(**(long **)(lVar4 + 0x76b0) + 0x18))(); } pthread_rwlock_unlock((pthread_rwlock_t *)LogDestination::sink_mutex_); if (cVar1 != '\n') { *(int1 *)(*(long *)(*(long *)(this + 8) + 0x76c0) + 3 + *(long *)(this + 8)) = uVar8; } piVar2 = *(int **)(this + 8); iVar3 = *piVar2; if (iVar3 != 0) { piVar6 = __errno_location(); *piVar6 = iVar3; } *(int1 *)(piVar2 + 0x1db8) = 1; } return; }
52,820
testing::internal::MutexBase::Lock()
AlayaLite/build_O0/_deps/googletest-src/googletest/include/gtest/internal/gtest-port.h
void Lock() { GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_lock(&mutex_)); owner_ = pthread_self(); has_owner_ = true; }
O0
c
testing::internal::MutexBase::Lock(): subq $0x48, %rsp movq %rdi, 0x40(%rsp) movq 0x40(%rsp), %rdi movq %rdi, 0x20(%rsp) callq 0x14aa0 movl %eax, 0x3c(%rsp) cmpl $0x0, 0x3c(%rsp) je 0xf2885 leaq 0x21f3d(%rip), %rdx # 0x11473b leaq 0x38(%rsp), %rdi movq %rdi, 0x10(%rsp) movl $0x3, %esi movl $0x69a, %ecx # imm = 0x69A callq 0xb9070 movq 0x10(%rsp), %rdi callq 0x1ea10 movq %rax, %rdi leaq 0x21f88(%rip), %rsi # 0x1147b3 callq 0x146a0 movq %rax, 0x18(%rsp) jmp 0xf2837 movq 0x18(%rsp), %rdi leaq 0x21f8c(%rip), %rsi # 0x1147cf callq 0x146a0 movq %rax, 0x8(%rsp) jmp 0xf284f movq 0x8(%rsp), %rdi movl 0x3c(%rsp), %esi callq 0x14c50 jmp 0xf285f leaq 0x38(%rsp), %rdi callq 0xb91e0 jmp 0xf2885 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x30(%rsp) movl %eax, 0x2c(%rsp) leaq 0x38(%rsp), %rdi callq 0xb91e0 jmp 0xf289f callq 0x14600 movq %rax, %rcx movq 0x20(%rsp), %rax movq %rcx, 0x30(%rax) movb $0x1, 0x28(%rax) addq $0x48, %rsp retq movq 0x30(%rsp), %rdi callq 0x14c80 nopl (%rax)
_ZN7testing8internal9MutexBase4LockEv: sub rsp, 48h mov [rsp+48h+var_8], rdi; __int64 mov rdi, [rsp+48h+var_8] mov qword ptr [rsp+48h+var_28], rdi; int call _pthread_mutex_lock mov [rsp+48h+var_C], eax cmp [rsp+48h+var_C], 0 jz loc_F2885 lea rdx, aWorkspaceLlm4b_12; "/workspace/llm4binary/github2025/AlayaL"... lea rdi, [rsp+48h+var_10]; int mov [rsp+48h+var_38], rdi; int mov esi, 3 mov ecx, 69Ah call _ZN7testing8internal8GTestLogC2ENS0_16GTestLogSeverityEPKci; testing::internal::GTestLog::GTestLog(testing::internal::GTestLogSeverity,char const*,int) mov rdi, [rsp+48h+var_38]; this call _ZN7testing8internal8GTestLog9GetStreamEv; testing::internal::GTestLog::GetStream(void) mov rdi, rax lea rsi, aPthreadMutexLo_0; "pthread_mutex_lock(&mutex_)" call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov [rsp+48h+var_30], rax jmp short $+2 loc_F2837: mov rdi, [rsp+48h+var_30] lea rsi, aFailedWithErro; "failed with error " call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov [rsp+48h+var_40], rax jmp short $+2 loc_F284F: mov rdi, [rsp+48h+var_40] mov esi, [rsp+48h+var_C] call __ZNSolsEi; std::ostream::operator<<(int) jmp short $+2 loc_F285F: lea rdi, [rsp+48h+var_10]; this call _ZN7testing8internal8GTestLogD2Ev; testing::internal::GTestLog::~GTestLog() jmp short loc_F2885 mov rcx, rax mov eax, edx mov [rsp+arg_28], rcx mov [rsp+arg_24], eax lea rdi, [rsp+arg_30]; this call _ZN7testing8internal8GTestLogD2Ev; testing::internal::GTestLog::~GTestLog() jmp short loc_F289F loc_F2885: call _pthread_self mov rcx, rax mov rax, qword ptr [rsp+48h+var_28] mov [rax+30h], rcx mov byte ptr [rax+28h], 1 add rsp, 48h retn loc_F289F: mov rdi, [rsp+arg_28] call __Unwind_Resume
testing::internal::MutexBase * testing::internal::MutexBase::Lock(testing::internal::MutexBase *this) { void *Stream; // rax long long v2; // rcx testing::internal::MutexBase *result; // rax long long v4; // [rsp+8h] [rbp-40h] long long v5; // [rsp+18h] [rbp-30h] int v6; // [rsp+38h] [rbp-10h] BYREF unsigned int v7; // [rsp+3Ch] [rbp-Ch] long long v8; // [rsp+40h] [rbp-8h] v8 = (long long)this; v7 = pthread_mutex_lock(this); if ( v7 ) { testing::internal::GTestLog::GTestLog( (testing::internal::GTestLog *)&v6, 3, (long long)"/workspace/llm4binary/github2025/AlayaLite/build_O0/_deps/googletest-src/googletest/include/gtest/internal/gtest-port.h", 1690); Stream = testing::internal::GTestLog::GetStream((testing::internal::GTestLog *)&v6); v5 = std::operator<<<std::char_traits<char>>(Stream, "pthread_mutex_lock(&mutex_)"); v4 = std::operator<<<std::char_traits<char>>(v5, "failed with error "); std::ostream::operator<<(v4, v7); testing::internal::GTestLog::~GTestLog((testing::internal::GTestLog *)&v6); } v2 = pthread_self(); result = this; *((_QWORD *)this + 6) = v2; *((_BYTE *)this + 40) = 1; return result; }
Lock: SUB RSP,0x48 MOV qword ptr [RSP + 0x40],RDI MOV RDI,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0x20],RDI CALL 0x00114aa0 MOV dword ptr [RSP + 0x3c],EAX CMP dword ptr [RSP + 0x3c],0x0 JZ 0x001f2885 LEA RDX,[0x21473b] LEA RDI,[RSP + 0x38] MOV qword ptr [RSP + 0x10],RDI MOV ESI,0x3 MOV ECX,0x69a CALL 0x001b9070 MOV RDI,qword ptr [RSP + 0x10] CALL 0x0011ea10 MOV RDI,RAX LAB_001f2824: LEA RSI,[0x2147b3] CALL 0x001146a0 MOV qword ptr [RSP + 0x18],RAX JMP 0x001f2837 LAB_001f2837: MOV RDI,qword ptr [RSP + 0x18] LEA RSI,[0x2147cf] CALL 0x001146a0 MOV qword ptr [RSP + 0x8],RAX JMP 0x001f284f LAB_001f284f: MOV RDI,qword ptr [RSP + 0x8] MOV ESI,dword ptr [RSP + 0x3c] CALL 0x00114c50 LAB_001f285d: JMP 0x001f285f LAB_001f285f: LEA RDI,[RSP + 0x38] CALL 0x001b91e0 JMP 0x001f2885 LAB_001f2885: CALL 0x00114600 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RAX + 0x30],RCX MOV byte ptr [RAX + 0x28],0x1 ADD RSP,0x48 RET
/* testing::internal::MutexBase::Lock() */ void __thiscall testing::internal::MutexBase::Lock(MutexBase *this) { ostream *poVar1; pthread_t pVar2; GTestLog local_10 [4]; int local_c; MutexBase *local_8; local_8 = this; local_c = pthread_mutex_lock((pthread_mutex_t *)this); if (local_c != 0) { GTestLog::GTestLog(local_10,3, "/workspace/llm4binary/github2025/AlayaLite/build_O0/_deps/googletest-src/googletest/include/gtest/internal/gtest-port.h" ,0x69a); poVar1 = (ostream *)GTestLog::GetStream(); /* try { // try from 001f2824 to 001f285c has its CatchHandler @ 001f286b */ poVar1 = std::operator<<(poVar1,"pthread_mutex_lock(&mutex_)"); poVar1 = std::operator<<(poVar1,"failed with error "); std::ostream::operator<<(poVar1,local_c); GTestLog::~GTestLog(local_10); } pVar2 = pthread_self(); *(pthread_t *)(this + 0x30) = pVar2; this[0x28] = (MutexBase)0x1; return; }
52,821
translog_recover_page_up_to_sector
eloqsql/storage/maria/ma_loghandler.c
static my_bool translog_recover_page_up_to_sector(uchar *page, uint16 offset) { uint16 chunk_offset= translog_get_first_chunk_offset(page), valid_chunk_end; DBUG_ENTER("translog_recover_page_up_to_sector"); DBUG_PRINT("enter", ("offset: %u first chunk: %u", (uint) offset, (uint) chunk_offset)); while (chunk_offset < offset && page[chunk_offset] != TRANSLOG_FILLER) { uint16 chunk_length; if ((chunk_length= translog_get_total_chunk_length(page, chunk_offset)) == 0) { DBUG_PRINT("error", ("cant get chunk length (offset %u)", (uint) chunk_offset)); DBUG_RETURN(1); } DBUG_PRINT("info", ("chunk: offset: %u length %u", (uint) chunk_offset, (uint) chunk_length)); if (((ulong) chunk_offset) + ((ulong) chunk_length) > TRANSLOG_PAGE_SIZE) { DBUG_PRINT("error", ("damaged chunk (offset %u) in trusted area", (uint) chunk_offset)); DBUG_RETURN(1); } chunk_offset+= chunk_length; } valid_chunk_end= chunk_offset; /* end of trusted area - sector parsing */ while (page[chunk_offset] != TRANSLOG_FILLER) { uint16 chunk_length; if ((chunk_length= translog_get_total_chunk_length(page, chunk_offset)) == 0) break; DBUG_PRINT("info", ("chunk: offset: %u length %u", (uint) chunk_offset, (uint) chunk_length)); if (((ulong) chunk_offset) + ((ulong) chunk_length) > (uint) (offset + DISK_DRIVE_SECTOR_SIZE)) break; chunk_offset+= chunk_length; valid_chunk_end= chunk_offset; } DBUG_PRINT("info", ("valid chunk end offset: %u", (uint) valid_chunk_end)); memset(page + valid_chunk_end, TRANSLOG_FILLER, TRANSLOG_PAGE_SIZE - valid_chunk_end); DBUG_RETURN(0); }
O0
c
translog_recover_page_up_to_sector: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movw %si, %ax movq %rdi, -0x10(%rbp) movw %ax, -0x12(%rbp) movq -0x10(%rbp), %rdi callq 0x4dc20 movsbl %al, %eax movw %ax, -0x14(%rbp) jmp 0x542c5 jmp 0x542c7 movzwl -0x14(%rbp), %ecx movzwl -0x12(%rbp), %edx xorl %eax, %eax cmpl %edx, %ecx movb %al, -0x1b(%rbp) jge 0x542ef movq -0x10(%rbp), %rax movzwl -0x14(%rbp), %ecx movzbl (%rax,%rcx), %eax cmpl $0xff, %eax setne %al movb %al, -0x1b(%rbp) movb -0x1b(%rbp), %al testb $0x1, %al jne 0x542f8 jmp 0x54359 movq -0x10(%rbp), %rdi movzwl -0x14(%rbp), %esi callq 0x4dc50 movw %ax, -0x18(%rbp) movzwl %ax, %eax cmpl $0x0, %eax jne 0x54320 jmp 0x54313 jmp 0x54315 jmp 0x54317 movb $0x1, -0x1(%rbp) jmp 0x543f7 jmp 0x54322 jmp 0x54324 movzwl -0x14(%rbp), %eax movzwl -0x18(%rbp), %ecx addq %rcx, %rax cmpq $0x2000, %rax # imm = 0x2000 jbe 0x54346 jmp 0x54339 jmp 0x5433b jmp 0x5433d movb $0x1, -0x1(%rbp) jmp 0x543f7 movzwl -0x18(%rbp), %ecx movzwl -0x14(%rbp), %eax addl %ecx, %eax movw %ax, -0x14(%rbp) jmp 0x542c7 movw -0x14(%rbp), %ax movw %ax, -0x16(%rbp) movq -0x10(%rbp), %rax movzwl -0x14(%rbp), %ecx movzbl (%rax,%rcx), %eax cmpl $0xff, %eax je 0x543c9 movq -0x10(%rbp), %rdi movzwl -0x14(%rbp), %esi callq 0x4dc50 movw %ax, -0x1a(%rbp) movzwl %ax, %eax cmpl $0x0, %eax jne 0x5438f jmp 0x543c9 jmp 0x54391 jmp 0x54393 movzwl -0x14(%rbp), %eax movzwl -0x1a(%rbp), %ecx addq %rcx, %rax movzwl -0x12(%rbp), %ecx addl $0x200, %ecx # imm = 0x200 movl %ecx, %ecx cmpq %rcx, %rax jbe 0x543b1 jmp 0x543c9 movzwl -0x1a(%rbp), %ecx movzwl -0x14(%rbp), %eax addl %ecx, %eax movw %ax, -0x14(%rbp) movw -0x14(%rbp), %ax movw %ax, -0x16(%rbp) jmp 0x54361 jmp 0x543cb jmp 0x543cd movq -0x10(%rbp), %rdi movzwl -0x16(%rbp), %eax cltq addq %rax, %rdi movzwl -0x16(%rbp), %ecx movl $0x2000, %eax # imm = 0x2000 subl %ecx, %eax movl %eax, %eax movl %eax, %edx movl $0xff, %esi callq 0x2a2c0 movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x20, %rsp popq %rbp retq
translog_recover_page_up_to_sector: push rbp mov rbp, rsp sub rsp, 20h mov ax, si mov [rbp+var_10], rdi mov [rbp+var_12], ax mov rdi, [rbp+var_10] call translog_get_first_chunk_offset movsx eax, al mov [rbp+var_14], ax jmp short $+2 loc_542C5: jmp short $+2 loc_542C7: movzx ecx, [rbp+var_14] movzx edx, [rbp+var_12] xor eax, eax cmp ecx, edx mov [rbp+var_1B], al jge short loc_542EF mov rax, [rbp+var_10] movzx ecx, [rbp+var_14] movzx eax, byte ptr [rax+rcx] cmp eax, 0FFh setnz al mov [rbp+var_1B], al loc_542EF: mov al, [rbp+var_1B] test al, 1 jnz short loc_542F8 jmp short loc_54359 loc_542F8: mov rdi, [rbp+var_10] movzx esi, [rbp+var_14] call translog_get_total_chunk_length mov [rbp+var_18], ax movzx eax, ax cmp eax, 0 jnz short loc_54320 jmp short $+2 loc_54313: jmp short $+2 loc_54315: jmp short $+2 loc_54317: mov [rbp+var_1], 1 jmp loc_543F7 loc_54320: jmp short $+2 loc_54322: jmp short $+2 loc_54324: movzx eax, [rbp+var_14] movzx ecx, [rbp+var_18] add rax, rcx cmp rax, 2000h jbe short loc_54346 jmp short $+2 loc_54339: jmp short $+2 loc_5433B: jmp short $+2 loc_5433D: mov [rbp+var_1], 1 jmp loc_543F7 loc_54346: movzx ecx, [rbp+var_18] movzx eax, [rbp+var_14] add eax, ecx mov [rbp+var_14], ax jmp loc_542C7 loc_54359: mov ax, [rbp+var_14] mov [rbp+var_16], ax loc_54361: mov rax, [rbp+var_10] movzx ecx, [rbp+var_14] movzx eax, byte ptr [rax+rcx] cmp eax, 0FFh jz short loc_543C9 mov rdi, [rbp+var_10] movzx esi, [rbp+var_14] call translog_get_total_chunk_length mov [rbp+var_1A], ax movzx eax, ax cmp eax, 0 jnz short loc_5438F jmp short loc_543C9 loc_5438F: jmp short $+2 loc_54391: jmp short $+2 loc_54393: movzx eax, [rbp+var_14] movzx ecx, [rbp+var_1A] add rax, rcx movzx ecx, [rbp+var_12] add ecx, 200h mov ecx, ecx cmp rax, rcx jbe short loc_543B1 jmp short loc_543C9 loc_543B1: movzx ecx, [rbp+var_1A] movzx eax, [rbp+var_14] add eax, ecx mov [rbp+var_14], ax mov ax, [rbp+var_14] mov [rbp+var_16], ax jmp short loc_54361 loc_543C9: jmp short $+2 loc_543CB: jmp short $+2 loc_543CD: mov rdi, [rbp+var_10] movzx eax, [rbp+var_16] cdqe add rdi, rax movzx ecx, [rbp+var_16] mov eax, 2000h sub eax, ecx mov eax, eax mov edx, eax mov esi, 0FFh call _memset mov [rbp+var_1], 0 loc_543F7: mov al, [rbp+var_1] add rsp, 20h pop rbp retn
char translog_recover_page_up_to_sector(long long a1, unsigned __int16 a2) { bool v3; // [rsp+5h] [rbp-1Bh] unsigned __int16 v4; // [rsp+6h] [rbp-1Ah] unsigned __int16 total_chunk_length; // [rsp+8h] [rbp-18h] unsigned __int16 j; // [rsp+Ah] [rbp-16h] unsigned __int16 i; // [rsp+Ch] [rbp-14h] for ( i = translog_get_first_chunk_offset(a1); ; i += total_chunk_length ) { v3 = 0; if ( i < (int)a2 ) v3 = *(unsigned __int8 *)(a1 + i) != 255; if ( !v3 ) break; total_chunk_length = translog_get_total_chunk_length(a1, i); if ( !total_chunk_length ) return 1; if ( total_chunk_length + (unsigned long long)i > 0x2000 ) return 1; } for ( j = i; *(unsigned __int8 *)(a1 + i) != 255; j = i ) { v4 = translog_get_total_chunk_length(a1, i); if ( !v4 || v4 + (unsigned long long)i > (unsigned int)a2 + 512 ) break; i += v4; } memset(j + a1, 255LL, 0x2000 - (unsigned int)j); return 0; }
translog_recover_page_up_to_sector: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV AX,SI MOV qword ptr [RBP + -0x10],RDI MOV word ptr [RBP + -0x12],AX MOV RDI,qword ptr [RBP + -0x10] CALL 0x0014dc20 MOVSX EAX,AL MOV word ptr [RBP + -0x14],AX JMP 0x001542c5 LAB_001542c5: JMP 0x001542c7 LAB_001542c7: MOVZX ECX,word ptr [RBP + -0x14] MOVZX EDX,word ptr [RBP + -0x12] XOR EAX,EAX CMP ECX,EDX MOV byte ptr [RBP + -0x1b],AL JGE 0x001542ef MOV RAX,qword ptr [RBP + -0x10] MOVZX ECX,word ptr [RBP + -0x14] MOVZX EAX,byte ptr [RAX + RCX*0x1] CMP EAX,0xff SETNZ AL MOV byte ptr [RBP + -0x1b],AL LAB_001542ef: MOV AL,byte ptr [RBP + -0x1b] TEST AL,0x1 JNZ 0x001542f8 JMP 0x00154359 LAB_001542f8: MOV RDI,qword ptr [RBP + -0x10] MOVZX ESI,word ptr [RBP + -0x14] CALL 0x0014dc50 MOV word ptr [RBP + -0x18],AX MOVZX EAX,AX CMP EAX,0x0 JNZ 0x00154320 JMP 0x00154313 LAB_00154313: JMP 0x00154315 LAB_00154315: JMP 0x00154317 LAB_00154317: MOV byte ptr [RBP + -0x1],0x1 JMP 0x001543f7 LAB_00154320: JMP 0x00154322 LAB_00154322: JMP 0x00154324 LAB_00154324: MOVZX EAX,word ptr [RBP + -0x14] MOVZX ECX,word ptr [RBP + -0x18] ADD RAX,RCX CMP RAX,0x2000 JBE 0x00154346 JMP 0x00154339 LAB_00154339: JMP 0x0015433b LAB_0015433b: JMP 0x0015433d LAB_0015433d: MOV byte ptr [RBP + -0x1],0x1 JMP 0x001543f7 LAB_00154346: MOVZX ECX,word ptr [RBP + -0x18] MOVZX EAX,word ptr [RBP + -0x14] ADD EAX,ECX MOV word ptr [RBP + -0x14],AX JMP 0x001542c7 LAB_00154359: MOV AX,word ptr [RBP + -0x14] MOV word ptr [RBP + -0x16],AX LAB_00154361: MOV RAX,qword ptr [RBP + -0x10] MOVZX ECX,word ptr [RBP + -0x14] MOVZX EAX,byte ptr [RAX + RCX*0x1] CMP EAX,0xff JZ 0x001543c9 MOV RDI,qword ptr [RBP + -0x10] MOVZX ESI,word ptr [RBP + -0x14] CALL 0x0014dc50 MOV word ptr [RBP + -0x1a],AX MOVZX EAX,AX CMP EAX,0x0 JNZ 0x0015438f JMP 0x001543c9 LAB_0015438f: JMP 0x00154391 LAB_00154391: JMP 0x00154393 LAB_00154393: MOVZX EAX,word ptr [RBP + -0x14] MOVZX ECX,word ptr [RBP + -0x1a] ADD RAX,RCX MOVZX ECX,word ptr [RBP + -0x12] ADD ECX,0x200 MOV ECX,ECX CMP RAX,RCX JBE 0x001543b1 JMP 0x001543c9 LAB_001543b1: MOVZX ECX,word ptr [RBP + -0x1a] MOVZX EAX,word ptr [RBP + -0x14] ADD EAX,ECX MOV word ptr [RBP + -0x14],AX MOV AX,word ptr [RBP + -0x14] MOV word ptr [RBP + -0x16],AX JMP 0x00154361 LAB_001543c9: JMP 0x001543cb LAB_001543cb: JMP 0x001543cd LAB_001543cd: MOV RDI,qword ptr [RBP + -0x10] MOVZX EAX,word ptr [RBP + -0x16] CDQE ADD RDI,RAX MOVZX ECX,word ptr [RBP + -0x16] MOV EAX,0x2000 SUB EAX,ECX MOV EAX,EAX MOV EDX,EAX MOV ESI,0xff CALL 0x0012a2c0 MOV byte ptr [RBP + -0x1],0x0 LAB_001543f7: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x20 POP RBP RET
int1 translog_recover_page_up_to_sector(long param_1,ushort param_2) { char cVar1; ushort uVar2; bool bVar3; ushort local_1c; cVar1 = translog_get_first_chunk_offset(param_1); local_1c = (ushort)cVar1; while( true ) { bVar3 = false; if (local_1c < param_2) { bVar3 = *(char *)(param_1 + (ulong)local_1c) != -1; } if (!bVar3) { for (; ((*(char *)(param_1 + (ulong)local_1c) != -1 && (uVar2 = translog_get_total_chunk_length(param_1,local_1c), uVar2 != 0)) && ((uint)local_1c + (uint)uVar2 <= param_2 + 0x200)); local_1c = local_1c + uVar2) { } memset((void *)(param_1 + (int)(uint)local_1c),0xff,(ulong)(0x2000 - local_1c)); return 0; } uVar2 = translog_get_total_chunk_length(param_1,local_1c); if (uVar2 == 0) { return 1; } if (0x2000 < (ulong)local_1c + (ulong)uVar2) break; local_1c = local_1c + uVar2; } return 1; }
52,822
google::protobuf::MethodDescriptor::CopyTo(google::protobuf::MethodDescriptorProto*) const
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc
void MethodDescriptor::CopyTo(MethodDescriptorProto* proto) const { proto->set_name(name()); if (!input_type()->is_unqualified_placeholder_) { proto->set_input_type("."); } proto->mutable_input_type()->append(input_type()->full_name()); if (!output_type()->is_unqualified_placeholder_) { proto->set_output_type("."); } proto->mutable_output_type()->append(output_type()->full_name()); if (&options() != &MethodOptions::default_instance()) { proto->mutable_options()->CopyFrom(options()); } if (client_streaming_) { proto->set_client_streaming(true); } if (server_streaming_) { proto->set_server_streaming(true); } }
O0
cpp
google::protobuf::MethodDescriptor::CopyTo(google::protobuf::MethodDescriptorProto*) const: subq $0xd8, %rsp movq %rdi, 0x70(%rsp) movq %rsi, 0x68(%rsp) movq 0x70(%rsp), %rdi movq %rdi, 0x60(%rsp) movq 0x68(%rsp), %rax movq %rax, 0x48(%rsp) callq 0x16200 movq 0x48(%rsp), %rcx movq %rcx, 0x80(%rsp) movq %rax, 0x78(%rsp) movq 0x80(%rsp), %rdi movq %rdi, %rax addq $0x10, %rax movq %rax, 0xd0(%rsp) movl $0x0, 0xcc(%rsp) movq 0xd0(%rsp), %rax movslq 0xcc(%rsp), %rcx movl (%rax,%rcx,4), %edx orl $0x1, %edx movl %edx, (%rax,%rcx,4) movq %rdi, %rax addq $0x10, %rax addq $0x8, %rax movq %rax, 0x50(%rsp) movq 0x78(%rsp), %rax movq %rax, 0x58(%rsp) callq 0x80180 movq 0x50(%rsp), %rdi movq 0x58(%rsp), %rsi movq %rax, %rdx callq 0x183680 movq 0x60(%rsp), %rdi callq 0x399f0 movb 0x1(%rax), %al shrb %al andb $0x1, %al testb $0x1, %al jne 0x3986c movq 0x68(%rsp), %rax movq %rax, 0x90(%rsp) leaq 0x1b44f8(%rip), %rax # 0x1edced movq %rax, 0x88(%rsp) movq 0x90(%rsp), %rdi movq %rdi, %rax addq $0x10, %rax movq %rax, 0xc0(%rsp) movl $0x0, 0xbc(%rsp) movq 0xc0(%rsp), %rax movslq 0xbc(%rsp), %rcx movl (%rax,%rcx,4), %edx orl $0x2, %edx movl %edx, (%rax,%rcx,4) movq %rdi, %rax addq $0x10, %rax addq $0x10, %rax movq %rax, 0x38(%rsp) movq 0x88(%rsp), %rax movq %rax, 0x40(%rsp) callq 0x80180 movq 0x38(%rsp), %rdi movq 0x40(%rsp), %rsi movq %rax, %rdx callq 0x98820 movq 0x68(%rsp), %rdi callq 0x76780 movq 0x60(%rsp), %rdi movq %rax, 0x30(%rsp) callq 0x399f0 movq %rax, %rdi callq 0x163d0 movq 0x30(%rsp), %rdi movq %rax, %rsi callq 0x19860 movq 0x60(%rsp), %rdi callq 0x39a30 movb 0x1(%rax), %al shrb %al andb $0x1, %al testb $0x1, %al jne 0x3993e movq 0x68(%rsp), %rax movq %rax, 0xa0(%rsp) leaq 0x1b4426(%rip), %rax # 0x1edced movq %rax, 0x98(%rsp) movq 0xa0(%rsp), %rdi movq %rdi, %rax addq $0x10, %rax movq %rax, 0xb0(%rsp) movl $0x0, 0xac(%rsp) movq 0xb0(%rsp), %rax movslq 0xac(%rsp), %rcx movl (%rax,%rcx,4), %edx orl $0x4, %edx movl %edx, (%rax,%rcx,4) movq %rdi, %rax addq $0x10, %rax addq $0x18, %rax movq %rax, 0x20(%rsp) movq 0x98(%rsp), %rax movq %rax, 0x28(%rsp) callq 0x80180 movq 0x20(%rsp), %rdi movq 0x28(%rsp), %rsi movq %rax, %rdx callq 0x98820 movq 0x68(%rsp), %rdi callq 0x767b0 movq 0x60(%rsp), %rdi movq %rax, 0x10(%rsp) callq 0x39a30 movq %rax, %rdi callq 0x163d0 movq 0x10(%rsp), %rdi movq %rax, %rsi callq 0x19860 movq 0x60(%rsp), %rdi callq 0x767e0 movq %rax, 0x18(%rsp) callq 0x767f0 movq %rax, %rcx movq 0x18(%rsp), %rax cmpq %rcx, %rax je 0x399b3 movq 0x68(%rsp), %rdi callq 0x76800 movq 0x60(%rsp), %rdi movq %rax, 0x8(%rsp) callq 0x767e0 movq 0x8(%rsp), %rdi movq %rax, %rsi callq 0xc8320 movq 0x60(%rsp), %rax testb $0x1, 0x1(%rax) je 0x399cd movq 0x68(%rsp), %rdi movl $0x1, %esi callq 0x76830 movq 0x60(%rsp), %rax testb $0x1, 0x2(%rax) je 0x399e7 movq 0x68(%rsp), %rdi movl $0x1, %esi callq 0x76860 addq $0xd8, %rsp retq nop
_ZNK6google8protobuf16MethodDescriptor6CopyToEPNS0_21MethodDescriptorProtoE: sub rsp, 0D8h mov [rsp+0D8h+var_68], rdi mov [rsp+0D8h+var_70], rsi mov rdi, [rsp+0D8h+var_68] mov [rsp+0D8h+var_78], rdi mov rax, [rsp+0D8h+var_70] mov [rsp+0D8h+var_90], rax call _ZNK6google8protobuf16MethodDescriptor4nameB5cxx11Ev; google::protobuf::MethodDescriptor::name(void) mov rcx, [rsp+0D8h+var_90] mov [rsp+0D8h+var_58], rcx mov [rsp+0D8h+var_60], rax mov rdi, [rsp+0D8h+var_58]; this mov rax, rdi add rax, 10h mov [rsp+0D8h+var_8], rax mov [rsp+0D8h+var_C], 0 mov rax, [rsp+0D8h+var_8] movsxd rcx, [rsp+0D8h+var_C] mov edx, [rax+rcx*4] or edx, 1 mov [rax+rcx*4], edx mov rax, rdi add rax, 10h add rax, 8 mov qword ptr [rsp+0D8h+var_88], rax mov rax, [rsp+0D8h+var_60] mov qword ptr [rsp+0D8h+var_80], rax call _ZNK6google8protobuf11MessageLite21GetArenaForAllocationEv; google::protobuf::MessageLite::GetArenaForAllocation(void) mov rdi, qword ptr [rsp+0D8h+var_88]; int mov rsi, qword ptr [rsp+0D8h+var_80]; int mov rdx, rax; int call _ZN6google8protobuf8internal14ArenaStringPtr3SetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Set(std::string const&,google::protobuf::Arena *) mov rdi, [rsp+0D8h+var_78]; this call _ZNK6google8protobuf16MethodDescriptor10input_typeEv; google::protobuf::MethodDescriptor::input_type(void) mov al, [rax+1] shr al, 1 and al, 1 test al, 1 jnz loc_3986C mov rax, [rsp+0D8h+var_70] mov [rsp+0D8h+var_48], rax lea rax, aWhichIsNotDefi+77h; "." mov [rsp+0D8h+var_50], rax mov rdi, [rsp+0D8h+var_48]; this mov rax, rdi add rax, 10h mov [rsp+0D8h+var_18], rax mov [rsp+0D8h+var_1C], 0 mov rax, [rsp+0D8h+var_18] movsxd rcx, [rsp+0D8h+var_1C] mov edx, [rax+rcx*4] or edx, 2 mov [rax+rcx*4], edx mov rax, rdi add rax, 10h add rax, 10h mov [rsp+0D8h+var_A0], rax mov rax, [rsp+0D8h+var_50] mov [rsp+0D8h+var_98], rax call _ZNK6google8protobuf11MessageLite21GetArenaForAllocationEv; google::protobuf::MessageLite::GetArenaForAllocation(void) mov rdi, [rsp+0D8h+var_A0]; this mov rsi, [rsp+0D8h+var_98]; char * mov rdx, rax; google::protobuf::Arena * call _ZN6google8protobuf8internal14ArenaStringPtr3SetEPKcPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Set(char const*,google::protobuf::Arena *) loc_3986C: mov rdi, [rsp+0D8h+var_70] call _ZN6google8protobuf21MethodDescriptorProto18mutable_input_typeB5cxx11Ev; google::protobuf::MethodDescriptorProto::mutable_input_type(void) mov rdi, [rsp+0D8h+var_78]; this mov [rsp+0D8h+var_A8], rax call _ZNK6google8protobuf16MethodDescriptor10input_typeEv; google::protobuf::MethodDescriptor::input_type(void) mov rdi, rax call _ZNK6google8protobuf10Descriptor9full_nameB5cxx11Ev; google::protobuf::Descriptor::full_name(void) mov rdi, [rsp+0D8h+var_A8] mov rsi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&) mov rdi, [rsp+0D8h+var_78]; this call _ZNK6google8protobuf16MethodDescriptor11output_typeEv; google::protobuf::MethodDescriptor::output_type(void) mov al, [rax+1] shr al, 1 and al, 1 test al, 1 jnz loc_3993E mov rax, [rsp+0D8h+var_70] mov [rsp+0D8h+var_38], rax lea rax, aWhichIsNotDefi+77h; "." mov [rsp+0D8h+var_40], rax mov rdi, [rsp+0D8h+var_38]; this mov rax, rdi add rax, 10h mov [rsp+0D8h+var_28], rax mov [rsp+0D8h+var_2C], 0 mov rax, [rsp+0D8h+var_28] movsxd rcx, [rsp+0D8h+var_2C] mov edx, [rax+rcx*4] or edx, 4 mov [rax+rcx*4], edx mov rax, rdi add rax, 10h add rax, 18h mov [rsp+0D8h+var_B8], rax mov rax, [rsp+0D8h+var_40] mov [rsp+0D8h+var_B0], rax call _ZNK6google8protobuf11MessageLite21GetArenaForAllocationEv; google::protobuf::MessageLite::GetArenaForAllocation(void) mov rdi, [rsp+0D8h+var_B8]; this mov rsi, [rsp+0D8h+var_B0]; char * mov rdx, rax; google::protobuf::Arena * call _ZN6google8protobuf8internal14ArenaStringPtr3SetEPKcPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Set(char const*,google::protobuf::Arena *) loc_3993E: mov rdi, [rsp+0D8h+var_70] call _ZN6google8protobuf21MethodDescriptorProto19mutable_output_typeB5cxx11Ev; google::protobuf::MethodDescriptorProto::mutable_output_type(void) mov rdi, [rsp+0D8h+var_78]; this mov [rsp+0D8h+var_C8], rax call _ZNK6google8protobuf16MethodDescriptor11output_typeEv; google::protobuf::MethodDescriptor::output_type(void) mov rdi, rax call _ZNK6google8protobuf10Descriptor9full_nameB5cxx11Ev; google::protobuf::Descriptor::full_name(void) mov rdi, [rsp+0D8h+var_C8] mov rsi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&) mov rdi, [rsp+0D8h+var_78]; this call _ZNK6google8protobuf16MethodDescriptor7optionsEv; google::protobuf::MethodDescriptor::options(void) mov [rsp+0D8h+var_C0], rax call _ZN6google8protobuf13MethodOptions16default_instanceEv; google::protobuf::MethodOptions::default_instance(void) mov rcx, rax mov rax, [rsp+0D8h+var_C0] cmp rax, rcx jz short loc_399B3 mov rdi, [rsp+0D8h+var_70]; this call _ZN6google8protobuf21MethodDescriptorProto15mutable_optionsEv; google::protobuf::MethodDescriptorProto::mutable_options(void) mov rdi, [rsp+0D8h+var_78]; this mov [rsp+0D8h+var_D0], rax call _ZNK6google8protobuf16MethodDescriptor7optionsEv; google::protobuf::MethodDescriptor::options(void) mov rdi, [rsp+0D8h+var_D0]; this mov rsi, rax; google::protobuf::MethodOptions * call _ZN6google8protobuf13MethodOptions8CopyFromERKS1_; google::protobuf::MethodOptions::CopyFrom(google::protobuf::MethodOptions const&) loc_399B3: mov rax, [rsp+0D8h+var_78] test byte ptr [rax+1], 1 jz short loc_399CD mov rdi, [rsp+0D8h+var_70]; this mov esi, 1; bool call _ZN6google8protobuf21MethodDescriptorProto20set_client_streamingEb; google::protobuf::MethodDescriptorProto::set_client_streaming(bool) loc_399CD: mov rax, [rsp+0D8h+var_78] test byte ptr [rax+2], 1 jz short loc_399E7 mov rdi, [rsp+0D8h+var_70]; this mov esi, 1; bool call _ZN6google8protobuf21MethodDescriptorProto20set_server_streamingEb; google::protobuf::MethodDescriptorProto::set_server_streaming(bool) loc_399E7: add rsp, 0D8h retn
google::protobuf::MethodDescriptor * google::protobuf::MethodDescriptor::CopyTo( google::protobuf::MethodDescriptor *this, google::protobuf::MethodDescriptorProto *a2) { int ArenaForAllocation; // eax google::protobuf::Arena *v3; // rax long long v4; // rax long long v5; // rsi google::protobuf::Arena *v6; // rax long long v7; // rax long long v8; // rax const google::protobuf::MethodOptions *v9; // rax google::protobuf::MethodDescriptor *result; // rax google::protobuf::MethodOptions *v11; // [rsp+8h] [rbp-D0h] long long v12; // [rsp+10h] [rbp-C8h] long long v13; // [rsp+18h] [rbp-C0h] long long v14; // [rsp+30h] [rbp-A8h] int v16; // [rsp+78h] [rbp-60h] v16 = google::protobuf::MethodDescriptor::name[abi:cxx11]((long long)this); *((_DWORD *)a2 + 4) |= 1u; ArenaForAllocation = google::protobuf::MessageLite::GetArenaForAllocation(a2); google::protobuf::internal::ArenaStringPtr::Set((_DWORD)a2 + 24, v16, ArenaForAllocation); if ( (*(_BYTE *)(google::protobuf::MethodDescriptor::input_type(this) + 1) & 2) == 0 ) { *((_DWORD *)a2 + 4) |= 2u; v3 = (google::protobuf::Arena *)google::protobuf::MessageLite::GetArenaForAllocation(a2); google::protobuf::internal::ArenaStringPtr::Set( (google::protobuf::MethodDescriptorProto *)((char *)a2 + 32), ".", v3); } v14 = google::protobuf::MethodDescriptorProto::mutable_input_type[abi:cxx11](a2); v4 = google::protobuf::MethodDescriptor::input_type(this); v5 = google::protobuf::Descriptor::full_name[abi:cxx11](v4); std::string::append(v14, v5); if ( (*(_BYTE *)(google::protobuf::MethodDescriptor::output_type(this) + 1) & 2) == 0 ) { *((_DWORD *)a2 + 4) |= 4u; v6 = (google::protobuf::Arena *)google::protobuf::MessageLite::GetArenaForAllocation(a2); google::protobuf::internal::ArenaStringPtr::Set( (google::protobuf::MethodDescriptorProto *)((char *)a2 + 40), ".", v6); } v12 = google::protobuf::MethodDescriptorProto::mutable_output_type[abi:cxx11](a2); v7 = google::protobuf::MethodDescriptor::output_type(this); v8 = google::protobuf::Descriptor::full_name[abi:cxx11](v7); std::string::append(v12, v8); v13 = google::protobuf::MethodDescriptor::options(this); if ( v13 != google::protobuf::MethodOptions::default_instance(this) ) { v11 = (google::protobuf::MethodOptions *)google::protobuf::MethodDescriptorProto::mutable_options(a2); v9 = (const google::protobuf::MethodOptions *)google::protobuf::MethodDescriptor::options(this); google::protobuf::MethodOptions::CopyFrom(v11, v9); } if ( (*((_BYTE *)this + 1) & 1) != 0 ) google::protobuf::MethodDescriptorProto::set_client_streaming(a2, 1); result = this; if ( (*((_BYTE *)this + 2) & 1) != 0 ) return (google::protobuf::MethodDescriptor *)google::protobuf::MethodDescriptorProto::set_server_streaming(a2, 1); return result; }
CopyTo: SUB RSP,0xd8 MOV qword ptr [RSP + 0x70],RDI MOV qword ptr [RSP + 0x68],RSI MOV RDI,qword ptr [RSP + 0x70] MOV qword ptr [RSP + 0x60],RDI MOV RAX,qword ptr [RSP + 0x68] MOV qword ptr [RSP + 0x48],RAX CALL 0x00116200 MOV RCX,qword ptr [RSP + 0x48] MOV qword ptr [RSP + 0x80],RCX MOV qword ptr [RSP + 0x78],RAX MOV RDI,qword ptr [RSP + 0x80] MOV RAX,RDI ADD RAX,0x10 MOV qword ptr [RSP + 0xd0],RAX MOV dword ptr [RSP + 0xcc],0x0 MOV RAX,qword ptr [RSP + 0xd0] MOVSXD RCX,dword ptr [RSP + 0xcc] MOV EDX,dword ptr [RAX + RCX*0x4] OR EDX,0x1 MOV dword ptr [RAX + RCX*0x4],EDX MOV RAX,RDI ADD RAX,0x10 ADD RAX,0x8 MOV qword ptr [RSP + 0x50],RAX MOV RAX,qword ptr [RSP + 0x78] MOV qword ptr [RSP + 0x58],RAX CALL 0x00180180 MOV RDI,qword ptr [RSP + 0x50] MOV RSI,qword ptr [RSP + 0x58] MOV RDX,RAX CALL 0x00283680 MOV RDI,qword ptr [RSP + 0x60] CALL 0x001399f0 MOV AL,byte ptr [RAX + 0x1] SHR AL,0x1 AND AL,0x1 TEST AL,0x1 JNZ 0x0013986c MOV RAX,qword ptr [RSP + 0x68] MOV qword ptr [RSP + 0x90],RAX LEA RAX,[0x2edced] MOV qword ptr [RSP + 0x88],RAX MOV RDI,qword ptr [RSP + 0x90] MOV RAX,RDI ADD RAX,0x10 MOV qword ptr [RSP + 0xc0],RAX MOV dword ptr [RSP + 0xbc],0x0 MOV RAX,qword ptr [RSP + 0xc0] MOVSXD RCX,dword ptr [RSP + 0xbc] MOV EDX,dword ptr [RAX + RCX*0x4] OR EDX,0x2 MOV dword ptr [RAX + RCX*0x4],EDX MOV RAX,RDI ADD RAX,0x10 ADD RAX,0x10 MOV qword ptr [RSP + 0x38],RAX MOV RAX,qword ptr [RSP + 0x88] MOV qword ptr [RSP + 0x40],RAX CALL 0x00180180 MOV RDI,qword ptr [RSP + 0x38] MOV RSI,qword ptr [RSP + 0x40] MOV RDX,RAX CALL 0x00198820 LAB_0013986c: MOV RDI,qword ptr [RSP + 0x68] CALL 0x00176780 MOV RDI,qword ptr [RSP + 0x60] MOV qword ptr [RSP + 0x30],RAX CALL 0x001399f0 MOV RDI,RAX CALL 0x001163d0 MOV RDI,qword ptr [RSP + 0x30] MOV RSI,RAX CALL 0x00119860 MOV RDI,qword ptr [RSP + 0x60] CALL 0x00139a30 MOV AL,byte ptr [RAX + 0x1] SHR AL,0x1 AND AL,0x1 TEST AL,0x1 JNZ 0x0013993e MOV RAX,qword ptr [RSP + 0x68] MOV qword ptr [RSP + 0xa0],RAX LEA RAX,[0x2edced] MOV qword ptr [RSP + 0x98],RAX MOV RDI,qword ptr [RSP + 0xa0] MOV RAX,RDI ADD RAX,0x10 MOV qword ptr [RSP + 0xb0],RAX MOV dword ptr [RSP + 0xac],0x0 MOV RAX,qword ptr [RSP + 0xb0] MOVSXD RCX,dword ptr [RSP + 0xac] MOV EDX,dword ptr [RAX + RCX*0x4] OR EDX,0x4 MOV dword ptr [RAX + RCX*0x4],EDX MOV RAX,RDI ADD RAX,0x10 ADD RAX,0x18 MOV qword ptr [RSP + 0x20],RAX MOV RAX,qword ptr [RSP + 0x98] MOV qword ptr [RSP + 0x28],RAX CALL 0x00180180 MOV RDI,qword ptr [RSP + 0x20] MOV RSI,qword ptr [RSP + 0x28] MOV RDX,RAX CALL 0x00198820 LAB_0013993e: MOV RDI,qword ptr [RSP + 0x68] CALL 0x001767b0 MOV RDI,qword ptr [RSP + 0x60] MOV qword ptr [RSP + 0x10],RAX CALL 0x00139a30 MOV RDI,RAX CALL 0x001163d0 MOV RDI,qword ptr [RSP + 0x10] MOV RSI,RAX CALL 0x00119860 MOV RDI,qword ptr [RSP + 0x60] CALL 0x001767e0 MOV qword ptr [RSP + 0x18],RAX CALL 0x001767f0 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x18] CMP RAX,RCX JZ 0x001399b3 MOV RDI,qword ptr [RSP + 0x68] CALL 0x00176800 MOV RDI,qword ptr [RSP + 0x60] MOV qword ptr [RSP + 0x8],RAX CALL 0x001767e0 MOV RDI,qword ptr [RSP + 0x8] MOV RSI,RAX CALL 0x001c8320 LAB_001399b3: MOV RAX,qword ptr [RSP + 0x60] TEST byte ptr [RAX + 0x1],0x1 JZ 0x001399cd MOV RDI,qword ptr [RSP + 0x68] MOV ESI,0x1 CALL 0x00176830 LAB_001399cd: MOV RAX,qword ptr [RSP + 0x60] TEST byte ptr [RAX + 0x2],0x1 JZ 0x001399e7 MOV RDI,qword ptr [RSP + 0x68] MOV ESI,0x1 CALL 0x00176860 LAB_001399e7: ADD RSP,0xd8 RET
/* google::protobuf::MethodDescriptor::CopyTo(google::protobuf::MethodDescriptorProto*) const */ void __thiscall google::protobuf::MethodDescriptor::CopyTo(MethodDescriptor *this,MethodDescriptorProto *param_1) { string *psVar1; Arena *pAVar2; long lVar3; Descriptor *pDVar4; string *psVar5; long lVar6; MethodOptions *this_00; MethodOptions *pMVar7; psVar1 = (string *)name_abi_cxx11_(this); *(uint *)(param_1 + 0x10) = *(uint *)(param_1 + 0x10) | 1; pAVar2 = (Arena *)MessageLite::GetArenaForAllocation((MessageLite *)param_1); internal::ArenaStringPtr::Set((ArenaStringPtr *)(param_1 + 0x18),psVar1,pAVar2); lVar3 = input_type(this); if ((*(byte *)(lVar3 + 1) >> 1 & 1) == 0) { *(uint *)(param_1 + 0x10) = *(uint *)(param_1 + 0x10) | 2; pAVar2 = (Arena *)MessageLite::GetArenaForAllocation((MessageLite *)param_1); internal::ArenaStringPtr::Set((ArenaStringPtr *)(param_1 + 0x20),".",pAVar2); } psVar1 = (string *)MethodDescriptorProto::mutable_input_type_abi_cxx11_(param_1); pDVar4 = (Descriptor *)input_type(this); psVar5 = (string *)Descriptor::full_name_abi_cxx11_(pDVar4); std::__cxx11::string::append(psVar1,psVar5); lVar3 = output_type(this); if ((*(byte *)(lVar3 + 1) >> 1 & 1) == 0) { *(uint *)(param_1 + 0x10) = *(uint *)(param_1 + 0x10) | 4; pAVar2 = (Arena *)MessageLite::GetArenaForAllocation((MessageLite *)param_1); internal::ArenaStringPtr::Set((ArenaStringPtr *)(param_1 + 0x28),".",pAVar2); } psVar1 = (string *)MethodDescriptorProto::mutable_output_type_abi_cxx11_(param_1); pDVar4 = (Descriptor *)output_type(this); psVar5 = (string *)Descriptor::full_name_abi_cxx11_(pDVar4); std::__cxx11::string::append(psVar1,psVar5); lVar3 = options(this); lVar6 = MethodOptions::default_instance(); if (lVar3 != lVar6) { this_00 = (MethodOptions *)MethodDescriptorProto::mutable_options(param_1); pMVar7 = (MethodOptions *)options(this); MethodOptions::CopyFrom(this_00,pMVar7); } if (((byte)this[1] & 1) != 0) { MethodDescriptorProto::set_client_streaming(param_1,true); } if (((byte)this[2] & 1) != 0) { MethodDescriptorProto::set_server_streaming(param_1,true); } return; }
52,823
google::protobuf::MethodDescriptor::CopyTo(google::protobuf::MethodDescriptorProto*) const
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc
void MethodDescriptor::CopyTo(MethodDescriptorProto* proto) const { proto->set_name(name()); if (!input_type()->is_unqualified_placeholder_) { proto->set_input_type("."); } proto->mutable_input_type()->append(input_type()->full_name()); if (!output_type()->is_unqualified_placeholder_) { proto->set_output_type("."); } proto->mutable_output_type()->append(output_type()->full_name()); if (&options() != &MethodOptions::default_instance()) { proto->mutable_options()->CopyFrom(options()); } if (client_streaming_) { proto->set_client_streaming(true); } if (server_streaming_) { proto->set_server_streaming(true); } }
O3
cpp
google::protobuf::MethodDescriptor::CopyTo(google::protobuf::MethodDescriptorProto*) const: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rsi, %rbx movq %rdi, %r14 movq 0x8(%rdi), %rsi orl $0x1, 0x10(%rbx) leaq 0x18(%rbx), %rdi movq 0x8(%rbx), %rax movq %rax, %rdx andq $-0x4, %rdx testb $0x1, %al jne 0x20f13 callq 0x9308e leaq 0x18(%r14), %r15 movq 0x10(%r14), %rsi movq %r15, %rdi callq 0x3ae44 movq 0x18(%r14), %rax testb $0x2, 0x1(%rax) jne 0x20d9f orb $0x2, 0x10(%rbx) leaq 0x20(%rbx), %r12 movq 0x8(%rbx), %rax movq %rax, %r13 andq $-0x4, %r13 testb $0x1, %al jne 0x20f2b leaq 0x18(%rsp), %rax movq %rax, -0x10(%rax) leaq 0x95775(%rip), %rsi # 0xb64de leaq 0x9576f(%rip), %rdx # 0xb64df leaq 0x8(%rsp), %rbp movq %rbp, %rdi callq 0x137ec movq %r12, %rdi movq %rbp, %rsi movq %r13, %rdx callq 0x9308e movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x20d9f callq 0xf330 orb $0x2, 0x10(%rbx) movq 0x8(%rbx), %rax movq %rax, %rsi andq $-0x4, %rsi testb $0x1, %al jne 0x20f1b leaq 0x20(%rbx), %rdi callq 0x9323a movq %rax, %r12 movq 0x10(%r14), %rsi movq %r15, %rdi callq 0x3ae44 movq 0x18(%r14), %rax movq 0x8(%rax), %rax movq 0x20(%rax), %rsi movq 0x28(%rax), %rdx movq %r12, %rdi callq 0x13a4e leaq 0x28(%r14), %r15 movq 0x10(%r14), %rsi movq %r15, %rdi callq 0x3ae44 movq 0x28(%r14), %rax testb $0x2, 0x1(%rax) jne 0x20e61 orb $0x4, 0x10(%rbx) leaq 0x28(%rbx), %r12 movq 0x8(%rbx), %rax movq %rax, %r13 andq $-0x4, %r13 testb $0x1, %al jne 0x20f34 leaq 0x18(%rsp), %rax movq %rax, -0x10(%rax) leaq 0x956b3(%rip), %rsi # 0xb64de leaq 0x956ad(%rip), %rdx # 0xb64df leaq 0x8(%rsp), %rbp movq %rbp, %rdi callq 0x137ec movq %r12, %rdi movq %rbp, %rsi movq %r13, %rdx callq 0x9308e movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x20e61 callq 0xf330 orb $0x4, 0x10(%rbx) movq 0x8(%rbx), %rax movq %rax, %rsi andq $-0x4, %rsi testb $0x1, %al jne 0x20f23 leaq 0x28(%rbx), %rdi callq 0x9323a movq %rax, %r12 movq 0x10(%r14), %rsi movq %r15, %rdi callq 0x3ae44 movq 0x28(%r14), %rax movq 0x8(%rax), %rax movq 0x20(%rax), %rsi movq 0x28(%rax), %rdx movq %r12, %rdi callq 0x13a4e movq 0x38(%r14), %rsi cmpq 0xe1095(%rip), %rsi # 0x101f48 je 0x20ee6 orb $0x8, 0x10(%rbx) movq 0x30(%rbx), %rdi testq %rdi, %rdi jne 0x20ee1 movq 0x8(%rbx), %rax movq %rax, %rdi andq $-0x4, %rdi testb $0x1, %al jne 0x20f3d callq 0x58b50 movq %rax, %rdi movq %rax, 0x30(%rbx) movq 0x38(%r14), %rsi callq 0x5537c cmpb $0x1, 0x1(%r14) jne 0x20ef5 orb $0x10, 0x10(%rbx) movb $0x1, 0x38(%rbx) cmpb $0x1, 0x2(%r14) jne 0x20f04 orb $0x20, 0x10(%rbx) movb $0x1, 0x39(%rbx) addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq (%rdx), %rdx jmp 0x20d1f movq (%rsi), %rsi jmp 0x20db6 movq (%rsi), %rsi jmp 0x20e78 movq (%r13), %r13 jmp 0x20d59 movq (%r13), %r13 jmp 0x20e1b movq (%rdi), %rdi jmp 0x20ed1 jmp 0x20f44 movq %rax, %rbx movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x20f5b callq 0xf330 movq %rbx, %rdi callq 0xf570 nop
_ZNK6google8protobuf16MethodDescriptor6CopyToEPNS0_21MethodDescriptorProtoE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov rbx, rsi mov r14, rdi mov rsi, [rdi+8] or dword ptr [rbx+10h], 1 lea rdi, [rbx+18h] mov rax, [rbx+8] mov rdx, rax and rdx, 0FFFFFFFFFFFFFFFCh test al, 1 jnz loc_20F13 loc_20D1F: call _ZN6google8protobuf8internal14ArenaStringPtr3SetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Set(std::string const&,google::protobuf::Arena *) lea r15, [r14+18h] mov rsi, [r14+10h] mov rdi, r15 call _ZN6google8protobuf8internal14LazyDescriptor4OnceEPKNS0_17ServiceDescriptorE; google::protobuf::internal::LazyDescriptor::Once(google::protobuf::ServiceDescriptor const*) mov rax, [r14+18h] test byte ptr [rax+1], 2 jnz short loc_20D9F or byte ptr [rbx+10h], 2 lea r12, [rbx+20h] mov rax, [rbx+8] mov r13, rax and r13, 0FFFFFFFFFFFFFFFCh test al, 1 jnz loc_20F2B loc_20D59: lea rax, [rsp+58h+var_40] mov [rax-10h], rax lea rsi, aWhichIsNotDefi+77h; "." lea rdx, aWhichIsNotDefi+78h; "" lea rbp, [rsp+58h+var_50] mov rdi, rbp 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 rdi, r12 mov rsi, rbp mov rdx, r13 call _ZN6google8protobuf8internal14ArenaStringPtr3SetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Set(std::string const&,google::protobuf::Arena *) mov rdi, [rsp+58h+var_50]; void * lea rax, [rsp+58h+var_40] cmp rdi, rax jz short loc_20D9F call __ZdlPv; operator delete(void *) loc_20D9F: or byte ptr [rbx+10h], 2 mov rax, [rbx+8] mov rsi, rax and rsi, 0FFFFFFFFFFFFFFFCh test al, 1 jnz loc_20F1B loc_20DB6: lea rdi, [rbx+20h] call _ZN6google8protobuf8internal14ArenaStringPtr7MutableB5cxx11EPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Mutable(google::protobuf::Arena *) mov r12, rax mov rsi, [r14+10h] mov rdi, r15 call _ZN6google8protobuf8internal14LazyDescriptor4OnceEPKNS0_17ServiceDescriptorE; google::protobuf::internal::LazyDescriptor::Once(google::protobuf::ServiceDescriptor const*) mov rax, [r14+18h] mov rax, [rax+8] mov rsi, [rax+20h] mov rdx, [rax+28h] mov rdi, r12 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) lea r15, [r14+28h] mov rsi, [r14+10h] mov rdi, r15 call _ZN6google8protobuf8internal14LazyDescriptor4OnceEPKNS0_17ServiceDescriptorE; google::protobuf::internal::LazyDescriptor::Once(google::protobuf::ServiceDescriptor const*) mov rax, [r14+28h] test byte ptr [rax+1], 2 jnz short loc_20E61 or byte ptr [rbx+10h], 4 lea r12, [rbx+28h] mov rax, [rbx+8] mov r13, rax and r13, 0FFFFFFFFFFFFFFFCh test al, 1 jnz loc_20F34 loc_20E1B: lea rax, [rsp+58h+var_40] mov [rax-10h], rax lea rsi, aWhichIsNotDefi+77h; "." lea rdx, aWhichIsNotDefi+78h; "" lea rbp, [rsp+58h+var_50] mov rdi, rbp 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 rdi, r12 mov rsi, rbp mov rdx, r13 call _ZN6google8protobuf8internal14ArenaStringPtr3SetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Set(std::string const&,google::protobuf::Arena *) mov rdi, [rsp+58h+var_50]; void * lea rax, [rsp+58h+var_40] cmp rdi, rax jz short loc_20E61 call __ZdlPv; operator delete(void *) loc_20E61: or byte ptr [rbx+10h], 4 mov rax, [rbx+8] mov rsi, rax and rsi, 0FFFFFFFFFFFFFFFCh test al, 1 jnz loc_20F23 loc_20E78: lea rdi, [rbx+28h] call _ZN6google8protobuf8internal14ArenaStringPtr7MutableB5cxx11EPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Mutable(google::protobuf::Arena *) mov r12, rax mov rsi, [r14+10h] mov rdi, r15 call _ZN6google8protobuf8internal14LazyDescriptor4OnceEPKNS0_17ServiceDescriptorE; google::protobuf::internal::LazyDescriptor::Once(google::protobuf::ServiceDescriptor const*) mov rax, [r14+28h] mov rax, [rax+8] mov rsi, [rax+20h] mov rdx, [rax+28h] mov rdi, r12 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rsi, [r14+38h] cmp rsi, cs:_ZN6google8protobuf32_MethodOptions_default_instance_E_ptr jz short loc_20EE6 or byte ptr [rbx+10h], 8 mov rdi, [rbx+30h] test rdi, rdi jnz short loc_20EE1 mov rax, [rbx+8] mov rdi, rax and rdi, 0FFFFFFFFFFFFFFFCh test al, 1 jnz short loc_20F3D loc_20ED1: call _ZN6google8protobuf5Arena18CreateMaybeMessageINS0_13MethodOptionsEJEEEPT_PS1_DpOT0_; google::protobuf::Arena::CreateMaybeMessage<google::protobuf::MethodOptions>(google::protobuf::Arena*) mov rdi, rax; this mov [rbx+30h], rax mov rsi, [r14+38h]; google::protobuf::MethodOptions * loc_20EE1: call _ZN6google8protobuf13MethodOptions8CopyFromERKS1_; google::protobuf::MethodOptions::CopyFrom(google::protobuf::MethodOptions const&) loc_20EE6: cmp byte ptr [r14+1], 1 jnz short loc_20EF5 or byte ptr [rbx+10h], 10h mov byte ptr [rbx+38h], 1 loc_20EF5: cmp byte ptr [r14+2], 1 jnz short loc_20F04 or byte ptr [rbx+10h], 20h mov byte ptr [rbx+39h], 1 loc_20F04: add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_20F13: mov rdx, [rdx] jmp loc_20D1F loc_20F1B: mov rsi, [rsi] jmp loc_20DB6 loc_20F23: mov rsi, [rsi] jmp loc_20E78 loc_20F2B: mov r13, [r13+0] jmp loc_20D59 loc_20F34: mov r13, [r13+0] jmp loc_20E1B loc_20F3D: mov rdi, [rdi] jmp short loc_20ED1 jmp short $+2 loc_20F44: mov rbx, rax mov rdi, [rsp+arg_0]; void * lea rax, [rsp+arg_10] cmp rdi, rax jz short loc_20F5B call __ZdlPv; operator delete(void *) loc_20F5B: mov rdi, rbx call __Unwind_Resume
_QWORD * google::protobuf::MethodDescriptor::CopyTo( google::protobuf::MethodDescriptor *this, google::protobuf::MethodDescriptorProto *a2) { long long v4; // rsi _QWORD *v5; // rdx _QWORD *v6; // r13 _QWORD *v7; // rsi _QWORD *v8; // r12 _QWORD *v9; // r13 _QWORD *v10; // rsi _QWORD *v11; // r12 _QWORD *result; // rax const google::protobuf::MethodOptions *v13; // rsi google::protobuf::MethodOptions *v14; // rdi _QWORD *v15; // rdi void *v16[2]; // [rsp+8h] [rbp-50h] BYREF _BYTE v17[64]; // [rsp+18h] [rbp-40h] BYREF v4 = *((_QWORD *)this + 1); *((_DWORD *)a2 + 4) |= 1u; v5 = (_QWORD *)(*((_QWORD *)a2 + 1) & 0xFFFFFFFFFFFFFFFCLL); if ( (*((_QWORD *)a2 + 1) & 1) != 0 ) v5 = (_QWORD *)*v5; google::protobuf::internal::ArenaStringPtr::Set((char *)a2 + 24, v4, v5); google::protobuf::internal::LazyDescriptor::Once( (google::protobuf::MethodDescriptor *)((char *)this + 24), *((const google::protobuf::ServiceDescriptor **)this + 2)); if ( (*(_BYTE *)(*((_QWORD *)this + 3) + 1LL) & 2) == 0 ) { *((_BYTE *)a2 + 16) |= 2u; v6 = (_QWORD *)(*((_QWORD *)a2 + 1) & 0xFFFFFFFFFFFFFFFCLL); if ( (*((_QWORD *)a2 + 1) & 1) != 0 ) v6 = (_QWORD *)*v6; v16[0] = v17; std::string::_M_construct<char const*>((long long)v16, ".", (long long)""); google::protobuf::internal::ArenaStringPtr::Set((char *)a2 + 32, v16, v6); if ( v16[0] != v17 ) operator delete(v16[0]); } *((_BYTE *)a2 + 16) |= 2u; v7 = (_QWORD *)(*((_QWORD *)a2 + 1) & 0xFFFFFFFFFFFFFFFCLL); if ( (*((_QWORD *)a2 + 1) & 1) != 0 ) v7 = (_QWORD *)*v7; v8 = (_QWORD *)google::protobuf::internal::ArenaStringPtr::Mutable[abi:cxx11]((char *)a2 + 32, v7); google::protobuf::internal::LazyDescriptor::Once( (google::protobuf::MethodDescriptor *)((char *)this + 24), *((const google::protobuf::ServiceDescriptor **)this + 2)); std::string::_M_append( v8, *(_BYTE **)(*(_QWORD *)(*((_QWORD *)this + 3) + 8LL) + 32LL), *(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 3) + 8LL) + 40LL)); google::protobuf::internal::LazyDescriptor::Once( (google::protobuf::MethodDescriptor *)((char *)this + 40), *((const google::protobuf::ServiceDescriptor **)this + 2)); if ( (*(_BYTE *)(*((_QWORD *)this + 5) + 1LL) & 2) == 0 ) { *((_BYTE *)a2 + 16) |= 4u; v9 = (_QWORD *)(*((_QWORD *)a2 + 1) & 0xFFFFFFFFFFFFFFFCLL); if ( (*((_QWORD *)a2 + 1) & 1) != 0 ) v9 = (_QWORD *)*v9; v16[0] = v17; std::string::_M_construct<char const*>((long long)v16, ".", (long long)""); google::protobuf::internal::ArenaStringPtr::Set((char *)a2 + 40, v16, v9); if ( v16[0] != v17 ) operator delete(v16[0]); } *((_BYTE *)a2 + 16) |= 4u; v10 = (_QWORD *)(*((_QWORD *)a2 + 1) & 0xFFFFFFFFFFFFFFFCLL); if ( (*((_QWORD *)a2 + 1) & 1) != 0 ) v10 = (_QWORD *)*v10; v11 = (_QWORD *)google::protobuf::internal::ArenaStringPtr::Mutable[abi:cxx11]((char *)a2 + 40, v10); google::protobuf::internal::LazyDescriptor::Once( (google::protobuf::MethodDescriptor *)((char *)this + 40), *((const google::protobuf::ServiceDescriptor **)this + 2)); result = std::string::_M_append( v11, *(_BYTE **)(*(_QWORD *)(*((_QWORD *)this + 5) + 8LL) + 32LL), *(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 5) + 8LL) + 40LL)); v13 = (const google::protobuf::MethodOptions *)*((_QWORD *)this + 7); if ( v13 != (const google::protobuf::MethodOptions *)&google::protobuf::_MethodOptions_default_instance_ ) { *((_BYTE *)a2 + 16) |= 8u; v14 = (google::protobuf::MethodOptions *)*((_QWORD *)a2 + 6); if ( !v14 ) { v15 = (_QWORD *)(*((_QWORD *)a2 + 1) & 0xFFFFFFFFFFFFFFFCLL); if ( (*((_QWORD *)a2 + 1) & 1) != 0 ) v15 = (_QWORD *)*v15; v14 = (google::protobuf::MethodOptions *)google::protobuf::Arena::CreateMaybeMessage<google::protobuf::MethodOptions>(v15); *((_QWORD *)a2 + 6) = v14; v13 = (const google::protobuf::MethodOptions *)*((_QWORD *)this + 7); } result = (_QWORD *)google::protobuf::MethodOptions::CopyFrom(v14, v13); } if ( *((_BYTE *)this + 1) == 1 ) { *((_BYTE *)a2 + 16) |= 0x10u; *((_BYTE *)a2 + 56) = 1; } if ( *((_BYTE *)this + 2) == 1 ) { *((_BYTE *)a2 + 16) |= 0x20u; *((_BYTE *)a2 + 57) = 1; } return result; }
CopyTo: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,RSI MOV R14,RDI MOV RSI,qword ptr [RDI + 0x8] OR dword ptr [RBX + 0x10],0x1 LEA RDI,[RBX + 0x18] MOV RAX,qword ptr [RBX + 0x8] MOV RDX,RAX AND RDX,-0x4 TEST AL,0x1 JNZ 0x00120f13 LAB_00120d1f: CALL 0x0019308e LEA R15,[R14 + 0x18] MOV RSI,qword ptr [R14 + 0x10] MOV RDI,R15 CALL 0x0013ae44 MOV RAX,qword ptr [R14 + 0x18] TEST byte ptr [RAX + 0x1],0x2 JNZ 0x00120d9f OR byte ptr [RBX + 0x10],0x2 LEA R12,[RBX + 0x20] MOV RAX,qword ptr [RBX + 0x8] MOV R13,RAX AND R13,-0x4 TEST AL,0x1 JNZ 0x00120f2b LAB_00120d59: LEA RAX,[RSP + 0x18] MOV qword ptr [RAX + -0x10],RAX LEA RSI,[0x1b64de] LEA RDX,[0x1b64df] LEA RBP,[RSP + 0x8] MOV RDI,RBP CALL 0x001137ec LAB_00120d7d: MOV RDI,R12 MOV RSI,RBP MOV RDX,R13 CALL 0x0019308e LAB_00120d8b: MOV RDI,qword ptr [RSP + 0x8] LEA RAX,[RSP + 0x18] CMP RDI,RAX JZ 0x00120d9f CALL 0x0010f330 LAB_00120d9f: OR byte ptr [RBX + 0x10],0x2 MOV RAX,qword ptr [RBX + 0x8] MOV RSI,RAX AND RSI,-0x4 TEST AL,0x1 JNZ 0x00120f1b LAB_00120db6: LEA RDI,[RBX + 0x20] CALL 0x0019323a MOV R12,RAX MOV RSI,qword ptr [R14 + 0x10] MOV RDI,R15 CALL 0x0013ae44 MOV RAX,qword ptr [R14 + 0x18] MOV RAX,qword ptr [RAX + 0x8] MOV RSI,qword ptr [RAX + 0x20] MOV RDX,qword ptr [RAX + 0x28] MOV RDI,R12 CALL 0x00113a4e LEA R15,[R14 + 0x28] MOV RSI,qword ptr [R14 + 0x10] MOV RDI,R15 CALL 0x0013ae44 MOV RAX,qword ptr [R14 + 0x28] TEST byte ptr [RAX + 0x1],0x2 JNZ 0x00120e61 OR byte ptr [RBX + 0x10],0x4 LEA R12,[RBX + 0x28] MOV RAX,qword ptr [RBX + 0x8] MOV R13,RAX AND R13,-0x4 TEST AL,0x1 JNZ 0x00120f34 LAB_00120e1b: LEA RAX,[RSP + 0x18] MOV qword ptr [RAX + -0x10],RAX LEA RSI,[0x1b64de] LEA RDX,[0x1b64df] LEA RBP,[RSP + 0x8] MOV RDI,RBP CALL 0x001137ec LAB_00120e3f: MOV RDI,R12 MOV RSI,RBP MOV RDX,R13 CALL 0x0019308e LAB_00120e4d: MOV RDI,qword ptr [RSP + 0x8] LEA RAX,[RSP + 0x18] CMP RDI,RAX JZ 0x00120e61 CALL 0x0010f330 LAB_00120e61: OR byte ptr [RBX + 0x10],0x4 MOV RAX,qword ptr [RBX + 0x8] MOV RSI,RAX AND RSI,-0x4 TEST AL,0x1 JNZ 0x00120f23 LAB_00120e78: LEA RDI,[RBX + 0x28] CALL 0x0019323a MOV R12,RAX MOV RSI,qword ptr [R14 + 0x10] MOV RDI,R15 CALL 0x0013ae44 MOV RAX,qword ptr [R14 + 0x28] MOV RAX,qword ptr [RAX + 0x8] MOV RSI,qword ptr [RAX + 0x20] MOV RDX,qword ptr [RAX + 0x28] MOV RDI,R12 CALL 0x00113a4e MOV RSI,qword ptr [R14 + 0x38] CMP RSI,qword ptr [0x00201f48] JZ 0x00120ee6 OR byte ptr [RBX + 0x10],0x8 MOV RDI,qword ptr [RBX + 0x30] TEST RDI,RDI JNZ 0x00120ee1 MOV RAX,qword ptr [RBX + 0x8] MOV RDI,RAX AND RDI,-0x4 TEST AL,0x1 JNZ 0x00120f3d LAB_00120ed1: CALL 0x00158b50 MOV RDI,RAX MOV qword ptr [RBX + 0x30],RAX MOV RSI,qword ptr [R14 + 0x38] LAB_00120ee1: CALL 0x0015537c LAB_00120ee6: CMP byte ptr [R14 + 0x1],0x1 JNZ 0x00120ef5 OR byte ptr [RBX + 0x10],0x10 MOV byte ptr [RBX + 0x38],0x1 LAB_00120ef5: CMP byte ptr [R14 + 0x2],0x1 JNZ 0x00120f04 OR byte ptr [RBX + 0x10],0x20 MOV byte ptr [RBX + 0x39],0x1 LAB_00120f04: ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00120f13: MOV RDX,qword ptr [RDX] JMP 0x00120d1f LAB_00120f1b: MOV RSI,qword ptr [RSI] JMP 0x00120db6 LAB_00120f23: MOV RSI,qword ptr [RSI] JMP 0x00120e78 LAB_00120f2b: MOV R13,qword ptr [R13] JMP 0x00120d59 LAB_00120f34: MOV R13,qword ptr [R13] JMP 0x00120e1b LAB_00120f3d: MOV RDI,qword ptr [RDI] JMP 0x00120ed1
/* google::protobuf::MethodDescriptor::CopyTo(google::protobuf::MethodDescriptorProto*) const */ void __thiscall google::protobuf::MethodDescriptor::CopyTo(MethodDescriptor *this,MethodDescriptorProto *param_1) { string *psVar1; MethodOptions *this_00; Arena *pAVar2; MethodOptions *pMVar3; int1 *local_50 [2]; int1 local_40 [16]; psVar1 = *(string **)(this + 8); *(uint *)(param_1 + 0x10) = *(uint *)(param_1 + 0x10) | 1; pAVar2 = (Arena *)(*(ulong *)(param_1 + 8) & 0xfffffffffffffffc); if ((*(ulong *)(param_1 + 8) & 1) != 0) { pAVar2 = *(Arena **)pAVar2; } internal::ArenaStringPtr::Set((ArenaStringPtr *)(param_1 + 0x18),psVar1,pAVar2); internal::LazyDescriptor::Once ((LazyDescriptor *)(this + 0x18),*(ServiceDescriptor **)(this + 0x10)); if ((*(byte *)(*(long *)(this + 0x18) + 1) & 2) == 0) { param_1[0x10] = (MethodDescriptorProto)((byte)param_1[0x10] | 2); pAVar2 = (Arena *)(*(ulong *)(param_1 + 8) & 0xfffffffffffffffc); if ((*(ulong *)(param_1 + 8) & 1) != 0) { pAVar2 = *(Arena **)pAVar2; } local_50[0] = local_40; std::__cxx11::string::_M_construct<char_const*>((string *)local_50,".",""); /* try { // try from 00120d7d to 00120d8a has its CatchHandler @ 00120f44 */ internal::ArenaStringPtr::Set((ArenaStringPtr *)(param_1 + 0x20),(string *)local_50,pAVar2); if (local_50[0] != local_40) { operator_delete(local_50[0]); } } param_1[0x10] = (MethodDescriptorProto)((byte)param_1[0x10] | 2); pAVar2 = (Arena *)(*(ulong *)(param_1 + 8) & 0xfffffffffffffffc); if ((*(ulong *)(param_1 + 8) & 1) != 0) { pAVar2 = *(Arena **)pAVar2; } psVar1 = (string *) internal::ArenaStringPtr::Mutable_abi_cxx11_((ArenaStringPtr *)(param_1 + 0x20),pAVar2); internal::LazyDescriptor::Once ((LazyDescriptor *)(this + 0x18),*(ServiceDescriptor **)(this + 0x10)); std::__cxx11::string::_M_append (psVar1,*(char **)(*(long *)(*(long *)(this + 0x18) + 8) + 0x20), *(ulong *)(*(long *)(*(long *)(this + 0x18) + 8) + 0x28)); internal::LazyDescriptor::Once ((LazyDescriptor *)(this + 0x28),*(ServiceDescriptor **)(this + 0x10)); if ((*(byte *)(*(long *)(this + 0x28) + 1) & 2) == 0) { param_1[0x10] = (MethodDescriptorProto)((byte)param_1[0x10] | 4); pAVar2 = (Arena *)(*(ulong *)(param_1 + 8) & 0xfffffffffffffffc); if ((*(ulong *)(param_1 + 8) & 1) != 0) { pAVar2 = *(Arena **)pAVar2; } local_50[0] = local_40; std::__cxx11::string::_M_construct<char_const*>((string *)local_50,".",""); /* try { // try from 00120e3f to 00120e4c has its CatchHandler @ 00120f42 */ internal::ArenaStringPtr::Set((ArenaStringPtr *)(param_1 + 0x28),(string *)local_50,pAVar2); if (local_50[0] != local_40) { operator_delete(local_50[0]); } } param_1[0x10] = (MethodDescriptorProto)((byte)param_1[0x10] | 4); pAVar2 = (Arena *)(*(ulong *)(param_1 + 8) & 0xfffffffffffffffc); if ((*(ulong *)(param_1 + 8) & 1) != 0) { pAVar2 = *(Arena **)pAVar2; } psVar1 = (string *) internal::ArenaStringPtr::Mutable_abi_cxx11_((ArenaStringPtr *)(param_1 + 0x28),pAVar2); internal::LazyDescriptor::Once ((LazyDescriptor *)(this + 0x28),*(ServiceDescriptor **)(this + 0x10)); std::__cxx11::string::_M_append (psVar1,*(char **)(*(long *)(*(long *)(this + 0x28) + 8) + 0x20), *(ulong *)(*(long *)(*(long *)(this + 0x28) + 8) + 0x28)); pMVar3 = *(MethodOptions **)(this + 0x38); if (pMVar3 != (MethodOptions *)PTR__MethodOptions_default_instance__00201f48) { param_1[0x10] = (MethodDescriptorProto)((byte)param_1[0x10] | 8); this_00 = *(MethodOptions **)(param_1 + 0x30); if (this_00 == (MethodOptions *)0x0) { pAVar2 = (Arena *)(*(ulong *)(param_1 + 8) & 0xfffffffffffffffc); if ((*(ulong *)(param_1 + 8) & 1) != 0) { pAVar2 = *(Arena **)pAVar2; } this_00 = Arena::CreateMaybeMessage<google::protobuf::MethodOptions>(pAVar2); *(MethodOptions **)(param_1 + 0x30) = this_00; pMVar3 = *(MethodOptions **)(this + 0x38); } MethodOptions::CopyFrom(this_00,pMVar3); } if (this[1] == (MethodDescriptor)0x1) { param_1[0x10] = (MethodDescriptorProto)((byte)param_1[0x10] | 0x10); param_1[0x38] = (MethodDescriptorProto)0x1; } if (this[2] == (MethodDescriptor)0x1) { param_1[0x10] = (MethodDescriptorProto)((byte)param_1[0x10] | 0x20); param_1[0x39] = (MethodDescriptorProto)0x1; } return; }
52,824
get_key_idx(gguf_context const*, char const*)
monkey531[P]llama/examples/llava/clip.cpp
static int get_key_idx(const gguf_context * ctx, const char * key) { int i = gguf_find_key(ctx, key); if (i == -1) { LOG_ERR("key %s not found in file\n", key); throw std::runtime_error(format("Missing required key: %s", key)); } return i; }
O0
cpp
get_key_idx(gguf_context const*, char const*): subq $0x58, %rsp movq %rdi, 0x50(%rsp) movq %rsi, 0x48(%rsp) movq 0x50(%rsp), %rdi movq 0x48(%rsp), %rsi callq 0x7a8f0 movl %eax, 0x44(%rsp) cmpl $-0x1, 0x44(%rsp) jne 0x8f866 jmp 0x8f7ae movq 0x7c773(%rip), %rax # 0x10bf28 movq (%rax), %rdi movq 0x48(%rsp), %rdx leaq 0x5d988(%rip), %rsi # 0xed14c movb $0x0, %al callq 0x7aca0 movb $0x1, 0x13(%rsp) movl $0x10, %edi callq 0x74a80 movq %rax, 0x8(%rsp) movq 0x48(%rsp), %rdx leaq 0x5d97b(%rip), %rsi # 0xed166 xorl %eax, %eax leaq 0x20(%rsp), %rdi callq 0x8f3d0 jmp 0x8f7f9 movq 0x8(%rsp), %rdi leaq 0x20(%rsp), %rsi callq 0x7bf40 jmp 0x8f80a movq 0x8(%rsp), %rdi movb $0x0, 0x13(%rsp) movq 0x7c7dd(%rip), %rsi # 0x10bff8 movq 0x7c6a6(%rip), %rdx # 0x10bec8 callq 0x7c810 jmp 0x8f879 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x18(%rsp) movl %eax, 0x14(%rsp) jmp 0x8f851 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x18(%rsp) movl %eax, 0x14(%rsp) leaq 0x20(%rsp), %rdi callq 0x75a10 testb $0x1, 0x13(%rsp) jne 0x8f85a jmp 0x8f864 movq 0x8(%rsp), %rdi callq 0x76340 jmp 0x8f86f movl 0x44(%rsp), %eax addq $0x58, %rsp retq movq 0x18(%rsp), %rdi callq 0x7cd60 nopl (%rax)
_ZL11get_key_idxPK12gguf_contextPKc: sub rsp, 58h mov [rsp+58h+var_8], rdi mov [rsp+58h+var_10], rsi mov rdi, [rsp+58h+var_8] mov rsi, [rsp+58h+var_10] call _gguf_find_key mov [rsp+58h+var_14], eax cmp [rsp+58h+var_14], 0FFFFFFFFh jnz loc_8F866 jmp short $+2 loc_8F7AE: mov rax, cs:stderr_ptr mov rdi, [rax] mov rdx, [rsp+58h+var_10] lea rsi, aKeySNotFoundIn; "key %s not found in file\n" mov al, 0 call _fprintf mov [rsp+58h+var_45], 1 mov edi, 10h; thrown_size call ___cxa_allocate_exception mov [rsp+58h+var_50], rax mov rdx, [rsp+58h+var_10] lea rsi, aMissingRequire; "Missing required key: %s" xor eax, eax lea rdi, [rsp+58h+var_38] call _ZL6formatB5cxx11PKcz; format(char const*,...) jmp short $+2 loc_8F7F9: mov rdi, [rsp+58h+var_50] lea rsi, [rsp+58h+var_38] call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) jmp short $+2 loc_8F80A: mov rdi, [rsp+58h+var_50]; void * mov [rsp+58h+var_45], 0 mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) call ___cxa_throw jmp short loc_8F879 mov rcx, rax mov eax, edx mov [rsp+arg_10], rcx mov [rsp+arg_C], eax jmp short loc_8F851 mov rcx, rax mov eax, edx mov [rsp+arg_10], rcx mov [rsp+arg_C], eax lea rdi, [rsp+arg_18] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_8F851: test [rsp+arg_B], 1 jnz short loc_8F85A jmp short loc_8F864 loc_8F85A: mov rdi, [rsp+arg_0]; void * call ___cxa_free_exception loc_8F864: jmp short loc_8F86F loc_8F866: mov eax, [rsp+58h+var_14] add rsp, 58h retn loc_8F86F: mov rdi, [rsp+arg_10] call __Unwind_Resume loc_8F879: nop dword ptr [rax+00000000h]
long long get_key_idx( long long a1, const char *a2, __m128 a3, __m128 a4, __m128 a5, __m128 a6, double a7, double a8, __m128 a9, __m128 a10) { long long v10; // rcx long long v11; // r8 long long v12; // r9 __m128 v13; // xmm4 __m128 v14; // xmm5 char v16; // [rsp+0h] [rbp-58h] void *exception; // [rsp+8h] [rbp-50h] _BYTE v18[36]; // [rsp+20h] [rbp-38h] BYREF unsigned int key; // [rsp+44h] [rbp-14h] const char *v20; // [rsp+48h] [rbp-10h] long long v21; // [rsp+50h] [rbp-8h] v21 = a1; v20 = a2; key = gguf_find_key(a1, a2); if ( key == -1 ) { fprintf(stderr, "key %s not found in file\n", v20); exception = __cxa_allocate_exception(0x10uLL); format[abi:cxx11]( (long long)v18, (long long)"Missing required key: %s", (long long)v20, v10, v11, v12, a3, a4, a5, a6, v13, v14, a9, a10, v16); std::runtime_error::runtime_error(exception, v18); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } return key; }
get_key_idx: SUB RSP,0x58 MOV qword ptr [RSP + 0x50],RDI MOV qword ptr [RSP + 0x48],RSI MOV RDI,qword ptr [RSP + 0x50] MOV RSI,qword ptr [RSP + 0x48] CALL 0x0017a8f0 MOV dword ptr [RSP + 0x44],EAX CMP dword ptr [RSP + 0x44],-0x1 JNZ 0x0018f866 JMP 0x0018f7ae LAB_0018f7ae: MOV RAX,qword ptr [0x0020bf28] MOV RDI,qword ptr [RAX] MOV RDX,qword ptr [RSP + 0x48] LEA RSI,[0x1ed14c] MOV AL,0x0 CALL 0x0017aca0 MOV byte ptr [RSP + 0x13],0x1 MOV EDI,0x10 CALL 0x00174a80 MOV qword ptr [RSP + 0x8],RAX MOV RDX,qword ptr [RSP + 0x48] LAB_0018f7e4: LEA RSI,[0x1ed166] XOR EAX,EAX LEA RDI,[RSP + 0x20] CALL 0x0018f3d0 JMP 0x0018f7f9 LAB_0018f7f9: MOV RDI,qword ptr [RSP + 0x8] LEA RSI,[RSP + 0x20] CALL 0x0017bf40 JMP 0x0018f80a LAB_0018f80a: MOV RDI,qword ptr [RSP + 0x8] MOV byte ptr [RSP + 0x13],0x0 MOV RSI,qword ptr [0x0020bff8] MOV RDX,qword ptr [0x0020bec8] CALL 0x0017c810 LAB_0018f866: MOV EAX,dword ptr [RSP + 0x44] ADD RSP,0x58 RET
/* get_key_idx(gguf_context const*, char const*) */ int get_key_idx(gguf_context *param_1,char *param_2) { runtime_error *this; string local_38 [36]; int local_14; char *local_10; gguf_context *local_8; local_10 = param_2; local_8 = param_1; local_14 = gguf_find_key(param_1,param_2); if (local_14 == -1) { fprintf(*(FILE **)PTR_stderr_0020bf28,"key %s not found in file\n",local_10); this = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0018f7e4 to 0018f7f6 has its CatchHandler @ 0018f829 */ format_abi_cxx11_((char *)local_38,"Missing required key: %s",local_10); /* try { // try from 0018f7f9 to 0018f826 has its CatchHandler @ 0018f839 */ std::runtime_error::runtime_error(this,local_38); /* WARNING: Subroutine does not return */ __cxa_throw(this,PTR_typeinfo_0020bff8,PTR__runtime_error_0020bec8); } return local_14; }
52,825
get_key_idx(gguf_context const*, char const*)
monkey531[P]llama/examples/llava/clip.cpp
static int get_key_idx(const gguf_context * ctx, const char * key) { int i = gguf_find_key(ctx, key); if (i == -1) { LOG_ERR("key %s not found in file\n", key); throw std::runtime_error(format("Missing required key: %s", key)); } return i; }
O3
cpp
get_key_idx(gguf_context const*, char const*): pushq %rbp pushq %r14 pushq %rbx subq $0x20, %rsp movq %rsi, %r14 callq 0x1ba60 cmpl $-0x1, %eax je 0x25c68 addq $0x20, %rsp popq %rbx popq %r14 popq %rbp retq movq 0x342c1(%rip), %rax # 0x59f30 movq (%rax), %rdi leaq 0x2678c(%rip), %rsi # 0x4c405 movq %r14, %rdx xorl %eax, %eax callq 0x1bb30 movl $0x10, %edi callq 0x1a7d0 movq %rax, %rbx leaq 0x26788(%rip), %rsi # 0x4c41f movq %rsp, %rdi movq %r14, %rdx xorl %eax, %eax callq 0x25ab1 movb $0x1, %bpl movq %rsp, %rsi movq %rbx, %rdi callq 0x1bf90 xorl %ebp, %ebp movq 0x3433d(%rip), %rsi # 0x59ff8 movq 0x3420e(%rip), %rdx # 0x59ed0 movq %rbx, %rdi callq 0x1c200 movq %rax, %r14 leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x25ce8 movq 0x10(%rsp), %rsi incq %rsi callq 0x1b320 testb %bpl, %bpl jne 0x25cf2 jmp 0x25cfa movq %rax, %r14 movq %rbx, %rdi callq 0x1acb0 movq %r14, %rdi callq 0x1c320
_ZL11get_key_idxPK12gguf_contextPKc: push rbp push r14 push rbx sub rsp, 20h mov r14, rsi call _gguf_find_key cmp eax, 0FFFFFFFFh jz short loc_25C68 add rsp, 20h pop rbx pop r14 pop rbp retn loc_25C68: mov rax, cs:stderr_ptr mov rdi, [rax] lea rsi, aKeySNotFoundIn; "key %s not found in file\n" mov rdx, r14 xor eax, eax call _fprintf mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rsi, aMissingRequire; "Missing required key: %s" mov rdi, rsp mov rdx, r14 xor eax, eax call _ZL6formatB5cxx11PKcz; format(char const*,...) mov bpl, 1 mov rsi, rsp mov rdi, rbx call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) xor ebp, ebp mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rax, [rsp+38h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_25CE8 mov rsi, [rsp+38h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_25CE8: test bpl, bpl jnz short loc_25CF2 jmp short loc_25CFA mov r14, rax loc_25CF2: mov rdi, rbx; void * call ___cxa_free_exception loc_25CFA: mov rdi, r14 call __Unwind_Resume
long long get_key_idx( long long a1, const char *a2, __m128 a3, __m128 a4, __m128 a5, __m128 a6, double a7, double a8, __m128 a9, __m128 a10) { long long result; // rax void *exception; // rbx long long v12; // rcx long long v13; // r8 long long v14; // r9 __m128 v15; // xmm4 __m128 v16; // xmm5 _QWORD v17[2]; // [rsp+0h] [rbp-38h] BYREF result = gguf_find_key(a1, a2); if ( (_DWORD)result == -1 ) { fprintf(stderr, "key %s not found in file\n", a2); exception = __cxa_allocate_exception(0x10uLL); format[abi:cxx11]( v17, (long long)"Missing required key: %s", (long long)a2, v12, v13, v14, a3, a4, a5, a6, v15, v16, a9, a10, v17[0]); std::runtime_error::runtime_error(exception, v17); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } return result; }
get_key_idx: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x20 MOV R14,RSI CALL 0x0011ba60 CMP EAX,-0x1 JZ 0x00125c68 ADD RSP,0x20 POP RBX POP R14 POP RBP RET LAB_00125c68: MOV RAX,qword ptr [0x00159f30] MOV RDI,qword ptr [RAX] LEA RSI,[0x14c405] MOV RDX,R14 XOR EAX,EAX CALL 0x0011bb30 MOV EDI,0x10 CALL 0x0011a7d0 MOV RBX,RAX LAB_00125c90: LEA RSI,[0x14c41f] MOV RDI,RSP MOV RDX,R14 XOR EAX,EAX CALL 0x00125ab1 MOV BPL,0x1 LAB_00125ca7: MOV RSI,RSP MOV RDI,RBX CALL 0x0011bf90 XOR EBP,EBP MOV RSI,qword ptr [0x00159ff8] MOV RDX,qword ptr [0x00159ed0] MOV RDI,RBX CALL 0x0011c200
/* get_key_idx(gguf_context const*, char const*) */ void get_key_idx(gguf_context *param_1,char *param_2) { int iVar1; runtime_error *this; string asStack_38 [32]; iVar1 = gguf_find_key(); if (iVar1 != -1) { return; } fprintf(*(FILE **)PTR_stderr_00159f30,"key %s not found in file\n",param_2); this = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 00125c90 to 00125ca3 has its CatchHandler @ 00125cef */ format_abi_cxx11_((char *)asStack_38,"Missing required key: %s",param_2); /* try { // try from 00125ca7 to 00125cc9 has its CatchHandler @ 00125cca */ std::runtime_error::runtime_error(this,asStack_38); /* WARNING: Subroutine does not return */ __cxa_throw(this,PTR_typeinfo_00159ff8,PTR__runtime_error_00159ed0); }
52,826
translog_wait_for_closing
eloqsql/storage/maria/ma_loghandler.c
static void translog_wait_for_closing(struct st_translog_buffer *buffer) { DBUG_ENTER("translog_wait_for_closing"); DBUG_PRINT("enter", ("Buffer #%u %p copies in progress: %u " "is closing %u File: %d size: %lu", (uint) buffer->buffer_no, buffer, (uint) buffer->copy_to_buffer_in_progress, (uint) buffer->is_closing_buffer, (buffer->file ? buffer->file->handler.file : -1), (ulong) buffer->size)); translog_buffer_lock_assert_owner(buffer); while (buffer->is_closing_buffer) { DBUG_PRINT("info", ("wait for writers... buffer: #%u %p", (uint) buffer->buffer_no, buffer)); DBUG_ASSERT(buffer->file != NULL); mysql_cond_wait(&buffer->waiting_filling_buffer, &buffer->mutex); DBUG_PRINT("info", ("wait for writers done buffer: #%u %p", (uint) buffer->buffer_no, buffer)); } DBUG_VOID_RETURN; }
O0
c
translog_wait_for_closing: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) jmp 0x38f8e jmp 0x38f90 movq -0x8(%rbp), %rax cmpb $0x0, 0x1000d8(%rax) je 0x38fd0 jmp 0x38f9f jmp 0x38fa1 jmp 0x38fa3 jmp 0x38fa5 movq -0x8(%rbp), %rdi addq $0x100040, %rdi # imm = 0x100040 movq -0x8(%rbp), %rsi addq $0x100090, %rsi # imm = 0x100090 leaq 0x11e3e8(%rip), %rdx # 0x1573aa movl $0x7e6, %ecx # imm = 0x7E6 callq 0x2c350 jmp 0x38fce jmp 0x38f90 jmp 0x38fd2 jmp 0x38fd4 addq $0x10, %rsp popq %rbp retq nopw (%rax,%rax)
translog_wait_for_closing: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi jmp short $+2 loc_38F8E: jmp short $+2 loc_38F90: mov rax, [rbp+var_8] cmp byte ptr [rax+1000D8h], 0 jz short loc_38FD0 jmp short $+2 loc_38F9F: jmp short $+2 loc_38FA1: jmp short $+2 loc_38FA3: jmp short $+2 loc_38FA5: mov rdi, [rbp+var_8] add rdi, 100040h mov rsi, [rbp+var_8] add rsi, 100090h lea rdx, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"... mov ecx, 7E6h call inline_mysql_cond_wait jmp short $+2 loc_38FCE: jmp short loc_38F90 loc_38FD0: jmp short $+2 loc_38FD2: jmp short $+2 loc_38FD4: add rsp, 10h pop rbp retn
long long translog_wait_for_closing(long long a1) { long long result; // rax while ( 1 ) { result = a1; if ( !*(_BYTE *)(a1 + 1048792) ) break; inline_mysql_cond_wait( a1 + 1048640, a1 + 1048720, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c", 0x7E6u); } return result; }
translog_wait_for_closing: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI JMP 0x00138f8e LAB_00138f8e: JMP 0x00138f90 LAB_00138f90: MOV RAX,qword ptr [RBP + -0x8] CMP byte ptr [RAX + 0x1000d8],0x0 JZ 0x00138fd0 JMP 0x00138f9f LAB_00138f9f: JMP 0x00138fa1 LAB_00138fa1: JMP 0x00138fa3 LAB_00138fa3: JMP 0x00138fa5 LAB_00138fa5: MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x100040 MOV RSI,qword ptr [RBP + -0x8] ADD RSI,0x100090 LEA RDX,[0x2573aa] MOV ECX,0x7e6 CALL 0x0012c350 JMP 0x00138fce LAB_00138fce: JMP 0x00138f90 LAB_00138fd0: JMP 0x00138fd2 LAB_00138fd2: JMP 0x00138fd4 LAB_00138fd4: ADD RSP,0x10 POP RBP RET
void translog_wait_for_closing(long param_1) { while (*(char *)((long)&Elf64_Phdr_ARRAY_00100040[2].p_memsz + param_1) != '\0') { inline_mysql_cond_wait ((long)&Elf64_Phdr_ARRAY_00100040[0].p_type + param_1,param_1 + 0x100090, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",0x7e6); } return; }
52,827
mi_recinfo_write
eloqsql/storage/myisam/mi_open.c
uint mi_recinfo_write(File file, MI_COLUMNDEF *recinfo) { uchar buff[MI_COLUMNDEF_SIZE]; uchar *ptr=buff; mi_int2store(ptr,recinfo->type); ptr +=2; mi_int2store(ptr,recinfo->length); ptr +=2; *ptr++ = recinfo->null_bit; mi_int2store(ptr,recinfo->null_pos); ptr+= 2; return mysql_file_write(file, buff, (size_t) (ptr-buff), MYF(MY_NABP)) != 0; }
O0
c
mi_recinfo_write: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movl %edi, -0x14(%rbp) movq %rsi, -0x20(%rbp) leaq -0xf(%rbp), %rcx movq %rcx, -0x28(%rbp) movq -0x20(%rbp), %rax movl (%rax), %eax movl %eax, -0x2c(%rbp) movb -0x2c(%rbp), %dl movq -0x28(%rbp), %rax movb %dl, 0x1(%rax) movb -0x2b(%rbp), %dl movq -0x28(%rbp), %rax movb %dl, (%rax) movq -0x28(%rbp), %rax addq $0x2, %rax movq %rax, -0x28(%rbp) movq -0x20(%rbp), %rax movzwl 0x4(%rax), %eax movl %eax, -0x30(%rbp) movb -0x30(%rbp), %dl movq -0x28(%rbp), %rax movb %dl, 0x1(%rax) movb -0x2f(%rbp), %dl movq -0x28(%rbp), %rax movb %dl, (%rax) movq -0x28(%rbp), %rax addq $0x2, %rax movq %rax, -0x28(%rbp) movq -0x20(%rbp), %rax movb 0xc(%rax), %dl movq -0x28(%rbp), %rax movq %rax, %rsi incq %rsi movq %rsi, -0x28(%rbp) movb %dl, (%rax) movq -0x20(%rbp), %rax movzwl 0xe(%rax), %eax movl %eax, -0x34(%rbp) movb -0x34(%rbp), %dl movq -0x28(%rbp), %rax movb %dl, 0x1(%rax) movb -0x33(%rbp), %dl movq -0x28(%rbp), %rax movb %dl, (%rax) movq -0x28(%rbp), %rax addq $0x2, %rax movq %rax, -0x28(%rbp) movl -0x14(%rbp), %edx movq -0x28(%rbp), %r8 subq %rcx, %r8 leaq 0x99e94(%rip), %rdi # 0x15399c movl $0x4e3, %esi # imm = 0x4E3 movl $0x4, %r9d callq 0xb8820 testq %rax, %rax setne %al movzbl %al, %eax movl %eax, -0x38(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0xb9b3f movl -0x38(%rbp), %eax addq $0x40, %rsp popq %rbp retq callq 0x2a250 nopw %cs:(%rax,%rax)
mi_recinfo_write: push rbp mov rbp, rsp sub rsp, 40h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_14], edi mov [rbp+var_20], rsi lea rcx, [rbp+var_F] mov [rbp+var_28], rcx mov rax, [rbp+var_20] mov eax, [rax] mov [rbp+var_2C], eax mov dl, byte ptr [rbp+var_2C] mov rax, [rbp+var_28] mov [rax+1], dl mov dl, byte ptr [rbp+var_2C+1] mov rax, [rbp+var_28] mov [rax], dl mov rax, [rbp+var_28] add rax, 2 mov [rbp+var_28], rax mov rax, [rbp+var_20] movzx eax, word ptr [rax+4] mov [rbp+var_30], eax mov dl, byte ptr [rbp+var_30] mov rax, [rbp+var_28] mov [rax+1], dl mov dl, byte ptr [rbp+var_30+1] mov rax, [rbp+var_28] mov [rax], dl mov rax, [rbp+var_28] add rax, 2 mov [rbp+var_28], rax mov rax, [rbp+var_20] mov dl, [rax+0Ch] mov rax, [rbp+var_28] mov rsi, rax inc rsi mov [rbp+var_28], rsi mov [rax], dl mov rax, [rbp+var_20] movzx eax, word ptr [rax+0Eh] mov [rbp+var_34], eax mov dl, byte ptr [rbp+var_34] mov rax, [rbp+var_28] mov [rax+1], dl mov dl, byte ptr [rbp+var_34+1] mov rax, [rbp+var_28] mov [rax], dl mov rax, [rbp+var_28] add rax, 2 mov [rbp+var_28], rax mov edx, [rbp+var_14] mov r8, [rbp+var_28] sub r8, rcx lea rdi, aWorkspaceLlm4b_29; "/workspace/llm4binary/github2025/eloqsq"... mov esi, 4E3h mov r9d, 4 call inline_mysql_file_write_2 test rax, rax setnz al movzx eax, al mov [rbp+var_38], eax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_B9B3F mov eax, [rbp+var_38] add rsp, 40h pop rbp retn loc_B9B3F: call ___stack_chk_fail
_BOOL8 mi_recinfo_write(unsigned int a1, long long a2) { __int16 v2; // kr00_2 __int16 v3; // kr02_2 __int16 v4; // kr04_2 _BYTE v6[7]; // [rsp+31h] [rbp-Fh] BYREF unsigned long long v7; // [rsp+38h] [rbp-8h] v7 = __readfsqword(0x28u); v2 = *(_DWORD *)a2; v6[0] = HIBYTE(v2); v6[1] = v2; v3 = *(_WORD *)(a2 + 4); v6[2] = HIBYTE(v3); v6[3] = v3; v6[4] = *(_BYTE *)(a2 + 12); v4 = *(_WORD *)(a2 + 14); v6[5] = HIBYTE(v4); v6[6] = v4; return inline_mysql_file_write_2( (long long)"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_open.c", 0x4E3u, a1, (long long)v6, 7LL, 4LL) != 0; }
mi_recinfo_write: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV dword ptr [RBP + -0x14],EDI MOV qword ptr [RBP + -0x20],RSI LEA RCX,[RBP + -0xf] MOV qword ptr [RBP + -0x28],RCX MOV RAX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x2c],EAX MOV DL,byte ptr [RBP + -0x2c] MOV RAX,qword ptr [RBP + -0x28] MOV byte ptr [RAX + 0x1],DL MOV DL,byte ptr [RBP + -0x2b] MOV RAX,qword ptr [RBP + -0x28] MOV byte ptr [RAX],DL MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x2 MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,word ptr [RAX + 0x4] MOV dword ptr [RBP + -0x30],EAX MOV DL,byte ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x28] MOV byte ptr [RAX + 0x1],DL MOV DL,byte ptr [RBP + -0x2f] MOV RAX,qword ptr [RBP + -0x28] MOV byte ptr [RAX],DL MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x2 MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x20] MOV DL,byte ptr [RAX + 0xc] MOV RAX,qword ptr [RBP + -0x28] MOV RSI,RAX INC RSI MOV qword ptr [RBP + -0x28],RSI MOV byte ptr [RAX],DL MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,word ptr [RAX + 0xe] MOV dword ptr [RBP + -0x34],EAX MOV DL,byte ptr [RBP + -0x34] MOV RAX,qword ptr [RBP + -0x28] MOV byte ptr [RAX + 0x1],DL MOV DL,byte ptr [RBP + -0x33] MOV RAX,qword ptr [RBP + -0x28] MOV byte ptr [RAX],DL MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x2 MOV qword ptr [RBP + -0x28],RAX MOV EDX,dword ptr [RBP + -0x14] MOV R8,qword ptr [RBP + -0x28] SUB R8,RCX LEA RDI,[0x25399c] MOV ESI,0x4e3 MOV R9D,0x4 CALL 0x001b8820 TEST RAX,RAX SETNZ AL MOVZX EAX,AL MOV dword ptr [RBP + -0x38],EAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x001b9b3f MOV EAX,dword ptr [RBP + -0x38] ADD RSP,0x40 POP RBP RET LAB_001b9b3f: CALL 0x0012a250
bool mi_recinfo_write(int4 param_1,int4 *param_2) { long lVar1; long in_FS_OFFSET; int1 local_3c; int1 uStack_3b; int1 local_38; int1 uStack_37; int1 local_34; int1 uStack_33; int1 local_17; int1 local_16; int1 local_15; int1 local_14; int1 local_13; int1 local_12; int1 local_11; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_34 = (int1)*param_2; local_16 = local_34; uStack_33 = (int1)((uint)*param_2 >> 8); local_17 = uStack_33; local_38 = (int1)*(int2 *)(param_2 + 1); local_14 = local_38; uStack_37 = (int1)((ushort)*(int2 *)(param_2 + 1) >> 8); local_15 = uStack_37; local_13 = *(int1 *)(param_2 + 3); local_3c = (int1)*(int2 *)((long)param_2 + 0xe); local_11 = local_3c; uStack_3b = (int1)((ushort)*(int2 *)((long)param_2 + 0xe) >> 8); local_12 = uStack_3b; lVar1 = inline_mysql_file_write ("/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_open.c",0x4e3, param_1,&local_17,(long)&local_10 - (long)&local_17,4); if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return lVar1 != 0; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
52,828
my_mb_wc_gb2312
eloqsql/strings/ctype-gb2312.c
static int my_mb_wc_gb2312(CHARSET_INFO *cs __attribute__((unused)), my_wc_t *pwc, const uchar *s, const uchar *e){ int hi; if (s >= e) return MY_CS_TOOSMALL; if ((hi= s[0]) < 0x80) { pwc[0]=hi; return 1; } if (s+2>e) return MY_CS_TOOSMALL2; if (!IS_MB2_CHAR(hi, s[1])) return MY_CS_ILSEQ; if (!(pwc[0]=func_gb2312_uni_onechar(((hi<<8)+s[1])&0x7F7F))) return -2; return 2; }
O3
c
my_mb_wc_gb2312: movl $0xffffff9b, %eax # imm = 0xFFFFFF9B cmpq %rcx, %rdx jae 0x539f8 movsbq (%rdx), %rdi testq %rdi, %rdi js 0x539d4 movq %rdi, (%rsi) movl $0x1, %eax retq leaq 0x2(%rdx), %r8 movl $0xffffff9a, %eax # imm = 0xFFFFFF9A cmpq %rcx, %r8 ja 0x539f8 leal 0x5f(%rdi), %ecx xorl %eax, %eax cmpb $0x56, %cl ja 0x539f8 movzbl 0x1(%rdx), %ecx leal 0x1(%rcx), %edx cmpb $-0x5e, %dl jae 0x539f9 retq pushq %rbp movq %rsp, %rbp movzbl %dil, %eax shll $0x8, %eax orl %ecx, %eax andl $0x7f7f, %eax # imm = 0x7F7F leal -0x2121(%rax), %ecx cmpl $0x537, %ecx # imm = 0x537 ja 0x53a24 movl %ecx, %eax leaq 0x1318ce(%rip), %rcx # 0x1852f0 jmp 0x53a52 leal -0x2721(%rax), %ecx cmpl $0x24e, %ecx # imm = 0x24E ja 0x53a3d movl %ecx, %eax leaq 0x132325(%rip), %rcx # 0x185d60 jmp 0x53a52 addl $0xffffcfdf, %eax # imm = 0xFFFFCFDF cmpl $0x475e, %eax # imm = 0x475E jae 0x53a6b movl %eax, %eax leaq 0x1327ae(%rip), %rcx # 0x186200 leaq (%rcx,%rax,2), %rax movzwl (%rax), %eax movzwl %ax, %ecx movq %rcx, (%rsi) movl $0x2, %eax testw %cx, %cx jne 0x53a77 jmp 0x53a72 movq $0x0, (%rsi) movl $0xfffffffe, %eax # imm = 0xFFFFFFFE popq %rbp retq
my_mb_wc_gb2312: mov eax, 0FFFFFF9Bh cmp rdx, rcx jnb short locret_539F8 movsx rdi, byte ptr [rdx] test rdi, rdi js short loc_539D4 mov [rsi], rdi mov eax, 1 retn loc_539D4: lea r8, [rdx+2] mov eax, 0FFFFFF9Ah cmp r8, rcx ja short locret_539F8 lea ecx, [rdi+5Fh] xor eax, eax cmp cl, 56h ; 'V' ja short locret_539F8 movzx ecx, byte ptr [rdx+1] lea edx, [rcx+1] cmp dl, 0A2h jnb short loc_539F9 locret_539F8: retn loc_539F9: push rbp mov rbp, rsp movzx eax, dil shl eax, 8 or eax, ecx and eax, 7F7Fh lea ecx, [rax-2121h] cmp ecx, 537h ja short loc_53A24 mov eax, ecx lea rcx, tab_gb2312_uni0 jmp short loc_53A52 loc_53A24: lea ecx, [rax-2721h] cmp ecx, 24Eh ja short loc_53A3D mov eax, ecx lea rcx, tab_gb2312_uni1 jmp short loc_53A52 loc_53A3D: add eax, 0FFFFCFDFh cmp eax, 475Eh jnb short loc_53A6B mov eax, eax lea rcx, tab_gb2312_uni2 loc_53A52: lea rax, [rcx+rax*2] movzx eax, word ptr [rax] movzx ecx, ax mov [rsi], rcx mov eax, 2 test cx, cx jnz short loc_53A77 jmp short loc_53A72 loc_53A6B: mov qword ptr [rsi], 0 loc_53A72: mov eax, 0FFFFFFFEh loc_53A77: pop rbp retn
long long my_mb_wc_gb2312(long long a1, long long *a2, char *a3, unsigned long long a4) { long long result; // rax long long v5; // rdi unsigned __int16 v6; // cx int v7; // eax long long v8; // rax unsigned __int16 *v9; // rcx long long v10; // rcx result = 4294967195LL; if ( (unsigned long long)a3 < a4 ) { v5 = *a3; if ( v5 >= 0 ) { *a2 = v5; return 1LL; } result = 4294967194LL; if ( (unsigned long long)(a3 + 2) <= a4 ) { result = 0LL; if ( (unsigned __int8)(v5 + 95) <= 0x56u ) { v6 = (unsigned __int8)a3[1]; if ( (unsigned __int8)(v6 + 1) >= 0xA2u ) { v7 = (v6 | (unsigned __int16)((unsigned __int8)v5 << 8)) & 0x7F7F; if ( (unsigned int)(v7 - 8481) > 0x537 ) { if ( (unsigned int)(v7 - 10017) > 0x24E ) { LODWORD(v8) = v7 - 12321; if ( (unsigned int)v8 >= 0x475E ) { *a2 = 0LL; return 4294967294LL; } v8 = (unsigned int)v8; v9 = (unsigned __int16 *)&tab_gb2312_uni2; } else { v8 = (unsigned int)(v7 - 10017); v9 = (unsigned __int16 *)&tab_gb2312_uni1; } } else { v8 = (unsigned int)(v7 - 8481); v9 = (unsigned __int16 *)&tab_gb2312_uni0; } v10 = v9[v8]; *a2 = v10; result = 2LL; if ( (_WORD)v10 ) return result; return 4294967294LL; } } } } return result; }
my_mb_wc_gb2312: MOV EAX,0xffffff9b CMP RDX,RCX JNC 0x001539f8 MOVSX RDI,byte ptr [RDX] TEST RDI,RDI JS 0x001539d4 MOV qword ptr [RSI],RDI MOV EAX,0x1 RET LAB_001539d4: LEA R8,[RDX + 0x2] MOV EAX,0xffffff9a CMP R8,RCX JA 0x001539f8 LEA ECX,[RDI + 0x5f] XOR EAX,EAX CMP CL,0x56 JA 0x001539f8 MOVZX ECX,byte ptr [RDX + 0x1] LEA EDX,[RCX + 0x1] CMP DL,0xa2 JNC 0x001539f9 LAB_001539f8: RET LAB_001539f9: PUSH RBP MOV RBP,RSP MOVZX EAX,DIL SHL EAX,0x8 OR EAX,ECX AND EAX,0x7f7f LEA ECX,[RAX + -0x2121] CMP ECX,0x537 JA 0x00153a24 MOV EAX,ECX LEA RCX,[0x2852f0] JMP 0x00153a52 LAB_00153a24: LEA ECX,[RAX + -0x2721] CMP ECX,0x24e JA 0x00153a3d MOV EAX,ECX LEA RCX,[0x285d60] JMP 0x00153a52 LAB_00153a3d: ADD EAX,0xffffcfdf CMP EAX,0x475e JNC 0x00153a6b MOV EAX,EAX LEA RCX,[0x286200] LAB_00153a52: LEA RAX,[RCX + RAX*0x2] MOVZX EAX,word ptr [RAX] MOVZX ECX,AX MOV qword ptr [RSI],RCX MOV EAX,0x2 TEST CX,CX JNZ 0x00153a77 JMP 0x00153a72 LAB_00153a6b: MOV qword ptr [RSI],0x0 LAB_00153a72: MOV EAX,0xfffffffe LAB_00153a77: POP RBP RET
int8 my_mb_wc_gb2312(int8 param_1,ulong *param_2,char *param_3,char *param_4) { char cVar1; ushort uVar2; uint uVar3; ulong uVar4; int1 *puVar5; if (param_4 <= param_3) { return 0xffffff9b; } cVar1 = *param_3; if (-1 < (long)cVar1) { *param_2 = (long)cVar1; return 1; } if (param_4 < param_3 + 2) { return 0xffffff9a; } if ((byte)(cVar1 + 0x5fU) < 0x57) { if ((byte)(param_3[1] + 1U) < 0xa2) { return 0; } uVar3 = CONCAT11(cVar1,param_3[1]) & 0x7f7f; if (uVar3 - 0x2121 < 0x538) { uVar4 = (ulong)(uVar3 - 0x2121); puVar5 = tab_gb2312_uni0; } else if (uVar3 - 0x2721 < 0x24f) { uVar4 = (ulong)(uVar3 - 0x2721); puVar5 = tab_gb2312_uni1; } else { if (0x475d < uVar3 - 0x3021) { *param_2 = 0; return 0xfffffffe; } uVar4 = (ulong)(uVar3 - 0x3021); puVar5 = tab_gb2312_uni2; } uVar2 = *(ushort *)(puVar5 + uVar4 * 2); *param_2 = (ulong)uVar2; if (uVar2 == 0) { return 0xfffffffe; } return 2; } return 0; }
52,829
uf_space_endspace_selected
eloqsql/storage/maria/ma_packrec.c
static void uf_space_endspace_selected(MARIA_COLUMNDEF *rec, MARIA_BIT_BUFF *bit_buff, uchar *to, uchar *end) { uint spaces; if (get_bit(bit_buff)) bfill(to, (end-to), ' '); else { if (get_bit(bit_buff)) { if ((spaces=get_bits(bit_buff,rec->space_length_bits))+to > end) { bit_buff->error=1; return; } if (to+spaces != end) decode_bytes(rec,bit_buff,to,end-spaces); bfill(end - spaces, spaces, ' '); } else decode_bytes(rec,bit_buff,to,end); } }
O0
c
uf_space_endspace_selected: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq -0x10(%rbp), %rax cmpl $0x0, 0x4(%rax) je 0x47f17 movq -0x10(%rbp), %rax movl (%rax), %eax movq -0x10(%rbp), %rdx movl 0x4(%rdx), %ecx addl $-0x1, %ecx movl %ecx, 0x4(%rdx) movl $0x1, %edx shll %cl, %edx movl %edx, %ecx andl %ecx, %eax cmpl $0x0, %eax jne 0x47f3b jmp 0x47f59 movq -0x10(%rbp), %rdi callq 0x47720 movq -0x10(%rbp), %rax movl $0x1f, 0x4(%rax) movq -0x10(%rbp), %rax movl (%rax), %eax andl $0x80000000, %eax # imm = 0x80000000 cmpl $0x0, %eax je 0x47f59 movq -0x18(%rbp), %rdi movq -0x20(%rbp), %rdx movq -0x18(%rbp), %rax subq %rax, %rdx movl $0x20, %esi callq 0x29280 jmp 0x48097 movq -0x10(%rbp), %rax cmpl $0x0, 0x4(%rax) je 0x47f8b movq -0x10(%rbp), %rax movl (%rax), %eax movq -0x10(%rbp), %rdx movl 0x4(%rdx), %ecx addl $-0x1, %ecx movl %ecx, 0x4(%rdx) movl $0x1, %edx shll %cl, %edx movl %edx, %ecx andl %ecx, %eax cmpl $0x0, %eax jne 0x47fb3 jmp 0x48080 movq -0x10(%rbp), %rdi callq 0x47720 movq -0x10(%rbp), %rax movl $0x1f, 0x4(%rax) movq -0x10(%rbp), %rax movl (%rax), %eax andl $0x80000000, %eax # imm = 0x80000000 cmpl $0x0, %eax je 0x48080 movq -0x10(%rbp), %rax movl 0x4(%rax), %eax movq -0x8(%rbp), %rcx cmpl 0x24(%rcx), %eax jb 0x47ff6 movq -0x10(%rbp), %rax movl (%rax), %eax movq -0x8(%rbp), %rcx movl 0x24(%rcx), %esi movq -0x10(%rbp), %rdx movl 0x4(%rdx), %ecx subl %esi, %ecx movl %ecx, 0x4(%rdx) shrl %cl, %eax movq -0x8(%rbp), %rcx movl 0x24(%rcx), %ecx movl %ecx, %edx leaq 0x276062(%rip), %rcx # 0x2be050 andl (%rcx,%rdx,4), %eax movl %eax, -0x28(%rbp) jmp 0x48009 movq -0x10(%rbp), %rdi movq -0x8(%rbp), %rax movl 0x24(%rax), %esi callq 0x46ed0 movl %eax, -0x28(%rbp) movl -0x28(%rbp), %ecx movl %ecx, -0x24(%rbp) movq -0x18(%rbp), %rax movl %ecx, %ecx addq %rcx, %rax cmpq -0x20(%rbp), %rax jbe 0x4802b movq -0x10(%rbp), %rax movl $0x1, 0x28(%rax) jmp 0x48097 movq -0x18(%rbp), %rax movl -0x24(%rbp), %ecx addq %rcx, %rax cmpq -0x20(%rbp), %rax je 0x4805e movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx movq -0x20(%rbp), %rcx movl -0x24(%rbp), %eax movl %eax, %r8d xorl %eax, %eax subq %r8, %rax addq %rax, %rcx callq 0x47a60 movq -0x20(%rbp), %rdi movl -0x24(%rbp), %eax movl %eax, %ecx xorl %eax, %eax subq %rcx, %rax addq %rax, %rdi movl -0x24(%rbp), %eax movl %eax, %edx movl $0x20, %esi callq 0x29280 jmp 0x48095 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx movq -0x20(%rbp), %rcx callq 0x47a60 jmp 0x48097 addq $0x30, %rsp popq %rbp retq nopl (%rax)
uf_space_endspace_selected: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov rax, [rbp+var_10] cmp dword ptr [rax+4], 0 jz short loc_47F17 mov rax, [rbp+var_10] mov eax, [rax] mov rdx, [rbp+var_10] mov ecx, [rdx+4] add ecx, 0FFFFFFFFh mov [rdx+4], ecx mov edx, 1 shl edx, cl mov ecx, edx and eax, ecx cmp eax, 0 jnz short loc_47F3B jmp short loc_47F59 loc_47F17: mov rdi, [rbp+var_10] call fill_buffer mov rax, [rbp+var_10] mov dword ptr [rax+4], 1Fh mov rax, [rbp+var_10] mov eax, [rax] and eax, 80000000h cmp eax, 0 jz short loc_47F59 loc_47F3B: mov rdi, [rbp+var_18] mov rdx, [rbp+var_20] mov rax, [rbp+var_18] sub rdx, rax mov esi, 20h ; ' ' call _memset jmp loc_48097 loc_47F59: mov rax, [rbp+var_10] cmp dword ptr [rax+4], 0 jz short loc_47F8B mov rax, [rbp+var_10] mov eax, [rax] mov rdx, [rbp+var_10] mov ecx, [rdx+4] add ecx, 0FFFFFFFFh mov [rdx+4], ecx mov edx, 1 shl edx, cl mov ecx, edx and eax, ecx cmp eax, 0 jnz short loc_47FB3 jmp loc_48080 loc_47F8B: mov rdi, [rbp+var_10] call fill_buffer mov rax, [rbp+var_10] mov dword ptr [rax+4], 1Fh mov rax, [rbp+var_10] mov eax, [rax] and eax, 80000000h cmp eax, 0 jz loc_48080 loc_47FB3: mov rax, [rbp+var_10] mov eax, [rax+4] mov rcx, [rbp+var_8] cmp eax, [rcx+24h] jb short loc_47FF6 mov rax, [rbp+var_10] mov eax, [rax] mov rcx, [rbp+var_8] mov esi, [rcx+24h] mov rdx, [rbp+var_10] mov ecx, [rdx+4] sub ecx, esi mov [rdx+4], ecx shr eax, cl mov rcx, [rbp+var_8] mov ecx, [rcx+24h] mov edx, ecx lea rcx, mask and eax, [rcx+rdx*4] mov [rbp+var_28], eax jmp short loc_48009 loc_47FF6: mov rdi, [rbp+var_10] mov rax, [rbp+var_8] mov esi, [rax+24h] call fill_and_get_bits mov [rbp+var_28], eax loc_48009: mov ecx, [rbp+var_28] mov [rbp+var_24], ecx mov rax, [rbp+var_18] mov ecx, ecx add rax, rcx cmp rax, [rbp+var_20] jbe short loc_4802B mov rax, [rbp+var_10] mov dword ptr [rax+28h], 1 jmp short loc_48097 loc_4802B: mov rax, [rbp+var_18] mov ecx, [rbp+var_24] add rax, rcx cmp rax, [rbp+var_20] jz short loc_4805E mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov rdx, [rbp+var_18] mov rcx, [rbp+var_20] mov eax, [rbp+var_24] mov r8d, eax xor eax, eax sub rax, r8 add rcx, rax call decode_bytes loc_4805E: mov rdi, [rbp+var_20] mov eax, [rbp+var_24] mov ecx, eax xor eax, eax sub rax, rcx add rdi, rax mov eax, [rbp+var_24] mov edx, eax mov esi, 20h ; ' ' call _memset jmp short loc_48095 loc_48080: mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov rdx, [rbp+var_18] mov rcx, [rbp+var_20] call decode_bytes loc_48095: jmp short $+2 loc_48097: add rsp, 30h pop rbp retn
long long uf_space_endspace_selected(long long a1, int *a2, _BYTE *a3, _BYTE *a4) { int v4; // eax int v5; // ecx long long result; // rax int v7; // eax int v8; // ecx unsigned int v9; // eax int v10; // ecx unsigned int bits; // [rsp+8h] [rbp-28h] if ( !a2[1] ) { fill_buffer((long long)a2); a2[1] = 31; if ( *a2 >= 0 ) goto LABEL_6; return memset(a3, 32LL, a4 - a3); } v4 = *a2; v5 = a2[1] - 1; a2[1] = v5; if ( ((1 << v5) & v4) != 0 ) return memset(a3, 32LL, a4 - a3); LABEL_6: if ( a2[1] ) { v7 = *a2; v8 = a2[1] - 1; a2[1] = v8; if ( ((1 << v8) & v7) == 0 ) return decode_bytes(a1, (long long)a2, a3, a4); } else { fill_buffer((long long)a2); a2[1] = 31; if ( *a2 >= 0 ) return decode_bytes(a1, (long long)a2, a3, a4); } if ( (unsigned int)a2[1] < *(_DWORD *)(a1 + 36) ) { bits = fill_and_get_bits(a2, *(_DWORD *)(a1 + 36)); } else { v9 = *a2; v10 = a2[1] - *(_DWORD *)(a1 + 36); a2[1] = v10; bits = mask[*(unsigned int *)(a1 + 36)] & (v9 >> v10); } if ( &a3[bits] <= a4 ) { if ( &a3[bits] != a4 ) decode_bytes(a1, (long long)a2, a3, &a4[-bits]); return memset(&a4[-bits], 32LL, bits); } else { result = (long long)a2; a2[10] = 1; } return result; }
uf_space_endspace_selected: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV RAX,qword ptr [RBP + -0x10] CMP dword ptr [RAX + 0x4],0x0 JZ 0x00147f17 MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX] MOV RDX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RDX + 0x4] ADD ECX,-0x1 MOV dword ptr [RDX + 0x4],ECX MOV EDX,0x1 SHL EDX,CL MOV ECX,EDX AND EAX,ECX CMP EAX,0x0 JNZ 0x00147f3b JMP 0x00147f59 LAB_00147f17: MOV RDI,qword ptr [RBP + -0x10] CALL 0x00147720 MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x4],0x1f MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX] AND EAX,0x80000000 CMP EAX,0x0 JZ 0x00147f59 LAB_00147f3b: MOV RDI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x18] SUB RDX,RAX MOV ESI,0x20 CALL 0x00129280 JMP 0x00148097 LAB_00147f59: MOV RAX,qword ptr [RBP + -0x10] CMP dword ptr [RAX + 0x4],0x0 JZ 0x00147f8b MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX] MOV RDX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RDX + 0x4] ADD ECX,-0x1 MOV dword ptr [RDX + 0x4],ECX MOV EDX,0x1 SHL EDX,CL MOV ECX,EDX AND EAX,ECX CMP EAX,0x0 JNZ 0x00147fb3 JMP 0x00148080 LAB_00147f8b: MOV RDI,qword ptr [RBP + -0x10] CALL 0x00147720 MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x4],0x1f MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX] AND EAX,0x80000000 CMP EAX,0x0 JZ 0x00148080 LAB_00147fb3: MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x4] MOV RCX,qword ptr [RBP + -0x8] CMP EAX,dword ptr [RCX + 0x24] JC 0x00147ff6 MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX] MOV RCX,qword ptr [RBP + -0x8] MOV ESI,dword ptr [RCX + 0x24] MOV RDX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RDX + 0x4] SUB ECX,ESI MOV dword ptr [RDX + 0x4],ECX SHR EAX,CL MOV RCX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RCX + 0x24] MOV EDX,ECX LEA RCX,[0x3be050] AND EAX,dword ptr [RCX + RDX*0x4] MOV dword ptr [RBP + -0x28],EAX JMP 0x00148009 LAB_00147ff6: MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x8] MOV ESI,dword ptr [RAX + 0x24] CALL 0x00146ed0 MOV dword ptr [RBP + -0x28],EAX LAB_00148009: MOV ECX,dword ptr [RBP + -0x28] MOV dword ptr [RBP + -0x24],ECX MOV RAX,qword ptr [RBP + -0x18] MOV ECX,ECX ADD RAX,RCX CMP RAX,qword ptr [RBP + -0x20] JBE 0x0014802b MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x28],0x1 JMP 0x00148097 LAB_0014802b: MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RBP + -0x24] ADD RAX,RCX CMP RAX,qword ptr [RBP + -0x20] JZ 0x0014805e MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RBP + -0x24] MOV R8D,EAX XOR EAX,EAX SUB RAX,R8 ADD RCX,RAX CALL 0x00147a60 LAB_0014805e: MOV RDI,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RBP + -0x24] MOV ECX,EAX XOR EAX,EAX SUB RAX,RCX ADD RDI,RAX MOV EAX,dword ptr [RBP + -0x24] MOV EDX,EAX MOV ESI,0x20 CALL 0x00129280 JMP 0x00148095 LAB_00148080: MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x20] CALL 0x00147a60 LAB_00148095: JMP 0x00148097 LAB_00148097: ADD RSP,0x30 POP RBP RET
void uf_space_endspace_selected(long param_1,uint *param_2,void *param_3,ulong param_4) { uint uVar1; uint local_30; if (param_2[1] == 0) { fill_buffer(param_2); param_2[1] = 0x1f; uVar1 = *param_2 & 0x80000000; } else { uVar1 = param_2[1]; param_2[1] = uVar1 - 1; uVar1 = *param_2 & 1 << ((byte)(uVar1 - 1) & 0x1f); } if (uVar1 == 0) { if (param_2[1] == 0) { fill_buffer(param_2); param_2[1] = 0x1f; uVar1 = *param_2 & 0x80000000; } else { uVar1 = param_2[1]; param_2[1] = uVar1 - 1; uVar1 = *param_2 & 1 << ((byte)(uVar1 - 1) & 0x1f); } if (uVar1 == 0) { decode_bytes(param_1,param_2,param_3,param_4); } else { if (param_2[1] < *(uint *)(param_1 + 0x24)) { local_30 = fill_and_get_bits(param_2,*(int4 *)(param_1 + 0x24)); } else { uVar1 = param_2[1] - *(int *)(param_1 + 0x24); param_2[1] = uVar1; local_30 = *param_2 >> ((byte)uVar1 & 0x1f) & *(uint *)(mask + (ulong)*(uint *)(param_1 + 0x24) * 4); } if (param_4 < (long)param_3 + (ulong)local_30) { param_2[10] = 1; } else { if ((long)param_3 + (ulong)local_30 != param_4) { decode_bytes(param_1,param_2,param_3,param_4 - local_30); } memset((void *)(param_4 - local_30),0x20,(ulong)local_30); } } } else { memset(param_3,0x20,param_4 - (long)param_3); } return; }
52,830
ma_multi_malloc
eloqsql/libmariadb/libmariadb/ma_alloc.c
void *ma_multi_malloc(myf myFlags, ...) { va_list args; char **ptr,*start,*res; size_t tot_length,length; va_start(args,myFlags); tot_length=0; while ((ptr=va_arg(args, char **))) { length=va_arg(args, size_t); tot_length+=ALIGN_SIZE(length); } va_end(args); if (!(start=(char *)malloc(tot_length))) return 0; va_start(args,myFlags); res=start; while ((ptr=va_arg(args, char **))) { *ptr=res; length=va_arg(args,size_t); res+=ALIGN_SIZE(length); } va_end(args); return start; }
O0
c
ma_multi_malloc: pushq %rbp movq %rsp, %rbp subq $0x170, %rsp # imm = 0x170 testb %al, %al je 0x56a21 movaps %xmm0, -0xe0(%rbp) movaps %xmm1, -0xd0(%rbp) movaps %xmm2, -0xc0(%rbp) movaps %xmm3, -0xb0(%rbp) movaps %xmm4, -0xa0(%rbp) movaps %xmm5, -0x90(%rbp) movaps %xmm6, -0x80(%rbp) movaps %xmm7, -0x70(%rbp) movq %r9, -0xe8(%rbp) movq %r8, -0xf0(%rbp) movq %rcx, -0xf8(%rbp) movq %rdx, -0x100(%rbp) movq %rsi, -0x108(%rbp) movl %edi, -0xc(%rbp) leaq -0x30(%rbp), %rax leaq -0x110(%rbp), %rcx movq %rcx, 0x10(%rax) leaq 0x10(%rbp), %rcx movq %rcx, 0x8(%rax) movl $0x30, 0x4(%rax) movl $0x8, (%rax) movq $0x0, -0x50(%rbp) leaq -0x30(%rbp), %rax movq %rax, -0x120(%rbp) movl -0x30(%rbp), %eax movl %eax, -0x114(%rbp) cmpl $0x28, %eax ja 0x56aae movq -0x120(%rbp), %rcx movl -0x114(%rbp), %edx movslq %edx, %rax addq 0x10(%rcx), %rax addl $0x8, %edx movl %edx, (%rcx) movq %rax, -0x128(%rbp) jmp 0x56acb movq -0x120(%rbp), %rcx movq 0x8(%rcx), %rax movq %rax, %rdx addq $0x8, %rdx movq %rdx, 0x8(%rcx) movq %rax, -0x128(%rbp) movq -0x128(%rbp), %rax movq (%rax), %rax movq %rax, -0x38(%rbp) cmpq $0x0, %rax je 0x56b66 leaq -0x30(%rbp), %rax movq %rax, -0x138(%rbp) movl -0x30(%rbp), %eax movl %eax, -0x12c(%rbp) cmpl $0x28, %eax ja 0x56b1e movq -0x138(%rbp), %rcx movl -0x12c(%rbp), %edx movslq %edx, %rax addq 0x10(%rcx), %rax addl $0x8, %edx movl %edx, (%rcx) movq %rax, -0x140(%rbp) jmp 0x56b3b movq -0x138(%rbp), %rcx movq 0x8(%rcx), %rax movq %rax, %rdx addq $0x8, %rdx movq %rdx, 0x8(%rcx) movq %rax, -0x140(%rbp) movq -0x140(%rbp), %rax movq (%rax), %rax movq %rax, -0x58(%rbp) movq -0x58(%rbp), %rax addq $0x8, %rax subq $0x1, %rax andq $-0x8, %rax addq -0x50(%rbp), %rax movq %rax, -0x50(%rbp) jmp 0x56a73 leaq -0x30(%rbp), %rax movq -0x50(%rbp), %rdi callq 0x38920 movq %rax, -0x40(%rbp) cmpq $0x0, %rax jne 0x56b8a movq $0x0, -0x8(%rbp) jmp 0x56cc0 leaq -0x30(%rbp), %rax leaq -0x110(%rbp), %rcx movq %rcx, 0x10(%rax) leaq 0x10(%rbp), %rcx movq %rcx, 0x8(%rax) movl $0x30, 0x4(%rax) movl $0x8, (%rax) movq -0x40(%rbp), %rax movq %rax, -0x48(%rbp) leaq -0x30(%rbp), %rax movq %rax, -0x150(%rbp) movl -0x30(%rbp), %eax movl %eax, -0x144(%rbp) cmpl $0x28, %eax ja 0x56bf1 movq -0x150(%rbp), %rcx movl -0x144(%rbp), %edx movslq %edx, %rax addq 0x10(%rcx), %rax addl $0x8, %edx movl %edx, (%rcx) movq %rax, -0x158(%rbp) jmp 0x56c0e movq -0x150(%rbp), %rcx movq 0x8(%rcx), %rax movq %rax, %rdx addq $0x8, %rdx movq %rdx, 0x8(%rcx) movq %rax, -0x158(%rbp) movq -0x158(%rbp), %rax movq (%rax), %rax movq %rax, -0x38(%rbp) cmpq $0x0, %rax je 0x56cb4 movq -0x48(%rbp), %rcx movq -0x38(%rbp), %rax movq %rcx, (%rax) leaq -0x30(%rbp), %rax movq %rax, -0x168(%rbp) movl -0x30(%rbp), %eax movl %eax, -0x15c(%rbp) cmpl $0x28, %eax ja 0x56c6c movq -0x168(%rbp), %rcx movl -0x15c(%rbp), %edx movslq %edx, %rax addq 0x10(%rcx), %rax addl $0x8, %edx movl %edx, (%rcx) movq %rax, -0x170(%rbp) jmp 0x56c89 movq -0x168(%rbp), %rcx movq 0x8(%rcx), %rax movq %rax, %rdx addq $0x8, %rdx movq %rdx, 0x8(%rcx) movq %rax, -0x170(%rbp) movq -0x170(%rbp), %rax movq (%rax), %rax movq %rax, -0x58(%rbp) movq -0x58(%rbp), %rax addq $0x8, %rax subq $0x1, %rax andq $-0x8, %rax addq -0x48(%rbp), %rax movq %rax, -0x48(%rbp) jmp 0x56bb6 leaq -0x30(%rbp), %rax movq -0x40(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x170, %rsp # imm = 0x170 popq %rbp retq nopl (%rax)
ma_multi_malloc: push rbp mov rbp, rsp sub rsp, 170h test al, al jz short loc_56A21 movaps [rbp+var_E0], xmm0 movaps [rbp+var_D0], xmm1 movaps [rbp+var_C0], xmm2 movaps [rbp+var_B0], xmm3 movaps [rbp+var_A0], xmm4 movaps [rbp+var_90], xmm5 movaps [rbp+var_80], xmm6 movaps [rbp+var_70], xmm7 loc_56A21: mov [rbp+var_E8], r9 mov [rbp+var_F0], r8 mov [rbp+var_F8], rcx mov [rbp+var_100], rdx mov [rbp+var_108], rsi mov [rbp+var_C], edi lea rax, [rbp+var_30] lea rcx, [rbp+var_110] mov [rax+10h], rcx lea rcx, [rbp+arg_0] mov [rax+8], rcx mov dword ptr [rax+4], 30h ; '0' mov dword ptr [rax], 8 mov [rbp+var_50], 0 loc_56A73: lea rax, [rbp+var_30] mov [rbp+var_120], rax mov eax, [rbp+var_30] mov [rbp+var_114], eax cmp eax, 28h ; '(' ja short loc_56AAE mov rcx, [rbp+var_120] mov edx, [rbp+var_114] movsxd rax, edx add rax, [rcx+10h] add edx, 8 mov [rcx], edx mov [rbp+var_128], rax jmp short loc_56ACB loc_56AAE: mov rcx, [rbp+var_120] mov rax, [rcx+8] mov rdx, rax add rdx, 8 mov [rcx+8], rdx mov [rbp+var_128], rax loc_56ACB: mov rax, [rbp+var_128] mov rax, [rax] mov [rbp+var_38], rax cmp rax, 0 jz loc_56B66 lea rax, [rbp+var_30] mov [rbp+var_138], rax mov eax, [rbp+var_30] mov [rbp+var_12C], eax cmp eax, 28h ; '(' ja short loc_56B1E mov rcx, [rbp+var_138] mov edx, [rbp+var_12C] movsxd rax, edx add rax, [rcx+10h] add edx, 8 mov [rcx], edx mov [rbp+var_140], rax jmp short loc_56B3B loc_56B1E: mov rcx, [rbp+var_138] mov rax, [rcx+8] mov rdx, rax add rdx, 8 mov [rcx+8], rdx mov [rbp+var_140], rax loc_56B3B: mov rax, [rbp+var_140] mov rax, [rax] mov [rbp+var_58], rax mov rax, [rbp+var_58] add rax, 8 sub rax, 1 and rax, 0FFFFFFFFFFFFFFF8h add rax, [rbp+var_50] mov [rbp+var_50], rax jmp loc_56A73 loc_56B66: lea rax, [rbp+var_30] mov rdi, [rbp+var_50] call _malloc mov [rbp+var_40], rax cmp rax, 0 jnz short loc_56B8A mov [rbp+var_8], 0 jmp loc_56CC0 loc_56B8A: lea rax, [rbp+var_30] lea rcx, [rbp+var_110] mov [rax+10h], rcx lea rcx, [rbp+arg_0] mov [rax+8], rcx mov dword ptr [rax+4], 30h ; '0' mov dword ptr [rax], 8 mov rax, [rbp+var_40] mov [rbp+var_48], rax loc_56BB6: lea rax, [rbp+var_30] mov [rbp+var_150], rax mov eax, [rbp+var_30] mov [rbp+var_144], eax cmp eax, 28h ; '(' ja short loc_56BF1 mov rcx, [rbp+var_150] mov edx, [rbp+var_144] movsxd rax, edx add rax, [rcx+10h] add edx, 8 mov [rcx], edx mov [rbp+var_158], rax jmp short loc_56C0E loc_56BF1: mov rcx, [rbp+var_150] mov rax, [rcx+8] mov rdx, rax add rdx, 8 mov [rcx+8], rdx mov [rbp+var_158], rax loc_56C0E: mov rax, [rbp+var_158] mov rax, [rax] mov [rbp+var_38], rax cmp rax, 0 jz loc_56CB4 mov rcx, [rbp+var_48] mov rax, [rbp+var_38] mov [rax], rcx lea rax, [rbp+var_30] mov [rbp+var_168], rax mov eax, [rbp+var_30] mov [rbp+var_15C], eax cmp eax, 28h ; '(' ja short loc_56C6C mov rcx, [rbp+var_168] mov edx, [rbp+var_15C] movsxd rax, edx add rax, [rcx+10h] add edx, 8 mov [rcx], edx mov [rbp+var_170], rax jmp short loc_56C89 loc_56C6C: mov rcx, [rbp+var_168] mov rax, [rcx+8] mov rdx, rax add rdx, 8 mov [rcx+8], rdx mov [rbp+var_170], rax loc_56C89: mov rax, [rbp+var_170] mov rax, [rax] mov [rbp+var_58], rax mov rax, [rbp+var_58] add rax, 8 sub rax, 1 and rax, 0FFFFFFFFFFFFFFF8h add rax, [rbp+var_48] mov [rbp+var_48], rax jmp loc_56BB6 loc_56CB4: lea rax, [rbp+var_30] mov rax, [rbp+var_40] mov [rbp+var_8], rax loc_56CC0: mov rax, [rbp+var_8] add rsp, 170h pop rbp retn
long long ma_multi_malloc(int a1, ...) { _QWORD *overflow_arg_area; // rax _QWORD *v2; // rax _QWORD *v3; // rax _QWORD *v4; // rax long long i; // [rsp+120h] [rbp-50h] long long j; // [rsp+128h] [rbp-48h] long long v8; // [rsp+130h] [rbp-40h] va_list va; // [rsp+140h] [rbp-30h] BYREF int v10; // [rsp+164h] [rbp-Ch] va_start(va, a1); v10 = a1; for ( i = 0LL; ; i += (*v2 + 7LL) & 0xFFFFFFFFFFFFFFF8LL ) { if ( va[0].gp_offset > 0x28 ) { overflow_arg_area = va[0].overflow_arg_area; va[0].overflow_arg_area = (char *)va[0].overflow_arg_area + 8; } else { overflow_arg_area = (char *)va[0].reg_save_area + (int)va[0].gp_offset; va[0].gp_offset += 8; } if ( !*overflow_arg_area ) break; if ( va[0].gp_offset > 0x28 ) { v2 = va[0].overflow_arg_area; va[0].overflow_arg_area = (char *)va[0].overflow_arg_area + 8; } else { v2 = (char *)va[0].reg_save_area + (int)va[0].gp_offset; va[0].gp_offset += 8; } } v8 = malloc(i); if ( !v8 ) return 0LL; va_end(va); va_start(va, a1); for ( j = v8; ; j += (*v4 + 7LL) & 0xFFFFFFFFFFFFFFF8LL ) { if ( va[0].gp_offset > 0x28 ) { v3 = va[0].overflow_arg_area; va[0].overflow_arg_area = (char *)va[0].overflow_arg_area + 8; } else { v3 = (char *)va[0].reg_save_area + (int)va[0].gp_offset; va[0].gp_offset += 8; } if ( !*v3 ) break; *(_QWORD *)*v3 = j; if ( va[0].gp_offset > 0x28 ) { v4 = va[0].overflow_arg_area; va[0].overflow_arg_area = (char *)va[0].overflow_arg_area + 8; } else { v4 = (char *)va[0].reg_save_area + (int)va[0].gp_offset; va[0].gp_offset += 8; } } return v8; }
ma_multi_malloc: PUSH RBP MOV RBP,RSP SUB RSP,0x170 TEST AL,AL JZ 0x00156a21 MOVAPS xmmword ptr [RBP + -0xe0],XMM0 MOVAPS xmmword ptr [RBP + -0xd0],XMM1 MOVAPS xmmword ptr [RBP + -0xc0],XMM2 MOVAPS xmmword ptr [RBP + -0xb0],XMM3 MOVAPS xmmword ptr [RBP + -0xa0],XMM4 MOVAPS xmmword ptr [RBP + -0x90],XMM5 MOVAPS xmmword ptr [RBP + -0x80],XMM6 MOVAPS xmmword ptr [RBP + -0x70],XMM7 LAB_00156a21: MOV qword ptr [RBP + -0xe8],R9 MOV qword ptr [RBP + -0xf0],R8 MOV qword ptr [RBP + -0xf8],RCX MOV qword ptr [RBP + -0x100],RDX MOV qword ptr [RBP + -0x108],RSI MOV dword ptr [RBP + -0xc],EDI LEA RAX,[RBP + -0x30] LEA RCX,[RBP + -0x110] MOV qword ptr [RAX + 0x10],RCX LEA RCX,[RBP + 0x10] MOV qword ptr [RAX + 0x8],RCX MOV dword ptr [RAX + 0x4],0x30 MOV dword ptr [RAX],0x8 MOV qword ptr [RBP + -0x50],0x0 LAB_00156a73: LEA RAX,[RBP + -0x30] MOV qword ptr [RBP + -0x120],RAX MOV EAX,dword ptr [RBP + -0x30] MOV dword ptr [RBP + -0x114],EAX CMP EAX,0x28 JA 0x00156aae MOV RCX,qword ptr [RBP + -0x120] MOV EDX,dword ptr [RBP + -0x114] MOVSXD RAX,EDX ADD RAX,qword ptr [RCX + 0x10] ADD EDX,0x8 MOV dword ptr [RCX],EDX MOV qword ptr [RBP + -0x128],RAX JMP 0x00156acb LAB_00156aae: MOV RCX,qword ptr [RBP + -0x120] MOV RAX,qword ptr [RCX + 0x8] MOV RDX,RAX ADD RDX,0x8 MOV qword ptr [RCX + 0x8],RDX MOV qword ptr [RBP + -0x128],RAX LAB_00156acb: MOV RAX,qword ptr [RBP + -0x128] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x38],RAX CMP RAX,0x0 JZ 0x00156b66 LEA RAX,[RBP + -0x30] MOV qword ptr [RBP + -0x138],RAX MOV EAX,dword ptr [RBP + -0x30] MOV dword ptr [RBP + -0x12c],EAX CMP EAX,0x28 JA 0x00156b1e MOV RCX,qword ptr [RBP + -0x138] MOV EDX,dword ptr [RBP + -0x12c] MOVSXD RAX,EDX ADD RAX,qword ptr [RCX + 0x10] ADD EDX,0x8 MOV dword ptr [RCX],EDX MOV qword ptr [RBP + -0x140],RAX JMP 0x00156b3b LAB_00156b1e: MOV RCX,qword ptr [RBP + -0x138] MOV RAX,qword ptr [RCX + 0x8] MOV RDX,RAX ADD RDX,0x8 MOV qword ptr [RCX + 0x8],RDX MOV qword ptr [RBP + -0x140],RAX LAB_00156b3b: MOV RAX,qword ptr [RBP + -0x140] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x58] ADD RAX,0x8 SUB RAX,0x1 AND RAX,-0x8 ADD RAX,qword ptr [RBP + -0x50] MOV qword ptr [RBP + -0x50],RAX JMP 0x00156a73 LAB_00156b66: LEA RAX,[RBP + -0x30] MOV RDI,qword ptr [RBP + -0x50] CALL 0x00138920 MOV qword ptr [RBP + -0x40],RAX CMP RAX,0x0 JNZ 0x00156b8a MOV qword ptr [RBP + -0x8],0x0 JMP 0x00156cc0 LAB_00156b8a: LEA RAX,[RBP + -0x30] LEA RCX,[RBP + -0x110] MOV qword ptr [RAX + 0x10],RCX LEA RCX,[RBP + 0x10] MOV qword ptr [RAX + 0x8],RCX MOV dword ptr [RAX + 0x4],0x30 MOV dword ptr [RAX],0x8 MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x48],RAX LAB_00156bb6: LEA RAX,[RBP + -0x30] MOV qword ptr [RBP + -0x150],RAX MOV EAX,dword ptr [RBP + -0x30] MOV dword ptr [RBP + -0x144],EAX CMP EAX,0x28 JA 0x00156bf1 MOV RCX,qword ptr [RBP + -0x150] MOV EDX,dword ptr [RBP + -0x144] MOVSXD RAX,EDX ADD RAX,qword ptr [RCX + 0x10] ADD EDX,0x8 MOV dword ptr [RCX],EDX MOV qword ptr [RBP + -0x158],RAX JMP 0x00156c0e LAB_00156bf1: MOV RCX,qword ptr [RBP + -0x150] MOV RAX,qword ptr [RCX + 0x8] MOV RDX,RAX ADD RDX,0x8 MOV qword ptr [RCX + 0x8],RDX MOV qword ptr [RBP + -0x158],RAX LAB_00156c0e: MOV RAX,qword ptr [RBP + -0x158] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x38],RAX CMP RAX,0x0 JZ 0x00156cb4 MOV RCX,qword ptr [RBP + -0x48] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX],RCX LEA RAX,[RBP + -0x30] MOV qword ptr [RBP + -0x168],RAX MOV EAX,dword ptr [RBP + -0x30] MOV dword ptr [RBP + -0x15c],EAX CMP EAX,0x28 JA 0x00156c6c MOV RCX,qword ptr [RBP + -0x168] MOV EDX,dword ptr [RBP + -0x15c] MOVSXD RAX,EDX ADD RAX,qword ptr [RCX + 0x10] ADD EDX,0x8 MOV dword ptr [RCX],EDX MOV qword ptr [RBP + -0x170],RAX JMP 0x00156c89 LAB_00156c6c: MOV RCX,qword ptr [RBP + -0x168] MOV RAX,qword ptr [RCX + 0x8] MOV RDX,RAX ADD RDX,0x8 MOV qword ptr [RCX + 0x8],RDX MOV qword ptr [RBP + -0x170],RAX LAB_00156c89: MOV RAX,qword ptr [RBP + -0x170] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x58] ADD RAX,0x8 SUB RAX,0x1 AND RAX,-0x8 ADD RAX,qword ptr [RBP + -0x48] MOV qword ptr [RBP + -0x48],RAX JMP 0x00156bb6 LAB_00156cb4: LEA RAX,[RBP + -0x30] MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x8],RAX LAB_00156cc0: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x170 POP RBP RET
/* WARNING: Restarted to delay deadcode elimination for space: stack */ void * ma_multi_malloc(int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6,int8 param_7,int8 param_8, int4 param_9,int8 param_10,int8 param_11,int8 param_12 ,int8 param_13,int8 param_14) { char in_AL; long *local_178; long *local_160; long *local_148; long *local_130; long local_118 [4]; int8 local_f8; int8 local_f0; int8 local_e8; int8 local_d8; int8 local_c8; int8 local_b8; int8 local_a8; int8 local_98; int8 local_88; int8 local_78; long local_60; size_t local_58; void *local_50; long local_40; uint local_38; int4 local_34; long *local_30; long *local_28; int4 local_14; void *local_10; if (in_AL != '\0') { local_e8 = param_1; local_d8 = param_2; local_c8 = param_3; local_b8 = param_4; local_a8 = param_5; local_98 = param_6; local_88 = param_7; local_78 = param_8; } local_28 = local_118; local_30 = (long *)&stack0x00000008; local_34 = 0x30; local_38 = 8; local_58 = 0; while( true ) { if (local_38 < 0x29) { local_130 = (long *)((long)local_28 + (long)(int)local_38); local_38 = local_38 + 8; } else { local_130 = local_30; local_30 = local_30 + 1; } local_40 = *local_130; if (local_40 == 0) break; if (local_38 < 0x29) { local_148 = (long *)((long)local_28 + (long)(int)local_38); local_38 = local_38 + 8; } else { local_148 = local_30; local_30 = local_30 + 1; } local_60 = *local_148; local_58 = (local_60 + 7U & 0xfffffffffffffff8) + local_58; } local_118[1] = param_10; local_118[2] = param_11; local_118[3] = param_12; local_f8 = param_13; local_f0 = param_14; local_14 = param_9; local_10 = malloc(local_58); if (local_10 == (void *)0x0) { local_10 = (void *)0x0; } else { local_30 = (long *)&stack0x00000008; local_38 = 8; local_50 = local_10; while( true ) { if (local_38 < 0x29) { local_160 = (long *)((long)local_118 + (long)(int)local_38); local_38 = local_38 + 8; } else { local_160 = local_30; local_30 = local_30 + 1; } if ((int8 *)*local_160 == (int8 *)0x0) break; *(int8 *)*local_160 = local_50; if (local_38 < 0x29) { local_178 = (long *)((long)local_118 + (long)(int)local_38); local_38 = local_38 + 8; } else { local_178 = local_30; local_30 = local_30 + 1; } local_50 = (void *)((*local_178 + 7U & 0xfffffffffffffff8) + (long)local_50); } } return local_10; }
52,831
testing::internal::UnitTestImpl::RecordProperty(testing::TestProperty const&)
giladroyz[P]FindPeaks/build_O3/_deps/googletest-src/googletest/src/gtest.cc
void UnitTestImpl::RecordProperty(const TestProperty& test_property) { std::string xml_element; TestResult* test_result; // TestResult appropriate for property recording. if (current_test_info_ != nullptr) { xml_element = "testcase"; test_result = &(current_test_info_->result_); } else if (current_test_suite_ != nullptr) { xml_element = "testsuite"; test_result = &(current_test_suite_->ad_hoc_test_result_); } else { xml_element = "testsuites"; test_result = &ad_hoc_test_result_; } test_result->RecordProperty(xml_element, test_property); }
O3
cpp
testing::internal::UnitTestImpl::RecordProperty(testing::TestProperty const&): pushq %r15 pushq %r14 pushq %rbx subq $0x20, %rsp movq %rsi, %rbx movq %rdi, %r14 leaq 0x10(%rsp), %r15 movq %r15, -0x10(%r15) movq $0x0, -0x8(%r15) movb $0x0, (%r15) cmpq $0x0, 0x1e0(%rdi) je 0x2d0fd leaq 0x164ad(%rip), %rcx # 0x4358a movq %rsp, %rdi movl $0x8, %r8d xorl %esi, %esi xorl %edx, %edx callq 0x88a0 movl $0x90, %edi addq 0x1e0(%r14), %rdi jmp 0x2d151 cmpq $0x0, 0x1d8(%r14) je 0x2d12e leaq 0x16427(%rip), %rcx # 0x43535 movq %rsp, %rdi movl $0x9, %r8d xorl %esi, %esi xorl %edx, %edx callq 0x88a0 movl $0x88, %edi addq 0x1d8(%r14), %rdi jmp 0x2d151 leaq 0x16522(%rip), %rcx # 0x43657 movq %rsp, %rdi movl $0xa, %r8d xorl %esi, %esi xorl %edx, %edx callq 0x88a0 addq $0x1e8, %r14 # imm = 0x1E8 movq %r14, %rdi movq %rsp, %rsi movq %rbx, %rdx callq 0x1f8ae movq (%rsp), %rdi cmpq %r15, %rdi je 0x2d172 movq 0x10(%rsp), %rsi incq %rsi callq 0x84e0 addq $0x20, %rsp popq %rbx popq %r14 popq %r15 retq movq %rax, %rbx movq (%rsp), %rdi cmpq %r15, %rdi je 0x2d195 movq 0x10(%rsp), %rsi incq %rsi callq 0x84e0 movq %rbx, %rdi callq 0x8990 nop
_ZN7testing8internal12UnitTestImpl14RecordPropertyERKNS_12TestPropertyE: push r15 push r14 push rbx sub rsp, 20h mov rbx, rsi mov r14, rdi lea r15, [rsp+38h+var_28] mov [r15-10h], r15 mov qword ptr [r15-8], 0 mov byte ptr [r15], 0 cmp qword ptr [rdi+1E0h], 0 jz short loc_2D0FD lea rcx, aTestcase+5; "testcase" mov rdi, rsp mov r8d, 8 xor esi, esi xor edx, edx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong) mov edi, 90h add rdi, [r14+1E0h] jmp short loc_2D151 loc_2D0FD: cmp qword ptr [r14+1D8h], 0 jz short loc_2D12E lea rcx, aTestsuite+3; "testsuite" mov rdi, rsp mov r8d, 9 xor esi, esi xor edx, edx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong) mov edi, 88h add rdi, [r14+1D8h] jmp short loc_2D151 loc_2D12E: lea rcx, aTestsuites; "testsuites" mov rdi, rsp mov r8d, 0Ah xor esi, esi xor edx, edx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong) add r14, 1E8h mov rdi, r14; this loc_2D151: mov rsi, rsp mov rdx, rbx call _ZN7testing10TestResult14RecordPropertyERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_12TestPropertyE; testing::TestResult::RecordProperty(std::string const&,testing::TestProperty const&) mov rdi, [rsp+38h+var_38]; void * cmp rdi, r15 jz short loc_2D172 mov rsi, [rsp+38h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_2D172: add rsp, 20h pop rbx pop r14 pop r15 retn mov rbx, rax mov rdi, [rsp+0]; void * cmp rdi, r15 jz short loc_2D195 mov rsi, [rsp+arg_8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_2D195: mov rdi, rbx call __Unwind_Resume
void testing::internal::UnitTestImpl::RecordProperty( testing::internal::UnitTestImpl *this, const testing::TestProperty *a2) { testing::internal::MutexBase *v2; // rdi void *v3[2]; // [rsp+0h] [rbp-38h] BYREF _QWORD v4[5]; // [rsp+10h] [rbp-28h] BYREF v3[0] = v4; v3[1] = 0LL; LOBYTE(v4[0]) = 0; if ( *((_QWORD *)this + 60) ) { std::string::_M_replace(v3, 0LL, 0LL, "testcase", 8LL); v2 = (testing::internal::MutexBase *)(*((_QWORD *)this + 60) + 144LL); } else if ( *((_QWORD *)this + 59) ) { std::string::_M_replace(v3, 0LL, 0LL, "testsuite", 9LL); v2 = (testing::internal::MutexBase *)(*((_QWORD *)this + 59) + 136LL); } else { std::string::_M_replace(v3, 0LL, 0LL, "testsuites", 10LL); v2 = (testing::internal::UnitTestImpl *)((char *)this + 488); } testing::TestResult::RecordProperty(v2); if ( v3[0] != v4 ) operator delete(v3[0], v4[0] + 1LL); }
RecordProperty: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x20 MOV RBX,RSI MOV R14,RDI LEA R15,[RSP + 0x10] MOV qword ptr [R15 + -0x10],R15 MOV qword ptr [R15 + -0x8],0x0 MOV byte ptr [R15],0x0 CMP qword ptr [RDI + 0x1e0],0x0 JZ 0x0012d0fd LAB_0012d0d6: LEA RCX,[0x14358a] MOV RDI,RSP MOV R8D,0x8 XOR ESI,ESI XOR EDX,EDX CALL 0x001088a0 MOV EDI,0x90 ADD RDI,qword ptr [R14 + 0x1e0] JMP 0x0012d151 LAB_0012d0fd: CMP qword ptr [R14 + 0x1d8],0x0 JZ 0x0012d12e LEA RCX,[0x143535] MOV RDI,RSP MOV R8D,0x9 XOR ESI,ESI XOR EDX,EDX CALL 0x001088a0 MOV EDI,0x88 ADD RDI,qword ptr [R14 + 0x1d8] JMP 0x0012d151 LAB_0012d12e: LEA RCX,[0x143657] MOV RDI,RSP MOV R8D,0xa XOR ESI,ESI XOR EDX,EDX CALL 0x001088a0 ADD R14,0x1e8 MOV RDI,R14 LAB_0012d151: MOV RSI,RSP MOV RDX,RBX CALL 0x0011f8ae LAB_0012d15c: MOV RDI,qword ptr [RSP] CMP RDI,R15 JZ 0x0012d172 MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x001084e0 LAB_0012d172: ADD RSP,0x20 POP RBX POP R14 POP R15 RET
/* testing::internal::UnitTestImpl::RecordProperty(testing::TestProperty const&) */ void __thiscall testing::internal::UnitTestImpl::RecordProperty(UnitTestImpl *this,TestProperty *param_1) { TestResult *this_00; int1 *local_38; int8 local_30; int1 local_28; int7 uStack_27; local_30 = 0; local_28 = 0; local_38 = &local_28; if (*(long *)(this + 0x1e0) == 0) { if (*(long *)(this + 0x1d8) == 0) { std::__cxx11::string::_M_replace((ulong)&local_38,0,(char *)0x0,0x143657); this_00 = (TestResult *)(this + 0x1e8); } else { std::__cxx11::string::_M_replace((ulong)&local_38,0,(char *)0x0,0x143535); this_00 = (TestResult *)(*(long *)(this + 0x1d8) + 0x88); } } else { /* try { // try from 0012d0d6 to 0012d15b has its CatchHandler @ 0012d17c */ std::__cxx11::string::_M_replace((ulong)&local_38,0,(char *)0x0,0x14358a); this_00 = (TestResult *)(*(long *)(this + 0x1e0) + 0x90); } TestResult::RecordProperty(this_00,(string *)&local_38,param_1); if (local_38 != &local_28) { operator_delete(local_38,CONCAT71(uStack_27,local_28) + 1); } return; }
52,832
ft_get_word
eloqsql/storage/myisam/ft_parser.c
uchar ft_get_word(CHARSET_INFO *cs, const uchar **start, const uchar *end, FT_WORD *word, MYSQL_FTPARSER_BOOLEAN_INFO *param) { const uchar *doc=*start; int ctype; uint mwc, length; int mbl; param->yesno=(FTB_YES==' ') ? 1 : (param->quot != 0); param->weight_adjust= param->wasign= 0; param->type= FT_TOKEN_EOF; while (doc<end) { for (; doc < end; doc+= (mbl > 0 ? mbl : (mbl < 0 ? -mbl : 1))) { mbl= my_ci_ctype(cs, &ctype, (uchar*)doc, (uchar*)end); if (true_word_char(ctype, *doc)) break; if (*doc == FTB_RQUOT && param->quot) { *start=doc+1; param->type= FT_TOKEN_RIGHT_PAREN; goto ret; } if (!param->quot) { if (*doc == FTB_LBR || *doc == FTB_RBR || *doc == FTB_LQUOT) { /* param->prev=' '; */ *start=doc+1; if (*doc == FTB_LQUOT) param->quot= (char*) 1; param->type= (*doc == FTB_RBR ? FT_TOKEN_RIGHT_PAREN : FT_TOKEN_LEFT_PAREN); goto ret; } if (param->prev == ' ') { if (*doc == FTB_YES ) { param->yesno=+1; continue; } else if (*doc == FTB_EGAL) { param->yesno= 0; continue; } else if (*doc == FTB_NO ) { param->yesno=-1; continue; } else if (*doc == FTB_INC ) { param->weight_adjust++; continue; } else if (*doc == FTB_DEC ) { param->weight_adjust--; continue; } else if (*doc == FTB_NEG ) { param->wasign= !param->wasign; continue; } } } param->prev=*doc; param->yesno=(FTB_YES==' ') ? 1 : (param->quot != 0); param->weight_adjust= param->wasign= 0; } mwc=length=0; for (word->pos= doc; doc < end; length++, doc+= (mbl > 0 ? mbl : (mbl < 0 ? -mbl : 1))) { mbl= my_ci_ctype(cs, &ctype, (uchar*)doc, (uchar*)end); if (true_word_char(ctype, *doc)) mwc=0; else if (!misc_word_char(*doc) || mwc) break; else mwc++; } param->prev='A'; /* be sure *prev is true_word_char */ word->len= (uint)(doc-word->pos) - mwc; if ((param->trunc=(doc<end && *doc == FTB_TRUNC))) doc++; if (((length >= ft_min_word_len && !is_stopword((char*) word->pos, word->len)) || param->trunc) && length < ft_max_word_len) { *start=doc; param->type= FT_TOKEN_WORD; goto ret; } else if (length) /* make sure length > 0 (if start contains spaces only) */ { *start= doc; param->type= FT_TOKEN_STOPWORD; goto ret; } } if (param->quot) { *start= doc; param->type= 3; /* FT_RBR */ goto ret; } ret: return param->type; }
O3
c
ft_get_word: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %r8, %rbx movq %rcx, -0x40(%rbp) movq %rdx, %r13 movq %rdi, %r14 leaq 0x310d96(%rip), %rax # 0x3841f8 movq (%rax), %rax cmpb $0x20, (%rax) movl $0x1, %eax je 0x73479 xorl %eax, %eax cmpq $0x0, 0x10(%rbx) setne %al movq %rsi, -0x38(%rbp) movq (%rsi), %r15 movl %eax, 0x4(%rbx) movb $0x0, 0xc(%rbx) xorl %eax, %eax movl %eax, 0x8(%rbx) movl %eax, (%rbx) cmpq %r13, %r15 jae 0x736fa leaq 0x310d5a(%rip), %r12 # 0x3841f8 movq 0xb8(%r14), %rax movq %r14, %rdi leaq -0x2c(%rbp), %rsi movq %r15, %rdx movq %r13, %rcx callq *0x38(%rax) testb $0x7, -0x2c(%rbp) jne 0x735b6 movzbl (%r15), %ecx cmpl $0x5f, %ecx je 0x735b6 movq (%r12), %rdx movsbl 0xb(%rdx), %edi movq 0x10(%rbx), %rsi cmpl %edi, %ecx jne 0x734e6 testq %rsi, %rsi je 0x734ef jmp 0x736d6 testq %rsi, %rsi jne 0x73577 movsbl 0x5(%rdx), %edi cmpl %edi, %ecx je 0x7369d movsbl 0x6(%rdx), %edi cmpl %edi, %ecx je 0x7369d movsbl 0xa(%rdx), %edi cmpl %edi, %ecx je 0x7369d cmpb $0x20, 0xe(%rbx) jne 0x73577 movsbl (%rdx), %edi cmpl %edi, %ecx jne 0x73529 movl $0x1, 0x4(%rbx) jmp 0x73599 movsbl 0x1(%rdx), %edi cmpl %edi, %ecx jne 0x7353a movl $0x0, 0x4(%rbx) jmp 0x73599 movsbl 0x2(%rdx), %edi cmpl %edi, %ecx jne 0x7354b movl $0xffffffff, 0x4(%rbx) # imm = 0xFFFFFFFF jmp 0x73599 movsbl 0x3(%rdx), %edi cmpl %edi, %ecx jne 0x73558 incl 0x8(%rbx) jmp 0x73599 movsbl 0x4(%rdx), %edi cmpl %edi, %ecx jne 0x73565 decl 0x8(%rbx) jmp 0x73599 movsbl 0x7(%rdx), %edi cmpl %edi, %ecx jne 0x73577 cmpb $0x0, 0xc(%rbx) sete 0xc(%rbx) jmp 0x73599 movb %cl, 0xe(%rbx) cmpb $0x20, (%rdx) sete %cl testq %rsi, %rsi setne %dl orb %cl, %dl movzbl %dl, %ecx movl %ecx, 0x4(%rbx) movb $0x0, 0xc(%rbx) movl $0x0, 0x8(%rbx) movl %eax, %ecx negl %ecx testl %eax, %eax movl $0x1, %edx cmovel %edx, %ecx cmovgl %eax, %ecx addq %rcx, %r15 cmpq %r13, %r15 jb 0x7349e movq -0x40(%rbp), %rax movq %r15, (%rax) xorl %r12d, %r12d cmpq %r13, %r15 jae 0x73607 xorl %r12d, %r12d movq 0xb8(%r14), %rax movq %r14, %rdi leaq -0x2c(%rbp), %rsi movq %r15, %rdx movq %r13, %rcx callq *0x38(%rax) testb $0x7, -0x2c(%rbp) jne 0x735eb cmpb $0x5f, (%r15) jne 0x73668 incl %r12d movl %eax, %ecx negl %ecx testl %eax, %eax movl $0x1, %edx cmovel %edx, %ecx cmovgl %eax, %ecx addq %rcx, %r15 cmpq %r13, %r15 jb 0x735c8 movb $0x41, 0xe(%rbx) movq -0x40(%rbp), %rdx movl (%rdx), %eax movl %r15d, %ecx subl %eax, %ecx movq %rcx, 0x10(%rdx) movb $0x0, 0xd(%rbx) xorl %eax, %eax movl %r12d, %r12d leaq 0x310bb6(%rip), %rcx # 0x3841e0 cmpq %r12, (%rcx) ja 0x73646 movq -0x40(%rbp), %rax movq (%rax), %rdi movq 0x10(%rax), %rsi callq 0x71391 testl %eax, %eax je 0x7364a movb 0xd(%rbx), %al testb %al, %al je 0x7365a leaq 0x310b97(%rip), %rax # 0x3841e8 cmpq %r12, (%rax) ja 0x73705 testq %r12, %r12 je 0x7348e jmp 0x73719 movb $0x41, 0xe(%rbx) movq -0x40(%rbp), %rdx movl (%rdx), %eax movl %r15d, %ecx subl %eax, %ecx movq %rcx, 0x10(%rdx) movzbl (%r15), %ecx leaq 0x310b72(%rip), %rax # 0x3841f8 movq (%rax), %rax movsbl 0x8(%rax), %edx xorl %eax, %eax cmpl %edx, %ecx sete %al sete 0xd(%rbx) addq %rax, %r15 jmp 0x73620 leaq 0x1(%r15), %rax movq -0x38(%rbp), %rcx movq %rax, (%rcx) movzbl (%r15), %ecx movq (%r12), %rax movsbl 0xa(%rax), %edx cmpl %edx, %ecx jne 0x736c4 movq $0x1, 0x10(%rbx) movzbl (%r15), %ecx movsbl 0x6(%rax), %edx xorl %eax, %eax cmpl %edx, %ecx sete %al orl $0x2, %eax movl %eax, (%rbx) jmp 0x736eb incq %r15 movq -0x38(%rbp), %rax movq %r15, (%rax) movl $0x3, (%rbx) movl $0x3, %eax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq cmpq $0x0, 0x10(%rbx) jne 0x736d9 movl (%rbx), %eax jmp 0x736eb movq -0x38(%rbp), %rax movq %r15, (%rax) movl $0x1, (%rbx) movl $0x1, %eax jmp 0x736eb movq -0x38(%rbp), %rax movq %r15, (%rax) movl $0x4, (%rbx) movl $0x4, %eax jmp 0x736eb
ft_get_word: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov rbx, r8 mov [rbp+var_40], rcx mov r13, rdx mov r14, rdi lea rax, ft_boolean_syntax mov rax, [rax] cmp byte ptr [rax], 20h ; ' ' mov eax, 1 jz short loc_73479 xor eax, eax cmp qword ptr [rbx+10h], 0 setnz al loc_73479: mov [rbp+var_38], rsi mov r15, [rsi] mov [rbx+4], eax mov byte ptr [rbx+0Ch], 0 xor eax, eax mov [rbx+8], eax mov [rbx], eax loc_7348E: cmp r15, r13 jnb loc_736FA lea r12, ft_boolean_syntax loc_7349E: mov rax, [r14+0B8h] mov rdi, r14 lea rsi, [rbp+var_2C] mov rdx, r15 mov rcx, r13 call qword ptr [rax+38h] test [rbp+var_2C], 7 jnz loc_735B6 movzx ecx, byte ptr [r15] cmp ecx, 5Fh ; '_' jz loc_735B6 mov rdx, [r12] movsx edi, byte ptr [rdx+0Bh] mov rsi, [rbx+10h] cmp ecx, edi jnz short loc_734E6 test rsi, rsi jz short loc_734EF jmp loc_736D6 loc_734E6: test rsi, rsi jnz loc_73577 loc_734EF: movsx edi, byte ptr [rdx+5] cmp ecx, edi jz loc_7369D movsx edi, byte ptr [rdx+6] cmp ecx, edi jz loc_7369D movsx edi, byte ptr [rdx+0Ah] cmp ecx, edi jz loc_7369D cmp byte ptr [rbx+0Eh], 20h ; ' ' jnz short loc_73577 movsx edi, byte ptr [rdx] cmp ecx, edi jnz short loc_73529 mov dword ptr [rbx+4], 1 jmp short loc_73599 loc_73529: movsx edi, byte ptr [rdx+1] cmp ecx, edi jnz short loc_7353A mov dword ptr [rbx+4], 0 jmp short loc_73599 loc_7353A: movsx edi, byte ptr [rdx+2] cmp ecx, edi jnz short loc_7354B mov dword ptr [rbx+4], 0FFFFFFFFh jmp short loc_73599 loc_7354B: movsx edi, byte ptr [rdx+3] cmp ecx, edi jnz short loc_73558 inc dword ptr [rbx+8] jmp short loc_73599 loc_73558: movsx edi, byte ptr [rdx+4] cmp ecx, edi jnz short loc_73565 dec dword ptr [rbx+8] jmp short loc_73599 loc_73565: movsx edi, byte ptr [rdx+7] cmp ecx, edi jnz short loc_73577 cmp byte ptr [rbx+0Ch], 0 setz byte ptr [rbx+0Ch] jmp short loc_73599 loc_73577: mov [rbx+0Eh], cl cmp byte ptr [rdx], 20h ; ' ' setz cl test rsi, rsi setnz dl or dl, cl movzx ecx, dl mov [rbx+4], ecx mov byte ptr [rbx+0Ch], 0 mov dword ptr [rbx+8], 0 loc_73599: mov ecx, eax neg ecx test eax, eax mov edx, 1 cmovz ecx, edx cmovg ecx, eax add r15, rcx cmp r15, r13 jb loc_7349E loc_735B6: mov rax, [rbp+var_40] mov [rax], r15 xor r12d, r12d cmp r15, r13 jnb short loc_73607 xor r12d, r12d loc_735C8: mov rax, [r14+0B8h] mov rdi, r14 lea rsi, [rbp+var_2C] mov rdx, r15 mov rcx, r13 call qword ptr [rax+38h] test [rbp+var_2C], 7 jnz short loc_735EB cmp byte ptr [r15], 5Fh ; '_' jnz short loc_73668 loc_735EB: inc r12d mov ecx, eax neg ecx test eax, eax mov edx, 1 cmovz ecx, edx cmovg ecx, eax add r15, rcx cmp r15, r13 jb short loc_735C8 loc_73607: mov byte ptr [rbx+0Eh], 41h ; 'A' mov rdx, [rbp+var_40] mov eax, [rdx] mov ecx, r15d sub ecx, eax mov [rdx+10h], rcx mov byte ptr [rbx+0Dh], 0 xor eax, eax loc_73620: mov r12d, r12d lea rcx, ft_min_word_len cmp [rcx], r12 ja short loc_73646 mov rax, [rbp+var_40] mov rdi, [rax] mov rsi, [rax+10h] call is_stopword test eax, eax jz short loc_7364A mov al, [rbx+0Dh] loc_73646: test al, al jz short loc_7365A loc_7364A: lea rax, ft_max_word_len cmp [rax], r12 ja loc_73705 loc_7365A: test r12, r12 jz loc_7348E jmp loc_73719 loc_73668: mov byte ptr [rbx+0Eh], 41h ; 'A' mov rdx, [rbp+var_40] mov eax, [rdx] mov ecx, r15d sub ecx, eax mov [rdx+10h], rcx movzx ecx, byte ptr [r15] lea rax, ft_boolean_syntax mov rax, [rax] movsx edx, byte ptr [rax+8] xor eax, eax cmp ecx, edx setz al setz byte ptr [rbx+0Dh] add r15, rax jmp short loc_73620 loc_7369D: lea rax, [r15+1] mov rcx, [rbp+var_38] mov [rcx], rax movzx ecx, byte ptr [r15] mov rax, [r12] movsx edx, byte ptr [rax+0Ah] cmp ecx, edx jnz short loc_736C4 mov qword ptr [rbx+10h], 1 movzx ecx, byte ptr [r15] loc_736C4: movsx edx, byte ptr [rax+6] xor eax, eax cmp ecx, edx setz al or eax, 2 mov [rbx], eax jmp short loc_736EB loc_736D6: inc r15 loc_736D9: mov rax, [rbp+var_38] mov [rax], r15 mov dword ptr [rbx], 3 mov eax, 3 loc_736EB: add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_736FA: cmp qword ptr [rbx+10h], 0 jnz short loc_736D9 mov eax, [rbx] jmp short loc_736EB loc_73705: mov rax, [rbp+var_38] mov [rax], r15 mov dword ptr [rbx], 1 mov eax, 1 jmp short loc_736EB loc_73719: mov rax, [rbp+var_38] mov [rax], r15 mov dword ptr [rbx], 4 mov eax, 4 jmp short loc_736EB
long long ft_get_word(long long a1, _BYTE **a2, unsigned long long a3, long long *a4, unsigned int *a5) { BOOL v7; // eax _BYTE *v8; // r15 int v9; // eax int v10; // ecx char *v11; // rdx long long v12; // rsi long long v13; // rcx unsigned int v14; // r12d int v15; // eax long long v16; // rcx long long v17; // rax int v18; // ecx char *v19; // rax long long result; // rax _BYTE v23[44]; // [rsp+14h] [rbp-2Ch] BYREF v7 = 1; if ( *ft_boolean_syntax[0] != 32 ) v7 = *((_QWORD *)a5 + 2) != 0LL; v8 = *a2; a5[1] = v7; *((_BYTE *)a5 + 12) = 0; a5[2] = 0; *a5 = 0; while ( 2 ) { if ( (unsigned long long)v8 >= a3 ) { if ( !*((_QWORD *)a5 + 2) ) return *a5; LABEL_54: *a2 = v8; *a5 = 3; return 3LL; } do { v9 = (*(long long ( **)(long long, _BYTE *, _BYTE *, unsigned long long))(*(_QWORD *)(a1 + 184) + 56LL))( a1, v23, v8, a3); if ( (v23[0] & 7) != 0 ) break; v10 = (unsigned __int8)*v8; if ( v10 == 95 ) break; v11 = ft_boolean_syntax[0]; v12 = *((_QWORD *)a5 + 2); if ( v10 == ft_boolean_syntax[0][11] ) { if ( v12 ) { ++v8; goto LABEL_54; } } else if ( v12 ) { goto LABEL_27; } if ( v10 == ft_boolean_syntax[0][5] || v10 == ft_boolean_syntax[0][6] || v10 == ft_boolean_syntax[0][10] ) { *a2 = v8 + 1; v18 = (unsigned __int8)*v8; v19 = ft_boolean_syntax[0]; if ( v18 == ft_boolean_syntax[0][10] ) { *((_QWORD *)a5 + 2) = 1LL; v18 = (unsigned __int8)*v8; } result = (v18 == v19[6]) | 2u; *a5 = result; return result; } if ( *((_BYTE *)a5 + 14) != 32 ) { LABEL_27: *((_BYTE *)a5 + 14) = v10; a5[1] = *v11 == 32 || v12 != 0; *((_BYTE *)a5 + 12) = 0; a5[2] = 0; goto LABEL_28; } if ( v10 == *ft_boolean_syntax[0] ) { a5[1] = 1; } else if ( v10 == ft_boolean_syntax[0][1] ) { a5[1] = 0; } else if ( v10 == ft_boolean_syntax[0][2] ) { a5[1] = -1; } else if ( v10 == ft_boolean_syntax[0][3] ) { ++a5[2]; } else if ( v10 == ft_boolean_syntax[0][4] ) { --a5[2]; } else { if ( v10 != ft_boolean_syntax[0][7] ) goto LABEL_27; *((_BYTE *)a5 + 12) = *((_BYTE *)a5 + 12) == 0; } LABEL_28: v13 = (unsigned int)-v9; if ( !v9 ) v13 = 1LL; if ( v9 > 0 ) v13 = (unsigned int)v9; v8 += v13; } while ( (unsigned long long)v8 < a3 ); *a4 = (long long)v8; v14 = 0; if ( (unsigned long long)v8 >= a3 ) { LABEL_42: *((_BYTE *)a5 + 14) = 65; a4[2] = (unsigned int)((_DWORD)v8 - *(_DWORD *)a4); *((_BYTE *)a5 + 13) = 0; LOBYTE(v17) = 0; } else { v14 = 0; while ( 1 ) { v15 = (*(long long ( **)(long long, _BYTE *, _BYTE *, unsigned long long))(*(_QWORD *)(a1 + 184) + 56LL))( a1, v23, v8, a3); if ( (v23[0] & 7) == 0 && *v8 != 95 ) break; ++v14; v16 = (unsigned int)-v15; if ( !v15 ) v16 = 1LL; if ( v15 > 0 ) v16 = (unsigned int)v15; v8 += v16; if ( (unsigned long long)v8 >= a3 ) goto LABEL_42; } *((_BYTE *)a5 + 14) = 65; a4[2] = (unsigned int)((_DWORD)v8 - *(_DWORD *)a4); v17 = (unsigned __int8)*v8 == ft_boolean_syntax[0][8]; *((_BYTE *)a5 + 13) = v17; v8 += v17; } if ( ft_min_word_len > (unsigned long long)v14 ) { LABEL_46: if ( (_BYTE)v17 ) goto LABEL_47; } else { if ( is_stopword(*a4, a4[2]) ) { LOBYTE(v17) = *((_BYTE *)a5 + 13); goto LABEL_46; } LABEL_47: if ( ft_max_word_len > (unsigned long long)v14 ) { *a2 = v8; *a5 = 1; return 1LL; } } if ( !v14 ) continue; break; } *a2 = v8; *a5 = 4; return 4LL; }
ft_get_word: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV RBX,R8 MOV qword ptr [RBP + -0x40],RCX MOV R13,RDX MOV R14,RDI LEA RAX,[0x4841f8] MOV RAX,qword ptr [RAX] CMP byte ptr [RAX],0x20 MOV EAX,0x1 JZ 0x00173479 XOR EAX,EAX CMP qword ptr [RBX + 0x10],0x0 SETNZ AL LAB_00173479: MOV qword ptr [RBP + -0x38],RSI MOV R15,qword ptr [RSI] MOV dword ptr [RBX + 0x4],EAX MOV byte ptr [RBX + 0xc],0x0 XOR EAX,EAX MOV dword ptr [RBX + 0x8],EAX MOV dword ptr [RBX],EAX LAB_0017348e: CMP R15,R13 JNC 0x001736fa LEA R12,[0x4841f8] LAB_0017349e: MOV RAX,qword ptr [R14 + 0xb8] MOV RDI,R14 LEA RSI,[RBP + -0x2c] MOV RDX,R15 MOV RCX,R13 CALL qword ptr [RAX + 0x38] TEST byte ptr [RBP + -0x2c],0x7 JNZ 0x001735b6 MOVZX ECX,byte ptr [R15] CMP ECX,0x5f JZ 0x001735b6 MOV RDX,qword ptr [R12] MOVSX EDI,byte ptr [RDX + 0xb] MOV RSI,qword ptr [RBX + 0x10] CMP ECX,EDI JNZ 0x001734e6 TEST RSI,RSI JZ 0x001734ef JMP 0x001736d6 LAB_001734e6: TEST RSI,RSI JNZ 0x00173577 LAB_001734ef: MOVSX EDI,byte ptr [RDX + 0x5] CMP ECX,EDI JZ 0x0017369d MOVSX EDI,byte ptr [RDX + 0x6] CMP ECX,EDI JZ 0x0017369d MOVSX EDI,byte ptr [RDX + 0xa] CMP ECX,EDI JZ 0x0017369d CMP byte ptr [RBX + 0xe],0x20 JNZ 0x00173577 MOVSX EDI,byte ptr [RDX] CMP ECX,EDI JNZ 0x00173529 MOV dword ptr [RBX + 0x4],0x1 JMP 0x00173599 LAB_00173529: MOVSX EDI,byte ptr [RDX + 0x1] CMP ECX,EDI JNZ 0x0017353a MOV dword ptr [RBX + 0x4],0x0 JMP 0x00173599 LAB_0017353a: MOVSX EDI,byte ptr [RDX + 0x2] CMP ECX,EDI JNZ 0x0017354b MOV dword ptr [RBX + 0x4],0xffffffff JMP 0x00173599 LAB_0017354b: MOVSX EDI,byte ptr [RDX + 0x3] CMP ECX,EDI JNZ 0x00173558 INC dword ptr [RBX + 0x8] JMP 0x00173599 LAB_00173558: MOVSX EDI,byte ptr [RDX + 0x4] CMP ECX,EDI JNZ 0x00173565 DEC dword ptr [RBX + 0x8] JMP 0x00173599 LAB_00173565: MOVSX EDI,byte ptr [RDX + 0x7] CMP ECX,EDI JNZ 0x00173577 CMP byte ptr [RBX + 0xc],0x0 SETZ byte ptr [RBX + 0xc] JMP 0x00173599 LAB_00173577: MOV byte ptr [RBX + 0xe],CL CMP byte ptr [RDX],0x20 SETZ CL TEST RSI,RSI SETNZ DL OR DL,CL MOVZX ECX,DL MOV dword ptr [RBX + 0x4],ECX MOV byte ptr [RBX + 0xc],0x0 MOV dword ptr [RBX + 0x8],0x0 LAB_00173599: MOV ECX,EAX NEG ECX TEST EAX,EAX MOV EDX,0x1 CMOVZ ECX,EDX CMOVG ECX,EAX ADD R15,RCX CMP R15,R13 JC 0x0017349e LAB_001735b6: MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RAX],R15 XOR R12D,R12D CMP R15,R13 JNC 0x00173607 XOR R12D,R12D LAB_001735c8: MOV RAX,qword ptr [R14 + 0xb8] MOV RDI,R14 LEA RSI,[RBP + -0x2c] MOV RDX,R15 MOV RCX,R13 CALL qword ptr [RAX + 0x38] TEST byte ptr [RBP + -0x2c],0x7 JNZ 0x001735eb CMP byte ptr [R15],0x5f JNZ 0x00173668 LAB_001735eb: INC R12D MOV ECX,EAX NEG ECX TEST EAX,EAX MOV EDX,0x1 CMOVZ ECX,EDX CMOVG ECX,EAX ADD R15,RCX CMP R15,R13 JC 0x001735c8 LAB_00173607: MOV byte ptr [RBX + 0xe],0x41 MOV RDX,qword ptr [RBP + -0x40] MOV EAX,dword ptr [RDX] MOV ECX,R15D SUB ECX,EAX MOV qword ptr [RDX + 0x10],RCX MOV byte ptr [RBX + 0xd],0x0 XOR EAX,EAX LAB_00173620: MOV R12D,R12D LEA RCX,[0x4841e0] CMP qword ptr [RCX],R12 JA 0x00173646 MOV RAX,qword ptr [RBP + -0x40] MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RAX + 0x10] CALL 0x00171391 TEST EAX,EAX JZ 0x0017364a MOV AL,byte ptr [RBX + 0xd] LAB_00173646: TEST AL,AL JZ 0x0017365a LAB_0017364a: LEA RAX,[0x4841e8] CMP qword ptr [RAX],R12 JA 0x00173705 LAB_0017365a: TEST R12,R12 JZ 0x0017348e JMP 0x00173719 LAB_00173668: MOV byte ptr [RBX + 0xe],0x41 MOV RDX,qword ptr [RBP + -0x40] MOV EAX,dword ptr [RDX] MOV ECX,R15D SUB ECX,EAX MOV qword ptr [RDX + 0x10],RCX MOVZX ECX,byte ptr [R15] LEA RAX,[0x4841f8] MOV RAX,qword ptr [RAX] MOVSX EDX,byte ptr [RAX + 0x8] XOR EAX,EAX CMP ECX,EDX SETZ AL SETZ byte ptr [RBX + 0xd] ADD R15,RAX JMP 0x00173620 LAB_0017369d: LEA RAX,[R15 + 0x1] MOV RCX,qword ptr [RBP + -0x38] MOV qword ptr [RCX],RAX MOVZX ECX,byte ptr [R15] MOV RAX,qword ptr [R12] MOVSX EDX,byte ptr [RAX + 0xa] CMP ECX,EDX JNZ 0x001736c4 MOV qword ptr [RBX + 0x10],0x1 MOVZX ECX,byte ptr [R15] LAB_001736c4: MOVSX EDX,byte ptr [RAX + 0x6] XOR EAX,EAX CMP ECX,EDX SETZ AL OR EAX,0x2 MOV dword ptr [RBX],EAX JMP 0x001736eb LAB_001736d6: INC R15 LAB_001736d9: MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX],R15 MOV dword ptr [RBX],0x3 MOV EAX,0x3 LAB_001736eb: ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001736fa: CMP qword ptr [RBX + 0x10],0x0 JNZ 0x001736d9 MOV EAX,dword ptr [RBX] JMP 0x001736eb LAB_00173705: MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX],R15 MOV dword ptr [RBX],0x1 MOV EAX,0x1 JMP 0x001736eb LAB_00173719: MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX],R15 MOV dword ptr [RBX],0x4 MOV EAX,0x4 JMP 0x001736eb
uint ft_get_word(long param_1,long *param_2,byte *param_3,int *param_4,uint *param_5) { byte bVar1; long lVar2; int *puVar3; uint uVar4; uint uVar5; int iVar6; ulong uVar7; byte *pbVar8; char cVar9; byte local_34 [4]; uVar4 = 1; if (*ft_boolean_syntax != ' ') { uVar4 = (uint)(*(long *)(param_5 + 4) != 0); } pbVar8 = (byte *)*param_2; param_5[1] = uVar4; *(int1 *)(param_5 + 3) = 0; param_5[2] = 0; *param_5 = 0; do { if (param_3 <= pbVar8) { if (*(long *)(param_5 + 4) == 0) { return *param_5; } LAB_001736d9: *param_2 = (long)pbVar8; *param_5 = 3; return 3; } do { uVar4 = (**(code **)(*(long *)(param_1 + 0xb8) + 0x38))(param_1,local_34,pbVar8,param_3); puVar3 = ft_boolean_syntax; if ((local_34[0] & 7) != 0) break; bVar1 = *pbVar8; if (bVar1 == 0x5f) break; lVar2 = *(long *)(param_5 + 4); if ((uint)bVar1 == (int)(char)ft_boolean_syntax[0xb]) { if (lVar2 != 0) { pbVar8 = pbVar8 + 1; goto LAB_001736d9; } LAB_001734ef: uVar5 = (uint)bVar1; if (((uVar5 == (int)(char)ft_boolean_syntax[5]) || (uVar5 == (int)(char)ft_boolean_syntax[6])) || (uVar5 == (int)(char)ft_boolean_syntax[10])) { *param_2 = (long)(pbVar8 + 1); puVar3 = ft_boolean_syntax; bVar1 = *pbVar8; if ((uint)bVar1 == (int)(char)ft_boolean_syntax[10]) { param_5[4] = 1; param_5[5] = 0; bVar1 = *pbVar8; } uVar4 = (uint)bVar1 == (int)(char)puVar3[6] | 2; *param_5 = uVar4; return uVar4; } if (*(char *)((long)param_5 + 0xe) != ' ') goto LAB_00173577; if (uVar5 == (int)(char)*ft_boolean_syntax) { param_5[1] = 1; } else { uVar5 = (uint)bVar1; if (uVar5 == (int)(char)ft_boolean_syntax[1]) { param_5[1] = 0; } else if (uVar5 == (int)(char)ft_boolean_syntax[2]) { param_5[1] = 0xffffffff; } else if (uVar5 == (int)(char)ft_boolean_syntax[3]) { param_5[2] = param_5[2] + 1; } else if (uVar5 == (int)(char)ft_boolean_syntax[4]) { param_5[2] = param_5[2] - 1; } else { if (uVar5 != (int)(char)ft_boolean_syntax[7]) goto LAB_00173577; *(bool *)(param_5 + 3) = (char)param_5[3] == '\0'; } } } else { if (lVar2 == 0) goto LAB_001734ef; LAB_00173577: *(byte *)((long)param_5 + 0xe) = bVar1; param_5[1] = (uint)(lVar2 != 0 || *puVar3 == ' '); *(int1 *)(param_5 + 3) = 0; param_5[2] = 0; } uVar7 = (ulong)-uVar4; if (uVar4 == 0) { uVar7 = 1; } if (0 < (int)uVar4) { uVar7 = (ulong)uVar4; } pbVar8 = pbVar8 + uVar7; } while (pbVar8 < param_3); *(byte **)param_4 = pbVar8; uVar4 = 0; if (pbVar8 < param_3) { uVar4 = 0; do { uVar5 = (**(code **)(*(long *)(param_1 + 0xb8) + 0x38))(param_1,local_34,pbVar8,param_3); if (((local_34[0] & 7) == 0) && (*pbVar8 != 0x5f)) { *(int1 *)((long)param_5 + 0xe) = 0x41; *(ulong *)(param_4 + 4) = (ulong)(uint)((int)pbVar8 - *param_4); cVar9 = (uint)*pbVar8 == (int)(char)ft_boolean_syntax[8]; *(char *)((long)param_5 + 0xd) = cVar9; pbVar8 = pbVar8 + (byte)cVar9; goto LAB_00173620; } uVar4 = uVar4 + 1; uVar7 = (ulong)-uVar5; if (uVar5 == 0) { uVar7 = 1; } if (0 < (int)uVar5) { uVar7 = (ulong)uVar5; } pbVar8 = pbVar8 + uVar7; } while (pbVar8 < param_3); } *(int1 *)((long)param_5 + 0xe) = 0x41; *(ulong *)(param_4 + 4) = (ulong)(uint)((int)pbVar8 - *param_4); *(int1 *)((long)param_5 + 0xd) = 0; cVar9 = false; LAB_00173620: uVar7 = (ulong)uVar4; if (uVar7 < ft_min_word_len) { LAB_00173646: if (cVar9 != '\0') goto LAB_0017364a; } else { iVar6 = is_stopword(*(int8 *)param_4,*(int8 *)(param_4 + 4)); if (iVar6 != 0) { cVar9 = *(char *)((long)param_5 + 0xd); goto LAB_00173646; } LAB_0017364a: if (uVar7 < ft_max_word_len) { *param_2 = (long)pbVar8; *param_5 = 1; return 1; } } if (uVar7 != 0) { *param_2 = (long)pbVar8; *param_5 = 4; return 4; } } while( true ); }
52,833
evmone::(anonymous namespace)::InstructionTracer::on_execution_end(evmc_result const&)
corpus-core[P]colibri-stateless/build_O3/_deps/evmone_external-src/lib/evmone/tracing.cpp
void on_execution_end(const evmc_result& /*result*/) noexcept override { m_contexts.pop(); }
O3
cpp
evmone::(anonymous namespace)::InstructionTracer::on_execution_end(evmc_result const&): pushq %rbx movq %rdi, %rbx movq 0x40(%rdi), %rax movq 0x48(%rdi), %rdi cmpq %rdi, %rax je 0x4a811 addq $-0x18, %rax jmp 0x4a840 movl $0x1f8, %esi # imm = 0x1F8 callq 0x21200 movq 0x58(%rbx), %rax leaq -0x8(%rax), %rcx movq %rcx, 0x58(%rbx) movq -0x8(%rax), %rax movq %rax, 0x48(%rbx) leaq 0x1f8(%rax), %rcx movq %rcx, 0x50(%rbx) addq $0x1e0, %rax # imm = 0x1E0 movq %rax, 0x40(%rbx) popq %rbx retq
_ZN6evmone12_GLOBAL__N_117InstructionTracer16on_execution_endERK11evmc_result: push rbx mov rbx, rdi mov rax, [rdi+40h] mov rdi, [rdi+48h]; void * cmp rax, rdi jz short loc_4A811 add rax, 0FFFFFFFFFFFFFFE8h jmp short loc_4A840 loc_4A811: mov esi, 1F8h; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) mov rax, [rbx+58h] lea rcx, [rax-8] mov [rbx+58h], rcx mov rax, [rax-8] mov [rbx+48h], rax lea rcx, [rax+1F8h] mov [rbx+50h], rcx add rax, 1E0h loc_4A840: mov [rbx+40h], rax pop rbx retn
char * evmone::`anonymous namespace'::InstructionTracer::on_execution_end(_QWORD *a1) { char *v2; // rax char *v3; // rdi char *result; // rax long long *v5; // rcx long long v6; // rax v2 = (char *)a1[8]; v3 = (char *)a1[9]; if ( v2 == v3 ) { operator delete(v3, 0x1F8uLL); v5 = (long long *)(a1[11] - 8LL); a1[11] = v5; v6 = *v5; a1[9] = *v5; a1[10] = v6 + 504; result = (char *)(v6 + 480); } else { result = v2 - 24; } a1[8] = result; return result; }
on_execution_end: PUSH RBX MOV RBX,RDI MOV RAX,qword ptr [RDI + 0x40] MOV RDI,qword ptr [RDI + 0x48] CMP RAX,RDI JZ 0x0014a811 ADD RAX,-0x18 JMP 0x0014a840 LAB_0014a811: MOV ESI,0x1f8 CALL 0x00121200 MOV RAX,qword ptr [RBX + 0x58] LEA RCX,[RAX + -0x8] MOV qword ptr [RBX + 0x58],RCX MOV RAX,qword ptr [RAX + -0x8] MOV qword ptr [RBX + 0x48],RAX LEA RCX,[RAX + 0x1f8] MOV qword ptr [RBX + 0x50],RCX ADD RAX,0x1e0 LAB_0014a840: MOV qword ptr [RBX + 0x40],RAX POP RBX RET
/* evmone::(anonymous namespace)::InstructionTracer::on_execution_end(evmc_result const&) */ void evmone::(anonymous_namespace)::InstructionTracer::on_execution_end(evmc_result *param_1) { long lVar1; if (*(void **)(param_1 + 0x40) == *(void **)(param_1 + 0x48)) { operator_delete(*(void **)(param_1 + 0x48),0x1f8); lVar1 = *(long *)(param_1 + 0x58); *(long *)(param_1 + 0x58) = lVar1 + -8; lVar1 = *(long *)(lVar1 + -8); *(long *)(param_1 + 0x48) = lVar1; *(long *)(param_1 + 0x50) = lVar1 + 0x1f8; lVar1 = lVar1 + 0x1e0; } else { lVar1 = (long)*(void **)(param_1 + 0x40) + -0x18; } *(long *)(param_1 + 0x40) = lVar1; return; }
52,834
var_from_env(char const*, char const*)
eloqsql/client/mysqltest.cc
VAR* var_from_env(const char *name, const char *def_val) { const char *tmp; VAR *v; if (!(tmp = getenv(name))) tmp = def_val; v = var_init(0, name, strlen(name), tmp, strlen(tmp)); my_hash_insert(&var_hash, (uchar*)v); return v; }
O0
cpp
var_from_env(char const*, char const*): pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rdi callq 0x60880 movq %rax, -0x18(%rbp) cmpq $0x0, %rax jne 0x64d5b movq -0x10(%rbp), %rax movq %rax, -0x18(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x8(%rbp), %rdi callq 0x60460 movq %rax, -0x30(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x18(%rbp), %rdi callq 0x60460 movq -0x38(%rbp), %rsi movq -0x30(%rbp), %rdx movq -0x28(%rbp), %rcx movq %rax, %r8 xorl %eax, %eax movl %eax, %edi callq 0x64b90 movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rsi leaq 0x454788(%rip), %rdi # 0x4b9530 callq 0xb5270 movq -0x20(%rbp), %rax addq $0x40, %rsp popq %rbp retq nopw (%rax,%rax)
_Z12var_from_envPKcS0_: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rdi, [rbp+var_8] call _getenv mov [rbp+var_18], rax cmp rax, 0 jnz short loc_64D5B mov rax, [rbp+var_10] mov [rbp+var_18], rax loc_64D5B: mov rax, [rbp+var_8] mov [rbp+var_38], rax mov rdi, [rbp+var_8] call _strlen mov [rbp+var_30], rax mov rax, [rbp+var_18] mov [rbp+var_28], rax mov rdi, [rbp+var_18] call _strlen mov rsi, [rbp+var_38] mov rdx, [rbp+var_30] mov rcx, [rbp+var_28] mov r8, rax xor eax, eax mov edi, eax call _Z8var_initP3VARPKcmS2_m; var_init(VAR *,char const*,ulong,char const*,ulong) mov [rbp+var_20], rax mov rsi, [rbp+var_20] lea rdi, var_hash call my_hash_insert mov rax, [rbp+var_20] add rsp, 40h pop rbp retn
unsigned long long var_from_env(const char *a1, const char *a2) { long long v2; // rax long long v4; // [rsp+10h] [rbp-30h] unsigned long long v5; // [rsp+20h] [rbp-20h] const char *v6; // [rsp+28h] [rbp-18h] v6 = (const char *)getenv(a1); if ( !v6 ) v6 = a2; v4 = strlen(a1); v2 = strlen(v6); v5 = var_init(0LL, (long long)a1, v4, (long long)v6, v2); my_hash_insert(&var_hash, v5); return v5; }
var_from_env: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RDI,qword ptr [RBP + -0x8] CALL 0x00160880 MOV qword ptr [RBP + -0x18],RAX CMP RAX,0x0 JNZ 0x00164d5b MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x18],RAX LAB_00164d5b: MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x38],RAX MOV RDI,qword ptr [RBP + -0x8] CALL 0x00160460 MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x28],RAX MOV RDI,qword ptr [RBP + -0x18] CALL 0x00160460 MOV RSI,qword ptr [RBP + -0x38] MOV RDX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x28] MOV R8,RAX XOR EAX,EAX MOV EDI,EAX CALL 0x00164b90 MOV qword ptr [RBP + -0x20],RAX MOV RSI,qword ptr [RBP + -0x20] LEA RDI,[0x5b9530] CALL 0x001b5270 MOV RAX,qword ptr [RBP + -0x20] ADD RSP,0x40 POP RBP RET
/* var_from_env(char const*, char const*) */ int8 var_from_env(char *param_1,char *param_2) { size_t sVar1; size_t sVar2; int8 uVar3; char *local_20; local_20 = getenv(param_1); if (local_20 == (char *)0x0) { local_20 = param_2; } sVar1 = strlen(param_1); sVar2 = strlen(local_20); uVar3 = var_init((VAR *)0x0,param_1,sVar1,local_20,sVar2); my_hash_insert(var_hash,uVar3); return uVar3; }
52,835
mi_get_block_info
eloqsql/storage/myisam/mi_dynrec.c
uint _mi_get_block_info(MI_BLOCK_INFO *info, File file, my_off_t filepos) { uint return_val=0; uchar *header=info->header; if (file >= 0) { /* We do not use mysql_file_pread() here because we want to have the file pointer set to the end of the header after this function. mysql_file_pread() may leave the file pointer untouched. */ mysql_file_seek(file, filepos, MY_SEEK_SET, MYF(0)); if (mysql_file_read(file, header, sizeof(info->header), MYF(0)) != sizeof(info->header)) goto err; } DBUG_DUMP("header",header,MI_BLOCK_INFO_HEADER_LENGTH); if (info->second_read) { if (info->header[0] <= 6 || info->header[0] == 13) return_val=BLOCK_SYNC_ERROR; } else { if (info->header[0] > 6 && info->header[0] != 13) return_val=BLOCK_SYNC_ERROR; } info->next_filepos= HA_OFFSET_ERROR; /* Dummy if no next block */ switch (info->header[0]) { case 0: if ((info->block_len=(uint) mi_uint3korr(header+1)) < MI_MIN_BLOCK_LENGTH || (info->block_len & (MI_DYN_ALIGN_SIZE -1))) goto err; info->filepos=filepos; info->next_filepos=mi_sizekorr(header+4); info->prev_filepos=mi_sizekorr(header+12); #if SIZEOF_OFF_T == 4 if ((mi_uint4korr(header+4) != 0 && (mi_uint4korr(header+4) != (ulong) ~0 || info->next_filepos != (ulong) ~0)) || (mi_uint4korr(header+12) != 0 && (mi_uint4korr(header+12) != (ulong) ~0 || info->prev_filepos != (ulong) ~0))) goto err; #endif return return_val | BLOCK_DELETED; /* Deleted block */ case 1: info->rec_len=info->data_len=info->block_len=mi_uint2korr(header+1); info->filepos=filepos+3; return return_val | BLOCK_FIRST | BLOCK_LAST; case 2: info->rec_len=info->data_len=info->block_len=mi_uint3korr(header+1); info->filepos=filepos+4; return return_val | BLOCK_FIRST | BLOCK_LAST; case 13: info->rec_len=mi_uint4korr(header+1); info->block_len=info->data_len=mi_uint3korr(header+5); info->next_filepos=mi_sizekorr(header+8); info->second_read=1; info->filepos=filepos+16; return return_val | BLOCK_FIRST; case 3: info->rec_len=info->data_len=mi_uint2korr(header+1); info->block_len=info->rec_len+ (uint) header[3]; info->filepos=filepos+4; return return_val | BLOCK_FIRST | BLOCK_LAST; case 4: info->rec_len=info->data_len=mi_uint3korr(header+1); info->block_len=info->rec_len+ (uint) header[4]; info->filepos=filepos+5; return return_val | BLOCK_FIRST | BLOCK_LAST; case 5: info->rec_len=mi_uint2korr(header+1); info->block_len=info->data_len=mi_uint2korr(header+3); info->next_filepos=mi_sizekorr(header+5); info->second_read=1; info->filepos=filepos+13; return return_val | BLOCK_FIRST; case 6: info->rec_len=mi_uint3korr(header+1); info->block_len=info->data_len=mi_uint3korr(header+4); info->next_filepos=mi_sizekorr(header+7); info->second_read=1; info->filepos=filepos+15; return return_val | BLOCK_FIRST; /* The following blocks are identical to 1-6 without rec_len */ case 7: info->data_len=info->block_len=mi_uint2korr(header+1); info->filepos=filepos+3; return return_val | BLOCK_LAST; case 8: info->data_len=info->block_len=mi_uint3korr(header+1); info->filepos=filepos+4; return return_val | BLOCK_LAST; case 9: info->data_len=mi_uint2korr(header+1); info->block_len=info->data_len+ (uint) header[3]; info->filepos=filepos+4; return return_val | BLOCK_LAST; case 10: info->data_len=mi_uint3korr(header+1); info->block_len=info->data_len+ (uint) header[4]; info->filepos=filepos+5; return return_val | BLOCK_LAST; case 11: info->data_len=info->block_len=mi_uint2korr(header+1); info->next_filepos=mi_sizekorr(header+3); info->second_read=1; info->filepos=filepos+11; return return_val; case 12: info->data_len=info->block_len=mi_uint3korr(header+1); info->next_filepos=mi_sizekorr(header+4); info->second_read=1; info->filepos=filepos+12; return return_val; } err: my_errno=HA_ERR_WRONG_IN_RECORD; /* Garbage */ return BLOCK_ERROR; }
O3
c
mi_get_block_info: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x50, %rsp movq %rdx, %r14 movq %rdi, %rbx testl %esi, %esi js 0x93348 movl %esi, %r15d leaq 0x31b736(%rip), %r12 # 0x3aea18 movq (%r12), %rax leaq -0x70(%rbp), %rdi movl $0x8, %edx callq *0x158(%rax) testq %rax, %rax jne 0x93664 movl %r15d, %edi movq %r14, %rsi xorl %edx, %edx xorl %ecx, %ecx callq 0xc056c movq (%r12), %rax leaq -0x70(%rbp), %rdi movl %r15d, %esi movl $0x6, %edx callq *0x158(%rax) testq %rax, %rax jne 0x93677 movl $0x14, %edx movl %r15d, %edi movq %rbx, %rsi xorl %ecx, %ecx callq 0xbff8c cmpq $0x14, %rax jne 0x933df movl 0x50(%rbx), %edx xorl %eax, %eax testl %edx, %edx sete %sil movzbl (%rbx), %ecx cmpq $0xd, %rcx ja 0x93375 testl %edx, %edx leaq 0x72863(%rip), %rax # 0x105bc8 leaq 0x72824(%rip), %rdx # 0x105b90 cmoveq %rax, %rdx movl (%rdx,%rcx,4), %eax jmp 0x9337b movb %sil, %al shll $0x4, %eax movq $-0x1, 0x40(%rbx) cmpb $0xd, %cl ja 0x933df leaq 0x72789(%rip), %rdx # 0x105b18 movslq (%rdx,%rcx,4), %rcx addq %rdx, %rcx jmpq *%rcx movzbl 0x3(%rbx), %edx movzbl 0x2(%rbx), %esi shll $0x8, %esi movzbl 0x1(%rbx), %ecx shll $0x10, %ecx orl %esi, %ecx orq %rdx, %rcx movq %rcx, 0x28(%rbx) testb $0x3, %dl jne 0x933df cmpl $0x14, %ecx jb 0x933df movq %r14, 0x38(%rbx) movq 0x4(%rbx), %rcx movq 0xc(%rbx), %rdx bswapq %rcx movq %rcx, 0x40(%rbx) bswapq %rdx movq %rdx, 0x48(%rbx) orl $0x4, %eax jmp 0x93657 callq 0xc14ee movl $0x7f, (%rax) movl $0x8, %eax jmp 0x93657 movzwl 0x1(%rbx), %ecx rolw $0x8, %cx movzwl %cx, %ecx movq %rcx, 0x28(%rbx) movq %rcx, 0x20(%rbx) movq 0x3(%rbx), %rcx bswapq %rcx movq %rcx, 0x40(%rbx) movl $0x1, 0x50(%rbx) addq $0xb, %r14 jmp 0x93483 movzwl 0x2(%rbx), %ecx rolw $0x8, %cx movzwl %cx, %ecx movzbl 0x1(%rbx), %edx shll $0x10, %edx orq %rcx, %rdx movq %rdx, 0x20(%rbx) movq %rdx, 0x18(%rbx) movzbl 0x4(%rbx), %ecx addq %rdx, %rcx movq %rcx, 0x28(%rbx) addq $0x5, %r14 jmp 0x93529 movzwl 0x2(%rbx), %ecx rolw $0x8, %cx movzwl %cx, %ecx movzbl 0x1(%rbx), %edx shll $0x10, %edx orq %rcx, %rdx movq %rdx, 0x28(%rbx) movq %rdx, 0x20(%rbx) movq 0x4(%rbx), %rcx bswapq %rcx movq %rcx, 0x40(%rbx) movl $0x1, 0x50(%rbx) addq $0xc, %r14 movq %r14, 0x38(%rbx) jmp 0x93657 movzwl 0x1(%rbx), %ecx rolw $0x8, %cx movzwl %cx, %ecx movq %rcx, 0x20(%rbx) movzbl 0x3(%rbx), %edx addq %rcx, %rdx movq %rdx, 0x28(%rbx) jmp 0x9364c movzwl 0x2(%rbx), %ecx rolw $0x8, %cx movzwl %cx, %ecx movzbl 0x1(%rbx), %edx shll $0x10, %edx orq %rcx, %rdx movq %rdx, 0x28(%rbx) movq %rdx, 0x20(%rbx) movq %rdx, 0x18(%rbx) jmp 0x934ec movzwl 0x1(%rbx), %ecx rolw $0x8, %cx movzwl %cx, %ecx movq %rcx, 0x20(%rbx) movq %rcx, 0x18(%rbx) movzbl 0x3(%rbx), %edx addq %rcx, %rdx movq %rdx, 0x28(%rbx) addq $0x4, %r14 jmp 0x93529 movzwl 0x1(%rbx), %ecx rolw $0x8, %cx movzwl %cx, %ecx movq %rcx, 0x28(%rbx) movq %rcx, 0x20(%rbx) addq $0x3, %r14 jmp 0x93650 movzwl 0x1(%rbx), %ecx rolw $0x8, %cx movzwl %cx, %ecx movq %rcx, 0x28(%rbx) movq %rcx, 0x20(%rbx) movq %rcx, 0x18(%rbx) addq $0x3, %r14 movq %r14, 0x38(%rbx) orl $0x3, %eax jmp 0x93657 movzwl 0x1(%rbx), %ecx rolw $0x8, %cx movzwl 0x3(%rbx), %edx movzwl %cx, %ecx rolw $0x8, %dx movq %rcx, 0x18(%rbx) movzwl %dx, %ecx movq %rcx, 0x20(%rbx) movq %rcx, 0x28(%rbx) movq 0x5(%rbx), %rcx bswapq %rcx movq %rcx, 0x40(%rbx) movl $0x1, 0x50(%rbx) addq $0xd, %r14 jmp 0x935fc movl 0x1(%rbx), %ecx bswapl %ecx movq %rcx, 0x18(%rbx) movzwl 0x6(%rbx), %ecx rolw $0x8, %cx movzwl %cx, %ecx movzbl 0x5(%rbx), %edx shll $0x10, %edx orq %rcx, %rdx movq %rdx, 0x20(%rbx) movq %rdx, 0x28(%rbx) movq 0x8(%rbx), %rcx bswapq %rcx movq %rcx, 0x40(%rbx) movl $0x1, 0x50(%rbx) addq $0x10, %r14 jmp 0x935fc movzwl 0x2(%rbx), %ecx movzwl 0x5(%rbx), %edx rolw $0x8, %cx movzwl %cx, %ecx movzbl 0x1(%rbx), %esi shll $0x10, %esi orq %rcx, %rsi movq %rsi, 0x18(%rbx) rolw $0x8, %dx movzwl %dx, %ecx movzbl 0x4(%rbx), %edx shll $0x10, %edx orq %rcx, %rdx movq %rdx, 0x20(%rbx) movq %rdx, 0x28(%rbx) movq 0x7(%rbx), %rcx bswapq %rcx movq %rcx, 0x40(%rbx) movl $0x1, 0x50(%rbx) addq $0xf, %r14 movq %r14, 0x38(%rbx) orl $0x1, %eax jmp 0x93657 movzwl 0x2(%rbx), %ecx rolw $0x8, %cx movzwl %cx, %ecx movzbl 0x1(%rbx), %edx shll $0x10, %edx orq %rcx, %rdx movq %rdx, 0x20(%rbx) movzbl 0x4(%rbx), %ecx addq %rdx, %rcx movq %rcx, 0x28(%rbx) addq $0x5, %r14 jmp 0x93650 movzwl 0x2(%rbx), %ecx rolw $0x8, %cx movzwl %cx, %ecx movzbl 0x1(%rbx), %edx shll $0x10, %edx orq %rcx, %rdx movq %rdx, 0x28(%rbx) movq %rdx, 0x20(%rbx) addq $0x4, %r14 movq %r14, 0x38(%rbx) orl $0x2, %eax addq $0x50, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq %rax, %rdi movl %r15d, %esi movq %r14, %rdx callq 0x2f3cf jmp 0x9330d leaq -0x28(%rbp), %r12 movq %rax, %rdi movl %r15d, %esi movq %rbx, %rdx movq %r12, %rcx callq 0x2f429 movq (%r12), %rax jmp 0x9333e
_mi_get_block_info: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx sub rsp, 50h mov r14, rdx mov rbx, rdi test esi, esi js short loc_93348 mov r15d, esi lea r12, PSI_server mov rax, [r12] lea rdi, [rbp+var_70] mov edx, 8 call qword ptr [rax+158h] test rax, rax jnz loc_93664 mov edi, r15d mov rsi, r14 xor edx, edx xor ecx, ecx call my_seek loc_9330D: mov rax, [r12] lea rdi, [rbp+var_70] mov esi, r15d mov edx, 6 call qword ptr [rax+158h] test rax, rax jnz loc_93677 mov edx, 14h mov edi, r15d mov rsi, rbx xor ecx, ecx call my_read loc_9333E: cmp rax, 14h jnz def_93396; jumptable 0000000000093396 default case loc_93348: mov edx, [rbx+50h] xor eax, eax test edx, edx setz sil movzx ecx, byte ptr [rbx] cmp rcx, 0Dh ja short loc_93375 test edx, edx lea rax, unk_105BC8 lea rdx, unk_105B90 cmovz rdx, rax mov eax, [rdx+rcx*4] jmp short loc_9337B loc_93375: mov al, sil shl eax, 4 loc_9337B: mov qword ptr [rbx+40h], 0FFFFFFFFFFFFFFFFh cmp cl, 0Dh; switch 14 cases ja short def_93396; jumptable 0000000000093396 default case lea rdx, jpt_93396 movsxd rcx, ds:(jpt_93396 - 105B18h)[rdx+rcx*4] add rcx, rdx jmp rcx; switch jump loc_93398: movzx edx, byte ptr [rbx+3]; jumptable 0000000000093396 case 0 movzx esi, byte ptr [rbx+2] shl esi, 8 movzx ecx, byte ptr [rbx+1] shl ecx, 10h or ecx, esi or rcx, rdx mov [rbx+28h], rcx test dl, 3 jnz short def_93396; jumptable 0000000000093396 default case cmp ecx, 14h jb short def_93396; jumptable 0000000000093396 default case mov [rbx+38h], r14 mov rcx, [rbx+4] mov rdx, [rbx+0Ch] bswap rcx mov [rbx+40h], rcx bswap rdx mov [rbx+48h], rdx or eax, 4 jmp loc_93657 def_93396: call _my_thread_var; jumptable 0000000000093396 default case mov dword ptr [rax], 7Fh mov eax, 8 jmp loc_93657 loc_933F4: movzx ecx, word ptr [rbx+1]; jumptable 0000000000093396 case 11 rol cx, 8 movzx ecx, cx mov [rbx+28h], rcx mov [rbx+20h], rcx mov rcx, [rbx+3] bswap rcx mov [rbx+40h], rcx mov dword ptr [rbx+50h], 1 add r14, 0Bh jmp short loc_93483 loc_9341F: movzx ecx, word ptr [rbx+2]; jumptable 0000000000093396 case 4 rol cx, 8 movzx ecx, cx movzx edx, byte ptr [rbx+1] shl edx, 10h or rdx, rcx mov [rbx+20h], rdx mov [rbx+18h], rdx movzx ecx, byte ptr [rbx+4] add rcx, rdx mov [rbx+28h], rcx add r14, 5 jmp loc_93529 loc_93450: movzx ecx, word ptr [rbx+2]; jumptable 0000000000093396 case 12 rol cx, 8 movzx ecx, cx movzx edx, byte ptr [rbx+1] shl edx, 10h or rdx, rcx mov [rbx+28h], rdx mov [rbx+20h], rdx mov rcx, [rbx+4] bswap rcx mov [rbx+40h], rcx mov dword ptr [rbx+50h], 1 add r14, 0Ch loc_93483: mov [rbx+38h], r14 jmp loc_93657 loc_9348C: movzx ecx, word ptr [rbx+1]; jumptable 0000000000093396 case 9 rol cx, 8 movzx ecx, cx mov [rbx+20h], rcx movzx edx, byte ptr [rbx+3] add rdx, rcx mov [rbx+28h], rdx jmp loc_9364C loc_934AB: movzx ecx, word ptr [rbx+2]; jumptable 0000000000093396 case 2 rol cx, 8 movzx ecx, cx movzx edx, byte ptr [rbx+1] shl edx, 10h or rdx, rcx mov [rbx+28h], rdx mov [rbx+20h], rdx mov [rbx+18h], rdx jmp short loc_934EC loc_934CE: movzx ecx, word ptr [rbx+1]; jumptable 0000000000093396 case 3 rol cx, 8 movzx ecx, cx mov [rbx+20h], rcx mov [rbx+18h], rcx movzx edx, byte ptr [rbx+3] add rdx, rcx mov [rbx+28h], rdx loc_934EC: add r14, 4 jmp short loc_93529 loc_934F2: movzx ecx, word ptr [rbx+1]; jumptable 0000000000093396 case 7 rol cx, 8 movzx ecx, cx mov [rbx+28h], rcx mov [rbx+20h], rcx add r14, 3 jmp loc_93650 loc_9350E: movzx ecx, word ptr [rbx+1]; jumptable 0000000000093396 case 1 rol cx, 8 movzx ecx, cx mov [rbx+28h], rcx mov [rbx+20h], rcx mov [rbx+18h], rcx add r14, 3 loc_93529: mov [rbx+38h], r14 or eax, 3 jmp loc_93657 loc_93535: movzx ecx, word ptr [rbx+1]; jumptable 0000000000093396 case 5 rol cx, 8 movzx edx, word ptr [rbx+3] movzx ecx, cx rol dx, 8 mov [rbx+18h], rcx movzx ecx, dx mov [rbx+20h], rcx mov [rbx+28h], rcx mov rcx, [rbx+5] bswap rcx mov [rbx+40h], rcx mov dword ptr [rbx+50h], 1 add r14, 0Dh jmp loc_935FC loc_93572: mov ecx, [rbx+1]; jumptable 0000000000093396 case 13 bswap ecx mov [rbx+18h], rcx movzx ecx, word ptr [rbx+6] rol cx, 8 movzx ecx, cx movzx edx, byte ptr [rbx+5] shl edx, 10h or rdx, rcx mov [rbx+20h], rdx mov [rbx+28h], rdx mov rcx, [rbx+8] bswap rcx mov [rbx+40h], rcx mov dword ptr [rbx+50h], 1 add r14, 10h jmp short loc_935FC loc_935B0: movzx ecx, word ptr [rbx+2]; jumptable 0000000000093396 case 6 movzx edx, word ptr [rbx+5] rol cx, 8 movzx ecx, cx movzx esi, byte ptr [rbx+1] shl esi, 10h or rsi, rcx mov [rbx+18h], rsi rol dx, 8 movzx ecx, dx movzx edx, byte ptr [rbx+4] shl edx, 10h or rdx, rcx mov [rbx+20h], rdx mov [rbx+28h], rdx mov rcx, [rbx+7] bswap rcx mov [rbx+40h], rcx mov dword ptr [rbx+50h], 1 add r14, 0Fh loc_935FC: mov [rbx+38h], r14 or eax, 1 jmp short loc_93657 loc_93605: movzx ecx, word ptr [rbx+2]; jumptable 0000000000093396 case 10 rol cx, 8 movzx ecx, cx movzx edx, byte ptr [rbx+1] shl edx, 10h or rdx, rcx mov [rbx+20h], rdx movzx ecx, byte ptr [rbx+4] add rcx, rdx mov [rbx+28h], rcx add r14, 5 jmp short loc_93650 loc_9362F: movzx ecx, word ptr [rbx+2]; jumptable 0000000000093396 case 8 rol cx, 8 movzx ecx, cx movzx edx, byte ptr [rbx+1] shl edx, 10h or rdx, rcx mov [rbx+28h], rdx mov [rbx+20h], rdx loc_9364C: add r14, 4 loc_93650: mov [rbx+38h], r14 or eax, 2 loc_93657: add rsp, 50h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_93664: mov rdi, rax mov esi, r15d mov rdx, r14 call _mi_get_block_info_cold_1 jmp loc_9330D loc_93677: lea r12, [rbp+var_28] mov rdi, rax mov esi, r15d mov rdx, rbx mov rcx, r12 call _mi_get_block_info_cold_2 mov rax, [r12] jmp loc_9333E
long long mi_get_block_info(long long a1, long long a2, long long a3) { unsigned __int8 *v4; // rbx long long v5; // rax long long v6; // rax long long v7; // rax int v8; // edx int v9; // eax unsigned long long v10; // rcx bool v11; // zf unsigned int *v12; // rdx long long result; // rax long long v14; // rdx long long v15; // rcx unsigned long long v16; // rdx unsigned __int16 v17; // cx long long v18; // r14 unsigned long long v19; // rdx long long v20; // r14 unsigned long long v21; // rdx unsigned __int16 v22; // cx unsigned long long v23; // rdx unsigned __int16 v24; // cx unsigned __int16 v25; // cx long long v26; // r14 unsigned __int16 v27; // cx unsigned __int16 v28; // dx long long v29; // r14 unsigned long long v30; // rdx __int16 v31; // dx unsigned long long v32; // rdx unsigned long long v33; // rdx unsigned long long v34; // rdx _BYTE v35[72]; // [rsp+0h] [rbp-70h] BYREF long long v36[5]; // [rsp+48h] [rbp-28h] BYREF v4 = (unsigned __int8 *)a1; if ( (int)a2 < 0 ) goto LABEL_7; v5 = ((long long ( *)(_BYTE *, long long, long long))PSI_server[43])(v35, a2, 8LL); if ( v5 ) mi_get_block_info_cold_1(v5, a2, a3); else my_seek((unsigned int)a2, a3, 0LL, 0LL); v6 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v35, (unsigned int)a2, 6LL); if ( v6 ) { a1 = v6; mi_get_block_info_cold_2(v6, a2, (long long)v4, v36); v7 = v36[0]; } else { a1 = (unsigned int)a2; v7 = my_read((unsigned int)a2, v4, 20LL, 0LL); } if ( v7 == 20 ) { LABEL_7: v8 = *((_DWORD *)v4 + 20); v9 = 0; v10 = *v4; if ( v10 > 0xD ) { LOBYTE(v9) = v8 == 0; result = (unsigned int)(16 * v9); } else { v11 = v8 == 0; v12 = (unsigned int *)&unk_105B90; if ( v11 ) v12 = (unsigned int *)&unk_105BC8; result = v12[v10]; } *((_QWORD *)v4 + 8) = -1LL; switch ( (char)v10 ) { case 0: v14 = v4[3]; v15 = v14 | (v4[2] << 8) | (v4[1] << 16); *((_QWORD *)v4 + 5) = v15; if ( (v14 & 3) != 0 || (unsigned int)v15 < 0x14 ) goto LABEL_16; *((_QWORD *)v4 + 7) = a3; v16 = *(_QWORD *)(v4 + 12); *((_QWORD *)v4 + 8) = _byteswap_uint64(*(_QWORD *)(v4 + 4)); *((_QWORD *)v4 + 9) = _byteswap_uint64(v16); return (unsigned int)result | 4; case 1: v27 = __ROL2__(*(_WORD *)(v4 + 1), 8); *((_QWORD *)v4 + 5) = v27; *((_QWORD *)v4 + 4) = v27; *((_QWORD *)v4 + 3) = v27; v20 = a3 + 3; goto LABEL_27; case 2: v23 = (unsigned __int16)__ROL2__(*((_WORD *)v4 + 1), 8) | (unsigned long long)(v4[1] << 16); *((_QWORD *)v4 + 5) = v23; *((_QWORD *)v4 + 4) = v23; *((_QWORD *)v4 + 3) = v23; goto LABEL_24; case 3: v24 = __ROL2__(*(_WORD *)(v4 + 1), 8); *((_QWORD *)v4 + 4) = v24; *((_QWORD *)v4 + 3) = v24; *((_QWORD *)v4 + 5) = v24 + (unsigned long long)v4[3]; LABEL_24: v20 = a3 + 4; goto LABEL_27; case 4: v19 = (unsigned __int16)__ROL2__(*((_WORD *)v4 + 1), 8) | (unsigned long long)(v4[1] << 16); *((_QWORD *)v4 + 4) = v19; *((_QWORD *)v4 + 3) = v19; *((_QWORD *)v4 + 5) = v19 + v4[4]; v20 = a3 + 5; LABEL_27: *((_QWORD *)v4 + 7) = v20; return (unsigned int)result | 3; case 5: v28 = __ROL2__(*(_WORD *)(v4 + 3), 8); *((_QWORD *)v4 + 3) = (unsigned __int16)__ROL2__(*(_WORD *)(v4 + 1), 8); *((_QWORD *)v4 + 4) = v28; *((_QWORD *)v4 + 5) = v28; *((_QWORD *)v4 + 8) = _byteswap_uint64(*(_QWORD *)(v4 + 5)); *((_DWORD *)v4 + 20) = 1; v29 = a3 + 13; goto LABEL_31; case 6: v31 = *(_WORD *)(v4 + 5); *((_QWORD *)v4 + 3) = (unsigned __int16)__ROL2__(*((_WORD *)v4 + 1), 8) | (unsigned long long)(v4[1] << 16); v32 = (unsigned __int16)__ROL2__(v31, 8) | (unsigned long long)(v4[4] << 16); *((_QWORD *)v4 + 4) = v32; *((_QWORD *)v4 + 5) = v32; *((_QWORD *)v4 + 8) = _byteswap_uint64(*(_QWORD *)(v4 + 7)); *((_DWORD *)v4 + 20) = 1; v29 = a3 + 15; goto LABEL_31; case 7: v25 = __ROL2__(*(_WORD *)(v4 + 1), 8); *((_QWORD *)v4 + 5) = v25; *((_QWORD *)v4 + 4) = v25; v26 = a3 + 3; goto LABEL_35; case 8: v34 = (unsigned __int16)__ROL2__(*((_WORD *)v4 + 1), 8) | (unsigned long long)(v4[1] << 16); *((_QWORD *)v4 + 5) = v34; *((_QWORD *)v4 + 4) = v34; goto LABEL_34; case 9: v22 = __ROL2__(*(_WORD *)(v4 + 1), 8); *((_QWORD *)v4 + 4) = v22; *((_QWORD *)v4 + 5) = v22 + (unsigned long long)v4[3]; LABEL_34: v26 = a3 + 4; goto LABEL_35; case 10: v33 = (unsigned __int16)__ROL2__(*((_WORD *)v4 + 1), 8) | (unsigned long long)(v4[1] << 16); *((_QWORD *)v4 + 4) = v33; *((_QWORD *)v4 + 5) = v33 + v4[4]; v26 = a3 + 5; LABEL_35: *((_QWORD *)v4 + 7) = v26; return (unsigned int)result | 2; case 11: v17 = __ROL2__(*(_WORD *)(v4 + 1), 8); *((_QWORD *)v4 + 5) = v17; *((_QWORD *)v4 + 4) = v17; *((_QWORD *)v4 + 8) = _byteswap_uint64(*(_QWORD *)(v4 + 3)); *((_DWORD *)v4 + 20) = 1; v18 = a3 + 11; goto LABEL_20; case 12: v21 = (unsigned __int16)__ROL2__(*((_WORD *)v4 + 1), 8) | (unsigned long long)(v4[1] << 16); *((_QWORD *)v4 + 5) = v21; *((_QWORD *)v4 + 4) = v21; *((_QWORD *)v4 + 8) = _byteswap_uint64(*(_QWORD *)(v4 + 4)); *((_DWORD *)v4 + 20) = 1; v18 = a3 + 12; LABEL_20: *((_QWORD *)v4 + 7) = v18; break; case 13: *((_QWORD *)v4 + 3) = _byteswap_ulong(*(_DWORD *)(v4 + 1)); v30 = (unsigned __int16)__ROL2__(*((_WORD *)v4 + 3), 8) | (unsigned long long)(v4[5] << 16); *((_QWORD *)v4 + 4) = v30; *((_QWORD *)v4 + 5) = v30; *((_QWORD *)v4 + 8) = _byteswap_uint64(*((_QWORD *)v4 + 1)); *((_DWORD *)v4 + 20) = 1; v29 = a3 + 16; LABEL_31: *((_QWORD *)v4 + 7) = v29; result = (unsigned int)result | 1; break; default: goto LABEL_16; } } else { LABEL_16: *(_DWORD *)my_thread_var(a1) = 127; return 8LL; } return result; }
_mi_get_block_info: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x50 MOV R14,RDX MOV RBX,RDI TEST ESI,ESI JS 0x00193348 MOV R15D,ESI LEA R12,[0x4aea18] MOV RAX,qword ptr [R12] LEA RDI,[RBP + -0x70] MOV EDX,0x8 CALL qword ptr [RAX + 0x158] TEST RAX,RAX JNZ 0x00193664 MOV EDI,R15D MOV RSI,R14 XOR EDX,EDX XOR ECX,ECX CALL 0x001c056c LAB_0019330d: MOV RAX,qword ptr [R12] LEA RDI,[RBP + -0x70] MOV ESI,R15D MOV EDX,0x6 CALL qword ptr [RAX + 0x158] TEST RAX,RAX JNZ 0x00193677 MOV EDX,0x14 MOV EDI,R15D MOV RSI,RBX XOR ECX,ECX CALL 0x001bff8c LAB_0019333e: CMP RAX,0x14 JNZ 0x001933df LAB_00193348: MOV EDX,dword ptr [RBX + 0x50] XOR EAX,EAX TEST EDX,EDX SETZ SIL MOVZX ECX,byte ptr [RBX] CMP RCX,0xd JA 0x00193375 TEST EDX,EDX LEA RAX,[0x205bc8] LEA RDX,[0x205b90] CMOVZ RDX,RAX MOV EAX,dword ptr [RDX + RCX*0x4] JMP 0x0019337b LAB_00193375: MOV AL,SIL SHL EAX,0x4 LAB_0019337b: MOV qword ptr [RBX + 0x40],-0x1 CMP CL,0xd JA 0x001933df LEA RDX,[0x205b18] MOVSXD RCX,dword ptr [RDX + RCX*0x4] ADD RCX,RDX switchD: JMP RCX caseD_0: MOVZX EDX,byte ptr [RBX + 0x3] MOVZX ESI,byte ptr [RBX + 0x2] SHL ESI,0x8 MOVZX ECX,byte ptr [RBX + 0x1] SHL ECX,0x10 OR ECX,ESI OR RCX,RDX MOV qword ptr [RBX + 0x28],RCX TEST DL,0x3 JNZ 0x001933df CMP ECX,0x14 JC 0x001933df MOV qword ptr [RBX + 0x38],R14 MOV RCX,qword ptr [RBX + 0x4] MOV RDX,qword ptr [RBX + 0xc] BSWAP RCX MOV qword ptr [RBX + 0x40],RCX BSWAP RDX MOV qword ptr [RBX + 0x48],RDX OR EAX,0x4 JMP 0x00193657 default: CALL 0x001c14ee MOV dword ptr [RAX],0x7f MOV EAX,0x8 JMP 0x00193657 caseD_b: MOVZX ECX,word ptr [RBX + 0x1] ROL CX,0x8 MOVZX ECX,CX MOV qword ptr [RBX + 0x28],RCX MOV qword ptr [RBX + 0x20],RCX MOV RCX,qword ptr [RBX + 0x3] BSWAP RCX MOV qword ptr [RBX + 0x40],RCX MOV dword ptr [RBX + 0x50],0x1 ADD R14,0xb JMP 0x00193483 caseD_4: MOVZX ECX,word ptr [RBX + 0x2] ROL CX,0x8 MOVZX ECX,CX MOVZX EDX,byte ptr [RBX + 0x1] SHL EDX,0x10 OR RDX,RCX MOV qword ptr [RBX + 0x20],RDX MOV qword ptr [RBX + 0x18],RDX MOVZX ECX,byte ptr [RBX + 0x4] ADD RCX,RDX MOV qword ptr [RBX + 0x28],RCX ADD R14,0x5 JMP 0x00193529 caseD_c: MOVZX ECX,word ptr [RBX + 0x2] ROL CX,0x8 MOVZX ECX,CX MOVZX EDX,byte ptr [RBX + 0x1] SHL EDX,0x10 OR RDX,RCX MOV qword ptr [RBX + 0x28],RDX MOV qword ptr [RBX + 0x20],RDX MOV RCX,qword ptr [RBX + 0x4] BSWAP RCX MOV qword ptr [RBX + 0x40],RCX MOV dword ptr [RBX + 0x50],0x1 ADD R14,0xc LAB_00193483: MOV qword ptr [RBX + 0x38],R14 JMP 0x00193657 caseD_9: MOVZX ECX,word ptr [RBX + 0x1] ROL CX,0x8 MOVZX ECX,CX MOV qword ptr [RBX + 0x20],RCX MOVZX EDX,byte ptr [RBX + 0x3] ADD RDX,RCX MOV qword ptr [RBX + 0x28],RDX JMP 0x0019364c caseD_2: MOVZX ECX,word ptr [RBX + 0x2] ROL CX,0x8 MOVZX ECX,CX MOVZX EDX,byte ptr [RBX + 0x1] SHL EDX,0x10 OR RDX,RCX MOV qword ptr [RBX + 0x28],RDX MOV qword ptr [RBX + 0x20],RDX MOV qword ptr [RBX + 0x18],RDX JMP 0x001934ec caseD_3: MOVZX ECX,word ptr [RBX + 0x1] ROL CX,0x8 MOVZX ECX,CX MOV qword ptr [RBX + 0x20],RCX MOV qword ptr [RBX + 0x18],RCX MOVZX EDX,byte ptr [RBX + 0x3] ADD RDX,RCX MOV qword ptr [RBX + 0x28],RDX LAB_001934ec: ADD R14,0x4 JMP 0x00193529 caseD_7: MOVZX ECX,word ptr [RBX + 0x1] ROL CX,0x8 MOVZX ECX,CX MOV qword ptr [RBX + 0x28],RCX MOV qword ptr [RBX + 0x20],RCX ADD R14,0x3 JMP 0x00193650 caseD_1: MOVZX ECX,word ptr [RBX + 0x1] ROL CX,0x8 MOVZX ECX,CX MOV qword ptr [RBX + 0x28],RCX MOV qword ptr [RBX + 0x20],RCX MOV qword ptr [RBX + 0x18],RCX ADD R14,0x3 LAB_00193529: MOV qword ptr [RBX + 0x38],R14 OR EAX,0x3 JMP 0x00193657 caseD_5: MOVZX ECX,word ptr [RBX + 0x1] ROL CX,0x8 MOVZX EDX,word ptr [RBX + 0x3] MOVZX ECX,CX ROL DX,0x8 MOV qword ptr [RBX + 0x18],RCX MOVZX ECX,DX MOV qword ptr [RBX + 0x20],RCX MOV qword ptr [RBX + 0x28],RCX MOV RCX,qword ptr [RBX + 0x5] BSWAP RCX MOV qword ptr [RBX + 0x40],RCX MOV dword ptr [RBX + 0x50],0x1 ADD R14,0xd JMP 0x001935fc caseD_d: MOV ECX,dword ptr [RBX + 0x1] BSWAP ECX MOV qword ptr [RBX + 0x18],RCX MOVZX ECX,word ptr [RBX + 0x6] ROL CX,0x8 MOVZX ECX,CX MOVZX EDX,byte ptr [RBX + 0x5] SHL EDX,0x10 OR RDX,RCX MOV qword ptr [RBX + 0x20],RDX MOV qword ptr [RBX + 0x28],RDX MOV RCX,qword ptr [RBX + 0x8] BSWAP RCX MOV qword ptr [RBX + 0x40],RCX MOV dword ptr [RBX + 0x50],0x1 ADD R14,0x10 JMP 0x001935fc caseD_6: MOVZX ECX,word ptr [RBX + 0x2] MOVZX EDX,word ptr [RBX + 0x5] ROL CX,0x8 MOVZX ECX,CX MOVZX ESI,byte ptr [RBX + 0x1] SHL ESI,0x10 OR RSI,RCX MOV qword ptr [RBX + 0x18],RSI ROL DX,0x8 MOVZX ECX,DX MOVZX EDX,byte ptr [RBX + 0x4] SHL EDX,0x10 OR RDX,RCX MOV qword ptr [RBX + 0x20],RDX MOV qword ptr [RBX + 0x28],RDX MOV RCX,qword ptr [RBX + 0x7] BSWAP RCX MOV qword ptr [RBX + 0x40],RCX MOV dword ptr [RBX + 0x50],0x1 ADD R14,0xf LAB_001935fc: MOV qword ptr [RBX + 0x38],R14 OR EAX,0x1 JMP 0x00193657 caseD_a: MOVZX ECX,word ptr [RBX + 0x2] ROL CX,0x8 MOVZX ECX,CX MOVZX EDX,byte ptr [RBX + 0x1] SHL EDX,0x10 OR RDX,RCX MOV qword ptr [RBX + 0x20],RDX MOVZX ECX,byte ptr [RBX + 0x4] ADD RCX,RDX MOV qword ptr [RBX + 0x28],RCX ADD R14,0x5 JMP 0x00193650 caseD_8: MOVZX ECX,word ptr [RBX + 0x2] ROL CX,0x8 MOVZX ECX,CX MOVZX EDX,byte ptr [RBX + 0x1] SHL EDX,0x10 OR RDX,RCX MOV qword ptr [RBX + 0x28],RDX MOV qword ptr [RBX + 0x20],RDX LAB_0019364c: ADD R14,0x4 LAB_00193650: MOV qword ptr [RBX + 0x38],R14 OR EAX,0x2 LAB_00193657: ADD RSP,0x50 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_00193664: MOV RDI,RAX MOV ESI,R15D MOV RDX,R14 CALL 0x0012f3cf JMP 0x0019330d LAB_00193677: LEA R12,[RBP + -0x28] MOV RDI,RAX MOV ESI,R15D MOV RDX,RBX MOV RCX,R12 CALL 0x0012f429 MOV RAX,qword ptr [R12] JMP 0x0019333e
uint _mi_get_block_info(byte *param_1,ulong param_2,long param_3) { uint uVar1; ulong uVar2; uint uVar3; long lVar4; int4 *puVar5; int *puVar6; ulong uVar7; int1 local_78 [72]; long local_30; if (-1 < (int)param_2) { uVar7 = param_2 & 0xffffffff; lVar4 = (**(code **)(PSI_server + 0x158))(local_78,param_2,8); if (lVar4 == 0) { my_seek(uVar7,param_3,0,0); } else { _mi_get_block_info_cold_1(lVar4,uVar7,param_3); } lVar4 = (**(code **)(PSI_server + 0x158))(local_78,uVar7,6); if (lVar4 == 0) { local_30 = my_read(param_2 & 0xffffffff,param_1,0x14,0); } else { _mi_get_block_info_cold_2(lVar4,param_2 & 0xffffffff,param_1,&local_30); } if (local_30 != 0x14) goto switchD_00193396_default; } uVar7 = (ulong)*param_1; if (uVar7 < 0xe) { puVar6 = &DAT_00205b90; if (*(int *)(param_1 + 0x50) == 0) { puVar6 = &DAT_00205bc8; } uVar3 = *(uint *)(puVar6 + uVar7 * 4); } else { uVar3 = (uint)(*(int *)(param_1 + 0x50) == 0) << 4; } param_1[0x40] = 0xff; param_1[0x41] = 0xff; param_1[0x42] = 0xff; param_1[0x43] = 0xff; param_1[0x44] = 0xff; param_1[0x45] = 0xff; param_1[0x46] = 0xff; param_1[0x47] = 0xff; switch(uVar7) { case 0: uVar7 = (ulong)((uint)param_1[1] << 0x10 | (uint)param_1[2] << 8) | (ulong)param_1[3]; *(ulong *)(param_1 + 0x28) = uVar7; if (((param_1[3] & 3) == 0) && (0x13 < (uint)uVar7)) { *(long *)(param_1 + 0x38) = param_3; uVar7 = *(ulong *)(param_1 + 4); uVar2 = *(ulong *)(param_1 + 0xc); *(ulong *)(param_1 + 0x40) = uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18 | (uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 | (uVar7 & 0xff0000) << 0x18 | (uVar7 & 0xff00) << 0x28 | uVar7 << 0x38; *(ulong *)(param_1 + 0x48) = uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 | (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 | (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38; return uVar3 | 4; } default: switchD_00193396_default: puVar5 = (int4 *)_my_thread_var(); *puVar5 = 0x7f; return 8; case 1: uVar7 = (ulong)(ushort)(*(ushort *)(param_1 + 1) << 8 | *(ushort *)(param_1 + 1) >> 8); *(ulong *)(param_1 + 0x28) = uVar7; *(ulong *)(param_1 + 0x20) = uVar7; *(ulong *)(param_1 + 0x18) = uVar7; param_3 = param_3 + 3; goto LAB_00193529; case 2: uVar7 = (ulong)CONCAT12(param_1[1],*(ushort *)(param_1 + 2) << 8 | *(ushort *)(param_1 + 2) >> 8 ); *(ulong *)(param_1 + 0x28) = uVar7; *(ulong *)(param_1 + 0x20) = uVar7; *(ulong *)(param_1 + 0x18) = uVar7; goto LAB_001934ec; case 3: uVar7 = (ulong)(ushort)(*(ushort *)(param_1 + 1) << 8 | *(ushort *)(param_1 + 1) >> 8); *(ulong *)(param_1 + 0x20) = uVar7; *(ulong *)(param_1 + 0x18) = uVar7; *(ulong *)(param_1 + 0x28) = param_1[3] + uVar7; LAB_001934ec: param_3 = param_3 + 4; LAB_00193529: *(long *)(param_1 + 0x38) = param_3; return uVar3 | 3; case 4: uVar7 = (ulong)CONCAT12(param_1[1],*(ushort *)(param_1 + 2) << 8 | *(ushort *)(param_1 + 2) >> 8 ); *(ulong *)(param_1 + 0x20) = uVar7; *(ulong *)(param_1 + 0x18) = uVar7; *(ulong *)(param_1 + 0x28) = param_1[4] + uVar7; param_3 = param_3 + 5; goto LAB_00193529; case 5: *(ulong *)(param_1 + 0x18) = (ulong)(ushort)(*(ushort *)(param_1 + 1) << 8 | *(ushort *)(param_1 + 1) >> 8); uVar7 = (ulong)(ushort)(*(ushort *)(param_1 + 3) << 8 | *(ushort *)(param_1 + 3) >> 8); *(ulong *)(param_1 + 0x20) = uVar7; *(ulong *)(param_1 + 0x28) = uVar7; uVar7 = *(ulong *)(param_1 + 5); *(ulong *)(param_1 + 0x40) = uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18 | (uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 | (uVar7 & 0xff0000) << 0x18 | (uVar7 & 0xff00) << 0x28 | uVar7 << 0x38; param_1[0x50] = 1; param_1[0x51] = 0; param_1[0x52] = 0; param_1[0x53] = 0; param_3 = param_3 + 0xd; break; case 6: *(ulong *)(param_1 + 0x18) = (ulong)CONCAT12(param_1[1],*(ushort *)(param_1 + 2) << 8 | *(ushort *)(param_1 + 2) >> 8); uVar7 = (ulong)CONCAT12(param_1[4],*(ushort *)(param_1 + 5) << 8 | *(ushort *)(param_1 + 5) >> 8 ); *(ulong *)(param_1 + 0x20) = uVar7; *(ulong *)(param_1 + 0x28) = uVar7; uVar7 = *(ulong *)(param_1 + 7); *(ulong *)(param_1 + 0x40) = uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18 | (uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 | (uVar7 & 0xff0000) << 0x18 | (uVar7 & 0xff00) << 0x28 | uVar7 << 0x38; param_1[0x50] = 1; param_1[0x51] = 0; param_1[0x52] = 0; param_1[0x53] = 0; param_3 = param_3 + 0xf; break; case 7: uVar7 = (ulong)(ushort)(*(ushort *)(param_1 + 1) << 8 | *(ushort *)(param_1 + 1) >> 8); *(ulong *)(param_1 + 0x28) = uVar7; *(ulong *)(param_1 + 0x20) = uVar7; param_3 = param_3 + 3; goto LAB_00193650; case 8: uVar7 = (ulong)CONCAT12(param_1[1],*(ushort *)(param_1 + 2) << 8 | *(ushort *)(param_1 + 2) >> 8 ); *(ulong *)(param_1 + 0x28) = uVar7; *(ulong *)(param_1 + 0x20) = uVar7; goto LAB_0019364c; case 9: uVar7 = (ulong)(ushort)(*(ushort *)(param_1 + 1) << 8 | *(ushort *)(param_1 + 1) >> 8); *(ulong *)(param_1 + 0x20) = uVar7; *(ulong *)(param_1 + 0x28) = param_1[3] + uVar7; LAB_0019364c: param_3 = param_3 + 4; LAB_00193650: *(long *)(param_1 + 0x38) = param_3; return uVar3 | 2; case 10: uVar7 = (ulong)CONCAT12(param_1[1],*(ushort *)(param_1 + 2) << 8 | *(ushort *)(param_1 + 2) >> 8 ); *(ulong *)(param_1 + 0x20) = uVar7; *(ulong *)(param_1 + 0x28) = param_1[4] + uVar7; param_3 = param_3 + 5; goto LAB_00193650; case 0xb: uVar7 = (ulong)(ushort)(*(ushort *)(param_1 + 1) << 8 | *(ushort *)(param_1 + 1) >> 8); *(ulong *)(param_1 + 0x28) = uVar7; *(ulong *)(param_1 + 0x20) = uVar7; uVar7 = *(ulong *)(param_1 + 3); *(ulong *)(param_1 + 0x40) = uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18 | (uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 | (uVar7 & 0xff0000) << 0x18 | (uVar7 & 0xff00) << 0x28 | uVar7 << 0x38; param_1[0x50] = 1; param_1[0x51] = 0; param_1[0x52] = 0; param_1[0x53] = 0; param_3 = param_3 + 0xb; goto LAB_00193483; case 0xc: uVar7 = (ulong)CONCAT12(param_1[1],*(ushort *)(param_1 + 2) << 8 | *(ushort *)(param_1 + 2) >> 8 ); *(ulong *)(param_1 + 0x28) = uVar7; *(ulong *)(param_1 + 0x20) = uVar7; uVar7 = *(ulong *)(param_1 + 4); *(ulong *)(param_1 + 0x40) = uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18 | (uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 | (uVar7 & 0xff0000) << 0x18 | (uVar7 & 0xff00) << 0x28 | uVar7 << 0x38; param_1[0x50] = 1; param_1[0x51] = 0; param_1[0x52] = 0; param_1[0x53] = 0; param_3 = param_3 + 0xc; LAB_00193483: *(long *)(param_1 + 0x38) = param_3; return uVar3; case 0xd: uVar1 = *(uint *)(param_1 + 1); *(ulong *)(param_1 + 0x18) = (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18); uVar7 = (ulong)CONCAT12(param_1[5],*(ushort *)(param_1 + 6) << 8 | *(ushort *)(param_1 + 6) >> 8 ); *(ulong *)(param_1 + 0x20) = uVar7; *(ulong *)(param_1 + 0x28) = uVar7; uVar7 = *(ulong *)(param_1 + 8); *(ulong *)(param_1 + 0x40) = uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18 | (uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 | (uVar7 & 0xff0000) << 0x18 | (uVar7 & 0xff00) << 0x28 | uVar7 << 0x38; param_1[0x50] = 1; param_1[0x51] = 0; param_1[0x52] = 0; param_1[0x53] = 0; param_3 = param_3 + 0x10; } *(long *)(param_1 + 0x38) = param_3; return uVar3 | 1; }
52,836
boss_headless_horseman_head::SpellHitTarget(Unit*, SpellInfo const*)
SylCore-WoTLK/src/server/scripts/Events/hallows_end.cpp
void SpellHitTarget(Unit* /*target*/, SpellInfo const* spellInfo) override { if (spellInfo->Id == SPELL_THROW_HEAD_BACK) { if (Unit* owner = GetOwner()) owner->ToCreature()->AI()->DoAction(me->GetHealth()); me->DespawnOrUnsummon(); } }
O3
cpp
boss_headless_horseman_head::SpellHitTarget(Unit*, SpellInfo const*): cmpl $0xa5a1, (%rdx) # imm = 0xA5A1 jne 0x57bf1e pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx movq 0x120(%rdi), %rdi testq %rdi, %rdi je 0x57bf0e movl 0x2768(%rdi), %eax andl $0x1, %eax je 0x57bf0e callq 0xa7da3e movq 0x120(%rbx), %rdi testq %rax, %rax je 0x57bf0e xorl %ecx, %ecx cmpl $0x3, 0x44(%rax) cmoveq %rax, %rcx movq 0x4f8(%rcx), %r14 movl $0x18, %esi callq 0xa96762 movq (%r14), %rcx movq %r14, %rdi movl %eax, %esi callq *0x40(%rcx) movq 0x120(%rbx), %rdi xorl %esi, %esi xorl %edx, %edx addq $0x8, %rsp popq %rbx popq %r14 jmp 0xa6369c retq nop
_ZN27boss_headless_horseman_head14SpellHitTargetEP4UnitPK9SpellInfo: cmp dword ptr [rdx], 0A5A1h jnz short locret_57BF1E push r14 push rbx push rax mov rbx, rdi mov rdi, [rdi+120h]; this test rdi, rdi jz short loc_57BF0E mov eax, [rdi+2768h] and eax, 1 jz short loc_57BF0E call _ZNK10TempSummon15GetSummonerUnitEv; TempSummon::GetSummonerUnit(void) mov rdi, [rbx+120h]; this test rax, rax jz short loc_57BF0E xor ecx, ecx cmp dword ptr [rax+44h], 3 cmovz rcx, rax mov r14, [rcx+4F8h] mov esi, 18h; unsigned __int16 call _ZNK6Object14GetUInt32ValueEt; Object::GetUInt32Value(ushort) mov rcx, [r14] mov rdi, r14 mov esi, eax call qword ptr [rcx+40h] mov rdi, [rbx+120h] loc_57BF0E: xor esi, esi xor edx, edx add rsp, 8 pop rbx pop r14 jmp _ZN8Creature17DespawnOrUnsummonENSt6chrono8durationIlSt5ratioILl1ELl1000EEEENS1_IlS2_ILl1ELl1EEEE; Creature::DespawnOrUnsummon(std::chrono::duration<long,std::ratio<1l,1000l>>,std::chrono::duration<long,std::ratio<1l,1l>>) locret_57BF1E: retn
long long boss_headless_horseman_head::SpellHitTarget( boss_headless_horseman_head *this, Unit *a2, const SpellInfo *a3, double a4) { long long result; // rax TempSummon *v6; // rdi long long SummonerUnit; // rax long long v8; // rcx long long v9; // r14 unsigned int UInt32Value; // eax if ( *(_DWORD *)a3 == 42401 ) { v6 = (TempSummon *)*((_QWORD *)this + 36); if ( v6 ) { if ( (*((_DWORD *)v6 + 2522) & 1) != 0 ) { SummonerUnit = TempSummon::GetSummonerUnit(v6); v6 = (TempSummon *)*((_QWORD *)this + 36); if ( SummonerUnit ) { v8 = 0LL; if ( *(_DWORD *)(SummonerUnit + 68) == 3 ) v8 = SummonerUnit; v9 = *(_QWORD *)(v8 + 1272); UInt32Value = Object::GetUInt32Value(v6, 0x18u); (*(void ( **)(long long, _QWORD))(*(_QWORD *)v9 + 64LL))(v9, UInt32Value); v6 = (TempSummon *)*((_QWORD *)this + 36); } } } return Creature::DespawnOrUnsummon(v6, 0LL, 0LL, a4); } return result; }
append: PUSH RAX LEA RDI,[0x1223c1f] CALL 0x0055c7f0
/* std::__cxx11::string::append(char const*) [clone .cold.1] */ void std::__cxx11::string::append(char *param_1) { /* WARNING: Subroutine does not return */ std::__throw_length_error("basic_string::append"); }
52,837
wt_resource_create
eloqsql/mysys/waiting_threads.c
static void wt_resource_create(uchar *arg) { WT_RESOURCE *rc= (WT_RESOURCE*)(arg+LF_HASH_OVERHEAD); DBUG_ENTER("wt_resource_create"); bzero(rc, sizeof(*rc)); rc_rwlock_init(rc); mysql_cond_init(key_WT_RESOURCE_cond, &rc->cond, 0); my_init_dynamic_array(PSI_INSTRUMENT_ME, &rc->owners, sizeof(WT_THD *), 0, 5, MYF(0)); DBUG_VOID_RETURN; }
O3
c
wt_resource_create: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx leaq 0x3b2f2(%rip), %rax # 0xe1c8c movslq (%rax), %r15 addq %r15, %rdi movl $0x108, %edx # imm = 0x108 xorl %esi, %esi callq 0x292a0 leaq (%rbx,%r15), %rdi addq $0x18, %rdi callq 0xa42d0 leaq 0xb60ef4(%rip), %rax # 0xc078b4 movl (%rax), %edi leaq (%rbx,%r15), %r14 addq $0xa8, %r14 leaq 0x2df63c(%rip), %rax # 0x386010 movq (%rax), %rax movq %r14, %rsi callq *0x60(%rax) movq %rax, 0x30(%r14) movq %r14, %rdi xorl %esi, %esi callq 0x29370 leaq (%rbx,%r15), %rsi addq $0xe0, %rsi movq $0x0, (%rsp) xorl %edi, %edi movl $0x8, %edx xorl %ecx, %ecx xorl %r8d, %r8d movl $0x5, %r9d callq 0x91924 addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
wt_resource_create: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov rbx, rdi lea rax, LF_HASH_OVERHEAD movsxd r15, dword ptr [rax] add rdi, r15 mov edx, 108h xor esi, esi call _memset lea rdi, [rbx+r15] add rdi, 18h call my_rw_init lea rax, key_WT_RESOURCE_cond mov edi, [rax] lea r14, [rbx+r15] add r14, 0A8h lea rax, PSI_server mov rax, [rax] mov rsi, r14 call qword ptr [rax+60h] mov [r14+30h], rax mov rdi, r14 xor esi, esi call _pthread_cond_init lea rsi, [rbx+r15] add rsi, 0E0h mov [rsp+20h+var_20], 0 xor edi, edi mov edx, 8 xor ecx, ecx xor r8d, r8d mov r9d, 5 call init_dynamic_array2 add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long wt_resource_create(long long a1) { memset(LF_HASH_OVERHEAD + a1, 0LL, 264LL); my_rw_init(a1 + LF_HASH_OVERHEAD + 24); *(_QWORD *)(a1 + LF_HASH_OVERHEAD + 216) = ((long long ( *)(_QWORD, long long))PSI_server[12])( key_WT_RESOURCE_cond, a1 + LF_HASH_OVERHEAD + 168); pthread_cond_init(a1 + LF_HASH_OVERHEAD + 168, 0LL); return init_dynamic_array2(0LL, a1 + LF_HASH_OVERHEAD + 224, 8u, 0LL, 0, 5u, 0LL); }
wt_resource_create: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI LEA RAX,[0x1e1c8c] MOVSXD R15,dword ptr [RAX] ADD RDI,R15 MOV EDX,0x108 XOR ESI,ESI CALL 0x001292a0 LEA RDI,[RBX + R15*0x1] ADD RDI,0x18 CALL 0x001a42d0 LEA RAX,[0xd078b4] MOV EDI,dword ptr [RAX] LEA R14,[RBX + R15*0x1] ADD R14,0xa8 LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] MOV RSI,R14 CALL qword ptr [RAX + 0x60] MOV qword ptr [R14 + 0x30],RAX MOV RDI,R14 XOR ESI,ESI CALL 0x00129370 LEA RSI,[RBX + R15*0x1] ADD RSI,0xe0 MOV qword ptr [RSP],0x0 XOR EDI,EDI MOV EDX,0x8 XOR ECX,ECX XOR R8D,R8D MOV R9D,0x5 CALL 0x00191924 ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
void wt_resource_create(long param_1) { int8 uVar1; long lVar2; lVar2 = (long)LF_HASH_OVERHEAD; memset((void *)(param_1 + lVar2),0,0x108); my_rw_init(param_1 + lVar2 + 0x18); uVar1 = (**(code **)(PSI_server + 0x60))(key_WT_RESOURCE_cond); *(int8 *)(param_1 + lVar2 + 0xd8) = uVar1; pthread_cond_init((pthread_cond_t *)(param_1 + lVar2 + 0xa8),(pthread_condattr_t *)0x0); init_dynamic_array2(0,param_1 + lVar2 + 0xe0,8,0,0,5,0); return; }
52,838
vec_copy
corpus-core[P]colibri-stateless/build_O0/_deps/blst-src/src/vect.h
static inline void vec_copy(void *restrict ret, const void *a, size_t num) { limb_t *rp = (limb_t *)ret; const limb_t *ap = (const limb_t *)a; size_t i; num /= sizeof(limb_t); for (i = 0; i < num; i++) rp[i] = ap[i]; }
O0
c
vec_copy: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x18(%rbp), %rax shrq $0x3, %rax movq %rax, -0x18(%rbp) movq $0x0, -0x30(%rbp) movq -0x30(%rbp), %rax cmpq -0x18(%rbp), %rax jae 0xa74e4 movq -0x28(%rbp), %rax movq -0x30(%rbp), %rcx movq (%rax,%rcx,8), %rdx movq -0x20(%rbp), %rax movq -0x30(%rbp), %rcx movq %rdx, (%rax,%rcx,8) movq -0x30(%rbp), %rax addq $0x1, %rax movq %rax, -0x30(%rbp) jmp 0xa74b4 popq %rbp retq nopw %cs:(%rax,%rax)
vec_copy: 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 [rbp+var_20], rax mov rax, [rbp+var_10] mov [rbp+var_28], rax mov rax, [rbp+var_18] shr rax, 3 mov [rbp+var_18], rax mov [rbp+var_30], 0 loc_A74B4: mov rax, [rbp+var_30] cmp rax, [rbp+var_18] jnb short loc_A74E4 mov rax, [rbp+var_28] mov rcx, [rbp+var_30] mov rdx, [rax+rcx*8] mov rax, [rbp+var_20] mov rcx, [rbp+var_30] mov [rax+rcx*8], rdx mov rax, [rbp+var_30] add rax, 1 mov [rbp+var_30], rax jmp short loc_A74B4 loc_A74E4: pop rbp retn
unsigned long long vec_copy(long long a1, long long a2, unsigned long long a3) { unsigned long long result; // rax unsigned long long i; // [rsp+0h] [rbp-30h] for ( i = 0LL; ; ++i ) { result = i; if ( i >= a3 >> 3 ) break; *(_QWORD *)(a1 + 8 * i) = *(_QWORD *)(a2 + 8 * i); } return result; }
vec_copy: 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 [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x18] SHR RAX,0x3 MOV qword ptr [RBP + -0x18],RAX MOV qword ptr [RBP + -0x30],0x0 LAB_001a74b4: MOV RAX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RBP + -0x18] JNC 0x001a74e4 MOV RAX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x30] MOV RDX,qword ptr [RAX + RCX*0x8] MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x30] MOV qword ptr [RAX + RCX*0x8],RDX MOV RAX,qword ptr [RBP + -0x30] ADD RAX,0x1 MOV qword ptr [RBP + -0x30],RAX JMP 0x001a74b4 LAB_001a74e4: POP RBP RET
void vec_copy(long param_1,long param_2,ulong param_3) { int8 local_38; for (local_38 = 0; local_38 < param_3 >> 3; local_38 = local_38 + 1) { *(int8 *)(param_1 + local_38 * 8) = *(int8 *)(param_2 + local_38 * 8); } return; }
52,839
nglog::tools::ReadFromOffset(int, void*, unsigned long, unsigned long)
ng-log[P]ng-log/src/symbolize.cc
static ssize_t ReadFromOffset(const int fd, void* buf, const size_t count, const size_t offset) { NGLOG_SAFE_ASSERT(fd >= 0); NGLOG_SAFE_ASSERT(count <= static_cast<size_t>(std::numeric_limits<ssize_t>::max())); char* buf0 = reinterpret_cast<char*>(buf); size_t num_bytes = 0; while (num_bytes < count) { ssize_t len = FailureRetry([fd, p = buf0 + num_bytes, n = count - num_bytes, m = static_cast<off_t>(offset + num_bytes)] { return pread(fd, p, n, m); }); if (len < 0) { // There was an error other than EINTR. return -1; } if (len == 0) { // Reached EOF. break; } num_bytes += static_cast<size_t>(len); } NGLOG_SAFE_ASSERT(num_bytes <= count); return static_cast<ssize_t>(num_bytes); }
O1
cpp
nglog::tools::ReadFromOffset(int, void*, unsigned long, unsigned long): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rcx, 0x10(%rsp) movq %rsi, 0x8(%rsp) testl %edi, %edi js 0x20568 testq %rdx, %rdx js 0x20568 movl %edi, %ebp xorl %r14d, %r14d movq %rdx, (%rsp) movq %rdx, %rbx subq %r14, %rbx jbe 0x20563 movq 0x8(%rsp), %rax leaq (%rax,%r14), %r12 movq 0x10(%rsp), %rax leaq (%r14,%rax), %r15 movl %ebp, %edi movq %r12, %rsi movq %rbx, %rdx movq %r15, %rcx callq 0x76c0 movq %rax, %r13 cmpq $-0x1, %rax jne 0x20537 callq 0x7050 cmpl $0x4, (%rax) je 0x20514 xorl %eax, %eax testq %r13, %r13 sete %al leal (%rax,%rax,2), %eax movl $0x0, %ecx cmovleq %rcx, %r13 movl $0x1, %ecx cmovsl %ecx, %eax addq %r13, %r14 testl %eax, %eax movq (%rsp), %rdx je 0x204fa cmpl $0x3, %eax jne 0x2056d cmpq %rdx, %r14 jbe 0x20574 callq 0x72c0 movq $-0x1, %r14 movq %r14, %rax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZN5nglog5toolsL14ReadFromOffsetEiPvmm: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov [rsp+48h+var_38], rcx mov [rsp+48h+var_40], rsi test edi, edi js short loc_20568 test rdx, rdx js short loc_20568 mov ebp, edi xor r14d, r14d mov [rsp+48h+var_48], rdx loc_204FA: mov rbx, rdx sub rbx, r14 jbe short loc_20563 mov rax, [rsp+48h+var_40] lea r12, [rax+r14] mov rax, [rsp+48h+var_38] lea r15, [r14+rax] loc_20514: mov edi, ebp mov rsi, r12 mov rdx, rbx mov rcx, r15 call _pread mov r13, rax cmp rax, 0FFFFFFFFFFFFFFFFh jnz short loc_20537 call ___errno_location cmp dword ptr [rax], 4 jz short loc_20514 loc_20537: xor eax, eax test r13, r13 setz al lea eax, [rax+rax*2] mov ecx, 0 cmovle r13, rcx mov ecx, 1 cmovs eax, ecx add r14, r13 test eax, eax mov rdx, [rsp+48h+var_48] jz short loc_204FA cmp eax, 3 jnz short loc_2056D loc_20563: cmp r14, rdx jbe short loc_20574 loc_20568: call _abort loc_2056D: mov r14, 0FFFFFFFFFFFFFFFFh loc_20574: mov rax, r14 add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
unsigned long long nglog::tools::ReadFromOffset(unsigned long long this, long long a2, char *a3, long long a4) { unsigned int v4; // ebp unsigned long long v5; // r14 char *v6; // rbx long long v7; // r13 bool v8; // sf int v9; // eax char *v11; // [rsp+0h] [rbp-48h] if ( (this & 0x80000000) != 0LL || (long long)a3 < 0 ) LABEL_14: abort(this); v4 = this; v5 = 0LL; v11 = a3; do { v6 = &a3[-v5]; if ( (unsigned long long)a3 <= v5 ) goto LABEL_13; do { this = v4; v7 = pread(v4, a2 + v5, v6, v5 + a4); } while ( v7 == -1 && *(_DWORD *)__errno_location(v4) == 4 ); v8 = v7 < 0; v9 = 3 * (v7 == 0); if ( v7 <= 0 ) v7 = 0LL; if ( v8 ) v9 = 1; v5 += v7; a3 = v11; } while ( !v9 ); if ( v9 != 3 ) return -1LL; LABEL_13: if ( v5 > (unsigned long long)a3 ) goto LABEL_14; return v5; }
ReadFromOffset: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV qword ptr [RSP + 0x10],RCX MOV qword ptr [RSP + 0x8],RSI TEST EDI,EDI JS 0x00120568 TEST RDX,RDX JS 0x00120568 MOV EBP,EDI XOR R14D,R14D MOV qword ptr [RSP],RDX LAB_001204fa: MOV RBX,RDX SUB RBX,R14 JBE 0x00120563 MOV RAX,qword ptr [RSP + 0x8] LEA R12,[RAX + R14*0x1] MOV RAX,qword ptr [RSP + 0x10] LEA R15,[R14 + RAX*0x1] LAB_00120514: MOV EDI,EBP MOV RSI,R12 MOV RDX,RBX MOV RCX,R15 CALL 0x001076c0 MOV R13,RAX CMP RAX,-0x1 JNZ 0x00120537 CALL 0x00107050 CMP dword ptr [RAX],0x4 JZ 0x00120514 LAB_00120537: XOR EAX,EAX TEST R13,R13 SETZ AL LEA EAX,[RAX + RAX*0x2] MOV ECX,0x0 CMOVLE R13,RCX MOV ECX,0x1 CMOVS EAX,ECX ADD R14,R13 TEST EAX,EAX MOV RDX,qword ptr [RSP] JZ 0x001204fa CMP EAX,0x3 JNZ 0x0012056d LAB_00120563: CMP R14,RDX JBE 0x00120574 LAB_00120568: CALL 0x001072c0 LAB_0012056d: MOV R14,-0x1 LAB_00120574: MOV RAX,R14 ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* nglog::tools::ReadFromOffset(int, void*, unsigned long, unsigned long) */ ulong nglog::tools::ReadFromOffset(int param_1,void *param_2,ulong param_3,ulong param_4) { char cVar1; ssize_t sVar2; int *piVar3; ulong uVar4; bool bVar5; if ((-1 < param_1) && (-1 < (long)param_3)) { uVar4 = 0; do { if (param_3 < uVar4 || param_3 - uVar4 == 0) goto LAB_00120563; do { sVar2 = pread(param_1,(void *)((long)param_2 + uVar4),param_3 - uVar4,uVar4 + param_4); if (sVar2 != -1) break; piVar3 = __errno_location(); } while (*piVar3 == 4); bVar5 = sVar2 < 0; cVar1 = (sVar2 == 0) * '\x03'; if (sVar2 < 1) { sVar2 = 0; } if (bVar5) { cVar1 = '\x01'; } uVar4 = uVar4 + sVar2; } while (cVar1 == '\0'); if (cVar1 == '\x03') { LAB_00120563: if (param_3 < uVar4) goto LAB_00120568; } else { uVar4 = 0xffffffffffffffff; } return uVar4; } LAB_00120568: /* WARNING: Subroutine does not return */ abort(); }
52,840
mthd_supported_buffer_type
eloqsql/libmariadb/libmariadb/mariadb_stmt.c
my_bool mthd_supported_buffer_type(enum enum_field_types type) { switch (type) { case MYSQL_TYPE_BIT: case MYSQL_TYPE_BLOB: case MYSQL_TYPE_DATE: case MYSQL_TYPE_DATETIME: case MYSQL_TYPE_DECIMAL: case MYSQL_TYPE_DOUBLE: case MYSQL_TYPE_FLOAT: case MYSQL_TYPE_GEOMETRY: case MYSQL_TYPE_INT24: case MYSQL_TYPE_LONG: case MYSQL_TYPE_LONG_BLOB: case MYSQL_TYPE_LONGLONG: case MYSQL_TYPE_MEDIUM_BLOB: case MYSQL_TYPE_NEWDATE: case MYSQL_TYPE_NEWDECIMAL: case MYSQL_TYPE_NULL: case MYSQL_TYPE_SHORT: case MYSQL_TYPE_STRING: case MYSQL_TYPE_JSON: case MYSQL_TYPE_TIME: case MYSQL_TYPE_TIMESTAMP: case MYSQL_TYPE_TINY: case MYSQL_TYPE_TINY_BLOB: case MYSQL_TYPE_VAR_STRING: case MYSQL_TYPE_YEAR: return 1; break; default: return 0; break; } }
O3
c
mthd_supported_buffer_type: pushq %rbp movq %rsp, %rbp movb $0x1, %al cmpl $0x10, %edi ja 0x208ae cmpl $0xf, %edi jne 0x208c3 addl $0xffffff0b, %edi # imm = 0xFFFFFF0B cmpl $0xa, %edi ja 0x208c5 movl $0x7f3, %ecx # imm = 0x7F3 btl %edi, %ecx jae 0x208c5 popq %rbp retq xorl %eax, %eax jmp 0x208c3
mthd_supported_buffer_type: push rbp mov rbp, rsp mov al, 1 cmp edi, 10h ja short loc_208AE cmp edi, 0Fh jnz short loc_208C3 loc_208AE: add edi, 0FFFFFF0Bh cmp edi, 0Ah ja short loc_208C5 mov ecx, 7F3h bt ecx, edi jnb short loc_208C5 loc_208C3: pop rbp retn loc_208C5: xor eax, eax jmp short loc_208C3
char mthd_supported_buffer_type(unsigned int a1) { char result; // al unsigned int v2; // edi int v3; // ecx result = 1; if ( a1 > 0x10 || a1 == 15 ) { v2 = a1 - 245; if ( v2 > 0xA ) return 0; v3 = 2035; if ( !_bittest(&v3, v2) ) return 0; } return result; }
mthd_supported_buffer_type: PUSH RBP MOV RBP,RSP MOV AL,0x1 CMP EDI,0x10 JA 0x001208ae CMP EDI,0xf JNZ 0x001208c3 LAB_001208ae: ADD EDI,0xffffff0b CMP EDI,0xa JA 0x001208c5 MOV ECX,0x7f3 BT ECX,EDI JNC 0x001208c5 LAB_001208c3: POP RBP RET LAB_001208c5: XOR EAX,EAX JMP 0x001208c3
int8 mthd_supported_buffer_type(uint param_1) { int8 uVar1; uVar1 = 1; if (((0x10 < param_1) || (param_1 == 0xf)) && ((10 < param_1 - 0xf5 || ((0x7f3U >> (param_1 - 0xf5 & 0x1f) & 1) == 0)))) { uVar1 = 0; } return uVar1; }
52,841
emittra::Emittra::wait_for_event(std::shared_ptr<std::_V2::condition_variable_any> const&, std::chrono::duration<long, std::ratio<1l, 1000l>>)
angrymouse[P]emittra/src/emittra.cpp
void Emittra::wait_for_event(const std::shared_ptr<std::condition_variable_any>& cv, std::chrono::milliseconds timeout) { std::shared_mutex dummy_mutex; std::unique_lock<std::shared_mutex> lock(dummy_mutex); cv->wait_for(lock, timeout); }
O1
cpp
emittra::Emittra::wait_for_event(std::shared_ptr<std::_V2::condition_variable_any> const&, std::chrono::duration<long, std::ratio<1l, 1000l>>): pushq %r15 pushq %r14 pushq %rbx subq $0x60, %rsp movq %rdx, %rbx movq %rsi, %r14 xorps %xmm0, %xmm0 leaq 0x20(%rsp), %rax movaps %xmm0, 0x20(%rax) movaps %xmm0, 0x10(%rax) movaps %xmm0, (%rax) movq $0x0, 0x30(%rax) leaq 0x8(%rsp), %r15 movq %rax, (%r15) movb $0x0, 0x8(%r15) movq %r15, %rdi callq 0x78e6 movb $0x1, 0x8(%r15) movq (%r14), %r14 callq 0x3350 imulq $0xf4240, %rbx, %rcx # imm = 0xF4240 addq %rax, %rcx leaq 0x18(%rsp), %rdx movq %rcx, (%rdx) movq %r14, %rdi movq %r15, %rsi callq 0x9794 leaq 0x8(%rsp), %rdi callq 0x656c addq $0x60, %rsp popq %rbx popq %r14 popq %r15 retq movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x656c movq %rbx, %rdi callq 0x3450
_ZN7emittra7Emittra14wait_for_eventERKSt10shared_ptrINSt3_V222condition_variable_anyEENSt6chrono8durationIlSt5ratioILl1ELl1000EEEE: push r15 push r14 push rbx sub rsp, 60h mov rbx, rdx mov r14, rsi xorps xmm0, xmm0 lea rax, [rsp+78h+var_58] movaps xmmword ptr [rax+20h], xmm0 movaps xmmword ptr [rax+10h], xmm0 movaps xmmword ptr [rax], xmm0 mov qword ptr [rax+30h], 0 lea r15, [rsp+78h+var_70] mov [r15], rax mov byte ptr [r15+8], 0 mov rdi, r15; this call _ZNSt11unique_lockISt12shared_mutexE4lockEv; std::unique_lock<std::shared_mutex>::lock(void) mov byte ptr [r15+8], 1 mov r14, [r14] call __ZNSt6chrono3_V212steady_clock3nowEv; std::chrono::_V2::steady_clock::now(void) imul rcx, rbx, 0F4240h add rcx, rax lea rdx, [rsp+78h+var_60] mov [rdx], rcx mov rdi, r14 mov rsi, r15 call _ZNSt3_V222condition_variable_any10wait_untilISt11unique_lockISt12shared_mutexENSt6chrono3_V212steady_clockENS5_8durationIlSt5ratioILl1ELl1000000000EEEEEESt9cv_statusRT_RKNS5_10time_pointIT0_T1_EE; std::_V2::condition_variable_any::wait_until<std::unique_lock<std::shared_mutex>,std::chrono::_V2::steady_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>(std::unique_lock<std::shared_mutex> &,std::chrono::time_point<std::chrono::_V2::steady_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>> const&) lea rdi, [rsp+78h+var_70] call _ZNSt11unique_lockISt12shared_mutexED2Ev; std::unique_lock<std::shared_mutex>::~unique_lock() add rsp, 60h pop rbx pop r14 pop r15 retn mov rbx, rax lea rdi, [rsp+arg_0] call _ZNSt11unique_lockISt12shared_mutexED2Ev; std::unique_lock<std::shared_mutex>::~unique_lock() mov rdi, rbx call __Unwind_Resume
long long emittra::Emittra::wait_for_event(long long a1, long long *a2, long long a3) { long long v4; // r14 long long v5; // rax int v6; // r8d int v7; // r9d _BYTE *v9; // [rsp+8h] [rbp-70h] BYREF char v10; // [rsp+10h] [rbp-68h] long long v11; // [rsp+18h] [rbp-60h] BYREF _BYTE v12[48]; // [rsp+20h] [rbp-58h] BYREF long long v13; // [rsp+50h] [rbp-28h] memset(v12, 0, sizeof(v12)); v13 = 0LL; v9 = v12; v10 = 0; std::unique_lock<std::shared_mutex>::lock(&v9); v10 = 1; v4 = *a2; v5 = std::chrono::_V2::steady_clock::now((std::chrono::_V2::steady_clock *)&v9); v11 = v5 + 1000000 * a3; std::_V2::condition_variable_any::wait_until<std::unique_lock<std::shared_mutex>,std::chrono::_V2::steady_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>( v4, (unsigned int)&v9, (unsigned int)&v11, v5 + 1000000 * a3, v6, v7); return std::unique_lock<std::shared_mutex>::~unique_lock(&v9); }
wait_for_event: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x60 MOV RBX,RDX MOV R14,RSI XORPS XMM0,XMM0 LEA RAX,[RSP + 0x20] MOVAPS xmmword ptr [RAX + 0x20],XMM0 MOVAPS xmmword ptr [RAX + 0x10],XMM0 MOVAPS xmmword ptr [RAX],XMM0 MOV qword ptr [RAX + 0x30],0x0 LEA R15,[RSP + 0x8] MOV qword ptr [R15],RAX MOV byte ptr [R15 + 0x8],0x0 MOV RDI,R15 CALL 0x001078e6 MOV byte ptr [R15 + 0x8],0x1 MOV R14,qword ptr [R14] CALL 0x00103350 IMUL RCX,RBX,0xf4240 ADD RCX,RAX LEA RDX,[RSP + 0x18] MOV qword ptr [RDX],RCX LAB_00105da2: MOV RDI,R14 MOV RSI,R15 CALL 0x00109794 LAB_00105dad: LEA RDI,[RSP + 0x8] CALL 0x0010656c ADD RSP,0x60 POP RBX POP R14 POP R15 RET
/* WARNING: Type propagation algorithm not settling */ /* emittra::Emittra::wait_for_event(std::shared_ptr<std::_V2::condition_variable_any> const&, std::chrono::duration<long, std::ratio<1l, 1000l> >) */ void __thiscall emittra::Emittra::wait_for_event(int8 param_1_00,int8 *param_1,long param_3) { condition_variable_any *this; long *local_70; int1 local_68; long local_60 [9]; local_70 = local_60 + 1; local_60[5] = 0; local_60[6] = 0; local_60[3] = 0; local_60[4] = 0; local_60[1] = 0; local_60[2] = 0; local_60[7] = 0; local_68 = 0; std::unique_lock<std::shared_mutex>::lock((unique_lock<std::shared_mutex> *)&local_70); local_68 = 1; this = (condition_variable_any *)*param_1; local_60[0] = std::chrono::_V2::steady_clock::now(); local_60[0] = param_3 * 1000000 + local_60[0]; /* try { // try from 00105da2 to 00105dac has its CatchHandler @ 00105dc1 */ std::_V2::condition_variable_any:: wait_until<std::unique_lock<std::shared_mutex>,std::chrono::_V2::steady_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>> (this,(unique_lock *)&local_70,(time_point *)local_60); std::unique_lock<std::shared_mutex>::~unique_lock((unique_lock<std::shared_mutex> *)&local_70); return; }
52,842
emittra::Emittra::wait_for_event(std::shared_ptr<std::_V2::condition_variable_any> const&, std::chrono::duration<long, std::ratio<1l, 1000l>>)
angrymouse[P]emittra/src/emittra.cpp
void Emittra::wait_for_event(const std::shared_ptr<std::condition_variable_any>& cv, std::chrono::milliseconds timeout) { std::shared_mutex dummy_mutex; std::unique_lock<std::shared_mutex> lock(dummy_mutex); cv->wait_for(lock, timeout); }
O3
cpp
emittra::Emittra::wait_for_event(std::shared_ptr<std::_V2::condition_variable_any> const&, std::chrono::duration<long, std::ratio<1l, 1000l>>): pushq %r15 pushq %r14 pushq %rbx subq $0x60, %rsp movq %rdx, %rbx movq %rsi, %r14 xorps %xmm0, %xmm0 leaq 0x20(%rsp), %rax movaps %xmm0, 0x20(%rax) movaps %xmm0, 0x10(%rax) movaps %xmm0, (%rax) movq $0x0, 0x30(%rax) leaq 0x8(%rsp), %r15 movq %rax, (%r15) movb $0x0, 0x8(%r15) movq %r15, %rdi callq 0x787e movb $0x1, 0x8(%r15) movq (%r14), %r14 callq 0x3350 imulq $0xf4240, %rbx, %rcx # imm = 0xF4240 addq %rax, %rcx leaq 0x18(%rsp), %rdx movq %rcx, (%rdx) movq %r14, %rdi movq %r15, %rsi callq 0x95d6 leaq 0x8(%rsp), %rdi callq 0x654a addq $0x60, %rsp popq %rbx popq %r14 popq %r15 retq movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x654a movq %rbx, %rdi callq 0x3450
_ZN7emittra7Emittra14wait_for_eventERKSt10shared_ptrINSt3_V222condition_variable_anyEENSt6chrono8durationIlSt5ratioILl1ELl1000EEEE: push r15 push r14 push rbx sub rsp, 60h mov rbx, rdx mov r14, rsi xorps xmm0, xmm0 lea rax, [rsp+78h+var_58] movaps xmmword ptr [rax+20h], xmm0 movaps xmmword ptr [rax+10h], xmm0 movaps xmmword ptr [rax], xmm0 mov qword ptr [rax+30h], 0 lea r15, [rsp+78h+var_70] mov [r15], rax mov byte ptr [r15+8], 0 mov rdi, r15; this call _ZNSt11unique_lockISt12shared_mutexE4lockEv; std::unique_lock<std::shared_mutex>::lock(void) mov byte ptr [r15+8], 1 mov r14, [r14] call __ZNSt6chrono3_V212steady_clock3nowEv; std::chrono::_V2::steady_clock::now(void) imul rcx, rbx, 0F4240h add rcx, rax lea rdx, [rsp+78h+var_60] mov [rdx], rcx mov rdi, r14 mov rsi, r15 call _ZNSt3_V222condition_variable_any10wait_untilISt11unique_lockISt12shared_mutexENSt6chrono3_V212steady_clockENS5_8durationIlSt5ratioILl1ELl1000000000EEEEEESt9cv_statusRT_RKNS5_10time_pointIT0_T1_EE; std::_V2::condition_variable_any::wait_until<std::unique_lock<std::shared_mutex>,std::chrono::_V2::steady_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>(std::unique_lock<std::shared_mutex> &,std::chrono::time_point<std::chrono::_V2::steady_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>> const&) lea rdi, [rsp+78h+var_70] call _ZNSt11unique_lockISt12shared_mutexED2Ev; std::unique_lock<std::shared_mutex>::~unique_lock() add rsp, 60h pop rbx pop r14 pop r15 retn mov rbx, rax lea rdi, [rsp+arg_0] call _ZNSt11unique_lockISt12shared_mutexED2Ev; std::unique_lock<std::shared_mutex>::~unique_lock() mov rdi, rbx call __Unwind_Resume
long long emittra::Emittra::wait_for_event(long long a1, long long *a2, long long a3) { long long v4; // r14 long long v5; // rax int v6; // r8d int v7; // r9d _BYTE *v9; // [rsp+8h] [rbp-70h] BYREF char v10; // [rsp+10h] [rbp-68h] long long v11; // [rsp+18h] [rbp-60h] BYREF _BYTE v12[48]; // [rsp+20h] [rbp-58h] BYREF long long v13; // [rsp+50h] [rbp-28h] memset(v12, 0, sizeof(v12)); v13 = 0LL; v9 = v12; v10 = 0; std::unique_lock<std::shared_mutex>::lock(&v9); v10 = 1; v4 = *a2; v5 = std::chrono::_V2::steady_clock::now((std::chrono::_V2::steady_clock *)&v9); v11 = v5 + 1000000 * a3; std::_V2::condition_variable_any::wait_until<std::unique_lock<std::shared_mutex>,std::chrono::_V2::steady_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>( v4, (unsigned int)&v9, (unsigned int)&v11, v5 + 1000000 * a3, v6, v7); return std::unique_lock<std::shared_mutex>::~unique_lock(&v9); }
wait_for_event: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x60 MOV RBX,RDX MOV R14,RSI XORPS XMM0,XMM0 LEA RAX,[RSP + 0x20] MOVAPS xmmword ptr [RAX + 0x20],XMM0 MOVAPS xmmword ptr [RAX + 0x10],XMM0 MOVAPS xmmword ptr [RAX],XMM0 MOV qword ptr [RAX + 0x30],0x0 LEA R15,[RSP + 0x8] MOV qword ptr [R15],RAX MOV byte ptr [R15 + 0x8],0x0 MOV RDI,R15 CALL 0x0010787e MOV byte ptr [R15 + 0x8],0x1 MOV R14,qword ptr [R14] CALL 0x00103350 IMUL RCX,RBX,0xf4240 ADD RCX,RAX LEA RDX,[RSP + 0x18] MOV qword ptr [RDX],RCX LAB_00105daa: MOV RDI,R14 MOV RSI,R15 CALL 0x001095d6 LAB_00105db5: LEA RDI,[RSP + 0x8] CALL 0x0010654a ADD RSP,0x60 POP RBX POP R14 POP R15 RET
/* WARNING: Type propagation algorithm not settling */ /* emittra::Emittra::wait_for_event(std::shared_ptr<std::_V2::condition_variable_any> const&, std::chrono::duration<long, std::ratio<1l, 1000l> >) */ void __thiscall emittra::Emittra::wait_for_event(int8 param_1_00,int8 *param_1,long param_3) { condition_variable_any *this; long *local_70; int1 local_68; long local_60 [9]; local_70 = local_60 + 1; local_60[5] = 0; local_60[6] = 0; local_60[3] = 0; local_60[4] = 0; local_60[1] = 0; local_60[2] = 0; local_60[7] = 0; local_68 = 0; std::unique_lock<std::shared_mutex>::lock((unique_lock<std::shared_mutex> *)&local_70); local_68 = 1; this = (condition_variable_any *)*param_1; local_60[0] = std::chrono::_V2::steady_clock::now(); local_60[0] = param_3 * 1000000 + local_60[0]; /* try { // try from 00105daa to 00105db4 has its CatchHandler @ 00105dc9 */ std::_V2::condition_variable_any:: wait_until<std::unique_lock<std::shared_mutex>,std::chrono::_V2::steady_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>> (this,(unique_lock *)&local_70,(time_point *)local_60); std::unique_lock<std::shared_mutex>::~unique_lock((unique_lock<std::shared_mutex> *)&local_70); return; }
52,843
nglog::LogMessage::SendToSink()
ng-log[P]ng-log/src/logging.cc
EXCLUSIVE_LOCKS_REQUIRED(log_mutex) { if (data_->sink_ != nullptr) { RAW_DCHECK(data_->num_chars_to_log_ > 0 && data_->message_text_[data_->num_chars_to_log_ - 1] == '\n', ""); data_->sink_->send( data_->severity_, data_->fullname_, data_->basename_, data_->line_, time_, data_->message_text_ + data_->num_prefix_chars_, (data_->num_chars_to_log_ - data_->num_prefix_chars_ - 1)); } }
O1
cpp
nglog::LogMessage::SendToSink(): movq 0x8(%rdi), %rax cmpq $0x0, 0x76b0(%rax) je 0x1af43 pushq %rbx movq %rdi, %rbx movq 0x76c0(%rax), %rcx testq %rcx, %rcx je 0x1aec1 cmpb $0xa, 0x3(%rcx,%rax) je 0x1aeee leaq 0x19b9a(%rip), %rsi # 0x34a62 leaq 0x1737f(%rip), %rcx # 0x3224e leaq 0x19bd3(%rip), %r8 # 0x34aa9 leaq 0x1a0d7(%rip), %r9 # 0x34fb4 movl $0x3, %edi movl $0x76b, %edx # imm = 0x76B xorl %eax, %eax callq 0x2f4ec movq 0x8(%rbx), %rax movq 0x76b0(%rax), %rdi movq 0x76d8(%rax), %rdx movq 0x76d0(%rax), %rcx movl 0x7698(%rax), %esi movl 0x769c(%rax), %r8d addq $0x10, %rbx movq 0x76b8(%rax), %r10 leaq (%rax,%r10), %r11 addq $0x4, %r11 notq %r10 addq 0x76c0(%rax), %r10 movq (%rdi), %rax movq %rbx, %r9 pushq %r10 pushq %r11 callq *0x10(%rax) addq $0x10, %rsp popq %rbx retq
_ZN5nglog10LogMessage10SendToSinkEv: mov rax, [rdi+8] cmp qword ptr [rax+76B0h], 0 jz locret_1AF43 push rbx mov rbx, rdi mov rcx, [rax+76C0h] test rcx, rcx jz short loc_1AEC1 cmp byte ptr [rcx+rax+3], 0Ah jz short loc_1AEEE loc_1AEC1: lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rcx, aCheckSFailedS; "Check %s failed: %s" lea r8, aDataNumCharsTo; "data_->num_chars_to_log_ > 0 && data_->"... lea r9, asc_34FB2+2; "" mov edi, 3 mov edx, 76Bh xor eax, eax call _ZN5nglog6RawLogENS_11LogSeverityEPKciS2_z; nglog::RawLog(nglog::LogSeverity,char const*,int,char const*,...) loc_1AEEE: mov rax, [rbx+8] mov rdi, [rax+76B0h] mov rdx, [rax+76D8h] mov rcx, [rax+76D0h] mov esi, [rax+7698h] mov r8d, [rax+769Ch] add rbx, 10h mov r10, [rax+76B8h] lea r11, [rax+r10] add r11, 4 not r10 add r10, [rax+76C0h] mov rax, [rdi] mov r9, rbx push r10 push r11 call qword ptr [rax+10h] add rsp, 10h pop rbx locret_1AF43: retn
long long nglog::LogMessage::SendToSink(nglog::LogMessage *this) { long long v1; // rbx long long result; // rax long long v3; // rcx long long v4; // rax result = *((_QWORD *)this + 1); if ( *(_QWORD *)(result + 30384) ) { v3 = *(_QWORD *)(result + 30400); if ( !v3 || *(_BYTE *)(v3 + result + 3) != 10 ) nglog::RawLog( 3, (unsigned int)"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging.cc", 1899, (unsigned int)"Check %s failed: %s", (unsigned int)"data_->num_chars_to_log_ > 0 && data_->message_text_[data_->num_chars_to_log_ - 1] == '\\n'", (unsigned int)"", v1); v4 = *((_QWORD *)this + 1); return (*(long long ( **)(_QWORD, _QWORD, _QWORD, _QWORD, _QWORD, char *, long long, _QWORD))(**(_QWORD **)(v4 + 30384) + 16LL))( *(_QWORD *)(v4 + 30384), *(unsigned int *)(v4 + 30360), *(_QWORD *)(v4 + 30424), *(_QWORD *)(v4 + 30416), *(unsigned int *)(v4 + 30364), (char *)this + 16, v4 + *(_QWORD *)(v4 + 30392) + 4, *(_QWORD *)(v4 + 30400) + ~*(_QWORD *)(v4 + 30392)); } return result; }
SendToSink: MOV RAX,qword ptr [RDI + 0x8] CMP qword ptr [RAX + 0x76b0],0x0 JZ 0x0011af43 PUSH RBX MOV RBX,RDI MOV RCX,qword ptr [RAX + 0x76c0] TEST RCX,RCX JZ 0x0011aec1 CMP byte ptr [RCX + RAX*0x1 + 0x3],0xa JZ 0x0011aeee LAB_0011aec1: LEA RSI,[0x134a62] LEA RCX,[0x13224e] LEA R8,[0x134aa9] LEA R9,[0x134fb4] MOV EDI,0x3 MOV EDX,0x76b XOR EAX,EAX CALL 0x0012f4ec LAB_0011aeee: MOV RAX,qword ptr [RBX + 0x8] MOV RDI,qword ptr [RAX + 0x76b0] MOV RDX,qword ptr [RAX + 0x76d8] MOV RCX,qword ptr [RAX + 0x76d0] MOV ESI,dword ptr [RAX + 0x7698] MOV R8D,dword ptr [RAX + 0x769c] ADD RBX,0x10 MOV R10,qword ptr [RAX + 0x76b8] LEA R11,[RAX + R10*0x1] ADD R11,0x4 NOT R10 ADD R10,qword ptr [RAX + 0x76c0] MOV RAX,qword ptr [RDI] MOV R9,RBX PUSH R10 PUSH R11 CALL qword ptr [RAX + 0x10] ADD RSP,0x10 POP RBX LAB_0011af43: RET
/* nglog::LogMessage::SendToSink() */ void __thiscall nglog::LogMessage::SendToSink(LogMessage *this) { long lVar1; lVar1 = *(long *)(this + 8); if (*(long *)(lVar1 + 0x76b0) != 0) { if ((*(long *)(lVar1 + 0x76c0) == 0) || (*(char *)(*(long *)(lVar1 + 0x76c0) + 3 + lVar1) != '\n')) { RawLog(3,"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging.cc",0x76b, "Check %s failed: %s", "data_->num_chars_to_log_ > 0 && data_->message_text_[data_->num_chars_to_log_ - 1] == \'\\n\'" ,&DAT_00134fb4); } lVar1 = *(long *)(this + 8); (**(code **)(**(long **)(lVar1 + 0x76b0) + 0x10)) (*(long **)(lVar1 + 0x76b0),*(int4 *)(lVar1 + 0x7698), *(int8 *)(lVar1 + 0x76d8),*(int8 *)(lVar1 + 0x76d0), *(int4 *)(lVar1 + 0x769c),this + 0x10,lVar1 + *(ulong *)(lVar1 + 0x76b8) + 4, ~*(ulong *)(lVar1 + 0x76b8) + *(long *)(lVar1 + 0x76c0)); } return; }
52,844
gguf_set_val_i16
Yangxiaoz[P]GGML-Tutorial/ggml/src/gguf.cpp
void gguf_set_val_i16(struct gguf_context * ctx, const char * key, int16_t val) { gguf_check_reserved_keys(key, val); gguf_remove_key(ctx, key); ctx->kv.emplace_back(key, val); }
O1
cpp
gguf_set_val_i16: pushq %r14 pushq %rbx subq $0x38, %rsp movq %rdi, %rbx movq %rsi, 0x10(%rsp) movw %dx, 0xc(%rsp) leaq 0x18(%rsp), %r14 leaq 0xf(%rsp), %rdx movq %r14, %rdi callq 0x18d70 leaq 0x1d5cd(%rip), %rsi # 0x5d061 movq %r14, %rdi callq 0x18220 testl %eax, %eax je 0x3fae7 leaq 0x28(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x3fabb movq 0x28(%rsp), %rsi incq %rsi callq 0x180e0 leaq 0x10(%rsp), %r14 movq (%r14), %rsi movq %rbx, %rdi callq 0x186c0 addq $0x8, %rbx leaq 0xc(%rsp), %rdx movq %rbx, %rdi movq %r14, %rsi callq 0x181d0 addq $0x38, %rsp popq %rbx popq %r14 retq leaq 0x1d4ff(%rip), %rdi # 0x5cfed leaq 0x1e001(%rip), %rdx # 0x5daf6 movl $0x3a3, %esi # imm = 0x3A3 xorl %eax, %eax callq 0x18ce0 movq %rax, %rbx leaq 0x28(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x3fb1f movq 0x28(%rsp), %rsi incq %rsi callq 0x180e0 movq %rbx, %rdi callq 0x18ea0
gguf_set_val_i16: push r14 push rbx sub rsp, 38h mov rbx, rdi mov [rsp+48h+var_38], rsi mov [rsp+48h+var_3C], dx lea r14, [rsp+48h+var_30] lea rdx, [rsp+48h+var_39] mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rsi, aGeneralAlignme; "general.alignment" mov rdi, r14 call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz short loc_3FAE7 lea rax, [rsp+48h+var_20] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_3FABB mov rsi, [rsp+48h+var_20] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3FABB: lea r14, [rsp+48h+var_38] mov rsi, [r14] mov rdi, rbx call _gguf_remove_key add rbx, 8 lea rdx, [rsp+48h+var_3C] mov rdi, rbx mov rsi, r14 call __ZNSt6vectorI7gguf_kvSaIS0_EE12emplace_backIJRPKcRsEEERS0_DpOT_; std::vector<gguf_kv>::emplace_back<char const*&,short &>(char const*&,short &) add rsp, 38h pop rbx pop r14 retn loc_3FAE7: lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGeneralAlignme_0; "general.alignment must be type u32" mov esi, 3A3h xor eax, eax call _ggml_abort mov rbx, rax lea rax, [rsp+48h+var_20] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_3FB1F mov rsi, [rsp+48h+var_20] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3FB1F: mov rdi, rbx call __Unwind_Resume
long long gguf_set_val_i16(long long a1, long long a2, __int16 a3) { int v3; // ecx int v4; // r8d int v5; // r9d __int16 v7; // [rsp+Ch] [rbp-3Ch] BYREF char v8; // [rsp+Fh] [rbp-39h] BYREF long long v9; // [rsp+10h] [rbp-38h] BYREF void *v10[2]; // [rsp+18h] [rbp-30h] BYREF long long v11; // [rsp+28h] [rbp-20h] BYREF v9 = a2; v7 = a3; std::string::basic_string<std::allocator<char>>(v10, a2, &v8); if ( !(unsigned int)std::string::compare(v10, "general.alignment") ) ggml_abort( (unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/gguf.cpp", 931, (unsigned int)"general.alignment must be type u32", v3, v4, v5); if ( v10[0] != &v11 ) operator delete(v10[0], v11 + 1); gguf_remove_key(a1, v9); return std::vector<gguf_kv>::emplace_back<char const*&,short &>(a1 + 8, &v9, &v7); }
gguf_set_val_i16: PUSH R14 PUSH RBX SUB RSP,0x38 MOV RBX,RDI MOV qword ptr [RSP + 0x10],RSI MOV word ptr [RSP + 0xc],DX LEA R14,[RSP + 0x18] LEA RDX,[RSP + 0xf] MOV RDI,R14 CALL 0x00118d70 LEA RSI,[0x15d061] MOV RDI,R14 CALL 0x00118220 TEST EAX,EAX JZ 0x0013fae7 LEA RAX,[RSP + 0x28] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0013fabb MOV RSI,qword ptr [RSP + 0x28] INC RSI CALL 0x001180e0 LAB_0013fabb: LEA R14,[RSP + 0x10] MOV RSI,qword ptr [R14] MOV RDI,RBX CALL 0x001186c0 ADD RBX,0x8 LEA RDX,[RSP + 0xc] MOV RDI,RBX MOV RSI,R14 CALL 0x001181d0 ADD RSP,0x38 POP RBX POP R14 RET LAB_0013fae7: LEA RDI,[0x15cfed] LEA RDX,[0x15daf6] MOV ESI,0x3a3 XOR EAX,EAX CALL 0x00118ce0
void gguf_set_val_i16(long param_1,char *param_2,short param_3) { int iVar1; short local_3c; allocator local_39; char *local_38; long *local_30 [2]; long local_20 [2]; local_3c = param_3; local_38 = param_2; std::__cxx11::string::string<std::allocator<char>>((string *)local_30,param_2,&local_39); iVar1 = std::__cxx11::string::compare((string *)local_30,"general.alignment"); if (iVar1 != 0) { if (local_30[0] != local_20) { operator_delete(local_30[0],local_20[0] + 1); } gguf_remove_key(param_1,local_38); std::vector<gguf_kv,std::allocator<gguf_kv>>::emplace_back<char_const*&,short&> ((vector<gguf_kv,std::allocator<gguf_kv>> *)(param_1 + 8),&local_38,&local_3c); return; } /* try { // try from 0013fae7 to 0013fb00 has its CatchHandler @ 0013fb01 */ /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/gguf.cpp", 0x3a3,"general.alignment must be type u32"); }
52,845
gguf_set_val_i16
Yangxiaoz[P]GGML-Tutorial/ggml/src/gguf.cpp
void gguf_set_val_i16(struct gguf_context * ctx, const char * key, int16_t val) { gguf_check_reserved_keys(key, val); gguf_remove_key(ctx, key); ctx->kv.emplace_back(key, val); }
O3
cpp
gguf_set_val_i16: pushq %r15 pushq %r14 pushq %rbx subq $0x30, %rsp movq %rsi, %r14 movq %rdi, %rbx movq %rsi, 0x8(%rsp) movw %dx, 0x4(%rsp) leaq 0x10(%rsp), %r15 leaq 0x7(%rsp), %rdx movq %r15, %rdi callq 0x17d60 leaq 0x1e423(%rip), %rsi # 0x5d551 movq %r15, %rdi callq 0x17210 testl %eax, %eax je 0x3f180 leaq 0x20(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x3f155 movq 0x20(%rsp), %rsi incq %rsi callq 0x170d0 movq %rbx, %rdi movq %r14, %rsi callq 0x176b0 addq $0x8, %rbx leaq 0x8(%rsp), %rsi leaq 0x4(%rsp), %rdx movq %rbx, %rdi callq 0x171c0 addq $0x30, %rsp popq %rbx popq %r14 popq %r15 retq leaq 0x1e356(%rip), %rdi # 0x5d4dd leaq 0x1ee58(%rip), %rdx # 0x5dfe6 movl $0x3a3, %esi # imm = 0x3A3 xorl %eax, %eax callq 0x17cd0 movq %rax, %rbx leaq 0x20(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x3f1b8 movq 0x20(%rsp), %rsi incq %rsi callq 0x170d0 movq %rbx, %rdi callq 0x17e90
gguf_set_val_i16: push r15 push r14 push rbx sub rsp, 30h mov r14, rsi mov rbx, rdi mov [rsp+48h+var_40], rsi mov [rsp+48h+var_44], dx lea r15, [rsp+48h+var_38] lea rdx, [rsp+48h+var_41] mov rdi, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rsi, aGeneralAlignme; "general.alignment" mov rdi, r15 call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz short loc_3F180 lea rax, [rsp+48h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_3F155 mov rsi, [rsp+48h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3F155: mov rdi, rbx mov rsi, r14 call _gguf_remove_key add rbx, 8 lea rsi, [rsp+48h+var_40] lea rdx, [rsp+48h+var_44] mov rdi, rbx call __ZNSt6vectorI7gguf_kvSaIS0_EE12emplace_backIJRPKcRsEEERS0_DpOT_; std::vector<gguf_kv>::emplace_back<char const*&,short &>(char const*&,short &) add rsp, 30h pop rbx pop r14 pop r15 retn loc_3F180: lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGeneralAlignme_0; "general.alignment must be type u32" mov esi, 3A3h xor eax, eax call _ggml_abort mov rbx, rax lea rax, [rsp+48h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_3F1B8 mov rsi, [rsp+48h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3F1B8: mov rdi, rbx call __Unwind_Resume
long long gguf_set_val_i16(long long a1, long long a2, __int16 a3) { int v3; // ecx int v4; // r8d int v5; // r9d __int16 v7; // [rsp+4h] [rbp-44h] BYREF char v8; // [rsp+7h] [rbp-41h] BYREF long long v9; // [rsp+8h] [rbp-40h] BYREF void *v10[2]; // [rsp+10h] [rbp-38h] BYREF long long v11; // [rsp+20h] [rbp-28h] BYREF v9 = a2; v7 = a3; std::string::basic_string<std::allocator<char>>(v10, a2, &v8); if ( !(unsigned int)std::string::compare(v10, "general.alignment") ) ggml_abort( (unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/gguf.cpp", 931, (unsigned int)"general.alignment must be type u32", v3, v4, v5); if ( v10[0] != &v11 ) operator delete(v10[0], v11 + 1); gguf_remove_key(a1, a2); return std::vector<gguf_kv>::emplace_back<char const*&,short &>(a1 + 8, &v9, &v7); }
gguf_set_val_i16: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x30 MOV R14,RSI MOV RBX,RDI MOV qword ptr [RSP + 0x8],RSI MOV word ptr [RSP + 0x4],DX LEA R15,[RSP + 0x10] LEA RDX,[RSP + 0x7] MOV RDI,R15 CALL 0x00117d60 LEA RSI,[0x15d551] MOV RDI,R15 CALL 0x00117210 TEST EAX,EAX JZ 0x0013f180 LEA RAX,[RSP + 0x20] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0013f155 MOV RSI,qword ptr [RSP + 0x20] INC RSI CALL 0x001170d0 LAB_0013f155: MOV RDI,RBX MOV RSI,R14 CALL 0x001176b0 ADD RBX,0x8 LEA RSI,[RSP + 0x8] LEA RDX,[RSP + 0x4] MOV RDI,RBX CALL 0x001171c0 ADD RSP,0x30 POP RBX POP R14 POP R15 RET LAB_0013f180: LEA RDI,[0x15d4dd] LEA RDX,[0x15dfe6] MOV ESI,0x3a3 XOR EAX,EAX CALL 0x00117cd0
void gguf_set_val_i16(long param_1,char *param_2,short param_3) { int iVar1; short local_44; allocator local_41; char *local_40; long *local_38 [2]; long local_28 [2]; local_44 = param_3; local_40 = param_2; std::__cxx11::string::string<std::allocator<char>>((string *)local_38,param_2,&local_41); iVar1 = std::__cxx11::string::compare((string *)local_38,"general.alignment"); if (iVar1 != 0) { if (local_38[0] != local_28) { operator_delete(local_38[0],local_28[0] + 1); } gguf_remove_key(param_1,param_2); std::vector<gguf_kv,std::allocator<gguf_kv>>::emplace_back<char_const*&,short&> ((vector<gguf_kv,std::allocator<gguf_kv>> *)(param_1 + 8),&local_40,&local_44); return; } /* try { // try from 0013f180 to 0013f199 has its CatchHandler @ 0013f19a */ /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/gguf.cpp", 0x3a3,"general.alignment must be type u32"); }
52,846
my_error_unregister_all
eloqsql/mysys/my_error.c
void my_error_unregister_all(void) { struct my_err_head *cursor, *saved_next; for (cursor= my_errmsgs_globerrs.meh_next; cursor != NULL; cursor= saved_next) { /* We need this ptr, but we're about to free its container, so save it. */ saved_next= cursor->meh_next; my_free(cursor); } my_errmsgs_globerrs.meh_next= NULL; /* Freed in first iteration above. */ my_errmsgs_list= &my_errmsgs_globerrs; }
O0
c
my_error_unregister_all: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq 0x1a5859(%rip), %rax # 0x1d5818 movq %rax, -0x8(%rbp) cmpq $0x0, -0x8(%rbp) je 0x2ffe8 movq -0x8(%rbp), %rax movq (%rax), %rax movq %rax, -0x10(%rbp) movq -0x8(%rbp), %rdi callq 0x28570 movq -0x10(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x2ffc3 movq $0x0, 0x1a5825(%rip) # 0x1d5818 leaq 0x1a581e(%rip), %rax # 0x1d5818 movq %rax, 0x1a580f(%rip) # 0x1d5810 addq $0x10, %rsp popq %rbp retq nopw (%rax,%rax)
my_error_unregister_all: push rbp mov rbp, rsp sub rsp, 10h mov rax, cs:my_errmsgs_globerrs mov [rbp+var_8], rax loc_2FFC3: cmp [rbp+var_8], 0 jz short loc_2FFE8 mov rax, [rbp+var_8] mov rax, [rax] mov [rbp+var_10], rax mov rdi, [rbp+var_8] call my_free mov rax, [rbp+var_10] mov [rbp+var_8], rax jmp short loc_2FFC3 loc_2FFE8: mov cs:my_errmsgs_globerrs, 0 lea rax, my_errmsgs_globerrs mov cs:my_errmsgs_list, rax add rsp, 10h pop rbp retn
long long *my_error_unregister_all() { long long *result; // rax _QWORD *v1; // [rsp+0h] [rbp-10h] _QWORD *i; // [rsp+8h] [rbp-8h] for ( i = (_QWORD *)my_errmsgs_globerrs; i; i = v1 ) { v1 = (_QWORD *)*i; my_free((long long)i); } my_errmsgs_globerrs = 0LL; result = &my_errmsgs_globerrs; my_errmsgs_list = &my_errmsgs_globerrs; return result; }
my_error_unregister_all: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV RAX,qword ptr [0x002d5818] MOV qword ptr [RBP + -0x8],RAX LAB_0012ffc3: CMP qword ptr [RBP + -0x8],0x0 JZ 0x0012ffe8 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x10],RAX MOV RDI,qword ptr [RBP + -0x8] CALL 0x00128570 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x8],RAX JMP 0x0012ffc3 LAB_0012ffe8: MOV qword ptr [0x002d5818],0x0 LEA RAX,[0x2d5818] MOV qword ptr [0x002d5810],RAX ADD RSP,0x10 POP RBP RET
void my_error_unregister_all(void) { int8 *puVar1; int8 *local_10; local_10 = my_errmsgs_globerrs; while (local_10 != (int8 *)0x0) { puVar1 = (int8 *)*local_10; my_free(local_10); local_10 = puVar1; } my_errmsgs_globerrs = (int8 *)0x0; my_errmsgs_list = (int *)&my_errmsgs_globerrs; return; }
52,847
std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<long&>(long&, bool)
monkey531[P]llama/common/json.hpp
std::pair<bool, BasicJsonType*> handle_value(Value&& v, const bool skip_callback = false) { JSON_ASSERT(!keep_stack.empty()); // do not handle this value if we know it would be added to a discarded // container if (!keep_stack.back()) { return {false, nullptr}; } // create value auto value = BasicJsonType(std::forward<Value>(v)); // check callback const bool keep = skip_callback || callback(static_cast<int>(ref_stack.size()), parse_event_t::value, value); // do not handle this value if we just learnt it shall be discarded if (!keep) { return {false, nullptr}; } if (ref_stack.empty()) { root = std::move(value); return {true, & root}; } // skip this value if we already decided to skip the parent // (https://github.com/nlohmann/json/issues/971#issuecomment-413678360) if (!ref_stack.back()) { return {false, nullptr}; } // we now only expect arrays and objects JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object()); // array if (ref_stack.back()->is_array()) { ref_stack.back()->m_data.m_value.array->emplace_back(std::move(value)); return {true, & (ref_stack.back()->m_data.m_value.array->back())}; } // object JSON_ASSERT(ref_stack.back()->is_object()); // check if we should store an element for the current key JSON_ASSERT(!key_keep_stack.empty()); const bool store_element = key_keep_stack.back(); key_keep_stack.pop_back(); if (!store_element) { return {false, nullptr}; } JSON_ASSERT(object_element); *object_element = std::move(value); return {true, object_element}; }
O1
cpp
std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<long&>(long&, bool): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x48, %rsp movl %edx, %ebp movq %rdi, %rbx movq 0x30(%rdi), %rax movl 0x38(%rdi), %ecx cmpq %rax, 0x20(%rdi) sete %dl testl %ecx, %ecx sete %dil andb %dl, %dil cmpb $0x1, %dil je 0x5ee9c movl %ecx, %ecx movabsq $-0x8000000000000000, %r15 # imm = 0x8000000000000000 leaq -0x1(%rcx), %rdx addq $0x3e, %rcx testq %rdx, %rdx cmovnsq %rdx, %rcx sarq $0x6, %rcx leaq (%rax,%rcx,8), %rax leaq 0x3f(%r15), %rcx andq %rdx, %rcx xorl %edi, %edi cmpq %r15, %rcx setbe %dil movq -0x8(%rax,%rdi,8), %rax btq %rdx, %rax jae 0x5ed2f xorps %xmm0, %xmm0 leaq 0x10(%rsp), %r14 movaps %xmm0, (%r14) movq (%rsi), %rsi movq %r14, %rdi callq 0x5ef36 movq %r14, %rdi movl $0x1, %esi callq 0x56f38 testb %bpl, %bpl jne 0x5ecdc movq 0x10(%rbx), %rax subq 0x8(%rbx), %rax shrq $0x3, %rax movl %eax, 0xc(%rsp) movb $0x5, 0xb(%rsp) cmpq $0x0, 0x90(%rbx) je 0x5eebd leaq 0x80(%rbx), %rdi leaq 0xc(%rsp), %rsi leaq 0xb(%rsp), %rdx leaq 0x10(%rsp), %rcx callq *0x98(%rbx) testb %al, %al je 0x5ee70 movq 0x10(%rbx), %rax cmpq %rax, 0x8(%rbx) je 0x5ed39 movq -0x8(%rax), %rax testq %rax, %rax je 0x5ee70 movzbl (%rax), %ecx cmpl $0x1, %ecx je 0x5ed93 cmpl $0x2, %ecx jne 0x5eec2 movq 0x8(%rax), %rdi leaq 0x10(%rsp), %rsi callq 0x5bd6a movq 0x10(%rbx), %rax movq -0x8(%rax), %rax movq 0x8(%rax), %rax movq 0x8(%rax), %r14 addq $-0x10, %r14 jmp 0x5ee6c xorl %ebx, %ebx xorl %r14d, %r14d jmp 0x5ee8c leaq 0x10(%rsp), %r14 movaps (%r14), %xmm0 leaq 0x30(%rsp), %r15 movaps %xmm0, (%r15) movq %r14, %rdi xorl %esi, %esi callq 0x56f38 movb $0x0, (%r14) movq $0x0, 0x8(%r14) movq %r15, %rdi movl $0x1, %esi callq 0x56f38 movq (%rbx), %rdi movq %r15, %rsi callq 0x598d4 movq %r15, %rdi xorl %esi, %esi callq 0x56f38 movq %r15, %rdi callq 0x5c724 movq (%rbx), %r14 jmp 0x5ee6c movq 0x58(%rbx), %rax movl 0x60(%rbx), %ecx cmpq %rax, 0x48(%rbx) sete %dl testl %ecx, %ecx sete %sil andb %dl, %sil cmpb $0x1, %sil je 0x5eed0 movl %ecx, %esi leaq -0x1(%rsi), %rcx movq %rsi, %rdx addq $0x3e, %rdx testq %rcx, %rcx cmovnsq %rcx, %rdx sarq $0x6, %rdx leaq (%rax,%rdx,8), %rdi leaq 0x3f(%r15), %rdx andq %rcx, %rdx xorl %r8d, %r8d cmpq %r15, %rdx setbe %r8b movl $0x1, %edx shlq %cl, %rdx andq -0x8(%rdi,%r8,8), %rdx subl $0x1, %esi movl %esi, 0x60(%rbx) jae 0x5ee05 movl $0x3f, 0x60(%rbx) addq $-0x8, %rax movq %rax, 0x58(%rbx) testq %rdx, %rdx je 0x5ee70 cmpq $0x0, 0x70(%rbx) je 0x5eef1 leaq 0x10(%rsp), %r14 movaps (%r14), %xmm0 leaq 0x20(%rsp), %r15 movaps %xmm0, (%r15) movq %r14, %rdi xorl %esi, %esi callq 0x56f38 movb $0x0, (%r14) movq $0x0, 0x8(%r14) movq %r15, %rdi movl $0x1, %esi callq 0x56f38 movq 0x70(%rbx), %rdi movq %r15, %rsi callq 0x598d4 movq %r15, %rdi xorl %esi, %esi callq 0x56f38 movq %r15, %rdi callq 0x5c724 movq 0x70(%rbx), %r14 movb $0x1, %bl jmp 0x5ee75 xorl %ebx, %ebx xorl %r14d, %r14d leaq 0x10(%rsp), %r15 movq %r15, %rdi xorl %esi, %esi callq 0x56f38 movq %r15, %rdi callq 0x5c724 movl %ebx, %eax movq %r14, %rdx addq $0x48, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq leaq 0x8dd36(%rip), %rdi # 0xecbd9 leaq 0x8dd79(%rip), %rdx # 0xecc23 leaq 0x8eca4(%rip), %rcx # 0xedb55 movl $0x1c28, %esi # imm = 0x1C28 xorl %eax, %eax callq 0x1ae30 callq 0x1a300 leaq 0x8eca0(%rip), %rcx # 0xedb69 movl $0x1c4b, %esi # imm = 0x1C4B jmp 0x5eedc leaq 0x8ecd0(%rip), %rcx # 0xedba7 movl $0x1c57, %esi # imm = 0x1C57 leaq 0x8dcf6(%rip), %rdi # 0xecbd9 leaq 0x8dd39(%rip), %rdx # 0xecc23 xorl %eax, %eax callq 0x1ae30 leaq 0x8dce1(%rip), %rdi # 0xecbd9 leaq 0x8dd24(%rip), %rdx # 0xecc23 leaq 0x8ecb9(%rip), %rcx # 0xedbbf movl $0x1c60, %esi # imm = 0x1C60 xorl %eax, %eax callq 0x1ae30 jmp 0x5ef14 movq %rax, %rbx leaq 0x10(%rsp), %r14 movq %r14, %rdi xorl %esi, %esi callq 0x56f38 movq %r14, %rdi callq 0x5c724 movq %rbx, %rdi callq 0x1af20
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueIRlEESt4pairIbPSF_EOT_b: push rbp push r15 push r14 push rbx sub rsp, 48h mov ebp, edx mov rbx, rdi mov rax, [rdi+30h] mov ecx, [rdi+38h] cmp [rdi+20h], rax setz dl test ecx, ecx setz dil and dil, dl cmp dil, 1 jz loc_5EE9C mov ecx, ecx mov r15, 8000000000000000h lea rdx, [rcx-1] add rcx, 3Eh ; '>' test rdx, rdx cmovns rcx, rdx sar rcx, 6 lea rax, [rax+rcx*8] lea rcx, [r15+3Fh] and rcx, rdx xor edi, edi cmp rcx, r15 setbe dil mov rax, [rax+rdi*8-8] bt rax, rdx jnb loc_5ED2F xorps xmm0, xmm0 lea r14, [rsp+68h+var_58] movaps xmmword ptr [r14], xmm0 mov rsi, [rsi] mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE5EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_16number_integer_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_integer_t) mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) test bpl, bpl jnz short loc_5ECDC mov rax, [rbx+10h] sub rax, [rbx+8] shr rax, 3 mov [rsp+68h+var_5C], eax mov [rsp+68h+var_5D], 5 cmp qword ptr [rbx+90h], 0 jz loc_5EEBD lea rdi, [rbx+80h] lea rsi, [rsp+68h+var_5C] lea rdx, [rsp+68h+var_5D] lea rcx, [rsp+68h+var_58] call qword ptr [rbx+98h] test al, al jz loc_5EE70 loc_5ECDC: mov rax, [rbx+10h] cmp [rbx+8], rax jz short loc_5ED39 mov rax, [rax-8] test rax, rax jz loc_5EE70 movzx ecx, byte ptr [rax] cmp ecx, 1 jz loc_5ED93 cmp ecx, 2 jnz loc_5EEC2 mov rdi, [rax+8] lea rsi, [rsp+68h+var_58] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&) mov rax, [rbx+10h] mov rax, [rax-8] mov rax, [rax+8] mov r14, [rax+8] add r14, 0FFFFFFFFFFFFFFF0h jmp loc_5EE6C loc_5ED2F: xor ebx, ebx xor r14d, r14d jmp loc_5EE8C loc_5ED39: lea r14, [rsp+68h+var_58] movaps xmm0, xmmword ptr [r14] lea r15, [rsp+68h+var_38] movaps xmmword ptr [r15], xmm0 mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov byte ptr [r14], 0 mov qword ptr [r14+8], 0 mov rdi, r15 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, [rbx] mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, r15 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov r14, [rbx] jmp loc_5EE6C loc_5ED93: mov rax, [rbx+58h] mov ecx, [rbx+60h] cmp [rbx+48h], rax setz dl test ecx, ecx setz sil and sil, dl cmp sil, 1 jz loc_5EED0 mov esi, ecx lea rcx, [rsi-1] mov rdx, rsi add rdx, 3Eh ; '>' test rcx, rcx cmovns rdx, rcx sar rdx, 6 lea rdi, [rax+rdx*8] lea rdx, [r15+3Fh] and rdx, rcx xor r8d, r8d cmp rdx, r15 setbe r8b mov edx, 1 shl rdx, cl and rdx, [rdi+r8*8-8] sub esi, 1 mov [rbx+60h], esi jnb short loc_5EE05 mov dword ptr [rbx+60h], 3Fh ; '?' add rax, 0FFFFFFFFFFFFFFF8h mov [rbx+58h], rax loc_5EE05: test rdx, rdx jz short loc_5EE70 cmp qword ptr [rbx+70h], 0 jz loc_5EEF1 lea r14, [rsp+68h+var_58] movaps xmm0, xmmword ptr [r14] lea r15, [rsp+68h+var_48] movaps xmmword ptr [r15], xmm0 mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov byte ptr [r14], 0 mov qword ptr [r14+8], 0 mov rdi, r15 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, [rbx+70h] mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, r15 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov r14, [rbx+70h] loc_5EE6C: mov bl, 1 jmp short loc_5EE75 loc_5EE70: xor ebx, ebx xor r14d, r14d loc_5EE75: lea r15, [rsp+68h+var_58] mov rdi, r15 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() loc_5EE8C: mov eax, ebx mov rdx, r14 add rsp, 48h pop rbx pop r14 pop r15 pop rbp retn loc_5EE9C: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aKeepStackEmpty; "!keep_stack.empty()" mov esi, 1C28h xor eax, eax call _ggml_abort loc_5EEBD: call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void) loc_5EEC2: lea rcx, aRefStackBackIs; "ref_stack.back()->is_array() || ref_sta"... mov esi, 1C4Bh jmp short loc_5EEDC loc_5EED0: lea rcx, aKeyKeepStackEm; "!key_keep_stack.empty()" mov esi, 1C57h loc_5EEDC: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" xor eax, eax call _ggml_abort loc_5EEF1: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aObjectElement; "object_element" mov esi, 1C60h xor eax, eax call _ggml_abort jmp short $+2 loc_5EF14: mov rbx, rax lea r14, [rsp+68h+var_58] mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rdi, rbx call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::handle_value<long &>( long long a1, _QWORD *a2, char a3) { unsigned int v4; // ebx long long v5; // rax unsigned int v6; // ecx signed long long v7; // rdx long long v8; // rcx long long v9; // rax long long v10; // rax unsigned __int8 *v11; // rax int v12; // ecx long long v13; // rax unsigned int v14; // ecx long long v15; // rsi long long v16; // rcx long long v17; // rdx long long v18; // rdx const char *v20; // rcx long long v21; // rsi long long v22; // rbx char v23; // [rsp+Bh] [rbp-5Dh] BYREF int v24; // [rsp+Ch] [rbp-5Ch] BYREF __int128 v25; // [rsp+10h] [rbp-58h] BYREF __int128 v26; // [rsp+20h] [rbp-48h] BYREF _OWORD v27[3]; // [rsp+30h] [rbp-38h] BYREF v4 = a1; v5 = *(_QWORD *)(a1 + 48); v6 = *(_DWORD *)(a1 + 56); if ( *(_QWORD *)(a1 + 32) == v5 && v6 == 0 ) { ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 7208LL, "GGML_ASSERT(%s) failed", "!keep_stack.empty()"); goto LABEL_28; } v7 = v6 - 1LL; v8 = v6 + 62LL; if ( v7 >= 0 ) v8 = v7; v9 = *(_QWORD *)(v5 + 8 * (v8 >> 6) + 8LL * ((v7 & 0x800000000000003FLL) <= 0x8000000000000000LL) - 8); if ( _bittest64(&v9, v7) ) { v25 = 0LL; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( &v25, *a2); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v25); if ( a3 ) { LABEL_8: v10 = *(_QWORD *)(a1 + 16); if ( *(_QWORD *)(a1 + 8) == v10 ) { v27[0] = v25; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v25); LOBYTE(v25) = 0; *((_QWORD *)&v25 + 1) = 0LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v27); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=( *(_QWORD *)a1, (long long)v27); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v27); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v27); goto LABEL_23; } v11 = *(unsigned __int8 **)(v10 - 8); if ( v11 ) { v12 = *v11; if ( v12 != 1 ) { if ( v12 == 2 ) { std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( *((_QWORD *)v11 + 1), (long long)&v25); LABEL_23: LOBYTE(v4) = 1; LABEL_25: nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v25); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v25); return v4; } v20 = "ref_stack.back()->is_array() || ref_stack.back()->is_object()"; v21 = 7243LL; goto LABEL_31; } v13 = *(_QWORD *)(a1 + 88); v14 = *(_DWORD *)(a1 + 96); if ( *(_QWORD *)(a1 + 72) == v13 && v14 == 0 ) { v20 = "!key_keep_stack.empty()"; v21 = 7255LL; LABEL_31: ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", v21, "GGML_ASSERT(%s) failed", v20); goto LABEL_32; } v15 = v14; v16 = v14 - 1LL; v17 = v15 + 62; if ( v16 >= 0 ) v17 = v16; v18 = *(_QWORD *)(v13 + 8 * (v17 >> 6) + 8LL * ((v16 & 0x800000000000003FLL) <= 0x8000000000000000LL) - 8) & (1LL << v16); *(_DWORD *)(a1 + 96) = v15 - 1; if ( !(_DWORD)v15 ) { *(_DWORD *)(a1 + 96) = 63; *(_QWORD *)(a1 + 88) = v13 - 8; } if ( v18 ) { if ( *(_QWORD *)(a1 + 112) ) { v26 = v25; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v25); LOBYTE(v25) = 0; *((_QWORD *)&v25 + 1) = 0LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v26); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=( *(_QWORD *)(a1 + 112), (long long)&v26); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v26); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v26); goto LABEL_23; } LABEL_32: v22 = ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 7264LL, "GGML_ASSERT(%s) failed", "object_element"); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v25); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v25); _Unwind_Resume(v22); } } LABEL_24: v4 = 0; goto LABEL_25; } v24 = (*(_QWORD *)(a1 + 16) - *(_QWORD *)(a1 + 8)) >> 3; v23 = 5; if ( *(_QWORD *)(a1 + 144) ) { if ( !(*(unsigned __int8 ( **)(long long, int *, char *, __int128 *))(a1 + 152))( a1 + 128, &v24, &v23, &v25) ) goto LABEL_24; goto LABEL_8; } LABEL_28: std::__throw_bad_function_call(); } return 0; }
handle_value<long&>: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x48 MOV EBP,EDX MOV RBX,RDI MOV RAX,qword ptr [RDI + 0x30] MOV ECX,dword ptr [RDI + 0x38] CMP qword ptr [RDI + 0x20],RAX SETZ DL TEST ECX,ECX SETZ DIL AND DIL,DL CMP DIL,0x1 JZ 0x0015ee9c MOV ECX,ECX MOV R15,-0x8000000000000000 LEA RDX,[RCX + -0x1] ADD RCX,0x3e TEST RDX,RDX CMOVNS RCX,RDX SAR RCX,0x6 LEA RAX,[RAX + RCX*0x8] LEA RCX,[R15 + 0x3f] AND RCX,RDX XOR EDI,EDI CMP RCX,R15 SETBE DIL MOV RAX,qword ptr [RAX + RDI*0x8 + -0x8] BT RAX,RDX JNC 0x0015ed2f XORPS XMM0,XMM0 LEA R14,[RSP + 0x10] MOVAPS xmmword ptr [R14],XMM0 MOV RSI,qword ptr [RSI] MOV RDI,R14 CALL 0x0015ef36 MOV RDI,R14 MOV ESI,0x1 CALL 0x00156f38 TEST BPL,BPL JNZ 0x0015ecdc MOV RAX,qword ptr [RBX + 0x10] SUB RAX,qword ptr [RBX + 0x8] SHR RAX,0x3 MOV dword ptr [RSP + 0xc],EAX MOV byte ptr [RSP + 0xb],0x5 CMP qword ptr [RBX + 0x90],0x0 JZ 0x0015eebd LEA RDI,[RBX + 0x80] LAB_0015ecbf: LEA RSI,[RSP + 0xc] LEA RDX,[RSP + 0xb] LEA RCX,[RSP + 0x10] CALL qword ptr [RBX + 0x98] TEST AL,AL JZ 0x0015ee70 LAB_0015ecdc: MOV RAX,qword ptr [RBX + 0x10] CMP qword ptr [RBX + 0x8],RAX JZ 0x0015ed39 MOV RAX,qword ptr [RAX + -0x8] TEST RAX,RAX JZ 0x0015ee70 MOVZX ECX,byte ptr [RAX] CMP ECX,0x1 JZ 0x0015ed93 CMP ECX,0x2 JNZ 0x0015eec2 MOV RDI,qword ptr [RAX + 0x8] LEA RSI,[RSP + 0x10] CALL 0x0015bd6a LAB_0015ed16: MOV RAX,qword ptr [RBX + 0x10] MOV RAX,qword ptr [RAX + -0x8] MOV RAX,qword ptr [RAX + 0x8] MOV R14,qword ptr [RAX + 0x8] ADD R14,-0x10 JMP 0x0015ee6c LAB_0015ed2f: XOR EBX,EBX XOR R14D,R14D JMP 0x0015ee8c LAB_0015ed39: LEA R14,[RSP + 0x10] MOVAPS XMM0,xmmword ptr [R14] LEA R15,[RSP + 0x30] MOVAPS xmmword ptr [R15],XMM0 MOV RDI,R14 XOR ESI,ESI CALL 0x00156f38 MOV byte ptr [R14],0x0 MOV qword ptr [R14 + 0x8],0x0 MOV RDI,R15 MOV ESI,0x1 CALL 0x00156f38 MOV RDI,qword ptr [RBX] MOV RSI,R15 CALL 0x001598d4 MOV RDI,R15 XOR ESI,ESI CALL 0x00156f38 MOV RDI,R15 CALL 0x0015c724 MOV R14,qword ptr [RBX] JMP 0x0015ee6c LAB_0015ed93: MOV RAX,qword ptr [RBX + 0x58] MOV ECX,dword ptr [RBX + 0x60] CMP qword ptr [RBX + 0x48],RAX SETZ DL TEST ECX,ECX SETZ SIL AND SIL,DL CMP SIL,0x1 JZ 0x0015eed0 MOV ESI,ECX LEA RCX,[RSI + -0x1] MOV RDX,RSI ADD RDX,0x3e TEST RCX,RCX CMOVNS RDX,RCX SAR RDX,0x6 LEA RDI,[RAX + RDX*0x8] LEA RDX,[R15 + 0x3f] AND RDX,RCX XOR R8D,R8D CMP RDX,R15 SETBE R8B MOV EDX,0x1 SHL RDX,CL AND RDX,qword ptr [RDI + R8*0x8 + -0x8] SUB ESI,0x1 MOV dword ptr [RBX + 0x60],ESI JNC 0x0015ee05 MOV dword ptr [RBX + 0x60],0x3f ADD RAX,-0x8 MOV qword ptr [RBX + 0x58],RAX LAB_0015ee05: TEST RDX,RDX JZ 0x0015ee70 CMP qword ptr [RBX + 0x70],0x0 JZ 0x0015eef1 LEA R14,[RSP + 0x10] MOVAPS XMM0,xmmword ptr [R14] LEA R15,[RSP + 0x20] MOVAPS xmmword ptr [R15],XMM0 MOV RDI,R14 XOR ESI,ESI CALL 0x00156f38 MOV byte ptr [R14],0x0 MOV qword ptr [R14 + 0x8],0x0 MOV RDI,R15 MOV ESI,0x1 CALL 0x00156f38 MOV RDI,qword ptr [RBX + 0x70] MOV RSI,R15 CALL 0x001598d4 MOV RDI,R15 XOR ESI,ESI CALL 0x00156f38 MOV RDI,R15 CALL 0x0015c724 MOV R14,qword ptr [RBX + 0x70] LAB_0015ee6c: MOV BL,0x1 JMP 0x0015ee75 LAB_0015ee70: XOR EBX,EBX XOR R14D,R14D LAB_0015ee75: LEA R15,[RSP + 0x10] MOV RDI,R15 XOR ESI,ESI CALL 0x00156f38 MOV RDI,R15 CALL 0x0015c724 LAB_0015ee8c: MOV EAX,EBX MOV RDX,R14 ADD RSP,0x48 POP RBX POP R14 POP R15 POP RBP RET LAB_0015ee9c: LEA RDI,[0x1ecbd9] LEA RDX,[0x1ecc23] LEA RCX,[0x1edb55] MOV ESI,0x1c28 XOR EAX,EAX CALL 0x0011ae30 LAB_0015eebd: CALL 0x0011a300 LAB_0015eec2: LEA RCX,[0x1edb69] MOV ESI,0x1c4b JMP 0x0015eedc LAB_0015eed0: LEA RCX,[0x1edba7] MOV ESI,0x1c57 LAB_0015eedc: LEA RDI,[0x1ecbd9] LEA RDX,[0x1ecc23] XOR EAX,EAX CALL 0x0011ae30 LAB_0015eef1: LEA RDI,[0x1ecbd9] LEA RDX,[0x1ecc23] LEA RCX,[0x1edbbf] MOV ESI,0x1c60 XOR EAX,EAX CALL 0x0011ae30
/* std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::handle_value<long&>(long&, bool) */ int1 [16] __thiscall nlohmann::json_abi_v3_11_3::detail:: json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::handle_value<long&> (json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *this,long *param_1,bool param_2) { uint uVar1; char cVar2; ulong uVar3; char *pcVar4; ulong uVar5; int8 uVar6; bool bVar7; long lVar8; int1 auVar9 [16]; int1 local_5d; int4 local_5c; ulong local_58; int8 uStack_50; ulong local_48; int8 uStack_40; ulong local_38; int8 uStack_30; uVar1 = *(uint *)(this + 0x38); if (uVar1 == 0 && *(long *)(this + 0x20) == *(long *)(this + 0x30)) { /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x1c28, "GGML_ASSERT(%s) failed","!keep_stack.empty()"); } uVar5 = (ulong)uVar1 - 1; uVar3 = (ulong)uVar1 + 0x3e; if (-1 < (long)uVar5) { uVar3 = uVar5; } if ((*(ulong *)(*(long *)(this + 0x30) + ((long)uVar3 >> 6) * 8 + -8 + (ulong)((uVar5 & 0x800000000000003f) < 0x8000000000000001) * 8) >> (uVar5 & 0x3f) & 1) == 0) { uVar5 = 0; lVar8 = 0; goto LAB_0015ee8c; } local_58 = 0; uStack_50 = 0; external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>:: construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (&local_58,*param_1); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(&local_58,0)); if (param_2) { LAB_0015ecdc: if (*(long *)(this + 8) == *(long *)(this + 0x10)) { local_38 = local_58; uStack_30 = uStack_50; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(&local_58,0)); local_58 = local_58 & 0xffffffffffffff00; uStack_50 = 0; bVar7 = SUB81((data *)&local_38,0); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar7); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> **)this,(data *)&local_38); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar7); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)&local_38); lVar8 = *(long *)this; } else { pcVar4 = *(char **)(*(long *)(this + 0x10) + -8); if (pcVar4 == (char *)0x0) goto LAB_0015ee70; if (*pcVar4 == '\x01') { lVar8 = *(long *)(this + 0x58); uVar1 = *(uint *)(this + 0x60); if (uVar1 == 0 && *(long *)(this + 0x48) == lVar8) { pcVar4 = "!key_keep_stack.empty()"; uVar6 = 0x1c57; goto LAB_0015eedc; } uVar5 = (ulong)uVar1 - 1; uVar3 = (ulong)uVar1 + 0x3e; if (-1 < (long)uVar5) { uVar3 = uVar5; } uVar3 = *(ulong *)(lVar8 + ((long)uVar3 >> 6) * 8 + -8 + (ulong)((uVar5 & 0x800000000000003f) < 0x8000000000000001) * 8); *(uint *)(this + 0x60) = uVar1 - 1; if (uVar1 == 0) { *(int4 *)(this + 0x60) = 0x3f; *(long *)(this + 0x58) = lVar8 + -8; } if ((1L << ((byte)uVar5 & 0x3f) & uVar3) == 0) goto LAB_0015ee70; if (*(long *)(this + 0x70) == 0) { /* try { // try from 0015eef1 to 0015ef11 has its CatchHandler @ 0015ef12 */ /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 0x1c60,"GGML_ASSERT(%s) failed","object_element"); } local_48 = local_58; uStack_40 = uStack_50; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(&local_58,0)); local_58 = local_58 & 0xffffffffffffff00; uStack_50 = 0; bVar7 = SUB81((data *)&local_48,0); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar7); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> **)(this + 0x70),(data *)&local_48); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar7); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)&local_48); lVar8 = *(long *)(this + 0x70); } else { if (*pcVar4 != '\x02') { pcVar4 = "ref_stack.back()->is_array() || ref_stack.back()->is_object()"; uVar6 = 0x1c4b; LAB_0015eedc: /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", uVar6,"GGML_ASSERT(%s) failed",pcVar4); } std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> :: emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)(pcVar4 + 8),(basic_json *)&local_58); lVar8 = *(long *)(*(long *)(*(long *)(*(long *)(this + 0x10) + -8) + 8) + 8) + -0x10; } } uVar5 = CONCAT71((int7)((ulong)this >> 8),1); } else { local_5c = (int4)((ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3); local_5d = 5; if (*(long *)(this + 0x90) == 0) { /* WARNING: Subroutine does not return */ /* try { // try from 0015eebd to 0015eef0 has its CatchHandler @ 0015ef14 */ std::__throw_bad_function_call(); } /* try { // try from 0015ecbf to 0015ed15 has its CatchHandler @ 0015ef14 */ cVar2 = (**(code **)(this + 0x98))(this + 0x80,&local_5c,&local_5d,&local_58); if (cVar2 != '\0') goto LAB_0015ecdc; LAB_0015ee70: uVar5 = 0; lVar8 = 0; } basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81((data *)&local_58,0)); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)&local_58); LAB_0015ee8c: auVar9._0_8_ = uVar5 & 0xffffffff; auVar9._8_8_ = lVar8; return auVar9; }
52,848
std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<long&>(long&, bool)
monkey531[P]llama/common/json.hpp
std::pair<bool, BasicJsonType*> handle_value(Value&& v, const bool skip_callback = false) { JSON_ASSERT(!keep_stack.empty()); // do not handle this value if we know it would be added to a discarded // container if (!keep_stack.back()) { return {false, nullptr}; } // create value auto value = BasicJsonType(std::forward<Value>(v)); // check callback const bool keep = skip_callback || callback(static_cast<int>(ref_stack.size()), parse_event_t::value, value); // do not handle this value if we just learnt it shall be discarded if (!keep) { return {false, nullptr}; } if (ref_stack.empty()) { root = std::move(value); return {true, & root}; } // skip this value if we already decided to skip the parent // (https://github.com/nlohmann/json/issues/971#issuecomment-413678360) if (!ref_stack.back()) { return {false, nullptr}; } // we now only expect arrays and objects JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object()); // array if (ref_stack.back()->is_array()) { ref_stack.back()->m_data.m_value.array->emplace_back(std::move(value)); return {true, & (ref_stack.back()->m_data.m_value.array->back())}; } // object JSON_ASSERT(ref_stack.back()->is_object()); // check if we should store an element for the current key JSON_ASSERT(!key_keep_stack.empty()); const bool store_element = key_keep_stack.back(); key_keep_stack.pop_back(); if (!store_element) { return {false, nullptr}; } JSON_ASSERT(object_element); *object_element = std::move(value); return {true, object_element}; }
O2
cpp
std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<long&>(long&, bool): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x38, %rsp movl %edx, %ebp movq %rsi, %r14 movq %rdi, %rbx movq 0x20(%rdi), %rax cmpq 0x30(%rdi), %rax jne 0x43098 cmpl $0x0, 0x38(%rbx) je 0x431f0 leaq 0x20(%rbx), %rdi callq 0x40a7c testq %rdx, (%rax) je 0x43133 leaq 0x8(%rsp), %rdi movq %r14, %rsi callq 0x4327a testb %bpl, %bpl jne 0x430e4 leaq 0x80(%rbx), %rdi movq 0x10(%rbx), %rsi subq 0x8(%rbx), %rsi shrq $0x3, %rsi pushq $0x5 popq %rdx leaq 0x8(%rsp), %rcx callq 0x40aaa testb %al, %al je 0x431d1 movq 0x10(%rbx), %rax cmpq %rax, 0x8(%rbx) je 0x4313d movq -0x8(%rax), %rax testq %rax, %rax je 0x431d1 movzbl (%rax), %ecx cmpl $0x1, %ecx je 0x43167 cmpl $0x2, %ecx jne 0x43211 movq 0x8(%rax), %rdi leaq 0x8(%rsp), %rsi callq 0x40ee0 movq 0x10(%rbx), %rax movq -0x8(%rax), %rax movq 0x8(%rax), %rax movq 0x8(%rax), %r14 addq $-0x10, %r14 jmp 0x431cd xorl %ebx, %ebx xorl %r14d, %r14d jmp 0x431e0 leaq 0x28(%rsp), %r14 leaq 0x8(%rsp), %rsi movq %r14, %rdi callq 0x40eac movq (%rbx), %rdi movq %r14, %rsi callq 0x3f188 movq %r14, %rdi callq 0x3c602 movq (%rbx), %r14 jmp 0x431cd movq 0x48(%rbx), %rax cmpq 0x58(%rbx), %rax jne 0x4317b cmpl $0x0, 0x60(%rbx) je 0x4321f leaq 0x48(%rbx), %rdi callq 0x40a7c movq %rdx, %r14 leaq 0x58(%rbx), %rdi movq (%rax), %r15 callq 0x400e2 testq %r14, %r15 je 0x431d1 cmpq $0x0, 0x70(%rbx) je 0x43240 leaq 0x18(%rsp), %r14 leaq 0x8(%rsp), %rsi movq %r14, %rdi callq 0x40eac movq 0x70(%rbx), %rdi movq %r14, %rsi callq 0x3f188 movq %r14, %rdi callq 0x3c602 movq 0x70(%rbx), %r14 movb $0x1, %bl jmp 0x431d6 xorl %ebx, %ebx xorl %r14d, %r14d leaq 0x8(%rsp), %rdi callq 0x3c602 movl %ebx, %eax movq %r14, %rdx addq $0x38, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq leaq 0x6b9e5(%rip), %rdi # 0xaebdc leaq 0x6ba28(%rip), %rdx # 0xaec26 leaq 0x6c962(%rip), %rcx # 0xafb67 movl $0x1c28, %esi # imm = 0x1C28 xorl %eax, %eax callq 0x23e40 leaq 0x6c963(%rip), %rcx # 0xafb7b movl $0x1c4b, %esi # imm = 0x1C4B jmp 0x4322b leaq 0x6c993(%rip), %rcx # 0xafbb9 movl $0x1c57, %esi # imm = 0x1C57 leaq 0x6b9aa(%rip), %rdi # 0xaebdc leaq 0x6b9ed(%rip), %rdx # 0xaec26 xorl %eax, %eax callq 0x23e40 leaq 0x6b995(%rip), %rdi # 0xaebdc leaq 0x6b9d8(%rip), %rdx # 0xaec26 leaq 0x6c97c(%rip), %rcx # 0xafbd1 movl $0x1c60, %esi # imm = 0x1C60 xorl %eax, %eax callq 0x23e40 jmp 0x43265 jmp 0x43265 movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x3c602 movq %rbx, %rdi callq 0x23f10
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueIRbEESt4pairIbPSF_EOT_b: push rbp push r15 push r14 push rbx sub rsp, 38h mov ebp, edx mov r14, rsi mov rbx, rdi mov rax, [rdi+20h] cmp rax, [rdi+30h] jnz short loc_43098 cmp dword ptr [rbx+38h], 0 jz loc_431F0 loc_43098: lea rdi, [rbx+20h] call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void) test [rax], rdx jz loc_43133 lea rdi, [rsp+58h+var_50] mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRbbTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_ test bpl, bpl jnz short loc_430E4 lea rdi, [rbx+80h] mov rsi, [rbx+10h] sub rsi, [rbx+8] shr rsi, 3 push 5 pop rdx lea rcx, [rsp+58h+var_50] call _ZNKSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEclEiS3_SH_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::operator()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &) test al, al jz loc_431D1 loc_430E4: mov rax, [rbx+10h] cmp [rbx+8], rax jz short loc_4313D mov rax, [rax-8] test rax, rax jz loc_431D1 movzx ecx, byte ptr [rax] cmp ecx, 1 jz short loc_43167 cmp ecx, 2 jnz loc_43211 mov rdi, [rax+8] lea rsi, [rsp+58h+var_50] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&) mov rax, [rbx+10h] mov rax, [rax-8] mov rax, [rax+8] mov r14, [rax+8] add r14, 0FFFFFFFFFFFFFFF0h jmp loc_431CD loc_43133: xor ebx, ebx xor r14d, r14d jmp loc_431E0 loc_4313D: lea r14, [rsp+58h+var_30] lea rsi, [rsp+58h+var_50] mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&) mov rdi, [rbx] mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() mov r14, [rbx] jmp short loc_431CD loc_43167: mov rax, [rbx+48h] cmp rax, [rbx+58h] jnz short loc_4317B cmp dword ptr [rbx+60h], 0 jz loc_4321F loc_4317B: lea rdi, [rbx+48h] call _ZNSt6vectorIbSaIbEE4backEv; std::vector<bool>::back(void) mov r14, rdx lea rdi, [rbx+58h]; this mov r15, [rax] call _ZNSt18_Bit_iterator_base12_M_bump_downEv; std::_Bit_iterator_base::_M_bump_down(void) test r15, r14 jz short loc_431D1 cmp qword ptr [rbx+70h], 0 jz loc_43240 lea r14, [rsp+58h+var_40] lea rsi, [rsp+58h+var_50] mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&) mov rdi, [rbx+70h] mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() mov r14, [rbx+70h] loc_431CD: mov bl, 1 jmp short loc_431D6 loc_431D1: xor ebx, ebx xor r14d, r14d loc_431D6: lea rdi, [rsp+58h+var_50] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() loc_431E0: mov eax, ebx mov rdx, r14 add rsp, 38h pop rbx pop r14 pop r15 pop rbp retn loc_431F0: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aKeepStackEmpty; "!keep_stack.empty()" mov esi, 1C28h xor eax, eax call _ggml_abort loc_43211: lea rcx, aRefStackBackIs; "ref_stack.back()->is_array() || ref_sta"... mov esi, 1C4Bh jmp short loc_4322B loc_4321F: lea rcx, aKeyKeepStackEm; "!key_keep_stack.empty()" mov esi, 1C57h loc_4322B: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" xor eax, eax call _ggml_abort loc_43240: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aObjectElement; "object_element" mov esi, 1C60h xor eax, eax call _ggml_abort jmp short loc_43265 jmp short $+2 loc_43265: mov rbx, rax lea rdi, [rsp+58h+var_50] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() mov rdi, rbx call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::handle_value<bool &>( long long a1, long long a2, char a3) { unsigned int v4; // ebx _QWORD *v5; // rax long long v6; // rdx long long v7; // rax unsigned __int8 *v8; // rax int v9; // ecx long long *v10; // rax long long v11; // rdx long long v12; // r14 long long v13; // r15 const char *v15; // rcx long long v16; // rsi long long v17; // rbx _BYTE v18[16]; // [rsp+8h] [rbp-50h] BYREF char v19[16]; // [rsp+18h] [rbp-40h] BYREF char v20[48]; // [rsp+28h] [rbp-30h] BYREF v4 = a1; if ( *(_QWORD *)(a1 + 32) == *(_QWORD *)(a1 + 48) && !*(_DWORD *)(a1 + 56) ) { ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 7208LL, "GGML_ASSERT(%s) failed", "!keep_stack.empty()"); LABEL_23: v15 = "ref_stack.back()->is_array() || ref_stack.back()->is_object()"; v16 = 7243LL; LABEL_25: ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", v16, "GGML_ASSERT(%s) failed", v15); goto LABEL_26; } v5 = (_QWORD *)std::vector<bool>::back(a1 + 32); if ( (v6 & *v5) != 0 ) { ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRbbTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_( v18, a2); if ( a3 || (unsigned __int8)std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::operator()( a1 + 128, (*(_QWORD *)(a1 + 16) - *(_QWORD *)(a1 + 8)) >> 3, 5) ) { v7 = *(_QWORD *)(a1 + 16); if ( *(_QWORD *)(a1 + 8) == v7 ) { nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( v20, (long long)v18); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=( *(_QWORD *)a1, (long long)v20); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v20); goto LABEL_18; } v8 = *(unsigned __int8 **)(v7 - 8); if ( v8 ) { v9 = *v8; if ( v9 != 1 ) { if ( v9 == 2 ) { std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( *((_QWORD *)v8 + 1), (long long)v18); LABEL_18: LOBYTE(v4) = 1; LABEL_20: nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v18); return v4; } goto LABEL_23; } if ( *(_QWORD *)(a1 + 72) == *(_QWORD *)(a1 + 88) && !*(_DWORD *)(a1 + 96) ) { v15 = "!key_keep_stack.empty()"; v16 = 7255LL; goto LABEL_25; } v10 = (long long *)std::vector<bool>::back(a1 + 72); v12 = v11; v13 = *v10; std::_Bit_iterator_base::_M_bump_down((std::_Bit_iterator_base *)(a1 + 88)); if ( (v12 & v13) != 0 ) { if ( *(_QWORD *)(a1 + 112) ) { nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( v19, (long long)v18); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=( *(_QWORD *)(a1 + 112), (long long)v19); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v19); goto LABEL_18; } LABEL_26: v17 = ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 7264LL, "GGML_ASSERT(%s) failed", "object_element"); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v18); _Unwind_Resume(v17); } } } v4 = 0; goto LABEL_20; } return 0; }
handle_value<bool&>: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x38 MOV EBP,EDX MOV R14,RSI MOV RBX,RDI MOV RAX,qword ptr [RDI + 0x20] CMP RAX,qword ptr [RDI + 0x30] JNZ 0x00143098 CMP dword ptr [RBX + 0x38],0x0 JZ 0x001431f0 LAB_00143098: LEA RDI,[RBX + 0x20] CALL 0x00140a7c TEST qword ptr [RAX],RDX JZ 0x00143133 LEA RDI,[RSP + 0x8] MOV RSI,R14 CALL 0x0014327a TEST BPL,BPL JNZ 0x001430e4 LEA RDI,[RBX + 0x80] MOV RSI,qword ptr [RBX + 0x10] SUB RSI,qword ptr [RBX + 0x8] SHR RSI,0x3 LAB_001430cf: PUSH 0x5 POP RDX LEA RCX,[RSP + 0x8] CALL 0x00140aaa TEST AL,AL JZ 0x001431d1 LAB_001430e4: MOV RAX,qword ptr [RBX + 0x10] CMP qword ptr [RBX + 0x8],RAX JZ 0x0014313d MOV RAX,qword ptr [RAX + -0x8] TEST RAX,RAX JZ 0x001431d1 MOVZX ECX,byte ptr [RAX] CMP ECX,0x1 JZ 0x00143167 CMP ECX,0x2 JNZ 0x00143211 MOV RDI,qword ptr [RAX + 0x8] LEA RSI,[RSP + 0x8] CALL 0x00140ee0 MOV RAX,qword ptr [RBX + 0x10] MOV RAX,qword ptr [RAX + -0x8] MOV RAX,qword ptr [RAX + 0x8] MOV R14,qword ptr [RAX + 0x8] ADD R14,-0x10 JMP 0x001431cd LAB_00143133: XOR EBX,EBX XOR R14D,R14D JMP 0x001431e0 LAB_0014313d: LEA R14,[RSP + 0x28] LEA RSI,[RSP + 0x8] MOV RDI,R14 CALL 0x00140eac MOV RDI,qword ptr [RBX] MOV RSI,R14 CALL 0x0013f188 MOV RDI,R14 CALL 0x0013c602 MOV R14,qword ptr [RBX] JMP 0x001431cd LAB_00143167: MOV RAX,qword ptr [RBX + 0x48] CMP RAX,qword ptr [RBX + 0x58] JNZ 0x0014317b CMP dword ptr [RBX + 0x60],0x0 JZ 0x0014321f LAB_0014317b: LEA RDI,[RBX + 0x48] CALL 0x00140a7c LAB_00143184: MOV R14,RDX LEA RDI,[RBX + 0x58] MOV R15,qword ptr [RAX] CALL 0x001400e2 TEST R15,R14 JZ 0x001431d1 CMP qword ptr [RBX + 0x70],0x0 JZ 0x00143240 LEA R14,[RSP + 0x18] LEA RSI,[RSP + 0x8] MOV RDI,R14 CALL 0x00140eac MOV RDI,qword ptr [RBX + 0x70] MOV RSI,R14 CALL 0x0013f188 MOV RDI,R14 CALL 0x0013c602 MOV R14,qword ptr [RBX + 0x70] LAB_001431cd: MOV BL,0x1 JMP 0x001431d6 LAB_001431d1: XOR EBX,EBX XOR R14D,R14D LAB_001431d6: LEA RDI,[RSP + 0x8] CALL 0x0013c602 LAB_001431e0: MOV EAX,EBX MOV RDX,R14 ADD RSP,0x38 POP RBX POP R14 POP R15 POP RBP RET LAB_001431f0: LEA RDI,[0x1aebdc] LEA RDX,[0x1aec26] LEA RCX,[0x1afb67] MOV ESI,0x1c28 XOR EAX,EAX CALL 0x00123e40 LAB_00143211: LEA RCX,[0x1afb7b] MOV ESI,0x1c4b JMP 0x0014322b LAB_0014321f: LEA RCX,[0x1afbb9] MOV ESI,0x1c57 LAB_0014322b: LEA RDI,[0x1aebdc] LEA RDX,[0x1aec26] XOR EAX,EAX CALL 0x00123e40 LAB_00143240: LEA RDI,[0x1aebdc] LEA RDX,[0x1aec26] LEA RCX,[0x1afbd1] MOV ESI,0x1c60 XOR EAX,EAX CALL 0x00123e40
/* std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::handle_value<bool&>(bool&, bool) */ int1 [16] __thiscall nlohmann::json_abi_v3_11_3::detail:: json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::handle_value<bool&> (json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *this,bool *param_1,bool param_2) { char cVar1; char *pcVar2; ulong uVar3; int8 uVar4; long lVar5; int1 auVar6 [16]; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_50 [16]; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_40 [16]; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_30 [16]; if ((*(long *)(this + 0x20) == *(long *)(this + 0x30)) && (*(int *)(this + 0x38) == 0)) { /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x1c28, "GGML_ASSERT(%s) failed","!keep_stack.empty()"); } auVar6 = std::vector<bool,std::allocator<bool>>::back ((vector<bool,std::allocator<bool>> *)(this + 0x20)); if ((*auVar6._0_8_ & auVar6._8_8_) == 0) { uVar3 = 0; lVar5 = 0; goto LAB_001431e0; } _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRbbTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_ (local_50,param_1); if (param_2) { LAB_001430e4: if (*(long *)(this + 8) == *(long *)(this + 0x10)) { basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json(local_30,local_50); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> **)this,local_30); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::~basic_json(local_30); lVar5 = *(long *)this; } else { pcVar2 = *(char **)(*(long *)(this + 0x10) + -8); if (pcVar2 == (char *)0x0) goto LAB_001431d1; if (*pcVar2 == '\x01') { if ((*(long *)(this + 0x48) == *(long *)(this + 0x58)) && (*(int *)(this + 0x60) == 0)) { pcVar2 = "!key_keep_stack.empty()"; uVar4 = 0x1c57; goto LAB_0014322b; } /* try { // try from 0014317b to 00143183 has its CatchHandler @ 00143263 */ auVar6 = std::vector<bool,std::allocator<bool>>::back ((vector<bool,std::allocator<bool>> *)(this + 0x48)); uVar3 = *auVar6._0_8_; std::_Bit_iterator_base::_M_bump_down((_Bit_iterator_base *)(this + 0x58)); if ((uVar3 & auVar6._8_8_) == 0) goto LAB_001431d1; if (*(long *)(this + 0x70) == 0) { /* try { // try from 00143240 to 00143260 has its CatchHandler @ 00143261 */ /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 0x1c60,"GGML_ASSERT(%s) failed","object_element"); } basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json(local_40,local_50); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> **)(this + 0x70),local_40); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::~basic_json(local_40); lVar5 = *(long *)(this + 0x70); } else { if (*pcVar2 != '\x02') { pcVar2 = "ref_stack.back()->is_array() || ref_stack.back()->is_object()"; uVar4 = 0x1c4b; LAB_0014322b: /* try { // try from 0014322b to 0014323f has its CatchHandler @ 00143265 */ /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", uVar4,"GGML_ASSERT(%s) failed",pcVar2); } std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> :: emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)(pcVar2 + 8),local_50); lVar5 = *(long *)(*(long *)(*(long *)(*(long *)(this + 0x10) + -8) + 8) + 8) + -0x10; } } uVar3 = CONCAT71((int7)((ulong)this >> 8),1); } else { /* try { // try from 001430cf to 00143119 has its CatchHandler @ 00143265 */ cVar1 = std:: function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)> ::operator()(this + 0x80,(ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3,5, local_50); if (cVar1 != '\0') goto LAB_001430e4; LAB_001431d1: uVar3 = 0; lVar5 = 0; } basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::~basic_json(local_50); LAB_001431e0: auVar6._0_8_ = uVar3 & 0xffffffff; auVar6._8_8_ = lVar5; return auVar6; }
52,849
std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<long&>(long&, bool)
monkey531[P]llama/common/json.hpp
std::pair<bool, BasicJsonType*> handle_value(Value&& v, const bool skip_callback = false) { JSON_ASSERT(!keep_stack.empty()); // do not handle this value if we know it would be added to a discarded // container if (!keep_stack.back()) { return {false, nullptr}; } // create value auto value = BasicJsonType(std::forward<Value>(v)); // check callback const bool keep = skip_callback || callback(static_cast<int>(ref_stack.size()), parse_event_t::value, value); // do not handle this value if we just learnt it shall be discarded if (!keep) { return {false, nullptr}; } if (ref_stack.empty()) { root = std::move(value); return {true, & root}; } // skip this value if we already decided to skip the parent // (https://github.com/nlohmann/json/issues/971#issuecomment-413678360) if (!ref_stack.back()) { return {false, nullptr}; } // we now only expect arrays and objects JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object()); // array if (ref_stack.back()->is_array()) { ref_stack.back()->m_data.m_value.array->emplace_back(std::move(value)); return {true, & (ref_stack.back()->m_data.m_value.array->back())}; } // object JSON_ASSERT(ref_stack.back()->is_object()); // check if we should store an element for the current key JSON_ASSERT(!key_keep_stack.empty()); const bool store_element = key_keep_stack.back(); key_keep_stack.pop_back(); if (!store_element) { return {false, nullptr}; } JSON_ASSERT(object_element); *object_element = std::move(value); return {true, object_element}; }
O3
cpp
std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::handle_value<long&>(long&, bool): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x48, %rsp movl %edx, %ebp movq %rdi, %rbx movq 0x30(%rdi), %rax movl 0x38(%rdi), %ecx cmpq %rax, 0x20(%rdi) sete %dl testl %ecx, %ecx sete %dil andb %dl, %dil cmpb $0x1, %dil je 0x5fcf6 movl %ecx, %ecx movabsq $-0x8000000000000000, %r15 # imm = 0x8000000000000000 leaq -0x1(%rcx), %rdx addq $0x3e, %rcx testq %rdx, %rdx cmovnsq %rdx, %rcx sarq $0x6, %rcx leaq (%rax,%rcx,8), %rax leaq 0x3f(%r15), %rcx andq %rdx, %rcx xorl %edi, %edi cmpq %r15, %rcx setbe %dil movq -0x8(%rax,%rdi,8), %rax btq %rdx, %rax jae 0x5fb89 xorps %xmm0, %xmm0 leaq 0x10(%rsp), %r14 movaps %xmm0, (%r14) movq (%rsi), %rsi movq %r14, %rdi callq 0x5fd90 movq %r14, %rdi movl $0x1, %esi callq 0x579d6 testb %bpl, %bpl jne 0x5fb36 movq 0x10(%rbx), %rax subq 0x8(%rbx), %rax shrq $0x3, %rax movl %eax, 0xc(%rsp) movb $0x5, 0xb(%rsp) cmpq $0x0, 0x90(%rbx) je 0x5fd17 leaq 0x80(%rbx), %rdi leaq 0xc(%rsp), %rsi leaq 0xb(%rsp), %rdx leaq 0x10(%rsp), %rcx callq *0x98(%rbx) testb %al, %al je 0x5fcca movq 0x10(%rbx), %rax cmpq %rax, 0x8(%rbx) je 0x5fb93 movq -0x8(%rax), %rax testq %rax, %rax je 0x5fcca movzbl (%rax), %ecx cmpl $0x1, %ecx je 0x5fbed cmpl $0x2, %ecx jne 0x5fd1c movq 0x8(%rax), %rdi leaq 0x10(%rsp), %rsi callq 0x5c598 movq 0x10(%rbx), %rax movq -0x8(%rax), %rax movq 0x8(%rax), %rax movq 0x8(%rax), %r14 addq $-0x10, %r14 jmp 0x5fcc6 xorl %ebx, %ebx xorl %r14d, %r14d jmp 0x5fce6 leaq 0x10(%rsp), %r14 movaps (%r14), %xmm0 leaq 0x30(%rsp), %r15 movaps %xmm0, (%r15) movq %r14, %rdi xorl %esi, %esi callq 0x579d6 movb $0x0, (%r14) movq $0x0, 0x8(%r14) movq %r15, %rdi movl $0x1, %esi callq 0x579d6 movq (%rbx), %rdi movq %r15, %rsi callq 0x5a178 movq %r15, %rdi xorl %esi, %esi callq 0x579d6 movq %r15, %rdi callq 0x5cec4 movq (%rbx), %r14 jmp 0x5fcc6 movq 0x58(%rbx), %rax movl 0x60(%rbx), %ecx cmpq %rax, 0x48(%rbx) sete %dl testl %ecx, %ecx sete %sil andb %dl, %sil cmpb $0x1, %sil je 0x5fd2a movl %ecx, %esi leaq -0x1(%rsi), %rcx movq %rsi, %rdx addq $0x3e, %rdx testq %rcx, %rcx cmovnsq %rcx, %rdx sarq $0x6, %rdx leaq (%rax,%rdx,8), %rdi leaq 0x3f(%r15), %rdx andq %rcx, %rdx xorl %r8d, %r8d cmpq %r15, %rdx setbe %r8b movl $0x1, %edx shlq %cl, %rdx andq -0x8(%rdi,%r8,8), %rdx subl $0x1, %esi movl %esi, 0x60(%rbx) jae 0x5fc5f movl $0x3f, 0x60(%rbx) addq $-0x8, %rax movq %rax, 0x58(%rbx) testq %rdx, %rdx je 0x5fcca cmpq $0x0, 0x70(%rbx) je 0x5fd4b leaq 0x10(%rsp), %r14 movaps (%r14), %xmm0 leaq 0x20(%rsp), %r15 movaps %xmm0, (%r15) movq %r14, %rdi xorl %esi, %esi callq 0x579d6 movb $0x0, (%r14) movq $0x0, 0x8(%r14) movq %r15, %rdi movl $0x1, %esi callq 0x579d6 movq 0x70(%rbx), %rdi movq %r15, %rsi callq 0x5a178 movq %r15, %rdi xorl %esi, %esi callq 0x579d6 movq %r15, %rdi callq 0x5cec4 movq 0x70(%rbx), %r14 movb $0x1, %bl jmp 0x5fccf xorl %ebx, %ebx xorl %r14d, %r14d leaq 0x10(%rsp), %r15 movq %r15, %rdi xorl %esi, %esi callq 0x579d6 movq %r15, %rdi callq 0x5cec4 movl %ebx, %eax movq %r14, %rdx addq $0x48, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq leaq 0x8aedc(%rip), %rdi # 0xeabd9 leaq 0x8af1f(%rip), %rdx # 0xeac23 leaq 0x8be4a(%rip), %rcx # 0xebb55 movl $0x1c28, %esi # imm = 0x1C28 xorl %eax, %eax callq 0x1ae30 callq 0x1a300 leaq 0x8be46(%rip), %rcx # 0xebb69 movl $0x1c4b, %esi # imm = 0x1C4B jmp 0x5fd36 leaq 0x8be76(%rip), %rcx # 0xebba7 movl $0x1c57, %esi # imm = 0x1C57 leaq 0x8ae9c(%rip), %rdi # 0xeabd9 leaq 0x8aedf(%rip), %rdx # 0xeac23 xorl %eax, %eax callq 0x1ae30 leaq 0x8ae87(%rip), %rdi # 0xeabd9 leaq 0x8aeca(%rip), %rdx # 0xeac23 leaq 0x8be5f(%rip), %rcx # 0xebbbf movl $0x1c60, %esi # imm = 0x1C60 xorl %eax, %eax callq 0x1ae30 jmp 0x5fd6e movq %rax, %rbx leaq 0x10(%rsp), %r14 movq %r14, %rdi xorl %esi, %esi callq 0x579d6 movq %r14, %rdi callq 0x5cec4 movq %rbx, %rdi callq 0x1af20
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueIRmEESt4pairIbPSF_EOT_b: push rbp push r15 push r14 push rbx sub rsp, 48h mov ebp, edx mov rbx, rdi mov rax, [rdi+30h] mov ecx, [rdi+38h] cmp [rdi+20h], rax setz dl test ecx, ecx setz dil and dil, dl cmp dil, 1 jz loc_5FCF6 mov ecx, ecx mov r15, 8000000000000000h lea rdx, [rcx-1] add rcx, 3Eh ; '>' test rdx, rdx cmovns rcx, rdx sar rcx, 6 lea rax, [rax+rcx*8] lea rcx, [r15+3Fh] and rcx, rdx xor edi, edi cmp rcx, r15 setbe dil mov rax, [rax+rdi*8-8] bt rax, rdx jnb loc_5FB89 xorps xmm0, xmm0 lea r14, [rsp+68h+var_58] movaps xmmword ptr [r14], xmm0 mov rsi, [rsi] mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE6EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_17number_unsigned_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)6>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_unsigned_t) mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) test bpl, bpl jnz short loc_5FB36 mov rax, [rbx+10h] sub rax, [rbx+8] shr rax, 3 mov [rsp+68h+var_5C], eax mov [rsp+68h+var_5D], 5 cmp qword ptr [rbx+90h], 0 jz loc_5FD17 lea rdi, [rbx+80h] lea rsi, [rsp+68h+var_5C] lea rdx, [rsp+68h+var_5D] lea rcx, [rsp+68h+var_58] call qword ptr [rbx+98h] test al, al jz loc_5FCCA loc_5FB36: mov rax, [rbx+10h] cmp [rbx+8], rax jz short loc_5FB93 mov rax, [rax-8] test rax, rax jz loc_5FCCA movzx ecx, byte ptr [rax] cmp ecx, 1 jz loc_5FBED cmp ecx, 2 jnz loc_5FD1C mov rdi, [rax+8] lea rsi, [rsp+68h+var_58] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&) mov rax, [rbx+10h] mov rax, [rax-8] mov rax, [rax+8] mov r14, [rax+8] add r14, 0FFFFFFFFFFFFFFF0h jmp loc_5FCC6 loc_5FB89: xor ebx, ebx xor r14d, r14d jmp loc_5FCE6 loc_5FB93: lea r14, [rsp+68h+var_58] movaps xmm0, xmmword ptr [r14] lea r15, [rsp+68h+var_38] movaps xmmword ptr [r15], xmm0 mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov byte ptr [r14], 0 mov qword ptr [r14+8], 0 mov rdi, r15 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, [rbx] mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, r15 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov r14, [rbx] jmp loc_5FCC6 loc_5FBED: mov rax, [rbx+58h] mov ecx, [rbx+60h] cmp [rbx+48h], rax setz dl test ecx, ecx setz sil and sil, dl cmp sil, 1 jz loc_5FD2A mov esi, ecx lea rcx, [rsi-1] mov rdx, rsi add rdx, 3Eh ; '>' test rcx, rcx cmovns rdx, rcx sar rdx, 6 lea rdi, [rax+rdx*8] lea rdx, [r15+3Fh] and rdx, rcx xor r8d, r8d cmp rdx, r15 setbe r8b mov edx, 1 shl rdx, cl and rdx, [rdi+r8*8-8] sub esi, 1 mov [rbx+60h], esi jnb short loc_5FC5F mov dword ptr [rbx+60h], 3Fh ; '?' add rax, 0FFFFFFFFFFFFFFF8h mov [rbx+58h], rax loc_5FC5F: test rdx, rdx jz short loc_5FCCA cmp qword ptr [rbx+70h], 0 jz loc_5FD4B lea r14, [rsp+68h+var_58] movaps xmm0, xmmword ptr [r14] lea r15, [rsp+68h+var_48] movaps xmmword ptr [r15], xmm0 mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov byte ptr [r14], 0 mov qword ptr [r14+8], 0 mov rdi, r15 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, [rbx+70h] mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, r15 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov r14, [rbx+70h] loc_5FCC6: mov bl, 1 jmp short loc_5FCCF loc_5FCCA: xor ebx, ebx xor r14d, r14d loc_5FCCF: lea r15, [rsp+68h+var_58] mov rdi, r15 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() loc_5FCE6: mov eax, ebx mov rdx, r14 add rsp, 48h pop rbx pop r14 pop r15 pop rbp retn loc_5FCF6: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aKeepStackEmpty; "!keep_stack.empty()" mov esi, 1C28h xor eax, eax call _ggml_abort loc_5FD17: call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void) loc_5FD1C: lea rcx, aRefStackBackIs; "ref_stack.back()->is_array() || ref_sta"... mov esi, 1C4Bh jmp short loc_5FD36 loc_5FD2A: lea rcx, aKeyKeepStackEm; "!key_keep_stack.empty()" mov esi, 1C57h loc_5FD36: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" xor eax, eax call _ggml_abort loc_5FD4B: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aObjectElement; "object_element" mov esi, 1C60h xor eax, eax call _ggml_abort jmp short $+2 loc_5FD6E: mov rbx, rax lea r14, [rsp+68h+var_58] mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rdi, rbx call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::handle_value<unsigned long &>( long long a1, _QWORD *a2, char a3) { unsigned int v4; // ebx long long v5; // rax unsigned int v6; // ecx signed long long v7; // rdx long long v8; // rcx long long v9; // rax long long v10; // rax unsigned __int8 *v11; // rax int v12; // ecx long long v13; // rax unsigned int v14; // ecx long long v15; // rsi long long v16; // rcx long long v17; // rdx long long v18; // rdx const char *v20; // rcx long long v21; // rsi long long v22; // rbx char v23; // [rsp+Bh] [rbp-5Dh] BYREF int v24; // [rsp+Ch] [rbp-5Ch] BYREF __int128 v25; // [rsp+10h] [rbp-58h] BYREF __int128 v26; // [rsp+20h] [rbp-48h] BYREF _OWORD v27[3]; // [rsp+30h] [rbp-38h] BYREF v4 = a1; v5 = *(_QWORD *)(a1 + 48); v6 = *(_DWORD *)(a1 + 56); if ( *(_QWORD *)(a1 + 32) == v5 && v6 == 0 ) { ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 7208LL, "GGML_ASSERT(%s) failed", "!keep_stack.empty()"); goto LABEL_28; } v7 = v6 - 1LL; v8 = v6 + 62LL; if ( v7 >= 0 ) v8 = v7; v9 = *(_QWORD *)(v5 + 8 * (v8 >> 6) + 8LL * ((v7 & 0x800000000000003FLL) <= 0x8000000000000000LL) - 8); if ( _bittest64(&v9, v7) ) { v25 = 0LL; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)6>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( &v25, *a2); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v25); if ( a3 ) { LABEL_8: v10 = *(_QWORD *)(a1 + 16); if ( *(_QWORD *)(a1 + 8) == v10 ) { v27[0] = v25; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v25); LOBYTE(v25) = 0; *((_QWORD *)&v25 + 1) = 0LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v27); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=( *(_QWORD *)a1, (long long)v27); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v27); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v27); goto LABEL_23; } v11 = *(unsigned __int8 **)(v10 - 8); if ( v11 ) { v12 = *v11; if ( v12 != 1 ) { if ( v12 == 2 ) { std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( *((_QWORD *)v11 + 1), (long long)&v25); LABEL_23: LOBYTE(v4) = 1; LABEL_25: nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v25); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v25); return v4; } v20 = "ref_stack.back()->is_array() || ref_stack.back()->is_object()"; v21 = 7243LL; goto LABEL_31; } v13 = *(_QWORD *)(a1 + 88); v14 = *(_DWORD *)(a1 + 96); if ( *(_QWORD *)(a1 + 72) == v13 && v14 == 0 ) { v20 = "!key_keep_stack.empty()"; v21 = 7255LL; LABEL_31: ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", v21, "GGML_ASSERT(%s) failed", v20); goto LABEL_32; } v15 = v14; v16 = v14 - 1LL; v17 = v15 + 62; if ( v16 >= 0 ) v17 = v16; v18 = *(_QWORD *)(v13 + 8 * (v17 >> 6) + 8LL * ((v16 & 0x800000000000003FLL) <= 0x8000000000000000LL) - 8) & (1LL << v16); *(_DWORD *)(a1 + 96) = v15 - 1; if ( !(_DWORD)v15 ) { *(_DWORD *)(a1 + 96) = 63; *(_QWORD *)(a1 + 88) = v13 - 8; } if ( v18 ) { if ( *(_QWORD *)(a1 + 112) ) { v26 = v25; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v25); LOBYTE(v25) = 0; *((_QWORD *)&v25 + 1) = 0LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v26); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=( *(_QWORD *)(a1 + 112), (long long)&v26); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v26); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v26); goto LABEL_23; } LABEL_32: v22 = ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 7264LL, "GGML_ASSERT(%s) failed", "object_element"); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v25); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v25); _Unwind_Resume(v22); } } LABEL_24: v4 = 0; goto LABEL_25; } v24 = (*(_QWORD *)(a1 + 16) - *(_QWORD *)(a1 + 8)) >> 3; v23 = 5; if ( *(_QWORD *)(a1 + 144) ) { if ( !(*(unsigned __int8 ( **)(long long, int *, char *, __int128 *))(a1 + 152))( a1 + 128, &v24, &v23, &v25) ) goto LABEL_24; goto LABEL_8; } LABEL_28: std::__throw_bad_function_call(); } return 0; }
handle_value<unsigned_long&>: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x48 MOV EBP,EDX MOV RBX,RDI MOV RAX,qword ptr [RDI + 0x30] MOV ECX,dword ptr [RDI + 0x38] CMP qword ptr [RDI + 0x20],RAX SETZ DL TEST ECX,ECX SETZ DIL AND DIL,DL CMP DIL,0x1 JZ 0x0015fcf6 MOV ECX,ECX MOV R15,-0x8000000000000000 LEA RDX,[RCX + -0x1] ADD RCX,0x3e TEST RDX,RDX CMOVNS RCX,RDX SAR RCX,0x6 LEA RAX,[RAX + RCX*0x8] LEA RCX,[R15 + 0x3f] AND RCX,RDX XOR EDI,EDI CMP RCX,R15 SETBE DIL MOV RAX,qword ptr [RAX + RDI*0x8 + -0x8] BT RAX,RDX JNC 0x0015fb89 XORPS XMM0,XMM0 LEA R14,[RSP + 0x10] MOVAPS xmmword ptr [R14],XMM0 MOV RSI,qword ptr [RSI] MOV RDI,R14 CALL 0x0015fd90 MOV RDI,R14 MOV ESI,0x1 CALL 0x001579d6 TEST BPL,BPL JNZ 0x0015fb36 MOV RAX,qword ptr [RBX + 0x10] SUB RAX,qword ptr [RBX + 0x8] SHR RAX,0x3 MOV dword ptr [RSP + 0xc],EAX MOV byte ptr [RSP + 0xb],0x5 CMP qword ptr [RBX + 0x90],0x0 JZ 0x0015fd17 LEA RDI,[RBX + 0x80] LAB_0015fb19: LEA RSI,[RSP + 0xc] LEA RDX,[RSP + 0xb] LEA RCX,[RSP + 0x10] CALL qword ptr [RBX + 0x98] TEST AL,AL JZ 0x0015fcca LAB_0015fb36: MOV RAX,qword ptr [RBX + 0x10] CMP qword ptr [RBX + 0x8],RAX JZ 0x0015fb93 MOV RAX,qword ptr [RAX + -0x8] TEST RAX,RAX JZ 0x0015fcca MOVZX ECX,byte ptr [RAX] CMP ECX,0x1 JZ 0x0015fbed CMP ECX,0x2 JNZ 0x0015fd1c MOV RDI,qword ptr [RAX + 0x8] LEA RSI,[RSP + 0x10] CALL 0x0015c598 LAB_0015fb70: MOV RAX,qword ptr [RBX + 0x10] MOV RAX,qword ptr [RAX + -0x8] MOV RAX,qword ptr [RAX + 0x8] MOV R14,qword ptr [RAX + 0x8] ADD R14,-0x10 JMP 0x0015fcc6 LAB_0015fb89: XOR EBX,EBX XOR R14D,R14D JMP 0x0015fce6 LAB_0015fb93: LEA R14,[RSP + 0x10] MOVAPS XMM0,xmmword ptr [R14] LEA R15,[RSP + 0x30] MOVAPS xmmword ptr [R15],XMM0 MOV RDI,R14 XOR ESI,ESI CALL 0x001579d6 MOV byte ptr [R14],0x0 MOV qword ptr [R14 + 0x8],0x0 MOV RDI,R15 MOV ESI,0x1 CALL 0x001579d6 MOV RDI,qword ptr [RBX] MOV RSI,R15 CALL 0x0015a178 MOV RDI,R15 XOR ESI,ESI CALL 0x001579d6 MOV RDI,R15 CALL 0x0015cec4 MOV R14,qword ptr [RBX] JMP 0x0015fcc6 LAB_0015fbed: MOV RAX,qword ptr [RBX + 0x58] MOV ECX,dword ptr [RBX + 0x60] CMP qword ptr [RBX + 0x48],RAX SETZ DL TEST ECX,ECX SETZ SIL AND SIL,DL CMP SIL,0x1 JZ 0x0015fd2a MOV ESI,ECX LEA RCX,[RSI + -0x1] MOV RDX,RSI ADD RDX,0x3e TEST RCX,RCX CMOVNS RDX,RCX SAR RDX,0x6 LEA RDI,[RAX + RDX*0x8] LEA RDX,[R15 + 0x3f] AND RDX,RCX XOR R8D,R8D CMP RDX,R15 SETBE R8B MOV EDX,0x1 SHL RDX,CL AND RDX,qword ptr [RDI + R8*0x8 + -0x8] SUB ESI,0x1 MOV dword ptr [RBX + 0x60],ESI JNC 0x0015fc5f MOV dword ptr [RBX + 0x60],0x3f ADD RAX,-0x8 MOV qword ptr [RBX + 0x58],RAX LAB_0015fc5f: TEST RDX,RDX JZ 0x0015fcca CMP qword ptr [RBX + 0x70],0x0 JZ 0x0015fd4b LEA R14,[RSP + 0x10] MOVAPS XMM0,xmmword ptr [R14] LEA R15,[RSP + 0x20] MOVAPS xmmword ptr [R15],XMM0 MOV RDI,R14 XOR ESI,ESI CALL 0x001579d6 MOV byte ptr [R14],0x0 MOV qword ptr [R14 + 0x8],0x0 MOV RDI,R15 MOV ESI,0x1 CALL 0x001579d6 MOV RDI,qword ptr [RBX + 0x70] MOV RSI,R15 CALL 0x0015a178 MOV RDI,R15 XOR ESI,ESI CALL 0x001579d6 MOV RDI,R15 CALL 0x0015cec4 MOV R14,qword ptr [RBX + 0x70] LAB_0015fcc6: MOV BL,0x1 JMP 0x0015fccf LAB_0015fcca: XOR EBX,EBX XOR R14D,R14D LAB_0015fccf: LEA R15,[RSP + 0x10] MOV RDI,R15 XOR ESI,ESI CALL 0x001579d6 MOV RDI,R15 CALL 0x0015cec4 LAB_0015fce6: MOV EAX,EBX MOV RDX,R14 ADD RSP,0x48 POP RBX POP R14 POP R15 POP RBP RET LAB_0015fcf6: LEA RDI,[0x1eabd9] LEA RDX,[0x1eac23] LEA RCX,[0x1ebb55] MOV ESI,0x1c28 XOR EAX,EAX CALL 0x0011ae30 LAB_0015fd17: CALL 0x0011a300 LAB_0015fd1c: LEA RCX,[0x1ebb69] MOV ESI,0x1c4b JMP 0x0015fd36 LAB_0015fd2a: LEA RCX,[0x1ebba7] MOV ESI,0x1c57 LAB_0015fd36: LEA RDI,[0x1eabd9] LEA RDX,[0x1eac23] XOR EAX,EAX CALL 0x0011ae30 LAB_0015fd4b: LEA RDI,[0x1eabd9] LEA RDX,[0x1eac23] LEA RCX,[0x1ebbbf] MOV ESI,0x1c60 XOR EAX,EAX CALL 0x0011ae30
/* std::pair<bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>*> nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::handle_value<unsigned long&>(unsigned long&, bool) */ int1 [16] __thiscall nlohmann::json_abi_v3_11_3::detail:: json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::handle_value<unsigned_long&> (json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *this,ulong *param_1,bool param_2) { uint uVar1; char cVar2; ulong uVar3; char *pcVar4; ulong uVar5; int8 uVar6; bool bVar7; long lVar8; int1 auVar9 [16]; int1 local_5d; int4 local_5c; ulong local_58; int8 uStack_50; ulong local_48; int8 uStack_40; ulong local_38; int8 uStack_30; uVar1 = *(uint *)(this + 0x38); if (uVar1 == 0 && *(long *)(this + 0x20) == *(long *)(this + 0x30)) { /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x1c28, "GGML_ASSERT(%s) failed","!keep_stack.empty()"); } uVar5 = (ulong)uVar1 - 1; uVar3 = (ulong)uVar1 + 0x3e; if (-1 < (long)uVar5) { uVar3 = uVar5; } if ((*(ulong *)(*(long *)(this + 0x30) + ((long)uVar3 >> 6) * 8 + -8 + (ulong)((uVar5 & 0x800000000000003f) < 0x8000000000000001) * 8) >> (uVar5 & 0x3f) & 1) == 0) { uVar5 = 0; lVar8 = 0; goto LAB_0015fce6; } local_58 = 0; uStack_50 = 0; external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)6>:: construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (&local_58,*param_1); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(&local_58,0)); if (param_2) { LAB_0015fb36: if (*(long *)(this + 8) == *(long *)(this + 0x10)) { local_38 = local_58; uStack_30 = uStack_50; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(&local_58,0)); local_58 = local_58 & 0xffffffffffffff00; uStack_50 = 0; bVar7 = SUB81((data *)&local_38,0); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar7); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> **)this,(data *)&local_38); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar7); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)&local_38); lVar8 = *(long *)this; } else { pcVar4 = *(char **)(*(long *)(this + 0x10) + -8); if (pcVar4 == (char *)0x0) goto LAB_0015fcca; if (*pcVar4 == '\x01') { lVar8 = *(long *)(this + 0x58); uVar1 = *(uint *)(this + 0x60); if (uVar1 == 0 && *(long *)(this + 0x48) == lVar8) { pcVar4 = "!key_keep_stack.empty()"; uVar6 = 0x1c57; goto LAB_0015fd36; } uVar5 = (ulong)uVar1 - 1; uVar3 = (ulong)uVar1 + 0x3e; if (-1 < (long)uVar5) { uVar3 = uVar5; } uVar3 = *(ulong *)(lVar8 + ((long)uVar3 >> 6) * 8 + -8 + (ulong)((uVar5 & 0x800000000000003f) < 0x8000000000000001) * 8); *(uint *)(this + 0x60) = uVar1 - 1; if (uVar1 == 0) { *(int4 *)(this + 0x60) = 0x3f; *(long *)(this + 0x58) = lVar8 + -8; } if ((1L << ((byte)uVar5 & 0x3f) & uVar3) == 0) goto LAB_0015fcca; if (*(long *)(this + 0x70) == 0) { /* try { // try from 0015fd4b to 0015fd6b has its CatchHandler @ 0015fd6c */ /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 0x1c60,"GGML_ASSERT(%s) failed","object_element"); } local_48 = local_58; uStack_40 = uStack_50; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(&local_58,0)); local_58 = local_58 & 0xffffffffffffff00; uStack_50 = 0; bVar7 = SUB81((data *)&local_48,0); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar7); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> **)(this + 0x70),(data *)&local_48); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar7); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)&local_48); lVar8 = *(long *)(this + 0x70); } else { if (*pcVar4 != '\x02') { pcVar4 = "ref_stack.back()->is_array() || ref_stack.back()->is_object()"; uVar6 = 0x1c4b; LAB_0015fd36: /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", uVar6,"GGML_ASSERT(%s) failed",pcVar4); } std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> :: emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)(pcVar4 + 8),(basic_json *)&local_58); lVar8 = *(long *)(*(long *)(*(long *)(*(long *)(this + 0x10) + -8) + 8) + 8) + -0x10; } } uVar5 = CONCAT71((int7)((ulong)this >> 8),1); } else { local_5c = (int4)((ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3); local_5d = 5; if (*(long *)(this + 0x90) == 0) { /* WARNING: Subroutine does not return */ /* try { // try from 0015fd17 to 0015fd4a has its CatchHandler @ 0015fd6e */ std::__throw_bad_function_call(); } /* try { // try from 0015fb19 to 0015fb6f has its CatchHandler @ 0015fd6e */ cVar2 = (**(code **)(this + 0x98))(this + 0x80,&local_5c,&local_5d,&local_58); if (cVar2 != '\0') goto LAB_0015fb36; LAB_0015fcca: uVar5 = 0; lVar8 = 0; } basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81((data *)&local_58,0)); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)&local_58); LAB_0015fce6: auVar9._0_8_ = uVar5 & 0xffffffff; auVar9._8_8_ = lVar8; return auVar9; }
52,850
pagecache_set_write_on_delete_by_link
eloqsql/storage/maria/ma_pagecache.c
void pagecache_set_write_on_delete_by_link(PAGECACHE_BLOCK_LINK *block) { DBUG_ENTER("pagecache_set_write_on_delete_by_link"); DBUG_PRINT("enter", ("fd: %d block %p %d -> TRUE", block->hash_link->file.file, block, (int) block->status & PCBLOCK_DEL_WRITE)); DBUG_ASSERT(block->pins); /* should be pinned */ DBUG_ASSERT(block->wlocks); /* should be write locked */ block->status|= PCBLOCK_DEL_WRITE; DBUG_VOID_RETURN; }
O0
c
pagecache_set_write_on_delete_by_link: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) jmp 0x3c42a jmp 0x3c42c jmp 0x3c42e jmp 0x3c430 jmp 0x3c432 movq -0x8(%rbp), %rax movzwl 0x74(%rax), %ecx orl $0x80, %ecx movw %cx, 0x74(%rax) jmp 0x3c446 popq %rbp retq nopl (%rax,%rax)
pagecache_set_write_on_delete_by_link: push rbp mov rbp, rsp mov [rbp+var_8], rdi jmp short $+2 loc_3C42A: jmp short $+2 loc_3C42C: jmp short $+2 loc_3C42E: jmp short $+2 loc_3C430: jmp short $+2 loc_3C432: mov rax, [rbp+var_8] movzx ecx, word ptr [rax+74h] or ecx, 80h mov [rax+74h], cx jmp short $+2 loc_3C446: pop rbp retn
long long pagecache_set_write_on_delete_by_link(long long a1) { long long result; // rax result = a1; *(_WORD *)(a1 + 116) |= 0x80u; return result; }
pagecache_set_write_on_delete_by_link: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI JMP 0x0013c42a LAB_0013c42a: JMP 0x0013c42c LAB_0013c42c: JMP 0x0013c42e LAB_0013c42e: JMP 0x0013c430 LAB_0013c430: JMP 0x0013c432 LAB_0013c432: MOV RAX,qword ptr [RBP + -0x8] MOVZX ECX,word ptr [RAX + 0x74] OR ECX,0x80 MOV word ptr [RAX + 0x74],CX JMP 0x0013c446 LAB_0013c446: POP RBP RET
void pagecache_set_write_on_delete_by_link(long param_1) { *(ushort *)(param_1 + 0x74) = *(ushort *)(param_1 + 0x74) | 0x80; return; }
52,851
pagecache_set_write_on_delete_by_link
eloqsql/storage/maria/ma_pagecache.c
void pagecache_set_write_on_delete_by_link(PAGECACHE_BLOCK_LINK *block) { DBUG_ENTER("pagecache_set_write_on_delete_by_link"); DBUG_PRINT("enter", ("fd: %d block %p %d -> TRUE", block->hash_link->file.file, block, (int) block->status & PCBLOCK_DEL_WRITE)); DBUG_ASSERT(block->pins); /* should be pinned */ DBUG_ASSERT(block->wlocks); /* should be write locked */ block->status|= PCBLOCK_DEL_WRITE; DBUG_VOID_RETURN; }
O3
c
pagecache_set_write_on_delete_by_link: pushq %rbp movq %rsp, %rbp orb $-0x80, 0x74(%rdi) popq %rbp retq
pagecache_set_write_on_delete_by_link: push rbp mov rbp, rsp or byte ptr [rdi+74h], 80h pop rbp retn
void pagecache_set_write_on_delete_by_link(long long a1) { *(_BYTE *)(a1 + 116) |= 0x80u; }
pagecache_set_write_on_delete_by_link: PUSH RBP MOV RBP,RSP OR byte ptr [RDI + 0x74],0x80 POP RBP RET
void pagecache_set_write_on_delete_by_link(long param_1) { *(byte *)(param_1 + 0x74) = *(byte *)(param_1 + 0x74) | 0x80; return; }
52,852
CLI::BadNameString::OneCharName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
MikePodsytnik[P]TCRtrie/build_O3/_deps/cli11-src/include/CLI/Error.hpp
static BadNameString OneCharName(std::string name) { return BadNameString("Invalid one char name: " + name); }
O3
cpp
CLI::BadNameString::OneCharName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>): pushq %r14 pushq %rbx subq $0x28, %rsp movq %rsi, %rdx movq %rdi, %rbx leaq 0x1b19a(%rip), %rsi # 0x37684 leaq 0x8(%rsp), %r14 movq %r14, %rdi callq 0x11e48 movq %rbx, %rdi movq %r14, %rsi callq 0x1c872 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x1c51d movq 0x18(%rsp), %rsi incq %rsi callq 0x7430 movq %rbx, %rax addq $0x28, %rsp popq %rbx popq %r14 retq movq %rax, %rbx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x1c546 movq 0x18(%rsp), %rsi incq %rsi callq 0x7430 movq %rbx, %rdi callq 0x7780
_ZN3CLI13BadNameString11OneCharNameENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push r14; __int64 push rbx; int sub rsp, 28h mov rdx, rsi mov rbx, rdi lea rsi, aInvalidOneChar; "Invalid one char name: " lea r14, [rsp+38h+var_30] mov rdi, r14 call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_; std::operator+<char>(char const*,std::string const&) mov rdi, rbx; int mov rsi, r14 call _ZN3CLI13BadNameStringC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; CLI::BadNameString::BadNameString(std::string) lea rax, [rsp+38h+var_20] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_1C51D mov rsi, [rsp+38h+var_20] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1C51D: mov rax, rbx add rsp, 28h pop rbx pop r14 retn mov rbx, rax lea rax, [rsp+arg_10] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_1C546 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1C546: mov rdi, rbx call __Unwind_Resume
long long CLI::BadNameString::OneCharName(long long a1, _QWORD *a2) { void *v3; // [rsp+0h] [rbp-38h] void *v4[2]; // [rsp+8h] [rbp-30h] BYREF _QWORD v5[2]; // [rsp+18h] [rbp-20h] BYREF int v6; // [rsp+28h] [rbp-10h] long long v7; // [rsp+30h] [rbp-8h] std::operator+<char>((long long)v4, (long long)"Invalid one char name: ", a2); CLI::BadNameString::BadNameString(a1, v3, (int)v4[0], (long long)v4[1], v5[0], (void *)v5[1], v6, v7); if ( v4[0] != v5 ) operator delete(v4[0], v5[0] + 1LL); return a1; }
OneCharName: PUSH R14 PUSH RBX SUB RSP,0x28 MOV RDX,RSI MOV RBX,RDI LEA RSI,[0x137684] LEA R14,[RSP + 0x8] MOV RDI,R14 CALL 0x00111e48 LAB_0011c4f7: MOV RDI,RBX MOV RSI,R14 CALL 0x0011c872 LAB_0011c502: LEA RAX,[RSP + 0x18] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0011c51d MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x00107430 LAB_0011c51d: MOV RAX,RBX ADD RSP,0x28 POP RBX POP R14 RET
/* CLI::BadNameString::OneCharName(std::__cxx11::string) */ BadNameString * CLI::BadNameString::OneCharName(BadNameString *param_1) { long *local_30 [2]; long local_20 [2]; std::operator+((char *)local_30,(string *)"Invalid one char name: "); /* try { // try from 0011c4f7 to 0011c501 has its CatchHandler @ 0011c528 */ BadNameString(param_1,local_30); if (local_30[0] != local_20) { operator_delete(local_30[0],local_20[0] + 1); } return param_1; }
52,853
free_block
eloqsql/mysys/mf_keycache.c
static void free_block(SIMPLE_KEY_CACHE_CB *keycache, BLOCK_LINK *block) { KEYCACHE_THREAD_TRACE("free block"); KEYCACHE_DBUG_PRINT("free_block", ("block %u to be freed, hash_link %p status: %u", BLOCK_NUMBER(block), block->hash_link, block->status)); /* Assert that the block is not free already. And that it is in a clean state. Note that the block might just be assigned to a hash_link and not yet read (BLOCK_READ may not be set here). In this case a reader is registered in the hash_link and free_block() will wait for it below. */ DBUG_ASSERT((block->status & BLOCK_IN_USE) && !(block->status & (BLOCK_IN_EVICTION | BLOCK_IN_SWITCH | BLOCK_REASSIGNED | BLOCK_IN_FLUSH | BLOCK_CHANGED | BLOCK_FOR_UPDATE))); /* Assert that the block is in a file_blocks chain. */ DBUG_ASSERT(block->prev_changed && *block->prev_changed == block); /* Assert that the block is not in the LRU ring. */ DBUG_ASSERT(!block->next_used && !block->prev_used); /* IMHO the below condition (if()) makes no sense. I can't see how it could be possible that free_block() is entered with a NULL hash_link pointer. The only place where it can become NULL is in free_block() (or before its first use ever, but for those blocks free_block() is not called). I don't remove the conditional as it cannot harm, but place an DBUG_ASSERT to confirm my hypothesis. Eventually the condition (if()) can be removed. */ DBUG_ASSERT(block->hash_link && block->hash_link->block == block); if (block->hash_link) { /* While waiting for readers to finish, new readers might request the block. But since we set block->status|= BLOCK_REASSIGNED, they will wait on block->wqueue[COND_FOR_SAVED]. They must be signalled later. */ block->status|= BLOCK_REASSIGNED; wait_for_readers(keycache, block); /* The block must not have been freed by another thread. Repeat some checks. An additional requirement is that it must be read now (BLOCK_READ). */ DBUG_ASSERT(block->hash_link && block->hash_link->block == block); DBUG_ASSERT((block->status & (BLOCK_READ | BLOCK_IN_USE | BLOCK_REASSIGNED)) && !(block->status & (BLOCK_IN_EVICTION | BLOCK_IN_SWITCH | BLOCK_IN_FLUSH | BLOCK_CHANGED | BLOCK_FOR_UPDATE))); DBUG_ASSERT(block->prev_changed && *block->prev_changed == block); DBUG_ASSERT(!block->prev_used); /* Unset BLOCK_REASSIGNED again. If we hand the block to an evicting thread (through unreg_request() below), other threads must not see this flag. They could become confused. */ block->status&= ~BLOCK_REASSIGNED; /* Do not release the hash_link until the block is off all lists. At least not if we hand it over for eviction in unreg_request(). */ } /* Unregister the block request and link the block into the LRU ring. This enables eviction for the block. If the LRU ring was empty and threads are waiting for a block, then the block wil be handed over for eviction immediately. Otherwise we will unlink it from the LRU ring again, without releasing the lock in between. So decrementing the request counter and updating statistics are the only relevant operation in this case. Assert that there are no other requests registered. */ DBUG_ASSERT(block->requests == 1); unreg_request(keycache, block, 0); /* Note that even without releasing the cache lock it is possible that the block is immediately selected for eviction by link_block() and thus not added to the LRU ring. In this case we must not touch the block any more. */ if (block->status & BLOCK_IN_EVICTION) return; /* Error blocks are not put into the LRU ring. */ if (!(block->status & BLOCK_ERROR)) { /* Here the block must be in the LRU ring. Unlink it again. */ DBUG_ASSERT(block->next_used && block->prev_used && *block->prev_used == block); unlink_block(keycache, block); } if (block->temperature == BLOCK_WARM) keycache->warm_blocks--; block->temperature= BLOCK_COLD; /* Remove from file_blocks hash. */ unlink_changed(block); /* Remove reference to block from hash table. */ unlink_hash(keycache, block->hash_link); block->hash_link= NULL; block->status= 0; block->length= 0; block->offset= keycache->key_cache_block_size; KEYCACHE_THREAD_TRACE("free block"); KEYCACHE_DBUG_PRINT("free_block", ("block is freed")); /* Enforced by unlink_changed(), but just to be sure. */ DBUG_ASSERT(!block->next_changed && !block->prev_changed); /* Enforced by unlink_block(): not in LRU ring nor in free_block_list. */ DBUG_ASSERT(!block->next_used && !block->prev_used); /* Insert the free block in the free list. */ block->next_used= keycache->free_block_list; keycache->free_block_list= block; /* Keep track of the number of currently unused blocks. */ keycache->blocks_unused++; /* All pending requests for this page must be resubmitted. */ release_whole_queue(&block->wqueue[COND_FOR_SAVED]); }
O0
c
free_block: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) jmp 0xe3d92 jmp 0xe3d94 jmp 0xe3d96 jmp 0xe3d98 jmp 0xe3d9a jmp 0xe3d9c jmp 0xe3d9e jmp 0xe3da0 jmp 0xe3da2 movq -0x10(%rbp), %rax cmpq $0x0, 0x20(%rax) je 0xe3de2 movq -0x10(%rbp), %rax movl 0x50(%rax), %ecx orl $0x8, %ecx movl %ecx, 0x50(%rax) movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi callq 0xe4e80 jmp 0xe3dc9 jmp 0xe3dcb jmp 0xe3dcd jmp 0xe3dcf jmp 0xe3dd1 jmp 0xe3dd3 jmp 0xe3dd5 movq -0x10(%rbp), %rax movl 0x50(%rax), %ecx andl $-0x9, %ecx movl %ecx, 0x50(%rax) jmp 0xe3de4 jmp 0xe3de6 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi xorl %edx, %edx callq 0xe3bf0 movq -0x10(%rbp), %rax movl 0x50(%rax), %eax andl $0x80, %eax cmpl $0x0, %eax je 0xe3e0b jmp 0xe3ee6 movq -0x10(%rbp), %rax movl 0x50(%rax), %eax andl $0x1, %eax cmpl $0x0, %eax jne 0xe3e2b jmp 0xe3e1c jmp 0xe3e1e movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi callq 0xe50b0 movq -0x10(%rbp), %rax cmpl $0x1, 0x54(%rax) jne 0xe3e45 movq -0x8(%rbp), %rax movq 0x68(%rax), %rcx addq $-0x1, %rcx movq %rcx, 0x68(%rax) movq -0x10(%rbp), %rax movl $0x0, 0x54(%rax) movq -0x10(%rbp), %rdi callq 0xe4f20 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rax movq 0x20(%rax), %rsi callq 0xe4a80 movq -0x10(%rbp), %rax movq $0x0, 0x20(%rax) movq -0x10(%rbp), %rax movl $0x0, 0x50(%rax) movq -0x10(%rbp), %rax movl $0x0, 0x4c(%rax) movq -0x8(%rbp), %rax movl 0x18(%rax), %ecx movq -0x10(%rbp), %rax movl %ecx, 0x48(%rax) jmp 0xe3e9c jmp 0xe3e9e jmp 0xe3ea0 jmp 0xe3ea2 jmp 0xe3ea4 movq -0x8(%rbp), %rax movq 0x98(%rax), %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) movq -0x10(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x98(%rax) movq -0x8(%rbp), %rax movq 0x58(%rax), %rcx addq $0x1, %rcx movq %rcx, 0x58(%rax) movq -0x10(%rbp), %rdi addq $0x28, %rdi addq $0x8, %rdi callq 0xe4df0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
free_block_0: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov [rbp+var_10], rsi jmp short $+2 loc_E3D92: jmp short $+2 loc_E3D94: jmp short $+2 loc_E3D96: jmp short $+2 loc_E3D98: jmp short $+2 loc_E3D9A: jmp short $+2 loc_E3D9C: jmp short $+2 loc_E3D9E: jmp short $+2 loc_E3DA0: jmp short $+2 loc_E3DA2: mov rax, [rbp+var_10] cmp qword ptr [rax+20h], 0 jz short loc_E3DE2 mov rax, [rbp+var_10] mov ecx, [rax+50h] or ecx, 8 mov [rax+50h], ecx mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] call wait_for_readers_0 jmp short $+2 loc_E3DC9: jmp short $+2 loc_E3DCB: jmp short $+2 loc_E3DCD: jmp short $+2 loc_E3DCF: jmp short $+2 loc_E3DD1: jmp short $+2 loc_E3DD3: jmp short $+2 loc_E3DD5: mov rax, [rbp+var_10] mov ecx, [rax+50h] and ecx, 0FFFFFFF7h mov [rax+50h], ecx loc_E3DE2: jmp short $+2 loc_E3DE4: jmp short $+2 loc_E3DE6: mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] xor edx, edx call unreg_request_0 mov rax, [rbp+var_10] mov eax, [rax+50h] and eax, 80h cmp eax, 0 jz short loc_E3E0B jmp loc_E3EE6 loc_E3E0B: mov rax, [rbp+var_10] mov eax, [rax+50h] and eax, 1 cmp eax, 0 jnz short loc_E3E2B jmp short $+2 loc_E3E1C: jmp short $+2 loc_E3E1E: mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] call unlink_block_0 loc_E3E2B: mov rax, [rbp+var_10] cmp dword ptr [rax+54h], 1 jnz short loc_E3E45 mov rax, [rbp+var_8] mov rcx, [rax+68h] add rcx, 0FFFFFFFFFFFFFFFFh mov [rax+68h], rcx loc_E3E45: mov rax, [rbp+var_10] mov dword ptr [rax+54h], 0 mov rdi, [rbp+var_10] call unlink_changed_0 mov rdi, [rbp+var_8] mov rax, [rbp+var_10] mov rsi, [rax+20h] call unlink_hash_0 mov rax, [rbp+var_10] mov qword ptr [rax+20h], 0 mov rax, [rbp+var_10] mov dword ptr [rax+50h], 0 mov rax, [rbp+var_10] mov dword ptr [rax+4Ch], 0 mov rax, [rbp+var_8] mov ecx, [rax+18h] mov rax, [rbp+var_10] mov [rax+48h], ecx jmp short $+2 loc_E3E9C: jmp short $+2 loc_E3E9E: jmp short $+2 loc_E3EA0: jmp short $+2 loc_E3EA2: jmp short $+2 loc_E3EA4: mov rax, [rbp+var_8] mov rcx, [rax+98h] mov rax, [rbp+var_10] mov [rax], rcx mov rcx, [rbp+var_10] mov rax, [rbp+var_8] mov [rax+98h], rcx mov rax, [rbp+var_8] mov rcx, [rax+58h] add rcx, 1 mov [rax+58h], rcx mov rdi, [rbp+var_10] add rdi, 28h ; '(' add rdi, 8 call release_whole_queue loc_E3EE6: add rsp, 10h pop rbp retn
long long free_block_0(long long a1, long long a2) { long long result; // rax if ( *(_QWORD *)(a2 + 32) ) { *(_DWORD *)(a2 + 80) |= 8u; wait_for_readers_0(a1, a2); *(_DWORD *)(a2 + 80) &= ~8u; } unreg_request_0((_QWORD *)a1, a2, 0); result = *(_DWORD *)(a2 + 80) & 0x80; if ( !(_DWORD)result ) { if ( (*(_DWORD *)(a2 + 80) & 1) == 0 ) unlink_block_0(a1, a2); if ( *(_DWORD *)(a2 + 84) == 1 ) --*(_QWORD *)(a1 + 104); *(_DWORD *)(a2 + 84) = 0; unlink_changed_0(a2); unlink_hash_0(a1, *(_QWORD *)(a2 + 32)); *(_QWORD *)(a2 + 32) = 0LL; *(_DWORD *)(a2 + 80) = 0; *(_DWORD *)(a2 + 76) = 0; *(_DWORD *)(a2 + 72) = *(_DWORD *)(a1 + 24); *(_QWORD *)a2 = *(_QWORD *)(a1 + 152); *(_QWORD *)(a1 + 152) = a2; ++*(_QWORD *)(a1 + 88); return release_whole_queue(a2 + 48); } return result; }
free_block: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI JMP 0x001e3d92 LAB_001e3d92: JMP 0x001e3d94 LAB_001e3d94: JMP 0x001e3d96 LAB_001e3d96: JMP 0x001e3d98 LAB_001e3d98: JMP 0x001e3d9a LAB_001e3d9a: JMP 0x001e3d9c LAB_001e3d9c: JMP 0x001e3d9e LAB_001e3d9e: JMP 0x001e3da0 LAB_001e3da0: JMP 0x001e3da2 LAB_001e3da2: MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX + 0x20],0x0 JZ 0x001e3de2 MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RAX + 0x50] OR ECX,0x8 MOV dword ptr [RAX + 0x50],ECX MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] CALL 0x001e4e80 JMP 0x001e3dc9 LAB_001e3dc9: JMP 0x001e3dcb LAB_001e3dcb: JMP 0x001e3dcd LAB_001e3dcd: JMP 0x001e3dcf LAB_001e3dcf: JMP 0x001e3dd1 LAB_001e3dd1: JMP 0x001e3dd3 LAB_001e3dd3: JMP 0x001e3dd5 LAB_001e3dd5: MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RAX + 0x50] AND ECX,0xfffffff7 MOV dword ptr [RAX + 0x50],ECX LAB_001e3de2: JMP 0x001e3de4 LAB_001e3de4: JMP 0x001e3de6 LAB_001e3de6: MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] XOR EDX,EDX CALL 0x001e3bf0 MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x50] AND EAX,0x80 CMP EAX,0x0 JZ 0x001e3e0b JMP 0x001e3ee6 LAB_001e3e0b: MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x50] AND EAX,0x1 CMP EAX,0x0 JNZ 0x001e3e2b JMP 0x001e3e1c LAB_001e3e1c: JMP 0x001e3e1e LAB_001e3e1e: MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] CALL 0x001e50b0 LAB_001e3e2b: MOV RAX,qword ptr [RBP + -0x10] CMP dword ptr [RAX + 0x54],0x1 JNZ 0x001e3e45 MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RAX + 0x68] ADD RCX,-0x1 MOV qword ptr [RAX + 0x68],RCX LAB_001e3e45: MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x54],0x0 MOV RDI,qword ptr [RBP + -0x10] CALL 0x001e4f20 MOV RDI,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX + 0x20] CALL 0x001e4a80 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x20],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x50],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x4c],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x18] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x48],ECX JMP 0x001e3e9c LAB_001e3e9c: JMP 0x001e3e9e LAB_001e3e9e: JMP 0x001e3ea0 LAB_001e3ea0: JMP 0x001e3ea2 LAB_001e3ea2: JMP 0x001e3ea4 LAB_001e3ea4: MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RAX + 0x98] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x98],RCX MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RAX + 0x58] ADD RCX,0x1 MOV qword ptr [RAX + 0x58],RCX MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x28 ADD RDI,0x8 CALL 0x001e4df0 LAB_001e3ee6: ADD RSP,0x10 POP RBP RET
void free_block(long param_1,int8 *param_2) { if (param_2[4] != 0) { *(uint *)(param_2 + 10) = *(uint *)(param_2 + 10) | 8; wait_for_readers(param_1,param_2); *(uint *)(param_2 + 10) = *(uint *)(param_2 + 10) & 0xfffffff7; } unreg_request(param_1,param_2,0); if ((*(uint *)(param_2 + 10) & 0x80) == 0) { if ((*(uint *)(param_2 + 10) & 1) == 0) { unlink_block(param_1,param_2); } if (*(int *)((long)param_2 + 0x54) == 1) { *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + -1; } *(int4 *)((long)param_2 + 0x54) = 0; unlink_changed(param_2); unlink_hash(param_1,param_2[4]); param_2[4] = 0; *(int4 *)(param_2 + 10) = 0; *(int4 *)((long)param_2 + 0x4c) = 0; *(int4 *)(param_2 + 9) = *(int4 *)(param_1 + 0x18); *param_2 = *(int8 *)(param_1 + 0x98); *(int8 **)(param_1 + 0x98) = param_2; *(long *)(param_1 + 0x58) = *(long *)(param_1 + 0x58) + 1; release_whole_queue(param_2 + 6); } return; }
52,854
void nlohmann::json_abi_v3_11_3::detail::from_json<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>(nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::string_t&)
msxemulator/build_O3/_deps/picotool-src/lib/nlohmann_json/single_include/nlohmann/json.hpp
inline void from_json(const BasicJsonType& j, typename BasicJsonType::string_t& s) { if (JSON_HEDLEY_UNLIKELY(!j.is_string())) { JSON_THROW(type_error::create(302, concat("type must be string, but is ", j.type_name()), &j)); } s = *j.template get_ptr<const typename BasicJsonType::string_t*>(); }
O3
cpp
void nlohmann::json_abi_v3_11_3::detail::from_json<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>(nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::string_t&): pushq %rbp pushq %r14 pushq %rbx subq $0x30, %rsp movq %rdi, %r14 cmpb $0x3, (%rdi) jne 0x6f40e movq 0x8(%r14), %rax movq %rsi, %rdi movq %rax, %rsi addq $0x30, %rsp popq %rbx popq %r14 popq %rbp jmp 0xf2a0 movl $0x20, %edi callq 0xf260 movq %rax, %rbx movq %r14, %rdi callq 0x56892 leaq 0x8(%rsp), %rdx movq %rax, (%rdx) leaq 0x38d7c(%rip), %rsi # 0xa81ae leaq 0x10(%rsp), %rdi callq 0x56809 movb $0x1, %bpl leaq 0x10(%rsp), %rdx movq %rbx, %rdi movl $0x12e, %esi # imm = 0x12E movq %r14, %rcx callq 0x5663e xorl %ebp, %ebp leaq 0x715b3(%rip), %rsi # 0xe0a10 leaq -0x84a8(%rip), %rdx # 0x66fbc movq %rbx, %rdi callq 0xf790 movq %rax, %r14 leaq 0x20(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x6f48a movq 0x20(%rsp), %rsi incq %rsi callq 0xf470 testb %bpl, %bpl jne 0x6f494 jmp 0x6f49c movq %rax, %r14 movq %rbx, %rdi callq 0xf360 movq %r14, %rdi callq 0xf7d0
_ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEEvRKT_RNSG_8string_tE: push rbp; char push r14; int push rbx; __int64 sub rsp, 30h mov r14, rdi cmp byte ptr [rdi], 3 jnz short loc_6F40E mov rax, [r14+8] mov rdi, rsi mov rsi, rax add rsp, 30h pop rbx pop r14 pop rbp jmp __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&) loc_6F40E: mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<std::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, aTypeMustBeStri; "type must be string, but is " lea rdi, [rsp+48h+var_38] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],char const* &&) mov bpl, 1 lea rdx, [rsp+48h+var_38] mov rdi, rbx; this mov esi, 12Eh; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ 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_6F48A mov rsi, [rsp+48h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_6F48A: test bpl, bpl jnz short loc_6F494 jmp short loc_6F49C mov r14, rax loc_6F494: mov rdi, rbx; void * call ___cxa_free_exception loc_6F49C: mov rdi, r14 call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::detail::from_json<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( unsigned __int8 *a1, long long a2) { nlohmann::json_abi_v3_11_3::detail::exception *exception; // rbx long long v4; // rcx long long v5; // r8 long long v6; // r9 char *v7; // [rsp+8h] [rbp-40h] BYREF _QWORD v8[2]; // [rsp+10h] [rbp-38h] BYREF if ( *a1 != 3 ) { exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL); v7 = nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name(a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>( (long long)v8, (long long)"type must be string, but is ", &v7, v4, v5, v6); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( exception, 302, 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); } return std::string::_M_assign(a2); }
from_json<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x30 MOV R14,RDI CMP byte ptr [RDI],0x3 JNZ 0x0016f40e MOV RAX,qword ptr [R14 + 0x8] MOV RDI,RSI MOV RSI,RAX ADD RSP,0x30 POP RBX POP R14 POP RBP JMP 0x0010f2a0 LAB_0016f40e: MOV EDI,0x20 CALL 0x0010f260 MOV RBX,RAX MOV RDI,R14 CALL 0x00156892 LEA RDX,[RSP + 0x8] MOV qword ptr [RDX],RAX LAB_0016f42b: LEA RSI,[0x1a81ae] LEA RDI,[RSP + 0x10] CALL 0x00156809 MOV BPL,0x1 LAB_0016f43f: LEA RDX,[RSP + 0x10] MOV RDI,RBX MOV ESI,0x12e MOV RCX,R14 CALL 0x0015663e XOR EBP,EBP LEA RSI,[0x1e0a10] LEA RDX,[0x166fbc] MOV RDI,RBX CALL 0x0010f790
/* void nlohmann::json_abi_v3_11_3::detail::from_json<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >(nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const&, nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>::string_t&) */ void nlohmann::json_abi_v3_11_3::detail:: from_json<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (basic_json *param_1,string_t *param_2) { int8 uVar1; char *local_40; detail local_38 [32]; if (*param_1 == (basic_json)0x3) { std::__cxx11::string::_M_assign((string *)param_2); return; } uVar1 = __cxa_allocate_exception(0x20); local_40 = (char *)basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::type_name((basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)param_1); /* try { // try from 0016f42b to 0016f43b has its CatchHandler @ 0016f491 */ concat<std::__cxx11::string,char_const(&)[29],char_const*> (local_38,"type must be string, but is ",&local_40); /* try { // try from 0016f43f to 0016f46b has its CatchHandler @ 0016f46c */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar1,0x12e,local_38,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar1,&type_error::typeinfo,exception::~exception); }
52,855
ma_check_print_not_visible_error
eloqsql/storage/maria/ma_check.c
static void _ma_check_print_not_visible_error(HA_CHECK *param, TrID used_trid) { char buff[22], buff2[22]; if (!param->not_visible_rows_found++) { if (!ma_control_file_inited()) { _ma_check_print_warning(param, "Found row with transaction id %s but no " "aria_control_file was used or specified. " "The table may be corrupted", llstr(used_trid, buff)); } else { _ma_check_print_error(param, "Found row with transaction id %s when max " "transaction id according to aria_control_file " "is %s", llstr(used_trid, buff), llstr(param->max_trid, buff2)); } } }
O0
c
ma_check_print_not_visible_error: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x48(%rbp) movq %rsi, -0x50(%rbp) movq -0x48(%rbp), %rcx movq 0xb28(%rcx), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, 0xb28(%rcx) cmpq $0x0, %rax jne 0xaa129 callq 0x44890 cmpb $0x0, %al jne 0xaa0e1 movq -0x48(%rbp), %rax movq %rax, -0x58(%rbp) movq -0x50(%rbp), %rdi leaq -0x20(%rbp), %rsi callq 0x176ef0 movq -0x58(%rbp), %rdi movq %rax, %rdx leaq 0xd8418(%rip), %rsi # 0x1824f0 movb $0x0, %al callq 0x2b4c0 jmp 0xaa127 movq -0x48(%rbp), %rax movq %rax, -0x68(%rbp) movq -0x50(%rbp), %rdi leaq -0x20(%rbp), %rsi callq 0x176ef0 movq %rax, -0x60(%rbp) movq -0x48(%rbp), %rax movq 0xb18(%rax), %rdi leaq -0x40(%rbp), %rsi callq 0x176ef0 movq -0x68(%rbp), %rdi movq -0x60(%rbp), %rdx movq %rax, %rcx leaq 0xd843d(%rip), %rsi # 0x18255d movb $0x0, %al callq 0x2b640 jmp 0xaa129 movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0xaa141 addq $0x70, %rsp popq %rbp retq callq 0x2a290 nopw %cs:(%rax,%rax)
_ma_check_print_not_visible_error: push rbp mov rbp, rsp sub rsp, 70h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_48], rdi mov [rbp+var_50], rsi mov rcx, [rbp+var_48] mov rax, [rcx+0B28h] mov rdx, rax add rdx, 1 mov [rcx+0B28h], rdx cmp rax, 0 jnz short loc_AA129 call ma_control_file_inited cmp al, 0 jnz short loc_AA0E1 mov rax, [rbp+var_48] mov [rbp+var_58], rax mov rdi, [rbp+var_50] lea rsi, [rbp+var_20] call llstr mov rdi, [rbp+var_58] mov rdx, rax lea rsi, aFoundRowWithTr; "Found row with transaction id %s but no"... mov al, 0 call _ma_check_print_warning jmp short loc_AA127 loc_AA0E1: mov rax, [rbp+var_48] mov [rbp+var_68], rax mov rdi, [rbp+var_50] lea rsi, [rbp+var_20] call llstr mov [rbp+var_60], rax mov rax, [rbp+var_48] mov rdi, [rax+0B18h] lea rsi, [rbp+var_40] call llstr mov rdi, [rbp+var_68] mov rdx, [rbp+var_60] mov rcx, rax lea rsi, aFoundRowWithTr_0; "Found row with transaction id %s when m"... mov al, 0 call _ma_check_print_error loc_AA127: jmp short $+2 loc_AA129: mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_AA141 add rsp, 70h pop rbp retn loc_AA141: call ___stack_chk_fail
unsigned long long ma_check_print_not_visible_error( long long a1, long long a2, __m128 a3, __m128 a4, __m128 a5, __m128 a6, double a7, double a8, __m128 a9, __m128 a10) { long long v10; // rax long long v11; // rax long long v12; // rcx long long v13; // r8 long long v14; // r9 __m128 v15; // xmm4 __m128 v16; // xmm5 long long v17; // rax long long v18; // r8 long long v19; // r9 __m128 v20; // xmm4 __m128 v21; // xmm5 char v23; // [rsp+0h] [rbp-70h] long long v24; // [rsp+10h] [rbp-60h] _BYTE v25[32]; // [rsp+30h] [rbp-40h] BYREF _BYTE v26[24]; // [rsp+50h] [rbp-20h] BYREF unsigned long long v27; // [rsp+68h] [rbp-8h] v27 = __readfsqword(0x28u); v10 = *(_QWORD *)(a1 + 2856); *(_QWORD *)(a1 + 2856) = v10 + 1; if ( !v10 ) { if ( ma_control_file_inited() ) { v24 = llstr(a2, v26); v17 = llstr(*(_QWORD *)(a1 + 2840), v25); ma_check_print_error( a1, (long long)"Found row with transaction id %s when max transaction id according to aria_control_file is %s", v24, v17, v18, v19, a3, a4, a5, a6, v20, v21, a9, a10, v23); } else { v11 = llstr(a2, v26); ma_check_print_warning( a1, (long long)"Found row with transaction id %s but no aria_control_file was used or specified. The table may be corrupted", v11, v12, v13, v14, a3, a4, a5, a6, v15, v16, a9, a10, v23); } } return __readfsqword(0x28u); }
_ma_check_print_not_visible_error: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x48],RDI MOV qword ptr [RBP + -0x50],RSI MOV RCX,qword ptr [RBP + -0x48] MOV RAX,qword ptr [RCX + 0xb28] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RCX + 0xb28],RDX CMP RAX,0x0 JNZ 0x001aa129 CALL 0x00144890 CMP AL,0x0 JNZ 0x001aa0e1 MOV RAX,qword ptr [RBP + -0x48] MOV qword ptr [RBP + -0x58],RAX MOV RDI,qword ptr [RBP + -0x50] LEA RSI,[RBP + -0x20] CALL 0x00276ef0 MOV RDI,qword ptr [RBP + -0x58] MOV RDX,RAX LEA RSI,[0x2824f0] MOV AL,0x0 CALL 0x0012b4c0 JMP 0x001aa127 LAB_001aa0e1: MOV RAX,qword ptr [RBP + -0x48] MOV qword ptr [RBP + -0x68],RAX MOV RDI,qword ptr [RBP + -0x50] LEA RSI,[RBP + -0x20] CALL 0x00276ef0 MOV qword ptr [RBP + -0x60],RAX MOV RAX,qword ptr [RBP + -0x48] MOV RDI,qword ptr [RAX + 0xb18] LEA RSI,[RBP + -0x40] CALL 0x00276ef0 MOV RDI,qword ptr [RBP + -0x68] MOV RDX,qword ptr [RBP + -0x60] MOV RCX,RAX LEA RSI,[0x28255d] MOV AL,0x0 CALL 0x0012b640 LAB_001aa127: JMP 0x001aa129 LAB_001aa129: MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x001aa141 ADD RSP,0x70 POP RBP RET LAB_001aa141: CALL 0x0012a290
void _ma_check_print_not_visible_error(long param_1,int8 param_2) { long lVar1; char cVar2; int8 uVar3; int8 uVar4; long in_FS_OFFSET; int1 local_48 [32]; int1 local_28 [24]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); lVar1 = *(long *)(param_1 + 0xb28); *(long *)(param_1 + 0xb28) = lVar1 + 1; if (lVar1 == 0) { cVar2 = ma_control_file_inited(); if (cVar2 == '\0') { uVar3 = llstr(param_2,local_28); _ma_check_print_warning (param_1, "Found row with transaction id %s but no aria_control_file was used or specified. The table may be corrupted" ,uVar3); } else { uVar3 = llstr(param_2,local_28); uVar4 = llstr(*(int8 *)(param_1 + 0xb18),local_48); _ma_check_print_error (param_1, "Found row with transaction id %s when max transaction id according to aria_control_file is %s" ,uVar3,uVar4); } } if (*(long *)(in_FS_OFFSET + 0x28) != local_10) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return; }
52,856
ma_check_print_not_visible_error
eloqsql/storage/maria/ma_check.c
static void _ma_check_print_not_visible_error(HA_CHECK *param, TrID used_trid) { char buff[22], buff2[22]; if (!param->not_visible_rows_found++) { if (!ma_control_file_inited()) { _ma_check_print_warning(param, "Found row with transaction id %s but no " "aria_control_file was used or specified. " "The table may be corrupted", llstr(used_trid, buff)); } else { _ma_check_print_error(param, "Found row with transaction id %s when max " "transaction id according to aria_control_file " "is %s", llstr(used_trid, buff), llstr(param->max_trid, buff2)); } } }
O3
c
ma_check_print_not_visible_error: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x48, %rsp movq %fs:0x28, %rax movq %rax, -0x20(%rbp) movq 0xb28(%rdi), %rax leaq 0x1(%rax), %rcx movq %rcx, 0xb28(%rdi) testq %rax, %rax jne 0x81f3e movq %rsi, %r14 movq %rdi, %rbx callq 0x4288e movl %eax, %r15d leaq -0x40(%rbp), %rsi movq %r14, %rdi callq 0xf5538 movq %rax, %r14 testb %r15b, %r15b je 0x81f2a movq 0xb18(%rbx), %rdi leaq -0x60(%rbp), %rsi callq 0xf5538 leaq 0x7b5e5(%rip), %rsi # 0xfd4fd movq %rbx, %rdi movq %r14, %rdx movq %rax, %rcx xorl %eax, %eax callq 0x32fb0 jmp 0x81f3e leaq 0x7b55f(%rip), %rsi # 0xfd490 movq %rbx, %rdi movq %r14, %rdx xorl %eax, %eax callq 0x32e58 movq %fs:0x28, %rax cmpq -0x20(%rbp), %rax jne 0x81f58 addq $0x48, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq callq 0x2a280
_ma_check_print_not_visible_error: push rbp mov rbp, rsp push r15 push r14 push rbx sub rsp, 48h mov rax, fs:28h mov [rbp+var_20], rax mov rax, [rdi+0B28h] lea rcx, [rax+1] mov [rdi+0B28h], rcx test rax, rax jnz short loc_81F3E mov r14, rsi mov rbx, rdi call ma_control_file_inited mov r15d, eax lea rsi, [rbp+var_40] mov rdi, r14 call llstr mov r14, rax test r15b, r15b jz short loc_81F2A mov rdi, [rbx+0B18h] lea rsi, [rbp+var_60] call llstr lea rsi, aFoundRowWithTr; "Found row with transaction id %s when m"... mov rdi, rbx mov rdx, r14 mov rcx, rax xor eax, eax call _ma_check_print_error jmp short loc_81F3E loc_81F2A: lea rsi, aFoundRowWithTr_0; "Found row with transaction id %s but no"... mov rdi, rbx mov rdx, r14 xor eax, eax call _ma_check_print_warning loc_81F3E: mov rax, fs:28h cmp rax, [rbp+var_20] jnz short loc_81F58 add rsp, 48h pop rbx pop r14 pop r15 pop rbp retn loc_81F58: call ___stack_chk_fail
unsigned long long ma_check_print_not_visible_error(long long a1, long long a2) { long long v2; // rax bool v3; // r15 const char *v4; // rax const char *v5; // r14 const char *v6; // rax _BYTE v8[32]; // [rsp+0h] [rbp-60h] BYREF _BYTE v9[32]; // [rsp+20h] [rbp-40h] BYREF unsigned long long v10; // [rsp+40h] [rbp-20h] v10 = __readfsqword(0x28u); v2 = *(_QWORD *)(a1 + 2856); *(_QWORD *)(a1 + 2856) = v2 + 1; if ( !v2 ) { v3 = ma_control_file_inited(); v4 = (const char *)llstr(a2, v9); v5 = v4; if ( v3 ) { v6 = (const char *)llstr(*(_QWORD *)(a1 + 2840), v8); ma_check_print_error( a1, (long long)"Found row with transaction id %s when max transaction id according to aria_control_file is %s", v5, v6); } else { ma_check_print_warning( a1, (long long)"Found row with transaction id %s but no aria_control_file was used or specified. The table may be corrupted", v4); } } return __readfsqword(0x28u); }
_ma_check_print_not_visible_error: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x48 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RDI + 0xb28] LEA RCX,[RAX + 0x1] MOV qword ptr [RDI + 0xb28],RCX TEST RAX,RAX JNZ 0x00181f3e MOV R14,RSI MOV RBX,RDI CALL 0x0014288e MOV R15D,EAX LEA RSI,[RBP + -0x40] MOV RDI,R14 CALL 0x001f5538 MOV R14,RAX TEST R15B,R15B JZ 0x00181f2a MOV RDI,qword ptr [RBX + 0xb18] LEA RSI,[RBP + -0x60] CALL 0x001f5538 LEA RSI,[0x1fd4fd] MOV RDI,RBX MOV RDX,R14 MOV RCX,RAX XOR EAX,EAX CALL 0x00132fb0 JMP 0x00181f3e LAB_00181f2a: LEA RSI,[0x1fd490] MOV RDI,RBX MOV RDX,R14 XOR EAX,EAX CALL 0x00132e58 LAB_00181f3e: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x20] JNZ 0x00181f58 ADD RSP,0x48 POP RBX POP R14 POP R15 POP RBP RET LAB_00181f58: CALL 0x0012a280
void _ma_check_print_not_visible_error(long param_1,int8 param_2) { long lVar1; char cVar2; int8 uVar3; int8 uVar4; long in_FS_OFFSET; int1 local_68 [32]; int1 local_48 [32]; long local_28; local_28 = *(long *)(in_FS_OFFSET + 0x28); lVar1 = *(long *)(param_1 + 0xb28); *(long *)(param_1 + 0xb28) = lVar1 + 1; if (lVar1 == 0) { cVar2 = ma_control_file_inited(); uVar3 = llstr(param_2,local_48); if (cVar2 == '\0') { _ma_check_print_warning (param_1, "Found row with transaction id %s but no aria_control_file was used or specified. The table may be corrupted" ,uVar3); } else { uVar4 = llstr(*(int8 *)(param_1 + 0xb18),local_68); _ma_check_print_error (param_1, "Found row with transaction id %s when max transaction id according to aria_control_file is %s" ,uVar3,uVar4); } } if (*(long *)(in_FS_OFFSET + 0x28) == local_28) { return; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
52,857
js_number_constructor
bluesky950520[P]quickjs/quickjs.c
static JSValue js_number_constructor(JSContext *ctx, JSValue new_target, int argc, JSValue *argv) { JSValue val, obj; if (argc == 0) { val = js_int32(0); } else { val = JS_ToNumeric(ctx, argv[0]); if (JS_IsException(val)) return val; switch(JS_VALUE_GET_TAG(val)) { case JS_TAG_BIG_INT: { JSBigInt *p = JS_VALUE_GET_PTR(val); double d; bf_get_float64(&p->num, &d, BF_RNDN); JS_FreeValue(ctx, val); val = js_float64(d); } break; default: break; } } if (!JS_IsUndefined(new_target)) { obj = js_create_from_ctor(ctx, new_target, JS_CLASS_NUMBER); if (!JS_IsException(obj)) JS_SetObjectData(ctx, obj, val); return obj; } else { return val; } }
O1
c
js_number_constructor: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx testl %ecx, %ecx je 0x388cf movq (%r8), %rsi movq 0x8(%r8), %rdx movq %rsi, 0x8(%rsp) cmpl $-0x9, %edx jb 0x38875 movq 0x8(%rsp), %rax incl (%rax) movq %rbx, %rdi movl $0x1, %ecx callq 0x42b20 movq %rdx, %r12 movq %rax, 0x8(%rsp) cmpl $0x6, %r12d je 0x388dc cmpl $-0x9, %r12d jne 0x388e1 movq 0x8(%rsp), %r13 leaq 0x8(%r13), %rdi leaq 0x10(%rsp), %rbp movq %rbp, %rsi xorl %edx, %edx callq 0x884ee movq 0x18(%rbx), %rdi movq %r13, %rsi movq %r12, %rdx callq 0x1d8c6 movsd (%rbp), %xmm0 movsd %xmm0, 0x8(%rsp) movl $0x7, %ebp jmp 0x388e4 movq $0x0, 0x8(%rsp) xorl %ebp, %ebp jmp 0x388e4 movq %rax, %r13 jmp 0x38929 movq %r12, %rbp cmpl $0x3, %r14d jne 0x388f4 movq 0x8(%rsp), %r13 movq %rbp, %r12 jmp 0x38929 movq %rbx, %rdi movq %r15, %rsi movq %r14, %rdx movl $0x4, %ecx callq 0x36d56 movq %rax, %r13 movq %rdx, %r12 cmpl $0x6, %r12d je 0x38929 movq 0x8(%rsp), %rcx movq %rbx, %rdi movq %r13, %rsi movq %r12, %rdx movq %rbp, %r8 callq 0x36e62 movq %r13, %rax movq %r12, %rdx addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
js_number_constructor: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r14, rdx mov r15, rsi mov rbx, rdi test ecx, ecx jz short loc_388CF mov rsi, [r8] mov rdx, [r8+8] mov [rsp+48h+var_40], rsi cmp edx, 0FFFFFFF7h jb short loc_38875 mov rax, [rsp+48h+var_40] inc dword ptr [rax] loc_38875: mov rdi, rbx mov ecx, 1 call JS_ToNumberHintFree mov r12, rdx mov [rsp+48h+var_40], rax cmp r12d, 6 jz short loc_388DC cmp r12d, 0FFFFFFF7h jnz short loc_388E1 mov r13, [rsp+48h+var_40] lea rdi, [r13+8] lea rbp, [rsp+48h+var_38] mov rsi, rbp xor edx, edx call bf_get_float64 mov rdi, [rbx+18h] mov rsi, r13 mov rdx, r12 call JS_FreeValueRT movsd xmm0, qword ptr [rbp+0] movsd [rsp+48h+var_40], xmm0 mov ebp, 7 jmp short loc_388E4 loc_388CF: mov [rsp+48h+var_40], 0 xor ebp, ebp jmp short loc_388E4 loc_388DC: mov r13, rax jmp short loc_38929 loc_388E1: mov rbp, r12 loc_388E4: cmp r14d, 3 jnz short loc_388F4 mov r13, [rsp+48h+var_40] mov r12, rbp jmp short loc_38929 loc_388F4: mov rdi, rbx mov rsi, r15 mov rdx, r14 mov ecx, 4 call js_create_from_ctor mov r13, rax mov r12, rdx cmp r12d, 6 jz short loc_38929 mov rcx, [rsp+48h+var_40] mov rdi, rbx mov rsi, r13 mov rdx, r12 mov r8, rbp call JS_SetObjectData loc_38929: mov rax, r13 mov rdx, r12 add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
_DWORD * js_number_constructor( long long a1, long long a2, long long a3, int a4, _QWORD *a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, double a10, double a11, __m128 a12, __m128 a13) { _DWORD *v15; // rsi long long v16; // rdx long long v17; // rax long long v18; // rdx long long v19; // r12 long long v20; // rbp unsigned long long v21; // r13 unsigned long long v22; // rax int v23; // edx long long v24; // r9 double v25; // xmm4_8 double v26; // xmm5_8 char v28; // [rsp+0h] [rbp-48h] _DWORD *v29; // [rsp+8h] [rbp-40h] _DWORD *v30; // [rsp+10h] [rbp-38h] BYREF if ( a4 ) { v15 = (_DWORD *)*a5; v16 = a5[1]; if ( (unsigned int)v16 >= 0xFFFFFFF7 ) ++*(_DWORD *)*a5; v17 = JS_ToNumberHintFree(a1, v15, v16, 1LL); v19 = v18; v29 = (_DWORD *)v17; if ( (_DWORD)v18 == 6 ) return (_DWORD *)v17; if ( (_DWORD)v18 == -9 ) { bf_get_float64(v17 + 8, &v30, 0LL); JS_FreeValueRT(*(_QWORD *)(a1 + 24), v29, v19); a6 = (__m128)(unsigned long long)v30; v29 = v30; v20 = 7LL; } else { v20 = v18; } } else { v29 = 0LL; v20 = 0LL; } if ( (_DWORD)a3 == 3 ) return v29; v22 = js_create_from_ctor(a1, a2, a3, 4); v21 = v22; if ( v23 != 6 ) JS_SetObjectData(a1, v22, v23, v29, v20, a6, a7, a8, a9, v25, v26, a12, a13, v24, v28); return (_DWORD *)v21; }
52,858
js_number_constructor
bluesky950520[P]quickjs/quickjs.c
static JSValue js_number_constructor(JSContext *ctx, JSValue new_target, int argc, JSValue *argv) { JSValue val, obj; if (argc == 0) { val = js_int32(0); } else { val = JS_ToNumeric(ctx, argv[0]); if (JS_IsException(val)) return val; switch(JS_VALUE_GET_TAG(val)) { case JS_TAG_BIG_INT: { JSBigInt *p = JS_VALUE_GET_PTR(val); double d; bf_get_float64(&p->num, &d, BF_RNDN); JS_FreeValue(ctx, val); val = js_float64(d); } break; default: break; } } if (!JS_IsUndefined(new_target)) { obj = js_create_from_ctor(ctx, new_target, JS_CLASS_NUMBER); if (!JS_IsException(obj)) JS_SetObjectData(ctx, obj, val); return obj; } else { return val; } }
O2
c
js_number_constructor: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx testl %ecx, %ecx je 0x31ae2 movq (%r8), %rsi movq 0x8(%r8), %rdx cmpl $-0x9, %edx jb 0x31a9c incl (%rsi) movq %rbx, %rdi callq 0x3a3be movq %rax, %r12 movq %rdx, %r13 cmpl $0x6, %r13d je 0x31aee cmpl $-0x9, %r13d jne 0x31ae8 movq %r12, %rdi addq $0x8, %rdi movq %rsp, %rbp movq %rbp, %rsi xorl %edx, %edx callq 0x723c2 movq %rbx, %rdi movq %r12, %rsi movq %r13, %rdx callq 0x1801e movq (%rbp), %r12 pushq $0x7 popq %r13 jmp 0x31ae8 xorl %r12d, %r12d xorl %r13d, %r13d cmpl $0x3, %r14d jne 0x31af6 movq %r12, %r14 movq %r13, %r15 jmp 0x31b27 pushq $0x4 popq %rcx movq %rbx, %rdi movq %r15, %rsi movq %r14, %rdx callq 0x3045a movq %rax, %r14 movq %rdx, %r15 cmpl $0x6, %r15d je 0x31b27 movq %rbx, %rdi movq %r14, %rsi movq %r15, %rdx movq %r12, %rcx movq %r13, %r8 callq 0x3055c movq %r14, %rax movq %r15, %rdx addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
js_number_constructor: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov r14, rdx mov r15, rsi mov rbx, rdi test ecx, ecx jz short loc_31AE2 mov rsi, [r8] mov rdx, [r8+8] cmp edx, 0FFFFFFF7h jb short loc_31A9C inc dword ptr [rsi] loc_31A9C: mov rdi, rbx call JS_ToNumericFree mov r12, rax mov r13, rdx cmp r13d, 6 jz short loc_31AEE cmp r13d, 0FFFFFFF7h jnz short loc_31AE8 mov rdi, r12 add rdi, 8 mov rbp, rsp mov rsi, rbp xor edx, edx call bf_get_float64 mov rdi, rbx mov rsi, r12 mov rdx, r13 call JS_FreeValue mov r12, [rbp+0] push 7 pop r13 jmp short loc_31AE8 loc_31AE2: xor r12d, r12d xor r13d, r13d loc_31AE8: cmp r14d, 3 jnz short loc_31AF6 loc_31AEE: mov r14, r12 mov r15, r13 jmp short loc_31B27 loc_31AF6: push 4 pop rcx mov rdi, rbx mov rsi, r15 mov rdx, r14 call js_create_from_ctor mov r14, rax mov r15, rdx cmp r15d, 6 jz short loc_31B27 mov rdi, rbx mov rsi, r14 mov rdx, r15 mov rcx, r12 mov r8, r13 call JS_SetObjectData loc_31B27: mov rax, r14 mov rdx, r15 add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long js_number_constructor( long long a1, long long a2, long long a3, int a4, long long a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, double a10, double a11, __m128 a12, __m128 a13) { long long v13; // rax _DWORD *v16; // rsi long long v17; // rax long long v18; // rdx long long v19; // r12 long long v20; // r13 unsigned long long v21; // r14 unsigned long long v22; // rax int v23; // edx long long v24; // r9 double v25; // xmm4_8 double v26; // xmm5_8 long long v28; // [rsp-8h] [rbp-38h] BYREF v28 = v13; if ( a4 ) { v16 = *(_DWORD **)a5; if ( (unsigned int)*(_QWORD *)(a5 + 8) >= 0xFFFFFFF7 ) ++*v16; v17 = JS_ToNumericFree(a1, v16); v19 = v17; v20 = v18; if ( (_DWORD)v18 == 6 ) return v19; if ( (_DWORD)v18 == -9 ) { bf_get_float64(v17 + 8, &v28, 0LL); JS_FreeValue(a1, v19, v20); v19 = v28; v20 = 7LL; } } else { v19 = 0LL; v20 = 0LL; } if ( (_DWORD)a3 == 3 ) return v19; v22 = js_create_from_ctor(a1, a2, a3, 4); v21 = v22; if ( v23 != 6 ) JS_SetObjectData(a1, v22, v23, v19, v20, a6, a7, a8, a9, v25, v26, a12, a13, v24, v28); return v21; }
js_number_constructor: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R14,RDX MOV R15,RSI MOV RBX,RDI TEST ECX,ECX JZ 0x00131ae2 MOV RSI,qword ptr [R8] MOV RDX,qword ptr [R8 + 0x8] CMP EDX,-0x9 JC 0x00131a9c INC dword ptr [RSI] LAB_00131a9c: MOV RDI,RBX CALL 0x0013a3be MOV R12,RAX MOV R13,RDX CMP R13D,0x6 JZ 0x00131aee CMP R13D,-0x9 JNZ 0x00131ae8 MOV RDI,R12 ADD RDI,0x8 MOV RBP,RSP MOV RSI,RBP XOR EDX,EDX CALL 0x001723c2 MOV RDI,RBX MOV RSI,R12 MOV RDX,R13 CALL 0x0011801e MOV R12,qword ptr [RBP] PUSH 0x7 POP R13 JMP 0x00131ae8 LAB_00131ae2: XOR R12D,R12D XOR R13D,R13D LAB_00131ae8: CMP R14D,0x3 JNZ 0x00131af6 LAB_00131aee: MOV R14,R12 MOV R15,R13 JMP 0x00131b27 LAB_00131af6: PUSH 0x4 POP RCX MOV RDI,RBX MOV RSI,R15 MOV RDX,R14 CALL 0x0013045a MOV R14,RAX MOV R15,RDX CMP R15D,0x6 JZ 0x00131b27 MOV RDI,RBX MOV RSI,R14 MOV RDX,R15 MOV RCX,R12 MOV R8,R13 CALL 0x0013055c LAB_00131b27: MOV RAX,R14 MOV RDX,R15 ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int1 [16] js_number_constructor (int8 param_1,int8 param_2,int8 param_3,int param_4,int8 *param_5) { long in_RAX; int8 uVar1; int8 uVar2; int1 auVar3 [16]; long local_38; if (param_4 == 0) { auVar3 = ZEXT816(0); } else { if (0xfffffff6 < (uint)param_5[1]) { *(int *)*param_5 = *(int *)*param_5 + 1; } local_38 = in_RAX; auVar3 = JS_ToNumericFree(param_1); if (auVar3._8_4_ == 6) { return auVar3; } if (auVar3._8_4_ == -9) { bf_get_float64(auVar3._0_8_ + 8,&local_38,0); JS_FreeValue(param_1,auVar3._0_8_,auVar3._8_8_); auVar3._8_8_ = 7; auVar3._0_8_ = local_38; } } uVar2 = auVar3._8_8_; uVar1 = auVar3._0_8_; if ((int)param_3 != 3) { auVar3 = js_create_from_ctor(param_1,param_2,param_3,4); if (auVar3._8_4_ != 6) { JS_SetObjectData(param_1,auVar3._0_8_,auVar3._8_8_,uVar1,uVar2); } } return auVar3; }
52,859
pfs_start_table_lock_wait_v1
eloqsql/storage/perfschema/pfs.cc
PSI_table_locker* pfs_start_table_lock_wait_v1(PSI_table_locker_state *state, PSI_table *table, PSI_table_lock_operation op, ulong op_flags, const char *src_file, uint src_line) { assert(state != NULL); assert((op == PSI_TABLE_LOCK) || (op == PSI_TABLE_EXTERNAL_LOCK)); PFS_table *pfs_table= reinterpret_cast<PFS_table*> (table); assert(pfs_table != NULL); assert(pfs_table->m_share != NULL); if (! pfs_table->m_lock_enabled) return NULL; PFS_thread *pfs_thread= my_thread_get_THR_PFS(); PFS_TL_LOCK_TYPE lock_type; switch (op) { case PSI_TABLE_LOCK: lock_type= lock_flags_to_lock_type(op_flags); pfs_table->m_internal_lock= lock_type; break; case PSI_TABLE_EXTERNAL_LOCK: /* See the handler::external_lock() API design, there is no handler::external_unlock(). */ if (op_flags == F_UNLCK) { pfs_table->m_external_lock= PFS_TL_NONE; return NULL; } lock_type= external_lock_flags_to_lock_type(op_flags); pfs_table->m_external_lock= lock_type; break; default: lock_type= PFS_TL_READ; assert(false); } assert((uint) lock_type < array_elements(table_lock_operation_map)); uint flags; ulonglong timer_start= 0; if (flag_thread_instrumentation) { if (pfs_thread == NULL) return NULL; if (! pfs_thread->m_enabled) return NULL; state->m_thread= reinterpret_cast<PSI_thread *> (pfs_thread); flags= STATE_FLAG_THREAD; if (pfs_table->m_lock_timed) { timer_start= get_timer_raw_value_and_function(wait_timer, & state->m_timer); state->m_timer_start= timer_start; flags|= STATE_FLAG_TIMED; } if (flag_events_waits_current) { if (unlikely(pfs_thread->m_events_waits_current >= & pfs_thread->m_events_waits_stack[WAIT_STACK_SIZE])) { locker_lost++; return NULL; } PFS_events_waits *wait= pfs_thread->m_events_waits_current; state->m_wait= wait; flags|= STATE_FLAG_EVENT; PFS_events_waits *parent_event= wait - 1; wait->m_event_type= EVENT_TYPE_WAIT; wait->m_nesting_event_id= parent_event->m_event_id; wait->m_nesting_event_type= parent_event->m_event_type; PFS_table_share *share= pfs_table->m_share; wait->m_thread_internal_id= pfs_thread->m_thread_internal_id; wait->m_class= &global_table_lock_class; wait->m_timer_start= timer_start; wait->m_timer_end= 0; wait->m_object_instance_addr= pfs_table->m_identity; wait->m_event_id= pfs_thread->m_event_id++; wait->m_end_event_id= 0; wait->m_operation= table_lock_operation_map[lock_type]; wait->m_flags= 0; wait->m_object_type= share->get_object_type(); wait->m_weak_table_share= share; wait->m_weak_version= share->get_version(); wait->m_index= 0; wait->m_source_file= src_file; wait->m_source_line= src_line; wait->m_wait_class= WAIT_CLASS_TABLE; pfs_thread->m_events_waits_current++; } } else { if (pfs_table->m_lock_timed) { timer_start= get_timer_raw_value_and_function(wait_timer, & state->m_timer); state->m_timer_start= timer_start; flags= STATE_FLAG_TIMED; } else { /* TODO: consider a shortcut here */ flags= 0; } } state->m_flags= flags; state->m_table= table; state->m_index= lock_type; return reinterpret_cast<PSI_table_locker*> (state); }
O0
cpp
pfs_start_table_lock_wait_v1: pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movl %r9d, -0x34(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x40(%rbp), %rax testb $0x1, 0x1(%rax) jne 0x475a1 movq $0x0, -0x8(%rbp) jmp 0x47905 callq 0x45700 movq %rax, -0x48(%rbp) movl -0x1c(%rbp), %eax movl %eax, -0x74(%rbp) testl %eax, %eax je 0x475c0 jmp 0x475b6 movl -0x74(%rbp), %eax subl $0x1, %eax je 0x475dd jmp 0x4761c movq -0x28(%rbp), %rax movl %eax, %edi callq 0x47920 movl %eax, -0x4c(%rbp) movl -0x4c(%rbp), %ecx movq -0x40(%rbp), %rax movl %ecx, 0x2418(%rax) jmp 0x47623 cmpq $0x2, -0x28(%rbp) jne 0x475ff movq -0x40(%rbp), %rax movl $0x63, 0x241c(%rax) movq $0x0, -0x8(%rbp) jmp 0x47905 movq -0x28(%rbp), %rax movl %eax, %edi callq 0x479c0 movl %eax, -0x4c(%rbp) movl -0x4c(%rbp), %ecx movq -0x40(%rbp), %rax movl %ecx, 0x241c(%rax) jmp 0x47623 movl $0x0, -0x4c(%rbp) movq $0x0, -0x58(%rbp) leaq 0x3c698e(%rip), %rax # 0x40dfc0 testb $0x1, (%rax) je 0x4789c cmpq $0x0, -0x48(%rbp) jne 0x4764f movq $0x0, -0x8(%rbp) jmp 0x47905 movq -0x48(%rbp), %rax testb $0x1, 0x7e0(%rax) jne 0x47669 movq $0x0, -0x8(%rbp) jmp 0x47905 movq -0x48(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x18(%rax) movl $0x2, -0x50(%rbp) movq -0x40(%rbp), %rax testb $0x1, 0x3(%rax) je 0x476b5 leaq 0x1cbd2f(%rip), %rax # 0x2133bc movl (%rax), %edi movq -0x10(%rbp), %rsi addq $0x28, %rsi callq 0x42d20 movq %rax, -0x58(%rbp) movq -0x58(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x20(%rax) movl -0x50(%rbp), %eax orl $0x1, %eax movl %eax, -0x50(%rbp) leaq 0x3c6804(%rip), %rax # 0x40dec0 testb $0x1, (%rax) je 0x4789a movq -0x48(%rbp), %rax movq 0x7f0(%rax), %rax movq -0x48(%rbp), %rcx addq $0x878, %rcx # imm = 0x878 addq $0x420, %rcx # imm = 0x420 cmpq %rcx, %rax setae %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax je 0x47717 leaq 0x3c274f(%rip), %rax # 0x409e48 movq (%rax), %rcx addq $0x1, %rcx leaq 0x3c2741(%rip), %rax # 0x409e48 movq %rcx, (%rax) movq $0x0, -0x8(%rbp) jmp 0x47905 movq -0x48(%rbp), %rax movq 0x7f0(%rax), %rax movq %rax, -0x60(%rbp) movq -0x60(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x30(%rax) movl -0x50(%rbp), %eax orl $0x4, %eax movl %eax, -0x50(%rbp) movq -0x60(%rbp), %rax addq $-0xb0, %rax movq %rax, -0x68(%rbp) movq -0x60(%rbp), %rax movl $0x4, 0x18(%rax) movq -0x68(%rbp), %rax movq 0x8(%rax), %rcx movq -0x60(%rbp), %rax movq %rcx, 0x20(%rax) movq -0x68(%rbp), %rax movl 0x18(%rax), %ecx movq -0x60(%rbp), %rax movl %ecx, 0x28(%rax) movq -0x40(%rbp), %rax movq 0x20(%rax), %rax movq %rax, -0x70(%rbp) movq -0x48(%rbp), %rax movq 0x850(%rax), %rcx movq -0x60(%rbp), %rax movq %rcx, (%rax) movq -0x60(%rbp), %rax leaq 0x3c2d65(%rip), %rcx # 0x40a500 movq %rcx, 0x30(%rax) movq -0x58(%rbp), %rcx movq -0x60(%rbp), %rax movq %rcx, 0x38(%rax) movq -0x60(%rbp), %rax movq $0x0, 0x40(%rax) movq -0x40(%rbp), %rax movq 0x28(%rax), %rcx movq -0x60(%rbp), %rax movq %rcx, 0x88(%rax) movq -0x48(%rbp), %rax movq 0x7f8(%rax), %rcx movq %rcx, %rdx addq $0x1, %rdx movq %rdx, 0x7f8(%rax) movq -0x60(%rbp), %rax movq %rcx, 0x8(%rax) movq -0x60(%rbp), %rax movq $0x0, 0x10(%rax) movl -0x4c(%rbp), %eax movl %eax, %ecx leaq 0x1cbc1d(%rip), %rax # 0x213420 movl (%rax,%rcx,4), %ecx movq -0x60(%rbp), %rax movl %ecx, 0x90(%rax) movq -0x60(%rbp), %rax movq $0x0, 0xa8(%rax) movq -0x70(%rbp), %rdi callq 0x4e3e0 movl %eax, %ecx movq -0x60(%rbp), %rax movl %ecx, 0x5c(%rax) movq -0x70(%rbp), %rcx movq -0x60(%rbp), %rax movq %rcx, 0x60(%rax) movq -0x70(%rbp), %rdi callq 0x4e400 movl %eax, %ecx movq -0x60(%rbp), %rax movl %ecx, 0x80(%rax) movq -0x60(%rbp), %rax movl $0x0, 0xa0(%rax) movq -0x30(%rbp), %rcx movq -0x60(%rbp), %rax movq %rcx, 0x48(%rax) movl -0x34(%rbp), %ecx movq -0x60(%rbp), %rax movl %ecx, 0x50(%rax) movq -0x60(%rbp), %rax movl $0x4, 0x58(%rax) movq -0x48(%rbp), %rax movq 0x7f0(%rax), %rcx addq $0xb0, %rcx movq %rcx, 0x7f0(%rax) jmp 0x478de movq -0x40(%rbp), %rax testb $0x1, 0x3(%rax) je 0x478d5 leaq 0x1cbb0f(%rip), %rax # 0x2133bc movl (%rax), %edi movq -0x10(%rbp), %rsi addq $0x28, %rsi callq 0x42d20 movq %rax, -0x58(%rbp) movq -0x58(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x20(%rax) movl $0x1, -0x50(%rbp) jmp 0x478dc movl $0x0, -0x50(%rbp) jmp 0x478de movl -0x50(%rbp), %ecx movq -0x10(%rbp), %rax movl %ecx, (%rax) movq -0x18(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x8(%rax) movl -0x4c(%rbp), %ecx movq -0x10(%rbp), %rax movl %ecx, 0x38(%rax) movq -0x10(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x80, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
pfs_start_table_lock_wait_v1: push rbp mov rbp, rsp sub rsp, 80h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_1C], edx mov qword ptr [rbp+var_28], rcx mov [rbp+var_30], r8 mov [rbp+var_34], r9d mov rax, [rbp+var_18] mov [rbp+var_40], rax mov rax, [rbp+var_40] test byte ptr [rax+1], 1 jnz short loc_475A1 mov [rbp+var_8], 0 jmp loc_47905 loc_475A1: call _ZL21my_thread_get_THR_PFSv; my_thread_get_THR_PFS(void) mov [rbp+var_48], rax mov eax, [rbp+var_1C] mov [rbp+var_74], eax test eax, eax jz short loc_475C0 jmp short $+2 loc_475B6: mov eax, [rbp+var_74] sub eax, 1 jz short loc_475DD jmp short loc_4761C loc_475C0: mov rax, qword ptr [rbp+var_28] mov edi, eax; unsigned int call _ZL23lock_flags_to_lock_typej; lock_flags_to_lock_type(uint) mov [rbp+var_4C], eax mov ecx, [rbp+var_4C] mov rax, [rbp+var_40] mov [rax+2418h], ecx jmp short loc_47623 loc_475DD: cmp qword ptr [rbp+var_28], 2 jnz short loc_475FF mov rax, [rbp+var_40] mov dword ptr [rax+241Ch], 63h ; 'c' mov [rbp+var_8], 0 jmp loc_47905 loc_475FF: mov rax, qword ptr [rbp+var_28] mov edi, eax; unsigned int call _ZL32external_lock_flags_to_lock_typej; external_lock_flags_to_lock_type(uint) mov [rbp+var_4C], eax mov ecx, [rbp+var_4C] mov rax, [rbp+var_40] mov [rax+241Ch], ecx jmp short loc_47623 loc_4761C: mov [rbp+var_4C], 0 loc_47623: mov [rbp+var_58], 0 lea rax, flag_thread_instrumentation test byte ptr [rax], 1 jz loc_4789C cmp [rbp+var_48], 0 jnz short loc_4764F mov [rbp+var_8], 0 jmp loc_47905 loc_4764F: mov rax, [rbp+var_48] test byte ptr [rax+7E0h], 1 jnz short loc_47669 mov [rbp+var_8], 0 jmp loc_47905 loc_47669: mov rcx, [rbp+var_48] mov rax, [rbp+var_10] mov [rax+18h], rcx mov [rbp+var_50], 2 mov rax, [rbp+var_40] test byte ptr [rax+3], 1 jz short loc_476B5 lea rax, wait_timer mov edi, [rax] mov rsi, [rbp+var_10] add rsi, 28h ; '(' call _Z32get_timer_raw_value_and_function15enum_timer_namePPFyvE; get_timer_raw_value_and_function(enum_timer_name,ulong long (**)(void)) mov [rbp+var_58], rax mov rcx, [rbp+var_58] mov rax, [rbp+var_10] mov [rax+20h], rcx mov eax, [rbp+var_50] or eax, 1 mov [rbp+var_50], eax loc_476B5: lea rax, flag_events_waits_current test byte ptr [rax], 1 jz loc_4789A mov rax, [rbp+var_48] mov rax, [rax+7F0h] mov rcx, [rbp+var_48] add rcx, 878h add rcx, 420h cmp rax, rcx setnb al and al, 1 movzx eax, al cmp eax, 0 jz short loc_47717 lea rax, locker_lost mov rcx, [rax] add rcx, 1 lea rax, locker_lost mov [rax], rcx mov [rbp+var_8], 0 jmp loc_47905 loc_47717: mov rax, [rbp+var_48] mov rax, [rax+7F0h] mov [rbp+var_60], rax mov rcx, [rbp+var_60] mov rax, [rbp+var_10] mov [rax+30h], rcx mov eax, [rbp+var_50] or eax, 4 mov [rbp+var_50], eax mov rax, [rbp+var_60] add rax, 0FFFFFFFFFFFFFF50h mov [rbp+var_68], rax mov rax, [rbp+var_60] mov dword ptr [rax+18h], 4 mov rax, [rbp+var_68] mov rcx, [rax+8] mov rax, [rbp+var_60] mov [rax+20h], rcx mov rax, [rbp+var_68] mov ecx, [rax+18h] mov rax, [rbp+var_60] mov [rax+28h], ecx mov rax, [rbp+var_40] mov rax, [rax+20h] mov [rbp+var_70], rax mov rax, [rbp+var_48] mov rcx, [rax+850h] mov rax, [rbp+var_60] mov [rax], rcx mov rax, [rbp+var_60] lea rcx, global_table_lock_class mov [rax+30h], rcx mov rcx, [rbp+var_58] mov rax, [rbp+var_60] mov [rax+38h], rcx mov rax, [rbp+var_60] mov qword ptr [rax+40h], 0 mov rax, [rbp+var_40] mov rcx, [rax+28h] mov rax, [rbp+var_60] mov [rax+88h], rcx mov rax, [rbp+var_48] mov rcx, [rax+7F8h] mov rdx, rcx add rdx, 1 mov [rax+7F8h], rdx mov rax, [rbp+var_60] mov [rax+8], rcx mov rax, [rbp+var_60] mov qword ptr [rax+10h], 0 mov eax, [rbp+var_4C] mov ecx, eax lea rax, _ZL24table_lock_operation_map; table_lock_operation_map mov ecx, [rax+rcx*4] mov rax, [rbp+var_60] mov [rax+90h], ecx mov rax, [rbp+var_60] mov qword ptr [rax+0A8h], 0 mov rdi, [rbp+var_70]; this call _ZN15PFS_table_share15get_object_typeEv; PFS_table_share::get_object_type(void) mov ecx, eax mov rax, [rbp+var_60] mov [rax+5Ch], ecx mov rcx, [rbp+var_70] mov rax, [rbp+var_60] mov [rax+60h], rcx mov rdi, [rbp+var_70]; this call _ZN15PFS_table_share11get_versionEv; PFS_table_share::get_version(void) mov ecx, eax mov rax, [rbp+var_60] mov [rax+80h], ecx mov rax, [rbp+var_60] mov dword ptr [rax+0A0h], 0 mov rcx, [rbp+var_30] mov rax, [rbp+var_60] mov [rax+48h], rcx mov ecx, [rbp+var_34] mov rax, [rbp+var_60] mov [rax+50h], ecx mov rax, [rbp+var_60] mov dword ptr [rax+58h], 4 mov rax, [rbp+var_48] mov rcx, [rax+7F0h] add rcx, 0B0h mov [rax+7F0h], rcx loc_4789A: jmp short loc_478DE loc_4789C: mov rax, [rbp+var_40] test byte ptr [rax+3], 1 jz short loc_478D5 lea rax, wait_timer mov edi, [rax] mov rsi, [rbp+var_10] add rsi, 28h ; '(' call _Z32get_timer_raw_value_and_function15enum_timer_namePPFyvE; get_timer_raw_value_and_function(enum_timer_name,ulong long (**)(void)) mov [rbp+var_58], rax mov rcx, [rbp+var_58] mov rax, [rbp+var_10] mov [rax+20h], rcx mov [rbp+var_50], 1 jmp short loc_478DC loc_478D5: mov [rbp+var_50], 0 loc_478DC: jmp short $+2 loc_478DE: mov ecx, [rbp+var_50] mov rax, [rbp+var_10] mov [rax], ecx mov rcx, [rbp+var_18] mov rax, [rbp+var_10] mov [rax+8], rcx mov ecx, [rbp+var_4C] mov rax, [rbp+var_10] mov [rax+38h], ecx mov rax, [rbp+var_10] mov [rbp+var_8], rax loc_47905: mov rax, [rbp+var_8] add rsp, 80h pop rbp retn
long long pfs_start_table_lock_wait_v1(long long a1, long long a2, int a3, long long a4, long long a5, int a6) { long long v6; // rcx PFS_table_share *v8; // [rsp+10h] [rbp-70h] long long v9; // [rsp+20h] [rbp-60h] unsigned long long timer_raw_value_and_function; // [rsp+28h] [rbp-58h] int v11; // [rsp+30h] [rbp-50h] int v12; // [rsp+34h] [rbp-4Ch] long long THR_PFS; // [rsp+38h] [rbp-48h] if ( (*(_BYTE *)(a2 + 1) & 1) != 0 ) { THR_PFS = my_thread_get_THR_PFS(); if ( a3 ) { if ( a3 == 1 ) { if ( a4 == 2 ) { *(_DWORD *)(a2 + 9244) = 99; return 0LL; } v12 = external_lock_flags_to_lock_type(a4); *(_DWORD *)(a2 + 9244) = v12; } else { v12 = 0; } } else { v12 = lock_flags_to_lock_type(a4); *(_DWORD *)(a2 + 9240) = v12; } timer_raw_value_and_function = 0LL; if ( (flag_thread_instrumentation & 1) != 0 ) { if ( !THR_PFS ) return 0LL; if ( (*(_BYTE *)(THR_PFS + 2016) & 1) == 0 ) return 0LL; *(_QWORD *)(a1 + 24) = THR_PFS; v11 = 2; if ( (*(_BYTE *)(a2 + 3) & 1) != 0 ) { timer_raw_value_and_function = get_timer_raw_value_and_function( (unsigned int)wait_timer, (unsigned long long (**)(void))(a1 + 40)); *(_QWORD *)(a1 + 32) = timer_raw_value_and_function; v11 = 3; } if ( (flag_events_waits_current & 1) != 0 ) { if ( *(_QWORD *)(THR_PFS + 2032) >= (unsigned long long)(THR_PFS + 3224) ) { ++locker_lost; return 0LL; } v9 = *(_QWORD *)(THR_PFS + 2032); *(_QWORD *)(a1 + 48) = v9; v11 |= 4u; *(_DWORD *)(v9 + 24) = 4; *(_QWORD *)(v9 + 32) = *(_QWORD *)(v9 - 176 + 8); *(_DWORD *)(v9 + 40) = *(_DWORD *)(v9 - 176 + 24); v8 = *(PFS_table_share **)(a2 + 32); *(_QWORD *)v9 = *(_QWORD *)(THR_PFS + 2128); *(_QWORD *)(v9 + 48) = global_table_lock_class; *(_QWORD *)(v9 + 56) = timer_raw_value_and_function; *(_QWORD *)(v9 + 64) = 0LL; *(_QWORD *)(v9 + 136) = *(_QWORD *)(a2 + 40); v6 = *(_QWORD *)(THR_PFS + 2040); *(_QWORD *)(THR_PFS + 2040) = v6 + 1; *(_QWORD *)(v9 + 8) = v6; *(_QWORD *)(v9 + 16) = 0LL; *(_DWORD *)(v9 + 144) = table_lock_operation_map[v12]; *(_QWORD *)(v9 + 168) = 0LL; *(_DWORD *)(v9 + 92) = PFS_table_share::get_object_type(v8); *(_QWORD *)(v9 + 96) = v8; *(_DWORD *)(v9 + 128) = PFS_table_share::get_version(v8); *(_DWORD *)(v9 + 160) = 0; *(_QWORD *)(v9 + 72) = a5; *(_DWORD *)(v9 + 80) = a6; *(_DWORD *)(v9 + 88) = 4; *(_QWORD *)(THR_PFS + 2032) += 176LL; } } else if ( (*(_BYTE *)(a2 + 3) & 1) != 0 ) { *(_QWORD *)(a1 + 32) = get_timer_raw_value_and_function( (unsigned int)wait_timer, (unsigned long long (**)(void))(a1 + 40)); v11 = 1; } else { v11 = 0; } *(_DWORD *)a1 = v11; *(_QWORD *)(a1 + 8) = a2; *(_DWORD *)(a1 + 56) = v12; return a1; } return 0LL; }
pfs_start_table_lock_wait_v1: PUSH RBP MOV RBP,RSP SUB RSP,0x80 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV dword ptr [RBP + -0x1c],EDX MOV qword ptr [RBP + -0x28],RCX MOV qword ptr [RBP + -0x30],R8 MOV dword ptr [RBP + -0x34],R9D MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x40] TEST byte ptr [RAX + 0x1],0x1 JNZ 0x001475a1 MOV qword ptr [RBP + -0x8],0x0 JMP 0x00147905 LAB_001475a1: CALL 0x00145700 MOV qword ptr [RBP + -0x48],RAX MOV EAX,dword ptr [RBP + -0x1c] MOV dword ptr [RBP + -0x74],EAX TEST EAX,EAX JZ 0x001475c0 JMP 0x001475b6 LAB_001475b6: MOV EAX,dword ptr [RBP + -0x74] SUB EAX,0x1 JZ 0x001475dd JMP 0x0014761c LAB_001475c0: MOV RAX,qword ptr [RBP + -0x28] MOV EDI,EAX CALL 0x00147920 MOV dword ptr [RBP + -0x4c],EAX MOV ECX,dword ptr [RBP + -0x4c] MOV RAX,qword ptr [RBP + -0x40] MOV dword ptr [RAX + 0x2418],ECX JMP 0x00147623 LAB_001475dd: CMP qword ptr [RBP + -0x28],0x2 JNZ 0x001475ff MOV RAX,qword ptr [RBP + -0x40] MOV dword ptr [RAX + 0x241c],0x63 MOV qword ptr [RBP + -0x8],0x0 JMP 0x00147905 LAB_001475ff: MOV RAX,qword ptr [RBP + -0x28] MOV EDI,EAX CALL 0x001479c0 MOV dword ptr [RBP + -0x4c],EAX MOV ECX,dword ptr [RBP + -0x4c] MOV RAX,qword ptr [RBP + -0x40] MOV dword ptr [RAX + 0x241c],ECX JMP 0x00147623 LAB_0014761c: MOV dword ptr [RBP + -0x4c],0x0 LAB_00147623: MOV qword ptr [RBP + -0x58],0x0 LEA RAX,[0x50dfc0] TEST byte ptr [RAX],0x1 JZ 0x0014789c CMP qword ptr [RBP + -0x48],0x0 JNZ 0x0014764f MOV qword ptr [RBP + -0x8],0x0 JMP 0x00147905 LAB_0014764f: MOV RAX,qword ptr [RBP + -0x48] TEST byte ptr [RAX + 0x7e0],0x1 JNZ 0x00147669 MOV qword ptr [RBP + -0x8],0x0 JMP 0x00147905 LAB_00147669: MOV RCX,qword ptr [RBP + -0x48] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x18],RCX MOV dword ptr [RBP + -0x50],0x2 MOV RAX,qword ptr [RBP + -0x40] TEST byte ptr [RAX + 0x3],0x1 JZ 0x001476b5 LEA RAX,[0x3133bc] MOV EDI,dword ptr [RAX] MOV RSI,qword ptr [RBP + -0x10] ADD RSI,0x28 CALL 0x00142d20 MOV qword ptr [RBP + -0x58],RAX MOV RCX,qword ptr [RBP + -0x58] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x20],RCX MOV EAX,dword ptr [RBP + -0x50] OR EAX,0x1 MOV dword ptr [RBP + -0x50],EAX LAB_001476b5: LEA RAX,[0x50dec0] TEST byte ptr [RAX],0x1 JZ 0x0014789a MOV RAX,qword ptr [RBP + -0x48] MOV RAX,qword ptr [RAX + 0x7f0] MOV RCX,qword ptr [RBP + -0x48] ADD RCX,0x878 ADD RCX,0x420 CMP RAX,RCX SETNC AL AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 JZ 0x00147717 LEA RAX,[0x509e48] MOV RCX,qword ptr [RAX] ADD RCX,0x1 LEA RAX,[0x509e48] MOV qword ptr [RAX],RCX MOV qword ptr [RBP + -0x8],0x0 JMP 0x00147905 LAB_00147717: MOV RAX,qword ptr [RBP + -0x48] MOV RAX,qword ptr [RAX + 0x7f0] MOV qword ptr [RBP + -0x60],RAX MOV RCX,qword ptr [RBP + -0x60] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x30],RCX MOV EAX,dword ptr [RBP + -0x50] OR EAX,0x4 MOV dword ptr [RBP + -0x50],EAX MOV RAX,qword ptr [RBP + -0x60] ADD RAX,-0xb0 MOV qword ptr [RBP + -0x68],RAX MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX + 0x18],0x4 MOV RAX,qword ptr [RBP + -0x68] MOV RCX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x60] MOV qword ptr [RAX + 0x20],RCX MOV RAX,qword ptr [RBP + -0x68] MOV ECX,dword ptr [RAX + 0x18] MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX + 0x28],ECX MOV RAX,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RAX + 0x20] MOV qword ptr [RBP + -0x70],RAX MOV RAX,qword ptr [RBP + -0x48] MOV RCX,qword ptr [RAX + 0x850] MOV RAX,qword ptr [RBP + -0x60] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x60] LEA RCX,[0x50a500] MOV qword ptr [RAX + 0x30],RCX MOV RCX,qword ptr [RBP + -0x58] MOV RAX,qword ptr [RBP + -0x60] MOV qword ptr [RAX + 0x38],RCX MOV RAX,qword ptr [RBP + -0x60] MOV qword ptr [RAX + 0x40],0x0 MOV RAX,qword ptr [RBP + -0x40] MOV RCX,qword ptr [RAX + 0x28] MOV RAX,qword ptr [RBP + -0x60] MOV qword ptr [RAX + 0x88],RCX MOV RAX,qword ptr [RBP + -0x48] MOV RCX,qword ptr [RAX + 0x7f8] MOV RDX,RCX ADD RDX,0x1 MOV qword ptr [RAX + 0x7f8],RDX MOV RAX,qword ptr [RBP + -0x60] MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RBP + -0x60] MOV qword ptr [RAX + 0x10],0x0 MOV EAX,dword ptr [RBP + -0x4c] MOV ECX,EAX LEA RAX,[0x313420] MOV ECX,dword ptr [RAX + RCX*0x4] MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX + 0x90],ECX MOV RAX,qword ptr [RBP + -0x60] MOV qword ptr [RAX + 0xa8],0x0 MOV RDI,qword ptr [RBP + -0x70] CALL 0x0014e3e0 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX + 0x5c],ECX MOV RCX,qword ptr [RBP + -0x70] MOV RAX,qword ptr [RBP + -0x60] MOV qword ptr [RAX + 0x60],RCX MOV RDI,qword ptr [RBP + -0x70] CALL 0x0014e400 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX + 0x80],ECX MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX + 0xa0],0x0 MOV RCX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x60] MOV qword ptr [RAX + 0x48],RCX MOV ECX,dword ptr [RBP + -0x34] MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX + 0x50],ECX MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX + 0x58],0x4 MOV RAX,qword ptr [RBP + -0x48] MOV RCX,qword ptr [RAX + 0x7f0] ADD RCX,0xb0 MOV qword ptr [RAX + 0x7f0],RCX LAB_0014789a: JMP 0x001478de LAB_0014789c: MOV RAX,qword ptr [RBP + -0x40] TEST byte ptr [RAX + 0x3],0x1 JZ 0x001478d5 LEA RAX,[0x3133bc] MOV EDI,dword ptr [RAX] MOV RSI,qword ptr [RBP + -0x10] ADD RSI,0x28 CALL 0x00142d20 MOV qword ptr [RBP + -0x58],RAX MOV RCX,qword ptr [RBP + -0x58] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x20],RCX MOV dword ptr [RBP + -0x50],0x1 JMP 0x001478dc LAB_001478d5: MOV dword ptr [RBP + -0x50],0x0 LAB_001478dc: JMP 0x001478de LAB_001478de: MOV ECX,dword ptr [RBP + -0x50] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX],ECX MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x8],RCX MOV ECX,dword ptr [RBP + -0x4c] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x38],ECX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x8],RAX LAB_00147905: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x80 POP RBP RET
uint * pfs_start_table_lock_wait_v1 (uint *param_1,long param_2,int param_3,long param_4,int8 param_5, int4 param_6) { int8 *puVar1; PFS_table_share *this; long lVar2; int4 uVar3; long lVar4; int8 uVar5; bool bVar6; int8 local_60; uint local_58; uint local_54; if ((*(byte *)(param_2 + 1) & 1) == 0) { return (uint *)0x0; } lVar4 = my_thread_get_THR_PFS(); if (param_3 == 0) { local_54 = lock_flags_to_lock_type((uint)param_4); *(uint *)(param_2 + 0x2418) = local_54; } else if (param_3 == 1) { if (param_4 == 2) { *(int4 *)(param_2 + 0x241c) = 99; return (uint *)0x0; } local_54 = external_lock_flags_to_lock_type((uint)param_4); *(uint *)(param_2 + 0x241c) = local_54; } else { local_54 = 0; } local_60 = 0; if ((flag_thread_instrumentation & 1) == 0) { bVar6 = (*(byte *)(param_2 + 3) & 1) != 0; if (bVar6) { uVar5 = get_timer_raw_value_and_function(wait_timer,param_1 + 10); *(int8 *)(param_1 + 8) = uVar5; } local_58 = (uint)bVar6; } else { if (lVar4 == 0) { return (uint *)0x0; } if ((*(byte *)(lVar4 + 0x7e0) & 1) == 0) { return (uint *)0x0; } *(long *)(param_1 + 6) = lVar4; local_58 = 2; if ((*(byte *)(param_2 + 3) & 1) != 0) { local_60 = get_timer_raw_value_and_function(wait_timer,param_1 + 10); *(int8 *)(param_1 + 8) = local_60; local_58 = 3; } if ((flag_events_waits_current & 1) != 0) { if (lVar4 + 0xc98U <= *(ulong *)(lVar4 + 0x7f0)) { locker_lost = locker_lost + 1; return (uint *)0x0; } puVar1 = *(int8 **)(lVar4 + 0x7f0); *(int8 **)(param_1 + 0xc) = puVar1; local_58 = local_58 | 4; *(int4 *)(puVar1 + 3) = 4; puVar1[4] = puVar1[-0x15]; *(int4 *)(puVar1 + 5) = *(int4 *)(puVar1 + -0x13); this = *(PFS_table_share **)(param_2 + 0x20); *puVar1 = *(int8 *)(lVar4 + 0x850); puVar1[6] = global_table_lock_class; puVar1[7] = local_60; puVar1[8] = 0; puVar1[0x11] = *(int8 *)(param_2 + 0x28); lVar2 = *(long *)(lVar4 + 0x7f8); *(long *)(lVar4 + 0x7f8) = lVar2 + 1; puVar1[1] = lVar2; puVar1[2] = 0; *(int4 *)(puVar1 + 0x12) = *(int4 *)(table_lock_operation_map + (ulong)local_54 * 4); puVar1[0x15] = 0; uVar3 = PFS_table_share::get_object_type(this); *(int4 *)((long)puVar1 + 0x5c) = uVar3; puVar1[0xc] = this; uVar3 = PFS_table_share::get_version(this); *(int4 *)(puVar1 + 0x10) = uVar3; *(int4 *)(puVar1 + 0x14) = 0; puVar1[9] = param_5; *(int4 *)(puVar1 + 10) = param_6; *(int4 *)(puVar1 + 0xb) = 4; *(long *)(lVar4 + 0x7f0) = *(long *)(lVar4 + 0x7f0) + 0xb0; } } *param_1 = local_58; *(long *)(param_1 + 2) = param_2; param_1[0xe] = local_54; return param_1; }
52,860
updateNormalHints
untodesu[P]riteg/build_O0/_deps/glfw-src/src/x11_window.c
static void updateNormalHints(_GLFWwindow* window, int width, int height) { XSizeHints* hints = XAllocSizeHints(); if (!window->monitor) { if (window->resizable) { if (window->minwidth != GLFW_DONT_CARE && window->minheight != GLFW_DONT_CARE) { hints->flags |= PMinSize; hints->min_width = window->minwidth; hints->min_height = window->minheight; } if (window->maxwidth != GLFW_DONT_CARE && window->maxheight != GLFW_DONT_CARE) { hints->flags |= PMaxSize; hints->max_width = window->maxwidth; hints->max_height = window->maxheight; } if (window->numer != GLFW_DONT_CARE && window->denom != GLFW_DONT_CARE) { hints->flags |= PAspect; hints->min_aspect.x = hints->max_aspect.x = window->numer; hints->min_aspect.y = hints->max_aspect.y = window->denom; } } else { hints->flags |= (PMinSize | PMaxSize); hints->min_width = hints->max_width = width; hints->min_height = hints->max_height = height; } } hints->flags |= PWinGravity; hints->win_gravity = StaticGravity; XSetWMNormalHints(_glfw.x11.display, window->x11.handle, hints); XFree(hints); }
O0
c
updateNormalHints: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) callq 0xc110 movq %rax, -0x18(%rbp) movq -0x8(%rbp), %rax cmpq $0x0, 0x40(%rax) jne 0x31ee7 movq -0x8(%rbp), %rax cmpl $0x0, 0x8(%rax) je 0x31eb5 movq -0x8(%rbp), %rax cmpl $-0x1, 0x50(%rax) je 0x31e26 movq -0x8(%rbp), %rax cmpl $-0x1, 0x54(%rax) je 0x31e26 movq -0x18(%rbp), %rax movq (%rax), %rcx orq $0x10, %rcx movq %rcx, (%rax) movq -0x8(%rbp), %rax movl 0x50(%rax), %ecx movq -0x18(%rbp), %rax movl %ecx, 0x18(%rax) movq -0x8(%rbp), %rax movl 0x54(%rax), %ecx movq -0x18(%rbp), %rax movl %ecx, 0x1c(%rax) movq -0x8(%rbp), %rax cmpl $-0x1, 0x58(%rax) je 0x31e64 movq -0x8(%rbp), %rax cmpl $-0x1, 0x5c(%rax) je 0x31e64 movq -0x18(%rbp), %rax movq (%rax), %rcx orq $0x20, %rcx movq %rcx, (%rax) movq -0x8(%rbp), %rax movl 0x58(%rax), %ecx movq -0x18(%rbp), %rax movl %ecx, 0x20(%rax) movq -0x8(%rbp), %rax movl 0x5c(%rax), %ecx movq -0x18(%rbp), %rax movl %ecx, 0x24(%rax) movq -0x8(%rbp), %rax cmpl $-0x1, 0x60(%rax) je 0x31eb3 movq -0x8(%rbp), %rax cmpl $-0x1, 0x64(%rax) je 0x31eb3 movq -0x18(%rbp), %rax movq (%rax), %rcx orq $0x80, %rcx movq %rcx, (%rax) movq -0x8(%rbp), %rax movl 0x60(%rax), %ecx movq -0x18(%rbp), %rax movl %ecx, 0x38(%rax) movq -0x18(%rbp), %rax movl %ecx, 0x30(%rax) movq -0x8(%rbp), %rax movl 0x64(%rax), %ecx movq -0x18(%rbp), %rax movl %ecx, 0x3c(%rax) movq -0x18(%rbp), %rax movl %ecx, 0x34(%rax) jmp 0x31ee5 movq -0x18(%rbp), %rax movq (%rax), %rcx orq $0x30, %rcx movq %rcx, (%rax) movl -0xc(%rbp), %ecx movq -0x18(%rbp), %rax movl %ecx, 0x20(%rax) movq -0x18(%rbp), %rax movl %ecx, 0x18(%rax) movl -0x10(%rbp), %ecx movq -0x18(%rbp), %rax movl %ecx, 0x24(%rax) movq -0x18(%rbp), %rax movl %ecx, 0x1c(%rax) jmp 0x31ee7 movq -0x18(%rbp), %rax movq (%rax), %rcx orq $0x200, %rcx # imm = 0x200 movq %rcx, (%rax) movq -0x18(%rbp), %rax movl $0xa, 0x48(%rax) leaq 0xaed5e(%rip), %rax # 0xe0c68 movq 0x1fec0(%rax), %rdi movq -0x8(%rbp), %rax movq 0x348(%rax), %rsi movq -0x18(%rbp), %rdx callq 0xc410 movq -0x18(%rbp), %rdi callq 0xcb90 addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
updateNormalHints: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_10], edx call _XAllocSizeHints mov [rbp+var_18], rax mov rax, [rbp+var_8] cmp qword ptr [rax+40h], 0 jnz loc_31EE7 mov rax, [rbp+var_8] cmp dword ptr [rax+8], 0 jz loc_31EB5 mov rax, [rbp+var_8] cmp dword ptr [rax+50h], 0FFFFFFFFh jz short loc_31E26 mov rax, [rbp+var_8] cmp dword ptr [rax+54h], 0FFFFFFFFh jz short loc_31E26 mov rax, [rbp+var_18] mov rcx, [rax] or rcx, 10h mov [rax], rcx mov rax, [rbp+var_8] mov ecx, [rax+50h] mov rax, [rbp+var_18] mov [rax+18h], ecx mov rax, [rbp+var_8] mov ecx, [rax+54h] mov rax, [rbp+var_18] mov [rax+1Ch], ecx loc_31E26: mov rax, [rbp+var_8] cmp dword ptr [rax+58h], 0FFFFFFFFh jz short loc_31E64 mov rax, [rbp+var_8] cmp dword ptr [rax+5Ch], 0FFFFFFFFh jz short loc_31E64 mov rax, [rbp+var_18] mov rcx, [rax] or rcx, 20h mov [rax], rcx mov rax, [rbp+var_8] mov ecx, [rax+58h] mov rax, [rbp+var_18] mov [rax+20h], ecx mov rax, [rbp+var_8] mov ecx, [rax+5Ch] mov rax, [rbp+var_18] mov [rax+24h], ecx loc_31E64: mov rax, [rbp+var_8] cmp dword ptr [rax+60h], 0FFFFFFFFh jz short loc_31EB3 mov rax, [rbp+var_8] cmp dword ptr [rax+64h], 0FFFFFFFFh jz short loc_31EB3 mov rax, [rbp+var_18] mov rcx, [rax] or rcx, 80h mov [rax], rcx mov rax, [rbp+var_8] mov ecx, [rax+60h] mov rax, [rbp+var_18] mov [rax+38h], ecx mov rax, [rbp+var_18] mov [rax+30h], ecx mov rax, [rbp+var_8] mov ecx, [rax+64h] mov rax, [rbp+var_18] mov [rax+3Ch], ecx mov rax, [rbp+var_18] mov [rax+34h], ecx loc_31EB3: jmp short loc_31EE5 loc_31EB5: mov rax, [rbp+var_18] mov rcx, [rax] or rcx, 30h mov [rax], rcx mov ecx, [rbp+var_C] mov rax, [rbp+var_18] mov [rax+20h], ecx mov rax, [rbp+var_18] mov [rax+18h], ecx mov ecx, [rbp+var_10] mov rax, [rbp+var_18] mov [rax+24h], ecx mov rax, [rbp+var_18] mov [rax+1Ch], ecx loc_31EE5: jmp short $+2 loc_31EE7: mov rax, [rbp+var_18] mov rcx, [rax] or rcx, 200h mov [rax], rcx mov rax, [rbp+var_18] mov dword ptr [rax+48h], 0Ah lea rax, _glfw mov rdi, qword ptr ds:loc_1FEC0[rax] mov rax, [rbp+var_8] mov rsi, [rax+348h] mov rdx, [rbp+var_18] call _XSetWMNormalHints mov rdi, [rbp+var_18] call _XFree add rsp, 20h pop rbp retn
long long updateNormalHints(long long a1, int a2, int a3) { int v3; // ecx int v4; // ecx long long v6; // [rsp+8h] [rbp-18h] v6 = XAllocSizeHints(); if ( !*(_QWORD *)(a1 + 64) ) { if ( *(_DWORD *)(a1 + 8) ) { if ( *(_DWORD *)(a1 + 80) != -1 && *(_DWORD *)(a1 + 84) != -1 ) { *(_QWORD *)v6 |= 0x10uLL; *(_DWORD *)(v6 + 24) = *(_DWORD *)(a1 + 80); *(_DWORD *)(v6 + 28) = *(_DWORD *)(a1 + 84); } if ( *(_DWORD *)(a1 + 88) != -1 && *(_DWORD *)(a1 + 92) != -1 ) { *(_QWORD *)v6 |= 0x20uLL; *(_DWORD *)(v6 + 32) = *(_DWORD *)(a1 + 88); *(_DWORD *)(v6 + 36) = *(_DWORD *)(a1 + 92); } if ( *(_DWORD *)(a1 + 96) != -1 && *(_DWORD *)(a1 + 100) != -1 ) { *(_QWORD *)v6 |= 0x80uLL; v3 = *(_DWORD *)(a1 + 96); *(_DWORD *)(v6 + 56) = v3; *(_DWORD *)(v6 + 48) = v3; v4 = *(_DWORD *)(a1 + 100); *(_DWORD *)(v6 + 60) = v4; *(_DWORD *)(v6 + 52) = v4; } } else { *(_QWORD *)v6 |= 0x30uLL; *(_DWORD *)(v6 + 32) = a2; *(_DWORD *)(v6 + 24) = a2; *(_DWORD *)(v6 + 36) = a3; *(_DWORD *)(v6 + 28) = a3; } } *(_QWORD *)v6 |= 0x200uLL; *(_DWORD *)(v6 + 72) = 10; XSetWMNormalHints(*(_QWORD *)((char *)&loc_1FEC0 + (_QWORD)glfw), *(_QWORD *)(a1 + 840), v6); return XFree(v6); }
updateNormalHints: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV dword ptr [RBP + -0x10],EDX CALL 0x0010c110 MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x40],0x0 JNZ 0x00131ee7 MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x8],0x0 JZ 0x00131eb5 MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x50],-0x1 JZ 0x00131e26 MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x54],-0x1 JZ 0x00131e26 MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RAX] OR RCX,0x10 MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x50] MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0x18],ECX MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x54] MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0x1c],ECX LAB_00131e26: MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x58],-0x1 JZ 0x00131e64 MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x5c],-0x1 JZ 0x00131e64 MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RAX] OR RCX,0x20 MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x58] MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0x20],ECX MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x5c] MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0x24],ECX LAB_00131e64: MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x60],-0x1 JZ 0x00131eb3 MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x64],-0x1 JZ 0x00131eb3 MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RAX] OR RCX,0x80 MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x60] MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0x38],ECX MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0x30],ECX MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x64] MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0x3c],ECX MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0x34],ECX LAB_00131eb3: JMP 0x00131ee5 LAB_00131eb5: MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RAX] OR RCX,0x30 MOV qword ptr [RAX],RCX MOV ECX,dword ptr [RBP + -0xc] MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0x20],ECX MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0x18],ECX MOV ECX,dword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0x24],ECX MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0x1c],ECX LAB_00131ee5: JMP 0x00131ee7 LAB_00131ee7: MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RAX] OR RCX,0x200 MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0x48],0xa LEA RAX,[0x1e0c68] MOV RDI,qword ptr [RAX + 0x1fec0] MOV RAX,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RAX + 0x348] MOV RDX,qword ptr [RBP + -0x18] CALL 0x0010c410 MOV RDI,qword ptr [RBP + -0x18] CALL 0x0010cb90 ADD RSP,0x20 POP RBP RET
void updateNormalHints(long param_1,int4 param_2,int4 param_3) { int4 uVar1; ulong *puVar2; puVar2 = (ulong *)XAllocSizeHints(); if (*(long *)(param_1 + 0x40) == 0) { if (*(int *)(param_1 + 8) == 0) { *puVar2 = *puVar2 | 0x30; *(int4 *)(puVar2 + 4) = param_2; *(int4 *)(puVar2 + 3) = param_2; *(int4 *)((long)puVar2 + 0x24) = param_3; *(int4 *)((long)puVar2 + 0x1c) = param_3; } else { if ((*(int *)(param_1 + 0x50) != -1) && (*(int *)(param_1 + 0x54) != -1)) { *puVar2 = *puVar2 | 0x10; *(int4 *)(puVar2 + 3) = *(int4 *)(param_1 + 0x50); *(int4 *)((long)puVar2 + 0x1c) = *(int4 *)(param_1 + 0x54); } if ((*(int *)(param_1 + 0x58) != -1) && (*(int *)(param_1 + 0x5c) != -1)) { *puVar2 = *puVar2 | 0x20; *(int4 *)(puVar2 + 4) = *(int4 *)(param_1 + 0x58); *(int4 *)((long)puVar2 + 0x24) = *(int4 *)(param_1 + 0x5c); } if ((*(int *)(param_1 + 0x60) != -1) && (*(int *)(param_1 + 100) != -1)) { *puVar2 = *puVar2 | 0x80; uVar1 = *(int4 *)(param_1 + 0x60); *(int4 *)(puVar2 + 7) = uVar1; *(int4 *)(puVar2 + 6) = uVar1; uVar1 = *(int4 *)(param_1 + 100); *(int4 *)((long)puVar2 + 0x3c) = uVar1; *(int4 *)((long)puVar2 + 0x34) = uVar1; } } } *puVar2 = *puVar2 | 0x200; *(int4 *)(puVar2 + 9) = 10; XSetWMNormalHints(DAT_00200b28,*(int8 *)(param_1 + 0x348),puVar2); XFree(puVar2); return; }
52,861
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::unget()
monkey531[P]llama/common/json.hpp
void unget() { next_unget = true; --position.chars_read_total; // in case we "unget" a newline, we have to also decrement the lines_read if (position.chars_read_current_line == 0) { if (position.lines_read > 0) { --position.lines_read; } } else { --position.chars_read_current_line; } if (JSON_HEDLEY_LIKELY(current != char_traits<char_type>::eof())) { JSON_ASSERT(!token_string.empty()); token_string.pop_back(); } }
O0
cpp
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::unget(): subq $0x18, %rsp movq %rdi, 0x10(%rsp) movq 0x10(%rsp), %rax movq %rax, 0x8(%rsp) movb $0x1, 0x18(%rax) movq 0x20(%rax), %rcx addq $-0x1, %rcx movq %rcx, 0x20(%rax) cmpq $0x0, 0x28(%rax) jne 0xed479 movq 0x8(%rsp), %rax cmpq $0x0, 0x30(%rax) jbe 0xed477 movq 0x8(%rsp), %rax movq 0x30(%rax), %rcx addq $-0x1, %rcx movq %rcx, 0x30(%rax) jmp 0xed48a movq 0x8(%rsp), %rax movq 0x28(%rax), %rcx addq $-0x1, %rcx movq %rcx, 0x28(%rax) movq 0x8(%rsp), %rax movl 0x14(%rax), %eax movl %eax, 0x4(%rsp) callq 0xebb10 movl %eax, %ecx movl 0x4(%rsp), %eax cmpl %ecx, %eax setne %al xorb $-0x1, %al xorb $-0x1, %al testb $0x1, %al jne 0xed4b0 jmp 0xed4f3 movq 0x8(%rsp), %rdi addq $0x38, %rdi callq 0xed5e0 testb $0x1, %al jne 0xed4c4 jmp 0xed4e5 leaq 0xfa31b(%rip), %rdi # 0x1e77e6 movl $0x2240, %esi # imm = 0x2240 leaq 0xf615c(%rip), %rdx # 0x1e3633 leaq 0xfa9df(%rip), %rcx # 0x1e7ebd movb $0x0, %al callq 0x56d30 movq 0x8(%rsp), %rdi addq $0x38, %rdi callq 0xed630 addq $0x18, %rsp retq nopl (%rax,%rax)
_ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5ungetEv: sub rsp, 18h mov [rsp+18h+var_8], rdi mov rax, [rsp+18h+var_8] mov [rsp+18h+var_10], rax mov byte ptr [rax+18h], 1 mov rcx, [rax+20h] add rcx, 0FFFFFFFFFFFFFFFFh mov [rax+20h], rcx cmp qword ptr [rax+28h], 0 jnz short loc_ED479 mov rax, [rsp+18h+var_10] cmp qword ptr [rax+30h], 0 jbe short loc_ED477 mov rax, [rsp+18h+var_10] mov rcx, [rax+30h] add rcx, 0FFFFFFFFFFFFFFFFh mov [rax+30h], rcx loc_ED477: jmp short loc_ED48A loc_ED479: mov rax, [rsp+18h+var_10] mov rcx, [rax+28h] add rcx, 0FFFFFFFFFFFFFFFFh mov [rax+28h], rcx loc_ED48A: mov rax, [rsp+18h+var_10] mov eax, [rax+14h] mov [rsp+18h+var_14], eax call _ZNSt11char_traitsIcE3eofEv; std::char_traits<char>::eof(void) mov ecx, eax mov eax, [rsp+18h+var_14] cmp eax, ecx setnz al xor al, 0FFh xor al, 0FFh test al, 1 jnz short loc_ED4B0 jmp short loc_ED4F3 loc_ED4B0: mov rdi, [rsp+18h+var_10] add rdi, 38h ; '8' call _ZNKSt6vectorIcSaIcEE5emptyEv; std::vector<char>::empty(void) test al, 1 jnz short loc_ED4C4 jmp short loc_ED4E5 loc_ED4C4: lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... mov esi, 2240h lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aTokenStringEmp; "!token_string.empty()" mov al, 0 call _ggml_abort loc_ED4E5: mov rdi, [rsp+18h+var_10] add rdi, 38h ; '8' call _ZNSt6vectorIcSaIcEE8pop_backEv; std::vector<char>::pop_back(void) loc_ED4F3: add rsp, 18h retn
char nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::unget( long long a1) { int v1; // ecx char result; // al int v3; // [rsp+4h] [rbp-14h] *(_BYTE *)(a1 + 24) = 1; --*(_QWORD *)(a1 + 32); if ( *(_QWORD *)(a1 + 40) ) { --*(_QWORD *)(a1 + 40); } else if ( *(_QWORD *)(a1 + 48) ) { --*(_QWORD *)(a1 + 48); } v3 = *(_DWORD *)(a1 + 20); v1 = std::char_traits<char>::eof(); result = v3 != v1; if ( v3 != v1 ) { if ( (std::vector<char>::empty(a1 + 56) & 1) != 0 ) ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 8768LL, "GGML_ASSERT(%s) failed", "!token_string.empty()"); return std::vector<char>::pop_back(a1 + 56); } return result; }
unget: SUB RSP,0x18 MOV qword ptr [RSP + 0x10],RDI MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x8],RAX MOV byte ptr [RAX + 0x18],0x1 MOV RCX,qword ptr [RAX + 0x20] ADD RCX,-0x1 MOV qword ptr [RAX + 0x20],RCX CMP qword ptr [RAX + 0x28],0x0 JNZ 0x001ed479 MOV RAX,qword ptr [RSP + 0x8] CMP qword ptr [RAX + 0x30],0x0 JBE 0x001ed477 MOV RAX,qword ptr [RSP + 0x8] MOV RCX,qword ptr [RAX + 0x30] ADD RCX,-0x1 MOV qword ptr [RAX + 0x30],RCX LAB_001ed477: JMP 0x001ed48a LAB_001ed479: MOV RAX,qword ptr [RSP + 0x8] MOV RCX,qword ptr [RAX + 0x28] ADD RCX,-0x1 MOV qword ptr [RAX + 0x28],RCX LAB_001ed48a: MOV RAX,qword ptr [RSP + 0x8] MOV EAX,dword ptr [RAX + 0x14] MOV dword ptr [RSP + 0x4],EAX CALL 0x001ebb10 MOV ECX,EAX MOV EAX,dword ptr [RSP + 0x4] CMP EAX,ECX SETNZ AL XOR AL,0xff XOR AL,0xff TEST AL,0x1 JNZ 0x001ed4b0 JMP 0x001ed4f3 LAB_001ed4b0: MOV RDI,qword ptr [RSP + 0x8] ADD RDI,0x38 CALL 0x001ed5e0 TEST AL,0x1 JNZ 0x001ed4c4 JMP 0x001ed4e5 LAB_001ed4c4: LEA RDI,[0x2e77e6] MOV ESI,0x2240 LEA RDX,[0x2e3633] LEA RCX,[0x2e7ebd] MOV AL,0x0 CALL 0x00156d30 LAB_001ed4e5: MOV RDI,qword ptr [RSP + 0x8] ADD RDI,0x38 CALL 0x001ed630 LAB_001ed4f3: ADD RSP,0x18 RET
/* nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::string > > >::unget() */ void __thiscall nlohmann::json_abi_v3_11_3::detail:: lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::unget(lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> *this) { int iVar1; int iVar2; ulong uVar3; this[0x18] = (lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> )0x1; *(long *)(this + 0x20) = *(long *)(this + 0x20) + -1; if (*(long *)(this + 0x28) == 0) { if (*(long *)(this + 0x30) != 0) { *(long *)(this + 0x30) = *(long *)(this + 0x30) + -1; } } else { *(long *)(this + 0x28) = *(long *)(this + 0x28) + -1; } iVar1 = *(int *)(this + 0x14); iVar2 = std::char_traits<char>::eof(); if (iVar1 != iVar2) { uVar3 = std::vector<char,std::allocator<char>>::empty ((vector<char,std::allocator<char>> *)(this + 0x38)); if ((uVar3 & 1) != 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x2240, "GGML_ASSERT(%s) failed","!token_string.empty()"); } std::vector<char,std::allocator<char>>::pop_back ((vector<char,std::allocator<char>> *)(this + 0x38)); } return; }
52,862
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::unget()
monkey531[P]llama/common/json.hpp
void unget() { next_unget = true; --position.chars_read_total; // in case we "unget" a newline, we have to also decrement the lines_read if (position.chars_read_current_line == 0) { if (position.lines_read > 0) { --position.lines_read; } } else { --position.chars_read_current_line; } if (JSON_HEDLEY_LIKELY(current != char_traits<char_type>::eof())) { JSON_ASSERT(!token_string.empty()); token_string.pop_back(); } }
O2
cpp
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::unget(): movb $0x1, 0x18(%rdi) decq 0x20(%rdi) movq 0x28(%rdi), %rax testq %rax, %rax je 0x53d7b leaq 0x28(%rdi), %rcx jmp 0x53d88 movq 0x30(%rdi), %rax testq %rax, %rax je 0x53d8e leaq 0x30(%rdi), %rcx decq %rax movq %rax, (%rcx) cmpl $-0x1, 0x14(%rdi) je 0x53da5 movq 0x40(%rdi), %rax cmpq %rax, 0x38(%rdi) je 0x53da6 decq %rax movq %rax, 0x40(%rdi) retq pushq %rax leaq 0x49f1d(%rip), %rdi # 0x9dccb leaq 0x467d4(%rip), %rdx # 0x9a589 leaq 0x4a5e8(%rip), %rcx # 0x9e3a4 movl $0x2240, %esi # imm = 0x2240 xorl %eax, %eax callq 0x22ce0
_ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5ungetEv: mov byte ptr [rdi+18h], 1 dec qword ptr [rdi+20h] mov rax, [rdi+28h] test rax, rax jz short loc_53D7B lea rcx, [rdi+28h] jmp short loc_53D88 loc_53D7B: mov rax, [rdi+30h] test rax, rax jz short loc_53D8E lea rcx, [rdi+30h] loc_53D88: dec rax mov [rcx], rax loc_53D8E: cmp dword ptr [rdi+14h], 0FFFFFFFFh jz short locret_53DA5 mov rax, [rdi+40h] cmp [rdi+38h], rax jz short loc_53DA6 dec rax mov [rdi+40h], rax locret_53DA5: retn loc_53DA6: push rax lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aTokenStringEmp; "!token_string.empty()" mov esi, 2240h xor eax, eax call _ggml_abort
long long nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::unget( long long a1) { long long result; // rax _QWORD *v2; // rcx long long v3; // rax *(_BYTE *)(a1 + 24) = 1; --*(_QWORD *)(a1 + 32); result = *(_QWORD *)(a1 + 40); if ( result ) { v2 = (_QWORD *)(a1 + 40); } else { result = *(_QWORD *)(a1 + 48); if ( !result ) goto LABEL_6; v2 = (_QWORD *)(a1 + 48); } *v2 = --result; LABEL_6: if ( *(_DWORD *)(a1 + 20) != -1 ) { v3 = *(_QWORD *)(a1 + 64); if ( *(_QWORD *)(a1 + 56) == v3 ) { ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 8768LL, "GGML_ASSERT(%s) failed", "!token_string.empty()"); return nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::reset("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp"); } else { result = v3 - 1; *(_QWORD *)(a1 + 64) = result; } } return result; }
unget: MOV byte ptr [RDI + 0x18],0x1 DEC qword ptr [RDI + 0x20] MOV RAX,qword ptr [RDI + 0x28] TEST RAX,RAX JZ 0x00153d7b LEA RCX,[RDI + 0x28] JMP 0x00153d88 LAB_00153d7b: MOV RAX,qword ptr [RDI + 0x30] TEST RAX,RAX JZ 0x00153d8e LEA RCX,[RDI + 0x30] LAB_00153d88: DEC RAX MOV qword ptr [RCX],RAX LAB_00153d8e: CMP dword ptr [RDI + 0x14],-0x1 JZ 0x00153da5 MOV RAX,qword ptr [RDI + 0x40] CMP qword ptr [RDI + 0x38],RAX JZ 0x00153da6 DEC RAX MOV qword ptr [RDI + 0x40],RAX LAB_00153da5: RET LAB_00153da6: PUSH RAX LEA RDI,[0x19dccb] LEA RDX,[0x19a589] LEA RCX,[0x19e3a4] MOV ESI,0x2240 XOR EAX,EAX CALL 0x00122ce0
/* nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::string > > >::unget() */ void __thiscall nlohmann::json_abi_v3_11_3::detail:: lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::unget(lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> *this) { long lVar1; lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> *plVar2; int8 in_R8; int8 in_R9; this[0x18] = (lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> )0x1; *(long *)(this + 0x20) = *(long *)(this + 0x20) + -1; lVar1 = *(long *)(this + 0x28); if (lVar1 == 0) { lVar1 = *(long *)(this + 0x30); if (lVar1 == 0) goto LAB_00153d8e; plVar2 = this + 0x30; } else { plVar2 = this + 0x28; } *(long *)plVar2 = lVar1 + -1; LAB_00153d8e: if (*(int *)(this + 0x14) != -1) { lVar1 = *(long *)(this + 0x40); if (*(long *)(this + 0x38) == lVar1) { /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x2240, "GGML_ASSERT(%s) failed","!token_string.empty()",in_R8,in_R9,lVar1); } *(long *)(this + 0x40) = lVar1 + -1; } return; }
52,863
ma_tls_set_error
eloqsql/libmariadb/libmariadb/secure/openssl.c
static void ma_tls_set_error(MYSQL *mysql) { ulong ssl_errno= ERR_get_error(); char ssl_error[MAX_SSL_ERR_LEN]; const char *ssl_error_reason; MARIADB_PVIO *pvio= mysql->net.pvio; int save_errno= errno; if (ssl_errno && (ssl_error_reason= ERR_reason_error_string(ssl_errno))) { pvio->set_error(mysql, CR_SSL_CONNECTION_ERROR, SQLSTATE_UNKNOWN, 0, ssl_error_reason); return; } strerror_r(save_errno, ssl_error, MAX_SSL_ERR_LEN); pvio->set_error(mysql, CR_SSL_CONNECTION_ERROR, SQLSTATE_UNKNOWN, "TLS/SSL error: %s (%d)", ssl_error, save_errno); return; }
O0
c
ma_tls_set_error: pushq %rbp movq %rsp, %rbp subq $0xa0, %rsp movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x78(%rbp) callq 0x36940 movq %rax, -0x80(%rbp) movq -0x78(%rbp), %rax movq (%rax), %rax movq %rax, -0x90(%rbp) callq 0x369b0 movl (%rax), %eax movl %eax, -0x94(%rbp) cmpq $0x0, -0x80(%rbp) je 0x5c54d movq -0x80(%rbp), %rdi callq 0x36440 movq %rax, -0x88(%rbp) cmpq $0x0, %rax je 0x5c54d movq -0x90(%rbp), %rax movq 0x50(%rax), %r9 movq -0x78(%rbp), %rdi leaq 0x1d8b4d(%rip), %rax # 0x235080 movq (%rax), %rdx movq -0x88(%rbp), %r8 movl $0x7ea, %esi # imm = 0x7EA xorl %eax, %eax movl %eax, %ecx movb $0x0, %al callq *%r9 jmp 0x5c596 movl -0x94(%rbp), %edi leaq -0x70(%rbp), %rsi movl $0x64, %edx callq 0x36170 movq -0x90(%rbp), %rax movq 0x50(%rax), %r10 movq -0x78(%rbp), %rdi leaq 0x1d8b09(%rip), %rax # 0x235080 movq (%rax), %rdx leaq -0x70(%rbp), %r8 movl -0x94(%rbp), %r9d movl $0x7ea, %esi # imm = 0x7EA leaq 0x710f6(%rip), %rcx # 0xcd687 movb $0x0, %al callq *%r10 movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x5c5b1 addq $0xa0, %rsp popq %rbp retq callq 0x362a0 nopw %cs:(%rax,%rax)
ma_tls_set_error: push rbp mov rbp, rsp sub rsp, 0A0h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_78], rdi call _ERR_get_error mov [rbp+var_80], rax mov rax, [rbp+var_78] mov rax, [rax] mov [rbp+var_90], rax call ___errno_location mov eax, [rax] mov [rbp+var_94], eax cmp [rbp+var_80], 0 jz short loc_5C54D mov rdi, [rbp+var_80] call _ERR_reason_error_string mov [rbp+var_88], rax cmp rax, 0 jz short loc_5C54D mov rax, [rbp+var_90] mov r9, [rax+50h] mov rdi, [rbp+var_78] lea rax, SQLSTATE_UNKNOWN mov rdx, [rax] mov r8, [rbp+var_88] mov esi, 7EAh xor eax, eax mov ecx, eax mov al, 0 call r9 jmp short loc_5C596 loc_5C54D: mov edi, [rbp+var_94] lea rsi, [rbp+var_70] mov edx, 64h ; 'd' call ___xpg_strerror_r mov rax, [rbp+var_90] mov r10, [rax+50h] mov rdi, [rbp+var_78] lea rax, SQLSTATE_UNKNOWN mov rdx, [rax] lea r8, [rbp+var_70] mov r9d, [rbp+var_94] mov esi, 7EAh lea rcx, aTlsSslErrorSD; "TLS/SSL error: %s (%d)" mov al, 0 call r10 loc_5C596: mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_5C5B1 add rsp, 0A0h pop rbp retn loc_5C5B1: call ___stack_chk_fail
unsigned long long ma_tls_set_error(long long *a1) { unsigned int v2; // [rsp+Ch] [rbp-94h] long long v3; // [rsp+10h] [rbp-90h] long long v4; // [rsp+18h] [rbp-88h] long long error; // [rsp+20h] [rbp-80h] char v6[104]; // [rsp+30h] [rbp-70h] BYREF unsigned long long v7; // [rsp+98h] [rbp-8h] v7 = __readfsqword(0x28u); error = ERR_get_error(); v3 = *a1; v2 = *(_DWORD *)__errno_location(); if ( error && (v4 = ERR_reason_error_string(error)) != 0 ) { (*(void ( **)(long long *, long long, char *, _QWORD, long long))(v3 + 80))( a1, 2026LL, SQLSTATE_UNKNOWN, 0LL, v4); } else { __xpg_strerror_r(v2, v6, 100LL); (*(void (**)(long long *, long long, char *, const char *, ...))(v3 + 80))( a1, 2026LL, SQLSTATE_UNKNOWN, "TLS/SSL error: %s (%d)", v6, v2); } return __readfsqword(0x28u); }
ma_tls_set_error: PUSH RBP MOV RBP,RSP SUB RSP,0xa0 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x78],RDI CALL 0x00136940 MOV qword ptr [RBP + -0x80],RAX MOV RAX,qword ptr [RBP + -0x78] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x90],RAX CALL 0x001369b0 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x94],EAX CMP qword ptr [RBP + -0x80],0x0 JZ 0x0015c54d MOV RDI,qword ptr [RBP + -0x80] CALL 0x00136440 MOV qword ptr [RBP + -0x88],RAX CMP RAX,0x0 JZ 0x0015c54d MOV RAX,qword ptr [RBP + -0x90] MOV R9,qword ptr [RAX + 0x50] MOV RDI,qword ptr [RBP + -0x78] LEA RAX,[0x335080] MOV RDX,qword ptr [RAX] MOV R8,qword ptr [RBP + -0x88] MOV ESI,0x7ea XOR EAX,EAX MOV ECX,EAX MOV AL,0x0 CALL R9 JMP 0x0015c596 LAB_0015c54d: MOV EDI,dword ptr [RBP + -0x94] LEA RSI,[RBP + -0x70] MOV EDX,0x64 CALL 0x00136170 MOV RAX,qword ptr [RBP + -0x90] MOV R10,qword ptr [RAX + 0x50] MOV RDI,qword ptr [RBP + -0x78] LEA RAX,[0x335080] MOV RDX,qword ptr [RAX] LEA R8,[RBP + -0x70] MOV R9D,dword ptr [RBP + -0x94] MOV ESI,0x7ea LEA RCX,[0x1cd687] MOV AL,0x0 CALL R10 LAB_0015c596: MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x0015c5b1 ADD RSP,0xa0 POP RBP RET LAB_0015c5b1: CALL 0x001362a0
void ma_tls_set_error(long *param_1) { int iVar1; long lVar2; ulong e; int *piVar3; char *pcVar4; long in_FS_OFFSET; int1 local_78 [104]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); e = ERR_get_error(); lVar2 = *param_1; piVar3 = __errno_location(); iVar1 = *piVar3; if (e != 0) { pcVar4 = ERR_reason_error_string(e); if (pcVar4 != (char *)0x0) { (**(code **)(lVar2 + 0x50))(param_1,0x7ea,SQLSTATE_UNKNOWN,0,pcVar4); goto LAB_0015c596; } } __xpg_strerror_r(iVar1,local_78,100); (**(code **)(lVar2 + 0x50)) (param_1,0x7ea,SQLSTATE_UNKNOWN,"TLS/SSL error: %s (%d)",local_78,iVar1); LAB_0015c596: if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
52,864
my_lengthsp_utf16le
eloqsql/strings/ctype-ucs2.c
static size_t my_lengthsp_utf16le(CHARSET_INFO *cs __attribute__((unused)), const char *ptr, size_t length) { const char *end= ptr + length; while (end > ptr + 1 && uint2korr(end - 2) == ' ') end-= 2; return (size_t) (end - ptr); }
O0
c
my_lengthsp_utf16le: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x10(%rbp), %rax addq -0x18(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rcx movq -0x10(%rbp), %rdx addq $0x1, %rdx xorl %eax, %eax cmpq %rdx, %rcx movb %al, -0x21(%rbp) jbe 0xbc643 movq -0x20(%rbp), %rax movzwl -0x2(%rax), %eax cmpl $0x20, %eax sete %al movb %al, -0x21(%rbp) movb -0x21(%rbp), %al testb $0x1, %al jne 0xbc64c jmp 0xbc65a movq -0x20(%rbp), %rax addq $-0x2, %rax movq %rax, -0x20(%rbp) jmp 0xbc61c movq -0x20(%rbp), %rax movq -0x10(%rbp), %rcx subq %rcx, %rax popq %rbp retq nopw (%rax,%rax)
my_lengthsp_utf16le: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov rax, [rbp+var_10] add rax, [rbp+var_18] mov [rbp+var_20], rax loc_BC61C: mov rcx, [rbp+var_20] mov rdx, [rbp+var_10] add rdx, 1 xor eax, eax cmp rcx, rdx mov [rbp+var_21], al jbe short loc_BC643 mov rax, [rbp+var_20] movzx eax, word ptr [rax-2] cmp eax, 20h ; ' ' setz al mov [rbp+var_21], al loc_BC643: mov al, [rbp+var_21] test al, 1 jnz short loc_BC64C jmp short loc_BC65A loc_BC64C: mov rax, [rbp+var_20] add rax, 0FFFFFFFFFFFFFFFEh mov [rbp+var_20], rax jmp short loc_BC61C loc_BC65A: mov rax, [rbp+var_20] mov rcx, [rbp+var_10] sub rax, rcx pop rbp retn
long long my_lengthsp_utf16le(long long a1, long long a2, long long a3) { bool v4; // [rsp+1h] [rbp-21h] unsigned long long i; // [rsp+2h] [rbp-20h] for ( i = a3 + a2; ; i -= 2LL ) { v4 = 0; if ( i > a2 + 1 ) v4 = *(unsigned __int16 *)(i - 2) == 32; if ( !v4 ) break; } return i - a2; }
my_lengthsp_utf16le: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV RAX,qword ptr [RBP + -0x10] ADD RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x20],RAX LAB_001bc61c: MOV RCX,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x10] ADD RDX,0x1 XOR EAX,EAX CMP RCX,RDX MOV byte ptr [RBP + -0x21],AL JBE 0x001bc643 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,word ptr [RAX + -0x2] CMP EAX,0x20 SETZ AL MOV byte ptr [RBP + -0x21],AL LAB_001bc643: MOV AL,byte ptr [RBP + -0x21] TEST AL,0x1 JNZ 0x001bc64c JMP 0x001bc65a LAB_001bc64c: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,-0x2 MOV qword ptr [RBP + -0x20],RAX JMP 0x001bc61c LAB_001bc65a: MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x10] SUB RAX,RCX POP RBP RET
long my_lengthsp_utf16le(int8 param_1,long param_2,long param_3) { bool bVar1; int8 local_28; local_28 = param_2 + param_3; while( true ) { bVar1 = false; if (param_2 + 1U < local_28) { bVar1 = *(short *)(local_28 - 2) == 0x20; } if (!bVar1) break; local_28 = local_28 - 2; } return local_28 - param_2; }
52,865
shared_factory::create_player(Dimension*, entt::entity)
untodesu[P]voxelius/game/shared/factory.cc
void shared_factory::create_player(Dimension *dimension, entt::entity entity) { spdlog::debug("factory[{}]: assigning player components to {}", dimension->get_name(), static_cast<std::uint64_t>(entity)); auto &collision = dimension->entities.emplace_or_replace<CollisionComponent>(entity); collision.aabb.min = glm::fvec3(-0.4f, -1.6f, -0.4f); collision.aabb.max = glm::fvec3(+0.4f, +0.2f, +0.4f); auto &head = dimension->entities.emplace_or_replace<HeadComponent>(entity); head.angles = glm::fvec3(0.0f, 0.0f, 0.0f); head.offset = glm::fvec3(0.0f, 0.0f, 0.0f); dimension->entities.emplace_or_replace<PlayerComponent>(entity); auto &transform = dimension->entities.emplace_or_replace<TransformComponent>(entity); transform.chunk = chunk_pos(0, 2, 0); transform.local = glm::fvec3(0.0f, 0.0f, 0.0f); transform.angles = glm::fvec3(0.0f, 0.0f, 0.0f); auto &velocity = dimension->entities.emplace_or_replace<VelocityComponent>(entity); velocity.value = glm::fvec3(0.0f, 0.0f, 0.0f); }
O0
cpp
shared_factory::create_player(Dimension*, entt::entity): pushq %rbp movq %rsp, %rbp subq $0xd0, %rsp movq %rdi, -0x20(%rbp) movl %esi, -0x24(%rbp) leaq -0x38(%rbp), %rax movq %rax, -0x10(%rbp) leaq 0x229aef(%rip), %rax # 0x376e70 movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0x317c0 movq -0x18(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x20(%rbp), %rdi callq 0x148ee0 movq %rax, -0x40(%rbp) movl -0x24(%rbp), %eax movq %rax, -0x48(%rbp) movq -0x38(%rbp), %rdi movq -0x30(%rbp), %rsi leaq -0x40(%rbp), %rdx leaq -0x48(%rbp), %rcx callq 0x14d5b0 movq -0x20(%rbp), %rdi addq $0x158, %rdi # imm = 0x158 movl -0x24(%rbp), %esi callq 0x14d600 movq %rax, -0x50(%rbp) leaq -0x5c(%rbp), %rdi movss 0x229a82(%rip), %xmm2 # 0x376e68 movss 0x229a7e(%rip), %xmm1 # 0x376e6c movaps %xmm2, %xmm0 callq 0x419c0 movq -0x50(%rbp), %rax movq -0x5c(%rbp), %rcx movq %rcx, 0x8(%rax) movl -0x54(%rbp), %ecx movl %ecx, 0x10(%rax) leaq -0x68(%rbp), %rdi movss 0x22274c(%rip), %xmm2 # 0x36fb60 movss 0x220f64(%rip), %xmm1 # 0x36e380 movaps %xmm2, %xmm0 callq 0x419c0 movq -0x50(%rbp), %rax movq -0x68(%rbp), %rcx movq %rcx, 0x14(%rax) movl -0x60(%rbp), %ecx movl %ecx, 0x1c(%rax) movq -0x20(%rbp), %rdi addq $0x158, %rdi # imm = 0x158 movl -0x24(%rbp), %esi callq 0x14d6a0 movq %rax, -0x70(%rbp) leaq -0x7c(%rbp), %rdi xorps %xmm2, %xmm2 movaps %xmm2, %xmm0 movaps %xmm2, %xmm1 callq 0x419c0 movq -0x70(%rbp), %rax movq -0x7c(%rbp), %rcx movq %rcx, (%rax) movl -0x74(%rbp), %ecx movl %ecx, 0x8(%rax) leaq -0x88(%rbp), %rdi xorps %xmm2, %xmm2 movaps %xmm2, %xmm0 movaps %xmm2, %xmm1 callq 0x419c0 movq -0x70(%rbp), %rax movq -0x88(%rbp), %rcx movq %rcx, 0xc(%rax) movl -0x80(%rbp), %ecx movl %ecx, 0x14(%rax) movq -0x20(%rbp), %rdi addq $0x158, %rdi # imm = 0x158 movl -0x24(%rbp), %esi callq 0x14d740 movq -0x20(%rbp), %rdi addq $0x158, %rdi # imm = 0x158 movl -0x24(%rbp), %esi callq 0x14d7e0 movq %rax, -0x90(%rbp) leaq -0x9c(%rbp), %rdi xorl %ecx, %ecx movl $0x2, %edx movl %ecx, %esi callq 0x41a20 movq -0x90(%rbp), %rax movq -0x9c(%rbp), %rcx movq %rcx, (%rax) movl -0x94(%rbp), %ecx movl %ecx, 0x8(%rax) leaq -0xa8(%rbp), %rdi xorps %xmm2, %xmm2 movaps %xmm2, %xmm0 movaps %xmm2, %xmm1 callq 0x419c0 movq -0x90(%rbp), %rax movq -0xa8(%rbp), %rcx movq %rcx, 0xc(%rax) movl -0xa0(%rbp), %ecx movl %ecx, 0x14(%rax) leaq -0xb4(%rbp), %rdi xorps %xmm2, %xmm2 movaps %xmm2, %xmm0 movaps %xmm2, %xmm1 callq 0x419c0 movq -0x90(%rbp), %rax movq -0xb4(%rbp), %rcx movq %rcx, 0x18(%rax) movl -0xac(%rbp), %ecx movl %ecx, 0x20(%rax) movq -0x20(%rbp), %rdi addq $0x158, %rdi # imm = 0x158 movl -0x24(%rbp), %esi callq 0x14d880 movq %rax, -0xc0(%rbp) leaq -0xcc(%rbp), %rdi xorps %xmm2, %xmm2 movaps %xmm2, %xmm0 movaps %xmm2, %xmm1 callq 0x419c0 movq -0xc0(%rbp), %rax movq -0xcc(%rbp), %rcx movq %rcx, (%rax) movl -0xc4(%rbp), %ecx movl %ecx, 0x8(%rax) addq $0xd0, %rsp popq %rbp retq nopl (%rax,%rax)
_ZN14shared_factory13create_playerEP9DimensionN4entt6entityE: push rbp mov rbp, rsp sub rsp, 0D0h mov [rbp+var_20], rdi mov [rbp+var_24], esi lea rax, [rbp+var_38] mov [rbp+var_10], rax lea rax, aFactoryAssigni; "factory[{}]: assigning player component"... mov [rbp+var_18], rax mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] call _ZN3fmt3v1117basic_string_viewIcEC2EPKc; fmt::v11::basic_string_view<char>::basic_string_view(char const*) mov rax, [rbp+var_18] mov [rbp+var_8], rax mov rdi, [rbp+var_20]; this call _ZNK9Dimension8get_nameEv; Dimension::get_name(void) mov [rbp+var_40], rax mov eax, [rbp+var_24] mov [rbp+var_48], rax mov rdi, [rbp+var_38] mov rsi, [rbp+var_30] lea rdx, [rbp+var_40] lea rcx, [rbp+var_48] call _ZN6spdlog5debugIJPKcmEEEvN3fmt3v1119basic_format_stringIcJDpNS4_13type_identityIT_E4typeEEEEDpOS7_; spdlog::debug<char const*,ulong>(fmt::v11::basic_format_string<char,fmt::v11::type_identity<char const*,ulong>::type>,char const*,ulong&&) mov rdi, [rbp+var_20] add rdi, 158h mov esi, [rbp+var_24] call _ZN4entt14basic_registryINS_6entityESaIS1_EE18emplace_or_replaceI18CollisionComponentJEEEDcS1_DpOT0_ mov [rbp+var_50], rax lea rdi, [rbp+var_5C] movss xmm2, cs:dword_376E68 movss xmm1, cs:dword_376E6C movaps xmm0, xmm2 call _ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff; glm::vec<3,float,(glm::qualifier)0>::vec(float,float,float) mov rax, [rbp+var_50] mov rcx, [rbp+var_5C] mov [rax+8], rcx mov ecx, [rbp+var_54] mov [rax+10h], ecx lea rdi, [rbp+var_68] movss xmm2, cs:flt_36FB60 movss xmm1, cs:flt_36E380 movaps xmm0, xmm2 call _ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff; glm::vec<3,float,(glm::qualifier)0>::vec(float,float,float) mov rax, [rbp+var_50] mov rcx, [rbp+var_68] mov [rax+14h], rcx mov ecx, [rbp+var_60] mov [rax+1Ch], ecx mov rdi, [rbp+var_20] add rdi, 158h mov esi, [rbp+var_24] call _ZN4entt14basic_registryINS_6entityESaIS1_EE18emplace_or_replaceI13HeadComponentJEEEDcS1_DpOT0_ mov [rbp+var_70], rax lea rdi, [rbp+var_7C] xorps xmm2, xmm2 movaps xmm0, xmm2 movaps xmm1, xmm2 call _ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff; glm::vec<3,float,(glm::qualifier)0>::vec(float,float,float) mov rax, [rbp+var_70] mov rcx, [rbp+var_7C] mov [rax], rcx mov ecx, [rbp+var_74] mov [rax+8], ecx lea rdi, [rbp+var_88] xorps xmm2, xmm2 movaps xmm0, xmm2 movaps xmm1, xmm2 call _ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff; glm::vec<3,float,(glm::qualifier)0>::vec(float,float,float) mov rax, [rbp+var_70] mov rcx, [rbp+var_88] mov [rax+0Ch], rcx mov ecx, [rbp+var_80] mov [rax+14h], ecx mov rdi, [rbp+var_20] add rdi, 158h mov esi, [rbp+var_24] call _ZN4entt14basic_registryINS_6entityESaIS1_EE18emplace_or_replaceI15PlayerComponentJEEEDcS1_DpOT0_ mov rdi, [rbp+var_20] add rdi, 158h mov esi, [rbp+var_24] call _ZN4entt14basic_registryINS_6entityESaIS1_EE18emplace_or_replaceI18TransformComponentJEEEDcS1_DpOT0_ mov [rbp+var_90], rax lea rdi, [rbp+var_9C] xor ecx, ecx mov edx, 2 mov esi, ecx call _ZN3glm3vecILi3EiLNS_9qualifierE0EEC2Eiii; glm::vec<3,int,(glm::qualifier)0>::vec(int,int,int) mov rax, [rbp+var_90] mov rcx, [rbp+var_9C] mov [rax], rcx mov ecx, [rbp+var_94] mov [rax+8], ecx lea rdi, [rbp+var_A8] xorps xmm2, xmm2 movaps xmm0, xmm2 movaps xmm1, xmm2 call _ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff; glm::vec<3,float,(glm::qualifier)0>::vec(float,float,float) mov rax, [rbp+var_90] mov rcx, [rbp+var_A8] mov [rax+0Ch], rcx mov ecx, [rbp+var_A0] mov [rax+14h], ecx lea rdi, [rbp+var_B4] xorps xmm2, xmm2 movaps xmm0, xmm2 movaps xmm1, xmm2 call _ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff; glm::vec<3,float,(glm::qualifier)0>::vec(float,float,float) mov rax, [rbp+var_90] mov rcx, [rbp+var_B4] mov [rax+18h], rcx mov ecx, [rbp+var_AC] mov [rax+20h], ecx mov rdi, [rbp+var_20] add rdi, 158h mov esi, [rbp+var_24] call _ZN4entt14basic_registryINS_6entityESaIS1_EE18emplace_or_replaceI17VelocityComponentJEEEDcS1_DpOT0_ mov [rbp+var_C0], rax lea rdi, [rbp+var_CC] xorps xmm2, xmm2 movaps xmm0, xmm2 movaps xmm1, xmm2 call _ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff; glm::vec<3,float,(glm::qualifier)0>::vec(float,float,float) mov rax, [rbp+var_C0] mov rcx, [rbp+var_CC] mov [rax], rcx mov ecx, [rbp+var_C4] mov [rax+8], ecx add rsp, 0D0h pop rbp retn
_QWORD * shared_factory::create_player(Dimension *a1, unsigned int a2) { long long v2; // rax long long v3; // rax _QWORD *v4; // rax _QWORD *v5; // rax _QWORD *v6; // rax _QWORD *v7; // rax _QWORD *v8; // rax _QWORD *result; // rax long long v10; // [rsp+4h] [rbp-CCh] BYREF int v11; // [rsp+Ch] [rbp-C4h] _QWORD *v12; // [rsp+10h] [rbp-C0h] long long v13; // [rsp+1Ch] [rbp-B4h] BYREF int v14; // [rsp+24h] [rbp-ACh] long long v15; // [rsp+28h] [rbp-A8h] BYREF int v16; // [rsp+30h] [rbp-A0h] long long v17; // [rsp+34h] [rbp-9Ch] BYREF int v18; // [rsp+3Ch] [rbp-94h] _QWORD *v19; // [rsp+40h] [rbp-90h] long long v20; // [rsp+48h] [rbp-88h] BYREF int v21; // [rsp+50h] [rbp-80h] long long v22; // [rsp+54h] [rbp-7Ch] BYREF int v23; // [rsp+5Ch] [rbp-74h] _QWORD *v24; // [rsp+60h] [rbp-70h] long long v25; // [rsp+68h] [rbp-68h] BYREF int v26; // [rsp+70h] [rbp-60h] long long v27; // [rsp+74h] [rbp-5Ch] BYREF int v28; // [rsp+7Ch] [rbp-54h] long long v29; // [rsp+80h] [rbp-50h] long long v30; // [rsp+88h] [rbp-48h] BYREF long long name; // [rsp+90h] [rbp-40h] BYREF _QWORD v32[2]; // [rsp+98h] [rbp-38h] BYREF unsigned int v33; // [rsp+ACh] [rbp-24h] Dimension *v34; // [rsp+B0h] [rbp-20h] const char *v35; // [rsp+B8h] [rbp-18h] _QWORD *v36; // [rsp+C0h] [rbp-10h] const char *v37; // [rsp+C8h] [rbp-8h] v34 = a1; v33 = a2; v36 = v32; v35 = "factory[{}]: assigning player components to {}"; fmt::v11::basic_string_view<char>::basic_string_view(v32, (long long)"factory[{}]: assigning player components to {}"); v37 = v35; name = Dimension::get_name(v34); v30 = v33; spdlog::debug<char const*,unsigned long>(v32[0], v32[1], &name, &v30); v29 = entt::basic_registry<entt::entity,std::allocator<entt::entity>>::emplace_or_replace<CollisionComponent>( (char *)v34 + 344, v33); glm::vec<3,float,(glm::qualifier)0>::vec((float *)&v27, -0.40000001, -1.6, -0.40000001); v2 = v29; *(_QWORD *)(v29 + 8) = v27; *(_DWORD *)(v2 + 16) = v28; glm::vec<3,float,(glm::qualifier)0>::vec((float *)&v25, 0.40000001, 0.2, 0.40000001); v3 = v29; *(_QWORD *)(v29 + 20) = v25; *(_DWORD *)(v3 + 28) = v26; v24 = (_QWORD *)entt::basic_registry<entt::entity,std::allocator<entt::entity>>::emplace_or_replace<HeadComponent>( (char *)v34 + 344, v33); glm::vec<3,float,(glm::qualifier)0>::vec((float *)&v22, 0.0, 0.0, 0.0); v4 = v24; *v24 = v22; *((_DWORD *)v4 + 2) = v23; glm::vec<3,float,(glm::qualifier)0>::vec((float *)&v20, 0.0, 0.0, 0.0); v5 = v24; *(_QWORD *)((char *)v24 + 12) = v20; *((_DWORD *)v5 + 5) = v21; entt::basic_registry<entt::entity,std::allocator<entt::entity>>::emplace_or_replace<PlayerComponent>( (char *)v34 + 344, v33); v19 = (_QWORD *)entt::basic_registry<entt::entity,std::allocator<entt::entity>>::emplace_or_replace<TransformComponent>( (char *)v34 + 344, v33); glm::vec<3,int,(glm::qualifier)0>::vec(&v17, 0, 2, 0); v6 = v19; *v19 = v17; *((_DWORD *)v6 + 2) = v18; glm::vec<3,float,(glm::qualifier)0>::vec((float *)&v15, 0.0, 0.0, 0.0); v7 = v19; *(_QWORD *)((char *)v19 + 12) = v15; *((_DWORD *)v7 + 5) = v16; glm::vec<3,float,(glm::qualifier)0>::vec((float *)&v13, 0.0, 0.0, 0.0); v8 = v19; v19[3] = v13; *((_DWORD *)v8 + 8) = v14; v12 = (_QWORD *)entt::basic_registry<entt::entity,std::allocator<entt::entity>>::emplace_or_replace<VelocityComponent>( (char *)v34 + 344, v33); glm::vec<3,float,(glm::qualifier)0>::vec((float *)&v10, 0.0, 0.0, 0.0); result = v12; *v12 = v10; *((_DWORD *)result + 2) = v11; return result; }
operator=: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RDI,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x18],RDI MOV RSI,qword ptr [RBP + -0x10] CALL 0x0014d3c0 MOV RAX,qword ptr [RBP + -0x18] ADD RSP,0x20 POP RBP RET
/* entt::compressed_pair<std::vector<unsigned long, std::allocator<unsigned long> >, entt::identity>::TEMPNAMEPLACEHOLDERVALUE(entt::compressed_pair<std::vector<unsigned long, std::allocator<unsigned long> >, entt::identity>&&) */ compressed_pair<std::vector<unsigned_long,std::allocator<unsigned_long>>,entt::identity> * __thiscall entt::compressed_pair<std::vector<unsigned_long,std::allocator<unsigned_long>>,entt::identity>:: operator=(compressed_pair<std::vector<unsigned_long,std::allocator<unsigned_long>>,entt::identity> *this,compressed_pair *param_1) { internal:: compressed_pair_element<std::vector<unsigned_long,std::allocator<unsigned_long>>,0ul,void>:: operator=((compressed_pair_element<std::vector<unsigned_long,std::allocator<unsigned_long>>,0ul,void> *)this,(compressed_pair_element *)param_1); return this; }
52,866
testing::internal::SuiteApiResolver<testing::Test>::GetSetUpCaseOrSuite(char const*, int)
yoga-mod/tests/build_O3/_deps/googletest-src/googletest/include/gtest/internal/gtest-internal.h
static SetUpTearDownSuiteFuncType GetSetUpCaseOrSuite(const char* filename, int line_num) { #ifndef GTEST_REMOVE_LEGACY_TEST_CASEAPI_ SetUpTearDownSuiteFuncType test_case_fp = GetNotDefaultOrNull(&T::SetUpTestCase, &Test::SetUpTestCase); SetUpTearDownSuiteFuncType test_suite_fp = GetNotDefaultOrNull(&T::SetUpTestSuite, &Test::SetUpTestSuite); GTEST_CHECK_(!test_case_fp || !test_suite_fp) << "Test can not provide both SetUpTestSuite and SetUpTestCase, please " "make sure there is only one present at " << filename << ":" << line_num; return test_case_fp != nullptr ? test_case_fp : test_suite_fp; #else (void)(filename); (void)(line_num); return &T::SetUpTestSuite; #endif }
O3
c
testing::internal::SuiteApiResolver<testing::Test>::GetSetUpCaseOrSuite(char const*, int): pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movl %esi, %ebx movq %rdi, %r14 movl $0x1, %edi callq 0x377500 testb %al, %al jne 0x71982 leaq 0x327c51(%rip), %rdx # 0x399525 leaq -0x1c(%rbp), %rdi movl $0x3, %esi movl $0x20e, %ecx # imm = 0x20E callq 0x37c22c movq 0x3e66fa(%rip), %rdi # 0x457fe8 leaq 0x327cb1(%rip), %rsi # 0x3995a6 movl $0x32, %edx callq 0x324f0 movq 0x3e66e2(%rip), %r15 # 0x457fe8 leaq 0x327ccc(%rip), %rsi # 0x3995d9 movl $0x6a, %edx movq %r15, %rdi callq 0x324f0 testq %r14, %r14 je 0x7193b movq %r14, %rdi callq 0x321b0 movq 0x3e66ba(%rip), %rdi # 0x457fe8 movq %r14, %rsi movq %rax, %rdx callq 0x324f0 jmp 0x71953 movq (%r15), %rax movq -0x18(%rax), %rax leaq (%r15,%rax), %rdi movl 0x20(%r15,%rax), %esi orl $0x1, %esi callq 0x32800 movq 0x3e668e(%rip), %rdi # 0x457fe8 leaq 0x337f2f(%rip), %rsi # 0x3a9890 movl $0x1, %edx callq 0x324f0 movq 0x3e6676(%rip), %rdi # 0x457fe8 movl %ebx, %esi callq 0x32820 leaq -0x1c(%rbp), %rdi callq 0x37c372 xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq -0x1c(%rbp), %rdi callq 0x37c372 movq %rbx, %rdi callq 0x32840 nop
_ZN7testing8internal16SuiteApiResolverINS_4TestEE19GetSetUpCaseOrSuiteEPKci: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov ebx, esi mov r14, rdi mov edi, (offset dword_0+1); this call _ZN7testing8internal6IsTrueEb; testing::internal::IsTrue(bool) test al, al jnz loc_71982 lea rdx, aWorkspaceLlm4b_50; "/workspace/llm4binary/github2025/yoga-m"... lea rdi, [rbp+var_1C] mov esi, 3 mov ecx, 20Eh call _ZN7testing8internal8GTestLogC2ENS0_16GTestLogSeverityEPKci; testing::internal::GTestLog::GTestLog(testing::internal::GTestLogSeverity,char const*,int) mov rdi, cs:_ZSt4cerr_ptr lea rsi, aConditionTestC; "Condition !test_case_fp || !test_suite_"... mov edx, 32h ; '2' call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov r15, cs:_ZSt4cerr_ptr lea rsi, aTestCanNotProv; "Test can not provide both SetUpTestSuit"... mov edx, 6Ah ; 'j' 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) test r14, r14 jz short loc_7193B mov rdi, r14 call _strlen mov rdi, cs:_ZSt4cerr_ptr mov rsi, r14 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_71953 loc_7193B: mov rax, [r15] mov rax, [rax-18h] lea rdi, [r15+rax] mov esi, [r15+rax+20h] or esi, 1 call __ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate; std::ios::clear(std::_Ios_Iostate) loc_71953: mov rdi, cs:_ZSt4cerr_ptr lea rsi, aTrace+6; ":" mov edx, 1 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rdi, cs:_ZSt4cerr_ptr mov esi, ebx call __ZNSolsEi; std::ostream::operator<<(int) lea rdi, [rbp+var_1C]; this call _ZN7testing8internal8GTestLogD2Ev; testing::internal::GTestLog::~GTestLog() loc_71982: xor eax, eax add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn mov rbx, rax lea rdi, [rbp+var_1C]; this call _ZN7testing8internal8GTestLogD2Ev; testing::internal::GTestLog::~GTestLog() mov rdi, rbx call __Unwind_Resume
long long testing::internal::SuiteApiResolver<testing::Test>::GetSetUpCaseOrSuite(long long a1, BOOL a2) { long long v2; // rax long long v3; // rax _DWORD v5[7]; // [rsp+0h] [rbp-1Ch] BYREF v5[0] = HIDWORD(v2); if ( !(unsigned __int8)testing::internal::IsTrue((testing::internal *)((char *)&dword_0 + 1), a2) ) { testing::internal::GTestLog::GTestLog( v5, 3LL, "/workspace/llm4binary/github2025/yoga-mod/tests/build_O3/_deps/googletest-src/googletest/include/gtest/internal/gtest-internal.h", 526LL); std::__ostream_insert<char,std::char_traits<char>>( &std::cerr, "Condition !test_case_fp || !test_suite_fp failed. ", 50LL); std::__ostream_insert<char,std::char_traits<char>>( &std::cerr, "Test can not provide both SetUpTestSuite and SetUpTestCase, please make sure there is only one present at ", 106LL); if ( a1 ) { v3 = strlen(a1); std::__ostream_insert<char,std::char_traits<char>>(&std::cerr, a1, v3); } else { std::ios::clear( (char *)&std::cerr + *(_QWORD *)(std::cerr - 24LL), *(_DWORD *)((char *)&std::cerr + *(_QWORD *)(std::cerr - 24LL) + 32) | 1u); } std::__ostream_insert<char,std::char_traits<char>>(&std::cerr, ":", 1LL); std::ostream::operator<<(&std::cerr, a2); testing::internal::GTestLog::~GTestLog((testing::internal::GTestLog *)v5); } return 0LL; }
GetSetUpCaseOrSuite: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV EBX,ESI MOV R14,RDI MOV EDI,0x1 CALL 0x00477500 TEST AL,AL JNZ 0x00171982 LEA RDX,[0x499525] LEA RDI,[RBP + -0x1c] MOV ESI,0x3 MOV ECX,0x20e CALL 0x0047c22c LAB_001718e7: MOV RDI,qword ptr [0x00557fe8] LEA RSI,[0x4995a6] MOV EDX,0x32 CALL 0x001324f0 MOV R15,qword ptr [0x00557fe8] LEA RSI,[0x4995d9] MOV EDX,0x6a MOV RDI,R15 CALL 0x001324f0 TEST R14,R14 JZ 0x0017193b MOV RDI,R14 CALL 0x001321b0 MOV RDI,qword ptr [0x00557fe8] MOV RSI,R14 MOV RDX,RAX CALL 0x001324f0 JMP 0x00171953 LAB_0017193b: MOV RAX,qword ptr [R15] MOV RAX,qword ptr [RAX + -0x18] LEA RDI,[R15 + RAX*0x1] MOV ESI,dword ptr [R15 + RAX*0x1 + 0x20] OR ESI,0x1 CALL 0x00132800 LAB_00171953: MOV RDI,qword ptr [0x00557fe8] LEA RSI,[0x4a9890] MOV EDX,0x1 CALL 0x001324f0 MOV RDI,qword ptr [0x00557fe8] MOV ESI,EBX CALL 0x00132820 LAB_00171979: LEA RDI,[RBP + -0x1c] CALL 0x0047c372 LAB_00171982: XOR EAX,EAX ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
/* testing::internal::SuiteApiResolver<testing::Test>::GetSetUpCaseOrSuite(char const*, int) */ int8 testing::internal::SuiteApiResolver<testing::Test>::GetSetUpCaseOrSuite(char *param_1,int param_2) { int *puVar1; char cVar2; size_t sVar3; GTestLog local_24 [4]; cVar2 = IsTrue(true); if (cVar2 == '\0') { GTestLog::GTestLog(local_24,3, "/workspace/llm4binary/github2025/yoga-mod/tests/build_O3/_deps/googletest-src/googletest/include/gtest/internal/gtest-internal.h" ,0x20e); /* try { // try from 001718e7 to 00171978 has its CatchHandler @ 0017198f */ std::__ostream_insert<char,std::char_traits<char>> ((ostream *)PTR_cerr_00557fe8,"Condition !test_case_fp || !test_suite_fp failed. ", 0x32); puVar1 = PTR_cerr_00557fe8; std::__ostream_insert<char,std::char_traits<char>> ((ostream *)PTR_cerr_00557fe8, "Test can not provide both SetUpTestSuite and SetUpTestCase, please make sure there is only one present at " ,0x6a); if (param_1 == (char *)0x0) { std::ios::clear(puVar1 + *(long *)(*(long *)puVar1 + -0x18), *(uint *)(puVar1 + *(long *)(*(long *)puVar1 + -0x18) + 0x20) | 1); } else { sVar3 = strlen(param_1); std::__ostream_insert<char,std::char_traits<char>>((ostream *)PTR_cerr_00557fe8,param_1,sVar3) ; } std::__ostream_insert<char,std::char_traits<char>>((ostream *)PTR_cerr_00557fe8,":",1); std::ostream::operator<<((ostream *)PTR_cerr_00557fe8,param_2); GTestLog::~GTestLog(local_24); } return 0; }
52,867
pvio_socket_keepalive
eloqsql/libmariadb/plugins/pvio/pvio_socket.c
int pvio_socket_keepalive(MARIADB_PVIO *pvio) { int opt= 1; struct st_pvio_socket *csock= NULL; if (!pvio || !pvio->data) return 1; csock= (struct st_pvio_socket *)pvio->data; return setsockopt(csock->socket, SOL_SOCKET, SO_KEEPALIVE, #ifndef _WIN32 (const void *)&opt, sizeof(opt)); #else (char *)&opt, (int)sizeof(opt)); #endif }
O3
c
pvio_socket_keepalive: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movl $0x1, -0x4(%rbp) movl $0x1, %eax testq %rdi, %rdi je 0x3190b movq (%rdi), %rcx testq %rcx, %rcx je 0x3190b movl (%rcx), %edi leaq -0x4(%rbp), %rcx movl $0x1, %esi movl $0x9, %edx movl $0x4, %r8d callq 0x137b0 addq $0x10, %rsp popq %rbp retq
pvio_socket_keepalive: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_4], 1 mov eax, 1 test rdi, rdi jz short loc_3190B mov rcx, [rdi] test rcx, rcx jz short loc_3190B mov edi, [rcx] lea rcx, [rbp+var_4] mov esi, 1 mov edx, 9 mov r8d, 4 call _setsockopt loc_3190B: add rsp, 10h pop rbp retn
long long pvio_socket_keepalive(_QWORD *a1) { long long result; // rax int v2; // [rsp+Ch] [rbp-4h] BYREF v2 = 1; result = 1LL; if ( a1 ) { if ( *a1 ) return setsockopt(*(unsigned int *)*a1, 1LL, 9LL, &v2, 4LL); } return result; }
pvio_socket_keepalive: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV dword ptr [RBP + -0x4],0x1 MOV EAX,0x1 TEST RDI,RDI JZ 0x0013190b MOV RCX,qword ptr [RDI] TEST RCX,RCX JZ 0x0013190b MOV EDI,dword ptr [RCX] LEA RCX,[RBP + -0x4] MOV ESI,0x1 MOV EDX,0x9 MOV R8D,0x4 CALL 0x001137b0 LAB_0013190b: ADD RSP,0x10 POP RBP RET
int pvio_socket_keepalive(int8 *param_1) { int iVar1; int4 local_c; local_c = 1; iVar1 = 1; if ((param_1 != (int8 *)0x0) && ((int *)*param_1 != (int *)0x0)) { iVar1 = setsockopt(*(int *)*param_1,1,9,&local_c,4); } return iVar1; }
52,868
LefDefParser::defwCanPlace(char const*, int, int, int, int, int, int, int)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defwWriter.cpp
int defwCanPlace(const char *master, int xOrig, int yOrig, int orient, int doCnt, int doInc, int xStep, int yStep) { defwFunc = DEFW_CANPLACE; // Current function of writer if (!defwFile) return DEFW_UNINITIALIZED; if (!defwDidInit) return DEFW_BAD_ORDER; if (defwState == DEFW_ROW) fprintf(defwFile, ";\n\n"); // add the ; and \n for the previous row. if ((master == 0) || (*master == 0)) // required return DEFW_BAD_DATA; fprintf(defwFile, "CANPLACE %s %d %d %s DO %d BY %d STEP %d %d ;\n", master, xOrig, yOrig, defwOrient(orient), doCnt, doInc, xStep, yStep); defwLines++; defwState = DEFW_CANPLACE; return DEFW_OK; }
O0
cpp
LefDefParser::defwCanPlace(char const*, int, int, int, int, int, int, int): pushq %rbx subq $0x60, %rsp movl 0x78(%rsp), %eax movl 0x70(%rsp), %eax movq %rdi, 0x50(%rsp) movl %esi, 0x4c(%rsp) movl %edx, 0x48(%rsp) movl %ecx, 0x44(%rsp) movl %r8d, 0x40(%rsp) movl %r9d, 0x3c(%rsp) leaq 0x18599(%rip), %rax # 0x2b168 movl $0x16, (%rax) leaq 0x1857c(%rip), %rax # 0x2b158 cmpq $0x0, (%rax) jne 0x12bef movl $0x1, 0x5c(%rsp) jmp 0x12cf1 leaq 0x1857e(%rip), %rax # 0x2b174 cmpl $0x0, (%rax) jne 0x12c08 movl $0x2, 0x5c(%rsp) jmp 0x12cf1 leaq 0x18555(%rip), %rax # 0x2b164 cmpl $0x10, (%rax) jne 0x12c2c leaq 0x1853d(%rip), %rax # 0x2b158 movq (%rax), %rdi leaq 0x114d0(%rip), %rsi # 0x240f5 movb $0x0, %al callq 0x10f0 cmpq $0x0, 0x50(%rsp) je 0x12c41 movq 0x50(%rsp), %rax movsbl (%rax), %eax cmpl $0x0, %eax jne 0x12c4e movl $0x3, 0x5c(%rsp) jmp 0x12cf1 leaq 0x18503(%rip), %rax # 0x2b158 movq (%rax), %rax movq %rax, 0x20(%rsp) movq 0x50(%rsp), %rax movq %rax, 0x28(%rsp) movl 0x4c(%rsp), %eax movl %eax, 0x34(%rsp) movl 0x48(%rsp), %eax movl %eax, 0x38(%rsp) movl 0x44(%rsp), %edi callq 0x12150 movq 0x20(%rsp), %rdi movq 0x28(%rsp), %rdx movl 0x34(%rsp), %ecx movl 0x38(%rsp), %r8d movq %rax, %r9 movl 0x40(%rsp), %ebx movl 0x3c(%rsp), %r11d movl 0x70(%rsp), %r10d movl 0x78(%rsp), %eax leaq 0x11523(%rip), %rsi # 0x241d2 movl %ebx, (%rsp) movl %r11d, 0x8(%rsp) movl %r10d, 0x10(%rsp) movl %eax, 0x18(%rsp) movb $0x0, %al callq 0x10f0 leaq 0x18492(%rip), %rax # 0x2b160 movl (%rax), %ecx addl $0x1, %ecx leaq 0x18486(%rip), %rax # 0x2b160 movl %ecx, (%rax) leaq 0x18481(%rip), %rax # 0x2b164 movl $0x16, (%rax) movl $0x0, 0x5c(%rsp) movl 0x5c(%rsp), %eax addq $0x60, %rsp popq %rbx retq nopl (%rax,%rax)
_ZN12LefDefParser12defwCanPlaceEPKciiiiiii: push rbx sub rsp, 60h mov eax, [rsp+68h+arg_8] mov eax, [rsp+68h+arg_0] mov [rsp+68h+var_18], rdi mov [rsp+68h+var_1C], esi mov dword ptr [rsp+68h+var_24+4], edx mov dword ptr [rsp+68h+var_24], ecx mov [rsp+68h+var_28], r8d mov [rsp+68h+var_2C], r9d lea rax, _ZN12LefDefParser8defwFuncE; LefDefParser::defwFunc mov dword ptr [rax], 16h lea rax, _ZN12LefDefParser8defwFileE; LefDefParser::defwFile cmp qword ptr [rax], 0 jnz short loc_12BEF mov [rsp+68h+var_C], 1 jmp loc_12CF1 loc_12BEF: lea rax, _ZN12LefDefParser11defwDidInitE; LefDefParser::defwDidInit cmp dword ptr [rax], 0 jnz short loc_12C08 mov [rsp+68h+var_C], 2 jmp loc_12CF1 loc_12C08: lea rax, _ZN12LefDefParser9defwStateE; LefDefParser::defwState cmp dword ptr [rax], 10h jnz short loc_12C2C lea rax, _ZN12LefDefParser8defwFileE; LefDefParser::defwFile mov rdi, [rax] lea rsi, asc_240F5; ";\n\n" mov al, 0 call _fprintf loc_12C2C: cmp [rsp+68h+var_18], 0 jz short loc_12C41 mov rax, [rsp+68h+var_18] movsx eax, byte ptr [rax] cmp eax, 0 jnz short loc_12C4E loc_12C41: mov [rsp+68h+var_C], 3 jmp loc_12CF1 loc_12C4E: lea rax, _ZN12LefDefParser8defwFileE; LefDefParser::defwFile mov rax, [rax] mov [rsp+68h+var_48], rax mov rax, [rsp+68h+var_18] mov [rsp+68h+var_40], rax mov eax, [rsp+68h+var_1C] mov [rsp+68h+var_34], eax mov eax, dword ptr [rsp+68h+var_24+4] mov [rsp+68h+var_30], eax mov edi, dword ptr [rsp+68h+var_24]; this call _ZN12LefDefParser10defwOrientEi; LefDefParser::defwOrient(int) mov rdi, [rsp+68h+var_48] mov rdx, [rsp+68h+var_40] mov ecx, [rsp+68h+var_34] mov r8d, [rsp+68h+var_30] mov r9, rax mov ebx, [rsp+68h+var_28] mov r11d, [rsp+68h+var_2C] mov r10d, [rsp+68h+arg_0] mov eax, [rsp+68h+arg_8] lea rsi, aCanplaceSDDSDo; "CANPLACE %s %d %d %s DO %d BY %d STEP %"... mov [rsp+68h+var_68], ebx mov [rsp+68h+var_60], r11d mov [rsp+68h+var_58], r10d mov [rsp+68h+var_50], eax mov al, 0 call _fprintf lea rax, _ZN12LefDefParser9defwLinesE; LefDefParser::defwLines mov ecx, [rax] add ecx, 1 lea rax, _ZN12LefDefParser9defwLinesE; LefDefParser::defwLines mov [rax], ecx lea rax, _ZN12LefDefParser9defwStateE; LefDefParser::defwState mov dword ptr [rax], 16h mov [rsp+68h+var_C], 0 loc_12CF1: mov eax, [rsp+68h+var_C] add rsp, 60h pop rbx retn
long long LefDefParser::defwCanPlace( LefDefParser *this, const char *a2, int a3, unsigned int a4, int a5, int a6, int a7, int a8) { LefDefParser *v8; // rax long long v10; // [rsp+20h] [rbp-48h] int v15; // [rsp+4Ch] [rbp-1Ch] v15 = (int)a2; LefDefParser::defwFunc = 22; if ( LefDefParser::defwFile ) { if ( LefDefParser::defwDidInit ) { if ( LefDefParser::defwState == 16 ) { a2 = ";\n\n"; fprintf(LefDefParser::defwFile, ";\n\n"); } if ( this && *(_BYTE *)this ) { v10 = LefDefParser::defwFile; v8 = LefDefParser::defwOrient((LefDefParser *)a4, a2); fprintf( v10, "CANPLACE %s %d %d %s DO %d BY %d STEP %d %d ;\n", (const char *)this, v15, a3, (const char *)v8, a5, a6, a7, a8); ++LefDefParser::defwLines; LefDefParser::defwState = 22; return 0; } else { return 3; } } else { return 2; } } else { return 1; } }
defwCanPlace: PUSH RBX SUB RSP,0x60 MOV EAX,dword ptr [RSP + 0x78] MOV EAX,dword ptr [RSP + 0x70] MOV qword ptr [RSP + 0x50],RDI MOV dword ptr [RSP + 0x4c],ESI MOV dword ptr [RSP + 0x48],EDX MOV dword ptr [RSP + 0x44],ECX MOV dword ptr [RSP + 0x40],R8D MOV dword ptr [RSP + 0x3c],R9D LEA RAX,[0x12b168] MOV dword ptr [RAX],0x16 LEA RAX,[0x12b158] CMP qword ptr [RAX],0x0 JNZ 0x00112bef MOV dword ptr [RSP + 0x5c],0x1 JMP 0x00112cf1 LAB_00112bef: LEA RAX,[0x12b174] CMP dword ptr [RAX],0x0 JNZ 0x00112c08 MOV dword ptr [RSP + 0x5c],0x2 JMP 0x00112cf1 LAB_00112c08: LEA RAX,[0x12b164] CMP dword ptr [RAX],0x10 JNZ 0x00112c2c LEA RAX,[0x12b158] MOV RDI,qword ptr [RAX] LEA RSI,[0x1240f5] MOV AL,0x0 CALL 0x001010f0 LAB_00112c2c: CMP qword ptr [RSP + 0x50],0x0 JZ 0x00112c41 MOV RAX,qword ptr [RSP + 0x50] MOVSX EAX,byte ptr [RAX] CMP EAX,0x0 JNZ 0x00112c4e LAB_00112c41: MOV dword ptr [RSP + 0x5c],0x3 JMP 0x00112cf1 LAB_00112c4e: LEA RAX,[0x12b158] MOV RAX,qword ptr [RAX] MOV qword ptr [RSP + 0x20],RAX MOV RAX,qword ptr [RSP + 0x50] MOV qword ptr [RSP + 0x28],RAX MOV EAX,dword ptr [RSP + 0x4c] MOV dword ptr [RSP + 0x34],EAX MOV EAX,dword ptr [RSP + 0x48] MOV dword ptr [RSP + 0x38],EAX MOV EDI,dword ptr [RSP + 0x44] CALL 0x00112150 MOV RDI,qword ptr [RSP + 0x20] MOV RDX,qword ptr [RSP + 0x28] MOV ECX,dword ptr [RSP + 0x34] MOV R8D,dword ptr [RSP + 0x38] MOV R9,RAX MOV EBX,dword ptr [RSP + 0x40] MOV R11D,dword ptr [RSP + 0x3c] MOV R10D,dword ptr [RSP + 0x70] MOV EAX,dword ptr [RSP + 0x78] LEA RSI,[0x1241d2] MOV dword ptr [RSP],EBX MOV dword ptr [RSP + 0x8],R11D MOV dword ptr [RSP + 0x10],R10D MOV dword ptr [RSP + 0x18],EAX MOV AL,0x0 CALL 0x001010f0 LEA RAX,[0x12b160] MOV ECX,dword ptr [RAX] ADD ECX,0x1 LEA RAX,[0x12b160] MOV dword ptr [RAX],ECX LEA RAX,[0x12b164] MOV dword ptr [RAX],0x16 MOV dword ptr [RSP + 0x5c],0x0 LAB_00112cf1: MOV EAX,dword ptr [RSP + 0x5c] ADD RSP,0x60 POP RBX RET
/* LefDefParser::defwCanPlace(char const*, int, int, int, int, int, int, int) */ int4 LefDefParser::defwCanPlace (char *param_1,int param_2,int param_3,int param_4,int param_5,int param_6,int param_7, int param_8) { FILE *__stream; int8 uVar1; int4 local_c; defwFunc = 0x16; if (defwFile == (FILE *)0x0) { local_c = 1; } else if (defwDidInit == 0) { local_c = 2; } else { if (defwState == 0x10) { fprintf(defwFile,";\n\n"); } __stream = defwFile; if ((param_1 == (char *)0x0) || (*param_1 == '\0')) { local_c = 3; } else { uVar1 = defwOrient(param_4); fprintf(__stream,"CANPLACE %s %d %d %s DO %d BY %d STEP %d %d ;\n",param_1, (ulong)(uint)param_2,(ulong)(uint)param_3,uVar1,param_5,param_6,param_7,param_8); defwLines = defwLines + 1; defwState = 0x16; local_c = 0; } } return local_c; }
52,869
minja::Parser::parseMathPlusMinus()
monkey531[P]llama/common/minja.hpp
std::shared_ptr<Expression> parseMathPlusMinus() { static std::regex plus_minus_tok(R"(\+|-(?![}%#]\}))"); auto left = parseMathMulDiv(); if (!left) throw std::runtime_error("Expected left side of 'math plus/minus' expression"); std::string op_str; while (!(op_str = consumeToken(plus_minus_tok)).empty()) { auto right = parseMathMulDiv(); if (!right) throw std::runtime_error("Expected right side of 'math plus/minus' expression"); auto op = op_str == "+" ? BinaryOpExpr::Op::Add : BinaryOpExpr::Op::Sub; left = std::make_shared<BinaryOpExpr>(get_location(), std::move(left), std::move(right), op); } return left; }
O2
cpp
minja::Parser::parseMathPlusMinus(): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x78, %rsp movq %rsi, %r15 movq %rdi, %rbx leaq 0xa2a57(%rip), %rax # 0x123588 movb (%rax), %al testb %al, %al movq %rdi, 0x8(%rsp) je 0x80c88 movq %rbx, %rdi movq %r15, %rsi callq 0x80d92 cmpq $0x0, (%rbx) je 0x80ce2 leaq 0x48(%rsp), %rax movq %rax, -0x10(%rax) andq $0x0, -0x8(%rax) movb $0x0, (%rax) leaq 0x58(%rsp), %r14 leaq 0x38(%rsp), %r13 leaq 0x18(%rsp), %rbp leaq 0x28(%rsp), %r12 movq %r14, %rdi movq %r15, %rsi leaq 0xa29e1(%rip), %rdx # 0x123568 pushq $0x1 popq %rcx callq 0x7cf74 movq %r13, %rdi movq %r14, %rsi callq 0x26f10 movq 0x8(%rax), %rbx movq %r14, %rdi callq 0x27998 testq %rbx, %rbx je 0x80c35 movq %rbp, %rdi movq %r15, %rsi movq 0x8(%rsp), %rbx callq 0x80d92 cmpq $0x0, 0x18(%rsp) je 0x80c53 movq %r13, %rdi leaq 0x5235f(%rip), %rsi # 0xd2f34 callq 0x48eb9 movzbl %al, %eax pushq $0x2 popq %rcx subl %eax, %ecx movl %ecx, 0x14(%rsp) movq %r14, %rdi movq %r15, %rsi callq 0x7cb50 movq %r12, %rdi movq %r14, %rsi movq %rbx, %rdx movq %rbp, %rcx leaq 0x14(%rsp), %r8 callq 0x80916 movq %rbx, %rdi movq %r12, %rsi callq 0x8d824 leaq 0x30(%rsp), %rdi callq 0x4e2f6 leaq 0x60(%rsp), %rdi callq 0x4e2f6 leaq 0x20(%rsp), %rdi callq 0x4e2f6 jmp 0x80b7a leaq 0x38(%rsp), %rdi callq 0x27998 movq 0x8(%rsp), %rax addq $0x78, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq pushq $0x10 popq %rdi callq 0x265e0 movq %rax, %r15 leaq 0x5177f(%rip), %rsi # 0xd23e4 movq %rax, %rdi callq 0x26420 movq 0xa137c(%rip), %rsi # 0x121ff0 movq 0xa12dd(%rip), %rdx # 0x121f58 movq %r15, %rdi callq 0x275b0 jmp 0x80d12 leaq 0xa28f9(%rip), %rdi # 0x123588 callq 0x27700 testl %eax, %eax je 0x80b40 leaq 0xa28c5(%rip), %rdi # 0x123568 leaq 0x516f7(%rip), %rsi # 0xd23a1 pushq $0x10 popq %rdx callq 0x6deac leaq -0x3de0b(%rip), %rdi # 0x42eae leaq 0xa28a8(%rip), %rsi # 0x123568 leaq 0xa2011(%rip), %rdx # 0x122cd8 callq 0x26aa0 leaq 0xa28b5(%rip), %rdi # 0x123588 callq 0x26800 movq 0x8(%rsp), %rbx jmp 0x80b40 pushq $0x10 popq %rdi callq 0x265e0 movq %rax, %r15 leaq 0x516bd(%rip), %rsi # 0xd23b1 movq %rax, %rdi callq 0x26420 movq 0xa12ed(%rip), %rsi # 0x121ff0 movq 0xa124e(%rip), %rdx # 0x121f58 movq %r15, %rdi callq 0x275b0 movq %rax, %r14 leaq 0xa286c(%rip), %rdi # 0x123588 callq 0x267e0 jmp 0x80d8a movq %rax, %r14 jmp 0x80d33 movq %rax, %r14 movq %r15, %rdi callq 0x268f0 movq 0x8(%rsp), %rbx jmp 0x80d7e jmp 0x80d49 movq %rax, %r14 movq %r15, %rdi callq 0x268f0 jmp 0x80d5b movq %rax, %r14 jmp 0x80d5b movq %rax, %r14 leaq 0x60(%rsp), %rdi callq 0x4e2f6 leaq 0x20(%rsp), %rdi callq 0x4e2f6 jmp 0x80d6f movq %rax, %r14 jmp 0x80d74 movq %rax, %r14 movq 0x8(%rsp), %rbx leaq 0x38(%rsp), %rdi callq 0x27998 addq $0x8, %rbx movq %rbx, %rdi callq 0x4e2f6 movq %r14, %rdi callq 0x27660
_ZN5minja6Parser18parseMathPlusMinusEv: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 78h mov r15, rsi mov rbx, rdi lea rax, _ZGVZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; `guard variable for'minja::Parser::parseMathPlusMinus(void)::plus_minus_tok mov al, [rax] test al, al mov [rsp+0A8h+var_A0], rdi jz loc_80C88 loc_80B40: mov rdi, rbx; this mov rsi, r15 call _ZN5minja6Parser15parseMathMulDivEv; minja::Parser::parseMathMulDiv(void) cmp qword ptr [rbx], 0 jz loc_80CE2 lea rax, [rsp+0A8h+var_60] mov [rax-10h], rax and qword ptr [rax-8], 0 mov byte ptr [rax], 0 lea r14, [rsp+0A8h+var_50] lea r13, [rsp+0A8h+var_70] lea rbp, [rsp+0A8h+var_90] lea r12, [rsp+0A8h+var_80] loc_80B7A: mov rdi, r14 mov rsi, r15 lea rdx, _ZZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; minja::Parser::parseMathPlusMinus(void)::plus_minus_tok push 1 pop rcx call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling) mov rdi, r13 mov rsi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&) mov rbx, [rax+8] mov rdi, r14; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test rbx, rbx jz loc_80C35 mov rdi, rbp; this mov rsi, r15 mov rbx, [rsp+0A8h+var_A0] call _ZN5minja6Parser15parseMathMulDivEv; minja::Parser::parseMathMulDiv(void) cmp [rsp+0A8h+var_90], 0 jz loc_80C53 mov rdi, r13 lea rsi, aSRN_0+0Bh; "+" call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) movzx eax, al push 2 pop rcx sub ecx, eax mov [rsp+0A8h+var_94], ecx mov rdi, r14; this mov rsi, r15 call _ZNK5minja6Parser12get_locationEv; minja::Parser::get_location(void) mov rdi, r12 mov rsi, r14 mov rdx, rbx mov rcx, rbp lea r8, [rsp+0A8h+var_94] call _ZSt11make_sharedIN5minja12BinaryOpExprEJNS0_8LocationESt10shared_ptrINS0_10ExpressionEES5_RNS1_2OpEEES3_IT_EDpOT0_; std::make_shared<minja::BinaryOpExpr,minja::Location,std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>,minja::BinaryOpExpr::Op &>(minja::Location,std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>,minja::BinaryOpExpr::Op &) mov rdi, rbx mov rsi, r12 call _ZNSt12__shared_ptrIN5minja10ExpressionELN9__gnu_cxx12_Lock_policyE2EEaSINS0_12BinaryOpExprEEENSt9enable_ifIXsr20__sp_compatible_withIPT_PS1_EE5valueERS4_E4typeEOS_IS8_LS3_2EE lea rdi, [rsp+0A8h+var_78] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() lea rdi, [rsp+0A8h+var_48] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() lea rdi, [rsp+0A8h+var_88] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() jmp loc_80B7A loc_80C35: lea rdi, [rsp+0A8h+var_70]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rax, [rsp+0A8h+var_A0] add rsp, 78h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_80C53: push 10h pop rdi; thrown_size call ___cxa_allocate_exception mov r15, rax lea rsi, aExpectedRightS_4; "Expected right side of 'math plus/minus"... mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, r15; void * call ___cxa_throw jmp loc_80D12 loc_80C88: lea rdi, _ZGVZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; __guard * call ___cxa_guard_acquire test eax, eax jz loc_80B40 lea rdi, _ZZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; minja::Parser::parseMathPlusMinus(void)::plus_minus_tok lea rsi, asc_D23A1; "\\+|-(?![}%#]\\})" push 10h pop rdx 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, _ZZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; obj lea rdx, __dso_handle; lpdso_handle call ___cxa_atexit lea rdi, _ZGVZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; __guard * call ___cxa_guard_release mov rbx, [rsp+0A8h+var_A0] jmp loc_80B40 loc_80CE2: push 10h pop rdi; thrown_size call ___cxa_allocate_exception mov r15, rax lea rsi, aExpectedLeftSi_4; "Expected left side of 'math plus/minus'"... mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, r15; void * call ___cxa_throw loc_80D12: mov r14, rax lea rdi, _ZGVZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; __guard * call ___cxa_guard_abort jmp short loc_80D8A mov r14, rax jmp short loc_80D33 mov r14, rax mov rdi, r15; void * call ___cxa_free_exception loc_80D33: mov rbx, [rsp+0A8h+var_A0] jmp short loc_80D7E jmp short loc_80D49 mov r14, rax mov rdi, r15; void * call ___cxa_free_exception jmp short loc_80D5B loc_80D49: mov r14, rax jmp short loc_80D5B mov r14, rax lea rdi, [rsp+0A8h+var_48] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() loc_80D5B: lea rdi, [rsp+0A8h+var_88] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() jmp short loc_80D6F mov r14, rax jmp short loc_80D74 mov r14, rax loc_80D6F: mov rbx, [rsp+0A8h+var_A0] loc_80D74: lea rdi, [rsp+0A8h+var_70]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_80D7E: add rbx, 8 mov rdi, rbx call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() loc_80D8A: mov rdi, r14 call __Unwind_Resume
minja::Parser * minja::Parser::parseMathPlusMinus(minja::Parser *this, _QWORD *a2) { minja::Parser *v2; // rbx long long v3; // rbx std::runtime_error *v5; // r15 std::runtime_error *exception; // r15 int v7; // [rsp+14h] [rbp-94h] BYREF long long v8; // [rsp+18h] [rbp-90h] BYREF long long v9; // [rsp+20h] [rbp-88h] BYREF _BYTE v10[8]; // [rsp+28h] [rbp-80h] BYREF long long v11; // [rsp+30h] [rbp-78h] BYREF _QWORD v12[2]; // [rsp+38h] [rbp-70h] BYREF char v13; // [rsp+48h] [rbp-60h] BYREF long long v14; // [rsp+58h] [rbp-50h] BYREF _QWORD v15[9]; // [rsp+60h] [rbp-48h] BYREF v2 = this; if ( !(_BYTE)`guard variable for'minja::Parser::parseMathPlusMinus(void)::plus_minus_tok[abi:cxx11] && __cxa_guard_acquire(&`guard variable for'minja::Parser::parseMathPlusMinus(void)::plus_minus_tok[abi:cxx11]) ) { std::basic_regex<char,std::regex_traits<char>>::basic_regex( (long long)&minja::Parser::parseMathPlusMinus(void)::plus_minus_tok[abi:cxx11], (long long)"\\+|-(?![}%#]\\})", 0x10u); __cxa_atexit( (void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex, &minja::Parser::parseMathPlusMinus(void)::plus_minus_tok[abi:cxx11], &_dso_handle); __cxa_guard_release(&`guard variable for'minja::Parser::parseMathPlusMinus(void)::plus_minus_tok[abi:cxx11]); v2 = this; } minja::Parser::parseMathMulDiv(v2); if ( !*(_QWORD *)v2 ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "Expected left side of 'math plus/minus' expression"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } v12[0] = &v13; v12[1] = 0LL; v13 = 0; while ( 1 ) { minja::Parser::consumeToken( &v14, (long long)a2, (long long)&minja::Parser::parseMathPlusMinus(void)::plus_minus_tok[abi:cxx11], 1u); v3 = *(_QWORD *)(std::string::operator=(v12, &v14) + 8); std::string::~string(&v14); if ( !v3 ) break; minja::Parser::parseMathMulDiv((minja::Parser *)&v8); if ( !v8 ) { v5 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(v5, "Expected right side of 'math plus/minus' expression"); __cxa_throw( v5, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } v7 = 2 - std::operator==<char>((long long)v12); minja::Parser::get_location((minja::Parser *)&v14, a2); std::make_shared<minja::BinaryOpExpr,minja::Location,std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>,minja::BinaryOpExpr::Op &>( (long long)v10, (long long)&v14, (long long)this, (long long)&v8, (long long)&v7); std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator=<minja::BinaryOpExpr>(this, v10); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v11); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v15); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v9); } std::string::~string(v12); return this; }
parseMathPlusMinus: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x78 MOV R15,RSI MOV RBX,RDI LEA RAX,[0x223588] MOV AL,byte ptr [RAX] TEST AL,AL MOV qword ptr [RSP + 0x8],RDI JZ 0x00180c88 LAB_00180b40: MOV RDI,RBX MOV RSI,R15 CALL 0x00180d92 CMP qword ptr [RBX],0x0 JZ 0x00180ce2 LEA RAX,[RSP + 0x48] MOV qword ptr [RAX + -0x10],RAX AND qword ptr [RAX + -0x8],0x0 MOV byte ptr [RAX],0x0 LEA R14,[RSP + 0x58] LEA R13,[RSP + 0x38] LEA RBP,[RSP + 0x18] LEA R12,[RSP + 0x28] LAB_00180b7a: MOV RDI,R14 MOV RSI,R15 LEA RDX,[0x223568] PUSH 0x1 POP RCX CALL 0x0017cf74 MOV RDI,R13 MOV RSI,R14 CALL 0x00126f10 MOV RBX,qword ptr [RAX + 0x8] MOV RDI,R14 CALL 0x00127998 TEST RBX,RBX JZ 0x00180c35 LAB_00180baf: MOV RDI,RBP MOV RSI,R15 MOV RBX,qword ptr [RSP + 0x8] CALL 0x00180d92 CMP qword ptr [RSP + 0x18],0x0 JZ 0x00180c53 MOV RDI,R13 LEA RSI,[0x1d2f34] CALL 0x00148eb9 MOVZX EAX,AL PUSH 0x2 POP RCX SUB ECX,EAX MOV dword ptr [RSP + 0x14],ECX LAB_00180be6: MOV RDI,R14 MOV RSI,R15 CALL 0x0017cb50 LAB_00180bf1: MOV RDI,R12 MOV RSI,R14 MOV RDX,RBX MOV RCX,RBP LEA R8,[RSP + 0x14] CALL 0x00180916 LAB_00180c07: MOV RDI,RBX MOV RSI,R12 CALL 0x0018d824 LEA RDI,[RSP + 0x30] CALL 0x0014e2f6 LEA RDI,[RSP + 0x60] CALL 0x0014e2f6 LEA RDI,[RSP + 0x20] CALL 0x0014e2f6 JMP 0x00180b7a LAB_00180c35: LEA RDI,[RSP + 0x38] CALL 0x00127998 MOV RAX,qword ptr [RSP + 0x8] ADD RSP,0x78 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00180c53: PUSH 0x10 POP RDI CALL 0x001265e0 MOV R15,RAX LAB_00180c5e: LEA RSI,[0x1d23e4] MOV RDI,RAX CALL 0x00126420 LAB_00180c6d: MOV RSI,qword ptr [0x00221ff0] MOV RDX,qword ptr [0x00221f58] MOV RDI,R15 CALL 0x001275b0 LAB_00180c88: LEA RDI,[0x223588] CALL 0x00127700 TEST EAX,EAX JZ 0x00180b40 LAB_00180c9c: LEA RDI,[0x223568] LEA RSI,[0x1d23a1] PUSH 0x10 POP RDX CALL 0x0016deac LAB_00180cb2: LEA RDI,[0x142eae] LEA RSI,[0x223568] LEA RDX,[0x222cd8] CALL 0x00126aa0 LEA RDI,[0x223588] CALL 0x00126800 MOV RBX,qword ptr [RSP + 0x8] JMP 0x00180b40 LAB_00180ce2: PUSH 0x10 POP RDI CALL 0x001265e0 MOV R15,RAX LAB_00180ced: LEA RSI,[0x1d23b1] MOV RDI,RAX CALL 0x00126420 LAB_00180cfc: MOV RSI,qword ptr [0x00221ff0] MOV RDX,qword ptr [0x00221f58] MOV RDI,R15 CALL 0x001275b0
/* minja::Parser::parseMathPlusMinus() */ __shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2> * minja::Parser::parseMathPlusMinus(void) { int iVar1; long lVar2; runtime_error *prVar3; __shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2> *in_RDI; long local_90; __shared_count<(__gnu_cxx::_Lock_policy)2> local_88 [8]; Location local_80 [8]; __shared_count<(__gnu_cxx::_Lock_policy)2> local_78 [8]; int1 *local_70; int8 local_68; int1 local_60 [16]; string local_50 [8]; __shared_count<(__gnu_cxx::_Lock_policy)2> local_48 [24]; if (parseMathPlusMinus()::plus_minus_tok_abi_cxx11_ == '\0') { iVar1 = __cxa_guard_acquire(&parseMathPlusMinus()::plus_minus_tok_abi_cxx11_); if (iVar1 != 0) { /* try { // try from 00180c9c to 00180cb1 has its CatchHandler @ 00180d12 */ std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex ((basic_regex<char,std::__cxx11::regex_traits<char>> *) parseMathPlusMinus()::plus_minus_tok_abi_cxx11_,"\\+|-(?![}%#]\\})",0x10); __cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex, parseMathPlusMinus()::plus_minus_tok_abi_cxx11_,&__dso_handle); __cxa_guard_release(&parseMathPlusMinus()::plus_minus_tok_abi_cxx11_); } } parseMathMulDiv(); if (*(long *)in_RDI != 0) { local_70 = local_60; local_68 = 0; local_60[0] = 0; while( true ) { /* try { // try from 00180b7a to 00180b8e has its CatchHandler @ 00180d6c */ consumeToken(local_50); lVar2 = std::__cxx11::string::operator=((string *)&local_70,local_50); lVar2 = *(long *)(lVar2 + 8); std::__cxx11::string::~string(local_50); if (lVar2 == 0) { std::__cxx11::string::~string((string *)&local_70); return in_RDI; } /* try { // try from 00180baf to 00180bbe has its CatchHandler @ 00180d67 */ parseMathMulDiv(); if (local_90 == 0) break; std::operator==((string *)&local_70,"+"); /* try { // try from 00180be6 to 00180bf0 has its CatchHandler @ 00180d49 */ get_location(); /* try { // try from 00180bf1 to 00180c06 has its CatchHandler @ 00180d4e */ std:: make_shared<minja::BinaryOpExpr,minja::Location,std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>,minja::BinaryOpExpr::Op&> (local_80,local_50,in_RDI,(Op *)&local_90); std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator= (in_RDI,(__shared_ptr *)local_80); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_78); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_48); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_88); } prVar3 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 00180c5e to 00180c6c has its CatchHandler @ 00180d3c */ std::runtime_error::runtime_error (prVar3,"Expected right side of \'math plus/minus\' expression"); /* try { // try from 00180c6d to 00180c82 has its CatchHandler @ 00180d3a */ /* WARNING: Subroutine does not return */ __cxa_throw(prVar3,PTR_typeinfo_00221ff0,PTR__runtime_error_00221f58); } prVar3 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 00180ced to 00180cfb has its CatchHandler @ 00180d28 */ std::runtime_error::runtime_error(prVar3,"Expected left side of \'math plus/minus\' expression"); /* try { // try from 00180cfc to 00180d11 has its CatchHandler @ 00180d23 */ /* WARNING: Subroutine does not return */ __cxa_throw(prVar3,PTR_typeinfo_00221ff0,PTR__runtime_error_00221f58); }
52,870
minja::Parser::parseMathPlusMinus()
monkey531[P]llama/common/minja.hpp
std::shared_ptr<Expression> parseMathPlusMinus() { static std::regex plus_minus_tok(R"(\+|-(?![}%#]\}))"); auto left = parseMathMulDiv(); if (!left) throw std::runtime_error("Expected left side of 'math plus/minus' expression"); std::string op_str; while (!(op_str = consumeToken(plus_minus_tok)).empty()) { auto right = parseMathMulDiv(); if (!right) throw std::runtime_error("Expected right side of 'math plus/minus' expression"); auto op = op_str == "+" ? BinaryOpExpr::Op::Add : BinaryOpExpr::Op::Sub; left = std::make_shared<BinaryOpExpr>(get_location(), std::move(left), std::move(right), op); } return left; }
O3
cpp
minja::Parser::parseMathPlusMinus(): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x68, %rsp movq %rsi, %r14 movq %rdi, %rbp leaq 0xab753(%rip), %rax # 0x157538 movb (%rax), %al testb %al, %al movq %rdi, 0x8(%rsp) je 0xabfe3 movq %rbp, %rdi movq %r14, %rsi callq 0xac106 cmpq $0x0, (%rbp) je 0xac03f leaq 0x50(%rsp), %rax movq %rax, -0x10(%rax) movq $0x0, -0x8(%rax) movb $0x0, (%rax) leaq 0x20(%rsp), %r12 leaq 0x40(%rsp), %r13 leaq 0xa8b39(%rip), %rax # 0x154968 addq $0x10, %rax movq %rax, 0x60(%rsp) movq %r12, %rdi movq %r14, %rsi leaq 0xab6d3(%rip), %rdx # 0x157518 movl $0x1, %ecx callq 0xa7b1a movq %r13, %rdi movq %r12, %rsi callq 0x1dee0 movq 0x8(%rax), %r15 movq 0x20(%rsp), %rdi leaq 0x30(%rsp), %rax cmpq %rax, %rdi je 0xabe7a movq 0x30(%rsp), %rsi incq %rsi callq 0x1dc50 testq %r15, %r15 je 0xabf7e leaq 0x10(%rsp), %rdi movq %r14, %rsi callq 0xac106 cmpq $0x0, 0x10(%rsp) je 0xabfac movq %r13, %rdi leaq 0x6a19e(%rip), %rsi # 0x116044 callq 0x1d2a0 cmpl $0x1, %eax movl $0x2, %r15d sbbl $0x0, %r15d movq (%r14), %rax movq %rax, 0x20(%rsp) movq 0x8(%r14), %rax movq %rax, 0x28(%rsp) testq %rax, %rax je 0xabee3 movq 0xaa0ab(%rip), %rcx # 0x155f80 cmpb $0x0, (%rcx) je 0xabedf incl 0x8(%rax) jmp 0xabee3 lock incl 0x8(%rax) movq 0x20(%r14), %rax movq %r14, %rbx subq 0x10(%r14), %rax movq %rax, 0x30(%rsp) movl $0x58, %edi callq 0x1dc20 movq %rax, %r13 movabsq $0x100000001, %rax # imm = 0x100000001 movq %rax, 0x8(%r13) movq 0x60(%rsp), %rax movq %rax, (%r13) movq %r13, %r14 addq $0x10, %r14 movq %r14, %rdi movq %r12, %rsi movq 0x8(%rsp), %rbp movq %rbp, %rdx leaq 0x10(%rsp), %rcx movl %r15d, %r8d callq 0xb9a58 movq %r14, (%rbp) movq 0x8(%rbp), %rdi movq %r13, 0x8(%rbp) testq %rdi, %rdi je 0xabf4f callq 0x516f8 movq 0x28(%rsp), %rdi testq %rdi, %rdi je 0xabf5e callq 0x516f8 movq 0x18(%rsp), %rdi testq %rdi, %rdi leaq 0x40(%rsp), %r13 movq %rbx, %r14 je 0xabe38 callq 0x516f8 jmp 0xabe38 movq 0x40(%rsp), %rdi leaq 0x50(%rsp), %rax cmpq %rax, %rdi je 0xabf9a movq 0x50(%rsp), %rsi incq %rsi callq 0x1dc50 movq %rbp, %rax addq $0x68, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0x10, %edi callq 0x1d5b0 movq %rax, %r15 leaq 0x69534(%rip), %rsi # 0x1154f4 movq %rax, %rdi callq 0x1d410 movq 0xaa019(%rip), %rsi # 0x155fe8 movq 0xa9f82(%rip), %rdx # 0x155f58 movq %r15, %rdi callq 0x1e5b0 jmp 0xac071 leaq 0xab54e(%rip), %rdi # 0x157538 callq 0x1e6f0 testl %eax, %eax je 0xabdf4 leaq 0xab51a(%rip), %rdi # 0x157518 leaq 0x694ac(%rip), %rsi # 0x1154b1 movl $0x10, %edx callq 0x934aa leaq -0x67360(%rip), %rdi # 0x44cb6 leaq 0xab4fb(%rip), %rsi # 0x157518 leaq 0xaac84(%rip), %rdx # 0x156ca8 callq 0x1da80 leaq 0xab508(%rip), %rdi # 0x157538 callq 0x1d7c0 movq 0x8(%rsp), %rbp jmp 0xabdf4 movl $0x10, %edi callq 0x1d5b0 movq %rax, %r15 leaq 0x6946e(%rip), %rsi # 0x1154c1 movq %rax, %rdi callq 0x1d410 movq 0xa9f86(%rip), %rsi # 0x155fe8 movq 0xa9eef(%rip), %rdx # 0x155f58 movq %r15, %rdi callq 0x1e5b0 movq %rax, %r14 leaq 0xab4bd(%rip), %rdi # 0x157538 callq 0x1d7a0 jmp 0xac0fd movq %rax, %r14 jmp 0xac0ea movq %rax, %r14 movq %r15, %rdi callq 0x1d8c0 jmp 0xac0ea movq %rax, %r14 jmp 0xac0ba movq %rax, %r14 movq %r15, %rdi callq 0x1d8c0 jmp 0xac0ba jmp 0xac0cb movq %rax, %r14 movq 0x28(%rsp), %rdi testq %rdi, %rdi je 0xac0ba callq 0x516f8 movq 0x18(%rsp), %rdi testq %rdi, %rdi je 0xac0ce callq 0x516f8 jmp 0xac0ce movq %rax, %r14 movq 0x40(%rsp), %rdi leaq 0x50(%rsp), %rax cmpq %rax, %rdi je 0xac0ea movq 0x50(%rsp), %rsi incq %rsi callq 0x1dc50 movq 0x8(%rsp), %rax movq 0x8(%rax), %rdi testq %rdi, %rdi je 0xac0fd callq 0x516f8 movq %r14, %rdi callq 0x1e660 nop
_ZN5minja6Parser18parseMathPlusMinusEv: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 68h mov r14, rsi mov rbp, rdi lea rax, _ZGVZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; `guard variable for'minja::Parser::parseMathPlusMinus(void)::plus_minus_tok mov al, [rax] test al, al mov [rsp+98h+var_90], rdi jz loc_ABFE3 loc_ABDF4: mov rdi, rbp; this mov rsi, r14 call _ZN5minja6Parser15parseMathMulDivEv; minja::Parser::parseMathMulDiv(void) cmp qword ptr [rbp+0], 0 jz loc_AC03F lea rax, [rsp+98h+var_48] mov [rax-10h], rax mov qword ptr [rax-8], 0 mov byte ptr [rax], 0 lea r12, [rsp+98h+var_78] lea r13, [rsp+98h+var_58] lea rax, _ZTVSt23_Sp_counted_ptr_inplaceIN5minja12BinaryOpExprESaIS1_ELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<minja::BinaryOpExpr,std::allocator<minja::BinaryOpExpr>,(__gnu_cxx::_Lock_policy)2> add rax, 10h mov [rsp+98h+var_38], rax loc_ABE38: mov rdi, r12 mov rsi, r14 lea rdx, _ZZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; minja::Parser::parseMathPlusMinus(void)::plus_minus_tok mov ecx, 1 call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling) mov rdi, r13 mov rsi, r12 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&) mov r15, [rax+8] mov rdi, [rsp+98h+var_78]; void * lea rax, [rsp+98h+var_68] cmp rdi, rax jz short loc_ABE7A mov rsi, [rsp+98h+var_68] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_ABE7A: test r15, r15 jz loc_ABF7E lea rdi, [rsp+98h+var_88]; this mov rsi, r14 call _ZN5minja6Parser15parseMathMulDivEv; minja::Parser::parseMathMulDiv(void) cmp [rsp+98h+var_88], 0 jz loc_ABFAC mov rdi, r13 lea rsi, aSRN_0+0Bh; "+" call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) cmp eax, 1 mov r15d, 2 sbb r15d, 0 mov rax, [r14] mov [rsp+98h+var_78], rax mov rax, [r14+8] mov [rsp+98h+var_70], rax test rax, rax jz short loc_ABEE3 mov rcx, cs:__libc_single_threaded_ptr cmp byte ptr [rcx], 0 jz short loc_ABEDF inc dword ptr [rax+8] jmp short loc_ABEE3 loc_ABEDF: lock inc dword ptr [rax+8] loc_ABEE3: mov rax, [r14+20h] mov rbx, r14 sub rax, [r14+10h] mov [rsp+98h+var_68], rax mov edi, 58h ; 'X'; unsigned __int64 call __Znwm; operator new(ulong) mov r13, rax mov rax, 100000001h mov [r13+8], rax mov rax, [rsp+98h+var_38] mov [r13+0], rax mov r14, r13 add r14, 10h mov rdi, r14 mov rsi, r12 mov rbp, [rsp+98h+var_90] mov rdx, rbp lea rcx, [rsp+98h+var_88] mov r8d, r15d call _ZN5minja12BinaryOpExprC2ERKNS_8LocationEOSt10shared_ptrINS_10ExpressionEES7_NS0_2OpE; minja::BinaryOpExpr::BinaryOpExpr(minja::Location const&,std::shared_ptr<minja::Expression> &&,std::shared_ptr<minja::Expression> &,minja::BinaryOpExpr::Op) mov [rbp+0], r14 mov rdi, [rbp+8] mov [rbp+8], r13 test rdi, rdi jz short loc_ABF4F call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_ABF4F: mov rdi, [rsp+98h+var_70] test rdi, rdi jz short loc_ABF5E call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_ABF5E: mov rdi, [rsp+98h+var_80] test rdi, rdi lea r13, [rsp+98h+var_58] mov r14, rbx jz loc_ABE38 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) jmp loc_ABE38 loc_ABF7E: mov rdi, [rsp+98h+var_58]; void * lea rax, [rsp+98h+var_48] cmp rdi, rax jz short loc_ABF9A mov rsi, [rsp+98h+var_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_ABF9A: mov rax, rbp add rsp, 68h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_ABFAC: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r15, rax lea rsi, aExpectedRightS_4; "Expected right side of 'math plus/minus"... mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, r15; void * call ___cxa_throw jmp loc_AC071 loc_ABFE3: lea rdi, _ZGVZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; __guard * call ___cxa_guard_acquire test eax, eax jz loc_ABDF4 lea rdi, _ZZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; minja::Parser::parseMathPlusMinus(void)::plus_minus_tok lea rsi, asc_1154B1; "\\+|-(?![}%#]\\})" 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, _ZZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; obj lea rdx, __dso_handle; lpdso_handle call ___cxa_atexit lea rdi, _ZGVZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; __guard * call ___cxa_guard_release mov rbp, [rsp+98h+var_90] jmp loc_ABDF4 loc_AC03F: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r15, rax lea rsi, aExpectedLeftSi_4; "Expected left side of 'math plus/minus'"... mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, r15; void * call ___cxa_throw loc_AC071: mov r14, rax lea rdi, _ZGVZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; __guard * call ___cxa_guard_abort jmp short loc_AC0FD mov r14, rax jmp short loc_AC0EA mov r14, rax mov rdi, r15; void * call ___cxa_free_exception jmp short loc_AC0EA mov r14, rax jmp short loc_AC0BA mov r14, rax mov rdi, r15; void * call ___cxa_free_exception jmp short loc_AC0BA jmp short loc_AC0CB mov r14, rax mov rdi, [rsp+98h+var_70] test rdi, rdi jz short loc_AC0BA call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_AC0BA: mov rdi, [rsp+98h+var_80] test rdi, rdi jz short loc_AC0CE call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) jmp short loc_AC0CE loc_AC0CB: mov r14, rax loc_AC0CE: mov rdi, [rsp+98h+var_58]; void * lea rax, [rsp+98h+var_48] cmp rdi, rax jz short loc_AC0EA mov rsi, [rsp+98h+var_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_AC0EA: mov rax, [rsp+98h+var_90] mov rdi, [rax+8] test rdi, rdi jz short loc_AC0FD call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_AC0FD: mov rdi, r14 call __Unwind_Resume
minja::Parser * minja::Parser::parseMathPlusMinus(volatile signed __int32 **this, long long a2) { minja::Parser *v2; // rbp long long v3; // r15 unsigned int v4; // r15d volatile signed __int32 *v5; // rax long long **v6; // r13 volatile signed __int32 *v7; // rdi std::runtime_error *v9; // r15 std::runtime_error *exception; // r15 long long v12; // [rsp+10h] [rbp-88h] BYREF volatile signed __int32 *v13; // [rsp+18h] [rbp-80h] void *v14; // [rsp+20h] [rbp-78h] BYREF volatile signed __int32 *v15; // [rsp+28h] [rbp-70h] long long v16; // [rsp+30h] [rbp-68h] BYREF void *v17[2]; // [rsp+40h] [rbp-58h] BYREF _QWORD v18[2]; // [rsp+50h] [rbp-48h] BYREF long long *v19; // [rsp+60h] [rbp-38h] v2 = (minja::Parser *)this; if ( !(_BYTE)`guard variable for'minja::Parser::parseMathPlusMinus(void)::plus_minus_tok[abi:cxx11] && __cxa_guard_acquire(&`guard variable for'minja::Parser::parseMathPlusMinus(void)::plus_minus_tok[abi:cxx11]) ) { std::basic_regex<char,std::regex_traits<char>>::basic_regex( (long long)&minja::Parser::parseMathPlusMinus(void)::plus_minus_tok[abi:cxx11], (long long)"\\+|-(?![}%#]\\})", 0x10u); __cxa_atexit( (void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex, &minja::Parser::parseMathPlusMinus(void)::plus_minus_tok[abi:cxx11], &_dso_handle); __cxa_guard_release(&`guard variable for'minja::Parser::parseMathPlusMinus(void)::plus_minus_tok[abi:cxx11]); v2 = (minja::Parser *)this; } minja::Parser::parseMathMulDiv(v2); if ( !*(_QWORD *)v2 ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "Expected left side of 'math plus/minus' expression"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } v17[0] = v18; v17[1] = 0LL; LOBYTE(v18[0]) = 0; v19 = &`vtable for'std::_Sp_counted_ptr_inplace<minja::BinaryOpExpr,std::allocator<minja::BinaryOpExpr>,(__gnu_cxx::_Lock_policy)2> + 2; while ( 1 ) { minja::Parser::consumeToken( (long long)&v14, a2, (long long)&minja::Parser::parseMathPlusMinus(void)::plus_minus_tok[abi:cxx11], 1u); v3 = *(_QWORD *)(std::string::operator=(v17, &v14) + 8); if ( v14 != &v16 ) operator delete(v14, v16 + 1); if ( !v3 ) break; minja::Parser::parseMathMulDiv((minja::Parser *)&v12); if ( !v12 ) { v9 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(v9, "Expected right side of 'math plus/minus' expression"); __cxa_throw( v9, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } v4 = (((unsigned int)std::string::compare(v17, "+") | 0x200000000uLL) - 1) >> 32; v14 = *(void **)a2; v5 = *(volatile signed __int32 **)(a2 + 8); v15 = v5; if ( v5 ) { if ( _libc_single_threaded ) ++*((_DWORD *)v5 + 2); else _InterlockedIncrement(v5 + 2); } v16 = *(_QWORD *)(a2 + 32) - *(_QWORD *)(a2 + 16); v6 = (long long **)operator new(0x58uLL); v6[1] = (long long *)0x100000001LL; *v6 = v19; v2 = (minja::Parser *)this; minja::BinaryOpExpr::BinaryOpExpr(v6 + 2, &v14, this, &v12, v4); *this = (volatile signed __int32 *)(v6 + 2); v7 = this[1]; this[1] = (volatile signed __int32 *)v6; if ( v7 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v7); if ( v15 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v15); if ( v13 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v13); } if ( v17[0] != v18 ) operator delete(v17[0], v18[0] + 1LL); return v2; }
parseMathPlusMinus: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x68 MOV R14,RSI MOV RBP,RDI LEA RAX,[0x257538] MOV AL,byte ptr [RAX] TEST AL,AL MOV qword ptr [RSP + 0x8],RDI JZ 0x001abfe3 LAB_001abdf4: MOV RDI,RBP MOV RSI,R14 CALL 0x001ac106 CMP qword ptr [RBP],0x0 JZ 0x001ac03f LEA RAX,[RSP + 0x50] MOV qword ptr [RAX + -0x10],RAX MOV qword ptr [RAX + -0x8],0x0 MOV byte ptr [RAX],0x0 LEA R12,[RSP + 0x20] LEA R13,[RSP + 0x40] LEA RAX,[0x254968] ADD RAX,0x10 MOV qword ptr [RSP + 0x60],RAX LAB_001abe38: MOV RDI,R12 MOV RSI,R14 LEA RDX,[0x257518] MOV ECX,0x1 CALL 0x001a7b1a MOV RDI,R13 MOV RSI,R12 CALL 0x0011dee0 MOV R15,qword ptr [RAX + 0x8] MOV RDI,qword ptr [RSP + 0x20] LEA RAX,[RSP + 0x30] CMP RDI,RAX JZ 0x001abe7a MOV RSI,qword ptr [RSP + 0x30] INC RSI CALL 0x0011dc50 LAB_001abe7a: TEST R15,R15 JZ 0x001abf7e LAB_001abe83: LEA RDI,[RSP + 0x10] MOV RSI,R14 CALL 0x001ac106 CMP qword ptr [RSP + 0x10],0x0 JZ 0x001abfac MOV RDI,R13 LEA RSI,[0x216044] CALL 0x0011d2a0 CMP EAX,0x1 MOV R15D,0x2 SBB R15D,0x0 MOV RAX,qword ptr [R14] MOV qword ptr [RSP + 0x20],RAX MOV RAX,qword ptr [R14 + 0x8] MOV qword ptr [RSP + 0x28],RAX TEST RAX,RAX JZ 0x001abee3 MOV RCX,qword ptr [0x00255f80] CMP byte ptr [RCX],0x0 JZ 0x001abedf INC dword ptr [RAX + 0x8] JMP 0x001abee3 LAB_001abedf: INC.LOCK dword ptr [RAX + 0x8] LAB_001abee3: MOV RAX,qword ptr [R14 + 0x20] MOV RBX,R14 SUB RAX,qword ptr [R14 + 0x10] MOV qword ptr [RSP + 0x30],RAX LAB_001abef3: MOV EDI,0x58 CALL 0x0011dc20 LAB_001abefd: MOV R13,RAX MOV RAX,0x100000001 MOV qword ptr [R13 + 0x8],RAX MOV RAX,qword ptr [RSP + 0x60] MOV qword ptr [R13],RAX MOV R14,R13 ADD R14,0x10 MOV RDI,R14 MOV RSI,R12 MOV RBP,qword ptr [RSP + 0x8] MOV RDX,RBP LEA RCX,[RSP + 0x10] MOV R8D,R15D CALL 0x001b9a58 MOV qword ptr [RBP],R14 MOV RDI,qword ptr [RBP + 0x8] MOV qword ptr [RBP + 0x8],R13 TEST RDI,RDI JZ 0x001abf4f CALL 0x001516f8 LAB_001abf4f: MOV RDI,qword ptr [RSP + 0x28] TEST RDI,RDI JZ 0x001abf5e CALL 0x001516f8 LAB_001abf5e: MOV RDI,qword ptr [RSP + 0x18] TEST RDI,RDI LEA R13,[RSP + 0x40] MOV R14,RBX JZ 0x001abe38 CALL 0x001516f8 JMP 0x001abe38 LAB_001abf7e: MOV RDI,qword ptr [RSP + 0x40] LEA RAX,[RSP + 0x50] CMP RDI,RAX JZ 0x001abf9a MOV RSI,qword ptr [RSP + 0x50] INC RSI CALL 0x0011dc50 LAB_001abf9a: MOV RAX,RBP ADD RSP,0x68 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001abfac: MOV EDI,0x10 CALL 0x0011d5b0 MOV R15,RAX LAB_001abfb9: LEA RSI,[0x2154f4] MOV RDI,RAX CALL 0x0011d410 LAB_001abfc8: MOV RSI,qword ptr [0x00255fe8] MOV RDX,qword ptr [0x00255f58] MOV RDI,R15 CALL 0x0011e5b0 LAB_001abfe3: LEA RDI,[0x257538] CALL 0x0011e6f0 TEST EAX,EAX JZ 0x001abdf4 LAB_001abff7: LEA RDI,[0x257518] LEA RSI,[0x2154b1] MOV EDX,0x10 CALL 0x001934aa LAB_001ac00f: LEA RDI,[0x144cb6] LEA RSI,[0x257518] LEA RDX,[0x256ca8] CALL 0x0011da80 LEA RDI,[0x257538] CALL 0x0011d7c0 MOV RBP,qword ptr [RSP + 0x8] JMP 0x001abdf4 LAB_001ac03f: MOV EDI,0x10 CALL 0x0011d5b0 MOV R15,RAX LAB_001ac04c: LEA RSI,[0x2154c1] MOV RDI,RAX CALL 0x0011d410 LAB_001ac05b: MOV RSI,qword ptr [0x00255fe8] MOV RDX,qword ptr [0x00255f58] MOV RDI,R15 CALL 0x0011e5b0
/* minja::Parser::parseMathPlusMinus() */ long * minja::Parser::parseMathPlusMinus(void) { _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *this; int iVar1; long lVar2; int8 *puVar3; runtime_error *prVar4; int8 *in_RSI; long *in_RDI; long local_88; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_80; long *local_78; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_70; long local_68 [2]; int1 *local_58; int8 local_50; int1 local_48; int7 uStack_47; int **local_38; if (parseMathPlusMinus()::plus_minus_tok_abi_cxx11_ == '\0') { iVar1 = __cxa_guard_acquire(&parseMathPlusMinus()::plus_minus_tok_abi_cxx11_); if (iVar1 != 0) { /* try { // try from 001abff7 to 001ac00e has its CatchHandler @ 001ac071 */ std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex ((basic_regex<char,std::__cxx11::regex_traits<char>> *) parseMathPlusMinus()::plus_minus_tok_abi_cxx11_,"\\+|-(?![}%#]\\})",0x10); __cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex, parseMathPlusMinus()::plus_minus_tok_abi_cxx11_,&__dso_handle); __cxa_guard_release(&parseMathPlusMinus()::plus_minus_tok_abi_cxx11_); } } parseMathMulDiv(); if (*in_RDI != 0) { local_58 = &local_48; local_50 = 0; local_48 = 0; local_38 = &PTR___Sp_counted_ptr_inplace_00254978; while( true ) { /* try { // try from 001abe38 to 001abe4e has its CatchHandler @ 001ac0cb */ consumeToken((string *)&local_78,in_RSI,parseMathPlusMinus()::plus_minus_tok_abi_cxx11_,1); lVar2 = std::__cxx11::string::operator=((string *)&local_58,(string *)&local_78); lVar2 = *(long *)(lVar2 + 8); if (local_78 != local_68) { operator_delete(local_78,local_68[0] + 1); } if (lVar2 == 0) break; /* try { // try from 001abe83 to 001abe8f has its CatchHandler @ 001ac0a6 */ parseMathMulDiv(); if (local_88 == 0) { prVar4 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001abfb9 to 001abfc7 has its CatchHandler @ 001ac099 */ std::runtime_error::runtime_error (prVar4,"Expected right side of \'math plus/minus\' expression"); /* try { // try from 001abfc8 to 001abfdd has its CatchHandler @ 001ac094 */ /* WARNING: Subroutine does not return */ __cxa_throw(prVar4,PTR_typeinfo_00255fe8,PTR__runtime_error_00255f58); } iVar1 = std::__cxx11::string::compare((char *)&local_58); local_78 = (long *)*in_RSI; local_70 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)in_RSI[1]; if (local_70 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { if (*PTR___libc_single_threaded_00255f80 == '\0') { LOCK(); *(int *)(local_70 + 8) = *(int *)(local_70 + 8) + 1; UNLOCK(); } else { *(int *)(local_70 + 8) = *(int *)(local_70 + 8) + 1; } } local_68[0] = in_RSI[4] - in_RSI[2]; /* try { // try from 001abef3 to 001abefc has its CatchHandler @ 001ac0a8 */ puVar3 = (int8 *)operator_new(0x58); puVar3[1] = 0x100000001; *puVar3 = local_38; BinaryOpExpr::BinaryOpExpr ((BinaryOpExpr *)(puVar3 + 2),(string *)&local_78,in_RDI,&local_88, 2 - (uint)(iVar1 == 0)); *in_RDI = (long)(puVar3 + 2); this = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)in_RDI[1]; in_RDI[1] = (long)puVar3; if (this != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(this); } if (local_70 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_70); } if (local_80 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_80); } } if (local_58 != &local_48) { operator_delete(local_58,CONCAT71(uStack_47,local_48) + 1); } return in_RDI; } prVar4 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001ac04c to 001ac05a has its CatchHandler @ 001ac087 */ std::runtime_error::runtime_error(prVar4,"Expected left side of \'math plus/minus\' expression"); /* try { // try from 001ac05b to 001ac070 has its CatchHandler @ 001ac082 */ /* WARNING: Subroutine does not return */ __cxa_throw(prVar4,PTR_typeinfo_00255fe8,PTR__runtime_error_00255f58); }
52,871
dirname_length
eloqsql/mysys/mf_dirname.c
size_t dirname_length(const char *name) { register char *pos, *gpos; #ifdef BASKSLASH_MBTAIL CHARSET_INFO *fs= fs_character_set(); #endif #ifdef FN_DEVCHAR if ((pos=(char*)strrchr(name,FN_DEVCHAR)) == 0) #endif pos=(char*) name-1; gpos= pos++; for ( ; *pos ; pos++) /* Find last FN_LIBCHAR */ { #ifdef BASKSLASH_MBTAIL uint l; if (my_ci_use_mb(fs) && (l= my_ismbchar(fs, pos, pos + 3))) { pos+= l - 1; continue; } #endif if (*pos == FN_LIBCHAR || *pos == '/') gpos=pos; } return (size_t) (gpos+1-(char*) name); }
O0
c
dirname_length: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax addq $-0x1, %rax movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x10(%rbp) movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rax cmpb $0x0, (%rax) je 0xdf3a0 movq -0x10(%rbp), %rax movsbl (%rax), %eax cmpl $0x2f, %eax je 0xdf388 movq -0x10(%rbp), %rax movsbl (%rax), %eax cmpl $0x2f, %eax jne 0xdf390 movq -0x10(%rbp), %rax movq %rax, -0x18(%rbp) jmp 0xdf392 movq -0x10(%rbp), %rax addq $0x1, %rax movq %rax, -0x10(%rbp) jmp 0xdf367 movq -0x18(%rbp), %rax addq $0x1, %rax movq -0x8(%rbp), %rcx subq %rcx, %rax popq %rbp retq nopw %cs:(%rax,%rax)
dirname_length: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov rax, [rbp+var_8] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_10], rax mov rax, [rbp+var_10] mov rcx, rax add rcx, 1 mov [rbp+var_10], rcx mov [rbp+var_18], rax loc_DF367: mov rax, [rbp+var_10] cmp byte ptr [rax], 0 jz short loc_DF3A0 mov rax, [rbp+var_10] movsx eax, byte ptr [rax] cmp eax, 2Fh ; '/' jz short loc_DF388 mov rax, [rbp+var_10] movsx eax, byte ptr [rax] cmp eax, 2Fh ; '/' jnz short loc_DF390 loc_DF388: mov rax, [rbp+var_10] mov [rbp+var_18], rax loc_DF390: jmp short $+2 loc_DF392: mov rax, [rbp+var_10] add rax, 1 mov [rbp+var_10], rax jmp short loc_DF367 loc_DF3A0: mov rax, [rbp+var_18] add rax, 1 mov rcx, [rbp+var_8] sub rax, rcx pop rbp retn
long long dirname_length(_BYTE *a1) { _BYTE *v2; // [rsp+0h] [rbp-18h] _BYTE *v3; // [rsp+8h] [rbp-10h] v3 = a1; v2 = a1 - 1; while ( *v3 ) { if ( *v3 == 47 ) v2 = v3; ++v3; } return v2 + 1 - a1; }
dirname_length: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] ADD RAX,-0x1 MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x10],RCX MOV qword ptr [RBP + -0x18],RAX LAB_001df367: MOV RAX,qword ptr [RBP + -0x10] CMP byte ptr [RAX],0x0 JZ 0x001df3a0 MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX] CMP EAX,0x2f JZ 0x001df388 MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX] CMP EAX,0x2f JNZ 0x001df390 LAB_001df388: MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x18],RAX LAB_001df390: JMP 0x001df392 LAB_001df392: MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x1 MOV qword ptr [RBP + -0x10],RAX JMP 0x001df367 LAB_001df3a0: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x1 MOV RCX,qword ptr [RBP + -0x8] SUB RAX,RCX POP RBP RET
char * dirname_length(char *param_1) { char *local_20; char *local_18; local_20 = param_1 + -1; for (local_18 = param_1; *local_18 != '\0'; local_18 = local_18 + 1) { if ((*local_18 == '/') || (*local_18 == '/')) { local_20 = local_18; } } return local_20 + (1 - (long)param_1); }
52,872
validate_typed_array
bluesky950520[P]quickjs/quickjs.c
static int validate_typed_array(JSContext *ctx, JSValue this_val) { JSObject *p; p = get_typed_array(ctx, this_val); if (!p) return -1; if (typed_array_is_oob(p)) { JS_ThrowTypeErrorArrayBufferOOB(ctx); return -1; } return 0; }
O1
c
validate_typed_array: pushq %rbp pushq %r14 pushq %rbx subq $0x10, %rsp movq %rdi, %rbx movq %rsi, 0x8(%rsp) cmpl $-0x1, %edx jne 0x82c2f movq 0x8(%rsp), %r14 movzwl 0x6(%r14), %eax addl $-0x15, %eax cmpw $0xc, %ax jb 0x82c43 leaq 0x1f7db(%rip), %rsi # 0xa2411 xorl %r14d, %r14d movq %rbx, %rdi xorl %eax, %eax callq 0x22567 movl $0xffffffff, %ebp # imm = 0xFFFFFFFF testq %r14, %r14 je 0x82c6e movq %r14, %rdi callq 0x396c4 testl %eax, %eax je 0x82c6c leaq 0x1f7c2(%rip), %rsi # 0xa2422 movq %rbx, %rdi xorl %eax, %eax callq 0x22567 jmp 0x82c6e xorl %ebp, %ebp movl %ebp, %eax addq $0x10, %rsp popq %rbx popq %r14 popq %rbp retq
validate_typed_array: push rbp push r14 push rbx sub rsp, 10h mov rbx, rdi mov [rsp+28h+var_20], rsi cmp edx, 0FFFFFFFFh jnz short loc_82C2F mov r14, [rsp+28h+var_20] movzx eax, word ptr [r14+6] add eax, 0FFFFFFEBh cmp ax, 0Ch jb short loc_82C43 loc_82C2F: lea rsi, aNotATypedarray; "not a TypedArray" xor r14d, r14d mov rdi, rbx xor eax, eax call JS_ThrowTypeError loc_82C43: mov ebp, 0FFFFFFFFh test r14, r14 jz short loc_82C6E mov rdi, r14 call typed_array_is_oob test eax, eax jz short loc_82C6C lea rsi, aArraybufferIsD_0; "ArrayBuffer is detached or resized" mov rdi, rbx xor eax, eax call JS_ThrowTypeError jmp short loc_82C6E loc_82C6C: xor ebp, ebp loc_82C6E: mov eax, ebp add rsp, 10h pop rbx pop r14 pop rbp retn
long long validate_typed_array( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { long long v14; // r14 unsigned int v15; // ebp long long v16; // rdx long long v17; // rcx long long v18; // r8 long long v19; // r9 __m128 v20; // xmm4 __m128 v21; // xmm5 char v23; // [rsp+0h] [rbp-28h] if ( (_DWORD)a3 != -1 || (v14 = a2, (unsigned __int16)(*(_WORD *)(a2 + 6) - 21) >= 0xCu) ) { v14 = 0LL; JS_ThrowTypeError(a1, (long long)"not a TypedArray", a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v23); } v15 = -1; if ( v14 ) { if ( typed_array_is_oob(v14) ) JS_ThrowTypeError( a1, (long long)"ArrayBuffer is detached or resized", v16, v17, v18, v19, a7, a8, a9, a10, v20, v21, a13, a14, v23); else return 0; } return v15; }
validate_typed_array: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x10 MOV RBX,RDI MOV qword ptr [RSP + 0x8],RSI CMP EDX,-0x1 JNZ 0x00182c2f MOV R14,qword ptr [RSP + 0x8] MOVZX EAX,word ptr [R14 + 0x6] ADD EAX,-0x15 CMP AX,0xc JC 0x00182c43 LAB_00182c2f: LEA RSI,[0x1a2411] XOR R14D,R14D MOV RDI,RBX XOR EAX,EAX CALL 0x00122567 LAB_00182c43: MOV EBP,0xffffffff TEST R14,R14 JZ 0x00182c6e MOV RDI,R14 CALL 0x001396c4 TEST EAX,EAX JZ 0x00182c6c LEA RSI,[0x1a2422] MOV RDI,RBX XOR EAX,EAX CALL 0x00122567 JMP 0x00182c6e LAB_00182c6c: XOR EBP,EBP LAB_00182c6e: MOV EAX,EBP ADD RSP,0x10 POP RBX POP R14 POP RBP RET
int8 validate_typed_array(int8 param_1,long param_2,int param_3) { int iVar1; int8 uVar2; if ((param_3 != -1) || (0xb < (ushort)(*(short *)(param_2 + 6) - 0x15U))) { param_2 = 0; JS_ThrowTypeError(param_1,"not a TypedArray"); } uVar2 = 0xffffffff; if (param_2 != 0) { iVar1 = typed_array_is_oob(param_2); if (iVar1 == 0) { uVar2 = 0; } else { JS_ThrowTypeError(param_1,"ArrayBuffer is detached or resized"); } } return uVar2; }
52,873
POINTonE1_in_G1
corpus-core[P]colibri-stateless/build_O3/_deps/blst-src/src/map_to_g1.c
static bool_t POINTonE1_in_G1(const POINTonE1 *P) { POINTonE1 t0, t1; /* Scott, M., https://eprint.iacr.org/2021/1130 */ POINTonE1_times_minus_z(&t0, P); POINTonE1_times_minus_z(&t1, &t0); POINTonE1_cneg(&t1, 1); /* [-z²]P */ sigma(&t0, P); /* σ(P) */ sigma(&t0, &t0); /* σ²(P) */ return POINTonE1_is_equal(&t0, &t1); }
O3
c
POINTonE1_in_G1: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x128, %rsp # imm = 0x128 movq %rdi, %r15 leaq -0x148(%rbp), %rbx movq %rbx, %rdi movq %r15, %rsi callq 0x264b4 leaq -0xb8(%rbp), %rdi movq %rbx, %rsi callq 0x264b4 leaq -0x88(%rbp), %rdi leaq 0x24468(%rip), %r12 # 0x3fb10 movl $0x1, %edx movq %rdi, %rsi movq %r12, %rcx callq 0x2f2c0 movl $0xc, %ecx movq %rbx, %rdi movq %r15, %rsi rep movsq (%rsi), %es:(%rdi) leaq -0xe8(%rbp), %r13 addq $0x60, %r15 leaq 0x247a8(%rip), %r14 # 0x3fe80 movabsq $-0x760c000300030003, %rbx # imm = 0x89F3FFFCFFFCFFFD movq %r13, %rdi movq %r15, %rsi movq %r14, %rdx movq %r12, %rcx movq %rbx, %r8 callq 0x344a0 movq %r13, %rdi movq %r13, %rsi movq %r14, %rdx movq %r12, %rcx movq %rbx, %r8 callq 0x344a0 leaq -0x148(%rbp), %rdi leaq -0xb8(%rbp), %rsi callq 0x1a39d addq $0x128, %rsp # imm = 0x128 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
POINTonE1_in_G1: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 128h mov r15, rdi lea rbx, [rbp+var_148] mov rdi, rbx mov rsi, r15 call POINTonE1_times_minus_z lea rdi, [rbp+var_B8] mov rsi, rbx call POINTonE1_times_minus_z lea rdi, [rbp+var_88] lea r12, BLS12_381_P mov edx, 1 mov rsi, rdi mov rcx, r12 call cneg_mod_384 mov ecx, 0Ch mov rdi, rbx mov rsi, r15 rep movsq lea r13, [rbp+var_E8] add r15, 60h ; '`' lea r14, beta mov rbx, 89F3FFFCFFFCFFFDh mov rdi, r13 mov rsi, r15 mov rdx, r14 mov rcx, r12 mov r8, rbx call mul_mont_384 mov rdi, r13 mov rsi, r13 mov rdx, r14 mov rcx, r12 mov r8, rbx call mul_mont_384 lea rdi, [rbp+var_148] lea rsi, [rbp+var_B8] call POINTonE1_is_equal add rsp, 128h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long POINTonE1_in_G1(char *a1) { _BYTE v2[96]; // [rsp+8h] [rbp-148h] BYREF _BYTE v3[48]; // [rsp+68h] [rbp-E8h] BYREF _BYTE v4[48]; // [rsp+98h] [rbp-B8h] BYREF _BYTE v5[136]; // [rsp+C8h] [rbp-88h] BYREF POINTonE1_times_minus_z(v2, a1); POINTonE1_times_minus_z(v4, v2); cneg_mod_384(v5, v5, 1LL, &BLS12_381_P); qmemcpy(v2, a1, sizeof(v2)); mul_mont_384(v3, a1 + 96, &beta, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL); mul_mont_384(v3, v3, &beta, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL); return POINTonE1_is_equal((long long)v2, (long long)v4); }
POINTonE1_in_G1: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x128 MOV R15,RDI LEA RBX,[RBP + -0x148] MOV RDI,RBX MOV RSI,R15 CALL 0x001264b4 LEA RDI,[RBP + -0xb8] MOV RSI,RBX CALL 0x001264b4 LEA RDI,[RBP + -0x88] LEA R12,[0x13fb10] MOV EDX,0x1 MOV RSI,RDI MOV RCX,R12 CALL 0x0012f2c0 MOV ECX,0xc MOV RDI,RBX MOV RSI,R15 MOVSQ.REP RDI,RSI LEA R13,[RBP + -0xe8] ADD R15,0x60 LEA R14,[0x13fe80] MOV RBX,-0x760c000300030003 MOV RDI,R13 MOV RSI,R15 MOV RDX,R14 MOV RCX,R12 MOV R8,RBX CALL 0x001344a0 MOV RDI,R13 MOV RSI,R13 MOV RDX,R14 MOV RCX,R12 MOV R8,RBX CALL 0x001344a0 LEA RDI,[RBP + -0x148] LEA RSI,[RBP + -0xb8] CALL 0x0011a39d ADD RSP,0x128 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void POINTonE1_in_G1(int8 *param_1) { long lVar1; int8 *puVar2; int8 *puVar3; byte bVar4; int8 local_150 [12]; int1 local_f0 [48]; int1 local_c0 [48]; int1 local_90 [96]; bVar4 = 0; POINTonE1_times_minus_z(local_150,param_1); POINTonE1_times_minus_z(local_c0,local_150); cneg_mod_384(local_90,local_90,1,BLS12_381_P); puVar2 = param_1; puVar3 = local_150; for (lVar1 = 0xc; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar3 = *puVar2; puVar2 = puVar2 + (ulong)bVar4 * -2 + 1; puVar3 = puVar3 + (ulong)bVar4 * -2 + 1; } mul_mont_384(local_f0,param_1 + 0xc,beta,BLS12_381_P,0x89f3fffcfffcfffd); mul_mont_384(local_f0,local_f0,beta,BLS12_381_P,0x89f3fffcfffcfffd); POINTonE1_is_equal(local_150,local_c0); return; }
52,874
ma_update_dynamic_record
eloqsql/storage/maria/ma_dynrec.c
my_bool _ma_update_dynamic_record(MARIA_HA *info, MARIA_RECORD_POS pos, const uchar *oldrec __attribute__ ((unused)), const uchar *record) { uint length= _ma_rec_pack(info, info->rec_buff + MARIA_REC_BUFF_OFFSET, record); if (!length) return 1; return (update_dynamic_record(info, pos, info->rec_buff + MARIA_REC_BUFF_OFFSET, length)); }
O0
c
ma_update_dynamic_record: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x10(%rbp), %rdi movq -0x10(%rbp), %rax movq 0x3a0(%rax), %rsi addq $0x18, %rsi movq -0x28(%rbp), %rdx callq 0x49b00 movl %eax, -0x2c(%rbp) cmpl $0x0, -0x2c(%rbp) jne 0x4a2a3 movb $0x1, -0x1(%rbp) jmp 0x4a2c7 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x10(%rbp), %rax movq 0x3a0(%rax), %rdx addq $0x18, %rdx movl -0x2c(%rbp), %eax movl %eax, %ecx callq 0x4a2d0 movb %al, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x30, %rsp popq %rbp retq
_ma_update_dynamic_record: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov rdi, [rbp+var_10] mov rax, [rbp+var_10] mov rsi, [rax+3A0h] add rsi, 18h mov rdx, [rbp+var_28] call _ma_rec_pack mov [rbp+var_2C], eax cmp [rbp+var_2C], 0 jnz short loc_4A2A3 mov [rbp+var_1], 1 jmp short loc_4A2C7 loc_4A2A3: mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] mov rax, [rbp+var_10] mov rdx, [rax+3A0h] add rdx, 18h mov eax, [rbp+var_2C] mov ecx, eax call update_dynamic_record mov [rbp+var_1], al loc_4A2C7: mov al, [rbp+var_1] add rsp, 30h pop rbp retn
char ma_update_dynamic_record(long long a1, long long a2, long long a3, const char *a4) { unsigned int v5; // [rsp+4h] [rbp-2Ch] v5 = ma_rec_pack((const char *)a1, (const char *)(*(_QWORD *)(a1 + 928) + 24LL), a4); if ( v5 ) return update_dynamic_record(a1, a2, *(_QWORD *)(a1 + 928) + 24LL, v5); else return 1; }
_ma_update_dynamic_record: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX + 0x3a0] ADD RSI,0x18 MOV RDX,qword ptr [RBP + -0x28] CALL 0x00149b00 MOV dword ptr [RBP + -0x2c],EAX CMP dword ptr [RBP + -0x2c],0x0 JNZ 0x0014a2a3 MOV byte ptr [RBP + -0x1],0x1 JMP 0x0014a2c7 LAB_0014a2a3: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RAX + 0x3a0] ADD RDX,0x18 MOV EAX,dword ptr [RBP + -0x2c] MOV ECX,EAX CALL 0x0014a2d0 MOV byte ptr [RBP + -0x1],AL LAB_0014a2c7: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x30 POP RBP RET
int1 _ma_update_dynamic_record(long param_1,int8 param_2,int8 param_3,int8 param_4) { int iVar1; int1 local_9; iVar1 = _ma_rec_pack(param_1,*(long *)(param_1 + 0x3a0) + 0x18,param_4); if (iVar1 == 0) { local_9 = 1; } else { local_9 = update_dynamic_record(param_1,param_2,*(long *)(param_1 + 0x3a0) + 0x18,iVar1); } return local_9; }
52,875
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::start_array(unsigned long)
monkey531[P]llama/common/json.hpp
bool start_array(std::size_t len) { ref_stack.push_back(handle_value(BasicJsonType::value_t::array)); if (JSON_HEDLEY_UNLIKELY(len != static_cast<std::size_t>(-1) && len > ref_stack.back()->max_size())) { JSON_THROW(out_of_range::create(408, concat("excessive array size: ", std::to_string(len)), ref_stack.back())); } return true; }
O2
cpp
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::start_array(unsigned long): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x48, %rsp movq %rsi, %r15 movq %rdi, %r14 leaq 0x8(%rdi), %rbx leaq 0x8(%rsp), %rsi movb $0x2, (%rsi) callq 0x48538 leaq 0x28(%rsp), %rsi movq %rax, (%rsi) movq %rbx, %rdi callq 0x48618 cmpq $-0x1, %r15 je 0x4838f movq 0x10(%r14), %rax movq -0x8(%rax), %rdi callq 0x4558a cmpq %r15, %rax jb 0x4839c movb $0x1, %al addq $0x48, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq pushq $0x20 popq %rdi callq 0x20380 movq %rax, %rbx leaq 0x8(%rsp), %rdi movq %r15, %rsi callq 0x456fd leaq 0x478bc(%rip), %rsi # 0x8fc77 leaq 0x28(%rsp), %rdi leaq 0x8(%rsp), %rdx callq 0x4697f movq 0x10(%r14), %rax movq -0x8(%rax), %rcx movb $0x1, %bpl leaq 0x28(%rsp), %rdx movq %rbx, %rdi movl $0x198, %esi # imm = 0x198 callq 0x455b2 xorl %ebp, %ebp leaq 0x84fd0(%rip), %rsi # 0xcd3c0 leaq -0x3b9(%rip), %rdx # 0x4803e movq %rbx, %rdi callq 0x20b30 movq %rax, %r14 leaq 0x28(%rsp), %rdi callq 0x20d88 jmp 0x48414 movq %rax, %r14 movb $0x1, %bpl leaq 0x8(%rsp), %rdi callq 0x20d88 testb %bpl, %bpl jne 0x48428 jmp 0x48430 movq %rax, %r14 movq %rbx, %rdi callq 0x20510 movq %r14, %rdi callq 0x20ba0
_ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE11start_arrayEm: push rbp; char push r15; int push r14; int push rbx; int sub rsp, 48h mov r15, rsi mov r14, rdi lea rbx, [rdi+8] lea rsi, [rsp+68h+var_60] mov byte ptr [rsi], 2 call _ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueINS1_7value_tEEEPSF_OT_; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(nlohmann::json_abi_v3_11_3::detail::value_t &&) lea rsi, [rsp+68h+var_40] mov [rsi], rax mov rdi, rbx call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE12emplace_backIJSE_EEERSE_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> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::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> * &&) cmp r15, 0FFFFFFFFFFFFFFFFh jz short loc_4838F mov rax, [r14+10h] mov rdi, [rax-8] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8max_sizeEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::max_size(void) cmp rax, r15 jb short loc_4839C loc_4838F: mov al, 1 add rsp, 48h pop rbx pop r14 pop r15 pop rbp retn loc_4839C: push 20h ; ' ' pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rdi, [rsp+68h+var_60]; this mov rsi, r15; unsigned __int64 call _ZNSt7__cxx119to_stringEm; std::to_string(ulong) lea rsi, aExcessiveArray; "excessive array size: " lea rdi, [rsp+68h+var_40] lea rdx, [rsp+68h+var_60] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA23_KcS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[23],std::string>(char const(&)[23],std::string &&) mov rax, [r14+10h] mov rcx, [rax-8] mov bpl, 1 lea rdx, [rsp+68h+var_40] mov rdi, rbx; this mov esi, 198h; int call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_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_36detail12out_of_rangeE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rdi, [rsp+68h+var_40]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_48414 mov r14, rax mov bpl, 1 loc_48414: lea rdi, [rsp+68h+var_60]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test bpl, bpl jnz short loc_48428 jmp short loc_48430 mov r14, rax loc_48428: mov rdi, rbx; void * call ___cxa_free_exception loc_48430: mov rdi, r14 call __Unwind_Resume
char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::start_array( long long a1, unsigned long long a2) { nlohmann::json_abi_v3_11_3::detail::out_of_range *exception; // rbx _BYTE v4[32]; // [rsp+8h] [rbp-60h] BYREF _QWORD v5[8]; // [rsp+28h] [rbp-40h] BYREF v4[0] = 2; v5[0] = nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>( a1, v4); std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::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> *>(a1 + 8); if ( a2 != -1LL && nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::max_size(*(unsigned __int8 **)(*(_QWORD *)(a1 + 16) - 8LL)) < a2 ) { exception = (nlohmann::json_abi_v3_11_3::detail::out_of_range *)__cxa_allocate_exception(0x20uLL); std::to_string((std::__cxx11 *)v4, a2); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[23],std::string>( (long long)v5, (long long)"excessive array size: ", (long long)v4); ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_( exception, 408, (long long)v5); __cxa_throw( exception, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::out_of_range, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } return 1; }
start_array: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x48 MOV R15,RSI MOV R14,RDI LEA RBX,[RDI + 0x8] LEA RSI,[RSP + 0x8] MOV byte ptr [RSI],0x2 CALL 0x00148538 LEA RSI,[RSP + 0x28] MOV qword ptr [RSI],RAX MOV RDI,RBX CALL 0x00148618 CMP R15,-0x1 JZ 0x0014838f MOV RAX,qword ptr [R14 + 0x10] MOV RDI,qword ptr [RAX + -0x8] CALL 0x0014558a CMP RAX,R15 JC 0x0014839c LAB_0014838f: MOV AL,0x1 ADD RSP,0x48 POP RBX POP R14 POP R15 POP RBP RET LAB_0014839c: PUSH 0x20 POP RDI CALL 0x00120380 MOV RBX,RAX LAB_001483a7: LEA RDI,[RSP + 0x8] MOV RSI,R15 CALL 0x001456fd LAB_001483b4: LEA RSI,[0x18fc77] LEA RDI,[RSP + 0x28] LEA RDX,[RSP + 0x8] CALL 0x0014697f MOV RAX,qword ptr [R14 + 0x10] MOV RCX,qword ptr [RAX + -0x8] MOV BPL,0x1 LAB_001483d5: LEA RDX,[RSP + 0x28] MOV RDI,RBX MOV ESI,0x198 CALL 0x001455b2 XOR EBP,EBP LEA RSI,[0x1cd3c0] LEA RDX,[0x14803e] MOV RDI,RBX CALL 0x00120b30
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::start_array(unsigned long) */ int8 __thiscall nlohmann::json_abi_v3_11_3::detail:: json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::start_array(json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *this,ulong param_1) { ulong uVar1; int8 uVar2; __cxx11 local_60 [32]; basic_json *local_40 [4]; local_60[0] = (__cxx11)0x2; local_40[0] = handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(this,local_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>*>> :: 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>*>> *)(this + 8),local_40); if (param_1 != 0xffffffffffffffff) { uVar1 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::max_size(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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 *)(this + 0x10) + -8)); if (uVar1 < param_1) { uVar2 = __cxa_allocate_exception(0x20); /* try { // try from 001483a7 to 001483b3 has its CatchHandler @ 00148425 */ std::__cxx11::to_string(local_60,param_1); /* try { // try from 001483b4 to 001483c9 has its CatchHandler @ 0014840e */ concat<std::__cxx11::string,char_const(&)[23],std::__cxx11::string> ((detail *)local_40,"excessive array size: ",(string *)local_60); /* try { // try from 001483d5 to 001483fe has its CatchHandler @ 001483ff */ _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar2,0x198,local_40,*(int8 *)(*(long *)(this + 0x10) + -8)); /* WARNING: Subroutine does not return */ __cxa_throw(uVar2,&out_of_range::typeinfo,exception::~exception); } } return 1; }
52,876
psi_mutex_lock
eloqsql/mysys/my_thr_init.c
ATTRIBUTE_COLD int psi_mutex_lock(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_LOCK, file, line); # ifdef SAFE_MUTEX int result= safe_mutex_lock(&that->m_mutex, FALSE, file, line); # else int result= pthread_mutex_lock(&that->m_mutex); # endif if (locker) PSI_MUTEX_CALL(end_mutex_wait)(locker, result); return result; }
O3
c
psi_mutex_lock: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x38, %rsp movl %edx, %r8d movq %rsi, %rcx movq %rdi, %r14 leaq 0x3122f3(%rip), %r15 # 0x3378f0 movq (%r15), %rax movq 0x40(%rdi), %rsi leaq -0x48(%rbp), %rdi xorl %edx, %edx callq *0x190(%rax) movq %rax, %rbx movq %r14, %rdi callq 0x25440 movl %eax, %r14d testq %rbx, %rbx je 0x25632 movq (%r15), %rax movq %rbx, %rdi movl %r14d, %esi callq *0x198(%rax) movl %r14d, %eax addq $0x38, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
psi_mutex_lock: push rbp mov rbp, rsp push r15 push r14 push rbx sub rsp, 38h mov r8d, edx mov rcx, rsi mov r14, rdi lea r15, PSI_server mov rax, [r15] mov rsi, [rdi+40h] lea rdi, [rbp+var_48] xor edx, edx call qword ptr [rax+190h] mov rbx, rax mov rdi, r14 call _pthread_mutex_lock mov r14d, eax test rbx, rbx jz short loc_25632 mov rax, [r15] mov rdi, rbx mov esi, r14d call qword ptr [rax+198h] loc_25632: mov eax, r14d add rsp, 38h pop rbx pop r14 pop r15 pop rbp retn
long long psi_mutex_lock(long long a1, long long a2, unsigned int a3) { long long v3; // rbx unsigned int v4; // r14d _BYTE v6[72]; // [rsp+8h] [rbp-48h] BYREF v3 = ((long long ( *)(_BYTE *, _QWORD, _QWORD, long long, _QWORD))PSI_server[50])( v6, *(_QWORD *)(a1 + 64), 0LL, a2, a3); v4 = pthread_mutex_lock(a1); if ( v3 ) ((void ( *)(long long, _QWORD))PSI_server[51])(v3, v4); return v4; }
psi_mutex_lock: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x38 MOV R8D,EDX MOV RCX,RSI MOV R14,RDI LEA R15,[0x4378f0] MOV RAX,qword ptr [R15] MOV RSI,qword ptr [RDI + 0x40] LEA RDI,[RBP + -0x48] XOR EDX,EDX CALL qword ptr [RAX + 0x190] MOV RBX,RAX MOV RDI,R14 CALL 0x00125440 MOV R14D,EAX TEST RBX,RBX JZ 0x00125632 MOV RAX,qword ptr [R15] MOV RDI,RBX MOV ESI,R14D CALL qword ptr [RAX + 0x198] LAB_00125632: MOV EAX,R14D ADD RSP,0x38 POP RBX POP R14 POP R15 POP RBP RET
int psi_mutex_lock(pthread_mutex_t *param_1,int8 param_2,int4 param_3) { int iVar1; long lVar2; int1 local_50 [48]; lVar2 = (**(code **)(PSI_server + 400)) (local_50,*(int8 *)((long)param_1 + 0x40),0,param_2,param_3); iVar1 = pthread_mutex_lock(param_1); if (lVar2 != 0) { (**(code **)(PSI_server + 0x198))(lVar2,iVar1); } return iVar1; }
52,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 0x547b3 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 0x5477a movl (%r14), %eax movzbl 0x4(%r14), %r15d shlq $0x20, %r15 orq %rax, %r15 andl $0xbfff, %r13d # imm = 0xBFFF jne 0x546f8 testq %r15, %r15 je 0x5477a 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 0x3c524 testb %al, %al jne 0x547cc movb $0x1, %al movl %eax, -0x2c(%rbp) movq -0x40(%rbp), %rax cmpq $0x0, 0xad8(%rax) jne 0x5478a movq -0x38(%rbp), %rdi callq 0x29200 movq %r12, %rdi movq -0x48(%rbp), %rsi movq %r15, %rdx movl %r13d, %ecx callq 0x53fca movl %eax, %r15d movq -0x40(%rbp), %rax movq 0xad8(%rax), %rdi testq %rdi, %rdi jne 0x547a1 movq -0x38(%rbp), %rdi callq 0x291c0 testb %r15b, %r15b movq %r12, %rdi jne 0x547ba decl %ebx addq $0x7, %r14 testl %ebx, %ebx jne 0x546c8 jmp 0x547b3 movq -0x38(%rbp), %rdi leaq 0x85d04(%rip), %rsi # 0xda499 movl $0xb31, %edx # imm = 0xB31 callq 0x2eb6f jmp 0x54744 leaq 0x331868(%rip), %rax # 0x386010 movq (%rax), %rax callq *0x160(%rax) jmp 0x54769 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 0x547ba
_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_547B3 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_546C8: movzx r13d, word ptr [r14+5] test r13w, r13w js loc_5477A mov eax, [r14] movzx r15d, byte ptr [r14+4] shl r15, 20h or r15, rax and r13d, 0BFFFh jnz short loc_546F8 test r15, r15 jz loc_5477A loc_546F8: 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_547CC mov al, 1 mov [rbp+var_2C], eax mov rax, [rbp+var_40] cmp qword ptr [rax+0AD8h], 0 jnz short loc_5478A mov rdi, [rbp+var_38] call _pthread_mutex_lock loc_54744: 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_547A1 loc_54769: mov rdi, [rbp+var_38] call _pthread_mutex_unlock test r15b, r15b mov rdi, r12 jnz short loc_547BA loc_5477A: dec ebx add r14, 7 test ebx, ebx jnz loc_546C8 jmp short loc_547B3 loc_5478A: mov rdi, [rbp+var_38] lea rsi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 0B31h call psi_mutex_lock jmp short loc_54744 loc_547A1: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp short loc_54769 loc_547B3: mov [rbp+var_2C], 0 loc_547BA: mov eax, [rbp+var_2C] add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_547CC: mov al, 1 mov [rbp+var_2C], eax jmp short loc_547BA
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 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 ) { if ( pagecache_delete_pages(*(_QWORD *)(*a1 + 1536), (long long)(a1 + 142), v6, v7, 4u, 1) ) { 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 0x001547b3 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_001546c8: MOVZX R13D,word ptr [R14 + 0x5] TEST R13W,R13W JS 0x0015477a MOV EAX,dword ptr [R14] MOVZX R15D,byte ptr [R14 + 0x4] SHL R15,0x20 OR R15,RAX AND R13D,0xbfff JNZ 0x001546f8 TEST R15,R15 JZ 0x0015477a LAB_001546f8: 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 0x0013c524 TEST AL,AL JNZ 0x001547cc MOV AL,0x1 MOV dword ptr [RBP + -0x2c],EAX MOV RAX,qword ptr [RBP + -0x40] CMP qword ptr [RAX + 0xad8],0x0 JNZ 0x0015478a MOV RDI,qword ptr [RBP + -0x38] CALL 0x00129200 LAB_00154744: MOV RDI,R12 MOV RSI,qword ptr [RBP + -0x48] MOV RDX,R15 MOV ECX,R13D CALL 0x00153fca MOV R15D,EAX MOV RAX,qword ptr [RBP + -0x40] MOV RDI,qword ptr [RAX + 0xad8] TEST RDI,RDI JNZ 0x001547a1 LAB_00154769: MOV RDI,qword ptr [RBP + -0x38] CALL 0x001291c0 TEST R15B,R15B MOV RDI,R12 JNZ 0x001547ba LAB_0015477a: DEC EBX ADD R14,0x7 TEST EBX,EBX JNZ 0x001546c8 JMP 0x001547b3 LAB_0015478a: MOV RDI,qword ptr [RBP + -0x38] LEA RSI,[0x1da499] MOV EDX,0xb31 CALL 0x0012eb6f JMP 0x00154744 LAB_001547a1: LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x00154769 LAB_001547b3: MOV dword ptr [RBP + -0x2c],0x0 LAB_001547ba: MOV EAX,dword ptr [RBP + -0x2c] ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001547cc: MOV AL,0x1 MOV dword ptr [RBP + -0x2c],EAX JMP 0x001547ba
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; }
52,878
CLI::Formatter::make_group(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, std::vector<CLI::Option const*, std::allocator<CLI::Option const*>>) const
MikePodsytnik[P]TCRtrie/build_O2/_deps/cli11-src/include/CLI/impl/Formatter_inl.hpp
CLI11_INLINE std::string Formatter::make_group(std::string group, bool is_positional, std::vector<const Option *> opts) const { std::stringstream out; out << "\n" << group << ":\n"; for(const Option *opt : opts) { out << make_option(opt, is_positional); } return out.str(); }
O2
cpp
CLI::Formatter::make_group(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, std::vector<CLI::Option const*, std::allocator<CLI::Option const*>>) const: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1b8, %rsp # imm = 0x1B8 movq %r8, %r12 movl %ecx, %ebp movq %rdx, %r13 movq %rsi, %r14 movq %rdi, %rbx leaq 0x30(%rsp), %rdi callq 0x7320 leaq 0x40(%rsp), %r15 leaq 0x1fb64(%rip), %rsi # 0x29da5 movq %r15, %rdi callq 0x7460 movq %rax, %rdi movq %r13, %rsi callq 0x7400 leaq 0x1eecb(%rip), %rsi # 0x29126 movq %rax, %rdi callq 0x7460 movq %rbx, 0x8(%rsp) movq (%r12), %r13 movq 0x8(%r12), %rbx movzbl %bpl, %ebp leaq 0x10(%rsp), %r12 cmpq %rbx, %r13 je 0xa2aa movq (%r13), %rdx movq (%r14), %rax movq %r12, %rdi movq %r14, %rsi movl %ebp, %ecx callq *0x58(%rax) movq %r15, %rdi movq %r12, %rsi callq 0x7400 movq %r12, %rdi callq 0x7860 addq $0x8, %r13 jmp 0xa27a leaq 0x48(%rsp), %rsi movq 0x8(%rsp), %rbx movq %rbx, %rdi callq 0x7690 leaq 0x30(%rsp), %rdi callq 0x7380 movq %rbx, %rax addq $0x1b8, %rsp # imm = 0x1B8 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0xa2dd movq %rax, %rbx jmp 0xa2ef movq %rax, %rbx leaq 0x10(%rsp), %rdi callq 0x7860 leaq 0x30(%rsp), %rdi callq 0x7380 movq %rbx, %rdi callq 0x7770 nop
_ZNK3CLI9Formatter10make_groupENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbSt6vectorIPKNS_6OptionESaISA_EE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 1B8h mov r12, r8 mov ebp, ecx mov r13, rdx mov r14, rsi mov rbx, rdi lea rdi, [rsp+1E8h+var_1B8] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(void) lea r15, [rsp+1E8h+var_1A8] lea rsi, asc_29DA4+1; "\n" mov rdi, r15 call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov rdi, rax mov rsi, r13 call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&) lea rsi, asc_29126; ":\n" mov rdi, rax call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov [rsp+1E8h+var_1E0], rbx mov r13, [r12] mov rbx, [r12+8] movzx ebp, bpl lea r12, [rsp+1E8h+var_1D8] loc_A27A: cmp r13, rbx jz short loc_A2AA mov rdx, [r13+0] mov rax, [r14] mov rdi, r12 mov rsi, r14 mov ecx, ebp call qword ptr [rax+58h] mov rdi, r15 mov rsi, r12 call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&) mov rdi, r12; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() add r13, 8 jmp short loc_A27A loc_A2AA: lea rsi, [rsp+1E8h+var_1A0] mov rbx, [rsp+1E8h+var_1E0] mov rdi, rbx call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void) lea rdi, [rsp+1E8h+var_1B8] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream() mov rax, rbx add rsp, 1B8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short $+2 loc_A2DD: mov rbx, rax jmp short loc_A2EF mov rbx, rax lea rdi, [rsp+arg_8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_A2EF: lea rdi, [rsp+arg_28] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream() mov rdi, rbx call __Unwind_Resume
long long CLI::Formatter::make_group(long long a1, long long a2, long long a3, unsigned __int8 a4, _QWORD *a5) { long long v8; // rax long long v9; // rax _QWORD *v10; // r13 _QWORD *v11; // rbx _BYTE v13[32]; // [rsp+10h] [rbp-1D8h] BYREF _BYTE v14[16]; // [rsp+30h] [rbp-1B8h] BYREF _BYTE v15[8]; // [rsp+40h] [rbp-1A8h] BYREF _BYTE v16[416]; // [rsp+48h] [rbp-1A0h] BYREF std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(v14); v8 = std::operator<<<std::char_traits<char>>(v15, "\n"); v9 = std::operator<<<char>(v8, a3); std::operator<<<std::char_traits<char>>(v9, ":\n"); v10 = (_QWORD *)*a5; v11 = (_QWORD *)a5[1]; while ( v10 != v11 ) { (*(void ( **)(_BYTE *, long long, _QWORD, _QWORD))(*(_QWORD *)a2 + 88LL))(v13, a2, *v10, a4); std::operator<<<char>(v15, v13); std::string::~string(v13); ++v10; } std::stringbuf::str(a1, v16); std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream(v14); return a1; }
make_group: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x1b8 MOV R12,R8 MOV EBP,ECX MOV R13,RDX MOV R14,RSI MOV RBX,RDI LEA RDI,[RSP + 0x30] CALL 0x00107320 LEA R15,[RSP + 0x40] LAB_0010a23a: LEA RSI,[0x129da5] MOV RDI,R15 CALL 0x00107460 MOV RDI,RAX MOV RSI,R13 CALL 0x00107400 LEA RSI,[0x129126] MOV RDI,RAX CALL 0x00107460 MOV qword ptr [RSP + 0x8],RBX MOV R13,qword ptr [R12] MOV RBX,qword ptr [R12 + 0x8] MOVZX EBP,BPL LEA R12,[RSP + 0x10] LAB_0010a27a: CMP R13,RBX JZ 0x0010a2aa MOV RDX,qword ptr [R13] MOV RAX,qword ptr [R14] LAB_0010a286: MOV RDI,R12 MOV RSI,R14 MOV ECX,EBP CALL qword ptr [RAX + 0x58] LAB_0010a291: MOV RDI,R15 MOV RSI,R12 CALL 0x00107400 MOV RDI,R12 CALL 0x00107860 ADD R13,0x8 JMP 0x0010a27a LAB_0010a2aa: LEA RSI,[RSP + 0x48] LAB_0010a2af: MOV RBX,qword ptr [RSP + 0x8] MOV RDI,RBX CALL 0x00107690 LAB_0010a2bc: LEA RDI,[RSP + 0x30] CALL 0x00107380 MOV RAX,RBX ADD RSP,0x1b8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* CLI::Formatter::make_group(std::__cxx11::string, bool, std::vector<CLI::Option const*, std::allocator<CLI::Option const*> >) const */ int8 CLI::Formatter::make_group (int8 param_1,long *param_2,string *param_3,int1 param_4,int8 *param_5) { int8 *puVar1; ostream *poVar2; string local_1d8 [32]; stringstream local_1b8 [16]; ostream local_1a8 [376]; std::__cxx11::stringstream::stringstream(local_1b8); /* try { // try from 0010a23a to 0010a262 has its CatchHandler @ 0010a2db */ poVar2 = std::operator<<(local_1a8,"\n"); poVar2 = std::operator<<(poVar2,param_3); std::operator<<(poVar2,":\n"); puVar1 = (int8 *)param_5[1]; for (param_5 = (int8 *)*param_5; param_5 != puVar1; param_5 = param_5 + 1) { /* try { // try from 0010a286 to 0010a290 has its CatchHandler @ 0010a2dd */ (**(code **)(*param_2 + 0x58))(local_1d8,param_2,*param_5,param_4); /* try { // try from 0010a291 to 0010a29b has its CatchHandler @ 0010a2e2 */ std::operator<<(local_1a8,local_1d8); std::__cxx11::string::~string(local_1d8); } /* try { // try from 0010a2af to 0010a2bb has its CatchHandler @ 0010a2db */ std::__cxx11::stringbuf::str(); std::__cxx11::stringstream::~stringstream(local_1b8); return param_1; }
52,879
get_partitioned_key_cache_statistics
eloqsql/mysys/mf_keycache.c
static void get_partitioned_key_cache_statistics(PARTITIONED_KEY_CACHE_CB *keycache, uint partition_no, KEY_CACHE_STATISTICS *keycache_stats) { uint i; SIMPLE_KEY_CACHE_CB *partition; uint partitions= keycache->partitions; DBUG_ENTER("get_partitioned_key_cache_statistics"); if (partition_no != 0) { partition= keycache->partition_array[partition_no-1]; get_simple_key_cache_statistics((void *) partition, 0, keycache_stats); DBUG_VOID_RETURN; } bzero(keycache_stats, sizeof(KEY_CACHE_STATISTICS)); keycache_stats->mem_size= (longlong) keycache->key_cache_mem_size; keycache_stats->block_size= (longlong) keycache->key_cache_block_size; for (i = 0; i < partitions; i++) { partition= keycache->partition_array[i]; keycache_stats->blocks_used+= partition->blocks_used; keycache_stats->blocks_unused+= partition->blocks_unused; keycache_stats->blocks_changed+= partition->global_blocks_changed; keycache_stats->blocks_warm+= partition->warm_blocks; keycache_stats->read_requests+= partition->global_cache_r_requests; keycache_stats->reads+= partition->global_cache_read; keycache_stats->write_requests+= partition->global_cache_w_requests; keycache_stats->writes+= partition->global_cache_write; } DBUG_VOID_RETURN; }
O3
c
get_partitioned_key_cache_statistics: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx testl %esi, %esi je 0x9abca movq 0x8(%rdi), %rax decl %esi movq (%rax,%rsi,8), %rax movq 0x8(%rax), %rcx movq %rcx, (%rdx) movl 0x18(%rax), %ecx movq %rcx, 0x8(%rdx) movq 0x50(%rax), %rcx movq %rcx, 0x10(%rdx) movq 0x58(%rax), %rcx movq %rcx, 0x18(%rdx) movq 0x138(%rax), %rcx movq %rcx, 0x20(%rdx) movq 0x68(%rax), %rcx movq %rcx, 0x28(%rdx) movq 0x150(%rax), %rcx movq %rcx, 0x30(%rdx) movq 0x158(%rax), %rcx movq %rcx, 0x38(%rdx) movq 0x140(%rax), %rcx movq %rcx, 0x40(%rdx) movq 0x148(%rax), %rax movq %rax, 0x48(%rdx) jmp 0x9ac84 movl 0x1c(%rdi), %eax xorps %xmm0, %xmm0 movups %xmm0, 0x40(%rdx) movups %xmm0, 0x30(%rdx) movups %xmm0, 0x20(%rdx) movups %xmm0, 0x10(%rdx) movups %xmm0, (%rdx) movq 0x10(%rdi), %rcx movq %rcx, (%rdx) movl 0x18(%rdi), %ecx movq %rcx, 0x8(%rdx) testq %rax, %rax je 0x9ac84 movq 0x10(%rdx), %rcx movq 0x18(%rdx), %rsi movq 0x20(%rdx), %r8 movq 0x28(%rdx), %r9 movq 0x30(%rdx), %r10 movq 0x38(%rdx), %r11 movq 0x40(%rdx), %rbx movq 0x48(%rdx), %r14 xorl %r15d, %r15d movq 0x8(%rdi), %r12 movq (%r12,%r15,8), %r12 addq 0x50(%r12), %rcx movq %rcx, 0x10(%rdx) addq 0x58(%r12), %rsi movq %rsi, 0x18(%rdx) addq 0x138(%r12), %r8 movq %r8, 0x20(%rdx) addq 0x68(%r12), %r9 movq %r9, 0x28(%rdx) addq 0x150(%r12), %r10 movq %r10, 0x30(%rdx) addq 0x158(%r12), %r11 movq %r11, 0x38(%rdx) addq 0x140(%r12), %rbx movq %rbx, 0x40(%rdx) addq 0x148(%r12), %r14 movq %r14, 0x48(%rdx) incq %r15 cmpq %r15, %rax jne 0x9ac1d popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq nopl (%rax)
get_partitioned_key_cache_statistics: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx test esi, esi jz short loc_9ABCA mov rax, [rdi+8] dec esi mov rax, [rax+rsi*8] mov rcx, [rax+8] mov [rdx], rcx mov ecx, [rax+18h] mov [rdx+8], rcx mov rcx, [rax+50h] mov [rdx+10h], rcx mov rcx, [rax+58h] mov [rdx+18h], rcx mov rcx, [rax+138h] mov [rdx+20h], rcx mov rcx, [rax+68h] mov [rdx+28h], rcx mov rcx, [rax+150h] mov [rdx+30h], rcx mov rcx, [rax+158h] mov [rdx+38h], rcx mov rcx, [rax+140h] mov [rdx+40h], rcx mov rax, [rax+148h] mov [rdx+48h], rax jmp loc_9AC84 loc_9ABCA: mov eax, [rdi+1Ch] xorps xmm0, xmm0 movups xmmword ptr [rdx+40h], xmm0 movups xmmword ptr [rdx+30h], xmm0 movups xmmword ptr [rdx+20h], xmm0 movups xmmword ptr [rdx+10h], xmm0 movups xmmword ptr [rdx], xmm0 mov rcx, [rdi+10h] mov [rdx], rcx mov ecx, [rdi+18h] mov [rdx+8], rcx test rax, rax jz loc_9AC84 mov rcx, [rdx+10h] mov rsi, [rdx+18h] mov r8, [rdx+20h] mov r9, [rdx+28h] mov r10, [rdx+30h] mov r11, [rdx+38h] mov rbx, [rdx+40h] mov r14, [rdx+48h] xor r15d, r15d loc_9AC1D: mov r12, [rdi+8] mov r12, [r12+r15*8] add rcx, [r12+50h] mov [rdx+10h], rcx add rsi, [r12+58h] mov [rdx+18h], rsi add r8, [r12+138h] mov [rdx+20h], r8 add r9, [r12+68h] mov [rdx+28h], r9 add r10, [r12+150h] mov [rdx+30h], r10 add r11, [r12+158h] mov [rdx+38h], r11 add rbx, [r12+140h] mov [rdx+40h], rbx add r14, [r12+148h] mov [rdx+48h], r14 inc r15 cmp rax, r15 jnz short loc_9AC1D loc_9AC84: pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long get_partitioned_key_cache_statistics(long long a1, int a2, _QWORD *a3) { long long v3; // rax long long result; // rax long long v5; // rcx long long v6; // rsi long long v7; // r8 long long v8; // r9 long long v9; // r10 long long v10; // r11 long long v11; // rbx long long v12; // r14 long long i; // r15 _QWORD *v14; // r12 if ( a2 ) { v3 = *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL * (unsigned int)(a2 - 1)); *a3 = *(_QWORD *)(v3 + 8); a3[1] = *(unsigned int *)(v3 + 24); a3[2] = *(_QWORD *)(v3 + 80); a3[3] = *(_QWORD *)(v3 + 88); a3[4] = *(_QWORD *)(v3 + 312); a3[5] = *(_QWORD *)(v3 + 104); a3[6] = *(_QWORD *)(v3 + 336); a3[7] = *(_QWORD *)(v3 + 344); a3[8] = *(_QWORD *)(v3 + 320); result = *(_QWORD *)(v3 + 328); a3[9] = result; } else { result = *(unsigned int *)(a1 + 28); *((_OWORD *)a3 + 4) = 0LL; *((_OWORD *)a3 + 3) = 0LL; *((_OWORD *)a3 + 2) = 0LL; *((_OWORD *)a3 + 1) = 0LL; *(_OWORD *)a3 = 0LL; *a3 = *(_QWORD *)(a1 + 16); a3[1] = *(unsigned int *)(a1 + 24); if ( result ) { v5 = a3[2]; v6 = a3[3]; v7 = a3[4]; v8 = a3[5]; v9 = a3[6]; v10 = a3[7]; v11 = a3[8]; v12 = a3[9]; for ( i = 0LL; i != result; ++i ) { v14 = *(_QWORD **)(*(_QWORD *)(a1 + 8) + 8 * i); v5 += v14[10]; a3[2] = v5; v6 += v14[11]; a3[3] = v6; v7 += v14[39]; a3[4] = v7; v8 += v14[13]; a3[5] = v8; v9 += v14[42]; a3[6] = v9; v10 += v14[43]; a3[7] = v10; v11 += v14[40]; a3[8] = v11; v12 += v14[41]; a3[9] = v12; } } } return result; }
get_partitioned_key_cache_statistics: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX TEST ESI,ESI JZ 0x0019abca MOV RAX,qword ptr [RDI + 0x8] DEC ESI MOV RAX,qword ptr [RAX + RSI*0x8] MOV RCX,qword ptr [RAX + 0x8] MOV qword ptr [RDX],RCX MOV ECX,dword ptr [RAX + 0x18] MOV qword ptr [RDX + 0x8],RCX MOV RCX,qword ptr [RAX + 0x50] MOV qword ptr [RDX + 0x10],RCX MOV RCX,qword ptr [RAX + 0x58] MOV qword ptr [RDX + 0x18],RCX MOV RCX,qword ptr [RAX + 0x138] MOV qword ptr [RDX + 0x20],RCX MOV RCX,qword ptr [RAX + 0x68] MOV qword ptr [RDX + 0x28],RCX MOV RCX,qword ptr [RAX + 0x150] MOV qword ptr [RDX + 0x30],RCX MOV RCX,qword ptr [RAX + 0x158] MOV qword ptr [RDX + 0x38],RCX MOV RCX,qword ptr [RAX + 0x140] MOV qword ptr [RDX + 0x40],RCX MOV RAX,qword ptr [RAX + 0x148] MOV qword ptr [RDX + 0x48],RAX JMP 0x0019ac84 LAB_0019abca: MOV EAX,dword ptr [RDI + 0x1c] XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDX + 0x40],XMM0 MOVUPS xmmword ptr [RDX + 0x30],XMM0 MOVUPS xmmword ptr [RDX + 0x20],XMM0 MOVUPS xmmword ptr [RDX + 0x10],XMM0 MOVUPS xmmword ptr [RDX],XMM0 MOV RCX,qword ptr [RDI + 0x10] MOV qword ptr [RDX],RCX MOV ECX,dword ptr [RDI + 0x18] MOV qword ptr [RDX + 0x8],RCX TEST RAX,RAX JZ 0x0019ac84 MOV RCX,qword ptr [RDX + 0x10] MOV RSI,qword ptr [RDX + 0x18] MOV R8,qword ptr [RDX + 0x20] MOV R9,qword ptr [RDX + 0x28] MOV R10,qword ptr [RDX + 0x30] MOV R11,qword ptr [RDX + 0x38] MOV RBX,qword ptr [RDX + 0x40] MOV R14,qword ptr [RDX + 0x48] XOR R15D,R15D LAB_0019ac1d: MOV R12,qword ptr [RDI + 0x8] MOV R12,qword ptr [R12 + R15*0x8] ADD RCX,qword ptr [R12 + 0x50] MOV qword ptr [RDX + 0x10],RCX ADD RSI,qword ptr [R12 + 0x58] MOV qword ptr [RDX + 0x18],RSI ADD R8,qword ptr [R12 + 0x138] MOV qword ptr [RDX + 0x20],R8 ADD R9,qword ptr [R12 + 0x68] MOV qword ptr [RDX + 0x28],R9 ADD R10,qword ptr [R12 + 0x150] MOV qword ptr [RDX + 0x30],R10 ADD R11,qword ptr [R12 + 0x158] MOV qword ptr [RDX + 0x38],R11 ADD RBX,qword ptr [R12 + 0x140] MOV qword ptr [RDX + 0x40],RBX ADD R14,qword ptr [R12 + 0x148] MOV qword ptr [RDX + 0x48],R14 INC R15 CMP RAX,R15 JNZ 0x0019ac1d LAB_0019ac84: POP RBX POP R12 POP R14 POP R15 POP RBP RET
void get_partitioned_key_cache_statistics(long param_1,int param_2,int8 *param_3) { uint uVar1; long lVar2; long lVar3; long lVar4; long lVar5; long lVar6; long lVar7; long lVar8; long lVar9; long lVar10; ulong uVar11; if (param_2 == 0) { uVar1 = *(uint *)(param_1 + 0x1c); param_3[8] = 0; param_3[9] = 0; param_3[6] = 0; param_3[7] = 0; param_3[4] = 0; param_3[5] = 0; param_3[2] = 0; param_3[3] = 0; *param_3 = 0; param_3[1] = 0; *param_3 = *(int8 *)(param_1 + 0x10); param_3[1] = (ulong)*(uint *)(param_1 + 0x18); if ((ulong)uVar1 != 0) { lVar3 = param_3[2]; lVar5 = param_3[3]; lVar6 = param_3[4]; lVar7 = param_3[5]; lVar8 = param_3[6]; lVar9 = param_3[7]; lVar4 = param_3[8]; lVar10 = param_3[9]; uVar11 = 0; do { lVar2 = *(long *)(*(long *)(param_1 + 8) + uVar11 * 8); lVar3 = lVar3 + *(long *)(lVar2 + 0x50); param_3[2] = lVar3; lVar5 = lVar5 + *(long *)(lVar2 + 0x58); param_3[3] = lVar5; lVar6 = lVar6 + *(long *)(lVar2 + 0x138); param_3[4] = lVar6; lVar7 = lVar7 + *(long *)(lVar2 + 0x68); param_3[5] = lVar7; lVar8 = lVar8 + *(long *)(lVar2 + 0x150); param_3[6] = lVar8; lVar9 = lVar9 + *(long *)(lVar2 + 0x158); param_3[7] = lVar9; lVar4 = lVar4 + *(long *)(lVar2 + 0x140); param_3[8] = lVar4; lVar10 = lVar10 + *(long *)(lVar2 + 0x148); param_3[9] = lVar10; uVar11 = uVar11 + 1; } while (uVar1 != uVar11); } } else { lVar3 = *(long *)(*(long *)(param_1 + 8) + (ulong)(param_2 - 1) * 8); *param_3 = *(int8 *)(lVar3 + 8); param_3[1] = (ulong)*(uint *)(lVar3 + 0x18); param_3[2] = *(int8 *)(lVar3 + 0x50); param_3[3] = *(int8 *)(lVar3 + 0x58); param_3[4] = *(int8 *)(lVar3 + 0x138); param_3[5] = *(int8 *)(lVar3 + 0x68); param_3[6] = *(int8 *)(lVar3 + 0x150); param_3[7] = *(int8 *)(lVar3 + 0x158); param_3[8] = *(int8 *)(lVar3 + 0x140); param_3[9] = *(int8 *)(lVar3 + 0x148); } return; }
52,880
my_b_safe_write
eloqsql/mysys/mf_iocache.c
int my_b_safe_write(IO_CACHE *info, const uchar *Buffer, size_t Count) { /* Sasha: We are not writing this with the ? operator to avoid hitting a possible compiler bug. At least gcc 2.95 cannot deal with several layers of ternary operators that evaluated comma(,) operator expressions inside - I do have a test case if somebody wants it */ if (info->type == SEQ_READ_APPEND) return my_b_append(info, Buffer, Count); return my_b_write(info, Buffer, Count); }
O3
c
my_b_safe_write: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rdx, %rbx movq %rdi, %r14 cmpl $0x3, 0xb0(%rdi) jne 0x9607e movq %r14, %rdi movq %rbx, %rdx popq %rbx popq %r14 popq %rbp jmp 0x95e26 movq 0x40(%r14), %rdi leaq (%rdi,%rbx), %rax cmpq 0x48(%r14), %rax jbe 0x9609b movq %r14, %rdi movq %rbx, %rdx popq %rbx popq %r14 popq %rbp jmp 0x9561f testq %rbx, %rbx je 0x960ac movq %rbx, %rdx callq 0x29080 addq %rbx, 0x40(%r14) xorl %eax, %eax popq %rbx popq %r14 popq %rbp retq
my_b_safe_write: push rbp mov rbp, rsp push r14 push rbx mov rbx, rdx mov r14, rdi cmp dword ptr [rdi+0B0h], 3 jnz short loc_9607E mov rdi, r14 mov rdx, rbx pop rbx pop r14 pop rbp jmp my_b_append loc_9607E: mov rdi, [r14+40h] lea rax, [rdi+rbx] cmp rax, [r14+48h] jbe short loc_9609B mov rdi, r14 mov rdx, rbx pop rbx pop r14 pop rbp jmp _my_b_write loc_9609B: test rbx, rbx jz short loc_960AC mov rdx, rbx call _memcpy add [r14+40h], rbx loc_960AC: xor eax, eax pop rbx pop r14 pop rbp retn
long long my_b_safe_write(long long a1, long long a2, unsigned long long a3) { long long v6; // rdi if ( *(_DWORD *)(a1 + 176) == 3 ) return my_b_append(a1, a2, a3); v6 = *(_QWORD *)(a1 + 64); if ( v6 + a3 > *(_QWORD *)(a1 + 72) ) return my_b_write(a1, a2, a3); if ( a3 ) { memcpy(v6, a2, a3); *(_QWORD *)(a1 + 64) += a3; } return 0LL; }
my_b_safe_write: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV RBX,RDX MOV R14,RDI CMP dword ptr [RDI + 0xb0],0x3 JNZ 0x0019607e MOV RDI,R14 MOV RDX,RBX POP RBX POP R14 POP RBP JMP 0x00195e26 LAB_0019607e: MOV RDI,qword ptr [R14 + 0x40] LEA RAX,[RDI + RBX*0x1] CMP RAX,qword ptr [R14 + 0x48] JBE 0x0019609b MOV RDI,R14 MOV RDX,RBX POP RBX POP R14 POP RBP JMP 0x0019561f LAB_0019609b: TEST RBX,RBX JZ 0x001960ac MOV RDX,RBX CALL 0x00129080 ADD qword ptr [R14 + 0x40],RBX LAB_001960ac: XOR EAX,EAX POP RBX POP R14 POP RBP RET
int8 my_b_safe_write(long param_1,void *param_2,size_t param_3) { int8 uVar1; if (*(int *)(param_1 + 0xb0) == 3) { uVar1 = my_b_append(param_1,param_2,param_3); return uVar1; } if (*(ulong *)(param_1 + 0x48) < (long)*(void **)(param_1 + 0x40) + param_3) { uVar1 = _my_b_write(param_1,param_2,param_3); return uVar1; } if (param_3 != 0) { memcpy(*(void **)(param_1 + 0x40),param_2,param_3); *(long *)(param_1 + 0x40) = *(long *)(param_1 + 0x40) + param_3; } return 0; }
52,881
minja::Value& nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::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>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<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, minja::Value>>>::operator[]<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 0>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
monkey531[P]llama/common/json.hpp
T & operator[](KeyType && key) { return emplace(std::forward<KeyType>(key), T{}).first->second; }
O1
cpp
minja::Value& nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::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>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<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, minja::Value>>>::operator[]<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 0>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %r15 pushq %r14 pushq %rbx subq $0x50, %rsp movq %rsi, %rbx movq %rdi, %r15 leaq 0x40(%rsp), %r14 movq $0x0, 0x8(%r14) xorps %xmm0, %xmm0 movaps %xmm0, -0x40(%r14) movaps %xmm0, -0x30(%r14) movaps %xmm0, -0x20(%r14) movaps %xmm0, -0x10(%r14) movb $0x0, (%r14) movq %r14, %rdi movl $0x1, %esi callq 0x59472 movq %r14, %rdi movl $0x1, %esi callq 0x59472 movq %rsp, %rdx movq %r15, %rdi movq %rbx, %rsi callq 0x8ed6c movq %rax, %rbx movq %r14, %rdi xorl %esi, %esi callq 0x59472 movq %r14, %rdi callq 0x5ec5e movq 0x38(%rsp), %rdi testq %rdi, %rdi je 0x8e3a3 callq 0x6e5ca movq 0x28(%rsp), %rdi testq %rdi, %rdi je 0x8e3b2 callq 0x6e5ca movq 0x18(%rsp), %rdi testq %rdi, %rdi je 0x8e3c1 callq 0x6e5ca movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x8e3f7 movq 0xa0bb6(%rip), %rax # 0x12ef88 cmpb $0x0, (%rax) je 0x8e3e2 movl 0xc(%rdi), %eax leal -0x1(%rax), %ecx movl %ecx, 0xc(%rdi) jmp 0x8e3ec movl $0xffffffff, %eax # imm = 0xFFFFFFFF lock xaddl %eax, 0xc(%rdi) cmpl $0x1, %eax jne 0x8e3f7 movq (%rdi), %rax callq *0x18(%rax) addq $0x10, %rbx movq %rbx, %rax addq $0x50, %rsp popq %rbx popq %r14 popq %r15 retq movq %rax, %rbx movq %rsp, %rdi callq 0x87d28 movq %rbx, %rdi callq 0x1bf90 nop
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OST_: push r15 push r14 push rbx sub rsp, 50h mov rbx, rsi mov r15, rdi lea r14, [rsp+68h+var_28] mov qword ptr [r14+8], 0 xorps xmm0, xmm0 movaps xmmword ptr [r14-40h], xmm0 movaps xmmword ptr [r14-30h], xmm0 movaps xmmword ptr [r14-20h], xmm0 movaps xmmword ptr [r14-10h], xmm0 mov byte ptr [r14], 0 mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdx, rsp mov rdi, r15 mov rsi, rbx call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE7emplaceIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEESI_IN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEEbEOST_OSF_ mov rbx, rax mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rdi, [rsp+68h+var_30] test rdi, rdi jz short loc_8E3A3 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_8E3A3: mov rdi, [rsp+68h+var_40] test rdi, rdi jz short loc_8E3B2 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_8E3B2: mov rdi, [rsp+68h+var_50] test rdi, rdi jz short loc_8E3C1 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_8E3C1: mov rdi, [rsp+68h+var_60] test rdi, rdi jz short loc_8E3F7 mov rax, cs:__libc_single_threaded_ptr cmp byte ptr [rax], 0 jz short loc_8E3E2 mov eax, [rdi+0Ch] lea ecx, [rax-1] mov [rdi+0Ch], ecx jmp short loc_8E3EC loc_8E3E2: mov eax, 0FFFFFFFFh lock xadd [rdi+0Ch], eax loc_8E3EC: cmp eax, 1 jnz short loc_8E3F7 mov rax, [rdi] call qword ptr [rax+18h] loc_8E3F7: add rbx, 10h mov rax, rbx add rsp, 50h pop rbx pop r14 pop r15 retn mov rbx, rax mov rdi, rsp; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() mov rdi, rbx call __Unwind_Resume
long long ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OST_( long long a1, long long a2) { long long v2; // rbx long long v3; // rdi signed __int32 v4; // eax __int128 v6; // [rsp+0h] [rbp-68h] BYREF __int128 v7; // [rsp+10h] [rbp-58h] __int128 v8; // [rsp+20h] [rbp-48h] __int128 v9; // [rsp+30h] [rbp-38h] char v10[8]; // [rsp+40h] [rbp-28h] BYREF long long v11; // [rsp+48h] [rbp-20h] v11 = 0LL; v6 = 0LL; v7 = 0LL; v8 = 0LL; v9 = 0LL; v10[0] = 0; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v10); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v10); v2 = ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE7emplaceIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEESI_IN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEEbEOST_OSF_( a1, a2, &v6); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v10); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v10); if ( *((_QWORD *)&v9 + 1) ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(*((volatile signed __int32 **)&v9 + 1)); if ( *((_QWORD *)&v8 + 1) ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(*((volatile signed __int32 **)&v8 + 1)); if ( *((_QWORD *)&v7 + 1) ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(*((volatile signed __int32 **)&v7 + 1)); v3 = *((_QWORD *)&v6 + 1); if ( *((_QWORD *)&v6 + 1) ) { if ( _libc_single_threaded ) { v4 = *(_DWORD *)(*((_QWORD *)&v6 + 1) + 12LL); *(_DWORD *)(*((_QWORD *)&v6 + 1) + 12LL) = v4 - 1; } else { v4 = _InterlockedExchangeAdd((volatile signed __int32 *)(*((_QWORD *)&v6 + 1) + 12LL), 0xFFFFFFFF); } if ( v4 == 1 ) (*(void ( **)(long long, _QWORD))(*(_QWORD *)v3 + 24LL))(v3, 0LL); } return v2 + 16; }
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OST_: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x50 MOV RBX,RSI MOV R15,RDI LEA R14,[RSP + 0x40] MOV qword ptr [R14 + 0x8],0x0 XORPS XMM0,XMM0 MOVAPS xmmword ptr [R14 + -0x40],XMM0 MOVAPS xmmword ptr [R14 + -0x30],XMM0 MOVAPS xmmword ptr [R14 + -0x20],XMM0 MOVAPS xmmword ptr [R14 + -0x10],XMM0 MOV byte ptr [R14],0x0 MOV RDI,R14 MOV ESI,0x1 CALL 0x00159472 MOV RDI,R14 MOV ESI,0x1 CALL 0x00159472 LAB_0018e371: MOV RDX,RSP MOV RDI,R15 MOV RSI,RBX CALL 0x0018ed6c LAB_0018e37f: MOV RBX,RAX MOV RDI,R14 XOR ESI,ESI CALL 0x00159472 MOV RDI,R14 CALL 0x0015ec5e MOV RDI,qword ptr [RSP + 0x38] TEST RDI,RDI JZ 0x0018e3a3 CALL 0x0016e5ca LAB_0018e3a3: MOV RDI,qword ptr [RSP + 0x28] TEST RDI,RDI JZ 0x0018e3b2 CALL 0x0016e5ca LAB_0018e3b2: MOV RDI,qword ptr [RSP + 0x18] TEST RDI,RDI JZ 0x0018e3c1 CALL 0x0016e5ca LAB_0018e3c1: MOV RDI,qword ptr [RSP + 0x8] TEST RDI,RDI JZ 0x0018e3f7 MOV RAX,qword ptr [0x0022ef88] CMP byte ptr [RAX],0x0 JZ 0x0018e3e2 MOV EAX,dword ptr [RDI + 0xc] LEA ECX,[RAX + -0x1] MOV dword ptr [RDI + 0xc],ECX JMP 0x0018e3ec LAB_0018e3e2: MOV EAX,0xffffffff XADD.LOCK dword ptr [RDI + 0xc],EAX LAB_0018e3ec: CMP EAX,0x1 JNZ 0x0018e3f7 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x18] LAB_0018e3f7: ADD RBX,0x10 MOV RAX,RBX ADD RSP,0x50 POP RBX POP R14 POP R15 RET
long _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OST_ (int8 param_1,int8 param_2) { int *piVar1; int iVar2; long lVar3; bool bVar4; int8 local_68; long *plStack_60; int8 local_58; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Stack_50; int8 local_48; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Stack_40; int8 local_38; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Stack_30; data local_28 [8]; int8 local_20; local_20 = 0; local_68 = 0; plStack_60 = (long *)0x0; local_58 = 0; p_Stack_50 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0; local_48 = 0; p_Stack_40 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0; local_38 = 0; p_Stack_30 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0; local_28[0] = (data)0x0; bVar4 = SUB81(local_28,0); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar4); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar4); /* try { // try from 0018e371 to 0018e37e has its CatchHandler @ 0018e408 */ lVar3 = _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE7emplaceIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEESI_IN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEEbEOST_OSF_ (param_1,param_2,&local_68); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar4); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_28); if (p_Stack_30 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(p_Stack_30); } if (p_Stack_40 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(p_Stack_40); } if (p_Stack_50 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(p_Stack_50); } if (plStack_60 != (long *)0x0) { if (*PTR___libc_single_threaded_0022ef88 == '\0') { LOCK(); piVar1 = (int *)((long)plStack_60 + 0xc); iVar2 = *piVar1; *piVar1 = *piVar1 + -1; UNLOCK(); } else { iVar2 = *(int *)((long)plStack_60 + 0xc); *(int *)((long)plStack_60 + 0xc) = iVar2 + -1; } if (iVar2 == 1) { (**(code **)(*plStack_60 + 0x18))(); } } return lVar3 + 0x10; }
52,882
ma_dynstr_append_quoted
eloqsql/libmariadb/libmariadb/ma_string.c
my_bool ma_dynstr_append_quoted(DYNAMIC_STRING *str, const char *append, size_t len, char quote) { size_t additional= str->alloc_increment; size_t lim= additional; uint i; if (ma_dynstr_realloc(str, len + additional + 2)) return TRUE; str->str[str->length++]= quote; for (i= 0; i < len; i++) { register char c= append[i]; if (c == quote || c == '\\') { if (!lim) { if (ma_dynstr_realloc(str, additional)) return TRUE; lim= additional; } lim--; str->str[str->length++]= '\\'; } str->str[str->length++]= c; } str->str[str->length++]= quote; return FALSE; }
O0
c
ma_dynstr_append_quoted: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movb %cl, %al movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movb %al, -0x21(%rbp) movq -0x10(%rbp), %rax movq 0x18(%rax), %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x10(%rbp), %rdi movq -0x20(%rbp), %rsi addq -0x30(%rbp), %rsi addq $0x2, %rsi callq 0x31c70 cmpb $0x0, %al je 0x31e7f movb $0x1, -0x1(%rbp) jmp 0x31f7a movb -0x21(%rbp), %dl movq -0x10(%rbp), %rax movq (%rax), %rax movq -0x10(%rbp), %rsi movq 0x8(%rsi), %rcx movq %rcx, %rdi addq $0x1, %rdi movq %rdi, 0x8(%rsi) movb %dl, (%rax,%rcx) movl $0x0, -0x3c(%rbp) movl -0x3c(%rbp), %eax cmpq -0x20(%rbp), %rax jae 0x31f56 movq -0x18(%rbp), %rax movl -0x3c(%rbp), %ecx movb (%rax,%rcx), %al movb %al, -0x3d(%rbp) movsbl -0x3d(%rbp), %eax movsbl -0x21(%rbp), %ecx cmpl %ecx, %eax je 0x31ed5 movsbl -0x3d(%rbp), %eax cmpl $0x5c, %eax jne 0x31f28 cmpq $0x0, -0x38(%rbp) jne 0x31efe movq -0x10(%rbp), %rdi movq -0x30(%rbp), %rsi callq 0x31c70 cmpb $0x0, %al je 0x31ef6 movb $0x1, -0x1(%rbp) jmp 0x31f7a movq -0x30(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax addq $-0x1, %rax movq %rax, -0x38(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq -0x10(%rbp), %rdx movq 0x8(%rdx), %rcx movq %rcx, %rsi addq $0x1, %rsi movq %rsi, 0x8(%rdx) movb $0x5c, (%rax,%rcx) movb -0x3d(%rbp), %dl movq -0x10(%rbp), %rax movq (%rax), %rax movq -0x10(%rbp), %rsi movq 0x8(%rsi), %rcx movq %rcx, %rdi addq $0x1, %rdi movq %rdi, 0x8(%rsi) movb %dl, (%rax,%rcx) movl -0x3c(%rbp), %eax addl $0x1, %eax movl %eax, -0x3c(%rbp) jmp 0x31ea6 movb -0x21(%rbp), %dl movq -0x10(%rbp), %rax movq (%rax), %rax movq -0x10(%rbp), %rsi movq 0x8(%rsi), %rcx movq %rcx, %rdi addq $0x1, %rdi movq %rdi, 0x8(%rsi) movb %dl, (%rax,%rcx) movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
ma_dynstr_append_quoted: push rbp mov rbp, rsp sub rsp, 40h mov al, cl mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_21], al mov rax, [rbp+var_10] mov rax, [rax+18h] mov [rbp+var_30], rax mov rax, [rbp+var_30] mov [rbp+var_38], rax mov rdi, [rbp+var_10] mov rsi, [rbp+var_20] add rsi, [rbp+var_30] add rsi, 2 call ma_dynstr_realloc cmp al, 0 jz short loc_31E7F mov [rbp+var_1], 1 jmp loc_31F7A loc_31E7F: mov dl, [rbp+var_21] mov rax, [rbp+var_10] mov rax, [rax] mov rsi, [rbp+var_10] mov rcx, [rsi+8] mov rdi, rcx add rdi, 1 mov [rsi+8], rdi mov [rax+rcx], dl mov [rbp+var_3C], 0 loc_31EA6: mov eax, [rbp+var_3C] cmp rax, [rbp+var_20] jnb loc_31F56 mov rax, [rbp+var_18] mov ecx, [rbp+var_3C] mov al, [rax+rcx] mov [rbp+var_3D], al movsx eax, [rbp+var_3D] movsx ecx, [rbp+var_21] cmp eax, ecx jz short loc_31ED5 movsx eax, [rbp+var_3D] cmp eax, 5Ch ; '\' jnz short loc_31F28 loc_31ED5: cmp [rbp+var_38], 0 jnz short loc_31EFE mov rdi, [rbp+var_10] mov rsi, [rbp+var_30] call ma_dynstr_realloc cmp al, 0 jz short loc_31EF6 mov [rbp+var_1], 1 jmp loc_31F7A loc_31EF6: mov rax, [rbp+var_30] mov [rbp+var_38], rax loc_31EFE: mov rax, [rbp+var_38] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_38], rax mov rax, [rbp+var_10] mov rax, [rax] mov rdx, [rbp+var_10] mov rcx, [rdx+8] mov rsi, rcx add rsi, 1 mov [rdx+8], rsi mov byte ptr [rax+rcx], 5Ch ; '\' loc_31F28: mov dl, [rbp+var_3D] mov rax, [rbp+var_10] mov rax, [rax] mov rsi, [rbp+var_10] mov rcx, [rsi+8] mov rdi, rcx add rdi, 1 mov [rsi+8], rdi mov [rax+rcx], dl mov eax, [rbp+var_3C] add eax, 1 mov [rbp+var_3C], eax jmp loc_31EA6 loc_31F56: mov dl, [rbp+var_21] mov rax, [rbp+var_10] mov rax, [rax] mov rsi, [rbp+var_10] mov rcx, [rsi+8] mov rdi, rcx add rdi, 1 mov [rsi+8], rdi mov [rax+rcx], dl mov [rbp+var_1], 0 loc_31F7A: mov al, [rbp+var_1] add rsp, 40h pop rbp retn
char ma_dynstr_append_quoted(long long *a1, long long a2, unsigned long long a3, char a4) { long long v4; // rax long long v5; // rcx long long v6; // rax long long v7; // rcx long long v8; // rax long long v9; // rcx long long v10; // rax long long v11; // rcx char v13; // [rsp+3h] [rbp-3Dh] unsigned int i; // [rsp+4h] [rbp-3Ch] long long v15; // [rsp+8h] [rbp-38h] long long v16; // [rsp+10h] [rbp-30h] v16 = a1[3]; v15 = v16; if ( ma_dynstr_realloc(a1, v16 + a3 + 2) ) return 1; v4 = *a1; v5 = a1[1]; a1[1] = v5 + 1; *(_BYTE *)(v4 + v5) = a4; for ( i = 0; i < a3; ++i ) { v13 = *(_BYTE *)(a2 + i); if ( v13 == a4 || v13 == 92 ) { if ( !v15 ) { if ( ma_dynstr_realloc(a1, v16) ) return 1; v15 = v16; } --v15; v6 = *a1; v7 = a1[1]; a1[1] = v7 + 1; *(_BYTE *)(v6 + v7) = 92; } v8 = *a1; v9 = a1[1]; a1[1] = v9 + 1; *(_BYTE *)(v8 + v9) = v13; } v10 = *a1; v11 = a1[1]; a1[1] = v11 + 1; *(_BYTE *)(v10 + v11) = a4; return 0; }
ma_dynstr_append_quoted: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV AL,CL MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV byte ptr [RBP + -0x21],AL MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x38],RAX MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x20] ADD RSI,qword ptr [RBP + -0x30] ADD RSI,0x2 CALL 0x00131c70 CMP AL,0x0 JZ 0x00131e7f MOV byte ptr [RBP + -0x1],0x1 JMP 0x00131f7a LAB_00131e7f: MOV DL,byte ptr [RBP + -0x21] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RSI,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RSI + 0x8] MOV RDI,RCX ADD RDI,0x1 MOV qword ptr [RSI + 0x8],RDI MOV byte ptr [RAX + RCX*0x1],DL MOV dword ptr [RBP + -0x3c],0x0 LAB_00131ea6: MOV EAX,dword ptr [RBP + -0x3c] CMP RAX,qword ptr [RBP + -0x20] JNC 0x00131f56 MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RBP + -0x3c] MOV AL,byte ptr [RAX + RCX*0x1] MOV byte ptr [RBP + -0x3d],AL MOVSX EAX,byte ptr [RBP + -0x3d] MOVSX ECX,byte ptr [RBP + -0x21] CMP EAX,ECX JZ 0x00131ed5 MOVSX EAX,byte ptr [RBP + -0x3d] CMP EAX,0x5c JNZ 0x00131f28 LAB_00131ed5: CMP qword ptr [RBP + -0x38],0x0 JNZ 0x00131efe MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x30] CALL 0x00131c70 CMP AL,0x0 JZ 0x00131ef6 MOV byte ptr [RBP + -0x1],0x1 JMP 0x00131f7a LAB_00131ef6: MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x38],RAX LAB_00131efe: MOV RAX,qword ptr [RBP + -0x38] ADD RAX,-0x1 MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RDX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RDX + 0x8] MOV RSI,RCX ADD RSI,0x1 MOV qword ptr [RDX + 0x8],RSI MOV byte ptr [RAX + RCX*0x1],0x5c LAB_00131f28: MOV DL,byte ptr [RBP + -0x3d] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RSI,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RSI + 0x8] MOV RDI,RCX ADD RDI,0x1 MOV qword ptr [RSI + 0x8],RDI MOV byte ptr [RAX + RCX*0x1],DL MOV EAX,dword ptr [RBP + -0x3c] ADD EAX,0x1 MOV dword ptr [RBP + -0x3c],EAX JMP 0x00131ea6 LAB_00131f56: MOV DL,byte ptr [RBP + -0x21] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RSI,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RSI + 0x8] MOV RDI,RCX ADD RDI,0x1 MOV qword ptr [RSI + 0x8],RDI MOV byte ptr [RAX + RCX*0x1],DL MOV byte ptr [RBP + -0x1],0x0 LAB_00131f7a: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x40 POP RBP RET
int1 ma_dynstr_append_quoted(long *param_1,long param_2,ulong param_3,char param_4) { long lVar1; long lVar2; char cVar3; char cVar4; uint local_44; long local_40; int1 local_9; lVar1 = param_1[3]; cVar3 = ma_dynstr_realloc(param_1,param_3 + lVar1 + 2); if (cVar3 == '\0') { lVar2 = param_1[1]; param_1[1] = lVar2 + 1; *(char *)(*param_1 + lVar2) = param_4; local_40 = lVar1; for (local_44 = 0; local_44 < param_3; local_44 = local_44 + 1) { cVar3 = *(char *)(param_2 + (ulong)local_44); if ((cVar3 == param_4) || (cVar3 == '\\')) { if ((local_40 == 0) && (cVar4 = ma_dynstr_realloc(param_1,lVar1), local_40 = lVar1, cVar4 != '\0')) { return 1; } local_40 = local_40 + -1; lVar2 = param_1[1]; param_1[1] = lVar2 + 1; *(int1 *)(*param_1 + lVar2) = 0x5c; } lVar2 = param_1[1]; param_1[1] = lVar2 + 1; *(char *)(*param_1 + lVar2) = cVar3; } lVar1 = param_1[1]; param_1[1] = lVar1 + 1; *(char *)(*param_1 + lVar1) = param_4; local_9 = 0; } else { local_9 = 1; } return local_9; }
52,883
add_arg
bluesky950520[P]quickjs/quickjs.c
static int add_arg(JSContext *ctx, JSFunctionDef *fd, JSAtom name) { JSVarDef *vd; /* the local variable indexes are currently stored on 16 bits */ if (fd->arg_count >= JS_MAX_LOCAL_VARS) { // XXX: add_arg() should take JSParseState *s and use js_parse_error JS_ThrowSyntaxError(ctx, "too many parameters in function definition (only %d allowed)", JS_MAX_LOCAL_VARS - 1); return -1; } if (js_resize_array(ctx, (void **)&fd->args, sizeof(fd->args[0]), &fd->arg_size, fd->arg_count + 1)) return -1; vd = &fd->args[fd->arg_count++]; memset(vd, 0, sizeof(*vd)); vd->var_name = JS_DupAtom(ctx, name); vd->func_pool_idx = -1; return fd->arg_count - 1; }
O0
c
add_arg: subq $0x38, %rsp movq %rdi, 0x28(%rsp) movq %rsi, 0x20(%rsp) movl %edx, 0x1c(%rsp) movq 0x20(%rsp), %rax cmpl $0xffff, 0xb4(%rax) # imm = 0xFFFF jl 0xa5041 movq 0x28(%rsp), %rdi leaq 0x6aabc(%rip), %rsi # 0x10fadb movl $0xfffe, %edx # imm = 0xFFFE movb $0x0, %al callq 0x2d210 movq %rax, (%rsp) movq %rdx, 0x8(%rsp) movl $0xffffffff, 0x34(%rsp) # imm = 0xFFFFFFFF jmp 0xa510c movq 0x28(%rsp), %rdi movq 0x20(%rsp), %rsi addq $0xa8, %rsi movq 0x20(%rsp), %rcx addq $0xb0, %rcx movq 0x20(%rsp), %rax movl 0xb4(%rax), %r8d addl $0x1, %r8d movl $0x10, %edx callq 0x73140 cmpl $0x0, %eax je 0xa508a movl $0xffffffff, 0x34(%rsp) # imm = 0xFFFFFFFF jmp 0xa510c movq 0x20(%rsp), %rax movq 0xa8(%rax), %rax movq 0x20(%rsp), %rdx movl 0xb4(%rdx), %ecx movl %ecx, %esi addl $0x1, %esi movl %esi, 0xb4(%rdx) movslq %ecx, %rcx shlq $0x4, %rcx addq %rcx, %rax movq %rax, 0x10(%rsp) movq 0x10(%rsp), %rdi xorl %esi, %esi movl $0x10, %edx callq 0xe350 movq 0x28(%rsp), %rdi movl 0x1c(%rsp), %esi callq 0x27fa0 movl %eax, %ecx movq 0x10(%rsp), %rax movl %ecx, (%rax) movq 0x10(%rsp), %rax movl 0xc(%rax), %ecx andl $0xff, %ecx orl $0xffffff00, %ecx # imm = 0xFFFFFF00 movl %ecx, 0xc(%rax) movq 0x20(%rsp), %rax movl 0xb4(%rax), %eax subl $0x1, %eax movl %eax, 0x34(%rsp) movl 0x34(%rsp), %eax addq $0x38, %rsp retq nopw %cs:(%rax,%rax)
add_arg: sub rsp, 38h mov [rsp+38h+var_10], rdi mov [rsp+38h+var_18], rsi mov [rsp+38h+var_1C], edx mov rax, [rsp+38h+var_18] cmp dword ptr [rax+0B4h], 0FFFFh jl short loc_A5041 mov rdi, [rsp+38h+var_10] lea rsi, aTooManyParamet; "too many parameters in function definit"... mov edx, 0FFFEh mov al, 0 call JS_ThrowSyntaxError mov [rsp+38h+var_38], rax mov [rsp+38h+var_30], rdx mov [rsp+38h+var_4], 0FFFFFFFFh jmp loc_A510C loc_A5041: mov rdi, [rsp+38h+var_10] mov rsi, [rsp+38h+var_18] add rsi, 0A8h mov rcx, [rsp+38h+var_18] add rcx, 0B0h mov rax, [rsp+38h+var_18] mov r8d, [rax+0B4h] add r8d, 1 mov edx, 10h call js_resize_array cmp eax, 0 jz short loc_A508A mov [rsp+38h+var_4], 0FFFFFFFFh jmp loc_A510C loc_A508A: mov rax, [rsp+38h+var_18] mov rax, [rax+0A8h] mov rdx, [rsp+38h+var_18] mov ecx, [rdx+0B4h] mov esi, ecx add esi, 1 mov [rdx+0B4h], esi movsxd rcx, ecx shl rcx, 4 add rax, rcx mov [rsp+38h+var_28], rax mov rdi, [rsp+38h+var_28] xor esi, esi mov edx, 10h call _memset mov rdi, [rsp+38h+var_10] mov esi, [rsp+38h+var_1C] call JS_DupAtom mov ecx, eax mov rax, [rsp+38h+var_28] mov [rax], ecx mov rax, [rsp+38h+var_28] mov ecx, [rax+0Ch] and ecx, 0FFh or ecx, 0FFFFFF00h mov [rax+0Ch], ecx mov rax, [rsp+38h+var_18] mov eax, [rax+0B4h] sub eax, 1 mov [rsp+38h+var_4], eax loc_A510C: mov eax, [rsp+38h+var_4] add rsp, 38h retn
long long add_arg( long long a1, long long a2, unsigned int a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { long long v14; // rax int v15; // ecx char v17; // [rsp+0h] [rbp-38h] _DWORD *v18; // [rsp+10h] [rbp-28h] if ( *(int *)(a2 + 180) < 0xFFFF ) { if ( (unsigned int)js_resize_array(a1, a2 + 168, 0x10u, (_DWORD *)(a2 + 176), *(_DWORD *)(a2 + 180) + 1) ) { return (unsigned int)-1; } else { v14 = *(_QWORD *)(a2 + 168); v15 = *(_DWORD *)(a2 + 180); *(_DWORD *)(a2 + 180) = v15 + 1; v18 = (_DWORD *)(16LL * v15 + v14); memset(v18, 0LL, 16LL); *v18 = JS_DupAtom(a1, a3); v18[3] |= 0xFFFFFF00; return (unsigned int)(*(_DWORD *)(a2 + 180) - 1); } } else { JS_ThrowSyntaxError( a1, (long long)"too many parameters in function definition (only %d allowed)", 65534LL, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v17); return (unsigned int)-1; } }
add_arg: SUB RSP,0x38 MOV qword ptr [RSP + 0x28],RDI MOV qword ptr [RSP + 0x20],RSI MOV dword ptr [RSP + 0x1c],EDX MOV RAX,qword ptr [RSP + 0x20] CMP dword ptr [RAX + 0xb4],0xffff JL 0x001a5041 MOV RDI,qword ptr [RSP + 0x28] LEA RSI,[0x20fadb] MOV EDX,0xfffe MOV AL,0x0 CALL 0x0012d210 MOV qword ptr [RSP],RAX MOV qword ptr [RSP + 0x8],RDX MOV dword ptr [RSP + 0x34],0xffffffff JMP 0x001a510c LAB_001a5041: MOV RDI,qword ptr [RSP + 0x28] MOV RSI,qword ptr [RSP + 0x20] ADD RSI,0xa8 MOV RCX,qword ptr [RSP + 0x20] ADD RCX,0xb0 MOV RAX,qword ptr [RSP + 0x20] MOV R8D,dword ptr [RAX + 0xb4] ADD R8D,0x1 MOV EDX,0x10 CALL 0x00173140 CMP EAX,0x0 JZ 0x001a508a MOV dword ptr [RSP + 0x34],0xffffffff JMP 0x001a510c LAB_001a508a: MOV RAX,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RAX + 0xa8] MOV RDX,qword ptr [RSP + 0x20] MOV ECX,dword ptr [RDX + 0xb4] MOV ESI,ECX ADD ESI,0x1 MOV dword ptr [RDX + 0xb4],ESI MOVSXD RCX,ECX SHL RCX,0x4 ADD RAX,RCX MOV qword ptr [RSP + 0x10],RAX MOV RDI,qword ptr [RSP + 0x10] XOR ESI,ESI MOV EDX,0x10 CALL 0x0010e350 MOV RDI,qword ptr [RSP + 0x28] MOV ESI,dword ptr [RSP + 0x1c] CALL 0x00127fa0 MOV ECX,EAX MOV RAX,qword ptr [RSP + 0x10] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RSP + 0x10] MOV ECX,dword ptr [RAX + 0xc] AND ECX,0xff OR ECX,0xffffff00 MOV dword ptr [RAX + 0xc],ECX MOV RAX,qword ptr [RSP + 0x20] MOV EAX,dword ptr [RAX + 0xb4] SUB EAX,0x1 MOV dword ptr [RSP + 0x34],EAX LAB_001a510c: MOV EAX,dword ptr [RSP + 0x34] ADD RSP,0x38 RET
int add_arg(int8 param_1,long param_2,int4 param_3) { int iVar1; int4 uVar2; int4 *__s; int local_4; if (*(int *)(param_2 + 0xb4) < 0xffff) { iVar1 = js_resize_array(param_1,param_2 + 0xa8,0x10,param_2 + 0xb0,*(int *)(param_2 + 0xb4) + 1) ; if (iVar1 == 0) { iVar1 = *(int *)(param_2 + 0xb4); *(int *)(param_2 + 0xb4) = iVar1 + 1; __s = (int4 *)(*(long *)(param_2 + 0xa8) + (long)iVar1 * 0x10); memset(__s,0,0x10); uVar2 = JS_DupAtom(param_1,param_3); *__s = uVar2; __s[3] = __s[3] & 0xff | 0xffffff00; local_4 = *(int *)(param_2 + 0xb4) + -1; } else { local_4 = -1; } } else { JS_ThrowSyntaxError(param_1,"too many parameters in function definition (only %d allowed)", 0xfffe); local_4 = -1; } return local_4; }
52,884
add_arg
bluesky950520[P]quickjs/quickjs.c
static int add_arg(JSContext *ctx, JSFunctionDef *fd, JSAtom name) { JSVarDef *vd; /* the local variable indexes are currently stored on 16 bits */ if (fd->arg_count >= JS_MAX_LOCAL_VARS) { // XXX: add_arg() should take JSParseState *s and use js_parse_error JS_ThrowSyntaxError(ctx, "too many parameters in function definition (only %d allowed)", JS_MAX_LOCAL_VARS - 1); return -1; } if (js_resize_array(ctx, (void **)&fd->args, sizeof(fd->args[0]), &fd->arg_size, fd->arg_count + 1)) return -1; vd = &fd->args[fd->arg_count++]; memset(vd, 0, sizeof(*vd)); vd->var_name = JS_DupAtom(ctx, name); vd->func_pool_idx = -1; return fd->arg_count - 1; }
O1
c
add_arg: pushq %rbp pushq %r14 pushq %rbx movq %rdi, %r14 movl 0xb4(%rsi), %r8d cmpl $0xffff, %r8d # imm = 0xFFFF jl 0x63442 leaq 0x3d64b(%rip), %rsi # 0xa0a77 movq %r14, %rdi movl $0xfffe, %edx # imm = 0xFFFE xorl %eax, %eax callq 0x224d1 movl $0xffffffff, %eax # imm = 0xFFFFFFFF jmp 0x6349f movl %edx, %ebp movq %rsi, %rbx cmpl %r8d, 0xb0(%rsi) jle 0x634a4 movq 0xa8(%rbx), %rcx movslq 0xb4(%rbx), %rdx leal 0x1(%rdx), %eax movl %eax, 0xb4(%rbx) shlq $0x4, %rdx leaq (%rcx,%rdx), %rax xorps %xmm0, %xmm0 movups %xmm0, (%rcx,%rdx) cmpl $0xe0, %ebp jl 0x6348e movq 0x18(%r14), %rcx movq 0x68(%rcx), %rcx movl %ebp, %edx movq (%rcx,%rdx,8), %rcx incl (%rcx) movl %ebp, (%rax) orl $0xffffff00, 0xc(%rax) # imm = 0xFFFFFF00 movl 0xb4(%rbx), %eax decl %eax popq %rbx popq %r14 popq %rbp retq leaq 0xa8(%rbx), %rsi leaq 0xb0(%rbx), %rcx incl %r8d movq %r14, %rdi movl $0x10, %edx callq 0x434ef movl %eax, %ecx movl $0xffffffff, %eax # imm = 0xFFFFFFFF testl %ecx, %ecx jne 0x6349f jmp 0x63450
add_arg: push rbp push r14 push rbx mov r14, rdi mov r8d, [rsi+0B4h] cmp r8d, 0FFFFh jl short loc_63442 lea rsi, aTooManyParamet; "too many parameters in function definit"... mov rdi, r14 mov edx, 0FFFEh xor eax, eax call JS_ThrowSyntaxError mov eax, 0FFFFFFFFh jmp short loc_6349F loc_63442: mov ebp, edx mov rbx, rsi cmp [rsi+0B0h], r8d jle short loc_634A4 loc_63450: mov rcx, [rbx+0A8h] movsxd rdx, dword ptr [rbx+0B4h] lea eax, [rdx+1] mov [rbx+0B4h], eax shl rdx, 4 lea rax, [rcx+rdx] xorps xmm0, xmm0 movups xmmword ptr [rcx+rdx], xmm0 cmp ebp, 0E0h jl short loc_6348E mov rcx, [r14+18h] mov rcx, [rcx+68h] mov edx, ebp mov rcx, [rcx+rdx*8] inc dword ptr [rcx] loc_6348E: mov [rax], ebp or dword ptr [rax+0Ch], 0FFFFFF00h mov eax, [rbx+0B4h] dec eax loc_6349F: pop rbx pop r14 pop rbp retn loc_634A4: lea rsi, [rbx+0A8h] lea rcx, [rbx+0B0h] inc r8d mov rdi, r14 mov edx, 10h call js_realloc_array mov ecx, eax mov eax, 0FFFFFFFFh test ecx, ecx jnz short loc_6349F jmp short loc_63450
long long add_arg( long long a1, long long a2, int a3, long long a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, long long a13, long long a14) { long long v14; // r8 long long result; // rax long long v17; // rcx long long v18; // rdx long long v19; // rax _DWORD *v20; // rcx int v21; // ecx char v22; // [rsp+0h] [rbp-18h] v14 = *(unsigned int *)(a2 + 180); if ( (int)v14 < 0xFFFF ) { if ( *(_DWORD *)(a2 + 176) > (int)v14 || (v21 = js_realloc_array(a1, (long long *)(a2 + 168), 0x10u, (_DWORD *)(a2 + 176), (int)v14 + 1), result = 0xFFFFFFFFLL, !v21) ) { v17 = *(_QWORD *)(a2 + 168); v18 = *(int *)(a2 + 180); *(_DWORD *)(a2 + 180) = v18 + 1; v19 = v17 + 16 * v18; *(_OWORD *)v19 = 0LL; if ( a3 >= 224 ) { v20 = *(_DWORD **)(*(_QWORD *)(*(_QWORD *)(a1 + 24) + 104LL) + 8LL * (unsigned int)a3); ++*v20; } *(_DWORD *)v19 = a3; *(_DWORD *)(v19 + 12) |= 0xFFFFFF00; return (unsigned int)(*(_DWORD *)(a2 + 180) - 1); } } else { JS_ThrowSyntaxError( a1, (long long)"too many parameters in function definition (only %d allowed)", 65534LL, a4, v14, a14, a5, a6, a7, a8, a9, a10, a11, a12, v22); return 0xFFFFFFFFLL; } return result; }
add_arg: PUSH RBP PUSH R14 PUSH RBX MOV R14,RDI MOV R8D,dword ptr [RSI + 0xb4] CMP R8D,0xffff JL 0x00163442 LEA RSI,[0x1a0a77] MOV RDI,R14 MOV EDX,0xfffe XOR EAX,EAX CALL 0x001224d1 MOV EAX,0xffffffff JMP 0x0016349f LAB_00163442: MOV EBP,EDX MOV RBX,RSI CMP dword ptr [RSI + 0xb0],R8D JLE 0x001634a4 LAB_00163450: MOV RCX,qword ptr [RBX + 0xa8] MOVSXD RDX,dword ptr [RBX + 0xb4] LEA EAX,[RDX + 0x1] MOV dword ptr [RBX + 0xb4],EAX SHL RDX,0x4 LEA RAX,[RCX + RDX*0x1] XORPS XMM0,XMM0 MOVUPS xmmword ptr [RCX + RDX*0x1],XMM0 CMP EBP,0xe0 JL 0x0016348e MOV RCX,qword ptr [R14 + 0x18] MOV RCX,qword ptr [RCX + 0x68] MOV EDX,EBP MOV RCX,qword ptr [RCX + RDX*0x8] INC dword ptr [RCX] LAB_0016348e: MOV dword ptr [RAX],EBP OR dword ptr [RAX + 0xc],0xffffff00 MOV EAX,dword ptr [RBX + 0xb4] DEC EAX LAB_0016349f: POP RBX POP R14 POP RBP RET LAB_001634a4: LEA RSI,[RBX + 0xa8] LEA RCX,[RBX + 0xb0] INC R8D MOV RDI,R14 MOV EDX,0x10 CALL 0x001434ef MOV ECX,EAX MOV EAX,0xffffffff TEST ECX,ECX JNZ 0x0016349f JMP 0x00163450
int add_arg(long param_1,long param_2,uint param_3) { uint *puVar1; int8 *puVar2; int *piVar3; int iVar4; long lVar5; iVar4 = *(int *)(param_2 + 0xb4); if (iVar4 < 0xffff) { if ((*(int *)(param_2 + 0xb0) <= iVar4) && (iVar4 = js_realloc_array(param_1,param_2 + 0xa8,0x10,param_2 + 0xb0,iVar4 + 1), iVar4 != 0)) { return -1; } iVar4 = *(int *)(param_2 + 0xb4); *(int *)(param_2 + 0xb4) = iVar4 + 1; lVar5 = (long)iVar4 * 0x10; puVar1 = (uint *)(*(long *)(param_2 + 0xa8) + lVar5); puVar2 = (int8 *)(*(long *)(param_2 + 0xa8) + lVar5); *puVar2 = 0; puVar2[1] = 0; if (0xdf < (int)param_3) { piVar3 = *(int **)(*(long *)(*(long *)(param_1 + 0x18) + 0x68) + (ulong)param_3 * 8); *piVar3 = *piVar3 + 1; } *puVar1 = param_3; puVar1 = puVar1 + 3; *puVar1 = *puVar1 | 0xffffff00; iVar4 = *(int *)(param_2 + 0xb4) + -1; } else { JS_ThrowSyntaxError(param_1,"too many parameters in function definition (only %d allowed)", 0xfffe); iVar4 = -1; } return iVar4; }
52,885
ma_get_buffer_offset
eloqsql/libmariadb/libmariadb/mariadb_stmt.c
static void *ma_get_buffer_offset(MYSQL_STMT *stmt, enum enum_field_types type, void *buffer, unsigned long row_nr) { if (stmt->param_callback) return buffer; if (stmt->array_size) { int len; if (stmt->row_size) return (void *)((char *)buffer + stmt->row_size * row_nr); len= mysql_ps_fetch_functions[type].pack_len; if (len > 0) return (void *)((char *)buffer + len * row_nr); return ((void **)buffer)[row_nr]; } return buffer; }
O0
c
ma_get_buffer_offset: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x10(%rbp), %rax cmpq $0x0, 0x390(%rax) je 0x2703e movq -0x20(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x270c5 movq -0x10(%rbp), %rax cmpl $0x0, 0x368(%rax) je 0x270bd movq -0x10(%rbp), %rax cmpq $0x0, 0x370(%rax) je 0x27076 movq -0x20(%rbp), %rax movq -0x10(%rbp), %rcx movq 0x370(%rcx), %rcx imulq -0x28(%rbp), %rcx addq %rcx, %rax movq %rax, -0x8(%rbp) jmp 0x270c5 movl -0x14(%rbp), %eax movl %eax, %ecx leaq 0x3937e(%rip), %rax # 0x60400 imulq $0x18, %rcx, %rcx addq %rcx, %rax movl 0x8(%rax), %eax movl %eax, -0x2c(%rbp) cmpl $0x0, -0x2c(%rbp) jle 0x270ab movq -0x20(%rbp), %rax movslq -0x2c(%rbp), %rcx imulq -0x28(%rbp), %rcx addq %rcx, %rax movq %rax, -0x8(%rbp) jmp 0x270c5 movq -0x20(%rbp), %rax movq -0x28(%rbp), %rcx movq (%rax,%rcx,8), %rax movq %rax, -0x8(%rbp) jmp 0x270c5 movq -0x20(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax popq %rbp retq nopl (%rax,%rax)
ma_get_buffer_offset: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov rax, [rbp+var_10] cmp qword ptr [rax+390h], 0 jz short loc_2703E mov rax, [rbp+var_20] mov [rbp+var_8], rax jmp loc_270C5 loc_2703E: mov rax, [rbp+var_10] cmp dword ptr [rax+368h], 0 jz short loc_270BD mov rax, [rbp+var_10] cmp qword ptr [rax+370h], 0 jz short loc_27076 mov rax, [rbp+var_20] mov rcx, [rbp+var_10] mov rcx, [rcx+370h] imul rcx, [rbp+var_28] add rax, rcx mov [rbp+var_8], rax jmp short loc_270C5 loc_27076: mov eax, [rbp+var_14] mov ecx, eax lea rax, mysql_ps_fetch_functions imul rcx, 18h add rax, rcx mov eax, [rax+8] mov [rbp+var_2C], eax cmp [rbp+var_2C], 0 jle short loc_270AB mov rax, [rbp+var_20] movsxd rcx, [rbp+var_2C] imul rcx, [rbp+var_28] add rax, rcx mov [rbp+var_8], rax jmp short loc_270C5 loc_270AB: mov rax, [rbp+var_20] mov rcx, [rbp+var_28] mov rax, [rax+rcx*8] mov [rbp+var_8], rax jmp short loc_270C5 loc_270BD: mov rax, [rbp+var_20] mov [rbp+var_8], rax loc_270C5: mov rax, [rbp+var_8] pop rbp retn
long long ma_get_buffer_offset(long long a1, int a2, long long a3, long long a4) { int v5; // [rsp+0h] [rbp-2Ch] if ( *(_QWORD *)(a1 + 912) ) return a3; if ( !*(_DWORD *)(a1 + 872) ) return a3; if ( *(_QWORD *)(a1 + 880) ) return a4 * *(_QWORD *)(a1 + 880) + a3; v5 = mysql_ps_fetch_functions[6 * a2 + 2]; if ( v5 <= 0 ) return *(_QWORD *)(a3 + 8 * a4); else return a4 * v5 + a3; }
ma_get_buffer_offset: PUSH RBP MOV RBP,RSP 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 RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX + 0x390],0x0 JZ 0x0012703e MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x8],RAX JMP 0x001270c5 LAB_0012703e: MOV RAX,qword ptr [RBP + -0x10] CMP dword ptr [RAX + 0x368],0x0 JZ 0x001270bd MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX + 0x370],0x0 JZ 0x00127076 MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX + 0x370] IMUL RCX,qword ptr [RBP + -0x28] ADD RAX,RCX MOV qword ptr [RBP + -0x8],RAX JMP 0x001270c5 LAB_00127076: MOV EAX,dword ptr [RBP + -0x14] MOV ECX,EAX LEA RAX,[0x160400] IMUL RCX,RCX,0x18 ADD RAX,RCX MOV EAX,dword ptr [RAX + 0x8] MOV dword ptr [RBP + -0x2c],EAX CMP dword ptr [RBP + -0x2c],0x0 JLE 0x001270ab MOV RAX,qword ptr [RBP + -0x20] MOVSXD RCX,dword ptr [RBP + -0x2c] IMUL RCX,qword ptr [RBP + -0x28] ADD RAX,RCX MOV qword ptr [RBP + -0x8],RAX JMP 0x001270c5 LAB_001270ab: MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RBP + -0x8],RAX JMP 0x001270c5 LAB_001270bd: MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x8],RAX LAB_001270c5: MOV RAX,qword ptr [RBP + -0x8] POP RBP RET
long ma_get_buffer_offset(long param_1,uint param_2,long param_3,long param_4) { long local_10; local_10 = param_3; if ((*(long *)(param_1 + 0x390) == 0) && (*(int *)(param_1 + 0x368) != 0)) { if (*(long *)(param_1 + 0x370) == 0) { if ((int)(&DAT_00160408)[(ulong)param_2 * 6] < 1) { local_10 = *(long *)(param_3 + param_4 * 8); } else { local_10 = param_3 + (int)(&DAT_00160408)[(ulong)param_2 * 6] * param_4; } } else { local_10 = param_3 + *(long *)(param_1 + 0x370) * param_4; } } return local_10; }
52,886
MyCTX_nopad::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_nopad)); this->key= key; this->klen= klen; this->source_tail_len= 0; if (ivlen) memcpy(oiv, iv, ivlen); DBUG_ASSERT(ivlen == 0 || ivlen == sizeof(oiv)); int res= MyCTX::init(cipher, encrypt, key, klen, iv, ivlen); EVP_CIPHER_CTX_set_padding(ctx, 0); return res; }
O3
cpp
MyCTX_nopad::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 %rcx, %r12 movl %edx, %r15d movq %rsi, %r13 movq %rdi, %rbx movl 0x10(%rbp), %eax movq %rcx, 0xd0(%rdi) movl %r8d, 0xd8(%rdi) andl $0x0, 0xdc(%rdi) testl %eax, %eax je 0x2ffde leaq 0xe0(%rbx), %rdi movl %eax, %edx movq %r14, %rsi callq 0x29080 testq %r13, %r13 je 0x3002d movq 0xc8(%rbx), %rdi movq %r13, %rsi xorl %edx, %edx movq %r12, %rcx movq %r14, %r8 movl %r15d, %r9d callq 0x29740 cmpl $0x1, %eax pushq $-0x65 popq %r14 movl $0x0, %eax cmovel %eax, %r14d movq 0xc8(%rbx), %rdi xorl %esi, %esi callq 0x293b0 movl %r14d, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq pushq $-0x66 popq %r14 jmp 0x3000d
_ZN11MyCTX_nopad4initEPK13evp_cipher_stiPKhjS4_j: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r14, r9 mov r12, rcx mov r15d, edx mov r13, rsi mov rbx, rdi mov eax, [rbp+arg_0] mov [rdi+0D0h], rcx mov [rdi+0D8h], r8d and dword ptr [rdi+0DCh], 0 test eax, eax jz short loc_2FFDE lea rdi, [rbx+0E0h] mov edx, eax mov rsi, r14 call _memcpy loc_2FFDE: test r13, r13 jz short loc_3002D mov rdi, [rbx+0C8h] mov rsi, r13 xor edx, edx mov rcx, r12 mov r8, r14 mov r9d, r15d call _EVP_CipherInit_ex cmp eax, 1 push 0FFFFFFFFFFFFFF9Bh pop r14 mov eax, 0 cmovz r14d, eax loc_3000D: mov rdi, [rbx+0C8h] xor esi, esi call _EVP_CIPHER_CTX_set_padding mov eax, r14d add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_3002D: push 0FFFFFFFFFFFFFF9Ah pop r14 jmp short loc_3000D
long long MyCTX_nopad::init( long long a1, long long a2, unsigned int a3, long long a4, int a5, long long a6, unsigned int a7) { long long v7; // rax bool v11; // zf unsigned int v12; // r14d long long v14; // [rsp-8h] [rbp-30h] v14 = v7; *(_QWORD *)(a1 + 208) = a4; *(_DWORD *)(a1 + 216) = a5; *(_DWORD *)(a1 + 220) = 0; if ( a7 ) memcpy(a1 + 224, a6, a7); if ( a2 ) { v11 = (unsigned int)EVP_CipherInit_ex(*(_QWORD *)(a1 + 200), a2, 0LL, a4, a6, a3, v14) == 1; v12 = -101; if ( v11 ) v12 = 0; } else { v12 = -102; } EVP_CIPHER_CTX_set_padding(*(_QWORD *)(a1 + 200), 0LL); return v12; }
init: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R14,R9 MOV R12,RCX MOV R15D,EDX MOV R13,RSI MOV RBX,RDI MOV EAX,dword ptr [RBP + 0x10] MOV qword ptr [RDI + 0xd0],RCX MOV dword ptr [RDI + 0xd8],R8D AND dword ptr [RDI + 0xdc],0x0 TEST EAX,EAX JZ 0x0012ffde LEA RDI,[RBX + 0xe0] MOV EDX,EAX MOV RSI,R14 CALL 0x00129080 LAB_0012ffde: TEST R13,R13 JZ 0x0013002d MOV RDI,qword ptr [RBX + 0xc8] MOV RSI,R13 XOR EDX,EDX MOV RCX,R12 MOV R8,R14 MOV R9D,R15D CALL 0x00129740 CMP EAX,0x1 PUSH -0x65 POP R14 MOV EAX,0x0 CMOVZ R14D,EAX LAB_0013000d: MOV RDI,qword ptr [RBX + 0xc8] XOR ESI,ESI CALL 0x001293b0 MOV EAX,R14D ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0013002d: PUSH -0x66 POP R14 JMP 0x0013000d
/* MyCTX_nopad::init(evp_cipher_st const*, int, unsigned char const*, unsigned int, unsigned char const*, unsigned int) */ int4 __thiscall MyCTX_nopad::init(MyCTX_nopad *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; *(uchar **)(this + 0xd0) = param_3; *(uint *)(this + 0xd8) = param_4; *(int4 *)(this + 0xdc) = 0; if (param_6 != 0) { memcpy(this + 0xe0,param_5,(ulong)param_6); } 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; } } EVP_CIPHER_CTX_set_padding(*(EVP_CIPHER_CTX **)(this + 200),0); return uVar2; }
52,887
my_scan_8bit
eloqsql/strings/ctype-simple.c
size_t my_scan_8bit(CHARSET_INFO *cs, const char *str, const char *end, int sq) { const char *str0= str; switch (sq) { case MY_SEQ_INTTAIL: if (*str == '.') { for(str++ ; str != end && *str == '0' ; str++); return (size_t) (str - str0); } return 0; case MY_SEQ_SPACES: for ( ; str < end ; str++) { if (!my_isspace(cs,*str)) break; } return (size_t) (str - str0); case MY_SEQ_NONSPACES: for ( ; str < end ; str++) { if (my_isspace(cs, *str)) break; } return (size_t) (str - str0); default: return 0; } }
O0
c
my_scan_8bit: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x30(%rbp) movl -0x24(%rbp), %eax movl %eax, -0x34(%rbp) subl $0x1, %eax je 0x44327 jmp 0x44308 movl -0x34(%rbp), %eax subl $0x2, %eax je 0x44398 jmp 0x44316 movl -0x34(%rbp), %eax subl $0x3, %eax je 0x443e3 jmp 0x4442e movq -0x18(%rbp), %rax movsbl (%rax), %eax cmpl $0x2e, %eax jne 0x4438b movq -0x18(%rbp), %rax addq $0x1, %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rcx xorl %eax, %eax cmpq -0x20(%rbp), %rcx movb %al, -0x35(%rbp) je 0x4435e movq -0x18(%rbp), %rax movsbl (%rax), %eax cmpl $0x30, %eax sete %al movb %al, -0x35(%rbp) movb -0x35(%rbp), %al testb $0x1, %al jne 0x44367 jmp 0x44377 jmp 0x44369 movq -0x18(%rbp), %rax addq $0x1, %rax movq %rax, -0x18(%rbp) jmp 0x4433f movq -0x18(%rbp), %rax movq -0x30(%rbp), %rcx subq %rcx, %rax movq %rax, -0x8(%rbp) jmp 0x44436 movq $0x0, -0x8(%rbp) jmp 0x44436 jmp 0x4439a movq -0x18(%rbp), %rax cmpq -0x20(%rbp), %rax jae 0x443d2 movq -0x10(%rbp), %rax movq 0x40(%rax), %rax movq -0x18(%rbp), %rcx movzbl (%rcx), %ecx movzbl 0x1(%rax,%rcx), %eax andl $0x8, %eax cmpl $0x0, %eax jne 0x443c2 jmp 0x443d2 jmp 0x443c4 movq -0x18(%rbp), %rax addq $0x1, %rax movq %rax, -0x18(%rbp) jmp 0x4439a movq -0x18(%rbp), %rax movq -0x30(%rbp), %rcx subq %rcx, %rax movq %rax, -0x8(%rbp) jmp 0x44436 jmp 0x443e5 movq -0x18(%rbp), %rax cmpq -0x20(%rbp), %rax jae 0x4441d movq -0x10(%rbp), %rax movq 0x40(%rax), %rax movq -0x18(%rbp), %rcx movzbl (%rcx), %ecx movzbl 0x1(%rax,%rcx), %eax andl $0x8, %eax cmpl $0x0, %eax je 0x4440d jmp 0x4441d jmp 0x4440f movq -0x18(%rbp), %rax addq $0x1, %rax movq %rax, -0x18(%rbp) jmp 0x443e5 movq -0x18(%rbp), %rax movq -0x30(%rbp), %rcx subq %rcx, %rax movq %rax, -0x8(%rbp) jmp 0x44436 movq $0x0, -0x8(%rbp) movq -0x8(%rbp), %rax popq %rbp retq nopl (%rax)
my_scan_8bit: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_24], ecx mov rax, [rbp+var_18] mov [rbp+var_30], rax mov eax, [rbp+var_24] mov [rbp+var_34], eax sub eax, 1 jz short loc_44327 jmp short $+2 loc_44308: mov eax, [rbp+var_34] sub eax, 2 jz loc_44398 jmp short $+2 loc_44316: mov eax, [rbp+var_34] sub eax, 3 jz loc_443E3 jmp loc_4442E loc_44327: mov rax, [rbp+var_18] movsx eax, byte ptr [rax] cmp eax, 2Eh ; '.' jnz short loc_4438B mov rax, [rbp+var_18] add rax, 1 mov [rbp+var_18], rax loc_4433F: mov rcx, [rbp+var_18] xor eax, eax cmp rcx, [rbp+var_20] mov [rbp+var_35], al jz short loc_4435E mov rax, [rbp+var_18] movsx eax, byte ptr [rax] cmp eax, 30h ; '0' setz al mov [rbp+var_35], al loc_4435E: mov al, [rbp+var_35] test al, 1 jnz short loc_44367 jmp short loc_44377 loc_44367: jmp short $+2 loc_44369: mov rax, [rbp+var_18] add rax, 1 mov [rbp+var_18], rax jmp short loc_4433F loc_44377: mov rax, [rbp+var_18] mov rcx, [rbp+var_30] sub rax, rcx mov [rbp+var_8], rax jmp loc_44436 loc_4438B: mov [rbp+var_8], 0 jmp loc_44436 loc_44398: jmp short $+2 loc_4439A: mov rax, [rbp+var_18] cmp rax, [rbp+var_20] jnb short loc_443D2 mov rax, [rbp+var_10] mov rax, [rax+40h] mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx] movzx eax, byte ptr [rax+rcx+1] and eax, 8 cmp eax, 0 jnz short loc_443C2 jmp short loc_443D2 loc_443C2: jmp short $+2 loc_443C4: mov rax, [rbp+var_18] add rax, 1 mov [rbp+var_18], rax jmp short loc_4439A loc_443D2: mov rax, [rbp+var_18] mov rcx, [rbp+var_30] sub rax, rcx mov [rbp+var_8], rax jmp short loc_44436 loc_443E3: jmp short $+2 loc_443E5: mov rax, [rbp+var_18] cmp rax, [rbp+var_20] jnb short loc_4441D mov rax, [rbp+var_10] mov rax, [rax+40h] mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx] movzx eax, byte ptr [rax+rcx+1] and eax, 8 cmp eax, 0 jz short loc_4440D jmp short loc_4441D loc_4440D: jmp short $+2 loc_4440F: mov rax, [rbp+var_18] add rax, 1 mov [rbp+var_18], rax jmp short loc_443E5 loc_4441D: mov rax, [rbp+var_18] mov rcx, [rbp+var_30] sub rax, rcx mov [rbp+var_8], rax jmp short loc_44436 loc_4442E: mov [rbp+var_8], 0 loc_44436: mov rax, [rbp+var_8] pop rbp retn
long long my_scan_8bit(long long a1, unsigned __int8 *a2, unsigned __int8 *a3, int a4) { bool v5; // [rsp+1h] [rbp-35h] unsigned __int8 *v6; // [rsp+1Eh] [rbp-18h] unsigned __int8 *i; // [rsp+1Eh] [rbp-18h] v6 = a2; switch ( a4 ) { case 1: if ( *a2 == 46 ) { for ( i = a2 + 1; ; ++i ) { v5 = 0; if ( i != a3 ) v5 = *i == 48; if ( !v5 ) break; } return i - a2; } else { return 0LL; } case 2: while ( v6 < a3 && (*(_BYTE *)(*(_QWORD *)(a1 + 64) + *v6 + 1LL) & 8) != 0 ) ++v6; return v6 - a2; case 3: while ( v6 < a3 && (*(_BYTE *)(*(_QWORD *)(a1 + 64) + *v6 + 1LL) & 8) == 0 ) ++v6; return v6 - a2; default: return 0LL; } }
my_scan_8bit: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV dword ptr [RBP + -0x24],ECX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x30],RAX MOV EAX,dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x34],EAX SUB EAX,0x1 JZ 0x00144327 JMP 0x00144308 LAB_00144308: MOV EAX,dword ptr [RBP + -0x34] SUB EAX,0x2 JZ 0x00144398 JMP 0x00144316 LAB_00144316: MOV EAX,dword ptr [RBP + -0x34] SUB EAX,0x3 JZ 0x001443e3 JMP 0x0014442e LAB_00144327: MOV RAX,qword ptr [RBP + -0x18] MOVSX EAX,byte ptr [RAX] CMP EAX,0x2e JNZ 0x0014438b MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x1 MOV qword ptr [RBP + -0x18],RAX LAB_0014433f: MOV RCX,qword ptr [RBP + -0x18] XOR EAX,EAX CMP RCX,qword ptr [RBP + -0x20] MOV byte ptr [RBP + -0x35],AL JZ 0x0014435e MOV RAX,qword ptr [RBP + -0x18] MOVSX EAX,byte ptr [RAX] CMP EAX,0x30 SETZ AL MOV byte ptr [RBP + -0x35],AL LAB_0014435e: MOV AL,byte ptr [RBP + -0x35] TEST AL,0x1 JNZ 0x00144367 JMP 0x00144377 LAB_00144367: JMP 0x00144369 LAB_00144369: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x1 MOV qword ptr [RBP + -0x18],RAX JMP 0x0014433f LAB_00144377: MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x30] SUB RAX,RCX MOV qword ptr [RBP + -0x8],RAX JMP 0x00144436 LAB_0014438b: MOV qword ptr [RBP + -0x8],0x0 JMP 0x00144436 LAB_00144398: JMP 0x0014439a LAB_0014439a: MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x20] JNC 0x001443d2 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x40] MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX] MOVZX EAX,byte ptr [RAX + RCX*0x1 + 0x1] AND EAX,0x8 CMP EAX,0x0 JNZ 0x001443c2 JMP 0x001443d2 LAB_001443c2: JMP 0x001443c4 LAB_001443c4: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x1 MOV qword ptr [RBP + -0x18],RAX JMP 0x0014439a LAB_001443d2: MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x30] SUB RAX,RCX MOV qword ptr [RBP + -0x8],RAX JMP 0x00144436 LAB_001443e3: JMP 0x001443e5 LAB_001443e5: MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x20] JNC 0x0014441d MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x40] MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX] MOVZX EAX,byte ptr [RAX + RCX*0x1 + 0x1] AND EAX,0x8 CMP EAX,0x0 JZ 0x0014440d JMP 0x0014441d LAB_0014440d: JMP 0x0014440f LAB_0014440f: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x1 MOV qword ptr [RBP + -0x18],RAX JMP 0x001443e5 LAB_0014441d: MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x30] SUB RAX,RCX MOV qword ptr [RBP + -0x8],RAX JMP 0x00144436 LAB_0014442e: MOV qword ptr [RBP + -0x8],0x0 LAB_00144436: MOV RAX,qword ptr [RBP + -0x8] POP RBP RET
long my_scan_8bit(long param_1,byte *param_2,byte *param_3,int param_4) { bool bVar1; byte *local_20; long local_10; if (param_4 == 1) { if (*param_2 == 0x2e) { local_20 = param_2 + 1; while( true ) { bVar1 = false; if (local_20 != param_3) { bVar1 = *local_20 == 0x30; } if (!bVar1) break; local_20 = local_20 + 1; } local_10 = (long)local_20 - (long)param_2; } else { local_10 = 0; } } else { local_20 = param_2; if (param_4 == 2) { while ((local_20 < param_3 && ((*(byte *)(*(long *)(param_1 + 0x40) + 1 + (ulong)*local_20) & 8) != 0))) { local_20 = local_20 + 1; } local_10 = (long)local_20 - (long)param_2; } else if (param_4 == 3) { while ((local_20 < param_3 && ((*(byte *)(*(long *)(param_1 + 0x40) + 1 + (ulong)*local_20) & 8) == 0))) { local_20 = local_20 + 1; } local_10 = (long)local_20 - (long)param_2; } else { local_10 = 0; } } return local_10; }
52,888
minja::IfNode::do_render(std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, std::shared_ptr<minja::Context> const&) const
monkey531[P]llama/common/minja.hpp
void do_render(std::ostringstream & out, const std::shared_ptr<Context> & context) const override { for (const auto& branch : cascade) { auto enter_branch = true; if (branch.first) { enter_branch = branch.first->evaluate(context).to_bool(); } if (enter_branch) { if (!branch.second) throw std::runtime_error("IfNode.cascade.second is null"); branch.second->render(out, context); return; } } }
O1
cpp
minja::IfNode::do_render(std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, std::shared_ptr<minja::Context> const&) const: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movq %rsi, (%rsp) movq 0x20(%rdi), %r13 movq 0x28(%rdi), %r14 cmpq %r14, %r13 je 0xa02ea movq %rdx, %rbx leaq 0x48(%rsp), %r15 leaq 0x8(%rsp), %r12 cmpq $0x0, (%r13) je 0xa0294 movq (%r13), %rsi movq %r12, %rdi movq %rbx, %rdx callq 0x8bff6 movq %r12, %rdi callq 0x8c1f8 movl %eax, %ebp movq %r15, %rdi xorl %esi, %esi callq 0x6adae movq %r15, %rdi callq 0x70460 movq 0x40(%rsp), %rdi testq %rdi, %rdi je 0xa0255 callq 0x33c28 movq 0x30(%rsp), %rdi testq %rdi, %rdi je 0xa0264 callq 0x33c28 movq 0x20(%rsp), %rdi testq %rdi, %rdi je 0xa0273 callq 0x33c28 movq 0x10(%rsp), %rdi testq %rdi, %rdi je 0xa02ae movq 0x93cfc(%rip), %rax # 0x133f80 cmpb $0x0, (%rax) je 0xa0299 movl 0xc(%rdi), %eax leal -0x1(%rax), %ecx movl %ecx, 0xc(%rdi) jmp 0xa02a3 movb $0x1, %bpl jmp 0xa02ae movl $0xffffffff, %eax # imm = 0xFFFFFFFF lock xaddl %eax, 0xc(%rdi) cmpl $0x1, %eax jne 0xa02ae movq (%rdi), %rax callq *0x18(%rax) testb %bpl, %bpl je 0xa02dd movq 0x10(%r13), %rdi testq %rdi, %rdi je 0xa02f9 movq (%rsp), %rsi movq %rbx, %rdx callq 0xa03ce addq $0x20, %r13 cmpq %r14, %r13 sete %al orb %al, %bpl je 0xa0214 jmp 0xa02ea addq $0x20, %r13 cmpq %r14, %r13 jne 0xa0214 addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0x10, %edi callq 0x1b450 movq %rax, %rbx leaq 0x5893f(%rip), %rsi # 0xf8c4c movq %rax, %rdi callq 0x1b330 movq 0x93ccc(%rip), %rsi # 0x133fe8 movq 0x93c35(%rip), %rdx # 0x133f58 movq %rbx, %rdi callq 0x1bf60 movq %rax, %r14 movq %rbx, %rdi callq 0x1b690 jmp 0xa0345 movq %rax, %r14 leaq 0x8(%rsp), %rdi callq 0x8c2ec movq %r14, %rdi callq 0x1bff0 nop
_ZNK5minja6IfNode9do_renderERNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEERKSt10shared_ptrINS_7ContextEE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 58h mov [rsp+88h+var_88], rsi mov r13, [rdi+20h] mov r14, [rdi+28h] cmp r13, r14 jz loc_A02EA mov rbx, rdx lea r15, [rsp+88h+var_40] lea r12, [rsp+88h+var_80] loc_A0214: cmp qword ptr [r13+0], 0 jz short loc_A0294 mov rsi, [r13+0] mov rdi, r12 mov rdx, rbx call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&) mov rdi, r12; this call _ZNK5minja5Value7to_boolEv; minja::Value::to_bool(void) mov ebp, eax 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 rdi, [rsp+88h+var_48] test rdi, rdi jz short loc_A0255 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_A0255: mov rdi, [rsp+88h+var_58] test rdi, rdi jz short loc_A0264 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_A0264: mov rdi, [rsp+88h+var_68] test rdi, rdi jz short loc_A0273 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_A0273: mov rdi, [rsp+88h+var_78] test rdi, rdi jz short loc_A02AE mov rax, cs:__libc_single_threaded_ptr cmp byte ptr [rax], 0 jz short loc_A0299 mov eax, [rdi+0Ch] lea ecx, [rax-1] mov [rdi+0Ch], ecx jmp short loc_A02A3 loc_A0294: mov bpl, 1 jmp short loc_A02AE loc_A0299: mov eax, 0FFFFFFFFh lock xadd [rdi+0Ch], eax loc_A02A3: cmp eax, 1 jnz short loc_A02AE mov rax, [rdi] call qword ptr [rax+18h] loc_A02AE: test bpl, bpl jz short loc_A02DD mov rdi, [r13+10h] test rdi, rdi jz short loc_A02F9 mov rsi, [rsp+88h+var_88] mov rdx, rbx call _ZNK5minja12TemplateNode6renderERNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEERKSt10shared_ptrINS_7ContextEE; minja::TemplateNode::render(std::ostringstream &,std::shared_ptr<minja::Context> const&) add r13, 20h ; ' ' cmp r13, r14 setz al or bpl, al jz loc_A0214 jmp short loc_A02EA loc_A02DD: add r13, 20h ; ' ' cmp r13, r14 jnz loc_A0214 loc_A02EA: add rsp, 58h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_A02F9: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rsi, aIfnodeCascadeS; "IfNode.cascade.second is null" mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax mov rdi, rbx; void * call ___cxa_free_exception jmp short loc_A0345 mov r14, rax lea rdi, [rsp+88h+var_80]; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() loc_A0345: mov rdi, r14 call __Unwind_Resume
do_render: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x58 MOV qword ptr [RSP],RSI MOV R13,qword ptr [RDI + 0x20] MOV R14,qword ptr [RDI + 0x28] CMP R13,R14 JZ 0x001a02ea MOV RBX,RDX LEA R15,[RSP + 0x48] LEA R12,[RSP + 0x8] LAB_001a0214: CMP qword ptr [R13],0x0 JZ 0x001a0294 MOV RSI,qword ptr [R13] MOV RDI,R12 MOV RDX,RBX CALL 0x0018bff6 LAB_001a022a: MOV RDI,R12 CALL 0x0018c1f8 LAB_001a0232: MOV EBP,EAX MOV RDI,R15 XOR ESI,ESI CALL 0x0016adae MOV RDI,R15 CALL 0x00170460 MOV RDI,qword ptr [RSP + 0x40] TEST RDI,RDI JZ 0x001a0255 CALL 0x00133c28 LAB_001a0255: MOV RDI,qword ptr [RSP + 0x30] TEST RDI,RDI JZ 0x001a0264 CALL 0x00133c28 LAB_001a0264: MOV RDI,qword ptr [RSP + 0x20] TEST RDI,RDI JZ 0x001a0273 CALL 0x00133c28 LAB_001a0273: MOV RDI,qword ptr [RSP + 0x10] TEST RDI,RDI JZ 0x001a02ae MOV RAX,qword ptr [0x00233f80] CMP byte ptr [RAX],0x0 JZ 0x001a0299 MOV EAX,dword ptr [RDI + 0xc] LEA ECX,[RAX + -0x1] MOV dword ptr [RDI + 0xc],ECX JMP 0x001a02a3 LAB_001a0294: MOV BPL,0x1 JMP 0x001a02ae LAB_001a0299: MOV EAX,0xffffffff XADD.LOCK dword ptr [RDI + 0xc],EAX LAB_001a02a3: CMP EAX,0x1 JNZ 0x001a02ae MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x18] LAB_001a02ae: TEST BPL,BPL JZ 0x001a02dd MOV RDI,qword ptr [R13 + 0x10] TEST RDI,RDI JZ 0x001a02f9 MOV RSI,qword ptr [RSP] MOV RDX,RBX CALL 0x001a03ce ADD R13,0x20 CMP R13,R14 SETZ AL OR BPL,AL JZ 0x001a0214 JMP 0x001a02ea LAB_001a02dd: ADD R13,0x20 CMP R13,R14 JNZ 0x001a0214 LAB_001a02ea: ADD RSP,0x58 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001a02f9: MOV EDI,0x10 CALL 0x0011b450 MOV RBX,RAX LAB_001a0306: LEA RSI,[0x1f8c4c] MOV RDI,RAX CALL 0x0011b330 LAB_001a0315: MOV RSI,qword ptr [0x00233fe8] MOV RDX,qword ptr [0x00233f58] MOV RDI,RBX CALL 0x0011bf60
/* minja::IfNode::do_render(std::__cxx11::ostringstream&, std::shared_ptr<minja::Context> const&) const */ void minja::IfNode::do_render(ostringstream *param_1,shared_ptr *param_2) { int *piVar1; long *plVar2; char cVar3; int iVar4; runtime_error *this; long *plVar5; Expression local_80 [8]; long *local_78; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_68; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_58; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_48; data local_40 [16]; plVar5 = *(long **)(param_1 + 0x20); plVar2 = *(long **)(param_1 + 0x28); if (plVar5 != plVar2) { do { while( true ) { if (*plVar5 == 0) { cVar3 = '\x01'; } else { Expression::evaluate(local_80,(shared_ptr *)*plVar5); /* try { // try from 001a022a to 001a0231 has its CatchHandler @ 001a0338 */ cVar3 = Value::to_bool((Value *)local_80); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(local_40,0)); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_40); if (local_48 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_48); } if (local_58 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_58); } if (local_68 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_68); } if (local_78 != (long *)0x0) { if (*PTR___libc_single_threaded_00233f80 == '\0') { LOCK(); piVar1 = (int *)((long)local_78 + 0xc); iVar4 = *piVar1; *piVar1 = *piVar1 + -1; UNLOCK(); } else { iVar4 = *(int *)((long)local_78 + 0xc); *(int *)((long)local_78 + 0xc) = iVar4 + -1; } if (iVar4 == 1) { (**(code **)(*local_78 + 0x18))(); } } } if (cVar3 == '\0') break; if ((ostringstream *)plVar5[2] == (ostringstream *)0x0) { this = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001a0306 to 001a0314 has its CatchHandler @ 001a032b */ std::runtime_error::runtime_error(this,"IfNode.cascade.second is null"); /* WARNING: Subroutine does not return */ __cxa_throw(this,PTR_typeinfo_00233fe8,PTR__runtime_error_00233f58); } TemplateNode::render((ostringstream *)plVar5[2],param_2); plVar5 = plVar5 + 4; if (cVar3 != '\0' || plVar5 == plVar2) { return; } } plVar5 = plVar5 + 4; } while (plVar5 != plVar2); } return; }
52,889
minja::IfNode::do_render(std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, std::shared_ptr<minja::Context> const&) const
monkey531[P]llama/common/minja.hpp
void do_render(std::ostringstream & out, const std::shared_ptr<Context> & context) const override { for (const auto& branch : cascade) { auto enter_branch = true; if (branch.first) { enter_branch = branch.first->evaluate(context).to_bool(); } if (enter_branch) { if (!branch.second) throw std::runtime_error("IfNode.cascade.second is null"); branch.second->render(out, context); return; } } }
O2
cpp
minja::IfNode::do_render(std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, std::shared_ptr<minja::Context> const&) const: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movq %rdx, %rbx movq %rsi, %r14 movq 0x20(%rdi), %r12 movq 0x28(%rdi), %r13 leaq 0x8(%rsp), %r15 cmpq %r13, %r12 je 0x77ae2 movq (%r12), %rsi testq %rsi, %rsi je 0x77acd movq %r15, %rdi movq %rbx, %rdx callq 0x67744 movq %r15, %rdi callq 0x6791a movl %eax, %ebp movq %r15, %rdi callq 0x679d4 testb %bpl, %bpl jne 0x77acd addq $0x20, %r12 jmp 0x77a97 movq 0x10(%r12), %rdi testq %rdi, %rdi je 0x77af1 movq %r14, %rsi movq %rbx, %rdx callq 0x77b80 addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq pushq $0x10 popq %rdi callq 0x24470 movq %rax, %rbx leaq 0x42149(%rip), %rsi # 0xb9c4c movq %rax, %rdi callq 0x24330 movq 0x8c4de(%rip), %rsi # 0x103ff0 movq 0x8c43f(%rip), %rdx # 0x103f58 movq %rbx, %rdi callq 0x24f50 movq %rax, %r14 movq %rbx, %rdi callq 0x246b0 jmp 0x77b3b movq %rax, %r14 leaq 0x8(%rsp), %rdi callq 0x679d4 movq %r14, %rdi callq 0x24fe0 nop
_ZNK5minja6IfNode9do_renderERNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEERKSt10shared_ptrINS_7ContextEE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 58h mov rbx, rdx mov r14, rsi mov r12, [rdi+20h] mov r13, [rdi+28h] lea r15, [rsp+88h+var_80] loc_77A97: cmp r12, r13 jz short loc_77AE2 mov rsi, [r12] test rsi, rsi jz short loc_77ACD mov rdi, r15 mov rdx, rbx call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&) mov rdi, r15; this call _ZNK5minja5Value7to_boolEv; minja::Value::to_bool(void) mov ebp, eax mov rdi, r15; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() test bpl, bpl jnz short loc_77ACD add r12, 20h ; ' ' jmp short loc_77A97 loc_77ACD: mov rdi, [r12+10h] test rdi, rdi jz short loc_77AF1 mov rsi, r14 mov rdx, rbx call _ZNK5minja12TemplateNode6renderERNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEERKSt10shared_ptrINS_7ContextEE; minja::TemplateNode::render(std::ostringstream &,std::shared_ptr<minja::Context> const&) loc_77AE2: add rsp, 58h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_77AF1: push 10h pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rsi, aIfnodeCascadeS; "IfNode.cascade.second is null" mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax mov rdi, rbx; void * call ___cxa_free_exception jmp short loc_77B3B mov r14, rax lea rdi, [rsp+88h+var_80]; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() loc_77B3B: mov rdi, r14 call __Unwind_Resume
void minja::IfNode::do_render(long long a1, int a2, int a3, int a4, int a5, int a6) { long long v7; // r12 long long v8; // r13 char v9; // bp long long v10; // rdi std::runtime_error *exception; // rbx _BYTE v12[128]; // [rsp+8h] [rbp-80h] BYREF v7 = *(_QWORD *)(a1 + 32); v8 = *(_QWORD *)(a1 + 40); while ( v7 != v8 ) { if ( !*(_QWORD *)v7 || (minja::Expression::evaluate((long long)v12, *(void (****)(void))v7), v9 = minja::Value::to_bool((minja::Value *)v12), minja::Value::~Value((minja::Value *)v12), v9) ) { v10 = *(_QWORD *)(v7 + 16); if ( !v10 ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "IfNode.cascade.second is null"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } minja::TemplateNode::render(v10, a2, a3, a4, a5, a6); return; } v7 += 32LL; } }
do_render: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x58 MOV RBX,RDX MOV R14,RSI MOV R12,qword ptr [RDI + 0x20] MOV R13,qword ptr [RDI + 0x28] LEA R15,[RSP + 0x8] LAB_00177a97: CMP R12,R13 JZ 0x00177ae2 MOV RSI,qword ptr [R12] TEST RSI,RSI JZ 0x00177acd MOV RDI,R15 MOV RDX,RBX CALL 0x00167744 LAB_00177ab0: MOV RDI,R15 CALL 0x0016791a LAB_00177ab8: MOV EBP,EAX MOV RDI,R15 CALL 0x001679d4 TEST BPL,BPL JNZ 0x00177acd ADD R12,0x20 JMP 0x00177a97 LAB_00177acd: MOV RDI,qword ptr [R12 + 0x10] TEST RDI,RDI JZ 0x00177af1 MOV RSI,R14 MOV RDX,RBX CALL 0x00177b80 LAB_00177ae2: ADD RSP,0x58 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00177af1: PUSH 0x10 POP RDI CALL 0x00124470 MOV RBX,RAX LAB_00177afc: LEA RSI,[0x1b9c4c] MOV RDI,RAX CALL 0x00124330 LAB_00177b0b: MOV RSI,qword ptr [0x00203ff0] MOV RDX,qword ptr [0x00203f58] MOV RDI,RBX CALL 0x00124f50
/* minja::IfNode::do_render(std::__cxx11::ostringstream&, std::shared_ptr<minja::Context> const&) const */ void minja::IfNode::do_render(ostringstream *param_1,shared_ptr *param_2) { int8 *puVar1; char cVar2; runtime_error *this; int8 *puVar3; Expression local_80 [80]; puVar3 = *(int8 **)(param_1 + 0x20); puVar1 = *(int8 **)(param_1 + 0x28); while( true ) { if (puVar3 == puVar1) { return; } if ((shared_ptr *)*puVar3 == (shared_ptr *)0x0) break; Expression::evaluate(local_80,(shared_ptr *)*puVar3); /* try { // try from 00177ab0 to 00177ab7 has its CatchHandler @ 00177b2e */ cVar2 = Value::to_bool((Value *)local_80); Value::~Value((Value *)local_80); if (cVar2 != '\0') break; puVar3 = puVar3 + 4; } if ((ostringstream *)puVar3[2] != (ostringstream *)0x0) { TemplateNode::render((ostringstream *)puVar3[2],param_2); return; } this = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 00177afc to 00177b0a has its CatchHandler @ 00177b21 */ std::runtime_error::runtime_error(this,"IfNode.cascade.second is null"); /* WARNING: Subroutine does not return */ __cxa_throw(this,PTR_typeinfo_00203ff0,PTR__runtime_error_00203f58); }
52,890
lunasvg::parseDeclarations(std::basic_string_view<char, std::char_traits<char>>&, std::vector<lunasvg::Declaration, std::allocator<lunasvg::Declaration>>&)
dmazzella[P]pylunasvg/lunasvg/source/svgparser.cpp
static bool parseDeclarations(std::string_view& input, DeclarationList& declarations) { if(!skipDelimiter(input, '{')) return false; skipOptionalSpaces(input); do { std::string name; if(!readCSSIdentifier(input, name)) return false; skipOptionalSpaces(input); if(!skipDelimiter(input, ':')) return false; skipOptionalSpaces(input); std::string_view value(input); while(!input.empty() && !(input.front() == '!' || input.front() == ';' || input.front() == '}')) input.remove_prefix(1); value.remove_suffix(input.length()); stripTrailingSpaces(value); Declaration declaration; declaration.specificity = 0x10; declaration.id = csspropertyid(name); declaration.value.assign(value); if(skipDelimiter(input, '!')) { skipOptionalSpaces(input); if(!skipString(input, "important")) return false; declaration.specificity = 0x1000; } if(declaration.id != PropertyID::Unknown) declarations.push_back(std::move(declaration)); skipOptionalSpacesOrDelimiter(input, ';'); } while(!input.empty() && input.front() != '}'); return skipDelimiter(input, '}'); }
O0
cpp
lunasvg::parseDeclarations(std::basic_string_view<char, std::char_traits<char>>&, std::vector<lunasvg::Declaration, std::allocator<lunasvg::Declaration>>&): pushq %rbp movq %rsp, %rbp subq $0xe0, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rdi movl $0x7b, %esi callq 0x33420 testb $0x1, %al jne 0x3d0de movb $0x0, -0x1(%rbp) jmp 0x3d3d4 movq -0x10(%rbp), %rdi callq 0x332b0 leaq -0x38(%rbp), %rdi movq %rdi, -0xb0(%rbp) callq 0xb520 movq -0xb0(%rbp), %rsi movq -0x10(%rbp), %rdi callq 0x3fbe0 movb %al, -0xa1(%rbp) jmp 0x3d10f movb -0xa1(%rbp), %al testb $0x1, %al jne 0x3d13c jmp 0x3d11b movb $0x0, -0x1(%rbp) movl $0x1, -0x48(%rbp) jmp 0x3d360 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x40(%rbp) movl %eax, -0x44(%rbp) jmp 0x3d3c9 movq -0x10(%rbp), %rdi callq 0x332b0 movq -0x10(%rbp), %rdi movl $0x3a, %esi callq 0x33420 testb $0x1, %al jne 0x3d167 movb $0x0, -0x1(%rbp) movl $0x1, -0x48(%rbp) jmp 0x3d360 movq -0x10(%rbp), %rdi callq 0x332b0 movq -0x10(%rbp), %rax movq (%rax), %rcx movq %rcx, -0x58(%rbp) movq 0x8(%rax), %rax movq %rax, -0x50(%rbp) movq -0x10(%rbp), %rdi callq 0x20620 movb %al, %cl xorl %eax, %eax testb $0x1, %cl movb %al, -0xb1(%rbp) jne 0x3d1f3 movq -0x10(%rbp), %rdi callq 0x20640 movsbl (%rax), %ecx movb $0x1, %al cmpl $0x21, %ecx movb %al, -0xb2(%rbp) je 0x3d1e5 movq -0x10(%rbp), %rdi callq 0x20640 movsbl (%rax), %ecx movb $0x1, %al cmpl $0x3b, %ecx movb %al, -0xb2(%rbp) je 0x3d1e5 movq -0x10(%rbp), %rdi callq 0x20640 movsbl (%rax), %eax cmpl $0x7d, %eax sete %al movb %al, -0xb2(%rbp) movb -0xb2(%rbp), %al xorb $-0x1, %al movb %al, -0xb1(%rbp) movb -0xb1(%rbp), %al testb $0x1, %al jne 0x3d1ff jmp 0x3d212 movq -0x10(%rbp), %rdi movl $0x1, %esi callq 0x231b0 jmp 0x3d183 movq -0x10(%rbp), %rdi callq 0x23210 movq %rax, %rsi leaq -0x58(%rbp), %rdi movq %rdi, -0xc0(%rbp) callq 0x33140 movq -0xc0(%rbp), %rdi callq 0x331c0 jmp 0x3d23c leaq -0x80(%rbp), %rdi callq 0x43410 movl $0x10, -0x80(%rbp) leaq -0x38(%rbp), %rdi callq 0xb3e0 movq %rax, -0x90(%rbp) movq %rdx, -0x88(%rbp) leaq -0x90(%rbp), %rdi callq 0x49080 movb %al, -0xc1(%rbp) jmp 0x3d277 movb -0xc1(%rbp), %al movb %al, -0x7c(%rbp) leaq -0x78(%rbp), %rdi leaq -0x58(%rbp), %rsi callq 0x330b0 jmp 0x3d28f movq -0x10(%rbp), %rdi movl $0x21, %esi callq 0x33420 testb $0x1, %al jne 0x3d2a6 jmp 0x3d32b movq -0x10(%rbp), %rdi callq 0x332b0 movq -0x10(%rbp), %rax movq %rax, -0xd8(%rbp) leaq 0x4fbf1(%rip), %rsi # 0x8ceb2 leaq -0xa0(%rbp), %rdi movq %rdi, -0xd0(%rbp) callq 0x33260 movq -0xd8(%rbp), %rdi movq -0xd0(%rbp), %rsi callq 0x33360 movb %al, -0xc2(%rbp) jmp 0x3d2ef movb -0xc2(%rbp), %al xorb $-0x1, %al testb $0x1, %al jne 0x3d2fd jmp 0x3d324 movb $0x0, -0x1(%rbp) movl $0x1, -0x48(%rbp) jmp 0x3d357 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x40(%rbp) movl %eax, -0x44(%rbp) leaq -0x80(%rbp), %rdi callq 0x43460 jmp 0x3d3c9 movl $0x1000, -0x80(%rbp) # imm = 0x1000 cmpb $0x0, -0x7c(%rbp) je 0x3d342 movq -0x18(%rbp), %rdi leaq -0x80(%rbp), %rsi callq 0x43430 jmp 0x3d340 jmp 0x3d342 movq -0x10(%rbp), %rdi movl $0x3b, %esi callq 0x34820 movl $0x0, -0x48(%rbp) leaq -0x80(%rbp), %rdi callq 0x43460 leaq -0x38(%rbp), %rdi callq 0xb7a8 movl -0x48(%rbp), %eax testl %eax, %eax je 0x3d374 jmp 0x3d372 jmp 0x3d3d4 jmp 0x3d376 movq -0x10(%rbp), %rdi callq 0x20620 movb %al, %cl xorl %eax, %eax testb $0x1, %cl movb %al, -0xd9(%rbp) jne 0x3d3a6 movq -0x10(%rbp), %rdi callq 0x20640 movsbl (%rax), %eax cmpl $0x7d, %eax setne %al movb %al, -0xd9(%rbp) movb -0xd9(%rbp), %al testb $0x1, %al jne 0x3d0e7 movq -0x10(%rbp), %rdi movl $0x7d, %esi callq 0x33420 andb $0x1, %al movb %al, -0x1(%rbp) jmp 0x3d3d4 leaq -0x38(%rbp), %rdi callq 0xb7a8 jmp 0x3d3e2 movb -0x1(%rbp), %al andb $0x1, %al addq $0xe0, %rsp popq %rbp retq movq -0x40(%rbp), %rdi callq 0xb6c0 nopl (%rax,%rax)
_ZN7lunasvgL17parseDeclarationsERSt17basic_string_viewIcSt11char_traitsIcEERSt6vectorINS_11DeclarationESaIS6_EE: push rbp mov rbp, rsp sub rsp, 0E0h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rdi, [rbp+var_10] mov esi, 7Bh ; '{' call _ZN7lunasvg13skipDelimiterERSt17basic_string_viewIcSt11char_traitsIcEEc; lunasvg::skipDelimiter(std::string_view &,char) test al, 1 jnz short loc_3D0DE mov [rbp+var_1], 0 jmp loc_3D3D4 loc_3D0DE: mov rdi, [rbp+var_10] call _ZN7lunasvg18skipOptionalSpacesERSt17basic_string_viewIcSt11char_traitsIcEE; lunasvg::skipOptionalSpaces(std::string_view &) loc_3D0E7: lea rdi, [rbp+var_38] mov [rbp+var_B0], rdi call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev; std::string::basic_string(void) mov rsi, [rbp+var_B0] mov rdi, [rbp+var_10] call _ZN7lunasvg17readCSSIdentifierERSt17basic_string_viewIcSt11char_traitsIcEERNSt7__cxx1112basic_stringIcS2_SaIcEEE; lunasvg::readCSSIdentifier(std::string_view &,std::string &) mov [rbp+var_A1], al jmp short $+2 loc_3D10F: mov al, [rbp+var_A1] test al, 1 jnz short loc_3D13C jmp short $+2 loc_3D11B: mov [rbp+var_1], 0 mov [rbp+var_48], 1 jmp loc_3D360 mov rcx, rax mov eax, edx mov [rbp+var_40], rcx mov [rbp+var_44], eax jmp loc_3D3C9 loc_3D13C: mov rdi, [rbp+var_10] call _ZN7lunasvg18skipOptionalSpacesERSt17basic_string_viewIcSt11char_traitsIcEE; lunasvg::skipOptionalSpaces(std::string_view &) mov rdi, [rbp+var_10] mov esi, 3Ah ; ':' call _ZN7lunasvg13skipDelimiterERSt17basic_string_viewIcSt11char_traitsIcEEc; lunasvg::skipDelimiter(std::string_view &,char) test al, 1 jnz short loc_3D167 mov [rbp+var_1], 0 mov [rbp+var_48], 1 jmp loc_3D360 loc_3D167: mov rdi, [rbp+var_10] call _ZN7lunasvg18skipOptionalSpacesERSt17basic_string_viewIcSt11char_traitsIcEE; lunasvg::skipOptionalSpaces(std::string_view &) mov rax, [rbp+var_10] mov rcx, [rax] mov [rbp+var_58], rcx mov rax, [rax+8] mov [rbp+var_50], rax loc_3D183: mov rdi, [rbp+var_10] call _ZNKSt17basic_string_viewIcSt11char_traitsIcEE5emptyEv; std::string_view::empty(void) mov cl, al xor eax, eax test cl, 1 mov [rbp+var_B1], al jnz short loc_3D1F3 mov rdi, [rbp+var_10] call _ZNKSt17basic_string_viewIcSt11char_traitsIcEE5frontEv; std::string_view::front(void) movsx ecx, byte ptr [rax] mov al, 1 cmp ecx, 21h ; '!' mov [rbp+var_B2], al jz short loc_3D1E5 mov rdi, [rbp+var_10] call _ZNKSt17basic_string_viewIcSt11char_traitsIcEE5frontEv; std::string_view::front(void) movsx ecx, byte ptr [rax] mov al, 1 cmp ecx, 3Bh ; ';' mov [rbp+var_B2], al jz short loc_3D1E5 mov rdi, [rbp+var_10] call _ZNKSt17basic_string_viewIcSt11char_traitsIcEE5frontEv; std::string_view::front(void) movsx eax, byte ptr [rax] cmp eax, 7Dh ; '}' setz al mov [rbp+var_B2], al loc_3D1E5: mov al, [rbp+var_B2] xor al, 0FFh mov [rbp+var_B1], al loc_3D1F3: mov al, [rbp+var_B1] test al, 1 jnz short loc_3D1FF jmp short loc_3D212 loc_3D1FF: mov rdi, [rbp+var_10] mov esi, 1 call _ZNSt17basic_string_viewIcSt11char_traitsIcEE13remove_prefixEm; std::string_view::remove_prefix(ulong) jmp loc_3D183 loc_3D212: mov rdi, [rbp+var_10] call _ZNKSt17basic_string_viewIcSt11char_traitsIcEE6lengthEv; std::string_view::length(void) mov rsi, rax lea rdi, [rbp+var_58] mov [rbp+var_C0], rdi call _ZNSt17basic_string_viewIcSt11char_traitsIcEE13remove_suffixEm; std::string_view::remove_suffix(ulong) mov rdi, [rbp+var_C0] call _ZN7lunasvg19stripTrailingSpacesERSt17basic_string_viewIcSt11char_traitsIcEE; lunasvg::stripTrailingSpaces(std::string_view &) jmp short $+2 loc_3D23C: lea rdi, [rbp+var_80]; this call _ZN7lunasvg11DeclarationC2Ev; lunasvg::Declaration::Declaration(void) mov [rbp+var_80], 10h lea rdi, [rbp+var_38] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv; std::string::operator std::string_view(void) mov [rbp+var_90], rax mov [rbp+var_88], rdx lea rdi, [rbp+var_90] call _ZN7lunasvg13csspropertyidERKSt17basic_string_viewIcSt11char_traitsIcEE; lunasvg::csspropertyid(std::string_view const&) mov [rbp+var_C1], al jmp short $+2 loc_3D277: mov al, [rbp+var_C1] mov [rbp+var_7C], al lea rdi, [rbp+var_78] lea rsi, [rbp+var_58] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignISt17basic_string_viewIcS2_EEENSt9enable_ifIXsr6__and_ISt14is_convertibleIRKT_S7_ESt6__not_IS9_IPSB_PKS4_EESE_IS9_ISC_PKcEEEE5valueERS4_E4typeESC_ jmp short $+2 loc_3D28F: mov rdi, [rbp+var_10] mov esi, 21h ; '!' call _ZN7lunasvg13skipDelimiterERSt17basic_string_viewIcSt11char_traitsIcEEc; lunasvg::skipDelimiter(std::string_view &,char) test al, 1 jnz short loc_3D2A6 jmp loc_3D32B loc_3D2A6: mov rdi, [rbp+var_10] call _ZN7lunasvg18skipOptionalSpacesERSt17basic_string_viewIcSt11char_traitsIcEE; lunasvg::skipOptionalSpaces(std::string_view &) mov rax, [rbp+var_10] mov [rbp+var_D8], rax lea rsi, aImportant; "important" lea rdi, [rbp+var_A0] mov [rbp+var_D0], rdi call _ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc; std::string_view::basic_string_view(char const*) mov rdi, [rbp+var_D8] mov rsi, [rbp+var_D0] call _ZN7lunasvg10skipStringERSt17basic_string_viewIcSt11char_traitsIcEERKS3_; lunasvg::skipString(std::string_view &,std::string_view const&) mov [rbp+var_C2], al jmp short $+2 loc_3D2EF: mov al, [rbp+var_C2] xor al, 0FFh test al, 1 jnz short loc_3D2FD jmp short loc_3D324 loc_3D2FD: mov [rbp+var_1], 0 mov [rbp+var_48], 1 jmp short loc_3D357 mov rcx, rax mov eax, edx mov [rbp+var_40], rcx mov [rbp+var_44], eax lea rdi, [rbp+var_80]; this call _ZN7lunasvg11DeclarationD2Ev; lunasvg::Declaration::~Declaration() jmp loc_3D3C9 loc_3D324: mov [rbp+var_80], 1000h loc_3D32B: cmp [rbp+var_7C], 0 jz short loc_3D342 mov rdi, [rbp+var_18] lea rsi, [rbp+var_80] call _ZNSt6vectorIN7lunasvg11DeclarationESaIS1_EE9push_backEOS1_; std::vector<lunasvg::Declaration>::push_back(lunasvg::Declaration&&) jmp short $+2 loc_3D340: jmp short $+2 loc_3D342: mov rdi, [rbp+var_10] mov esi, 3Bh ; ';' call _ZN7lunasvg29skipOptionalSpacesOrDelimiterERSt17basic_string_viewIcSt11char_traitsIcEEc; lunasvg::skipOptionalSpacesOrDelimiter(std::string_view &,char) mov [rbp+var_48], 0 loc_3D357: lea rdi, [rbp+var_80]; this call _ZN7lunasvg11DeclarationD2Ev; lunasvg::Declaration::~Declaration() loc_3D360: lea rdi, [rbp+var_38]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov eax, [rbp+var_48] test eax, eax jz short loc_3D374 jmp short $+2 loc_3D372: jmp short loc_3D3D4 loc_3D374: jmp short $+2 loc_3D376: mov rdi, [rbp+var_10] call _ZNKSt17basic_string_viewIcSt11char_traitsIcEE5emptyEv; std::string_view::empty(void) mov cl, al xor eax, eax test cl, 1 mov [rbp+var_D9], al jnz short loc_3D3A6 mov rdi, [rbp+var_10] call _ZNKSt17basic_string_viewIcSt11char_traitsIcEE5frontEv; std::string_view::front(void) movsx eax, byte ptr [rax] cmp eax, 7Dh ; '}' setnz al mov [rbp+var_D9], al loc_3D3A6: mov al, [rbp+var_D9] test al, 1 jnz loc_3D0E7 mov rdi, [rbp+var_10] mov esi, 7Dh ; '}' call _ZN7lunasvg13skipDelimiterERSt17basic_string_viewIcSt11char_traitsIcEEc; lunasvg::skipDelimiter(std::string_view &,char) and al, 1 mov [rbp+var_1], al jmp short loc_3D3D4 loc_3D3C9: lea rdi, [rbp+var_38]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_3D3E2 loc_3D3D4: mov al, [rbp+var_1] and al, 1 add rsp, 0E0h pop rbp retn loc_3D3E2: mov rdi, [rbp+var_40] call __Unwind_Resume
char lunasvg::parseDeclarations(_QWORD *a1, long long a2) { long long v2; // rsi long long v3; // rdx bool v5; // [rsp+7h] [rbp-D9h] _QWORD *v6; // [rsp+8h] [rbp-D8h] char v7; // [rsp+2Eh] [rbp-B2h] char v8; // [rsp+2Fh] [rbp-B1h] long long v9[2]; // [rsp+40h] [rbp-A0h] BYREF _QWORD v10[2]; // [rsp+50h] [rbp-90h] BYREF int v11; // [rsp+60h] [rbp-80h] BYREF char v12; // [rsp+64h] [rbp-7Ch] _BYTE v13[32]; // [rsp+68h] [rbp-78h] BYREF _QWORD v14[2]; // [rsp+88h] [rbp-58h] BYREF int v15; // [rsp+98h] [rbp-48h] _BYTE v16[32]; // [rsp+A8h] [rbp-38h] BYREF long long v17; // [rsp+C8h] [rbp-18h] _QWORD *v18; // [rsp+D0h] [rbp-10h] char v19; // [rsp+DFh] [rbp-1h] v18 = a1; v17 = a2; if ( (lunasvg::skipDelimiter(a1, 123) & 1) != 0 ) { lunasvg::skipOptionalSpaces(v18); while ( 1 ) { std::string::basic_string(v16); if ( (lunasvg::readCSSIdentifier(v18, v16) & 1) != 0 ) { lunasvg::skipOptionalSpaces(v18); if ( (lunasvg::skipDelimiter(v18, 58) & 1) != 0 ) { lunasvg::skipOptionalSpaces(v18); v14[0] = *v18; v14[1] = v18[1]; while ( 1 ) { v8 = 0; if ( !std::string_view::empty(v18) ) { v7 = 1; if ( *(_BYTE *)std::string_view::front((long long)v18) != 33 ) { v7 = 1; if ( *(_BYTE *)std::string_view::front((long long)v18) != 59 ) v7 = *(_BYTE *)std::string_view::front((long long)v18) == 125; } v8 = ~v7; } if ( (v8 & 1) == 0 ) break; std::string_view::remove_prefix(v18, 1LL); } v2 = std::string_view::length((long long)v18); std::string_view::remove_suffix(v14, v2); lunasvg::stripTrailingSpaces(v14, v2); lunasvg::Declaration::Declaration((lunasvg::Declaration *)&v11); v11 = 16; v10[0] = std::string::operator std::string_view(v16); v10[1] = v3; v12 = lunasvg::csspropertyid(v10); std::string::assign<std::string_view>((long long)v13, v14); if ( (lunasvg::skipDelimiter(v18, 33) & 1) != 0 ) { lunasvg::skipOptionalSpaces(v18); v6 = v18; std::string_view::basic_string_view(v9, (long long)"important"); if ( (lunasvg::skipString(v6, v9) & 1) == 0 ) { v19 = 0; v15 = 1; LABEL_23: lunasvg::Declaration::~Declaration((lunasvg::Declaration *)&v11); goto LABEL_24; } v11 = 4096; } if ( v12 ) std::vector<lunasvg::Declaration>::push_back(v17, &v11); lunasvg::skipOptionalSpacesOrDelimiter(v18, 59); v15 = 0; goto LABEL_23; } v19 = 0; v15 = 1; } else { v19 = 0; v15 = 1; } LABEL_24: std::string::~string(v16); if ( v15 ) return v19 & 1; v5 = 0; if ( !std::string_view::empty(v18) ) v5 = *(_BYTE *)std::string_view::front((long long)v18) != 125; if ( !v5 ) { v19 = lunasvg::skipDelimiter(v18, 125) & 1; return v19 & 1; } } } v19 = 0; return v19 & 1; }
parseDeclarations: PUSH RBP MOV RBP,RSP SUB RSP,0xe0 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV RDI,qword ptr [RBP + -0x10] MOV ESI,0x7b CALL 0x00133420 TEST AL,0x1 JNZ 0x0013d0de MOV byte ptr [RBP + -0x1],0x0 JMP 0x0013d3d4 LAB_0013d0de: MOV RDI,qword ptr [RBP + -0x10] CALL 0x001332b0 LAB_0013d0e7: LEA RDI,[RBP + -0x38] MOV qword ptr [RBP + -0xb0],RDI CALL 0x0010b520 MOV RSI,qword ptr [RBP + -0xb0] MOV RDI,qword ptr [RBP + -0x10] LAB_0013d102: CALL 0x0013fbe0 MOV byte ptr [RBP + -0xa1],AL JMP 0x0013d10f LAB_0013d10f: MOV AL,byte ptr [RBP + -0xa1] TEST AL,0x1 JNZ 0x0013d13c JMP 0x0013d11b LAB_0013d11b: MOV byte ptr [RBP + -0x1],0x0 MOV dword ptr [RBP + -0x48],0x1 JMP 0x0013d360 LAB_0013d13c: MOV RDI,qword ptr [RBP + -0x10] CALL 0x001332b0 MOV RDI,qword ptr [RBP + -0x10] MOV ESI,0x3a CALL 0x00133420 TEST AL,0x1 JNZ 0x0013d167 MOV byte ptr [RBP + -0x1],0x0 MOV dword ptr [RBP + -0x48],0x1 JMP 0x0013d360 LAB_0013d167: MOV RDI,qword ptr [RBP + -0x10] CALL 0x001332b0 MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX] MOV qword ptr [RBP + -0x58],RCX MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x50],RAX LAB_0013d183: MOV RDI,qword ptr [RBP + -0x10] CALL 0x00120620 MOV CL,AL XOR EAX,EAX TEST CL,0x1 MOV byte ptr [RBP + -0xb1],AL JNZ 0x0013d1f3 MOV RDI,qword ptr [RBP + -0x10] CALL 0x00120640 MOVSX ECX,byte ptr [RAX] MOV AL,0x1 CMP ECX,0x21 MOV byte ptr [RBP + -0xb2],AL JZ 0x0013d1e5 MOV RDI,qword ptr [RBP + -0x10] CALL 0x00120640 MOVSX ECX,byte ptr [RAX] MOV AL,0x1 CMP ECX,0x3b MOV byte ptr [RBP + -0xb2],AL JZ 0x0013d1e5 MOV RDI,qword ptr [RBP + -0x10] CALL 0x00120640 MOVSX EAX,byte ptr [RAX] CMP EAX,0x7d SETZ AL MOV byte ptr [RBP + -0xb2],AL LAB_0013d1e5: MOV AL,byte ptr [RBP + -0xb2] XOR AL,0xff MOV byte ptr [RBP + -0xb1],AL LAB_0013d1f3: MOV AL,byte ptr [RBP + -0xb1] TEST AL,0x1 JNZ 0x0013d1ff JMP 0x0013d212 LAB_0013d1ff: MOV RDI,qword ptr [RBP + -0x10] MOV ESI,0x1 CALL 0x001231b0 JMP 0x0013d183 LAB_0013d212: MOV RDI,qword ptr [RBP + -0x10] CALL 0x00123210 MOV RSI,RAX LEA RDI,[RBP + -0x58] MOV qword ptr [RBP + -0xc0],RDI CALL 0x00133140 MOV RDI,qword ptr [RBP + -0xc0] CALL 0x001331c0 JMP 0x0013d23c LAB_0013d23c: LEA RDI,[RBP + -0x80] CALL 0x00143410 MOV dword ptr [RBP + -0x80],0x10 LEA RDI,[RBP + -0x38] CALL 0x0010b3e0 MOV qword ptr [RBP + -0x90],RAX MOV qword ptr [RBP + -0x88],RDX LAB_0013d263: LEA RDI,[RBP + -0x90] CALL 0x00149080 MOV byte ptr [RBP + -0xc1],AL JMP 0x0013d277 LAB_0013d277: MOV AL,byte ptr [RBP + -0xc1] MOV byte ptr [RBP + -0x7c],AL LEA RDI,[RBP + -0x78] LEA RSI,[RBP + -0x58] CALL 0x001330b0 JMP 0x0013d28f LAB_0013d28f: MOV RDI,qword ptr [RBP + -0x10] MOV ESI,0x21 CALL 0x00133420 TEST AL,0x1 JNZ 0x0013d2a6 JMP 0x0013d32b LAB_0013d2a6: MOV RDI,qword ptr [RBP + -0x10] CALL 0x001332b0 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0xd8],RAX LEA RSI,[0x18ceb2] LEA RDI,[RBP + -0xa0] MOV qword ptr [RBP + -0xd0],RDI CALL 0x00133260 MOV RDI,qword ptr [RBP + -0xd8] MOV RSI,qword ptr [RBP + -0xd0] CALL 0x00133360 MOV byte ptr [RBP + -0xc2],AL JMP 0x0013d2ef LAB_0013d2ef: MOV AL,byte ptr [RBP + -0xc2] XOR AL,0xff TEST AL,0x1 JNZ 0x0013d2fd JMP 0x0013d324 LAB_0013d2fd: MOV byte ptr [RBP + -0x1],0x0 MOV dword ptr [RBP + -0x48],0x1 JMP 0x0013d357 LAB_0013d324: MOV dword ptr [RBP + -0x80],0x1000 LAB_0013d32b: CMP byte ptr [RBP + -0x7c],0x0 JZ 0x0013d342 MOV RDI,qword ptr [RBP + -0x18] LEA RSI,[RBP + -0x80] CALL 0x00143430 LAB_0013d33e: JMP 0x0013d340 LAB_0013d340: JMP 0x0013d342 LAB_0013d342: MOV RDI,qword ptr [RBP + -0x10] MOV ESI,0x3b CALL 0x00134820 MOV dword ptr [RBP + -0x48],0x0 LAB_0013d357: LEA RDI,[RBP + -0x80] CALL 0x00143460 LAB_0013d360: LEA RDI,[RBP + -0x38] CALL 0x0010b7a8 MOV EAX,dword ptr [RBP + -0x48] TEST EAX,EAX JZ 0x0013d374 JMP 0x0013d372 LAB_0013d372: JMP 0x0013d3d4 LAB_0013d374: JMP 0x0013d376 LAB_0013d376: MOV RDI,qword ptr [RBP + -0x10] CALL 0x00120620 MOV CL,AL XOR EAX,EAX TEST CL,0x1 MOV byte ptr [RBP + -0xd9],AL JNZ 0x0013d3a6 MOV RDI,qword ptr [RBP + -0x10] CALL 0x00120640 MOVSX EAX,byte ptr [RAX] CMP EAX,0x7d SETNZ AL MOV byte ptr [RBP + -0xd9],AL LAB_0013d3a6: MOV AL,byte ptr [RBP + -0xd9] TEST AL,0x1 JNZ 0x0013d0e7 MOV RDI,qword ptr [RBP + -0x10] MOV ESI,0x7d CALL 0x00133420 AND AL,0x1 MOV byte ptr [RBP + -0x1],AL JMP 0x0013d3d4 LAB_0013d3d4: MOV AL,byte ptr [RBP + -0x1] AND AL,0x1 ADD RSP,0xe0 POP RBP RET
/* lunasvg::parseDeclarations(std::basic_string_view<char, std::char_traits<char> >&, std::vector<lunasvg::Declaration, std::allocator<lunasvg::Declaration> >&) */ ulong lunasvg::parseDeclarations(basic_string_view *param_1,vector *param_2) { basic_string_view *pbVar1; byte bVar2; uint uVar3; ulong uVar4; char *pcVar5; bool bVar6; int1 auVar7 [16]; basic_string_view<char,std::char_traits<char>> local_a8 [16]; int1 local_98 [16]; int4 local_88; char local_84; string local_80 [32]; int8 local_60; int8 local_58; uint local_50; string local_40 [32]; vector *local_20; basic_string_view *local_18; int1 local_9; local_20 = param_2; local_18 = param_1; uVar4 = skipDelimiter(param_1,'{'); if ((uVar4 & 1) == 0) { local_9 = 0; } else { skipOptionalSpaces(local_18); do { std::__cxx11::string::string(local_40); /* try { // try from 0013d102 to 0013d239 has its CatchHandler @ 0013d12b */ bVar2 = readCSSIdentifier(local_18,local_40); if ((bVar2 & 1) == 0) { local_9 = 0; local_50 = 1; } else { skipOptionalSpaces(local_18); uVar4 = skipDelimiter(local_18,':'); if ((uVar4 & 1) == 0) { local_9 = 0; local_50 = 1; } else { skipOptionalSpaces(local_18); local_60 = *(int8 *)local_18; local_58 = *(int8 *)(local_18 + 8); while( true ) { uVar3 = std::basic_string_view<char,std::char_traits<char>>::empty ((basic_string_view<char,std::char_traits<char>> *)local_18); bVar6 = false; if ((uVar3 & 1) == 0) { pcVar5 = (char *)std::basic_string_view<char,std::char_traits<char>>::front ((basic_string_view<char,std::char_traits<char>> *)local_18 ); bVar6 = true; if (*pcVar5 != '!') { pcVar5 = (char *)std::basic_string_view<char,std::char_traits<char>>::front ((basic_string_view<char,std::char_traits<char>> *) local_18); bVar6 = true; if (*pcVar5 != ';') { pcVar5 = (char *)std::basic_string_view<char,std::char_traits<char>>::front ((basic_string_view<char,std::char_traits<char>> *) local_18); bVar6 = *pcVar5 == '}'; } } bVar6 = (bool)(bVar6 ^ 1); } if (!bVar6) break; std::basic_string_view<char,std::char_traits<char>>::remove_prefix ((basic_string_view<char,std::char_traits<char>> *)local_18,1); } uVar4 = std::basic_string_view<char,std::char_traits<char>>::length ((basic_string_view<char,std::char_traits<char>> *)local_18); std::basic_string_view<char,std::char_traits<char>>::remove_suffix ((basic_string_view<char,std::char_traits<char>> *)&local_60,uVar4); stripTrailingSpaces((basic_string_view *)&local_60); Declaration::Declaration((Declaration *)&local_88); local_88 = 0x10; auVar7 = std::__cxx11::string::operator_cast_to_basic_string_view(local_40); /* try { // try from 0013d263 to 0013d33d has its CatchHandler @ 0013d30a */ local_98 = auVar7; local_84 = csspropertyid((basic_string_view *)local_98); std::__cxx11::string::assign<std::basic_string_view<char,std::char_traits<char>>> (local_80,(basic_string_view *)&local_60); uVar4 = skipDelimiter(local_18,'!'); if ((uVar4 & 1) == 0) { LAB_0013d32b: if (local_84 != '\0') { std::vector<lunasvg::Declaration,std::allocator<lunasvg::Declaration>>::push_back ((vector<lunasvg::Declaration,std::allocator<lunasvg::Declaration>> *) local_20,(Declaration *)&local_88); } skipOptionalSpacesOrDelimiter(local_18,';'); local_50 = 0; } else { skipOptionalSpaces(local_18); pbVar1 = local_18; std::basic_string_view<char,std::char_traits<char>>::basic_string_view (local_a8,"important"); bVar2 = skipString(pbVar1,(basic_string_view *)local_a8); if (((bVar2 ^ 0xff) & 1) == 0) { local_88 = 0x1000; goto LAB_0013d32b; } local_9 = 0; local_50 = 1; } Declaration::~Declaration((Declaration *)&local_88); } } std::__cxx11::string::~string(local_40); uVar4 = (ulong)local_50; if (local_50 != 0) goto LAB_0013d3d4; uVar3 = std::basic_string_view<char,std::char_traits<char>>::empty ((basic_string_view<char,std::char_traits<char>> *)local_18); bVar6 = false; if ((uVar3 & 1) == 0) { pcVar5 = (char *)std::basic_string_view<char,std::char_traits<char>>::front ((basic_string_view<char,std::char_traits<char>> *)local_18); bVar6 = *pcVar5 != '}'; } } while (bVar6); uVar4 = skipDelimiter(local_18,'}'); uVar4 = uVar4 & 0xffffffffffffff01; local_9 = (int1)uVar4; } LAB_0013d3d4: return CONCAT71((int7)(uVar4 >> 8),local_9) & 0xffffffffffffff01; }
52,891
OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceCompositeVTag(int, int) const
NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/level.cpp
Level::VTag Level::getFaceCompositeVTag(Index fIndex, int fvarChannel) const { ConstIndexArray fVerts = getFaceVertices(fIndex); if (fvarChannel < 0) { return getFaceCompositeVTag(fVerts); } else { FVarLevel const & fvarLevel = getFVarLevel(fvarChannel); internal::StackBuffer<FVarLevel::ValueTag,64> fvarTags(fVerts.size()); fvarLevel.getFaceValueTags(fIndex, fvarTags); VTag::VTagSize tagBits = fvarTags[0].combineWithLevelVTag(_vertTags[fVerts[0]]).getBits(); for (int i = 1; i < fVerts.size(); ++i) { tagBits |= fvarTags[i].combineWithLevelVTag(_vertTags[fVerts[i]]).getBits(); } return VTag(tagBits); } }
O0
cpp
OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceCompositeVTag(int, int) const: pushq %rbp movq %rsp, %rbp subq $0x140, %rsp # imm = 0x140 movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl %edx, -0x18(%rbp) movq -0x10(%rbp), %rdi movq %rdi, -0xc0(%rbp) movl -0x14(%rbp), %esi callq 0xce580 movl %edx, -0x30(%rbp) movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movq %rax, -0x28(%rbp) movl -0x30(%rbp), %eax movl %eax, -0x20(%rbp) cmpl $0x0, -0x18(%rbp) jge 0xec2dc movq -0xc0(%rbp), %rdi leaq -0x28(%rbp), %rsi callq 0xd71a0 movw %ax, -0x2(%rbp) jmp 0xec564 movq -0xc0(%rbp), %rdi movl -0x18(%rbp), %esi callq 0xd3510 movq %rax, -0x40(%rbp) leaq -0x28(%rbp), %rdi callq 0xcc250 movl %eax, %esi leaq -0x98(%rbp), %rdi movq %rdi, -0xe0(%rbp) callq 0xd7a10 movq -0xe0(%rbp), %rdi movq -0x40(%rbp), %rax movq %rax, -0xd8(%rbp) movl -0x14(%rbp), %eax movl %eax, -0xcc(%rbp) callq 0xd68c0 movq %rax, -0xc8(%rbp) jmp 0xec336 movq -0xc8(%rbp), %rdx movl -0xcc(%rbp), %esi movq -0xd8(%rbp), %rdi callq 0xcff70 jmp 0xec351 leaq -0x98(%rbp), %rdi callq 0xd68c0 movq %rax, -0xe8(%rbp) jmp 0xec366 movq -0xc0(%rbp), %rax movq -0xe8(%rbp), %rcx movq %rcx, -0x100(%rbp) addq $0x1b0, %rax # imm = 0x1B0 movq %rax, -0xf8(%rbp) leaq -0x28(%rbp), %rdi xorl %esi, %esi callq 0xcabf0 movq %rax, -0xf0(%rbp) jmp 0xec39c movq -0xf8(%rbp), %rdi movq -0xf0(%rbp), %rax movslq (%rax), %rsi callq 0xce950 movq -0x100(%rbp), %rdi movw (%rax), %ax movw %ax, -0xaa(%rbp) movzwl -0xaa(%rbp), %esi callq 0xd7030 movw %ax, -0x102(%rbp) jmp 0xec3d8 movw -0x102(%rbp), %ax movw %ax, -0xa8(%rbp) leaq -0xa8(%rbp), %rdi callq 0xc8320 movw %ax, -0x104(%rbp) jmp 0xec3fb movw -0x104(%rbp), %ax movw %ax, -0xa6(%rbp) movl $0x1, -0xb0(%rbp) movl -0xb0(%rbp), %eax movl %eax, -0x10c(%rbp) leaq -0x28(%rbp), %rdi callq 0xcc250 movl %eax, -0x108(%rbp) jmp 0xec430 movl -0x10c(%rbp), %eax movl -0x108(%rbp), %ecx cmpl %ecx, %eax jge 0xec546 leaq -0x98(%rbp), %rdi callq 0xd68c0 movq %rax, -0x118(%rbp) jmp 0xec459 movq -0xc0(%rbp), %rax movq -0x118(%rbp), %rcx movslq -0xb0(%rbp), %rdx movl %edx, %esi addq %rdx, %rcx movq %rcx, -0x130(%rbp) addq $0x1b0, %rax # imm = 0x1B0 movq %rax, -0x128(%rbp) leaq -0x28(%rbp), %rdi callq 0xcabf0 movq %rax, -0x120(%rbp) jmp 0xec499 movq -0x128(%rbp), %rdi movq -0x120(%rbp), %rax movslq (%rax), %rsi callq 0xce950 movq -0x130(%rbp), %rdi movw (%rax), %ax movw %ax, -0xb4(%rbp) movzwl -0xb4(%rbp), %esi callq 0xd7030 movw %ax, -0x132(%rbp) jmp 0xec4d5 movw -0x132(%rbp), %ax movw %ax, -0xb2(%rbp) leaq -0xb2(%rbp), %rdi callq 0xc8320 movw %ax, -0x134(%rbp) jmp 0xec4f8 movw -0x134(%rbp), %ax movzwl %ax, %ecx movzwl -0xa6(%rbp), %eax orl %ecx, %eax movw %ax, -0xa6(%rbp) movl -0xb0(%rbp), %eax addl $0x1, %eax movl %eax, -0xb0(%rbp) jmp 0xec413 movq %rax, %rcx movl %edx, %eax movq %rcx, -0xa0(%rbp) movl %eax, -0xa4(%rbp) leaq -0x98(%rbp), %rdi callq 0xd0a60 jmp 0xec571 movzwl -0xa6(%rbp), %esi leaq -0x2(%rbp), %rdi callq 0xc6050 jmp 0xec558 leaq -0x98(%rbp), %rdi callq 0xd0a60 movw -0x2(%rbp), %ax addq $0x140, %rsp # imm = 0x140 popq %rbp retq movq -0xa0(%rbp), %rdi callq 0xd58b0 nopl (%rax)
_ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level20getFaceCompositeVTagEii: push rbp mov rbp, rsp sub rsp, 140h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_18], edx mov rdi, [rbp+var_10]; this mov [rbp+var_C0], rdi mov esi, [rbp+var_14]; int call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level15getFaceVerticesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceVertices(int) mov [rbp+var_30], edx mov [rbp+var_38], rax mov rax, [rbp+var_38] mov [rbp+var_28], rax mov eax, [rbp+var_30] mov [rbp+var_20], eax cmp [rbp+var_18], 0 jge short loc_EC2DC mov rdi, [rbp+var_C0] lea rsi, [rbp+var_28] call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level20getFaceCompositeVTagERNS1_10ConstArrayIiEE; OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceCompositeVTag(OpenSubdiv::v3_6_0::Vtr::ConstArray<int> &) mov [rbp+var_2], ax jmp loc_EC564 loc_EC2DC: mov rdi, [rbp+var_C0]; this mov esi, [rbp+var_18]; int call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level12getFVarLevelEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getFVarLevel(int) mov [rbp+var_40], rax lea rdi, [rbp+var_28] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiE4sizeEv; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::size(void) mov esi, eax lea rdi, [rbp+var_98] mov [rbp+var_E0], rdi call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferINS2_9FVarLevel8ValueTagELj64ELb0EEC2Ej; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag,64u,false>::StackBuffer(uint) mov rdi, [rbp+var_E0] mov rax, [rbp+var_40] mov [rbp+var_D8], rax mov eax, [rbp+var_14] mov [rbp+var_CC], eax call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferINS2_9FVarLevel8ValueTagELj64ELb0EEcvPS5_Ev; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag,64u,false>::operator OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag*(void) mov [rbp+var_C8], rax jmp short $+2 loc_EC336: mov rdx, [rbp+var_C8]; OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag * mov esi, [rbp+var_CC]; int mov rdi, [rbp+var_D8]; this call __ZNK10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel16getFaceValueTagsEiPNS3_8ValueTagE; OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::getFaceValueTags(int,OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag *) jmp short $+2 loc_EC351: lea rdi, [rbp+var_98] call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferINS2_9FVarLevel8ValueTagELj64ELb0EEcvPS5_Ev; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag,64u,false>::operator OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag*(void) mov [rbp+var_E8], rax jmp short $+2 loc_EC366: mov rax, [rbp+var_C0] mov rcx, [rbp+var_E8] mov [rbp+var_100], rcx add rax, 1B0h mov [rbp+var_F8], rax lea rdi, [rbp+var_28] xor esi, esi call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiEixEi; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](int) mov [rbp+var_F0], rax jmp short $+2 loc_EC39C: mov rdi, [rbp+var_F8] mov rax, [rbp+var_F0] movsxd rsi, dword ptr [rax] call __ZNKSt6vectorIN10OpenSubdiv6v3_6_03Vtr8internal5Level4VTagESaIS5_EEixEm; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag>::operator[](ulong) mov rdi, [rbp+var_100] mov ax, [rax] mov [rbp+var_AA], ax movzx esi, [rbp+var_AA] call __ZNK10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel8ValueTag20combineWithLevelVTagENS2_5Level4VTagE; OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag::combineWithLevelVTag(OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag) mov [rbp+var_102], ax jmp short $+2 loc_EC3D8: mov ax, [rbp+var_102] mov [rbp+var_A8], ax lea rdi, [rbp+var_A8]; this call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level4VTag7getBitsEv; OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag::getBits(void) mov [rbp+var_104], ax jmp short $+2 loc_EC3FB: mov ax, [rbp+var_104] mov [rbp+var_A6], ax mov [rbp+var_B0], 1 loc_EC413: mov eax, [rbp+var_B0] mov [rbp+var_10C], eax lea rdi, [rbp+var_28] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiE4sizeEv; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::size(void) mov [rbp+var_108], eax jmp short $+2 loc_EC430: mov eax, [rbp+var_10C] mov ecx, [rbp+var_108] cmp eax, ecx jge loc_EC546 lea rdi, [rbp+var_98] call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferINS2_9FVarLevel8ValueTagELj64ELb0EEcvPS5_Ev; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag,64u,false>::operator OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag*(void) mov [rbp+var_118], rax jmp short $+2 loc_EC459: mov rax, [rbp+var_C0] mov rcx, [rbp+var_118] movsxd rdx, [rbp+var_B0] mov esi, edx add rcx, rdx mov [rbp+var_130], rcx add rax, 1B0h mov [rbp+var_128], rax lea rdi, [rbp+var_28] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiEixEi; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](int) mov [rbp+var_120], rax jmp short $+2 loc_EC499: mov rdi, [rbp+var_128] mov rax, [rbp+var_120] movsxd rsi, dword ptr [rax] call __ZNKSt6vectorIN10OpenSubdiv6v3_6_03Vtr8internal5Level4VTagESaIS5_EEixEm; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag>::operator[](ulong) mov rdi, [rbp+var_130] mov ax, [rax] mov [rbp+var_B4], ax movzx esi, [rbp+var_B4] call __ZNK10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel8ValueTag20combineWithLevelVTagENS2_5Level4VTagE; OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag::combineWithLevelVTag(OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag) mov [rbp+var_132], ax jmp short $+2 loc_EC4D5: mov ax, [rbp+var_132] mov [rbp+var_B2], ax lea rdi, [rbp+var_B2]; this call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level4VTag7getBitsEv; OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag::getBits(void) mov [rbp+var_134], ax jmp short $+2 loc_EC4F8: mov ax, [rbp+var_134] movzx ecx, ax movzx eax, [rbp+var_A6] or eax, ecx mov [rbp+var_A6], ax mov eax, [rbp+var_B0] add eax, 1 mov [rbp+var_B0], eax jmp loc_EC413 mov rcx, rax mov eax, edx mov [rbp+var_A0], rcx mov [rbp+var_A4], eax lea rdi, [rbp+var_98] call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferINS2_9FVarLevel8ValueTagELj64ELb0EED2Ev; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag,64u,false>::~StackBuffer() jmp short loc_EC571 loc_EC546: movzx esi, [rbp+var_A6]; unsigned __int16 lea rdi, [rbp+var_2]; this call __ZN10OpenSubdiv6v3_6_03Vtr8internal5Level4VTagC2Et; OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag::VTag(ushort) jmp short $+2 loc_EC558: lea rdi, [rbp+var_98] call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferINS2_9FVarLevel8ValueTagELj64ELb0EED2Ev; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag,64u,false>::~StackBuffer() loc_EC564: mov ax, [rbp+var_2] add rsp, 140h pop rbp retn loc_EC571: mov rdi, [rbp+var_A0] call __Unwind_Resume
__int16 OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceCompositeVTag( OpenSubdiv::v3_6_0::Vtr::internal::Level *this, int a2, int a3) { long long FaceVertices; // rax int v4; // edx unsigned int v5; // eax __int16 v7; // [rsp+Ch] [rbp-134h] long long v8; // [rsp+10h] [rbp-130h] int *v9; // [rsp+20h] [rbp-120h] long long v10; // [rsp+28h] [rbp-118h] int v11; // [rsp+34h] [rbp-10Ch] long long v12; // [rsp+40h] [rbp-100h] int *v13; // [rsp+50h] [rbp-F0h] OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel *v14; // [rsp+68h] [rbp-D8h] int v15; // [rsp+74h] [rbp-CCh] OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag *v16; // [rsp+78h] [rbp-C8h] unsigned __int16 v17; // [rsp+8Ch] [rbp-B4h] __int16 v18; // [rsp+8Eh] [rbp-B2h] BYREF int i; // [rsp+90h] [rbp-B0h] unsigned __int16 v20; // [rsp+96h] [rbp-AAh] __int16 v21; // [rsp+98h] [rbp-A8h] BYREF unsigned __int16 Bits; // [rsp+9Ah] [rbp-A6h] _BYTE v23[88]; // [rsp+A8h] [rbp-98h] BYREF long long FVarLevel; // [rsp+100h] [rbp-40h] long long v25; // [rsp+108h] [rbp-38h] int v26; // [rsp+110h] [rbp-30h] long long v27; // [rsp+118h] [rbp-28h] BYREF int v28; // [rsp+120h] [rbp-20h] int v29; // [rsp+128h] [rbp-18h] int v30; // [rsp+12Ch] [rbp-14h] OpenSubdiv::v3_6_0::Vtr::internal::Level *v31; // [rsp+130h] [rbp-10h] __int16 v32; // [rsp+13Eh] [rbp-2h] BYREF v31 = this; v30 = a2; v29 = a3; FaceVertices = OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceVertices(this, a2); v26 = v4; v25 = FaceVertices; v27 = FaceVertices; v28 = v4; if ( v29 < 0 ) return OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceCompositeVTag((long long)this, (long long)&v27); FVarLevel = OpenSubdiv::v3_6_0::Vtr::internal::Level::getFVarLevel(this, v29); v5 = OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::size(&v27); OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag,64u,false>::StackBuffer( v23, v5); v14 = (OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel *)FVarLevel; v15 = v30; v16 = (OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag *)OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag,64u,false>::operator OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag*(v23); OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::getFaceValueTags(v14, v15, v16); v12 = OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag,64u,false>::operator OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag*(v23); v13 = (int *)OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](&v27, 0LL); v20 = *(_WORD *)std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag>::operator[]((char *)this + 432, *v13); v21 = OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag::combineWithLevelVTag(v12, v20); Bits = OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag::getBits((OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag *)&v21); for ( i = 1; ; ++i ) { v11 = i; if ( v11 >= (int)OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::size(&v27) ) break; v10 = OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag,64u,false>::operator OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag*(v23); v8 = i + v10; v9 = (int *)OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](&v27, (unsigned int)i); v17 = *(_WORD *)std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag>::operator[]((char *)this + 432, *v9); v18 = OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag::combineWithLevelVTag(v8, v17); v7 = OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag::getBits((OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag *)&v18); Bits |= v7; } OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag::VTag((OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag *)&v32, Bits); OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag,64u,false>::~StackBuffer(v23); return v32; }
getFaceCompositeVTag: PUSH RBP MOV RBP,RSP SUB RSP,0x140 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV dword ptr [RBP + -0x18],EDX MOV RDI,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0xc0],RDI MOV ESI,dword ptr [RBP + -0x14] CALL 0x001ce580 MOV dword ptr [RBP + -0x30],EDX MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x28],RAX MOV EAX,dword ptr [RBP + -0x30] MOV dword ptr [RBP + -0x20],EAX CMP dword ptr [RBP + -0x18],0x0 JGE 0x001ec2dc MOV RDI,qword ptr [RBP + -0xc0] LEA RSI,[RBP + -0x28] CALL 0x001d71a0 MOV word ptr [RBP + -0x2],AX JMP 0x001ec564 LAB_001ec2dc: MOV RDI,qword ptr [RBP + -0xc0] MOV ESI,dword ptr [RBP + -0x18] CALL 0x001d3510 MOV qword ptr [RBP + -0x40],RAX LEA RDI,[RBP + -0x28] CALL 0x001cc250 MOV ESI,EAX LEA RDI,[RBP + -0x98] MOV qword ptr [RBP + -0xe0],RDI CALL 0x001d7a10 MOV RDI,qword ptr [RBP + -0xe0] MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0xd8],RAX MOV EAX,dword ptr [RBP + -0x14] MOV dword ptr [RBP + -0xcc],EAX LAB_001ec328: CALL 0x001d68c0 MOV qword ptr [RBP + -0xc8],RAX JMP 0x001ec336 LAB_001ec336: MOV RDX,qword ptr [RBP + -0xc8] MOV ESI,dword ptr [RBP + -0xcc] MOV RDI,qword ptr [RBP + -0xd8] CALL 0x001cff70 JMP 0x001ec351 LAB_001ec351: LEA RDI,[RBP + -0x98] CALL 0x001d68c0 MOV qword ptr [RBP + -0xe8],RAX JMP 0x001ec366 LAB_001ec366: MOV RAX,qword ptr [RBP + -0xc0] MOV RCX,qword ptr [RBP + -0xe8] MOV qword ptr [RBP + -0x100],RCX ADD RAX,0x1b0 MOV qword ptr [RBP + -0xf8],RAX LEA RDI,[RBP + -0x28] XOR ESI,ESI CALL 0x001cabf0 MOV qword ptr [RBP + -0xf0],RAX JMP 0x001ec39c LAB_001ec39c: MOV RDI,qword ptr [RBP + -0xf8] MOV RAX,qword ptr [RBP + -0xf0] MOVSXD RSI,dword ptr [RAX] CALL 0x001ce950 MOV RDI,qword ptr [RBP + -0x100] MOV AX,word ptr [RAX] MOV word ptr [RBP + -0xaa],AX MOVZX ESI,word ptr [RBP + -0xaa] CALL 0x001d7030 MOV word ptr [RBP + -0x102],AX JMP 0x001ec3d8 LAB_001ec3d8: MOV AX,word ptr [RBP + -0x102] MOV word ptr [RBP + -0xa8],AX LEA RDI,[RBP + -0xa8] CALL 0x001c8320 MOV word ptr [RBP + -0x104],AX JMP 0x001ec3fb LAB_001ec3fb: MOV AX,word ptr [RBP + -0x104] MOV word ptr [RBP + -0xa6],AX MOV dword ptr [RBP + -0xb0],0x1 LAB_001ec413: MOV EAX,dword ptr [RBP + -0xb0] MOV dword ptr [RBP + -0x10c],EAX LEA RDI,[RBP + -0x28] CALL 0x001cc250 MOV dword ptr [RBP + -0x108],EAX JMP 0x001ec430 LAB_001ec430: MOV EAX,dword ptr [RBP + -0x10c] MOV ECX,dword ptr [RBP + -0x108] CMP EAX,ECX JGE 0x001ec546 LEA RDI,[RBP + -0x98] CALL 0x001d68c0 MOV qword ptr [RBP + -0x118],RAX JMP 0x001ec459 LAB_001ec459: MOV RAX,qword ptr [RBP + -0xc0] MOV RCX,qword ptr [RBP + -0x118] MOVSXD RDX,dword ptr [RBP + -0xb0] MOV ESI,EDX ADD RCX,RDX MOV qword ptr [RBP + -0x130],RCX ADD RAX,0x1b0 MOV qword ptr [RBP + -0x128],RAX LEA RDI,[RBP + -0x28] CALL 0x001cabf0 MOV qword ptr [RBP + -0x120],RAX JMP 0x001ec499 LAB_001ec499: MOV RDI,qword ptr [RBP + -0x128] MOV RAX,qword ptr [RBP + -0x120] MOVSXD RSI,dword ptr [RAX] CALL 0x001ce950 MOV RDI,qword ptr [RBP + -0x130] MOV AX,word ptr [RAX] MOV word ptr [RBP + -0xb4],AX MOVZX ESI,word ptr [RBP + -0xb4] CALL 0x001d7030 MOV word ptr [RBP + -0x132],AX JMP 0x001ec4d5 LAB_001ec4d5: MOV AX,word ptr [RBP + -0x132] MOV word ptr [RBP + -0xb2],AX LEA RDI,[RBP + -0xb2] CALL 0x001c8320 MOV word ptr [RBP + -0x134],AX JMP 0x001ec4f8 LAB_001ec4f8: MOV AX,word ptr [RBP + -0x134] MOVZX ECX,AX MOVZX EAX,word ptr [RBP + -0xa6] OR EAX,ECX MOV word ptr [RBP + -0xa6],AX MOV EAX,dword ptr [RBP + -0xb0] ADD EAX,0x1 MOV dword ptr [RBP + -0xb0],EAX JMP 0x001ec413 LAB_001ec546: MOVZX ESI,word ptr [RBP + -0xa6] LEA RDI,[RBP + -0x2] CALL 0x001c6050 LAB_001ec556: JMP 0x001ec558 LAB_001ec558: LEA RDI,[RBP + -0x98] CALL 0x001d0a60 LAB_001ec564: MOV AX,word ptr [RBP + -0x2] ADD RSP,0x140 POP RBP RET
/* OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceCompositeVTag(int, int) const */ int2 __thiscall OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceCompositeVTag(Level *this,int param_1,int param_2) { int iVar1; FVarLevel *this_00; ushort uVar2; uint uVar3; int iVar4; ValueTag *pVVar5; int *piVar6; int2 *puVar7; long lVar8; int2 local_ba; int local_b8; int2 local_b2; int2 local_b0; ushort local_ae; StackBuffer<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag,64u,false> local_a0 [88]; FVarLevel *local_48; int1 local_40 [12]; ConstArray local_30 [16]; int local_20; int local_1c; Level *local_18; int2 local_a; local_20 = param_2; local_1c = param_1; local_18 = this; local_40 = getFaceVertices(this,param_1); local_30._0_12_ = local_40; if (local_20 < 0) { local_a = getFaceCompositeVTag(this,local_30); } else { local_48 = (FVarLevel *)getFVarLevel(this,local_20); uVar3 = ConstArray<int>::size((ConstArray<int> *)local_30); StackBuffer<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag,64u,false>::StackBuffer (local_a0,uVar3); iVar1 = local_1c; this_00 = local_48; /* try { // try from 001ec328 to 001ec555 has its CatchHandler @ 001ec526 */ pVVar5 = internal::StackBuffer::operator_cast_to_ValueTag_((StackBuffer *)local_a0); FVarLevel::getFaceValueTags(this_00,iVar1,pVVar5); pVVar5 = internal::StackBuffer::operator_cast_to_ValueTag_((StackBuffer *)local_a0); piVar6 = (int *)ConstArray<int>::operator[]((ConstArray<int> *)local_30,0); puVar7 = (int2 *) std:: vector<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag>> ::operator[]((vector<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag>> *)(this + 0x1b0),(long)*piVar6); local_b2 = *puVar7; local_b0 = FVarLevel::ValueTag::combineWithLevelVTag(pVVar5,local_b2); local_ae = VTag::getBits((VTag *)&local_b0); local_b8 = 1; while( true ) { iVar1 = local_b8; iVar4 = ConstArray<int>::size((ConstArray<int> *)local_30); if (iVar4 <= iVar1) break; pVVar5 = internal::StackBuffer::operator_cast_to_ValueTag_((StackBuffer *)local_a0); lVar8 = (long)local_b8; piVar6 = (int *)ConstArray<int>::operator[]((ConstArray<int> *)local_30,local_b8); puVar7 = (int2 *) std:: vector<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag>> ::operator[]((vector<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag>> *)(this + 0x1b0),(long)*piVar6); local_ba = FVarLevel::ValueTag::combineWithLevelVTag(pVVar5 + lVar8,*puVar7); uVar2 = VTag::getBits((VTag *)&local_ba); local_ae = local_ae | uVar2; local_b8 = local_b8 + 1; } VTag::VTag((VTag *)&local_a,local_ae); StackBuffer<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag,64u,false>::~StackBuffer (local_a0); } return local_a; }
52,892
OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceCompositeVTag(int, int) const
NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/level.cpp
Level::VTag Level::getFaceCompositeVTag(Index fIndex, int fvarChannel) const { ConstIndexArray fVerts = getFaceVertices(fIndex); if (fvarChannel < 0) { return getFaceCompositeVTag(fVerts); } else { FVarLevel const & fvarLevel = getFVarLevel(fvarChannel); internal::StackBuffer<FVarLevel::ValueTag,64> fvarTags(fVerts.size()); fvarLevel.getFaceValueTags(fIndex, fvarTags); VTag::VTagSize tagBits = fvarTags[0].combineWithLevelVTag(_vertTags[fVerts[0]]).getBits(); for (int i = 1; i < fVerts.size(); ++i) { tagBits |= fvarTags[i].combineWithLevelVTag(_vertTags[fVerts[i]]).getBits(); } return VTag(tagBits); } }
O1
cpp
OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceCompositeVTag(int, int) const: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movl %esi, %r15d movq %rdi, %r14 leal 0x1(%r15,%r15), %eax cltq movq 0x18(%rdi), %rcx movslq (%rcx,%rax,4), %r13 shlq $0x2, %r13 addq 0x30(%rdi), %r13 leal (%r15,%r15), %eax cltq movl (%rcx,%rax,4), %ebx testl %edx, %edx js 0x431f2 movl %edx, %eax movq 0x1c8(%r14), %rcx movq (%rcx,%rax,8), %r12 leaq 0x10(%rsp), %rax movq %rax, -0x10(%rax) movl %ebx, -0x8(%rax) movl $0x40, -0x4(%rax) movq $0x0, 0x40(%rax) cmpl $0x41, %ebx jb 0x430a8 movq %rbx, %rdi callq 0x3a230 movq %rax, 0x50(%rsp) movq %rax, (%rsp) movl %ebx, 0xc(%rsp) movq (%rsp), %rdx movq %r12, %rdi movl %r15d, %esi callq 0x3aaa0 movq (%rsp), %rax movslq (%r13), %rdx movq 0x1b0(%r14), %rcx movzwl (%rcx,%rdx,2), %edx movzbl (%rax), %esi testb $0x1, %sil je 0x43147 movzwl %si, %edi xorl %r8d, %r8d testb $0x8, %sil sete %r8b shll $0x9, %r8d movl %edx, %r9d andl $0x1860, %r9d # imm = 0x1860 orl %r8d, %r9d xorl %r8d, %r8d cmpb $0x40, %sil setb %r8b testb $0x18, %sil leal 0x10(,%r8,8), %r8d movl $0x4000, %r10d # imm = 0x4000 cmovel %r8d, %r10d movl %edi, %r8d shll $0x8, %r8d orl %edi, %r8d orl %r9d, %r10d andl $0xffff8002, %r8d # imm = 0xFFFF8002 orl %r10d, %r8d shrb $0x2, %sil movzbl %sil, %esi orl %edx, %esi andl $0x1, %esi leal (%rsi,%r8), %edx addl $0x200, %edx # imm = 0x200 orl $0x2004, %edx # imm = 0x2004 cmpl $0x2, %ebx jl 0x4321e movl $0x1, %esi movl $0x4000, %edi # imm = 0x4000 movslq (%r13,%rsi,4), %r8 movzwl (%rcx,%r8,2), %ebp movzbl (%rax,%rsi), %r8d testb $0x1, %r8b je 0x431e0 movzwl %r8w, %r9d xorl %r10d, %r10d testb $0x8, %r8b sete %r10b shll $0x9, %r10d movl %ebp, %r11d andl $0x1860, %r11d # imm = 0x1860 orl %r10d, %r11d xorl %r10d, %r10d cmpb $0x40, %r8b setb %r10b testb $0x18, %r8b leal 0x10(,%r10,8), %r10d cmovnel %edi, %r10d movl %r9d, %r14d shll $0x8, %r14d orl %r9d, %r14d orl %r11d, %r10d andl $0xffff8002, %r14d # imm = 0xFFFF8002 orl %r10d, %r14d shrb $0x2, %r8b movzbl %r8b, %r8d orl %ebp, %r8d andl $0x1, %r8d leal (%r8,%r14), %ebp addl $0x200, %ebp # imm = 0x200 orl $0x2004, %ebp # imm = 0x2004 orl %edx, %ebp incq %rsi movl %ebp, %edx cmpq %rsi, %rbx jne 0x4315a jmp 0x43220 movslq (%r13), %rcx movq 0x1b0(%r14), %rax movzwl (%rax,%rcx,2), %ebp cmpl $0x2, %ebx jl 0x4322a movl $0x1, %ecx movslq (%r13,%rcx,4), %rdx orw (%rax,%rdx,2), %bp incq %rcx cmpq %rcx, %rbx jne 0x4320b jmp 0x4322a movl %edx, %ebp movq 0x50(%rsp), %rdi callq 0x3a0c0 movl %ebp, %eax addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx movq 0x50(%rsp), %rdi callq 0x3a0c0 movq %rbx, %rdi callq 0x3bd70
_ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level20getFaceCompositeVTagEii: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 58h mov r15d, esi mov r14, rdi lea eax, [r15+r15+1] cdqe mov rcx, [rdi+18h] movsxd r13, dword ptr [rcx+rax*4] shl r13, 2 add r13, [rdi+30h] lea eax, [r15+r15] cdqe mov ebx, [rcx+rax*4] test edx, edx js loc_431F2 mov eax, edx mov rcx, [r14+1C8h] mov r12, [rcx+rax*8] lea rax, [rsp+88h+var_78] mov [rax-10h], rax mov [rax-8], ebx mov dword ptr [rax-4], 40h ; '@' mov qword ptr [rax+40h], 0 cmp ebx, 41h ; 'A' jb short loc_430A8 mov rdi, rbx; unsigned __int64 call __Znwm; operator new(ulong) mov [rsp+88h+var_38], rax mov [rsp+88h+var_88], rax mov [rsp+88h+var_7C], ebx loc_430A8: mov rdx, [rsp+88h+var_88] mov rdi, r12 mov esi, r15d call __ZNK10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel16getFaceValueTagsEiPNS3_8ValueTagE; OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::getFaceValueTags(int,OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag *) mov rax, [rsp+88h+var_88] movsxd rdx, dword ptr [r13+0] mov rcx, [r14+1B0h] movzx edx, word ptr [rcx+rdx*2] movzx esi, byte ptr [rax] test sil, 1 jz short loc_43147 movzx edi, si xor r8d, r8d test sil, 8 setz r8b shl r8d, 9 mov r9d, edx and r9d, 1860h or r9d, r8d xor r8d, r8d cmp sil, 40h ; '@' setb r8b test sil, 18h lea r8d, ds:10h[r8*8] mov r10d, 4000h cmovz r10d, r8d mov r8d, edi shl r8d, 8 or r8d, edi or r10d, r9d and r8d, 0FFFF8002h or r8d, r10d shr sil, 2 movzx esi, sil or esi, edx and esi, 1 lea edx, [rsi+r8] add edx, 200h or edx, 2004h loc_43147: cmp ebx, 2 jl loc_4321E mov esi, 1 mov edi, 4000h loc_4315A: movsxd r8, dword ptr [r13+rsi*4+0] movzx ebp, word ptr [rcx+r8*2] movzx r8d, byte ptr [rax+rsi] test r8b, 1 jz short loc_431E0 movzx r9d, r8w xor r10d, r10d test r8b, 8 setz r10b shl r10d, 9 mov r11d, ebp and r11d, 1860h or r11d, r10d xor r10d, r10d cmp r8b, 40h ; '@' setb r10b test r8b, 18h lea r10d, ds:10h[r10*8] cmovnz r10d, edi mov r14d, r9d shl r14d, 8 or r14d, r9d or r10d, r11d and r14d, 0FFFF8002h or r14d, r10d shr r8b, 2 movzx r8d, r8b or r8d, ebp and r8d, 1 lea ebp, [r8+r14] add ebp, 200h or ebp, 2004h loc_431E0: or ebp, edx inc rsi mov edx, ebp cmp rbx, rsi jnz loc_4315A jmp short loc_43220 loc_431F2: movsxd rcx, dword ptr [r13+0] mov rax, [r14+1B0h] movzx ebp, word ptr [rax+rcx*2] cmp ebx, 2 jl short loc_4322A mov ecx, 1 loc_4320B: movsxd rdx, dword ptr [r13+rcx*4+0] or bp, [rax+rdx*2] inc rcx cmp rbx, rcx jnz short loc_4320B jmp short loc_4322A loc_4321E: mov ebp, edx loc_43220: mov rdi, [rsp+88h+var_38]; void * call __ZdlPv; operator delete(void *) loc_4322A: mov eax, ebp add rsp, 58h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax mov rdi, [rsp+arg_48]; void * call __ZdlPv; operator delete(void *) mov rdi, rbx call __Unwind_Resume
long long OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceCompositeVTag( OpenSubdiv::v3_6_0::Vtr::internal::Level *this, int a2, int a3) { long long v3; // rcx int *v4; // r13 unsigned long long v5; // rbx _QWORD *v6; // r12 long long v7; // rcx int v8; // edx unsigned __int8 v9; // si int v10; // r10d long long j; // rsi int v12; // ebp unsigned __int8 v13; // r8 int v14; // r10d unsigned int v15; // ebp long long v16; // rax long long i; // rcx unsigned __int8 *v19; // [rsp+0h] [rbp-88h] char v20; // [rsp+10h] [rbp-78h] BYREF void *v21; // [rsp+50h] [rbp-38h] v3 = *((_QWORD *)this + 3); v4 = (int *)(*((_QWORD *)this + 6) + 4LL * *(int *)(v3 + 4LL * (2 * a2 + 1))); v5 = *(unsigned int *)(v3 + 8LL * a2); if ( a3 < 0 ) { v16 = *((_QWORD *)this + 54); v15 = *(unsigned __int16 *)(v16 + 2LL * *v4); if ( (int)v5 >= 2 ) { for ( i = 1LL; i != v5; ++i ) LOWORD(v15) = *(_WORD *)(v16 + 2LL * v4[i]) | v15; } } else { v6 = *(_QWORD **)(*((_QWORD *)this + 57) + 8LL * (unsigned int)a3); v19 = (unsigned __int8 *)&v20; v21 = 0LL; if ( (unsigned int)v5 >= 0x41 ) { v21 = (void *)operator new(v5); v19 = (unsigned __int8 *)v21; } OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::getFaceValueTags(v6, a2, (long long)v19); v7 = *((_QWORD *)this + 54); v8 = *(unsigned __int16 *)(v7 + 2LL * *v4); v9 = *v19; if ( (*v19 & 1) != 0 ) { v10 = 0x4000; if ( (v9 & 0x18) == 0 ) v10 = 8 * (v9 < 0x40u) + 16; v8 = ((v8 & 1 | ((*v19 & 4) != 0)) + ((((*v19 & 8) == 0) << 9) | v8 & 0x1860 | v10 | (*v19 | (unsigned __int16)(*v19 << 8)) & 0x8002) + 512) | 0x2004; } if ( (int)v5 < 2 ) { v15 = v8; } else { for ( j = 1LL; j != v5; ++j ) { v12 = *(unsigned __int16 *)(v7 + 2LL * v4[j]); v13 = v19[j]; if ( (v13 & 1) != 0 ) { v14 = 8 * (v13 < 0x40u) + 16; if ( (v13 & 0x18) != 0 ) v14 = 0x4000; v12 = ((v12 & 1 | ((v19[j] & 4) != 0)) + ((((v19[j] & 8) == 0) << 9) | v12 & 0x1860 | v14 | (v19[j] | (unsigned __int16)(v19[j] << 8)) & 0x8002) + 512) | 0x2004; } v15 = v8 | v12; v8 = v15; } } operator delete(v21); } return v15; }
getFaceCompositeVTag: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x58 MOV R15D,ESI MOV R14,RDI LEA EAX,[R15 + R15*0x1 + 0x1] CDQE MOV RCX,qword ptr [RDI + 0x18] MOVSXD R13,dword ptr [RCX + RAX*0x4] SHL R13,0x2 ADD R13,qword ptr [RDI + 0x30] LEA EAX,[R15 + R15*0x1] CDQE MOV EBX,dword ptr [RCX + RAX*0x4] TEST EDX,EDX JS 0x001431f2 MOV EAX,EDX MOV RCX,qword ptr [R14 + 0x1c8] MOV R12,qword ptr [RCX + RAX*0x8] LEA RAX,[RSP + 0x10] MOV qword ptr [RAX + -0x10],RAX MOV dword ptr [RAX + -0x8],EBX MOV dword ptr [RAX + -0x4],0x40 MOV qword ptr [RAX + 0x40],0x0 CMP EBX,0x41 JC 0x001430a8 MOV RDI,RBX CALL 0x0013a230 MOV qword ptr [RSP + 0x50],RAX MOV qword ptr [RSP],RAX MOV dword ptr [RSP + 0xc],EBX LAB_001430a8: MOV RDX,qword ptr [RSP] LAB_001430ac: MOV RDI,R12 MOV ESI,R15D CALL 0x0013aaa0 LAB_001430b7: MOV RAX,qword ptr [RSP] MOVSXD RDX,dword ptr [R13] MOV RCX,qword ptr [R14 + 0x1b0] MOVZX EDX,word ptr [RCX + RDX*0x2] MOVZX ESI,byte ptr [RAX] TEST SIL,0x1 JZ 0x00143147 MOVZX EDI,SI XOR R8D,R8D TEST SIL,0x8 SETZ R8B SHL R8D,0x9 MOV R9D,EDX AND R9D,0x1860 OR R9D,R8D XOR R8D,R8D CMP SIL,0x40 SETC R8B TEST SIL,0x18 LEA R8D,[0x10 + R8*0x8] MOV R10D,0x4000 CMOVZ R10D,R8D MOV R8D,EDI SHL R8D,0x8 OR R8D,EDI OR R10D,R9D AND R8D,0xffff8002 OR R8D,R10D SHR SIL,0x2 MOVZX ESI,SIL OR ESI,EDX AND ESI,0x1 LEA EDX,[RSI + R8*0x1] ADD EDX,0x200 OR EDX,0x2004 LAB_00143147: CMP EBX,0x2 JL 0x0014321e MOV ESI,0x1 MOV EDI,0x4000 LAB_0014315a: MOVSXD R8,dword ptr [R13 + RSI*0x4] MOVZX EBP,word ptr [RCX + R8*0x2] MOVZX R8D,byte ptr [RAX + RSI*0x1] TEST R8B,0x1 JZ 0x001431e0 MOVZX R9D,R8W XOR R10D,R10D TEST R8B,0x8 SETZ R10B SHL R10D,0x9 MOV R11D,EBP AND R11D,0x1860 OR R11D,R10D XOR R10D,R10D CMP R8B,0x40 SETC R10B TEST R8B,0x18 LEA R10D,[0x10 + R10*0x8] CMOVNZ R10D,EDI MOV R14D,R9D SHL R14D,0x8 OR R14D,R9D OR R10D,R11D AND R14D,0xffff8002 OR R14D,R10D SHR R8B,0x2 MOVZX R8D,R8B OR R8D,EBP AND R8D,0x1 LEA EBP,[R8 + R14*0x1] ADD EBP,0x200 OR EBP,0x2004 LAB_001431e0: OR EBP,EDX INC RSI MOV EDX,EBP CMP RBX,RSI JNZ 0x0014315a JMP 0x00143220 LAB_001431f2: MOVSXD RCX,dword ptr [R13] MOV RAX,qword ptr [R14 + 0x1b0] MOVZX EBP,word ptr [RAX + RCX*0x2] CMP EBX,0x2 JL 0x0014322a MOV ECX,0x1 LAB_0014320b: MOVSXD RDX,dword ptr [R13 + RCX*0x4] OR BP,word ptr [RAX + RDX*0x2] INC RCX CMP RBX,RCX JNZ 0x0014320b JMP 0x0014322a LAB_0014321e: MOV EBP,EDX LAB_00143220: MOV RDI,qword ptr [RSP + 0x50] CALL 0x0013a0c0 LAB_0014322a: MOV EAX,EBP ADD RSP,0x58 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceCompositeVTag(int, int) const */ uint __thiscall OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceCompositeVTag(Level *this,int param_1,int param_2) { ValueTag VVar1; ushort uVar2; FVarLevel *this_00; uint uVar3; ulong uVar4; uint uVar5; ulong uVar6; int *piVar7; ValueTag *local_88; ValueTag local_78 [64]; ValueTag *local_38; piVar7 = (int *)((long)*(int *)(*(long *)(this + 0x18) + (long)(param_1 * 2 + 1) * 4) * 4 + *(long *)(this + 0x30)); uVar5 = *(uint *)(*(long *)(this + 0x18) + (long)(param_1 * 2) * 4); uVar4 = (ulong)uVar5; if (param_2 < 0) { uVar3 = (uint)*(ushort *)(*(long *)(this + 0x1b0) + (long)*piVar7 * 2); if (1 < (int)uVar5) { uVar6 = 1; do { uVar3 = (uint)(ushort)((ushort)uVar3 | *(ushort *)(*(long *)(this + 0x1b0) + (long)piVar7[uVar6] * 2)); uVar6 = uVar6 + 1; } while (uVar4 != uVar6); } } else { this_00 = *(FVarLevel **)(*(long *)(this + 0x1c8) + (ulong)(uint)param_2 * 8); local_88 = local_78; local_38 = (ValueTag *)0x0; if (0x40 < uVar5) { local_88 = (ValueTag *)operator_new(uVar4); local_38 = local_88; } /* try { // try from 001430ac to 001430b6 has its CatchHandler @ 0014323b */ FVarLevel::getFaceValueTags(this_00,param_1,local_88); uVar2 = *(ushort *)(*(long *)(this + 0x1b0) + (long)*piVar7 * 2); uVar3 = (uint)uVar2; VVar1 = *local_88; if (((byte)VVar1 & 1) != 0) { uVar3 = 0x4000; if (((byte)VVar1 & 0x18) == 0) { uVar3 = (uint)((byte)VVar1 < 0x40) * 8 + 0x10; } uVar3 = (((uint)((byte)VVar1 >> 2) | (uint)uVar2) & 1) + (CONCAT11(VVar1,VVar1) & 0xffff8002 | uVar3 | uVar2 & 0x1860 | (uint)(((byte)VVar1 & 8) == 0) << 9) + 0x200 | 0x2004; } if (1 < (int)uVar5) { uVar6 = 1; do { uVar2 = *(ushort *)(*(long *)(this + 0x1b0) + (long)piVar7[uVar6] * 2); uVar5 = (uint)uVar2; VVar1 = local_88[uVar6]; if (((byte)VVar1 & 1) != 0) { uVar5 = (uint)((byte)VVar1 < 0x40) * 8 + 0x10; if (((byte)VVar1 & 0x18) != 0) { uVar5 = 0x4000; } uVar5 = (((uint)((byte)VVar1 >> 2) | (uint)uVar2) & 1) + (CONCAT11(VVar1,VVar1) & 0xffff8002 | uVar5 | uVar2 & 0x1860 | (uint)(((byte)VVar1 & 8) == 0) << 9) + 0x200 | 0x2004; } uVar3 = uVar5 | uVar3; uVar6 = uVar6 + 1; } while (uVar4 != uVar6); } operator_delete(local_38); } return uVar3; }
52,893
OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceCompositeVTag(int, int) const
NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/level.cpp
Level::VTag Level::getFaceCompositeVTag(Index fIndex, int fvarChannel) const { ConstIndexArray fVerts = getFaceVertices(fIndex); if (fvarChannel < 0) { return getFaceCompositeVTag(fVerts); } else { FVarLevel const & fvarLevel = getFVarLevel(fvarChannel); internal::StackBuffer<FVarLevel::ValueTag,64> fvarTags(fVerts.size()); fvarLevel.getFaceValueTags(fIndex, fvarTags); VTag::VTagSize tagBits = fvarTags[0].combineWithLevelVTag(_vertTags[fVerts[0]]).getBits(); for (int i = 1; i < fVerts.size(); ++i) { tagBits |= fvarTags[i].combineWithLevelVTag(_vertTags[fVerts[i]]).getBits(); } return VTag(tagBits); } }
O2
cpp
OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceCompositeVTag(int, int) const: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x68, %rsp movl %edx, %r12d movl %esi, %ebp movq %rdi, %rbx callq 0x52db0 movq %rax, (%rsp) movl %edx, 0x8(%rsp) testl %r12d, %r12d js 0x5bc10 movq %rax, %r14 movl %edx, %r15d movl %r12d, %eax movq 0x1c8(%rbx), %rcx movq (%rcx,%rax,8), %r12 leaq 0x10(%rsp), %r13 movq %r13, %rdi movl %edx, %esi callq 0x55ed0 movq (%r13), %rdx movq %r12, %rdi movl %ebp, %esi callq 0x53610 movq 0x10(%rsp), %rdi movslq (%r14), %rax movq 0x1b0(%rbx), %rcx movzwl (%rcx,%rax,2), %esi callq 0x55ab0 movl %eax, %ebp movslq %r15d, %r15 pushq $0x1 popq %r12 cmpq %r15, %r12 jge 0x5bc04 movq 0x10(%rsp), %rdi addq %r12, %rdi movslq (%r14,%r12,4), %rax movq 0x1b0(%rbx), %rcx movzwl (%rcx,%rax,2), %esi callq 0x55ab0 orl %ebp, %eax incq %r12 movl %eax, %ebp jmp 0x5bbda movq 0x60(%rsp), %rdi callq 0x524d0 jmp 0x5bc1d movq %rsp, %rsi movq %rbx, %rdi callq 0x55b30 movl %eax, %ebp movl %ebp, %eax addq $0x68, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x5bc32 jmp 0x5bc32 movq %rax, %rbx movq 0x60(%rsp), %rdi callq 0x524d0 movq %rbx, %rdi callq 0x55300 nop
_ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level20getFaceCompositeVTagEii: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 68h mov r12d, edx mov ebp, esi mov rbx, rdi call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level15getFaceVerticesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceVertices(int) mov [rsp+98h+var_98], rax mov [rsp+98h+var_90], edx test r12d, r12d js loc_5BC10 mov r14, rax mov r15d, edx mov eax, r12d mov rcx, [rbx+1C8h] mov r12, [rcx+rax*8] lea r13, [rsp+98h+var_88] mov rdi, r13 mov esi, edx call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferINS2_9FVarLevel8ValueTagELj64ELb0EEC2Ej; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag,64u,false>::StackBuffer(uint) mov rdx, [r13+0] mov rdi, r12; this mov esi, ebp; int call __ZNK10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel16getFaceValueTagsEiPNS3_8ValueTagE; OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::getFaceValueTags(int,OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag *) mov rdi, [rsp+98h+var_88] movsxd rax, dword ptr [r14] mov rcx, [rbx+1B0h] movzx esi, word ptr [rcx+rax*2] call __ZNK10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel8ValueTag20combineWithLevelVTagENS2_5Level4VTagE; OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag::combineWithLevelVTag(OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag) mov ebp, eax movsxd r15, r15d push 1 pop r12 loc_5BBDA: cmp r12, r15 jge short loc_5BC04 mov rdi, [rsp+98h+var_88] add rdi, r12 movsxd rax, dword ptr [r14+r12*4] mov rcx, [rbx+1B0h] movzx esi, word ptr [rcx+rax*2] call __ZNK10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel8ValueTag20combineWithLevelVTagENS2_5Level4VTagE; OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag::combineWithLevelVTag(OpenSubdiv::v3_6_0::Vtr::internal::Level::VTag) or eax, ebp inc r12 mov ebp, eax jmp short loc_5BBDA loc_5BC04: mov rdi, [rsp+98h+var_38]; void * call __ZdlPv; operator delete(void *) jmp short loc_5BC1D loc_5BC10: mov rsi, rsp mov rdi, rbx call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level20getFaceCompositeVTagERNS1_10ConstArrayIiEE; OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceCompositeVTag(OpenSubdiv::v3_6_0::Vtr::ConstArray<int> &) mov ebp, eax loc_5BC1D: mov eax, ebp add rsp, 68h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_5BC32 jmp short $+2 loc_5BC32: mov rbx, rax mov rdi, [rsp+arg_58]; void * call __ZdlPv; operator delete(void *) mov rdi, rbx call __Unwind_Resume
long long OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceCompositeVTag( OpenSubdiv::v3_6_0::Vtr::internal::Level *this, int a2, int a3) { int *FaceVertices; // rax unsigned int v5; // edx int *v6; // r14 unsigned int v7; // r15d OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel *v8; // r12 unsigned int v9; // ebp long long i; // r12 int v11; // eax unsigned int v12; // eax int *v14; // [rsp+0h] [rbp-98h] BYREF unsigned int v15; // [rsp+8h] [rbp-90h] _QWORD v16[17]; // [rsp+10h] [rbp-88h] BYREF FaceVertices = (int *)OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceVertices(this, a2); v14 = FaceVertices; v15 = v5; if ( a3 < 0 ) { LOWORD(v12) = OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceCompositeVTag((long long)this, &v14); return v12; } else { v6 = FaceVertices; v7 = v5; v8 = *(OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel **)(*((_QWORD *)this + 57) + 8LL * (unsigned int)a3); OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag,64u,false>::StackBuffer( v16, v5); OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::getFaceValueTags(v8, a2); v9 = OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag::combineWithLevelVTag( v16[0], *(unsigned __int16 *)(*((_QWORD *)this + 54) + 2LL * *v6)); for ( i = 1LL; i < (int)v7; ++i ) { v11 = OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag::combineWithLevelVTag( i + v16[0], *(unsigned __int16 *)(*((_QWORD *)this + 54) + 2LL * v6[i])); v9 |= v11; } operator delete((void *)v16[10]); } return v9; }
getFaceCompositeVTag: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x68 MOV R12D,EDX MOV EBP,ESI MOV RBX,RDI CALL 0x00152db0 MOV qword ptr [RSP],RAX MOV dword ptr [RSP + 0x8],EDX TEST R12D,R12D JS 0x0015bc10 MOV R14,RAX MOV R15D,EDX MOV EAX,R12D MOV RCX,qword ptr [RBX + 0x1c8] MOV R12,qword ptr [RCX + RAX*0x8] LEA R13,[RSP + 0x10] MOV RDI,R13 MOV ESI,EDX CALL 0x00155ed0 MOV RDX,qword ptr [R13] LAB_0015bbaf: MOV RDI,R12 MOV ESI,EBP CALL 0x00153610 MOV RDI,qword ptr [RSP + 0x10] MOVSXD RAX,dword ptr [R14] MOV RCX,qword ptr [RBX + 0x1b0] MOVZX ESI,word ptr [RCX + RAX*0x2] LAB_0015bbcc: CALL 0x00155ab0 MOV EBP,EAX MOVSXD R15,R15D PUSH 0x1 POP R12 LAB_0015bbda: CMP R12,R15 JGE 0x0015bc04 MOV RDI,qword ptr [RSP + 0x10] ADD RDI,R12 MOVSXD RAX,dword ptr [R14 + R12*0x4] MOV RCX,qword ptr [RBX + 0x1b0] MOVZX ESI,word ptr [RCX + RAX*0x2] LAB_0015bbf6: CALL 0x00155ab0 LAB_0015bbfb: OR EAX,EBP INC R12 MOV EBP,EAX JMP 0x0015bbda LAB_0015bc04: MOV RDI,qword ptr [RSP + 0x60] CALL 0x001524d0 JMP 0x0015bc1d LAB_0015bc10: MOV RSI,RSP MOV RDI,RBX CALL 0x00155b30 MOV EBP,EAX LAB_0015bc1d: MOV EAX,EBP ADD RSP,0x68 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceCompositeVTag(int, int) const */ uint __thiscall OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceCompositeVTag(Level *this,int param_1,int param_2) { FVarLevel *this_00; uint uVar1; uint uVar2; int *piVar3; uint uVar4; long lVar5; ConstArray local_98 [16]; ValueTag *local_88 [10]; void *local_38; local_98._0_12_ = getFaceVertices(this,param_1); uVar4 = SUB124(local_98._0_12_,8); piVar3 = SUB128(local_98._0_12_,0); if (param_2 < 0) { uVar1 = getFaceCompositeVTag(this,local_98); } else { this_00 = *(FVarLevel **)(*(long *)(this + 0x1c8) + (ulong)(uint)param_2 * 8); StackBuffer<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag,64u,false>::StackBuffer ((StackBuffer<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag,64u,false> *) local_88,uVar4); /* try { // try from 0015bbaf to 0015bbb8 has its CatchHandler @ 0015bc30 */ FVarLevel::getFaceValueTags(this_00,param_1,local_88[0]); /* try { // try from 0015bbcc to 0015bbd0 has its CatchHandler @ 0015bc2e */ uVar1 = FVarLevel::ValueTag::combineWithLevelVTag (local_88[0],*(int2 *)(*(long *)(this + 0x1b0) + (long)*piVar3 * 2)); for (lVar5 = 1; lVar5 < (int)uVar4; lVar5 = lVar5 + 1) { /* try { // try from 0015bbf6 to 0015bbfa has its CatchHandler @ 0015bc32 */ uVar2 = FVarLevel::ValueTag::combineWithLevelVTag (local_88[0] + lVar5, *(int2 *)(*(long *)(this + 0x1b0) + (long)piVar3[lVar5] * 2)); uVar1 = uVar2 | uVar1; } operator_delete(local_38); } return uVar1; }
52,894
OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceCompositeVTag(int, int) const
NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/level.cpp
Level::VTag Level::getFaceCompositeVTag(Index fIndex, int fvarChannel) const { ConstIndexArray fVerts = getFaceVertices(fIndex); if (fvarChannel < 0) { return getFaceCompositeVTag(fVerts); } else { FVarLevel const & fvarLevel = getFVarLevel(fvarChannel); internal::StackBuffer<FVarLevel::ValueTag,64> fvarTags(fVerts.size()); fvarLevel.getFaceValueTags(fIndex, fvarTags); VTag::VTagSize tagBits = fvarTags[0].combineWithLevelVTag(_vertTags[fVerts[0]]).getBits(); for (int i = 1; i < fVerts.size(); ++i) { tagBits |= fvarTags[i].combineWithLevelVTag(_vertTags[fVerts[i]]).getBits(); } return VTag(tagBits); } }
O3
cpp
OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceCompositeVTag(int, int) const: pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x60, %rsp movl %esi, %r15d movq %rdi, %r14 leal 0x1(%r15,%r15), %eax cltq movq 0x18(%rdi), %rcx movslq (%rcx,%rax,4), %r13 shlq $0x2, %r13 addq 0x30(%rdi), %r13 leal (%r15,%r15), %eax cltq movl (%rcx,%rax,4), %ebx testl %edx, %edx js 0x44566 movl %edx, %eax movq 0x1c8(%r14), %rcx movq (%rcx,%rax,8), %r12 leaq 0x18(%rsp), %rdx movq %rdx, -0x10(%rdx) movl %ebx, -0x8(%rdx) movl $0x40, -0x4(%rdx) movq $0x0, 0x40(%rdx) cmpl $0x41, %ebx jb 0x4450d movq %rbx, %rdi callq 0x3a210 movq %rax, %rdx movq %rax, 0x58(%rsp) movq %rax, 0x8(%rsp) movl %ebx, 0x14(%rsp) movq %r12, %rdi movl %r15d, %esi callq 0x3aa80 movq 0x8(%rsp), %rax movslq (%r13), %rdx movq 0x1b0(%r14), %rcx movzwl (%rcx,%rdx,2), %edx movzbl (%rax), %esi testb $0x1, %sil je 0x445e5 andl $0xf87f, %edx # imm = 0xF87F leal 0x400(%rdx), %edi testb $0x18, %sil je 0x4459b orl $0x200, %edx # imm = 0x200 testb $0x8, %sil cmovnel %edx, %edi andl $0xffffbe67, %edi # imm = 0xFFFFBE67 orl $0x4000, %edi # imm = 0x4000 jmp 0x445b0 movslq (%r13), %rcx movq 0x1b0(%r14), %rax movzwl (%rax,%rcx,2), %r14d cmpl $0x2, %ebx jl 0x446b4 movl $0x1, %ecx movslq (%r13,%rcx,4), %rdx orw (%rax,%rdx,2), %r14w incq %rcx cmpq %rcx, %rbx jne 0x44584 jmp 0x446b4 andl $0xffffbc67, %edi # imm = 0xFFFFBC67 xorl %edx, %edx cmpb $0x40, %sil setb %dl leal (%rdi,%rdx,8), %edi addl $0x10, %edi movzwl %si, %edx movl %edx, %r8d shll $0x8, %r8d orl %edx, %r8d movl %edi, %edx andl $0x5ff8, %edx # imm = 0x5FF8 andl $0x8002, %r8d # imm = 0x8002 orl %edx, %r8d shrb $0x2, %sil movzbl %sil, %edx orl %edi, %edx andl $0x1, %edx addl %r8d, %edx addl $0x2004, %edx # imm = 0x2004 cmpl $0x2, %ebx jl 0x446a7 movl $0x1, %esi movslq (%r13,%rsi,4), %rdi movzwl (%rcx,%rdi,2), %r14d movzbl (%rax,%rsi), %edi testb $0x1, %dil je 0x44693 andl $0xf87f, %r14d # imm = 0xF87F leal 0x400(%r14), %r8d testb $0x18, %dil je 0x4463e orl $0x200, %r14d # imm = 0x200 testb $0x8, %dil cmovnel %r14d, %r8d andl $0xffffbe67, %r8d # imm = 0xFFFFBE67 orl $0x4000, %r8d # imm = 0x4000 jmp 0x44658 andl $0xffffbc67, %r8d # imm = 0xFFFFBC67 xorl %r9d, %r9d cmpb $0x40, %dil setb %r9b leal (%r8,%r9,8), %r8d addl $0x10, %r8d movzwl %di, %r9d movl %r9d, %r10d shll $0x8, %r10d orl %r9d, %r10d movl %r8d, %r9d andl $0x5ff8, %r9d # imm = 0x5FF8 andl $0x8002, %r10d # imm = 0x8002 orl %r9d, %r10d shrb $0x2, %dil movzbl %dil, %edi orl %r8d, %edi andl $0x1, %edi leal (%rdi,%r10), %r14d addl $0x2004, %r14d # imm = 0x2004 orl %edx, %r14d incq %rsi movl %r14d, %edx cmpq %rsi, %rbx jne 0x445f3 jmp 0x446aa movl %edx, %r14d movq 0x58(%rsp), %rdi callq 0x3a0a0 movl %r14d, %eax addq $0x60, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq movq %rax, %rbx movq 0x58(%rsp), %rdi callq 0x3a0a0 movq %rbx, %rdi callq 0x3bd30
_ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level20getFaceCompositeVTagEii: push r15 push r14 push r13 push r12 push rbx sub rsp, 60h mov r15d, esi mov r14, rdi lea eax, [r15+r15+1] cdqe mov rcx, [rdi+18h] movsxd r13, dword ptr [rcx+rax*4] shl r13, 2 add r13, [rdi+30h] lea eax, [r15+r15] cdqe mov ebx, [rcx+rax*4] test edx, edx js loc_44566 mov eax, edx mov rcx, [r14+1C8h] mov r12, [rcx+rax*8] lea rdx, [rsp+88h+var_70] mov [rdx-10h], rdx mov [rdx-8], ebx mov dword ptr [rdx-4], 40h ; '@' mov qword ptr [rdx+40h], 0 cmp ebx, 41h ; 'A' jb short loc_4450D mov rdi, rbx; unsigned __int64 call __Znwm; operator new(ulong) mov rdx, rax mov [rsp+88h+var_30], rax mov [rsp+88h+var_80], rax mov [rsp+88h+var_74], ebx loc_4450D: mov rdi, r12 mov esi, r15d call __ZNK10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel16getFaceValueTagsEiPNS3_8ValueTagE; OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::getFaceValueTags(int,OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag *) mov rax, [rsp+88h+var_80] movsxd rdx, dword ptr [r13+0] mov rcx, [r14+1B0h] movzx edx, word ptr [rcx+rdx*2] movzx esi, byte ptr [rax] test sil, 1 jz loc_445E5 and edx, 0F87Fh lea edi, [rdx+400h] test sil, 18h jz short loc_4459B or edx, 200h test sil, 8 cmovnz edi, edx and edi, 0FFFFBE67h or edi, 4000h jmp short loc_445B0 loc_44566: movsxd rcx, dword ptr [r13+0] mov rax, [r14+1B0h] movzx r14d, word ptr [rax+rcx*2] cmp ebx, 2 jl loc_446B4 mov ecx, 1 loc_44584: movsxd rdx, dword ptr [r13+rcx*4+0] or r14w, [rax+rdx*2] inc rcx cmp rbx, rcx jnz short loc_44584 jmp loc_446B4 loc_4459B: and edi, 0FFFFBC67h xor edx, edx cmp sil, 40h ; '@' setb dl lea edi, [rdi+rdx*8] add edi, 10h loc_445B0: movzx edx, si mov r8d, edx shl r8d, 8 or r8d, edx mov edx, edi and edx, 5FF8h and r8d, 8002h or r8d, edx shr sil, 2 movzx edx, sil or edx, edi and edx, 1 add edx, r8d add edx, 2004h loc_445E5: cmp ebx, 2 jl loc_446A7 mov esi, 1 loc_445F3: movsxd rdi, dword ptr [r13+rsi*4+0] movzx r14d, word ptr [rcx+rdi*2] movzx edi, byte ptr [rax+rsi] test dil, 1 jz loc_44693 and r14d, 0F87Fh lea r8d, [r14+400h] test dil, 18h jz short loc_4463E or r14d, 200h test dil, 8 cmovnz r8d, r14d and r8d, 0FFFFBE67h or r8d, 4000h jmp short loc_44658 loc_4463E: and r8d, 0FFFFBC67h xor r9d, r9d cmp dil, 40h ; '@' setb r9b lea r8d, [r8+r9*8] add r8d, 10h loc_44658: movzx r9d, di mov r10d, r9d shl r10d, 8 or r10d, r9d mov r9d, r8d and r9d, 5FF8h and r10d, 8002h or r10d, r9d shr dil, 2 movzx edi, dil or edi, r8d and edi, 1 lea r14d, [rdi+r10] add r14d, 2004h loc_44693: or r14d, edx inc rsi mov edx, r14d cmp rbx, rsi jnz loc_445F3 jmp short loc_446AA loc_446A7: mov r14d, edx loc_446AA: mov rdi, [rsp+88h+var_30]; void * call __ZdlPv; operator delete(void *) loc_446B4: mov eax, r14d add rsp, 60h pop rbx pop r12 pop r13 pop r14 pop r15 retn mov rbx, rax mov rdi, [rsp+arg_50]; void * call __ZdlPv; operator delete(void *) mov rdi, rbx call __Unwind_Resume
long long OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceCompositeVTag( OpenSubdiv::v3_6_0::Vtr::internal::Level *this, int a2, int a3) { long long v3; // rcx int *v4; // r13 unsigned long long v5; // rbx _QWORD *v6; // r12 _BYTE *v7; // rdx long long v8; // rcx int v9; // edx unsigned __int16 v10; // si __int16 v11; // dx __int16 v12; // di __int16 v13; // dx __int16 v14; // di long long v15; // rax unsigned int v16; // r14d long long i; // rcx long long j; // rsi int v19; // r14d unsigned __int16 v20; // di __int16 v21; // r14 __int16 v22; // r8 __int16 v23; // r14 __int16 v24; // r8 unsigned __int8 *v26; // [rsp+8h] [rbp-80h] _BYTE v27[64]; // [rsp+18h] [rbp-70h] BYREF void *v28; // [rsp+58h] [rbp-30h] v3 = *((_QWORD *)this + 3); v4 = (int *)(*((_QWORD *)this + 6) + 4LL * *(int *)(v3 + 4LL * (2 * a2 + 1))); v5 = *(unsigned int *)(v3 + 8LL * a2); if ( a3 < 0 ) { v15 = *((_QWORD *)this + 54); v16 = *(unsigned __int16 *)(v15 + 2LL * *v4); if ( (int)v5 >= 2 ) { for ( i = 1LL; i != v5; ++i ) LOWORD(v16) = *(_WORD *)(v15 + 2LL * v4[i]) | v16; } } else { v6 = *(_QWORD **)(*((_QWORD *)this + 57) + 8LL * (unsigned int)a3); v7 = v27; v26 = v27; v28 = 0LL; if ( (unsigned int)v5 >= 0x41 ) { v7 = (_BYTE *)operator new(v5); v28 = v7; v26 = v7; } OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::getFaceValueTags(v6, a2, (long long)v7); v8 = *((_QWORD *)this + 54); v9 = *(unsigned __int16 *)(v8 + 2LL * *v4); v10 = *v26; if ( (v10 & 1) != 0 ) { v11 = v9 & 0xF87F; v12 = v11 + 1024; if ( (v10 & 0x18) != 0 ) { v13 = v11 | 0x200; if ( (v10 & 8) != 0 ) v12 = v13; v14 = v12 & 0xBE67 | 0x4000; } else { v14 = (v12 & 0xBC67) + 8 * ((unsigned __int8)v10 < 0x40u) + 16; } v9 = (v14 & 0x5FF8 | (v10 | (unsigned __int16)(v10 << 8)) & 0x8002) + (v14 & 1 | ((v10 & 4) != 0)) + 8196; } if ( (int)v5 < 2 ) { v16 = v9; } else { for ( j = 1LL; j != v5; ++j ) { v19 = *(unsigned __int16 *)(v8 + 2LL * v4[j]); v20 = v26[j]; if ( (v20 & 1) != 0 ) { v21 = v19 & 0xF87F; v22 = v21 + 1024; if ( (v20 & 0x18) != 0 ) { v23 = v21 | 0x200; if ( (v20 & 8) != 0 ) v22 = v23; v24 = v22 & 0xBE67 | 0x4000; } else { v24 = (v22 & 0xBC67) + 8 * ((unsigned __int8)v20 < 0x40u) + 16; } v19 = (v24 & 1 | ((v20 & 4) != 0)) + (v24 & 0x5FF8 | (v20 | (unsigned __int16)(v20 << 8)) & 0x8002) + 8196; } v16 = v9 | v19; v9 = v16; } } operator delete(v28); } return v16; }
getFaceCompositeVTag: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x60 MOV R15D,ESI MOV R14,RDI LEA EAX,[R15 + R15*0x1 + 0x1] CDQE MOV RCX,qword ptr [RDI + 0x18] MOVSXD R13,dword ptr [RCX + RAX*0x4] SHL R13,0x2 ADD R13,qword ptr [RDI + 0x30] LEA EAX,[R15 + R15*0x1] CDQE MOV EBX,dword ptr [RCX + RAX*0x4] TEST EDX,EDX JS 0x00144566 MOV EAX,EDX MOV RCX,qword ptr [R14 + 0x1c8] MOV R12,qword ptr [RCX + RAX*0x8] LEA RDX,[RSP + 0x18] MOV qword ptr [RDX + -0x10],RDX MOV dword ptr [RDX + -0x8],EBX MOV dword ptr [RDX + -0x4],0x40 MOV qword ptr [RDX + 0x40],0x0 CMP EBX,0x41 JC 0x0014450d MOV RDI,RBX CALL 0x0013a210 MOV RDX,RAX MOV qword ptr [RSP + 0x58],RAX MOV qword ptr [RSP + 0x8],RAX MOV dword ptr [RSP + 0x14],EBX LAB_0014450d: MOV RDI,R12 MOV ESI,R15D CALL 0x0013aa80 LAB_00144518: MOV RAX,qword ptr [RSP + 0x8] MOVSXD RDX,dword ptr [R13] MOV RCX,qword ptr [R14 + 0x1b0] MOVZX EDX,word ptr [RCX + RDX*0x2] MOVZX ESI,byte ptr [RAX] TEST SIL,0x1 JZ 0x001445e5 AND EDX,0xf87f LEA EDI,[RDX + 0x400] TEST SIL,0x18 JZ 0x0014459b OR EDX,0x200 TEST SIL,0x8 CMOVNZ EDI,EDX AND EDI,0xffffbe67 OR EDI,0x4000 JMP 0x001445b0 LAB_00144566: MOVSXD RCX,dword ptr [R13] MOV RAX,qword ptr [R14 + 0x1b0] MOVZX R14D,word ptr [RAX + RCX*0x2] CMP EBX,0x2 JL 0x001446b4 MOV ECX,0x1 LAB_00144584: MOVSXD RDX,dword ptr [R13 + RCX*0x4] OR R14W,word ptr [RAX + RDX*0x2] INC RCX CMP RBX,RCX JNZ 0x00144584 JMP 0x001446b4 LAB_0014459b: AND EDI,0xffffbc67 XOR EDX,EDX CMP SIL,0x40 SETC DL LEA EDI,[RDI + RDX*0x8] ADD EDI,0x10 LAB_001445b0: MOVZX EDX,SI MOV R8D,EDX SHL R8D,0x8 OR R8D,EDX MOV EDX,EDI AND EDX,0x5ff8 AND R8D,0x8002 OR R8D,EDX SHR SIL,0x2 MOVZX EDX,SIL OR EDX,EDI AND EDX,0x1 ADD EDX,R8D ADD EDX,0x2004 LAB_001445e5: CMP EBX,0x2 JL 0x001446a7 MOV ESI,0x1 LAB_001445f3: MOVSXD RDI,dword ptr [R13 + RSI*0x4] MOVZX R14D,word ptr [RCX + RDI*0x2] MOVZX EDI,byte ptr [RAX + RSI*0x1] TEST DIL,0x1 JZ 0x00144693 AND R14D,0xf87f LEA R8D,[R14 + 0x400] TEST DIL,0x18 JZ 0x0014463e OR R14D,0x200 TEST DIL,0x8 CMOVNZ R8D,R14D AND R8D,0xffffbe67 OR R8D,0x4000 JMP 0x00144658 LAB_0014463e: AND R8D,0xffffbc67 XOR R9D,R9D CMP DIL,0x40 SETC R9B LEA R8D,[R8 + R9*0x8] ADD R8D,0x10 LAB_00144658: MOVZX R9D,DI MOV R10D,R9D SHL R10D,0x8 OR R10D,R9D MOV R9D,R8D AND R9D,0x5ff8 AND R10D,0x8002 OR R10D,R9D SHR DIL,0x2 MOVZX EDI,DIL OR EDI,R8D AND EDI,0x1 LEA R14D,[RDI + R10*0x1] ADD R14D,0x2004 LAB_00144693: OR R14D,EDX INC RSI MOV EDX,R14D CMP RBX,RSI JNZ 0x001445f3 JMP 0x001446aa LAB_001446a7: MOV R14D,EDX LAB_001446aa: MOV RDI,qword ptr [RSP + 0x58] CALL 0x0013a0a0 LAB_001446b4: MOV EAX,R14D ADD RSP,0x60 POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceCompositeVTag(int, int) const */ uint __thiscall OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceCompositeVTag(Level *this,int param_1,int param_2) { ValueTag VVar1; ushort uVar2; FVarLevel *this_00; ValueTag *pVVar3; uint uVar4; ulong uVar5; ulong uVar6; uint uVar7; uint uVar8; int *piVar9; ValueTag local_70 [64]; ValueTag *local_30; piVar9 = (int *)((long)*(int *)(*(long *)(this + 0x18) + (long)(param_1 * 2 + 1) * 4) * 4 + *(long *)(this + 0x30)); uVar8 = *(uint *)(*(long *)(this + 0x18) + (long)(param_1 * 2) * 4); uVar5 = (ulong)uVar8; if (param_2 < 0) { uVar7 = (uint)*(ushort *)(*(long *)(this + 0x1b0) + (long)*piVar9 * 2); if (1 < (int)uVar8) { uVar6 = 1; do { uVar7 = (uint)(ushort)((ushort)uVar7 | *(ushort *)(*(long *)(this + 0x1b0) + (long)piVar9[uVar6] * 2)); uVar6 = uVar6 + 1; } while (uVar5 != uVar6); } } else { this_00 = *(FVarLevel **)(*(long *)(this + 0x1c8) + (ulong)(uint)param_2 * 8); pVVar3 = local_70; local_30 = (ValueTag *)0x0; if (0x40 < uVar8) { pVVar3 = (ValueTag *)operator_new(uVar5); local_30 = pVVar3; } /* try { // try from 0014450d to 00144517 has its CatchHandler @ 001446c5 */ FVarLevel::getFaceValueTags(this_00,param_1,pVVar3); uVar2 = *(ushort *)(*(long *)(this + 0x1b0) + (long)*piVar9 * 2); uVar7 = (uint)uVar2; VVar1 = *pVVar3; if (((byte)VVar1 & 1) != 0) { uVar4 = uVar2 & 0xf87f; uVar7 = uVar4 + 0x400; if (((byte)VVar1 & 0x18) == 0) { uVar7 = (uVar7 & 0xffffbc67) + (uint)((byte)VVar1 < 0x40) * 8 + 0x10; } else { if (((byte)VVar1 & 8) != 0) { uVar7 = uVar4 | 0x200; } uVar7 = uVar7 & 0xffffbe67 | 0x4000; } uVar7 = (((byte)VVar1 >> 2 | uVar7) & 1) + (CONCAT11(VVar1,VVar1) & 0x8002 | uVar7 & 0x5ff8) + 0x2004; } if (1 < (int)uVar8) { uVar6 = 1; do { uVar2 = *(ushort *)(*(long *)(this + 0x1b0) + (long)piVar9[uVar6] * 2); uVar8 = (uint)uVar2; VVar1 = pVVar3[uVar6]; if (((byte)VVar1 & 1) != 0) { uVar4 = uVar2 & 0xf87f; uVar8 = uVar4 + 0x400; if (((byte)VVar1 & 0x18) == 0) { uVar8 = (uVar8 & 0xffffbc67) + (uint)((byte)VVar1 < 0x40) * 8 + 0x10; } else { if (((byte)VVar1 & 8) != 0) { uVar8 = uVar4 | 0x200; } uVar8 = uVar8 & 0xffffbe67 | 0x4000; } uVar8 = (((byte)VVar1 >> 2 | uVar8) & 1) + (CONCAT11(VVar1,VVar1) & 0x8002 | uVar8 & 0x5ff8) + 0x2004; } uVar7 = uVar8 | uVar7; uVar6 = uVar6 + 1; } while (uVar5 != uVar6); } operator_delete(local_30); } return uVar7; }
52,895
mi_ft_segiterator_dummy_init
eloqsql/storage/myisam/ft_update.c
void _mi_ft_segiterator_dummy_init(const uchar *record, uint len, FT_SEG_ITERATOR *ftsi) { DBUG_ENTER("_mi_ft_segiterator_dummy_init"); ftsi->num=1; ftsi->seg=0; ftsi->pos=record; ftsi->len=len; DBUG_VOID_RETURN; }
O0
c
mi_ft_segiterator_dummy_init: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq %rdx, -0x18(%rbp) movq -0x18(%rbp), %rax movl $0x1, (%rax) movq -0x18(%rbp), %rax movq $0x0, 0x8(%rax) movq -0x8(%rbp), %rcx movq -0x18(%rbp), %rax movq %rcx, 0x18(%rax) movl -0xc(%rbp), %ecx movq -0x18(%rbp), %rax movl %ecx, 0x4(%rax) jmp 0xcd01d popq %rbp retq nop
_mi_ft_segiterator_dummy_init: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_18], rdx mov rax, [rbp+var_18] mov dword ptr [rax], 1 mov rax, [rbp+var_18] mov qword ptr [rax+8], 0 mov rcx, [rbp+var_8] mov rax, [rbp+var_18] mov [rax+18h], rcx mov ecx, [rbp+var_C] mov rax, [rbp+var_18] mov [rax+4], ecx jmp short $+2 loc_CD01D: pop rbp retn
long long mi_ft_segiterator_dummy_init(long long a1, int a2, long long a3) { long long result; // rax *(_DWORD *)a3 = 1; *(_QWORD *)(a3 + 8) = 0LL; *(_QWORD *)(a3 + 24) = a1; result = a3; *(_DWORD *)(a3 + 4) = a2; return result; }
_mi_ft_segiterator_dummy_init: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV qword ptr [RBP + -0x18],RDX MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX],0x1 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x8],0x0 MOV RCX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x18],RCX MOV ECX,dword ptr [RBP + -0xc] MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0x4],ECX JMP 0x001cd01d LAB_001cd01d: POP RBP RET
void _mi_ft_segiterator_dummy_init(int8 param_1,int4 param_2,int4 *param_3) { *param_3 = 1; *(int8 *)(param_3 + 2) = 0; *(int8 *)(param_3 + 6) = param_1; param_3[1] = param_2; return; }
52,896
kv_cache_type_from_str(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
monkey531[P]llama/common/arg.cpp
static ggml_type kv_cache_type_from_str(const std::string & s) { for (const auto & type : kv_cache_types) { if (ggml_type_name(type) == s) { return type; } } throw std::runtime_error("Unsupported cache type: " + s); }
O1
cpp
kv_cache_type_from_str(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x20, %rsp movq %rdi, %rbx movq 0x1ffebc(%rip), %r12 # 0x2d56b0 movq 0x1ffebd(%rip), %r15 # 0x2d56b8 cmpq %r15, %r12 sete %r14b je 0xd5855 movl (%r12), %edi callq 0x1f9f0 movq %rbx, %rdi movq %rax, %rsi callq 0x1f2b0 movl (%r12), %ebp testl %eax, %eax je 0xd5855 addq $0x4, %r12 cmpq %r15, %r12 sete %r14b je 0xd5855 movl (%r12), %edi callq 0x1f9f0 movq %rbx, %rdi movq %rax, %rsi callq 0x1f2b0 leaq 0x4(%r12), %rcx testl %eax, %eax jne 0xd584e movl (%r12), %ebp movq %rcx, %r12 jne 0xd5824 jmp 0xd5855 testb %r14b, %r14b jne 0xd5869 movl %ebp, %eax addq $0x20, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movl $0x10, %edi callq 0x1f550 movq %rax, %r14 leaq 0x848b3(%rip), %rsi # 0x15a130 movq %rsp, %rdi movq %rbx, %rdx callq 0x4758d movb $0x1, %bpl movq %rsp, %rsi movq %r14, %rdi callq 0x20190 xorl %ebp, %ebp movq 0xd5749(%rip), %rsi # 0x1aafe8 movq 0xd56b2(%rip), %rdx # 0x1aaf58 movq %r14, %rdi callq 0x202e0 movq %rax, %rbx leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xd58d4 movq 0x10(%rsp), %rsi incq %rsi callq 0x1fae0 jmp 0xd58d4 movq %rax, %rbx movb $0x1, %bpl testb %bpl, %bpl je 0xd58e1 movq %r14, %rdi callq 0x1f7e0 movq %rbx, %rdi callq 0x20380 nop
_ZL22kv_cache_type_from_strRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push rbp push r15 push r14 push r12 push rbx sub rsp, 20h mov rbx, rdi mov r12, cs:_ZL14kv_cache_types; kv_cache_types mov r15, cs:qword_2D56B8 cmp r12, r15 setz r14b jz short loc_D5855 mov edi, [r12] call _ggml_type_name mov rdi, rbx mov rsi, rax call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) mov ebp, [r12] test eax, eax jz short loc_D5855 add r12, 4 loc_D5824: cmp r12, r15 setz r14b jz short loc_D5855 mov edi, [r12] call _ggml_type_name mov rdi, rbx mov rsi, rax call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) lea rcx, [r12+4] test eax, eax jnz short loc_D584E mov ebp, [r12] loc_D584E: mov r12, rcx jnz short loc_D5824 jmp short $+2 loc_D5855: test r14b, r14b jnz short loc_D5869 mov eax, ebp add rsp, 20h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_D5869: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aUnsupportedCac; "Unsupported cache type: " mov rdi, rsp mov rdx, rbx call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_; std::operator+<char>(char const*,std::string const&) mov bpl, 1 mov rsi, rsp mov rdi, r14 call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) xor ebp, ebp mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, r14; void * call ___cxa_throw mov rbx, rax lea rax, [rsp+48h+var_38] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_D58D4 mov rsi, [rsp+48h+var_38] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_D58D4 mov rbx, rax mov bpl, 1 loc_D58D4: test bpl, bpl jz short loc_D58E1 mov rdi, r14; void * call ___cxa_free_exception loc_D58E1: mov rdi, rbx call __Unwind_Resume
long long kv_cache_type_from_str(_QWORD *a1) { unsigned int v1; // ebp unsigned int *v2; // r12 long long v3; // r15 bool v4; // r14 long long v5; // rax int v6; // eax unsigned int *v7; // r12 long long v8; // rax int v9; // eax void *exception; // r14 _BYTE v12[16]; // [rsp+0h] [rbp-48h] BYREF v2 = (unsigned int *)kv_cache_types; v3 = qword_2D56B8; v4 = kv_cache_types == qword_2D56B8; if ( kv_cache_types != qword_2D56B8 ) { v5 = ggml_type_name(*(unsigned int *)kv_cache_types); v6 = std::string::compare(a1, v5); v1 = *v2; if ( v6 ) { v7 = v2 + 1; do { v4 = v7 == (unsigned int *)v3; if ( v7 == (unsigned int *)v3 ) break; v8 = ggml_type_name(*v7); v9 = std::string::compare(a1, v8); if ( !v9 ) v1 = *v7; ++v7; } while ( v9 ); } } if ( v4 ) { exception = __cxa_allocate_exception(0x10uLL); std::operator+<char>((long long)v12, (long long)"Unsupported cache type: ", a1); std::runtime_error::runtime_error(exception, v12); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } return v1; }
kv_cache_type_from_str: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x20 MOV RBX,RDI MOV R12,qword ptr [0x003d56b0] MOV R15,qword ptr [0x003d56b8] CMP R12,R15 SETZ R14B JZ 0x001d5855 MOV EDI,dword ptr [R12] CALL 0x0011f9f0 MOV RDI,RBX MOV RSI,RAX CALL 0x0011f2b0 MOV EBP,dword ptr [R12] TEST EAX,EAX JZ 0x001d5855 ADD R12,0x4 LAB_001d5824: CMP R12,R15 SETZ R14B JZ 0x001d5855 MOV EDI,dword ptr [R12] CALL 0x0011f9f0 MOV RDI,RBX MOV RSI,RAX CALL 0x0011f2b0 LEA RCX,[R12 + 0x4] TEST EAX,EAX JNZ 0x001d584e MOV EBP,dword ptr [R12] LAB_001d584e: MOV R12,RCX JNZ 0x001d5824 JMP 0x001d5855 LAB_001d5855: TEST R14B,R14B JNZ 0x001d5869 MOV EAX,EBP ADD RSP,0x20 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_001d5869: MOV EDI,0x10 CALL 0x0011f550 MOV R14,RAX LAB_001d5876: LEA RSI,[0x25a130] MOV RDI,RSP MOV RDX,RBX CALL 0x0014758d MOV BPL,0x1 LAB_001d588b: MOV RSI,RSP MOV RDI,R14 CALL 0x00120190 XOR EBP,EBP MOV RSI,qword ptr [0x002aafe8] MOV RDX,qword ptr [0x002aaf58] MOV RDI,R14 CALL 0x001202e0
/* kv_cache_type_from_str(std::__cxx11::string const&) */ int4 kv_cache_type_from_str(string *param_1) { int4 *puVar1; int iVar2; runtime_error *this; int4 unaff_EBP; int4 *puVar3; bool bVar4; string asStack_48 [32]; puVar1 = DAT_003d56b8; puVar3 = kv_cache_types; bVar4 = kv_cache_types == DAT_003d56b8; if (!bVar4) { ggml_type_name(*kv_cache_types); iVar2 = std::__cxx11::string::compare((char *)param_1); unaff_EBP = *puVar3; if (iVar2 != 0) { do { puVar3 = puVar3 + 1; bVar4 = puVar3 == puVar1; if (bVar4) goto LAB_001d5855; ggml_type_name(*puVar3); iVar2 = std::__cxx11::string::compare((char *)param_1); } while (iVar2 != 0); unaff_EBP = *puVar3; } } LAB_001d5855: if (!bVar4) { return unaff_EBP; } this = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001d5876 to 001d5887 has its CatchHandler @ 001d58ce */ std::operator+((char *)asStack_48,(string *)"Unsupported cache type: "); /* try { // try from 001d588b to 001d58ad has its CatchHandler @ 001d58ae */ std::runtime_error::runtime_error(this,asStack_48); /* WARNING: Subroutine does not return */ __cxa_throw(this,PTR_typeinfo_002aafe8,PTR__runtime_error_002aaf58); }
52,897
void nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&, 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>::number_float_t)
monkey531[P]llama/common/json.hpp
static void construct(BasicJsonType& j, typename BasicJsonType::number_float_t val) noexcept { j.m_data.m_value.destroy(j.m_data.m_type); j.m_data.m_type = value_t::number_float; j.m_data.m_value = val; j.assert_invariant(); }
O1
cpp
void nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&, 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>::number_float_t): pushq %rbx subq $0x10, %rsp movsd %xmm0, (%rsp) movq %rdi, %rbx addq $0x8, %rdi movzbl (%rbx), %esi callq 0x44452 movb $0x7, (%rbx) movsd (%rsp), %xmm0 movsd %xmm0, 0x8(%rsp) movq 0x8(%rsp), %rax movq %rax, 0x8(%rbx) movq %rbx, %rdi movl $0x1, %esi addq $0x10, %rsp popq %rbx jmp 0x4326e movq %rax, %rdi callq 0x20d37
_ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE7EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_14number_float_tE: push rbx sub rsp, 10h movsd [rsp+18h+var_18], xmm0 mov rbx, rdi add rdi, 8 movzx esi, byte ptr [rbx] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10json_value7destroyENS0_6detail7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t) mov byte ptr [rbx], 7 movsd xmm0, [rsp+18h+var_18] movsd [rsp+18h+var_10], xmm0 mov rax, [rsp+18h+var_10] mov [rbx+8], rax mov rdi, rbx mov esi, 1 add rsp, 10h pop rbx jmp _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, rax call __clang_call_terminate
long long nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( unsigned __int8 *a1, double a2) { long long result; // rax nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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 + 1, *a1); *a1 = 7; result = *(_QWORD *)&a2; *((double *)a1 + 1) = a2; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1); return result; }
construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>: PUSH RBX SUB RSP,0x10 MOVSD qword ptr [RSP],XMM0 MOV RBX,RDI ADD RDI,0x8 MOVZX ESI,byte ptr [RBX] LAB_00144d80: CALL 0x00144452 MOV byte ptr [RBX],0x7 MOVSD XMM0,qword ptr [RSP] MOVSD qword ptr [RSP + 0x8],XMM0 MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RBX + 0x8],RAX MOV RDI,RBX MOV ESI,0x1 ADD RSP,0x10 POP RBX JMP 0x0014326e
/* void nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>::number_float_t) */ void nlohmann::json_abi_v3_11_3::detail:: external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>:: construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (int8 param_1_00,int1 *param_1) { /* try { // try from 00144d80 to 00144d84 has its CatchHandler @ 00144dae */ basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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 *)(param_1 + 8),*param_1); *param_1 = 7; *(int8 *)(param_1 + 8) = param_1_00; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(param_1,0)); return; }
52,898
my_close
eloqsql/mysys/my_open.c
int my_close(File fd, myf MyFlags) { int err; char *name= NULL; DBUG_ENTER("my_close"); DBUG_PRINT("my",("fd: %d MyFlags: %lu",fd, MyFlags)); if (!(MyFlags & (MY_WME | MY_FAE))) MyFlags|= my_global_flags; if ((uint) fd < my_file_limit && my_file_info[fd].type != UNOPEN) { name= my_file_info[fd].name; my_file_info[fd].name= NULL; my_file_info[fd].type= UNOPEN; } #ifndef _WIN32 err= close(fd); #else err= my_win_close(fd); #endif if (err) { DBUG_PRINT("error",("Got error %d on close",err)); my_errno=errno; if (MyFlags & (MY_FAE | MY_WME)) my_error(EE_BADCLOSE, MYF(ME_BELL | (MyFlags & (ME_NOTE | ME_ERROR_LOG))), name,errno); } if (name) { my_free(name); } my_atomic_add32_explicit(&my_file_opened, -1, MY_MEMORY_ORDER_RELAXED); DBUG_RETURN(err); }
O3
c
my_close: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %r12 xorl %ebx, %ebx movl $0x0, %r14d testb $0x18, %r12b jne 0xa19e2 leaq 0xb68329(%rip), %rax # 0xc09d08 movq (%rax), %r14 leaq 0x2e6127(%rip), %rax # 0x387b10 cmpl %edi, (%rax) jbe 0xa1a21 leaq 0x2e6124(%rip), %rax # 0x387b18 movq (%rax), %rdx movslq %edi, %rcx shlq $0x4, %rcx cmpl $0x0, 0x8(%rdx,%rcx) je 0xa1a1f addq %rcx, %rdx movq (%rdx), %rbx movq $0x0, (%rdx) movq (%rax), %rax movl $0x0, 0x8(%rax,%rcx) jmp 0xa1a21 xorl %ebx, %ebx callq 0x29190 movl %eax, %r15d testl %eax, %eax je 0xa1a6a orq %r12, %r14 callq 0x29790 movq %rax, %r12 movl (%rax), %r13d callq 0xa2f56 movl %r13d, (%rax) testb $0x18, %r14b je 0xa1a6a andl $0x440, %r14d # imm = 0x440 orq $0x4, %r14 movl (%r12), %ecx movl $0x4, %edi movq %r14, %rsi movq %rbx, %rdx xorl %eax, %eax callq 0x9f467 testq %rbx, %rbx je 0xa1a77 movq %rbx, %rdi callq 0xa1412 leaq 0xb68296(%rip), %rax # 0xc09d14 lock decl (%rax) movl %r15d, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
my_close: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r12, rsi xor ebx, ebx mov r14d, 0 test r12b, 18h jnz short loc_A19E2 lea rax, my_global_flags mov r14, [rax] loc_A19E2: lea rax, my_file_limit cmp [rax], edi jbe short loc_A1A21 lea rax, my_file_info mov rdx, [rax] movsxd rcx, edi shl rcx, 4 cmp dword ptr [rdx+rcx+8], 0 jz short loc_A1A1F add rdx, rcx mov rbx, [rdx] mov qword ptr [rdx], 0 mov rax, [rax] mov dword ptr [rax+rcx+8], 0 jmp short loc_A1A21 loc_A1A1F: xor ebx, ebx loc_A1A21: call _close mov r15d, eax test eax, eax jz short loc_A1A6A or r14, r12 call ___errno_location mov r12, rax mov r13d, [rax] call _my_thread_var mov [rax], r13d test r14b, 18h jz short loc_A1A6A and r14d, 440h or r14, 4 mov ecx, [r12] mov edi, 4 mov rsi, r14 mov rdx, rbx xor eax, eax call my_error loc_A1A6A: test rbx, rbx jz short loc_A1A77 mov rdi, rbx call my_free loc_A1A77: lea rax, my_file_opened lock dec dword ptr [rax] mov eax, r15d add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long my_close(long long a1, __int16 a2) { long long v2; // rbx __int16 v3; // r14 long long v4; // rcx unsigned int v5; // r15d __int16 v6; // r14 unsigned int *v7; // r12 unsigned int v8; // r13d v2 = 0LL; v3 = 0; if ( (a2 & 0x18) == 0 ) v3 = my_global_flags; if ( my_file_limit[0] > (unsigned int)a1 ) { v4 = 16LL * (int)a1; if ( *(_DWORD *)((char *)my_file_info + v4 + 8) ) { v2 = *(_QWORD *)((char *)my_file_info + v4); *(_QWORD *)((char *)my_file_info + v4) = 0LL; *(_DWORD *)((char *)my_file_info + v4 + 8) = 0; } else { v2 = 0LL; } } v5 = close(a1); if ( v5 ) { v6 = a2 | v3; v7 = (unsigned int *)__errno_location(a1); v8 = *v7; *(_DWORD *)my_thread_var(a1) = v8; if ( (v6 & 0x18) != 0 ) my_error(4u, v6 & 0x440 | 4LL, v2, *v7); } if ( v2 ) my_free(v2); _InterlockedDecrement(my_file_opened); return v5; }
my_close: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R12,RSI XOR EBX,EBX MOV R14D,0x0 TEST R12B,0x18 JNZ 0x001a19e2 LEA RAX,[0xd09d08] MOV R14,qword ptr [RAX] LAB_001a19e2: LEA RAX,[0x487b10] CMP dword ptr [RAX],EDI JBE 0x001a1a21 LEA RAX,[0x487b18] MOV RDX,qword ptr [RAX] MOVSXD RCX,EDI SHL RCX,0x4 CMP dword ptr [RDX + RCX*0x1 + 0x8],0x0 JZ 0x001a1a1f ADD RDX,RCX MOV RBX,qword ptr [RDX] MOV qword ptr [RDX],0x0 MOV RAX,qword ptr [RAX] MOV dword ptr [RAX + RCX*0x1 + 0x8],0x0 JMP 0x001a1a21 LAB_001a1a1f: XOR EBX,EBX LAB_001a1a21: CALL 0x00129190 MOV R15D,EAX TEST EAX,EAX JZ 0x001a1a6a OR R14,R12 CALL 0x00129790 MOV R12,RAX MOV R13D,dword ptr [RAX] CALL 0x001a2f56 MOV dword ptr [RAX],R13D TEST R14B,0x18 JZ 0x001a1a6a AND R14D,0x440 OR R14,0x4 MOV ECX,dword ptr [R12] MOV EDI,0x4 MOV RSI,R14 MOV RDX,RBX XOR EAX,EAX CALL 0x0019f467 LAB_001a1a6a: TEST RBX,RBX JZ 0x001a1a77 MOV RDI,RBX CALL 0x001a1412 LAB_001a1a77: LEA RAX,[0xd09d14] DEC.LOCK dword ptr [RAX] MOV EAX,R15D ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int my_close(uint param_1,ulong param_2) { int iVar1; int iVar2; int *piVar3; int *piVar4; long lVar5; long lVar6; ulong uVar7; lVar6 = 0; uVar7 = 0; if ((param_2 & 0x18) == 0) { uVar7 = my_global_flags; } if (param_1 < my_file_limit) { lVar5 = (long)(int)param_1 * 0x10; if (*(int *)(my_file_info + lVar5 + 8) == 0) { lVar6 = 0; } else { lVar6 = *(long *)(my_file_info + lVar5); *(long *)(my_file_info + lVar5) = 0; *(int4 *)(my_file_info + lVar5 + 8) = 0; } } iVar2 = close(param_1); if (iVar2 != 0) { piVar3 = __errno_location(); iVar1 = *piVar3; piVar4 = (int *)_my_thread_var(); *piVar4 = iVar1; if (((uVar7 | param_2) & 0x18) != 0) { my_error(4,(uint)(uVar7 | param_2) & 0x440 | 4,lVar6,*piVar3); } } if (lVar6 != 0) { my_free(lVar6); } LOCK(); my_file_opened = my_file_opened + -1; UNLOCK(); return iVar2; }
52,899
bitmap_get_next_set
eloqsql/mysys/my_bitmap.c
uint bitmap_get_next_set(const MY_BITMAP *map, uint bitmap_bit) { uint word_pos, byte_to_mask, i; union { my_bitmap_map bitmap ; uchar bitmap_buff[sizeof(my_bitmap_map)]; } first_word; uchar *ptr= &first_word.bitmap_buff[0]; my_bitmap_map *data_ptr, *end= map->last_word_ptr; DBUG_ASSERT(map->bitmap); /* Look for the next bit */ bitmap_bit++; if (bitmap_bit >= map->n_bits) return MY_BIT_NONE; word_pos= bitmap_bit / 32; data_ptr= map->bitmap + word_pos; first_word.bitmap= *data_ptr; /* Mask out previous bits from first_word */ byte_to_mask= (bitmap_bit % 32) / 8; for (i= 0; i < byte_to_mask; i++) ptr[i]= 0; ptr[byte_to_mask]&= 0xFFU << (bitmap_bit & 7); if (data_ptr == end) { if (first_word.bitmap & ~map->last_word_mask) return get_first_set(first_word.bitmap, word_pos); else return MY_BIT_NONE; } if (first_word.bitmap) return get_first_set(first_word.bitmap, word_pos); for (data_ptr++, word_pos++; data_ptr < end; data_ptr++, word_pos++) if (*data_ptr) return get_first_set(*data_ptr, word_pos); if (!(*end & ~map->last_word_mask)) return MY_BIT_NONE; return get_first_set(*end, word_pos); }
O0
c
bitmap_get_next_set: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) leaq -0x24(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x10(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x40(%rbp) jmp 0xef185 movl -0x14(%rbp), %eax addl $0x1, %eax movl %eax, -0x14(%rbp) movl -0x14(%rbp), %eax movq -0x10(%rbp), %rcx cmpl 0x1c(%rcx), %eax jb 0xef1a6 movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0xef2f6 movl -0x14(%rbp), %eax shrl $0x5, %eax movl %eax, -0x18(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movl -0x18(%rbp), %ecx shlq $0x2, %rcx addq %rcx, %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movl (%rax), %eax movl %eax, -0x24(%rbp) movl -0x14(%rbp), %eax andl $0x1f, %eax shrl $0x3, %eax movl %eax, -0x1c(%rbp) movl $0x0, -0x20(%rbp) movl -0x20(%rbp), %eax cmpl -0x1c(%rbp), %eax jae 0xef1fe movq -0x30(%rbp), %rax movl -0x20(%rbp), %ecx movb $0x0, (%rax,%rcx) movl -0x20(%rbp), %eax addl $0x1, %eax movl %eax, -0x20(%rbp) jmp 0xef1e0 movl -0x14(%rbp), %ecx andl $0x7, %ecx movl $0xff, %esi shll %cl, %esi movq -0x30(%rbp), %rax movl -0x1c(%rbp), %ecx movzbl (%rax,%rcx), %edx andl %esi, %edx movb %dl, (%rax,%rcx) movq -0x38(%rbp), %rax cmpq -0x40(%rbp), %rax jne 0xef258 movl -0x24(%rbp), %eax movq -0x10(%rbp), %rcx movl 0x18(%rcx), %ecx xorl $-0x1, %ecx andl %ecx, %eax cmpl $0x0, %eax je 0xef24c movl -0x24(%rbp), %edi movl -0x18(%rbp), %esi callq 0xef0e0 movl %eax, -0x4(%rbp) jmp 0xef2f6 movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0xef2f6 cmpl $0x0, -0x24(%rbp) je 0xef271 movl -0x24(%rbp), %edi movl -0x18(%rbp), %esi callq 0xef0e0 movl %eax, -0x4(%rbp) jmp 0xef2f6 movq -0x38(%rbp), %rax addq $0x4, %rax movq %rax, -0x38(%rbp) movl -0x18(%rbp), %eax addl $0x1, %eax movl %eax, -0x18(%rbp) movq -0x38(%rbp), %rax cmpq -0x40(%rbp), %rax jae 0xef2c5 movq -0x38(%rbp), %rax cmpl $0x0, (%rax) je 0xef2ac movq -0x38(%rbp), %rax movl (%rax), %edi movl -0x18(%rbp), %esi callq 0xef0e0 movl %eax, -0x4(%rbp) jmp 0xef2f6 jmp 0xef2ae movq -0x38(%rbp), %rax addq $0x4, %rax movq %rax, -0x38(%rbp) movl -0x18(%rbp), %eax addl $0x1, %eax movl %eax, -0x18(%rbp) jmp 0xef286 movq -0x40(%rbp), %rax movl (%rax), %eax movq -0x10(%rbp), %rcx movl 0x18(%rcx), %ecx xorl $-0x1, %ecx andl %ecx, %eax cmpl $0x0, %eax jne 0xef2e5 movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0xef2f6 movq -0x40(%rbp), %rax movl (%rax), %edi movl -0x18(%rbp), %esi callq 0xef0e0 movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x40, %rsp popq %rbp retq nop
bitmap_get_next_set: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_14], esi lea rax, [rbp+var_24] mov [rbp+var_30], rax mov rax, [rbp+var_10] mov rax, [rax+8] mov [rbp+var_40], rax jmp short $+2 loc_EF185: mov eax, [rbp+var_14] add eax, 1 mov [rbp+var_14], eax mov eax, [rbp+var_14] mov rcx, [rbp+var_10] cmp eax, [rcx+1Ch] jb short loc_EF1A6 mov [rbp+var_4], 0FFFFFFFFh jmp loc_EF2F6 loc_EF1A6: mov eax, [rbp+var_14] shr eax, 5 mov [rbp+var_18], eax mov rax, [rbp+var_10] mov rax, [rax] mov ecx, [rbp+var_18] shl rcx, 2 add rax, rcx mov [rbp+var_38], rax mov rax, [rbp+var_38] mov eax, [rax] mov [rbp+var_24], eax mov eax, [rbp+var_14] and eax, 1Fh shr eax, 3 mov [rbp+var_1C], eax mov [rbp+var_20], 0 loc_EF1E0: mov eax, [rbp+var_20] cmp eax, [rbp+var_1C] jnb short loc_EF1FE mov rax, [rbp+var_30] mov ecx, [rbp+var_20] mov byte ptr [rax+rcx], 0 mov eax, [rbp+var_20] add eax, 1 mov [rbp+var_20], eax jmp short loc_EF1E0 loc_EF1FE: mov ecx, [rbp+var_14] and ecx, 7 mov esi, 0FFh shl esi, cl mov rax, [rbp+var_30] mov ecx, [rbp+var_1C] movzx edx, byte ptr [rax+rcx] and edx, esi mov [rax+rcx], dl mov rax, [rbp+var_38] cmp rax, [rbp+var_40] jnz short loc_EF258 mov eax, [rbp+var_24] mov rcx, [rbp+var_10] mov ecx, [rcx+18h] xor ecx, 0FFFFFFFFh and eax, ecx cmp eax, 0 jz short loc_EF24C mov edi, [rbp+var_24] mov esi, [rbp+var_18] call get_first_set mov [rbp+var_4], eax jmp loc_EF2F6 loc_EF24C: mov [rbp+var_4], 0FFFFFFFFh jmp loc_EF2F6 loc_EF258: cmp [rbp+var_24], 0 jz short loc_EF271 mov edi, [rbp+var_24] mov esi, [rbp+var_18] call get_first_set mov [rbp+var_4], eax jmp loc_EF2F6 loc_EF271: mov rax, [rbp+var_38] add rax, 4 mov [rbp+var_38], rax mov eax, [rbp+var_18] add eax, 1 mov [rbp+var_18], eax loc_EF286: mov rax, [rbp+var_38] cmp rax, [rbp+var_40] jnb short loc_EF2C5 mov rax, [rbp+var_38] cmp dword ptr [rax], 0 jz short loc_EF2AC mov rax, [rbp+var_38] mov edi, [rax] mov esi, [rbp+var_18] call get_first_set mov [rbp+var_4], eax jmp short loc_EF2F6 loc_EF2AC: jmp short $+2 loc_EF2AE: mov rax, [rbp+var_38] add rax, 4 mov [rbp+var_38], rax mov eax, [rbp+var_18] add eax, 1 mov [rbp+var_18], eax jmp short loc_EF286 loc_EF2C5: mov rax, [rbp+var_40] mov eax, [rax] mov rcx, [rbp+var_10] mov ecx, [rcx+18h] xor ecx, 0FFFFFFFFh and eax, ecx cmp eax, 0 jnz short loc_EF2E5 mov [rbp+var_4], 0FFFFFFFFh jmp short loc_EF2F6 loc_EF2E5: mov rax, [rbp+var_40] mov edi, [rax] mov esi, [rbp+var_18] call get_first_set mov [rbp+var_4], eax loc_EF2F6: mov eax, [rbp+var_4] add rsp, 40h pop rbp retn
long long bitmap_get_next_set(long long a1, unsigned int a2) { int *v3; // [rsp+0h] [rbp-40h] int *v4; // [rsp+8h] [rbp-38h] int *v5; // [rsp+8h] [rbp-38h] int v6; // [rsp+1Ch] [rbp-24h] unsigned int i; // [rsp+20h] [rbp-20h] unsigned int v8; // [rsp+24h] [rbp-1Ch] unsigned int v9; // [rsp+28h] [rbp-18h] unsigned int v10; // [rsp+2Ch] [rbp-14h] long long v11; // [rsp+30h] [rbp-10h] v11 = a1; v10 = a2; v3 = *(int **)(a1 + 8); v10 = a2 + 1; if ( a2 + 1 >= *(_DWORD *)(a1 + 28) ) return (unsigned int)-1; v9 = v10 >> 5; v4 = (int *)(4LL * (v10 >> 5) + *(_QWORD *)v11); v6 = *v4; v8 = (unsigned __int8)(v10 & 0x1F) >> 3; for ( i = 0; i < v8; ++i ) *((_BYTE *)&v6 + i) = 0; *((_BYTE *)&v6 + v8) &= 255 << (v10 & 7); if ( v4 == v3 ) { if ( (~*(_DWORD *)(v11 + 24) & v6) == 0 ) return (unsigned int)-1; return (unsigned int)get_first_set(v6, v9); } if ( v6 ) return (unsigned int)get_first_set(v6, v9); v5 = v4 + 1; ++v9; while ( v5 < v3 ) { if ( *v5 ) return (unsigned int)get_first_set(*v5, v9); ++v5; ++v9; } if ( (~*(_DWORD *)(v11 + 24) & *v3) != 0 ) return (unsigned int)get_first_set(*v3, v9); else return (unsigned int)-1; }
bitmap_get_next_set: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI LEA RAX,[RBP + -0x24] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x40],RAX JMP 0x001ef185 LAB_001ef185: MOV EAX,dword ptr [RBP + -0x14] ADD EAX,0x1 MOV dword ptr [RBP + -0x14],EAX MOV EAX,dword ptr [RBP + -0x14] MOV RCX,qword ptr [RBP + -0x10] CMP EAX,dword ptr [RCX + 0x1c] JC 0x001ef1a6 MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x001ef2f6 LAB_001ef1a6: MOV EAX,dword ptr [RBP + -0x14] SHR EAX,0x5 MOV dword ptr [RBP + -0x18],EAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV ECX,dword ptr [RBP + -0x18] SHL RCX,0x2 ADD RAX,RCX MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x24],EAX MOV EAX,dword ptr [RBP + -0x14] AND EAX,0x1f SHR EAX,0x3 MOV dword ptr [RBP + -0x1c],EAX MOV dword ptr [RBP + -0x20],0x0 LAB_001ef1e0: MOV EAX,dword ptr [RBP + -0x20] CMP EAX,dword ptr [RBP + -0x1c] JNC 0x001ef1fe MOV RAX,qword ptr [RBP + -0x30] MOV ECX,dword ptr [RBP + -0x20] MOV byte ptr [RAX + RCX*0x1],0x0 MOV EAX,dword ptr [RBP + -0x20] ADD EAX,0x1 MOV dword ptr [RBP + -0x20],EAX JMP 0x001ef1e0 LAB_001ef1fe: MOV ECX,dword ptr [RBP + -0x14] AND ECX,0x7 MOV ESI,0xff SHL ESI,CL MOV RAX,qword ptr [RBP + -0x30] MOV ECX,dword ptr [RBP + -0x1c] MOVZX EDX,byte ptr [RAX + RCX*0x1] AND EDX,ESI MOV byte ptr [RAX + RCX*0x1],DL MOV RAX,qword ptr [RBP + -0x38] CMP RAX,qword ptr [RBP + -0x40] JNZ 0x001ef258 MOV EAX,dword ptr [RBP + -0x24] MOV RCX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RCX + 0x18] XOR ECX,0xffffffff AND EAX,ECX CMP EAX,0x0 JZ 0x001ef24c MOV EDI,dword ptr [RBP + -0x24] MOV ESI,dword ptr [RBP + -0x18] CALL 0x001ef0e0 MOV dword ptr [RBP + -0x4],EAX JMP 0x001ef2f6 LAB_001ef24c: MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x001ef2f6 LAB_001ef258: CMP dword ptr [RBP + -0x24],0x0 JZ 0x001ef271 MOV EDI,dword ptr [RBP + -0x24] MOV ESI,dword ptr [RBP + -0x18] CALL 0x001ef0e0 MOV dword ptr [RBP + -0x4],EAX JMP 0x001ef2f6 LAB_001ef271: MOV RAX,qword ptr [RBP + -0x38] ADD RAX,0x4 MOV qword ptr [RBP + -0x38],RAX MOV EAX,dword ptr [RBP + -0x18] ADD EAX,0x1 MOV dword ptr [RBP + -0x18],EAX LAB_001ef286: MOV RAX,qword ptr [RBP + -0x38] CMP RAX,qword ptr [RBP + -0x40] JNC 0x001ef2c5 MOV RAX,qword ptr [RBP + -0x38] CMP dword ptr [RAX],0x0 JZ 0x001ef2ac MOV RAX,qword ptr [RBP + -0x38] MOV EDI,dword ptr [RAX] MOV ESI,dword ptr [RBP + -0x18] CALL 0x001ef0e0 MOV dword ptr [RBP + -0x4],EAX JMP 0x001ef2f6 LAB_001ef2ac: JMP 0x001ef2ae LAB_001ef2ae: MOV RAX,qword ptr [RBP + -0x38] ADD RAX,0x4 MOV qword ptr [RBP + -0x38],RAX MOV EAX,dword ptr [RBP + -0x18] ADD EAX,0x1 MOV dword ptr [RBP + -0x18],EAX JMP 0x001ef286 LAB_001ef2c5: MOV RAX,qword ptr [RBP + -0x40] MOV EAX,dword ptr [RAX] MOV RCX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RCX + 0x18] XOR ECX,0xffffffff AND EAX,ECX CMP EAX,0x0 JNZ 0x001ef2e5 MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x001ef2f6 LAB_001ef2e5: MOV RAX,qword ptr [RBP + -0x40] MOV EDI,dword ptr [RAX] MOV ESI,dword ptr [RBP + -0x18] CALL 0x001ef0e0 MOV dword ptr [RBP + -0x4],EAX LAB_001ef2f6: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x40 POP RBP RET
int4 bitmap_get_next_set(long *param_1,int param_2) { uint *puVar1; int4 uVar2; uint *local_40; uint local_2c; uint local_28; uint local_24; uint local_20; uint local_1c; long *local_18; int4 local_c; puVar1 = (uint *)param_1[1]; local_1c = param_2 + 1; if (local_1c < *(uint *)((long)param_1 + 0x1c)) { local_20 = local_1c >> 5; local_40 = (uint *)(*param_1 + (ulong)local_20 * 4); local_2c = *local_40; local_24 = (local_1c & 0x1f) >> 3; for (local_28 = 0; local_28 < local_24; local_28 = local_28 + 1) { *(int1 *)((long)&local_2c + (ulong)local_28) = 0; } *(byte *)((long)&local_2c + (ulong)local_24) = *(byte *)((long)&local_2c + (ulong)local_24) & (byte)(0xff << ((byte)local_1c & 7)); local_18 = param_1; if (local_40 == puVar1) { if ((local_2c & (*(uint *)(param_1 + 3) ^ 0xffffffff)) == 0) { local_c = 0xffffffff; } else { local_c = get_first_set(local_2c,local_20); } } else if (local_2c == 0) { do { local_20 = local_20 + 1; local_40 = local_40 + 1; if (puVar1 <= local_40) { if ((*puVar1 & (*(uint *)(param_1 + 3) ^ 0xffffffff)) == 0) { return 0xffffffff; } uVar2 = get_first_set(*puVar1,local_20); return uVar2; } } while (*local_40 == 0); local_c = get_first_set(*local_40,local_20); } else { local_c = get_first_set(local_2c,local_20); } } else { local_c = 0xffffffff; } return local_c; }