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
65,200
ma_find_writepos
eloqsql/storage/maria/ma_dynrec.c
static int _ma_find_writepos(MARIA_HA *info, ulong reclength, /* record length */ my_off_t *filepos, /* Return file pos */ ulong *length) /* length of block at filepos */ { MARIA_BLOCK_INFO block_info; ulong tmp; DBUG_ENTER("_ma_find_writepos"); if (info->s->state.dellink != HA_OFFSET_ERROR && !info->append_insert_at_end) { /* Deleted blocks exists; Get last used block */ *filepos=info->s->state.dellink; block_info.second_read=0; info->rec_cache.seek_not_done=1; if (!(_ma_get_block_info(info, &block_info, info->dfile.file, info->s->state.dellink) & BLOCK_DELETED)) { DBUG_PRINT("error",("Delete link crashed")); _ma_set_fatal_error_with_share(info->s, HA_ERR_WRONG_IN_RECORD); DBUG_RETURN(-1); } info->s->state.dellink=block_info.next_filepos; info->state->del--; info->state->empty-= block_info.block_len; *length= block_info.block_len; } else { /* No deleted blocks; Allocate a new block */ *filepos=info->state->data_file_length; if ((tmp= reclength + 3 + MY_TEST(reclength >= (65520 - 3))) < info->s->base.min_block_length) tmp= info->s->base.min_block_length; else tmp= ((tmp+MARIA_DYN_ALIGN_SIZE-1) & (~ (ulong) (MARIA_DYN_ALIGN_SIZE-1))); if (info->state->data_file_length > (info->s->base.max_data_file_length - tmp)) { my_errno=HA_ERR_RECORD_FILE_FULL; DBUG_RETURN(-1); } if (tmp > MARIA_MAX_BLOCK_LENGTH) tmp=MARIA_MAX_BLOCK_LENGTH; *length= tmp; info->state->data_file_length+= tmp; info->s->state.split++; info->update|=HA_STATE_WRITE_AT_END; } DBUG_RETURN(0); }
O3
c
ma_find_writepos: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx subq $0x60, %rsp movq %rcx, %r14 movq %rdi, %rbx movq %fs:0x28, %rax movq %rax, -0x18(%rbp) movq (%rdi), %rax movq 0xc8(%rax), %rax cmpq $-0x1, %rax je 0x3f5e0 cmpb $0x0, 0x681(%rbx) je 0x3f65e movq 0x20(%rbx), %rax movq 0x28(%rax), %rax movq %rax, (%rdx) cmpq $0xffed, %rsi # imm = 0xFFED sbbq $-0x1, %rsi leaq 0x3(%rsi), %rax movq (%rbx), %rcx movq 0x20(%rbx), %rdx movq 0x3b8(%rcx), %rdi addq $0x6, %rsi andq $-0x4, %rsi cmpq %rdi, %rax cmovbq %rdi, %rsi movq 0x368(%rcx), %rax subq %rsi, %rax cmpq %rax, 0x28(%rdx) jbe 0x3f634 callq 0xa1b22 movl $0x87, (%rax) jmp 0x3f69f movl $0xfffffc, %eax # imm = 0xFFFFFC cmpq %rax, %rsi cmovbq %rsi, %rax movq %rax, (%r14) movq 0x20(%rbx), %rcx addq %rax, 0x28(%rcx) movq (%rbx), %rax incq 0xc0(%rax) orb $0x1, 0x625(%rbx) jmp 0x3f6cf movq %rax, (%rdx) leaq -0x70(%rbp), %rsi movl $0x0, 0x50(%rsi) movl $0x1, 0x598(%rbx) movl 0x480(%rbx), %edx movq (%rbx), %rax movq 0xc8(%rax), %rcx movq %rbx, %rdi callq 0x3da10 testb $0x4, %al jne 0x3f6a6 movq (%rbx), %rdi movl $0x7f, %esi callq 0x36a82 movl $0xffffffff, %eax # imm = 0xFFFFFFFF jmp 0x3f6d1 movq -0x30(%rbp), %rax movq (%rbx), %rcx movq %rax, 0xc8(%rcx) movq 0x20(%rbx), %rax decq 0x8(%rax) movq -0x48(%rbp), %rax movq 0x20(%rbx), %rcx subq %rax, 0x10(%rcx) movq -0x48(%rbp), %rax movq %rax, (%r14) xorl %eax, %eax movq %fs:0x28, %rcx cmpq -0x18(%rbp), %rcx jne 0x3f6e9 addq $0x60, %rsp popq %rbx popq %r14 popq %rbp retq callq 0x29270 nop
_ma_find_writepos: push rbp mov rbp, rsp push r14 push rbx sub rsp, 60h mov r14, rcx mov rbx, rdi mov rax, fs:28h mov [rbp+var_18], rax mov rax, [rdi] mov rax, [rax+0C8h] cmp rax, 0FFFFFFFFFFFFFFFFh jz short loc_3F5E0 cmp byte ptr [rbx+681h], 0 jz short loc_3F65E loc_3F5E0: mov rax, [rbx+20h] mov rax, [rax+28h] mov [rdx], rax cmp rsi, 0FFEDh sbb rsi, 0FFFFFFFFFFFFFFFFh lea rax, [rsi+3] mov rcx, [rbx] mov rdx, [rbx+20h] mov rdi, [rcx+3B8h] add rsi, 6 and rsi, 0FFFFFFFFFFFFFFFCh cmp rax, rdi cmovb rsi, rdi mov rax, [rcx+368h] sub rax, rsi cmp [rdx+28h], rax jbe short loc_3F634 call _my_thread_var mov dword ptr [rax], 87h jmp short loc_3F69F loc_3F634: mov eax, 0FFFFFCh cmp rsi, rax cmovb rax, rsi mov [r14], rax mov rcx, [rbx+20h] add [rcx+28h], rax mov rax, [rbx] inc qword ptr [rax+0C0h] or byte ptr [rbx+625h], 1 jmp short loc_3F6CF loc_3F65E: mov [rdx], rax lea rsi, [rbp+var_70] mov dword ptr [rsi+50h], 0 mov dword ptr [rbx+598h], 1 mov edx, [rbx+480h] mov rax, [rbx] mov rcx, [rax+0C8h] mov rdi, rbx call _ma_get_block_info test al, 4 jnz short loc_3F6A6 mov rdi, [rbx] mov esi, 7Fh call _ma_set_fatal_error_with_share loc_3F69F: mov eax, 0FFFFFFFFh jmp short loc_3F6D1 loc_3F6A6: mov rax, [rbp+var_30] mov rcx, [rbx] mov [rcx+0C8h], rax mov rax, [rbx+20h] dec qword ptr [rax+8] mov rax, [rbp+var_48] mov rcx, [rbx+20h] sub [rcx+10h], rax mov rax, [rbp+var_48] mov [r14], rax loc_3F6CF: xor eax, eax loc_3F6D1: mov rcx, fs:28h cmp rcx, [rbp+var_18] jnz short loc_3F6E9 add rsp, 60h pop rbx pop r14 pop rbp retn loc_3F6E9: call ___stack_chk_fail
long long ma_find_writepos(_QWORD *a1, unsigned long long a2, _QWORD *a3, long long *a4, long long a5, int a6) { long long v8; // rax unsigned long long v9; // rsi unsigned long long v10; // rax long long v11; // rcx long long v12; // rdx unsigned long long v13; // rdi unsigned long long v14; // rsi long long v15; // rax long long v16; // rdx long long v17; // rcx long long v18; // r8 int v19; // r9d unsigned __int8 v21[40]; // [rsp+0h] [rbp-70h] BYREF long long v22; // [rsp+28h] [rbp-48h] long long v23; // [rsp+40h] [rbp-30h] int v24; // [rsp+50h] [rbp-20h] unsigned long long v25; // [rsp+58h] [rbp-18h] v25 = __readfsqword(0x28u); v8 = *(_QWORD *)(*a1 + 200LL); if ( v8 == -1 || *((_BYTE *)a1 + 1665) ) { *a3 = *(_QWORD *)(a1[4] + 40LL); v9 = a2 - ((a2 < 0xFFED) - 1LL); v10 = v9 + 3; v11 = *a1; v12 = a1[4]; v13 = *(_QWORD *)(*a1 + 952LL); v14 = (v9 + 6) & 0xFFFFFFFFFFFFFFFCLL; if ( v10 < v13 ) v14 = *(_QWORD *)(*a1 + 952LL); if ( *(_QWORD *)(v12 + 40) > *(_QWORD *)(v11 + 872) - v14 ) { *(_DWORD *)my_thread_var(v13, v14, v12, v11, a5) = 135; return 0xFFFFFFFFLL; } v15 = 16777212LL; if ( v14 < 0xFFFFFC ) v15 = v14; *a4 = v15; *(_QWORD *)(a1[4] + 40LL) += v15; ++*(_QWORD *)(*a1 + 192LL); *((_BYTE *)a1 + 1573) |= 1u; } else { *a3 = v8; v24 = 0; *((_DWORD *)a1 + 358) = 1; if ( (ma_get_block_info((long long)a1, v21, *((unsigned int *)a1 + 288), *(_QWORD *)(*a1 + 200LL), a5, a6) & 4) == 0 ) { ma_set_fatal_error_with_share(*a1, 127, v16, v17, v18, v19); return 0xFFFFFFFFLL; } *(_QWORD *)(*a1 + 200LL) = v23; --*(_QWORD *)(a1[4] + 8LL); *(_QWORD *)(a1[4] + 16LL) -= v22; *a4 = v22; } return 0LL; }
_ma_find_writepos: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX SUB RSP,0x60 MOV R14,RCX MOV RBX,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0xc8] CMP RAX,-0x1 JZ 0x0013f5e0 CMP byte ptr [RBX + 0x681],0x0 JZ 0x0013f65e LAB_0013f5e0: MOV RAX,qword ptr [RBX + 0x20] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RDX],RAX CMP RSI,0xffed SBB RSI,-0x1 LEA RAX,[RSI + 0x3] MOV RCX,qword ptr [RBX] MOV RDX,qword ptr [RBX + 0x20] MOV RDI,qword ptr [RCX + 0x3b8] ADD RSI,0x6 AND RSI,-0x4 CMP RAX,RDI CMOVC RSI,RDI MOV RAX,qword ptr [RCX + 0x368] SUB RAX,RSI CMP qword ptr [RDX + 0x28],RAX JBE 0x0013f634 CALL 0x001a1b22 MOV dword ptr [RAX],0x87 JMP 0x0013f69f LAB_0013f634: MOV EAX,0xfffffc CMP RSI,RAX CMOVC RAX,RSI MOV qword ptr [R14],RAX MOV RCX,qword ptr [RBX + 0x20] ADD qword ptr [RCX + 0x28],RAX MOV RAX,qword ptr [RBX] INC qword ptr [RAX + 0xc0] OR byte ptr [RBX + 0x625],0x1 JMP 0x0013f6cf LAB_0013f65e: MOV qword ptr [RDX],RAX LEA RSI,[RBP + -0x70] MOV dword ptr [RSI + 0x50],0x0 MOV dword ptr [RBX + 0x598],0x1 MOV EDX,dword ptr [RBX + 0x480] MOV RAX,qword ptr [RBX] MOV RCX,qword ptr [RAX + 0xc8] MOV RDI,RBX CALL 0x0013da10 TEST AL,0x4 JNZ 0x0013f6a6 MOV RDI,qword ptr [RBX] MOV ESI,0x7f CALL 0x00136a82 LAB_0013f69f: MOV EAX,0xffffffff JMP 0x0013f6d1 LAB_0013f6a6: MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBX] MOV qword ptr [RCX + 0xc8],RAX MOV RAX,qword ptr [RBX + 0x20] DEC qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x48] MOV RCX,qword ptr [RBX + 0x20] SUB qword ptr [RCX + 0x10],RAX MOV RAX,qword ptr [RBP + -0x48] MOV qword ptr [R14],RAX LAB_0013f6cf: XOR EAX,EAX LAB_0013f6d1: MOV RCX,qword ptr FS:[0x28] CMP RCX,qword ptr [RBP + -0x18] JNZ 0x0013f6e9 ADD RSP,0x60 POP RBX POP R14 POP RBP RET LAB_0013f6e9: CALL 0x00129270
int8 _ma_find_writepos(long *param_1,ulong param_2,long *param_3,ulong *param_4) { int4 *puVar1; ulong uVar2; int8 uVar3; long lVar4; ulong uVar5; long in_FS_OFFSET; int1 local_78 [40]; ulong local_50; int8 local_38; int4 local_28; long local_20; local_20 = *(long *)(in_FS_OFFSET + 0x28); if ((*(long *)(*param_1 + 200) == -1) || (*(char *)((long)param_1 + 0x681) != '\0')) { *param_3 = *(long *)(param_1[4] + 0x28); lVar4 = (param_2 + 1) - (ulong)(param_2 < 0xffed); uVar2 = *(ulong *)(*param_1 + 0x3b8); uVar5 = lVar4 + 6U & 0xfffffffffffffffc; if (lVar4 + 3U < uVar2) { uVar5 = uVar2; } if (*(ulong *)(param_1[4] + 0x28) <= *(long *)(*param_1 + 0x368) - uVar5) { uVar2 = 0xfffffc; if (uVar5 < 0xfffffc) { uVar2 = uVar5; } *param_4 = uVar2; *(long *)(param_1[4] + 0x28) = *(long *)(param_1[4] + 0x28) + uVar2; *(long *)(*param_1 + 0xc0) = *(long *)(*param_1 + 0xc0) + 1; *(byte *)((long)param_1 + 0x625) = *(byte *)((long)param_1 + 0x625) | 1; LAB_0013f6cf: uVar3 = 0; goto LAB_0013f6d1; } puVar1 = (int4 *)_my_thread_var(); *puVar1 = 0x87; } else { *param_3 = *(long *)(*param_1 + 200); local_28 = 0; *(int4 *)(param_1 + 0xb3) = 1; uVar2 = _ma_get_block_info(param_1,local_78,(int)param_1[0x90],*(int8 *)(*param_1 + 200)); if ((uVar2 & 4) != 0) { *(int8 *)(*param_1 + 200) = local_38; *(long *)(param_1[4] + 8) = *(long *)(param_1[4] + 8) + -1; *(long *)(param_1[4] + 0x10) = *(long *)(param_1[4] + 0x10) - local_50; *param_4 = local_50; goto LAB_0013f6cf; } _ma_set_fatal_error_with_share(*param_1,0x7f); } uVar3 = 0xffffffff; LAB_0013f6d1: if (*(long *)(in_FS_OFFSET + 0x28) == local_20) { return uVar3; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
65,201
JS_GetTypedArrayBuffer
bluesky950520[P]quickjs/quickjs.c
JSValue JS_GetTypedArrayBuffer(JSContext *ctx, JSValue obj, size_t *pbyte_offset, size_t *pbyte_length, size_t *pbytes_per_element) { JSObject *p; JSTypedArray *ta; p = get_typed_array(ctx, obj); if (!p) return JS_EXCEPTION; if (typed_array_is_oob(p)) return JS_ThrowTypeErrorArrayBufferOOB(ctx); ta = p->u.typed_array; if (pbyte_offset) *pbyte_offset = ta->offset; if (pbyte_length) *pbyte_length = ta->length; if (pbytes_per_element) { *pbytes_per_element = 1 << typed_array_size_log2(p->class_id); } return js_dup(JS_MKPTR(JS_TAG_OBJECT, ta->buffer)); }
O0
c
JS_GetTypedArrayBuffer: subq $0x68, %rsp movq %rsi, 0x48(%rsp) movq %rdx, 0x50(%rsp) movq %rdi, 0x40(%rsp) movq %rcx, 0x38(%rsp) movq %r8, 0x30(%rsp) movq %r9, 0x28(%rsp) movq 0x40(%rsp), %rdi movq 0x48(%rsp), %rsi movq 0x50(%rsp), %rdx callq 0x57680 movq %rax, 0x20(%rsp) cmpq $0x0, 0x20(%rsp) jne 0x57599 movl $0x0, 0x58(%rsp) movq $0x6, 0x60(%rsp) jmp 0x57667 movq 0x20(%rsp), %rdi callq 0x57710 cmpl $0x0, %eax je 0x575c1 movq 0x40(%rsp), %rdi callq 0x57820 movq %rax, 0x58(%rsp) movq %rdx, 0x60(%rsp) jmp 0x57667 movq 0x20(%rsp), %rax movq 0x30(%rax), %rax movq %rax, 0x18(%rsp) cmpq $0x0, 0x38(%rsp) je 0x575e9 movq 0x18(%rsp), %rax movl 0x20(%rax), %eax movl %eax, %ecx movq 0x38(%rsp), %rax movq %rcx, (%rax) cmpq $0x0, 0x30(%rsp) je 0x57603 movq 0x18(%rsp), %rax movl 0x24(%rax), %eax movl %eax, %ecx movq 0x30(%rsp), %rax movq %rcx, (%rax) cmpq $0x0, 0x28(%rsp) je 0x57637 movq 0x20(%rsp), %rax movzwl 0x6(%rax), %eax subl $0x15, %eax movslq %eax, %rcx leaq 0xb3c5e(%rip), %rax # 0x10b27f movzbl (%rax,%rcx), %ecx movl $0x1, %eax shll %cl, %eax movslq %eax, %rcx movq 0x28(%rsp), %rax movq %rcx, (%rax) movq 0x18(%rsp), %rax movq 0x18(%rax), %rax movq %rax, 0x8(%rsp) movq $-0x1, 0x10(%rsp) movq 0x8(%rsp), %rdi movq 0x10(%rsp), %rsi callq 0x20410 movq %rax, 0x58(%rsp) movq %rdx, 0x60(%rsp) movq 0x58(%rsp), %rax movq 0x60(%rsp), %rdx addq $0x68, %rsp retq nopw %cs:(%rax,%rax)
JS_GetTypedArrayBuffer: sub rsp, 68h mov [rsp+68h+var_20], rsi mov [rsp+68h+var_18], rdx mov [rsp+68h+var_28], rdi mov [rsp+68h+var_30], rcx mov [rsp+68h+var_38], r8 mov [rsp+68h+var_40], r9 mov rdi, [rsp+68h+var_28] mov rsi, [rsp+68h+var_20] mov rdx, [rsp+68h+var_18] call get_typed_array mov [rsp+68h+var_48], rax cmp [rsp+68h+var_48], 0 jnz short loc_57599 mov dword ptr [rsp+68h+var_10], 0 mov [rsp+68h+var_8], 6 jmp loc_57667 loc_57599: mov rdi, [rsp+68h+var_48] call typed_array_is_oob cmp eax, 0 jz short loc_575C1 mov rdi, [rsp+68h+var_28] call JS_ThrowTypeErrorArrayBufferOOB mov [rsp+68h+var_10], rax mov [rsp+68h+var_8], rdx jmp loc_57667 loc_575C1: mov rax, [rsp+68h+var_48] mov rax, [rax+30h] mov [rsp+68h+var_50], rax cmp [rsp+68h+var_30], 0 jz short loc_575E9 mov rax, [rsp+68h+var_50] mov eax, [rax+20h] mov ecx, eax mov rax, [rsp+68h+var_30] mov [rax], rcx loc_575E9: cmp [rsp+68h+var_38], 0 jz short loc_57603 mov rax, [rsp+68h+var_50] mov eax, [rax+24h] mov ecx, eax mov rax, [rsp+68h+var_38] mov [rax], rcx loc_57603: cmp [rsp+68h+var_40], 0 jz short loc_57637 mov rax, [rsp+68h+var_48] movzx eax, word ptr [rax+6] sub eax, 15h movsxd rcx, eax lea rax, typed_array_size_log2 movzx ecx, byte ptr [rax+rcx] mov eax, 1 shl eax, cl movsxd rcx, eax mov rax, [rsp+68h+var_40] mov [rax], rcx loc_57637: mov rax, [rsp+68h+var_50] mov rax, [rax+18h] mov [rsp+68h+var_60], rax mov [rsp+68h+var_58], 0FFFFFFFFFFFFFFFFh mov rdi, [rsp+68h+var_60] mov rsi, [rsp+68h+var_58] call js_dup mov [rsp+68h+var_10], rax mov [rsp+68h+var_8], rdx loc_57667: mov rax, [rsp+68h+var_10] mov rdx, [rsp+68h+var_8] add rsp, 68h retn
_DWORD * JS_GetTypedArrayBuffer(long long a1, long long a2, long long a3, _QWORD *a4, _QWORD *a5, _QWORD *a6) { long long v7; // [rsp+18h] [rbp-50h] long long typed_array; // [rsp+20h] [rbp-48h] long long v12; // [rsp+58h] [rbp-10h] typed_array = get_typed_array(a1, a2, a3); if ( typed_array ) { if ( (unsigned int)typed_array_is_oob(typed_array) ) { return (_DWORD *)JS_ThrowTypeErrorArrayBufferOOB(a1); } else { v7 = *(_QWORD *)(typed_array + 48); if ( a4 ) *a4 = *(unsigned int *)(v7 + 32); if ( a5 ) *a5 = *(unsigned int *)(v7 + 36); if ( a6 ) *a6 = 1 << typed_array_size_log2[*(unsigned __int16 *)(typed_array + 6) - 21]; return js_dup(*(_DWORD **)(v7 + 24), 0xFFFFFFFF); } } else { LODWORD(v12) = 0; } return (_DWORD *)v12; }
JS_GetTypedArrayBuffer: SUB RSP,0x68 MOV qword ptr [RSP + 0x48],RSI MOV qword ptr [RSP + 0x50],RDX MOV qword ptr [RSP + 0x40],RDI MOV qword ptr [RSP + 0x38],RCX MOV qword ptr [RSP + 0x30],R8 MOV qword ptr [RSP + 0x28],R9 MOV RDI,qword ptr [RSP + 0x40] MOV RSI,qword ptr [RSP + 0x48] MOV RDX,qword ptr [RSP + 0x50] CALL 0x00157680 MOV qword ptr [RSP + 0x20],RAX CMP qword ptr [RSP + 0x20],0x0 JNZ 0x00157599 MOV dword ptr [RSP + 0x58],0x0 MOV qword ptr [RSP + 0x60],0x6 JMP 0x00157667 LAB_00157599: MOV RDI,qword ptr [RSP + 0x20] CALL 0x00157710 CMP EAX,0x0 JZ 0x001575c1 MOV RDI,qword ptr [RSP + 0x40] CALL 0x00157820 MOV qword ptr [RSP + 0x58],RAX MOV qword ptr [RSP + 0x60],RDX JMP 0x00157667 LAB_001575c1: MOV RAX,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RAX + 0x30] MOV qword ptr [RSP + 0x18],RAX CMP qword ptr [RSP + 0x38],0x0 JZ 0x001575e9 MOV RAX,qword ptr [RSP + 0x18] MOV EAX,dword ptr [RAX + 0x20] MOV ECX,EAX MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RAX],RCX LAB_001575e9: CMP qword ptr [RSP + 0x30],0x0 JZ 0x00157603 MOV RAX,qword ptr [RSP + 0x18] MOV EAX,dword ptr [RAX + 0x24] MOV ECX,EAX MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RAX],RCX LAB_00157603: CMP qword ptr [RSP + 0x28],0x0 JZ 0x00157637 MOV RAX,qword ptr [RSP + 0x20] MOVZX EAX,word ptr [RAX + 0x6] SUB EAX,0x15 MOVSXD RCX,EAX LEA RAX,[0x20b27f] MOVZX ECX,byte ptr [RAX + RCX*0x1] MOV EAX,0x1 SHL EAX,CL MOVSXD RCX,EAX MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RAX],RCX LAB_00157637: MOV RAX,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RSP + 0x8],RAX MOV qword ptr [RSP + 0x10],-0x1 MOV RDI,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RSP + 0x10] CALL 0x00120410 MOV qword ptr [RSP + 0x58],RAX MOV qword ptr [RSP + 0x60],RDX LAB_00157667: MOV RAX,qword ptr [RSP + 0x58] MOV RDX,qword ptr [RSP + 0x60] ADD RSP,0x68 RET
int1 [16] JS_GetTypedArrayBuffer (int8 param_1,int8 param_2,int8 param_3,ulong *param_4,ulong *param_5, long *param_6) { long lVar1; int iVar2; long lVar3; int1 auVar4 [16]; int4 local_10; int4 uStack_c; int8 local_8; lVar3 = get_typed_array(param_1,param_2,param_3); if (lVar3 == 0) { local_10 = 0; local_8 = 6; } else { iVar2 = typed_array_is_oob(lVar3); if (iVar2 == 0) { lVar1 = *(long *)(lVar3 + 0x30); if (param_4 != (ulong *)0x0) { *param_4 = (ulong)*(uint *)(lVar1 + 0x20); } if (param_5 != (ulong *)0x0) { *param_5 = (ulong)*(uint *)(lVar1 + 0x24); } if (param_6 != (long *)0x0) { *param_6 = (long)(1 << ((&typed_array_size_log2)[(int)(*(ushort *)(lVar3 + 6) - 0x15)] & 0x1f)); } auVar4 = js_dup(*(int8 *)(lVar1 + 0x18),0xffffffffffffffff); local_8 = auVar4._8_8_; local_10 = auVar4._0_4_; uStack_c = auVar4._4_4_; } else { auVar4 = JS_ThrowTypeErrorArrayBufferOOB(param_1); local_8 = auVar4._8_8_; local_10 = auVar4._0_4_; uStack_c = auVar4._4_4_; } } auVar4._4_4_ = uStack_c; auVar4._0_4_ = local_10; auVar4._8_8_ = local_8; return auVar4; }
65,202
JS_GetTypedArrayBuffer
bluesky950520[P]quickjs/quickjs.c
JSValue JS_GetTypedArrayBuffer(JSContext *ctx, JSValue obj, size_t *pbyte_offset, size_t *pbyte_length, size_t *pbytes_per_element) { JSObject *p; JSTypedArray *ta; p = get_typed_array(ctx, obj); if (!p) return JS_EXCEPTION; if (typed_array_is_oob(p)) return JS_ThrowTypeErrorArrayBufferOOB(ctx); ta = p->u.typed_array; if (pbyte_offset) *pbyte_offset = ta->offset; if (pbyte_length) *pbyte_length = ta->length; if (pbytes_per_element) { *pbytes_per_element = 1 << typed_array_size_log2(p->class_id); } return js_dup(JS_MKPTR(JS_TAG_OBJECT, ta->buffer)); }
O1
c
JS_GetTypedArrayBuffer: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %r9, %rbx movq %r8, %r14 movq %rcx, %r12 movq %rdi, %r13 movq %rsi, (%rsp) cmpl $-0x1, %edx jne 0x389c0 movq (%rsp), %r15 movzwl 0x6(%r15), %eax addl $-0x15, %eax cmpw $0xc, %ax jb 0x389d4 leaq 0x68342(%rip), %rsi # 0xa0d09 xorl %r15d, %r15d movq %r13, %rdi xorl %eax, %eax callq 0x21953 movl $0x6, %ebp testq %r15, %r15 je 0x389ff movq %r15, %rdi callq 0x38ab0 testl %eax, %eax je 0x38a05 leaq 0x68329(%rip), %rsi # 0xa0d1a xorl %ebx, %ebx movq %r13, %rdi xorl %eax, %eax callq 0x21953 jmp 0x38a01 xorl %ebx, %ebx xorl %eax, %eax jmp 0x38a5e movq 0x30(%r15), %rax testq %r12, %r12 je 0x38a15 movl 0x20(%rax), %ecx movq %rcx, (%r12) testq %r14, %r14 je 0x38a20 movl 0x24(%rax), %ecx movq %rcx, (%r14) testq %rbx, %rbx je 0x38a42 movzwl 0x6(%r15), %ecx leaq 0x6379e(%rip), %rdx # 0x9c1cf movb -0x15(%rcx,%rdx), %cl movl $0x1, %edx shll %cl, %edx movslq %edx, %rcx movq %rcx, (%rbx) movq 0x18(%rax), %rcx incl (%rcx) movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000 andq %rcx, %rax movl %ecx, %ebx movq $-0x1, %rbp orq %rax, %rbx movq %rbx, %rax movq %rbp, %rdx addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
JS_GetTypedArrayBuffer: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, r9 mov r14, r8 mov r12, rcx mov r13, rdi mov [rsp+38h+var_38], rsi cmp edx, 0FFFFFFFFh jnz short loc_389C0 mov r15, [rsp+38h+var_38] movzx eax, word ptr [r15+6] add eax, 0FFFFFFEBh cmp ax, 0Ch jb short loc_389D4 loc_389C0: lea rsi, aNotATypedarray; "not a TypedArray" xor r15d, r15d mov rdi, r13 xor eax, eax call JS_ThrowTypeError loc_389D4: mov ebp, 6 test r15, r15 jz short loc_389FF mov rdi, r15 call typed_array_is_oob test eax, eax jz short loc_38A05 lea rsi, aArraybufferIsD_0; "ArrayBuffer is detached or resized" xor ebx, ebx mov rdi, r13 xor eax, eax call JS_ThrowTypeError jmp short loc_38A01 loc_389FF: xor ebx, ebx loc_38A01: xor eax, eax jmp short loc_38A5E loc_38A05: mov rax, [r15+30h] test r12, r12 jz short loc_38A15 mov ecx, [rax+20h] mov [r12], rcx loc_38A15: test r14, r14 jz short loc_38A20 mov ecx, [rax+24h] mov [r14], rcx loc_38A20: test rbx, rbx jz short loc_38A42 movzx ecx, word ptr [r15+6] lea rdx, typed_array_size_log2 mov cl, [rcx+rdx-15h] mov edx, 1 shl edx, cl movsxd rcx, edx mov [rbx], rcx loc_38A42: mov rcx, [rax+18h] inc dword ptr [rcx] mov rax, 0FFFFFFFF00000000h and rax, rcx mov ebx, ecx mov rbp, 0FFFFFFFFFFFFFFFFh loc_38A5E: or rbx, rax mov rax, rbx mov rdx, rbp add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
unsigned long long JS_GetTypedArrayBuffer( long long a1, long long a2, long long a3, _QWORD *a4, _QWORD *a5, _QWORD *a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { long long v17; // r15 long long v18; // rdx long long v19; // rcx long long v20; // r8 long long v21; // r9 __m128 v22; // xmm4 __m128 v23; // xmm5 long long v24; // rbx unsigned long long v25; // rax long long v26; // rax unsigned long long v27; // rcx char v29; // [rsp+0h] [rbp-38h] v29 = a2; if ( (_DWORD)a3 != -1 || (v17 = a2, (unsigned __int16)(*(_WORD *)(a2 + 6) - 21) >= 0xCu) ) { v17 = 0LL; JS_ThrowTypeError( a1, (long long)"not a TypedArray", a3, (long long)a4, (long long)a5, (long long)a6, a7, a8, a9, a10, a11, a12, a13, a14, a2); } if ( !v17 ) { v24 = 0LL; goto LABEL_8; } if ( (unsigned int)typed_array_is_oob(v17) ) { v24 = 0LL; JS_ThrowTypeError( a1, (long long)"ArrayBuffer is detached or resized", v18, v19, v20, v21, a7, a8, a9, a10, v22, v23, a13, a14, v29); LABEL_8: v25 = 0LL; return v25 | v24; } v26 = *(_QWORD *)(v17 + 48); if ( a4 ) *a4 = *(unsigned int *)(v26 + 32); if ( a5 ) *a5 = *(unsigned int *)(v26 + 36); if ( a6 ) *a6 = 1 << typed_array_size_log2[*(unsigned __int16 *)(v17 + 6) - 21]; v27 = *(_QWORD *)(v26 + 24); ++*(_DWORD *)v27; v25 = v27 & 0xFFFFFFFF00000000LL; v24 = (unsigned int)v27; return v25 | v24; }
JS_GetTypedArrayBuffer: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,R9 MOV R14,R8 MOV R12,RCX MOV R13,RDI MOV qword ptr [RSP],RSI CMP EDX,-0x1 JNZ 0x001389c0 MOV R15,qword ptr [RSP] MOVZX EAX,word ptr [R15 + 0x6] ADD EAX,-0x15 CMP AX,0xc JC 0x001389d4 LAB_001389c0: LEA RSI,[0x1a0d09] XOR R15D,R15D MOV RDI,R13 XOR EAX,EAX CALL 0x00121953 LAB_001389d4: MOV EBP,0x6 TEST R15,R15 JZ 0x001389ff MOV RDI,R15 CALL 0x00138ab0 TEST EAX,EAX JZ 0x00138a05 LEA RSI,[0x1a0d1a] XOR EBX,EBX MOV RDI,R13 XOR EAX,EAX CALL 0x00121953 JMP 0x00138a01 LAB_001389ff: XOR EBX,EBX LAB_00138a01: XOR EAX,EAX JMP 0x00138a5e LAB_00138a05: MOV RAX,qword ptr [R15 + 0x30] TEST R12,R12 JZ 0x00138a15 MOV ECX,dword ptr [RAX + 0x20] MOV qword ptr [R12],RCX LAB_00138a15: TEST R14,R14 JZ 0x00138a20 MOV ECX,dword ptr [RAX + 0x24] MOV qword ptr [R14],RCX LAB_00138a20: TEST RBX,RBX JZ 0x00138a42 MOVZX ECX,word ptr [R15 + 0x6] LEA RDX,[0x19c1cf] MOV CL,byte ptr [RCX + RDX*0x1 + -0x15] MOV EDX,0x1 SHL EDX,CL MOVSXD RCX,EDX MOV qword ptr [RBX],RCX LAB_00138a42: MOV RCX,qword ptr [RAX + 0x18] INC dword ptr [RCX] MOV RAX,-0x100000000 AND RAX,RCX MOV EBX,ECX MOV RBP,-0x1 LAB_00138a5e: OR RBX,RAX MOV RAX,RBX MOV RDX,RBP ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int1 [16] JS_GetTypedArrayBuffer (int8 param_1,long param_2,int param_3,ulong *param_4,ulong *param_5,long *param_6) { long lVar1; int *piVar2; int iVar3; ulong uVar4; ulong uVar5; int8 uVar6; int1 auVar7 [16]; if ((param_3 != -1) || (0xb < (ushort)(*(short *)(param_2 + 6) - 0x15U))) { param_2 = 0; JS_ThrowTypeError(param_1,"not a TypedArray"); } uVar6 = 6; if (param_2 != 0) { iVar3 = typed_array_is_oob(param_2); if (iVar3 == 0) { lVar1 = *(long *)(param_2 + 0x30); if (param_4 != (ulong *)0x0) { *param_4 = (ulong)*(uint *)(lVar1 + 0x20); } if (param_5 != (ulong *)0x0) { *param_5 = (ulong)*(uint *)(lVar1 + 0x24); } if (param_6 != (long *)0x0) { *param_6 = (long)(1 << ("toSorted"[(ulong)*(ushort *)(param_2 + 6) + 6] & 0x1fU)); } piVar2 = *(int **)(lVar1 + 0x18); *piVar2 = *piVar2 + 1; uVar4 = (ulong)piVar2 & 0xffffffff00000000; uVar5 = (ulong)piVar2 & 0xffffffff; uVar6 = 0xffffffffffffffff; goto LAB_00138a5e; } JS_ThrowTypeError(param_1,"ArrayBuffer is detached or resized"); } uVar5 = 0; uVar4 = 0; LAB_00138a5e: auVar7._8_8_ = uVar6; auVar7._0_8_ = uVar5 | uVar4; return auVar7; }
65,203
JS_GetTypedArrayBuffer
bluesky950520[P]quickjs/quickjs.c
JSValue JS_GetTypedArrayBuffer(JSContext *ctx, JSValue obj, size_t *pbyte_offset, size_t *pbyte_length, size_t *pbytes_per_element) { JSObject *p; JSTypedArray *ta; p = get_typed_array(ctx, obj); if (!p) return JS_EXCEPTION; if (typed_array_is_oob(p)) return JS_ThrowTypeErrorArrayBufferOOB(ctx); ta = p->u.typed_array; if (pbyte_offset) *pbyte_offset = ta->offset; if (pbyte_length) *pbyte_length = ta->length; if (pbytes_per_element) { *pbytes_per_element = 1 << typed_array_size_log2(p->class_id); } return js_dup(JS_MKPTR(JS_TAG_OBJECT, ta->buffer)); }
O3
c
JS_GetTypedArrayBuffer: pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rdi, %r13 cmpl $-0x1, %edx jne 0x39d58 movq %rsi, %r14 movzwl 0x6(%rsi), %eax addl $-0x15, %eax cmpw $0xc, %ax jae 0x39d58 movq %r9, %rbx movq %r8, %r15 movq %rcx, %r12 movq %r14, %rdi callq 0x39ddd testl %eax, %eax je 0x39d82 leaq 0x69f7e(%rip), %rsi # 0xa3cd4 jmp 0x39d5f leaq 0x69f64(%rip), %rsi # 0xa3cc3 xorl %ebx, %ebx movq %r13, %rdi xorl %eax, %eax callq 0x2214f movl $0x6, %edx xorl %eax, %eax orq %rax, %rbx movq %rbx, %rax popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq movq 0x30(%r14), %rax testq %r12, %r12 je 0x39d92 movl 0x20(%rax), %ecx movq %rcx, (%r12) testq %r15, %r15 je 0x39d9d movl 0x24(%rax), %ecx movq %rcx, (%r15) testq %rbx, %rbx je 0x39dbf movzwl 0x6(%r14), %ecx leaq 0x653b1(%rip), %rdx # 0x9f15f movb -0x15(%rcx,%rdx), %cl movl $0x1, %edx shll %cl, %edx movslq %edx, %rcx movq %rcx, (%rbx) movq 0x18(%rax), %rcx incl (%rcx) movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000 andq %rcx, %rax movl %ecx, %ebx movq $-0x1, %rdx jmp 0x39d72
JS_GetTypedArrayBuffer: push r15 push r14 push r13 push r12 push rbx mov r13, rdi cmp edx, 0FFFFFFFFh jnz short loc_39D58 mov r14, rsi movzx eax, word ptr [rsi+6] add eax, 0FFFFFFEBh cmp ax, 0Ch jnb short loc_39D58 mov rbx, r9 mov r15, r8 mov r12, rcx mov rdi, r14 call typed_array_is_oob test eax, eax jz short loc_39D82 lea rsi, aArraybufferIsD_0; "ArrayBuffer is detached or resized" jmp short loc_39D5F loc_39D58: lea rsi, aNotATypedarray; "not a TypedArray" loc_39D5F: xor ebx, ebx mov rdi, r13 xor eax, eax call JS_ThrowTypeError mov edx, 6 xor eax, eax loc_39D72: or rbx, rax mov rax, rbx pop rbx pop r12 pop r13 pop r14 pop r15 retn loc_39D82: mov rax, [r14+30h] test r12, r12 jz short loc_39D92 mov ecx, [rax+20h] mov [r12], rcx loc_39D92: test r15, r15 jz short loc_39D9D mov ecx, [rax+24h] mov [r15], rcx loc_39D9D: test rbx, rbx jz short loc_39DBF movzx ecx, word ptr [r14+6] lea rdx, typed_array_size_log2 mov cl, [rcx+rdx-15h] mov edx, 1 shl edx, cl movsxd rcx, edx mov [rbx], rcx loc_39DBF: mov rcx, [rax+18h] inc dword ptr [rcx] mov rax, 0FFFFFFFF00000000h and rax, rcx mov ebx, ecx mov rdx, 0FFFFFFFFFFFFFFFFh jmp short loc_39D72
unsigned long long JS_GetTypedArrayBuffer( long long a1, long long a2, long long a3, _QWORD *a4, _QWORD *a5, _QWORD *a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { const char *v17; // rsi long long v18; // rbx unsigned long long v19; // rax long long v21; // rax unsigned long long v22; // rcx char v23; // [rsp+0h] [rbp-28h] if ( (_DWORD)a3 != -1 || (unsigned __int16)(*(_WORD *)(a2 + 6) - 21) >= 0xCu ) { v17 = "not a TypedArray"; goto LABEL_6; } if ( (unsigned int)typed_array_is_oob(a2) ) { v17 = "ArrayBuffer is detached or resized"; LABEL_6: v18 = 0LL; JS_ThrowTypeError( a1, (long long)v17, a3, (long long)a4, (long long)a5, (long long)a6, a7, a8, a9, a10, a11, a12, a13, a14, v23); v19 = 0LL; return v19 | v18; } v21 = *(_QWORD *)(a2 + 48); if ( a4 ) *a4 = *(unsigned int *)(v21 + 32); if ( a5 ) *a5 = *(unsigned int *)(v21 + 36); if ( a6 ) *a6 = 1 << typed_array_size_log2[*(unsigned __int16 *)(a2 + 6) - 21]; v22 = *(_QWORD *)(v21 + 24); ++*(_DWORD *)v22; v19 = v22 & 0xFFFFFFFF00000000LL; v18 = (unsigned int)v22; return v19 | v18; }
JS_GetTypedArrayBuffer: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX MOV R13,RDI CMP EDX,-0x1 JNZ 0x00139d58 MOV R14,RSI MOVZX EAX,word ptr [RSI + 0x6] ADD EAX,-0x15 CMP AX,0xc JNC 0x00139d58 MOV RBX,R9 MOV R15,R8 MOV R12,RCX MOV RDI,R14 CALL 0x00139ddd TEST EAX,EAX JZ 0x00139d82 LEA RSI,[0x1a3cd4] JMP 0x00139d5f LAB_00139d58: LEA RSI,[0x1a3cc3] LAB_00139d5f: XOR EBX,EBX MOV RDI,R13 XOR EAX,EAX CALL 0x0012214f MOV EDX,0x6 XOR EAX,EAX LAB_00139d72: OR RBX,RAX MOV RAX,RBX POP RBX POP R12 POP R13 POP R14 POP R15 RET LAB_00139d82: MOV RAX,qword ptr [R14 + 0x30] TEST R12,R12 JZ 0x00139d92 MOV ECX,dword ptr [RAX + 0x20] MOV qword ptr [R12],RCX LAB_00139d92: TEST R15,R15 JZ 0x00139d9d MOV ECX,dword ptr [RAX + 0x24] MOV qword ptr [R15],RCX LAB_00139d9d: TEST RBX,RBX JZ 0x00139dbf MOVZX ECX,word ptr [R14 + 0x6] LEA RDX,[0x19f15f] MOV CL,byte ptr [RCX + RDX*0x1 + -0x15] MOV EDX,0x1 SHL EDX,CL MOVSXD RCX,EDX MOV qword ptr [RBX],RCX LAB_00139dbf: MOV RCX,qword ptr [RAX + 0x18] INC dword ptr [RCX] MOV RAX,-0x100000000 AND RAX,RCX MOV EBX,ECX MOV RDX,-0x1 JMP 0x00139d72
int1 [16] JS_GetTypedArrayBuffer (int8 param_1,long param_2,int param_3,ulong *param_4,ulong *param_5,long *param_6) { long lVar1; int *piVar2; int iVar3; ulong uVar4; int8 uVar5; ulong uVar6; char *pcVar7; int1 auVar8 [16]; if ((param_3 == -1) && ((ushort)(*(short *)(param_2 + 6) - 0x15U) < 0xc)) { iVar3 = typed_array_is_oob(param_2); if (iVar3 == 0) { lVar1 = *(long *)(param_2 + 0x30); if (param_4 != (ulong *)0x0) { *param_4 = (ulong)*(uint *)(lVar1 + 0x20); } if (param_5 != (ulong *)0x0) { *param_5 = (ulong)*(uint *)(lVar1 + 0x24); } if (param_6 != (long *)0x0) { *param_6 = (long)(1 << ("toSorted"[(ulong)*(ushort *)(param_2 + 6) + 6] & 0x1fU)); } piVar2 = *(int **)(lVar1 + 0x18); *piVar2 = *piVar2 + 1; uVar4 = (ulong)piVar2 & 0xffffffff00000000; uVar6 = (ulong)piVar2 & 0xffffffff; uVar5 = 0xffffffffffffffff; goto LAB_00139d72; } pcVar7 = "ArrayBuffer is detached or resized"; } else { pcVar7 = "not a TypedArray"; } uVar6 = 0; JS_ThrowTypeError(param_1,pcVar7); uVar5 = 6; uVar4 = 0; LAB_00139d72: auVar8._8_8_ = uVar5; auVar8._0_8_ = uVar6 | uVar4; return auVar8; }
65,204
psi_cond_timedwait
eloqsql/mysys/my_thr_init.c
ATTRIBUTE_COLD int psi_cond_timedwait(mysql_cond_t *that, mysql_mutex_t *mutex, const struct timespec *abstime, const char *file, uint line) { PSI_cond_locker_state state; PSI_cond_locker *locker= PSI_COND_CALL(start_cond_wait) (&state, that->m_psi, mutex->m_psi, PSI_COND_TIMEDWAIT, file, line); int result= my_cond_timedwait(&that->m_cond, &mutex->m_mutex, abstime); if (psi_likely(locker)) PSI_COND_CALL(end_cond_wait)(locker, result); return result; }
O3
c
psi_cond_timedwait: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movl %r8d, %r9d movq %rcx, %r8 movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %r12 leaq 0x3570d9(%rip), %r13 # 0x386010 movq (%r13), %rax movq 0x30(%rdi), %rsi movq 0x40(%r15), %rdx leaq -0x60(%rbp), %rdi pushq $0x1 popq %rcx callq *0x1c0(%rax) movq %rax, %rbx movq %r12, %rdi movq %r15, %rsi movq %r14, %rdx callq 0x29680 movl %eax, %r14d testq %rbx, %rbx jne 0x2ef7b movl %r14d, %eax addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq (%r13), %rax movq %rbx, %rdi movl %r14d, %esi callq *0x1c8(%rax) jmp 0x2ef69
psi_cond_timedwait: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov r9d, r8d mov r8, rcx mov r14, rdx mov r15, rsi mov r12, rdi lea r13, PSI_server mov rax, [r13+0] mov rsi, [rdi+30h] mov rdx, [r15+40h] lea rdi, [rbp+var_60] push 1 pop rcx call qword ptr [rax+1C0h] mov rbx, rax mov rdi, r12 mov rsi, r15 mov rdx, r14 call _pthread_cond_timedwait mov r14d, eax test rbx, rbx jnz short loc_2EF7B loc_2EF69: mov eax, r14d add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_2EF7B: mov rax, [r13+0] mov rdi, rbx mov esi, r14d call qword ptr [rax+1C8h] jmp short loc_2EF69
long long psi_cond_timedwait(long long a1, long long a2, long long a3, long long a4, unsigned int a5) { long long v6; // rbx unsigned int v7; // r14d _BYTE v9[96]; // [rsp+0h] [rbp-60h] BYREF v6 = ((long long ( *)(_BYTE *, _QWORD, _QWORD, long long, long long, _QWORD))PSI_server[56])( v9, *(_QWORD *)(a1 + 48), *(_QWORD *)(a2 + 64), 1LL, a4, a5); v7 = pthread_cond_timedwait(a1, a2, a3); if ( v6 ) ((void ( *)(long long, _QWORD))PSI_server[57])(v6, v7); return v7; }
psi_cond_timedwait: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV R9D,R8D MOV R8,RCX MOV R14,RDX MOV R15,RSI MOV R12,RDI LEA R13,[0x486010] MOV RAX,qword ptr [R13] MOV RSI,qword ptr [RDI + 0x30] MOV RDX,qword ptr [R15 + 0x40] LEA RDI,[RBP + -0x60] PUSH 0x1 POP RCX CALL qword ptr [RAX + 0x1c0] MOV RBX,RAX MOV RDI,R12 MOV RSI,R15 MOV RDX,R14 CALL 0x00129680 MOV R14D,EAX TEST RBX,RBX JNZ 0x0012ef7b LAB_0012ef69: MOV EAX,R14D ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0012ef7b: MOV RAX,qword ptr [R13] MOV RDI,RBX MOV ESI,R14D CALL qword ptr [RAX + 0x1c8] JMP 0x0012ef69
int psi_cond_timedwait(pthread_cond_t *param_1,pthread_mutex_t *param_2,timespec *param_3, int8 param_4,int4 param_5) { int iVar1; long lVar2; int1 local_68 [56]; lVar2 = (**(code **)(PSI_server + 0x1c0)) (local_68,param_1[1].__align,*(int8 *)((long)param_2 + 0x40),1,param_4, param_5); iVar1 = pthread_cond_timedwait(param_1,param_2,param_3); if (lVar2 != 0) { (**(code **)(PSI_server + 0x1c8))(lVar2,iVar1); } return iVar1; }
65,205
SchemaConverter::_generate_constant_rule(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&)
monkey531[P]llama/common/json-schema-to-grammar.cpp
std::string _generate_constant_rule(const json & value) { return format_literal(value.dump()); }
O3
cpp
SchemaConverter::_generate_constant_rule(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&): pushq %r14 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx leaq 0x8(%rsp), %r14 movq %r14, %rdi movq %rdx, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF movl $0x20, %ecx xorl %r8d, %r8d xorl %r9d, %r9d callq 0x80148 movq (%r14), %rsi movq 0x8(%r14), %rdx movq %rbx, %rdi callq 0xbdb00 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xc434a movq 0x18(%rsp), %rsi incq %rsi callq 0x1a8e0 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 0xc4373 movq 0x18(%rsp), %rsi incq %rsi callq 0x1a8e0 movq %rbx, %rdi callq 0x1afb0 nop
_ZN15SchemaConverter23_generate_constant_ruleERKN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEE: push r14 push rbx sub rsp, 28h mov rbx, rdi lea r14, [rsp+38h+var_30] mov rdi, r14 mov rsi, rdx mov edx, 0FFFFFFFFh mov ecx, 20h ; ' ' xor r8d, r8d xor r9d, r9d call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dumpEicbNS0_6detail15error_handler_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::dump(int,char,bool,nlohmann::json_abi_v3_11_3::detail::error_handler_t) mov rsi, [r14] mov rdx, [r14+8] mov rdi, rbx call _ZL14format_literalRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; format_literal(std::string const&) lea rax, [rsp+38h+var_20] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_C434A mov rsi, [rsp+38h+var_20] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_C434A: 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_C4373 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_C4373: mov rdi, rbx call __Unwind_Resume
long long SchemaConverter::_generate_constant_rule(long long a1, long long a2, long long a3) { void *v4[2]; // [rsp+8h] [rbp-30h] BYREF long long v5; // [rsp+18h] [rbp-20h] BYREF nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::dump( (long long)v4, a3, -1, 32, 0, 0); format_literal(a1, (long long *)v4[0], (long long)v4[1]); if ( v4[0] != &v5 ) operator delete(v4[0], v5 + 1); return a1; }
_generate_constant_rule: PUSH R14 PUSH RBX SUB RSP,0x28 MOV RBX,RDI LEA R14,[RSP + 0x8] MOV RDI,R14 MOV RSI,RDX MOV EDX,0xffffffff MOV ECX,0x20 XOR R8D,R8D XOR R9D,R9D CALL 0x00180148 MOV RSI,qword ptr [R14] MOV RDX,qword ptr [R14 + 0x8] LAB_001c4327: MOV RDI,RBX CALL 0x001bdb00 LAB_001c432f: LEA RAX,[RSP + 0x18] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001c434a MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0011a8e0 LAB_001c434a: MOV RAX,RBX ADD RSP,0x28 POP RBX POP R14 RET
/* SchemaConverter::_generate_constant_rule(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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&) */ basic_json * SchemaConverter::_generate_constant_rule(basic_json *param_1) { long *local_30 [2]; long local_20 [2]; nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::dump(local_30); /* try { // try from 001c4327 to 001c432e has its CatchHandler @ 001c4355 */ format_literal((string *)param_1); if (local_30[0] != local_20) { operator_delete(local_30[0],local_20[0] + 1); } return param_1; }
65,206
ggml_flash_attn_ext
llama.cpp/ggml/src/ggml.c
struct ggml_tensor * ggml_flash_attn_ext( struct ggml_context * ctx, struct ggml_tensor * q, struct ggml_tensor * k, struct ggml_tensor * v, struct ggml_tensor * mask, float scale, float max_bias, float logit_softcap) { GGML_ASSERT(ggml_can_mul_mat(k, q)); // TODO: check if vT can be multiplied by (k*qT) if (mask) { GGML_ASSERT(ggml_is_contiguous(mask)); GGML_ASSERT(mask->ne[2] == 1); GGML_ASSERT(mask->ne[3] == 1); GGML_ASSERT(mask->ne[1] >= GGML_PAD(q->ne[1], GGML_KQ_MASK_PAD) && "the Flash-Attention kernel requires the mask to be padded to GGML_KQ_MASK_PAD and at least n_queries big"); //GGML_ASSERT(ggml_can_repeat_rows(mask, qk)); } if (max_bias > 0.0f) { GGML_ASSERT(mask); } // permute(0, 2, 1, 3) int64_t ne[4] = { v->ne[0], q->ne[2], q->ne[1], q->ne[3] }; struct ggml_tensor * result = ggml_new_tensor(ctx, GGML_TYPE_F32, 4, ne); float params[] = { scale, max_bias, logit_softcap }; ggml_set_op_params(result, params, sizeof(params)); result->op = GGML_OP_FLASH_ATTN_EXT; result->src[0] = q; result->src[1] = k; result->src[2] = v; result->src[3] = mask; return result; }
O3
c
ggml_flash_attn_ext: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq 0x10(%rdx), %rax cmpq 0x10(%rsi), %rax jne 0x1e0c9 movq %rdx, %r15 movq %rsi, %r12 movq 0x20(%rsi), %rbp movq %rbp, %rax cqto idivq 0x20(%r15) testq %rdx, %rdx jne 0x1e0c9 movq 0x28(%r12), %r13 movq %r13, %rax cqto idivq 0x28(%r15) testq %rdx, %rdx jne 0x1e0c9 movq %r8, %rbx movq %rcx, %r14 testq %r8, %r8 movss %xmm2, 0x14(%rsp) movss %xmm1, 0x10(%rsp) movss %xmm0, 0xc(%rsp) je 0x1e036 movq %r14, 0x18(%rsp) movq %rdi, %r14 movq %rbx, %rdi xorl %esi, %esi callq 0x19721 testb %al, %al je 0x1e104 cmpq $0x1, 0x20(%rbx) jne 0x1e120 cmpq $0x1, 0x28(%rbx) jne 0x1e13c movq %r14, %rdi movq 0x18(%r12), %rax leaq 0x3f(%rax), %rcx andq $-0x40, %rcx cmpq %rcx, 0x18(%rbx) movq 0x18(%rsp), %r14 jge 0x1e047 leaq 0x2c5f5(%rip), %rdi # 0x4a613 leaq 0x2c629(%rip), %rdx # 0x4a64e leaq 0x2cdac(%rip), %rcx # 0x4add8 movl $0x110c, %esi # imm = 0x110C jmp 0x1e172 xorps %xmm0, %xmm0 ucomiss %xmm0, %xmm1 ja 0x1e158 movq 0x18(%r12), %rax movq 0x10(%r14), %rdx leaq 0x20(%rsp), %rcx movq %rdx, (%rcx) movq %rbp, 0x8(%rcx) movq %rax, 0x10(%rcx) movq %r13, 0x18(%rcx) xorl %esi, %esi movl $0x4, %edx xorl %r8d, %r8d xorl %r9d, %r9d callq 0x19be7 testq %rax, %rax je 0x1e0e8 movss 0xc(%rsp), %xmm0 movss %xmm0, 0x54(%rax) movss 0x10(%rsp), %xmm0 movss %xmm0, 0x58(%rax) movss 0x14(%rsp), %xmm0 movss %xmm0, 0x5c(%rax) movl $0x3e, 0x50(%rax) movq %r12, 0x98(%rax) movq %r15, 0xa0(%rax) movq %r14, 0xa8(%rax) movq %rbx, 0xb0(%rax) addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x2c543(%rip), %rdi # 0x4a613 leaq 0x2c577(%rip), %rdx # 0x4a64e leaq 0x2cca8(%rip), %rcx # 0x4ad86 movl $0x1104, %esi # imm = 0x1104 jmp 0x1e172 leaq 0x2e694(%rip), %rdi # 0x4c783 leaq 0x2c558(%rip), %rdx # 0x4a64e leaq 0x2e6c6(%rip), %rcx # 0x4c7c3 movl $0x70, %esi jmp 0x1e172 leaq 0x2c508(%rip), %rdi # 0x4a613 leaq 0x2c53c(%rip), %rdx # 0x4a64e leaq 0x2cc84(%rip), %rcx # 0x4ad9d movl $0x1108, %esi # imm = 0x1108 jmp 0x1e172 leaq 0x2c4ec(%rip), %rdi # 0x4a613 leaq 0x2c520(%rip), %rdx # 0x4a64e leaq 0x2cc81(%rip), %rcx # 0x4adb6 movl $0x1109, %esi # imm = 0x1109 jmp 0x1e172 leaq 0x2c4d0(%rip), %rdi # 0x4a613 leaq 0x2c504(%rip), %rdx # 0x4a64e leaq 0x2cc76(%rip), %rcx # 0x4adc7 movl $0x110a, %esi # imm = 0x110A jmp 0x1e172 leaq 0x2c4b4(%rip), %rdi # 0x4a613 leaq 0x2c4e8(%rip), %rdx # 0x4a64e leaq 0x2cd0d(%rip), %rcx # 0x4ae7a movl $0x1111, %esi # imm = 0x1111 xorl %eax, %eax callq 0x17c80
ggml_flash_attn_ext: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h mov rax, [rdx+10h] cmp rax, [rsi+10h] jnz loc_1E0C9 mov r15, rdx mov r12, rsi mov rbp, [rsi+20h] mov rax, rbp cqo idiv qword ptr [r15+20h] test rdx, rdx jnz loc_1E0C9 mov r13, [r12+28h] mov rax, r13 cqo idiv qword ptr [r15+28h] test rdx, rdx jnz loc_1E0C9 mov rbx, r8 mov r14, rcx test r8, r8 movss [rsp+78h+var_64], xmm2 movss [rsp+78h+var_68], xmm1 movss [rsp+78h+var_6C], xmm0 jz short loc_1E036 mov [rsp+78h+var_60], r14 mov r14, rdi mov rdi, rbx xor esi, esi call ggml_is_contiguous_n test al, al jz loc_1E104 cmp qword ptr [rbx+20h], 1 jnz loc_1E120 cmp qword ptr [rbx+28h], 1 jnz loc_1E13C mov rdi, r14 mov rax, [r12+18h] lea rcx, [rax+3Fh] and rcx, 0FFFFFFFFFFFFFFC0h cmp [rbx+18h], rcx mov r14, [rsp+78h+var_60] jge short loc_1E047 lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aMaskNe1GgmlPad; "mask->ne[1] >= GGML_PAD(q->ne[1], GGML_"... mov esi, 110Ch jmp loc_1E172 loc_1E036: xorps xmm0, xmm0 ucomiss xmm1, xmm0 ja loc_1E158 mov rax, [r12+18h] loc_1E047: mov rdx, [r14+10h] lea rcx, [rsp+78h+var_58] mov [rcx], rdx mov [rcx+8], rbp mov [rcx+10h], rax mov [rcx+18h], r13 xor esi, esi mov edx, 4 xor r8d, r8d xor r9d, r9d call ggml_new_tensor_impl test rax, rax jz short loc_1E0E8 movss xmm0, [rsp+78h+var_6C] movss dword ptr [rax+54h], xmm0 movss xmm0, [rsp+78h+var_68] movss dword ptr [rax+58h], xmm0 movss xmm0, [rsp+78h+var_64] movss dword ptr [rax+5Ch], xmm0 mov dword ptr [rax+50h], 3Eh ; '>' mov [rax+98h], r12 mov [rax+0A0h], r15 mov [rax+0A8h], r14 mov [rax+0B0h], rbx add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_1E0C9: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlCanMulMatK; "ggml_can_mul_mat(k, q)" mov esi, 1104h jmp loc_1E172 loc_1E0E8: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aTensorNull; "tensor != NULL" mov esi, 70h ; 'p' jmp short loc_1E172 loc_1E104: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlIsContiguo_4; "ggml_is_contiguous(mask)" mov esi, 1108h jmp short loc_1E172 loc_1E120: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aMaskNe21; "mask->ne[2] == 1" mov esi, 1109h jmp short loc_1E172 loc_1E13C: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aMaskNe31; "mask->ne[3] == 1" mov esi, 110Ah jmp short loc_1E172 loc_1E158: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aMask; "mask" mov esi, 1111h loc_1E172: xor eax, eax call _ggml_abort
long long ggml_flash_attn_ext( long long a1, _QWORD *a2, _QWORD *a3, long long a4, long long a5, int a6, float a7, float a8, float a9) { long long v10; // rbp long long v11; // r13 long long v13; // r14 long long v14; // rax const char *v15; // rdi const char *v16; // rcx int v17; // esi long long result; // rax _QWORD v20[11]; // [rsp+20h] [rbp-58h] BYREF if ( a3[2] != a2[2] || (v10 = a2[4], v10 % a3[4]) || (v11 = a2[5], v11 % a3[5]) ) { v15 = "/workspace/llm4binary/github2025/llama.cpp/ggml/src/ggml.c"; v16 = "ggml_can_mul_mat(k, q)"; v17 = 4356; goto LABEL_20; } v13 = a4; if ( !a5 ) { if ( a8 <= 0.0 ) { v14 = a2[3]; goto LABEL_12; } v15 = "/workspace/llm4binary/github2025/llama.cpp/ggml/src/ggml.c"; v16 = "mask"; v17 = 4369; LABEL_20: ggml_abort((_DWORD)v15, v17, (unsigned int)"GGML_ASSERT(%s) failed", (_DWORD)v16, a5, a6); } if ( !ggml_is_contiguous_n((unsigned int *)a5, 0) ) { v15 = "/workspace/llm4binary/github2025/llama.cpp/ggml/src/ggml.c"; v16 = "ggml_is_contiguous(mask)"; v17 = 4360; goto LABEL_20; } if ( *(_QWORD *)(a5 + 32) != 1LL ) { v15 = "/workspace/llm4binary/github2025/llama.cpp/ggml/src/ggml.c"; v16 = "mask->ne[2] == 1"; v17 = 4361; goto LABEL_20; } if ( *(_QWORD *)(a5 + 40) != 1LL ) { v15 = "/workspace/llm4binary/github2025/llama.cpp/ggml/src/ggml.c"; v16 = "mask->ne[3] == 1"; v17 = 4362; goto LABEL_20; } v14 = a2[3]; v13 = a4; if ( *(_QWORD *)(a5 + 24) < (signed long long)((v14 + 63) & 0xFFFFFFFFFFFFFFC0LL) ) { v15 = "/workspace/llm4binary/github2025/llama.cpp/ggml/src/ggml.c"; v16 = "mask->ne[1] >= GGML_PAD(q->ne[1], GGML_KQ_MASK_PAD) && \"the Flash-Attention kernel requires the mask to be pa" "dded to GGML_KQ_MASK_PAD and at least n_queries big\""; v17 = 4364; goto LABEL_20; } LABEL_12: v20[0] = *(_QWORD *)(v13 + 16); v20[1] = v10; v20[2] = v14; v20[3] = v11; result = ggml_new_tensor_impl(a1, 0, 4u, v20, 0LL, 0LL); if ( !result ) { v15 = "/workspace/llm4binary/github2025/llama.cpp/ggml/src/ggml-impl.h"; v16 = "tensor != NULL"; v17 = 112; goto LABEL_20; } *(float *)(result + 84) = a7; *(float *)(result + 88) = a8; *(float *)(result + 92) = a9; *(_DWORD *)(result + 80) = 62; *(_QWORD *)(result + 152) = a2; *(_QWORD *)(result + 160) = a3; *(_QWORD *)(result + 168) = v13; *(_QWORD *)(result + 176) = a5; return result; }
ggml_flash_attn_ext: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 MOV RAX,qword ptr [RDX + 0x10] CMP RAX,qword ptr [RSI + 0x10] JNZ 0x0011e0c9 MOV R15,RDX MOV R12,RSI MOV RBP,qword ptr [RSI + 0x20] MOV RAX,RBP CQO IDIV qword ptr [R15 + 0x20] TEST RDX,RDX JNZ 0x0011e0c9 MOV R13,qword ptr [R12 + 0x28] MOV RAX,R13 CQO IDIV qword ptr [R15 + 0x28] TEST RDX,RDX JNZ 0x0011e0c9 MOV RBX,R8 MOV R14,RCX TEST R8,R8 MOVSS dword ptr [RSP + 0x14],XMM2 MOVSS dword ptr [RSP + 0x10],XMM1 MOVSS dword ptr [RSP + 0xc],XMM0 JZ 0x0011e036 MOV qword ptr [RSP + 0x18],R14 MOV R14,RDI MOV RDI,RBX XOR ESI,ESI CALL 0x00119721 TEST AL,AL JZ 0x0011e104 CMP qword ptr [RBX + 0x20],0x1 JNZ 0x0011e120 CMP qword ptr [RBX + 0x28],0x1 JNZ 0x0011e13c MOV RDI,R14 MOV RAX,qword ptr [R12 + 0x18] LEA RCX,[RAX + 0x3f] AND RCX,-0x40 CMP qword ptr [RBX + 0x18],RCX MOV R14,qword ptr [RSP + 0x18] JGE 0x0011e047 LEA RDI,[0x14a613] LEA RDX,[0x14a64e] LEA RCX,[0x14add8] MOV ESI,0x110c JMP 0x0011e172 LAB_0011e036: XORPS XMM0,XMM0 UCOMISS XMM1,XMM0 JA 0x0011e158 MOV RAX,qword ptr [R12 + 0x18] LAB_0011e047: MOV RDX,qword ptr [R14 + 0x10] LEA RCX,[RSP + 0x20] MOV qword ptr [RCX],RDX MOV qword ptr [RCX + 0x8],RBP MOV qword ptr [RCX + 0x10],RAX MOV qword ptr [RCX + 0x18],R13 XOR ESI,ESI MOV EDX,0x4 XOR R8D,R8D XOR R9D,R9D CALL 0x00119be7 TEST RAX,RAX JZ 0x0011e0e8 MOVSS XMM0,dword ptr [RSP + 0xc] MOVSS dword ptr [RAX + 0x54],XMM0 MOVSS XMM0,dword ptr [RSP + 0x10] MOVSS dword ptr [RAX + 0x58],XMM0 MOVSS XMM0,dword ptr [RSP + 0x14] MOVSS dword ptr [RAX + 0x5c],XMM0 MOV dword ptr [RAX + 0x50],0x3e MOV qword ptr [RAX + 0x98],R12 MOV qword ptr [RAX + 0xa0],R15 MOV qword ptr [RAX + 0xa8],R14 MOV qword ptr [RAX + 0xb0],RBX ADD RSP,0x48 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0011e0c9: LEA RDI,[0x14a613] LEA RDX,[0x14a64e] LEA RCX,[0x14ad86] MOV ESI,0x1104 JMP 0x0011e172 LAB_0011e0e8: LEA RDI,[0x14c783] LEA RDX,[0x14a64e] LEA RCX,[0x14c7c3] MOV ESI,0x70 JMP 0x0011e172 LAB_0011e104: LEA RDI,[0x14a613] LEA RDX,[0x14a64e] LEA RCX,[0x14ad9d] MOV ESI,0x1108 JMP 0x0011e172 LAB_0011e120: LEA RDI,[0x14a613] LEA RDX,[0x14a64e] LEA RCX,[0x14adb6] MOV ESI,0x1109 JMP 0x0011e172 LAB_0011e13c: LEA RDI,[0x14a613] LEA RDX,[0x14a64e] LEA RCX,[0x14adc7] MOV ESI,0x110a JMP 0x0011e172 LAB_0011e158: LEA RDI,[0x14a613] LEA RDX,[0x14a64e] LEA RCX,[0x14ae7a] MOV ESI,0x1111 LAB_0011e172: XOR EAX,EAX CALL 0x00117c80
void ggml_flash_attn_ext(int4 param_1,float param_2,int4 param_3,int8 param_4, long param_5,long param_6,long param_7,long param_8) { long lVar1; char cVar2; long lVar3; long lVar4; char *pcVar5; int8 uVar6; char *pcVar7; int8 local_58; long local_50; long local_48; long local_40; if ((*(long *)(param_6 + 0x10) == *(long *)(param_5 + 0x10)) && (lVar4 = *(long *)(param_5 + 0x20), lVar4 % *(long *)(param_6 + 0x20) == 0)) { lVar1 = *(long *)(param_5 + 0x28); if (lVar1 % *(long *)(param_6 + 0x28) == 0) { if (param_8 == 0) { if (0.0 < param_2) { pcVar7 = "/workspace/llm4binary/github2025/llama.cpp/ggml/src/ggml.c"; pcVar5 = "mask"; uVar6 = 0x1111; goto LAB_0011e172; } lVar3 = *(long *)(param_5 + 0x18); } else { cVar2 = ggml_is_contiguous_n(param_8,0); if (cVar2 == '\0') { pcVar7 = "/workspace/llm4binary/github2025/llama.cpp/ggml/src/ggml.c"; pcVar5 = "ggml_is_contiguous(mask)"; uVar6 = 0x1108; goto LAB_0011e172; } if (*(long *)(param_8 + 0x20) != 1) { pcVar7 = "/workspace/llm4binary/github2025/llama.cpp/ggml/src/ggml.c"; pcVar5 = "mask->ne[2] == 1"; uVar6 = 0x1109; goto LAB_0011e172; } if (*(long *)(param_8 + 0x28) != 1) { pcVar7 = "/workspace/llm4binary/github2025/llama.cpp/ggml/src/ggml.c"; pcVar5 = "mask->ne[3] == 1"; uVar6 = 0x110a; goto LAB_0011e172; } lVar3 = *(long *)(param_5 + 0x18); if (*(long *)(param_8 + 0x18) < (long)(lVar3 + 0x3fU & 0xffffffffffffffc0)) { pcVar7 = "/workspace/llm4binary/github2025/llama.cpp/ggml/src/ggml.c"; pcVar5 = "mask->ne[1] >= GGML_PAD(q->ne[1], GGML_KQ_MASK_PAD) && \"the Flash-Attention kernel requires the mask to be padded to GGML_KQ_MASK_PAD and at least n_queries big\"" ; uVar6 = 0x110c; goto LAB_0011e172; } } local_58 = *(int8 *)(param_7 + 0x10); local_50 = lVar4; local_48 = lVar3; local_40 = lVar1; lVar4 = ggml_new_tensor_impl(param_4,0,4,&local_58,0,0); if (lVar4 != 0) { *(int4 *)(lVar4 + 0x54) = param_1; *(float *)(lVar4 + 0x58) = param_2; *(int4 *)(lVar4 + 0x5c) = param_3; *(int4 *)(lVar4 + 0x50) = 0x3e; *(long *)(lVar4 + 0x98) = param_5; *(long *)(lVar4 + 0xa0) = param_6; *(long *)(lVar4 + 0xa8) = param_7; *(long *)(lVar4 + 0xb0) = param_8; return; } pcVar7 = "/workspace/llm4binary/github2025/llama.cpp/ggml/src/ggml-impl.h"; pcVar5 = "tensor != NULL"; uVar6 = 0x70; goto LAB_0011e172; } } pcVar7 = "/workspace/llm4binary/github2025/llama.cpp/ggml/src/ggml.c"; pcVar5 = "ggml_can_mul_mat(k, q)"; uVar6 = 0x1104; LAB_0011e172: /* WARNING: Subroutine does not return */ ggml_abort(pcVar7,uVar6,"GGML_ASSERT(%s) failed",pcVar5); }
65,207
nlohmann::json_abi_v3_11_3::detail::parse_error nlohmann::json_abi_v3_11_3::detail::parse_error::create<std::nullptr_t, 0>(int, nlohmann::json_abi_v3_11_3::detail::position_t const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t)
msxemulator/build_O3/_deps/picotool-src/lib/nlohmann_json/single_include/nlohmann/json.hpp
static parse_error create(int id_, const position_t& pos, const std::string& what_arg, BasicJsonContext context) { const std::string w = concat(exception::name("parse_error", id_), "parse error", position_string(pos), ": ", exception::diagnostics(context), what_arg); return {id_, pos.chars_read_total, w.c_str()}; }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::parse_error nlohmann::json_abi_v3_11_3::detail::parse_error::create<std::nullptr_t, 0>(int, nlohmann::json_abi_v3_11_3::detail::position_t const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xa8, %rsp movq %rcx, %r15 movq %rdx, %r14 movl %esi, %ebp movq %rdi, %rbx leaq 0x18(%rsp), %r12 movq %r12, -0x10(%r12) leaq 0x41471(%rip), %rsi # 0xa7f66 leaq 0x41475(%rip), %rdx # 0xa7f71 leaq 0x8(%rsp), %rdi callq 0x5c00c leaq 0x68(%rsp), %rdi leaq 0x8(%rsp), %rsi movl %ebp, %edx callq 0x568b2 leaq 0x48(%rsp), %rdi movq %r14, %rsi callq 0x6abf2 leaq 0x38(%rsp), %r13 movq %r13, -0x10(%r13) movq $0x0, -0x8(%r13) movb $0x0, (%r13) movq %r15, (%rsp) leaq 0x4142d(%rip), %rdx # 0xa7f72 leaq 0x4a4e5(%rip), %r8 # 0xb1031 leaq 0x88(%rsp), %rdi leaq 0x68(%rsp), %rsi leaq 0x48(%rsp), %rcx leaq 0x28(%rsp), %r9 callq 0x6aae9 movq 0x28(%rsp), %rdi cmpq %r13, %rdi je 0x66b7f movq 0x38(%rsp), %rsi incq %rsi callq 0xf470 leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x66b9a movq 0x58(%rsp), %rsi incq %rsi callq 0xf470 leaq 0x78(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x66bb5 movq 0x78(%rsp), %rsi incq %rsi callq 0xf470 movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x66bcc movq 0x18(%rsp), %rsi incq %rsi callq 0xf470 movq (%r14), %r14 movq 0x88(%rsp), %rdx movq %rbx, %rdi movl %ebp, %esi callq 0x56aae leaq 0x7ad48(%rip), %rax # 0xe1930 movq %rax, (%rbx) movq %r14, 0x20(%rbx) leaq 0x98(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x66c10 movq 0x98(%rsp), %rsi incq %rsi callq 0xf470 movq %rbx, %rax addq $0xa8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq 0x98(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x66cbd movq 0x98(%rsp), %rsi jmp 0x66cb0 movq %rax, %rbx movq 0x28(%rsp), %rdi cmpq %r13, %rdi je 0x66c61 movq 0x38(%rsp), %rsi incq %rsi callq 0xf470 leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x66c81 movq 0x58(%rsp), %rsi incq %rsi callq 0xf470 jmp 0x66c81 movq %rax, %rbx leaq 0x78(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x66ca1 movq 0x78(%rsp), %rsi incq %rsi callq 0xf470 jmp 0x66ca1 movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x66cbd movq 0x18(%rsp), %rsi incq %rsi callq 0xf470 jmp 0x66cbd movq %rax, %rbx movq %rbx, %rdi callq 0xf7d0 nop
_ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 0A8h mov r15, rcx mov r14, rdx mov ebp, esi mov rbx, rdi lea r12, [rsp+0D8h+var_C0] mov [r12-10h], r12 lea rsi, aParseError; "parse_error" lea rdx, aParseError+0Bh; "" lea rdi, [rsp+0D8h+var_D0] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rdi, [rsp+0D8h+var_70]; int lea rsi, [rsp+0D8h+var_D0]; int mov edx, ebp; int call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int) lea rdi, [rsp+0D8h+var_90]; int mov rsi, r14; int call _ZN8nlohmann16json_abi_v3_11_36detail11parse_error15position_stringB5cxx11ERKNS1_10position_tE; nlohmann::json_abi_v3_11_3::detail::parse_error::position_string(nlohmann::json_abi_v3_11_3::detail::position_t const&) lea r13, [rsp+0D8h+var_A0] mov [r13-10h], r13 mov qword ptr [r13-8], 0 mov byte ptr [r13+0], 0 mov [rsp+0D8h+var_D8], r15 lea rdx, aParseError_0; "parse error" lea r8, aPkcs1DataSign+14h; ": " lea rdi, [rsp+0D8h+var_50] lea rsi, [rsp+0D8h+var_70] lea rcx, [rsp+0D8h+var_90] lea r9, [rsp+0D8h+var_B0] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS8_RA12_KcS8_RA3_S9_S8_RKS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,char const(&)[12],std::string,char const(&)[3],std::string,std::string const&>(std::string,char const(&)[12],std::string,char const(&)[3],std::string,std::string const&) mov rdi, [rsp+0D8h+var_B0]; void * cmp rdi, r13 jz short loc_66B7F mov rsi, [rsp+0D8h+var_A0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_66B7F: lea rax, [rsp+0D8h+var_80] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_66B9A mov rsi, [rsp+0D8h+var_80] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_66B9A: lea rax, [rsp+0D8h+var_60] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_66BB5 mov rsi, [rsp+0D8h+var_60] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_66BB5: mov rdi, [rsp+0D8h+var_D0]; void * cmp rdi, r12 jz short loc_66BCC mov rsi, [rsp+0D8h+var_C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_66BCC: mov r14, [r14] mov rdx, [rsp+0D8h+var_50]; char * mov rdi, rbx; this mov esi, ebp; int call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionC2EiPKc; nlohmann::json_abi_v3_11_3::detail::exception::exception(int,char const*) lea rax, off_E1930 mov [rbx], rax mov [rbx+20h], r14 lea rax, [rsp+0D8h+var_40] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_66C10 mov rsi, [rsp+0D8h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_66C10: mov rax, rbx add rsp, 0A8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax lea rax, [rsp+arg_90] mov rdi, [rax-10h] cmp rdi, rax jz loc_66CBD mov rsi, [rsp+arg_90] jmp short loc_66CB0 mov rbx, rax mov rdi, [rsp+arg_20]; void * cmp rdi, r13 jz short loc_66C61 mov rsi, [rsp+arg_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_66C61: lea rax, [rsp+arg_50] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_66C81 mov rsi, [rsp+arg_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_66C81 mov rbx, rax loc_66C81: lea rax, [rsp+arg_70] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_66CA1 mov rsi, [rsp+arg_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_66CA1 mov rbx, rax loc_66CA1: mov rdi, [rsp+arg_0]; void * cmp rdi, r12 jz short loc_66CBD mov rsi, [rsp+arg_10] loc_66CB0: inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_66CBD mov rbx, rax loc_66CBD: mov rdi, rbx call __Unwind_Resume
nlohmann::json_abi_v3_11_3::detail::exception * ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_( nlohmann::json_abi_v3_11_3::detail::exception *this, int a2, long long *a3, long long a4) { int v6; // edx int v7; // ecx int v8; // r8d int v9; // r9d long long v10; // r14 void *v12; // [rsp+0h] [rbp-D8h] void *v13[2]; // [rsp+8h] [rbp-D0h] BYREF _QWORD v14[2]; // [rsp+18h] [rbp-C0h] BYREF void *v15; // [rsp+28h] [rbp-B0h] BYREF long long v16; // [rsp+30h] [rbp-A8h] _QWORD v17[2]; // [rsp+38h] [rbp-A0h] BYREF int v18[4]; // [rsp+48h] [rbp-90h] BYREF long long v19; // [rsp+58h] [rbp-80h] BYREF int v20[4]; // [rsp+68h] [rbp-70h] BYREF long long v21; // [rsp+78h] [rbp-60h] BYREF char *v22; // [rsp+88h] [rbp-50h] BYREF long long v23; // [rsp+98h] [rbp-40h] BYREF v13[0] = v14; std::string::_M_construct<char const*>((long long)v13, "parse_error", (long long)""); nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v20, (long long)v13, a2); nlohmann::json_abi_v3_11_3::detail::parse_error::position_string[abi:cxx11]( (int)v18, (int)a3, v6, v7, v8, v9, v12, (int)v13[0], (long long)v13[1], v14[0], (void *)v14[1], (int)v15, v16); v15 = v17; v16 = 0LL; LOBYTE(v17[0]) = 0; nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,char const(&)[12],std::string,char const(&)[3],std::string,std::string const&>( (unsigned int)&v22, (unsigned int)v20, (unsigned int)"parse error", (unsigned int)v18, (unsigned int)": ", (unsigned int)&v15, a4); if ( v15 != v17 ) operator delete(v15, v17[0] + 1LL); if ( *(long long **)v18 != &v19 ) operator delete(*(void **)v18, v19 + 1); if ( *(long long **)v20 != &v21 ) operator delete(*(void **)v20, v21 + 1); if ( v13[0] != v14 ) operator delete(v13[0], v14[0] + 1LL); v10 = *a3; nlohmann::json_abi_v3_11_3::detail::exception::exception(this, a2, v22); *(_QWORD *)this = off_E1930; *((_QWORD *)this + 4) = v10; if ( v22 != (char *)&v23 ) operator delete(v22, v23 + 1); return this; }
_ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xa8 MOV R15,RCX MOV R14,RDX MOV EBP,ESI MOV RBX,RDI LEA R12,[RSP + 0x18] MOV qword ptr [R12 + -0x10],R12 LAB_00166aee: LEA RSI,[0x1a7f66] LEA RDX,[0x1a7f71] LEA RDI,[RSP + 0x8] CALL 0x0015c00c LAB_00166b06: LEA RDI,[RSP + 0x68] LEA RSI,[RSP + 0x8] MOV EDX,EBP CALL 0x001568b2 LAB_00166b17: LEA RDI,[RSP + 0x48] MOV RSI,R14 CALL 0x0016abf2 LEA R13,[RSP + 0x38] MOV qword ptr [R13 + -0x10],R13 MOV qword ptr [R13 + -0x8],0x0 MOV byte ptr [R13],0x0 LAB_00166b3a: MOV qword ptr [RSP],R15 LEA RDX,[0x1a7f72] LEA R8,[0x1b1031] LEA RDI,[RSP + 0x88] LEA RSI,[RSP + 0x68] LEA RCX,[RSP + 0x48] LEA R9,[RSP + 0x28] CALL 0x0016aae9 MOV RDI,qword ptr [RSP + 0x28] CMP RDI,R13 JZ 0x00166b7f MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x0010f470 LAB_00166b7f: LEA RAX,[RSP + 0x58] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00166b9a MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x0010f470 LAB_00166b9a: LEA RAX,[RSP + 0x78] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00166bb5 MOV RSI,qword ptr [RSP + 0x78] INC RSI CALL 0x0010f470 LAB_00166bb5: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R12 JZ 0x00166bcc MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0010f470 LAB_00166bcc: MOV R14,qword ptr [R14] MOV RDX,qword ptr [RSP + 0x88] LAB_00166bd7: MOV RDI,RBX MOV ESI,EBP CALL 0x00156aae LAB_00166be1: LEA RAX,[0x1e1930] MOV qword ptr [RBX],RAX MOV qword ptr [RBX + 0x20],R14 LEA RAX,[RSP + 0x98] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00166c10 MOV RSI,qword ptr [RSP + 0x98] INC RSI CALL 0x0010f470 LAB_00166c10: MOV RAX,RBX ADD RSP,0xa8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
exception * _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ (exception *param_1,int param_2,position_t *param_3,string *param_4) { int8 uVar1; long *local_d0 [2]; long local_c0 [2]; int1 *local_b0; int8 local_a8; int1 local_a0; int7 uStack_9f; long *local_90 [2]; long local_80 [2]; long *local_70 [2]; long local_60 [2]; long *local_50 [2]; long local_40 [2]; /* try { // try from 00166aee to 00166b05 has its CatchHandler @ 00166cba */ local_d0[0] = local_c0; std::__cxx11::string::_M_construct<char_const*>((string *)local_d0,"parse_error",""); /* try { // try from 00166b06 to 00166b16 has its CatchHandler @ 00166c9e */ nlohmann::json_abi_v3_11_3::detail::exception::name ((exception *)local_70,(string *)local_d0,param_2); /* try { // try from 00166b17 to 00166b23 has its CatchHandler @ 00166c7e */ nlohmann::json_abi_v3_11_3::detail::parse_error::position_string_abi_cxx11_ ((parse_error *)local_90,param_3); local_a8 = 0; local_a0 = 0; /* try { // try from 00166b3a to 00166b67 has its CatchHandler @ 00166c47 */ local_b0 = &local_a0; nlohmann::json_abi_v3_11_3::detail:: concat<std::__cxx11::string,std::__cxx11::string,char_const(&)[12],std::__cxx11::string,char_const(&)[3],std::__cxx11::string,std::__cxx11::string_const&> ((detail *)local_50,(string *)local_70,"parse error",(string *)local_90,": ", (string *)&local_b0,param_4); if (local_b0 != &local_a0) { operator_delete(local_b0,CONCAT71(uStack_9f,local_a0) + 1); } if (local_90[0] != local_80) { operator_delete(local_90[0],local_80[0] + 1); } if (local_70[0] != local_60) { operator_delete(local_70[0],local_60[0] + 1); } if (local_d0[0] != local_c0) { operator_delete(local_d0[0],local_c0[0] + 1); } uVar1 = *(int8 *)param_3; /* try { // try from 00166bd7 to 00166be0 has its CatchHandler @ 00166c25 */ nlohmann::json_abi_v3_11_3::detail::exception::exception(param_1,param_2,(char *)local_50[0]); *(int ***)param_1 = &PTR__exception_001e1930; *(int8 *)(param_1 + 0x20) = uVar1; if (local_50[0] != local_40) { operator_delete(local_50[0],local_40[0] + 1); } return param_1; }
65,208
pagecache_delete
eloqsql/storage/maria/ma_pagecache.c
my_bool pagecache_delete(PAGECACHE *pagecache, PAGECACHE_FILE *file, pgcache_page_no_t pageno, enum pagecache_page_lock lock, my_bool flush) { my_bool error= 0; enum pagecache_page_pin pin= lock_to_pin_one_phase[lock]; DBUG_ENTER("pagecache_delete"); DBUG_PRINT("enter", ("fd: %u page: %lu %s %s", (uint) file->file, (ulong) pageno, page_cache_page_lock_str[lock], page_cache_page_pin_str[pin])); DBUG_ASSERT(lock == PAGECACHE_LOCK_WRITE || lock == PAGECACHE_LOCK_LEFT_WRITELOCKED); DBUG_ASSERT(pin == PAGECACHE_PIN || pin == PAGECACHE_PIN_LEFT_PINNED); restart: DBUG_ASSERT(pageno < ((1ULL) << 40)); if (pagecache->can_be_used) { /* Key cache is used */ reg1 PAGECACHE_BLOCK_LINK *block; PAGECACHE_HASH_LINK **unused_start, *page_link; pagecache_pthread_mutex_lock(&pagecache->cache_lock); if (!pagecache->can_be_used) goto end; inc_counter_for_resize_op(pagecache); page_link= get_present_hash_link(pagecache, file, pageno, &unused_start); if (!page_link) { DBUG_PRINT("info", ("There is no such page in the cache")); dec_counter_for_resize_op(pagecache); pagecache_pthread_mutex_unlock(&pagecache->cache_lock); DBUG_RETURN(0); } block= page_link->block; if (block->status & (PCBLOCK_REASSIGNED | PCBLOCK_IN_SWITCH)) { DBUG_PRINT("info", ("Block %p already is %s", block, ((block->status & PCBLOCK_REASSIGNED) ? "reassigned" : "in switch"))); PCBLOCK_INFO(block); page_link->requests--; dec_counter_for_resize_op(pagecache); goto end; } /* See NOTE for pagecache_unlock about registering requests. */ if (pin == PAGECACHE_PIN) reg_requests(pagecache, block, 1); if (make_lock_and_pin(pagecache, block, lock, pin, FALSE)) { /* We failed to writelock the block, cache is unlocked, and last write lock is released, we will try to get the block again. */ if (pin == PAGECACHE_PIN) unreg_request(pagecache, block, 1); dec_counter_for_resize_op(pagecache); pagecache_pthread_mutex_unlock(&pagecache->cache_lock); dec_counter_for_resize_op(pagecache); DBUG_PRINT("info", ("restarting...")); goto restart; } /* we can't delete with opened direct link for write */ DBUG_ASSERT((block->status & PCBLOCK_DIRECT_W) == 0); error= pagecache_delete_internal(pagecache, block, page_link, flush); end: pagecache_pthread_mutex_unlock(&pagecache->cache_lock); } DBUG_RETURN(error); }
O3
c
pagecache_delete: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, -0x40(%rbp) cmpb $0x0, 0x1aa(%rdi) je 0x33566 movq %rdx, %r13 movq %rdi, %r14 movl %r8d, -0x2c(%rbp) movl %ecx, -0x34(%rbp) movl %ecx, %eax leaq 0xad981(%rip), %rcx # 0xe0cc0 movl (%rcx,%rax,4), %eax movl %eax, -0x30(%rbp) leaq 0xc8(%rdi), %r15 leaq 0x352cbd(%rip), %r12 # 0x386010 cmpq $0x0, 0x108(%r14) jne 0x334d5 movq %r15, %rdi callq 0x29220 cmpb $0x0, 0x1aa(%r14) je 0x335d8 movq 0x20(%r14), %rdx movq 0x68(%r14), %rax leaq 0x1(%rax), %rcx movq %rcx, 0x68(%r14) movq 0x88(%r14), %rsi movq -0x40(%rbp), %rcx movslq 0x10(%rcx), %rcx leaq (%rcx,%r13), %rdi decq %rdx andq %rdi, %rdx movq (%rsi,%rdx,8), %rbx testq %rbx, %rbx je 0x33515 cmpq %r13, 0x60(%rbx) jne 0x333b8 cmpl %ecx, 0x28(%rbx) je 0x333bd movq (%rbx), %rbx jmp 0x333a4 movq %r15, %r12 movl 0x68(%rbx), %eax leal 0x1(%rax), %ecx movl %ecx, 0x68(%rbx) movq 0x10(%rbx), %r15 testb $0xc, 0x74(%r15) jne 0x33579 movl -0x34(%rbp), %edx cmpl $0x4, %edx jne 0x3342c movl 0x60(%r15), %eax testl %eax, %eax jne 0x333f7 movq %r14, %rdi movq %r15, %rsi callq 0x34b35 movl 0x60(%r15), %eax incl %eax movl %eax, 0x60(%r15) movq %r14, %rdi movq %r15, %rsi movl $0x4, %edx movl $0x2, %ecx callq 0x31b53 testb %al, %al je 0x33586 movq %r14, %rdi movq %r15, %rsi movl $0x1, %edx callq 0x31cc3 jmp 0x33442 movq %r14, %rdi movq %r15, %rsi movl -0x30(%rbp), %ecx callq 0x31b53 testb %al, %al je 0x33586 decq 0x68(%r14) movq %r12, %r15 leaq 0x352bc0(%rip), %r12 # 0x386010 jne 0x3347e movq 0x110(%r14), %rax testq %rax, %rax je 0x3347e movq 0x88(%rax), %rbx movq 0x38(%rbx), %rdi testq %rdi, %rdi jne 0x334fa addq $0x8, %rbx movq %rbx, %rdi callq 0x295c0 movq 0x108(%r14), %rdi testq %rdi, %rdi jne 0x334ee movq %r15, %rdi callq 0x291e0 decq 0x68(%r14) jne 0x334c0 movq 0x110(%r14), %rax testq %rax, %rax je 0x334c0 movq 0x88(%rax), %rbx movq 0x38(%rbx), %rdi testq %rdi, %rdi jne 0x33509 addq $0x8, %rbx movq %rbx, %rdi callq 0x295c0 xorl %ebx, %ebx cmpb $0x0, 0x1aa(%r14) jne 0x33353 jmp 0x33568 movq %r15, %rdi leaq 0xa5dcc(%rip), %rsi # 0xd92ab movl $0x107a, %edx # imm = 0x107A callq 0x2eb8f jmp 0x33369 movq (%r12), %rax callq *0x160(%rax) jmp 0x3348a movq (%r12), %rax callq *0x170(%rax) jmp 0x33472 movq (%r12), %rax callq *0x170(%rax) jmp 0x334b4 movq %rax, 0x68(%r14) testq %rax, %rax jne 0x3354a movq 0x110(%r14), %rax testq %rax, %rax je 0x3354a movq 0x88(%rax), %rbx movq 0x38(%rbx), %rdi addq $0x8, %rbx testq %rdi, %rdi jne 0x335f9 movq %rbx, %rdi callq 0x295c0 movq 0x108(%r14), %rdi xorl %ebx, %ebx testq %rdi, %rdi jne 0x335ea movq %r15, %rdi callq 0x291e0 jmp 0x33568 xorl %ebx, %ebx movl %ebx, %eax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl %eax, 0x68(%rbx) decq 0x68(%r14) je 0x335a6 xorl %ebx, %ebx jmp 0x3359a movsbl -0x2c(%rbp), %ecx movq %r14, %rdi movq %r15, %rsi movq %rbx, %rdx callq 0x330f5 movl %eax, %ebx movq %r12, %r15 leaq 0x352a6c(%rip), %r12 # 0x386010 jmp 0x335da movq 0x110(%r14), %rax testq %rax, %rax movq %r12, %r15 je 0x335e6 movq 0x88(%rax), %rbx movq 0x38(%rbx), %rdi addq $0x8, %rbx testq %rdi, %rdi leaq 0x352a42(%rip), %r12 # 0x386010 jne 0x33608 movq %rbx, %rdi callq 0x295c0 xorl %ebx, %ebx movq 0x108(%r14), %rdi jmp 0x33553 xorl %ebx, %ebx jmp 0x3359d movq (%r12), %rax callq *0x160(%rax) jmp 0x3355c movq (%r12), %rax callq *0x170(%rax) jmp 0x33542 movq (%r12), %rax callq *0x170(%rax) jmp 0x335d0
pagecache_delete: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov [rbp+var_40], rsi cmp byte ptr [rdi+1AAh], 0 jz loc_33566 mov r13, rdx mov r14, rdi mov [rbp+var_2C], r8d mov [rbp+var_34], ecx mov eax, ecx lea rcx, lock_to_pin_one_phase mov eax, [rcx+rax*4] mov [rbp+var_30], eax lea r15, [rdi+0C8h] lea r12, PSI_server loc_33353: cmp qword ptr [r14+108h], 0 jnz loc_334D5 mov rdi, r15 call _pthread_mutex_lock loc_33369: cmp byte ptr [r14+1AAh], 0 jz loc_335D8 mov rdx, [r14+20h] mov rax, [r14+68h] lea rcx, [rax+1] mov [r14+68h], rcx mov rsi, [r14+88h] mov rcx, [rbp+var_40] movsxd rcx, dword ptr [rcx+10h] lea rdi, [rcx+r13] dec rdx and rdx, rdi mov rbx, [rsi+rdx*8] loc_333A4: test rbx, rbx jz loc_33515 cmp [rbx+60h], r13 jnz short loc_333B8 cmp [rbx+28h], ecx jz short loc_333BD loc_333B8: mov rbx, [rbx] jmp short loc_333A4 loc_333BD: mov r12, r15 mov eax, [rbx+68h] lea ecx, [rax+1] mov [rbx+68h], ecx mov r15, [rbx+10h] test byte ptr [r15+74h], 0Ch jnz loc_33579 mov edx, [rbp+var_34] cmp edx, 4 jnz short loc_3342C mov eax, [r15+60h] test eax, eax jnz short loc_333F7 mov rdi, r14 mov rsi, r15 call unlink_block mov eax, [r15+60h] loc_333F7: inc eax mov [r15+60h], eax mov rdi, r14 mov rsi, r15 mov edx, 4 mov ecx, 2 call make_lock_and_pin test al, al jz loc_33586 mov rdi, r14 mov rsi, r15 mov edx, 1 call unreg_request jmp short loc_33442 loc_3342C: mov rdi, r14 mov rsi, r15 mov ecx, [rbp+var_30] call make_lock_and_pin test al, al jz loc_33586 loc_33442: dec qword ptr [r14+68h] mov r15, r12 lea r12, PSI_server jnz short loc_3347E mov rax, [r14+110h] test rax, rax jz short loc_3347E mov rbx, [rax+88h] mov rdi, [rbx+38h] test rdi, rdi jnz loc_334FA loc_33472: add rbx, 8 mov rdi, rbx call _pthread_cond_signal loc_3347E: mov rdi, [r14+108h] test rdi, rdi jnz short loc_334EE loc_3348A: mov rdi, r15 call _pthread_mutex_unlock dec qword ptr [r14+68h] jnz short loc_334C0 mov rax, [r14+110h] test rax, rax jz short loc_334C0 mov rbx, [rax+88h] mov rdi, [rbx+38h] test rdi, rdi jnz short loc_33509 loc_334B4: add rbx, 8 mov rdi, rbx call _pthread_cond_signal loc_334C0: xor ebx, ebx cmp byte ptr [r14+1AAh], 0 jnz loc_33353 jmp loc_33568 loc_334D5: mov rdi, r15 lea rsi, aWorkspaceLlm4b_25; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 107Ah call psi_mutex_lock jmp loc_33369 loc_334EE: mov rax, [r12] call qword ptr [rax+160h] jmp short loc_3348A loc_334FA: mov rax, [r12] call qword ptr [rax+170h] jmp loc_33472 loc_33509: mov rax, [r12] call qword ptr [rax+170h] jmp short loc_334B4 loc_33515: mov [r14+68h], rax test rax, rax jnz short loc_3354A mov rax, [r14+110h] test rax, rax jz short loc_3354A mov rbx, [rax+88h] mov rdi, [rbx+38h] add rbx, 8 test rdi, rdi jnz loc_335F9 loc_33542: mov rdi, rbx call _pthread_cond_signal loc_3354A: mov rdi, [r14+108h] xor ebx, ebx loc_33553: test rdi, rdi jnz loc_335EA loc_3355C: mov rdi, r15 call _pthread_mutex_unlock jmp short loc_33568 loc_33566: xor ebx, ebx loc_33568: mov eax, ebx add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_33579: mov [rbx+68h], eax dec qword ptr [r14+68h] jz short loc_335A6 xor ebx, ebx jmp short loc_3359A loc_33586: movsx ecx, byte ptr [rbp+var_2C] mov rdi, r14 mov rsi, r15 mov rdx, rbx call pagecache_delete_internal mov ebx, eax loc_3359A: mov r15, r12 loc_3359D: lea r12, PSI_server jmp short loc_335DA loc_335A6: mov rax, [r14+110h] test rax, rax mov r15, r12 jz short loc_335E6 mov rbx, [rax+88h] mov rdi, [rbx+38h] add rbx, 8 test rdi, rdi lea r12, PSI_server jnz short loc_33608 loc_335D0: mov rdi, rbx call _pthread_cond_signal loc_335D8: xor ebx, ebx loc_335DA: mov rdi, [r14+108h] jmp loc_33553 loc_335E6: xor ebx, ebx jmp short loc_3359D loc_335EA: mov rax, [r12] call qword ptr [rax+160h] jmp loc_3355C loc_335F9: mov rax, [r12] call qword ptr [rax+170h] jmp loc_33542 loc_33608: mov rax, [r12] call qword ptr [rax+170h] jmp short loc_335D0
long long pagecache_delete(long long a1, long long a2, long long a3, unsigned int a4, char a5) { long long v7; // r15 long long v8; // rdx long long v9; // rax long long v10; // rcx long long i; // rbx long long v12; // r12 int v13; // eax long long v14; // r15 int v15; // eax bool v16; // zf long long v17; // rax long long v18; // rbx long long v19; // rax long long v20; // rbx unsigned int v21; // ebx long long v22; // rax long long v23; // rbx long long v24; // rdi long long v25; // rbx long long v26; // rdi long long v28; // rax long long v29; // rbx long long v30; // rdi long long v31; // rbx int v33; // [rsp+10h] [rbp-30h] if ( !*(_BYTE *)(a1 + 426) ) return 0; v33 = lock_to_pin_one_phase[a4]; v7 = a1 + 200; do { if ( *(_QWORD *)(a1 + 264) ) psi_mutex_lock(v7, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0x107Au); else pthread_mutex_lock(v7); if ( !*(_BYTE *)(a1 + 426) ) goto LABEL_52; v8 = *(_QWORD *)(a1 + 32); v9 = *(_QWORD *)(a1 + 104); *(_QWORD *)(a1 + 104) = v9 + 1; v10 = *(int *)(a2 + 16); for ( i = *(_QWORD *)(*(_QWORD *)(a1 + 136) + 8 * ((v10 + a3) & (v8 - 1))); ; i = *(_QWORD *)i ) { if ( !i ) { *(_QWORD *)(a1 + 104) = v9; if ( !v9 ) { v22 = *(_QWORD *)(a1 + 272); if ( v22 ) { v23 = *(_QWORD *)(v22 + 136); v24 = *(_QWORD *)(v23 + 56); v25 = v23 + 8; if ( v24 ) PSI_server[46](); pthread_cond_signal(v25); } } v26 = *(_QWORD *)(a1 + 264); v21 = 0; goto LABEL_39; } if ( *(_QWORD *)(i + 96) == a3 && *(_DWORD *)(i + 40) == (_DWORD)v10 ) break; } v12 = v7; v13 = *(_DWORD *)(i + 104); *(_DWORD *)(i + 104) = v13 + 1; v14 = *(_QWORD *)(i + 16); if ( (*(_BYTE *)(v14 + 116) & 0xC) != 0 ) { *(_DWORD *)(i + 104) = v13; v16 = (*(_QWORD *)(a1 + 104))-- == 1LL; if ( !v16 ) { v21 = 0; goto LABEL_47; } v28 = *(_QWORD *)(a1 + 272); v7 = v12; if ( v28 ) { v29 = *(_QWORD *)(v28 + 136); v30 = *(_QWORD *)(v29 + 56); v31 = v29 + 8; if ( v30 ) PSI_server[46](); pthread_cond_signal(v31); LABEL_52: v21 = 0; } else { v21 = 0; } LABEL_53: v26 = *(_QWORD *)(a1 + 264); LABEL_39: if ( v26 ) PSI_server[44](); pthread_mutex_unlock(v7); return v21; } if ( a4 != 4 ) { if ( make_lock_and_pin(a1, *(_QWORD *)(i + 16), a4, v33) ) goto LABEL_18; LABEL_46: v21 = pagecache_delete_internal((_QWORD *)a1, v14, i, a5); LABEL_47: v7 = v12; goto LABEL_53; } v15 = *(_DWORD *)(v14 + 96); if ( !v15 ) { unlink_block(a1, *(_QWORD *)(i + 16)); v15 = *(_DWORD *)(v14 + 96); } *(_DWORD *)(v14 + 96) = v15 + 1; if ( !make_lock_and_pin(a1, v14, 4, 2) ) goto LABEL_46; unreg_request((_QWORD *)a1, v14, 1); LABEL_18: v16 = (*(_QWORD *)(a1 + 104))-- == 1LL; v7 = v12; if ( v16 ) { v17 = *(_QWORD *)(a1 + 272); if ( v17 ) { v18 = *(_QWORD *)(v17 + 136); if ( *(_QWORD *)(v18 + 56) ) PSI_server[46](); pthread_cond_signal(v18 + 8); } } if ( *(_QWORD *)(a1 + 264) ) PSI_server[44](); pthread_mutex_unlock(v12); v16 = (*(_QWORD *)(a1 + 104))-- == 1LL; if ( v16 ) { v19 = *(_QWORD *)(a1 + 272); if ( v19 ) { v20 = *(_QWORD *)(v19 + 136); if ( *(_QWORD *)(v20 + 56) ) PSI_server[46](); pthread_cond_signal(v20 + 8); } } v21 = 0; } while ( *(_BYTE *)(a1 + 426) ); return v21; }
pagecache_delete: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV qword ptr [RBP + -0x40],RSI CMP byte ptr [RDI + 0x1aa],0x0 JZ 0x00133566 MOV R13,RDX MOV R14,RDI MOV dword ptr [RBP + -0x2c],R8D MOV dword ptr [RBP + -0x34],ECX MOV EAX,ECX LEA RCX,[0x1e0cc0] MOV EAX,dword ptr [RCX + RAX*0x4] MOV dword ptr [RBP + -0x30],EAX LEA R15,[RDI + 0xc8] LEA R12,[0x486010] LAB_00133353: CMP qword ptr [R14 + 0x108],0x0 JNZ 0x001334d5 MOV RDI,R15 CALL 0x00129220 LAB_00133369: CMP byte ptr [R14 + 0x1aa],0x0 JZ 0x001335d8 MOV RDX,qword ptr [R14 + 0x20] MOV RAX,qword ptr [R14 + 0x68] LEA RCX,[RAX + 0x1] MOV qword ptr [R14 + 0x68],RCX MOV RSI,qword ptr [R14 + 0x88] MOV RCX,qword ptr [RBP + -0x40] MOVSXD RCX,dword ptr [RCX + 0x10] LEA RDI,[RCX + R13*0x1] DEC RDX AND RDX,RDI MOV RBX,qword ptr [RSI + RDX*0x8] LAB_001333a4: TEST RBX,RBX JZ 0x00133515 CMP qword ptr [RBX + 0x60],R13 JNZ 0x001333b8 CMP dword ptr [RBX + 0x28],ECX JZ 0x001333bd LAB_001333b8: MOV RBX,qword ptr [RBX] JMP 0x001333a4 LAB_001333bd: MOV R12,R15 MOV EAX,dword ptr [RBX + 0x68] LEA ECX,[RAX + 0x1] MOV dword ptr [RBX + 0x68],ECX MOV R15,qword ptr [RBX + 0x10] TEST byte ptr [R15 + 0x74],0xc JNZ 0x00133579 MOV EDX,dword ptr [RBP + -0x34] CMP EDX,0x4 JNZ 0x0013342c MOV EAX,dword ptr [R15 + 0x60] TEST EAX,EAX JNZ 0x001333f7 MOV RDI,R14 MOV RSI,R15 CALL 0x00134b35 MOV EAX,dword ptr [R15 + 0x60] LAB_001333f7: INC EAX MOV dword ptr [R15 + 0x60],EAX MOV RDI,R14 MOV RSI,R15 MOV EDX,0x4 MOV ECX,0x2 CALL 0x00131b53 TEST AL,AL JZ 0x00133586 MOV RDI,R14 MOV RSI,R15 MOV EDX,0x1 CALL 0x00131cc3 JMP 0x00133442 LAB_0013342c: MOV RDI,R14 MOV RSI,R15 MOV ECX,dword ptr [RBP + -0x30] CALL 0x00131b53 TEST AL,AL JZ 0x00133586 LAB_00133442: DEC qword ptr [R14 + 0x68] MOV R15,R12 LEA R12,[0x486010] JNZ 0x0013347e MOV RAX,qword ptr [R14 + 0x110] TEST RAX,RAX JZ 0x0013347e MOV RBX,qword ptr [RAX + 0x88] MOV RDI,qword ptr [RBX + 0x38] TEST RDI,RDI JNZ 0x001334fa LAB_00133472: ADD RBX,0x8 MOV RDI,RBX CALL 0x001295c0 LAB_0013347e: MOV RDI,qword ptr [R14 + 0x108] TEST RDI,RDI JNZ 0x001334ee LAB_0013348a: MOV RDI,R15 CALL 0x001291e0 DEC qword ptr [R14 + 0x68] JNZ 0x001334c0 MOV RAX,qword ptr [R14 + 0x110] TEST RAX,RAX JZ 0x001334c0 MOV RBX,qword ptr [RAX + 0x88] MOV RDI,qword ptr [RBX + 0x38] TEST RDI,RDI JNZ 0x00133509 LAB_001334b4: ADD RBX,0x8 MOV RDI,RBX CALL 0x001295c0 LAB_001334c0: XOR EBX,EBX CMP byte ptr [R14 + 0x1aa],0x0 JNZ 0x00133353 JMP 0x00133568 LAB_001334d5: MOV RDI,R15 LEA RSI,[0x1d92ab] MOV EDX,0x107a CALL 0x0012eb8f JMP 0x00133369 LAB_001334ee: MOV RAX,qword ptr [R12] CALL qword ptr [RAX + 0x160] JMP 0x0013348a LAB_001334fa: MOV RAX,qword ptr [R12] CALL qword ptr [RAX + 0x170] JMP 0x00133472 LAB_00133509: MOV RAX,qword ptr [R12] CALL qword ptr [RAX + 0x170] JMP 0x001334b4 LAB_00133515: MOV qword ptr [R14 + 0x68],RAX TEST RAX,RAX JNZ 0x0013354a MOV RAX,qword ptr [R14 + 0x110] TEST RAX,RAX JZ 0x0013354a MOV RBX,qword ptr [RAX + 0x88] MOV RDI,qword ptr [RBX + 0x38] ADD RBX,0x8 TEST RDI,RDI JNZ 0x001335f9 LAB_00133542: MOV RDI,RBX CALL 0x001295c0 LAB_0013354a: MOV RDI,qword ptr [R14 + 0x108] XOR EBX,EBX LAB_00133553: TEST RDI,RDI JNZ 0x001335ea LAB_0013355c: MOV RDI,R15 CALL 0x001291e0 JMP 0x00133568 LAB_00133566: XOR EBX,EBX LAB_00133568: MOV EAX,EBX ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00133579: MOV dword ptr [RBX + 0x68],EAX DEC qword ptr [R14 + 0x68] JZ 0x001335a6 XOR EBX,EBX JMP 0x0013359a LAB_00133586: MOVSX ECX,byte ptr [RBP + -0x2c] MOV RDI,R14 MOV RSI,R15 MOV RDX,RBX CALL 0x001330f5 MOV EBX,EAX LAB_0013359a: MOV R15,R12 LAB_0013359d: LEA R12,[0x486010] JMP 0x001335da LAB_001335a6: MOV RAX,qword ptr [R14 + 0x110] TEST RAX,RAX MOV R15,R12 JZ 0x001335e6 MOV RBX,qword ptr [RAX + 0x88] MOV RDI,qword ptr [RBX + 0x38] ADD RBX,0x8 TEST RDI,RDI LEA R12,[0x486010] JNZ 0x00133608 LAB_001335d0: MOV RDI,RBX CALL 0x001295c0 LAB_001335d8: XOR EBX,EBX LAB_001335da: MOV RDI,qword ptr [R14 + 0x108] JMP 0x00133553 LAB_001335e6: XOR EBX,EBX JMP 0x0013359d LAB_001335ea: MOV RAX,qword ptr [R12] CALL qword ptr [RAX + 0x160] JMP 0x0013355c LAB_001335f9: MOV RAX,qword ptr [R12] CALL qword ptr [RAX + 0x170] JMP 0x00133542 LAB_00133608: MOV RAX,qword ptr [R12] CALL qword ptr [RAX + 0x170] JMP 0x001335d0
int4 pagecache_delete(long param_1,long param_2,long param_3,uint param_4,char param_5) { long *plVar1; pthread_mutex_t *__mutex; char cVar2; int iVar3; int4 uVar4; int8 *puVar5; long lVar6; if (*(char *)(param_1 + 0x1aa) != '\0') { uVar4 = *(int4 *)(lock_to_pin_one_phase + (ulong)param_4 * 4); __mutex = (pthread_mutex_t *)(param_1 + 200); do { if (*(long *)(param_1 + 0x108) == 0) { pthread_mutex_lock(__mutex); } else { psi_mutex_lock(__mutex, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0x107a); } if (*(char *)(param_1 + 0x1aa) == '\0') { LAB_001335d8: uVar4 = 0; LAB_001335da: lVar6 = *(long *)(param_1 + 0x108); LAB_00133553: if (lVar6 != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock(__mutex); return uVar4; } lVar6 = *(long *)(param_1 + 0x68); *(long *)(param_1 + 0x68) = lVar6 + 1; puVar5 = *(int8 **) (*(long *)(param_1 + 0x88) + (*(long *)(param_1 + 0x20) - 1U & *(int *)(param_2 + 0x10) + param_3) * 8); while( true ) { if (puVar5 == (int8 *)0x0) { *(long *)(param_1 + 0x68) = lVar6; if ((lVar6 == 0) && (*(long *)(param_1 + 0x110) != 0)) { lVar6 = *(long *)(*(long *)(param_1 + 0x110) + 0x88); if (*(long *)(lVar6 + 0x38) != 0) { (**(code **)(PSI_server + 0x170))(); } pthread_cond_signal((pthread_cond_t *)(lVar6 + 8)); } lVar6 = *(long *)(param_1 + 0x108); uVar4 = 0; goto LAB_00133553; } if ((puVar5[0xc] == param_3) && (*(int *)(puVar5 + 5) == *(int *)(param_2 + 0x10))) break; puVar5 = (int8 *)*puVar5; } iVar3 = *(int *)(puVar5 + 0xd); *(int *)(puVar5 + 0xd) = iVar3 + 1; lVar6 = puVar5[2]; if ((*(byte *)(lVar6 + 0x74) & 0xc) != 0) { *(int *)(puVar5 + 0xd) = iVar3; plVar1 = (long *)(param_1 + 0x68); *plVar1 = *plVar1 + -1; if (*plVar1 != 0) { uVar4 = 0; goto LAB_001335da; } if (*(long *)(param_1 + 0x110) == 0) { uVar4 = 0; goto LAB_001335da; } lVar6 = *(long *)(*(long *)(param_1 + 0x110) + 0x88); if (*(long *)(lVar6 + 0x38) != 0) { (**(code **)(PSI_server + 0x170))(); } pthread_cond_signal((pthread_cond_t *)(lVar6 + 8)); goto LAB_001335d8; } if (param_4 == 4) { iVar3 = *(int *)(lVar6 + 0x60); if (iVar3 == 0) { unlink_block(param_1,lVar6); iVar3 = *(int *)(lVar6 + 0x60); } *(int *)(lVar6 + 0x60) = iVar3 + 1; cVar2 = make_lock_and_pin(param_1,lVar6,4,2); if (cVar2 == '\0') { LAB_00133586: uVar4 = pagecache_delete_internal(param_1,lVar6,puVar5,(int)param_5); goto LAB_001335da; } unreg_request(param_1,lVar6,1); } else { cVar2 = make_lock_and_pin(param_1,lVar6,param_4,uVar4); if (cVar2 == '\0') goto LAB_00133586; } plVar1 = (long *)(param_1 + 0x68); *plVar1 = *plVar1 + -1; if ((*plVar1 == 0) && (*(long *)(param_1 + 0x110) != 0)) { lVar6 = *(long *)(*(long *)(param_1 + 0x110) + 0x88); if (*(long *)(lVar6 + 0x38) != 0) { (**(code **)(PSI_server + 0x170))(); } pthread_cond_signal((pthread_cond_t *)(lVar6 + 8)); } if (*(long *)(param_1 + 0x108) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock(__mutex); plVar1 = (long *)(param_1 + 0x68); *plVar1 = *plVar1 + -1; if ((*plVar1 == 0) && (*(long *)(param_1 + 0x110) != 0)) { lVar6 = *(long *)(*(long *)(param_1 + 0x110) + 0x88); if (*(long *)(lVar6 + 0x38) != 0) { (**(code **)(PSI_server + 0x170))(); } pthread_cond_signal((pthread_cond_t *)(lVar6 + 8)); } } while (*(char *)(param_1 + 0x1aa) != '\0'); } return 0; }
65,209
minja::Value::pop(minja::Value const&)
llama.cpp/common/minja/minja.hpp
Value pop(const Value& index) { if (is_array()) { if (array_->empty()) throw std::runtime_error("pop from empty list"); if (index.is_null()) { auto ret = array_->back(); array_->pop_back(); return ret; } else if (!index.is_number_integer()) { throw std::runtime_error("pop index must be an integer: " + index.dump()); } else { auto i = index.get<int>(); if (i < 0 || i >= static_cast<int>(array_->size())) throw std::runtime_error("pop index out of range: " + index.dump()); auto it = array_->begin() + (i < 0 ? array_->size() + i : i); auto ret = *it; array_->erase(it); return ret; } } else if (is_object()) { if (!index.is_hashable()) throw std::runtime_error("Unashable type: " + index.dump()); auto it = object_->find(index.primitive_); if (it == object_->end()) throw std::runtime_error("Key not found: " + index.dump()); auto ret = it->second; object_->erase(it); return ret; } else { throw std::runtime_error("Value is not an array or object: " + dump()); } }
O3
cpp
minja::Value::pop(minja::Value const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rdx, %rbx movq %rsi, %r15 movq %rdi, %rbp movq 0x10(%rsi), %rax testq %rax, %rax je 0xea1c3 movq 0x8(%rax), %rsi cmpq %rsi, (%rax) je 0xea2d1 cmpq $0x0, 0x20(%rbx) movb 0x40(%rbx), %al jne 0xea228 cmpq $0x0, 0x10(%rbx) jne 0xea228 testb %al, %al jne 0xea228 cmpq $0x0, 0x30(%rbx) jne 0xea228 addq $-0x50, %rsi movq %rbp, %rdi callq 0xbdec0 movq 0x10(%r15), %rdi movq 0x8(%rdi), %rsi addq $-0x50, %rsi movq %rsi, 0x8(%rdi) callq 0xbe582 jmp 0xea2bf movq 0x20(%r15), %r14 testq %r14, %r14 je 0xea363 cmpq $0x0, 0x10(%rbx) jne 0xea3c3 cmpq $0x0, 0x20(%rbx) jne 0xea3c3 cmpq $0x0, 0x30(%rbx) jne 0xea3c3 movq (%r14), %r13 movq 0x8(%r14), %r12 cmpq %r12, %r13 je 0xea298 movq %rbp, 0x40(%rsp) leaq 0x40(%rbx), %rbp movq %r13, %rdi movq %rbp, %rsi callq 0xbc6c4 testb %al, %al jne 0xea288 addq $0x60, %r13 movq 0x8(%r14), %r12 cmpq %r12, %r13 jne 0xea20a jmp 0xea28b addb $-0x5, %al cmpb $0x2, %al jae 0xea480 movq %rbx, %rdi callq 0xc098e testl %eax, %eax js 0xea303 movq 0x10(%r15), %rcx movq (%rcx), %r12 movq 0x8(%rcx), %rcx subq %r12, %rcx shrq $0x4, %rcx imull $0xcccccccd, %ecx, %ecx # imm = 0xCCCCCCCD cmpl %ecx, %eax jge 0xea303 movl %eax, %eax leaq (%rax,%rax,4), %rax shlq $0x4, %rax addq %rax, %r12 movq %rbp, %rdi movq %r12, %rsi callq 0xbdec0 movq 0x10(%r15), %rdi movq %r12, %rsi callq 0xeb032 jmp 0xea2bf movq %r13, %r12 movq 0x20(%r15), %rax movq 0x8(%rax), %r13 movq 0x40(%rsp), %rbp cmpq %r13, %r12 je 0xea423 leaq 0x10(%r12), %rsi movq %rbp, %rdi callq 0xbdec0 movq 0x20(%r15), %rdi leaq 0x60(%r12), %rdx movq %r12, %rsi callq 0xeb198 movq %rbp, %rax addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0x10, %edi callq 0x20650 movq %rax, %r14 leaq 0x37e99(%rip), %rsi # 0x12217e movq %rax, %rdi callq 0x20430 movq 0x78ccc(%rip), %rsi # 0x162fc0 movq 0x78c85(%rip), %rdx # 0x162f80 movq %r14, %rdi callq 0x20a50 movl $0x10, %edi callq 0x20650 movq %rax, %r14 movq %rsp, %rdi movq %rbx, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0xb6330 leaq 0x37e88(%rip), %rsi # 0x1221b1 leaq 0x20(%rsp), %rdi movq %rsp, %rdx callq 0xafbd0 movb $0x1, %bpl leaq 0x20(%rsp), %rsi movq %r14, %rdi callq 0x20480 xorl %ebp, %ebp movq 0x78c71(%rip), %rsi # 0x162fc0 movq 0x78c2a(%rip), %rdx # 0x162f80 movq %r14, %rdi callq 0x20a50 jmp 0xea4db movl $0x10, %edi callq 0x20650 movq %rax, %r14 movq %rsp, %rdi movq %r15, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0xb6330 leaq 0x35d28(%rip), %rsi # 0x1200b1 leaq 0x20(%rsp), %rdi movq %rsp, %rdx callq 0xafbd0 movb $0x1, %bpl leaq 0x20(%rsp), %rsi movq %r14, %rdi callq 0x20480 xorl %ebp, %ebp movq 0x78c11(%rip), %rsi # 0x162fc0 movq 0x78bca(%rip), %rdx # 0x162f80 movq %r14, %rdi callq 0x20a50 jmp 0xea4db movl $0x10, %edi callq 0x20650 movq %rax, %r14 movq %rsp, %rdi movq %rbx, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0xb6330 leaq 0x35c75(%rip), %rsi # 0x12005e leaq 0x20(%rsp), %rdi movq %rsp, %rdx callq 0xafbd0 movb $0x1, %bpl leaq 0x20(%rsp), %rsi movq %r14, %rdi callq 0x20480 xorl %ebp, %ebp movq 0x78bb1(%rip), %rsi # 0x162fc0 movq 0x78b6a(%rip), %rdx # 0x162f80 movq %r14, %rdi callq 0x20a50 jmp 0xea4db movl $0x10, %edi callq 0x20650 movq %rax, %r14 movq %rsp, %rdi movq %rbx, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0xb6330 leaq 0x37d81(%rip), %rsi # 0x1221ca leaq 0x20(%rsp), %rdi movq %rsp, %rdx callq 0xafbd0 movb $0x1, %bpl leaq 0x20(%rsp), %rsi movq %r14, %rdi callq 0x20480 xorl %ebp, %ebp movq 0x78b51(%rip), %rsi # 0x162fc0 movq 0x78b0a(%rip), %rdx # 0x162f80 movq %r14, %rdi callq 0x20a50 jmp 0xea4db movl $0x10, %edi callq 0x20650 movq %rax, %r14 movq %rsp, %rdi movq %rbx, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0xb6330 leaq 0x37cec(%rip), %rsi # 0x122192 leaq 0x20(%rsp), %rdi movq %rsp, %rdx callq 0xafbd0 movb $0x1, %bpl leaq 0x20(%rsp), %rsi movq %r14, %rdi callq 0x20480 xorl %ebp, %ebp movq 0x78af4(%rip), %rsi # 0x162fc0 movq 0x78aad(%rip), %rdx # 0x162f80 movq %r14, %rdi callq 0x20a50 jmp 0xea4eb jmp 0xea52b jmp 0xea4eb jmp 0xea52b jmp 0xea4eb jmp 0xea52b jmp 0xea4eb jmp 0xea52b movq %rax, %rbx leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xea509 movq 0x30(%rsp), %rsi incq %rsi callq 0x20180 leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xea524 movq 0x10(%rsp), %rsi incq %rsi callq 0x20180 testb %bpl, %bpl jne 0xea55a jmp 0xea56f movq %rax, %rbx leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xea55a movq 0x10(%rsp), %rsi incq %rsi callq 0x20180 jmp 0xea55a jmp 0xea557 jmp 0xea557 jmp 0xea557 jmp 0xea557 jmp 0xea564 jmp 0xea557 movq %rax, %rbx movq %r14, %rdi callq 0x20f00 jmp 0xea56f movq %rax, %rbx movq %rbp, %rdi callq 0xb63cc movq %rbx, %rdi callq 0x20af0 nop
_ZN5minja5Value3popERKS0_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h mov rbx, rdx mov r15, rsi mov rbp, rdi mov rax, [rsi+10h] test rax, rax jz short loc_EA1C3 mov rsi, [rax+8] cmp [rax], rsi jz loc_EA2D1 cmp qword ptr [rbx+20h], 0 mov al, [rbx+40h] jnz loc_EA228 cmp qword ptr [rbx+10h], 0 jnz loc_EA228 test al, al jnz loc_EA228 cmp qword ptr [rbx+30h], 0 jnz loc_EA228 add rsi, 0FFFFFFFFFFFFFFB0h; minja::Value * mov rdi, rbp; this call _ZN5minja5ValueC2ERKS0_; minja::Value::Value(minja::Value const&) mov rdi, [r15+10h] mov rsi, [rdi+8] add rsi, 0FFFFFFFFFFFFFFB0h mov [rdi+8], rsi call _ZNSt15__new_allocatorIN5minja5ValueEE7destroyIS1_EEvPT_; std::__new_allocator<minja::Value>::destroy<minja::Value>(minja::Value *) jmp loc_EA2BF loc_EA1C3: mov r14, [r15+20h] test r14, r14 jz loc_EA363 cmp qword ptr [rbx+10h], 0 jnz loc_EA3C3 cmp qword ptr [rbx+20h], 0 jnz loc_EA3C3 cmp qword ptr [rbx+30h], 0 jnz loc_EA3C3 mov r13, [r14] mov r12, [r14+8] cmp r13, r12 jz loc_EA298 mov [rsp+78h+var_38], rbp lea rbp, [rbx+40h] loc_EA20A: mov rdi, r13 mov rsi, rbp call _ZN8nlohmann16json_abi_v3_11_3eqERKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEESF_; nlohmann::json_abi_v3_11_3::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> const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) test al, al jnz short loc_EA288 add r13, 60h ; '`' mov r12, [r14+8] cmp r13, r12 jnz short loc_EA20A jmp short loc_EA28B loc_EA228: add al, 0FBh cmp al, 2 jnb loc_EA480 mov rdi, rbx call _ZNK5minja5Value3getIiEET_v; minja::Value::get<int>(void) test eax, eax js loc_EA303 mov rcx, [r15+10h] mov r12, [rcx] mov rcx, [rcx+8] sub rcx, r12 shr rcx, 4 imul ecx, 0CCCCCCCDh cmp eax, ecx jge loc_EA303 mov eax, eax lea rax, [rax+rax*4] shl rax, 4 add r12, rax mov rdi, rbp; this mov rsi, r12; minja::Value * call _ZN5minja5ValueC2ERKS0_; minja::Value::Value(minja::Value const&) mov rdi, [r15+10h] mov rsi, r12 call _ZNSt6vectorIN5minja5ValueESaIS1_EE8_M_eraseEN9__gnu_cxx17__normal_iteratorIPS1_S3_EE; std::vector<minja::Value>::_M_erase(__gnu_cxx::__normal_iterator<minja::Value*,std::vector<minja::Value>>) jmp short loc_EA2BF loc_EA288: mov r12, r13 loc_EA28B: mov rax, [r15+20h] mov r13, [rax+8] mov rbp, [rsp+78h+var_38] loc_EA298: cmp r12, r13 jz loc_EA423 lea rsi, [r12+10h]; minja::Value * mov rdi, rbp; this call _ZN5minja5ValueC2ERKS0_; minja::Value::Value(minja::Value const&) mov rdi, [r15+20h] lea rdx, [r12+60h] mov rsi, r12 call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE5eraseEN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEESR_; 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>>>::erase(__gnu_cxx::__normal_iterator<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>*,std::vector<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>>>,__gnu_cxx::__normal_iterator<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>*,std::vector<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>>>) loc_EA2BF: mov rax, rbp add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_EA2D1: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aPopFromEmptyLi; "pop from empty list" mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, r14; void * call ___cxa_throw loc_EA303: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax mov rdi, rsp mov rsi, rbx mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) lea rsi, aPopIndexOutOfR; "pop index out of range: " lea rdi, [rsp+78h+var_58] mov rdx, rsp call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) mov bpl, 1 lea rsi, [rsp+78h+var_58] mov rdi, r14 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, r14; void * call ___cxa_throw jmp loc_EA4DB loc_EA363: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax mov rdi, rsp mov rsi, r15 mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) lea rsi, aValueIsNotAnAr; "Value is not an array or object: " lea rdi, [rsp+78h+var_58] mov rdx, rsp call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) mov bpl, 1 lea rsi, [rsp+78h+var_58] mov rdi, r14 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, r14; void * call ___cxa_throw jmp loc_EA4DB loc_EA3C3: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax mov rdi, rsp mov rsi, rbx mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) lea rsi, aUnashableType; "Unashable type: " lea rdi, [rsp+78h+var_58] mov rdx, rsp call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) mov bpl, 1 lea rsi, [rsp+78h+var_58] mov rdi, r14 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, r14; void * call ___cxa_throw jmp loc_EA4DB loc_EA423: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax mov rdi, rsp mov rsi, rbx mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) lea rsi, aKeyNotFound_0; "Key not found: " lea rdi, [rsp+78h+var_58] mov rdx, rsp call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) mov bpl, 1 lea rsi, [rsp+78h+var_58] mov rdi, r14 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, r14; void * call ___cxa_throw jmp short loc_EA4DB loc_EA480: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax mov rdi, rsp mov rsi, rbx mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) lea rsi, aPopIndexMustBe; "pop index must be an integer: " lea rdi, [rsp+78h+var_58] mov rdx, rsp call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) mov bpl, 1 lea rsi, [rsp+78h+var_58] mov rdi, r14 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, r14; void * call ___cxa_throw loc_EA4DB: jmp short loc_EA4EB jmp short loc_EA52B jmp short loc_EA4EB jmp short loc_EA52B jmp short loc_EA4EB jmp short loc_EA52B jmp short loc_EA4EB jmp short loc_EA52B loc_EA4EB: mov rbx, rax lea rax, [rsp+78h+var_48] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_EA509 mov rsi, [rsp+78h+var_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_EA509: lea rax, [rsp+78h+var_68] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_EA524 mov rsi, [rsp+78h+var_68] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_EA524: test bpl, bpl jnz short loc_EA55A jmp short loc_EA56F loc_EA52B: mov rbx, rax lea rax, [rsp+78h+var_68] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_EA55A mov rsi, [rsp+78h+var_68] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_EA55A jmp short loc_EA557 jmp short loc_EA557 jmp short loc_EA557 jmp short loc_EA557 jmp short loc_EA564 jmp short $+2 loc_EA557: mov rbx, rax loc_EA55A: mov rdi, r14; void * call ___cxa_free_exception jmp short loc_EA56F loc_EA564: mov rbx, rax mov rdi, rbp; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() loc_EA56F: mov rdi, rbx call __Unwind_Resume
minja::Value * minja::Value::pop(minja::Value *this, const minja::Value *a2, long long a3, __m128d a4) { minja::Value *v6; // rbp _QWORD *v7; // rax long long v8; // rsi char v9; // al long long v10; // rdi long long v11; // rsi unsigned __int8 **v12; // r14 unsigned __int8 *v13; // r13 unsigned __int8 *v14; // r12 int v15; // eax _QWORD *v16; // rcx const minja::Value *v17; // r12 std::runtime_error *exception; // r14 void *v20; // r14 void *v21; // r14 void *v22; // r14 void *v23; // r14 void *v24; // r14 _BYTE v25[16]; // [rsp+0h] [rbp-78h] BYREF _QWORD v26[2]; // [rsp+20h] [rbp-58h] BYREF minja::Value *v27; // [rsp+40h] [rbp-38h] v6 = this; v7 = (_QWORD *)*((_QWORD *)a2 + 2); if ( v7 ) { v8 = v7[1]; if ( *v7 == v8 ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "pop from empty list"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } v9 = *(_BYTE *)(a3 + 64); if ( *(_QWORD *)(a3 + 32) || *(_QWORD *)(a3 + 16) || v9 || *(_QWORD *)(a3 + 48) ) { if ( (unsigned __int8)(v9 - 5) >= 2u ) { v24 = __cxa_allocate_exception(0x10uLL); minja::Value::dump[abi:cxx11]((long long)v25, a3, 0xFFFFFFFF, 0); std::operator+<char>(v26, (long long)"pop index must be an integer: ", (long long)v25); std::runtime_error::runtime_error(v24, v26); __cxa_throw( v24, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } v15 = minja::Value::get<int>((_QWORD *)a3); if ( v15 < 0 || (v16 = (_QWORD *)*((_QWORD *)a2 + 2), v15 >= (int)(-858993459 * ((v16[1] - *v16) >> 4))) ) { v20 = __cxa_allocate_exception(0x10uLL); minja::Value::dump[abi:cxx11]((long long)v25, a3, 0xFFFFFFFF, 0); std::operator+<char>(v26, (long long)"pop index out of range: ", (long long)v25); std::runtime_error::runtime_error(v20, v26); __cxa_throw( v20, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } v17 = (const minja::Value *)(80LL * (unsigned int)v15 + *v16); minja::Value::Value(this, v17); std::vector<minja::Value>::_M_erase(*((_QWORD *)a2 + 2), v17); } else { minja::Value::Value(this, (const minja::Value *)(v8 - 80)); v10 = *((_QWORD *)a2 + 2); v11 = *(_QWORD *)(v10 + 8) - 80LL; *(_QWORD *)(v10 + 8) = v11; std::__new_allocator<minja::Value>::destroy<minja::Value>(v10, v11); } } else { v12 = (unsigned __int8 **)*((_QWORD *)a2 + 4); if ( !v12 ) { v21 = __cxa_allocate_exception(0x10uLL); minja::Value::dump[abi:cxx11]((long long)v25, (long long)a2, 0xFFFFFFFF, 0); std::operator+<char>(v26, (long long)"Value is not an array or object: ", (long long)v25); std::runtime_error::runtime_error(v21, v26); __cxa_throw( v21, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } if ( *(_QWORD *)(a3 + 16) || *(_QWORD *)(a3 + 32) || *(_QWORD *)(a3 + 48) ) { v22 = __cxa_allocate_exception(0x10uLL); minja::Value::dump[abi:cxx11]((long long)v25, a3, 0xFFFFFFFF, 0); std::operator+<char>(v26, (long long)"Unashable type: ", (long long)v25); std::runtime_error::runtime_error(v22, v26); __cxa_throw( v22, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } v13 = *v12; v14 = v12[1]; if ( *v12 != v14 ) { v27 = this; while ( !(unsigned __int8)nlohmann::json_abi_v3_11_3::operator==(v13, (unsigned __int8 *)(a3 + 64), a4) ) { v13 += 96; v14 = v12[1]; if ( v13 == v14 ) goto LABEL_22; } v14 = v13; LABEL_22: v13 = *(unsigned __int8 **)(*((_QWORD *)a2 + 4) + 8LL); v6 = v27; } if ( v14 == v13 ) { v23 = __cxa_allocate_exception(0x10uLL); minja::Value::dump[abi:cxx11]((long long)v25, a3, 0xFFFFFFFF, 0); std::operator+<char>(v26, (long long)"Key not found: ", (long long)v25); std::runtime_error::runtime_error(v23, v26); __cxa_throw( v23, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } minja::Value::Value(v6, (const minja::Value *)(v14 + 16)); 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>>>::erase( *((_QWORD *)a2 + 4), v14, v14 + 96); } return v6; }
pop: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 MOV RBX,RDX MOV R15,RSI MOV RBP,RDI MOV RAX,qword ptr [RSI + 0x10] TEST RAX,RAX JZ 0x001ea1c3 MOV RSI,qword ptr [RAX + 0x8] CMP qword ptr [RAX],RSI JZ 0x001ea2d1 CMP qword ptr [RBX + 0x20],0x0 MOV AL,byte ptr [RBX + 0x40] JNZ 0x001ea228 CMP qword ptr [RBX + 0x10],0x0 JNZ 0x001ea228 TEST AL,AL JNZ 0x001ea228 CMP qword ptr [RBX + 0x30],0x0 JNZ 0x001ea228 ADD RSI,-0x50 MOV RDI,RBP CALL 0x001bdec0 MOV RDI,qword ptr [R15 + 0x10] MOV RSI,qword ptr [RDI + 0x8] ADD RSI,-0x50 MOV qword ptr [RDI + 0x8],RSI CALL 0x001be582 JMP 0x001ea2bf LAB_001ea1c3: MOV R14,qword ptr [R15 + 0x20] TEST R14,R14 JZ 0x001ea363 CMP qword ptr [RBX + 0x10],0x0 JNZ 0x001ea3c3 CMP qword ptr [RBX + 0x20],0x0 JNZ 0x001ea3c3 CMP qword ptr [RBX + 0x30],0x0 JNZ 0x001ea3c3 MOV R13,qword ptr [R14] MOV R12,qword ptr [R14 + 0x8] CMP R13,R12 JZ 0x001ea298 MOV qword ptr [RSP + 0x40],RBP LEA RBP,[RBX + 0x40] LAB_001ea20a: MOV RDI,R13 MOV RSI,RBP CALL 0x001bc6c4 TEST AL,AL JNZ 0x001ea288 ADD R13,0x60 MOV R12,qword ptr [R14 + 0x8] CMP R13,R12 JNZ 0x001ea20a JMP 0x001ea28b LAB_001ea228: ADD AL,0xfb CMP AL,0x2 JNC 0x001ea480 MOV RDI,RBX CALL 0x001c098e TEST EAX,EAX JS 0x001ea303 MOV RCX,qword ptr [R15 + 0x10] MOV R12,qword ptr [RCX] MOV RCX,qword ptr [RCX + 0x8] SUB RCX,R12 SHR RCX,0x4 IMUL ECX,ECX,-0x33333333 CMP EAX,ECX JGE 0x001ea303 MOV EAX,EAX LEA RAX,[RAX + RAX*0x4] SHL RAX,0x4 ADD R12,RAX MOV RDI,RBP MOV RSI,R12 CALL 0x001bdec0 MOV RDI,qword ptr [R15 + 0x10] LAB_001ea27e: MOV RSI,R12 CALL 0x001eb032 LAB_001ea286: JMP 0x001ea2bf LAB_001ea288: MOV R12,R13 LAB_001ea28b: MOV RAX,qword ptr [R15 + 0x20] MOV R13,qword ptr [RAX + 0x8] MOV RBP,qword ptr [RSP + 0x40] LAB_001ea298: CMP R12,R13 JZ 0x001ea423 LEA RSI,[R12 + 0x10] MOV RDI,RBP CALL 0x001bdec0 MOV RDI,qword ptr [R15 + 0x20] LEA RDX,[R12 + 0x60] LAB_001ea2b7: MOV RSI,R12 CALL 0x001eb198 LAB_001ea2bf: MOV RAX,RBP ADD RSP,0x48 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001ea2d1: MOV EDI,0x10 CALL 0x00120650 MOV R14,RAX LAB_001ea2de: LEA RSI,[0x22217e] MOV RDI,RAX CALL 0x00120430 LAB_001ea2ed: MOV RSI,qword ptr [0x00262fc0] MOV RDX,qword ptr [0x00262f80] MOV RDI,R14 CALL 0x00120a50 LAB_001ea303: MOV EDI,0x10 CALL 0x00120650 MOV R14,RAX LAB_001ea310: MOV RDI,RSP MOV RSI,RBX MOV EDX,0xffffffff XOR ECX,ECX CALL 0x001b6330 LAB_001ea322: LEA RSI,[0x2221b1] LEA RDI,[RSP + 0x20] MOV RDX,RSP CALL 0x001afbd0 MOV BPL,0x1 LAB_001ea339: LEA RSI,[RSP + 0x20] MOV RDI,R14 CALL 0x00120480 XOR EBP,EBP MOV RSI,qword ptr [0x00262fc0] MOV RDX,qword ptr [0x00262f80] MOV RDI,R14 CALL 0x00120a50 LAB_001ea363: MOV EDI,0x10 CALL 0x00120650 MOV R14,RAX LAB_001ea370: MOV RDI,RSP MOV RSI,R15 MOV EDX,0xffffffff XOR ECX,ECX CALL 0x001b6330 LAB_001ea382: LEA RSI,[0x2200b1] LEA RDI,[RSP + 0x20] MOV RDX,RSP CALL 0x001afbd0 MOV BPL,0x1 LAB_001ea399: LEA RSI,[RSP + 0x20] MOV RDI,R14 CALL 0x00120480 XOR EBP,EBP MOV RSI,qword ptr [0x00262fc0] MOV RDX,qword ptr [0x00262f80] MOV RDI,R14 CALL 0x00120a50 LAB_001ea3c3: MOV EDI,0x10 CALL 0x00120650 MOV R14,RAX LAB_001ea3d0: MOV RDI,RSP MOV RSI,RBX MOV EDX,0xffffffff XOR ECX,ECX CALL 0x001b6330 LAB_001ea3e2: LEA RSI,[0x22005e] LEA RDI,[RSP + 0x20] MOV RDX,RSP CALL 0x001afbd0 MOV BPL,0x1 LAB_001ea3f9: LEA RSI,[RSP + 0x20] MOV RDI,R14 CALL 0x00120480 XOR EBP,EBP MOV RSI,qword ptr [0x00262fc0] MOV RDX,qword ptr [0x00262f80] MOV RDI,R14 CALL 0x00120a50 LAB_001ea423: MOV EDI,0x10 CALL 0x00120650 MOV R14,RAX LAB_001ea430: MOV RDI,RSP MOV RSI,RBX MOV EDX,0xffffffff XOR ECX,ECX CALL 0x001b6330 LAB_001ea442: LEA RSI,[0x2221ca] LEA RDI,[RSP + 0x20] MOV RDX,RSP CALL 0x001afbd0 MOV BPL,0x1 LAB_001ea459: LEA RSI,[RSP + 0x20] MOV RDI,R14 CALL 0x00120480 XOR EBP,EBP MOV RSI,qword ptr [0x00262fc0] MOV RDX,qword ptr [0x00262f80] MOV RDI,R14 CALL 0x00120a50 LAB_001ea480: MOV EDI,0x10 CALL 0x00120650 MOV R14,RAX LAB_001ea48d: MOV RDI,RSP MOV RSI,RBX MOV EDX,0xffffffff XOR ECX,ECX CALL 0x001b6330 LAB_001ea49f: LEA RSI,[0x222192] LEA RDI,[RSP + 0x20] MOV RDX,RSP CALL 0x001afbd0 MOV BPL,0x1 LAB_001ea4b6: LEA RSI,[RSP + 0x20] MOV RDI,R14 CALL 0x00120480 XOR EBP,EBP MOV RSI,qword ptr [0x00262fc0] MOV RDX,qword ptr [0x00262f80] MOV RDI,R14 CALL 0x00120a50
/* minja::Value::pop(minja::Value const&) */ Value * minja::Value::pop(Value *param_1) { long *plVar1; __new_allocator<minja::Value> *this; long lVar2; char cVar3; uint uVar4; runtime_error *prVar5; int iVar6; Value *in_RDX; bool bVar7; long in_RSI; int iVar8; Value *pVVar9; basic_json *pbVar10; basic_json *pbVar11; int1 auStack_78 [32]; string local_58 [32]; Value *local_38; plVar1 = *(long **)(in_RSI + 0x10); bVar7 = SUB81(in_RDX,0); iVar8 = (int)auStack_78; if (plVar1 == (long *)0x0) { plVar1 = *(long **)(in_RSI + 0x20); if (plVar1 == (long *)0x0) { prVar5 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001ea370 to 001ea381 has its CatchHandler @ 001ea551 */ dump_abi_cxx11_(iVar8,SUB81(in_RSI,0)); /* try { // try from 001ea382 to 001ea395 has its CatchHandler @ 001ea4e9 */ std::operator+((char *)local_58,(string *)"Value is not an array or object: "); /* try { // try from 001ea399 to 001ea3bd has its CatchHandler @ 001ea4e7 */ std::runtime_error::runtime_error(prVar5,local_58); /* WARNING: Subroutine does not return */ __cxa_throw(prVar5,PTR_typeinfo_00262fc0,PTR__runtime_error_00262f80); } if (((*(long *)(in_RDX + 0x10) != 0) || (*(long *)(in_RDX + 0x20) != 0)) || (*(long *)(in_RDX + 0x30) != 0)) { prVar5 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001ea3d0 to 001ea3e1 has its CatchHandler @ 001ea54f */ dump_abi_cxx11_(iVar8,bVar7); /* try { // try from 001ea3e2 to 001ea3f5 has its CatchHandler @ 001ea4e5 */ std::operator+((char *)local_58,(string *)"Unashable type: "); /* try { // try from 001ea3f9 to 001ea41d has its CatchHandler @ 001ea4e3 */ std::runtime_error::runtime_error(prVar5,local_58); /* WARNING: Subroutine does not return */ __cxa_throw(prVar5,PTR_typeinfo_00262fc0,PTR__runtime_error_00262f80); } pbVar11 = (basic_json *)*plVar1; pbVar10 = (basic_json *)plVar1[1]; if (pbVar11 != pbVar10) { local_38 = param_1; do { pbVar10 = pbVar11; cVar3 = nlohmann::json_abi_v3_11_3::operator==(pbVar10,(basic_json *)(in_RDX + 0x40)); if (cVar3 != '\0') break; pbVar11 = pbVar10 + 0x60; pbVar10 = (basic_json *)plVar1[1]; } while (pbVar11 != pbVar10); pbVar11 = *(basic_json **)(*(long *)(in_RSI + 0x20) + 8); param_1 = local_38; } if (pbVar10 == pbVar11) { prVar5 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001ea430 to 001ea441 has its CatchHandler @ 001ea54d */ dump_abi_cxx11_(iVar8,bVar7); /* try { // try from 001ea442 to 001ea455 has its CatchHandler @ 001ea4e1 */ std::operator+((char *)local_58,(string *)"Key not found: "); /* try { // try from 001ea459 to 001ea47d has its CatchHandler @ 001ea4df */ std::runtime_error::runtime_error(prVar5,local_58); /* WARNING: Subroutine does not return */ __cxa_throw(prVar5,PTR_typeinfo_00262fc0,PTR__runtime_error_00262f80); } Value(param_1,(Value *)(pbVar10 + 0x10)); /* try { // try from 001ea2b7 to 001ea2be has its CatchHandler @ 001ea564 */ 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>>> ::erase(*(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>>> **)(in_RSI + 0x20),pbVar10,pbVar10 + 0x60); } else { if (*plVar1 == plVar1[1]) { prVar5 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001ea2de to 001ea2ec has its CatchHandler @ 001ea557 */ std::runtime_error::runtime_error(prVar5,"pop from empty list"); /* WARNING: Subroutine does not return */ __cxa_throw(prVar5,PTR_typeinfo_00262fc0,PTR__runtime_error_00262f80); } if (((*(long *)(in_RDX + 0x20) == 0) && (*(long *)(in_RDX + 0x10) == 0)) && ((in_RDX[0x40] == (Value)0x0 && (*(long *)(in_RDX + 0x30) == 0)))) { Value(param_1,(Value *)(plVar1[1] + -0x50)); this = *(__new_allocator<minja::Value> **)(in_RSI + 0x10); lVar2 = *(long *)(this + 8); *(Value **)(this + 8) = (Value *)(lVar2 + -0x50); std::__new_allocator<minja::Value>::destroy<minja::Value>(this,(Value *)(lVar2 + -0x50)); } else { if (1 < (byte)((char)in_RDX[0x40] - 5U)) { prVar5 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001ea48d to 001ea49e has its CatchHandler @ 001ea54b */ dump_abi_cxx11_(iVar8,bVar7); /* try { // try from 001ea49f to 001ea4b2 has its CatchHandler @ 001ea4dd */ std::operator+((char *)local_58,(string *)"pop index must be an integer: "); /* try { // try from 001ea4b6 to 001ea4da has its CatchHandler @ 001ea4db */ std::runtime_error::runtime_error(prVar5,local_58); /* WARNING: Subroutine does not return */ __cxa_throw(prVar5,PTR_typeinfo_00262fc0,PTR__runtime_error_00262f80); } uVar4 = get<int>(in_RDX); if (((int)uVar4 < 0) || (lVar2 = **(long **)(in_RSI + 0x10), iVar6 = (int)((ulong)((*(long **)(in_RSI + 0x10))[1] - lVar2) >> 4), SBORROW4(uVar4,iVar6 * -0x33333333) == (int)(uVar4 + iVar6 * 0x33333333) < 0)) { prVar5 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001ea310 to 001ea321 has its CatchHandler @ 001ea555 */ dump_abi_cxx11_(iVar8,bVar7); /* try { // try from 001ea322 to 001ea335 has its CatchHandler @ 001ea52b */ std::operator+((char *)local_58,(string *)"pop index out of range: "); /* try { // try from 001ea339 to 001ea35d has its CatchHandler @ 001ea4eb */ std::runtime_error::runtime_error(prVar5,local_58); /* WARNING: Subroutine does not return */ __cxa_throw(prVar5,PTR_typeinfo_00262fc0,PTR__runtime_error_00262f80); } pVVar9 = (Value *)(lVar2 + (ulong)uVar4 * 0x50); Value(param_1,pVVar9); /* try { // try from 001ea27e to 001ea285 has its CatchHandler @ 001ea553 */ std::vector<minja::Value,std::allocator<minja::Value>>::_M_erase (*(vector<minja::Value,std::allocator<minja::Value>> **)(in_RSI + 0x10),pVVar9); } } return param_1; }
65,210
ma_update_state_lsns
eloqsql/storage/maria/ma_create.c
int _ma_update_state_lsns(MARIA_SHARE *share, LSN lsn, TrID create_trid, my_bool do_sync, my_bool update_create_rename_lsn) { int res; DBUG_ENTER("_ma_update_state_lsns"); mysql_mutex_lock(&share->intern_lock); res= _ma_update_state_lsns_sub(share, lsn, create_trid, do_sync, update_create_rename_lsn); mysql_mutex_unlock(&share->intern_lock); DBUG_RETURN(res); }
O3
c
ma_update_state_lsns: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %r8d, %r12d movl %ecx, %r15d movq %rdx, -0x30(%rbp) movq %rsi, %r13 movq %rdi, %r14 leaq 0x8f0(%rdi), %rbx cmpq $0x0, 0x930(%rdi) jne 0x47c45 movq %rbx, %rdi callq 0x27270 movsbl %r15b, %ecx movsbl %r12b, %r8d movq %r14, %rdi movq %r13, %rsi movq -0x30(%rbp), %rdx callq 0x47839 movl %eax, %r15d movq 0x930(%r14), %rdi testq %rdi, %rdi jne 0x47c5b movq %rbx, %rdi callq 0x27240 movl %r15d, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x7705a(%rip), %rsi # 0xbeca6 movq %rbx, %rdi movl $0x58d, %edx # imm = 0x58D callq 0x2c6aa jmp 0x47c05 leaq 0x31f7d6(%rip), %rax # 0x367438 movq (%rax), %rax callq *0x160(%rax) jmp 0x47c2b nopl (%rax)
_ma_update_state_lsns: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r12d, r8d mov r15d, ecx mov [rbp+var_30], rdx mov r13, rsi mov r14, rdi lea rbx, [rdi+8F0h] cmp qword ptr [rdi+930h], 0 jnz short loc_47C45 mov rdi, rbx call _pthread_mutex_lock loc_47C05: movsx ecx, r15b movsx r8d, r12b mov rdi, r14 mov rsi, r13 mov rdx, [rbp+var_30] call _ma_update_state_lsns_sub mov r15d, eax mov rdi, [r14+930h] test rdi, rdi jnz short loc_47C5B loc_47C2B: mov rdi, rbx call _pthread_mutex_unlock mov eax, r15d add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_47C45: lea rsi, aWorkspaceLlm4b_4; "/workspace/llm4binary/github2025/eloqsq"... mov rdi, rbx mov edx, 58Dh call psi_mutex_lock jmp short loc_47C05 loc_47C5B: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp short loc_47C2B
long long ma_update_state_lsns(long long a1, long long a2, long long a3, char a4, char a5) { unsigned int updated; // r15d if ( *(_QWORD *)(a1 + 2352) ) psi_mutex_lock(a1 + 2288, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_create.c", 0x58Du); else pthread_mutex_lock(a1 + 2288); updated = ma_update_state_lsns_sub(a1, a2, a3, a4, a5); if ( *(_QWORD *)(a1 + 2352) ) PSI_server[44](); pthread_mutex_unlock(a1 + 2288); return updated; }
_ma_update_state_lsns: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R12D,R8D MOV R15D,ECX MOV qword ptr [RBP + -0x30],RDX MOV R13,RSI MOV R14,RDI LEA RBX,[RDI + 0x8f0] CMP qword ptr [RDI + 0x930],0x0 JNZ 0x00147c45 MOV RDI,RBX CALL 0x00127270 LAB_00147c05: MOVSX ECX,R15B MOVSX R8D,R12B MOV RDI,R14 MOV RSI,R13 MOV RDX,qword ptr [RBP + -0x30] CALL 0x00147839 MOV R15D,EAX MOV RDI,qword ptr [R14 + 0x930] TEST RDI,RDI JNZ 0x00147c5b LAB_00147c2b: MOV RDI,RBX CALL 0x00127240 MOV EAX,R15D ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00147c45: LEA RSI,[0x1beca6] MOV RDI,RBX MOV EDX,0x58d CALL 0x0012c6aa JMP 0x00147c05 LAB_00147c5b: LEA RAX,[0x467438] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x00147c2b
int4 _ma_update_state_lsns(long param_1,int8 param_2,int8 param_3,char param_4,char param_5) { pthread_mutex_t *__mutex; int4 uVar1; __mutex = (pthread_mutex_t *)(param_1 + 0x8f0); if (*(long *)(param_1 + 0x930) == 0) { pthread_mutex_lock(__mutex); } else { psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_create.c", 0x58d); } uVar1 = _ma_update_state_lsns_sub(param_1,param_2,param_3,(int)param_4,(int)param_5); if (*(long *)(param_1 + 0x930) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock(__mutex); return uVar1; }
65,211
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [24], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(char const (&) [24], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&)
monkey531[P]llama/common/json.hpp
inline OutStringType concat(Args && ... args) { OutStringType str; str.reserve(concat_length(args...)); concat_into(str, std::forward<Args>(args)...); return str; }
O2
cpp
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [24], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(char const (&) [24], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&): pushq %r15 pushq %r14 pushq %rbx movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx leaq 0x10(%rdi), %rax movq %rax, (%rdi) andq $0x0, 0x8(%rdi) movb $0x0, 0x10(%rdi) movq %rsi, %rdi movq %rdx, %rsi callq 0x4301d movq %rbx, %rdi movq %rax, %rsi callq 0x23d90 movq %rbx, %rdi movq %r15, %rsi movq %r14, %rdx callq 0x829c1 movq %rbx, %rax popq %rbx popq %r14 popq %r15 retq movq %rax, %r14 movq %rbx, %rdi callq 0x241d8 movq %r14, %rdi callq 0x23fa0
_ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA56_KcPS9_EEET_DpOT0_: push r15 push r14 push rbx mov r14, rdx mov r15, rsi mov rbx, rdi lea rax, [rdi+10h] mov [rdi], rax and qword ptr [rdi+8], 0 mov byte ptr [rdi+10h], 0 mov rdi, rsi mov rsi, rdx call _ZN8nlohmann16json_abi_v3_11_36detail13concat_lengthIJPKcEEEmS4_DpRKT_; nlohmann::json_abi_v3_11_3::detail::concat_length<char const*>(char const*,char const* const&) mov rdi, rbx mov rsi, rax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) mov rdi, rbx mov rsi, r15 mov rdx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA56_KcJPS9_ETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_ mov rax, rbx pop rbx pop r14 pop r15 retn mov r14, rax mov rdi, rbx; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, r14 call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[56],char const*>( long long a1, long long a2, _QWORD *a3) { long long v4; // rax *(_QWORD *)a1 = a1 + 16; *(_QWORD *)(a1 + 8) = 0LL; *(_BYTE *)(a1 + 16) = 0; v4 = nlohmann::json_abi_v3_11_3::detail::concat_length<char const*>(a2, a3); std::string::reserve(a1, v4); ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA56_KcJPS9_ETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_( a1, a2, a3); return a1; }
concat<std::__cxx11::string,char_const(&)[56],char_const*>: PUSH R15 PUSH R14 PUSH RBX MOV R14,RDX MOV R15,RSI MOV RBX,RDI LEA RAX,[RDI + 0x10] MOV qword ptr [RDI],RAX AND qword ptr [RDI + 0x8],0x0 MOV byte ptr [RDI + 0x10],0x0 MOV RDI,RSI MOV RSI,RDX CALL 0x0014301d LAB_0018298c: MOV RDI,RBX MOV RSI,RAX CALL 0x00123d90 MOV RDI,RBX MOV RSI,R15 MOV RDX,R14 CALL 0x001829c1 LAB_001829a5: MOV RAX,RBX POP RBX POP R14 POP R15 RET
/* std::__cxx11::string nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string, char const (&) [56], char const*>(char const (&) [56], char const*&&) */ detail * __thiscall nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[56],char_const*> (detail *this,char *param_1,char **param_2) { *(detail **)this = this + 0x10; *(int8 *)(this + 8) = 0; this[0x10] = (detail)0x0; concat_length<char_const*>(param_1,param_2); /* try { // try from 0018298c to 001829a4 has its CatchHandler @ 001829ae */ std::__cxx11::string::reserve((ulong)this); _ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA56_KcJPS9_ETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_ (this,param_1,param_2); return this; }
65,212
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [24], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(char const (&) [24], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&)
monkey531[P]llama/common/json.hpp
inline OutStringType concat(Args && ... args) { OutStringType str; str.reserve(concat_length(args...)); concat_into(str, std::forward<Args>(args)...); return str; }
O3
cpp
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [24], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(char const (&) [24], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&): pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx leaq 0x10(%rdi), %r12 movq %r12, (%rdi) movq $0x0, 0x8(%rdi) movb $0x0, 0x10(%rdi) movq %rsi, %rdi callq 0x1a3e0 addq 0x8(%r14), %rax movq %rbx, %rdi movq %rax, %rsi callq 0x1ad80 movq %rbx, %rdi movq %r15, %rsi callq 0x1b0f0 movq (%r14), %rsi movq 0x8(%r14), %rdx movq %rbx, %rdi callq 0x1a260 movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq movq %rax, %r14 movq (%rbx), %rdi cmpq %r12, %rdi je 0xb6c3d movq (%r12), %rsi incq %rsi callq 0x1a8e0 movq %r14, %rdi callq 0x1afa0
_ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA39_KcS8_EEET_DpOT0_: push r15 push r14 push r12 push rbx push rax mov r14, rdx mov r15, rsi mov rbx, rdi lea r12, [rdi+10h] mov [rdi], r12 mov qword ptr [rdi+8], 0 mov byte ptr [rdi+10h], 0 mov rdi, rsi call _strlen add rax, [r14+8] mov rdi, rbx mov rsi, rax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) mov rdi, rbx mov rsi, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov rsi, [r14] mov rdx, [r14+8] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rax, rbx add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn mov r14, rax mov rdi, [rbx]; void * cmp rdi, r12 jz short loc_B6C3D mov rsi, [r12] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_B6C3D: mov rdi, r14 call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[39],std::string>( long long a1, long long a2, _QWORD *a3) { long long v4; // rax *(_QWORD *)a1 = a1 + 16; *(_QWORD *)(a1 + 8) = 0LL; *(_BYTE *)(a1 + 16) = 0; v4 = strlen(a2); std::string::reserve(a1, a3[1] + v4); std::string::append(a1, a2); std::string::_M_append(a1, *a3, a3[1]); return a1; }
concat<std::__cxx11::string,char_const(&)[39],std::__cxx11::string>: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV R14,RDX MOV R15,RSI MOV RBX,RDI LEA R12,[RDI + 0x10] MOV qword ptr [RDI],R12 MOV qword ptr [RDI + 0x8],0x0 MOV byte ptr [RDI + 0x10],0x0 MOV RDI,RSI CALL 0x0011a3e0 ADD RAX,qword ptr [R14 + 0x8] LAB_001b6bf2: MOV RDI,RBX MOV RSI,RAX CALL 0x0011ad80 MOV RDI,RBX MOV RSI,R15 CALL 0x0011b0f0 MOV RSI,qword ptr [R14] MOV RDX,qword ptr [R14 + 0x8] MOV RDI,RBX CALL 0x0011a260 LAB_001b6c17: MOV RAX,RBX ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
/* std::__cxx11::string nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string, char const (&) [39], std::__cxx11::string >(char const (&) [39], std::__cxx11::string&&) */ detail * __thiscall nlohmann::json_abi_v3_11_3::detail:: concat<std::__cxx11::string,char_const(&)[39],std::__cxx11::string> (detail *this,char *param_1,string *param_2) { *(detail **)this = this + 0x10; *(int8 *)(this + 8) = 0; this[0x10] = (detail)0x0; strlen(param_1); /* try { // try from 001b6bf2 to 001b6c16 has its CatchHandler @ 001b6c26 */ std::__cxx11::string::reserve((ulong)this); std::__cxx11::string::append((char *)this); std::__cxx11::string::_M_append((char *)this,*(ulong *)param_2); return this; }
65,213
js_method_set_home_object
bluesky950520[P]quickjs/quickjs.c
static void js_method_set_home_object(JSContext *ctx, JSValue func_obj, JSValue home_obj) { JSObject *p, *p1; JSFunctionBytecode *b; if (JS_VALUE_GET_TAG(func_obj) != JS_TAG_OBJECT) return; p = JS_VALUE_GET_OBJ(func_obj); if (!js_class_has_bytecode(p->class_id)) return; b = p->u.func.function_bytecode; if (b->need_home_object) { p1 = p->u.func.home_object; if (p1) { JS_FreeValue(ctx, JS_MKPTR(JS_TAG_OBJECT, p1)); } if (JS_VALUE_GET_TAG(home_obj) == JS_TAG_OBJECT) p1 = JS_VALUE_GET_OBJ(js_dup(home_obj)); else p1 = NULL; p->u.func.home_object = p1; } }
O0
c
js_method_set_home_object: subq $0x68, %rsp movq %rsi, 0x58(%rsp) movq %rdx, 0x60(%rsp) movq %rcx, 0x48(%rsp) movq %r8, 0x50(%rsp) movq %rdi, 0x40(%rsp) movq 0x60(%rsp), %rax cmpl $-0x1, %eax je 0x68eac jmp 0x68f78 movq 0x58(%rsp), %rax movq %rax, 0x38(%rsp) movq 0x38(%rsp), %rax movzwl 0x6(%rax), %edi callq 0x4a240 cmpl $0x0, %eax jne 0x68ece jmp 0x68f78 movq 0x38(%rsp), %rax movq 0x30(%rax), %rax movq %rax, 0x28(%rsp) movq 0x28(%rsp), %rax movw 0x18(%rax), %ax shrw $0x4, %ax andw $0x1, %ax cmpb $0x0, %al je 0x68f78 movq 0x38(%rsp), %rax movq 0x40(%rax), %rax movq %rax, 0x30(%rsp) cmpq $0x0, 0x30(%rsp) je 0x68f32 movq 0x40(%rsp), %rdi movq 0x30(%rsp), %rax movq %rax, 0x18(%rsp) movq $-0x1, 0x20(%rsp) movq 0x18(%rsp), %rsi movq 0x20(%rsp), %rdx callq 0x23c90 movq 0x50(%rsp), %rax cmpl $-0x1, %eax jne 0x68f61 movq 0x48(%rsp), %rdi movq 0x50(%rsp), %rsi callq 0x216d0 movq %rax, 0x8(%rsp) movq %rdx, 0x10(%rsp) movq 0x8(%rsp), %rax movq %rax, 0x30(%rsp) jmp 0x68f6a movq $0x0, 0x30(%rsp) movq 0x30(%rsp), %rcx movq 0x38(%rsp), %rax movq %rcx, 0x40(%rax) addq $0x68, %rsp retq nopl (%rax)
js_method_set_home_object: sub rsp, 68h mov [rsp+68h+var_10], rsi mov [rsp+68h+var_8], rdx mov [rsp+68h+var_20], rcx mov [rsp+68h+var_18], r8 mov [rsp+68h+var_28], rdi mov rax, [rsp+68h+var_8] cmp eax, 0FFFFFFFFh jz short loc_68EAC jmp loc_68F78 loc_68EAC: mov rax, [rsp+68h+var_10] mov [rsp+68h+var_30], rax mov rax, [rsp+68h+var_30] movzx edi, word ptr [rax+6] call js_class_has_bytecode cmp eax, 0 jnz short loc_68ECE jmp loc_68F78 loc_68ECE: mov rax, [rsp+68h+var_30] mov rax, [rax+30h] mov [rsp+68h+var_40], rax mov rax, [rsp+68h+var_40] mov ax, [rax+18h] shr ax, 4 and ax, 1 cmp al, 0 jz loc_68F78 mov rax, [rsp+68h+var_30] mov rax, [rax+40h] mov [rsp+68h+var_38], rax cmp [rsp+68h+var_38], 0 jz short loc_68F32 mov rdi, [rsp+68h+var_28] mov rax, [rsp+68h+var_38] mov [rsp+68h+var_50], rax mov [rsp+68h+var_48], 0FFFFFFFFFFFFFFFFh mov rsi, [rsp+68h+var_50] mov rdx, [rsp+68h+var_48] call JS_FreeValue loc_68F32: mov rax, [rsp+68h+var_18] cmp eax, 0FFFFFFFFh jnz short loc_68F61 mov rdi, [rsp+68h+var_20] mov rsi, [rsp+68h+var_18] call js_dup mov [rsp+68h+var_60], rax mov [rsp+68h+var_58], rdx mov rax, [rsp+68h+var_60] mov [rsp+68h+var_38], rax jmp short loc_68F6A loc_68F61: mov [rsp+68h+var_38], 0 loc_68F6A: mov rcx, [rsp+68h+var_38] mov rax, [rsp+68h+var_30] mov [rax+40h], rcx loc_68F78: add rsp, 68h retn
__int16 js_method_set_home_object(long long a1, long long a2, int a3, _DWORD *a4, int a5) { BOOL has_bytecode; // eax long long v7; // [rsp+28h] [rbp-40h] long long v8; // [rsp+30h] [rbp-38h] _DWORD *v9; // [rsp+30h] [rbp-38h] LOWORD(has_bytecode) = a3; if ( a3 == -1 ) { has_bytecode = js_class_has_bytecode(*(unsigned __int16 *)(a2 + 6)); if ( has_bytecode ) { v7 = *(_QWORD *)(a2 + 48); LOWORD(has_bytecode) = (*(_WORD *)(v7 + 24) >> 4) & 1; if ( (*(_WORD *)(v7 + 24) & 0x10) != 0 ) { v8 = *(_QWORD *)(a2 + 64); if ( v8 ) JS_FreeValue(a1, v8, -1LL); if ( a5 == -1 ) v9 = js_dup(a4, 0xFFFFFFFF); else v9 = 0LL; LOWORD(has_bytecode) = a2; *(_QWORD *)(a2 + 64) = v9; } } } return has_bytecode; }
js_method_set_home_object: SUB RSP,0x68 MOV qword ptr [RSP + 0x58],RSI MOV qword ptr [RSP + 0x60],RDX MOV qword ptr [RSP + 0x48],RCX MOV qword ptr [RSP + 0x50],R8 MOV qword ptr [RSP + 0x40],RDI MOV RAX,qword ptr [RSP + 0x60] CMP EAX,-0x1 JZ 0x00168eac JMP 0x00168f78 LAB_00168eac: MOV RAX,qword ptr [RSP + 0x58] MOV qword ptr [RSP + 0x38],RAX MOV RAX,qword ptr [RSP + 0x38] MOVZX EDI,word ptr [RAX + 0x6] CALL 0x0014a240 CMP EAX,0x0 JNZ 0x00168ece JMP 0x00168f78 LAB_00168ece: MOV RAX,qword ptr [RSP + 0x38] MOV RAX,qword ptr [RAX + 0x30] MOV qword ptr [RSP + 0x28],RAX MOV RAX,qword ptr [RSP + 0x28] MOV AX,word ptr [RAX + 0x18] SHR AX,0x4 AND AX,0x1 CMP AL,0x0 JZ 0x00168f78 MOV RAX,qword ptr [RSP + 0x38] MOV RAX,qword ptr [RAX + 0x40] MOV qword ptr [RSP + 0x30],RAX CMP qword ptr [RSP + 0x30],0x0 JZ 0x00168f32 MOV RDI,qword ptr [RSP + 0x40] MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x18],RAX MOV qword ptr [RSP + 0x20],-0x1 MOV RSI,qword ptr [RSP + 0x18] MOV RDX,qword ptr [RSP + 0x20] CALL 0x00123c90 LAB_00168f32: MOV RAX,qword ptr [RSP + 0x50] CMP EAX,-0x1 JNZ 0x00168f61 MOV RDI,qword ptr [RSP + 0x48] MOV RSI,qword ptr [RSP + 0x50] CALL 0x001216d0 MOV qword ptr [RSP + 0x8],RAX MOV qword ptr [RSP + 0x10],RDX MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x30],RAX JMP 0x00168f6a LAB_00168f61: MOV qword ptr [RSP + 0x30],0x0 LAB_00168f6a: MOV RCX,qword ptr [RSP + 0x30] MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RAX + 0x40],RCX LAB_00168f78: ADD RSP,0x68 RET
void js_method_set_home_object (int8 param_1,long param_2,int param_3,int8 param_4,int8 param_5) { int iVar1; int8 local_38; if (((param_3 == -1) && (iVar1 = js_class_has_bytecode(*(int2 *)(param_2 + 6)), iVar1 != 0)) && ((*(ushort *)(*(long *)(param_2 + 0x30) + 0x18) >> 4 & 1) != 0)) { if (*(long *)(param_2 + 0x40) != 0) { JS_FreeValue(param_1,*(long *)(param_2 + 0x40),0xffffffffffffffff); } if ((int)param_5 == -1) { local_38 = js_dup(param_4,param_5); } else { local_38 = 0; } *(int8 *)(param_2 + 0x40) = local_38; } return; }
65,214
js_method_set_home_object
bluesky950520[P]quickjs/quickjs.c
static void js_method_set_home_object(JSContext *ctx, JSValue func_obj, JSValue home_obj) { JSObject *p, *p1; JSFunctionBytecode *b; if (JS_VALUE_GET_TAG(func_obj) != JS_TAG_OBJECT) return; p = JS_VALUE_GET_OBJ(func_obj); if (!js_class_has_bytecode(p->class_id)) return; b = p->u.func.function_bytecode; if (b->need_home_object) { p1 = p->u.func.home_object; if (p1) { JS_FreeValue(ctx, JS_MKPTR(JS_TAG_OBJECT, p1)); } if (JS_VALUE_GET_TAG(home_obj) == JS_TAG_OBJECT) p1 = JS_VALUE_GET_OBJ(js_dup(home_obj)); else p1 = NULL; p->u.func.home_object = p1; } }
O1
c
js_method_set_home_object: pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq %rsi, 0x8(%rsp) cmpl $-0x1, %edx jne 0x3fe23 movq 0x8(%rsp), %r15 movzwl 0x6(%r15), %eax cmpq $0x38, %rax ja 0x3fe23 movq %rcx, %rbx movabsq $0x110000000012000, %rcx # imm = 0x110000000012000 btq %rax, %rcx jae 0x3fe23 movq 0x30(%r15), %rax testb $0x10, 0x18(%rax) je 0x3fe23 movq %r8, %r14 movq 0x40(%r15), %rsi testq %rsi, %rsi je 0x3fe13 movq 0x18(%rdi), %rdi movl (%rsi), %eax leal -0x1(%rax), %ecx movl %ecx, (%rsi) cmpl $0x1, %eax jg 0x3fe13 movq $-0x1, %rdx callq 0x21266 cmpl $-0x1, %r14d jne 0x3fe1d incl (%rbx) jmp 0x3fe1f xorl %ebx, %ebx movq %rbx, 0x40(%r15) addq $0x10, %rsp popq %rbx popq %r14 popq %r15 retq
js_method_set_home_object: push r15 push r14 push rbx sub rsp, 10h mov [rsp+28h+var_20], rsi cmp edx, 0FFFFFFFFh jnz short loc_3FE23 mov r15, [rsp+28h+var_20] movzx eax, word ptr [r15+6] cmp rax, 38h ; '8' ja short loc_3FE23 mov rbx, rcx mov rcx, 110000000012000h bt rcx, rax jnb short loc_3FE23 mov rax, [r15+30h] test byte ptr [rax+18h], 10h jz short loc_3FE23 mov r14, r8 mov rsi, [r15+40h] test rsi, rsi jz short loc_3FE13 mov rdi, [rdi+18h] mov eax, [rsi] lea ecx, [rax-1] mov [rsi], ecx cmp eax, 1 jg short loc_3FE13 mov rdx, 0FFFFFFFFFFFFFFFFh call js_free_value_rt loc_3FE13: cmp r14d, 0FFFFFFFFh jnz short loc_3FE1D inc dword ptr [rbx] jmp short loc_3FE1F loc_3FE1D: xor ebx, ebx loc_3FE1F: mov [r15+40h], rbx loc_3FE23: add rsp, 10h pop rbx pop r14 pop r15 retn
void js_method_set_home_object(long long a1, long long a2, int a3, _DWORD *a4, int a5) { unsigned long long v5; // rax long long v7; // rcx _QWORD *v9; // rsi long long v10; // rdi int v11; // eax if ( a3 == -1 ) { v5 = *(unsigned __int16 *)(a2 + 6); if ( v5 <= 0x38 ) { v7 = 0x110000000012000LL; if ( _bittest64(&v7, v5) ) { if ( (*(_BYTE *)(*(_QWORD *)(a2 + 48) + 24LL) & 0x10) != 0 ) { v9 = *(_QWORD **)(a2 + 64); if ( v9 ) { v10 = *(_QWORD *)(a1 + 24); v11 = (*(_DWORD *)v9)--; if ( v11 <= 1 ) js_free_value_rt(v10, v9, -1); } if ( a5 == -1 ) ++*a4; else a4 = 0LL; *(_QWORD *)(a2 + 64) = a4; } } } } }
js_method_set_home_object: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x10 MOV qword ptr [RSP + 0x8],RSI CMP EDX,-0x1 JNZ 0x0013fe23 MOV R15,qword ptr [RSP + 0x8] MOVZX EAX,word ptr [R15 + 0x6] CMP RAX,0x38 JA 0x0013fe23 MOV RBX,RCX MOV RCX,0x110000000012000 BT RCX,RAX JNC 0x0013fe23 MOV RAX,qword ptr [R15 + 0x30] TEST byte ptr [RAX + 0x18],0x10 JZ 0x0013fe23 MOV R14,R8 MOV RSI,qword ptr [R15 + 0x40] TEST RSI,RSI JZ 0x0013fe13 MOV RDI,qword ptr [RDI + 0x18] MOV EAX,dword ptr [RSI] LEA ECX,[RAX + -0x1] MOV dword ptr [RSI],ECX CMP EAX,0x1 JG 0x0013fe13 MOV RDX,-0x1 CALL 0x00121266 LAB_0013fe13: CMP R14D,-0x1 JNZ 0x0013fe1d INC dword ptr [RBX] JMP 0x0013fe1f LAB_0013fe1d: XOR EBX,EBX LAB_0013fe1f: MOV qword ptr [R15 + 0x40],RBX LAB_0013fe23: ADD RSP,0x10 POP RBX POP R14 POP R15 RET
void js_method_set_home_object(long param_1,long param_2,int param_3,int *param_4,int param_5) { int iVar1; int *piVar2; int8 uVar3; if (param_3 == -1) { if ((((ulong)*(ushort *)(param_2 + 6) < 0x39) && ((0x110000000012000U >> ((ulong)*(ushort *)(param_2 + 6) & 0x3f) & 1) != 0)) && ((*(byte *)(*(long *)(param_2 + 0x30) + 0x18) & 0x10) != 0)) { piVar2 = *(int **)(param_2 + 0x40); if (piVar2 != (int *)0x0) { uVar3 = *(int8 *)(param_1 + 0x18); iVar1 = *piVar2; *piVar2 = iVar1 + -1; if (iVar1 < 2) { js_free_value_rt(uVar3,piVar2,0xffffffffffffffff); } } if (param_5 == -1) { *param_4 = *param_4 + 1; } else { param_4 = (int *)0x0; } *(int **)(param_2 + 0x40) = param_4; } } return; }
65,215
js_method_set_home_object
bluesky950520[P]quickjs/quickjs.c
static void js_method_set_home_object(JSContext *ctx, JSValue func_obj, JSValue home_obj) { JSObject *p, *p1; JSFunctionBytecode *b; if (JS_VALUE_GET_TAG(func_obj) != JS_TAG_OBJECT) return; p = JS_VALUE_GET_OBJ(func_obj); if (!js_class_has_bytecode(p->class_id)) return; b = p->u.func.function_bytecode; if (b->need_home_object) { p1 = p->u.func.home_object; if (p1) { JS_FreeValue(ctx, JS_MKPTR(JS_TAG_OBJECT, p1)); } if (JS_VALUE_GET_TAG(home_obj) == JS_TAG_OBJECT) p1 = JS_VALUE_GET_OBJ(js_dup(home_obj)); else p1 = NULL; p->u.func.home_object = p1; } }
O2
c
js_method_set_home_object: cmpl $-0x1, %edx jne 0x38063 pushq %r15 pushq %r14 pushq %rbx movq %rsi, %r14 movzwl 0x6(%rsi), %eax cmpq $0x38, %rax ja 0x3805e movq %rcx, %rbx movabsq $0x110000000012000, %rcx # imm = 0x110000000012000 btq %rax, %rcx jae 0x3805e movq 0x30(%r14), %rax testb $0x10, 0x18(%rax) je 0x3805e movq %r8, %r15 movq 0x40(%r14), %rsi testq %rsi, %rsi je 0x3804e pushq $-0x1 popq %rdx callq 0x1801e cmpl $-0x1, %r15d jne 0x38058 incl (%rbx) jmp 0x3805a xorl %ebx, %ebx movq %rbx, 0x40(%r14) popq %rbx popq %r14 popq %r15 retq
js_method_set_home_object: cmp edx, 0FFFFFFFFh jnz short locret_38063 push r15 push r14 push rbx mov r14, rsi movzx eax, word ptr [rsi+6] cmp rax, 38h ; '8' ja short loc_3805E mov rbx, rcx mov rcx, 110000000012000h bt rcx, rax jnb short loc_3805E mov rax, [r14+30h] test byte ptr [rax+18h], 10h jz short loc_3805E mov r15, r8 mov rsi, [r14+40h] test rsi, rsi jz short loc_3804E push 0FFFFFFFFFFFFFFFFh pop rdx call JS_FreeValue loc_3804E: cmp r15d, 0FFFFFFFFh jnz short loc_38058 inc dword ptr [rbx] jmp short loc_3805A loc_38058: xor ebx, ebx loc_3805A: mov [r14+40h], rbx loc_3805E: pop rbx pop r14 pop r15 locret_38063: retn
void js_method_set_home_object(long long a1, long long a2, int a3, _DWORD *a4, int a5) { unsigned long long v6; // rax long long v8; // rcx long long v10; // rsi if ( a3 == -1 ) { v6 = *(unsigned __int16 *)(a2 + 6); if ( v6 <= 0x38 ) { v8 = 0x110000000012000LL; if ( _bittest64(&v8, v6) ) { if ( (*(_BYTE *)(*(_QWORD *)(a2 + 48) + 24LL) & 0x10) != 0 ) { v10 = *(_QWORD *)(a2 + 64); if ( v10 ) JS_FreeValue(a1, v10, -1LL); if ( a5 == -1 ) ++*a4; else a4 = 0LL; *(_QWORD *)(a2 + 64) = a4; } } } } }
js_method_set_home_object: CMP EDX,-0x1 JNZ 0x00138063 PUSH R15 PUSH R14 PUSH RBX MOV R14,RSI MOVZX EAX,word ptr [RSI + 0x6] CMP RAX,0x38 JA 0x0013805e MOV RBX,RCX MOV RCX,0x110000000012000 BT RCX,RAX JNC 0x0013805e MOV RAX,qword ptr [R14 + 0x30] TEST byte ptr [RAX + 0x18],0x10 JZ 0x0013805e MOV R15,R8 MOV RSI,qword ptr [R14 + 0x40] TEST RSI,RSI JZ 0x0013804e PUSH -0x1 POP RDX CALL 0x0011801e LAB_0013804e: CMP R15D,-0x1 JNZ 0x00138058 INC dword ptr [RBX] JMP 0x0013805a LAB_00138058: XOR EBX,EBX LAB_0013805a: MOV qword ptr [R14 + 0x40],RBX LAB_0013805e: POP RBX POP R14 POP R15 LAB_00138063: RET
void js_method_set_home_object(int8 param_1,long param_2,int param_3,int *param_4,int param_5) { if ((((param_3 == -1) && ((ulong)*(ushort *)(param_2 + 6) < 0x39)) && ((0x110000000012000U >> ((ulong)*(ushort *)(param_2 + 6) & 0x3f) & 1) != 0)) && ((*(byte *)(*(long *)(param_2 + 0x30) + 0x18) & 0x10) != 0)) { if (*(long *)(param_2 + 0x40) != 0) { JS_FreeValue(param_1,*(long *)(param_2 + 0x40),0xffffffffffffffff); } if (param_5 == -1) { *param_4 = *param_4 + 1; } else { param_4 = (int *)0x0; } *(int **)(param_2 + 0x40) = param_4; } return; }
65,216
spdlog::details::registry::apply_all(std::function<void (std::shared_ptr<spdlog::logger>)> const&)
AlayaLite/build_O0/_deps/spdlog-src/include/spdlog/details/registry-inl.h
SPDLOG_INLINE void registry::apply_all( const std::function<void(const std::shared_ptr<logger>)> &fun) { std::lock_guard<std::mutex> lock(logger_map_mutex_); for (auto &l : loggers_) { fun(l.second); } }
O0
c
spdlog::details::registry::apply_all(std::function<void (std::shared_ptr<spdlog::logger>)> const&): subq $0x78, %rsp movq %rdi, 0x70(%rsp) movq %rsi, 0x68(%rsp) movq 0x70(%rsp), %rsi movq %rsi, 0x18(%rsp) leaq 0x60(%rsp), %rdi callq 0x40fd0 movq 0x18(%rsp), %rax addq $0x78, %rax movq %rax, 0x58(%rsp) movq 0x58(%rsp), %rdi callq 0x42050 movq %rax, 0x50(%rsp) movq 0x58(%rsp), %rdi callq 0x41e60 movq %rax, 0x48(%rsp) leaq 0x50(%rsp), %rdi leaq 0x48(%rsp), %rsi callq 0x41e40 xorb $-0x1, %al testb $0x1, %al jne 0x3cba5 jmp 0x3cc21 leaq 0x50(%rsp), %rdi callq 0x42080 movq %rax, 0x40(%rsp) movq 0x68(%rsp), %rax movq %rax, 0x8(%rsp) movq 0x40(%rsp), %rsi addq $0x20, %rsi leaq 0x30(%rsp), %rdi movq %rdi, 0x10(%rsp) callq 0x41ed0 movq 0x8(%rsp), %rdi movq 0x10(%rsp), %rsi callq 0x42120 jmp 0x3cbe7 leaq 0x30(%rsp), %rdi callq 0x41ac0 leaq 0x50(%rsp), %rdi callq 0x420a0 jmp 0x3cb8e movq %rax, %rcx movl %edx, %eax movq %rcx, 0x28(%rsp) movl %eax, 0x24(%rsp) leaq 0x30(%rsp), %rdi callq 0x41ac0 leaq 0x60(%rsp), %rdi callq 0x41090 jmp 0x3cc30 leaq 0x60(%rsp), %rdi callq 0x41090 addq $0x78, %rsp retq movq 0x28(%rsp), %rdi callq 0x16cf0 nopw (%rax,%rax)
_ZN6spdlog7details8registry9apply_allERKSt8functionIFvSt10shared_ptrINS_6loggerEEEE: sub rsp, 78h mov [rsp+78h+var_8], rdi mov [rsp+78h+var_10], rsi mov rsi, [rsp+78h+var_8] mov [rsp+78h+var_60], rsi lea rdi, [rsp+78h+var_18] call _ZNSt10lock_guardISt5mutexEC2ERS0_; std::lock_guard<std::mutex>::lock_guard(std::mutex&) mov rax, [rsp+78h+var_60] add rax, 78h ; 'x' mov [rsp+78h+var_20], rax mov rdi, [rsp+78h+var_20] call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN6spdlog6loggerEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S9_EEE5beginEv; std::unordered_map<std::string,std::shared_ptr<spdlog::logger>>::begin(void) mov [rsp+78h+var_28], rax mov rdi, [rsp+78h+var_20] call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN6spdlog6loggerEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S9_EEE3endEv; std::unordered_map<std::string,std::shared_ptr<spdlog::logger>>::end(void) mov [rsp+78h+var_30], rax loc_3CB8E: lea rdi, [rsp+78h+var_28] lea rsi, [rsp+78h+var_30] call _ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN6spdlog6loggerEEELb1EEESG_; std::__detail::operator==(std::__detail::_Node_iterator_base<std::pair<std::string const,std::shared_ptr<spdlog::logger>>,true> const&,std::__detail::_Node_iterator_base<std::pair<std::string const,std::shared_ptr<spdlog::logger>>,true> const&) xor al, 0FFh test al, 1 jnz short loc_3CBA5 jmp short loc_3CC21 loc_3CBA5: lea rdi, [rsp+78h+var_28] call _ZNKSt8__detail14_Node_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN6spdlog6loggerEEELb0ELb1EEdeEv; std::__detail::_Node_iterator<std::pair<std::string const,std::shared_ptr<spdlog::logger>>,false,true>::operator*(void) mov [rsp+78h+var_38], rax mov rax, [rsp+78h+var_10] mov [rsp+78h+var_70], rax mov rsi, [rsp+78h+var_38] add rsi, 20h ; ' ' lea rdi, [rsp+78h+var_48] mov [rsp+78h+var_68], rdi call _ZNSt10shared_ptrIN6spdlog6loggerEEC2ERKS2_; std::shared_ptr<spdlog::logger>::shared_ptr(std::shared_ptr<spdlog::logger> const&) mov rdi, [rsp+78h+var_70] mov rsi, [rsp+78h+var_68] call _ZNKSt8functionIFvSt10shared_ptrIN6spdlog6loggerEEEEclES3_; std::function<void ()(std::shared_ptr<spdlog::logger>)>::operator()(std::shared_ptr<spdlog::logger>) jmp short $+2 loc_3CBE7: lea rdi, [rsp+78h+var_48] call _ZNSt10shared_ptrIN6spdlog6loggerEED2Ev; std::shared_ptr<spdlog::logger>::~shared_ptr() lea rdi, [rsp+78h+var_28] call _ZNSt8__detail14_Node_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN6spdlog6loggerEEELb0ELb1EEppEv; std::__detail::_Node_iterator<std::pair<std::string const,std::shared_ptr<spdlog::logger>>,false,true>::operator++(void) jmp short loc_3CB8E mov rcx, rax mov eax, edx mov [rsp+arg_20], rcx mov [rsp+arg_1C], eax lea rdi, [rsp+arg_28] call _ZNSt10shared_ptrIN6spdlog6loggerEED2Ev; std::shared_ptr<spdlog::logger>::~shared_ptr() lea rdi, [rsp+arg_58] call _ZNSt10lock_guardISt5mutexED2Ev; std::lock_guard<std::mutex>::~lock_guard() jmp short loc_3CC30 loc_3CC21: lea rdi, [rsp+78h+var_18] call _ZNSt10lock_guardISt5mutexED2Ev; std::lock_guard<std::mutex>::~lock_guard() add rsp, 78h retn loc_3CC30: mov rdi, [rsp+arg_20] call __Unwind_Resume
long long spdlog::details::registry::apply_all(long long a1, long long a2) { long long v3; // [rsp+8h] [rbp-70h] _BYTE v4[16]; // [rsp+30h] [rbp-48h] BYREF long long v5; // [rsp+40h] [rbp-38h] long long v6; // [rsp+48h] [rbp-30h] BYREF _QWORD v7[2]; // [rsp+50h] [rbp-28h] BYREF _BYTE v8[8]; // [rsp+60h] [rbp-18h] BYREF long long v9; // [rsp+68h] [rbp-10h] long long v10; // [rsp+70h] [rbp-8h] v10 = a1; v9 = a2; std::lock_guard<std::mutex>::lock_guard(v8, a1); v7[1] = a1 + 120; v7[0] = std::unordered_map<std::string,std::shared_ptr<spdlog::logger>>::begin(a1 + 120); v6 = std::unordered_map<std::string,std::shared_ptr<spdlog::logger>>::end(a1 + 120); while ( (std::__detail::operator==(v7, &v6) & 1) == 0 ) { v5 = std::__detail::_Node_iterator<std::pair<std::string const,std::shared_ptr<spdlog::logger>>,false,true>::operator*(v7); v3 = v9; std::shared_ptr<spdlog::logger>::shared_ptr(v4, v5 + 32); std::function<void ()(std::shared_ptr<spdlog::logger>)>::operator()(v3, v4); std::shared_ptr<spdlog::logger>::~shared_ptr(v4); std::__detail::_Node_iterator<std::pair<std::string const,std::shared_ptr<spdlog::logger>>,false,true>::operator++(v7); } return std::lock_guard<std::mutex>::~lock_guard(v8); }
apply_all: SUB RSP,0x78 MOV qword ptr [RSP + 0x70],RDI MOV qword ptr [RSP + 0x68],RSI MOV RSI,qword ptr [RSP + 0x70] MOV qword ptr [RSP + 0x18],RSI LEA RDI,[RSP + 0x60] CALL 0x00140fd0 MOV RAX,qword ptr [RSP + 0x18] ADD RAX,0x78 MOV qword ptr [RSP + 0x58],RAX MOV RDI,qword ptr [RSP + 0x58] CALL 0x00142050 MOV qword ptr [RSP + 0x50],RAX MOV RDI,qword ptr [RSP + 0x58] CALL 0x00141e60 MOV qword ptr [RSP + 0x48],RAX LAB_0013cb8e: LEA RDI,[RSP + 0x50] LEA RSI,[RSP + 0x48] CALL 0x00141e40 XOR AL,0xff TEST AL,0x1 JNZ 0x0013cba5 JMP 0x0013cc21 LAB_0013cba5: LEA RDI,[RSP + 0x50] CALL 0x00142080 MOV qword ptr [RSP + 0x40],RAX MOV RAX,qword ptr [RSP + 0x68] MOV qword ptr [RSP + 0x8],RAX MOV RSI,qword ptr [RSP + 0x40] ADD RSI,0x20 LEA RDI,[RSP + 0x30] MOV qword ptr [RSP + 0x10],RDI CALL 0x00141ed0 MOV RDI,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RSP + 0x10] LAB_0013cbe0: CALL 0x00142120 LAB_0013cbe5: JMP 0x0013cbe7 LAB_0013cbe7: LEA RDI,[RSP + 0x30] CALL 0x00141ac0 LEA RDI,[RSP + 0x50] CALL 0x001420a0 JMP 0x0013cb8e LAB_0013cc21: LEA RDI,[RSP + 0x60] CALL 0x00141090 ADD RSP,0x78 RET
/* spdlog::details::registry::apply_all(std::function<void (std::shared_ptr<spdlog::logger>)> const&) */ void __thiscall spdlog::details::registry::apply_all(registry *this,function *param_1) { function<void(std::shared_ptr<spdlog::logger>)> *pfVar1; byte bVar2; shared_ptr<spdlog::logger> local_48 [16]; long local_38; int8 local_30; int8 local_28; unordered_map<std::__cxx11::string,std::shared_ptr<spdlog::logger>,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::shared_ptr<spdlog::logger>>>> *local_20; lock_guard<std::mutex> local_18 [8]; function<void(std::shared_ptr<spdlog::logger>)> *local_10; registry *local_8; local_10 = (function<void(std::shared_ptr<spdlog::logger>)> *)param_1; local_8 = this; std::lock_guard<std::mutex>::lock_guard(local_18,(mutex *)this); local_20 = (unordered_map<std::__cxx11::string,std::shared_ptr<spdlog::logger>,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::shared_ptr<spdlog::logger>>>> *)(this + 0x78); local_28 = std:: unordered_map<std::__cxx11::string,std::shared_ptr<spdlog::logger>,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::shared_ptr<spdlog::logger>>>> ::begin(local_20); local_30 = std:: unordered_map<std::__cxx11::string,std::shared_ptr<spdlog::logger>,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::shared_ptr<spdlog::logger>>>> ::end(); while( true ) { bVar2 = std::__detail::operator== ((_Node_iterator_base *)&local_28,(_Node_iterator_base *)&local_30); if (((bVar2 ^ 0xff) & 1) == 0) break; local_38 = std::__detail:: _Node_iterator<std::pair<std::__cxx11::string_const,std::shared_ptr<spdlog::logger>>,false,true> ::operator*((_Node_iterator<std::pair<std::__cxx11::string_const,std::shared_ptr<spdlog::logger>>,false,true> *)&local_28); pfVar1 = local_10; std::shared_ptr<spdlog::logger>::shared_ptr(local_48,(shared_ptr *)(local_38 + 0x20)); /* try { // try from 0013cbe0 to 0013cbe4 has its CatchHandler @ 0013cbfd */ std::function<void(std::shared_ptr<spdlog::logger>)>::operator()(pfVar1,local_48); std::shared_ptr<spdlog::logger>::~shared_ptr(local_48); std::__detail:: _Node_iterator<std::pair<std::__cxx11::string_const,std::shared_ptr<spdlog::logger>>,false,true> ::operator++((_Node_iterator<std::pair<std::__cxx11::string_const,std::shared_ptr<spdlog::logger>>,false,true> *)&local_28); } std::lock_guard<std::mutex>::~lock_guard(local_18); return; }
65,217
common_chat_format_single[abi:cxx11](minja::chat_template const&, std::vector<common_chat_msg, std::allocator<common_chat_msg>> const&, common_chat_msg const&, bool, bool)
monkey531[P]llama/common/common.cpp
std::string common_chat_format_single( const common_chat_template & tmpl, const std::vector<common_chat_msg> & past_msg, const common_chat_msg & new_msg, bool add_ass, bool use_jinja) { std::ostringstream ss; auto fmt_past_msg = past_msg.empty() ? "" : common_chat_apply_template(tmpl, past_msg, false, use_jinja); std::vector<common_chat_msg> chat_new(past_msg); // if the past_msg ends with a newline, we must preserve it in the formatted version if (add_ass && !fmt_past_msg.empty() && fmt_past_msg.back() == '\n') { ss << "\n"; }; // format chat with new_msg chat_new.push_back(new_msg); auto fmt_new_msg = common_chat_apply_template(tmpl, chat_new, add_ass, use_jinja); // get the diff part ss << fmt_new_msg.substr(fmt_past_msg.size(), fmt_new_msg.size() - fmt_past_msg.size()); return ss.str(); }
O3
cpp
common_chat_format_single[abi:cxx11](minja::chat_template const&, std::vector<common_chat_msg, std::allocator<common_chat_msg>> const&, common_chat_msg const&, bool, bool): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1f8, %rsp # imm = 0x1F8 movl %r9d, %r15d movl %r8d, %ebp movq %rcx, %r12 movq %rdx, %r13 movq %rsi, %r14 movq %rdi, %rbx leaq 0x80(%rsp), %rdi callq 0x1ab90 movq (%r13), %rax movzbl %r15b, %r15d cmpq 0x8(%r13), %rax je 0x77267 leaq 0x8(%rsp), %rdi movq %r14, %rsi movq %r13, %rdx xorl %ecx, %ecx movl %r15d, %r8d callq 0x76ac0 jmp 0x77284 leaq 0x18(%rsp), %rax movq %rax, -0x10(%rax) leaq 0x74725(%rip), %rdx # 0xeb99c leaq 0x8(%rsp), %rdi movq %rdx, %rsi callq 0x224a4 leaq 0x48(%rsp), %rdi movq %r13, %rsi callq 0x7f12a testb %bpl, %bpl je 0x772c5 movq 0x10(%rsp), %rax testq %rax, %rax je 0x772c5 movq 0x8(%rsp), %rcx cmpb $0xa, -0x1(%rcx,%rax) jne 0x772c5 leaq 0x746e8(%rip), %rsi # 0xeb99b leaq 0x80(%rsp), %rdi movl $0x1, %edx callq 0x1aa00 leaq 0x48(%rsp), %rdi movq %r12, %rsi callq 0x7f1c2 movzbl %bpl, %ecx leaq 0x60(%rsp), %rdi leaq 0x48(%rsp), %rdx movq %r14, %rsi movl %r15d, %r8d callq 0x76ac0 movq 0x10(%rsp), %rdx leaq 0x60(%rsp), %rsi movq 0x8(%rsi), %rcx subq %rdx, %rcx leaq 0x28(%rsp), %rdi callq 0x1a930 movq 0x28(%rsp), %rsi movq 0x30(%rsp), %rdx leaq 0x80(%rsp), %rdi callq 0x1aa00 leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x77338 movq 0x38(%rsp), %rsi incq %rsi callq 0x1a8e0 leaq 0x88(%rsp), %rsi movq %rbx, %rdi callq 0x1adc0 leaq 0x70(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x77363 movq 0x70(%rsp), %rsi incq %rsi callq 0x1a8e0 leaq 0x48(%rsp), %rdi callq 0x7f1ee leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x77388 movq 0x18(%rsp), %rsi incq %rsi callq 0x1a8e0 movq 0xb4be9(%rip), %rsi # 0x12bf78 leaq 0x80(%rsp), %rdi callq 0x1a4a0 leaq 0xf0(%rsp), %rdi callq 0x1a2a0 movq %rbx, %rax addq $0x1f8, %rsp # imm = 0x1F8 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x773c0 movq %rax, %rbx jmp 0x77436 jmp 0x773e7 movq %rax, %rbx leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x773ea movq 0x38(%rsp), %rsi incq %rsi callq 0x1a8e0 jmp 0x773ea movq %rax, %rbx leaq 0x70(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x77411 movq 0x70(%rsp), %rsi incq %rsi callq 0x1a8e0 jmp 0x77411 jmp 0x7740e movq %rax, %rbx jmp 0x7741b movq %rax, %rbx leaq 0x48(%rsp), %rdi callq 0x7f1ee leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x77436 movq 0x18(%rsp), %rsi incq %rsi callq 0x1a8e0 movq 0xb4b3b(%rip), %rsi # 0x12bf78 leaq 0x80(%rsp), %rdi callq 0x1a4a0 leaq 0xf0(%rsp), %rdi callq 0x1a2a0 movq %rbx, %rdi callq 0x1afb0
_Z25common_chat_format_singleB5cxx11RKN5minja13chat_templateERKSt6vectorI15common_chat_msgSaIS4_EERKS4_bb: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 1F8h mov r15d, r9d mov ebp, r8d mov r12, rcx mov r13, rdx mov r14, rsi mov rbx, rdi lea rdi, [rsp+228h+var_1A8] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void) mov rax, [r13+0] movzx r15d, r15b cmp rax, [r13+8] jz short loc_77267 lea rdi, [rsp+228h+var_220] mov rsi, r14 mov rdx, r13 xor ecx, ecx mov r8d, r15d call _Z26common_chat_apply_templateB5cxx11RKN5minja13chat_templateERKSt6vectorI15common_chat_msgSaIS4_EEbb; common_chat_apply_template(minja::chat_template const&,std::vector<common_chat_msg> const&,bool,bool) jmp short loc_77284 loc_77267: lea rax, [rsp+228h+var_210] mov [rax-10h], rax lea rdx, aErrorWhileHand_0+34h; "" lea rdi, [rsp+228h+var_220] mov rsi, rdx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) loc_77284: lea rdi, [rsp+228h+var_1E0] mov rsi, r13 call _ZNSt6vectorI15common_chat_msgSaIS0_EEC2ERKS2_; std::vector<common_chat_msg>::vector(std::vector<common_chat_msg> const&) test bpl, bpl jz short loc_772C5 mov rax, [rsp+228h+var_218] test rax, rax jz short loc_772C5 mov rcx, [rsp+228h+var_220] cmp byte ptr [rcx+rax-1], 0Ah jnz short loc_772C5 lea rsi, aErrorWhileHand_0+33h; "\n" lea rdi, [rsp+228h+var_1A8] 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) loc_772C5: lea rdi, [rsp+228h+var_1E0] mov rsi, r12 call _ZNSt6vectorI15common_chat_msgSaIS0_EE9push_backERKS0_; std::vector<common_chat_msg>::push_back(common_chat_msg const&) movzx ecx, bpl lea rdi, [rsp+228h+var_1C8] lea rdx, [rsp+228h+var_1E0] mov rsi, r14 mov r8d, r15d call _Z26common_chat_apply_templateB5cxx11RKN5minja13chat_templateERKSt6vectorI15common_chat_msgSaIS4_EEbb; common_chat_apply_template(minja::chat_template const&,std::vector<common_chat_msg> const&,bool,bool) mov rdx, [rsp+228h+var_218] lea rsi, [rsp+228h+var_1C8] mov rcx, [rsi+8] sub rcx, rdx lea rdi, [rsp+228h+var_200] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong) mov rsi, [rsp+228h+var_200] mov rdx, [rsp+228h+var_1F8] lea rdi, [rsp+228h+var_1A8] call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rax, [rsp+228h+var_1F0] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_77338 mov rsi, [rsp+228h+var_1F0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_77338: lea rsi, [rsp+228h+var_1A0] mov rdi, rbx call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void) lea rax, [rsp+228h+var_1B8] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_77363 mov rsi, [rsp+228h+var_1B8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_77363: lea rdi, [rsp+228h+var_1E0] call _ZNSt6vectorI15common_chat_msgSaIS0_EED2Ev; std::vector<common_chat_msg>::~vector() lea rax, [rsp+228h+var_210] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_77388 mov rsi, [rsp+228h+var_210] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_77388: mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+228h+var_1A8] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream() lea rdi, [rsp+228h+var_138]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() mov rax, rbx add rsp, 1F8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short $+2 loc_773C0: mov rbx, rax jmp short loc_77436 jmp short loc_773E7 mov rbx, rax lea rax, [rsp+arg_30] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_773EA mov rsi, [rsp+arg_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_773EA loc_773E7: mov rbx, rax loc_773EA: lea rax, [rsp+arg_68] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_77411 mov rsi, [rsp+arg_68] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_77411 jmp short loc_7740E mov rbx, rax jmp short loc_7741B loc_7740E: mov rbx, rax loc_77411: lea rdi, [rsp+arg_40] call _ZNSt6vectorI15common_chat_msgSaIS0_EED2Ev; std::vector<common_chat_msg>::~vector() loc_7741B: lea rax, [rsp+arg_10] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_77436 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_77436: mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+arg_78] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream() lea rdi, [rsp+arg_E8]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() mov rdi, rbx call __Unwind_Resume
long long common_chat_format_single[abi:cxx11]( long long a1, common_chat_inputs *a2, long long *a3, long long a4, unsigned __int8 a5, unsigned __int8 a6) { char *v11; // [rsp+8h] [rbp-220h] BYREF long long v12; // [rsp+10h] [rbp-218h] _QWORD v13[2]; // [rsp+18h] [rbp-210h] BYREF void *v14[2]; // [rsp+28h] [rbp-200h] BYREF long long v15; // [rsp+38h] [rbp-1F0h] BYREF long long v16[3]; // [rsp+48h] [rbp-1E0h] BYREF void *v17[2]; // [rsp+60h] [rbp-1C8h] BYREF long long v18; // [rsp+70h] [rbp-1B8h] BYREF _BYTE v19[8]; // [rsp+80h] [rbp-1A8h] BYREF _BYTE v20[104]; // [rsp+88h] [rbp-1A0h] BYREF _BYTE v21[312]; // [rsp+F0h] [rbp-138h] BYREF std::ostringstream::basic_ostringstream(v19); if ( *a3 == a3[1] ) { v11 = (char *)v13; std::string::_M_construct<char const*>((long long)&v11, "", (long long)""); } else { common_chat_apply_template[abi:cxx11](&v11, a2, a3, 0, a6); } std::vector<common_chat_msg>::vector(v16, a3); if ( a5 && v12 && v11[v12 - 1] == 10 ) std::__ostream_insert<char,std::char_traits<char>>(v19, "\n", 1LL); std::vector<common_chat_msg>::push_back(v16, a4); common_chat_apply_template[abi:cxx11](v17, a2, v16, a5, a6); std::string::substr(v14, v17, v12, (char *)v17[1] - v12); std::__ostream_insert<char,std::char_traits<char>>(v19, v14[0], v14[1]); if ( v14[0] != &v15 ) operator delete(v14[0], v15 + 1); std::stringbuf::str(a1, v20); if ( v17[0] != &v18 ) operator delete(v17[0], v18 + 1); std::vector<common_chat_msg>::~vector(v16); if ( v11 != (char *)v13 ) operator delete(v11, v13[0] + 1LL); std::ostringstream::~ostringstream(v19, &`VTT for'std::ostringstream); std::ios_base::~ios_base((std::ios_base *)v21); return a1; }
common_chat_format_single[abi:cxx11]: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x1f8 MOV R15D,R9D MOV EBP,R8D MOV R12,RCX MOV R13,RDX MOV R14,RSI MOV RBX,RDI LEA RDI,[RSP + 0x80] CALL 0x0011ab90 MOV RAX,qword ptr [R13] MOVZX R15D,R15B CMP RAX,qword ptr [R13 + 0x8] JZ 0x00177267 LAB_00177250: LEA RDI,[RSP + 0x8] MOV RSI,R14 MOV RDX,R13 XOR ECX,ECX MOV R8D,R15D CALL 0x00176ac0 JMP 0x00177284 LAB_00177267: LEA RAX,[RSP + 0x18] MOV qword ptr [RAX + -0x10],RAX LAB_00177270: LEA RDX,[0x1eb99c] LEA RDI,[RSP + 0x8] MOV RSI,RDX CALL 0x001224a4 LAB_00177284: LEA RDI,[RSP + 0x48] MOV RSI,R13 CALL 0x0017f12a TEST BPL,BPL JZ 0x001772c5 MOV RAX,qword ptr [RSP + 0x10] TEST RAX,RAX JZ 0x001772c5 MOV RCX,qword ptr [RSP + 0x8] CMP byte ptr [RCX + RAX*0x1 + -0x1],0xa JNZ 0x001772c5 LAB_001772ac: LEA RSI,[0x1eb99b] LEA RDI,[RSP + 0x80] MOV EDX,0x1 CALL 0x0011aa00 LAB_001772c5: LEA RDI,[RSP + 0x48] MOV RSI,R12 CALL 0x0017f1c2 LAB_001772d2: MOVZX ECX,BPL LEA RDI,[RSP + 0x60] LEA RDX,[RSP + 0x48] MOV RSI,R14 MOV R8D,R15D CALL 0x00176ac0 MOV RDX,qword ptr [RSP + 0x10] LEA RSI,[RSP + 0x60] MOV RCX,qword ptr [RSI + 0x8] SUB RCX,RDX LAB_001772fc: LEA RDI,[RSP + 0x28] CALL 0x0011a930 MOV RSI,qword ptr [RSP + 0x28] MOV RDX,qword ptr [RSP + 0x30] LAB_00177310: LEA RDI,[RSP + 0x80] CALL 0x0011aa00 LEA RAX,[RSP + 0x38] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00177338 MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x0011a8e0 LAB_00177338: LEA RSI,[RSP + 0x88] LAB_00177340: MOV RDI,RBX CALL 0x0011adc0 LAB_00177348: LEA RAX,[RSP + 0x70] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00177363 MOV RSI,qword ptr [RSP + 0x70] INC RSI CALL 0x0011a8e0 LAB_00177363: LEA RDI,[RSP + 0x48] CALL 0x0017f1ee LEA RAX,[RSP + 0x18] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00177388 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0011a8e0 LAB_00177388: MOV RSI,qword ptr [0x0022bf78] LEA RDI,[RSP + 0x80] CALL 0x0011a4a0 LEA RDI,[RSP + 0xf0] CALL 0x0011a2a0 MOV RAX,RBX ADD RSP,0x1f8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* common_chat_format_single[abi:cxx11](minja::chat_template const&, std::vector<common_chat_msg, std::allocator<common_chat_msg> > const&, common_chat_msg const&, bool, bool) */ chat_template * common_chat_format_single_abi_cxx11_ (chat_template *param_1,vector *param_2,common_chat_msg *param_3,bool param_4,bool param_5 ) { int7 in_register_00000009; long *local_220; long local_218; long local_210 [2]; long *local_200; long local_1f8; long local_1f0 [2]; vector<common_chat_msg,std::allocator<common_chat_msg>> local_1e0 [24]; long *local_1c8 [2]; long local_1b8 [2]; ostringstream local_1a8 [112]; ios_base local_138 [264]; std::__cxx11::ostringstream::ostringstream(local_1a8); if (*(long *)param_3 == *(long *)(param_3 + 8)) { local_220 = local_210; /* try { // try from 00177270 to 00177283 has its CatchHandler @ 001773be */ std::__cxx11::string::_M_construct<char_const*>(&local_220,""); } else { /* try { // try from 00177250 to 00177264 has its CatchHandler @ 001773c0 */ common_chat_apply_template_abi_cxx11_ ((chat_template *)&local_220,param_2,SUB81(param_3,0),false); } /* try { // try from 00177284 to 00177290 has its CatchHandler @ 00177409 */ std::vector<common_chat_msg,std::allocator<common_chat_msg>>::vector(local_1e0,(vector *)param_3); if (((param_5) && (local_218 != 0)) && (*(char *)((long)local_220 + local_218 + -1) == '\n')) { /* try { // try from 001772ac to 001772d1 has its CatchHandler @ 0017740e */ std::__ostream_insert<char,std::char_traits<char>>((ostream *)local_1a8,"\n",1); } std::vector<common_chat_msg,std::allocator<common_chat_msg>>::push_back (local_1e0,(common_chat_msg *)CONCAT71(in_register_00000009,param_4)); /* try { // try from 001772d2 to 001772ea has its CatchHandler @ 00177407 */ common_chat_apply_template_abi_cxx11_ ((chat_template *)local_1c8,param_2,SUB81(local_1e0,0),param_5); /* try { // try from 001772fc to 00177305 has its CatchHandler @ 001773e7 */ std::__cxx11::string::substr((ulong)&local_200,(ulong)local_1c8); /* try { // try from 00177310 to 0017731c has its CatchHandler @ 001773c7 */ std::__ostream_insert<char,std::char_traits<char>> ((ostream *)local_1a8,(char *)local_200,local_1f8); if (local_200 != local_1f0) { operator_delete(local_200,local_1f0[0] + 1); } /* try { // try from 00177340 to 00177347 has its CatchHandler @ 001773c5 */ std::__cxx11::stringbuf::str(); if (local_1c8[0] != local_1b8) { operator_delete(local_1c8[0],local_1b8[0] + 1); } std::vector<common_chat_msg,std::allocator<common_chat_msg>>::~vector(local_1e0); if (local_220 != local_210) { operator_delete(local_220,local_210[0] + 1); } std::__cxx11::ostringstream::~ostringstream(local_1a8); std::ios_base::~ios_base(local_138); return param_1; }
65,218
LefDefParser::lefwViaRuleLayer(char const*, char const*, double, double, double, double)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp
int lefwViaRuleLayer(const char *layerName, const char *direction, double minWidth, double maxWidth, // optional double overhang, double metalOverhang) { // optional int status; if (!lefwFile) return LEFW_UNINITIALIZED; if (!lefwDidInit) return LEFW_BAD_ORDER; if (lefwState != LEFW_VIARULE_START && lefwState != LEFW_VIARULE) return LEFW_BAD_ORDER; if (lefwNumViaRuleLayers >= 2) return LEFW_BAD_ORDER; if ((status = lefwViaRulePrtLayer(layerName, direction, minWidth, maxWidth, overhang, metalOverhang)) != LEFW_OK) return status; lefwNumViaRuleLayers++; lefwState = LEFW_VIARULE; return LEFW_OK; }
O3
cpp
LefDefParser::lefwViaRuleLayer(char const*, char const*, double, double, double, double): pushq %r14 pushq %rbx pushq %rax leaq 0x74384(%rip), %rax # 0x8d0f0 cmpq $0x0, (%rax) je 0x18db9 leaq 0x745cb(%rip), %rcx # 0x8d344 movl $0x2, %eax cmpl $0x0, (%rcx) je 0x18dbe leaq 0x745b6(%rip), %rbx # 0x8d340 movl (%rbx), %ecx cmpl $0x4a, %ecx je 0x18d96 cmpl $0x10, %ecx jne 0x18dbe leaq 0x7462b(%rip), %r14 # 0x8d3c8 cmpl $0x1, (%r14) jg 0x18dbe callq 0x18a10 testl %eax, %eax jne 0x18dbe incl (%r14) movl $0x4a, (%rbx) xorl %eax, %eax jmp 0x18dbe movl $0x1, %eax addq $0x8, %rsp popq %rbx popq %r14 retq
_ZN12LefDefParser16lefwViaRuleLayerEPKcS1_dddd: push r14 push rbx push rax lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile cmp qword ptr [rax], 0 jz short loc_18DB9 lea rcx, _ZN12LefDefParser11lefwDidInitE; LefDefParser::lefwDidInit mov eax, 2 cmp dword ptr [rcx], 0 jz short loc_18DBE lea rbx, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState mov ecx, [rbx] cmp ecx, 4Ah ; 'J' jz short loc_18D96 cmp ecx, 10h jnz short loc_18DBE loc_18D96: lea r14, _ZN12LefDefParser20lefwNumViaRuleLayersE; LefDefParser::lefwNumViaRuleLayers cmp dword ptr [r14], 1 jg short loc_18DBE call _ZN12LefDefParser19lefwViaRulePrtLayerEPKcS1_dddd; LefDefParser::lefwViaRulePrtLayer(char const*,char const*,double,double,double,double) test eax, eax jnz short loc_18DBE inc dword ptr [r14] mov dword ptr [rbx], 4Ah ; 'J' xor eax, eax jmp short loc_18DBE loc_18DB9: mov eax, 1 loc_18DBE: add rsp, 8 pop rbx pop r14 retn
long long LefDefParser::lefwViaRuleLayer( LefDefParser *this, const char *a2, const char *a3, double a4, double a5, double a6, double a7, long long a8, int a9, int a10) { long long result; // rax if ( !*(_QWORD *)&LefDefParser::lefwFile ) return 1LL; result = 2LL; if ( LefDefParser::lefwDidInit && (LefDefParser::lefwState == 74 || LefDefParser::lefwState == 16) && LefDefParser::lefwNumViaRuleLayers <= 1 ) { result = LefDefParser::lefwViaRulePrtLayer(this, a2, a3, a4, a5, a6, a7, LefDefParser::lefwState, a9, a10); if ( !(_DWORD)result ) { ++LefDefParser::lefwNumViaRuleLayers; LefDefParser::lefwState = 74; return 0LL; } } return result; }
lefwViaRuleLayer: PUSH R14 PUSH RBX PUSH RAX LEA RAX,[0x18d0f0] CMP qword ptr [RAX],0x0 JZ 0x00118db9 LEA RCX,[0x18d344] MOV EAX,0x2 CMP dword ptr [RCX],0x0 JZ 0x00118dbe LEA RBX,[0x18d340] MOV ECX,dword ptr [RBX] CMP ECX,0x4a JZ 0x00118d96 CMP ECX,0x10 JNZ 0x00118dbe LAB_00118d96: LEA R14,[0x18d3c8] CMP dword ptr [R14],0x1 JG 0x00118dbe CALL 0x00118a10 TEST EAX,EAX JNZ 0x00118dbe INC dword ptr [R14] MOV dword ptr [RBX],0x4a XOR EAX,EAX JMP 0x00118dbe LAB_00118db9: MOV EAX,0x1 LAB_00118dbe: ADD RSP,0x8 POP RBX POP R14 RET
/* LefDefParser::lefwViaRuleLayer(char const*, char const*, double, double, double, double) */ int8 LefDefParser::lefwViaRuleLayer (char *param_1,char *param_2,double param_3,double param_4,double param_5,double param_6) { int8 uVar1; if (lefwFile == 0) { uVar1 = 1; } else { uVar1 = 2; if ((lefwDidInit != 0) && (((lefwState == 0x4a || (lefwState == 0x10)) && (lefwNumViaRuleLayers < 2)))) { uVar1 = lefwViaRulePrtLayer(param_1,param_2,param_3,param_4,param_5,param_6); if ((int)uVar1 == 0) { lefwNumViaRuleLayers = lefwNumViaRuleLayers + 1; lefwState = 0x4a; uVar1 = 0; } } } return uVar1; }
65,219
minja::TemplateNode::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 render(std::ostringstream & out, const std::shared_ptr<Context> & context) const { try { do_render(out, context); } catch (const LoopControlException & e) { // TODO: make stack creation lazy. Only needed if it was thrown outside of a loop. std::ostringstream err; err << e.what(); if (location_.source) err << error_location_suffix(*location_.source, location_.pos); throw LoopControlException(err.str(), e.control_type); } catch (const std::exception & e) { std::ostringstream err; err << e.what(); if (location_.source) err << error_location_suffix(*location_.source, location_.pos); throw std::runtime_error(err.str()); } }
O2
cpp
minja::TemplateNode::render(std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, std::shared_ptr<minja::Context> const&) const: pushq %rbp pushq %r14 pushq %rbx subq $0x1a0, %rsp # imm = 0x1A0 movq %rdi, %r14 movq (%rdi), %rax callq *(%rax) addq $0x1a0, %rsp # imm = 0x1A0 popq %rbx popq %r14 popq %rbp retq movq %rax, %rbx cmpl $0x2, %edx jne 0x73ad9 movq %rbx, %rdi callq 0x23370 movq %rax, %rbx leaq 0x28(%rsp), %rdi callq 0x23b50 movq (%rbx), %rax movq %rbx, %rdi callq *0x10(%rax) leaq 0x28(%rsp), %rdi movq %rax, %rsi callq 0x23870 movq 0x8(%r14), %rsi testq %rsi, %rsi jne 0x73b7f pushq $0x18 popq %rdi callq 0x23450 movq %rax, %r14 leaq 0x30(%rsp), %rsi leaq 0x8(%rsp), %rdi callq 0x23d60 movl 0x10(%rbx), %edx movb $0x1, %bpl leaq 0x8(%rsp), %rsi movq %r14, %rdi callq 0x73c50 xorl %ebp, %ebp leaq 0x8953b(%rip), %rsi # 0xfd000 movq 0x8a49c(%rip), %rdx # 0xfdf68 movq %r14, %rdi callq 0x23ea0 jmp 0x73b7f cmpl $0x1, %edx jne 0x73c3f movq %rbx, %rdi callq 0x23370 movq %rax, %rbx leaq 0x28(%rsp), %rdi callq 0x23b50 movq (%rbx), %rax movq %rbx, %rdi callq *0x10(%rax) leaq 0x28(%rsp), %rdi movq %rax, %rsi callq 0x23870 movq 0x8(%r14), %rsi testq %rsi, %rsi je 0x73b3d movq 0x18(%r14), %rdx leaq 0x8(%rsp), %rdi callq 0x5863a leaq 0x28(%rsp), %rdi leaq 0x8(%rsp), %rsi callq 0x237a0 leaq 0x8(%rsp), %rdi callq 0x24158 pushq $0x10 popq %rdi callq 0x23450 movq %rax, %r14 leaq 0x30(%rsp), %rsi leaq 0x8(%rsp), %rdi callq 0x23d60 movb $0x1, %bpl leaq 0x8(%rsp), %rsi movq %r14, %rdi callq 0x23dd0 xorl %ebp, %ebp movq 0x8a480(%rip), %rsi # 0xfdff0 movq 0x8a3e1(%rip), %rdx # 0xfdf58 movq %r14, %rdi callq 0x23ea0 movq 0x18(%r14), %rdx leaq 0x8(%rsp), %rdi callq 0x5863a leaq 0x28(%rsp), %rdi leaq 0x8(%rsp), %rsi callq 0x237a0 leaq 0x8(%rsp), %rdi callq 0x24158 jmp 0x73a8f movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x24158 jmp 0x73c12 movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x24158 jmp 0x73c2b jmp 0x73c0f movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x24158 testb %bpl, %bpl jne 0x73be2 jmp 0x73c12 movq %rax, %rbx movq %r14, %rdi callq 0x23670 jmp 0x73c12 jmp 0x73c28 movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x24158 testb %bpl, %bpl jne 0x73c05 jmp 0x73c2b movq %rax, %rbx movq %r14, %rdi callq 0x23670 jmp 0x73c2b movq %rax, %rbx leaq 0x28(%rsp), %rdi callq 0x231e0 jmp 0x73c21 movq %rax, %rbx callq 0x23df0 jmp 0x73c3f movq %rax, %rbx leaq 0x28(%rsp), %rdi callq 0x231e0 jmp 0x73c3a movq %rax, %rbx callq 0x23df0 movq %rbx, %rdi callq 0x23f20 movq %rax, %rdi callq 0x273f9 nop
_ZNK5minja12TemplateNode6renderERNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEERKSt10shared_ptrINS_7ContextEE: push rbp push r14 push rbx sub rsp, 1A0h mov r14, rdi mov rax, [rdi] call qword ptr [rax] add rsp, 1A0h pop rbx pop r14 pop rbp retn mov rbx, rax cmp edx, 2 jnz loc_73AD9 mov rdi, rbx; void * call ___cxa_begin_catch mov rbx, rax lea rdi, [rsp+arg_20] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void) mov rax, [rbx] mov rdi, rbx call qword ptr [rax+10h] lea rdi, [rsp+arg_20] mov rsi, rax call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov rsi, [r14+8] test rsi, rsi jnz loc_73B7F loc_73A8F: push 18h pop rdi; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, [rsp+arg_28] lea rdi, [rsp+arg_0] call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void) mov edx, [rbx+10h] mov bpl, 1 lea rsi, [rsp+arg_0] mov rdi, r14 call _ZN5minja20LoopControlExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_15LoopControlTypeE; minja::LoopControlException::LoopControlException(std::string const&,minja::LoopControlType) xor ebp, ebp lea rsi, _ZTIN5minja20LoopControlExceptionE; lptinfo mov rdx, cs:_ZNSt13runtime_errorD2Ev_ptr; void (*)(void *) mov rdi, r14; void * call ___cxa_throw
long long minja::TemplateNode::render(long long ( ***a1)(_QWORD)) { return (**a1)(a1); }
render: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x1a0 MOV R14,RDI MOV RAX,qword ptr [RDI] LAB_00173a3d: CALL qword ptr [RAX] LAB_00173a3f: ADD RSP,0x1a0 POP RBX POP R14 POP RBP RET
/* minja::TemplateNode::render(std::__cxx11::ostringstream&, std::shared_ptr<minja::Context> const&) const */ void minja::TemplateNode::render(ostringstream *param_1,shared_ptr *param_2) { /* try { // try from 00173a3d to 00173a3e has its CatchHandler @ 00173a4b */ (*(code *)**(int8 **)param_1)(); return; }
65,220
rw_pr_rdlock
eloqsql/mysys/thr_rwlock.c
int rw_pr_rdlock(rw_pr_lock_t *rwlock) { pthread_mutex_lock(&rwlock->lock); /* The fact that we were able to acquire 'lock' mutex means that there are no active writers and we can acquire rd-lock. Increment active readers counter to prevent requests for wr-lock from succeeding and unlock mutex. */ rwlock->active_readers++; pthread_mutex_unlock(&rwlock->lock); return 0; }
O0
c
rw_pr_rdlock: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x38290 movq -0x8(%rbp), %rax movl 0x58(%rax), %ecx addl $0x1, %ecx movl %ecx, 0x58(%rax) movq -0x8(%rbp), %rdi callq 0x38260 xorl %eax, %eax addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
rw_pr_rdlock: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov rdi, [rbp+var_8] call _pthread_mutex_lock mov rax, [rbp+var_8] mov ecx, [rax+58h] add ecx, 1 mov [rax+58h], ecx mov rdi, [rbp+var_8] call _pthread_mutex_unlock xor eax, eax add rsp, 10h pop rbp retn
long long rw_pr_rdlock(long long a1) { pthread_mutex_lock(a1); ++*(_DWORD *)(a1 + 88); pthread_mutex_unlock(a1); return 0LL; }
rw_pr_rdlock: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RDI,qword ptr [RBP + -0x8] CALL 0x00138290 MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x58] ADD ECX,0x1 MOV dword ptr [RAX + 0x58],ECX MOV RDI,qword ptr [RBP + -0x8] CALL 0x00138260 XOR EAX,EAX ADD RSP,0x10 POP RBP RET
int8 rw_pr_rdlock(pthread_mutex_t *param_1) { pthread_mutex_lock(param_1); *(int *)((long)param_1 + 0x58) = *(int *)((long)param_1 + 0x58) + 1; pthread_mutex_unlock(param_1); return 0; }
65,221
run_tests
eloqsql/libmariadb/unittest/libmariadb/my_test.h
void run_tests(struct my_tests_st *test) { int i, rc, total=0; MYSQL *mysql; while (test[total].function) total++; plan(total); /* display TLS stats */ mysql= mysql_init(NULL); mysql_ssl_set(mysql, NULL, NULL, NULL, NULL, NULL); if (!mysql_real_connect(mysql, hostname, username, password, schema, port, socketname, 0)) { BAIL_OUT("Can't establish TLS connection to server."); } if (!mysql_query(mysql, "SHOW VARIABLES LIKE '%ssl%'")) { MYSQL_RES *res; MYSQL_ROW row; diag("TLS server variables"); diag("--------------------"); res= mysql_store_result(mysql); while ((row= mysql_fetch_row(res))) diag("%s: %s", row[0], row[1]); mysql_free_result(res); diag("Cipher in use: %s", mysql_get_ssl_cipher(mysql)); diag("--------------------"); } mysql_close(mysql); if ((mysql_default= test_connect(NULL))) { diag("Testing against MySQL Server %s", mysql_get_server_info(mysql_default)); diag("Host: %s", mysql_get_host_info(mysql_default)); diag("Client library: %s", mysql_get_client_info()); is_mariadb= mariadb_connection(mysql_default); } else { BAIL_OUT("Can't connect to a server. Aborting...."); } for (i=0; i < total; i++) { if (!mysql_default && (test[i].connection & TEST_CONNECTION_DEFAULT)) { diag("MySQL server not running"); skip(1, "%s", test[i].name); } else if (!test[i].skipmsg) { mysql= mysql_default; if (test[i].connection & TEST_CONNECTION_NEW) mysql= test_connect(&test[i]); if (test[i].connection & TEST_CONNECTION_NONE) mysql= NULL; /* run test */ rc= test[i].function(mysql); if (rc == SKIP) skip(1, "%s", test[i].name); else ok(rc == OK, "%s", test[i].name); /* if test failed, close and reopen default connection to prevent errors for further tests */ if ((rc == FAIL || mysql_errno(mysql_default)) && (test[i].connection & TEST_CONNECTION_DEFAULT)) { mysql_close(mysql_default); mysql_default= test_connect(&test[i]); } /* clear connection: reset default connection or close extra connection */ else if (mysql_default && (test[i].connection & TEST_CONNECTION_DEFAULT)) { if (reset_connection(mysql)) return; /* default doesn't work anymore */ } else if (mysql && !(test[i].connection & TEST_CONNECTION_DONT_CLOSE)) { mysql_close(mysql); } } else { skip(1, "%s", test[i].skipmsg); } } if (this_host) free(this_host); if (mysql_default) { diag("close default"); mysql_close(mysql_default); } }
O3
c
run_tests: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdi, %rbx leaq 0x8(%rdi), %rax movq $-0x1, %r14 incq %r14 cmpq $0x0, (%rax) leaq 0x30(%rax), %rax jne 0x14507 movl %r14d, %edi callq 0x1589b xorl %edi, %edi callq 0x18bf5 movq %rax, %r15 movq %rax, %rdi xorl %esi, %esi xorl %edx, %edx xorl %ecx, %ecx xorl %r8d, %r8d xorl %r9d, %r9d callq 0x18d5b movq 0x36a0f(%rip), %rsi # 0x4af50 movq 0x36a10(%rip), %rdx # 0x4af58 movq 0x36a11(%rip), %rcx # 0x4af60 movq 0x36a12(%rip), %r8 # 0x4af68 movl 0x36a13(%rip), %r9d # 0x4af70 movq %r15, %rdi pushq $0x0 pushq 0x36a10(%rip) # 0x4af78 callq 0x18f2e addq $0x10, %rsp testq %rax, %rax je 0x14923 leaq 0x20f25(%rip), %rsi # 0x354a6 movq %r15, %rdi callq 0x1aed9 testl %eax, %eax jne 0x14619 leaq 0x20f2a(%rip), %rdi # 0x354c2 xorl %eax, %eax callq 0x157cf leaq 0x20f31(%rip), %rdi # 0x354d7 xorl %eax, %eax callq 0x157cf movq %r15, %rdi callq 0x1bdd1 movq %rax, %r12 movq %rax, %rdi callq 0x1bfd4 testq %rax, %rax je 0x145ea leaq 0x20f20(%rip), %r13 # 0x354ec movq (%rax), %rsi movq 0x8(%rax), %rdx movq %r13, %rdi xorl %eax, %eax callq 0x157cf movq %r12, %rdi callq 0x1bfd4 testq %rax, %rax jne 0x145cc movq %r12, %rdi callq 0x16b86 movq %r15, %rdi callq 0x18e20 leaq 0x20ef2(%rip), %rdi # 0x354f3 movq %rax, %rsi xorl %eax, %eax callq 0x157cf leaq 0x20ec5(%rip), %rdi # 0x354d7 xorl %eax, %eax callq 0x157cf movq %r15, %rdi callq 0x1a94c xorl %edi, %edi callq 0x14016 movq %rax, 0x367e1(%rip) # 0x4ae10 testq %rax, %rax je 0x1492c movq %rax, %rdi callq 0x1c6e2 leaq 0x20ebe(%rip), %rdi # 0x35505 movq %rax, %rsi xorl %eax, %eax callq 0x157cf movq 0x367b8(%rip), %rdi # 0x4ae10 callq 0x1c776 leaq 0x20ec1(%rip), %rdi # 0x35525 movq %rax, %rsi xorl %eax, %eax callq 0x157cf callq 0x1c78f leaq 0x20eb4(%rip), %rdi # 0x3552e movq %rax, %rsi xorl %eax, %eax callq 0x157cf movq 0x36785(%rip), %rdi # 0x4ae10 callq 0x16267 movb %al, 0x368fa(%rip) # 0x4af90 testq %r14, %r14 je 0x1485c leaq 0x20bbd(%rip), %r12 # 0x35263 movq 0x36763(%rip), %r13 # 0x4ae10 testq %r13, %r13 jne 0x146b8 testb $0x1, 0x10(%rbx) jne 0x1470c movq 0x28(%rbx), %rdx testq %rdx, %rdx jne 0x1471d movl 0x10(%rbx), %eax testb $0x4, %al je 0x146d6 movq %rbx, %rdi callq 0x14016 movq %rax, %r13 movl 0x10(%rbx), %eax testb $0x2, %al movl $0x0, %eax cmovneq %rax, %r13 movq %r13, %rdi callq *0x8(%rbx) cmpl $-0x1, %eax je 0x1473e movl %eax, %r15d xorl %edi, %edi testl %eax, %eax sete %dil movq (%rbx), %rdx movq %r12, %rsi xorl %eax, %eax callq 0x15a01 cmpl $0x1, %r15d jne 0x14750 jmp 0x14760 leaq 0x20e56(%rip), %rdi # 0x35569 xorl %eax, %eax callq 0x157cf movq (%rbx), %rdx movl $0x1, %edi movq %r12, %rsi xorl %eax, %eax callq 0x15b96 addq $0x30, %rbx decq %r14 jne 0x146a6 jmp 0x1485c movq (%rbx), %rdx movl $0x1, %edi movq %r12, %rsi xorl %eax, %eax callq 0x15b96 movq 0x366b9(%rip), %rdi # 0x4ae10 callq 0x1cf3d testl %eax, %eax je 0x14766 testb $0x1, 0x10(%rbx) jne 0x1478d movq 0x366a3(%rip), %rdi # 0x4ae10 testq %rdi, %rdi je 0x14778 testb $0x1, 0x10(%rbx) jne 0x147aa testq %r13, %r13 je 0x1472c testb $0x8, 0x10(%rbx) jne 0x1472c movq %r13, %rdi callq 0x1a94c jmp 0x1472c movq 0x3667c(%rip), %rdi # 0x4ae10 callq 0x1a94c movq %rbx, %rdi callq 0x14016 movq %rax, 0x36668(%rip) # 0x4ae10 jmp 0x1472c cmpb $0x0, 0x367df(%rip) # 0x4af90 je 0x147cc callq 0x1c6e2 movq %rax, %rdi leaq 0x20ebf(%rip), %rsi # 0x35681 callq 0x13100 testq %rax, %rax je 0x147fc movq %r13, %rdi callq 0x1d692 movl %eax, %r15d movq %r13, %rdi testl %r15d, %r15d jne 0x148ae leaq 0x20ab7(%rip), %rsi # 0x352a1 callq 0x1aed9 testl %eax, %eax je 0x1472c jmp 0x148dc leaq 0x20c3f(%rip), %rdi # 0x35442 callq 0x13590 testq %rax, %rax je 0x14836 movq %rax, %r15 movq %rax, %rdi leaq 0x20e70(%rip), %rsi # 0x3568a callq 0x13640 testl %eax, %eax je 0x147cc movq %r15, %rdi leaq 0x20e66(%rip), %rsi # 0x35693 callq 0x13640 testl %eax, %eax je 0x147cc movq 0x3671b(%rip), %rsi # 0x4af58 movq 0x3671c(%rip), %rdx # 0x4af60 movq 0x3671d(%rip), %rcx # 0x4af68 movq %r13, %rdi callq 0x1ab85 movsbl %al, %r15d jmp 0x147d7 movq 0x365b5(%rip), %rdi # 0x4ae18 testq %rdi, %rdi je 0x1486d callq 0x13570 cmpq $0x0, 0x3659b(%rip) # 0x4ae10 je 0x1489f leaq 0x20d04(%rip), %rdi # 0x35582 xorl %eax, %eax callq 0x157cf movq 0x36584(%rip), %rdi # 0x4ae10 addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x1a94c addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0x1cf52 movq %rax, %rbx movq %r13, %rdi callq 0x1cf3d leaq 0x20888(%rip), %rdi # 0x3514d leaq 0x20764(%rip), %r8 # 0x35030 movl %r15d, %esi movq %rbx, %rdx movl %eax, %ecx movl $0x238, %r9d # imm = 0x238 jmp 0x1490e movl %eax, %r15d movq %r13, %rdi callq 0x1cf52 movq %rax, %rbx movq %r13, %rdi callq 0x1cf3d leaq 0x20854(%rip), %rdi # 0x3514d leaq 0x20730(%rip), %r8 # 0x35030 movl %r15d, %esi movq %rbx, %rdx movl %eax, %ecx movl $0x23a, %r9d # imm = 0x23A xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x157cf leaq 0x20b52(%rip), %rdi # 0x3547c jmp 0x14933 leaq 0x20c0e(%rip), %rdi # 0x35541 xorl %eax, %eax callq 0x15718
run_tests: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rdi lea rax, [rdi+8] mov r14, 0FFFFFFFFFFFFFFFFh loc_14507: inc r14 cmp qword ptr [rax], 0 lea rax, [rax+30h] jnz short loc_14507 mov edi, r14d call plan xor edi, edi call mysql_init mov r15, rax mov rdi, rax xor esi, esi xor edx, edx xor ecx, ecx xor r8d, r8d xor r9d, r9d call mysql_ssl_set mov rsi, cs:hostname mov rdx, cs:username mov rcx, cs:password mov r8, cs:schema mov r9d, cs:port mov rdi, r15 push 0 push cs:socketname call mysql_real_connect add rsp, 10h test rax, rax jz loc_14923 lea rsi, aShowVariablesL; "SHOW VARIABLES LIKE '%ssl%'" mov rdi, r15 call mysql_query test eax, eax jnz loc_14619 lea rdi, aTlsServerVaria; "TLS server variables" xor eax, eax call diag lea rdi, asc_354D7; "--------------------" xor eax, eax call diag mov rdi, r15 call mysql_store_result mov r12, rax mov rdi, rax call mysql_fetch_row test rax, rax jz short loc_145EA lea r13, aSS_0; "%s: %s" loc_145CC: mov rsi, [rax] mov rdx, [rax+8] mov rdi, r13 xor eax, eax call diag mov rdi, r12 call mysql_fetch_row test rax, rax jnz short loc_145CC loc_145EA: mov rdi, r12 call mysql_free_result mov rdi, r15 call mysql_get_ssl_cipher lea rdi, aCipherInUseS; "Cipher in use: %s" mov rsi, rax xor eax, eax call diag lea rdi, asc_354D7; "--------------------" xor eax, eax call diag loc_14619: mov rdi, r15 call mysql_close xor edi, edi call test_connect mov cs:mysql_default, rax test rax, rax jz loc_1492C mov rdi, rax call mysql_get_server_info lea rdi, aTestingAgainst; "Testing against MySQL Server %s" mov rsi, rax xor eax, eax call diag mov rdi, cs:mysql_default call mysql_get_host_info lea rdi, aHostS; "Host: %s" mov rsi, rax xor eax, eax call diag call mysql_get_client_info lea rdi, aClientLibraryS; "Client library: %s" mov rsi, rax xor eax, eax call diag mov rdi, cs:mysql_default call mariadb_connection mov cs:is_mariadb, al test r14, r14 jz loc_1485C lea r12, aCouldnTSetOpti+23h; "%s" loc_146A6: mov r13, cs:mysql_default test r13, r13 jnz short loc_146B8 test byte ptr [rbx+10h], 1 jnz short loc_1470C loc_146B8: mov rdx, [rbx+28h] test rdx, rdx jnz short loc_1471D mov eax, [rbx+10h] test al, 4 jz short loc_146D6 mov rdi, rbx call test_connect mov r13, rax mov eax, [rbx+10h] loc_146D6: test al, 2 mov eax, 0 cmovnz r13, rax mov rdi, r13 call qword ptr [rbx+8] cmp eax, 0FFFFFFFFh jz short loc_1473E mov r15d, eax xor edi, edi test eax, eax setz dil mov rdx, [rbx] mov rsi, r12 xor eax, eax call ok cmp r15d, 1 jnz short loc_14750 jmp short loc_14760 loc_1470C: lea rdi, aMysqlServerNot; "MySQL server not running" xor eax, eax call diag mov rdx, [rbx] loc_1471D: mov edi, 1 mov rsi, r12 xor eax, eax call skip loc_1472C: add rbx, 30h ; '0' dec r14 jnz loc_146A6 jmp loc_1485C loc_1473E: mov rdx, [rbx] mov edi, 1 mov rsi, r12 xor eax, eax call skip loc_14750: mov rdi, cs:mysql_default call mysql_errno test eax, eax jz short loc_14766 loc_14760: test byte ptr [rbx+10h], 1 jnz short loc_1478D loc_14766: mov rdi, cs:mysql_default test rdi, rdi jz short loc_14778 test byte ptr [rbx+10h], 1 jnz short loc_147AA loc_14778: test r13, r13 jz short loc_1472C test byte ptr [rbx+10h], 8 jnz short loc_1472C mov rdi, r13 call mysql_close jmp short loc_1472C loc_1478D: mov rdi, cs:mysql_default call mysql_close mov rdi, rbx call test_connect mov cs:mysql_default, rax jmp short loc_1472C loc_147AA: cmp cs:is_mariadb, 0 jz short loc_147CC call mysql_get_server_info mov rdi, rax lea rsi, aMaxscale; "maxScale" call _strstr test rax, rax jz short loc_147FC loc_147CC: mov rdi, r13 call mysql_reset_connection mov r15d, eax loc_147D7: mov rdi, r13 test r15d, r15d jnz loc_148AE lea rsi, aSetSqlMode; "SET sql_mode=''" call mysql_query test eax, eax jz loc_1472C jmp loc_148DC loc_147FC: lea rdi, aSrv; "srv" call _getenv test rax, rax jz short loc_14836 mov r15, rax mov rdi, rax lea rsi, aMaxscale_0; "maxscale" call _strcmp test eax, eax jz short loc_147CC mov rdi, r15 lea rsi, aSkysqlHa; "skysql-ha" call _strcmp test eax, eax jz short loc_147CC loc_14836: mov rsi, cs:username mov rdx, cs:password mov rcx, cs:schema mov rdi, r13 call mysql_change_user movsx r15d, al jmp loc_147D7 loc_1485C: mov rdi, cs:this_host test rdi, rdi jz short loc_1486D call _free loc_1486D: cmp cs:mysql_default, 0 jz short loc_1489F lea rdi, aCloseDefault; "close default" xor eax, eax call diag mov rdi, cs:mysql_default add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp mysql_close loc_1489F: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_148AE: call mysql_error mov rbx, rax mov rdi, r13 call mysql_errno lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d" lea r8, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"... mov esi, r15d mov rdx, rbx mov ecx, eax mov r9d, 238h jmp short loc_1490E loc_148DC: mov r15d, eax mov rdi, r13 call mysql_error mov rbx, rax mov rdi, r13 call mysql_errno lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d" lea r8, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"... mov esi, r15d mov rdx, rbx mov ecx, eax mov r9d, 23Ah loc_1490E: xor eax, eax add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp diag loc_14923: lea rdi, aCanTEstablishT; "Can't establish TLS connection to serve"... jmp short loc_14933 loc_1492C: lea rdi, aCanTConnectToA; "Can't connect to a server. Aborting...." loc_14933: xor eax, eax call BAIL_OUT
long long run_tests(long long a1) { char v1; // al long long v2; // rbx _QWORD *v3; // rax long long v4; // r14 bool v5; // zf long long v6; // r15 const char *v7; // rsi int v8; // edx int v9; // ecx int v10; // r8d int v11; // r9d int v12; // edx int v13; // ecx int v14; // r8d int v15; // r9d int v16; // edx int v17; // ecx int v18; // r8d int v19; // r9d long long v20; // r12 _QWORD *i; // rax int v22; // ecx int v23; // r8d int v24; // r9d int v25; // edx int v26; // ecx int v27; // r8d int v28; // r9d int v29; // edx int v30; // ecx int v31; // r8d int v32; // r9d long long v33; // rax int server_info; // eax int v35; // edx int v36; // ecx int v37; // r8d int v38; // r9d int host_info; // eax int v40; // edx int v41; // ecx int v42; // r8d int v43; // r9d char *v44; // rsi int v45; // edx int v46; // ecx int v47; // r8d int v48; // r9d long long result; // rax int v50; // edx int v51; // ecx int v52; // r8d int v53; // r9d long long v54; // r13 long long v55; // rdx int v56; // eax int v57; // eax int v58; // ecx int v59; // r8d int v60; // r9d int v61; // r15d long long v62; // rax int v63; // r15d long long v64; // rax long long v65; // r15 int v66; // ebx int v67; // eax int v68; // r15d int v69; // ebx int v70; // eax const char *v71; // rdi char v72; // [rsp-8h] [rbp-30h] v72 = v1; v2 = a1; v3 = (_QWORD *)(a1 + 8); v4 = -1LL; do { ++v4; v5 = *v3 == 0LL; v3 += 6; } while ( !v5 ); plan((unsigned int)v4); v6 = mysql_init(0LL); mysql_ssl_set(v6, 0LL, 0LL, 0LL, 0LL, 0LL); LODWORD(v7) = hostname; if ( !mysql_real_connect(v6, hostname, username, password, schema, port, socketname, 0LL) ) { v71 = "Can't establish TLS connection to server."; goto LABEL_51; } v7 = "SHOW VARIABLES LIKE '%ssl%'"; if ( !(unsigned int)mysql_query(v6, "SHOW VARIABLES LIKE '%ssl%'") ) { diag((unsigned int)"TLS server variables", (unsigned int)"SHOW VARIABLES LIKE '%ssl%'", v12, v13, v14, v15); diag((unsigned int)"--------------------", (unsigned int)"SHOW VARIABLES LIKE '%ssl%'", v16, v17, v18, v19); v20 = mysql_store_result(v6); for ( i = (_QWORD *)mysql_fetch_row(v20); i; i = (_QWORD *)mysql_fetch_row(v20) ) diag((unsigned int)"%s: %s", *i, i[1], v22, v23, v24); mysql_free_result(v20); LODWORD(v7) = mysql_get_ssl_cipher(v6); diag((unsigned int)"Cipher in use: %s", (_DWORD)v7, v25, v26, v27, v28); diag((unsigned int)"--------------------", (_DWORD)v7, v29, v30, v31, v32); } mysql_close(v6); v33 = test_connect(0LL, (int)v7); mysql_default = v33; if ( !v33 ) { v71 = "Can't connect to a server. Aborting...."; LABEL_51: BAIL_OUT((_DWORD)v71, (_DWORD)v7, v8, v9, v10, v11, v72); } server_info = mysql_get_server_info(v33); diag((unsigned int)"Testing against MySQL Server %s", server_info, v35, v36, v37, v38); host_info = mysql_get_host_info(mysql_default); diag((unsigned int)"Host: %s", host_info, v40, v41, v42, v43); LODWORD(v44) = mysql_get_client_info(); diag((unsigned int)"Client library: %s", (_DWORD)v44, v45, v46, v47, v48); result = mariadb_connection(mysql_default); is_mariadb = result; while ( v4 ) { v54 = mysql_default; if ( !mysql_default && (*(_BYTE *)(v2 + 16) & 1) != 0 ) { diag((unsigned int)"MySQL server not running", (_DWORD)v44, v50, v51, v52, v53); v55 = *(_QWORD *)v2; LABEL_21: v44 = "%s"; result = skip(1, (unsigned int)"%s", v55, v51, v52, v53, v72); goto LABEL_22; } v55 = *(_QWORD *)(v2 + 40); if ( v55 ) goto LABEL_21; v56 = *(_DWORD *)(v2 + 16); if ( (v56 & 4) != 0 ) { v54 = test_connect(v2, (int)v44); v56 = *(_DWORD *)(v2 + 16); } if ( (v56 & 2) != 0 ) v54 = 0LL; v57 = (*(long long ( **)(long long))(v2 + 8))(v54); if ( v57 == -1 ) { v44 = "%s"; skip(1, (unsigned int)"%s", *(_QWORD *)v2, v58, v59, v60, v72); } else { v61 = v57; v44 = "%s"; result = ok(v57 == 0, (unsigned int)"%s", *(_QWORD *)v2, v58, v59, v60, v72); if ( v61 == 1 ) goto LABEL_26; } result = mysql_errno(mysql_default); if ( (_DWORD)result ) { LABEL_26: if ( (*(_BYTE *)(v2 + 16) & 1) != 0 ) { mysql_close(mysql_default); result = test_connect(v2, (int)"%s"); mysql_default = result; goto LABEL_22; } } if ( mysql_default && (*(_BYTE *)(v2 + 16) & 1) != 0 ) { if ( !is_mariadb || (v62 = mysql_get_server_info(mysql_default), strstr(v62, "maxScale")) || (v64 = getenv("srv")) != 0 && ((v65 = v64, !(unsigned int)strcmp(v64, "maxscale")) || !(unsigned int)strcmp(v65, "skysql-ha")) ) { v63 = mysql_reset_connection(v54); } else { v63 = (char)mysql_change_user(v54, username, password, schema); } if ( v63 ) { v66 = mysql_error(v54); v67 = mysql_errno(v54); return diag( (unsigned int)"Error (%d): %s (%d) in %s line %d", v63, v66, v67, (unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h", 568); } v44 = "SET sql_mode=''"; result = mysql_query(v54, "SET sql_mode=''"); if ( (_DWORD)result ) { v68 = result; v69 = mysql_error(v54); v70 = mysql_errno(v54); return diag( (unsigned int)"Error (%d): %s (%d) in %s line %d", v68, v69, v70, (unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h", 570); } } else if ( v54 && (*(_BYTE *)(v2 + 16) & 8) == 0 ) { result = mysql_close(v54); } LABEL_22: v2 += 48LL; --v4; } if ( this_host ) result = free(); if ( mysql_default ) { diag((unsigned int)"close default", (_DWORD)v44, v50, v51, v52, v53); return mysql_close(mysql_default); } return result; }
run_tests: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RDI LEA RAX,[RDI + 0x8] MOV R14,-0x1 LAB_00114507: INC R14 CMP qword ptr [RAX],0x0 LEA RAX,[RAX + 0x30] JNZ 0x00114507 MOV EDI,R14D CALL 0x0011589b XOR EDI,EDI CALL 0x00118bf5 MOV R15,RAX MOV RDI,RAX XOR ESI,ESI XOR EDX,EDX XOR ECX,ECX XOR R8D,R8D XOR R9D,R9D CALL 0x00118d5b MOV RSI,qword ptr [0x0014af50] MOV RDX,qword ptr [0x0014af58] MOV RCX,qword ptr [0x0014af60] MOV R8,qword ptr [0x0014af68] MOV R9D,dword ptr [0x0014af70] MOV RDI,R15 PUSH 0x0 PUSH qword ptr [0x0014af78] CALL 0x00118f2e ADD RSP,0x10 TEST RAX,RAX JZ 0x00114923 LEA RSI,[0x1354a6] MOV RDI,R15 CALL 0x0011aed9 TEST EAX,EAX JNZ 0x00114619 LEA RDI,[0x1354c2] XOR EAX,EAX CALL 0x001157cf LEA RDI,[0x1354d7] XOR EAX,EAX CALL 0x001157cf MOV RDI,R15 CALL 0x0011bdd1 MOV R12,RAX MOV RDI,RAX CALL 0x0011bfd4 TEST RAX,RAX JZ 0x001145ea LEA R13,[0x1354ec] LAB_001145cc: MOV RSI,qword ptr [RAX] MOV RDX,qword ptr [RAX + 0x8] MOV RDI,R13 XOR EAX,EAX CALL 0x001157cf MOV RDI,R12 CALL 0x0011bfd4 TEST RAX,RAX JNZ 0x001145cc LAB_001145ea: MOV RDI,R12 CALL 0x00116b86 MOV RDI,R15 CALL 0x00118e20 LEA RDI,[0x1354f3] MOV RSI,RAX XOR EAX,EAX CALL 0x001157cf LEA RDI,[0x1354d7] XOR EAX,EAX CALL 0x001157cf LAB_00114619: MOV RDI,R15 CALL 0x0011a94c XOR EDI,EDI CALL 0x00114016 MOV qword ptr [0x0014ae10],RAX TEST RAX,RAX JZ 0x0011492c MOV RDI,RAX CALL 0x0011c6e2 LEA RDI,[0x135505] MOV RSI,RAX XOR EAX,EAX CALL 0x001157cf MOV RDI,qword ptr [0x0014ae10] CALL 0x0011c776 LEA RDI,[0x135525] MOV RSI,RAX XOR EAX,EAX CALL 0x001157cf CALL 0x0011c78f LEA RDI,[0x13552e] MOV RSI,RAX XOR EAX,EAX CALL 0x001157cf MOV RDI,qword ptr [0x0014ae10] CALL 0x00116267 MOV byte ptr [0x0014af90],AL TEST R14,R14 JZ 0x0011485c LEA R12,[0x135263] LAB_001146a6: MOV R13,qword ptr [0x0014ae10] TEST R13,R13 JNZ 0x001146b8 TEST byte ptr [RBX + 0x10],0x1 JNZ 0x0011470c LAB_001146b8: MOV RDX,qword ptr [RBX + 0x28] TEST RDX,RDX JNZ 0x0011471d MOV EAX,dword ptr [RBX + 0x10] TEST AL,0x4 JZ 0x001146d6 MOV RDI,RBX CALL 0x00114016 MOV R13,RAX MOV EAX,dword ptr [RBX + 0x10] LAB_001146d6: TEST AL,0x2 MOV EAX,0x0 CMOVNZ R13,RAX MOV RDI,R13 CALL qword ptr [RBX + 0x8] CMP EAX,-0x1 JZ 0x0011473e MOV R15D,EAX XOR EDI,EDI TEST EAX,EAX SETZ DIL MOV RDX,qword ptr [RBX] MOV RSI,R12 XOR EAX,EAX CALL 0x00115a01 CMP R15D,0x1 JNZ 0x00114750 JMP 0x00114760 LAB_0011470c: LEA RDI,[0x135569] XOR EAX,EAX CALL 0x001157cf MOV RDX,qword ptr [RBX] LAB_0011471d: MOV EDI,0x1 MOV RSI,R12 XOR EAX,EAX CALL 0x00115b96 LAB_0011472c: ADD RBX,0x30 DEC R14 JNZ 0x001146a6 JMP 0x0011485c LAB_0011473e: MOV RDX,qword ptr [RBX] MOV EDI,0x1 MOV RSI,R12 XOR EAX,EAX CALL 0x00115b96 LAB_00114750: MOV RDI,qword ptr [0x0014ae10] CALL 0x0011cf3d TEST EAX,EAX JZ 0x00114766 LAB_00114760: TEST byte ptr [RBX + 0x10],0x1 JNZ 0x0011478d LAB_00114766: MOV RDI,qword ptr [0x0014ae10] TEST RDI,RDI JZ 0x00114778 TEST byte ptr [RBX + 0x10],0x1 JNZ 0x001147aa LAB_00114778: TEST R13,R13 JZ 0x0011472c TEST byte ptr [RBX + 0x10],0x8 JNZ 0x0011472c MOV RDI,R13 CALL 0x0011a94c JMP 0x0011472c LAB_0011478d: MOV RDI,qword ptr [0x0014ae10] CALL 0x0011a94c MOV RDI,RBX CALL 0x00114016 MOV qword ptr [0x0014ae10],RAX JMP 0x0011472c LAB_001147aa: CMP byte ptr [0x0014af90],0x0 JZ 0x001147cc CALL 0x0011c6e2 MOV RDI,RAX LEA RSI,[0x135681] CALL 0x00113100 TEST RAX,RAX JZ 0x001147fc LAB_001147cc: MOV RDI,R13 CALL 0x0011d692 MOV R15D,EAX LAB_001147d7: MOV RDI,R13 TEST R15D,R15D JNZ 0x001148ae LEA RSI,[0x1352a1] CALL 0x0011aed9 TEST EAX,EAX JZ 0x0011472c JMP 0x001148dc LAB_001147fc: LEA RDI,[0x135442] CALL 0x00113590 TEST RAX,RAX JZ 0x00114836 MOV R15,RAX MOV RDI,RAX LEA RSI,[0x13568a] CALL 0x00113640 TEST EAX,EAX JZ 0x001147cc MOV RDI,R15 LEA RSI,[0x135693] CALL 0x00113640 TEST EAX,EAX JZ 0x001147cc LAB_00114836: MOV RSI,qword ptr [0x0014af58] MOV RDX,qword ptr [0x0014af60] MOV RCX,qword ptr [0x0014af68] MOV RDI,R13 CALL 0x0011ab85 MOVSX R15D,AL JMP 0x001147d7 LAB_0011485c: MOV RDI,qword ptr [0x0014ae18] TEST RDI,RDI JZ 0x0011486d CALL 0x00113570 LAB_0011486d: CMP qword ptr [0x0014ae10],0x0 JZ 0x0011489f LEA RDI,[0x135582] XOR EAX,EAX CALL 0x001157cf MOV RDI,qword ptr [0x0014ae10] ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x0011a94c LAB_0011489f: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001148ae: CALL 0x0011cf52 MOV RBX,RAX MOV RDI,R13 CALL 0x0011cf3d LEA RDI,[0x13514d] LEA R8,[0x135030] MOV ESI,R15D MOV RDX,RBX MOV ECX,EAX MOV R9D,0x238 JMP 0x0011490e LAB_001148dc: MOV R15D,EAX MOV RDI,R13 CALL 0x0011cf52 MOV RBX,RAX MOV RDI,R13 CALL 0x0011cf3d LEA RDI,[0x13514d] LEA R8,[0x135030] MOV ESI,R15D MOV RDX,RBX MOV ECX,EAX MOV R9D,0x23a LAB_0011490e: XOR EAX,EAX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x001157cf LAB_00114923: LEA RDI,[0x13547c] JMP 0x00114933 LAB_0011492c: LEA RDI,[0x135541] LAB_00114933: XOR EAX,EAX CALL 0x00115718
void run_tests(long *param_1) { char cVar1; int iVar2; uint uVar3; int4 uVar4; long *plVar5; int8 uVar6; long lVar7; int8 uVar8; int8 *puVar9; char *pcVar10; long lVar11; ulong uVar12; plVar5 = param_1 + 1; uVar12 = 0xffffffffffffffff; do { uVar12 = uVar12 + 1; lVar7 = *plVar5; plVar5 = plVar5 + 6; } while (lVar7 != 0); plan(uVar12 & 0xffffffff); uVar6 = mysql_init(0); mysql_ssl_set(uVar6,0,0,0,0,0); lVar7 = mysql_real_connect(uVar6,hostname,username,password,schema,port,socketname,0); if (lVar7 == 0) { pcVar10 = "Can\'t establish TLS connection to server."; } else { iVar2 = mysql_query(uVar6,"SHOW VARIABLES LIKE \'%ssl%\'"); if (iVar2 == 0) { diag("TLS server variables"); diag("--------------------"); uVar8 = mysql_store_result(uVar6); puVar9 = (int8 *)mysql_fetch_row(uVar8); while (puVar9 != (int8 *)0x0) { diag("%s: %s",*puVar9,puVar9[1]); puVar9 = (int8 *)mysql_fetch_row(uVar8); } mysql_free_result(uVar8); uVar8 = mysql_get_ssl_cipher(uVar6); diag("Cipher in use: %s",uVar8); diag("--------------------"); } mysql_close(uVar6); mysql_default = test_connect(0); if (mysql_default != 0) { uVar6 = mysql_get_server_info(mysql_default); diag("Testing against MySQL Server %s",uVar6); uVar6 = mysql_get_host_info(mysql_default); diag("Host: %s",uVar6); uVar6 = mysql_get_client_info(); diag("Client library: %s",uVar6); is_mariadb = mariadb_connection(mysql_default); lVar7 = mysql_default; do { mysql_default = lVar7; if (uVar12 == 0) { if (this_host != (void *)0x0) { free(this_host); } if (mysql_default != 0) { diag("close default"); mysql_close(mysql_default); return; } return; } if ((lVar7 == 0) && ((*(byte *)(param_1 + 2) & 1) != 0)) { diag("MySQL server not running"); lVar11 = *param_1; LAB_0011471d: skip(1,"%s",lVar11); } else { lVar11 = param_1[5]; if (lVar11 != 0) goto LAB_0011471d; uVar3 = *(uint *)(param_1 + 2); if ((uVar3 & 4) != 0) { lVar7 = test_connect(param_1); uVar3 = *(uint *)(param_1 + 2); } if ((uVar3 & 2) != 0) { lVar7 = 0; } iVar2 = (*(code *)param_1[1])(lVar7); if (iVar2 == -1) { skip(1,"%s",*param_1); LAB_00114750: iVar2 = mysql_errno(mysql_default); if (iVar2 != 0) goto LAB_00114760; LAB_00114766: if ((mysql_default == 0) || ((*(byte *)(param_1 + 2) & 1) == 0)) { if ((lVar7 != 0) && ((*(byte *)(param_1 + 2) & 8) == 0)) { mysql_close(lVar7); } } else { if (is_mariadb == '\0') { LAB_001147cc: iVar2 = mysql_reset_connection(lVar7); } else { pcVar10 = (char *)mysql_get_server_info(); pcVar10 = strstr(pcVar10,"maxScale"); if ((pcVar10 != (char *)0x0) || ((pcVar10 = getenv("srv"), pcVar10 != (char *)0x0 && ((iVar2 = strcmp(pcVar10,"maxscale"), iVar2 == 0 || (iVar2 = strcmp(pcVar10,"skysql-ha"), iVar2 == 0)))))) goto LAB_001147cc; cVar1 = mysql_change_user(lVar7,username,password,schema); iVar2 = (int)cVar1; } if (iVar2 != 0) { uVar6 = mysql_error(lVar7); uVar4 = mysql_errno(lVar7); uVar8 = 0x238; LAB_0011490e: diag("Error (%d): %s (%d) in %s line %d",iVar2,uVar6,uVar4, "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h" ,uVar8); return; } iVar2 = mysql_query(lVar7,"SET sql_mode=\'\'"); if (iVar2 != 0) { uVar6 = mysql_error(lVar7); uVar4 = mysql_errno(lVar7); uVar8 = 0x23a; goto LAB_0011490e; } } } else { ok(iVar2 == 0,"%s",*param_1); if (iVar2 != 1) goto LAB_00114750; LAB_00114760: if ((*(byte *)(param_1 + 2) & 1) == 0) goto LAB_00114766; mysql_close(mysql_default); mysql_default = test_connect(param_1); } } param_1 = param_1 + 6; uVar12 = uVar12 - 1; lVar7 = mysql_default; } while( true ); } pcVar10 = "Can\'t connect to a server. Aborting...."; mysql_default = 0; } /* WARNING: Subroutine does not return */ BAIL_OUT(pcVar10); }
65,222
OpenSubdiv::v3_6_0::Bfr::FaceVertex::SharpenSubset(OpenSubdiv::v3_6_0::Bfr::FaceVertexSubset*, float) const
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/faceVertex.cpp
void FaceVertex::SharpenSubset(Subset * subset, float sharpness) const { // Mark the subset according to sharpness value if (sharpness > subset->_localSharpness) { subset->_localSharpness = sharpness; subset->_tag._infSharpVerts = Sdc::Crease::IsInfinite(sharpness); subset->_tag._semiSharpVerts = Sdc::Crease::IsSemiSharp(sharpness); } }
O1
cpp
OpenSubdiv::v3_6_0::Bfr::FaceVertex::SharpenSubset(OpenSubdiv::v3_6_0::Bfr::FaceVertexSubset*, float) const: ucomiss 0x8(%rsi), %xmm0 jbe 0x87561 movss %xmm0, 0x8(%rsi) movss 0x2aad1(%rip), %xmm1 # 0xb2004 xorl %eax, %eax ucomiss %xmm1, %xmm0 setae %al movzwl (%rsi), %ecx andl $-0x13, %ecx xorps %xmm2, %xmm2 cmpltps %xmm0, %xmm2 cmpltps %xmm1, %xmm0 andps %xmm2, %xmm0 movd %xmm0, %edx andl $0x1, %edx shll $0x4, %edx leal (%rdx,%rax,2), %eax orl %ecx, %eax movw %ax, (%rsi) retq
_ZNK10OpenSubdiv6v3_6_03Bfr10FaceVertex13SharpenSubsetEPNS1_16FaceVertexSubsetEf: ucomiss xmm0, dword ptr [rsi+8] jbe short locret_87561 movss dword ptr [rsi+8], xmm0 movss xmm1, cs:dword_B2004 xor eax, eax ucomiss xmm0, xmm1 setnb al movzx ecx, word ptr [rsi] and ecx, 0FFFFFFEDh xorps xmm2, xmm2 cmpltps xmm2, xmm0 cmpltps xmm0, xmm1 andps xmm0, xmm2 movd edx, xmm0 and edx, 1 shl edx, 4 lea eax, [rdx+rax*2] or eax, ecx mov [rsi], ax locret_87561: retn
long long OpenSubdiv::v3_6_0::Bfr::FaceVertex::SharpenSubset(__m128 a1, long long a2, long long a3) { long long result; // rax if ( a1.m128_f32[0] > *(float *)(a3 + 8) ) { *(_DWORD *)(a3 + 8) = a1.m128_i32[0]; result = *(_WORD *)a3 & 0xFFED | (16 * (_mm_cvtsi128_si32((__m128i)_mm_and_ps( _mm_cmplt_ps(a1, (__m128)0x41200000u), _mm_cmplt_ps((__m128)0LL, a1))) & 1) + 2 * (unsigned int)(a1.m128_f32[0] >= 10.0)); *(_WORD *)a3 = result; } return result; }
SharpenSubset: UCOMISS XMM0,dword ptr [RSI + 0x8] JBE 0x00187561 MOVSS dword ptr [RSI + 0x8],XMM0 MOVSS XMM1,dword ptr [0x001b2004] XOR EAX,EAX UCOMISS XMM0,XMM1 SETNC AL MOVZX ECX,word ptr [RSI] AND ECX,0xffffffed XORPS XMM2,XMM2 CMPLTPS XMM2,XMM0 CMPLTPS XMM0,XMM1 ANDPS XMM0,XMM2 MOVD EDX,XMM0 AND EDX,0x1 SHL EDX,0x4 LEA EAX,[RDX + RAX*0x2] OR EAX,ECX MOV word ptr [RSI],AX LAB_00187561: RET
/* OpenSubdiv::v3_6_0::Bfr::FaceVertex::SharpenSubset(OpenSubdiv::v3_6_0::Bfr::FaceVertexSubset*, float) const */ void __thiscall OpenSubdiv::v3_6_0::Bfr::FaceVertex::SharpenSubset (FaceVertex *this,FaceVertexSubset *param_1,float param_2) { if (*(float *)(param_1 + 8) <= param_2 && param_2 != *(float *)(param_1 + 8)) { *(float *)(param_1 + 8) = param_2; *(ushort *)param_1 = (short)((-(uint)(param_2 < DAT_001b2004 && 0.0 < param_2) & 1) << 4) + (ushort)(DAT_001b2004 <= param_2) * 2 | *(ushort *)param_1 & 0xffed; } return; }
65,223
OpenSubdiv::v3_6_0::Bfr::FaceVertex::SharpenSubset(OpenSubdiv::v3_6_0::Bfr::FaceVertexSubset*, float) const
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/faceVertex.cpp
void FaceVertex::SharpenSubset(Subset * subset, float sharpness) const { // Mark the subset according to sharpness value if (sharpness > subset->_localSharpness) { subset->_localSharpness = sharpness; subset->_tag._infSharpVerts = Sdc::Crease::IsInfinite(sharpness); subset->_tag._semiSharpVerts = Sdc::Crease::IsSemiSharp(sharpness); } }
O2
cpp
OpenSubdiv::v3_6_0::Bfr::FaceVertex::SharpenSubset(OpenSubdiv::v3_6_0::Bfr::FaceVertexSubset*, float) const: ucomiss 0x8(%rsi), %xmm0 jbe 0x96b8d movss %xmm0, 0x8(%rsi) movss 0x254a5(%rip), %xmm1 # 0xbc004 xorl %eax, %eax ucomiss %xmm1, %xmm0 setae %al movzwl (%rsi), %ecx andl $-0x13, %ecx xorps %xmm2, %xmm2 cmpltps %xmm0, %xmm2 cmpltps %xmm1, %xmm0 andps %xmm2, %xmm0 movd %xmm0, %edx andl $0x1, %edx shll $0x4, %edx leal (%rdx,%rax,2), %eax orl %ecx, %eax movw %ax, (%rsi) retq
_ZNK10OpenSubdiv6v3_6_03Bfr10FaceVertex13SharpenSubsetEPNS1_16FaceVertexSubsetEf: ucomiss xmm0, dword ptr [rsi+8] jbe short locret_96B8D movss dword ptr [rsi+8], xmm0 movss xmm1, cs:dword_BC004 xor eax, eax ucomiss xmm0, xmm1 setnb al movzx ecx, word ptr [rsi] and ecx, 0FFFFFFEDh xorps xmm2, xmm2 cmpltps xmm2, xmm0 cmpltps xmm0, xmm1 andps xmm0, xmm2 movd edx, xmm0 and edx, 1 shl edx, 4 lea eax, [rdx+rax*2] or eax, ecx mov [rsi], ax locret_96B8D: retn
long long OpenSubdiv::v3_6_0::Bfr::FaceVertex::SharpenSubset(__m128 a1, long long a2, long long a3) { long long result; // rax if ( a1.m128_f32[0] > *(float *)(a3 + 8) ) { *(_DWORD *)(a3 + 8) = a1.m128_i32[0]; result = *(_WORD *)a3 & 0xFFED | (16 * (_mm_cvtsi128_si32((__m128i)_mm_and_ps( _mm_cmplt_ps(a1, (__m128)0x41200000u), _mm_cmplt_ps((__m128)0LL, a1))) & 1) + 2 * (unsigned int)(a1.m128_f32[0] >= 10.0)); *(_WORD *)a3 = result; } return result; }
SharpenSubset: UCOMISS XMM0,dword ptr [RSI + 0x8] JBE 0x00196b8d MOVSS dword ptr [RSI + 0x8],XMM0 MOVSS XMM1,dword ptr [0x001bc004] XOR EAX,EAX UCOMISS XMM0,XMM1 SETNC AL MOVZX ECX,word ptr [RSI] AND ECX,0xffffffed XORPS XMM2,XMM2 CMPLTPS XMM2,XMM0 CMPLTPS XMM0,XMM1 ANDPS XMM0,XMM2 MOVD EDX,XMM0 AND EDX,0x1 SHL EDX,0x4 LEA EAX,[RDX + RAX*0x2] OR EAX,ECX MOV word ptr [RSI],AX LAB_00196b8d: RET
/* OpenSubdiv::v3_6_0::Bfr::FaceVertex::SharpenSubset(OpenSubdiv::v3_6_0::Bfr::FaceVertexSubset*, float) const */ void __thiscall OpenSubdiv::v3_6_0::Bfr::FaceVertex::SharpenSubset (FaceVertex *this,FaceVertexSubset *param_1,float param_2) { if (*(float *)(param_1 + 8) <= param_2 && param_2 != *(float *)(param_1 + 8)) { *(float *)(param_1 + 8) = param_2; *(ushort *)param_1 = (short)((-(uint)(param_2 < DAT_001bc004 && 0.0 < param_2) & 1) << 4) + (ushort)(DAT_001bc004 <= param_2) * 2 | *(ushort *)param_1 & 0xffed; } return; }
65,224
google::protobuf::compiler::objectivec::EnumGenerator::GenerateHeader(google::protobuf::io::Printer*)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/objectivec/objectivec_enum.cc
void EnumGenerator::GenerateHeader(io::Printer* printer) { std::string enum_comments; SourceLocation location; if (descriptor_->GetSourceLocation(&location)) { enum_comments = BuildCommentsString(location, true); } else { enum_comments = ""; } printer->Print( "#pragma mark - Enum $name$\n" "\n", "name", name_); // Swift 5 included SE0192 "Handling Future Enum Cases" // https://github.com/apple/swift-evolution/blob/master/proposals/0192-non-exhaustive-enums.md // Since a .proto file can get new values added to an enum at any time, they // are effectively "non-frozen". Even in a proto3 syntax file where there is // support for the unknown value, an edit to the file can always add a new // value moving something from unknown to known. Since Swift is now ABI // stable, it also means a binary could contain Swift compiled against one // version of the .pbobjc.h file, but finally linked against an enum with // more cases. So the Swift code will always have to treat ObjC Proto Enums // as "non-frozen". The default behavior in SE0192 is for all objc enums to // be "non-frozen" unless marked as otherwise, so this means this generation // doesn't have to bother with the `enum_extensibility` attribute, as the // default will be what is needed. printer->Print("$comments$typedef$deprecated_attribute$ GPB_ENUM($name$) {\n", "comments", enum_comments, "deprecated_attribute", GetOptionalDeprecatedAttribute(descriptor_, descriptor_->file()), "name", name_); printer->Indent(); if (HasPreservingUnknownEnumSemantics(descriptor_->file())) { // Include the unknown value. printer->Print( "/**\n" " * Value used if any message's field encounters a value that is not defined\n" " * by this enum. The message will also have C functions to get/set the rawValue\n" " * of the field.\n" " **/\n" "$name$_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue,\n", "name", name_); } for (int i = 0; i < all_values_.size(); i++) { if (alias_values_to_skip_.find(all_values_[i]) != alias_values_to_skip_.end()) { continue; } if (all_values_[i]->GetSourceLocation(&location)) { std::string comments = BuildCommentsString(location, true).c_str(); if (comments.length() > 0) { if (i > 0) { printer->Print("\n"); } printer->Print(comments.c_str()); } } printer->Print( "$name$$deprecated_attribute$ = $value$,\n", "name", EnumValueName(all_values_[i]), "deprecated_attribute", GetOptionalDeprecatedAttribute(all_values_[i]), "value", StrCat(all_values_[i]->number())); } printer->Outdent(); printer->Print( "};\n" "\n" "GPBEnumDescriptor *$name$_EnumDescriptor(void);\n" "\n" "/**\n" " * Checks to see if the given value is defined by the enum or was not known at\n" " * the time this source was generated.\n" " **/\n" "BOOL $name$_IsValidValue(int32_t value);\n" "\n", "name", name_); }
O3
cpp
google::protobuf::compiler::objectivec::EnumGenerator::GenerateHeader(google::protobuf::io::Printer*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x128, %rsp # imm = 0x128 movq %rsi, (%rsp) movq %rdi, %r14 leaq 0x68(%rsp), %r13 movq %r13, -0x10(%r13) xorl %eax, %eax movq %rax, -0x8(%r13) movb %al, (%r13) leaq 0xe0(%rsp), %rcx movq %rcx, -0x10(%rcx) movq %rax, -0x8(%rcx) movb %al, (%rcx) leaq 0x100(%rsp), %rcx movq %rcx, -0x10(%rcx) movq %rax, -0x8(%rcx) movb %al, (%rcx) xorps %xmm0, %xmm0 movups %xmm0, 0x10(%rcx) movq %rax, 0x20(%rcx) movq (%rdi), %rdi leaq 0xc0(%rsp), %rsi callq 0x125456 testb %al, %al je 0xeada5 leaq 0x28(%rsp), %rdi leaq 0xc0(%rsp), %rsi movl $0x1, %edx callq 0x4de18 leaq 0x58(%rsp), %rdi leaq 0x28(%rsp), %r15 movq %r15, %rsi callq 0x1f5d0 movq (%r15), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0xeadbf callq 0x1f4a0 jmp 0xeadbf leaq 0x58(%rsp), %rdi movq 0x8(%rdi), %rdx leaq 0xaf7f4(%rip), %rcx # 0x19a5a9 xorl %esi, %esi xorl %r8d, %r8d callq 0x1f760 leaq 0x68(%r14), %rbx leaq 0xfa815(%rip), %rsi # 0x1e55df leaq 0xb1f4a(%rip), %r15 # 0x19cd1b movq (%rsp), %rdi movq %r15, %rdx movq %rbx, %rcx callq 0x5fcda movq (%r14), %rsi movq 0x10(%rsi), %rdx leaq 0x28(%rsp), %rdi movl $0x1, %ecx xorl %r8d, %r8d callq 0xeb773 leaq 0xfa7fc(%rip), %rsi # 0x1e55fc leaq 0xdaa8f(%rip), %rdx # 0x1c5896 leaq 0xdaa73(%rip), %r8 # 0x1c5881 leaq 0x58(%rsp), %rcx leaq 0x28(%rsp), %r9 movq (%rsp), %rdi pushq %rbx pushq %r15 callq 0xeb704 addq $0x10, %rsp leaq 0x38(%rsp), %r12 movq -0x10(%r12), %rdi cmpq %r12, %rdi je 0xeae3c callq 0x1f4a0 movq (%rsp), %rdi callq 0x16d126 movq (%r14), %rax movq 0x10(%rax), %rax cmpb $0x3, 0x3(%rax) jne 0xeae6c leaq 0xfa7df(%rip), %rsi # 0x1e5638 leaq 0xb1ebb(%rip), %rdx # 0x19cd1b movq (%rsp), %rdi movq %rbx, %rcx callq 0x5fcda movq %rbx, 0x78(%rsp) movq 0x20(%r14), %rax movq 0x28(%r14), %rcx cmpq %rax, %rcx je 0xeb060 leaq 0x40(%r14), %r13 xorl %ebx, %ebx leaq 0xa0(%rsp), %r15 movq 0x48(%r14), %rdx movq (%rax,%rbx,8), %rdi testq %rdx, %rdx je 0xeaec8 movq %r13, %rsi xorl %r8d, %r8d cmpq %rdi, 0x20(%rdx) setb %r8b cmovaeq %rdx, %rsi movq 0x10(%rdx,%r8,8), %rdx testq %rdx, %rdx jne 0xeaea0 cmpq %r13, %rsi je 0xeaec8 cmpq 0x20(%rsi), %rdi jae 0xeb04a leaq 0xc0(%rsp), %rsi callq 0x125788 testb %al, %al je 0xeaf50 leaq 0x8(%rsp), %rdi leaq 0xc0(%rsp), %rsi movl $0x1, %edx callq 0x4de18 movq 0x8(%rsp), %rsi leaq 0x28(%rsp), %rdi movq %r15, %rdx callq 0x1f1d0 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0xeaf16 callq 0x1f4a0 cmpq $0x0, 0x30(%rsp) je 0xeaf41 testq %rbx, %rbx je 0xeaf33 movq (%rsp), %rdi leaq 0xc844f(%rip), %rsi # 0x1b337d callq 0x2e40a movq 0x28(%rsp), %rsi movq (%rsp), %rdi callq 0x2e40a movq 0x28(%rsp), %rdi cmpq %r12, %rdi je 0xeaf50 callq 0x1f4a0 movq 0x20(%r14), %rax movq (%rax,%rbx,8), %rsi leaq 0x8(%rsp), %rdi callq 0x4bcdf movq 0x20(%r14), %rax movq (%rax,%rbx,8), %rsi movq %r15, %rdi xorl %edx, %edx movl $0x1, %ecx xorl %r8d, %r8d callq 0xebbdb movq 0x20(%r14), %rax movq (%rax,%rbx,8), %rax movl 0x4(%rax), %edi movq %r12, 0x28(%rsp) movq %r12, %rsi callq 0x10a7e0 leaq 0x80(%rsp), %rbp subq %r12, %rax movq %rax, 0x30(%rsp) movq 0x28(%rsp), %rsi leaq 0x90(%rsp), %rcx movq %rcx, 0x80(%rsp) addq %rsi, %rax movq %rbp, %rdi movq %rax, %rdx callq 0x250b2 movq (%rsp), %rdi leaq 0xfa766(%rip), %rsi # 0x1e5738 leaq 0xb1d42(%rip), %rdx # 0x19cd1b leaq 0x8(%rsp), %rcx leaq 0xda89c(%rip), %r8 # 0x1c5881 movq %r15, %r9 pushq %rbp leaq 0x104f2c(%rip), %rax # 0x1eff1c pushq %rax callq 0xebb6c addq $0x10, %rsp movq 0x80(%rsp), %rdi leaq 0x90(%rsp), %rax cmpq %rax, %rdi je 0xeb014 callq 0x1f4a0 movq 0xa0(%rsp), %rdi leaq 0xb0(%rsp), %rax cmpq %rax, %rdi je 0xeb02e callq 0x1f4a0 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0xeb042 callq 0x1f4a0 movq 0x20(%r14), %rax movq 0x28(%r14), %rcx incq %rbx movq %rcx, %rdx subq %rax, %rdx sarq $0x3, %rdx cmpq %rbx, %rdx ja 0xeae90 movq (%rsp), %rdi leaq 0x68(%rsp), %r13 callq 0x16d136 leaq 0xe0(%rsp), %r14 leaq 0x100(%rsp), %r15 movq 0x78(%rsp), %rcx leaq 0xfa6d7(%rip), %rsi # 0x1e5761 leaq 0xb1c8a(%rip), %rdx # 0x19cd1b movq (%rsp), %rdi callq 0x5fcda leaq 0x110(%rsp), %rbx movq %rbx, %rdi callq 0x2580e movq -0x20(%rbx), %rdi cmpq %r15, %rdi je 0xeb0b8 callq 0x1f4a0 movq 0xd0(%rsp), %rdi cmpq %r14, %rdi je 0xeb0ca callq 0x1f4a0 movq 0x58(%rsp), %rdi cmpq %r13, %rdi je 0xeb0d9 callq 0x1f4a0 addq $0x128, %rsp # imm = 0x128 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0xeb10e movq %rax, %rbx leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xeb19c callq 0x1f4a0 jmp 0xeb19c jmp 0xeb10e movq %rax, %rbx jmp 0xeb19c movq %rax, %rbx movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0xeb197 jmp 0xeb192 jmp 0xeb161 movq %rax, %rbx movq 0x28(%rsp), %rdi cmpq %r12, %rdi je 0xeb197 jmp 0xeb192 movq %rax, %rbx jmp 0xeb183 movq %rax, %rbx movq 0x80(%rsp), %rdi leaq 0x90(%rsp), %rax cmpq %rax, %rdi je 0xeb169 callq 0x1f4a0 jmp 0xeb169 jmp 0xeb161 movq %rax, %rbx jmp 0xeb197 movq %rax, %rbx movq 0xa0(%rsp), %rdi leaq 0xb0(%rsp), %rax cmpq %rax, %rdi je 0xeb183 callq 0x1f4a0 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0xeb197 callq 0x1f4a0 leaq 0x68(%rsp), %r13 leaq 0xc0(%rsp), %rdi callq 0x60f40 movq 0x58(%rsp), %rdi cmpq %r13, %rdi je 0xeb1b8 callq 0x1f4a0 movq %rbx, %rdi callq 0x1f860
_ZN6google8protobuf8compiler10objectivec13EnumGenerator14GenerateHeaderEPNS0_2io7PrinterE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 128h mov [rsp+158h+var_158], rsi; void * mov r14, rdi lea r13, [rsp+158h+var_F0] mov [r13-10h], r13 xor eax, eax mov [r13-8], rax mov [r13+0], al lea rcx, [rsp+158h+var_78] mov [rcx-10h], rcx mov [rcx-8], rax mov [rcx], al lea rcx, [rsp+158h+var_58] mov [rcx-10h], rcx mov [rcx-8], rax mov [rcx], al xorps xmm0, xmm0 movups xmmword ptr [rcx+10h], xmm0 mov [rcx+20h], rax mov rdi, [rdi]; this lea rsi, [rsp+158h+var_98]; google::protobuf::SourceLocation * call _ZNK6google8protobuf14EnumDescriptor17GetSourceLocationEPNS0_14SourceLocationE; google::protobuf::EnumDescriptor::GetSourceLocation(google::protobuf::SourceLocation *) test al, al jz short loc_EADA5 lea rdi, [rsp+158h+var_130]; int lea rsi, [rsp+158h+var_98]; int mov edx, 1; int call _ZN6google8protobuf8compiler10objectivec19BuildCommentsStringB5cxx11ERKNS0_14SourceLocationEb; google::protobuf::compiler::objectivec::BuildCommentsString(google::protobuf::SourceLocation const&,bool) lea rdi, [rsp+158h+var_100] lea r15, [rsp+158h+var_130] mov rsi, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&) mov rdi, [r15]; void * lea rax, [rsp+158h+var_120] cmp rdi, rax jz short loc_EADBF call __ZdlPv; operator delete(void *) jmp short loc_EADBF loc_EADA5: lea rdi, [rsp+158h+var_100] mov rdx, [rdi+8] lea rcx, asc_19A5A7+2; "" xor esi, esi xor r8d, r8d call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong) loc_EADBF: lea rbx, [r14+68h] lea rsi, aPragmaMarkEnum; "#pragma mark - Enum $name$\n\n" lea r15, aAnnotationPrag+12h; "name" mov rdi, [rsp+158h+var_158] mov rdx, r15 mov rcx, rbx call _ZN6google8protobuf2io7Printer5PrintIJA5_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvPKcDpRKT_; google::protobuf::io::Printer::Print<char [5],std::string>(char const*,char [5],std::string const&) mov rsi, [r14]; int mov rdx, [rsi+10h]; int lea rdi, [rsp+158h+var_130]; int mov ecx, 1; int xor r8d, r8d; int call _ZN6google8protobuf8compiler10objectivec30GetOptionalDeprecatedAttributeINS0_14EnumDescriptorEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKT_PKNS0_14FileDescriptorEbb; google::protobuf::compiler::objectivec::GetOptionalDeprecatedAttribute<google::protobuf::EnumDescriptor>(google::protobuf::EnumDescriptor const*,google::protobuf::FileDescriptor const*,bool,bool) lea rsi, aCommentsTypede; "$comments$typedef$deprecated_attribute$"... lea rdx, aComments; "comments" lea r8, aDeprecatedAttr_2; "deprecated_attribute" lea rcx, [rsp+158h+var_100] lea r9, [rsp+158h+var_130] mov rdi, [rsp+158h+var_158] push rbx push r15 call _ZN6google8protobuf2io7Printer5PrintIJA9_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEA21_cSA_A5_cSA_EEEvPKcDpRKT_; google::protobuf::io::Printer::Print<char [9],std::string,char [21],std::string,char [5],std::string>(char const*,char [9],std::string,char [21],std::string,char [5],std::string const&) add rsp, 10h lea r12, [rsp+158h+var_120] mov rdi, [r12-10h]; void * cmp rdi, r12 jz short loc_EAE3C call __ZdlPv; operator delete(void *) loc_EAE3C: mov rdi, [rsp+158h+var_158]; this call _ZN6google8protobuf2io7Printer6IndentEv; google::protobuf::io::Printer::Indent(void) mov rax, [r14] mov rax, [rax+10h] cmp byte ptr [rax+3], 3 jnz short loc_EAE6C lea rsi, aValueUsedIfAny; "/**\n * Value used if any message's fie"... lea rdx, aAnnotationPrag+12h; "name" mov rdi, [rsp+158h+var_158] mov rcx, rbx call _ZN6google8protobuf2io7Printer5PrintIJA5_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvPKcDpRKT_; google::protobuf::io::Printer::Print<char [5],std::string>(char const*,char [5],std::string const&) loc_EAE6C: mov qword ptr [rsp+158h+var_E0], rbx; int mov rax, [r14+20h] mov rcx, [r14+28h] cmp rcx, rax jz loc_EB060 lea r13, [r14+40h] xor ebx, ebx lea r15, [rsp+158h+var_B8] loc_EAE90: mov rdx, [r14+48h] mov rdi, [rax+rbx*8]; this test rdx, rdx jz short loc_EAEC8 mov rsi, r13 loc_EAEA0: xor r8d, r8d cmp [rdx+20h], rdi setb r8b cmovnb rsi, rdx mov rdx, [rdx+r8*8+10h] test rdx, rdx jnz short loc_EAEA0 cmp rsi, r13 jz short loc_EAEC8 cmp rdi, [rsi+20h] jnb loc_EB04A loc_EAEC8: lea rsi, [rsp+158h+var_98]; google::protobuf::SourceLocation * call _ZNK6google8protobuf19EnumValueDescriptor17GetSourceLocationEPNS0_14SourceLocationE; google::protobuf::EnumValueDescriptor::GetSourceLocation(google::protobuf::SourceLocation *) test al, al jz short loc_EAF50 lea rdi, [rsp+158h+var_150]; int lea rsi, [rsp+158h+var_98]; int mov edx, 1; int call _ZN6google8protobuf8compiler10objectivec19BuildCommentsStringB5cxx11ERKNS0_14SourceLocationEb; google::protobuf::compiler::objectivec::BuildCommentsString(google::protobuf::SourceLocation const&,bool) mov rsi, [rsp+158h+var_150] lea rdi, [rsp+158h+var_130] mov rdx, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EPKcRKS3_; std::string::basic_string(char const*,std::allocator<char> const&) mov rdi, [rsp+158h+var_150]; void * lea rax, [rsp+158h+var_140] cmp rdi, rax jz short loc_EAF16 call __ZdlPv; operator delete(void *) loc_EAF16: cmp [rsp+158h+var_128], 0 jz short loc_EAF41 test rbx, rbx jz short loc_EAF33 mov rdi, [rsp+158h+var_158] lea rsi, aConstProtoNsMe_0+0E5h; "\n" call _ZN6google8protobuf2io7Printer5PrintIJEEEvPKcDpRKT_ loc_EAF33: mov rsi, [rsp+158h+var_130] mov rdi, [rsp+158h+var_158] call _ZN6google8protobuf2io7Printer5PrintIJEEEvPKcDpRKT_ loc_EAF41: mov rdi, [rsp+158h+var_130]; void * cmp rdi, r12 jz short loc_EAF50 call __ZdlPv; operator delete(void *) loc_EAF50: mov rax, [r14+20h] mov rsi, [rax+rbx*8] lea rdi, [rsp+158h+var_150]; int call _ZN6google8protobuf8compiler10objectivec13EnumValueNameB5cxx11EPKNS0_19EnumValueDescriptorE; google::protobuf::compiler::objectivec::EnumValueName(google::protobuf::EnumValueDescriptor const*) mov rax, [r14+20h] mov rsi, [rax+rbx*8]; int mov rdi, r15; int xor edx, edx; int mov ecx, 1; int xor r8d, r8d; int call _ZN6google8protobuf8compiler10objectivec30GetOptionalDeprecatedAttributeINS0_19EnumValueDescriptorEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKT_PKNS0_14FileDescriptorEbb; google::protobuf::compiler::objectivec::GetOptionalDeprecatedAttribute<google::protobuf::EnumValueDescriptor>(google::protobuf::EnumValueDescriptor const*,google::protobuf::FileDescriptor const*,bool,bool) mov rax, [r14+20h] mov rax, [rax+rbx*8] mov edi, [rax+4]; this mov [rsp+158h+var_130], r12 mov rsi, r12; int call _ZN6google8protobuf21FastInt32ToBufferLeftEiPc; google::protobuf::FastInt32ToBufferLeft(int,char *) lea rbp, [rsp+158h+var_D8] sub rax, r12 mov [rsp+158h+var_128], rax mov rsi, [rsp+158h+var_130] lea rcx, [rsp+158h+var_C8] mov [rsp+158h+var_D8], rcx add rax, rsi mov rdi, rbp mov rdx, rax 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, [rsp+158h+var_158] lea rsi, aNameDeprecated; "$name$$deprecated_attribute$ = $value$,"... lea rdx, aAnnotationPrag+12h; "name" lea rcx, [rsp+158h+var_150] lea r8, aDeprecatedAttr_2; "deprecated_attribute" mov r9, r15 push rbp lea rax, aNoDefaultValue+0Bh; "value" push rax call _ZN6google8protobuf2io7Printer5PrintIJA5_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEA21_cSA_A6_cSA_EEEvPKcDpRKT_; google::protobuf::io::Printer::Print<char [5],std::string,char [21],std::string,char [6],std::string>(char const*,char [5],std::string,char [21],std::string,char [6],std::string const&) add rsp, 10h mov rdi, [rsp+158h+var_D8]; void * lea rax, [rsp+158h+var_C8] cmp rdi, rax jz short loc_EB014 call __ZdlPv; operator delete(void *) loc_EB014: mov rdi, [rsp+158h+var_B8]; void * lea rax, [rsp+158h+var_A8] cmp rdi, rax jz short loc_EB02E call __ZdlPv; operator delete(void *) loc_EB02E: mov rdi, [rsp+158h+var_150]; void * lea rax, [rsp+158h+var_140] cmp rdi, rax jz short loc_EB042 call __ZdlPv; operator delete(void *) loc_EB042: mov rax, [r14+20h] mov rcx, [r14+28h] loc_EB04A: inc rbx mov rdx, rcx sub rdx, rax sar rdx, 3 cmp rdx, rbx ja loc_EAE90 loc_EB060: mov rdi, [rsp+158h+var_158]; this lea r13, [rsp+158h+var_F0] call _ZN6google8protobuf2io7Printer7OutdentEv; google::protobuf::io::Printer::Outdent(void) lea r14, [rsp+158h+var_78] lea r15, [rsp+158h+var_58] mov rcx, qword ptr [rsp+158h+var_E0] lea rsi, aGpbenumdescrip; "};\n\nGPBEnumDescriptor *$name$_EnumDes"... lea rdx, aAnnotationPrag+12h; "name" mov rdi, [rsp+158h+var_158] call _ZN6google8protobuf2io7Printer5PrintIJA5_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvPKcDpRKT_; google::protobuf::io::Printer::Print<char [5],std::string>(char const*,char [5],std::string const&) lea rbx, [rsp+158h+var_48] mov rdi, rbx call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() mov rdi, [rbx-20h]; void * cmp rdi, r15 jz short loc_EB0B8 call __ZdlPv; operator delete(void *) loc_EB0B8: mov rdi, [rsp+158h+var_88]; void * cmp rdi, r14 jz short loc_EB0CA call __ZdlPv; operator delete(void *) loc_EB0CA: mov rdi, [rsp+158h+var_100]; void * cmp rdi, r13 jz short loc_EB0D9 call __ZdlPv; operator delete(void *) loc_EB0D9: add rsp, 128h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_EB10E mov rbx, rax lea rax, [rsp+arg_30] mov rdi, [rax-10h]; void * cmp rdi, rax jz loc_EB19C call __ZdlPv; operator delete(void *) jmp loc_EB19C jmp short $+2 loc_EB10E: mov rbx, rax jmp loc_EB19C mov rbx, rax mov rdi, [rsp+arg_0] lea rax, [rsp+arg_10] cmp rdi, rax jz short loc_EB197 jmp short loc_EB192 jmp short loc_EB161 mov rbx, rax mov rdi, [rsp+arg_20] cmp rdi, r12 jz short loc_EB197 jmp short loc_EB192 mov rbx, rax jmp short loc_EB183 mov rbx, rax mov rdi, [rsp+arg_78]; void * lea rax, [rsp+arg_88] cmp rdi, rax jz short loc_EB169 call __ZdlPv; operator delete(void *) jmp short loc_EB169 jmp short $+2 loc_EB161: mov rbx, rax jmp short loc_EB197 mov rbx, rax loc_EB169: mov rdi, [rsp+arg_98]; void * lea rax, [rsp+arg_A8] cmp rdi, rax jz short loc_EB183 call __ZdlPv; operator delete(void *) loc_EB183: mov rdi, [rsp+arg_0]; void * lea rax, [rsp+arg_10] cmp rdi, rax jz short loc_EB197 loc_EB192: call __ZdlPv; operator delete(void *) loc_EB197: lea r13, [rsp+arg_60] loc_EB19C: lea rdi, [rsp+arg_B8]; this call _ZN6google8protobuf14SourceLocationD2Ev; google::protobuf::SourceLocation::~SourceLocation() mov rdi, [rsp+arg_50]; void * cmp rdi, r13 jz short loc_EB1B8 call __ZdlPv; operator delete(void *) loc_EB1B8: mov rdi, rbx call __Unwind_Resume
void google::protobuf::compiler::objectivec::EnumGenerator::GenerateHeader( google::protobuf::EnumDescriptor **this, google::protobuf::io::Printer *a2) { int v3; // ecx int v4; // r8d int v5; // r9d int v6; // r9d google::protobuf::EnumDescriptor *v7; // rax google::protobuf::EnumDescriptor *v8; // rcx unsigned long long v9; // rbx google::protobuf::EnumDescriptor *v10; // rdx google::protobuf::EnumValueDescriptor *v11; // rdi google::protobuf::EnumDescriptor **v12; // rsi int v13; // ecx int v14; // r8d int v15; // r9d int v16; // r9d google::protobuf *v17; // rdi char *v18; // rdx google::protobuf::io::Printer *v19; // [rsp+0h] [rbp-158h] void *v20; // [rsp+8h] [rbp-150h] BYREF int v21; // [rsp+10h] [rbp-148h] int v22; // [rsp+18h] [rbp-140h] BYREF void *v23; // [rsp+20h] [rbp-138h] void *v24; // [rsp+28h] [rbp-130h] BYREF long long v25; // [rsp+30h] [rbp-128h] int v26; // [rsp+38h] [rbp-120h] BYREF long long v27; // [rsp+40h] [rbp-118h] int v28; // [rsp+48h] [rbp-110h] char v29; // [rsp+50h] [rbp-108h] void *v30; // [rsp+58h] [rbp-100h] BYREF void *v31; // [rsp+60h] [rbp-F8h] _BYTE v32[16]; // [rsp+68h] [rbp-F0h] BYREF int v33[2]; // [rsp+78h] [rbp-E0h] void *v34[2]; // [rsp+80h] [rbp-D8h] BYREF _BYTE v35[16]; // [rsp+90h] [rbp-C8h] BYREF void *v36[2]; // [rsp+A0h] [rbp-B8h] BYREF char v37; // [rsp+B0h] [rbp-A8h] BYREF int v38[4]; // [rsp+C0h] [rbp-98h] BYREF void *v39; // [rsp+D0h] [rbp-88h] long long v40; // [rsp+D8h] [rbp-80h] _BYTE v41[16]; // [rsp+E0h] [rbp-78h] BYREF _BYTE *v42; // [rsp+F0h] [rbp-68h] long long v43; // [rsp+F8h] [rbp-60h] _BYTE v44[16]; // [rsp+100h] [rbp-58h] BYREF __int128 v45; // [rsp+110h] [rbp-48h] BYREF long long v46; // [rsp+120h] [rbp-38h] v30 = v32; v31 = 0LL; v32[0] = 0; v39 = v41; v40 = 0LL; v41[0] = 0; v42 = v44; v43 = 0LL; v44[0] = 0; v45 = 0LL; v46 = 0LL; if ( (unsigned __int8)google::protobuf::EnumDescriptor::GetSourceLocation( *this, (google::protobuf::SourceLocation *)v38) ) { google::protobuf::compiler::objectivec::BuildCommentsString[abi:cxx11]((long long)&v24, (long long)v38, 1u, v3, v4, v5); std::string::operator=(&v30, &v24); if ( v24 != &v26 ) operator delete(v24); } else { std::string::_M_replace(&v30, 0LL, v31, "", 0LL); } google::protobuf::io::Printer::Print<char [5],std::string>(a2); google::protobuf::compiler::objectivec::GetOptionalDeprecatedAttribute<google::protobuf::EnumDescriptor>( (int)&v24, (int)*this, *((_QWORD *)*this + 2), 1, 0, v6, a2, (int)v20, v21, v22, v23, (int)v24, v25, v26, v27, v28, v29, (int)v30, v31); google::protobuf::io::Printer::Print<char [9],std::string,char [21],std::string,char [5],std::string>( v19, "$comments$typedef$deprecated_attribute$ GPB_ENUM($name$) {\n", "comments", &v30, "deprecated_attribute", &v24, "name", this + 13); if ( v24 != &v26 ) operator delete(v24); google::protobuf::io::Printer::Indent(v19); if ( *(_BYTE *)(*((_QWORD *)*this + 2) + 3LL) == 3 ) google::protobuf::io::Printer::Print<char [5],std::string>(v19); *(_QWORD *)v33 = this + 13; v7 = this[4]; v8 = this[5]; if ( v8 != v7 ) { v9 = 0LL; do { v10 = this[9]; v11 = (google::protobuf::EnumValueDescriptor *)*((_QWORD *)v7 + v9); if ( !v10 ) goto LABEL_43; v12 = this + 8; do { if ( *((_QWORD *)v10 + 4) >= (unsigned long long)v11 ) v12 = (google::protobuf::EnumDescriptor **)v10; v10 = (google::protobuf::EnumDescriptor *)*((_QWORD *)v10 + (*((_QWORD *)v10 + 4) < (unsigned long long)v11) + 2); } while ( v10 ); if ( v12 == this + 8 || v11 < v12[4] ) { LABEL_43: if ( (unsigned __int8)google::protobuf::EnumValueDescriptor::GetSourceLocation( v11, (google::protobuf::SourceLocation *)v38) ) { google::protobuf::compiler::objectivec::BuildCommentsString[abi:cxx11]( (long long)&v20, (long long)v38, 1u, v13, v14, v15); std::string::basic_string(&v24, v20, v36); if ( v20 != &v22 ) operator delete(v20); if ( v25 ) { if ( v9 ) google::protobuf::io::Printer::Print<>(v19, "\n"); google::protobuf::io::Printer::Print<>(v19, (const char *)v24); } if ( v24 != &v26 ) operator delete(v24); } google::protobuf::compiler::objectivec::EnumValueName[abi:cxx11]((long long)&v20, *((_QWORD *)this[4] + v9)); google::protobuf::compiler::objectivec::GetOptionalDeprecatedAttribute<google::protobuf::EnumValueDescriptor>( (int)v36, *((_QWORD *)this[4] + v9), 0, 1, 0, v16, v19, (int)v20, v21, v22, v23, (int)v24, v25, v26, v27, v28, v29, (int)v30, v31); v17 = (google::protobuf *)*(unsigned int *)(*((_QWORD *)this[4] + v9) + 4LL); v24 = &v26; v25 = google::protobuf::FastInt32ToBufferLeft(v17, (int)&v26, v18) - (_QWORD)&v26; v34[0] = v35; std::string::_M_construct<char const*>((long long)v34, v24, (long long)v24 + v25); google::protobuf::io::Printer::Print<char [5],std::string,char [21],std::string,char [6],std::string>( v19, "$name$$deprecated_attribute$ = $value$,\n", "name", &v20, "deprecated_attribute", v36, "value", v34); if ( v34[0] != v35 ) operator delete(v34[0]); if ( v36[0] != &v37 ) operator delete(v36[0]); if ( v20 != &v22 ) operator delete(v20); v7 = this[4]; v8 = this[5]; } ++v9; } while ( (v8 - v7) >> 3 > v9 ); } google::protobuf::io::Printer::Outdent(v19); google::protobuf::io::Printer::Print<char [5],std::string>(v19); std::vector<std::string>::~vector((void ***)&v45); if ( v42 != v44 ) operator delete(v42); if ( v39 != v41 ) operator delete(v39); if ( v30 != v32 ) operator delete(v30); }
GenerateHeader: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x128 MOV qword ptr [RSP],RSI MOV R14,RDI LEA R13,[RSP + 0x68] MOV qword ptr [R13 + -0x10],R13 XOR EAX,EAX MOV qword ptr [R13 + -0x8],RAX MOV byte ptr [R13],AL LEA RCX,[RSP + 0xe0] MOV qword ptr [RCX + -0x10],RCX MOV qword ptr [RCX + -0x8],RAX MOV byte ptr [RCX],AL LEA RCX,[RSP + 0x100] MOV qword ptr [RCX + -0x10],RCX MOV qword ptr [RCX + -0x8],RAX MOV byte ptr [RCX],AL XORPS XMM0,XMM0 MOVUPS xmmword ptr [RCX + 0x10],XMM0 MOV qword ptr [RCX + 0x20],RAX MOV RDI,qword ptr [RDI] LAB_001ead57: LEA RSI,[RSP + 0xc0] CALL 0x00225456 TEST AL,AL JZ 0x001eada5 LAB_001ead68: LEA RDI,[RSP + 0x28] LEA RSI,[RSP + 0xc0] MOV EDX,0x1 CALL 0x0014de18 LEA RDI,[RSP + 0x58] LEA R15,[RSP + 0x28] MOV RSI,R15 CALL 0x0011f5d0 MOV RDI,qword ptr [R15] LEA RAX,[RSP + 0x38] CMP RDI,RAX JZ 0x001eadbf CALL 0x0011f4a0 JMP 0x001eadbf LAB_001eada5: LEA RDI,[RSP + 0x58] MOV RDX,qword ptr [RDI + 0x8] LAB_001eadae: LEA RCX,[0x29a5a9] XOR ESI,ESI XOR R8D,R8D CALL 0x0011f760 LAB_001eadbf: LEA RBX,[R14 + 0x68] LEA RSI,[0x2e55df] LEA R15,[0x29cd1b] MOV RDI,qword ptr [RSP] MOV RDX,R15 MOV RCX,RBX CALL 0x0015fcda MOV RSI,qword ptr [R14] MOV RDX,qword ptr [RSI + 0x10] LAB_001eade7: LEA RDI,[RSP + 0x28] MOV ECX,0x1 XOR R8D,R8D CALL 0x001eb773 LAB_001eadf9: LEA RSI,[0x2e55fc] LEA RDX,[0x2c5896] LEA R8,[0x2c5881] LEA RCX,[RSP + 0x58] LEA R9,[RSP + 0x28] MOV RDI,qword ptr [RSP] PUSH RBX PUSH R15 CALL 0x001eb704 ADD RSP,0x10 LEA R12,[RSP + 0x38] MOV RDI,qword ptr [R12 + -0x10] CMP RDI,R12 JZ 0x001eae3c CALL 0x0011f4a0 LAB_001eae3c: MOV RDI,qword ptr [RSP] CALL 0x0026d126 MOV RAX,qword ptr [R14] MOV RAX,qword ptr [RAX + 0x10] CMP byte ptr [RAX + 0x3],0x3 JNZ 0x001eae6c LEA RSI,[0x2e5638] LEA RDX,[0x29cd1b] MOV RDI,qword ptr [RSP] MOV RCX,RBX CALL 0x0015fcda LAB_001eae6c: MOV qword ptr [RSP + 0x78],RBX MOV RAX,qword ptr [R14 + 0x20] MOV RCX,qword ptr [R14 + 0x28] CMP RCX,RAX JZ 0x001eb060 LEA R13,[R14 + 0x40] XOR EBX,EBX LEA R15,[RSP + 0xa0] LAB_001eae90: MOV RDX,qword ptr [R14 + 0x48] MOV RDI,qword ptr [RAX + RBX*0x8] TEST RDX,RDX JZ 0x001eaec8 MOV RSI,R13 LAB_001eaea0: XOR R8D,R8D CMP qword ptr [RDX + 0x20],RDI SETC R8B CMOVNC RSI,RDX MOV RDX,qword ptr [RDX + R8*0x8 + 0x10] TEST RDX,RDX JNZ 0x001eaea0 CMP RSI,R13 JZ 0x001eaec8 CMP RDI,qword ptr [RSI + 0x20] JNC 0x001eb04a LAB_001eaec8: LEA RSI,[RSP + 0xc0] CALL 0x00225788 TEST AL,AL JZ 0x001eaf50 LAB_001eaed9: LEA RDI,[RSP + 0x8] LEA RSI,[RSP + 0xc0] MOV EDX,0x1 CALL 0x0014de18 MOV RSI,qword ptr [RSP + 0x8] LAB_001eaef5: LEA RDI,[RSP + 0x28] MOV RDX,R15 CALL 0x0011f1d0 MOV RDI,qword ptr [RSP + 0x8] LEA RAX,[RSP + 0x18] CMP RDI,RAX JZ 0x001eaf16 CALL 0x0011f4a0 LAB_001eaf16: CMP qword ptr [RSP + 0x30],0x0 JZ 0x001eaf41 TEST RBX,RBX JZ 0x001eaf33 LAB_001eaf23: MOV RDI,qword ptr [RSP] LEA RSI,[0x2b337d] CALL 0x0012e40a LAB_001eaf33: MOV RSI,qword ptr [RSP + 0x28] MOV RDI,qword ptr [RSP] CALL 0x0012e40a LAB_001eaf41: MOV RDI,qword ptr [RSP + 0x28] CMP RDI,R12 JZ 0x001eaf50 CALL 0x0011f4a0 LAB_001eaf50: MOV RAX,qword ptr [R14 + 0x20] MOV RSI,qword ptr [RAX + RBX*0x8] LAB_001eaf58: LEA RDI,[RSP + 0x8] CALL 0x0014bcdf MOV RAX,qword ptr [R14 + 0x20] MOV RSI,qword ptr [RAX + RBX*0x8] LAB_001eaf6a: MOV RDI,R15 XOR EDX,EDX MOV ECX,0x1 XOR R8D,R8D CALL 0x001ebbdb MOV RAX,qword ptr [R14 + 0x20] MOV RAX,qword ptr [RAX + RBX*0x8] MOV EDI,dword ptr [RAX + 0x4] MOV qword ptr [RSP + 0x28],R12 LAB_001eaf8c: MOV RSI,R12 CALL 0x0020a7e0 LEA RBP,[RSP + 0x80] SUB RAX,R12 MOV qword ptr [RSP + 0x30],RAX MOV RSI,qword ptr [RSP + 0x28] LEA RCX,[RSP + 0x90] MOV qword ptr [RSP + 0x80],RCX ADD RAX,RSI MOV RDI,RBP MOV RDX,RAX CALL 0x001250b2 LAB_001eafc7: MOV RDI,qword ptr [RSP] LEA RSI,[0x2e5738] LEA RDX,[0x29cd1b] LEA RCX,[RSP + 0x8] LEA R8,[0x2c5881] MOV R9,R15 PUSH RBP LEA RAX,[0x2eff1c] PUSH RAX CALL 0x001ebb6c ADD RSP,0x10 MOV RDI,qword ptr [RSP + 0x80] LEA RAX,[RSP + 0x90] CMP RDI,RAX JZ 0x001eb014 CALL 0x0011f4a0 LAB_001eb014: MOV RDI,qword ptr [RSP + 0xa0] LEA RAX,[RSP + 0xb0] CMP RDI,RAX JZ 0x001eb02e CALL 0x0011f4a0 LAB_001eb02e: MOV RDI,qword ptr [RSP + 0x8] LEA RAX,[RSP + 0x18] CMP RDI,RAX JZ 0x001eb042 CALL 0x0011f4a0 LAB_001eb042: MOV RAX,qword ptr [R14 + 0x20] MOV RCX,qword ptr [R14 + 0x28] LAB_001eb04a: INC RBX MOV RDX,RCX SUB RDX,RAX SAR RDX,0x3 CMP RDX,RBX JA 0x001eae90 LAB_001eb060: MOV RDI,qword ptr [RSP] LEA R13,[RSP + 0x68] CALL 0x0026d136 LEA R14,[RSP + 0xe0] LEA R15,[RSP + 0x100] MOV RCX,qword ptr [RSP + 0x78] LEA RSI,[0x2e5761] LEA RDX,[0x29cd1b] MOV RDI,qword ptr [RSP] CALL 0x0015fcda LAB_001eb09a: LEA RBX,[RSP + 0x110] MOV RDI,RBX CALL 0x0012580e MOV RDI,qword ptr [RBX + -0x20] CMP RDI,R15 JZ 0x001eb0b8 CALL 0x0011f4a0 LAB_001eb0b8: MOV RDI,qword ptr [RSP + 0xd0] CMP RDI,R14 JZ 0x001eb0ca CALL 0x0011f4a0 LAB_001eb0ca: MOV RDI,qword ptr [RSP + 0x58] CMP RDI,R13 JZ 0x001eb0d9 CALL 0x0011f4a0 LAB_001eb0d9: ADD RSP,0x128 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* google::protobuf::compiler::objectivec::EnumGenerator::GenerateHeader(google::protobuf::io::Printer*) */ void __thiscall google::protobuf::compiler::objectivec::EnumGenerator::GenerateHeader (EnumGenerator *this,Printer *param_1) { EnumValueDescriptor *this_00; char cVar1; long lVar2; long lVar3; EnumGenerator *pEVar4; ulong uVar5; EnumGenerator *pEVar6; char *local_150 [2]; char local_140 [16]; char *local_130; long local_128; char local_120 [32]; int1 *local_100; char *local_f8; int1 local_f0 [16]; EnumGenerator *local_e0; int1 *local_d8 [2]; int1 local_c8 [16]; int1 *local_b8 [2]; int1 local_a8 [16]; SourceLocation local_98 [16]; int1 *local_88; int8 local_80; int1 local_78 [16]; int1 *local_68; int8 local_60; int1 local_58 [16]; int8 local_48; int8 uStack_40; int8 local_38; local_100 = local_f0; local_f8 = (char *)0x0; local_f0[0] = 0; local_88 = local_78; local_80 = 0; local_78[0] = 0; local_68 = local_58; local_60 = 0; local_58[0] = 0; local_48 = 0; uStack_40 = 0; local_38 = 0; /* try { // try from 001ead57 to 001ead63 has its CatchHandler @ 001eb10e */ cVar1 = EnumDescriptor::GetSourceLocation(*(EnumDescriptor **)this,local_98); if (cVar1 == '\0') { /* try { // try from 001eadae to 001eaddf has its CatchHandler @ 001eb10e */ std::__cxx11::string::_M_replace((ulong)&local_100,0,local_f8,0x29a5a9); } else { /* try { // try from 001ead68 to 001ead7e has its CatchHandler @ 001eb0eb */ BuildCommentsString_abi_cxx11_((objectivec *)&local_130,local_98,true); std::__cxx11::string::operator=((string *)&local_100,(string *)&local_130); if (local_130 != local_120) { operator_delete(local_130); } } io::Printer::Print<char[5],std::__cxx11::string> ((char *)param_1,"#pragma mark - Enum $name$\n\n",(string *)0x29cd1b); /* try { // try from 001eade7 to 001eadf8 has its CatchHandler @ 001eb10c */ GetOptionalDeprecatedAttribute<google::protobuf::EnumDescriptor> ((objectivec *)&local_130,*(EnumDescriptor **)this, *(FileDescriptor **)(*(EnumDescriptor **)this + 0x10),true,false); /* try { // try from 001eadf9 to 001eae27 has its CatchHandler @ 001eb0ed */ io::Printer:: Print<char[9],std::__cxx11::string,char[21],std::__cxx11::string,char[5],std::__cxx11::string> ((char *)param_1,"$comments$typedef$deprecated_attribute$ GPB_ENUM($name$) {\n", (string *)"comments",(char *)&local_100,(string *)"deprecated_attribute", (char *)&local_130,(string *)0x29cd1b); if (local_130 != local_120) { operator_delete(local_130); } /* try { // try from 001eae3c to 001eae6b has its CatchHandler @ 001eb10e */ io::Printer::Indent(param_1); if (*(char *)(*(long *)(*(long *)this + 0x10) + 3) == '\x03') { io::Printer::Print<char[5],std::__cxx11::string> ((char *)param_1, "/**\n * Value used if any message\'s field encounters a value that is not defined\n * by this enum. The message will also have C functions to get/set the rawValue\n * of the field.\n **/\n$name$_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue,\n" ,(string *)0x29cd1b); } lVar2 = *(long *)(this + 0x20); lVar3 = *(long *)(this + 0x28); local_e0 = this + 0x68; if (lVar3 != lVar2) { uVar5 = 0; do { pEVar4 = *(EnumGenerator **)(this + 0x48); this_00 = *(EnumValueDescriptor **)(lVar2 + uVar5 * 8); pEVar6 = this + 0x40; if (pEVar4 == (EnumGenerator *)0x0) { LAB_001eaec8: /* try { // try from 001eaec8 to 001eaed4 has its CatchHandler @ 001eb161 */ cVar1 = EnumValueDescriptor::GetSourceLocation(this_00,local_98); if (cVar1 != '\0') { /* try { // try from 001eaed9 to 001eaeef has its CatchHandler @ 001eb12a */ BuildCommentsString_abi_cxx11_((objectivec *)local_150,local_98,true); /* try { // try from 001eaef5 to 001eaf01 has its CatchHandler @ 001eb116 */ std::__cxx11::string::string((string *)&local_130,local_150[0],(allocator *)local_b8); if (local_150[0] != local_140) { operator_delete(local_150[0]); } if (local_128 != 0) { if (uVar5 != 0) { /* try { // try from 001eaf23 to 001eaf40 has its CatchHandler @ 001eb12c */ io::Printer::Print<>(param_1,"\n"); } io::Printer::Print<>(param_1,local_130); } if (local_130 != local_120) { operator_delete(local_130); } } /* try { // try from 001eaf58 to 001eaf61 has its CatchHandler @ 001eb15f */ EnumValueName_abi_cxx11_ ((objectivec *)local_150, *(EnumValueDescriptor **)(*(long *)(this + 0x20) + uVar5 * 8)); /* try { // try from 001eaf6a to 001eaf7b has its CatchHandler @ 001eb13b */ GetOptionalDeprecatedAttribute<google::protobuf::EnumValueDescriptor> ((objectivec *)local_b8, *(EnumValueDescriptor **)(*(long *)(this + 0x20) + uVar5 * 8), (FileDescriptor *)0x0,true,false); local_130 = local_120; /* try { // try from 001eaf8c to 001eafc6 has its CatchHandler @ 001eb166 */ local_128 = FastInt32ToBufferLeft (*(int *)(*(long *)(*(long *)(this + 0x20) + uVar5 * 8) + 4),local_120 ); local_128 = local_128 - (long)local_120; local_d8[0] = local_c8; std::__cxx11::string::_M_construct<char_const*>(local_d8,local_130,local_130 + local_128); /* try { // try from 001eafc7 to 001eaff9 has its CatchHandler @ 001eb140 */ io::Printer:: Print<char[5],std::__cxx11::string,char[21],std::__cxx11::string,char[6],std::__cxx11::string> ((char *)param_1,"$name$$deprecated_attribute$ = $value$,\n",(string *)0x29cd1b, (char *)local_150,(string *)"deprecated_attribute",(char *)local_b8, (string *)0x2eff1c); if (local_d8[0] != local_c8) { operator_delete(local_d8[0]); } if (local_b8[0] != local_a8) { operator_delete(local_b8[0]); } if (local_150[0] != local_140) { operator_delete(local_150[0]); } lVar2 = *(long *)(this + 0x20); lVar3 = *(long *)(this + 0x28); } else { do { if (*(EnumValueDescriptor **)(pEVar4 + 0x20) >= this_00) { pEVar6 = pEVar4; } pEVar4 = *(EnumGenerator **) (pEVar4 + (ulong)(*(EnumValueDescriptor **)(pEVar4 + 0x20) < this_00) * 8 + 0x10 ); } while (pEVar4 != (EnumGenerator *)0x0); if ((pEVar6 == this + 0x40) || (this_00 < *(EnumValueDescriptor **)(pEVar6 + 0x20))) goto LAB_001eaec8; } uVar5 = uVar5 + 1; } while (uVar5 < (ulong)(lVar3 - lVar2 >> 3)); } /* try { // try from 001eb060 to 001eb099 has its CatchHandler @ 001eb10e */ io::Printer::Outdent(param_1); io::Printer::Print<char[5],std::__cxx11::string> ((char *)param_1, "};\n\nGPBEnumDescriptor *$name$_EnumDescriptor(void);\n\n/**\n * Checks to see if the given value is defined by the enum or was not known at\n * the time this source was generated.\n **/\nBOOL $name$_IsValidValue(int32_t value);\n\n" ,(string *)0x29cd1b); std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_48); if (local_68 != local_58) { operator_delete(local_68); } if (local_88 != local_78) { operator_delete(local_88); } if (local_100 != local_f0) { operator_delete(local_100); } return; }
65,225
minja::Value::at(unsigned long)
llama.cpp/common/minja/minja.hpp
Value& at(size_t index) { if (is_null()) throw std::runtime_error("Undefined value or reference"); if (is_array()) return array_->at(index); if (is_object()) return object_->at(index); throw std::runtime_error("Value is not an array or object: " + dump()); }
O3
cpp
minja::Value::at(unsigned long): pushq %rbp pushq %r14 pushq %rbx subq $0x50, %rsp movq %rdi, %r14 movq %rsi, 0x8(%rsp) movq 0x10(%rdi), %rcx movq 0x20(%rdi), %rdi testq %rdi, %rdi jne 0xc3904 testq %rcx, %rcx jne 0xc3904 cmpb $0x0, 0x40(%r14) jne 0xc3904 cmpq $0x0, 0x30(%r14) je 0xc394f testq %rcx, %rcx je 0xc3937 movq (%rcx), %rax movq 0x8(%rcx), %rcx subq %rax, %rcx sarq $0x4, %rcx movabsq $-0x3333333333333333, %rdx # imm = 0xCCCCCCCCCCCCCCCD imulq %rcx, %rdx cmpq %rsi, %rdx jbe 0xc3981 leaq (%rsi,%rsi,4), %rcx shlq $0x4, %rcx addq %rcx, %rax jmp 0xc3946 testq %rdi, %rdi je 0xc398f leaq 0x8(%rsp), %rsi callq 0xc3bc4 addq $0x50, %rsp popq %rbx popq %r14 popq %rbp retq movl $0x10, %edi callq 0x20620 movq %rax, %rbx leaq 0x5c27b(%rip), %rsi # 0x11fbde movq %rax, %rdi callq 0x20400 movq 0x9e64e(%rip), %rsi # 0x161fc0 movq 0x9e607(%rip), %rdx # 0x161f80 movq %rbx, %rdi callq 0x20a30 leaq 0x5c14e(%rip), %rdi # 0x11fad6 xorl %eax, %eax callq 0x20090 movl $0x10, %edi callq 0x20620 movq %rax, %rbx leaq 0x10(%rsp), %rdi movq %r14, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0xb669c leaq 0x5c2ba(%rip), %rsi # 0x11fc71 leaq 0x30(%rsp), %rdi leaq 0x10(%rsp), %rdx callq 0xb0110 movb $0x1, %bpl leaq 0x30(%rsp), %rsi movq %rbx, %rdi callq 0x20450 xorl %ebp, %ebp movq 0x9e5e1(%rip), %rsi # 0x161fc0 movq 0x9e59a(%rip), %rdx # 0x161f80 movq %rbx, %rdi callq 0x20a30 movq %rax, %r14 leaq 0x40(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xc3a0c movq 0x40(%rsp), %rsi incq %rsi callq 0x20170 leaq 0x20(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xc3a27 movq 0x20(%rsp), %rsi incq %rsi callq 0x20170 testb %bpl, %bpl jne 0xc3a53 jmp 0xc3a5b movq %rax, %r14 leaq 0x20(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xc3a53 movq 0x20(%rsp), %rsi incq %rsi callq 0x20170 jmp 0xc3a53 jmp 0xc3a50 movq %rax, %r14 movq %rbx, %rdi callq 0x20eb0 movq %r14, %rdi callq 0x20ad0 nop
_ZN5minja5Value2atEm: push rbp push r14 push rbx sub rsp, 50h mov r14, rdi mov [rsp+68h+var_60], rsi mov rcx, [rdi+10h] mov rdi, [rdi+20h] test rdi, rdi jnz short loc_C3904 test rcx, rcx jnz short loc_C3904 cmp byte ptr [r14+40h], 0 jnz short loc_C3904 cmp qword ptr [r14+30h], 0 jz short loc_C394F loc_C3904: test rcx, rcx jz short loc_C3937 mov rax, [rcx] mov rcx, [rcx+8] sub rcx, rax sar rcx, 4 mov rdx, 0CCCCCCCCCCCCCCCDh imul rdx, rcx cmp rdx, rsi jbe short loc_C3981 lea rcx, [rsi+rsi*4] shl rcx, 4 add rax, rcx jmp short loc_C3946 loc_C3937: test rdi, rdi jz short loc_C398F lea rsi, [rsp+68h+var_60] call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE2atIRmTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OSS_ loc_C3946: add rsp, 50h pop rbx pop r14 pop rbp retn loc_C394F: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rsi, aUndefinedValue; "Undefined value or reference" 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 loc_C3981: lea rdi, aVectorMRangeCh; "vector::_M_range_check: __n (which is %"... xor eax, eax call __ZSt24__throw_out_of_range_fmtPKcz; std::__throw_out_of_range_fmt(char const*,...) loc_C398F: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rdi, [rsp+68h+var_58] mov rsi, r14 mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) lea rsi, aValueIsNotAnAr; "Value is not an array or object: " lea rdi, [rsp+68h+var_38] lea rdx, [rsp+68h+var_58] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) mov bpl, 1 lea rsi, [rsp+68h+var_38] mov rdi, rbx call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) xor ebp, ebp mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rax, [rsp+68h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_C3A0C mov rsi, [rsp+68h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_C3A0C: lea rax, [rsp+68h+var_48] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_C3A27 mov rsi, [rsp+68h+var_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_C3A27: test bpl, bpl jnz short loc_C3A53 jmp short loc_C3A5B mov r14, rax lea rax, [rsp+68h+var_48] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_C3A53 mov rsi, [rsp+68h+var_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_C3A53 jmp short $+2 loc_C3A50: mov r14, rax loc_C3A53: mov rdi, rbx; void * call ___cxa_free_exception loc_C3A5B: mov rdi, r14 call __Unwind_Resume
unsigned long long minja::Value::at(minja::Value *this, unsigned long long a2) { _QWORD *v3; // rcx long long v4; // rdi unsigned long long v5; // rdx std::runtime_error *exception; // rbx void *v8; // rbx unsigned long long v9; // [rsp+8h] [rbp-60h] BYREF _BYTE v10[16]; // [rsp+10h] [rbp-58h] BYREF _QWORD v11[2]; // [rsp+30h] [rbp-38h] BYREF v9 = a2; v3 = (_QWORD *)*((_QWORD *)this + 2); v4 = *((_QWORD *)this + 4); if ( !v4 && !v3 && !*((_BYTE *)this + 64) && !*((_QWORD *)this + 6) ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "Undefined value or reference"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } if ( v3 ) { v5 = 0xCCCCCCCCCCCCCCCDLL * ((long long)(v3[1] - *v3) >> 4); if ( v5 <= a2 ) std::__throw_out_of_range_fmt("vector::_M_range_check: __n (which is %zu) >= this->size() (which is %zu)", a2, v5); return 80 * a2 + *v3; } else { if ( !v4 ) { v8 = __cxa_allocate_exception(0x10uLL); minja::Value::dump[abi:cxx11]((long long)v10, (long long)this, 0xFFFFFFFF, 0); std::operator+<char>(v11, (long long)"Value is not an array or object: ", (long long)v10); std::runtime_error::runtime_error(v8, v11); __cxa_throw( v8, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } return ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE2atIRmTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OSS_( v4, &v9); } }
at: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x50 MOV R14,RDI MOV qword ptr [RSP + 0x8],RSI MOV RCX,qword ptr [RDI + 0x10] MOV RDI,qword ptr [RDI + 0x20] TEST RDI,RDI JNZ 0x001c3904 TEST RCX,RCX JNZ 0x001c3904 CMP byte ptr [R14 + 0x40],0x0 JNZ 0x001c3904 CMP qword ptr [R14 + 0x30],0x0 JZ 0x001c394f LAB_001c3904: TEST RCX,RCX JZ 0x001c3937 MOV RAX,qword ptr [RCX] MOV RCX,qword ptr [RCX + 0x8] SUB RCX,RAX SAR RCX,0x4 MOV RDX,-0x3333333333333333 IMUL RDX,RCX CMP RDX,RSI JBE 0x001c3981 LEA RCX,[RSI + RSI*0x4] SHL RCX,0x4 ADD RAX,RCX JMP 0x001c3946 LAB_001c3937: TEST RDI,RDI JZ 0x001c398f LEA RSI,[RSP + 0x8] CALL 0x001c3bc4 LAB_001c3946: ADD RSP,0x50 POP RBX POP R14 POP RBP RET LAB_001c394f: MOV EDI,0x10 CALL 0x00120620 MOV RBX,RAX LAB_001c395c: LEA RSI,[0x21fbde] MOV RDI,RAX CALL 0x00120400 LAB_001c396b: MOV RSI,qword ptr [0x00261fc0] MOV RDX,qword ptr [0x00261f80] MOV RDI,RBX CALL 0x00120a30 LAB_001c3981: LEA RDI,[0x21fad6] XOR EAX,EAX CALL 0x00120090 LAB_001c398f: MOV EDI,0x10 CALL 0x00120620 MOV RBX,RAX LAB_001c399c: LEA RDI,[RSP + 0x10] MOV RSI,R14 MOV EDX,0xffffffff XOR ECX,ECX CALL 0x001b669c LAB_001c39b0: LEA RSI,[0x21fc71] LEA RDI,[RSP + 0x30] LEA RDX,[RSP + 0x10] CALL 0x001b0110 MOV BPL,0x1 LAB_001c39c9: LEA RSI,[RSP + 0x30] MOV RDI,RBX CALL 0x00120450 XOR EBP,EBP MOV RSI,qword ptr [0x00261fc0] MOV RDX,qword ptr [0x00261f80] MOV RDI,RBX CALL 0x00120a30
/* minja::Value::at(unsigned long) */ long __thiscall minja::Value::at(Value *this,ulong param_1) { long *plVar1; long lVar2; runtime_error *prVar3; ulong uVar4; ulong local_60; int1 local_58 [32]; string local_38 [32]; plVar1 = *(long **)(this + 0x10); lVar2 = *(long *)(this + 0x20); local_60 = param_1; if ((((lVar2 == 0) && (plVar1 == (long *)0x0)) && (this[0x40] == (Value)0x0)) && (*(long *)(this + 0x30) == 0)) { prVar3 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001c395c to 001c396a has its CatchHandler @ 001c3a50 */ std::runtime_error::runtime_error(prVar3,"Undefined value or reference"); /* WARNING: Subroutine does not return */ __cxa_throw(prVar3,PTR_typeinfo_00261fc0,PTR__runtime_error_00261f80); } if (plVar1 == (long *)0x0) { if (lVar2 == 0) goto LAB_001c398f; lVar2 = _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE2atIRmTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OSS_ (lVar2,&local_60); } else { uVar4 = (plVar1[1] - *plVar1 >> 4) * -0x3333333333333333; if (uVar4 < param_1 || uVar4 - param_1 == 0) { std::__throw_out_of_range_fmt ("vector::_M_range_check: __n (which is %zu) >= this->size() (which is %zu)"); LAB_001c398f: prVar3 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001c399c to 001c39af has its CatchHandler @ 001c3a4e */ dump_abi_cxx11_((int)local_58,SUB81(this,0)); /* try { // try from 001c39b0 to 001c39c5 has its CatchHandler @ 001c3a2e */ std::operator+((char *)local_38,(string *)"Value is not an array or object: "); /* try { // try from 001c39c9 to 001c39ed has its CatchHandler @ 001c39ee */ std::runtime_error::runtime_error(prVar3,local_38); /* WARNING: Subroutine does not return */ __cxa_throw(prVar3,PTR_typeinfo_00261fc0,PTR__runtime_error_00261f80); } lVar2 = *plVar1 + param_1 * 0x50; } return lVar2; }
65,226
my_casefold_ujis
eloqsql/strings/ctype-ujis.c
static size_t my_casefold_ujis(CHARSET_INFO *cs, const char *src, size_t srclen, char *dst, size_t dstlen __attribute__((unused)), const uchar * const map, size_t is_upper) { const char *srcend= src + srclen, *dst0= dst; while (src < srcend) { size_t mblen= my_ismbchar(cs, src, srcend); if (mblen) { MY_UNICASE_CHARACTER *ch; ch= (mblen == 2) ? get_case_info_for_ch(cs, 0, (uchar) src[0], (uchar) src[1]) : get_case_info_for_ch(cs, 1, (uchar) src[1], (uchar) src[2]); if (ch) { int code= is_upper ? ch->toupper : ch->tolower; src+= mblen; if (code > 0xFFFF) *dst++= (char) (uchar) ((code >> 16) & 0xFF); if (code > 0xFF) *dst++= (char) (uchar) ((code >> 8) & 0xFF); *dst++= (char) (uchar) (code & 0xFF); } else { if (mblen == 3) *dst++= *src++; *dst++= *src++; *dst++= *src++; } } else { *dst++= (char) map[(uchar) *src++]; } } return (size_t) (dst - dst0); }
O3
c
my_casefold_ujis: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %r8, -0x40(%rbp) movq %rcx, %rbx movq %rcx, -0x30(%rbp) testq %rdx, %rdx jle 0x51baf movq %rdx, %r15 movq %rsi, %r12 movq %rdi, %r13 addq %rsi, %r15 xorl %eax, %eax testq %r9, %r9 sete %al shll $0x2, %eax movq %rax, -0x38(%rbp) xorl %r14d, %r14d movq -0x30(%rbp), %rbx movq 0xb8(%r13), %rax movq %r13, %rdi movq %r12, %rsi movq %r15, %rdx callq *0xc0(%rax) cmpl $0x2, %eax cmovll %r14d, %eax testl %eax, %eax je 0x51b09 cmpl $0x2, %eax jne 0x51b1f movzbl (%r12), %ecx movq 0x78(%r13), %rdx movq 0x8(%rdx), %rdx movq (%rdx,%rcx,8), %rcx testq %rcx, %rcx je 0x51b79 movzbl 0x1(%r12), %edx jmp 0x51b40 movzbl (%r12), %eax incq %r12 movq -0x40(%rbp), %rcx movb (%rcx,%rax), %al movb %al, (%rbx) jmp 0x51ba3 movzbl 0x1(%r12), %ecx movq 0x78(%r13), %rdx movq 0x8(%rdx), %rdx movq 0x800(%rdx,%rcx,8), %rcx testq %rcx, %rcx je 0x51b68 movzbl 0x2(%r12), %edx leaq (%rdx,%rdx,2), %rdx leaq (%rcx,%rdx,4), %rcx testq %rcx, %rcx je 0x51b68 movq -0x38(%rbp), %rdx movl (%rcx,%rdx), %ecx cmpl $0x10000, %ecx # imm = 0x10000 jl 0x51b91 movl %ecx, %edx shrl $0x10, %edx movb %dl, (%rbx) incq %rbx jmp 0x51b99 cmpl $0x3, %eax jne 0x51b79 movb (%r12), %al incq %r12 movb %al, (%rbx) incq %rbx movb (%r12), %al movb %al, (%rbx) movb 0x1(%r12), %al addq $0x2, %r12 movb %al, 0x1(%rbx) addq $0x2, %rbx jmp 0x51ba6 cmpl $0x100, %ecx # imm = 0x100 jl 0x51b9e movb %ch, (%rbx) incq %rbx addq %rax, %r12 movb %cl, (%rbx) incq %rbx cmpq %r15, %r12 jb 0x51ac5 subq -0x30(%rbp), %rbx movq %rbx, %rax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
my_casefold_ujis: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov [rbp+var_40], r8 mov rbx, rcx mov [rbp+var_30], rcx test rdx, rdx jle loc_51BAF mov r15, rdx mov r12, rsi mov r13, rdi add r15, rsi xor eax, eax test r9, r9 setz al shl eax, 2 mov [rbp+var_38], rax xor r14d, r14d mov rbx, [rbp+var_30] loc_51AC5: mov rax, [r13+0B8h] mov rdi, r13 mov rsi, r12 mov rdx, r15 call qword ptr [rax+0C0h] cmp eax, 2 cmovl eax, r14d test eax, eax jz short loc_51B09 cmp eax, 2 jnz short loc_51B1F movzx ecx, byte ptr [r12] mov rdx, [r13+78h] mov rdx, [rdx+8] mov rcx, [rdx+rcx*8] test rcx, rcx jz short loc_51B79 movzx edx, byte ptr [r12+1] jmp short loc_51B40 loc_51B09: movzx eax, byte ptr [r12] inc r12 mov rcx, [rbp+var_40] mov al, [rcx+rax] mov [rbx], al jmp loc_51BA3 loc_51B1F: movzx ecx, byte ptr [r12+1] mov rdx, [r13+78h] mov rdx, [rdx+8] mov rcx, [rdx+rcx*8+800h] test rcx, rcx jz short loc_51B68 movzx edx, byte ptr [r12+2] loc_51B40: lea rdx, [rdx+rdx*2] lea rcx, [rcx+rdx*4] test rcx, rcx jz short loc_51B68 mov rdx, [rbp+var_38] mov ecx, [rcx+rdx] cmp ecx, 10000h jl short loc_51B91 mov edx, ecx shr edx, 10h mov [rbx], dl inc rbx jmp short loc_51B99 loc_51B68: cmp eax, 3 jnz short loc_51B79 mov al, [r12] inc r12 mov [rbx], al inc rbx loc_51B79: mov al, [r12] mov [rbx], al mov al, [r12+1] add r12, 2 mov [rbx+1], al add rbx, 2 jmp short loc_51BA6 loc_51B91: cmp ecx, 100h jl short loc_51B9E loc_51B99: mov [rbx], ch inc rbx loc_51B9E: add r12, rax mov [rbx], cl loc_51BA3: inc rbx loc_51BA6: cmp r12, r15 jb loc_51AC5 loc_51BAF: sub rbx, [rbp+var_30] mov rax, rbx add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
_BYTE * my_casefold_ujis( long long a1, unsigned __int8 *a2, long long a3, unsigned __int8 *a4, long long a5, long long a6) { unsigned __int8 *v6; // rbx unsigned __int8 *v7; // r12 unsigned long long v8; // r15 long long v9; // rax long long v10; // rcx long long v11; // rdx long long v12; // rax long long v13; // rcx int v14; // ecx unsigned __int8 v15; // al unsigned __int8 v16; // al long long v19; // [rsp+8h] [rbp-38h] v6 = a4; if ( a3 > 0 ) { v7 = a2; v8 = (unsigned long long)&a2[a3]; v19 = 4 * (unsigned int)(a6 == 0); v6 = a4; while ( 1 ) { v9 = (*(long long ( **)(long long, unsigned __int8 *, unsigned long long))(*(_QWORD *)(a1 + 184) + 192LL))( a1, v7, v8); if ( (int)v9 < 2 ) v9 = 0LL; if ( !(_DWORD)v9 ) { v12 = *v7++; *v6 = *(_BYTE *)(a5 + v12); goto LABEL_21; } if ( (_DWORD)v9 != 2 ) break; v10 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 120) + 8LL) + 8LL * *v7); if ( v10 ) { v11 = v7[1]; LABEL_12: v13 = v10 + 12 * v11; if ( v13 ) { v14 = *(_DWORD *)(v13 + v19); if ( v14 >= 0x10000 ) { *v6++ = BYTE2(v14); goto LABEL_19; } if ( v14 >= 256 ) LABEL_19: *v6++ = BYTE1(v14); v7 += v9; *v6 = v14; LABEL_21: ++v6; goto LABEL_22; } goto LABEL_15; } LABEL_17: *v6 = *v7; v16 = v7[1]; v7 += 2; v6[1] = v16; v6 += 2; LABEL_22: if ( (unsigned long long)v7 >= v8 ) return (_BYTE *)(v6 - a4); } v10 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 120) + 8LL) + 8LL * v7[1] + 2048); if ( v10 ) { v11 = v7[2]; goto LABEL_12; } LABEL_15: if ( (_DWORD)v9 == 3 ) { v15 = *v7++; *v6++ = v15; } goto LABEL_17; } return (_BYTE *)(v6 - a4); }
my_casefold_ujis: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV qword ptr [RBP + -0x40],R8 MOV RBX,RCX MOV qword ptr [RBP + -0x30],RCX TEST RDX,RDX JLE 0x00151baf MOV R15,RDX MOV R12,RSI MOV R13,RDI ADD R15,RSI XOR EAX,EAX TEST R9,R9 SETZ AL SHL EAX,0x2 MOV qword ptr [RBP + -0x38],RAX XOR R14D,R14D MOV RBX,qword ptr [RBP + -0x30] LAB_00151ac5: MOV RAX,qword ptr [R13 + 0xb8] MOV RDI,R13 MOV RSI,R12 MOV RDX,R15 CALL qword ptr [RAX + 0xc0] CMP EAX,0x2 CMOVL EAX,R14D TEST EAX,EAX JZ 0x00151b09 CMP EAX,0x2 JNZ 0x00151b1f MOVZX ECX,byte ptr [R12] MOV RDX,qword ptr [R13 + 0x78] MOV RDX,qword ptr [RDX + 0x8] MOV RCX,qword ptr [RDX + RCX*0x8] TEST RCX,RCX JZ 0x00151b79 MOVZX EDX,byte ptr [R12 + 0x1] JMP 0x00151b40 LAB_00151b09: MOVZX EAX,byte ptr [R12] INC R12 MOV RCX,qword ptr [RBP + -0x40] MOV AL,byte ptr [RCX + RAX*0x1] MOV byte ptr [RBX],AL JMP 0x00151ba3 LAB_00151b1f: MOVZX ECX,byte ptr [R12 + 0x1] MOV RDX,qword ptr [R13 + 0x78] MOV RDX,qword ptr [RDX + 0x8] MOV RCX,qword ptr [RDX + RCX*0x8 + 0x800] TEST RCX,RCX JZ 0x00151b68 MOVZX EDX,byte ptr [R12 + 0x2] LAB_00151b40: LEA RDX,[RDX + RDX*0x2] LEA RCX,[RCX + RDX*0x4] TEST RCX,RCX JZ 0x00151b68 MOV RDX,qword ptr [RBP + -0x38] MOV ECX,dword ptr [RCX + RDX*0x1] CMP ECX,0x10000 JL 0x00151b91 MOV EDX,ECX SHR EDX,0x10 MOV byte ptr [RBX],DL INC RBX JMP 0x00151b99 LAB_00151b68: CMP EAX,0x3 JNZ 0x00151b79 MOV AL,byte ptr [R12] INC R12 MOV byte ptr [RBX],AL INC RBX LAB_00151b79: MOV AL,byte ptr [R12] MOV byte ptr [RBX],AL MOV AL,byte ptr [R12 + 0x1] ADD R12,0x2 MOV byte ptr [RBX + 0x1],AL ADD RBX,0x2 JMP 0x00151ba6 LAB_00151b91: CMP ECX,0x100 JL 0x00151b9e LAB_00151b99: MOV byte ptr [RBX],CH INC RBX LAB_00151b9e: ADD R12,RAX MOV byte ptr [RBX],CL LAB_00151ba3: INC RBX LAB_00151ba6: CMP R12,R15 JC 0x00151ac5 LAB_00151baf: SUB RBX,qword ptr [RBP + -0x30] MOV RAX,RBX ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
long my_casefold_ujis(long param_1,byte *param_2,long param_3,byte *param_4,long param_5, long param_6) { byte *pbVar1; byte bVar2; uint uVar3; int iVar4; long lVar6; byte *pbVar7; byte *pbVar8; ulong uVar5; pbVar7 = param_4; if (0 < param_3) { pbVar8 = param_2 + param_3; do { uVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,param_2,pbVar8); uVar5 = (ulong)uVar3; if ((int)uVar3 < 2) { uVar5 = 0; } iVar4 = (int)uVar5; if (iVar4 == 0) { bVar2 = *param_2; param_2 = param_2 + 1; *pbVar7 = *(byte *)(param_5 + (ulong)bVar2); LAB_00151ba3: pbVar7 = pbVar7 + 1; } else { if (iVar4 == 2) { lVar6 = *(long *)(*(long *)(*(long *)(param_1 + 0x78) + 8) + (ulong)*param_2 * 8); if (lVar6 != 0) { bVar2 = param_2[1]; LAB_00151b40: lVar6 = lVar6 + (ulong)bVar2 * 0xc; if (lVar6 == 0) goto LAB_00151b68; iVar4 = *(int *)(lVar6 + (ulong)(param_6 == 0) * 4); if (iVar4 < 0x10000) { if (0xff < iVar4) goto LAB_00151b99; } else { *pbVar7 = (byte)((uint)iVar4 >> 0x10); pbVar7 = pbVar7 + 1; LAB_00151b99: *pbVar7 = (byte)((uint)iVar4 >> 8); pbVar7 = pbVar7 + 1; } param_2 = param_2 + uVar5; *pbVar7 = (byte)iVar4; goto LAB_00151ba3; } } else { lVar6 = *(long *)(*(long *)(*(long *)(param_1 + 0x78) + 8) + 0x800 + (ulong)param_2[1] * 8 ); if (lVar6 != 0) { bVar2 = param_2[2]; goto LAB_00151b40; } LAB_00151b68: if (iVar4 == 3) { bVar2 = *param_2; param_2 = param_2 + 1; *pbVar7 = bVar2; pbVar7 = pbVar7 + 1; } } *pbVar7 = *param_2; pbVar1 = param_2 + 1; param_2 = param_2 + 2; pbVar7[1] = *pbVar1; pbVar7 = pbVar7 + 2; } } while (param_2 < pbVar8); } return (long)pbVar7 - (long)param_4; }
65,227
unicode_general_category1
bluesky950520[P]quickjs/libunicode.c
static int unicode_general_category1(CharRange *cr, uint32_t gc_mask) { const uint8_t *p, *p_end; uint32_t c, c0, b, n, v; p = unicode_gc_table; p_end = unicode_gc_table + countof(unicode_gc_table); c = 0; while (p < p_end) { b = *p++; n = b >> 5; v = b & 0x1f; if (n == 7) { n = *p++; if (n < 128) { n += 7; } else if (n < 128 + 64) { n = (n - 128) << 8; n |= *p++; n += 7 + 128; } else { n = (n - 128 - 64) << 16; n |= *p++ << 8; n |= *p++; n += 7 + 128 + (1 << 14); } } c0 = c; c += n + 1; if (v == 31) { /* run of Lu / Ll */ b = gc_mask & (M(Lu) | M(Ll)); if (b != 0) { if (b == (M(Lu) | M(Ll))) { goto add_range; } else { c0 += ((gc_mask & M(Ll)) != 0); for(; c0 < c; c0 += 2) { if (cr_add_interval(cr, c0, c0 + 1)) return -1; } } } } else if ((gc_mask >> v) & 1) { add_range: if (cr_add_interval(cr, c0, c)) return -1; } } return 0; }
O2
c
unicode_general_category1: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdi, %r15 movl %esi, %r13d andl $0x6, %r13d movl %esi, 0x4(%rsp) shrl $0x2, %esi andl $0x1, %esi movl %esi, (%rsp) leaq 0x10e41(%rip), %r14 # 0x94fe0 xorl %ebx, %ebx xorl %ebp, %ebp cmpq $0xfe5, %rbx # imm = 0xFE5 jg 0x84277 movl %ebp, %r12d movzbl (%rbx,%r14), %eax movl %eax, %ecx shrl $0x5, %ecx cmpl $0x7, %ecx jne 0x841d8 leaq 0x2(%rbx), %rdx movzbl 0x1(%rbx,%r14), %ecx testb %cl, %cl js 0x84237 addl $0x7, %ecx movq %rdx, %rbx jmp 0x841db incq %rbx andl $0x1f, %eax leal (%r12,%rcx), %ebp incl %ebp cmpl $0x1f, %eax jne 0x84217 testl %r13d, %r13d je 0x841a3 cmpl $0x6, %r13d je 0x84220 addl (%rsp), %r12d cmpl %ebp, %r12d jae 0x841a3 leal 0x1(%r12), %edx movq %r15, %rdi movl %r12d, %esi callq 0x83c49 addl $0x2, %r12d testl %eax, %eax je 0x841f8 jmp 0x84272 movl 0x4(%rsp), %ecx btl %eax, %ecx jae 0x841a3 movq %r15, %rdi movl %r12d, %esi movl %ebp, %edx callq 0x83c49 testl %eax, %eax je 0x841a3 jmp 0x84272 movzbl (%rdx,%r14), %edx cmpb $-0x41, %cl ja 0x84252 shll $0x8, %ecx addq $0x3, %rbx addl %edx, %ecx addl $0xffff8087, %ecx # imm = 0xFFFF8087 jmp 0x841db shll $0x10, %ecx shll $0x8, %edx movzbl 0x3(%rbx,%r14), %esi addq $0x4, %rbx orl %ecx, %esi leal (%rdx,%rsi), %ecx addl $0xff404087, %ecx # imm = 0xFF404087 jmp 0x841db pushq $-0x1 popq %rax jmp 0x84279 xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
unicode_general_category1: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov r15, rdi mov r13d, esi and r13d, 6 mov [rsp+38h+var_34], esi shr esi, 2 and esi, 1 mov [rsp+38h+var_38], esi lea r14, unicode_gc_table xor ebx, ebx xor ebp, ebp loc_841A3: cmp rbx, 0FE5h jg loc_84277 mov r12d, ebp movzx eax, byte ptr [rbx+r14] mov ecx, eax shr ecx, 5 cmp ecx, 7 jnz short loc_841D8 lea rdx, [rbx+2] movzx ecx, byte ptr [rbx+r14+1] test cl, cl js short loc_84237 add ecx, 7 mov rbx, rdx jmp short loc_841DB loc_841D8: inc rbx loc_841DB: and eax, 1Fh lea ebp, [r12+rcx] inc ebp cmp eax, 1Fh jnz short loc_84217 test r13d, r13d jz short loc_841A3 cmp r13d, 6 jz short loc_84220 add r12d, [rsp+38h+var_38] loc_841F8: cmp r12d, ebp jnb short loc_841A3 lea edx, [r12+1] mov rdi, r15 mov esi, r12d call cr_add_interval add r12d, 2 test eax, eax jz short loc_841F8 jmp short loc_84272 loc_84217: mov ecx, [rsp+38h+var_34] bt ecx, eax jnb short loc_841A3 loc_84220: mov rdi, r15 mov esi, r12d mov edx, ebp call cr_add_interval test eax, eax jz loc_841A3 jmp short loc_84272 loc_84237: movzx edx, byte ptr [rdx+r14] cmp cl, 0BFh ja short loc_84252 shl ecx, 8 add rbx, 3 add ecx, edx add ecx, 0FFFF8087h jmp short loc_841DB loc_84252: shl ecx, 10h shl edx, 8 movzx esi, byte ptr [rbx+r14+3] add rbx, 4 or esi, ecx lea ecx, [rdx+rsi] add ecx, 0FF404087h jmp loc_841DB loc_84272: push 0FFFFFFFFFFFFFFFFh pop rax jmp short loc_84279 loc_84277: xor eax, eax loc_84279: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long unicode_general_category1(int *a1, unsigned int a2) { int v2; // r13d long long v3; // rbx unsigned int v4; // ebp int v5; // r12d unsigned __int8 v6; // al int v7; // ecx int v8; // ecx unsigned int v9; // eax unsigned int i; // r12d unsigned int v12; // ecx int v13; // edx int v14; // esi int v16; // [rsp+0h] [rbp-38h] v2 = a2 & 6; v16 = (a2 >> 2) & 1; v3 = 0LL; v4 = 0; while ( v3 <= 4069 ) { v5 = v4; v6 = unicode_gc_table[v3]; v7 = v6 >> 5; if ( v7 == 7 ) { v8 = unicode_gc_table[v3 + 1]; if ( (v8 & 0x80u) != 0 ) { v13 = unicode_gc_table[v3 + 2]; if ( (unsigned __int8)v8 > 0xBFu ) { v14 = unicode_gc_table[v3 + 3]; v3 += 4LL; v7 = (v13 << 8) + ((v8 << 16) | v14) - 12566393; } else { v3 += 3LL; v7 = v13 + (v8 << 8) - 32633; } } else { v7 = v8 + 7; v3 += 2LL; } } else { ++v3; } v9 = v6 & 0x1F; v4 += v7 + 1; if ( v9 == 31 ) { if ( v2 ) { if ( v2 == 6 ) { LABEL_15: if ( (unsigned int)cr_add_interval(a1, v5, v4) ) return -1LL; } else { for ( i = v16 + v5; i < v4; i += 2 ) { if ( (unsigned int)cr_add_interval(a1, i, i + 1) ) return -1LL; } } } } else { v12 = a2; if ( _bittest((const int *)&v12, v9) ) goto LABEL_15; } } return 0LL; }
unicode_general_category1: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R15,RDI MOV R13D,ESI AND R13D,0x6 MOV dword ptr [RSP + 0x4],ESI SHR ESI,0x2 AND ESI,0x1 MOV dword ptr [RSP],ESI LEA R14,[0x194fe0] XOR EBX,EBX XOR EBP,EBP LAB_001841a3: CMP RBX,0xfe5 JG 0x00184277 MOV R12D,EBP MOVZX EAX,byte ptr [RBX + R14*0x1] MOV ECX,EAX SHR ECX,0x5 CMP ECX,0x7 JNZ 0x001841d8 LEA RDX,[RBX + 0x2] MOVZX ECX,byte ptr [RBX + R14*0x1 + 0x1] TEST CL,CL JS 0x00184237 ADD ECX,0x7 MOV RBX,RDX JMP 0x001841db LAB_001841d8: INC RBX LAB_001841db: AND EAX,0x1f LEA EBP,[R12 + RCX*0x1] INC EBP CMP EAX,0x1f JNZ 0x00184217 TEST R13D,R13D JZ 0x001841a3 CMP R13D,0x6 JZ 0x00184220 ADD R12D,dword ptr [RSP] LAB_001841f8: CMP R12D,EBP JNC 0x001841a3 LEA EDX,[R12 + 0x1] MOV RDI,R15 MOV ESI,R12D CALL 0x00183c49 ADD R12D,0x2 TEST EAX,EAX JZ 0x001841f8 JMP 0x00184272 LAB_00184217: MOV ECX,dword ptr [RSP + 0x4] BT ECX,EAX JNC 0x001841a3 LAB_00184220: MOV RDI,R15 MOV ESI,R12D MOV EDX,EBP CALL 0x00183c49 TEST EAX,EAX JZ 0x001841a3 JMP 0x00184272 LAB_00184237: MOVZX EDX,byte ptr [RDX + R14*0x1] CMP CL,0xbf JA 0x00184252 SHL ECX,0x8 ADD RBX,0x3 ADD ECX,EDX ADD ECX,0xffff8087 JMP 0x001841db LAB_00184252: SHL ECX,0x10 SHL EDX,0x8 MOVZX ESI,byte ptr [RBX + R14*0x1 + 0x3] ADD RBX,0x4 OR ESI,ECX LEA ECX,[RDX + RSI*0x1] ADD ECX,0xff404087 JMP 0x001841db LAB_00184272: PUSH -0x1 POP RAX JMP 0x00184279 LAB_00184277: XOR EAX,EAX LAB_00184279: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 unicode_general_category1(int8 param_1,uint param_2) { byte bVar1; uint uVar2; int iVar3; uint uVar4; long lVar5; long lVar6; uint uVar7; int8 local_38; local_38 = CONCAT44(param_2,param_2 >> 2) & 0xffffffff00000001; lVar5 = 0; uVar4 = 0; LAB_001841a3: do { uVar7 = uVar4; if (0xfe5 < lVar5) { return 0; } uVar4 = (uint)((byte)(&unicode_gc_table)[lVar5] >> 5); if (uVar4 == 7) { lVar6 = lVar5 + 2; bVar1 = (&DAT_00194fe1)[lVar5]; uVar4 = (uint)bVar1; if ((char)bVar1 < '\0') { if (bVar1 < 0xc0) { lVar6 = lVar5 + 3; uVar4 = (uVar4 * 0x100 + (uint)(byte)(&DAT_00194fe2)[lVar5]) - 0x7f79; } else { lVar6 = lVar5 + 4; uVar4 = ((uint)(byte)(&DAT_00194fe2)[lVar5] * 0x100 + ((uint)(byte)(&DAT_00194fe3)[lVar5] | uVar4 << 0x10)) - 0xbfbf79; } } else { uVar4 = uVar4 + 7; } } else { lVar6 = lVar5 + 1; } uVar2 = (byte)(&unicode_gc_table)[lVar5] & 0x1f; uVar4 = uVar7 + uVar4 + 1; lVar5 = lVar6; if (uVar2 == 0x1f) { if ((param_2 & 6) == 0) goto LAB_001841a3; if ((param_2 & 6) != 6) { uVar7 = uVar7 + (int)local_38; while (uVar7 < uVar4) { iVar3 = cr_add_interval(param_1,uVar7,uVar7 + 1); uVar7 = uVar7 + 2; if (iVar3 != 0) { return 0xffffffffffffffff; } } goto LAB_001841a3; } } else if ((local_38._4_4_ >> uVar2 & 1) == 0) goto LAB_001841a3; iVar3 = cr_add_interval(param_1,uVar7,uVar4); if (iVar3 != 0) { return 0xffffffffffffffff; } } while( true ); }
65,228
js_TA_cmp_generic
bluesky950520[P]quickjs/quickjs.c
static int js_TA_cmp_generic(const void *a, const void *b, void *opaque) { struct TA_sort_context *psc = opaque; JSContext *ctx = psc->ctx; uint32_t a_idx, b_idx; JSValue argv[2]; JSValue res; JSObject *p; int cmp; p = JS_VALUE_GET_OBJ(psc->arr); if (typed_array_is_oob(p)) return 0; cmp = 0; if (!psc->exception) { a_idx = *(uint32_t *)a; b_idx = *(uint32_t *)b; if (a_idx >= p->u.array.count || b_idx >= p->u.array.count) return 0; argv[0] = psc->getfun(ctx, (char *)p->u.array.u.ptr + a_idx * (size_t)psc->elt_size); argv[1] = psc->getfun(ctx, (char *)p->u.array.u.ptr + b_idx * (size_t)(psc->elt_size)); res = JS_Call(ctx, psc->cmp, JS_UNDEFINED, 2, argv); if (JS_IsException(res)) { psc->exception = 1; goto done; } if (JS_VALUE_GET_TAG(res) == JS_TAG_INT) { int val = JS_VALUE_GET_INT(res); cmp = (val > 0) - (val < 0); } else { double val; if (JS_ToFloat64Free(ctx, &val, res) < 0) { psc->exception = 1; goto done; } else { cmp = (val > 0) - (val < 0); } } if (cmp == 0) { /* make sort stable: compare array offsets */ cmp = (a_idx > b_idx) - (a_idx < b_idx); } done: JS_FreeValue(ctx, argv[0]); JS_FreeValue(ctx, argv[1]); } return cmp; }
O1
c
js_TA_cmp_generic: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movq %rdx, %r14 movq %rsi, %r12 movq %rdi, %r13 movq (%rdx), %rbx movq 0x10(%rdx), %r15 movq %r15, %rdi callq 0x396c4 xorl %ebp, %ebp testl %eax, %eax jne 0x83186 cmpl $0x0, 0x8(%r14) jne 0x83186 movl (%r13), %r13d movl (%r12), %eax movl 0x40(%r15), %ecx cmpl %ecx, %r13d setb %dl cmpl %ecx, %eax setb %cl andb %dl, %cl cmpb $0x1, %cl jne 0x83186 movl %eax, %r12d movslq 0x38(%r14), %rsi imulq %r13, %rsi addq 0x38(%r15), %rsi movq %rbx, %rdi callq *0x30(%r14) leaq 0x30(%rsp), %rbp movq %rax, (%rbp) movq %rdx, 0x8(%rbp) movslq 0x38(%r14), %rsi imulq %r12, %rsi addq 0x38(%r15), %rsi movq %rbx, %rdi callq *0x30(%r14) movq %rax, 0x10(%rbp) movq %rdx, 0x18(%rbp) movq 0x20(%r14), %rsi movq 0x28(%r14), %rdx movl $0x0, 0x20(%rsp) movq $0x3, 0x28(%rsp) movupd 0x20(%rsp), %xmm0 movupd %xmm0, (%rsp) movq %rbp, 0x10(%rsp) movl $0x2, 0x18(%rsp) movl $0x3, %r8d movq %rbx, %rdi xorl %ecx, %ecx movl $0x2, %r9d callq 0x284ca movq %rdx, %rcx testl %ecx, %ecx je 0x830d7 cmpl $0x6, %ecx jne 0x830e8 movl $0x1, 0x8(%r14) xorl %ebp, %ebp jmp 0x83160 movl %eax, %ecx sarl $0x1f, %ecx xorl %ebp, %ebp testl %eax, %eax setne %bpl orl %ecx, %ebp jmp 0x83150 cmpl $0x2, %ecx ja 0x830fc xorps %xmm0, %xmm0 cvtsi2sd %eax, %xmm0 movsd %xmm0, 0x20(%rsp) jmp 0x83106 cmpl $0x7, %ecx jne 0x8310a movq %rax, 0x20(%rsp) xorl %eax, %eax jmp 0x8311d leaq 0x20(%rsp), %rsi movq %rbx, %rdi movq %rax, %rdx callq 0x3df2f shrl $0x1f, %eax testb %al, %al je 0x8312d movl $0x1, 0x8(%r14) xorl %ebp, %ebp jmp 0x8314c movsd 0x20(%rsp), %xmm0 xorpd %xmm1, %xmm1 xorl %ebp, %ebp ucomisd %xmm1, %xmm0 seta %bpl xorl %ecx, %ecx ucomisd %xmm0, %xmm1 seta %cl subl %ecx, %ebp testb %al, %al jne 0x83160 testl %ebp, %ebp jne 0x83160 xorl %ebp, %ebp cmpl %r12d, %r13d seta %bpl sbbl $0x0, %ebp movq 0x30(%rsp), %rsi movq 0x38(%rsp), %rdx movq 0x18(%rbx), %rdi callq 0x1d8c6 movq 0x40(%rsp), %rsi movq 0x48(%rsp), %rdx movq 0x18(%rbx), %rdi callq 0x1d8c6 movl %ebp, %eax addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
js_TA_cmp_generic: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 58h mov r14, rdx mov r12, rsi mov r13, rdi mov rbx, [rdx] mov r15, [rdx+10h] mov rdi, r15 call typed_array_is_oob xor ebp, ebp test eax, eax jnz loc_83186 cmp dword ptr [r14+8], 0 jnz loc_83186 mov r13d, [r13+0] mov eax, [r12] mov ecx, [r15+40h] cmp r13d, ecx setb dl cmp eax, ecx setb cl and cl, dl cmp cl, 1 jnz loc_83186 mov r12d, eax movsxd rsi, dword ptr [r14+38h] imul rsi, r13 add rsi, [r15+38h] mov rdi, rbx call qword ptr [r14+30h] lea rbp, [rsp+88h+var_58] mov [rbp+0], rax mov [rbp+8], rdx movsxd rsi, dword ptr [r14+38h] imul rsi, r12 add rsi, [r15+38h] mov rdi, rbx call qword ptr [r14+30h] mov [rbp+10h], rax mov [rbp+18h], rdx mov rsi, [r14+20h] mov rdx, [r14+28h] mov dword ptr [rsp+88h+var_68], 0 mov qword ptr [rsp+88h+var_68+8], 3 movupd xmm0, [rsp+88h+var_68] movupd [rsp+88h+var_88], xmm0 mov [rsp+88h+var_78], rbp mov [rsp+88h+var_70], 2 mov r8d, 3 mov rdi, rbx xor ecx, ecx mov r9d, 2 call JS_CallInternal mov rcx, rdx test ecx, ecx jz short loc_830D7 cmp ecx, 6 jnz short loc_830E8 mov dword ptr [r14+8], 1 xor ebp, ebp jmp loc_83160 loc_830D7: mov ecx, eax sar ecx, 1Fh xor ebp, ebp test eax, eax setnz bpl or ebp, ecx jmp short loc_83150 loc_830E8: cmp ecx, 2 ja short loc_830FC xorps xmm0, xmm0 cvtsi2sd xmm0, eax movsd qword ptr [rsp+88h+var_68], xmm0 jmp short loc_83106 loc_830FC: cmp ecx, 7 jnz short loc_8310A mov qword ptr [rsp+88h+var_68], rax loc_83106: xor eax, eax jmp short loc_8311D loc_8310A: lea rsi, [rsp+88h+var_68] mov rdi, rbx mov rdx, rax call __JS_ToFloat64Free shr eax, 1Fh loc_8311D: test al, al jz short loc_8312D mov dword ptr [r14+8], 1 xor ebp, ebp jmp short loc_8314C loc_8312D: movsd xmm0, qword ptr [rsp+88h+var_68] xorpd xmm1, xmm1 xor ebp, ebp ucomisd xmm0, xmm1 setnbe bpl xor ecx, ecx ucomisd xmm1, xmm0 setnbe cl sub ebp, ecx loc_8314C: test al, al jnz short loc_83160 loc_83150: test ebp, ebp jnz short loc_83160 xor ebp, ebp cmp r13d, r12d setnbe bpl sbb ebp, 0 loc_83160: mov rsi, [rsp+88h+var_58] mov rdx, [rsp+88h+var_50] mov rdi, [rbx+18h] call JS_FreeValueRT mov rsi, [rsp+88h+var_48] mov rdx, [rsp+88h+var_40] mov rdi, [rbx+18h] call JS_FreeValueRT loc_83186: mov eax, ebp add rsp, 58h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long js_TA_cmp_generic( unsigned int *a1, _DWORD *a2, long long a3, double a4, __m128 a5, __m128 a6, __m128 a7, double a8, double a9, __m128 a10, __m128 a11) { long long v12; // rbx long long v13; // r15 unsigned int v14; // ebp long long v15; // r13 long long v16; // r12 long long v17; // rdx long long v18; // rdx long long v19; // rsi long long v20; // rdx __m128 v21; // xmm4 __m128 v22; // xmm5 unsigned long long v23; // rax long long v24; // rdx unsigned int v25; // eax __m128 v27; // [rsp+20h] [rbp-68h] BYREF _DWORD *v28; // [rsp+30h] [rbp-58h] BYREF long long v29; // [rsp+38h] [rbp-50h] _DWORD *v30; // [rsp+40h] [rbp-48h] long long v31; // [rsp+48h] [rbp-40h] v12 = *(_QWORD *)a3; v13 = *(_QWORD *)(a3 + 16); v14 = 0; if ( !typed_array_is_oob(v13) && !*(_DWORD *)(a3 + 8) ) { v15 = *a1; if ( (unsigned int)v15 < *(_DWORD *)(v13 + 64) && *a2 < *(_DWORD *)(v13 + 64) ) { v16 = (unsigned int)*a2; v28 = (_DWORD *)(*(long long ( **)(long long, long long))(a3 + 48))( v12, *(_QWORD *)(v13 + 56) + v15 * *(int *)(a3 + 56)); v29 = v17; v30 = (_DWORD *)(*(long long ( **)(long long, long long))(a3 + 48))( v12, *(_QWORD *)(v13 + 56) + v16 * *(int *)(a3 + 56)); v31 = v18; v19 = *(_QWORD *)(a3 + 32); v20 = *(_QWORD *)(a3 + 40); v27.m128_i32[0] = 0; v27.m128_u64[1] = 3LL; v23 = JS_CallInternal(v12, v19, v20, 0LL, 3LL, 2LL, v27, a5, a6, a7, v21, v22, a10, a11, 0, 3, (long long)&v28, 2u); if ( !(_DWORD)v24 ) { v14 = ((int)v23 >> 31) | ((_DWORD)v23 != 0); LABEL_18: if ( !v14 ) v14 = (__PAIR64__((unsigned int)v15 > (unsigned int)v16, v15) - (unsigned int)v16) >> 32; goto LABEL_20; } if ( (_DWORD)v24 == 6 ) { *(_DWORD *)(a3 + 8) = 1; v14 = 0; LABEL_20: JS_FreeValueRT(*(_QWORD *)(v12 + 24), v28, v29); JS_FreeValueRT(*(_QWORD *)(v12 + 24), v30, v31); return v14; } if ( (unsigned int)v24 > 2 ) { if ( (_DWORD)v24 != 7 ) { v25 = (unsigned int)_JS_ToFloat64Free(v12, (long long *)&v27, v23, v24) >> 31; LABEL_14: if ( (_BYTE)v25 ) { *(_DWORD *)(a3 + 8) = 1; v14 = 0; } else { v14 = (*(double *)v27.m128_u64 > 0.0) - (*(double *)v27.m128_u64 < 0.0); } if ( (_BYTE)v25 ) goto LABEL_20; goto LABEL_18; } v27.m128_u64[0] = v23; } else { *(double *)v27.m128_u64 = (double)(int)v23; } LOBYTE(v25) = 0; goto LABEL_14; } } return v14; }
js_TA_cmp_generic: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x58 MOV R14,RDX MOV R12,RSI MOV R13,RDI MOV RBX,qword ptr [RDX] MOV R15,qword ptr [RDX + 0x10] MOV RDI,R15 CALL 0x001396c4 XOR EBP,EBP TEST EAX,EAX JNZ 0x00183186 CMP dword ptr [R14 + 0x8],0x0 JNZ 0x00183186 MOV R13D,dword ptr [R13] MOV EAX,dword ptr [R12] MOV ECX,dword ptr [R15 + 0x40] CMP R13D,ECX SETC DL CMP EAX,ECX SETC CL AND CL,DL CMP CL,0x1 JNZ 0x00183186 MOV R12D,EAX MOVSXD RSI,dword ptr [R14 + 0x38] IMUL RSI,R13 ADD RSI,qword ptr [R15 + 0x38] MOV RDI,RBX CALL qword ptr [R14 + 0x30] LEA RBP,[RSP + 0x30] MOV qword ptr [RBP],RAX MOV qword ptr [RBP + 0x8],RDX MOVSXD RSI,dword ptr [R14 + 0x38] IMUL RSI,R12 ADD RSI,qword ptr [R15 + 0x38] MOV RDI,RBX CALL qword ptr [R14 + 0x30] MOV qword ptr [RBP + 0x10],RAX MOV qword ptr [RBP + 0x18],RDX MOV RSI,qword ptr [R14 + 0x20] MOV RDX,qword ptr [R14 + 0x28] MOV dword ptr [RSP + 0x20],0x0 MOV qword ptr [RSP + 0x28],0x3 MOVUPD XMM0,xmmword ptr [RSP + 0x20] MOVUPD xmmword ptr [RSP],XMM0 MOV qword ptr [RSP + 0x10],RBP MOV dword ptr [RSP + 0x18],0x2 MOV R8D,0x3 MOV RDI,RBX XOR ECX,ECX MOV R9D,0x2 CALL 0x001284ca MOV RCX,RDX TEST ECX,ECX JZ 0x001830d7 CMP ECX,0x6 JNZ 0x001830e8 MOV dword ptr [R14 + 0x8],0x1 XOR EBP,EBP JMP 0x00183160 LAB_001830d7: MOV ECX,EAX SAR ECX,0x1f XOR EBP,EBP TEST EAX,EAX SETNZ BPL OR EBP,ECX JMP 0x00183150 LAB_001830e8: CMP ECX,0x2 JA 0x001830fc XORPS XMM0,XMM0 CVTSI2SD XMM0,EAX MOVSD qword ptr [RSP + 0x20],XMM0 JMP 0x00183106 LAB_001830fc: CMP ECX,0x7 JNZ 0x0018310a MOV qword ptr [RSP + 0x20],RAX LAB_00183106: XOR EAX,EAX JMP 0x0018311d LAB_0018310a: LEA RSI,[RSP + 0x20] MOV RDI,RBX MOV RDX,RAX CALL 0x0013df2f SHR EAX,0x1f LAB_0018311d: TEST AL,AL JZ 0x0018312d MOV dword ptr [R14 + 0x8],0x1 XOR EBP,EBP JMP 0x0018314c LAB_0018312d: MOVSD XMM0,qword ptr [RSP + 0x20] XORPD XMM1,XMM1 XOR EBP,EBP UCOMISD XMM0,XMM1 SETA BPL XOR ECX,ECX UCOMISD XMM1,XMM0 SETA CL SUB EBP,ECX LAB_0018314c: TEST AL,AL JNZ 0x00183160 LAB_00183150: TEST EBP,EBP JNZ 0x00183160 XOR EBP,EBP CMP R13D,R12D SETA BPL SBB EBP,0x0 LAB_00183160: MOV RSI,qword ptr [RSP + 0x30] MOV RDX,qword ptr [RSP + 0x38] MOV RDI,qword ptr [RBX + 0x18] CALL 0x0011d8c6 MOV RSI,qword ptr [RSP + 0x40] MOV RDX,qword ptr [RSP + 0x48] MOV RDI,qword ptr [RBX + 0x18] CALL 0x0011d8c6 LAB_00183186: MOV EAX,EBP ADD RSP,0x58 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
uint js_TA_cmp_generic(uint *param_1,uint *param_2,long *param_3) { uint uVar1; uint uVar2; long lVar3; long lVar4; double dVar5; byte bVar6; int iVar7; byte extraout_var; uint uVar8; int1 auVar9 [12]; int8 local_68; int8 uStack_60; int1 local_58 [16]; int1 local_48 [16]; lVar3 = *param_3; lVar4 = param_3[2]; iVar7 = typed_array_is_oob(lVar4); if (iVar7 != 0) { return 0; } if ((int)param_3[1] != 0) { return 0; } uVar1 = *param_1; uVar2 = *param_2; if (*(uint *)(lVar4 + 0x40) <= uVar2 || *(uint *)(lVar4 + 0x40) <= uVar1) { return 0; } local_58 = (*(code *)param_3[6]) (lVar3,(long)(int)param_3[7] * (ulong)uVar1 + *(long *)(lVar4 + 0x38)); local_48 = (*(code *)param_3[6]) (lVar3,(long)(int)param_3[7] * (ulong)uVar2 + *(long *)(lVar4 + 0x38)); local_68 = (double)((ulong)local_68._4_4_ << 0x20); uStack_60 = 3; auVar9 = JS_CallInternal(lVar3,param_3[4],param_3[5],0,3,2,0,3,local_58,2); uVar8 = auVar9._8_4_; iVar7 = auVar9._0_4_; if (uVar8 == 0) { uVar8 = (uint)(iVar7 != 0) | iVar7 >> 0x1f; } else { if (uVar8 == 6) { *(int4 *)(param_3 + 1) = 1; uVar8 = 0; goto LAB_00183160; } if (uVar8 < 3) { dVar5 = (double)iVar7; LAB_00183106: local_68 = dVar5; bVar6 = 0; } else { dVar5 = auVar9._0_8_; if (uVar8 == 7) goto LAB_00183106; __JS_ToFloat64Free(lVar3,&local_68,auVar9._0_8_); bVar6 = extraout_var >> 7; } if (bVar6 != 0) { *(int4 *)(param_3 + 1) = 1; uVar8 = 0; goto LAB_00183160; } uVar8 = (uint)(0.0 < local_68) - (uint)(local_68 < 0.0); } if (uVar8 == 0) { uVar8 = (uint)(uVar2 < uVar1) - (uint)(uVar1 < uVar2); } LAB_00183160: JS_FreeValueRT(*(int8 *)(lVar3 + 0x18),local_58._0_8_,local_58._8_8_); JS_FreeValueRT(*(int8 *)(lVar3 + 0x18),local_48._0_8_,local_48._8_8_); return uVar8; }
65,229
js_TA_cmp_generic
bluesky950520[P]quickjs/quickjs.c
static int js_TA_cmp_generic(const void *a, const void *b, void *opaque) { struct TA_sort_context *psc = opaque; JSContext *ctx = psc->ctx; uint32_t a_idx, b_idx; JSValue argv[2]; JSValue res; JSObject *p; int cmp; p = JS_VALUE_GET_OBJ(psc->arr); if (typed_array_is_oob(p)) return 0; cmp = 0; if (!psc->exception) { a_idx = *(uint32_t *)a; b_idx = *(uint32_t *)b; if (a_idx >= p->u.array.count || b_idx >= p->u.array.count) return 0; argv[0] = psc->getfun(ctx, (char *)p->u.array.u.ptr + a_idx * (size_t)psc->elt_size); argv[1] = psc->getfun(ctx, (char *)p->u.array.u.ptr + b_idx * (size_t)(psc->elt_size)); res = JS_Call(ctx, psc->cmp, JS_UNDEFINED, 2, argv); if (JS_IsException(res)) { psc->exception = 1; goto done; } if (JS_VALUE_GET_TAG(res) == JS_TAG_INT) { int val = JS_VALUE_GET_INT(res); cmp = (val > 0) - (val < 0); } else { double val; if (JS_ToFloat64Free(ctx, &val, res) < 0) { psc->exception = 1; goto done; } else { cmp = (val > 0) - (val < 0); } } if (cmp == 0) { /* make sort stable: compare array offsets */ cmp = (a_idx > b_idx) - (a_idx < b_idx); } done: JS_FreeValue(ctx, argv[0]); JS_FreeValue(ctx, argv[1]); } return cmp; }
O2
c
js_TA_cmp_generic: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %rdx, %r14 movq %rsi, %r12 movq %rdi, %r13 movq (%rdx), %rbx movq 0x10(%rdx), %r15 movq %r15, %rdi callq 0x32836 xorl %ebp, %ebp testl %eax, %eax jne 0x6e081 cmpl $0x0, 0x8(%r14) jne 0x6e081 movl (%r13), %r13d movl (%r12), %eax movl 0x40(%r15), %ecx cmpl %ecx, %r13d setb %dl cmpl %ecx, %eax setb %cl andb %dl, %cl cmpb $0x1, %cl jne 0x6e081 movl %eax, %r12d movslq 0x38(%r14), %rsi imulq %r13, %rsi addq 0x38(%r15), %rsi movq %rbx, %rdi callq *0x30(%r14) leaq 0x10(%rsp), %rbp movq %rax, (%rbp) movq %rdx, 0x8(%rbp) movslq 0x38(%r14), %rsi imulq %r12, %rsi addq 0x38(%r15), %rsi movq %rbx, %rdi callq *0x30(%r14) movq %rax, 0x10(%rbp) movq %rdx, 0x18(%rbp) movq 0x20(%r14), %rsi movq 0x28(%r14), %rdx movq %rbp, (%rsp) pushq $0x3 popq %r8 pushq $0x2 popq %r9 movq %rbx, %rdi xorl %ecx, %ecx callq 0x21eb6 movq %rdx, %rcx testl %ecx, %ecx je 0x6e03e cmpl $0x6, %ecx je 0x6e032 leaq 0x8(%rsp), %rsi movq %rbx, %rdi movq %rax, %rdx callq 0x21288 testl %eax, %eax js 0x6e032 movsd 0x8(%rsp), %xmm0 xorpd %xmm1, %xmm1 xorl %ebp, %ebp ucomisd %xmm1, %xmm0 seta %bpl xorl %eax, %eax ucomisd %xmm0, %xmm1 seta %al subl %eax, %ebp jmp 0x6e04d movl $0x1, 0x8(%r14) xorl %ebp, %ebp jmp 0x6e05d movl %eax, %ecx sarl $0x1f, %ecx xorl %ebp, %ebp testl %eax, %eax setne %bpl orl %ecx, %ebp testl %ebp, %ebp jne 0x6e05d xorl %ebp, %ebp cmpl %r12d, %r13d seta %bpl sbbl $0x0, %ebp movq 0x10(%rsp), %rsi movq 0x18(%rsp), %rdx movq %rbx, %rdi callq 0x1801e movq 0x20(%rsp), %rsi movq 0x28(%rsp), %rdx movq %rbx, %rdi callq 0x1801e movl %ebp, %eax addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
js_TA_cmp_generic: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov r14, rdx mov r12, rsi mov r13, rdi mov rbx, [rdx] mov r15, [rdx+10h] mov rdi, r15 call typed_array_is_oob xor ebp, ebp test eax, eax jnz loc_6E081 cmp dword ptr [r14+8], 0 jnz loc_6E081 mov r13d, [r13+0] mov eax, [r12] mov ecx, [r15+40h] cmp r13d, ecx setb dl cmp eax, ecx setb cl and cl, dl cmp cl, 1 jnz loc_6E081 mov r12d, eax movsxd rsi, dword ptr [r14+38h] imul rsi, r13 add rsi, [r15+38h] mov rdi, rbx call qword ptr [r14+30h] lea rbp, [rsp+68h+var_58] mov [rbp+0], rax mov [rbp+8], rdx movsxd rsi, dword ptr [r14+38h] imul rsi, r12 add rsi, [r15+38h] mov rdi, rbx call qword ptr [r14+30h] mov [rbp+10h], rax mov [rbp+18h], rdx mov rsi, [r14+20h] mov rdx, [r14+28h] mov [rsp+68h+var_68], rbp push 3 pop r8 push 2 pop r9 mov rdi, rbx xor ecx, ecx call JS_Call mov rcx, rdx test ecx, ecx jz short loc_6E03E cmp ecx, 6 jz short loc_6E032 lea rsi, [rsp+68h+var_60] mov rdi, rbx mov rdx, rax call JS_ToFloat64Free test eax, eax js short loc_6E032 movsd xmm0, [rsp+68h+var_60] xorpd xmm1, xmm1 xor ebp, ebp ucomisd xmm0, xmm1 setnbe bpl xor eax, eax ucomisd xmm1, xmm0 setnbe al sub ebp, eax jmp short loc_6E04D loc_6E032: mov dword ptr [r14+8], 1 xor ebp, ebp jmp short loc_6E05D loc_6E03E: mov ecx, eax sar ecx, 1Fh xor ebp, ebp test eax, eax setnz bpl or ebp, ecx loc_6E04D: test ebp, ebp jnz short loc_6E05D xor ebp, ebp cmp r13d, r12d setnbe bpl sbb ebp, 0 loc_6E05D: mov rsi, [rsp+68h+var_58] mov rdx, [rsp+68h+var_50] mov rdi, rbx call JS_FreeValue mov rsi, [rsp+68h+var_48] mov rdx, [rsp+68h+var_40] mov rdi, rbx call JS_FreeValue loc_6E081: mov eax, ebp add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long js_TA_cmp_generic(unsigned int *a1, _DWORD *a2, long long a3) { const char *v4; // rbx long long v5; // r15 unsigned int v6; // ebp long long v7; // r13 long long v8; // r12 long long v9; // rdx long long v10; // rdx long long v11; // rax long long v12; // rdx double v14; // [rsp+8h] [rbp-60h] BYREF long long v15; // [rsp+10h] [rbp-58h] BYREF long long v16; // [rsp+18h] [rbp-50h] long long v17; // [rsp+20h] [rbp-48h] long long v18; // [rsp+28h] [rbp-40h] v4 = *(const char **)a3; v5 = *(_QWORD *)(a3 + 16); v6 = 0; if ( !typed_array_is_oob(v5) && !*(_DWORD *)(a3 + 8) ) { v7 = *a1; if ( (unsigned int)v7 < *(_DWORD *)(v5 + 64) && *a2 < *(_DWORD *)(v5 + 64) ) { v8 = (unsigned int)*a2; v15 = (*(long long ( **)(const char *, long long))(a3 + 48))( v4, *(_QWORD *)(v5 + 56) + v7 * *(int *)(a3 + 56)); v16 = v9; v17 = (*(long long ( **)(const char *, long long))(a3 + 48))( v4, *(_QWORD *)(v5 + 56) + v8 * *(int *)(a3 + 56)); v18 = v10; v11 = JS_Call((int)v4, *(_QWORD *)(a3 + 32), *(_QWORD *)(a3 + 40), 0, 3, 2, (long long)&v15); if ( (_DWORD)v12 ) { if ( (_DWORD)v12 == 6 || (int)JS_ToFloat64Free(v4, &v14, v11, v12) < 0 ) { *(_DWORD *)(a3 + 8) = 1; v6 = 0; LABEL_12: JS_FreeValue((long long)v4, v15, v16); JS_FreeValue((long long)v4, v17, v18); return v6; } v6 = (v14 > 0.0) - (v14 < 0.0); } else { v6 = ((int)v11 >> 31) | ((_DWORD)v11 != 0); } if ( !v6 ) v6 = (__PAIR64__((unsigned int)v7 > (unsigned int)v8, v7) - (unsigned int)v8) >> 32; goto LABEL_12; } } return v6; }
js_TA_cmp_generic: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV R14,RDX MOV R12,RSI MOV R13,RDI MOV RBX,qword ptr [RDX] MOV R15,qword ptr [RDX + 0x10] MOV RDI,R15 CALL 0x00132836 XOR EBP,EBP TEST EAX,EAX JNZ 0x0016e081 CMP dword ptr [R14 + 0x8],0x0 JNZ 0x0016e081 MOV R13D,dword ptr [R13] MOV EAX,dword ptr [R12] MOV ECX,dword ptr [R15 + 0x40] CMP R13D,ECX SETC DL CMP EAX,ECX SETC CL AND CL,DL CMP CL,0x1 JNZ 0x0016e081 MOV R12D,EAX MOVSXD RSI,dword ptr [R14 + 0x38] IMUL RSI,R13 ADD RSI,qword ptr [R15 + 0x38] MOV RDI,RBX CALL qword ptr [R14 + 0x30] LEA RBP,[RSP + 0x10] MOV qword ptr [RBP],RAX MOV qword ptr [RBP + 0x8],RDX MOVSXD RSI,dword ptr [R14 + 0x38] IMUL RSI,R12 ADD RSI,qword ptr [R15 + 0x38] MOV RDI,RBX CALL qword ptr [R14 + 0x30] MOV qword ptr [RBP + 0x10],RAX MOV qword ptr [RBP + 0x18],RDX MOV RSI,qword ptr [R14 + 0x20] MOV RDX,qword ptr [R14 + 0x28] MOV qword ptr [RSP],RBP PUSH 0x3 POP R8 PUSH 0x2 POP R9 MOV RDI,RBX XOR ECX,ECX CALL 0x00121eb6 MOV RCX,RDX TEST ECX,ECX JZ 0x0016e03e CMP ECX,0x6 JZ 0x0016e032 LEA RSI,[RSP + 0x8] MOV RDI,RBX MOV RDX,RAX CALL 0x00121288 TEST EAX,EAX JS 0x0016e032 MOVSD XMM0,qword ptr [RSP + 0x8] XORPD XMM1,XMM1 XOR EBP,EBP UCOMISD XMM0,XMM1 SETA BPL XOR EAX,EAX UCOMISD XMM1,XMM0 SETA AL SUB EBP,EAX JMP 0x0016e04d LAB_0016e032: MOV dword ptr [R14 + 0x8],0x1 XOR EBP,EBP JMP 0x0016e05d LAB_0016e03e: MOV ECX,EAX SAR ECX,0x1f XOR EBP,EBP TEST EAX,EAX SETNZ BPL OR EBP,ECX LAB_0016e04d: TEST EBP,EBP JNZ 0x0016e05d XOR EBP,EBP CMP R13D,R12D SETA BPL SBB EBP,0x0 LAB_0016e05d: MOV RSI,qword ptr [RSP + 0x10] MOV RDX,qword ptr [RSP + 0x18] MOV RDI,RBX CALL 0x0011801e MOV RSI,qword ptr [RSP + 0x20] MOV RDX,qword ptr [RSP + 0x28] MOV RDI,RBX CALL 0x0011801e LAB_0016e081: MOV EAX,EBP ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
uint js_TA_cmp_generic(uint *param_1,uint *param_2,int8 *param_3) { uint uVar1; uint uVar2; int8 uVar3; long lVar4; int iVar5; uint uVar6; int1 auVar7 [12]; double local_60; int1 local_58 [16]; int1 local_48 [16]; uVar3 = *param_3; lVar4 = param_3[2]; iVar5 = typed_array_is_oob(lVar4); if (iVar5 != 0) { return 0; } if (*(int *)(param_3 + 1) != 0) { return 0; } uVar1 = *param_1; uVar2 = *param_2; if (*(uint *)(lVar4 + 0x40) <= uVar2 || *(uint *)(lVar4 + 0x40) <= uVar1) { return 0; } local_58 = (*(code *)param_3[6]) (uVar3,(long)*(int *)(param_3 + 7) * (ulong)uVar1 + *(long *)(lVar4 + 0x38)); local_48 = (*(code *)param_3[6]) (uVar3,(long)*(int *)(param_3 + 7) * (ulong)uVar2 + *(long *)(lVar4 + 0x38)); auVar7 = JS_Call(uVar3,param_3[4],param_3[5],0,3,2,local_58); if (auVar7._8_4_ == 0) { uVar6 = (uint)(auVar7._0_4_ != 0) | auVar7._0_4_ >> 0x1f; LAB_0016e04d: if (uVar6 == 0) { uVar6 = (uint)(uVar2 < uVar1) - (uint)(uVar1 < uVar2); } } else { if (auVar7._8_4_ != 6) { iVar5 = JS_ToFloat64Free(uVar3,&local_60,auVar7._0_8_); if (-1 < iVar5) { uVar6 = (uint)(0.0 < local_60) - (uint)(local_60 < 0.0); goto LAB_0016e04d; } } *(int4 *)(param_3 + 1) = 1; uVar6 = 0; } JS_FreeValue(uVar3,local_58._0_8_,local_58._8_8_); JS_FreeValue(uVar3,local_48._0_8_,local_48._8_8_); return uVar6; }
65,230
LefDefParser::lefiVia::yh(int, int) const
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiVia.cpp
double lefiVia::yh(int layerNum, int rectNum) const { lefiViaLayer *vl; char msg[160]; if (layerNum < 0 || layerNum >= numLayers_) { sprintf(msg, "ERROR (LEFPARS-1421): The layer number %d given for the VIA LAYER is invalid.\nValid number is from 0 to %d", layerNum, numLayers_); lefiError(0, 1421, msg); return 0; } vl = layers_[layerNum]; return vl->yh(rectNum); }
O3
cpp
LefDefParser::lefiVia::yh(int, int) const: movl %esi, %eax testl %esi, %esi setns %sil movl 0x48(%rdi), %ecx cmpl %eax, %ecx setg %r8b testb %r8b, %sil je 0xf531 movq 0x50(%rdi), %rcx movl %eax, %eax movq (%rcx,%rax,8), %rdi movl %edx, %esi jmp 0xe63a pushq %rbx subq $0xa0, %rsp leaq 0x4af88(%rip), %rsi # 0x5a4c8 movq %rsp, %rbx movq %rbx, %rdi movl %eax, %edx xorl %eax, %eax callq 0x2050 xorl %edi, %edi movl $0x58d, %esi # imm = 0x58D movq %rbx, %rdx callq 0x33d78 xorps %xmm0, %xmm0 addq $0xa0, %rsp popq %rbx retq
_ZNK12LefDefParser7lefiVia2yhEii: mov eax, esi test esi, esi setns sil mov ecx, [rdi+48h] cmp ecx, eax setnle r8b test sil, r8b jz short loc_F531 mov rcx, [rdi+50h] mov eax, eax mov rdi, [rcx+rax*8]; this mov esi, edx; int jmp _ZN12LefDefParser12lefiViaLayer2yhEi; LefDefParser::lefiViaLayer::yh(int) loc_F531: push rbx sub rsp, 0A0h lea rsi, aErrorLefpars14_1; "ERROR (LEFPARS-1421): The layer number "... mov rbx, rsp mov rdi, rbx mov edx, eax xor eax, eax call _sprintf xor edi, edi; this mov esi, 58Dh; int mov rdx, rbx; int call _ZN12LefDefParser9lefiErrorEiiPKc; LefDefParser::lefiError(int,int,char const*) xorps xmm0, xmm0 add rsp, 0A0h pop rbx retn
double LefDefParser::lefiVia::yh(LefDefParser::lefiVia *this, unsigned int a2, unsigned int a3) { const char *v4; // rcx _BYTE v5[168]; // [rsp-A8h] [rbp-A8h] BYREF if ( *((_DWORD *)this + 18) > (int)a2 && (a2 & 0x80000000) == 0 ) return LefDefParser::lefiViaLayer::yh(*(LefDefParser::lefiViaLayer **)(*((_QWORD *)this + 10) + 8LL * a2), a3); sprintf( v5, "ERROR (LEFPARS-1421): The layer number %d given for the VIA LAYER is invalid.\nValid number is from 0 to %d", a2); LefDefParser::lefiError(0LL, 1421, (int)v5, v4); return 0.0; }
yh: MOV EAX,ESI TEST ESI,ESI SETNS SIL MOV ECX,dword ptr [RDI + 0x48] CMP ECX,EAX SETG R8B TEST SIL,R8B JZ 0x0010f531 MOV RCX,qword ptr [RDI + 0x50] MOV EAX,EAX MOV RDI,qword ptr [RCX + RAX*0x8] MOV ESI,EDX JMP 0x0010e63a LAB_0010f531: PUSH RBX SUB RSP,0xa0 LEA RSI,[0x15a4c8] MOV RBX,RSP MOV RDI,RBX MOV EDX,EAX XOR EAX,EAX CALL 0x00102050 XOR EDI,EDI MOV ESI,0x58d MOV RDX,RBX CALL 0x00133d78 XORPS XMM0,XMM0 ADD RSP,0xa0 POP RBX RET
/* LefDefParser::lefiVia::yh(int, int) const */ int8 __thiscall LefDefParser::lefiVia::yh(lefiVia *this,int param_1,int param_2) { int8 uVar1; char acStack_a8 [160]; if (-1 < param_1 && param_1 < *(int *)(this + 0x48)) { uVar1 = lefiViaLayer::yh(*(lefiViaLayer **)(*(long *)(this + 0x50) + (ulong)(uint)param_1 * 8), param_2); return uVar1; } sprintf(acStack_a8, "ERROR (LEFPARS-1421): The layer number %d given for the VIA LAYER is invalid.\nValid number is from 0 to %d" ,(ulong)(uint)param_1); lefiError(0,0x58d,acStack_a8); return 0; }
65,231
JS_ThrowPlainError
bluesky950520[P]quickjs/quickjs.c
JSValue __attribute__((format(printf, 2, 3))) JS_ThrowPlainError(JSContext *ctx, const char *fmt, ...) { JSValue val; va_list ap; va_start(ap, fmt); val = JS_ThrowError(ctx, JS_PLAIN_ERROR, fmt, ap); va_end(ap); return val; }
O1
c
JS_ThrowPlainError: subq $0xd8, %rsp movq %rsi, %r10 leaq 0x20(%rsp), %rsi movq %rdx, 0x10(%rsi) movq %rcx, 0x18(%rsi) movq %r8, 0x20(%rsi) movq %r9, 0x28(%rsi) testb %al, %al je 0x21800 movaps %xmm0, 0x50(%rsp) movaps %xmm1, 0x60(%rsp) movaps %xmm2, 0x70(%rsp) movaps %xmm3, 0x80(%rsp) movaps %xmm4, 0x90(%rsp) movaps %xmm5, 0xa0(%rsp) movaps %xmm6, 0xb0(%rsp) movaps %xmm7, 0xc0(%rsp) movq %rsp, %rcx movq %rsi, 0x10(%rcx) leaq 0xe0(%rsp), %rax movq %rax, 0x8(%rcx) movabsq $0x3000000010, %rax # imm = 0x3000000010 movq %rax, (%rcx) movl $0x8, %esi movq %r10, %rdx callq 0x2183c movl $0x6, %edx xorl %eax, %eax addq $0xd8, %rsp retq
JS_ThrowPlainError: sub rsp, 0D8h mov r10, rsi lea rsi, [rsp+0D8h+var_B8] mov [rsi+10h], rdx mov [rsi+18h], rcx mov [rsi+20h], r8 mov [rsi+28h], r9 test al, al jz short loc_21800 movaps [rsp+0D8h+var_88], xmm0 movaps [rsp+0D8h+var_78], xmm1 movaps [rsp+0D8h+var_68], xmm2 movaps [rsp+0D8h+var_58], xmm3 movaps [rsp+0D8h+var_48], xmm4 movaps [rsp+0D8h+var_38], xmm5 movaps [rsp+0D8h+var_28], xmm6 movaps [rsp+0D8h+var_18], xmm7 loc_21800: mov rcx, rsp mov [rcx+10h], rsi lea rax, [rsp+0D8h+arg_0] mov [rcx+8], rax mov rax, 3000000010h mov [rcx], rax mov esi, 8 mov rdx, r10 call JS_ThrowError mov edx, 6 xor eax, eax add rsp, 0D8h retn
long long JS_ThrowPlainError( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14, char a15) { _QWORD v16[4]; // [rsp+0h] [rbp-D8h] BYREF char v17; // [rsp+20h] [rbp-B8h] BYREF long long v18; // [rsp+30h] [rbp-A8h] long long v19; // [rsp+38h] [rbp-A0h] long long v20; // [rsp+40h] [rbp-98h] long long v21; // [rsp+48h] [rbp-90h] __m128 v22; // [rsp+50h] [rbp-88h] __m128 v23; // [rsp+60h] [rbp-78h] __m128 v24; // [rsp+70h] [rbp-68h] __m128 v25; // [rsp+80h] [rbp-58h] __m128 v26; // [rsp+90h] [rbp-48h] __m128 v27; // [rsp+A0h] [rbp-38h] __m128 v28; // [rsp+B0h] [rbp-28h] __m128 v29; // [rsp+C0h] [rbp-18h] v22 = a7; v23 = a8; v24 = a9; v25 = a10; v26 = a11; v27 = a12; v28 = a13; v29 = a14; v18 = a3; v19 = a4; v20 = a5; v21 = a6; v16[2] = &v17; v16[1] = &a15; v16[0] = 0x3000000010LL; ((void ( *)(long long, long long, long long, _QWORD *, long long, long long))JS_ThrowError)(a1, 8LL, a2, v16, a5, a6); return 0LL; }
JS_ThrowPlainError: SUB RSP,0xd8 MOV R10,RSI LEA RSI,[RSP + 0x20] MOV qword ptr [RSI + 0x10],RDX MOV qword ptr [RSI + 0x18],RCX MOV qword ptr [RSI + 0x20],R8 MOV qword ptr [RSI + 0x28],R9 TEST AL,AL JZ 0x00121800 MOVAPS xmmword ptr [RSP + 0x50],XMM0 MOVAPS xmmword ptr [RSP + 0x60],XMM1 MOVAPS xmmword ptr [RSP + 0x70],XMM2 MOVAPS xmmword ptr [RSP + 0x80],XMM3 MOVAPS xmmword ptr [RSP + 0x90],XMM4 MOVAPS xmmword ptr [RSP + 0xa0],XMM5 MOVAPS xmmword ptr [RSP + 0xb0],XMM6 MOVAPS xmmword ptr [RSP + 0xc0],XMM7 LAB_00121800: MOV RCX,RSP MOV qword ptr [RCX + 0x10],RSI LEA RAX,[RSP + 0xe0] MOV qword ptr [RCX + 0x8],RAX MOV RAX,0x3000000010 MOV qword ptr [RCX],RAX MOV ESI,0x8 MOV RDX,R10 CALL 0x0012183c MOV EDX,0x6 XOR EAX,EAX ADD RSP,0xd8 RET
int1 [16] JS_ThrowPlainError(int8 param_1,int8 param_2) { JS_ThrowError(param_1,8,param_2); return ZEXT816(6) << 0x40; }
65,232
JS_ThrowPlainError
bluesky950520[P]quickjs/quickjs.c
JSValue __attribute__((format(printf, 2, 3))) JS_ThrowPlainError(JSContext *ctx, const char *fmt, ...) { JSValue val; va_list ap; va_start(ap, fmt); val = JS_ThrowError(ctx, JS_PLAIN_ERROR, fmt, ap); va_end(ap); return val; }
O2
c
JS_ThrowPlainError: subq $0xd8, %rsp movq %rsi, %r10 leaq 0x20(%rsp), %rsi movq %rdx, 0x10(%rsi) movq %rcx, 0x18(%rsi) movq %r8, 0x20(%rsi) movq %r9, 0x28(%rsi) testb %al, %al je 0x1b99d movaps %xmm0, 0x50(%rsp) movaps %xmm1, 0x60(%rsp) movaps %xmm2, 0x70(%rsp) movaps %xmm3, 0x80(%rsp) movaps %xmm4, 0x90(%rsp) movaps %xmm5, 0xa0(%rsp) movaps %xmm6, 0xb0(%rsp) movaps %xmm7, 0xc0(%rsp) movq %rsp, %rcx movq %rsi, 0x10(%rcx) leaq 0xe0(%rsp), %rax movq %rax, 0x8(%rcx) movabsq $0x3000000010, %rax # imm = 0x3000000010 movq %rax, (%rcx) pushq $0x8 popq %rsi movq %r10, %rdx callq 0x1b9d5 pushq $0x6 popq %rdx xorl %eax, %eax addq $0xd8, %rsp retq
JS_ThrowPlainError: sub rsp, 0D8h mov r10, rsi lea rsi, [rsp+0D8h+var_B8] mov [rsi+10h], rdx mov [rsi+18h], rcx mov [rsi+20h], r8 mov [rsi+28h], r9 test al, al jz short loc_1B99D movaps [rsp+0D8h+var_88], xmm0 movaps [rsp+0D8h+var_78], xmm1 movaps [rsp+0D8h+var_68], xmm2 movaps [rsp+0D8h+var_58], xmm3 movaps [rsp+0D8h+var_48], xmm4 movaps [rsp+0D8h+var_38], xmm5 movaps [rsp+0D8h+var_28], xmm6 movaps [rsp+0D8h+var_18], xmm7 loc_1B99D: mov rcx, rsp mov [rcx+10h], rsi lea rax, [rsp+0D8h+arg_0] mov [rcx+8], rax mov rax, 3000000010h mov [rcx], rax push 8 pop rsi mov rdx, r10 call JS_ThrowError push 6 pop rdx xor eax, eax add rsp, 0D8h retn
long long JS_ThrowPlainError( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14, char a15) { _QWORD v16[4]; // [rsp+0h] [rbp-D8h] BYREF char v17; // [rsp+20h] [rbp-B8h] BYREF long long v18; // [rsp+30h] [rbp-A8h] long long v19; // [rsp+38h] [rbp-A0h] long long v20; // [rsp+40h] [rbp-98h] long long v21; // [rsp+48h] [rbp-90h] __m128 v22; // [rsp+50h] [rbp-88h] __m128 v23; // [rsp+60h] [rbp-78h] __m128 v24; // [rsp+70h] [rbp-68h] __m128 v25; // [rsp+80h] [rbp-58h] __m128 v26; // [rsp+90h] [rbp-48h] __m128 v27; // [rsp+A0h] [rbp-38h] __m128 v28; // [rsp+B0h] [rbp-28h] __m128 v29; // [rsp+C0h] [rbp-18h] v22 = a7; v23 = a8; v24 = a9; v25 = a10; v26 = a11; v27 = a12; v28 = a13; v29 = a14; v18 = a3; v19 = a4; v20 = a5; v21 = a6; v16[2] = &v17; v16[1] = &a15; v16[0] = 0x3000000010LL; ((void ( *)(long long, long long, long long, _QWORD *, long long, long long))JS_ThrowError)(a1, 8LL, a2, v16, a5, a6); return 0LL; }
JS_ThrowPlainError: SUB RSP,0xd8 MOV R10,RSI LEA RSI,[RSP + 0x20] MOV qword ptr [RSI + 0x10],RDX MOV qword ptr [RSI + 0x18],RCX MOV qword ptr [RSI + 0x20],R8 MOV qword ptr [RSI + 0x28],R9 TEST AL,AL JZ 0x0011b99d MOVAPS xmmword ptr [RSP + 0x50],XMM0 MOVAPS xmmword ptr [RSP + 0x60],XMM1 MOVAPS xmmword ptr [RSP + 0x70],XMM2 MOVAPS xmmword ptr [RSP + 0x80],XMM3 MOVAPS xmmword ptr [RSP + 0x90],XMM4 MOVAPS xmmword ptr [RSP + 0xa0],XMM5 MOVAPS xmmword ptr [RSP + 0xb0],XMM6 MOVAPS xmmword ptr [RSP + 0xc0],XMM7 LAB_0011b99d: MOV RCX,RSP MOV qword ptr [RCX + 0x10],RSI LEA RAX,[RSP + 0xe0] MOV qword ptr [RCX + 0x8],RAX MOV RAX,0x3000000010 MOV qword ptr [RCX],RAX PUSH 0x8 POP RSI MOV RDX,R10 CALL 0x0011b9d5 PUSH 0x6 POP RDX XOR EAX,EAX ADD RSP,0xd8 RET
int1 [16] JS_ThrowPlainError(int8 param_1,int8 param_2) { JS_ThrowError(param_1,8,param_2); return ZEXT816(6) << 0x40; }
65,233
JS_ThrowPlainError
bluesky950520[P]quickjs/quickjs.c
JSValue __attribute__((format(printf, 2, 3))) JS_ThrowPlainError(JSContext *ctx, const char *fmt, ...) { JSValue val; va_list ap; va_start(ap, fmt); val = JS_ThrowError(ctx, JS_PLAIN_ERROR, fmt, ap); va_end(ap); return val; }
O3
c
JS_ThrowPlainError: subq $0xd8, %rsp movq %rsi, %r10 leaq 0x20(%rsp), %rsi movq %rdx, 0x10(%rsi) movq %rcx, 0x18(%rsi) movq %r8, 0x20(%rsi) movq %r9, 0x28(%rsi) testb %al, %al je 0x22011 movaps %xmm0, 0x50(%rsp) movaps %xmm1, 0x60(%rsp) movaps %xmm2, 0x70(%rsp) movaps %xmm3, 0x80(%rsp) movaps %xmm4, 0x90(%rsp) movaps %xmm5, 0xa0(%rsp) movaps %xmm6, 0xb0(%rsp) movaps %xmm7, 0xc0(%rsp) movq %rsp, %rcx movq %rsi, 0x10(%rcx) leaq 0xe0(%rsp), %rax movq %rax, 0x8(%rcx) movabsq $0x3000000010, %rax # imm = 0x3000000010 movq %rax, (%rcx) movl $0x8, %esi movq %r10, %rdx callq 0x2204d movl $0x6, %edx xorl %eax, %eax addq $0xd8, %rsp retq
JS_ThrowPlainError: sub rsp, 0D8h mov r10, rsi lea rsi, [rsp+0D8h+var_B8] mov [rsi+10h], rdx mov [rsi+18h], rcx mov [rsi+20h], r8 mov [rsi+28h], r9 test al, al jz short loc_22011 movaps [rsp+0D8h+var_88], xmm0 movaps [rsp+0D8h+var_78], xmm1 movaps [rsp+0D8h+var_68], xmm2 movaps [rsp+0D8h+var_58], xmm3 movaps [rsp+0D8h+var_48], xmm4 movaps [rsp+0D8h+var_38], xmm5 movaps [rsp+0D8h+var_28], xmm6 movaps [rsp+0D8h+var_18], xmm7 loc_22011: mov rcx, rsp mov [rcx+10h], rsi lea rax, [rsp+0D8h+arg_0] mov [rcx+8], rax mov rax, 3000000010h mov [rcx], rax mov esi, 8 mov rdx, r10 call JS_ThrowError mov edx, 6 xor eax, eax add rsp, 0D8h retn
long long JS_ThrowPlainError( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14, char a15) { _QWORD v16[4]; // [rsp+0h] [rbp-D8h] BYREF char v17; // [rsp+20h] [rbp-B8h] BYREF long long v18; // [rsp+30h] [rbp-A8h] long long v19; // [rsp+38h] [rbp-A0h] long long v20; // [rsp+40h] [rbp-98h] long long v21; // [rsp+48h] [rbp-90h] __m128 v22; // [rsp+50h] [rbp-88h] __m128 v23; // [rsp+60h] [rbp-78h] __m128 v24; // [rsp+70h] [rbp-68h] __m128 v25; // [rsp+80h] [rbp-58h] __m128 v26; // [rsp+90h] [rbp-48h] __m128 v27; // [rsp+A0h] [rbp-38h] __m128 v28; // [rsp+B0h] [rbp-28h] __m128 v29; // [rsp+C0h] [rbp-18h] v22 = a7; v23 = a8; v24 = a9; v25 = a10; v26 = a11; v27 = a12; v28 = a13; v29 = a14; v18 = a3; v19 = a4; v20 = a5; v21 = a6; v16[2] = &v17; v16[1] = &a15; v16[0] = 0x3000000010LL; ((void ( *)(long long, long long, long long, _QWORD *, long long, long long))JS_ThrowError)(a1, 8LL, a2, v16, a5, a6); return 0LL; }
JS_ThrowPlainError: SUB RSP,0xd8 MOV R10,RSI LEA RSI,[RSP + 0x20] MOV qword ptr [RSI + 0x10],RDX MOV qword ptr [RSI + 0x18],RCX MOV qword ptr [RSI + 0x20],R8 MOV qword ptr [RSI + 0x28],R9 TEST AL,AL JZ 0x00122011 MOVAPS xmmword ptr [RSP + 0x50],XMM0 MOVAPS xmmword ptr [RSP + 0x60],XMM1 MOVAPS xmmword ptr [RSP + 0x70],XMM2 MOVAPS xmmword ptr [RSP + 0x80],XMM3 MOVAPS xmmword ptr [RSP + 0x90],XMM4 MOVAPS xmmword ptr [RSP + 0xa0],XMM5 MOVAPS xmmword ptr [RSP + 0xb0],XMM6 MOVAPS xmmword ptr [RSP + 0xc0],XMM7 LAB_00122011: MOV RCX,RSP MOV qword ptr [RCX + 0x10],RSI LEA RAX,[RSP + 0xe0] MOV qword ptr [RCX + 0x8],RAX MOV RAX,0x3000000010 MOV qword ptr [RCX],RAX MOV ESI,0x8 MOV RDX,R10 CALL 0x0012204d MOV EDX,0x6 XOR EAX,EAX ADD RSP,0xd8 RET
int1 [16] JS_ThrowPlainError(int8 param_1,int8 param_2) { JS_ThrowError(param_1,8,param_2); return ZEXT816(6) << 0x40; }
65,234
google::protobuf::compiler::csharp::PrimitiveFieldGenerator::WriteEquals(google::protobuf::io::Printer*)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/csharp/csharp_primitive_field.cc
void PrimitiveFieldGenerator::WriteEquals(io::Printer* printer) { const char *text = "if ($property_name$ != other.$property_name$) return false;\n"; if (descriptor_->type() == FieldDescriptor::TYPE_FLOAT) { text = "if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals($property_name$, other.$property_name$)) return false;\n"; } else if (descriptor_->type() == FieldDescriptor::TYPE_DOUBLE) { text = "if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals($property_name$, other.$property_name$)) return false;\n"; } printer->Print(variables_, text); }
O0
cpp
google::protobuf::compiler::csharp::PrimitiveFieldGenerator::WriteEquals(google::protobuf::io::Printer*): subq $0x28, %rsp movq %rdi, 0x20(%rsp) movq %rsi, 0x18(%rsp) movq 0x20(%rsp), %rax movq %rax, 0x8(%rsp) leaq 0x34133e(%rip), %rcx # 0x3ada8d movq %rcx, 0x10(%rsp) movq 0x10(%rax), %rdi callq 0x3d920 cmpl $0x2, %eax jne 0x6c770 leaq 0x341361(%rip), %rax # 0x3adaca movq %rax, 0x10(%rsp) jmp 0x6c791 movq 0x8(%rsp), %rax movq 0x10(%rax), %rdi callq 0x3d920 cmpl $0x1, %eax jne 0x6c78f leaq 0x3413c1(%rip), %rax # 0x3adb4b movq %rax, 0x10(%rsp) jmp 0x6c791 movq 0x8(%rsp), %rsi movq 0x18(%rsp), %rdi addq $0x20, %rsi movq 0x10(%rsp), %rdx callq 0x3235f0 addq $0x28, %rsp retq nop
_ZN6google8protobuf8compiler6csharp23PrimitiveFieldGenerator11WriteEqualsEPNS0_2io7PrinterE: sub rsp, 28h mov [rsp+28h+var_8], rdi mov [rsp+28h+var_10], rsi mov rax, [rsp+28h+var_8] mov [rsp+28h+var_20], rax lea rcx, aIfPropertyName_1; "if ($property_name$ != other.$property_"... mov [rsp+28h+var_18], rcx mov rdi, [rax+10h]; this call _ZNK6google8protobuf15FieldDescriptor4typeEv; google::protobuf::FieldDescriptor::type(void) cmp eax, 2 jnz short loc_6C770 lea rax, aIfPbcProtobufe; "if (!pbc::ProtobufEqualityComparers.Bit"... mov [rsp+28h+var_18], rax jmp short loc_6C791 loc_6C770: mov rax, [rsp+28h+var_20] mov rdi, [rax+10h]; this call _ZNK6google8protobuf15FieldDescriptor4typeEv; google::protobuf::FieldDescriptor::type(void) cmp eax, 1 jnz short loc_6C78F lea rax, aIfPbcProtobufe_0; "if (!pbc::ProtobufEqualityComparers.Bit"... mov [rsp+28h+var_18], rax loc_6C78F: jmp short $+2 loc_6C791: mov rsi, [rsp+28h+var_20] mov rdi, [rsp+28h+var_10] add rsi, 20h ; ' ' mov rdx, [rsp+28h+var_18] call _ZN6google8protobuf2io7Printer5PrintERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_St4lessIS9_ESaISt4pairIKS9_S9_EEEPKc; google::protobuf::io::Printer::Print(std::map<std::string,std::string> const&,char const*) add rsp, 28h retn
WriteEquals: SUB RSP,0x28 MOV qword ptr [RSP + 0x20],RDI MOV qword ptr [RSP + 0x18],RSI MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x8],RAX LEA RCX,[0x4ada8d] MOV qword ptr [RSP + 0x10],RCX MOV RDI,qword ptr [RAX + 0x10] CALL 0x0013d920 CMP EAX,0x2 JNZ 0x0016c770 LEA RAX,[0x4adaca] MOV qword ptr [RSP + 0x10],RAX JMP 0x0016c791 LAB_0016c770: MOV RAX,qword ptr [RSP + 0x8] MOV RDI,qword ptr [RAX + 0x10] CALL 0x0013d920 CMP EAX,0x1 JNZ 0x0016c78f LEA RAX,[0x4adb4b] MOV qword ptr [RSP + 0x10],RAX LAB_0016c78f: JMP 0x0016c791 LAB_0016c791: MOV RSI,qword ptr [RSP + 0x8] MOV RDI,qword ptr [RSP + 0x18] ADD RSI,0x20 MOV RDX,qword ptr [RSP + 0x10] CALL 0x004235f0 ADD RSP,0x28 RET
/* google::protobuf::compiler::csharp::PrimitiveFieldGenerator::WriteEquals(google::protobuf::io::Printer*) */ void __thiscall google::protobuf::compiler::csharp::PrimitiveFieldGenerator::WriteEquals (PrimitiveFieldGenerator *this,Printer *param_1) { int iVar1; char *local_18; local_18 = "if ($property_name$ != other.$property_name$) return false;\n"; iVar1 = FieldDescriptor::type(*(FieldDescriptor **)(this + 0x10)); if (iVar1 == 2) { local_18 = "if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals($property_name$, other.$property_name$)) return false;\n" ; } else { iVar1 = FieldDescriptor::type(*(FieldDescriptor **)(this + 0x10)); if (iVar1 == 1) { local_18 = "if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals($property_name$, other.$property_name$)) return false;\n" ; } } io::Printer::Print(param_1,(map *)(this + 0x20),local_18); return; }
65,235
js_proxy_get_own_property_names
bluesky950520[P]quickjs/quickjs.c
static int js_proxy_get_own_property_names(JSContext *ctx, JSPropertyEnum **ptab, uint32_t *plen, JSValue obj) { JSProxyData *s; JSValue method, prop_array, val; uint32_t len, i, len2; JSPropertyEnum *tab, *tab2; JSAtom atom; JSPropertyDescriptor desc; int res, is_extensible, idx; s = get_proxy_method(ctx, &method, obj, JS_ATOM_ownKeys); if (!s) return -1; if (JS_IsUndefined(method)) { return JS_GetOwnPropertyNamesInternal(ctx, ptab, plen, JS_VALUE_GET_OBJ(s->target), JS_GPN_STRING_MASK | JS_GPN_SYMBOL_MASK); } prop_array = JS_CallFree(ctx, method, s->handler, 1, &s->target); if (JS_IsException(prop_array)) return -1; tab = NULL; len = 0; tab2 = NULL; len2 = 0; if (js_get_length32(ctx, &len, prop_array)) goto fail; if (len > 0) { tab = js_mallocz(ctx, sizeof(tab[0]) * len); if (!tab) goto fail; } for(i = 0; i < len; i++) { val = JS_GetPropertyUint32(ctx, prop_array, i); if (JS_IsException(val)) goto fail; if (!JS_IsString(val) && !JS_IsSymbol(val)) { JS_FreeValue(ctx, val); JS_ThrowTypeError(ctx, "proxy: properties must be strings or symbols"); goto fail; } atom = JS_ValueToAtom(ctx, val); JS_FreeValue(ctx, val); if (atom == JS_ATOM_NULL) goto fail; tab[i].atom = atom; tab[i].is_enumerable = FALSE; /* XXX: redundant? */ } /* check duplicate properties (XXX: inefficient, could store the * properties an a temporary object to use the hash) */ for(i = 1; i < len; i++) { if (find_prop_key(tab, i, tab[i].atom) >= 0) { JS_ThrowTypeError(ctx, "proxy: duplicate property"); goto fail; } } is_extensible = JS_IsExtensible(ctx, s->target); if (is_extensible < 0) goto fail; /* check if there are non configurable properties */ if (s->is_revoked) { JS_ThrowTypeErrorRevokedProxy(ctx); goto fail; } if (JS_GetOwnPropertyNamesInternal(ctx, &tab2, &len2, JS_VALUE_GET_OBJ(s->target), JS_GPN_STRING_MASK | JS_GPN_SYMBOL_MASK)) goto fail; for(i = 0; i < len2; i++) { if (s->is_revoked) { JS_ThrowTypeErrorRevokedProxy(ctx); goto fail; } res = JS_GetOwnPropertyInternal(ctx, &desc, JS_VALUE_GET_OBJ(s->target), tab2[i].atom); if (res < 0) goto fail; if (res) { /* safety, property should be found */ js_free_desc(ctx, &desc); if (!(desc.flags & JS_PROP_CONFIGURABLE) || !is_extensible) { idx = find_prop_key(tab, len, tab2[i].atom); if (idx < 0) { JS_ThrowTypeError(ctx, "proxy: target property must be present in proxy ownKeys"); goto fail; } /* mark the property as found */ if (!is_extensible) tab[idx].is_enumerable = TRUE; } } } if (!is_extensible) { /* check that all property in 'tab' were checked */ for(i = 0; i < len; i++) { if (!tab[i].is_enumerable) { JS_ThrowTypeError(ctx, "proxy: property not present in target were returned by non extensible proxy"); goto fail; } } } js_free_prop_enum(ctx, tab2, len2); JS_FreeValue(ctx, prop_array); *ptab = tab; *plen = len; return 0; fail: js_free_prop_enum(ctx, tab2, len2); js_free_prop_enum(ctx, tab, len); JS_FreeValue(ctx, prop_array); return -1; }
O1
c
js_proxy_get_own_property_names: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xa8, %rsp movq %rdx, %r13 movq %rsi, %r15 movq %rdi, %rbx leaq 0x60(%rsp), %rsi movq %rcx, %rdx movq %r8, %rcx movl $0x68, %r8d callq 0x4143c movl $0xffffffff, %ebp # imm = 0xFFFFFFFF testq %rax, %rax je 0x52847 movq 0x68(%rsp), %rdx cmpl $0x3, %edx jne 0x524f5 movq (%rax), %rcx movq %rbx, %rdi movq %r15, %rsi movq %r13, %rdx movl $0x3, %r8d addq $0xa8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x27619 movq 0x60(%rsp), %rsi movq 0x10(%rax), %rcx movq 0x18(%rax), %r8 movq %rax, 0x40(%rsp) movq %rax, (%rsp) movq %rbx, %rdi movl $0x1, %r9d callq 0x26cf9 movq %rdx, %r12 cmpl $0x6, %r12d je 0x52847 movq %rax, %r14 movq %r15, 0x58(%rsp) xorl %r15d, %r15d leaq 0x24(%rsp), %rsi movl %r15d, (%rsi) movq $0x0, 0x30(%rsp) movl %r15d, 0x20(%rsp) movq %rbx, %rdi movq %rax, %rdx movq %r12, %rcx callq 0x4566b testl %eax, %eax jne 0x52818 movl 0x24(%rsp), %ecx movq %rcx, 0x8(%rsp) testq %rcx, %rcx jne 0x5285b xorl %r15d, %r15d movq %r13, 0x50(%rsp) cmpl $0x0, 0x8(%rsp) je 0x5260c xorl %r13d, %r13d movq %r12, 0x10(%rsp) movq %r14, 0x48(%rsp) movq %r15, 0x28(%rsp) movq %rbx, %rdi movq %r14, %rsi movq %r12, %rdx movq %r13, %rcx callq 0x28210 movq %rax, %rbp movq %rdx, %r15 leal 0x8(%rdx), %eax cmpl $0x2, %eax jae 0x527c8 movq %rbx, %rdi movq %rbp, %rsi movq %r15, %rdx callq 0x280ef movl %eax, %r12d movq %rbx, %r14 movq 0x18(%rbx), %rdi movq %rbp, %rsi movq %r15, %rdx callq 0x21922 testl %r12d, %r12d je 0x527d5 movq 0x28(%rsp), %r15 movl %r12d, 0x4(%r15,%r13,8) movl $0x0, (%r15,%r13,8) incq %r13 cmpq %r13, 0x8(%rsp) movq 0x10(%rsp), %r12 movq %r14, %rbx movq 0x48(%rsp), %r14 jne 0x52594 cmpl $0x2, 0x8(%rsp) movl $0xffffffff, %ebp # imm = 0xFFFFFFFF jb 0x5264c movl $0x1, %eax leaq 0x51c5f(%rip), %rsi # 0xa4283 testl %eax, %eax jle 0x52642 movl 0x4(%r15,%rax,8), %ecx xorl %edx, %edx cmpl %ecx, 0x4(%r15,%rdx,8) je 0x5280e incq %rdx cmpq %rdx, %rax jne 0x5262f incq %rax cmpq 0x8(%rsp), %rax jne 0x52624 movq 0x40(%rsp), %r13 movq (%r13), %rsi movq 0x8(%r13), %rdx movq %rbx, %rdi callq 0xf997 testl %eax, %eax js 0x52818 leaq 0x50bff(%rip), %rsi # 0xa326f cmpb $0x0, 0x21(%r13) jne 0x5280e movl %eax, 0x1c(%rsp) movq (%r13), %rcx leaq 0x30(%rsp), %rsi leaq 0x20(%rsp), %rdx movq %rbx, %rdi movl $0x3, %r8d callq 0x27619 testl %eax, %eax jne 0x52818 movq %r12, 0x10(%rsp) movl 0x20(%rsp), %eax movq %rax, 0x38(%rsp) testq %rax, %rax je 0x5275c movq 0x30(%rsp), %r13 xorl %r12d, %r12d movq 0x40(%rsp), %rax cmpb $0x0, 0x21(%rax) jne 0x52881 movq (%rax), %rdx movl 0x4(%r13,%r12,8), %ecx movq %rbx, %rdi leaq 0x70(%rsp), %rsi callq 0x27c35 testl %eax, %eax js 0x52892 je 0x5274e movq %rbx, %rdi leaq 0x70(%rsp), %rsi callq 0x4191f cmpl $0x0, 0x1c(%rsp) je 0x5270d movl 0x70(%rsp), %eax andl $0x1, %eax jne 0x5274e movl $0xffffffff, %eax # imm = 0xFFFFFFFF cmpl $0x0, 0x8(%rsp) jle 0x52735 movl 0x4(%r13,%r12,8), %edx xorl %ecx, %ecx cmpl %edx, 0x4(%r15,%rcx,8) je 0x52733 incq %rcx cmpq %rcx, 0x8(%rsp) jne 0x52720 jmp 0x52735 movl %ecx, %eax testl %eax, %eax js 0x528a3 cmpl $0x0, 0x1c(%rsp) jne 0x5274e movl %eax, %eax movl $0x1, (%r15,%rax,8) incq %r12 cmpq 0x38(%rsp), %r12 jne 0x526c2 cmpl $0x0, 0x1c(%rsp) setne %al cmpl $0x0, 0x8(%rsp) sete %cl orb %al, %cl jne 0x5278d xorl %eax, %eax leaq 0x51b5c(%rip), %rsi # 0xa42d5 cmpl $0x0, (%r15,%rax,8) je 0x5289c incq %rax cmpl %eax, 0x8(%rsp) jne 0x52779 movq 0x30(%rsp), %rsi movq %rbx, %rdi movq 0x38(%rsp), %rdx callq 0x27ed5 movq 0x18(%rbx), %rdi movq %r14, %rsi movq 0x10(%rsp), %rdx callq 0x21922 movq 0x58(%rsp), %rax movq %r15, (%rax) movq 0x50(%rsp), %rax movq 0x8(%rsp), %rcx movl %ecx, (%rax) xorl %ebp, %ebp jmp 0x52847 cmpl $0x6, %r15d jne 0x527ee movl $0xffffffff, %ebp # imm = 0xFFFFFFFF jmp 0x527e7 movl $0xffffffff, %ebp # imm = 0xFFFFFFFF movq 0x10(%rsp), %r12 movq %r14, %rbx movq 0x48(%rsp), %r14 movq 0x28(%rsp), %r15 jmp 0x52818 movq 0x18(%rbx), %rdi movq %rbp, %rsi movq %r15, %rdx callq 0x21922 leaq 0x51a52(%rip), %rsi # 0xa4256 movl $0xffffffff, %ebp # imm = 0xFFFFFFFF movq 0x28(%rsp), %r15 movq %rbx, %rdi xorl %eax, %eax callq 0x265c3 movq 0x30(%rsp), %rsi movl 0x20(%rsp), %edx movq %rbx, %rdi callq 0x27ed5 movl 0x24(%rsp), %edx movq %rbx, %rdi movq %r15, %rsi callq 0x27ed5 movq 0x18(%rbx), %rdi movq %r14, %rsi movq %r12, %rdx callq 0x21922 movl %ebp, %eax addq $0xa8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq 0x8(%rsp), %rax leaq (,%rax,8), %rsi movq %rbx, %rdi callq 0xf0a2 movq %rax, %r15 testq %rax, %rax jne 0x52572 xorl %r15d, %r15d jmp 0x52818 movq 0x10(%rsp), %r12 leaq 0x509e2(%rip), %rsi # 0xa326f jmp 0x5280e movq 0x10(%rsp), %r12 jmp 0x52818 movl $0xffffffff, %ebp # imm = 0xFFFFFFFF jmp 0x528aa leaq 0x519f3(%rip), %rsi # 0xa429d movq 0x10(%rsp), %r12 jmp 0x5280e
js_proxy_get_own_property_names: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 0A8h mov r13, rdx mov r15, rsi mov rbx, rdi lea rsi, [rsp+0D8h+var_78] mov rdx, rcx mov rcx, r8 mov r8d, 68h ; 'h' call get_proxy_method mov ebp, 0FFFFFFFFh test rax, rax jz loc_52847 mov rdx, [rsp+0D8h+var_70] cmp edx, 3 jnz short loc_524F5 mov rcx, [rax] mov rdi, rbx mov rsi, r15 mov rdx, r13 mov r8d, 3 add rsp, 0A8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp JS_GetOwnPropertyNamesInternal loc_524F5: mov rsi, [rsp+0D8h+var_78] mov rcx, [rax+10h] mov r8, [rax+18h] mov [rsp+0D8h+var_98], rax mov [rsp+0D8h+var_D8], rax mov rdi, rbx mov r9d, 1 call JS_CallFree mov r12, rdx cmp r12d, 6 jz loc_52847 mov r14, rax mov [rsp+0D8h+var_80], r15 xor r15d, r15d lea rsi, [rsp+0D8h+var_B4] mov [rsi], r15d mov [rsp+0D8h+var_A8], 0 mov [rsp+0D8h+var_B8], r15d mov rdi, rbx mov rdx, rax mov rcx, r12 call js_get_length32 test eax, eax jnz loc_52818 mov ecx, [rsp+0D8h+var_B4] mov [rsp+0D8h+var_D0], rcx test rcx, rcx jnz loc_5285B xor r15d, r15d loc_52572: mov [rsp+0D8h+var_88], r13 cmp dword ptr [rsp+0D8h+var_D0], 0 jz loc_5260C xor r13d, r13d mov [rsp+0D8h+var_C8], r12 mov [rsp+0D8h+var_90], r14 mov [rsp+0D8h+var_B0], r15 loc_52594: mov rdi, rbx mov rsi, r14 mov rdx, r12 mov rcx, r13 call JS_GetPropertyInt64 mov rbp, rax mov r15, rdx lea eax, [rdx+8] cmp eax, 2 jnb loc_527C8 mov rdi, rbx mov rsi, rbp mov rdx, r15 call JS_ValueToAtom mov r12d, eax mov r14, rbx mov rdi, [rbx+18h] mov rsi, rbp mov rdx, r15 call JS_FreeValueRT test r12d, r12d jz loc_527D5 mov r15, [rsp+0D8h+var_B0] mov [r15+r13*8+4], r12d mov dword ptr [r15+r13*8], 0 inc r13 cmp [rsp+0D8h+var_D0], r13 mov r12, [rsp+0D8h+var_C8] mov rbx, r14 mov r14, [rsp+0D8h+var_90] jnz short loc_52594 loc_5260C: cmp dword ptr [rsp+0D8h+var_D0], 2 mov ebp, 0FFFFFFFFh jb short loc_5264C mov eax, 1 lea rsi, aProxyDuplicate; "proxy: duplicate property" loc_52624: test eax, eax jle short loc_52642 mov ecx, [r15+rax*8+4] xor edx, edx loc_5262F: cmp [r15+rdx*8+4], ecx jz loc_5280E inc rdx cmp rax, rdx jnz short loc_5262F loc_52642: inc rax cmp rax, [rsp+0D8h+var_D0] jnz short loc_52624 loc_5264C: mov r13, [rsp+0D8h+var_98] mov rsi, [r13+0] mov rdx, [r13+8] mov rdi, rbx call JS_IsExtensible test eax, eax js loc_52818 lea rsi, aRevokedProxy; "revoked proxy" cmp byte ptr [r13+21h], 0 jnz loc_5280E mov [rsp+0D8h+var_BC], eax mov rcx, [r13+0] lea rsi, [rsp+0D8h+var_A8] lea rdx, [rsp+0D8h+var_B8] mov rdi, rbx mov r8d, 3 call JS_GetOwnPropertyNamesInternal test eax, eax jnz loc_52818 mov [rsp+0D8h+var_C8], r12 mov eax, [rsp+0D8h+var_B8] mov [rsp+0D8h+var_A0], rax test rax, rax jz loc_5275C mov r13, [rsp+0D8h+var_A8] xor r12d, r12d loc_526C2: mov rax, [rsp+0D8h+var_98] cmp byte ptr [rax+21h], 0 jnz loc_52881 mov rdx, [rax] mov ecx, [r13+r12*8+4] mov rdi, rbx lea rsi, [rsp+0D8h+var_68] call JS_GetOwnPropertyInternal test eax, eax js loc_52892 jz short loc_5274E mov rdi, rbx lea rsi, [rsp+0D8h+var_68] call js_free_desc cmp [rsp+0D8h+var_BC], 0 jz short loc_5270D mov eax, [rsp+0D8h+var_68] and eax, 1 jnz short loc_5274E loc_5270D: mov eax, 0FFFFFFFFh cmp dword ptr [rsp+0D8h+var_D0], 0 jle short loc_52735 mov edx, [r13+r12*8+4] xor ecx, ecx loc_52720: cmp [r15+rcx*8+4], edx jz short loc_52733 inc rcx cmp [rsp+0D8h+var_D0], rcx jnz short loc_52720 jmp short loc_52735 loc_52733: mov eax, ecx loc_52735: test eax, eax js loc_528A3 cmp [rsp+0D8h+var_BC], 0 jnz short loc_5274E mov eax, eax mov dword ptr [r15+rax*8], 1 loc_5274E: inc r12 cmp r12, [rsp+0D8h+var_A0] jnz loc_526C2 loc_5275C: cmp [rsp+0D8h+var_BC], 0 setnz al cmp dword ptr [rsp+0D8h+var_D0], 0 setz cl or cl, al jnz short loc_5278D xor eax, eax lea rsi, aProxyPropertyN; "proxy: property not present in target w"... loc_52779: cmp dword ptr [r15+rax*8], 0 jz loc_5289C inc rax cmp dword ptr [rsp+0D8h+var_D0], eax jnz short loc_52779 loc_5278D: mov rsi, [rsp+0D8h+var_A8] mov rdi, rbx mov rdx, [rsp+0D8h+var_A0] call js_free_prop_enum mov rdi, [rbx+18h] mov rsi, r14 mov rdx, [rsp+0D8h+var_C8] call JS_FreeValueRT mov rax, [rsp+0D8h+var_80] mov [rax], r15 mov rax, [rsp+0D8h+var_88] mov rcx, [rsp+0D8h+var_D0] mov [rax], ecx xor ebp, ebp jmp short loc_52847 loc_527C8: cmp r15d, 6 jnz short loc_527EE mov ebp, 0FFFFFFFFh jmp short loc_527E7 loc_527D5: mov ebp, 0FFFFFFFFh mov r12, [rsp+0D8h+var_C8] mov rbx, r14 mov r14, [rsp+0D8h+var_90] loc_527E7: mov r15, [rsp+0D8h+var_B0] jmp short loc_52818 loc_527EE: mov rdi, [rbx+18h] mov rsi, rbp mov rdx, r15 call JS_FreeValueRT lea rsi, aProxyPropertie; "proxy: properties must be strings or sy"... mov ebp, 0FFFFFFFFh mov r15, [rsp+0D8h+var_B0] loc_5280E: mov rdi, rbx xor eax, eax call JS_ThrowTypeError loc_52818: mov rsi, [rsp+0D8h+var_A8] mov edx, [rsp+0D8h+var_B8] mov rdi, rbx call js_free_prop_enum mov edx, [rsp+0D8h+var_B4] mov rdi, rbx mov rsi, r15 call js_free_prop_enum mov rdi, [rbx+18h] mov rsi, r14 mov rdx, r12 call JS_FreeValueRT loc_52847: mov eax, ebp add rsp, 0A8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_5285B: mov rax, [rsp+0D8h+var_D0] lea rsi, ds:0[rax*8] mov rdi, rbx call js_mallocz mov r15, rax test rax, rax jnz loc_52572 xor r15d, r15d jmp short loc_52818 loc_52881: mov r12, [rsp+0D8h+var_C8] lea rsi, aRevokedProxy; "revoked proxy" jmp loc_5280E loc_52892: mov r12, [rsp+0D8h+var_C8] jmp loc_52818 loc_5289C: mov ebp, 0FFFFFFFFh jmp short loc_528AA loc_528A3: lea rsi, aProxyTargetPro; "proxy: target property must be present "... loc_528AA: mov r12, [rsp+0D8h+var_C8] jmp loc_5280E
long long js_proxy_get_own_property_names( long long a1, long long *a2, _DWORD *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 *proxy_method; // rax unsigned int v16; // ebp long long v18; // rcx long long v19; // r8 long long v20; // rax long long v21; // rdx long long v22; // r12 _DWORD *v23; // r14 long long v24; // r15 long long v25; // r8 long long v26; // r9 __m128 v27; // xmm4 __m128 v28; // xmm5 unsigned long long v29; // r13 long long v30; // rdx _DWORD *PropertyInt64; // rbp long long v32; // r15 int v33; // r12d long long v34; // rax const char *v35; // rsi long long v36; // rcx long long v37; // rdx long long *v38; // r13 int IsExtensible; // eax long long v40; // r13 long long i; // r12 int OwnPropertyInternal; // eax int v43; // eax long long v44; // rax char v45; // [rsp+0h] [rbp-D8h] long long v46; // [rsp+8h] [rbp-D0h] long long v47; // [rsp+10h] [rbp-C8h] long long v48; // [rsp+10h] [rbp-C8h] int v49; // [rsp+1Ch] [rbp-BCh] unsigned int v50; // [rsp+20h] [rbp-B8h] BYREF unsigned int v51; // [rsp+24h] [rbp-B4h] BYREF long long v52; // [rsp+28h] [rbp-B0h] long long v53; // [rsp+30h] [rbp-A8h] BYREF long long v54; // [rsp+38h] [rbp-A0h] long long *v55; // [rsp+40h] [rbp-98h] _DWORD *v56; // [rsp+48h] [rbp-90h] _DWORD *v57; // [rsp+50h] [rbp-88h] long long *v58; // [rsp+58h] [rbp-80h] _DWORD *v59; // [rsp+60h] [rbp-78h] BYREF long long v60; // [rsp+68h] [rbp-70h] _BYTE v61[104]; // [rsp+70h] [rbp-68h] BYREF proxy_method = (long long *)get_proxy_method( a1, (unsigned long long *)&v59, a4, a5, 104LL, a6, a7, a8, a9, a10, a11, a12, a13, a14); v16 = -1; if ( proxy_method ) { if ( (_DWORD)v60 == 3 ) return JS_GetOwnPropertyNamesInternal(a1, a2, a3, *proxy_method, 3); v18 = proxy_method[2]; v19 = proxy_method[3]; v55 = proxy_method; v20 = JS_CallFree(a1, v59, v60, v18, v19, 1, (long long)proxy_method); v22 = v21; if ( (_DWORD)v21 != 6 ) { v23 = (_DWORD *)v20; v58 = a2; v24 = 0LL; v51 = 0; v53 = 0LL; v50 = 0; if ( (unsigned int)js_get_length32(a1, (int *)&v51, v20, v21) ) goto LABEL_51; v46 = v51; if ( v51 ) { v24 = js_mallocz(a1, 8LL * v51); if ( !v24 ) { v24 = 0LL; goto LABEL_51; } } else { v24 = 0LL; } v57 = a3; if ( (_DWORD)v46 ) { v29 = 0LL; v47 = v22; v56 = v23; v52 = v24; while ( 1 ) { PropertyInt64 = (_DWORD *)JS_GetPropertyInt64(a1, (long long)v23, v22, v29); v32 = v30; if ( (unsigned int)(v30 + 8) >= 2 ) break; v33 = JS_ValueToAtom(a1, (long long)PropertyInt64, v30); JS_FreeValueRT(*(_QWORD *)(a1 + 24), PropertyInt64, v32); if ( !v33 ) { v16 = -1; v22 = v47; v23 = v56; goto LABEL_48; } v24 = v52; *(_DWORD *)(v52 + 8 * v29 + 4) = v33; *(_DWORD *)(v24 + 8 * v29++) = 0; v22 = v47; v23 = v56; if ( v46 == v29 ) goto LABEL_13; } if ( (_DWORD)v30 == 6 ) { v16 = -1; LABEL_48: v24 = v52; goto LABEL_51; } JS_FreeValueRT(*(_QWORD *)(a1 + 24), PropertyInt64, v30); v35 = "proxy: properties must be strings or symbols"; v16 = -1; v24 = v52; goto LABEL_50; } LABEL_13: v16 = -1; if ( (unsigned int)v46 >= 2 ) { v34 = 1LL; v35 = "proxy: duplicate property"; while ( (int)v34 <= 0 ) { LABEL_19: if ( ++v34 == v46 ) goto LABEL_20; } v36 = *(unsigned int *)(v24 + 8 * v34 + 4); v37 = 0LL; while ( *(_DWORD *)(v24 + 8 * v37 + 4) != (_DWORD)v36 ) { if ( v34 == ++v37 ) goto LABEL_19; } goto LABEL_50; } LABEL_20: v38 = v55; IsExtensible = JS_IsExtensible(a1, *v55, v55[1]); if ( IsExtensible < 0 ) goto LABEL_51; v35 = "revoked proxy"; if ( *((_BYTE *)v38 + 33) ) { LABEL_50: JS_ThrowTypeError(a1, (long long)v35, v37, v36, v25, v26, a7, a8, a9, a10, v27, v28, a13, a14, v45); goto LABEL_51; } v49 = IsExtensible; if ( (unsigned int)JS_GetOwnPropertyNamesInternal(a1, &v53, &v50, *v38, 3) ) { LABEL_51: js_free_prop_enum(a1, v53, v50); js_free_prop_enum(a1, v24, v51); JS_FreeValueRT(*(_QWORD *)(a1 + 24), v23, v22); return v16; } v48 = v22; v54 = v50; if ( v50 ) { v40 = v53; for ( i = 0LL; i != v54; ++i ) { if ( *((_BYTE *)v55 + 33) ) { v22 = v48; v35 = "revoked proxy"; goto LABEL_50; } OwnPropertyInternal = JS_GetOwnPropertyInternal(a1, (long long)v61, *v55, *(_DWORD *)(v40 + 8 * i + 4)); if ( OwnPropertyInternal < 0 ) { v22 = v48; goto LABEL_51; } if ( OwnPropertyInternal ) { js_free_desc(a1, (long long)v61); if ( !v49 || (v61[0] & 1) == 0 ) { v43 = -1; if ( (int)v46 > 0 ) { v37 = *(unsigned int *)(v40 + 8 * i + 4); v36 = 0LL; while ( *(_DWORD *)(v24 + 8 * v36 + 4) != (_DWORD)v37 ) { if ( v46 == ++v36 ) goto LABEL_36; } v43 = v36; } LABEL_36: if ( v43 < 0 ) { v35 = "proxy: target property must be present in proxy ownKeys"; goto LABEL_59; } if ( !v49 ) *(_DWORD *)(v24 + 8LL * (unsigned int)v43) = 1; } } } } LOBYTE(v36) = v49 != 0 || (_DWORD)v46 == 0; if ( !(_BYTE)v36 ) { v44 = 0LL; v35 = "proxy: property not present in target were returned by non extensible proxy"; while ( *(_DWORD *)(v24 + 8 * v44) ) { if ( (_DWORD)v46 == (_DWORD)++v44 ) goto LABEL_44; } v16 = -1; LABEL_59: v22 = v48; goto LABEL_50; } LABEL_44: js_free_prop_enum(a1, v53, v54); JS_FreeValueRT(*(_QWORD *)(a1 + 24), v23, v48); *v58 = v24; *v57 = v46; return 0; } } return v16; }
js_proxy_get_own_property_names: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xa8 MOV R13,RDX MOV R15,RSI MOV RBX,RDI LEA RSI,[RSP + 0x60] MOV RDX,RCX MOV RCX,R8 MOV R8D,0x68 CALL 0x0014143c MOV EBP,0xffffffff TEST RAX,RAX JZ 0x00152847 MOV RDX,qword ptr [RSP + 0x68] CMP EDX,0x3 JNZ 0x001524f5 MOV RCX,qword ptr [RAX] MOV RDI,RBX MOV RSI,R15 MOV RDX,R13 MOV R8D,0x3 ADD RSP,0xa8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x00127619 LAB_001524f5: MOV RSI,qword ptr [RSP + 0x60] MOV RCX,qword ptr [RAX + 0x10] MOV R8,qword ptr [RAX + 0x18] MOV qword ptr [RSP + 0x40],RAX MOV qword ptr [RSP],RAX MOV RDI,RBX MOV R9D,0x1 CALL 0x00126cf9 MOV R12,RDX CMP R12D,0x6 JZ 0x00152847 MOV R14,RAX MOV qword ptr [RSP + 0x58],R15 XOR R15D,R15D LEA RSI,[RSP + 0x24] MOV dword ptr [RSI],R15D MOV qword ptr [RSP + 0x30],0x0 MOV dword ptr [RSP + 0x20],R15D MOV RDI,RBX MOV RDX,RAX MOV RCX,R12 CALL 0x0014566b TEST EAX,EAX JNZ 0x00152818 MOV ECX,dword ptr [RSP + 0x24] MOV qword ptr [RSP + 0x8],RCX TEST RCX,RCX JNZ 0x0015285b XOR R15D,R15D LAB_00152572: MOV qword ptr [RSP + 0x50],R13 CMP dword ptr [RSP + 0x8],0x0 JZ 0x0015260c XOR R13D,R13D MOV qword ptr [RSP + 0x10],R12 MOV qword ptr [RSP + 0x48],R14 MOV qword ptr [RSP + 0x28],R15 LAB_00152594: MOV RDI,RBX MOV RSI,R14 MOV RDX,R12 MOV RCX,R13 CALL 0x00128210 MOV RBP,RAX MOV R15,RDX LEA EAX,[RDX + 0x8] CMP EAX,0x2 JNC 0x001527c8 MOV RDI,RBX MOV RSI,RBP MOV RDX,R15 CALL 0x001280ef MOV R12D,EAX MOV R14,RBX MOV RDI,qword ptr [RBX + 0x18] MOV RSI,RBP MOV RDX,R15 CALL 0x00121922 TEST R12D,R12D JZ 0x001527d5 MOV R15,qword ptr [RSP + 0x28] MOV dword ptr [R15 + R13*0x8 + 0x4],R12D MOV dword ptr [R15 + R13*0x8],0x0 INC R13 CMP qword ptr [RSP + 0x8],R13 MOV R12,qword ptr [RSP + 0x10] MOV RBX,R14 MOV R14,qword ptr [RSP + 0x48] JNZ 0x00152594 LAB_0015260c: CMP dword ptr [RSP + 0x8],0x2 MOV EBP,0xffffffff JC 0x0015264c MOV EAX,0x1 LEA RSI,[0x1a4283] LAB_00152624: TEST EAX,EAX JLE 0x00152642 MOV ECX,dword ptr [R15 + RAX*0x8 + 0x4] XOR EDX,EDX LAB_0015262f: CMP dword ptr [R15 + RDX*0x8 + 0x4],ECX JZ 0x0015280e INC RDX CMP RAX,RDX JNZ 0x0015262f LAB_00152642: INC RAX CMP RAX,qword ptr [RSP + 0x8] JNZ 0x00152624 LAB_0015264c: MOV R13,qword ptr [RSP + 0x40] MOV RSI,qword ptr [R13] MOV RDX,qword ptr [R13 + 0x8] MOV RDI,RBX CALL 0x0010f997 TEST EAX,EAX JS 0x00152818 LEA RSI,[0x1a326f] CMP byte ptr [R13 + 0x21],0x0 JNZ 0x0015280e MOV dword ptr [RSP + 0x1c],EAX MOV RCX,qword ptr [R13] LEA RSI,[RSP + 0x30] LEA RDX,[RSP + 0x20] MOV RDI,RBX MOV R8D,0x3 CALL 0x00127619 TEST EAX,EAX JNZ 0x00152818 MOV qword ptr [RSP + 0x10],R12 MOV EAX,dword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x38],RAX TEST RAX,RAX JZ 0x0015275c MOV R13,qword ptr [RSP + 0x30] XOR R12D,R12D LAB_001526c2: MOV RAX,qword ptr [RSP + 0x40] CMP byte ptr [RAX + 0x21],0x0 JNZ 0x00152881 MOV RDX,qword ptr [RAX] MOV ECX,dword ptr [R13 + R12*0x8 + 0x4] MOV RDI,RBX LEA RSI,[RSP + 0x70] CALL 0x00127c35 TEST EAX,EAX JS 0x00152892 JZ 0x0015274e MOV RDI,RBX LEA RSI,[RSP + 0x70] CALL 0x0014191f CMP dword ptr [RSP + 0x1c],0x0 JZ 0x0015270d MOV EAX,dword ptr [RSP + 0x70] AND EAX,0x1 JNZ 0x0015274e LAB_0015270d: MOV EAX,0xffffffff CMP dword ptr [RSP + 0x8],0x0 JLE 0x00152735 MOV EDX,dword ptr [R13 + R12*0x8 + 0x4] XOR ECX,ECX LAB_00152720: CMP dword ptr [R15 + RCX*0x8 + 0x4],EDX JZ 0x00152733 INC RCX CMP qword ptr [RSP + 0x8],RCX JNZ 0x00152720 JMP 0x00152735 LAB_00152733: MOV EAX,ECX LAB_00152735: TEST EAX,EAX JS 0x001528a3 CMP dword ptr [RSP + 0x1c],0x0 JNZ 0x0015274e MOV EAX,EAX MOV dword ptr [R15 + RAX*0x8],0x1 LAB_0015274e: INC R12 CMP R12,qword ptr [RSP + 0x38] JNZ 0x001526c2 LAB_0015275c: CMP dword ptr [RSP + 0x1c],0x0 SETNZ AL CMP dword ptr [RSP + 0x8],0x0 SETZ CL OR CL,AL JNZ 0x0015278d XOR EAX,EAX LEA RSI,[0x1a42d5] LAB_00152779: CMP dword ptr [R15 + RAX*0x8],0x0 JZ 0x0015289c INC RAX CMP dword ptr [RSP + 0x8],EAX JNZ 0x00152779 LAB_0015278d: MOV RSI,qword ptr [RSP + 0x30] MOV RDI,RBX MOV RDX,qword ptr [RSP + 0x38] CALL 0x00127ed5 MOV RDI,qword ptr [RBX + 0x18] MOV RSI,R14 MOV RDX,qword ptr [RSP + 0x10] CALL 0x00121922 MOV RAX,qword ptr [RSP + 0x58] MOV qword ptr [RAX],R15 MOV RAX,qword ptr [RSP + 0x50] MOV RCX,qword ptr [RSP + 0x8] MOV dword ptr [RAX],ECX XOR EBP,EBP JMP 0x00152847 LAB_001527c8: CMP R15D,0x6 JNZ 0x001527ee MOV EBP,0xffffffff JMP 0x001527e7 LAB_001527d5: MOV EBP,0xffffffff MOV R12,qword ptr [RSP + 0x10] MOV RBX,R14 MOV R14,qword ptr [RSP + 0x48] LAB_001527e7: MOV R15,qword ptr [RSP + 0x28] JMP 0x00152818 LAB_001527ee: MOV RDI,qword ptr [RBX + 0x18] MOV RSI,RBP MOV RDX,R15 CALL 0x00121922 LEA RSI,[0x1a4256] MOV EBP,0xffffffff MOV R15,qword ptr [RSP + 0x28] LAB_0015280e: MOV RDI,RBX XOR EAX,EAX CALL 0x001265c3 LAB_00152818: MOV RSI,qword ptr [RSP + 0x30] MOV EDX,dword ptr [RSP + 0x20] MOV RDI,RBX CALL 0x00127ed5 MOV EDX,dword ptr [RSP + 0x24] MOV RDI,RBX MOV RSI,R15 CALL 0x00127ed5 MOV RDI,qword ptr [RBX + 0x18] MOV RSI,R14 MOV RDX,R12 CALL 0x00121922 LAB_00152847: MOV EAX,EBP ADD RSP,0xa8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0015285b: MOV RAX,qword ptr [RSP + 0x8] LEA RSI,[RAX*0x8] MOV RDI,RBX CALL 0x0010f0a2 MOV R15,RAX TEST RAX,RAX JNZ 0x00152572 XOR R15D,R15D JMP 0x00152818 LAB_00152881: MOV R12,qword ptr [RSP + 0x10] LEA RSI,[0x1a326f] JMP 0x0015280e LAB_00152892: MOV R12,qword ptr [RSP + 0x10] JMP 0x00152818 LAB_0015289c: MOV EBP,0xffffffff JMP 0x001528aa LAB_001528a3: LEA RSI,[0x1a429d] LAB_001528aa: MOV R12,qword ptr [RSP + 0x10] JMP 0x0015280e
int8 js_proxy_get_own_property_names (long param_1,long *param_2,uint *param_3,int8 param_4,int8 param_5) { uint uVar1; int8 *puVar2; int iVar3; int iVar4; int8 uVar5; int8 uVar6; long lVar7; long lVar8; ulong uVar9; ulong uVar10; int8 uVar11; int8 uVar12; ulong uVar13; char *pcVar14; ulong uVar15; int1 auVar16 [16]; uint local_b8; uint local_b4; long local_b0; long local_a8; ulong local_a0; int8 *local_98; int8 local_90; uint *local_88; long *local_80; int8 local_78; int8 local_70; uint local_68 [14]; local_98 = (int8 *)get_proxy_method(param_1,&local_78,param_4,param_5,0x68); if (local_98 == (int8 *)0x0) { return 0xffffffff; } if ((int)local_70 == 3) { uVar5 = JS_GetOwnPropertyNamesInternal(param_1,param_2,param_3,*local_98,3); return uVar5; } auVar16 = JS_CallFree(param_1,local_78,local_70,local_98[2],local_98[3],1,local_98); uVar11 = auVar16._8_8_; uVar5 = auVar16._0_8_; if (auVar16._8_4_ == 6) { return 0xffffffff; } local_b4 = 0; local_a8 = 0; local_b8 = 0; local_80 = param_2; iVar3 = js_get_length32(param_1,&local_b4,uVar5,uVar11); uVar1 = local_b4; lVar8 = 0; if (iVar3 == 0) { uVar9 = (ulong)local_b4; if (uVar9 == 0) { lVar8 = 0; } else { lVar8 = js_mallocz(param_1,uVar9 * 8); if (lVar8 == 0) { lVar8 = 0; goto LAB_00152818; } } local_88 = param_3; if (uVar1 != 0) { uVar15 = 0; local_b0 = lVar8; local_90 = uVar5; do { uVar5 = local_90; auVar16 = JS_GetPropertyInt64(param_1,local_90,uVar11,uVar15); uVar12 = auVar16._8_8_; uVar6 = auVar16._0_8_; if (1 < auVar16._8_4_ + 8U) { lVar8 = local_b0; if (auVar16._8_4_ == 6) goto LAB_00152818; JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar6,uVar12); pcVar14 = "proxy: properties must be strings or symbols"; lVar8 = local_b0; goto LAB_0015280e; } iVar3 = JS_ValueToAtom(param_1,uVar6,uVar12); JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar6,uVar12); uVar5 = local_90; lVar8 = local_b0; if (iVar3 == 0) goto LAB_00152818; *(int *)(local_b0 + 4 + uVar15 * 8) = iVar3; *(int4 *)(local_b0 + uVar15 * 8) = 0; uVar15 = uVar15 + 1; } while (uVar9 != uVar15); } puVar2 = local_98; if (1 < uVar1) { uVar15 = 1; pcVar14 = "proxy: duplicate property"; do { if (0 < (int)uVar15) { uVar13 = 0; do { if (*(int *)(lVar8 + 4 + uVar13 * 8) == *(int *)(lVar8 + 4 + uVar15 * 8)) goto LAB_0015280e; uVar13 = uVar13 + 1; } while (uVar15 != uVar13); } uVar15 = uVar15 + 1; } while (uVar15 != uVar9); } iVar3 = JS_IsExtensible(param_1,*local_98,local_98[1]); if (-1 < iVar3) { pcVar14 = "revoked proxy"; if (*(char *)((long)puVar2 + 0x21) == '\0') { iVar4 = JS_GetOwnPropertyNamesInternal(param_1,&local_a8,&local_b8,*puVar2,3); lVar7 = local_a8; if (iVar4 == 0) { local_a0 = (ulong)local_b8; if (local_a0 != 0) { uVar15 = 0; do { if (*(char *)((long)local_98 + 0x21) != '\0') { pcVar14 = "revoked proxy"; goto LAB_0015280e; } iVar4 = JS_GetOwnPropertyInternal(param_1,local_68,*local_98); if (iVar4 < 0) goto LAB_00152818; if ((iVar4 != 0) && ((js_free_desc(param_1,local_68), iVar3 == 0 || ((local_68[0] & 1) == 0)))) { uVar13 = 0xffffffff; if (0 < (int)uVar1) { uVar10 = 0; do { if (*(int *)(lVar8 + 4 + uVar10 * 8) == *(int *)(lVar7 + 4 + uVar15 * 8)) { uVar13 = uVar10 & 0xffffffff; break; } uVar10 = uVar10 + 1; } while (uVar9 != uVar10); } if ((int)uVar13 < 0) { pcVar14 = "proxy: target property must be present in proxy ownKeys"; goto LAB_0015280e; } if (iVar3 == 0) { *(int4 *)(lVar8 + uVar13 * 8) = 1; } } uVar15 = uVar15 + 1; } while (uVar15 != local_a0); } if (uVar1 != 0 && iVar3 == 0) { lVar7 = 0; pcVar14 = "proxy: property not present in target were returned by non extensible proxy"; do { if (*(int *)(lVar8 + lVar7 * 8) == 0) goto LAB_0015280e; lVar7 = lVar7 + 1; } while (uVar1 != (uint)lVar7); } js_free_prop_enum(param_1,local_a8,local_a0); JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar5,uVar11); *local_80 = lVar8; *local_88 = uVar1; return 0; } } else { LAB_0015280e: JS_ThrowTypeError(param_1,pcVar14); } } } LAB_00152818: js_free_prop_enum(param_1,local_a8,local_b8); js_free_prop_enum(param_1,lVar8,local_b4); JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar5,uVar11); return 0xffffffff; }
65,236
js_proxy_get_own_property_names
bluesky950520[P]quickjs/quickjs.c
static int js_proxy_get_own_property_names(JSContext *ctx, JSPropertyEnum **ptab, uint32_t *plen, JSValue obj) { JSProxyData *s; JSValue method, prop_array, val; uint32_t len, i, len2; JSPropertyEnum *tab, *tab2; JSAtom atom; JSPropertyDescriptor desc; int res, is_extensible, idx; s = get_proxy_method(ctx, &method, obj, JS_ATOM_ownKeys); if (!s) return -1; if (JS_IsUndefined(method)) { return JS_GetOwnPropertyNamesInternal(ctx, ptab, plen, JS_VALUE_GET_OBJ(s->target), JS_GPN_STRING_MASK | JS_GPN_SYMBOL_MASK); } prop_array = JS_CallFree(ctx, method, s->handler, 1, &s->target); if (JS_IsException(prop_array)) return -1; tab = NULL; len = 0; tab2 = NULL; len2 = 0; if (js_get_length32(ctx, &len, prop_array)) goto fail; if (len > 0) { tab = js_mallocz(ctx, sizeof(tab[0]) * len); if (!tab) goto fail; } for(i = 0; i < len; i++) { val = JS_GetPropertyUint32(ctx, prop_array, i); if (JS_IsException(val)) goto fail; if (!JS_IsString(val) && !JS_IsSymbol(val)) { JS_FreeValue(ctx, val); JS_ThrowTypeError(ctx, "proxy: properties must be strings or symbols"); goto fail; } atom = JS_ValueToAtom(ctx, val); JS_FreeValue(ctx, val); if (atom == JS_ATOM_NULL) goto fail; tab[i].atom = atom; tab[i].is_enumerable = FALSE; /* XXX: redundant? */ } /* check duplicate properties (XXX: inefficient, could store the * properties an a temporary object to use the hash) */ for(i = 1; i < len; i++) { if (find_prop_key(tab, i, tab[i].atom) >= 0) { JS_ThrowTypeError(ctx, "proxy: duplicate property"); goto fail; } } is_extensible = JS_IsExtensible(ctx, s->target); if (is_extensible < 0) goto fail; /* check if there are non configurable properties */ if (s->is_revoked) { JS_ThrowTypeErrorRevokedProxy(ctx); goto fail; } if (JS_GetOwnPropertyNamesInternal(ctx, &tab2, &len2, JS_VALUE_GET_OBJ(s->target), JS_GPN_STRING_MASK | JS_GPN_SYMBOL_MASK)) goto fail; for(i = 0; i < len2; i++) { if (s->is_revoked) { JS_ThrowTypeErrorRevokedProxy(ctx); goto fail; } res = JS_GetOwnPropertyInternal(ctx, &desc, JS_VALUE_GET_OBJ(s->target), tab2[i].atom); if (res < 0) goto fail; if (res) { /* safety, property should be found */ js_free_desc(ctx, &desc); if (!(desc.flags & JS_PROP_CONFIGURABLE) || !is_extensible) { idx = find_prop_key(tab, len, tab2[i].atom); if (idx < 0) { JS_ThrowTypeError(ctx, "proxy: target property must be present in proxy ownKeys"); goto fail; } /* mark the property as found */ if (!is_extensible) tab[idx].is_enumerable = TRUE; } } } if (!is_extensible) { /* check that all property in 'tab' were checked */ for(i = 0; i < len; i++) { if (!tab[i].is_enumerable) { JS_ThrowTypeError(ctx, "proxy: property not present in target were returned by non extensible proxy"); goto fail; } } } js_free_prop_enum(ctx, tab2, len2); JS_FreeValue(ctx, prop_array); *ptab = tab; *plen = len; return 0; fail: js_free_prop_enum(ctx, tab2, len2); js_free_prop_enum(ctx, tab, len); JS_FreeValue(ctx, prop_array); return -1; }
O2
c
js_proxy_get_own_property_names: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xc8, %rsp movq %r8, %rax movq %rdx, %r12 movq %rsi, %r15 movq %rdi, %rbx leaq 0x80(%rsp), %rsi pushq $0x68 popq %r8 movq %rcx, %rdx movq %rax, %rcx callq 0x398b1 pushq $-0x1 popq %rbp testq %rax, %rax je 0x46ffd movq 0x88(%rsp), %rdx cmpl $0x3, %edx jne 0x46ddc movq (%rax), %rcx pushq $0x3 popq %r8 movq %rbx, %rdi movq %r15, %rsi movq %r12, %rdx addq $0xc8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x2119f movq 0x80(%rsp), %rsi movq 0x10(%rax), %rcx movq 0x18(%rax), %r8 movq %rax, 0x48(%rsp) movq %rax, (%rsp) pushq $0x1 popq %r9 movq %rbx, %rdi callq 0x2093e movq %rdx, %r13 cmpl $0x6, %r13d je 0x46ffd movq %rax, %r14 movq %r15, 0x68(%rsp) leaq 0x7c(%rsp), %r15 andl $0x0, (%r15) andq $0x0, 0x70(%rsp) andl $0x0, 0x44(%rsp) movq %rbx, %rdi movq %r15, %rsi movq %rax, %rdx movq %r13, %rcx callq 0x3d0a2 movl (%r15), %ecx testl %eax, %eax movq %rcx, 0x38(%rsp) je 0x46e54 xorl %r15d, %r15d xorl %esi, %esi xorl %r12d, %r12d jmp 0x46fd4 movq %r12, 0x60(%rsp) testl %ecx, %ecx je 0x46e8a leaq (,%rcx,8), %rsi movq %rbx, %rdi movq %rcx, %r15 callq 0x1adf1 movq %rax, %r12 movq %r15, 0x30(%rsp) testq %rax, %rax jne 0x46e96 xorl %esi, %esi xorl %r12d, %r12d xorl %r15d, %r15d jmp 0x46fd4 movq $0x0, 0x30(%rsp) xorl %r12d, %r12d xorl %ebp, %ebp movq %r13, 0x58(%rsp) movq %r14, 0x50(%rsp) movq %r12, 0x28(%rsp) cmpq %rbp, 0x30(%rsp) je 0x46f19 movq %rbx, %rdi movq %r14, %rsi movq %r13, %rdx movq %rbp, %rcx callq 0x21d28 movq %rax, %r15 movq %rdx, %r12 leal 0x8(%rdx), %eax cmpl $0x2, %eax jae 0x46f54 movq %rbx, %rdi movq %r15, %rsi movq %r12, %rdx callq 0x21c6c movl %eax, %r13d movq %rbx, %r14 movq %rbx, %rdi movq %r15, %rsi movq %r12, %rdx callq 0x1bbce testl %r13d, %r13d je 0x46f62 movq 0x28(%rsp), %r12 movl %r13d, 0x4(%r12,%rbp,8) andl $0x0, (%r12,%rbp,8) incq %rbp movq 0x58(%rsp), %r13 movq %r14, %rbx movq 0x50(%rsp), %r14 jmp 0x46ea7 pushq $0x1 popq %r15 pushq $-0x1 popq %rbp cmpq 0x30(%rsp), %r15 jae 0x46f79 movl 0x4(%r12,%r15,8), %edx movq %r12, %rdi movl %r15d, %esi callq 0x48123 incq %r15 testl %eax, %eax js 0x46f20 leaq 0x43278(%rip), %rsi # 0x8a1bd xorl %r15d, %r15d movq %rbx, %rdi xorl %eax, %eax callq 0x201fd jmp 0x46fa7 cmpl $0x6, %r12d pushq $-0x1 popq %rbp jne 0x46fab xorl %r15d, %r15d jmp 0x46fcd xorl %r15d, %r15d xorl %esi, %esi pushq $-0x1 popq %rbp movq 0x58(%rsp), %r13 movq %r14, %rbx movq 0x50(%rsp), %r14 jmp 0x46fcf movq 0x48(%rsp), %r15 movq (%r15), %rsi movq 0x8(%r15), %rdx movq %rbx, %rdi callq 0x219ba movl %eax, 0x1c(%rsp) testl %eax, %eax js 0x46fa4 cmpb $0x0, 0x21(%r15) je 0x47011 movq %rbx, %rdi callq 0x3994f xorl %r15d, %r15d xorl %esi, %esi jmp 0x46fd4 movq %rbx, %rdi movq %r15, %rsi movq %r12, %rdx callq 0x1bbce leaq 0x431d0(%rip), %rsi # 0x8a190 xorl %r15d, %r15d movq %rbx, %rdi xorl %eax, %eax callq 0x201fd xorl %esi, %esi movq 0x28(%rsp), %r12 movq %rbx, %rdi movl %r15d, %edx callq 0x21973 movq %rbx, %rdi movq %r12, %rsi movq 0x38(%rsp), %rdx callq 0x21973 movq %rbx, %rdi movq %r14, %rsi movq %r13, %rdx callq 0x1bbce movl %ebp, %eax addq $0xc8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq (%r15), %rcx leaq 0x70(%rsp), %r15 leaq 0x44(%rsp), %r12 pushq $0x3 popq %r8 movq %rbx, %rdi movq %r15, %rsi movq %r12, %rdx callq 0x2119f movq (%r15), %rsi movl (%r12), %r15d testl %eax, %eax jne 0x46fcf movq %rsi, 0x10(%rsp) movq %r15, 0x20(%rsp) xorl %r15d, %r15d movq 0x28(%rsp), %r12 cmpq %r15, 0x20(%rsp) je 0x470e9 movq 0x48(%rsp), %rax cmpb $0x0, 0x21(%rax) jne 0x4712b movq (%rax), %rdx movq 0x10(%rsp), %rax movl 0x4(%rax,%r15,8), %ecx movq %rbx, %rdi leaq 0x90(%rsp), %rsi callq 0x21730 testl %eax, %eax js 0x4717a je 0x470e1 movq %rbx, %rdi leaq 0x90(%rsp), %rsi callq 0x39c9d cmpl $0x0, 0x1c(%rsp) je 0x470b1 movl 0x90(%rsp), %eax andl $0x1, %eax jne 0x470e1 movq 0x10(%rsp), %rax movl 0x4(%rax,%r15,8), %edx movq %r12, %rdi movq 0x38(%rsp), %rsi callq 0x48123 testl %eax, %eax js 0x47169 cmpl $0x0, 0x1c(%rsp) jne 0x470e1 movl %eax, %eax movl $0x1, (%r12,%rax,8) incq %r15 jmp 0x4704d cmpl $0x0, 0x1c(%rsp) movq 0x68(%rsp), %r15 movq 0x10(%rsp), %rsi je 0x47135 movq %rbx, %rdi movq 0x20(%rsp), %rdx callq 0x21973 movq %rbx, %rdi movq %r14, %rsi movq %r13, %rdx callq 0x1bbce movq %r12, (%r15) movq 0x38(%rsp), %rax movq 0x60(%rsp), %rcx movl %eax, (%rcx) xorl %ebp, %ebp jmp 0x46ffd movq %rbx, %rdi callq 0x3994f jmp 0x4717a xorl %eax, %eax cmpq %rax, 0x30(%rsp) je 0x470fa cmpl $0x0, (%r12,%rax,8) leaq 0x1(%rax), %rax jne 0x47137 leaq 0x430bf(%rip), %rsi # 0x8a20f movq %rbx, %rdi xorl %eax, %eax callq 0x201fd movq 0x10(%rsp), %rsi movq 0x20(%rsp), %r15 jmp 0x46fd4 leaq 0x43067(%rip), %rsi # 0x8a1d7 movq %rbx, %rdi xorl %eax, %eax callq 0x201fd movq 0x20(%rsp), %r15 movq 0x10(%rsp), %rsi jmp 0x46fd4
js_proxy_get_own_property_names: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 0C8h mov rax, r8 mov r12, rdx mov r15, rsi mov rbx, rdi lea rsi, [rsp+0F8h+var_78] push 68h ; 'h' pop r8 mov rdx, rcx mov rcx, rax call get_proxy_method push 0FFFFFFFFFFFFFFFFh pop rbp test rax, rax jz loc_46FFD mov rdx, [rsp+0F8h+var_70] cmp edx, 3 jnz short loc_46DDC mov rcx, [rax] push 3 pop r8 mov rdi, rbx mov rsi, r15 mov rdx, r12 add rsp, 0C8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp JS_GetOwnPropertyNamesInternal loc_46DDC: mov rsi, [rsp+0F8h+var_78] mov rcx, [rax+10h] mov r8, [rax+18h] mov [rsp+0F8h+var_B0], rax mov [rsp+0F8h+var_F8], rax push 1 pop r9 mov rdi, rbx call JS_CallFree mov r13, rdx cmp r13d, 6 jz loc_46FFD mov r14, rax mov [rsp+0F8h+var_90], r15 lea r15, [rsp+0F8h+var_7C] and dword ptr [r15], 0 and [rsp+0F8h+var_88], 0 and [rsp+0F8h+var_B4], 0 mov rdi, rbx mov rsi, r15 mov rdx, rax mov rcx, r13 call js_get_length32 mov ecx, [r15] test eax, eax mov [rsp+0F8h+var_C0], rcx jz short loc_46E54 xor r15d, r15d xor esi, esi xor r12d, r12d jmp loc_46FD4 loc_46E54: mov [rsp+0F8h+var_98], r12 test ecx, ecx jz short loc_46E8A lea rsi, ds:0[rcx*8] mov rdi, rbx mov r15, rcx call js_mallocz mov r12, rax mov [rsp+0F8h+var_C8], r15 test rax, rax jnz short loc_46E96 xor esi, esi xor r12d, r12d xor r15d, r15d jmp loc_46FD4 loc_46E8A: mov [rsp+0F8h+var_C8], 0 xor r12d, r12d loc_46E96: xor ebp, ebp mov [rsp+0F8h+var_A0], r13 mov [rsp+0F8h+var_A8], r14 mov [rsp+0F8h+var_D0], r12 loc_46EA7: cmp [rsp+0F8h+var_C8], rbp jz short loc_46F19 mov rdi, rbx mov rsi, r14 mov rdx, r13 mov rcx, rbp call JS_GetPropertyInt64 mov r15, rax mov r12, rdx lea eax, [rdx+8] cmp eax, 2 jnb loc_46F54 mov rdi, rbx mov rsi, r15 mov rdx, r12 call JS_ValueToAtom mov r13d, eax mov r14, rbx mov rdi, rbx mov rsi, r15 mov rdx, r12 call JS_FreeValue test r13d, r13d jz short loc_46F62 mov r12, [rsp+0F8h+var_D0] mov [r12+rbp*8+4], r13d and dword ptr [r12+rbp*8], 0 inc rbp mov r13, [rsp+0F8h+var_A0] mov rbx, r14 mov r14, [rsp+0F8h+var_A8] jmp short loc_46EA7 loc_46F19: push 1 pop r15 push 0FFFFFFFFFFFFFFFFh pop rbp loc_46F20: cmp r15, [rsp+0F8h+var_C8] jnb short loc_46F79 mov edx, [r12+r15*8+4] mov rdi, r12 mov esi, r15d call find_prop_key inc r15 test eax, eax js short loc_46F20 lea rsi, aProxyDuplicate; "proxy: duplicate property" xor r15d, r15d mov rdi, rbx xor eax, eax call JS_ThrowTypeError jmp short loc_46FA7 loc_46F54: cmp r12d, 6 push 0FFFFFFFFFFFFFFFFh pop rbp jnz short loc_46FAB xor r15d, r15d jmp short loc_46FCD loc_46F62: xor r15d, r15d xor esi, esi push 0FFFFFFFFFFFFFFFFh pop rbp mov r13, [rsp+0F8h+var_A0] mov rbx, r14 mov r14, [rsp+0F8h+var_A8] jmp short loc_46FCF loc_46F79: mov r15, [rsp+0F8h+var_B0] mov rsi, [r15] mov rdx, [r15+8] mov rdi, rbx call JS_IsExtensible mov [rsp+0F8h+var_DC], eax test eax, eax js short loc_46FA4 cmp byte ptr [r15+21h], 0 jz short loc_47011 mov rdi, rbx call JS_ThrowTypeErrorRevokedProxy loc_46FA4: xor r15d, r15d loc_46FA7: xor esi, esi jmp short loc_46FD4 loc_46FAB: mov rdi, rbx mov rsi, r15 mov rdx, r12 call JS_FreeValue lea rsi, aProxyPropertie; "proxy: properties must be strings or sy"... xor r15d, r15d mov rdi, rbx xor eax, eax call JS_ThrowTypeError loc_46FCD: xor esi, esi loc_46FCF: mov r12, [rsp+0F8h+var_D0] loc_46FD4: mov rdi, rbx mov edx, r15d call js_free_prop_enum mov rdi, rbx mov rsi, r12 mov rdx, [rsp+0F8h+var_C0] call js_free_prop_enum mov rdi, rbx mov rsi, r14 mov rdx, r13 call JS_FreeValue loc_46FFD: mov eax, ebp add rsp, 0C8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_47011: mov rcx, [r15] lea r15, [rsp+0F8h+var_88] lea r12, [rsp+0F8h+var_B4] push 3 pop r8 mov rdi, rbx mov rsi, r15 mov rdx, r12 call JS_GetOwnPropertyNamesInternal mov rsi, [r15] mov r15d, [r12] test eax, eax jnz short loc_46FCF mov [rsp+0F8h+var_E8], rsi mov [rsp+0F8h+var_D8], r15 xor r15d, r15d mov r12, [rsp+0F8h+var_D0] loc_4704D: cmp [rsp+0F8h+var_D8], r15 jz loc_470E9 mov rax, [rsp+0F8h+var_B0] cmp byte ptr [rax+21h], 0 jnz loc_4712B mov rdx, [rax] mov rax, [rsp+0F8h+var_E8] mov ecx, [rax+r15*8+4] mov rdi, rbx lea rsi, [rsp+0F8h+var_68] call JS_GetOwnPropertyInternal test eax, eax js loc_4717A jz short loc_470E1 mov rdi, rbx lea rsi, [rsp+0F8h+var_68] call js_free_desc cmp [rsp+0F8h+var_DC], 0 jz short loc_470B1 mov eax, [rsp+0F8h+var_68] and eax, 1 jnz short loc_470E1 loc_470B1: mov rax, [rsp+0F8h+var_E8] mov edx, [rax+r15*8+4] mov rdi, r12 mov rsi, [rsp+0F8h+var_C0] call find_prop_key test eax, eax js loc_47169 cmp [rsp+0F8h+var_DC], 0 jnz short loc_470E1 mov eax, eax mov dword ptr [r12+rax*8], 1 loc_470E1: inc r15 jmp loc_4704D loc_470E9: cmp [rsp+0F8h+var_DC], 0 mov r15, [rsp+0F8h+var_90] mov rsi, [rsp+0F8h+var_E8] jz short loc_47135 loc_470FA: mov rdi, rbx mov rdx, [rsp+0F8h+var_D8] call js_free_prop_enum mov rdi, rbx mov rsi, r14 mov rdx, r13 call JS_FreeValue mov [r15], r12 mov rax, [rsp+0F8h+var_C0] mov rcx, [rsp+0F8h+var_98] mov [rcx], eax xor ebp, ebp jmp loc_46FFD loc_4712B: mov rdi, rbx call JS_ThrowTypeErrorRevokedProxy jmp short loc_4717A loc_47135: xor eax, eax loc_47137: cmp [rsp+0F8h+var_C8], rax jz short loc_470FA cmp dword ptr [r12+rax*8], 0 lea rax, [rax+1] jnz short loc_47137 lea rsi, aProxyPropertyN; "proxy: property not present in target w"... mov rdi, rbx xor eax, eax call JS_ThrowTypeError mov rsi, [rsp+0F8h+var_E8] mov r15, [rsp+0F8h+var_D8] jmp loc_46FD4 loc_47169: lea rsi, aProxyTargetPro; "proxy: target property must be present "... mov rdi, rbx xor eax, eax call JS_ThrowTypeError loc_4717A: mov r15, [rsp+0F8h+var_D8] mov rsi, [rsp+0F8h+var_E8] jmp loc_46FD4
long long js_proxy_get_own_property_names( long long a1, long long *a2, int *a3, long long a4, int a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, double a10, double a11, __m128 a12, __m128 a13) { long long *proxy_method; // rax unsigned int v15; // ebp long long v17; // rcx long long v18; // r8 long long v19; // rax long long v20; // rdx long long v21; // r13 long long v22; // r14 int length32; // eax __m128 v24; // xmm4 __m128 v25; // xmm5 unsigned int v26; // r15d long long *v27; // rsi long long v28; // r12 unsigned long long v29; // r15 unsigned long long v30; // rbp long long v31; // rdx unsigned long long PropertyInt64; // r15 long long v33; // r12 int v34; // r13d unsigned long long v35; // r15 int prop_key; // eax long long v37; // rdx long long v38; // rcx long long v39; // r8 long long v40; // r9 long long v41; // rsi long long v42; // rdx long long v43; // rcx long long v44; // r8 long long v45; // r9 __m128 v46; // xmm4 __m128 v47; // xmm5 long long v48; // rdx long long v49; // rcx long long v50; // r8 long long v51; // r9 __m128 v52; // xmm4 __m128 v53; // xmm5 int OwnPropertyNamesInternal; // eax long long v55; // rdx long long v56; // rcx unsigned int *v57; // r8 long long v58; // r9 __m128 v59; // xmm4 __m128 v60; // xmm5 long long v61; // r15 int v62; // eax int v63; // eax long long *v64; // r15 long long v65; // rax char v67; // [rsp+0h] [rbp-F8h] long long v68; // [rsp+10h] [rbp-E8h] int IsExtensible; // [rsp+1Ch] [rbp-DCh] long long v70; // [rsp+20h] [rbp-D8h] long long v71; // [rsp+28h] [rbp-D0h] unsigned long long v72; // [rsp+30h] [rbp-C8h] long long *v73; // [rsp+38h] [rbp-C0h] unsigned int v74; // [rsp+44h] [rbp-B4h] BYREF long long *v75; // [rsp+48h] [rbp-B0h] long long v76; // [rsp+50h] [rbp-A8h] long long v77; // [rsp+58h] [rbp-A0h] int *v78; // [rsp+60h] [rbp-98h] long long *v79; // [rsp+68h] [rbp-90h] long long *v80; // [rsp+70h] [rbp-88h] BYREF unsigned int v81; // [rsp+7Ch] [rbp-7Ch] BYREF long long v82; // [rsp+80h] [rbp-78h] BYREF long long v83; // [rsp+88h] [rbp-70h] long long v84[13]; // [rsp+90h] [rbp-68h] BYREF proxy_method = (long long *)get_proxy_method(a1, (unsigned long long *)&v82, a4, a5, 104); v15 = -1; if ( !proxy_method ) return v15; if ( (_DWORD)v83 == 3 ) return JS_GetOwnPropertyNamesInternal(a1, a2, a3, *proxy_method, 3); v17 = proxy_method[2]; v18 = proxy_method[3]; v75 = proxy_method; v19 = JS_CallFree(a1, v82, v83, v17, v18, 1, (long long)proxy_method); v21 = v20; if ( (_DWORD)v20 == 6 ) return v15; v22 = v19; v79 = a2; v81 = 0; v80 = 0LL; v74 = 0; length32 = js_get_length32(a1, &v81, v19, v20); v73 = (long long *)v81; if ( length32 ) { v26 = 0; v27 = 0LL; v28 = 0LL; goto LABEL_31; } v78 = a3; if ( v81 ) { v29 = v81; v28 = js_mallocz(a1, 8LL * v81); v72 = v29; if ( !v28 ) { v27 = 0LL; v28 = 0LL; v26 = 0; goto LABEL_31; } } else { v72 = 0LL; v28 = 0LL; } v30 = 0LL; v77 = v21; v76 = v22; v71 = v28; while ( 1 ) { if ( v72 == v30 ) { v35 = 1LL; v15 = -1; while ( v35 < v72 ) { prop_key = find_prop_key(v28, (unsigned int)v35, *(unsigned int *)(v28 + 8 * v35 + 4)); ++v35; if ( prop_key >= 0 ) { v26 = 0; JS_ThrowTypeError( a1, (long long)"proxy: duplicate property", v37, v38, v39, v40, a6, a7, a8, a9, v24, v25, a12, a13, v67); LABEL_27: v27 = 0LL; goto LABEL_31; } } v41 = *v75; IsExtensible = JS_IsExtensible( a1, *v75, v75[1], a6, a7, a8, a9, *(double *)v24.m128_u64, *(double *)v25.m128_u64, a12, a13); if ( IsExtensible >= 0 ) { if ( !*((_BYTE *)v75 + 33) ) { OwnPropertyNamesInternal = JS_GetOwnPropertyNamesInternal(a1, &v80, (int *)&v74, *v75, 3); v27 = v80; v26 = v74; if ( OwnPropertyNamesInternal ) goto LABEL_30; v68 = (long long)v80; v70 = v74; v61 = 0LL; v28 = v71; while ( v70 != v61 ) { if ( *((_BYTE *)v75 + 33) ) { JS_ThrowTypeErrorRevokedProxy( a1, a6, a7, a8, a9, v59, v60, a12, a13, (long long)v27, v55, v56, (long long)v57, v58, v67); LABEL_53: v26 = v70; v27 = (long long *)v68; goto LABEL_31; } v27 = v84; LOBYTE(v62) = JS_GetOwnPropertyInternal(a1, (long long)v84, *v75, *(_DWORD *)(v68 + 8 * v61 + 4), v57); if ( v62 < 0 ) goto LABEL_53; if ( v62 ) { v27 = v84; js_free_desc(a1, v84); if ( !IsExtensible || (v84[0] & 1) == 0 ) { v27 = v73; v63 = find_prop_key(v71, v73, *(unsigned int *)(v68 + 8 * v61 + 4)); if ( v63 < 0 ) { JS_ThrowTypeError( a1, (long long)"proxy: target property must be present in proxy ownKeys", v55, v56, (long long)v57, v58, a6, a7, a8, a9, v59, v60, a12, a13, v67); goto LABEL_53; } if ( !IsExtensible ) *(_DWORD *)(v71 + 8LL * (unsigned int)v63) = 1; } } ++v61; } v64 = v79; if ( !IsExtensible ) { v65 = 0LL; while ( v72 != v65 ) { if ( *(_DWORD *)(v71 + 8 * v65++) == 0 ) { JS_ThrowTypeError( a1, (long long)"proxy: property not present in target were returned by non extensible proxy", v55, v56, (long long)v57, v58, a6, a7, a8, a9, v59, v60, a12, a13, v67); v27 = (long long *)v68; v26 = v70; goto LABEL_31; } } } js_free_prop_enum(a1, v68, v70); JS_FreeValue(a1, v22, v21); *v64 = v71; *v78 = (int)v73; return 0; } JS_ThrowTypeErrorRevokedProxy(a1, a6, a7, a8, a9, v46, v47, a12, a13, v41, v42, v43, v44, v45, v67); } v26 = 0; goto LABEL_27; } PropertyInt64 = JS_GetPropertyInt64(a1, v22, v21, v30); v33 = v31; if ( (unsigned int)(v31 + 8) >= 2 ) break; v34 = JS_ValueToAtom(a1, PropertyInt64, v31); JS_FreeValue(a1, PropertyInt64, v33); if ( !v34 ) { v26 = 0; v27 = 0LL; v15 = -1; v21 = v77; v22 = v76; goto LABEL_30; } v28 = v71; *(_DWORD *)(v71 + 8 * v30 + 4) = v34; *(_DWORD *)(v71 + 8 * v30++) = 0; v21 = v77; v22 = v76; } v15 = -1; if ( (_DWORD)v31 == 6 ) { v26 = 0; } else { JS_FreeValue(a1, PropertyInt64, v31); v26 = 0; JS_ThrowTypeError( a1, (long long)"proxy: properties must be strings or symbols", v48, v49, v50, v51, a6, a7, a8, a9, v52, v53, a12, a13, v67); } v27 = 0LL; LABEL_30: v28 = v71; LABEL_31: js_free_prop_enum(a1, (long long)v27, v26); js_free_prop_enum(a1, v28, (unsigned int)v73); JS_FreeValue(a1, v22, v21); return v15; }
js_proxy_get_own_property_names: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xc8 MOV RAX,R8 MOV R12,RDX MOV R15,RSI MOV RBX,RDI LEA RSI,[RSP + 0x80] PUSH 0x68 POP R8 MOV RDX,RCX MOV RCX,RAX CALL 0x001398b1 PUSH -0x1 POP RBP TEST RAX,RAX JZ 0x00146ffd MOV RDX,qword ptr [RSP + 0x88] CMP EDX,0x3 JNZ 0x00146ddc MOV RCX,qword ptr [RAX] PUSH 0x3 POP R8 MOV RDI,RBX MOV RSI,R15 MOV RDX,R12 ADD RSP,0xc8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x0012119f LAB_00146ddc: MOV RSI,qword ptr [RSP + 0x80] MOV RCX,qword ptr [RAX + 0x10] MOV R8,qword ptr [RAX + 0x18] MOV qword ptr [RSP + 0x48],RAX MOV qword ptr [RSP],RAX PUSH 0x1 POP R9 MOV RDI,RBX CALL 0x0012093e MOV R13,RDX CMP R13D,0x6 JZ 0x00146ffd MOV R14,RAX MOV qword ptr [RSP + 0x68],R15 LEA R15,[RSP + 0x7c] AND dword ptr [R15],0x0 AND qword ptr [RSP + 0x70],0x0 AND dword ptr [RSP + 0x44],0x0 MOV RDI,RBX MOV RSI,R15 MOV RDX,RAX MOV RCX,R13 CALL 0x0013d0a2 MOV ECX,dword ptr [R15] TEST EAX,EAX MOV qword ptr [RSP + 0x38],RCX JZ 0x00146e54 XOR R15D,R15D XOR ESI,ESI XOR R12D,R12D JMP 0x00146fd4 LAB_00146e54: MOV qword ptr [RSP + 0x60],R12 TEST ECX,ECX JZ 0x00146e8a LEA RSI,[RCX*0x8] MOV RDI,RBX MOV R15,RCX CALL 0x0011adf1 MOV R12,RAX MOV qword ptr [RSP + 0x30],R15 TEST RAX,RAX JNZ 0x00146e96 XOR ESI,ESI XOR R12D,R12D XOR R15D,R15D JMP 0x00146fd4 LAB_00146e8a: MOV qword ptr [RSP + 0x30],0x0 XOR R12D,R12D LAB_00146e96: XOR EBP,EBP MOV qword ptr [RSP + 0x58],R13 MOV qword ptr [RSP + 0x50],R14 MOV qword ptr [RSP + 0x28],R12 LAB_00146ea7: CMP qword ptr [RSP + 0x30],RBP JZ 0x00146f19 MOV RDI,RBX MOV RSI,R14 MOV RDX,R13 MOV RCX,RBP CALL 0x00121d28 MOV R15,RAX MOV R12,RDX LEA EAX,[RDX + 0x8] CMP EAX,0x2 JNC 0x00146f54 MOV RDI,RBX MOV RSI,R15 MOV RDX,R12 CALL 0x00121c6c MOV R13D,EAX MOV R14,RBX MOV RDI,RBX MOV RSI,R15 MOV RDX,R12 CALL 0x0011bbce TEST R13D,R13D JZ 0x00146f62 MOV R12,qword ptr [RSP + 0x28] MOV dword ptr [R12 + RBP*0x8 + 0x4],R13D AND dword ptr [R12 + RBP*0x8],0x0 INC RBP MOV R13,qword ptr [RSP + 0x58] MOV RBX,R14 MOV R14,qword ptr [RSP + 0x50] JMP 0x00146ea7 LAB_00146f19: PUSH 0x1 POP R15 PUSH -0x1 POP RBP LAB_00146f20: CMP R15,qword ptr [RSP + 0x30] JNC 0x00146f79 MOV EDX,dword ptr [R12 + R15*0x8 + 0x4] MOV RDI,R12 MOV ESI,R15D CALL 0x00148123 INC R15 TEST EAX,EAX JS 0x00146f20 LEA RSI,[0x18a1bd] XOR R15D,R15D MOV RDI,RBX XOR EAX,EAX CALL 0x001201fd JMP 0x00146fa7 LAB_00146f54: CMP R12D,0x6 PUSH -0x1 POP RBP JNZ 0x00146fab XOR R15D,R15D JMP 0x00146fcd LAB_00146f62: XOR R15D,R15D XOR ESI,ESI PUSH -0x1 POP RBP MOV R13,qword ptr [RSP + 0x58] MOV RBX,R14 MOV R14,qword ptr [RSP + 0x50] JMP 0x00146fcf LAB_00146f79: MOV R15,qword ptr [RSP + 0x48] MOV RSI,qword ptr [R15] MOV RDX,qword ptr [R15 + 0x8] MOV RDI,RBX CALL 0x001219ba MOV dword ptr [RSP + 0x1c],EAX TEST EAX,EAX JS 0x00146fa4 CMP byte ptr [R15 + 0x21],0x0 JZ 0x00147011 MOV RDI,RBX CALL 0x0013994f LAB_00146fa4: XOR R15D,R15D LAB_00146fa7: XOR ESI,ESI JMP 0x00146fd4 LAB_00146fab: MOV RDI,RBX MOV RSI,R15 MOV RDX,R12 CALL 0x0011bbce LEA RSI,[0x18a190] XOR R15D,R15D MOV RDI,RBX XOR EAX,EAX CALL 0x001201fd LAB_00146fcd: XOR ESI,ESI LAB_00146fcf: MOV R12,qword ptr [RSP + 0x28] LAB_00146fd4: MOV RDI,RBX MOV EDX,R15D CALL 0x00121973 MOV RDI,RBX MOV RSI,R12 MOV RDX,qword ptr [RSP + 0x38] CALL 0x00121973 MOV RDI,RBX MOV RSI,R14 MOV RDX,R13 CALL 0x0011bbce LAB_00146ffd: MOV EAX,EBP ADD RSP,0xc8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00147011: MOV RCX,qword ptr [R15] LEA R15,[RSP + 0x70] LEA R12,[RSP + 0x44] PUSH 0x3 POP R8 MOV RDI,RBX MOV RSI,R15 MOV RDX,R12 CALL 0x0012119f MOV RSI,qword ptr [R15] MOV R15D,dword ptr [R12] TEST EAX,EAX JNZ 0x00146fcf MOV qword ptr [RSP + 0x10],RSI MOV qword ptr [RSP + 0x20],R15 XOR R15D,R15D MOV R12,qword ptr [RSP + 0x28] LAB_0014704d: CMP qword ptr [RSP + 0x20],R15 JZ 0x001470e9 MOV RAX,qword ptr [RSP + 0x48] CMP byte ptr [RAX + 0x21],0x0 JNZ 0x0014712b MOV RDX,qword ptr [RAX] MOV RAX,qword ptr [RSP + 0x10] MOV ECX,dword ptr [RAX + R15*0x8 + 0x4] MOV RDI,RBX LEA RSI,[RSP + 0x90] CALL 0x00121730 TEST EAX,EAX JS 0x0014717a JZ 0x001470e1 MOV RDI,RBX LEA RSI,[RSP + 0x90] CALL 0x00139c9d CMP dword ptr [RSP + 0x1c],0x0 JZ 0x001470b1 MOV EAX,dword ptr [RSP + 0x90] AND EAX,0x1 JNZ 0x001470e1 LAB_001470b1: MOV RAX,qword ptr [RSP + 0x10] MOV EDX,dword ptr [RAX + R15*0x8 + 0x4] MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x38] CALL 0x00148123 TEST EAX,EAX JS 0x00147169 CMP dword ptr [RSP + 0x1c],0x0 JNZ 0x001470e1 MOV EAX,EAX MOV dword ptr [R12 + RAX*0x8],0x1 LAB_001470e1: INC R15 JMP 0x0014704d LAB_001470e9: CMP dword ptr [RSP + 0x1c],0x0 MOV R15,qword ptr [RSP + 0x68] MOV RSI,qword ptr [RSP + 0x10] JZ 0x00147135 LAB_001470fa: MOV RDI,RBX MOV RDX,qword ptr [RSP + 0x20] CALL 0x00121973 MOV RDI,RBX MOV RSI,R14 MOV RDX,R13 CALL 0x0011bbce MOV qword ptr [R15],R12 MOV RAX,qword ptr [RSP + 0x38] MOV RCX,qword ptr [RSP + 0x60] MOV dword ptr [RCX],EAX XOR EBP,EBP JMP 0x00146ffd LAB_0014712b: MOV RDI,RBX CALL 0x0013994f JMP 0x0014717a LAB_00147135: XOR EAX,EAX LAB_00147137: CMP qword ptr [RSP + 0x30],RAX JZ 0x001470fa CMP dword ptr [R12 + RAX*0x8],0x0 LEA RAX,[RAX + 0x1] JNZ 0x00147137 LEA RSI,[0x18a20f] MOV RDI,RBX XOR EAX,EAX CALL 0x001201fd MOV RSI,qword ptr [RSP + 0x10] MOV R15,qword ptr [RSP + 0x20] JMP 0x00146fd4 LAB_00147169: LEA RSI,[0x18a1d7] MOV RDI,RBX XOR EAX,EAX CALL 0x001201fd LAB_0014717a: MOV R15,qword ptr [RSP + 0x20] MOV RSI,qword ptr [RSP + 0x10] JMP 0x00146fd4
ulong js_proxy_get_own_property_names (int8 param_1,long *param_2,uint *param_3,int8 param_4, int8 param_5) { long lVar1; int8 *puVar2; long *plVar3; uint uVar4; int1 auVar5 [16]; int iVar6; int iVar7; uint uVar8; ulong uVar9; long lVar10; int8 uVar11; ulong uVar12; int8 uVar13; long lVar14; ulong uVar15; int1 auVar16 [16]; int1 auVar17 [16]; ulong local_c8; uint local_b4; int8 *local_b0; int1 local_a8 [16]; uint *local_98; long *local_90; long local_88; uint local_7c; int8 local_78; int8 local_70; uint local_68 [14]; local_b0 = (int8 *)get_proxy_method(param_1,&local_78,param_4,param_5,0x68); uVar9 = 0xffffffffffffffff; if (local_b0 == (int8 *)0x0) goto LAB_00146ffd; if ((int)local_70 == 3) { uVar9 = JS_GetOwnPropertyNamesInternal(param_1,param_2,param_3,*local_b0,3); return uVar9; } auVar16 = JS_CallFree(param_1,local_78,local_70,local_b0[2],local_b0[3],1,local_b0); if (auVar16._8_4_ == 6) goto LAB_00146ffd; local_7c = 0; local_88 = 0; local_b4 = 0; local_90 = param_2; iVar6 = js_get_length32(param_1,&local_7c,auVar16._0_8_,auVar16._8_8_); uVar4 = local_7c; uVar12 = (ulong)local_7c; if (iVar6 == 0) { local_98 = param_3; if (local_7c == 0) { local_c8 = 0; lVar10 = 0; } else { lVar10 = js_mallocz(param_1,uVar12 * 8); local_c8 = uVar12; if (lVar10 == 0) { lVar14 = 0; lVar10 = 0; uVar15 = 0; goto LAB_00146fd4; } } uVar9 = 0; while( true ) { local_a8._8_8_ = auVar16._8_8_; uVar13 = local_a8._8_8_; local_a8._0_8_ = auVar16._0_8_; uVar11 = local_a8._0_8_; if (local_c8 == uVar9) break; auVar5 = auVar16; auVar17 = JS_GetPropertyInt64(param_1,local_a8._0_8_,local_a8._8_8_,uVar9); local_a8 = auVar5; uVar13 = auVar17._8_8_; uVar11 = auVar17._0_8_; if (1 < auVar17._8_4_ + 8U) { if (auVar17._8_4_ != 6) { JS_FreeValue(param_1,uVar11,uVar13); JS_ThrowTypeError(param_1,"proxy: properties must be strings or symbols"); } uVar15 = 0; lVar14 = 0; goto LAB_00146fd4; } iVar6 = JS_ValueToAtom(param_1,uVar11,uVar13); JS_FreeValue(param_1,uVar11,uVar13); auVar16 = local_a8; if (iVar6 == 0) { uVar15 = 0; lVar14 = 0; goto LAB_00146fd4; } *(int *)(lVar10 + 4 + uVar9 * 8) = iVar6; *(int4 *)(lVar10 + uVar9 * 8) = 0; uVar9 = uVar9 + 1; } uVar9 = 1; local_a8 = auVar16; do { puVar2 = local_b0; if (local_c8 <= uVar9) { iVar6 = JS_IsExtensible(param_1,*local_b0,local_b0[1]); if (iVar6 < 0) goto LAB_00146fa7; if (*(char *)((long)puVar2 + 0x21) != '\0') { JS_ThrowTypeErrorRevokedProxy(param_1); goto LAB_00146fa7; } iVar7 = JS_GetOwnPropertyNamesInternal(param_1,&local_88,&local_b4,*puVar2,3); lVar14 = local_88; uVar15 = (ulong)local_b4; if (iVar7 != 0) goto LAB_00146fd4; uVar9 = 0; goto LAB_0014704d; } iVar6 = find_prop_key(lVar10,uVar9 & 0xffffffff,*(int4 *)(lVar10 + 4 + uVar9 * 8)); uVar9 = uVar9 + 1; } while (iVar6 < 0); JS_ThrowTypeError(param_1,"proxy: duplicate property"); LAB_00146fa7: uVar15 = 0; lVar14 = 0; } else { uVar15 = 0; lVar14 = 0; lVar10 = 0; } LAB_00146fd4: uVar9 = 0xffffffffffffffff; js_free_prop_enum(param_1,lVar14,uVar15); js_free_prop_enum(param_1,lVar10,uVar12); JS_FreeValue(param_1,auVar16._0_8_,auVar16._8_8_); LAB_00146ffd: return uVar9 & 0xffffffff; LAB_0014704d: plVar3 = local_90; if (uVar15 == uVar9) goto LAB_001470e9; if (*(char *)((long)local_b0 + 0x21) != '\0') { JS_ThrowTypeErrorRevokedProxy(param_1); goto LAB_00146fd4; } iVar7 = JS_GetOwnPropertyInternal (param_1,local_68,*local_b0,*(int4 *)(lVar14 + 4 + uVar9 * 8)); if (iVar7 < 0) goto LAB_00146fd4; if (iVar7 != 0) { js_free_desc(param_1,local_68); if ((iVar6 == 0) || ((local_68[0] & 1) == 0)) { uVar8 = find_prop_key(lVar10,uVar12,*(int4 *)(lVar14 + 4 + uVar9 * 8)); if ((int)uVar8 < 0) { JS_ThrowTypeError(param_1,"proxy: target property must be present in proxy ownKeys"); goto LAB_00146fd4; } if (iVar6 == 0) { *(int4 *)(lVar10 + (ulong)uVar8 * 8) = 1; } } } uVar9 = uVar9 + 1; goto LAB_0014704d; LAB_001470e9: if (iVar6 != 0) { LAB_001470fa: js_free_prop_enum(param_1,lVar14,uVar15); JS_FreeValue(param_1,uVar11,uVar13); *plVar3 = lVar10; *local_98 = uVar4; uVar9 = 0; goto LAB_00146ffd; } uVar9 = 0; do { if (local_c8 == uVar9) goto LAB_001470fa; lVar1 = uVar9 * 8; uVar9 = uVar9 + 1; } while (*(int *)(lVar10 + lVar1) != 0); JS_ThrowTypeError(param_1, "proxy: property not present in target were returned by non extensible proxy"); goto LAB_00146fd4; }
65,237
translog_write_variable_record_1chunk
eloqsql/storage/maria/ma_loghandler.c
static my_bool translog_write_variable_record_1chunk(LSN *lsn, enum translog_record_type type, MARIA_HA *tbl_info, SHORT_TRANSACTION_ID short_trid, struct st_translog_parts *parts, struct st_translog_buffer *buffer_to_flush, uint16 header_length, TRN *trn, void *hook_arg) { int rc; uchar chunk0_header[1 + 2 + 5 + 2]; DBUG_ENTER("translog_write_variable_record_1chunk"); translog_lock_assert_owner(); if (buffer_to_flush) translog_buffer_lock_assert_owner(buffer_to_flush); translog_write_variable_record_1group_header(parts, type, short_trid, header_length, chunk0_header); set_lsn(lsn, log_descriptor.horizon); if (translog_set_lsn_for_files(LSN_FILE_NO(*lsn), LSN_FILE_NO(*lsn), *lsn, TRUE) || (log_record_type_descriptor[type].inwrite_hook && (*log_record_type_descriptor[type].inwrite_hook)(type, trn, tbl_info, lsn, hook_arg))) { translog_unlock(); rc= 1; goto err; } rc= translog_write_parts_on_page(&log_descriptor.horizon, &log_descriptor.bc, parts->total_record_length, parts); log_descriptor.bc.buffer->last_lsn= *lsn; DBUG_PRINT("info", ("last_lsn set to " LSN_FMT " buffer: %p", LSN_IN_PARTS(log_descriptor.bc.buffer->last_lsn), log_descriptor.bc.buffer)); translog_unlock(); /* check if we switched buffer and need process it (current buffer is unlocked already => we will not delay other threads */ err: if (buffer_to_flush != NULL) { if (!rc) rc= translog_buffer_flush(buffer_to_flush); translog_buffer_unlock(buffer_to_flush); } DBUG_RETURN(rc); }
O0
c
translog_write_variable_record_1chunk: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movw %cx, %ax movq 0x20(%rbp), %rcx movq 0x18(%rbp), %rcx movw 0x10(%rbp), %cx movq %fs:0x28, %rcx movq %rcx, -0x8(%rbp) movq %rdi, -0x20(%rbp) movl %esi, -0x24(%rbp) movq %rdx, -0x30(%rbp) movw %ax, -0x32(%rbp) movq %r8, -0x40(%rbp) movq %r9, -0x48(%rbp) cmpq $0x0, -0x48(%rbp) je 0x5b244 jmp 0x5b244 movq -0x40(%rbp), %rdi movl -0x24(%rbp), %esi movw -0x32(%rbp), %cx movw 0x10(%rbp), %ax leaq -0x12(%rbp), %r8 movzwl %cx, %edx movzwl %ax, %ecx callq 0x5c6a0 movq -0x20(%rbp), %rdi movq 0xc2003b(%rip), %rsi # 0xc7b2a8 callq 0x5c770 movq -0x20(%rbp), %rax movq (%rax), %rax sarq $0x20, %rax movl %eax, %edi movq -0x20(%rbp), %rax movq (%rax), %rax sarq $0x20, %rax movl %eax, %esi movq -0x20(%rbp), %rax movq (%rax), %rdx movl $0x1, %ecx callq 0x5c7a0 movsbl %al, %eax cmpl $0x0, %eax jne 0x5b2f3 movl -0x24(%rbp), %eax movl %eax, %ecx leaq 0x41e1af(%rip), %rax # 0x479460 imulq $0x48, %rcx, %rcx addq %rcx, %rax cmpq $0x0, 0x10(%rax) je 0x5b301 movl -0x24(%rbp), %eax movl %eax, %ecx leaq 0x41e195(%rip), %rax # 0x479460 imulq $0x48, %rcx, %rcx addq %rcx, %rax movq 0x10(%rax), %rax movl -0x24(%rbp), %edi movq 0x18(%rbp), %rsi movq -0x30(%rbp), %rdx movq -0x20(%rbp), %rcx movq 0x20(%rbp), %r8 callq *%rax movsbl %al, %eax cmpl $0x0, %eax je 0x5b301 callq 0x51560 movl $0x1, -0x4c(%rbp) jmp 0x5b34b movq -0x40(%rbp), %rax movl 0x4(%rax), %edx movq -0x40(%rbp), %rcx leaq 0x41f34d(%rip), %rsi # 0x47a660 movq %rsi, %rdi addq $0x800c48, %rdi # imm = 0x800C48 addq $0x800c50, %rsi # imm = 0x800C50 callq 0x5c940 movsbl %al, %eax movl %eax, -0x4c(%rbp) movq -0x20(%rbp), %rax movq (%rax), %rcx movq 0xc1ff9b(%rip), %rax # 0xc7b2d8 movq %rcx, 0x100000(%rax) jmp 0x5b346 callq 0x51560 cmpq $0x0, -0x48(%rbp) je 0x5b370 cmpl $0x0, -0x4c(%rbp) jne 0x5b367 movq -0x48(%rbp), %rdi callq 0x57720 movsbl %al, %eax movl %eax, -0x4c(%rbp) movq -0x48(%rbp), %rdi callq 0x51530 jmp 0x5b372 movl -0x4c(%rbp), %eax movb %al, -0x4d(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x5b393 movb -0x4d(%rbp), %al addq $0x50, %rsp popq %rbp retq callq 0x2a270 nopl (%rax,%rax)
translog_write_variable_record_1chunk: push rbp mov rbp, rsp sub rsp, 50h mov ax, cx mov rcx, [rbp+arg_10] mov rcx, [rbp+arg_8] mov cx, [rbp+arg_0] mov rcx, fs:28h mov [rbp+var_8], rcx mov [rbp+var_20], rdi mov [rbp+var_24], esi mov [rbp+var_30], rdx mov [rbp+var_32], ax mov [rbp+var_40], r8 mov [rbp+var_48], r9 cmp [rbp+var_48], 0 jz short loc_5B244 jmp short $+2 loc_5B244: mov rdi, [rbp+var_40] mov esi, [rbp+var_24] mov cx, [rbp+var_32] mov ax, [rbp+arg_0] lea r8, [rbp+var_12] movzx edx, cx movzx ecx, ax call translog_write_variable_record_1group_header mov rdi, [rbp+var_20] mov rsi, cs:qword_C7B2A8 call set_lsn mov rax, [rbp+var_20] mov rax, [rax] sar rax, 20h mov edi, eax mov rax, [rbp+var_20] mov rax, [rax] sar rax, 20h mov esi, eax mov rax, [rbp+var_20] mov rdx, [rax] mov ecx, 1 call translog_set_lsn_for_files movsx eax, al cmp eax, 0 jnz short loc_5B2F3 mov eax, [rbp+var_24] mov ecx, eax lea rax, log_record_type_descriptor imul rcx, 48h ; 'H' add rax, rcx cmp qword ptr [rax+10h], 0 jz short loc_5B301 mov eax, [rbp+var_24] mov ecx, eax lea rax, log_record_type_descriptor imul rcx, 48h ; 'H' add rax, rcx mov rax, [rax+10h] mov edi, [rbp+var_24] mov rsi, [rbp+arg_8] mov rdx, [rbp+var_30] mov rcx, [rbp+var_20] mov r8, [rbp+arg_10] call rax movsx eax, al cmp eax, 0 jz short loc_5B301 loc_5B2F3: call translog_unlock mov [rbp+var_4C], 1 jmp short loc_5B34B loc_5B301: mov rax, [rbp+var_40] mov edx, [rax+4] mov rcx, [rbp+var_40] lea rsi, log_descriptor mov rdi, rsi add rdi, 800C48h add rsi, 800C50h call translog_write_parts_on_page movsx eax, al mov [rbp+var_4C], eax mov rax, [rbp+var_20] mov rcx, [rax] mov rax, cs:qword_C7B2D8 mov [rax+100000h], rcx jmp short $+2 loc_5B346: call translog_unlock loc_5B34B: cmp [rbp+var_48], 0 jz short loc_5B370 cmp [rbp+var_4C], 0 jnz short loc_5B367 mov rdi, [rbp+var_48] call translog_buffer_flush movsx eax, al mov [rbp+var_4C], eax loc_5B367: mov rdi, [rbp+var_48] call translog_buffer_unlock loc_5B370: jmp short $+2 loc_5B372: mov eax, [rbp+var_4C] mov [rbp+var_4D], al mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_5B393 mov al, [rbp+var_4D] add rsp, 50h pop rbp retn loc_5B393: call ___stack_chk_fail
char translog_write_variable_record_1chunk( _QWORD *a1, unsigned int a2, long long a3, unsigned __int16 a4, long long a5, long long a6, unsigned __int16 a7, long long a8, long long a9) { int v10; // [rsp+4h] [rbp-4Ch] _BYTE v14[10]; // [rsp+3Eh] [rbp-12h] BYREF unsigned long long v15; // [rsp+48h] [rbp-8h] v15 = __readfsqword(0x28u); translog_write_variable_record_1group_header(a5, a2, a4, a7, v14); set_lsn(a1, qword_C7B2A8); if ( (unsigned __int8)translog_set_lsn_for_files((unsigned int)HIDWORD(*a1), (unsigned int)HIDWORD(*a1), *a1, 1LL) || *(_QWORD *)&log_record_type_descriptor[18 * a2 + 4] && (*(unsigned __int8 ( **)(_QWORD, long long, long long, _QWORD *, long long))&log_record_type_descriptor[18 * a2 + 4])( a2, a8, a3, a1, a9) ) { translog_unlock(); v10 = 1; } else { v10 = (char)translog_write_parts_on_page( &log_descriptor[1048969], &log_descriptor[1048970], *(unsigned int *)(a5 + 4), a5); *(_QWORD *)(qword_C7B2D8 + 0x100000) = *a1; translog_unlock(); } if ( a6 ) { if ( !v10 ) LOBYTE(v10) = translog_buffer_flush(a6); translog_buffer_unlock(a6); } return v10; }
translog_write_variable_record_1chunk: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV AX,CX MOV RCX,qword ptr [RBP + 0x20] MOV RCX,qword ptr [RBP + 0x18] MOV CX,word ptr [RBP + 0x10] MOV RCX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RCX MOV qword ptr [RBP + -0x20],RDI MOV dword ptr [RBP + -0x24],ESI MOV qword ptr [RBP + -0x30],RDX MOV word ptr [RBP + -0x32],AX MOV qword ptr [RBP + -0x40],R8 MOV qword ptr [RBP + -0x48],R9 CMP qword ptr [RBP + -0x48],0x0 JZ 0x0015b244 JMP 0x0015b244 LAB_0015b244: MOV RDI,qword ptr [RBP + -0x40] MOV ESI,dword ptr [RBP + -0x24] MOV CX,word ptr [RBP + -0x32] MOV AX,word ptr [RBP + 0x10] LEA R8,[RBP + -0x12] MOVZX EDX,CX MOVZX ECX,AX CALL 0x0015c6a0 MOV RDI,qword ptr [RBP + -0x20] MOV RSI,qword ptr [0x00d7b2a8] CALL 0x0015c770 MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX] SAR RAX,0x20 MOV EDI,EAX MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX] SAR RAX,0x20 MOV ESI,EAX MOV RAX,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RAX] MOV ECX,0x1 CALL 0x0015c7a0 MOVSX EAX,AL CMP EAX,0x0 JNZ 0x0015b2f3 MOV EAX,dword ptr [RBP + -0x24] MOV ECX,EAX LEA RAX,[0x579460] IMUL RCX,RCX,0x48 ADD RAX,RCX CMP qword ptr [RAX + 0x10],0x0 JZ 0x0015b301 MOV EAX,dword ptr [RBP + -0x24] MOV ECX,EAX LEA RAX,[0x579460] IMUL RCX,RCX,0x48 ADD RAX,RCX MOV RAX,qword ptr [RAX + 0x10] MOV EDI,dword ptr [RBP + -0x24] MOV RSI,qword ptr [RBP + 0x18] MOV RDX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x20] MOV R8,qword ptr [RBP + 0x20] CALL RAX MOVSX EAX,AL CMP EAX,0x0 JZ 0x0015b301 LAB_0015b2f3: CALL 0x00151560 MOV dword ptr [RBP + -0x4c],0x1 JMP 0x0015b34b LAB_0015b301: MOV RAX,qword ptr [RBP + -0x40] MOV EDX,dword ptr [RAX + 0x4] MOV RCX,qword ptr [RBP + -0x40] LEA RSI,[0x57a660] MOV RDI,RSI ADD RDI,0x800c48 ADD RSI,0x800c50 CALL 0x0015c940 MOVSX EAX,AL MOV dword ptr [RBP + -0x4c],EAX MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [0x00d7b2d8] MOV qword ptr [RAX + 0x100000],RCX JMP 0x0015b346 LAB_0015b346: CALL 0x00151560 LAB_0015b34b: CMP qword ptr [RBP + -0x48],0x0 JZ 0x0015b370 CMP dword ptr [RBP + -0x4c],0x0 JNZ 0x0015b367 MOV RDI,qword ptr [RBP + -0x48] CALL 0x00157720 MOVSX EAX,AL MOV dword ptr [RBP + -0x4c],EAX LAB_0015b367: MOV RDI,qword ptr [RBP + -0x48] CALL 0x00151530 LAB_0015b370: JMP 0x0015b372 LAB_0015b372: MOV EAX,dword ptr [RBP + -0x4c] MOV byte ptr [RBP + -0x4d],AL MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x0015b393 MOV AL,byte ptr [RBP + -0x4d] ADD RSP,0x50 POP RBP RET LAB_0015b393: CALL 0x0012a270
int8 translog_write_variable_record_1chunk (long *param_1,uint param_2,int8 param_3,int2 param_4,long param_5, long param_6,int2 param_7,int8 param_8,int8 param_9) { char cVar1; long in_FS_OFFSET; int1 local_1a [10]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); translog_write_variable_record_1group_header(param_5,param_2,param_4,param_7,local_1a); set_lsn(param_1,DAT_00d7b2a8); cVar1 = translog_set_lsn_for_files (*param_1 >> 0x20 & 0xffffffff,*param_1 >> 0x20 & 0xffffffff,*param_1,1); if ((cVar1 == '\0') && ((*(long *)(log_record_type_descriptor + (ulong)param_2 * 0x48 + 0x10) == 0 || (cVar1 = (**(code **)(log_record_type_descriptor + (ulong)param_2 * 0x48 + 0x10)) (param_2,param_8,param_3,param_1,param_9), cVar1 == '\0')))) { cVar1 = translog_write_parts_on_page (&DAT_00d7b2a8,&DAT_00d7b2b0,*(int4 *)(param_5 + 4),param_5); *(long *)(DAT_00d7b2d8 + 0x100000) = *param_1; translog_unlock(); } else { translog_unlock(); cVar1 = '\x01'; } if (param_6 != 0) { if (cVar1 == '\0') { cVar1 = translog_buffer_flush(param_6); } translog_buffer_unlock(param_6); } if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),cVar1); } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
65,238
testing::internal::MakeAndRegisterTestInfo(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const*, char const*, char const*, testing::internal::CodeLocation, void const*, void (*)(), void (*)(), testing::internal::TestFactoryBase*)
AlayaLite/build_O3/_deps/googletest-src/googletest/src/gtest.cc
TestInfo* MakeAndRegisterTestInfo( std::string test_suite_name, const char* name, const char* type_param, const char* value_param, CodeLocation code_location, TypeId fixture_class_id, SetUpTestSuiteFunc set_up_tc, TearDownTestSuiteFunc tear_down_tc, TestFactoryBase* factory) { TestInfo* const test_info = new TestInfo(std::move(test_suite_name), name, type_param, value_param, std::move(code_location), fixture_class_id, factory); GetUnitTestImpl()->AddTestInfo(set_up_tc, tear_down_tc, test_info); return test_info; }
O3
cpp
testing::internal::MakeAndRegisterTestInfo(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const*, char const*, char const*, testing::internal::CodeLocation, void const*, void (*)(), void (*)(), testing::internal::TestFactoryBase*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x78, %rsp movq %r9, %r14 movq %r8, %r13 movq %rcx, %r15 movq %rdx, %r12 movq %rsi, %rbp movq %rdi, %rbx movl $0x110, %edi # imm = 0x110 callq 0x11190 movq %rax, 0x8(%rsp) leaq 0x20(%rsp), %rdx movq %rdx, -0x10(%rdx) movq (%rbx), %rcx leaq 0x10(%rbx), %rax cmpq %rax, %rcx je 0x62771 movq %rcx, 0x10(%rsp) movq (%rax), %rcx movq %rcx, 0x20(%rsp) jmp 0x62777 movups (%rax), %xmm0 movups %xmm0, (%rdx) movq 0x8(%rbx), %rcx movq %rcx, 0x18(%rsp) movq %rax, (%rbx) movq $0x0, 0x8(%rbx) movb $0x0, 0x10(%rbx) leaq 0x58(%rsp), %rdi leaq 0x7(%rsp), %rdx movq %rbp, %rsi callq 0x16c9c movq 0xc0(%rsp), %rax leaq 0x40(%rsp), %rbx movq %rbx, -0x10(%rbx) movq (%r13), %rdx leaq 0x10(%r13), %rcx cmpq %rcx, %rdx je 0x627ce movq %rdx, 0x30(%rsp) movq (%rcx), %rdx movq %rdx, 0x40(%rsp) jmp 0x627d4 movups (%rcx), %xmm0 movups %xmm0, (%rbx) movq 0x8(%r13), %rdx leaq 0x30(%rsp), %r9 movq %rdx, 0x8(%r9) movq %rcx, (%r13) movq $0x0, 0x8(%r13) movb $0x0, 0x10(%r13) movl 0x20(%r13), %ecx movl %ecx, 0x20(%r9) leaq 0x10(%rsp), %rsi leaq 0x58(%rsp), %rdx movq 0x8(%rsp), %r13 movq %r13, %rdi movq %r12, %rcx movq %r15, %r8 pushq %rax pushq %r14 callq 0x62450 addq $0x10, %rsp movq 0x30(%rsp), %rdi cmpq %rbx, %rdi je 0x62835 movq 0x40(%rsp), %rsi incq %rsi callq 0x11120 leaq 0x68(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x62850 movq 0x68(%rsp), %rsi incq %rsi callq 0x11120 movq 0xb8(%rsp), %rbx movq 0xb0(%rsp), %r14 movq 0x10(%rsp), %rdi leaq 0x20(%rsp), %rax cmpq %rax, %rdi je 0x6287c movq 0x20(%rsp), %rsi incq %rsi callq 0x11120 callq 0x5a66a movq 0x52360(%rip), %rdi # 0xb4be8 movq %r14, %rsi movq %rbx, %rdx movq %r13, %rcx callq 0x75db4 movq %r13, %rax addq $0x78, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %r14 movq 0x30(%rsp), %rdi cmpq %rbx, %rdi je 0x628c2 movq 0x40(%rsp), %rsi incq %rsi callq 0x11120 leaq 0x68(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x628e2 movq 0x68(%rsp), %rsi incq %rsi callq 0x11120 jmp 0x628e2 movq %rax, %r14 movq 0x10(%rsp), %rdi leaq 0x20(%rsp), %rax cmpq %rax, %rdi je 0x628fe movq 0x20(%rsp), %rsi incq %rsi callq 0x11120 movl $0x110, %esi # imm = 0x110 movq 0x8(%rsp), %rdi callq 0x11120 movq %r14, %rdi callq 0x11760
_ZN7testing8internal23MakeAndRegisterTestInfoENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKcS8_S8_NS0_12CodeLocationEPKvPFvvESD_PNS0_15TestFactoryBaseE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 78h mov r14, r9 mov r13, r8 mov r15, rcx mov r12, rdx mov rbp, rsi mov rbx, rdi mov edi, 110h; unsigned __int64 call __Znwm; operator new(ulong) mov [rsp+0A8h+var_A0], rax lea rdx, [rsp+0A8h+var_88] mov [rdx-10h], rdx mov rcx, [rbx] lea rax, [rbx+10h] cmp rcx, rax jz short loc_62771 mov [rsp+0A8h+var_98], rcx mov rcx, [rax] mov [rsp+0A8h+var_88], rcx jmp short loc_62777 loc_62771: movups xmm0, xmmword ptr [rax] movups xmmword ptr [rdx], xmm0 loc_62777: mov rcx, [rbx+8] mov [rsp+0A8h+var_90], rcx mov [rbx], rax mov qword ptr [rbx+8], 0 mov byte ptr [rbx+10h], 0 lea rdi, [rsp+0A8h+var_50] lea rdx, [rsp+0A8h+var_A1] mov rsi, rbp call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) mov rax, [rsp+0A8h+arg_10] lea rbx, [rsp+0A8h+var_68] mov [rbx-10h], rbx mov rdx, [r13+0] lea rcx, [r13+10h] cmp rdx, rcx jz short loc_627CE mov [rsp+0A8h+var_78], rdx mov rdx, [rcx] mov [rsp+0A8h+var_68], rdx jmp short loc_627D4 loc_627CE: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [rbx], xmm0 loc_627D4: mov rdx, [r13+8] lea r9, [rsp+0A8h+var_78] mov [r9+8], rdx mov [r13+0], rcx mov qword ptr [r13+8], 0 mov byte ptr [r13+10h], 0 mov ecx, [r13+20h] mov [r9+20h], ecx lea rsi, [rsp+0A8h+var_98] lea rdx, [rsp+0A8h+var_50] mov r13, [rsp+0A8h+var_A0] mov rdi, r13 mov rcx, r12 mov r8, r15 push rax push r14 call _ZN7testing8TestInfoC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_PKcS8_NS_8internal12CodeLocationEPKvPNS9_15TestFactoryBaseE; testing::TestInfo::TestInfo(std::string,std::string,char const*,char const*,testing::internal::CodeLocation,void const*,testing::internal::TestFactoryBase *) add rsp, 10h mov rdi, [rsp+0A8h+var_78]; void * cmp rdi, rbx jz short loc_62835 mov rsi, [rsp+0A8h+var_68] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_62835: lea rax, [rsp+0A8h+var_40] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_62850 mov rsi, [rsp+0A8h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_62850: mov rbx, [rsp+0A8h+arg_8] mov r14, [rsp+0A8h+arg_0] mov rdi, [rsp+0A8h+var_98]; this lea rax, [rsp+0A8h+var_88] cmp rdi, rax jz short loc_6287C mov rsi, [rsp+0A8h+var_88] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_6287C: call _ZN7testing8UnitTest11GetInstanceEv; testing::UnitTest::GetInstance(void) mov rdi, cs:qword_B4BE8; this mov rsi, r14; void (*)(void) mov rdx, rbx; void (*)(void) mov rcx, r13; testing::TestInfo * call _ZN7testing8internal12UnitTestImpl11AddTestInfoEPFvvES3_PNS_8TestInfoE; testing::internal::UnitTestImpl::AddTestInfo(void (*)(void),void (*)(void),testing::TestInfo *) mov rax, r13 add rsp, 78h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov r14, rax mov rdi, [rsp+arg_28]; void * cmp rdi, rbx jz short loc_628C2 mov rsi, [rsp+arg_38] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_628C2: lea rax, [rsp+arg_60] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_628E2 mov rsi, [rsp+arg_60] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_628E2 mov r14, rax loc_628E2: mov rdi, [rsp+arg_8]; void * lea rax, [rsp+arg_18] cmp rdi, rax jz short loc_628FE mov rsi, [rsp+arg_18] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_628FE: mov esi, 110h; unsigned __int64 mov rdi, [rsp+arg_0]; void * call __ZdlPvm; operator delete(void *,ulong) mov rdi, r14 call __Unwind_Resume
testing::TestInfo * testing::internal::MakeAndRegisterTestInfo( long long a1, long long a2, _BYTE *a3, _BYTE *a4, long long a5, long long a6, void (*a7)(void), void (*a8)(void), long long a9) { __int128 *v13; // rax __int128 *v14; // rcx testing::UnitTest *v15; // rdi testing::TestInfo *v17; // [rsp+8h] [rbp-A0h] testing::UnitTest *v18[2]; // [rsp+10h] [rbp-98h] BYREF __int128 v19; // [rsp+20h] [rbp-88h] BYREF void *v20[2]; // [rsp+30h] [rbp-78h] BYREF __int128 v21; // [rsp+40h] [rbp-68h] BYREF int v22; // [rsp+50h] [rbp-58h] void *v23[2]; // [rsp+58h] [rbp-50h] BYREF long long v24; // [rsp+68h] [rbp-40h] BYREF v17 = (testing::TestInfo *)operator new(0x110uLL); v18[0] = (testing::UnitTest *)&v19; v13 = (__int128 *)(a1 + 16); if ( *(_QWORD *)a1 == a1 + 16 ) { v19 = *v13; } else { v18[0] = *(testing::UnitTest **)a1; *(_QWORD *)&v19 = *(_QWORD *)v13; } v18[1] = *(testing::UnitTest **)(a1 + 8); *(_QWORD *)a1 = v13; *(_QWORD *)(a1 + 8) = 0LL; *(_BYTE *)(a1 + 16) = 0; std::string::basic_string<std::allocator<char>>(v23, a2); v20[0] = &v21; v14 = (__int128 *)(a5 + 16); if ( *(_QWORD *)a5 == a5 + 16 ) { v21 = *v14; } else { v20[0] = *(void **)a5; *(_QWORD *)&v21 = *(_QWORD *)v14; } v20[1] = *(void **)(a5 + 8); *(_QWORD *)a5 = v14; *(_QWORD *)(a5 + 8) = 0LL; *(_BYTE *)(a5 + 16) = 0; v22 = *(_DWORD *)(a5 + 32); testing::TestInfo::TestInfo((long long)v17, (long long)v18, (long long)v23, a3, a4, (long long)v20, a6, a9); if ( v20[0] != &v21 ) operator delete(v20[0], v21 + 1); if ( v23[0] != &v24 ) operator delete(v23[0], v24 + 1); v15 = v18[0]; if ( (__int128 *)v18[0] != &v19 ) operator delete(v18[0], v19 + 1); testing::UnitTest::GetInstance(v15); testing::internal::UnitTestImpl::AddTestInfo(qword_B4BE8, a7, a8, v17); return v17; }
MakeAndRegisterTestInfo: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x78 MOV R14,R9 MOV R13,R8 MOV R15,RCX MOV R12,RDX MOV RBP,RSI MOV RBX,RDI MOV EDI,0x110 CALL 0x00111190 MOV qword ptr [RSP + 0x8],RAX LEA RDX,[RSP + 0x20] MOV qword ptr [RDX + -0x10],RDX MOV RCX,qword ptr [RBX] LEA RAX,[RBX + 0x10] CMP RCX,RAX JZ 0x00162771 MOV qword ptr [RSP + 0x10],RCX MOV RCX,qword ptr [RAX] MOV qword ptr [RSP + 0x20],RCX JMP 0x00162777 LAB_00162771: MOVUPS XMM0,xmmword ptr [RAX] MOVUPS xmmword ptr [RDX],XMM0 LAB_00162777: MOV RCX,qword ptr [RBX + 0x8] MOV qword ptr [RSP + 0x18],RCX MOV qword ptr [RBX],RAX MOV qword ptr [RBX + 0x8],0x0 MOV byte ptr [RBX + 0x10],0x0 LAB_0016278f: LEA RDI,[RSP + 0x58] LEA RDX,[RSP + 0x7] MOV RSI,RBP CALL 0x00116c9c MOV RAX,qword ptr [RSP + 0xc0] LEA RBX,[RSP + 0x40] MOV qword ptr [RBX + -0x10],RBX MOV RDX,qword ptr [R13] LEA RCX,[R13 + 0x10] CMP RDX,RCX JZ 0x001627ce MOV qword ptr [RSP + 0x30],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x40],RDX JMP 0x001627d4 LAB_001627ce: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [RBX],XMM0 LAB_001627d4: MOV RDX,qword ptr [R13 + 0x8] LEA R9,[RSP + 0x30] MOV qword ptr [R9 + 0x8],RDX MOV qword ptr [R13],RCX MOV qword ptr [R13 + 0x8],0x0 MOV byte ptr [R13 + 0x10],0x0 MOV ECX,dword ptr [R13 + 0x20] MOV dword ptr [R9 + 0x20],ECX LAB_001627fa: LEA RSI,[RSP + 0x10] LEA RDX,[RSP + 0x58] MOV R13,qword ptr [RSP + 0x8] MOV RDI,R13 MOV RCX,R12 MOV R8,R15 PUSH RAX PUSH R14 CALL 0x00162450 ADD RSP,0x10 LAB_0016281e: MOV RDI,qword ptr [RSP + 0x30] CMP RDI,RBX JZ 0x00162835 MOV RSI,qword ptr [RSP + 0x40] INC RSI CALL 0x00111120 LAB_00162835: LEA RAX,[RSP + 0x68] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00162850 MOV RSI,qword ptr [RSP + 0x68] INC RSI CALL 0x00111120 LAB_00162850: MOV RBX,qword ptr [RSP + 0xb8] MOV R14,qword ptr [RSP + 0xb0] MOV RDI,qword ptr [RSP + 0x10] LEA RAX,[RSP + 0x20] CMP RDI,RAX JZ 0x0016287c MOV RSI,qword ptr [RSP + 0x20] INC RSI CALL 0x00111120 LAB_0016287c: CALL 0x0015a66a MOV RDI,qword ptr [0x001b4be8] MOV RSI,R14 MOV RDX,RBX MOV RCX,R13 CALL 0x00175db4 MOV RAX,R13 ADD RSP,0x78 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* testing::internal::MakeAndRegisterTestInfo(std::__cxx11::string, char const*, char const*, char const*, testing::internal::CodeLocation, void const*, void (*)(), void (*)(), testing::internal::TestFactoryBase*) */ TestInfo * testing::internal::MakeAndRegisterTestInfo (long *param_1,char *param_2,int8 param_3,int8 param_4,long *param_5, int8 param_6,_func_void *param_7,_func_void *param_8,int8 param_9) { long *plVar1; TestInfo *pTVar2; allocator local_a1; TestInfo *local_a0; long *local_98; long local_90; long local_88; long lStack_80; long *local_78; long local_70; long local_68; int4 uStack_60; int4 uStack_5c; int4 local_58; long *local_50 [2]; long local_40 [2]; local_a0 = (TestInfo *)operator_new(0x110); local_98 = &local_88; plVar1 = param_1 + 2; if ((long *)*param_1 == plVar1) { local_88 = *plVar1; lStack_80 = param_1[3]; } else { local_88 = *plVar1; local_98 = (long *)*param_1; } local_90 = param_1[1]; *param_1 = (long)plVar1; param_1[1] = 0; *(int1 *)(param_1 + 2) = 0; /* try { // try from 0016278f to 001627a0 has its CatchHandler @ 001628df */ std::__cxx11::string::string<std::allocator<char>>((string *)local_50,param_2,&local_a1); pTVar2 = local_a0; plVar1 = param_5 + 2; if ((long *)*param_5 == plVar1) { local_68 = *plVar1; uStack_60 = (int4)param_5[3]; uStack_5c = *(int4 *)((long)param_5 + 0x1c); local_78 = &local_68; } else { local_68 = *plVar1; local_78 = (long *)*param_5; } local_70 = param_5[1]; *param_5 = (long)plVar1; param_5[1] = 0; *(int1 *)(param_5 + 2) = 0; local_58 = (int4)param_5[4]; /* try { // try from 001627fa to 0016281d has its CatchHandler @ 001628a8 */ TestInfo::TestInfo(local_a0,&local_98,local_50,param_3,param_4,&local_78,param_6,param_9); if (local_78 != &local_68) { operator_delete(local_78,local_68 + 1); } if (local_50[0] != local_40) { operator_delete(local_50[0],local_40[0] + 1); } if (local_98 != &local_88) { operator_delete(local_98,local_88 + 1); } UnitTest::GetInstance(); UnitTestImpl::AddTestInfo ((UnitTestImpl *)UnitTest::GetInstance()::instance._64_8_,param_7,param_8,pTVar2); return pTVar2; }
65,239
my_utf8mb3_uni
eloqsql/strings/ctype-utf8.c
static int my_utf8mb3_uni(CHARSET_INFO *cs __attribute__((unused)), my_wc_t * pwc, const uchar *s, const uchar *e) { return my_mb_wc_utf8mb3_quick(pwc, s, e); }
O3
c
my_utf8mb3_uni: pushq %rbp movq %rsp, %rbp movl $0xffffff9b, %eax # imm = 0xFFFFFF9B cmpq %rcx, %rdx jae 0x4f54d movzbl (%rdx), %edi testb %dil, %dil js 0x4f545 movl %edi, %edi movl $0x1, %eax movq %rdi, (%rsi) jmp 0x4f54d cmpb $-0x3e, %dil jae 0x4f54f xorl %eax, %eax popq %rbp retq cmpb $-0x21, %dil ja 0x4f586 leaq 0x2(%rdx), %r8 movl $0xffffff9a, %eax # imm = 0xFFFFFF9A cmpq %rcx, %r8 ja 0x4f54d movzbl 0x1(%rdx), %ecx xorl $0x80, %ecx movl $0x0, %eax cmpb $0x3f, %cl ja 0x4f54d andl $0x1f, %edi shll $0x6, %edi orl %ecx, %edi movl $0x2, %eax jmp 0x4f540 cmpb $-0x11, %dil ja 0x4f54b leaq 0x3(%rdx), %r8 movl $0xffffff99, %eax # imm = 0xFFFFFF99 cmpq %rcx, %r8 ja 0x4f54d movzbl 0x1(%rdx), %ecx cmpb $-0x41, %cl jg 0x4f54b movzbl 0x2(%rdx), %edx cmpb $-0x41, %dl jg 0x4f54b cmpl $0xe0, %edi sete %r8b cmpb $-0x60, %cl setb %r9b movl $0x0, %eax testb %r9b, %r8b jne 0x4f54d shll $0xc, %edi movzwl %di, %eax andl $0x3f, %ecx shll $0x6, %ecx orl %eax, %ecx andl $0x3f, %edx orq %rcx, %rdx movl $0x3, %eax movq %rdx, %rdi jmp 0x4f540
my_utf8mb3_uni: push rbp mov rbp, rsp mov eax, 0FFFFFF9Bh cmp rdx, rcx jnb short loc_4F54D movzx edi, byte ptr [rdx] test dil, dil js short loc_4F545 mov edi, edi mov eax, 1 loc_4F540: mov [rsi], rdi jmp short loc_4F54D loc_4F545: cmp dil, 0C2h jnb short loc_4F54F loc_4F54B: xor eax, eax loc_4F54D: pop rbp retn loc_4F54F: cmp dil, 0DFh ja short loc_4F586 lea r8, [rdx+2] mov eax, 0FFFFFF9Ah cmp r8, rcx ja short loc_4F54D movzx ecx, byte ptr [rdx+1] xor ecx, 80h mov eax, 0 cmp cl, 3Fh ; '?' ja short loc_4F54D and edi, 1Fh shl edi, 6 or edi, ecx mov eax, 2 jmp short loc_4F540 loc_4F586: cmp dil, 0EFh ja short loc_4F54B lea r8, [rdx+3] mov eax, 0FFFFFF99h cmp r8, rcx ja short loc_4F54D movzx ecx, byte ptr [rdx+1] cmp cl, 0BFh jg short loc_4F54B movzx edx, byte ptr [rdx+2] cmp dl, 0BFh jg short loc_4F54B cmp edi, 0E0h setz r8b cmp cl, 0A0h setb r9b mov eax, 0 test r8b, r9b jnz short loc_4F54D shl edi, 0Ch movzx eax, di and ecx, 3Fh shl ecx, 6 or ecx, eax and edx, 3Fh or rdx, rcx mov eax, 3 mov rdi, rdx jmp loc_4F540
long long my_utf8mb3_uni(long long a1, unsigned long long *a2, unsigned __int8 *a3, unsigned long long a4) { long long result; // rax int v5; // edi unsigned long long v6; // rdi char v7; // cl char v8; // dl result = 4294967195LL; if ( (unsigned long long)a3 < a4 ) { v5 = *a3; if ( (v5 & 0x80u) == 0 ) { v6 = *a3; result = 1LL; LABEL_4: *a2 = v6; return result; } if ( (unsigned __int8)v5 < 0xC2u ) return 0LL; if ( (unsigned __int8)v5 > 0xDFu ) { if ( (unsigned __int8)v5 > 0xEFu ) return 0LL; result = 4294967193LL; if ( (unsigned long long)(a3 + 3) > a4 ) return result; v7 = a3[1]; if ( v7 > -65 ) return 0LL; v8 = a3[2]; if ( v8 > -65 ) return 0LL; result = 0LL; if ( (unsigned __int8)v7 >= 0xA0u || v5 != 224 ) { result = 3LL; v6 = (unsigned __int16)((_WORD)v5 << 12) | ((unsigned __int8)(v7 & 0x3F) << 6) | (unsigned long long)(v8 & 0x3F); goto LABEL_4; } } else { result = 4294967194LL; if ( (unsigned long long)(a3 + 2) <= a4 ) { result = 0LL; if ( (a3[1] ^ 0x80u) <= 0x3F ) { v6 = a3[1] ^ 0x80 | ((unsigned __int8)(v5 & 0x1F) << 6); result = 2LL; goto LABEL_4; } } } } return result; }
my_utf8mb3_uni: PUSH RBP MOV RBP,RSP MOV EAX,0xffffff9b CMP RDX,RCX JNC 0x0014f54d MOVZX EDI,byte ptr [RDX] TEST DIL,DIL JS 0x0014f545 MOV EDI,EDI MOV EAX,0x1 LAB_0014f540: MOV qword ptr [RSI],RDI JMP 0x0014f54d LAB_0014f545: CMP DIL,0xc2 JNC 0x0014f54f LAB_0014f54b: XOR EAX,EAX LAB_0014f54d: POP RBP RET LAB_0014f54f: CMP DIL,0xdf JA 0x0014f586 LEA R8,[RDX + 0x2] MOV EAX,0xffffff9a CMP R8,RCX JA 0x0014f54d MOVZX ECX,byte ptr [RDX + 0x1] XOR ECX,0x80 MOV EAX,0x0 CMP CL,0x3f JA 0x0014f54d AND EDI,0x1f SHL EDI,0x6 OR EDI,ECX MOV EAX,0x2 JMP 0x0014f540 LAB_0014f586: CMP DIL,0xef JA 0x0014f54b LEA R8,[RDX + 0x3] MOV EAX,0xffffff99 CMP R8,RCX JA 0x0014f54d MOVZX ECX,byte ptr [RDX + 0x1] CMP CL,0xbf JG 0x0014f54b MOVZX EDX,byte ptr [RDX + 0x2] CMP DL,0xbf JG 0x0014f54b CMP EDI,0xe0 SETZ R8B CMP CL,0xa0 SETC R9B MOV EAX,0x0 TEST R8B,R9B JNZ 0x0014f54d SHL EDI,0xc MOVZX EAX,DI AND ECX,0x3f SHL ECX,0x6 OR ECX,EAX AND EDX,0x3f OR RDX,RCX MOV EAX,0x3 MOV RDI,RDX JMP 0x0014f540
int8 my_utf8mb3_uni(int8 param_1,ulong *param_2,byte *param_3,byte *param_4) { byte bVar1; byte bVar2; int8 uVar3; ulong uVar4; uint uVar5; if (param_4 <= param_3) { return 0xffffff9b; } bVar1 = *param_3; uVar5 = (uint)bVar1; if ((char)bVar1 < '\0') { if (0xc1 < bVar1) { if (bVar1 < 0xe0) { if (param_4 < param_3 + 2) { return 0xffffff9a; } if (0x3f < (byte)(param_3[1] ^ 0x80)) { return 0; } uVar4 = (ulong)((uVar5 & 0x1f) << 6 | param_3[1] ^ 0x80); uVar3 = 2; goto LAB_0014f540; } if (bVar1 < 0xf0) { if (param_4 < param_3 + 3) { return 0xffffff99; } bVar2 = param_3[1]; if (((char)bVar2 < -0x40) && ((char)param_3[2] < -0x40)) { if (uVar5 == 0xe0 && bVar2 < 0xa0) { return 0; } uVar4 = (ulong)(param_3[2] & 0x3f | (bVar2 & 0x3f) << 6 | (bVar1 & 0xf) << 0xc); uVar3 = 3; goto LAB_0014f540; } } } uVar3 = 0; } else { uVar4 = (ulong)uVar5; uVar3 = 1; LAB_0014f540: *param_2 = uVar4; } return uVar3; }
65,240
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; } } }
O3
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 0x9db60 movq %rdx, %rbx leaq 0x48(%rsp), %r15 leaq 0x8(%rsp), %r12 movq (%r13), %rsi testq %rsi, %rsi je 0x9db4b movq %r12, %rdi movq %rbx, %rdx callq 0x89ab4 movq %r12, %rdi callq 0x89cb2 movl %eax, %ebp movq %r15, %rdi xorl %esi, %esi callq 0x5c5ee movq %r15, %rdi callq 0x61a6a movq 0x40(%rsp), %rdi testq %rdi, %rdi je 0x9dae3 callq 0x7140a movq 0x30(%rsp), %rdi testq %rdi, %rdi je 0x9daf2 callq 0x7140a movq 0x20(%rsp), %rdi testq %rdi, %rdi je 0x9db01 callq 0x7140a movq 0x10(%rsp), %rdi testq %rdi, %rdi je 0x9db37 movq 0x92466(%rip), %rax # 0x12ff78 cmpb $0x0, (%rax) je 0x9db22 movl 0xc(%rdi), %eax leal -0x1(%rax), %ecx movl %ecx, 0xc(%rdi) jmp 0x9db2c movl $0xffffffff, %eax # imm = 0xFFFFFFFF lock xaddl %eax, 0xc(%rdi) cmpl $0x1, %eax jne 0x9db37 movq (%rdi), %rax callq *0x18(%rax) testb %bpl, %bpl jne 0x9db4b addq $0x20, %r13 cmpq %r14, %r13 jne 0x9daa0 jmp 0x9db60 movq 0x10(%r13), %rdi testq %rdi, %rdi je 0x9db6f movq (%rsp), %rsi movq %rbx, %rdx callq 0x9dc44 addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0x10, %edi callq 0x1b4d0 movq %rax, %rbx leaq 0x56358(%rip), %rsi # 0xf3edb movq %rax, %rdi callq 0x1b370 movq 0x92456(%rip), %rsi # 0x12ffe8 movq 0x923b7(%rip), %rdx # 0x12ff50 movq %rbx, %rdi callq 0x1c1c0 movq %rax, %r14 movq %rbx, %rdi callq 0x1b760 jmp 0x9dbbb movq %rax, %r14 leaq 0x8(%rsp), %rdi callq 0x89da6 movq %r14, %rdi callq 0x1c250 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_9DB60 mov rbx, rdx lea r15, [rsp+88h+var_40] lea r12, [rsp+88h+var_80] loc_9DAA0: mov rsi, [r13+0] test rsi, rsi jz loc_9DB4B 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_9DAE3 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_9DAE3: mov rdi, [rsp+88h+var_58] test rdi, rdi jz short loc_9DAF2 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_9DAF2: mov rdi, [rsp+88h+var_68] test rdi, rdi jz short loc_9DB01 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_9DB01: mov rdi, [rsp+88h+var_78] test rdi, rdi jz short loc_9DB37 mov rax, cs:__libc_single_threaded_ptr cmp byte ptr [rax], 0 jz short loc_9DB22 mov eax, [rdi+0Ch] lea ecx, [rax-1] mov [rdi+0Ch], ecx jmp short loc_9DB2C loc_9DB22: mov eax, 0FFFFFFFFh lock xadd [rdi+0Ch], eax loc_9DB2C: cmp eax, 1 jnz short loc_9DB37 mov rax, [rdi] call qword ptr [rax+18h] loc_9DB37: test bpl, bpl jnz short loc_9DB4B add r13, 20h ; ' ' cmp r13, r14 jnz loc_9DAA0 jmp short loc_9DB60 loc_9DB4B: mov rdi, [r13+10h] test rdi, rdi jz short loc_9DB6F 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&) loc_9DB60: add rsp, 58h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_9DB6F: 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_9DBBB mov r14, rax lea rdi, [rsp+88h+var_80]; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() loc_9DBBB: 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 0x0019db60 MOV RBX,RDX LEA R15,[RSP + 0x48] LEA R12,[RSP + 0x8] LAB_0019daa0: MOV RSI,qword ptr [R13] TEST RSI,RSI JZ 0x0019db4b MOV RDI,R12 MOV RDX,RBX CALL 0x00189ab4 LAB_0019dab8: MOV RDI,R12 CALL 0x00189cb2 LAB_0019dac0: MOV EBP,EAX MOV RDI,R15 XOR ESI,ESI CALL 0x0015c5ee MOV RDI,R15 CALL 0x00161a6a MOV RDI,qword ptr [RSP + 0x40] TEST RDI,RDI JZ 0x0019dae3 CALL 0x0017140a LAB_0019dae3: MOV RDI,qword ptr [RSP + 0x30] TEST RDI,RDI JZ 0x0019daf2 CALL 0x0017140a LAB_0019daf2: MOV RDI,qword ptr [RSP + 0x20] TEST RDI,RDI JZ 0x0019db01 CALL 0x0017140a LAB_0019db01: MOV RDI,qword ptr [RSP + 0x10] TEST RDI,RDI JZ 0x0019db37 MOV RAX,qword ptr [0x0022ff78] CMP byte ptr [RAX],0x0 JZ 0x0019db22 MOV EAX,dword ptr [RDI + 0xc] LEA ECX,[RAX + -0x1] MOV dword ptr [RDI + 0xc],ECX JMP 0x0019db2c LAB_0019db22: MOV EAX,0xffffffff XADD.LOCK dword ptr [RDI + 0xc],EAX LAB_0019db2c: CMP EAX,0x1 JNZ 0x0019db37 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x18] LAB_0019db37: TEST BPL,BPL JNZ 0x0019db4b ADD R13,0x20 CMP R13,R14 JNZ 0x0019daa0 JMP 0x0019db60 LAB_0019db4b: MOV RDI,qword ptr [R13 + 0x10] TEST RDI,RDI JZ 0x0019db6f MOV RSI,qword ptr [RSP] MOV RDX,RBX CALL 0x0019dc44 LAB_0019db60: ADD RSP,0x58 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0019db6f: MOV EDI,0x10 CALL 0x0011b4d0 MOV RBX,RAX LAB_0019db7c: LEA RSI,[0x1f3edb] MOV RDI,RAX CALL 0x0011b370 LAB_0019db8b: MOV RSI,qword ptr [0x0022ffe8] MOV RDX,qword ptr [0x0022ff50] MOV RDI,RBX CALL 0x0011c1c0
/* 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; int8 *puVar2; char cVar3; int iVar4; runtime_error *this; int8 *puVar5; 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]; puVar5 = *(int8 **)(param_1 + 0x20); puVar2 = *(int8 **)(param_1 + 0x28); if (puVar5 != puVar2) { do { if ((shared_ptr *)*puVar5 == (shared_ptr *)0x0) { LAB_0019db4b: if ((ostringstream *)puVar5[2] != (ostringstream *)0x0) { TemplateNode::render((ostringstream *)puVar5[2],param_2); return; } this = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0019db7c to 0019db8a has its CatchHandler @ 0019dba1 */ std::runtime_error::runtime_error(this,"IfNode.cascade.second is null"); /* WARNING: Subroutine does not return */ __cxa_throw(this,PTR_typeinfo_0022ffe8,PTR__runtime_error_0022ff50); } Expression::evaluate(local_80,(shared_ptr *)*puVar5); /* try { // try from 0019dab8 to 0019dabf has its CatchHandler @ 0019dbae */ 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_0022ff78 == '\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') goto LAB_0019db4b; puVar5 = puVar5 + 4; } while (puVar5 != puVar2); } return; }
65,241
js__gettimeofday_us
bluesky950520[P]quickjs/cutils.c
int64_t js__gettimeofday_us(void) { struct timeval tv; #ifdef _WIN32 gettimeofday_msvc(&tv); #else gettimeofday(&tv, NULL); #endif return ((int64_t)tv.tv_sec * 1000000) + tv.tv_usec; }
O1
c
js__gettimeofday_us: pushq %rbx subq $0x10, %rsp movq %rsp, %rbx movq %rbx, %rdi xorl %esi, %esi callq 0xe330 imulq $0xf4240, (%rbx), %rax # imm = 0xF4240 addq 0x8(%rbx), %rax addq $0x10, %rsp popq %rbx retq
js__gettimeofday_us: push rbx sub rsp, 10h mov rbx, rsp mov rdi, rbx xor esi, esi call _gettimeofday imul rax, [rbx], 0F4240h add rax, [rbx+8] add rsp, 10h pop rbx retn
long long js__gettimeofday_us() { _QWORD v1[3]; // [rsp+0h] [rbp-18h] BYREF gettimeofday(v1, 0LL); return v1[1] + 1000000LL * v1[0]; }
js__gettimeofday_us: PUSH RBX SUB RSP,0x10 MOV RBX,RSP MOV RDI,RBX XOR ESI,ESI CALL 0x0010e330 IMUL RAX,qword ptr [RBX],0xf4240 ADD RAX,qword ptr [RBX + 0x8] ADD RSP,0x10 POP RBX RET
long js__gettimeofday_us(void) { timeval local_18; gettimeofday(&local_18,(__timezone_ptr_t)0x0); return local_18.tv_sec * 1000000 + local_18.tv_usec; }
65,242
js__gettimeofday_us
bluesky950520[P]quickjs/cutils.c
int64_t js__gettimeofday_us(void) { struct timeval tv; #ifdef _WIN32 gettimeofday_msvc(&tv); #else gettimeofday(&tv, NULL); #endif return ((int64_t)tv.tv_sec * 1000000) + tv.tv_usec; }
O3
c
js__gettimeofday_us: pushq %rbx subq $0x10, %rsp movq %rsp, %rbx movq %rbx, %rdi xorl %esi, %esi callq 0xe330 imulq $0xf4240, (%rbx), %rax # imm = 0xF4240 addq 0x8(%rbx), %rax addq $0x10, %rsp popq %rbx retq
js__gettimeofday_us: push rbx sub rsp, 10h mov rbx, rsp mov rdi, rbx xor esi, esi call _gettimeofday imul rax, [rbx], 0F4240h add rax, [rbx+8] add rsp, 10h pop rbx retn
long long js__gettimeofday_us() { _QWORD v1[3]; // [rsp+0h] [rbp-18h] BYREF gettimeofday(v1, 0LL); return v1[1] + 1000000LL * v1[0]; }
js__gettimeofday_us: PUSH RBX SUB RSP,0x10 MOV RBX,RSP MOV RDI,RBX XOR ESI,ESI CALL 0x0010e330 IMUL RAX,qword ptr [RBX],0xf4240 ADD RAX,qword ptr [RBX + 0x8] ADD RSP,0x10 POP RBX RET
long js__gettimeofday_us(void) { timeval local_18; gettimeofday(&local_18,(__timezone_ptr_t)0x0); return local_18.tv_sec * 1000000 + local_18.tv_usec; }
65,243
init_available_charsets
eloqsql/mysys/charset.c
static void init_available_charsets(void) { char fname[FN_REFLEN + sizeof(MY_CHARSET_INDEX)]; struct charset_info_st **cs; MY_CHARSET_LOADER loader; DBUG_ENTER("init_available_charsets"); bzero((char*) &all_charsets,sizeof(all_charsets)); bzero((char*) &my_collation_statistics, sizeof(my_collation_statistics)); my_hash_init2(key_memory_charsets, &charset_name_hash, 16, &my_charset_latin1, 64, 0, 0, get_charset_key, 0, 0, HASH_UNIQUE); init_compiled_charsets(MYF(0)); /* Copy compiled charsets */ for (cs= (struct charset_info_st**) all_charsets; cs < (struct charset_info_st**) all_charsets + array_elements(all_charsets)-1 ; cs++) { if (*cs) { DBUG_ASSERT(cs[0]->mbmaxlen <= MY_CS_MBMAXLEN); if (cs[0]->m_ctype) if (init_state_maps(*cs)) *cs= NULL; } } my_charset_loader_init_mysys(&loader); strmov(get_charsets_dir(fname), MY_CHARSET_INDEX); my_read_charset_file(&loader, fname, MYF(0)); DBUG_VOID_RETURN; }
O0
c
init_available_charsets: pushq %rbp movq %rsp, %rbp subq $0x300, %rsp # imm = 0x300 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) leaq 0x3c28c1(%rip), %rdi # 0x3ffa40 xorl %esi, %esi movl $0x4000, %edx # imm = 0x4000 callq 0x291e0 leaq 0x3c691e(%rip), %rdi # 0x403ab0 xorl %esi, %esi movl $0x4000, %edx # imm = 0x4000 callq 0x291e0 leaq 0x3c2587(%rip), %rax # 0x3ff72c movl (%rax), %edi leaq 0x3c6892(%rip), %rsi # 0x403a40 movl $0x10, %edx leaq 0x2afbf6(%rip), %rcx # 0x2ecdb0 movl $0x40, %r8d xorl %eax, %eax movl %eax, %r9d leaq 0x1ab4(%rip), %rax # 0x3ec80 movq $0x0, (%rsp) movq %rax, 0x8(%rsp) movq $0x0, 0x10(%rsp) movq $0x0, 0x18(%rsp) movl $0x1, 0x20(%rsp) callq 0x3f6a0 xorl %eax, %eax movl %eax, %edi callq 0x42940 leaq 0x3c2838(%rip), %rax # 0x3ffa40 movq %rax, -0x2d8(%rbp) leaq 0x3c282a(%rip), %rax # 0x3ffa40 addq $0x4000, %rax # imm = 0x4000 addq $-0x8, %rax cmpq %rax, -0x2d8(%rbp) jae 0x3d286 movq -0x2d8(%rbp), %rax cmpq $0x0, (%rax) je 0x3d270 jmp 0x3d238 jmp 0x3d23a movq -0x2d8(%rbp), %rax movq (%rax), %rax cmpq $0x0, 0x40(%rax) je 0x3d26e movq -0x2d8(%rbp), %rax movq (%rax), %rdi callq 0x3e7e0 cmpb $0x0, %al je 0x3d26c movq -0x2d8(%rbp), %rax movq $0x0, (%rax) jmp 0x3d26e jmp 0x3d270 jmp 0x3d272 movq -0x2d8(%rbp), %rax addq $0x8, %rax movq %rax, -0x2d8(%rbp) jmp 0x3d20f leaq -0x2d0(%rbp), %rdi callq 0x3c780 leaq -0x220(%rbp), %rdi callq 0x3ce20 movq %rax, %rdi leaq 0xb1c45(%rip), %rsi # 0xeeeed callq 0x29330 leaq -0x220(%rbp), %rsi leaq -0x2d0(%rbp), %rdi xorl %eax, %eax movl %eax, %edx callq 0x3ecc0 jmp 0x3d2c6 movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x3d2e1 addq $0x300, %rsp # imm = 0x300 popq %rbp retq callq 0x29390 nopw %cs:(%rax,%rax)
init_available_charsets: push rbp mov rbp, rsp sub rsp, 300h mov rax, fs:28h mov [rbp+var_8], rax lea rdi, all_charsets xor esi, esi mov edx, 4000h call _memset lea rdi, my_collation_statistics xor esi, esi mov edx, 4000h call _memset lea rax, key_memory_charsets mov edi, [rax] lea rsi, charset_name_hash mov edx, 10h lea rcx, my_charset_latin1 mov r8d, 40h ; '@' xor eax, eax mov r9d, eax lea rax, get_charset_key mov [rsp+300h+var_300], 0 mov [rsp+300h+var_2F8], rax mov [rsp+300h+var_2F0], 0 mov [rsp+300h+var_2E8], 0 mov [rsp+300h+var_2E0], 1 call my_hash_init2 xor eax, eax mov edi, eax call init_compiled_charsets lea rax, all_charsets mov [rbp+var_2D8], rax loc_3D20F: lea rax, all_charsets add rax, 4000h add rax, 0FFFFFFFFFFFFFFF8h cmp [rbp+var_2D8], rax jnb short loc_3D286 mov rax, [rbp+var_2D8] cmp qword ptr [rax], 0 jz short loc_3D270 jmp short $+2 loc_3D238: jmp short $+2 loc_3D23A: mov rax, [rbp+var_2D8] mov rax, [rax] cmp qword ptr [rax+40h], 0 jz short loc_3D26E mov rax, [rbp+var_2D8] mov rdi, [rax] call init_state_maps cmp al, 0 jz short loc_3D26C mov rax, [rbp+var_2D8] mov qword ptr [rax], 0 loc_3D26C: jmp short $+2 loc_3D26E: jmp short $+2 loc_3D270: jmp short $+2 loc_3D272: mov rax, [rbp+var_2D8] add rax, 8 mov [rbp+var_2D8], rax jmp short loc_3D20F loc_3D286: lea rdi, [rbp+var_2D0] call my_charset_loader_init_mysys lea rdi, [rbp+var_220] call get_charsets_dir mov rdi, rax lea rsi, aIndexXml; "Index.xml" call _stpcpy lea rsi, [rbp+var_220] lea rdi, [rbp+var_2D0] xor eax, eax mov edx, eax call my_read_charset_file jmp short $+2 loc_3D2C6: mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_3D2E1 add rsp, 300h pop rbp retn loc_3D2E1: call ___stack_chk_fail
unsigned long long init_available_charsets() { _BYTE *charsets_dir; // rax _QWORD *i; // [rsp+28h] [rbp-2D8h] _BYTE v3[176]; // [rsp+30h] [rbp-2D0h] BYREF _BYTE v4[536]; // [rsp+E0h] [rbp-220h] BYREF unsigned long long v5; // [rsp+2F8h] [rbp-8h] v5 = __readfsqword(0x28u); memset(all_charsets, 0LL, sizeof(all_charsets)); memset(my_collation_statistics, 0LL, sizeof(my_collation_statistics)); my_hash_init2( key_memory_charsets, (unsigned int)&charset_name_hash, 16, (unsigned int)&my_charset_latin1, 64, 0, 0LL, (long long)get_charset_key, 0LL, 0LL, 1); init_compiled_charsets(0LL); for ( i = all_charsets; i < &all_charsets[2047]; ++i ) { if ( *i && *(_QWORD *)(*i + 64LL) ) { if ( (unsigned __int8)init_state_maps(*i) ) *i = 0LL; } } my_charset_loader_init_mysys((long long)v3); charsets_dir = get_charsets_dir(v4); stpcpy(charsets_dir, "Index.xml"); my_read_charset_file(v3, v4, 0LL); return __readfsqword(0x28u); }
init_available_charsets: PUSH RBP MOV RBP,RSP SUB RSP,0x300 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX LEA RDI,[0x4ffa40] XOR ESI,ESI MOV EDX,0x4000 CALL 0x001291e0 LEA RDI,[0x503ab0] XOR ESI,ESI MOV EDX,0x4000 CALL 0x001291e0 LEA RAX,[0x4ff72c] MOV EDI,dword ptr [RAX] LEA RSI,[0x503a40] MOV EDX,0x10 LEA RCX,[0x3ecdb0] MOV R8D,0x40 XOR EAX,EAX MOV R9D,EAX LEA RAX,[0x13ec80] MOV qword ptr [RSP],0x0 MOV qword ptr [RSP + 0x8],RAX MOV qword ptr [RSP + 0x10],0x0 MOV qword ptr [RSP + 0x18],0x0 MOV dword ptr [RSP + 0x20],0x1 CALL 0x0013f6a0 XOR EAX,EAX MOV EDI,EAX CALL 0x00142940 LEA RAX,[0x4ffa40] MOV qword ptr [RBP + -0x2d8],RAX LAB_0013d20f: LEA RAX,[0x4ffa40] ADD RAX,0x4000 ADD RAX,-0x8 CMP qword ptr [RBP + -0x2d8],RAX JNC 0x0013d286 MOV RAX,qword ptr [RBP + -0x2d8] CMP qword ptr [RAX],0x0 JZ 0x0013d270 JMP 0x0013d238 LAB_0013d238: JMP 0x0013d23a LAB_0013d23a: MOV RAX,qword ptr [RBP + -0x2d8] MOV RAX,qword ptr [RAX] CMP qword ptr [RAX + 0x40],0x0 JZ 0x0013d26e MOV RAX,qword ptr [RBP + -0x2d8] MOV RDI,qword ptr [RAX] CALL 0x0013e7e0 CMP AL,0x0 JZ 0x0013d26c MOV RAX,qword ptr [RBP + -0x2d8] MOV qword ptr [RAX],0x0 LAB_0013d26c: JMP 0x0013d26e LAB_0013d26e: JMP 0x0013d270 LAB_0013d270: JMP 0x0013d272 LAB_0013d272: MOV RAX,qword ptr [RBP + -0x2d8] ADD RAX,0x8 MOV qword ptr [RBP + -0x2d8],RAX JMP 0x0013d20f LAB_0013d286: LEA RDI,[RBP + -0x2d0] CALL 0x0013c780 LEA RDI,[RBP + -0x220] CALL 0x0013ce20 MOV RDI,RAX LEA RSI,[0x1eeeed] CALL 0x00129330 LEA RSI,[RBP + -0x220] LEA RDI,[RBP + -0x2d0] XOR EAX,EAX MOV EDX,EAX CALL 0x0013ecc0 JMP 0x0013d2c6 LAB_0013d2c6: MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x0013d2e1 ADD RSP,0x300 POP RBP RET LAB_0013d2e1: CALL 0x00129390
void init_available_charsets(void) { char cVar1; char *__dest; long in_FS_OFFSET; long *local_2e0; int1 local_2d8 [176]; int1 local_228 [536]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); memset(&all_charsets,0,0x4000); memset(my_collation_statistics,0,0x4000); my_hash_init2(key_memory_charsets,charset_name_hash,0x10,&my_charset_latin1,0x40,0,0, get_charset_key,0,0,1); init_compiled_charsets(0); for (local_2e0 = &all_charsets; local_2e0 < (long *)0x503a38; local_2e0 = local_2e0 + 1) { if (((*local_2e0 != 0) && (*(long *)(*local_2e0 + 0x40) != 0)) && (cVar1 = init_state_maps(*local_2e0), cVar1 != '\0')) { *local_2e0 = 0; } } my_charset_loader_init_mysys(local_2d8); __dest = (char *)get_charsets_dir(local_228); stpcpy(__dest,"Index.xml"); my_read_charset_file(local_2d8,local_228,0); if (*(long *)(in_FS_OFFSET + 0x28) != local_10) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return; }
65,244
my_b_flush_io_cache
eloqsql/mysys/mf_iocache.c
int my_b_flush_io_cache(IO_CACHE *info, int need_append_buffer_lock) { size_t length; my_bool append_cache= (info->type == SEQ_READ_APPEND); DBUG_ENTER("my_b_flush_io_cache"); DBUG_PRINT("enter", ("cache: %p", info)); if (!append_cache) need_append_buffer_lock= 0; if (info->type == WRITE_CACHE || append_cache) { if (info->file == -1) { if (real_open_cached_file(info)) DBUG_RETURN((info->error= -1)); } LOCK_APPEND_BUFFER; if ((length=(size_t) (info->write_pos - info->write_buffer))) { if (append_cache) { if (mysql_file_write(info->file, info->write_buffer, length, info->myflags | MY_NABP)) { info->error= -1; DBUG_RETURN(-1); } info->end_of_file+= info->write_pos - info->append_read_pos; info->append_read_pos= info->write_buffer; DBUG_ASSERT(info->end_of_file == mysql_file_tell(info->file, MYF(0))); } else { int res= info->write_function(info, info->write_buffer, length); if (res) DBUG_RETURN(res); set_if_bigger(info->end_of_file, info->pos_in_file); } info->write_end= (info->write_buffer + info->buffer_length - ((info->pos_in_file + length) & (IO_SIZE - 1))); info->write_pos= info->write_buffer; ++info->disk_writes; UNLOCK_APPEND_BUFFER; DBUG_RETURN(info->error); } } UNLOCK_APPEND_BUFFER; DBUG_RETURN(0); }
O0
c
my_b_flush_io_cache: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq -0x10(%rbp), %rax cmpl $0x3, 0xb0(%rax) sete %al andb $0x1, %al movzbl %al, %eax movb %al, -0x21(%rbp) jmp 0x886b7 cmpb $0x0, -0x21(%rbp) jne 0x886c4 movl $0x0, -0x14(%rbp) movq -0x10(%rbp), %rax cmpl $0x2, 0xb0(%rax) je 0x886de movsbl -0x21(%rbp), %eax cmpl $0x0, %eax je 0x888c3 movq -0x10(%rbp), %rax cmpl $-0x1, 0xd4(%rax) jne 0x88716 movq -0x10(%rbp), %rdi callq 0x86ce0 cmpb $0x0, %al je 0x88714 jmp 0x886fa movq -0x10(%rbp), %rax movl $0xffffffff, 0xe4(%rax) # imm = 0xFFFFFFFF movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x888df jmp 0x88716 cmpl $0x0, -0x14(%rbp) je 0x88735 movq -0x10(%rbp), %rdi addq $0x50, %rdi leaq 0x763df(%rip), %rsi # 0xfeb0a movl $0x6ad, %edx # imm = 0x6AD callq 0x89270 movq -0x10(%rbp), %rax movq 0x40(%rax), %rax movq -0x10(%rbp), %rcx movq 0x30(%rcx), %rcx subq %rcx, %rax movq %rax, -0x20(%rbp) cmpq $0x0, %rax je 0x888c1 cmpb $0x0, -0x21(%rbp) je 0x887e9 movq -0x10(%rbp), %rax movl 0xd4(%rax), %edx movq -0x10(%rbp), %rax movq 0x30(%rax), %rcx movq -0x20(%rbp), %r8 movq -0x10(%rbp), %rax movq 0xf8(%rax), %r9 orq $0x4, %r9 leaq 0x7637e(%rip), %rdi # 0xfeb0a movl $0x6b4, %esi # imm = 0x6B4 callq 0x896c0 cmpq $0x0, %rax je 0x887b6 movq -0x10(%rbp), %rax movl $0xffffffff, 0xe4(%rax) # imm = 0xFFFFFFFF movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x888df movq -0x10(%rbp), %rax movq 0x40(%rax), %rcx movq -0x10(%rbp), %rax movq 0x38(%rax), %rax subq %rax, %rcx movq -0x10(%rbp), %rax addq 0x8(%rax), %rcx movq %rcx, 0x8(%rax) movq -0x10(%rbp), %rax movq 0x30(%rax), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x38(%rax) jmp 0x887e7 jmp 0x88842 movq -0x10(%rbp), %rax movq 0xa8(%rax), %rax movq -0x10(%rbp), %rdi movq -0x10(%rbp), %rcx movq 0x30(%rcx), %rsi movq -0x20(%rbp), %rdx callq *%rax movl %eax, -0x28(%rbp) cmpl $0x0, -0x28(%rbp) je 0x8881c jmp 0x88811 movl -0x28(%rbp), %eax movl %eax, -0x4(%rbp) jmp 0x888df jmp 0x8881e movq -0x10(%rbp), %rax movq 0x8(%rax), %rax movq -0x10(%rbp), %rcx cmpq (%rcx), %rax jae 0x8883e movq -0x10(%rbp), %rax movq (%rax), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x8(%rax) jmp 0x88840 jmp 0x88842 movq -0x10(%rbp), %rax movq 0x30(%rax), %rcx movq -0x10(%rbp), %rax addq 0xe8(%rax), %rcx movq -0x10(%rbp), %rax movq (%rax), %rdx addq -0x20(%rbp), %rdx andq $0xfff, %rdx # imm = 0xFFF xorl %eax, %eax subq %rdx, %rax addq %rax, %rcx movq -0x10(%rbp), %rax movq %rcx, 0x48(%rax) movq -0x10(%rbp), %rax movq 0x30(%rax), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x40(%rax) movq -0x10(%rbp), %rax movq 0xb8(%rax), %rcx addq $0x1, %rcx movq %rcx, 0xb8(%rax) cmpl $0x0, -0x14(%rbp) je 0x888b0 movq -0x10(%rbp), %rdi addq $0x50, %rdi callq 0x893a0 jmp 0x888b2 movq -0x10(%rbp), %rax movl 0xe4(%rax), %eax movl %eax, -0x4(%rbp) jmp 0x888df jmp 0x888c3 cmpl $0x0, -0x14(%rbp) je 0x888d6 movq -0x10(%rbp), %rdi addq $0x50, %rdi callq 0x893a0 jmp 0x888d8 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x30, %rsp popq %rbp retq nopl (%rax,%rax)
my_b_flush_io_cache: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov rax, [rbp+var_10] cmp dword ptr [rax+0B0h], 3 setz al and al, 1 movzx eax, al mov [rbp+var_21], al jmp short $+2 loc_886B7: cmp [rbp+var_21], 0 jnz short loc_886C4 mov [rbp+var_14], 0 loc_886C4: mov rax, [rbp+var_10] cmp dword ptr [rax+0B0h], 2 jz short loc_886DE movsx eax, [rbp+var_21] cmp eax, 0 jz loc_888C3 loc_886DE: mov rax, [rbp+var_10] cmp dword ptr [rax+0D4h], 0FFFFFFFFh jnz short loc_88716 mov rdi, [rbp+var_10] call real_open_cached_file cmp al, 0 jz short loc_88714 jmp short $+2 loc_886FA: mov rax, [rbp+var_10] mov dword ptr [rax+0E4h], 0FFFFFFFFh mov [rbp+var_4], 0FFFFFFFFh jmp loc_888DF loc_88714: jmp short $+2 loc_88716: cmp [rbp+var_14], 0 jz short loc_88735 mov rdi, [rbp+var_10] add rdi, 50h ; 'P' lea rsi, aWorkspaceLlm4b_20; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 6ADh call inline_mysql_mutex_lock_10 loc_88735: mov rax, [rbp+var_10] mov rax, [rax+40h] mov rcx, [rbp+var_10] mov rcx, [rcx+30h] sub rax, rcx mov [rbp+var_20], rax cmp rax, 0 jz loc_888C1 cmp [rbp+var_21], 0 jz loc_887E9 mov rax, [rbp+var_10] mov edx, [rax+0D4h] mov rax, [rbp+var_10] mov rcx, [rax+30h] mov r8, [rbp+var_20] mov rax, [rbp+var_10] mov r9, [rax+0F8h] or r9, 4 lea rdi, aWorkspaceLlm4b_20; "/workspace/llm4binary/github2025/eloqsq"... mov esi, 6B4h call inline_mysql_file_write_2 cmp rax, 0 jz short loc_887B6 mov rax, [rbp+var_10] mov dword ptr [rax+0E4h], 0FFFFFFFFh mov [rbp+var_4], 0FFFFFFFFh jmp loc_888DF loc_887B6: mov rax, [rbp+var_10] mov rcx, [rax+40h] mov rax, [rbp+var_10] mov rax, [rax+38h] sub rcx, rax mov rax, [rbp+var_10] add rcx, [rax+8] mov [rax+8], rcx mov rax, [rbp+var_10] mov rcx, [rax+30h] mov rax, [rbp+var_10] mov [rax+38h], rcx jmp short $+2 loc_887E7: jmp short loc_88842 loc_887E9: mov rax, [rbp+var_10] mov rax, [rax+0A8h] mov rdi, [rbp+var_10] mov rcx, [rbp+var_10] mov rsi, [rcx+30h] mov rdx, [rbp+var_20] call rax mov [rbp+var_28], eax cmp [rbp+var_28], 0 jz short loc_8881C jmp short $+2 loc_88811: mov eax, [rbp+var_28] mov [rbp+var_4], eax jmp loc_888DF loc_8881C: jmp short $+2 loc_8881E: mov rax, [rbp+var_10] mov rax, [rax+8] mov rcx, [rbp+var_10] cmp rax, [rcx] jnb short loc_8883E mov rax, [rbp+var_10] mov rcx, [rax] mov rax, [rbp+var_10] mov [rax+8], rcx loc_8883E: jmp short $+2 loc_88840: jmp short $+2 loc_88842: mov rax, [rbp+var_10] mov rcx, [rax+30h] mov rax, [rbp+var_10] add rcx, [rax+0E8h] mov rax, [rbp+var_10] mov rdx, [rax] add rdx, [rbp+var_20] and rdx, 0FFFh xor eax, eax sub rax, rdx add rcx, rax mov rax, [rbp+var_10] mov [rax+48h], rcx mov rax, [rbp+var_10] mov rcx, [rax+30h] mov rax, [rbp+var_10] mov [rax+40h], rcx mov rax, [rbp+var_10] mov rcx, [rax+0B8h] add rcx, 1 mov [rax+0B8h], rcx cmp [rbp+var_14], 0 jz short loc_888B0 mov rdi, [rbp+var_10] add rdi, 50h ; 'P' call inline_mysql_mutex_unlock_10 loc_888B0: jmp short $+2 loc_888B2: mov rax, [rbp+var_10] mov eax, [rax+0E4h] mov [rbp+var_4], eax jmp short loc_888DF loc_888C1: jmp short $+2 loc_888C3: cmp [rbp+var_14], 0 jz short loc_888D6 mov rdi, [rbp+var_10] add rdi, 50h ; 'P' call inline_mysql_mutex_unlock_10 loc_888D6: jmp short $+2 loc_888D8: mov [rbp+var_4], 0 loc_888DF: mov eax, [rbp+var_4] add rsp, 30h pop rbp retn
long long my_b_flush_io_cache(long long a1, int a2) { unsigned int v3; // [rsp+8h] [rbp-28h] bool v4; // [rsp+Fh] [rbp-21h] long long v5; // [rsp+10h] [rbp-20h] v4 = *(_DWORD *)(a1 + 176) == 3; if ( *(_DWORD *)(a1 + 176) != 3 ) a2 = 0; if ( *(_DWORD *)(a1 + 176) != 2 && *(_DWORD *)(a1 + 176) != 3 ) goto LABEL_22; if ( *(_DWORD *)(a1 + 212) == -1 && real_open_cached_file(a1) ) { *(_DWORD *)(a1 + 228) = -1; return (unsigned int)-1; } if ( a2 ) inline_mysql_mutex_lock_10(a1 + 80, "/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c", 1709LL); v5 = *(_QWORD *)(a1 + 64) - *(_QWORD *)(a1 + 48); if ( v5 ) { if ( v4 ) { if ( inline_mysql_file_write_2( "/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c", 1716LL, *(unsigned int *)(a1 + 212), *(_QWORD *)(a1 + 48), v5, *(_QWORD *)(a1 + 248) | 4LL) ) { *(_DWORD *)(a1 + 228) = -1; return (unsigned int)-1; } *(_QWORD *)(a1 + 8) += *(_QWORD *)(a1 + 64) - *(_QWORD *)(a1 + 56); *(_QWORD *)(a1 + 56) = *(_QWORD *)(a1 + 48); } else { v3 = (*(long long ( **)(long long, _QWORD, long long))(a1 + 168))(a1, *(_QWORD *)(a1 + 48), v5); if ( v3 ) return v3; if ( *(_QWORD *)(a1 + 8) < *(_QWORD *)a1 ) *(_QWORD *)(a1 + 8) = *(_QWORD *)a1; } *(_QWORD *)(a1 + 72) = *(_QWORD *)(a1 + 232) + *(_QWORD *)(a1 + 48) - (((_WORD)v5 + (unsigned __int16)*(_QWORD *)a1) & 0xFFF); *(_QWORD *)(a1 + 64) = *(_QWORD *)(a1 + 48); ++*(_QWORD *)(a1 + 184); if ( a2 ) inline_mysql_mutex_unlock_10(a1 + 80); return *(unsigned int *)(a1 + 228); } else { LABEL_22: if ( a2 ) inline_mysql_mutex_unlock_10(a1 + 80); return 0; } }
my_b_flush_io_cache: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV RAX,qword ptr [RBP + -0x10] CMP dword ptr [RAX + 0xb0],0x3 SETZ AL AND AL,0x1 MOVZX EAX,AL MOV byte ptr [RBP + -0x21],AL JMP 0x001886b7 LAB_001886b7: CMP byte ptr [RBP + -0x21],0x0 JNZ 0x001886c4 MOV dword ptr [RBP + -0x14],0x0 LAB_001886c4: MOV RAX,qword ptr [RBP + -0x10] CMP dword ptr [RAX + 0xb0],0x2 JZ 0x001886de MOVSX EAX,byte ptr [RBP + -0x21] CMP EAX,0x0 JZ 0x001888c3 LAB_001886de: MOV RAX,qword ptr [RBP + -0x10] CMP dword ptr [RAX + 0xd4],-0x1 JNZ 0x00188716 MOV RDI,qword ptr [RBP + -0x10] CALL 0x00186ce0 CMP AL,0x0 JZ 0x00188714 JMP 0x001886fa LAB_001886fa: MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0xe4],0xffffffff MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x001888df LAB_00188714: JMP 0x00188716 LAB_00188716: CMP dword ptr [RBP + -0x14],0x0 JZ 0x00188735 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x50 LEA RSI,[0x1feb0a] MOV EDX,0x6ad CALL 0x00189270 LAB_00188735: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x40] MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX + 0x30] SUB RAX,RCX MOV qword ptr [RBP + -0x20],RAX CMP RAX,0x0 JZ 0x001888c1 CMP byte ptr [RBP + -0x21],0x0 JZ 0x001887e9 MOV RAX,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RAX + 0xd4] MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x30] MOV R8,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x10] MOV R9,qword ptr [RAX + 0xf8] OR R9,0x4 LEA RDI,[0x1feb0a] MOV ESI,0x6b4 CALL 0x001896c0 CMP RAX,0x0 JZ 0x001887b6 MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0xe4],0xffffffff MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x001888df LAB_001887b6: MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x40] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x38] SUB RCX,RAX MOV RAX,qword ptr [RBP + -0x10] ADD RCX,qword ptr [RAX + 0x8] MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x30] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x38],RCX JMP 0x001887e7 LAB_001887e7: JMP 0x00188842 LAB_001887e9: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0xa8] MOV RDI,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RCX + 0x30] MOV RDX,qword ptr [RBP + -0x20] CALL RAX MOV dword ptr [RBP + -0x28],EAX CMP dword ptr [RBP + -0x28],0x0 JZ 0x0018881c JMP 0x00188811 LAB_00188811: MOV EAX,dword ptr [RBP + -0x28] MOV dword ptr [RBP + -0x4],EAX JMP 0x001888df LAB_0018881c: JMP 0x0018881e LAB_0018881e: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] MOV RCX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RCX] JNC 0x0018883e MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x8],RCX LAB_0018883e: JMP 0x00188840 LAB_00188840: JMP 0x00188842 LAB_00188842: MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x30] MOV RAX,qword ptr [RBP + -0x10] ADD RCX,qword ptr [RAX + 0xe8] MOV RAX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RAX] ADD RDX,qword ptr [RBP + -0x20] AND RDX,0xfff XOR EAX,EAX SUB RAX,RDX ADD RCX,RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x48],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x30] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x40],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0xb8] ADD RCX,0x1 MOV qword ptr [RAX + 0xb8],RCX CMP dword ptr [RBP + -0x14],0x0 JZ 0x001888b0 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x50 CALL 0x001893a0 LAB_001888b0: JMP 0x001888b2 LAB_001888b2: MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0xe4] MOV dword ptr [RBP + -0x4],EAX JMP 0x001888df LAB_001888c1: JMP 0x001888c3 LAB_001888c3: CMP dword ptr [RBP + -0x14],0x0 JZ 0x001888d6 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x50 CALL 0x001893a0 LAB_001888d6: JMP 0x001888d8 LAB_001888d8: MOV dword ptr [RBP + -0x4],0x0 LAB_001888df: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x30 POP RBP RET
int my_b_flush_io_cache(ulong *param_1,int param_2) { char cVar1; int iVar2; long lVar3; long lVar4; bool bVar5; int local_1c; bVar5 = (int)param_1[0x16] == 3; local_1c = param_2; if (!bVar5) { local_1c = 0; } if (((int)param_1[0x16] == 2) || (bVar5)) { if ((*(int *)((long)param_1 + 0xd4) == -1) && (cVar1 = real_open_cached_file(param_1), cVar1 != '\0')) { *(int4 *)((long)param_1 + 0xe4) = 0xffffffff; return -1; } if (local_1c != 0) { inline_mysql_mutex_lock (param_1 + 10,"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",0x6ad); } lVar3 = param_1[8] - param_1[6]; if (lVar3 != 0) { if (bVar5) { lVar4 = inline_mysql_file_write ("/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",0x6b4, *(int4 *)((long)param_1 + 0xd4),param_1[6],lVar3,param_1[0x1f] | 4) ; if (lVar4 != 0) { *(int4 *)((long)param_1 + 0xe4) = 0xffffffff; return -1; } param_1[1] = (param_1[8] - param_1[7]) + param_1[1]; param_1[7] = param_1[6]; } else { iVar2 = (*(code *)param_1[0x15])(param_1,param_1[6],lVar3); if (iVar2 != 0) { return iVar2; } if (param_1[1] < *param_1) { param_1[1] = *param_1; } } param_1[9] = (param_1[6] + param_1[0x1d]) - (*param_1 + lVar3 & 0xfff); param_1[8] = param_1[6]; param_1[0x17] = param_1[0x17] + 1; if (local_1c != 0) { inline_mysql_mutex_unlock(param_1 + 10); } return *(int *)((long)param_1 + 0xe4); } } if (local_1c != 0) { inline_mysql_mutex_unlock(param_1 + 10); } return 0; }
65,245
my_uca_implicit_weight_put
eloqsql/strings/ctype-uca.c
static inline void my_uca_implicit_weight_put(uint16 *to, my_wc_t code, uint level) { switch (level) { case 1: to[0]= 0x0020; to[1]= 0; break; /* Secondary level */ case 2: to[0]= 0x0002; to[1]= 0; break; /* Tertiary level */ case 3: to[0]= 0x0001; to[1]= 0; break; /* Quaternary level */ default: DBUG_ASSERT(0); case 0: break; } /* Primary level */ to[0]= (uint16)(code >> 15) + my_uca_implicit_weight_base(code); to[1]= (code & 0x7FFF) | 0x8000; to[2]= 0; }
O0
c
my_uca_implicit_weight_put: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movl -0x14(%rbp), %eax movq %rax, -0x20(%rbp) subq $0x3, %rax ja 0x85303 movq -0x20(%rbp), %rax leaq 0xf3091(%rip), %rcx # 0x17834c movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq -0x8(%rbp), %rax movw $0x20, (%rax) movq -0x8(%rbp), %rax movw $0x0, 0x2(%rax) jmp 0x8530b movq -0x8(%rbp), %rax movw $0x2, (%rax) movq -0x8(%rbp), %rax movw $0x0, 0x2(%rax) jmp 0x8530b movq -0x8(%rbp), %rax movw $0x1, (%rax) movq -0x8(%rbp), %rax movw $0x0, 0x2(%rax) jmp 0x8530b jmp 0x85305 jmp 0x85307 jmp 0x85309 jmp 0x8530b movq -0x10(%rbp), %rax shrq $0xf, %rax movzwl %ax, %eax movl %eax, -0x24(%rbp) movq -0x10(%rbp), %rdi callq 0x85370 movw %ax, %cx movl -0x24(%rbp), %eax movzwl %cx, %ecx addl %ecx, %eax movw %ax, %cx movq -0x8(%rbp), %rax movw %cx, (%rax) movq -0x10(%rbp), %rax andq $0x7fff, %rax # imm = 0x7FFF orq $0x8000, %rax # imm = 0x8000 movw %ax, %cx movq -0x8(%rbp), %rax movw %cx, 0x2(%rax) movq -0x8(%rbp), %rax movw $0x0, 0x4(%rax) addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_uca_implicit_weight_put: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx mov eax, [rbp+var_14] mov [rbp+var_20], rax sub rax, 3; switch 4 cases ja short def_852C2; jumptable 00000000000852C2 default case mov rax, [rbp+var_20] lea rcx, jpt_852C2 movsxd rax, ds:(jpt_852C2 - 17834Ch)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_852C4: mov rax, [rbp+var_8]; jumptable 00000000000852C2 case 1 mov word ptr [rax], 20h ; ' ' mov rax, [rbp+var_8] mov word ptr [rax+2], 0 jmp short loc_8530B loc_852D9: mov rax, [rbp+var_8]; jumptable 00000000000852C2 case 2 mov word ptr [rax], 2 mov rax, [rbp+var_8] mov word ptr [rax+2], 0 jmp short loc_8530B loc_852EE: mov rax, [rbp+var_8]; jumptable 00000000000852C2 case 3 mov word ptr [rax], 1 mov rax, [rbp+var_8] mov word ptr [rax+2], 0 jmp short loc_8530B def_852C2: jmp short $+2; jumptable 00000000000852C2 default case loc_85305: jmp short $+2 loc_85307: jmp short $+2; jumptable 00000000000852C2 case 0 loc_85309: jmp short $+2; jumptable 00000000000852C2 case 0 loc_8530B: mov rax, [rbp+var_10] shr rax, 0Fh movzx eax, ax mov [rbp+var_24], eax mov rdi, [rbp+var_10] call my_uca_implicit_weight_base mov cx, ax mov eax, [rbp+var_24] movzx ecx, cx add eax, ecx mov cx, ax mov rax, [rbp+var_8] mov [rax], cx mov rax, [rbp+var_10] and rax, 7FFFh or rax, 8000h mov cx, ax mov rax, [rbp+var_8] mov [rax+2], cx mov rax, [rbp+var_8] mov word ptr [rax+4], 0 add rsp, 30h pop rbp retn
_WORD * my_uca_implicit_weight_put(_WORD *a1, unsigned long long a2, int a3) { _WORD *result; // rax switch ( a3 ) { case 1: *a1 = 32; a1[1] = 0; break; case 2: *a1 = 2; a1[1] = 0; break; case 3: *a1 = 1; a1[1] = 0; break; default: break; } *a1 = my_uca_implicit_weight_base(a2) + (a2 >> 15); a1[1] = a2 & 0x7FFF | 0x8000; result = a1; a1[2] = 0; return result; }
my_uca_implicit_weight_put: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX MOV EAX,dword ptr [RBP + -0x14] MOV qword ptr [RBP + -0x20],RAX SUB RAX,0x3 JA 0x00185303 MOV RAX,qword ptr [RBP + -0x20] LEA RCX,[0x27834c] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_1: MOV RAX,qword ptr [RBP + -0x8] MOV word ptr [RAX],0x20 MOV RAX,qword ptr [RBP + -0x8] MOV word ptr [RAX + 0x2],0x0 JMP 0x0018530b caseD_2: MOV RAX,qword ptr [RBP + -0x8] MOV word ptr [RAX],0x2 MOV RAX,qword ptr [RBP + -0x8] MOV word ptr [RAX + 0x2],0x0 JMP 0x0018530b caseD_3: MOV RAX,qword ptr [RBP + -0x8] MOV word ptr [RAX],0x1 MOV RAX,qword ptr [RBP + -0x8] MOV word ptr [RAX + 0x2],0x0 JMP 0x0018530b LAB_00185303: JMP 0x00185305 LAB_00185305: JMP 0x00185307 LAB_00185307: JMP 0x00185309 caseD_0: JMP 0x0018530b LAB_0018530b: MOV RAX,qword ptr [RBP + -0x10] SHR RAX,0xf MOVZX EAX,AX MOV dword ptr [RBP + -0x24],EAX MOV RDI,qword ptr [RBP + -0x10] CALL 0x00185370 MOV CX,AX MOV EAX,dword ptr [RBP + -0x24] MOVZX ECX,CX ADD EAX,ECX MOV CX,AX MOV RAX,qword ptr [RBP + -0x8] MOV word ptr [RAX],CX MOV RAX,qword ptr [RBP + -0x10] AND RAX,0x7fff OR RAX,0x8000 MOV CX,AX MOV RAX,qword ptr [RBP + -0x8] MOV word ptr [RAX + 0x2],CX MOV RAX,qword ptr [RBP + -0x8] MOV word ptr [RAX + 0x4],0x0 ADD RSP,0x30 POP RBP RET
void my_uca_implicit_weight_put(short *param_1,ulong param_2,int4 param_3) { short sVar1; switch(param_3) { default: break; case 1: *param_1 = 0x20; param_1[1] = 0; break; case 2: *param_1 = 2; param_1[1] = 0; break; case 3: *param_1 = 1; param_1[1] = 0; } sVar1 = my_uca_implicit_weight_base(param_2); *param_1 = (short)(param_2 >> 0xf) + sVar1; param_1[1] = (ushort)param_2 & 0x7fff | 0x8000; param_1[2] = 0; return; }
65,246
minja::ArrayExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const
monkey531[P]llama/common/minja.hpp
Value do_evaluate(const std::shared_ptr<Context> & context) const override { auto result = Value::array(); for (const auto& e : elements) { if (!e) throw std::runtime_error("Array element is null"); result.push_back(e->evaluate(context)); } return result; }
O1
cpp
minja::ArrayExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x68, %rsp movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx xorps %xmm0, %xmm0 movq %rsp, %rsi movaps %xmm0, (%rsi) movq $0x0, 0x10(%rsi) callq 0x8fe94 movq %rsp, %rdi callq 0x8f67c movq 0x20(%r15), %r13 movq 0x28(%r15), %rbp cmpq %rbp, %r13 je 0x8fd91 leaq 0x58(%rsp), %r15 leaq 0x18(%rsp), %r12 cmpq $0x0, (%r13) je 0x8fda3 movq (%r13), %rsi movq %r12, %rdi movq %r14, %rdx callq 0x87a32 movq %rbx, %rdi movq %r12, %rsi callq 0x8ff4a movq %r15, %rdi xorl %esi, %esi callq 0x59472 movq %r15, %rdi callq 0x5ec5e movq 0x50(%rsp), %rdi testq %rdi, %rdi je 0x8fd30 callq 0x6e5ca movq 0x40(%rsp), %rdi testq %rdi, %rdi je 0x8fd3f callq 0x6e5ca movq 0x30(%rsp), %rdi testq %rdi, %rdi je 0x8fd4e callq 0x6e5ca movq 0x20(%rsp), %rdi testq %rdi, %rdi je 0x8fd84 movq 0x9f229(%rip), %rax # 0x12ef88 cmpb $0x0, (%rax) je 0x8fd6f movl 0xc(%rdi), %eax leal -0x1(%rax), %ecx movl %ecx, 0xc(%rdi) jmp 0x8fd79 movl $0xffffffff, %eax # imm = 0xFFFFFFFF lock xaddl %eax, 0xc(%rdi) cmpl $0x1, %eax jne 0x8fd84 movq (%rdi), %rax callq *0x18(%rax) addq $0x10, %r13 cmpq %rbp, %r13 jne 0x8fcea movq %rbx, %rax addq $0x68, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0x10, %edi callq 0x1b450 movq %rax, %r15 leaq 0x635ae(%rip), %rsi # 0xf3365 movq %rax, %rdi callq 0x1b330 movq 0x9f22a(%rip), %rsi # 0x12eff0 movq 0x9f193(%rip), %rdx # 0x12ef60 movq %r15, %rdi callq 0x1bf10 movq %rax, %r14 movq %rsp, %rdi callq 0x8f67c jmp 0x8fe0b jmp 0x8fdf1 movq %rax, %r14 movq %r15, %rdi callq 0x1b690 jmp 0x8fe03 movq %rax, %r14 jmp 0x8fe03 movq %rax, %r14 leaq 0x18(%rsp), %rdi callq 0x87d28 movq %rbx, %rdi callq 0x87d28 movq %r14, %rdi callq 0x1bf90 nop
_ZNK5minja9ArrayExpr11do_evaluateERKSt10shared_ptrINS_7ContextEE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 68h mov r14, rdx mov r15, rsi mov rbx, rdi xorps xmm0, xmm0 mov rsi, rsp movaps xmmword ptr [rsi], xmm0 mov qword ptr [rsi+10h], 0 call _ZN5minja5Value5arrayESt6vectorIS0_SaIS0_EE; minja::Value::array(std::vector<minja::Value>) mov rdi, rsp call _ZNSt6vectorIN5minja5ValueESaIS1_EED2Ev; std::vector<minja::Value>::~vector() mov r13, [r15+20h] mov rbp, [r15+28h] cmp r13, rbp jz loc_8FD91 lea r15, [rsp+98h+var_40] lea r12, [rsp+98h+var_80] loc_8FCEA: cmp qword ptr [r13+0], 0 jz loc_8FDA3 mov rsi, [r13+0] mov rdi, r12 mov rdx, r14 call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&) mov rdi, rbx; this mov rsi, r12; minja::Value * call _ZN5minja5Value9push_backERKS0_; minja::Value::push_back(minja::Value const&) 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+98h+var_48] test rdi, rdi jz short loc_8FD30 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_8FD30: mov rdi, [rsp+98h+var_58] test rdi, rdi jz short loc_8FD3F call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_8FD3F: mov rdi, [rsp+98h+var_68] test rdi, rdi jz short loc_8FD4E call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_8FD4E: mov rdi, [rsp+98h+var_78] test rdi, rdi jz short loc_8FD84 mov rax, cs:__libc_single_threaded_ptr cmp byte ptr [rax], 0 jz short loc_8FD6F mov eax, [rdi+0Ch] lea ecx, [rax-1] mov [rdi+0Ch], ecx jmp short loc_8FD79 loc_8FD6F: mov eax, 0FFFFFFFFh lock xadd [rdi+0Ch], eax loc_8FD79: cmp eax, 1 jnz short loc_8FD84 mov rax, [rdi] call qword ptr [rax+18h] loc_8FD84: add r13, 10h cmp r13, rbp jnz loc_8FCEA loc_8FD91: mov rax, rbx add rsp, 68h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_8FDA3: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r15, rax lea rsi, aArrayElementIs; "Array element 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, r15; void * call ___cxa_throw mov r14, rax mov rdi, rsp call _ZNSt6vectorIN5minja5ValueESaIS1_EED2Ev; std::vector<minja::Value>::~vector() jmp short loc_8FE0B jmp short loc_8FDF1 mov r14, rax mov rdi, r15; void * call ___cxa_free_exception jmp short loc_8FE03 loc_8FDF1: mov r14, rax jmp short loc_8FE03 mov r14, rax lea rdi, [rsp+98h+var_80]; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() loc_8FE03: mov rdi, rbx; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() loc_8FE0B: mov rdi, r14 call __Unwind_Resume
minja::Value * minja::ArrayExpr::do_evaluate(minja::Value *this, long long a2, int a3, int a4, int a5, int a6) { void (****v7)(void); // r13 void (****i)(void); // rbp long long v9; // rdi signed __int32 v10; // eax std::runtime_error *exception; // r15 __int128 v13; // [rsp+0h] [rbp-98h] BYREF long long v14; // [rsp+10h] [rbp-88h] _BYTE v15[8]; // [rsp+18h] [rbp-80h] BYREF long long v16; // [rsp+20h] [rbp-78h] volatile signed __int32 *v17; // [rsp+30h] [rbp-68h] volatile signed __int32 *v18; // [rsp+40h] [rbp-58h] volatile signed __int32 *v19; // [rsp+50h] [rbp-48h] char v20[64]; // [rsp+58h] [rbp-40h] BYREF v13 = 0LL; v14 = 0LL; minja::Value::array((_DWORD)this, (unsigned int)&v13, a3, a4, a5, a6, 0LL); std::vector<minja::Value>::~vector(&v13); v7 = *(void (*****)(void))(a2 + 32); for ( i = *(void (*****)(void))(a2 + 40); v7 != i; v7 += 2 ) { if ( !*v7 ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "Array element is null"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } minja::Expression::evaluate((long long)v15, *v7); minja::Value::push_back(this, (const minja::Value *)v15); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(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>::data::~data(v20); if ( v19 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v19); if ( v18 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v18); if ( v17 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v17); v9 = v16; if ( v16 ) { if ( _libc_single_threaded ) { v10 = *(_DWORD *)(v16 + 12); *(_DWORD *)(v16 + 12) = v10 - 1; } else { v10 = _InterlockedExchangeAdd((volatile signed __int32 *)(v16 + 12), 0xFFFFFFFF); } if ( v10 == 1 ) (*(void ( **)(long long, _QWORD))(*(_QWORD *)v9 + 24LL))(v9, 0LL); } } return this; }
do_evaluate: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x68 MOV R14,RDX MOV R15,RSI MOV RBX,RDI XORPS XMM0,XMM0 MOV RSI,RSP MOVAPS xmmword ptr [RSI],XMM0 MOV qword ptr [RSI + 0x10],0x0 LAB_0018fcc2: CALL 0x0018fe94 MOV RDI,RSP CALL 0x0018f67c MOV R13,qword ptr [R15 + 0x20] MOV RBP,qword ptr [R15 + 0x28] CMP R13,RBP JZ 0x0018fd91 LEA R15,[RSP + 0x58] LEA R12,[RSP + 0x18] LAB_0018fcea: CMP qword ptr [R13],0x0 JZ 0x0018fda3 MOV RSI,qword ptr [R13] LAB_0018fcf9: MOV RDI,R12 MOV RDX,R14 CALL 0x00187a32 LAB_0018fd04: MOV RDI,RBX MOV RSI,R12 CALL 0x0018ff4a LAB_0018fd0f: MOV RDI,R15 XOR ESI,ESI CALL 0x00159472 MOV RDI,R15 CALL 0x0015ec5e MOV RDI,qword ptr [RSP + 0x50] TEST RDI,RDI JZ 0x0018fd30 CALL 0x0016e5ca LAB_0018fd30: MOV RDI,qword ptr [RSP + 0x40] TEST RDI,RDI JZ 0x0018fd3f CALL 0x0016e5ca LAB_0018fd3f: MOV RDI,qword ptr [RSP + 0x30] TEST RDI,RDI JZ 0x0018fd4e CALL 0x0016e5ca LAB_0018fd4e: MOV RDI,qword ptr [RSP + 0x20] TEST RDI,RDI JZ 0x0018fd84 MOV RAX,qword ptr [0x0022ef88] CMP byte ptr [RAX],0x0 JZ 0x0018fd6f MOV EAX,dword ptr [RDI + 0xc] LEA ECX,[RAX + -0x1] MOV dword ptr [RDI + 0xc],ECX JMP 0x0018fd79 LAB_0018fd6f: MOV EAX,0xffffffff XADD.LOCK dword ptr [RDI + 0xc],EAX LAB_0018fd79: CMP EAX,0x1 JNZ 0x0018fd84 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x18] LAB_0018fd84: ADD R13,0x10 CMP R13,RBP JNZ 0x0018fcea LAB_0018fd91: MOV RAX,RBX ADD RSP,0x68 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0018fda3: MOV EDI,0x10 CALL 0x0011b450 MOV R15,RAX LAB_0018fdb0: LEA RSI,[0x1f3365] MOV RDI,RAX CALL 0x0011b330 LAB_0018fdbf: MOV RSI,qword ptr [0x0022eff0] MOV RDX,qword ptr [0x0022ef60] MOV RDI,R15 CALL 0x0011bf10
/* minja::ArrayExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const */ ArrayExpr * __thiscall minja::ArrayExpr::do_evaluate(ArrayExpr *this,shared_ptr *param_1) { int *piVar1; long *plVar2; int iVar3; runtime_error *this_00; long *plVar4; int8 local_98; int8 uStack_90; int8 local_88; 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]; local_98 = 0; uStack_90 = 0; local_88 = 0; /* try { // try from 0018fcc2 to 0018fcc6 has its CatchHandler @ 0018fdd5 */ Value::array(); std::vector<minja::Value,std::allocator<minja::Value>>::~vector ((vector<minja::Value,std::allocator<minja::Value>> *)&local_98); plVar4 = *(long **)(param_1 + 0x20); plVar2 = *(long **)(param_1 + 0x28); if (plVar4 != plVar2) { do { if (*plVar4 == 0) { this_00 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0018fdb0 to 0018fdbe has its CatchHandler @ 0018fde4 */ std::runtime_error::runtime_error(this_00,"Array element is null"); /* try { // try from 0018fdbf to 0018fdd4 has its CatchHandler @ 0018fde2 */ /* WARNING: Subroutine does not return */ __cxa_throw(this_00,PTR_typeinfo_0022eff0,PTR__runtime_error_0022ef60); } /* try { // try from 0018fcf9 to 0018fd03 has its CatchHandler @ 0018fdf1 */ Expression::evaluate(local_80,(shared_ptr *)*plVar4); /* try { // try from 0018fd04 to 0018fd0e has its CatchHandler @ 0018fdf6 */ Value::push_back((Value *)this,(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_0022ef88 == '\0') { LOCK(); piVar1 = (int *)((long)local_78 + 0xc); iVar3 = *piVar1; *piVar1 = *piVar1 + -1; UNLOCK(); } else { iVar3 = *(int *)((long)local_78 + 0xc); *(int *)((long)local_78 + 0xc) = iVar3 + -1; } if (iVar3 == 1) { (**(code **)(*local_78 + 0x18))(); } } plVar4 = plVar4 + 2; } while (plVar4 != plVar2); } return this; }
65,247
void intx::throw_<std::invalid_argument>(char const*)
corpus-core[P]colibri-stateless/build_O2/_deps/intx-src/include/intx/intx.hpp
[[noreturn]] inline void throw_(const char* what) { #if __cpp_exceptions throw T{what}; #else std::fputs(what, stderr); std::abort(); #endif }
O2
cpp
void intx::throw_<std::invalid_argument>(char const*): pushq %r14 pushq %rbx pushq %rax movq %rdi, %r14 pushq $0x10 popq %rdi callq 0x22200 movq %rax, %rbx movq %rax, %rdi movq %r14, %rsi callq 0x22130 movq 0x75cbc(%rip), %rsi # 0xbbfb0 movq 0x75cad(%rip), %rdx # 0xbbfa8 movq %rbx, %rdi callq 0x22320 movq %rax, %r14 movq %rbx, %rdi callq 0x22440 movq %r14, %rdi callq 0x22330
_ZN4intx6throw_ISt16invalid_argumentEEvPKc: push r14 push rbx push rax mov r14, rdi push 10h pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, rax; this mov rsi, r14; char * call __ZNSt16invalid_argumentC1EPKc; std::invalid_argument::invalid_argument(char const*) mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt16invalid_argumentD1Ev_ptr; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax mov rdi, rbx; void * call ___cxa_free_exception mov rdi, r14 call __Unwind_Resume
void __noreturn intx::throw_<std::invalid_argument>(char *a1) { std::invalid_argument *exception; // rbx exception = (std::invalid_argument *)__cxa_allocate_exception(0x10uLL); std::invalid_argument::invalid_argument(exception, a1); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::invalid_argument, (void (*)(void *))&std::invalid_argument::~invalid_argument); }
throw_<std::invalid_argument>: PUSH R14 PUSH RBX PUSH RAX MOV R14,RDI PUSH 0x10 POP RDI CALL 0x00122200 MOV RBX,RAX LAB_001462e2: MOV RDI,RAX MOV RSI,R14 CALL 0x00122130 LAB_001462ed: MOV RSI,qword ptr [0x001bbfb0] MOV RDX,qword ptr [0x001bbfa8] MOV RDI,RBX CALL 0x00122320
/* void intx::throw_<std::invalid_argument>(char const*) */ void intx::throw_<std::invalid_argument>(char *param_1) { invalid_argument *this; this = (invalid_argument *)__cxa_allocate_exception(0x10); /* try { // try from 001462e2 to 001462ec has its CatchHandler @ 00146303 */ std::invalid_argument::invalid_argument(this,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(this,PTR_typeinfo_001bbfb0,PTR__invalid_argument_001bbfa8); }
65,248
get_event(worker_thread_t*, thread_group_t*, timespec*)
eloqsql/sql/threadpool_generic.cc
TP_connection_generic *get_event(worker_thread_t *current_thread, thread_group_t *thread_group, struct timespec *abstime) { DBUG_ENTER("get_event"); TP_connection_generic *connection = NULL; mysql_mutex_lock(&thread_group->mutex); DBUG_ASSERT(thread_group->active_thread_count >= 0); for(;;) { int err=0; bool oversubscribed = too_many_threads(thread_group); if (thread_group->shutdown) break; /* Check if queue is not empty */ if (!oversubscribed) { connection = queue_get(thread_group, operation_origin::WORKER); if(connection) { break; } } /* If there is currently no listener in the group, become one. */ if(!thread_group->listener) { thread_group->listener= current_thread; thread_group->active_thread_count--; mysql_mutex_unlock(&thread_group->mutex); connection = listener(current_thread, thread_group); mysql_mutex_lock(&thread_group->mutex); thread_group->active_thread_count++; /* There is no listener anymore, it just returned. */ thread_group->listener= NULL; break; } /* Last thing we try before going to sleep is to non-blocking event poll, i.e with timeout = 0. If this returns events, pick one */ if (!oversubscribed && !threadpool_dedicated_listener) { native_event ev[MAX_EVENTS]; int cnt = io_poll_wait(thread_group->pollfd, ev, MAX_EVENTS, 0); TP_INCREMENT_GROUP_COUNTER(thread_group, polls[(int)operation_origin::WORKER]); if (cnt > 0) { queue_put(thread_group, ev, cnt); connection= queue_get(thread_group,operation_origin::WORKER); break; } } /* And now, finally sleep */ current_thread->woken = false; /* wake() sets this to true */ /* Add current thread to the head of the waiting list and wait. It is important to add thread to the head rather than tail as it ensures LIFO wakeup order (hot caches, working inactivity timeout) */ thread_group->waiting_threads.push_front(current_thread); thread_group->active_thread_count--; if (abstime) { err = mysql_cond_timedwait(&current_thread->cond, &thread_group->mutex, abstime); } else { err = mysql_cond_wait(&current_thread->cond, &thread_group->mutex); } thread_group->active_thread_count++; if (!current_thread->woken) { /* Thread was not signalled by wake(), it might be a spurious wakeup or a timeout. Anyhow, we need to remove ourselves from the list now. If thread was explicitly woken, than caller removed us from the list. */ thread_group->waiting_threads.remove(current_thread); } if (err) break; } thread_group->stalled= false; mysql_mutex_unlock(&thread_group->mutex); DBUG_RETURN(connection); }
O0
cpp
get_event(worker_thread_t*, thread_group_t*, timespec*): pushq %rbp movq %rsp, %rbp subq $0x3040, %rsp # imm = 0x3040 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq $0x0, -0x20(%rbp) movq -0x10(%rbp), %rdi leaq 0x873d9f(%rip), %rsi # 0x13b8899 movl $0x547, %edx # imm = 0x547 callq 0xb44d40 jmp 0xb44b06 jmp 0xb44b08 movl $0x0, -0x24(%rbp) movq -0x10(%rbp), %rdi callq 0xb44ea0 andb $0x1, %al movb %al, -0x25(%rbp) movq -0x10(%rbp), %rdi addq $0xc0, %rdi callq 0xb49ef0 testb $0x1, %al jne 0xb44b33 jmp 0xb44b38 jmp 0xb44d12 testb $0x1, -0x25(%rbp) jne 0xb44b5b movq -0x10(%rbp), %rdi xorl %esi, %esi callq 0xb44f50 movq %rax, -0x20(%rbp) cmpq $0x0, -0x20(%rbp) je 0xb44b59 jmp 0xb44d12 jmp 0xb44b5b movq -0x10(%rbp), %rax cmpq $0x0, 0x88(%rax) jne 0xb44bdf movq -0x8(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x88(%rax) movq -0x10(%rbp), %rdi addq $0xa0, %rdi xorl %esi, %esi callq 0xb49f70 movq -0x10(%rbp), %rdi callq 0xb44fa0 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi callq 0xb45040 movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rdi leaq 0x873cea(%rip), %rsi # 0x13b8899 movl $0x564, %edx # imm = 0x564 callq 0xb44d40 movq -0x10(%rbp), %rdi addq $0xa0, %rdi xorl %esi, %esi callq 0xb4a020 movq -0x10(%rbp), %rax movq $0x0, 0x88(%rax) jmp 0xb44d12 testb $0x1, -0x25(%rbp) jne 0xb44c5f leaq 0x11b7b2d(%rip), %rax # 0x1cfc719 cmpb $0x0, (%rax) jne 0xb44c5f movq -0x10(%rbp), %rax movl 0x98(%rax), %edi leaq -0x3030(%rbp), %rsi movl $0x400, %edx # imm = 0x400 xorl %ecx, %ecx callq 0xb447d0 movl %eax, -0x3034(%rbp) movq -0x10(%rbp), %rax movq 0x108(%rax), %rcx addq $0x1, %rcx movq %rcx, 0x108(%rax) cmpl $0x0, -0x3034(%rbp) jle 0xb44c5d movq -0x10(%rbp), %rdi leaq -0x3030(%rbp), %rsi movl -0x3034(%rbp), %edx callq 0xb451f0 movq -0x10(%rbp), %rdi xorl %esi, %esi callq 0xb44f50 movq %rax, -0x20(%rbp) jmp 0xb44d12 jmp 0xb44c5f movq -0x8(%rbp), %rax movb $0x0, 0x58(%rax) movq -0x10(%rbp), %rdi addq $0x78, %rdi movq -0x8(%rbp), %rsi callq 0xb4a0d0 movq -0x10(%rbp), %rdi addq $0xa0, %rdi xorl %esi, %esi callq 0xb49f70 cmpq $0x0, -0x18(%rbp) je 0xb44cb8 movq -0x8(%rbp), %rdi addq $0x20, %rdi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx leaq 0x873bf1(%rip), %rcx # 0x13b8899 movl $0x58d, %r8d # imm = 0x58D callq 0xb452a0 movl %eax, -0x24(%rbp) jmp 0xb44cd8 movq -0x8(%rbp), %rdi addq $0x20, %rdi movq -0x10(%rbp), %rsi leaq 0x873bce(%rip), %rdx # 0x13b8899 movl $0x591, %ecx # imm = 0x591 callq 0xb45400 movl %eax, -0x24(%rbp) movq -0x10(%rbp), %rdi addq $0xa0, %rdi xorl %esi, %esi callq 0xb4a020 movq -0x8(%rbp), %rax testb $0x1, 0x58(%rax) jne 0xb44d05 movq -0x10(%rbp), %rdi addq $0x78, %rdi movq -0x8(%rbp), %rsi callq 0xb4a180 cmpl $0x0, -0x24(%rbp) je 0xb44d0d jmp 0xb44d12 jmp 0xb44b08 movq -0x10(%rbp), %rdi addq $0xc1, %rdi xorl %esi, %esi callq 0xb4a210 movq -0x10(%rbp), %rdi callq 0xb44fa0 movq -0x20(%rbp), %rax addq $0x3040, %rsp # imm = 0x3040 popq %rbp retq nopw (%rax,%rax)
_Z9get_eventP15worker_thread_tP14thread_group_tP8timespec: push rbp mov rbp, rsp sub rsp, 3040h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], 0 mov rdi, [rbp+var_10] lea rsi, aWorkspaceLlm4b_90; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 547h call _Z15coro_mutex_lockP14st_mysql_mutexPKcj; coro_mutex_lock(st_mysql_mutex *,char const*,uint) jmp short $+2 loc_B44B06: jmp short $+2 loc_B44B08: mov [rbp+var_24], 0 mov rdi, [rbp+var_10] call _ZL16too_many_threadsP14thread_group_t; too_many_threads(thread_group_t *) and al, 1 mov [rbp+var_25], al mov rdi, [rbp+var_10] add rdi, 0C0h call _ZNKSt6atomicIbEcvbEv; std::atomic<bool>::operator bool(void) test al, 1 jnz short loc_B44B33 jmp short loc_B44B38 loc_B44B33: jmp loc_B44D12 loc_B44B38: test [rbp+var_25], 1 jnz short loc_B44B5B mov rdi, [rbp+var_10] xor esi, esi call _ZL9queue_getP14thread_group_t16operation_origin; queue_get(thread_group_t *,operation_origin) mov [rbp+var_20], rax cmp [rbp+var_20], 0 jz short loc_B44B59 jmp loc_B44D12 loc_B44B59: jmp short $+2 loc_B44B5B: mov rax, [rbp+var_10] cmp qword ptr [rax+88h], 0 jnz short loc_B44BDF mov rcx, [rbp+var_8] mov rax, [rbp+var_10] mov [rax+88h], rcx mov rdi, [rbp+var_10] add rdi, 0A0h xor esi, esi call _ZNSt13__atomic_baseIiEmmEi; std::__atomic_base<int>::operator--(int) mov rdi, [rbp+var_10] call _Z17coro_mutex_unlockP14st_mysql_mutex; coro_mutex_unlock(st_mysql_mutex *) mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] call _ZL8listenerP15worker_thread_tP14thread_group_t; listener(worker_thread_t *,thread_group_t *) mov [rbp+var_20], rax mov rdi, [rbp+var_10] lea rsi, aWorkspaceLlm4b_90; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 564h call _Z15coro_mutex_lockP14st_mysql_mutexPKcj; coro_mutex_lock(st_mysql_mutex *,char const*,uint) mov rdi, [rbp+var_10] add rdi, 0A0h xor esi, esi call _ZNSt13__atomic_baseIiEppEi; std::__atomic_base<int>::operator++(int) mov rax, [rbp+var_10] mov qword ptr [rax+88h], 0 jmp loc_B44D12 loc_B44BDF: test [rbp+var_25], 1 jnz short loc_B44C5F lea rax, threadpool_dedicated_listener cmp byte ptr [rax], 0 jnz short loc_B44C5F mov rax, [rbp+var_10] mov edi, [rax+98h] lea rsi, [rbp+var_3030] mov edx, 400h xor ecx, ecx call _Z12io_poll_waitiP11epoll_eventii; io_poll_wait(int,epoll_event *,int,int) mov [rbp+var_3034], eax mov rax, [rbp+var_10] mov rcx, [rax+108h] add rcx, 1 mov [rax+108h], rcx cmp [rbp+var_3034], 0 jle short loc_B44C5D mov rdi, [rbp+var_10] lea rsi, [rbp+var_3030] mov edx, [rbp+var_3034] call _ZL9queue_putP14thread_group_tP11epoll_eventi; queue_put(thread_group_t *,epoll_event *,int) mov rdi, [rbp+var_10] xor esi, esi call _ZL9queue_getP14thread_group_t16operation_origin; queue_get(thread_group_t *,operation_origin) mov [rbp+var_20], rax jmp loc_B44D12 loc_B44C5D: jmp short $+2 loc_B44C5F: mov rax, [rbp+var_8] mov byte ptr [rax+58h], 0 mov rdi, [rbp+var_10] add rdi, 78h ; 'x' mov rsi, [rbp+var_8] call _ZN8I_P_ListI15worker_thread_t16I_P_List_adapterIS0_XadL_ZNS0_12next_in_listEEEXadL_ZNS0_12prev_in_listEEEE16I_P_List_counter21I_P_List_no_push_backIS0_EE10push_frontEPS0_; I_P_List<worker_thread_t,I_P_List_adapter<worker_thread_t,&worker_thread_t::next_in_list,&worker_thread_t::prev_in_list>,I_P_List_counter,I_P_List_no_push_back<worker_thread_t>>::push_front(worker_thread_t*) mov rdi, [rbp+var_10] add rdi, 0A0h xor esi, esi call _ZNSt13__atomic_baseIiEmmEi; std::__atomic_base<int>::operator--(int) cmp [rbp+var_18], 0 jz short loc_B44CB8 mov rdi, [rbp+var_8] add rdi, 20h ; ' ' mov rsi, [rbp+var_10] mov rdx, [rbp+var_18] lea rcx, aWorkspaceLlm4b_90; "/workspace/llm4binary/github2025/eloqsq"... mov r8d, 58Dh call _Z19coro_cond_timedwaitP13st_mysql_condP14st_mysql_mutexPK8timespecPKcj; coro_cond_timedwait(st_mysql_cond *,st_mysql_mutex *,timespec const*,char const*,uint) mov [rbp+var_24], eax jmp short loc_B44CD8 loc_B44CB8: mov rdi, [rbp+var_8] add rdi, 20h ; ' ' mov rsi, [rbp+var_10] lea rdx, aWorkspaceLlm4b_90; "/workspace/llm4binary/github2025/eloqsq"... mov ecx, 591h call _Z14coro_cond_waitP13st_mysql_condP14st_mysql_mutexPKcj; coro_cond_wait(st_mysql_cond *,st_mysql_mutex *,char const*,uint) mov [rbp+var_24], eax loc_B44CD8: mov rdi, [rbp+var_10] add rdi, 0A0h xor esi, esi call _ZNSt13__atomic_baseIiEppEi; std::__atomic_base<int>::operator++(int) mov rax, [rbp+var_8] test byte ptr [rax+58h], 1 jnz short loc_B44D05 mov rdi, [rbp+var_10] add rdi, 78h ; 'x' mov rsi, [rbp+var_8] call _ZN8I_P_ListI15worker_thread_t16I_P_List_adapterIS0_XadL_ZNS0_12next_in_listEEEXadL_ZNS0_12prev_in_listEEEE16I_P_List_counter21I_P_List_no_push_backIS0_EE6removeEPS0_; I_P_List<worker_thread_t,I_P_List_adapter<worker_thread_t,&worker_thread_t::next_in_list,&worker_thread_t::prev_in_list>,I_P_List_counter,I_P_List_no_push_back<worker_thread_t>>::remove(worker_thread_t*) loc_B44D05: cmp [rbp+var_24], 0 jz short loc_B44D0D jmp short loc_B44D12 loc_B44D0D: jmp loc_B44B08 loc_B44D12: mov rdi, [rbp+var_10] add rdi, 0C1h xor esi, esi call _ZNSt6atomicIbEaSEb; std::atomic<bool>::operator=(bool) mov rdi, [rbp+var_10] call _Z17coro_mutex_unlockP14st_mysql_mutex; coro_mutex_unlock(st_mysql_mutex *) mov rax, [rbp+var_20] add rsp, 3040h pop rbp retn
long long get_event(long long a1, thread_group_t *a2, long long a3) { int v4; // [rsp+Ch] [rbp-3034h] _BYTE v5[12299]; // [rsp+10h] [rbp-3030h] BYREF char v6; // [rsp+301Bh] [rbp-25h] int v7; // [rsp+301Ch] [rbp-24h] long long v8; // [rsp+3020h] [rbp-20h] long long v9; // [rsp+3028h] [rbp-18h] thread_group_t *v10; // [rsp+3030h] [rbp-10h] long long v11; // [rsp+3038h] [rbp-8h] v11 = a1; v10 = a2; v9 = a3; v8 = 0LL; coro_mutex_lock(a2, "/workspace/llm4binary/github2025/eloqsql/sql/threadpool_generic.cc", 1351LL); do { v7 = 0; v6 = too_many_threads(v10) & 1; if ( (std::atomic<bool>::operator bool((char *)v10 + 192) & 1) != 0 ) break; if ( (v6 & 1) == 0 ) { v8 = queue_get(v10, 0LL); if ( v8 ) break; } if ( !*((_QWORD *)v10 + 17) ) { *((_QWORD *)v10 + 17) = v11; std::__atomic_base<int>::operator--((char *)v10 + 160, 0LL); coro_mutex_unlock(v10); v8 = listener(v11, v10); coro_mutex_lock(v10, "/workspace/llm4binary/github2025/eloqsql/sql/threadpool_generic.cc", 1380LL); std::__atomic_base<int>::operator++((char *)v10 + 160, 0LL); *((_QWORD *)v10 + 17) = 0LL; break; } if ( (v6 & 1) == 0 && !threadpool_dedicated_listener ) { v4 = io_poll_wait(*((_DWORD *)v10 + 38), (long long)v5, 0x400u, 0); ++*((_QWORD *)v10 + 33); if ( v4 > 0 ) { queue_put(v10, v5, (unsigned int)v4); v8 = queue_get(v10, 0LL); break; } } *(_BYTE *)(v11 + 88) = 0; I_P_List<worker_thread_t,I_P_List_adapter<worker_thread_t,&worker_thread_t::next_in_list,&worker_thread_t::prev_in_list>,I_P_List_counter,I_P_List_no_push_back<worker_thread_t>>::push_front( (char *)v10 + 120, v11); std::__atomic_base<int>::operator--((char *)v10 + 160, 0LL); if ( v9 ) v7 = coro_cond_timedwait( v11 + 32, v10, v9, "/workspace/llm4binary/github2025/eloqsql/sql/threadpool_generic.cc", 1421LL); else v7 = coro_cond_wait(v11 + 32, v10, "/workspace/llm4binary/github2025/eloqsql/sql/threadpool_generic.cc", 1425LL); std::__atomic_base<int>::operator++((char *)v10 + 160, 0LL); if ( (*(_BYTE *)(v11 + 88) & 1) == 0 ) I_P_List<worker_thread_t,I_P_List_adapter<worker_thread_t,&worker_thread_t::next_in_list,&worker_thread_t::prev_in_list>,I_P_List_counter,I_P_List_no_push_back<worker_thread_t>>::remove( (char *)v10 + 120, v11); } while ( !v7 ); std::atomic<bool>::operator=((char *)v10 + 193, 0LL); coro_mutex_unlock(v10); return v8; }
~Type_handler_varchar_compressed: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RDI,qword ptr [RBP + -0x8] CALL 0x00b424c0 ADD RSP,0x10 POP RBP RET
/* Type_handler_varchar_compressed::~Type_handler_varchar_compressed() */ void __thiscall Type_handler_varchar_compressed::~Type_handler_varchar_compressed (Type_handler_varchar_compressed *this) { Type_handler_varchar::~Type_handler_varchar((Type_handler_varchar *)this); return; }
65,249
checkParam(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&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/FiguresStorage.cpp
void checkParam(const json& data, const std::string& param) { if (!data.contains(param)) { std::string errMsg = "missing param in json data: " + param; LOG_ERROR(FIGURES_STORAGE_LOG, errMsg); throw std::invalid_argument(errMsg); } }
O0
cpp
checkParam(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&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi callq 0x5f7e0 testb $0x1, %al jne 0x62058 movq -0x10(%rbp), %rdx leaq 0x2ad25(%rip), %rsi # 0x8cc88 leaq -0x30(%rbp), %rdi callq 0x5df60 callq 0x5bc60 movq %rax, -0x70(%rbp) jmp 0x61f77 leaq -0x61(%rbp), %rdi movq %rdi, -0x78(%rbp) callq 0x611c0 movq -0x78(%rbp), %rdx leaq 0x2ad16(%rip), %rsi # 0x8cca5 leaq -0x60(%rbp), %rdi callq 0x60e40 jmp 0x61f9a movq -0x70(%rbp), %rdi movl $0x2, %esi leaq -0x60(%rbp), %rdx leaq -0x30(%rbp), %rcx callq 0x5ee40 jmp 0x61fb2 leaq -0x60(%rbp), %rdi callq 0x5cfd0 leaq -0x61(%rbp), %rdi callq 0x5eab0 movl $0x10, %edi callq 0x5c6c0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x80(%rbp) leaq -0x30(%rbp), %rsi callq 0x61040 jmp 0x61fe3 movq -0x80(%rbp), %rdi movq 0x44fda(%rip), %rsi # 0xa6fc8 movq 0x44fbb(%rip), %rdx # 0xa6fb0 callq 0x60f20 jmp 0x6206a movq %rax, %rcx movl %edx, %eax movq %rcx, -0x38(%rbp) movl %eax, -0x3c(%rbp) jmp 0x6204d movq %rax, %rcx movl %edx, %eax movq %rcx, -0x38(%rbp) movl %eax, -0x3c(%rbp) jmp 0x6202d movq %rax, %rcx movl %edx, %eax movq %rcx, -0x38(%rbp) movl %eax, -0x3c(%rbp) leaq -0x60(%rbp), %rdi callq 0x5cfd0 leaq -0x61(%rbp), %rdi callq 0x5eab0 jmp 0x6204d movq -0x80(%rbp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, -0x38(%rbp) movl %eax, -0x3c(%rbp) callq 0x5d520 leaq -0x30(%rbp), %rdi callq 0x5cfd0 jmp 0x62061 addq $0x80, %rsp popq %rbp retq movq -0x38(%rbp), %rdi callq 0x611b0 nopw (%rax,%rax)
_Z10checkParamRKN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEERKS9_: push rbp mov rbp, rsp sub rsp, 80h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] call __ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsERKS9_; 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>::contains(std::string const&) test al, 1 jnz loc_62058 mov rdx, [rbp+var_10] lea rsi, aMissingParamIn; "missing param in json data: " lea rdi, [rbp+var_30]; this call __ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_; std::operator+<char>(char const*,std::string const&) call __ZN6Logger11getInstanceEv; Logger::getInstance(void) mov [rbp+var_70], rax jmp short $+2 loc_61F77: lea rdi, [rbp+var_61] mov [rbp+var_78], rdi call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdx, [rbp+var_78] lea rsi, aFiguresStorage; "FIGURES_STORAGE" lea rdi, [rbp+var_60] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_61F9A: mov rdi, [rbp+var_70] mov esi, 2 lea rdx, [rbp+var_60] lea rcx, [rbp+var_30] call __ZN6Logger3logENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_; Logger::log(Logger::Level,std::string const&,std::string const&) jmp short $+2 loc_61FB2: lea rdi, [rbp+var_60] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rbp+var_61] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rdi, rax mov rax, rdi mov [rbp+var_80], rax lea rsi, [rbp+var_30] call __ZNSt16invalid_argumentC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::invalid_argument::invalid_argument(std::string const&) jmp short $+2 loc_61FE3: mov rdi, [rbp+var_80]; void * mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt16invalid_argumentD1Ev_ptr; void (*)(void *) call ___cxa_throw jmp short loc_6206A mov rcx, rax mov eax, edx mov [rbp+var_38], rcx mov [rbp+var_3C], eax jmp short loc_6204D mov rcx, rax mov eax, edx mov [rbp+var_38], rcx mov [rbp+var_3C], eax jmp short loc_6202D mov rcx, rax mov eax, edx mov [rbp+var_38], rcx mov [rbp+var_3C], eax lea rdi, [rbp+var_60] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_6202D: lea rdi, [rbp+var_61] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() jmp short loc_6204D mov rdi, [rbp+var_80]; void * mov rcx, rax mov eax, edx mov [rbp+var_38], rcx mov [rbp+var_3C], eax call ___cxa_free_exception loc_6204D: lea rdi, [rbp+var_30] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_62061 loc_62058: add rsp, 80h pop rbp retn loc_62061: mov rdi, [rbp+var_38] call __Unwind_Resume loc_6206A: nop word ptr [rax+rax+00h]
long long checkParam(long long a1, long long a2) { long long result; // rax void *exception; // [rsp+0h] [rbp-80h] long long Instance; // [rsp+10h] [rbp-70h] char v5; // [rsp+1Fh] [rbp-61h] BYREF _BYTE v6[36]; // [rsp+20h] [rbp-60h] BYREF _BYTE v7[32]; // [rsp+50h] [rbp-30h] BYREF long long v8; // [rsp+70h] [rbp-10h] long long v9; // [rsp+78h] [rbp-8h] v9 = a1; v8 = a2; result = 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>::contains( a1, a2); if ( (result & 1) == 0 ) { std::operator+<char>(v7, "missing param in json data: ", v8); Instance = Logger::getInstance((Logger *)v7); std::allocator<char>::allocator(); std::string::basic_string<std::allocator<char>>(v6, "FIGURES_STORAGE", &v5); Logger::log(Instance, 2LL, v6, v7); std::string::~string(v6); std::allocator<char>::~allocator(&v5); exception = __cxa_allocate_exception(0x10uLL); std::invalid_argument::invalid_argument(exception, v7); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::invalid_argument, (void (*)(void *))&std::invalid_argument::~invalid_argument); } return result; }
checkParam: PUSH RBP MOV RBP,RSP SUB RSP,0x80 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] CALL 0x0015f7e0 TEST AL,0x1 JNZ 0x00162058 MOV RDX,qword ptr [RBP + -0x10] LEA RSI,[0x18cc88] LEA RDI,[RBP + -0x30] CALL 0x0015df60 LAB_00161f6c: CALL 0x0015bc60 MOV qword ptr [RBP + -0x70],RAX JMP 0x00161f77 LAB_00161f77: LEA RDI,[RBP + -0x61] MOV qword ptr [RBP + -0x78],RDI CALL 0x001611c0 MOV RDX,qword ptr [RBP + -0x78] LAB_00161f88: LEA RSI,[0x18cca5] LEA RDI,[RBP + -0x60] CALL 0x00160e40 JMP 0x00161f9a LAB_00161f9a: MOV RDI,qword ptr [RBP + -0x70] MOV ESI,0x2 LEA RDX,[RBP + -0x60] LEA RCX,[RBP + -0x30] CALL 0x0015ee40 LAB_00161fb0: JMP 0x00161fb2 LAB_00161fb2: LEA RDI,[RBP + -0x60] CALL 0x0015cfd0 LEA RDI,[RBP + -0x61] CALL 0x0015eab0 MOV EDI,0x10 CALL 0x0015c6c0 MOV RDI,RAX MOV RAX,RDI MOV qword ptr [RBP + -0x80],RAX LAB_00161fd8: LEA RSI,[RBP + -0x30] CALL 0x00161040 JMP 0x00161fe3 LAB_00161fe3: MOV RDI,qword ptr [RBP + -0x80] MOV RSI,qword ptr [0x001a6fc8] MOV RDX,qword ptr [0x001a6fb0] CALL 0x00160f20 LAB_00162058: ADD RSP,0x80 POP RBP RET
/* checkParam(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&, std::__cxx11::string const&) */ void checkParam(basic_json *param_1,string *param_2) { ulong uVar1; int8 uVar2; invalid_argument *this; allocator local_69; string local_68 [48]; string local_38 [32]; string *local_18; basic_json *local_10; local_18 = param_2; local_10 = param_1; uVar1 = 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> ::contains((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,param_2); if ((uVar1 & 1) == 0) { std::operator+((char *)local_38,(string *)"missing param in json data: "); /* try { // try from 00161f6c to 00161f70 has its CatchHandler @ 00161ffc */ uVar2 = Logger::getInstance(); std::allocator<char>::allocator(); /* try { // try from 00161f88 to 00161f97 has its CatchHandler @ 0016200a */ std::__cxx11::string::string<std::allocator<char>>(local_68,"FIGURES_STORAGE",&local_69); /* try { // try from 00161f9a to 00161faf has its CatchHandler @ 00162018 */ Logger::log(uVar2,2,local_68,local_38); std::__cxx11::string::~string(local_68); std::allocator<char>::~allocator((allocator<char> *)&local_69); this = (invalid_argument *)__cxa_allocate_exception(0x10); /* try { // try from 00161fd8 to 00161fe0 has its CatchHandler @ 00162038 */ std::invalid_argument::invalid_argument(this,local_38); /* try { // try from 00161fe3 to 00161ff9 has its CatchHandler @ 00161ffc */ /* WARNING: Subroutine does not return */ __cxa_throw(this,PTR_typeinfo_001a6fc8,PTR__invalid_argument_001a6fb0); } return; }
65,250
checkParam(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&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/FiguresStorage.cpp
void checkParam(const json& data, const std::string& param) { if (!data.contains(param)) { std::string errMsg = "missing param in json data: " + param; LOG_ERROR(FIGURES_STORAGE_LOG, errMsg); throw std::invalid_argument(errMsg); } }
O1
cpp
checkParam(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&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %r14 pushq %rbx subq $0x48, %rsp movq %rsi, %rbx cmpb $0x1, (%rdi) jne 0x1271a movq %rdi, %r14 movq 0x8(%rdi), %rdi movq %rbx, %rsi callq 0x11850 movq 0x8(%r14), %rcx addq $0x8, %rcx cmpq %rcx, %rax je 0x1271a addq $0x48, %rsp popq %rbx popq %r14 retq leaq 0xfedb(%rip), %rsi # 0x225fc leaq 0x28(%rsp), %rdi movq %rbx, %rdx callq 0x118a0 callq 0x11260 movq %rax, %rbx leaq 0x18(%rsp), %r14 movq %r14, -0x10(%r14) leaq 0xfed3(%rip), %rsi # 0x22619 leaq 0xfedb(%rip), %rdx # 0x22628 leaq 0x8(%rsp), %rdi callq 0x11370 leaq 0x8(%rsp), %rdx leaq 0x28(%rsp), %rcx movq %rbx, %rdi movl $0x2, %esi callq 0x11af0 movq 0x8(%rsp), %rdi cmpq %r14, %rdi je 0x12785 movq 0x18(%rsp), %rsi incq %rsi callq 0x119b0 movl $0x10, %edi callq 0x11460 movq %rax, %r14 leaq 0x28(%rsp), %rsi movq %rax, %rdi callq 0x11fe0 movq 0x1a832(%rip), %rsi # 0x2cfd8 movq 0x1a813(%rip), %rdx # 0x2cfc0 movq %r14, %rdi callq 0x11fb0 movq %rax, %rbx movq %r14, %rdi callq 0x116b0 jmp 0x127e3 movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r14, %rdi je 0x127e3 movq 0x18(%rsp), %rsi incq %rsi callq 0x119b0 jmp 0x127e3 jmp 0x127e0 movq %rax, %rbx leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x127fe movq 0x38(%rsp), %rsi incq %rsi callq 0x119b0 movq %rbx, %rdi callq 0x12010
_Z10checkParamRKN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEERKS9_: push r14 push rbx sub rsp, 48h mov rbx, rsi cmp byte ptr [rdi], 1 jnz short loc_1271A mov r14, rdi mov rdi, [rdi+8] mov rsi, rbx call __ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorS5_blmdSaNS9_14adl_serializerESC_IhSaIhEEvEEESt10_Select1stISH_ESt4lessIvESaISH_EE4findERS7_; std::_Rb_tree<std::string,std::pair<std::string const,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>>,std::_Select1st<std::pair<std::string const,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>>>,std::less<void>,std::allocator<std::pair<std::string const,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>>>>::find(std::string const&) mov rcx, [r14+8] add rcx, 8 cmp rax, rcx jz short loc_1271A add rsp, 48h pop rbx pop r14 retn loc_1271A: lea rsi, aMissingParamIn; "missing param in json data: " lea rdi, [rsp+58h+var_30]; this mov rdx, rbx call __ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_; std::operator+<char>(char const*,std::string const&) call __ZN6Logger11getInstanceEv; Logger::getInstance(void) mov rbx, rax lea r14, [rsp+58h+var_40] mov [r14-10h], r14 lea rsi, aFiguresStorage; "FIGURES_STORAGE" lea rdx, aFiguresStorage+0Fh; "" lea rdi, [rsp+58h+var_50] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rdx, [rsp+58h+var_50] lea rcx, [rsp+58h+var_30] mov rdi, rbx mov esi, 2 call __ZN6Logger3logENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_; Logger::log(Logger::Level,std::string const&,std::string const&) mov rdi, [rsp+58h+var_50]; void * cmp rdi, r14 jz short loc_12785 mov rsi, [rsp+58h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_12785: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, [rsp+58h+var_30] mov rdi, rax call __ZNSt16invalid_argumentC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::invalid_argument::invalid_argument(std::string const&) mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt16invalid_argumentD1Ev_ptr; void (*)(void *) mov rdi, r14; void * call ___cxa_throw mov rbx, rax mov rdi, r14; void * call ___cxa_free_exception jmp short loc_127E3 mov rbx, rax mov rdi, [rsp+58h+var_50]; void * cmp rdi, r14 jz short loc_127E3 mov rsi, [rsp+58h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_127E3 jmp short $+2 loc_127E0: mov rbx, rax loc_127E3: lea rax, [rsp+58h+var_20] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_127FE mov rsi, [rsp+58h+var_20] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_127FE: mov rdi, rbx call __Unwind_Resume
long long checkParam(long long a1, long long a2) { long long result; // rax long long Instance; // rbx void *exception; // r14 void *v5[2]; // [rsp+8h] [rbp-50h] BYREF _QWORD v6[2]; // [rsp+18h] [rbp-40h] BYREF _BYTE v7[16]; // [rsp+28h] [rbp-30h] BYREF if ( *(_BYTE *)a1 != 1 || (result = std::_Rb_tree<std::string,std::pair<std::string const,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>>,std::_Select1st<std::pair<std::string const,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>>>,std::less<void>,std::allocator<std::pair<std::string const,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>>>>::find( *(_QWORD *)(a1 + 8), a2), result == *(_QWORD *)(a1 + 8) + 8LL) ) { std::operator+<char>(v7, "missing param in json data: ", a2); Instance = Logger::getInstance((Logger *)v7); v5[0] = v6; std::string::_M_construct<char const*>(v5, "FIGURES_STORAGE", ""); Logger::log(Instance, 2LL, v5, v7); if ( v5[0] != v6 ) operator delete(v5[0], v6[0] + 1LL); exception = __cxa_allocate_exception(0x10uLL); std::invalid_argument::invalid_argument(exception, v7); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::invalid_argument, (void (*)(void *))&std::invalid_argument::~invalid_argument); } return result; }
checkParam: PUSH R14 PUSH RBX SUB RSP,0x48 MOV RBX,RSI CMP byte ptr [RDI],0x1 JNZ 0x0011271a MOV R14,RDI MOV RDI,qword ptr [RDI + 0x8] MOV RSI,RBX CALL 0x00111850 MOV RCX,qword ptr [R14 + 0x8] ADD RCX,0x8 CMP RAX,RCX JZ 0x0011271a ADD RSP,0x48 POP RBX POP R14 RET LAB_0011271a: LEA RSI,[0x1225fc] LEA RDI,[RSP + 0x28] MOV RDX,RBX CALL 0x001118a0 LAB_0011272e: CALL 0x00111260 MOV RBX,RAX LEA R14,[RSP + 0x18] MOV qword ptr [R14 + -0x10],R14 LAB_0011273f: LEA RSI,[0x122619] LEA RDX,[0x122628] LEA RDI,[RSP + 0x8] CALL 0x00111370 LAB_00112757: LEA RDX,[RSP + 0x8] LEA RCX,[RSP + 0x28] MOV RDI,RBX MOV ESI,0x2 CALL 0x00111af0 LAB_0011276e: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R14 JZ 0x00112785 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001119b0 LAB_00112785: MOV EDI,0x10 CALL 0x00111460 MOV R14,RAX LAB_00112792: LEA RSI,[RSP + 0x28] MOV RDI,RAX CALL 0x00111fe0 LAB_0011279f: MOV RSI,qword ptr [0x0012cfd8] MOV RDX,qword ptr [0x0012cfc0] MOV RDI,R14 CALL 0x00111fb0
/* checkParam(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&, std::__cxx11::string const&) */ void checkParam(basic_json *param_1,string *param_2) { long lVar1; int8 uVar2; invalid_argument *this; long *local_50 [2]; long local_40 [2]; string local_30 [32]; if (*param_1 == (basic_json)0x1) { lVar1 = std:: _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_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>>,std::_Select1st<std::pair<std::__cxx11::string_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>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_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>>>> ::find(*(_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_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>>,std::_Select1st<std::pair<std::__cxx11::string_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>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_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>>>> **)(param_1 + 8),param_2); if (lVar1 != *(long *)(param_1 + 8) + 8) { return; } } std::operator+((char *)local_30,(string *)"missing param in json data: "); /* try { // try from 0011272e to 00112732 has its CatchHandler @ 001127e0 */ uVar2 = Logger::getInstance(); /* try { // try from 0011273f to 00112756 has its CatchHandler @ 001127de */ local_50[0] = local_40; std::__cxx11::string::_M_construct<char_const*>(local_50,"FIGURES_STORAGE",""); /* try { // try from 00112757 to 0011276d has its CatchHandler @ 001127c2 */ Logger::log(uVar2,2,local_50,local_30); if (local_50[0] != local_40) { operator_delete(local_50[0],local_40[0] + 1); } this = (invalid_argument *)__cxa_allocate_exception(0x10); /* try { // try from 00112792 to 0011279e has its CatchHandler @ 001127b5 */ std::invalid_argument::invalid_argument(this,local_30); /* try { // try from 0011279f to 001127b4 has its CatchHandler @ 001127e0 */ /* WARNING: Subroutine does not return */ __cxa_throw(this,PTR_typeinfo_0012cfd8,PTR__invalid_argument_0012cfc0); }
65,251
checkParam(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&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/FiguresStorage.cpp
void checkParam(const json& data, const std::string& param) { if (!data.contains(param)) { std::string errMsg = "missing param in json data: " + param; LOG_ERROR(FIGURES_STORAGE_LOG, errMsg); throw std::invalid_argument(errMsg); } }
O2
cpp
checkParam(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&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %r14 pushq %rbx subq $0x48, %rsp movq %rsi, %rbx callq 0x1d5e0 testb %al, %al je 0x1e106 addq $0x48, %rsp popq %rbx popq %r14 retq leaq 0xd4df(%rip), %rsi # 0x2b5ec leaq 0x28(%rsp), %rdi movq %rbx, %rdx callq 0x1cf60 callq 0x1c450 movq %rax, %rbx leaq 0xd4e0(%rip), %rsi # 0x2b609 leaq 0x8(%rsp), %rdi leaq 0x7(%rsp), %rdx callq 0x1dc00 pushq $0x2 popq %rsi leaq 0x8(%rsp), %rdx leaq 0x28(%rsp), %rcx movq %rbx, %rdi callq 0x1d340 leaq 0x8(%rsp), %rdi callq 0x1c6f0 pushq $0x10 popq %rdi callq 0x1c790 movq %rax, %r14 leaq 0x28(%rsp), %rsi movq %rax, %rdi callq 0x1dc50 movq 0x1ae62(%rip), %rsi # 0x38fd8 movq 0x1ae43(%rip), %rdx # 0x38fc0 movq %r14, %rdi callq 0x1dc20 movq %rax, %rbx movq %r14, %rdi callq 0x1cc30 jmp 0x1e1a6 movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x1c6f0 jmp 0x1e1a6 jmp 0x1e1a3 movq %rax, %rbx leaq 0x28(%rsp), %rdi callq 0x1c6f0 movq %rbx, %rdi callq 0x1dcb0
_Z10checkParamRKN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEERKS9_: push r14 push rbx sub rsp, 48h mov rbx, rsi call __ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsERKS9_; 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>::contains(std::string const&) test al, al jz short loc_1E106 add rsp, 48h pop rbx pop r14 retn loc_1E106: lea rsi, aMissingParamIn; "missing param in json data: " lea rdi, [rsp+58h+var_30]; this mov rdx, rbx call __ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_; std::operator+<char>(char const*,std::string const&) call __ZN6Logger11getInstanceEv; Logger::getInstance(void) mov rbx, rax lea rsi, aFiguresStorage; "FIGURES_STORAGE" lea rdi, [rsp+58h+var_50] lea rdx, [rsp+58h+var_51] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) push 2 pop rsi lea rdx, [rsp+58h+var_50] lea rcx, [rsp+58h+var_30] mov rdi, rbx call __ZN6Logger3logENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_; Logger::log(Logger::Level,std::string const&,std::string const&) lea rdi, [rsp+58h+var_50] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() push 10h pop rdi; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, [rsp+58h+var_30] mov rdi, rax call __ZNSt16invalid_argumentC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::invalid_argument::invalid_argument(std::string const&) mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt16invalid_argumentD1Ev_ptr; void (*)(void *) mov rdi, r14; void * call ___cxa_throw mov rbx, rax mov rdi, r14; void * call ___cxa_free_exception jmp short loc_1E1A6 mov rbx, rax lea rdi, [rsp+58h+var_50] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_1E1A6 jmp short $+2 loc_1E1A3: mov rbx, rax loc_1E1A6: lea rdi, [rsp+58h+var_30] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, rbx call __Unwind_Resume
long long checkParam(long long a1, long long a2) { long long result; // rax long long Instance; // rbx void *exception; // r14 char v5; // [rsp+7h] [rbp-51h] BYREF _BYTE v6[32]; // [rsp+8h] [rbp-50h] BYREF _BYTE v7[48]; // [rsp+28h] [rbp-30h] BYREF result = 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>::contains(); if ( !(_BYTE)result ) { std::operator+<char>(v7, "missing param in json data: ", a2); Instance = Logger::getInstance((Logger *)v7); std::string::basic_string<std::allocator<char>>(v6, "FIGURES_STORAGE", &v5); Logger::log(Instance, 2LL, v6, v7); std::string::~string(v6); exception = __cxa_allocate_exception(0x10uLL); std::invalid_argument::invalid_argument(exception, v7); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::invalid_argument, (void (*)(void *))&std::invalid_argument::~invalid_argument); } return result; }
checkParam: PUSH R14 PUSH RBX SUB RSP,0x48 MOV RBX,RSI CALL 0x0011d5e0 TEST AL,AL JZ 0x0011e106 ADD RSP,0x48 POP RBX POP R14 RET LAB_0011e106: LEA RSI,[0x12b5ec] LEA RDI,[RSP + 0x28] MOV RDX,RBX CALL 0x0011cf60 LAB_0011e11a: CALL 0x0011c450 LAB_0011e11f: MOV RBX,RAX LEA RSI,[0x12b609] LEA RDI,[RSP + 0x8] LEA RDX,[RSP + 0x7] CALL 0x0011dc00 LAB_0011e138: PUSH 0x2 POP RSI LEA RDX,[RSP + 0x8] LEA RCX,[RSP + 0x28] MOV RDI,RBX CALL 0x0011d340 LAB_0011e14d: LEA RDI,[RSP + 0x8] CALL 0x0011c6f0 PUSH 0x10 POP RDI CALL 0x0011c790 MOV R14,RAX LAB_0011e162: LEA RSI,[RSP + 0x28] MOV RDI,RAX CALL 0x0011dc50 LAB_0011e16f: MOV RSI,qword ptr [0x00138fd8] MOV RDX,qword ptr [0x00138fc0] MOV RDI,R14 CALL 0x0011dc20
/* checkParam(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&, std::__cxx11::string const&) */ void checkParam(basic_json *param_1,string *param_2) { int8 uVar1; char cVar2; invalid_argument *this; allocator local_51; string local_50 [32]; string local_30 [32]; cVar2 = 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> ::contains((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,param_2); if (cVar2 != '\0') { return; } std::operator+((char *)local_30,(string *)"missing param in json data: "); /* try { // try from 0011e11a to 0011e11e has its CatchHandler @ 0011e1a3 */ uVar1 = Logger::getInstance(); /* try { // try from 0011e11f to 0011e137 has its CatchHandler @ 0011e1a1 */ std::__cxx11::string::string<std::allocator<char>>(local_50,"FIGURES_STORAGE",&local_51); /* try { // try from 0011e138 to 0011e14c has its CatchHandler @ 0011e192 */ Logger::log(uVar1,2,local_50,local_30); std::__cxx11::string::~string(local_50); this = (invalid_argument *)__cxa_allocate_exception(0x10); /* try { // try from 0011e162 to 0011e16e has its CatchHandler @ 0011e185 */ std::invalid_argument::invalid_argument(this,local_30); /* try { // try from 0011e16f to 0011e184 has its CatchHandler @ 0011e1a3 */ /* WARNING: Subroutine does not return */ __cxa_throw(this,PTR_typeinfo_00138fd8,PTR__invalid_argument_00138fc0); }
65,252
checkParam(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&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/FiguresStorage.cpp
void checkParam(const json& data, const std::string& param) { if (!data.contains(param)) { std::string errMsg = "missing param in json data: " + param; LOG_ERROR(FIGURES_STORAGE_LOG, errMsg); throw std::invalid_argument(errMsg); } }
O3
cpp
checkParam(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&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %r14 pushq %rbx subq $0x48, %rsp movq %rsi, %rbx cmpb $0x1, (%rdi) jne 0x1272d movq %rdi, %r14 movq 0x8(%rdi), %rdi movq %rbx, %rsi callq 0x11840 movq 0x8(%r14), %rcx addq $0x8, %rcx cmpq %rcx, %rax je 0x1272d addq $0x48, %rsp popq %rbx popq %r14 retq leaq 0xeec8(%rip), %rsi # 0x215fc leaq 0x28(%rsp), %rdi movq %rbx, %rdx callq 0x11890 callq 0x11260 movq %rax, %rbx leaq 0x18(%rsp), %r14 movq %r14, -0x10(%r14) leaq 0xeec0(%rip), %rsi # 0x21619 leaq 0xeec8(%rip), %rdx # 0x21628 leaq 0x8(%rsp), %rdi callq 0x11370 leaq 0x8(%rsp), %rdx leaq 0x28(%rsp), %rcx movq %rbx, %rdi movl $0x2, %esi callq 0x11ad0 movq 0x8(%rsp), %rdi cmpq %r14, %rdi je 0x12798 movq 0x18(%rsp), %rsi incq %rsi callq 0x119a0 movl $0x10, %edi callq 0x11460 movq %rax, %r14 leaq 0x28(%rsp), %rsi movq %rax, %rdi callq 0x11fb0 movq 0x1981f(%rip), %rsi # 0x2bfd8 movq 0x19800(%rip), %rdx # 0x2bfc0 movq %r14, %rdi callq 0x11f80 movq %rax, %rbx movq %r14, %rdi callq 0x116a0 jmp 0x127f6 movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r14, %rdi je 0x127f6 movq 0x18(%rsp), %rsi incq %rsi callq 0x119a0 jmp 0x127f6 jmp 0x127f3 movq %rax, %rbx leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x12811 movq 0x38(%rsp), %rsi incq %rsi callq 0x119a0 movq %rbx, %rdi callq 0x11fe0
_Z10checkParamRKN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEERKS9_: push r14 push rbx sub rsp, 48h mov rbx, rsi cmp byte ptr [rdi], 1 jnz short loc_1272D mov r14, rdi mov rdi, [rdi+8] mov rsi, rbx call __ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorS5_blmdSaNS9_14adl_serializerESC_IhSaIhEEvEEESt10_Select1stISH_ESt4lessIvESaISH_EE4findERS7_; std::_Rb_tree<std::string,std::pair<std::string const,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>>,std::_Select1st<std::pair<std::string const,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>>>,std::less<void>,std::allocator<std::pair<std::string const,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>>>>::find(std::string const&) mov rcx, [r14+8] add rcx, 8 cmp rax, rcx jz short loc_1272D add rsp, 48h pop rbx pop r14 retn loc_1272D: lea rsi, aMissingParamIn; "missing param in json data: " lea rdi, [rsp+58h+var_30]; this mov rdx, rbx call __ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_; std::operator+<char>(char const*,std::string const&) call __ZN6Logger11getInstanceEv; Logger::getInstance(void) mov rbx, rax lea r14, [rsp+58h+var_40] mov [r14-10h], r14 lea rsi, aFiguresStorage; "FIGURES_STORAGE" lea rdx, aFiguresStorage+0Fh; "" lea rdi, [rsp+58h+var_50] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rdx, [rsp+58h+var_50] lea rcx, [rsp+58h+var_30] mov rdi, rbx mov esi, 2 call __ZN6Logger3logENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_; Logger::log(Logger::Level,std::string const&,std::string const&) mov rdi, [rsp+58h+var_50]; void * cmp rdi, r14 jz short loc_12798 mov rsi, [rsp+58h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_12798: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, [rsp+58h+var_30] mov rdi, rax call __ZNSt16invalid_argumentC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::invalid_argument::invalid_argument(std::string const&) mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt16invalid_argumentD1Ev_ptr; void (*)(void *) mov rdi, r14; void * call ___cxa_throw mov rbx, rax mov rdi, r14; void * call ___cxa_free_exception jmp short loc_127F6 mov rbx, rax mov rdi, [rsp+58h+var_50]; void * cmp rdi, r14 jz short loc_127F6 mov rsi, [rsp+58h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_127F6 jmp short $+2 loc_127F3: mov rbx, rax loc_127F6: lea rax, [rsp+58h+var_20] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_12811 mov rsi, [rsp+58h+var_20] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_12811: mov rdi, rbx call __Unwind_Resume
long long checkParam(long long a1, long long a2) { long long result; // rax long long Instance; // rbx void *exception; // r14 void *v5[2]; // [rsp+8h] [rbp-50h] BYREF _QWORD v6[2]; // [rsp+18h] [rbp-40h] BYREF _BYTE v7[16]; // [rsp+28h] [rbp-30h] BYREF if ( *(_BYTE *)a1 != 1 || (result = std::_Rb_tree<std::string,std::pair<std::string const,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>>,std::_Select1st<std::pair<std::string const,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>>>,std::less<void>,std::allocator<std::pair<std::string const,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>>>>::find( *(_QWORD *)(a1 + 8), a2), result == *(_QWORD *)(a1 + 8) + 8LL) ) { std::operator+<char>(v7, "missing param in json data: ", a2); Instance = Logger::getInstance((Logger *)v7); v5[0] = v6; std::string::_M_construct<char const*>(v5, "FIGURES_STORAGE", ""); Logger::log(Instance, 2LL, v5, v7); if ( v5[0] != v6 ) operator delete(v5[0], v6[0] + 1LL); exception = __cxa_allocate_exception(0x10uLL); std::invalid_argument::invalid_argument(exception, v7); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::invalid_argument, (void (*)(void *))&std::invalid_argument::~invalid_argument); } return result; }
checkParam: PUSH R14 PUSH RBX SUB RSP,0x48 MOV RBX,RSI CMP byte ptr [RDI],0x1 JNZ 0x0011272d MOV R14,RDI MOV RDI,qword ptr [RDI + 0x8] MOV RSI,RBX CALL 0x00111840 MOV RCX,qword ptr [R14 + 0x8] ADD RCX,0x8 CMP RAX,RCX JZ 0x0011272d ADD RSP,0x48 POP RBX POP R14 RET LAB_0011272d: LEA RSI,[0x1215fc] LEA RDI,[RSP + 0x28] MOV RDX,RBX CALL 0x00111890 LAB_00112741: CALL 0x00111260 MOV RBX,RAX LEA R14,[RSP + 0x18] MOV qword ptr [R14 + -0x10],R14 LAB_00112752: LEA RSI,[0x121619] LEA RDX,[0x121628] LEA RDI,[RSP + 0x8] CALL 0x00111370 LAB_0011276a: LEA RDX,[RSP + 0x8] LEA RCX,[RSP + 0x28] MOV RDI,RBX MOV ESI,0x2 CALL 0x00111ad0 LAB_00112781: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R14 JZ 0x00112798 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001119a0 LAB_00112798: MOV EDI,0x10 CALL 0x00111460 MOV R14,RAX LAB_001127a5: LEA RSI,[RSP + 0x28] MOV RDI,RAX CALL 0x00111fb0 LAB_001127b2: MOV RSI,qword ptr [0x0012bfd8] MOV RDX,qword ptr [0x0012bfc0] MOV RDI,R14 CALL 0x00111f80
/* checkParam(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&, std::__cxx11::string const&) */ void checkParam(basic_json *param_1,string *param_2) { long lVar1; int8 uVar2; invalid_argument *this; long *local_50 [2]; long local_40 [2]; string local_30 [32]; if (*param_1 == (basic_json)0x1) { lVar1 = std:: _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_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>>,std::_Select1st<std::pair<std::__cxx11::string_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>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_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>>>> ::find(*(_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_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>>,std::_Select1st<std::pair<std::__cxx11::string_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>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_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>>>> **)(param_1 + 8),param_2); if (lVar1 != *(long *)(param_1 + 8) + 8) { return; } } std::operator+((char *)local_30,(string *)"missing param in json data: "); /* try { // try from 00112741 to 00112745 has its CatchHandler @ 001127f3 */ uVar2 = Logger::getInstance(); /* try { // try from 00112752 to 00112769 has its CatchHandler @ 001127f1 */ local_50[0] = local_40; std::__cxx11::string::_M_construct<char_const*>(local_50,"FIGURES_STORAGE",""); /* try { // try from 0011276a to 00112780 has its CatchHandler @ 001127d5 */ Logger::log(uVar2,2,local_50,local_30); if (local_50[0] != local_40) { operator_delete(local_50[0],local_40[0] + 1); } this = (invalid_argument *)__cxa_allocate_exception(0x10); /* try { // try from 001127a5 to 001127b1 has its CatchHandler @ 001127c8 */ std::invalid_argument::invalid_argument(this,local_30); /* try { // try from 001127b2 to 001127c7 has its CatchHandler @ 001127f3 */ /* WARNING: Subroutine does not return */ __cxa_throw(this,PTR_typeinfo_0012bfd8,PTR__invalid_argument_0012bfc0); }
65,253
JS_FreeValueRT
bluesky950520[P]quickjs/quickjs.c
void JS_FreeValueRT(JSRuntime *rt, JSValue v) { if (JS_VALUE_HAS_REF_COUNT(v)) { JSRefCountHeader *p = (JSRefCountHeader *)JS_VALUE_GET_PTR(v); if (--p->ref_count <= 0) { js_free_value_rt(rt, v); } } }
O2
c
JS_FreeValueRT: pushq %r15 pushq %r14 pushq %rbx cmpl $-0x9, %edx jb 0x1811d movq %rsi, %r14 movl (%rsi), %eax leal -0x1(%rax), %ecx movl %ecx, (%rsi) cmpl $0x1, %eax jg 0x1811d leal 0x9(%rdx), %eax cmpl $0x8, %eax ja 0x18128 movq %rdi, %rbx leaq 0x6b2fc(%rip), %rcx # 0x83364 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax cmpb $0x2, 0xc8(%rbx) je 0x1811d leaq 0x8(%r14), %rax movq 0x8(%r14), %rcx movq 0x10(%r14), %rdx movq %rdx, 0x8(%rcx) movq %rcx, (%rdx) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%r14) leaq 0xa8(%rbx), %r15 movq 0xb0(%rbx), %rcx movq %rax, 0xb0(%rbx) movq %r15, 0x8(%r14) movq %rcx, 0x10(%r14) movq %rax, (%rcx) cmpb $0x0, 0xc8(%rbx) jne 0x1811d movb $0x1, 0xc8(%rbx) movq 0xb0(%rbx), %rsi cmpq %r15, %rsi je 0x18116 addq $-0x8, %rsi movq %rbx, %rdi callq 0x3530d jmp 0x180c9 movq 0x4(%r14), %rax shrq $0x3e, %rax je 0x18106 movq %rbx, %rdi movq %r14, %rsi popq %rbx popq %r14 popq %r15 jmp 0x34700 leaq 0x8(%r14), %rdi callq 0x352f0 movq %rbx, %rdi movq %r14, %rsi popq %rbx popq %r14 popq %r15 jmp 0x170cb movb $0x0, 0xc8(%rbx) popq %rbx popq %r14 popq %r15 retq callq 0xe090 leaq 0x6dd02(%rip), %rdi # 0x85e31 movl %edx, %esi xorl %eax, %eax callq 0xe290 callq 0xe090
JS_FreeValueRT: push r15 push r14 push rbx cmp edx, 0FFFFFFF7h jb loc_1811D mov r14, rsi mov eax, [rsi] lea ecx, [rax-1] mov [rsi], ecx cmp eax, 1 jg loc_1811D lea eax, [rdx+9]; switch 9 cases cmp eax, 8 ja def_1806F; jumptable 000000000001806F default case, cases -6--4 mov rbx, rdi lea rcx, jpt_1806F movsxd rax, ds:(jpt_1806F - 83364h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_18071: cmp byte ptr [rbx+0C8h], 2; jumptable 000000000001806F cases -2,-1 jz loc_1811D lea rax, [r14+8] mov rcx, [r14+8] mov rdx, [r14+10h] mov [rcx+8], rdx mov [rdx], rcx xorps xmm0, xmm0 movups xmmword ptr [r14+8], xmm0 lea r15, [rbx+0A8h] mov rcx, [rbx+0B0h] mov [rbx+0B0h], rax mov [r14+8], r15 mov [r14+10h], rcx mov [rcx], rax cmp byte ptr [rbx+0C8h], 0 jnz short loc_1811D mov byte ptr [rbx+0C8h], 1 loc_180C9: mov rsi, [rbx+0B0h] cmp rsi, r15 jz short loc_18116 add rsi, 0FFFFFFFFFFFFFFF8h mov rdi, rbx call free_gc_object jmp short loc_180C9 loc_180E3: mov rax, [r14+4]; jumptable 000000000001806F case -7 shr rax, 3Eh jz short loc_18106 loc_180ED: mov rdi, rbx; jumptable 000000000001806F case -8 mov rsi, r14 pop rbx pop r14 pop r15 jmp JS_FreeAtomStruct loc_180FD: lea rdi, [r14+8]; jumptable 000000000001806F case -9 call bf_delete loc_18106: mov rdi, rbx mov rsi, r14 pop rbx pop r14 pop r15 jmp js_free_rt loc_18116: mov byte ptr [rbx+0C8h], 0 loc_1811D: pop rbx pop r14 pop r15 retn loc_18123: call _abort; jumptable 000000000001806F case -3 def_1806F: lea rdi, aJsFreeValueRtU; jumptable 000000000001806F default case, cases -6--4 mov esi, edx xor eax, eax call _printf call _abort
long long JS_FreeValueRT(long long a1, unsigned int *a2, unsigned int a3) { long long result; // rax long long v4; // rcx _QWORD *v5; // rdx _QWORD *v6; // rcx long long v7; // rsi if ( a3 >= 0xFFFFFFF7 ) { result = *a2; *a2 = result - 1; if ( (int)result <= 1 ) { result = a3 + 9; switch ( a3 ) { case 0xFFFFFFF7: bf_delete(a2 + 2); goto LABEL_12; case 0xFFFFFFF8: goto LABEL_10; case 0xFFFFFFF9: if ( *(_QWORD *)(a2 + 1) >> 62 ) LABEL_10: result = JS_FreeAtomStruct(a1, a2); else LABEL_12: result = js_free_rt(a1, (long long)a2); break; case 0xFFFFFFFD: abort((const char *)a1); case 0xFFFFFFFE: case 0xFFFFFFFF: if ( *(_BYTE *)(a1 + 200) != 2 ) { result = (long long)(a2 + 2); v4 = *((_QWORD *)a2 + 1); v5 = (_QWORD *)*((_QWORD *)a2 + 2); *(_QWORD *)(v4 + 8) = v5; *v5 = v4; *(_OWORD *)(a2 + 2) = 0LL; v6 = *(_QWORD **)(a1 + 176); *(_QWORD *)(a1 + 176) = a2 + 2; *((_QWORD *)a2 + 1) = a1 + 168; *((_QWORD *)a2 + 2) = v6; *v6 = a2 + 2; if ( !*(_BYTE *)(a1 + 200) ) { *(_BYTE *)(a1 + 200) = 1; while ( 1 ) { v7 = *(_QWORD *)(a1 + 176); if ( v7 == a1 + 168 ) break; result = free_gc_object(a1, v7 - 8); } *(_BYTE *)(a1 + 200) = 0; } } break; default: printf("js_free_value_rt: unknown tag=%d\n", a3); abort("js_free_value_rt: unknown tag=%d\n", a3); } } } return result; }
JS_FreeValueRT: PUSH R15 PUSH R14 PUSH RBX CMP EDX,-0x9 JC 0x0011811d MOV R14,RSI MOV EAX,dword ptr [RSI] LEA ECX,[RAX + -0x1] MOV dword ptr [RSI],ECX CMP EAX,0x1 JG 0x0011811d LEA EAX,[RDX + 0x9] CMP EAX,0x8 JA 0x00118128 MOV RBX,RDI LEA RCX,[0x183364] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_fffffffe: CMP byte ptr [RBX + 0xc8],0x2 JZ 0x0011811d LEA RAX,[R14 + 0x8] MOV RCX,qword ptr [R14 + 0x8] MOV RDX,qword ptr [R14 + 0x10] MOV qword ptr [RCX + 0x8],RDX MOV qword ptr [RDX],RCX XORPS XMM0,XMM0 MOVUPS xmmword ptr [R14 + 0x8],XMM0 LEA R15,[RBX + 0xa8] MOV RCX,qword ptr [RBX + 0xb0] MOV qword ptr [RBX + 0xb0],RAX MOV qword ptr [R14 + 0x8],R15 MOV qword ptr [R14 + 0x10],RCX MOV qword ptr [RCX],RAX CMP byte ptr [RBX + 0xc8],0x0 JNZ 0x0011811d MOV byte ptr [RBX + 0xc8],0x1 LAB_001180c9: MOV RSI,qword ptr [RBX + 0xb0] CMP RSI,R15 JZ 0x00118116 ADD RSI,-0x8 MOV RDI,RBX CALL 0x0013530d JMP 0x001180c9 caseD_fffffff9: MOV RAX,qword ptr [R14 + 0x4] SHR RAX,0x3e JZ 0x00118106 caseD_fffffff8: MOV RDI,RBX MOV RSI,R14 POP RBX POP R14 POP R15 JMP 0x00134700 caseD_fffffff7: LEA RDI,[R14 + 0x8] CALL 0x001352f0 LAB_00118106: MOV RDI,RBX MOV RSI,R14 POP RBX POP R14 POP R15 JMP 0x001170cb LAB_00118116: MOV byte ptr [RBX + 0xc8],0x0 LAB_0011811d: POP RBX POP R14 POP R15 RET caseD_fffffffd: CALL 0x0010e090 caseD_fffffffa: LEA RDI,[0x185e31] MOV ESI,EDX XOR EAX,EAX CALL 0x0010e290 CALL 0x0010e090
void JS_FreeValueRT(long param_1,int *param_2,uint param_3) { int iVar1; long lVar2; long *plVar3; int8 *puVar4; if ((param_3 < 0xfffffff7) || (iVar1 = *param_2, *param_2 = iVar1 + -1, 1 < iVar1)) { return; } switch(param_3) { case 0xfffffff7: bf_delete(param_2 + 2); break; case 0xfffffff8: switchD_0011806f_caseD_fffffff8: JS_FreeAtomStruct(param_1,param_2); return; case 0xfffffff9: if (*(ulong *)(param_2 + 1) >> 0x3e != 0) goto switchD_0011806f_caseD_fffffff8; break; default: printf("js_free_value_rt: unknown tag=%d\n",(ulong)param_3); /* WARNING: Subroutine does not return */ abort(); case 0xfffffffd: /* WARNING: Subroutine does not return */ abort(); case 0xfffffffe: case 0xffffffff: if (*(char *)(param_1 + 200) == '\x02') { return; } lVar2 = *(long *)(param_2 + 2); plVar3 = *(long **)(param_2 + 4); *(long **)(lVar2 + 8) = plVar3; *plVar3 = lVar2; param_2[2] = 0; param_2[3] = 0; param_2[4] = 0; param_2[5] = 0; puVar4 = *(int8 **)(param_1 + 0xb0); *(int **)(param_1 + 0xb0) = param_2 + 2; *(long *)(param_2 + 2) = param_1 + 0xa8; *(int8 **)(param_2 + 4) = puVar4; *puVar4 = param_2 + 2; if (*(char *)(param_1 + 200) != '\0') { return; } *(int1 *)(param_1 + 200) = 1; while (*(long *)(param_1 + 0xb0) != param_1 + 0xa8) { free_gc_object(param_1,*(long *)(param_1 + 0xb0) + -8); } *(int1 *)(param_1 + 200) = 0; return; } js_free_rt(param_1,param_2); return; }
65,254
void nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::dump_integer<unsigned long, 0>(unsigned long)
llama.cpp/common/./json.hpp
void dump_integer(NumberType x) { static constexpr std::array<std::array<char, 2>, 100> digits_to_99 { { {{'0', '0'}}, {{'0', '1'}}, {{'0', '2'}}, {{'0', '3'}}, {{'0', '4'}}, {{'0', '5'}}, {{'0', '6'}}, {{'0', '7'}}, {{'0', '8'}}, {{'0', '9'}}, {{'1', '0'}}, {{'1', '1'}}, {{'1', '2'}}, {{'1', '3'}}, {{'1', '4'}}, {{'1', '5'}}, {{'1', '6'}}, {{'1', '7'}}, {{'1', '8'}}, {{'1', '9'}}, {{'2', '0'}}, {{'2', '1'}}, {{'2', '2'}}, {{'2', '3'}}, {{'2', '4'}}, {{'2', '5'}}, {{'2', '6'}}, {{'2', '7'}}, {{'2', '8'}}, {{'2', '9'}}, {{'3', '0'}}, {{'3', '1'}}, {{'3', '2'}}, {{'3', '3'}}, {{'3', '4'}}, {{'3', '5'}}, {{'3', '6'}}, {{'3', '7'}}, {{'3', '8'}}, {{'3', '9'}}, {{'4', '0'}}, {{'4', '1'}}, {{'4', '2'}}, {{'4', '3'}}, {{'4', '4'}}, {{'4', '5'}}, {{'4', '6'}}, {{'4', '7'}}, {{'4', '8'}}, {{'4', '9'}}, {{'5', '0'}}, {{'5', '1'}}, {{'5', '2'}}, {{'5', '3'}}, {{'5', '4'}}, {{'5', '5'}}, {{'5', '6'}}, {{'5', '7'}}, {{'5', '8'}}, {{'5', '9'}}, {{'6', '0'}}, {{'6', '1'}}, {{'6', '2'}}, {{'6', '3'}}, {{'6', '4'}}, {{'6', '5'}}, {{'6', '6'}}, {{'6', '7'}}, {{'6', '8'}}, {{'6', '9'}}, {{'7', '0'}}, {{'7', '1'}}, {{'7', '2'}}, {{'7', '3'}}, {{'7', '4'}}, {{'7', '5'}}, {{'7', '6'}}, {{'7', '7'}}, {{'7', '8'}}, {{'7', '9'}}, {{'8', '0'}}, {{'8', '1'}}, {{'8', '2'}}, {{'8', '3'}}, {{'8', '4'}}, {{'8', '5'}}, {{'8', '6'}}, {{'8', '7'}}, {{'8', '8'}}, {{'8', '9'}}, {{'9', '0'}}, {{'9', '1'}}, {{'9', '2'}}, {{'9', '3'}}, {{'9', '4'}}, {{'9', '5'}}, {{'9', '6'}}, {{'9', '7'}}, {{'9', '8'}}, {{'9', '9'}}, } }; // special case for "0" if (x == 0) { o->write_character('0'); return; } // use a pointer to fill the buffer auto buffer_ptr = number_buffer.begin(); // NOLINT(llvm-qualified-auto,readability-qualified-auto,cppcoreguidelines-pro-type-vararg,hicpp-vararg) number_unsigned_t abs_value; unsigned int n_chars{}; if (is_negative_number(x)) { *buffer_ptr = '-'; abs_value = remove_sign(static_cast<number_integer_t>(x)); // account one more byte for the minus sign n_chars = 1 + count_digits(abs_value); } else { abs_value = static_cast<number_unsigned_t>(x); n_chars = count_digits(abs_value); } // spare 1 byte for '\0' JSON_ASSERT(n_chars < number_buffer.size() - 1); // jump to the end to generate the string from backward, // so we later avoid reversing the result buffer_ptr += n_chars; // Fast int2ascii implementation inspired by "Fastware" talk by Andrei Alexandrescu // See: https://www.youtube.com/watch?v=o4-CwDo2zpg while (abs_value >= 100) { const auto digits_index = static_cast<unsigned>((abs_value % 100)); abs_value /= 100; *(--buffer_ptr) = digits_to_99[digits_index][1]; *(--buffer_ptr) = digits_to_99[digits_index][0]; } if (abs_value >= 10) { const auto digits_index = static_cast<unsigned>(abs_value); *(--buffer_ptr) = digits_to_99[digits_index][1]; *(--buffer_ptr) = digits_to_99[digits_index][0]; } else { *(--buffer_ptr) = static_cast<char>('0' + abs_value); } o->write_characters(number_buffer.data(), n_chars); }
O3
cpp
void nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::dump_integer<unsigned long, 0>(unsigned long): testq %rsi, %rsi je 0x34b58 pushq %rbx movq %rsi, %rcx leaq 0x10(%rdi), %rsi cmpq $0xa, %rcx jae 0x34b68 leaq 0x11(%rdi), %r9 movl $0x1, %r8d jmp 0x34c23 movq (%rdi), %rdi movq (%rdi), %rax movq (%rax), %rax movl $0x30, %esi jmpq *%rax movl $0x4, %r9d movabsq $0x346dc5d63886594b, %r10 # imm = 0x346DC5D63886594B movq %rcx, %r8 cmpq $0x63, %r8 jbe 0x34bb3 cmpq $0x3e7, %r8 # imm = 0x3E7 jbe 0x34bb9 cmpq $0x2710, %r8 # imm = 0x2710 jb 0x34bbc movq %r8, %rax mulq %r10 shrq $0xb, %rdx addl $0x4, %r9d cmpq $0x1869f, %r8 # imm = 0x1869F movq %rdx, %r8 ja 0x34b7b addl $-0x3, %r9d jmp 0x34bbc addl $-0x2, %r9d jmp 0x34bbc decl %r9d movl %r9d, %r8d leaq (%rsi,%r8), %r9 leaq 0x943b6(%rip), %r10 # 0xc8f80 cmpq $0x64, %rcx jb 0x34c0b movabsq $0x28f5c28f5c28f5c3, %r11 # imm = 0x28F5C28F5C28F5C3 movq %rcx, %rax shrq $0x2, %rax mulq %r11 shrq $0x2, %rdx imull $0x64, %edx, %eax movl %ecx, %ebx subl %eax, %ebx movzwl (%r10,%rbx,2), %eax movw %ax, -0x2(%r9) addq $-0x2, %r9 cmpq $0x270f, %rcx # imm = 0x270F movq %rdx, %rcx ja 0x34bda jmp 0x34c0e movq %rcx, %rdx cmpq $0xa, %rdx jb 0x34c20 movzwl (%r10,%rdx,2), %eax movw %ax, -0x2(%r9) jmp 0x34c2a movq %rdx, %rcx orb $0x30, %cl movb %cl, -0x1(%r9) movq (%rdi), %rdi movq (%rdi), %rax movq 0x8(%rax), %rax movq %r8, %rdx popq %rbx jmpq *%rax
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_: test rsi, rsi jz short loc_34B58 push rbx mov rcx, rsi lea rsi, [rdi+10h] cmp rcx, 0Ah jnb short loc_34B68 lea r9, [rdi+11h] mov r8d, 1 jmp loc_34C23 loc_34B58: mov rdi, [rdi] mov rax, [rdi] mov rax, [rax] mov esi, 30h ; '0' jmp rax loc_34B68: mov r9d, 4 mov r10, 346DC5D63886594Bh mov r8, rcx loc_34B7B: cmp r8, 63h ; 'c' jbe short loc_34BB3 cmp r8, 3E7h jbe short loc_34BB9 cmp r8, 2710h jb short loc_34BBC mov rax, r8 mul r10 shr rdx, 0Bh add r9d, 4 cmp r8, 1869Fh mov r8, rdx ja short loc_34B7B add r9d, 0FFFFFFFDh jmp short loc_34BBC loc_34BB3: add r9d, 0FFFFFFFEh jmp short loc_34BBC loc_34BB9: dec r9d loc_34BBC: mov r8d, r9d lea r9, [rsi+r8] lea r10, _ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99 cmp rcx, 64h ; 'd' jb short loc_34C0B mov r11, 28F5C28F5C28F5C3h loc_34BDA: mov rax, rcx shr rax, 2 mul r11 shr rdx, 2 imul eax, edx, 64h ; 'd' mov ebx, ecx sub ebx, eax movzx eax, word ptr [r10+rbx*2] mov [r9-2], ax add r9, 0FFFFFFFFFFFFFFFEh cmp rcx, 270Fh mov rcx, rdx ja short loc_34BDA jmp short loc_34C0E loc_34C0B: mov rdx, rcx loc_34C0E: cmp rdx, 0Ah jb short loc_34C20 movzx eax, word ptr [r10+rdx*2] mov [r9-2], ax jmp short loc_34C2A loc_34C20: mov rcx, rdx loc_34C23: or cl, 30h mov [r9-1], cl loc_34C2A: mov rdi, [rdi] mov rax, [rdi] mov rax, [rax+8] mov rdx, r8 pop rbx jmp rax
long long ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_( _QWORD *a1, unsigned long long a2) { unsigned long long v2; // rcx _QWORD *v3; // rsi char *v4; // r9 long long v5; // r8 unsigned int v7; // r9d unsigned long long v8; // r8 bool v9; // cc unsigned long long v10; // rdx if ( !a2 ) return (**(long long ( ***)(_QWORD, long long))*a1)(*a1, 48LL); v2 = a2; v3 = a1 + 2; if ( v2 < 0xA ) { v4 = (char *)a1 + 17; v5 = 1LL; LABEL_20: LOBYTE(v2) = v2 | 0x30; *(v4 - 1) = v2; return (*(long long ( **)(_QWORD, _QWORD *, long long, unsigned long long))(*(_QWORD *)*a1 + 8LL))( *a1, v3, v5, v2); } v7 = 4; v8 = v2; while ( 1 ) { if ( v8 <= 0x63 ) { v7 -= 2; goto LABEL_13; } if ( v8 <= 0x3E7 ) break; if ( v8 < 0x2710 ) goto LABEL_13; v7 += 4; v9 = v8 <= 0x1869F; v8 /= 0x2710uLL; if ( v9 ) { v7 -= 3; goto LABEL_13; } } --v7; LABEL_13: v5 = v7; v4 = (char *)v3 + v7; if ( v2 < 0x64 ) { v10 = v2; } else { do { v10 = v2 / 0x64; *((_WORD *)v4 - 1) = ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99[v2 % 0x64]; v4 -= 2; v9 = v2 <= 0x270F; v2 /= 0x64uLL; } while ( !v9 ); } if ( v10 < 0xA ) { v2 = v10; goto LABEL_20; } *((_WORD *)v4 - 1) = ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99[v10]; return (*(long long ( **)(_QWORD, _QWORD *, long long, unsigned long long))(*(_QWORD *)*a1 + 8LL))( *a1, v3, v5, v2); }
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_: TEST RSI,RSI JZ 0x00134b58 PUSH RBX MOV RCX,RSI LEA RSI,[RDI + 0x10] CMP RCX,0xa JNC 0x00134b68 LEA R9,[RDI + 0x11] MOV R8D,0x1 JMP 0x00134c23 LAB_00134b58: MOV RDI,qword ptr [RDI] MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX] MOV ESI,0x30 JMP RAX LAB_00134b68: MOV R9D,0x4 MOV R10,0x346dc5d63886594b MOV R8,RCX LAB_00134b7b: CMP R8,0x63 JBE 0x00134bb3 CMP R8,0x3e7 JBE 0x00134bb9 CMP R8,0x2710 JC 0x00134bbc MOV RAX,R8 MUL R10 SHR RDX,0xb ADD R9D,0x4 CMP R8,0x1869f MOV R8,RDX JA 0x00134b7b ADD R9D,-0x3 JMP 0x00134bbc LAB_00134bb3: ADD R9D,-0x2 JMP 0x00134bbc LAB_00134bb9: DEC R9D LAB_00134bbc: MOV R8D,R9D LEA R9,[RSI + R8*0x1] LEA R10,[0x1c8f80] CMP RCX,0x64 JC 0x00134c0b MOV R11,0x28f5c28f5c28f5c3 LAB_00134bda: MOV RAX,RCX SHR RAX,0x2 MUL R11 SHR RDX,0x2 IMUL EAX,EDX,0x64 MOV EBX,ECX SUB EBX,EAX MOVZX EAX,word ptr [R10 + RBX*0x2] MOV word ptr [R9 + -0x2],AX ADD R9,-0x2 CMP RCX,0x270f MOV RCX,RDX JA 0x00134bda JMP 0x00134c0e LAB_00134c0b: MOV RDX,RCX LAB_00134c0e: CMP RDX,0xa JC 0x00134c20 MOVZX EAX,word ptr [R10 + RDX*0x2] MOV word ptr [R9 + -0x2],AX JMP 0x00134c2a LAB_00134c20: MOV RCX,RDX LAB_00134c23: OR CL,0x30 MOV byte ptr [R9 + -0x1],CL LAB_00134c2a: MOV RDI,qword ptr [RDI] MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0x8] MOV RDX,R8 POP RBX JMP RAX
void _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_ (int8 *param_1,ulong param_2) { bool bVar1; uint uVar2; ulong uVar3; ulong uVar4; uint uVar5; long lVar6; if (param_2 == 0) { /* WARNING: Could not recover jumptable at 0x00134b66. Too many branches */ /* WARNING: Treating indirect jump as call */ (*(code *)**(int8 **)*param_1)((int8 *)*param_1,0x30); return; } if (param_2 < 10) { lVar6 = (long)param_1 + 0x11; uVar4 = 1; } else { uVar4 = param_2; uVar2 = 4; do { uVar5 = uVar2; if (uVar4 < 100) { uVar5 = uVar5 - 2; goto LAB_00134bbc; } if (uVar4 < 1000) { uVar5 = uVar5 - 1; goto LAB_00134bbc; } if (uVar4 < 10000) goto LAB_00134bbc; bVar1 = 99999 < uVar4; uVar4 = uVar4 / 10000; uVar2 = uVar5 + 4; } while (bVar1); uVar5 = uVar5 + 1; LAB_00134bbc: uVar4 = (ulong)uVar5; lVar6 = (long)(param_1 + 2) + uVar4; if (99 < param_2) { do { uVar3 = param_2 / 100; *(int2 *)(lVar6 + -2) = *(int2 *) ( _ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99 + (ulong)(uint)((int)param_2 + (int)uVar3 * -100) * 2); lVar6 = lVar6 + -2; bVar1 = 9999 < param_2; param_2 = uVar3; } while (bVar1); } if (9 < param_2) { *(int2 *)(lVar6 + -2) = *(int2 *) ( _ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99 + param_2 * 2); goto LAB_00134c2a; } } *(byte *)(lVar6 + -1) = (byte)param_2 | 0x30; LAB_00134c2a: /* WARNING: Could not recover jumptable at 0x00134c38. Too many branches */ /* WARNING: Treating indirect jump as call */ (**(code **)(*(long *)*param_1 + 8))((long *)*param_1,param_1 + 2,uVar4); return; }
65,255
minja::ExpressionNode::ExpressionNode(minja::Location const&, std::shared_ptr<minja::Expression>&&)
monkey531[P]llama/common/minja.hpp
TemplateNode(const Location & location) : location_(location) {}
O3
cpp
minja::ExpressionNode::ExpressionNode(minja::Location const&, std::shared_ptr<minja::Expression>&&): leaq 0x8a42b(%rip), %rax # 0x12efc8 addq $0x10, %rax movq %rax, (%rdi) movq (%rsi), %rax movq %rax, 0x8(%rdi) movq 0x8(%rsi), %rax movq %rax, 0x10(%rdi) testq %rax, %rax je 0xa4bcd movq 0x8b3b9(%rip), %rcx # 0x12ff78 cmpb $0x0, (%rcx) je 0xa4bc9 incl 0x8(%rax) jmp 0xa4bcd lock incl 0x8(%rax) movq 0x10(%rsi), %rax movq %rax, 0x18(%rdi) leaq 0x8aa3c(%rip), %rax # 0x12f618 addq $0x10, %rax movq %rax, (%rdi) movups (%rdx), %xmm0 movups %xmm0, 0x20(%rdi) movq 0x10(%rdx), %rax movq %rax, 0x30(%rdi) xorps %xmm0, %xmm0 movups %xmm0, (%rdx) movq $0x0, 0x10(%rdx) retq nop
_ZN5minja12SequenceNodeC2ERKNS_8LocationEOSt6vectorISt10shared_ptrINS_12TemplateNodeEESaIS7_EE: lea rax, _ZTVN5minja12TemplateNodeE; `vtable for'minja::TemplateNode add rax, 10h mov [rdi], rax mov rax, [rsi] mov [rdi+8], rax mov rax, [rsi+8] mov [rdi+10h], rax test rax, rax jz short loc_A4BCD mov rcx, cs:__libc_single_threaded_ptr cmp byte ptr [rcx], 0 jz short loc_A4BC9 inc dword ptr [rax+8] jmp short loc_A4BCD loc_A4BC9: lock inc dword ptr [rax+8] loc_A4BCD: mov rax, [rsi+10h] mov [rdi+18h], rax lea rax, _ZTVN5minja12SequenceNodeE; `vtable for'minja::SequenceNode add rax, 10h mov [rdi], rax movups xmm0, xmmword ptr [rdx] movups xmmword ptr [rdi+20h], xmm0 mov rax, [rdx+10h] mov [rdi+30h], rax xorps xmm0, xmm0 movups xmmword ptr [rdx], xmm0 mov qword ptr [rdx+10h], 0 retn
long long minja::SequenceNode::SequenceNode(long long a1, _QWORD *a2, long long a3) { long long v3; // rax long long result; // rax *(_QWORD *)a1 = &`vtable for'minja::TemplateNode + 2; *(_QWORD *)(a1 + 8) = *a2; v3 = a2[1]; *(_QWORD *)(a1 + 16) = v3; if ( v3 ) { if ( _libc_single_threaded ) ++*(_DWORD *)(v3 + 8); else _InterlockedIncrement((volatile signed __int32 *)(v3 + 8)); } *(_QWORD *)(a1 + 24) = a2[2]; *(_QWORD *)a1 = &`vtable for'minja::SequenceNode + 2; *(_OWORD *)(a1 + 32) = *(_OWORD *)a3; result = *(_QWORD *)(a3 + 16); *(_QWORD *)(a1 + 48) = result; *(_OWORD *)a3 = 0LL; *(_QWORD *)(a3 + 16) = 0LL; return result; }
SequenceNode: LEA RAX,[0x22efc8] ADD RAX,0x10 MOV qword ptr [RDI],RAX 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 0x001a4bcd MOV RCX,qword ptr [0x0022ff78] CMP byte ptr [RCX],0x0 JZ 0x001a4bc9 INC dword ptr [RAX + 0x8] JMP 0x001a4bcd LAB_001a4bc9: INC.LOCK dword ptr [RAX + 0x8] LAB_001a4bcd: MOV RAX,qword ptr [RSI + 0x10] MOV qword ptr [RDI + 0x18],RAX LEA RAX,[0x22f618] ADD RAX,0x10 MOV qword ptr [RDI],RAX MOVUPS XMM0,xmmword ptr [RDX] MOVUPS xmmword ptr [RDI + 0x20],XMM0 MOV RAX,qword ptr [RDX + 0x10] MOV qword ptr [RDI + 0x30],RAX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDX],XMM0 MOV qword ptr [RDX + 0x10],0x0 RET
/* minja::SequenceNode::SequenceNode(minja::Location const&, std::vector<std::shared_ptr<minja::TemplateNode>, std::allocator<std::shared_ptr<minja::TemplateNode> > >&&) */ void __thiscall minja::SequenceNode::SequenceNode(SequenceNode *this,Location *param_1,vector *param_2) { long lVar1; int8 uVar2; *(int ***)this = &PTR___cxa_pure_virtual_0022efd8; *(int8 *)(this + 8) = *(int8 *)param_1; lVar1 = *(long *)(param_1 + 8); *(long *)(this + 0x10) = lVar1; if (lVar1 != 0) { if (*PTR___libc_single_threaded_0022ff78 == '\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_0022f628; uVar2 = *(int8 *)(param_2 + 8); *(int8 *)(this + 0x20) = *(int8 *)param_2; *(int8 *)(this + 0x28) = uVar2; *(int8 *)(this + 0x30) = *(int8 *)(param_2 + 0x10); *(int8 *)param_2 = 0; *(int8 *)(param_2 + 8) = 0; *(int8 *)(param_2 + 0x10) = 0; return; }
65,256
mysql_client_plugin_deinit
eloqsql/build_O3/libmariadb/libmariadb/ma_client_plugin.c
void mysql_client_plugin_deinit() { int i; struct st_client_plugin_int *p; if (!initialized) return; for (i=0; i < MYSQL_CLIENT_MAX_PLUGINS; i++) for (p= plugin_list[i]; p; p= p->next) { if (p->plugin->deinit) p->plugin->deinit(); if (p->dlhandle) (void)dlclose(p->dlhandle); } memset(&plugin_list, 0, sizeof(plugin_list)); initialized= 0; ma_free_root(&mem_root, MYF(0)); pthread_mutex_destroy(&LOCK_load_client_plugin); }
O3
c
mysql_client_plugin_deinit: cmpb $0x1, 0x247f3(%rip) # 0x4d800 jne 0x29098 pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax xorl %r14d, %r14d leaq 0x24849(%rip), %rbx # 0x4d870 movq (%rbx,%r14,8), %r15 testq %r15, %r15 je 0x29052 movq 0x10(%r15), %rax movq 0x48(%rax), %rax testq %rax, %rax je 0x2903f callq *%rax movq 0x8(%r15), %rdi testq %rdi, %rdi je 0x2904d callq 0x13360 movq (%r15), %r15 jmp 0x2902b incq %r14 cmpq $0x3, %r14 jne 0x29027 xorps %xmm0, %xmm0 movaps %xmm0, 0x30(%rbx) movaps %xmm0, 0x20(%rbx) movaps %xmm0, 0x10(%rbx) movaps %xmm0, (%rbx) movb $0x0, 0x2478c(%rip) # 0x4d800 leaq 0x247b5(%rip), %rdi # 0x4d830 xorl %esi, %esi callq 0x1e797 leaq 0x2477f(%rip), %rdi # 0x4d808 addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp 0x13540 retq
mysql_client_plugin_deinit: cmp cs:initialized, 1 jnz locret_29098 push rbp mov rbp, rsp push r15 push r14 push rbx push rax xor r14d, r14d lea rbx, plugin_list loc_29027: mov r15, [rbx+r14*8] loc_2902B: test r15, r15 jz short loc_29052 mov rax, [r15+10h] mov rax, [rax+48h] test rax, rax jz short loc_2903F call rax loc_2903F: mov rdi, [r15+8] test rdi, rdi jz short loc_2904D call _dlclose loc_2904D: mov r15, [r15] jmp short loc_2902B loc_29052: inc r14 cmp r14, 3 jnz short loc_29027 xorps xmm0, xmm0 movaps xmmword ptr [rbx+30h], xmm0 movaps xmmword ptr [rbx+20h], xmm0 movaps xmmword ptr [rbx+10h], xmm0 movaps xmmword ptr [rbx], xmm0 mov cs:initialized, 0 lea rdi, mem_root xor esi, esi call ma_free_root lea rdi, LOCK_load_client_plugin add rsp, 8 pop rbx pop r14 pop r15 pop rbp jmp _pthread_mutex_destroy locret_29098: retn
long long mysql_client_plugin_deinit(long long a1) { long long result; // rax long long i; // r14 _QWORD *j; // r15 void ( *v4)(long long); // rax if ( initialized == 1 ) { for ( i = 0LL; i != 3; ++i ) { for ( j = (_QWORD *)*((_QWORD *)plugin_list + i); j; j = (_QWORD *)*j ) { v4 = *(void ( **)(long long))(j[2] + 72LL); if ( v4 ) v4(a1); a1 = j[1]; if ( a1 ) dlclose(a1); } } plugin_list[3] = 0LL; plugin_list[2] = 0LL; plugin_list[1] = 0LL; plugin_list[0] = 0LL; initialized = 0; ma_free_root((long long)&mem_root, 0); return pthread_mutex_destroy(&LOCK_load_client_plugin); } return result; }
mysql_client_plugin_deinit: CMP byte ptr [0x0014d800],0x1 JNZ 0x00129098 PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX XOR R14D,R14D LEA RBX,[0x14d870] LAB_00129027: MOV R15,qword ptr [RBX + R14*0x8] LAB_0012902b: TEST R15,R15 JZ 0x00129052 MOV RAX,qword ptr [R15 + 0x10] MOV RAX,qword ptr [RAX + 0x48] TEST RAX,RAX JZ 0x0012903f CALL RAX LAB_0012903f: MOV RDI,qword ptr [R15 + 0x8] TEST RDI,RDI JZ 0x0012904d CALL 0x00113360 LAB_0012904d: MOV R15,qword ptr [R15] JMP 0x0012902b LAB_00129052: INC R14 CMP R14,0x3 JNZ 0x00129027 XORPS XMM0,XMM0 MOVAPS xmmword ptr [RBX + 0x30],XMM0 MOVAPS xmmword ptr [RBX + 0x20],XMM0 MOVAPS xmmword ptr [RBX + 0x10],XMM0 MOVAPS xmmword ptr [RBX],XMM0 MOV byte ptr [0x0014d800],0x0 LEA RDI,[0x14d830] XOR ESI,ESI CALL 0x0011e797 LEA RDI,[0x14d808] ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP JMP 0x00113540 LAB_00129098: RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ void mysql_client_plugin_deinit(void) { long lVar1; int8 *puVar2; if (initialized == '\x01') { lVar1 = 0; do { for (puVar2 = (int8 *)(&plugin_list)[lVar1]; puVar2 != (int8 *)0x0; puVar2 = (int8 *)*puVar2) { if (*(code **)(puVar2[2] + 0x48) != (code *)0x0) { (**(code **)(puVar2[2] + 0x48))(); } if (puVar2[1] != 0) { dlclose(); } } lVar1 = lVar1 + 1; } while (lVar1 != 3); _DAT_0014d8a0 = 0; uRam000000000014d8a8 = 0; _DAT_0014d890 = 0; uRam000000000014d898 = 0; _DAT_0014d880 = 0; uRam000000000014d888 = 0; plugin_list = 0; DAT_0014d878 = 0; initialized = 0; ma_free_root(mem_root,0); pthread_mutex_destroy((pthread_mutex_t *)LOCK_load_client_plugin); return; } return; }
65,257
ggml_backend_view_init
7CodeWizard[P]stablediffusion/ggml/src/ggml-backend.c
void ggml_backend_view_init(ggml_backend_buffer_t buffer, struct ggml_tensor * tensor) { GGML_ASSERT(tensor->buffer == NULL); //GGML_ASSERT(tensor->data == NULL); // views of pre-allocted tensors may have the data set, but still need to be initialized GGML_ASSERT(tensor->view_src != NULL); GGML_ASSERT(tensor->view_src->buffer != NULL); GGML_ASSERT(tensor->view_src->data != NULL); tensor->buffer = buffer; tensor->data = (char *)tensor->view_src->data + tensor->view_offs; tensor->backend = tensor->view_src->backend; ggml_backend_buffer_init_tensor(buffer, tensor); }
O0
c
ggml_backend_view_init: subq $0x18, %rsp movq %rdi, 0x10(%rsp) movq %rsi, 0x8(%rsp) movq 0x8(%rsp), %rax cmpq $0x0, 0x8(%rax) je 0x16991e movq 0x6e647(%rip), %rax # 0x1d7f28 movq (%rax), %rdi callq 0xb8e0 movq 0x6e6b8(%rip), %rax # 0x1d7fa8 movq (%rax), %rdi leaq 0x16320(%rip), %rsi # 0x17fc1a leaq 0x22d48(%rip), %rdx # 0x18c649 movl $0x4e8, %ecx # imm = 0x4E8 leaq 0x2313f(%rip), %r8 # 0x18ca4c movb $0x0, %al callq 0xbae0 callq 0x11a4f0 callq 0xb3a0 jmp 0x169920 jmp 0x169922 movq 0x8(%rsp), %rax cmpq $0x0, 0x108(%rax) jne 0x169975 movq 0x6e5f0(%rip), %rax # 0x1d7f28 movq (%rax), %rdi callq 0xb8e0 movq 0x6e661(%rip), %rax # 0x1d7fa8 movq (%rax), %rdi leaq 0x162c9(%rip), %rsi # 0x17fc1a leaq 0x22cf1(%rip), %rdx # 0x18c649 movl $0x4ea, %ecx # imm = 0x4EA leaq 0x230ff(%rip), %r8 # 0x18ca63 movb $0x0, %al callq 0xbae0 callq 0x11a4f0 callq 0xb3a0 jmp 0x169977 jmp 0x169979 movq 0x8(%rsp), %rax movq 0x108(%rax), %rax cmpq $0x0, 0x8(%rax) jne 0x1699d0 movq 0x6e595(%rip), %rax # 0x1d7f28 movq (%rax), %rdi callq 0xb8e0 movq 0x6e606(%rip), %rax # 0x1d7fa8 movq (%rax), %rdi leaq 0x1626e(%rip), %rsi # 0x17fc1a leaq 0x22c96(%rip), %rdx # 0x18c649 movl $0x4eb, %ecx # imm = 0x4EB leaq 0x230bd(%rip), %r8 # 0x18ca7c movb $0x0, %al callq 0xbae0 callq 0x11a4f0 callq 0xb3a0 jmp 0x1699d2 jmp 0x1699d4 movq 0x8(%rsp), %rax movq 0x108(%rax), %rax cmpq $0x0, 0x118(%rax) jne 0x169a2e movq 0x6e537(%rip), %rax # 0x1d7f28 movq (%rax), %rdi callq 0xb8e0 movq 0x6e5a8(%rip), %rax # 0x1d7fa8 movq (%rax), %rdi leaq 0x16210(%rip), %rsi # 0x17fc1a leaq 0x22c38(%rip), %rdx # 0x18c649 movl $0x4ec, %ecx # imm = 0x4EC leaq 0x23080(%rip), %r8 # 0x18ca9d movb $0x0, %al callq 0xbae0 callq 0x11a4f0 callq 0xb3a0 jmp 0x169a30 movq 0x10(%rsp), %rcx movq 0x8(%rsp), %rax movq %rcx, 0x8(%rax) movq 0x8(%rsp), %rax movq 0x108(%rax), %rax movq 0x118(%rax), %rcx movq 0x8(%rsp), %rax addq 0x110(%rax), %rcx movq 0x8(%rsp), %rax movq %rcx, 0x118(%rax) movq 0x8(%rsp), %rax movq 0x108(%rax), %rax movl 0x4(%rax), %ecx movq 0x8(%rsp), %rax movl %ecx, 0x4(%rax) movq 0x10(%rsp), %rdi movq 0x8(%rsp), %rsi callq 0x166a30 addq $0x18, %rsp retq nopw %cs:(%rax,%rax)
ggml_backend_view_init: sub rsp, 18h mov [rsp+18h+var_8], rdi mov [rsp+18h+var_10], rsi mov rax, [rsp+18h+var_10] cmp qword ptr [rax+8], 0 jz short loc_16991E mov rax, cs:stdout_ptr mov rdi, [rax] call _fflush mov rax, cs:stderr_ptr mov rdi, [rax] lea rsi, aGgmlAssertSDS; "GGML_ASSERT: %s:%d: %s\n" lea rdx, aWorkspaceLlm4b_9; "/workspace/llm4binary/github/2025_star3"... mov ecx, 4E8h lea r8, aTensorBufferNu_0; "tensor->buffer == NULL" mov al, 0 call _fprintf call ggml_print_backtrace call _abort loc_16991E: jmp short $+2 loc_169920: jmp short $+2 loc_169922: mov rax, [rsp+18h+var_10] cmp qword ptr [rax+108h], 0 jnz short loc_169975 mov rax, cs:stdout_ptr mov rdi, [rax] call _fflush mov rax, cs:stderr_ptr mov rdi, [rax] lea rsi, aGgmlAssertSDS; "GGML_ASSERT: %s:%d: %s\n" lea rdx, aWorkspaceLlm4b_9; "/workspace/llm4binary/github/2025_star3"... mov ecx, 4EAh lea r8, aTensorViewSrcN; "tensor->view_src != NULL" mov al, 0 call _fprintf call ggml_print_backtrace call _abort loc_169975: jmp short $+2 loc_169977: jmp short $+2 loc_169979: mov rax, [rsp+18h+var_10] mov rax, [rax+108h] cmp qword ptr [rax+8], 0 jnz short loc_1699D0 mov rax, cs:stdout_ptr mov rdi, [rax] call _fflush mov rax, cs:stderr_ptr mov rdi, [rax] lea rsi, aGgmlAssertSDS; "GGML_ASSERT: %s:%d: %s\n" lea rdx, aWorkspaceLlm4b_9; "/workspace/llm4binary/github/2025_star3"... mov ecx, 4EBh lea r8, aTensorViewSrcB; "tensor->view_src->buffer != NULL" mov al, 0 call _fprintf call ggml_print_backtrace call _abort loc_1699D0: jmp short $+2 loc_1699D2: jmp short $+2 loc_1699D4: mov rax, [rsp+18h+var_10] mov rax, [rax+108h] cmp qword ptr [rax+118h], 0 jnz short loc_169A2E mov rax, cs:stdout_ptr mov rdi, [rax] call _fflush mov rax, cs:stderr_ptr mov rdi, [rax] lea rsi, aGgmlAssertSDS; "GGML_ASSERT: %s:%d: %s\n" lea rdx, aWorkspaceLlm4b_9; "/workspace/llm4binary/github/2025_star3"... mov ecx, 4ECh lea r8, aTensorViewSrcD; "tensor->view_src->data != NULL" mov al, 0 call _fprintf call ggml_print_backtrace call _abort loc_169A2E: jmp short $+2 loc_169A30: mov rcx, [rsp+18h+var_8] mov rax, [rsp+18h+var_10] mov [rax+8], rcx mov rax, [rsp+18h+var_10] mov rax, [rax+108h] mov rcx, [rax+118h] mov rax, [rsp+18h+var_10] add rcx, [rax+110h] mov rax, [rsp+18h+var_10] mov [rax+118h], rcx mov rax, [rsp+18h+var_10] mov rax, [rax+108h] mov ecx, [rax+4] mov rax, [rsp+18h+var_10] mov [rax+4], ecx mov rdi, [rsp+18h+var_8] mov rsi, [rsp+18h+var_10] call ggml_backend_buffer_init_tensor add rsp, 18h retn
long long ggml_backend_view_init(long long a1, long long a2) { long long v2; // rdi long long v3; // rdi long long v4; // rdi long long v5; // rdi if ( *(_QWORD *)(a2 + 8) ) { fflush(stdout); v2 = stderr; fprintf( stderr, "GGML_ASSERT: %s:%d: %s\n", "/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/ggml/src/ggml-backend.c", 1256, "tensor->buffer == NULL"); ggml_print_backtrace(); abort(v2); } if ( !*(_QWORD *)(a2 + 264) ) { fflush(stdout); v3 = stderr; fprintf( stderr, "GGML_ASSERT: %s:%d: %s\n", "/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/ggml/src/ggml-backend.c", 1258, "tensor->view_src != NULL"); ggml_print_backtrace(); abort(v3); } if ( !*(_QWORD *)(*(_QWORD *)(a2 + 264) + 8LL) ) { fflush(stdout); v4 = stderr; fprintf( stderr, "GGML_ASSERT: %s:%d: %s\n", "/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/ggml/src/ggml-backend.c", 1259, "tensor->view_src->buffer != NULL"); ggml_print_backtrace(); abort(v4); } if ( !*(_QWORD *)(*(_QWORD *)(a2 + 264) + 280LL) ) { fflush(stdout); v5 = stderr; fprintf( stderr, "GGML_ASSERT: %s:%d: %s\n", "/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/ggml/src/ggml-backend.c", 1260, "tensor->view_src->data != NULL"); ggml_print_backtrace(); abort(v5); } *(_QWORD *)(a2 + 8) = a1; *(_QWORD *)(a2 + 280) = *(_QWORD *)(a2 + 272) + *(_QWORD *)(*(_QWORD *)(a2 + 264) + 280LL); *(_DWORD *)(a2 + 4) = *(_DWORD *)(*(_QWORD *)(a2 + 264) + 4LL); return ggml_backend_buffer_init_tensor(a1, a2); }
65,258
ggml_backend_view_init
7CodeWizard[P]stablediffusion/ggml/src/ggml-backend.c
void ggml_backend_view_init(ggml_backend_buffer_t buffer, struct ggml_tensor * tensor) { GGML_ASSERT(tensor->buffer == NULL); //GGML_ASSERT(tensor->data == NULL); // views of pre-allocted tensors may have the data set, but still need to be initialized GGML_ASSERT(tensor->view_src != NULL); GGML_ASSERT(tensor->view_src->buffer != NULL); GGML_ASSERT(tensor->view_src->data != NULL); tensor->buffer = buffer; tensor->data = (char *)tensor->view_src->data + tensor->view_offs; tensor->backend = tensor->view_src->backend; ggml_backend_buffer_init_tensor(buffer, tensor); }
O1
c
ggml_backend_view_init: pushq %rax cmpq $0x0, 0x8(%rsi) jne 0xb572e movq 0x108(%rsi), %rax testq %rax, %rax je 0xb5733 cmpq $0x0, 0x8(%rax) je 0xb5738 movq 0x118(%rax), %rcx testq %rcx, %rcx je 0xb573d movq %rdi, 0x8(%rsi) addq 0x110(%rsi), %rcx movq %rcx, 0x118(%rsi) movl 0x4(%rax), %eax movl %eax, 0x4(%rsi) movq 0x10(%rdi), %rax testq %rax, %rax je 0xb572c popq %rcx jmpq *%rax popq %rax retq callq 0x187c8 callq 0x18897 callq 0x18852 callq 0x1880d
ggml_backend_view_init: push rax cmp qword ptr [rsi+8], 0 jnz short loc_B572E mov rax, [rsi+108h] test rax, rax jz short loc_B5733 cmp qword ptr [rax+8], 0 jz short loc_B5738 mov rcx, [rax+118h] test rcx, rcx jz short loc_B573D mov [rsi+8], rdi add rcx, [rsi+110h] mov [rsi+118h], rcx mov eax, [rax+4] mov [rsi+4], eax mov rax, [rdi+10h] test rax, rax jz short loc_B572C pop rcx jmp rax loc_B572C: pop rax retn loc_B572E: call ggml_backend_view_init_cold_1 loc_B5733: call ggml_backend_view_init_cold_4 loc_B5738: call ggml_backend_view_init_cold_3 loc_B573D: call ggml_backend_view_init_cold_2
long long ggml_backend_view_init(long long a1, long long a2) { long long v2; // rax long long v3; // rax long long v4; // rcx long long (*v5)(void); // rax long long v7; // [rsp-8h] [rbp-8h] v7 = v2; if ( *(_QWORD *)(a2 + 8) ) ggml_backend_view_init_cold_1(); v3 = *(_QWORD *)(a2 + 264); if ( !v3 ) ggml_backend_view_init_cold_4(); if ( !*(_QWORD *)(v3 + 8) ) ggml_backend_view_init_cold_3(); v4 = *(_QWORD *)(v3 + 280); if ( !v4 ) ggml_backend_view_init_cold_2(); *(_QWORD *)(a2 + 8) = a1; *(_QWORD *)(a2 + 280) = *(_QWORD *)(a2 + 272) + v4; *(_DWORD *)(a2 + 4) = *(_DWORD *)(v3 + 4); v5 = *(long long (**)(void))(a1 + 16); if ( v5 ) return v5(); else return v7; }
65,259
ggml_backend_view_init
7CodeWizard[P]stablediffusion/ggml/src/ggml-backend.c
void ggml_backend_view_init(ggml_backend_buffer_t buffer, struct ggml_tensor * tensor) { GGML_ASSERT(tensor->buffer == NULL); //GGML_ASSERT(tensor->data == NULL); // views of pre-allocted tensors may have the data set, but still need to be initialized GGML_ASSERT(tensor->view_src != NULL); GGML_ASSERT(tensor->view_src->buffer != NULL); GGML_ASSERT(tensor->view_src->data != NULL); tensor->buffer = buffer; tensor->data = (char *)tensor->view_src->data + tensor->view_offs; tensor->backend = tensor->view_src->backend; ggml_backend_buffer_init_tensor(buffer, tensor); }
O2
c
ggml_backend_view_init: pushq %rax cmpq $0x0, 0x8(%rsi) jne 0x917a4 movq 0x108(%rsi), %rax testq %rax, %rax je 0x917dc cmpq $0x0, 0x8(%rax) je 0x91811 movq 0x118(%rax), %rcx testq %rcx, %rcx je 0x91846 movq %rdi, 0x8(%rsi) addq 0x110(%rsi), %rcx movq %rcx, 0x118(%rsi) movl 0x4(%rax), %eax movl %eax, 0x4(%rsi) movq 0x10(%rdi), %rax testq %rax, %rax je 0x917a2 popq %rcx jmpq *%rax popq %rax retq movq 0x4479d(%rip), %rax # 0xd5f48 movq (%rax), %rdi callq 0xa6f0 movq 0x447ee(%rip), %rax # 0xd5fa8 movq (%rax), %rdi leaq 0x8a5a(%rip), %rsi # 0x9a21e leaq 0x12f65(%rip), %rdx # 0xa4730 leaq 0x132b3(%rip), %r8 # 0xa4a85 movl $0x4e8, %ecx # imm = 0x4E8 jmp 0x91879 movq 0x44765(%rip), %rax # 0xd5f48 movq (%rax), %rdi callq 0xa6f0 movq 0x447b6(%rip), %rax # 0xd5fa8 movq (%rax), %rdi leaq 0x8a22(%rip), %rsi # 0x9a21e leaq 0x12f2d(%rip), %rdx # 0xa4730 leaq 0x13292(%rip), %r8 # 0xa4a9c movl $0x4ea, %ecx # imm = 0x4EA jmp 0x91879 movq 0x44730(%rip), %rax # 0xd5f48 movq (%rax), %rdi callq 0xa6f0 movq 0x44781(%rip), %rax # 0xd5fa8 movq (%rax), %rdi leaq 0x89ed(%rip), %rsi # 0x9a21e leaq 0x12ef8(%rip), %rdx # 0xa4730 leaq 0x13276(%rip), %r8 # 0xa4ab5 movl $0x4eb, %ecx # imm = 0x4EB jmp 0x91879 movq 0x446fb(%rip), %rax # 0xd5f48 movq (%rax), %rdi callq 0xa6f0 movq 0x4474c(%rip), %rax # 0xd5fa8 movq (%rax), %rdi leaq 0x89b8(%rip), %rsi # 0x9a21e leaq 0x12ec3(%rip), %rdx # 0xa4730 leaq 0x13262(%rip), %r8 # 0xa4ad6 movl $0x4ec, %ecx # imm = 0x4EC xorl %eax, %eax callq 0xa8b0 callq 0x67550 callq 0xa300
ggml_backend_view_init: push rax cmp qword ptr [rsi+8], 0 jnz short loc_917A4 mov rax, [rsi+108h] test rax, rax jz short loc_917DC cmp qword ptr [rax+8], 0 jz loc_91811 mov rcx, [rax+118h] test rcx, rcx jz loc_91846 mov [rsi+8], rdi add rcx, [rsi+110h] mov [rsi+118h], rcx mov eax, [rax+4] mov [rsi+4], eax mov rax, [rdi+10h] test rax, rax jz short loc_917A2 pop rcx jmp rax loc_917A2: pop rax retn loc_917A4: mov rax, cs:stdout_ptr mov rdi, [rax] call _fflush mov rax, cs:stderr_ptr mov rdi, [rax] lea rsi, aGgmlAssertSDS; "GGML_ASSERT: %s:%d: %s\n" lea rdx, aWorkspaceLlm4b_9; "/workspace/llm4binary/github/2025_star3"... lea r8, aTensorBufferNu_0; "tensor->buffer == NULL" mov ecx, 4E8h jmp loc_91879 loc_917DC: mov rax, cs:stdout_ptr mov rdi, [rax] call _fflush mov rax, cs:stderr_ptr mov rdi, [rax] lea rsi, aGgmlAssertSDS; "GGML_ASSERT: %s:%d: %s\n" lea rdx, aWorkspaceLlm4b_9; "/workspace/llm4binary/github/2025_star3"... lea r8, aTensorViewSrcN; "tensor->view_src != NULL" mov ecx, 4EAh jmp short loc_91879 loc_91811: mov rax, cs:stdout_ptr mov rdi, [rax] call _fflush mov rax, cs:stderr_ptr mov rdi, [rax] lea rsi, aGgmlAssertSDS; "GGML_ASSERT: %s:%d: %s\n" lea rdx, aWorkspaceLlm4b_9; "/workspace/llm4binary/github/2025_star3"... lea r8, aTensorViewSrcB; "tensor->view_src->buffer != NULL" mov ecx, 4EBh jmp short loc_91879 loc_91846: mov rax, cs:stdout_ptr mov rdi, [rax] call _fflush mov rax, cs:stderr_ptr mov rdi, [rax] lea rsi, aGgmlAssertSDS; "GGML_ASSERT: %s:%d: %s\n" lea rdx, aWorkspaceLlm4b_9; "/workspace/llm4binary/github/2025_star3"... lea r8, aTensorViewSrcD; "tensor->view_src->data != NULL" mov ecx, 4ECh loc_91879: xor eax, eax call _fprintf call ggml_print_backtrace call _abort
long long ggml_backend_view_init(long long a1, long long a2) { long long v2; // rax long long v3; // rax long long v4; // rcx long long (*v5)(void); // rax long long v7; // rdi long long v8; // [rsp-8h] [rbp-8h] v8 = v2; if ( *(_QWORD *)(a2 + 8) ) { fflush(stdout); v7 = stderr; fprintf( stderr, "GGML_ASSERT: %s:%d: %s\n", "/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/ggml/src/ggml-backend.c", 1256LL, "tensor->buffer == NULL"); goto LABEL_12; } v3 = *(_QWORD *)(a2 + 264); if ( !v3 ) { fflush(stdout); v7 = stderr; fprintf( stderr, "GGML_ASSERT: %s:%d: %s\n", "/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/ggml/src/ggml-backend.c", 1258LL, "tensor->view_src != NULL"); goto LABEL_12; } if ( !*(_QWORD *)(v3 + 8) ) { fflush(stdout); v7 = stderr; fprintf( stderr, "GGML_ASSERT: %s:%d: %s\n", "/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/ggml/src/ggml-backend.c", 1259LL, "tensor->view_src->buffer != NULL"); goto LABEL_12; } v4 = *(_QWORD *)(v3 + 280); if ( !v4 ) { fflush(stdout); v7 = stderr; fprintf( stderr, "GGML_ASSERT: %s:%d: %s\n", "/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/ggml/src/ggml-backend.c", 1260LL, "tensor->view_src->data != NULL"); LABEL_12: ggml_print_backtrace(); abort(v7); } *(_QWORD *)(a2 + 8) = a1; *(_QWORD *)(a2 + 280) = *(_QWORD *)(a2 + 272) + v4; *(_DWORD *)(a2 + 4) = *(_DWORD *)(v3 + 4); v5 = *(long long (**)(void))(a1 + 16); if ( v5 ) return v5(); else return v8; }
ggml_backend_view_init: PUSH RAX CMP qword ptr [RSI + 0x8],0x0 JNZ 0x001917a4 MOV RAX,qword ptr [RSI + 0x108] TEST RAX,RAX JZ 0x001917dc CMP qword ptr [RAX + 0x8],0x0 JZ 0x00191811 MOV RCX,qword ptr [RAX + 0x118] TEST RCX,RCX JZ 0x00191846 MOV qword ptr [RSI + 0x8],RDI ADD RCX,qword ptr [RSI + 0x110] MOV qword ptr [RSI + 0x118],RCX MOV EAX,dword ptr [RAX + 0x4] MOV dword ptr [RSI + 0x4],EAX MOV RAX,qword ptr [RDI + 0x10] TEST RAX,RAX JZ 0x001917a2 POP RCX JMP RAX LAB_001917a2: POP RAX RET LAB_001917a4: MOV RAX,qword ptr [0x001d5f48] MOV RDI,qword ptr [RAX] CALL 0x0010a6f0 MOV RAX,qword ptr [0x001d5fa8] MOV RDI,qword ptr [RAX] LEA RSI,[0x19a21e] LEA RDX,[0x1a4730] LEA R8,[0x1a4a85] MOV ECX,0x4e8 JMP 0x00191879 LAB_001917dc: MOV RAX,qword ptr [0x001d5f48] MOV RDI,qword ptr [RAX] CALL 0x0010a6f0 MOV RAX,qword ptr [0x001d5fa8] MOV RDI,qword ptr [RAX] LEA RSI,[0x19a21e] LEA RDX,[0x1a4730] LEA R8,[0x1a4a9c] MOV ECX,0x4ea JMP 0x00191879 LAB_00191811: MOV RAX,qword ptr [0x001d5f48] MOV RDI,qword ptr [RAX] CALL 0x0010a6f0 MOV RAX,qword ptr [0x001d5fa8] MOV RDI,qword ptr [RAX] LEA RSI,[0x19a21e] LEA RDX,[0x1a4730] LEA R8,[0x1a4ab5] MOV ECX,0x4eb JMP 0x00191879 LAB_00191846: MOV RAX,qword ptr [0x001d5f48] MOV RDI,qword ptr [RAX] CALL 0x0010a6f0 MOV RAX,qword ptr [0x001d5fa8] MOV RDI,qword ptr [RAX] LEA RSI,[0x19a21e] LEA RDX,[0x1a4730] LEA R8,[0x1a4ad6] MOV ECX,0x4ec LAB_00191879: XOR EAX,EAX CALL 0x0010a8b0 CALL 0x00167550 CALL 0x0010a300
int8 ggml_backend_view_init(long param_1,long param_2) { long lVar1; long lVar2; int8 in_RAX; int8 uVar3; FILE *__stream; char *pcVar4; if (*(long *)(param_2 + 8) == 0) { lVar1 = *(long *)(param_2 + 0x108); if (lVar1 == 0) { fflush(*(FILE **)PTR_stdout_001d5f48); __stream = *(FILE **)PTR_stderr_001d5fa8; pcVar4 = "tensor->view_src != NULL"; uVar3 = 0x4ea; } else if (*(long *)(lVar1 + 8) == 0) { fflush(*(FILE **)PTR_stdout_001d5f48); __stream = *(FILE **)PTR_stderr_001d5fa8; pcVar4 = "tensor->view_src->buffer != NULL"; uVar3 = 0x4eb; } else { lVar2 = *(long *)(lVar1 + 0x118); if (lVar2 != 0) { *(long *)(param_2 + 8) = param_1; *(long *)(param_2 + 0x118) = lVar2 + *(long *)(param_2 + 0x110); *(int4 *)(param_2 + 4) = *(int4 *)(lVar1 + 4); if (*(code **)(param_1 + 0x10) != (code *)0x0) { /* WARNING: Could not recover jumptable at 0x001917a0. Too many branches */ /* WARNING: Treating indirect jump as call */ uVar3 = (**(code **)(param_1 + 0x10))(); return uVar3; } return in_RAX; } fflush(*(FILE **)PTR_stdout_001d5f48); __stream = *(FILE **)PTR_stderr_001d5fa8; pcVar4 = "tensor->view_src->data != NULL"; uVar3 = 0x4ec; } } else { fflush(*(FILE **)PTR_stdout_001d5f48); __stream = *(FILE **)PTR_stderr_001d5fa8; pcVar4 = "tensor->buffer == NULL"; uVar3 = 0x4e8; } fprintf(__stream,"GGML_ASSERT: %s:%d: %s\n", "/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/ggml/src/ggml-backend.c" ,uVar3,pcVar4); ggml_print_backtrace(); /* WARNING: Subroutine does not return */ abort(); }
65,260
qdevtools::QObjectTreeModel::index(int, int, QModelIndex const&) const
HuaiminNotSleepYet[P]QDevTools/qdevtools.cpp
QModelIndex QObjectTreeModel::index(int row, int column, const QModelIndex& parent) const { if (!hasIndex(row, column, parent)) return QModelIndex(); QObject* parentObject = parent.isValid() ? static_cast<QObject*>(parent.internalPointer()) : nullptr; QObject* object = parentObject ? parentObject->children().at(row) : root_.at(row); if (!connections1_.contains(object)) { auto conn = connect(object, &QObject::objectNameChanged, this, [self = const_cast<QObjectTreeModel*>(this), object, parentObject]() { auto row = parentObject ? parentObject->children().indexOf(object) : self->root_.indexOf(object); auto index = self->createIndex(row, 1, object); emit self->dataChanged(index, index, {Qt::DisplayRole}); }); connections1_[object] = conn; } if (!connections2_.contains(object)) { auto conn = connect(object, &QObject::destroyed, this, [self = const_cast<QObjectTreeModel*>(this), object, row, parent]() { self->beginRemoveRows(parent, row, row); self->connections1_.remove(object); self->connections2_.remove(object); self->endRemoveRows(); }); connections2_[object] = conn; } // TODO: update when add child return createIndex(row, column, object); }
O0
cpp
qdevtools::QObjectTreeModel::index(int, int, QModelIndex const&) const: pushq %rbp movq %rsp, %rbp subq $0x120, %rsp # imm = 0x120 movq %rdi, -0xd8(%rbp) movq %rdi, -0xd0(%rbp) movq %rsi, -0x8(%rbp) movl %edx, -0xc(%rbp) movl %ecx, -0x10(%rbp) movq %r8, -0x18(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0xc8(%rbp) movl -0xc(%rbp), %esi movl -0x10(%rbp), %edx movq -0x18(%rbp), %rcx callq 0xfea0 testb $0x1, %al jne 0x12e46 movq -0xd8(%rbp), %rdi callq 0x1b260 jmp 0x130f2 movq -0x18(%rbp), %rdi callq 0x1b290 testb $0x1, %al jne 0x12e55 jmp 0x12e67 movq -0x18(%rbp), %rdi callq 0x1b2d0 movq %rax, -0xe0(%rbp) jmp 0x12e72 xorl %eax, %eax movq %rax, -0xe0(%rbp) jmp 0x12e72 movq -0xe0(%rbp), %rax movq %rax, -0x20(%rbp) cmpq $0x0, -0x20(%rbp) je 0x12ea5 movq -0x20(%rbp), %rdi callq 0x1b2f0 movq %rax, %rdi movslq -0xc(%rbp), %rsi callq 0x1b320 movq (%rax), %rax movq %rax, -0xe8(%rbp) jmp 0x12ec3 movq -0xc8(%rbp), %rdi addq $0x10, %rdi movslq -0xc(%rbp), %rsi callq 0x1b320 movq (%rax), %rax movq %rax, -0xe8(%rbp) movq -0xc8(%rbp), %rdi movq -0xe8(%rbp), %rax movq %rax, -0x28(%rbp) addq $0x28, %rdi leaq -0x28(%rbp), %rsi callq 0x1b350 testb $0x1, %al jne 0x12fb0 movq -0xc8(%rbp), %r8 movq -0x28(%rbp), %rsi movq %r8, -0x48(%rbp) movq -0x28(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x20(%rbp), %rax movq %rax, -0x38(%rbp) movq 0x3e028(%rip), %rax # 0x50f38 movq %rax, -0x58(%rbp) movq $0x0, -0x50(%rbp) movq -0x58(%rbp), %rdx movq -0x50(%rbp), %rcx movq -0x38(%rbp), %rdi movq %rsp, %rax movq %rdi, 0x10(%rax) movups -0x48(%rbp), %xmm0 movups %xmm0, (%rax) leaq -0x30(%rbp), %rdi xorl %r9d, %r9d callq 0x13110 movq -0xc8(%rbp), %rsi addq $0x28, %rsi leaq -0x60(%rbp), %rdi leaq -0x28(%rbp), %rdx callq 0x1b3d0 jmp 0x12f5c leaq -0x60(%rbp), %rdi leaq -0x30(%rbp), %rsi callq 0xfe20 jmp 0x12f6b leaq -0x60(%rbp), %rdi callq 0xf400 leaq -0x30(%rbp), %rdi callq 0xf400 jmp 0x12fb0 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x68(%rbp) movl %eax, -0x6c(%rbp) jmp 0x12fa2 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x68(%rbp) movl %eax, -0x6c(%rbp) leaq -0x60(%rbp), %rdi callq 0xf400 leaq -0x30(%rbp), %rdi callq 0xf400 jmp 0x13102 movq -0xc8(%rbp), %rdi addq $0x30, %rdi leaq -0x28(%rbp), %rsi callq 0x1b350 testb $0x1, %al jne 0x130d5 movq -0xc8(%rbp), %r8 movq -0x28(%rbp), %rsi movq %r8, -0xa8(%rbp) movq -0x28(%rbp), %rax movq %rax, -0xa0(%rbp) movl -0xc(%rbp), %eax movl %eax, -0x98(%rbp) movq -0x18(%rbp), %rax movq 0x10(%rax), %rcx movq %rcx, -0x80(%rbp) movups (%rax), %xmm0 movups %xmm0, -0x90(%rbp) movq 0x3dee1(%rip), %rax # 0x50ef0 movq %rax, -0xb8(%rbp) movq $0x0, -0xb0(%rbp) movq -0xb8(%rbp), %rdx movq -0xb0(%rbp), %rcx movups -0xa8(%rbp), %xmm0 movups -0x98(%rbp), %xmm1 movups -0x88(%rbp), %xmm2 movq %rsp, %rax movups %xmm2, 0x20(%rax) movups %xmm1, 0x10(%rax) movups %xmm0, (%rax) leaq -0x78(%rbp), %rdi xorl %r9d, %r9d callq 0x13270 movq -0xc8(%rbp), %rsi addq $0x30, %rsi leaq -0xc0(%rbp), %rdi leaq -0x28(%rbp), %rdx callq 0x1b3d0 jmp 0x1307b leaq -0xc0(%rbp), %rdi leaq -0x78(%rbp), %rsi callq 0xfe20 jmp 0x1308d leaq -0xc0(%rbp), %rdi callq 0xf400 leaq -0x78(%rbp), %rdi callq 0xf400 jmp 0x130d5 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x68(%rbp) movl %eax, -0x6c(%rbp) jmp 0x130ca movq %rax, %rcx movl %edx, %eax movq %rcx, -0x68(%rbp) movl %eax, -0x6c(%rbp) leaq -0xc0(%rbp), %rdi callq 0xf400 leaq -0x78(%rbp), %rdi callq 0xf400 jmp 0x13102 movq -0xc8(%rbp), %rsi movq -0xd8(%rbp), %rdi movl -0xc(%rbp), %edx movl -0x10(%rbp), %ecx movq -0x28(%rbp), %r8 callq 0x1b460 movq -0xd0(%rbp), %rax addq $0x120, %rsp # imm = 0x120 popq %rbp retq movq -0x68(%rbp), %rdi callq 0xf410 nopl (%rax,%rax)
_ZNK9qdevtools16QObjectTreeModel5indexEiiRK11QModelIndex: push rbp mov rbp, rsp sub rsp, 120h mov [rbp+var_D8], rdi mov [rbp+var_D0], rdi mov [rbp+var_8], rsi mov dword ptr [rbp+var_10+4], edx mov dword ptr [rbp+var_10], ecx mov [rbp+var_18], r8 mov rdi, [rbp+var_8]; this mov qword ptr [rbp+var_C8], rdi mov esi, dword ptr [rbp+var_10+4]; int mov edx, dword ptr [rbp+var_10]; int mov rcx, [rbp+var_18]; QModelIndex * call __ZNK18QAbstractItemModel8hasIndexEiiRK11QModelIndex; QAbstractItemModel::hasIndex(int,int,QModelIndex const&) test al, 1 jnz short loc_12E46 mov rdi, [rbp+var_D8]; this call _ZN11QModelIndexC2Ev; QModelIndex::QModelIndex(void) jmp loc_130F2 loc_12E46: mov rdi, [rbp+var_18]; this call _ZNK11QModelIndex7isValidEv; QModelIndex::isValid(void) test al, 1 jnz short loc_12E55 jmp short loc_12E67 loc_12E55: mov rdi, [rbp+var_18]; this call _ZNK11QModelIndex15internalPointerEv; QModelIndex::internalPointer(void) mov [rbp+var_E0], rax jmp short loc_12E72 loc_12E67: xor eax, eax mov [rbp+var_E0], rax jmp short $+2 loc_12E72: mov rax, [rbp+var_E0] mov [rbp+var_20], rax cmp [rbp+var_20], 0 jz short loc_12EA5 mov rdi, [rbp+var_20]; this call _ZNK7QObject8childrenEv; QObject::children(void) mov rdi, rax movsxd rsi, dword ptr [rbp+var_10+4] call _ZNK5QListIP7QObjectE2atEx; QList<QObject *>::at(long long) mov rax, [rax] mov [rbp+var_E8], rax jmp short loc_12EC3 loc_12EA5: mov rdi, qword ptr [rbp+var_C8] add rdi, 10h movsxd rsi, dword ptr [rbp+var_10+4] call _ZNK5QListIP7QObjectE2atEx; QList<QObject *>::at(long long) mov rax, [rax] mov [rbp+var_E8], rax loc_12EC3: mov rdi, qword ptr [rbp+var_C8] mov rax, [rbp+var_E8] mov [rbp+var_28], rax add rdi, 28h ; '(' lea rsi, [rbp+var_28] call _ZNK4QMapIP7QObjectN11QMetaObject10ConnectionEE8containsERKS1_; QMap<QObject *,QMetaObject::Connection>::contains(QObject * const&) test al, 1 jnz loc_12FB0 mov r8, qword ptr [rbp+var_C8] mov rsi, [rbp+var_28] mov qword ptr [rbp+var_48], r8 mov rax, [rbp+var_28] mov qword ptr [rbp+var_48+8], rax mov rax, [rbp+var_20] mov [rbp+var_38], rax mov rax, cs:_ZN7QObject17objectNameChangedERK7QStringNS_14QPrivateSignalE_ptr mov [rbp+var_58], rax mov [rbp+var_50], 0 mov rdx, [rbp+var_58] mov rcx, [rbp+var_50] mov rdi, [rbp+var_38] mov rax, rsp mov [rax+10h], rdi movups xmm0, [rbp+var_48] movups xmmword ptr [rax], xmm0 lea rdi, [rbp+var_30] xor r9d, r9d call _ZN7QObject7connectIMS_FvRK7QStringNS_14QPrivateSignalEEZNK9qdevtools16QObjectTreeModel5indexEiiRK11QModelIndexE3$_0EENSt9enable_ifIXeqsr9QtPrivate15FunctionPointerIT0_EE13ArgumentCountngLi1EEN11QMetaObject10ConnectionEE4typeEPKN9QtPrivate15FunctionPointerIT_E6ObjectESL_PKS_SE_N2Qt14ConnectionTypeE mov rsi, qword ptr [rbp+var_C8] add rsi, 28h ; '(' lea rdi, [rbp+var_60] lea rdx, [rbp+var_28] call _ZNK4QMapIP7QObjectN11QMetaObject10ConnectionEEixERKS1_; QMap<QObject *,QMetaObject::Connection>::operator[](QObject * const&) jmp short $+2 loc_12F5C: lea rdi, [rbp+var_60] lea rsi, [rbp+var_30] call __ZN11QMetaObject10ConnectionaSERKS0_; QMetaObject::Connection::operator=(QMetaObject::Connection const&) jmp short $+2 loc_12F6B: lea rdi, [rbp+var_60]; this call __ZN11QMetaObject10ConnectionD1Ev; QMetaObject::Connection::~Connection() lea rdi, [rbp+var_30]; this call __ZN11QMetaObject10ConnectionD1Ev; QMetaObject::Connection::~Connection() jmp short loc_12FB0 mov rcx, rax mov eax, edx mov [rbp+var_68], rcx mov [rbp+var_6C], eax jmp short loc_12FA2 mov rcx, rax mov eax, edx mov [rbp+var_68], rcx mov [rbp+var_6C], eax lea rdi, [rbp+var_60]; this call __ZN11QMetaObject10ConnectionD1Ev; QMetaObject::Connection::~Connection() loc_12FA2: lea rdi, [rbp+var_30]; this call __ZN11QMetaObject10ConnectionD1Ev; QMetaObject::Connection::~Connection() jmp loc_13102 loc_12FB0: mov rdi, qword ptr [rbp+var_C8] add rdi, 30h ; '0' lea rsi, [rbp+var_28] call _ZNK4QMapIP7QObjectN11QMetaObject10ConnectionEE8containsERKS1_; QMap<QObject *,QMetaObject::Connection>::contains(QObject * const&) test al, 1 jnz loc_130D5 mov r8, qword ptr [rbp+var_C8] mov rsi, [rbp+var_28] mov qword ptr [rbp+var_A8], r8 mov rax, [rbp+var_28] mov qword ptr [rbp+var_A8+8], rax mov eax, dword ptr [rbp+var_10+4] mov dword ptr [rbp+var_98], eax mov rax, [rbp+var_18] mov rcx, [rax+10h] mov [rbp+var_80], rcx movups xmm0, xmmword ptr [rax] movups [rbp+var_98+8], xmm0 mov rax, cs:_ZN7QObject9destroyedEPS__ptr mov [rbp+var_B8], rax mov [rbp+var_B0], 0 mov rdx, [rbp+var_B8] mov rcx, [rbp+var_B0] movups xmm0, [rbp+var_A8] movups xmm1, [rbp+var_98] movups xmm2, xmmword ptr [rbp-88h] mov rax, rsp movups xmmword ptr [rax+20h], xmm2 movups xmmword ptr [rax+10h], xmm1 movups xmmword ptr [rax], xmm0 lea rdi, [rbp+var_78] xor r9d, r9d call _ZN7QObject7connectIMS_FvPS_EZNK9qdevtools16QObjectTreeModel5indexEiiRK11QModelIndexE3$_1EENSt9enable_ifIXeqsr9QtPrivate15FunctionPointerIT0_EE13ArgumentCountngLi1EEN11QMetaObject10ConnectionEE4typeEPKN9QtPrivate15FunctionPointerIT_E6ObjectESI_PKS_SB_N2Qt14ConnectionTypeE mov rsi, qword ptr [rbp+var_C8] add rsi, 30h ; '0' lea rdi, [rbp+var_C0] lea rdx, [rbp+var_28] call _ZNK4QMapIP7QObjectN11QMetaObject10ConnectionEEixERKS1_; QMap<QObject *,QMetaObject::Connection>::operator[](QObject * const&) jmp short $+2 loc_1307B: lea rdi, [rbp+var_C0] lea rsi, [rbp+var_78] call __ZN11QMetaObject10ConnectionaSERKS0_; QMetaObject::Connection::operator=(QMetaObject::Connection const&) jmp short $+2 loc_1308D: lea rdi, [rbp+var_C0]; this call __ZN11QMetaObject10ConnectionD1Ev; QMetaObject::Connection::~Connection() lea rdi, [rbp+var_78]; this call __ZN11QMetaObject10ConnectionD1Ev; QMetaObject::Connection::~Connection() jmp short loc_130D5 mov rcx, rax mov eax, edx mov [rbp+var_68], rcx mov [rbp+var_6C], eax jmp short loc_130CA mov rcx, rax mov eax, edx mov [rbp+var_68], rcx mov [rbp+var_6C], eax lea rdi, [rbp+var_C0]; this call __ZN11QMetaObject10ConnectionD1Ev; QMetaObject::Connection::~Connection() loc_130CA: lea rdi, [rbp+var_78]; this call __ZN11QMetaObject10ConnectionD1Ev; QMetaObject::Connection::~Connection() jmp short loc_13102 loc_130D5: mov rsi, qword ptr [rbp+var_C8]; int mov rdi, [rbp+var_D8]; this mov edx, dword ptr [rbp+var_10+4]; int mov ecx, dword ptr [rbp+var_10]; void * mov r8, [rbp+var_28] call _ZNK18QAbstractItemModel11createIndexEiiPKv; QAbstractItemModel::createIndex(int,int,void const*) loc_130F2: mov rax, [rbp+var_D0] add rsp, 120h pop rbp retn loc_13102: mov rdi, [rbp+var_68] call __Unwind_Resume
qdevtools::QObjectTreeModel * qdevtools::QObjectTreeModel::index( qdevtools::QObjectTreeModel *this, QAbstractItemModel *a2, int a3, const QModelIndex *a4, QModelIndex *a5) { long long v5; // rax long long v7; // [rsp+38h] [rbp-E8h] QObject *v8; // [rsp+40h] [rbp-E0h] _BYTE v9[8]; // [rsp+60h] [rbp-C0h] BYREF _QWORD (**v10)(QObject *__hidden, QObject *); // [rsp+68h] [rbp-B8h] long long v11; // [rsp+70h] [rbp-B0h] QAbstractItemModel *v12; // [rsp+78h] [rbp-A8h] long long v13; // [rsp+80h] [rbp-A0h] _BYTE v14[24]; // [rsp+88h] [rbp-98h] long long v15; // [rsp+A0h] [rbp-80h] _BYTE v16[12]; // [rsp+A8h] [rbp-78h] BYREF _BYTE v17[8]; // [rsp+C0h] [rbp-60h] BYREF void *v18; // [rsp+C8h] [rbp-58h] long long v19; // [rsp+D0h] [rbp-50h] QAbstractItemModel *v20; // [rsp+D8h] [rbp-48h] long long v21; // [rsp+E0h] [rbp-40h] QObject *v22; // [rsp+E8h] [rbp-38h] _BYTE v23[8]; // [rsp+F0h] [rbp-30h] BYREF long long v24; // [rsp+F8h] [rbp-28h] BYREF QObject *v25; // [rsp+100h] [rbp-20h] QModelIndex *v26; // [rsp+108h] [rbp-18h] unsigned int v27; // [rsp+110h] [rbp-10h] int v28; // [rsp+114h] [rbp-Ch] QAbstractItemModel *v29; // [rsp+118h] [rbp-8h] v29 = a2; v28 = a3; v27 = (unsigned int)a4; v26 = a5; if ( (QAbstractItemModel::hasIndex(a2, a3, (int)a4, a5) & 1) != 0 ) { if ( (QModelIndex::isValid(v26) & 1) != 0 ) v8 = (QObject *)QModelIndex::internalPointer(v26); else v8 = 0LL; v25 = v8; if ( v8 ) { v5 = QObject::children(v25); v7 = *(_QWORD *)QList<QObject *>::at(v5, v28); } else { v7 = *(_QWORD *)QList<QObject *>::at((char *)a2 + 16, v28); } v24 = v7; if ( (QMap<QObject *,QMetaObject::Connection>::contains((char *)a2 + 40, &v24) & 1) == 0 ) { v20 = a2; v21 = v24; v22 = v25; v18 = &QObject::objectNameChanged; v19 = 0LL; QObject::connect<void (QObject::*)(QString const&,QObject::QPrivateSignal),qdevtools::QObjectTreeModel::index(int,int,QModelIndex const&)::$_0>( (unsigned int)v23, v24, (unsigned int)&QObject::objectNameChanged, 0, (_DWORD)a2, 0, a2, v24, v25); QMap<QObject *,QMetaObject::Connection>::operator[](v17, (char *)a2 + 40, &v24); QMetaObject::Connection::operator=(v17, v23); QMetaObject::Connection::~Connection((QMetaObject::Connection *)v17); QMetaObject::Connection::~Connection((QMetaObject::Connection *)v23); } if ( (QMap<QObject *,QMetaObject::Connection>::contains((char *)a2 + 48, &v24) & 1) == 0 ) { v12 = a2; v13 = v24; *(_DWORD *)v14 = v28; v15 = *((_QWORD *)v26 + 2); *(_OWORD *)&v14[8] = *(_OWORD *)v26; v10 = &QObject::destroyed; v11 = 0LL; QObject::connect<void (QObject::*)(QObject*),qdevtools::QObjectTreeModel::index(int,int,QModelIndex const&)::$_1>( (unsigned int)v16, v24, (unsigned int)&QObject::destroyed, 0, (_DWORD)a2, 0, a2, v24, *(_OWORD *)v14, *(_QWORD *)&v14[16], v15); QMap<QObject *,QMetaObject::Connection>::operator[](v9, (char *)a2 + 48, &v24); QMetaObject::Connection::operator=(v9, v16); QMetaObject::Connection::~Connection((QMetaObject::Connection *)v9); QMetaObject::Connection::~Connection((QMetaObject::Connection *)v16); } QAbstractItemModel::createIndex(this, (int)a2, v28, (const void *)v27); } else { QModelIndex::QModelIndex(this); } return this; }
index: PUSH RBP MOV RBP,RSP SUB RSP,0x120 MOV qword ptr [RBP + -0xd8],RDI MOV qword ptr [RBP + -0xd0],RDI MOV qword ptr [RBP + -0x8],RSI MOV dword ptr [RBP + -0xc],EDX MOV dword ptr [RBP + -0x10],ECX MOV qword ptr [RBP + -0x18],R8 MOV RDI,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0xc8],RDI MOV ESI,dword ptr [RBP + -0xc] MOV EDX,dword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x18] CALL 0x0010fea0 TEST AL,0x1 JNZ 0x00112e46 MOV RDI,qword ptr [RBP + -0xd8] CALL 0x0011b260 JMP 0x001130f2 LAB_00112e46: MOV RDI,qword ptr [RBP + -0x18] CALL 0x0011b290 TEST AL,0x1 JNZ 0x00112e55 JMP 0x00112e67 LAB_00112e55: MOV RDI,qword ptr [RBP + -0x18] CALL 0x0011b2d0 MOV qword ptr [RBP + -0xe0],RAX JMP 0x00112e72 LAB_00112e67: XOR EAX,EAX MOV qword ptr [RBP + -0xe0],RAX JMP 0x00112e72 LAB_00112e72: MOV RAX,qword ptr [RBP + -0xe0] MOV qword ptr [RBP + -0x20],RAX CMP qword ptr [RBP + -0x20],0x0 JZ 0x00112ea5 MOV RDI,qword ptr [RBP + -0x20] CALL 0x0011b2f0 MOV RDI,RAX MOVSXD RSI,dword ptr [RBP + -0xc] CALL 0x0011b320 MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0xe8],RAX JMP 0x00112ec3 LAB_00112ea5: MOV RDI,qword ptr [RBP + -0xc8] ADD RDI,0x10 MOVSXD RSI,dword ptr [RBP + -0xc] CALL 0x0011b320 MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0xe8],RAX LAB_00112ec3: MOV RDI,qword ptr [RBP + -0xc8] MOV RAX,qword ptr [RBP + -0xe8] MOV qword ptr [RBP + -0x28],RAX ADD RDI,0x28 LEA RSI,[RBP + -0x28] CALL 0x0011b350 TEST AL,0x1 JNZ 0x00112fb0 MOV R8,qword ptr [RBP + -0xc8] MOV RSI,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x48],R8 MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [0x00150f38] MOV qword ptr [RBP + -0x58],RAX MOV qword ptr [RBP + -0x50],0x0 MOV RDX,qword ptr [RBP + -0x58] MOV RCX,qword ptr [RBP + -0x50] MOV RDI,qword ptr [RBP + -0x38] MOV RAX,RSP MOV qword ptr [RAX + 0x10],RDI MOVUPS XMM0,xmmword ptr [RBP + -0x48] MOVUPS xmmword ptr [RAX],XMM0 LEA RDI,[RBP + -0x30] XOR R9D,R9D CALL 0x00113110 MOV RSI,qword ptr [RBP + -0xc8] ADD RSI,0x28 LAB_00112f4d: LEA RDI,[RBP + -0x60] LEA RDX,[RBP + -0x28] CALL 0x0011b3d0 JMP 0x00112f5c LAB_00112f5c: LEA RDI,[RBP + -0x60] LEA RSI,[RBP + -0x30] CALL 0x0010fe20 LAB_00112f69: JMP 0x00112f6b LAB_00112f6b: LEA RDI,[RBP + -0x60] CALL 0x0010f400 LEA RDI,[RBP + -0x30] CALL 0x0010f400 JMP 0x00112fb0 LAB_00112fb0: MOV RDI,qword ptr [RBP + -0xc8] ADD RDI,0x30 LEA RSI,[RBP + -0x28] CALL 0x0011b350 TEST AL,0x1 JNZ 0x001130d5 MOV R8,qword ptr [RBP + -0xc8] MOV RSI,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0xa8],R8 MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0xa0],RAX MOV EAX,dword ptr [RBP + -0xc] MOV dword ptr [RBP + -0x98],EAX MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0x80],RCX MOVUPS XMM0,xmmword ptr [RAX] MOVUPS xmmword ptr [RBP + -0x90],XMM0 MOV RAX,qword ptr [0x00150ef0] MOV qword ptr [RBP + -0xb8],RAX MOV qword ptr [RBP + -0xb0],0x0 MOV RDX,qword ptr [RBP + -0xb8] MOV RCX,qword ptr [RBP + -0xb0] MOVUPS XMM0,xmmword ptr [RBP + -0xa8] MOVUPS XMM1,xmmword ptr [RBP + -0x98] MOVUPS XMM2,xmmword ptr [RBP + -0x88] MOV RAX,RSP MOVUPS xmmword ptr [RAX + 0x20],XMM2 MOVUPS xmmword ptr [RAX + 0x10],XMM1 MOVUPS xmmword ptr [RAX],XMM0 LEA RDI,[RBP + -0x78] XOR R9D,R9D CALL 0x00113270 MOV RSI,qword ptr [RBP + -0xc8] ADD RSI,0x30 LAB_00113069: LEA RDI,[RBP + -0xc0] LEA RDX,[RBP + -0x28] CALL 0x0011b3d0 JMP 0x0011307b LAB_0011307b: LEA RDI,[RBP + -0xc0] LEA RSI,[RBP + -0x78] CALL 0x0010fe20 LAB_0011308b: JMP 0x0011308d LAB_0011308d: LEA RDI,[RBP + -0xc0] CALL 0x0010f400 LEA RDI,[RBP + -0x78] CALL 0x0010f400 JMP 0x001130d5 LAB_001130d5: MOV RSI,qword ptr [RBP + -0xc8] MOV RDI,qword ptr [RBP + -0xd8] MOV EDX,dword ptr [RBP + -0xc] MOV ECX,dword ptr [RBP + -0x10] MOV R8,qword ptr [RBP + -0x28] CALL 0x0011b460 LAB_001130f2: MOV RAX,qword ptr [RBP + -0xd0] ADD RSP,0x120 POP RBP RET
/* qdevtools::QObjectTreeModel::index(int, int, QModelIndex const&) const */ QModelIndex * qdevtools::QObjectTreeModel::index(int param_1,int param_2,QModelIndex *param_3) { int4 uVar1; QObject *pQVar2; ulong uVar3; QList<QObject*> *this; int8 *puVar4; uint in_ECX; int4 in_register_00000034; long lVar5; int4 in_register_0000003c; QModelIndex *in_R8; QObject *local_f0; QObject *local_e8; QObject *local_c8; int *local_c0; int8 local_b8; long local_b0; QObject *pQStack_a8; uint local_a0; int4 uStack_9c; int8 uStack_98; int8 uStack_90; int8 uStack_88; QObject local_80 [24]; QObject *local_68; int *local_60; int8 local_58; long local_50; QObject *pQStack_48; QObject *local_40; QObject local_38 [8]; QObject *local_30; QObject *local_28; QModelIndex *local_20; uint local_14; long local_10; lVar5 = CONCAT44(in_register_00000034,param_2); local_14 = (uint)param_3; local_20 = in_R8; local_10 = lVar5; uVar3 = QAbstractItemModel::hasIndex(param_2,local_14,(QModelIndex *)(ulong)in_ECX); if ((uVar3 & 1) == 0) { QModelIndex::QModelIndex((QModelIndex *)CONCAT44(in_register_0000003c,param_1)); } else { uVar3 = QModelIndex::isValid(local_20); if ((uVar3 & 1) == 0) { local_e8 = (QObject *)0x0; } else { local_e8 = (QObject *)QModelIndex::internalPointer(local_20); } local_28 = local_e8; if (local_e8 == (QObject *)0x0) { puVar4 = (int8 *) QList<QObject*>::at((QList<QObject*> *)(lVar5 + 0x10),(long)(int)local_14); local_f0 = (QObject *)*puVar4; } else { this = (QList<QObject*> *)QObject::children(local_e8); puVar4 = (int8 *)QList<QObject*>::at(this,(long)(int)local_14); local_f0 = (QObject *)*puVar4; } local_30 = local_f0; uVar3 = QMap<QObject*,QMetaObject::Connection>::contains ((QMap<QObject*,QMetaObject::Connection> *)(lVar5 + 0x28),&local_30); if ((uVar3 & 1) == 0) { pQStack_48 = local_30; pQVar2 = pQStack_48; local_40 = local_28; local_60 = PTR_objectNameChanged_00150f38; local_58 = 0; pQStack_48._0_4_ = SUB84(local_30,0); uVar1 = pQStack_48._0_4_; local_50 = lVar5; pQStack_48 = pQVar2; QObject:: connect<void(QObject::*)(QString_const&,QObject::QPrivateSignal),qdevtools::QObjectTreeModel::index(int,int,QModelIndex_const&)const::__0> (local_38,local_30,PTR_objectNameChanged_00150f38,0,lVar5,0,param_2,uVar1,local_28); /* try { // try from 00112f4d to 00112f59 has its CatchHandler @ 00112f7f */ QMap<QObject*,QMetaObject::Connection>::operator[](&local_68); /* try { // try from 00112f5c to 00112f68 has its CatchHandler @ 00112f8d */ QMetaObject::Connection::operator=(&local_68,local_38); QMetaObject::Connection::~Connection(&local_68); QMetaObject::Connection::~Connection(local_38); } uVar3 = QMap<QObject*,QMetaObject::Connection>::contains ((QMap<QObject*,QMetaObject::Connection> *)(lVar5 + 0x30),&local_30); if ((uVar3 & 1) == 0) { pQStack_a8 = local_30; pQVar2 = pQStack_a8; local_a0 = local_14; uStack_88 = *(int8 *)(local_20 + 0x10); uStack_98 = *(int8 *)local_20; uStack_90 = *(int8 *)(local_20 + 8); local_c0 = PTR_destroyed_00150ef0; local_b8 = 0; pQStack_a8._0_4_ = SUB84(local_30,0); uVar1 = pQStack_a8._0_4_; local_b0 = lVar5; pQStack_a8 = pQVar2; QObject:: connect<void(QObject::*)(QObject*),qdevtools::QObjectTreeModel::index(int,int,QModelIndex_const&)const::__1> (local_80,local_30,PTR_destroyed_00150ef0,0,lVar5,0,param_2,uVar1, CONCAT44(uStack_9c,local_14),(int4)uStack_98,(int4)uStack_90, (int4)uStack_88); /* try { // try from 00113069 to 00113078 has its CatchHandler @ 001130a4 */ QMap<QObject*,QMetaObject::Connection>::operator[](&local_c8); /* try { // try from 0011307b to 0011308a has its CatchHandler @ 001130b2 */ QMetaObject::Connection::operator=(&local_c8,local_80); QMetaObject::Connection::~Connection(&local_c8); QMetaObject::Connection::~Connection(local_80); } QAbstractItemModel::createIndex(param_1,param_2,(void *)(ulong)local_14); } return (QModelIndex *)CONCAT44(in_register_0000003c,param_1); }
65,261
qdevtools::QObjectTreeModel::index(int, int, QModelIndex const&) const
HuaiminNotSleepYet[P]QDevTools/qdevtools.cpp
QModelIndex QObjectTreeModel::index(int row, int column, const QModelIndex& parent) const { if (!hasIndex(row, column, parent)) return QModelIndex(); QObject* parentObject = parent.isValid() ? static_cast<QObject*>(parent.internalPointer()) : nullptr; QObject* object = parentObject ? parentObject->children().at(row) : root_.at(row); if (!connections1_.contains(object)) { auto conn = connect(object, &QObject::objectNameChanged, this, [self = const_cast<QObjectTreeModel*>(this), object, parentObject]() { auto row = parentObject ? parentObject->children().indexOf(object) : self->root_.indexOf(object); auto index = self->createIndex(row, 1, object); emit self->dataChanged(index, index, {Qt::DisplayRole}); }); connections1_[object] = conn; } if (!connections2_.contains(object)) { auto conn = connect(object, &QObject::destroyed, this, [self = const_cast<QObjectTreeModel*>(this), object, row, parent]() { self->beginRemoveRows(parent, row, row); self->connections1_.remove(object); self->connections2_.remove(object); self->endRemoveRows(); }); connections2_[object] = conn; } // TODO: update when add child return createIndex(row, column, object); }
O2
cpp
qdevtools::QObjectTreeModel::index(int, int, QModelIndex const&) const: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x68, %rsp movq %r8, %r12 movl %ecx, %ebp movl %edx, %r13d movq %rsi, %r14 movq %rdi, %rbx movq %rsi, %rdi movl %edx, %esi movl %ecx, %edx movq %r8, %rcx callq 0xfee0 testb %al, %al je 0x10f1d movq %r12, %rdi callq 0x14546 testb %al, %al je 0x10f2d movq 0x8(%r12), %r15 testq %r15, %r15 je 0x10f2d movq 0x8(%r15), %rax addq $0x20, %rax jmp 0x10f34 orq $-0x1, (%rbx) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%rbx) jmp 0x11113 leaq 0x18(%r14), %rax xorl %r15d, %r15d movl %r13d, 0x34(%rsp) movslq %r13d, %rcx movq (%rax), %rax movq (%rax,%rcx,8), %rax leaq 0x28(%rsp), %rsi movq %rax, (%rsi) leaq 0x28(%r14), %r13 movq %r13, %rdi callq 0x1455c testb %al, %al jne 0x1100e movl %ebp, 0x48(%rsp) leaq 0x28(%rsp), %rax movq (%rax), %rbp movq 0x1bfee(%rip), %rax # 0x2cf60 leaq 0x38(%rsp), %rcx movq %rax, (%rcx) andq $0x0, 0x8(%rcx) pushq $0x28 popq %rdi callq 0xf920 movq %r14, 0x10(%rax) movq %rbp, 0x18(%rax) movq %r15, 0x20(%rax) movl $0x1, (%rax) leaq 0x2a26(%rip), %rcx # 0x139c6 movq %rcx, 0x8(%rax) andq $0x0, 0x8(%rsp) movq 0x1c047(%rip), %rcx # 0x2cff8 andl $0x0, (%rsp) movq %rcx, 0x10(%rsp) leaq 0x20(%rsp), %rdi movq %rbp, %rsi leaq 0x38(%rsp), %rdx movq %r14, %rcx xorl %r8d, %r8d movq %rax, %r9 callq 0xf6e0 leaq 0x38(%rsp), %rdi movq %r13, %rsi leaq 0x28(%rsp), %rdx callq 0x14584 leaq 0x38(%rsp), %rdi leaq 0x20(%rsp), %rsi callq 0xfe50 leaq 0x38(%rsp), %rdi callq 0xf400 leaq 0x20(%rsp), %rdi callq 0xf400 movl 0x48(%rsp), %ebp leaq 0x30(%r14), %r13 leaq 0x28(%rsp), %rsi movq %r13, %rdi callq 0x1455c testb %al, %al jne 0x110fd movl %ebp, %r15d leaq 0x28(%rsp), %rax movq (%rax), %rbp movups (%r12), %xmm0 movups %xmm0, 0x50(%rsp) movq 0x10(%r12), %rax movq %rax, 0x60(%rsp) movq 0x1bed3(%rip), %rax # 0x2cf20 leaq 0x38(%rsp), %r12 movq %rax, (%r12) andq $0x0, 0x8(%r12) pushq $0x40 popq %rdi callq 0xf920 movq %r14, 0x10(%rax) movq %rbp, 0x18(%rax) movl 0x34(%rsp), %ecx movl %ecx, 0x20(%rax) movups 0x4c(%rsp), %xmm0 movups 0x58(%rsp), %xmm1 movups %xmm0, 0x24(%rax) movups %xmm1, 0x30(%rax) movl $0x1, (%rax) leaq 0x2a00(%rip), %rcx # 0x13a92 movq %rcx, 0x8(%rax) andq $0x0, 0x8(%rsp) movq 0x1bf55(%rip), %rcx # 0x2cff8 andl $0x0, (%rsp) movq %rcx, 0x10(%rsp) leaq 0x20(%rsp), %rdi movq %rbp, %rsi movq %r12, %rdx movq %r14, %rcx xorl %r8d, %r8d movq %rax, %r9 callq 0xf6e0 leaq 0x38(%rsp), %rdi movq %r13, %rsi leaq 0x28(%rsp), %rdx callq 0x14584 leaq 0x38(%rsp), %rdi leaq 0x20(%rsp), %rsi callq 0xfe50 leaq 0x38(%rsp), %rdi callq 0xf400 leaq 0x20(%rsp), %rdi callq 0xf400 movl %r15d, %ebp movq 0x28(%rsp), %rax movl 0x34(%rsp), %ecx movl %ecx, (%rbx) movl %ebp, 0x4(%rbx) movq %rax, 0x8(%rbx) movq %r14, 0x10(%rbx) movq %rbx, %rax addq $0x68, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x11129 jmp 0x11138 movq %rax, %rbx leaq 0x38(%rsp), %rdi callq 0xf400 jmp 0x1113b movq %rax, %rbx leaq 0x20(%rsp), %rdi callq 0xf400 movq %rbx, %rdi callq 0xf410 nop
_ZNK9qdevtools16QObjectTreeModel5indexEiiRK11QModelIndex: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 68h mov r12, r8 mov ebp, ecx mov r13d, edx mov r14, rsi mov rbx, rdi mov rdi, rsi; this mov esi, edx; int mov edx, ecx; int mov rcx, r8; QModelIndex * call __ZNK18QAbstractItemModel8hasIndexEiiRK11QModelIndex; QAbstractItemModel::hasIndex(int,int,QModelIndex const&) test al, al jz short loc_10F1D mov rdi, r12; this call _ZNK11QModelIndex7isValidEv; QModelIndex::isValid(void) test al, al jz short loc_10F2D mov r15, [r12+8] test r15, r15 jz short loc_10F2D mov rax, [r15+8] add rax, 20h ; ' ' jmp short loc_10F34 loc_10F1D: or qword ptr [rbx], 0FFFFFFFFFFFFFFFFh xorps xmm0, xmm0 movups xmmword ptr [rbx+8], xmm0 jmp loc_11113 loc_10F2D: lea rax, [r14+18h] xor r15d, r15d loc_10F34: mov [rsp+98h+var_64], r13d movsxd rcx, r13d mov rax, [rax] mov rax, [rax+rcx*8] lea rsi, [rsp+98h+var_70] mov [rsi], rax lea r13, [r14+28h] mov rdi, r13 call _ZNK4QMapIP7QObjectN11QMetaObject10ConnectionEE8containsERKS1_; QMap<QObject *,QMetaObject::Connection>::contains(QObject * const&) test al, al jnz loc_1100E mov [rsp+98h+var_50], ebp lea rax, [rsp+98h+var_70] mov rbp, [rax] mov rax, cs:_ZN7QObject17objectNameChangedERK7QStringNS_14QPrivateSignalE_ptr lea rcx, [rsp+98h+var_60] mov [rcx], rax and qword ptr [rcx+8], 0 push 28h ; '(' pop rdi; unsigned __int64 call __Znwm; operator new(ulong) mov [rax+10h], r14 mov [rax+18h], rbp mov [rax+20h], r15 mov dword ptr [rax], 1 lea rcx, _ZN9QtPrivate18QFunctorSlotObjectIZNK9qdevtools16QObjectTreeModel5indexEiiRK11QModelIndexE3$_0Li0ENS_4ListIJEEEvE4implEiPNS_15QSlotObjectBaseEP7QObjectPPvPb; QtPrivate::QFunctorSlotObject<qdevtools::QObjectTreeModel::index(int,int,QModelIndex const&)::$_0,0,QtPrivate::List<>,void>::impl(int,QtPrivate::QSlotObjectBase *,QObject *,void **,bool *) mov [rax+8], rcx and [rsp+98h+var_90], 0 mov rcx, cs:_ZN7QObject16staticMetaObjectE_ptr and [rsp+98h+var_98], 0 mov [rsp+98h+var_88], rcx lea rdi, [rsp+98h+var_78] mov rsi, rbp lea rdx, [rsp+98h+var_60] mov rcx, r14 xor r8d, r8d mov r9, rax call __ZN7QObject11connectImplEPKS_PPvS1_S3_PN9QtPrivate15QSlotObjectBaseEN2Qt14ConnectionTypeEPKiPK11QMetaObject; QObject::connectImpl(QObject const*,void **,QObject const*,void **,QtPrivate::QSlotObjectBase *,Qt::ConnectionType,int const*,QMetaObject const*) lea rdi, [rsp+98h+var_60]; this mov rsi, r13 lea rdx, [rsp+98h+var_70] call _ZNK4QMapIP7QObjectN11QMetaObject10ConnectionEEixERKS1_; QMap<QObject *,QMetaObject::Connection>::operator[](QObject * const&) lea rdi, [rsp+98h+var_60] lea rsi, [rsp+98h+var_78] call __ZN11QMetaObject10ConnectionaSERKS0_; QMetaObject::Connection::operator=(QMetaObject::Connection const&) lea rdi, [rsp+98h+var_60]; this call __ZN11QMetaObject10ConnectionD1Ev; QMetaObject::Connection::~Connection() lea rdi, [rsp+98h+var_78]; this call __ZN11QMetaObject10ConnectionD1Ev; QMetaObject::Connection::~Connection() mov ebp, [rsp+98h+var_50] loc_1100E: lea r13, [r14+30h] lea rsi, [rsp+98h+var_70] mov rdi, r13 call _ZNK4QMapIP7QObjectN11QMetaObject10ConnectionEE8containsERKS1_; QMap<QObject *,QMetaObject::Connection>::contains(QObject * const&) test al, al jnz loc_110FD mov r15d, ebp lea rax, [rsp+98h+var_70] mov rbp, [rax] movups xmm0, xmmword ptr [r12] movups [rsp+98h+var_48], xmm0 mov rax, [r12+10h] mov [rsp+98h+var_38], rax mov rax, cs:_ZN7QObject9destroyedEPS__ptr lea r12, [rsp+98h+var_60] mov [r12], rax and qword ptr [r12+8], 0 push 40h ; '@' pop rdi; unsigned __int64 call __Znwm; operator new(ulong) mov [rax+10h], r14 mov [rax+18h], rbp mov ecx, [rsp+98h+var_64] mov [rax+20h], ecx movups xmm0, xmmword ptr [rsp+4Ch] movups xmm1, [rsp+98h+var_48+8] movups xmmword ptr [rax+24h], xmm0 movups xmmword ptr [rax+30h], xmm1 mov dword ptr [rax], 1 lea rcx, _ZN9QtPrivate18QFunctorSlotObjectIZNK9qdevtools16QObjectTreeModel5indexEiiRK11QModelIndexE3$_1Li0ENS_4ListIJEEEvE4implEiPNS_15QSlotObjectBaseEP7QObjectPPvPb; QtPrivate::QFunctorSlotObject<qdevtools::QObjectTreeModel::index(int,int,QModelIndex const&)::$_1,0,QtPrivate::List<>,void>::impl(int,QtPrivate::QSlotObjectBase *,QObject *,void **,bool *) mov [rax+8], rcx and [rsp+98h+var_90], 0 mov rcx, cs:_ZN7QObject16staticMetaObjectE_ptr and [rsp+98h+var_98], 0 mov [rsp+98h+var_88], rcx lea rdi, [rsp+98h+var_78] mov rsi, rbp mov rdx, r12 mov rcx, r14 xor r8d, r8d mov r9, rax call __ZN7QObject11connectImplEPKS_PPvS1_S3_PN9QtPrivate15QSlotObjectBaseEN2Qt14ConnectionTypeEPKiPK11QMetaObject; QObject::connectImpl(QObject const*,void **,QObject const*,void **,QtPrivate::QSlotObjectBase *,Qt::ConnectionType,int const*,QMetaObject const*) lea rdi, [rsp+98h+var_60]; this mov rsi, r13 lea rdx, [rsp+98h+var_70] call _ZNK4QMapIP7QObjectN11QMetaObject10ConnectionEEixERKS1_; QMap<QObject *,QMetaObject::Connection>::operator[](QObject * const&) lea rdi, [rsp+98h+var_60] lea rsi, [rsp+98h+var_78] call __ZN11QMetaObject10ConnectionaSERKS0_; QMetaObject::Connection::operator=(QMetaObject::Connection const&) lea rdi, [rsp+98h+var_60]; this call __ZN11QMetaObject10ConnectionD1Ev; QMetaObject::Connection::~Connection() lea rdi, [rsp+98h+var_78]; this call __ZN11QMetaObject10ConnectionD1Ev; QMetaObject::Connection::~Connection() mov ebp, r15d loc_110FD: mov rax, [rsp+98h+var_70] mov ecx, [rsp+98h+var_64] mov [rbx], ecx mov [rbx+4], ebp mov [rbx+8], rax mov [rbx+10h], r14 loc_11113: mov rax, rbx add rsp, 68h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_11129 jmp short loc_11138 loc_11129: mov rbx, rax lea rdi, [rsp+arg_30]; this call __ZN11QMetaObject10ConnectionD1Ev; QMetaObject::Connection::~Connection() jmp short loc_1113B loc_11138: mov rbx, rax loc_1113B: lea rdi, [rsp+arg_18]; this call __ZN11QMetaObject10ConnectionD1Ev; QMetaObject::Connection::~Connection() mov rdi, rbx call __Unwind_Resume
qdevtools::QObjectTreeModel * qdevtools::QObjectTreeModel::index( qdevtools::QObjectTreeModel *this, QAbstractItemModel *a2, int a3, const QModelIndex *a4, QModelIndex *a5) { int v6; // ebp long long v8; // r15 _QWORD *v9; // rax long long v10; // rbp long long v11; // rax int v12; // r15d long long v13; // rbp long long v14; // rax __int128 v15; // xmm1 long long v16; // rax _BYTE v18[8]; // [rsp+20h] [rbp-78h] BYREF long long v19; // [rsp+28h] [rbp-70h] int v20; // [rsp+34h] [rbp-64h] _QWORD (**v21)(QObject *__hidden, QObject *); // [rsp+38h] [rbp-60h] BYREF long long v22; // [rsp+40h] [rbp-58h] int v23; // [rsp+48h] [rbp-50h] _BYTE v24[28]; // [rsp+4Ch] [rbp-4Ch] v6 = (int)a4; if ( (unsigned __int8)QAbstractItemModel::hasIndex(a2, a3, (int)a4, a5) ) { if ( (unsigned __int8)QModelIndex::isValid(a5) && (v8 = *((_QWORD *)a5 + 1)) != 0 ) { v9 = (_QWORD *)(*(_QWORD *)(v8 + 8) + 32LL); } else { v9 = (_QWORD *)((char *)a2 + 24); v8 = 0LL; } v20 = a3; v19 = *(_QWORD *)(*v9 + 8LL * a3); if ( !(unsigned __int8)QMap<QObject *,QMetaObject::Connection>::contains((char *)a2 + 40) ) { v23 = v6; v10 = v19; v21 = (_QWORD (**)(QObject *__hidden, QObject *))&QObject::objectNameChanged; v22 = 0LL; v11 = operator new(0x28uLL); *(_QWORD *)(v11 + 16) = a2; *(_QWORD *)(v11 + 24) = v10; *(_QWORD *)(v11 + 32) = v8; *(_DWORD *)v11 = 1; *(_QWORD *)(v11 + 8) = &QtPrivate::QFunctorSlotObject<qdevtools::QObjectTreeModel::index(int,int,QModelIndex const&)::$_0,0,QtPrivate::List<>,void>::impl; QObject::connectImpl(v18, v10, &v21, a2, 0LL, v11, 0, 0LL, &QObject::staticMetaObject); QMap<QObject *,QMetaObject::Connection>::operator[]((QMetaObject::Connection *)&v21); QMetaObject::Connection::operator=(&v21, v18); QMetaObject::Connection::~Connection((QMetaObject::Connection *)&v21); QMetaObject::Connection::~Connection((QMetaObject::Connection *)v18); v6 = v23; } if ( !(unsigned __int8)QMap<QObject *,QMetaObject::Connection>::contains((char *)a2 + 48) ) { v12 = v6; v13 = v19; *(_OWORD *)&v24[4] = *(_OWORD *)a5; *(_QWORD *)&v24[20] = *((_QWORD *)a5 + 2); v21 = &QObject::destroyed; v22 = 0LL; v14 = operator new(0x40uLL); *(_QWORD *)(v14 + 16) = a2; *(_QWORD *)(v14 + 24) = v13; *(_DWORD *)(v14 + 32) = v20; v15 = *(_OWORD *)&v24[12]; *(_OWORD *)(v14 + 36) = *(_OWORD *)v24; *(_OWORD *)(v14 + 48) = v15; *(_DWORD *)v14 = 1; *(_QWORD *)(v14 + 8) = &QtPrivate::QFunctorSlotObject<qdevtools::QObjectTreeModel::index(int,int,QModelIndex const&)::$_1,0,QtPrivate::List<>,void>::impl; QObject::connectImpl(v18, v13, &v21, a2, 0LL, v14, 0, 0LL, &QObject::staticMetaObject); QMap<QObject *,QMetaObject::Connection>::operator[]((QMetaObject::Connection *)&v21); QMetaObject::Connection::operator=(&v21, v18); QMetaObject::Connection::~Connection((QMetaObject::Connection *)&v21); QMetaObject::Connection::~Connection((QMetaObject::Connection *)v18); v6 = v12; } v16 = v19; *(_DWORD *)this = v20; *((_DWORD *)this + 1) = v6; *((_QWORD *)this + 1) = v16; *((_QWORD *)this + 2) = a2; } else { *(_QWORD *)this = -1LL; *(_OWORD *)((char *)this + 8) = 0LL; } return this; }
index: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x68 MOV R12,R8 MOV EBP,ECX MOV R13D,EDX MOV R14,RSI MOV RBX,RDI MOV RDI,RSI MOV ESI,EDX MOV EDX,ECX MOV RCX,R8 CALL 0x0010fee0 TEST AL,AL JZ 0x00110f1d MOV RDI,R12 CALL 0x00114546 TEST AL,AL JZ 0x00110f2d MOV R15,qword ptr [R12 + 0x8] TEST R15,R15 JZ 0x00110f2d MOV RAX,qword ptr [R15 + 0x8] ADD RAX,0x20 JMP 0x00110f34 LAB_00110f1d: OR qword ptr [RBX],-0x1 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0x8],XMM0 JMP 0x00111113 LAB_00110f2d: LEA RAX,[R14 + 0x18] XOR R15D,R15D LAB_00110f34: MOV dword ptr [RSP + 0x34],R13D MOVSXD RCX,R13D MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + RCX*0x8] LEA RSI,[RSP + 0x28] MOV qword ptr [RSI],RAX LEA R13,[R14 + 0x28] MOV RDI,R13 CALL 0x0011455c TEST AL,AL JNZ 0x0011100e MOV dword ptr [RSP + 0x48],EBP LEA RAX,[RSP + 0x28] MOV RBP,qword ptr [RAX] MOV RAX,qword ptr [0x0012cf60] LEA RCX,[RSP + 0x38] MOV qword ptr [RCX],RAX AND qword ptr [RCX + 0x8],0x0 PUSH 0x28 POP RDI CALL 0x0010f920 MOV qword ptr [RAX + 0x10],R14 MOV qword ptr [RAX + 0x18],RBP MOV qword ptr [RAX + 0x20],R15 MOV dword ptr [RAX],0x1 LEA RCX,[0x1139c6] MOV qword ptr [RAX + 0x8],RCX AND qword ptr [RSP + 0x8],0x0 MOV RCX,qword ptr [0x0012cff8] AND dword ptr [RSP],0x0 MOV qword ptr [RSP + 0x10],RCX LEA RDI,[RSP + 0x20] MOV RSI,RBP LEA RDX,[RSP + 0x38] MOV RCX,R14 XOR R8D,R8D MOV R9,RAX CALL 0x0010f6e0 LAB_00110fd5: LEA RDI,[RSP + 0x38] MOV RSI,R13 LEA RDX,[RSP + 0x28] CALL 0x00114584 LAB_00110fe7: LEA RDI,[RSP + 0x38] LEA RSI,[RSP + 0x20] CALL 0x0010fe50 LAB_00110ff6: LEA RDI,[RSP + 0x38] CALL 0x0010f400 LEA RDI,[RSP + 0x20] CALL 0x0010f400 MOV EBP,dword ptr [RSP + 0x48] LAB_0011100e: LEA R13,[R14 + 0x30] LEA RSI,[RSP + 0x28] MOV RDI,R13 CALL 0x0011455c TEST AL,AL JNZ 0x001110fd MOV R15D,EBP LEA RAX,[RSP + 0x28] MOV RBP,qword ptr [RAX] MOVUPS XMM0,xmmword ptr [R12] MOVUPS xmmword ptr [RSP + 0x50],XMM0 MOV RAX,qword ptr [R12 + 0x10] MOV qword ptr [RSP + 0x60],RAX MOV RAX,qword ptr [0x0012cf20] LEA R12,[RSP + 0x38] MOV qword ptr [R12],RAX AND qword ptr [R12 + 0x8],0x0 PUSH 0x40 POP RDI CALL 0x0010f920 MOV qword ptr [RAX + 0x10],R14 MOV qword ptr [RAX + 0x18],RBP MOV ECX,dword ptr [RSP + 0x34] MOV dword ptr [RAX + 0x20],ECX MOVUPS XMM0,xmmword ptr [RSP + 0x4c] MOVUPS XMM1,xmmword ptr [RSP + 0x58] MOVUPS xmmword ptr [RAX + 0x24],XMM0 MOVUPS xmmword ptr [RAX + 0x30],XMM1 MOV dword ptr [RAX],0x1 LEA RCX,[0x113a92] MOV qword ptr [RAX + 0x8],RCX AND qword ptr [RSP + 0x8],0x0 MOV RCX,qword ptr [0x0012cff8] AND dword ptr [RSP],0x0 MOV qword ptr [RSP + 0x10],RCX LEA RDI,[RSP + 0x20] MOV RSI,RBP MOV RDX,R12 MOV RCX,R14 XOR R8D,R8D MOV R9,RAX CALL 0x0010f6e0 LAB_001110c5: LEA RDI,[RSP + 0x38] MOV RSI,R13 LEA RDX,[RSP + 0x28] CALL 0x00114584 LAB_001110d7: LEA RDI,[RSP + 0x38] LEA RSI,[RSP + 0x20] CALL 0x0010fe50 LAB_001110e6: LEA RDI,[RSP + 0x38] CALL 0x0010f400 LEA RDI,[RSP + 0x20] CALL 0x0010f400 MOV EBP,R15D LAB_001110fd: MOV RAX,qword ptr [RSP + 0x28] MOV ECX,dword ptr [RSP + 0x34] MOV dword ptr [RBX],ECX MOV dword ptr [RBX + 0x4],EBP MOV qword ptr [RBX + 0x8],RAX MOV qword ptr [RBX + 0x10],R14 LAB_00111113: MOV RAX,RBX ADD RSP,0x68 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* qdevtools::QObjectTreeModel::index(int, int, QModelIndex const&) const */ int * qdevtools::QObjectTreeModel::index(int param_1,int param_2,QModelIndex *param_3) { QObject *pQVar1; char cVar2; long *plVar3; int4 *puVar4; uint in_ECX; int iVar5; int4 in_register_00000034; long lVar6; int4 in_register_0000003c; int *piVar7; QModelIndex *in_R8; long lVar8; int1 local_78 [8]; QObject *local_70; int local_64; int *local_60; int8 local_58; uint local_50; int4 uStack_4c; int8 local_48; int8 uStack_40; int8 local_38; piVar7 = (int *)CONCAT44(in_register_0000003c,param_1); lVar6 = CONCAT44(in_register_00000034,param_2); iVar5 = (int)param_3; cVar2 = QAbstractItemModel::hasIndex(param_2,iVar5,(QModelIndex *)(ulong)in_ECX); if (cVar2 == '\0') { piVar7[0] = -1; piVar7[1] = -1; piVar7[2] = 0; piVar7[3] = 0; piVar7[4] = 0; piVar7[5] = 0; } else { cVar2 = QModelIndex::isValid(in_R8); if ((cVar2 == '\0') || (lVar8 = *(long *)(in_R8 + 8), lVar8 == 0)) { plVar3 = (long *)(lVar6 + 0x18); lVar8 = 0; } else { plVar3 = (long *)(*(long *)(lVar8 + 8) + 0x20); } local_70 = *(QObject **)(*plVar3 + (long)iVar5 * 8); local_64 = iVar5; cVar2 = QMap<QObject*,QMetaObject::Connection>::contains ((QMap<QObject*,QMetaObject::Connection> *)(lVar6 + 0x28),&local_70); pQVar1 = local_70; if (cVar2 == '\0') { local_60 = PTR_objectNameChanged_0012cf60; local_58 = 0; local_50 = in_ECX; puVar4 = (int4 *)operator_new(0x28); *(long *)(puVar4 + 4) = lVar6; *(QObject **)(puVar4 + 6) = pQVar1; *(long *)(puVar4 + 8) = lVar8; *puVar4 = 1; *(code **)(puVar4 + 2) = QtPrivate:: QFunctorSlotObject<qdevtools::QObjectTreeModel::index(int,int,QModelIndex_const&)const::$_0,0,QtPrivate::List<>,void> ::impl; QObject::connectImpl (local_78,pQVar1,&local_60,lVar6,0,puVar4,0,0,PTR_staticMetaObject_0012cff8); /* try { // try from 00110fd5 to 00110fe6 has its CatchHandler @ 00111138 */ QMap<QObject*,QMetaObject::Connection>::operator[] ((QMap<QObject*,QMetaObject::Connection> *)&local_60,(QObject **)(lVar6 + 0x28)); /* try { // try from 00110fe7 to 00110ff5 has its CatchHandler @ 00111129 */ QMetaObject::Connection::operator=(&local_60,local_78); QMetaObject::Connection::~Connection(&local_60); QMetaObject::Connection::~Connection(local_78); in_ECX = local_50; } cVar2 = QMap<QObject*,QMetaObject::Connection>::contains ((QMap<QObject*,QMetaObject::Connection> *)(lVar6 + 0x30),&local_70); pQVar1 = local_70; if (cVar2 == '\0') { local_48 = *(int8 *)in_R8; uStack_40 = *(int8 *)(in_R8 + 8); local_38 = *(int8 *)(in_R8 + 0x10); local_60 = PTR_destroyed_0012cf20; local_58 = 0; puVar4 = (int4 *)operator_new(0x40); *(long *)(puVar4 + 4) = lVar6; *(QObject **)(puVar4 + 6) = pQVar1; puVar4[8] = local_64; puVar4[9] = uStack_4c; puVar4[10] = (int4)local_48; puVar4[0xb] = local_48._4_4_; puVar4[0xc] = (int4)uStack_40; puVar4[0xc] = (int4)uStack_40; puVar4[0xd] = uStack_40._4_4_; puVar4[0xe] = (int4)local_38; puVar4[0xf] = local_38._4_4_; *puVar4 = 1; *(code **)(puVar4 + 2) = QtPrivate:: QFunctorSlotObject<qdevtools::QObjectTreeModel::index(int,int,QModelIndex_const&)const::$_1,0,QtPrivate::List<>,void> ::impl; QObject::connectImpl (local_78,pQVar1,&local_60,lVar6,0,puVar4,0,0,PTR_staticMetaObject_0012cff8); /* try { // try from 001110c5 to 001110d6 has its CatchHandler @ 00111127 */ QMap<QObject*,QMetaObject::Connection>::operator[] ((QMap<QObject*,QMetaObject::Connection> *)&local_60,(QObject **)(lVar6 + 0x30)); /* try { // try from 001110d7 to 001110e5 has its CatchHandler @ 00111125 */ QMetaObject::Connection::operator=(&local_60,local_78); QMetaObject::Connection::~Connection(&local_60); QMetaObject::Connection::~Connection(local_78); } *piVar7 = local_64; piVar7[1] = in_ECX; *(QObject **)(piVar7 + 2) = local_70; *(long *)(piVar7 + 4) = lVar6; } return piVar7; }
65,262
qdevtools::QObjectTreeModel::index(int, int, QModelIndex const&) const
HuaiminNotSleepYet[P]QDevTools/qdevtools.cpp
QModelIndex QObjectTreeModel::index(int row, int column, const QModelIndex& parent) const { if (!hasIndex(row, column, parent)) return QModelIndex(); QObject* parentObject = parent.isValid() ? static_cast<QObject*>(parent.internalPointer()) : nullptr; QObject* object = parentObject ? parentObject->children().at(row) : root_.at(row); if (!connections1_.contains(object)) { auto conn = connect(object, &QObject::objectNameChanged, this, [self = const_cast<QObjectTreeModel*>(this), object, parentObject]() { auto row = parentObject ? parentObject->children().indexOf(object) : self->root_.indexOf(object); auto index = self->createIndex(row, 1, object); emit self->dataChanged(index, index, {Qt::DisplayRole}); }); connections1_[object] = conn; } if (!connections2_.contains(object)) { auto conn = connect(object, &QObject::destroyed, this, [self = const_cast<QObjectTreeModel*>(this), object, row, parent]() { self->beginRemoveRows(parent, row, row); self->connections1_.remove(object); self->connections2_.remove(object); self->endRemoveRows(); }); connections2_[object] = conn; } // TODO: update when add child return createIndex(row, column, object); }
O3
cpp
qdevtools::QObjectTreeModel::index(int, int, QModelIndex const&) const: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %r8, %r12 movl %ecx, %ebp movl %edx, %r13d movq %rsi, %r14 movq %rdi, %rbx movq %rsi, %rdi movl %edx, %esi movl %ecx, %edx movq %r8, %rcx callq 0xfeb0 testb %al, %al je 0x117a6 cmpl $0x0, (%r12) js 0x117b9 cmpl $0x0, 0x4(%r12) js 0x117b9 cmpq $0x0, 0x10(%r12) je 0x117b9 movq 0x8(%r12), %r15 testq %r15, %r15 je 0x117b9 movq 0x8(%r15), %rax addq $0x20, %rax jmp 0x117c0 movq $-0x1, (%rbx) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%rbx) jmp 0x1199b leaq 0x18(%r14), %rax xorl %r15d, %r15d movl %r13d, 0x14(%rsp) movslq %r13d, %rcx movq (%rax), %rax movq (%rax,%rcx,8), %rax leaq 0x8(%rsp), %rsi movq %rax, (%rsi) leaq 0x28(%r14), %r13 movq %r13, %rdi callq 0x15cd2 testb %al, %al movl %ebp, 0x10(%rsp) jne 0x11899 leaq 0x8(%rsp), %rax movq (%rax), %rbp movq 0x1b762(%rip), %rax # 0x2cf60 leaq 0x18(%rsp), %rcx movq %rax, (%rcx) xorl %eax, %eax movq %rax, 0x8(%rcx) movl $0x28, %edi callq 0xf910 movq %r14, 0x10(%rax) movq %rbp, 0x18(%rax) movq %r15, 0x20(%rax) movl $0x1, (%rax) leaq 0x3667(%rip), %rcx # 0x14e96 movq %rcx, 0x8(%rax) subq $0x8, %rsp movq 0x1b7ba(%rip), %r10 # 0x2cff8 leaq 0x8(%rsp), %rdi movq %rbp, %rsi leaq 0x20(%rsp), %rdx movq %r14, %rcx xorl %r8d, %r8d movq %rax, %r9 pushq %r10 xorl %eax, %eax pushq %rax pushq $0x0 callq 0xf6e0 addq $0x20, %rsp leaq 0x18(%rsp), %rdi movq %r13, %rsi leaq 0x8(%rsp), %rdx callq 0x15d26 leaq 0x18(%rsp), %rdi movq %rsp, %rsi callq 0xfe20 leaq 0x18(%rsp), %rdi callq 0xf400 movq %rsp, %rdi callq 0xf400 movl 0x10(%rsp), %ebp leaq 0x30(%r14), %r13 leaq 0x8(%rsp), %rsi movq %r13, %rdi callq 0x15cd2 testb %al, %al jne 0x11985 leaq 0x8(%rsp), %rax movq (%rax), %rbp movups (%r12), %xmm0 movups %xmm0, 0x30(%rsp) movq 0x10(%r12), %rax movq %rax, 0x40(%rsp) movq 0x1b64b(%rip), %rax # 0x2cf20 leaq 0x18(%rsp), %r12 movq %rax, (%r12) xorl %r15d, %r15d movq %r15, 0x8(%r12) movl $0x40, %edi callq 0xf910 movq %r14, 0x10(%rax) movq %rbp, 0x18(%rax) movl 0x14(%rsp), %ecx movl %ecx, 0x20(%rax) movups 0x2c(%rsp), %xmm0 movups 0x38(%rsp), %xmm1 movups %xmm0, 0x24(%rax) movups %xmm1, 0x30(%rax) movl $0x1, (%rax) leaq 0x36e8(%rip), %rcx # 0x15006 movq %rcx, 0x8(%rax) subq $0x8, %rsp movq 0x1b6cb(%rip), %r10 # 0x2cff8 leaq 0x8(%rsp), %rdi movq %rbp, %rsi movq %r12, %rdx movq %r14, %rcx xorl %r8d, %r8d movq %rax, %r9 pushq %r10 pushq %r15 pushq $0x0 callq 0xf6e0 addq $0x20, %rsp leaq 0x18(%rsp), %rdi movq %r13, %rsi leaq 0x8(%rsp), %rdx callq 0x15d26 leaq 0x18(%rsp), %rdi movq %rsp, %rsi callq 0xfe20 leaq 0x18(%rsp), %rdi callq 0xf400 movq %rsp, %rdi callq 0xf400 movl 0x10(%rsp), %ebp movq 0x8(%rsp), %rax movl 0x14(%rsp), %ecx movl %ecx, (%rbx) movl %ebp, 0x4(%rbx) movq %rax, 0x8(%rbx) movq %r14, 0x10(%rbx) movq %rbx, %rax addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq 0x18(%rsp), %rdi callq 0xf400 jmp 0x119d3 movq %rax, %rbx jmp 0x119d3 movq %rax, %rbx leaq 0x18(%rsp), %rdi callq 0xf400 jmp 0x119d3 movq %rax, %rbx movq %rsp, %rdi callq 0xf400 movq %rbx, %rdi callq 0xf410 nop
_ZNK9qdevtools16QObjectTreeModel5indexEiiRK11QModelIndex: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h mov r12, r8 mov ebp, ecx mov r13d, edx mov r14, rsi mov rbx, rdi mov rdi, rsi mov esi, edx mov edx, ecx mov rcx, r8 call __ZNK18QAbstractItemModel8hasIndexEiiRK11QModelIndex; QAbstractItemModel::hasIndex(int,int,QModelIndex const&) test al, al jz short loc_117A6 cmp dword ptr [r12], 0 js short loc_117B9 cmp dword ptr [r12+4], 0 js short loc_117B9 cmp qword ptr [r12+10h], 0 jz short loc_117B9 mov r15, [r12+8] test r15, r15 jz short loc_117B9 mov rax, [r15+8] add rax, 20h ; ' ' jmp short loc_117C0 loc_117A6: mov qword ptr [rbx], 0FFFFFFFFFFFFFFFFh xorps xmm0, xmm0 movups xmmword ptr [rbx+8], xmm0 jmp loc_1199B loc_117B9: lea rax, [r14+18h] xor r15d, r15d loc_117C0: mov [rsp+78h+var_64], r13d movsxd rcx, r13d mov rax, [rax] mov rax, [rax+rcx*8] lea rsi, [rsp+78h+var_70] mov [rsi], rax lea r13, [r14+28h] mov rdi, r13 call _ZNK4QMapIP7QObjectN11QMetaObject10ConnectionEE8containsERKS1_; QMap<QObject *,QMetaObject::Connection>::contains(QObject * const&) test al, al mov [rsp+78h+var_68], ebp jnz loc_11899 lea rax, [rsp+78h+var_70] mov rbp, [rax] mov rax, cs:_ZN7QObject17objectNameChangedERK7QStringNS_14QPrivateSignalE_ptr lea rcx, [rsp+78h+var_60] mov [rcx], rax xor eax, eax mov [rcx+8], rax mov edi, 28h ; '('; unsigned __int64 call __Znwm; operator new(ulong) mov [rax+10h], r14 mov [rax+18h], rbp mov [rax+20h], r15 mov dword ptr [rax], 1 lea rcx, _ZN9QtPrivate18QFunctorSlotObjectIZNK9qdevtools16QObjectTreeModel5indexEiiRK11QModelIndexE3$_0Li0ENS_4ListIJEEEvE4implEiPNS_15QSlotObjectBaseEP7QObjectPPvPb; QtPrivate::QFunctorSlotObject<qdevtools::QObjectTreeModel::index(int,int,QModelIndex const&)::$_0,0,QtPrivate::List<>,void>::impl(int,QtPrivate::QSlotObjectBase *,QObject *,void **,bool *) mov [rax+8], rcx sub rsp, 8 mov r10, cs:_ZN7QObject16staticMetaObjectE_ptr lea rdi, [rsp+80h+var_78] mov rsi, rbp lea rdx, [rsp+80h+var_60] mov rcx, r14 xor r8d, r8d mov r9, rax push r10 xor eax, eax push rax push 0 call __ZN7QObject11connectImplEPKS_PPvS1_S3_PN9QtPrivate15QSlotObjectBaseEN2Qt14ConnectionTypeEPKiPK11QMetaObject; QObject::connectImpl(QObject const*,void **,QObject const*,void **,QtPrivate::QSlotObjectBase *,Qt::ConnectionType,int const*,QMetaObject const*) add rsp, 20h lea rdi, [rsp+78h+var_60]; this mov rsi, r13 lea rdx, [rsp+78h+var_70] call _ZNK4QMapIP7QObjectN11QMetaObject10ConnectionEEixERKS1_; QMap<QObject *,QMetaObject::Connection>::operator[](QObject * const&) lea rdi, [rsp+78h+var_60] mov rsi, rsp call __ZN11QMetaObject10ConnectionaSERKS0_; QMetaObject::Connection::operator=(QMetaObject::Connection const&) lea rdi, [rsp+78h+var_60]; this call __ZN11QMetaObject10ConnectionD1Ev; QMetaObject::Connection::~Connection() mov rdi, rsp; this call __ZN11QMetaObject10ConnectionD1Ev; QMetaObject::Connection::~Connection() mov ebp, [rsp+78h+var_68] loc_11899: lea r13, [r14+30h] lea rsi, [rsp+78h+var_70] mov rdi, r13 call _ZNK4QMapIP7QObjectN11QMetaObject10ConnectionEE8containsERKS1_; QMap<QObject *,QMetaObject::Connection>::contains(QObject * const&) test al, al jnz loc_11985 lea rax, [rsp+78h+var_70] mov rbp, [rax] movups xmm0, xmmword ptr [r12] movups [rsp+78h+var_48], xmm0 mov rax, [r12+10h] mov [rsp+78h+var_38], rax mov rax, cs:_ZN7QObject9destroyedEPS__ptr lea r12, [rsp+78h+var_60] mov [r12], rax xor r15d, r15d mov [r12+8], r15 mov edi, 40h ; '@'; unsigned __int64 call __Znwm; operator new(ulong) mov [rax+10h], r14 mov [rax+18h], rbp mov ecx, [rsp+78h+var_64] mov [rax+20h], ecx movups xmm0, xmmword ptr [rsp+2Ch] movups xmm1, [rsp+78h+var_48+8] movups xmmword ptr [rax+24h], xmm0 movups xmmword ptr [rax+30h], xmm1 mov dword ptr [rax], 1 lea rcx, _ZN9QtPrivate18QFunctorSlotObjectIZNK9qdevtools16QObjectTreeModel5indexEiiRK11QModelIndexE3$_1Li0ENS_4ListIJEEEvE4implEiPNS_15QSlotObjectBaseEP7QObjectPPvPb; QtPrivate::QFunctorSlotObject<qdevtools::QObjectTreeModel::index(int,int,QModelIndex const&)::$_1,0,QtPrivate::List<>,void>::impl(int,QtPrivate::QSlotObjectBase *,QObject *,void **,bool *) mov [rax+8], rcx sub rsp, 8 mov r10, cs:_ZN7QObject16staticMetaObjectE_ptr lea rdi, [rsp+80h+var_78] mov rsi, rbp mov rdx, r12 mov rcx, r14 xor r8d, r8d mov r9, rax push r10 push r15 push 0 call __ZN7QObject11connectImplEPKS_PPvS1_S3_PN9QtPrivate15QSlotObjectBaseEN2Qt14ConnectionTypeEPKiPK11QMetaObject; QObject::connectImpl(QObject const*,void **,QObject const*,void **,QtPrivate::QSlotObjectBase *,Qt::ConnectionType,int const*,QMetaObject const*) add rsp, 20h lea rdi, [rsp+78h+var_60]; this mov rsi, r13 lea rdx, [rsp+78h+var_70] call _ZNK4QMapIP7QObjectN11QMetaObject10ConnectionEEixERKS1_; QMap<QObject *,QMetaObject::Connection>::operator[](QObject * const&) lea rdi, [rsp+78h+var_60] mov rsi, rsp call __ZN11QMetaObject10ConnectionaSERKS0_; QMetaObject::Connection::operator=(QMetaObject::Connection const&) lea rdi, [rsp+78h+var_60]; this call __ZN11QMetaObject10ConnectionD1Ev; QMetaObject::Connection::~Connection() mov rdi, rsp; this call __ZN11QMetaObject10ConnectionD1Ev; QMetaObject::Connection::~Connection() mov ebp, [rsp+78h+var_68] loc_11985: mov rax, [rsp+78h+var_70] mov ecx, [rsp+78h+var_64] mov [rbx], ecx mov [rbx+4], ebp mov [rbx+8], rax mov [rbx+10h], r14 loc_1199B: mov rax, rbx add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax lea rdi, [rsp+arg_10]; this call __ZN11QMetaObject10ConnectionD1Ev; QMetaObject::Connection::~Connection() jmp short loc_119D3 mov rbx, rax jmp short loc_119D3 mov rbx, rax lea rdi, [rsp+arg_10]; this call __ZN11QMetaObject10ConnectionD1Ev; QMetaObject::Connection::~Connection() jmp short loc_119D3 mov rbx, rax loc_119D3: mov rdi, rsp; this call __ZN11QMetaObject10ConnectionD1Ev; QMetaObject::Connection::~Connection() mov rdi, rbx call __Unwind_Resume
long long qdevtools::QObjectTreeModel::index( long long a1, long long a2, unsigned int a3, unsigned int a4, long long a5) { unsigned int v6; // ebp long long v8; // r15 _QWORD *v9; // rax long long v10; // rbp long long v11; // rax long long v12; // rbp long long v13; // rax __int128 v14; // xmm1 long long v15; // rax _BYTE v17[8]; // [rsp+0h] [rbp-78h] BYREF long long v18; // [rsp+8h] [rbp-70h] unsigned int v19; // [rsp+10h] [rbp-68h] unsigned int v20; // [rsp+14h] [rbp-64h] _QWORD (**v21)(QObject *__hidden, QObject *); // [rsp+18h] [rbp-60h] BYREF long long v22; // [rsp+20h] [rbp-58h] _BYTE v23[28]; // [rsp+2Ch] [rbp-4Ch] v6 = a4; if ( (unsigned __int8)QAbstractItemModel::hasIndex(a2, a3, a4, a5) ) { if ( *(int *)a5 >= 0 && *(int *)(a5 + 4) >= 0 && *(_QWORD *)(a5 + 16) && (v8 = *(_QWORD *)(a5 + 8)) != 0 ) { v9 = (_QWORD *)(*(_QWORD *)(v8 + 8) + 32LL); } else { v9 = (_QWORD *)(a2 + 24); v8 = 0LL; } v20 = a3; v18 = *(_QWORD *)(*v9 + 8LL * (int)a3); v19 = v6; if ( !(unsigned __int8)QMap<QObject *,QMetaObject::Connection>::contains(a2 + 40) ) { v10 = v18; v21 = (_QWORD (**)(QObject *__hidden, QObject *))&QObject::objectNameChanged; v22 = 0LL; v11 = operator new(0x28uLL); *(_QWORD *)(v11 + 16) = a2; *(_QWORD *)(v11 + 24) = v10; *(_QWORD *)(v11 + 32) = v8; *(_DWORD *)v11 = 1; *(_QWORD *)(v11 + 8) = &QtPrivate::QFunctorSlotObject<qdevtools::QObjectTreeModel::index(int,int,QModelIndex const&)::$_0,0,QtPrivate::List<>,void>::impl; QObject::connectImpl(v17, v10, &v21, a2, 0LL, v11, 0LL, 0LL, &QObject::staticMetaObject); QMap<QObject *,QMetaObject::Connection>::operator[]((QMetaObject::Connection *)&v21); QMetaObject::Connection::operator=(&v21, v17); QMetaObject::Connection::~Connection((QMetaObject::Connection *)&v21); QMetaObject::Connection::~Connection((QMetaObject::Connection *)v17); v6 = v19; } if ( !(unsigned __int8)QMap<QObject *,QMetaObject::Connection>::contains(a2 + 48) ) { v12 = v18; *(_OWORD *)&v23[4] = *(_OWORD *)a5; *(_QWORD *)&v23[20] = *(_QWORD *)(a5 + 16); v21 = &QObject::destroyed; v22 = 0LL; v13 = operator new(0x40uLL); *(_QWORD *)(v13 + 16) = a2; *(_QWORD *)(v13 + 24) = v12; *(_DWORD *)(v13 + 32) = v20; v14 = *(_OWORD *)&v23[12]; *(_OWORD *)(v13 + 36) = *(_OWORD *)v23; *(_OWORD *)(v13 + 48) = v14; *(_DWORD *)v13 = 1; *(_QWORD *)(v13 + 8) = &QtPrivate::QFunctorSlotObject<qdevtools::QObjectTreeModel::index(int,int,QModelIndex const&)::$_1,0,QtPrivate::List<>,void>::impl; QObject::connectImpl(v17, v12, &v21, a2, 0LL, v13, 0LL, 0LL, &QObject::staticMetaObject); QMap<QObject *,QMetaObject::Connection>::operator[]((QMetaObject::Connection *)&v21); QMetaObject::Connection::operator=(&v21, v17); QMetaObject::Connection::~Connection((QMetaObject::Connection *)&v21); QMetaObject::Connection::~Connection((QMetaObject::Connection *)v17); v6 = v19; } v15 = v18; *(_DWORD *)a1 = v20; *(_DWORD *)(a1 + 4) = v6; *(_QWORD *)(a1 + 8) = v15; *(_QWORD *)(a1 + 16) = a2; } else { *(_QWORD *)a1 = -1LL; *(_OWORD *)(a1 + 8) = 0LL; } return a1; }
index: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 MOV R12,R8 MOV EBP,ECX MOV R13D,EDX MOV R14,RSI MOV RBX,RDI MOV RDI,RSI MOV ESI,EDX MOV EDX,ECX MOV RCX,R8 CALL 0x0010feb0 TEST AL,AL JZ 0x001117a6 CMP dword ptr [R12],0x0 JS 0x001117b9 CMP dword ptr [R12 + 0x4],0x0 JS 0x001117b9 CMP qword ptr [R12 + 0x10],0x0 JZ 0x001117b9 MOV R15,qword ptr [R12 + 0x8] TEST R15,R15 JZ 0x001117b9 MOV RAX,qword ptr [R15 + 0x8] ADD RAX,0x20 JMP 0x001117c0 LAB_001117a6: MOV qword ptr [RBX],-0x1 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0x8],XMM0 JMP 0x0011199b LAB_001117b9: LEA RAX,[R14 + 0x18] XOR R15D,R15D LAB_001117c0: MOV dword ptr [RSP + 0x14],R13D MOVSXD RCX,R13D MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + RCX*0x8] LEA RSI,[RSP + 0x8] MOV qword ptr [RSI],RAX LEA R13,[R14 + 0x28] MOV RDI,R13 CALL 0x00115cd2 TEST AL,AL MOV dword ptr [RSP + 0x10],EBP JNZ 0x00111899 LEA RAX,[RSP + 0x8] MOV RBP,qword ptr [RAX] MOV RAX,qword ptr [0x0012cf60] LEA RCX,[RSP + 0x18] MOV qword ptr [RCX],RAX XOR EAX,EAX MOV qword ptr [RCX + 0x8],RAX MOV EDI,0x28 CALL 0x0010f910 MOV qword ptr [RAX + 0x10],R14 MOV qword ptr [RAX + 0x18],RBP MOV qword ptr [RAX + 0x20],R15 MOV dword ptr [RAX],0x1 LEA RCX,[0x114e96] MOV qword ptr [RAX + 0x8],RCX SUB RSP,0x8 MOV R10,qword ptr [0x0012cff8] LEA RDI,[RSP + 0x8] MOV RSI,RBP LEA RDX,[RSP + 0x20] MOV RCX,R14 XOR R8D,R8D MOV R9,RAX PUSH R10 XOR EAX,EAX PUSH RAX PUSH 0x0 CALL 0x0010f6e0 ADD RSP,0x20 LAB_00111864: LEA RDI,[RSP + 0x18] MOV RSI,R13 LEA RDX,[RSP + 0x8] CALL 0x00115d26 LAB_00111876: LEA RDI,[RSP + 0x18] MOV RSI,RSP CALL 0x0010fe20 LAB_00111883: LEA RDI,[RSP + 0x18] CALL 0x0010f400 MOV RDI,RSP CALL 0x0010f400 MOV EBP,dword ptr [RSP + 0x10] LAB_00111899: LEA R13,[R14 + 0x30] LEA RSI,[RSP + 0x8] MOV RDI,R13 CALL 0x00115cd2 TEST AL,AL JNZ 0x00111985 LEA RAX,[RSP + 0x8] MOV RBP,qword ptr [RAX] MOVUPS XMM0,xmmword ptr [R12] MOVUPS xmmword ptr [RSP + 0x30],XMM0 MOV RAX,qword ptr [R12 + 0x10] MOV qword ptr [RSP + 0x40],RAX MOV RAX,qword ptr [0x0012cf20] LEA R12,[RSP + 0x18] MOV qword ptr [R12],RAX XOR R15D,R15D MOV qword ptr [R12 + 0x8],R15 MOV EDI,0x40 CALL 0x0010f910 MOV qword ptr [RAX + 0x10],R14 MOV qword ptr [RAX + 0x18],RBP MOV ECX,dword ptr [RSP + 0x14] MOV dword ptr [RAX + 0x20],ECX MOVUPS XMM0,xmmword ptr [RSP + 0x2c] MOVUPS XMM1,xmmword ptr [RSP + 0x38] MOVUPS xmmword ptr [RAX + 0x24],XMM0 MOVUPS xmmword ptr [RAX + 0x30],XMM1 MOV dword ptr [RAX],0x1 LEA RCX,[0x115006] MOV qword ptr [RAX + 0x8],RCX SUB RSP,0x8 MOV R10,qword ptr [0x0012cff8] LEA RDI,[RSP + 0x8] MOV RSI,RBP MOV RDX,R12 MOV RCX,R14 XOR R8D,R8D MOV R9,RAX PUSH R10 PUSH R15 PUSH 0x0 CALL 0x0010f6e0 ADD RSP,0x20 LAB_00111950: LEA RDI,[RSP + 0x18] MOV RSI,R13 LEA RDX,[RSP + 0x8] CALL 0x00115d26 LAB_00111962: LEA RDI,[RSP + 0x18] MOV RSI,RSP CALL 0x0010fe20 LAB_0011196f: LEA RDI,[RSP + 0x18] CALL 0x0010f400 MOV RDI,RSP CALL 0x0010f400 MOV EBP,dword ptr [RSP + 0x10] LAB_00111985: MOV RAX,qword ptr [RSP + 0x8] MOV ECX,dword ptr [RSP + 0x14] MOV dword ptr [RBX],ECX MOV dword ptr [RBX + 0x4],EBP MOV qword ptr [RBX + 0x8],RAX MOV qword ptr [RBX + 0x10],R14 LAB_0011199b: MOV RAX,RBX ADD RSP,0x48 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* qdevtools::QObjectTreeModel::index(int, int, QModelIndex const&) const */ int * qdevtools::QObjectTreeModel::index(int param_1,int param_2,QModelIndex *param_3) { QObject *pQVar1; char cVar2; long *plVar3; int4 *puVar4; uint in_ECX; int iVar5; uint uVar6; int4 in_register_00000034; long lVar7; int4 in_register_0000003c; int *piVar8; int *in_R8; long lVar9; Connection local_78 [8]; QObject *local_70; uint local_68; int local_64; int *local_60; int8 local_58; int4 uStack_4c; int8 local_48; int8 uStack_40; int8 local_38; piVar8 = (int *)CONCAT44(in_register_0000003c,param_1); lVar7 = CONCAT44(in_register_00000034,param_2); iVar5 = (int)param_3; cVar2 = QAbstractItemModel::hasIndex(param_2,iVar5,(QModelIndex *)(ulong)in_ECX); if (cVar2 == '\0') { piVar8[0] = -1; piVar8[1] = -1; piVar8[2] = 0; piVar8[3] = 0; piVar8[4] = 0; piVar8[5] = 0; } else { if ((((*in_R8 < 0) || (in_R8[1] < 0)) || (*(long *)(in_R8 + 4) == 0)) || (lVar9 = *(long *)(in_R8 + 2), lVar9 == 0)) { plVar3 = (long *)(lVar7 + 0x18); lVar9 = 0; } else { plVar3 = (long *)(*(long *)(lVar9 + 8) + 0x20); } local_70 = *(QObject **)(*plVar3 + (long)iVar5 * 8); local_64 = iVar5; cVar2 = QMap<QObject*,QMetaObject::Connection>::contains ((QMap<QObject*,QMetaObject::Connection> *)(lVar7 + 0x28),&local_70); pQVar1 = local_70; local_68 = in_ECX; if (cVar2 == '\0') { local_60 = PTR_objectNameChanged_0012cf60; local_58 = 0; puVar4 = (int4 *)operator_new(0x28); *(long *)(puVar4 + 4) = lVar7; *(QObject **)(puVar4 + 6) = pQVar1; *(long *)(puVar4 + 8) = lVar9; *puVar4 = 1; *(code **)(puVar4 + 2) = QtPrivate:: QFunctorSlotObject<qdevtools::QObjectTreeModel::index(int,int,QModelIndex_const&)const::$_0,0,QtPrivate::List<>,void> ::impl; QObject::connectImpl (local_78,pQVar1,&local_60,lVar7,0,puVar4,0,0,PTR_staticMetaObject_0012cff8); /* try { // try from 00111864 to 00111875 has its CatchHandler @ 001119d0 */ QMap<QObject*,QMetaObject::Connection>::operator[] ((QMap<QObject*,QMetaObject::Connection> *)&local_60,(QObject **)(lVar7 + 0x28)); /* try { // try from 00111876 to 00111882 has its CatchHandler @ 001119c1 */ QMetaObject::Connection::operator=((Connection *)&local_60,local_78); QMetaObject::Connection::~Connection((Connection *)&local_60); QMetaObject::Connection::~Connection(local_78); } uVar6 = local_68; cVar2 = QMap<QObject*,QMetaObject::Connection>::contains ((QMap<QObject*,QMetaObject::Connection> *)(lVar7 + 0x30),&local_70); pQVar1 = local_70; if (cVar2 == '\0') { local_48 = *(int8 *)in_R8; uStack_40 = *(int8 *)(in_R8 + 2); local_38 = *(int8 *)(in_R8 + 4); local_60 = PTR_destroyed_0012cf20; local_58 = 0; puVar4 = (int4 *)operator_new(0x40); *(long *)(puVar4 + 4) = lVar7; *(QObject **)(puVar4 + 6) = pQVar1; puVar4[8] = local_64; puVar4[9] = uStack_4c; puVar4[10] = (int4)local_48; puVar4[0xb] = local_48._4_4_; puVar4[0xc] = (int4)uStack_40; puVar4[0xc] = (int4)uStack_40; puVar4[0xd] = uStack_40._4_4_; puVar4[0xe] = (int4)local_38; puVar4[0xf] = local_38._4_4_; *puVar4 = 1; *(code **)(puVar4 + 2) = QtPrivate:: QFunctorSlotObject<qdevtools::QObjectTreeModel::index(int,int,QModelIndex_const&)const::$_1,0,QtPrivate::List<>,void> ::impl; QObject::connectImpl (local_78,pQVar1,&local_60,lVar7,0,puVar4,0,0,PTR_staticMetaObject_0012cff8); /* try { // try from 00111950 to 00111961 has its CatchHandler @ 001119bc */ QMap<QObject*,QMetaObject::Connection>::operator[] ((QMap<QObject*,QMetaObject::Connection> *)&local_60,(QObject **)(lVar7 + 0x30)); /* try { // try from 00111962 to 0011196e has its CatchHandler @ 001119ad */ QMetaObject::Connection::operator=((Connection *)&local_60,local_78); QMetaObject::Connection::~Connection((Connection *)&local_60); QMetaObject::Connection::~Connection(local_78); uVar6 = local_68; } *piVar8 = local_64; piVar8[1] = uVar6; *(QObject **)(piVar8 + 2) = local_70; *(long *)(piVar8 + 4) = lVar7; } return piVar8; }
65,263
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::get_ref_impl<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)
monkey531[P]llama/common/./json.hpp
static ReferenceType get_ref_impl(ThisType& obj) { // delegate the call to get_ptr<>() auto* ptr = obj.template get_ptr<typename std::add_pointer<ReferenceType>::type>(); if (JSON_HEDLEY_LIKELY(ptr != nullptr)) { return *ptr; } JSON_THROW(type_error::create(303, detail::concat("incompatible ReferenceType for get_ref, actual type is ", obj.type_name()), &obj)); }
O3
cpp
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::get_ref_impl<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&): pushq %rbp pushq %r14 pushq %rbx subq $0x30, %rsp movq %rdi, %r14 cmpb $0x3, (%rdi) jne 0x2af5c movq 0x8(%r14), %rax testq %rax, %rax je 0x2af5c addq $0x30, %rsp popq %rbx popq %r14 popq %rbp retq movl $0x20, %edi callq 0x193b0 movq %rax, %rbx movq %r14, %rdi callq 0x298a8 leaq 0x8(%rsp), %rdx movq %rax, (%rdx) leaq 0x862a7(%rip), %rsi # 0xb1227 leaq 0x10(%rsp), %rdi callq 0x2aff2 movb $0x1, %bpl leaq 0x10(%rsp), %rdx movq %rbx, %rdi movl $0x12f, %esi # imm = 0x12F movq %r14, %rcx callq 0x2ab30 xorl %ebp, %ebp leaq 0xbaf35(%rip), %rsi # 0xe5ee0 leaq -0x720a(%rip), %rdx # 0x23da8 movq %rbx, %rdi callq 0x19da0 movq %rax, %r14 leaq 0x20(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x2afd8 movq 0x20(%rsp), %rsi incq %rsi callq 0x197b0 testb %bpl, %bpl jne 0x2afe2 jmp 0x2afea movq %rax, %r14 movq %rbx, %rdi callq 0x19570 movq %r14, %rdi callq 0x19e10
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE12get_ref_implIRS9_SD_EET_RT0_: push rbp; char push r14; int push rbx; __int64 sub rsp, 30h mov r14, rdi cmp byte ptr [rdi], 3 jnz short loc_2AF5C mov rax, [r14+8] test rax, rax jz short loc_2AF5C add rsp, 30h pop rbx pop r14 pop rbp retn loc_2AF5C: mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) lea rdx, [rsp+48h+var_40] mov [rdx], rax lea rsi, aIncompatibleRe; "incompatible ReferenceType for get_ref,"... lea rdi, [rsp+48h+var_38] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA56_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[56],char const*>(char const(&)[56],char const* &&) mov bpl, 1 lea rdx, [rsp+48h+var_38] mov rdi, rbx; this mov esi, 12Fh; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rax, [rsp+48h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_2AFD8 mov rsi, [rsp+48h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_2AFD8: test bpl, bpl jnz short loc_2AFE2 jmp short loc_2AFEA mov r14, rax loc_2AFE2: mov rdi, rbx; void * call ___cxa_free_exception loc_2AFEA: mov rdi, r14 call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::get_ref_impl<std::string&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( long long a1) { long long result; // rax nlohmann::json_abi_v3_11_3::detail::exception *exception; // rbx _QWORD v3[2]; // [rsp+10h] [rbp-38h] BYREF if ( *(_BYTE *)a1 != 3 || (result = *(_QWORD *)(a1 + 8)) == 0 ) { exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((unsigned __int8 *)a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[56],char const*>( v3, "incompatible ReferenceType for get_ref, actual type is "); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_( exception, 303, v3); __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 result; }
get_ref_impl<std::__cxx11::string&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x30 MOV R14,RDI CMP byte ptr [RDI],0x3 JNZ 0x0012af5c MOV RAX,qword ptr [R14 + 0x8] TEST RAX,RAX JZ 0x0012af5c ADD RSP,0x30 POP RBX POP R14 POP RBP RET LAB_0012af5c: MOV EDI,0x20 CALL 0x001193b0 MOV RBX,RAX MOV RDI,R14 CALL 0x001298a8 LEA RDX,[RSP + 0x8] MOV qword ptr [RDX],RAX LAB_0012af79: LEA RSI,[0x1b1227] LEA RDI,[RSP + 0x10] CALL 0x0012aff2 MOV BPL,0x1 LAB_0012af8d: LEA RDX,[RSP + 0x10] MOV RDI,RBX MOV ESI,0x12f MOV RCX,R14 CALL 0x0012ab30 XOR EBP,EBP LEA RSI,[0x1e5ee0] LEA RDX,[0x123da8] MOV RDI,RBX CALL 0x00119da0
/* 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>::get_ref_impl<std::__cxx11::string&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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 * nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> :: get_ref_impl<std::__cxx11::string&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (basic_json *param_1) { int8 uVar1; char *local_40; detail local_38 [32]; if ((*param_1 == (basic_json)0x3) && (*(string **)(param_1 + 8) != (string *)0x0)) { return *(string **)(param_1 + 8); } uVar1 = __cxa_allocate_exception(0x20); local_40 = (char *)type_name((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)param_1); /* try { // try from 0012af79 to 0012af89 has its CatchHandler @ 0012afdf */ detail::concat<std::__cxx11::string,char_const(&)[56],char_const*> (local_38,"incompatible ReferenceType for get_ref, actual type is ",&local_40); /* try { // try from 0012af8d to 0012afb9 has its CatchHandler @ 0012afba */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar1,0x12f,local_38,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar1,&detail::type_error::typeinfo,detail::exception::~exception); }
65,264
google::protobuf::internal::CallNoArgValidityFunc(void const*, int)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/extension_set.cc
static bool CallNoArgValidityFunc(const void* arg, int number) { // Note: Must use C-style cast here rather than reinterpret_cast because // the C++ standard at one point did not allow casts between function and // data pointers and some compilers enforce this for C++-style casts. No // compiler enforces it for C-style casts since lots of C-style code has // relied on these kinds of casts for a long time, despite being // technically undefined. See: // http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#195 // Also note: Some compilers do not allow function pointers to be "const". // Which makes sense, I suppose, because it's meaningless. return ((EnumValidityFunc*)arg)(number); }
O0
cpp
google::protobuf::internal::CallNoArgValidityFunc(void const*, int): subq $0x18, %rsp movq %rdi, 0x10(%rsp) movl %esi, 0xc(%rsp) movq 0x10(%rsp), %rax movl 0xc(%rsp), %edi callq *%rax andb $0x1, %al addq $0x18, %rsp retq nop
_ZN6google8protobuf8internalL21CallNoArgValidityFuncEPKvi: sub rsp, 18h mov [rsp+18h+var_8], rdi mov [rsp+18h+var_C], esi mov rax, [rsp+18h+var_8] mov edi, [rsp+18h+var_C] call rax and al, 1 add rsp, 18h retn
char google::protobuf::internal::CallNoArgValidityFunc(google::protobuf::internal *this, const void *a2) { return ((long long ( *)(_QWORD))this)((unsigned int)a2) & 1; }
_Destroy<aimrt_mujoco_sim::mujoco_sim_module::publisher::TouchSensorPublisherBase::Options::State*,aimrt_mujoco_sim::mujoco_sim_module::publisher::TouchSensorPublisherBase::Options::State>: SUB RSP,0x18 MOV qword ptr [RSP + 0x10],RDI MOV qword ptr [RSP + 0x8],RSI MOV qword ptr [RSP],RDX MOV RDI,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RSP + 0x8] CALL 0x002144c0 ADD RSP,0x18 RET
/* WARNING: Unknown calling convention -- yet parameter storage is locked */ /* void std::_Destroy<aimrt_mujoco_sim::mujoco_sim_module::publisher::TouchSensorPublisherBase::Options::State*, aimrt_mujoco_sim::mujoco_sim_module::publisher::TouchSensorPublisherBase::Options::State>(aimrt_mujoco_sim::mujoco_sim_module::publisher::TouchSensorPublisherBase::Options::State*, aimrt_mujoco_sim::mujoco_sim_module::publisher::TouchSensorPublisherBase::Options::State*, std::allocator<aimrt_mujoco_sim::mujoco_sim_module::publisher::TouchSensorPublisherBase::Options::State>&) */ void std:: _Destroy<aimrt_mujoco_sim::mujoco_sim_module::publisher::TouchSensorPublisherBase::Options::State*,aimrt_mujoco_sim::mujoco_sim_module::publisher::TouchSensorPublisherBase::Options::State> (State *param_1,State *param_2,allocator *param_3) { _Destroy<aimrt_mujoco_sim::mujoco_sim_module::publisher::TouchSensorPublisherBase::Options::State*> (param_1,param_2); return; }
65,265
google::protobuf::internal::CallNoArgValidityFunc(void const*, int)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/extension_set.cc
static bool CallNoArgValidityFunc(const void* arg, int number) { // Note: Must use C-style cast here rather than reinterpret_cast because // the C++ standard at one point did not allow casts between function and // data pointers and some compilers enforce this for C++-style casts. No // compiler enforces it for C-style casts since lots of C-style code has // relied on these kinds of casts for a long time, despite being // technically undefined. See: // http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#195 // Also note: Some compilers do not allow function pointers to be "const". // Which makes sense, I suppose, because it's meaningless. return ((EnumValidityFunc*)arg)(number); }
O3
cpp
google::protobuf::internal::CallNoArgValidityFunc(void const*, int): movq %rdi, %rax movl %esi, %edi jmpq *%rax
_ZN6google8protobuf8internalL21CallNoArgValidityFuncEPKvi: mov rax, rdi mov edi, esi jmp rax
long long google::protobuf::internal::CallNoArgValidityFunc(google::protobuf::internal *this, const void *a2) { return ((long long ( *)(_QWORD))this)((unsigned int)a2); }
CallNoArgValidityFunc: MOV RAX,RDI MOV EDI,ESI JMP RAX
/* google::protobuf::internal::CallNoArgValidityFunc(void const*, int) */ void google::protobuf::internal::CallNoArgValidityFunc(void *param_1,int param_2) { /* WARNING: Could not recover jumptable at 0x001b2ff2. Too many branches */ /* WARNING: Treating indirect jump as call */ (*(code *)param_1)(param_2); return; }
65,266
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::json_value::json_value(nlohmann::json_abi_v3_11_3::detail::value_t)
monkey531[P]llama/common/json.hpp
json_value(value_t t) { switch (t) { case value_t::object: { object = create<object_t>(); break; } case value_t::array: { array = create<array_t>(); break; } case value_t::string: { string = create<string_t>(""); break; } case value_t::binary: { binary = create<binary_t>(); break; } case value_t::boolean: { boolean = static_cast<boolean_t>(false); break; } case value_t::number_integer: { number_integer = static_cast<number_integer_t>(0); break; } case value_t::number_unsigned: { number_unsigned = static_cast<number_unsigned_t>(0); break; } case value_t::number_float: { number_float = static_cast<number_float_t>(0.0); break; } case value_t::null: { object = nullptr; // silence warning, see #821 break; } case value_t::discarded: default: { object = nullptr; // silence warning, see #821 if (JSON_HEDLEY_UNLIKELY(t == value_t::null)) { JSON_THROW(other_error::create(500, "961c151d2e87f2686a955a9be24d316f1362bf21 3.11.3", nullptr)); // LCOV_EXCL_LINE } break; } } }
O3
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::json_value::json_value(nlohmann::json_abi_v3_11_3::detail::value_t): pushq %rbx movq %rdi, %rbx cmpl $0x8, %esi ja 0x5c6a9 movl %esi, %eax leaq 0x8d3d0(%rip), %rcx # 0xe9a70 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq $0x0, (%rbx) jmp 0x5c701 movl $0x20, %edi jmp 0x5c6c3 movb $0x0, (%rbx) jmp 0x5c701 movl $0x18, %edi callq 0x1ba40 xorps %xmm0, %xmm0 movups %xmm0, (%rax) movq $0x0, 0x10(%rax) jmp 0x5c6fe leaq 0x928fd(%rip), %rdi # 0xeefdc callq 0x5c704 jmp 0x5c6fe movl $0x28, %edi callq 0x1ba40 xorps %xmm0, %xmm0 movups %xmm0, (%rax) movups %xmm0, 0x10(%rax) movb $0x0, 0x20(%rax) movq %rax, (%rbx) popq %rbx retq nop
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10json_valueC2ENS0_6detail7value_tE: push rbx mov rbx, rdi cmp esi, 8; switch 9 cases ja short def_5C6A7; jumptable 000000000005C6A7 default case, cases 0,5-7 mov eax, esi lea rcx, jpt_5C6A7 movsxd rax, ds:(jpt_5C6A7 - 0E9A70h)[rcx+rax*4] add rax, rcx jmp rax; switch jump def_5C6A7: mov qword ptr [rbx], 0; jumptable 000000000005C6A7 default case, cases 0,5-7 jmp short loc_5C701 loc_5C6B2: mov edi, 20h ; ' '; jumptable 000000000005C6A7 case 1 jmp short loc_5C6C3 loc_5C6B9: mov byte ptr [rbx], 0; jumptable 000000000005C6A7 case 4 jmp short loc_5C701 loc_5C6BE: mov edi, 18h; jumptable 000000000005C6A7 case 2 loc_5C6C3: call __Znwm; operator new(ulong) xorps xmm0, xmm0 movups xmmword ptr [rax], xmm0 mov qword ptr [rax+10h], 0 jmp short loc_5C6FE loc_5C6D8: lea rdi, aErrorWhileHand_0+34h; jumptable 000000000005C6A7 case 3 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6createIS9_JRA1_KcEEEPT_DpOT0_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::create<std::string,char const(&)[1]>(char const(&)[1] &&) jmp short loc_5C6FE loc_5C6E6: mov edi, 28h ; '('; jumptable 000000000005C6A7 case 8 call __Znwm; operator new(ulong) xorps xmm0, xmm0 movups xmmword ptr [rax], xmm0 movups xmmword ptr [rax+10h], xmm0 mov byte ptr [rax+20h], 0 loc_5C6FE: mov [rbx], rax loc_5C701: pop rbx retn
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::json_value::json_value( _BYTE *a1, unsigned int a2) { long long result; // rax unsigned long long v4; // rdi result = a2; switch ( a2 ) { case 1u: v4 = 32LL; goto LABEL_6; case 2u: v4 = 24LL; LABEL_6: result = operator new(v4); *(_OWORD *)result = 0LL; *(_QWORD *)(result + 16) = 0LL; goto LABEL_9; case 3u: result = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::create<std::string,char const(&)[1]>(""); goto LABEL_9; case 4u: *a1 = 0; return result; case 8u: result = operator new(0x28uLL); *(_OWORD *)result = 0LL; *(_OWORD *)(result + 16) = 0LL; *(_BYTE *)(result + 32) = 0; LABEL_9: *(_QWORD *)a1 = result; break; default: *(_QWORD *)a1 = 0LL; break; } return result; }
json_value: PUSH RBX MOV RBX,RDI CMP ESI,0x8 JA 0x0015c6a9 MOV EAX,ESI LEA RCX,[0x1e9a70] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_0: MOV qword ptr [RBX],0x0 JMP 0x0015c701 caseD_1: MOV EDI,0x20 JMP 0x0015c6c3 caseD_4: MOV byte ptr [RBX],0x0 JMP 0x0015c701 caseD_2: MOV EDI,0x18 LAB_0015c6c3: CALL 0x0011ba40 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX],XMM0 MOV qword ptr [RAX + 0x10],0x0 JMP 0x0015c6fe caseD_3: LEA RDI,[0x1eefdc] CALL 0x0015c704 JMP 0x0015c6fe caseD_8: MOV EDI,0x28 CALL 0x0011ba40 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX],XMM0 MOVUPS xmmword ptr [RAX + 0x10],XMM0 MOV byte ptr [RAX + 0x20],0x0 LAB_0015c6fe: MOV qword ptr [RBX],RAX LAB_0015c701: POP RBX RET
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>::json_value::json_value(nlohmann::json_abi_v3_11_3::detail::value_t) */ void __thiscall nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::json_value::json_value(json_value *this,int4 param_2) { string *psVar1; ulong uVar2; switch(param_2) { default: *(int8 *)this = 0; return; case 1: uVar2 = 0x20; break; case 2: uVar2 = 0x18; break; case 3: psVar1 = create<std::__cxx11::string,char_const(&)[1]>(""); goto LAB_0015c6fe; case 4: *this = (json_value)0x0; return; case 8: psVar1 = (string *)operator_new(0x28); *(int8 *)psVar1 = 0; *(int8 *)(psVar1 + 8) = 0; *(int8 *)(psVar1 + 0x10) = 0; *(int8 *)(psVar1 + 0x18) = 0; psVar1[0x20] = (string)0x0; goto LAB_0015c6fe; } psVar1 = (string *)operator_new(uVar2); *(int8 *)psVar1 = 0; *(int8 *)(psVar1 + 8) = 0; *(int8 *)(psVar1 + 0x10) = 0; LAB_0015c6fe: *(string **)this = psVar1; return; }
65,267
ma_bin_search
eloqsql/storage/maria/ma_search.c
int _ma_bin_search(const MARIA_KEY *key, const MARIA_PAGE *ma_page, uint32 comp_flag, uchar **ret_pos, uchar *buff __attribute__((unused)), my_bool *last_key) { int UNINIT_VAR(flag); uint page_flag; uint start, mid, end, save_end, totlength, nod_flag; uint not_used[2]; MARIA_KEYDEF *keyinfo= key->keyinfo; MARIA_SHARE *share= keyinfo->share; uchar *page; DBUG_ENTER("_ma_bin_search"); page_flag= ma_page->flag; if (page_flag & KEYPAGE_FLAG_HAS_TRANSID) { /* Keys have varying length, can't use binary search */ DBUG_RETURN(_ma_seq_search(key, ma_page, comp_flag, ret_pos, buff, last_key)); } nod_flag= ma_page->node; totlength= keyinfo->keylength + nod_flag; DBUG_ASSERT(ma_page->size >= share->keypage_header + nod_flag + totlength); start=0; mid=1; save_end= end= ((ma_page->size - nod_flag - share->keypage_header) / totlength-1); DBUG_PRINT("test",("page_length: %u end: %u", ma_page->size, end)); page= ma_page->buff + share->keypage_header + nod_flag; while (start != end) { mid= (start+end)/2; if ((flag=ha_key_cmp(keyinfo->seg, page + (uint) mid * totlength, key->data, key->data_length + key->ref_length, comp_flag, not_used)) >= 0) end=mid; else start=mid+1; } if (mid != start) flag=ha_key_cmp(keyinfo->seg, page + (uint) start * totlength, key->data, key->data_length + key->ref_length, comp_flag, not_used); if (flag < 0) start++; /* point at next, bigger key */ *ret_pos= (page + (uint) start * totlength); *last_key= end == save_end; DBUG_PRINT("exit",("flag: %d keypos: %d",flag,start)); DBUG_RETURN(flag); }
O0
c
ma_bin_search: 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) movq %r9, -0x38(%rbp) movl -0x3c(%rbp), %eax movl %eax, -0x3c(%rbp) movq -0x10(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x68(%rbp) movq -0x68(%rbp), %rax movq (%rax), %rax movq %rax, -0x70(%rbp) movq -0x18(%rbp), %rax movl 0x2c(%rax), %eax movl %eax, -0x40(%rbp) movl -0x40(%rbp), %eax andl $0x2, %eax cmpl $0x0, %eax je 0x68f7a jmp 0x68f56 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi movl -0x1c(%rbp), %edx movq -0x28(%rbp), %rcx movq -0x30(%rbp), %r8 movq -0x38(%rbp), %r9 callq 0x690f0 movl %eax, -0x4(%rbp) jmp 0x690e1 movq -0x18(%rbp), %rax movl 0x28(%rax), %eax movl %eax, -0x58(%rbp) movq -0x68(%rbp), %rax movzwl 0xaa(%rax), %eax addl -0x58(%rbp), %eax movl %eax, -0x54(%rbp) jmp 0x68f97 movl $0x0, -0x44(%rbp) movl $0x1, -0x48(%rbp) movq -0x18(%rbp), %rax movl 0x20(%rax), %eax subl -0x58(%rbp), %eax movq -0x70(%rbp), %rcx subl 0x744(%rcx), %eax xorl %edx, %edx divl -0x54(%rbp) subl $0x1, %eax movl %eax, -0x4c(%rbp) movl %eax, -0x50(%rbp) jmp 0x68fc9 movq -0x18(%rbp), %rax movq 0x10(%rax), %rax movq -0x70(%rbp), %rcx movl 0x744(%rcx), %ecx addq %rcx, %rax movl -0x58(%rbp), %ecx addq %rcx, %rax movq %rax, -0x78(%rbp) movl -0x44(%rbp), %eax cmpl -0x4c(%rbp), %eax je 0x69053 movl -0x44(%rbp), %eax addl -0x4c(%rbp), %eax shrl %eax movl %eax, -0x48(%rbp) movq -0x68(%rbp), %rax movq 0xc0(%rax), %rdi movq -0x78(%rbp), %rsi movl -0x48(%rbp), %eax imull -0x54(%rbp), %eax movl %eax, %eax addq %rax, %rsi movq -0x10(%rbp), %rax movq (%rax), %rdx movq -0x10(%rbp), %rax movl 0x10(%rax), %ecx movq -0x10(%rbp), %rax addl 0x14(%rax), %ecx movl -0x1c(%rbp), %r8d leaq -0x60(%rbp), %r9 callq 0xefba0 movl %eax, -0x3c(%rbp) cmpl $0x0, %eax jl 0x69048 movl -0x48(%rbp), %eax movl %eax, -0x4c(%rbp) jmp 0x69051 movl -0x48(%rbp), %eax addl $0x1, %eax movl %eax, -0x44(%rbp) jmp 0x68fe8 movl -0x48(%rbp), %eax cmpl -0x44(%rbp), %eax je 0x6909b movq -0x68(%rbp), %rax movq 0xc0(%rax), %rdi movq -0x78(%rbp), %rsi movl -0x44(%rbp), %eax imull -0x54(%rbp), %eax movl %eax, %eax addq %rax, %rsi movq -0x10(%rbp), %rax movq (%rax), %rdx movq -0x10(%rbp), %rax movl 0x10(%rax), %ecx movq -0x10(%rbp), %rax addl 0x14(%rax), %ecx movl -0x1c(%rbp), %r8d leaq -0x60(%rbp), %r9 callq 0xefba0 movl %eax, -0x3c(%rbp) cmpl $0x0, -0x3c(%rbp) jge 0x690aa movl -0x44(%rbp), %eax addl $0x1, %eax movl %eax, -0x44(%rbp) movq -0x78(%rbp), %rcx movl -0x44(%rbp), %eax imull -0x54(%rbp), %eax movl %eax, %eax addq %rax, %rcx movq -0x28(%rbp), %rax movq %rcx, (%rax) movl -0x4c(%rbp), %eax cmpl -0x50(%rbp), %eax sete %al andb $0x1, %al movzbl %al, %eax movb %al, %cl movq -0x38(%rbp), %rax movb %cl, (%rax) jmp 0x690d9 jmp 0x690db movl -0x3c(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x80, %rsp popq %rbp retq nopl (%rax)
_ma_bin_search: push rbp mov rbp, rsp sub rsp, 80h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_1C], edx mov [rbp+var_28], rcx mov [rbp+var_30], r8 mov [rbp+var_38], r9 mov eax, [rbp+var_3C] mov [rbp+var_3C], eax mov rax, [rbp+var_10] mov rax, [rax+8] mov [rbp+var_68], rax mov rax, [rbp+var_68] mov rax, [rax] mov [rbp+var_70], rax mov rax, [rbp+var_18] mov eax, [rax+2Ch] mov [rbp+var_40], eax mov eax, [rbp+var_40] and eax, 2 cmp eax, 0 jz short loc_68F7A jmp short $+2 loc_68F56: mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] mov edx, [rbp+var_1C] mov rcx, [rbp+var_28] mov r8, [rbp+var_30] mov r9, [rbp+var_38] call _ma_seq_search mov [rbp+var_4], eax jmp loc_690E1 loc_68F7A: mov rax, [rbp+var_18] mov eax, [rax+28h] mov [rbp+var_58], eax mov rax, [rbp+var_68] movzx eax, word ptr [rax+0AAh] add eax, [rbp+var_58] mov [rbp+var_54], eax jmp short $+2 loc_68F97: mov [rbp+var_44], 0 mov [rbp+var_48], 1 mov rax, [rbp+var_18] mov eax, [rax+20h] sub eax, [rbp+var_58] mov rcx, [rbp+var_70] sub eax, [rcx+744h] xor edx, edx div [rbp+var_54] sub eax, 1 mov [rbp+var_4C], eax mov [rbp+var_50], eax jmp short $+2 loc_68FC9: mov rax, [rbp+var_18] mov rax, [rax+10h] mov rcx, [rbp+var_70] mov ecx, [rcx+744h] add rax, rcx mov ecx, [rbp+var_58] add rax, rcx mov [rbp+var_78], rax loc_68FE8: mov eax, [rbp+var_44] cmp eax, [rbp+var_4C] jz short loc_69053 mov eax, [rbp+var_44] add eax, [rbp+var_4C] shr eax, 1 mov [rbp+var_48], eax mov rax, [rbp+var_68] mov rdi, [rax+0C0h] mov rsi, [rbp+var_78] mov eax, [rbp+var_48] imul eax, [rbp+var_54] mov eax, eax add rsi, rax mov rax, [rbp+var_10] mov rdx, [rax] mov rax, [rbp+var_10] mov ecx, [rax+10h] mov rax, [rbp+var_10] add ecx, [rax+14h] mov r8d, [rbp+var_1C] lea r9, [rbp+var_60] call ha_key_cmp mov [rbp+var_3C], eax cmp eax, 0 jl short loc_69048 mov eax, [rbp+var_48] mov [rbp+var_4C], eax jmp short loc_69051 loc_69048: mov eax, [rbp+var_48] add eax, 1 mov [rbp+var_44], eax loc_69051: jmp short loc_68FE8 loc_69053: mov eax, [rbp+var_48] cmp eax, [rbp+var_44] jz short loc_6909B mov rax, [rbp+var_68] mov rdi, [rax+0C0h] mov rsi, [rbp+var_78] mov eax, [rbp+var_44] imul eax, [rbp+var_54] mov eax, eax add rsi, rax mov rax, [rbp+var_10] mov rdx, [rax] mov rax, [rbp+var_10] mov ecx, [rax+10h] mov rax, [rbp+var_10] add ecx, [rax+14h] mov r8d, [rbp+var_1C] lea r9, [rbp+var_60] call ha_key_cmp mov [rbp+var_3C], eax loc_6909B: cmp [rbp+var_3C], 0 jge short loc_690AA mov eax, [rbp+var_44] add eax, 1 mov [rbp+var_44], eax loc_690AA: mov rcx, [rbp+var_78] mov eax, [rbp+var_44] imul eax, [rbp+var_54] mov eax, eax add rcx, rax mov rax, [rbp+var_28] mov [rax], rcx mov eax, [rbp+var_4C] cmp eax, [rbp+var_50] setz al and al, 1 movzx eax, al mov cl, al mov rax, [rbp+var_38] mov [rax], cl jmp short $+2 loc_690D9: jmp short $+2 loc_690DB: mov eax, [rbp+var_3C] mov [rbp+var_4], eax loc_690E1: mov eax, [rbp+var_4] add rsp, 80h pop rbp retn
long long ma_bin_search(_QWORD *a1, long long a2, unsigned int a3, _QWORD *a4, long long a5, bool *a6) { long long v7; // [rsp+8h] [rbp-78h] long long v8; // [rsp+10h] [rbp-70h] long long *v9; // [rsp+18h] [rbp-68h] char v10[8]; // [rsp+20h] [rbp-60h] BYREF unsigned int v11; // [rsp+28h] [rbp-58h] unsigned int v12; // [rsp+2Ch] [rbp-54h] unsigned int v13; // [rsp+30h] [rbp-50h] unsigned int v14; // [rsp+34h] [rbp-4Ch] unsigned int v15; // [rsp+38h] [rbp-48h] unsigned int v16; // [rsp+3Ch] [rbp-44h] int v17; // [rsp+40h] [rbp-40h] int v18; // [rsp+44h] [rbp-3Ch] bool *v19; // [rsp+48h] [rbp-38h] long long v20; // [rsp+50h] [rbp-30h] _QWORD *v21; // [rsp+58h] [rbp-28h] unsigned int v22; // [rsp+64h] [rbp-1Ch] long long v23; // [rsp+68h] [rbp-18h] _QWORD *v24; // [rsp+70h] [rbp-10h] v24 = a1; v23 = a2; v22 = a3; v21 = a4; v20 = a5; v19 = a6; v9 = (long long *)a1[1]; v8 = *v9; v17 = *(_DWORD *)(a2 + 44); if ( (v17 & 2) != 0 ) { return (unsigned int)ma_seq_search(v24, v23, v22, v21, v20, v19); } else { v11 = *(_DWORD *)(v23 + 40); v12 = v11 + *((unsigned __int16 *)v9 + 85); v16 = 0; v15 = 1; v14 = (*(_DWORD *)(v23 + 32) - v11 - *(_DWORD *)(v8 + 1860)) / v12 - 1; v13 = v14; v7 = v11 + *(unsigned int *)(v8 + 1860) + *(_QWORD *)(v23 + 16); while ( v16 != v14 ) { v15 = (v14 + v16) >> 1; v18 = ha_key_cmp( v9[24], v12 * v15 + v7, *v24, (unsigned int)(*((_DWORD *)v24 + 5) + *((_DWORD *)v24 + 4)), v22, v10); if ( v18 < 0 ) v16 = v15 + 1; else v14 = v15; } if ( v15 != v16 ) v18 = ha_key_cmp( v9[24], v12 * v16 + v7, *v24, (unsigned int)(*((_DWORD *)v24 + 5) + *((_DWORD *)v24 + 4)), v22, v10); if ( v18 < 0 ) ++v16; *v21 = v12 * v16 + v7; *v19 = v14 == v13; return (unsigned int)v18; } }
_ma_bin_search: 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 qword ptr [RBP + -0x38],R9 MOV EAX,dword ptr [RBP + -0x3c] MOV dword ptr [RBP + -0x3c],EAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x68],RAX MOV RAX,qword ptr [RBP + -0x68] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x70],RAX MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX + 0x2c] MOV dword ptr [RBP + -0x40],EAX MOV EAX,dword ptr [RBP + -0x40] AND EAX,0x2 CMP EAX,0x0 JZ 0x00168f7a JMP 0x00168f56 LAB_00168f56: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] MOV EDX,dword ptr [RBP + -0x1c] MOV RCX,qword ptr [RBP + -0x28] MOV R8,qword ptr [RBP + -0x30] MOV R9,qword ptr [RBP + -0x38] CALL 0x001690f0 MOV dword ptr [RBP + -0x4],EAX JMP 0x001690e1 LAB_00168f7a: MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX + 0x28] MOV dword ptr [RBP + -0x58],EAX MOV RAX,qword ptr [RBP + -0x68] MOVZX EAX,word ptr [RAX + 0xaa] ADD EAX,dword ptr [RBP + -0x58] MOV dword ptr [RBP + -0x54],EAX JMP 0x00168f97 LAB_00168f97: MOV dword ptr [RBP + -0x44],0x0 MOV dword ptr [RBP + -0x48],0x1 MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX + 0x20] SUB EAX,dword ptr [RBP + -0x58] MOV RCX,qword ptr [RBP + -0x70] SUB EAX,dword ptr [RCX + 0x744] XOR EDX,EDX DIV dword ptr [RBP + -0x54] SUB EAX,0x1 MOV dword ptr [RBP + -0x4c],EAX MOV dword ptr [RBP + -0x50],EAX JMP 0x00168fc9 LAB_00168fc9: MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x10] MOV RCX,qword ptr [RBP + -0x70] MOV ECX,dword ptr [RCX + 0x744] ADD RAX,RCX MOV ECX,dword ptr [RBP + -0x58] ADD RAX,RCX MOV qword ptr [RBP + -0x78],RAX LAB_00168fe8: MOV EAX,dword ptr [RBP + -0x44] CMP EAX,dword ptr [RBP + -0x4c] JZ 0x00169053 MOV EAX,dword ptr [RBP + -0x44] ADD EAX,dword ptr [RBP + -0x4c] SHR EAX,0x1 MOV dword ptr [RBP + -0x48],EAX MOV RAX,qword ptr [RBP + -0x68] MOV RDI,qword ptr [RAX + 0xc0] MOV RSI,qword ptr [RBP + -0x78] MOV EAX,dword ptr [RBP + -0x48] IMUL EAX,dword ptr [RBP + -0x54] MOV EAX,EAX ADD RSI,RAX MOV RAX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RAX + 0x10] MOV RAX,qword ptr [RBP + -0x10] ADD ECX,dword ptr [RAX + 0x14] MOV R8D,dword ptr [RBP + -0x1c] LEA R9,[RBP + -0x60] CALL 0x001efba0 MOV dword ptr [RBP + -0x3c],EAX CMP EAX,0x0 JL 0x00169048 MOV EAX,dword ptr [RBP + -0x48] MOV dword ptr [RBP + -0x4c],EAX JMP 0x00169051 LAB_00169048: MOV EAX,dword ptr [RBP + -0x48] ADD EAX,0x1 MOV dword ptr [RBP + -0x44],EAX LAB_00169051: JMP 0x00168fe8 LAB_00169053: MOV EAX,dword ptr [RBP + -0x48] CMP EAX,dword ptr [RBP + -0x44] JZ 0x0016909b MOV RAX,qword ptr [RBP + -0x68] MOV RDI,qword ptr [RAX + 0xc0] MOV RSI,qword ptr [RBP + -0x78] MOV EAX,dword ptr [RBP + -0x44] IMUL EAX,dword ptr [RBP + -0x54] MOV EAX,EAX ADD RSI,RAX MOV RAX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RAX + 0x10] MOV RAX,qword ptr [RBP + -0x10] ADD ECX,dword ptr [RAX + 0x14] MOV R8D,dword ptr [RBP + -0x1c] LEA R9,[RBP + -0x60] CALL 0x001efba0 MOV dword ptr [RBP + -0x3c],EAX LAB_0016909b: CMP dword ptr [RBP + -0x3c],0x0 JGE 0x001690aa MOV EAX,dword ptr [RBP + -0x44] ADD EAX,0x1 MOV dword ptr [RBP + -0x44],EAX LAB_001690aa: MOV RCX,qword ptr [RBP + -0x78] MOV EAX,dword ptr [RBP + -0x44] IMUL EAX,dword ptr [RBP + -0x54] MOV EAX,EAX ADD RCX,RAX MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RAX],RCX MOV EAX,dword ptr [RBP + -0x4c] CMP EAX,dword ptr [RBP + -0x50] SETZ AL AND AL,0x1 MOVZX EAX,AL MOV CL,AL MOV RAX,qword ptr [RBP + -0x38] MOV byte ptr [RAX],CL JMP 0x001690d9 LAB_001690d9: JMP 0x001690db LAB_001690db: MOV EAX,dword ptr [RBP + -0x3c] MOV dword ptr [RBP + -0x4],EAX LAB_001690e1: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x80 POP RBP RET
int _ma_bin_search(int8 *param_1,long param_2,int4 param_3,long *param_4, int8 param_5,int8 param_6) { long *plVar1; long lVar2; int1 local_68 [8]; uint local_60; uint local_5c; uint local_58; uint local_54; uint local_50; uint local_4c; uint local_48; int local_44; int8 local_40; int8 local_38; long *local_30; int4 local_24; long local_20; int8 *local_18; int local_c; plVar1 = (long *)param_1[1]; local_48 = *(uint *)(param_2 + 0x2c); local_40 = param_6; local_38 = param_5; local_30 = param_4; local_24 = param_3; local_20 = param_2; local_18 = param_1; if ((local_48 & 2) == 0) { local_60 = *(uint *)(param_2 + 0x28); local_5c = *(ushort *)((long)plVar1 + 0xaa) + local_60; local_4c = 0; local_50 = 1; local_58 = ((*(int *)(param_2 + 0x20) - local_60) - *(int *)(*plVar1 + 0x744)) / local_5c - 1; lVar2 = *(long *)(param_2 + 0x10) + (ulong)*(uint *)(*plVar1 + 0x744) + (ulong)local_60; local_54 = local_58; while (local_4c != local_54) { local_50 = local_4c + local_54 >> 1; local_44 = ha_key_cmp(plVar1[0x18],lVar2 + (ulong)(local_50 * local_5c),*local_18, *(int *)(local_18 + 2) + *(int *)((long)local_18 + 0x14),local_24, local_68); if (local_44 < 0) { local_4c = local_50 + 1; } else { local_54 = local_50; } } if (local_50 != local_4c) { local_44 = ha_key_cmp(plVar1[0x18],lVar2 + (ulong)(local_4c * local_5c),*local_18, *(int *)(local_18 + 2) + *(int *)((long)local_18 + 0x14),local_24, local_68); } if (local_44 < 0) { local_4c = local_4c + 1; } *local_30 = lVar2 + (ulong)(local_4c * local_5c); *(bool *)local_40 = local_54 == local_58; local_c = local_44; } else { local_c = _ma_seq_search(param_1,param_2,param_3,param_4,param_5,param_6); } return local_c; }
65,268
diff
eloqsql/strings/dtoa.c
static Bigint *diff(Bigint *a, Bigint *b, Stack_alloc *alloc) { Bigint *c; int i, wa, wb; ULong *xa, *xae, *xb, *xbe, *xc; ULLong borrow, y; i= cmp(a,b); if (!i) { c= Balloc(0, alloc); c->wds= 1; c->p.x[0]= 0; return c; } if (i < 0) { c= a; a= b; b= c; i= 1; } else i= 0; c= Balloc(a->k, alloc); c->sign= i; wa= a->wds; xa= a->p.x; xae= xa + wa; wb= b->wds; xb= b->p.x; xbe= xb + wb; xc= c->p.x; borrow= 0; do { y= (ULLong)*xa++ - *xb++ - borrow; borrow= y >> 32 & (ULong)1; *xc++= (ULong) (y & FFFFFFFF); } while (xb < xbe); while (xa < xae) { y= *xa++ - borrow; borrow= y >> 32 & (ULong)1; *xc++= (ULong) (y & FFFFFFFF); } while (!*--xc) wa--; c->wds= wa; return c; }
O0
c
diff: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0x7c090 movl %eax, -0x2c(%rbp) cmpl $0x0, -0x2c(%rbp) jne 0x7bece movq -0x20(%rbp), %rsi xorl %edi, %edi callq 0x7b5a0 movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax movl $0x1, 0x14(%rax) movq -0x28(%rbp), %rax movq (%rax), %rax movl $0x0, (%rax) movq -0x28(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x7c07a cmpl $0x0, -0x2c(%rbp) jge 0x7bef5 movq -0x10(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x10(%rbp) movq -0x28(%rbp), %rax movq %rax, -0x18(%rbp) movl $0x1, -0x2c(%rbp) jmp 0x7befc movl $0x0, -0x2c(%rbp) movq -0x10(%rbp), %rax movl 0x8(%rax), %edi movq -0x20(%rbp), %rsi callq 0x7b5a0 movq %rax, -0x28(%rbp) movl -0x2c(%rbp), %ecx movq -0x28(%rbp), %rax movl %ecx, 0x10(%rax) movq -0x10(%rbp), %rax movl 0x14(%rax), %eax movl %eax, -0x30(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x40(%rbp) movq -0x40(%rbp), %rax movslq -0x30(%rbp), %rcx shlq $0x2, %rcx addq %rcx, %rax movq %rax, -0x48(%rbp) movq -0x18(%rbp), %rax movl 0x14(%rax), %eax movl %eax, -0x34(%rbp) movq -0x18(%rbp), %rax movq (%rax), %rax movq %rax, -0x50(%rbp) movq -0x50(%rbp), %rax movslq -0x34(%rbp), %rcx shlq $0x2, %rcx addq %rcx, %rax movq %rax, -0x58(%rbp) movq -0x28(%rbp), %rax movq (%rax), %rax movq %rax, -0x60(%rbp) movq $0x0, -0x68(%rbp) movq -0x40(%rbp), %rax movq %rax, %rcx addq $0x4, %rcx movq %rcx, -0x40(%rbp) movl (%rax), %eax movq -0x50(%rbp), %rcx movq %rcx, %rdx addq $0x4, %rdx movq %rdx, -0x50(%rbp) movl (%rcx), %ecx subq %rcx, %rax subq -0x68(%rbp), %rax movq %rax, -0x70(%rbp) movq -0x70(%rbp), %rax shrq $0x20, %rax andq $0x1, %rax movq %rax, -0x68(%rbp) movabsq $0xffffffff, %rax # imm = 0xFFFFFFFF andq -0x70(%rbp), %rax movl %eax, %ecx movq -0x60(%rbp), %rax movq %rax, %rdx addq $0x4, %rdx movq %rdx, -0x60(%rbp) movl %ecx, (%rax) movq -0x50(%rbp), %rax cmpq -0x58(%rbp), %rax jb 0x7bf7d jmp 0x7bfe7 movq -0x40(%rbp), %rax cmpq -0x48(%rbp), %rax jae 0x7c03d movq -0x40(%rbp), %rax movq %rax, %rcx addq $0x4, %rcx movq %rcx, -0x40(%rbp) movl (%rax), %eax subq -0x68(%rbp), %rax movq %rax, -0x70(%rbp) movq -0x70(%rbp), %rax shrq $0x20, %rax andq $0x1, %rax movq %rax, -0x68(%rbp) movabsq $0xffffffff, %rax # imm = 0xFFFFFFFF andq -0x70(%rbp), %rax movl %eax, %ecx movq -0x60(%rbp), %rax movq %rax, %rdx addq $0x4, %rdx movq %rdx, -0x60(%rbp) movl %ecx, (%rax) jmp 0x7bfe7 jmp 0x7c03f movq -0x60(%rbp), %rax movq %rax, %rcx addq $-0x4, %rcx movq %rcx, -0x60(%rbp) cmpl $0x0, -0x4(%rax) setne %al xorb $-0x1, %al testb $0x1, %al jne 0x7c05d jmp 0x7c068 movl -0x30(%rbp), %eax addl $-0x1, %eax movl %eax, -0x30(%rbp) jmp 0x7c03f movl -0x30(%rbp), %ecx movq -0x28(%rbp), %rax movl %ecx, 0x14(%rax) movq -0x28(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x70, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
diff: push rbp mov rbp, rsp sub rsp, 70h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] call cmp mov [rbp+var_2C], eax cmp [rbp+var_2C], 0 jnz short loc_7BECE mov rsi, [rbp+var_20] xor edi, edi call Balloc mov [rbp+var_28], rax mov rax, [rbp+var_28] mov dword ptr [rax+14h], 1 mov rax, [rbp+var_28] mov rax, [rax] mov dword ptr [rax], 0 mov rax, [rbp+var_28] mov [rbp+var_8], rax jmp loc_7C07A loc_7BECE: cmp [rbp+var_2C], 0 jge short loc_7BEF5 mov rax, [rbp+var_10] mov [rbp+var_28], rax mov rax, [rbp+var_18] mov [rbp+var_10], rax mov rax, [rbp+var_28] mov [rbp+var_18], rax mov [rbp+var_2C], 1 jmp short loc_7BEFC loc_7BEF5: mov [rbp+var_2C], 0 loc_7BEFC: mov rax, [rbp+var_10] mov edi, [rax+8] mov rsi, [rbp+var_20] call Balloc mov [rbp+var_28], rax mov ecx, [rbp+var_2C] mov rax, [rbp+var_28] mov [rax+10h], ecx mov rax, [rbp+var_10] mov eax, [rax+14h] mov [rbp+var_30], eax mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_40], rax mov rax, [rbp+var_40] movsxd rcx, [rbp+var_30] shl rcx, 2 add rax, rcx mov [rbp+var_48], rax mov rax, [rbp+var_18] mov eax, [rax+14h] mov [rbp+var_34], eax mov rax, [rbp+var_18] mov rax, [rax] mov [rbp+var_50], rax mov rax, [rbp+var_50] movsxd rcx, [rbp+var_34] shl rcx, 2 add rax, rcx mov [rbp+var_58], rax mov rax, [rbp+var_28] mov rax, [rax] mov [rbp+var_60], rax mov [rbp+var_68], 0 loc_7BF7D: mov rax, [rbp+var_40] mov rcx, rax add rcx, 4 mov [rbp+var_40], rcx mov eax, [rax] mov rcx, [rbp+var_50] mov rdx, rcx add rdx, 4 mov [rbp+var_50], rdx mov ecx, [rcx] sub rax, rcx sub rax, [rbp+var_68] mov [rbp+var_70], rax mov rax, [rbp+var_70] shr rax, 20h and rax, 1 mov [rbp+var_68], rax mov rax, 0FFFFFFFFh and rax, [rbp+var_70] mov ecx, eax mov rax, [rbp+var_60] mov rdx, rax add rdx, 4 mov [rbp+var_60], rdx mov [rax], ecx mov rax, [rbp+var_50] cmp rax, [rbp+var_58] jb short loc_7BF7D jmp short $+2 loc_7BFE7: mov rax, [rbp+var_40] cmp rax, [rbp+var_48] jnb short loc_7C03D mov rax, [rbp+var_40] mov rcx, rax add rcx, 4 mov [rbp+var_40], rcx mov eax, [rax] sub rax, [rbp+var_68] mov [rbp+var_70], rax mov rax, [rbp+var_70] shr rax, 20h and rax, 1 mov [rbp+var_68], rax mov rax, 0FFFFFFFFh and rax, [rbp+var_70] mov ecx, eax mov rax, [rbp+var_60] mov rdx, rax add rdx, 4 mov [rbp+var_60], rdx mov [rax], ecx jmp short loc_7BFE7 loc_7C03D: jmp short $+2 loc_7C03F: mov rax, [rbp+var_60] mov rcx, rax add rcx, 0FFFFFFFFFFFFFFFCh mov [rbp+var_60], rcx cmp dword ptr [rax-4], 0 setnz al xor al, 0FFh test al, 1 jnz short loc_7C05D jmp short loc_7C068 loc_7C05D: mov eax, [rbp+var_30] add eax, 0FFFFFFFFh mov [rbp+var_30], eax jmp short loc_7C03F loc_7C068: mov ecx, [rbp+var_30] mov rax, [rbp+var_28] mov [rax+14h], ecx mov rax, [rbp+var_28] mov [rbp+var_8], rax loc_7C07A: mov rax, [rbp+var_8] add rsp, 70h pop rbp retn
long long diff(unsigned int **a1, unsigned int **a2, long long a3) { unsigned int *v3; // rax unsigned int *v4; // rcx _DWORD *v5; // rax unsigned int *v6; // rax _DWORD *v7; // rax _DWORD *v8; // rax unsigned long long v10; // [rsp+0h] [rbp-70h] unsigned long long v11; // [rsp+0h] [rbp-70h] long long v12; // [rsp+8h] [rbp-68h] _DWORD *v13; // [rsp+10h] [rbp-60h] unsigned long long v14; // [rsp+18h] [rbp-58h] unsigned int *v15; // [rsp+20h] [rbp-50h] unsigned long long v16; // [rsp+28h] [rbp-48h] unsigned int *v17; // [rsp+30h] [rbp-40h] int v18; // [rsp+40h] [rbp-30h] int v19; // [rsp+44h] [rbp-2Ch] int v20; // [rsp+44h] [rbp-2Ch] long long v21; // [rsp+48h] [rbp-28h] long long v22; // [rsp+48h] [rbp-28h] unsigned int **v24; // [rsp+58h] [rbp-18h] unsigned int **v25; // [rsp+60h] [rbp-10h] v25 = a1; v24 = a2; v19 = cmp(a1, a2); if ( v19 ) { if ( v19 >= 0 ) { v20 = 0; } else { v25 = a2; v24 = a1; v20 = 1; } v22 = Balloc(*((_DWORD *)v25 + 2), a3); *(_DWORD *)(v22 + 16) = v20; v18 = *((_DWORD *)v25 + 5); v17 = *v25; v16 = (unsigned long long)&(*v25)[v18]; v15 = *v24; v14 = (unsigned long long)&(*v24)[*((int *)v24 + 5)]; v13 = *(_DWORD **)v22; v12 = 0LL; do { v3 = v17++; v4 = v15++; v10 = *v3 - (unsigned long long)*v4 - v12; v12 = HIDWORD(v10) & 1; v5 = v13++; *v5 = v10; } while ( (unsigned long long)v15 < v14 ); while ( (unsigned long long)v17 < v16 ) { v6 = v17++; v11 = *v6 - v12; v12 = HIDWORD(v11) & 1; v7 = v13++; *v7 = v11; } while ( 1 ) { v8 = v13--; if ( *(v8 - 1) ) break; --v18; } *(_DWORD *)(v22 + 20) = v18; return v22; } else { v21 = Balloc(0, a3); *(_DWORD *)(v21 + 20) = 1; **(_DWORD **)v21 = 0; return v21; } }
diff: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] CALL 0x0017c090 MOV dword ptr [RBP + -0x2c],EAX CMP dword ptr [RBP + -0x2c],0x0 JNZ 0x0017bece MOV RSI,qword ptr [RBP + -0x20] XOR EDI,EDI CALL 0x0017b5a0 MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x28] MOV dword ptr [RAX + 0x14],0x1 MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX] MOV dword ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x8],RAX JMP 0x0017c07a LAB_0017bece: CMP dword ptr [RBP + -0x2c],0x0 JGE 0x0017bef5 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x18],RAX MOV dword ptr [RBP + -0x2c],0x1 JMP 0x0017befc LAB_0017bef5: MOV dword ptr [RBP + -0x2c],0x0 LAB_0017befc: MOV RAX,qword ptr [RBP + -0x10] MOV EDI,dword ptr [RAX + 0x8] MOV RSI,qword ptr [RBP + -0x20] CALL 0x0017b5a0 MOV qword ptr [RBP + -0x28],RAX MOV ECX,dword ptr [RBP + -0x2c] MOV RAX,qword ptr [RBP + -0x28] MOV dword ptr [RAX + 0x10],ECX MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x14] MOV dword ptr [RBP + -0x30],EAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x40] MOVSXD RCX,dword ptr [RBP + -0x30] SHL RCX,0x2 ADD RAX,RCX MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX + 0x14] MOV dword ptr [RBP + -0x34],EAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x50] MOVSXD RCX,dword ptr [RBP + -0x34] SHL RCX,0x2 ADD RAX,RCX MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x60],RAX MOV qword ptr [RBP + -0x68],0x0 LAB_0017bf7d: MOV RAX,qword ptr [RBP + -0x40] MOV RCX,RAX ADD RCX,0x4 MOV qword ptr [RBP + -0x40],RCX MOV EAX,dword ptr [RAX] MOV RCX,qword ptr [RBP + -0x50] MOV RDX,RCX ADD RDX,0x4 MOV qword ptr [RBP + -0x50],RDX MOV ECX,dword ptr [RCX] SUB RAX,RCX SUB RAX,qword ptr [RBP + -0x68] MOV qword ptr [RBP + -0x70],RAX MOV RAX,qword ptr [RBP + -0x70] SHR RAX,0x20 AND RAX,0x1 MOV qword ptr [RBP + -0x68],RAX MOV RAX,0xffffffff AND RAX,qword ptr [RBP + -0x70] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x60] MOV RDX,RAX ADD RDX,0x4 MOV qword ptr [RBP + -0x60],RDX MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x50] CMP RAX,qword ptr [RBP + -0x58] JC 0x0017bf7d JMP 0x0017bfe7 LAB_0017bfe7: MOV RAX,qword ptr [RBP + -0x40] CMP RAX,qword ptr [RBP + -0x48] JNC 0x0017c03d MOV RAX,qword ptr [RBP + -0x40] MOV RCX,RAX ADD RCX,0x4 MOV qword ptr [RBP + -0x40],RCX MOV EAX,dword ptr [RAX] SUB RAX,qword ptr [RBP + -0x68] MOV qword ptr [RBP + -0x70],RAX MOV RAX,qword ptr [RBP + -0x70] SHR RAX,0x20 AND RAX,0x1 MOV qword ptr [RBP + -0x68],RAX MOV RAX,0xffffffff AND RAX,qword ptr [RBP + -0x70] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x60] MOV RDX,RAX ADD RDX,0x4 MOV qword ptr [RBP + -0x60],RDX MOV dword ptr [RAX],ECX JMP 0x0017bfe7 LAB_0017c03d: JMP 0x0017c03f LAB_0017c03f: MOV RAX,qword ptr [RBP + -0x60] MOV RCX,RAX ADD RCX,-0x4 MOV qword ptr [RBP + -0x60],RCX CMP dword ptr [RAX + -0x4],0x0 SETNZ AL XOR AL,0xff TEST AL,0x1 JNZ 0x0017c05d JMP 0x0017c068 LAB_0017c05d: MOV EAX,dword ptr [RBP + -0x30] ADD EAX,-0x1 MOV dword ptr [RBP + -0x30],EAX JMP 0x0017c03f LAB_0017c068: MOV ECX,dword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x28] MOV dword ptr [RAX + 0x14],ECX MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x8],RAX LAB_0017c07a: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x70 POP RBP RET
int8 * diff(int8 *param_1,int8 *param_2,int8 param_3) { uint *puVar1; uint *puVar2; int iVar3; ulong uVar4; uint *puVar5; uint *puVar6; int4 *puVar7; ulong local_70; int4 *local_68; uint *local_58; uint *local_48; int local_38; uint local_34; int8 *local_20; int8 *local_18; int8 *local_10; iVar3 = cmp(param_1,param_2); if (iVar3 == 0) { local_10 = (int8 *)Balloc(0,param_3); *(int4 *)((long)local_10 + 0x14) = 1; *(int4 *)*local_10 = 0; } else { local_20 = param_2; local_18 = param_1; if (iVar3 < 0) { local_20 = param_1; local_18 = param_2; } local_34 = (uint)(iVar3 < 0); local_10 = (int8 *)Balloc(*(int4 *)(local_18 + 1),param_3); *(uint *)(local_10 + 2) = local_34; local_38 = *(int *)((long)local_18 + 0x14); puVar1 = (uint *)*local_18; iVar3 = *(int *)((long)local_20 + 0x14); puVar2 = (uint *)*local_20; local_70 = 0; local_68 = (int4 *)*local_10; local_58 = puVar2; local_48 = puVar1; do { puVar5 = local_48 + 1; puVar6 = local_58 + 1; uVar4 = ((ulong)*local_48 - (ulong)*local_58) - local_70; local_70 = uVar4 >> 0x20 & 1; puVar7 = local_68 + 1; *local_68 = (int)uVar4; local_68 = puVar7; local_58 = puVar6; local_48 = puVar5; } while (puVar6 < puVar2 + iVar3); while (local_48 < puVar1 + local_38) { uVar4 = *local_48 - local_70; local_70 = uVar4 >> 0x20 & 1; *local_68 = (int)uVar4; local_68 = local_68 + 1; local_48 = local_48 + 1; } while (local_68[-1] == 0) { local_38 = local_38 + -1; local_68 = local_68 + -1; } *(int *)((long)local_10 + 0x14) = local_38; } return local_10; }
65,269
init_partitioned_key_cache
eloqsql/mysys/mf_keycache.c
static int init_partitioned_key_cache(PARTITIONED_KEY_CACHE_CB *keycache, uint key_cache_block_size, size_t use_mem, uint division_limit, uint age_threshold, uint changed_blocks_hash_size) { int i; size_t mem_per_cache; size_t mem_decr; int cnt; SIMPLE_KEY_CACHE_CB *partition; SIMPLE_KEY_CACHE_CB **partition_ptr; uint partitions= keycache->partitions; int blocks= 0; DBUG_ENTER("partitioned_init_key_cache"); keycache->key_cache_block_size = key_cache_block_size; if (keycache->key_cache_inited) partition_ptr= keycache->partition_array; else { if(!(partition_ptr= (SIMPLE_KEY_CACHE_CB **) my_malloc(key_memory_KEY_CACHE, sizeof(SIMPLE_KEY_CACHE_CB *) * partitions, MYF(MY_WME)))) DBUG_RETURN(-1); bzero(partition_ptr, sizeof(SIMPLE_KEY_CACHE_CB *) * partitions); keycache->partition_array= partition_ptr; } mem_per_cache = use_mem / partitions; mem_decr= mem_per_cache / 5; for (i= 0; i < (int) partitions; i++) { my_bool key_cache_inited= keycache->key_cache_inited; if (key_cache_inited) partition= *partition_ptr; else { if (!(partition= (SIMPLE_KEY_CACHE_CB *) my_malloc(key_memory_KEY_CACHE, sizeof(SIMPLE_KEY_CACHE_CB), MYF(MY_WME)))) continue; partition->key_cache_inited= 0; } cnt= init_simple_key_cache(partition, key_cache_block_size, mem_per_cache, division_limit, age_threshold, changed_blocks_hash_size); if (cnt <= 0) { end_simple_key_cache(partition, 1); if (!key_cache_inited) { my_free(partition); partition= 0; } if ((i == 0 && cnt < 0) || i > 0) { /* Here we have two cases: 1. i == 0 and cnt < 0 cnt < 0 => mem_per_cache is not big enough to allocate minimal number of key blocks in the key cache of the partition. Decrease the the number of the partitions by 1 and start again. 2. i > 0 There is not enough memory for one of the succeeding partitions. Just skip this partition decreasing the number of partitions in the key cache by one. Do not change the value of mem_per_cache in both cases. */ if (key_cache_inited) { my_free(partition); partition= 0; if(key_cache_inited) memmove(partition_ptr, partition_ptr+1, sizeof(partition_ptr)*(partitions-i-1)); } if (!--partitions) break; } else { /* We come here when i == 0 && cnt == 0. cnt == 0 => the memory allocator fails to allocate a block of memory of the size mem_per_cache. Decrease the value of mem_per_cache without changing the current number of partitions and start again. Make sure that such a decrease may happen not more than 5 times in total. */ if (use_mem <= mem_decr) break; use_mem-= mem_decr; } i--; mem_per_cache= use_mem/partitions; continue; } else { blocks+= cnt; *partition_ptr++= partition; } } keycache->partitions= partitions= (uint) (partition_ptr-keycache->partition_array); keycache->key_cache_mem_size= mem_per_cache * partitions; for (i= 0; i < (int) partitions; i++) keycache->partition_array[i]->hash_factor= partitions; keycache->key_cache_inited= 1; if (!partitions) blocks= -1; DBUG_RETURN(blocks); }
O3
c
init_partitioned_key_cache: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movl %r9d, -0x60(%rbp) movl %r8d, -0x5c(%rbp) movl %ecx, -0x58(%rbp) movl 0x1c(%rdi), %r14d movl %esi, -0x54(%rbp) movl %esi, 0x18(%rdi) cmpb $0x0, (%rdi) movq %rdi, -0x38(%rbp) je 0x9a648 movq %rdi, %r15 movq 0x8(%rdi), %r12 jmp 0x9a68d movq %rdx, %rbx leaq 0xb6dff6(%rip), %rax # 0xc08648 movl (%rax), %edi leaq (,%r14,8), %r15 movl $0x10, %edx movq %r15, %rsi callq 0x9ff21 testq %rax, %rax je 0x9a856 movq %rax, %r12 movq %rax, %rdi xorl %esi, %esi movq %r15, %rdx callq 0x292b0 movq -0x38(%rbp), %r15 movq %r12, 0x8(%r15) movq %rbx, %rdx xorl %edi, %edi movq %rdx, -0x40(%rbp) movq %rdx, %rax xorl %edx, %edx divq %r14 movabsq $-0x3333333333333333, %rcx # imm = 0xCCCCCCCCCCCCCCCD movq %rax, -0x50(%rbp) mulq %rcx testl %r14d, %r14d jle 0x9a7fe shrq $0x2, %rdx movq %rdx, -0x68(%rbp) movq $0x0, -0x48(%rbp) xorl %ebx, %ebx movb (%r15), %r13b testb %r13b, %r13b movq %r12, -0x30(%rbp) je 0x9a6d9 movq (%r12), %r12 jmp 0x9a700 leaq 0xb6df68(%rip), %rax # 0xc08648 movl (%rax), %edi movl $0x170, %esi # imm = 0x170 movl $0x10, %edx callq 0x9ff21 testq %rax, %rax je 0x9a78a movq %rax, %r12 movb $0x0, (%rax) movq %r12, %rdi movl -0x54(%rbp), %esi movq -0x50(%rbp), %rdx movl -0x58(%rbp), %ecx movl -0x5c(%rbp), %r8d movl -0x60(%rbp), %r9d callq 0x98c35 movl %eax, %r15d testl %eax, %eax jle 0x9a743 movq -0x48(%rbp), %rax addl %r15d, %eax movq %rax, -0x48(%rbp) movq -0x30(%rbp), %rax movq %r12, (%rax) movq %rax, %r12 addq $0x8, %r12 movq -0x38(%rbp), %r15 jmp 0x9a7e6 movq %r12, %rdi movl $0x1, %esi callq 0x99b36 testb %r13b, %r13b je 0x9a790 testl %ebx, %ebx sete %al testl %r15d, %r15d setne %cl testl %ebx, %ebx jg 0x9a768 andb %cl, %al je 0x9a7ab movq %r12, %rdi callq 0xa014e movq -0x30(%rbp), %rdi leaq 0x8(%rdi), %rsi movl %ebx, %edx notl %edx addl %r14d, %edx shlq $0x3, %rdx callq 0x29120 jmp 0x9a7c3 movq -0x30(%rbp), %r12 jmp 0x9a7e6 movq %r12, %rdi callq 0xa014e testl %ebx, %ebx sete %al testl %r15d, %r15d setne %cl testl %ebx, %ebx jg 0x9a7c3 andb %cl, %al jne 0x9a7c3 movq -0x40(%rbp), %rax subq -0x68(%rbp), %rax movq -0x38(%rbp), %r15 jbe 0x9a85d movq -0x30(%rbp), %r12 jmp 0x9a7d4 decl %r14d movq -0x38(%rbp), %r15 movq -0x40(%rbp), %rax movq -0x30(%rbp), %r12 je 0x9a7f1 decl %ebx movl %r14d, %ecx movq %rax, -0x40(%rbp) xorl %edx, %edx divq %rcx movq %rax, -0x50(%rbp) incl %ebx cmpl %r14d, %ebx jl 0x9a6c7 movq %r12, %rcx movq 0x8(%r15), %r12 movq -0x48(%rbp), %rdi jmp 0x9a801 movq %r12, %rcx subq %r12, %rcx shrq $0x3, %rcx movl %ecx, 0x1c(%r15) movl %ecx, %eax imulq -0x50(%rbp), %rax movq %rax, 0x10(%r15) testl %ecx, %ecx jle 0x9a83a movl %ecx, %eax andl $0x7fffffff, %eax # imm = 0x7FFFFFFF xorl %edx, %edx movq 0x8(%r15), %rsi movq (%rsi,%rdx,8), %rsi movl %ecx, 0x164(%rsi) incq %rdx cmpq %rdx, %rax jne 0x9a824 movb $0x1, (%r15) xorl %eax, %eax cmpl $0x1, %ecx sbbl %eax, %eax orl %edi, %eax addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0xffffffff, %eax # imm = 0xFFFFFFFF jmp 0x9a847 movq -0x30(%rbp), %r12 jmp 0x9a7f1
init_partitioned_key_cache: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h mov [rbp+var_60], r9d mov [rbp+var_5C], r8d mov [rbp+var_58], ecx mov r14d, [rdi+1Ch] mov [rbp+var_54], esi mov [rdi+18h], esi cmp byte ptr [rdi], 0 mov [rbp+var_38], rdi jz short loc_9A648 mov r15, rdi mov r12, [rdi+8] jmp short loc_9A68D loc_9A648: mov rbx, rdx lea rax, key_memory_KEY_CACHE mov edi, [rax] lea r15, ds:0[r14*8] mov edx, 10h mov rsi, r15 call my_malloc test rax, rax jz loc_9A856 mov r12, rax mov rdi, rax xor esi, esi mov rdx, r15 call _memset mov r15, [rbp+var_38] mov [r15+8], r12 mov rdx, rbx loc_9A68D: xor edi, edi mov [rbp+var_40], rdx mov rax, rdx xor edx, edx div r14 mov rcx, 0CCCCCCCCCCCCCCCDh mov [rbp+var_50], rax mul rcx test r14d, r14d jle loc_9A7FE shr rdx, 2 mov [rbp+var_68], rdx mov [rbp+var_48], 0 xor ebx, ebx loc_9A6C7: mov r13b, [r15] test r13b, r13b mov [rbp+var_30], r12 jz short loc_9A6D9 mov r12, [r12] jmp short loc_9A700 loc_9A6D9: lea rax, key_memory_KEY_CACHE mov edi, [rax] mov esi, 170h mov edx, 10h call my_malloc test rax, rax jz loc_9A78A mov r12, rax mov byte ptr [rax], 0 loc_9A700: mov rdi, r12 mov esi, [rbp+var_54] mov rdx, [rbp+var_50] mov ecx, [rbp+var_58] mov r8d, [rbp+var_5C] mov r9d, [rbp+var_60] call init_simple_key_cache mov r15d, eax test eax, eax jle short loc_9A743 mov rax, [rbp+var_48] add eax, r15d mov [rbp+var_48], rax mov rax, [rbp+var_30] mov [rax], r12 mov r12, rax add r12, 8 mov r15, [rbp+var_38] jmp loc_9A7E6 loc_9A743: mov rdi, r12 mov esi, 1 call end_simple_key_cache test r13b, r13b jz short loc_9A790 test ebx, ebx setz al test r15d, r15d setnz cl test ebx, ebx jg short loc_9A768 and al, cl jz short loc_9A7AB loc_9A768: mov rdi, r12 call my_free mov rdi, [rbp+var_30] lea rsi, [rdi+8] mov edx, ebx not edx add edx, r14d shl rdx, 3 call _memmove jmp short loc_9A7C3 loc_9A78A: mov r12, [rbp+var_30] jmp short loc_9A7E6 loc_9A790: mov rdi, r12 call my_free test ebx, ebx setz al test r15d, r15d setnz cl test ebx, ebx jg short loc_9A7C3 and al, cl jnz short loc_9A7C3 loc_9A7AB: mov rax, [rbp+var_40] sub rax, [rbp+var_68] mov r15, [rbp+var_38] jbe loc_9A85D mov r12, [rbp+var_30] jmp short loc_9A7D4 loc_9A7C3: dec r14d mov r15, [rbp+var_38] mov rax, [rbp+var_40] mov r12, [rbp+var_30] jz short loc_9A7F1 loc_9A7D4: dec ebx mov ecx, r14d mov [rbp+var_40], rax xor edx, edx div rcx mov [rbp+var_50], rax loc_9A7E6: inc ebx cmp ebx, r14d jl loc_9A6C7 loc_9A7F1: mov rcx, r12 mov r12, [r15+8] mov rdi, [rbp+var_48] jmp short loc_9A801 loc_9A7FE: mov rcx, r12 loc_9A801: sub rcx, r12 shr rcx, 3 mov [r15+1Ch], ecx mov eax, ecx imul rax, [rbp+var_50] mov [r15+10h], rax test ecx, ecx jle short loc_9A83A mov eax, ecx and eax, 7FFFFFFFh xor edx, edx loc_9A824: mov rsi, [r15+8] mov rsi, [rsi+rdx*8] mov [rsi+164h], ecx inc rdx cmp rax, rdx jnz short loc_9A824 loc_9A83A: mov byte ptr [r15], 1 xor eax, eax cmp ecx, 1 sbb eax, eax or eax, edi loc_9A847: add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_9A856: mov eax, 0FFFFFFFFh jmp short loc_9A847 loc_9A85D: mov r12, [rbp+var_30] jmp short loc_9A7F1
long long init_partitioned_key_cache( char *a1, unsigned int a2, unsigned long long a3, unsigned int a4, unsigned int a5, unsigned int a6) { unsigned long long v6; // r14 char *v7; // r15 char **v8; // r12 unsigned long long v9; // rbx long long v10; // rax int v11; // edi unsigned __int128 v12; // rax int v13; // ebx char v14; // r13 char *v15; // r12 char *v16; // rax int inited; // r15d unsigned long long v18; // rax char **v19; // rcx unsigned long long v20; // rcx long long v21; // rdx unsigned long long v23; // [rsp+8h] [rbp-68h] unsigned long long v27; // [rsp+20h] [rbp-50h] int v28; // [rsp+28h] [rbp-48h] unsigned long long v29; // [rsp+30h] [rbp-40h] char **v31; // [rsp+40h] [rbp-30h] v6 = *((unsigned int *)a1 + 7); *((_DWORD *)a1 + 6) = a2; if ( *a1 ) { v7 = a1; v8 = (char **)*((_QWORD *)a1 + 1); } else { v9 = a3; v10 = my_malloc(key_memory_KEY_CACHE, 8 * v6, 16LL); if ( !v10 ) return 0xFFFFFFFFLL; v8 = (char **)v10; memset(v10, 0LL, 8 * v6); v7 = a1; *((_QWORD *)a1 + 1) = v8; a3 = v9; } v11 = 0; v29 = a3; v27 = a3 / v6; v12 = 0xCCCCCCCCCCCCCCCDLL * (unsigned __int128)(a3 / v6); if ( (int)v6 <= 0 ) { v19 = v8; goto LABEL_27; } v23 = *((_QWORD *)&v12 + 1) >> 2; v28 = 0; v13 = 0; while ( 1 ) { v14 = *v7; v31 = v8; if ( *v7 ) { v15 = *v8; } else { v16 = (char *)my_malloc(key_memory_KEY_CACHE, 368LL, 16LL); if ( !v16 ) goto LABEL_24; v15 = v16; *v16 = 0; } inited = init_simple_key_cache(v15, a2, v27, a4, a5, a6); if ( inited <= 0 ) break; v28 += inited; *v31 = v15; v8 = v31 + 1; v7 = a1; LABEL_24: if ( ++v13 >= (int)v6 ) goto LABEL_25; } end_simple_key_cache((long long)v15, 1); if ( v14 ) { if ( v13 > 0 || inited != 0 && v13 == 0 ) { my_free(v15); memmove(v31, v31 + 1, 8LL * (unsigned int)(v6 + ~v13)); goto LABEL_22; } } else { my_free(v15); if ( v13 > 0 || inited != 0 && v13 == 0 ) { LABEL_22: LODWORD(v6) = v6 - 1; v7 = a1; v18 = v29; v8 = v31; if ( !(_DWORD)v6 ) goto LABEL_25; goto LABEL_23; } } v18 = v29 - v23; v7 = a1; if ( v29 > v23 ) { v8 = v31; LABEL_23: --v13; v29 = v18; v27 = v18 / (unsigned int)v6; goto LABEL_24; } v8 = v31; LABEL_25: v19 = v8; v8 = (char **)*((_QWORD *)v7 + 1); v11 = v28; LABEL_27: v20 = (unsigned long long)((char *)v19 - (char *)v8) >> 3; *((_DWORD *)v7 + 7) = v20; *((_QWORD *)v7 + 2) = v27 * (unsigned int)v20; if ( (int)v20 > 0 ) { v21 = 0LL; do *(_DWORD *)(*(_QWORD *)(*((_QWORD *)v7 + 1) + 8 * v21++) + 356LL) = v20; while ( (v20 & 0x7FFFFFFF) != v21 ); } *v7 = 1; return v11 | (unsigned int)-((_DWORD)v20 == 0); }
init_partitioned_key_cache: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 MOV dword ptr [RBP + -0x60],R9D MOV dword ptr [RBP + -0x5c],R8D MOV dword ptr [RBP + -0x58],ECX MOV R14D,dword ptr [RDI + 0x1c] MOV dword ptr [RBP + -0x54],ESI MOV dword ptr [RDI + 0x18],ESI CMP byte ptr [RDI],0x0 MOV qword ptr [RBP + -0x38],RDI JZ 0x0019a648 MOV R15,RDI MOV R12,qword ptr [RDI + 0x8] JMP 0x0019a68d LAB_0019a648: MOV RBX,RDX LEA RAX,[0xd08648] MOV EDI,dword ptr [RAX] LEA R15,[R14*0x8] MOV EDX,0x10 MOV RSI,R15 CALL 0x0019ff21 TEST RAX,RAX JZ 0x0019a856 MOV R12,RAX MOV RDI,RAX XOR ESI,ESI MOV RDX,R15 CALL 0x001292b0 MOV R15,qword ptr [RBP + -0x38] MOV qword ptr [R15 + 0x8],R12 MOV RDX,RBX LAB_0019a68d: XOR EDI,EDI MOV qword ptr [RBP + -0x40],RDX MOV RAX,RDX XOR EDX,EDX DIV R14 MOV RCX,-0x3333333333333333 MOV qword ptr [RBP + -0x50],RAX MUL RCX TEST R14D,R14D JLE 0x0019a7fe SHR RDX,0x2 MOV qword ptr [RBP + -0x68],RDX MOV qword ptr [RBP + -0x48],0x0 XOR EBX,EBX LAB_0019a6c7: MOV R13B,byte ptr [R15] TEST R13B,R13B MOV qword ptr [RBP + -0x30],R12 JZ 0x0019a6d9 MOV R12,qword ptr [R12] JMP 0x0019a700 LAB_0019a6d9: LEA RAX,[0xd08648] MOV EDI,dword ptr [RAX] MOV ESI,0x170 MOV EDX,0x10 CALL 0x0019ff21 TEST RAX,RAX JZ 0x0019a78a MOV R12,RAX MOV byte ptr [RAX],0x0 LAB_0019a700: MOV RDI,R12 MOV ESI,dword ptr [RBP + -0x54] MOV RDX,qword ptr [RBP + -0x50] MOV ECX,dword ptr [RBP + -0x58] MOV R8D,dword ptr [RBP + -0x5c] MOV R9D,dword ptr [RBP + -0x60] CALL 0x00198c35 MOV R15D,EAX TEST EAX,EAX JLE 0x0019a743 MOV RAX,qword ptr [RBP + -0x48] ADD EAX,R15D MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RAX],R12 MOV R12,RAX ADD R12,0x8 MOV R15,qword ptr [RBP + -0x38] JMP 0x0019a7e6 LAB_0019a743: MOV RDI,R12 MOV ESI,0x1 CALL 0x00199b36 TEST R13B,R13B JZ 0x0019a790 TEST EBX,EBX SETZ AL TEST R15D,R15D SETNZ CL TEST EBX,EBX JG 0x0019a768 AND AL,CL JZ 0x0019a7ab LAB_0019a768: MOV RDI,R12 CALL 0x001a014e MOV RDI,qword ptr [RBP + -0x30] LEA RSI,[RDI + 0x8] MOV EDX,EBX NOT EDX ADD EDX,R14D SHL RDX,0x3 CALL 0x00129120 JMP 0x0019a7c3 LAB_0019a78a: MOV R12,qword ptr [RBP + -0x30] JMP 0x0019a7e6 LAB_0019a790: MOV RDI,R12 CALL 0x001a014e TEST EBX,EBX SETZ AL TEST R15D,R15D SETNZ CL TEST EBX,EBX JG 0x0019a7c3 AND AL,CL JNZ 0x0019a7c3 LAB_0019a7ab: MOV RAX,qword ptr [RBP + -0x40] SUB RAX,qword ptr [RBP + -0x68] MOV R15,qword ptr [RBP + -0x38] JBE 0x0019a85d MOV R12,qword ptr [RBP + -0x30] JMP 0x0019a7d4 LAB_0019a7c3: DEC R14D MOV R15,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x40] MOV R12,qword ptr [RBP + -0x30] JZ 0x0019a7f1 LAB_0019a7d4: DEC EBX MOV ECX,R14D MOV qword ptr [RBP + -0x40],RAX XOR EDX,EDX DIV RCX MOV qword ptr [RBP + -0x50],RAX LAB_0019a7e6: INC EBX CMP EBX,R14D JL 0x0019a6c7 LAB_0019a7f1: MOV RCX,R12 MOV R12,qword ptr [R15 + 0x8] MOV RDI,qword ptr [RBP + -0x48] JMP 0x0019a801 LAB_0019a7fe: MOV RCX,R12 LAB_0019a801: SUB RCX,R12 SHR RCX,0x3 MOV dword ptr [R15 + 0x1c],ECX MOV EAX,ECX IMUL RAX,qword ptr [RBP + -0x50] MOV qword ptr [R15 + 0x10],RAX TEST ECX,ECX JLE 0x0019a83a MOV EAX,ECX AND EAX,0x7fffffff XOR EDX,EDX LAB_0019a824: MOV RSI,qword ptr [R15 + 0x8] MOV RSI,qword ptr [RSI + RDX*0x8] MOV dword ptr [RSI + 0x164],ECX INC RDX CMP RAX,RDX JNZ 0x0019a824 LAB_0019a83a: MOV byte ptr [R15],0x1 XOR EAX,EAX CMP ECX,0x1 SBB EAX,EAX OR EAX,EDI LAB_0019a847: ADD RSP,0x48 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0019a856: MOV EAX,0xffffffff JMP 0x0019a847 LAB_0019a85d: MOV R12,qword ptr [RBP + -0x30] JMP 0x0019a7f1
uint init_partitioned_key_cache (char *param_1,int4 param_2,ulong param_3,int4 param_4,int4 param_5 ,int4 param_6) { char cVar1; int iVar2; uint uVar3; int8 *__s; int1 *puVar4; ulong uVar5; ulong uVar6; uint uVar7; int8 *puVar8; uint uVar9; bool bVar10; ulong local_58; ulong local_48; uVar7 = *(uint *)(param_1 + 0x1c); uVar5 = (ulong)uVar7; *(int4 *)(param_1 + 0x18) = param_2; if (*param_1 == '\0') { __s = (int8 *)my_malloc(key_memory_KEY_CACHE,uVar5 * 8,0x10); if (__s == (int8 *)0x0) { return 0xffffffff; } memset(__s,0,uVar5 * 8); *(int8 **)(param_1 + 8) = __s; } else { __s = *(int8 **)(param_1 + 8); } uVar3 = 0; local_58 = param_3 / uVar5; puVar8 = __s; if (0 < (int)uVar7) { uVar6 = local_58 / 5; uVar3 = 0; uVar7 = 0; local_48 = param_3; do { cVar1 = *param_1; if (cVar1 == '\0') { puVar4 = (int1 *)my_malloc(key_memory_KEY_CACHE,0x170,0x10); if (puVar4 != (int1 *)0x0) { *puVar4 = 0; goto LAB_0019a700; } } else { puVar4 = (int1 *)*__s; LAB_0019a700: iVar2 = init_simple_key_cache(puVar4,param_2,local_58,param_4,param_5,param_6); if (iVar2 < 1) { end_simple_key_cache(puVar4,1); if (cVar1 == '\0') { my_free(puVar4); if (((int)uVar7 < 1) && (uVar7 != 0 || iVar2 == 0)) goto LAB_0019a7ab; LAB_0019a7c3: uVar9 = (int)uVar5 - 1; uVar5 = (ulong)uVar9; if (uVar9 == 0) break; } else { if ((0 < (int)uVar7) || (uVar7 == 0 && iVar2 != 0)) { my_free(puVar4); memmove(__s,__s + 1,(ulong)(~uVar7 + (int)uVar5) << 3); goto LAB_0019a7c3; } LAB_0019a7ab: bVar10 = local_48 < uVar6; local_48 = local_48 - uVar6; if (bVar10 || local_48 == 0) break; } uVar7 = uVar7 - 1; local_58 = local_48 / uVar5; } else { uVar3 = uVar3 + iVar2; *__s = puVar4; __s = __s + 1; } } uVar7 = uVar7 + 1; } while ((int)uVar7 < (int)uVar5); puVar8 = *(int8 **)(param_1 + 8); } uVar5 = (ulong)((long)__s - (long)puVar8) >> 3; uVar7 = (uint)uVar5; *(uint *)(param_1 + 0x1c) = uVar7; *(ulong *)(param_1 + 0x10) = (uVar5 & 0xffffffff) * local_58; if (0 < (int)uVar7) { uVar5 = 0; do { *(uint *)(*(long *)(*(long *)(param_1 + 8) + uVar5 * 8) + 0x164) = uVar7; uVar5 = uVar5 + 1; } while ((uVar7 & 0x7fffffff) != uVar5); } *param_1 = '\x01'; return -(uint)(uVar7 == 0) | uVar3; }
65,270
js_std_tmpfile
bluesky950520[P]quickjs/quickjs-libc.c
static JSValue js_std_tmpfile(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { FILE *f; f = tmpfile(); if (argc >= 1) js_set_error_object(ctx, argv[0], f ? 0 : errno); if (!f) return JS_NULL; return js_new_std_file(ctx, f, FALSE); }
O1
c
js_std_tmpfile: pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %r8, %r15 movl %ecx, %ebp movq %rdi, %rbx callq 0xe4f0 movq %rax, %r14 testl %ebp, %ebp jle 0x17014 testq %r14, %r14 je 0x16fee xorl %r8d, %r8d jmp 0x16ff6 callq 0xe0b0 movl (%rax), %r8d movq 0x8(%r15), %rdx cmpl $0x3, %edx je 0x17014 movq (%r15), %rsi leaq 0x83612(%rip), %rcx # 0x9a61b movq %rbx, %rdi xorl %r9d, %r9d callq 0x24814 testq %r14, %r14 je 0x17028 movq %rbx, %rdi movq %r14, %rsi xorl %edx, %edx callq 0x15163 jmp 0x1702f movl $0x2, %edx xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
js_std_tmpfile: push rbp push r15 push r14 push rbx push rax mov r15, r8 mov ebp, ecx mov rbx, rdi call _tmpfile mov r14, rax test ebp, ebp jle short loc_17014 test r14, r14 jz short loc_16FEE xor r8d, r8d jmp short loc_16FF6 loc_16FEE: call ___errno_location mov r8d, [rax] loc_16FF6: mov rdx, [r15+8] cmp edx, 3 jz short loc_17014 mov rsi, [r15] lea rcx, aErrno; "errno" mov rdi, rbx xor r9d, r9d call JS_SetPropertyStr loc_17014: test r14, r14 jz short loc_17028 mov rdi, rbx mov rsi, r14 xor edx, edx call js_new_std_file jmp short loc_1702F loc_17028: mov edx, 2 xor eax, eax loc_1702F: add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
unsigned long long js_std_tmpfile(long long a1, long long a2, long long a3, int a4, _QWORD *a5) { long long v7; // rax long long v8; // r14 long long v9; // r8 long long v10; // rdx v7 = tmpfile(a1); v8 = v7; if ( a4 > 0 ) { v9 = v7 ? 0LL : *(unsigned int *)__errno_location(a1); v10 = a5[1]; if ( (_DWORD)v10 != 3 ) JS_SetPropertyStr(a1, *a5, v10, "errno", v9, 0LL); } if ( v8 ) return js_new_std_file(a1, v8, 0); else return 0LL; }
js_std_tmpfile: PUSH RBP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV R15,R8 MOV EBP,ECX MOV RBX,RDI CALL 0x0010e4f0 MOV R14,RAX TEST EBP,EBP JLE 0x00117014 TEST R14,R14 JZ 0x00116fee XOR R8D,R8D JMP 0x00116ff6 LAB_00116fee: CALL 0x0010e0b0 MOV R8D,dword ptr [RAX] LAB_00116ff6: MOV RDX,qword ptr [R15 + 0x8] CMP EDX,0x3 JZ 0x00117014 MOV RSI,qword ptr [R15] LEA RCX,[0x19a61b] MOV RDI,RBX XOR R9D,R9D CALL 0x00124814 LAB_00117014: TEST R14,R14 JZ 0x00117028 MOV RDI,RBX MOV RSI,R14 XOR EDX,EDX CALL 0x00115163 JMP 0x0011702f LAB_00117028: MOV EDX,0x2 XOR EAX,EAX LAB_0011702f: ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
int8 js_std_tmpfile(int8 param_1,int8 param_2,int8 param_3,int param_4, int8 *param_5) { FILE *pFVar1; int *piVar2; int8 uVar3; int iVar4; pFVar1 = tmpfile(); if (0 < param_4) { if (pFVar1 == (FILE *)0x0) { piVar2 = __errno_location(); iVar4 = *piVar2; } else { iVar4 = 0; } if ((int)param_5[1] != 3) { JS_SetPropertyStr(param_1,*param_5,param_5[1],"errno",iVar4,0); } } if (pFVar1 == (FILE *)0x0) { uVar3 = 0; } else { uVar3 = js_new_std_file(param_1,pFVar1,0); } return uVar3; }
65,271
lzr_imap_handle_reponse
xtate/src/probe-modules/lzr-probes/lzr-imap.c
static unsigned lzr_imap_handle_reponse(unsigned th_idx, ProbeTarget *target, const unsigned char *px, unsigned sizeof_px, OutItem *item) { if (safe_memismem(px, sizeof_px, "imap", strlen("imap"))) { item->level = OUT_SUCCESS; safe_strcpy(item->classification, OUT_CLS_SIZE, "imap"); safe_strcpy(item->reason, OUT_RSN_SIZE, "matched"); return 0; } /** * ref to nmap. * must be compatible with lzr-pop3 */ if (safe_bytes_equals(px, sizeof_px, "* OK", strlen("* OK")) || safe_bytes_equals(px, sizeof_px, "* BYE", strlen("* BYE")) || safe_bytes_equals(px, sizeof_px, "+OK", strlen("+OK"))) { item->level = OUT_SUCCESS; safe_strcpy(item->classification, OUT_CLS_SIZE, "imap"); safe_strcpy(item->reason, OUT_RSN_SIZE, "matched"); return 0; } item->level = OUT_FAILURE; safe_strcpy(item->classification, OUT_CLS_SIZE, "not imap"); safe_strcpy(item->reason, OUT_RSN_SIZE, "not matched"); return 0; }
O3
c
lzr_imap_handle_reponse: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %r8, %rbx movq %rdx, %r13 movl %ecx, %r12d leaq 0x3c711(%rip), %r14 # 0x68094 movl $0x4, %ecx movq %rdx, %rdi movq %r12, %rsi movq %r14, %rdx callq 0x512e2 leaq 0x3e7c3(%rip), %r15 # 0x6a160 movl $0x2, %ebp testq %rax, %rax jne 0x2ba0b leaq 0x3c6d3(%rip), %rdx # 0x68081 movl $0x4, %ecx movq %r13, %rdi movq %r12, %rsi callq 0x51d41 testb %al, %al jne 0x2ba0b leaq 0x3c6bd(%rip), %rdx # 0x68086 movl $0x5, %ecx movq %r13, %rdi movq %r12, %rsi callq 0x51d41 testb %al, %al jne 0x2ba0b leaq 0x3c6a8(%rip), %rdx # 0x6808c movl $0x3, %ecx movq %r13, %rdi movq %r12, %rsi callq 0x51d41 testb %al, %al jne 0x2ba0b leaq 0x3e70b(%rip), %r15 # 0x6a10a leaq 0x3c68a(%rip), %r14 # 0x68090 movl $0x1, %ebp movl %ebp, 0x8(%rbx) leaq 0x50(%rbx), %rdi movl $0x1e, %esi movq %r14, %rdx callq 0x51195 addq $0x6e, %rbx movl $0x1e, %esi movq %rbx, %rdi movq %r15, %rdx callq 0x51195 xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
lzr_imap_handle_reponse: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, r8 mov r13, rdx mov r12d, ecx lea r14, aNotImap+4; "imap" mov ecx, 4 mov rdi, rdx mov rsi, r12 mov rdx, r14 call safe_memismem lea r15, aProtocolMatche_0+9; "matched" mov ebp, 2 test rax, rax jnz short loc_2BA0B lea rdx, aOk; "* OK" mov ecx, 4 mov rdi, r13 mov rsi, r12 call safe_bytes_equals test al, al jnz short loc_2BA0B lea rdx, aBye; "* BYE" mov ecx, 5 mov rdi, r13 mov rsi, r12 call safe_bytes_equals test al, al jnz short loc_2BA0B lea rdx, aOk_0; "+OK" mov ecx, 3 mov rdi, r13 mov rsi, r12 call safe_bytes_equals test al, al jnz short loc_2BA0B lea r15, aProtocolNotMat+9; "not matched" lea r14, aNotImap; "not imap" mov ebp, 1 loc_2BA0B: mov [rbx+8], ebp lea rdi, [rbx+50h] mov esi, 1Eh mov rdx, r14 call safe_strcpy add rbx, 6Eh ; 'n' mov esi, 1Eh mov rdi, rbx mov rdx, r15 call safe_strcpy xor eax, eax add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long lzr_imap_handle_reponse(long long a1, long long a2, long long a3, unsigned int a4, long long a5) { long long v7; // r12 int v8; // ebp v7 = a4; v8 = 2; if ( !safe_memismem(a3, a4, "imap", 4LL) && !(unsigned __int8)safe_bytes_equals(a3, v7, "* OK", 4LL) && !(unsigned __int8)safe_bytes_equals(a3, v7, "* BYE", 5LL) && !(unsigned __int8)safe_bytes_equals(a3, v7, "+OK", 3LL) ) { v8 = 1; } *(_DWORD *)(a5 + 8) = v8; safe_strcpy(a5 + 80, 30LL); safe_strcpy(a5 + 110, 30LL); return 0LL; }
lzr_imap_handle_reponse: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,R8 MOV R13,RDX MOV R12D,ECX LEA R14,[0x168094] MOV ECX,0x4 MOV RDI,RDX MOV RSI,R12 MOV RDX,R14 CALL 0x001512e2 LEA R15,[0x16a160] MOV EBP,0x2 TEST RAX,RAX JNZ 0x0012ba0b LEA RDX,[0x168081] MOV ECX,0x4 MOV RDI,R13 MOV RSI,R12 CALL 0x00151d41 TEST AL,AL JNZ 0x0012ba0b LEA RDX,[0x168086] MOV ECX,0x5 MOV RDI,R13 MOV RSI,R12 CALL 0x00151d41 TEST AL,AL JNZ 0x0012ba0b LEA RDX,[0x16808c] MOV ECX,0x3 MOV RDI,R13 MOV RSI,R12 CALL 0x00151d41 TEST AL,AL JNZ 0x0012ba0b LEA R15,[0x16a10a] LEA R14,[0x168090] MOV EBP,0x1 LAB_0012ba0b: MOV dword ptr [RBX + 0x8],EBP LEA RDI,[RBX + 0x50] MOV ESI,0x1e MOV RDX,R14 CALL 0x00151195 ADD RBX,0x6e MOV ESI,0x1e MOV RDI,RBX MOV RDX,R15 CALL 0x00151195 XOR EAX,EAX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 lzr_imap_handle_reponse (int8 param_1,int8 param_2,int8 param_3,int4 param_4,long param_5) { char cVar1; long lVar2; int4 uVar3; char *pcVar4; char *pcVar5; pcVar4 = "imap"; lVar2 = safe_memismem(param_3,param_4,"imap",4); pcVar5 = "matched"; uVar3 = 2; if (lVar2 == 0) { cVar1 = safe_bytes_equals(param_3,param_4,&DAT_00168081,4); if (cVar1 == '\0') { cVar1 = safe_bytes_equals(param_3,param_4,"* BYE",5); if (cVar1 == '\0') { cVar1 = safe_bytes_equals(param_3,param_4,&DAT_0016808c,3); if (cVar1 == '\0') { pcVar5 = "not matched"; pcVar4 = "not imap"; uVar3 = 1; } } } } *(int4 *)(param_5 + 8) = uVar3; safe_strcpy(param_5 + 0x50,0x1e,pcVar4); safe_strcpy(param_5 + 0x6e,0x1e,pcVar5); return 0; }
65,272
common_arg::common_arg(std::initializer_list<char const*> const&, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, void (*)(common_params&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&))
monkey531[P]llama/common/arg.h
common_arg( const std::initializer_list<const char *> & args, const char * value_hint, const std::string & help, void (*handler)(common_params & params, const std::string &) ) : args(args), value_hint(value_hint), help(help), handler_string(handler) {}
O0
c
common_arg::common_arg(std::initializer_list<char const*> const&, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, void (*)(common_params&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)): subq $0xa8, %rsp movq %rdi, 0xa0(%rsp) movq %rsi, 0x98(%rsp) movq %rdx, 0x90(%rsp) movq %rcx, 0x88(%rsp) movq %r8, 0x80(%rsp) movq 0xa0(%rsp), %rax movq %rax, 0x28(%rsp) movq %rax, 0x20(%rsp) movl $0x0, 0x6c(%rsp) leaq 0x6c(%rsp), %rax movq %rax, 0x70(%rsp) movq $0x1, 0x78(%rsp) leaq 0x6a(%rsp), %rdi movq %rdi, 0x30(%rsp) callq 0x9cb00 movq 0x28(%rsp), %rdi movq 0x30(%rsp), %r8 movq 0x70(%rsp), %rsi movq 0x78(%rsp), %rdx leaq 0x6b(%rsp), %rcx callq 0x9cb10 jmp 0x8ce5b leaq 0x6a(%rsp), %rdi callq 0x9cbf0 movq 0x20(%rsp), %rax movq %rax, %rdi addq $0x30, %rdi movq %rdi, 0x8(%rsp) xorps %xmm0, %xmm0 movups %xmm0, 0x50(%rax) movups %xmm0, 0x40(%rax) movups %xmm0, 0x30(%rax) callq 0x9cc00 movq 0x20(%rsp), %rax addq $0x60, %rax movq %rax, 0x10(%rsp) movq 0x98(%rsp), %rax movups (%rax), %xmm0 movaps %xmm0, 0x40(%rsp) leaq 0x3f(%rsp), %rdi movq %rdi, 0x18(%rsp) callq 0x9cc10 movq 0x10(%rsp), %rdi movq 0x18(%rsp), %rcx movq 0x40(%rsp), %rsi movq 0x48(%rsp), %rdx callq 0x9cc20 jmp 0x8ced2 leaq 0x3f(%rsp), %rdi callq 0x9ccb0 movq 0x20(%rsp), %rdi movq 0x90(%rsp), %rax movq %rax, 0x78(%rdi) movq $0x0, 0x80(%rdi) movq $0x0, 0x88(%rdi) addq $0x90, %rdi movq 0x88(%rsp), %rsi callq 0x5a200 jmp 0x8cf19 movq 0x20(%rsp), %rax movb $0x0, 0xb0(%rax) movq $0x0, 0xb8(%rax) movq 0x80(%rsp), %rcx movq %rcx, 0xc0(%rax) movq $0x0, 0xc8(%rax) movq $0x0, 0xd0(%rax) addq $0xa8, %rsp retq movq %rax, %rcx movl %edx, %eax movq %rcx, 0x60(%rsp) movl %eax, 0x5c(%rsp) leaq 0x6a(%rsp), %rdi callq 0x9cbf0 jmp 0x8cfbd movq %rax, %rcx movl %edx, %eax movq %rcx, 0x60(%rsp) movl %eax, 0x5c(%rsp) leaq 0x3f(%rsp), %rdi callq 0x9ccb0 jmp 0x8cfa9 movq 0x10(%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0x60(%rsp) movl %eax, 0x5c(%rsp) callq 0x9ccc0 movq 0x8(%rsp), %rdi callq 0x9cd20 movq 0x28(%rsp), %rdi callq 0x9cd20 movq 0x60(%rsp), %rdi callq 0x5abf0 nopw (%rax,%rax)
_ZN10common_argC2ERKSt16initializer_listIPKcES2_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPFvR13common_paramsSD_E: sub rsp, 0A8h mov [rsp+0A8h+var_8], rdi mov [rsp+0A8h+var_10], rsi mov [rsp+0A8h+var_18], rdx mov [rsp+0A8h+var_20], rcx mov [rsp+0A8h+var_28], r8 mov rax, [rsp+0A8h+var_8] mov [rsp+0A8h+var_80], rax mov [rsp+0A8h+var_88], rax mov [rsp+0A8h+var_3C], 0 lea rax, [rsp+0A8h+var_3C] mov [rsp+0A8h+var_38], rax mov [rsp+0A8h+var_30], 1 lea rdi, [rsp+0A8h+var_3E] mov [rsp+0A8h+var_78], rdi call _ZNSaI13llama_exampleEC2Ev; std::allocator<llama_example>::allocator(void) mov rdi, [rsp+0A8h+var_80] mov r8, [rsp+0A8h+var_78] mov rsi, [rsp+0A8h+var_38] mov rdx, [rsp+0A8h+var_30] lea rcx, [rsp+0A8h+var_3D] call _ZNSt3setI13llama_exampleSt4lessIS0_ESaIS0_EEC2ESt16initializer_listIS0_ERKS2_RKS3_; std::set<llama_example>::set(std::initializer_list<llama_example>,std::less<llama_example> const&,std::allocator<llama_example> const&) jmp short $+2 loc_8CE5B: lea rdi, [rsp+0A8h+var_3E] call _ZNSaI13llama_exampleED2Ev; std::allocator<llama_example>::~allocator() mov rax, [rsp+0A8h+var_88] mov rdi, rax add rdi, 30h ; '0' mov [rsp+0A8h+var_A0], rdi xorps xmm0, xmm0 movups xmmword ptr [rax+50h], xmm0 movups xmmword ptr [rax+40h], xmm0 movups xmmword ptr [rax+30h], xmm0 call _ZNSt3setI13llama_exampleSt4lessIS0_ESaIS0_EEC2Ev; std::set<llama_example>::set(void) mov rax, [rsp+0A8h+var_88] add rax, 60h ; '`' mov [rsp+0A8h+var_98], rax mov rax, [rsp+0A8h+var_10] movups xmm0, xmmword ptr [rax] movaps [rsp+0A8h+var_68], xmm0 lea rdi, [rsp+0A8h+var_69] mov [rsp+0A8h+var_90], rdi call _ZNSaIPKcEC2Ev; std::allocator<char const*>::allocator(void) mov rdi, [rsp+0A8h+var_98] mov rcx, [rsp+0A8h+var_90] mov rsi, qword ptr [rsp+0A8h+var_68] mov rdx, qword ptr [rsp+0A8h+var_68+8] call _ZNSt6vectorIPKcSaIS1_EEC2ESt16initializer_listIS1_ERKS2_; std::vector<char const*>::vector(std::initializer_list<char const*>,std::allocator<char const*> const&) jmp short $+2 loc_8CED2: lea rdi, [rsp+0A8h+var_69] call _ZNSaIPKcED2Ev; std::allocator<char const*>::~allocator() mov rdi, [rsp+0A8h+var_88] mov rax, [rsp+0A8h+var_18] mov [rdi+78h], rax mov qword ptr [rdi+80h], 0 mov qword ptr [rdi+88h], 0 add rdi, 90h mov rsi, [rsp+0A8h+var_20] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&) jmp short $+2 loc_8CF19: mov rax, [rsp+0A8h+var_88] mov byte ptr [rax+0B0h], 0 mov qword ptr [rax+0B8h], 0 mov rcx, [rsp+0A8h+var_28] mov [rax+0C0h], rcx mov qword ptr [rax+0C8h], 0 mov qword ptr [rax+0D0h], 0 add rsp, 0A8h retn mov rcx, rax mov eax, edx mov [rsp+arg_58], rcx mov [rsp+arg_54], eax lea rdi, [rsp+arg_62] call _ZNSaI13llama_exampleED2Ev; std::allocator<llama_example>::~allocator() jmp short loc_8CFBD mov rcx, rax mov eax, edx mov [rsp+arg_58], rcx mov [rsp+arg_54], eax lea rdi, [rsp+arg_37] call _ZNSaIPKcED2Ev; std::allocator<char const*>::~allocator() jmp short loc_8CFA9 mov rdi, [rsp+arg_8]; void * mov rcx, rax mov eax, edx mov [rsp+arg_58], rcx mov [rsp+arg_54], eax call _ZNSt6vectorIPKcSaIS1_EED2Ev; std::vector<char const*>::~vector() loc_8CFA9: mov rdi, [rsp+arg_0] call _ZNSt3setI13llama_exampleSt4lessIS0_ESaIS0_EED2Ev; std::set<llama_example>::~set() mov rdi, [rsp+arg_20] call _ZNSt3setI13llama_exampleSt4lessIS0_ESaIS0_EED2Ev; std::set<llama_example>::~set() loc_8CFBD: mov rdi, [rsp+arg_58] call __Unwind_Resume
long long common_arg::common_arg(long long a1, __int128 *a2, long long a3, long long a4, long long a5) { int v5; // r9d int v6; // r8d int v7; // r9d long long result; // rax int v9; // [rsp+0h] [rbp-A8h] char v10; // [rsp+3Fh] [rbp-69h] BYREF __int128 v11; // [rsp+40h] [rbp-68h] char v12; // [rsp+6Ah] [rbp-3Eh] BYREF char v13; // [rsp+6Bh] [rbp-3Dh] BYREF int v14; // [rsp+6Ch] [rbp-3Ch] BYREF int *v15; // [rsp+70h] [rbp-38h] long long v16; // [rsp+78h] [rbp-30h] long long v17; // [rsp+80h] [rbp-28h] long long v18; // [rsp+88h] [rbp-20h] long long v19; // [rsp+90h] [rbp-18h] __int128 *v20; // [rsp+98h] [rbp-10h] long long v21; // [rsp+A0h] [rbp-8h] v21 = a1; v20 = a2; v19 = a3; v18 = a4; v17 = a5; v14 = 0; v15 = &v14; v16 = 1LL; std::allocator<llama_example>::allocator(); std::set<llama_example>::set(a1, (_DWORD)v15, v16, (unsigned int)&v13, (unsigned int)&v12, v5); std::allocator<llama_example>::~allocator(&v12); *(_OWORD *)(a1 + 80) = 0LL; *(_OWORD *)(a1 + 64) = 0LL; *(_OWORD *)(a1 + 48) = 0LL; std::set<llama_example>::set(); v11 = *v20; std::allocator<char const*>::allocator(); std::vector<char const*>::vector(a1 + 96, v11, DWORD2(v11), (unsigned int)&v10, v6, v7, v9); std::allocator<char const*>::~allocator(&v10); *(_QWORD *)(a1 + 120) = v19; *(_QWORD *)(a1 + 128) = 0LL; *(_QWORD *)(a1 + 136) = 0LL; std::string::basic_string(a1 + 144, v18); result = a1; *(_BYTE *)(a1 + 176) = 0; *(_QWORD *)(a1 + 184) = 0LL; *(_QWORD *)(a1 + 192) = v17; *(_QWORD *)(a1 + 200) = 0LL; *(_QWORD *)(a1 + 208) = 0LL; return result; }
common_arg: SUB RSP,0xa8 MOV qword ptr [RSP + 0xa0],RDI MOV qword ptr [RSP + 0x98],RSI MOV qword ptr [RSP + 0x90],RDX MOV qword ptr [RSP + 0x88],RCX MOV qword ptr [RSP + 0x80],R8 MOV RAX,qword ptr [RSP + 0xa0] MOV qword ptr [RSP + 0x28],RAX MOV qword ptr [RSP + 0x20],RAX MOV dword ptr [RSP + 0x6c],0x0 LEA RAX,[RSP + 0x6c] MOV qword ptr [RSP + 0x70],RAX MOV qword ptr [RSP + 0x78],0x1 LEA RDI,[RSP + 0x6a] MOV qword ptr [RSP + 0x30],RDI CALL 0x0019cb00 MOV RDI,qword ptr [RSP + 0x28] MOV R8,qword ptr [RSP + 0x30] MOV RSI,qword ptr [RSP + 0x70] MOV RDX,qword ptr [RSP + 0x78] LAB_0018ce4f: LEA RCX,[RSP + 0x6b] CALL 0x0019cb10 JMP 0x0018ce5b LAB_0018ce5b: LEA RDI,[RSP + 0x6a] CALL 0x0019cbf0 MOV RAX,qword ptr [RSP + 0x20] MOV RDI,RAX ADD RDI,0x30 MOV qword ptr [RSP + 0x8],RDI XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX + 0x50],XMM0 MOVUPS xmmword ptr [RAX + 0x40],XMM0 MOVUPS xmmword ptr [RAX + 0x30],XMM0 CALL 0x0019cc00 MOV RAX,qword ptr [RSP + 0x20] ADD RAX,0x60 MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [RSP + 0x98] MOVUPS XMM0,xmmword ptr [RAX] MOVAPS xmmword ptr [RSP + 0x40],XMM0 LEA RDI,[RSP + 0x3f] MOV qword ptr [RSP + 0x18],RDI CALL 0x0019cc10 MOV RDI,qword ptr [RSP + 0x10] MOV RCX,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RSP + 0x40] MOV RDX,qword ptr [RSP + 0x48] LAB_0018cecb: CALL 0x0019cc20 JMP 0x0018ced2 LAB_0018ced2: LEA RDI,[RSP + 0x3f] CALL 0x0019ccb0 MOV RDI,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x90] MOV qword ptr [RDI + 0x78],RAX MOV qword ptr [RDI + 0x80],0x0 MOV qword ptr [RDI + 0x88],0x0 ADD RDI,0x90 MOV RSI,qword ptr [RSP + 0x88] LAB_0018cf12: CALL 0x0015a200 LAB_0018cf17: JMP 0x0018cf19 LAB_0018cf19: MOV RAX,qword ptr [RSP + 0x20] MOV byte ptr [RAX + 0xb0],0x0 MOV qword ptr [RAX + 0xb8],0x0 MOV RCX,qword ptr [RSP + 0x80] MOV qword ptr [RAX + 0xc0],RCX MOV qword ptr [RAX + 0xc8],0x0 MOV qword ptr [RAX + 0xd0],0x0 ADD RSP,0xa8 RET
/* common_arg::common_arg(std::initializer_list<char const*> const&, char const*, std::__cxx11::string const&, void (*)(common_params&, std::__cxx11::string const&)) */ void __thiscall common_arg::common_arg (common_arg *this,initializer_list *param_1,char *param_2,string *param_3, _func_void_common_params_ptr_string_ptr *param_4) { allocator<char_const*> local_69; int8 local_68; int8 uStack_60; allocator<llama_example> local_3e; int1 local_3d; int4 local_3c; int4 *local_38; int8 local_30; _func_void_common_params_ptr_string_ptr *local_28; string *local_20; char *local_18; int8 *local_10; common_arg *local_8; local_3c = 0; local_38 = &local_3c; local_30 = 1; local_28 = param_4; local_20 = param_3; local_18 = param_2; local_10 = (int8 *)param_1; local_8 = this; std::allocator<llama_example>::allocator(&local_3e); /* try { // try from 0018ce4f to 0018ce58 has its CatchHandler @ 0018cf5d */ std::set<llama_example,std::less<llama_example>,std::allocator<llama_example>>::set (this,local_38,local_30,&local_3d,&local_3e); std::allocator<llama_example>::~allocator(&local_3e); *(int8 *)(this + 0x50) = 0; *(int8 *)(this + 0x58) = 0; *(int8 *)(this + 0x40) = 0; *(int8 *)(this + 0x48) = 0; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; std::set<llama_example,std::less<llama_example>,std::allocator<llama_example>>::set ((set<llama_example,std::less<llama_example>,std::allocator<llama_example>> *) (this + 0x30)); local_68 = *local_10; uStack_60 = local_10[1]; std::allocator<char_const*>::allocator(&local_69); /* try { // try from 0018cecb to 0018cecf has its CatchHandler @ 0018cf77 */ std::vector<char_const*,std::allocator<char_const*>>::vector (this + 0x60,local_68,uStack_60,&local_69); std::allocator<char_const*>::~allocator(&local_69); *(char **)(this + 0x78) = local_18; *(int8 *)(this + 0x80) = 0; *(int8 *)(this + 0x88) = 0; /* try { // try from 0018cf12 to 0018cf16 has its CatchHandler @ 0018cf91 */ std::__cxx11::string::string((string *)(this + 0x90),local_20); this[0xb0] = (common_arg)0x0; *(int8 *)(this + 0xb8) = 0; *(_func_void_common_params_ptr_string_ptr **)(this + 0xc0) = local_28; *(int8 *)(this + 200) = 0; *(int8 *)(this + 0xd0) = 0; return; }
65,273
reset_key_cache_counters
eloqsql/mysys/mf_keycache.c
int reset_key_cache_counters(const char *name __attribute__((unused)), KEY_CACHE *keycache, void *unused __attribute__((unused))) { int rc= 0; if (keycache->key_cache_inited) { pthread_mutex_lock(&keycache->op_lock); rc= keycache->interface_funcs->reset_counters(name, keycache->keycache_cb); pthread_mutex_unlock(&keycache->op_lock); } return rc; }
O3
c
reset_key_cache_counters: cmpb $0x0, 0x48(%rsi) je 0x9b455 pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx leaq 0x58(%rsi), %r15 movq %r15, %rdi callq 0x291e0 movq 0x8(%r14), %rsi movq 0x10(%r14), %rax movq %rbx, %rdi callq *0x38(%rax) movl %eax, %ebx movq %r15, %rdi callq 0x291b0 movl %ebx, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq xorl %eax, %eax retq
reset_key_cache_counters: cmp byte ptr [rsi+48h], 0 jz short loc_9B455 push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov r14, rsi mov rbx, rdi lea r15, [rsi+58h] mov rdi, r15 call _pthread_mutex_lock mov rsi, [r14+8] mov rax, [r14+10h] mov rdi, rbx call qword ptr [rax+38h] mov ebx, eax mov rdi, r15 call _pthread_mutex_unlock mov eax, ebx add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn loc_9B455: xor eax, eax retn
long long reset_key_cache_counters(long long a1, long long a2) { unsigned int v2; // ebx if ( !*(_BYTE *)(a2 + 72) ) return 0LL; pthread_mutex_lock(a2 + 88); v2 = (*(long long ( **)(long long, _QWORD))(*(_QWORD *)(a2 + 16) + 56LL))(a1, *(_QWORD *)(a2 + 8)); pthread_mutex_unlock(a2 + 88); return v2; }
reset_key_cache_counters: CMP byte ptr [RSI + 0x48],0x0 JZ 0x0019b455 PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI LEA R15,[RSI + 0x58] MOV RDI,R15 CALL 0x001291e0 MOV RSI,qword ptr [R14 + 0x8] MOV RAX,qword ptr [R14 + 0x10] MOV RDI,RBX CALL qword ptr [RAX + 0x38] MOV EBX,EAX MOV RDI,R15 CALL 0x001291b0 MOV EAX,EBX ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET LAB_0019b455: XOR EAX,EAX RET
int4 reset_key_cache_counters(int8 param_1,long param_2) { int4 uVar1; if (*(char *)(param_2 + 0x48) != '\0') { pthread_mutex_lock((pthread_mutex_t *)(param_2 + 0x58)); uVar1 = (**(code **)(*(long *)(param_2 + 0x10) + 0x38))(param_1,*(int8 *)(param_2 + 8)); pthread_mutex_unlock((pthread_mutex_t *)(param_2 + 0x58)); return uVar1; } return 0; }
65,274
ma_remove_table_from_trnman
eloqsql/storage/maria/ma_state.c
void _ma_remove_table_from_trnman(MARIA_HA *info) { MARIA_SHARE *share= info->s; TRN *trn= info->trn; MARIA_USED_TABLES *tables, **prev; DBUG_ENTER("_ma_remove_table_from_trnman"); DBUG_PRINT("enter", ("trn: %p used_tables: %p share: %p in_trans: %d", trn, trn->used_tables, share, share->in_trans)); mysql_mutex_assert_owner(&share->intern_lock); if (trn == &dummy_transaction_object) DBUG_VOID_RETURN; /* First remove share from used_tables */ for (prev= (MARIA_USED_TABLES**) (char*) &trn->used_tables; (tables= *prev); prev= &tables->next) { if (tables->share == share) { *prev= tables->next; /* We don't have to and can't call decrement_share_in_trans(share) here as we know there is an active MARIA_HA handler around. */ share->in_trans--; my_free(tables); break; } } if (!tables) { /* This can only happens in case of rename of intermediate table as part of alter table */ DBUG_PRINT("warning", ("share: %p where not in used_tables_list", share)); } /* Reset trn and remove table from used_instances */ _ma_reset_trn_for_table(info); DBUG_VOID_RETURN; }
O0
c
ma_remove_table_from_trnman: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax movq %rax, -0x10(%rbp) movq -0x8(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x18(%rbp) jmp 0x49f55 jmp 0x49f57 jmp 0x49f59 leaq 0x42d920(%rip), %rax # 0x477880 cmpq %rax, -0x18(%rbp) jne 0x49f6a jmp 0x49f68 jmp 0x49fe5 movq -0x18(%rbp), %rax addq $0x58, %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax movq (%rax), %rax movq %rax, -0x20(%rbp) cmpq $0x0, %rax je 0x49fcd movq -0x20(%rbp), %rax movq 0x8(%rax), %rax cmpq -0x10(%rbp), %rax jne 0x49fc1 movq -0x20(%rbp), %rax movq (%rax), %rcx movq -0x28(%rbp), %rax movq %rcx, (%rax) movq -0x10(%rbp), %rax movl 0x7ac(%rax), %ecx addl $-0x1, %ecx movl %ecx, 0x7ac(%rax) movq -0x20(%rbp), %rdi callq 0xf3ba0 jmp 0x49fcd jmp 0x49fc3 movq -0x20(%rbp), %rax movq %rax, -0x28(%rbp) jmp 0x49f76 cmpq $0x0, -0x20(%rbp) jne 0x49fda jmp 0x49fd6 jmp 0x49fd8 jmp 0x49fda movq -0x8(%rbp), %rdi callq 0x49ff0 jmp 0x49fe5 addq $0x30, %rsp popq %rbp retq nopl (%rax,%rax)
_ma_remove_table_from_trnman: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov rax, [rax] mov [rbp+var_10], rax mov rax, [rbp+var_8] mov rax, [rax+8] mov [rbp+var_18], rax jmp short $+2 loc_49F55: jmp short $+2 loc_49F57: jmp short $+2 loc_49F59: lea rax, dummy_transaction_object cmp [rbp+var_18], rax jnz short loc_49F6A jmp short $+2 loc_49F68: jmp short loc_49FE5 loc_49F6A: mov rax, [rbp+var_18] add rax, 58h ; 'X' mov [rbp+var_28], rax loc_49F76: mov rax, [rbp+var_28] mov rax, [rax] mov [rbp+var_20], rax cmp rax, 0 jz short loc_49FCD mov rax, [rbp+var_20] mov rax, [rax+8] cmp rax, [rbp+var_10] jnz short loc_49FC1 mov rax, [rbp+var_20] mov rcx, [rax] mov rax, [rbp+var_28] mov [rax], rcx mov rax, [rbp+var_10] mov ecx, [rax+7ACh] add ecx, 0FFFFFFFFh mov [rax+7ACh], ecx mov rdi, [rbp+var_20] call my_free jmp short loc_49FCD loc_49FC1: jmp short $+2 loc_49FC3: mov rax, [rbp+var_20] mov [rbp+var_28], rax jmp short loc_49F76 loc_49FCD: cmp [rbp+var_20], 0 jnz short loc_49FDA jmp short $+2 loc_49FD6: jmp short $+2 loc_49FD8: jmp short $+2 loc_49FDA: mov rdi, [rbp+var_8] call _ma_reset_trn_for_table jmp short $+2 loc_49FE5: add rsp, 30h pop rbp retn
_QWORD * ma_remove_table_from_trnman(long long *a1) { _QWORD *result; // rax _QWORD *i; // [rsp+8h] [rbp-28h] _QWORD *v3; // [rsp+10h] [rbp-20h] _QWORD *v4; // [rsp+18h] [rbp-18h] long long v5; // [rsp+20h] [rbp-10h] v5 = *a1; v4 = (_QWORD *)a1[1]; result = dummy_transaction_object; if ( v4 != dummy_transaction_object ) { for ( i = v4 + 11; ; i = (_QWORD *)*i ) { v3 = (_QWORD *)*i; if ( !*i ) break; if ( v3[1] == v5 ) { *i = *v3; --*(_DWORD *)(v5 + 1964); my_free(v3); return (_QWORD *)ma_reset_trn_for_table(a1); } } return (_QWORD *)ma_reset_trn_for_table(a1); } return result; }
_ma_remove_table_from_trnman: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x18],RAX JMP 0x00149f55 LAB_00149f55: JMP 0x00149f57 LAB_00149f57: JMP 0x00149f59 LAB_00149f59: LEA RAX,[0x577880] CMP qword ptr [RBP + -0x18],RAX JNZ 0x00149f6a JMP 0x00149f68 LAB_00149f68: JMP 0x00149fe5 LAB_00149f6a: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x58 MOV qword ptr [RBP + -0x28],RAX LAB_00149f76: MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x20],RAX CMP RAX,0x0 JZ 0x00149fcd MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x8] CMP RAX,qword ptr [RBP + -0x10] JNZ 0x00149fc1 MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RAX + 0x7ac] ADD ECX,-0x1 MOV dword ptr [RAX + 0x7ac],ECX MOV RDI,qword ptr [RBP + -0x20] CALL 0x001f3ba0 JMP 0x00149fcd LAB_00149fc1: JMP 0x00149fc3 LAB_00149fc3: MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x28],RAX JMP 0x00149f76 LAB_00149fcd: CMP qword ptr [RBP + -0x20],0x0 JNZ 0x00149fda JMP 0x00149fd6 LAB_00149fd6: JMP 0x00149fd8 LAB_00149fd8: JMP 0x00149fda LAB_00149fda: MOV RDI,qword ptr [RBP + -0x8] CALL 0x00149ff0 JMP 0x00149fe5 LAB_00149fe5: ADD RSP,0x30 POP RBP RET
void _ma_remove_table_from_trnman(long *param_1) { long lVar1; long *plVar2; long *local_30; lVar1 = *param_1; if ((int1 *)param_1[1] != dummy_transaction_object) { plVar2 = (long *)((int1 *)param_1[1] + 0x58); do { local_30 = plVar2; plVar2 = (long *)*local_30; if (plVar2 == (long *)0x0) goto LAB_00149fda; } while (plVar2[1] != lVar1); *local_30 = *plVar2; *(int *)(lVar1 + 0x7ac) = *(int *)(lVar1 + 0x7ac) + -1; my_free(plVar2); LAB_00149fda: _ma_reset_trn_for_table(param_1); } return; }
65,275
ggml_get_next_tensor
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
struct ggml_tensor * ggml_get_next_tensor(const struct ggml_context * ctx, struct ggml_tensor * tensor) { struct ggml_object * obj = (struct ggml_object *) ((char *)tensor - GGML_OBJECT_SIZE); obj = obj->next; char * const mem_buffer = ctx->mem_buffer; while (obj != NULL) { if (obj->type == GGML_OBJECT_TYPE_TENSOR) { return (struct ggml_tensor *)(mem_buffer + obj->offs); } obj = obj->next; } return NULL; }
O1
c
ggml_get_next_tensor: movq -0x10(%rsi), %rcx testq %rcx, %rcx je 0x1b862 movq 0x8(%rdi), %rax cmpl $0x0, 0x18(%rcx) je 0x1b865 movq 0x10(%rcx), %rcx testq %rcx, %rcx jne 0x1b853 xorl %eax, %eax retq addq (%rcx), %rax retq
ggml_get_next_tensor: mov rcx, [rsi-10h] test rcx, rcx jz short loc_1B862 mov rax, [rdi+8] loc_1B853: cmp dword ptr [rcx+18h], 0 jz short loc_1B865 mov rcx, [rcx+10h] test rcx, rcx jnz short loc_1B853 loc_1B862: xor eax, eax retn loc_1B865: add rax, [rcx] retn
long long ggml_get_next_tensor(long long a1, long long a2) { long long v2; // rcx v2 = *(_QWORD *)(a2 - 16); if ( !v2 ) return 0LL; while ( *(_DWORD *)(v2 + 24) ) { v2 = *(_QWORD *)(v2 + 16); if ( !v2 ) return 0LL; } return *(_QWORD *)v2 + *(_QWORD *)(a1 + 8); }
ggml_get_next_tensor: MOV RCX,qword ptr [RSI + -0x10] TEST RCX,RCX JZ 0x0011b862 MOV RAX,qword ptr [RDI + 0x8] LAB_0011b853: CMP dword ptr [RCX + 0x18],0x0 JZ 0x0011b865 MOV RCX,qword ptr [RCX + 0x10] TEST RCX,RCX JNZ 0x0011b853 LAB_0011b862: XOR EAX,EAX RET LAB_0011b865: ADD RAX,qword ptr [RCX] RET
long ggml_get_next_tensor(long param_1,long param_2) { long *plVar1; plVar1 = *(long **)(param_2 + -0x10); if (plVar1 != (long *)0x0) { do { if ((int)plVar1[3] == 0) { return *(long *)(param_1 + 8) + *plVar1; } plVar1 = (long *)plVar1[2]; } while (plVar1 != (long *)0x0); } return 0; }
65,276
ggml_get_next_tensor
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
struct ggml_tensor * ggml_get_next_tensor(const struct ggml_context * ctx, struct ggml_tensor * tensor) { struct ggml_object * obj = (struct ggml_object *) ((char *)tensor - GGML_OBJECT_SIZE); obj = obj->next; char * const mem_buffer = ctx->mem_buffer; while (obj != NULL) { if (obj->type == GGML_OBJECT_TYPE_TENSOR) { return (struct ggml_tensor *)(mem_buffer + obj->offs); } obj = obj->next; } return NULL; }
O2
c
ggml_get_next_tensor: addq $-0x10, %rsi movq 0x8(%rdi), %rcx xorl %eax, %eax movq (%rsi), %rsi testq %rsi, %rsi je 0x21226 cmpl $0x0, 0x18(%rsi) je 0x21220 addq $0x10, %rsi jmp 0x2120c addq (%rsi), %rcx movq %rcx, %rax retq
ggml_get_next_tensor: add rsi, 0FFFFFFFFFFFFFFF0h mov rcx, [rdi+8] xor eax, eax loc_2120C: mov rsi, [rsi] test rsi, rsi jz short locret_21226 cmp dword ptr [rsi+18h], 0 jz short loc_21220 add rsi, 10h jmp short loc_2120C loc_21220: add rcx, [rsi] mov rax, rcx locret_21226: retn
long long ggml_get_next_tensor(long long a1, long long a2) { long long *v2; // rsi long long result; // rax long long v4; // rsi v2 = (long long *)(a2 - 16); result = 0LL; while ( 1 ) { v4 = *v2; if ( !v4 ) break; if ( !*(_DWORD *)(v4 + 24) ) return *(_QWORD *)v4 + *(_QWORD *)(a1 + 8); v2 = (long long *)(v4 + 16); } return result; }
ggml_get_next_tensor: ADD RSI,-0x10 MOV RCX,qword ptr [RDI + 0x8] XOR EAX,EAX LAB_0012120c: MOV RSI,qword ptr [RSI] TEST RSI,RSI JZ 0x00121226 CMP dword ptr [RSI + 0x18],0x0 JZ 0x00121220 ADD RSI,0x10 JMP 0x0012120c LAB_00121220: ADD RCX,qword ptr [RSI] MOV RAX,RCX LAB_00121226: RET
long ggml_get_next_tensor(long param_1,long param_2) { long *plVar1; plVar1 = (long *)(param_2 + -0x10); while( true ) { plVar1 = (long *)*plVar1; if (plVar1 == (long *)0x0) { return 0; } if ((int)plVar1[3] == 0) break; plVar1 = plVar1 + 2; } return *(long *)(param_1 + 8) + *plVar1; }
65,277
ggml_get_next_tensor
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
struct ggml_tensor * ggml_get_next_tensor(const struct ggml_context * ctx, struct ggml_tensor * tensor) { struct ggml_object * obj = (struct ggml_object *) ((char *)tensor - GGML_OBJECT_SIZE); obj = obj->next; char * const mem_buffer = ctx->mem_buffer; while (obj != NULL) { if (obj->type == GGML_OBJECT_TYPE_TENSOR) { return (struct ggml_tensor *)(mem_buffer + obj->offs); } obj = obj->next; } return NULL; }
O3
c
ggml_get_next_tensor: movq -0x10(%rsi), %rcx testq %rcx, %rcx je 0x1a570 movq 0x8(%rdi), %rax cmpl $0x0, 0x18(%rcx) je 0x1a573 movq 0x10(%rcx), %rcx testq %rcx, %rcx jne 0x1a561 xorl %eax, %eax retq addq (%rcx), %rax retq
ggml_get_next_tensor: mov rcx, [rsi-10h] test rcx, rcx jz short loc_1A570 mov rax, [rdi+8] loc_1A561: cmp dword ptr [rcx+18h], 0 jz short loc_1A573 mov rcx, [rcx+10h] test rcx, rcx jnz short loc_1A561 loc_1A570: xor eax, eax retn loc_1A573: add rax, [rcx] retn
long long ggml_get_next_tensor(long long a1, long long a2) { long long v2; // rcx v2 = *(_QWORD *)(a2 - 16); if ( !v2 ) return 0LL; while ( *(_DWORD *)(v2 + 24) ) { v2 = *(_QWORD *)(v2 + 16); if ( !v2 ) return 0LL; } return *(_QWORD *)v2 + *(_QWORD *)(a1 + 8); }
ggml_get_next_tensor: MOV RCX,qword ptr [RSI + -0x10] TEST RCX,RCX JZ 0x0011a570 MOV RAX,qword ptr [RDI + 0x8] LAB_0011a561: CMP dword ptr [RCX + 0x18],0x0 JZ 0x0011a573 MOV RCX,qword ptr [RCX + 0x10] TEST RCX,RCX JNZ 0x0011a561 LAB_0011a570: XOR EAX,EAX RET LAB_0011a573: ADD RAX,qword ptr [RCX] RET
long ggml_get_next_tensor(long param_1,long param_2) { long *plVar1; plVar1 = *(long **)(param_2 + -0x10); if (plVar1 != (long *)0x0) { do { if ((int)plVar1[3] == 0) { return *(long *)(param_1 + 8) + *plVar1; } plVar1 = (long *)plVar1[2]; } while (plVar1 != (long *)0x0); } return 0; }
65,278
aimrt::runtime::core::logger::LogFormatter::FormatLine(aimrt::runtime::core::logger::LogDataWrapper const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
aimrt_mujoco_sim/_deps/aimrt-src/src/runtime/core/../core/logger/formatter.h
static void FormatLine(const LogDataWrapper& data, std::string& buffer) { buffer.append(std::to_string(data.line)); }
O3
c
aimrt::runtime::core::logger::LogFormatter::FormatLine(aimrt::runtime::core::logger::LogDataWrapper const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x28, %rsp movq %rsi, %rbx movl 0x24(%rdi), %ebp movl $0x1, %eax cmpl $0xa, %ebp jb 0x5f830 movl $0x4, %eax movl $0xd1b71759, %ecx # imm = 0xD1B71759 movl %ebp, %edx cmpl $0x63, %edx jbe 0x5f829 cmpl $0x3e7, %edx # imm = 0x3E7 jbe 0x5f82e cmpl $0x2710, %edx # imm = 0x2710 jb 0x5f830 movl %edx, %esi imulq %rcx, %rsi shrq $0x2d, %rsi addl $0x4, %eax cmpl $0x1869f, %edx # imm = 0x1869F movl %esi, %edx ja 0x5f7f8 addl $-0x3, %eax jmp 0x5f830 addl $-0x2, %eax jmp 0x5f830 decl %eax movl %eax, %esi leaq 0x18(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0x8(%rsp), %r14 movq %r14, %rdi xorl %edx, %edx callq 0x1e240 movq (%r14), %rdi movl 0x8(%r14), %esi movl %ebp, %edx callq 0x1f8a0 movq (%r14), %rsi movq 0x8(%r14), %rdx movq %rbx, %rdi callq 0x201d0 movq 0x8(%rsp), %rdi cmpq %r15, %rdi je 0x5f87e movq 0x18(%rsp), %rsi incq %rsi callq 0x1f250 addq $0x28, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r15, %rdi je 0x5f8a3 movq 0x18(%rsp), %rsi incq %rsi callq 0x1f250 movq %rbx, %rdi callq 0x1ffd0 nop
_ZN5aimrt7runtime4core6logger12LogFormatter10FormatLineERKNS2_14LogDataWrapperERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push rbp push r15 push r14 push rbx sub rsp, 28h mov rbx, rsi mov ebp, [rdi+24h] mov eax, 1 cmp ebp, 0Ah jb short loc_5F830 mov eax, 4 mov ecx, 0D1B71759h mov edx, ebp loc_5F7F8: cmp edx, 63h ; 'c' jbe short loc_5F829 cmp edx, 3E7h jbe short loc_5F82E cmp edx, 2710h jb short loc_5F830 mov esi, edx imul rsi, rcx shr rsi, 2Dh add eax, 4 cmp edx, 1869Fh mov edx, esi ja short loc_5F7F8 add eax, 0FFFFFFFDh jmp short loc_5F830 loc_5F829: add eax, 0FFFFFFFEh jmp short loc_5F830 loc_5F82E: dec eax loc_5F830: mov esi, eax lea r15, [rsp+48h+var_30] mov [r15-10h], r15 lea r14, [rsp+48h+var_40] mov rdi, r14 xor edx, edx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc; std::string::_M_construct(ulong,char) mov rdi, [r14] mov esi, [r14+8] mov edx, ebp call __ZNSt8__detail18__to_chars_10_implIjEEvPcjT_; std::__detail::__to_chars_10_impl<uint>(char *,uint,uint) mov rsi, [r14] mov rdx, [r14+8] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rdi, [rsp+48h+var_40]; void * cmp rdi, r15 jz short loc_5F87E mov rsi, [rsp+48h+var_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5F87E: add rsp, 28h pop rbx pop r14 pop r15 pop rbp retn mov rbx, rax mov rdi, [rsp+arg_0]; void * cmp rdi, r15 jz short loc_5F8A3 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5F8A3: mov rdi, rbx call __Unwind_Resume
void aimrt::runtime::core::logger::LogFormatter::FormatLine(long long a1, long long a2) { unsigned int v2; // ebp unsigned int v3; // eax unsigned int v4; // edx bool v5; // cc void *v6; // [rsp+8h] [rbp-40h] BYREF long long v7; // [rsp+10h] [rbp-38h] _QWORD v8[6]; // [rsp+18h] [rbp-30h] BYREF v2 = *(_DWORD *)(a1 + 36); v3 = 1; if ( v2 >= 0xA ) { v3 = 4; v4 = *(_DWORD *)(a1 + 36); while ( 1 ) { if ( v4 <= 0x63 ) { v3 -= 2; goto LABEL_10; } if ( v4 <= 0x3E7 ) break; if ( v4 < 0x2710 ) goto LABEL_10; v3 += 4; v5 = v4 <= 0x1869F; v4 /= 0x2710u; if ( v5 ) { v3 -= 3; goto LABEL_10; } } --v3; } LABEL_10: v6 = v8; std::string::_M_construct(&v6, v3, 0LL); std::__detail::__to_chars_10_impl<unsigned int>(v6, (unsigned int)v7, v2); std::string::_M_append(a2, v6, v7); if ( v6 != v8 ) operator delete(v6, v8[0] + 1LL); }
FormatLine: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x28 MOV RBX,RSI MOV EBP,dword ptr [RDI + 0x24] MOV EAX,0x1 CMP EBP,0xa JC 0x0015f830 MOV EAX,0x4 MOV ECX,0xd1b71759 MOV EDX,EBP LAB_0015f7f8: CMP EDX,0x63 JBE 0x0015f829 CMP EDX,0x3e7 JBE 0x0015f82e CMP EDX,0x2710 JC 0x0015f830 MOV ESI,EDX IMUL RSI,RCX SHR RSI,0x2d ADD EAX,0x4 CMP EDX,0x1869f MOV EDX,ESI JA 0x0015f7f8 ADD EAX,-0x3 JMP 0x0015f830 LAB_0015f829: ADD EAX,-0x2 JMP 0x0015f830 LAB_0015f82e: DEC EAX LAB_0015f830: MOV ESI,EAX LEA R15,[RSP + 0x18] MOV qword ptr [R15 + -0x10],R15 LEA R14,[RSP + 0x8] MOV RDI,R14 XOR EDX,EDX CALL 0x0011e240 MOV RDI,qword ptr [R14] MOV ESI,dword ptr [R14 + 0x8] MOV EDX,EBP CALL 0x0011f8a0 MOV RSI,qword ptr [R14] MOV RDX,qword ptr [R14 + 0x8] LAB_0015f85f: MOV RDI,RBX CALL 0x001201d0 LAB_0015f867: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R15 JZ 0x0015f87e MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0011f250 LAB_0015f87e: ADD RSP,0x28 POP RBX POP R14 POP R15 POP RBP RET
/* aimrt::runtime::core::logger::LogFormatter::FormatLine(aimrt::runtime::core::logger::LogDataWrapper const&, std::__cxx11::string&) */ void aimrt::runtime::core::logger::LogFormatter::FormatLine(LogDataWrapper *param_1,string *param_2) { uint uVar1; bool bVar2; uint uVar3; uint uVar4; uint uVar5; long *local_40; uint local_38; int4 uStack_34; long local_30 [2]; uVar1 = *(uint *)(param_1 + 0x24); uVar4 = 1; if (9 < uVar1) { uVar5 = uVar1; uVar3 = 4; do { uVar4 = uVar3; if (uVar5 < 100) { uVar4 = uVar4 - 2; goto LAB_0015f830; } if (uVar5 < 1000) { uVar4 = uVar4 - 1; goto LAB_0015f830; } if (uVar5 < 10000) goto LAB_0015f830; bVar2 = 99999 < uVar5; uVar5 = uVar5 / 10000; uVar3 = uVar4 + 4; } while (bVar2); uVar4 = uVar4 + 1; } LAB_0015f830: local_40 = local_30; std::__cxx11::string::_M_construct((string *)&local_40,(ulong)uVar4,'\0'); std::__detail::__to_chars_10_impl<unsigned_int>((char *)local_40,local_38,uVar1); /* try { // try from 0015f85f to 0015f866 has its CatchHandler @ 0015f889 */ std::__cxx11::string::_M_append(param_2,(char *)local_40,CONCAT44(uStack_34,local_38)); if (local_40 != local_30) { operator_delete(local_40,local_30[0] + 1); } return; }
65,279
_gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>> nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::find<char const (&) [7], 0>(char const (&) [7])
monkey531[P]llama/common/./json.hpp
iterator find(KeyType && key) // NOLINT(cppcoreguidelines-missing-std-forward) { for (auto it = this->begin(); it != this->end(); ++it) { if (m_compare(it->first, key)) { return it; } } return Container::end(); }
O2
cpp
_gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>> nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::find<char const (&) [7], 0>(char const (&) [7]): pushq %r15 pushq %r14 pushq %rbx movq %rsi, %rbx movq %rdi, %r15 movq (%rdi), %r14 movq 0x8(%r15), %rax cmpq %rax, %r14 je 0xb503b movq %r14, %rdi movq %rbx, %rsi callq 0x40c7a testb %al, %al jne 0xb5038 addq $0x30, %r14 jmp 0xb501a movq %r14, %rax popq %rbx popq %r14 popq %r15 retq nop
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA10_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_: push r15 push r14 push rbx mov rbx, rsi mov r15, rdi mov r14, [rdi] loc_B501A: mov rax, [r15+8] cmp r14, rax jz short loc_B503B mov rdi, r14 mov rsi, rbx call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) test al, al jnz short loc_B5038 add r14, 30h ; '0' jmp short loc_B501A loc_B5038: mov rax, r14 loc_B503B: pop rbx pop r14 pop r15 retn
long long ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA10_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_( long long *a1) { long long i; // r14 long long result; // rax for ( i = *a1; ; i += 48LL ) { result = a1[1]; if ( i == result ) break; if ( std::operator==<char>(i) ) return i; } return result; }
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA10_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RSI MOV R15,RDI MOV R14,qword ptr [RDI] LAB_001b501a: MOV RAX,qword ptr [R15 + 0x8] CMP R14,RAX JZ 0x001b503b MOV RDI,R14 MOV RSI,RBX CALL 0x00140c7a TEST AL,AL JNZ 0x001b5038 ADD R14,0x30 JMP 0x001b501a LAB_001b5038: MOV RAX,R14 LAB_001b503b: POP RBX POP R14 POP R15 RET
string * _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA10_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_ (int8 *param_1,char *param_2) { bool bVar1; string *psVar2; string *psVar3; psVar3 = (string *)*param_1; while ((psVar2 = (string *)param_1[1], psVar3 != (string *)param_1[1] && (bVar1 = std::operator==(psVar3,param_2), psVar2 = psVar3, !bVar1))) { psVar3 = psVar3 + 0x30; } return psVar2; }
65,280
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>::size() const
monkey531[P]llama/common/./json.hpp
size_type size() const noexcept { switch (m_data.m_type) { case value_t::null: { // null values are empty return 0; } case value_t::array: { // delegate call to array_t::size() return m_data.m_value.array->size(); } case value_t::object: { // delegate call to object_t::size() return m_data.m_value.object->size(); } case value_t::string: case value_t::boolean: case value_t::number_integer: case value_t::number_unsigned: case value_t::number_float: case value_t::binary: case value_t::discarded: default: { // all other types have size 1 return 1; } } }
O0
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::size() const: subq $0x28, %rsp movq %rdi, 0x18(%rsp) movq 0x18(%rsp), %rax movq %rax, 0x8(%rsp) movzbl (%rax), %eax movq %rax, 0x10(%rsp) subq $0x9, %rax ja 0x8800d movq 0x10(%rsp), %rax leaq 0x151bd3(%rip), %rcx # 0x1d9ba0 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq $0x0, 0x20(%rsp) jmp 0x88016 movq 0x8(%rsp), %rax movq 0x8(%rax), %rdi callq 0x88180 movq %rax, 0x20(%rsp) jmp 0x88016 movq 0x8(%rsp), %rax movq 0x8(%rax), %rdi callq 0x881a0 movq %rax, 0x20(%rsp) jmp 0x88016 jmp 0x8800d movq $0x1, 0x20(%rsp) movq 0x20(%rsp), %rax addq $0x28, %rsp retq
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4sizeEv: sub rsp, 28h mov [rsp+28h+var_10], rdi mov rax, [rsp+28h+var_10] mov [rsp+28h+var_20], rax movzx eax, byte ptr [rax] mov [rsp+28h+var_18], rax sub rax, 9; switch 10 cases ja short def_87FD4; jumptable 0000000000087FD4 default case mov rax, [rsp+28h+var_18] lea rcx, jpt_87FD4 movsxd rax, ds:(jpt_87FD4 - 1D9BA0h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_87FD6: mov [rsp+28h+var_8], 0; jumptable 0000000000087FD4 case 0 jmp short loc_88016 loc_87FE1: mov rax, [rsp+28h+var_20]; jumptable 0000000000087FD4 case 2 mov rdi, [rax+8] call _ZNKSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE4sizeEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::size(void) mov [rsp+28h+var_8], rax jmp short loc_88016 loc_87FF6: mov rax, [rsp+28h+var_20]; jumptable 0000000000087FD4 case 1 mov rdi, [rax+8] call _ZNKSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE4sizeEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::size(void) mov [rsp+28h+var_8], rax jmp short loc_88016 loc_8800B: jmp short $+2; jumptable 0000000000087FD4 cases 3-9 def_87FD4: mov [rsp+28h+var_8], 1; jumptable 0000000000087FD4 default case loc_88016: mov rax, [rsp+28h+var_8] add rsp, 28h retn
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::size( long long a1) { long long v2; // [rsp+20h] [rbp-8h] switch ( *(_BYTE *)a1 ) { case 0: v2 = 0LL; break; case 1: v2 = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::size(*(_QWORD *)(a1 + 8)); break; case 2: v2 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::size(*(_QWORD *)(a1 + 8)); break; default: v2 = 1LL; break; } return v2; }
size: SUB RSP,0x28 MOV qword ptr [RSP + 0x18],RDI MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x8],RAX MOVZX EAX,byte ptr [RAX] MOV qword ptr [RSP + 0x10],RAX SUB RAX,0x9 JA 0x0018800d MOV RAX,qword ptr [RSP + 0x10] LEA RCX,[0x2d9ba0] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_0: MOV qword ptr [RSP + 0x20],0x0 JMP 0x00188016 caseD_2: MOV RAX,qword ptr [RSP + 0x8] MOV RDI,qword ptr [RAX + 0x8] CALL 0x00188180 MOV qword ptr [RSP + 0x20],RAX JMP 0x00188016 caseD_1: MOV RAX,qword ptr [RSP + 0x8] MOV RDI,qword ptr [RAX + 0x8] CALL 0x001881a0 MOV qword ptr [RSP + 0x20],RAX JMP 0x00188016 caseD_3: JMP 0x0018800d default: MOV qword ptr [RSP + 0x20],0x1 LAB_00188016: MOV RAX,qword ptr [RSP + 0x20] ADD RSP,0x28 RET
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>::size() const */ int8 __thiscall nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::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> *this) { int8 local_8; switch(*this) { case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x0: local_8 = 0; break; case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x1: local_8 = std:: vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::size(*(vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> **)(this + 8)); break; case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x2: local_8 = std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::size(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)(this + 8)); break; case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x3: case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x4: case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x5: case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x6: case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x7: case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x8: case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x9: default: local_8 = 1; } return local_8; }
65,281
my_thread_init
eloqsql/mysys/my_thr_init.c
my_bool my_thread_init(void) { struct st_my_thread_var *tmp; my_bool error=0; if (!my_thread_global_init_done) return 1; /* cannot proceed with uninitialized library */ #ifdef EXTRA_DEBUG_THREADS fprintf(stderr,"my_thread_init(): pthread_self: %p\n", pthread_self()); #endif if (my_thread_var) { #ifdef EXTRA_DEBUG_THREADS fprintf(stderr,"my_thread_init() called more than once in thread 0x%lx\n", (long) pthread_self()); #endif goto end; } #ifdef _MSC_VER install_sigabrt_handler(); #endif if (!(tmp= (struct st_my_thread_var *) calloc(1, sizeof(*tmp)))) { error= 1; goto end; } set_mysys_var(tmp); tmp->pthread_self= pthread_self(); my_thread_init_thr_mutex(tmp); tmp->stack_ends_here= (char*)&tmp + STACK_DIRECTION * (long)my_thread_stack_size; mysql_mutex_lock(&THR_LOCK_threads); tmp->id= tmp->dbug_id= ++thread_id; ++THR_thread_count; mysql_mutex_unlock(&THR_LOCK_threads); tmp->init= 1; #ifndef DBUG_OFF /* Generate unique name for thread */ (void) my_thread_name(); #endif end: return error; }
O0
c
my_thread_init: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movb $0x0, -0x11(%rbp) cmpb $0x0, 0xb8c83d(%rip) # 0xc81f80 jne 0xf574e movb $0x1, -0x1(%rbp) jmp 0xf5837 callq 0xf55f0 cmpq $0x0, %rax je 0xf575e jmp 0xf5831 movl $0x1, %edi movl $0xf0, %esi callq 0x2a670 movq %rax, -0x10(%rbp) cmpq $0x0, %rax jne 0xf5780 movb $0x1, -0x11(%rbp) jmp 0xf5831 movq -0x10(%rbp), %rdi callq 0xf5aa0 callq 0x2a530 movq %rax, %rcx movq -0x10(%rbp), %rax movq %rcx, 0xc8(%rax) movq -0x10(%rbp), %rdi callq 0xf5640 leaq 0x1c90a4(%rip), %rax # 0x2be850 movq (%rax), %rax shlq $0x0, %rax leaq -0x10(%rbp), %rcx addq %rax, %rcx movq -0x10(%rbp), %rax movq %rcx, 0xb8(%rax) leaq 0xb8c6ec(%rip), %rdi # 0xc81eb8 leaq 0x5dcc8(%rip), %rsi # 0x15349b movl $0x12e, %edx # imm = 0x12E callq 0xf5950 movq 0xb8c7a4(%rip), %rcx # 0xc81f88 addq $0x1, %rcx movq %rcx, 0xb8c799(%rip) # 0xc81f88 movq -0x10(%rbp), %rax movq %rcx, 0xd8(%rax) movq -0x10(%rbp), %rax movq %rcx, 0xd0(%rax) leaq 0xb8c4ac(%rip), %rax # 0xc81cb8 movl (%rax), %ecx addl $0x1, %ecx leaq 0xb8c4a0(%rip), %rax # 0xc81cb8 movl %ecx, (%rax) leaq 0xb8c697(%rip), %rdi # 0xc81eb8 callq 0xf5a40 movq -0x10(%rbp), %rax movb $0x1, 0xe8(%rax) movb -0x11(%rbp), %al movb %al, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x20, %rsp popq %rbp retq
my_thread_init: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_11], 0 cmp cs:my_thread_global_init_done, 0 jnz short loc_F574E mov [rbp+var_1], 1 jmp loc_F5837 loc_F574E: call _my_thread_var cmp rax, 0 jz short loc_F575E jmp loc_F5831 loc_F575E: mov edi, 1 mov esi, 0F0h call _calloc mov [rbp+var_10], rax cmp rax, 0 jnz short loc_F5780 mov [rbp+var_11], 1 jmp loc_F5831 loc_F5780: mov rdi, [rbp+var_10] call set_mysys_var call _pthread_self mov rcx, rax mov rax, [rbp+var_10] mov [rax+0C8h], rcx mov rdi, [rbp+var_10] call my_thread_init_thr_mutex lea rax, my_thread_stack_size mov rax, [rax] shl rax, 0 lea rcx, [rbp+var_10] add rcx, rax mov rax, [rbp+var_10] mov [rax+0B8h], rcx lea rdi, THR_LOCK_threads lea rsi, aWorkspaceLlm4b_38; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 12Eh call inline_mysql_mutex_lock_26 mov rcx, cs:thread_id add rcx, 1 mov cs:thread_id, rcx mov rax, [rbp+var_10] mov [rax+0D8h], rcx mov rax, [rbp+var_10] mov [rax+0D0h], rcx lea rax, THR_thread_count mov ecx, [rax] add ecx, 1 lea rax, THR_thread_count mov [rax], ecx lea rdi, THR_LOCK_threads call inline_mysql_mutex_unlock_27 mov rax, [rbp+var_10] mov byte ptr [rax+0E8h], 1 loc_F5831: mov al, [rbp+var_11] mov [rbp+var_1], al loc_F5837: mov al, [rbp+var_1] add rsp, 20h pop rbp retn
char my_thread_init() { long long v0; // rcx char v2; // [rsp+Fh] [rbp-11h] long long v3; // [rsp+10h] [rbp-10h] BYREF v2 = 0; if ( !my_thread_global_init_done ) return 1; if ( !my_thread_var() ) { v3 = calloc(1LL, 240LL); if ( v3 ) { set_mysys_var(v3); *(_QWORD *)(v3 + 200) = pthread_self(); my_thread_init_thr_mutex(v3); *(_QWORD *)(v3 + 184) = (char *)&v3 + (_QWORD)my_thread_stack_size; inline_mysql_mutex_lock_26( &THR_LOCK_threads, "/workspace/llm4binary/github2025/eloqsql/mysys/my_thr_init.c", 302LL); v0 = thread_id + 1; thread_id = v0; *(_QWORD *)(v3 + 216) = v0; *(_QWORD *)(v3 + 208) = v0; ++THR_thread_count; inline_mysql_mutex_unlock_27(&THR_LOCK_threads); *(_BYTE *)(v3 + 232) = 1; } else { return 1; } } return v2; }
my_thread_init: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV byte ptr [RBP + -0x11],0x0 CMP byte ptr [0x00d81f80],0x0 JNZ 0x001f574e MOV byte ptr [RBP + -0x1],0x1 JMP 0x001f5837 LAB_001f574e: CALL 0x001f55f0 CMP RAX,0x0 JZ 0x001f575e JMP 0x001f5831 LAB_001f575e: MOV EDI,0x1 MOV ESI,0xf0 CALL 0x0012a670 MOV qword ptr [RBP + -0x10],RAX CMP RAX,0x0 JNZ 0x001f5780 MOV byte ptr [RBP + -0x11],0x1 JMP 0x001f5831 LAB_001f5780: MOV RDI,qword ptr [RBP + -0x10] CALL 0x001f5aa0 CALL 0x0012a530 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0xc8],RCX MOV RDI,qword ptr [RBP + -0x10] CALL 0x001f5640 LEA RAX,[0x3be850] MOV RAX,qword ptr [RAX] SHL RAX,0x0 LEA RCX,[RBP + -0x10] ADD RCX,RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0xb8],RCX LEA RDI,[0xd81eb8] LEA RSI,[0x25349b] MOV EDX,0x12e CALL 0x001f5950 MOV RCX,qword ptr [0x00d81f88] ADD RCX,0x1 MOV qword ptr [0x00d81f88],RCX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0xd8],RCX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0xd0],RCX LEA RAX,[0xd81cb8] MOV ECX,dword ptr [RAX] ADD ECX,0x1 LEA RAX,[0xd81cb8] MOV dword ptr [RAX],ECX LEA RDI,[0xd81eb8] CALL 0x001f5a40 MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0xe8],0x1 LAB_001f5831: MOV AL,byte ptr [RBP + -0x11] MOV byte ptr [RBP + -0x1],AL LAB_001f5837: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x20 POP RBP RET
int1 my_thread_init(void) { long lVar1; pthread_t pVar2; int1 local_19; void *local_18; int1 local_9; local_19 = 0; if (my_thread_global_init_done == '\0') { local_9 = 1; } else { lVar1 = _my_thread_var(); if (lVar1 == 0) { local_18 = calloc(1,0xf0); if (local_18 == (void *)0x0) { local_19 = 1; } else { set_mysys_var(local_18); pVar2 = pthread_self(); *(pthread_t *)((long)local_18 + 200) = pVar2; my_thread_init_thr_mutex(local_18); *(long *)((long)local_18 + 0xb8) = (long)&local_18 + my_thread_stack_size; inline_mysql_mutex_lock (THR_LOCK_threads,"/workspace/llm4binary/github2025/eloqsql/mysys/my_thr_init.c", 0x12e); lVar1 = thread_id + 1; thread_id = lVar1; *(long *)((long)local_18 + 0xd8) = lVar1; *(long *)((long)local_18 + 0xd0) = lVar1; THR_thread_count = THR_thread_count + 1; inline_mysql_mutex_unlock(THR_LOCK_threads); *(int1 *)((long)local_18 + 0xe8) = 1; } } local_9 = local_19; } return local_9; }
65,282
OpenSubdiv::v3_6_0::Bfr::Tessellation::TransformFacetCoordIndices(int*, int const*, int)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/tessellation.cpp
void Tessellation::TransformFacetCoordIndices(int facetIndices[], int const boundaryIndices[], int interiorOffset) { for (int i = 0; i < _numFacets; ++i, facetIndices += _facetStride) { for (int j = 0; j < (int)_facetSize; ++j) { int & index = facetIndices[j]; if (index >= 0) { index = (index < _numBoundaryPoints) ? boundaryIndices[index] : (index + interiorOffset); } } } }
O1
cpp
OpenSubdiv::v3_6_0::Bfr::Tessellation::TransformFacetCoordIndices(int*, int const*, int): cmpl $0x0, 0x1c(%rdi) jle 0xa0549 movswq 0x6(%rdi), %rax xorl %r8d, %r8d testw %ax, %ax jle 0xa0538 xorl %r9d, %r9d movslq (%rsi,%r9,4), %r10 testq %r10, %r10 js 0xa0530 cmpl 0x14(%rdi), %r10d jge 0xa0529 movl (%rdx,%r10,4), %r10d jmp 0xa052c addl %ecx, %r10d movl %r10d, (%rsi,%r9,4) incq %r9 cmpq %r9, %rax jne 0xa0514 incl %r8d movslq 0x8(%rdi), %r9 leaq (%rsi,%r9,4), %rsi cmpl 0x1c(%rdi), %r8d jl 0xa050c retq
_ZN10OpenSubdiv6v3_6_03Bfr12Tessellation26TransformFacetCoordIndicesEPiPKii: cmp dword ptr [rdi+1Ch], 0 jle short locret_A0549 movsx rax, word ptr [rdi+6] xor r8d, r8d loc_A050C: test ax, ax jle short loc_A0538 xor r9d, r9d loc_A0514: movsxd r10, dword ptr [rsi+r9*4] test r10, r10 js short loc_A0530 cmp r10d, [rdi+14h] jge short loc_A0529 mov r10d, [rdx+r10*4] jmp short loc_A052C loc_A0529: add r10d, ecx loc_A052C: mov [rsi+r9*4], r10d loc_A0530: inc r9 cmp rax, r9 jnz short loc_A0514 loc_A0538: inc r8d movsxd r9, dword ptr [rdi+8] lea rsi, [rsi+r9*4] cmp r8d, [rdi+1Ch] jl short loc_A050C locret_A0549: retn
void OpenSubdiv::v3_6_0::Bfr::Tessellation::TransformFacetCoordIndices( OpenSubdiv::v3_6_0::Bfr::Tessellation *this, int *a2, const int *a3, int a4) { long long v4; // rax int v5; // r8d long long i; // r9 long long v7; // r10 int v8; // r10d if ( *((int *)this + 7) > 0 ) { v4 = *((__int16 *)this + 3); v5 = 0; do { if ( (__int16)v4 > 0 ) { for ( i = 0LL; i != v4; ++i ) { v7 = a2[i]; if ( v7 >= 0 ) { if ( (int)v7 >= *((_DWORD *)this + 5) ) v8 = a4 + v7; else v8 = a3[v7]; a2[i] = v8; } } } ++v5; a2 += *((int *)this + 2); } while ( v5 < *((_DWORD *)this + 7) ); } }
TransformFacetCoordIndices: CMP dword ptr [RDI + 0x1c],0x0 JLE 0x001a0549 MOVSX RAX,word ptr [RDI + 0x6] XOR R8D,R8D LAB_001a050c: TEST AX,AX JLE 0x001a0538 XOR R9D,R9D LAB_001a0514: MOVSXD R10,dword ptr [RSI + R9*0x4] TEST R10,R10 JS 0x001a0530 CMP R10D,dword ptr [RDI + 0x14] JGE 0x001a0529 MOV R10D,dword ptr [RDX + R10*0x4] JMP 0x001a052c LAB_001a0529: ADD R10D,ECX LAB_001a052c: MOV dword ptr [RSI + R9*0x4],R10D LAB_001a0530: INC R9 CMP RAX,R9 JNZ 0x001a0514 LAB_001a0538: INC R8D MOVSXD R9,dword ptr [RDI + 0x8] LEA RSI,[RSI + R9*0x4] CMP R8D,dword ptr [RDI + 0x1c] JL 0x001a050c LAB_001a0549: RET
/* OpenSubdiv::v3_6_0::Bfr::Tessellation::TransformFacetCoordIndices(int*, int const*, int) */ void __thiscall OpenSubdiv::v3_6_0::Bfr::Tessellation::TransformFacetCoordIndices (Tessellation *this,int *param_1,int *param_2,int param_3) { short sVar1; int iVar2; long lVar3; int iVar4; if (0 < *(int *)(this + 0x1c)) { sVar1 = *(short *)(this + 6); iVar2 = 0; do { if (0 < sVar1) { lVar3 = 0; do { iVar4 = param_1[lVar3]; if (-1 < (long)iVar4) { if (iVar4 < *(int *)(this + 0x14)) { iVar4 = param_2[iVar4]; } else { iVar4 = iVar4 + param_3; } param_1[lVar3] = iVar4; } lVar3 = lVar3 + 1; } while (sVar1 != lVar3); } iVar2 = iVar2 + 1; param_1 = param_1 + *(int *)(this + 8); } while (iVar2 < *(int *)(this + 0x1c)); } return; }
65,283
OpenSubdiv::v3_6_0::Bfr::Tessellation::TransformFacetCoordIndices(int*, int const*, int)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/tessellation.cpp
void Tessellation::TransformFacetCoordIndices(int facetIndices[], int const boundaryIndices[], int interiorOffset) { for (int i = 0; i < _numFacets; ++i, facetIndices += _facetStride) { for (int j = 0; j < (int)_facetSize; ++j) { int & index = facetIndices[j]; if (index >= 0) { index = (index < _numBoundaryPoints) ? boundaryIndices[index] : (index + interiorOffset); } } } }
O3
cpp
OpenSubdiv::v3_6_0::Bfr::Tessellation::TransformFacetCoordIndices(int*, int const*, int): movl 0x1c(%rdi), %r9d testl %r9d, %r9d jle 0xa2fb1 movswq 0x6(%rdi), %rax xorl %r8d, %r8d testw %ax, %ax jle 0xa2fa1 xorl %r9d, %r9d movslq (%rsi,%r9,4), %r10 testq %r10, %r10 js 0xa2f95 cmpl 0x14(%rdi), %r10d jge 0xa2f8e movl (%rdx,%r10,4), %r10d jmp 0xa2f91 addl %ecx, %r10d movl %r10d, (%rsi,%r9,4) incq %r9 cmpq %r9, %rax jne 0xa2f79 movl 0x1c(%rdi), %r9d incl %r8d movslq 0x8(%rdi), %r10 leaq (%rsi,%r10,4), %rsi cmpl %r9d, %r8d jl 0xa2f71 retq
_ZN10OpenSubdiv6v3_6_03Bfr12Tessellation26TransformFacetCoordIndicesEPiPKii: mov r9d, [rdi+1Ch] test r9d, r9d jle short locret_A2FB1 movsx rax, word ptr [rdi+6] xor r8d, r8d loc_A2F71: test ax, ax jle short loc_A2FA1 xor r9d, r9d loc_A2F79: movsxd r10, dword ptr [rsi+r9*4] test r10, r10 js short loc_A2F95 cmp r10d, [rdi+14h] jge short loc_A2F8E mov r10d, [rdx+r10*4] jmp short loc_A2F91 loc_A2F8E: add r10d, ecx loc_A2F91: mov [rsi+r9*4], r10d loc_A2F95: inc r9 cmp rax, r9 jnz short loc_A2F79 mov r9d, [rdi+1Ch] loc_A2FA1: inc r8d movsxd r10, dword ptr [rdi+8] lea rsi, [rsi+r10*4] cmp r8d, r9d jl short loc_A2F71 locret_A2FB1: retn
void OpenSubdiv::v3_6_0::Bfr::Tessellation::TransformFacetCoordIndices( OpenSubdiv::v3_6_0::Bfr::Tessellation *this, int *a2, const int *a3, int a4) { int v4; // r9d long long v5; // rax int i; // r8d long long j; // r9 long long v8; // r10 int v9; // r10d v4 = *((_DWORD *)this + 7); if ( v4 > 0 ) { v5 = *((__int16 *)this + 3); for ( i = 0; i < v4; ++i ) { if ( (__int16)v5 > 0 ) { for ( j = 0LL; j != v5; ++j ) { v8 = a2[j]; if ( v8 >= 0 ) { if ( (int)v8 >= *((_DWORD *)this + 5) ) v9 = a4 + v8; else v9 = a3[v8]; a2[j] = v9; } } v4 = *((_DWORD *)this + 7); } a2 += *((int *)this + 2); } } }
TransformFacetCoordIndices: MOV R9D,dword ptr [RDI + 0x1c] TEST R9D,R9D JLE 0x001a2fb1 MOVSX RAX,word ptr [RDI + 0x6] XOR R8D,R8D LAB_001a2f71: TEST AX,AX JLE 0x001a2fa1 XOR R9D,R9D LAB_001a2f79: MOVSXD R10,dword ptr [RSI + R9*0x4] TEST R10,R10 JS 0x001a2f95 CMP R10D,dword ptr [RDI + 0x14] JGE 0x001a2f8e MOV R10D,dword ptr [RDX + R10*0x4] JMP 0x001a2f91 LAB_001a2f8e: ADD R10D,ECX LAB_001a2f91: MOV dword ptr [RSI + R9*0x4],R10D LAB_001a2f95: INC R9 CMP RAX,R9 JNZ 0x001a2f79 MOV R9D,dword ptr [RDI + 0x1c] LAB_001a2fa1: INC R8D MOVSXD R10,dword ptr [RDI + 0x8] LEA RSI,[RSI + R10*0x4] CMP R8D,R9D JL 0x001a2f71 LAB_001a2fb1: RET
/* OpenSubdiv::v3_6_0::Bfr::Tessellation::TransformFacetCoordIndices(int*, int const*, int) */ void __thiscall OpenSubdiv::v3_6_0::Bfr::Tessellation::TransformFacetCoordIndices (Tessellation *this,int *param_1,int *param_2,int param_3) { short sVar1; int iVar2; long lVar3; int iVar4; iVar4 = *(int *)(this + 0x1c); if (0 < iVar4) { sVar1 = *(short *)(this + 6); iVar2 = 0; do { if (0 < sVar1) { lVar3 = 0; do { iVar4 = param_1[lVar3]; if (-1 < (long)iVar4) { if (iVar4 < *(int *)(this + 0x14)) { iVar4 = param_2[iVar4]; } else { iVar4 = iVar4 + param_3; } param_1[lVar3] = iVar4; } lVar3 = lVar3 + 1; } while (sVar1 != lVar3); iVar4 = *(int *)(this + 0x1c); } iVar2 = iVar2 + 1; param_1 = param_1 + *(int *)(this + 8); } while (iVar2 < iVar4); } return; }
65,284
reinit_io_cache
eloqsql/mysys/mf_iocache.c
my_bool reinit_io_cache(IO_CACHE *info, enum cache_type type, my_off_t seek_offset, my_bool use_async_io __attribute__((unused)), my_bool clear_cache) { DBUG_ENTER("reinit_io_cache"); DBUG_PRINT("enter",("cache:%p type: %d seek_offset: %llu clear_cache: %d", info, type, (ulonglong) seek_offset, (int) clear_cache)); DBUG_ASSERT(type == READ_CACHE || type == WRITE_CACHE); DBUG_ASSERT(info->type == READ_CACHE || info->type == WRITE_CACHE); /* If the whole file is in memory, avoid flushing to disk */ if (! clear_cache && seek_offset >= info->pos_in_file && seek_offset <= my_b_tell(info)) { /* Reuse current buffer without flushing it to disk */ uchar *pos; if (info->type == WRITE_CACHE && type == READ_CACHE) { info->read_end=info->write_pos; info->end_of_file=my_b_tell(info); /* Trigger a new seek only if we have a valid file handle. */ info->seek_not_done= (info->file != -1); } else if (type == WRITE_CACHE) { if (info->type == READ_CACHE) { info->write_end=info->write_buffer+info->buffer_length; info->seek_not_done=1; } info->end_of_file = ~(my_off_t) 0; } pos=info->request_pos+(seek_offset-info->pos_in_file); if (type == WRITE_CACHE) info->write_pos=pos; else info->read_pos= pos; } else { /* If we change from WRITE_CACHE to READ_CACHE, assume that everything after the current positions should be ignored. In other cases we update end_of_file as it may have changed since last init. */ if (type == READ_CACHE) { if (info->type == WRITE_CACHE) info->end_of_file= my_b_tell(info); else { if (!(info->myflags & MY_ENCRYPT)) info->end_of_file= mysql_file_seek(info->file, 0L, MY_SEEK_END, MYF(0)); } } /* flush cache if we want to reuse it */ if (!clear_cache && my_b_flush_io_cache(info,1)) DBUG_RETURN(1); info->pos_in_file=seek_offset; /* Better to do always do a seek */ info->seek_not_done=1; info->request_pos=info->read_pos=info->write_pos=info->buffer; if (type == READ_CACHE) { info->read_end=info->buffer; /* Nothing in cache */ } else { if (info->myflags & MY_ENCRYPT) { info->write_end = info->write_buffer + info->buffer_length; if (seek_offset && info->file != -1) { info->read_end= info->buffer; _my_b_encr_read(info, 0, 0); /* prefill the buffer */ info->write_pos= info->read_pos; info->seek_not_done=1; } } else { info->write_end=(info->buffer + info->buffer_length - (seek_offset & (IO_SIZE-1))); } info->end_of_file= ~(my_off_t) 0; } } info->type=type; info->error=0; init_functions(info); DBUG_RETURN(0); }
O3
c
reinit_io_cache: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movl %r8d, %r12d movq %rdx, %r15 movl %esi, %r14d movq %rdi, %rbx testb %r12b, %r12b jne 0x96264 movq (%rbx), %rdx movq %r15, %rax subq %rdx, %rax jb 0x96264 movl 0xb0(%rbx), %esi leaq 0x10(%rbx), %rdi leaq 0x40(%rbx), %r8 cmpl $0x2, %esi movq 0x28(%rbx), %rcx cmoveq %r8, %rdi subq %rcx, %rdx movq (%rdi), %rdi addq %rdx, %rdi cmpq %r15, %rdi jae 0x963a7 cmpl $0x1, %r14d jne 0x962ca cmpl $0x2, 0xb0(%rbx) jne 0x96280 movq (%rbx), %rax subq 0x28(%rbx), %rax addq 0x40(%rbx), %rax jmp 0x962c6 testb $0x40, 0xf8(%rbx) jne 0x962ca movl 0xd4(%rbx), %r13d leaq 0x2f1e29(%rip), %rax # 0x3880c0 movq (%rax), %rax leaq -0x78(%rbp), %rdi movl %r13d, %esi movl $0x8, %edx callq *0x158(%rax) testq %rax, %rax jne 0x9641f movl %r13d, %edi xorl %esi, %esi movl $0x2, %edx xorl %ecx, %ecx callq 0xa1a7c movq %rax, 0x8(%rbx) testb %r12b, %r12b je 0x9631b movq %r15, (%rbx) movl $0x1, 0xe0(%rbx) movq 0x20(%rbx), %rax movq %rax, 0x40(%rbx) movq %rax, 0x10(%rbx) movq %rax, 0x28(%rbx) cmpl $0x1, %r14d jne 0x962fb movq %rax, 0x18(%rbx) jmp 0x9637d testb $0x40, 0xf8(%rbx) jne 0x96332 addq 0xe8(%rbx), %rax andl $0xfff, %r15d # imm = 0xFFF subq %r15, %rax movq %rax, 0x48(%rbx) jmp 0x96375 movq %rbx, %rdi movl $0x1, %esi callq 0x9643d movl %eax, %ecx movb $0x1, %al testl %ecx, %ecx jne 0x96398 jmp 0x962cf movq 0x30(%rbx), %rcx addq 0xe8(%rbx), %rcx movq %rcx, 0x48(%rbx) testq %r15, %r15 je 0x96375 cmpl $-0x1, 0xd4(%rbx) je 0x96375 movq %rax, 0x18(%rbx) leaq 0xb73a8e(%rip), %rax # 0xc09de8 movq %rbx, %rdi xorl %esi, %esi xorl %edx, %edx callq *(%rax) movq 0x10(%rbx), %rax movq %rax, 0x40(%rbx) movl $0x1, 0xe0(%rbx) movq $-0x1, 0x8(%rbx) movl %r14d, 0xb0(%rbx) movl $0x0, 0xe4(%rbx) movq %rbx, %rdi callq 0x95ff3 xorl %eax, %eax addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl %esi, %edi xorl $0x2, %edi movl %r14d, %r8d xorl $0x1, %r8d orl %edi, %r8d jne 0x963db movq 0x40(%rbx), %rsi movq %rsi, 0x18(%rbx) addq %rsi, %rdx movq %rdx, 0x8(%rbx) xorl %edx, %edx cmpl $-0x1, 0xd4(%rbx) setne %dl movl %edx, 0xe0(%rbx) jmp 0x96413 cmpl $0x2, %r14d jne 0x96413 cmpl $0x1, %esi jne 0x963ff movq 0x30(%rbx), %rdx addq 0xe8(%rbx), %rdx movq %rdx, 0x48(%rbx) movl $0x1, 0xe0(%rbx) movq $-0x1, 0x8(%rbx) addq %rax, %rcx movq %rcx, 0x40(%rbx) jmp 0x9637d addq %rax, %rcx movq %rcx, 0x10(%rbx) jmp 0x9637d leaq -0x30(%rbp), %rcx movq %rax, %rdi movl %r13d, %esi movq %rcx, %r13 movq %rcx, %rdx callq 0x2e9cd movq (%r13), %rax jmp 0x962c6
reinit_io_cache: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 58h mov r12d, r8d mov r15, rdx mov r14d, esi mov rbx, rdi test r12b, r12b jnz short loc_96264 mov rdx, [rbx] mov rax, r15 sub rax, rdx jb short loc_96264 mov esi, [rbx+0B0h] lea rdi, [rbx+10h] lea r8, [rbx+40h] cmp esi, 2 mov rcx, [rbx+28h] cmovz rdi, r8 sub rdx, rcx mov rdi, [rdi] add rdi, rdx cmp rdi, r15 jnb loc_963A7 loc_96264: cmp r14d, 1 jnz short loc_962CA cmp dword ptr [rbx+0B0h], 2 jnz short loc_96280 mov rax, [rbx] sub rax, [rbx+28h] add rax, [rbx+40h] jmp short loc_962C6 loc_96280: test byte ptr [rbx+0F8h], 40h jnz short loc_962CA mov r13d, [rbx+0D4h] lea rax, PSI_server mov rax, [rax] lea rdi, [rbp+var_78] mov esi, r13d mov edx, 8 call qword ptr [rax+158h] test rax, rax jnz loc_9641F mov edi, r13d xor esi, esi mov edx, 2 xor ecx, ecx call my_seek loc_962C6: mov [rbx+8], rax loc_962CA: test r12b, r12b jz short loc_9631B loc_962CF: mov [rbx], r15 mov dword ptr [rbx+0E0h], 1 mov rax, [rbx+20h] mov [rbx+40h], rax mov [rbx+10h], rax mov [rbx+28h], rax cmp r14d, 1 jnz short loc_962FB mov [rbx+18h], rax jmp loc_9637D loc_962FB: test byte ptr [rbx+0F8h], 40h jnz short loc_96332 add rax, [rbx+0E8h] and r15d, 0FFFh sub rax, r15 mov [rbx+48h], rax jmp short loc_96375 loc_9631B: mov rdi, rbx mov esi, 1 call my_b_flush_io_cache mov ecx, eax mov al, 1 test ecx, ecx jnz short loc_96398 jmp short loc_962CF loc_96332: mov rcx, [rbx+30h] add rcx, [rbx+0E8h] mov [rbx+48h], rcx test r15, r15 jz short loc_96375 cmp dword ptr [rbx+0D4h], 0FFFFFFFFh jz short loc_96375 mov [rbx+18h], rax lea rax, _my_b_encr_read mov rdi, rbx xor esi, esi xor edx, edx call qword ptr [rax] mov rax, [rbx+10h] mov [rbx+40h], rax mov dword ptr [rbx+0E0h], 1 loc_96375: mov qword ptr [rbx+8], 0FFFFFFFFFFFFFFFFh loc_9637D: mov [rbx+0B0h], r14d mov dword ptr [rbx+0E4h], 0 mov rdi, rbx call init_functions xor eax, eax loc_96398: add rsp, 58h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_963A7: mov edi, esi xor edi, 2 mov r8d, r14d xor r8d, 1 or r8d, edi jnz short loc_963DB mov rsi, [rbx+40h] mov [rbx+18h], rsi add rdx, rsi mov [rbx+8], rdx xor edx, edx cmp dword ptr [rbx+0D4h], 0FFFFFFFFh setnz dl mov [rbx+0E0h], edx jmp short loc_96413 loc_963DB: cmp r14d, 2 jnz short loc_96413 cmp esi, 1 jnz short loc_963FF mov rdx, [rbx+30h] add rdx, [rbx+0E8h] mov [rbx+48h], rdx mov dword ptr [rbx+0E0h], 1 loc_963FF: mov qword ptr [rbx+8], 0FFFFFFFFFFFFFFFFh add rcx, rax mov [rbx+40h], rcx jmp loc_9637D loc_96413: add rcx, rax mov [rbx+10h], rcx jmp loc_9637D loc_9641F: lea rcx, [rbp+var_30] mov rdi, rax mov esi, r13d mov r13, rcx mov rdx, rcx call reinit_io_cache_cold_1 mov rax, [r13+0] jmp loc_962C6
char reinit_io_cache(long long a1, int a2, unsigned long long a3, long long a4, char a5) { long long v9; // rdx unsigned long long v10; // rax int v11; // esi _QWORD *v12; // rdi long long v13; // rcx long long v14; // rdx long long v15; // rax unsigned int v16; // r13d long long v17; // rax long long v18; // rax int v19; // ecx char result; // al long long v21; // rsi _BYTE v22[72]; // [rsp+8h] [rbp-78h] BYREF long long v23[6]; // [rsp+50h] [rbp-30h] BYREF if ( !a5 ) { v9 = *(_QWORD *)a1; v10 = a3 - *(_QWORD *)a1; if ( a3 >= *(_QWORD *)a1 ) { v11 = *(_DWORD *)(a1 + 176); v12 = (_QWORD *)(a1 + 16); v13 = *(_QWORD *)(a1 + 40); if ( v11 == 2 ) v12 = (_QWORD *)(a1 + 64); v14 = v9 - v13; if ( v14 + *v12 >= a3 ) { if ( v11 ^ 2 | a2 ^ 1 ) { if ( a2 == 2 ) { if ( v11 == 1 ) { *(_QWORD *)(a1 + 72) = *(_QWORD *)(a1 + 232) + *(_QWORD *)(a1 + 48); *(_DWORD *)(a1 + 224) = 1; } *(_QWORD *)(a1 + 8) = -1LL; *(_QWORD *)(a1 + 64) = v10 + v13; goto LABEL_24; } } else { v21 = *(_QWORD *)(a1 + 64); *(_QWORD *)(a1 + 24) = v21; *(_QWORD *)(a1 + 8) = v21 + v14; *(_DWORD *)(a1 + 224) = *(_DWORD *)(a1 + 212) != -1; } *(_QWORD *)(a1 + 16) = v10 + v13; LABEL_24: *(_DWORD *)(a1 + 176) = a2; *(_DWORD *)(a1 + 228) = 0; init_functions(a1); return 0; } } } if ( a2 == 1 ) { if ( *(_DWORD *)(a1 + 176) == 2 ) { v15 = *(_QWORD *)(a1 + 64) + *(_QWORD *)a1 - *(_QWORD *)(a1 + 40); LABEL_12: *(_QWORD *)(a1 + 8) = v15; goto LABEL_13; } if ( (*(_BYTE *)(a1 + 248) & 0x40) == 0 ) { v16 = *(_DWORD *)(a1 + 212); v17 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v22, v16, 8LL); if ( v17 ) { reinit_io_cache_cold_1(v17, v16, v23); v15 = v23[0]; } else { v15 = my_seek(v16, 0LL, 2LL, 0LL); } goto LABEL_12; } } LABEL_13: if ( a5 || (v19 = my_b_flush_io_cache(a1, 1LL), result = 1, !v19) ) { *(_QWORD *)a1 = a3; *(_DWORD *)(a1 + 224) = 1; v18 = *(_QWORD *)(a1 + 32); *(_QWORD *)(a1 + 64) = v18; *(_QWORD *)(a1 + 16) = v18; *(_QWORD *)(a1 + 40) = v18; if ( a2 == 1 ) { *(_QWORD *)(a1 + 24) = v18; } else { if ( (*(_BYTE *)(a1 + 248) & 0x40) != 0 ) { *(_QWORD *)(a1 + 72) = *(_QWORD *)(a1 + 232) + *(_QWORD *)(a1 + 48); if ( a3 ) { if ( *(_DWORD *)(a1 + 212) != -1 ) { *(_QWORD *)(a1 + 24) = v18; my_b_encr_read(a1, 0LL, 0LL); *(_QWORD *)(a1 + 64) = *(_QWORD *)(a1 + 16); *(_DWORD *)(a1 + 224) = 1; } } } else { *(_QWORD *)(a1 + 72) = *(_QWORD *)(a1 + 232) + v18 - (a3 & 0xFFF); } *(_QWORD *)(a1 + 8) = -1LL; } goto LABEL_24; } return result; }
reinit_io_cache: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x58 MOV R12D,R8D MOV R15,RDX MOV R14D,ESI MOV RBX,RDI TEST R12B,R12B JNZ 0x00196264 MOV RDX,qword ptr [RBX] MOV RAX,R15 SUB RAX,RDX JC 0x00196264 MOV ESI,dword ptr [RBX + 0xb0] LEA RDI,[RBX + 0x10] LEA R8,[RBX + 0x40] CMP ESI,0x2 MOV RCX,qword ptr [RBX + 0x28] CMOVZ RDI,R8 SUB RDX,RCX MOV RDI,qword ptr [RDI] ADD RDI,RDX CMP RDI,R15 JNC 0x001963a7 LAB_00196264: CMP R14D,0x1 JNZ 0x001962ca CMP dword ptr [RBX + 0xb0],0x2 JNZ 0x00196280 MOV RAX,qword ptr [RBX] SUB RAX,qword ptr [RBX + 0x28] ADD RAX,qword ptr [RBX + 0x40] JMP 0x001962c6 LAB_00196280: TEST byte ptr [RBX + 0xf8],0x40 JNZ 0x001962ca MOV R13D,dword ptr [RBX + 0xd4] LEA RAX,[0x4880c0] MOV RAX,qword ptr [RAX] LEA RDI,[RBP + -0x78] MOV ESI,R13D MOV EDX,0x8 CALL qword ptr [RAX + 0x158] TEST RAX,RAX JNZ 0x0019641f MOV EDI,R13D XOR ESI,ESI MOV EDX,0x2 XOR ECX,ECX CALL 0x001a1a7c LAB_001962c6: MOV qword ptr [RBX + 0x8],RAX LAB_001962ca: TEST R12B,R12B JZ 0x0019631b LAB_001962cf: MOV qword ptr [RBX],R15 MOV dword ptr [RBX + 0xe0],0x1 MOV RAX,qword ptr [RBX + 0x20] MOV qword ptr [RBX + 0x40],RAX MOV qword ptr [RBX + 0x10],RAX MOV qword ptr [RBX + 0x28],RAX CMP R14D,0x1 JNZ 0x001962fb MOV qword ptr [RBX + 0x18],RAX JMP 0x0019637d LAB_001962fb: TEST byte ptr [RBX + 0xf8],0x40 JNZ 0x00196332 ADD RAX,qword ptr [RBX + 0xe8] AND R15D,0xfff SUB RAX,R15 MOV qword ptr [RBX + 0x48],RAX JMP 0x00196375 LAB_0019631b: MOV RDI,RBX MOV ESI,0x1 CALL 0x0019643d MOV ECX,EAX MOV AL,0x1 TEST ECX,ECX JNZ 0x00196398 JMP 0x001962cf LAB_00196332: MOV RCX,qword ptr [RBX + 0x30] ADD RCX,qword ptr [RBX + 0xe8] MOV qword ptr [RBX + 0x48],RCX TEST R15,R15 JZ 0x00196375 CMP dword ptr [RBX + 0xd4],-0x1 JZ 0x00196375 MOV qword ptr [RBX + 0x18],RAX LEA RAX,[0xd09de8] MOV RDI,RBX XOR ESI,ESI XOR EDX,EDX CALL qword ptr [RAX] MOV RAX,qword ptr [RBX + 0x10] MOV qword ptr [RBX + 0x40],RAX MOV dword ptr [RBX + 0xe0],0x1 LAB_00196375: MOV qword ptr [RBX + 0x8],-0x1 LAB_0019637d: MOV dword ptr [RBX + 0xb0],R14D MOV dword ptr [RBX + 0xe4],0x0 MOV RDI,RBX CALL 0x00195ff3 XOR EAX,EAX LAB_00196398: ADD RSP,0x58 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001963a7: MOV EDI,ESI XOR EDI,0x2 MOV R8D,R14D XOR R8D,0x1 OR R8D,EDI JNZ 0x001963db MOV RSI,qword ptr [RBX + 0x40] MOV qword ptr [RBX + 0x18],RSI ADD RDX,RSI MOV qword ptr [RBX + 0x8],RDX XOR EDX,EDX CMP dword ptr [RBX + 0xd4],-0x1 SETNZ DL MOV dword ptr [RBX + 0xe0],EDX JMP 0x00196413 LAB_001963db: CMP R14D,0x2 JNZ 0x00196413 CMP ESI,0x1 JNZ 0x001963ff MOV RDX,qword ptr [RBX + 0x30] ADD RDX,qword ptr [RBX + 0xe8] MOV qword ptr [RBX + 0x48],RDX MOV dword ptr [RBX + 0xe0],0x1 LAB_001963ff: MOV qword ptr [RBX + 0x8],-0x1 ADD RCX,RAX MOV qword ptr [RBX + 0x40],RCX JMP 0x0019637d LAB_00196413: ADD RCX,RAX MOV qword ptr [RBX + 0x10],RCX JMP 0x0019637d LAB_0019641f: LEA RCX,[RBP + -0x30] MOV RDI,RAX MOV ESI,R13D MOV R13,RCX MOV RDX,RCX CALL 0x0012e9cd MOV RAX,qword ptr [R13] JMP 0x001962c6
int8 reinit_io_cache(ulong *param_1,int param_2,ulong param_3,int8 param_4,char param_5) { int4 uVar1; ulong uVar2; ulong uVar3; int iVar4; long lVar5; ulong *puVar6; int1 local_80 [72]; ulong local_38; if (param_5 == '\0') { uVar2 = *param_1; if (uVar2 <= param_3) { iVar4 = (int)param_1[0x16]; uVar3 = param_1[5]; puVar6 = param_1 + 2; if (iVar4 == 2) { puVar6 = param_1 + 8; } if (param_3 <= *puVar6 + (uVar2 - uVar3)) { if (param_2 == 1 && iVar4 == 2) { param_1[3] = param_1[8]; param_1[1] = (uVar2 - uVar3) + param_1[8]; *(uint *)(param_1 + 0x1c) = (uint)(*(int *)((long)param_1 + 0xd4) != -1); } else if (param_2 == 2) { if (iVar4 == 1) { param_1[9] = param_1[6] + param_1[0x1d]; *(int4 *)(param_1 + 0x1c) = 1; } param_1[1] = 0xffffffffffffffff; param_1[8] = uVar3 + (param_3 - uVar2); goto LAB_0019637d; } param_1[2] = uVar3 + (param_3 - uVar2); goto LAB_0019637d; } } } if (param_2 == 1) { if ((int)param_1[0x16] == 2) { local_38 = (*param_1 - param_1[5]) + param_1[8]; } else { if ((param_1[0x1f] & 0x40) != 0) goto LAB_001962ca; uVar1 = *(int4 *)((long)param_1 + 0xd4); lVar5 = (**(code **)(PSI_server + 0x158))(local_80,uVar1,8); if (lVar5 == 0) { local_38 = my_seek(uVar1,0,2,0); } else { reinit_io_cache_cold_1(lVar5,uVar1,&local_38); } } param_1[1] = local_38; } LAB_001962ca: if ((param_5 == '\0') && (iVar4 = my_b_flush_io_cache(param_1,1), iVar4 != 0)) { return 1; } *param_1 = param_3; *(int4 *)(param_1 + 0x1c) = 1; uVar2 = param_1[4]; param_1[8] = uVar2; param_1[2] = uVar2; param_1[5] = uVar2; if (param_2 == 1) { param_1[3] = uVar2; } else { if ((param_1[0x1f] & 0x40) == 0) { param_1[9] = (uVar2 + param_1[0x1d]) - (ulong)((uint)param_3 & 0xfff); } else { param_1[9] = param_1[6] + param_1[0x1d]; if ((param_3 != 0) && (*(int *)((long)param_1 + 0xd4) != -1)) { param_1[3] = uVar2; (*_my_b_encr_read)(param_1,0,0); param_1[8] = param_1[2]; *(int4 *)(param_1 + 0x1c) = 1; } } param_1[1] = 0xffffffffffffffff; } LAB_0019637d: *(int *)(param_1 + 0x16) = param_2; *(int4 *)((long)param_1 + 0xe4) = 0; init_functions(param_1); return 0; }
65,285
google::protobuf::compiler::cpp::MessageFieldGenerator::MessageFieldGenerator(google::protobuf::FieldDescriptor const*, google::protobuf::compiler::cpp::Options const&, google::protobuf::compiler::cpp::MessageSCCAnalyzer*)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/cpp/message_field.cc
MessageFieldGenerator::MessageFieldGenerator(const FieldDescriptor* descriptor, const Options& options, MessageSCCAnalyzer* scc_analyzer) : FieldGenerator(descriptor, options), implicit_weak_field_( IsImplicitWeakField(descriptor, options, scc_analyzer)), has_required_fields_( scc_analyzer->HasRequiredFields(descriptor->message_type())) { SetMessageVariables(descriptor, options, implicit_weak_field_, &variables_); }
O3
cpp
google::protobuf::compiler::cpp::MessageFieldGenerator::MessageFieldGenerator(google::protobuf::FieldDescriptor const*, google::protobuf::compiler::cpp::Options const&, google::protobuf::compiler::cpp::MessageSCCAnalyzer*): pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rcx, %r12 movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx movq %rsi, 0x8(%rdi) movq %rdx, 0x10(%rdi) leaq 0x20(%rdi), %rax movl $0x0, 0x20(%rdi) xorl %ecx, %ecx movq %rcx, 0x28(%rdi) movq %rax, 0x30(%rdi) movq %rax, 0x38(%rdi) movq %rcx, 0x40(%rdi) leaq 0x1b1144(%rip), %rax # 0x278de0 movq %rax, (%rdi) movq %rsi, %rdi movq %rdx, %rsi movq %r12, %rdx callq 0x37e6a movb %al, 0x48(%rbx) movq %r15, %rdi callq 0x11d7ce movq %r12, %rdi movq %rax, %rsi callq 0x3921c movq %r12, %rdi movq %rax, %rsi callq 0x37f86 testl $0x1010000, %eax # imm = 0x1010000 setne 0x49(%rbx) movzbl 0x48(%rbx), %edx leaq 0x18(%rbx), %rcx movq %r15, %rdi movq %r14, %rsi callq 0xc7d09 addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq movq %rax, %r14 movq %rbx, %rdi callq 0xc61c8 movq %r14, %rdi callq 0x1f860
_ZN6google8protobuf8compiler3cpp21MessageFieldGeneratorC2EPKNS0_15FieldDescriptorERKNS2_7OptionsEPNS2_18MessageSCCAnalyzerE: push r15; void * push r14; int push r12; char push rbx; int push rax; void * mov r12, rcx mov r14, rdx mov r15, rsi mov rbx, rdi mov [rdi+8], rsi mov [rdi+10h], rdx lea rax, [rdi+20h] mov dword ptr [rdi+20h], 0 xor ecx, ecx; google::protobuf::compiler::cpp::MessageSCCAnalyzer * mov [rdi+28h], rcx mov [rdi+30h], rax mov [rdi+38h], rax mov [rdi+40h], rcx lea rax, off_278DE0 mov [rdi], rax mov rdi, rsi; this mov rsi, rdx; google::protobuf::FieldDescriptor * mov rdx, r12; google::protobuf::compiler::cpp::Options * call _ZN6google8protobuf8compiler3cpp19IsImplicitWeakFieldEPKNS0_15FieldDescriptorERKNS2_7OptionsEPNS2_18MessageSCCAnalyzerE; google::protobuf::compiler::cpp::IsImplicitWeakField(google::protobuf::FieldDescriptor const*,google::protobuf::compiler::cpp::Options const&,google::protobuf::compiler::cpp::MessageSCCAnalyzer *) mov [rbx+48h], al mov rdi, r15; this call _ZNK6google8protobuf15FieldDescriptor12message_typeEv; google::protobuf::FieldDescriptor::message_type(void) mov rdi, r12 mov rsi, rax call _ZN6google8protobuf8compiler11SCCAnalyzerINS1_3cpp18MessageSCCAnalyzer13DepsGeneratorEE6GetSCCEPKNS0_10DescriptorE; google::protobuf::compiler::SCCAnalyzer<google::protobuf::compiler::cpp::MessageSCCAnalyzer::DepsGenerator>::GetSCC(google::protobuf::Descriptor const*) mov rdi, r12 mov rsi, rax call _ZN6google8protobuf8compiler3cpp18MessageSCCAnalyzer14GetSCCAnalysisEPKNS1_3SCCE; google::protobuf::compiler::cpp::MessageSCCAnalyzer::GetSCCAnalysis(google::protobuf::compiler::SCC const*) test eax, 1010000h setnz byte ptr [rbx+49h] movzx edx, byte ptr [rbx+48h] lea rcx, [rbx+18h] mov rdi, r15; this mov rsi, r14; int call _ZN6google8protobuf8compiler3cpp12_GLOBAL__N_119SetMessageVariablesEPKNS0_15FieldDescriptorERKNS2_7OptionsEbPSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESG_St4lessISG_ESaISt4pairIKSG_SG_EEE; google::protobuf::compiler::cpp::`anonymous namespace'::SetMessageVariables(google::protobuf::FieldDescriptor const*,google::protobuf::compiler::cpp::Options const&,bool,std::map<std::string,std::string> *) add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn mov r14, rax mov rdi, rbx; this call _ZN6google8protobuf8compiler3cpp14FieldGeneratorD2Ev; google::protobuf::compiler::cpp::FieldGenerator::~FieldGenerator() mov rdi, r14 call __Unwind_Resume
MessageFieldGenerator: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV R12,RCX MOV R14,RDX MOV R15,RSI MOV RBX,RDI MOV qword ptr [RDI + 0x8],RSI MOV qword ptr [RDI + 0x10],RDX LEA RAX,[RDI + 0x20] MOV dword ptr [RDI + 0x20],0x0 XOR ECX,ECX MOV qword ptr [RDI + 0x28],RCX MOV qword ptr [RDI + 0x30],RAX MOV qword ptr [RDI + 0x38],RAX MOV qword ptr [RDI + 0x40],RCX LEA RAX,[0x378de0] MOV qword ptr [RDI],RAX LAB_001c7c9f: MOV RDI,RSI MOV RSI,RDX MOV RDX,R12 CALL 0x00137e6a MOV byte ptr [RBX + 0x48],AL MOV RDI,R15 CALL 0x0021d7ce MOV RDI,R12 MOV RSI,RAX CALL 0x0013921c MOV RDI,R12 MOV RSI,RAX CALL 0x00137f86 TEST EAX,0x1010000 SETNZ byte ptr [RBX + 0x49] MOVZX EDX,byte ptr [RBX + 0x48] LEA RCX,[RBX + 0x18] MOV RDI,R15 MOV RSI,R14 CALL 0x001c7d09 LAB_001c7cea: ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
/* google::protobuf::compiler::cpp::MessageFieldGenerator::MessageFieldGenerator(google::protobuf::FieldDescriptor const*, google::protobuf::compiler::cpp::Options const&, google::protobuf::compiler::cpp::MessageSCCAnalyzer*) */ void __thiscall google::protobuf::compiler::cpp::MessageFieldGenerator::MessageFieldGenerator (MessageFieldGenerator *this,FieldDescriptor *param_1,Options *param_2, MessageSCCAnalyzer *param_3) { MessageFieldGenerator MVar1; Descriptor *pDVar2; SCC *pSVar3; ulong uVar4; *(FieldDescriptor **)(this + 8) = param_1; *(Options **)(this + 0x10) = param_2; *(int4 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(MessageFieldGenerator **)(this + 0x30) = this + 0x20; *(MessageFieldGenerator **)(this + 0x38) = this + 0x20; *(int8 *)(this + 0x40) = 0; *(int ***)this = &PTR__MessageOneofFieldGenerator_00378de0; /* try { // try from 001c7c9f to 001c7ce9 has its CatchHandler @ 001c7cf6 */ MVar1 = (MessageFieldGenerator)IsImplicitWeakField(param_1,param_2,param_3); this[0x48] = MVar1; pDVar2 = (Descriptor *)FieldDescriptor::message_type(param_1); pSVar3 = (SCC *)SCCAnalyzer<google::protobuf::compiler::cpp::MessageSCCAnalyzer::DepsGenerator>:: GetSCC((SCCAnalyzer<google::protobuf::compiler::cpp::MessageSCCAnalyzer::DepsGenerator> *)param_3,pDVar2); uVar4 = MessageSCCAnalyzer::GetSCCAnalysis(param_3,pSVar3); this[0x49] = (MessageFieldGenerator)((uVar4 & 0x1010000) != 0); (anonymous_namespace)::SetMessageVariables(param_1,param_2,(bool)this[0x48],(map *)(this + 0x18)); return; }
65,286
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [52], char const*>(char const (&) [52], char const*&&)
monkey531[P]llama/common/json.hpp
inline OutStringType concat(Args && ... args) { OutStringType str; str.reserve(concat_length(args...)); concat_into(str, std::forward<Args>(args)...); return str; }
O1
cpp
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [52], char const*>(char const (&) [52], char const*&&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rcx, %r14 movq %rdx, %r15 movq %rsi, %r12 movq %rdi, %rbx leaq 0x10(%rdi), %rbp movq %rbp, (%rdi) movq $0x0, 0x8(%rdi) movb $0x0, 0x10(%rdi) movq %rsi, %rdi callq 0x1b3e0 movq %rax, %r13 addq 0x8(%r15), %r13 movq %r14, %rdi callq 0x1b3e0 addq %rax, %r13 movq %rbx, %rdi movq %r13, %rsi callq 0x1bda0 movq %rbx, %rdi movq %r12, %rsi callq 0x1c120 movq (%r15), %rsi movq 0x8(%r15), %rdx movq %rbx, %rdi callq 0x1b260 movq %rbx, %rdi movq %r14, %rsi callq 0x1c120 movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %r14 movq (%rbx), %rdi cmpq %rbp, %rdi je 0xad6a1 movq (%rbp), %rsi incq %rsi callq 0x1b900 movq %r14, %rdi callq 0x1bfc0 nop
_ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA6_KcS8_RA12_S9_EEET_DpOT0_: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov r14, rcx mov r15, rdx mov r12, rsi mov rbx, rdi lea rbp, [rdi+10h] mov [rdi], rbp mov qword ptr [rdi+8], 0 mov byte ptr [rdi+10h], 0 mov rdi, rsi call _strlen mov r13, rax add r13, [r15+8] mov rdi, r14 call _strlen add r13, rax mov rdi, rbx mov rsi, r13 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) mov rdi, rbx mov rsi, r12 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov rsi, [r15] mov rdx, [r15+8] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rdi, rbx mov rsi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov rax, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov r14, rax mov rdi, [rbx]; void * cmp rdi, rbp jz short loc_AD6A1 mov rsi, [rbp+0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_AD6A1: mov rdi, r14 call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>( long long a1, long long a2, _QWORD *a3, long long a4) { long long v6; // r13 long long v7; // rax *(_QWORD *)a1 = a1 + 16; *(_QWORD *)(a1 + 8) = 0LL; *(_BYTE *)(a1 + 16) = 0; v6 = a3[1] + strlen(a2); v7 = strlen(a4); std::string::reserve(a1, v7 + v6); std::string::append(a1, a2); std::string::_M_append(a1, *a3, a3[1]); std::string::append(a1, a4); return a1; }
concat<std::__cxx11::string,char_const(&)[6],std::__cxx11::string,char_const(&)[12]>: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R14,RCX MOV R15,RDX MOV R12,RSI MOV RBX,RDI LEA RBP,[RDI + 0x10] MOV qword ptr [RDI],RBP MOV qword ptr [RDI + 0x8],0x0 MOV byte ptr [RDI + 0x10],0x0 MOV RDI,RSI CALL 0x0011b3e0 MOV R13,RAX ADD R13,qword ptr [R15 + 0x8] MOV RDI,R14 CALL 0x0011b3e0 ADD R13,RAX LAB_001ad648: MOV RDI,RBX MOV RSI,R13 CALL 0x0011bda0 MOV RDI,RBX MOV RSI,R12 CALL 0x0011c120 MOV RSI,qword ptr [R15] MOV RDX,qword ptr [R15 + 0x8] MOV RDI,RBX CALL 0x0011b260 MOV RDI,RBX MOV RSI,R14 CALL 0x0011c120 LAB_001ad678: MOV RAX,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* std::__cxx11::string nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string, char const (&) [6], std::__cxx11::string, char const (&) [12]>(char const (&) [6], std::__cxx11::string&&, char const (&) [12]) */ detail * __thiscall nlohmann::json_abi_v3_11_3::detail:: concat<std::__cxx11::string,char_const(&)[6],std::__cxx11::string,char_const(&)[12]> (detail *this,char *param_1,string *param_2,char *param_3) { *(detail **)this = this + 0x10; *(int8 *)(this + 8) = 0; this[0x10] = (detail)0x0; strlen(param_1); strlen(param_3); /* try { // try from 001ad648 to 001ad677 has its CatchHandler @ 001ad68a */ std::__cxx11::string::reserve((ulong)this); std::__cxx11::string::append((char *)this); std::__cxx11::string::_M_append((char *)this,*(ulong *)param_2); std::__cxx11::string::append((char *)this); return this; }
65,287
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [52], char const*>(char const (&) [52], char const*&&)
monkey531[P]llama/common/json.hpp
inline OutStringType concat(Args && ... args) { OutStringType str; str.reserve(concat_length(args...)); concat_into(str, std::forward<Args>(args)...); return str; }
O2
cpp
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [52], char const*>(char const (&) [52], char const*&&): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %r8, %r14 movq %rcx, %r15 movq %rdx, %r12 movq %rsi, %r13 movq %rdi, %rbx leaq 0x10(%rdi), %rax movq %rax, (%rdi) andq $0x0, 0x8(%rdi) movb $0x0, 0x10(%rdi) movq %rsi, %rdi movq %rdx, %rsi movq %rcx, %rdx movq %r8, %rcx callq 0x88057 movq %rbx, %rdi movq %rax, %rsi callq 0x23db0 movq %rbx, %rdi movq %r13, %rsi movq %r12, %rdx movq %r15, %rcx movq %r14, %r8 callq 0x8808d movq %rbx, %rax popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq movq %rax, %r14 movq %rbx, %rdi callq 0x24208 movq %r14, %rdi callq 0x23fc0
_ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcS8_RA5_S9_S8_EEET_DpOT0_: push r15 push r14 push r13 push r12 push rbx mov r14, r8 mov r15, rcx mov r12, rdx mov r13, rsi mov rbx, rdi lea rax, [rdi+10h] mov [rdi], rax and qword ptr [rdi+8], 0 mov byte ptr [rdi+10h], 0 mov rdi, rsi mov rsi, rdx mov rdx, rcx mov rcx, r8 call _ZN8nlohmann16json_abi_v3_11_36detail13concat_lengthIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEA5_cS8_EEEmPKcDpRKT_; nlohmann::json_abi_v3_11_3::detail::concat_length<std::string,char [5],std::string>(char const*,std::string,char [5],std::string const&) mov rdi, rbx mov rsi, rax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) mov rdi, rbx mov rsi, r13 mov rdx, r12 mov rcx, r15 mov r8, r14 call _ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA29_KcJS8_RA5_S9_S8_ETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSF_OSG_DpOT1_ mov rax, rbx pop rbx pop r12 pop r13 pop r14 pop r15 retn mov r14, rax mov rdi, rbx; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, r14 call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],std::string,char const(&)[5],std::string>( long long a1, long long a2, long long a3, long long a4, long long a5) { long long v8; // rax *(_QWORD *)a1 = a1 + 16; *(_QWORD *)(a1 + 8) = 0LL; *(_BYTE *)(a1 + 16) = 0; v8 = nlohmann::json_abi_v3_11_3::detail::concat_length<std::string,char [5],std::string>(a2, a3, a4, a5); std::string::reserve(a1, v8); ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA29_KcJS8_RA5_S9_S8_ETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSF_OSG_DpOT1_( a1, a2, a3, a4, a5); return a1; }
concat<std::__cxx11::string,char_const(&)[29],std::__cxx11::string,char_const(&)[5],std::__cxx11::string>: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX MOV R14,R8 MOV R15,RCX MOV R12,RDX MOV R13,RSI MOV RBX,RDI LEA RAX,[RDI + 0x10] MOV qword ptr [RDI],RAX AND qword ptr [RDI + 0x8],0x0 MOV byte ptr [RDI + 0x10],0x0 LAB_00187f64: MOV RDI,RSI MOV RSI,RDX MOV RDX,RCX MOV RCX,R8 CALL 0x00188057 MOV RDI,RBX MOV RSI,RAX CALL 0x00123db0 MOV RDI,RBX MOV RSI,R13 MOV RDX,R12 MOV RCX,R15 MOV R8,R14 CALL 0x0018808d LAB_00187f94: MOV RAX,RBX POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* std::__cxx11::string nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string, char const (&) [29], std::__cxx11::string, char const (&) [5], std::__cxx11::string >(char const (&) [29], std::__cxx11::string&&, char const (&) [5], std::__cxx11::string&&) */ detail * __thiscall nlohmann::json_abi_v3_11_3::detail:: concat<std::__cxx11::string,char_const(&)[29],std::__cxx11::string,char_const(&)[5],std::__cxx11::string> (detail *this,char *param_1,string *param_2,char *param_3,string *param_4) { *(detail **)this = this + 0x10; *(int8 *)(this + 8) = 0; this[0x10] = (detail)0x0; /* try { // try from 00187f64 to 00187f93 has its CatchHandler @ 00187fa1 */ concat_length<std::__cxx11::string,char[5],std::__cxx11::string>(param_1,param_2,param_3,param_4); std::__cxx11::string::reserve((ulong)this); _ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA29_KcJS8_RA5_S9_S8_ETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSF_OSG_DpOT1_ (this,param_1,param_2,param_3,param_4); return this; }
65,288
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [52], char const*>(char const (&) [52], char const*&&)
monkey531[P]llama/common/json.hpp
inline OutStringType concat(Args && ... args) { OutStringType str; str.reserve(concat_length(args...)); concat_into(str, std::forward<Args>(args)...); return str; }
O3
cpp
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [52], char const*>(char const (&) [52], char const*&&): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx leaq 0x10(%rdi), %r13 movq %r13, (%rdi) movq $0x0, 0x8(%rdi) movb $0x0, 0x10(%rdi) movq %rsi, %rdi callq 0x1a3e0 movq %rax, %r12 movq (%r14), %rdi callq 0x1a3e0 addq %rax, %r12 movq %rbx, %rdi movq %r12, %rsi callq 0x1ada0 movq %rbx, %rdi movq %r15, %rsi callq 0x1b120 movq (%r14), %rsi movq %rbx, %rdi callq 0x1b120 movq %rbx, %rax popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq movq %rax, %r14 movq (%rbx), %rdi cmpq %r13, %rdi je 0xab731 movq (%r13), %rsi incq %rsi callq 0x1a900 movq %r14, %rdi callq 0x1afc0 nop
_ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA22_KcPS9_EEET_DpOT0_: push r15 push r14 push r13 push r12 push rbx mov r14, rdx mov r15, rsi mov rbx, rdi lea r13, [rdi+10h] mov [rdi], r13 mov qword ptr [rdi+8], 0 mov byte ptr [rdi+10h], 0 mov rdi, rsi call _strlen mov r12, rax mov rdi, [r14] call _strlen add r12, rax mov rdi, rbx mov rsi, r12 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) mov rdi, rbx mov rsi, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov rsi, [r14] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov rax, rbx pop rbx pop r12 pop r13 pop r14 pop r15 retn mov r14, rax mov rdi, [rbx]; void * cmp rdi, r13 jz short loc_AB731 mov rsi, [r13+0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_AB731: mov rdi, r14 call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>( long long a1, long long a2, _QWORD *a3) { long long v4; // r12 long long v5; // rax *(_QWORD *)a1 = a1 + 16; *(_QWORD *)(a1 + 8) = 0LL; *(_BYTE *)(a1 + 16) = 0; v4 = strlen(a2); v5 = strlen(*a3); std::string::reserve(a1, v5 + v4); std::string::append(a1, a2); std::string::append(a1, *a3); return a1; }
concat<std::__cxx11::string,char_const(&)[22],char_const*>: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX MOV R14,RDX MOV R15,RSI MOV RBX,RDI LEA R13,[RDI + 0x10] MOV qword ptr [RDI],R13 MOV qword ptr [RDI + 0x8],0x0 MOV byte ptr [RDI + 0x10],0x0 MOV RDI,RSI CALL 0x0011a3e0 MOV R12,RAX MOV RDI,qword ptr [R14] CALL 0x0011a3e0 ADD R12,RAX LAB_001ab6ec: MOV RDI,RBX MOV RSI,R12 CALL 0x0011ada0 MOV RDI,RBX MOV RSI,R15 CALL 0x0011b120 MOV RSI,qword ptr [R14] MOV RDI,RBX CALL 0x0011b120 LAB_001ab70d: MOV RAX,RBX POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* std::__cxx11::string nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string, char const (&) [22], char const*>(char const (&) [22], char const*&&) */ detail * __thiscall nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[22],char_const*> (detail *this,char *param_1,char **param_2) { *(detail **)this = this + 0x10; *(int8 *)(this + 8) = 0; this[0x10] = (detail)0x0; strlen(param_1); strlen(*param_2); /* try { // try from 001ab6ec to 001ab70c has its CatchHandler @ 001ab71a */ std::__cxx11::string::reserve((ulong)this); std::__cxx11::string::append((char *)this); std::__cxx11::string::append((char *)this); return this; }
65,289
count_square
eloqsql/storage/maria/ma_rt_split.c
static double count_square(const double *a, int n_dim) { const double *end= a + n_dim * 2; double square= 1.0; do { square *= a[1] - a[0]; a+= 2; } while (a != end); return square; }
O0
c
count_square: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq -0x8(%rbp), %rax movl -0xc(%rbp), %ecx shll %ecx movslq %ecx, %rcx shlq $0x3, %rcx addq %rcx, %rax movq %rax, -0x18(%rbp) movsd 0xd5696(%rip), %xmm0 # 0x15a060 movsd %xmm0, -0x20(%rbp) movq -0x8(%rbp), %rax movsd 0x8(%rax), %xmm0 movq -0x8(%rbp), %rax subsd (%rax), %xmm0 mulsd -0x20(%rbp), %xmm0 movsd %xmm0, -0x20(%rbp) movq -0x8(%rbp), %rax addq $0x10, %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax cmpq -0x18(%rbp), %rax jne 0x849cf movsd -0x20(%rbp), %xmm0 popq %rbp retq nopw (%rax,%rax)
count_square: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_C], esi mov rax, [rbp+var_8] mov ecx, [rbp+var_C] shl ecx, 1 movsxd rcx, ecx shl rcx, 3 add rax, rcx mov [rbp+var_18], rax movsd xmm0, cs:qword_15A060 movsd [rbp+var_20], xmm0 loc_849CF: mov rax, [rbp+var_8] movsd xmm0, qword ptr [rax+8] mov rax, [rbp+var_8] subsd xmm0, qword ptr [rax] mulsd xmm0, [rbp+var_20] movsd [rbp+var_20], xmm0 mov rax, [rbp+var_8] add rax, 10h mov [rbp+var_8], rax mov rax, [rbp+var_8] cmp rax, [rbp+var_18] jnz short loc_849CF movsd xmm0, [rbp+var_20] pop rbp retn
double count_square(double *a1, int a2) { double v3; // [rsp+0h] [rbp-20h] double *v4; // [rsp+18h] [rbp-8h] v4 = a1; v3 = 1.0; do { v3 = (v4[1] - *v4) * v3; v4 += 2; } while ( v4 != &a1[2 * a2] ); return v3; }
count_square: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RBP + -0xc] SHL ECX,0x1 MOVSXD RCX,ECX SHL RCX,0x3 ADD RAX,RCX MOV qword ptr [RBP + -0x18],RAX MOVSD XMM0,qword ptr [0x0025a060] MOVSD qword ptr [RBP + -0x20],XMM0 LAB_001849cf: MOV RAX,qword ptr [RBP + -0x8] MOVSD XMM0,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x8] SUBSD XMM0,qword ptr [RAX] MULSD XMM0,qword ptr [RBP + -0x20] MOVSD qword ptr [RBP + -0x20],XMM0 MOV RAX,qword ptr [RBP + -0x8] ADD RAX,0x10 MOV qword ptr [RBP + -0x8],RAX MOV RAX,qword ptr [RBP + -0x8] CMP RAX,qword ptr [RBP + -0x18] JNZ 0x001849cf MOVSD XMM0,qword ptr [RBP + -0x20] POP RBP RET
double count_square(double *param_1,int param_2) { double local_28; double *local_10; local_28 = DAT_0025a060; local_10 = param_1; do { local_28 = (local_10[1] - *local_10) * local_28; local_10 = local_10 + 2; } while (local_10 != param_1 + (param_2 << 1)); return local_28; }
65,290
ma_dispose
eloqsql/storage/maria/ma_page.c
int _ma_dispose(register MARIA_HA *info, my_off_t pos, my_bool page_not_read) { my_off_t old_link; uchar buff[MAX_KEYPAGE_HEADER_SIZE+ 8 + 2]; ulonglong page_no; MARIA_SHARE *share= info->s; MARIA_PINNED_PAGE page_link; uint block_size= share->block_size; int result= 0; enum pagecache_page_lock lock_method; enum pagecache_page_pin pin_method; DBUG_ENTER("_ma_dispose"); DBUG_PRINT("enter",("page: %lu", (ulong) (pos / block_size))); DBUG_ASSERT(pos % block_size == 0); (void) _ma_lock_key_del(info, 0); old_link= share->key_del_current; share->key_del_current= pos; page_no= pos / block_size; bzero(buff, share->keypage_header); _ma_store_keynr(share, buff, (uchar) MARIA_DELETE_KEY_NR); _ma_store_page_used(share, buff, share->keypage_header + 8); mi_sizestore(buff + share->keypage_header, old_link); share->state.changed|= STATE_NOT_SORTED_PAGES; if (share->now_transactional) { LSN lsn; uchar log_data[FILEID_STORE_SIZE + PAGE_STORE_SIZE * 2]; LEX_CUSTRING log_array[TRANSLOG_INTERNAL_PARTS + 1]; my_off_t page; /* Store address of deleted page */ page_store(log_data + FILEID_STORE_SIZE, page_no); /* Store link to next unused page (the link that is written to page) */ page= (old_link == HA_OFFSET_ERROR ? IMPOSSIBLE_PAGE_NO : old_link / block_size); page_store(log_data + FILEID_STORE_SIZE + PAGE_STORE_SIZE, page); log_array[TRANSLOG_INTERNAL_PARTS + 0].str= log_data; log_array[TRANSLOG_INTERNAL_PARTS + 0].length= sizeof(log_data); if (translog_write_record(&lsn, LOGREC_REDO_INDEX_FREE_PAGE, info->trn, info, (translog_size_t) sizeof(log_data), TRANSLOG_INTERNAL_PARTS + 1, log_array, log_data, NULL)) result= 1; } if (page_not_read) { lock_method= PAGECACHE_LOCK_WRITE; pin_method= PAGECACHE_PIN; } else { lock_method= PAGECACHE_LOCK_LEFT_WRITELOCKED; pin_method= PAGECACHE_PIN_LEFT_PINNED; } if (pagecache_write_part(share->pagecache, &share->kfile, (pgcache_page_no_t) page_no, PAGECACHE_PRIORITY_LOW, buff, share->page_type, lock_method, pin_method, PAGECACHE_WRITE_DELAY, &page_link.link, LSN_IMPOSSIBLE, 0, share->keypage_header + 8)) result= 1; #ifdef IDENTICAL_PAGES_AFTER_RECOVERY { uchar *page_buff= pagecache_block_link_to_buffer(page_link.link); bzero(page_buff + share->keypage_header + 8, block_size - share->keypage_header - 8 - KEYPAGE_CHECKSUM_SIZE); } #endif if (page_not_read) { /* It was not locked before, we have to unlock it when we unpin pages */ page_link.unlock= PAGECACHE_LOCK_WRITE_UNLOCK; page_link.changed= 1; push_dynamic(&info->pinned_pages, (void*) &page_link); } DBUG_RETURN(result); }
O0
c
ma_dispose: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx subq $0x160, %rsp # imm = 0x160 movb %dl, %al movq %fs:0x28, %rcx movq %rcx, -0x18(%rbp) movq %rdi, -0x58(%rbp) movq %rsi, -0x60(%rbp) movb %al, -0x61(%rbp) movq -0x58(%rbp), %rax movq (%rax), %rax movq %rax, -0x80(%rbp) movq -0x80(%rbp), %rax movl 0x7bc(%rax), %eax movl %eax, -0x9c(%rbp) movl $0x0, -0xa0(%rbp) jmp 0x6f22f jmp 0x6f231 jmp 0x6f233 movq -0x58(%rbp), %rdi xorl %esi, %esi callq 0x72820 movq -0x80(%rbp), %rax movq 0x700(%rax), %rax movq %rax, -0x70(%rbp) movq -0x60(%rbp), %rcx movq -0x80(%rbp), %rax movq %rcx, 0x700(%rax) movq -0x60(%rbp), %rax movl -0x9c(%rbp), %ecx xorl %edx, %edx divq %rcx movq %rax, -0x78(%rbp) leaq -0x40(%rbp), %rdi movq -0x80(%rbp), %rax movl 0x744(%rax), %eax movl %eax, %edx xorl %esi, %esi callq 0x2a2c0 movq -0x80(%rbp), %rax movl 0x744(%rax), %eax subl $0x1, %eax subl $0x1, %eax subl $0x2, %eax movl %eax, %eax movb $-0x1, -0x40(%rbp,%rax) movq -0x80(%rbp), %rax movl 0x744(%rax), %eax addl $0x8, %eax movl %eax, -0xac(%rbp) movl -0xac(%rbp), %eax movb %al, %cl movq -0x80(%rbp), %rax movl 0x744(%rax), %eax movb %cl, -0x41(%rbp,%rax) movl -0xac(%rbp), %eax shrl $0x8, %eax movb %al, %cl movq -0x80(%rbp), %rax movl 0x744(%rax), %eax movb %cl, -0x42(%rbp,%rax) movq -0x70(%rbp), %rax movq %rax, -0xb8(%rbp) movq -0x70(%rbp), %rax shrq $0x20, %rax movq %rax, -0xc0(%rbp) movq -0xc0(%rbp), %rax movq %rax, -0xc8(%rbp) movq -0xc8(%rbp), %rax movb %al, %cl movq -0x80(%rbp), %rax movl 0x744(%rax), %eax movb %cl, -0x3d(%rbp,%rax) movq -0xc8(%rbp), %rax shrq $0x8, %rax movb %al, %cl movq -0x80(%rbp), %rax movl 0x744(%rax), %eax movb %cl, -0x3e(%rbp,%rax) movq -0xc8(%rbp), %rax shrq $0x10, %rax movb %al, %cl movq -0x80(%rbp), %rax movl 0x744(%rax), %eax movb %cl, -0x3f(%rbp,%rax) movq -0xc8(%rbp), %rax shrq $0x18, %rax movb %al, %cl movq -0x80(%rbp), %rax movl 0x744(%rax), %eax movb %cl, -0x40(%rbp,%rax) movq -0xb8(%rbp), %rax movq %rax, -0xd0(%rbp) movq -0xd0(%rbp), %rax movb %al, %cl movq -0x80(%rbp), %rax movl 0x744(%rax), %eax movb %cl, -0x39(%rbp,%rax) movq -0xd0(%rbp), %rax shrq $0x8, %rax movb %al, %cl movq -0x80(%rbp), %rax movl 0x744(%rax), %eax movb %cl, -0x3a(%rbp,%rax) movq -0xd0(%rbp), %rax shrq $0x10, %rax movb %al, %cl movq -0x80(%rbp), %rax movl 0x744(%rax), %eax movb %cl, -0x3b(%rbp,%rax) movq -0xd0(%rbp), %rax shrq $0x18, %rax movb %al, %cl movq -0x80(%rbp), %rax movl 0x744(%rax), %eax movb %cl, -0x3c(%rbp,%rax) movq -0x80(%rbp), %rax movl 0x170(%rax), %ecx orl $0x20, %ecx movl %ecx, 0x170(%rax) movq -0x80(%rbp), %rax cmpb $0x0, 0x7e7(%rax) je 0x6f529 jmp 0x6f40e leaq -0x4c(%rbp), %rax addq $0x2, %rax movq %rax, -0x120(%rbp) movq -0x78(%rbp), %rax movl %eax, %ecx movq -0x120(%rbp), %rax movl %ecx, (%rax) movq -0x78(%rbp), %rax shrq $0x20, %rax movb %al, %cl movq -0x120(%rbp), %rax movb %cl, 0x4(%rax) cmpq $-0x1, -0x70(%rbp) jne 0x6f45a movabsq $0xffffffffff, %rax # imm = 0xFFFFFFFFFF movq %rax, -0x130(%rbp) jmp 0x6f470 movq -0x70(%rbp), %rax movl -0x9c(%rbp), %ecx xorl %edx, %edx divq %rcx movq %rax, -0x130(%rbp) movq -0x130(%rbp), %rax movq %rax, -0x118(%rbp) leaq -0x4c(%rbp), %rax addq $0x2, %rax addq $0x5, %rax movq %rax, -0x128(%rbp) movq -0x118(%rbp), %rax movl %eax, %ecx movq -0x128(%rbp), %rax movl %ecx, (%rax) movq -0x118(%rbp), %rax shrq $0x20, %rax movb %al, %cl movq -0x128(%rbp), %rax movb %cl, 0x4(%rax) leaq -0x4c(%rbp), %rax movq %rax, -0xf0(%rbp) movq $0xc, -0xe8(%rbp) movq -0x58(%rbp), %rax movq 0x8(%rax), %rdx movq -0x58(%rbp), %rcx leaq -0x110(%rbp), %r10 leaq -0x4c(%rbp), %rax leaq -0xd8(%rbp), %rdi movl $0xe, %esi movl $0xc, %r8d movl $0x3, %r9d xorl %r11d, %r11d movq %r10, (%rsp) movq %rax, 0x8(%rsp) movq $0x0, 0x10(%rsp) callq 0x53ff0 cmpb $0x0, %al je 0x6f527 movl $0x1, -0xa0(%rbp) jmp 0x6f529 cmpb $0x0, -0x61(%rbp) je 0x6f545 movl $0x4, -0xa4(%rbp) movl $0x2, -0xa8(%rbp) jmp 0x6f559 movl $0x2, -0xa4(%rbp) movl $0x0, -0xa8(%rbp) movq -0x80(%rbp), %rax movq 0x600(%rax), %rdi movq -0x80(%rbp), %rsi addq $0x750, %rsi # imm = 0x750 movq -0x78(%rbp), %rdx leaq -0x40(%rbp), %r8 movq -0x80(%rbp), %rax movl 0x7d4(%rax), %r9d movl -0xa4(%rbp), %ebx movl -0xa8(%rbp), %r11d leaq -0x98(%rbp), %r10 movq -0x80(%rbp), %rax movl 0x744(%rax), %eax addl $0x8, %eax xorl %ecx, %ecx xorl %r14d, %r14d movl %ebx, (%rsp) movl %r11d, 0x8(%rsp) movl $0x0, 0x10(%rsp) movq %r10, 0x18(%rsp) movq $0x0, 0x20(%rsp) movl $0x0, 0x28(%rsp) movl %eax, 0x30(%rsp) callq 0x2f070 cmpb $0x0, %al je 0x6f5e5 movl $0x1, -0xa0(%rbp) cmpb $0x0, -0x61(%rbp) je 0x6f613 movl $0x6, -0x90(%rbp) movb $0x1, -0x88(%rbp) movq -0x58(%rbp), %rdi addq $0x2e8, %rdi # imm = 0x2E8 leaq -0x98(%rbp), %rsi callq 0xda940 jmp 0x6f615 movl -0xa0(%rbp), %eax movl %eax, -0x134(%rbp) movq %fs:0x28, %rax movq -0x18(%rbp), %rcx cmpq %rcx, %rax jne 0x6f645 movl -0x134(%rbp), %eax addq $0x160, %rsp # imm = 0x160 popq %rbx popq %r14 popq %rbp retq callq 0x2a270 nopw (%rax,%rax)
_ma_dispose: push rbp mov rbp, rsp push r14 push rbx sub rsp, 160h mov al, dl mov rcx, fs:28h mov [rbp+var_18], rcx mov [rbp+var_58], rdi mov [rbp+var_60], rsi mov [rbp+var_61], al mov rax, [rbp+var_58] mov rax, [rax] mov [rbp+var_80], rax mov rax, [rbp+var_80] mov eax, [rax+7BCh] mov [rbp+var_9C], eax mov [rbp+var_A0], 0 jmp short $+2 loc_6F22F: jmp short $+2 loc_6F231: jmp short $+2 loc_6F233: mov rdi, [rbp+var_58] xor esi, esi call _ma_lock_key_del mov rax, [rbp+var_80] mov rax, [rax+700h] mov [rbp+var_70], rax mov rcx, [rbp+var_60] mov rax, [rbp+var_80] mov [rax+700h], rcx mov rax, [rbp+var_60] mov ecx, [rbp+var_9C] xor edx, edx div rcx mov [rbp+var_78], rax lea rdi, [rbp+var_40] mov rax, [rbp+var_80] mov eax, [rax+744h] mov edx, eax xor esi, esi call _memset mov rax, [rbp+var_80] mov eax, [rax+744h] sub eax, 1 sub eax, 1 sub eax, 2 mov eax, eax mov [rbp+rax+var_40], 0FFh mov rax, [rbp+var_80] mov eax, [rax+744h] add eax, 8 mov [rbp+var_AC], eax mov eax, [rbp+var_AC] mov cl, al mov rax, [rbp+var_80] mov eax, [rax+744h] mov [rbp+rax+var_41], cl mov eax, [rbp+var_AC] shr eax, 8 mov cl, al mov rax, [rbp+var_80] mov eax, [rax+744h] mov [rbp+rax+var_42], cl mov rax, [rbp+var_70] mov [rbp+var_B8], rax mov rax, [rbp+var_70] shr rax, 20h mov [rbp+var_C0], rax mov rax, [rbp+var_C0] mov [rbp+var_C8], rax mov rax, [rbp+var_C8] mov cl, al mov rax, [rbp+var_80] mov eax, [rax+744h] mov [rbp+rax+var_3D], cl mov rax, [rbp+var_C8] shr rax, 8 mov cl, al mov rax, [rbp+var_80] mov eax, [rax+744h] mov [rbp+rax+var_3E], cl mov rax, [rbp+var_C8] shr rax, 10h mov cl, al mov rax, [rbp+var_80] mov eax, [rax+744h] mov [rbp+rax+var_3F], cl mov rax, [rbp+var_C8] shr rax, 18h mov cl, al mov rax, [rbp+var_80] mov eax, [rax+744h] mov [rbp+rax+var_40], cl mov rax, [rbp+var_B8] mov [rbp+var_D0], rax mov rax, [rbp+var_D0] mov cl, al mov rax, [rbp+var_80] mov eax, [rax+744h] mov [rbp+rax+var_39], cl mov rax, [rbp+var_D0] shr rax, 8 mov cl, al mov rax, [rbp+var_80] mov eax, [rax+744h] mov [rbp+rax+var_3A], cl mov rax, [rbp+var_D0] shr rax, 10h mov cl, al mov rax, [rbp+var_80] mov eax, [rax+744h] mov [rbp+rax+var_3B], cl mov rax, [rbp+var_D0] shr rax, 18h mov cl, al mov rax, [rbp+var_80] mov eax, [rax+744h] mov [rbp+rax+var_3C], cl mov rax, [rbp+var_80] mov ecx, [rax+170h] or ecx, 20h mov [rax+170h], ecx mov rax, [rbp+var_80] cmp byte ptr [rax+7E7h], 0 jz loc_6F529 jmp short $+2 loc_6F40E: lea rax, [rbp+var_4C] add rax, 2 mov [rbp+var_120], rax mov rax, [rbp+var_78] mov ecx, eax mov rax, [rbp+var_120] mov [rax], ecx mov rax, [rbp+var_78] shr rax, 20h mov cl, al mov rax, [rbp+var_120] mov [rax+4], cl cmp [rbp+var_70], 0FFFFFFFFFFFFFFFFh jnz short loc_6F45A mov rax, 0FFFFFFFFFFh mov [rbp+var_130], rax jmp short loc_6F470 loc_6F45A: mov rax, [rbp+var_70] mov ecx, [rbp+var_9C] xor edx, edx div rcx mov [rbp+var_130], rax loc_6F470: mov rax, [rbp+var_130] mov [rbp+var_118], rax lea rax, [rbp+var_4C] add rax, 2 add rax, 5 mov [rbp+var_128], rax mov rax, [rbp+var_118] mov ecx, eax mov rax, [rbp+var_128] mov [rax], ecx mov rax, [rbp+var_118] shr rax, 20h mov cl, al mov rax, [rbp+var_128] mov [rax+4], cl lea rax, [rbp+var_4C] mov [rbp+var_F0], rax mov [rbp+var_E8], 0Ch mov rax, [rbp+var_58] mov rdx, [rax+8] mov rcx, [rbp+var_58] lea r10, [rbp+var_110] lea rax, [rbp+var_4C] lea rdi, [rbp+var_D8] mov esi, 0Eh mov r8d, 0Ch mov r9d, 3 xor r11d, r11d mov [rsp+170h+var_170], r10 mov [rsp+170h+var_168], rax mov [rsp+170h+var_160], 0 call translog_write_record cmp al, 0 jz short loc_6F527 mov [rbp+var_A0], 1 loc_6F527: jmp short $+2 loc_6F529: cmp [rbp+var_61], 0 jz short loc_6F545 mov [rbp+var_A4], 4 mov [rbp+var_A8], 2 jmp short loc_6F559 loc_6F545: mov [rbp+var_A4], 2 mov [rbp+var_A8], 0 loc_6F559: mov rax, [rbp+var_80] mov rdi, [rax+600h] mov rsi, [rbp+var_80] add rsi, 750h mov rdx, [rbp+var_78] lea r8, [rbp+var_40] mov rax, [rbp+var_80] mov r9d, [rax+7D4h] mov ebx, [rbp+var_A4] mov r11d, [rbp+var_A8] lea r10, [rbp+var_98] mov rax, [rbp+var_80] mov eax, [rax+744h] add eax, 8 xor ecx, ecx xor r14d, r14d mov dword ptr [rsp+170h+var_170], ebx mov dword ptr [rsp+170h+var_168], r11d mov dword ptr [rsp+170h+var_160], 0 mov [rsp+170h+var_158], r10 mov [rsp+170h+var_150], 0 mov [rsp+170h+var_148], 0 mov [rsp+170h+var_140], eax call pagecache_write_part cmp al, 0 jz short loc_6F5E5 mov [rbp+var_A0], 1 loc_6F5E5: cmp [rbp+var_61], 0 jz short loc_6F613 mov [rbp+var_90], 6 mov [rbp+var_88], 1 mov rdi, [rbp+var_58] add rdi, 2E8h lea rsi, [rbp+var_98] call insert_dynamic loc_6F613: jmp short $+2 loc_6F615: mov eax, [rbp+var_A0] mov [rbp+var_134], eax mov rax, fs:28h mov rcx, [rbp+var_18] cmp rax, rcx jnz short loc_6F645 mov eax, [rbp+var_134] add rsp, 160h pop rbx pop r14 pop rbp retn loc_6F645: call ___stack_chk_fail
long long ma_dispose(long long *a1, unsigned long long a2, char a3) { unsigned long long v4; // [rsp+40h] [rbp-130h] _QWORD v5[7]; // [rsp+60h] [rbp-110h] BYREF _BYTE v6[8]; // [rsp+98h] [rbp-D8h] BYREF unsigned long long v7; // [rsp+A0h] [rbp-D0h] unsigned long long v8; // [rsp+A8h] [rbp-C8h] unsigned long long v9; // [rsp+B0h] [rbp-C0h] unsigned long long v10; // [rsp+B8h] [rbp-B8h] int v11; // [rsp+C4h] [rbp-ACh] unsigned int v12; // [rsp+C8h] [rbp-A8h] unsigned int v13; // [rsp+CCh] [rbp-A4h] unsigned int v14; // [rsp+D0h] [rbp-A0h] unsigned int v15; // [rsp+D4h] [rbp-9Ch] char v16[8]; // [rsp+D8h] [rbp-98h] BYREF int v17; // [rsp+E0h] [rbp-90h] char v18; // [rsp+E8h] [rbp-88h] long long v19; // [rsp+F0h] [rbp-80h] unsigned long long v20; // [rsp+F8h] [rbp-78h] unsigned long long v21; // [rsp+100h] [rbp-70h] char v22; // [rsp+10Fh] [rbp-61h] unsigned long long v23; // [rsp+110h] [rbp-60h] long long *v24; // [rsp+118h] [rbp-58h] __int16 v25; // [rsp+124h] [rbp-4Ch] BYREF int v26; // [rsp+126h] [rbp-4Ah] char v27; // [rsp+12Ah] [rbp-46h] int v28; // [rsp+12Bh] [rbp-45h] char v29; // [rsp+12Fh] [rbp-41h] _BYTE v30[40]; // [rsp+130h] [rbp-40h] BYREF unsigned long long v31; // [rsp+158h] [rbp-18h] v31 = __readfsqword(0x28u); v24 = a1; v23 = a2; v22 = a3; v19 = *a1; v15 = *(_DWORD *)(v19 + 1980); v14 = 0; ma_lock_key_del(a1, 0LL); v21 = *(_QWORD *)(v19 + 1792); *(_QWORD *)(v19 + 1792) = a2; v20 = v23 / v15; memset(v30, 0LL, *(unsigned int *)(v19 + 1860)); v30[*(_DWORD *)(v19 + 1860) - 4] = -1; v11 = *(_DWORD *)(v19 + 1860) + 8; v30[*(unsigned int *)(v19 + 1860) - 1] = v11; *((_BYTE *)&v28 + *(unsigned int *)(v19 + 1860) + 3) = BYTE1(v11); v10 = v21; v9 = HIDWORD(v21); v8 = HIDWORD(v21); v30[*(unsigned int *)(v19 + 1860) + 3] = BYTE4(v21); v30[*(unsigned int *)(v19 + 1860) + 2] = BYTE1(v8); v30[*(unsigned int *)(v19 + 1860) + 1] = BYTE2(v8); v30[*(unsigned int *)(v19 + 1860)] = BYTE3(v8); v7 = v10; v30[*(unsigned int *)(v19 + 1860) + 7] = v10; v30[*(unsigned int *)(v19 + 1860) + 6] = BYTE1(v7); v30[*(unsigned int *)(v19 + 1860) + 5] = BYTE2(v7); v30[*(unsigned int *)(v19 + 1860) + 4] = BYTE3(v7); *(_DWORD *)(v19 + 368) |= 0x20u; if ( *(_BYTE *)(v19 + 2023) ) { v26 = v20; v27 = BYTE4(v20); v4 = v21 == -1LL ? 0xFFFFFFFFFFLL : v21 / v15; v28 = v4; v29 = BYTE4(v4); v5[4] = &v25; v5[5] = 12LL; if ( translog_write_record((long long)v6, 0xEu, v24[1], v24, 12, 3u, v5, &v25, 0LL) ) v14 = 1; } if ( v22 ) { v13 = 4; v12 = 2; } else { v13 = 2; v12 = 0; } if ( pagecache_write_part( *(_QWORD **)(v19 + 1536), v19 + 1872, v20, 0, (long long)v30, *(_DWORD *)(v19 + 2004), v13, v12, 0, v16, 0LL, 0, *(_DWORD *)(v19 + 1860) + 8) ) { v14 = 1; } if ( v22 ) { v17 = 6; v18 = 1; insert_dynamic(v24 + 93, v16); } return v14; }
_ma_dispose: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX SUB RSP,0x160 MOV AL,DL MOV RCX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x18],RCX MOV qword ptr [RBP + -0x58],RDI MOV qword ptr [RBP + -0x60],RSI MOV byte ptr [RBP + -0x61],AL MOV RAX,qword ptr [RBP + -0x58] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x80],RAX MOV RAX,qword ptr [RBP + -0x80] MOV EAX,dword ptr [RAX + 0x7bc] MOV dword ptr [RBP + -0x9c],EAX MOV dword ptr [RBP + -0xa0],0x0 JMP 0x0016f22f LAB_0016f22f: JMP 0x0016f231 LAB_0016f231: JMP 0x0016f233 LAB_0016f233: MOV RDI,qword ptr [RBP + -0x58] XOR ESI,ESI CALL 0x00172820 MOV RAX,qword ptr [RBP + -0x80] MOV RAX,qword ptr [RAX + 0x700] MOV qword ptr [RBP + -0x70],RAX MOV RCX,qword ptr [RBP + -0x60] MOV RAX,qword ptr [RBP + -0x80] MOV qword ptr [RAX + 0x700],RCX MOV RAX,qword ptr [RBP + -0x60] MOV ECX,dword ptr [RBP + -0x9c] XOR EDX,EDX DIV RCX MOV qword ptr [RBP + -0x78],RAX LEA RDI,[RBP + -0x40] MOV RAX,qword ptr [RBP + -0x80] MOV EAX,dword ptr [RAX + 0x744] MOV EDX,EAX XOR ESI,ESI CALL 0x0012a2c0 MOV RAX,qword ptr [RBP + -0x80] MOV EAX,dword ptr [RAX + 0x744] SUB EAX,0x1 SUB EAX,0x1 SUB EAX,0x2 MOV EAX,EAX MOV byte ptr [RBP + RAX*0x1 + -0x40],0xff MOV RAX,qword ptr [RBP + -0x80] MOV EAX,dword ptr [RAX + 0x744] ADD EAX,0x8 MOV dword ptr [RBP + -0xac],EAX MOV EAX,dword ptr [RBP + -0xac] MOV CL,AL MOV RAX,qword ptr [RBP + -0x80] MOV EAX,dword ptr [RAX + 0x744] MOV byte ptr [RBP + RAX*0x1 + -0x41],CL MOV EAX,dword ptr [RBP + -0xac] SHR EAX,0x8 MOV CL,AL MOV RAX,qword ptr [RBP + -0x80] MOV EAX,dword ptr [RAX + 0x744] MOV byte ptr [RBP + RAX*0x1 + -0x42],CL MOV RAX,qword ptr [RBP + -0x70] MOV qword ptr [RBP + -0xb8],RAX MOV RAX,qword ptr [RBP + -0x70] SHR RAX,0x20 MOV qword ptr [RBP + -0xc0],RAX MOV RAX,qword ptr [RBP + -0xc0] MOV qword ptr [RBP + -0xc8],RAX MOV RAX,qword ptr [RBP + -0xc8] MOV CL,AL MOV RAX,qword ptr [RBP + -0x80] MOV EAX,dword ptr [RAX + 0x744] MOV byte ptr [RBP + RAX*0x1 + -0x3d],CL MOV RAX,qword ptr [RBP + -0xc8] SHR RAX,0x8 MOV CL,AL MOV RAX,qword ptr [RBP + -0x80] MOV EAX,dword ptr [RAX + 0x744] MOV byte ptr [RBP + RAX*0x1 + -0x3e],CL MOV RAX,qword ptr [RBP + -0xc8] SHR RAX,0x10 MOV CL,AL MOV RAX,qword ptr [RBP + -0x80] MOV EAX,dword ptr [RAX + 0x744] MOV byte ptr [RBP + RAX*0x1 + -0x3f],CL MOV RAX,qword ptr [RBP + -0xc8] SHR RAX,0x18 MOV CL,AL MOV RAX,qword ptr [RBP + -0x80] MOV EAX,dword ptr [RAX + 0x744] MOV byte ptr [RBP + RAX*0x1 + -0x40],CL MOV RAX,qword ptr [RBP + -0xb8] MOV qword ptr [RBP + -0xd0],RAX MOV RAX,qword ptr [RBP + -0xd0] MOV CL,AL MOV RAX,qword ptr [RBP + -0x80] MOV EAX,dword ptr [RAX + 0x744] MOV byte ptr [RBP + RAX*0x1 + -0x39],CL MOV RAX,qword ptr [RBP + -0xd0] SHR RAX,0x8 MOV CL,AL MOV RAX,qword ptr [RBP + -0x80] MOV EAX,dword ptr [RAX + 0x744] MOV byte ptr [RBP + RAX*0x1 + -0x3a],CL MOV RAX,qword ptr [RBP + -0xd0] SHR RAX,0x10 MOV CL,AL MOV RAX,qword ptr [RBP + -0x80] MOV EAX,dword ptr [RAX + 0x744] MOV byte ptr [RBP + RAX*0x1 + -0x3b],CL MOV RAX,qword ptr [RBP + -0xd0] SHR RAX,0x18 MOV CL,AL MOV RAX,qword ptr [RBP + -0x80] MOV EAX,dword ptr [RAX + 0x744] MOV byte ptr [RBP + RAX*0x1 + -0x3c],CL MOV RAX,qword ptr [RBP + -0x80] MOV ECX,dword ptr [RAX + 0x170] OR ECX,0x20 MOV dword ptr [RAX + 0x170],ECX MOV RAX,qword ptr [RBP + -0x80] CMP byte ptr [RAX + 0x7e7],0x0 JZ 0x0016f529 JMP 0x0016f40e LAB_0016f40e: LEA RAX,[RBP + -0x4c] ADD RAX,0x2 MOV qword ptr [RBP + -0x120],RAX MOV RAX,qword ptr [RBP + -0x78] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x120] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x78] SHR RAX,0x20 MOV CL,AL MOV RAX,qword ptr [RBP + -0x120] MOV byte ptr [RAX + 0x4],CL CMP qword ptr [RBP + -0x70],-0x1 JNZ 0x0016f45a MOV RAX,0xffffffffff MOV qword ptr [RBP + -0x130],RAX JMP 0x0016f470 LAB_0016f45a: MOV RAX,qword ptr [RBP + -0x70] MOV ECX,dword ptr [RBP + -0x9c] XOR EDX,EDX DIV RCX MOV qword ptr [RBP + -0x130],RAX LAB_0016f470: MOV RAX,qword ptr [RBP + -0x130] MOV qword ptr [RBP + -0x118],RAX LEA RAX,[RBP + -0x4c] ADD RAX,0x2 ADD RAX,0x5 MOV qword ptr [RBP + -0x128],RAX MOV RAX,qword ptr [RBP + -0x118] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x128] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x118] SHR RAX,0x20 MOV CL,AL MOV RAX,qword ptr [RBP + -0x128] MOV byte ptr [RAX + 0x4],CL LEA RAX,[RBP + -0x4c] MOV qword ptr [RBP + -0xf0],RAX MOV qword ptr [RBP + -0xe8],0xc MOV RAX,qword ptr [RBP + -0x58] MOV RDX,qword ptr [RAX + 0x8] MOV RCX,qword ptr [RBP + -0x58] LEA R10,[RBP + -0x110] LEA RAX,[RBP + -0x4c] LEA RDI,[RBP + -0xd8] MOV ESI,0xe MOV R8D,0xc MOV R9D,0x3 XOR R11D,R11D MOV qword ptr [RSP],R10 MOV qword ptr [RSP + 0x8],RAX MOV qword ptr [RSP + 0x10],0x0 CALL 0x00153ff0 CMP AL,0x0 JZ 0x0016f527 MOV dword ptr [RBP + -0xa0],0x1 LAB_0016f527: JMP 0x0016f529 LAB_0016f529: CMP byte ptr [RBP + -0x61],0x0 JZ 0x0016f545 MOV dword ptr [RBP + -0xa4],0x4 MOV dword ptr [RBP + -0xa8],0x2 JMP 0x0016f559 LAB_0016f545: MOV dword ptr [RBP + -0xa4],0x2 MOV dword ptr [RBP + -0xa8],0x0 LAB_0016f559: MOV RAX,qword ptr [RBP + -0x80] MOV RDI,qword ptr [RAX + 0x600] MOV RSI,qword ptr [RBP + -0x80] ADD RSI,0x750 MOV RDX,qword ptr [RBP + -0x78] LEA R8,[RBP + -0x40] MOV RAX,qword ptr [RBP + -0x80] MOV R9D,dword ptr [RAX + 0x7d4] MOV EBX,dword ptr [RBP + -0xa4] MOV R11D,dword ptr [RBP + -0xa8] LEA R10,[RBP + -0x98] MOV RAX,qword ptr [RBP + -0x80] MOV EAX,dword ptr [RAX + 0x744] ADD EAX,0x8 XOR ECX,ECX XOR R14D,R14D MOV dword ptr [RSP],EBX MOV dword ptr [RSP + 0x8],R11D MOV dword ptr [RSP + 0x10],0x0 MOV qword ptr [RSP + 0x18],R10 MOV qword ptr [RSP + 0x20],0x0 MOV dword ptr [RSP + 0x28],0x0 MOV dword ptr [RSP + 0x30],EAX CALL 0x0012f070 CMP AL,0x0 JZ 0x0016f5e5 MOV dword ptr [RBP + -0xa0],0x1 LAB_0016f5e5: CMP byte ptr [RBP + -0x61],0x0 JZ 0x0016f613 MOV dword ptr [RBP + -0x90],0x6 MOV byte ptr [RBP + -0x88],0x1 MOV RDI,qword ptr [RBP + -0x58] ADD RDI,0x2e8 LEA RSI,[RBP + -0x98] CALL 0x001da940 LAB_0016f613: JMP 0x0016f615 LAB_0016f615: MOV EAX,dword ptr [RBP + -0xa0] MOV dword ptr [RBP + -0x134],EAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x18] CMP RAX,RCX JNZ 0x0016f645 MOV EAX,dword ptr [RBP + -0x134] ADD RSP,0x160 POP RBX POP R14 POP RBP RET LAB_0016f645: CALL 0x0012a270
int4 _ma_dispose(long *param_1,ulong param_2,char param_3) { char cVar1; long in_FS_OFFSET; ulong in_stack_fffffffffffffe98; ulong local_138; int1 local_118 [32]; int1 *local_f8; int8 local_f0; int1 local_e0 [8]; ulong local_d8; ulong local_d0; ulong local_c8; ulong local_c0; int local_b4; int4 local_b0; int4 local_ac; int4 local_a8; uint local_a4; int1 local_a0 [8]; int4 local_98; int1 local_90; long local_88; ulong local_80; ulong local_78; char local_69; ulong local_68; long *local_60; int1 local_54 [2]; int4 local_52; int1 local_4e; int4 local_4d; int1 local_49 [41]; long local_20; local_20 = *(long *)(in_FS_OFFSET + 0x28); local_88 = *param_1; local_a4 = *(uint *)(local_88 + 0x7bc); local_a8 = 0; local_69 = param_3; local_68 = param_2; local_60 = param_1; _ma_lock_key_del(param_1); local_78 = *(ulong *)(local_88 + 0x700); *(ulong *)(local_88 + 0x700) = local_68; local_80 = local_68 / local_a4; memset(local_49 + 1,0,(ulong)*(uint *)(local_88 + 0x744)); local_49[(ulong)(*(int *)(local_88 + 0x744) - 4) + 1] = 0xff; local_b4 = *(int *)(local_88 + 0x744) + 8; local_49[*(uint *)(local_88 + 0x744)] = (char)local_b4; local_49[(ulong)*(uint *)(local_88 + 0x744) - 1] = (char)((uint)local_b4 >> 8); local_c0 = local_78; local_d0 = local_78 >> 0x20; local_49[(ulong)*(uint *)(local_88 + 0x744) + 4] = (char)(local_78 >> 0x20); local_49[(ulong)*(uint *)(local_88 + 0x744) + 3] = (char)(local_78 >> 0x28); local_49[(ulong)*(uint *)(local_88 + 0x744) + 2] = (char)(local_78 >> 0x30); local_49[(ulong)*(uint *)(local_88 + 0x744) + 1] = (char)(local_78 >> 0x38); local_d8 = local_78; local_49[(ulong)*(uint *)(local_88 + 0x744) + 8] = (char)local_78; local_49[(ulong)*(uint *)(local_88 + 0x744) + 7] = (char)(local_78 >> 8); local_49[(ulong)*(uint *)(local_88 + 0x744) + 6] = (char)(local_78 >> 0x10); local_49[(ulong)*(uint *)(local_88 + 0x744) + 5] = (char)(local_78 >> 0x18); *(uint *)(local_88 + 0x170) = *(uint *)(local_88 + 0x170) | 0x20; local_c8 = local_d0; if (*(char *)(local_88 + 0x7e7) != '\0') { local_52 = (int4)local_80; local_4e = (int1)(local_80 >> 0x20); if (local_78 == 0xffffffffffffffff) { local_138 = 0xffffffffff; } else { local_138 = local_78 / local_a4; } local_4d = (int4)local_138; local_49[0] = (int1)(local_138 >> 0x20); local_f8 = local_54; local_f0 = 0xc; in_stack_fffffffffffffe98 = 0; cVar1 = translog_write_record(local_e0,0xe,local_60[1],local_60,0xc,3,local_118,local_54,0); if (cVar1 != '\0') { local_a8 = 1; } } if (local_69 == '\0') { local_ac = 2; local_b0 = 0; } else { local_ac = 4; local_b0 = 2; } cVar1 = pagecache_write_part (*(int8 *)(local_88 + 0x600),local_88 + 0x750,local_80,0,local_49 + 1, *(int4 *)(local_88 + 0x7d4),local_ac,local_b0, in_stack_fffffffffffffe98 & 0xffffffff00000000,local_a0,0,0, *(int *)(local_88 + 0x744) + 8); if (cVar1 != '\0') { local_a8 = 1; } if (local_69 != '\0') { local_98 = 6; local_90 = 1; insert_dynamic(local_60 + 0x5d,local_a0); } if (*(long *)(in_FS_OFFSET + 0x28) != local_20) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return local_a8; }
65,291
pagecache_delete
eloqsql/storage/maria/ma_pagecache.c
my_bool pagecache_delete(PAGECACHE *pagecache, PAGECACHE_FILE *file, pgcache_page_no_t pageno, enum pagecache_page_lock lock, my_bool flush) { my_bool error= 0; enum pagecache_page_pin pin= lock_to_pin_one_phase[lock]; DBUG_ENTER("pagecache_delete"); DBUG_PRINT("enter", ("fd: %u page: %lu %s %s", (uint) file->file, (ulong) pageno, page_cache_page_lock_str[lock], page_cache_page_pin_str[pin])); DBUG_ASSERT(lock == PAGECACHE_LOCK_WRITE || lock == PAGECACHE_LOCK_LEFT_WRITELOCKED); DBUG_ASSERT(pin == PAGECACHE_PIN || pin == PAGECACHE_PIN_LEFT_PINNED); restart: DBUG_ASSERT(pageno < ((1ULL) << 40)); if (pagecache->can_be_used) { /* Key cache is used */ reg1 PAGECACHE_BLOCK_LINK *block; PAGECACHE_HASH_LINK **unused_start, *page_link; pagecache_pthread_mutex_lock(&pagecache->cache_lock); if (!pagecache->can_be_used) goto end; inc_counter_for_resize_op(pagecache); page_link= get_present_hash_link(pagecache, file, pageno, &unused_start); if (!page_link) { DBUG_PRINT("info", ("There is no such page in the cache")); dec_counter_for_resize_op(pagecache); pagecache_pthread_mutex_unlock(&pagecache->cache_lock); DBUG_RETURN(0); } block= page_link->block; if (block->status & (PCBLOCK_REASSIGNED | PCBLOCK_IN_SWITCH)) { DBUG_PRINT("info", ("Block %p already is %s", block, ((block->status & PCBLOCK_REASSIGNED) ? "reassigned" : "in switch"))); PCBLOCK_INFO(block); page_link->requests--; dec_counter_for_resize_op(pagecache); goto end; } /* See NOTE for pagecache_unlock about registering requests. */ if (pin == PAGECACHE_PIN) reg_requests(pagecache, block, 1); if (make_lock_and_pin(pagecache, block, lock, pin, FALSE)) { /* We failed to writelock the block, cache is unlocked, and last write lock is released, we will try to get the block again. */ if (pin == PAGECACHE_PIN) unreg_request(pagecache, block, 1); dec_counter_for_resize_op(pagecache); pagecache_pthread_mutex_unlock(&pagecache->cache_lock); dec_counter_for_resize_op(pagecache); DBUG_PRINT("info", ("restarting...")); goto restart; } /* we can't delete with opened direct link for write */ DBUG_ASSERT((block->status & PCBLOCK_DIRECT_W) == 0); error= pagecache_delete_internal(pagecache, block, page_link, flush); end: pagecache_pthread_mutex_unlock(&pagecache->cache_lock); } DBUG_RETURN(error); }
O0
c
pagecache_delete: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movb %r8b, %al movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movb %al, -0x25(%rbp) movb $0x0, -0x26(%rbp) movl -0x24(%rbp), %eax movl %eax, %ecx leaq 0x288b43(%rip), %rax # 0x2c5370 movl (%rax,%rcx,4), %eax movl %eax, -0x2c(%rbp) jmp 0x3c835 jmp 0x3c837 jmp 0x3c839 jmp 0x3c83b jmp 0x3c83d jmp 0x3c83f jmp 0x3c841 jmp 0x3c843 movq -0x10(%rbp), %rax cmpb $0x0, 0x1aa(%rax) je 0x3c9af movq -0x10(%rbp), %rdi addq $0xc8, %rdi leaq 0x11b623(%rip), %rsi # 0x157e89 movl $0x107a, %edx # imm = 0x107A callq 0x39fd0 movq -0x10(%rbp), %rax cmpb $0x0, 0x1aa(%rax) jne 0x3c882 jmp 0x3c99f movq -0x10(%rbp), %rdi callq 0x3a380 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rdx leaq -0x40(%rbp), %rcx callq 0x3c9c0 movq %rax, -0x48(%rbp) cmpq $0x0, -0x48(%rbp) jne 0x3c8d1 jmp 0x3c8ad jmp 0x3c8af movq -0x10(%rbp), %rdi callq 0x3b0b0 movq -0x10(%rbp), %rdi addq $0xc8, %rdi callq 0x3a040 movb $0x0, -0x1(%rbp) jmp 0x3c9b7 movq -0x48(%rbp), %rax movq 0x10(%rax), %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movzwl 0x74(%rax), %eax andl $0xc, %eax cmpl $0x0, %eax je 0x3c910 jmp 0x3c8ef jmp 0x3c8f1 jmp 0x3c8f3 jmp 0x3c8f5 movq -0x48(%rbp), %rax movl 0x68(%rax), %ecx addl $-0x1, %ecx movl %ecx, 0x68(%rax) movq -0x10(%rbp), %rdi callq 0x3b0b0 jmp 0x3c99f cmpl $0x2, -0x2c(%rbp) jne 0x3c928 movq -0x10(%rbp), %rdi movq -0x38(%rbp), %rsi movl $0x1, %edx callq 0x3caa0 movq -0x10(%rbp), %rdi movq -0x38(%rbp), %rsi movl -0x24(%rbp), %edx movl -0x2c(%rbp), %ecx xorl %r8d, %r8d callq 0x3ad90 cmpb $0x0, %al je 0x3c983 cmpl $0x2, -0x2c(%rbp) jne 0x3c95a movq -0x10(%rbp), %rdi movq -0x38(%rbp), %rsi movl $0x1, %edx callq 0x3af30 movq -0x10(%rbp), %rdi callq 0x3b0b0 movq -0x10(%rbp), %rdi addq $0xc8, %rdi callq 0x3a040 movq -0x10(%rbp), %rdi callq 0x3b0b0 jmp 0x3c97e jmp 0x3c83f jmp 0x3c985 jmp 0x3c987 movq -0x10(%rbp), %rdi movq -0x38(%rbp), %rsi movq -0x48(%rbp), %rdx movsbl -0x25(%rbp), %ecx callq 0x3c540 movb %al, -0x26(%rbp) movq -0x10(%rbp), %rdi addq $0xc8, %rdi callq 0x3a040 jmp 0x3c9b1 movb -0x26(%rbp), %al movb %al, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x50, %rsp popq %rbp retq
pagecache_delete: push rbp mov rbp, rsp sub rsp, 50h mov al, r8b mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_24], ecx mov [rbp+var_25], al mov [rbp+var_26], 0 mov eax, [rbp+var_24] mov ecx, eax lea rax, lock_to_pin_one_phase mov eax, [rax+rcx*4] mov [rbp+var_2C], eax jmp short $+2 loc_3C835: jmp short $+2 loc_3C837: jmp short $+2 loc_3C839: jmp short $+2 loc_3C83B: jmp short $+2 loc_3C83D: jmp short $+2 loc_3C83F: jmp short $+2 loc_3C841: jmp short $+2 loc_3C843: mov rax, [rbp+var_10] cmp byte ptr [rax+1AAh], 0 jz loc_3C9AF mov rdi, [rbp+var_10] add rdi, 0C8h lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 107Ah call inline_mysql_mutex_lock_0 mov rax, [rbp+var_10] cmp byte ptr [rax+1AAh], 0 jnz short loc_3C882 jmp loc_3C99F loc_3C882: mov rdi, [rbp+var_10] call inc_counter_for_resize_op mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] mov rdx, [rbp+var_20] lea rcx, [rbp+var_40] call get_present_hash_link mov [rbp+var_48], rax cmp [rbp+var_48], 0 jnz short loc_3C8D1 jmp short $+2 loc_3C8AD: jmp short $+2 loc_3C8AF: mov rdi, [rbp+var_10] call dec_counter_for_resize_op mov rdi, [rbp+var_10] add rdi, 0C8h call inline_mysql_mutex_unlock_0 mov [rbp+var_1], 0 jmp loc_3C9B7 loc_3C8D1: mov rax, [rbp+var_48] mov rax, [rax+10h] mov [rbp+var_38], rax mov rax, [rbp+var_38] movzx eax, word ptr [rax+74h] and eax, 0Ch cmp eax, 0 jz short loc_3C910 jmp short $+2 loc_3C8EF: jmp short $+2 loc_3C8F1: jmp short $+2 loc_3C8F3: jmp short $+2 loc_3C8F5: mov rax, [rbp+var_48] mov ecx, [rax+68h] add ecx, 0FFFFFFFFh mov [rax+68h], ecx mov rdi, [rbp+var_10] call dec_counter_for_resize_op jmp loc_3C99F loc_3C910: cmp [rbp+var_2C], 2 jnz short loc_3C928 mov rdi, [rbp+var_10] mov rsi, [rbp+var_38] mov edx, 1 call reg_requests loc_3C928: mov rdi, [rbp+var_10] mov rsi, [rbp+var_38] mov edx, [rbp+var_24] mov ecx, [rbp+var_2C] xor r8d, r8d call make_lock_and_pin cmp al, 0 jz short loc_3C983 cmp [rbp+var_2C], 2 jnz short loc_3C95A mov rdi, [rbp+var_10] mov rsi, [rbp+var_38] mov edx, 1 call unreg_request loc_3C95A: mov rdi, [rbp+var_10] call dec_counter_for_resize_op mov rdi, [rbp+var_10] add rdi, 0C8h call inline_mysql_mutex_unlock_0 mov rdi, [rbp+var_10] call dec_counter_for_resize_op jmp short $+2 loc_3C97E: jmp loc_3C83F loc_3C983: jmp short $+2 loc_3C985: jmp short $+2 loc_3C987: mov rdi, [rbp+var_10] mov rsi, [rbp+var_38] mov rdx, [rbp+var_48] movsx ecx, [rbp+var_25] call pagecache_delete_internal mov [rbp+var_26], al loc_3C99F: mov rdi, [rbp+var_10] add rdi, 0C8h call inline_mysql_mutex_unlock_0 loc_3C9AF: jmp short $+2 loc_3C9B1: mov al, [rbp+var_26] mov [rbp+var_1], al loc_3C9B7: mov al, [rbp+var_1] add rsp, 50h pop rbp retn
char pagecache_delete(_QWORD *a1, long long a2, long long a3, unsigned int a4, bool a5) { long long present_hash_link; // [rsp+8h] [rbp-48h] _BYTE v7[8]; // [rsp+10h] [rbp-40h] BYREF long long v8; // [rsp+18h] [rbp-38h] int v9; // [rsp+24h] [rbp-2Ch] char v10; // [rsp+2Ah] [rbp-26h] bool v11; // [rsp+2Bh] [rbp-25h] unsigned int v12; // [rsp+2Ch] [rbp-24h] long long v13; // [rsp+30h] [rbp-20h] long long v14; // [rsp+38h] [rbp-18h] _QWORD *v15; // [rsp+40h] [rbp-10h] v15 = a1; v14 = a2; v13 = a3; v12 = a4; v11 = a5; v10 = 0; v9 = lock_to_pin_one_phase[a4]; while ( *((_BYTE *)v15 + 426) ) { inline_mysql_mutex_lock_0( (long long)(v15 + 25), (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0x107Au); if ( !*((_BYTE *)v15 + 426) ) goto LABEL_15; inc_counter_for_resize_op((long long)v15); present_hash_link = get_present_hash_link(v15, v14, v13, v7); if ( !present_hash_link ) { dec_counter_for_resize_op((long long)v15); inline_mysql_mutex_unlock_0((long long)(v15 + 25)); return 0; } v8 = *(_QWORD *)(present_hash_link + 16); if ( (*(_WORD *)(v8 + 116) & 0xC) != 0 ) { --*(_DWORD *)(present_hash_link + 104); dec_counter_for_resize_op((long long)v15); LABEL_15: inline_mysql_mutex_unlock_0((long long)(v15 + 25)); return v10; } if ( v9 == 2 ) reg_requests(v15, v8, 1LL); if ( !make_lock_and_pin((long long)v15, v8, v12, v9, 0) ) { v10 = pagecache_delete_internal(v15, v8, present_hash_link, v11); goto LABEL_15; } if ( v9 == 2 ) unreg_request(v15, v8, 1); dec_counter_for_resize_op((long long)v15); inline_mysql_mutex_unlock_0((long long)(v15 + 25)); dec_counter_for_resize_op((long long)v15); } return v10; }
pagecache_delete: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV AL,R8B 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 byte ptr [RBP + -0x25],AL MOV byte ptr [RBP + -0x26],0x0 MOV EAX,dword ptr [RBP + -0x24] MOV ECX,EAX LEA RAX,[0x3c5370] MOV EAX,dword ptr [RAX + RCX*0x4] MOV dword ptr [RBP + -0x2c],EAX JMP 0x0013c835 LAB_0013c835: JMP 0x0013c837 LAB_0013c837: JMP 0x0013c839 LAB_0013c839: JMP 0x0013c83b LAB_0013c83b: JMP 0x0013c83d LAB_0013c83d: JMP 0x0013c83f LAB_0013c83f: JMP 0x0013c841 LAB_0013c841: JMP 0x0013c843 LAB_0013c843: MOV RAX,qword ptr [RBP + -0x10] CMP byte ptr [RAX + 0x1aa],0x0 JZ 0x0013c9af MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0xc8 LEA RSI,[0x257e89] MOV EDX,0x107a CALL 0x00139fd0 MOV RAX,qword ptr [RBP + -0x10] CMP byte ptr [RAX + 0x1aa],0x0 JNZ 0x0013c882 JMP 0x0013c99f LAB_0013c882: MOV RDI,qword ptr [RBP + -0x10] CALL 0x0013a380 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x20] LEA RCX,[RBP + -0x40] CALL 0x0013c9c0 MOV qword ptr [RBP + -0x48],RAX CMP qword ptr [RBP + -0x48],0x0 JNZ 0x0013c8d1 JMP 0x0013c8ad LAB_0013c8ad: JMP 0x0013c8af LAB_0013c8af: MOV RDI,qword ptr [RBP + -0x10] CALL 0x0013b0b0 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0xc8 CALL 0x0013a040 MOV byte ptr [RBP + -0x1],0x0 JMP 0x0013c9b7 LAB_0013c8d1: MOV RAX,qword ptr [RBP + -0x48] MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] MOVZX EAX,word ptr [RAX + 0x74] AND EAX,0xc CMP EAX,0x0 JZ 0x0013c910 JMP 0x0013c8ef LAB_0013c8ef: JMP 0x0013c8f1 LAB_0013c8f1: JMP 0x0013c8f3 LAB_0013c8f3: JMP 0x0013c8f5 LAB_0013c8f5: MOV RAX,qword ptr [RBP + -0x48] MOV ECX,dword ptr [RAX + 0x68] ADD ECX,-0x1 MOV dword ptr [RAX + 0x68],ECX MOV RDI,qword ptr [RBP + -0x10] CALL 0x0013b0b0 JMP 0x0013c99f LAB_0013c910: CMP dword ptr [RBP + -0x2c],0x2 JNZ 0x0013c928 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x38] MOV EDX,0x1 CALL 0x0013caa0 LAB_0013c928: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x38] MOV EDX,dword ptr [RBP + -0x24] MOV ECX,dword ptr [RBP + -0x2c] XOR R8D,R8D CALL 0x0013ad90 CMP AL,0x0 JZ 0x0013c983 CMP dword ptr [RBP + -0x2c],0x2 JNZ 0x0013c95a MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x38] MOV EDX,0x1 CALL 0x0013af30 LAB_0013c95a: MOV RDI,qword ptr [RBP + -0x10] CALL 0x0013b0b0 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0xc8 CALL 0x0013a040 MOV RDI,qword ptr [RBP + -0x10] CALL 0x0013b0b0 JMP 0x0013c97e LAB_0013c97e: JMP 0x0013c83f LAB_0013c983: JMP 0x0013c985 LAB_0013c985: JMP 0x0013c987 LAB_0013c987: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x38] MOV RDX,qword ptr [RBP + -0x48] MOVSX ECX,byte ptr [RBP + -0x25] CALL 0x0013c540 MOV byte ptr [RBP + -0x26],AL LAB_0013c99f: MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0xc8 CALL 0x0013a040 LAB_0013c9af: JMP 0x0013c9b1 LAB_0013c9b1: MOV AL,byte ptr [RBP + -0x26] MOV byte ptr [RBP + -0x1],AL LAB_0013c9b7: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x50 POP RBP RET
int8 pagecache_delete(long param_1,int8 param_2,int8 param_3,uint param_4,char param_5) { char cVar1; long lVar2; int7 extraout_var; int7 uVar3; int1 local_48 [8]; long local_40; int local_34; int1 local_2e; char local_2d; uint local_2c; int8 local_28; int8 local_20; long local_18; int1 local_9; local_2e = 0; local_34 = *(int *)(lock_to_pin_one_phase + (ulong)param_4 * 4); local_2d = param_5; local_2c = param_4; local_28 = param_3; local_20 = param_2; local_18 = param_1; do { if (*(char *)(local_18 + 0x1aa) == '\0') { LAB_0013c9af: uVar3 = (int7)((ulong)local_18 >> 8); local_9 = local_2e; LAB_0013c9b7: return CONCAT71(uVar3,local_9); } inline_mysql_mutex_lock (local_18 + 200, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",0x107a); if (*(char *)(local_18 + 0x1aa) == '\0') goto LAB_0013c99f; inc_counter_for_resize_op(local_18); lVar2 = get_present_hash_link(local_18,local_20,local_28,local_48); if (lVar2 == 0) { dec_counter_for_resize_op(local_18); inline_mysql_mutex_unlock(local_18 + 200); local_9 = 0; uVar3 = extraout_var; goto LAB_0013c9b7; } local_40 = *(long *)(lVar2 + 0x10); if ((*(ushort *)(local_40 + 0x74) & 0xc) != 0) { *(int *)(lVar2 + 0x68) = *(int *)(lVar2 + 0x68) + -1; dec_counter_for_resize_op(local_18); LAB_0013c99f: local_18 = inline_mysql_mutex_unlock(local_18 + 200); goto LAB_0013c9af; } if (local_34 == 2) { reg_requests(local_18,local_40,1); } cVar1 = make_lock_and_pin(local_18,local_40,local_2c,local_34,0); if (cVar1 == '\0') { local_2e = pagecache_delete_internal(local_18,local_40,lVar2,(int)local_2d); goto LAB_0013c99f; } if (local_34 == 2) { unreg_request(local_18,local_40,1); } dec_counter_for_resize_op(local_18); inline_mysql_mutex_unlock(local_18 + 200); dec_counter_for_resize_op(local_18); } while( true ); }
65,292
maria_rtree_find_first
eloqsql/storage/maria/ma_rt_index.c
int maria_rtree_find_first(MARIA_HA *info, MARIA_KEY *key, uint32 search_flag) { my_off_t root; uint nod_cmp_flag; MARIA_KEYDEF *keyinfo= key->keyinfo; /* At the moment index can only properly handle the MBR_INTERSECT, so we use it for all sorts of queries. TODO: better searsh for CONTAINS/WITHIN. */ search_flag= nod_cmp_flag= MBR_INTERSECT; if ((root= info->s->state.key_root[keyinfo->key_nr]) == HA_OFFSET_ERROR) { my_errno= HA_ERR_END_OF_FILE; return -1; } /* Save searched key, include data pointer. The data pointer is required if the search_flag contains MBR_DATA. (minimum bounding rectangle) */ memcpy(info->first_mbr_key, key->data, key->data_length + key->ref_length); info->last_rkey_length= key->data_length; info->maria_rtree_recursion_depth= -1; info->keyread_buff_used= 1; /* TODO better search for CONTAINS/WITHIN. nod_cmp_flag= ((search_flag & (MBR_EQUAL | MBR_WITHIN)) ? MBR_WITHIN : MBR_INTERSECT); */ return maria_rtree_find_req(info, keyinfo, search_flag, nod_cmp_flag, root, 0); }
O0
c
maria_rtree_find_first: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) movq -0x18(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x38(%rbp) movl $0x400, -0x2c(%rbp) # imm = 0x400 movl $0x400, -0x1c(%rbp) # imm = 0x400 movq -0x10(%rbp), %rax movq (%rax), %rax movq 0x118(%rax), %rax movq -0x38(%rbp), %rcx movzbl 0xa5(%rcx), %ecx movq (%rax,%rcx,8), %rax movq %rax, -0x28(%rbp) cmpq $-0x1, %rax jne 0x8ca28 callq 0xf55f0 movl $0x89, (%rax) movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x8ca98 movq -0x10(%rbp), %rax movq 0x398(%rax), %rdi movq -0x18(%rbp), %rax movq (%rax), %rsi movq -0x18(%rbp), %rax movl 0x10(%rax), %eax movq -0x18(%rbp), %rcx addl 0x14(%rcx), %eax movl %eax, %eax movl %eax, %edx callq 0x2a0a0 movq -0x18(%rbp), %rax movl 0x10(%rax), %ecx movq -0x10(%rbp), %rax movl %ecx, 0x630(%rax) movq -0x10(%rbp), %rax movl $0xffffffff, 0x6f0(%rax) # imm = 0xFFFFFFFF movq -0x10(%rbp), %rax movb $0x1, 0x685(%rax) movq -0x10(%rbp), %rdi movq -0x38(%rbp), %rsi movl -0x1c(%rbp), %edx movl -0x2c(%rbp), %ecx movq -0x28(%rbp), %r8 xorl %r9d, %r9d callq 0x8cab0 movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
maria_rtree_find_first: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_1C], edx mov rax, [rbp+var_18] mov rax, [rax+8] mov [rbp+var_38], rax mov [rbp+var_2C], 400h mov [rbp+var_1C], 400h mov rax, [rbp+var_10] mov rax, [rax] mov rax, [rax+118h] mov rcx, [rbp+var_38] movzx ecx, byte ptr [rcx+0A5h] mov rax, [rax+rcx*8] mov [rbp+var_28], rax cmp rax, 0FFFFFFFFFFFFFFFFh jnz short loc_8CA28 call _my_thread_var mov dword ptr [rax], 89h mov [rbp+var_4], 0FFFFFFFFh jmp short loc_8CA98 loc_8CA28: mov rax, [rbp+var_10] mov rdi, [rax+398h] mov rax, [rbp+var_18] mov rsi, [rax] mov rax, [rbp+var_18] mov eax, [rax+10h] mov rcx, [rbp+var_18] add eax, [rcx+14h] mov eax, eax mov edx, eax call _memcpy mov rax, [rbp+var_18] mov ecx, [rax+10h] mov rax, [rbp+var_10] mov [rax+630h], ecx mov rax, [rbp+var_10] mov dword ptr [rax+6F0h], 0FFFFFFFFh mov rax, [rbp+var_10] mov byte ptr [rax+685h], 1 mov rdi, [rbp+var_10] mov rsi, [rbp+var_38] mov edx, [rbp+var_1C] mov ecx, [rbp+var_2C] mov r8, [rbp+var_28] xor r9d, r9d call maria_rtree_find_req mov [rbp+var_4], eax loc_8CA98: mov eax, [rbp+var_4] add rsp, 40h pop rbp retn
long long maria_rtree_find_first(long long a1, long long a2, double a3) { long long v4; // [rsp+8h] [rbp-38h] long long v5; // [rsp+18h] [rbp-28h] v4 = *(_QWORD *)(a2 + 8); v5 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)a1 + 280LL) + 8LL * *(unsigned __int8 *)(v4 + 165)); if ( v5 == -1 ) { *(_DWORD *)my_thread_var(a3) = 137; return (unsigned int)-1; } else { memcpy(*(_QWORD *)(a1 + 920), *(_QWORD *)a2, (unsigned int)(*(_DWORD *)(a2 + 20) + *(_DWORD *)(a2 + 16))); *(_DWORD *)(a1 + 1584) = *(_DWORD *)(a2 + 16); *(_DWORD *)(a1 + 1776) = -1; *(_BYTE *)(a1 + 1669) = 1; return (unsigned int)maria_rtree_find_req(a1, v4, 1024LL, 1024LL, v5, 0LL); } }
maria_rtree_find_first: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV dword ptr [RBP + -0x1c],EDX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x38],RAX MOV dword ptr [RBP + -0x2c],0x400 MOV dword ptr [RBP + -0x1c],0x400 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x118] MOV RCX,qword ptr [RBP + -0x38] MOVZX ECX,byte ptr [RCX + 0xa5] MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RBP + -0x28],RAX CMP RAX,-0x1 JNZ 0x0018ca28 CALL 0x001f55f0 MOV dword ptr [RAX],0x89 MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x0018ca98 LAB_0018ca28: MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x398] MOV RAX,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX + 0x10] MOV RCX,qword ptr [RBP + -0x18] ADD EAX,dword ptr [RCX + 0x14] MOV EAX,EAX MOV EDX,EAX CALL 0x0012a0a0 MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RAX + 0x10] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x630],ECX MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x6f0],0xffffffff MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x685],0x1 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x38] MOV EDX,dword ptr [RBP + -0x1c] MOV ECX,dword ptr [RBP + -0x2c] MOV R8,qword ptr [RBP + -0x28] XOR R9D,R9D CALL 0x0018cab0 MOV dword ptr [RBP + -0x4],EAX LAB_0018ca98: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x40 POP RBP RET
int4 maria_rtree_find_first(long *param_1,int8 *param_2) { long lVar1; long lVar2; int4 *puVar3; int4 local_c; lVar1 = param_2[1]; lVar2 = *(long *)(*(long *)(*param_1 + 0x118) + (ulong)*(byte *)(lVar1 + 0xa5) * 8); if (lVar2 == -1) { puVar3 = (int4 *)_my_thread_var(); *puVar3 = 0x89; local_c = 0xffffffff; } else { memcpy((void *)param_1[0x73],(void *)*param_2, (ulong)(uint)(*(int *)(param_2 + 2) + *(int *)((long)param_2 + 0x14))); *(int4 *)(param_1 + 0xc6) = *(int4 *)(param_2 + 2); *(int4 *)(param_1 + 0xde) = 0xffffffff; *(int1 *)((long)param_1 + 0x685) = 1; local_c = maria_rtree_find_req(param_1,lVar1,0x400,0x400,lVar2,0); } return local_c; }
65,293
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__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>>>::iteration_proxy_value(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, unsigned long)
monkey531[P]llama/common/./json.hpp
explicit iteration_proxy_value(IteratorType it, std::size_t array_index_ = 0) noexcept(std::is_nothrow_move_constructible<IteratorType>::value && std::is_nothrow_default_constructible<string_type>::value) : anchor(std::move(it)) , array_index(array_index_) {}
O3
cpp
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__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>>>::iteration_proxy_value(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, unsigned long): pushq %rbx movq %rdi, %rbx movups (%rsi), %xmm0 movups 0x10(%rsi), %xmm1 movups %xmm1, 0x10(%rdi) movups %xmm0, (%rdi) movq %rdx, 0x20(%rdi) movq $0x0, 0x28(%rdi) addq $0x30, %rdi leaq 0x40(%rbx), %rax movq %rax, 0x30(%rbx) leaq 0x4aaaa(%rip), %rsi # 0xbc5ff leaq 0x4aaa4(%rip), %rdx # 0xbc600 callq 0x590a2 leaq 0x60(%rbx), %rax movq %rax, 0x50(%rbx) movq $0x0, 0x58(%rbx) movb $0x0, 0x60(%rbx) popq %rbx retq movq %rax, %rdi callq 0x2ad73
_ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEEC2ESH_m: push rbx mov rbx, rdi movups xmm0, xmmword ptr [rsi] movups xmm1, xmmword ptr [rsi+10h] movups xmmword ptr [rdi+10h], xmm1 movups xmmword ptr [rdi], xmm0 mov [rdi+20h], rdx mov qword ptr [rdi+28h], 0 add rdi, 30h ; '0' lea rax, [rbx+40h] mov [rbx+30h], rax lea rsi, aMinExp0+0Ah; "0" lea rdx, aMinExp0+0Bh; "" call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rax, [rbx+60h] mov [rbx+50h], rax mov qword ptr [rbx+58h], 0 mov byte ptr [rbx+60h], 0 pop rbx retn mov rdi, rax call __clang_call_terminate
long long nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::iteration_proxy_value( long long a1, __int128 *a2, long long a3) { __int128 v3; // xmm0 long long result; // rax v3 = *a2; *(_OWORD *)(a1 + 16) = a2[1]; *(_OWORD *)a1 = v3; *(_QWORD *)(a1 + 32) = a3; *(_QWORD *)(a1 + 40) = 0LL; *(_QWORD *)(a1 + 48) = a1 + 64; std::string::_M_construct<char const*>(a1 + 48, "0", (long long)""); result = a1 + 96; *(_QWORD *)(a1 + 80) = a1 + 96; *(_QWORD *)(a1 + 88) = 0LL; *(_BYTE *)(a1 + 96) = 0; return result; }
iteration_proxy_value: PUSH RBX MOV RBX,RDI MOVUPS XMM0,xmmword ptr [RSI] MOVUPS XMM1,xmmword ptr [RSI + 0x10] MOVUPS xmmword ptr [RDI + 0x10],XMM1 MOVUPS xmmword ptr [RDI],XMM0 MOV qword ptr [RDI + 0x20],RDX MOV qword ptr [RDI + 0x28],0x0 ADD RDI,0x30 LEA RAX,[RBX + 0x40] MOV qword ptr [RBX + 0x30],RAX LAB_00171b4e: LEA RSI,[0x1bc5ff] LEA RDX,[0x1bc600] CALL 0x001590a2 LEA RAX,[RBX + 0x60] MOV qword ptr [RBX + 0x50],RAX MOV qword ptr [RBX + 0x58],0x0 MOV byte ptr [RBX + 0x60],0x0 POP RBX RET
/* nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> > >::iteration_proxy_value(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >, unsigned long) */ void __thiscall nlohmann::json_abi_v3_11_3::detail:: iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::iteration_proxy_value (iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *this,int4 *param_2,int8 param_3) { int4 uVar1; int4 uVar2; int4 uVar3; int4 uVar4; int4 uVar5; int4 uVar6; int4 uVar7; uVar1 = *param_2; uVar2 = param_2[1]; uVar3 = param_2[2]; uVar4 = param_2[3]; uVar5 = param_2[5]; uVar6 = param_2[6]; uVar7 = param_2[7]; *(int4 *)(this + 0x10) = param_2[4]; *(int4 *)(this + 0x14) = uVar5; *(int4 *)(this + 0x18) = uVar6; *(int4 *)(this + 0x1c) = uVar7; *(int4 *)this = uVar1; *(int4 *)(this + 4) = uVar2; *(int4 *)(this + 8) = uVar3; *(int4 *)(this + 0xc) = uVar4; *(int8 *)(this + 0x20) = param_3; *(int8 *)(this + 0x28) = 0; *(iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)(this + 0x30) = this + 0x40; /* try { // try from 00171b4e to 00171b60 has its CatchHandler @ 00171b77 */ std::__cxx11::string::_M_construct<char_const*>(this + 0x30,"0",""); *(iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)(this + 0x50) = this + 0x60; *(int8 *)(this + 0x58) = 0; this[0x60] = (iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> )0x0; return; }
65,294
google::protobuf::Message* google::protobuf::internal::down_cast<google::protobuf::Message*, google::protobuf::MessageLite>(google::protobuf::MessageLite*)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/stubs/casts.h
inline To down_cast(From* f) { // so we only accept pointers // Ensures that To is a sub-type of From *. This test is here only // for compile-time type checking, and has no overhead in an // optimized build at run-time, as it will be optimized away // completely. if (false) { implicit_cast<From*, To>(0); } #if !defined(NDEBUG) && PROTOBUF_RTTI assert(f == nullptr || dynamic_cast<To>(f) != nullptr); // RTTI: debug mode only! #endif return static_cast<To>(f); }
O0
c
google::protobuf::Message* google::protobuf::internal::down_cast<google::protobuf::Message*, google::protobuf::MessageLite>(google::protobuf::MessageLite*): movq %rdi, -0x8(%rsp) movq -0x8(%rsp), %rax retq nopl (%rax,%rax)
_ZN6google8protobuf8internal9down_castIPNS0_4util9converter11ProtoWriter12ProtoElementENS4_22StructuredObjectWriter11BaseElementEEET_PT0_: mov [rsp+var_8], rdi mov rax, [rsp+var_8] retn
long long google::protobuf::internal::down_cast<google::protobuf::util::converter::ProtoWriter::ProtoElement *,google::protobuf::util::converter::StructuredObjectWriter::BaseElement>( long long a1) { return a1; }
operator!=: MOV qword ptr [RSP + -0x8],RDI MOV qword ptr [RSP + -0x10],RSI MOV RAX,qword ptr [RSP + -0x8] MOV RAX,qword ptr [RAX] MOV RCX,qword ptr [RSP + -0x10] CMP RAX,qword ptr [RCX] SETNZ AL AND AL,0x1 RET
/* WARNING: Unknown calling convention -- yet parameter storage is locked */ /* std::TEMPNAMEPLACEHOLDERVALUE(std::_Rb_tree_iterator<std::pair<int const, std::__cxx11::string > > const&, std::_Rb_tree_iterator<std::pair<int const, std::__cxx11::string > > const&) */ int8 std::operator!=(_Rb_tree_iterator *param_1,_Rb_tree_iterator *param_2) { return CONCAT71((int7)((ulong)*(long *)param_1 >> 8),*(long *)param_1 != *(long *)param_2); }
65,295
hashcmp
eloqsql/libmariadb/libmariadb/ma_hashtbl.c
static int hashcmp(MA_HASHTBL *hash,MA_HASHTBL_LINK *pos,const uchar *key,uint length) { uint rec_keylength; uchar *rec_key= (uchar*) hash_key(hash,pos->data,&rec_keylength,1); return (length && length != rec_keylength) || memcmp(rec_key,key,rec_keylength); }
O3
c
hashcmp: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movl %ecx, %r14d movq %rdx, %rbx movq 0x30(%rdi), %rax testq %rax, %rax je 0x34140 leaq -0x1c(%rbp), %r15 movq %rsi, %rdi movq %r15, %rsi movl $0x1, %edx callq *%rax movq %rax, %rsi movl (%r15), %ecx jmp 0x3414b movl 0x4(%rdi), %ecx movl %ecx, -0x1c(%rbp) movl (%rdi), %eax addq %rax, %rsi testl %r14d, %r14d sete %al cmpl %r14d, %ecx sete %dl orb %al, %dl movl $0x1, %eax cmpb $0x1, %dl jne 0x34179 movl %ecx, %edx movq %rsi, %rdi movq %rbx, %rsi callq 0x13490 movl %eax, %ecx xorl %eax, %eax testl %ecx, %ecx setne %al addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
hashcmp: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov r14d, ecx mov rbx, rdx mov rax, [rdi+30h] test rax, rax jz short loc_34140 lea r15, [rbp+var_1C] mov rdi, rsi mov rsi, r15 mov edx, 1 call rax mov rsi, rax mov ecx, [r15] jmp short loc_3414B loc_34140: mov ecx, [rdi+4] mov [rbp+var_1C], ecx mov eax, [rdi] add rsi, rax loc_3414B: test r14d, r14d setz al cmp ecx, r14d setz dl or dl, al mov eax, 1 cmp dl, 1 jnz short loc_34179 mov edx, ecx mov rdi, rsi mov rsi, rbx call _bcmp mov ecx, eax xor eax, eax test ecx, ecx setnz al loc_34179: add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
_BOOL8 hashcmp(unsigned int *a1, long long a2, long long a3, int a4) { long long v4; // rax long long ( *v7)(long long, unsigned int *, long long); // rax long long v8; // rsi unsigned int v9; // ecx _BOOL8 result; // rax unsigned int v11[7]; // [rsp+0h] [rbp-1Ch] BYREF v11[0] = HIDWORD(v4); v7 = (long long ( *)(long long, unsigned int *, long long))*((_QWORD *)a1 + 6); if ( v7 ) { v8 = v7(a2, v11, 1LL); v9 = v11[0]; } else { v9 = a1[1]; v11[0] = v9; v8 = *a1 + a2; } result = 1LL; if ( a4 == 0 || v9 == a4 ) return (unsigned int)bcmp(v8, a3, v9) != 0; return result; }
hashcmp: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV R14D,ECX MOV RBX,RDX MOV RAX,qword ptr [RDI + 0x30] TEST RAX,RAX JZ 0x00134140 LEA R15,[RBP + -0x1c] MOV RDI,RSI MOV RSI,R15 MOV EDX,0x1 CALL RAX MOV RSI,RAX MOV ECX,dword ptr [R15] JMP 0x0013414b LAB_00134140: MOV ECX,dword ptr [RDI + 0x4] MOV dword ptr [RBP + -0x1c],ECX MOV EAX,dword ptr [RDI] ADD RSI,RAX LAB_0013414b: TEST R14D,R14D SETZ AL CMP ECX,R14D SETZ DL OR DL,AL MOV EAX,0x1 CMP DL,0x1 JNZ 0x00134179 MOV EDX,ECX MOV RDI,RSI MOV RSI,RBX CALL 0x00113490 MOV ECX,EAX XOR EAX,EAX TEST ECX,ECX SETNZ AL LAB_00134179: ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
bool hashcmp(uint *param_1,long param_2,void *param_3,uint param_4) { int iVar1; int8 in_RAX; void *__s1; uint uVar2; bool bVar3; int8 uStack_28; if (*(code **)(param_1 + 0xc) == (code *)0x0) { uVar2 = param_1[1]; uStack_28 = CONCAT44(uVar2,(int)in_RAX); __s1 = (void *)(param_2 + (ulong)*param_1); } else { uStack_28 = in_RAX; __s1 = (void *)(**(code **)(param_1 + 0xc))(param_2,(long)&uStack_28 + 4,1); uVar2 = uStack_28._4_4_; } bVar3 = true; if (uVar2 == param_4 || param_4 == 0) { iVar1 = bcmp(__s1,param_3,(ulong)uVar2); bVar3 = iVar1 != 0; } return bVar3; }
65,296
my_scan_utf32
eloqsql/strings/ctype-ucs2.c
static size_t my_scan_utf32(CHARSET_INFO *cs, const char *str, const char *end, int sequence_type) { const char *str0= str; switch (sequence_type) { case MY_SEQ_SPACES: for ( ; str < end; ) { my_wc_t wc; int res= my_utf32_uni(cs, &wc, (uchar*) str, (uchar*) end); if (res < 0 || wc != ' ') break; str+= res; } return (size_t) (str - str0); case MY_SEQ_NONSPACES: DBUG_ASSERT(0); /* Not implemented */ /* pass through */ default: return 0; } }
O0
c
my_scan_utf32: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp 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, -0x40(%rbp) subl $0x2, %eax je 0xba346 jmp 0xba33c movl -0x40(%rbp), %eax subl $0x3, %eax je 0xba39d jmp 0xba3a3 jmp 0xba348 movq -0x18(%rbp), %rax cmpq -0x20(%rbp), %rax jae 0xba38c movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rdx movq -0x20(%rbp), %rcx leaq -0x38(%rbp), %rsi callq 0xb97b0 movl %eax, -0x3c(%rbp) cmpl $0x0, -0x3c(%rbp) jl 0xba377 cmpq $0x20, -0x38(%rbp) je 0xba379 jmp 0xba38c movl -0x3c(%rbp), %ecx movq -0x18(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x18(%rbp) jmp 0xba348 movq -0x18(%rbp), %rax movq -0x30(%rbp), %rcx subq %rcx, %rax movq %rax, -0x8(%rbp) jmp 0xba3ab jmp 0xba39f jmp 0xba3a1 jmp 0xba3a3 movq $0x0, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_scan_utf32: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_24], ecx mov rax, [rbp+var_18] mov [rbp+var_30], rax mov eax, [rbp+var_24] mov [rbp+var_40], eax sub eax, 2 jz short loc_BA346 jmp short $+2 loc_BA33C: mov eax, [rbp+var_40] sub eax, 3 jz short loc_BA39D jmp short loc_BA3A3 loc_BA346: jmp short $+2 loc_BA348: mov rax, [rbp+var_18] cmp rax, [rbp+var_20] jnb short loc_BA38C mov rdi, [rbp+var_10] mov rdx, [rbp+var_18] mov rcx, [rbp+var_20] lea rsi, [rbp+var_38] call my_utf32_uni mov [rbp+var_3C], eax cmp [rbp+var_3C], 0 jl short loc_BA377 cmp [rbp+var_38], 20h ; ' ' jz short loc_BA379 loc_BA377: jmp short loc_BA38C loc_BA379: mov ecx, [rbp+var_3C] mov rax, [rbp+var_18] movsxd rcx, ecx add rax, rcx mov [rbp+var_18], rax jmp short loc_BA348 loc_BA38C: mov rax, [rbp+var_18] mov rcx, [rbp+var_30] sub rax, rcx mov [rbp+var_8], rax jmp short loc_BA3AB loc_BA39D: jmp short $+2 loc_BA39F: jmp short $+2 loc_BA3A1: jmp short $+2 loc_BA3A3: mov [rbp+var_8], 0 loc_BA3AB: mov rax, [rbp+var_8] add rsp, 40h pop rbp retn
unsigned long long my_scan_utf32( long long a1, unsigned long long a2, unsigned long long a3, int a4, long long a5, long long a6) { int v7; // [rsp+4h] [rbp-3Ch] long long v8; // [rsp+8h] [rbp-38h] BYREF unsigned long long v9; // [rsp+10h] [rbp-30h] int v10; // [rsp+1Ch] [rbp-24h] unsigned long long v11; // [rsp+20h] [rbp-20h] unsigned long long v12; // [rsp+28h] [rbp-18h] long long v13; // [rsp+30h] [rbp-10h] v13 = a1; v12 = a2; v11 = a3; v10 = a4; v9 = a2; if ( a4 != 2 ) return 0LL; while ( v12 < v11 ) { v7 = my_utf32_uni(v13, (long long)&v8, v12, v11, a5, a6); if ( v7 < 0 || v8 != 32 ) break; v12 += v7; } return v12 - v9; }
my_scan_utf32: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV 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 + -0x40],EAX SUB EAX,0x2 JZ 0x001ba346 JMP 0x001ba33c LAB_001ba33c: MOV EAX,dword ptr [RBP + -0x40] SUB EAX,0x3 JZ 0x001ba39d JMP 0x001ba3a3 LAB_001ba346: JMP 0x001ba348 LAB_001ba348: MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x20] JNC 0x001ba38c MOV RDI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x20] LEA RSI,[RBP + -0x38] CALL 0x001b97b0 MOV dword ptr [RBP + -0x3c],EAX CMP dword ptr [RBP + -0x3c],0x0 JL 0x001ba377 CMP qword ptr [RBP + -0x38],0x20 JZ 0x001ba379 LAB_001ba377: JMP 0x001ba38c LAB_001ba379: MOV ECX,dword ptr [RBP + -0x3c] MOV RAX,qword ptr [RBP + -0x18] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x18],RAX JMP 0x001ba348 LAB_001ba38c: MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x30] SUB RAX,RCX MOV qword ptr [RBP + -0x8],RAX JMP 0x001ba3ab LAB_001ba39d: JMP 0x001ba39f LAB_001ba39f: JMP 0x001ba3a1 LAB_001ba3a1: JMP 0x001ba3a3 LAB_001ba3a3: MOV qword ptr [RBP + -0x8],0x0 LAB_001ba3ab: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x40 POP RBP RET
long my_scan_utf32(int8 param_1,ulong param_2,ulong param_3,int param_4) { int iVar1; long local_40; ulong local_38; int4 local_2c; ulong local_28; ulong local_20; int8 local_18; long local_10; if (param_4 == 2) { local_2c = 2; local_38 = param_2; local_28 = param_3; local_20 = param_2; local_18 = param_1; while (((local_20 < local_28 && (iVar1 = my_utf32_uni(local_18,&local_40,local_20,local_28), -1 < iVar1)) && (local_40 == 0x20))) { local_20 = local_20 + (long)iVar1; } local_10 = local_20 - local_38; } else { local_10 = 0; } return local_10; }
65,297
my_fill_utf8mb3
eloqsql/strings/ctype-utf8.c
static void my_fill_utf8mb3(CHARSET_INFO *cs, char *str, size_t length, int fill) { if (fill < 0x80) my_fill_8bit(cs, str, length, fill); else my_fill_utf8mb3_mb(cs, str, length, fill); }
O3
c
my_fill_utf8mb3: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdx, %r15 movq %rsi, %rbx movq %fs:0x28, %rax movq %rax, -0x30(%rbp) cmpl $0x7f, %ecx jg 0xcb9a9 movq %fs:0x28, %rax cmpq -0x30(%rbp), %rax jne 0xcba2d movq %rbx, %rsi movq %r15, %rdx addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0xb5a6f leaq (%rbx,%r15), %r14 movq 0xb8(%rdi), %rax movl %ecx, %esi leaq -0x30(%rbp), %rcx leaq -0x3a(%rbp), %rdx callq *0xd8(%rax) movsbq %al, %r12 cmpq %r15, %r12 jle 0xcb9d2 movq %rbx, %r13 jmp 0xcb9f7 movsbq %al, %r15 movq %rbx, %r13 movq %rbx, %rdi leaq -0x3a(%rbp), %rsi movq %r15, %rdx callq 0x29080 addq %r12, %rbx addq %r12, %r13 leaq (%rbx,%r12), %rax cmpq %r14, %rax jbe 0xcb9d9 cmpq %r14, %rbx jae 0xcba0f subq %r13, %r14 movq %rbx, %rdi movl $0x20, %esi movq %r14, %rdx callq 0x292c0 movq %fs:0x28, %rax cmpq -0x30(%rbp), %rax jne 0xcba2d addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0x29270
my_fill_utf8mb3: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r15, rdx mov rbx, rsi mov rax, fs:28h mov [rbp+var_30], rax cmp ecx, 7Fh jg short loc_CB9A9 mov rax, fs:28h cmp rax, [rbp+var_30] jnz loc_CBA2D mov rsi, rbx mov rdx, r15 add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp my_fill_8bit loc_CB9A9: lea r14, [rbx+r15] mov rax, [rdi+0B8h] mov esi, ecx lea rcx, [rbp+var_30] lea rdx, [rbp+var_3A] call qword ptr [rax+0D8h] movsx r12, al cmp r12, r15 jle short loc_CB9D2 mov r13, rbx jmp short loc_CB9F7 loc_CB9D2: movsx r15, al mov r13, rbx loc_CB9D9: mov rdi, rbx lea rsi, [rbp+var_3A] mov rdx, r15 call _memcpy add rbx, r12 add r13, r12 lea rax, [rbx+r12] cmp rax, r14 jbe short loc_CB9D9 loc_CB9F7: cmp rbx, r14 jnb short loc_CBA0F sub r14, r13 mov rdi, rbx mov esi, 20h ; ' ' mov rdx, r14 call _memset loc_CBA0F: mov rax, fs:28h cmp rax, [rbp+var_30] jnz short loc_CBA2D add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_CBA2D: call ___stack_chk_fail
long long my_fill_utf8mb3(long long a1, long long a2, long long a3, signed int a4) { unsigned long long v5; // rbx unsigned long long v7; // r14 char v8; // al long long v9; // r12 long long v10; // r13 long long v11; // r15 _BYTE v12[10]; // [rsp+6h] [rbp-3Ah] BYREF unsigned long long v13[6]; // [rsp+10h] [rbp-30h] BYREF v5 = a2; v13[0] = __readfsqword(0x28u); if ( a4 <= 127 ) return my_fill_8bit(a1, a2, a3, a4); v7 = a2 + a3; v8 = (*(long long ( **)(long long, _QWORD, _BYTE *, unsigned long long *))(*(_QWORD *)(a1 + 184) + 216LL))( a1, (unsigned int)a4, v12, v13); v9 = v8; if ( v8 <= a3 ) { v11 = v8; v10 = a2; do { memcpy(v5, v12, v11); v5 += v9; v10 += v9; } while ( v5 + v9 <= v7 ); } else { v10 = a2; } if ( v5 < v7 ) memset(v5, 32LL, v7 - v10); return __readfsqword(0x28u); }
my_fill_utf8mb3: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R15,RDX MOV RBX,RSI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX CMP ECX,0x7f JG 0x001cb9a9 MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x001cba2d MOV RSI,RBX MOV RDX,R15 ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x001b5a6f LAB_001cb9a9: LEA R14,[RBX + R15*0x1] MOV RAX,qword ptr [RDI + 0xb8] MOV ESI,ECX LEA RCX,[RBP + -0x30] LEA RDX,[RBP + -0x3a] CALL qword ptr [RAX + 0xd8] MOVSX R12,AL CMP R12,R15 JLE 0x001cb9d2 MOV R13,RBX JMP 0x001cb9f7 LAB_001cb9d2: MOVSX R15,AL MOV R13,RBX LAB_001cb9d9: MOV RDI,RBX LEA RSI,[RBP + -0x3a] MOV RDX,R15 CALL 0x00129080 ADD RBX,R12 ADD R13,R12 LEA RAX,[RBX + R12*0x1] CMP RAX,R14 JBE 0x001cb9d9 LAB_001cb9f7: CMP RBX,R14 JNC 0x001cba0f SUB R14,R13 MOV RDI,RBX MOV ESI,0x20 MOV RDX,R14 CALL 0x001292c0 LAB_001cba0f: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x001cba2d ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001cba2d: CALL 0x00129270
void my_fill_utf8mb3(long param_1,void *param_2,long param_3,int param_4) { void *pvVar1; char cVar2; long lVar3; void *pvVar4; long in_FS_OFFSET; int1 local_42 [10]; long local_38; local_38 = *(long *)(in_FS_OFFSET + 0x28); if (param_4 < 0x80) { if (*(long *)(in_FS_OFFSET + 0x28) == local_38) { my_fill_8bit(param_1,param_2,param_3); return; } } else { pvVar1 = (void *)((long)param_2 + param_3); cVar2 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xd8))(param_1,param_4,local_42,&local_38); lVar3 = (long)cVar2; pvVar4 = param_2; if (lVar3 <= param_3) { do { memcpy(param_2,local_42,(long)cVar2); param_2 = (void *)((long)param_2 + lVar3); pvVar4 = (void *)((long)pvVar4 + lVar3); } while ((void *)((long)param_2 + lVar3) <= pvVar1); } if (param_2 < pvVar1) { memset(param_2,0x20,(long)pvVar1 - (long)pvVar4); } if (*(long *)(in_FS_OFFSET + 0x28) == local_38) { return; } } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
65,298
google::protobuf::FieldDescriptorProto::FieldDescriptorProto(google::protobuf::FieldDescriptorProto const&)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc
FieldDescriptorProto::FieldDescriptorProto(const FieldDescriptorProto& from) : ::PROTOBUF_NAMESPACE_ID::Message() { FieldDescriptorProto* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){from._impl_._has_bits_} , /*decltype(_impl_._cached_size_)*/{} , decltype(_impl_.name_){} , decltype(_impl_.extendee_){} , decltype(_impl_.type_name_){} , decltype(_impl_.default_value_){} , decltype(_impl_.json_name_){} , decltype(_impl_.options_){nullptr} , decltype(_impl_.number_){} , decltype(_impl_.oneof_index_){} , decltype(_impl_.proto3_optional_){} , decltype(_impl_.label_){} , decltype(_impl_.type_){}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); _impl_.name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.name_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_name()) { _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); } _impl_.extendee_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.extendee_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_extendee()) { _this->_impl_.extendee_.Set(from._internal_extendee(), _this->GetArenaForAllocation()); } _impl_.type_name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.type_name_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_type_name()) { _this->_impl_.type_name_.Set(from._internal_type_name(), _this->GetArenaForAllocation()); } _impl_.default_value_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.default_value_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_default_value()) { _this->_impl_.default_value_.Set(from._internal_default_value(), _this->GetArenaForAllocation()); } _impl_.json_name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.json_name_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_json_name()) { _this->_impl_.json_name_.Set(from._internal_json_name(), _this->GetArenaForAllocation()); } if (from._internal_has_options()) { _this->_impl_.options_ = new ::PROTOBUF_NAMESPACE_ID::FieldOptions(*from._impl_.options_); } ::memcpy(&_impl_.number_, &from._impl_.number_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.type_) - reinterpret_cast<char*>(&_impl_.number_)) + sizeof(_impl_.type_)); // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldDescriptorProto) }
O0
cpp
google::protobuf::FieldDescriptorProto::FieldDescriptorProto(google::protobuf::FieldDescriptorProto const&): subq $0x158, %rsp # imm = 0x158 movq %rdi, 0x108(%rsp) movq %rsi, 0x100(%rsp) movq 0x108(%rsp), %rdi movq %rdi, 0xd8(%rsp) callq 0xd3f60 movq 0xd8(%rsp), %rax leaq 0x1c61b5(%rip), %rcx # 0x2780d0 addq $0x10, %rcx movq %rcx, (%rax) movq %rax, 0xf8(%rsp) movq %rax, %rdi addq $0x10, %rdi movq %rdi, 0xd0(%rsp) movq 0x100(%rsp), %rcx movl 0x10(%rcx), %ecx movl %ecx, 0x10(%rax) addq $0x4, %rdi movq %rdi, 0xc8(%rsp) xorl %esi, %esi movl $0x4, %edx callq 0x13200 movq 0xc8(%rsp), %rdi callq 0xd3ff0 movq 0xd0(%rsp), %rdi addq $0x8, %rdi xorl %esi, %esi movl $0x8, %edx callq 0x13200 movq 0xd0(%rsp), %rdi addq $0x10, %rdi xorl %esi, %esi movl $0x8, %edx callq 0x13200 movq 0xd0(%rsp), %rdi addq $0x18, %rdi xorl %esi, %esi movl $0x8, %edx callq 0x13200 movq 0xd0(%rsp), %rdi addq $0x20, %rdi xorl %esi, %esi movl $0x8, %edx callq 0x13200 movq 0xd0(%rsp), %rdi addq $0x28, %rdi xorl %esi, %esi movl $0x8, %edx callq 0x13200 movq 0xd8(%rsp), %rcx movq $0x0, 0x40(%rcx) movl $0x0, 0x48(%rcx) movl $0x0, 0x4c(%rcx) movb $0x0, 0x50(%rcx) movl $0x0, 0x54(%rcx) movl $0x0, 0x58(%rcx) addq $0x8, %rcx movq 0x100(%rsp), %rax addq $0x8, %rax movq %rcx, 0x118(%rsp) movq %rax, 0x110(%rsp) movq 0x118(%rsp), %rax movq %rax, 0xe0(%rsp) movq 0x110(%rsp), %rax movq %rax, 0x120(%rsp) movq 0x120(%rsp), %rax movq %rax, 0x150(%rsp) movq 0x150(%rsp), %rax movq (%rax), %rax andq $0x1, %rax cmpq $0x0, %rax setne %al movb %al, 0xeb(%rsp) movb 0xeb(%rsp), %al testb $0x1, %al jne 0xb2091 jmp 0xb2152 movq 0x110(%rsp), %rax movq %rax, 0x130(%rsp) movq $0x0, 0x128(%rsp) movq 0x130(%rsp), %rax movq %rax, 0xc0(%rsp) movq %rax, 0x140(%rsp) movq 0x140(%rsp), %rax movq %rax, 0x148(%rsp) movq 0x148(%rsp), %rax movq (%rax), %rax andq $0x1, %rax cmpq $0x0, %rax je 0xb2105 movq 0xc0(%rsp), %rdi callq 0x9cd40 addq $0x8, %rax movq %rax, 0x138(%rsp) jmp 0xb2129 movq 0x128(%rsp), %rax callq *%rax movq %rax, 0xb8(%rsp) jmp 0xb2119 movq 0xb8(%rsp), %rax movq %rax, 0x138(%rsp) movq 0x138(%rsp), %rax movq %rax, 0xb0(%rsp) movq 0xb0(%rsp), %rsi movq 0xe0(%rsp), %rdi callq 0xe0920 jmp 0xb2150 jmp 0xb2152 jmp 0xb2154 movq 0xd8(%rsp), %rdi addq $0x18, %rdi callq 0xd4b40 jmp 0xb2167 movq 0x100(%rsp), %rdi callq 0xd70a0 movb %al, 0xaf(%rsp) jmp 0xb217d movb 0xaf(%rsp), %al testb $0x1, %al jne 0xb218a jmp 0xb2206 movq 0xf8(%rsp), %rax addq $0x18, %rax movq %rax, 0x98(%rsp) movq 0x100(%rsp), %rdi callq 0x87810 movq %rax, 0xa0(%rsp) jmp 0xb21b5 movq 0xf8(%rsp), %rdi callq 0x80180 movq %rax, 0x90(%rsp) jmp 0xb21cc movq 0x90(%rsp), %rdx movq 0xa0(%rsp), %rsi movq 0x98(%rsp), %rdi callq 0x183680 jmp 0xb21eb jmp 0xb2206 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf0(%rsp) movl %eax, 0xec(%rsp) jmp 0xb24d5 movq 0xd8(%rsp), %rdi addq $0x20, %rdi callq 0xd4b40 jmp 0xb2219 movq 0x100(%rsp), %rdi callq 0x87990 movb %al, 0x8f(%rsp) jmp 0xb222f movb 0x8f(%rsp), %al testb $0x1, %al jne 0xb223c jmp 0xb2293 movq 0xf8(%rsp), %rax addq $0x20, %rax movq %rax, 0x78(%rsp) movq 0x100(%rsp), %rdi callq 0x890d0 movq %rax, 0x80(%rsp) jmp 0xb2264 movq 0xf8(%rsp), %rdi callq 0x80180 movq %rax, 0x70(%rsp) jmp 0xb2278 movq 0x70(%rsp), %rdx movq 0x80(%rsp), %rsi movq 0x78(%rsp), %rdi callq 0x183680 jmp 0xb2291 jmp 0xb2293 movq 0xd8(%rsp), %rdi addq $0x28, %rdi callq 0xd4b40 jmp 0xb22a6 movq 0x100(%rsp), %rdi callq 0x89100 movb %al, 0x6f(%rsp) jmp 0xb22b9 movb 0x6f(%rsp), %al testb $0x1, %al jne 0xb22c3 jmp 0xb2314 movq 0xf8(%rsp), %rax addq $0x28, %rax movq %rax, 0x58(%rsp) movq 0x100(%rsp), %rdi callq 0x89150 movq %rax, 0x60(%rsp) jmp 0xb22e8 movq 0xf8(%rsp), %rdi callq 0x80180 movq %rax, 0x50(%rsp) jmp 0xb22fc movq 0x50(%rsp), %rdx movq 0x60(%rsp), %rsi movq 0x58(%rsp), %rdi callq 0x183680 jmp 0xb2312 jmp 0xb2314 movq 0xd8(%rsp), %rdi addq $0x30, %rdi callq 0xd4b40 jmp 0xb2327 movq 0x100(%rsp), %rdi callq 0x878e0 movb %al, 0x4f(%rsp) jmp 0xb233a movb 0x4f(%rsp), %al testb $0x1, %al jne 0xb2344 jmp 0xb2395 movq 0xf8(%rsp), %rax addq $0x30, %rax movq %rax, 0x38(%rsp) movq 0x100(%rsp), %rdi callq 0x87960 movq %rax, 0x40(%rsp) jmp 0xb2369 movq 0xf8(%rsp), %rdi callq 0x80180 movq %rax, 0x30(%rsp) jmp 0xb237d movq 0x30(%rsp), %rdx movq 0x40(%rsp), %rsi movq 0x38(%rsp), %rdi callq 0x183680 jmp 0xb2393 jmp 0xb2395 movq 0xd8(%rsp), %rdi addq $0x38, %rdi callq 0xd4b40 jmp 0xb23a8 movq 0x100(%rsp), %rdi callq 0x87840 movb %al, 0x2f(%rsp) jmp 0xb23bb movb 0x2f(%rsp), %al testb $0x1, %al jne 0xb23c5 jmp 0xb2416 movq 0xf8(%rsp), %rax addq $0x38, %rax movq %rax, 0x18(%rsp) movq 0x100(%rsp), %rdi callq 0x87880 movq %rax, 0x20(%rsp) jmp 0xb23ea movq 0xf8(%rsp), %rdi callq 0x80180 movq %rax, 0x10(%rsp) jmp 0xb23fe movq 0x10(%rsp), %rdx movq 0x20(%rsp), %rsi movq 0x18(%rsp), %rdi callq 0x183680 jmp 0xb2414 jmp 0xb2416 movq 0x100(%rsp), %rdi callq 0x87a20 movb %al, 0xf(%rsp) jmp 0xb2429 movb 0xf(%rsp), %al testb $0x1, %al jne 0xb2433 jmp 0xb248b movl $0x58, %edi callq 0x13450 movq %rax, (%rsp) jmp 0xb2443 movq (%rsp), %rdi movq 0x100(%rsp), %rax movq 0x40(%rax), %rsi callq 0xc1db0 jmp 0xb245a movq (%rsp), %rcx movq 0xf8(%rsp), %rax movq %rcx, 0x40(%rax) jmp 0xb248b movq (%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf0(%rsp) movl %eax, 0xec(%rsp) callq 0x13400 jmp 0xb24d5 movq 0xd8(%rsp), %rax movq %rax, %rdi addq $0x10, %rdi addq $0x38, %rdi movq 0x100(%rsp), %rsi addq $0x10, %rsi addq $0x38, %rsi movq %rax, %rdx addq $0x10, %rdx addq $0x48, %rdx addq $0x10, %rax addq $0x38, %rax subq %rax, %rdx addq $0x4, %rdx callq 0x13390 addq $0x158, %rsp # imm = 0x158 retq movq 0xd8(%rsp), %rdi callq 0xd3f50 movq 0xf0(%rsp), %rdi callq 0x13750 nop
_ZN6google8protobuf20FieldDescriptorProtoC2ERKS1_: sub rsp, 158h mov [rsp+158h+var_50], rdi mov [rsp+158h+var_58], rsi mov rdi, [rsp+158h+var_50]; this mov [rsp+158h+var_80], rdi call _ZN6google8protobuf7MessageC2Ev; google::protobuf::Message::Message(void) mov rax, [rsp+158h+var_80] lea rcx, _ZTVN6google8protobuf20FieldDescriptorProtoE; `vtable for'google::protobuf::FieldDescriptorProto add rcx, 10h mov [rax], rcx mov [rsp+158h+var_60], rax mov rdi, rax add rdi, 10h mov [rsp+158h+var_88], rdi mov rcx, [rsp+158h+var_58] mov ecx, [rcx+10h] mov [rax+10h], ecx add rdi, 4 mov [rsp+158h+var_90], rdi xor esi, esi mov edx, 4 call _memset mov rdi, [rsp+158h+var_90]; this call _ZN6google8protobuf8internal10CachedSizeC2Ev; google::protobuf::internal::CachedSize::CachedSize(void) mov rdi, [rsp+158h+var_88] add rdi, 8 xor esi, esi mov edx, 8 call _memset mov rdi, [rsp+158h+var_88] add rdi, 10h xor esi, esi mov edx, 8 call _memset mov rdi, [rsp+158h+var_88] add rdi, 18h xor esi, esi mov edx, 8 call _memset mov rdi, [rsp+158h+var_88] add rdi, 20h ; ' ' xor esi, esi mov edx, 8 call _memset mov rdi, [rsp+158h+var_88] add rdi, 28h ; '(' xor esi, esi mov edx, 8 call _memset mov rcx, [rsp+158h+var_80] mov qword ptr [rcx+40h], 0 mov dword ptr [rcx+48h], 0 mov dword ptr [rcx+4Ch], 0 mov byte ptr [rcx+50h], 0 mov dword ptr [rcx+54h], 0 mov dword ptr [rcx+58h], 0 add rcx, 8 mov rax, [rsp+158h+var_58] add rax, 8 mov [rsp+158h+var_40], rcx mov [rsp+158h+var_48], rax mov rax, [rsp+158h+var_40] mov [rsp+158h+var_78], rax mov rax, [rsp+158h+var_48] mov [rsp+158h+var_38], rax mov rax, [rsp+158h+var_38] mov [rsp+158h+var_8], rax mov rax, [rsp+158h+var_8] mov rax, [rax] and rax, 1 cmp rax, 0 setnz al mov [rsp+158h+var_6D], al mov al, [rsp+158h+var_6D] test al, 1 jnz short loc_B2091 jmp loc_B2152 loc_B2091: mov rax, [rsp+158h+var_48] mov [rsp+158h+var_28], rax mov [rsp+158h+var_30], 0 mov rax, [rsp+158h+var_28] mov [rsp+158h+var_98], rax mov [rsp+158h+var_18], rax mov rax, [rsp+158h+var_18] mov [rsp+158h+var_10], rax mov rax, [rsp+158h+var_10] mov rax, [rax] and rax, 1 cmp rax, 0 jz short loc_B2105 mov rdi, [rsp+158h+var_98] call _ZNK6google8protobuf8internal16InternalMetadata8PtrValueINS2_9ContainerINS0_15UnknownFieldSetEEEEEPT_v; google::protobuf::internal::InternalMetadata::PtrValue<google::protobuf::internal::InternalMetadata::Container<google::protobuf::UnknownFieldSet>>(void) add rax, 8 mov [rsp+158h+var_20], rax jmp short loc_B2129 loc_B2105: mov rax, [rsp+158h+var_30] call rax mov [rsp+158h+var_A0], rax jmp short $+2 loc_B2119: mov rax, [rsp+158h+var_A0] mov [rsp+158h+var_20], rax loc_B2129: mov rax, [rsp+158h+var_20] mov qword ptr [rsp+158h+var_A8], rax mov rsi, qword ptr [rsp+158h+var_A8]; int mov rdi, [rsp+158h+var_78]; void * call _ZN6google8protobuf8internal16InternalMetadata11DoMergeFromINS0_15UnknownFieldSetEEEvRKT_; google::protobuf::internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet>(google::protobuf::UnknownFieldSet const&) jmp short $+2 loc_B2150: jmp short $+2 loc_B2152: jmp short $+2 loc_B2154: mov rdi, [rsp+158h+var_80] add rdi, 18h; this call _ZN6google8protobuf8internal14ArenaStringPtr11InitDefaultEv; google::protobuf::internal::ArenaStringPtr::InitDefault(void) jmp short $+2 loc_B2167: mov rdi, [rsp+158h+var_58]; this call _ZNK6google8protobuf20FieldDescriptorProto18_internal_has_nameEv; google::protobuf::FieldDescriptorProto::_internal_has_name(void) mov [rsp+158h+var_A9], al jmp short $+2 loc_B217D: mov al, [rsp+158h+var_A9] test al, 1 jnz short loc_B218A jmp short loc_B2206 loc_B218A: mov rax, [rsp+158h+var_60] add rax, 18h mov qword ptr [rsp+158h+var_C0], rax mov rdi, [rsp+158h+var_58] call _ZNK6google8protobuf20FieldDescriptorProto14_internal_nameB5cxx11Ev; google::protobuf::FieldDescriptorProto::_internal_name(void) mov qword ptr [rsp+158h+var_B8], rax jmp short $+2 loc_B21B5: mov rdi, [rsp+158h+var_60]; this call _ZNK6google8protobuf11MessageLite21GetArenaForAllocationEv; google::protobuf::MessageLite::GetArenaForAllocation(void) mov qword ptr [rsp+158h+var_C8], rax jmp short $+2 loc_B21CC: mov rdx, qword ptr [rsp+158h+var_C8]; int mov rsi, qword ptr [rsp+158h+var_B8]; int mov rdi, qword ptr [rsp+158h+var_C0]; int call _ZN6google8protobuf8internal14ArenaStringPtr3SetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Set(std::string const&,google::protobuf::Arena *) jmp short $+2 loc_B21EB: jmp short loc_B2206 mov rcx, rax mov eax, edx mov [rsp+arg_E8], rcx mov [rsp+arg_E4], eax jmp loc_B24D5 loc_B2206: mov rdi, [rsp+158h+var_80] add rdi, 20h ; ' '; this call _ZN6google8protobuf8internal14ArenaStringPtr11InitDefaultEv; google::protobuf::internal::ArenaStringPtr::InitDefault(void) jmp short $+2 loc_B2219: mov rdi, [rsp+158h+var_58]; this call _ZNK6google8protobuf20FieldDescriptorProto22_internal_has_extendeeEv; google::protobuf::FieldDescriptorProto::_internal_has_extendee(void) mov [rsp+158h+var_C9], al jmp short $+2 loc_B222F: mov al, [rsp+158h+var_C9] test al, 1 jnz short loc_B223C jmp short loc_B2293 loc_B223C: mov rax, [rsp+158h+var_60] add rax, 20h ; ' ' mov qword ptr [rsp+158h+var_E0], rax mov rdi, [rsp+158h+var_58] call _ZNK6google8protobuf20FieldDescriptorProto18_internal_extendeeB5cxx11Ev; google::protobuf::FieldDescriptorProto::_internal_extendee(void) mov qword ptr [rsp+158h+var_D8], rax jmp short $+2 loc_B2264: mov rdi, [rsp+158h+var_60]; this call _ZNK6google8protobuf11MessageLite21GetArenaForAllocationEv; google::protobuf::MessageLite::GetArenaForAllocation(void) mov qword ptr [rsp+158h+var_E8], rax jmp short $+2 loc_B2278: mov rdx, qword ptr [rsp+158h+var_E8]; int mov rsi, qword ptr [rsp+158h+var_D8]; int mov rdi, qword ptr [rsp+158h+var_E0]; int call _ZN6google8protobuf8internal14ArenaStringPtr3SetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Set(std::string const&,google::protobuf::Arena *) jmp short $+2 loc_B2291: jmp short $+2 loc_B2293: mov rdi, [rsp+158h+var_80] add rdi, 28h ; '('; this call _ZN6google8protobuf8internal14ArenaStringPtr11InitDefaultEv; google::protobuf::internal::ArenaStringPtr::InitDefault(void) jmp short $+2 loc_B22A6: mov rdi, [rsp+158h+var_58]; this call _ZNK6google8protobuf20FieldDescriptorProto23_internal_has_type_nameEv; google::protobuf::FieldDescriptorProto::_internal_has_type_name(void) mov [rsp+158h+var_E9], al jmp short $+2 loc_B22B9: mov al, [rsp+158h+var_E9] test al, 1 jnz short loc_B22C3 jmp short loc_B2314 loc_B22C3: mov rax, [rsp+158h+var_60] add rax, 28h ; '(' mov qword ptr [rsp+158h+var_100], rax mov rdi, [rsp+158h+var_58] call _ZNK6google8protobuf20FieldDescriptorProto19_internal_type_nameB5cxx11Ev; google::protobuf::FieldDescriptorProto::_internal_type_name(void) mov qword ptr [rsp+158h+var_F8], rax jmp short $+2 loc_B22E8: mov rdi, [rsp+158h+var_60]; this call _ZNK6google8protobuf11MessageLite21GetArenaForAllocationEv; google::protobuf::MessageLite::GetArenaForAllocation(void) mov qword ptr [rsp+158h+var_108], rax jmp short $+2 loc_B22FC: mov rdx, qword ptr [rsp+158h+var_108]; int mov rsi, qword ptr [rsp+158h+var_F8]; int mov rdi, qword ptr [rsp+158h+var_100]; int call _ZN6google8protobuf8internal14ArenaStringPtr3SetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Set(std::string const&,google::protobuf::Arena *) jmp short $+2 loc_B2312: jmp short $+2 loc_B2314: mov rdi, [rsp+158h+var_80] add rdi, 30h ; '0'; this call _ZN6google8protobuf8internal14ArenaStringPtr11InitDefaultEv; google::protobuf::internal::ArenaStringPtr::InitDefault(void) jmp short $+2 loc_B2327: mov rdi, [rsp+158h+var_58]; this call _ZNK6google8protobuf20FieldDescriptorProto27_internal_has_default_valueEv; google::protobuf::FieldDescriptorProto::_internal_has_default_value(void) mov [rsp+158h+var_109], al jmp short $+2 loc_B233A: mov al, [rsp+158h+var_109] test al, 1 jnz short loc_B2344 jmp short loc_B2395 loc_B2344: mov rax, [rsp+158h+var_60] add rax, 30h ; '0' mov qword ptr [rsp+158h+var_120], rax mov rdi, [rsp+158h+var_58] call _ZNK6google8protobuf20FieldDescriptorProto23_internal_default_valueB5cxx11Ev; google::protobuf::FieldDescriptorProto::_internal_default_value(void) mov qword ptr [rsp+158h+var_118], rax jmp short $+2 loc_B2369: mov rdi, [rsp+158h+var_60]; this call _ZNK6google8protobuf11MessageLite21GetArenaForAllocationEv; google::protobuf::MessageLite::GetArenaForAllocation(void) mov qword ptr [rsp+158h+var_128], rax jmp short $+2 loc_B237D: mov rdx, qword ptr [rsp+158h+var_128]; int mov rsi, qword ptr [rsp+158h+var_118]; int mov rdi, qword ptr [rsp+158h+var_120]; int call _ZN6google8protobuf8internal14ArenaStringPtr3SetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Set(std::string const&,google::protobuf::Arena *) jmp short $+2 loc_B2393: jmp short $+2 loc_B2395: mov rdi, [rsp+158h+var_80] add rdi, 38h ; '8'; this call _ZN6google8protobuf8internal14ArenaStringPtr11InitDefaultEv; google::protobuf::internal::ArenaStringPtr::InitDefault(void) jmp short $+2 loc_B23A8: mov rdi, [rsp+158h+var_58]; this call _ZNK6google8protobuf20FieldDescriptorProto23_internal_has_json_nameEv; google::protobuf::FieldDescriptorProto::_internal_has_json_name(void) mov [rsp+158h+var_129], al jmp short $+2 loc_B23BB: mov al, [rsp+158h+var_129] test al, 1 jnz short loc_B23C5 jmp short loc_B2416 loc_B23C5: mov rax, [rsp+158h+var_60] add rax, 38h ; '8' mov qword ptr [rsp+158h+var_140], rax mov rdi, [rsp+158h+var_58] call _ZNK6google8protobuf20FieldDescriptorProto19_internal_json_nameB5cxx11Ev; google::protobuf::FieldDescriptorProto::_internal_json_name(void) mov qword ptr [rsp+158h+var_138], rax jmp short $+2 loc_B23EA: mov rdi, [rsp+158h+var_60]; this call _ZNK6google8protobuf11MessageLite21GetArenaForAllocationEv; google::protobuf::MessageLite::GetArenaForAllocation(void) mov qword ptr [rsp+158h+var_148], rax jmp short $+2 loc_B23FE: mov rdx, qword ptr [rsp+158h+var_148]; int mov rsi, qword ptr [rsp+158h+var_138]; int mov rdi, qword ptr [rsp+158h+var_140]; int call _ZN6google8protobuf8internal14ArenaStringPtr3SetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Set(std::string const&,google::protobuf::Arena *) jmp short $+2 loc_B2414: jmp short $+2 loc_B2416: mov rdi, [rsp+158h+var_58]; this call _ZNK6google8protobuf20FieldDescriptorProto21_internal_has_optionsEv; google::protobuf::FieldDescriptorProto::_internal_has_options(void) mov [rsp+158h+var_149], al jmp short $+2 loc_B2429: mov al, [rsp+158h+var_149] test al, 1 jnz short loc_B2433 jmp short loc_B248B loc_B2433: mov edi, 58h ; 'X'; unsigned __int64 call __Znwm; operator new(ulong) mov [rsp+158h+var_158], rax jmp short $+2 loc_B2443: mov rdi, [rsp+158h+var_158]; this mov rax, [rsp+158h+var_58] mov rsi, [rax+40h]; google::protobuf::FieldOptions * call _ZN6google8protobuf12FieldOptionsC2ERKS1_; google::protobuf::FieldOptions::FieldOptions(google::protobuf::FieldOptions const&) jmp short $+2 loc_B245A: mov rcx, [rsp+158h+var_158] mov rax, [rsp+158h+var_60] mov [rax+40h], rcx jmp short loc_B248B mov rdi, [rsp+0]; void * mov rcx, rax mov eax, edx mov [rsp+arg_E8], rcx mov [rsp+arg_E4], eax call __ZdlPv; operator delete(void *) jmp short loc_B24D5 loc_B248B: mov rax, [rsp+158h+var_80] mov rdi, rax add rdi, 10h add rdi, 38h ; '8' mov rsi, [rsp+158h+var_58] add rsi, 10h add rsi, 38h ; '8' mov rdx, rax add rdx, 10h add rdx, 48h ; 'H' add rax, 10h add rax, 38h ; '8' sub rdx, rax add rdx, 4 call _memcpy add rsp, 158h retn loc_B24D5: mov rdi, [rsp+arg_D0]; this call _ZN6google8protobuf7MessageD2Ev; google::protobuf::Message::~Message() mov rdi, [rsp+arg_E8] call __Unwind_Resume
long long google::protobuf::FieldDescriptorProto::FieldDescriptorProto( google::protobuf::FieldDescriptorProto *this, const google::protobuf::FieldDescriptorProto *a2) { google::protobuf::FieldOptions *v3; // [rsp+0h] [rbp-158h] int v4; // [rsp+10h] [rbp-148h] int v5; // [rsp+20h] [rbp-138h] int v6; // [rsp+30h] [rbp-128h] int v7; // [rsp+40h] [rbp-118h] int v8; // [rsp+50h] [rbp-108h] int v9; // [rsp+60h] [rbp-F8h] int v10; // [rsp+70h] [rbp-E8h] int v11; // [rsp+80h] [rbp-D8h] int ArenaForAllocation; // [rsp+90h] [rbp-C8h] int v13; // [rsp+A0h] [rbp-B8h] unsigned long long v14; // [rsp+138h] [rbp-20h] google::protobuf::Message::Message(this); *(_QWORD *)this = &`vtable for'google::protobuf::FieldDescriptorProto + 2; *((_DWORD *)this + 4) = *((_DWORD *)a2 + 4); memset((char *)this + 20, 0LL, 4LL); google::protobuf::internal::CachedSize::CachedSize((google::protobuf::FieldDescriptorProto *)((char *)this + 20)); memset((char *)this + 24, 0LL, 8LL); memset((char *)this + 32, 0LL, 8LL); memset((char *)this + 40, 0LL, 8LL); memset((char *)this + 48, 0LL, 8LL); memset((char *)this + 56, 0LL, 8LL); *((_QWORD *)this + 8) = 0LL; *((_DWORD *)this + 18) = 0; *((_DWORD *)this + 19) = 0; *((_BYTE *)this + 80) = 0; *((_DWORD *)this + 21) = 0; *((_DWORD *)this + 22) = 0; if ( (*((_QWORD *)a2 + 1) & 1LL) != 0 ) { v14 = google::protobuf::internal::InternalMetadata::PtrValue<google::protobuf::internal::InternalMetadata::Container<google::protobuf::UnknownFieldSet>>((_QWORD *)a2 + 1) + 8; google::protobuf::internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet>((char *)this + 8, v14); } google::protobuf::internal::ArenaStringPtr::InitDefault((google::protobuf::FieldDescriptorProto *)((char *)this + 24)); if ( (google::protobuf::FieldDescriptorProto::_internal_has_name(a2) & 1) != 0 ) { v13 = google::protobuf::FieldDescriptorProto::_internal_name[abi:cxx11]((long long)a2); ArenaForAllocation = google::protobuf::MessageLite::GetArenaForAllocation(this); google::protobuf::internal::ArenaStringPtr::Set((_DWORD)this + 24, v13, ArenaForAllocation); } google::protobuf::internal::ArenaStringPtr::InitDefault((google::protobuf::FieldDescriptorProto *)((char *)this + 32)); if ( google::protobuf::FieldDescriptorProto::_internal_has_extendee(a2) ) { v11 = google::protobuf::FieldDescriptorProto::_internal_extendee[abi:cxx11]((long long)a2); v10 = google::protobuf::MessageLite::GetArenaForAllocation(this); google::protobuf::internal::ArenaStringPtr::Set((_DWORD)this + 32, v11, v10); } google::protobuf::internal::ArenaStringPtr::InitDefault((google::protobuf::FieldDescriptorProto *)((char *)this + 40)); if ( google::protobuf::FieldDescriptorProto::_internal_has_type_name(a2) ) { v9 = google::protobuf::FieldDescriptorProto::_internal_type_name[abi:cxx11]((long long)a2); v8 = google::protobuf::MessageLite::GetArenaForAllocation(this); google::protobuf::internal::ArenaStringPtr::Set((_DWORD)this + 40, v9, v8); } google::protobuf::internal::ArenaStringPtr::InitDefault((google::protobuf::FieldDescriptorProto *)((char *)this + 48)); if ( google::protobuf::FieldDescriptorProto::_internal_has_default_value(a2) ) { v7 = google::protobuf::FieldDescriptorProto::_internal_default_value[abi:cxx11]((long long)a2); v6 = google::protobuf::MessageLite::GetArenaForAllocation(this); google::protobuf::internal::ArenaStringPtr::Set((_DWORD)this + 48, v7, v6); } google::protobuf::internal::ArenaStringPtr::InitDefault((google::protobuf::FieldDescriptorProto *)((char *)this + 56)); if ( google::protobuf::FieldDescriptorProto::_internal_has_json_name(a2) ) { v5 = google::protobuf::FieldDescriptorProto::_internal_json_name[abi:cxx11]((long long)a2); v4 = google::protobuf::MessageLite::GetArenaForAllocation(this); google::protobuf::internal::ArenaStringPtr::Set((_DWORD)this + 56, v5, v4); } if ( google::protobuf::FieldDescriptorProto::_internal_has_options(a2) ) { v3 = (google::protobuf::FieldOptions *)operator new(0x58uLL); google::protobuf::FieldOptions::FieldOptions(v3, *((const google::protobuf::FieldOptions **)a2 + 8)); *((_QWORD *)this + 8) = v3; } return memcpy((char *)this + 72, (char *)a2 + 72, 20LL); }
FieldDescriptorProto: SUB RSP,0x158 MOV qword ptr [RSP + 0x108],RDI MOV qword ptr [RSP + 0x100],RSI MOV RDI,qword ptr [RSP + 0x108] MOV qword ptr [RSP + 0xd8],RDI CALL 0x001d3f60 MOV RAX,qword ptr [RSP + 0xd8] LEA RCX,[0x3780d0] ADD RCX,0x10 MOV qword ptr [RAX],RCX MOV qword ptr [RSP + 0xf8],RAX MOV RDI,RAX ADD RDI,0x10 MOV qword ptr [RSP + 0xd0],RDI MOV RCX,qword ptr [RSP + 0x100] MOV ECX,dword ptr [RCX + 0x10] MOV dword ptr [RAX + 0x10],ECX ADD RDI,0x4 MOV qword ptr [RSP + 0xc8],RDI XOR ESI,ESI MOV EDX,0x4 CALL 0x00113200 MOV RDI,qword ptr [RSP + 0xc8] CALL 0x001d3ff0 MOV RDI,qword ptr [RSP + 0xd0] ADD RDI,0x8 XOR ESI,ESI MOV EDX,0x8 CALL 0x00113200 MOV RDI,qword ptr [RSP + 0xd0] ADD RDI,0x10 XOR ESI,ESI MOV EDX,0x8 CALL 0x00113200 MOV RDI,qword ptr [RSP + 0xd0] ADD RDI,0x18 XOR ESI,ESI MOV EDX,0x8 CALL 0x00113200 MOV RDI,qword ptr [RSP + 0xd0] ADD RDI,0x20 XOR ESI,ESI MOV EDX,0x8 CALL 0x00113200 MOV RDI,qword ptr [RSP + 0xd0] ADD RDI,0x28 XOR ESI,ESI MOV EDX,0x8 CALL 0x00113200 MOV RCX,qword ptr [RSP + 0xd8] MOV qword ptr [RCX + 0x40],0x0 MOV dword ptr [RCX + 0x48],0x0 MOV dword ptr [RCX + 0x4c],0x0 MOV byte ptr [RCX + 0x50],0x0 MOV dword ptr [RCX + 0x54],0x0 MOV dword ptr [RCX + 0x58],0x0 ADD RCX,0x8 MOV RAX,qword ptr [RSP + 0x100] ADD RAX,0x8 MOV qword ptr [RSP + 0x118],RCX MOV qword ptr [RSP + 0x110],RAX MOV RAX,qword ptr [RSP + 0x118] MOV qword ptr [RSP + 0xe0],RAX MOV RAX,qword ptr [RSP + 0x110] MOV qword ptr [RSP + 0x120],RAX MOV RAX,qword ptr [RSP + 0x120] MOV qword ptr [RSP + 0x150],RAX MOV RAX,qword ptr [RSP + 0x150] MOV RAX,qword ptr [RAX] AND RAX,0x1 CMP RAX,0x0 SETNZ AL MOV byte ptr [RSP + 0xeb],AL MOV AL,byte ptr [RSP + 0xeb] TEST AL,0x1 JNZ 0x001b2091 JMP 0x001b2152 LAB_001b2091: MOV RAX,qword ptr [RSP + 0x110] MOV qword ptr [RSP + 0x130],RAX MOV qword ptr [RSP + 0x128],0x0 MOV RAX,qword ptr [RSP + 0x130] MOV qword ptr [RSP + 0xc0],RAX MOV qword ptr [RSP + 0x140],RAX MOV RAX,qword ptr [RSP + 0x140] MOV qword ptr [RSP + 0x148],RAX MOV RAX,qword ptr [RSP + 0x148] MOV RAX,qword ptr [RAX] AND RAX,0x1 CMP RAX,0x0 JZ 0x001b2105 MOV RDI,qword ptr [RSP + 0xc0] CALL 0x0019cd40 ADD RAX,0x8 MOV qword ptr [RSP + 0x138],RAX JMP 0x001b2129 LAB_001b2105: MOV RAX,qword ptr [RSP + 0x128] LAB_001b210d: CALL RAX MOV qword ptr [RSP + 0xb8],RAX JMP 0x001b2119 LAB_001b2119: MOV RAX,qword ptr [RSP + 0xb8] MOV qword ptr [RSP + 0x138],RAX LAB_001b2129: MOV RAX,qword ptr [RSP + 0x138] MOV qword ptr [RSP + 0xb0],RAX MOV RSI,qword ptr [RSP + 0xb0] MOV RDI,qword ptr [RSP + 0xe0] CALL 0x001e0920 JMP 0x001b2150 LAB_001b2150: JMP 0x001b2152 LAB_001b2152: JMP 0x001b2154 LAB_001b2154: MOV RDI,qword ptr [RSP + 0xd8] ADD RDI,0x18 CALL 0x001d4b40 JMP 0x001b2167 LAB_001b2167: MOV RDI,qword ptr [RSP + 0x100] CALL 0x001d70a0 MOV byte ptr [RSP + 0xaf],AL JMP 0x001b217d LAB_001b217d: MOV AL,byte ptr [RSP + 0xaf] TEST AL,0x1 JNZ 0x001b218a JMP 0x001b2206 LAB_001b218a: MOV RAX,qword ptr [RSP + 0xf8] ADD RAX,0x18 MOV qword ptr [RSP + 0x98],RAX MOV RDI,qword ptr [RSP + 0x100] CALL 0x00187810 MOV qword ptr [RSP + 0xa0],RAX JMP 0x001b21b5 LAB_001b21b5: MOV RDI,qword ptr [RSP + 0xf8] CALL 0x00180180 MOV qword ptr [RSP + 0x90],RAX JMP 0x001b21cc LAB_001b21cc: MOV RDX,qword ptr [RSP + 0x90] MOV RSI,qword ptr [RSP + 0xa0] MOV RDI,qword ptr [RSP + 0x98] CALL 0x00283680 JMP 0x001b21eb LAB_001b21eb: JMP 0x001b2206 LAB_001b2206: MOV RDI,qword ptr [RSP + 0xd8] ADD RDI,0x20 CALL 0x001d4b40 JMP 0x001b2219 LAB_001b2219: MOV RDI,qword ptr [RSP + 0x100] CALL 0x00187990 MOV byte ptr [RSP + 0x8f],AL JMP 0x001b222f LAB_001b222f: MOV AL,byte ptr [RSP + 0x8f] TEST AL,0x1 JNZ 0x001b223c JMP 0x001b2293 LAB_001b223c: MOV RAX,qword ptr [RSP + 0xf8] ADD RAX,0x20 MOV qword ptr [RSP + 0x78],RAX MOV RDI,qword ptr [RSP + 0x100] CALL 0x001890d0 MOV qword ptr [RSP + 0x80],RAX JMP 0x001b2264 LAB_001b2264: MOV RDI,qword ptr [RSP + 0xf8] CALL 0x00180180 MOV qword ptr [RSP + 0x70],RAX JMP 0x001b2278 LAB_001b2278: MOV RDX,qword ptr [RSP + 0x70] MOV RSI,qword ptr [RSP + 0x80] MOV RDI,qword ptr [RSP + 0x78] CALL 0x00283680 JMP 0x001b2291 LAB_001b2291: JMP 0x001b2293 LAB_001b2293: MOV RDI,qword ptr [RSP + 0xd8] ADD RDI,0x28 CALL 0x001d4b40 JMP 0x001b22a6 LAB_001b22a6: MOV RDI,qword ptr [RSP + 0x100] CALL 0x00189100 MOV byte ptr [RSP + 0x6f],AL JMP 0x001b22b9 LAB_001b22b9: MOV AL,byte ptr [RSP + 0x6f] TEST AL,0x1 JNZ 0x001b22c3 JMP 0x001b2314 LAB_001b22c3: MOV RAX,qword ptr [RSP + 0xf8] ADD RAX,0x28 MOV qword ptr [RSP + 0x58],RAX MOV RDI,qword ptr [RSP + 0x100] CALL 0x00189150 MOV qword ptr [RSP + 0x60],RAX JMP 0x001b22e8 LAB_001b22e8: MOV RDI,qword ptr [RSP + 0xf8] CALL 0x00180180 MOV qword ptr [RSP + 0x50],RAX JMP 0x001b22fc LAB_001b22fc: MOV RDX,qword ptr [RSP + 0x50] MOV RSI,qword ptr [RSP + 0x60] MOV RDI,qword ptr [RSP + 0x58] CALL 0x00283680 JMP 0x001b2312 LAB_001b2312: JMP 0x001b2314 LAB_001b2314: MOV RDI,qword ptr [RSP + 0xd8] ADD RDI,0x30 CALL 0x001d4b40 JMP 0x001b2327 LAB_001b2327: MOV RDI,qword ptr [RSP + 0x100] CALL 0x001878e0 MOV byte ptr [RSP + 0x4f],AL JMP 0x001b233a LAB_001b233a: MOV AL,byte ptr [RSP + 0x4f] TEST AL,0x1 JNZ 0x001b2344 JMP 0x001b2395 LAB_001b2344: MOV RAX,qword ptr [RSP + 0xf8] ADD RAX,0x30 MOV qword ptr [RSP + 0x38],RAX MOV RDI,qword ptr [RSP + 0x100] CALL 0x00187960 MOV qword ptr [RSP + 0x40],RAX JMP 0x001b2369 LAB_001b2369: MOV RDI,qword ptr [RSP + 0xf8] CALL 0x00180180 MOV qword ptr [RSP + 0x30],RAX JMP 0x001b237d LAB_001b237d: MOV RDX,qword ptr [RSP + 0x30] MOV RSI,qword ptr [RSP + 0x40] MOV RDI,qword ptr [RSP + 0x38] CALL 0x00283680 JMP 0x001b2393 LAB_001b2393: JMP 0x001b2395 LAB_001b2395: MOV RDI,qword ptr [RSP + 0xd8] ADD RDI,0x38 CALL 0x001d4b40 JMP 0x001b23a8 LAB_001b23a8: MOV RDI,qword ptr [RSP + 0x100] CALL 0x00187840 MOV byte ptr [RSP + 0x2f],AL JMP 0x001b23bb LAB_001b23bb: MOV AL,byte ptr [RSP + 0x2f] TEST AL,0x1 JNZ 0x001b23c5 JMP 0x001b2416 LAB_001b23c5: MOV RAX,qword ptr [RSP + 0xf8] ADD RAX,0x38 MOV qword ptr [RSP + 0x18],RAX MOV RDI,qword ptr [RSP + 0x100] CALL 0x00187880 MOV qword ptr [RSP + 0x20],RAX JMP 0x001b23ea LAB_001b23ea: MOV RDI,qword ptr [RSP + 0xf8] CALL 0x00180180 MOV qword ptr [RSP + 0x10],RAX JMP 0x001b23fe LAB_001b23fe: MOV RDX,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RSP + 0x20] MOV RDI,qword ptr [RSP + 0x18] CALL 0x00283680 JMP 0x001b2414 LAB_001b2414: JMP 0x001b2416 LAB_001b2416: MOV RDI,qword ptr [RSP + 0x100] CALL 0x00187a20 MOV byte ptr [RSP + 0xf],AL JMP 0x001b2429 LAB_001b2429: MOV AL,byte ptr [RSP + 0xf] TEST AL,0x1 JNZ 0x001b2433 JMP 0x001b248b LAB_001b2433: MOV EDI,0x58 CALL 0x00113450 MOV qword ptr [RSP],RAX JMP 0x001b2443 LAB_001b2443: MOV RDI,qword ptr [RSP] MOV RAX,qword ptr [RSP + 0x100] MOV RSI,qword ptr [RAX + 0x40] LAB_001b2453: CALL 0x001c1db0 LAB_001b2458: JMP 0x001b245a LAB_001b245a: MOV RCX,qword ptr [RSP] MOV RAX,qword ptr [RSP + 0xf8] MOV qword ptr [RAX + 0x40],RCX JMP 0x001b248b LAB_001b248b: MOV RAX,qword ptr [RSP + 0xd8] MOV RDI,RAX ADD RDI,0x10 ADD RDI,0x38 MOV RSI,qword ptr [RSP + 0x100] ADD RSI,0x10 ADD RSI,0x38 MOV RDX,RAX ADD RDX,0x10 ADD RDX,0x48 ADD RAX,0x10 ADD RAX,0x38 SUB RDX,RAX ADD RDX,0x4 CALL 0x00113390 ADD RSP,0x158 RET
/* google::protobuf::FieldDescriptorProto::FieldDescriptorProto(google::protobuf::FieldDescriptorProto const&) */ void __thiscall google::protobuf::FieldDescriptorProto::FieldDescriptorProto (FieldDescriptorProto *this,FieldDescriptorProto *param_1) { byte bVar1; InternalMetadata *this_00; string *psVar2; Arena *pAVar3; FieldOptions *this_01; UnknownFieldSet *local_20; Message::Message((Message *)this); *(int ***)this = &PTR__FieldDescriptorProto_003780e0; *(int4 *)(this + 0x10) = *(int4 *)(param_1 + 0x10); memset((CachedSize *)(this + 0x14),0,4); internal::CachedSize::CachedSize((CachedSize *)(this + 0x14)); memset(this + 0x18,0,8); memset(this + 0x20,0,8); memset(this + 0x28,0,8); memset(this + 0x30,0,8); memset(this + 0x38,0,8); *(int8 *)(this + 0x40) = 0; *(int4 *)(this + 0x48) = 0; *(int4 *)(this + 0x4c) = 0; this[0x50] = (FieldDescriptorProto)0x0; *(int4 *)(this + 0x54) = 0; *(int4 *)(this + 0x58) = 0; this_00 = (InternalMetadata *)(param_1 + 8); if ((*(ulong *)this_00 & 1) != 0) { if ((*(ulong *)this_00 & 1) == 0) { /* try { // try from 001b210d to 001b243c has its CatchHandler @ 001b21ed */ local_20 = (UnknownFieldSet *)(*(code *)0x0)(); } else { local_20 = (UnknownFieldSet *) internal::InternalMetadata:: PtrValue<google::protobuf::internal::InternalMetadata::Container<google::protobuf::UnknownFieldSet>> (this_00); local_20 = (UnknownFieldSet *)((Container *)local_20 + 8); } internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet> ((InternalMetadata *)(this + 8),local_20); } internal::ArenaStringPtr::InitDefault((ArenaStringPtr *)(this + 0x18)); bVar1 = _internal_has_name(param_1); if ((bVar1 & 1) != 0) { psVar2 = (string *)_internal_name_abi_cxx11_(param_1); pAVar3 = (Arena *)MessageLite::GetArenaForAllocation((MessageLite *)this); internal::ArenaStringPtr::Set((ArenaStringPtr *)(this + 0x18),psVar2,pAVar3); } internal::ArenaStringPtr::InitDefault((ArenaStringPtr *)(this + 0x20)); bVar1 = _internal_has_extendee(param_1); if ((bVar1 & 1) != 0) { psVar2 = (string *)_internal_extendee_abi_cxx11_(param_1); pAVar3 = (Arena *)MessageLite::GetArenaForAllocation((MessageLite *)this); internal::ArenaStringPtr::Set((ArenaStringPtr *)(this + 0x20),psVar2,pAVar3); } internal::ArenaStringPtr::InitDefault((ArenaStringPtr *)(this + 0x28)); bVar1 = _internal_has_type_name(param_1); if ((bVar1 & 1) != 0) { psVar2 = (string *)_internal_type_name_abi_cxx11_(param_1); pAVar3 = (Arena *)MessageLite::GetArenaForAllocation((MessageLite *)this); internal::ArenaStringPtr::Set((ArenaStringPtr *)(this + 0x28),psVar2,pAVar3); } internal::ArenaStringPtr::InitDefault((ArenaStringPtr *)(this + 0x30)); bVar1 = _internal_has_default_value(param_1); if ((bVar1 & 1) != 0) { psVar2 = (string *)_internal_default_value_abi_cxx11_(param_1); pAVar3 = (Arena *)MessageLite::GetArenaForAllocation((MessageLite *)this); internal::ArenaStringPtr::Set((ArenaStringPtr *)(this + 0x30),psVar2,pAVar3); } internal::ArenaStringPtr::InitDefault((ArenaStringPtr *)(this + 0x38)); bVar1 = _internal_has_json_name(param_1); if ((bVar1 & 1) != 0) { psVar2 = (string *)_internal_json_name_abi_cxx11_(param_1); pAVar3 = (Arena *)MessageLite::GetArenaForAllocation((MessageLite *)this); internal::ArenaStringPtr::Set((ArenaStringPtr *)(this + 0x38),psVar2,pAVar3); } bVar1 = _internal_has_options(param_1); if ((bVar1 & 1) != 0) { this_01 = (FieldOptions *)operator_new(0x58); /* try { // try from 001b2453 to 001b2457 has its CatchHandler @ 001b246c */ FieldOptions::FieldOptions(this_01,*(FieldOptions **)(param_1 + 0x40)); *(FieldOptions **)(this + 0x40) = this_01; } memcpy(this + 0x48,param_1 + 0x48,0x14); return; }
65,299
test_free_store_result
eloqsql/libmariadb/unittest/libmariadb/result.c
static int test_free_store_result(MYSQL *mysql) { MYSQL_STMT *stmt; MYSQL_BIND my_bind[1]; char c2[5]; ulong bl1, l2; int rc, c1, bc1; char query[MAX_TEST_QUERY_LENGTH]; rc= mysql_query(mysql, "drop table if exists test_free_result"); check_mysql_rc(rc, mysql); rc= mysql_query(mysql, "create table test_free_result(c1 int primary key auto_increment)"); check_mysql_rc(rc, mysql); rc= mysql_query(mysql, "insert into test_free_result values(), (), ()"); check_mysql_rc(rc, mysql); strcpy(query, "select * from test_free_result"); stmt= mysql_stmt_init(mysql); FAIL_IF(!stmt, mysql_error(mysql)); rc= mysql_stmt_prepare(stmt, SL(query)); check_stmt_rc(rc, stmt); memset(my_bind, '\0', sizeof(my_bind)); my_bind[0].buffer_type= MYSQL_TYPE_LONG; my_bind[0].buffer= (void *)&bc1; my_bind[0].buffer_length= 0; my_bind[0].is_null= 0; my_bind[0].length= &bl1; rc= mysql_stmt_execute(stmt); check_stmt_rc(rc, stmt); rc= mysql_stmt_bind_result(stmt, my_bind); check_stmt_rc(rc, stmt); rc= mysql_stmt_store_result(stmt); check_stmt_rc(rc, stmt); rc= mysql_stmt_fetch(stmt); check_stmt_rc(rc, stmt); c2[0]= '\0'; l2= 0; my_bind[0].buffer_type= MYSQL_TYPE_STRING; my_bind[0].buffer= (void *)c2; my_bind[0].buffer_length= 7; my_bind[0].is_null= 0; my_bind[0].length= &l2; rc= mysql_stmt_fetch_column(stmt, my_bind, 0, 0); check_stmt_rc(rc, stmt); FAIL_UNLESS(strncmp(c2, "1", 1) == 0, "c2 != '1'"); FAIL_UNLESS(l2 == 1, "l2 != 1"); rc= mysql_stmt_fetch(stmt); check_stmt_rc(rc, stmt); c1= 0, l2= 0; my_bind[0].buffer_type= MYSQL_TYPE_LONG; my_bind[0].buffer= (void *)&c1; my_bind[0].buffer_length= 0; my_bind[0].is_null= 0; my_bind[0].length= &l2; rc= mysql_stmt_fetch_column(stmt, my_bind, 0, 0); check_stmt_rc(rc, stmt); FAIL_UNLESS(c1 == 2, "c1 != 2"); FAIL_UNLESS(l2 == 4, "l2 != 4"); rc= mysql_stmt_free_result(stmt); check_stmt_rc(rc, stmt); rc= mysql_query(mysql, "drop table test_free_result"); check_mysql_rc(rc, mysql); mysql_stmt_close(stmt); return OK; }
O3
c
test_free_store_result: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x1d8, %rsp # imm = 0x1D8 movq %rdi, %rbx movq %fs:0x28, %rax movq %rax, -0x20(%rbp) leaq 0x23730(%rip), %rsi # 0x38841 callq 0x1dee1 testl %eax, %eax je 0x15151 movl %eax, %r14d movq %rbx, %rdi callq 0x1ff5a movq %rax, %r15 movq %rbx, %rdi callq 0x1ff45 leaq 0x23016(%rip), %rdi # 0x3814d leaq 0x2363a(%rip), %r8 # 0x38778 movl %r14d, %esi movq %r15, %rdx movl %eax, %ecx movl $0xaf, %r9d jmp 0x151dd leaq 0x2370f(%rip), %rsi # 0x38867 movq %rbx, %rdi callq 0x1dee1 testl %eax, %eax je 0x15198 movl %eax, %r14d movq %rbx, %rdi callq 0x1ff5a movq %rax, %r15 movq %rbx, %rdi callq 0x1ff45 leaq 0x22fcc(%rip), %rdi # 0x3814d leaq 0x235f0(%rip), %r8 # 0x38778 movl %r14d, %esi movq %r15, %rdx movl %eax, %ecx movl $0xb2, %r9d jmp 0x151dd leaq 0x23709(%rip), %rsi # 0x388a8 movq %rbx, %rdi callq 0x1dee1 testl %eax, %eax je 0x1520a movl %eax, %r14d movq %rbx, %rdi callq 0x1ff5a movq %rax, %r15 movq %rbx, %rdi callq 0x1ff45 leaq 0x22f85(%rip), %rdi # 0x3814d leaq 0x235a9(%rip), %r8 # 0x38778 movl %r14d, %esi movq %r15, %rdx movl %eax, %ecx movl $0xb5, %r9d xorl %eax, %eax callq 0x187d7 movl $0x1, %eax movq %fs:0x28, %rcx cmpq -0x20(%rbp), %rcx jne 0x15564 addq $0x1d8, %rsp # imm = 0x1D8 popq %rbx popq %r14 popq %r15 popq %rbp retq movups 0x236d4(%rip), %xmm0 # 0x388e5 movups %xmm0, -0x151(%rbp) movups 0x236b7(%rip), %xmm0 # 0x388d6 movaps %xmm0, -0x160(%rbp) movq %rbx, %rdi callq 0x245a0 testq %rax, %rax je 0x1527a movq %rax, %r14 leaq -0x160(%rbp), %r15 movq %r15, %rdi callq 0x131c0 movq %r14, %rdi movq %r15, %rsi movq %rax, %rdx callq 0x24964 testl %eax, %eax je 0x1529d movq %r14, %rdi callq 0x24040 leaq 0x22da2(%rip), %rdi # 0x38008 leaq 0x2350b(%rip), %rdx # 0x38778 movq %rax, %rsi movl $0xbb, %ecx jmp 0x15494 movq %rbx, %rdi callq 0x1ff5a leaq 0x22d7f(%rip), %rdi # 0x38008 leaq 0x234e8(%rip), %rdx # 0x38778 movq %rax, %rsi movl $0xb9, %ecx jmp 0x15494 xorps %xmm0, %xmm0 movaps %xmm0, -0x190(%rbp) movaps %xmm0, -0x1e0(%rbp) movaps %xmm0, -0x1a0(%rbp) movaps %xmm0, -0x1b0(%rbp) movaps %xmm0, -0x1c0(%rbp) movaps %xmm0, -0x1d0(%rbp) movl $0x3, -0x190(%rbp) leaq -0x170(%rbp), %rax movq %rax, -0x1e0(%rbp) movq $0x0, -0x1e8(%rbp) leaq -0x178(%rbp), %rax movq %rax, -0x1f0(%rbp) movq %r14, %rdi callq 0x25535 testl %eax, %eax je 0x1532a movq %r14, %rdi callq 0x24040 leaq 0x22cf2(%rip), %rdi # 0x38008 leaq 0x2345b(%rip), %rdx # 0x38778 movq %rax, %rsi movl $0xc5, %ecx jmp 0x15494 leaq -0x1f0(%rbp), %rsi movq %r14, %rdi callq 0x23d08 testb %al, %al je 0x15360 movq %r14, %rdi callq 0x24040 leaq 0x22cbc(%rip), %rdi # 0x38008 leaq 0x23425(%rip), %rdx # 0x38778 movq %rax, %rsi movl $0xc8, %ecx jmp 0x15494 movq %r14, %rdi callq 0x24c0e testl %eax, %eax je 0x1538f movq %r14, %rdi callq 0x24040 leaq 0x22c8d(%rip), %rdi # 0x38008 leaq 0x233f6(%rip), %rdx # 0x38778 movq %rax, %rsi movl $0xcb, %ecx jmp 0x15494 movq %r14, %rdi callq 0x2405b testl %eax, %eax je 0x153be movq %r14, %rdi callq 0x24040 leaq 0x22c5e(%rip), %rdi # 0x38008 leaq 0x233c7(%rip), %rdx # 0x38778 movq %rax, %rsi movl $0xce, %ecx jmp 0x15494 leaq -0x25(%rbp), %rax movb $0x0, (%rax) xorl %ecx, %ecx leaq -0x168(%rbp), %r15 movq %rcx, (%r15) leaq -0x1f0(%rbp), %rsi movl $0xfe, 0x60(%rsi) movq %rax, 0x10(%rsi) movq $0x7, 0x40(%rsi) movq %rcx, 0x8(%rsi) movq %r15, (%rsi) movq %r14, %rdi xorl %edx, %edx xorl %ecx, %ecx callq 0x241b2 testl %eax, %eax je 0x15422 movq %r14, %rdi callq 0x24040 leaq 0x22bf7(%rip), %rdi # 0x38008 leaq 0x23360(%rip), %rdx # 0x38778 movq %rax, %rsi movl $0xd8, %ecx jmp 0x15494 cmpb $0x31, -0x25(%rbp) jne 0x1545e cmpq $0x1, -0x168(%rbp) jne 0x1547a movq %r14, %rdi callq 0x2405b testl %eax, %eax je 0x154a0 movq %r14, %rdi callq 0x24040 leaq 0x22bbb(%rip), %rdi # 0x38008 leaq 0x23324(%rip), %rdx # 0x38778 movq %rax, %rsi movl $0xdd, %ecx jmp 0x15494 leaq 0x22ba3(%rip), %rdi # 0x38008 leaq 0x23489(%rip), %rsi # 0x388f5 leaq 0x23305(%rip), %rdx # 0x38778 movl $0xd9, %ecx jmp 0x15494 leaq 0x22b87(%rip), %rdi # 0x38008 leaq 0x23477(%rip), %rsi # 0x388ff leaq 0x232e9(%rip), %rdx # 0x38778 movl $0xda, %ecx xorl %eax, %eax callq 0x187d7 jmp 0x151e4 leaq -0x16c(%rbp), %rax movl $0x0, (%rax) xorl %ecx, %ecx movq %rcx, -0x168(%rbp) leaq -0x1f0(%rbp), %rsi movl $0x3, 0x60(%rsi) movq %rax, 0x10(%rsi) movq %rcx, 0x40(%rsi) movq %rcx, 0x8(%rsi) movq %r15, (%rsi) movq %r14, %rdi xorl %edx, %edx xorl %ecx, %ecx callq 0x241b2 testl %eax, %eax je 0x15503 movq %r14, %rdi callq 0x24040 leaq 0x22b16(%rip), %rdi # 0x38008 leaq 0x2327f(%rip), %rdx # 0x38778 movq %rax, %rsi movl $0xe7, %ecx jmp 0x15494 cmpl $0x2, -0x16c(%rbp) jne 0x15545 cmpq $0x4, -0x168(%rbp) jne 0x15569 movq %r14, %rdi callq 0x242f0 testb %al, %al je 0x15588 movq %r14, %rdi callq 0x24040 leaq 0x22ad7(%rip), %rdi # 0x38008 leaq 0x23240(%rip), %rdx # 0x38778 movq %rax, %rsi movl $0xec, %ecx jmp 0x15494 leaq 0x22abc(%rip), %rdi # 0x38008 leaq 0x233b4(%rip), %rsi # 0x38907 leaq 0x2321e(%rip), %rdx # 0x38778 movl $0xe8, %ecx jmp 0x15494 callq 0x13500 leaq 0x22a98(%rip), %rdi # 0x38008 leaq 0x23398(%rip), %rsi # 0x3890f leaq 0x231fa(%rip), %rdx # 0x38778 movl $0xe9, %ecx jmp 0x15494 leaq 0x23388(%rip), %rsi # 0x38917 movq %rbx, %rdi callq 0x1dee1 testl %eax, %eax je 0x155d2 movl %eax, %r15d movq %rbx, %rdi callq 0x1ff5a movq %rax, %r14 movq %rbx, %rdi callq 0x1ff45 leaq 0x22b95(%rip), %rdi # 0x3814d leaq 0x231b9(%rip), %r8 # 0x38778 movl %r15d, %esi movq %r14, %rdx movl %eax, %ecx movl $0xef, %r9d jmp 0x151dd movq %r14, %rdi callq 0x23fb1 xorl %eax, %eax jmp 0x151e9
test_free_store_result: push rbp mov rbp, rsp push r15 push r14 push rbx sub rsp, 1D8h mov rbx, rdi mov rax, fs:28h mov [rbp+var_20], rax lea rsi, aDropTableIfExi; "drop table if exists test_free_result" call mysql_query test eax, eax jz short loc_15151 mov r14d, eax mov rdi, rbx call mysql_error mov r15, rax mov rdi, rbx call mysql_errno lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d" lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov esi, r14d mov rdx, r15 mov ecx, eax mov r9d, 0AFh jmp loc_151DD loc_15151: lea rsi, aCreateTableTes; "create table test_free_result(c1 int pr"... mov rdi, rbx call mysql_query test eax, eax jz short loc_15198 mov r14d, eax mov rdi, rbx call mysql_error mov r15, rax mov rdi, rbx call mysql_errno lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d" lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov esi, r14d mov rdx, r15 mov ecx, eax mov r9d, 0B2h jmp short loc_151DD loc_15198: lea rsi, aInsertIntoTest; "insert into test_free_result values(), "... mov rdi, rbx call mysql_query test eax, eax jz short loc_1520A mov r14d, eax mov rdi, rbx call mysql_error mov r15, rax mov rdi, rbx call mysql_errno lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d" lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov esi, r14d mov rdx, r15 mov ecx, eax mov r9d, 0B5h loc_151DD: xor eax, eax call diag loc_151E4: mov eax, 1 loc_151E9: mov rcx, fs:28h cmp rcx, [rbp+var_20] jnz loc_15564 add rsp, 1D8h pop rbx pop r14 pop r15 pop rbp retn loc_1520A: movups xmm0, cs:xmmword_388D6+0Fh movups [rbp+var_151], xmm0 movups xmm0, cs:xmmword_388D6 movaps xmmword ptr [rbp-160h], xmm0 mov rdi, rbx call mysql_stmt_init test rax, rax jz short loc_1527A mov r14, rax lea r15, [rbp+var_160] mov rdi, r15 call _strlen mov rdi, r14 mov rsi, r15 mov rdx, rax call mysql_stmt_prepare test eax, eax jz short loc_1529D mov rdi, r14 call mysql_stmt_error lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov rsi, rax mov ecx, 0BBh jmp loc_15494 loc_1527A: mov rdi, rbx call mysql_error lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov rsi, rax mov ecx, 0B9h jmp loc_15494 loc_1529D: xorps xmm0, xmm0 movaps [rbp+var_190], xmm0 movaps [rbp+var_1E0], xmm0 movaps [rbp+var_1A0], xmm0 movaps [rbp+var_1B0], xmm0 movaps [rbp+var_1C0], xmm0 movaps [rbp+var_1D0], xmm0 mov dword ptr [rbp+var_190], 3 lea rax, [rbp+var_170] mov qword ptr [rbp+var_1E0], rax mov [rbp+var_1E8], 0 lea rax, [rbp+var_178] mov [rbp+var_1F0], rax mov rdi, r14 call mysql_stmt_execute test eax, eax jz short loc_1532A mov rdi, r14 call mysql_stmt_error lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov rsi, rax mov ecx, 0C5h jmp loc_15494 loc_1532A: lea rsi, [rbp+var_1F0] mov rdi, r14 call mysql_stmt_bind_result test al, al jz short loc_15360 mov rdi, r14 call mysql_stmt_error lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov rsi, rax mov ecx, 0C8h jmp loc_15494 loc_15360: mov rdi, r14 call mysql_stmt_store_result test eax, eax jz short loc_1538F mov rdi, r14 call mysql_stmt_error lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov rsi, rax mov ecx, 0CBh jmp loc_15494 loc_1538F: mov rdi, r14 call mysql_stmt_fetch test eax, eax jz short loc_153BE mov rdi, r14 call mysql_stmt_error lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov rsi, rax mov ecx, 0CEh jmp loc_15494 loc_153BE: lea rax, [rbp+var_25] mov byte ptr [rax], 0 xor ecx, ecx lea r15, [rbp+var_168] mov [r15], rcx lea rsi, [rbp+var_1F0] mov dword ptr [rsi+60h], 0FEh mov [rsi+10h], rax mov qword ptr [rsi+40h], 7 mov [rsi+8], rcx mov [rsi], r15 mov rdi, r14 xor edx, edx xor ecx, ecx call mysql_stmt_fetch_column test eax, eax jz short loc_15422 mov rdi, r14 call mysql_stmt_error lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov rsi, rax mov ecx, 0D8h jmp short loc_15494 loc_15422: cmp [rbp+var_25], 31h ; '1' jnz short loc_1545E cmp [rbp+var_168], 1 jnz short loc_1547A mov rdi, r14 call mysql_stmt_fetch test eax, eax jz short loc_154A0 mov rdi, r14 call mysql_stmt_error lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov rsi, rax mov ecx, 0DDh jmp short loc_15494 loc_1545E: lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rsi, aC21; "c2 != '1'" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov ecx, 0D9h jmp short loc_15494 loc_1547A: lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rsi, aL21; "l2 != 1" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov ecx, 0DAh loc_15494: xor eax, eax call diag jmp loc_151E4 loc_154A0: lea rax, [rbp+var_16C] mov dword ptr [rax], 0 xor ecx, ecx mov [rbp+var_168], rcx lea rsi, [rbp+var_1F0] mov dword ptr [rsi+60h], 3 mov [rsi+10h], rax mov [rsi+40h], rcx mov [rsi+8], rcx mov [rsi], r15 mov rdi, r14 xor edx, edx xor ecx, ecx call mysql_stmt_fetch_column test eax, eax jz short loc_15503 mov rdi, r14 call mysql_stmt_error lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov rsi, rax mov ecx, 0E7h jmp short loc_15494 loc_15503: cmp [rbp+var_16C], 2 jnz short loc_15545 cmp [rbp+var_168], 4 jnz short loc_15569 mov rdi, r14 call mysql_stmt_free_result test al, al jz short loc_15588 mov rdi, r14 call mysql_stmt_error lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov rsi, rax mov ecx, 0ECh jmp loc_15494 loc_15545: lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rsi, aC12; "c1 != 2" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov ecx, 0E8h jmp loc_15494 loc_15564: call ___stack_chk_fail loc_15569: lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rsi, aL24; "l2 != 4" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov ecx, 0E9h jmp loc_15494 loc_15588: lea rsi, aDropTableTestF; "drop table test_free_result" mov rdi, rbx call mysql_query test eax, eax jz short loc_155D2 mov r15d, eax mov rdi, rbx call mysql_error mov r14, rax mov rdi, rbx call mysql_errno lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d" lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov esi, r15d mov rdx, r14 mov ecx, eax mov r9d, 0EFh jmp loc_151DD loc_155D2: mov rdi, r14 call mysql_stmt_close xor eax, eax jmp loc_151E9
long long test_free_store_result(long long a1) { int v1; // eax int v2; // r14d int v3; // r15d int v4; // eax const char *v5; // rdi const char *v6; // r8 const char *v7; // rsi const char *v8; // rdx int v9; // ecx int v10; // r9d int v11; // eax int v12; // r14d int v13; // r15d int v14; // eax int v15; // eax int v16; // r14d int v17; // r15d int v18; // eax long long v20; // rax long long v21; // r14 long long v22; // rax int v23; // eax int v24; // eax long long v25; // rdx long long v26; // rcx long long v27; // r8 long long v28; // r9 int v29; // eax long long v30; // rdx long long v31; // rcx long long v32; // r8 long long v33; // r9 int v34; // eax int v35; // eax long long v36; // r8 long long v37; // r9 int v38; // eax int v39; // eax long long v40; // r8 long long v41; // r9 int v42; // eax int v43; // eax int v44; // eax int v45; // eax int v46; // r15d int v47; // r14d int v48; // eax long long *v49; // [rsp+0h] [rbp-1F0h] BYREF long long v50; // [rsp+8h] [rbp-1E8h] __int128 v51; // [rsp+10h] [rbp-1E0h] __int128 v52; // [rsp+20h] [rbp-1D0h] __int128 v53; // [rsp+30h] [rbp-1C0h] __int128 v54; // [rsp+40h] [rbp-1B0h] __int128 v55; // [rsp+50h] [rbp-1A0h] __int128 v56; // [rsp+60h] [rbp-190h] char v57; // [rsp+78h] [rbp-178h] BYREF char v58; // [rsp+80h] [rbp-170h] BYREF int v59; // [rsp+84h] [rbp-16Ch] BYREF long long v60; // [rsp+88h] [rbp-168h] BYREF char v61[315]; // [rsp+90h] [rbp-160h] BYREF char v62; // [rsp+1CBh] [rbp-25h] BYREF unsigned long long v63; // [rsp+1D0h] [rbp-20h] v63 = __readfsqword(0x28u); v1 = mysql_query(a1, "drop table if exists test_free_result"); if ( v1 ) { v2 = v1; v3 = mysql_error(a1); v4 = mysql_errno(a1); v5 = "Error (%d): %s (%d) in %s line %d"; v6 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/result.c"; LODWORD(v7) = v2; LODWORD(v8) = v3; v9 = v4; v10 = 175; LABEL_7: diag((_DWORD)v5, (_DWORD)v7, (_DWORD)v8, v9, (_DWORD)v6, v10); return 1LL; } v11 = mysql_query(a1, "create table test_free_result(c1 int primary key auto_increment)"); if ( v11 ) { v12 = v11; v13 = mysql_error(a1); v14 = mysql_errno(a1); v5 = "Error (%d): %s (%d) in %s line %d"; v6 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/result.c"; LODWORD(v7) = v12; LODWORD(v8) = v13; v9 = v14; v10 = 178; goto LABEL_7; } v15 = mysql_query(a1, "insert into test_free_result values(), (), ()"); if ( v15 ) { v16 = v15; v17 = mysql_error(a1); v18 = mysql_errno(a1); v5 = "Error (%d): %s (%d) in %s line %d"; v6 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/result.c"; LODWORD(v7) = v16; LODWORD(v8) = v17; v9 = v18; v10 = 181; goto LABEL_7; } strcpy(v61, "select * from test_free_result"); v20 = mysql_stmt_init(a1); if ( !v20 ) { v24 = mysql_error(a1); v5 = "Error: %s (%s: %d)"; v8 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/result.c"; LODWORD(v7) = v24; v9 = 185; goto LABEL_7; } v21 = v20; v22 = strlen(v61); if ( (unsigned int)mysql_stmt_prepare(v21, v61, v22) ) { v23 = mysql_stmt_error(v21); v5 = "Error: %s (%s: %d)"; v8 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/result.c"; LODWORD(v7) = v23; v9 = 187; goto LABEL_7; } v56 = 0LL; v55 = 0LL; v54 = 0LL; v53 = 0LL; v52 = 0LL; LODWORD(v56) = 3; v51 = (unsigned long long)&v58; v50 = 0LL; v49 = (long long *)&v57; if ( (unsigned int)mysql_stmt_execute(v21) ) { v29 = mysql_stmt_error(v21); v5 = "Error: %s (%s: %d)"; v8 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/result.c"; LODWORD(v7) = v29; v9 = 197; goto LABEL_7; } if ( (unsigned __int8)((long long ( *)(long long, long long **, long long, long long, long long, long long))mysql_stmt_bind_result)( v21, &v49, v25, v26, v27, v28) ) { v34 = mysql_stmt_error(v21); v5 = "Error: %s (%s: %d)"; v8 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/result.c"; LODWORD(v7) = v34; v9 = 200; goto LABEL_7; } if ( (unsigned int)mysql_stmt_store_result( v21, &v49, v30, v31, v32, v33, v49, v50, v51, *((_QWORD *)&v51 + 1), v52, *((_QWORD *)&v52 + 1), v53, *((_QWORD *)&v53 + 1), v54, *((_QWORD *)&v54 + 1), v55, *((_QWORD *)&v55 + 1), v56, *((_QWORD *)&v56 + 1)) ) { v35 = mysql_stmt_error(v21); v5 = "Error: %s (%s: %d)"; v8 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/result.c"; LODWORD(v7) = v35; v9 = 203; goto LABEL_7; } if ( (unsigned int)mysql_stmt_fetch(v21) ) { v38 = mysql_stmt_error(v21); v5 = "Error: %s (%s: %d)"; v8 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/result.c"; LODWORD(v7) = v38; v9 = 206; goto LABEL_7; } v62 = 0; v60 = 0LL; LODWORD(v56) = 254; *(_QWORD *)&v51 = &v62; *(_QWORD *)&v54 = 7LL; v50 = 0LL; v49 = &v60; if ( (unsigned int)((long long ( *)(long long, long long **, _QWORD, _QWORD, long long, long long))mysql_stmt_fetch_column)( v21, &v49, 0LL, 0LL, v36, v37) ) { v39 = mysql_stmt_error(v21); v5 = "Error: %s (%s: %d)"; v8 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/result.c"; LODWORD(v7) = v39; v9 = 216; goto LABEL_7; } if ( v62 != 49 ) { v5 = "Error: %s (%s: %d)"; v7 = "c2 != '1'"; v8 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/result.c"; v9 = 217; goto LABEL_7; } if ( v60 != 1 ) { v5 = "Error: %s (%s: %d)"; v7 = "l2 != 1"; v8 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/result.c"; v9 = 218; goto LABEL_7; } if ( (unsigned int)mysql_stmt_fetch(v21) ) { v42 = mysql_stmt_error(v21); v5 = "Error: %s (%s: %d)"; v8 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/result.c"; LODWORD(v7) = v42; v9 = 221; goto LABEL_7; } v59 = 0; v60 = 0LL; LODWORD(v56) = 3; *(_QWORD *)&v51 = &v59; *(_QWORD *)&v54 = 0LL; v50 = 0LL; v49 = &v60; if ( (unsigned int)((long long ( *)(long long, long long **, _QWORD, _QWORD, long long, long long))mysql_stmt_fetch_column)( v21, &v49, 0LL, 0LL, v40, v41) ) { v43 = mysql_stmt_error(v21); v5 = "Error: %s (%s: %d)"; v8 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/result.c"; LODWORD(v7) = v43; v9 = 231; goto LABEL_7; } if ( v59 != 2 ) { v5 = "Error: %s (%s: %d)"; v7 = "c1 != 2"; v8 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/result.c"; v9 = 232; goto LABEL_7; } if ( v60 != 4 ) { v5 = "Error: %s (%s: %d)"; v7 = "l2 != 4"; v8 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/result.c"; v9 = 233; goto LABEL_7; } if ( (unsigned __int8)mysql_stmt_free_result(v21) ) { v44 = mysql_stmt_error(v21); v5 = "Error: %s (%s: %d)"; v8 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/result.c"; LODWORD(v7) = v44; v9 = 236; goto LABEL_7; } v45 = mysql_query(a1, "drop table test_free_result"); if ( v45 ) { v46 = v45; v47 = mysql_error(a1); v48 = mysql_errno(a1); v5 = "Error (%d): %s (%d) in %s line %d"; v6 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/result.c"; LODWORD(v7) = v46; LODWORD(v8) = v47; v9 = v48; v10 = 239; goto LABEL_7; } mysql_stmt_close(v21); return 0LL; }
test_free_store_result: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x1d8 MOV RBX,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x20],RAX LEA RSI,[0x138841] CALL 0x0011dee1 TEST EAX,EAX JZ 0x00115151 MOV R14D,EAX MOV RDI,RBX CALL 0x0011ff5a MOV R15,RAX MOV RDI,RBX CALL 0x0011ff45 LEA RDI,[0x13814d] LEA R8,[0x138778] MOV ESI,R14D MOV RDX,R15 MOV ECX,EAX MOV R9D,0xaf JMP 0x001151dd LAB_00115151: LEA RSI,[0x138867] MOV RDI,RBX CALL 0x0011dee1 TEST EAX,EAX JZ 0x00115198 MOV R14D,EAX MOV RDI,RBX CALL 0x0011ff5a MOV R15,RAX MOV RDI,RBX CALL 0x0011ff45 LEA RDI,[0x13814d] LEA R8,[0x138778] MOV ESI,R14D MOV RDX,R15 MOV ECX,EAX MOV R9D,0xb2 JMP 0x001151dd LAB_00115198: LEA RSI,[0x1388a8] MOV RDI,RBX CALL 0x0011dee1 TEST EAX,EAX JZ 0x0011520a MOV R14D,EAX MOV RDI,RBX CALL 0x0011ff5a MOV R15,RAX MOV RDI,RBX CALL 0x0011ff45 LEA RDI,[0x13814d] LEA R8,[0x138778] MOV ESI,R14D MOV RDX,R15 MOV ECX,EAX MOV R9D,0xb5 LAB_001151dd: XOR EAX,EAX CALL 0x001187d7 LAB_001151e4: MOV EAX,0x1 LAB_001151e9: MOV RCX,qword ptr FS:[0x28] CMP RCX,qword ptr [RBP + -0x20] JNZ 0x00115564 ADD RSP,0x1d8 POP RBX POP R14 POP R15 POP RBP RET LAB_0011520a: MOVUPS XMM0,xmmword ptr [0x001388e5] MOVUPS xmmword ptr [RBP + -0x151],XMM0 MOVUPS XMM0,xmmword ptr [0x001388d6] MOVAPS xmmword ptr [RBP + -0x160],XMM0 MOV RDI,RBX CALL 0x001245a0 TEST RAX,RAX JZ 0x0011527a MOV R14,RAX LEA R15,[RBP + -0x160] MOV RDI,R15 CALL 0x001131c0 MOV RDI,R14 MOV RSI,R15 MOV RDX,RAX CALL 0x00124964 TEST EAX,EAX JZ 0x0011529d MOV RDI,R14 CALL 0x00124040 LEA RDI,[0x138008] LEA RDX,[0x138778] MOV RSI,RAX MOV ECX,0xbb JMP 0x00115494 LAB_0011527a: MOV RDI,RBX CALL 0x0011ff5a LEA RDI,[0x138008] LEA RDX,[0x138778] MOV RSI,RAX MOV ECX,0xb9 JMP 0x00115494 LAB_0011529d: XORPS XMM0,XMM0 MOVAPS xmmword ptr [RBP + -0x190],XMM0 MOVAPS xmmword ptr [RBP + -0x1e0],XMM0 MOVAPS xmmword ptr [RBP + -0x1a0],XMM0 MOVAPS xmmword ptr [RBP + -0x1b0],XMM0 MOVAPS xmmword ptr [RBP + -0x1c0],XMM0 MOVAPS xmmword ptr [RBP + -0x1d0],XMM0 MOV dword ptr [RBP + -0x190],0x3 LEA RAX,[RBP + -0x170] MOV qword ptr [RBP + -0x1e0],RAX MOV qword ptr [RBP + -0x1e8],0x0 LEA RAX,[RBP + -0x178] MOV qword ptr [RBP + -0x1f0],RAX MOV RDI,R14 CALL 0x00125535 TEST EAX,EAX JZ 0x0011532a MOV RDI,R14 CALL 0x00124040 LEA RDI,[0x138008] LEA RDX,[0x138778] MOV RSI,RAX MOV ECX,0xc5 JMP 0x00115494 LAB_0011532a: LEA RSI,[RBP + -0x1f0] MOV RDI,R14 CALL 0x00123d08 TEST AL,AL JZ 0x00115360 MOV RDI,R14 CALL 0x00124040 LEA RDI,[0x138008] LEA RDX,[0x138778] MOV RSI,RAX MOV ECX,0xc8 JMP 0x00115494 LAB_00115360: MOV RDI,R14 CALL 0x00124c0e TEST EAX,EAX JZ 0x0011538f MOV RDI,R14 CALL 0x00124040 LEA RDI,[0x138008] LEA RDX,[0x138778] MOV RSI,RAX MOV ECX,0xcb JMP 0x00115494 LAB_0011538f: MOV RDI,R14 CALL 0x0012405b TEST EAX,EAX JZ 0x001153be MOV RDI,R14 CALL 0x00124040 LEA RDI,[0x138008] LEA RDX,[0x138778] MOV RSI,RAX MOV ECX,0xce JMP 0x00115494 LAB_001153be: LEA RAX,[RBP + -0x25] MOV byte ptr [RAX],0x0 XOR ECX,ECX LEA R15,[RBP + -0x168] MOV qword ptr [R15],RCX LEA RSI,[RBP + -0x1f0] MOV dword ptr [RSI + 0x60],0xfe MOV qword ptr [RSI + 0x10],RAX MOV qword ptr [RSI + 0x40],0x7 MOV qword ptr [RSI + 0x8],RCX MOV qword ptr [RSI],R15 MOV RDI,R14 XOR EDX,EDX XOR ECX,ECX CALL 0x001241b2 TEST EAX,EAX JZ 0x00115422 MOV RDI,R14 CALL 0x00124040 LEA RDI,[0x138008] LEA RDX,[0x138778] MOV RSI,RAX MOV ECX,0xd8 JMP 0x00115494 LAB_00115422: CMP byte ptr [RBP + -0x25],0x31 JNZ 0x0011545e CMP qword ptr [RBP + -0x168],0x1 JNZ 0x0011547a MOV RDI,R14 CALL 0x0012405b TEST EAX,EAX JZ 0x001154a0 MOV RDI,R14 CALL 0x00124040 LEA RDI,[0x138008] LEA RDX,[0x138778] MOV RSI,RAX MOV ECX,0xdd JMP 0x00115494 LAB_0011545e: LEA RDI,[0x138008] LEA RSI,[0x1388f5] LEA RDX,[0x138778] MOV ECX,0xd9 JMP 0x00115494 LAB_0011547a: LEA RDI,[0x138008] LEA RSI,[0x1388ff] LEA RDX,[0x138778] MOV ECX,0xda LAB_00115494: XOR EAX,EAX CALL 0x001187d7 JMP 0x001151e4 LAB_001154a0: LEA RAX,[RBP + -0x16c] MOV dword ptr [RAX],0x0 XOR ECX,ECX MOV qword ptr [RBP + -0x168],RCX LEA RSI,[RBP + -0x1f0] MOV dword ptr [RSI + 0x60],0x3 MOV qword ptr [RSI + 0x10],RAX MOV qword ptr [RSI + 0x40],RCX MOV qword ptr [RSI + 0x8],RCX MOV qword ptr [RSI],R15 MOV RDI,R14 XOR EDX,EDX XOR ECX,ECX CALL 0x001241b2 TEST EAX,EAX JZ 0x00115503 MOV RDI,R14 CALL 0x00124040 LEA RDI,[0x138008] LEA RDX,[0x138778] MOV RSI,RAX MOV ECX,0xe7 JMP 0x00115494 LAB_00115503: CMP dword ptr [RBP + -0x16c],0x2 JNZ 0x00115545 CMP qword ptr [RBP + -0x168],0x4 JNZ 0x00115569 MOV RDI,R14 CALL 0x001242f0 TEST AL,AL JZ 0x00115588 MOV RDI,R14 CALL 0x00124040 LEA RDI,[0x138008] LEA RDX,[0x138778] MOV RSI,RAX MOV ECX,0xec JMP 0x00115494 LAB_00115545: LEA RDI,[0x138008] LEA RSI,[0x138907] LEA RDX,[0x138778] MOV ECX,0xe8 JMP 0x00115494 LAB_00115564: CALL 0x00113500 LAB_00115569: LEA RDI,[0x138008] LEA RSI,[0x13890f] LEA RDX,[0x138778] MOV ECX,0xe9 JMP 0x00115494 LAB_00115588: LEA RSI,[0x138917] MOV RDI,RBX CALL 0x0011dee1 TEST EAX,EAX JZ 0x001155d2 MOV R15D,EAX MOV RDI,RBX CALL 0x0011ff5a MOV R14,RAX MOV RDI,RBX CALL 0x0011ff45 LEA RDI,[0x13814d] LEA R8,[0x138778] MOV ESI,R15D MOV RDX,R14 MOV ECX,EAX MOV R9D,0xef JMP 0x001151dd LAB_001155d2: MOV RDI,R14 CALL 0x00123fb1 XOR EAX,EAX JMP 0x001151e9
int8 test_free_store_result(int8 param_1) { char cVar1; int iVar2; int4 uVar3; int8 uVar4; long lVar5; size_t sVar6; char *pcVar7; int8 uVar8; long in_FS_OFFSET; long *local_1f8; int8 local_1f0; int *local_1e8; int8 uStack_1e0; int8 local_1d8; int8 uStack_1d0; int8 local_1c8; int8 uStack_1c0; int8 local_1b8; int8 uStack_1b0; int8 local_1a8; int8 uStack_1a0; int8 local_198; int8 uStack_190; long local_180; int local_178; int local_174; long local_170; char local_168 [4]; char acStack_164 [4]; char acStack_160 [4]; char acStack_15c [4]; char acStack_158 [7]; char acStack_151 [292]; char local_2d [5]; long local_28; local_28 = *(long *)(in_FS_OFFSET + 0x28); iVar2 = mysql_query(param_1,"drop table if exists test_free_result"); if (iVar2 == 0) { iVar2 = mysql_query(param_1,"create table test_free_result(c1 int primary key auto_increment)"); if (iVar2 != 0) { uVar4 = mysql_error(param_1); uVar3 = mysql_errno(param_1); uVar8 = 0xb2; goto LAB_001151dd; } iVar2 = mysql_query(param_1,"insert into test_free_result values(), (), ()"); if (iVar2 != 0) { uVar4 = mysql_error(param_1); uVar3 = mysql_errno(param_1); uVar8 = 0xb5; goto LAB_001151dd; } acStack_158[0] = s_select___from_test_free_result_001388d6[0x10]; acStack_158[1] = s_select___from_test_free_result_001388d6[0x11]; acStack_158[2] = s_select___from_test_free_result_001388d6[0x12]; acStack_158[3] = s_select___from_test_free_result_001388d6[0x13]; acStack_158[4] = s_select___from_test_free_result_001388d6[0x14]; acStack_158[5] = s_select___from_test_free_result_001388d6[0x15]; acStack_158[6] = s_select___from_test_free_result_001388d6[0x16]; acStack_151[0] = s_select___from_test_free_result_001388d6[0x17]; acStack_151[1] = s_select___from_test_free_result_001388d6[0x18]; acStack_151[2] = s_select___from_test_free_result_001388d6[0x19]; acStack_151[3] = s_select___from_test_free_result_001388d6[0x1a]; acStack_151[4] = s_select___from_test_free_result_001388d6[0x1b]; acStack_151[5] = s_select___from_test_free_result_001388d6[0x1c]; acStack_151[6] = s_select___from_test_free_result_001388d6[0x1d]; acStack_151[7] = s_select___from_test_free_result_001388d6[0x1e]; local_168[0] = s_select___from_test_free_result_001388d6[0]; local_168[1] = s_select___from_test_free_result_001388d6[1]; local_168[2] = s_select___from_test_free_result_001388d6[2]; local_168[3] = s_select___from_test_free_result_001388d6[3]; acStack_164[0] = s_select___from_test_free_result_001388d6[4]; acStack_164[1] = s_select___from_test_free_result_001388d6[5]; acStack_164[2] = s_select___from_test_free_result_001388d6[6]; acStack_164[3] = s_select___from_test_free_result_001388d6[7]; acStack_160[0] = s_select___from_test_free_result_001388d6[8]; acStack_160[1] = s_select___from_test_free_result_001388d6[9]; acStack_160[2] = s_select___from_test_free_result_001388d6[10]; acStack_160[3] = s_select___from_test_free_result_001388d6[0xb]; acStack_15c[0] = s_select___from_test_free_result_001388d6[0xc]; acStack_15c[1] = s_select___from_test_free_result_001388d6[0xd]; acStack_15c[2] = s_select___from_test_free_result_001388d6[0xe]; acStack_15c[3] = s_select___from_test_free_result_001388d6[0xf]; lVar5 = mysql_stmt_init(param_1); if (lVar5 == 0) { pcVar7 = (char *)mysql_error(param_1); uVar4 = 0xb9; } else { sVar6 = strlen(local_168); iVar2 = mysql_stmt_prepare(lVar5,local_168,sVar6); if (iVar2 == 0) { uStack_190 = 0; uStack_1e0 = 0; local_1a8 = 0; uStack_1a0 = 0; local_1b8 = 0; uStack_1b0 = 0; local_1c8 = 0; uStack_1c0 = 0; local_1d8 = 0; uStack_1d0 = 0; local_198 = 3; local_1e8 = &local_178; local_1f0 = 0; local_1f8 = &local_180; iVar2 = mysql_stmt_execute(lVar5); if (iVar2 == 0) { cVar1 = mysql_stmt_bind_result(lVar5,&local_1f8); if (cVar1 == '\0') { iVar2 = mysql_stmt_store_result(lVar5); if (iVar2 == 0) { iVar2 = mysql_stmt_fetch(lVar5); if (iVar2 == 0) { local_1e8 = (int *)local_2d; local_2d[0] = '\0'; local_170 = 0; local_198 = CONCAT44(local_198._4_4_,0xfe); local_1b8 = 7; local_1f0 = 0; local_1f8 = &local_170; iVar2 = mysql_stmt_fetch_column(lVar5,&local_1f8,0); if (iVar2 == 0) { if (local_2d[0] == '1') { if (local_170 == 1) { iVar2 = mysql_stmt_fetch(lVar5); if (iVar2 == 0) { local_1e8 = &local_174; local_174 = 0; local_170 = 0; local_198 = CONCAT44(local_198._4_4_,3); local_1b8 = 0; local_1f0 = 0; local_1f8 = &local_170; iVar2 = mysql_stmt_fetch_column(lVar5,&local_1f8,0,0); if (iVar2 == 0) { if (local_174 == 2) { if (local_170 == 4) { cVar1 = mysql_stmt_free_result(lVar5); if (cVar1 == '\0') { iVar2 = mysql_query(param_1,"drop table test_free_result"); if (iVar2 == 0) { mysql_stmt_close(lVar5); uVar4 = 0; goto LAB_001151e9; } uVar4 = mysql_error(param_1); uVar3 = mysql_errno(param_1); uVar8 = 0xef; goto LAB_001151dd; } pcVar7 = (char *)mysql_stmt_error(lVar5); uVar4 = 0xec; } else { pcVar7 = "l2 != 4"; uVar4 = 0xe9; } } else { pcVar7 = "c1 != 2"; uVar4 = 0xe8; } } else { pcVar7 = (char *)mysql_stmt_error(lVar5); uVar4 = 0xe7; } } else { pcVar7 = (char *)mysql_stmt_error(lVar5); uVar4 = 0xdd; } } else { pcVar7 = "l2 != 1"; uVar4 = 0xda; } } else { pcVar7 = "c2 != \'1\'"; uVar4 = 0xd9; } } else { pcVar7 = (char *)mysql_stmt_error(lVar5); uVar4 = 0xd8; } } else { pcVar7 = (char *)mysql_stmt_error(lVar5); uVar4 = 0xce; } } else { pcVar7 = (char *)mysql_stmt_error(lVar5); uVar4 = 0xcb; } } else { pcVar7 = (char *)mysql_stmt_error(lVar5); uVar4 = 200; } } else { pcVar7 = (char *)mysql_stmt_error(lVar5); uVar4 = 0xc5; } } else { pcVar7 = (char *)mysql_stmt_error(lVar5); uVar4 = 0xbb; } } diag("Error: %s (%s: %d)",pcVar7, "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/result.c",uVar4); } else { uVar4 = mysql_error(param_1); uVar3 = mysql_errno(param_1); uVar8 = 0xaf; LAB_001151dd: diag("Error (%d): %s (%d) in %s line %d",iVar2,uVar4,uVar3, "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/result.c",uVar8); } uVar4 = 1; LAB_001151e9: if (*(long *)(in_FS_OFFSET + 0x28) == local_28) { return uVar4; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }