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
53,100
spdlog::details::H_formatter<spdlog::details::null_scoped_padder>::format(spdlog::details::log_msg const&, tm const&, fmt::v10::basic_memory_buffer<char, 250ul, std::allocator<char>>&)
AlayaLite/build_O3/_deps/spdlog-src/include/spdlog/pattern_formatter-inl.h
void format(const details::log_msg &, const std::tm &tm_time, memory_buf_t &dest) override { const size_t field_size = 2; ScopedPadder p(field_size, padinfo_, dest); fmt_helper::pad2(tm_time.tm_hour, dest); }
O3
c
spdlog::details::H_formatter<spdlog::details::null_scoped_padder>::format(spdlog::details::log_msg const&, tm const&, fmt::v10::basic_memory_buffer<char, 250ul, std::allocator<char>>&): pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq %rcx, %rbx movl 0x8(%rdx), %r14d cmpq $0x63, %r14 ja 0x38d29 movzbl %r14b, %eax imull $0xcd, %eax, %r15d shrl $0xb, %r15d leal (%r15,%r15), %eax leal (%rax,%rax,4), %eax subb %al, %r14b orb $0x30, %r15b movq 0x10(%rbx), %rax leaq 0x1(%rax), %rsi cmpq %rsi, 0x18(%rbx) jae 0x38ced movq (%rbx), %rax movq %rbx, %rdi callq *(%rax) movq 0x10(%rbx), %rax leaq 0x1(%rax), %rsi movq 0x8(%rbx), %rcx movq %rsi, 0x10(%rbx) movb %r15b, (%rcx,%rax) orb $0x30, %r14b movq 0x10(%rbx), %rax leaq 0x1(%rax), %rsi cmpq %rsi, 0x18(%rbx) jae 0x38d1b movq (%rbx), %rax movq %rbx, %rdi callq *(%rax) movq 0x10(%rbx), %rax leaq 0x1(%rax), %rsi movq 0x8(%rbx), %rcx movq %rsi, 0x10(%rbx) movb %r14b, (%rcx,%rax) jmp 0x38d4b movq %rsp, %r8 movq %r14, (%r8) leaq 0x48e35(%rip), %rsi # 0x81b6b movl $0x5, %edx movl $0x1, %ecx movq %rbx, %rdi xorl %r9d, %r9d callq 0x4163d addq $0x10, %rsp popq %rbx popq %r14 popq %r15 retq nop
_ZN6spdlog7details11H_formatterINS0_18null_scoped_padderEE6formatERKNS0_7log_msgERK2tmRN3fmt3v1019basic_memory_bufferIcLm250ESaIcEEE: push r15 push r14 push rbx sub rsp, 10h mov rbx, rcx mov r14d, [rdx+8] cmp r14, 63h ; 'c' ja short loc_38D29 movzx eax, r14b imul r15d, eax, 0CDh shr r15d, 0Bh lea eax, [r15+r15] lea eax, [rax+rax*4] sub r14b, al or r15b, 30h mov rax, [rbx+10h] lea rsi, [rax+1] cmp [rbx+18h], rsi jnb short loc_38CED mov rax, [rbx] mov rdi, rbx call qword ptr [rax] mov rax, [rbx+10h] lea rsi, [rax+1] loc_38CED: mov rcx, [rbx+8] mov [rbx+10h], rsi mov [rcx+rax], r15b or r14b, 30h mov rax, [rbx+10h] lea rsi, [rax+1] cmp [rbx+18h], rsi jnb short loc_38D1B mov rax, [rbx] mov rdi, rbx call qword ptr [rax] mov rax, [rbx+10h] lea rsi, [rax+1] loc_38D1B: mov rcx, [rbx+8] mov [rbx+10h], rsi mov [rcx+rax], r14b jmp short loc_38D4B loc_38D29: mov r8, rsp mov [r8], r14 lea rsi, a02; "{:02}" mov edx, 5 mov ecx, 1 mov rdi, rbx; int xor r9d, r9d call _ZN3fmt3v106detail10vformat_toIcEEvRNS1_6bufferIT_EENS0_17basic_string_viewIS4_EENS1_12vformat_argsIS4_E4typeENS1_10locale_refE; fmt::v10::detail::vformat_to<char>(fmt::v10::detail::buffer<char> &,fmt::v10::basic_string_view<char>,fmt::v10::detail::vformat_args<char>::type,fmt::v10::detail::locale_ref) loc_38D4B: add rsp, 10h pop rbx pop r14 pop r15 retn
long long spdlog::details::H_formatter<spdlog::details::null_scoped_padder>::format( long long a1, long long a2, long long a3, long long a4) { unsigned long long v5; // r14 char v6; // r15 char v7; // r14 char v8; // r15 long long v9; // rax long long v10; // rsi long long v11; // rcx char v12; // r14 long long result; // rax long long v14; // rsi long long v15; // rcx v5 = *(unsigned int *)(a3 + 8); if ( v5 > 0x63 ) return fmt::v10::detail::vformat_to<char>(a4); v6 = (unsigned __int8)v5 / 0xAu; v7 = (unsigned __int8)v5 % 0xAu; v8 = v6 | 0x30; v9 = *(_QWORD *)(a4 + 16); v10 = v9 + 1; if ( *(_QWORD *)(a4 + 24) < (unsigned long long)(v9 + 1) ) { (**(void ( ***)(long long))a4)(a4); v9 = *(_QWORD *)(a4 + 16); v10 = v9 + 1; } v11 = *(_QWORD *)(a4 + 8); *(_QWORD *)(a4 + 16) = v10; *(_BYTE *)(v11 + v9) = v8; v12 = v7 | 0x30; result = *(_QWORD *)(a4 + 16); v14 = result + 1; if ( *(_QWORD *)(a4 + 24) < (unsigned long long)(result + 1) ) { (**(void ( ***)(long long))a4)(a4); result = *(_QWORD *)(a4 + 16); v14 = result + 1; } v15 = *(_QWORD *)(a4 + 8); *(_QWORD *)(a4 + 16) = v14; *(_BYTE *)(v15 + result) = v12; return result; }
format: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x10 MOV RBX,RCX MOV R14D,dword ptr [RDX + 0x8] CMP R14,0x63 JA 0x00138d29 MOVZX EAX,R14B IMUL R15D,EAX,0xcd SHR R15D,0xb LEA EAX,[R15 + R15*0x1] LEA EAX,[RAX + RAX*0x4] SUB R14B,AL OR R15B,0x30 MOV RAX,qword ptr [RBX + 0x10] LEA RSI,[RAX + 0x1] CMP qword ptr [RBX + 0x18],RSI JNC 0x00138ced MOV RAX,qword ptr [RBX] MOV RDI,RBX CALL qword ptr [RAX] MOV RAX,qword ptr [RBX + 0x10] LEA RSI,[RAX + 0x1] LAB_00138ced: MOV RCX,qword ptr [RBX + 0x8] MOV qword ptr [RBX + 0x10],RSI MOV byte ptr [RCX + RAX*0x1],R15B OR R14B,0x30 MOV RAX,qword ptr [RBX + 0x10] LEA RSI,[RAX + 0x1] CMP qword ptr [RBX + 0x18],RSI JNC 0x00138d1b MOV RAX,qword ptr [RBX] MOV RDI,RBX CALL qword ptr [RAX] MOV RAX,qword ptr [RBX + 0x10] LEA RSI,[RAX + 0x1] LAB_00138d1b: MOV RCX,qword ptr [RBX + 0x8] MOV qword ptr [RBX + 0x10],RSI MOV byte ptr [RCX + RAX*0x1],R14B JMP 0x00138d4b LAB_00138d29: MOV R8,RSP MOV qword ptr [R8],R14 LEA RSI,[0x181b6b] MOV EDX,0x5 MOV ECX,0x1 MOV RDI,RBX XOR R9D,R9D CALL 0x0014163d LAB_00138d4b: ADD RSP,0x10 POP RBX POP R14 POP R15 RET
/* spdlog::details::H_formatter<spdlog::details::null_scoped_padder>::format(spdlog::details::log_msg const&, tm const&, fmt::v10::basic_memory_buffer<char, 250ul, std::allocator<char> >&) */ void __thiscall spdlog::details::H_formatter<spdlog::details::null_scoped_padder>::format (H_formatter<spdlog::details::null_scoped_padder> *this,log_msg *param_1,tm *param_2, basic_memory_buffer *param_3) { uint uVar1; byte bVar2; long lVar3; ulong uVar4; ulong local_28 [2]; uVar1 = param_2->tm_hour; local_28[0] = (ulong)uVar1; if (local_28[0] < 100) { bVar2 = (byte)((uVar1 & 0xff) / 10); lVar3 = *(long *)(param_3 + 0x10); uVar4 = lVar3 + 1; if (*(ulong *)(param_3 + 0x18) < uVar4) { (*(code *)**(int8 **)param_3)(param_3); lVar3 = *(long *)(param_3 + 0x10); uVar4 = lVar3 + 1; } *(ulong *)(param_3 + 0x10) = uVar4; *(byte *)(*(long *)(param_3 + 8) + lVar3) = bVar2 | 0x30; lVar3 = *(long *)(param_3 + 0x10); uVar4 = lVar3 + 1; if (*(ulong *)(param_3 + 0x18) < uVar4) { (*(code *)**(int8 **)param_3)(param_3); lVar3 = *(long *)(param_3 + 0x10); uVar4 = lVar3 + 1; } *(ulong *)(param_3 + 0x10) = uVar4; *(byte *)(*(long *)(param_3 + 8) + lVar3) = (char)uVar1 + bVar2 * -10 | 0x30; } else { fmt::v10::detail::vformat_to<char>(param_3,"{:02}",5,1,local_28,0); } return; }
53,101
inline_mysql_file_read
eloqsql/include/mysql/psi/mysql_file.h
static inline size_t inline_mysql_file_read( #ifdef HAVE_PSI_FILE_INTERFACE const char *src_file, uint src_line, #endif File file, uchar *buffer, size_t count, myf flags) { size_t result; #ifdef HAVE_PSI_FILE_INTERFACE struct PSI_file_locker *locker; PSI_file_locker_state state; size_t bytes_read; locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_READ); if (psi_likely(locker != NULL)) { PSI_FILE_CALL(start_file_wait)(locker, count, src_file, src_line); result= my_read(file, buffer, count, flags); if (flags & (MY_NABP | MY_FNABP)) bytes_read= (result == 0) ? count : 0; else bytes_read= (result != MY_FILE_ERROR) ? result : 0; PSI_FILE_CALL(end_file_wait)(locker, bytes_read); return result; } #endif result= my_read(file, buffer, count, flags); return result; }
O0
c
inline_mysql_file_read: pushq %rbp movq %rsp, %rbp subq $0xa0, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl %edx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq %r9, -0x30(%rbp) leaq 0x1dfc50(%rip), %rax # 0x28e618 movq (%rax), %rax movq 0x158(%rax), %rax movl -0x18(%rbp), %esi leaq -0x88(%rbp), %rdi movl $0x6, %edx callq *%rax movq %rax, -0x40(%rbp) cmpq $0x0, -0x40(%rbp) setne %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0xaead7 leaq 0x1dfc06(%rip), %rax # 0x28e618 movq (%rax), %rax movq 0x210(%rax), %rax movq -0x40(%rbp), %rdi movq -0x28(%rbp), %rsi movq -0x10(%rbp), %rdx movl -0x14(%rbp), %ecx callq *%rax movl -0x18(%rbp), %edi movq -0x20(%rbp), %rsi movq -0x28(%rbp), %rdx movq -0x30(%rbp), %rcx callq 0xbba80 movq %rax, -0x38(%rbp) movq -0x30(%rbp), %rax andq $0x6, %rax cmpq $0x0, %rax je 0xaea82 cmpq $0x0, -0x38(%rbp) jne 0xaea67 movq -0x28(%rbp), %rax movq %rax, -0x98(%rbp) jmp 0xaea72 xorl %eax, %eax movq %rax, -0x98(%rbp) jmp 0xaea72 movq -0x98(%rbp), %rax movq %rax, -0x90(%rbp) jmp 0xaeaaf cmpq $-0x1, -0x38(%rbp) je 0xaea96 movq -0x38(%rbp), %rax movq %rax, -0xa0(%rbp) jmp 0xaeaa1 xorl %eax, %eax movq %rax, -0xa0(%rbp) jmp 0xaeaa1 movq -0xa0(%rbp), %rax movq %rax, -0x90(%rbp) leaq 0x1dfb62(%rip), %rax # 0x28e618 movq (%rax), %rax movq 0x218(%rax), %rax movq -0x40(%rbp), %rdi movq -0x90(%rbp), %rsi callq *%rax movq -0x38(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0xaeaf7 movl -0x18(%rbp), %edi movq -0x20(%rbp), %rsi movq -0x28(%rbp), %rdx movq -0x30(%rbp), %rcx callq 0xbba80 movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0xa0, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
inline_mysql_file_read_0: push rbp mov rbp, rsp sub rsp, 0A0h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_18], edx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov [rbp+var_30], r9 lea rax, PSI_server mov rax, [rax] mov rax, [rax+158h] mov esi, [rbp+var_18] lea rdi, [rbp+var_88] mov edx, 6 call rax mov [rbp+var_40], rax cmp [rbp+var_40], 0 setnz al and al, 1 movzx eax, al cmp eax, 0 setnz al and al, 1 movzx eax, al cdqe cmp rax, 0 jz loc_AEAD7 lea rax, PSI_server mov rax, [rax] mov rax, [rax+210h] mov rdi, [rbp+var_40] mov rsi, [rbp+var_28] mov rdx, [rbp+var_10] mov ecx, [rbp+var_14] call rax mov edi, [rbp+var_18] mov rsi, [rbp+var_20] mov rdx, [rbp+var_28] mov rcx, [rbp+var_30] call my_read mov [rbp+var_38], rax mov rax, [rbp+var_30] and rax, 6 cmp rax, 0 jz short loc_AEA82 cmp [rbp+var_38], 0 jnz short loc_AEA67 mov rax, [rbp+var_28] mov [rbp+var_98], rax jmp short loc_AEA72 loc_AEA67: xor eax, eax mov [rbp+var_98], rax jmp short $+2 loc_AEA72: mov rax, [rbp+var_98] mov [rbp+var_90], rax jmp short loc_AEAAF loc_AEA82: cmp [rbp+var_38], 0FFFFFFFFFFFFFFFFh jz short loc_AEA96 mov rax, [rbp+var_38] mov [rbp+var_A0], rax jmp short loc_AEAA1 loc_AEA96: xor eax, eax mov [rbp+var_A0], rax jmp short $+2 loc_AEAA1: mov rax, [rbp+var_A0] mov [rbp+var_90], rax loc_AEAAF: lea rax, PSI_server mov rax, [rax] mov rax, [rax+218h] mov rdi, [rbp+var_40] mov rsi, [rbp+var_90] call rax mov rax, [rbp+var_38] mov [rbp+var_8], rax jmp short loc_AEAF7 loc_AEAD7: mov edi, [rbp+var_18] mov rsi, [rbp+var_20] mov rdx, [rbp+var_28] mov rcx, [rbp+var_30] call my_read mov [rbp+var_38], rax mov rax, [rbp+var_38] mov [rbp+var_8], rax loc_AEAF7: mov rax, [rbp+var_8] add rsp, 0A0h pop rbp retn
long long inline_mysql_file_read_0( long long a1, unsigned int a2, unsigned int a3, long long a4, long long a5, long long a6) { long long v7; // [rsp+0h] [rbp-A0h] long long v8; // [rsp+8h] [rbp-98h] _BYTE v9[72]; // [rsp+18h] [rbp-88h] BYREF long long v10; // [rsp+60h] [rbp-40h] long long v11; // [rsp+68h] [rbp-38h] long long v12; // [rsp+70h] [rbp-30h] long long v13; // [rsp+78h] [rbp-28h] long long v14; // [rsp+80h] [rbp-20h] unsigned int v15; // [rsp+88h] [rbp-18h] unsigned int v16; // [rsp+8Ch] [rbp-14h] long long v17; // [rsp+90h] [rbp-10h] v17 = a1; v16 = a2; v15 = a3; v14 = a4; v13 = a5; v12 = a6; v10 = (*((long long ( **)(_BYTE *, _QWORD, long long))PSI_server + 43))(v9, a3, 6LL); if ( v10 ) { (*((void ( **)(long long, long long, long long, _QWORD))PSI_server + 66))(v10, v13, v17, v16); v11 = my_read(v15, v14, v13, v12); if ( (v12 & 6) != 0 ) { if ( v11 ) v8 = 0LL; else v8 = v13; (*((void ( **)(long long, long long))PSI_server + 67))(v10, v8); } else { if ( v11 == -1 ) v7 = 0LL; else v7 = v11; (*((void ( **)(long long, long long))PSI_server + 67))(v10, v7); } return v11; } else { return my_read(v15, v14, v13, v12); } }
inline_mysql_file_read: PUSH RBP MOV RBP,RSP SUB RSP,0xa0 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV dword ptr [RBP + -0x18],EDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV qword ptr [RBP + -0x30],R9 LEA RAX,[0x38e618] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x158] MOV ESI,dword ptr [RBP + -0x18] LEA RDI,[RBP + -0x88] MOV EDX,0x6 CALL RAX MOV qword ptr [RBP + -0x40],RAX CMP qword ptr [RBP + -0x40],0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x001aead7 LEA RAX,[0x38e618] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x210] MOV RDI,qword ptr [RBP + -0x40] MOV RSI,qword ptr [RBP + -0x28] MOV RDX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RBP + -0x14] CALL RAX MOV EDI,dword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x30] CALL 0x001bba80 MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x30] AND RAX,0x6 CMP RAX,0x0 JZ 0x001aea82 CMP qword ptr [RBP + -0x38],0x0 JNZ 0x001aea67 MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x98],RAX JMP 0x001aea72 LAB_001aea67: XOR EAX,EAX MOV qword ptr [RBP + -0x98],RAX JMP 0x001aea72 LAB_001aea72: MOV RAX,qword ptr [RBP + -0x98] MOV qword ptr [RBP + -0x90],RAX JMP 0x001aeaaf LAB_001aea82: CMP qword ptr [RBP + -0x38],-0x1 JZ 0x001aea96 MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0xa0],RAX JMP 0x001aeaa1 LAB_001aea96: XOR EAX,EAX MOV qword ptr [RBP + -0xa0],RAX JMP 0x001aeaa1 LAB_001aeaa1: MOV RAX,qword ptr [RBP + -0xa0] MOV qword ptr [RBP + -0x90],RAX LAB_001aeaaf: LEA RAX,[0x38e618] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x218] MOV RDI,qword ptr [RBP + -0x40] MOV RSI,qword ptr [RBP + -0x90] CALL RAX MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x8],RAX JMP 0x001aeaf7 LAB_001aead7: MOV EDI,dword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x30] CALL 0x001bba80 MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x8],RAX LAB_001aeaf7: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0xa0 POP RBP RET
long inline_mysql_file_read (int8 param_1,int4 param_2,int4 param_3,int8 param_4, long param_5,ulong param_6) { long local_a8; long local_a0; long local_98; int1 local_90 [72]; long local_48; long local_40; ulong local_38; long local_30; int8 local_28; int4 local_20; int4 local_1c; int8 local_18; long local_10; local_38 = param_6; local_30 = param_5; local_28 = param_4; local_20 = param_3; local_1c = param_2; local_18 = param_1; local_48 = (**(code **)(PSI_server + 0x158))(local_90,param_3,6); if (local_48 == 0) { local_10 = my_read(local_20,local_28,local_30,local_38); } else { (**(code **)(PSI_server + 0x210))(local_48,local_30,local_18,local_1c); local_40 = my_read(local_20,local_28,local_30,local_38); if ((local_38 & 6) == 0) { local_a8 = local_40; if (local_40 == -1) { local_a8 = 0; } local_98 = local_a8; } else { if (local_40 == 0) { local_a0 = local_30; } else { local_a0 = 0; } local_98 = local_a0; } (**(code **)(PSI_server + 0x218))(local_48,local_98); local_10 = local_40; } return local_10; }
53,102
my_open_parent_dir_nosymlinks
eloqsql/mysys/my_symlink.c
const char *my_open_parent_dir_nosymlinks(const char *pathname, int *pdfd) { char buf[FN_REFLEN + 1]; char *s= buf, *e= buf+1, *end= strnmov(buf, pathname, sizeof(buf)); int fd, dfd= -1; if (*end) { errno= ENAMETOOLONG; return NULL; } if (*s != '/') /* not an absolute path */ { errno= ENOENT; return NULL; } for (;;) { if (*e == '/') /* '//' in the path */ { errno= ENOENT; goto err; } while (*e && *e != '/') e++; *e= 0; if (!memcmp(s, ".", 2) || !memcmp(s, "..", 3)) { errno= ENOENT; goto err; } if (++e >= end) { *pdfd= dfd; return pathname + (s - buf); } fd = openat(dfd, s, O_NOFOLLOW | O_PATH | O_CLOEXEC); if (fd < 0) goto err; if (dfd >= 0) close(dfd); dfd= fd; s= e; } err: if (dfd >= 0) close(dfd); return NULL; }
O3
c
my_open_parent_dir_nosymlinks: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x228, %rsp # imm = 0x228 movq %rsi, %r14 movq %rdi, %rbx movq %fs:0x28, %rax movq %rax, -0x30(%rbp) leaq -0x240(%rbp), %r15 movl $0x201, %edx # imm = 0x201 movq %r15, %rdi movq %rbx, %rsi callq 0x5a5f4 cmpb $0x0, (%rax) je 0x2bfc7 callq 0x24060 movl $0x24, (%rax) jmp 0x2c09e cmpb $0x2f, -0x240(%rbp) jne 0x2c073 movq %rax, %r12 movq %r14, -0x248(%rbp) movb -0x23f(%rbp), %al movl $0xffffffff, %r13d # imm = 0xFFFFFFFF cmpb $0x2f, %al je 0x2c083 leaq -0x23f(%rbp), %rcx movl $0xffffffff, %r14d # imm = 0xFFFFFFFF movq %r15, %rsi incq %rcx movq %rcx, %r15 testb %al, %al je 0x2c01c movzbl %al, %eax cmpl $0x2f, %eax je 0x2c01c movb (%r15), %al incq %r15 jmp 0x2c008 movb $0x0, -0x1(%r15) cmpw $0x2e, (%rsi) je 0x2c080 movzwl (%rsi), %eax xorl $0x2e2e, %eax # imm = 0x2E2E movzbl 0x2(%rsi), %ecx orw %ax, %cx je 0x2c080 cmpq %r12, %r15 jae 0x2c0c4 movl %r14d, %edi movl $0x2a0000, %edx # imm = 0x2A0000 xorl %eax, %eax callq 0x242c0 testl %eax, %eax js 0x2c091 movl %eax, %r13d testl %r14d, %r14d js 0x2c064 movl %r14d, %edi callq 0x245b0 movb (%r15), %al movl %r13d, %r14d movq %r15, %rcx cmpb $0x2f, %al jne 0x2bfff jmp 0x2c083 callq 0x24060 movl $0x2, (%rax) jmp 0x2c09e movl %r14d, %r13d callq 0x24060 movl $0x2, (%rax) movl %r13d, %r14d testl %r14d, %r14d js 0x2c09e movl %r14d, %edi callq 0x245b0 xorl %ebx, %ebx movq %fs:0x28, %rax cmpq -0x30(%rbp), %rax jne 0x2c0dd movq %rbx, %rax addq $0x228, %rsp # imm = 0x228 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq -0x248(%rbp), %rax movl %r14d, (%rax) leaq -0x240(%rbp), %rax subq %rax, %rsi addq %rsi, %rbx jmp 0x2c0a0 callq 0x24320 nop
my_open_parent_dir_nosymlinks: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 228h mov r14, rsi mov rbx, rdi mov rax, fs:28h mov [rbp+var_30], rax lea r15, [rbp+var_240] mov edx, 201h mov rdi, r15 mov rsi, rbx call strnmov cmp byte ptr [rax], 0 jz short loc_2BFC7 call ___errno_location mov dword ptr [rax], 24h ; '$' jmp loc_2C09E loc_2BFC7: cmp [rbp+var_240], 2Fh ; '/' jnz loc_2C073 mov r12, rax mov [rbp+var_248], r14 mov al, [rbp+var_23F] mov r13d, 0FFFFFFFFh cmp al, 2Fh ; '/' jz loc_2C083 lea rcx, [rbp+var_23F] mov r14d, 0FFFFFFFFh loc_2BFFF: mov rsi, r15 inc rcx mov r15, rcx loc_2C008: test al, al jz short loc_2C01C movzx eax, al cmp eax, 2Fh ; '/' jz short loc_2C01C mov al, [r15] inc r15 jmp short loc_2C008 loc_2C01C: mov byte ptr [r15-1], 0 cmp word ptr [rsi], 2Eh ; '.' jz short loc_2C080 movzx eax, word ptr [rsi] xor eax, 2E2Eh movzx ecx, byte ptr [rsi+2] or cx, ax jz short loc_2C080 cmp r15, r12 jnb loc_2C0C4 mov edi, r14d mov edx, offset unk_2A0000 xor eax, eax call _openat64 test eax, eax js short loc_2C091 mov r13d, eax test r14d, r14d js short loc_2C064 mov edi, r14d call _close loc_2C064: mov al, [r15] mov r14d, r13d mov rcx, r15 cmp al, 2Fh ; '/' jnz short loc_2BFFF jmp short loc_2C083 loc_2C073: call ___errno_location mov dword ptr [rax], 2 jmp short loc_2C09E loc_2C080: mov r13d, r14d loc_2C083: call ___errno_location mov dword ptr [rax], 2 mov r14d, r13d loc_2C091: test r14d, r14d js short loc_2C09E mov edi, r14d call _close loc_2C09E: xor ebx, ebx loc_2C0A0: mov rax, fs:28h cmp rax, [rbp+var_30] jnz short loc_2C0DD mov rax, rbx add rsp, 228h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_2C0C4: mov rax, [rbp+var_248] mov [rax], r14d lea rax, [rbp+var_240] sub rsi, rax add rbx, rsi jmp short loc_2C0A0 loc_2C0DD: call ___stack_chk_fail
long long my_open_parent_dir_nosymlinks(long long a1, unsigned int *a2) { char *v3; // r15 char *v4; // rdi char *v5; // rax char *v6; // r12 char v7; // al int v8; // r13d char *v9; // rcx unsigned int v10; // r14d char *v11; // rsi long long v12; // rcx int v13; // eax unsigned int *v16; // [rsp+8h] [rbp-248h] char v17; // [rsp+10h] [rbp-240h] BYREF char v18; // [rsp+11h] [rbp-23Fh] BYREF unsigned long long v19; // [rsp+220h] [rbp-30h] v19 = __readfsqword(0x28u); v3 = &v17; v4 = &v17; v5 = (char *)strnmov(&v17, a1, 513LL); if ( *v5 ) { *(_DWORD *)__errno_location(&v17) = 36; return 0LL; } if ( v17 != 47 ) { *(_DWORD *)__errno_location(&v17) = 2; return 0LL; } v6 = v5; v16 = a2; v7 = v18; v8 = -1; if ( v18 == 47 ) { LABEL_20: *(_DWORD *)__errno_location(v4) = 2; v10 = v8; LABEL_21: if ( (v10 & 0x80000000) == 0 ) close(v10); return 0LL; } v9 = &v18; v10 = -1; while ( 1 ) { v11 = v3; v3 = v9 + 1; while ( v7 && v7 != 47 ) v7 = *v3++; *(v3 - 1) = 0; if ( *(_WORD *)v11 == 46 || (v12 = (unsigned __int8)v11[2], LOWORD(v12) = *(_WORD *)v11 ^ 0x2E2E | v12, !(_WORD)v12) ) { v8 = v10; goto LABEL_20; } if ( v3 >= v6 ) break; v4 = (char *)v10; v13 = openat64(v10, v11, &unk_2A0000, v12); if ( v13 < 0 ) goto LABEL_21; v8 = v13; if ( (v10 & 0x80000000) == 0 ) { v4 = (char *)v10; close(v10); } v7 = *v3; v10 = v8; v9 = v3; if ( *v3 == 47 ) goto LABEL_20; } *v16 = v10; return v11 - &v17 + a1; }
my_open_parent_dir_nosymlinks: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x228 MOV R14,RSI MOV RBX,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX LEA R15,[RBP + -0x240] MOV EDX,0x201 MOV RDI,R15 MOV RSI,RBX CALL 0x0015a5f4 CMP byte ptr [RAX],0x0 JZ 0x0012bfc7 CALL 0x00124060 MOV dword ptr [RAX],0x24 JMP 0x0012c09e LAB_0012bfc7: CMP byte ptr [RBP + -0x240],0x2f JNZ 0x0012c073 MOV R12,RAX MOV qword ptr [RBP + -0x248],R14 MOV AL,byte ptr [RBP + -0x23f] MOV R13D,0xffffffff CMP AL,0x2f JZ 0x0012c083 LEA RCX,[RBP + -0x23f] MOV R14D,0xffffffff LAB_0012bfff: MOV RSI,R15 INC RCX MOV R15,RCX LAB_0012c008: TEST AL,AL JZ 0x0012c01c MOVZX EAX,AL CMP EAX,0x2f JZ 0x0012c01c MOV AL,byte ptr [R15] INC R15 JMP 0x0012c008 LAB_0012c01c: MOV byte ptr [R15 + -0x1],0x0 CMP word ptr [RSI],0x2e JZ 0x0012c080 MOVZX EAX,word ptr [RSI] XOR EAX,0x2e2e MOVZX ECX,byte ptr [RSI + 0x2] OR CX,AX JZ 0x0012c080 CMP R15,R12 JNC 0x0012c0c4 MOV EDI,R14D MOV EDX,0x2a0000 XOR EAX,EAX CALL 0x001242c0 TEST EAX,EAX JS 0x0012c091 MOV R13D,EAX TEST R14D,R14D JS 0x0012c064 MOV EDI,R14D CALL 0x001245b0 LAB_0012c064: MOV AL,byte ptr [R15] MOV R14D,R13D MOV RCX,R15 CMP AL,0x2f JNZ 0x0012bfff JMP 0x0012c083 LAB_0012c073: CALL 0x00124060 MOV dword ptr [RAX],0x2 JMP 0x0012c09e LAB_0012c080: MOV R13D,R14D LAB_0012c083: CALL 0x00124060 MOV dword ptr [RAX],0x2 MOV R14D,R13D LAB_0012c091: TEST R14D,R14D JS 0x0012c09e MOV EDI,R14D CALL 0x001245b0 LAB_0012c09e: XOR EBX,EBX LAB_0012c0a0: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x0012c0dd MOV RAX,RBX ADD RSP,0x228 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0012c0c4: MOV RAX,qword ptr [RBP + -0x248] MOV dword ptr [RAX],R14D LEA RAX,[RBP + -0x240] SUB RSI,RAX ADD RBX,RSI JMP 0x0012c0a0 LAB_0012c0dd: CALL 0x00124320
long my_open_parent_dir_nosymlinks(long param_1,int *param_2) { short *psVar1; int iVar2; short *psVar3; int *piVar4; long lVar5; int __fd; short *psVar6; short *__file; long in_FS_OFFSET; int1 local_248 [2]; int1 local_246 [526]; long local_38; local_38 = *(long *)(in_FS_OFFSET + 0x28); psVar3 = (short *)strnmov(local_248,param_1,0x201); if ((char)*psVar3 == '\0') { if (local_248[0] == '/') { __fd = -1; if (local_248[1] != '/') { psVar1 = (short *)(local_248 + 1); __file = (short *)local_248; __fd = -1; do { while ((psVar6 = (short *)((long)psVar1 + 1), local_248[1] != '\0' && (local_248[1] != '/'))) { psVar1 = psVar6; local_248[1] = *(char *)psVar6; } *(char *)psVar1 = '\0'; if ((*__file == 0x2e) || ((char)__file[1] == '\0' && *__file == 0x2e2e)) break; if (psVar3 <= psVar6) { *param_2 = __fd; lVar5 = (long)__file + (param_1 - (long)local_248); goto LAB_0012c0a0; } iVar2 = openat64(__fd,(char *)__file,0x2a0000); if (iVar2 < 0) goto LAB_0012c091; if (-1 < __fd) { close(__fd); } local_248[1] = *(char *)psVar6; __fd = iVar2; psVar1 = psVar6; __file = psVar6; } while (local_248[1] != '/'); } piVar4 = __errno_location(); *piVar4 = 2; LAB_0012c091: if (-1 < __fd) { close(__fd); } } else { piVar4 = __errno_location(); *piVar4 = 2; } } else { piVar4 = __errno_location(); *piVar4 = 0x24; } lVar5 = 0; LAB_0012c0a0: if (*(long *)(in_FS_OFFSET + 0x28) != local_38) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return lVar5; }
53,103
mult
eloqsql/strings/dtoa.c
static Bigint *mult(Bigint *a, Bigint *b, Stack_alloc *alloc) { Bigint *c; int k, wa, wb, wc; ULong *x, *xa, *xae, *xb, *xbe, *xc, *xc0; ULong y; ULLong carry, z; if (a->wds < b->wds) { c= a; a= b; b= c; } k= a->k; wa= a->wds; wb= b->wds; wc= wa + wb; if (wc > a->maxwds) k++; c= Balloc(k, alloc); for (x= c->p.x, xa= x + wc; x < xa; x++) *x= 0; xa= a->p.x; xae= xa + wa; xb= b->p.x; xbe= xb + wb; xc0= c->p.x; for (; xb < xbe; xc0++) { if ((y= *xb++)) { x= xa; xc= xc0; carry= 0; do { z= *x++ * (ULLong)y + *xc + carry; carry= z >> 32; *xc++= (ULong) (z & FFFFFFFF); } while (x < xae); *xc= (ULong) carry; } } for (xc0= c->p.x, xc= xc0 + wc; wc > 0 && !*--xc; --wc) ; c->wds= wc; return c; }
O0
c
mult: pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rax movl 0x14(%rax), %eax movq -0x10(%rbp), %rcx cmpl 0x14(%rcx), %eax jge 0xc226f movq -0x8(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x20(%rbp), %rax movq %rax, -0x10(%rbp) movq -0x8(%rbp), %rax movl 0x8(%rax), %eax movl %eax, -0x24(%rbp) movq -0x8(%rbp), %rax movl 0x14(%rax), %eax movl %eax, -0x28(%rbp) movq -0x10(%rbp), %rax movl 0x14(%rax), %eax movl %eax, -0x2c(%rbp) movl -0x28(%rbp), %eax addl -0x2c(%rbp), %eax movl %eax, -0x30(%rbp) movl -0x30(%rbp), %eax movq -0x8(%rbp), %rcx cmpl 0xc(%rcx), %eax jle 0xc22ab movl -0x24(%rbp), %eax addl $0x1, %eax movl %eax, -0x24(%rbp) movl -0x24(%rbp), %edi movq -0x18(%rbp), %rsi callq 0xc1dd0 movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax movq (%rax), %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movslq -0x30(%rbp), %rcx shlq $0x2, %rcx addq %rcx, %rax movq %rax, -0x40(%rbp) movq -0x38(%rbp), %rax cmpq -0x40(%rbp), %rax jae 0xc22fb movq -0x38(%rbp), %rax movl $0x0, (%rax) movq -0x38(%rbp), %rax addq $0x4, %rax movq %rax, -0x38(%rbp) jmp 0xc22d9 movq -0x8(%rbp), %rax movq (%rax), %rax movq %rax, -0x40(%rbp) movq -0x40(%rbp), %rax movslq -0x28(%rbp), %rcx shlq $0x2, %rcx addq %rcx, %rax movq %rax, -0x48(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x50(%rbp) movq -0x50(%rbp), %rax movslq -0x2c(%rbp), %rcx shlq $0x2, %rcx addq %rcx, %rax movq %rax, -0x58(%rbp) movq -0x20(%rbp), %rax movq (%rax), %rax movq %rax, -0x68(%rbp) movq -0x50(%rbp), %rax cmpq -0x58(%rbp), %rax jae 0xc2404 movq -0x50(%rbp), %rax movq %rax, %rcx addq $0x4, %rcx movq %rcx, -0x50(%rbp) movl (%rax), %eax movl %eax, -0x6c(%rbp) cmpl $0x0, %eax je 0xc23f1 movq -0x40(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x68(%rbp), %rax movq %rax, -0x60(%rbp) movq $0x0, -0x78(%rbp) movq -0x38(%rbp), %rax movq %rax, %rcx addq $0x4, %rcx movq %rcx, -0x38(%rbp) movl (%rax), %eax movl -0x6c(%rbp), %ecx imulq %rcx, %rax movq -0x60(%rbp), %rcx movl (%rcx), %ecx addq %rcx, %rax addq -0x78(%rbp), %rax movq %rax, -0x80(%rbp) movq -0x80(%rbp), %rax shrq $0x20, %rax movq %rax, -0x78(%rbp) movabsq $0xffffffff, %rax # imm = 0xFFFFFFFF andq -0x80(%rbp), %rax movl %eax, %ecx movq -0x60(%rbp), %rax movq %rax, %rdx addq $0x4, %rdx movq %rdx, -0x60(%rbp) movl %ecx, (%rax) movq -0x38(%rbp), %rax cmpq -0x48(%rbp), %rax jb 0xc2385 movq -0x78(%rbp), %rax movl %eax, %ecx movq -0x60(%rbp), %rax movl %ecx, (%rax) jmp 0xc23f3 movq -0x68(%rbp), %rax addq $0x4, %rax movq %rax, -0x68(%rbp) jmp 0xc2342 movq -0x20(%rbp), %rax movq (%rax), %rax movq %rax, -0x68(%rbp) movq -0x68(%rbp), %rax movslq -0x30(%rbp), %rcx shlq $0x2, %rcx addq %rcx, %rax movq %rax, -0x60(%rbp) xorl %eax, %eax cmpl $0x0, -0x30(%rbp) movb %al, -0x81(%rbp) jle 0xc244e movq -0x60(%rbp), %rax movq %rax, %rcx addq $-0x4, %rcx movq %rcx, -0x60(%rbp) cmpl $0x0, -0x4(%rax) setne %al xorb $-0x1, %al movb %al, -0x81(%rbp) movb -0x81(%rbp), %al testb $0x1, %al jne 0xc245a jmp 0xc2467 jmp 0xc245c movl -0x30(%rbp), %eax addl $-0x1, %eax movl %eax, -0x30(%rbp) jmp 0xc2422 movl -0x30(%rbp), %ecx movq -0x20(%rbp), %rax movl %ecx, 0x14(%rax) movq -0x20(%rbp), %rax addq $0x90, %rsp popq %rbp retq nop
mult_0: push rbp mov rbp, rsp sub rsp, 90h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov rax, [rbp+var_8] mov eax, [rax+14h] mov rcx, [rbp+var_10] cmp eax, [rcx+14h] jge short loc_C226F mov rax, [rbp+var_8] mov [rbp+var_20], rax mov rax, [rbp+var_10] mov [rbp+var_8], rax mov rax, [rbp+var_20] mov [rbp+var_10], rax loc_C226F: mov rax, [rbp+var_8] mov eax, [rax+8] mov [rbp+var_24], eax mov rax, [rbp+var_8] mov eax, [rax+14h] mov [rbp+var_28], eax mov rax, [rbp+var_10] mov eax, [rax+14h] mov [rbp+var_2C], eax mov eax, [rbp+var_28] add eax, [rbp+var_2C] mov [rbp+var_30], eax mov eax, [rbp+var_30] mov rcx, [rbp+var_8] cmp eax, [rcx+0Ch] jle short loc_C22AB mov eax, [rbp+var_24] add eax, 1 mov [rbp+var_24], eax loc_C22AB: mov edi, [rbp+var_24] mov rsi, [rbp+var_18] call Balloc_0 mov [rbp+var_20], rax mov rax, [rbp+var_20] mov rax, [rax] mov [rbp+var_38], rax mov rax, [rbp+var_38] movsxd rcx, [rbp+var_30] shl rcx, 2 add rax, rcx mov [rbp+var_40], rax loc_C22D9: mov rax, [rbp+var_38] cmp rax, [rbp+var_40] jnb short loc_C22FB mov rax, [rbp+var_38] mov dword ptr [rax], 0 mov rax, [rbp+var_38] add rax, 4 mov [rbp+var_38], rax jmp short loc_C22D9 loc_C22FB: mov rax, [rbp+var_8] mov rax, [rax] mov [rbp+var_40], rax mov rax, [rbp+var_40] movsxd rcx, [rbp+var_28] shl rcx, 2 add rax, rcx mov [rbp+var_48], rax mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_50], rax mov rax, [rbp+var_50] movsxd rcx, [rbp+var_2C] shl rcx, 2 add rax, rcx mov [rbp+var_58], rax mov rax, [rbp+var_20] mov rax, [rax] mov [rbp+var_68], rax loc_C2342: mov rax, [rbp+var_50] cmp rax, [rbp+var_58] jnb loc_C2404 mov rax, [rbp+var_50] mov rcx, rax add rcx, 4 mov [rbp+var_50], rcx mov eax, [rax] mov [rbp+var_6C], eax cmp eax, 0 jz loc_C23F1 mov rax, [rbp+var_40] mov [rbp+var_38], rax mov rax, [rbp+var_68] mov [rbp+var_60], rax mov [rbp+var_78], 0 loc_C2385: mov rax, [rbp+var_38] mov rcx, rax add rcx, 4 mov [rbp+var_38], rcx mov eax, [rax] mov ecx, [rbp+var_6C] imul rax, rcx mov rcx, [rbp+var_60] mov ecx, [rcx] add rax, rcx add rax, [rbp+var_78] mov [rbp+var_80], rax mov rax, [rbp+var_80] shr rax, 20h mov [rbp+var_78], rax mov rax, 0FFFFFFFFh and rax, [rbp+var_80] 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_38] cmp rax, [rbp+var_48] jb short loc_C2385 mov rax, [rbp+var_78] mov ecx, eax mov rax, [rbp+var_60] mov [rax], ecx loc_C23F1: jmp short $+2 loc_C23F3: mov rax, [rbp+var_68] add rax, 4 mov [rbp+var_68], rax jmp loc_C2342 loc_C2404: mov rax, [rbp+var_20] mov rax, [rax] mov [rbp+var_68], rax mov rax, [rbp+var_68] movsxd rcx, [rbp+var_30] shl rcx, 2 add rax, rcx mov [rbp+var_60], rax loc_C2422: xor eax, eax cmp [rbp+var_30], 0 mov [rbp+var_81], al jle short loc_C244E 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 mov [rbp+var_81], al loc_C244E: mov al, [rbp+var_81] test al, 1 jnz short loc_C245A jmp short loc_C2467 loc_C245A: jmp short $+2 loc_C245C: mov eax, [rbp+var_30] add eax, 0FFFFFFFFh mov [rbp+var_30], eax jmp short loc_C2422 loc_C2467: mov ecx, [rbp+var_30] mov rax, [rbp+var_20] mov [rax+14h], ecx mov rax, [rbp+var_20] add rsp, 90h pop rbp retn
long long mult_0(unsigned int **a1, unsigned int **a2, long long a3) { unsigned int *v3; // rax unsigned int *v4; // rax _DWORD *v5; // rax long long v6; // rax char v8; // [rsp+Fh] [rbp-81h] unsigned long long v9; // [rsp+10h] [rbp-80h] unsigned long long v10; // [rsp+18h] [rbp-78h] unsigned int v11; // [rsp+24h] [rbp-6Ch] _DWORD *v12; // [rsp+28h] [rbp-68h] _DWORD *v13; // [rsp+30h] [rbp-60h] long long v14; // [rsp+30h] [rbp-60h] unsigned long long v15; // [rsp+38h] [rbp-58h] unsigned int *v16; // [rsp+40h] [rbp-50h] unsigned long long v17; // [rsp+48h] [rbp-48h] unsigned long long v18; // [rsp+50h] [rbp-40h] unsigned int *v19; // [rsp+50h] [rbp-40h] _DWORD *v20; // [rsp+58h] [rbp-38h] unsigned int *v21; // [rsp+58h] [rbp-38h] int v22; // [rsp+60h] [rbp-30h] int v23; // [rsp+64h] [rbp-2Ch] int v24; // [rsp+68h] [rbp-28h] int v25; // [rsp+6Ch] [rbp-24h] long long v26; // [rsp+70h] [rbp-20h] unsigned int **v27; // [rsp+80h] [rbp-10h] unsigned int **v28; // [rsp+88h] [rbp-8h] v28 = a1; v27 = a2; if ( *((_DWORD *)a1 + 5) < *((_DWORD *)a2 + 5) ) { v28 = a2; v27 = a1; } v25 = *((_DWORD *)v28 + 2); v24 = *((_DWORD *)v28 + 5); v23 = *((_DWORD *)v27 + 5); v22 = v23 + v24; if ( v23 + v24 > *((_DWORD *)v28 + 3) ) ++v25; v26 = Balloc_0(v25, a3); v20 = *(_DWORD **)v26; v18 = 4LL * v22 + *(_QWORD *)v26; while ( (unsigned long long)v20 < v18 ) *v20++ = 0; v19 = *v28; v17 = (unsigned long long)&(*v28)[v24]; v16 = *v27; v15 = (unsigned long long)&(*v27)[v23]; v12 = *(_DWORD **)v26; while ( (unsigned long long)v16 < v15 ) { v3 = v16++; v11 = *v3; if ( *v3 ) { v21 = v19; v13 = v12; v10 = 0LL; do { v4 = v21++; v9 = v10 + (unsigned int)*v13 + v11 * (unsigned long long)*v4; v10 = HIDWORD(v9); v5 = v13++; *v5 = v9; } while ( (unsigned long long)v21 < v17 ); *v13 = HIDWORD(v9); } ++v12; } v14 = 4LL * v22 + *(_QWORD *)v26; while ( 1 ) { v8 = 0; if ( v22 > 0 ) { v6 = v14; v14 -= 4LL; v8 = ~(*(_DWORD *)(v6 - 4) != 0); } if ( (v8 & 1) == 0 ) break; --v22; } *(_DWORD *)(v26 + 20) = v22; return v26; }
mult: PUSH RBP MOV RBP,RSP SUB RSP,0x90 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x14] MOV RCX,qword ptr [RBP + -0x10] CMP EAX,dword ptr [RCX + 0x14] JGE 0x001c226f MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x8],RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x10],RAX LAB_001c226f: MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x8] MOV dword ptr [RBP + -0x24],EAX MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x14] MOV dword ptr [RBP + -0x28],EAX MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x14] MOV dword ptr [RBP + -0x2c],EAX MOV EAX,dword ptr [RBP + -0x28] ADD EAX,dword ptr [RBP + -0x2c] MOV dword ptr [RBP + -0x30],EAX MOV EAX,dword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x8] CMP EAX,dword ptr [RCX + 0xc] JLE 0x001c22ab MOV EAX,dword ptr [RBP + -0x24] ADD EAX,0x1 MOV dword ptr [RBP + -0x24],EAX LAB_001c22ab: MOV EDI,dword ptr [RBP + -0x24] MOV RSI,qword ptr [RBP + -0x18] CALL 0x001c1dd0 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] MOVSXD RCX,dword ptr [RBP + -0x30] SHL RCX,0x2 ADD RAX,RCX MOV qword ptr [RBP + -0x40],RAX LAB_001c22d9: MOV RAX,qword ptr [RBP + -0x38] CMP RAX,qword ptr [RBP + -0x40] JNC 0x001c22fb MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x38] ADD RAX,0x4 MOV qword ptr [RBP + -0x38],RAX JMP 0x001c22d9 LAB_001c22fb: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x40] MOVSXD RCX,dword ptr [RBP + -0x28] SHL RCX,0x2 ADD RAX,RCX MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x50] MOVSXD RCX,dword ptr [RBP + -0x2c] SHL RCX,0x2 ADD RAX,RCX MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x68],RAX LAB_001c2342: MOV RAX,qword ptr [RBP + -0x50] CMP RAX,qword ptr [RBP + -0x58] JNC 0x001c2404 MOV RAX,qword ptr [RBP + -0x50] MOV RCX,RAX ADD RCX,0x4 MOV qword ptr [RBP + -0x50],RCX MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x6c],EAX CMP EAX,0x0 JZ 0x001c23f1 MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x68] MOV qword ptr [RBP + -0x60],RAX MOV qword ptr [RBP + -0x78],0x0 LAB_001c2385: MOV RAX,qword ptr [RBP + -0x38] MOV RCX,RAX ADD RCX,0x4 MOV qword ptr [RBP + -0x38],RCX MOV EAX,dword ptr [RAX] MOV ECX,dword ptr [RBP + -0x6c] IMUL RAX,RCX MOV RCX,qword ptr [RBP + -0x60] MOV ECX,dword ptr [RCX] ADD RAX,RCX ADD RAX,qword ptr [RBP + -0x78] MOV qword ptr [RBP + -0x80],RAX MOV RAX,qword ptr [RBP + -0x80] SHR RAX,0x20 MOV qword ptr [RBP + -0x78],RAX MOV RAX,0xffffffff AND RAX,qword ptr [RBP + -0x80] 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 + -0x38] CMP RAX,qword ptr [RBP + -0x48] JC 0x001c2385 MOV RAX,qword ptr [RBP + -0x78] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX],ECX LAB_001c23f1: JMP 0x001c23f3 LAB_001c23f3: MOV RAX,qword ptr [RBP + -0x68] ADD RAX,0x4 MOV qword ptr [RBP + -0x68],RAX JMP 0x001c2342 LAB_001c2404: MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x68],RAX MOV RAX,qword ptr [RBP + -0x68] MOVSXD RCX,dword ptr [RBP + -0x30] SHL RCX,0x2 ADD RAX,RCX MOV qword ptr [RBP + -0x60],RAX LAB_001c2422: XOR EAX,EAX CMP dword ptr [RBP + -0x30],0x0 MOV byte ptr [RBP + -0x81],AL JLE 0x001c244e 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 MOV byte ptr [RBP + -0x81],AL LAB_001c244e: MOV AL,byte ptr [RBP + -0x81] TEST AL,0x1 JNZ 0x001c245a JMP 0x001c2467 LAB_001c245a: JMP 0x001c245c LAB_001c245c: MOV EAX,dword ptr [RBP + -0x30] ADD EAX,-0x1 MOV dword ptr [RBP + -0x30],EAX JMP 0x001c2422 LAB_001c2467: MOV ECX,dword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX + 0x14],ECX MOV RAX,qword ptr [RBP + -0x20] ADD RSP,0x90 POP RBP RET
long * mult(int8 *param_1,int8 *param_2,int8 param_3) { int iVar1; int iVar2; uint uVar3; uint *puVar4; uint *puVar5; long *plVar6; int4 *puVar7; ulong uVar8; uint *puVar9; uint *puVar10; bool bVar11; ulong local_80; uint *local_70; uint *local_68; uint *local_58; uint *local_40; int local_38; int local_2c; int8 *local_18; int8 *local_10; local_18 = param_2; local_10 = param_1; if (*(int *)((long)param_1 + 0x14) < *(int *)((long)param_2 + 0x14)) { local_18 = param_1; local_10 = param_2; } local_2c = *(int *)(local_10 + 1); iVar1 = *(int *)((long)local_10 + 0x14); iVar2 = *(int *)((long)local_18 + 0x14); local_38 = iVar1 + iVar2; if (*(int *)((long)local_10 + 0xc) < local_38) { local_2c = local_2c + 1; } plVar6 = (long *)Balloc(local_2c,param_3); local_40 = (uint *)*plVar6; puVar7 = local_40 + local_38; for (; local_40 < puVar7; local_40 = local_40 + 1) { *local_40 = 0; } puVar4 = (uint *)*local_10; puVar5 = (uint *)*local_18; local_70 = (uint *)*plVar6; local_58 = puVar5; while (local_58 < puVar5 + iVar2) { uVar3 = *local_58; if (uVar3 != 0) { local_68 = local_70; local_80 = 0; local_40 = puVar4; do { puVar9 = local_40 + 1; uVar8 = (ulong)*local_40 * (ulong)uVar3 + (ulong)*local_68 + local_80; local_80 = uVar8 >> 0x20; puVar10 = local_68 + 1; *local_68 = (uint)uVar8; local_68 = puVar10; local_40 = puVar9; } while (puVar9 < puVar4 + iVar1); *puVar10 = (uint)(uVar8 >> 0x20); } local_70 = local_70 + 1; local_58 = local_58 + 1; } local_68 = (uint *)(*plVar6 + (long)local_38 * 4); while( true ) { bVar11 = false; if (0 < local_38) { bVar11 = *(int *)((long)local_68 + -4) == 0; local_68 = (uint *)((long)local_68 + -4); } if (!bVar11) break; local_38 = local_38 + -1; } *(int *)((long)plVar6 + 0x14) = local_38; return plVar6; }
53,104
mi_ft_update
eloqsql/storage/myisam/ft_update.c
int _mi_ft_update(MI_INFO *info, uint keynr, uchar *keybuf, const uchar *oldrec, const uchar *newrec, my_off_t pos) { int error= -1; FT_WORD *oldlist,*newlist, *old_word, *new_word; CHARSET_INFO *cs=info->s->keyinfo[keynr].seg->charset; uint key_length; int cmp, cmp2; DBUG_ENTER("_mi_ft_update"); if (!(old_word=oldlist=_mi_ft_parserecord(info, keynr, oldrec, &info->ft_memroot)) || !(new_word=newlist=_mi_ft_parserecord(info, keynr, newrec, &info->ft_memroot))) goto err; error=0; while(old_word->pos && new_word->pos) { cmp= ha_compare_text(cs, (uchar*) old_word->pos,old_word->len, (uchar*) new_word->pos,new_word->len,0); cmp2= cmp ? 0 : (fabs(old_word->weight - new_word->weight) > 1.e-5); if (cmp < 0 || cmp2) { key_length=_ft_make_key(info,keynr,keybuf,old_word,pos); if ((error=_mi_ck_delete(info,keynr,(uchar*) keybuf,key_length))) goto err; } if (cmp > 0 || cmp2) { key_length=_ft_make_key(info,keynr,keybuf,new_word,pos); if ((error=_mi_ck_write(info,keynr,(uchar*) keybuf,key_length))) goto err; } if (cmp<=0) old_word++; if (cmp>=0) new_word++; } if (old_word->pos) error=_mi_ft_erase(info,keynr,keybuf,old_word,pos); else if (new_word->pos) error=_mi_ft_store(info,keynr,keybuf,new_word,pos); err: free_root(&info->ft_memroot, MYF(MY_MARK_BLOCKS_FREE)); DBUG_RETURN(error); }
O3
c
mi_ft_update: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %r9, -0x50(%rbp) movq %r8, -0x58(%rbp) movq %rdx, -0x48(%rbp) movl %esi, %r13d movq %rdi, %rbx movq (%rdi), %rax movq 0x218(%rax), %rax movl %esi, %edx imulq $0x70, %rdx, %rdx movq 0x28(%rax,%rdx), %rax movq (%rax), %rax movq %rax, -0x60(%rbp) leaq 0x90(%rdi), %r15 movq %rcx, %rdx movq %r15, %rcx callq 0x8f113 movl $0xffffffff, %r12d # imm = 0xFFFFFFFF testq %rax, %rax je 0x8f446 movq %rax, %r14 movq %rbx, -0x40(%rbp) movq %rbx, %rdi movl %r13d, %esi movq -0x58(%rbp), %rdx movq %r15, %rcx callq 0x8f113 testq %rax, %rax je 0x8f446 movq %rax, %rbx movq (%r14), %rsi testq %rsi, %rsi movq %r15, -0x38(%rbp) je 0x8f404 movl %r13d, -0x2c(%rbp) movq (%rbx), %rcx testq %rcx, %rcx je 0x8f428 movq 0x10(%r14), %rdx movq 0x10(%rbx), %r8 xorl %r13d, %r13d movq -0x60(%rbp), %rdi xorl %r9d, %r9d callq 0xbdd70 movl %eax, %r15d testl %eax, %eax jne 0x8f356 movsd 0x8(%r14), %xmm0 subsd 0x8(%rbx), %xmm0 andpd 0x75be6(%rip), %xmm0 # 0x104f30 ucomisd 0x75cd6(%rip), %xmm0 # 0x105028 seta %r13b testl %r15d, %r15d js 0x8f360 testb %r13b, %r13b je 0x8f39f movq -0x40(%rbp), %rdi movl %r13d, -0x58(%rbp) movl -0x2c(%rbp), %r13d movl %r13d, %esi movq -0x48(%rbp), %r12 movq %r12, %rdx movq %r14, %rcx movq -0x50(%rbp), %r8 callq 0x8f465 movq -0x40(%rbp), %rdi movl %r13d, %esi movl -0x58(%rbp), %r13d movq %r12, %rdx movl %eax, %ecx callq 0x8fbbd testl %eax, %eax jne 0x8f43f testl %r15d, %r15d setg %al orb %r13b, %al testb $0x1, %al movl -0x2c(%rbp), %r13d je 0x8f3e5 movq -0x40(%rbp), %r13 movq %r13, %rdi movl -0x2c(%rbp), %esi movq -0x48(%rbp), %r12 movq %r12, %rdx movq %rbx, %rcx movq -0x50(%rbp), %r8 callq 0x8f465 movq %r13, %rdi movl -0x2c(%rbp), %r13d movl %r13d, %esi movq %r12, %rdx movl %eax, %ecx callq 0xa30cb testl %eax, %eax jne 0x8f43f leaq 0x18(%r14), %rax leaq 0x18(%rbx), %rcx testl %r15d, %r15d cmovleq %rax, %r14 cmovnsq %rcx, %rbx movq (%r14), %rsi testq %rsi, %rsi jne 0x8f30d cmpq $0x0, (%rbx) movq -0x40(%rbp), %rdi je 0x8f423 movl %r13d, %esi movq -0x48(%rbp), %rdx movq %rbx, %rcx movq -0x50(%rbp), %r8 callq 0x8f587 jmp 0x8f43f xorl %r12d, %r12d jmp 0x8f442 movq -0x40(%rbp), %rdi movl %r13d, %esi movq -0x48(%rbp), %rdx movq %r14, %rcx movq -0x50(%rbp), %r8 callq 0x8f500 movl %eax, %r12d movq -0x38(%rbp), %r15 movl $0x2, %esi movq %r15, %rdi callq 0xb9ab7 movl %r12d, %eax addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_mi_ft_update: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov [rbp+var_50], r9 mov [rbp+var_58], r8 mov [rbp+var_48], rdx mov r13d, esi mov rbx, rdi mov rax, [rdi] mov rax, [rax+218h] mov edx, esi imul rdx, 70h ; 'p' mov rax, [rax+rdx+28h] mov rax, [rax] mov [rbp+var_60], rax lea r15, [rdi+90h] mov rdx, rcx mov rcx, r15 call _mi_ft_parserecord mov r12d, 0FFFFFFFFh test rax, rax jz loc_8F446 mov r14, rax mov [rbp+var_40], rbx mov rdi, rbx mov esi, r13d mov rdx, [rbp+var_58] mov rcx, r15 call _mi_ft_parserecord test rax, rax jz loc_8F446 mov rbx, rax mov rsi, [r14] test rsi, rsi mov [rbp+var_38], r15 jz loc_8F404 mov [rbp+var_2C], r13d loc_8F30D: mov rcx, [rbx] test rcx, rcx jz loc_8F428 mov rdx, [r14+10h] mov r8, [rbx+10h] xor r13d, r13d mov rdi, [rbp+var_60] xor r9d, r9d call ha_compare_text mov r15d, eax test eax, eax jnz short loc_8F356 movsd xmm0, qword ptr [r14+8] subsd xmm0, qword ptr [rbx+8] andpd xmm0, cs:xmmword_104F30 ucomisd xmm0, cs:qword_105028 setnbe r13b loc_8F356: test r15d, r15d js short loc_8F360 test r13b, r13b jz short loc_8F39F loc_8F360: mov rdi, [rbp+var_40] mov dword ptr [rbp+var_58], r13d mov r13d, [rbp+var_2C] mov esi, r13d mov r12, [rbp+var_48] mov rdx, r12 mov rcx, r14 mov r8, [rbp+var_50] call _ft_make_key mov rdi, [rbp+var_40] mov esi, r13d mov r13d, dword ptr [rbp+var_58] mov rdx, r12 mov ecx, eax call _mi_ck_delete test eax, eax jnz loc_8F43F loc_8F39F: test r15d, r15d setnle al or al, r13b test al, 1 mov r13d, [rbp+var_2C] jz short loc_8F3E5 mov r13, [rbp+var_40] mov rdi, r13 mov esi, [rbp+var_2C] mov r12, [rbp+var_48] mov rdx, r12 mov rcx, rbx mov r8, [rbp+var_50] call _ft_make_key mov rdi, r13 mov r13d, [rbp+var_2C] mov esi, r13d mov rdx, r12 mov ecx, eax call _mi_ck_write test eax, eax jnz short loc_8F43F loc_8F3E5: lea rax, [r14+18h] lea rcx, [rbx+18h] test r15d, r15d cmovle r14, rax cmovns rbx, rcx mov rsi, [r14] test rsi, rsi jnz loc_8F30D loc_8F404: cmp qword ptr [rbx], 0 mov rdi, [rbp+var_40] jz short loc_8F423 mov esi, r13d mov rdx, [rbp+var_48] mov rcx, rbx mov r8, [rbp+var_50] call _mi_ft_store jmp short loc_8F43F loc_8F423: xor r12d, r12d jmp short loc_8F442 loc_8F428: mov rdi, [rbp+var_40] mov esi, r13d mov rdx, [rbp+var_48] mov rcx, r14 mov r8, [rbp+var_50] call _mi_ft_erase loc_8F43F: mov r12d, eax loc_8F442: mov r15, [rbp+var_38] loc_8F446: mov esi, 2 mov rdi, r15 call free_root mov eax, r12d add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long mi_ft_update(_QWORD *a1, unsigned int a2, long long a3, long long a4, long long a5, long long a6) { unsigned int v6; // r13d _QWORD *v7; // r15 double *v8; // rax unsigned int v9; // r12d double *v10; // r14 double *v11; // rax double *v12; // rbx double v13; // rsi bool v14; // r13 int v15; // r15d unsigned int key; // eax unsigned int v17; // eax bool v18; // zf unsigned int v19; // eax long long v21; // [rsp+0h] [rbp-60h] unsigned int v25; // [rsp+34h] [rbp-2Ch] v6 = a2; v21 = **(_QWORD **)(*(_QWORD *)(*a1 + 536LL) + 112LL * a2 + 40); v7 = a1 + 18; v8 = (double *)mi_ft_parserecord(a1, a2, a4, (long long)(a1 + 18)); v9 = -1; if ( v8 ) { v10 = v8; v11 = (double *)mi_ft_parserecord(a1, a2, a5, (long long)(a1 + 18)); if ( v11 ) { v12 = v11; v13 = *v10; if ( *(_QWORD *)v10 ) { v25 = v6; while ( *(_QWORD *)v12 ) { v14 = 0; v15 = ha_compare_text(v21, *(_QWORD *)&v13, *((_QWORD *)v10 + 2), *(_QWORD *)v12, *((_QWORD *)v12 + 2), 0LL); if ( !v15 ) v14 = fabs(v10[1] - v12[1]) > 0.00001; if ( v15 < 0 || v14 ) { key = ft_make_key(a1, v25, a3, v10, a6); v17 = mi_ck_delete(a1, v25, a3, key); if ( v17 ) goto LABEL_22; } v18 = !v14 && v15 <= 0; v6 = v25; if ( !v18 ) { v19 = ft_make_key(a1, v25, a3, v12, a6); v6 = v25; v17 = mi_ck_write(a1, v25, a3, v19); if ( v17 ) goto LABEL_22; } if ( v15 <= 0 ) v10 += 3; if ( v15 >= 0 ) v12 += 3; v13 = *v10; if ( !*(_QWORD *)v10 ) goto LABEL_18; } v17 = mi_ft_erase(a1, v6, a3, v10, a6); } else { LABEL_18: if ( !*(_QWORD *)v12 ) { v9 = 0; LABEL_23: v7 = a1 + 18; goto LABEL_24; } v17 = mi_ft_store(a1, v6, a3, v12, a6); } LABEL_22: v9 = v17; goto LABEL_23; } } LABEL_24: free_root(v7, 2LL); return v9; }
_mi_ft_update: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV qword ptr [RBP + -0x50],R9 MOV qword ptr [RBP + -0x58],R8 MOV qword ptr [RBP + -0x48],RDX MOV R13D,ESI MOV RBX,RDI MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0x218] MOV EDX,ESI IMUL RDX,RDX,0x70 MOV RAX,qword ptr [RAX + RDX*0x1 + 0x28] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x60],RAX LEA R15,[RDI + 0x90] MOV RDX,RCX MOV RCX,R15 CALL 0x0018f113 MOV R12D,0xffffffff TEST RAX,RAX JZ 0x0018f446 MOV R14,RAX MOV qword ptr [RBP + -0x40],RBX MOV RDI,RBX MOV ESI,R13D MOV RDX,qword ptr [RBP + -0x58] MOV RCX,R15 CALL 0x0018f113 TEST RAX,RAX JZ 0x0018f446 MOV RBX,RAX MOV RSI,qword ptr [R14] TEST RSI,RSI MOV qword ptr [RBP + -0x38],R15 JZ 0x0018f404 MOV dword ptr [RBP + -0x2c],R13D LAB_0018f30d: MOV RCX,qword ptr [RBX] TEST RCX,RCX JZ 0x0018f428 MOV RDX,qword ptr [R14 + 0x10] MOV R8,qword ptr [RBX + 0x10] XOR R13D,R13D MOV RDI,qword ptr [RBP + -0x60] XOR R9D,R9D CALL 0x001bdd70 MOV R15D,EAX TEST EAX,EAX JNZ 0x0018f356 MOVSD XMM0,qword ptr [R14 + 0x8] SUBSD XMM0,qword ptr [RBX + 0x8] ANDPD XMM0,xmmword ptr [0x00204f30] UCOMISD XMM0,qword ptr [0x00205028] SETA R13B LAB_0018f356: TEST R15D,R15D JS 0x0018f360 TEST R13B,R13B JZ 0x0018f39f LAB_0018f360: MOV RDI,qword ptr [RBP + -0x40] MOV dword ptr [RBP + -0x58],R13D MOV R13D,dword ptr [RBP + -0x2c] MOV ESI,R13D MOV R12,qword ptr [RBP + -0x48] MOV RDX,R12 MOV RCX,R14 MOV R8,qword ptr [RBP + -0x50] CALL 0x0018f465 MOV RDI,qword ptr [RBP + -0x40] MOV ESI,R13D MOV R13D,dword ptr [RBP + -0x58] MOV RDX,R12 MOV ECX,EAX CALL 0x0018fbbd TEST EAX,EAX JNZ 0x0018f43f LAB_0018f39f: TEST R15D,R15D SETG AL OR AL,R13B TEST AL,0x1 MOV R13D,dword ptr [RBP + -0x2c] JZ 0x0018f3e5 MOV R13,qword ptr [RBP + -0x40] MOV RDI,R13 MOV ESI,dword ptr [RBP + -0x2c] MOV R12,qword ptr [RBP + -0x48] MOV RDX,R12 MOV RCX,RBX MOV R8,qword ptr [RBP + -0x50] CALL 0x0018f465 MOV RDI,R13 MOV R13D,dword ptr [RBP + -0x2c] MOV ESI,R13D MOV RDX,R12 MOV ECX,EAX CALL 0x001a30cb TEST EAX,EAX JNZ 0x0018f43f LAB_0018f3e5: LEA RAX,[R14 + 0x18] LEA RCX,[RBX + 0x18] TEST R15D,R15D CMOVLE R14,RAX CMOVNS RBX,RCX MOV RSI,qword ptr [R14] TEST RSI,RSI JNZ 0x0018f30d LAB_0018f404: CMP qword ptr [RBX],0x0 MOV RDI,qword ptr [RBP + -0x40] JZ 0x0018f423 MOV ESI,R13D MOV RDX,qword ptr [RBP + -0x48] MOV RCX,RBX MOV R8,qword ptr [RBP + -0x50] CALL 0x0018f587 JMP 0x0018f43f LAB_0018f423: XOR R12D,R12D JMP 0x0018f442 LAB_0018f428: MOV RDI,qword ptr [RBP + -0x40] MOV ESI,R13D MOV RDX,qword ptr [RBP + -0x48] MOV RCX,R14 MOV R8,qword ptr [RBP + -0x50] CALL 0x0018f500 LAB_0018f43f: MOV R12D,EAX LAB_0018f442: MOV R15,qword ptr [RBP + -0x38] LAB_0018f446: MOV ESI,0x2 MOV RDI,R15 CALL 0x001b9ab7 MOV EAX,R12D ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ int _mi_ft_update(long *param_1,ulong param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6) { long *plVar1; int8 uVar2; long lVar3; bool bVar4; int iVar5; int4 uVar6; int iVar7; long *plVar8; long *plVar9; int4 uVar10; uVar10 = (int4)param_2; uVar2 = **(int8 **)(*(long *)(*param_1 + 0x218) + 0x28 + (param_2 & 0xffffffff) * 0x70); plVar1 = param_1 + 0x12; plVar8 = (long *)_mi_ft_parserecord(param_1,param_2,param_4,plVar1); iVar7 = -1; if ((plVar8 != (long *)0x0) && (plVar9 = (long *)_mi_ft_parserecord(param_1,param_2 & 0xffffffff,param_5,plVar1), plVar9 != (long *)0x0)) { lVar3 = *plVar8; while (lVar3 != 0) { if (*plVar9 == 0) { iVar7 = _mi_ft_erase(param_1,param_2 & 0xffffffff,param_3,plVar8,param_6); goto LAB_0018f446; } bVar4 = false; iVar5 = ha_compare_text(uVar2,lVar3,plVar8[2],*plVar9,plVar9[2],0); if (iVar5 == 0) { bVar4 = _DAT_00205028 < (double)((ulong)((double)plVar8[1] - (double)plVar9[1]) & _DAT_00204f30); } if ((iVar5 < 0) || (bVar4)) { uVar6 = _ft_make_key(param_1,uVar10,param_3,plVar8,param_6); iVar7 = _mi_ck_delete(param_1,uVar10,param_3,uVar6); if (iVar7 != 0) goto LAB_0018f446; } if (0 < iVar5 || bVar4) { uVar6 = _ft_make_key(param_1,uVar10,param_3,plVar9,param_6); iVar7 = _mi_ck_write(param_1,param_2 & 0xffffffff,param_3,uVar6); if (iVar7 != 0) goto LAB_0018f446; } if (iVar5 < 1) { plVar8 = plVar8 + 3; } if (-1 < iVar5) { plVar9 = plVar9 + 3; } lVar3 = *plVar8; } if (*plVar9 == 0) { iVar7 = 0; } else { iVar7 = _mi_ft_store(param_1,param_2 & 0xffffffff,param_3,plVar9,param_6); } } LAB_0018f446: free_root(plVar1,2); return iVar7; }
53,105
compile_field
fabiosvm[P]rak/src/compiler.c
static inline void compile_field(RakCompiler *comp, RakError *err) { if (!match(comp, RAK_TOKEN_KIND_IDENT)) { expected_token_error(err, RAK_TOKEN_KIND_IDENT, comp->lex.tok); return; } RakToken tok = comp->lex.tok; next(comp, err); consume(comp, RAK_TOKEN_KIND_COLON, err); RakString *name = rak_string_new_from_cstr(tok.len, tok.chars, err); if (!rak_is_ok(err)) return; RakValue val = rak_string_value(name); uint8_t idx = rak_chunk_append_const(&comp->chunk, val, err); if (!rak_is_ok(err)) { rak_string_free(name); return; } emit_instr(comp, rak_load_const_instr(idx), err); if (!rak_is_ok(err)) { rak_string_free(name); return; } compile_expr(comp, err); if (rak_is_ok(err)) return; rak_string_free(name); }
O2
c
compile_field: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx leaq 0x2810(%rdi), %r13 cmpl $0x2e, 0x2810(%rdi) jne 0x51f5 movq %rdi, %r14 leaq 0x27f8(%rdi), %r12 movl 0x281c(%rdi), %ebp movq 0x2820(%rdi), %r15 movq %r12, %rdi movq %rbx, %rsi callq 0x5512 cmpb $0x1, (%rbx) jne 0x5212 cmpl $0x2, (%r13) jne 0x5221 movq %r12, %rdi movq %rbx, %rsi callq 0x5512 cmpb $0x1, (%rbx) jne 0x5212 movl %ebp, %edi movq %r15, %rsi movq %rbx, %rdx callq 0x67a1 cmpb $0x1, (%rbx) jne 0x5212 movq %rax, %r15 movabsq $0x200000003, %rsi # imm = 0x200000003 movq %r14, %rdi movq %rax, %rdx movq %rbx, %rcx callq 0x32c2 cmpb $0x0, (%rbx) je 0x51df movzbl %al, %esi shll $0x8, %esi orl $0x4, %esi movq %r14, %rdi movq %rbx, %rdx callq 0x3306 cmpb $0x0, (%rbx) je 0x51df movq %r14, %rdi movq %rbx, %rsi callq 0x400f cmpb $0x0, (%rbx) jne 0x5212 movq %r15, %rdi addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x6837 movq 0x10(%r13), %rax movq %rax, 0x10(%rsp) movups (%r13), %xmm0 movups %xmm0, (%rsp) pushq $0x2e popq %rsi movq %rbx, %rdi callq 0x3f9d addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq 0x10(%r13), %rax movq %rax, 0x10(%rsp) movups (%r13), %xmm0 movups %xmm0, (%rsp) pushq $0x2 jmp 0x5209
compile_field: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov rbx, rsi lea r13, [rdi+2810h] cmp dword ptr [rdi+2810h], 2Eh ; '.' jnz loc_51F5 mov r14, rdi lea r12, [rdi+27F8h] mov ebp, [rdi+281Ch] mov r15, [rdi+2820h] mov rdi, r12 mov rsi, rbx call rak_lexer_next cmp byte ptr [rbx], 1 jnz loc_5212 cmp dword ptr [r13+0], 2 jnz loc_5221 mov rdi, r12 mov rsi, rbx call rak_lexer_next cmp byte ptr [rbx], 1 jnz loc_5212 mov edi, ebp mov rsi, r15 mov rdx, rbx call rak_string_new_from_cstr cmp byte ptr [rbx], 1 jnz short loc_5212 mov r15, rax mov rsi, 200000003h mov rdi, r14 mov rdx, rax mov rcx, rbx call rak_chunk_append_const cmp byte ptr [rbx], 0 jz short loc_51DF movzx esi, al shl esi, 8 or esi, 4 mov rdi, r14 mov rdx, rbx call rak_chunk_append_instr cmp byte ptr [rbx], 0 jz short loc_51DF mov rdi, r14 mov rsi, rbx call compile_expr cmp byte ptr [rbx], 0 jnz short loc_5212 loc_51DF: mov rdi, r15 add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp rak_string_free loc_51F5: mov rax, [r13+10h] mov [rsp+48h+var_38], rax movups xmm0, xmmword ptr [r13+0] movups [rsp+48h+var_48], xmm0 push 2Eh ; '.' loc_5209: pop rsi mov rdi, rbx call expected_token_error loc_5212: add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_5221: mov rax, [r13+10h] mov [rsp+48h+var_38], rax movups xmm0, xmmword ptr [r13+0] movups [rsp+48h+var_48], xmm0 push 2 jmp short loc_5209
_DWORD * compile_field(long long a1, char *a2, int a3, int a4, int a5, int a6) { unsigned int v6; // ebp long long v7; // r15 _DWORD *result; // rax int v9; // edx int v10; // ecx int v11; // r8d int v12; // r9d int v13; // r8d int v14; // r9d _DWORD *v15; // r15 unsigned __int8 appended; // al int v17; // ecx int v18; // r8d int v19; // r9d if ( *(_DWORD *)(a1 + 10256) != 46 ) return (_DWORD *)expected_token_error( (int)a2, 0x2Eu, a3, a4, a5, a6, *(_QWORD *)(a1 + 10256), *(_QWORD *)(a1 + 10264), *(_QWORD *)(a1 + 10272)); v6 = *(_DWORD *)(a1 + 10268); v7 = *(_QWORD *)(a1 + 10272); result = (_DWORD *)rak_lexer_next(a1 + 10232, a2); if ( *a2 == 1 ) { if ( *(_DWORD *)(a1 + 10256) == 2 ) { result = (_DWORD *)rak_lexer_next(a1 + 10232, a2); if ( *a2 == 1 ) { result = (_DWORD *)rak_string_new_from_cstr(v6, v7, a2); if ( *a2 == 1 ) { v15 = result; appended = rak_chunk_append_const(a1, 0x200000003LL, result, (int)a2, v13, v14); if ( !*a2 ) return (_DWORD *)rak_string_free(v15); rak_chunk_append_instr(a1, (appended << 8) | 4, a2, v17, v18, v19); if ( !*a2 ) return (_DWORD *)rak_string_free(v15); result = (_DWORD *)compile_expr(a1, a2); if ( !*a2 ) return (_DWORD *)rak_string_free(v15); } } } else { return (_DWORD *)expected_token_error( (int)a2, 2u, v9, v10, v11, v12, *(_QWORD *)(a1 + 10256), *(_QWORD *)(a1 + 10264), *(_QWORD *)(a1 + 10272)); } } return result; }
compile_field: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV RBX,RSI LEA R13,[RDI + 0x2810] CMP dword ptr [RDI + 0x2810],0x2e JNZ 0x001051f5 MOV R14,RDI LEA R12,[RDI + 0x27f8] MOV EBP,dword ptr [RDI + 0x281c] MOV R15,qword ptr [RDI + 0x2820] MOV RDI,R12 MOV RSI,RBX CALL 0x00105512 CMP byte ptr [RBX],0x1 JNZ 0x00105212 CMP dword ptr [R13],0x2 JNZ 0x00105221 MOV RDI,R12 MOV RSI,RBX CALL 0x00105512 CMP byte ptr [RBX],0x1 JNZ 0x00105212 MOV EDI,EBP MOV RSI,R15 MOV RDX,RBX CALL 0x001067a1 CMP byte ptr [RBX],0x1 JNZ 0x00105212 MOV R15,RAX MOV RSI,0x200000003 MOV RDI,R14 MOV RDX,RAX MOV RCX,RBX CALL 0x001032c2 CMP byte ptr [RBX],0x0 JZ 0x001051df MOVZX ESI,AL SHL ESI,0x8 OR ESI,0x4 MOV RDI,R14 MOV RDX,RBX CALL 0x00103306 CMP byte ptr [RBX],0x0 JZ 0x001051df MOV RDI,R14 MOV RSI,RBX CALL 0x0010400f CMP byte ptr [RBX],0x0 JNZ 0x00105212 LAB_001051df: MOV RDI,R15 ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x00106837 LAB_001051f5: MOV RAX,qword ptr [R13 + 0x10] MOV qword ptr [RSP + 0x10],RAX MOVUPS XMM0,xmmword ptr [R13] MOVUPS xmmword ptr [RSP],XMM0 PUSH 0x2e LAB_00105209: POP RSI MOV RDI,RBX CALL 0x00103f9d LAB_00105212: ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00105221: MOV RAX,qword ptr [R13 + 0x10] MOV qword ptr [RSP + 0x10],RAX MOVUPS XMM0,xmmword ptr [R13] MOVUPS xmmword ptr [RSP],XMM0 PUSH 0x2 JMP 0x00105209
void compile_field(long param_1,char *param_2) { int4 uVar1; byte bVar2; int8 uVar3; int8 uStack_50; if (*(int *)(param_1 + 0x2810) == 0x2e) { uVar1 = *(int4 *)(param_1 + 0x281c); uVar3 = *(int8 *)(param_1 + 0x2820); rak_lexer_next(param_1 + 0x27f8,param_2); if (*param_2 != '\x01') { return; } if (*(int *)(param_1 + 0x2810) == 2) { rak_lexer_next(param_1 + 0x27f8,param_2); if (*param_2 != '\x01') { return; } uVar3 = rak_string_new_from_cstr(uVar1,uVar3,param_2); if (*param_2 != '\x01') { return; } bVar2 = rak_chunk_append_const(param_1,0x200000003,uVar3,param_2); if (((*param_2 != '\0') && (rak_chunk_append_instr(param_1,(uint)bVar2 << 8 | 4,param_2), *param_2 != '\0')) && (compile_expr(param_1,param_2), *param_2 != '\0')) { return; } rak_string_free(uVar3); return; } uStack_50 = 2; } else { uStack_50 = 0x2e; } expected_token_error(param_2,uStack_50); return; }
53,106
compile_field
fabiosvm[P]rak/src/compiler.c
static inline void compile_field(RakCompiler *comp, RakError *err) { if (!match(comp, RAK_TOKEN_KIND_IDENT)) { expected_token_error(err, RAK_TOKEN_KIND_IDENT, comp->lex.tok); return; } RakToken tok = comp->lex.tok; next(comp, err); consume(comp, RAK_TOKEN_KIND_COLON, err); RakString *name = rak_string_new_from_cstr(tok.len, tok.chars, err); if (!rak_is_ok(err)) return; RakValue val = rak_string_value(name); uint8_t idx = rak_chunk_append_const(&comp->chunk, val, err); if (!rak_is_ok(err)) { rak_string_free(name); return; } emit_instr(comp, rak_load_const_instr(idx), err); if (!rak_is_ok(err)) { rak_string_free(name); return; } compile_expr(comp, err); if (rak_is_ok(err)) return; rak_string_free(name); }
O3
c
compile_field: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 movl 0x2810(%rdi), %r13d cmpl $0x2e, %r13d jne 0x6155 leaq 0x27f8(%r14), %r12 movl 0x281c(%r14), %ebp movq 0x2820(%r14), %r15 movq %r12, %rdi movq %rbx, %rsi callq 0x679a cmpb $0x1, (%rbx) jne 0x61a1 movl 0x2810(%r14), %r13d cmpl $0x2, %r13d jne 0x61d7 movq %r12, %rdi movq %rbx, %rsi callq 0x679a cmpb $0x1, (%rbx) jne 0x61a1 movl %ebp, %edi movq %r15, %rsi movq %rbx, %rdx callq 0x7e95 cmpb $0x1, (%rbx) jne 0x61a1 movq %rax, %r15 movabsq $0x200000003, %rsi # imm = 0x200000003 movq %r14, %rdi movq %rax, %rdx movq %rbx, %rcx callq 0x38e9 cmpb $0x0, (%rbx) je 0x613f movzbl %al, %esi shll $0x8, %esi orl $0x4, %esi movq %r14, %rdi movq %rbx, %rdx callq 0x392d cmpb $0x0, (%rbx) je 0x613f movq %r14, %rdi movq %rbx, %rsi callq 0x4bec cmpb $0x0, (%rbx) jne 0x61a1 movq %r15, %rdi addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x7f2d movl 0x2814(%r14), %ebp movl 0x2818(%r14), %r15d movl 0x281c(%r14), %r12d movq 0x2820(%r14), %r14 movl $0x2e, %edi callq 0x6764 testl %r13d, %r13d je 0x61b0 movl %r15d, (%rsp) leaq 0x431b(%rip), %rsi # 0xa4a6 movq %rbx, %rdi movq %rax, %rdx movl %r12d, %ecx movq %r14, %r8 movl %ebp, %r9d xorl %eax, %eax callq 0x666c addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x42c5(%rip), %rsi # 0xa47c movq %rbx, %rdi movq %rax, %rdx movl %ebp, %ecx movl %r15d, %r8d xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x666c movl 0x2814(%r14), %ebp movl 0x2818(%r14), %r15d movl 0x281c(%r14), %r12d movq 0x2820(%r14), %r14 movl $0x2, %edi jmp 0x6176
compile_field: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rsi mov r14, rdi mov r13d, [rdi+2810h] cmp r13d, 2Eh ; '.' jnz loc_6155 lea r12, [r14+27F8h] mov ebp, [r14+281Ch] mov r15, [r14+2820h] mov rdi, r12 mov rsi, rbx call rak_lexer_next cmp byte ptr [rbx], 1 jnz loc_61A1 mov r13d, [r14+2810h] cmp r13d, 2 jnz loc_61D7 mov rdi, r12 mov rsi, rbx call rak_lexer_next cmp byte ptr [rbx], 1 jnz loc_61A1 mov edi, ebp mov rsi, r15 mov rdx, rbx call rak_string_new_from_cstr cmp byte ptr [rbx], 1 jnz loc_61A1 mov r15, rax mov rsi, 200000003h mov rdi, r14 mov rdx, rax mov rcx, rbx call rak_chunk_append_const cmp byte ptr [rbx], 0 jz short loc_613F movzx esi, al shl esi, 8 or esi, 4 mov rdi, r14 mov rdx, rbx call rak_chunk_append_instr cmp byte ptr [rbx], 0 jz short loc_613F mov rdi, r14 mov rsi, rbx call compile_expr cmp byte ptr [rbx], 0 jnz short loc_61A1 loc_613F: mov rdi, r15 add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp rak_string_free loc_6155: mov ebp, [r14+2814h] mov r15d, [r14+2818h] mov r12d, [r14+281Ch] mov r14, [r14+2820h] mov edi, 2Eh ; '.' loc_6176: call rak_token_kind_to_cstr test r13d, r13d jz short loc_61B0 mov [rsp+38h+var_38], r15d lea rsi, aExpectedSButGo_0; "expected %s, but got '%.*s' at %d:%d" mov rdi, rbx mov rdx, rax mov ecx, r12d mov r8, r14 mov r9d, ebp xor eax, eax call rak_error_set loc_61A1: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_61B0: lea rsi, aExpectedSButGo; "expected %s, but got end of file at %d:"... mov rdi, rbx mov rdx, rax mov ecx, ebp mov r8d, r15d xor eax, eax add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp rak_error_set loc_61D7: mov ebp, [r14+2814h] mov r15d, [r14+2818h] mov r12d, [r14+281Ch] mov r14, [r14+2820h] mov edi, 2 jmp loc_6176
char compile_field(long long a1, char *a2) { int v2; // r13d unsigned int v3; // ebp long long v4; // r15 _DWORD *v5; // rax int v6; // r8d int v7; // r9d _DWORD *v8; // r15 unsigned __int8 appended; // al int v10; // ecx int v11; // r8d int v12; // r9d int v13; // ebp int v14; // r15d int v15; // r12d long long v16; // r14 long long v17; // rdi int v18; // eax int v19; // r9d v2 = *(_DWORD *)(a1 + 10256); if ( v2 != 46 ) { v13 = *(_DWORD *)(a1 + 10260); v14 = *(_DWORD *)(a1 + 10264); v15 = *(_DWORD *)(a1 + 10268); v16 = *(_QWORD *)(a1 + 10272); v17 = 46LL; goto LABEL_11; } v3 = *(_DWORD *)(a1 + 10268); v4 = *(_QWORD *)(a1 + 10272); LOBYTE(v5) = rak_lexer_next(a1 + 10232, a2); if ( *a2 != 1 ) return (char)v5; v2 = *(_DWORD *)(a1 + 10256); if ( v2 != 2 ) { v13 = *(_DWORD *)(a1 + 10260); v14 = *(_DWORD *)(a1 + 10264); v15 = *(_DWORD *)(a1 + 10268); v16 = *(_QWORD *)(a1 + 10272); v17 = 2LL; LABEL_11: v18 = rak_token_kind_to_cstr(v17); if ( v2 ) LOBYTE(v5) = rak_error_set((_DWORD)a2, (unsigned int)"expected %s, but got '%.*s' at %d:%d", v18, v15, v16, v13); else LOBYTE(v5) = rak_error_set( (_DWORD)a2, (unsigned int)"expected %s, but got end of file at %d:%d", v18, v13, v14, v19); return (char)v5; } LOBYTE(v5) = rak_lexer_next(a1 + 10232, a2); if ( *a2 == 1 ) { v5 = (_DWORD *)rak_string_new_from_cstr(v3, v4, a2); if ( *a2 == 1 ) { v8 = v5; appended = rak_chunk_append_const(a1, 0x200000003LL, v5, (int)a2, v6, v7); if ( !*a2 || (rak_chunk_append_instr(a1, (appended << 8) | 4, a2, v10, v11, v12), !*a2) || (LOBYTE(v5) = compile_expr(a1, a2), !*a2) ) { LOBYTE(v5) = rak_string_free(v8); } } } return (char)v5; }
compile_field: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RSI MOV R14,RDI MOV R13D,dword ptr [RDI + 0x2810] CMP R13D,0x2e JNZ 0x00106155 LEA R12,[R14 + 0x27f8] MOV EBP,dword ptr [R14 + 0x281c] MOV R15,qword ptr [R14 + 0x2820] MOV RDI,R12 MOV RSI,RBX CALL 0x0010679a CMP byte ptr [RBX],0x1 JNZ 0x001061a1 MOV R13D,dword ptr [R14 + 0x2810] CMP R13D,0x2 JNZ 0x001061d7 MOV RDI,R12 MOV RSI,RBX CALL 0x0010679a CMP byte ptr [RBX],0x1 JNZ 0x001061a1 MOV EDI,EBP MOV RSI,R15 MOV RDX,RBX CALL 0x00107e95 CMP byte ptr [RBX],0x1 JNZ 0x001061a1 MOV R15,RAX MOV RSI,0x200000003 MOV RDI,R14 MOV RDX,RAX MOV RCX,RBX CALL 0x001038e9 CMP byte ptr [RBX],0x0 JZ 0x0010613f MOVZX ESI,AL SHL ESI,0x8 OR ESI,0x4 MOV RDI,R14 MOV RDX,RBX CALL 0x0010392d CMP byte ptr [RBX],0x0 JZ 0x0010613f MOV RDI,R14 MOV RSI,RBX CALL 0x00104bec CMP byte ptr [RBX],0x0 JNZ 0x001061a1 LAB_0010613f: MOV RDI,R15 ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x00107f2d LAB_00106155: MOV EBP,dword ptr [R14 + 0x2814] MOV R15D,dword ptr [R14 + 0x2818] MOV R12D,dword ptr [R14 + 0x281c] MOV R14,qword ptr [R14 + 0x2820] MOV EDI,0x2e LAB_00106176: CALL 0x00106764 TEST R13D,R13D JZ 0x001061b0 MOV dword ptr [RSP],R15D LEA RSI,[0x10a4a6] MOV RDI,RBX MOV RDX,RAX MOV ECX,R12D MOV R8,R14 MOV R9D,EBP XOR EAX,EAX CALL 0x0010666c LAB_001061a1: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001061b0: LEA RSI,[0x10a47c] MOV RDI,RBX MOV RDX,RAX MOV ECX,EBP MOV R8D,R15D XOR EAX,EAX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x0010666c LAB_001061d7: MOV EBP,dword ptr [R14 + 0x2814] MOV R15D,dword ptr [R14 + 0x2818] MOV R12D,dword ptr [R14 + 0x281c] MOV R14,qword ptr [R14 + 0x2820] MOV EDI,0x2 JMP 0x00106176
void compile_field(long param_1,char *param_2) { byte bVar1; int8 in_RAX; int8 uVar2; int4 uVar3; int8 uVar4; int4 uVar5; int iVar6; int4 uVar7; int4 uVar8; uVar8 = (int4)((ulong)in_RAX >> 0x20); iVar6 = *(int *)(param_1 + 0x2810); if (iVar6 == 0x2e) { uVar3 = *(int4 *)(param_1 + 0x281c); uVar2 = *(int8 *)(param_1 + 0x2820); rak_lexer_next(param_1 + 0x27f8,param_2); if (*param_2 != '\x01') { return; } iVar6 = *(int *)(param_1 + 0x2810); if (iVar6 == 2) { rak_lexer_next(param_1 + 0x27f8,param_2); if (*param_2 != '\x01') { return; } uVar2 = rak_string_new_from_cstr(uVar3,uVar2,param_2); if (*param_2 != '\x01') { return; } bVar1 = rak_chunk_append_const(param_1,0x200000003,uVar2,param_2); if (((*param_2 != '\0') && (rak_chunk_append_instr(param_1,(uint)bVar1 << 8 | 4,param_2), *param_2 != '\0')) && (compile_expr(param_1,param_2), *param_2 != '\0')) { return; } rak_string_free(uVar2); return; } uVar3 = *(int4 *)(param_1 + 0x2814); uVar7 = *(int4 *)(param_1 + 0x2818); uVar5 = *(int4 *)(param_1 + 0x281c); uVar2 = *(int8 *)(param_1 + 0x2820); uVar4 = 2; } else { uVar3 = *(int4 *)(param_1 + 0x2814); uVar7 = *(int4 *)(param_1 + 0x2818); uVar5 = *(int4 *)(param_1 + 0x281c); uVar2 = *(int8 *)(param_1 + 0x2820); uVar4 = 0x2e; } uVar4 = rak_token_kind_to_cstr(uVar4); if (iVar6 != 0) { rak_error_set(param_2,"expected %s, but got \'%.*s\' at %d:%d",uVar4,uVar5,uVar2,uVar3, CONCAT44(uVar8,uVar7)); return; } rak_error_set(param_2,"expected %s, but got end of file at %d:%d",uVar4,uVar3,uVar7); return; }
53,107
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; }
O3
c
init_available_charsets: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx subq $0x300, %rsp # imm = 0x300 movq %fs:0x28, %rax movq %rax, -0x18(%rbp) leaq 0xb6cfef(%rip), %rbx # 0xc02440 movl $0x4000, %edx # imm = 0x4000 movq %rbx, %rdi xorl %esi, %esi callq 0x29290 leaq 0xb71049(%rip), %rdi # 0xc064b0 movl $0x4000, %edx # imm = 0x4000 xorl %esi, %esi callq 0x29290 leaq 0xb75c12(%rip), %rax # 0xc0b08c movl (%rax), %edi xorps %xmm0, %xmm0 movups %xmm0, 0x10(%rsp) leaq 0x10fc(%rip), %rax # 0x96587 movq %rax, 0x8(%rsp) movl $0x1, 0x20(%rsp) movq $0x0, (%rsp) leaq 0xb70f99(%rip), %rsi # 0xc06440 leaq 0x319ac2(%rip), %rcx # 0x3aef70 movl $0x40, %r8d movl $0x10, %edx xorl %r9d, %r9d callq 0x96859 xorl %edi, %edi callq 0xaad58 movq $-0x8, %r14 movq 0x8(%rbx,%r14), %rdi testq %rdi, %rdi je 0x954f2 cmpq $0x0, 0x40(%rdi) je 0x954f2 callq 0x963d2 testb %al, %al je 0x954f2 movq $0x0, 0x8(%rbx,%r14) addq $0x8, %r14 cmpq $0x3ff0, %r14 # imm = 0x3FF0 jb 0x954cf leaq -0x2e0(%rbp), %rbx movb $0x0, (%rbx) leaq -0x8ae(%rip), %rax # 0x94c62 movq %rax, 0x80(%rbx) leaq -0x8ad(%rip), %rax # 0x94c71 movq %rax, 0x88(%rbx) leaq -0x8a0(%rip), %rax # 0x94c8c movq %rax, 0x90(%rbx) leaq 0xd788(%rip), %rax # 0xa2cc2 movq %rax, 0x98(%rbx) leaq 0x2f3200(%rip), %rax # 0x388748 movq (%rax), %rax movq %rax, 0xa0(%rbx) leaq -0x8af(%rip), %rax # 0x94caa movq %rax, 0xa8(%rbx) leaq -0x230(%rbp), %r14 movq %r14, %rdi callq 0x951ef movabsq $0x6d782e7865646e49, %rcx # imm = 0x6D782E7865646E49 movq %rcx, (%rax) movw $0x6c, 0x8(%rax) movq %rbx, %rdi movq %r14, %rsi xorl %edx, %edx callq 0x96598 movq %fs:0x28, %rax cmpq -0x18(%rbp), %rax jne 0x955aa addq $0x300, %rsp # imm = 0x300 popq %rbx popq %r14 popq %rbp retq callq 0x29240
init_available_charsets: push rbp mov rbp, rsp push r14 push rbx sub rsp, 300h mov rax, fs:28h mov [rbp+var_18], rax lea rbx, all_charsets mov edx, 4000h mov rdi, rbx xor esi, esi call _memset lea rdi, my_collation_statistics mov edx, 4000h xor esi, esi call _memset lea rax, key_memory_charsets mov edi, [rax] xorps xmm0, xmm0 movups [rsp+310h+var_300], xmm0 lea rax, get_charset_key mov [rsp+310h+var_308], rax mov [rsp+310h+var_2F0], 1 mov [rsp+310h+var_310], 0 lea rsi, charset_name_hash lea rcx, my_charset_latin1 mov r8d, 40h ; '@' mov edx, 10h xor r9d, r9d call my_hash_init2 xor edi, edi call init_compiled_charsets mov r14, 0FFFFFFFFFFFFFFF8h loc_954CF: mov rdi, [rbx+r14+8] test rdi, rdi jz short loc_954F2 cmp qword ptr [rdi+40h], 0 jz short loc_954F2 call init_state_maps test al, al jz short loc_954F2 mov qword ptr [rbx+r14+8], 0 loc_954F2: add r14, 8 cmp r14, 3FF0h jb short loc_954CF lea rbx, [rbp+var_2E0] mov byte ptr [rbx], 0 lea rax, my_once_alloc_c mov [rbx+80h], rax lea rax, my_malloc_c mov [rbx+88h], rax lea rax, my_realloc_c mov [rbx+90h], rax lea rax, my_free mov [rbx+98h], rax lea rax, my_charset_error_reporter mov rax, [rax] mov [rbx+0A0h], rax lea rax, add_collation mov [rbx+0A8h], rax lea r14, [rbp+var_230] mov rdi, r14 call get_charsets_dir mov rcx, 6D782E7865646E49h mov [rax], rcx mov word ptr [rax+8], 6Ch ; 'l' mov rdi, rbx mov rsi, r14 xor edx, edx call my_read_charset_file mov rax, fs:28h cmp rax, [rbp+var_18] jnz short loc_955AA add rsp, 300h pop rbx pop r14 pop rbp retn loc_955AA: call ___stack_chk_fail
unsigned long long init_available_charsets() { unsigned long long v0; // r14 long long v1; // rdi _BYTE v3[128]; // [rsp+30h] [rbp-2E0h] BYREF long long ( *v4)(long long); // [rsp+B0h] [rbp-260h] long long ( *v5)(long long); // [rsp+B8h] [rbp-258h] long long ( *v6)(long long, long long); // [rsp+C0h] [rbp-250h] long long ( *v7)(_QWORD); // [rsp+C8h] [rbp-248h] long long ( *v8)(); // [rsp+D0h] [rbp-240h] long long ( *v9)(unsigned int *); // [rsp+D8h] [rbp-238h] _BYTE v10[536]; // [rsp+E0h] [rbp-230h] BYREF unsigned long long v11; // [rsp+2F8h] [rbp-18h] v11 = __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); v0 = 0x1FFFFFFFFFFFFFFFLL; do { v1 = all_charsets[v0 + 1]; if ( v1 && *(_QWORD *)(v1 + 64) && (unsigned __int8)init_state_maps(v1) ) all_charsets[v0 + 1] = 0LL; ++v0; } while ( v0 < 2046 ); v3[0] = 0; v4 = my_once_alloc_c; v5 = my_malloc_c; v6 = my_realloc_c; v7 = my_free; v8 = my_charset_error_reporter; v9 = add_collation; strcpy((char *)get_charsets_dir((long long)v10), "Index.xml"); my_read_charset_file(v3, v10, 0LL); return __readfsqword(0x28u); }
init_available_charsets: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX SUB RSP,0x300 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x18],RAX LEA RBX,[0xd02440] MOV EDX,0x4000 MOV RDI,RBX XOR ESI,ESI CALL 0x00129290 LEA RDI,[0xd064b0] MOV EDX,0x4000 XOR ESI,ESI CALL 0x00129290 LEA RAX,[0xd0b08c] MOV EDI,dword ptr [RAX] XORPS XMM0,XMM0 MOVUPS xmmword ptr [RSP + 0x10],XMM0 LEA RAX,[0x196587] MOV qword ptr [RSP + 0x8],RAX MOV dword ptr [RSP + 0x20],0x1 MOV qword ptr [RSP],0x0 LEA RSI,[0xd06440] LEA RCX,[0x4aef70] MOV R8D,0x40 MOV EDX,0x10 XOR R9D,R9D CALL 0x00196859 XOR EDI,EDI CALL 0x001aad58 MOV R14,-0x8 LAB_001954cf: MOV RDI,qword ptr [RBX + R14*0x1 + 0x8] TEST RDI,RDI JZ 0x001954f2 CMP qword ptr [RDI + 0x40],0x0 JZ 0x001954f2 CALL 0x001963d2 TEST AL,AL JZ 0x001954f2 MOV qword ptr [RBX + R14*0x1 + 0x8],0x0 LAB_001954f2: ADD R14,0x8 CMP R14,0x3ff0 JC 0x001954cf LEA RBX,[RBP + -0x2e0] MOV byte ptr [RBX],0x0 LEA RAX,[0x194c62] MOV qword ptr [RBX + 0x80],RAX LEA RAX,[0x194c71] MOV qword ptr [RBX + 0x88],RAX LEA RAX,[0x194c8c] MOV qword ptr [RBX + 0x90],RAX LEA RAX,[0x1a2cc2] MOV qword ptr [RBX + 0x98],RAX LEA RAX,[0x488748] MOV RAX,qword ptr [RAX] MOV qword ptr [RBX + 0xa0],RAX LEA RAX,[0x194caa] MOV qword ptr [RBX + 0xa8],RAX LEA R14,[RBP + -0x230] MOV RDI,R14 CALL 0x001951ef MOV RCX,0x6d782e7865646e49 MOV qword ptr [RAX],RCX MOV word ptr [RAX + 0x8],0x6c MOV RDI,RBX MOV RSI,R14 XOR EDX,EDX CALL 0x00196598 MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x18] JNZ 0x001955aa ADD RSP,0x300 POP RBX POP R14 POP RBP RET LAB_001955aa: CALL 0x00129240
void init_available_charsets(void) { char cVar1; int8 *puVar2; ulong uVar3; long in_FS_OFFSET; int1 local_2e8 [128]; code *local_268; code *local_260; code *local_258; code *local_250; int *local_248; code *local_240; int1 local_238 [536]; long local_20; local_20 = *(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); uVar3 = 0xfffffffffffffff8; do { if ((*(long *)((long)&DAT_00d02448 + uVar3) != 0) && (*(long *)(*(long *)((long)&DAT_00d02448 + uVar3) + 0x40) != 0)) { cVar1 = init_state_maps(); if (cVar1 != '\0') { *(int8 *)((long)&DAT_00d02448 + uVar3) = 0; } } uVar3 = uVar3 + 8; } while (uVar3 < 0x3ff0); local_2e8[0] = 0; local_268 = my_once_alloc_c; local_260 = my_malloc_c; local_258 = my_realloc_c; local_250 = my_free; local_248 = my_charset_error_reporter; local_240 = add_collation; puVar2 = (int8 *)get_charsets_dir(local_238); *puVar2 = 0x6d782e7865646e49; *(int2 *)(puVar2 + 1) = 0x6c; my_read_charset_file(local_2e8,local_238,0); if (*(long *)(in_FS_OFFSET + 0x28) == local_20) { return; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
53,108
diagnostic_info
tsotchke[P]eshkol/src/core/diagnostics/diagnostics.c
void diagnostic_info(DiagnosticContext* context, int line, int column, const char* message) { assert(context != NULL); assert(message != NULL); // Only add info messages if verbosity is verbose or debug if (context->verbosity >= VERBOSITY_VERBOSE) { // Create source location SourceLocation location = source_location_create(NULL, line, column, 0); // Add diagnostic diagnostic_context_add(context, DIAGNOSTIC_INFO, location, message, NULL); } }
O0
c
diagnostic_info: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movq %rcx, -0x18(%rbp) cmpq $0x0, -0x8(%rbp) je 0x328f jmp 0x32ae leaq 0xe63(%rip), %rdi # 0x40f9 leaq 0x194f(%rip), %rsi # 0x4bec movl $0xf2, %edx leaq 0x1d34(%rip), %rcx # 0x4fdd callq 0x1070 cmpq $0x0, -0x18(%rbp) je 0x32b7 jmp 0x32d6 leaq 0x1a32(%rip), %rdi # 0x4cf0 leaq 0x1927(%rip), %rsi # 0x4bec movl $0xf3, %edx leaq 0x1d0c(%rip), %rcx # 0x4fdd callq 0x1070 movq -0x8(%rbp), %rax cmpl $0x1, 0x28(%rax) jb 0x3324 movl -0xc(%rbp), %edx movl -0x10(%rbp), %ecx leaq -0x30(%rbp), %rdi xorl %eax, %eax movl %eax, %esi xorl %r8d, %r8d callq 0x2a30 movq -0x8(%rbp), %rdi movq -0x18(%rbp), %rdx xorl %esi, %esi leaq -0x30(%rbp), %rax xorl %ecx, %ecx movq (%rax), %r8 movq %r8, (%rsp) movq 0x8(%rax), %r8 movq %r8, 0x8(%rsp) movq 0x10(%rax), %rax movq %rax, 0x10(%rsp) callq 0x2b10 addq $0x50, %rsp popq %rbp retq nopw (%rax,%rax)
diagnostic_info: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_10], edx mov [rbp+var_18], rcx cmp [rbp+var_8], 0 jz short loc_328F jmp short loc_32AE loc_328F: lea rdi, aContextNull; "context != NULL" lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... mov edx, 0F2h lea rcx, aVoidDiagnostic_3; "void diagnostic_info(DiagnosticContext "... call ___assert_fail loc_32AE: cmp [rbp+var_18], 0 jz short loc_32B7 jmp short loc_32D6 loc_32B7: lea rdi, aMessageNull; "message != NULL" lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... mov edx, 0F3h lea rcx, aVoidDiagnostic_3; "void diagnostic_info(DiagnosticContext "... call ___assert_fail loc_32D6: mov rax, [rbp+var_8] cmp dword ptr [rax+28h], 1 jb short loc_3324 mov edx, [rbp+var_C] mov ecx, [rbp+var_10] lea rdi, [rbp+var_30] xor eax, eax mov esi, eax xor r8d, r8d call source_location_create mov rdi, [rbp+var_8] mov rdx, [rbp+var_18] xor esi, esi lea rax, [rbp+var_30] xor ecx, ecx mov r8, [rax] mov [rsp+50h+var_50], r8 mov r8, [rax+8] mov [rsp+50h+var_48], r8 mov rax, [rax+10h] mov [rsp+50h+var_40], rax call diagnostic_context_add loc_3324: add rsp, 50h pop rbp retn
long long * diagnostic_info(long long *a1, int a2, int a3, long long a4) { long long *result; // rax int v5; // r9d long long v6; // [rsp+20h] [rbp-30h] BYREF long long v7; // [rsp+28h] [rbp-28h] long long v8; // [rsp+30h] [rbp-20h] long long v9; // [rsp+38h] [rbp-18h] int v10; // [rsp+40h] [rbp-10h] int v11; // [rsp+44h] [rbp-Ch] long long *v12; // [rsp+48h] [rbp-8h] v12 = a1; v11 = a2; v10 = a3; v9 = a4; if ( !a1 ) __assert_fail( "context != NULL", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/diagnostics/diagnostics.c", 242LL, "void diagnostic_info(DiagnosticContext *, int, int, const char *)"); if ( !v9 ) __assert_fail( "message != NULL", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/diagnostics/diagnostics.c", 243LL, "void diagnostic_info(DiagnosticContext *, int, int, const char *)"); result = v12; if ( *((_DWORD *)v12 + 10) ) { source_location_create((long long)&v6, 0LL, v11, v10, 0); return (long long *)diagnostic_context_add(v12, 0, v9, 0LL, v7, v5, v6, v7, v8); } return result; }
diagnostic_info: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV dword ptr [RBP + -0x10],EDX MOV qword ptr [RBP + -0x18],RCX CMP qword ptr [RBP + -0x8],0x0 JZ 0x0010328f JMP 0x001032ae LAB_0010328f: LEA RDI,[0x1040e7] LEA RSI,[0x104bc8] MOV EDX,0xf2 LEA RCX,[0x104fa7] CALL 0x00101070 LAB_001032ae: CMP qword ptr [RBP + -0x18],0x0 JZ 0x001032b7 JMP 0x001032d6 LAB_001032b7: LEA RDI,[0x104cba] LEA RSI,[0x104bc8] MOV EDX,0xf3 LEA RCX,[0x104fa7] CALL 0x00101070 LAB_001032d6: MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x28],0x1 JC 0x00103324 MOV EDX,dword ptr [RBP + -0xc] MOV ECX,dword ptr [RBP + -0x10] LEA RDI,[RBP + -0x30] XOR EAX,EAX MOV ESI,EAX XOR R8D,R8D CALL 0x00102a30 MOV RDI,qword ptr [RBP + -0x8] MOV RDX,qword ptr [RBP + -0x18] XOR ESI,ESI LEA RAX,[RBP + -0x30] XOR ECX,ECX MOV R8,qword ptr [RAX] MOV qword ptr [RSP],R8 MOV R8,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x8],R8 MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0x10],RAX CALL 0x00102b10 LAB_00103324: ADD RSP,0x50 POP RBP RET
void diagnostic_info(long param_1,int4 param_2,int4 param_3,long param_4, int8 param_5,int8 param_6) { int8 local_38; int8 local_30; int8 local_28; long local_20; int4 local_18; int4 local_14; long local_10; local_20 = param_4; local_18 = param_3; local_14 = param_2; local_10 = param_1; if (param_1 == 0) { /* WARNING: Subroutine does not return */ __assert_fail("context != NULL", "/workspace/llm4binary/github2025/eshkol/src/core/diagnostics/diagnostics.c",0xf2, "void diagnostic_info(DiagnosticContext *, int, int, const char *)"); } if (param_4 != 0) { if (*(int *)(param_1 + 0x28) != 0) { source_location_create(&local_38,0,param_2,param_3,0); diagnostic_context_add(local_10,0,local_20,0,local_30,param_6,local_38,local_30,local_28); } return; } /* WARNING: Subroutine does not return */ __assert_fail("message != NULL", "/workspace/llm4binary/github2025/eshkol/src/core/diagnostics/diagnostics.c",0xf3, "void diagnostic_info(DiagnosticContext *, int, int, const char *)"); }
53,109
js_typed_array_get_byteOffset
bluesky950520[P]quickjs/quickjs.c
static JSValue js_typed_array_get_byteOffset(JSContext *ctx, JSValue this_val) { JSObject *p; JSTypedArray *ta; p = get_typed_array(ctx, this_val); if (!p) return JS_EXCEPTION; if (typed_array_is_oob(p)) return js_int32(0); ta = p->u.typed_array; return js_uint32(ta->offset); }
O0
c
js_typed_array_get_byteOffset: subq $0x38, %rsp movq %rsi, 0x18(%rsp) movq %rdx, 0x20(%rsp) movq %rdi, 0x10(%rsp) movq 0x10(%rsp), %rdi movq 0x18(%rsp), %rsi movq 0x20(%rsp), %rdx callq 0x5ec30 movq %rax, 0x8(%rsp) cmpq $0x0, 0x8(%rsp) jne 0xe5477 movl $0x0, 0x28(%rsp) movq $0x6, 0x30(%rsp) jmp 0xe54bc movq 0x8(%rsp), %rdi callq 0x5ecc0 cmpl $0x0, %eax je 0xe5499 xorl %edi, %edi callq 0x39fb0 movq %rax, 0x28(%rsp) movq %rdx, 0x30(%rsp) jmp 0xe54bc movq 0x8(%rsp), %rax movq 0x30(%rax), %rax movq %rax, (%rsp) movq (%rsp), %rax movl 0x20(%rax), %edi callq 0x39e50 movq %rax, 0x28(%rsp) movq %rdx, 0x30(%rsp) movq 0x28(%rsp), %rax movq 0x30(%rsp), %rdx addq $0x38, %rsp retq nopl (%rax,%rax)
js_typed_array_get_byteOffset: sub rsp, 38h mov [rsp+38h+var_20], rsi mov [rsp+38h+var_18], rdx mov [rsp+38h+var_28], rdi mov rdi, [rsp+38h+var_28] mov rsi, [rsp+38h+var_20] mov rdx, [rsp+38h+var_18] call get_typed_array mov [rsp+38h+var_30], rax cmp [rsp+38h+var_30], 0 jnz short loc_E5477 mov dword ptr [rsp+38h+var_10], 0 mov [rsp+38h+var_8], 6 jmp short loc_E54BC loc_E5477: mov rdi, [rsp+38h+var_30] call typed_array_is_oob cmp eax, 0 jz short loc_E5499 xor edi, edi call js_int32 mov [rsp+38h+var_10], rax mov [rsp+38h+var_8], rdx jmp short loc_E54BC loc_E5499: mov rax, [rsp+38h+var_30] mov rax, [rax+30h] mov [rsp+38h+var_38], rax mov rax, [rsp+38h+var_38] mov edi, [rax+20h] call js_uint32 mov [rsp+38h+var_10], rax mov [rsp+38h+var_8], rdx loc_E54BC: mov rax, [rsp+38h+var_10] mov rdx, [rsp+38h+var_8] add rsp, 38h retn
long long js_typed_array_get_byteOffset( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { long long typed_array; // [rsp+8h] [rbp-30h] long long v16; // [rsp+28h] [rbp-10h] typed_array = get_typed_array(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14); if ( typed_array ) { if ( typed_array_is_oob(typed_array) ) return js_int32(0); else return js_uint32(*(_DWORD *)(*(_QWORD *)(typed_array + 48) + 32LL)); } else { LODWORD(v16) = 0; } return v16; }
js_typed_array_get_byteOffset: SUB RSP,0x38 MOV qword ptr [RSP + 0x18],RSI MOV qword ptr [RSP + 0x20],RDX MOV qword ptr [RSP + 0x10],RDI MOV RDI,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RSP + 0x18] MOV RDX,qword ptr [RSP + 0x20] CALL 0x0015ec30 MOV qword ptr [RSP + 0x8],RAX CMP qword ptr [RSP + 0x8],0x0 JNZ 0x001e5477 MOV dword ptr [RSP + 0x28],0x0 MOV qword ptr [RSP + 0x30],0x6 JMP 0x001e54bc LAB_001e5477: MOV RDI,qword ptr [RSP + 0x8] CALL 0x0015ecc0 CMP EAX,0x0 JZ 0x001e5499 XOR EDI,EDI CALL 0x00139fb0 MOV qword ptr [RSP + 0x28],RAX MOV qword ptr [RSP + 0x30],RDX JMP 0x001e54bc LAB_001e5499: MOV RAX,qword ptr [RSP + 0x8] MOV RAX,qword ptr [RAX + 0x30] MOV qword ptr [RSP],RAX MOV RAX,qword ptr [RSP] MOV EDI,dword ptr [RAX + 0x20] CALL 0x00139e50 MOV qword ptr [RSP + 0x28],RAX MOV qword ptr [RSP + 0x30],RDX LAB_001e54bc: MOV RAX,qword ptr [RSP + 0x28] MOV RDX,qword ptr [RSP + 0x30] ADD RSP,0x38 RET
int1 [16] js_typed_array_get_byteOffset(int8 param_1,int8 param_2,int8 param_3) { int iVar1; long lVar2; int1 auVar3 [16]; int4 local_10; int4 uStack_c; int8 local_8; lVar2 = get_typed_array(param_1,param_2,param_3); if (lVar2 == 0) { local_10 = 0; local_8 = 6; } else { iVar1 = typed_array_is_oob(lVar2); if (iVar1 == 0) { auVar3 = js_uint32(*(int4 *)(*(long *)(lVar2 + 0x30) + 0x20)); local_8 = auVar3._8_8_; local_10 = auVar3._0_4_; uStack_c = auVar3._4_4_; } else { auVar3 = js_int32(0); local_8 = auVar3._8_8_; local_10 = auVar3._0_4_; uStack_c = auVar3._4_4_; } } auVar3._4_4_ = uStack_c; auVar3._0_4_ = local_10; auVar3._8_8_ = local_8; return auVar3; }
53,110
js_typed_array_get_byteOffset
bluesky950520[P]quickjs/quickjs.c
static JSValue js_typed_array_get_byteOffset(JSContext *ctx, JSValue this_val) { JSObject *p; JSTypedArray *ta; p = get_typed_array(ctx, this_val); if (!p) return JS_EXCEPTION; if (typed_array_is_oob(p)) return js_int32(0); ta = p->u.typed_array; return js_uint32(ta->offset); }
O2
c
js_typed_array_get_byteOffset: pushq %rbx callq 0x363bb testq %rax, %rax je 0x6fd98 movq %rax, %rbx movq %rax, %rdi callq 0x363e6 testl %eax, %eax je 0x6fda1 xorl %eax, %eax xorl %ecx, %ecx xorl %edx, %edx jmp 0x6fdd4 pushq $0x6 popq %rdx xorl %eax, %eax xorl %ecx, %ecx jmp 0x6fdd4 movq 0x30(%rbx), %rax movslq 0x20(%rax), %rax xorl %ecx, %ecx movl %eax, %edx cvtsi2sd %rdx, %xmm0 testq %rax, %rax movq %xmm0, %rsi cmovnsq %rax, %rsi pushq $0x7 popq %rdx cmovnsq %rcx, %rdx movabsq $0x7fffffff00000000, %rcx # imm = 0x7FFFFFFF00000000 andq %rsi, %rcx movl %esi, %eax orq %rcx, %rax popq %rbx retq
js_typed_array_get_byteOffset: push rbx call get_typed_array test rax, rax jz short loc_6FD98 mov rbx, rax mov rdi, rax call typed_array_is_oob test eax, eax jz short loc_6FDA1 xor eax, eax xor ecx, ecx xor edx, edx jmp short loc_6FDD4 loc_6FD98: push 6 pop rdx xor eax, eax xor ecx, ecx jmp short loc_6FDD4 loc_6FDA1: mov rax, [rbx+30h] movsxd rax, dword ptr [rax+20h] xor ecx, ecx mov edx, eax cvtsi2sd xmm0, rdx test rax, rax movq rsi, xmm0 cmovns rsi, rax push 7 pop rdx cmovns rdx, rcx mov rcx, 7FFFFFFF00000000h and rcx, rsi mov eax, esi loc_6FDD4: or rax, rcx pop rbx retn
long long js_typed_array_get_byteOffset( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { long long typed_array; // rax long long v15; // rbx long long v16; // rax long long v17; // rcx double v18; // rsi typed_array = get_typed_array(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14); if ( typed_array ) { v15 = typed_array; if ( typed_array_is_oob(typed_array) ) { v16 = 0LL; v17 = 0LL; } else { v18 = (double)*(int *)(*(_QWORD *)(v15 + 48) + 32LL); if ( *(int *)(*(_QWORD *)(v15 + 48) + 32LL) >= 0LL ) *(_QWORD *)&v18 = *(int *)(*(_QWORD *)(v15 + 48) + 32LL); v17 = *(_QWORD *)&v18 & 0x7FFFFFFF00000000LL; v16 = LODWORD(v18); } } else { v16 = 0LL; v17 = 0LL; } return v17 | v16; }
js_typed_array_get_byteOffset: PUSH RBX CALL 0x001363bb TEST RAX,RAX JZ 0x0016fd98 MOV RBX,RAX MOV RDI,RAX CALL 0x001363e6 TEST EAX,EAX JZ 0x0016fda1 XOR EAX,EAX XOR ECX,ECX XOR EDX,EDX JMP 0x0016fdd4 LAB_0016fd98: PUSH 0x6 POP RDX XOR EAX,EAX XOR ECX,ECX JMP 0x0016fdd4 LAB_0016fda1: MOV RAX,qword ptr [RBX + 0x30] MOVSXD RAX,dword ptr [RAX + 0x20] XOR ECX,ECX MOV EDX,EAX CVTSI2SD XMM0,RDX TEST RAX,RAX MOVQ RSI,XMM0 CMOVNS RSI,RAX PUSH 0x7 POP RDX CMOVNS RDX,RCX MOV RCX,0x7fffffff00000000 AND RCX,RSI MOV EAX,ESI LAB_0016fdd4: OR RAX,RCX POP RBX RET
int1 [16] js_typed_array_get_byteOffset(void) { uint uVar1; int iVar2; long lVar3; ulong uVar4; double dVar5; ulong uVar6; int8 uVar7; double dVar8; int1 auVar9 [16]; lVar3 = get_typed_array(); if (lVar3 == 0) { uVar7 = 6; uVar4 = 0; uVar6 = 0; } else { iVar2 = typed_array_is_oob(lVar3); if (iVar2 == 0) { uVar1 = *(uint *)(*(long *)(lVar3 + 0x30) + 0x20); dVar5 = (double)(long)(int)uVar1; dVar8 = (double)uVar1; if (-1 < (long)dVar5) { dVar8 = dVar5; } uVar7 = 7; if (-1 < (long)dVar5) { uVar7 = 0; } uVar6 = (ulong)dVar8 & 0x7fffffff00000000; uVar4 = (ulong)dVar8 & 0xffffffff; } else { uVar4 = 0; uVar6 = 0; uVar7 = 0; } } auVar9._0_8_ = uVar4 | uVar6; auVar9._8_8_ = uVar7; return auVar9; }
53,111
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> const>>::~iteration_proxy_value()
monkey531[P]llama/common/json.hpp
~iteration_proxy_value() = default;
O1
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> const>>::~iteration_proxy_value(): pushq %rbx movq %rdi, %rbx movq 0x50(%rdi), %rdi leaq 0x60(%rbx), %rax cmpq %rax, %rdi je 0xac720 movq (%rax), %rsi incq %rsi callq 0x1b8e0 movq 0x30(%rbx), %rdi addq $0x40, %rbx cmpq %rbx, %rdi je 0xac739 movq (%rbx), %rsi incq %rsi popq %rbx jmp 0x1b8e0 popq %rbx retq nop
_ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEED2Ev: push rbx mov rbx, rdi mov rdi, [rdi+50h]; void * lea rax, [rbx+60h] cmp rdi, rax jz short loc_AC720 mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_AC720: mov rdi, [rbx+30h]; void * add rbx, 40h ; '@' cmp rdi, rbx jz short loc_AC739 mov rsi, [rbx] inc rsi; unsigned __int64 pop rbx jmp __ZdlPvm; operator delete(void *,ulong) loc_AC739: pop rbx retn
void 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> const>>::~iteration_proxy_value( _QWORD *a1) { _QWORD *v2; // rdi _QWORD *v3; // rdi _QWORD *v4; // rbx v2 = (_QWORD *)a1[10]; if ( v2 != a1 + 12 ) operator delete(v2, a1[12] + 1LL); v3 = (_QWORD *)a1[6]; v4 = a1 + 8; if ( v3 != v4 ) operator delete(v3, *v4 + 1LL); }
~iteration_proxy_value: PUSH RBX MOV RBX,RDI MOV RDI,qword ptr [RDI + 0x50] LEA RAX,[RBX + 0x60] CMP RDI,RAX JZ 0x001ac720 MOV RSI,qword ptr [RAX] INC RSI CALL 0x0011b8e0 LAB_001ac720: MOV RDI,qword ptr [RBX + 0x30] ADD RBX,0x40 CMP RDI,RBX JZ 0x001ac739 MOV RSI,qword ptr [RBX] INC RSI POP RBX JMP 0x0011b8e0 LAB_001ac739: 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> const> >::~iteration_proxy_value() */ 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>const>> ::~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>const>> *this) { if (*(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>const>> **)(this + 0x50) != this + 0x60) { operator_delete(*(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>const>> **)(this + 0x50),*(long *)(this + 0x60) + 1); } if (*(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>const>> **)(this + 0x30) != this + 0x40) { operator_delete(*(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>const>> **)(this + 0x30),*(long *)(this + 0x40) + 1); return; } return; }
53,112
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> const>>::~iteration_proxy_value()
monkey531[P]llama/common/json.hpp
~iteration_proxy_value() = default;
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> const>>::~iteration_proxy_value(): pushq %rbx movq %rdi, %rbx movq 0x50(%rdi), %rdi leaq 0x60(%rbx), %rax cmpq %rax, %rdi je 0xadb40 movq (%rax), %rsi incq %rsi callq 0x1a8e0 movq 0x30(%rbx), %rdi addq $0x40, %rbx cmpq %rbx, %rdi je 0xadb59 movq (%rbx), %rsi incq %rsi popq %rbx jmp 0x1a8e0 popq %rbx retq nop
_ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEED2Ev: push rbx mov rbx, rdi mov rdi, [rdi+50h]; void * lea rax, [rbx+60h] cmp rdi, rax jz short loc_ADB40 mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_ADB40: mov rdi, [rbx+30h]; void * add rbx, 40h ; '@' cmp rdi, rbx jz short loc_ADB59 mov rsi, [rbx] inc rsi; unsigned __int64 pop rbx jmp __ZdlPvm; operator delete(void *,ulong) loc_ADB59: pop rbx retn
void 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( _QWORD *a1) { _QWORD *v2; // rdi _QWORD *v3; // rdi _QWORD *v4; // rbx v2 = (_QWORD *)a1[10]; if ( v2 != a1 + 12 ) operator delete(v2, a1[12] + 1LL); v3 = (_QWORD *)a1[6]; v4 = a1 + 8; if ( v3 != v4 ) operator delete(v3, *v4 + 1LL); }
~iteration_proxy_value: PUSH RBX MOV RBX,RDI MOV RDI,qword ptr [RDI + 0x50] LEA RAX,[RBX + 0x60] CMP RDI,RAX JZ 0x001adb40 MOV RSI,qword ptr [RAX] INC RSI CALL 0x0011a8e0 LAB_001adb40: MOV RDI,qword ptr [RBX + 0x30] ADD RBX,0x40 CMP RDI,RBX JZ 0x001adb59 MOV RSI,qword ptr [RBX] INC RSI POP RBX JMP 0x0011a8e0 LAB_001adb59: 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() */ 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) { if (*(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) { operator_delete(*(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),*(long *)(this + 0x60) + 1); } if (*(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) { operator_delete(*(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),*(long *)(this + 0x40) + 1); return; } return; }
53,113
LefDefParser::defwEndIOTimings()
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defwWriter.cpp
int defwEndIOTimings() { defwFunc = DEFW_IOTIMING_END; // Current function of writer if (!defwFile) return DEFW_UNINITIALIZED; if (defwState != DEFW_IOTIMING_START && defwState != DEFW_IOTIMING) return DEFW_BAD_ORDER; if (defwCounter > 0) return DEFW_BAD_DATA; else if (defwCounter < 0) return DEFW_TOO_MANY_STMS; if (defwState == DEFW_IOTIMING) fprintf(defwFile, " ;\n"); // from previous statement fprintf(defwFile, "END IOTIMINGS\n\n"); defwLines++; defwState = DEFW_IOTIMING_END; return DEFW_OK; }
O0
cpp
LefDefParser::defwEndIOTimings(): pushq %rax leaq 0xf1b0(%rip), %rax # 0x2b168 movl $0x42, (%rax) leaq 0xf193(%rip), %rax # 0x2b158 cmpq $0x0, (%rax) jne 0x1bfd8 movl $0x1, 0x4(%rsp) jmp 0x1c091 leaq 0xf185(%rip), %rax # 0x2b164 cmpl $0x40, (%rax) je 0x1bffd leaq 0xf179(%rip), %rax # 0x2b164 cmpl $0x41, (%rax) je 0x1bffd movl $0x2, 0x4(%rsp) jmp 0x1c091 leaq 0xf174(%rip), %rax # 0x2b178 cmpl $0x0, (%rax) jle 0x1c013 movl $0x3, 0x4(%rsp) jmp 0x1c091 leaq 0xf15e(%rip), %rax # 0x2b178 cmpl $0x0, (%rax) jge 0x1c029 movl $0x7, 0x4(%rsp) jmp 0x1c091 jmp 0x1c02b leaq 0xf132(%rip), %rax # 0x2b164 cmpl $0x41, (%rax) jne 0x1c04f leaq 0xf11a(%rip), %rax # 0x2b158 movq (%rax), %rdi leaq 0x7e0a(%rip), %rsi # 0x23e52 movb $0x0, %al callq 0x10f0 leaq 0xf102(%rip), %rax # 0x2b158 movq (%rax), %rdi leaq 0x8dcc(%rip), %rsi # 0x24e2c movb $0x0, %al callq 0x10f0 leaq 0xf0f2(%rip), %rax # 0x2b160 movl (%rax), %ecx addl $0x1, %ecx leaq 0xf0e6(%rip), %rax # 0x2b160 movl %ecx, (%rax) leaq 0xf0e1(%rip), %rax # 0x2b164 movl $0x42, (%rax) movl $0x0, 0x4(%rsp) movl 0x4(%rsp), %eax popq %rcx retq nopw (%rax,%rax)
_ZN12LefDefParser16defwEndIOTimingsEv: push rax lea rax, _ZN12LefDefParser8defwFuncE; LefDefParser::defwFunc mov dword ptr [rax], 42h ; 'B' lea rax, _ZN12LefDefParser8defwFileE; LefDefParser::defwFile cmp qword ptr [rax], 0 jnz short loc_1BFD8 mov [rsp+8+var_4], 1 jmp loc_1C091 loc_1BFD8: lea rax, _ZN12LefDefParser9defwStateE; LefDefParser::defwState cmp dword ptr [rax], 40h ; '@' jz short loc_1BFFD lea rax, _ZN12LefDefParser9defwStateE; LefDefParser::defwState cmp dword ptr [rax], 41h ; 'A' jz short loc_1BFFD mov [rsp+8+var_4], 2 jmp loc_1C091 loc_1BFFD: lea rax, _ZN12LefDefParser11defwCounterE; LefDefParser::defwCounter cmp dword ptr [rax], 0 jle short loc_1C013 mov [rsp+8+var_4], 3 jmp short loc_1C091 loc_1C013: lea rax, _ZN12LefDefParser11defwCounterE; LefDefParser::defwCounter cmp dword ptr [rax], 0 jge short loc_1C029 mov [rsp+8+var_4], 7 jmp short loc_1C091 loc_1C029: jmp short $+2 loc_1C02B: lea rax, _ZN12LefDefParser9defwStateE; LefDefParser::defwState cmp dword ptr [rax], 41h ; 'A' jnz short loc_1C04F lea rax, _ZN12LefDefParser8defwFileE; LefDefParser::defwFile mov rdi, [rax] lea rsi, aDividercharS+10h; " ;\n" mov al, 0 call _fprintf loc_1C04F: lea rax, _ZN12LefDefParser8defwFileE; LefDefParser::defwFile mov rdi, [rax] lea rsi, aEndIotimings; "END IOTIMINGS\n\n" mov al, 0 call _fprintf lea rax, _ZN12LefDefParser9defwLinesE; LefDefParser::defwLines mov ecx, [rax] add ecx, 1 lea rax, _ZN12LefDefParser9defwLinesE; LefDefParser::defwLines mov [rax], ecx lea rax, _ZN12LefDefParser9defwStateE; LefDefParser::defwState mov dword ptr [rax], 42h ; 'B' mov [rsp+8+var_4], 0 loc_1C091: mov eax, [rsp+8+var_4] pop rcx retn
long long LefDefParser::defwEndIOTimings(LefDefParser *this) { LefDefParser::defwFunc = 66; if ( LefDefParser::defwFile ) { if ( LefDefParser::defwState == 64 || LefDefParser::defwState == 65 ) { if ( LefDefParser::defwCounter <= 0 ) { if ( LefDefParser::defwCounter >= 0 ) { if ( LefDefParser::defwState == 65 ) fprintf(LefDefParser::defwFile, " ;\n"); fprintf(LefDefParser::defwFile, "END IOTIMINGS\n\n"); ++LefDefParser::defwLines; LefDefParser::defwState = 66; return 0; } else { return 7; } } else { return 3; } } else { return 2; } } else { return 1; } }
defwEndIOTimings: PUSH RAX LEA RAX,[0x12b168] MOV dword ptr [RAX],0x42 LEA RAX,[0x12b158] CMP qword ptr [RAX],0x0 JNZ 0x0011bfd8 MOV dword ptr [RSP + 0x4],0x1 JMP 0x0011c091 LAB_0011bfd8: LEA RAX,[0x12b164] CMP dword ptr [RAX],0x40 JZ 0x0011bffd LEA RAX,[0x12b164] CMP dword ptr [RAX],0x41 JZ 0x0011bffd MOV dword ptr [RSP + 0x4],0x2 JMP 0x0011c091 LAB_0011bffd: LEA RAX,[0x12b178] CMP dword ptr [RAX],0x0 JLE 0x0011c013 MOV dword ptr [RSP + 0x4],0x3 JMP 0x0011c091 LAB_0011c013: LEA RAX,[0x12b178] CMP dword ptr [RAX],0x0 JGE 0x0011c029 MOV dword ptr [RSP + 0x4],0x7 JMP 0x0011c091 LAB_0011c029: JMP 0x0011c02b LAB_0011c02b: LEA RAX,[0x12b164] CMP dword ptr [RAX],0x41 JNZ 0x0011c04f LEA RAX,[0x12b158] MOV RDI,qword ptr [RAX] LEA RSI,[0x123e52] MOV AL,0x0 CALL 0x001010f0 LAB_0011c04f: LEA RAX,[0x12b158] MOV RDI,qword ptr [RAX] LEA RSI,[0x124e2c] MOV AL,0x0 CALL 0x001010f0 LEA RAX,[0x12b160] MOV ECX,dword ptr [RAX] ADD ECX,0x1 LEA RAX,[0x12b160] MOV dword ptr [RAX],ECX LEA RAX,[0x12b164] MOV dword ptr [RAX],0x42 MOV dword ptr [RSP + 0x4],0x0 LAB_0011c091: MOV EAX,dword ptr [RSP + 0x4] POP RCX RET
/* LefDefParser::defwEndIOTimings() */ int4 LefDefParser::defwEndIOTimings(void) { int4 local_4; defwFunc = 0x42; if (defwFile == (FILE *)0x0) { local_4 = 1; } else if ((defwState == 0x40) || (defwState == 0x41)) { if (defwCounter < 1) { if (defwCounter < 0) { local_4 = 7; } else { if (defwState == 0x41) { fprintf(defwFile," ;\n"); } fprintf(defwFile,"END IOTIMINGS\n\n"); defwLines = defwLines + 1; defwState = 0x42; local_4 = 0; } } else { local_4 = 3; } } else { local_4 = 2; } return local_4; }
53,114
Settings::clearShips()
666mxvbee[P]BattleShip/lib/Settings/Settings.cpp
void Settings::clearShips() { std::lock_guard<std::mutex> lock(settings_mutex); masterShips.clear(); slaveShips.clear(); }
O1
cpp
Settings::clearShips(): pushq %rbx movq %rdi, %rbx callq 0x5520 testl %eax, %eax jne 0x7250 leaq 0x90(%rbx), %rdi movq 0x90(%rbx), %rsi callq 0x15084 leaq 0xa8(%rbx), %rdi movq 0xa8(%rbx), %rsi callq 0x15084 movq %rbx, %rdi popq %rbx jmp 0x52f0 movl %eax, %edi callq 0x5260 nop
_ZN8Settings10clearShipsEv: push rbx mov rbx, rdi call _pthread_mutex_lock test eax, eax jnz short loc_7250 lea rdi, [rbx+90h] mov rsi, [rbx+90h] call _ZNSt6vectorI4ShipSaIS0_EE15_M_erase_at_endEPS0_; std::vector<Ship>::_M_erase_at_end(Ship*) lea rdi, [rbx+0A8h] mov rsi, [rbx+0A8h] call _ZNSt6vectorI4ShipSaIS0_EE15_M_erase_at_endEPS0_; std::vector<Ship>::_M_erase_at_end(Ship*) mov rdi, rbx pop rbx jmp _pthread_mutex_unlock loc_7250: mov edi, eax; int call __ZSt20__throw_system_errori; std::__throw_system_error(int)
long long Settings::clearShips(Settings *this) { int v1; // eax v1 = pthread_mutex_lock(this); if ( v1 ) std::__throw_system_error(v1); std::vector<Ship>::_M_erase_at_end((char *)this + 144, *((_QWORD *)this + 18)); std::vector<Ship>::_M_erase_at_end((char *)this + 168, *((_QWORD *)this + 21)); return pthread_mutex_unlock(this); }
clearShips: PUSH RBX MOV RBX,RDI CALL 0x00105520 TEST EAX,EAX JNZ 0x00107250 LEA RDI,[RBX + 0x90] MOV RSI,qword ptr [RBX + 0x90] CALL 0x00115084 LEA RDI,[RBX + 0xa8] MOV RSI,qword ptr [RBX + 0xa8] CALL 0x00115084 MOV RDI,RBX POP RBX JMP 0x001052f0 LAB_00107250: MOV EDI,EAX CALL 0x00105260
/* Settings::clearShips() */ void __thiscall Settings::clearShips(Settings *this) { int iVar1; iVar1 = pthread_mutex_lock((pthread_mutex_t *)this); if (iVar1 == 0) { std::vector<Ship,std::allocator<Ship>>::_M_erase_at_end ((vector<Ship,std::allocator<Ship>> *)(this + 0x90),*(Ship **)(this + 0x90)); std::vector<Ship,std::allocator<Ship>>::_M_erase_at_end ((vector<Ship,std::allocator<Ship>> *)(this + 0xa8),*(Ship **)(this + 0xa8)); pthread_mutex_unlock((pthread_mutex_t *)this); return; } /* WARNING: Subroutine does not return */ std::__throw_system_error(iVar1); }
53,115
Settings::clearShips()
666mxvbee[P]BattleShip/lib/Settings/Settings.cpp
void Settings::clearShips() { std::lock_guard<std::mutex> lock(settings_mutex); masterShips.clear(); slaveShips.clear(); }
O3
cpp
Settings::clearShips(): pushq %rbx movq %rdi, %rbx callq 0x5520 testl %eax, %eax jne 0x71fc leaq 0x90(%rbx), %rdi movq 0x90(%rbx), %rsi callq 0x1503e leaq 0xa8(%rbx), %rdi movq 0xa8(%rbx), %rsi callq 0x1503e movq %rbx, %rdi popq %rbx jmp 0x52f0 movl %eax, %edi callq 0x5260 nop
_ZN8Settings10clearShipsEv: push rbx mov rbx, rdi call _pthread_mutex_lock test eax, eax jnz short loc_71FC lea rdi, [rbx+90h] mov rsi, [rbx+90h] call _ZNSt6vectorI4ShipSaIS0_EE15_M_erase_at_endEPS0_; std::vector<Ship>::_M_erase_at_end(Ship*) lea rdi, [rbx+0A8h] mov rsi, [rbx+0A8h] call _ZNSt6vectorI4ShipSaIS0_EE15_M_erase_at_endEPS0_; std::vector<Ship>::_M_erase_at_end(Ship*) mov rdi, rbx pop rbx jmp _pthread_mutex_unlock loc_71FC: mov edi, eax; int call __ZSt20__throw_system_errori; std::__throw_system_error(int)
long long Settings::clearShips(Settings *this) { int v1; // eax v1 = pthread_mutex_lock(this); if ( v1 ) std::__throw_system_error(v1); std::vector<Ship>::_M_erase_at_end((char *)this + 144, *((_QWORD *)this + 18)); std::vector<Ship>::_M_erase_at_end((char *)this + 168, *((_QWORD *)this + 21)); return pthread_mutex_unlock(this); }
clearShips: PUSH RBX MOV RBX,RDI CALL 0x00105520 TEST EAX,EAX JNZ 0x001071fc LEA RDI,[RBX + 0x90] MOV RSI,qword ptr [RBX + 0x90] CALL 0x0011503e LEA RDI,[RBX + 0xa8] MOV RSI,qword ptr [RBX + 0xa8] CALL 0x0011503e MOV RDI,RBX POP RBX JMP 0x001052f0 LAB_001071fc: MOV EDI,EAX CALL 0x00105260
/* Settings::clearShips() */ void __thiscall Settings::clearShips(Settings *this) { int iVar1; iVar1 = pthread_mutex_lock((pthread_mutex_t *)this); if (iVar1 == 0) { std::vector<Ship,std::allocator<Ship>>::_M_erase_at_end ((vector<Ship,std::allocator<Ship>> *)(this + 0x90),*(Ship **)(this + 0x90)); std::vector<Ship,std::allocator<Ship>>::_M_erase_at_end ((vector<Ship,std::allocator<Ship>> *)(this + 0xa8),*(Ship **)(this + 0xa8)); pthread_mutex_unlock((pthread_mutex_t *)this); return; } /* WARNING: Subroutine does not return */ std::__throw_system_error(iVar1); }
53,116
ggml_print_objects
llama.cpp/ggml/src/ggml.c
void ggml_print_objects(const struct ggml_context * ctx) { struct ggml_object * obj = ctx->objects_begin; GGML_LOG_INFO("%s: objects in context %p:\n", __func__, (const void *) ctx); while (obj != NULL) { ggml_print_object(obj); obj = obj->next; } GGML_LOG_INFO("%s: --- end ---\n", __func__); }
O3
c
ggml_print_objects: pushq %r14 pushq %rbx pushq %rax movq %rdi, %rcx movq 0x18(%rdi), %r14 leaq 0x312f5(%rip), %rsi # 0x4a6a5 leaq 0x3130a(%rip), %rdx # 0x4a6c1 movl $0x2, %edi xorl %eax, %eax callq 0x16780 testq %r14, %r14 je 0x193f6 leaq 0x31296(%rip), %rbx # 0x4a665 movl 0x18(%r14), %edx movq (%r14), %rcx movq 0x8(%r14), %r8 movq 0x10(%r14), %r9 movl $0x2, %edi movq %rbx, %rsi xorl %eax, %eax callq 0x16780 movq 0x10(%r14), %r14 testq %r14, %r14 jne 0x193cf leaq 0x312d7(%rip), %rsi # 0x4a6d4 leaq 0x312bd(%rip), %rdx # 0x4a6c1 movl $0x2, %edi xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r14 jmp 0x16780
ggml_print_objects: push r14 push rbx push rax mov rcx, rdi mov r14, [rdi+18h] lea rsi, aSObjectsInCont; "%s: objects in context %p:\n" lea rdx, aGgmlPrintObjec_1; "ggml_print_objects" mov edi, 2 xor eax, eax call _ggml_log_internal test r14, r14 jz short loc_193F6 lea rbx, aGgmlObjectType; " - ggml_object: type = %d, offset = %zu"... loc_193CF: mov edx, [r14+18h] mov rcx, [r14] mov r8, [r14+8] mov r9, [r14+10h] mov edi, 2 mov rsi, rbx xor eax, eax call _ggml_log_internal mov r14, [r14+10h] test r14, r14 jnz short loc_193CF loc_193F6: lea rsi, aSEnd; "%s: --- end ---\n" lea rdx, aGgmlPrintObjec_1; "ggml_print_objects" mov edi, 2 xor eax, eax add rsp, 8 pop rbx pop r14 jmp _ggml_log_internal
long long ggml_print_objects( long long a1, __m128 a2, __m128 a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, long long a10, long long a11, long long a12, long long a13, long long a14) { long long v14; // r14 long long v15; // rcx long long v16; // r8 long long v17; // r9 __m128 v18; // xmm4 __m128 v19; // xmm5 v14 = *(_QWORD *)(a1 + 24); ggml_log_internal( 2u, (long long)"%s: objects in context %p:\n", (long long)"ggml_print_objects", a1, a13, a14, a2, a3, a4, a5, a6, a7, a8, a9); for ( ; v14; v14 = *(_QWORD *)(v14 + 16) ) ggml_log_internal( 2u, (long long)" - ggml_object: type = %d, offset = %zu, size = %zu, next = %p\n", *(unsigned int *)(v14 + 24), *(_QWORD *)v14, *(_QWORD *)(v14 + 8), *(_QWORD *)(v14 + 16), a2, a3, a4, a5, v18, v19, a8, a9); return ggml_log_internal( 2u, (long long)"%s: --- end ---\n", (long long)"ggml_print_objects", v15, v16, v17, a2, a3, a4, a5, v18, v19, a8, a9); }
ggml_print_objects: PUSH R14 PUSH RBX PUSH RAX MOV RCX,RDI MOV R14,qword ptr [RDI + 0x18] LEA RSI,[0x14a6a5] LEA RDX,[0x14a6c1] MOV EDI,0x2 XOR EAX,EAX CALL 0x00116780 TEST R14,R14 JZ 0x001193f6 LEA RBX,[0x14a665] LAB_001193cf: MOV EDX,dword ptr [R14 + 0x18] MOV RCX,qword ptr [R14] MOV R8,qword ptr [R14 + 0x8] MOV R9,qword ptr [R14 + 0x10] MOV EDI,0x2 MOV RSI,RBX XOR EAX,EAX CALL 0x00116780 MOV R14,qword ptr [R14 + 0x10] TEST R14,R14 JNZ 0x001193cf LAB_001193f6: LEA RSI,[0x14a6d4] LEA RDX,[0x14a6c1] MOV EDI,0x2 XOR EAX,EAX ADD RSP,0x8 POP RBX POP R14 JMP 0x00116780
void ggml_print_objects(long param_1) { int8 *puVar1; puVar1 = *(int8 **)(param_1 + 0x18); ggml_log_internal(2,"%s: objects in context %p:\n","ggml_print_objects",param_1); for (; puVar1 != (int8 *)0x0; puVar1 = (int8 *)puVar1[2]) { ggml_log_internal(2," - ggml_object: type = %d, offset = %zu, size = %zu, next = %p\n", *(int4 *)(puVar1 + 3),*puVar1,puVar1[1],puVar1[2]); } ggml_log_internal(2,"%s: --- end ---\n","ggml_print_objects"); return; }
53,117
LefDefParser::defiNonDefault::cutLayerName(int) const
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiNonDefault.cpp
const char* defiNonDefault::cutLayerName(int index) const { char msg[160]; if (index < 0 || index >= numMinCuts_) { sprintf (msg, "ERROR (DEFPARS-6090): The index number %d specified for the NONDEFAULT LAYER is invalid.\nValid index is from 0 to %d. Specify a valid index number and then try again.", index, numLayers_); defiError(0, 6090, msg, defData); return 0; } return cutLayerName_[index]; }
O3
cpp
LefDefParser::defiNonDefault::cutLayerName(int) const: pushq %r15 pushq %r14 pushq %rbx subq $0xa0, %rsp movl %esi, %edx movq %rdi, %r14 testl %esi, %esi js 0x2c082 cmpl %edx, 0x78(%r14) jle 0x2c082 movq 0x80(%r14), %rax movl %edx, %ecx movq (%rax,%rcx,8), %rbx jmp 0x2c0b2 movl 0xc(%r14), %ecx leaq 0x19920(%rip), %rsi # 0x459ad xorl %ebx, %ebx movq %rsp, %r15 movq %r15, %rdi xorl %eax, %eax callq 0x7060 movq 0xb8(%r14), %rcx xorl %edi, %edi movl $0x17ca, %esi # imm = 0x17CA movq %r15, %rdx callq 0x1bb18 movq %rbx, %rax addq $0xa0, %rsp popq %rbx popq %r14 popq %r15 retq
_ZNK12LefDefParser14defiNonDefault12cutLayerNameEi: push r15 push r14 push rbx sub rsp, 0A0h mov edx, esi mov r14, rdi test esi, esi js short loc_2C082 cmp [r14+78h], edx jle short loc_2C082 mov rax, [r14+80h] mov ecx, edx mov rbx, [rax+rcx*8] jmp short loc_2C0B2 loc_2C082: mov ecx, [r14+0Ch] lea rsi, aErrorDefpars60_8; "ERROR (DEFPARS-6090): The index number "... xor ebx, ebx mov r15, rsp mov rdi, r15 xor eax, eax call _sprintf mov rcx, [r14+0B8h]; LefDefParser::defrData * xor edi, edi; this mov esi, 17CAh; int mov rdx, r15; char * call _ZN12LefDefParser9defiErrorEiiPKcPNS_8defrDataE; LefDefParser::defiError(int,int,char const*,LefDefParser::defrData *) loc_2C0B2: mov rax, rbx add rsp, 0A0h pop rbx pop r14 pop r15 retn
long long LefDefParser::defiNonDefault::cutLayerName(LefDefParser::defiNonDefault *this, int a2) { long long v2; // rbx LefDefParser::defrData *v3; // r8 char v5[184]; // [rsp+0h] [rbp-B8h] BYREF if ( a2 >= 0 && *((_DWORD *)this + 30) > a2 ) return *(_QWORD *)(*((_QWORD *)this + 16) + 8LL * (unsigned int)a2); v2 = 0LL; sprintf( v5, "ERROR (DEFPARS-6090): The index number %d specified for the NONDEFAULT LAYER is invalid.\n" "Valid index is from 0 to %d. Specify a valid index number and then try again.", a2, *((_DWORD *)this + 3)); LefDefParser::defiError(0LL, 6090, v5, *((LefDefParser::defrData **)this + 23), v3); return v2; }
cutLayerName: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0xa0 MOV EDX,ESI MOV R14,RDI TEST ESI,ESI JS 0x0012c082 CMP dword ptr [R14 + 0x78],EDX JLE 0x0012c082 MOV RAX,qword ptr [R14 + 0x80] MOV ECX,EDX MOV RBX,qword ptr [RAX + RCX*0x8] JMP 0x0012c0b2 LAB_0012c082: MOV ECX,dword ptr [R14 + 0xc] LEA RSI,[0x1459ad] XOR EBX,EBX MOV R15,RSP MOV RDI,R15 XOR EAX,EAX CALL 0x00107060 MOV RCX,qword ptr [R14 + 0xb8] XOR EDI,EDI MOV ESI,0x17ca MOV RDX,R15 CALL 0x0011bb18 LAB_0012c0b2: MOV RAX,RBX ADD RSP,0xa0 POP RBX POP R14 POP R15 RET
/* LefDefParser::defiNonDefault::cutLayerName(int) const */ int8 __thiscall LefDefParser::defiNonDefault::cutLayerName(defiNonDefault *this,int param_1) { int8 uVar1; char acStack_b8 [160]; if ((param_1 < 0) || (*(int *)(this + 0x78) <= param_1)) { uVar1 = 0; sprintf(acStack_b8, "ERROR (DEFPARS-6090): The index number %d specified for the NONDEFAULT LAYER is invalid.\nValid index is from 0 to %d. Specify a valid index number and then try again." ,(ulong)(uint)param_1,(ulong)*(uint *)(this + 0xc)); defiError(0,0x17ca,acStack_b8,*(defrData **)(this + 0xb8)); } else { uVar1 = *(int8 *)(*(long *)(this + 0x80) + (ulong)(uint)param_1 * 8); } return uVar1; }
53,118
my_charset_is_8bit_pure_ascii
eloqsql/strings/ctype-simple.c
static my_bool my_charset_is_8bit_pure_ascii(CHARSET_INFO *cs) { size_t code; if (!cs->tab_to_uni) return 0; for (code= 0; code < 256; code++) { if (cs->tab_to_uni[code] > 0x7F) return 0; } return 1; }
O0
c
my_charset_is_8bit_pure_ascii: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax cmpq $0x0, 0x68(%rax) jne 0x50d29 movb $0x0, -0x1(%rbp) jmp 0x50d6a movq $0x0, -0x18(%rbp) cmpq $0x100, -0x18(%rbp) # imm = 0x100 jae 0x50d66 movq -0x10(%rbp), %rax movq 0x68(%rax), %rax movq -0x18(%rbp), %rcx movzwl (%rax,%rcx,2), %eax cmpl $0x7f, %eax jle 0x50d56 movb $0x0, -0x1(%rbp) jmp 0x50d6a jmp 0x50d58 movq -0x18(%rbp), %rax addq $0x1, %rax movq %rax, -0x18(%rbp) jmp 0x50d31 movb $0x1, -0x1(%rbp) movb -0x1(%rbp), %al popq %rbp retq nop
my_charset_is_8bit_pure_ascii: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov rax, [rbp+var_10] cmp qword ptr [rax+68h], 0 jnz short loc_50D29 mov [rbp+var_1], 0 jmp short loc_50D6A loc_50D29: mov [rbp+var_18], 0 loc_50D31: cmp [rbp+var_18], 100h jnb short loc_50D66 mov rax, [rbp+var_10] mov rax, [rax+68h] mov rcx, [rbp+var_18] movzx eax, word ptr [rax+rcx*2] cmp eax, 7Fh jle short loc_50D56 mov [rbp+var_1], 0 jmp short loc_50D6A loc_50D56: jmp short $+2 loc_50D58: mov rax, [rbp+var_18] add rax, 1 mov [rbp+var_18], rax jmp short loc_50D31 loc_50D66: mov [rbp+var_1], 1 loc_50D6A: mov al, [rbp+var_1] pop rbp retn
char my_charset_is_8bit_pure_ascii(long long a1) { unsigned long long i; // [rsp+0h] [rbp-18h] if ( !*(_QWORD *)(a1 + 104) ) return 0; for ( i = 0LL; i < 0x100; ++i ) { if ( *(unsigned __int16 *)(*(_QWORD *)(a1 + 104) + 2 * i) > 0x7Fu ) return 0; } return 1; }
my_charset_is_8bit_pure_ascii: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX + 0x68],0x0 JNZ 0x00150d29 MOV byte ptr [RBP + -0x1],0x0 JMP 0x00150d6a LAB_00150d29: MOV qword ptr [RBP + -0x18],0x0 LAB_00150d31: CMP qword ptr [RBP + -0x18],0x100 JNC 0x00150d66 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x68] MOV RCX,qword ptr [RBP + -0x18] MOVZX EAX,word ptr [RAX + RCX*0x2] CMP EAX,0x7f JLE 0x00150d56 MOV byte ptr [RBP + -0x1],0x0 JMP 0x00150d6a LAB_00150d56: JMP 0x00150d58 LAB_00150d58: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x1 MOV qword ptr [RBP + -0x18],RAX JMP 0x00150d31 LAB_00150d66: MOV byte ptr [RBP + -0x1],0x1 LAB_00150d6a: MOV AL,byte ptr [RBP + -0x1] POP RBP RET
int1 my_charset_is_8bit_pure_ascii(long param_1) { ulong local_20; int1 local_9; if (*(long *)(param_1 + 0x68) == 0) { local_9 = 0; } else { for (local_20 = 0; local_20 < 0x100; local_20 = local_20 + 1) { if (0x7f < *(ushort *)(*(long *)(param_1 + 0x68) + local_20 * 2)) { return 0; } } local_9 = 1; } return local_9; }
53,119
ftb_check_phrase
eloqsql/storage/myisam/ft_boolean_search.c
static int _ftb_check_phrase(FTB *ftb, const uchar *document, uint len, FTB_EXPR *ftbe, struct st_mysql_ftparser *parser) { MY_FTB_PHRASE_PARAM ftb_param; MYSQL_FTPARSER_PARAM *param; DBUG_ENTER("_ftb_check_phrase"); DBUG_ASSERT(parser); if (! (param= ftparser_call_initializer(ftb->info, ftb->keynr, 1))) DBUG_RETURN(0); ftb_param.phrase= ftbe->phrase; ftb_param.document= ftbe->document; ftb_param.cs= ftb->charset; ftb_param.phrase_length= list_length(ftbe->phrase); ftb_param.document_length= 1; ftb_param.match= 0; param->mysql_parse= ftb_check_phrase_internal; param->mysql_add_word= ftb_phrase_add_word; param->mysql_ftparam= (void *)&ftb_param; param->cs= ftb->charset; param->doc= (char *) document; param->length= len; param->flags= 0; param->mode= MYSQL_FTPARSER_WITH_STOPWORDS; if (unlikely(parser->parse(param))) return -1; DBUG_RETURN(ftb_param.match ? 1 : 0); }
O0
c
ftb_check_phrase: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) jmp 0xa0b3d movq -0x10(%rbp), %rax movq 0x8(%rax), %rdi movq -0x10(%rbp), %rax movl 0x340(%rax), %esi movl $0x1, %edx callq 0xa34f0 movq %rax, -0x60(%rbp) cmpq $0x0, %rax jne 0xa0b71 jmp 0xa0b65 movl $0x0, -0x4(%rbp) jmp 0xa0c57 movq -0x28(%rbp), %rax movq 0x30(%rax), %rax movq %rax, -0x58(%rbp) movq -0x28(%rbp), %rax movq 0x38(%rax), %rax movq %rax, -0x50(%rbp) movq -0x10(%rbp), %rax movq 0x10(%rax), %rax movq %rax, -0x48(%rbp) movq -0x28(%rbp), %rax movq 0x30(%rax), %rdi callq 0xe01a0 movl %eax, -0x40(%rbp) movl $0x1, -0x3c(%rbp) movl $0x0, -0x38(%rbp) movq -0x60(%rbp), %rax leaq 0xa2(%rip), %rcx # 0xa0c60 movq %rcx, (%rax) movq -0x60(%rbp), %rax leaq 0x114(%rip), %rcx # 0xa0ce0 movq %rcx, 0x8(%rax) movq -0x60(%rbp), %rax leaq -0x58(%rbp), %rcx movq %rcx, 0x18(%rax) movq -0x10(%rbp), %rax movq 0x10(%rax), %rcx movq -0x60(%rbp), %rax movq %rcx, 0x20(%rax) movq -0x18(%rbp), %rcx movq -0x60(%rbp), %rax movq %rcx, 0x28(%rax) movl -0x1c(%rbp), %ecx movq -0x60(%rbp), %rax movl %ecx, 0x30(%rax) movq -0x60(%rbp), %rax movl $0x0, 0x34(%rax) movq -0x60(%rbp), %rax movl $0x1, 0x38(%rax) movq -0x30(%rbp), %rax movq 0x8(%rax), %rax movq -0x60(%rbp), %rdi callq *%rax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0xa0c42 movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0xa0c57 jmp 0xa0c44 movl -0x38(%rbp), %edx xorl %eax, %eax movl $0x1, %ecx cmpl $0x0, %edx cmovnel %ecx, %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x60, %rsp popq %rbp retq
_ftb_check_phrase: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_1C], edx mov [rbp+var_28], rcx mov [rbp+var_30], r8 jmp short $+2 loc_A0B3D: mov rax, [rbp+var_10] mov rdi, [rax+8] mov rax, [rbp+var_10] mov esi, [rax+340h] mov edx, 1 call ftparser_call_initializer mov [rbp+var_60], rax cmp rax, 0 jnz short loc_A0B71 jmp short $+2 loc_A0B65: mov [rbp+var_4], 0 jmp loc_A0C57 loc_A0B71: mov rax, [rbp+var_28] mov rax, [rax+30h] mov [rbp+var_58], rax mov rax, [rbp+var_28] mov rax, [rax+38h] mov [rbp+var_50], rax mov rax, [rbp+var_10] mov rax, [rax+10h] mov [rbp+var_48], rax mov rax, [rbp+var_28] mov rdi, [rax+30h] call list_length mov [rbp+var_40], eax mov [rbp+var_3C], 1 mov [rbp+var_38], 0 mov rax, [rbp+var_60] lea rcx, ftb_check_phrase_internal mov [rax], rcx mov rax, [rbp+var_60] lea rcx, ftb_phrase_add_word mov [rax+8], rcx mov rax, [rbp+var_60] lea rcx, [rbp+var_58] mov [rax+18h], rcx mov rax, [rbp+var_10] mov rcx, [rax+10h] mov rax, [rbp+var_60] mov [rax+20h], rcx mov rcx, [rbp+var_18] mov rax, [rbp+var_60] mov [rax+28h], rcx mov ecx, [rbp+var_1C] mov rax, [rbp+var_60] mov [rax+30h], ecx mov rax, [rbp+var_60] mov dword ptr [rax+34h], 0 mov rax, [rbp+var_60] mov dword ptr [rax+38h], 1 mov rax, [rbp+var_30] mov rax, [rax+8] mov rdi, [rbp+var_60] call rax cmp eax, 0 setnz al and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_A0C42 mov [rbp+var_4], 0FFFFFFFFh jmp short loc_A0C57 loc_A0C42: jmp short $+2 loc_A0C44: mov edx, [rbp+var_38] xor eax, eax mov ecx, 1 cmp edx, 0 cmovnz eax, ecx mov [rbp+var_4], eax loc_A0C57: mov eax, [rbp+var_4] add rsp, 60h pop rbp retn
long long ftb_check_phrase(long long a1, long long a2, int a3, long long a4, long long a5) { long long v6; // [rsp+0h] [rbp-60h] _QWORD v7[3]; // [rsp+8h] [rbp-58h] BYREF int v8; // [rsp+20h] [rbp-40h] int v9; // [rsp+24h] [rbp-3Ch] int v10; // [rsp+28h] [rbp-38h] long long v11; // [rsp+30h] [rbp-30h] long long v12; // [rsp+38h] [rbp-28h] int v13; // [rsp+44h] [rbp-1Ch] long long v14; // [rsp+48h] [rbp-18h] long long v15; // [rsp+50h] [rbp-10h] v15 = a1; v14 = a2; v13 = a3; v12 = a4; v11 = a5; v6 = ftparser_call_initializer(*(_QWORD *)(v15 + 8), *(unsigned int *)(v15 + 832), 1LL); if ( v6 ) { v7[0] = *(_QWORD *)(v12 + 48); v7[1] = *(_QWORD *)(v12 + 56); v7[2] = *(_QWORD *)(v15 + 16); v8 = list_length(*(_QWORD *)(v12 + 48)); v9 = 1; v10 = 0; *(_QWORD *)v6 = ftb_check_phrase_internal; *(_QWORD *)(v6 + 8) = ftb_phrase_add_word; *(_QWORD *)(v6 + 24) = v7; *(_QWORD *)(v6 + 32) = *(_QWORD *)(v15 + 16); *(_QWORD *)(v6 + 40) = v14; *(_DWORD *)(v6 + 48) = v13; *(_DWORD *)(v6 + 52) = 0; *(_DWORD *)(v6 + 56) = 1; if ( (*(unsigned int ( **)(long long))(v11 + 8))(v6) ) return (unsigned int)-1; else return v10 != 0; } else { return 0; } }
_ftb_check_phrase: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV dword ptr [RBP + -0x1c],EDX MOV qword ptr [RBP + -0x28],RCX MOV qword ptr [RBP + -0x30],R8 JMP 0x001a0b3d LAB_001a0b3d: MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RAX + 0x340] MOV EDX,0x1 CALL 0x001a34f0 MOV qword ptr [RBP + -0x60],RAX CMP RAX,0x0 JNZ 0x001a0b71 JMP 0x001a0b65 LAB_001a0b65: MOV dword ptr [RBP + -0x4],0x0 JMP 0x001a0c57 LAB_001a0b71: MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX + 0x30] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX + 0x38] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x28] MOV RDI,qword ptr [RAX + 0x30] CALL 0x001e01a0 MOV dword ptr [RBP + -0x40],EAX MOV dword ptr [RBP + -0x3c],0x1 MOV dword ptr [RBP + -0x38],0x0 MOV RAX,qword ptr [RBP + -0x60] LEA RCX,[0x1a0c60] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x60] LEA RCX,[0x1a0ce0] MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RBP + -0x60] LEA RCX,[RBP + -0x58] MOV qword ptr [RAX + 0x18],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x10] MOV RAX,qword ptr [RBP + -0x60] MOV qword ptr [RAX + 0x20],RCX MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x60] MOV qword ptr [RAX + 0x28],RCX MOV ECX,dword ptr [RBP + -0x1c] MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX + 0x30],ECX MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX + 0x34],0x0 MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX + 0x38],0x1 MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x8] MOV RDI,qword ptr [RBP + -0x60] CALL RAX CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x001a0c42 MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x001a0c57 LAB_001a0c42: JMP 0x001a0c44 LAB_001a0c44: MOV EDX,dword ptr [RBP + -0x38] XOR EAX,EAX MOV ECX,0x1 CMP EDX,0x0 CMOVNZ EAX,ECX MOV dword ptr [RBP + -0x4],EAX LAB_001a0c57: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x60 POP RBP RET
uint _ftb_check_phrase(long param_1,int8 param_2,int4 param_3,long param_4,long param_5) { int iVar1; int8 *puVar2; int8 local_60; int8 local_58; int8 local_50; int4 local_48; int4 local_44; int local_40; long local_38; long local_30; int4 local_24; int8 local_20; long local_18; uint local_c; local_38 = param_5; local_30 = param_4; local_24 = param_3; local_20 = param_2; local_18 = param_1; puVar2 = (int8 *) ftparser_call_initializer (*(int8 *)(param_1 + 8),*(int4 *)(param_1 + 0x340),1); if (puVar2 == (int8 *)0x0) { local_c = 0; } else { local_60 = *(int8 *)(local_30 + 0x30); local_58 = *(int8 *)(local_30 + 0x38); local_50 = *(int8 *)(local_18 + 0x10); local_48 = list_length(*(int8 *)(local_30 + 0x30)); local_44 = 1; local_40 = 0; *puVar2 = ftb_check_phrase_internal; puVar2[1] = ftb_phrase_add_word; puVar2[3] = &local_60; puVar2[4] = *(int8 *)(local_18 + 0x10); puVar2[5] = local_20; *(int4 *)(puVar2 + 6) = local_24; *(int4 *)((long)puVar2 + 0x34) = 0; *(int4 *)(puVar2 + 7) = 1; iVar1 = (**(code **)(local_38 + 8))(puVar2); if (iVar1 == 0) { local_c = (uint)(local_40 != 0); } else { local_c = 0xffffffff; } } return local_c; }
53,120
write_hook_for_undo_key_insert
eloqsql/storage/maria/ma_key_recover.c
my_bool write_hook_for_undo_key_insert(enum translog_record_type type, TRN *trn, MARIA_HA *tbl_info, LSN *lsn, void *hook_arg) { struct st_msg_to_write_hook_for_undo_key *msg= (struct st_msg_to_write_hook_for_undo_key *) hook_arg; MARIA_SHARE *share= tbl_info->s; if (msg->auto_increment > 0) { /* Only reason to set it here is to have a mutex protect from checkpoint reading at the same time (would see a corrupted value). The purpose of the following code is to set auto_increment if the row has a with auto_increment value higher than the current one. We also want to be able to restore the old value, in case of rollback, if no one else has tried to set the value. The logic used is that we only restore the auto_increment value if tbl_info->last_auto_increment == share->last_auto_increment when it's time to do the rollback. */ DBUG_PRINT("info",("auto_inc: %lu new auto_inc: %lu", (ulong)share->state.auto_increment, (ulong)msg->auto_increment)); if (share->state.auto_increment < msg->auto_increment) { /* Remember the original value, in case of rollback */ tbl_info->last_auto_increment= share->last_auto_increment= share->state.auto_increment; share->state.auto_increment= msg->auto_increment; } else { /* If the current value would have affected the original auto_increment value, set it to an impossible value so that it's not restored on rollback */ if (msg->auto_increment > share->last_auto_increment) share->last_auto_increment= ~(ulonglong) 0; } } return write_hook_for_undo_key(type, trn, tbl_info, lsn, hook_arg); }
O0
c
write_hook_for_undo_key_insert: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movl %edi, -0x4(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq -0x28(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x18(%rbp), %rax movq (%rax), %rax movq %rax, -0x38(%rbp) movq -0x30(%rbp), %rax cmpq $0x0, 0x18(%rax) jbe 0x447e0 jmp 0x4476b jmp 0x4476d movq -0x38(%rbp), %rax movq 0xd8(%rax), %rax movq -0x30(%rbp), %rcx cmpq 0x18(%rcx), %rax jae 0x447b8 movq -0x38(%rbp), %rax movq 0xd8(%rax), %rcx movq -0x38(%rbp), %rax movq %rcx, 0x610(%rax) movq -0x18(%rbp), %rax movq %rcx, 0x3e8(%rax) movq -0x30(%rbp), %rax movq 0x18(%rax), %rcx movq -0x38(%rbp), %rax movq %rcx, 0xd8(%rax) jmp 0x447de movq -0x30(%rbp), %rax movq 0x18(%rax), %rax movq -0x38(%rbp), %rcx cmpq 0x610(%rcx), %rax jbe 0x447dc movq -0x38(%rbp), %rax movq $-0x1, 0x610(%rax) jmp 0x447de jmp 0x447e0 movl -0x4(%rbp), %edi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx movq -0x20(%rbp), %rcx movq -0x28(%rbp), %r8 callq 0x446a0 addq $0x40, %rsp popq %rbp retq nop
write_hook_for_undo_key_insert: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_4], edi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov rax, [rbp+var_28] mov [rbp+var_30], rax mov rax, [rbp+var_18] mov rax, [rax] mov [rbp+var_38], rax mov rax, [rbp+var_30] cmp qword ptr [rax+18h], 0 jbe short loc_447E0 jmp short $+2 loc_4476B: jmp short $+2 loc_4476D: mov rax, [rbp+var_38] mov rax, [rax+0D8h] mov rcx, [rbp+var_30] cmp rax, [rcx+18h] jnb short loc_447B8 mov rax, [rbp+var_38] mov rcx, [rax+0D8h] mov rax, [rbp+var_38] mov [rax+610h], rcx mov rax, [rbp+var_18] mov [rax+3E8h], rcx mov rax, [rbp+var_30] mov rcx, [rax+18h] mov rax, [rbp+var_38] mov [rax+0D8h], rcx jmp short loc_447DE loc_447B8: mov rax, [rbp+var_30] mov rax, [rax+18h] mov rcx, [rbp+var_38] cmp rax, [rcx+610h] jbe short loc_447DC mov rax, [rbp+var_38] mov qword ptr [rax+610h], 0FFFFFFFFFFFFFFFFh loc_447DC: jmp short $+2 loc_447DE: jmp short $+2 loc_447E0: mov edi, [rbp+var_4] mov rsi, [rbp+var_10] mov rdx, [rbp+var_18] mov rcx, [rbp+var_20] mov r8, [rbp+var_28] call write_hook_for_undo_key add rsp, 40h pop rbp retn
long long write_hook_for_undo_key_insert(unsigned int a1, long long a2, long long *a3, long long a4, long long a5) { long long v5; // rcx long long v7; // [rsp+8h] [rbp-38h] v7 = *a3; if ( *(_QWORD *)(a5 + 24) ) { if ( *(_QWORD *)(v7 + 216) >= *(_QWORD *)(a5 + 24) ) { if ( *(_QWORD *)(a5 + 24) > *(_QWORD *)(v7 + 1552) ) *(_QWORD *)(v7 + 1552) = -1LL; } else { v5 = *(_QWORD *)(v7 + 216); *(_QWORD *)(v7 + 1552) = v5; a3[125] = v5; *(_QWORD *)(v7 + 216) = *(_QWORD *)(a5 + 24); } } return write_hook_for_undo_key(a1, a2, (long long)a3, a4, a5); }
write_hook_for_undo_key_insert: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV dword ptr [RBP + -0x4],EDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x30] CMP qword ptr [RAX + 0x18],0x0 JBE 0x001447e0 JMP 0x0014476b LAB_0014476b: JMP 0x0014476d LAB_0014476d: MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX + 0xd8] MOV RCX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RCX + 0x18] JNC 0x001447b8 MOV RAX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RAX + 0xd8] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0x610],RCX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x3e8],RCX MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RAX + 0x18] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0xd8],RCX JMP 0x001447de LAB_001447b8: MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x18] MOV RCX,qword ptr [RBP + -0x38] CMP RAX,qword ptr [RCX + 0x610] JBE 0x001447dc MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0x610],-0x1 LAB_001447dc: JMP 0x001447de LAB_001447de: JMP 0x001447e0 LAB_001447e0: MOV EDI,dword ptr [RBP + -0x4] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x20] MOV R8,qword ptr [RBP + -0x28] CALL 0x001446a0 ADD RSP,0x40 POP RBP RET
void write_hook_for_undo_key_insert (int4 param_1,int8 param_2,long *param_3,int8 param_4,long param_5) { long lVar1; lVar1 = *param_3; if (*(long *)(param_5 + 0x18) != 0) { if (*(ulong *)(lVar1 + 0xd8) < *(ulong *)(param_5 + 0x18)) { *(long *)(lVar1 + 0x610) = *(long *)(lVar1 + 0xd8); param_3[0x7d] = *(long *)(lVar1 + 0xd8); *(int8 *)(lVar1 + 0xd8) = *(int8 *)(param_5 + 0x18); } else if (*(ulong *)(lVar1 + 0x610) < *(ulong *)(param_5 + 0x18)) { *(int8 *)(lVar1 + 0x610) = 0xffffffffffffffff; } } write_hook_for_undo_key(param_1,param_2,param_3,param_4,param_5); return; }
53,121
ha_innobase::index_last(unsigned char*)
eloqsql/storage/innobase/handler/ha_innodb.cc
int ha_innobase::index_last( /*====================*/ uchar* buf) /*!< in/out: buffer for the row */ { DBUG_ENTER("index_last"); int error = index_read(buf, NULL, 0, HA_READ_BEFORE_KEY); /* MySQL does not seem to allow this to return HA_ERR_KEY_NOT_FOUND */ if (error == HA_ERR_KEY_NOT_FOUND) { error = HA_ERR_END_OF_FILE; } DBUG_RETURN(error); }
O0
cpp
ha_innobase::index_last(unsigned char*): pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi xorl %eax, %eax movl %eax, %edx xorl %ecx, %ecx movl $0x4, %r8d callq 0xfa8a80 movl %eax, -0x14(%rbp) cmpl $0x78, -0x14(%rbp) jne 0xfa9439 movl $0x89, -0x14(%rbp) jmp 0xfa943b movl -0x14(%rbp), %eax addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_ZN11ha_innobase10index_lastEPh: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] xor eax, eax mov edx, eax xor ecx, ecx mov r8d, 4 call _ZN11ha_innobase10index_readEPhPKhj16ha_rkey_function; ha_innobase::index_read(uchar *,uchar const*,uint,ha_rkey_function) mov [rbp+var_14], eax cmp [rbp+var_14], 78h ; 'x' jnz short loc_FA9439 mov [rbp+var_14], 89h loc_FA9439: jmp short $+2 loc_FA943B: mov eax, [rbp+var_14] add rsp, 20h pop rbp retn
long long ha_innobase::index_last(ha_innobase *this, unsigned __int8 *a2) { unsigned int v3; // [rsp+Ch] [rbp-14h] v3 = ha_innobase::index_read((long long)this, (long long)a2, 0LL, 0, 4); if ( v3 == 120 ) return 137; return v3; }
maria_rprev: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV dword ptr [RBP + -0x1c],EDX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x30],RAX MOV dword ptr [RBP + -0x3c],0x1 MOV RDI,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RBP + -0x1c] CALL 0x00f7b850 MOV dword ptr [RBP + -0x1c],EAX CMP EAX,0x0 JGE 0x00fa944a JMP 0x00fa943b LAB_00fa943b: CALL 0x013ca030 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x4],EAX JMP 0x00fa9792 LAB_00fa944a: MOV dword ptr [RBP + -0x28],0x10 MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX + 0x98],-0x1 JNZ 0x00fa9478 MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x624] AND EAX,0x10 CMP EAX,0x0 JZ 0x00fa9478 MOV dword ptr [RBP + -0x28],0x0 LAB_00fa9478: MOV RAX,qword ptr [RBP + -0x10] CMP dword ptr [RAX + 0x664],0x2 JNZ 0x00fa94ab MOV RDI,qword ptr [RBP + -0x10] XOR ESI,ESI MOV EDX,0x1 CALL 0x00f33eb0 CMP EAX,0x0 JZ 0x00fa94ab JMP 0x00fa949c LAB_00fa949c: CALL 0x013ca030 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x4],EAX JMP 0x00fa9792 LAB_00fa94ab: MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x570] MOVSXD RCX,dword ptr [RBP + -0x1c] IMUL RCX,RCX,0x118 ADD RAX,RCX MOV qword ptr [RBP + -0x38],RAX MOV RDI,qword ptr [RBP + -0x10] CALL 0x00f33e00 MOV dword ptr [RBP + -0x24],EAX MOV RAX,qword ptr [RBP + -0x30] CMP byte ptr [RAX + 0x7e3],0x0 JZ 0x00fa94fa MOV RDI,qword ptr [RBP + -0x38] ADD RDI,0x8 LEA RSI,[0x14e266c] MOV EDX,0x2e CALL 0x00fa97a0 LAB_00fa94fa: CMP dword ptr [RBP + -0x28],0x0 JNZ 0x00fa9525 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x118] MOVSXD RCX,dword ptr [RBP + -0x1c] MOV RDX,qword ptr [RAX + RCX*0x8] CALL 0x00f7fc60 MOV dword ptr [RBP + -0x20],EAX JMP 0x00fa959d LAB_00fa9525: CMP dword ptr [RBP + -0x24],0x0 JNZ 0x00fa9564 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x10] ADD RSI,0x200 MOV EDX,dword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x10] OR EDX,dword ptr [RAX + 0x218] MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x118] MOVSXD RCX,dword ptr [RBP + -0x1c] MOV RCX,qword ptr [RAX + RCX*0x8] CALL 0x00f7f580 MOV dword ptr [RBP + -0x20],EAX JMP 0x00fa959b LAB_00fa9564: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x10] ADD RSI,0x200 MOV EDX,dword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x10] OR EDX,dword ptr [RAX + 0x218] MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x118] MOVSXD RCX,dword ptr [RBP + -0x1c] MOV RCX,qword ptr [RAX + RCX*0x8] CALL 0x00f7b9e0 MOV dword ptr [RBP + -0x20],EAX LAB_00fa959b: JMP 0x00fa959d LAB_00fa959d: CMP dword ptr [RBP + -0x20],0x0 JNZ 0x00fa9670 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x440] MOV qword ptr [RBP + -0x48],RAX LAB_00fa95b6: MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x6d8] MOV RDI,qword ptr [RBP + -0x10] CALL RAX MOV CL,AL MOV AL,0x1 CMP CL,0x0 MOV byte ptr [RBP + -0x49],AL JZ 0x00fa95ef MOV RDI,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RBP + -0x1c] MOV RDX,qword ptr [RBP + -0x18] CALL 0x00f86ab0 MOV dword ptr [RBP + -0x3c],EAX CMP EAX,0x0 SETZ AL MOV byte ptr [RBP + -0x49],AL LAB_00fa95ef: MOV AL,byte ptr [RBP + -0x49] TEST AL,0x1 JNZ 0x00fa95f8 JMP 0x00fa966e LAB_00fa95f8: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x440] CMP RAX,qword ptr [RBP + -0x48] JZ 0x00fa9633 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x440] MOV qword ptr [RBP + -0x48],RAX MOV RDI,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RBP + -0x1c] CALL 0x00f7ad60 CMP AL,0x0 JZ 0x00fa9631 MOV dword ptr [RBP + -0x20],0x1 JMP 0x00fa966e LAB_00fa9631: JMP 0x00fa9633 LAB_00fa9633: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x10] ADD RSI,0x200 MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x118] MOVSXD RCX,dword ptr [RBP + -0x1c] MOV RCX,qword ptr [RAX + RCX*0x8] MOV EDX,0x10 CALL 0x00f7f580 MOV dword ptr [RBP + -0x20],EAX CMP EAX,0x0 JZ 0x00fa9669 JMP 0x00fa966e LAB_00fa9669: JMP 0x00fa95b6 LAB_00fa966e: JMP 0x00fa9670 LAB_00fa9670: MOV RAX,qword ptr [RBP + -0x30] CMP byte ptr [RAX + 0x7e3],0x0 JZ 0x00fa968a MOV RDI,qword ptr [RBP + -0x38] ADD RDI,0x8 CALL 0x00fa9810 LAB_00fa968a: MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RAX + 0x624] AND ECX,0x401 MOV dword ptr [RAX + 0x624],ECX MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RAX + 0x624] OR ECX,0x20 MOV dword ptr [RAX + 0x624],ECX CMP dword ptr [RBP + -0x20],0x0 JNZ 0x00fa96bf CMP dword ptr [RBP + -0x3c],0x1 JZ 0x00fa96f4 LAB_00fa96bf: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] CMP dword ptr [RAX + 0x7b8],0x0 JNZ 0x00fa96da MOV RDI,qword ptr [RBP + -0x10] XOR ESI,ESI CALL 0x00f33ed0 LAB_00fa96da: CALL 0x013ca030 CMP dword ptr [RAX],0x78 JNZ 0x00fa96ef CALL 0x013ca030 MOV dword ptr [RAX],0x89 LAB_00fa96ef: JMP 0x00fa9786 LAB_00fa96f4: CMP qword ptr [RBP + -0x18],0x0 JNZ 0x00fa9741 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] CMP dword ptr [RAX + 0x7b8],0x0 JNZ 0x00fa9716 MOV RDI,qword ptr [RBP + -0x10] XOR ESI,ESI CALL 0x00f33ed0 LAB_00fa9716: JMP 0x00fa9718 LAB_00fa9718: MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX + 0x98],-0x1 JNZ 0x00fa9732 CALL 0x013ca030 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x50],EAX JMP 0x00fa9739 LAB_00fa9732: XOR EAX,EAX MOV dword ptr [RBP + -0x50],EAX JMP 0x00fa9739 LAB_00fa9739: MOV EAX,dword ptr [RBP + -0x50] MOV dword ptr [RBP + -0x4],EAX JMP 0x00fa9792 LAB_00fa9741: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x3d8] MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RCX + 0x98] CALL RAX CMP EAX,0x0 JNZ 0x00fa9782 MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RAX + 0x624] OR ECX,0x2 MOV dword ptr [RAX + 0x624],ECX MOV dword ptr [RBP + -0x4],0x0 JMP 0x00fa9792 LAB_00fa9782: JMP 0x00fa9784 LAB_00fa9784: JMP 0x00fa9786 LAB_00fa9786: JMP 0x00fa9788 LAB_00fa9788: CALL 0x013ca030 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x4],EAX LAB_00fa9792: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x50 POP RBP RET
int4 maria_rprev(long *param_1,long param_2,int4 param_3) { long lVar1; char cVar2; int iVar3; int iVar4; int4 *puVar5; long lVar6; int *piVar7; bool bVar8; int4 local_58; long local_50; int local_44; uint local_30; int local_28; int4 local_c; lVar1 = *param_1; local_44 = 1; iVar3 = _ma_check_index(param_1,param_3); if (iVar3 < 0) { puVar5 = (int4 *)_my_thread_var(); local_c = *puVar5; } else { local_30 = 0x10; if ((param_1[0x13] == -1) && ((*(uint *)((long)param_1 + 0x624) & 0x10) != 0)) { local_30 = 0; } if ((*(int *)((long)param_1 + 0x664) == 2) && (iVar4 = _ma_readinfo(param_1,0,1), iVar4 != 0)) { puVar5 = (int4 *)_my_thread_var(); local_c = *puVar5; } else { lVar6 = *(long *)(lVar1 + 0x570) + (long)iVar3 * 0x118; iVar4 = _ma_test_if_changed(param_1); if (*(char *)(lVar1 + 0x7e3) != '\0') { inline_mysql_rwlock_rdlock (lVar6 + 8,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_rprev.c", 0x2e); } if (local_30 == 0) { local_28 = _ma_search_last(param_1,lVar6, *(int8 *)(*(long *)(lVar1 + 0x118) + (long)iVar3 * 8)); } else if (iVar4 == 0) { local_28 = _ma_search_next(param_1,param_1 + 0x40,local_30 | *(uint *)(param_1 + 0x43), *(int8 *)(*(long *)(lVar1 + 0x118) + (long)iVar3 * 8)); } else { local_28 = _ma_search(param_1,param_1 + 0x40,local_30 | *(uint *)(param_1 + 0x43), *(int8 *)(*(long *)(lVar1 + 0x118) + (long)iVar3 * 8)); } if (local_28 == 0) { local_50 = param_1[0x88]; do { cVar2 = (**(code **)(lVar1 + 0x6d8))(param_1); bVar8 = true; if (cVar2 != '\0') { local_44 = ma_check_index_cond(param_1,iVar3,param_2); bVar8 = local_44 == 0; } if (!bVar8) break; if (param_1[0x88] != local_50) { local_50 = param_1[0x88]; cVar2 = ma_yield_and_check_if_killed(param_1,iVar3); if (cVar2 != '\0') { local_28 = 1; break; } } local_28 = _ma_search_next(param_1,param_1 + 0x40,0x10, *(int8 *)(*(long *)(lVar1 + 0x118) + (long)iVar3 * 8)); } while (local_28 == 0); } if (*(char *)(lVar1 + 0x7e3) != '\0') { inline_mysql_rwlock_unlock(lVar6 + 8); } *(uint *)((long)param_1 + 0x624) = *(uint *)((long)param_1 + 0x624) & 0x401; *(uint *)((long)param_1 + 0x624) = *(uint *)((long)param_1 + 0x624) | 0x20; if ((local_28 == 0) && (local_44 == 1)) { if (param_2 == 0) { if (*(int *)(*param_1 + 0x7b8) == 0) { _ma_writeinfo(param_1,0); } if (param_1[0x13] == -1) { puVar5 = (int4 *)_my_thread_var(); local_58 = *puVar5; } else { local_58 = 0; } return local_58; } iVar3 = (*(code *)param_1[0x7b])(param_1,param_2,param_1[0x13]); if (iVar3 == 0) { *(uint *)((long)param_1 + 0x624) = *(uint *)((long)param_1 + 0x624) | 2; return 0; } } else { if (*(int *)(*param_1 + 0x7b8) == 0) { _ma_writeinfo(param_1,0); } piVar7 = (int *)_my_thread_var(); if (*piVar7 == 0x78) { puVar5 = (int4 *)_my_thread_var(); *puVar5 = 0x89; } } puVar5 = (int4 *)_my_thread_var(); local_c = *puVar5; } } return local_c; }
53,122
ggml_backend_sched_graph_compute_async
ngxson[P]ggml-easy/ggml/src/ggml-backend.cpp
enum ggml_status ggml_backend_sched_graph_compute_async(ggml_backend_sched_t sched, struct ggml_cgraph * graph) { if (!sched->is_reset && !sched->is_alloc) { ggml_backend_sched_reset(sched); } if (!sched->is_alloc) { if (!ggml_backend_sched_alloc_graph(sched, graph)) { return GGML_STATUS_ALLOC_FAILED; } } return ggml_backend_sched_compute_splits(sched); }
O0
cpp
ggml_backend_sched_graph_compute_async: subq $0x18, %rsp movq %rdi, 0x8(%rsp) movq %rsi, (%rsp) movq 0x8(%rsp), %rax testb $0x1, (%rax) jne 0x621ec movq 0x8(%rsp), %rax testb $0x1, 0x1(%rax) jne 0x621ec movq 0x8(%rsp), %rdi callq 0x42710 movq 0x8(%rsp), %rax testb $0x1, 0x1(%rax) jne 0x62215 movq 0x8(%rsp), %rdi movq (%rsp), %rsi callq 0x41010 testb $0x1, %al jne 0x62213 movl $0xfffffffe, 0x14(%rsp) # imm = 0xFFFFFFFE jmp 0x62223 jmp 0x62215 movq 0x8(%rsp), %rdi callq 0x62230 movl %eax, 0x14(%rsp) movl 0x14(%rsp), %eax addq $0x18, %rsp retq nopl (%rax)
ggml_backend_sched_graph_compute_async: sub rsp, 18h mov [rsp+18h+var_10], rdi mov [rsp+18h+var_18], rsi mov rax, [rsp+18h+var_10] test byte ptr [rax], 1 jnz short loc_621EC mov rax, [rsp+18h+var_10] test byte ptr [rax+1], 1 jnz short loc_621EC mov rdi, [rsp+18h+var_10] call _ggml_backend_sched_reset loc_621EC: mov rax, [rsp+18h+var_10] test byte ptr [rax+1], 1 jnz short loc_62215 mov rdi, [rsp+18h+var_10] mov rsi, [rsp+18h+var_18] call _ggml_backend_sched_alloc_graph test al, 1 jnz short loc_62213 mov [rsp+18h+var_4], 0FFFFFFFEh jmp short loc_62223 loc_62213: jmp short $+2 loc_62215: mov rdi, [rsp+18h+var_10] call _ZL33ggml_backend_sched_compute_splitsP18ggml_backend_sched; ggml_backend_sched_compute_splits(ggml_backend_sched *) mov [rsp+18h+var_4], eax loc_62223: mov eax, [rsp+18h+var_4] add rsp, 18h retn
long long ggml_backend_sched_graph_compute_async( _BYTE *a1, long long a2, __m128 a3, __m128 a4, __m128 a5, __m128 a6, double a7, double a8, __m128 a9, __m128 a10) { if ( (*a1 & 1) == 0 && (a1[1] & 1) == 0 ) ggml_backend_sched_reset(a1); if ( (a1[1] & 1) != 0 || (ggml_backend_sched_alloc_graph((long long)a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) & 1) != 0 ) return (unsigned int)ggml_backend_sched_compute_splits(a1); else return (unsigned int)-2; }
ggml_backend_sched_graph_compute_async: SUB RSP,0x18 MOV qword ptr [RSP + 0x8],RDI MOV qword ptr [RSP],RSI MOV RAX,qword ptr [RSP + 0x8] TEST byte ptr [RAX],0x1 JNZ 0x001621ec MOV RAX,qword ptr [RSP + 0x8] TEST byte ptr [RAX + 0x1],0x1 JNZ 0x001621ec MOV RDI,qword ptr [RSP + 0x8] CALL 0x00142710 LAB_001621ec: MOV RAX,qword ptr [RSP + 0x8] TEST byte ptr [RAX + 0x1],0x1 JNZ 0x00162215 MOV RDI,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RSP] CALL 0x00141010 TEST AL,0x1 JNZ 0x00162213 MOV dword ptr [RSP + 0x14],0xfffffffe JMP 0x00162223 LAB_00162213: JMP 0x00162215 LAB_00162215: MOV RDI,qword ptr [RSP + 0x8] CALL 0x00162230 MOV dword ptr [RSP + 0x14],EAX LAB_00162223: MOV EAX,dword ptr [RSP + 0x14] ADD RSP,0x18 RET
int4 ggml_backend_sched_graph_compute_async(ggml_backend_sched *param_1,int8 param_2) { ulong uVar1; int4 local_4; if ((((byte)*param_1 & 1) == 0) && (((byte)param_1[1] & 1) == 0)) { ggml_backend_sched_reset(param_1); } if ((((byte)param_1[1] & 1) == 0) && (uVar1 = ggml_backend_sched_alloc_graph(param_1,param_2), (uVar1 & 1) == 0)) { local_4 = 0xfffffffe; } else { local_4 = ggml_backend_sched_compute_splits(param_1); } return local_4; }
53,123
ma_ck_real_delete
eloqsql/storage/maria/ma_delete.c
my_bool _ma_ck_real_delete(register MARIA_HA *info, MARIA_KEY *key, my_off_t *root) { int error; my_bool result= 0, buff_alloced; my_off_t old_root; uchar *root_buff; MARIA_KEYDEF *keyinfo= key->keyinfo; MARIA_PAGE page; DBUG_ENTER("_ma_ck_real_delete"); if ((old_root=*root) == HA_OFFSET_ERROR) { _ma_set_fatal_error(info, HA_ERR_CRASHED); DBUG_RETURN(1); } alloc_on_stack(*info->stack_end_ptr, root_buff, buff_alloced, (keyinfo->block_length + keyinfo->max_store_length*2)); if (!root_buff) DBUG_RETURN(1); DBUG_PRINT("info",("root_page: %lu", (ulong) (old_root / keyinfo->block_length))); if (_ma_fetch_keypage(&page, info, keyinfo, old_root, PAGECACHE_LOCK_WRITE, DFLT_INIT_HITS, root_buff, 0)) { result= 1; goto err; } if ((error= d_search(info, key, (keyinfo->flag & HA_FULLTEXT ? SEARCH_FIND | SEARCH_UPDATE | SEARCH_INSERT: SEARCH_SAME), &page))) { if (error < 0) result= 1; else if (error == 2) { DBUG_PRINT("test",("Enlarging of root when deleting")); if (_ma_enlarge_root(info, key, root)) result= 1; } else /* error == 1 */ { MARIA_SHARE *share= info->s; page_mark_changed(info, &page); if (page.size <= page.node + share->keypage_header + 1) { DBUG_ASSERT(page.size == page.node + share->keypage_header); if (page.node) *root= _ma_kpos(page.node, root_buff +share->keypage_header + page.node); else *root=HA_OFFSET_ERROR; if (_ma_dispose(info, old_root, 0)) result= 1; } else if (_ma_write_keypage(&page, PAGECACHE_LOCK_LEFT_WRITELOCKED, DFLT_INIT_HITS)) result= 1; } } err: stack_alloc_free(root_buff, buff_alloced); DBUG_PRINT("exit",("Return: %d",result)); DBUG_RETURN(result); }
O3
c
ma_ck_real_delete: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movq %rdi, %rbx movq %fs:0x28, %rax movq %rax, -0x30(%rbp) movq (%rdx), %r15 cmpq $-0x1, %r15 je 0x5b3c1 movq %rdx, %r13 movq %rsi, -0x48(%rbp) movq 0x8(%rsi), %r14 movzwl 0xa6(%r14), %eax movzwl 0xb0(%r14), %ecx leaq (%rax,%rcx,2), %rsi leaq -0x80(%rbp), %rcx movq %rsi, (%rcx) movq 0x78(%rbx), %rax movq (%rax), %rax subq %rcx, %rax subq %rsi, %rax jbe 0x5b365 cmpq $0x10000, %rax # imm = 0x10000 ja 0x5b34b cmpl $0x1000, %esi # imm = 0x1000 jb 0x5b365 cmpq $0x8001, %rax # imm = 0x8001 jb 0x5b365 movq %r13, -0x40(%rbp) movq %rsp, %r12 addl $0xf, %esi andl $-0x10, %esi subq %rsi, %r12 movq %r12, %rsp movb $0x1, %al movl %eax, -0x34(%rbp) jmp 0x5b384 movl $0x0, -0x34(%rbp) movl $0x10010, %edx # imm = 0x10010 xorl %edi, %edi callq 0xc3acd testq %rax, %rax je 0x5b3ce movq %rax, %r12 movq %r13, -0x40(%rbp) leaq -0x80(%rbp), %rdi movq %rbx, %rsi movq %r14, %rdx movq %r15, %rcx movl $0x4, %r8d movl $0x3, %r9d pushq $0x0 pushq %r12 callq 0x40df6 addq $0x10, %rsp movb $0x1, %r13b testb %al, %al je 0x5b3f6 cmpb $0x0, -0x34(%rbp) jne 0x5b3d1 movq %r12, %rdi callq 0xc3cfa jmp 0x5b3d1 movq %rbx, %rdi movl $0x7e, %esi callq 0x3dca8 movb $0x1, %r13b movq %fs:0x28, %rax cmpq -0x30(%rbp), %rax jne 0x5b4ba movl %r13d, %eax leaq -0x28(%rbp), %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq cmpb $0x0, 0xa2(%r14) movl $0x20041, %edx # imm = 0x20041 movl $0x4, %eax cmovnsl %eax, %edx leaq -0x80(%rbp), %rcx movq %rbx, %rdi movq -0x48(%rbp), %r14 movq %r14, %rsi callq 0x5b613 testl %eax, %eax je 0x5b43a js 0x5b3b1 cmpl $0x2, %eax jne 0x5b442 movq %rbx, %rdi movq %r14, %rsi movq -0x40(%rbp), %rdx callq 0x58658 jmp 0x5b482 xorl %r13d, %r13d jmp 0x5b3b1 movq (%rbx), %rax movq 0x2e8(%rbx), %rcx movl -0x50(%rbp), %edx leaq (%rdx,%rdx,2), %rdx movb $0x1, 0x10(%rcx,%rdx,8) movl -0x58(%rbp), %edi movl 0x744(%rax), %esi leal (%rdi,%rsi), %eax incl %eax cmpl %eax, -0x60(%rbp) movq -0x40(%rbp), %r14 jbe 0x5b486 leaq -0x80(%rbp), %rdi movl $0x2, %esi movl $0x3, %edx callq 0x40f35 testb %al, %al jmp 0x5b4b1 testq %rdi, %rdi je 0x5b498 addq %r12, %rsi addq %rdi, %rsi callq 0x3ee07 jmp 0x5b49f movq $-0x1, %rax movq %rax, (%r14) movq %rbx, %rdi movq %r15, %rsi xorl %edx, %edx callq 0x40ffd testl %eax, %eax setne %r13b jmp 0x5b3b1 callq 0x2b280
_ma_ck_real_delete: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 58h mov rbx, rdi mov rax, fs:28h mov [rbp+var_30], rax mov r15, [rdx] cmp r15, 0FFFFFFFFFFFFFFFFh jz loc_5B3C1 mov r13, rdx mov [rbp+var_48], rsi mov r14, [rsi+8] movzx eax, word ptr [r14+0A6h] movzx ecx, word ptr [r14+0B0h] lea rsi, [rax+rcx*2] lea rcx, [rbp+var_80] mov [rcx], rsi mov rax, [rbx+78h] mov rax, [rax] sub rax, rcx sub rax, rsi jbe short loc_5B365 cmp rax, 10000h ja short loc_5B34B cmp esi, 1000h jb short loc_5B365 cmp rax, 8001h jb short loc_5B365 loc_5B34B: mov [rbp+var_40], r13 mov r12, rsp add esi, 0Fh and esi, 0FFFFFFF0h sub r12, rsi mov rsp, r12 mov al, 1 mov [rbp+var_34], eax jmp short loc_5B384 loc_5B365: mov [rbp+var_34], 0 mov edx, offset stru_10010 xor edi, edi call my_malloc test rax, rax jz short loc_5B3CE mov r12, rax mov [rbp+var_40], r13 loc_5B384: lea rdi, [rbp+var_80] mov rsi, rbx mov rdx, r14 mov rcx, r15 mov r8d, 4 mov r9d, 3 push 0 push r12 call _ma_fetch_keypage add rsp, 10h mov r13b, 1 test al, al jz short loc_5B3F6 loc_5B3B1: cmp byte ptr [rbp+var_34], 0 jnz short loc_5B3D1 mov rdi, r12 call my_free jmp short loc_5B3D1 loc_5B3C1: mov rdi, rbx mov esi, 7Eh ; '~' call _ma_set_fatal_error loc_5B3CE: mov r13b, 1 loc_5B3D1: mov rax, fs:28h cmp rax, [rbp+var_30] jnz loc_5B4BA mov eax, r13d lea rsp, [rbp-28h] pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_5B3F6: cmp byte ptr [r14+0A2h], 0 mov edx, 20041h mov eax, 4 cmovns edx, eax lea rcx, [rbp+var_80] mov rdi, rbx mov r14, [rbp+var_48] mov rsi, r14 call d_search test eax, eax jz short loc_5B43A js short loc_5B3B1 cmp eax, 2 jnz short loc_5B442 mov rdi, rbx mov rsi, r14 mov rdx, [rbp+var_40] call _ma_enlarge_root jmp short loc_5B482 loc_5B43A: xor r13d, r13d jmp loc_5B3B1 loc_5B442: mov rax, [rbx] mov rcx, [rbx+2E8h] mov edx, [rbp+var_50] lea rdx, [rdx+rdx*2] mov byte ptr [rcx+rdx*8+10h], 1 mov edi, [rbp+var_58] mov esi, [rax+744h] lea eax, [rdi+rsi] inc eax cmp [rbp+var_60], eax mov r14, [rbp+var_40] jbe short loc_5B486 lea rdi, [rbp+var_80] mov esi, 2 mov edx, 3 call _ma_write_keypage loc_5B482: test al, al jmp short loc_5B4B1 loc_5B486: test rdi, rdi jz short loc_5B498 add rsi, r12 add rsi, rdi call _ma_kpos jmp short loc_5B49F loc_5B498: mov rax, 0FFFFFFFFFFFFFFFFh loc_5B49F: mov [r14], rax mov rdi, rbx mov rsi, r15 xor edx, edx call _ma_dispose test eax, eax loc_5B4B1: setnz r13b jmp loc_5B3B1 loc_5B4BA: call ___stack_chk_fail
long long ma_ck_real_delete(long long a1, long long a2, unsigned long long *a3, long long a4, long long a5, int a6) { unsigned long long *v6; // r13 unsigned long long v7; // r15 long long v8; // r14 long long *v9; // rsi unsigned long long v10; // rax bool v11; // cc unsigned long long v12; // rax char *v13; // r12 long long v14; // rax long long v16; // rdx long long v17; // r14 int v18; // eax char v19; // al long long v20; // rax long long v21; // rsi unsigned long long *v22; // r14 bool v23; // zf long long v24; // rax long long *v25[4]; // [rsp+0h] [rbp-80h] BYREF unsigned int v26; // [rsp+20h] [rbp-60h] unsigned int v27; // [rsp+28h] [rbp-58h] unsigned int v28; // [rsp+30h] [rbp-50h] long long v29; // [rsp+38h] [rbp-48h] unsigned long long *v30; // [rsp+40h] [rbp-40h] int v31; // [rsp+4Ch] [rbp-34h] unsigned long long v32; // [rsp+50h] [rbp-30h] v32 = __readfsqword(0x28u); v7 = *a3; if ( *a3 == -1LL ) { ma_set_fatal_error((_DWORD *)a1, 126, (long long)a3, a4, a5, a6); goto LABEL_13; } v6 = a3; v29 = a2; v8 = *(_QWORD *)(a2 + 8); v9 = (long long *)(*(unsigned __int16 *)(v8 + 166) + 2LL * *(unsigned __int16 *)(v8 + 176)); v25[0] = v9; v10 = **(_QWORD **)(a1 + 120) - (_QWORD)v25; v11 = v10 <= (unsigned long long)v9; v12 = v10 - (_QWORD)v9; if ( !v11 && (v12 > 0x10000 || (unsigned int)v9 >= 0x1000 && v12 >= 0x8001) ) { v30 = a3; v13 = (char *)v25 - (((_DWORD)v9 + 15) & 0xFFFFFFF0); LOBYTE(v12) = 1; v31 = v12; goto LABEL_9; } v31 = 0; v14 = my_malloc(0LL, v9, &stru_10010); if ( !v14 ) { LABEL_13: LOBYTE(v6) = 1; return (unsigned int)v6; } v13 = (char *)v14; v30 = v6; LABEL_9: LOBYTE(v6) = 1; if ( ma_fetch_keypage((long long)v25, a1, v8, v7, 4, 3, (long long)v13) ) goto LABEL_10; v16 = 131137LL; if ( *(char *)(v8 + 162) >= 0 ) v16 = 4LL; v17 = v29; v18 = d_search(a1, v29, v16, v25); if ( !v18 ) { LODWORD(v6) = 0; goto LABEL_10; } if ( v18 < 0 ) goto LABEL_10; if ( v18 == 2 ) { v19 = ma_enlarge_root((long long *)a1, v17, v30); } else { v20 = *(_QWORD *)a1; *(_BYTE *)(*(_QWORD *)(a1 + 744) + 24LL * v28 + 16) = 1; v21 = *(unsigned int *)(v20 + 1860); v22 = v30; if ( v26 <= v27 + (unsigned int)v21 + 1 ) { if ( v27 ) v24 = ma_kpos(v27, (long long)&v13[v21 + v27]); else v24 = -1LL; *v22 = v24; v23 = (unsigned int)ma_dispose((_QWORD *)a1, v7, 0) == 0; goto LABEL_29; } v19 = ma_write_keypage(v25, 2, 3); } v23 = v19 == 0; LABEL_29: LOBYTE(v6) = !v23; LABEL_10: if ( !(_BYTE)v31 ) my_free(v13); return (unsigned int)v6; }
_ma_ck_real_delete: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x58 MOV RBX,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX MOV R15,qword ptr [RDX] CMP R15,-0x1 JZ 0x0015b3c1 MOV R13,RDX MOV qword ptr [RBP + -0x48],RSI MOV R14,qword ptr [RSI + 0x8] MOVZX EAX,word ptr [R14 + 0xa6] MOVZX ECX,word ptr [R14 + 0xb0] LEA RSI,[RAX + RCX*0x2] LEA RCX,[RBP + -0x80] MOV qword ptr [RCX],RSI MOV RAX,qword ptr [RBX + 0x78] MOV RAX,qword ptr [RAX] SUB RAX,RCX SUB RAX,RSI JBE 0x0015b365 CMP RAX,0x10000 JA 0x0015b34b CMP ESI,0x1000 JC 0x0015b365 CMP RAX,0x8001 JC 0x0015b365 LAB_0015b34b: MOV qword ptr [RBP + -0x40],R13 MOV R12,RSP ADD ESI,0xf AND ESI,0xfffffff0 SUB R12,RSI MOV RSP,R12 MOV AL,0x1 MOV dword ptr [RBP + -0x34],EAX JMP 0x0015b384 LAB_0015b365: MOV dword ptr [RBP + -0x34],0x0 MOV EDX,0x10010 XOR EDI,EDI CALL 0x001c3acd TEST RAX,RAX JZ 0x0015b3ce MOV R12,RAX MOV qword ptr [RBP + -0x40],R13 LAB_0015b384: LEA RDI,[RBP + -0x80] MOV RSI,RBX MOV RDX,R14 MOV RCX,R15 MOV R8D,0x4 MOV R9D,0x3 PUSH 0x0 PUSH R12 CALL 0x00140df6 ADD RSP,0x10 MOV R13B,0x1 TEST AL,AL JZ 0x0015b3f6 LAB_0015b3b1: CMP byte ptr [RBP + -0x34],0x0 JNZ 0x0015b3d1 MOV RDI,R12 CALL 0x001c3cfa JMP 0x0015b3d1 LAB_0015b3c1: MOV RDI,RBX MOV ESI,0x7e CALL 0x0013dca8 LAB_0015b3ce: MOV R13B,0x1 LAB_0015b3d1: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x0015b4ba MOV EAX,R13D LEA RSP,[RBP + -0x28] POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0015b3f6: CMP byte ptr [R14 + 0xa2],0x0 MOV EDX,0x20041 MOV EAX,0x4 CMOVNS EDX,EAX LEA RCX,[RBP + -0x80] MOV RDI,RBX MOV R14,qword ptr [RBP + -0x48] MOV RSI,R14 CALL 0x0015b613 TEST EAX,EAX JZ 0x0015b43a JS 0x0015b3b1 CMP EAX,0x2 JNZ 0x0015b442 MOV RDI,RBX MOV RSI,R14 MOV RDX,qword ptr [RBP + -0x40] CALL 0x00158658 JMP 0x0015b482 LAB_0015b43a: XOR R13D,R13D JMP 0x0015b3b1 LAB_0015b442: MOV RAX,qword ptr [RBX] MOV RCX,qword ptr [RBX + 0x2e8] MOV EDX,dword ptr [RBP + -0x50] LEA RDX,[RDX + RDX*0x2] MOV byte ptr [RCX + RDX*0x8 + 0x10],0x1 MOV EDI,dword ptr [RBP + -0x58] MOV ESI,dword ptr [RAX + 0x744] LEA EAX,[RDI + RSI*0x1] INC EAX CMP dword ptr [RBP + -0x60],EAX MOV R14,qword ptr [RBP + -0x40] JBE 0x0015b486 LEA RDI,[RBP + -0x80] MOV ESI,0x2 MOV EDX,0x3 CALL 0x00140f35 LAB_0015b482: TEST AL,AL JMP 0x0015b4b1 LAB_0015b486: TEST RDI,RDI JZ 0x0015b498 ADD RSI,R12 ADD RSI,RDI CALL 0x0013ee07 JMP 0x0015b49f LAB_0015b498: MOV RAX,-0x1 LAB_0015b49f: MOV qword ptr [R14],RAX MOV RDI,RBX MOV RSI,R15 XOR EDX,EDX CALL 0x00140ffd TEST EAX,EAX LAB_0015b4b1: SETNZ R13B JMP 0x0015b3b1 LAB_0015b4ba: CALL 0x0012b280
ulong _ma_ck_real_delete(long *param_1,long param_2,long *param_3) { uint uVar1; long lVar2; long lVar3; long *plVar4; ulong *puVar5; char cVar6; int iVar7; ulong uVar8; int1 *puVar9; long lVar10; int8 uVar11; ulong *puVar12; long *unaff_R13; int7 uVar13; long in_FS_OFFSET; bool bVar14; ulong local_88 [4]; uint local_68; uint local_60; uint local_58; long local_50; long *local_48; int4 local_3c; long local_38; puVar12 = local_88; local_38 = *(long *)(in_FS_OFFSET + 0x28); lVar2 = *param_3; if (lVar2 == -1) { _ma_set_fatal_error(param_1,0x7e); LAB_0015b3ce: uVar8 = CONCAT71((int7)((ulong)unaff_R13 >> 8),1); goto LAB_0015b3d1; } lVar10 = *(long *)(param_2 + 8); local_88[0] = (ulong)*(ushort *)(lVar10 + 0xa6) + (ulong)*(ushort *)(lVar10 + 0xb0) * 2; uVar8 = (*(long *)param_1[0xf] - (long)local_88) - local_88[0]; local_50 = param_2; if (((ulong)(*(long *)param_1[0xf] - (long)local_88) < local_88[0] || uVar8 == 0) || ((uVar8 < 0x10001 && (((uint)local_88[0] < 0x1000 || (uVar8 < 0x8001)))))) { local_3c = 0; puVar9 = (int1 *)my_malloc(0,local_88[0],0x10010); puVar5 = local_88; unaff_R13 = param_3; if (puVar9 == (int1 *)0x0) goto LAB_0015b3ce; } else { puVar9 = (int1 *)((long)local_88 - (ulong)((uint)local_88[0] + 0xf & 0xfffffff0)); local_3c = (int4)CONCAT71((int7)(uVar8 >> 8),1); puVar5 = (ulong *)puVar9; } puVar12 = puVar5; local_48 = param_3; *(int8 *)((long)puVar12 + -8) = 0; *(int1 **)((long)puVar12 + -0x10) = puVar9; *(int8 *)((long)puVar12 + -0x18) = 0x15b3a6; cVar6 = _ma_fetch_keypage(local_88,param_1,lVar10,lVar2,4,3); lVar3 = local_50; uVar13 = (int7)((ulong)param_3 >> 8); uVar8 = CONCAT71(uVar13,1); if (cVar6 == '\0') { uVar11 = 0x20041; if (-1 < *(char *)(lVar10 + 0xa2)) { uVar11 = 4; } *(int8 *)((long)puVar12 + -8) = 0x15b41e; iVar7 = d_search(param_1,lVar3,uVar11,local_88); plVar4 = local_48; if (iVar7 == 0) { uVar8 = 0; } else if (-1 < iVar7) { if (iVar7 == 2) { *(int8 *)((long)puVar12 + -8) = 0x15b438; cVar6 = _ma_enlarge_root(param_1,lVar3,plVar4); LAB_0015b482: bVar14 = cVar6 == '\0'; } else { lVar10 = *param_1; *(int1 *)(param_1[0x5d] + 0x10 + (ulong)local_58 * 0x18) = 1; uVar8 = (ulong)local_60; uVar1 = *(uint *)(lVar10 + 0x744); if (local_60 + uVar1 + 1 < local_68) { *(int8 *)((long)puVar12 + -8) = 0x15b482; cVar6 = _ma_write_keypage(local_88,2,3); goto LAB_0015b482; } if (uVar8 == 0) { lVar10 = -1; } else { *(int8 *)((long)puVar12 + -8) = 0x15b496; lVar10 = _ma_kpos(uVar8,puVar9 + uVar8 + uVar1); } *plVar4 = lVar10; *(int8 *)((long)puVar12 + -8) = 0x15b4af; iVar7 = _ma_dispose(param_1,lVar2,0); bVar14 = iVar7 == 0; } uVar8 = CONCAT71(uVar13,!bVar14); } } if ((char)local_3c == '\0') { *(int8 *)((long)puVar12 + -8) = 0x15b3bf; my_free(puVar9); } LAB_0015b3d1: if (*(long *)(in_FS_OFFSET + 0x28) != local_38) { /* WARNING: Subroutine does not return */ *(code **)((long)puVar12 + -8) = _ma_write_undo_key_delete; __stack_chk_fail(); } return uVar8 & 0xffffffff; }
53,124
nglog::ColoredWriteToStderrOrStdout(_IO_FILE*, nglog::LogSeverity, char const*, unsigned long)
ng-log[P]ng-log/src/logging.cc
static void ColoredWriteToStderrOrStdout(FILE* output, LogSeverity severity, const char* message, size_t len) { bool is_stdout = (output == stdout); const GLogColor color = (LogDestination::terminal_supports_color() && ((!is_stdout && FLAGS_colorlogtostderr) || (is_stdout && FLAGS_colorlogtostdout))) ? SeverityToColor(severity) : COLOR_DEFAULT; // Avoid using cerr from this module since we may get called during // exit code, and cerr may be partially or fully destroyed by then. if (COLOR_DEFAULT == color) { fwrite(message, len, 1, output); return; } #ifdef NGLOG_OS_WINDOWS const HANDLE output_handle = GetStdHandle(is_stdout ? STD_OUTPUT_HANDLE : STD_ERROR_HANDLE); // Gets the current text color. CONSOLE_SCREEN_BUFFER_INFO buffer_info; GetConsoleScreenBufferInfo(output_handle, &buffer_info); const WORD old_color_attrs = buffer_info.wAttributes; // We need to flush the stream buffers into the console before each // SetConsoleTextAttribute call lest it affect the text that is already // printed but has not yet reached the console. fflush(output); SetConsoleTextAttribute(output_handle, GetColorAttribute(color) | FOREGROUND_INTENSITY); fwrite(message, len, 1, output); fflush(output); // Restores the text color. SetConsoleTextAttribute(output_handle, old_color_attrs); #else fprintf(output, "\033[0;3%sm", GetAnsiColorCode(color)); fwrite(message, len, 1, output); fprintf(output, "\033[m"); // Resets the terminal to default. #endif // NGLOG_OS_WINDOWS }
O1
cpp
nglog::ColoredWriteToStderrOrStdout(_IO_FILE*, nglog::LogSeverity, char const*, unsigned long): pushq %r15 pushq %r14 pushq %rbx movq %rcx, %r14 movq %rdx, %r15 movq %rdi, %rbx xorl %eax, %eax cmpb $0x1, 0x20648(%rip) # 0x31c80 jne 0x11675 movq 0x1f8bf(%rip), %rcx # 0x30f00 cmpq %rbx, (%rcx) je 0x11654 leaq 0x20431(%rip), %rcx # 0x31a7e cmpb $0x0, (%rcx) jne 0x11660 jmp 0x11675 leaq 0x20425(%rip), %rcx # 0x31a80 cmpb $0x1, (%rcx) jne 0x11675 cmpl $0x4, %esi jae 0x116ef movl %esi, %eax leaq 0x120ae(%rip), %rcx # 0x23720 movl (%rcx,%rax,4), %eax movl %eax, %eax leaq 0x120b2(%rip), %rcx # 0x23730 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movl $0x1, %edx movq %r15, %rdi movq %r14, %rsi jmp 0x116e2 leaq 0x1245a(%rip), %rdx # 0x23af5 jmp 0x116ad leaq 0x12ef1(%rip), %rdx # 0x24595 jmp 0x116ad leaq 0x12438(%rip), %rdx # 0x23ae5 leaq 0x12776(%rip), %rsi # 0x23e2a movq %rbx, %rdi xorl %eax, %eax callq 0x7800 movl $0x1, %edx movq %r15, %rdi movq %r14, %rsi movq %rbx, %rcx callq 0x7a50 leaq 0x1275b(%rip), %rdi # 0x23e33 movl $0x3, %esi movl $0x1, %edx movq %rbx, %rcx popq %rbx popq %r14 popq %r15 jmp 0x7a50 leaq 0x12741(%rip), %rdi # 0x23e37 leaq 0x12205(%rip), %rsi # 0x23902 leaq 0x12739(%rip), %rcx # 0x23e3d movl $0xeb, %edx callq 0x7330
_ZN5nglogL28ColoredWriteToStderrOrStdoutEP8_IO_FILENS_11LogSeverityEPKcm: push r15 push r14 push rbx mov r14, rcx mov r15, rdx mov rbx, rdi xor eax, eax cmp cs:_ZN5nglog14LogDestination24terminal_supports_color_E, 1; nglog::LogDestination::terminal_supports_color_ jnz short loc_11675 mov rcx, cs:stdout_ptr cmp [rcx], rbx jz short loc_11654 lea rcx, _ZN3fLB22FLAGS_colorlogtostderrE; fLB::FLAGS_colorlogtostderr cmp byte ptr [rcx], 0 jnz short loc_11660 jmp short loc_11675 loc_11654: lea rcx, _ZN3fLB22FLAGS_colorlogtostdoutE; fLB::FLAGS_colorlogtostdout cmp byte ptr [rcx], 1 jnz short loc_11675 loc_11660: cmp esi, 4 jnb loc_116EF mov eax, esi lea rcx, unk_23720 mov eax, [rcx+rax*4] loc_11675: mov eax, eax lea rcx, jpt_11685 movsxd rax, ds:(jpt_11685 - 23730h)[rcx+rax*4]; switch 4 cases add rax, rcx jmp rax; switch jump loc_11687: mov edx, 1; jumptable 0000000000011685 case 0 mov rdi, r15 mov rsi, r14 jmp short loc_116E2 loc_11694: lea rdx, aProcSelfFd2+0Eh; jumptable 0000000000011685 case 2 jmp short loc_116AD loc_1169D: lea rdx, aDc3+2; jumptable 0000000000011685 case 3 jmp short loc_116AD loc_116A6: lea rdx, aProcSelfFd1+0Eh; jumptable 0000000000011685 case 1 loc_116AD: lea rsi, a03Sm; "\x1B[0;3%sm" mov rdi, rbx xor eax, eax call _fprintf mov edx, 1 mov rdi, r15 mov rsi, r14 mov rcx, rbx call _fwrite lea rdi, aM; "\x1B[m" mov esi, 3 mov edx, 1 loc_116E2: mov rcx, rbx pop rbx pop r14 pop r15 jmp _fwrite loc_116EF: lea rdi, aFalse; "false" lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rcx, aGlogcolorNglog; "GLogColor nglog::SeverityToColor(LogSev"... mov edx, 0EBh call ___assert_fail
long long nglog::ColoredWriteToStderrOrStdout(long long a1, unsigned int a2, const char *a3, long long a4) { int v7; // eax const char *v8; // rdi long long v9; // rsi const char *v10; // rdx v7 = 0; if ( nglog::LogDestination::terminal_supports_color_ != 1 ) goto LABEL_8; if ( stdout == a1 ) { if ( fLB::FLAGS_colorlogtostdout != 1 ) goto LABEL_8; } else if ( !fLB::FLAGS_colorlogtostderr ) { goto LABEL_8; } if ( a2 >= 4 ) __assert_fail( "false", "/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging.cc", 235LL, "GLogColor nglog::SeverityToColor(LogSeverity)"); v7 = dword_23720[a2]; LABEL_8: switch ( v7 ) { case 0: v8 = a3; v9 = a4; return fwrite(v8, v9, 1LL, a1); case 1: v10 = "1"; goto LABEL_13; case 2: v10 = "2"; goto LABEL_13; case 3: v10 = "3"; LABEL_13: fprintf(a1, "\x1B[0;3%sm", v10); fwrite(a3, a4, 1LL, a1); v8 = "\x1B[m"; v9 = 3LL; return fwrite(v8, v9, 1LL, a1); } }
ColoredWriteToStderrOrStdout: PUSH R15 PUSH R14 PUSH RBX MOV R14,RCX MOV R15,RDX MOV RBX,RDI XOR EAX,EAX CMP byte ptr [0x00131c80],0x1 JNZ 0x00111675 MOV RCX,qword ptr [0x00130f00] CMP qword ptr [RCX],RBX JZ 0x00111654 LEA RCX,[0x131a7e] CMP byte ptr [RCX],0x0 JNZ 0x00111660 JMP 0x00111675 LAB_00111654: LEA RCX,[0x131a80] CMP byte ptr [RCX],0x1 JNZ 0x00111675 LAB_00111660: CMP ESI,0x4 JNC 0x001116ef MOV EAX,ESI LEA RCX,[0x123720] MOV EAX,dword ptr [RCX + RAX*0x4] LAB_00111675: MOV EAX,EAX LEA RCX,[0x123730] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX JMP RAX LAB_001116ef: LEA RDI,[0x123e37] LEA RSI,[0x123902] LEA RCX,[0x123e3d] MOV EDX,0xeb CALL 0x00107330
/* nglog::ColoredWriteToStderrOrStdout(_IO_FILE*, nglog::LogSeverity, char const*, unsigned long) */ void nglog::ColoredWriteToStderrOrStdout(long param_1,uint param_2) { uint uVar1; uVar1 = 0; if (LogDestination::terminal_supports_color_ == '\x01') { uVar1 = 0; if (*(long *)PTR_stdout_00130f00 == param_1) { if (fLB::FLAGS_colorlogtostdout != '\x01') goto LAB_00111675; } else if (fLB::FLAGS_colorlogtostderr == '\0') goto LAB_00111675; if (3 < param_2) { /* WARNING: Subroutine does not return */ __assert_fail("false","/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging.cc" ,0xeb,"GLogColor nglog::SeverityToColor(LogSeverity)"); } uVar1 = *(uint *)(&DAT_00123720 + (ulong)param_2 * 4); } LAB_00111675: /* WARNING: Could not recover jumptable at 0x00111685. Too many branches */ /* WARNING: Treating indirect jump as call */ (*(code *)((long)&DAT_00123730 + (long)(int)(&DAT_00123730)[uVar1]))(); return; }
53,125
nglog::ColoredWriteToStderrOrStdout(_IO_FILE*, nglog::LogSeverity, char const*, unsigned long)
ng-log[P]ng-log/src/logging.cc
static void ColoredWriteToStderrOrStdout(FILE* output, LogSeverity severity, const char* message, size_t len) { bool is_stdout = (output == stdout); const GLogColor color = (LogDestination::terminal_supports_color() && ((!is_stdout && FLAGS_colorlogtostderr) || (is_stdout && FLAGS_colorlogtostdout))) ? SeverityToColor(severity) : COLOR_DEFAULT; // Avoid using cerr from this module since we may get called during // exit code, and cerr may be partially or fully destroyed by then. if (COLOR_DEFAULT == color) { fwrite(message, len, 1, output); return; } #ifdef NGLOG_OS_WINDOWS const HANDLE output_handle = GetStdHandle(is_stdout ? STD_OUTPUT_HANDLE : STD_ERROR_HANDLE); // Gets the current text color. CONSOLE_SCREEN_BUFFER_INFO buffer_info; GetConsoleScreenBufferInfo(output_handle, &buffer_info); const WORD old_color_attrs = buffer_info.wAttributes; // We need to flush the stream buffers into the console before each // SetConsoleTextAttribute call lest it affect the text that is already // printed but has not yet reached the console. fflush(output); SetConsoleTextAttribute(output_handle, GetColorAttribute(color) | FOREGROUND_INTENSITY); fwrite(message, len, 1, output); fflush(output); // Restores the text color. SetConsoleTextAttribute(output_handle, old_color_attrs); #else fprintf(output, "\033[0;3%sm", GetAnsiColorCode(color)); fwrite(message, len, 1, output); fprintf(output, "\033[m"); // Resets the terminal to default. #endif // NGLOG_OS_WINDOWS }
O3
cpp
nglog::ColoredWriteToStderrOrStdout(_IO_FILE*, nglog::LogSeverity, char const*, unsigned long): pushq %r15 pushq %r14 pushq %rbx movq %rcx, %r14 movq %rdx, %r15 movq %rdi, %rbx cmpb $0x1, 0x20943(%rip) # 0x31c80 jne 0x1137f movq 0x1fbba(%rip), %rax # 0x30f00 cmpq %rbx, (%rax) je 0x11359 leaq 0x2072c(%rip), %rax # 0x31a7e cmpb $0x0, (%rax) jne 0x11365 jmp 0x1137f leaq 0x20720(%rip), %rax # 0x31a80 cmpb $0x1, (%rax) jne 0x1137f leal -0x2(%rsi), %eax cmpl $0x2, %eax jb 0x11397 testl %esi, %esi je 0x1137f cmpl $0x1, %esi jne 0x113d5 leaq 0x131fd(%rip), %rdx # 0x2457a jmp 0x1139e movl $0x1, %edx movq %r15, %rdi movq %r14, %rsi movq %rbx, %rcx popq %rbx popq %r14 popq %r15 jmp 0x7a50 leaq 0x1272f(%rip), %rdx # 0x23acd leaq 0x12a6a(%rip), %rsi # 0x23e0f movq %rbx, %rdi xorl %eax, %eax callq 0x7800 movl $0x1, %edx movq %r15, %rdi movq %r14, %rsi movq %rbx, %rcx callq 0x7a50 leaq 0x12a4f(%rip), %rdi # 0x23e18 movl $0x3, %esi movl $0x1, %edx jmp 0x1138a leaq 0x12a40(%rip), %rdi # 0x23e1c leaq 0x12507(%rip), %rsi # 0x238ea leaq 0x12a38(%rip), %rcx # 0x23e22 movl $0xeb, %edx callq 0x7330
_ZN5nglogL28ColoredWriteToStderrOrStdoutEP8_IO_FILENS_11LogSeverityEPKcm: push r15 push r14 push rbx mov r14, rcx mov r15, rdx mov rbx, rdi cmp cs:_ZN5nglog14LogDestination24terminal_supports_color_E, 1; nglog::LogDestination::terminal_supports_color_ jnz short loc_1137F mov rax, cs:stdout_ptr cmp [rax], rbx jz short loc_11359 lea rax, _ZN3fLB22FLAGS_colorlogtostderrE; fLB::FLAGS_colorlogtostderr cmp byte ptr [rax], 0 jnz short loc_11365 jmp short loc_1137F loc_11359: lea rax, _ZN3fLB22FLAGS_colorlogtostdoutE; fLB::FLAGS_colorlogtostdout cmp byte ptr [rax], 1 jnz short loc_1137F loc_11365: lea eax, [rsi-2] cmp eax, 2 jb short loc_11397 test esi, esi jz short loc_1137F cmp esi, 1 jnz short loc_113D5 lea rdx, aDc3+2; "3" jmp short loc_1139E loc_1137F: mov edx, 1 mov rdi, r15 mov rsi, r14 loc_1138A: mov rcx, rbx pop rbx pop r14 pop r15 jmp _fwrite loc_11397: lea rdx, aProcSelfFd1+0Eh; "1" loc_1139E: lea rsi, a03Sm; "\x1B[0;3%sm" mov rdi, rbx xor eax, eax call _fprintf mov edx, 1 mov rdi, r15 mov rsi, r14 mov rcx, rbx call _fwrite lea rdi, aM; "\x1B[m" mov esi, 3 mov edx, 1 jmp short loc_1138A loc_113D5: lea rdi, aFalse; "false" lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rcx, aGlogcolorNglog; "GLogColor nglog::SeverityToColor(LogSev"... mov edx, 0EBh call ___assert_fail
long long nglog::ColoredWriteToStderrOrStdout(long long a1, int a2, const char *a3, long long a4) { const char *v7; // rdx const char *v8; // rdi long long v9; // rsi if ( nglog::LogDestination::terminal_supports_color_ != 1 ) goto LABEL_10; if ( stdout == a1 ) { if ( fLB::FLAGS_colorlogtostdout != 1 ) goto LABEL_10; } else if ( !fLB::FLAGS_colorlogtostderr ) { goto LABEL_10; } if ( (unsigned int)(a2 - 2) < 2 ) { v7 = "1"; LABEL_13: fprintf(a1, "\x1B[0;3%sm", v7); fwrite(a3, a4, 1LL, a1); v8 = "\x1B[m"; v9 = 3LL; return fwrite(v8, v9, 1LL, a1); } if ( a2 ) { if ( a2 != 1 ) __assert_fail( "false", "/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging.cc", 235LL, "GLogColor nglog::SeverityToColor(LogSeverity)"); v7 = "3"; goto LABEL_13; } LABEL_10: v8 = a3; v9 = a4; return fwrite(v8, v9, 1LL, a1); }
ColoredWriteToStderrOrStdout: PUSH R15 PUSH R14 PUSH RBX MOV R14,RCX MOV R15,RDX MOV RBX,RDI CMP byte ptr [0x00131c80],0x1 JNZ 0x0011137f MOV RAX,qword ptr [0x00130f00] CMP qword ptr [RAX],RBX JZ 0x00111359 LEA RAX,[0x131a7e] CMP byte ptr [RAX],0x0 JNZ 0x00111365 JMP 0x0011137f LAB_00111359: LEA RAX,[0x131a80] CMP byte ptr [RAX],0x1 JNZ 0x0011137f LAB_00111365: LEA EAX,[RSI + -0x2] CMP EAX,0x2 JC 0x00111397 TEST ESI,ESI JZ 0x0011137f CMP ESI,0x1 JNZ 0x001113d5 LEA RDX,[0x12457a] JMP 0x0011139e LAB_0011137f: MOV EDX,0x1 MOV RDI,R15 MOV RSI,R14 LAB_0011138a: MOV RCX,RBX POP RBX POP R14 POP R15 JMP 0x00107a50 LAB_00111397: LEA RDX,[0x123acd] LAB_0011139e: LEA RSI,[0x123e0f] MOV RDI,RBX XOR EAX,EAX CALL 0x00107800 MOV EDX,0x1 MOV RDI,R15 MOV RSI,R14 MOV RCX,RBX CALL 0x00107a50 LEA RDI,[0x123e18] MOV ESI,0x3 MOV EDX,0x1 JMP 0x0011138a LAB_001113d5: LEA RDI,[0x123e1c] LEA RSI,[0x1238ea] LEA RCX,[0x123e22] MOV EDX,0xeb CALL 0x00107330
/* nglog::ColoredWriteToStderrOrStdout(_IO_FILE*, nglog::LogSeverity, char const*, unsigned long) */ void nglog::ColoredWriteToStderrOrStdout (FILE *param_1,int param_2,int *param_3,size_t param_4) { char *pcVar1; if (LogDestination::terminal_supports_color_ == '\x01') { if (*(FILE **)PTR_stdout_00130f00 == param_1) { if (fLB::FLAGS_colorlogtostdout != '\x01') goto LAB_0011138a; } else if (fLB::FLAGS_colorlogtostderr == '\0') goto LAB_0011138a; if (param_2 - 2U < 2) { pcVar1 = "1"; } else { if (param_2 == 0) goto LAB_0011138a; if (param_2 != 1) { /* WARNING: Subroutine does not return */ __assert_fail("false", "/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging.cc",0xeb, "GLogColor nglog::SeverityToColor(LogSeverity)"); } pcVar1 = "3"; } fprintf(param_1,"\x1b[0;3%sm",pcVar1); fwrite(param_3,param_4,1,param_1); param_3 = &DAT_00123e18; param_4 = 3; } LAB_0011138a: fwrite(param_3,param_4,1,param_1); return; }
53,126
ma_init_dynamic_array
eloqsql/libmariadb/libmariadb/ma_array.c
my_bool ma_init_dynamic_array(DYNAMIC_ARRAY *array, uint element_size, uint init_alloc, uint alloc_increment CALLER_INFO_PROTO) { if (!alloc_increment) { alloc_increment=max((8192-MALLOC_OVERHEAD)/element_size,16); if (init_alloc > 8 && alloc_increment > init_alloc * 2) alloc_increment=init_alloc*2; } if (!init_alloc) init_alloc=alloc_increment; array->elements=0; array->max_element=init_alloc; array->alloc_increment=alloc_increment; array->size_of_element=element_size; if (!(array->buffer=(char*) malloc(element_size*init_alloc))) { array->max_element=0; return(TRUE); } return(FALSE); }
O3
c
ma_init_dynamic_array: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movl %edx, %r8d movq %rdi, %rbx testl %ecx, %ecx jne 0x2e084 movl $0x10, %ecx cmpl $0x1e1, %esi # imm = 0x1E1 ja 0x2e075 movw $0x1ff8, %ax # imm = 0x1FF8 xorl %edx, %edx divw %si movzwl %ax, %ecx cmpl $0x9, %r8d jb 0x2e084 leal (%r8,%r8), %eax cmpl %eax, %ecx cmovael %eax, %ecx testl %r8d, %r8d cmovel %ecx, %r8d movl $0x0, 0x8(%rbx) movl %r8d, 0xc(%rbx) movl %ecx, 0x10(%rbx) movl %esi, 0x14(%rbx) imull %esi, %r8d movq %r8, %rdi callq 0x135d0 movq %rax, (%rbx) testq %rax, %rax je 0x2e0b4 xorl %eax, %eax jmp 0x2e0bd movl $0x0, 0xc(%rbx) movb $0x1, %al addq $0x8, %rsp popq %rbx popq %rbp retq
ma_init_dynamic_array: push rbp mov rbp, rsp push rbx push rax mov r8d, edx mov rbx, rdi test ecx, ecx jnz short loc_2E084 mov ecx, 10h cmp esi, 1E1h ja short loc_2E075 mov ax, 1FF8h xor edx, edx div si movzx ecx, ax loc_2E075: cmp r8d, 9 jb short loc_2E084 lea eax, [r8+r8] cmp ecx, eax cmovnb ecx, eax loc_2E084: test r8d, r8d cmovz r8d, ecx mov dword ptr [rbx+8], 0 mov [rbx+0Ch], r8d mov [rbx+10h], ecx mov [rbx+14h], esi imul r8d, esi mov rdi, r8 call _malloc mov [rbx], rax test rax, rax jz short loc_2E0B4 xor eax, eax jmp short loc_2E0BD loc_2E0B4: mov dword ptr [rbx+0Ch], 0 mov al, 1 loc_2E0BD: add rsp, 8 pop rbx pop rbp retn
long long ma_init_dynamic_array(long long a1, unsigned int a2, unsigned int a3, unsigned int a4) { unsigned int v4; // r8d long long v5; // rax v4 = a3; if ( !a4 ) { a4 = 16; if ( a2 <= 0x1E1 ) a4 = 0x1FF8u / (unsigned __int16)a2; if ( a3 >= 9 && a4 >= 2 * a3 ) a4 = 2 * a3; } if ( !a3 ) v4 = a4; *(_DWORD *)(a1 + 8) = 0; *(_DWORD *)(a1 + 12) = v4; *(_DWORD *)(a1 + 16) = a4; *(_DWORD *)(a1 + 20) = a2; v5 = malloc(a2 * v4); *(_QWORD *)a1 = v5; if ( v5 ) return 0LL; *(_DWORD *)(a1 + 12) = 0; return 1LL; }
ma_init_dynamic_array: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV R8D,EDX MOV RBX,RDI TEST ECX,ECX JNZ 0x0012e084 MOV ECX,0x10 CMP ESI,0x1e1 JA 0x0012e075 MOV AX,0x1ff8 XOR EDX,EDX DIV SI MOVZX ECX,AX LAB_0012e075: CMP R8D,0x9 JC 0x0012e084 LEA EAX,[R8 + R8*0x1] CMP ECX,EAX CMOVNC ECX,EAX LAB_0012e084: TEST R8D,R8D CMOVZ R8D,ECX MOV dword ptr [RBX + 0x8],0x0 MOV dword ptr [RBX + 0xc],R8D MOV dword ptr [RBX + 0x10],ECX MOV dword ptr [RBX + 0x14],ESI IMUL R8D,ESI MOV RDI,R8 CALL 0x001135d0 MOV qword ptr [RBX],RAX TEST RAX,RAX JZ 0x0012e0b4 XOR EAX,EAX JMP 0x0012e0bd LAB_0012e0b4: MOV dword ptr [RBX + 0xc],0x0 MOV AL,0x1 LAB_0012e0bd: ADD RSP,0x8 POP RBX POP RBP RET
bool ma_init_dynamic_array(int8 *param_1,uint param_2,uint param_3,uint param_4) { void *pvVar1; if (param_4 == 0) { param_4 = 0x10; if (param_2 < 0x1e2) { param_4 = 0x1ff8 / (param_2 & 0xffff); } if ((8 < param_3) && (param_3 * 2 <= param_4)) { param_4 = param_3 * 2; } } if (param_3 == 0) { param_3 = param_4; } *(int4 *)(param_1 + 1) = 0; *(uint *)((long)param_1 + 0xc) = param_3; *(uint *)(param_1 + 2) = param_4; *(uint *)((long)param_1 + 0x14) = param_2; pvVar1 = malloc((ulong)(param_3 * param_2)); *param_1 = pvVar1; if (pvVar1 == (void *)0x0) { *(int4 *)((long)param_1 + 0xc) = 0; } return pvVar1 == (void *)0x0; }
53,127
search_default_file
eloqsql/mysys/my_default.c
static int search_default_file(struct handle_option_ctx *ctx, const char *dir, const char *config_file) { char **ext; const char *empty_list[]= { "", 0 }; my_bool have_ext= fn_ext(config_file)[0] != 0; const char **exts_to_use= have_ext ? empty_list : f_extensions; for (ext= (char**) exts_to_use; *ext; ext++) { int error; if ((error= search_default_file_with_ext(ctx, dir, *ext, config_file, 0)) < 0) return error; } return 0; }
O0
c
search_default_file: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq 0x19bb65(%rip), %rax # 0x1cde30 movq %rax, -0x40(%rbp) movq 0x19bb62(%rip), %rax # 0x1cde38 movq %rax, -0x38(%rbp) movq -0x20(%rbp), %rdi callq 0x34350 movsbl (%rax), %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %eax movb %al, -0x41(%rbp) movsbl -0x41(%rbp), %eax cmpl $0x0, %eax je 0x32307 leaq -0x40(%rbp), %rax movq %rax, -0x60(%rbp) jmp 0x32314 leaq 0x1a4822(%rip), %rax # 0x1d6b30 movq %rax, -0x60(%rbp) jmp 0x32314 movq -0x60(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x50(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax cmpq $0x0, (%rax) je 0x32369 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x28(%rbp), %rax movq (%rax), %rdx movq -0x20(%rbp), %rcx xorl %r8d, %r8d callq 0x315a0 movl %eax, -0x54(%rbp) cmpl $0x0, %eax jge 0x32359 movl -0x54(%rbp), %eax movl %eax, -0x4(%rbp) jmp 0x32370 jmp 0x3235b movq -0x28(%rbp), %rax addq $0x8, %rax movq %rax, -0x28(%rbp) jmp 0x32324 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x60, %rsp popq %rbp retq nopl (%rax)
search_default_file: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rax, cs:off_1CDE30; "" mov [rbp+var_40], rax mov rax, cs:qword_1CDE38 mov [rbp+var_38], rax mov rdi, [rbp+var_20] call fn_ext movsx eax, byte ptr [rax] cmp eax, 0 setnz al and al, 1 movzx eax, al mov [rbp+var_41], al movsx eax, [rbp+var_41] cmp eax, 0 jz short loc_32307 lea rax, [rbp+var_40] mov [rbp+var_60], rax jmp short loc_32314 loc_32307: lea rax, f_extensions mov [rbp+var_60], rax jmp short $+2 loc_32314: mov rax, [rbp+var_60] mov [rbp+var_50], rax mov rax, [rbp+var_50] mov [rbp+var_28], rax loc_32324: mov rax, [rbp+var_28] cmp qword ptr [rax], 0 jz short loc_32369 mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] mov rax, [rbp+var_28] mov rdx, [rax] mov rcx, [rbp+var_20] xor r8d, r8d call search_default_file_with_ext mov [rbp+var_54], eax cmp eax, 0 jge short loc_32359 mov eax, [rbp+var_54] mov [rbp+var_4], eax jmp short loc_32370 loc_32359: jmp short $+2 loc_3235B: mov rax, [rbp+var_28] add rax, 8 mov [rbp+var_28], rax jmp short loc_32324 loc_32369: mov [rbp+var_4], 0 loc_32370: mov eax, [rbp+var_4] add rsp, 60h pop rbp retn
long long search_default_file(long long a1, _BYTE *a2, long long a3) { char **v4; // [rsp+0h] [rbp-60h] int v5; // [rsp+Ch] [rbp-54h] _QWORD v6[3]; // [rsp+20h] [rbp-40h] BYREF long long *i; // [rsp+38h] [rbp-28h] long long v8; // [rsp+40h] [rbp-20h] _BYTE *v9; // [rsp+48h] [rbp-18h] long long v10; // [rsp+50h] [rbp-10h] v10 = a1; v9 = a2; v8 = a3; v6[0] = ""; v6[1] = &dword_0; if ( *(_BYTE *)fn_ext(a3) ) v4 = (char **)v6; else v4 = &f_extensions; for ( i = (long long *)v4; *i; ++i ) { v5 = search_default_file_with_ext(v10, v9, *i, v8, 0); if ( v5 < 0 ) return (unsigned int)v5; } return 0; }
search_default_file: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV RAX,qword ptr [0x002cde30] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [0x002cde38] MOV qword ptr [RBP + -0x38],RAX MOV RDI,qword ptr [RBP + -0x20] CALL 0x00134350 MOVSX EAX,byte ptr [RAX] CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL MOV byte ptr [RBP + -0x41],AL MOVSX EAX,byte ptr [RBP + -0x41] CMP EAX,0x0 JZ 0x00132307 LEA RAX,[RBP + -0x40] MOV qword ptr [RBP + -0x60],RAX JMP 0x00132314 LAB_00132307: LEA RAX,[0x2d6b30] MOV qword ptr [RBP + -0x60],RAX JMP 0x00132314 LAB_00132314: MOV RAX,qword ptr [RBP + -0x60] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RBP + -0x28],RAX LAB_00132324: MOV RAX,qword ptr [RBP + -0x28] CMP qword ptr [RAX],0x0 JZ 0x00132369 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x28] MOV RDX,qword ptr [RAX] MOV RCX,qword ptr [RBP + -0x20] XOR R8D,R8D CALL 0x001315a0 MOV dword ptr [RBP + -0x54],EAX CMP EAX,0x0 JGE 0x00132359 MOV EAX,dword ptr [RBP + -0x54] MOV dword ptr [RBP + -0x4],EAX JMP 0x00132370 LAB_00132359: JMP 0x0013235b LAB_0013235b: MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x8 MOV qword ptr [RBP + -0x28],RAX JMP 0x00132324 LAB_00132369: MOV dword ptr [RBP + -0x4],0x0 LAB_00132370: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x60 POP RBP RET
int search_default_file(int8 param_1,int8 param_2,int8 param_3) { int iVar1; char *pcVar2; int **local_68; int *local_48; int8 local_40; int **local_30; int8 local_28; int8 local_20; int8 local_18; local_48 = PTR_s__002cde30; local_40 = DAT_002cde38; local_28 = param_3; local_20 = param_2; local_18 = param_1; pcVar2 = (char *)fn_ext(param_3); if (*pcVar2 == '\0') { local_68 = &f_extensions; } else { local_68 = &local_48; } local_30 = local_68; while( true ) { if (*local_30 == (int *)0x0) { return 0; } iVar1 = search_default_file_with_ext(local_18,local_20,*local_30,local_28,0); if (iVar1 < 0) break; local_30 = local_30 + 1; } return iVar1; }
53,128
js_worker_finalizer
bluesky950520[P]quickjs/quickjs-libc.c
static void js_worker_finalizer(JSRuntime *rt, JSValue val) { JSThreadState *ts = js_get_thread_state(rt); JSWorkerData *worker = JS_GetOpaque(val, ts->worker_class_id); if (worker) { js_free_message_pipe(worker->recv_pipe); js_free_message_pipe(worker->send_pipe); js_free_port(rt, worker->msg_handler); js_free_rt(rt, worker); } }
O0
c
js_worker_finalizer: subq $0x28, %rsp movq %rsi, 0x18(%rsp) movq %rdx, 0x20(%rsp) movq %rdi, 0x10(%rsp) movq 0x10(%rsp), %rdi callq 0x10310 movq %rax, 0x8(%rsp) movq 0x8(%rsp), %rax movl 0x7c(%rax), %edx movq 0x18(%rsp), %rdi movq 0x20(%rsp), %rsi callq 0x37090 movq %rax, (%rsp) cmpq $0x0, (%rsp) je 0x15d1d movq (%rsp), %rax movq (%rax), %rdi callq 0x10440 movq (%rsp), %rax movq 0x8(%rax), %rdi callq 0x10440 movq 0x10(%rsp), %rdi movq (%rsp), %rax movq 0x10(%rax), %rsi callq 0x15d30 movq 0x10(%rsp), %rdi movq (%rsp), %rsi callq 0x206a0 addq $0x28, %rsp retq nopw %cs:(%rax,%rax)
js_worker_finalizer: sub rsp, 28h mov [rsp+28h+var_10], rsi mov [rsp+28h+var_8], rdx mov [rsp+28h+var_18], rdi mov rdi, [rsp+28h+var_18] call js_get_thread_state mov [rsp+28h+var_20], rax mov rax, [rsp+28h+var_20] mov edx, [rax+7Ch] mov rdi, [rsp+28h+var_10] mov rsi, [rsp+28h+var_8] call JS_GetOpaque mov [rsp+28h+var_28], rax cmp [rsp+28h+var_28], 0 jz short loc_15D1D mov rax, [rsp+28h+var_28] mov rdi, [rax] call js_free_message_pipe mov rax, [rsp+28h+var_28] mov rdi, [rax+8] call js_free_message_pipe mov rdi, [rsp+28h+var_18] mov rax, [rsp+28h+var_28] mov rsi, [rax+10h] call js_free_port mov rdi, [rsp+28h+var_18] mov rsi, [rsp+28h+var_28] call js_free_rt loc_15D1D: add rsp, 28h retn
long long * js_worker_finalizer(long long a1, long long a2, long long a3, int a4, int a5, int a6) { long long *result; // rax long long *v7; // [rsp+0h] [rbp-28h] long long thread_state; // [rsp+8h] [rbp-20h] thread_state = js_get_thread_state(a1, a2, a3, a4, a5, a6); result = (long long *)JS_GetOpaque(a2, a3, *(unsigned int *)(thread_state + 124)); v7 = result; if ( result ) { js_free_message_pipe(*result); js_free_message_pipe(v7[1]); js_free_port(a1, v7[2]); return (long long *)js_free_rt(a1, v7); } return result; }
js_worker_finalizer: SUB RSP,0x28 MOV qword ptr [RSP + 0x18],RSI MOV qword ptr [RSP + 0x20],RDX MOV qword ptr [RSP + 0x10],RDI MOV RDI,qword ptr [RSP + 0x10] CALL 0x00110310 MOV qword ptr [RSP + 0x8],RAX MOV RAX,qword ptr [RSP + 0x8] MOV EDX,dword ptr [RAX + 0x7c] MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RSP + 0x20] CALL 0x00137090 MOV qword ptr [RSP],RAX CMP qword ptr [RSP],0x0 JZ 0x00115d1d MOV RAX,qword ptr [RSP] MOV RDI,qword ptr [RAX] CALL 0x00110440 MOV RAX,qword ptr [RSP] MOV RDI,qword ptr [RAX + 0x8] CALL 0x00110440 MOV RDI,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RSP] MOV RSI,qword ptr [RAX + 0x10] CALL 0x00115d30 MOV RDI,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RSP] CALL 0x001206a0 LAB_00115d1d: ADD RSP,0x28 RET
void js_worker_finalizer(int8 param_1,int8 param_2,int8 param_3) { long lVar1; int8 *puVar2; lVar1 = js_get_thread_state(param_1); puVar2 = (int8 *)JS_GetOpaque(param_2,param_3,*(int4 *)(lVar1 + 0x7c)); if (puVar2 != (int8 *)0x0) { js_free_message_pipe(*puVar2); js_free_message_pipe(puVar2[1]); js_free_port(param_1,puVar2[2]); js_free_rt(param_1,puVar2); } return; }
53,129
js_worker_finalizer
bluesky950520[P]quickjs/quickjs-libc.c
static void js_worker_finalizer(JSRuntime *rt, JSValue val) { JSThreadState *ts = js_get_thread_state(rt); JSWorkerData *worker = JS_GetOpaque(val, ts->worker_class_id); if (worker) { js_free_message_pipe(worker->recv_pipe); js_free_message_pipe(worker->send_pipe); js_free_port(rt, worker->msg_handler); js_free_rt(rt, worker); } }
O1
c
js_worker_finalizer: pushq %r15 pushq %r14 pushq %rbx movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx xorl %edi, %edi movq %rbx, %rsi xorl %eax, %eax callq 0x399df movl 0x7c(%rax), %edx movq %r15, %rdi movq %r14, %rsi callq 0x26982 testq %rax, %rax je 0x175d2 movq %rax, %r14 movq (%rax), %rdi callq 0x147c3 movq 0x8(%r14), %rdi callq 0x147c3 movq 0x10(%r14), %rsi movq %rbx, %rdi callq 0x175d8 movq %rbx, %rdi movq %r14, %rsi popq %rbx popq %r14 popq %r15 jmp 0x1be70 popq %rbx popq %r14 popq %r15 retq
js_worker_finalizer: push r15 push r14 push rbx mov r14, rdx mov r15, rsi mov rbx, rdi xor edi, edi mov rsi, rbx xor eax, eax call js_std_cmd mov edx, [rax+7Ch] mov rdi, r15 mov rsi, r14 call JS_GetOpaque test rax, rax jz short loc_175D2 mov r14, rax mov rdi, [rax] call js_free_message_pipe mov rdi, [r14+8] call js_free_message_pipe mov rsi, [r14+10h] mov rdi, rbx call js_free_port mov rdi, rbx mov rsi, r14 pop rbx pop r14 pop r15 jmp js_free_rt loc_175D2: pop rbx pop r14 pop r15 retn
long long * js_worker_finalizer(long long a1, long long a2, long long a3, int a4, int a5, int a6) { long long v7; // rax long long *result; // rax long long *v9; // r14 v7 = js_std_cmd(0, a1, a3, a4, a5, a6); result = (long long *)JS_GetOpaque(a2, a3, *(unsigned int *)(v7 + 124)); if ( result ) { v9 = result; js_free_message_pipe(*result); js_free_message_pipe(v9[1]); js_free_port(a1, v9[2]); return (long long *)js_free_rt(a1, v9); } return result; }
js_worker_finalizer: PUSH R15 PUSH R14 PUSH RBX MOV R14,RDX MOV R15,RSI MOV RBX,RDI XOR EDI,EDI MOV RSI,RBX XOR EAX,EAX CALL 0x001399df MOV EDX,dword ptr [RAX + 0x7c] MOV RDI,R15 MOV RSI,R14 CALL 0x00126982 TEST RAX,RAX JZ 0x001175d2 MOV R14,RAX MOV RDI,qword ptr [RAX] CALL 0x001147c3 MOV RDI,qword ptr [R14 + 0x8] CALL 0x001147c3 MOV RSI,qword ptr [R14 + 0x10] MOV RDI,RBX CALL 0x001175d8 MOV RDI,RBX MOV RSI,R14 POP RBX POP R14 POP R15 JMP 0x0011be70 LAB_001175d2: POP RBX POP R14 POP R15 RET
void js_worker_finalizer(int8 param_1,int8 param_2,int8 param_3) { long lVar1; int8 *puVar2; lVar1 = js_std_cmd(0,param_1); puVar2 = (int8 *)JS_GetOpaque(param_2,param_3,*(int4 *)(lVar1 + 0x7c)); if (puVar2 != (int8 *)0x0) { js_free_message_pipe(*puVar2); js_free_message_pipe(puVar2[1]); js_free_port(param_1,puVar2[2]); js_free_rt(param_1,puVar2); return; } return; }
53,130
js_worker_finalizer
bluesky950520[P]quickjs/quickjs-libc.c
static void js_worker_finalizer(JSRuntime *rt, JSValue val) { JSThreadState *ts = js_get_thread_state(rt); JSWorkerData *worker = JS_GetOpaque(val, ts->worker_class_id); if (worker) { js_free_message_pipe(worker->recv_pipe); js_free_message_pipe(worker->send_pipe); js_free_port(rt, worker->msg_handler); js_free_rt(rt, worker); } }
O2
c
js_worker_finalizer: pushq %r15 pushq %r14 pushq %rbx movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx callq 0xf70e movl 0x7c(%rax), %edx movq %r15, %rdi movq %r14, %rsi callq 0x20676 testq %rax, %rax je 0x1235d movq %rax, %r14 movq (%rax), %rdi callq 0xf7e4 movq 0x8(%r14), %rdi callq 0xf7e4 movq 0x10(%r14), %rsi movq %rbx, %rdi callq 0x12363 movq %rbx, %rdi movq %r14, %rsi popq %rbx popq %r14 popq %r15 jmp 0x1654f popq %rbx popq %r14 popq %r15 retq
js_worker_finalizer: push r15 push r14 push rbx mov r14, rdx mov r15, rsi mov rbx, rdi call js_get_thread_state mov edx, [rax+7Ch] mov rdi, r15 mov rsi, r14 call JS_GetOpaque test rax, rax jz short loc_1235D mov r14, rax mov rdi, [rax] call js_free_message_pipe mov rdi, [r14+8] call js_free_message_pipe mov rsi, [r14+10h] mov rdi, rbx call js_free_port mov rdi, rbx mov rsi, r14 pop rbx pop r14 pop r15 jmp js_free_rt loc_1235D: pop rbx pop r14 pop r15 retn
long long * js_worker_finalizer(long long a1, long long a2, long long a3, int a4, int a5, int a6) { long long thread_state; // rax long long *result; // rax long long *v9; // r14 char v10; // [rsp+0h] [rbp-18h] thread_state = js_get_thread_state(a1, a2, a3, a4, a5, a6, v10); result = (long long *)JS_GetOpaque(a2, a3, *(unsigned int *)(thread_state + 124)); if ( result ) { v9 = result; js_free_message_pipe(*result); js_free_message_pipe(v9[1]); js_free_port(a1, v9[2]); return (long long *)js_free_rt(a1, v9); } return result; }
js_worker_finalizer: PUSH R15 PUSH R14 PUSH RBX MOV R14,RDX MOV R15,RSI MOV RBX,RDI CALL 0x0010f70e MOV EDX,dword ptr [RAX + 0x7c] MOV RDI,R15 MOV RSI,R14 CALL 0x00120676 TEST RAX,RAX JZ 0x0011235d MOV R14,RAX MOV RDI,qword ptr [RAX] CALL 0x0010f7e4 MOV RDI,qword ptr [R14 + 0x8] CALL 0x0010f7e4 MOV RSI,qword ptr [R14 + 0x10] MOV RDI,RBX CALL 0x00112363 MOV RDI,RBX MOV RSI,R14 POP RBX POP R14 POP R15 JMP 0x0011654f LAB_0011235d: POP RBX POP R14 POP R15 RET
void js_worker_finalizer(int8 param_1,int8 param_2,int8 param_3) { long lVar1; int8 *puVar2; lVar1 = js_get_thread_state(); puVar2 = (int8 *)JS_GetOpaque(param_2,param_3,*(int4 *)(lVar1 + 0x7c)); if (puVar2 != (int8 *)0x0) { js_free_message_pipe(*puVar2); js_free_message_pipe(puVar2[1]); js_free_port(param_1,puVar2[2]); js_free_rt(param_1,puVar2); return; } return; }
53,131
array_append_string_unique
eloqsql/mysys/mf_arr_appstr.c
my_bool array_append_string_unique(const char *str, const char **array, size_t size) { const char **p; /* end points at the terminating NULL element */ const char **end= array + size - 1; DBUG_ASSERT(*end == NULL); for (p= array; *p; ++p) { if (strcmp(*p, str) == 0) break; } if (p >= end) return TRUE; /* Array is full */ DBUG_ASSERT(*p == NULL || strcmp(*p, str) == 0); while (*(p + 1)) { *p= *(p + 1); ++p; } DBUG_ASSERT(p < end); *p= str; return FALSE; /* Success */ }
O0
c
array_append_string_unique: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x18(%rbp), %rax movq -0x20(%rbp), %rcx shlq $0x3, %rcx addq %rcx, %rax addq $-0x8, %rax movq %rax, -0x30(%rbp) jmp 0x3c71d movq -0x18(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax cmpq $0x0, (%rax) je 0x3c756 movq -0x28(%rbp), %rax movq (%rax), %rdi movq -0x10(%rbp), %rsi callq 0x25450 cmpl $0x0, %eax jne 0x3c746 jmp 0x3c756 jmp 0x3c748 movq -0x28(%rbp), %rax addq $0x8, %rax movq %rax, -0x28(%rbp) jmp 0x3c725 movq -0x28(%rbp), %rax cmpq -0x30(%rbp), %rax jb 0x3c766 movb $0x1, -0x1(%rbp) jmp 0x3c7a7 jmp 0x3c768 jmp 0x3c76a jmp 0x3c76c movq -0x28(%rbp), %rax cmpq $0x0, 0x8(%rax) je 0x3c794 movq -0x28(%rbp), %rax movq 0x8(%rax), %rcx movq -0x28(%rbp), %rax movq %rcx, (%rax) movq -0x28(%rbp), %rax addq $0x8, %rax movq %rax, -0x28(%rbp) jmp 0x3c76c jmp 0x3c796 jmp 0x3c798 movq -0x10(%rbp), %rcx movq -0x28(%rbp), %rax movq %rcx, (%rax) movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x30, %rsp popq %rbp retq
array_append_string_unique: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rax, [rbp+var_18] mov rcx, [rbp+var_20] shl rcx, 3 add rax, rcx add rax, 0FFFFFFFFFFFFFFF8h mov [rbp+var_30], rax jmp short $+2 loc_3C71D: mov rax, [rbp+var_18] mov [rbp+var_28], rax loc_3C725: mov rax, [rbp+var_28] cmp qword ptr [rax], 0 jz short loc_3C756 mov rax, [rbp+var_28] mov rdi, [rax] mov rsi, [rbp+var_10] call _strcmp cmp eax, 0 jnz short loc_3C746 jmp short loc_3C756 loc_3C746: jmp short $+2 loc_3C748: mov rax, [rbp+var_28] add rax, 8 mov [rbp+var_28], rax jmp short loc_3C725 loc_3C756: mov rax, [rbp+var_28] cmp rax, [rbp+var_30] jb short loc_3C766 mov [rbp+var_1], 1 jmp short loc_3C7A7 loc_3C766: jmp short $+2 loc_3C768: jmp short $+2 loc_3C76A: jmp short $+2 loc_3C76C: mov rax, [rbp+var_28] cmp qword ptr [rax+8], 0 jz short loc_3C794 mov rax, [rbp+var_28] mov rcx, [rax+8] mov rax, [rbp+var_28] mov [rax], rcx mov rax, [rbp+var_28] add rax, 8 mov [rbp+var_28], rax jmp short loc_3C76C loc_3C794: jmp short $+2 loc_3C796: jmp short $+2 loc_3C798: mov rcx, [rbp+var_10] mov rax, [rbp+var_28] mov [rax], rcx mov [rbp+var_1], 0 loc_3C7A7: mov al, [rbp+var_1] add rsp, 30h pop rbp retn
char array_append_string_unique(long long a1, _QWORD *a2, long long a3) { unsigned long long v4; // [rsp+0h] [rbp-30h] _QWORD *i; // [rsp+8h] [rbp-28h] v4 = (unsigned long long)&a2[a3 - 1]; for ( i = a2; *i && (unsigned int)strcmp(*i, a1); ++i ) ; if ( (unsigned long long)i >= v4 ) return 1; while ( i[1] ) { *i = i[1]; ++i; } *i = a1; return 0; }
array_append_string_unique: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x20] SHL RCX,0x3 ADD RAX,RCX ADD RAX,-0x8 MOV qword ptr [RBP + -0x30],RAX JMP 0x0013c71d LAB_0013c71d: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x28],RAX LAB_0013c725: MOV RAX,qword ptr [RBP + -0x28] CMP qword ptr [RAX],0x0 JZ 0x0013c756 MOV RAX,qword ptr [RBP + -0x28] MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RBP + -0x10] CALL 0x00125450 CMP EAX,0x0 JNZ 0x0013c746 JMP 0x0013c756 LAB_0013c746: JMP 0x0013c748 LAB_0013c748: MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x8 MOV qword ptr [RBP + -0x28],RAX JMP 0x0013c725 LAB_0013c756: MOV RAX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RBP + -0x30] JC 0x0013c766 MOV byte ptr [RBP + -0x1],0x1 JMP 0x0013c7a7 LAB_0013c766: JMP 0x0013c768 LAB_0013c768: JMP 0x0013c76a LAB_0013c76a: JMP 0x0013c76c LAB_0013c76c: MOV RAX,qword ptr [RBP + -0x28] CMP qword ptr [RAX + 0x8],0x0 JZ 0x0013c794 MOV RAX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x8 MOV qword ptr [RBP + -0x28],RAX JMP 0x0013c76c LAB_0013c794: JMP 0x0013c796 LAB_0013c796: JMP 0x0013c798 LAB_0013c798: MOV RCX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RAX],RCX MOV byte ptr [RBP + -0x1],0x0 LAB_0013c7a7: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x30 POP RBP RET
int1 array_append_string_unique(char *param_1,long *param_2,long param_3) { int iVar1; long *local_30; int1 local_9; local_30 = param_2; while ((*local_30 != 0 && (iVar1 = strcmp((char *)*local_30,param_1), iVar1 != 0))) { local_30 = local_30 + 1; } if (local_30 < param_2 + param_3 + -1) { for (; local_30[1] != 0; local_30 = local_30 + 1) { *local_30 = local_30[1]; } *local_30 = (long)param_1; local_9 = 0; } else { local_9 = 1; } return local_9; }
53,132
my_stat
eloqsql/mysys/my_lib.c
MY_STAT *my_stat(const char *path, MY_STAT *stat_area, myf my_flags) { int m_used; DBUG_ENTER("my_stat"); DBUG_PRINT("my", ("path: '%s' stat_area: %p MyFlags: %lu", path, stat_area, my_flags)); if ((m_used= (stat_area == NULL))) if (!(stat_area= (MY_STAT *) my_malloc(key_memory_MY_STAT, sizeof(MY_STAT), my_flags))) goto error; #ifndef _WIN32 if (!stat((char *) path, (struct stat *) stat_area)) { MSAN_STAT_WORKAROUND(stat_area); DBUG_RETURN(stat_area); } #else if (!my_win_stat(path, stat_area)) DBUG_RETURN(stat_area); #endif DBUG_PRINT("error",("Got errno: %d from stat", errno)); my_errno= errno; if (m_used) /* Free if new area */ my_free(stat_area); error: if (my_flags & (MY_FAE+MY_WME)) { my_error(EE_STAT, MYF(ME_BELL), path, my_errno); DBUG_RETURN((MY_STAT *) NULL); } DBUG_RETURN((MY_STAT *) NULL); }
O0
c
my_stat: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) jmp 0xf33f6 cmpq $0x0, -0x18(%rbp) sete %al movb %al, %cl andb $0x1, %cl movzbl %cl, %ecx movl %ecx, -0x24(%rbp) testb $0x1, %al jne 0xf340f jmp 0xf3434 leaq 0xb8feb2(%rip), %rax # 0xc832c8 movl (%rax), %edi movq -0x20(%rbp), %rdx movl $0x90, %esi callq 0xf3860 movq %rax, -0x18(%rbp) cmpq $0x0, %rax jne 0xf3432 jmp 0xf347b jmp 0xf3434 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0x2a7d0 cmpl $0x0, %eax jne 0xf3452 jmp 0xf3448 movq -0x18(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0xf34c1 jmp 0xf3454 jmp 0xf3456 callq 0x2a760 movl (%rax), %eax movl %eax, -0x28(%rbp) callq 0xf60c0 movl -0x28(%rbp), %ecx movl %ecx, (%rax) cmpl $0x0, -0x24(%rbp) je 0xf3479 movq -0x18(%rbp), %rdi callq 0xf3be0 jmp 0xf347b movq -0x20(%rbp), %rax andq $0x18, %rax cmpq $0x0, %rax je 0xf34b7 movq -0x10(%rbp), %rax movq %rax, -0x30(%rbp) callq 0xf60c0 movq -0x30(%rbp), %rdx movl (%rax), %ecx movl $0xd, %edi movl $0x4, %esi movb $0x0, %al callq 0xefb70 movq $0x0, -0x8(%rbp) jmp 0xf34c1 jmp 0xf34b9 movq $0x0, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x30, %rsp popq %rbp retq nopl (%rax,%rax)
my_stat: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx jmp short $+2 loc_F33F6: cmp [rbp+var_18], 0 setz al mov cl, al and cl, 1 movzx ecx, cl mov [rbp+var_24], ecx test al, 1 jnz short loc_F340F jmp short loc_F3434 loc_F340F: lea rax, key_memory_MY_STAT mov edi, [rax] mov rdx, [rbp+var_20] mov esi, 90h call my_malloc mov [rbp+var_18], rax cmp rax, 0 jnz short loc_F3432 jmp short loc_F347B loc_F3432: jmp short $+2 loc_F3434: mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] call _stat64 cmp eax, 0 jnz short loc_F3452 jmp short $+2 loc_F3448: mov rax, [rbp+var_18] mov [rbp+var_8], rax jmp short loc_F34C1 loc_F3452: jmp short $+2 loc_F3454: jmp short $+2 loc_F3456: call ___errno_location mov eax, [rax] mov [rbp+var_28], eax call _my_thread_var mov ecx, [rbp+var_28] mov [rax], ecx cmp [rbp+var_24], 0 jz short loc_F3479 mov rdi, [rbp+var_18] call my_free loc_F3479: jmp short $+2 loc_F347B: mov rax, [rbp+var_20] and rax, 18h cmp rax, 0 jz short loc_F34B7 mov rax, [rbp+var_10] mov [rbp+var_30], rax call _my_thread_var mov rdx, [rbp+var_30] mov ecx, [rax] mov edi, 0Dh mov esi, 4 mov al, 0 call my_error mov [rbp+var_8], 0 jmp short loc_F34C1 loc_F34B7: jmp short $+2 loc_F34B9: mov [rbp+var_8], 0 loc_F34C1: mov rax, [rbp+var_8] add rsp, 30h pop rbp retn
const char * my_stat(const char *a1, const char *a2, long long a3) { const char *v3; // rdi const char *v4; // rsi unsigned int *v5; // rax int v7; // [rsp+8h] [rbp-28h] BOOL v8; // [rsp+Ch] [rbp-24h] char v9; // [rsp+10h] [rbp-20h] const char *v10; // [rsp+18h] [rbp-18h] v10 = a2; v9 = a3; v8 = a2 == 0LL; if ( a2 || (v3 = (const char *)key_memory_MY_STAT, v4 = (const char *)&qword_90, (v10 = (const char *)my_malloc(key_memory_MY_STAT, 144LL, a3)) != 0LL) ) { v3 = a1; v4 = v10; if ( !(unsigned int)stat64(a1, v10) ) return v10; v7 = *(_DWORD *)__errno_location(); *(_DWORD *)my_thread_var(a1, v10) = v7; if ( v8 ) { v3 = v10; my_free(v10); } } if ( (v9 & 0x18) != 0 ) { v5 = (unsigned int *)my_thread_var(v3, v4); my_error(0xDu, 4LL, a1, *v5); } return 0LL; }
my_stat: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX JMP 0x001f33f6 LAB_001f33f6: CMP qword ptr [RBP + -0x18],0x0 SETZ AL MOV CL,AL AND CL,0x1 MOVZX ECX,CL MOV dword ptr [RBP + -0x24],ECX TEST AL,0x1 JNZ 0x001f340f JMP 0x001f3434 LAB_001f340f: LEA RAX,[0xd832c8] MOV EDI,dword ptr [RAX] MOV RDX,qword ptr [RBP + -0x20] MOV ESI,0x90 CALL 0x001f3860 MOV qword ptr [RBP + -0x18],RAX CMP RAX,0x0 JNZ 0x001f3432 JMP 0x001f347b LAB_001f3432: JMP 0x001f3434 LAB_001f3434: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] CALL 0x0012a7d0 CMP EAX,0x0 JNZ 0x001f3452 JMP 0x001f3448 LAB_001f3448: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x8],RAX JMP 0x001f34c1 LAB_001f3452: JMP 0x001f3454 LAB_001f3454: JMP 0x001f3456 LAB_001f3456: CALL 0x0012a760 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x28],EAX CALL 0x001f60c0 MOV ECX,dword ptr [RBP + -0x28] MOV dword ptr [RAX],ECX CMP dword ptr [RBP + -0x24],0x0 JZ 0x001f3479 MOV RDI,qword ptr [RBP + -0x18] CALL 0x001f3be0 LAB_001f3479: JMP 0x001f347b LAB_001f347b: MOV RAX,qword ptr [RBP + -0x20] AND RAX,0x18 CMP RAX,0x0 JZ 0x001f34b7 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x30],RAX CALL 0x001f60c0 MOV RDX,qword ptr [RBP + -0x30] MOV ECX,dword ptr [RAX] MOV EDI,0xd MOV ESI,0x4 MOV AL,0x0 CALL 0x001efb70 MOV qword ptr [RBP + -0x8],0x0 JMP 0x001f34c1 LAB_001f34b7: JMP 0x001f34b9 LAB_001f34b9: MOV qword ptr [RBP + -0x8],0x0 LAB_001f34c1: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x30 POP RBP RET
stat64 * my_stat(char *param_1,stat64 *param_2,ulong param_3) { int iVar1; int *piVar2; int4 *puVar3; stat64 *local_20; local_20 = param_2; if ((param_2 != (stat64 *)0x0) || (local_20 = (stat64 *)my_malloc(key_memory_MY_STAT,0x90,param_3), local_20 != (stat64 *)0x0)) { iVar1 = stat64(param_1,local_20); if (iVar1 == 0) { return local_20; } piVar2 = __errno_location(); iVar1 = *piVar2; piVar2 = (int *)_my_thread_var(); *piVar2 = iVar1; if (param_2 == (stat64 *)0x0) { my_free(local_20); } } if ((param_3 & 0x18) != 0) { puVar3 = (int4 *)_my_thread_var(); my_error(0xd,4,param_1,*puVar3); } return (stat64 *)0x0; }
53,133
free_maria_share
eloqsql/storage/maria/ma_close.c
void free_maria_share(MARIA_SHARE *share) { if (!share->internal_table) mysql_mutex_assert_owner(&share->intern_lock); if (!share->reopen && !share->in_trans && !(share->in_checkpoint & MARIA_CHECKPOINT_SHOULD_FREE_ME)) { /* No one can access this share anymore, time to delete it ! */ if (!share->internal_table) mysql_mutex_unlock(&share->intern_lock); ma_crypt_free(share); my_free(share->s3_path); (void) mysql_mutex_destroy(&share->intern_lock); (void) mysql_mutex_destroy(&share->close_lock); (void) mysql_cond_destroy(&share->key_del_cond); my_free(share); return; } if (!share->internal_table) mysql_mutex_unlock(&share->intern_lock); return; }
O0
c
free_maria_share: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax cmpb $0x0, 0x7e2(%rax) jne 0x6de9f jmp 0x6de9b jmp 0x6de9d jmp 0x6de9f movq -0x8(%rbp), %rax cmpl $0x0, 0x7a8(%rax) jne 0x6df45 movq -0x8(%rbp), %rax cmpl $0x0, 0x7ac(%rax) jne 0x6df45 movq -0x8(%rbp), %rax movzbl 0x7d8(%rax), %eax andl $0x2, %eax cmpl $0x0, %eax jne 0x6df45 movq -0x8(%rbp), %rax cmpb $0x0, 0x7e2(%rax) jne 0x6def1 movq -0x8(%rbp), %rdi addq $0x8f0, %rdi # imm = 0x8F0 callq 0x6de20 movq -0x8(%rbp), %rdi callq 0x9da90 movq -0x8(%rbp), %rax movq 0x798(%rax), %rdi callq 0xfa370 movq -0x8(%rbp), %rdi addq $0x8f0, %rdi # imm = 0x8F0 callq 0x6dd60 movq -0x8(%rbp), %rdi addq $0x9b8, %rdi # imm = 0x9B8 callq 0x6dd60 movq -0x8(%rbp), %rdi addq $0x980, %rdi # imm = 0x980 callq 0x6df70 movq -0x8(%rbp), %rdi callq 0xfa370 jmp 0x6df64 movq -0x8(%rbp), %rax cmpb $0x0, 0x7e2(%rax) jne 0x6df62 movq -0x8(%rbp), %rdi addq $0x8f0, %rdi # imm = 0x8F0 callq 0x6de20 jmp 0x6df64 addq $0x10, %rsp popq %rbp retq nopw (%rax,%rax)
free_maria_share: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov rax, [rbp+var_8] cmp byte ptr [rax+7E2h], 0 jnz short loc_6DE9F jmp short $+2 loc_6DE9B: jmp short $+2 loc_6DE9D: jmp short $+2 loc_6DE9F: mov rax, [rbp+var_8] cmp dword ptr [rax+7A8h], 0 jnz loc_6DF45 mov rax, [rbp+var_8] cmp dword ptr [rax+7ACh], 0 jnz loc_6DF45 mov rax, [rbp+var_8] movzx eax, byte ptr [rax+7D8h] and eax, 2 cmp eax, 0 jnz short loc_6DF45 mov rax, [rbp+var_8] cmp byte ptr [rax+7E2h], 0 jnz short loc_6DEF1 mov rdi, [rbp+var_8] add rdi, 8F0h call inline_mysql_mutex_unlock_9 loc_6DEF1: mov rdi, [rbp+var_8] call ma_crypt_free mov rax, [rbp+var_8] mov rdi, [rax+798h] call my_free mov rdi, [rbp+var_8] add rdi, 8F0h call inline_mysql_mutex_destroy_1 mov rdi, [rbp+var_8] add rdi, 9B8h call inline_mysql_mutex_destroy_1 mov rdi, [rbp+var_8] add rdi, 980h call inline_mysql_cond_destroy_0 mov rdi, [rbp+var_8] call my_free jmp short loc_6DF64 loc_6DF45: mov rax, [rbp+var_8] cmp byte ptr [rax+7E2h], 0 jnz short loc_6DF62 mov rdi, [rbp+var_8] add rdi, 8F0h call inline_mysql_mutex_unlock_9 loc_6DF62: jmp short $+2 loc_6DF64: add rsp, 10h pop rbp retn
long long free_maria_share(long long a1) { long long result; // rax if ( *(_DWORD *)(a1 + 1960) || *(_DWORD *)(a1 + 1964) || (*(_BYTE *)(a1 + 2008) & 2) != 0 ) { result = a1; if ( !*(_BYTE *)(a1 + 2018) ) return inline_mysql_mutex_unlock_9(a1 + 2288); } else { if ( !*(_BYTE *)(a1 + 2018) ) inline_mysql_mutex_unlock_9(a1 + 2288); ma_crypt_free(a1); my_free(*(_QWORD *)(a1 + 1944)); inline_mysql_mutex_destroy_1(a1 + 2288); inline_mysql_mutex_destroy_1(a1 + 2488); inline_mysql_cond_destroy_0(a1 + 2432); return my_free(a1); } return result; }
free_maria_share: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] CMP byte ptr [RAX + 0x7e2],0x0 JNZ 0x0016de9f JMP 0x0016de9b LAB_0016de9b: JMP 0x0016de9d LAB_0016de9d: JMP 0x0016de9f LAB_0016de9f: MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x7a8],0x0 JNZ 0x0016df45 MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x7ac],0x0 JNZ 0x0016df45 MOV RAX,qword ptr [RBP + -0x8] MOVZX EAX,byte ptr [RAX + 0x7d8] AND EAX,0x2 CMP EAX,0x0 JNZ 0x0016df45 MOV RAX,qword ptr [RBP + -0x8] CMP byte ptr [RAX + 0x7e2],0x0 JNZ 0x0016def1 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x8f0 CALL 0x0016de20 LAB_0016def1: MOV RDI,qword ptr [RBP + -0x8] CALL 0x0019da90 MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x798] CALL 0x001fa370 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x8f0 CALL 0x0016dd60 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x9b8 CALL 0x0016dd60 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x980 CALL 0x0016df70 MOV RDI,qword ptr [RBP + -0x8] CALL 0x001fa370 JMP 0x0016df64 LAB_0016df45: MOV RAX,qword ptr [RBP + -0x8] CMP byte ptr [RAX + 0x7e2],0x0 JNZ 0x0016df62 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x8f0 CALL 0x0016de20 LAB_0016df62: JMP 0x0016df64 LAB_0016df64: ADD RSP,0x10 POP RBP RET
void free_maria_share(long param_1) { if (((*(int *)(param_1 + 0x7a8) == 0) && (*(int *)(param_1 + 0x7ac) == 0)) && ((*(byte *)(param_1 + 0x7d8) & 2) == 0)) { if (*(char *)(param_1 + 0x7e2) == '\0') { inline_mysql_mutex_unlock(param_1 + 0x8f0); } ma_crypt_free(param_1); my_free(*(int8 *)(param_1 + 0x798)); inline_mysql_mutex_destroy(param_1 + 0x8f0); inline_mysql_mutex_destroy(param_1 + 0x9b8); inline_mysql_cond_destroy(param_1 + 0x980); my_free(param_1); } else if (*(char *)(param_1 + 0x7e2) == '\0') { inline_mysql_mutex_unlock(param_1 + 0x8f0); } return; }
53,134
set_max_sort_char
eloqsql/strings/ctype-simple.c
static void set_max_sort_char(struct charset_info_st *cs) { uchar max_char; uint i; if (!cs->sort_order) return; max_char=cs->sort_order[(uchar) cs->max_sort_char]; for (i= 0; i < 256; i++) { if ((uchar) cs->sort_order[i] > max_char) { max_char=(uchar) cs->sort_order[i]; cs->max_sort_char= i; } } }
O0
c
set_max_sort_char: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax cmpq $0x0, 0x58(%rax) jne 0x7d5f5 jmp 0x7d666 movq -0x8(%rbp), %rax movq 0x58(%rax), %rax movq -0x8(%rbp), %rcx movq 0xa8(%rcx), %rcx movzbl %cl, %ecx movb (%rax,%rcx), %al movb %al, -0x9(%rbp) movl $0x0, -0x10(%rbp) cmpl $0x100, -0x10(%rbp) # imm = 0x100 jae 0x7d666 movq -0x8(%rbp), %rax movq 0x58(%rax), %rax movl -0x10(%rbp), %ecx movzbl (%rax,%rcx), %eax movzbl -0x9(%rbp), %ecx cmpl %ecx, %eax jle 0x7d659 movq -0x8(%rbp), %rax movq 0x58(%rax), %rax movl -0x10(%rbp), %ecx movb (%rax,%rcx), %al movb %al, -0x9(%rbp) movl -0x10(%rbp), %eax movl %eax, %ecx movq -0x8(%rbp), %rax movq %rcx, 0xa8(%rax) jmp 0x7d65b movl -0x10(%rbp), %eax addl $0x1, %eax movl %eax, -0x10(%rbp) jmp 0x7d618 popq %rbp retq nopl (%rax,%rax)
set_max_sort_char: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov rax, [rbp+var_8] cmp qword ptr [rax+58h], 0 jnz short loc_7D5F5 jmp short loc_7D666 loc_7D5F5: mov rax, [rbp+var_8] mov rax, [rax+58h] mov rcx, [rbp+var_8] mov rcx, [rcx+0A8h] movzx ecx, cl mov al, [rax+rcx] mov [rbp+var_9], al mov [rbp+var_10], 0 loc_7D618: cmp [rbp+var_10], 100h jnb short loc_7D666 mov rax, [rbp+var_8] mov rax, [rax+58h] mov ecx, [rbp+var_10] movzx eax, byte ptr [rax+rcx] movzx ecx, [rbp+var_9] cmp eax, ecx jle short loc_7D659 mov rax, [rbp+var_8] mov rax, [rax+58h] mov ecx, [rbp+var_10] mov al, [rax+rcx] mov [rbp+var_9], al mov eax, [rbp+var_10] mov ecx, eax mov rax, [rbp+var_8] mov [rax+0A8h], rcx loc_7D659: jmp short $+2 loc_7D65B: mov eax, [rbp+var_10] add eax, 1 mov [rbp+var_10], eax jmp short loc_7D618 loc_7D666: pop rbp retn
unsigned __int8 set_max_sort_char(long long a1) { unsigned __int8 result; // al unsigned int i; // [rsp+0h] [rbp-10h] unsigned __int8 v3; // [rsp+7h] [rbp-9h] result = a1; if ( *(_QWORD *)(a1 + 88) ) { result = *(_BYTE *)(*(_QWORD *)(a1 + 88) + (unsigned __int8)*(_QWORD *)(a1 + 168)); v3 = result; for ( i = 0; i < 0x100; ++i ) { if ( *(unsigned __int8 *)(*(_QWORD *)(a1 + 88) + i) > (int)v3 ) { v3 = *(_BYTE *)(*(_QWORD *)(a1 + 88) + i); *(_QWORD *)(a1 + 168) = i; } result = i + 1; } } return result; }
set_max_sort_char: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x58],0x0 JNZ 0x0017d5f5 JMP 0x0017d666 LAB_0017d5f5: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x58] MOV RCX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RCX + 0xa8] MOVZX ECX,CL MOV AL,byte ptr [RAX + RCX*0x1] MOV byte ptr [RBP + -0x9],AL MOV dword ptr [RBP + -0x10],0x0 LAB_0017d618: CMP dword ptr [RBP + -0x10],0x100 JNC 0x0017d666 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x58] MOV ECX,dword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX + RCX*0x1] MOVZX ECX,byte ptr [RBP + -0x9] CMP EAX,ECX JLE 0x0017d659 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x58] MOV ECX,dword ptr [RBP + -0x10] MOV AL,byte ptr [RAX + RCX*0x1] MOV byte ptr [RBP + -0x9],AL MOV EAX,dword ptr [RBP + -0x10] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0xa8],RCX LAB_0017d659: JMP 0x0017d65b LAB_0017d65b: MOV EAX,dword ptr [RBP + -0x10] ADD EAX,0x1 MOV dword ptr [RBP + -0x10],EAX JMP 0x0017d618 LAB_0017d666: POP RBP RET
void set_max_sort_char(long param_1) { int4 local_18; int1 local_11; if (*(long *)(param_1 + 0x58) != 0) { local_11 = *(byte *)(*(long *)(param_1 + 0x58) + (*(ulong *)(param_1 + 0xa8) & 0xff)); for (local_18 = 0; local_18 < 0x100; local_18 = local_18 + 1) { if (local_11 < *(byte *)(*(long *)(param_1 + 0x58) + (ulong)local_18)) { local_11 = *(byte *)(*(long *)(param_1 + 0x58) + (ulong)local_18); *(ulong *)(param_1 + 0xa8) = (ulong)local_18; } } } return; }
53,135
ma_calc_length_for_store_length
eloqsql/storage/maria/ma_blockrec.c
uint ma_calc_length_for_store_length(ulong nr) { if (nr < 251) return 1; if (nr < 65536) { if (nr <= 255) return 2; return 3; } if (nr < 16777216) return 4; return 5; }
O3
c
ma_calc_length_for_store_length: pushq %rbp movq %rsp, %rbp movl $0x1, %eax cmpq $0xfb, %rdi jb 0x4d4a2 cmpq $0xffff, %rdi # imm = 0xFFFF ja 0x4d493 cmpq $0x100, %rdi # imm = 0x100 movl $0x3, %eax jmp 0x4d49f cmpq $0x1000000, %rdi # imm = 0x1000000 movl $0x5, %eax sbbl $0x0, %eax popq %rbp retq
ma_calc_length_for_store_length: push rbp mov rbp, rsp mov eax, 1 cmp rdi, 0FBh jb short loc_4D4A2 cmp rdi, 0FFFFh ja short loc_4D493 cmp rdi, 100h mov eax, 3 jmp short loc_4D49F loc_4D493: cmp rdi, 1000000h mov eax, 5 loc_4D49F: sbb eax, 0 loc_4D4A2: pop rbp retn
long long ma_calc_length_for_store_length(unsigned long long a1) { long long result; // rax bool v2; // cf int v3; // eax result = 1LL; if ( a1 >= 0xFB ) { if ( a1 > 0xFFFF ) { v2 = a1 < 0x1000000; v3 = 5; } else { v2 = a1 < 0x100; v3 = 3; } return v3 - (unsigned int)v2; } return result; }
ma_calc_length_for_store_length: PUSH RBP MOV RBP,RSP MOV EAX,0x1 CMP RDI,0xfb JC 0x0014d4a2 CMP RDI,0xffff JA 0x0014d493 CMP RDI,0x100 MOV EAX,0x3 JMP 0x0014d49f LAB_0014d493: CMP RDI,0x1000000 MOV EAX,0x5 LAB_0014d49f: SBB EAX,0x0 LAB_0014d4a2: POP RBP RET
int ma_calc_length_for_store_length(ulong param_1) { int iVar1; bool bVar2; iVar1 = 1; if (0xfa < param_1) { if (param_1 < 0x10000) { bVar2 = param_1 < 0x100; iVar1 = 3; } else { bVar2 = param_1 < 0x1000000; iVar1 = 5; } iVar1 = iVar1 - (uint)bVar2; } return iVar1; }
53,136
r3d_light_process_shadow_update
r3d/src/details/r3d_light.c
void r3d_light_process_shadow_update(r3d_light_t* light) { switch (light->shadow.updateConf.mode) { case R3D_SHADOW_UPDATE_MANUAL: break; case R3D_SHADOW_UPDATE_INTERVAL: if (!light->shadow.updateConf.shoudlUpdate) { light->shadow.updateConf.timerSec += GetFrameTime(); if (light->shadow.updateConf.timerSec >= light->shadow.updateConf.frequencySec) { light->shadow.updateConf.shoudlUpdate = true; light->shadow.updateConf.timerSec = 0.0f; } } break; case R3D_SHADOW_UPDATE_CONTINUOUS: light->shadow.updateConf.shoudlUpdate = true; break; } }
O3
c
r3d_light_process_shadow_update: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq %rdi, %rbx movl (%rdi), %eax cmpl $0x2, %eax je 0xe2321 cmpl $0x1, %eax jne 0xe2325 cmpb $0x0, 0xc(%rbx) jne 0xe2325 callq 0x27631 addss 0x8(%rbx), %xmm0 movss %xmm0, 0x8(%rbx) ucomiss 0x4(%rbx), %xmm0 jb 0xe2325 movb $0x1, 0xc(%rbx) movl $0x0, 0x8(%rbx) jmp 0xe2325 movb $0x1, 0xc(%rbx) addq $0x8, %rsp popq %rbx popq %rbp retq
r3d_light_process_shadow_update: push rbp mov rbp, rsp push rbx push rax mov rbx, rdi mov eax, [rdi] cmp eax, 2 jz short loc_E2321 cmp eax, 1 jnz short loc_E2325 cmp byte ptr [rbx+0Ch], 0 jnz short loc_E2325 call GetFrameTime addss xmm0, dword ptr [rbx+8] movss dword ptr [rbx+8], xmm0 ucomiss xmm0, dword ptr [rbx+4] jb short loc_E2325 mov byte ptr [rbx+0Ch], 1 mov dword ptr [rbx+8], 0 jmp short loc_E2325 loc_E2321: mov byte ptr [rbx+0Ch], 1 loc_E2325: add rsp, 8 pop rbx pop rbp retn
void r3d_light_process_shadow_update(long long a1) { float v1; // xmm0_4 if ( *(_DWORD *)a1 == 2 ) { *(_BYTE *)(a1 + 12) = 1; } else if ( *(_DWORD *)a1 == 1 && !*(_BYTE *)(a1 + 12) ) { v1 = GetFrameTime() + *(float *)(a1 + 8); *(float *)(a1 + 8) = v1; if ( v1 >= *(float *)(a1 + 4) ) { *(_BYTE *)(a1 + 12) = 1; *(_DWORD *)(a1 + 8) = 0; } } }
r3d_light_process_shadow_update: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RBX,RDI MOV EAX,dword ptr [RDI] CMP EAX,0x2 JZ 0x001e2321 CMP EAX,0x1 JNZ 0x001e2325 CMP byte ptr [RBX + 0xc],0x0 JNZ 0x001e2325 CALL 0x00127631 ADDSS XMM0,dword ptr [RBX + 0x8] MOVSS dword ptr [RBX + 0x8],XMM0 UCOMISS XMM0,dword ptr [RBX + 0x4] JC 0x001e2325 MOV byte ptr [RBX + 0xc],0x1 MOV dword ptr [RBX + 0x8],0x0 JMP 0x001e2325 LAB_001e2321: MOV byte ptr [RBX + 0xc],0x1 LAB_001e2325: ADD RSP,0x8 POP RBX POP RBP RET
void r3d_light_process_shadow_update(int *param_1) { float fVar1; float fVar2; if (*param_1 == 2) { *(int1 *)(param_1 + 3) = 1; } else if ((*param_1 == 1) && ((char)param_1[3] == '\0')) { fVar2 = (float)GetFrameTime(); fVar1 = (float)param_1[2]; param_1[2] = (int)(fVar2 + fVar1); if ((float)param_1[1] <= fVar2 + fVar1) { *(int1 *)(param_1 + 3) = 1; param_1[2] = 0; } } return; }
53,137
YAML::Scanner::SimpleKey::Validate()
aimrt_mujoco_sim/_deps/yaml-cpp-src/src/simplekey.cpp
void Scanner::SimpleKey::Validate() { // Note: pIndent will *not* be garbage here; // we "garbage collect" them so we can // always refer to them if (pIndent) pIndent->status = IndentMarker::VALID; if (pMapStart) pMapStart->status = Token::VALID; if (pKey) pKey->status = Token::VALID; }
O3
cpp
YAML::Scanner::SimpleKey::Validate(): movq 0x18(%rdi), %rax testq %rax, %rax je 0x6abbc movl $0x0, 0x8(%rax) movq 0x20(%rdi), %rax testq %rax, %rax je 0x6abcb movl $0x0, (%rax) movq 0x28(%rdi), %rax testq %rax, %rax je 0x6abda movl $0x0, (%rax) retq nop
_ZN4YAML7Scanner9SimpleKey8ValidateEv: mov rax, [rdi+18h] test rax, rax jz short loc_6ABBC mov dword ptr [rax+8], 0 loc_6ABBC: mov rax, [rdi+20h] test rax, rax jz short loc_6ABCB mov dword ptr [rax], 0 loc_6ABCB: mov rax, [rdi+28h] test rax, rax jz short locret_6ABDA mov dword ptr [rax], 0 locret_6ABDA: retn
_DWORD * YAML::Scanner::SimpleKey::Validate(YAML::Scanner::SimpleKey *this) { long long v1; // rax _DWORD *v2; // rax _DWORD *result; // rax v1 = *((_QWORD *)this + 3); if ( v1 ) *(_DWORD *)(v1 + 8) = 0; v2 = (_DWORD *)*((_QWORD *)this + 4); if ( v2 ) *v2 = 0; result = (_DWORD *)*((_QWORD *)this + 5); if ( result ) *result = 0; return result; }
Validate: MOV RAX,qword ptr [RDI + 0x18] TEST RAX,RAX JZ 0x0016abbc MOV dword ptr [RAX + 0x8],0x0 LAB_0016abbc: MOV RAX,qword ptr [RDI + 0x20] TEST RAX,RAX JZ 0x0016abcb MOV dword ptr [RAX],0x0 LAB_0016abcb: MOV RAX,qword ptr [RDI + 0x28] TEST RAX,RAX JZ 0x0016abda MOV dword ptr [RAX],0x0 LAB_0016abda: RET
/* YAML::Scanner::SimpleKey::Validate() */ void __thiscall YAML::Scanner::SimpleKey::Validate(SimpleKey *this) { if (*(long *)(this + 0x18) != 0) { *(int4 *)(*(long *)(this + 0x18) + 8) = 0; } if (*(int4 **)(this + 0x20) != (int4 *)0x0) { **(int4 **)(this + 0x20) = 0; } if (*(int4 **)(this + 0x28) != (int4 *)0x0) { **(int4 **)(this + 0x28) = 0; } return; }
53,138
MainWindow::~MainWindow()
LeafBlue[P]myElevetor/mainwindow.cpp
MainWindow::~MainWindow() { delete ele_A.up_out; delete ele_A.down_out; delete ele_A.outbtn_up; delete ele_A.outbtn_down; }
O0
cpp
MainWindow::~MainWindow(): pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) leaq 0x194d5(%rip), %rcx # 0x1faf0 addq $0x10, %rcx movq %rcx, (%rax) leaq 0x194c7(%rip), %rcx # 0x1faf0 addq $0x1c8, %rcx # imm = 0x1C8 movq %rcx, 0x10(%rax) movq 0x68(%rax), %rax movq %rax, -0x10(%rbp) cmpq $0x0, %rax je 0x6659 movq -0x10(%rbp), %rdi callq 0xccd0 movq -0x10(%rbp), %rdi movl $0x18, %esi callq 0x5070 movq -0x18(%rbp), %rax movq 0x70(%rax), %rax movq %rax, -0x20(%rbp) cmpq $0x0, %rax je 0x6682 movq -0x20(%rbp), %rdi callq 0xccd0 movq -0x20(%rbp), %rdi movl $0x18, %esi callq 0x5070 movq -0x18(%rbp), %rax movq 0x80(%rax), %rax movq %rax, -0x28(%rbp) cmpq $0x0, %rax je 0x66ae movq -0x28(%rbp), %rdi callq 0xccf0 movq -0x28(%rbp), %rdi movl $0x8, %esi callq 0x5070 movq -0x18(%rbp), %rax movq 0x88(%rax), %rax movq %rax, -0x30(%rbp) cmpq $0x0, %rax je 0x66da movq -0x30(%rbp), %rdi callq 0xccf0 movq -0x30(%rbp), %rdi movl $0x8, %esi callq 0x5070 movq -0x18(%rbp), %rdi addq $0xf8, %rdi callq 0x11a30 movq -0x18(%rbp), %rdi addq $0x58, %rdi callq 0x11a30 movq -0x18(%rbp), %rdi addq $0x40, %rdi callq 0xccd0 movq -0x18(%rbp), %rdi addq $0x28, %rdi callq 0xccd0 movq -0x18(%rbp), %rdi callq 0x5240 addq $0x30, %rsp popq %rbp retq
_ZN10MainWindowD2Ev: push rbp; Alternative name is 'MainWindow::~MainWindow()' mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov [rbp+var_18], rax lea rcx, _ZTV10MainWindow; `vtable for'MainWindow add rcx, 10h mov [rax], rcx lea rcx, _ZTV10MainWindow; `vtable for'MainWindow add rcx, 1C8h mov [rax+10h], rcx mov rax, [rax+68h] mov [rbp+var_10], rax cmp rax, 0 jz short loc_6659 mov rdi, [rbp+var_10] call _ZN5QListIiED2Ev; QList<int>::~QList() mov rdi, [rbp+var_10]; void * mov esi, 18h; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_6659: mov rax, [rbp+var_18] mov rax, [rax+70h] mov [rbp+var_20], rax cmp rax, 0 jz short loc_6682 mov rdi, [rbp+var_20] call _ZN5QListIiED2Ev; QList<int>::~QList() mov rdi, [rbp+var_20]; void * mov esi, 18h; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_6682: mov rax, [rbp+var_18] mov rax, [rax+80h] mov [rbp+var_28], rax cmp rax, 0 jz short loc_66AE mov rdi, [rbp+var_28] call _ZN4QMapIiP11QPushButtonED2Ev; QMap<int,QPushButton *>::~QMap() mov rdi, [rbp+var_28]; void * mov esi, 8; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_66AE: mov rax, [rbp+var_18] mov rax, [rax+88h] mov [rbp+var_30], rax cmp rax, 0 jz short loc_66DA mov rdi, [rbp+var_30] call _ZN4QMapIiP11QPushButtonED2Ev; QMap<int,QPushButton *>::~QMap() mov rdi, [rbp+var_30]; void * mov esi, 8; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_66DA: mov rdi, [rbp+var_18] add rdi, 0F8h; this call _ZN8ElevetorD2Ev; Elevetor::~Elevetor() mov rdi, [rbp+var_18] add rdi, 58h ; 'X'; this call _ZN8ElevetorD2Ev; Elevetor::~Elevetor() mov rdi, [rbp+var_18] add rdi, 40h ; '@' call _ZN5QListIiED2Ev; QList<int>::~QList() mov rdi, [rbp+var_18] add rdi, 28h ; '(' call _ZN5QListIiED2Ev; QList<int>::~QList() mov rdi, [rbp+var_18]; this call __ZN11QMainWindowD2Ev; QMainWindow::~QMainWindow() add rsp, 30h pop rbp retn
void MainWindow::~MainWindow(MainWindow *this) { void *v1; // [rsp+0h] [rbp-30h] void *v2; // [rsp+8h] [rbp-28h] void *v3; // [rsp+10h] [rbp-20h] void *v4; // [rsp+20h] [rbp-10h] *(_QWORD *)this = &`vtable for'MainWindow + 2; *((_QWORD *)this + 2) = &`vtable for'MainWindow + 57; v4 = (void *)*((_QWORD *)this + 13); if ( v4 ) { QList<int>::~QList(v4); operator delete(v4, 0x18uLL); } v3 = (void *)*((_QWORD *)this + 14); if ( v3 ) { QList<int>::~QList(v3); operator delete(v3, 0x18uLL); } v2 = (void *)*((_QWORD *)this + 16); if ( v2 ) { QMap<int,QPushButton *>::~QMap(v2); operator delete(v2, 8uLL); } v1 = (void *)*((_QWORD *)this + 17); if ( v1 ) { QMap<int,QPushButton *>::~QMap(v1); operator delete(v1, 8uLL); } Elevetor::~Elevetor((MainWindow *)((char *)this + 248)); Elevetor::~Elevetor((MainWindow *)((char *)this + 88)); QList<int>::~QList((char *)this + 64); QList<int>::~QList((char *)this + 40); QMainWindow::~QMainWindow(this); }
~MainWindow: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x18],RAX LEA RCX,[0x11faf0] ADD RCX,0x10 MOV qword ptr [RAX],RCX LEA RCX,[0x11faf0] ADD RCX,0x1c8 MOV qword ptr [RAX + 0x10],RCX MOV RAX,qword ptr [RAX + 0x68] MOV qword ptr [RBP + -0x10],RAX CMP RAX,0x0 JZ 0x00106659 MOV RDI,qword ptr [RBP + -0x10] CALL 0x0010ccd0 MOV RDI,qword ptr [RBP + -0x10] MOV ESI,0x18 CALL 0x00105070 LAB_00106659: MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x70] MOV qword ptr [RBP + -0x20],RAX CMP RAX,0x0 JZ 0x00106682 MOV RDI,qword ptr [RBP + -0x20] CALL 0x0010ccd0 MOV RDI,qword ptr [RBP + -0x20] MOV ESI,0x18 CALL 0x00105070 LAB_00106682: MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x80] MOV qword ptr [RBP + -0x28],RAX CMP RAX,0x0 JZ 0x001066ae MOV RDI,qword ptr [RBP + -0x28] CALL 0x0010ccf0 MOV RDI,qword ptr [RBP + -0x28] MOV ESI,0x8 CALL 0x00105070 LAB_001066ae: MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x88] MOV qword ptr [RBP + -0x30],RAX CMP RAX,0x0 JZ 0x001066da MOV RDI,qword ptr [RBP + -0x30] CALL 0x0010ccf0 MOV RDI,qword ptr [RBP + -0x30] MOV ESI,0x8 CALL 0x00105070 LAB_001066da: MOV RDI,qword ptr [RBP + -0x18] ADD RDI,0xf8 CALL 0x00111a30 MOV RDI,qword ptr [RBP + -0x18] ADD RDI,0x58 CALL 0x00111a30 MOV RDI,qword ptr [RBP + -0x18] ADD RDI,0x40 CALL 0x0010ccd0 MOV RDI,qword ptr [RBP + -0x18] ADD RDI,0x28 CALL 0x0010ccd0 MOV RDI,qword ptr [RBP + -0x18] CALL 0x00105240 ADD RSP,0x30 POP RBP RET
/* MainWindow::~MainWindow() */ void __thiscall MainWindow::~MainWindow(MainWindow *this) { QList<int> *pQVar1; QMap<int,QPushButton*> *pQVar2; *(int ***)this = &PTR_metaObject_0011fb00; *(int ***)(this + 0x10) = &PTR__MainWindow_0011fcb8; pQVar1 = *(QList<int> **)(this + 0x68); if (pQVar1 != (QList<int> *)0x0) { QList<int>::~QList(pQVar1); operator_delete(pQVar1,0x18); } pQVar1 = *(QList<int> **)(this + 0x70); if (pQVar1 != (QList<int> *)0x0) { QList<int>::~QList(pQVar1); operator_delete(pQVar1,0x18); } pQVar2 = *(QMap<int,QPushButton*> **)(this + 0x80); if (pQVar2 != (QMap<int,QPushButton*> *)0x0) { QMap<int,QPushButton*>::~QMap(pQVar2); operator_delete(pQVar2,8); } pQVar2 = *(QMap<int,QPushButton*> **)(this + 0x88); if (pQVar2 != (QMap<int,QPushButton*> *)0x0) { QMap<int,QPushButton*>::~QMap(pQVar2); operator_delete(pQVar2,8); } Elevetor::~Elevetor((Elevetor *)(this + 0xf8)); Elevetor::~Elevetor((Elevetor *)(this + 0x58)); QList<int>::~QList((QList<int> *)(this + 0x40)); QList<int>::~QList((QList<int> *)(this + 0x28)); QMainWindow::~QMainWindow((QMainWindow *)this); return; }
53,139
MainWindow::~MainWindow()
LeafBlue[P]myElevetor/mainwindow.cpp
MainWindow::~MainWindow() { delete ele_A.up_out; delete ele_A.down_out; delete ele_A.outbtn_up; delete ele_A.outbtn_down; }
O1
cpp
MainWindow::~MainWindow(): pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx leaq 0xa93c(%rip), %rax # 0xfaf0 leaq 0x10(%rax), %rcx movq %rcx, (%rdi) addq $0x1c8, %rax # imm = 0x1C8 movq %rax, 0x10(%rdi) movq 0x68(%rdi), %r14 testq %r14, %r14 je 0x51fa movq (%r14), %rax testq %rax, %rax je 0x51ed lock decl (%rax) jne 0x51ed movq (%r14), %rdi movl $0x4, %esi movl $0x8, %edx callq 0x4250 movl $0x18, %esi movq %r14, %rdi callq 0x4070 movq 0x70(%rbx), %r14 testq %r14, %r14 je 0x522f movq (%r14), %rax testq %rax, %rax je 0x5222 lock decl (%rax) jne 0x5222 movq (%r14), %rdi movl $0x4, %esi movl $0x8, %edx callq 0x4250 movl $0x18, %esi movq %r14, %rdi callq 0x4070 movq 0x80(%rbx), %r14 testq %r14, %r14 je 0x5250 movq %r14, %rdi callq 0x7f44 movl $0x8, %esi movq %r14, %rdi callq 0x4070 movq 0x88(%rbx), %r14 testq %r14, %r14 je 0x5271 movq %r14, %rdi callq 0x7f44 movl $0x8, %esi movq %r14, %rdi callq 0x4070 leaq 0x58(%rbx), %r14 leaq 0xf8(%rbx), %rdi callq 0x899c movq %r14, %rdi callq 0x899c movq 0x40(%rbx), %rax testq %rax, %rax je 0x52aa lock decl (%rax) jne 0x52aa movq 0x40(%rbx), %rdi movl $0x4, %esi movl $0x8, %edx callq 0x4250 movq 0x28(%rbx), %rax testq %rax, %rax je 0x52cb lock decl (%rax) jne 0x52cb movq 0x28(%rbx), %rdi movl $0x4, %esi movl $0x8, %edx callq 0x4250 movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x4230
_ZN10MainWindowD2Ev: push r14; Alternative name is 'MainWindow::~MainWindow()' push rbx push rax mov rbx, rdi lea rax, _ZTV10MainWindow; `vtable for'MainWindow lea rcx, [rax+10h] mov [rdi], rcx add rax, 1C8h mov [rdi+10h], rax mov r14, [rdi+68h] test r14, r14 jz short loc_51FA mov rax, [r14] test rax, rax jz short loc_51ED lock dec dword ptr [rax] jnz short loc_51ED mov rdi, [r14] mov esi, 4 mov edx, 8 call __ZN10QArrayData10deallocateEPS_xx; QArrayData::deallocate(QArrayData*,long long,long long) loc_51ED: mov esi, 18h; unsigned __int64 mov rdi, r14; void * call __ZdlPvm; operator delete(void *,ulong) loc_51FA: mov r14, [rbx+70h] test r14, r14 jz short loc_522F mov rax, [r14] test rax, rax jz short loc_5222 lock dec dword ptr [rax] jnz short loc_5222 mov rdi, [r14] mov esi, 4 mov edx, 8 call __ZN10QArrayData10deallocateEPS_xx; QArrayData::deallocate(QArrayData*,long long,long long) loc_5222: mov esi, 18h; unsigned __int64 mov rdi, r14; void * call __ZdlPvm; operator delete(void *,ulong) loc_522F: mov r14, [rbx+80h] test r14, r14 jz short loc_5250 mov rdi, r14 call _ZN9QtPrivate30QExplicitlySharedDataPointerV2I8QMapDataISt3mapIiP11QPushButtonSt4lessIiESaISt4pairIKiS4_EEEEED2Ev; QtPrivate::QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton *>>>::~QExplicitlySharedDataPointerV2() mov esi, 8; unsigned __int64 mov rdi, r14; void * call __ZdlPvm; operator delete(void *,ulong) loc_5250: mov r14, [rbx+88h] test r14, r14 jz short loc_5271 mov rdi, r14 call _ZN9QtPrivate30QExplicitlySharedDataPointerV2I8QMapDataISt3mapIiP11QPushButtonSt4lessIiESaISt4pairIKiS4_EEEEED2Ev; QtPrivate::QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton *>>>::~QExplicitlySharedDataPointerV2() mov esi, 8; unsigned __int64 mov rdi, r14; void * call __ZdlPvm; operator delete(void *,ulong) loc_5271: lea r14, [rbx+58h] lea rdi, [rbx+0F8h]; this call _ZN8ElevetorD2Ev; Elevetor::~Elevetor() mov rdi, r14; this call _ZN8ElevetorD2Ev; Elevetor::~Elevetor() mov rax, [rbx+40h] test rax, rax jz short loc_52AA lock dec dword ptr [rax] jnz short loc_52AA mov rdi, [rbx+40h] mov esi, 4 mov edx, 8 call __ZN10QArrayData10deallocateEPS_xx; QArrayData::deallocate(QArrayData*,long long,long long) loc_52AA: mov rax, [rbx+28h] test rax, rax jz short loc_52CB lock dec dword ptr [rax] jnz short loc_52CB mov rdi, [rbx+28h] mov esi, 4 mov edx, 8 call __ZN10QArrayData10deallocateEPS_xx; QArrayData::deallocate(QArrayData*,long long,long long) loc_52CB: mov rdi, rbx; this add rsp, 8 pop rbx pop r14 jmp __ZN11QMainWindowD2Ev; QMainWindow::~QMainWindow()
void MainWindow::~MainWindow(MainWindow *this) { volatile signed __int32 **v1; // r14 volatile signed __int32 **v2; // r14 void *v3; // r14 void *v4; // r14 volatile signed __int32 *v5; // rax volatile signed __int32 *v6; // rax *(_QWORD *)this = &`vtable for'MainWindow + 2; *((_QWORD *)this + 2) = &`vtable for'MainWindow + 57; v1 = (volatile signed __int32 **)*((_QWORD *)this + 13); if ( v1 ) { if ( *v1 && !_InterlockedDecrement(*v1) ) QArrayData::deallocate(*v1, 4LL, 8LL); operator delete(v1, 0x18uLL); } v2 = (volatile signed __int32 **)*((_QWORD *)this + 14); if ( v2 ) { if ( *v2 && !_InterlockedDecrement(*v2) ) QArrayData::deallocate(*v2, 4LL, 8LL); operator delete(v2, 0x18uLL); } v3 = (void *)*((_QWORD *)this + 16); if ( v3 ) { QtPrivate::QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton *>>>::~QExplicitlySharedDataPointerV2(*((_QWORD *)this + 16)); operator delete(v3, 8uLL); } v4 = (void *)*((_QWORD *)this + 17); if ( v4 ) { QtPrivate::QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton *>>>::~QExplicitlySharedDataPointerV2(*((_QWORD *)this + 17)); operator delete(v4, 8uLL); } Elevetor::~Elevetor((MainWindow *)((char *)this + 248)); Elevetor::~Elevetor((MainWindow *)((char *)this + 88)); v5 = (volatile signed __int32 *)*((_QWORD *)this + 8); if ( v5 && !_InterlockedDecrement(v5) ) QArrayData::deallocate(*((_QWORD *)this + 8), 4LL, 8LL); v6 = (volatile signed __int32 *)*((_QWORD *)this + 5); if ( v6 && !_InterlockedDecrement(v6) ) QArrayData::deallocate(*((_QWORD *)this + 5), 4LL, 8LL); QMainWindow::~QMainWindow(this); }
~MainWindow: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI LEA RAX,[0x10faf0] LEA RCX,[RAX + 0x10] MOV qword ptr [RDI],RCX ADD RAX,0x1c8 MOV qword ptr [RDI + 0x10],RAX MOV R14,qword ptr [RDI + 0x68] TEST R14,R14 JZ 0x001051fa MOV RAX,qword ptr [R14] TEST RAX,RAX JZ 0x001051ed DEC.LOCK dword ptr [RAX] JNZ 0x001051ed MOV RDI,qword ptr [R14] MOV ESI,0x4 MOV EDX,0x8 CALL 0x00104250 LAB_001051ed: MOV ESI,0x18 MOV RDI,R14 CALL 0x00104070 LAB_001051fa: MOV R14,qword ptr [RBX + 0x70] TEST R14,R14 JZ 0x0010522f MOV RAX,qword ptr [R14] TEST RAX,RAX JZ 0x00105222 DEC.LOCK dword ptr [RAX] JNZ 0x00105222 MOV RDI,qword ptr [R14] MOV ESI,0x4 MOV EDX,0x8 CALL 0x00104250 LAB_00105222: MOV ESI,0x18 MOV RDI,R14 CALL 0x00104070 LAB_0010522f: MOV R14,qword ptr [RBX + 0x80] TEST R14,R14 JZ 0x00105250 MOV RDI,R14 CALL 0x00107f44 MOV ESI,0x8 MOV RDI,R14 CALL 0x00104070 LAB_00105250: MOV R14,qword ptr [RBX + 0x88] TEST R14,R14 JZ 0x00105271 MOV RDI,R14 CALL 0x00107f44 MOV ESI,0x8 MOV RDI,R14 CALL 0x00104070 LAB_00105271: LEA R14,[RBX + 0x58] LEA RDI,[RBX + 0xf8] CALL 0x0010899c MOV RDI,R14 CALL 0x0010899c MOV RAX,qword ptr [RBX + 0x40] TEST RAX,RAX JZ 0x001052aa DEC.LOCK dword ptr [RAX] JNZ 0x001052aa MOV RDI,qword ptr [RBX + 0x40] MOV ESI,0x4 MOV EDX,0x8 CALL 0x00104250 LAB_001052aa: MOV RAX,qword ptr [RBX + 0x28] TEST RAX,RAX JZ 0x001052cb DEC.LOCK dword ptr [RAX] JNZ 0x001052cb MOV RDI,qword ptr [RBX + 0x28] MOV ESI,0x4 MOV EDX,0x8 CALL 0x00104250 LAB_001052cb: MOV RDI,RBX ADD RSP,0x8 POP RBX POP R14 JMP 0x00104230
/* MainWindow::~MainWindow() */ void __thiscall MainWindow::~MainWindow(MainWindow *this) { int8 *puVar1; int *piVar2; QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton*,std::less<int>,std::allocator<std::pair<int_const,QPushButton*>>>>> *pQVar3; *(int ***)this = &PTR_metaObject_0010fb00; *(int ***)(this + 0x10) = &PTR__MainWindow_0010fcb8; puVar1 = *(int8 **)(this + 0x68); if (puVar1 != (int8 *)0x0) { piVar2 = (int *)*puVar1; if (piVar2 != (int *)0x0) { LOCK(); *piVar2 = *piVar2 + -1; UNLOCK(); if (*piVar2 == 0) { QArrayData::deallocate((QArrayData *)*puVar1,4,8); } } operator_delete(puVar1,0x18); } puVar1 = *(int8 **)(this + 0x70); if (puVar1 != (int8 *)0x0) { piVar2 = (int *)*puVar1; if (piVar2 != (int *)0x0) { LOCK(); *piVar2 = *piVar2 + -1; UNLOCK(); if (*piVar2 == 0) { QArrayData::deallocate((QArrayData *)*puVar1,4,8); } } operator_delete(puVar1,0x18); } pQVar3 = *(QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton*,std::less<int>,std::allocator<std::pair<int_const,QPushButton*>>>>> **)(this + 0x80); if (pQVar3 != (QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton*,std::less<int>,std::allocator<std::pair<int_const,QPushButton*>>>>> *)0x0) { QtPrivate:: QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton*,std::less<int>,std::allocator<std::pair<int_const,QPushButton*>>>>> ::~QExplicitlySharedDataPointerV2(pQVar3); operator_delete(pQVar3,8); } pQVar3 = *(QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton*,std::less<int>,std::allocator<std::pair<int_const,QPushButton*>>>>> **)(this + 0x88); if (pQVar3 != (QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton*,std::less<int>,std::allocator<std::pair<int_const,QPushButton*>>>>> *)0x0) { QtPrivate:: QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton*,std::less<int>,std::allocator<std::pair<int_const,QPushButton*>>>>> ::~QExplicitlySharedDataPointerV2(pQVar3); operator_delete(pQVar3,8); } Elevetor::~Elevetor((Elevetor *)(this + 0xf8)); Elevetor::~Elevetor((Elevetor *)(this + 0x58)); piVar2 = *(int **)(this + 0x40); if (piVar2 != (int *)0x0) { LOCK(); *piVar2 = *piVar2 + -1; UNLOCK(); if (*piVar2 == 0) { QArrayData::deallocate(*(QArrayData **)(this + 0x40),4,8); } } piVar2 = *(int **)(this + 0x28); if (piVar2 != (int *)0x0) { LOCK(); *piVar2 = *piVar2 + -1; UNLOCK(); if (*piVar2 == 0) { QArrayData::deallocate(*(QArrayData **)(this + 0x28),4,8); } } QMainWindow::~QMainWindow((QMainWindow *)this); return; }
53,140
MainWindow::~MainWindow()
LeafBlue[P]myElevetor/mainwindow.cpp
MainWindow::~MainWindow() { delete ele_A.up_out; delete ele_A.down_out; delete ele_A.outbtn_up; delete ele_A.outbtn_down; }
O2
cpp
MainWindow::~MainWindow(): pushq %r15 pushq %r14 pushq %rbx movq %rdi, %rbx leaq 0x9cfb(%rip), %rax # 0xeaf0 leaq 0x10(%rax), %rcx movq %rcx, (%rdi) addq $0x1c8, %rax # imm = 0x1C8 movq %rax, 0x10(%rdi) movq 0x68(%rdi), %r14 testq %r14, %r14 je 0x4e17 movq %r14, %rdi callq 0x7228 pushq $0x18 popq %rsi movq %r14, %rdi callq 0x4070 movq 0x70(%rbx), %r14 testq %r14, %r14 je 0x4e33 movq %r14, %rdi callq 0x7228 pushq $0x18 popq %rsi movq %r14, %rdi callq 0x4070 movq 0x80(%rbx), %r14 testq %r14, %r14 je 0x4e52 movq %r14, %rdi callq 0x724a pushq $0x8 popq %rsi movq %r14, %rdi callq 0x4070 movq 0x88(%rbx), %r14 testq %r14, %r14 je 0x4e71 movq %r14, %rdi callq 0x724a leaq 0x58(%rbx), %r15 pushq $0x8 popq %rsi movq %r14, %rdi callq 0x4070 leaq 0xf8(%rbx), %rdi callq 0x7e68 movq %r15, %rdi callq 0x7e68 leaq 0x40(%rbx), %rdi callq 0x7228 leaq 0x28(%rbx), %rdi callq 0x7228 movq %rbx, %rdi popq %rbx popq %r14 popq %r15 jmp 0x4230 nop
_ZN10MainWindowD2Ev: push r15; Alternative name is 'MainWindow::~MainWindow()' push r14 push rbx mov rbx, rdi lea rax, _ZTV10MainWindow; `vtable for'MainWindow lea rcx, [rax+10h] mov [rdi], rcx add rax, 1C8h mov [rdi+10h], rax mov r14, [rdi+68h] test r14, r14 jz short loc_4E17 mov rdi, r14 call _ZN17QArrayDataPointerIiED2Ev; QArrayDataPointer<int>::~QArrayDataPointer() loc_4E17: push 18h pop rsi; unsigned __int64 mov rdi, r14; void * call __ZdlPvm; operator delete(void *,ulong) mov r14, [rbx+70h] test r14, r14 jz short loc_4E33 mov rdi, r14 call _ZN17QArrayDataPointerIiED2Ev; QArrayDataPointer<int>::~QArrayDataPointer() loc_4E33: push 18h pop rsi; unsigned __int64 mov rdi, r14; void * call __ZdlPvm; operator delete(void *,ulong) mov r14, [rbx+80h] test r14, r14 jz short loc_4E52 mov rdi, r14 call _ZN9QtPrivate30QExplicitlySharedDataPointerV2I8QMapDataISt3mapIiP11QPushButtonSt4lessIiESaISt4pairIKiS4_EEEEED2Ev; QtPrivate::QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton *>>>::~QExplicitlySharedDataPointerV2() loc_4E52: push 8 pop rsi; unsigned __int64 mov rdi, r14; void * call __ZdlPvm; operator delete(void *,ulong) mov r14, [rbx+88h] test r14, r14 jz short loc_4E71 mov rdi, r14 call _ZN9QtPrivate30QExplicitlySharedDataPointerV2I8QMapDataISt3mapIiP11QPushButtonSt4lessIiESaISt4pairIKiS4_EEEEED2Ev; QtPrivate::QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton *>>>::~QExplicitlySharedDataPointerV2() loc_4E71: lea r15, [rbx+58h] push 8 pop rsi; unsigned __int64 mov rdi, r14; void * call __ZdlPvm; operator delete(void *,ulong) lea rdi, [rbx+0F8h]; this call _ZN8ElevetorD2Ev; Elevetor::~Elevetor() mov rdi, r15; this call _ZN8ElevetorD2Ev; Elevetor::~Elevetor() lea rdi, [rbx+40h] call _ZN17QArrayDataPointerIiED2Ev; QArrayDataPointer<int>::~QArrayDataPointer() lea rdi, [rbx+28h] call _ZN17QArrayDataPointerIiED2Ev; QArrayDataPointer<int>::~QArrayDataPointer() mov rdi, rbx; this pop rbx pop r14 pop r15 jmp __ZN11QMainWindowD2Ev; QMainWindow::~QMainWindow()
void MainWindow::~MainWindow(MainWindow *this) { void *v1; // r14 void *v2; // r14 void *v3; // r14 void *v4; // r14 *(_QWORD *)this = &`vtable for'MainWindow + 2; *((_QWORD *)this + 2) = &`vtable for'MainWindow + 57; v1 = (void *)*((_QWORD *)this + 13); if ( v1 ) QArrayDataPointer<int>::~QArrayDataPointer(*((_QWORD *)this + 13)); operator delete(v1, 0x18uLL); v2 = (void *)*((_QWORD *)this + 14); if ( v2 ) QArrayDataPointer<int>::~QArrayDataPointer(*((_QWORD *)this + 14)); operator delete(v2, 0x18uLL); v3 = (void *)*((_QWORD *)this + 16); if ( v3 ) QtPrivate::QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton *>>>::~QExplicitlySharedDataPointerV2(*((_QWORD *)this + 16)); operator delete(v3, 8uLL); v4 = (void *)*((_QWORD *)this + 17); if ( v4 ) QtPrivate::QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton *>>>::~QExplicitlySharedDataPointerV2(*((_QWORD *)this + 17)); operator delete(v4, 8uLL); Elevetor::~Elevetor((MainWindow *)((char *)this + 248)); Elevetor::~Elevetor((MainWindow *)((char *)this + 88)); QArrayDataPointer<int>::~QArrayDataPointer((char *)this + 64); QArrayDataPointer<int>::~QArrayDataPointer((char *)this + 40); QMainWindow::~QMainWindow(this); }
~MainWindow: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RDI LEA RAX,[0x10eaf0] LEA RCX,[RAX + 0x10] MOV qword ptr [RDI],RCX ADD RAX,0x1c8 MOV qword ptr [RDI + 0x10],RAX MOV R14,qword ptr [RDI + 0x68] TEST R14,R14 JZ 0x00104e17 MOV RDI,R14 CALL 0x00107228 LAB_00104e17: PUSH 0x18 POP RSI MOV RDI,R14 CALL 0x00104070 MOV R14,qword ptr [RBX + 0x70] TEST R14,R14 JZ 0x00104e33 MOV RDI,R14 CALL 0x00107228 LAB_00104e33: PUSH 0x18 POP RSI MOV RDI,R14 CALL 0x00104070 MOV R14,qword ptr [RBX + 0x80] TEST R14,R14 JZ 0x00104e52 MOV RDI,R14 CALL 0x0010724a LAB_00104e52: PUSH 0x8 POP RSI MOV RDI,R14 CALL 0x00104070 MOV R14,qword ptr [RBX + 0x88] TEST R14,R14 JZ 0x00104e71 MOV RDI,R14 CALL 0x0010724a LAB_00104e71: LEA R15,[RBX + 0x58] PUSH 0x8 POP RSI MOV RDI,R14 CALL 0x00104070 LEA RDI,[RBX + 0xf8] CALL 0x00107e68 MOV RDI,R15 CALL 0x00107e68 LEA RDI,[RBX + 0x40] CALL 0x00107228 LEA RDI,[RBX + 0x28] CALL 0x00107228 MOV RDI,RBX POP RBX POP R14 POP R15 JMP 0x00104230
/* MainWindow::~MainWindow() */ void __thiscall MainWindow::~MainWindow(MainWindow *this) { QArrayDataPointer<int> *pQVar1; QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton*,std::less<int>,std::allocator<std::pair<int_const,QPushButton*>>>>> *pQVar2; *(int ***)this = &PTR_metaObject_0010eb00; *(int ***)(this + 0x10) = &PTR__MainWindow_0010ecb8; pQVar1 = *(QArrayDataPointer<int> **)(this + 0x68); if (pQVar1 != (QArrayDataPointer<int> *)0x0) { QArrayDataPointer<int>::~QArrayDataPointer(pQVar1); } operator_delete(pQVar1,0x18); pQVar1 = *(QArrayDataPointer<int> **)(this + 0x70); if (pQVar1 != (QArrayDataPointer<int> *)0x0) { QArrayDataPointer<int>::~QArrayDataPointer(pQVar1); } operator_delete(pQVar1,0x18); pQVar2 = *(QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton*,std::less<int>,std::allocator<std::pair<int_const,QPushButton*>>>>> **)(this + 0x80); if (pQVar2 != (QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton*,std::less<int>,std::allocator<std::pair<int_const,QPushButton*>>>>> *)0x0) { QtPrivate:: QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton*,std::less<int>,std::allocator<std::pair<int_const,QPushButton*>>>>> ::~QExplicitlySharedDataPointerV2(pQVar2); } operator_delete(pQVar2,8); pQVar2 = *(QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton*,std::less<int>,std::allocator<std::pair<int_const,QPushButton*>>>>> **)(this + 0x88); if (pQVar2 != (QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton*,std::less<int>,std::allocator<std::pair<int_const,QPushButton*>>>>> *)0x0) { QtPrivate:: QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton*,std::less<int>,std::allocator<std::pair<int_const,QPushButton*>>>>> ::~QExplicitlySharedDataPointerV2(pQVar2); } operator_delete(pQVar2,8); Elevetor::~Elevetor((Elevetor *)(this + 0xf8)); Elevetor::~Elevetor((Elevetor *)(this + 0x58)); QArrayDataPointer<int>::~QArrayDataPointer((QArrayDataPointer<int> *)(this + 0x40)); QArrayDataPointer<int>::~QArrayDataPointer((QArrayDataPointer<int> *)(this + 0x28)); QMainWindow::~QMainWindow((QMainWindow *)this); return; }
53,141
MainWindow::~MainWindow()
LeafBlue[P]myElevetor/mainwindow.cpp
MainWindow::~MainWindow() { delete ele_A.up_out; delete ele_A.down_out; delete ele_A.outbtn_up; delete ele_A.outbtn_down; }
O3
cpp
MainWindow::~MainWindow(): pushq %r15 pushq %r14 pushq %rbx movq %rdi, %rbx leaq 0x9945(%rip), %rax # 0xeaf0 leaq 0x10(%rax), %rcx movq %rcx, (%rdi) addq $0x1c8, %rax # imm = 0x1C8 movq %rax, 0x10(%rdi) movq 0x68(%rdi), %r14 testq %r14, %r14 je 0x51e4 movq (%r14), %rax testq %rax, %rax je 0x51e4 lock decl (%rax) jne 0x51e4 movq (%r14), %rdi movl $0x4, %esi movl $0x8, %edx callq 0x4250 movl $0x18, %esi movq %r14, %rdi callq 0x4070 movq 0x70(%rbx), %r14 testq %r14, %r14 je 0x5219 movq (%r14), %rax testq %rax, %rax je 0x5219 lock decl (%rax) jne 0x5219 movq (%r14), %rdi movl $0x4, %esi movl $0x8, %edx callq 0x4250 movl $0x18, %esi movq %r14, %rdi callq 0x4070 movq 0x80(%rbx), %r14 testq %r14, %r14 je 0x523a movq %r14, %rdi callq 0x7ea2 movl $0x8, %esi movq %r14, %rdi callq 0x4070 movq 0x88(%rbx), %r14 testq %r14, %r14 je 0x525b movq %r14, %rdi callq 0x7ea2 leaq 0x58(%rbx), %r15 movl $0x8, %esi movq %r14, %rdi callq 0x4070 leaq 0xf8(%rbx), %rdi callq 0x88a0 movq %r15, %rdi callq 0x88a0 movq 0x40(%rbx), %rax testq %rax, %rax je 0x52a1 lock decl (%rax) jne 0x52a1 movq 0x40(%rbx), %rdi movl $0x4, %esi movl $0x8, %edx callq 0x4250 movq 0x28(%rbx), %rax testq %rax, %rax je 0x52c2 lock decl (%rax) jne 0x52c2 movq 0x28(%rbx), %rdi movl $0x4, %esi movl $0x8, %edx callq 0x4250 movq %rbx, %rdi popq %rbx popq %r14 popq %r15 jmp 0x4230 nop
_ZN10MainWindowD2Ev: push r15; Alternative name is 'MainWindow::~MainWindow()' push r14 push rbx mov rbx, rdi lea rax, _ZTV10MainWindow; `vtable for'MainWindow lea rcx, [rax+10h] mov [rdi], rcx add rax, 1C8h mov [rdi+10h], rax mov r14, [rdi+68h] test r14, r14 jz short loc_51E4 mov rax, [r14] test rax, rax jz short loc_51E4 lock dec dword ptr [rax] jnz short loc_51E4 mov rdi, [r14] mov esi, 4 mov edx, 8 call __ZN10QArrayData10deallocateEPS_xx; QArrayData::deallocate(QArrayData*,long long,long long) loc_51E4: mov esi, 18h; unsigned __int64 mov rdi, r14; void * call __ZdlPvm; operator delete(void *,ulong) mov r14, [rbx+70h] test r14, r14 jz short loc_5219 mov rax, [r14] test rax, rax jz short loc_5219 lock dec dword ptr [rax] jnz short loc_5219 mov rdi, [r14] mov esi, 4 mov edx, 8 call __ZN10QArrayData10deallocateEPS_xx; QArrayData::deallocate(QArrayData*,long long,long long) loc_5219: mov esi, 18h; unsigned __int64 mov rdi, r14; void * call __ZdlPvm; operator delete(void *,ulong) mov r14, [rbx+80h] test r14, r14 jz short loc_523A mov rdi, r14 call _ZN9QtPrivate30QExplicitlySharedDataPointerV2I8QMapDataISt3mapIiP11QPushButtonSt4lessIiESaISt4pairIKiS4_EEEEED2Ev; QtPrivate::QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton *>>>::~QExplicitlySharedDataPointerV2() loc_523A: mov esi, 8; unsigned __int64 mov rdi, r14; void * call __ZdlPvm; operator delete(void *,ulong) mov r14, [rbx+88h] test r14, r14 jz short loc_525B mov rdi, r14 call _ZN9QtPrivate30QExplicitlySharedDataPointerV2I8QMapDataISt3mapIiP11QPushButtonSt4lessIiESaISt4pairIKiS4_EEEEED2Ev; QtPrivate::QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton *>>>::~QExplicitlySharedDataPointerV2() loc_525B: lea r15, [rbx+58h] mov esi, 8; unsigned __int64 mov rdi, r14; void * call __ZdlPvm; operator delete(void *,ulong) lea rdi, [rbx+0F8h]; this call _ZN8ElevetorD2Ev; Elevetor::~Elevetor() mov rdi, r15; this call _ZN8ElevetorD2Ev; Elevetor::~Elevetor() mov rax, [rbx+40h] test rax, rax jz short loc_52A1 lock dec dword ptr [rax] jnz short loc_52A1 mov rdi, [rbx+40h] mov esi, 4 mov edx, 8 call __ZN10QArrayData10deallocateEPS_xx; QArrayData::deallocate(QArrayData*,long long,long long) loc_52A1: mov rax, [rbx+28h] test rax, rax jz short loc_52C2 lock dec dword ptr [rax] jnz short loc_52C2 mov rdi, [rbx+28h] mov esi, 4 mov edx, 8 call __ZN10QArrayData10deallocateEPS_xx; QArrayData::deallocate(QArrayData*,long long,long long) loc_52C2: mov rdi, rbx; this pop rbx pop r14 pop r15 jmp __ZN11QMainWindowD2Ev; QMainWindow::~QMainWindow()
void MainWindow::~MainWindow(MainWindow *this) { volatile signed __int32 **v1; // r14 volatile signed __int32 **v2; // r14 void *v3; // r14 void *v4; // r14 volatile signed __int32 *v5; // rax volatile signed __int32 *v6; // rax *(_QWORD *)this = &`vtable for'MainWindow + 2; *((_QWORD *)this + 2) = &`vtable for'MainWindow + 57; v1 = (volatile signed __int32 **)*((_QWORD *)this + 13); if ( v1 && *v1 && !_InterlockedDecrement(*v1) ) QArrayData::deallocate(*v1, 4LL, 8LL); operator delete(v1, 0x18uLL); v2 = (volatile signed __int32 **)*((_QWORD *)this + 14); if ( v2 && *v2 && !_InterlockedDecrement(*v2) ) QArrayData::deallocate(*v2, 4LL, 8LL); operator delete(v2, 0x18uLL); v3 = (void *)*((_QWORD *)this + 16); if ( v3 ) QtPrivate::QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton *>>>::~QExplicitlySharedDataPointerV2(*((_QWORD *)this + 16)); operator delete(v3, 8uLL); v4 = (void *)*((_QWORD *)this + 17); if ( v4 ) QtPrivate::QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton *>>>::~QExplicitlySharedDataPointerV2(*((_QWORD *)this + 17)); operator delete(v4, 8uLL); Elevetor::~Elevetor((MainWindow *)((char *)this + 248)); Elevetor::~Elevetor((MainWindow *)((char *)this + 88)); v5 = (volatile signed __int32 *)*((_QWORD *)this + 8); if ( v5 && !_InterlockedDecrement(v5) ) QArrayData::deallocate(*((_QWORD *)this + 8), 4LL, 8LL); v6 = (volatile signed __int32 *)*((_QWORD *)this + 5); if ( v6 && !_InterlockedDecrement(v6) ) QArrayData::deallocate(*((_QWORD *)this + 5), 4LL, 8LL); QMainWindow::~QMainWindow(this); }
~MainWindow: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RDI LEA RAX,[0x10eaf0] LEA RCX,[RAX + 0x10] MOV qword ptr [RDI],RCX ADD RAX,0x1c8 MOV qword ptr [RDI + 0x10],RAX MOV R14,qword ptr [RDI + 0x68] TEST R14,R14 JZ 0x001051e4 MOV RAX,qword ptr [R14] TEST RAX,RAX JZ 0x001051e4 DEC.LOCK dword ptr [RAX] JNZ 0x001051e4 MOV RDI,qword ptr [R14] MOV ESI,0x4 MOV EDX,0x8 CALL 0x00104250 LAB_001051e4: MOV ESI,0x18 MOV RDI,R14 CALL 0x00104070 MOV R14,qword ptr [RBX + 0x70] TEST R14,R14 JZ 0x00105219 MOV RAX,qword ptr [R14] TEST RAX,RAX JZ 0x00105219 DEC.LOCK dword ptr [RAX] JNZ 0x00105219 MOV RDI,qword ptr [R14] MOV ESI,0x4 MOV EDX,0x8 CALL 0x00104250 LAB_00105219: MOV ESI,0x18 MOV RDI,R14 CALL 0x00104070 MOV R14,qword ptr [RBX + 0x80] TEST R14,R14 JZ 0x0010523a MOV RDI,R14 CALL 0x00107ea2 LAB_0010523a: MOV ESI,0x8 MOV RDI,R14 CALL 0x00104070 MOV R14,qword ptr [RBX + 0x88] TEST R14,R14 JZ 0x0010525b MOV RDI,R14 CALL 0x00107ea2 LAB_0010525b: LEA R15,[RBX + 0x58] MOV ESI,0x8 MOV RDI,R14 CALL 0x00104070 LEA RDI,[RBX + 0xf8] CALL 0x001088a0 MOV RDI,R15 CALL 0x001088a0 MOV RAX,qword ptr [RBX + 0x40] TEST RAX,RAX JZ 0x001052a1 DEC.LOCK dword ptr [RAX] JNZ 0x001052a1 MOV RDI,qword ptr [RBX + 0x40] MOV ESI,0x4 MOV EDX,0x8 CALL 0x00104250 LAB_001052a1: MOV RAX,qword ptr [RBX + 0x28] TEST RAX,RAX JZ 0x001052c2 DEC.LOCK dword ptr [RAX] JNZ 0x001052c2 MOV RDI,qword ptr [RBX + 0x28] MOV ESI,0x4 MOV EDX,0x8 CALL 0x00104250 LAB_001052c2: MOV RDI,RBX POP RBX POP R14 POP R15 JMP 0x00104230
/* MainWindow::~MainWindow() */ void __thiscall MainWindow::~MainWindow(MainWindow *this) { int8 *puVar1; int *piVar2; QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton*,std::less<int>,std::allocator<std::pair<int_const,QPushButton*>>>>> *pQVar3; *(int ***)this = &PTR_metaObject_0010eb00; *(int ***)(this + 0x10) = &PTR__MainWindow_0010ecb8; puVar1 = *(int8 **)(this + 0x68); if ((puVar1 != (int8 *)0x0) && (piVar2 = (int *)*puVar1, piVar2 != (int *)0x0)) { LOCK(); *piVar2 = *piVar2 + -1; UNLOCK(); if (*piVar2 == 0) { QArrayData::deallocate((QArrayData *)*puVar1,4,8); } } operator_delete(puVar1,0x18); puVar1 = *(int8 **)(this + 0x70); if ((puVar1 != (int8 *)0x0) && (piVar2 = (int *)*puVar1, piVar2 != (int *)0x0)) { LOCK(); *piVar2 = *piVar2 + -1; UNLOCK(); if (*piVar2 == 0) { QArrayData::deallocate((QArrayData *)*puVar1,4,8); } } operator_delete(puVar1,0x18); pQVar3 = *(QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton*,std::less<int>,std::allocator<std::pair<int_const,QPushButton*>>>>> **)(this + 0x80); if (pQVar3 != (QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton*,std::less<int>,std::allocator<std::pair<int_const,QPushButton*>>>>> *)0x0) { QtPrivate:: QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton*,std::less<int>,std::allocator<std::pair<int_const,QPushButton*>>>>> ::~QExplicitlySharedDataPointerV2(pQVar3); } operator_delete(pQVar3,8); pQVar3 = *(QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton*,std::less<int>,std::allocator<std::pair<int_const,QPushButton*>>>>> **)(this + 0x88); if (pQVar3 != (QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton*,std::less<int>,std::allocator<std::pair<int_const,QPushButton*>>>>> *)0x0) { QtPrivate:: QExplicitlySharedDataPointerV2<QMapData<std::map<int,QPushButton*,std::less<int>,std::allocator<std::pair<int_const,QPushButton*>>>>> ::~QExplicitlySharedDataPointerV2(pQVar3); } operator_delete(pQVar3,8); Elevetor::~Elevetor((Elevetor *)(this + 0xf8)); Elevetor::~Elevetor((Elevetor *)(this + 0x58)); piVar2 = *(int **)(this + 0x40); if (piVar2 != (int *)0x0) { LOCK(); *piVar2 = *piVar2 + -1; UNLOCK(); if (*piVar2 == 0) { QArrayData::deallocate(*(QArrayData **)(this + 0x40),4,8); } } piVar2 = *(int **)(this + 0x28); if (piVar2 != (int *)0x0) { LOCK(); *piVar2 = *piVar2 + -1; UNLOCK(); if (*piVar2 == 0) { QArrayData::deallocate(*(QArrayData **)(this + 0x28),4,8); } } QMainWindow::~QMainWindow((QMainWindow *)this); return; }
53,142
LefDefParser::lefiGeometries::getPolygon(int) const
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiMisc.cpp
lefiGeomPolygon * lefiGeometries::getPolygon(int index) const { char msg[160]; if (index < 0 || index >= numItems_) { sprintf(msg, "ERROR (LEFPARS-1370): The index number %d given for the geometry POLYGON is invalid.\nValid index is from 0 to %d", index, numItems_); lefiError(0, 1370, msg); return 0; } return (lefiGeomPolygon*) (items_[index]); }
O3
cpp
LefDefParser::lefiGeometries::getPolygon(int) const: pushq %r14 pushq %rbx subq $0xa8, %rsp movl %esi, %edx testl %esi, %esi setns %al movl (%rdi), %ecx cmpl %esi, %ecx setg %sil testb %sil, %al je 0x11b08 movq 0x10(%rdi), %rax movl %edx, %ecx movq (%rax,%rcx,8), %rbx jmp 0x11b2d leaq 0x3ba96(%rip), %rsi # 0x4d5a5 xorl %ebx, %ebx movq %rsp, %r14 movq %r14, %rdi xorl %eax, %eax callq 0x2050 xorl %edi, %edi movl $0x55a, %esi # imm = 0x55A movq %r14, %rdx callq 0x27ae8 movq %rbx, %rax addq $0xa8, %rsp popq %rbx popq %r14 retq nop
_ZNK12LefDefParser14lefiGeometries10getPolygonEi: push r14 push rbx sub rsp, 0A8h mov edx, esi test esi, esi setns al mov ecx, [rdi] cmp ecx, esi setnle sil test al, sil jz short loc_11B08 mov rax, [rdi+10h] mov ecx, edx mov rbx, [rax+rcx*8] jmp short loc_11B2D loc_11B08: lea rsi, aErrorLefpars13_9; "ERROR (LEFPARS-1370): The index number "... xor ebx, ebx mov r14, rsp mov rdi, r14 xor eax, eax call _sprintf xor edi, edi; this mov esi, 55Ah; int mov rdx, r14; int call _ZN12LefDefParser9lefiErrorEiiPKc; LefDefParser::lefiError(int,int,char const*) loc_11B2D: mov rax, rbx add rsp, 0A8h pop rbx pop r14 retn
long long LefDefParser::lefiGeometries::getPolygon(LefDefParser::lefiGeometries *this, signed int a2) { long long v2; // rbx const char *v3; // rcx _BYTE v5[184]; // [rsp+0h] [rbp-B8h] BYREF if ( *(_DWORD *)this > a2 && a2 >= 0 ) return *(_QWORD *)(*((_QWORD *)this + 2) + 8LL * (unsigned int)a2); v2 = 0LL; sprintf( v5, "ERROR (LEFPARS-1370): The index number %d given for the geometry POLYGON is invalid.\nValid index is from 0 to %d", a2, *(_DWORD *)this); LefDefParser::lefiError(0LL, 1370, (int)v5, v3); return v2; }
getPolygon: PUSH R14 PUSH RBX SUB RSP,0xa8 MOV EDX,ESI TEST ESI,ESI SETNS AL MOV ECX,dword ptr [RDI] CMP ECX,ESI SETG SIL TEST AL,SIL JZ 0x00111b08 MOV RAX,qword ptr [RDI + 0x10] MOV ECX,EDX MOV RBX,qword ptr [RAX + RCX*0x8] JMP 0x00111b2d LAB_00111b08: LEA RSI,[0x14d5a5] XOR EBX,EBX MOV R14,RSP MOV RDI,R14 XOR EAX,EAX CALL 0x00102050 XOR EDI,EDI MOV ESI,0x55a MOV RDX,R14 CALL 0x00127ae8 LAB_00111b2d: MOV RAX,RBX ADD RSP,0xa8 POP RBX POP R14 RET
/* LefDefParser::lefiGeometries::getPolygon(int) const */ int8 __thiscall LefDefParser::lefiGeometries::getPolygon(lefiGeometries *this,int param_1) { int8 uVar1; char acStack_b8 [168]; if (param_1 < 0 || *(int *)this <= param_1) { uVar1 = 0; sprintf(acStack_b8, "ERROR (LEFPARS-1370): The index number %d given for the geometry POLYGON is invalid.\nValid index is from 0 to %d" ); lefiError(0,0x55a,acStack_b8); } else { uVar1 = *(int8 *)(*(long *)(this + 0x10) + (ulong)(uint)param_1 * 8); } return uVar1; }
53,143
common_model_params_to_llama(common_params&)
llama.cpp/common/common.cpp
struct llama_model_params common_model_params_to_llama(common_params & params) { auto mparams = llama_model_default_params(); if (!params.devices.empty()) { mparams.devices = params.devices.data(); } if (params.n_gpu_layers != -1) { mparams.n_gpu_layers = params.n_gpu_layers; } mparams.main_gpu = params.main_gpu; mparams.split_mode = params.split_mode; mparams.tensor_split = params.tensor_split; mparams.use_mmap = params.use_mmap; mparams.use_mlock = params.use_mlock; mparams.check_tensors = params.check_tensors; if (params.kv_overrides.empty()) { mparams.kv_overrides = NULL; } else { GGML_ASSERT(params.kv_overrides.back().key[0] == 0 && "KV overrides not terminated with empty key"); mparams.kv_overrides = params.kv_overrides.data(); } if (params.tensor_buft_overrides.empty()) { mparams.tensor_buft_overrides = NULL; } else { GGML_ASSERT(params.tensor_buft_overrides.back().pattern == nullptr && "Tensor buffer overrides not terminated with empty pattern"); mparams.tensor_buft_overrides = params.tensor_buft_overrides.data(); } return mparams; }
O3
cpp
common_model_params_to_llama(common_params&): pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx callq 0x20f20 movq 0x50(%r14), %rax cmpq 0x58(%r14), %rax je 0xf9892 movq %rax, (%rbx) movl 0x68(%r14), %eax cmpl $-0x1, %eax je 0xf989e movl %eax, 0x10(%rbx) movl 0x6c(%r14), %eax movl %eax, 0x18(%rbx) movl 0x270(%r14), %eax movl %eax, 0x14(%rbx) leaq 0x70(%r14), %rax movq %rax, 0x20(%rbx) movb 0x102a(%r14), %al movb %al, 0x41(%rbx) movb 0x102b(%r14), %al movb %al, 0x42(%rbx) movb 0x1031(%r14), %al movb %al, 0x43(%rbx) movq 0xf70(%r14), %rax movq 0xf78(%r14), %rcx cmpq %rcx, %rax je 0xf990d cmpb $0x0, -0x104(%rcx) je 0xf990f leaq 0x2ab2d(%rip), %rdi # 0x124425 leaq 0x1890e(%rip), %rdx # 0x11220d leaq 0x2b022(%rip), %rcx # 0x124928 movl $0x424, %esi # imm = 0x424 jmp 0xf9947 xorl %eax, %eax movq %rax, 0x38(%rbx) movq 0xf88(%r14), %rax movq 0xf90(%r14), %rcx cmpq %rcx, %rax je 0xf994e cmpq $0x0, -0x10(%rcx) je 0xf9950 leaq 0x2aaf1(%rip), %rdi # 0x124425 leaq 0x188d2(%rip), %rdx # 0x11220d leaq 0x2b03d(%rip), %rcx # 0x12497f movl $0x42b, %esi # imm = 0x42B xorl %eax, %eax callq 0x20e60 xorl %eax, %eax movq %rax, 0x8(%rbx) movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r14 retq
_Z28common_model_params_to_llamaR13common_params: push r14 push rbx push rax mov r14, rsi mov rbx, rdi call _llama_model_default_params mov rax, [r14+50h] cmp rax, [r14+58h] jz short loc_F9892 mov [rbx], rax loc_F9892: mov eax, [r14+68h] cmp eax, 0FFFFFFFFh jz short loc_F989E mov [rbx+10h], eax loc_F989E: mov eax, [r14+6Ch] mov [rbx+18h], eax mov eax, [r14+270h] mov [rbx+14h], eax lea rax, [r14+70h] mov [rbx+20h], rax mov al, [r14+102Ah] mov [rbx+41h], al mov al, [r14+102Bh] mov [rbx+42h], al mov al, [r14+1031h] mov [rbx+43h], al mov rax, [r14+0F70h] mov rcx, [r14+0F78h] cmp rax, rcx jz short loc_F990D cmp byte ptr [rcx-104h], 0 jz short loc_F990F lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aParamsKvOverri; "params.kv_overrides.back().key[0] == 0 "... mov esi, 424h jmp short loc_F9947 loc_F990D: xor eax, eax loc_F990F: mov [rbx+38h], rax mov rax, [r14+0F88h] mov rcx, [r14+0F90h] cmp rax, rcx jz short loc_F994E cmp qword ptr [rcx-10h], 0 jz short loc_F9950 lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aParamsTensorBu; "params.tensor_buft_overrides.back().pat"... mov esi, 42Bh loc_F9947: xor eax, eax call _ggml_abort loc_F994E: xor eax, eax loc_F9950: mov [rbx+8], rax mov rax, rbx add rsp, 8 pop rbx pop r14 retn
common_params * common_model_params_to_llama(common_params *a1, long long a2) { long long v2; // rax int v3; // eax long long v4; // rax long long v5; // rcx long long v6; // rax long long v7; // rcx llama_model_default_params(a1); v2 = *(_QWORD *)(a2 + 80); if ( v2 != *(_QWORD *)(a2 + 88) ) *(_QWORD *)a1 = v2; v3 = *(_DWORD *)(a2 + 104); if ( v3 != -1 ) *((_DWORD *)a1 + 4) = v3; *((_DWORD *)a1 + 6) = *(_DWORD *)(a2 + 108); *((_DWORD *)a1 + 5) = *(_DWORD *)(a2 + 624); *((_QWORD *)a1 + 4) = a2 + 112; *((_BYTE *)a1 + 65) = *(_BYTE *)(a2 + 4138); *((_BYTE *)a1 + 66) = *(_BYTE *)(a2 + 4139); *((_BYTE *)a1 + 67) = *(_BYTE *)(a2 + 4145); v4 = *(_QWORD *)(a2 + 3952); v5 = *(_QWORD *)(a2 + 3960); if ( v4 == v5 ) { v4 = 0LL; } else if ( *(_BYTE *)(v5 - 260) ) { ggml_abort( "/workspace/llm4binary/github2025/llama.cpp/common/common.cpp", 1060LL, "GGML_ASSERT(%s) failed", "params.kv_overrides.back().key[0] == 0 && \"KV overrides not terminated with empty key\""); LABEL_12: v6 = 0LL; goto LABEL_13; } *((_QWORD *)a1 + 7) = v4; v6 = *(_QWORD *)(a2 + 3976); v7 = *(_QWORD *)(a2 + 3984); if ( v6 == v7 ) goto LABEL_12; if ( *(_QWORD *)(v7 - 16) ) { ggml_abort( "/workspace/llm4binary/github2025/llama.cpp/common/common.cpp", 1067LL, "GGML_ASSERT(%s) failed", "params.tensor_buft_overrides.back().pattern == nullptr && \"Tensor buffer overrides not terminated with empty pattern\""); goto LABEL_12; } LABEL_13: *((_QWORD *)a1 + 1) = v6; return a1; }
common_model_params_to_llama: PUSH R14 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI CALL 0x00120f20 MOV RAX,qword ptr [R14 + 0x50] CMP RAX,qword ptr [R14 + 0x58] JZ 0x001f9892 MOV qword ptr [RBX],RAX LAB_001f9892: MOV EAX,dword ptr [R14 + 0x68] CMP EAX,-0x1 JZ 0x001f989e MOV dword ptr [RBX + 0x10],EAX LAB_001f989e: MOV EAX,dword ptr [R14 + 0x6c] MOV dword ptr [RBX + 0x18],EAX MOV EAX,dword ptr [R14 + 0x270] MOV dword ptr [RBX + 0x14],EAX LEA RAX,[R14 + 0x70] MOV qword ptr [RBX + 0x20],RAX MOV AL,byte ptr [R14 + 0x102a] MOV byte ptr [RBX + 0x41],AL MOV AL,byte ptr [R14 + 0x102b] MOV byte ptr [RBX + 0x42],AL MOV AL,byte ptr [R14 + 0x1031] MOV byte ptr [RBX + 0x43],AL MOV RAX,qword ptr [R14 + 0xf70] MOV RCX,qword ptr [R14 + 0xf78] CMP RAX,RCX JZ 0x001f990d CMP byte ptr [RCX + -0x104],0x0 JZ 0x001f990f LEA RDI,[0x224425] LEA RDX,[0x21220d] LEA RCX,[0x224928] MOV ESI,0x424 JMP 0x001f9947 LAB_001f990d: XOR EAX,EAX LAB_001f990f: MOV qword ptr [RBX + 0x38],RAX MOV RAX,qword ptr [R14 + 0xf88] MOV RCX,qword ptr [R14 + 0xf90] CMP RAX,RCX JZ 0x001f994e CMP qword ptr [RCX + -0x10],0x0 JZ 0x001f9950 LEA RDI,[0x224425] LEA RDX,[0x21220d] LEA RCX,[0x22497f] MOV ESI,0x42b LAB_001f9947: XOR EAX,EAX CALL 0x00120e60 LAB_001f994e: XOR EAX,EAX LAB_001f9950: MOV qword ptr [RBX + 0x8],RAX MOV RAX,RBX ADD RSP,0x8 POP RBX POP R14 RET
/* common_model_params_to_llama(common_params&) */ common_params * common_model_params_to_llama(common_params *param_1) { long lVar1; char *pcVar2; long in_RSI; int8 uVar3; llama_model_default_params(); if (*(long *)(in_RSI + 0x50) != *(long *)(in_RSI + 0x58)) { *(long *)param_1 = *(long *)(in_RSI + 0x50); } if (*(int *)(in_RSI + 0x68) != -1) { *(int *)(param_1 + 0x10) = *(int *)(in_RSI + 0x68); } *(int4 *)(param_1 + 0x18) = *(int4 *)(in_RSI + 0x6c); *(int4 *)(param_1 + 0x14) = *(int4 *)(in_RSI + 0x270); *(long *)(param_1 + 0x20) = in_RSI + 0x70; param_1[0x41] = *(common_params *)(in_RSI + 0x102a); param_1[0x42] = *(common_params *)(in_RSI + 0x102b); param_1[0x43] = *(common_params *)(in_RSI + 0x1031); lVar1 = *(long *)(in_RSI + 0xf70); if (lVar1 == *(long *)(in_RSI + 0xf78)) { lVar1 = 0; } else if (*(char *)(*(long *)(in_RSI + 0xf78) + -0x104) != '\0') { pcVar2 = "params.kv_overrides.back().key[0] == 0 && \"KV overrides not terminated with empty key\""; uVar3 = 0x424; goto LAB_001f9947; } *(long *)(param_1 + 0x38) = lVar1; lVar1 = *(long *)(in_RSI + 0xf88); if (lVar1 == *(long *)(in_RSI + 0xf90)) { lVar1 = 0; } else if (*(long *)(*(long *)(in_RSI + 0xf90) + -0x10) != 0) { pcVar2 = "params.tensor_buft_overrides.back().pattern == nullptr && \"Tensor buffer overrides not terminated with empty pattern\"" ; uVar3 = 0x42b; LAB_001f9947: /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github2025/llama.cpp/common/common.cpp",uVar3, "GGML_ASSERT(%s) failed",pcVar2); } *(long *)(param_1 + 8) = lVar1; return param_1; }
53,144
my_like_range_simple
eloqsql/strings/ctype-simple.c
my_bool my_like_range_simple(CHARSET_INFO *cs, const char *ptr, size_t ptr_length, pbool escape, pbool w_one, pbool w_many, size_t res_length, char *min_str,char *max_str, size_t *min_length, size_t *max_length) { const char *end= ptr + ptr_length; char *min_org=min_str; char *min_end=min_str+res_length; size_t charlen= res_length / cs->mbmaxlen; for (; ptr != end && min_str != min_end && charlen > 0 ; ptr++, charlen--) { if (*ptr == escape && ptr+1 != end) { ptr++; /* Skip escape */ *min_str++= *max_str++ = *ptr; continue; } if (*ptr == w_one) /* '_' in SQL */ { *min_str++='\0'; /* This should be min char */ *max_str++= (char) cs->max_sort_char; continue; } if (*ptr == w_many) /* '%' in SQL */ { /* Calculate length of keys */ *min_length= (cs->state & (MY_CS_BINSORT | MY_CS_NOPAD)) ? (size_t) (min_str - min_org) : res_length; *max_length= res_length; do { *min_str++= 0; *max_str++= (char) cs->max_sort_char; } while (min_str != min_end); return 0; } *min_str++= *max_str++ = *ptr; } *min_length= *max_length = (size_t) (min_str - min_org); while (min_str != min_end) *min_str++= *max_str++ = ' '; /* Because if key compression */ return 0; }
O3
c
my_like_range_simple: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rdx, %r10 movq 0x30(%rbp), %rdx movq 0x28(%rbp), %r12 movq 0x20(%rbp), %rbx movq 0x18(%rbp), %r14 movq 0x10(%rbp), %r11 testq %r10, %r10 je 0x6fa6d addq %rsi, %r10 movl 0x9c(%rdi), %r15d xorl %r13d, %r13d movq %r11, %rax xorl %edx, %edx divq %r15 addq $-0x1, %rax setb %dl cmpq %r13, %r11 je 0x6fa60 testb %dl, %dl je 0x6fa60 movb (%rsi), %r15b cmpb %cl, %r15b jne 0x6fa2c leaq 0x1(%rsi), %rdx cmpq %r10, %rdx je 0x6fa2c movb (%rdx), %sil movb %sil, (%rbx,%r13) movb %sil, (%r14,%r13) jmp 0x6fa52 cmpb %r8b, %r15b jne 0x6fa42 movb $0x0, (%r14,%r13) movb 0xa8(%rdi), %dl movb %dl, (%rbx,%r13) jmp 0x6fa4f cmpb %r9b, %r15b je 0x6faa3 movb %r15b, (%rbx,%r13) movb %r15b, (%r14,%r13) movq %rsi, %rdx incq %rdx incq %r13 movq %rdx, %rsi cmpq %r10, %rdx jne 0x6f9fe leaq (%r14,%r13), %rax addq %r13, %rbx movq 0x30(%rbp), %rdx jmp 0x6fa70 movq %r14, %rax addq %r14, %r11 movq %rax, %rcx subq %r14, %rcx movq %rcx, (%rdx) movq %rcx, (%r12) cmpq %r11, %rax je 0x6fa96 movb $0x20, %cl movb %cl, (%rbx) incq %rbx movb %cl, (%rax) incq %rax cmpq %r11, %rax jne 0x6fa87 xorl %eax, %eax popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq testl $0x20010, 0xc(%rdi) # imm = 0x20010 movq %r13, %rax cmoveq %r11, %rax movq %rax, (%r12) movq 0x30(%rbp), %rax movq %r11, (%rax) movb $0x0, (%r14,%r13) movb 0xa8(%rdi), %al movb %al, (%rbx,%r13) incq %r13 cmpq %r13, %r11 jne 0x6fabc jmp 0x6fa96
my_like_range_simple: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx mov r10, rdx mov rdx, [rbp+arg_20] mov r12, [rbp+arg_18] mov rbx, [rbp+arg_10] mov r14, [rbp+arg_8] mov r11, [rbp+arg_0] test r10, r10 jz loc_6FA6D add r10, rsi mov r15d, [rdi+9Ch] xor r13d, r13d mov rax, r11 xor edx, edx div r15 loc_6F9FE: add rax, 0FFFFFFFFFFFFFFFFh setb dl cmp r11, r13 jz short loc_6FA60 test dl, dl jz short loc_6FA60 mov r15b, [rsi] cmp r15b, cl jnz short loc_6FA2C lea rdx, [rsi+1] cmp rdx, r10 jz short loc_6FA2C mov sil, [rdx] mov [rbx+r13], sil mov [r14+r13], sil jmp short loc_6FA52 loc_6FA2C: cmp r15b, r8b jnz short loc_6FA42 mov byte ptr [r14+r13], 0 mov dl, [rdi+0A8h] mov [rbx+r13], dl jmp short loc_6FA4F loc_6FA42: cmp r15b, r9b jz short loc_6FAA3 mov [rbx+r13], r15b mov [r14+r13], r15b loc_6FA4F: mov rdx, rsi loc_6FA52: inc rdx inc r13 mov rsi, rdx cmp rdx, r10 jnz short loc_6F9FE loc_6FA60: lea rax, [r14+r13] add rbx, r13 mov rdx, [rbp+arg_20] jmp short loc_6FA70 loc_6FA6D: mov rax, r14 loc_6FA70: add r11, r14 mov rcx, rax sub rcx, r14 mov [rdx], rcx mov [r12], rcx cmp rax, r11 jz short loc_6FA96 mov cl, 20h ; ' ' loc_6FA87: mov [rbx], cl inc rbx mov [rax], cl inc rax cmp rax, r11 jnz short loc_6FA87 loc_6FA96: xor eax, eax pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_6FAA3: test dword ptr [rdi+0Ch], 20010h mov rax, r13 cmovz rax, r11 mov [r12], rax mov rax, [rbp+arg_20] mov [rax], r11 loc_6FABC: mov byte ptr [r14+r13], 0 mov al, [rdi+0A8h] mov [rbx+r13], al inc r13 cmp r11, r13 jnz short loc_6FABC jmp short loc_6FA96
long long my_like_range_simple( long long a1, char *a2, long long a3, char a4, char a5, char a6, unsigned long long a7, long long a8, _BYTE *a9, unsigned long long *a10, _QWORD *a11) { _QWORD *v12; // rdx _BYTE *v13; // rbx char *v14; // r10 unsigned long long v15; // r13 unsigned long long v16; // rax bool v17; // cf char v18; // r15 char *v19; // rdx char v20; // si _BYTE *v21; // rax unsigned long long v23; // rax v12 = a11; v13 = a9; if ( a3 ) { v14 = &a2[a3]; v15 = 0LL; v16 = a7 / *(unsigned int *)(a1 + 156); while ( 1 ) { v17 = v16-- != 0; if ( a7 == v15 || !v17 ) { LABEL_14: v21 = (_BYTE *)(a8 + v15); v13 = &a9[v15]; v12 = a11; goto LABEL_16; } v18 = *a2; if ( *a2 != a4 || (v19 = a2 + 1, a2 + 1 == v14) ) { if ( v18 == a5 ) { *(_BYTE *)(a8 + v15) = 0; a9[v15] = *(_BYTE *)(a1 + 168); } else { if ( v18 == a6 ) { v23 = v15; if ( (*(_DWORD *)(a1 + 12) & 0x20010) == 0 ) v23 = a7; *a10 = v23; *a11 = a7; do { *(_BYTE *)(a8 + v15) = 0; a9[v15++] = *(_BYTE *)(a1 + 168); } while ( a7 != v15 ); return 0LL; } a9[v15] = v18; *(_BYTE *)(a8 + v15) = v18; } v19 = a2; } else { v20 = *v19; a9[v15] = *v19; *(_BYTE *)(a8 + v15) = v20; } ++v15; a2 = v19 + 1; if ( v19 + 1 == v14 ) goto LABEL_14; } } v21 = (_BYTE *)a8; LABEL_16: *v12 = &v21[-a8]; for ( *a10 = (unsigned long long)&v21[-a8]; v21 != (_BYTE *)(a8 + a7); ++v21 ) { *v13++ = 32; *v21 = 32; } return 0LL; }
my_like_range_simple: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX MOV R10,RDX MOV RDX,qword ptr [RBP + 0x30] MOV R12,qword ptr [RBP + 0x28] MOV RBX,qword ptr [RBP + 0x20] MOV R14,qword ptr [RBP + 0x18] MOV R11,qword ptr [RBP + 0x10] TEST R10,R10 JZ 0x0016fa6d ADD R10,RSI MOV R15D,dword ptr [RDI + 0x9c] XOR R13D,R13D MOV RAX,R11 XOR EDX,EDX DIV R15 LAB_0016f9fe: ADD RAX,-0x1 SETC DL CMP R11,R13 JZ 0x0016fa60 TEST DL,DL JZ 0x0016fa60 MOV R15B,byte ptr [RSI] CMP R15B,CL JNZ 0x0016fa2c LEA RDX,[RSI + 0x1] CMP RDX,R10 JZ 0x0016fa2c MOV SIL,byte ptr [RDX] MOV byte ptr [RBX + R13*0x1],SIL MOV byte ptr [R14 + R13*0x1],SIL JMP 0x0016fa52 LAB_0016fa2c: CMP R15B,R8B JNZ 0x0016fa42 MOV byte ptr [R14 + R13*0x1],0x0 MOV DL,byte ptr [RDI + 0xa8] MOV byte ptr [RBX + R13*0x1],DL JMP 0x0016fa4f LAB_0016fa42: CMP R15B,R9B JZ 0x0016faa3 MOV byte ptr [RBX + R13*0x1],R15B MOV byte ptr [R14 + R13*0x1],R15B LAB_0016fa4f: MOV RDX,RSI LAB_0016fa52: INC RDX INC R13 MOV RSI,RDX CMP RDX,R10 JNZ 0x0016f9fe LAB_0016fa60: LEA RAX,[R14 + R13*0x1] ADD RBX,R13 MOV RDX,qword ptr [RBP + 0x30] JMP 0x0016fa70 LAB_0016fa6d: MOV RAX,R14 LAB_0016fa70: ADD R11,R14 MOV RCX,RAX SUB RCX,R14 MOV qword ptr [RDX],RCX MOV qword ptr [R12],RCX CMP RAX,R11 JZ 0x0016fa96 MOV CL,0x20 LAB_0016fa87: MOV byte ptr [RBX],CL INC RBX MOV byte ptr [RAX],CL INC RAX CMP RAX,R11 JNZ 0x0016fa87 LAB_0016fa96: XOR EAX,EAX POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0016faa3: TEST dword ptr [RDI + 0xc],0x20010 MOV RAX,R13 CMOVZ RAX,R11 MOV qword ptr [R12],RAX MOV RAX,qword ptr [RBP + 0x30] MOV qword ptr [RAX],R11 LAB_0016fabc: MOV byte ptr [R14 + R13*0x1],0x0 MOV AL,byte ptr [RDI + 0xa8] MOV byte ptr [RBX + R13*0x1],AL INC R13 CMP R11,R13 JNZ 0x0016fabc JMP 0x0016fa96
int8 my_like_range_simple (long param_1,char *param_2,long param_3,char param_4,char param_5,char param_6, ulong param_7,int1 *param_8,int1 *param_9,ulong *param_10,ulong *param_11) { char *pcVar1; char cVar2; ulong uVar3; int1 *puVar4; char *pcVar5; ulong uVar6; bool bVar7; puVar4 = param_8; if (param_3 != 0) { pcVar5 = param_2 + param_3; uVar6 = 0; uVar3 = param_7 / *(uint *)(param_1 + 0x9c); do { bVar7 = uVar3 == 0; uVar3 = uVar3 - 1; if ((param_7 == uVar6) || (bVar7)) break; cVar2 = *param_2; if ((cVar2 == param_4) && (pcVar1 = param_2 + 1, pcVar1 != pcVar5)) { cVar2 = *pcVar1; param_9[uVar6] = cVar2; param_8[uVar6] = cVar2; param_2 = pcVar1; } else if (cVar2 == param_5) { param_8[uVar6] = 0; param_9[uVar6] = *(int1 *)(param_1 + 0xa8); } else { if (cVar2 == param_6) { uVar3 = uVar6; if ((*(uint *)(param_1 + 0xc) & 0x20010) == 0) { uVar3 = param_7; } *param_10 = uVar3; *param_11 = param_7; do { param_8[uVar6] = 0; param_9[uVar6] = *(int1 *)(param_1 + 0xa8); uVar6 = uVar6 + 1; } while (param_7 != uVar6); return 0; } param_9[uVar6] = cVar2; param_8[uVar6] = cVar2; } param_2 = param_2 + 1; uVar6 = uVar6 + 1; } while (param_2 != pcVar5); param_9 = param_9 + uVar6; puVar4 = param_8 + uVar6; } *param_11 = (long)puVar4 - (long)param_8; *param_10 = (long)puVar4 - (long)param_8; for (; puVar4 != param_8 + param_7; puVar4 = puVar4 + 1) { *param_9 = 0x20; param_9 = param_9 + 1; *puVar4 = 0x20; } return 0; }
53,145
spdlog::details::source_funcname_formatter<spdlog::details::null_scoped_padder>::format(spdlog::details::log_msg const&, tm const&, fmt::v10::basic_memory_buffer<char, 250ul, std::allocator<char>>&)
AlayaLite/build_O0/_deps/spdlog-src/include/spdlog/pattern_formatter-inl.h
void format(const details::log_msg &msg, const std::tm &, memory_buf_t &dest) override { if (msg.source.empty()) { ScopedPadder p(0, padinfo_, dest); return; } size_t text_size = padinfo_.enabled() ? std::char_traits<char>::length(msg.source.funcname) : 0; ScopedPadder p(text_size, padinfo_, dest); fmt_helper::append_string_view(msg.source.funcname, dest); }
O0
c
spdlog::details::source_funcname_formatter<spdlog::details::null_scoped_padder>::format(spdlog::details::log_msg const&, tm const&, fmt::v10::basic_memory_buffer<char, 250ul, std::allocator<char>>&): subq $0x78, %rsp movq %rdi, 0x60(%rsp) movq %rsi, 0x58(%rsp) movq %rdx, 0x50(%rsp) movq %rcx, 0x48(%rsp) movq 0x60(%rsp), %rax movq %rax, 0x18(%rsp) movq 0x58(%rsp), %rdi addq $0x38, %rdi callq 0x8f690 testb $0x1, %al jne 0xb2b96 jmp 0xb2bb7 movq 0x18(%rsp), %rdx addq $0x8, %rdx movq 0x48(%rsp), %rcx leaq 0x47(%rsp), %rdi xorl %eax, %eax movl %eax, %esi callq 0x8eaa0 jmp 0xb2c64 movq 0x18(%rsp), %rdi addq $0x8, %rdi callq 0x7e440 testb $0x1, %al jne 0xb2bcb jmp 0xb2be0 movq 0x58(%rsp), %rax movq 0x48(%rax), %rdi callq 0x20510 movq %rax, 0x10(%rsp) jmp 0xb2be9 xorl %eax, %eax movq %rax, 0x10(%rsp) jmp 0xb2be9 movq 0x18(%rsp), %rdx movq 0x10(%rsp), %rax movq %rax, 0x38(%rsp) movq 0x38(%rsp), %rsi addq $0x8, %rdx movq 0x48(%rsp), %rcx leaq 0x37(%rsp), %rdi callq 0x8eaa0 movq 0x58(%rsp), %rax movq 0x48(%rax), %rax leaq 0x20(%rsp), %rcx movq %rcx, 0x70(%rsp) movq %rax, 0x68(%rsp) movq 0x70(%rsp), %rax movq %rax, 0x8(%rsp) movq 0x68(%rsp), %rcx movq %rcx, (%rax) movq 0x68(%rsp), %rdi callq 0x152e0 movq %rax, %rcx movq 0x8(%rsp), %rax movq %rcx, 0x8(%rax) movq 0x48(%rsp), %rdx movq 0x20(%rsp), %rdi movq 0x28(%rsp), %rsi callq 0x7e1d0 addq $0x78, %rsp retq nopl (%rax)
_ZN6spdlog7details25source_funcname_formatterINS0_18null_scoped_padderEE6formatERKNS0_7log_msgERK2tmRN3fmt3v1019basic_memory_bufferIcLm250ESaIcEEE: sub rsp, 78h mov [rsp+78h+var_18], rdi mov [rsp+78h+var_20], rsi mov [rsp+78h+var_28], rdx mov [rsp+78h+var_30], rcx mov rax, [rsp+78h+var_18] mov [rsp+78h+var_60], rax mov rdi, [rsp+78h+var_20] add rdi, 38h ; '8'; this call _ZNK6spdlog10source_loc5emptyEv; spdlog::source_loc::empty(void) test al, 1 jnz short loc_B2B96 jmp short loc_B2BB7 loc_B2B96: mov rdx, [rsp+78h+var_60] add rdx, 8 mov rcx, [rsp+78h+var_30] lea rdi, [rsp+78h+var_31] xor eax, eax mov esi, eax call _ZN6spdlog7details18null_scoped_padderC2EmRKNS0_12padding_infoERN3fmt3v1019basic_memory_bufferIcLm250ESaIcEEE; spdlog::details::null_scoped_padder::null_scoped_padder(ulong,spdlog::details::padding_info const&,fmt::v10::basic_memory_buffer<char,250ul,std::allocator<char>> &) jmp loc_B2C64 loc_B2BB7: mov rdi, [rsp+78h+var_60] add rdi, 8; this call _ZNK6spdlog7details12padding_info7enabledEv; spdlog::details::padding_info::enabled(void) test al, 1 jnz short loc_B2BCB jmp short loc_B2BE0 loc_B2BCB: mov rax, [rsp+78h+var_20] mov rdi, [rax+48h] call _ZNSt11char_traitsIcE6lengthEPKc; std::char_traits<char>::length(char const*) mov [rsp+78h+var_68], rax jmp short loc_B2BE9 loc_B2BE0: xor eax, eax mov [rsp+78h+var_68], rax jmp short $+2 loc_B2BE9: mov rdx, [rsp+78h+var_60] mov rax, [rsp+78h+var_68] mov [rsp+78h+var_40], rax mov rsi, [rsp+78h+var_40] add rdx, 8 mov rcx, [rsp+78h+var_30] lea rdi, [rsp+78h+var_41] call _ZN6spdlog7details18null_scoped_padderC2EmRKNS0_12padding_infoERN3fmt3v1019basic_memory_bufferIcLm250ESaIcEEE; spdlog::details::null_scoped_padder::null_scoped_padder(ulong,spdlog::details::padding_info const&,fmt::v10::basic_memory_buffer<char,250ul,std::allocator<char>> &) mov rax, [rsp+78h+var_20] mov rax, [rax+48h] lea rcx, [rsp+78h+var_58] mov [rsp+78h+var_8], rcx mov [rsp+78h+var_10], rax mov rax, [rsp+78h+var_8] mov [rsp+78h+var_70], rax mov rcx, [rsp+78h+var_10] mov [rax], rcx mov rdi, [rsp+78h+var_10] call _strlen mov rcx, rax mov rax, [rsp+78h+var_70] mov [rax+8], rcx mov rdx, [rsp+78h+var_30] mov rdi, [rsp+78h+var_58] mov rsi, [rsp+78h+var_50] call _ZN6spdlog7details10fmt_helper18append_string_viewEN3fmt3v1017basic_string_viewIcEERNS3_19basic_memory_bufferIcLm250ESaIcEEE; spdlog::details::fmt_helper::append_string_view(fmt::v10::basic_string_view<char>,fmt::v10::basic_memory_buffer<char,250ul,std::allocator<char>> &) loc_B2C64: add rsp, 78h retn
void spdlog::details::source_funcname_formatter<spdlog::details::null_scoped_padder>::format( long long a1, long long a2, long long a3, _QWORD *a4) { long long v4; // rax long long v5; // [rsp+10h] [rbp-68h] long long v6; // [rsp+20h] [rbp-58h] BYREF long long v7; // [rsp+28h] [rbp-50h] long long v8; // [rsp+38h] [rbp-40h] _QWORD *v9; // [rsp+48h] [rbp-30h] long long v10; // [rsp+50h] [rbp-28h] long long v11; // [rsp+58h] [rbp-20h] long long v12; // [rsp+60h] [rbp-18h] long long v13; // [rsp+68h] [rbp-10h] long long *v14; // [rsp+70h] [rbp-8h] v12 = a1; v11 = a2; v10 = a3; v9 = a4; if ( spdlog::source_loc::empty((spdlog::source_loc *)(a2 + 56)) ) { spdlog::details::null_scoped_padder::null_scoped_padder(); } else { if ( (spdlog::details::padding_info::enabled((spdlog::details::padding_info *)(a1 + 8)) & 1) != 0 ) v5 = std::char_traits<char>::length(*(_QWORD *)(v11 + 72)); else v5 = 0LL; v8 = v5; spdlog::details::null_scoped_padder::null_scoped_padder(); v4 = *(_QWORD *)(v11 + 72); v14 = &v6; v13 = v4; v6 = v4; v7 = strlen(v4); spdlog::details::fmt_helper::append_string_view(v6, v7, v9); } }
format: SUB RSP,0x78 MOV qword ptr [RSP + 0x60],RDI MOV qword ptr [RSP + 0x58],RSI MOV qword ptr [RSP + 0x50],RDX MOV qword ptr [RSP + 0x48],RCX MOV RAX,qword ptr [RSP + 0x60] MOV qword ptr [RSP + 0x18],RAX MOV RDI,qword ptr [RSP + 0x58] ADD RDI,0x38 CALL 0x0018f690 TEST AL,0x1 JNZ 0x001b2b96 JMP 0x001b2bb7 LAB_001b2b96: MOV RDX,qword ptr [RSP + 0x18] ADD RDX,0x8 MOV RCX,qword ptr [RSP + 0x48] LEA RDI,[RSP + 0x47] XOR EAX,EAX MOV ESI,EAX CALL 0x0018eaa0 JMP 0x001b2c64 LAB_001b2bb7: MOV RDI,qword ptr [RSP + 0x18] ADD RDI,0x8 CALL 0x0017e440 TEST AL,0x1 JNZ 0x001b2bcb JMP 0x001b2be0 LAB_001b2bcb: MOV RAX,qword ptr [RSP + 0x58] MOV RDI,qword ptr [RAX + 0x48] CALL 0x00120510 MOV qword ptr [RSP + 0x10],RAX JMP 0x001b2be9 LAB_001b2be0: XOR EAX,EAX MOV qword ptr [RSP + 0x10],RAX JMP 0x001b2be9 LAB_001b2be9: MOV RDX,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x38],RAX MOV RSI,qword ptr [RSP + 0x38] ADD RDX,0x8 MOV RCX,qword ptr [RSP + 0x48] LEA RDI,[RSP + 0x37] CALL 0x0018eaa0 MOV RAX,qword ptr [RSP + 0x58] MOV RAX,qword ptr [RAX + 0x48] LEA RCX,[RSP + 0x20] MOV qword ptr [RSP + 0x70],RCX MOV qword ptr [RSP + 0x68],RAX MOV RAX,qword ptr [RSP + 0x70] MOV qword ptr [RSP + 0x8],RAX MOV RCX,qword ptr [RSP + 0x68] MOV qword ptr [RAX],RCX MOV RDI,qword ptr [RSP + 0x68] CALL 0x001152e0 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RAX + 0x8],RCX MOV RDX,qword ptr [RSP + 0x48] MOV RDI,qword ptr [RSP + 0x20] MOV RSI,qword ptr [RSP + 0x28] CALL 0x0017e1d0 LAB_001b2c64: ADD RSP,0x78 RET
/* spdlog::details::source_funcname_formatter<spdlog::details::null_scoped_padder>::format(spdlog::details::log_msg const&, tm const&, fmt::v10::basic_memory_buffer<char, 250ul, std::allocator<char> >&) */ void __thiscall spdlog::details::source_funcname_formatter<spdlog::details::null_scoped_padder>::format (source_funcname_formatter<spdlog::details::null_scoped_padder> *this,log_msg *param_1, tm *param_2,basic_memory_buffer *param_3) { ulong uVar1; size_t sVar2; ulong local_68; fmt_helper *local_58 [2]; null_scoped_padder local_41; ulong local_40; null_scoped_padder local_31; basic_memory_buffer *local_30; tm *local_28; log_msg *local_20; source_funcname_formatter<spdlog::details::null_scoped_padder> *local_18; fmt_helper *local_10; fmt_helper **local_8; local_30 = param_3; local_28 = param_2; local_20 = param_1; local_18 = this; uVar1 = source_loc::empty((source_loc *)(param_1 + 0x38)); if ((uVar1 & 1) == 0) { uVar1 = padding_info::enabled((padding_info *)(this + 8)); if ((uVar1 & 1) == 0) { local_68 = 0; } else { local_68 = std::char_traits<char>::length(*(char **)(local_20 + 0x48)); } local_40 = local_68; null_scoped_padder::null_scoped_padder(&local_41,local_68,(padding_info *)(this + 8),local_30); local_58[0] = *(fmt_helper **)(local_20 + 0x48); local_8 = local_58; local_10 = local_58[0]; sVar2 = strlen((char *)local_58[0]); fmt_helper::append_string_view(local_58[0],sVar2,local_30); } else { null_scoped_padder::null_scoped_padder(&local_31,0,(padding_info *)(this + 8),local_30); } return; }
53,146
toggles::init_late()
untodesu[P]voxelius/game/client/toggles.cc
void toggles::init_late(void) { for(toggle_type i = 0; i < TOGGLE_COUNT; ++i) { if(toggle_infos[i].is_enabled) globals::dispatcher.trigger(ToggleEnabledEvent {i}); else globals::dispatcher.trigger(ToggleDisabledEvent {i}); } }
O1
cpp
toggles::init_late(): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x10, %rsp leaq 0x1ef96e(%rip), %r12 # 0x25fc1c xorl %r13d, %r13d leaq 0x1f0558(%rip), %rbx # 0x260810 leaq 0x8(%rsp), %r14 leaq 0xc(%rsp), %r15 cmpb $0x1, (%r12) jne 0x702e9 movq %rbx, %rdi movl $0xd78cecea, %esi # imm = 0xD78CECEA callq 0x4e4e6 movl %r13d, 0x8(%rsp) leaq 0x8(%rax), %rdi movq %r14, %rsi callq 0x4e702 jmp 0x70307 movq %rbx, %rdi movl $0xf5c864bf, %esi # imm = 0xF5C864BF callq 0x4e816 movl %r13d, 0xc(%rsp) leaq 0x8(%rax), %rdi movq %r15, %rsi callq 0x4ea32 incq %r13 addq $0x10, %r12 cmpq $0x6, %r13 jne 0x702c2 addq $0x10, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq
_ZN7toggles9init_lateEv: push r15 push r14 push r13 push r12 push rbx sub rsp, 10h lea r12, byte_25FC1C xor r13d, r13d lea rbx, _ZN7globals10dispatcherE; globals::dispatcher lea r14, [rsp+38h+var_30] lea r15, [rsp+38h+var_2C] loc_702C2: cmp byte ptr [r12], 1 jnz short loc_702E9 mov rdi, rbx mov esi, 0D78CECEAh call _ZN4entt16basic_dispatcherISaIvEE6assureI18ToggleEnabledEventEERNS_8internal18dispatcher_handlerIT_S1_EEj; entt::basic_dispatcher<std::allocator<void>>::assure<ToggleEnabledEvent>(uint) mov [rsp+38h+var_30], r13d lea rdi, [rax+8] mov rsi, r14 call _ZNK4entt4sighIFvR18ToggleEnabledEventESaIvEE7publishES2_; entt::sigh<void ()(ToggleEnabledEvent &),std::allocator<void>>::publish(ToggleEnabledEvent &) jmp short loc_70307 loc_702E9: mov rdi, rbx mov esi, 0F5C864BFh call _ZN4entt16basic_dispatcherISaIvEE6assureI19ToggleDisabledEventEERNS_8internal18dispatcher_handlerIT_S1_EEj; entt::basic_dispatcher<std::allocator<void>>::assure<ToggleDisabledEvent>(uint) mov [rsp+38h+var_2C], r13d lea rdi, [rax+8] mov rsi, r15 call _ZNK4entt4sighIFvR19ToggleDisabledEventESaIvEE7publishES2_; entt::sigh<void ()(ToggleDisabledEvent &),std::allocator<void>>::publish(ToggleDisabledEvent &) loc_70307: inc r13 add r12, 10h cmp r13, 6 jnz short loc_702C2 add rsp, 10h pop rbx pop r12 pop r13 pop r14 pop r15 retn
long long toggles::init_late(toggles *this) { char *v1; // r12 long long i; // r13 long long v3; // rax long long result; // rax long long v5; // rax int v6; // [rsp+8h] [rbp-30h] BYREF _DWORD v7[11]; // [rsp+Ch] [rbp-2Ch] BYREF v1 = &byte_25FC1C; for ( i = 0LL; i != 6; ++i ) { if ( *v1 == 1 ) { v3 = entt::basic_dispatcher<std::allocator<void>>::assure<ToggleEnabledEvent>(globals::dispatcher, -678630166); v6 = i; result = entt::sigh<void ()(ToggleEnabledEvent &),std::allocator<void>>::publish((_QWORD *)(v3 + 8), (long long)&v6); } else { v5 = entt::basic_dispatcher<std::allocator<void>>::assure<ToggleDisabledEvent>(globals::dispatcher, -171416385); v7[0] = i; result = entt::sigh<void ()(ToggleDisabledEvent &),std::allocator<void>>::publish((_QWORD *)(v5 + 8), (long long)v7); } v1 += 16; } return result; }
init_late: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x10 LEA R12,[0x35fc1c] XOR R13D,R13D LEA RBX,[0x360810] LEA R14,[RSP + 0x8] LEA R15,[RSP + 0xc] LAB_001702c2: CMP byte ptr [R12],0x1 JNZ 0x001702e9 MOV RDI,RBX MOV ESI,0xd78cecea CALL 0x0014e4e6 MOV dword ptr [RSP + 0x8],R13D LEA RDI,[RAX + 0x8] MOV RSI,R14 CALL 0x0014e702 JMP 0x00170307 LAB_001702e9: MOV RDI,RBX MOV ESI,0xf5c864bf CALL 0x0014e816 MOV dword ptr [RSP + 0xc],R13D LEA RDI,[RAX + 0x8] MOV RSI,R15 CALL 0x0014ea32 LAB_00170307: INC R13 ADD R12,0x10 CMP R13,0x6 JNZ 0x001702c2 ADD RSP,0x10 POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* toggles::init_late() */ void toggles::init_late(void) { dispatcher_handler *pdVar1; char *pcVar2; long lVar3; int4 local_30; int4 local_2c; pcVar2 = toggle_infos + 0xc; lVar3 = 0; do { if (*pcVar2 == '\x01') { pdVar1 = entt::basic_dispatcher<std::allocator<void>>::assure<ToggleEnabledEvent> ((basic_dispatcher<std::allocator<void>> *)globals::dispatcher,0xd78cecea); local_30 = (int)lVar3; entt::sigh<void(ToggleEnabledEvent&),std::allocator<void>>::publish ((sigh<void(ToggleEnabledEvent&),std::allocator<void>> *)(pdVar1 + 8), (ToggleEnabledEvent *)&local_30); } else { pdVar1 = entt::basic_dispatcher<std::allocator<void>>::assure<ToggleDisabledEvent> ((basic_dispatcher<std::allocator<void>> *)globals::dispatcher,0xf5c864bf); local_2c = (int)lVar3; entt::sigh<void(ToggleDisabledEvent&),std::allocator<void>>::publish ((sigh<void(ToggleDisabledEvent&),std::allocator<void>> *)(pdVar1 + 8), (ToggleDisabledEvent *)&local_2c); } lVar3 = lVar3 + 1; pcVar2 = pcVar2 + 0x10; } while (lVar3 != 6); return; }
53,147
toggles::init_late()
untodesu[P]voxelius/game/client/toggles.cc
void toggles::init_late(void) { for(toggle_type i = 0; i < TOGGLE_COUNT; ++i) { if(toggle_infos[i].is_enabled) globals::dispatcher.trigger(ToggleEnabledEvent {i}); else globals::dispatcher.trigger(ToggleDisabledEvent {i}); } }
O3
cpp
toggles::init_late(): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x10, %rsp leaq 0x1eae8b(%rip), %r12 # 0x25bc2c xorl %r13d, %r13d leaq 0x1eba75(%rip), %rbx # 0x25c820 leaq 0x8(%rsp), %r14 leaq 0xc(%rsp), %r15 cmpb $0x1, (%r12) jne 0x70ddc movq %rbx, %rdi movl $0xd78cecea, %esi # imm = 0xD78CECEA callq 0x4f146 movl %r13d, 0x8(%rsp) leaq 0x8(%rax), %rdi movq %r14, %rsi callq 0x4f36a jmp 0x70dfa movq %rbx, %rdi movl $0xf5c864bf, %esi # imm = 0xF5C864BF callq 0x4f47a movl %r13d, 0xc(%rsp) leaq 0x8(%rax), %rdi movq %r15, %rsi callq 0x4f69e incq %r13 addq $0x10, %r12 cmpq $0x6, %r13 jne 0x70db5 addq $0x10, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq
_ZN7toggles9init_lateEv: push r15 push r14 push r13 push r12 push rbx sub rsp, 10h lea r12, byte_25BC2C xor r13d, r13d lea rbx, _ZN7globals10dispatcherE; globals::dispatcher lea r14, [rsp+38h+var_30] lea r15, [rsp+38h+var_2C] loc_70DB5: cmp byte ptr [r12], 1 jnz short loc_70DDC mov rdi, rbx mov esi, 0D78CECEAh call _ZN4entt16basic_dispatcherISaIvEE6assureI18ToggleEnabledEventEERNS_8internal18dispatcher_handlerIT_S1_EEj; entt::basic_dispatcher<std::allocator<void>>::assure<ToggleEnabledEvent>(uint) mov [rsp+38h+var_30], r13d lea rdi, [rax+8] mov rsi, r14 call _ZNK4entt4sighIFvR18ToggleEnabledEventESaIvEE7publishES2_; entt::sigh<void ()(ToggleEnabledEvent &),std::allocator<void>>::publish(ToggleEnabledEvent &) jmp short loc_70DFA loc_70DDC: mov rdi, rbx mov esi, 0F5C864BFh call _ZN4entt16basic_dispatcherISaIvEE6assureI19ToggleDisabledEventEERNS_8internal18dispatcher_handlerIT_S1_EEj; entt::basic_dispatcher<std::allocator<void>>::assure<ToggleDisabledEvent>(uint) mov [rsp+38h+var_2C], r13d lea rdi, [rax+8] mov rsi, r15 call _ZNK4entt4sighIFvR19ToggleDisabledEventESaIvEE7publishES2_; entt::sigh<void ()(ToggleDisabledEvent &),std::allocator<void>>::publish(ToggleDisabledEvent &) loc_70DFA: inc r13 add r12, 10h cmp r13, 6 jnz short loc_70DB5 add rsp, 10h pop rbx pop r12 pop r13 pop r14 pop r15 retn
long long toggles::init_late(toggles *this) { char *v1; // r12 long long i; // r13 long long v3; // rax long long result; // rax long long v5; // rax int v6; // [rsp+8h] [rbp-30h] BYREF _DWORD v7[11]; // [rsp+Ch] [rbp-2Ch] BYREF v1 = &byte_25BC2C; for ( i = 0LL; i != 6; ++i ) { if ( *v1 == 1 ) { v3 = entt::basic_dispatcher<std::allocator<void>>::assure<ToggleEnabledEvent>(globals::dispatcher, -678630166); v6 = i; result = entt::sigh<void ()(ToggleEnabledEvent &),std::allocator<void>>::publish((_QWORD *)(v3 + 8), (long long)&v6); } else { v5 = entt::basic_dispatcher<std::allocator<void>>::assure<ToggleDisabledEvent>(globals::dispatcher, -171416385); v7[0] = i; result = entt::sigh<void ()(ToggleDisabledEvent &),std::allocator<void>>::publish((_QWORD *)(v5 + 8), (long long)v7); } v1 += 16; } return result; }
init_late: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x10 LEA R12,[0x35bc2c] XOR R13D,R13D LEA RBX,[0x35c820] LEA R14,[RSP + 0x8] LEA R15,[RSP + 0xc] LAB_00170db5: CMP byte ptr [R12],0x1 JNZ 0x00170ddc MOV RDI,RBX MOV ESI,0xd78cecea CALL 0x0014f146 MOV dword ptr [RSP + 0x8],R13D LEA RDI,[RAX + 0x8] MOV RSI,R14 CALL 0x0014f36a JMP 0x00170dfa LAB_00170ddc: MOV RDI,RBX MOV ESI,0xf5c864bf CALL 0x0014f47a MOV dword ptr [RSP + 0xc],R13D LEA RDI,[RAX + 0x8] MOV RSI,R15 CALL 0x0014f69e LAB_00170dfa: INC R13 ADD R12,0x10 CMP R13,0x6 JNZ 0x00170db5 ADD RSP,0x10 POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* toggles::init_late() */ void toggles::init_late(void) { dispatcher_handler *pdVar1; char *pcVar2; long lVar3; int4 local_30; int4 local_2c; pcVar2 = toggle_infos + 0xc; lVar3 = 0; do { if (*pcVar2 == '\x01') { pdVar1 = entt::basic_dispatcher<std::allocator<void>>::assure<ToggleEnabledEvent> ((basic_dispatcher<std::allocator<void>> *)globals::dispatcher,0xd78cecea); local_30 = (int)lVar3; entt::sigh<void(ToggleEnabledEvent&),std::allocator<void>>::publish ((sigh<void(ToggleEnabledEvent&),std::allocator<void>> *)(pdVar1 + 8), (ToggleEnabledEvent *)&local_30); } else { pdVar1 = entt::basic_dispatcher<std::allocator<void>>::assure<ToggleDisabledEvent> ((basic_dispatcher<std::allocator<void>> *)globals::dispatcher,0xf5c864bf); local_2c = (int)lVar3; entt::sigh<void(ToggleDisabledEvent&),std::allocator<void>>::publish ((sigh<void(ToggleDisabledEvent&),std::allocator<void>> *)(pdVar1 + 8), (ToggleDisabledEvent *)&local_2c); } lVar3 = lVar3 + 1; pcVar2 = pcVar2 + 0x10; } while (lVar3 != 6); return; }
53,148
JS_AddBrand
bluesky950520[P]quickjs/quickjs.c
static int JS_AddBrand(JSContext *ctx, JSValue obj, JSValue home_obj) { JSObject *p, *p1; JSShapeProperty *prs; JSProperty *pr; JSValue brand; JSAtom brand_atom; if (unlikely(JS_VALUE_GET_TAG(home_obj) != JS_TAG_OBJECT)) { JS_ThrowTypeErrorNotAnObject(ctx); return -1; } p = JS_VALUE_GET_OBJ(home_obj); prs = find_own_property(&pr, p, JS_ATOM_Private_brand); if (!prs) { /* if the brand is not present, add it */ brand = JS_NewSymbolFromAtom(ctx, JS_ATOM_brand, JS_ATOM_TYPE_PRIVATE); if (JS_IsException(brand)) return -1; pr = add_property(ctx, p, JS_ATOM_Private_brand, JS_PROP_C_W_E); if (!pr) { JS_FreeValue(ctx, brand); return -1; } pr->u.value = js_dup(brand); } else { brand = js_dup(pr->u.value); } brand_atom = js_symbol_to_atom(ctx, brand); if (JS_IsObject(obj)) { p1 = JS_VALUE_GET_OBJ(obj); prs = find_own_property(&pr, p1, brand_atom); if (unlikely(prs)) { JS_FreeAtom(ctx, brand_atom); JS_ThrowTypeError(ctx, "private method is already present"); return -1; } pr = add_property(ctx, p1, brand_atom, JS_PROP_C_W_E); JS_FreeAtom(ctx, brand_atom); if (!pr) return -1; pr->u.value = JS_UNDEFINED; } else { JS_FreeAtom(ctx, brand_atom); } return 0; }
O0
c
JS_AddBrand: subq $0x158, %rsp # imm = 0x158 movq %rsi, 0xc0(%rsp) movq %rdx, 0xc8(%rsp) movq %rcx, 0xb0(%rsp) movq %r8, 0xb8(%rsp) movq %rdi, 0xa8(%rsp) movq 0xb8(%rsp), %rax cmpl $-0x1, %eax setne %al xorb $-0x1, %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x64165 movq 0xa8(%rsp), %rdi callq 0x2e2e0 movq %rax, 0x60(%rsp) movq %rdx, 0x68(%rsp) movl $0xffffffff, 0xd4(%rsp) # imm = 0xFFFFFFFF jmp 0x646cb movq 0xb0(%rsp), %rax movq %rax, 0xa0(%rsp) movq 0xa0(%rsp), %rax leaq 0x88(%rsp), %rcx movq %rcx, 0x148(%rsp) movq %rax, 0x140(%rsp) movl $0xd2, 0x13c(%rsp) movq 0x140(%rsp), %rax movq 0x18(%rax), %rax movq %rax, 0x130(%rsp) movl 0x13c(%rsp), %eax movq 0x130(%rsp), %rcx movl 0x20(%rcx), %ecx andq %rcx, %rax movq %rax, 0x118(%rsp) movq 0x130(%rsp), %rdi callq 0x5c5f0 xorl %ecx, %ecx subq 0x118(%rsp), %rcx subq $0x1, %rcx movl (%rax,%rcx,4), %eax movq %rax, 0x118(%rsp) movq 0x130(%rsp), %rdi callq 0x2afc0 movq %rax, 0x120(%rsp) cmpq $0x0, 0x118(%rsp) je 0x642b3 movq 0x120(%rsp), %rax movq 0x118(%rsp), %rcx subq $0x1, %rcx shlq $0x3, %rcx addq %rcx, %rax movq %rax, 0x128(%rsp) movq 0x128(%rsp), %rax movl 0x4(%rax), %eax cmpl 0x13c(%rsp), %eax sete %al testb $0x1, %al jne 0x64259 jmp 0x64295 movq 0x140(%rsp), %rax movq 0x20(%rax), %rcx movq 0x118(%rsp), %rax subq $0x1, %rax shlq $0x4, %rax addq %rax, %rcx movq 0x148(%rsp), %rax movq %rcx, (%rax) movq 0x128(%rsp), %rax movq %rax, 0x150(%rsp) jmp 0x642ce movq 0x128(%rsp), %rax movl (%rax), %eax andl $0x3ffffff, %eax # imm = 0x3FFFFFF movl %eax, %eax movq %rax, 0x118(%rsp) jmp 0x6420c movq 0x148(%rsp), %rax movq $0x0, (%rax) movq $0x0, 0x150(%rsp) movq 0x150(%rsp), %rax movq %rax, 0x90(%rsp) cmpq $0x0, 0x90(%rsp) jne 0x643ec movq 0xa8(%rsp), %rdi movl $0x78, %esi movl $0x4, %edx callq 0x27ae0 movq %rax, 0x50(%rsp) movq %rdx, 0x58(%rsp) movq 0x50(%rsp), %rax movq %rax, 0x78(%rsp) movq 0x58(%rsp), %rax movq %rax, 0x80(%rsp) movq 0x78(%rsp), %rdi movq 0x80(%rsp), %rsi callq 0x22a00 cmpl $0x0, %eax je 0x6434c movl $0xffffffff, 0xd4(%rsp) # imm = 0xFFFFFFFF jmp 0x646cb movq 0xa8(%rsp), %rdi movq 0xa0(%rsp), %rsi movl $0xd2, %edx movl $0x7, %ecx callq 0x5ca80 movq %rax, 0x88(%rsp) cmpq $0x0, 0x88(%rsp) jne 0x643a8 movq 0xa8(%rsp), %rdi movq 0x78(%rsp), %rsi movq 0x80(%rsp), %rdx callq 0x229d0 movl $0xffffffff, 0xd4(%rsp) # imm = 0xFFFFFFFF jmp 0x646cb movq 0x88(%rsp), %rax movq %rax, 0x8(%rsp) movq 0x78(%rsp), %rdi movq 0x80(%rsp), %rsi callq 0x20410 movq %rax, %rcx movq 0x8(%rsp), %rax movq %rcx, 0x40(%rsp) movq %rdx, 0x48(%rsp) movq 0x40(%rsp), %rcx movq %rcx, (%rax) movq 0x48(%rsp), %rcx movq %rcx, 0x8(%rax) jmp 0x64421 movq 0x88(%rsp), %rax movq (%rax), %rdi movq 0x8(%rax), %rsi callq 0x20410 movq %rax, 0x30(%rsp) movq %rdx, 0x38(%rsp) movq 0x30(%rsp), %rax movq %rax, 0x78(%rsp) movq 0x38(%rsp), %rax movq %rax, 0x80(%rsp) movq 0xa8(%rsp), %rdi movq 0x78(%rsp), %rsi movq 0x80(%rsp), %rdx callq 0x30160 movl %eax, 0x74(%rsp) movq 0xc0(%rsp), %rdi movq 0xc8(%rsp), %rsi callq 0x29cb0 cmpl $0x0, %eax je 0x646af movq 0xc0(%rsp), %rax movq %rax, 0x98(%rsp) movq 0x98(%rsp), %rcx movl 0x74(%rsp), %eax leaq 0x88(%rsp), %rdx movq %rdx, 0x108(%rsp) movq %rcx, 0x100(%rsp) movl %eax, 0xfc(%rsp) movq 0x100(%rsp), %rax movq 0x18(%rax), %rax movq %rax, 0xf0(%rsp) movl 0xfc(%rsp), %eax movq 0xf0(%rsp), %rcx movl 0x20(%rcx), %ecx andq %rcx, %rax movq %rax, 0xd8(%rsp) movq 0xf0(%rsp), %rdi callq 0x5c5f0 xorl %ecx, %ecx subq 0xd8(%rsp), %rcx subq $0x1, %rcx movl (%rax,%rcx,4), %eax movq %rax, 0xd8(%rsp) movq 0xf0(%rsp), %rdi callq 0x2afc0 movq %rax, 0xe0(%rsp) cmpq $0x0, 0xd8(%rsp) je 0x645ab movq 0xe0(%rsp), %rax movq 0xd8(%rsp), %rcx subq $0x1, %rcx shlq $0x3, %rcx addq %rcx, %rax movq %rax, 0xe8(%rsp) movq 0xe8(%rsp), %rax movl 0x4(%rax), %eax cmpl 0xfc(%rsp), %eax sete %al testb $0x1, %al jne 0x64551 jmp 0x6458d movq 0x100(%rsp), %rax movq 0x20(%rax), %rcx movq 0xd8(%rsp), %rax subq $0x1, %rax shlq $0x4, %rax addq %rax, %rcx movq 0x108(%rsp), %rax movq %rcx, (%rax) movq 0xe8(%rsp), %rax movq %rax, 0x110(%rsp) jmp 0x645c6 movq 0xe8(%rsp), %rax movl (%rax), %eax andl $0x3ffffff, %eax # imm = 0x3FFFFFF movl %eax, %eax movq %rax, 0xd8(%rsp) jmp 0x64504 movq 0x108(%rsp), %rax movq $0x0, (%rax) movq $0x0, 0x110(%rsp) movq 0x110(%rsp), %rax movq %rax, 0x90(%rsp) cmpq $0x0, 0x90(%rsp) setne %al xorb $-0x1, %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x64634 movq 0xa8(%rsp), %rdi movl 0x74(%rsp), %esi callq 0x27d80 movq 0xa8(%rsp), %rdi leaq 0xa86c4(%rip), %rsi # 0x10ccd7 movb $0x0, %al callq 0x2c040 movq %rax, 0x20(%rsp) movq %rdx, 0x28(%rsp) movl $0xffffffff, 0xd4(%rsp) # imm = 0xFFFFFFFF jmp 0x646cb movq 0xa8(%rsp), %rdi movq 0x98(%rsp), %rsi movl 0x74(%rsp), %edx movl $0x7, %ecx callq 0x5ca80 movq %rax, 0x88(%rsp) movq 0xa8(%rsp), %rdi movl 0x74(%rsp), %esi callq 0x27d80 cmpq $0x0, 0x88(%rsp) jne 0x64683 movl $0xffffffff, 0xd4(%rsp) # imm = 0xFFFFFFFF jmp 0x646cb movq 0x88(%rsp), %rax movl $0x0, 0x10(%rsp) movq $0x3, 0x18(%rsp) movq 0x10(%rsp), %rcx movq %rcx, (%rax) movq 0x18(%rsp), %rcx movq %rcx, 0x8(%rax) jmp 0x646c0 movq 0xa8(%rsp), %rdi movl 0x74(%rsp), %esi callq 0x27d80 movl $0x0, 0xd4(%rsp) movl 0xd4(%rsp), %eax addq $0x158, %rsp # imm = 0x158 retq nopw (%rax,%rax)
JS_AddBrand: sub rsp, 158h mov [rsp+158h+var_98], rsi mov [rsp+158h+var_90], rdx mov [rsp+158h+var_A8], rcx mov [rsp+158h+var_A0], r8 mov [rsp+158h+var_B0], rdi mov rax, [rsp+158h+var_A0] cmp eax, 0FFFFFFFFh setnz al xor al, 0FFh xor al, 0FFh and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_64165 mov rdi, [rsp+158h+var_B0] call JS_ThrowTypeErrorNotAnObject mov [rsp+158h+var_F8], rax mov [rsp+158h+var_F0], rdx mov [rsp+158h+var_84], 0FFFFFFFFh jmp loc_646CB loc_64165: mov rax, [rsp+158h+var_A8] mov [rsp+158h+var_B8], rax mov rax, [rsp+158h+var_B8] lea rcx, [rsp+158h+var_D0] mov [rsp+158h+var_10], rcx mov [rsp+158h+var_18], rax mov [rsp+158h+var_1C], 0D2h mov rax, [rsp+158h+var_18] mov rax, [rax+18h] mov [rsp+158h+var_28], rax mov eax, [rsp+158h+var_1C] mov rcx, [rsp+158h+var_28] mov ecx, [rcx+20h] and rax, rcx mov [rsp+158h+var_40], rax mov rdi, [rsp+158h+var_28] call prop_hash_end xor ecx, ecx sub rcx, [rsp+158h+var_40] sub rcx, 1 mov eax, [rax+rcx*4] mov [rsp+158h+var_40], rax mov rdi, [rsp+158h+var_28] call get_shape_prop mov [rsp+158h+var_38], rax loc_6420C: cmp [rsp+158h+var_40], 0 jz loc_642B3 mov rax, [rsp+158h+var_38] mov rcx, [rsp+158h+var_40] sub rcx, 1 shl rcx, 3 add rax, rcx mov [rsp+158h+var_30], rax mov rax, [rsp+158h+var_30] mov eax, [rax+4] cmp eax, [rsp+158h+var_1C] setz al test al, 1 jnz short loc_64259 jmp short loc_64295 loc_64259: mov rax, [rsp+158h+var_18] mov rcx, [rax+20h] mov rax, [rsp+158h+var_40] sub rax, 1 shl rax, 4 add rcx, rax mov rax, [rsp+158h+var_10] mov [rax], rcx mov rax, [rsp+158h+var_30] mov [rsp+158h+var_8], rax jmp short loc_642CE loc_64295: mov rax, [rsp+158h+var_30] mov eax, [rax] and eax, 3FFFFFFh mov eax, eax mov [rsp+158h+var_40], rax jmp loc_6420C loc_642B3: mov rax, [rsp+158h+var_10] mov qword ptr [rax], 0 mov [rsp+158h+var_8], 0 loc_642CE: mov rax, [rsp+158h+var_8] mov [rsp+158h+var_C8], rax cmp [rsp+158h+var_C8], 0 jnz loc_643EC mov rdi, [rsp+158h+var_B0] mov esi, 78h ; 'x' mov edx, 4 call JS_NewSymbolFromAtom mov [rsp+158h+var_108], rax mov [rsp+158h+var_100], rdx mov rax, [rsp+158h+var_108] mov [rsp+158h+var_E0], rax mov rax, [rsp+158h+var_100] mov [rsp+158h+var_D8], rax mov rdi, [rsp+158h+var_E0] mov rsi, [rsp+158h+var_D8] call JS_IsException_1 cmp eax, 0 jz short loc_6434C mov [rsp+158h+var_84], 0FFFFFFFFh jmp loc_646CB loc_6434C: mov rdi, [rsp+158h+var_B0] mov rsi, [rsp+158h+var_B8] mov edx, 0D2h mov ecx, 7 call add_property mov [rsp+158h+var_D0], rax cmp [rsp+158h+var_D0], 0 jnz short loc_643A8 mov rdi, [rsp+158h+var_B0] mov rsi, [rsp+158h+var_E0] mov rdx, [rsp+158h+var_D8] call JS_FreeValue mov [rsp+158h+var_84], 0FFFFFFFFh jmp loc_646CB loc_643A8: mov rax, [rsp+158h+var_D0] mov [rsp+158h+var_150], rax mov rdi, [rsp+158h+var_E0] mov rsi, [rsp+158h+var_D8] call js_dup mov rcx, rax mov rax, [rsp+158h+var_150] mov [rsp+158h+var_118], rcx mov [rsp+158h+var_110], rdx mov rcx, [rsp+158h+var_118] mov [rax], rcx mov rcx, [rsp+158h+var_110] mov [rax+8], rcx jmp short loc_64421 loc_643EC: mov rax, [rsp+158h+var_D0] mov rdi, [rax] mov rsi, [rax+8] call js_dup mov [rsp+158h+var_128], rax mov [rsp+158h+var_120], rdx mov rax, [rsp+158h+var_128] mov [rsp+158h+var_E0], rax mov rax, [rsp+158h+var_120] mov [rsp+158h+var_D8], rax loc_64421: mov rdi, [rsp+158h+var_B0] mov rsi, [rsp+158h+var_E0] mov rdx, [rsp+158h+var_D8] call js_symbol_to_atom mov [rsp+158h+var_E4], eax mov rdi, [rsp+158h+var_98] mov rsi, [rsp+158h+var_90] call JS_IsObject cmp eax, 0 jz loc_646AF mov rax, [rsp+158h+var_98] mov [rsp+158h+var_C0], rax mov rcx, [rsp+158h+var_C0] mov eax, [rsp+158h+var_E4] lea rdx, [rsp+158h+var_D0] mov [rsp+158h+var_50], rdx mov [rsp+158h+var_58], rcx mov [rsp+158h+var_5C], eax mov rax, [rsp+158h+var_58] mov rax, [rax+18h] mov [rsp+158h+var_68], rax mov eax, [rsp+158h+var_5C] mov rcx, [rsp+158h+var_68] mov ecx, [rcx+20h] and rax, rcx mov [rsp+158h+var_80], rax mov rdi, [rsp+158h+var_68] call prop_hash_end xor ecx, ecx sub rcx, [rsp+158h+var_80] sub rcx, 1 mov eax, [rax+rcx*4] mov [rsp+158h+var_80], rax mov rdi, [rsp+158h+var_68] call get_shape_prop mov [rsp+158h+var_78], rax loc_64504: cmp [rsp+158h+var_80], 0 jz loc_645AB mov rax, [rsp+158h+var_78] mov rcx, [rsp+158h+var_80] sub rcx, 1 shl rcx, 3 add rax, rcx mov [rsp+158h+var_70], rax mov rax, [rsp+158h+var_70] mov eax, [rax+4] cmp eax, [rsp+158h+var_5C] setz al test al, 1 jnz short loc_64551 jmp short loc_6458D loc_64551: mov rax, [rsp+158h+var_58] mov rcx, [rax+20h] mov rax, [rsp+158h+var_80] sub rax, 1 shl rax, 4 add rcx, rax mov rax, [rsp+158h+var_50] mov [rax], rcx mov rax, [rsp+158h+var_70] mov [rsp+158h+var_48], rax jmp short loc_645C6 loc_6458D: mov rax, [rsp+158h+var_70] mov eax, [rax] and eax, 3FFFFFFh mov eax, eax mov [rsp+158h+var_80], rax jmp loc_64504 loc_645AB: mov rax, [rsp+158h+var_50] mov qword ptr [rax], 0 mov [rsp+158h+var_48], 0 loc_645C6: mov rax, [rsp+158h+var_48] mov [rsp+158h+var_C8], rax cmp [rsp+158h+var_C8], 0 setnz al xor al, 0FFh xor al, 0FFh and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_64634 mov rdi, [rsp+158h+var_B0] mov esi, [rsp+158h+var_E4] call JS_FreeAtom mov rdi, [rsp+158h+var_B0] lea rsi, aPrivateMethodI; "private method is already present" mov al, 0 call JS_ThrowTypeError mov [rsp+158h+var_138], rax mov [rsp+158h+var_130], rdx mov [rsp+158h+var_84], 0FFFFFFFFh jmp loc_646CB loc_64634: mov rdi, [rsp+158h+var_B0] mov rsi, [rsp+158h+var_C0] mov edx, [rsp+158h+var_E4] mov ecx, 7 call add_property mov [rsp+158h+var_D0], rax mov rdi, [rsp+158h+var_B0] mov esi, [rsp+158h+var_E4] call JS_FreeAtom cmp [rsp+158h+var_D0], 0 jnz short loc_64683 mov [rsp+158h+var_84], 0FFFFFFFFh jmp short loc_646CB loc_64683: mov rax, [rsp+158h+var_D0] mov dword ptr [rsp+158h+var_148], 0 mov [rsp+158h+var_140], 3 mov rcx, [rsp+158h+var_148] mov [rax], rcx mov rcx, [rsp+158h+var_140] mov [rax+8], rcx jmp short loc_646C0 loc_646AF: mov rdi, [rsp+158h+var_B0] mov esi, [rsp+158h+var_E4] call JS_FreeAtom loc_646C0: mov [rsp+158h+var_84], 0 loc_646CB: mov eax, [rsp+158h+var_84] add rsp, 158h retn
long long JS_AddBrand( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { long long v14; // rax long long v15; // rdx long long v16; // rdx long long v17; // rax 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; // rax char v26; // [rsp+0h] [rbp-158h] _QWORD *v27; // [rsp+8h] [rbp-150h] long long v28; // [rsp+10h] [rbp-148h] _DWORD *v29; // [rsp+50h] [rbp-108h] unsigned int v30; // [rsp+74h] [rbp-E4h] _DWORD *v31; // [rsp+78h] [rbp-E0h] long long v32; // [rsp+80h] [rbp-D8h] long long v33; // [rsp+88h] [rbp-D0h] BYREF _DWORD *v34; // [rsp+90h] [rbp-C8h] long long v35; // [rsp+98h] [rbp-C0h] long long v36; // [rsp+A0h] [rbp-B8h] long long v37; // [rsp+A8h] [rbp-B0h] long long v38; // [rsp+B0h] [rbp-A8h] long long v39; // [rsp+B8h] [rbp-A0h] long long v40; // [rsp+C0h] [rbp-98h] long long v41; // [rsp+C8h] [rbp-90h] long long v43; // [rsp+D8h] [rbp-80h] long long v44; // [rsp+E0h] [rbp-78h] _DWORD *v45; // [rsp+E8h] [rbp-70h] long long v46; // [rsp+F0h] [rbp-68h] unsigned int v47; // [rsp+FCh] [rbp-5Ch] long long v48; // [rsp+100h] [rbp-58h] long long *v49; // [rsp+108h] [rbp-50h] _DWORD *v50; // [rsp+110h] [rbp-48h] long long v51; // [rsp+118h] [rbp-40h] long long shape_prop; // [rsp+120h] [rbp-38h] _DWORD *v53; // [rsp+128h] [rbp-30h] long long v54; // [rsp+130h] [rbp-28h] int v55; // [rsp+13Ch] [rbp-1Ch] long long v56; // [rsp+140h] [rbp-18h] long long *v57; // [rsp+148h] [rbp-10h] _DWORD *v58; // [rsp+150h] [rbp-8h] v40 = a2; v41 = a3; v38 = a4; v39 = a5; v37 = a1; if ( (_DWORD)a5 == -1 ) { v36 = v38; v57 = &v33; v56 = v38; v55 = 210; v54 = *(_QWORD *)(v38 + 24); v51 = *(_DWORD *)(v54 + 32) & 0xD2LL; v14 = prop_hash_end(v54); v51 = *(unsigned int *)(v14 + 4 * (-v51 - 1)); shape_prop = get_shape_prop(v54); while ( v51 ) { v53 = (_DWORD *)(8 * (v51 - 1) + shape_prop); if ( v53[1] == v55 ) { *v57 = 16 * (v51 - 1) + *(_QWORD *)(v56 + 32); v58 = v53; goto LABEL_9; } v51 = *v53 & 0x3FFFFFF; } *v57 = 0LL; v58 = 0LL; LABEL_9: v34 = v58; if ( v58 ) { v31 = js_dup(*(_DWORD **)v33, *(_QWORD *)(v33 + 8)); } else { v29 = (_DWORD *)JS_NewSymbolFromAtom(v37, 0x78u, 4u); v31 = v29; v32 = v15; if ( JS_IsException_1((long long)v29, v15) ) return (unsigned int)-1; v33 = add_property(v37, v36, 0xD2u, 7u); if ( !v33 ) { JS_FreeValue(v37, (long long)v29, v32); return (unsigned int)-1; } v27 = (_QWORD *)v33; *v27 = js_dup(v29, v32); v27[1] = v16; } v30 = js_symbol_to_atom(v37, (long long)v31); if ( JS_IsObject(v40, v41) ) { v35 = v40; v49 = &v33; v48 = v40; v47 = v30; v46 = *(_QWORD *)(v40 + 24); v43 = *(_DWORD *)(v46 + 32) & v30; v17 = prop_hash_end(v46); v43 = *(unsigned int *)(v17 + 4 * (-v43 - 1)); v44 = get_shape_prop(v46); while ( v43 ) { v45 = (_DWORD *)(8 * (v43 - 1) + v44); if ( v45[1] == v47 ) { *v49 = 16 * (v43 - 1) + *(_QWORD *)(v48 + 32); v50 = v45; goto LABEL_23; } v43 = *v45 & 0x3FFFFFF; } *v49 = 0LL; v50 = 0LL; LABEL_23: v34 = v50; if ( v50 ) { JS_FreeAtom(v37, v30); JS_ThrowTypeError( v37, (long long)"private method is already present", v18, v19, v20, v21, a7, a8, a9, a10, v22, v23, a13, a14, v26); return (unsigned int)-1; } v33 = add_property(v37, v35, v30, 7u); JS_FreeAtom(v37, v30); if ( !v33 ) return (unsigned int)-1; v24 = v33; LODWORD(v28) = 0; *(_QWORD *)v33 = v28; *(_QWORD *)(v24 + 8) = 3LL; } else { JS_FreeAtom(v37, v30); } return 0; } JS_ThrowTypeErrorNotAnObject(v37, a7, a8, a9, a10, a11, a12, a13, a14, a2, a3, a4, a5, a6); return (unsigned int)-1; }
JS_AddBrand: SUB RSP,0x158 MOV qword ptr [RSP + 0xc0],RSI MOV qword ptr [RSP + 0xc8],RDX MOV qword ptr [RSP + 0xb0],RCX MOV qword ptr [RSP + 0xb8],R8 MOV qword ptr [RSP + 0xa8],RDI MOV RAX,qword ptr [RSP + 0xb8] CMP EAX,-0x1 SETNZ AL XOR AL,0xff XOR AL,0xff AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x00164165 MOV RDI,qword ptr [RSP + 0xa8] CALL 0x0012e2e0 MOV qword ptr [RSP + 0x60],RAX MOV qword ptr [RSP + 0x68],RDX MOV dword ptr [RSP + 0xd4],0xffffffff JMP 0x001646cb LAB_00164165: MOV RAX,qword ptr [RSP + 0xb0] MOV qword ptr [RSP + 0xa0],RAX MOV RAX,qword ptr [RSP + 0xa0] LEA RCX,[RSP + 0x88] MOV qword ptr [RSP + 0x148],RCX MOV qword ptr [RSP + 0x140],RAX MOV dword ptr [RSP + 0x13c],0xd2 MOV RAX,qword ptr [RSP + 0x140] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RSP + 0x130],RAX MOV EAX,dword ptr [RSP + 0x13c] MOV RCX,qword ptr [RSP + 0x130] MOV ECX,dword ptr [RCX + 0x20] AND RAX,RCX MOV qword ptr [RSP + 0x118],RAX MOV RDI,qword ptr [RSP + 0x130] CALL 0x0015c5f0 XOR ECX,ECX SUB RCX,qword ptr [RSP + 0x118] SUB RCX,0x1 MOV EAX,dword ptr [RAX + RCX*0x4] MOV qword ptr [RSP + 0x118],RAX MOV RDI,qword ptr [RSP + 0x130] CALL 0x0012afc0 MOV qword ptr [RSP + 0x120],RAX LAB_0016420c: CMP qword ptr [RSP + 0x118],0x0 JZ 0x001642b3 MOV RAX,qword ptr [RSP + 0x120] MOV RCX,qword ptr [RSP + 0x118] SUB RCX,0x1 SHL RCX,0x3 ADD RAX,RCX MOV qword ptr [RSP + 0x128],RAX MOV RAX,qword ptr [RSP + 0x128] MOV EAX,dword ptr [RAX + 0x4] CMP EAX,dword ptr [RSP + 0x13c] SETZ AL TEST AL,0x1 JNZ 0x00164259 JMP 0x00164295 LAB_00164259: MOV RAX,qword ptr [RSP + 0x140] MOV RCX,qword ptr [RAX + 0x20] MOV RAX,qword ptr [RSP + 0x118] SUB RAX,0x1 SHL RAX,0x4 ADD RCX,RAX MOV RAX,qword ptr [RSP + 0x148] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RSP + 0x128] MOV qword ptr [RSP + 0x150],RAX JMP 0x001642ce LAB_00164295: MOV RAX,qword ptr [RSP + 0x128] MOV EAX,dword ptr [RAX] AND EAX,0x3ffffff MOV EAX,EAX MOV qword ptr [RSP + 0x118],RAX JMP 0x0016420c LAB_001642b3: MOV RAX,qword ptr [RSP + 0x148] MOV qword ptr [RAX],0x0 MOV qword ptr [RSP + 0x150],0x0 LAB_001642ce: MOV RAX,qword ptr [RSP + 0x150] MOV qword ptr [RSP + 0x90],RAX CMP qword ptr [RSP + 0x90],0x0 JNZ 0x001643ec MOV RDI,qword ptr [RSP + 0xa8] MOV ESI,0x78 MOV EDX,0x4 CALL 0x00127ae0 MOV qword ptr [RSP + 0x50],RAX MOV qword ptr [RSP + 0x58],RDX MOV RAX,qword ptr [RSP + 0x50] MOV qword ptr [RSP + 0x78],RAX MOV RAX,qword ptr [RSP + 0x58] MOV qword ptr [RSP + 0x80],RAX MOV RDI,qword ptr [RSP + 0x78] MOV RSI,qword ptr [RSP + 0x80] CALL 0x00122a00 CMP EAX,0x0 JZ 0x0016434c MOV dword ptr [RSP + 0xd4],0xffffffff JMP 0x001646cb LAB_0016434c: MOV RDI,qword ptr [RSP + 0xa8] MOV RSI,qword ptr [RSP + 0xa0] MOV EDX,0xd2 MOV ECX,0x7 CALL 0x0015ca80 MOV qword ptr [RSP + 0x88],RAX CMP qword ptr [RSP + 0x88],0x0 JNZ 0x001643a8 MOV RDI,qword ptr [RSP + 0xa8] MOV RSI,qword ptr [RSP + 0x78] MOV RDX,qword ptr [RSP + 0x80] CALL 0x001229d0 MOV dword ptr [RSP + 0xd4],0xffffffff JMP 0x001646cb LAB_001643a8: MOV RAX,qword ptr [RSP + 0x88] MOV qword ptr [RSP + 0x8],RAX MOV RDI,qword ptr [RSP + 0x78] MOV RSI,qword ptr [RSP + 0x80] CALL 0x00120410 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x40],RCX MOV qword ptr [RSP + 0x48],RDX MOV RCX,qword ptr [RSP + 0x40] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RSP + 0x48] MOV qword ptr [RAX + 0x8],RCX JMP 0x00164421 LAB_001643ec: MOV RAX,qword ptr [RSP + 0x88] MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RAX + 0x8] CALL 0x00120410 MOV qword ptr [RSP + 0x30],RAX MOV qword ptr [RSP + 0x38],RDX MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x78],RAX MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x80],RAX LAB_00164421: MOV RDI,qword ptr [RSP + 0xa8] MOV RSI,qword ptr [RSP + 0x78] MOV RDX,qword ptr [RSP + 0x80] CALL 0x00130160 MOV dword ptr [RSP + 0x74],EAX MOV RDI,qword ptr [RSP + 0xc0] MOV RSI,qword ptr [RSP + 0xc8] CALL 0x00129cb0 CMP EAX,0x0 JZ 0x001646af MOV RAX,qword ptr [RSP + 0xc0] MOV qword ptr [RSP + 0x98],RAX MOV RCX,qword ptr [RSP + 0x98] MOV EAX,dword ptr [RSP + 0x74] LEA RDX,[RSP + 0x88] MOV qword ptr [RSP + 0x108],RDX MOV qword ptr [RSP + 0x100],RCX MOV dword ptr [RSP + 0xfc],EAX MOV RAX,qword ptr [RSP + 0x100] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RSP + 0xf0],RAX MOV EAX,dword ptr [RSP + 0xfc] MOV RCX,qword ptr [RSP + 0xf0] MOV ECX,dword ptr [RCX + 0x20] AND RAX,RCX MOV qword ptr [RSP + 0xd8],RAX MOV RDI,qword ptr [RSP + 0xf0] CALL 0x0015c5f0 XOR ECX,ECX SUB RCX,qword ptr [RSP + 0xd8] SUB RCX,0x1 MOV EAX,dword ptr [RAX + RCX*0x4] MOV qword ptr [RSP + 0xd8],RAX MOV RDI,qword ptr [RSP + 0xf0] CALL 0x0012afc0 MOV qword ptr [RSP + 0xe0],RAX LAB_00164504: CMP qword ptr [RSP + 0xd8],0x0 JZ 0x001645ab MOV RAX,qword ptr [RSP + 0xe0] MOV RCX,qword ptr [RSP + 0xd8] SUB RCX,0x1 SHL RCX,0x3 ADD RAX,RCX MOV qword ptr [RSP + 0xe8],RAX MOV RAX,qword ptr [RSP + 0xe8] MOV EAX,dword ptr [RAX + 0x4] CMP EAX,dword ptr [RSP + 0xfc] SETZ AL TEST AL,0x1 JNZ 0x00164551 JMP 0x0016458d LAB_00164551: MOV RAX,qword ptr [RSP + 0x100] MOV RCX,qword ptr [RAX + 0x20] MOV RAX,qword ptr [RSP + 0xd8] SUB RAX,0x1 SHL RAX,0x4 ADD RCX,RAX MOV RAX,qword ptr [RSP + 0x108] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RSP + 0xe8] MOV qword ptr [RSP + 0x110],RAX JMP 0x001645c6 LAB_0016458d: MOV RAX,qword ptr [RSP + 0xe8] MOV EAX,dword ptr [RAX] AND EAX,0x3ffffff MOV EAX,EAX MOV qword ptr [RSP + 0xd8],RAX JMP 0x00164504 LAB_001645ab: MOV RAX,qword ptr [RSP + 0x108] MOV qword ptr [RAX],0x0 MOV qword ptr [RSP + 0x110],0x0 LAB_001645c6: MOV RAX,qword ptr [RSP + 0x110] MOV qword ptr [RSP + 0x90],RAX CMP qword ptr [RSP + 0x90],0x0 SETNZ AL XOR AL,0xff XOR AL,0xff AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x00164634 MOV RDI,qword ptr [RSP + 0xa8] MOV ESI,dword ptr [RSP + 0x74] CALL 0x00127d80 MOV RDI,qword ptr [RSP + 0xa8] LEA RSI,[0x20ccd7] MOV AL,0x0 CALL 0x0012c040 MOV qword ptr [RSP + 0x20],RAX MOV qword ptr [RSP + 0x28],RDX MOV dword ptr [RSP + 0xd4],0xffffffff JMP 0x001646cb LAB_00164634: MOV RDI,qword ptr [RSP + 0xa8] MOV RSI,qword ptr [RSP + 0x98] MOV EDX,dword ptr [RSP + 0x74] MOV ECX,0x7 CALL 0x0015ca80 MOV qword ptr [RSP + 0x88],RAX MOV RDI,qword ptr [RSP + 0xa8] MOV ESI,dword ptr [RSP + 0x74] CALL 0x00127d80 CMP qword ptr [RSP + 0x88],0x0 JNZ 0x00164683 MOV dword ptr [RSP + 0xd4],0xffffffff JMP 0x001646cb LAB_00164683: MOV RAX,qword ptr [RSP + 0x88] MOV dword ptr [RSP + 0x10],0x0 MOV qword ptr [RSP + 0x18],0x3 MOV RCX,qword ptr [RSP + 0x10] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RSP + 0x18] MOV qword ptr [RAX + 0x8],RCX JMP 0x001646c0 LAB_001646af: MOV RDI,qword ptr [RSP + 0xa8] MOV ESI,dword ptr [RSP + 0x74] CALL 0x00127d80 LAB_001646c0: MOV dword ptr [RSP + 0xd4],0x0 LAB_001646cb: MOV EAX,dword ptr [RSP + 0xd4] ADD RSP,0x158 RET
int4 JS_AddBrand(int8 param_1,long param_2,int8 param_3,long param_4,int8 param_5) { int iVar1; uint uVar2; long lVar3; int8 uVar4; int1 (*pauVar5) [16]; int8 uVar6; int1 auVar7 [16]; int1 auVar8 [16]; uint uStack_144; int8 local_e0; int8 local_d8; int1 (*local_d0) [16]; uint *local_c8; long local_c0; long local_b8; int8 local_b0; long local_a8; int8 local_a0; long local_98; int8 local_90; ulong local_80; long local_78; uint *local_70; long local_68; uint local_5c; long local_58; int1 (**local_50) [16]; uint *local_48; ulong local_40; long local_38; uint *local_30; long local_28; uint local_1c; long local_18; int1 (**local_10) [16]; uint *local_8; local_b0 = param_1; local_a8 = param_4; local_a0 = param_5; local_98 = param_2; local_90 = param_3; if ((int)param_5 != -1) { JS_ThrowTypeErrorNotAnObject(param_1); return 0xffffffff; } local_10 = &local_d0; local_1c = 0xd2; local_28 = *(long *)(param_4 + 0x18); local_40 = (ulong)(*(uint *)(local_28 + 0x20) & 0xd2); local_b8 = param_4; local_18 = param_4; lVar3 = prop_hash_end(local_28); local_40 = (ulong)*(uint *)(lVar3 + (-1 - local_40) * 4); local_38 = get_shape_prop(local_28); while (local_40 != 0) { local_30 = (uint *)(local_38 + (local_40 - 1) * 8); if (local_30[1] == local_1c) { *local_10 = (int1 (*) [16])(*(long *)(local_18 + 0x20) + (local_40 - 1) * 0x10); local_8 = local_30; goto LAB_001642ce; } local_40 = (ulong)(*local_30 & 0x3ffffff); } *local_10 = (int1 (*) [16])0x0; local_8 = (uint *)0x0; LAB_001642ce: local_c8 = local_8; if (local_8 == (uint *)0x0) { auVar7 = JS_NewSymbolFromAtom(local_b0,0x78,4); uVar6 = auVar7._8_8_; uVar4 = auVar7._0_8_; iVar1 = JS_IsException(uVar4,uVar6); if (iVar1 != 0) { return 0xffffffff; } pauVar5 = (int1 (*) [16])add_property(local_b0,local_b8,0xd2,7); local_d0 = pauVar5; if (pauVar5 == (int1 (*) [16])0x0) { JS_FreeValue(local_b0,uVar4,uVar6); return 0xffffffff; } auVar8 = js_dup(uVar4,uVar6); *pauVar5 = auVar8; } else { auVar7 = js_dup(*(int8 *)*local_d0,*(int8 *)(*local_d0 + 8)); } local_d8 = auVar7._8_8_; local_e0 = auVar7._0_8_; uVar2 = js_symbol_to_atom(local_b0,local_e0,local_d8); iVar1 = JS_IsObject(local_98,local_90); if (iVar1 == 0) { JS_FreeAtom(local_b0,uVar2); } else { local_c0 = local_98; local_50 = &local_d0; local_58 = local_98; local_68 = *(long *)(local_98 + 0x18); local_80 = (ulong)(uVar2 & *(uint *)(local_68 + 0x20)); local_5c = uVar2; lVar3 = prop_hash_end(local_68); local_80 = (ulong)*(uint *)(lVar3 + (-1 - local_80) * 4); local_78 = get_shape_prop(local_68); while (local_80 != 0) { local_70 = (uint *)(local_78 + (local_80 - 1) * 8); if (local_70[1] == local_5c) { *local_50 = (int1 (*) [16])(*(long *)(local_58 + 0x20) + (local_80 - 1) * 0x10); local_48 = local_70; goto LAB_001645c6; } local_80 = (ulong)(*local_70 & 0x3ffffff); } *local_50 = (int1 (*) [16])0x0; local_48 = (uint *)0x0; LAB_001645c6: local_c8 = local_48; if (local_48 != (uint *)0x0) { JS_FreeAtom(local_b0,uVar2); JS_ThrowTypeError(local_b0,"private method is already present"); return 0xffffffff; } local_d0 = (int1 (*) [16])add_property(local_b0,local_c0,uVar2,7); JS_FreeAtom(local_b0,uVar2); if (local_d0 == (int1 (*) [16])0x0) { return 0xffffffff; } *(ulong *)*local_d0 = (ulong)uStack_144 << 0x20; *(int8 *)(*local_d0 + 8) = 3; } return 0; }
53,149
testing::internal::Random::Generate(unsigned int)
seiftnesse[P]memoryallocator/build_O1/_deps/googletest-src/googletest/src/gtest.cc
uint32_t Random::Generate(uint32_t range) { // These constants are the same as are used in glibc's rand(3). // Use wider types than necessary to prevent unsigned overflow diagnostics. state_ = static_cast<uint32_t>(1103515245ULL * state_ + 12345U) % kMaxRange; GTEST_CHECK_(range > 0) << "Cannot generate a number in the range [0, 0)."; GTEST_CHECK_(range <= kMaxRange) << "Generation of a number in [0, " << range << ") was requested, " << "but this can only generate numbers in [0, " << kMaxRange << ")."; // Converting via modulus introduces a bit of downward bias, but // it's simple, and a linear congruential generator isn't too good // to begin with. return state_ % range; }
O1
cpp
testing::internal::Random::Generate(unsigned int): pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movl %esi, %ebx movq %rdi, %r14 imull $0x41c64e6d, (%rdi), %eax # imm = 0x41C64E6D addl $0x3039, %eax # imm = 0x3039 andl $0x7fffffff, %eax # imm = 0x7FFFFFFF movl %eax, (%rdi) testl %esi, %esi jne 0x1d113 leaq 0x25936(%rip), %rdx # 0x429fb leaq 0xc(%rsp), %rdi movl $0x3, %esi movl $0x17f, %ecx # imm = 0x17F callq 0x1b13e movq 0x3cf08(%rip), %rdi # 0x59fe8 leaq 0x2598f(%rip), %rsi # 0x42a76 movl $0x1c, %edx callq 0x95a0 movq 0x3cef0(%rip), %rdi # 0x59fe8 leaq 0x25994(%rip), %rsi # 0x42a93 movl $0x2d, %edx callq 0x95a0 leaq 0xc(%rsp), %rdi callq 0x1b280 cmpl $0x80000001, %ebx # imm = 0x80000001 jb 0x1d1ce leaq 0x258d5(%rip), %rdx # 0x429fb leaq 0x8(%rsp), %rdi movl $0x3, %esi movl $0x180, %ecx # imm = 0x180 callq 0x1b13e movq 0x3cea7(%rip), %rdi # 0x59fe8 leaq 0x25979(%rip), %rsi # 0x42ac1 movl $0x25, %edx callq 0x95a0 movq 0x3ce8f(%rip), %rdi # 0x59fe8 leaq 0x25987(%rip), %rsi # 0x42ae7 movl $0x1e, %edx callq 0x95a0 movl %ebx, %esi movq 0x3ce75(%rip), %rdi # 0x59fe8 callq 0x9300 movq %rax, %r15 leaq 0x25984(%rip), %rsi # 0x42b06 movl $0x11, %edx movq %rax, %rdi callq 0x95a0 leaq 0x25982(%rip), %rsi # 0x42b18 movl $0x2a, %edx movq %r15, %rdi callq 0x95a0 movl $0x80000000, %esi # imm = 0x80000000 movq %r15, %rdi callq 0x9300 leaq 0x25907(%rip), %rsi # 0x42abe movl $0x2, %edx movq %rax, %rdi callq 0x95a0 leaq 0x8(%rsp), %rdi callq 0x1b280 movl (%r14), %eax xorl %edx, %edx divl %ebx movl %edx, %eax addq $0x10, %rsp popq %rbx popq %r14 popq %r15 retq movq %rax, %rbx leaq 0xc(%rsp), %rdi jmp 0x1d1f3 movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x1b280 movq %rbx, %rdi callq 0x99a0
_ZN7testing8internal6Random8GenerateEj: push r15 push r14 push rbx sub rsp, 10h mov ebx, esi mov r14, rdi imul eax, [rdi], 41C64E6Dh add eax, 3039h and eax, 7FFFFFFFh mov [rdi], eax test esi, esi jnz short loc_1D113 lea rdx, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"... lea rdi, [rsp+28h+var_1C] mov esi, 3 mov ecx, 17Fh call _ZN7testing8internal8GTestLogC2ENS0_16GTestLogSeverityEPKci; testing::internal::GTestLog::GTestLog(testing::internal::GTestLogSeverity,char const*,int) mov rdi, cs:_ZSt4cerr_ptr lea rsi, aConditionRange; "Condition range > 0 failed. " mov edx, 1Ch call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rdi, cs:_ZSt4cerr_ptr lea rsi, aCannotGenerate; "Cannot generate a number in the range ["... mov edx, 2Dh ; '-' call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rdi, [rsp+28h+var_1C]; this call _ZN7testing8internal8GTestLogD2Ev; testing::internal::GTestLog::~GTestLog() loc_1D113: cmp ebx, 80000001h jb loc_1D1CE lea rdx, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"... lea rdi, [rsp+28h+var_20] mov esi, 3 mov ecx, 180h call _ZN7testing8internal8GTestLogC2ENS0_16GTestLogSeverityEPKci; testing::internal::GTestLog::GTestLog(testing::internal::GTestLogSeverity,char const*,int) mov rdi, cs:_ZSt4cerr_ptr lea rsi, aConditionRange_0; "Condition range <= kMaxRange failed. " mov edx, 25h ; '%' call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rdi, cs:_ZSt4cerr_ptr lea rsi, aGenerationOfAN; "Generation of a number in [0, " mov edx, 1Eh call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov esi, ebx mov rdi, cs:_ZSt4cerr_ptr call __ZNSo9_M_insertImEERSoT_; std::ostream::_M_insert<ulong>(ulong) mov r15, rax lea rsi, aWasRequested; ") was requested, " mov edx, 11h mov rdi, rax call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rsi, aButThisCanOnly; "but this can only generate numbers in ["... mov edx, 2Ah ; '*' mov rdi, r15 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov esi, 80000000h mov rdi, r15 call __ZNSo9_M_insertImEERSoT_; std::ostream::_M_insert<ulong>(ulong) lea rsi, aCannotGenerate+2Bh; ")." mov edx, 2 mov rdi, rax call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rdi, [rsp+28h+var_20]; this call _ZN7testing8internal8GTestLogD2Ev; testing::internal::GTestLog::~GTestLog() loc_1D1CE: mov eax, [r14] xor edx, edx div ebx mov eax, edx add rsp, 10h pop rbx pop r14 pop r15 retn mov rbx, rax lea rdi, [rsp+arg_4] jmp short loc_1D1F3 mov rbx, rax lea rdi, [rsp+arg_0]; this loc_1D1F3: call _ZN7testing8internal8GTestLogD2Ev; testing::internal::GTestLog::~GTestLog() mov rdi, rbx call __Unwind_Resume
long long testing::internal::Random::Generate(testing::internal::Random *this, unsigned int a2) { long long v2; // r15 long long v3; // rax int v5; // [rsp+8h] [rbp-20h] BYREF _DWORD v6[7]; // [rsp+Ch] [rbp-1Ch] BYREF *(_DWORD *)this = (1103515245 * *(_DWORD *)this + 12345) & 0x7FFFFFFF; if ( !a2 ) { testing::internal::GTestLog::GTestLog( v6, 3, "/workspace/llm4binary/github/2025_star3/seiftnesse[P]memoryallocator/build_O1/_deps/googletest-src/googletest/src/gtest.cc", 383); std::__ostream_insert<char,std::char_traits<char>>(&std::cerr, "Condition range > 0 failed. ", 28LL); std::__ostream_insert<char,std::char_traits<char>>( &std::cerr, "Cannot generate a number in the range [0, 0).", 45LL); testing::internal::GTestLog::~GTestLog((testing::internal::GTestLog *)v6); } if ( a2 >= 0x80000001 ) { testing::internal::GTestLog::GTestLog( &v5, 3, "/workspace/llm4binary/github/2025_star3/seiftnesse[P]memoryallocator/build_O1/_deps/googletest-src/googletest/src/gtest.cc", 384); std::__ostream_insert<char,std::char_traits<char>>(&std::cerr, "Condition range <= kMaxRange failed. ", 37LL); std::__ostream_insert<char,std::char_traits<char>>(&std::cerr, "Generation of a number in [0, ", 30LL); v2 = std::ostream::_M_insert<unsigned long>(&std::cerr, a2); std::__ostream_insert<char,std::char_traits<char>>(v2, ") was requested, ", 17LL); std::__ostream_insert<char,std::char_traits<char>>(v2, "but this can only generate numbers in [0, ", 42LL); v3 = std::ostream::_M_insert<unsigned long>(v2, 0x80000000LL); std::__ostream_insert<char,std::char_traits<char>>(v3, ").", 2LL); testing::internal::GTestLog::~GTestLog((testing::internal::GTestLog *)&v5); } return *(_DWORD *)this % a2; }
Generate: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x10 MOV EBX,ESI MOV R14,RDI IMUL EAX,dword ptr [RDI],0x41c64e6d ADD EAX,0x3039 AND EAX,0x7fffffff MOV dword ptr [RDI],EAX TEST ESI,ESI JNZ 0x0011d113 LEA RDX,[0x1429fb] LEA RDI,[RSP + 0xc] MOV ESI,0x3 MOV ECX,0x17f CALL 0x0011b13e LAB_0011d0d9: MOV RDI,qword ptr [0x00159fe8] LEA RSI,[0x142a76] MOV EDX,0x1c CALL 0x001095a0 MOV RDI,qword ptr [0x00159fe8] LEA RSI,[0x142a93] MOV EDX,0x2d CALL 0x001095a0 LAB_0011d109: LEA RDI,[RSP + 0xc] CALL 0x0011b280 LAB_0011d113: CMP EBX,0x80000001 JC 0x0011d1ce LEA RDX,[0x1429fb] LEA RDI,[RSP + 0x8] MOV ESI,0x3 MOV ECX,0x180 CALL 0x0011b13e LAB_0011d13a: MOV RDI,qword ptr [0x00159fe8] LEA RSI,[0x142ac1] MOV EDX,0x25 CALL 0x001095a0 MOV RDI,qword ptr [0x00159fe8] LEA RSI,[0x142ae7] MOV EDX,0x1e CALL 0x001095a0 MOV ESI,EBX MOV RDI,qword ptr [0x00159fe8] CALL 0x00109300 MOV R15,RAX LEA RSI,[0x142b06] MOV EDX,0x11 MOV RDI,RAX CALL 0x001095a0 LEA RSI,[0x142b18] MOV EDX,0x2a MOV RDI,R15 CALL 0x001095a0 MOV ESI,0x80000000 MOV RDI,R15 CALL 0x00109300 LEA RSI,[0x142abe] MOV EDX,0x2 MOV RDI,RAX CALL 0x001095a0 LAB_0011d1c4: LEA RDI,[RSP + 0x8] CALL 0x0011b280 LAB_0011d1ce: MOV EAX,dword ptr [R14] XOR EDX,EDX DIV EBX MOV EAX,EDX ADD RSP,0x10 POP RBX POP R14 POP R15 RET
/* testing::internal::Random::Generate(unsigned int) */ ulong __thiscall testing::internal::Random::Generate(Random *this,uint param_1) { ostream *poVar1; GTestLog local_20 [4]; GTestLog local_1c [4]; *(uint *)this = *(int *)this * 0x41c64e6d + 0x3039U & 0x7fffffff; if (param_1 == 0) { GTestLog::GTestLog(local_1c,3, "/workspace/llm4binary/github/2025_star3/seiftnesse[P]memoryallocator/build_O1/_deps/googletest-src/googletest/src/gtest.cc" ,0x17f); /* try { // try from 0011d0d9 to 0011d108 has its CatchHandler @ 0011d1e1 */ std::__ostream_insert<char,std::char_traits<char>> ((ostream *)PTR_cerr_00159fe8,"Condition range > 0 failed. ",0x1c); std::__ostream_insert<char,std::char_traits<char>> ((ostream *)PTR_cerr_00159fe8,"Cannot generate a number in the range [0, 0).",0x2d); GTestLog::~GTestLog(local_1c); } if (0x80000000 < param_1) { GTestLog::GTestLog(local_20,3, "/workspace/llm4binary/github/2025_star3/seiftnesse[P]memoryallocator/build_O1/_deps/googletest-src/googletest/src/gtest.cc" ,0x180); /* try { // try from 0011d13a to 0011d1c3 has its CatchHandler @ 0011d1eb */ std::__ostream_insert<char,std::char_traits<char>> ((ostream *)PTR_cerr_00159fe8,"Condition range <= kMaxRange failed. ",0x25); std::__ostream_insert<char,std::char_traits<char>> ((ostream *)PTR_cerr_00159fe8,"Generation of a number in [0, ",0x1e); poVar1 = std::ostream::_M_insert<unsigned_long>((ulong)PTR_cerr_00159fe8); std::__ostream_insert<char,std::char_traits<char>>(poVar1,") was requested, ",0x11); std::__ostream_insert<char,std::char_traits<char>> (poVar1,"but this can only generate numbers in [0, ",0x2a); poVar1 = std::ostream::_M_insert<unsigned_long>((ulong)poVar1); std::__ostream_insert<char,std::char_traits<char>>(poVar1,").",2); GTestLog::~GTestLog(local_20); } return (ulong)*(uint *)this % (ulong)param_1; }
53,150
my_coll_lexem_num_to_str
eloqsql/strings/ctype-uca.c
static const char * my_coll_lexem_num_to_str(my_coll_lexem_num term) { switch (term) { case MY_COLL_LEXEM_EOF: return "EOF"; case MY_COLL_LEXEM_SHIFT: return "Shift"; case MY_COLL_LEXEM_RESET: return "&"; case MY_COLL_LEXEM_CHAR: return "Character"; case MY_COLL_LEXEM_OPTION: return "Bracket option"; case MY_COLL_LEXEM_EXTEND: return "/"; case MY_COLL_LEXEM_CONTEXT:return "|"; case MY_COLL_LEXEM_ERROR: return "ERROR"; } return NULL; }
O0
c
my_coll_lexem_num_to_str: pushq %rbp movq %rsp, %rbp movl %edi, -0xc(%rbp) movl -0xc(%rbp), %eax movq %rax, -0x18(%rbp) subq $0x9, %rax ja 0x51f70 movq -0x18(%rbp), %rax leaq 0xf2025(%rip), %rcx # 0x143f24 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax leaq 0x2be16(%rip), %rax # 0x7dd25 movq %rax, -0x8(%rbp) jmp 0x51f78 leaq 0x2be0d(%rip), %rax # 0x7dd29 movq %rax, -0x8(%rbp) jmp 0x51f78 leaq 0x2c18a(%rip), %rax # 0x7e0b3 movq %rax, -0x8(%rbp) jmp 0x51f78 leaq 0x2bdf9(%rip), %rax # 0x7dd2f movq %rax, -0x8(%rbp) jmp 0x51f78 leaq 0x2bdf6(%rip), %rax # 0x7dd39 movq %rax, -0x8(%rbp) jmp 0x51f78 leaq 0x2a4c5(%rip), %rax # 0x7c415 movq %rax, -0x8(%rbp) jmp 0x51f78 leaq 0x2bdeb(%rip), %rax # 0x7dd48 movq %rax, -0x8(%rbp) jmp 0x51f78 leaq 0x2bde0(%rip), %rax # 0x7dd4a movq %rax, -0x8(%rbp) jmp 0x51f78 movq $0x0, -0x8(%rbp) movq -0x8(%rbp), %rax popq %rbp retq nop
my_coll_lexem_num_to_str: push rbp mov rbp, rsp mov [rbp+var_C], edi mov eax, [rbp+var_C] mov [rbp+var_18], rax sub rax, 9; switch 10 cases ja short def_51F06; jumptable 0000000000051F06 default case, cases 2,3 mov rax, [rbp+var_18] lea rcx, jpt_51F06 movsxd rax, ds:(jpt_51F06 - 143F24h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_51F08: lea rax, aEof; jumptable 0000000000051F06 case 0 mov [rbp+var_8], rax jmp short loc_51F78 loc_51F15: lea rax, aShift; jumptable 0000000000051F06 case 1 mov [rbp+var_8], rax jmp short loc_51F78 loc_51F22: lea rax, asc_7E0B2+1; jumptable 0000000000051F06 case 4 mov [rbp+var_8], rax jmp short loc_51F78 loc_51F2F: lea rax, aCharacter; jumptable 0000000000051F06 case 5 mov [rbp+var_8], rax jmp short loc_51F78 loc_51F3C: lea rax, aBracketOption; jumptable 0000000000051F06 case 7 mov [rbp+var_8], rax jmp short loc_51F78 loc_51F49: lea rax, unk_7C415; jumptable 0000000000051F06 case 8 mov [rbp+var_8], rax jmp short loc_51F78 loc_51F56: lea rax, asc_7DD48; jumptable 0000000000051F06 case 9 mov [rbp+var_8], rax jmp short loc_51F78 loc_51F63: lea rax, aError; jumptable 0000000000051F06 case 6 mov [rbp+var_8], rax jmp short loc_51F78 def_51F06: mov [rbp+var_8], 0; jumptable 0000000000051F06 default case, cases 2,3 loc_51F78: mov rax, [rbp+var_8] pop rbp retn
char * my_coll_lexem_num_to_str(int a1) { char *v2; // [rsp+10h] [rbp-8h] switch ( a1 ) { case 0: v2 = "EOF"; break; case 1: v2 = "Shift"; break; case 4: v2 = "&"; break; case 5: v2 = "Character"; break; case 6: v2 = "ERROR"; break; case 7: v2 = "Bracket option"; break; case 8: v2 = (char *)&unk_7C415; break; case 9: v2 = "|"; break; default: v2 = 0LL; break; } return v2; }
my_coll_lexem_num_to_str: PUSH RBP MOV RBP,RSP MOV dword ptr [RBP + -0xc],EDI MOV EAX,dword ptr [RBP + -0xc] MOV qword ptr [RBP + -0x18],RAX SUB RAX,0x9 JA 0x00151f70 MOV RAX,qword ptr [RBP + -0x18] LEA RCX,[0x243f24] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_0: LEA RAX,[0x17dd25] MOV qword ptr [RBP + -0x8],RAX JMP 0x00151f78 caseD_1: LEA RAX,[0x17dd29] MOV qword ptr [RBP + -0x8],RAX JMP 0x00151f78 caseD_4: LEA RAX,[0x17e0b3] MOV qword ptr [RBP + -0x8],RAX JMP 0x00151f78 caseD_5: LEA RAX,[0x17dd2f] MOV qword ptr [RBP + -0x8],RAX JMP 0x00151f78 caseD_7: LEA RAX,[0x17dd39] MOV qword ptr [RBP + -0x8],RAX JMP 0x00151f78 caseD_8: LEA RAX,[0x17c415] MOV qword ptr [RBP + -0x8],RAX JMP 0x00151f78 caseD_9: LEA RAX,[0x17dd48] MOV qword ptr [RBP + -0x8],RAX JMP 0x00151f78 caseD_6: LEA RAX,[0x17dd4a] MOV qword ptr [RBP + -0x8],RAX JMP 0x00151f78 caseD_2: MOV qword ptr [RBP + -0x8],0x0 LAB_00151f78: MOV RAX,qword ptr [RBP + -0x8] POP RBP RET
char * my_coll_lexem_num_to_str(int4 param_1) { char *local_10; switch(param_1) { case 0: local_10 = "EOF"; break; case 1: local_10 = "Shift"; break; default: local_10 = (char *)0x0; break; case 4: local_10 = "&"; break; case 5: local_10 = "Character"; break; case 6: local_10 = "ERROR"; break; case 7: local_10 = "Bracket option"; break; case 8: local_10 = "/"; break; case 9: local_10 = "|"; } return local_10; }
53,151
my_strtoull
eloqsql/libmariadb/libmariadb/ma_stmt_codec.c
static unsigned long long my_strtoull(const char *str, size_t len, const char **end, int *err) { unsigned long long val = 0; const char *p = str; const char *end_str = p + len; for (; p < end_str; p++) { if (*p < '0' || *p > '9') break; if (val > ULONGLONG_MAX /10 || val*10 > ULONGLONG_MAX - (*p - '0')) { *err = ERANGE; break; } val = val * 10 + *p -'0'; } if (p == str) /* Did not parse anything.*/ *err = ERANGE; *end = p; return val; }
O3
c
my_strtoull: pushq %rbp movq %rsp, %rbp pushq %rbx testq %rsi, %rsi jle 0x271e1 addq %rdi, %rsi xorl %r8d, %r8d movabsq $0x1999999999999999, %r9 # imm = 0x1999999999999999 xorl %eax, %eax movsbq (%rdi,%r8), %r10 leal -0x3a(%r10), %r11d cmpb $-0xa, %r11b jb 0x271eb cmpq %r9, %rax ja 0x271e5 leaq (%rax,%rax), %r11 leaq (%r11,%r11,4), %r11 movl $0x2f, %ebx subq %r10, %rbx cmpq %rbx, %r11 ja 0x271e5 leaq (%r11,%r10), %rax addq $-0x30, %rax leaq (%rdi,%r8), %r10 incq %r10 incq %r8 cmpq %rsi, %r10 jb 0x2719c addq %r8, %rdi jmp 0x271f9 xorl %eax, %eax jmp 0x271f3 movl $0x22, (%rcx) addq %r8, %rdi testq %r8, %r8 jne 0x271f9 movl $0x22, (%rcx) movq %rdi, (%rdx) popq %rbx popq %rbp retq
my_strtoull: push rbp mov rbp, rsp push rbx test rsi, rsi jle short loc_271E1 add rsi, rdi xor r8d, r8d mov r9, 1999999999999999h xor eax, eax loc_2719C: movsx r10, byte ptr [rdi+r8] lea r11d, [r10-3Ah] cmp r11b, 0F6h jb short loc_271EB cmp rax, r9 ja short loc_271E5 lea r11, [rax+rax] lea r11, [r11+r11*4] mov ebx, 2Fh ; '/' sub rbx, r10 cmp r11, rbx ja short loc_271E5 lea rax, [r11+r10] add rax, 0FFFFFFFFFFFFFFD0h lea r10, [rdi+r8] inc r10 inc r8 cmp r10, rsi jb short loc_2719C add rdi, r8 jmp short loc_271F9 loc_271E1: xor eax, eax jmp short loc_271F3 loc_271E5: mov dword ptr [rcx], 22h ; '"' loc_271EB: add rdi, r8 test r8, r8 jnz short loc_271F9 loc_271F3: mov dword ptr [rcx], 22h ; '"' loc_271F9: mov [rdx], rdi pop rbx pop rbp retn
unsigned long long my_strtoull(long long a1, long long a2, _QWORD *a3, _DWORD *a4) { unsigned long long v4; // rsi long long v5; // r8 unsigned long long result; // rax long long v7; // r10 unsigned long long v8; // r10 if ( a2 <= 0 ) { result = 0LL; LABEL_11: *a4 = 34; goto LABEL_12; } v4 = a1 + a2; v5 = 0LL; result = 0LL; while ( 1 ) { v7 = *(char *)(a1 + v5); if ( (unsigned __int8)(v7 - 58) < 0xF6u ) break; if ( result > 0x1999999999999999LL || 10 * result > 47 - v7 ) { *a4 = 34; break; } result = 10 * result + v7 - 48; v8 = a1 + v5++ + 1; if ( v8 >= v4 ) { a1 += v5; goto LABEL_12; } } a1 += v5; if ( !v5 ) goto LABEL_11; LABEL_12: *a3 = a1; return result; }
my_strtoull: PUSH RBP MOV RBP,RSP PUSH RBX TEST RSI,RSI JLE 0x001271e1 ADD RSI,RDI XOR R8D,R8D MOV R9,0x1999999999999999 XOR EAX,EAX LAB_0012719c: MOVSX R10,byte ptr [RDI + R8*0x1] LEA R11D,[R10 + -0x3a] CMP R11B,0xf6 JC 0x001271eb CMP RAX,R9 JA 0x001271e5 LEA R11,[RAX + RAX*0x1] LEA R11,[R11 + R11*0x4] MOV EBX,0x2f SUB RBX,R10 CMP R11,RBX JA 0x001271e5 LEA RAX,[R11 + R10*0x1] ADD RAX,-0x30 LEA R10,[RDI + R8*0x1] INC R10 INC R8 CMP R10,RSI JC 0x0012719c ADD RDI,R8 JMP 0x001271f9 LAB_001271e1: XOR EAX,EAX JMP 0x001271f3 LAB_001271e5: MOV dword ptr [RCX],0x22 LAB_001271eb: ADD RDI,R8 TEST R8,R8 JNZ 0x001271f9 LAB_001271f3: MOV dword ptr [RCX],0x22 LAB_001271f9: MOV qword ptr [RDX],RDI POP RBX POP RBP RET
ulong my_strtoull(long param_1,long param_2,long *param_3,int4 *param_4) { long lVar1; char cVar2; ulong uVar3; long lVar4; if (param_2 < 1) { uVar3 = 0; LAB_001271f3: *param_4 = 0x22; } else { lVar4 = 0; uVar3 = 0; do { cVar2 = *(char *)(param_1 + lVar4); if ((byte)(cVar2 - 0x3aU) < 0xf6) { LAB_001271eb: param_1 = param_1 + lVar4; if (lVar4 == 0) goto LAB_001271f3; goto LAB_001271f9; } if ((0x1999999999999999 < uVar3) || (0x2fU - (long)cVar2 < uVar3 * 10)) { *param_4 = 0x22; goto LAB_001271eb; } uVar3 = (uVar3 * 10 + (long)cVar2) - 0x30; lVar1 = param_1 + lVar4; lVar4 = lVar4 + 1; } while (lVar1 + 1U < (ulong)(param_2 + param_1)); param_1 = param_1 + lVar4; } LAB_001271f9: *param_3 = param_1; return uVar3; }
53,152
insert_dynamic
eloqsql/mysys/array.c
my_bool insert_dynamic(DYNAMIC_ARRAY *array, const void * element) { void *buffer; if (array->elements == array->max_element) { /* Call only when necessary */ if (!(buffer=alloc_dynamic(array))) return TRUE; } else { buffer=array->buffer+(array->elements * array->size_of_element); array->elements++; } memcpy(buffer,element,(size_t) array->size_of_element); return FALSE; }
O3
c
insert_dynamic: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rsi, %rbx movq %rdi, %r14 movl 0x8(%rdi), %ecx cmpl 0xc(%rdi), %ecx jne 0x32c91 movq %r14, %rdi callq 0x32cb8 testq %rax, %rax je 0x32cb4 movq %rax, %rdi movl 0x14(%r14), %eax jmp 0x32ca3 movl 0x14(%r14), %eax movl %eax, %edi imull %ecx, %edi addq (%r14), %rdi incl %ecx movl %ecx, 0x8(%r14) movl %eax, %edx movq %rbx, %rsi callq 0x24290 xorl %eax, %eax popq %rbx popq %r14 popq %rbp retq movb $0x1, %al jmp 0x32caf
insert_dynamic: push rbp mov rbp, rsp push r14 push rbx mov rbx, rsi mov r14, rdi mov ecx, [rdi+8] cmp ecx, [rdi+0Ch] jnz short loc_32C91 mov rdi, r14 call alloc_dynamic test rax, rax jz short loc_32CB4 mov rdi, rax mov eax, [r14+14h] jmp short loc_32CA3 loc_32C91: mov eax, [r14+14h] mov edi, eax imul edi, ecx add rdi, [r14] inc ecx mov [r14+8], ecx loc_32CA3: mov edx, eax mov rsi, rbx call _memcpy xor eax, eax loc_32CAF: pop rbx pop r14 pop rbp retn loc_32CB4: mov al, 1 jmp short loc_32CAF
long long insert_dynamic(long long a1, long long a2) { int v3; // ecx long long v4; // rax long long v5; // rdi v3 = *(_DWORD *)(a1 + 8); if ( v3 != *(_DWORD *)(a1 + 12) ) { v5 = *(_QWORD *)a1 + (unsigned int)(v3 * *(_DWORD *)(a1 + 20)); *(_DWORD *)(a1 + 8) = v3 + 1; goto LABEL_5; } v4 = alloc_dynamic(a1); if ( v4 ) { v5 = v4; LABEL_5: memcpy(v5, a2); return 0LL; } return 1LL; }
insert_dynamic: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV RBX,RSI MOV R14,RDI MOV ECX,dword ptr [RDI + 0x8] CMP ECX,dword ptr [RDI + 0xc] JNZ 0x00132c91 MOV RDI,R14 CALL 0x00132cb8 TEST RAX,RAX JZ 0x00132cb4 MOV RDI,RAX MOV EAX,dword ptr [R14 + 0x14] JMP 0x00132ca3 LAB_00132c91: MOV EAX,dword ptr [R14 + 0x14] MOV EDI,EAX IMUL EDI,ECX ADD RDI,qword ptr [R14] INC ECX MOV dword ptr [R14 + 0x8],ECX LAB_00132ca3: MOV EDX,EAX MOV RSI,RBX CALL 0x00124290 XOR EAX,EAX LAB_00132caf: POP RBX POP R14 POP RBP RET LAB_00132cb4: MOV AL,0x1 JMP 0x00132caf
int8 insert_dynamic(long *param_1,void *param_2) { int iVar1; uint uVar2; void *__dest; iVar1 = (int)param_1[1]; if (iVar1 == *(int *)((long)param_1 + 0xc)) { __dest = (void *)alloc_dynamic(param_1); if (__dest == (void *)0x0) { return 1; } uVar2 = *(uint *)((long)param_1 + 0x14); } else { uVar2 = *(uint *)((long)param_1 + 0x14); __dest = (void *)((ulong)(uVar2 * iVar1) + *param_1); *(int *)(param_1 + 1) = iVar1 + 1; } memcpy(__dest,param_2,(ulong)uVar2); return 0; }
53,153
ggml_tallocr_alloc
ngxson[P]ggml-easy/ggml/src/ggml-alloc.c
enum ggml_status ggml_tallocr_alloc(struct ggml_tallocr * talloc, struct ggml_tensor * tensor) { size_t size = ggml_backend_buffer_get_alloc_size(talloc->buffer, tensor); size = GGML_PAD(size, talloc->alignment); if (talloc->offset + size > ggml_backend_buffer_get_size(talloc->buffer)) { GGML_LOG_ERROR("%s: not enough space in the buffer to allocate %s (needed %zu, available %zu)\n", __func__, tensor->name, size, ggml_backend_buffer_get_size(talloc->buffer) - talloc->offset); GGML_ABORT("not enough space in the buffer"); } void * addr = (char *)ggml_backend_buffer_get_base(talloc->buffer) + talloc->offset; talloc->offset += size; assert(((uintptr_t)addr % talloc->alignment) == 0); return ggml_backend_tensor_alloc(talloc->buffer, tensor, addr); }
O0
c
ggml_tallocr_alloc: subq $0x38, %rsp movq %rdi, 0x30(%rsp) movq %rsi, 0x28(%rsp) movq 0x30(%rsp), %rax movq (%rax), %rdi movq 0x28(%rsp), %rsi callq 0x41a00 movq %rax, 0x20(%rsp) movq 0x20(%rsp), %rax movq 0x30(%rsp), %rcx addq 0x10(%rcx), %rax subq $0x1, %rax movq 0x30(%rsp), %rcx movq 0x10(%rcx), %rcx subq $0x1, %rcx xorq $-0x1, %rcx andq %rcx, %rax movq %rax, 0x20(%rsp) movq 0x30(%rsp), %rax movq 0x18(%rax), %rax addq 0x20(%rsp), %rax movq %rax, 0x10(%rsp) movq 0x30(%rsp), %rax movq (%rax), %rdi callq 0x457f0 movq %rax, %rcx movq 0x10(%rsp), %rax cmpq %rcx, %rax jbe 0x5ad9c movq 0x28(%rsp), %rax addq $0x100, %rax # imm = 0x100 movq %rax, (%rsp) movq 0x20(%rsp), %rax movq %rax, 0x8(%rsp) movq 0x30(%rsp), %rax movq (%rax), %rdi callq 0x457f0 movq (%rsp), %rcx movq 0x8(%rsp), %r8 movq %rax, %r9 movq 0x30(%rsp), %rax subq 0x18(%rax), %r9 movl $0x4, %edi leaq 0x5c570(%rip), %rsi # 0xb72e4 leaq 0x5c5b8(%rip), %rdx # 0xb7333 movb $0x0, %al callq 0x41c40 leaq 0x5c5bd(%rip), %rdi # 0xb7346 movl $0x63, %esi leaq 0x5c602(%rip), %rdx # 0xb7397 movb $0x0, %al callq 0x46780 movq 0x30(%rsp), %rax movq (%rax), %rdi callq 0x44ca0 movq 0x30(%rsp), %rcx addq 0x18(%rcx), %rax movq %rax, 0x18(%rsp) movq 0x20(%rsp), %rcx movq 0x30(%rsp), %rax addq 0x18(%rax), %rcx movq %rcx, 0x18(%rax) movq 0x30(%rsp), %rax movq (%rax), %rdi movq 0x28(%rsp), %rsi movq 0x18(%rsp), %rdx callq 0x453e0 addq $0x38, %rsp retq nopw %cs:(%rax,%rax)
ggml_tallocr_alloc: sub rsp, 38h mov [rsp+38h+var_8], rdi mov [rsp+38h+var_10], rsi mov rax, [rsp+38h+var_8] mov rdi, [rax] mov rsi, [rsp+38h+var_10] call _ggml_backend_buffer_get_alloc_size mov [rsp+38h+var_18], rax mov rax, [rsp+38h+var_18] mov rcx, [rsp+38h+var_8] add rax, [rcx+10h] sub rax, 1 mov rcx, [rsp+38h+var_8] mov rcx, [rcx+10h] sub rcx, 1 xor rcx, 0FFFFFFFFFFFFFFFFh and rax, rcx mov [rsp+38h+var_18], rax mov rax, [rsp+38h+var_8] mov rax, [rax+18h] add rax, [rsp+38h+var_18] mov [rsp+38h+var_28], rax mov rax, [rsp+38h+var_8] mov rdi, [rax] call _ggml_backend_buffer_get_size mov rcx, rax mov rax, [rsp+38h+var_28] cmp rax, rcx jbe short loc_5AD9C mov rax, [rsp+38h+var_10] add rax, 100h mov [rsp+38h+var_38], rax mov rax, [rsp+38h+var_18] mov [rsp+38h+var_30], rax mov rax, [rsp+38h+var_8] mov rdi, [rax] call _ggml_backend_buffer_get_size mov rcx, [rsp+38h+var_38] mov r8, [rsp+38h+var_30] mov r9, rax mov rax, [rsp+38h+var_8] sub r9, [rax+18h] mov edi, 4 lea rsi, aSNotEnoughSpac_0; "%s: not enough space in the buffer to a"... lea rdx, aGgmlTallocrAll_0; "ggml_tallocr_alloc" mov al, 0 call _ggml_log_internal lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... mov esi, 63h ; 'c' lea rdx, aNotEnoughSpace; "not enough space in the buffer" mov al, 0 call _ggml_abort loc_5AD9C: mov rax, [rsp+38h+var_8] mov rdi, [rax] call _ggml_backend_buffer_get_base mov rcx, [rsp+38h+var_8] add rax, [rcx+18h] mov [rsp+38h+var_20], rax mov rcx, [rsp+38h+var_18] mov rax, [rsp+38h+var_8] add rcx, [rax+18h] mov [rax+18h], rcx mov rax, [rsp+38h+var_8] mov rdi, [rax] mov rsi, [rsp+38h+var_10] mov rdx, [rsp+38h+var_20] call _ggml_backend_tensor_alloc add rsp, 38h retn
long long ggml_tallocr_alloc(_QWORD *a1, long long a2) { long long size; // rax unsigned long long v4; // [rsp+10h] [rbp-28h] long long v5; // [rsp+18h] [rbp-20h] long long v6; // [rsp+20h] [rbp-18h] v6 = ~(a1[2] - 1LL) & (a1[2] + ggml_backend_buffer_get_alloc_size(*a1, a2) - 1); v4 = v6 + a1[3]; if ( v4 > ggml_backend_buffer_get_size(*a1) ) { size = ggml_backend_buffer_get_size(*a1); ggml_log_internal( 4u, (long long)"%s: not enough space in the buffer to allocate %s (needed %zu, available %zu)\n", "ggml_tallocr_alloc", (const char *)(a2 + 256), v6, size - a1[3]); ggml_abort( "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-alloc.c", 99, (long long)"not enough space in the buffer"); } v5 = a1[3] + ggml_backend_buffer_get_base(*a1); a1[3] += v6; return ggml_backend_tensor_alloc(*a1, a2, v5); }
ggml_tallocr_alloc: SUB RSP,0x38 MOV qword ptr [RSP + 0x30],RDI MOV qword ptr [RSP + 0x28],RSI MOV RAX,qword ptr [RSP + 0x30] MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RSP + 0x28] CALL 0x00141a00 MOV qword ptr [RSP + 0x20],RAX MOV RAX,qword ptr [RSP + 0x20] MOV RCX,qword ptr [RSP + 0x30] ADD RAX,qword ptr [RCX + 0x10] SUB RAX,0x1 MOV RCX,qword ptr [RSP + 0x30] MOV RCX,qword ptr [RCX + 0x10] SUB RCX,0x1 XOR RCX,-0x1 AND RAX,RCX MOV qword ptr [RSP + 0x20],RAX MOV RAX,qword ptr [RSP + 0x30] MOV RAX,qword ptr [RAX + 0x18] ADD RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [RSP + 0x30] MOV RDI,qword ptr [RAX] CALL 0x001457f0 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x10] CMP RAX,RCX JBE 0x0015ad9c MOV RAX,qword ptr [RSP + 0x28] ADD RAX,0x100 MOV qword ptr [RSP],RAX MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x8],RAX MOV RAX,qword ptr [RSP + 0x30] MOV RDI,qword ptr [RAX] CALL 0x001457f0 MOV RCX,qword ptr [RSP] MOV R8,qword ptr [RSP + 0x8] MOV R9,RAX MOV RAX,qword ptr [RSP + 0x30] SUB R9,qword ptr [RAX + 0x18] MOV EDI,0x4 LEA RSI,[0x1b72e4] LEA RDX,[0x1b7333] MOV AL,0x0 CALL 0x00141c40 LEA RDI,[0x1b7346] MOV ESI,0x63 LEA RDX,[0x1b7397] MOV AL,0x0 CALL 0x00146780 LAB_0015ad9c: MOV RAX,qword ptr [RSP + 0x30] MOV RDI,qword ptr [RAX] CALL 0x00144ca0 MOV RCX,qword ptr [RSP + 0x30] ADD RAX,qword ptr [RCX + 0x18] MOV qword ptr [RSP + 0x18],RAX MOV RCX,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x30] ADD RCX,qword ptr [RAX + 0x18] MOV qword ptr [RAX + 0x18],RCX MOV RAX,qword ptr [RSP + 0x30] MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RSP + 0x28] MOV RDX,qword ptr [RSP + 0x18] CALL 0x001453e0 ADD RSP,0x38 RET
void ggml_tallocr_alloc(int8 *param_1,long param_2) { long lVar1; ulong uVar2; ulong uVar3; long lVar4; lVar1 = ggml_backend_buffer_get_alloc_size(*param_1,param_2); uVar2 = (lVar1 + param_1[2]) - 1U & (param_1[2] - 1 ^ 0xffffffffffffffff); lVar1 = param_1[3]; uVar3 = ggml_backend_buffer_get_size(*param_1); if (uVar3 < lVar1 + uVar2) { lVar1 = ggml_backend_buffer_get_size(*param_1); ggml_log_internal(4, "%s: not enough space in the buffer to allocate %s (needed %zu, available %zu)\n" ,"ggml_tallocr_alloc",param_2 + 0x100,uVar2,lVar1 - param_1[3]); ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-alloc.c",99 ,"not enough space in the buffer"); } lVar4 = ggml_backend_buffer_get_base(*param_1); lVar1 = param_1[3]; param_1[3] = uVar2 + param_1[3]; ggml_backend_tensor_alloc(*param_1,param_2,lVar4 + lVar1); return; }
53,154
ggml_tallocr_alloc
ngxson[P]ggml-easy/ggml/src/ggml-alloc.c
enum ggml_status ggml_tallocr_alloc(struct ggml_tallocr * talloc, struct ggml_tensor * tensor) { size_t size = ggml_backend_buffer_get_alloc_size(talloc->buffer, tensor); size = GGML_PAD(size, talloc->alignment); if (talloc->offset + size > ggml_backend_buffer_get_size(talloc->buffer)) { GGML_LOG_ERROR("%s: not enough space in the buffer to allocate %s (needed %zu, available %zu)\n", __func__, tensor->name, size, ggml_backend_buffer_get_size(talloc->buffer) - talloc->offset); GGML_ABORT("not enough space in the buffer"); } void * addr = (char *)ggml_backend_buffer_get_base(talloc->buffer) + talloc->offset; talloc->offset += size; assert(((uintptr_t)addr % talloc->alignment) == 0); return ggml_backend_tensor_alloc(talloc->buffer, tensor, addr); }
O1
c
ggml_tallocr_alloc: pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r15 movq (%rdi), %rdi callq 0x16780 movq (%r15), %rdi movq 0x10(%r15), %r14 addq %r14, %rax decq %rax negq %r14 andq %rax, %r14 movq 0x18(%r15), %r12 addq %r14, %r12 callq 0x17840 cmpq %rax, %r12 ja 0x23aeb movq (%r15), %rdi callq 0x174f0 movq (%r15), %rdi movq 0x18(%r15), %rcx leaq (%rax,%rcx), %rdx addq %rcx, %r14 movq %r14, 0x18(%r15) movq %rbx, %rsi addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 jmp 0x17710 addq $0x100, %rbx # imm = 0x100 movq (%r15), %rdi callq 0x17840 subq 0x18(%r15), %rax leaq 0x2952b(%rip), %rsi # 0x4d030 leaq 0x29573(%rip), %rdx # 0x4d07f movl $0x4, %edi movq %rbx, %rcx movq %r14, %r8 movq %rax, %r9 xorl %eax, %eax callq 0x167f0 leaq 0x2956a(%rip), %rdi # 0x4d092 leaq 0x295b4(%rip), %rdx # 0x4d0e3 movl $0x63, %esi xorl %eax, %eax callq 0x17c70
ggml_tallocr_alloc: push r15 push r14 push r12 push rbx push rax mov rbx, rsi mov r15, rdi mov rdi, [rdi] call _ggml_backend_buffer_get_alloc_size mov rdi, [r15] mov r14, [r15+10h] add rax, r14 dec rax neg r14 and r14, rax mov r12, [r15+18h] add r12, r14 call _ggml_backend_buffer_get_size cmp r12, rax ja short loc_23AEB mov rdi, [r15] call _ggml_backend_buffer_get_base mov rdi, [r15] mov rcx, [r15+18h] lea rdx, [rax+rcx] add r14, rcx mov [r15+18h], r14 mov rsi, rbx add rsp, 8 pop rbx pop r12 pop r14 pop r15 jmp _ggml_backend_tensor_alloc loc_23AEB: add rbx, 100h mov rdi, [r15] call _ggml_backend_buffer_get_size sub rax, [r15+18h] lea rsi, aSNotEnoughSpac_0; "%s: not enough space in the buffer to a"... lea rdx, aGgmlTallocrAll_0; "ggml_tallocr_alloc" mov edi, 4 mov rcx, rbx mov r8, r14 mov r9, rax xor eax, eax call _ggml_log_internal lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rdx, aNotEnoughSpace; "not enough space in the buffer" mov esi, 63h ; 'c' xor eax, eax call _ggml_abort
long long ggml_tallocr_alloc( _QWORD *a1, long long a2, __m128 a3, __m128 a4, __m128 a5, __m128 a6, double a7, double a8, __m128 a9, __m128 a10) { long long v11; // r14 unsigned long long v12; // r12 long long base; // rax long long v14; // rdi long long v15; // rcx long long size; // rax __m128 v18; // xmm4 __m128 v19; // xmm5 int v20; // ecx int v21; // r8d int v22; // r9d v11 = (a1[2] + ggml_backend_buffer_get_alloc_size(*a1) - 1) & -a1[2]; v12 = v11 + a1[3]; if ( v12 > ggml_backend_buffer_get_size(*a1) ) { size = ggml_backend_buffer_get_size(*a1); ggml_log_internal( 4u, (long long)"%s: not enough space in the buffer to allocate %s (needed %zu, available %zu)\n", (long long)"ggml_tallocr_alloc", a2 + 256, v11, size - a1[3], a3, a4, a5, a6, v18, v19, a9, a10); ggml_abort( (unsigned int)"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-alloc.c", 99, (unsigned int)"not enough space in the buffer", v20, v21, v22); } base = ggml_backend_buffer_get_base(*a1); v14 = *a1; v15 = a1[3]; a1[3] = v15 + v11; return ggml_backend_tensor_alloc(v14, a2, base + v15); }
ggml_tallocr_alloc: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RSI MOV R15,RDI MOV RDI,qword ptr [RDI] CALL 0x00116780 MOV RDI,qword ptr [R15] MOV R14,qword ptr [R15 + 0x10] ADD RAX,R14 DEC RAX NEG R14 AND R14,RAX MOV R12,qword ptr [R15 + 0x18] ADD R12,R14 CALL 0x00117840 CMP R12,RAX JA 0x00123aeb MOV RDI,qword ptr [R15] CALL 0x001174f0 MOV RDI,qword ptr [R15] MOV RCX,qword ptr [R15 + 0x18] LEA RDX,[RAX + RCX*0x1] ADD R14,RCX MOV qword ptr [R15 + 0x18],R14 MOV RSI,RBX ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 JMP 0x00117710 LAB_00123aeb: ADD RBX,0x100 MOV RDI,qword ptr [R15] CALL 0x00117840 SUB RAX,qword ptr [R15 + 0x18] LEA RSI,[0x14d030] LEA RDX,[0x14d07f] MOV EDI,0x4 MOV RCX,RBX MOV R8,R14 MOV R9,RAX XOR EAX,EAX CALL 0x001167f0 LEA RDI,[0x14d092] LEA RDX,[0x14d0e3] MOV ESI,0x63 XOR EAX,EAX CALL 0x00117c70
void ggml_tallocr_alloc(int8 *param_1,long param_2) { long lVar1; ulong uVar2; long lVar3; ulong uVar4; lVar1 = ggml_backend_buffer_get_alloc_size(*param_1); uVar4 = -param_1[2] & (lVar1 + param_1[2]) - 1U; lVar1 = param_1[3]; uVar2 = ggml_backend_buffer_get_size(*param_1); if (lVar1 + uVar4 <= uVar2) { lVar3 = ggml_backend_buffer_get_base(*param_1); lVar1 = param_1[3]; param_1[3] = uVar4 + lVar1; ggml_backend_tensor_alloc(*param_1,param_2,lVar3 + lVar1); return; } lVar1 = ggml_backend_buffer_get_size(*param_1); ggml_log_internal(4, "%s: not enough space in the buffer to allocate %s (needed %zu, available %zu)\n" ,"ggml_tallocr_alloc",param_2 + 0x100,uVar4,lVar1 - param_1[3]); /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-alloc.c",99, "not enough space in the buffer"); }
53,155
my_printv_error
eloqsql/mysys/my_error.c
void my_printv_error(uint error, const char *format, myf MyFlags, va_list ap) { char ebuff[ERRMSGSIZE]; DBUG_ENTER("my_printv_error"); DBUG_PRINT("my", ("nr: %d MyFlags: %lu errno: %d format: %s", error, MyFlags, errno, format)); (void) my_vsnprintf(ebuff, sizeof(ebuff), format, ap); (*error_handler_hook)(error, ebuff, MyFlags); DBUG_VOID_RETURN; }
O0
c
my_printv_error: pushq %rbp movq %rsp, %rbp subq $0x230, %rsp # imm = 0x230 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movl %edi, -0x214(%rbp) movq %rsi, -0x220(%rbp) movq %rdx, -0x228(%rbp) movq %rcx, -0x230(%rbp) jmp 0x28025 leaq -0x210(%rbp), %rdi movq -0x220(%rbp), %rdx movq -0x230(%rbp), %rcx movl $0x200, %esi # imm = 0x200 callq 0x79150 leaq 0x1a9365(%rip), %rax # 0x1d13b0 movq (%rax), %rax movl -0x214(%rbp), %edi leaq -0x210(%rbp), %rsi movq -0x228(%rbp), %rdx callq *%rax jmp 0x28066 movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x28081 addq $0x230, %rsp # imm = 0x230 popq %rbp retq callq 0x24370 nopw %cs:(%rax,%rax)
my_printv_error: push rbp mov rbp, rsp sub rsp, 230h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_214], edi mov [rbp+var_220], rsi mov [rbp+var_228], rdx mov [rbp+var_230], rcx jmp short $+2 loc_28025: lea rdi, [rbp+var_210] mov rdx, [rbp+var_220] mov rcx, [rbp+var_230] mov esi, 200h call my_vsnprintf lea rax, error_handler_hook mov rax, [rax] mov edi, [rbp+var_214] lea rsi, [rbp+var_210] mov rdx, [rbp+var_228] call rax jmp short $+2 loc_28066: mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_28081 add rsp, 230h pop rbp retn loc_28081: call ___stack_chk_fail
unsigned long long my_printv_error(long long a1, long long a2, long long a3, long long a4) { _BYTE v5[520]; // [rsp+20h] [rbp-210h] BYREF unsigned long long v6; // [rsp+228h] [rbp-8h] v6 = __readfsqword(0x28u); my_vsnprintf(v5, 512LL, a2, a4); error_handler_hook(); return __readfsqword(0x28u); }
my_printv_error: PUSH RBP MOV RBP,RSP SUB RSP,0x230 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV dword ptr [RBP + -0x214],EDI MOV qword ptr [RBP + -0x220],RSI MOV qword ptr [RBP + -0x228],RDX MOV qword ptr [RBP + -0x230],RCX JMP 0x00128025 LAB_00128025: LEA RDI,[RBP + -0x210] MOV RDX,qword ptr [RBP + -0x220] MOV RCX,qword ptr [RBP + -0x230] MOV ESI,0x200 CALL 0x00179150 LEA RAX,[0x2d13b0] MOV RAX,qword ptr [RAX] MOV EDI,dword ptr [RBP + -0x214] LEA RSI,[RBP + -0x210] MOV RDX,qword ptr [RBP + -0x228] CALL RAX JMP 0x00128066 LAB_00128066: MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x00128081 ADD RSP,0x230 POP RBP RET LAB_00128081: CALL 0x00124370
void my_printv_error(int4 param_1,int8 param_2,int8 param_3,int8 param_4) { long in_FS_OFFSET; int1 local_218 [520]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); my_vsnprintf(local_218,0x200,param_2,param_4); (*(code *)error_handler_hook)(param_1,local_218,param_3); if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
53,156
minja::Value::set(minja::Value const&, minja::Value const&)
llama.cpp/common/minja/minja.hpp
void set(const Value& key, const Value& value) { if (!object_) throw std::runtime_error("Value is not an object: " + dump()); if (!key.is_hashable()) throw std::runtime_error("Unashable type: " + dump()); (*object_)[key.primitive_] = value; }
O3
cpp
minja::Value::set(minja::Value const&, minja::Value const&): pushq %rbp pushq %r14 pushq %rbx subq $0x40, %rsp movq %rdi, %r14 movq 0x20(%rdi), %rdi testq %rdi, %rdi je 0x77c8b cmpq $0x0, 0x10(%rsi) jne 0x77ce8 cmpq $0x0, 0x20(%rsi) jne 0x77ce8 cmpq $0x0, 0x30(%rsi) jne 0x77ce8 movq %rdx, %rbx addq $0x40, %rsi callq 0x77dc4 movq %rax, %r14 movq 0x10(%rbx), %rax movq %rax, 0x10(%r14) leaq 0x18(%r14), %rdi leaq 0x18(%rbx), %rsi callq 0x75152 movq 0x20(%rbx), %rax movq %rax, 0x20(%r14) leaq 0x28(%r14), %rdi leaq 0x28(%rbx), %rsi callq 0x75152 movq 0x30(%rbx), %rax movq %rax, 0x30(%r14) leaq 0x38(%r14), %rdi leaq 0x38(%rbx), %rsi callq 0x75152 addq $0x40, %rbx leaq 0x20(%rsp), %rdi movq %rbx, %rsi callq 0x2fd1c addq $0x40, %r14 leaq 0x20(%rsp), %rbx movq %r14, %rdi movq %rbx, %rsi callq 0x6831a movq %rbx, %rdi xorl %esi, %esi callq 0x732fc movq %rbx, %rdi callq 0x300e0 addq $0x40, %rsp popq %rbx popq %r14 popq %rbp retq movl $0x10, %edi callq 0x1c460 movq %rax, %rbx movq %rsp, %rdi movq %r14, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0x6cb9a leaq 0x54645(%rip), %rsi # 0xcc2f6 leaq 0x20(%rsp), %rdi movq %rsp, %rdx callq 0x66b64 movb $0x1, %bpl leaq 0x20(%rsp), %rsi movq %rbx, %rdi callq 0x1c2c0 xorl %ebp, %ebp movq 0x882e1(%rip), %rsi # 0xfffb8 movq 0x8829a(%rip), %rdx # 0xfff78 movq %rbx, %rdi callq 0x1c7b0 jmp 0x77d43 movl $0x10, %edi callq 0x1c460 movq %rax, %rbx movq %rsp, %rdi movq %r14, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0x6cb9a leaq 0x5455e(%rip), %rsi # 0xcc26c leaq 0x20(%rsp), %rdi movq %rsp, %rdx callq 0x66b64 movb $0x1, %bpl leaq 0x20(%rsp), %rsi movq %rbx, %rdi callq 0x1c2c0 xorl %ebp, %ebp movq 0x88284(%rip), %rsi # 0xfffb8 movq 0x8823d(%rip), %rdx # 0xfff78 movq %rbx, %rdi callq 0x1c7b0 jmp 0x77d47 jmp 0x77d87 movq %rax, %r14 leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x77d65 movq 0x30(%rsp), %rsi incq %rsi callq 0x1c110 leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x77d80 movq 0x10(%rsp), %rsi incq %rsi callq 0x1c110 testb %bpl, %bpl jne 0x77dac jmp 0x77db4 movq %rax, %r14 leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x77dac movq 0x10(%rsp), %rsi incq %rsi callq 0x1c110 jmp 0x77dac jmp 0x77da9 movq %rax, %r14 movq %rbx, %rdi callq 0x1caa0 movq %r14, %rdi callq 0x1c7d0 movq %rax, %rdi callq 0x2a81a
_ZN5minja5Value3setERKS0_S2_: push rbp push r14 push rbx sub rsp, 40h mov r14, rdi mov rdi, [rdi+20h] test rdi, rdi jz loc_77C8B cmp qword ptr [rsi+10h], 0 jnz loc_77CE8 cmp qword ptr [rsi+20h], 0 jnz loc_77CE8 cmp qword ptr [rsi+30h], 0 jnz loc_77CE8 mov rbx, rdx add rsi, 40h ; '@' call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixERSJ_; 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>>>::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&) mov r14, rax mov rax, [rbx+10h] mov [r14+10h], rax lea rdi, [r14+18h] lea rsi, [rbx+18h] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEaSERKS2_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=(std::__shared_count<(__gnu_cxx::_Lock_policy)2> const&) mov rax, [rbx+20h] mov [r14+20h], rax lea rdi, [r14+28h] lea rsi, [rbx+28h] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEaSERKS2_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=(std::__shared_count<(__gnu_cxx::_Lock_policy)2> const&) mov rax, [rbx+30h] mov [r14+30h], rax lea rdi, [r14+38h] lea rsi, [rbx+38h] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEaSERKS2_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=(std::__shared_count<(__gnu_cxx::_Lock_policy)2> const&) add rbx, 40h ; '@' lea rdi, [rsp+58h+var_38] mov rsi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) add r14, 40h ; '@' lea rbx, [rsp+58h+var_38] mov rdi, r14 mov rsi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, rbx xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() add rsp, 40h pop rbx pop r14 pop rbp retn loc_77C8B: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, rsp mov rsi, r14 mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) lea rsi, aValueIsNotAnOb; "Value is not an object: " lea rdi, [rsp+58h+var_38] mov rdx, rsp call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) mov bpl, 1 lea rsi, [rsp+58h+var_38] mov rdi, rbx call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) xor ebp, ebp mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw jmp short loc_77D43 loc_77CE8: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, rsp mov rsi, r14 mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) lea rsi, aUnashableType; "Unashable type: " lea rdi, [rsp+58h+var_38] mov rdx, rsp call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) mov bpl, 1 lea rsi, [rsp+58h+var_38] mov rdi, rbx call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) xor ebp, ebp mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw loc_77D43: jmp short loc_77D47 jmp short loc_77D87 loc_77D47: mov r14, rax lea rax, [rsp+58h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_77D65 mov rsi, [rsp+58h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_77D65: lea rax, [rsp+58h+var_48] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_77D80 mov rsi, [rsp+58h+var_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_77D80: test bpl, bpl jnz short loc_77DAC jmp short loc_77DB4 loc_77D87: mov r14, rax lea rax, [rsp+58h+var_48] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_77DAC mov rsi, [rsp+58h+var_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_77DAC jmp short $+2 loc_77DA9: mov r14, rax loc_77DAC: mov rdi, rbx; void * call ___cxa_free_exception loc_77DB4: mov rdi, r14 call __Unwind_Resume mov rdi, rax call __clang_call_terminate
long long minja::Value::set(minja::Value *this, const minja::Value *a2, const minja::Value *a3) { long long v4; // rdi long long v6; // r14 void *exception; // rbx void *v9; // rbx _BYTE v10[16]; // [rsp+0h] [rbp-58h] BYREF _QWORD v11[2]; // [rsp+20h] [rbp-38h] BYREF v4 = *((_QWORD *)this + 4); if ( !v4 ) { exception = __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 object: ", (long long)v10); std::runtime_error::runtime_error(exception, v11); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } if ( *((_QWORD *)a2 + 2) || *((_QWORD *)a2 + 4) || *((_QWORD *)a2 + 6) ) { v9 = __cxa_allocate_exception(0x10uLL); minja::Value::dump[abi:cxx11]((long long)v10, (long long)this, 0xFFFFFFFF, 0); std::operator+<char>(v11, (long long)"Unashable type: ", (long long)v10); std::runtime_error::runtime_error(v9, v11); __cxa_throw( v9, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } v6 = 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>>>::operator[]( v4, (char *)a2 + 64); *(_QWORD *)(v6 + 16) = *((_QWORD *)a3 + 2); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=( (volatile signed __int32 **)(v6 + 24), (volatile signed __int32 **)a3 + 3); *(_QWORD *)(v6 + 32) = *((_QWORD *)a3 + 4); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=( (volatile signed __int32 **)(v6 + 40), (volatile signed __int32 **)a3 + 5); *(_QWORD *)(v6 + 48) = *((_QWORD *)a3 + 6); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=( (volatile signed __int32 **)(v6 + 56), (volatile signed __int32 **)a3 + 7); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( (long long)v11, (unsigned __int8 *)a3 + 64); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=( (char *)(v6 + 64), (char *)v11); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v11); return nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v11); }
set: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x40 MOV R14,RDI MOV RDI,qword ptr [RDI + 0x20] TEST RDI,RDI JZ 0x00177c8b CMP qword ptr [RSI + 0x10],0x0 JNZ 0x00177ce8 CMP qword ptr [RSI + 0x20],0x0 JNZ 0x00177ce8 CMP qword ptr [RSI + 0x30],0x0 JNZ 0x00177ce8 MOV RBX,RDX ADD RSI,0x40 CALL 0x00177dc4 MOV R14,RAX MOV RAX,qword ptr [RBX + 0x10] MOV qword ptr [R14 + 0x10],RAX LEA RDI,[R14 + 0x18] LEA RSI,[RBX + 0x18] CALL 0x00175152 MOV RAX,qword ptr [RBX + 0x20] MOV qword ptr [R14 + 0x20],RAX LEA RDI,[R14 + 0x28] LEA RSI,[RBX + 0x28] CALL 0x00175152 MOV RAX,qword ptr [RBX + 0x30] MOV qword ptr [R14 + 0x30],RAX LEA RDI,[R14 + 0x38] LEA RSI,[RBX + 0x38] CALL 0x00175152 ADD RBX,0x40 LAB_00177c4f: LEA RDI,[RSP + 0x20] MOV RSI,RBX CALL 0x0012fd1c LAB_00177c5c: ADD R14,0x40 LEA RBX,[RSP + 0x20] MOV RDI,R14 MOV RSI,RBX CALL 0x0016831a MOV RDI,RBX XOR ESI,ESI CALL 0x001732fc MOV RDI,RBX CALL 0x001300e0 ADD RSP,0x40 POP RBX POP R14 POP RBP RET LAB_00177c8b: MOV EDI,0x10 CALL 0x0011c460 MOV RBX,RAX LAB_00177c98: MOV RDI,RSP MOV RSI,R14 MOV EDX,0xffffffff XOR ECX,ECX CALL 0x0016cb9a LAB_00177caa: LEA RSI,[0x1cc2f6] LEA RDI,[RSP + 0x20] MOV RDX,RSP CALL 0x00166b64 MOV BPL,0x1 LAB_00177cc1: LEA RSI,[RSP + 0x20] MOV RDI,RBX CALL 0x0011c2c0 XOR EBP,EBP MOV RSI,qword ptr [0x001fffb8] MOV RDX,qword ptr [0x001fff78] MOV RDI,RBX CALL 0x0011c7b0 LAB_00177ce8: MOV EDI,0x10 CALL 0x0011c460 MOV RBX,RAX LAB_00177cf5: MOV RDI,RSP MOV RSI,R14 MOV EDX,0xffffffff XOR ECX,ECX CALL 0x0016cb9a LAB_00177d07: LEA RSI,[0x1cc26c] LEA RDI,[RSP + 0x20] MOV RDX,RSP CALL 0x00166b64 MOV BPL,0x1 LAB_00177d1e: LEA RSI,[RSP + 0x20] MOV RDI,RBX CALL 0x0011c2c0 XOR EBP,EBP MOV RSI,qword ptr [0x001fffb8] MOV RDX,qword ptr [0x001fff78] MOV RDI,RBX CALL 0x0011c7b0
/* minja::Value::set(minja::Value const&, minja::Value const&) */ void __thiscall minja::Value::set(Value *this,Value *param_1,Value *param_2) { long lVar1; runtime_error *prVar2; int1 auStack_58 [32]; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_38 [32]; if (*(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>>> **)(this + 0x20) == (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>>> *)0x0) { prVar2 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 00177c98 to 00177ca9 has its CatchHandler @ 00177da9 */ dump_abi_cxx11_((int)auStack_58,SUB81(this,0)); /* try { // try from 00177caa to 00177cbd has its CatchHandler @ 00177d87 */ std::operator+((char *)local_38,(string *)"Value is not an object: "); /* try { // try from 00177cc1 to 00177ce5 has its CatchHandler @ 00177d47 */ std::runtime_error::runtime_error(prVar2,(string *)local_38); /* WARNING: Subroutine does not return */ __cxa_throw(prVar2,PTR_typeinfo_001fffb8,PTR__runtime_error_001fff78); } if (((*(long *)(param_1 + 0x10) == 0) && (*(long *)(param_1 + 0x20) == 0)) && (*(long *)(param_1 + 0x30) == 0)) { lVar1 = 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>>> ::operator[](*(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>>> **)(this + 0x20),(basic_json *)(param_1 + 0x40)); *(int8 *)(lVar1 + 0x10) = *(int8 *)(param_2 + 0x10); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator= ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)(lVar1 + 0x18), (__shared_count *)(param_2 + 0x18)); *(int8 *)(lVar1 + 0x20) = *(int8 *)(param_2 + 0x20); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator= ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)(lVar1 + 0x28), (__shared_count *)(param_2 + 0x28)); *(int8 *)(lVar1 + 0x30) = *(int8 *)(param_2 + 0x30); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator= ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)(lVar1 + 0x38), (__shared_count *)(param_2 + 0x38)); /* try { // try from 00177c4f to 00177c5b has its CatchHandler @ 00177dbc */ nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json(local_38,(basic_json *)(param_2 + 0x40)); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator=((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)(lVar1 + 0x40),(data *)local_38); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81((data *)local_38,0)); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)local_38); return; } prVar2 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 00177cf5 to 00177d06 has its CatchHandler @ 00177da7 */ dump_abi_cxx11_((int)auStack_58,SUB81(this,0)); /* try { // try from 00177d07 to 00177d1a has its CatchHandler @ 00177d45 */ std::operator+((char *)local_38,(string *)"Unashable type: "); /* try { // try from 00177d1e to 00177d42 has its CatchHandler @ 00177d43 */ std::runtime_error::runtime_error(prVar2,(string *)local_38); /* WARNING: Subroutine does not return */ __cxa_throw(prVar2,PTR_typeinfo_001fffb8,PTR__runtime_error_001fff78); }
53,157
my_caseup_str_8bit
eloqsql/strings/ctype-simple.c
size_t my_caseup_str_8bit(CHARSET_INFO * cs,char *str) { register const uchar *map= cs->to_upper; char *str_orig= str; while ((*str= (char) map[(uchar) *str]) != 0) str++; return (size_t) (str - str_orig); }
O0
c
my_caseup_str_8bit: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq 0x50(%rax), %rax movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x18(%rbp), %rax movq -0x10(%rbp), %rcx movzbl (%rcx), %ecx movb (%rax,%rcx), %al movq -0x10(%rbp), %rcx movb %al, (%rcx) movsbl %al, %eax cmpl $0x0, %eax je 0x499aa movq -0x10(%rbp), %rax addq $0x1, %rax movq %rax, -0x10(%rbp) jmp 0x49980 movq -0x10(%rbp), %rax movq -0x20(%rbp), %rcx subq %rcx, %rax popq %rbp retq nopw (%rax,%rax)
my_caseup_str_8bit: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] mov rax, [rax+50h] mov [rbp+var_18], rax mov rax, [rbp+var_10] mov [rbp+var_20], rax loc_49980: mov rax, [rbp+var_18] mov rcx, [rbp+var_10] movzx ecx, byte ptr [rcx] mov al, [rax+rcx] mov rcx, [rbp+var_10] mov [rcx], al movsx eax, al cmp eax, 0 jz short loc_499AA mov rax, [rbp+var_10] add rax, 1 mov [rbp+var_10], rax jmp short loc_49980 loc_499AA: mov rax, [rbp+var_10] mov rcx, [rbp+var_20] sub rax, rcx pop rbp retn
_BYTE * my_caseup_str_8bit(long long a1, _BYTE *a2) { char v2; // al long long v4; // [rsp+8h] [rbp-18h] _BYTE *v5; // [rsp+10h] [rbp-10h] v5 = a2; v4 = *(_QWORD *)(a1 + 80); while ( 1 ) { v2 = *(_BYTE *)(v4 + (unsigned __int8)*v5); *v5 = v2; if ( !v2 ) break; ++v5; } return (_BYTE *)(v5 - a2); }
my_caseup_str_8bit: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x50] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x20],RAX LAB_00149980: MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x10] MOVZX ECX,byte ptr [RCX] MOV AL,byte ptr [RAX + RCX*0x1] MOV RCX,qword ptr [RBP + -0x10] MOV byte ptr [RCX],AL MOVSX EAX,AL CMP EAX,0x0 JZ 0x001499aa MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x1 MOV qword ptr [RBP + -0x10],RAX JMP 0x00149980 LAB_001499aa: MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x20] SUB RAX,RCX POP RBP RET
long my_caseup_str_8bit(long param_1,byte *param_2) { byte bVar1; long lVar2; byte *local_18; lVar2 = *(long *)(param_1 + 0x50); local_18 = param_2; while (bVar1 = *(byte *)(lVar2 + (ulong)*local_18), *local_18 = bVar1, bVar1 != 0) { local_18 = local_18 + 1; } return (long)local_18 - (long)param_2; }
53,158
ftxui::ScreenInteractive::Loop(std::shared_ptr<ftxui::ComponentBase>)
Andrewchistyakov[P]flashcards_lyc/build_O0/_deps/ftxui-src/src/ftxui/component/screen_interactive.cpp
void ScreenInteractive::Loop(Component component) { // NOLINT class Loop loop(this, std::move(component)); loop.Run(); }
O0
cpp
ftxui::ScreenInteractive::Loop(std::shared_ptr<ftxui::ComponentBase>): pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x58(%rbp) leaq -0x38(%rbp), %rdi movq %rdi, -0x50(%rbp) callq 0x4f0c0 movq -0x58(%rbp), %rsi movq -0x50(%rbp), %rdx leaq -0x28(%rbp), %rdi callq 0x7cbe0 jmp 0x61b68 leaq -0x38(%rbp), %rdi callq 0x201c0 leaq -0x28(%rbp), %rdi callq 0x7cd90 jmp 0x61b7c leaq -0x28(%rbp), %rdi callq 0x7cc50 addq $0x60, %rsp popq %rbp retq movq %rax, %rcx movl %edx, %eax movq %rcx, -0x40(%rbp) movl %eax, -0x44(%rbp) leaq -0x38(%rbp), %rdi callq 0x201c0 jmp 0x61bb7 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x40(%rbp) movl %eax, -0x44(%rbp) leaq -0x28(%rbp), %rdi callq 0x7cc50 movq -0x40(%rbp), %rdi callq 0xda90
_ZN5ftxui17ScreenInteractive4LoopESt10shared_ptrINS_13ComponentBaseEE: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] mov [rbp+var_58], rax lea rdi, [rbp+var_38] mov [rbp+var_50], rdi call _ZNSt10shared_ptrIN5ftxui13ComponentBaseEEC2EOS2_; std::shared_ptr<ftxui::ComponentBase>::shared_ptr(std::shared_ptr<ftxui::ComponentBase>&&) mov rsi, [rbp+var_58] mov rdx, [rbp+var_50] lea rdi, [rbp+var_28] call _ZN5ftxui4LoopC2EPNS_17ScreenInteractiveESt10shared_ptrINS_13ComponentBaseEE; ftxui::Loop::Loop(ftxui::ScreenInteractive *,std::shared_ptr<ftxui::ComponentBase>) jmp short $+2 loc_61B68: lea rdi, [rbp+var_38] call _ZNSt10shared_ptrIN5ftxui13ComponentBaseEED2Ev; std::shared_ptr<ftxui::ComponentBase>::~shared_ptr() lea rdi, [rbp+var_28]; this call _ZN5ftxui4Loop3RunEv; ftxui::Loop::Run(void) jmp short $+2 loc_61B7C: lea rdi, [rbp+var_28]; this call _ZN5ftxui4LoopD2Ev; ftxui::Loop::~Loop() add rsp, 60h pop rbp retn mov rcx, rax mov eax, edx mov [rbp+var_40], rcx mov [rbp+var_44], eax lea rdi, [rbp+var_38] call _ZNSt10shared_ptrIN5ftxui13ComponentBaseEED2Ev; std::shared_ptr<ftxui::ComponentBase>::~shared_ptr() jmp short loc_61BB7 mov rcx, rax mov eax, edx mov [rbp+var_40], rcx mov [rbp+var_44], eax lea rdi, [rbp+var_28]; this call _ZN5ftxui4LoopD2Ev; ftxui::Loop::~Loop() loc_61BB7: mov rdi, [rbp+var_40] call __Unwind_Resume
void ftxui::ScreenInteractive::Loop(long long a1, long long a2) { _BYTE v2[16]; // [rsp+28h] [rbp-38h] BYREF _BYTE v3[24]; // [rsp+38h] [rbp-28h] BYREF long long v4; // [rsp+50h] [rbp-10h] long long v5; // [rsp+58h] [rbp-8h] v5 = a1; v4 = a2; std::shared_ptr<ftxui::ComponentBase>::shared_ptr((long long)v2, a2); ftxui::Loop::Loop(v3, a1, v2); std::shared_ptr<ftxui::ComponentBase>::~shared_ptr((long long)v2); ftxui::Loop::Run((ftxui::Loop *)v3); ftxui::Loop::~Loop((ftxui::Loop *)v3); }
Loop: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x58],RAX LEA RDI,[RBP + -0x38] MOV qword ptr [RBP + -0x50],RDI CALL 0x0014f0c0 MOV RSI,qword ptr [RBP + -0x58] MOV RDX,qword ptr [RBP + -0x50] LAB_00161b5d: LEA RDI,[RBP + -0x28] CALL 0x0017cbe0 JMP 0x00161b68 LAB_00161b68: LEA RDI,[RBP + -0x38] CALL 0x001201c0 LAB_00161b71: LEA RDI,[RBP + -0x28] CALL 0x0017cd90 LAB_00161b7a: JMP 0x00161b7c LAB_00161b7c: LEA RDI,[RBP + -0x28] CALL 0x0017cc50 ADD RSP,0x60 POP RBP RET
/* ftxui::ScreenInteractive::Loop(std::shared_ptr<ftxui::ComponentBase>) */ void __thiscall ftxui::ScreenInteractive::Loop(ScreenInteractive *this,shared_ptr *param_2) { shared_ptr<ftxui::ComponentBase> local_40 [16]; Loop local_30 [24]; shared_ptr *local_18; ScreenInteractive *local_10; local_18 = param_2; local_10 = this; std::shared_ptr<ftxui::ComponentBase>::shared_ptr(local_40,param_2); /* try { // try from 00161b5d to 00161b65 has its CatchHandler @ 00161b8b */ ftxui::Loop::Loop(local_30,this,local_40); std::shared_ptr<ftxui::ComponentBase>::~shared_ptr(local_40); /* try { // try from 00161b71 to 00161b79 has its CatchHandler @ 00161ba2 */ ftxui::Loop::Run(local_30); ftxui::Loop::~Loop(local_30); return; }
53,159
string_from[abi:cxx11](bool)
monkey531[P]llama/common/common.cpp
std::string string_from(bool value) { return value ? "true" : "false"; }
O1
cpp
string_from[abi:cxx11](bool): pushq %rbx movq %rdi, %rbx leaq 0x7846f(%rip), %rcx # 0xeaa4a leaq 0x7b151(%rip), %rax # 0xed733 testl %esi, %esi cmovneq %rcx, %rax leaq 0x10(%rdi), %rcx movq %rcx, (%rdi) movl %esi, %edx xorq $0x5, %rdx addq %rax, %rdx movq %rax, %rsi callq 0x22630 movq %rbx, %rax popq %rbx retq
_Z11string_fromB5cxx11b: push rbx mov rbx, rdi lea rcx, aTrue; "true" lea rax, aAdvancedOption+0ABh; "false" test esi, esi cmovnz rax, rcx lea rcx, [rdi+10h] mov [rdi], rcx mov edx, esi xor rdx, 5 add rdx, rax mov rsi, 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 rax, rbx pop rbx retn
_QWORD * string_from[abi:cxx11](_QWORD *a1, unsigned int a2) { char *v2; // rax v2 = "false"; if ( a2 ) v2 = "true"; *a1 = a1 + 2; std::string::_M_construct<char const*>(a1, v2, (long long)&v2[a2 ^ 5LL]); return a1; }
string_from[abi:cxx11]: PUSH RBX MOV RBX,RDI LEA RCX,[0x1eaa4a] LEA RAX,[0x1ed733] TEST ESI,ESI CMOVNZ RAX,RCX LEA RCX,[RDI + 0x10] MOV qword ptr [RDI],RCX MOV EDX,ESI XOR RDX,0x5 ADD RDX,RAX MOV RSI,RAX CALL 0x00122630 MOV RAX,RBX POP RBX RET
/* string_from[abi:cxx11](bool) */ int8 string_from_abi_cxx11_(bool param_1) { char *pcVar1; uint in_ESI; int7 in_register_00000039; pcVar1 = "false"; if (in_ESI != 0) { pcVar1 = "true"; } *(long *)CONCAT71(in_register_00000039,param_1) = CONCAT71(in_register_00000039,param_1) + 0x10; std::__cxx11::string::_M_construct<char_const*>(param_1,pcVar1,pcVar1 + ((ulong)in_ESI ^ 5)); return CONCAT71(in_register_00000039,param_1); }
53,160
string_from[abi:cxx11](bool)
monkey531[P]llama/common/common.cpp
std::string string_from(bool value) { return value ? "true" : "false"; }
O2
cpp
string_from[abi:cxx11](bool): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x2a8, %rsp # imm = 0x2A8 leaq 0x58(%rsp), %rax movq %rax, -0x30(%rax) movq $0x1, -0x28(%rax) xorps %xmm0, %xmm0 movups %xmm0, -0x20(%rax) movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000 movups %xmm0, -0x8(%rax) xorl %esi, %esi leaq 0x60(%rsp), %r14 leaq 0x80(%rsp), %r12 leaq 0x8(%rsp), %rbp leaq 0xa0(%rsp), %rbx pushq $0x8 popq %r15 xorl %r13d, %r13d incl %r13d je 0x53d3b movq %r14, %rdi callq 0x592e2 movq %r12, %rdi leaq 0x60c76(%rip), %rsi # 0xb4900 movq %r14, %rdx callq 0x592be movq %rbp, %rdi movq %r12, %rsi leaq 0x60c7d(%rip), %rdx # 0xb491c callq 0x38f88 movq %rbx, %rdi movq %rbp, %rsi movl %r15d, %edx callq 0x24e10 movq %rbp, %rdi callq 0x251d8 movq %r12, %rdi callq 0x251d8 movq %r14, %rdi callq 0x251d8 leaq 0x118(%rsp), %rdi callq 0x241e0 testb %al, %al je 0x53d2e leaq 0x18(%rsp), %rax movq %rax, 0x8(%rsp) andq $0x0, 0x10(%rsp) movb $0x0, 0x18(%rsp) movq %rbx, %rdi movq %rbp, %rsi callq 0x24140 movq (%rax), %rcx movq -0x18(%rcx), %rcx testb $0x5, 0x20(%rax,%rcx) jne 0x53d16 leaq 0x28(%rsp), %rdi movq %rbp, %rsi callq 0x8998a movq %rbp, %rdi callq 0x251d8 movq %rbx, %rdi callq 0x24220 movl %r13d, %esi jmp 0x53c6f leaq 0xa0(%rsp), %rdi callq 0x24220 movq 0x40(%rsp), %rbx testq %rbx, %rbx jne 0x53d5c callq 0x24bd0 cmpl $0x5, %eax setae %cl movl %eax, %edx shrl %cl, %edx testl %eax, %eax pushq $0x4 popq %rbx cmovnel %edx, %ebx leaq 0x28(%rsp), %rdi callq 0x5d1ac movl %ebx, %eax addq $0x2a8, %rsp # imm = 0x2A8 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx jmp 0x53dc9 movq %rax, %rbx jmp 0x53d96 movq %rax, %rbx jmp 0x53da3 movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x251d8 leaq 0x80(%rsp), %rdi callq 0x251d8 leaq 0x60(%rsp), %rdi callq 0x251d8 jmp 0x53dc9 movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x251d8 leaq 0xa0(%rsp), %rdi callq 0x24220 leaq 0x28(%rsp), %rdi callq 0x5d1ac movq %rbx, %rdi callq 0x24f80
_Z26cpu_get_num_physical_coresv: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 2A8h lea rax, [rsp+2D8h+var_280] mov [rax-30h], rax mov qword ptr [rax-28h], 1 xorps xmm0, xmm0 movups xmmword ptr [rax-20h], xmm0 mov dword ptr [rax-10h], 3F800000h movups xmmword ptr [rax-8], xmm0 xor esi, esi; unsigned int lea r14, [rsp+2D8h+var_278] lea r12, [rsp+2D8h+var_258] lea rbp, [rsp+2D8h+var_2D0] lea rbx, [rsp+2D8h+var_238] push 8 pop r15 xor r13d, r13d loc_53C6F: inc r13d jz loc_53D3B mov rdi, r14; this call _ZNSt7__cxx119to_stringEj; std::to_string(uint) mov rdi, r12 lea rsi, aSysDevicesSyst; "/sys/devices/system/cpu/cpu" mov rdx, r14 call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) mov rdi, rbp mov rsi, r12 lea rdx, aTopologyThread; "/topology/thread_siblings" call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*) mov rdi, rbx mov rsi, rbp mov edx, r15d call __ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1ERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode; std::ifstream::basic_ifstream(std::string const&,std::_Ios_Openmode) mov rdi, rbp; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, r12; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, r14; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+2D8h+var_1C0] call __ZNKSt12__basic_fileIcE7is_openEv; std::__basic_file<char>::is_open(void) test al, al jz short loc_53D2E lea rax, [rsp+2D8h+var_2C0] mov [rsp+2D8h+var_2D0], rax and [rsp+2D8h+var_2C8], 0 mov [rsp+2D8h+var_2C0], 0 mov rdi, rbx mov rsi, rbp call __ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::getline<char,std::char_traits<char>,std::allocator<char>>(std::istream &,std::string &) mov rcx, [rax] mov rcx, [rcx-18h] test byte ptr [rax+rcx+20h], 5 jnz short loc_53D16 lea rdi, [rsp+2D8h+var_2B0] mov rsi, rbp call _ZNSt8__detail12_Insert_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_SaIS6_ENS_9_IdentityESt8equal_toIS6_ESt4hashIS6_ENS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb1ELb1ELb1EEEE6insertERKS6_; std::__detail::_Insert_base<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::insert(std::string const&) loc_53D16: mov rdi, rbp; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, rbx call __ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev; std::ifstream::~ifstream() mov esi, r13d jmp loc_53C6F loc_53D2E: lea rdi, [rsp+2D8h+var_238]; this call __ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev; std::ifstream::~ifstream() loc_53D3B: mov rbx, [rsp+2D8h+var_298] test rbx, rbx jnz short loc_53D5C call __ZNSt6thread20hardware_concurrencyEv; std::thread::hardware_concurrency(void) cmp eax, 5 setnb cl mov edx, eax shr edx, cl test eax, eax push 4 pop rbx cmovnz ebx, edx loc_53D5C: lea rdi, [rsp+2D8h+var_2B0] call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEED2Ev; std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::~_Hashtable() mov eax, ebx add rsp, 2A8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax jmp short loc_53DC9 mov rbx, rax jmp short loc_53D96 mov rbx, rax jmp short loc_53DA3 mov rbx, rax lea rdi, [rsp+arg_0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_53D96: lea rdi, [rsp+arg_78]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_53DA3: lea rdi, [rsp+arg_58]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_53DC9 mov rbx, rax lea rdi, [rsp+arg_0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+arg_98] call __ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev; std::ifstream::~ifstream() loc_53DC9: lea rdi, [rsp+arg_20] call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEED2Ev; std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::~_Hashtable() mov rdi, rbx call __Unwind_Resume
long long cpu_get_num_physical_cores(std::thread *a1) { unsigned long long v1; // rsi unsigned int i; // r13d _QWORD *v3; // rax unsigned int v4; // ebx unsigned int v5; // eax _QWORD v7[2]; // [rsp+8h] [rbp-2D0h] BYREF char v8; // [rsp+18h] [rbp-2C0h] BYREF _QWORD v9[2]; // [rsp+28h] [rbp-2B0h] BYREF __int128 v10; // [rsp+38h] [rbp-2A0h] int v11; // [rsp+48h] [rbp-290h] __int128 v12; // [rsp+50h] [rbp-288h] BYREF _BYTE v13[32]; // [rsp+60h] [rbp-278h] BYREF _BYTE v14[32]; // [rsp+80h] [rbp-258h] BYREF _BYTE v15[120]; // [rsp+A0h] [rbp-238h] BYREF _BYTE v16[448]; // [rsp+118h] [rbp-1C0h] BYREF v9[0] = (char *)&v12 + 8; v9[1] = 1LL; v10 = 0LL; v11 = 1065353216; v12 = 0LL; v1 = 0LL; for ( i = 0; ++i; v1 = i ) { std::to_string((std::__cxx11 *)v13, v1); std::operator+<char>(v14, "/sys/devices/system/cpu/cpu", v13); std::operator+<char>((long long)v7, (long long)v14, (long long)"/topology/thread_siblings"); v1 = (unsigned long long)v7; std::ifstream::basic_ifstream(v15, v7, 8LL); std::string::~string(v7); std::string::~string(v14); std::string::~string(v13); if ( !(unsigned __int8)std::__basic_file<char>::is_open(v16) ) { a1 = (std::thread *)v15; std::ifstream::~ifstream(v15); break; } v7[0] = &v8; v7[1] = 0LL; v8 = 0; v3 = (_QWORD *)std::getline<char,std::char_traits<char>,std::allocator<char>>(v15, v7); if ( (*((_BYTE *)v3 + *(_QWORD *)(*v3 - 24LL) + 32) & 5) == 0 ) std::__detail::_Insert_base<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::insert( v9, v7); std::string::~string(v7); a1 = (std::thread *)v15; std::ifstream::~ifstream(v15); } v4 = DWORD2(v10); if ( !*((_QWORD *)&v10 + 1) ) { v5 = std::thread::hardware_concurrency(a1); v4 = 4; if ( v5 ) v4 = v5 >> (v5 >= 5); } std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::~_Hashtable( v9, v1); return v4; }
cpu_get_num_physical_cores: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x2a8 LEA RAX,[RSP + 0x58] MOV qword ptr [RAX + -0x30],RAX MOV qword ptr [RAX + -0x28],0x1 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX + -0x20],XMM0 MOV dword ptr [RAX + -0x10],0x3f800000 MOVUPS xmmword ptr [RAX + -0x8],XMM0 XOR ESI,ESI LEA R14,[RSP + 0x60] LEA R12,[RSP + 0x80] LEA RBP,[RSP + 0x8] LEA RBX,[RSP + 0xa0] PUSH 0x8 POP R15 XOR R13D,R13D LAB_00153c6f: INC R13D JZ 0x00153d3b LAB_00153c78: MOV RDI,R14 CALL 0x001592e2 LAB_00153c80: MOV RDI,R12 LEA RSI,[0x1b4900] MOV RDX,R14 CALL 0x001592be LAB_00153c92: MOV RDI,RBP MOV RSI,R12 LEA RDX,[0x1b491c] CALL 0x00138f88 LAB_00153ca4: MOV RDI,RBX MOV RSI,RBP MOV EDX,R15D CALL 0x00124e10 MOV RDI,RBP CALL 0x001251d8 MOV RDI,R12 CALL 0x001251d8 MOV RDI,R14 CALL 0x001251d8 LEA RDI,[RSP + 0x118] CALL 0x001241e0 TEST AL,AL JZ 0x00153d2e LEA RAX,[RSP + 0x18] MOV qword ptr [RSP + 0x8],RAX AND qword ptr [RSP + 0x10],0x0 MOV byte ptr [RSP + 0x18],0x0 LAB_00153cf0: MOV RDI,RBX MOV RSI,RBP CALL 0x00124140 MOV RCX,qword ptr [RAX] MOV RCX,qword ptr [RCX + -0x18] TEST byte ptr [RAX + RCX*0x1 + 0x20],0x5 JNZ 0x00153d16 LEA RDI,[RSP + 0x28] MOV RSI,RBP CALL 0x0018998a LAB_00153d16: MOV RDI,RBP CALL 0x001251d8 MOV RDI,RBX CALL 0x00124220 MOV ESI,R13D JMP 0x00153c6f LAB_00153d2e: LEA RDI,[RSP + 0xa0] CALL 0x00124220 LAB_00153d3b: MOV RBX,qword ptr [RSP + 0x40] TEST RBX,RBX JNZ 0x00153d5c CALL 0x00124bd0 CMP EAX,0x5 SETNC CL MOV EDX,EAX SHR EDX,CL TEST EAX,EAX PUSH 0x4 POP RBX CMOVNZ EBX,EDX LAB_00153d5c: LEA RDI,[RSP + 0x28] CALL 0x0015d1ac MOV EAX,EBX ADD RSP,0x2a8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* WARNING: Unknown calling convention -- yet parameter storage is locked */ /* cpu_get_num_physical_cores() */ ulong cpu_get_num_physical_cores(void) { char cVar1; uint uVar2; istream *piVar3; ulong uVar4; int1 *local_2d0; int8 local_2c8; int1 local_2c0 [16]; int8 *local_2b0; int8 local_2a8; int8 local_2a0; ulong uStack_298; int4 local_290; int8 local_288; int8 uStack_280; __cxx11 local_278 [32]; string local_258 [32]; istream local_238 [520]; local_2b0 = &uStack_280; local_2a8 = 1; local_2a0 = 0; uStack_298 = 0; local_290 = 0x3f800000; local_288 = 0; uStack_280 = 0; uVar2 = 0; do { if (uVar2 + 1 == 0) { LAB_00153d3b: uVar4 = uStack_298; if (uStack_298 == 0) { uVar2 = std::thread::hardware_concurrency(); uVar4 = 4; if (uVar2 != 0) { uVar4 = (ulong)(uVar2 >> (4 < uVar2)); } } std:: _Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>> ::~_Hashtable((_Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>> *)&local_2b0); return uVar4 & 0xffffffff; } /* try { // try from 00153c78 to 00153c7f has its CatchHandler @ 00153d7a */ std::__cxx11::to_string(local_278,uVar2); /* try { // try from 00153c80 to 00153c91 has its CatchHandler @ 00153d84 */ std::operator+((char *)local_258,(string *)"/sys/devices/system/cpu/cpu"); /* try { // try from 00153c92 to 00153ca3 has its CatchHandler @ 00153d7f */ std::operator+((string *)&local_2d0,(char *)local_258); /* try { // try from 00153ca4 to 00153cb1 has its CatchHandler @ 00153d89 */ std::ifstream::ifstream((ifstream *)local_238,(string *)&local_2d0,8); std::__cxx11::string::~string((string *)&local_2d0); std::__cxx11::string::~string(local_258); std::__cxx11::string::~string((string *)local_278); cVar1 = std::__basic_file<char>::is_open(); if (cVar1 == '\0') { std::ifstream::~ifstream((ifstream *)local_238); goto LAB_00153d3b; } local_2d0 = local_2c0; local_2c8 = 0; local_2c0[0] = 0; /* try { // try from 00153cf0 to 00153d15 has its CatchHandler @ 00153daf */ piVar3 = std::getline<char,std::char_traits<char>,std::allocator<char>> (local_238,(string *)&local_2d0); if (((byte)piVar3[*(long *)(*(long *)piVar3 + -0x18) + 0x20] & 5) == 0) { std::__detail:: _Insert_base<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>> ::insert((string *)&local_2b0); } std::__cxx11::string::~string((string *)&local_2d0); std::ifstream::~ifstream((ifstream *)local_238); uVar2 = uVar2 + 1; } while( true ); }
53,161
string_from[abi:cxx11](bool)
monkey531[P]llama/common/common.cpp
std::string string_from(bool value) { return value ? "true" : "false"; }
O3
cpp
string_from[abi:cxx11](bool): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x2a8, %rsp # imm = 0x2A8 leaq 0x98(%rsp), %rax movq %rax, -0x30(%rax) movq $0x1, -0x28(%rax) xorps %xmm0, %xmm0 movups %xmm0, -0x20(%rax) movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000 movups %xmm0, -0x8(%rax) leaq 0x38(%rsp), %rbp leaq 0x18(%rsp), %r13 xorl %r14d, %r14d leaq 0x48(%rsp), %r12 leaq 0xa0(%rsp), %rbx movl $0xd1b71759, %esi # imm = 0xD1B71759 movl $0x1, %eax cmpl $0xa, %r14d jb 0x719e9 movl $0x4, %eax movl %r14d, %ecx cmpl $0x63, %ecx jbe 0x719e2 cmpl $0x3e7, %ecx # imm = 0x3E7 jbe 0x719e7 cmpl $0x2710, %ecx # imm = 0x2710 jb 0x719e9 movl %ecx, %edx imulq %rsi, %rdx shrq $0x2d, %rdx addl $0x4, %eax cmpl $0x1869f, %ecx # imm = 0x1869F movl %edx, %ecx ja 0x719b1 addl $-0x3, %eax jmp 0x719e9 addl $-0x2, %eax jmp 0x719e9 decl %eax movq %rbp, %r15 movl %eax, %esi leaq 0x58(%rsp), %rax movq %rax, 0x48(%rsp) movq %r12, %rbp movq %r12, %rdi xorl %edx, %edx callq 0x1ba00 movq 0x48(%rsp), %rdi movl 0x50(%rsp), %esi movl %r14d, %edx callq 0x5941b movl $0x1b, %r8d movq %rbp, %r12 movq %rbp, %rdi xorl %esi, %esi xorl %edx, %edx leaq 0x7eee3(%rip), %rcx # 0xf0910 callq 0x1b9b0 movq %r15, %rbp movq %r15, 0x28(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x71a58 movq %rdx, 0x28(%rsp) movq (%rcx), %rdx movq %rdx, 0x38(%rsp) jmp 0x71a5f movups (%rcx), %xmm0 movups %xmm0, (%rbp) movq 0x8(%rax), %rdx movq %rdx, 0x30(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x28(%rsp), %rdi leaq 0x7eea9(%rip), %rsi # 0xf092c callq 0x1c0f0 movq %r13, 0x8(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x71aab movq %rdx, 0x8(%rsp) movq (%rcx), %rdx movq %rdx, 0x18(%rsp) jmp 0x71ab3 movups (%rcx), %xmm0 movups %xmm0, (%r13) movq 0x8(%rax), %rdx movq %rdx, 0x10(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) movq %rbx, %rdi leaq 0x8(%rsp), %rsi movl $0x8, %edx callq 0x1be00 movq 0x8(%rsp), %rdi cmpq %r13, %rdi je 0x71af4 movq 0x18(%rsp), %rsi incq %rsi callq 0x1b8c0 movq 0x28(%rsp), %rdi cmpq %rbp, %rdi je 0x71b0b movq 0x38(%rsp), %rsi incq %rsi callq 0x1b8c0 movq 0x48(%rsp), %rdi leaq 0x58(%rsp), %rax cmpq %rax, %rdi je 0x71b27 movq 0x58(%rsp), %rsi incq %rsi callq 0x1b8c0 leaq 0x118(%rsp), %rdi callq 0x1b1d0 testb %al, %al je 0x71bd2 movq %r13, 0x8(%rsp) movq $0x0, 0x10(%rsp) movb $0x0, 0x18(%rsp) movq 0xa0(%rsp), %rax movq -0x18(%rax), %rdi addq %rbx, %rdi movl $0xa, %esi callq 0x1b850 movsbl %al, %edx movq %rbx, %rdi leaq 0x8(%rsp), %rsi callq 0x1c050 movq (%rax), %rcx movq -0x18(%rcx), %rcx testb $0x5, 0x20(%rax,%rcx) jne 0x71b9f leaq 0x68(%rsp), %rdi movq %rdi, 0x28(%rsp) leaq 0x8(%rsp), %rsi leaq 0x28(%rsp), %rdx callq 0xb9394 movq 0x8(%rsp), %rdi cmpq %r13, %rdi je 0x71bb6 movq 0x18(%rsp), %rsi incq %rsi callq 0x1b8c0 movq %rbx, %rdi callq 0x1b1f0 incl %r14d cmpl $-0x1, %r14d movl $0xd1b71759, %esi # imm = 0xD1B71759 jne 0x7199e jmp 0x71bdf leaq 0xa0(%rsp), %rdi callq 0x1b1f0 movq 0x80(%rsp), %rbx testq %rbx, %rbx jne 0x71c05 callq 0x1bbd0 cmpl $0x5, %eax setae %cl movl %eax, %edx shrl %cl, %edx testl %eax, %eax movl $0x4, %ebx cmovnel %edx, %ebx leaq 0x68(%rsp), %rdi callq 0x7f284 movl %ebx, %eax addq $0x2a8, %rsp # imm = 0x2A8 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx jmp 0x71c47 movq %rax, %rbx jmp 0x71ca8 movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r13, %rdi je 0x71c47 movq 0x18(%rsp), %rsi incq %rsi callq 0x1b8c0 movq 0x28(%rsp), %rdi cmpq %r15, %rdi je 0x71c63 movq 0x38(%rsp), %rsi incq %rsi callq 0x1b8c0 jmp 0x71c63 movq %rax, %rbx movq 0x48(%rsp), %rdi leaq 0x58(%rsp), %rax cmpq %rax, %rdi je 0x71ca8 movq 0x58(%rsp), %rsi incq %rsi callq 0x1b8c0 jmp 0x71ca8 movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r13, %rdi je 0x71c9b movq 0x18(%rsp), %rsi incq %rsi callq 0x1b8c0 leaq 0xa0(%rsp), %rdi callq 0x1b1f0 leaq 0x68(%rsp), %rdi callq 0x7f284 movq %rbx, %rdi callq 0x1bf90
_Z26cpu_get_num_physical_coresv: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 2A8h lea rax, [rsp+2D8h+var_240] mov [rax-30h], rax mov qword ptr [rax-28h], 1 xorps xmm0, xmm0 movups xmmword ptr [rax-20h], xmm0 mov dword ptr [rax-10h], 3F800000h movups xmmword ptr [rax-8], xmm0 lea rbp, [rsp+2D8h+var_2A0] lea r13, [rsp+2D8h+var_2C0] xor r14d, r14d lea r12, [rsp+2D8h+var_290] lea rbx, [rsp+2D8h+var_238] mov esi, 0D1B71759h loc_7199E: mov eax, 1 cmp r14d, 0Ah jb short loc_719E9 mov eax, 4 mov ecx, r14d loc_719B1: cmp ecx, 63h ; 'c' jbe short loc_719E2 cmp ecx, 3E7h jbe short loc_719E7 cmp ecx, 2710h jb short loc_719E9 mov edx, ecx imul rdx, rsi shr rdx, 2Dh add eax, 4 cmp ecx, 1869Fh mov ecx, edx ja short loc_719B1 add eax, 0FFFFFFFDh jmp short loc_719E9 loc_719E2: add eax, 0FFFFFFFEh jmp short loc_719E9 loc_719E7: dec eax loc_719E9: mov r15, rbp mov esi, eax lea rax, [rsp+2D8h+var_280] mov [rsp+2D8h+var_290], rax mov rbp, r12 mov rdi, r12 xor edx, edx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc; std::string::_M_construct(ulong,char) mov rdi, [rsp+2D8h+var_290] mov esi, [rsp+2D8h+var_288] mov edx, r14d call _ZNSt8__detail18__to_chars_10_implIjEEvPcjT_; std::__detail::__to_chars_10_impl<uint>(char *,uint,uint) mov r8d, 1Bh mov r12, rbp mov rdi, rbp xor esi, esi xor edx, edx lea rcx, aSysDevicesSyst; "/sys/devices/system/cpu/cpu" call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong) mov rbp, r15 mov [rsp+2D8h+var_2B0], r15 mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jz short loc_71A58 mov [rsp+2D8h+var_2B0], rdx mov rdx, [rcx] mov [rsp+2D8h+var_2A0], rdx jmp short loc_71A5F loc_71A58: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [rbp+0], xmm0 loc_71A5F: mov rdx, [rax+8] mov [rsp+2D8h+var_2A8], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 lea rdi, [rsp+2D8h+var_2B0] lea rsi, aTopologyThread; "/topology/thread_siblings" call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov [rsp+2D8h+var_2D0], r13 mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jz short loc_71AAB mov [rsp+2D8h+var_2D0], rdx mov rdx, [rcx] mov [rsp+2D8h+var_2C0], rdx jmp short loc_71AB3 loc_71AAB: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [r13+0], xmm0 loc_71AB3: mov rdx, [rax+8] mov [rsp+2D8h+var_2C8], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 mov rdi, rbx lea rsi, [rsp+2D8h+var_2D0] mov edx, 8 call __ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1ERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode; std::ifstream::basic_ifstream(std::string const&,std::_Ios_Openmode) mov rdi, [rsp+2D8h+var_2D0]; void * cmp rdi, r13 jz short loc_71AF4 mov rsi, [rsp+2D8h+var_2C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_71AF4: mov rdi, [rsp+2D8h+var_2B0]; void * cmp rdi, rbp jz short loc_71B0B mov rsi, [rsp+2D8h+var_2A0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_71B0B: mov rdi, [rsp+2D8h+var_290]; void * lea rax, [rsp+2D8h+var_280] cmp rdi, rax jz short loc_71B27 mov rsi, [rsp+2D8h+var_280] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_71B27: lea rdi, [rsp+2D8h+var_1C0] call __ZNKSt12__basic_fileIcE7is_openEv; std::__basic_file<char>::is_open(void) test al, al jz loc_71BD2 mov [rsp+2D8h+var_2D0], r13 mov [rsp+2D8h+var_2C8], 0 mov byte ptr [rsp+2D8h+var_2C0], 0 mov rax, [rsp+2D8h+var_238] mov rdi, [rax-18h] add rdi, rbx mov esi, 0Ah call __ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc; std::ios::widen(char) movsx edx, al mov rdi, rbx lea rsi, [rsp+2D8h+var_2D0] call __ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_; std::getline<char,std::char_traits<char>,std::allocator<char>>(std::istream &,std::string &,char) mov rcx, [rax] mov rcx, [rcx-18h] test byte ptr [rax+rcx+20h], 5 jnz short loc_71B9F lea rdi, [rsp+2D8h+var_270] mov [rsp+2D8h+var_2B0], rdi lea rsi, [rsp+2D8h+var_2D0] lea rdx, [rsp+2D8h+var_2B0] call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEE9_M_insertIRKS5_NS7_10_AllocNodeISaINS7_10_Hash_nodeIS5_Lb1EEEEEEEESt4pairINS7_14_Node_iteratorIS5_Lb1ELb1EEEbEOT_RKT0_St17integral_constantIbLb1EE; std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::_M_insert<std::string const&,std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::string,true>>>>(std::string const&,std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::string,true>>> const&,std::integral_constant<bool,true>) loc_71B9F: mov rdi, [rsp+2D8h+var_2D0]; void * cmp rdi, r13 jz short loc_71BB6 mov rsi, [rsp+2D8h+var_2C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_71BB6: mov rdi, rbx call __ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev; std::ifstream::~ifstream() inc r14d cmp r14d, 0FFFFFFFFh mov esi, 0D1B71759h jnz loc_7199E jmp short loc_71BDF loc_71BD2: lea rdi, [rsp+2D8h+var_238]; this call __ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev; std::ifstream::~ifstream() loc_71BDF: mov rbx, [rsp+2D8h+var_258] test rbx, rbx jnz short loc_71C05 call __ZNSt6thread20hardware_concurrencyEv; std::thread::hardware_concurrency(void) cmp eax, 5 setnb cl mov edx, eax shr edx, cl test eax, eax mov ebx, 4 cmovnz ebx, edx loc_71C05: lea rdi, [rsp+2D8h+var_270] call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEED2Ev; std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::~_Hashtable() mov eax, ebx add rsp, 2A8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax jmp short loc_71C47 mov rbx, rax jmp short loc_71CA8 mov rbx, rax mov rdi, [rsp+arg_0]; void * cmp rdi, r13 jz short loc_71C47 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_71C47: mov rdi, [rsp+arg_20]; void * cmp rdi, r15 jz short loc_71C63 mov rsi, [rsp+arg_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_71C63 mov rbx, rax loc_71C63: mov rdi, [rsp+arg_40]; void * lea rax, [rsp+arg_50] cmp rdi, rax jz short loc_71CA8 mov rsi, [rsp+arg_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_71CA8 mov rbx, rax mov rdi, [rsp+arg_0]; void * cmp rdi, r13 jz short loc_71C9B mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_71C9B: lea rdi, [rsp+arg_98] call __ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev; std::ifstream::~ifstream() loc_71CA8: lea rdi, [rsp+arg_60] call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEED2Ev; std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::~_Hashtable() mov rdi, rbx call __Unwind_Resume
long long cpu_get_num_physical_cores(void) { unsigned int v0; // r14d unsigned int v1; // eax unsigned int v2; // ecx bool v3; // cc long long v4; // rax __int128 *v5; // rcx long long v6; // rax __int128 *v7; // rcx long long v8; // rsi char v9; // al _QWORD *v10; // rax int v11; // r8d int v12; // r9d long long v13; // rcx unsigned int v14; // ebx unsigned int v15; // eax char v17; // [rsp+0h] [rbp-2D8h] void *v18; // [rsp+8h] [rbp-2D0h] BYREF long long v19; // [rsp+10h] [rbp-2C8h] __int128 v20; // [rsp+18h] [rbp-2C0h] BYREF void *v21[2]; // [rsp+28h] [rbp-2B0h] BYREF __int128 v22; // [rsp+38h] [rbp-2A0h] BYREF void *v23; // [rsp+48h] [rbp-290h] BYREF int v24; // [rsp+50h] [rbp-288h] _QWORD v25[2]; // [rsp+58h] [rbp-280h] BYREF _QWORD v26[2]; // [rsp+68h] [rbp-270h] BYREF __int128 v27; // [rsp+78h] [rbp-260h] int v28; // [rsp+88h] [rbp-250h] __int128 v29; // [rsp+90h] [rbp-248h] BYREF _QWORD v30[15]; // [rsp+A0h] [rbp-238h] BYREF _BYTE v31[448]; // [rsp+118h] [rbp-1C0h] BYREF v26[0] = (char *)&v29 + 8; v26[1] = 1LL; v27 = 0LL; v28 = 1065353216; v29 = 0LL; v0 = 0; while ( 1 ) { v1 = 1; if ( v0 >= 0xA ) { v1 = 4; v2 = v0; while ( 1 ) { if ( v2 <= 0x63 ) { v1 -= 2; goto LABEL_11; } if ( v2 <= 0x3E7 ) break; if ( v2 < 0x2710 ) goto LABEL_11; v1 += 4; v3 = v2 <= 0x1869F; v2 /= 0x2710u; if ( v3 ) { v1 -= 3; goto LABEL_11; } } --v1; } LABEL_11: v23 = v25; std::string::_M_construct(&v23, v1, 0LL); std::__detail::__to_chars_10_impl<unsigned int>((char *)v23, v24, v0); v4 = std::string::replace(&v23, 0LL, 0LL, "/sys/devices/system/cpu/cpu", 27LL); v21[0] = &v22; v5 = (__int128 *)(v4 + 16); if ( *(_QWORD *)v4 == v4 + 16 ) { v22 = *v5; } else { v21[0] = *(void **)v4; *(_QWORD *)&v22 = *(_QWORD *)v5; } v21[1] = *(void **)(v4 + 8); *(_QWORD *)v4 = v5; *(_QWORD *)(v4 + 8) = 0LL; *(_BYTE *)(v4 + 16) = 0; v6 = std::string::append(v21, "/topology/thread_siblings"); v18 = &v20; v7 = (__int128 *)(v6 + 16); if ( *(_QWORD *)v6 == v6 + 16 ) { v20 = *v7; } else { v18 = *(void **)v6; *(_QWORD *)&v20 = *(_QWORD *)v7; } v19 = *(_QWORD *)(v6 + 8); *(_QWORD *)v6 = v7; *(_QWORD *)(v6 + 8) = 0LL; *(_BYTE *)(v6 + 16) = 0; v8 = (long long)&v18; std::ifstream::basic_ifstream(v30, &v18, 8LL); if ( v18 != &v20 ) { v8 = v20 + 1; operator delete(v18, v20 + 1); } if ( v21[0] != &v22 ) { v8 = v22 + 1; operator delete(v21[0], v22 + 1); } if ( v23 != v25 ) { v8 = v25[0] + 1LL; operator delete(v23, v25[0] + 1LL); } if ( !(unsigned __int8)std::__basic_file<char>::is_open(v31) ) break; v18 = &v20; v19 = 0LL; LOBYTE(v20) = 0; v9 = std::ios::widen((char *)v30 + *(_QWORD *)(v30[0] - 24LL), 10LL); v10 = (_QWORD *)std::getline<char,std::char_traits<char>,std::allocator<char>>(v30, &v18, (unsigned int)v9); v13 = *(_QWORD *)(*v10 - 24LL); if ( (*((_BYTE *)v10 + v13 + 32) & 5) == 0 ) { v21[0] = v26; std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::_M_insert<std::string const&,std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::string,true>>>>( (unsigned int)v26, (unsigned int)&v18, (unsigned int)v21, v13, v11, v12, v17); } if ( v18 != &v20 ) operator delete(v18, v20 + 1); std::ifstream::~ifstream(v30); ++v0; v8 = 3518437209LL; if ( v0 == -1 ) goto LABEL_31; } std::ifstream::~ifstream(v30); LABEL_31: v14 = DWORD2(v27); if ( !*((_QWORD *)&v27 + 1) ) { v15 = std::thread::hardware_concurrency((std::thread *)v30); v14 = 4; if ( v15 ) v14 = v15 >> (v15 >= 5); } std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::~_Hashtable( v26, v8); return v14; }
cpu_get_num_physical_cores: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x2a8 LEA RAX,[RSP + 0x98] MOV qword ptr [RAX + -0x30],RAX MOV qword ptr [RAX + -0x28],0x1 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX + -0x20],XMM0 MOV dword ptr [RAX + -0x10],0x3f800000 MOVUPS xmmword ptr [RAX + -0x8],XMM0 LEA RBP,[RSP + 0x38] LEA R13,[RSP + 0x18] XOR R14D,R14D LEA R12,[RSP + 0x48] LEA RBX,[RSP + 0xa0] MOV ESI,0xd1b71759 LAB_0017199e: MOV EAX,0x1 CMP R14D,0xa JC 0x001719e9 MOV EAX,0x4 MOV ECX,R14D LAB_001719b1: CMP ECX,0x63 JBE 0x001719e2 CMP ECX,0x3e7 JBE 0x001719e7 CMP ECX,0x2710 JC 0x001719e9 MOV EDX,ECX IMUL RDX,RSI SHR RDX,0x2d ADD EAX,0x4 CMP ECX,0x1869f MOV ECX,EDX JA 0x001719b1 ADD EAX,-0x3 JMP 0x001719e9 LAB_001719e2: ADD EAX,-0x2 JMP 0x001719e9 LAB_001719e7: DEC EAX LAB_001719e9: MOV R15,RBP MOV ESI,EAX LEA RAX,[RSP + 0x58] MOV qword ptr [RSP + 0x48],RAX LAB_001719f8: MOV RBP,R12 MOV RDI,R12 XOR EDX,EDX CALL 0x0011ba00 MOV RDI,qword ptr [RSP + 0x48] MOV ESI,dword ptr [RSP + 0x50] MOV EDX,R14D CALL 0x0015941b LAB_00171a16: MOV R8D,0x1b MOV R12,RBP MOV RDI,RBP XOR ESI,ESI XOR EDX,EDX LEA RCX,[0x1f0910] CALL 0x0011b9b0 MOV RBP,R15 MOV qword ptr [RSP + 0x28],R15 MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JZ 0x00171a58 MOV qword ptr [RSP + 0x28],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x38],RDX JMP 0x00171a5f LAB_00171a58: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [RBP],XMM0 LAB_00171a5f: MOV RDX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x30],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 LAB_00171a77: LEA RDI,[RSP + 0x28] LEA RSI,[0x1f092c] CALL 0x0011c0f0 MOV qword ptr [RSP + 0x8],R13 MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JZ 0x00171aab MOV qword ptr [RSP + 0x8],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x18],RDX JMP 0x00171ab3 LAB_00171aab: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [R13],XMM0 LAB_00171ab3: MOV RDX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x10],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 LAB_00171acb: MOV RDI,RBX LEA RSI,[RSP + 0x8] MOV EDX,0x8 CALL 0x0011be00 MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R13 JZ 0x00171af4 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0011b8c0 LAB_00171af4: MOV RDI,qword ptr [RSP + 0x28] CMP RDI,RBP JZ 0x00171b0b MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x0011b8c0 LAB_00171b0b: MOV RDI,qword ptr [RSP + 0x48] LEA RAX,[RSP + 0x58] CMP RDI,RAX JZ 0x00171b27 MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x0011b8c0 LAB_00171b27: LEA RDI,[RSP + 0x118] CALL 0x0011b1d0 TEST AL,AL JZ 0x00171bd2 MOV qword ptr [RSP + 0x8],R13 MOV qword ptr [RSP + 0x10],0x0 MOV byte ptr [RSP + 0x18],0x0 MOV RAX,qword ptr [RSP + 0xa0] MOV RDI,qword ptr [RAX + -0x18] ADD RDI,RBX LAB_00171b5e: MOV ESI,0xa CALL 0x0011b850 MOVSX EDX,AL MOV RDI,RBX LEA RSI,[RSP + 0x8] CALL 0x0011c050 MOV RCX,qword ptr [RAX] MOV RCX,qword ptr [RCX + -0x18] TEST byte ptr [RAX + RCX*0x1 + 0x20],0x5 JNZ 0x00171b9f LEA RDI,[RSP + 0x68] MOV qword ptr [RSP + 0x28],RDI LEA RSI,[RSP + 0x8] LEA RDX,[RSP + 0x28] CALL 0x001b9394 LAB_00171b9f: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R13 JZ 0x00171bb6 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0011b8c0 LAB_00171bb6: MOV RDI,RBX CALL 0x0011b1f0 INC R14D CMP R14D,-0x1 MOV ESI,0xd1b71759 JNZ 0x0017199e JMP 0x00171bdf LAB_00171bd2: LEA RDI,[RSP + 0xa0] CALL 0x0011b1f0 LAB_00171bdf: MOV RBX,qword ptr [RSP + 0x80] TEST RBX,RBX JNZ 0x00171c05 CALL 0x0011bbd0 CMP EAX,0x5 SETNC CL MOV EDX,EAX SHR EDX,CL TEST EAX,EAX MOV EBX,0x4 CMOVNZ EBX,EDX LAB_00171c05: LEA RDI,[RSP + 0x68] CALL 0x0017f284 MOV EAX,EBX ADD RSP,0x2a8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* WARNING: Unknown calling convention -- yet parameter storage is locked */ /* cpu_get_num_physical_cores() */ ulong cpu_get_num_physical_cores(void) { char cVar1; char cVar2; long *plVar3; istream *piVar4; uint uVar5; int8 **ppuVar6; ulong *puVar7; ulong uVar8; uint uVar9; ulong *local_2d0; long local_2c8; ulong local_2c0; int4 uStack_2b8; int4 uStack_2b4; int8 **local_2b0; long local_2a8; int8 *local_2a0; long lStack_298; long *local_290; uint local_288; long local_280 [2]; int8 *local_270; int8 local_268; int8 local_260; ulong uStack_258; int4 local_250; int8 local_248; int8 uStack_240; long local_238 [65]; local_270 = &uStack_240; local_268 = 1; local_260 = 0; uStack_258 = 0; local_250 = 0x3f800000; local_248 = 0; uStack_240 = 0; uVar9 = 0; do { cVar2 = '\x01'; if (9 < uVar9) { uVar8 = (ulong)uVar9; cVar1 = '\x04'; do { cVar2 = cVar1; uVar5 = (uint)uVar8; if (uVar5 < 100) { cVar2 = cVar2 + -2; goto LAB_001719e9; } if (uVar5 < 1000) { cVar2 = cVar2 + -1; goto LAB_001719e9; } if (uVar5 < 10000) goto LAB_001719e9; uVar8 = uVar8 / 10000; cVar1 = cVar2 + '\x04'; } while (99999 < uVar5); cVar2 = cVar2 + '\x01'; } LAB_001719e9: local_290 = local_280; /* try { // try from 001719f8 to 00171a04 has its CatchHandler @ 00171c28 */ std::__cxx11::string::_M_construct((ulong)&local_290,cVar2); std::__detail::__to_chars_10_impl<unsigned_int>((char *)local_290,local_288,uVar9); /* try { // try from 00171a16 to 00171a31 has its CatchHandler @ 00171c60 */ plVar3 = (long *)std::__cxx11::string::replace((ulong)&local_290,0,(char *)0x0,0x1f0910); ppuVar6 = (int8 **)(plVar3 + 2); if ((int8 **)*plVar3 == ppuVar6) { local_2a0 = *ppuVar6; lStack_298 = plVar3[3]; local_2b0 = &local_2a0; } else { local_2a0 = *ppuVar6; local_2b0 = (int8 **)*plVar3; } local_2a8 = plVar3[1]; *plVar3 = (long)ppuVar6; plVar3[1] = 0; *(int1 *)(plVar3 + 2) = 0; /* try { // try from 00171a77 to 00171a87 has its CatchHandler @ 00171c23 */ plVar3 = (long *)std::__cxx11::string::append((char *)&local_2b0); puVar7 = (ulong *)(plVar3 + 2); if ((ulong *)*plVar3 == puVar7) { local_2c0 = *puVar7; uStack_2b8 = (int4)plVar3[3]; uStack_2b4 = *(int4 *)((long)plVar3 + 0x1c); local_2d0 = &local_2c0; } else { local_2c0 = *puVar7; local_2d0 = (ulong *)*plVar3; } local_2c8 = plVar3[1]; *plVar3 = (long)puVar7; plVar3[1] = 0; *(int1 *)(plVar3 + 2) = 0; /* try { // try from 00171acb to 00171adc has its CatchHandler @ 00171c2d */ std::ifstream::ifstream((ifstream *)local_238,&local_2d0,8); if (local_2d0 != &local_2c0) { operator_delete(local_2d0,local_2c0 + 1); } if (local_2b0 != &local_2a0) { operator_delete(local_2b0,(long)local_2a0 + 1); } if (local_290 != local_280) { operator_delete(local_290,local_280[0] + 1); } cVar2 = std::__basic_file<char>::is_open(); if (cVar2 == '\0') { std::ifstream::~ifstream((ifstream *)local_238); goto LAB_00171bdf; } local_2c8 = 0; local_2c0 = local_2c0 & 0xffffffffffffff00; local_2d0 = &local_2c0; /* try { // try from 00171b5e to 00171b9e has its CatchHandler @ 00171c81 */ cVar2 = std::ios::widen((char)*(int8 *)(local_238[0] + -0x18) + (char)(istream *)local_238 ); piVar4 = std::getline<char,std::char_traits<char>,std::allocator<char>> ((istream *)local_238,(string *)&local_2d0,cVar2); if (((byte)piVar4[*(long *)(*(long *)piVar4 + -0x18) + 0x20] & 5) == 0) { local_2b0 = &local_270; std:: _Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>> :: _M_insert<std::__cxx11::string_const&,std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::__cxx11::string,true>>>> (local_2b0,&local_2d0,&local_2b0); } if (local_2d0 != &local_2c0) { operator_delete(local_2d0,local_2c0 + 1); } std::ifstream::~ifstream((ifstream *)local_238); uVar9 = uVar9 + 1; if (uVar9 == 0xffffffff) { LAB_00171bdf: uVar8 = uStack_258; if (uStack_258 == 0) { uVar9 = std::thread::hardware_concurrency(); uVar8 = 4; if (uVar9 != 0) { uVar8 = (ulong)(uVar9 >> (4 < uVar9)); } } std:: _Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>> ::~_Hashtable((_Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>> *)&local_270); return uVar8 & 0xffffffff; } } while( true ); }
53,162
mysql_session_track_get_next
eloqsql/libmariadb/libmariadb/mariadb_lib.c
int STDCALL mysql_session_track_get_next(MYSQL *mysql, enum enum_session_state_type type, const char **data, size_t *length) { MYSQL_LEX_STRING *str; if (!mysql->extension->session_state[type].current) return 1; str= (MYSQL_LEX_STRING *)mysql->extension->session_state[type].current->data; mysql->extension->session_state[type].current= mysql->extension->session_state[type].current->next; *data= str->str ? str->str : NULL; *length= str->str ? str->length : 0; return 0; }
O0
c
mysql_session_track_get_next: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x10(%rbp), %rax movq 0x4f0(%rax), %rax addq $0x8, %rax movl -0x14(%rbp), %ecx shlq $0x4, %rcx addq %rcx, %rax cmpq $0x0, 0x8(%rax) jne 0x243df movl $0x1, -0x4(%rbp) jmp 0x2449e movq -0x10(%rbp), %rax movq 0x4f0(%rax), %rax addq $0x8, %rax movl -0x14(%rbp), %ecx shlq $0x4, %rcx addq %rcx, %rax movq 0x8(%rax), %rax movq 0x10(%rax), %rax movq %rax, -0x30(%rbp) movq -0x10(%rbp), %rax movq 0x4f0(%rax), %rax addq $0x8, %rax movl -0x14(%rbp), %ecx shlq $0x4, %rcx addq %rcx, %rax movq 0x8(%rax), %rax movq 0x8(%rax), %rcx movq -0x10(%rbp), %rax movq 0x4f0(%rax), %rax addq $0x8, %rax movl -0x14(%rbp), %edx shlq $0x4, %rdx addq %rdx, %rax movq %rcx, 0x8(%rax) movq -0x30(%rbp), %rax cmpq $0x0, (%rax) je 0x24459 movq -0x30(%rbp), %rax movq (%rax), %rax movq %rax, -0x38(%rbp) jmp 0x24461 xorl %eax, %eax movq %rax, -0x38(%rbp) jmp 0x24461 movq -0x38(%rbp), %rcx movq -0x20(%rbp), %rax movq %rcx, (%rax) movq -0x30(%rbp), %rax cmpq $0x0, (%rax) je 0x24484 movq -0x30(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x40(%rbp) jmp 0x2448c xorl %eax, %eax movq %rax, -0x40(%rbp) jmp 0x2448c movq -0x40(%rbp), %rcx movq -0x28(%rbp), %rax movq %rcx, (%rax) movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopw %cs:(%rax,%rax)
mysql_session_track_get_next: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov rax, [rbp+var_10] mov rax, [rax+4F0h] add rax, 8 mov ecx, [rbp+var_14] shl rcx, 4 add rax, rcx cmp qword ptr [rax+8], 0 jnz short loc_243DF mov [rbp+var_4], 1 jmp loc_2449E loc_243DF: mov rax, [rbp+var_10] mov rax, [rax+4F0h] add rax, 8 mov ecx, [rbp+var_14] shl rcx, 4 add rax, rcx mov rax, [rax+8] mov rax, [rax+10h] mov [rbp+var_30], rax mov rax, [rbp+var_10] mov rax, [rax+4F0h] add rax, 8 mov ecx, [rbp+var_14] shl rcx, 4 add rax, rcx mov rax, [rax+8] mov rcx, [rax+8] mov rax, [rbp+var_10] mov rax, [rax+4F0h] add rax, 8 mov edx, [rbp+var_14] shl rdx, 4 add rax, rdx mov [rax+8], rcx mov rax, [rbp+var_30] cmp qword ptr [rax], 0 jz short loc_24459 mov rax, [rbp+var_30] mov rax, [rax] mov [rbp+var_38], rax jmp short loc_24461 loc_24459: xor eax, eax mov [rbp+var_38], rax jmp short $+2 loc_24461: mov rcx, [rbp+var_38] mov rax, [rbp+var_20] mov [rax], rcx mov rax, [rbp+var_30] cmp qword ptr [rax], 0 jz short loc_24484 mov rax, [rbp+var_30] mov rax, [rax+8] mov [rbp+var_40], rax jmp short loc_2448C loc_24484: xor eax, eax mov [rbp+var_40], rax jmp short $+2 loc_2448C: mov rcx, [rbp+var_40] mov rax, [rbp+var_28] mov [rax], rcx mov [rbp+var_4], 0 loc_2449E: mov eax, [rbp+var_4] pop rbp retn
long long mysql_session_track_get_next(long long a1, unsigned int a2, _QWORD *a3, _QWORD *a4) { long long v5; // [rsp+0h] [rbp-40h] long long v6; // [rsp+8h] [rbp-38h] long long *v7; // [rsp+10h] [rbp-30h] if ( *(_QWORD *)(16LL * a2 + *(_QWORD *)(a1 + 1264) + 8LL + 8) ) { v7 = *(long long **)(*(_QWORD *)(16LL * a2 + *(_QWORD *)(a1 + 1264) + 8LL + 8) + 16LL); *(_QWORD *)(16LL * a2 + *(_QWORD *)(a1 + 1264) + 8LL + 8) = *(_QWORD *)(*(_QWORD *)(16LL * a2 + *(_QWORD *)(a1 + 1264) + 8LL + 8) + 8LL); if ( *v7 ) v6 = *v7; else v6 = 0LL; *a3 = v6; if ( *v7 ) v5 = v7[1]; else v5 = 0LL; *a4 = v5; return 0; } else { return 1; } }
mysql_session_track_get_next: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x4f0] ADD RAX,0x8 MOV ECX,dword ptr [RBP + -0x14] SHL RCX,0x4 ADD RAX,RCX CMP qword ptr [RAX + 0x8],0x0 JNZ 0x001243df MOV dword ptr [RBP + -0x4],0x1 JMP 0x0012449e LAB_001243df: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x4f0] ADD RAX,0x8 MOV ECX,dword ptr [RBP + -0x14] SHL RCX,0x4 ADD RAX,RCX MOV RAX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x4f0] ADD RAX,0x8 MOV ECX,dword ptr [RBP + -0x14] SHL RCX,0x4 ADD RAX,RCX MOV RAX,qword ptr [RAX + 0x8] MOV RCX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x4f0] ADD RAX,0x8 MOV EDX,dword ptr [RBP + -0x14] SHL RDX,0x4 ADD RAX,RDX MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RBP + -0x30] CMP qword ptr [RAX],0x0 JZ 0x00124459 MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x38],RAX JMP 0x00124461 LAB_00124459: XOR EAX,EAX MOV qword ptr [RBP + -0x38],RAX JMP 0x00124461 LAB_00124461: MOV RCX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x30] CMP qword ptr [RAX],0x0 JZ 0x00124484 MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x40],RAX JMP 0x0012448c LAB_00124484: XOR EAX,EAX MOV qword ptr [RBP + -0x40],RAX JMP 0x0012448c LAB_0012448c: MOV RCX,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x0 LAB_0012449e: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int4 mysql_session_track_get_next(long param_1,uint param_2,long *param_3,long *param_4) { long *plVar1; long local_48; long local_40; int4 local_c; if (*(long *)(*(long *)(param_1 + 0x4f0) + (ulong)param_2 * 0x10 + 0x10) == 0) { local_c = 1; } else { plVar1 = *(long **)(*(long *)(*(long *)(param_1 + 0x4f0) + (ulong)param_2 * 0x10 + 0x10) + 0x10) ; *(int8 *)(*(long *)(param_1 + 0x4f0) + (ulong)param_2 * 0x10 + 0x10) = *(int8 *)(*(long *)(*(long *)(param_1 + 0x4f0) + (ulong)param_2 * 0x10 + 0x10) + 8); if (*plVar1 == 0) { local_40 = 0; } else { local_40 = *plVar1; } *param_3 = local_40; if (*plVar1 == 0) { local_48 = 0; } else { local_48 = plVar1[1]; } *param_4 = local_48; local_c = 0; } return local_c; }
53,163
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 0x6ad2a jmp 0x6ad06 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 0x6aea0 movl %eax, -0x4(%rbp) jmp 0x6ae91 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 0x6ad47 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 0x6ad79 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 0x6ae03 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 0xf1950 movl %eax, -0x3c(%rbp) cmpl $0x0, %eax jl 0x6adf8 movl -0x48(%rbp), %eax movl %eax, -0x4c(%rbp) jmp 0x6ae01 movl -0x48(%rbp), %eax addl $0x1, %eax movl %eax, -0x44(%rbp) jmp 0x6ad98 movl -0x48(%rbp), %eax cmpl -0x44(%rbp), %eax je 0x6ae4b 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 0xf1950 movl %eax, -0x3c(%rbp) cmpl $0x0, -0x3c(%rbp) jge 0x6ae5a 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 0x6ae89 jmp 0x6ae8b 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_6AD2A jmp short $+2 loc_6AD06: 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_6AE91 loc_6AD2A: 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_6AD47: 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_6AD79: 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_6AD98: mov eax, [rbp+var_44] cmp eax, [rbp+var_4C] jz short loc_6AE03 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_6ADF8 mov eax, [rbp+var_48] mov [rbp+var_4C], eax jmp short loc_6AE01 loc_6ADF8: mov eax, [rbp+var_48] add eax, 1 mov [rbp+var_44], eax loc_6AE01: jmp short loc_6AD98 loc_6AE03: mov eax, [rbp+var_48] cmp eax, [rbp+var_44] jz short loc_6AE4B 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_6AE4B: cmp [rbp+var_3C], 0 jge short loc_6AE5A mov eax, [rbp+var_44] add eax, 1 mov [rbp+var_44], eax loc_6AE5A: 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_6AE89: jmp short $+2 loc_6AE8B: mov eax, [rbp+var_3C] mov [rbp+var_4], eax loc_6AE91: 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 0x0016ad2a JMP 0x0016ad06 LAB_0016ad06: 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 0x0016aea0 MOV dword ptr [RBP + -0x4],EAX JMP 0x0016ae91 LAB_0016ad2a: 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 0x0016ad47 LAB_0016ad47: 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 0x0016ad79 LAB_0016ad79: 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_0016ad98: MOV EAX,dword ptr [RBP + -0x44] CMP EAX,dword ptr [RBP + -0x4c] JZ 0x0016ae03 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 0x001f1950 MOV dword ptr [RBP + -0x3c],EAX CMP EAX,0x0 JL 0x0016adf8 MOV EAX,dword ptr [RBP + -0x48] MOV dword ptr [RBP + -0x4c],EAX JMP 0x0016ae01 LAB_0016adf8: MOV EAX,dword ptr [RBP + -0x48] ADD EAX,0x1 MOV dword ptr [RBP + -0x44],EAX LAB_0016ae01: JMP 0x0016ad98 LAB_0016ae03: MOV EAX,dword ptr [RBP + -0x48] CMP EAX,dword ptr [RBP + -0x44] JZ 0x0016ae4b 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 0x001f1950 MOV dword ptr [RBP + -0x3c],EAX LAB_0016ae4b: CMP dword ptr [RBP + -0x3c],0x0 JGE 0x0016ae5a MOV EAX,dword ptr [RBP + -0x44] ADD EAX,0x1 MOV dword ptr [RBP + -0x44],EAX LAB_0016ae5a: 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 0x0016ae89 LAB_0016ae89: JMP 0x0016ae8b LAB_0016ae8b: MOV EAX,dword ptr [RBP + -0x3c] MOV dword ptr [RBP + -0x4],EAX LAB_0016ae91: 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; }
53,164
common_sampler_sample_and_accept_n(common_sampler*, llama_context*, std::vector<int, std::allocator<int>> const&, std::vector<int, std::allocator<int>> const&, bool)
monkey531[P]llama/common/sampling.cpp
std::vector<llama_token> common_sampler_sample_and_accept_n(struct common_sampler * gsmpl, struct llama_context * ctx, const std::vector<int> & idxs, const llama_tokens & draft, bool grammar_first) { GGML_ASSERT(idxs.size() == draft.size() + 1 && "idxs.size() must be draft.size() + 1"); std::vector<llama_token> result; result.reserve(idxs.size()); size_t i = 0; for (; i < draft.size(); i++) { const llama_token id = common_sampler_sample(gsmpl, ctx, idxs[i], grammar_first); common_sampler_accept(gsmpl, id, true); result.push_back(id); if (draft[i] != id) { break; } } if (i == draft.size()) { const llama_token id = common_sampler_sample(gsmpl, ctx, idxs[i], grammar_first); common_sampler_accept(gsmpl, id, true); result.push_back(id); } return result; }
O3
cpp
common_sampler_sample_and_accept_n(common_sampler*, llama_context*, std::vector<int, std::allocator<int>> const&, std::vector<int, std::allocator<int>> const&, bool): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdx, 0x10(%rsp) movq %rsi, %r14 movq 0x8(%rcx), %rsi subq (%rcx), %rsi movq 0x8(%r8), %rax subq (%r8), %rax sarq $0x2, %rsi sarq $0x2, %rax incq %rax cmpq %rax, %rsi jne 0xd1457 movl %r9d, %ebp movq %r8, %r13 movq %rcx, %r12 movq %rdi, %rbx xorps %xmm0, %xmm0 movups %xmm0, (%rdi) movq $0x0, 0x10(%rdi) callq 0xd2394 movq 0x8(%r13), %rax movzbl %bpl, %ebp cmpq (%r13), %rax je 0xd13e4 xorl %r15d, %r15d movq (%r12), %rax movl (%rax,%r15,4), %edx movq %r14, %rdi movq 0x10(%rsp), %rsi movl %ebp, %ecx callq 0xd11b0 movl %eax, 0x8(%rsp) movq %r14, %rdi movl %eax, %esi movl $0x1, %edx callq 0xd0ff7 movq 0x8(%rbx), %rsi cmpq 0x10(%rbx), %rsi je 0xd13b1 movl 0x8(%rsp), %edx movl %edx, (%rsi) addq $0x4, %rsi movq %rsi, 0x8(%rbx) jmp 0xd13c2 movq %rbx, %rdi leaq 0x8(%rsp), %rdx callq 0x25242 movl 0x8(%rsp), %edx movq (%r13), %rax movq 0x8(%r13), %rcx cmpl %edx, (%rax,%r15,4) jne 0xd13ea incq %r15 movq %rcx, %rdx subq %rax, %rdx sarq $0x2, %rdx cmpq %rdx, %r15 jb 0xd136d jmp 0xd13ea xorl %r15d, %r15d movq %rax, %rcx subq %rax, %rcx sarq $0x2, %rcx cmpq %rcx, %r15 jne 0xd1445 movq (%r12), %rax movl (%rax,%r15,4), %edx movq %r14, %rdi movq 0x10(%rsp), %rsi movl %ebp, %ecx callq 0xd11b0 movl %eax, %ebp movl %eax, 0xc(%rsp) movq %r14, %rdi movl %eax, %esi movl $0x1, %edx callq 0xd0ff7 movq 0x8(%rbx), %rsi cmpq 0x10(%rbx), %rsi je 0xd1438 movl %ebp, (%rsi) addq $0x4, %rsi movq %rsi, 0x8(%rbx) jmp 0xd1445 leaq 0xc(%rsp), %rdx movq %rbx, %rdi callq 0x25242 movq %rbx, %rax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x27213(%rip), %rdi # 0xf8671 leaq 0x17fb7(%rip), %rdx # 0xe941c leaq 0x27392(%rip), %rcx # 0xf87fe movl $0x155, %esi # imm = 0x155 xorl %eax, %eax callq 0x1c130 jmp 0xd147c jmp 0xd147c movq %rax, %r14 movq (%rbx), %rdi testq %rdi, %rdi je 0xd1493 movq 0x10(%rbx), %rsi subq %rdi, %rsi callq 0x1ba60 movq %r14, %rdi callq 0x1c250
_Z34common_sampler_sample_and_accept_nP14common_samplerP13llama_contextRKSt6vectorIiSaIiEES7_b: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov [rsp+48h+var_38], rdx mov r14, rsi mov rsi, [rcx+8] sub rsi, [rcx] mov rax, [r8+8] sub rax, [r8] sar rsi, 2 sar rax, 2 inc rax cmp rsi, rax jnz loc_D1457 mov ebp, r9d mov r13, r8 mov r12, rcx mov rbx, rdi xorps xmm0, xmm0 movups xmmword ptr [rdi], xmm0 mov qword ptr [rdi+10h], 0 call _ZNSt6vectorIiSaIiEE7reserveEm; std::vector<int>::reserve(ulong) mov rax, [r13+8] movzx ebp, bpl cmp rax, [r13+0] jz short loc_D13E4 xor r15d, r15d loc_D136D: mov rax, [r12] mov edx, [rax+r15*4] mov rdi, r14 mov rsi, [rsp+48h+var_38] mov ecx, ebp call _Z21common_sampler_sampleP14common_samplerP13llama_contextib; common_sampler_sample(common_sampler *,llama_context *,int,bool) mov [rsp+48h+var_40], eax mov rdi, r14 mov esi, eax mov edx, 1 call _Z21common_sampler_acceptP14common_samplerib; common_sampler_accept(common_sampler *,int,bool) mov rsi, [rbx+8] cmp rsi, [rbx+10h] jz short loc_D13B1 mov edx, [rsp+48h+var_40] mov [rsi], edx add rsi, 4 mov [rbx+8], rsi jmp short loc_D13C2 loc_D13B1: mov rdi, rbx lea rdx, [rsp+48h+var_40] call _ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_; std::vector<int>::_M_realloc_insert<int const&>(__gnu_cxx::__normal_iterator<int *,std::vector<int>>,int const&) mov edx, [rsp+48h+var_40] loc_D13C2: mov rax, [r13+0] mov rcx, [r13+8] cmp [rax+r15*4], edx jnz short loc_D13EA inc r15 mov rdx, rcx sub rdx, rax sar rdx, 2 cmp r15, rdx jb short loc_D136D jmp short loc_D13EA loc_D13E4: xor r15d, r15d mov rcx, rax loc_D13EA: sub rcx, rax sar rcx, 2 cmp r15, rcx jnz short loc_D1445 mov rax, [r12] mov edx, [rax+r15*4] mov rdi, r14 mov rsi, [rsp+48h+var_38] mov ecx, ebp call _Z21common_sampler_sampleP14common_samplerP13llama_contextib; common_sampler_sample(common_sampler *,llama_context *,int,bool) mov ebp, eax mov [rsp+48h+var_3C], eax mov rdi, r14 mov esi, eax mov edx, 1 call _Z21common_sampler_acceptP14common_samplerib; common_sampler_accept(common_sampler *,int,bool) mov rsi, [rbx+8] cmp rsi, [rbx+10h] jz short loc_D1438 mov [rsi], ebp add rsi, 4 mov [rbx+8], rsi jmp short loc_D1445 loc_D1438: lea rdx, [rsp+48h+var_3C] mov rdi, rbx call _ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_; std::vector<int>::_M_realloc_insert<int const&>(__gnu_cxx::__normal_iterator<int *,std::vector<int>>,int const&) loc_D1445: mov rax, rbx add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_D1457: lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aIdxsSizeDraftS; "idxs.size() == draft.size() + 1 && \"id"... mov esi, 155h xor eax, eax call _ggml_abort jmp short loc_D147C jmp short $+2 loc_D147C: mov r14, rax mov rdi, [rbx]; void * test rdi, rdi jz short loc_D1493 mov rsi, [rbx+10h] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_D1493: mov rdi, r14 call __Unwind_Resume
long long common_sampler_sample_and_accept_n( long long a1, _QWORD *a2, long long a3, _QWORD *a4, long long *a5, unsigned __int8 a6) { long long v6; // rbx long long v11; // rax unsigned long long v12; // r15 _DWORD *v13; // rsi unsigned int v14; // edx long long v15; // rcx unsigned int v16; // ebp unsigned int *v17; // rsi long long v19; // rax long long v20; // r14 unsigned int v21; // [rsp+8h] [rbp-40h] BYREF unsigned int v22; // [rsp+Ch] [rbp-3Ch] BYREF long long v23; // [rsp+10h] [rbp-38h] v23 = a3; if ( (long long)(a4[1] - *a4) >> 2 != ((a5[1] - *a5) >> 2) + 1 ) { ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/sampling.cpp", 341LL, "GGML_ASSERT(%s) failed", "idxs.size() == draft.size() + 1 && \"idxs.size() must be draft.size() + 1\""); v20 = v19; if ( *(_QWORD *)v6 ) operator delete(*(void **)v6, *(_QWORD *)(v6 + 16) - *(_QWORD *)v6); _Unwind_Resume(v20); } *(_OWORD *)a1 = 0LL; *(_QWORD *)(a1 + 16) = 0LL; std::vector<int>::reserve(); v11 = a5[1]; if ( v11 == *a5 ) { v12 = 0LL; v15 = a5[1]; } else { v12 = 0LL; do { v21 = common_sampler_sample(a2, v23, *(_DWORD *)(*a4 + 4 * v12), a6); common_sampler_accept(a2, v21, 1); v13 = *(_DWORD **)(a1 + 8); if ( v13 == *(_DWORD **)(a1 + 16) ) { std::vector<int>::_M_realloc_insert<int const&>(a1, (long long)v13, &v21); v14 = v21; } else { v14 = v21; *v13 = v21; *(_QWORD *)(a1 + 8) = v13 + 1; } v11 = *a5; v15 = a5[1]; if ( *(_DWORD *)(*a5 + 4 * v12) != v14 ) break; ++v12; } while ( v12 < (v15 - v11) >> 2 ); } if ( v12 == (v15 - v11) >> 2 ) { v16 = common_sampler_sample(a2, v23, *(_DWORD *)(*a4 + 4 * v12), a6); v22 = v16; common_sampler_accept(a2, v16, 1); v17 = *(unsigned int **)(a1 + 8); if ( v17 == *(unsigned int **)(a1 + 16) ) { std::vector<int>::_M_realloc_insert<int const&>(a1, (long long)v17, &v22); } else { *v17 = v16; *(_QWORD *)(a1 + 8) = v17 + 1; } } return a1; }
common_sampler_sample_and_accept_n: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV qword ptr [RSP + 0x10],RDX MOV R14,RSI MOV RSI,qword ptr [RCX + 0x8] SUB RSI,qword ptr [RCX] MOV RAX,qword ptr [R8 + 0x8] SUB RAX,qword ptr [R8] SAR RSI,0x2 SAR RAX,0x2 INC RAX CMP RSI,RAX JNZ 0x001d1457 MOV EBP,R9D MOV R13,R8 MOV R12,RCX MOV RBX,RDI XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI],XMM0 MOV qword ptr [RDI + 0x10],0x0 LAB_001d1357: CALL 0x001d2394 MOV RAX,qword ptr [R13 + 0x8] MOVZX EBP,BPL CMP RAX,qword ptr [R13] JZ 0x001d13e4 XOR R15D,R15D LAB_001d136d: MOV RAX,qword ptr [R12] MOV EDX,dword ptr [RAX + R15*0x4] LAB_001d1375: MOV RDI,R14 MOV RSI,qword ptr [RSP + 0x10] MOV ECX,EBP CALL 0x001d11b0 MOV dword ptr [RSP + 0x8],EAX MOV RDI,R14 MOV ESI,EAX MOV EDX,0x1 CALL 0x001d0ff7 MOV RSI,qword ptr [RBX + 0x8] CMP RSI,qword ptr [RBX + 0x10] JZ 0x001d13b1 MOV EDX,dword ptr [RSP + 0x8] MOV dword ptr [RSI],EDX ADD RSI,0x4 MOV qword ptr [RBX + 0x8],RSI JMP 0x001d13c2 LAB_001d13b1: MOV RDI,RBX LEA RDX,[RSP + 0x8] CALL 0x00125242 MOV EDX,dword ptr [RSP + 0x8] LAB_001d13c2: MOV RAX,qword ptr [R13] MOV RCX,qword ptr [R13 + 0x8] CMP dword ptr [RAX + R15*0x4],EDX JNZ 0x001d13ea INC R15 MOV RDX,RCX SUB RDX,RAX SAR RDX,0x2 CMP R15,RDX JC 0x001d136d JMP 0x001d13ea LAB_001d13e4: XOR R15D,R15D MOV RCX,RAX LAB_001d13ea: SUB RCX,RAX SAR RCX,0x2 CMP R15,RCX JNZ 0x001d1445 MOV RAX,qword ptr [R12] MOV EDX,dword ptr [RAX + R15*0x4] LAB_001d13fe: MOV RDI,R14 MOV RSI,qword ptr [RSP + 0x10] MOV ECX,EBP CALL 0x001d11b0 MOV EBP,EAX MOV dword ptr [RSP + 0xc],EAX MOV RDI,R14 MOV ESI,EAX MOV EDX,0x1 CALL 0x001d0ff7 MOV RSI,qword ptr [RBX + 0x8] CMP RSI,qword ptr [RBX + 0x10] JZ 0x001d1438 MOV dword ptr [RSI],EBP ADD RSI,0x4 MOV qword ptr [RBX + 0x8],RSI JMP 0x001d1445 LAB_001d1438: LEA RDX,[RSP + 0xc] MOV RDI,RBX CALL 0x00125242 LAB_001d1445: MOV RAX,RBX ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001d1457: LEA RDI,[0x1f8671] LEA RDX,[0x1e941c] LEA RCX,[0x1f87fe] MOV ESI,0x155 XOR EAX,EAX CALL 0x0011c130
/* common_sampler_sample_and_accept_n(common_sampler*, llama_context*, std::vector<int, std::allocator<int> > const&, std::vector<int, std::allocator<int> > const&, bool) */ common_sampler * common_sampler_sample_and_accept_n (common_sampler *param_1,llama_context *param_2,vector *param_3,vector *param_4, bool param_5) { int *piVar1; long *plVar2; int iVar3; long lVar4; long lVar5; ulong uVar6; int7 in_register_00000081; bool in_R9B; int local_40; int local_3c; vector *local_38; uVar6 = *(long *)(param_4 + 8) - *(long *)param_4 >> 2; local_38 = param_3; if (uVar6 == (*(long *)(CONCAT71(in_register_00000081,param_5) + 8) - *(long *)CONCAT71(in_register_00000081,param_5) >> 2) + 1U) { plVar2 = (long *)CONCAT71(in_register_00000081,param_5); *(int8 *)param_1 = 0; *(int8 *)(param_1 + 8) = 0; *(int8 *)(param_1 + 0x10) = 0; /* try { // try from 001d1357 to 001d135b has its CatchHandler @ 001d1478 */ std::vector<int,std::allocator<int>>::reserve((vector<int,std::allocator<int>> *)param_1,uVar6); lVar4 = plVar2[1]; if (lVar4 == *plVar2) { uVar6 = 0; lVar5 = lVar4; } else { uVar6 = 0; do { /* try { // try from 001d1375 to 001d13bd has its CatchHandler @ 001d147c */ local_40 = common_sampler_sample ((common_sampler *)param_2,(llama_context *)local_38, *(int *)(*(long *)param_4 + uVar6 * 4),in_R9B); common_sampler_accept((common_sampler *)param_2,local_40,true); piVar1 = *(int **)(param_1 + 8); if (piVar1 == *(int **)(param_1 + 0x10)) { std::vector<int,std::allocator<int>>::_M_realloc_insert<int_const&> ((vector<int,std::allocator<int>> *)param_1,piVar1,&local_40); } else { *piVar1 = local_40; *(int **)(param_1 + 8) = piVar1 + 1; } lVar4 = *plVar2; lVar5 = plVar2[1]; } while ((*(int *)(lVar4 + uVar6 * 4) == local_40) && (uVar6 = uVar6 + 1, uVar6 < (ulong)(lVar5 - lVar4 >> 2))); } if (uVar6 == lVar5 - lVar4 >> 2) { /* try { // try from 001d13fe to 001d1444 has its CatchHandler @ 001d147a */ iVar3 = common_sampler_sample ((common_sampler *)param_2,(llama_context *)local_38, *(int *)(*(long *)param_4 + uVar6 * 4),in_R9B); local_3c = iVar3; common_sampler_accept((common_sampler *)param_2,iVar3,true); piVar1 = *(int **)(param_1 + 8); if (piVar1 == *(int **)(param_1 + 0x10)) { std::vector<int,std::allocator<int>>::_M_realloc_insert<int_const&> ((vector<int,std::allocator<int>> *)param_1,piVar1,&local_3c); } else { *piVar1 = iVar3; *(int **)(param_1 + 8) = piVar1 + 1; } } return param_1; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/sampling.cpp",0x155, "GGML_ASSERT(%s) failed", "idxs.size() == draft.size() + 1 && \"idxs.size() must be draft.size() + 1\""); }
53,165
testing::internal::AppendUserMessage(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, testing::Message const&)
AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest.cc
std::string AppendUserMessage(const std::string& gtest_msg, const Message& user_msg) { // Appends the user message if it's non-empty. const std::string user_msg_string = user_msg.GetString(); if (user_msg_string.empty()) { return gtest_msg; } if (gtest_msg.empty()) { return user_msg_string; } return gtest_msg + "\n" + user_msg_string; }
O0
cpp
testing::internal::AppendUserMessage(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, testing::Message const&): subq $0x78, %rsp movq %rdi, (%rsp) movq %rdi, %rax movq %rax, 0x8(%rsp) movq %rdi, 0x70(%rsp) movq %rsi, 0x68(%rsp) movq %rdx, 0x60(%rsp) movq 0x60(%rsp), %rsi leaq 0x40(%rsp), %rdi callq 0xbad90 leaq 0x40(%rsp), %rdi callq 0x41750 testb $0x1, %al jne 0xc515e jmp 0xc518e movq (%rsp), %rdi movq 0x68(%rsp), %rsi callq 0x2f810 jmp 0xc516e movl $0x1, 0x30(%rsp) jmp 0xc5213 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x38(%rsp) movl %eax, 0x34(%rsp) jmp 0xc5227 movq 0x68(%rsp), %rdi callq 0x41750 testb $0x1, %al jne 0xc519e jmp 0xc51b8 movq (%rsp), %rdi leaq 0x40(%rsp), %rsi callq 0x2f810 jmp 0xc51ae movl $0x1, 0x30(%rsp) jmp 0xc5213 movq 0x68(%rsp), %rsi leaq 0x586cf(%rip), %rdx # 0x11d893 leaq 0x10(%rsp), %rdi callq 0x94690 jmp 0xc51d0 movq (%rsp), %rdi leaq 0x10(%rsp), %rsi leaq 0x40(%rsp), %rdx callq 0xebc20 jmp 0xc51e5 leaq 0x10(%rsp), %rdi callq 0x1dfd0 movl $0x1, 0x30(%rsp) jmp 0xc5213 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x38(%rsp) movl %eax, 0x34(%rsp) leaq 0x10(%rsp), %rdi callq 0x1dfd0 jmp 0xc5227 leaq 0x40(%rsp), %rdi callq 0x1dfd0 movq 0x8(%rsp), %rax addq $0x78, %rsp retq leaq 0x40(%rsp), %rdi callq 0x1dfd0 movq 0x38(%rsp), %rdi callq 0x16cf0 nopl (%rax,%rax)
_ZN7testing8internal17AppendUserMessageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_7MessageE: sub rsp, 78h mov qword ptr [rsp+78h+var_78], rdi; int mov rax, rdi mov [rsp+78h+var_70], rax; void * mov [rsp+78h+var_8], rdi mov qword ptr [rsp+78h+var_10], rsi mov qword ptr [rsp+78h+var_18], rdx mov rsi, qword ptr [rsp+78h+var_18]; int lea rdi, [rsp+78h+var_38]; int call _ZNK7testing7Message9GetStringB5cxx11Ev; testing::Message::GetString(void) lea rdi, [rsp+78h+var_38] call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void) test al, 1 jnz short loc_C515E jmp short loc_C518E loc_C515E: mov rdi, qword ptr [rsp+78h+var_78] mov rsi, qword ptr [rsp+78h+var_10] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&) jmp short $+2 loc_C516E: mov [rsp+78h+var_48], 1 jmp loc_C5213 mov rcx, rax mov eax, edx mov [rsp+arg_30], rcx mov [rsp+arg_2C], eax jmp loc_C5227 loc_C518E: mov rdi, qword ptr [rsp+78h+var_10] call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void) test al, 1 jnz short loc_C519E jmp short loc_C51B8 loc_C519E: mov rdi, qword ptr [rsp+78h+var_78] lea rsi, [rsp+78h+var_38] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&) jmp short $+2 loc_C51AE: mov [rsp+78h+var_48], 1 jmp short loc_C5213 loc_C51B8: mov rsi, qword ptr [rsp+78h+var_10]; int lea rdx, aSFromSSMsTotal+19h; int lea rdi, [rsp+78h+var_68]; int call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_; std::operator+<char>(std::string const&,char const*) jmp short $+2 loc_C51D0: mov rdi, qword ptr [rsp+78h+var_78] lea rsi, [rsp+78h+var_68] lea rdx, [rsp+78h+var_38] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_; std::operator+<char>(std::string&&,std::string const&) jmp short $+2 loc_C51E5: lea rdi, [rsp+78h+var_68]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov [rsp+78h+var_48], 1 jmp short loc_C5213 mov rcx, rax mov eax, edx mov [rsp+arg_30], rcx mov [rsp+arg_2C], eax lea rdi, [rsp+arg_8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_C5227 loc_C5213: lea rdi, [rsp+78h+var_38]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rax, [rsp+78h+var_70] add rsp, 78h retn loc_C5227: lea rdi, [rsp+arg_38]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, [rsp+arg_30] call __Unwind_Resume
_QWORD * testing::internal::AppendUserMessage(_QWORD *a1, long long a2, long long a3) { _QWORD v4[4]; // [rsp+10h] [rbp-68h] BYREF int v5; // [rsp+30h] [rbp-48h] int v6[8]; // [rsp+40h] [rbp-38h] BYREF int v7[2]; // [rsp+60h] [rbp-18h] int v8[2]; // [rsp+68h] [rbp-10h] _QWORD *v9; // [rsp+70h] [rbp-8h] v9 = a1; *(_QWORD *)v8 = a2; *(_QWORD *)v7 = a3; testing::Message::GetString[abi:cxx11]((int)v6, a3); if ( std::string::empty((long long)v6) ) { std::string::basic_string(a1, *(long long *)v8); v5 = 1; } else { if ( std::string::empty(*(long long *)v8) ) { std::string::basic_string(a1, (long long)v6); } else { std::operator+<char>(v4, *(long long *)v8, (long long)"\n"); std::operator+<char>(a1, v4, v6); std::string::~string(v4); } v5 = 1; } std::string::~string(v6); return a1; }
AppendUserMessage: SUB RSP,0x78 MOV qword ptr [RSP],RDI MOV RAX,RDI MOV qword ptr [RSP + 0x8],RAX MOV qword ptr [RSP + 0x70],RDI MOV qword ptr [RSP + 0x68],RSI MOV qword ptr [RSP + 0x60],RDX MOV RSI,qword ptr [RSP + 0x60] LEA RDI,[RSP + 0x40] CALL 0x001bad90 LEA RDI,[RSP + 0x40] CALL 0x00141750 TEST AL,0x1 JNZ 0x001c515e JMP 0x001c518e LAB_001c515e: MOV RDI,qword ptr [RSP] MOV RSI,qword ptr [RSP + 0x68] LAB_001c5167: CALL 0x0012f810 JMP 0x001c516e LAB_001c516e: MOV dword ptr [RSP + 0x30],0x1 JMP 0x001c5213 LAB_001c518e: MOV RDI,qword ptr [RSP + 0x68] CALL 0x00141750 TEST AL,0x1 JNZ 0x001c519e JMP 0x001c51b8 LAB_001c519e: MOV RDI,qword ptr [RSP] LEA RSI,[RSP + 0x40] CALL 0x0012f810 JMP 0x001c51ae LAB_001c51ae: MOV dword ptr [RSP + 0x30],0x1 JMP 0x001c5213 LAB_001c51b8: MOV RSI,qword ptr [RSP + 0x68] LEA RDX,[0x21d893] LEA RDI,[RSP + 0x10] CALL 0x00194690 JMP 0x001c51d0 LAB_001c51d0: MOV RDI,qword ptr [RSP] LEA RSI,[RSP + 0x10] LEA RDX,[RSP + 0x40] CALL 0x001ebc20 LAB_001c51e3: JMP 0x001c51e5 LAB_001c51e5: LEA RDI,[RSP + 0x10] CALL 0x0011dfd0 MOV dword ptr [RSP + 0x30],0x1 JMP 0x001c5213 LAB_001c5213: LEA RDI,[RSP + 0x40] CALL 0x0011dfd0 MOV RAX,qword ptr [RSP + 0x8] ADD RSP,0x78 RET
/* testing::internal::AppendUserMessage(std::__cxx11::string const&, testing::Message const&) */ internal * __thiscall testing::internal::AppendUserMessage(internal *this,string *param_1,Message *param_2) { ulong uVar1; string local_68 [32]; int4 local_48; string local_38 [32]; Message *local_18; string *local_10; internal *local_8; local_18 = param_2; local_10 = param_1; local_8 = this; Message::GetString_abi_cxx11_(); uVar1 = std::__cxx11::string::empty(local_38); if ((uVar1 & 1) == 0) { uVar1 = std::__cxx11::string::empty(local_10); if ((uVar1 & 1) == 0) { std::operator+(local_68,(char *)local_10); /* try { // try from 001c51d0 to 001c51e2 has its CatchHandler @ 001c51f9 */ std::operator+((string *)this,local_68); std::__cxx11::string::~string(local_68); } else { std::__cxx11::string::string((string *)this,local_38); } } else { /* try { // try from 001c5167 to 001c51cd has its CatchHandler @ 001c517b */ std::__cxx11::string::string((string *)this,local_10); } local_48 = 1; std::__cxx11::string::~string(local_38); return this; }
53,166
SchemaConverter::check_errors()
monkey531[P]llama/common/json-schema-to-grammar.cpp
void check_errors() { if (!_errors.empty()) { throw std::runtime_error("JSON schema conversion failed:\n" + string_join(_errors, "\n")); } if (!_warnings.empty()) { fprintf(stderr, "WARNING: JSON schema conversion was incomplete: %s\n", string_join(_warnings, "; ").c_str()); } }
O0
cpp
SchemaConverter::check_errors(): subq $0x108, %rsp # imm = 0x108 movq %rdi, 0x100(%rsp) movq 0x100(%rsp), %rdi movq %rdi, 0x38(%rsp) addq $0xc8, %rdi callq 0x6ba40 testb $0x1, %al jne 0x1ab96f movb $0x1, 0x8b(%rsp) movl $0x10, %edi callq 0x5c740 movq %rax, %rcx movq 0x38(%rsp), %rax movq %rcx, 0x20(%rsp) addq $0xc8, %rax movq %rax, 0x28(%rsp) leaq 0x9f(%rsp), %rdi movq %rdi, 0x30(%rsp) callq 0x5d2b0 movq 0x30(%rsp), %rdx leaq 0x69ef6(%rip), %rsi # 0x21573e leaq 0xa0(%rsp), %rdi callq 0x65f10 jmp 0x1ab857 movq 0x28(%rsp), %rsi leaq 0xc0(%rsp), %rdi leaq 0xa0(%rsp), %rdx callq 0xf6830 jmp 0x1ab873 leaq 0x72d97(%rip), %rsi # 0x21e611 leaq 0xe0(%rsp), %rdi leaq 0xc0(%rsp), %rdx callq 0x1013d0 jmp 0x1ab891 movq 0x20(%rsp), %rdi leaq 0xe0(%rsp), %rsi callq 0x5c540 jmp 0x1ab8a5 movq 0x20(%rsp), %rdi movb $0x0, 0x8b(%rsp) movq 0x1016ef(%rip), %rsi # 0x2acfa8 movq 0x1016b0(%rip), %rdx # 0x2acf70 callq 0x5cbf0 jmp 0x1aba79 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x90(%rsp) movl %eax, 0x8c(%rsp) jmp 0x1ab947 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x90(%rsp) movl %eax, 0x8c(%rsp) jmp 0x1ab93a movq %rax, %rcx movl %edx, %eax movq %rcx, 0x90(%rsp) movl %eax, 0x8c(%rsp) jmp 0x1ab92d movq %rax, %rcx movl %edx, %eax movq %rcx, 0x90(%rsp) movl %eax, 0x8c(%rsp) leaq 0xe0(%rsp), %rdi callq 0x5d858 leaq 0xc0(%rsp), %rdi callq 0x5d858 leaq 0xa0(%rsp), %rdi callq 0x5d858 leaq 0x9f(%rsp), %rdi callq 0x5d830 testb $0x1, 0x8b(%rsp) jne 0x1ab960 jmp 0x1ab96a movq 0x20(%rsp), %rdi callq 0x5d110 jmp 0x1aba6c movq 0x38(%rsp), %rdi addq $0xe0, %rdi callq 0x6ba40 testb $0x1, %al jne 0x1aba64 movq 0x38(%rsp), %rax movq 0x1015a4(%rip), %rcx # 0x2acf38 movq (%rcx), %rcx movq %rcx, 0x8(%rsp) addq $0xe0, %rax movq %rax, 0x10(%rsp) leaq 0x47(%rsp), %rdi movq %rdi, 0x18(%rsp) callq 0x5d2b0 movq 0x18(%rsp), %rdx leaq 0x72ca3(%rip), %rsi # 0x21e665 leaq 0x48(%rsp), %rdi callq 0x65f10 jmp 0x1ab9ce movq 0x10(%rsp), %rsi leaq 0x68(%rsp), %rdi leaq 0x48(%rsp), %rdx callq 0xf6830 jmp 0x1ab9e4 leaq 0x68(%rsp), %rdi callq 0x5c1e0 movq 0x8(%rsp), %rdi movq %rax, %rdx leaq 0x72c34(%rip), %rsi # 0x21e631 movb $0x0, %al callq 0x5c390 leaq 0x68(%rsp), %rdi callq 0x5d858 leaq 0x48(%rsp), %rdi callq 0x5d858 leaq 0x47(%rsp), %rdi callq 0x5d830 jmp 0x1aba64 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x90(%rsp) movl %eax, 0x8c(%rsp) jmp 0x1aba58 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x90(%rsp) movl %eax, 0x8c(%rsp) leaq 0x48(%rsp), %rdi callq 0x5d858 leaq 0x47(%rsp), %rdi callq 0x5d830 jmp 0x1aba6c addq $0x108, %rsp # imm = 0x108 retq movq 0x90(%rsp), %rdi callq 0x5ccd0 nopl (%rax)
_ZN15SchemaConverter12check_errorsEv: sub rsp, 108h mov [rsp+108h+var_8], rdi mov rdi, [rsp+108h+var_8] mov [rsp+108h+var_D0], rdi add rdi, 0C8h call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5emptyEv; std::vector<std::string>::empty(void) test al, 1 jnz loc_1AB96F mov [rsp+108h+var_7D], 1 mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rcx, rax mov rax, [rsp+108h+var_D0] mov [rsp+108h+var_E8], rcx add rax, 0C8h mov [rsp+108h+var_E0], rax lea rdi, [rsp+108h+var_69] mov [rsp+108h+var_D8], rdi call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdx, [rsp+108h+var_D8] lea rsi, aExampleSpecifi+26h; "\n" lea rdi, [rsp+108h+var_68] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_1AB857: mov rsi, [rsp+108h+var_E0] lea rdi, [rsp+108h+var_48] lea rdx, [rsp+108h+var_68] call _Z11string_joinRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EERKS5_; string_join(std::vector<std::string> const&,std::string const&) jmp short $+2 loc_1AB873: lea rsi, aJsonSchemaConv; "JSON schema conversion failed:\n" lea rdi, [rsp+108h+var_28] lea rdx, [rsp+108h+var_48] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) jmp short $+2 loc_1AB891: mov rdi, [rsp+108h+var_E8] lea rsi, [rsp+108h+var_28] call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) jmp short $+2 loc_1AB8A5: mov rdi, [rsp+108h+var_E8]; void * mov [rsp+108h+var_7D], 0 mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) call ___cxa_throw jmp loc_1ABA79 mov rcx, rax mov eax, edx mov [rsp+arg_88], rcx mov [rsp+arg_84], eax jmp short loc_1AB947 mov rcx, rax mov eax, edx mov [rsp+arg_88], rcx mov [rsp+arg_84], eax jmp short loc_1AB93A mov rcx, rax mov eax, edx mov [rsp+arg_88], rcx mov [rsp+arg_84], eax jmp short loc_1AB92D mov rcx, rax mov eax, edx mov [rsp+arg_88], rcx mov [rsp+arg_84], eax lea rdi, [rsp+arg_D8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_1AB92D: lea rdi, [rsp+arg_B8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_1AB93A: lea rdi, [rsp+arg_98]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_1AB947: lea rdi, [rsp+arg_97] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() test [rsp+arg_83], 1 jnz short loc_1AB960 jmp short loc_1AB96A loc_1AB960: mov rdi, [rsp+arg_18]; void * call ___cxa_free_exception loc_1AB96A: jmp loc_1ABA6C loc_1AB96F: mov rdi, [rsp+108h+var_D0] add rdi, 0E0h call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5emptyEv; std::vector<std::string>::empty(void) test al, 1 jnz loc_1ABA64 mov rax, [rsp+108h+var_D0] mov rcx, cs:stderr_ptr mov rcx, [rcx] mov [rsp+108h+var_100], rcx add rax, 0E0h mov [rsp+108h+var_F8], rax lea rdi, [rsp+108h+var_C1] mov [rsp+108h+var_F0], rdi call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdx, [rsp+108h+var_F0] lea rsi, asc_21E665; "; " lea rdi, [rsp+108h+var_C0] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_1AB9CE: mov rsi, [rsp+108h+var_F8] lea rdi, [rsp+108h+var_A0] lea rdx, [rsp+108h+var_C0] call _Z11string_joinRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EERKS5_; string_join(std::vector<std::string> const&,std::string const&) jmp short $+2 loc_1AB9E4: lea rdi, [rsp+108h+var_A0] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void) mov rdi, [rsp+108h+var_100] mov rdx, rax lea rsi, aWarningJsonSch; "WARNING: JSON schema conversion was inc"... mov al, 0 call _fprintf lea rdi, [rsp+108h+var_A0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rsp+108h+var_C0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rsp+108h+var_C1] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() jmp short loc_1ABA64 mov rcx, rax mov eax, edx mov [rsp+arg_88], rcx mov [rsp+arg_84], eax jmp short loc_1ABA58 mov rcx, rax mov eax, edx mov [rsp+arg_88], rcx mov [rsp+arg_84], eax lea rdi, [rsp+arg_40]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_1ABA58: lea rdi, [rsp+arg_3F] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() jmp short loc_1ABA6C loc_1ABA64: add rsp, 108h retn loc_1ABA6C: mov rdi, [rsp+arg_88] call __Unwind_Resume loc_1ABA79: nop dword ptr [rax+00000000h]
char SchemaConverter::check_errors(SchemaConverter *this, long long a2) { char result; // al const char *v3; // rax long long v4; // [rsp+8h] [rbp-100h] void *exception; // [rsp+20h] [rbp-E8h] char v6; // [rsp+47h] [rbp-C1h] BYREF _BYTE v7[32]; // [rsp+48h] [rbp-C0h] BYREF _BYTE v8[55]; // [rsp+68h] [rbp-A0h] BYREF char v9; // [rsp+9Fh] [rbp-69h] BYREF _BYTE v10[32]; // [rsp+A0h] [rbp-68h] BYREF _BYTE v11[32]; // [rsp+C0h] [rbp-48h] BYREF _BYTE v12[32]; // [rsp+E0h] [rbp-28h] BYREF SchemaConverter *v13; // [rsp+100h] [rbp-8h] v13 = this; if ( (std::vector<std::string>::empty((long long)this + 200) & 1) == 0 ) { exception = __cxa_allocate_exception(0x10uLL); std::allocator<char>::allocator(&v9, a2); std::string::basic_string<std::allocator<char>>((long long)v10, (long long)"\n", (long long)&v9); string_join((long long)v11, (_QWORD *)this + 25, (long long)v10); std::operator+<char>((long long)v12, (long long)"JSON schema conversion failed:\n", (long long)v11); std::runtime_error::runtime_error(exception, v12); v8[35] = 0; __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } result = std::vector<std::string>::empty((long long)this + 224); if ( (result & 1) == 0 ) { v4 = stderr; std::allocator<char>::allocator(&v6, a2); std::string::basic_string<std::allocator<char>>((long long)v7, (long long)"; ", (long long)&v6); string_join((long long)v8, (_QWORD *)this + 28, (long long)v7); v3 = (const char *)std::string::c_str(v8); fprintf(v4, "WARNING: JSON schema conversion was incomplete: %s\n", v3); std::string::~string(v8); std::string::~string(v7); return std::allocator<char>::~allocator(&v6); } return result; }
allocate: SUB RSP,0x28 MOV qword ptr [RSP + 0x20],RDI MOV qword ptr [RSP + 0x18],RSI MOV qword ptr [RSP + 0x10],RDX MOV RDI,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x8],RAX CALL 0x001ab840 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x8] CMP RAX,RCX JBE 0x001ab81f MOV RAX,0x7ffffffffffffff CMP qword ptr [RSP + 0x18],RAX JBE 0x001ab81a CALL 0x0015c8c0 LAB_001ab81a: CALL 0x0015c160 LAB_001ab81f: MOV RDI,qword ptr [RSP + 0x18] SHL RDI,0x5 CALL 0x0015c2c0 ADD RSP,0x28 RET
/* __gnu_cxx::new_allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::string const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> > > > >::allocate(unsigned long, void const*) */ void __gnu_cxx:: new_allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> ::allocate(ulong param_1,void *param_2) { void *pvVar1; pvVar1 = (void *)_M_max_size(); if (pvVar1 < param_2) { if ((void *)0x7ffffffffffffff < param_2) { std::__throw_bad_array_new_length(); } std::__throw_bad_alloc(); } operator_new((long)param_2 << 5); return; }
53,167
translog_get_current_group_size
eloqsql/storage/maria/ma_loghandler.c
static translog_size_t translog_get_current_group_size() { /* buffer rest in full pages */ translog_size_t buffer_rest= translog_get_current_buffer_rest(); DBUG_ENTER("translog_get_current_group_size"); DBUG_PRINT("info", ("buffer_rest in pages: %u", buffer_rest)); buffer_rest*= log_descriptor.page_capacity_chunk_2; /* in case of only half of buffer free we can write this and next buffer */ if (buffer_rest < log_descriptor.half_buffer_capacity_chunk_2) { DBUG_PRINT("info", ("buffer_rest: %lu -> add %lu", (ulong) buffer_rest, (ulong) log_descriptor.buffer_capacity_chunk_2)); buffer_rest+= log_descriptor.buffer_capacity_chunk_2; } DBUG_PRINT("info", ("buffer_rest: %lu", (ulong) buffer_rest)); DBUG_RETURN(buffer_rest); }
O0
c
translog_get_current_group_size: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp callq 0x98490 movl %eax, -0x4(%rbp) jmp 0x98452 movzwl 0x3ec11d(%rip), %eax # 0x484576 imull -0x4(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax cmpl 0x3ec107(%rip), %eax # 0x484570 jae 0x9847b jmp 0x9846d jmp 0x9846f movl 0x3ec0f7(%rip), %eax # 0x48456c addl -0x4(%rbp), %eax movl %eax, -0x4(%rbp) jmp 0x9847d jmp 0x9847f jmp 0x98481 movl -0x4(%rbp), %eax movl %eax, -0x8(%rbp) movl -0x8(%rbp), %eax addq $0x10, %rsp popq %rbp retq
translog_get_current_group_size: push rbp mov rbp, rsp sub rsp, 10h call translog_get_current_buffer_rest mov [rbp+var_4], eax jmp short $+2 loc_98452: movzx eax, cs:word_484576 imul eax, [rbp+var_4] mov [rbp+var_4], eax mov eax, [rbp+var_4] cmp eax, cs:dword_484570 jnb short loc_9847B jmp short $+2 loc_9846D: jmp short $+2 loc_9846F: mov eax, cs:dword_48456C add eax, [rbp+var_4] mov [rbp+var_4], eax loc_9847B: jmp short $+2 loc_9847D: jmp short $+2 loc_9847F: jmp short $+2 loc_98481: mov eax, [rbp+var_4] mov [rbp+var_8], eax mov eax, [rbp+var_8] add rsp, 10h pop rbp retn
long long translog_get_current_group_size() { unsigned int v1; // [rsp+Ch] [rbp-4h] v1 = translog_get_current_buffer_rest() * (unsigned __int16)word_484576; if ( v1 < dword_484570 ) v1 += dword_48456C; return v1; }
translog_get_current_group_size: PUSH RBP MOV RBP,RSP SUB RSP,0x10 CALL 0x00198490 MOV dword ptr [RBP + -0x4],EAX JMP 0x00198452 LAB_00198452: MOVZX EAX,word ptr [0x00584576] IMUL EAX,dword ptr [RBP + -0x4] MOV dword ptr [RBP + -0x4],EAX MOV EAX,dword ptr [RBP + -0x4] CMP EAX,dword ptr [0x00584570] JNC 0x0019847b JMP 0x0019846d LAB_0019846d: JMP 0x0019846f LAB_0019846f: MOV EAX,dword ptr [0x0058456c] ADD EAX,dword ptr [RBP + -0x4] MOV dword ptr [RBP + -0x4],EAX LAB_0019847b: JMP 0x0019847d LAB_0019847d: JMP 0x0019847f LAB_0019847f: JMP 0x00198481 LAB_00198481: MOV EAX,dword ptr [RBP + -0x4] MOV dword ptr [RBP + -0x8],EAX MOV EAX,dword ptr [RBP + -0x8] ADD RSP,0x10 POP RBP RET
uint translog_get_current_group_size(void) { int iVar1; int4 local_c; iVar1 = translog_get_current_buffer_rest(); local_c = (uint)DAT_00584576 * iVar1; if (local_c < DAT_00584570) { local_c = DAT_0058456c + local_c; } return local_c; }
53,168
end_pagecache
eloqsql/storage/maria/ma_pagecache.c
void end_pagecache(PAGECACHE *pagecache, my_bool cleanup) { DBUG_ENTER("end_pagecache"); DBUG_PRINT("enter", ("key_cache: %p", pagecache)); if (!pagecache->inited) DBUG_VOID_RETURN; if (pagecache->disk_blocks > 0) { #ifndef DBUG_OFF check_pagecache_is_cleaned_up(pagecache); #endif if (pagecache->block_mem) { my_large_free(pagecache->block_mem, pagecache->mem_size); pagecache->block_mem= NULL; my_free(pagecache->block_root); pagecache->block_root= NULL; } pagecache->disk_blocks= -1; /* Reset blocks_changed to be safe if flush_all_key_blocks is called */ pagecache->blocks_changed= 0; } DBUG_PRINT("status", ("used: %zu changed: %zu w_requests: %llu " "writes: %llu r_requests: %llu reads: %llu", pagecache->blocks_used, pagecache->global_blocks_changed, pagecache->global_cache_w_requests, pagecache->global_cache_write, pagecache->global_cache_r_requests, pagecache->global_cache_read)); if (cleanup) { my_hash_free(&pagecache->files_in_flush); mysql_mutex_destroy(&pagecache->cache_lock); pagecache->inited= pagecache->can_be_used= 0; PAGECACHE_DEBUG_CLOSE; } DBUG_VOID_RETURN; }
O3
c
end_pagecache: cmpb $0x0, 0x1a8(%rdi) je 0x32570 pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movl %esi, %r14d movq %rdi, %rbx cmpq $0x0, 0x40(%rdi) jle 0x32514 movq 0xb0(%rbx), %rdi testq %rdi, %rdi je 0x32504 movq (%rbx), %rsi callq 0xa8eaf xorl %r15d, %r15d movq %r15, 0xb0(%rbx) movq 0xa8(%rbx), %rdi callq 0xa0f0a movq %r15, 0xa8(%rbx) movq $-0x1, 0x40(%rbx) movq $0x0, 0x58(%rbx) testb %r14b, %r14b je 0x32566 leaq 0x1b0(%rbx), %rdi callq 0x94b1d leaq 0xc8(%rbx), %r14 movq 0x108(%rbx), %rdi testq %rdi, %rdi je 0x32550 leaq 0x355b81(%rip), %rax # 0x3880c0 movq (%rax), %rax callq *0x48(%rax) movq $0x0, 0x108(%rbx) movq %r14, %rdi callq 0x290c0 xorl %eax, %eax movb %al, 0x1aa(%rbx) movb %al, 0x1a8(%rbx) addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
end_pagecache: cmp byte ptr [rdi+1A8h], 0 jz locret_32570 push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov r14d, esi mov rbx, rdi cmp qword ptr [rdi+40h], 0 jle short loc_32514 mov rdi, [rbx+0B0h] test rdi, rdi jz short loc_32504 mov rsi, [rbx] call my_large_free xor r15d, r15d mov [rbx+0B0h], r15 mov rdi, [rbx+0A8h] call my_free mov [rbx+0A8h], r15 loc_32504: mov qword ptr [rbx+40h], 0FFFFFFFFFFFFFFFFh mov qword ptr [rbx+58h], 0 loc_32514: test r14b, r14b jz short loc_32566 lea rdi, [rbx+1B0h] call my_hash_free lea r14, [rbx+0C8h] mov rdi, [rbx+108h] test rdi, rdi jz short loc_32550 lea rax, PSI_server mov rax, [rax] call qword ptr [rax+48h] mov qword ptr [rbx+108h], 0 loc_32550: mov rdi, r14 call _pthread_mutex_destroy xor eax, eax mov [rbx+1AAh], al mov [rbx+1A8h], al loc_32566: add rsp, 8 pop rbx pop r14 pop r15 pop rbp locret_32570: retn
long long end_pagecache(long long a1, char a2) { long long v3; // rdi long long result; // rax long long v5; // rdi if ( *(_BYTE *)(a1 + 424) ) { if ( *(long long *)(a1 + 64) > 0 ) { v3 = *(_QWORD *)(a1 + 176); if ( v3 ) { my_large_free(v3, *(_QWORD *)a1); *(_QWORD *)(a1 + 176) = 0LL; result = my_free(*(_QWORD *)(a1 + 168)); *(_QWORD *)(a1 + 168) = 0LL; } *(_QWORD *)(a1 + 64) = -1LL; *(_QWORD *)(a1 + 88) = 0LL; } if ( a2 ) { my_hash_free(a1 + 432); v5 = *(_QWORD *)(a1 + 264); if ( v5 ) { ((void ( *)(long long))PSI_server[9])(v5); *(_QWORD *)(a1 + 264) = 0LL; } pthread_mutex_destroy(a1 + 200); result = 0LL; *(_BYTE *)(a1 + 426) = 0; *(_BYTE *)(a1 + 424) = 0; } } return result; }
end_pagecache: CMP byte ptr [RDI + 0x1a8],0x0 JZ 0x00132570 PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV R14D,ESI MOV RBX,RDI CMP qword ptr [RDI + 0x40],0x0 JLE 0x00132514 MOV RDI,qword ptr [RBX + 0xb0] TEST RDI,RDI JZ 0x00132504 MOV RSI,qword ptr [RBX] CALL 0x001a8eaf XOR R15D,R15D MOV qword ptr [RBX + 0xb0],R15 MOV RDI,qword ptr [RBX + 0xa8] CALL 0x001a0f0a MOV qword ptr [RBX + 0xa8],R15 LAB_00132504: MOV qword ptr [RBX + 0x40],-0x1 MOV qword ptr [RBX + 0x58],0x0 LAB_00132514: TEST R14B,R14B JZ 0x00132566 LEA RDI,[RBX + 0x1b0] CALL 0x00194b1d LEA R14,[RBX + 0xc8] MOV RDI,qword ptr [RBX + 0x108] TEST RDI,RDI JZ 0x00132550 LEA RAX,[0x4880c0] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x48] MOV qword ptr [RBX + 0x108],0x0 LAB_00132550: MOV RDI,R14 CALL 0x001290c0 XOR EAX,EAX MOV byte ptr [RBX + 0x1aa],AL MOV byte ptr [RBX + 0x1a8],AL LAB_00132566: ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP LAB_00132570: RET
void end_pagecache(int8 *param_1,char param_2) { if (*(char *)(param_1 + 0x35) != '\0') { if (0 < (long)param_1[8]) { if (param_1[0x16] != 0) { my_large_free(param_1[0x16],*param_1); param_1[0x16] = 0; my_free(param_1[0x15]); param_1[0x15] = 0; } param_1[8] = 0xffffffffffffffff; param_1[0xb] = 0; } if (param_2 != '\0') { my_hash_free(param_1 + 0x36); if (param_1[0x21] != 0) { (**(code **)(PSI_server + 0x48))(); param_1[0x21] = 0; } pthread_mutex_destroy((pthread_mutex_t *)(param_1 + 0x19)); *(int1 *)((long)param_1 + 0x1aa) = 0; *(int1 *)(param_1 + 0x35) = 0; } } return; }
53,169
get_charsets_dir
eloqsql/mysys/charset.c
char *get_charsets_dir(char *buf) { const char *sharedir= SHAREDIR; char *res; DBUG_ENTER("get_charsets_dir"); if (charsets_dir != NULL) strmake(buf, charsets_dir, FN_REFLEN-1); else { if (test_if_hard_path(sharedir) || is_prefix(sharedir, DEFAULT_CHARSET_HOME)) strxmov(buf, sharedir, "/", CHARSET_DIR, NullS); else strxmov(buf, DEFAULT_CHARSET_HOME, "/", sharedir, "/", CHARSET_DIR, NullS); } res= convert_dirname(buf,buf,NullS); DBUG_PRINT("info",("charsets dir: '%s'", buf)); DBUG_RETURN(res); }
O0
c
get_charsets_dir: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) leaq 0x78801(%rip), %rax # 0x153e84 movq %rax, -0x10(%rbp) leaq 0xb9f022(%rip), %rax # 0xc7a6b0 cmpq $0x0, (%rax) je 0xdb6ae movq -0x8(%rbp), %rdi leaq 0xb9f011(%rip), %rax # 0xc7a6b0 movq (%rax), %rsi movl $0x1ff, %edx # imm = 0x1FF callq 0x14de30 jmp 0xdb728 movq -0x10(%rbp), %rdi callq 0xf03b0 cmpl $0x0, %eax jne 0xdb6d1 movq -0x10(%rbp), %rdi leaq 0x787d6(%rip), %rsi # 0x153e9d callq 0x14a680 cmpl $0x0, %eax je 0xdb6f5 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi leaq 0x79c3f(%rip), %rdx # 0x15531f leaq 0x787c9(%rip), %rcx # 0x153eb0 xorl %eax, %eax movl %eax, %r8d movb $0x0, %al callq 0x14df10 jmp 0xdb726 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rcx leaq 0x78799(%rip), %rsi # 0x153e9d leaq 0x79c14(%rip), %r8 # 0x15531f leaq 0x7879e(%rip), %r9 # 0x153eb0 xorl %eax, %eax movq %r8, %rdx movq $0x0, (%rsp) movb $0x0, %al callq 0x14df10 jmp 0xdb728 movq -0x8(%rbp), %rdi movq -0x8(%rbp), %rsi xorl %eax, %eax movl %eax, %edx callq 0xdf6d0 movq %rax, -0x18(%rbp) jmp 0xdb73f jmp 0xdb741 movq -0x18(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
get_charsets_dir: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi lea rax, aHomeMonoInstal; "/home/mono/install/share" mov [rbp+var_10], rax lea rax, charsets_dir cmp qword ptr [rax], 0 jz short loc_DB6AE mov rdi, [rbp+var_8] lea rax, charsets_dir mov rsi, [rax] mov edx, 1FFh call strmake jmp short loc_DB728 loc_DB6AE: mov rdi, [rbp+var_10] call test_if_hard_path cmp eax, 0 jnz short loc_DB6D1 mov rdi, [rbp+var_10] lea rsi, aHomeMonoInstal_0; "/home/mono/install" call is_prefix cmp eax, 0 jz short loc_DB6F5 loc_DB6D1: mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] lea rdx, word_15531F lea rcx, aCharsets; "charsets/" xor eax, eax mov r8d, eax mov al, 0 call strxmov jmp short loc_DB726 loc_DB6F5: mov rdi, [rbp+var_8] mov rcx, [rbp+var_10] lea rsi, aHomeMonoInstal_0; "/home/mono/install" lea r8, word_15531F lea r9, aCharsets; "charsets/" xor eax, eax mov rdx, r8 mov [rsp+30h+var_30], 0 mov al, 0 call strxmov loc_DB726: jmp short $+2 loc_DB728: mov rdi, [rbp+var_8] mov rsi, [rbp+var_8] xor eax, eax mov edx, eax call convert_dirname mov [rbp+var_18], rax jmp short $+2 loc_DB73F: jmp short $+2 loc_DB741: mov rax, [rbp+var_18] mov [rbp+var_20], rax mov rax, [rbp+var_20] add rsp, 30h pop rbp retn
long long get_charsets_dir(long long a1) { int v1; // r9d if ( charsets_dir ) { strmake(a1, charsets_dir, 511LL); } else if ( (unsigned int)test_if_hard_path("/home/mono/install/share") || (unsigned int)is_prefix("/home/mono/install/share", "/home/mono/install") ) { strxmov(a1, (unsigned int)"/home/mono/install/share", (unsigned int)&word_15531F, (unsigned int)"charsets/", 0, v1); } else { strxmov( a1, (unsigned int)"/home/mono/install", (unsigned int)&word_15531F, (unsigned int)"/home/mono/install/share", (unsigned int)&word_15531F, (unsigned int)"charsets/", 0LL); } return convert_dirname(a1, a1, 0LL); }
get_charsets_dir: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI LEA RAX,[0x253e84] MOV qword ptr [RBP + -0x10],RAX LEA RAX,[0xd7a6b0] CMP qword ptr [RAX],0x0 JZ 0x001db6ae MOV RDI,qword ptr [RBP + -0x8] LEA RAX,[0xd7a6b0] MOV RSI,qword ptr [RAX] MOV EDX,0x1ff CALL 0x0024de30 JMP 0x001db728 LAB_001db6ae: MOV RDI,qword ptr [RBP + -0x10] CALL 0x001f03b0 CMP EAX,0x0 JNZ 0x001db6d1 MOV RDI,qword ptr [RBP + -0x10] LEA RSI,[0x253e9d] CALL 0x0024a680 CMP EAX,0x0 JZ 0x001db6f5 LAB_001db6d1: MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] LEA RDX,[0x25531f] LEA RCX,[0x253eb0] XOR EAX,EAX MOV R8D,EAX MOV AL,0x0 CALL 0x0024df10 JMP 0x001db726 LAB_001db6f5: MOV RDI,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RBP + -0x10] LEA RSI,[0x253e9d] LEA R8,[0x25531f] LEA R9,[0x253eb0] XOR EAX,EAX MOV RDX,R8 MOV qword ptr [RSP],0x0 MOV AL,0x0 CALL 0x0024df10 LAB_001db726: JMP 0x001db728 LAB_001db728: MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x8] XOR EAX,EAX MOV EDX,EAX CALL 0x001df6d0 MOV qword ptr [RBP + -0x18],RAX JMP 0x001db73f LAB_001db73f: JMP 0x001db741 LAB_001db741: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x20] ADD RSP,0x30 POP RBP RET
int8 get_charsets_dir(int8 param_1) { int iVar1; int8 uVar2; if (charsets_dir == 0) { iVar1 = test_if_hard_path("/home/mono/install/share"); if ((iVar1 == 0) && (iVar1 = is_prefix("/home/mono/install/share","/home/mono/install"), iVar1 == 0)) { strxmov(param_1,"/home/mono/install",&DAT_0025531f,"/home/mono/install/share",&DAT_0025531f, "charsets/",0); } else { strxmov(param_1,"/home/mono/install/share",&DAT_0025531f,"charsets/",0); } } else { strmake(param_1,charsets_dir,0x1ff); } uVar2 = convert_dirname(param_1,param_1,0); return uVar2; }
53,170
Common::CaseInsensitiveLess::operator()(std::basic_string_view<char, std::char_traits<char>>, std::basic_string_view<char, std::char_traits<char>>) const
Dolphin-anty/Source/Core/Common/StringUtil.cpp
bool CaseInsensitiveLess::operator()(std::string_view a, std::string_view b) const { return std::ranges::lexicographical_compare( a, b, [](char ca, char cb) { return Common::ToLower(ca) < Common::ToLower(cb); }); }
O3
cpp
Common::CaseInsensitiveLess::operator()(std::basic_string_view<char, std::char_traits<char>>, std::basic_string_view<char, std::char_traits<char>>) const: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rcx, %r12 movq %rdx, %rbx testq %rsi, %rsi sete %cl testq %r12, %r12 setne %al sete %dl orb %cl, %dl movq %rbx, %rcx jne 0x1431e movq %r8, %r15 movq %rsi, (%rsp) leaq -0x1(%rsi), %r13 decq %r12 xorl %r14d, %r14d movzbl (%r15,%r14), %esi movzbl (%rbx,%r14), %edi callq 0x14396 movl %eax, %ebp testb %al, %al jne 0x1432b movzbl (%rbx,%r14), %esi movzbl (%r15,%r14), %edi callq 0x14396 testb %al, %al jne 0x1432b cmpq %r14, %r12 setne %al leaq 0x1(%r14), %rcx cmpq %r14, %r13 je 0x14317 cmpq %r14, %r12 movq %rcx, %r14 jne 0x142d8 addq %rbx, %rcx movq (%rsp), %rsi addq %rsi, %rbx cmpq %rbx, %rcx sete %bpl andb %al, %bpl movl %ebp, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZNK6Common19CaseInsensitiveLessclESt17basic_string_viewIcSt11char_traitsIcEES4_: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov r12, rcx mov rbx, rdx test rsi, rsi setz cl test r12, r12 setnz al setz dl or dl, cl mov rcx, rbx jnz short loc_1431E mov r15, r8 mov [rsp+38h+var_38], rsi lea r13, [rsi-1] dec r12 xor r14d, r14d loc_142D8: movzx esi, byte ptr [r15+r14] movzx edi, byte ptr [rbx+r14] call _ZSt8__invokeIRZNK6Common19CaseInsensitiveLessclESt17basic_string_viewIcSt11char_traitsIcEES5_E3$_0JRKcS9_EENSt15__invoke_resultIT_JDpT0_EE4typeEOSB_DpOSC_; std::__invoke<Common::CaseInsensitiveLess::operator()(std::string_view,std::string_view)::$_0 &,char const&,char const&>(Common::CaseInsensitiveLess::operator()(std::string_view,std::string_view)::$_0 &&&,char const&,char const&&&) mov ebp, eax test al, al jnz short loc_1432B movzx esi, byte ptr [rbx+r14] movzx edi, byte ptr [r15+r14] call _ZSt8__invokeIRZNK6Common19CaseInsensitiveLessclESt17basic_string_viewIcSt11char_traitsIcEES5_E3$_0JRKcS9_EENSt15__invoke_resultIT_JDpT0_EE4typeEOSB_DpOSC_; std::__invoke<Common::CaseInsensitiveLess::operator()(std::string_view,std::string_view)::$_0 &,char const&,char const&>(Common::CaseInsensitiveLess::operator()(std::string_view,std::string_view)::$_0 &&&,char const&,char const&&&) test al, al jnz short loc_1432B cmp r12, r14 setnz al lea rcx, [r14+1] cmp r13, r14 jz short loc_14317 cmp r12, r14 mov r14, rcx jnz short loc_142D8 loc_14317: add rcx, rbx mov rsi, [rsp+38h+var_38] loc_1431E: add rbx, rsi cmp rcx, rbx setz bpl and bpl, al loc_1432B: mov eax, ebp add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long Common::CaseInsensitiveLess::operator()(long long a1, long long a2, long long a3, long long a4, long long a5) { unsigned int v5; // ebp long long v7; // rbx bool v8; // al long long v9; // rcx long long v11; // r12 long long v12; // r14 long long v13; // rdx long long v14; // rcx v7 = a3; v8 = a4 != 0; LOBYTE(a3) = a2 == 0 || a4 == 0; v9 = v7; if ( (_BYTE)a3 ) { LABEL_8: LOBYTE(v5) = v8 && v9 == a2 + v7; } else { v11 = a4 - 1; v12 = 0LL; while ( 1 ) { v5 = std::__invoke<Common::CaseInsensitiveLess::operator()(std::string_view,std::string_view)::$_0 &,char const&,char const&>( *(unsigned __int8 *)(v7 + v12), *(unsigned __int8 *)(a5 + v12), a3, v9); if ( (_BYTE)v5 || (unsigned __int8)std::__invoke<Common::CaseInsensitiveLess::operator()(std::string_view,std::string_view)::$_0 &,char const&,char const&>( *(unsigned __int8 *)(a5 + v12), *(unsigned __int8 *)(v7 + v12), v13, v14) ) { break; } v8 = v11 != v12; v9 = v12 + 1; if ( a2 - 1 != v12 && v11 != v12++ ) continue; v9 += v7; goto LABEL_8; } } return v5; }
operator(): PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R12,RCX MOV RBX,RDX TEST RSI,RSI SETZ CL TEST R12,R12 SETNZ AL SETZ DL OR DL,CL MOV RCX,RBX JNZ 0x0011431e MOV R15,R8 MOV qword ptr [RSP],RSI LEA R13,[RSI + -0x1] DEC R12 XOR R14D,R14D LAB_001142d8: MOVZX ESI,byte ptr [R15 + R14*0x1] MOVZX EDI,byte ptr [RBX + R14*0x1] CALL 0x00114396 MOV EBP,EAX TEST AL,AL JNZ 0x0011432b MOVZX ESI,byte ptr [RBX + R14*0x1] MOVZX EDI,byte ptr [R15 + R14*0x1] CALL 0x00114396 TEST AL,AL JNZ 0x0011432b CMP R12,R14 SETNZ AL LEA RCX,[R14 + 0x1] CMP R13,R14 JZ 0x00114317 CMP R12,R14 MOV R14,RCX JNZ 0x001142d8 LAB_00114317: ADD RCX,RBX MOV RSI,qword ptr [RSP] LAB_0011431e: ADD RBX,RSI CMP RCX,RBX SETZ BPL AND BPL,AL LAB_0011432b: MOV EAX,EBP ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* Common::CaseInsensitiveLess::TEMPNAMEPLACEHOLDERVALUE(std::basic_string_view<char, std::char_traits<char> >, std::basic_string_view<char, std::char_traits<char> >) const */ ulong Common::CaseInsensitiveLess::operator() (int8 param_1,long param_2,long param_3,long param_4,long param_5) { char cVar1; uint uVar2; long lVar3; int1 uVar4; int1 extraout_DL; int1 extraout_DL_00; int7 uVar5; int7 extraout_var; int7 extraout_var_00; ulong unaff_RBP; long lVar6; bool bVar7; bool bVar8; uVar5 = (int7)((ulong)param_3 >> 8); bVar7 = param_4 == 0; bVar8 = !bVar7; uVar4 = bVar7 || param_2 == 0; lVar3 = param_3; if (!bVar7 && param_2 != 0) { lVar6 = 0; do { uVar2 = std::operator()((__0 *)(ulong)*(byte *)(param_3 + lVar6), (char *)(ulong)*(byte *)(param_5 + lVar6), (char *)CONCAT71(uVar5,uVar4)); unaff_RBP = (ulong)uVar2; if ((char)uVar2 != '\0') goto LAB_0011432b; cVar1 = std::operator()((__0 *)(ulong)*(byte *)(param_5 + lVar6), (char *)(ulong)*(byte *)(param_3 + lVar6), (char *)CONCAT71(extraout_var,extraout_DL)); if (cVar1 != '\0') goto LAB_0011432b; bVar8 = param_4 + -1 != lVar6; lVar3 = lVar6 + 1; } while ((param_2 + -1 != lVar6) && (bVar7 = param_4 + -1 != lVar6, uVar4 = extraout_DL_00, uVar5 = extraout_var_00, lVar6 = lVar3, bVar7)); lVar3 = lVar3 + param_3; } unaff_RBP = CONCAT71((int7)(unaff_RBP >> 8),lVar3 == param_3 + param_2 & bVar8); LAB_0011432b: return unaff_RBP & 0xffffffff; }
53,171
SchemaConverter::_not_strings(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&)
monkey531[P]llama/common/json-schema-to-grammar.cpp
std::string _not_strings(const std::vector<std::string> & strings) { struct TrieNode { std::map<char, TrieNode> children; bool is_end_of_string; TrieNode() : is_end_of_string(false) {} void insert(const std::string & string) { auto node = this; for (char c : string) { node = &node->children[c]; } node->is_end_of_string = true; } }; TrieNode trie; for (const auto & s : strings) { trie.insert(s); } std::string char_rule = _add_primitive("char", PRIMITIVE_RULES.at("char")); std::ostringstream out; out << "[\"] ( "; std::function<void(const TrieNode &)> visit = [&](const TrieNode & node) { std::ostringstream rejects; auto first = true; for (const auto & kv : node.children) { rejects << kv.first; if (first) { first = false; } else { out << " | "; } out << "[" << kv.first << "]"; if (!kv.second.children.empty()) { out << " ("; visit(kv.second); out << ")"; } else if (kv.second.is_end_of_string) { out << " " << char_rule << "+"; } } if (!node.children.empty()) { if (!first) { out << " | "; } out << "[^\"" << rejects.str() << "] " << char_rule << "*"; } }; visit(trie); out << " )"; if (!trie.is_end_of_string) { out << "?"; } out << " [\"] space"; return out.str(); }
O1
cpp
SchemaConverter::_not_strings(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1f8, %rsp # imm = 0x1F8 movq %rsi, %r12 movq %rdi, %rbx leaq 0x50(%rsp), %rax movl $0x0, (%rax) xorl %ecx, %ecx movq %rcx, 0x8(%rax) movq %rax, 0x10(%rax) movq %rax, 0x18(%rax) movq %rcx, 0x20(%rax) movb $0x0, 0x28(%rax) movq (%rdx), %r14 movq 0x8(%rdx), %r13 cmpq %r13, %r14 je 0xc7ee1 leaq 0x48(%rsp), %r15 movq %r15, %rdi movq %r14, %rsi callq 0xc865c addq $0x20, %r14 cmpq %r13, %r14 jne 0xc7ecd leaq 0x90(%rsp), %r13 movq %r13, -0x10(%r13) movl $0x72616863, %eax # imm = 0x72616863 movl %eax, (%r13) movl $0x4, %ecx movq %rcx, -0x8(%r13) xorl %edx, %edx movb %dl, 0x4(%r13) leaq 0x10(%rsp), %rbp movq %rbp, -0x10(%rbp) movl %eax, (%rbp) movq %rcx, -0x8(%rbp) movb %dl, 0x4(%rbp) leaq 0x68361(%rip), %rdi # 0x130280 movq %rsp, %r14 movq %r14, %rsi callq 0xcc4e6 testq %rax, %rax je 0xc80cc addq $0x28, %rax leaq 0x28(%rsp), %r15 leaq 0x80(%rsp), %rdx movq %r15, %rdi movq %r12, %rsi movq %rax, %rcx callq 0xc6bd4 movq (%rsp), %rdi cmpq %rbp, %rdi je 0xc7f68 movq 0x10(%rsp), %rsi incq %rsi callq 0x1b8f0 movq 0x80(%rsp), %rdi cmpq %r13, %rdi je 0xc7f85 movq 0x90(%rsp), %rsi incq %rsi callq 0x1b8f0 leaq 0x80(%rsp), %rdi callq 0x1bba0 leaq 0x2fa43(%rip), %rsi # 0xf79dc leaq 0x80(%rsp), %r12 movl $0x6, %edx movq %r12, %rdi callq 0x1ba10 xorps %xmm0, %xmm0 movaps %xmm0, 0x10(%rsp) movaps %xmm0, (%rsp) movl $0x18, %edi callq 0x1b8c0 movq %r12, (%rax) movq %r14, 0x8(%rax) movq %r15, 0x10(%rax) movq %rax, (%rsp) leaq 0x96c(%rip), %rcx # 0xc8946 movq %rcx, 0x18(%rsp) leaq 0x968(%rip), %rcx # 0xc894e movq %rcx, 0x10(%rsp) leaq 0x48(%rsp), %rsi movq %rax, %rdi callq 0xc8976 leaq 0x2f6f3(%rip), %rsi # 0xf76f2 leaq 0x80(%rsp), %rdi movl $0x2, %edx callq 0x1ba10 cmpb $0x0, 0x78(%rsp) jne 0xc8031 leaq 0x2f801(%rip), %rsi # 0xf7820 leaq 0x80(%rsp), %rdi movl $0x1, %edx callq 0x1ba10 leaq 0x2f9ab(%rip), %rsi # 0xf79e3 leaq 0x80(%rsp), %rdi movl $0xa, %edx callq 0x1ba10 leaq 0x88(%rsp), %rsi movq %rbx, %rdi callq 0x1bdd0 movq 0x10(%rsp), %rax testq %rax, %rax je 0xc8071 movq %rsp, %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq 0x66f00(%rip), %rsi # 0x12ef78 leaq 0x80(%rsp), %rdi callq 0x1b4c0 leaq 0xf0(%rsp), %rdi callq 0x1b2d0 leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xc80ad movq 0x38(%rsp), %rsi incq %rsi callq 0x1b8f0 leaq 0x48(%rsp), %rdi callq 0xc8c78 movq %rbx, %rax addq $0x1f8, %rsp # imm = 0x1F8 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x2f8ba(%rip), %rdi # 0xf798d callq 0x1bcc0 jmp 0xc8171 jmp 0xc80df movq %rax, %rbx jmp 0xc8133 movq %rax, %rbx jmp 0xc8154 movq %rax, %rbx movq (%rsp), %rdi cmpq %rbp, %rdi je 0xc8102 movq 0x10(%rsp), %rsi incq %rsi callq 0x1b8f0 movq 0x80(%rsp), %rdi cmpq %r13, %rdi je 0xc817c movq 0x90(%rsp), %rsi jmp 0xc8167 movq %rax, %rbx movq 0x10(%rsp), %rax testq %rax, %rax je 0xc8133 movq %rsp, %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq 0x66e3e(%rip), %rsi # 0x12ef78 leaq 0x80(%rsp), %rdi callq 0x1b4c0 leaq 0xf0(%rsp), %rdi callq 0x1b2d0 leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xc817c movq 0x38(%rsp), %rsi incq %rsi callq 0x1b8f0 jmp 0xc817c movq %rax, %rdi callq 0x229a1 movq %rax, %rbx leaq 0x48(%rsp), %rdi callq 0xc8c78 movq %rbx, %rdi callq 0x1bfd0
_ZN15SchemaConverter12_not_stringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 1F8h mov r12, rsi mov rbx, rdi lea rax, [rsp+228h+var_1D8] mov dword ptr [rax], 0 xor ecx, ecx mov [rax+8], rcx mov [rax+10h], rax mov [rax+18h], rax mov [rax+20h], rcx mov byte ptr [rax+28h], 0 mov r14, [rdx] mov r13, [rdx+8] cmp r14, r13 jz short loc_C7EE1 lea r15, [rsp+228h+var_1E0] loc_C7ECD: mov rdi, r15 mov rsi, r14 call _ZZN15SchemaConverter12_not_stringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EEEN8TrieNode6insertERKS6_; SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode::insert(std::string const&) add r14, 20h ; ' ' cmp r14, r13 jnz short loc_C7ECD loc_C7EE1: lea r13, [rsp+228h+var_198] mov [r13-10h], r13 mov eax, 72616863h mov [r13+0], eax mov ecx, 4 mov [r13-8], rcx xor edx, edx mov [r13+4], dl lea rbp, [rsp+228h+var_218] mov [rbp-10h], rbp mov [rbp+0], eax mov [rbp-8], rcx mov [rbp+4], dl lea rdi, _Z15PRIMITIVE_RULESB5cxx11; PRIMITIVE_RULES mov r14, rsp mov rsi, r14 call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_11BuiltinRuleESaIS9_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSB_18_Mod_range_hashingENSB_20_Default_ranged_hashENSB_20_Prime_rehash_policyENSB_17_Hashtable_traitsILb1ELb0ELb1EEEE4findERS7_; std::_Hashtable<std::string,std::pair<std::string const,BuiltinRule>,std::allocator<std::pair<std::string const,BuiltinRule>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::find(std::string const&) test rax, rax jz loc_C80CC add rax, 28h ; '(' lea r15, [rsp+228h+var_200] lea rdx, [rsp+228h+var_1A8]; int mov rdi, r15; int mov rsi, r12; int mov rcx, rax; int call _ZN15SchemaConverter14_add_primitiveERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK11BuiltinRule; SchemaConverter::_add_primitive(std::string const&,BuiltinRule const&) mov rdi, [rsp+228h+var_228]; void * cmp rdi, rbp jz short loc_C7F68 mov rsi, qword ptr [rsp+228h+var_218] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_C7F68: mov rdi, [rsp+228h+var_1A8]; void * cmp rdi, r13 jz short loc_C7F85 mov rsi, [rsp+228h+var_198] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_C7F85: lea rdi, [rsp+228h+var_1A8] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void) lea rsi, asc_F79DC; "[\"] ( " lea r12, [rsp+228h+var_1A8] mov edx, 6 mov rdi, r12 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) xorps xmm0, xmm0 movaps [rsp+228h+var_218], xmm0 movaps xmmword ptr [rsp+228h+var_228], xmm0 mov edi, 18h; unsigned __int64 call __Znwm; operator new(ulong) mov [rax], r12 mov [rax+8], r14 mov [rax+10h], r15 mov [rsp+228h+var_228], rax lea rcx, _ZNSt17_Function_handlerIFvRKZN15SchemaConverter12_not_stringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEE8TrieNodeEZNS0_12_not_stringsESB_EUlSE_E_E9_M_invokeERKSt9_Any_dataSE_; std::_Function_handler<void ()(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&),SchemaConverter::_not_strings(std::vector<std::string> const&)::{lambda(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&)#1}>::_M_invoke(std::_Any_data const&,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&) mov qword ptr [rsp+228h+var_218+8], rcx lea rcx, _ZNSt17_Function_handlerIFvRKZN15SchemaConverter12_not_stringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEE8TrieNodeEZNS0_12_not_stringsESB_EUlSE_E_E10_M_managerERSt9_Any_dataRKSI_St18_Manager_operation; std::_Function_handler<void ()(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&),SchemaConverter::_not_strings(std::vector<std::string> const&)::{lambda(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&)#1}>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation) mov qword ptr [rsp+228h+var_218], rcx lea rsi, [rsp+228h+var_1E0] mov rdi, rax call _ZZN15SchemaConverter12_not_stringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EEENKUlRKZNS_12_not_stringsESA_E8TrieNodeE_clESD_; SchemaConverter::_not_strings(std::vector<std::string> const&)::{lambda(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&)#1}::operator()(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&) lea rsi, a09401910201912+50h; " )" lea rdi, [rsp+228h+var_1A8] mov edx, 2 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) cmp [rsp+228h+var_1B0], 0 jnz short loc_C8031 lea rsi, asc_F781D+3; "?" 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_C8031: lea rsi, aSpace_6; " [\"] space" lea rdi, [rsp+228h+var_1A8] mov edx, 0Ah call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rsi, [rsp+228h+var_1A0] mov rdi, rbx call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void) mov rax, qword ptr [rsp+228h+var_218] test rax, rax jz short loc_C8071 mov rdi, rsp mov rsi, rdi mov edx, 3 call rax loc_C8071: 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() lea rax, [rsp+228h+var_1F0] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_C80AD mov rsi, [rsp+228h+var_1F0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_C80AD: lea rdi, [rsp+228h+var_1E0] call _ZNSt8_Rb_treeIcSt4pairIKcZN15SchemaConverter12_not_stringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS9_EEE8TrieNodeESt10_Select1stISF_ESt4lessIcESaISF_EED2Ev; std::_Rb_tree<char,std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>,std::_Select1st<std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>>,std::less<char>,std::allocator<std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>>>::~_Rb_tree() mov rax, rbx add rsp, 1F8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_C80CC: lea rdi, aMapBaseAt; "_Map_base::at" call __ZSt20__throw_out_of_rangePKc; std::__throw_out_of_range(char const*) jmp loc_C8171 jmp short $+2 loc_C80DF: mov rbx, rax jmp short loc_C8133 mov rbx, rax jmp short loc_C8154 mov rbx, rax mov rdi, [rsp+228h+var_228]; void * cmp rdi, rbp jz short loc_C8102 mov rsi, qword ptr [rsp+228h+var_218] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_C8102: mov rdi, [rsp+228h+var_1A8] cmp rdi, r13 jz short loc_C817C mov rsi, [rsp+228h+var_198] jmp short loc_C8167 mov rbx, rax mov rax, qword ptr [rsp+228h+var_218] test rax, rax jz short loc_C8133 mov rdi, rsp mov rsi, rdi mov edx, 3 call rax loc_C8133: 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() loc_C8154: lea rax, [rsp+228h+var_1F0] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_C817C mov rsi, [rsp+228h+var_1F0] loc_C8167: inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_C817C loc_C8171: mov rdi, rax call __clang_call_terminate mov rbx, rax loc_C817C: lea rdi, [rsp+228h+var_1E0] call _ZNSt8_Rb_treeIcSt4pairIKcZN15SchemaConverter12_not_stringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS9_EEE8TrieNodeESt10_Select1stISF_ESt4lessIcESaISF_EED2Ev; std::_Rb_tree<char,std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>,std::_Select1st<std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>>,std::less<char>,std::allocator<std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>>>::~_Rb_tree() mov rdi, rbx call __Unwind_Resume
long long SchemaConverter::_not_strings(long long a1, long long a2, long long *a3) { long long v3; // r14 long long v4; // r13 long long v5; // rax void ***v6; // rax void *v8[2]; // [rsp+0h] [rbp-228h] BYREF __int128 v9; // [rsp+10h] [rbp-218h] BYREF int v10[4]; // [rsp+28h] [rbp-200h] BYREF long long v11; // [rsp+38h] [rbp-1F0h] BYREF _BYTE v12[8]; // [rsp+48h] [rbp-1E0h] BYREF int v13; // [rsp+50h] [rbp-1D8h] BYREF long long v14; // [rsp+58h] [rbp-1D0h] int *v15; // [rsp+60h] [rbp-1C8h] int *v16; // [rsp+68h] [rbp-1C0h] long long v17; // [rsp+70h] [rbp-1B8h] char v18; // [rsp+78h] [rbp-1B0h] void *v19; // [rsp+80h] [rbp-1A8h] BYREF long long v20; // [rsp+88h] [rbp-1A0h] BYREF char v21[96]; // [rsp+90h] [rbp-198h] BYREF _BYTE v22[312]; // [rsp+F0h] [rbp-138h] BYREF v13 = 0; v14 = 0LL; v15 = &v13; v16 = &v13; v17 = 0LL; v18 = 0; v3 = *a3; v4 = a3[1]; if ( *a3 != v4 ) { do { SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode::insert(v12, v3); v3 += 32LL; } while ( v3 != v4 ); } v19 = v21; strcpy(v21, "char"); v20 = 4LL; v8[0] = &v9; strcpy((char *)&v9, "char"); v8[1] = &byte_4; v5 = std::_Hashtable<std::string,std::pair<std::string const,BuiltinRule>,std::allocator<std::pair<std::string const,BuiltinRule>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::find( PRIMITIVE_RULES[abi:cxx11], v8); if ( !v5 ) std::__throw_out_of_range("_Map_base::at"); SchemaConverter::_add_primitive((long long)v10, a2, (long long *)&v19, (_QWORD *)(v5 + 40)); if ( v8[0] != &v9 ) operator delete(v8[0], v9 + 1); if ( v19 != v21 ) operator delete(v19, *(_QWORD *)v21 + 1LL); std::ostringstream::basic_ostringstream(&v19); std::__ostream_insert<char,std::char_traits<char>>(&v19, "[\"] ( ", 6LL); v9 = 0LL; *(_OWORD *)v8 = 0LL; v6 = (void ***)operator new(0x18uLL); *v6 = &v19; v6[1] = v8; v6[2] = (void **)v10; v8[0] = v6; *((_QWORD *)&v9 + 1) = std::_Function_handler<void ()(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&),SchemaConverter::_not_strings(std::vector<std::string> const&)::{lambda(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&)#1}>::_M_invoke; *(_QWORD *)&v9 = std::_Function_handler<void ()(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&),SchemaConverter::_not_strings(std::vector<std::string> const&)::{lambda(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&)#1}>::_M_manager; SchemaConverter::_not_strings(std::vector<std::string> const&)::{lambda(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&)#1}::operator()( v6, v12); std::__ostream_insert<char,std::char_traits<char>>(&v19, " )", 2LL); if ( !v18 ) std::__ostream_insert<char,std::char_traits<char>>(&v19, "?", 1LL); std::__ostream_insert<char,std::char_traits<char>>(&v19, " [\"] space", 10LL); std::stringbuf::str(a1, &v20); if ( (_QWORD)v9 ) ((void ( *)(void **, void **, long long))v9)(v8, v8, 3LL); std::ostringstream::~ostringstream(&v19, &`VTT for'std::ostringstream); std::ios_base::~ios_base((std::ios_base *)v22); if ( *(long long **)v10 != &v11 ) operator delete(*(void **)v10, v11 + 1); std::_Rb_tree<char,std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>,std::_Select1st<std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>>,std::less<char>,std::allocator<std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>>>::~_Rb_tree(v12); return a1; }
_not_strings: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x1f8 MOV R12,RSI MOV RBX,RDI LEA RAX,[RSP + 0x50] MOV dword ptr [RAX],0x0 XOR ECX,ECX MOV qword ptr [RAX + 0x8],RCX MOV qword ptr [RAX + 0x10],RAX MOV qword ptr [RAX + 0x18],RAX MOV qword ptr [RAX + 0x20],RCX MOV byte ptr [RAX + 0x28],0x0 MOV R14,qword ptr [RDX] MOV R13,qword ptr [RDX + 0x8] CMP R14,R13 JZ 0x001c7ee1 LEA R15,[RSP + 0x48] LAB_001c7ecd: MOV RDI,R15 MOV RSI,R14 CALL 0x001c865c ADD R14,0x20 CMP R14,R13 JNZ 0x001c7ecd LAB_001c7ee1: LEA R13,[RSP + 0x90] MOV qword ptr [R13 + -0x10],R13 MOV EAX,0x72616863 MOV dword ptr [R13],EAX MOV ECX,0x4 MOV qword ptr [R13 + -0x8],RCX XOR EDX,EDX MOV byte ptr [R13 + 0x4],DL LEA RBP,[RSP + 0x10] MOV qword ptr [RBP + -0x10],RBP MOV dword ptr [RBP],EAX MOV qword ptr [RBP + -0x8],RCX MOV byte ptr [RBP + 0x4],DL LAB_001c7f18: LEA RDI,[0x230280] MOV R14,RSP MOV RSI,R14 CALL 0x001cc4e6 TEST RAX,RAX JZ 0x001c80cc ADD RAX,0x28 LEA R15,[RSP + 0x28] LEA RDX,[RSP + 0x80] MOV RDI,R15 MOV RSI,R12 MOV RCX,RAX CALL 0x001c6bd4 MOV RDI,qword ptr [RSP] CMP RDI,RBP JZ 0x001c7f68 MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x0011b8f0 LAB_001c7f68: MOV RDI,qword ptr [RSP + 0x80] CMP RDI,R13 JZ 0x001c7f85 MOV RSI,qword ptr [RSP + 0x90] INC RSI CALL 0x0011b8f0 LAB_001c7f85: LEA RDI,[RSP + 0x80] CALL 0x0011bba0 LAB_001c7f92: LEA RSI,[0x1f79dc] LEA R12,[RSP + 0x80] MOV EDX,0x6 MOV RDI,R12 CALL 0x0011ba10 XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP + 0x10],XMM0 MOVAPS xmmword ptr [RSP],XMM0 LAB_001c7fba: MOV EDI,0x18 CALL 0x0011b8c0 MOV qword ptr [RAX],R12 MOV qword ptr [RAX + 0x8],R14 MOV qword ptr [RAX + 0x10],R15 MOV qword ptr [RSP],RAX LEA RCX,[0x1c8946] MOV qword ptr [RSP + 0x18],RCX LEA RCX,[0x1c894e] MOV qword ptr [RSP + 0x10],RCX LAB_001c7feb: LEA RSI,[RSP + 0x48] MOV RDI,RAX CALL 0x001c8976 LEA RSI,[0x1f76f2] LEA RDI,[RSP + 0x80] MOV EDX,0x2 CALL 0x0011ba10 CMP byte ptr [RSP + 0x78],0x0 JNZ 0x001c8031 LEA RSI,[0x1f7820] LEA RDI,[RSP + 0x80] MOV EDX,0x1 CALL 0x0011ba10 LAB_001c8031: LEA RSI,[0x1f79e3] LEA RDI,[RSP + 0x80] MOV EDX,0xa CALL 0x0011ba10 LEA RSI,[RSP + 0x88] MOV RDI,RBX CALL 0x0011bdd0 MOV RAX,qword ptr [RSP + 0x10] TEST RAX,RAX JZ 0x001c8071 LAB_001c8064: MOV RDI,RSP MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_001c8071: MOV RSI,qword ptr [0x0022ef78] LEA RDI,[RSP + 0x80] CALL 0x0011b4c0 LEA RDI,[RSP + 0xf0] CALL 0x0011b2d0 LEA RAX,[RSP + 0x38] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001c80ad MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x0011b8f0 LAB_001c80ad: LEA RDI,[RSP + 0x48] CALL 0x001c8c78 MOV RAX,RBX ADD RSP,0x1f8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001c80cc: LEA RDI,[0x1f798d] CALL 0x0011bcc0 LAB_001c80d8: JMP 0x001c8171 LAB_001c8171: MOV RDI,RAX CALL 0x001229a1
/* SchemaConverter::_not_strings(std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > > const&) */ vector * SchemaConverter::_not_strings(vector *param_1) { long lVar1; int8 uVar2; long *in_RDX; BuiltinRule *in_RSI; long lVar3; _lambda_SchemaConverter___not_strings_std__vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const____TrieNode_const___1_ *local_228; int8 uStack_220; code *local_218; code *pcStack_210; long *local_200 [2]; long local_1f0 [2]; TrieNode local_1e0 [8]; int4 local_1d8 [2]; int8 local_1d0; int4 *local_1c8; int4 *local_1c0; int8 local_1b8; char local_1b0; int4 *local_1a8; int8 local_1a0; int4 local_198; uint uStack_194; ios_base local_138 [264]; local_1c8 = local_1d8; local_1d8[0] = 0; local_1d0 = 0; local_1b8 = 0; local_1b0 = '\0'; lVar3 = *in_RDX; lVar1 = in_RDX[1]; local_1c0 = local_1c8; if (lVar3 != lVar1) { do { /* try { // try from 001c7ecd to 001c7ed7 has its CatchHandler @ 001c8179 */ _not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&):: TrieNode::insert(std::__cxx11::string_const__(local_1e0,lVar3); lVar3 = lVar3 + 0x20; } while (lVar3 != lVar1); } local_198 = 0x72616863; local_1a0 = 4; uStack_194 = uStack_194 & 0xffffff00; uStack_220 = 4; local_218 = (code *)CONCAT35(local_218._5_3_,0x72616863); local_228 = (_lambda_SchemaConverter___not_strings_std__vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const____TrieNode_const___1_ *)&local_218; local_1a8 = &local_198; /* try { // try from 001c7f18 to 001c7f51 has its CatchHandler @ 001c80e9 */ lVar3 = std:: _Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,BuiltinRule>,std::allocator<std::pair<std::__cxx11::string_const,BuiltinRule>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>> ::find((_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,BuiltinRule>,std::allocator<std::pair<std::__cxx11::string_const,BuiltinRule>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>> *)PRIMITIVE_RULES_abi_cxx11_,(string *)&local_228); if (lVar3 != 0) { _add_primitive((string *)local_200,in_RSI); if (local_228 != (_lambda_SchemaConverter___not_strings_std__vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const____TrieNode_const___1_ *)&local_218) { operator_delete(local_228,(long)local_218 + 1); } if (local_1a8 != &local_198) { operator_delete(local_1a8,CONCAT44(uStack_194,local_198) + 1); } /* try { // try from 001c7f85 to 001c7f91 has its CatchHandler @ 001c80e4 */ std::__cxx11::ostringstream::ostringstream((ostringstream *)&local_1a8); /* try { // try from 001c7f92 to 001c7fad has its CatchHandler @ 001c80df */ std::__ostream_insert<char,std::char_traits<char>>((ostream *)&local_1a8,"[\"] ( ",6); local_218 = (code *)0x0; pcStack_210 = (code *)0x0; local_228 = (_lambda_SchemaConverter___not_strings_std__vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const____TrieNode_const___1_ *)0x0; uStack_220 = 0; /* try { // try from 001c7fba to 001c7fc3 has its CatchHandler @ 001c80dd */ local_228 = (_lambda_SchemaConverter___not_strings_std__vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const____TrieNode_const___1_ *)operator_new(0x18); *(ostream **)local_228 = (ostream *)&local_1a8; *(_lambda_SchemaConverter___not_strings_std__vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const____TrieNode_const___1_ ***)(local_228 + 8) = &local_228; *(string **)(local_228 + 0x10) = (string *)local_200; pcStack_210 = std:: _Function_handler<void(SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode_const&),SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::{lambda(SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode_const&)#1}> ::_M_invoke; local_218 = std:: _Function_handler<void(SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode_const&),SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::{lambda(SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode_const&)#1}> ::_M_manager; /* try { // try from 001c7feb to 001c8059 has its CatchHandler @ 001c8119 */ _not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&):: {lambda(SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode_const&)#1} ::operator()(local_228,local_1e0); std::__ostream_insert<char,std::char_traits<char>>((ostream *)&local_1a8," )",2); if (local_1b0 == '\0') { std::__ostream_insert<char,std::char_traits<char>>((ostream *)&local_1a8,"?",1); } std::__ostream_insert<char,std::char_traits<char>>((ostream *)&local_1a8," [\"] space",10); std::__cxx11::stringbuf::str(); if (local_218 != (code *)0x0) { /* try { // try from 001c8064 to 001c8070 has its CatchHandler @ 001c80d8 */ (*local_218)(&local_228,&local_228,3); } std::__cxx11::ostringstream::~ostringstream((ostringstream *)&local_1a8); std::ios_base::~ios_base(local_138); if (local_200[0] != local_1f0) { operator_delete(local_200[0],local_1f0[0] + 1); } std:: _Rb_tree<char,std::pair<char_const,SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode>,std::_Select1st<std::pair<char_const,SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode>>,std::less<char>,std::allocator<std::pair<char_const,SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode>>> ::~_Rb_tree((_Rb_tree<char,std::pair<char_const,SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode>,std::_Select1st<std::pair<char_const,SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode>>,std::less<char>,std::allocator<std::pair<char_const,SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode>>> *)local_1e0); return param_1; } /* try { // try from 001c80cc to 001c80d7 has its CatchHandler @ 001c80e9 */ uVar2 = std::__throw_out_of_range("_Map_base::at"); /* catch(type#1 @ 00000000) { ... } // from try @ 001c8064 with catch @ 001c80d8 */ /* catch(type#1 @ 00000000) { ... } // from try @ 001c8126 with catch @ 001c8171 */ /* WARNING: Subroutine does not return */ __clang_call_terminate(uVar2); }
53,172
minja::Value::empty() const
monkey531[P]llama/common/minja.hpp
bool empty() const { if (is_null()) throw std::runtime_error("Undefined value or reference"); if (is_string()) return primitive_.empty(); if (is_array()) return array_->empty(); if (is_object()) return object_->empty(); return false; }
O1
cpp
minja::Value::empty() const: pushq %r14 pushq %rbx pushq %rax movq 0x10(%rdi), %rax movq 0x20(%rdi), %rcx movb 0x40(%rdi), %dl testq %rcx, %rcx jne 0x6d62e testq %rax, %rax jne 0x6d62e testb %dl, %dl jne 0x6d62e cmpq $0x0, 0x30(%rdi) je 0x6d656 cmpb $0x3, %dl jne 0x6d637 xorl %eax, %eax jmp 0x6d64e testq %rax, %rax jne 0x6d644 movq %rcx, %rax testq %rcx, %rcx je 0x6d633 movq (%rax), %rcx cmpq 0x8(%rax), %rcx sete %al addq $0x8, %rsp popq %rbx popq %r14 retq movl $0x10, %edi callq 0x19370 movq %rax, %rbx leaq 0x508b4(%rip), %rsi # 0xbdf1e movq %rax, %rdi callq 0x19270 movq 0x8196f(%rip), %rsi # 0xeefe8 movq 0x818e8(%rip), %rdx # 0xeef68 movq %rbx, %rdi callq 0x19b70 movq %rax, %r14 movq %rbx, %rdi callq 0x19510 movq %r14, %rdi callq 0x19be0 nop
_ZNK5minja5Value5emptyEv: push r14 push rbx push rax mov rax, [rdi+10h] mov rcx, [rdi+20h] mov dl, [rdi+40h] test rcx, rcx jnz short loc_6D62E test rax, rax jnz short loc_6D62E test dl, dl jnz short loc_6D62E cmp qword ptr [rdi+30h], 0 jz short loc_6D656 loc_6D62E: cmp dl, 3 jnz short loc_6D637 loc_6D633: xor eax, eax jmp short loc_6D64E loc_6D637: test rax, rax jnz short loc_6D644 mov rax, rcx test rcx, rcx jz short loc_6D633 loc_6D644: mov rcx, [rax] cmp rcx, [rax+8] setz al loc_6D64E: add rsp, 8 pop rbx pop r14 retn loc_6D656: 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:lptinfo; 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 mov rdi, r14 call __Unwind_Resume
bool minja::Value::empty(minja::Value *this) { _QWORD *v1; // rax long long v2; // rcx char v3; // dl bool result; // al std::runtime_error *exception; // rbx v1 = (_QWORD *)*((_QWORD *)this + 2); v2 = *((_QWORD *)this + 4); v3 = *((_BYTE *)this + 64); if ( !v2 && !v1 && !v3 && !*((_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); } result = v3 != 3 && (v1 || (v1 = (_QWORD *)*((_QWORD *)this + 4), v2)) && *v1 == v1[1]; return result; }
empty: PUSH R14 PUSH RBX PUSH RAX MOV RAX,qword ptr [RDI + 0x10] MOV RCX,qword ptr [RDI + 0x20] MOV DL,byte ptr [RDI + 0x40] TEST RCX,RCX JNZ 0x0016d62e TEST RAX,RAX JNZ 0x0016d62e TEST DL,DL JNZ 0x0016d62e CMP qword ptr [RDI + 0x30],0x0 JZ 0x0016d656 LAB_0016d62e: CMP DL,0x3 JNZ 0x0016d637 LAB_0016d633: XOR EAX,EAX JMP 0x0016d64e LAB_0016d637: TEST RAX,RAX JNZ 0x0016d644 MOV RAX,RCX TEST RCX,RCX JZ 0x0016d633 LAB_0016d644: MOV RCX,qword ptr [RAX] CMP RCX,qword ptr [RAX + 0x8] SETZ AL LAB_0016d64e: ADD RSP,0x8 POP RBX POP R14 RET LAB_0016d656: MOV EDI,0x10 CALL 0x00119370 MOV RBX,RAX LAB_0016d663: LEA RSI,[0x1bdf1e] MOV RDI,RAX CALL 0x00119270 LAB_0016d672: MOV RSI,qword ptr [0x001eefe8] MOV RDX,qword ptr [0x001eef68] MOV RDI,RBX CALL 0x00119b70
/* minja::Value::empty() const */ int8 __thiscall minja::Value::empty(Value *this) { long *plVar1; long *plVar2; int8 uVar3; runtime_error *this_00; plVar2 = *(long **)(this + 0x10); plVar1 = *(long **)(this + 0x20); if ((((plVar1 == (long *)0x0) && (plVar2 == (long *)0x0)) && (this[0x40] == (Value)0x0)) && (*(long *)(this + 0x30) == 0)) { this_00 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0016d663 to 0016d671 has its CatchHandler @ 0016d688 */ std::runtime_error::runtime_error(this_00,"Undefined value or reference"); /* WARNING: Subroutine does not return */ __cxa_throw(this_00,PTR_typeinfo_001eefe8,PTR__runtime_error_001eef68); } if ((this[0x40] == (Value)0x3) || ((plVar2 == (long *)0x0 && (plVar2 = plVar1, plVar1 == (long *)0x0)))) { uVar3 = 0; } else { uVar3 = CONCAT71((int7)((ulong)plVar2 >> 8),*plVar2 == plVar2[1]); } return uVar3; }
53,173
minja::Value::empty() const
monkey531[P]llama/common/minja.hpp
bool empty() const { if (is_null()) throw std::runtime_error("Undefined value or reference"); if (is_string()) return primitive_.empty(); if (is_array()) return array_->empty(); if (is_object()) return object_->empty(); return false; }
O2
cpp
minja::Value::empty() const: pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx callq 0x60344 testb %al, %al jne 0x608a3 cmpb $0x3, 0x40(%rbx) jne 0x6087b addq $0x40, %rbx movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x4723e movq 0x10(%rbx), %rax testq %rax, %rax jne 0x6088d movq 0x20(%rbx), %rax testq %rax, %rax je 0x6089f movq (%rax), %rcx cmpq 0x8(%rax), %rcx sete %al addq $0x8, %rsp popq %rbx popq %r14 retq xorl %eax, %eax jmp 0x60897 pushq $0x10 popq %rdi callq 0x213a0 movq %rax, %rbx leaq 0x3c6a9(%rip), %rsi # 0x9cf5e movq %rax, %rdi callq 0x21280 movq 0x7b724(%rip), %rsi # 0xdbfe8 movq 0x7b69d(%rip), %rdx # 0xdbf68 movq %rbx, %rdi callq 0x21b70 movq %rax, %r14 movq %rbx, %rdi callq 0x21530 movq %r14, %rdi callq 0x21be0
_ZNK5minja5Value5emptyEv: push r14 push rbx push rax mov rbx, rdi call _ZNK5minja5Value7is_nullEv; minja::Value::is_null(void) test al, al jnz short loc_608A3 cmp byte ptr [rbx+40h], 3 jnz short loc_6087B add rbx, 40h ; '@' mov rdi, rbx add rsp, 8 pop rbx pop r14 jmp _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5emptyEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::empty(void) loc_6087B: mov rax, [rbx+10h] test rax, rax jnz short loc_6088D mov rax, [rbx+20h] test rax, rax jz short loc_6089F loc_6088D: mov rcx, [rax] cmp rcx, [rax+8] setz al loc_60897: add rsp, 8 pop rbx pop r14 retn loc_6089F: xor eax, eax jmp short loc_60897 loc_608A3: push 10h pop rdi; 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:lptinfo; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax mov rdi, rbx; void * call ___cxa_free_exception mov rdi, r14 call __Unwind_Resume
bool minja::Value::empty(minja::Value *this) { _QWORD *v2; // rax std::runtime_error *exception; // rbx if ( minja::Value::is_null(this) ) { 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 ( *((_BYTE *)this + 64) == 3 ) return nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::empty((unsigned __int8 *)this + 64); v2 = (_QWORD *)*((_QWORD *)this + 2); return (v2 || (v2 = (_QWORD *)*((_QWORD *)this + 4)) != 0LL) && *v2 == v2[1]; }
empty: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI CALL 0x00160344 TEST AL,AL JNZ 0x001608a3 CMP byte ptr [RBX + 0x40],0x3 JNZ 0x0016087b ADD RBX,0x40 MOV RDI,RBX ADD RSP,0x8 POP RBX POP R14 JMP 0x0014723e LAB_0016087b: MOV RAX,qword ptr [RBX + 0x10] TEST RAX,RAX JNZ 0x0016088d MOV RAX,qword ptr [RBX + 0x20] TEST RAX,RAX JZ 0x0016089f LAB_0016088d: MOV RCX,qword ptr [RAX] CMP RCX,qword ptr [RAX + 0x8] SETZ AL LAB_00160897: ADD RSP,0x8 POP RBX POP R14 RET LAB_0016089f: XOR EAX,EAX JMP 0x00160897 LAB_001608a3: PUSH 0x10 POP RDI CALL 0x001213a0 MOV RBX,RAX LAB_001608ae: LEA RSI,[0x19cf5e] MOV RDI,RAX CALL 0x00121280 LAB_001608bd: MOV RSI,qword ptr [0x001dbfe8] MOV RDX,qword ptr [0x001dbf68] MOV RDI,RBX CALL 0x00121b70
/* minja::Value::empty() const */ int8 __thiscall minja::Value::empty(Value *this) { char cVar1; int8 uVar2; long *plVar3; runtime_error *this_00; cVar1 = is_null(this); if (cVar1 != '\0') { this_00 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001608ae to 001608bc has its CatchHandler @ 001608d3 */ std::runtime_error::runtime_error(this_00,"Undefined value or reference"); /* WARNING: Subroutine does not return */ __cxa_throw(this_00,PTR_typeinfo_001dbfe8,PTR__runtime_error_001dbf68); } if (this[0x40] == (Value)0x3) { uVar2 = nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::empty((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)(this + 0x40)); return uVar2; } plVar3 = *(long **)(this + 0x10); if ((plVar3 == (long *)0x0) && (plVar3 = *(long **)(this + 0x20), plVar3 == (long *)0x0)) { uVar2 = 0; } else { uVar2 = CONCAT71((int7)((ulong)plVar3 >> 8),*plVar3 == plVar3[1]); } return uVar2; }
53,174
my_hash_sort_utf32_nopad
eloqsql/strings/ctype-ucs2.c
static void my_hash_sort_utf32_nopad(CHARSET_INFO *cs, const uchar *s, size_t slen, ulong *nr1, ulong *nr2) { my_wc_t wc; int res; const uchar *e= s + slen; MY_UNICASE_INFO *uni_plane= cs->caseinfo; register ulong m1= *nr1, m2= *nr2; while ((res= my_utf32_uni(cs, &wc, (uchar*) s, (uchar*) e)) > 0) { my_tosort_utf32(uni_plane, &wc); MY_HASH_ADD(m1, m2, (uint) (wc >> 24)); MY_HASH_ADD(m1, m2, (uint) (wc >> 16) & 0xFF); MY_HASH_ADD(m1, m2, (uint) (wc >> 8) & 0xFF); MY_HASH_ADD(m1, m2, (uint) (wc & 0xFF)); s+= res; } *nr1= m1; *nr2= m2; }
O3
c
my_hash_sort_utf32_nopad: movq (%rcx), %r10 movq (%r8), %rax cmpq $0x4, %rdx jl 0x4b6f1 pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx addq %rsi, %rdx movq 0x78(%rdi), %rdi movl $0xff, %r9d movzbl (%rsi), %ebx shll $0x18, %ebx movzbl 0x1(%rsi), %r11d shll $0x10, %r11d orl %ebx, %r11d cmpl $0x10ffff, %r11d # imm = 0x10FFFF ja 0x4b6eb movzbl 0x2(%rsi), %r14d shll $0x8, %r14d movzbl 0x3(%rsi), %ebx orq %rbx, %r14 orq %r11, %r14 movl $0xfffd, %r11d # imm = 0xFFFD cmpq (%rdi), %r14 ja 0x4b641 movq 0x8(%rdi), %r11 movl %r14d, %r15d shrl $0x8, %r15d movq (%r11,%r15,8), %r15 movq %r14, %r11 testq %r15, %r15 je 0x4b641 leaq (%rbx,%rbx,2), %r11 movl 0x8(%r15,%r11,4), %r11d movl %r10d, %ebx andl $0x3f, %ebx addq %rax, %rbx movl %r11d, %r14d shrl $0x18, %r14d imulq %rbx, %r14 movq %r10, %rbx shlq $0x8, %rbx addq %r14, %rbx xorq %r10, %rbx movl %ebx, %r10d andl $0x3f, %r10d addq %rax, %r10 addq $0x3, %r10 movl %r11d, %r14d shrl $0x10, %r14d andl %r9d, %r14d imulq %r10, %r14 movq %rbx, %r10 shlq $0x8, %r10 addq %r14, %r10 xorq %rbx, %r10 movl %r10d, %ebx andl $0x3f, %ebx addq %rax, %rbx addq $0x6, %rbx movl %r11d, %r14d shrl $0x8, %r14d andl %r9d, %r14d imulq %rbx, %r14 movq %r10, %rbx shlq $0x8, %rbx addq %r14, %rbx xorq %r10, %rbx movl %ebx, %r10d andl $0x3f, %r10d addq %rax, %r10 addq $0x9, %r10 movzbl %r11b, %r11d imulq %r10, %r11 movq %rbx, %r10 shlq $0x8, %r10 addq %r11, %r10 xorq %rbx, %r10 addq $0xc, %rax leaq 0x8(%rsi), %r11 addq $0x4, %rsi cmpq %rdx, %r11 jbe 0x4b5e4 popq %rbx popq %r14 popq %r15 popq %rbp movq %r10, (%rcx) movq %rax, (%r8) retq
my_hash_sort_utf32_nopad: mov r10, [rcx] mov rax, [r8] cmp rdx, 4 jl loc_4B6F1 push rbp mov rbp, rsp push r15 push r14 push rbx add rdx, rsi mov rdi, [rdi+78h] mov r9d, 0FFh loc_4B5E4: movzx ebx, byte ptr [rsi] shl ebx, 18h movzx r11d, byte ptr [rsi+1] shl r11d, 10h or r11d, ebx cmp r11d, offset unk_10FFFF ja loc_4B6EB movzx r14d, byte ptr [rsi+2] shl r14d, 8 movzx ebx, byte ptr [rsi+3] or r14, rbx or r14, r11 mov r11d, 0FFFDh cmp r14, [rdi] ja short loc_4B641 mov r11, [rdi+8] mov r15d, r14d shr r15d, 8 mov r15, [r11+r15*8] mov r11, r14 test r15, r15 jz short loc_4B641 lea r11, [rbx+rbx*2] mov r11d, [r15+r11*4+8] loc_4B641: mov ebx, r10d and ebx, 3Fh add rbx, rax mov r14d, r11d shr r14d, 18h imul r14, rbx mov rbx, r10 shl rbx, 8 add rbx, r14 xor rbx, r10 mov r10d, ebx and r10d, 3Fh add r10, rax add r10, 3 mov r14d, r11d shr r14d, 10h and r14d, r9d imul r14, r10 mov r10, rbx shl r10, 8 add r10, r14 xor r10, rbx mov ebx, r10d and ebx, 3Fh add rbx, rax add rbx, 6 mov r14d, r11d shr r14d, 8 and r14d, r9d imul r14, rbx mov rbx, r10 shl rbx, 8 add rbx, r14 xor rbx, r10 mov r10d, ebx and r10d, 3Fh add r10, rax add r10, 9 movzx r11d, r11b imul r11, r10 mov r10, rbx shl r10, 8 add r10, r11 xor r10, rbx add rax, 0Ch lea r11, [rsi+8] add rsi, 4 cmp r11, rdx jbe loc_4B5E4 loc_4B6EB: pop rbx pop r14 pop r15 pop rbp loc_4B6F1: mov [rcx], r10 mov [r8], rax retn
long long my_hash_sort_utf32_nopad(long long a1, unsigned __int8 *a2, long long a3, long long *a4, long long *a5) { long long v5; // r10 long long result; // rax unsigned __int8 *v7; // rdx unsigned long long *v8; // rdi long long v9; // r11 long long v10; // rbx unsigned long long v11; // r14 unsigned int v12; // r11d long long v13; // r15 long long v14; // r10 long long v15; // r14 unsigned __int8 *v16; // r11 v5 = *a4; result = *a5; if ( a3 >= 4 ) { v7 = &a2[a3]; v8 = *(unsigned long long **)(a1 + 120); do { v9 = (*a2 << 24) | (a2[1] << 16); if ( (unsigned int)v9 > (unsigned int)&unk_10FFFF ) break; v10 = a2[3]; v11 = v9 | v10 | (a2[2] << 8); v12 = 65533; if ( v11 <= *v8 ) { v13 = *(_QWORD *)(v8[1] + 8LL * ((unsigned int)v11 >> 8)); v12 = v11; if ( v13 ) v12 = *(_DWORD *)(v13 + 12 * v10 + 8); } v14 = v5 ^ ((result + (v5 & 0x3F)) * HIBYTE(v12) + (v5 << 8)) ^ ((result + (((unsigned __int8)v5 ^ (unsigned __int8)((result + (v5 & 0x3F)) * HIBYTE(v12))) & 0x3F) + 3) * BYTE2(v12) + ((v5 ^ ((result + (v5 & 0x3F)) * HIBYTE(v12) + (v5 << 8))) << 8)); v15 = (result + (v14 & 0x3F) + 6) * BYTE1(v12); v5 = v14 ^ (v15 + (v14 << 8)) ^ ((result + (((unsigned __int8)v14 ^ (unsigned __int8)v15) & 0x3F) + 9) * (unsigned __int8)v12 + ((v14 ^ (v15 + (v14 << 8))) << 8)); result += 12LL; v16 = a2 + 8; a2 += 4; } while ( v16 <= v7 ); } *a4 = v5; *a5 = result; return result; }
my_hash_sort_utf32_nopad: MOV R10,qword ptr [RCX] MOV RAX,qword ptr [R8] CMP RDX,0x4 JL 0x0014b6f1 PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX ADD RDX,RSI MOV RDI,qword ptr [RDI + 0x78] MOV R9D,0xff LAB_0014b5e4: MOVZX EBX,byte ptr [RSI] SHL EBX,0x18 MOVZX R11D,byte ptr [RSI + 0x1] SHL R11D,0x10 OR R11D,EBX CMP R11D,0x10ffff JA 0x0014b6eb MOVZX R14D,byte ptr [RSI + 0x2] SHL R14D,0x8 MOVZX EBX,byte ptr [RSI + 0x3] OR R14,RBX OR R14,R11 MOV R11D,0xfffd CMP R14,qword ptr [RDI] JA 0x0014b641 MOV R11,qword ptr [RDI + 0x8] MOV R15D,R14D SHR R15D,0x8 MOV R15,qword ptr [R11 + R15*0x8] MOV R11,R14 TEST R15,R15 JZ 0x0014b641 LEA R11,[RBX + RBX*0x2] MOV R11D,dword ptr [R15 + R11*0x4 + 0x8] LAB_0014b641: MOV EBX,R10D AND EBX,0x3f ADD RBX,RAX MOV R14D,R11D SHR R14D,0x18 IMUL R14,RBX MOV RBX,R10 SHL RBX,0x8 ADD RBX,R14 XOR RBX,R10 MOV R10D,EBX AND R10D,0x3f ADD R10,RAX ADD R10,0x3 MOV R14D,R11D SHR R14D,0x10 AND R14D,R9D IMUL R14,R10 MOV R10,RBX SHL R10,0x8 ADD R10,R14 XOR R10,RBX MOV EBX,R10D AND EBX,0x3f ADD RBX,RAX ADD RBX,0x6 MOV R14D,R11D SHR R14D,0x8 AND R14D,R9D IMUL R14,RBX MOV RBX,R10 SHL RBX,0x8 ADD RBX,R14 XOR RBX,R10 MOV R10D,EBX AND R10D,0x3f ADD R10,RAX ADD R10,0x9 MOVZX R11D,R11B IMUL R11,R10 MOV R10,RBX SHL R10,0x8 ADD R10,R11 XOR R10,RBX ADD RAX,0xc LEA R11,[RSI + 0x8] ADD RSI,0x4 CMP R11,RDX JBE 0x0014b5e4 LAB_0014b6eb: POP RBX POP R14 POP R15 POP RBP LAB_0014b6f1: MOV qword ptr [RCX],R10 MOV qword ptr [R8],RAX RET
void my_hash_sort_utf32_nopad(long param_1,byte *param_2,long param_3,ulong *param_4,long *param_5) { byte *pbVar1; long lVar2; long lVar3; byte *pbVar4; ulong uVar5; uint uVar6; ulong uVar7; ulong uVar8; uVar5 = *param_4; lVar3 = *param_5; if (3 < param_3) { pbVar4 = param_2 + param_3; do { uVar6 = (uint)param_2[1] << 0x10 | (uint)*param_2 << 0x18; if (0x10ffff < uVar6) break; uVar8 = (ulong)CONCAT11(param_2[2],param_2[3]) | (ulong)uVar6; uVar7 = 0xfffd; if ((uVar8 <= **(ulong **)(param_1 + 0x78)) && (lVar2 = *(long *)((*(ulong **)(param_1 + 0x78))[1] + (uVar8 >> 8) * 8), uVar7 = uVar8, lVar2 != 0)) { uVar7 = (ulong)*(uint *)(lVar2 + 8 + (ulong)param_2[3] * 0xc); } uVar5 = uVar5 * 0x100 + (uVar7 >> 0x18) * ((ulong)((uint)uVar5 & 0x3f) + lVar3) ^ uVar5; uVar5 = uVar5 * 0x100 + (ulong)((uint)(uVar7 >> 0x10) & 0xff) * ((ulong)((uint)uVar5 & 0x3f) + lVar3 + 3) ^ uVar5; uVar5 = uVar5 * 0x100 + (ulong)((uint)(uVar7 >> 8) & 0xff) * ((ulong)((uint)uVar5 & 0x3f) + lVar3 + 6) ^ uVar5 ; uVar5 = uVar5 * 0x100 + (uVar7 & 0xff) * ((ulong)((uint)uVar5 & 0x3f) + lVar3 + 9) ^ uVar5; lVar3 = lVar3 + 0xc; pbVar1 = param_2 + 8; param_2 = param_2 + 4; } while (pbVar1 <= pbVar4); } *param_4 = uVar5; *param_5 = lVar3; return; }
53,175
b2d
eloqsql/strings/dtoa.c
static double b2d(Bigint *a, int *e) { ULong *xa, *xa0, w, y, z; int k; U d; #define d0 word0(&d) #define d1 word1(&d) xa0= a->p.x; xa= xa0 + a->wds; y= *--xa; k= hi0bits(y); *e= 32 - k; if (k < Ebits) { d0= Exp_1 | y >> (Ebits - k); w= xa > xa0 ? *--xa : 0; d1= y << ((32-Ebits) + k) | w >> (Ebits - k); goto ret_d; } z= xa > xa0 ? *--xa : 0; if (k-= Ebits) { d0= Exp_1 | y << k | z >> (32 - k); y= xa > xa0 ? *--xa : 0; d1= z << k | y >> (32 - k); } else { d0= Exp_1 | y; d1= z; } ret_d: #undef d0 #undef d1 return dval(&d); }
O0
c
b2d: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax movq -0x8(%rbp), %rcx movslq 0x14(%rcx), %rcx shlq $0x2, %rcx addq %rcx, %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax movq %rax, %rcx addq $-0x4, %rcx movq %rcx, -0x18(%rbp) movl -0x4(%rax), %eax movl %eax, -0x28(%rbp) movl -0x28(%rbp), %edi callq 0xd1730 movl %eax, -0x30(%rbp) movl $0x20, %ecx subl -0x30(%rbp), %ecx movq -0x10(%rbp), %rax movl %ecx, (%rax) cmpl $0xb, -0x30(%rbp) jge 0xd18cd movl -0x28(%rbp), %eax movl $0xb, %ecx subl -0x30(%rbp), %ecx shrl %cl, %eax orl $0x3ff00000, %eax # imm = 0x3FF00000 movl %eax, -0x34(%rbp) movq -0x18(%rbp), %rax cmpq -0x20(%rbp), %rax jbe 0xd189c movq -0x18(%rbp), %rax movq %rax, %rcx addq $-0x4, %rcx movq %rcx, -0x18(%rbp) movl -0x4(%rax), %eax movl %eax, -0x3c(%rbp) jmp 0xd18a3 xorl %eax, %eax movl %eax, -0x3c(%rbp) jmp 0xd18a3 movl -0x3c(%rbp), %eax movl %eax, -0x24(%rbp) movl -0x28(%rbp), %eax movl -0x30(%rbp), %ecx addl $0x15, %ecx shll %cl, %eax movl -0x24(%rbp), %edx movl $0xb, %ecx subl -0x30(%rbp), %ecx shrl %cl, %edx movl %edx, %ecx orl %ecx, %eax movl %eax, -0x38(%rbp) jmp 0xd1989 movq -0x18(%rbp), %rax cmpq -0x20(%rbp), %rax jbe 0xd18ee movq -0x18(%rbp), %rax movq %rax, %rcx addq $-0x4, %rcx movq %rcx, -0x18(%rbp) movl -0x4(%rax), %eax movl %eax, -0x40(%rbp) jmp 0xd18f5 xorl %eax, %eax movl %eax, -0x40(%rbp) jmp 0xd18f5 movl -0x40(%rbp), %eax movl %eax, -0x2c(%rbp) movl -0x30(%rbp), %eax subl $0xb, %eax movl %eax, -0x30(%rbp) cmpl $0x0, %eax je 0xd1976 movl -0x28(%rbp), %eax movl -0x30(%rbp), %ecx shll %cl, %eax orl $0x3ff00000, %eax # imm = 0x3FF00000 movl -0x2c(%rbp), %edx movl $0x20, %ecx subl -0x30(%rbp), %ecx shrl %cl, %edx movl %edx, %ecx orl %ecx, %eax movl %eax, -0x34(%rbp) movq -0x18(%rbp), %rax cmpq -0x20(%rbp), %rax jbe 0xd194b movq -0x18(%rbp), %rax movq %rax, %rcx addq $-0x4, %rcx movq %rcx, -0x18(%rbp) movl -0x4(%rax), %eax movl %eax, -0x44(%rbp) jmp 0xd1952 xorl %eax, %eax movl %eax, -0x44(%rbp) jmp 0xd1952 movl -0x44(%rbp), %eax movl %eax, -0x28(%rbp) movl -0x2c(%rbp), %eax movl -0x30(%rbp), %ecx shll %cl, %eax movl -0x28(%rbp), %edx movl $0x20, %ecx subl -0x30(%rbp), %ecx shrl %cl, %edx movl %edx, %ecx orl %ecx, %eax movl %eax, -0x38(%rbp) jmp 0xd1987 movl -0x28(%rbp), %eax orl $0x3ff00000, %eax # imm = 0x3FF00000 movl %eax, -0x34(%rbp) movl -0x2c(%rbp), %eax movl %eax, -0x38(%rbp) jmp 0xd1989 movsd -0x38(%rbp), %xmm0 addq $0x50, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
b2d: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] mov rax, [rax] mov [rbp+var_20], rax mov rax, [rbp+var_20] mov rcx, [rbp+var_8] movsxd rcx, dword ptr [rcx+14h] shl rcx, 2 add rax, rcx mov [rbp+var_18], rax mov rax, [rbp+var_18] mov rcx, rax add rcx, 0FFFFFFFFFFFFFFFCh mov [rbp+var_18], rcx mov eax, [rax-4] mov [rbp+var_28], eax mov edi, [rbp+var_28] call hi0bits_0 mov [rbp+var_30], eax mov ecx, 20h ; ' ' sub ecx, [rbp+var_30] mov rax, [rbp+var_10] mov [rax], ecx cmp [rbp+var_30], 0Bh jge short loc_D18CD mov eax, [rbp+var_28] mov ecx, 0Bh sub ecx, [rbp+var_30] shr eax, cl or eax, 3FF00000h mov dword ptr [rbp+var_38+4], eax mov rax, [rbp+var_18] cmp rax, [rbp+var_20] jbe short loc_D189C mov rax, [rbp+var_18] mov rcx, rax add rcx, 0FFFFFFFFFFFFFFFCh mov [rbp+var_18], rcx mov eax, [rax-4] mov [rbp+var_3C], eax jmp short loc_D18A3 loc_D189C: xor eax, eax mov [rbp+var_3C], eax jmp short $+2 loc_D18A3: mov eax, [rbp+var_3C] mov [rbp+var_24], eax mov eax, [rbp+var_28] mov ecx, [rbp+var_30] add ecx, 15h shl eax, cl mov edx, [rbp+var_24] mov ecx, 0Bh sub ecx, [rbp+var_30] shr edx, cl mov ecx, edx or eax, ecx mov dword ptr [rbp+var_38], eax jmp loc_D1989 loc_D18CD: mov rax, [rbp+var_18] cmp rax, [rbp+var_20] jbe short loc_D18EE mov rax, [rbp+var_18] mov rcx, rax add rcx, 0FFFFFFFFFFFFFFFCh mov [rbp+var_18], rcx mov eax, [rax-4] mov [rbp+var_40], eax jmp short loc_D18F5 loc_D18EE: xor eax, eax mov [rbp+var_40], eax jmp short $+2 loc_D18F5: mov eax, [rbp+var_40] mov [rbp+var_2C], eax mov eax, [rbp+var_30] sub eax, 0Bh mov [rbp+var_30], eax cmp eax, 0 jz short loc_D1976 mov eax, [rbp+var_28] mov ecx, [rbp+var_30] shl eax, cl or eax, 3FF00000h mov edx, [rbp+var_2C] mov ecx, 20h ; ' ' sub ecx, [rbp+var_30] shr edx, cl mov ecx, edx or eax, ecx mov dword ptr [rbp+var_38+4], eax mov rax, [rbp+var_18] cmp rax, [rbp+var_20] jbe short loc_D194B mov rax, [rbp+var_18] mov rcx, rax add rcx, 0FFFFFFFFFFFFFFFCh mov [rbp+var_18], rcx mov eax, [rax-4] mov [rbp+var_44], eax jmp short loc_D1952 loc_D194B: xor eax, eax mov [rbp+var_44], eax jmp short $+2 loc_D1952: mov eax, [rbp+var_44] mov [rbp+var_28], eax mov eax, [rbp+var_2C] mov ecx, [rbp+var_30] shl eax, cl mov edx, [rbp+var_28] mov ecx, 20h ; ' ' sub ecx, [rbp+var_30] shr edx, cl mov ecx, edx or eax, ecx mov dword ptr [rbp+var_38], eax jmp short loc_D1987 loc_D1976: mov eax, [rbp+var_28] or eax, 3FF00000h mov dword ptr [rbp+var_38+4], eax mov eax, [rbp+var_2C] mov dword ptr [rbp+var_38], eax loc_D1987: jmp short $+2 loc_D1989: movsd xmm0, [rbp+var_38] add rsp, 50h pop rbp retn
double b2d(long long a1, _DWORD *a2) { int *v2; // rax unsigned int v4; // [rsp+Ch] [rbp-44h] unsigned int v5; // [rsp+10h] [rbp-40h] unsigned int v6; // [rsp+14h] [rbp-3Ch] long long v7; // [rsp+18h] [rbp-38h] int v8; // [rsp+20h] [rbp-30h] int v9; // [rsp+20h] [rbp-30h] long long v10; // [rsp+24h] [rbp-2Ch] unsigned long long v11; // [rsp+30h] [rbp-20h] int *v12; // [rsp+38h] [rbp-18h] v11 = *(_QWORD *)a1; v12 = (int *)(4LL * *(int *)(a1 + 20) + *(_QWORD *)a1 - 4); HIDWORD(v10) = *v12; v8 = hi0bits_0(*v12); *a2 = 32 - v8; if ( v8 >= 11 ) { if ( (unsigned long long)v12 <= v11 ) { v5 = 0; } else { v2 = v12--; v5 = *(v2 - 1); } LODWORD(v10) = v5; v9 = v8 - 11; if ( v9 ) { HIDWORD(v7) = (v5 >> (32 - v9)) | (HIDWORD(v10) << v9) | 0x3FF00000; if ( (unsigned long long)v12 <= v11 ) v4 = 0; else v4 = *(v12 - 1); LODWORD(v7) = (v4 >> (32 - v9)) | (v5 << v9); } else { v7 = v10 | 0x3FF0000000000000LL; } } else { HIDWORD(v7) = (HIDWORD(v10) >> (11 - v8)) | 0x3FF00000; if ( (unsigned long long)v12 <= v11 ) v6 = 0; else v6 = *(v12 - 1); LODWORD(v7) = (v6 >> (11 - v8)) | (HIDWORD(v10) << (v8 + 21)); } return *(double *)&v7; }
b2d: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x8] MOVSXD RCX,dword ptr [RCX + 0x14] SHL RCX,0x2 ADD RAX,RCX MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x18] MOV RCX,RAX ADD RCX,-0x4 MOV qword ptr [RBP + -0x18],RCX MOV EAX,dword ptr [RAX + -0x4] MOV dword ptr [RBP + -0x28],EAX MOV EDI,dword ptr [RBP + -0x28] CALL 0x001d1730 MOV dword ptr [RBP + -0x30],EAX MOV ECX,0x20 SUB ECX,dword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX],ECX CMP dword ptr [RBP + -0x30],0xb JGE 0x001d18cd MOV EAX,dword ptr [RBP + -0x28] MOV ECX,0xb SUB ECX,dword ptr [RBP + -0x30] SHR EAX,CL OR EAX,0x3ff00000 MOV dword ptr [RBP + -0x34],EAX MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x20] JBE 0x001d189c MOV RAX,qword ptr [RBP + -0x18] MOV RCX,RAX ADD RCX,-0x4 MOV qword ptr [RBP + -0x18],RCX MOV EAX,dword ptr [RAX + -0x4] MOV dword ptr [RBP + -0x3c],EAX JMP 0x001d18a3 LAB_001d189c: XOR EAX,EAX MOV dword ptr [RBP + -0x3c],EAX JMP 0x001d18a3 LAB_001d18a3: MOV EAX,dword ptr [RBP + -0x3c] MOV dword ptr [RBP + -0x24],EAX MOV EAX,dword ptr [RBP + -0x28] MOV ECX,dword ptr [RBP + -0x30] ADD ECX,0x15 SHL EAX,CL MOV EDX,dword ptr [RBP + -0x24] MOV ECX,0xb SUB ECX,dword ptr [RBP + -0x30] SHR EDX,CL MOV ECX,EDX OR EAX,ECX MOV dword ptr [RBP + -0x38],EAX JMP 0x001d1989 LAB_001d18cd: MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x20] JBE 0x001d18ee MOV RAX,qword ptr [RBP + -0x18] MOV RCX,RAX ADD RCX,-0x4 MOV qword ptr [RBP + -0x18],RCX MOV EAX,dword ptr [RAX + -0x4] MOV dword ptr [RBP + -0x40],EAX JMP 0x001d18f5 LAB_001d18ee: XOR EAX,EAX MOV dword ptr [RBP + -0x40],EAX JMP 0x001d18f5 LAB_001d18f5: MOV EAX,dword ptr [RBP + -0x40] MOV dword ptr [RBP + -0x2c],EAX MOV EAX,dword ptr [RBP + -0x30] SUB EAX,0xb MOV dword ptr [RBP + -0x30],EAX CMP EAX,0x0 JZ 0x001d1976 MOV EAX,dword ptr [RBP + -0x28] MOV ECX,dword ptr [RBP + -0x30] SHL EAX,CL OR EAX,0x3ff00000 MOV EDX,dword ptr [RBP + -0x2c] MOV ECX,0x20 SUB ECX,dword ptr [RBP + -0x30] SHR EDX,CL MOV ECX,EDX OR EAX,ECX MOV dword ptr [RBP + -0x34],EAX MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x20] JBE 0x001d194b MOV RAX,qword ptr [RBP + -0x18] MOV RCX,RAX ADD RCX,-0x4 MOV qword ptr [RBP + -0x18],RCX MOV EAX,dword ptr [RAX + -0x4] MOV dword ptr [RBP + -0x44],EAX JMP 0x001d1952 LAB_001d194b: XOR EAX,EAX MOV dword ptr [RBP + -0x44],EAX JMP 0x001d1952 LAB_001d1952: MOV EAX,dword ptr [RBP + -0x44] MOV dword ptr [RBP + -0x28],EAX MOV EAX,dword ptr [RBP + -0x2c] MOV ECX,dword ptr [RBP + -0x30] SHL EAX,CL MOV EDX,dword ptr [RBP + -0x28] MOV ECX,0x20 SUB ECX,dword ptr [RBP + -0x30] SHR EDX,CL MOV ECX,EDX OR EAX,ECX MOV dword ptr [RBP + -0x38],EAX JMP 0x001d1987 LAB_001d1976: MOV EAX,dword ptr [RBP + -0x28] OR EAX,0x3ff00000 MOV dword ptr [RBP + -0x34],EAX MOV EAX,dword ptr [RBP + -0x2c] MOV dword ptr [RBP + -0x38],EAX LAB_001d1987: JMP 0x001d1989 LAB_001d1989: MOVSD XMM0,qword ptr [RBP + -0x38] ADD RSP,0x50 POP RBP RET
int8 b2d(ulong *param_1,int *param_2) { uint uVar1; ulong uVar2; char cVar3; int iVar4; long lVar5; byte bVar6; int4 local_4c; int4 local_48; int4 local_44; int4 local_40; int4 uStack_3c; int8 local_20; uVar2 = *param_1; lVar5 = uVar2 + (long)*(int *)((long)param_1 + 0x14) * 4; local_20 = lVar5 - 4; uVar1 = *(uint *)(lVar5 + -4); iVar4 = hi0bits(uVar1); *param_2 = 0x20 - iVar4; if (iVar4 < 0xb) { cVar3 = (char)iVar4; uStack_3c = uVar1 >> (0xbU - cVar3 & 0x1f) | 0x3ff00000; if (uVar2 < local_20) { local_44 = *(uint *)(lVar5 + -8); } else { local_44 = 0; } local_40 = uVar1 << (cVar3 + 0x15U & 0x1f) | local_44 >> (0xbU - cVar3 & 0x1f); } else { if (uVar2 < local_20) { local_20 = lVar5 - 8; local_48 = *(uint *)(lVar5 + -8); } else { local_48 = 0; } if (iVar4 + -0xb == 0) { uStack_3c = uVar1 | 0x3ff00000; local_40 = local_48; } else { bVar6 = (byte)(iVar4 + -0xb); uStack_3c = uVar1 << (bVar6 & 0x1f) | 0x3ff00000 | local_48 >> (0x20 - bVar6 & 0x1f); if (uVar2 < local_20) { local_4c = *(uint *)(local_20 - 4); } else { local_4c = 0; } local_40 = local_48 << (bVar6 & 0x1f) | local_4c >> (0x20 - bVar6 & 0x1f); } } return CONCAT44(uStack_3c,local_40); }
53,176
b2d
eloqsql/strings/dtoa.c
static double b2d(Bigint *a, int *e) { ULong *xa, *xa0, w, y, z; int k; U d; #define d0 word0(&d) #define d1 word1(&d) xa0= a->p.x; xa= xa0 + a->wds; y= *--xa; k= hi0bits(y); *e= 32 - k; if (k < Ebits) { d0= Exp_1 | y >> (Ebits - k); w= xa > xa0 ? *--xa : 0; d1= y << ((32-Ebits) + k) | w >> (Ebits - k); goto ret_d; } z= xa > xa0 ? *--xa : 0; if (k-= Ebits) { d0= Exp_1 | y << k | z >> (32 - k); y= xa > xa0 ? *--xa : 0; d1= z << k | y >> (32 - k); } else { d0= Exp_1 | y; d1= z; } ret_d: #undef d0 #undef d1 return dval(&d); }
O3
c
b2d: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r15 movq %rdi, %r14 movslq %esi, %rax leaq (%rdi,%rax,4), %r13 leaq (%rdi,%rax,4), %r12 addq $-0x4, %r12 movl (%r12), %ebx movl %ebx, %edi callq 0x615d2 movl $0x20, %ecx subl %eax, %ecx movl %ecx, (%r15) cmpl $0xa, %eax ja 0x616a0 movl $0xb, %edx subl %eax, %edx movl %ebx, %esi movl %edx, %ecx shrl %cl, %esi xorl %edi, %edi cmpq %r14, %r12 jbe 0x61693 movl -0x8(%r13), %edi leal 0x15(%rax), %ecx shll %cl, %ebx movl %edx, %ecx shrl %cl, %edi orl %ebx, %edi jmp 0x616e7 xorl %edi, %edi cmpq %r14, %r12 jbe 0x616b2 movl -0x8(%r13), %edi addq $-0x8, %r13 movq %r13, %r12 movl %eax, %edx addl $-0xb, %edx je 0x616e5 movl %edx, %ecx shll %cl, %ebx movl $0x2b, %esi subl %eax, %esi movl %edi, %eax movl %esi, %ecx shrl %cl, %eax xorl %r8d, %r8d cmpq %r14, %r12 jbe 0x616d7 movl -0x4(%r12), %r8d movl %edx, %ecx shll %cl, %edi movl %esi, %ecx shrl %cl, %r8d orl %eax, %ebx orl %r8d, %edi movl %ebx, %esi orl $0x3ff00000, %esi # imm = 0x3FF00000 shlq $0x20, %rsi movl %edi, %eax orq %rsi, %rax movq %rax, %xmm0 addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
b2d: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r15, rdx mov r14, rdi movsxd rax, esi lea r13, [rdi+rax*4] lea r12, [rdi+rax*4] add r12, 0FFFFFFFFFFFFFFFCh mov ebx, [r12] mov edi, ebx call hi0bits mov ecx, 20h ; ' ' sub ecx, eax mov [r15], ecx cmp eax, 0Ah ja short loc_616A0 mov edx, 0Bh sub edx, eax mov esi, ebx mov ecx, edx shr esi, cl xor edi, edi cmp r12, r14 jbe short loc_61693 mov edi, [r13-8] loc_61693: lea ecx, [rax+15h] shl ebx, cl mov ecx, edx shr edi, cl or edi, ebx jmp short loc_616E7 loc_616A0: xor edi, edi cmp r12, r14 jbe short loc_616B2 mov edi, [r13-8] add r13, 0FFFFFFFFFFFFFFF8h mov r12, r13 loc_616B2: mov edx, eax add edx, 0FFFFFFF5h jz short loc_616E5 mov ecx, edx shl ebx, cl mov esi, 2Bh ; '+' sub esi, eax mov eax, edi mov ecx, esi shr eax, cl xor r8d, r8d cmp r12, r14 jbe short loc_616D7 mov r8d, [r12-4] loc_616D7: mov ecx, edx shl edi, cl mov ecx, esi shr r8d, cl or ebx, eax or edi, r8d loc_616E5: mov esi, ebx loc_616E7: or esi, 3FF00000h shl rsi, 20h mov eax, edi or rax, rsi movq xmm0, rax add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
double b2d(unsigned long long a1, int a2, _DWORD *a3) { unsigned long long v5; // r13 unsigned long long v6; // r12 unsigned int v7; // ebx unsigned int v8; // eax unsigned int v9; // esi unsigned int v10; // edi unsigned int v11; // edi char v12; // dl unsigned int v13; // ebx char v14; // si unsigned int v15; // eax unsigned int v16; // r8d double result; // xmm0_8 v5 = a1 + 4LL * a2; v6 = v5 - 4; v7 = *(_DWORD *)(v5 - 4); v8 = hi0bits(v7); *a3 = 32 - v8; if ( v8 > 0xA ) { v11 = 0; if ( v6 > a1 ) { v11 = *(_DWORD *)(v5 - 8); v6 = v5 - 8; } v12 = v8 - 11; if ( v8 != 11 ) { v13 = v7 << v12; v14 = 43 - v8; v15 = v11 >> (43 - v8); v16 = 0; if ( v6 > a1 ) v16 = *(_DWORD *)(v6 - 4); v7 = v15 | v13; v11 = (v16 >> v14) | (v11 << v12); } v9 = v7; } else { v9 = v7 >> (11 - v8); v10 = 0; if ( v6 > a1 ) v10 = *(_DWORD *)(v5 - 8); v11 = (v7 << (v8 + 21)) | (v10 >> (11 - v8)); } *(_QWORD *)&result = ((unsigned long long)(v9 | 0x3FF00000) << 32) | v11; return result; }
b2d: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R15,RDX MOV R14,RDI MOVSXD RAX,ESI LEA R13,[RDI + RAX*0x4] LEA R12,[RDI + RAX*0x4] ADD R12,-0x4 MOV EBX,dword ptr [R12] MOV EDI,EBX CALL 0x001615d2 MOV ECX,0x20 SUB ECX,EAX MOV dword ptr [R15],ECX CMP EAX,0xa JA 0x001616a0 MOV EDX,0xb SUB EDX,EAX MOV ESI,EBX MOV ECX,EDX SHR ESI,CL XOR EDI,EDI CMP R12,R14 JBE 0x00161693 MOV EDI,dword ptr [R13 + -0x8] LAB_00161693: LEA ECX,[RAX + 0x15] SHL EBX,CL MOV ECX,EDX SHR EDI,CL OR EDI,EBX JMP 0x001616e7 LAB_001616a0: XOR EDI,EDI CMP R12,R14 JBE 0x001616b2 MOV EDI,dword ptr [R13 + -0x8] ADD R13,-0x8 MOV R12,R13 LAB_001616b2: MOV EDX,EAX ADD EDX,-0xb JZ 0x001616e5 MOV ECX,EDX SHL EBX,CL MOV ESI,0x2b SUB ESI,EAX MOV EAX,EDI MOV ECX,ESI SHR EAX,CL XOR R8D,R8D CMP R12,R14 JBE 0x001616d7 MOV R8D,dword ptr [R12 + -0x4] LAB_001616d7: MOV ECX,EDX SHL EDI,CL MOV ECX,ESI SHR R8D,CL OR EBX,EAX OR EDI,R8D LAB_001616e5: MOV ESI,EBX LAB_001616e7: OR ESI,0x3ff00000 SHL RSI,0x20 MOV EAX,EDI OR RAX,RSI MOVQ XMM0,RAX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
ulong b2d(uint *param_1,int param_2,int *param_3) { char cVar1; uint uVar2; long lVar3; byte bVar4; uint uVar5; uint uVar6; uint *puVar7; lVar3 = (long)param_2; puVar7 = param_1 + lVar3 + -1; uVar5 = *puVar7; uVar2 = hi0bits(uVar5); *param_3 = 0x20 - uVar2; cVar1 = (char)uVar2; if (uVar2 < 0xb) { uVar2 = 0; if (param_1 < puVar7) { uVar2 = param_1[lVar3 + -2]; } uVar6 = uVar2 >> (0xbU - cVar1 & 0x1f) | uVar5 << (cVar1 + 0x15U & 0x1f); uVar5 = uVar5 >> (0xbU - cVar1 & 0x1f); } else { uVar6 = 0; if (param_1 < puVar7) { uVar6 = param_1[lVar3 + -2]; puVar7 = param_1 + lVar3 + -2; } if (uVar2 - 0xb != 0) { bVar4 = (byte)(uVar2 - 0xb); uVar2 = 0; if (param_1 < puVar7) { uVar2 = puVar7[-1]; } uVar5 = uVar5 << (bVar4 & 0x1f) | uVar6 >> (0x2bU - cVar1 & 0x1f); uVar6 = uVar6 << (bVar4 & 0x1f) | uVar2 >> (0x2bU - cVar1 & 0x1f); } } return CONCAT44(uVar5,uVar6) | 0x3ff0000000000000; }
53,177
minja::Value::keys()
monkey531[P]llama/common/minja.hpp
std::vector<Value> keys() { if (!object_) throw std::runtime_error("Value is not an object: " + dump()); std::vector<Value> res; for (const auto& item : *object_) { res.push_back(item.first); } return res; }
O0
cpp
minja::Value::keys(): subq $0xf8, %rsp movq %rdi, 0x10(%rsp) movq %rdi, %rax movq %rax, 0x18(%rsp) movq %rdi, 0xf0(%rsp) movq %rsi, 0xe8(%rsp) movq 0xe8(%rsp), %rdi movq %rdi, 0x20(%rsp) addq $0x20, %rdi callq 0xacd50 testb $0x1, %al jne 0xe61c0 movb $0x1, 0x9b(%rsp) movl $0x10, %edi callq 0x52570 movq 0x20(%rsp), %rsi movq %rax, 0x8(%rsp) leaq 0xa8(%rsp), %rdi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0xacc60 jmp 0xe60f4 leaq 0xdf809(%rip), %rsi # 0x1c5904 leaq 0xc8(%rsp), %rdi leaq 0xa8(%rsp), %rdx callq 0x70110 jmp 0xe6112 movq 0x8(%rsp), %rdi leaq 0xc8(%rsp), %rsi callq 0x523c0 jmp 0xe6126 movq 0x8(%rsp), %rdi movb $0x0, 0x9b(%rsp) movq 0x15de76(%rip), %rsi # 0x243fb0 movq 0x15de37(%rip), %rdx # 0x243f78 callq 0x52960 jmp 0xe62f3 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xa0(%rsp) movl %eax, 0x9c(%rsp) jmp 0xe61a5 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xa0(%rsp) movl %eax, 0x9c(%rsp) jmp 0xe6198 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xa0(%rsp) movl %eax, 0x9c(%rsp) leaq 0xc8(%rsp), %rdi callq 0x53180 leaq 0xa8(%rsp), %rdi callq 0x53180 testb $0x1, 0x9b(%rsp) jne 0xe61b1 jmp 0xe61bb movq 0x8(%rsp), %rdi callq 0x52cb0 jmp 0xe62e6 movq 0x10(%rsp), %rdi movb $0x0, 0x9a(%rsp) callq 0xd7930 movq 0x20(%rsp), %rdi addq $0x20, %rdi callq 0xd3200 movq %rax, 0x90(%rsp) movq 0x90(%rsp), %rdi callq 0xae5b0 movq %rax, 0x88(%rsp) movq 0x90(%rsp), %rdi callq 0xae620 movq %rax, 0x80(%rsp) leaq 0x88(%rsp), %rdi leaq 0x80(%rsp), %rsi callq 0xae5e0 testb $0x1, %al jne 0xe6230 jmp 0xe62b3 leaq 0x88(%rsp), %rdi callq 0xd6c80 movq %rax, 0x78(%rsp) movq 0x78(%rsp), %rsi leaq 0x28(%rsp), %rdi callq 0xd2ce0 jmp 0xe6253 movq 0x10(%rsp), %rdi leaq 0x28(%rsp), %rsi callq 0xd39a0 jmp 0xe6264 leaq 0x28(%rsp), %rdi callq 0xac5a0 leaq 0x88(%rsp), %rdi callq 0xae9c0 jmp 0xe6212 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xa0(%rsp) movl %eax, 0x9c(%rsp) jmp 0xe62dc movq %rax, %rcx movl %edx, %eax movq %rcx, 0xa0(%rsp) movl %eax, 0x9c(%rsp) leaq 0x28(%rsp), %rdi callq 0xac5a0 jmp 0xe62dc movb $0x1, 0x9a(%rsp) testb $0x1, 0x9a(%rsp) jne 0xe62cf movq 0x10(%rsp), %rdi callq 0xd7a60 movq 0x18(%rsp), %rax addq $0xf8, %rsp retq movq 0x10(%rsp), %rdi callq 0xd7a60 movq 0xa0(%rsp), %rdi callq 0x529b0 nopw %cs:(%rax,%rax) nopl (%rax)
_ZN5minja5Value4keysEv: sub rsp, 0F8h mov [rsp+0F8h+var_E8], rdi mov rax, rdi mov [rsp+0F8h+var_E0], rax mov [rsp+0F8h+var_8], rdi mov [rsp+0F8h+var_10], rsi mov rdi, [rsp+0F8h+var_10] mov [rsp+0F8h+var_D8], rdi add rdi, 20h ; ' ' call _ZNKSt12__shared_ptrIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEELN9__gnu_cxx12_Lock_policyE2EEcvbEv; std::__shared_ptr<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2>::operator bool(void) test al, 1 jnz loc_E61C0 mov [rsp+0F8h+var_5D], 1 mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rsi, [rsp+0F8h+var_D8] mov [rsp+0F8h+var_F0], rax lea rdi, [rsp+0F8h+var_50] mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) jmp short $+2 loc_E60F4: lea rsi, aValueIsNotAnOb; "Value is not an object: " lea rdi, [rsp+0F8h+var_30] lea rdx, [rsp+0F8h+var_50] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) jmp short $+2 loc_E6112: mov rdi, [rsp+0F8h+var_F0] lea rsi, [rsp+0F8h+var_30] call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) jmp short $+2 loc_E6126: mov rdi, [rsp+0F8h+var_F0]; void * mov [rsp+0F8h+var_5D], 0 mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) call ___cxa_throw jmp loc_E62F3 mov rcx, rax mov eax, edx mov [rsp+arg_98], rcx mov [rsp+arg_94], eax jmp short loc_E61A5 mov rcx, rax mov eax, edx mov [rsp+arg_98], rcx mov [rsp+arg_94], eax jmp short loc_E6198 mov rcx, rax mov eax, edx mov [rsp+arg_98], rcx mov [rsp+arg_94], eax lea rdi, [rsp+arg_C0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_E6198: lea rdi, [rsp+arg_A0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_E61A5: test [rsp+arg_93], 1 jnz short loc_E61B1 jmp short loc_E61BB loc_E61B1: mov rdi, [rsp+arg_0]; void * call ___cxa_free_exception loc_E61BB: jmp loc_E62E6 loc_E61C0: mov rdi, [rsp+0F8h+var_E8] mov [rsp+0F8h+var_5E], 0 call _ZNSt6vectorIN5minja5ValueESaIS1_EEC2Ev; std::vector<minja::Value>::vector(void) mov rdi, [rsp+0F8h+var_D8] add rdi, 20h ; ' ' call _ZNKSt19__shared_ptr_accessIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv; std::__shared_ptr_access<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>>>,(__gnu_cxx::_Lock_policy)2,false,false>::operator*(void) mov [rsp+0F8h+var_68], rax mov rdi, [rsp+0F8h+var_68] call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE5beginEv; 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>>::begin(void) mov [rsp+0F8h+var_70], rax mov rdi, [rsp+0F8h+var_68] call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE3endEv; 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>>::end(void) mov [rsp+0F8h+var_78], rax loc_E6212: lea rdi, [rsp+0F8h+var_70] lea rsi, [rsp+0F8h+var_78] call _ZN9__gnu_cxxneIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEEbRKNS_17__normal_iteratorIT_T0_EEST_; __gnu_cxx::operator!=<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>>> const&,__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>>> const&) test al, 1 jnz short loc_E6230 jmp loc_E62B3 loc_E6230: lea rdi, [rsp+0F8h+var_70] call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEdeEv; __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>>>::operator*(void) mov [rsp+0F8h+var_80], rax mov rsi, [rsp+0F8h+var_80] lea rdi, [rsp+0F8h+var_D0] call _ZN5minja5ValueC2ERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEE; minja::Value::Value(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) jmp short $+2 loc_E6253: mov rdi, [rsp+0F8h+var_E8] lea rsi, [rsp+0F8h+var_D0] call _ZNSt6vectorIN5minja5ValueESaIS1_EE9push_backEOS1_; std::vector<minja::Value>::push_back(minja::Value&&) jmp short $+2 loc_E6264: lea rdi, [rsp+0F8h+var_D0]; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() lea rdi, [rsp+0F8h+var_70] call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEppEv; __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>>>::operator++(void) jmp short loc_E6212 mov rcx, rax mov eax, edx mov [rsp+arg_98], rcx mov [rsp+arg_94], eax jmp short loc_E62DC mov rcx, rax mov eax, edx mov [rsp+arg_98], rcx mov [rsp+arg_94], eax lea rdi, [rsp+arg_20]; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() jmp short loc_E62DC loc_E62B3: mov [rsp+0F8h+var_5E], 1 test [rsp+0F8h+var_5E], 1 jnz short loc_E62CF mov rdi, [rsp+0F8h+var_E8] call _ZNSt6vectorIN5minja5ValueESaIS1_EED2Ev; std::vector<minja::Value>::~vector() loc_E62CF: mov rax, [rsp+0F8h+var_E0] add rsp, 0F8h retn loc_E62DC: mov rdi, [rsp+arg_8] call _ZNSt6vectorIN5minja5ValueESaIS1_EED2Ev; std::vector<minja::Value>::~vector() loc_E62E6: mov rdi, [rsp+arg_98] call __Unwind_Resume loc_E62F3: nop word ptr [rax+rax+00000000h] nop dword ptr [rax]
minja::Value * minja::Value::keys(minja::Value *this, long long a2) { void *exception; // [rsp+8h] [rbp-F0h] _BYTE v4[80]; // [rsp+28h] [rbp-D0h] BYREF _BYTE *v5; // [rsp+78h] [rbp-80h] long long v6; // [rsp+80h] [rbp-78h] BYREF long long v7; // [rsp+88h] [rbp-70h] BYREF long long v8; // [rsp+90h] [rbp-68h] char v9; // [rsp+9Ah] [rbp-5Eh] char v10; // [rsp+9Bh] [rbp-5Dh] _BYTE v11[32]; // [rsp+A8h] [rbp-50h] BYREF _BYTE v12[32]; // [rsp+C8h] [rbp-30h] BYREF long long v13; // [rsp+E8h] [rbp-10h] minja::Value *v14; // [rsp+F0h] [rbp-8h] v14 = this; v13 = a2; if ( !std::__shared_ptr<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,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>>>,(__gnu_cxx::_Lock_policy)2>::operator bool((_QWORD *)(a2 + 32)) ) { exception = __cxa_allocate_exception(0x10uLL); minja::Value::dump[abi:cxx11]((long long)v11, a2, 0xFFFFFFFF, 0); std::operator+<char>((long long)v12, (long long)"Value is not an object: ", (long long)v11); std::runtime_error::runtime_error(exception, v12); v10 = 0; __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } v9 = 0; std::vector<minja::Value>::vector((long long)this); v8 = std::__shared_ptr_access<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>>>,(__gnu_cxx::_Lock_policy)2,false,false>::operator*(a2 + 32); v7 = 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,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>::begin(v8); v6 = 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,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>::end(v8); while ( __gnu_cxx::operator!=<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> *,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,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>( (long long)&v7, (long long)&v6) ) { v5 = (_BYTE *)__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,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,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,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::operator*((long long)&v7); minja::Value::Value((long long)v4, v5); std::vector<minja::Value>::push_back((long long)this, (long long)v4); minja::Value::~Value((minja::Value *)v4); __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,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,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,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::operator++(&v7); } return this; }
keys: SUB RSP,0xf8 MOV qword ptr [RSP + 0x10],RDI MOV RAX,RDI MOV qword ptr [RSP + 0x18],RAX MOV qword ptr [RSP + 0xf0],RDI MOV qword ptr [RSP + 0xe8],RSI MOV RDI,qword ptr [RSP + 0xe8] MOV qword ptr [RSP + 0x20],RDI ADD RDI,0x20 CALL 0x001acd50 TEST AL,0x1 JNZ 0x001e61c0 MOV byte ptr [RSP + 0x9b],0x1 MOV EDI,0x10 CALL 0x00152570 MOV RSI,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x8],RAX LAB_001e60de: LEA RDI,[RSP + 0xa8] MOV EDX,0xffffffff XOR ECX,ECX CALL 0x001acc60 JMP 0x001e60f4 LAB_001e60f4: LEA RSI,[0x2c5904] LEA RDI,[RSP + 0xc8] LEA RDX,[RSP + 0xa8] CALL 0x00170110 JMP 0x001e6112 LAB_001e6112: MOV RDI,qword ptr [RSP + 0x8] LEA RSI,[RSP + 0xc8] CALL 0x001523c0 JMP 0x001e6126 LAB_001e6126: MOV RDI,qword ptr [RSP + 0x8] MOV byte ptr [RSP + 0x9b],0x0 MOV RSI,qword ptr [0x00343fb0] MOV RDX,qword ptr [0x00343f78] CALL 0x00152960 LAB_001e61c0: MOV RDI,qword ptr [RSP + 0x10] MOV byte ptr [RSP + 0x9a],0x0 CALL 0x001d7930 MOV RDI,qword ptr [RSP + 0x20] ADD RDI,0x20 CALL 0x001d3200 MOV qword ptr [RSP + 0x90],RAX MOV RDI,qword ptr [RSP + 0x90] CALL 0x001ae5b0 MOV qword ptr [RSP + 0x88],RAX MOV RDI,qword ptr [RSP + 0x90] CALL 0x001ae620 MOV qword ptr [RSP + 0x80],RAX LAB_001e6212: LEA RDI,[RSP + 0x88] LEA RSI,[RSP + 0x80] CALL 0x001ae5e0 TEST AL,0x1 JNZ 0x001e6230 JMP 0x001e62b3 LAB_001e6230: LEA RDI,[RSP + 0x88] CALL 0x001d6c80 MOV qword ptr [RSP + 0x78],RAX MOV RSI,qword ptr [RSP + 0x78] LAB_001e6247: LEA RDI,[RSP + 0x28] CALL 0x001d2ce0 JMP 0x001e6253 LAB_001e6253: MOV RDI,qword ptr [RSP + 0x10] LEA RSI,[RSP + 0x28] CALL 0x001d39a0 LAB_001e6262: JMP 0x001e6264 LAB_001e6264: LEA RDI,[RSP + 0x28] CALL 0x001ac5a0 LEA RDI,[RSP + 0x88] CALL 0x001ae9c0 JMP 0x001e6212 LAB_001e62b3: MOV byte ptr [RSP + 0x9a],0x1 TEST byte ptr [RSP + 0x9a],0x1 JNZ 0x001e62cf MOV RDI,qword ptr [RSP + 0x10] CALL 0x001d7a60 LAB_001e62cf: MOV RAX,qword ptr [RSP + 0x18] ADD RSP,0xf8 RET
/* WARNING: Removing unreachable block (ram,0x001e62c5) */ /* minja::Value::keys() */ vector<minja::Value,std::allocator<minja::Value>> * minja::Value::keys(void) { bool bVar1; runtime_error *this; long in_RSI; vector<minja::Value,std::allocator<minja::Value>> *in_RDI; Value local_d0 [80]; basic_json *local_80; int8 local_78; int8 local_70; vector<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>,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>>> *local_68; int1 local_5e; int1 local_5d; int1 local_50 [32]; string local_30 [48]; bVar1 = std::__shared_ptr::operator_cast_to_bool((__shared_ptr *)(in_RSI + 0x20)); if (bVar1) { local_5e = 0; std::vector<minja::Value,std::allocator<minja::Value>>::vector(in_RDI); local_68 = (vector<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>,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>>> *)std:: __shared_ptr_access<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>>>,(__gnu_cxx::_Lock_policy)2,false,false> ::operator*((__shared_ptr_access<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>>>,(__gnu_cxx::_Lock_policy)2,false,false> *)(in_RSI + 0x20)); local_70 = std:: vector<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>,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>>> ::begin(local_68); local_78 = std:: vector<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>,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>>> ::end(local_68); while (bVar1 = __gnu_cxx::operator!= ((__normal_iterator *)&local_70,(__normal_iterator *)&local_78), bVar1) { local_80 = (basic_json *) __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::__cxx11::string,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>*,std::vector<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>,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>>>> ::operator*((__normal_iterator<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>*,std::vector<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>,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>>>> *)&local_70); /* try { // try from 001e6247 to 001e6250 has its CatchHandler @ 001e627d */ Value(local_d0,local_80); /* try { // try from 001e6253 to 001e6261 has its CatchHandler @ 001e6293 */ std::vector<minja::Value,std::allocator<minja::Value>>::push_back(in_RDI,local_d0); ~Value(local_d0); __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::__cxx11::string,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>*,std::vector<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>,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>>>> ::operator++((__normal_iterator<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>*,std::vector<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>,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>>>> *)&local_70); } return in_RDI; } local_5d = 1; this = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001e60de to 001e60f1 has its CatchHandler @ 001e614b */ dump_abi_cxx11_((int)local_50,SUB81(in_RSI,0)); /* try { // try from 001e60f4 to 001e610f has its CatchHandler @ 001e6161 */ std::operator+((char *)local_30,(string *)"Value is not an object: "); /* try { // try from 001e6112 to 001e6145 has its CatchHandler @ 001e6177 */ std::runtime_error::runtime_error(this,local_30); local_5d = 0; /* WARNING: Subroutine does not return */ __cxa_throw(this,PTR_typeinfo_00343fb0,PTR__runtime_error_00343f78); }
53,178
glfwGetOSMesaDepthBuffer
untodesu[P]riteg/build_O3/_deps/glfw-src/src/osmesa_context.c
GLFWAPI int glfwGetOSMesaDepthBuffer(GLFWwindow* handle, int* width, int* height, int* bytesPerValue, void** buffer) { void* mesaBuffer; GLint mesaWidth, mesaHeight, mesaBytes; _GLFWwindow* window = (_GLFWwindow*) handle; assert(window != NULL); _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_FALSE); if (!OSMesaGetDepthBuffer(window->context.osmesa.handle, &mesaWidth, &mesaHeight, &mesaBytes, &mesaBuffer)) { _glfwInputError(GLFW_PLATFORM_ERROR, "OSMesa: Failed to retrieve depth buffer"); return GLFW_FALSE; } if (width) *width = mesaWidth; if (height) *height = mesaHeight; if (bytesPerValue) *bytesPerValue = mesaBytes; if (buffer) *buffer = mesaBuffer; return GLFW_TRUE; }
O3
c
glfwGetOSMesaDepthBuffer: pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x18, %rsp testq %rdi, %rdi je 0x286c7 leaq 0x80012(%rip), %rax # 0xa8638 cmpl $0x0, (%rax) je 0x28696 movq %r8, %rbx movq %rcx, %r14 movq %rdx, %r15 movq %rsi, %r12 movq 0x2a0(%rdi), %rdi leaq 0xc(%rsp), %rsi leaq 0x8(%rsp), %rdx leaq 0x4(%rsp), %rcx leaq 0x10(%rsp), %r8 callq *0x20980(%rax) testl %eax, %eax je 0x286a2 testq %r12, %r12 je 0x28669 movl 0xc(%rsp), %eax movl %eax, (%r12) testq %r15, %r15 je 0x28675 movl 0x8(%rsp), %eax movl %eax, (%r15) testq %r14, %r14 je 0x28681 movl 0x4(%rsp), %eax movl %eax, (%r14) movl $0x1, %r14d testq %rbx, %rbx je 0x286b8 movq 0x10(%rsp), %rax movq %rax, (%rbx) jmp 0x286b8 xorl %r14d, %r14d movl $0x10001, %edi # imm = 0x10001 xorl %esi, %esi jmp 0x286b1 leaq 0x5f81c(%rip), %rsi # 0x87ec5 xorl %r14d, %r14d movl $0x10008, %edi # imm = 0x10008 xorl %eax, %eax callq 0x18e91 movl %r14d, %eax addq $0x18, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq leaq 0x3ef30(%rip), %rdi # 0x675fe leaq 0x5f659(%rip), %rsi # 0x87d2e leaq 0x5f7a0(%rip), %rcx # 0x87e7c movl $0x14c, %edx # imm = 0x14C callq 0xc540
glfwGetOSMesaDepthBuffer: push r15 push r14 push r12 push rbx sub rsp, 18h test rdi, rdi jz loc_286C7 lea rax, _glfw cmp dword ptr [rax], 0 jz short loc_28696 mov rbx, r8 mov r14, rcx mov r15, rdx mov r12, rsi mov rdi, [rdi+2A0h] lea rsi, [rsp+38h+var_2C] lea rdx, [rsp+38h+var_30] lea rcx, [rsp+38h+var_34] lea r8, [rsp+38h+var_28] call qword ptr [rax+20980h] test eax, eax jz short loc_286A2 test r12, r12 jz short loc_28669 mov eax, [rsp+38h+var_2C] mov [r12], eax loc_28669: test r15, r15 jz short loc_28675 mov eax, [rsp+38h+var_30] mov [r15], eax loc_28675: test r14, r14 jz short loc_28681 mov eax, [rsp+38h+var_34] mov [r14], eax loc_28681: mov r14d, 1 test rbx, rbx jz short loc_286B8 mov rax, [rsp+38h+var_28] mov [rbx], rax jmp short loc_286B8 loc_28696: xor r14d, r14d mov edi, offset loc_10001 xor esi, esi jmp short loc_286B1 loc_286A2: lea rsi, aOsmesaFailedTo_3; "OSMesa: Failed to retrieve depth buffer" xor r14d, r14d mov edi, 10008h loc_286B1: xor eax, eax call _glfwInputError loc_286B8: mov eax, r14d add rsp, 18h pop rbx pop r12 pop r14 pop r15 retn loc_286C7: lea rdi, aWindowNull; "window != NULL" lea rsi, aWorkspaceLlm4b_18; "/workspace/llm4binary/github/2025_star3"... lea rcx, aIntGlfwgetosme_0; "int glfwGetOSMesaDepthBuffer(GLFWwindow"... mov edx, 14Ch call ___assert_fail
long long glfwGetOSMesaDepthBuffer(long long a1, _DWORD *a2, _DWORD *a3, _DWORD *a4, _QWORD *a5) { unsigned int v8; // r14d int v10; // [rsp+4h] [rbp-34h] BYREF int v11; // [rsp+8h] [rbp-30h] BYREF int v12; // [rsp+Ch] [rbp-2Ch] BYREF _QWORD v13[5]; // [rsp+10h] [rbp-28h] BYREF if ( !a1 ) __assert_fail( "window != NULL", "/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/build_O3/_deps/glfw-src/src/osmesa_context.c", 332LL, "int glfwGetOSMesaDepthBuffer(GLFWwindow *, int *, int *, int *, void **)"); if ( glfw[0] ) { if ( (*(unsigned int ( **)(_QWORD, int *, int *, int *, _QWORD *))&glfw[33376])( *(_QWORD *)(a1 + 672), &v12, &v11, &v10, v13) ) { if ( a2 ) *a2 = v12; if ( a3 ) *a3 = v11; if ( a4 ) *a4 = v10; v8 = 1; if ( a5 ) *a5 = v13[0]; } else { v8 = 0; glfwInputError(0x10008u, (long long)"OSMesa: Failed to retrieve depth buffer"); } } else { v8 = 0; glfwInputError((unsigned int)&loc_10001, 0LL); } return v8; }
glfwGetOSMesaDepthBuffer: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x18 TEST RDI,RDI JZ 0x001286c7 LEA RAX,[0x1a8638] CMP dword ptr [RAX],0x0 JZ 0x00128696 MOV RBX,R8 MOV R14,RCX MOV R15,RDX MOV R12,RSI MOV RDI,qword ptr [RDI + 0x2a0] LEA RSI,[RSP + 0xc] LEA RDX,[RSP + 0x8] LEA RCX,[RSP + 0x4] LEA R8,[RSP + 0x10] CALL qword ptr [RAX + 0x20980] TEST EAX,EAX JZ 0x001286a2 TEST R12,R12 JZ 0x00128669 MOV EAX,dword ptr [RSP + 0xc] MOV dword ptr [R12],EAX LAB_00128669: TEST R15,R15 JZ 0x00128675 MOV EAX,dword ptr [RSP + 0x8] MOV dword ptr [R15],EAX LAB_00128675: TEST R14,R14 JZ 0x00128681 MOV EAX,dword ptr [RSP + 0x4] MOV dword ptr [R14],EAX LAB_00128681: MOV R14D,0x1 TEST RBX,RBX JZ 0x001286b8 MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RBX],RAX JMP 0x001286b8 LAB_00128696: XOR R14D,R14D MOV EDI,0x10001 XOR ESI,ESI JMP 0x001286b1 LAB_001286a2: LEA RSI,[0x187ec5] XOR R14D,R14D MOV EDI,0x10008 LAB_001286b1: XOR EAX,EAX CALL 0x00118e91 LAB_001286b8: MOV EAX,R14D ADD RSP,0x18 POP RBX POP R12 POP R14 POP R15 RET LAB_001286c7: LEA RDI,[0x1675fe] LEA RSI,[0x187d2e] LEA RCX,[0x187e7c] MOV EDX,0x14c CALL 0x0010c540
int8 glfwGetOSMesaDepthBuffer (long param_1,int4 *param_2,int4 *param_3,int4 *param_4, int8 *param_5) { int iVar1; char *pcVar2; int8 uVar3; int4 local_34; int4 local_30; int4 local_2c; int8 local_28; if (param_1 == 0) { /* WARNING: Subroutine does not return */ __assert_fail("window != NULL", "/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/build_O3/_deps/glfw-src/src/osmesa_context.c" ,0x14c,"int glfwGetOSMesaDepthBuffer(GLFWwindow *, int *, int *, int *, void **)") ; } if (_glfw == 0) { uVar3 = 0x10001; pcVar2 = (char *)0x0; } else { iVar1 = (*DAT_001c8fb8)(*(int8 *)(param_1 + 0x2a0),&local_2c,&local_30,&local_34,&local_28 ); if (iVar1 != 0) { if (param_2 != (int4 *)0x0) { *param_2 = local_2c; } if (param_3 != (int4 *)0x0) { *param_3 = local_30; } if (param_4 != (int4 *)0x0) { *param_4 = local_34; } if (param_5 == (int8 *)0x0) { return 1; } *param_5 = local_28; return 1; } pcVar2 = "OSMesa: Failed to retrieve depth buffer"; uVar3 = 0x10008; } _glfwInputError(uVar3,pcVar2); return 0; }
53,179
ftxui::automerge(std::shared_ptr<ftxui::Node>)
Andrewchistyakov[P]flashcards_lyc/build_O3/_deps/ftxui-src/src/ftxui/dom/automerge.cpp
Element automerge(Element child) { class Impl : public NodeDecorator { public: using NodeDecorator::NodeDecorator; void Render(Screen& screen) override { for (int y = box_.y_min; y <= box_.y_max; ++y) { for (int x = box_.x_min; x <= box_.x_max; ++x) { screen.PixelAt(x, y).automerge = true; } } Node::Render(screen); } }; return std::make_shared<Impl>(std::move(child)); }
O3
cpp
ftxui::automerge(std::shared_ptr<ftxui::Node>): pushq %rbx movq %rdi, %rbx callq 0x23e42 movl $0x60, %esi movq %rbx, %rdi popq %rbx jmp 0xb400 nop
_ZZN5ftxui9automergeESt10shared_ptrINS_4NodeEEEN4ImplD0Ev: push rbx mov rbx, rdi call _ZN5ftxui4NodeD2Ev; ftxui::Node::~Node() mov esi, 60h ; '`'; unsigned __int64 mov rdi, rbx; void * pop rbx jmp __ZdlPvm; operator delete(void *,ulong)
void ftxui::automerge(std::shared_ptr<ftxui::Node>)::Impl::~Impl(ftxui::Node *a1) { ftxui::Node::~Node(a1); operator delete(a1, 0x60uLL); }
~Impl: PUSH RBX MOV RBX,RDI CALL 0x00123e42 MOV ESI,0x60 MOV RDI,RBX POP RBX JMP 0x0010b400
/* ~Impl() */ void __thiscall ftxui::automerge(std::shared_ptr<ftxui::Node>)::Impl::~Impl(Impl *this) { Node::~Node((Node *)this); operator_delete(this,0x60); return; }
53,180
google::protobuf::ServiceDescriptor::GetLocationPath(std::vector<int, std::allocator<int>>*) const
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc
void ServiceDescriptor::GetLocationPath(std::vector<int>* output) const { output->push_back(FileDescriptorProto::kServiceFieldNumber); output->push_back(index()); }
O3
cpp
google::protobuf::ServiceDescriptor::GetLocationPath(std::vector<int, std::allocator<int>>*) const: pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 movl $0x6, 0x4(%rsp) movq 0x8(%rsi), %rsi movq 0x10(%rbx), %rax cmpq %rax, %rsi je 0x26725 movl $0x6, (%rsi) addq $0x4, %rsi movq %rsi, 0x8(%rbx) jmp 0x2673a leaq 0x4(%rsp), %rdx movq %rbx, %rdi callq 0x434d2 movq 0x8(%rbx), %rsi movq 0x10(%rbx), %rax movq 0x10(%r14), %rcx subq 0x68(%rcx), %r14 shrq $0x4, %r14 imull $0xaaaaaaab, %r14d, %ecx # imm = 0xAAAAAAAB movl %ecx, (%rsp) cmpq %rax, %rsi je 0x26761 movl %ecx, (%rsi) addq $0x4, %rsi movq %rsi, 0x8(%rbx) jmp 0x2676c movq %rsp, %rdx movq %rbx, %rdi callq 0x434d2 addq $0x8, %rsp popq %rbx popq %r14 retq
_ZNK6google8protobuf17ServiceDescriptor15GetLocationPathEPSt6vectorIiSaIiEE: push r14 push rbx push rax mov rbx, rsi mov r14, rdi mov [rsp+18h+var_14], 6 mov rsi, [rsi+8] mov rax, [rbx+10h] cmp rsi, rax jz short loc_26725 mov dword ptr [rsi], 6 add rsi, 4 mov [rbx+8], rsi jmp short loc_2673A loc_26725: lea rdx, [rsp+18h+var_14] mov rdi, rbx call _ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_; std::vector<int>::_M_realloc_insert<int>(__gnu_cxx::__normal_iterator<int *,std::vector<int>>,int &&) mov rsi, [rbx+8] mov rax, [rbx+10h] loc_2673A: mov rcx, [r14+10h] sub r14, [rcx+68h] shr r14, 4 imul ecx, r14d, 0AAAAAAABh mov [rsp+18h+var_18], ecx cmp rsi, rax jz short loc_26761 mov [rsi], ecx add rsi, 4 mov [rbx+8], rsi jmp short loc_2676C loc_26761: mov rdx, rsp mov rdi, rbx call _ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_; std::vector<int>::_M_realloc_insert<int>(__gnu_cxx::__normal_iterator<int *,std::vector<int>>,int &&) loc_2676C: add rsp, 8 pop rbx pop r14 retn
long long google::protobuf::ServiceDescriptor::GetLocationPath(long long a1, long long a2) { int v2; // eax _DWORD *v4; // rsi long long result; // rax _DWORD *v6; // rsi int v7; // ecx int v8; // [rsp+0h] [rbp-18h] BYREF int v9[5]; // [rsp+4h] [rbp-14h] BYREF v8 = v2; v9[0] = 6; v4 = *(_DWORD **)(a2 + 8); result = *(_QWORD *)(a2 + 16); if ( v4 == (_DWORD *)result ) { std::vector<int>::_M_realloc_insert<int>(a2, v4, v9); v6 = *(_DWORD **)(a2 + 8); result = *(_QWORD *)(a2 + 16); } else { *v4 = 6; v6 = v4 + 1; *(_QWORD *)(a2 + 8) = v6; } v7 = -1431655765 * ((unsigned long long)(a1 - *(_QWORD *)(*(_QWORD *)(a1 + 16) + 104LL)) >> 4); v8 = v7; if ( v6 == (_DWORD *)result ) return std::vector<int>::_M_realloc_insert<int>(a2, v6, &v8); *v6 = v7; *(_QWORD *)(a2 + 8) = v6 + 1; return result; }
GetLocationPath: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RSI MOV R14,RDI MOV dword ptr [RSP + 0x4],0x6 MOV RSI,qword ptr [RSI + 0x8] MOV RAX,qword ptr [RBX + 0x10] CMP RSI,RAX JZ 0x00126725 MOV dword ptr [RSI],0x6 ADD RSI,0x4 MOV qword ptr [RBX + 0x8],RSI JMP 0x0012673a LAB_00126725: LEA RDX,[RSP + 0x4] MOV RDI,RBX CALL 0x001434d2 MOV RSI,qword ptr [RBX + 0x8] MOV RAX,qword ptr [RBX + 0x10] LAB_0012673a: MOV RCX,qword ptr [R14 + 0x10] SUB R14,qword ptr [RCX + 0x68] SHR R14,0x4 IMUL ECX,R14D,-0x55555555 MOV dword ptr [RSP],ECX CMP RSI,RAX JZ 0x00126761 MOV dword ptr [RSI],ECX ADD RSI,0x4 MOV qword ptr [RBX + 0x8],RSI JMP 0x0012676c LAB_00126761: MOV RDX,RSP MOV RDI,RBX CALL 0x001434d2 LAB_0012676c: ADD RSP,0x8 POP RBX POP R14 RET
/* WARNING: Type propagation algorithm not settling */ /* google::protobuf::ServiceDescriptor::GetLocationPath(std::vector<int, std::allocator<int> >*) const */ void __thiscall google::protobuf::ServiceDescriptor::GetLocationPath(ServiceDescriptor *this,vector *param_1) { int *piVar1; int *piVar2; int local_18 [2]; local_18[1] = 6; piVar2 = *(int **)(param_1 + 8); piVar1 = *(int **)(param_1 + 0x10); if (piVar2 == piVar1) { std::vector<int,std::allocator<int>>::_M_realloc_insert<int> ((vector<int,std::allocator<int>> *)param_1,piVar2,local_18 + 1); piVar2 = *(int **)(param_1 + 8); piVar1 = *(int **)(param_1 + 0x10); } else { *piVar2 = 6; piVar2 = piVar2 + 1; *(int **)(param_1 + 8) = piVar2; } local_18[0] = (int)((ulong)((long)this - *(long *)(*(long *)(this + 0x10) + 0x68)) >> 4) * -0x55555555; if (piVar2 == piVar1) { std::vector<int,std::allocator<int>>::_M_realloc_insert<int> ((vector<int,std::allocator<int>> *)param_1,piVar2,local_18); } else { *piVar2 = local_18[0]; *(int **)(param_1 + 8) = piVar2 + 1; } return; }
53,181
ggml_map_custom3_impl
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
static struct ggml_tensor * ggml_map_custom3_impl( struct ggml_context * ctx, struct ggml_tensor * a, struct ggml_tensor * b, struct ggml_tensor * c, const ggml_custom3_op_t fun, int n_tasks, void * userdata, bool inplace) { GGML_ASSERT(n_tasks == GGML_N_TASKS_MAX || n_tasks > 0); struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a); struct ggml_map_custom3_op_params params = { /*.fun =*/ fun, /*.n_tasks =*/ n_tasks, /*.userdata =*/ userdata }; ggml_set_op_params(result, (const void *) &params, sizeof(params)); result->op = GGML_OP_MAP_CUSTOM3; result->src[0] = a; result->src[1] = b; result->src[2] = c; return result; }
O2
c
ggml_map_custom3_impl: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rcx, %rbx cmpl $-0x1, %r9d sete %al testl %r9d, %r9d setg %cl orb %al, %cl je 0x26464 movl %r9d, %ebp movq %r8, %r12 movq %rdx, %r14 movq %rsi, %r15 cmpb $0x0, 0x58(%rsp) je 0x26410 callq 0x1d410 jmp 0x26415 callq 0x1e7a0 movq %rax, %r13 movq %rsp, %rsi movq %r12, (%rsi) movl %ebp, 0x8(%rsi) movq 0x50(%rsp), %rax movq %rax, 0x10(%rsi) pushq $0x18 popq %rdx movq %r13, %rdi callq 0x2221d movl $0x4f, 0x50(%r13) movq %r15, 0x98(%r13) movq %r14, 0xa0(%r13) movq %rbx, 0xa8(%r13) movq %r13, %rax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x28118(%rip), %rdi # 0x4e583 leaq 0x28163(%rip), %rdx # 0x4e5d5 leaq 0x2a59a(%rip), %rcx # 0x50a13 movl $0x1393, %esi # imm = 0x1393 xorl %eax, %eax callq 0x1f9b0
ggml_map_custom3_impl: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov rbx, rcx cmp r9d, 0FFFFFFFFh setz al test r9d, r9d setnle cl or cl, al jz short loc_26464 mov ebp, r9d mov r12, r8 mov r14, rdx mov r15, rsi cmp [rsp+48h+arg_8], 0 jz short loc_26410 call _ggml_view_tensor jmp short loc_26415 loc_26410: call _ggml_dup_tensor loc_26415: mov r13, rax mov rsi, rsp mov [rsi], r12 mov [rsi+8], ebp mov rax, [rsp+48h+arg_0] mov [rsi+10h], rax push 18h pop rdx mov rdi, r13 call ggml_set_op_params mov dword ptr [r13+50h], 4Fh ; 'O' mov [r13+98h], r15 mov [r13+0A0h], r14 mov [r13+0A8h], rbx mov rax, r13 add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_26464: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aNTasksGgmlNTas; "n_tasks == GGML_N_TASKS_MAX || n_tasks "... mov esi, 1393h xor eax, eax call _ggml_abort
long long ggml_map_custom3_impl( long long a1, unsigned int *a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14, long long a15, char a16) { int v17; // ebp long long v20; // rax long long v21; // rcx long long v22; // r8 long long v23; // r9 __m128 v24; // xmm4 __m128 v25; // xmm5 long long v26; // r13 long long v28; // [rsp+0h] [rbp-48h] BYREF int v29; // [rsp+8h] [rbp-40h] long long v30; // [rsp+10h] [rbp-38h] if ( (_DWORD)a6 != -1 && (int)a6 <= 0 ) ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c", 5011, (long long)"GGML_ASSERT(%s) failed", (long long)"n_tasks == GGML_N_TASKS_MAX || n_tasks > 0", a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v28); v17 = a6; if ( a16 ) v20 = ggml_view_tensor(a1, (long long)a2, a7, a8, a9, a10, a11, a12, a13, a14); else v20 = ggml_dup_tensor(a1, a2); v26 = v20; v28 = a5; v29 = v17; v30 = a15; ggml_set_op_params(v20, (long long)&v28, 24LL, a7, a8, a9, a10, v24, v25, a13, a14, v21, v22, v23); *(_DWORD *)(v26 + 80) = 79; *(_QWORD *)(v26 + 152) = a2; *(_QWORD *)(v26 + 160) = a3; *(_QWORD *)(v26 + 168) = a4; return v26; }
ggml_map_custom3_impl: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV RBX,RCX CMP R9D,-0x1 SETZ AL TEST R9D,R9D SETG CL OR CL,AL JZ 0x00126464 MOV EBP,R9D MOV R12,R8 MOV R14,RDX MOV R15,RSI CMP byte ptr [RSP + 0x58],0x0 JZ 0x00126410 CALL 0x0011d410 JMP 0x00126415 LAB_00126410: CALL 0x0011e7a0 LAB_00126415: MOV R13,RAX MOV RSI,RSP MOV qword ptr [RSI],R12 MOV dword ptr [RSI + 0x8],EBP MOV RAX,qword ptr [RSP + 0x50] MOV qword ptr [RSI + 0x10],RAX PUSH 0x18 POP RDX MOV RDI,R13 CALL 0x0012221d MOV dword ptr [R13 + 0x50],0x4f MOV qword ptr [R13 + 0x98],R15 MOV qword ptr [R13 + 0xa0],R14 MOV qword ptr [R13 + 0xa8],RBX MOV RAX,R13 ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00126464: LEA RDI,[0x14e583] LEA RDX,[0x14e5d5] LEA RCX,[0x150a13] MOV ESI,0x1393 XOR EAX,EAX CALL 0x0011f9b0
long ggml_map_custom3_impl (int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int param_6,int8 param_7,char param_8) { long lVar1; int8 local_48; int local_40; int8 local_38; if (0 < param_6 || param_6 == -1) { if (param_8 == '\0') { lVar1 = ggml_dup_tensor(); } else { lVar1 = ggml_view_tensor(); } local_38 = param_7; local_48 = param_5; local_40 = param_6; ggml_set_op_params(lVar1,&local_48,0x18); *(int4 *)(lVar1 + 0x50) = 0x4f; *(int8 *)(lVar1 + 0x98) = param_2; *(int8 *)(lVar1 + 0xa0) = param_3; *(int8 *)(lVar1 + 0xa8) = param_4; return lVar1; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c", 0x1393,"GGML_ASSERT(%s) failed","n_tasks == GGML_N_TASKS_MAX || n_tasks > 0"); }
53,182
ggml_map_custom3_impl
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
static struct ggml_tensor * ggml_map_custom3_impl( struct ggml_context * ctx, struct ggml_tensor * a, struct ggml_tensor * b, struct ggml_tensor * c, const ggml_custom3_op_t fun, int n_tasks, void * userdata, bool inplace) { GGML_ASSERT(n_tasks == GGML_N_TASKS_MAX || n_tasks > 0); struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a); struct ggml_map_custom3_op_params params = { /*.fun =*/ fun, /*.n_tasks =*/ n_tasks, /*.userdata =*/ userdata }; ggml_set_op_params(result, (const void *) &params, sizeof(params)); result->op = GGML_OP_MAP_CUSTOM3; result->src[0] = a; result->src[1] = b; result->src[2] = c; return result; }
O3
c
ggml_map_custom3_impl: pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rcx, %rbx cmpl $-0x1, %r9d sete %al testl %r9d, %r9d setg %cl orb %al, %cl je 0x20113 movl %r9d, %ebp movq %r8, %r12 movq %rdx, %r14 movq %rsi, %r15 cmpb $0x0, 0x38(%rsp) je 0x200c2 movq %r15, %rsi callq 0x16260 jmp 0x200d9 movl (%r15), %esi leaq 0x10(%r15), %rcx movl $0x4, %edx xorl %r8d, %r8d xorl %r9d, %r9d callq 0x1a57f testq %rax, %rax je 0x2012f movq 0x30(%rsp), %rcx movq %r12, 0x54(%rax) movl %ebp, 0x5c(%rax) movq %rcx, 0x64(%rax) movl $0x4f, 0x50(%rax) movq %r15, 0x98(%rax) movq %r14, 0xa0(%rax) movq %rbx, 0xa8(%rax) popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq leaq 0x2c4f9(%rip), %rdi # 0x4c613 leaq 0x2c544(%rip), %rdx # 0x4c665 leaq 0x2e97b(%rip), %rcx # 0x4eaa3 movl $0x1393, %esi # imm = 0x1393 jmp 0x20149 leaq 0x2e633(%rip), %rdi # 0x4e769 leaq 0x2c528(%rip), %rdx # 0x4c665 leaq 0x2e752(%rip), %rcx # 0x4e896 movl $0x70, %esi xorl %eax, %eax callq 0x17cd0
ggml_map_custom3_impl: push rbp push r15 push r14 push r12 push rbx mov rbx, rcx cmp r9d, 0FFFFFFFFh setz al test r9d, r9d setnle cl or cl, al jz short loc_20113 mov ebp, r9d mov r12, r8 mov r14, rdx mov r15, rsi cmp [rsp+28h+arg_8], 0 jz short loc_200C2 mov rsi, r15 call _ggml_view_tensor jmp short loc_200D9 loc_200C2: mov esi, [r15] lea rcx, [r15+10h] mov edx, 4 xor r8d, r8d xor r9d, r9d call ggml_new_tensor_impl loc_200D9: test rax, rax jz short loc_2012F mov rcx, [rsp+28h+arg_0] mov [rax+54h], r12 mov [rax+5Ch], ebp mov [rax+64h], rcx mov dword ptr [rax+50h], 4Fh ; 'O' mov [rax+98h], r15 mov [rax+0A0h], r14 mov [rax+0A8h], rbx pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_20113: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aNTasksGgmlNTas; "n_tasks == GGML_N_TASKS_MAX || n_tasks "... mov esi, 1393h jmp short loc_20149 loc_2012F: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aTensorNull; "tensor != NULL" mov esi, 70h ; 'p' loc_20149: xor eax, eax call _ggml_abort
long long ggml_map_custom3_impl( long long a1, long long a2, long long a3, long long a4, long long a5, int a6, double a7, long long a8, char a9) { long long result; // rax const char *v14; // rdi const char *v15; // rcx int v16; // esi if ( a6 != -1 && a6 <= 0 ) { v14 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; v15 = "n_tasks == GGML_N_TASKS_MAX || n_tasks > 0"; v16 = 5011; goto LABEL_9; } if ( a9 ) result = ggml_view_tensor(a1, a2, a7); else result = ggml_new_tensor_impl(a1, *(_DWORD *)a2, 4u, (long long *)(a2 + 16), 0LL, 0LL, a7); if ( !result ) { v14 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-impl.h"; v15 = "tensor != NULL"; v16 = 112; LABEL_9: ggml_abort((_DWORD)v14, v16, (unsigned int)"GGML_ASSERT(%s) failed", (_DWORD)v15, a5, a6); } *(_QWORD *)(result + 84) = a5; *(_DWORD *)(result + 92) = a6; *(_QWORD *)(result + 100) = a8; *(_DWORD *)(result + 80) = 79; *(_QWORD *)(result + 152) = a2; *(_QWORD *)(result + 160) = a3; *(_QWORD *)(result + 168) = a4; return result; }
ggml_map_custom3_impl: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV RBX,RCX CMP R9D,-0x1 SETZ AL TEST R9D,R9D SETG CL OR CL,AL JZ 0x00120113 MOV EBP,R9D MOV R12,R8 MOV R14,RDX MOV R15,RSI CMP byte ptr [RSP + 0x38],0x0 JZ 0x001200c2 MOV RSI,R15 CALL 0x00116260 JMP 0x001200d9 LAB_001200c2: MOV ESI,dword ptr [R15] LEA RCX,[R15 + 0x10] MOV EDX,0x4 XOR R8D,R8D XOR R9D,R9D CALL 0x0011a57f LAB_001200d9: TEST RAX,RAX JZ 0x0012012f MOV RCX,qword ptr [RSP + 0x30] MOV qword ptr [RAX + 0x54],R12 MOV dword ptr [RAX + 0x5c],EBP MOV qword ptr [RAX + 0x64],RCX MOV dword ptr [RAX + 0x50],0x4f MOV qword ptr [RAX + 0x98],R15 MOV qword ptr [RAX + 0xa0],R14 MOV qword ptr [RAX + 0xa8],RBX POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_00120113: LEA RDI,[0x14c613] LEA RDX,[0x14c665] LEA RCX,[0x14eaa3] MOV ESI,0x1393 JMP 0x00120149 LAB_0012012f: LEA RDI,[0x14e769] LEA RDX,[0x14c665] LEA RCX,[0x14e896] MOV ESI,0x70 LAB_00120149: XOR EAX,EAX CALL 0x00117cd0
void ggml_map_custom3_impl (int8 param_1,int4 *param_2,int8 param_3,int8 param_4, int8 param_5,int param_6,int8 param_7,char param_8) { long lVar1; char *pcVar2; int8 uVar3; char *pcVar4; if (param_6 < 1 && param_6 != -1) { pcVar4 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; pcVar2 = "n_tasks == GGML_N_TASKS_MAX || n_tasks > 0"; uVar3 = 0x1393; } else { if (param_8 == '\0') { lVar1 = ggml_new_tensor_impl(param_1,*param_2,4,param_2 + 4,0,0); } else { lVar1 = ggml_view_tensor(param_1,param_2); } if (lVar1 != 0) { *(int8 *)(lVar1 + 0x54) = param_5; *(int *)(lVar1 + 0x5c) = param_6; *(int8 *)(lVar1 + 100) = param_7; *(int4 *)(lVar1 + 0x50) = 0x4f; *(int4 **)(lVar1 + 0x98) = param_2; *(int8 *)(lVar1 + 0xa0) = param_3; *(int8 *)(lVar1 + 0xa8) = param_4; return; } pcVar4 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-impl.h"; pcVar2 = "tensor != NULL"; uVar3 = 0x70; } /* WARNING: Subroutine does not return */ ggml_abort(pcVar4,uVar3,"GGML_ASSERT(%s) failed",pcVar2); }
53,183
apply_shift
eloqsql/strings/ctype-uca.c
static my_bool apply_shift(MY_CHARSET_LOADER *loader, MY_COLL_RULES *rules, MY_COLL_RULE *r, int level, uint16 *to, size_t nweights) { /* Apply level difference. */ if (nweights) { to[nweights - 1]+= r->diff[level]; if (r->before_level == 1) /* Apply "&[before primary]" */ { if (nweights >= 2) { to[nweights - 2]--; /* Reset before */ if (rules->shift_after_method == my_shift_method_expand) { /* Special case. Don't let characters shifted after X and before next(X) intermix to each other. For example: "[shift-after-method expand] &0 < a &[before primary]1 < A". I.e. we reorder 'a' after '0', and then 'A' before '1'. 'a' must be sorted before 'A'. Note, there are no real collations in CLDR which shift after and before two neighbourgh characters. We need this just in case. Reserving 4096 (0x1000) weights for such cases is perfectly enough. */ to[nweights - 1]+= 0x1000; /* W3-TODO: const may vary on levels 2,3*/ } } else { my_snprintf(loader->error, sizeof(loader->error), "Can't reset before " "a primary ignorable character U+%04lX", r->base[0]); return TRUE; } } } else { /* Shift to an ignorable character, e.g.: & \u0000 < \u0001 */ DBUG_ASSERT(to[0] == 0); to[0]= r->diff[level]; } return FALSE; }
O0
c
apply_shift: 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 %r8, -0x30(%rbp) movq %r9, -0x38(%rbp) cmpq $0x0, -0x38(%rbp) je 0xaf0ea movq -0x20(%rbp), %rax movslq -0x24(%rbp), %rcx movl 0x80(%rax,%rcx,4), %esi movq -0x30(%rbp), %rax movq -0x38(%rbp), %rcx subq $0x1, %rcx movzwl (%rax,%rcx,2), %edx addl %esi, %edx movw %dx, (%rax,%rcx,2) movq -0x20(%rbp), %rax cmpq $0x1, 0x90(%rax) jne 0xaf0e8 cmpq $0x2, -0x38(%rbp) jb 0xaf0c2 movq -0x30(%rbp), %rax movq -0x38(%rbp), %rcx subq $0x2, %rcx movw (%rax,%rcx,2), %dx addw $-0x1, %dx movw %dx, (%rax,%rcx,2) movq -0x18(%rbp), %rax cmpl $0x1, 0x30(%rax) jne 0xaf0c0 movq -0x30(%rbp), %rax movq -0x38(%rbp), %rcx subq $0x1, %rcx movzwl (%rax,%rcx,2), %edx addl $0x1000, %edx # imm = 0x1000 movw %dx, (%rax,%rcx,2) jmp 0xaf0e6 movq -0x10(%rbp), %rdi movq -0x20(%rbp), %rax movq (%rax), %rcx movl $0x80, %esi leaq 0x3584f(%rip), %rdx # 0xe4928 movb $0x0, %al callq 0xd4cd0 movb $0x1, -0x1(%rbp) jmp 0xaf10b jmp 0xaf0e8 jmp 0xaf107 jmp 0xaf0ec jmp 0xaf0ee movq -0x20(%rbp), %rax movslq -0x24(%rbp), %rcx movl 0x80(%rax,%rcx,4), %eax movw %ax, %cx movq -0x30(%rbp), %rax movw %cx, (%rax) movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
apply_shift: 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 [rbp+var_30], r8 mov [rbp+var_38], r9 cmp [rbp+var_38], 0 jz loc_AF0EA mov rax, [rbp+var_20] movsxd rcx, [rbp+var_24] mov esi, [rax+rcx*4+80h] mov rax, [rbp+var_30] mov rcx, [rbp+var_38] sub rcx, 1 movzx edx, word ptr [rax+rcx*2] add edx, esi mov [rax+rcx*2], dx mov rax, [rbp+var_20] cmp qword ptr [rax+90h], 1 jnz short loc_AF0E8 cmp [rbp+var_38], 2 jb short loc_AF0C2 mov rax, [rbp+var_30] mov rcx, [rbp+var_38] sub rcx, 2 mov dx, [rax+rcx*2] add dx, 0FFFFh mov [rax+rcx*2], dx mov rax, [rbp+var_18] cmp dword ptr [rax+30h], 1 jnz short loc_AF0C0 mov rax, [rbp+var_30] mov rcx, [rbp+var_38] sub rcx, 1 movzx edx, word ptr [rax+rcx*2] add edx, 1000h mov [rax+rcx*2], dx loc_AF0C0: jmp short loc_AF0E6 loc_AF0C2: mov rdi, [rbp+var_10] mov rax, [rbp+var_20] mov rcx, [rax] mov esi, 80h lea rdx, aCanTResetBefor; "Can't reset before a primary ignorable "... mov al, 0 call my_snprintf mov [rbp+var_1], 1 jmp short loc_AF10B loc_AF0E6: jmp short $+2 loc_AF0E8: jmp short loc_AF107 loc_AF0EA: jmp short $+2 loc_AF0EC: jmp short $+2 loc_AF0EE: mov rax, [rbp+var_20] movsxd rcx, [rbp+var_24] mov eax, [rax+rcx*4+80h] mov cx, ax mov rax, [rbp+var_30] mov [rax], cx loc_AF107: mov [rbp+var_1], 0 loc_AF10B: mov al, [rbp+var_1] add rsp, 40h pop rbp retn
char apply_shift(int a1, long long a2, _QWORD *a3, int a4, _WORD *a5, unsigned long long a6) { if ( !a6 ) { *a5 = *((_DWORD *)a3 + a4 + 32); return 0; } a5[a6 - 1] += *((_DWORD *)a3 + a4 + 32); if ( a3[18] != 1LL ) return 0; if ( a6 >= 2 ) { --a5[a6 - 2]; if ( *(_DWORD *)(a2 + 48) == 1 ) a5[a6 - 1] += 4096; return 0; } my_snprintf(a1, 128, (unsigned int)"Can't reset before a primary ignorable character U+%04lX", *a3, (_DWORD)a5, a6); return 1; }
apply_shift: 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 qword ptr [RBP + -0x30],R8 MOV qword ptr [RBP + -0x38],R9 CMP qword ptr [RBP + -0x38],0x0 JZ 0x001af0ea MOV RAX,qword ptr [RBP + -0x20] MOVSXD RCX,dword ptr [RBP + -0x24] MOV ESI,dword ptr [RAX + RCX*0x4 + 0x80] MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x38] SUB RCX,0x1 MOVZX EDX,word ptr [RAX + RCX*0x2] ADD EDX,ESI MOV word ptr [RAX + RCX*0x2],DX MOV RAX,qword ptr [RBP + -0x20] CMP qword ptr [RAX + 0x90],0x1 JNZ 0x001af0e8 CMP qword ptr [RBP + -0x38],0x2 JC 0x001af0c2 MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x38] SUB RCX,0x2 MOV DX,word ptr [RAX + RCX*0x2] ADD DX,-0x1 MOV word ptr [RAX + RCX*0x2],DX MOV RAX,qword ptr [RBP + -0x18] CMP dword ptr [RAX + 0x30],0x1 JNZ 0x001af0c0 MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x38] SUB RCX,0x1 MOVZX EDX,word ptr [RAX + RCX*0x2] ADD EDX,0x1000 MOV word ptr [RAX + RCX*0x2],DX LAB_001af0c0: JMP 0x001af0e6 LAB_001af0c2: MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RAX] MOV ESI,0x80 LEA RDX,[0x1e4928] MOV AL,0x0 CALL 0x001d4cd0 MOV byte ptr [RBP + -0x1],0x1 JMP 0x001af10b LAB_001af0e6: JMP 0x001af0e8 LAB_001af0e8: JMP 0x001af107 LAB_001af0ea: JMP 0x001af0ec LAB_001af0ec: JMP 0x001af0ee LAB_001af0ee: MOV RAX,qword ptr [RBP + -0x20] MOVSXD RCX,dword ptr [RBP + -0x24] MOV EAX,dword ptr [RAX + RCX*0x4 + 0x80] MOV CX,AX MOV RAX,qword ptr [RBP + -0x30] MOV word ptr [RAX],CX LAB_001af107: MOV byte ptr [RBP + -0x1],0x0 LAB_001af10b: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x40 POP RBP RET
int1 apply_shift(int8 param_1,long param_2,int8 *param_3,int param_4,int2 *param_5, ulong param_6) { if (param_6 == 0) { *param_5 = (short)*(int4 *)((long)param_3 + (long)param_4 * 4 + 0x80); } else { param_5[param_6 - 1] = param_5[param_6 - 1] + (short)*(int4 *)((long)param_3 + (long)param_4 * 4 + 0x80); if (param_3[0x12] == 1) { if (param_6 < 2) { my_snprintf(param_1,0x80,"Can\'t reset before a primary ignorable character U+%04lX", *param_3); return 1; } param_5[param_6 - 2] = param_5[param_6 - 2] + -1; if (*(int *)(param_2 + 0x30) == 1) { param_5[param_6 - 1] = param_5[param_6 - 1] + 0x1000; } } } return 0; }
53,184
ggml_compute_forward_pool_2d
ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp
void ggml_compute_forward_pool_2d( const ggml_compute_params * params, ggml_tensor * dst) { const ggml_tensor * src = dst->src[0]; assert(src->type == GGML_TYPE_F32 || src->type == GGML_TYPE_F16); if (params->ith != 0) { return; } const int32_t * opts = (const int32_t *)dst->op_params; ggml_op_pool op = static_cast<ggml_op_pool>(opts[0]); const int k0 = opts[1]; const int k1 = opts[2]; const int s0 = opts[3]; const int s1 = opts[4]; const int p0 = opts[5]; const int p1 = opts[6]; const char * cdata = (const char*)src->data; const char * const data_end = cdata + ggml_nbytes(src); const int64_t px = dst->ne[0]; const int64_t py = dst->ne[1]; const int64_t pa = px * py; float * dplane = (float *)dst->data; const int ka = k0 * k1; const int offset0 = -p0; const int offset1 = -p1; while (cdata < data_end) { for (int oy = 0; oy < py; ++oy) { float * const drow = dplane + oy * px; for (int ox = 0; ox < px; ++ox) { float * const out = drow + ox; switch (op) { case GGML_OP_POOL_AVG: *out = 0; break; case GGML_OP_POOL_MAX: *out = -FLT_MAX; break; case GGML_OP_POOL_COUNT: GGML_ABORT("fatal error"); } const int ix = offset0 + ox * s0; const int iy = offset1 + oy * s1; for (int ky = 0; ky < k1; ++ky) { if (iy + ky < 0 || iy + ky >= src->ne[1]) continue; const void * srow = (const void *)(cdata + src->nb[1] * (iy + ky)); for (int kx = 0; kx < k0; ++kx) { int j = ix + kx; if (j < 0 || j >= src->ne[0]) continue; const float srow_j = (src->type == GGML_TYPE_F32) ? ((const float*)srow)[j] : GGML_FP16_TO_FP32(((const ggml_fp16_t*)srow)[j]); switch (op) { case GGML_OP_POOL_AVG: *out += srow_j; break; case GGML_OP_POOL_MAX: if (srow_j > *out) *out = srow_j; break; case GGML_OP_POOL_COUNT: GGML_ABORT("fatal error"); } } } switch (op) { case GGML_OP_POOL_AVG: *out /= ka; break; case GGML_OP_POOL_MAX: break; case GGML_OP_POOL_COUNT: GGML_ABORT("fatal error"); } } } cdata += src->nb[2]; dplane += pa; } }
O1
cpp
ggml_compute_forward_pool_2d: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x78, %rsp cmpl $0x0, (%rdi) jne 0x41119 movq %rsi, %r14 movq 0x98(%rsi), %rbx movl 0x54(%rsi), %ebp movl 0x58(%rsi), %r15d movl 0x5c(%rsi), %r12d movl 0x60(%rsi), %eax movl %eax, 0x4c(%rsp) movl 0x64(%rsi), %eax movl %eax, 0x1c(%rsp) movl 0x68(%rsi), %eax movl %eax, 0x18(%rsp) movl 0x6c(%rsi), %eax movl %eax, 0x14(%rsp) movq 0xf8(%rbx), %rax movq %rax, 0x20(%rsp) movq %rbx, %rdi callq 0xa0e0 movq %rax, 0x28(%rsp) testq %rax, %rax jle 0x41119 movq 0x28(%rsp), %rax addq 0x20(%rsp), %rax movq %rax, 0x28(%rsp) movq 0x10(%r14), %rax movq 0x18(%r14), %rcx movq %rcx, 0x50(%rsp) movq %rax, 0x40(%rsp) imulq %rax, %rcx movq %rcx, 0x58(%rsp) movl %r15d, %eax imull %r12d, %eax vcvtsi2ss %eax, %xmm0, %xmm0 movq 0xf8(%r14), %rax movq %rax, 0x30(%rsp) negl 0x18(%rsp) movl 0x14(%rsp), %eax negl %eax movl %eax, 0x48(%rsp) movq 0x1b022(%rip), %r9 # 0x5bf60 vmovss 0x1262e(%rip), %xmm1 # 0x53574 cmpq $0x0, 0x50(%rsp) jle 0x410ed movl 0x48(%rsp), %eax movl %eax, 0xc(%rsp) movq $0x0, 0x38(%rsp) cmpq $0x0, 0x40(%rsp) jle 0x410c9 cmpl $0x2, %ebp je 0x41157 movq 0x38(%rsp), %rdx movq %rdx, %rax imulq 0x40(%rsp), %rax movslq 0xc(%rsp), %rcx movq %rcx, 0x60(%rsp) movq 0x30(%rsp), %rcx leaq (%rcx,%rax,4), %rsi movl 0x1c(%rsp), %eax imull %edx, %eax subl 0x14(%rsp), %eax movslq %eax, %rdi movl 0x18(%rsp), %eax movl %eax, 0x10(%rsp) xorl %edx, %edx cmpl $0x1, %ebp je 0x40fc0 testl %ebp, %ebp jne 0x40fc9 vmovaps %xmm1, %xmm2 jmp 0x40fc4 vxorps %xmm2, %xmm2, %xmm2 vmovss %xmm2, (%rsi,%rdx,4) testl %r12d, %r12d jle 0x41092 movslq 0x10(%rsp), %r10 leaq (%r10,%r10), %rcx leaq (,%r10,4), %r8 movq 0x20(%rsp), %rax addq %rax, %rcx movq %rcx, 0x70(%rsp) addq %rax, %r8 movq %r8, 0x68(%rsp) movq 0x60(%rsp), %r13 xorl %ecx, %ecx movq %rcx, %rax addq %rdi, %rax js 0x41083 cmpq %rax, 0x18(%rbx) jle 0x41083 testl %r15d, %r15d jle 0x41083 movq 0x38(%rbx), %r14 imulq %r13, %r14 movq 0x70(%rsp), %rax addq %r14, %rax addq 0x68(%rsp), %r14 xorl %r11d, %r11d movq %r10, %r8 addq %r11, %r8 js 0x41077 cmpq %r8, 0x10(%rbx) jle 0x41077 cmpl $0x0, (%rbx) movq %r14, %r8 je 0x4104c movzwl (%rax,%r11,2), %r8d shll $0x2, %r8d addq %r9, %r8 vmovss (%r8), %xmm2 testl %ebp, %ebp je 0x4106b cmpl $0x1, %ebp je 0x41064 cmpl $0x2, %ebp jne 0x41077 jmp 0x41128 vaddss (%rsi,%rdx,4), %xmm2, %xmm2 jmp 0x41072 vucomiss (%rsi,%rdx,4), %xmm2 jbe 0x41077 vmovss %xmm2, (%rsi,%rdx,4) incq %r11 addq $0x4, %r14 cmpq %r11, %r15 jne 0x4102a incq %rcx incq %r13 cmpq %r12, %rcx jne 0x40fff cmpl $0x1, %ebp je 0x410a1 cmpl $0x2, %ebp jne 0x410af jmp 0x41142 vmovss (%rsi,%rdx,4), %xmm2 vdivss %xmm0, %xmm2, %xmm2 vmovss %xmm2, (%rsi,%rdx,4) incq %rdx movl 0x10(%rsp), %eax addl 0x4c(%rsp), %eax movl %eax, 0x10(%rsp) cmpq 0x40(%rsp), %rdx jne 0x40fb1 movq 0x38(%rsp), %rcx incq %rcx movl 0xc(%rsp), %eax addl 0x1c(%rsp), %eax movl %eax, 0xc(%rsp) movq %rcx, 0x38(%rsp) cmpq 0x50(%rsp), %rcx jne 0x40f63 movq 0x20(%rsp), %rax addq 0x40(%rbx), %rax movq 0x58(%rsp), %rcx movq 0x30(%rsp), %rdx leaq (%rdx,%rcx,4), %rdx movq %rdx, 0x30(%rsp) movq %rax, 0x20(%rsp) cmpq 0x28(%rsp), %rax jb 0x40f46 addq $0x78, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x12971(%rip), %rdi # 0x53aa0 leaq 0x854a(%rip), %rdx # 0x49680 movl $0x18df, %esi # imm = 0x18DF xorl %eax, %eax callq 0xaf40 leaq 0x12957(%rip), %rdi # 0x53aa0 leaq 0x8530(%rip), %rdx # 0x49680 movl $0x18e6, %esi # imm = 0x18E6 jmp 0x4113b leaq 0x12942(%rip), %rdi # 0x53aa0 leaq 0x851b(%rip), %rdx # 0x49680 movl $0x18cf, %esi # imm = 0x18CF jmp 0x4113b
ggml_compute_forward_pool_2d: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 78h cmp dword ptr [rdi], 0 jnz loc_41119 mov r14, rsi mov rbx, [rsi+98h] mov ebp, [rsi+54h] mov r15d, [rsi+58h] mov r12d, [rsi+5Ch] mov eax, [rsi+60h] mov [rsp+0A8h+var_5C], eax mov eax, [rsi+64h] mov [rsp+0A8h+var_8C], eax mov eax, [rsi+68h] mov [rsp+0A8h+var_90], eax mov eax, [rsi+6Ch] mov [rsp+0A8h+var_94], eax mov rax, [rbx+0F8h] mov [rsp+0A8h+var_88], rax mov rdi, rbx call _ggml_nbytes mov [rsp+0A8h+var_80], rax test rax, rax jle loc_41119 mov rax, [rsp+0A8h+var_80] add rax, [rsp+0A8h+var_88] mov [rsp+0A8h+var_80], rax mov rax, [r14+10h] mov rcx, [r14+18h] mov [rsp+0A8h+var_58], rcx mov [rsp+0A8h+var_68], rax imul rcx, rax mov [rsp+0A8h+var_50], rcx mov eax, r15d imul eax, r12d vcvtsi2ss xmm0, xmm0, eax mov rax, [r14+0F8h] mov [rsp+0A8h+var_78], rax neg [rsp+0A8h+var_90] mov eax, [rsp+0A8h+var_94] neg eax mov [rsp+0A8h+var_60], eax mov r9, cs:ggml_table_f32_f16_ptr vmovss xmm1, cs:dword_53574 loc_40F46: cmp [rsp+0A8h+var_58], 0 jle loc_410ED mov eax, [rsp+0A8h+var_60] mov [rsp+0A8h+var_9C], eax mov [rsp+0A8h+var_70], 0 loc_40F63: cmp [rsp+0A8h+var_68], 0 jle loc_410C9 cmp ebp, 2 jz loc_41157 mov rdx, [rsp+0A8h+var_70] mov rax, rdx imul rax, [rsp+0A8h+var_68] movsxd rcx, [rsp+0A8h+var_9C] mov [rsp+0A8h+var_48], rcx mov rcx, [rsp+0A8h+var_78] lea rsi, [rcx+rax*4] mov eax, [rsp+0A8h+var_8C] imul eax, edx sub eax, [rsp+0A8h+var_94] movsxd rdi, eax mov eax, [rsp+0A8h+var_90] mov [rsp+0A8h+var_98], eax xor edx, edx loc_40FB1: cmp ebp, 1 jz short loc_40FC0 test ebp, ebp jnz short loc_40FC9 vmovaps xmm2, xmm1 jmp short loc_40FC4 loc_40FC0: vxorps xmm2, xmm2, xmm2 loc_40FC4: vmovss dword ptr [rsi+rdx*4], xmm2 loc_40FC9: test r12d, r12d jle loc_41092 movsxd r10, [rsp+0A8h+var_98] lea rcx, [r10+r10] lea r8, ds:0[r10*4] mov rax, [rsp+0A8h+var_88] add rcx, rax mov [rsp+0A8h+var_38], rcx add r8, rax mov [rsp+0A8h+var_40], r8 mov r13, [rsp+0A8h+var_48] xor ecx, ecx loc_40FFF: mov rax, rcx add rax, rdi js short loc_41083 cmp [rbx+18h], rax jle short loc_41083 test r15d, r15d jle short loc_41083 mov r14, [rbx+38h] imul r14, r13 mov rax, [rsp+0A8h+var_38] add rax, r14 add r14, [rsp+0A8h+var_40] xor r11d, r11d loc_4102A: mov r8, r10 add r8, r11 js short loc_41077 cmp [rbx+10h], r8 jle short loc_41077 cmp dword ptr [rbx], 0 mov r8, r14 jz short loc_4104C movzx r8d, word ptr [rax+r11*2] shl r8d, 2 add r8, r9 loc_4104C: vmovss xmm2, dword ptr [r8] test ebp, ebp jz short loc_4106B cmp ebp, 1 jz short loc_41064 cmp ebp, 2 jnz short loc_41077 jmp loc_41128 loc_41064: vaddss xmm2, xmm2, dword ptr [rsi+rdx*4] jmp short loc_41072 loc_4106B: vucomiss xmm2, dword ptr [rsi+rdx*4] jbe short loc_41077 loc_41072: vmovss dword ptr [rsi+rdx*4], xmm2 loc_41077: inc r11 add r14, 4 cmp r15, r11 jnz short loc_4102A loc_41083: inc rcx inc r13 cmp rcx, r12 jnz loc_40FFF loc_41092: cmp ebp, 1 jz short loc_410A1 cmp ebp, 2 jnz short loc_410AF jmp loc_41142 loc_410A1: vmovss xmm2, dword ptr [rsi+rdx*4] vdivss xmm2, xmm2, xmm0 vmovss dword ptr [rsi+rdx*4], xmm2 loc_410AF: inc rdx mov eax, [rsp+0A8h+var_98] add eax, [rsp+0A8h+var_5C] mov [rsp+0A8h+var_98], eax cmp rdx, [rsp+0A8h+var_68] jnz loc_40FB1 loc_410C9: mov rcx, [rsp+0A8h+var_70] inc rcx mov eax, [rsp+0A8h+var_9C] add eax, [rsp+0A8h+var_8C] mov [rsp+0A8h+var_9C], eax mov [rsp+0A8h+var_70], rcx cmp rcx, [rsp+0A8h+var_58] jnz loc_40F63 loc_410ED: mov rax, [rsp+0A8h+var_88] add rax, [rbx+40h] mov rcx, [rsp+0A8h+var_50] mov rdx, [rsp+0A8h+var_78] lea rdx, [rdx+rcx*4] mov [rsp+0A8h+var_78], rdx mov [rsp+0A8h+var_88], rax cmp rax, [rsp+0A8h+var_80] jb loc_40F46 loc_41119: add rsp, 78h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_41128: lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"... lea rdx, aFatalError; "fatal error" mov esi, 18DFh loc_4113B: xor eax, eax call _ggml_abort loc_41142: lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"... lea rdx, aFatalError; "fatal error" mov esi, 18E6h jmp short loc_4113B loc_41157: lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"... lea rdx, aFatalError; "fatal error" mov esi, 18CFh jmp short loc_4113B
void ggml_compute_forward_pool_2d(_DWORD *a1, long long a2, __m128 _XMM0, double a4, __m128 _XMM2) { long long v5; // rbx int v6; // ebp long long v7; // r15 long long v8; // r12 long long v10; // rcx long long v14; // rdi long long v16; // r13 long long i; // rcx long long v18; // r14 unsigned long long v19; // rax char *v20; // r14 long long j; // r11 long long v23; // rcx long long v24; // r8 long long v25; // r9 int v26; // [rsp+Ch] [rbp-9Ch] int v27; // [rsp+10h] [rbp-98h] int v28; // [rsp+14h] [rbp-94h] int v29; // [rsp+18h] [rbp-90h] int v30; // [rsp+18h] [rbp-90h] int v31; // [rsp+1Ch] [rbp-8Ch] unsigned long long v32; // [rsp+20h] [rbp-88h] long long v33; // [rsp+28h] [rbp-80h] unsigned long long v34; // [rsp+28h] [rbp-80h] long long v35; // [rsp+30h] [rbp-78h] long long v36; // [rsp+38h] [rbp-70h] long long v37; // [rsp+40h] [rbp-68h] int v38; // [rsp+4Ch] [rbp-5Ch] long long v39; // [rsp+50h] [rbp-58h] if ( !*a1 ) { v5 = *(_QWORD *)(a2 + 152); v6 = *(_DWORD *)(a2 + 84); v7 = *(unsigned int *)(a2 + 88); v8 = *(unsigned int *)(a2 + 92); v38 = *(_DWORD *)(a2 + 96); v31 = *(_DWORD *)(a2 + 100); v29 = *(_DWORD *)(a2 + 104); v28 = *(_DWORD *)(a2 + 108); v32 = *(_QWORD *)(v5 + 248); v33 = ggml_nbytes(v5); if ( v33 > 0 ) { v34 = v32 + v33; v39 = *(_QWORD *)(a2 + 24); v37 = *(_QWORD *)(a2 + 16); v10 = v37 * v39; __asm { vcvtsi2ss xmm0, xmm0, eax } v35 = *(_QWORD *)(a2 + 248); v30 = -v29; __asm { vmovss xmm1, cs:dword_53574 } while ( v39 <= 0 ) { LABEL_35: v10 = v37 * v39; v35 += 4 * v37 * v39; v32 += *(_QWORD *)(v5 + 64); if ( v32 >= v34 ) return; } v26 = -v28; v36 = 0LL; while ( v37 <= 0 ) { LABEL_34: v10 = v36 + 1; v26 += v31; v36 = v10; if ( v10 == v39 ) goto LABEL_35; } if ( v6 == 2 ) { ggml_abort( "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp", 6351LL, "fatal error", v10, _R8, &ggml_table_f32_f16, *(double *)&_XMM0, *(double *)&_XMM1, *(double *)_XMM2.m128_u64); while ( 1 ) ggml_abort( "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp", 6374LL, "fatal error", v23, v24, v25, *(double *)&_XMM0, *(double *)&_XMM1, *(double *)_XMM2.m128_u64); } _RSI = v35 + 4 * v37 * v36; v14 = (int)v36 * v31 - v28; v27 = v30; _RDX = 0LL; while ( v6 != 1 ) { if ( !v6 ) { __asm { vmovaps xmm2, xmm1 } LABEL_13: __asm { vmovss dword ptr [rsi+rdx*4], xmm2 } } if ( (int)v8 > 0 ) { _R8 = (char *)(v32 + 4LL * v27); v16 = v26; for ( i = 0LL; i != v8; ++i ) { if ( v14 + i >= 0 && *(_QWORD *)(v5 + 24) > v14 + i && (int)v7 > 0 ) { v18 = v16 * *(_QWORD *)(v5 + 56); v19 = v18 + v32 + 2LL * v27; v20 = (char *)(v32 + 4LL * v27 + v18); for ( j = 0LL; j != v7; ++j ) { _R8 = (char *)(j + v27); if ( (long long)_R8 >= 0 && *(_QWORD *)(v5 + 16) > (long long)_R8 ) { _R8 = v20; if ( *(_DWORD *)v5 ) _R8 = (char *)&ggml_table_f32_f16 + 4 * (unsigned int)*(unsigned __int16 *)(v19 + 2 * j); __asm { vmovss xmm2, dword ptr [r8] } if ( v6 ) { if ( v6 == 1 ) { __asm { vaddss xmm2, xmm2, dword ptr [rsi+rdx*4] vmovss dword ptr [rsi+rdx*4], xmm2 } } } else { __asm { vucomiss xmm2, dword ptr [rsi+rdx*4] } } } v20 += 4; } } ++v16; } } if ( v6 == 1 ) { __asm { vmovss xmm2, dword ptr [rsi+rdx*4] vdivss xmm2, xmm2, xmm0 vmovss dword ptr [rsi+rdx*4], xmm2 } } ++_RDX; v27 += v38; if ( _RDX == v37 ) goto LABEL_34; } __asm { vxorps xmm2, xmm2, xmm2 } goto LABEL_13; } } }
ggml_compute_forward_pool_2d: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x78 CMP dword ptr [RDI],0x0 JNZ 0x00141119 MOV R14,RSI MOV RBX,qword ptr [RSI + 0x98] MOV EBP,dword ptr [RSI + 0x54] MOV R15D,dword ptr [RSI + 0x58] MOV R12D,dword ptr [RSI + 0x5c] MOV EAX,dword ptr [RSI + 0x60] MOV dword ptr [RSP + 0x4c],EAX MOV EAX,dword ptr [RSI + 0x64] MOV dword ptr [RSP + 0x1c],EAX MOV EAX,dword ptr [RSI + 0x68] MOV dword ptr [RSP + 0x18],EAX MOV EAX,dword ptr [RSI + 0x6c] MOV dword ptr [RSP + 0x14],EAX MOV RAX,qword ptr [RBX + 0xf8] MOV qword ptr [RSP + 0x20],RAX MOV RDI,RBX CALL 0x0010a0e0 MOV qword ptr [RSP + 0x28],RAX TEST RAX,RAX JLE 0x00141119 MOV RAX,qword ptr [RSP + 0x28] ADD RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x28],RAX MOV RAX,qword ptr [R14 + 0x10] MOV RCX,qword ptr [R14 + 0x18] MOV qword ptr [RSP + 0x50],RCX MOV qword ptr [RSP + 0x40],RAX IMUL RCX,RAX MOV qword ptr [RSP + 0x58],RCX MOV EAX,R15D IMUL EAX,R12D VCVTSI2SS XMM0,XMM0,EAX MOV RAX,qword ptr [R14 + 0xf8] MOV qword ptr [RSP + 0x30],RAX NEG dword ptr [RSP + 0x18] MOV EAX,dword ptr [RSP + 0x14] NEG EAX MOV dword ptr [RSP + 0x48],EAX MOV R9,qword ptr [0x0015bf60] VMOVSS XMM1,dword ptr [0x00153574] LAB_00140f46: CMP qword ptr [RSP + 0x50],0x0 JLE 0x001410ed MOV EAX,dword ptr [RSP + 0x48] MOV dword ptr [RSP + 0xc],EAX MOV qword ptr [RSP + 0x38],0x0 LAB_00140f63: CMP qword ptr [RSP + 0x40],0x0 JLE 0x001410c9 CMP EBP,0x2 JZ 0x00141157 MOV RDX,qword ptr [RSP + 0x38] MOV RAX,RDX IMUL RAX,qword ptr [RSP + 0x40] MOVSXD RCX,dword ptr [RSP + 0xc] MOV qword ptr [RSP + 0x60],RCX MOV RCX,qword ptr [RSP + 0x30] LEA RSI,[RCX + RAX*0x4] MOV EAX,dword ptr [RSP + 0x1c] IMUL EAX,EDX SUB EAX,dword ptr [RSP + 0x14] MOVSXD RDI,EAX MOV EAX,dword ptr [RSP + 0x18] MOV dword ptr [RSP + 0x10],EAX XOR EDX,EDX LAB_00140fb1: CMP EBP,0x1 JZ 0x00140fc0 TEST EBP,EBP JNZ 0x00140fc9 VMOVAPS XMM2,XMM1 JMP 0x00140fc4 LAB_00140fc0: VXORPS XMM2,XMM2,XMM2 LAB_00140fc4: VMOVSS dword ptr [RSI + RDX*0x4],XMM2 LAB_00140fc9: TEST R12D,R12D JLE 0x00141092 MOVSXD R10,dword ptr [RSP + 0x10] LEA RCX,[R10 + R10*0x1] LEA R8,[R10*0x4] MOV RAX,qword ptr [RSP + 0x20] ADD RCX,RAX MOV qword ptr [RSP + 0x70],RCX ADD R8,RAX MOV qword ptr [RSP + 0x68],R8 MOV R13,qword ptr [RSP + 0x60] XOR ECX,ECX LAB_00140fff: MOV RAX,RCX ADD RAX,RDI JS 0x00141083 CMP qword ptr [RBX + 0x18],RAX JLE 0x00141083 TEST R15D,R15D JLE 0x00141083 MOV R14,qword ptr [RBX + 0x38] IMUL R14,R13 MOV RAX,qword ptr [RSP + 0x70] ADD RAX,R14 ADD R14,qword ptr [RSP + 0x68] XOR R11D,R11D LAB_0014102a: MOV R8,R10 ADD R8,R11 JS 0x00141077 CMP qword ptr [RBX + 0x10],R8 JLE 0x00141077 CMP dword ptr [RBX],0x0 MOV R8,R14 JZ 0x0014104c MOVZX R8D,word ptr [RAX + R11*0x2] SHL R8D,0x2 ADD R8,R9 LAB_0014104c: VMOVSS XMM2,dword ptr [R8] TEST EBP,EBP JZ 0x0014106b CMP EBP,0x1 JZ 0x00141064 CMP EBP,0x2 JNZ 0x00141077 JMP 0x00141128 LAB_00141064: VADDSS XMM2,XMM2,dword ptr [RSI + RDX*0x4] JMP 0x00141072 LAB_0014106b: VUCOMISS XMM2,dword ptr [RSI + RDX*0x4] JBE 0x00141077 LAB_00141072: VMOVSS dword ptr [RSI + RDX*0x4],XMM2 LAB_00141077: INC R11 ADD R14,0x4 CMP R15,R11 JNZ 0x0014102a LAB_00141083: INC RCX INC R13 CMP RCX,R12 JNZ 0x00140fff LAB_00141092: CMP EBP,0x1 JZ 0x001410a1 CMP EBP,0x2 JNZ 0x001410af JMP 0x00141142 LAB_001410a1: VMOVSS XMM2,dword ptr [RSI + RDX*0x4] VDIVSS XMM2,XMM2,XMM0 VMOVSS dword ptr [RSI + RDX*0x4],XMM2 LAB_001410af: INC RDX MOV EAX,dword ptr [RSP + 0x10] ADD EAX,dword ptr [RSP + 0x4c] MOV dword ptr [RSP + 0x10],EAX CMP RDX,qword ptr [RSP + 0x40] JNZ 0x00140fb1 LAB_001410c9: MOV RCX,qword ptr [RSP + 0x38] INC RCX MOV EAX,dword ptr [RSP + 0xc] ADD EAX,dword ptr [RSP + 0x1c] MOV dword ptr [RSP + 0xc],EAX MOV qword ptr [RSP + 0x38],RCX CMP RCX,qword ptr [RSP + 0x50] JNZ 0x00140f63 LAB_001410ed: MOV RAX,qword ptr [RSP + 0x20] ADD RAX,qword ptr [RBX + 0x40] MOV RCX,qword ptr [RSP + 0x58] MOV RDX,qword ptr [RSP + 0x30] LEA RDX,[RDX + RCX*0x4] MOV qword ptr [RSP + 0x30],RDX MOV qword ptr [RSP + 0x20],RAX CMP RAX,qword ptr [RSP + 0x28] JC 0x00140f46 LAB_00141119: ADD RSP,0x78 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00141128: LEA RDI,[0x153aa0] LEA RDX,[0x149680] MOV ESI,0x18df LAB_0014113b: XOR EAX,EAX CALL 0x0010af40 LAB_00141142: LEA RDI,[0x153aa0] LEA RDX,[0x149680] MOV ESI,0x18e6 JMP 0x0014113b LAB_00141157: LEA RDI,[0x153aa0] LEA RDX,[0x149680] MOV ESI,0x18cf JMP 0x0014113b
void ggml_compute_forward_pool_2d(int *param_1,long param_2) { long lVar1; int iVar2; uint uVar3; uint uVar4; int iVar5; int iVar6; int iVar7; int iVar8; int *piVar9; long lVar10; int4 uVar11; int *puVar12; long lVar13; ulong uVar14; long lVar15; ulong uVar16; long lVar17; int8 uVar18; float *pfVar19; long lVar20; ulong uVar21; long lVar22; float *pfVar23; int4 uVar24; float fVar25; int local_9c; int local_98; ulong local_88; long local_78; long local_70; if (*param_1 == 0) { piVar9 = *(int **)(param_2 + 0x98); iVar2 = *(int *)(param_2 + 0x54); uVar3 = *(uint *)(param_2 + 0x58); uVar4 = *(uint *)(param_2 + 0x5c); iVar5 = *(int *)(param_2 + 0x60); iVar6 = *(int *)(param_2 + 100); iVar7 = *(int *)(param_2 + 0x68); iVar8 = *(int *)(param_2 + 0x6c); local_88 = *(ulong *)(piVar9 + 0x3e); lVar13 = ggml_nbytes(piVar9); puVar12 = PTR_ggml_table_f32_f16_0015bf60; uVar11 = DAT_00153574; if (0 < lVar13) { uVar14 = lVar13 + local_88; lVar13 = *(long *)(param_2 + 0x10); lVar10 = *(long *)(param_2 + 0x18); local_78 = *(long *)(param_2 + 0xf8); do { if (0 < lVar10) { local_70 = 0; local_9c = -iVar8; do { if (0 < lVar13) { if (iVar2 == 2) { uVar18 = 0x18cf; LAB_0014113b: /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp" ,uVar18,"fatal error"); } lVar1 = local_78 + local_70 * lVar13 * 4; lVar17 = 0; local_98 = -iVar7; do { if (iVar2 == 1) { uVar24 = 0; LAB_00140fc4: *(int4 *)(lVar1 + lVar17 * 4) = uVar24; } else { uVar24 = uVar11; if (iVar2 == 0) goto LAB_00140fc4; } if (0 < (int)uVar4) { lVar20 = (long)local_98; uVar16 = 0; lVar22 = (long)local_9c; do { lVar15 = uVar16 + (long)(iVar6 * (int)local_70 - iVar8); if (((-1 < lVar15) && (lVar15 < *(long *)(piVar9 + 6))) && (0 < (int)uVar3)) { lVar15 = *(long *)(piVar9 + 0xe); pfVar23 = (float *)(lVar15 * lVar22 + lVar20 * 4 + local_88); uVar21 = 0; do { if ((-1 < (long)(lVar20 + uVar21)) && ((long)(lVar20 + uVar21) < *(long *)(piVar9 + 4))) { pfVar19 = pfVar23; if (*piVar9 != 0) { pfVar19 = (float *)(puVar12 + (ulong)*(ushort *) (lVar20 * 2 + local_88 + lVar15 * lVar22 + uVar21 * 2) * 4); } fVar25 = *pfVar19; if (iVar2 == 0) { if (*(float *)(lVar1 + lVar17 * 4) < fVar25) goto LAB_00141072; } else if (iVar2 == 1) { fVar25 = fVar25 + *(float *)(lVar1 + lVar17 * 4); LAB_00141072: *(float *)(lVar1 + lVar17 * 4) = fVar25; } else if (iVar2 == 2) { uVar18 = 0x18df; goto LAB_0014113b; } } uVar21 = uVar21 + 1; pfVar23 = pfVar23 + 1; } while (uVar3 != uVar21); } uVar16 = uVar16 + 1; lVar22 = lVar22 + 1; } while (uVar16 != uVar4); } if (iVar2 == 1) { *(float *)(lVar1 + lVar17 * 4) = *(float *)(lVar1 + lVar17 * 4) / (float)(int)(uVar3 * uVar4); } else if (iVar2 == 2) { uVar18 = 0x18e6; goto LAB_0014113b; } lVar17 = lVar17 + 1; local_98 = local_98 + iVar5; } while (lVar17 != lVar13); } local_70 = local_70 + 1; local_9c = local_9c + iVar6; } while (local_70 != lVar10); } local_88 = local_88 + *(long *)(piVar9 + 0x10); local_78 = local_78 + lVar10 * lVar13 * 4; } while (local_88 < uVar14); } } return; }
53,185
rlSetVertexAttribute
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rlgl.h
void rlSetVertexAttribute(unsigned int index, int compSize, int type, bool normalized, int stride, int offset) { #if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2) // NOTE: Data type could be: GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT // Additional types (depends on OpenGL version or extensions): // - GL_HALF_FLOAT, GL_FLOAT, GL_DOUBLE, GL_FIXED, // - GL_INT_2_10_10_10_REV, GL_UNSIGNED_INT_2_10_10_10_REV, GL_UNSIGNED_INT_10F_11F_11F_REV size_t offsetNative = offset; glVertexAttribPointer(index, compSize, type, normalized, stride, (void *)offsetNative); #endif }
O0
c
rlSetVertexAttribute: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movb %cl, %al movl %edi, -0x4(%rbp) movl %esi, -0x8(%rbp) movl %edx, -0xc(%rbp) andb $0x1, %al movb %al, -0xd(%rbp) movl %r8d, -0x14(%rbp) movl %r9d, -0x18(%rbp) movslq -0x18(%rbp), %rax movq %rax, -0x20(%rbp) movq 0x1632b9(%rip), %rax # 0x21a198 movl -0x4(%rbp), %edi movl -0x8(%rbp), %esi movl -0xc(%rbp), %edx movb -0xd(%rbp), %cl andb $0x1, %cl movl -0x14(%rbp), %r8d movq -0x20(%rbp), %r9 movzbl %cl, %ecx callq *%rax addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
rlSetVertexAttribute: push rbp mov rbp, rsp sub rsp, 20h mov al, cl mov [rbp+var_4], edi mov [rbp+var_8], esi mov [rbp+var_C], edx and al, 1 mov [rbp+var_D], al mov [rbp+var_14], r8d mov [rbp+var_18], r9d movsxd rax, [rbp+var_18] mov [rbp+var_20], rax mov rax, cs:glad_glVertexAttribPointer mov edi, [rbp+var_4] mov esi, [rbp+var_8] mov edx, [rbp+var_C] mov cl, [rbp+var_D] and cl, 1 mov r8d, [rbp+var_14] mov r9, [rbp+var_20] movzx ecx, cl call rax ; glad_glVertexAttribPointer add rsp, 20h pop rbp retn
long long rlSetVertexAttribute( unsigned int a1, unsigned int a2, unsigned int a3, char a4, unsigned int a5, int a6) { return glad_glVertexAttribPointer(a1, a2, a3, a4 & 1, a5, a6); }
rlSetVertexAttribute: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV AL,CL MOV dword ptr [RBP + -0x4],EDI MOV dword ptr [RBP + -0x8],ESI MOV dword ptr [RBP + -0xc],EDX AND AL,0x1 MOV byte ptr [RBP + -0xd],AL MOV dword ptr [RBP + -0x14],R8D MOV dword ptr [RBP + -0x18],R9D MOVSXD RAX,dword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [0x0031a198] MOV EDI,dword ptr [RBP + -0x4] MOV ESI,dword ptr [RBP + -0x8] MOV EDX,dword ptr [RBP + -0xc] MOV CL,byte ptr [RBP + -0xd] AND CL,0x1 MOV R8D,dword ptr [RBP + -0x14] MOV R9,qword ptr [RBP + -0x20] MOVZX ECX,CL CALL RAX ADD RSP,0x20 POP RBP RET
void rlSetVertexAttribute (int4 param_1,int4 param_2,int4 param_3,byte param_4, int4 param_5,int param_6) { (*glad_glVertexAttribPointer)(param_1,param_2,param_3,param_4 & 1,param_5,(long)param_6); return; }
53,186
rlSetVertexAttribute
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rlgl.h
void rlSetVertexAttribute(unsigned int index, int compSize, int type, bool normalized, int stride, int offset) { #if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2) // NOTE: Data type could be: GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT // Additional types (depends on OpenGL version or extensions): // - GL_HALF_FLOAT, GL_FLOAT, GL_DOUBLE, GL_FIXED, // - GL_INT_2_10_10_10_REV, GL_UNSIGNED_INT_2_10_10_10_REV, GL_UNSIGNED_INT_10F_11F_11F_REV size_t offsetNative = offset; glVertexAttribPointer(index, compSize, type, normalized, stride, (void *)offsetNative); #endif }
O3
c
rlSetVertexAttribute: movslq %r9d, %r9 movq 0xd5e66(%rip), %rax # 0x13b0d8 jmpq *%rax
rlSetVertexAttribute: movsxd r9, r9d mov rax, cs:glad_glVertexAttribPointer jmp rax
long long rlSetVertexAttribute(long long a1, long long a2, long long a3, long long a4, long long a5, int a6) { return glad_glVertexAttribPointer(a1, a2, a3, a4, a5, a6); }
rlSetVertexAttribute: MOVSXD R9,R9D MOV RAX,qword ptr [0x0023b0d8] JMP RAX
void rlSetVertexAttribute(void) { /* WARNING: Could not recover jumptable at 0x00165272. Too many branches */ /* WARNING: Treating indirect jump as call */ (*glad_glVertexAttribPointer)(); return; }
53,187
mz_zip_file_write_func
7CodeWizard[P]stablediffusion/thirdparty/miniz.h
static size_t mz_zip_file_write_func(void *pOpaque, mz_uint64 file_ofs, const void *pBuf, size_t n) { mz_zip_archive *pZip = (mz_zip_archive *)pOpaque; mz_int64 cur_ofs = MZ_FTELL64(pZip->m_pState->m_pFile); file_ofs += pZip->m_pState->m_file_archive_start_ofs; if (((mz_int64)file_ofs < 0) || (((cur_ofs != (mz_int64)file_ofs)) && (MZ_FSEEK64(pZip->m_pState->m_pFile, (mz_int64)file_ofs, SEEK_SET)))) { mz_zip_set_error(pZip, MZ_ZIP_FILE_SEEK_FAILED); return 0; } return MZ_FWRITE(pBuf, 1, n, pZip->m_pState->m_pFile); }
O1
c
mz_zip_file_write_func: pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rcx, %rbx movq %rdx, %r14 movq %rsi, %r12 movq %rdi, %r15 movq 0x68(%rdi), %rax movq 0x70(%rax), %rdi callq 0xa730 movq 0x68(%r15), %rcx addq 0x78(%rcx), %r12 js 0x86b8b cmpq %r12, %rax je 0x86ba6 movq 0x70(%rcx), %rdi movq %r12, %rsi xorl %edx, %edx callq 0xa330 testl %eax, %eax je 0x86ba6 testq %r15, %r15 je 0x86b98 movl $0x16, 0x1c(%r15) xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq movq 0x68(%r15), %rax movq 0x70(%rax), %rcx movl $0x1, %esi movq %r14, %rdi movq %rbx, %rdx addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 jmp 0xac10
mz_zip_file_write_func: push r15 push r14 push r12 push rbx push rax mov rbx, rcx mov r14, rdx mov r12, rsi mov r15, rdi mov rax, [rdi+68h] mov rdi, [rax+70h] call _ftello mov rcx, [r15+68h] add r12, [rcx+78h] js short loc_86B8B cmp rax, r12 jz short loc_86BA6 mov rdi, [rcx+70h] mov rsi, r12 xor edx, edx call _fseeko test eax, eax jz short loc_86BA6 loc_86B8B: test r15, r15 jz short loc_86B98 mov dword ptr [r15+1Ch], 16h loc_86B98: xor eax, eax add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn loc_86BA6: mov rax, [r15+68h] mov rcx, [rax+70h] mov esi, 1 mov rdi, r14 mov rdx, rbx add rsp, 8 pop rbx pop r12 pop r14 pop r15 jmp _fwrite
long long mz_zip_file_write_func(long long a1, long long a2, long long a3, long long a4) { long long v6; // rax long long v7; // rcx long long v8; // r12 v6 = ftello(*(_QWORD *)(*(_QWORD *)(a1 + 104) + 112LL)); v7 = *(_QWORD *)(a1 + 104); v8 = *(_QWORD *)(v7 + 120) + a2; if ( v8 >= 0 && (v6 == v8 || !(unsigned int)fseeko(*(_QWORD *)(v7 + 112), v8, 0LL)) ) return fwrite(a3, 1LL, a4, *(_QWORD *)(*(_QWORD *)(a1 + 104) + 112LL)); if ( a1 ) *(_DWORD *)(a1 + 28) = 22; return 0LL; }
53,188
mz_zip_file_write_func
7CodeWizard[P]stablediffusion/thirdparty/miniz.h
static size_t mz_zip_file_write_func(void *pOpaque, mz_uint64 file_ofs, const void *pBuf, size_t n) { mz_zip_archive *pZip = (mz_zip_archive *)pOpaque; mz_int64 cur_ofs = MZ_FTELL64(pZip->m_pState->m_pFile); file_ofs += pZip->m_pState->m_file_archive_start_ofs; if (((mz_int64)file_ofs < 0) || (((cur_ofs != (mz_int64)file_ofs)) && (MZ_FSEEK64(pZip->m_pState->m_pFile, (mz_int64)file_ofs, SEEK_SET)))) { mz_zip_set_error(pZip, MZ_ZIP_FILE_SEEK_FAILED); return 0; } return MZ_FWRITE(pBuf, 1, n, pZip->m_pState->m_pFile); }
O2
c
mz_zip_file_write_func: pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rcx, %rbx movq %rdx, %r14 movq %rsi, %r12 movq %rdi, %r15 movq 0x68(%rdi), %rax movq 0x70(%rax), %rdi callq 0xa740 movq 0x68(%r15), %rcx addq 0x78(%rcx), %r12 js 0x61188 cmpq %r12, %rax je 0x611a2 movq 0x70(%rcx), %rdi movq %r12, %rsi xorl %edx, %edx callq 0xa330 testl %eax, %eax je 0x6119e movl $0x16, 0x1c(%r15) xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq movq 0x68(%r15), %rcx movq 0x70(%rcx), %rcx pushq $0x1 popq %rsi movq %r14, %rdi movq %rbx, %rdx addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 jmp 0xabe0
mz_zip_file_write_func: push r15 push r14 push r12 push rbx push rax mov rbx, rcx mov r14, rdx mov r12, rsi mov r15, rdi mov rax, [rdi+68h] mov rdi, [rax+70h] call _ftello mov rcx, [r15+68h] add r12, [rcx+78h] js short loc_61188 cmp rax, r12 jz short loc_611A2 mov rdi, [rcx+70h] mov rsi, r12 xor edx, edx call _fseeko test eax, eax jz short loc_6119E loc_61188: mov dword ptr [r15+1Ch], 16h xor eax, eax add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn loc_6119E: mov rcx, [r15+68h] loc_611A2: mov rcx, [rcx+70h] push 1 pop rsi mov rdi, r14 mov rdx, rbx add rsp, 8 pop rbx pop r12 pop r14 pop r15 jmp _fwrite
long long mz_zip_file_write_func(long long a1, long long a2, long long a3, long long a4) { long long v6; // rax long long v7; // rcx long long v8; // r12 v6 = ftello(*(_QWORD *)(*(_QWORD *)(a1 + 104) + 112LL)); v7 = *(_QWORD *)(a1 + 104); v8 = *(_QWORD *)(v7 + 120) + a2; if ( v8 < 0 ) goto LABEL_4; if ( v6 != v8 ) { if ( (unsigned int)fseeko(*(_QWORD *)(v7 + 112), v8, 0LL) ) { LABEL_4: *(_DWORD *)(a1 + 28) = 22; return 0LL; } v7 = *(_QWORD *)(a1 + 104); } return fwrite(a3, 1LL, a4, *(_QWORD *)(v7 + 112)); }
mz_zip_file_write_func: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RCX MOV R14,RDX MOV R12,RSI MOV R15,RDI MOV RAX,qword ptr [RDI + 0x68] MOV RDI,qword ptr [RAX + 0x70] CALL 0x0010a740 MOV RCX,qword ptr [R15 + 0x68] ADD R12,qword ptr [RCX + 0x78] JS 0x00161188 CMP RAX,R12 JZ 0x001611a2 MOV RDI,qword ptr [RCX + 0x70] MOV RSI,R12 XOR EDX,EDX CALL 0x0010a330 TEST EAX,EAX JZ 0x0016119e LAB_00161188: MOV dword ptr [R15 + 0x1c],0x16 XOR EAX,EAX ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET LAB_0016119e: MOV RCX,qword ptr [R15 + 0x68] LAB_001611a2: MOV RCX,qword ptr [RCX + 0x70] PUSH 0x1 POP RSI MOV RDI,R14 MOV RDX,RBX ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 JMP 0x0010abe0
size_t mz_zip_file_write_func(long param_1,long param_2,void *param_3,size_t param_4) { int iVar1; __off_t _Var2; size_t sVar3; long lVar4; _Var2 = ftello(*(FILE **)(*(long *)(param_1 + 0x68) + 0x70)); lVar4 = *(long *)(param_1 + 0x68); param_2 = param_2 + *(long *)(lVar4 + 0x78); if (-1 < param_2) { if (_Var2 != param_2) { iVar1 = fseeko(*(FILE **)(lVar4 + 0x70),param_2,0); if (iVar1 != 0) goto LAB_00161188; lVar4 = *(long *)(param_1 + 0x68); } sVar3 = fwrite(param_3,1,param_4,*(FILE **)(lVar4 + 0x70)); return sVar3; } LAB_00161188: *(int4 *)(param_1 + 0x1c) = 0x16; return 0; }
53,189
mz_zip_file_write_func
7CodeWizard[P]stablediffusion/thirdparty/miniz.h
static size_t mz_zip_file_write_func(void *pOpaque, mz_uint64 file_ofs, const void *pBuf, size_t n) { mz_zip_archive *pZip = (mz_zip_archive *)pOpaque; mz_int64 cur_ofs = MZ_FTELL64(pZip->m_pState->m_pFile); file_ofs += pZip->m_pState->m_file_archive_start_ofs; if (((mz_int64)file_ofs < 0) || (((cur_ofs != (mz_int64)file_ofs)) && (MZ_FSEEK64(pZip->m_pState->m_pFile, (mz_int64)file_ofs, SEEK_SET)))) { mz_zip_set_error(pZip, MZ_ZIP_FILE_SEEK_FAILED); return 0; } return MZ_FWRITE(pBuf, 1, n, pZip->m_pState->m_pFile); }
O3
c
mz_zip_file_write_func: pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rcx, %rbx movq %rdx, %r14 movq %rsi, %r12 movq %rdi, %r15 movq 0x68(%rdi), %rax movq 0x70(%rax), %rdi callq 0xa720 movq 0x68(%r15), %rcx addq 0x78(%rcx), %r12 js 0x85af2 cmpq %r12, %rax je 0x85b0c movq 0x70(%rcx), %rdi movq %r12, %rsi xorl %edx, %edx callq 0xa320 testl %eax, %eax je 0x85b08 movl $0x16, 0x1c(%r15) xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq movq 0x68(%r15), %rcx movq 0x70(%rcx), %rcx movl $0x1, %esi movq %r14, %rdi movq %rbx, %rdx addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 jmp 0xac00
mz_zip_file_write_func: push r15 push r14 push r12 push rbx push rax mov rbx, rcx mov r14, rdx mov r12, rsi mov r15, rdi mov rax, [rdi+68h] mov rdi, [rax+70h] call _ftello mov rcx, [r15+68h] add r12, [rcx+78h] js short loc_85AF2 cmp rax, r12 jz short loc_85B0C mov rdi, [rcx+70h] mov rsi, r12 xor edx, edx call _fseeko test eax, eax jz short loc_85B08 loc_85AF2: mov dword ptr [r15+1Ch], 16h xor eax, eax add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn loc_85B08: mov rcx, [r15+68h] loc_85B0C: mov rcx, [rcx+70h] mov esi, 1 mov rdi, r14 mov rdx, rbx add rsp, 8 pop rbx pop r12 pop r14 pop r15 jmp _fwrite
long long mz_zip_file_write_func(long long a1, long long a2, long long a3, long long a4) { long long v6; // rax long long v7; // rcx long long v8; // r12 v6 = ftello(*(_QWORD *)(*(_QWORD *)(a1 + 104) + 112LL)); v7 = *(_QWORD *)(a1 + 104); v8 = *(_QWORD *)(v7 + 120) + a2; if ( v8 < 0 ) goto LABEL_4; if ( v6 != v8 ) { if ( (unsigned int)fseeko(*(_QWORD *)(v7 + 112), v8, 0LL) ) { LABEL_4: *(_DWORD *)(a1 + 28) = 22; return 0LL; } v7 = *(_QWORD *)(a1 + 104); } return fwrite(a3, 1LL, a4, *(_QWORD *)(v7 + 112)); }
53,190
neg_fp6
corpus-core[P]colibri-stateless/build_O3/_deps/blst-src/src/fp12_tower.c
static void neg_fp6(vec384fp6 ret, const vec384fp6 a) { neg_fp2(ret[0], a[0]); neg_fp2(ret[1], a[1]); neg_fp2(ret[2], a[2]); }
O3
c
neg_fp6: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r15 leaq 0x2458c(%rip), %r14 # 0x8a910 movl $0x1, %edx movq %r14, %rcx callq 0x6dc80 leaq 0x30(%r15), %rdi leaq 0x30(%rbx), %rsi movl $0x1, %edx movq %r14, %rcx callq 0x6dc80 leaq 0x60(%r15), %rdi leaq 0x60(%rbx), %rsi movl $0x1, %edx movq %r14, %rcx callq 0x6dc80 movl $0x90, %esi leaq (%r15,%rsi), %rdi addq %rbx, %rsi movl $0x1, %edx movq %r14, %rcx callq 0x6dc80 movl $0xc0, %esi leaq (%r15,%rsi), %rdi addq %rbx, %rsi movl $0x1, %edx movq %r14, %rcx callq 0x6dc80 movl $0xf0, %eax addq %rax, %r15 addq %rax, %rbx movl $0x1, %edx movq %r15, %rdi movq %rbx, %rsi movq %r14, %rcx addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp 0x6dc80
neg_fp6: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov rbx, rsi mov r15, rdi lea r14, BLS12_381_P mov edx, 1 mov rcx, r14 call cneg_mod_384 lea rdi, [r15+30h] lea rsi, [rbx+30h] mov edx, 1 mov rcx, r14 call cneg_mod_384 lea rdi, [r15+60h] lea rsi, [rbx+60h] mov edx, 1 mov rcx, r14 call cneg_mod_384 mov esi, 90h lea rdi, [r15+rsi] add rsi, rbx mov edx, 1 mov rcx, r14 call cneg_mod_384 mov esi, 0C0h lea rdi, [r15+rsi] add rsi, rbx mov edx, 1 mov rcx, r14 call cneg_mod_384 mov eax, 0F0h add r15, rax add rbx, rax mov edx, 1 mov rdi, r15 mov rsi, rbx mov rcx, r14 add rsp, 8 pop rbx pop r14 pop r15 pop rbp jmp cneg_mod_384
long long neg_fp6(long long a1, long long a2) { cneg_mod_384(a1, a2, 1LL, &BLS12_381_P); cneg_mod_384(a1 + 48, a2 + 48, 1LL, &BLS12_381_P); cneg_mod_384(a1 + 96, a2 + 96, 1LL, &BLS12_381_P); cneg_mod_384(a1 + 144, a2 + 144, 1LL, &BLS12_381_P); cneg_mod_384(a1 + 192, a2 + 192, 1LL, &BLS12_381_P); return cneg_mod_384(a1 + 240, a2 + 240, 1LL, &BLS12_381_P); }
neg_fp6: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RSI MOV R15,RDI LEA R14,[0x18a910] MOV EDX,0x1 MOV RCX,R14 CALL 0x0016dc80 LEA RDI,[R15 + 0x30] LEA RSI,[RBX + 0x30] MOV EDX,0x1 MOV RCX,R14 CALL 0x0016dc80 LEA RDI,[R15 + 0x60] LEA RSI,[RBX + 0x60] MOV EDX,0x1 MOV RCX,R14 CALL 0x0016dc80 MOV ESI,0x90 LEA RDI,[R15 + RSI*0x1] ADD RSI,RBX MOV EDX,0x1 MOV RCX,R14 CALL 0x0016dc80 MOV ESI,0xc0 LEA RDI,[R15 + RSI*0x1] ADD RSI,RBX MOV EDX,0x1 MOV RCX,R14 CALL 0x0016dc80 MOV EAX,0xf0 ADD R15,RAX ADD RBX,RAX MOV EDX,0x1 MOV RDI,R15 MOV RSI,RBX MOV RCX,R14 ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP JMP 0x0016dc80
void neg_fp6(long param_1,long param_2) { cneg_mod_384(param_1,param_2,1,BLS12_381_P); cneg_mod_384(param_1 + 0x30,param_2 + 0x30,1,BLS12_381_P); cneg_mod_384(param_1 + 0x60,param_2 + 0x60,1,BLS12_381_P); cneg_mod_384(param_1 + 0x90,param_2 + 0x90,1,BLS12_381_P); cneg_mod_384(param_1 + 0xc0,param_2 + 0xc0,1,BLS12_381_P); cneg_mod_384(param_1 + 0xf0,param_2 + 0xf0,1,BLS12_381_P); return; }
53,191
test_oom()
eloqsql/storage/perfschema/unittest/pfs_host-oom-t.cc
void test_oom() { PSI *psi; PFS_global_param param; PSI_bootstrap *boot; memset(& param, 0xFF, sizeof(param)); param.m_enabled= true; param.m_mutex_class_sizing= 0; param.m_rwlock_class_sizing= 0; param.m_cond_class_sizing= 0; param.m_thread_class_sizing= 10; param.m_table_share_sizing= 0; param.m_file_class_sizing= 0; param.m_socket_class_sizing= 0; param.m_mutex_sizing= 0; param.m_rwlock_sizing= 0; param.m_cond_sizing= 0; param.m_thread_sizing= 1000; param.m_table_sizing= 0; param.m_file_sizing= 0; param.m_file_handle_sizing= 0; param.m_socket_sizing= 0; param.m_events_waits_history_sizing= 10; param.m_events_waits_history_long_sizing= 0; param.m_setup_actor_sizing= 0; param.m_setup_object_sizing= 0; param.m_user_sizing= 0; param.m_host_sizing= 1000; param.m_account_sizing= 0; param.m_stage_class_sizing= 50; param.m_events_stages_history_sizing= 0; param.m_events_stages_history_long_sizing= 0; param.m_statement_class_sizing= 50; param.m_events_statements_history_sizing= 0; param.m_events_statements_history_long_sizing= 0; param.m_events_transactions_history_sizing= 0; param.m_events_transactions_history_long_sizing= 0; param.m_digest_sizing= 0; param.m_session_connect_attrs_sizing= 0; param.m_program_sizing= 0; param.m_statement_stack_sizing= 0; param.m_memory_class_sizing= 10; param.m_metadata_lock_sizing= 0; param.m_max_digest_length= 0; param.m_max_sql_text_length= 0; /* Setup */ stub_alloc_always_fails= false; stub_alloc_fails_after_count= 1000; pre_initialize_performance_schema(); boot= initialize_performance_schema(&param); psi= (PSI *)boot->get_interface(PSI_VERSION_1); PSI_thread_key thread_key_1; PSI_thread_info all_thread[]= { {&thread_key_1, "T-1", 0} }; psi->register_thread("test", all_thread, 1); PSI_thread *thread_1= psi->new_thread(thread_key_1, NULL, 0); psi->set_thread(thread_1); /* Tests */ int first_fail= 1; stub_alloc_fails_after_count= first_fail; psi->set_thread_account("", 0, "host1", 5); ok(global_host_container.m_lost == 1, "oom (host)"); stub_alloc_fails_after_count= first_fail + 1; psi->set_thread_account("", 0, "host2", 5); ok(global_host_container.m_lost == 2, "oom (host waits)"); stub_alloc_fails_after_count= first_fail + 2; psi->set_thread_account("", 0, "host3", 5); ok(global_host_container.m_lost == 3, "oom (host stages)"); stub_alloc_fails_after_count= first_fail + 3; psi->set_thread_account("", 0, "host4", 5); ok(global_host_container.m_lost == 4, "oom (host statements)"); stub_alloc_fails_after_count= first_fail + 4; psi->set_thread_account("", 0, "host5", 5); ok(global_host_container.m_lost == 5, "oom (host transactions)"); stub_alloc_fails_after_count= first_fail + 5; psi->set_thread_account("", 0, "host6", 5); ok(global_host_container.m_lost == 6, "oom (host memory)"); shutdown_performance_schema(); }
O3
cpp
test_oom(): pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x1b8, %rsp # imm = 0x1B8 leaq -0x1c8(%rbp), %rbx movl $0x188, %edx # imm = 0x188 movq %rbx, %rdi movl $0xff, %esi callq 0x261c0 movb $0x1, (%rbx) xorps %xmm0, %xmm0 movups %xmm0, 0x18(%rbx) xorl %eax, %eax movq %rax, 0x28(%rbx) movl $0xa, %ecx movq %rcx, 0x30(%rbx) movq %rax, 0x38(%rbx) movq %rax, 0x98(%rbx) movups %xmm0, 0x50(%rbx) movups %xmm0, 0x60(%rbx) movl $0x3e8, %edx # imm = 0x3E8 movq %rdx, 0x70(%rbx) movups %xmm0, 0x78(%rbx) movups %xmm0, 0x88(%rbx) movq %rcx, 0xa0(%rbx) movups %xmm0, 0xc8(%rbx) movups %xmm0, 0xa8(%rbx) movq %rax, 0xb8(%rbx) movq %rdx, 0xc0(%rbx) movl $0x32, %edx movq %rdx, 0xd8(%rbx) movups %xmm0, 0xe0(%rbx) movq %rdx, 0xf0(%rbx) movups %xmm0, 0x108(%rbx) movups %xmm0, 0xf8(%rbx) movups %xmm0, 0x120(%rbx) movups %xmm0, 0x130(%rbx) movq %rcx, 0x140(%rbx) movups %xmm0, 0x148(%rbx) movq %rax, 0x158(%rbx) movb $0x0, 0x2ea161(%rip) # 0x317010 movl $0x3e8, 0x361427(%rip) # imm = 0x3E8 callq 0x38474 movq %rbx, %rdi callq 0x386c5 movl $0x1, %edi callq *(%rax) movq %rax, %rbx leaq -0x1c(%rbp), %r14 leaq -0x40(%rbp), %rsi movq %r14, (%rsi) leaq 0x4e122(%rip), %rax # 0x7b004 movq %rax, 0x8(%rsi) movl $0x0, 0x10(%rsi) leaq 0x4e114(%rip), %rdi # 0x7b008 movl $0x1, %edx callq *0x18(%rbx) movl (%r14), %edi xorl %esi, %esi xorl %edx, %edx callq *0xc8(%rbx) movq %rax, %rdi callq *0x130(%rbx) movl $0x1, 0x3613c4(%rip) # 0x38e2e0 leaq 0x52e09(%rip), %r14 # 0x7fd2c leaq 0x4e0e3(%rip), %rdx # 0x7b00d movq %r14, %rdi xorl %esi, %esi movl $0x5, %ecx callq *0xf8(%rbx) leaq 0x3994d7(%rip), %r15 # 0x3c6418 xorl %edi, %edi cmpq $0x1, (%r15) sete %dil leaq 0x4e0c1(%rip), %rsi # 0x7b013 xorl %eax, %eax callq 0x2d403 movl $0x2, 0x36137d(%rip) # 0x38e2e0 leaq 0x4e0b4(%rip), %rdx # 0x7b01e movq %r14, %rdi xorl %esi, %esi movl $0x5, %ecx callq *0xf8(%rbx) xorl %edi, %edi cmpq $0x2, (%r15) sete %dil leaq 0x4e099(%rip), %rsi # 0x7b024 xorl %eax, %eax callq 0x2d403 movl $0x3, 0x361344(%rip) # 0x38e2e0 leaq 0x4e092(%rip), %rdx # 0x7b035 movq %r14, %rdi xorl %esi, %esi movl $0x5, %ecx callq *0xf8(%rbx) xorl %edi, %edi cmpq $0x3, (%r15) sete %dil leaq 0x4e077(%rip), %rsi # 0x7b03b xorl %eax, %eax callq 0x2d403 movl $0x4, 0x36130b(%rip) # 0x38e2e0 leaq 0x4e071(%rip), %rdx # 0x7b04d movq %r14, %rdi xorl %esi, %esi movl $0x5, %ecx callq *0xf8(%rbx) xorl %edi, %edi cmpq $0x4, (%r15) sete %dil leaq 0x4e056(%rip), %rsi # 0x7b053 xorl %eax, %eax callq 0x2d403 movl $0x5, 0x3612d2(%rip) # 0x38e2e0 leaq 0x4e054(%rip), %rdx # 0x7b069 movq %r14, %rdi xorl %esi, %esi movl $0x5, %ecx callq *0xf8(%rbx) xorl %edi, %edi cmpq $0x5, (%r15) sete %dil leaq 0x4e039(%rip), %rsi # 0x7b06f xorl %eax, %eax callq 0x2d403 movl $0x6, 0x361299(%rip) # 0x38e2e0 leaq 0x4e039(%rip), %rdx # 0x7b087 movq %r14, %rdi xorl %esi, %esi movl $0x5, %ecx callq *0xf8(%rbx) xorl %edi, %edi cmpq $0x6, (%r15) sete %dil leaq 0x4e01e(%rip), %rsi # 0x7b08d xorl %eax, %eax callq 0x2d403 callq 0x38b09 addq $0x1b8, %rsp # imm = 0x1B8 popq %rbx popq %r14 popq %r15 popq %rbp retq
_Z8test_oomv: push rbp mov rbp, rsp push r15 push r14 push rbx sub rsp, 1B8h lea rbx, [rbp+var_1C8] mov edx, 188h mov rdi, rbx mov esi, 0FFh call _memset mov byte ptr [rbx], 1 xorps xmm0, xmm0 movups xmmword ptr [rbx+18h], xmm0 xor eax, eax mov [rbx+28h], rax mov ecx, 0Ah mov [rbx+30h], rcx mov [rbx+38h], rax mov [rbx+98h], rax movups xmmword ptr [rbx+50h], xmm0 movups xmmword ptr [rbx+60h], xmm0 mov edx, 3E8h mov [rbx+70h], rdx movups xmmword ptr [rbx+78h], xmm0 movups xmmword ptr [rbx+88h], xmm0 mov [rbx+0A0h], rcx movups xmmword ptr [rbx+0C8h], xmm0 movups xmmword ptr [rbx+0A8h], xmm0 mov [rbx+0B8h], rax mov [rbx+0C0h], rdx mov edx, 32h ; '2' mov [rbx+0D8h], rdx movups xmmword ptr [rbx+0E0h], xmm0 mov [rbx+0F0h], rdx movups xmmword ptr [rbx+108h], xmm0 movups xmmword ptr [rbx+0F8h], xmm0 movups xmmword ptr [rbx+120h], xmm0 movups xmmword ptr [rbx+130h], xmm0 mov [rbx+140h], rcx movups xmmword ptr [rbx+148h], xmm0 mov [rbx+158h], rax mov cs:stub_alloc_always_fails, 0 mov cs:stub_alloc_fails_after_count, 3E8h call _Z33pre_initialize_performance_schemav; pre_initialize_performance_schema(void) mov rdi, rbx call _Z29initialize_performance_schemaP16PFS_global_param; initialize_performance_schema(PFS_global_param *) mov edi, 1 call qword ptr [rax] mov rbx, rax lea r14, [rbp+var_1C] lea rsi, [rbp+var_40] mov [rsi], r14 lea rax, unk_7B004 mov [rsi+8], rax mov dword ptr [rsi+10h], 0 lea rdi, aTest; "test" mov edx, 1 call qword ptr [rbx+18h] mov edi, [r14] xor esi, esi xor edx, edx call qword ptr [rbx+0C8h] mov rdi, rax call qword ptr [rbx+130h] mov cs:stub_alloc_fails_after_count, 1 lea r14, asc_7FD28+4; "" lea rdx, aHost1; "host1" mov rdi, r14 xor esi, esi mov ecx, 5 call qword ptr [rbx+0F8h] lea r15, global_host_container xor edi, edi cmp qword ptr [r15], 1 setz dil lea rsi, aOomHost; "oom (host)" xor eax, eax call ok mov cs:stub_alloc_fails_after_count, 2 lea rdx, aHost2; "host2" mov rdi, r14 xor esi, esi mov ecx, 5 call qword ptr [rbx+0F8h] xor edi, edi cmp qword ptr [r15], 2 setz dil lea rsi, aOomHostWaits; "oom (host waits)" xor eax, eax call ok mov cs:stub_alloc_fails_after_count, 3 lea rdx, aHost3; "host3" mov rdi, r14 xor esi, esi mov ecx, 5 call qword ptr [rbx+0F8h] xor edi, edi cmp qword ptr [r15], 3 setz dil lea rsi, aOomHostStages; "oom (host stages)" xor eax, eax call ok mov cs:stub_alloc_fails_after_count, 4 lea rdx, aHost4; "host4" mov rdi, r14 xor esi, esi mov ecx, 5 call qword ptr [rbx+0F8h] xor edi, edi cmp qword ptr [r15], 4 setz dil lea rsi, aOomHostStateme; "oom (host statements)" xor eax, eax call ok mov cs:stub_alloc_fails_after_count, 5 lea rdx, aHost5; "host5" mov rdi, r14 xor esi, esi mov ecx, 5 call qword ptr [rbx+0F8h] xor edi, edi cmp qword ptr [r15], 5 setz dil lea rsi, aOomHostTransac; "oom (host transactions)" xor eax, eax call ok mov cs:stub_alloc_fails_after_count, 6 lea rdx, aHost6; "host6" mov rdi, r14 xor esi, esi mov ecx, 5 call qword ptr [rbx+0F8h] xor edi, edi cmp qword ptr [r15], 6 setz dil lea rsi, aOomHostMemory; "oom (host memory)" xor eax, eax call ok call _Z27shutdown_performance_schemav; shutdown_performance_schema(void) add rsp, 1B8h pop rbx pop r14 pop r15 pop rbp retn
long long test_oom(void) { long long ( **v0)(long long); // rax long long v1; // rbx long long v2; // rax int v3; // edx int v4; // ecx int v5; // r8d int v6; // r9d int v7; // edx int v8; // ecx int v9; // r8d int v10; // r9d int v11; // edx int v12; // ecx int v13; // r8d int v14; // r9d int v15; // edx int v16; // ecx int v17; // r8d int v18; // r9d int v19; // edx int v20; // ecx int v21; // r8d int v22; // r9d int v23; // edx int v24; // ecx int v25; // r8d int v26; // r9d _BYTE v28[24]; // [rsp+8h] [rbp-1C8h] BYREF __int128 v29; // [rsp+20h] [rbp-1B0h] long long v30; // [rsp+30h] [rbp-1A0h] long long v31; // [rsp+38h] [rbp-198h] long long v32; // [rsp+40h] [rbp-190h] __int128 v33; // [rsp+58h] [rbp-178h] __int128 v34; // [rsp+68h] [rbp-168h] long long v35; // [rsp+78h] [rbp-158h] __int128 v36; // [rsp+80h] [rbp-150h] __int128 v37; // [rsp+90h] [rbp-140h] long long v38; // [rsp+A0h] [rbp-130h] long long v39; // [rsp+A8h] [rbp-128h] __int128 v40; // [rsp+B0h] [rbp-120h] long long v41; // [rsp+C0h] [rbp-110h] long long v42; // [rsp+C8h] [rbp-108h] __int128 v43; // [rsp+D0h] [rbp-100h] long long v44; // [rsp+E0h] [rbp-F0h] __int128 v45; // [rsp+E8h] [rbp-E8h] long long v46; // [rsp+F8h] [rbp-D8h] __int128 v47; // [rsp+100h] [rbp-D0h] __int128 v48; // [rsp+110h] [rbp-C0h] __int128 v49; // [rsp+128h] [rbp-A8h] __int128 v50; // [rsp+138h] [rbp-98h] long long v51; // [rsp+148h] [rbp-88h] __int128 v52; // [rsp+150h] [rbp-80h] long long v53; // [rsp+160h] [rbp-70h] _QWORD v54[2]; // [rsp+190h] [rbp-40h] BYREF int v55; // [rsp+1A0h] [rbp-30h] unsigned int v56; // [rsp+1B4h] [rbp-1Ch] BYREF memset(v28, 255LL, 392LL); v28[0] = 1; v29 = 0LL; v30 = 0LL; v31 = 10LL; v32 = 0LL; v38 = 0LL; v33 = 0LL; v34 = 0LL; v35 = 1000LL; v36 = 0LL; v37 = 0LL; v39 = 10LL; v43 = 0LL; v40 = 0LL; v41 = 0LL; v42 = 1000LL; v44 = 50LL; v45 = 0LL; v46 = 50LL; v48 = 0LL; v47 = 0LL; v49 = 0LL; v50 = 0LL; v51 = 10LL; v52 = 0LL; v53 = 0LL; stub_alloc_always_fails = 0; stub_alloc_fails_after_count = 1000; pre_initialize_performance_schema(); v0 = (long long ( **)(long long))initialize_performance_schema(v28); v1 = (*v0)(1LL); v54[0] = &v56; v54[1] = &unk_7B004; v55 = 0; (*(void ( **)(const char *, _QWORD *, long long))(v1 + 24))("test", v54, 1LL); v2 = (*(long long ( **)(_QWORD, _QWORD, _QWORD))(v1 + 200))(v56, 0LL, 0LL); (*(void ( **)(long long))(v1 + 304))(v2); stub_alloc_fails_after_count = 1; (*(void ( **)(char *, _QWORD, const char *, long long))(v1 + 248))("", 0LL, "host1", 5LL); ok(global_host_container == 1, (unsigned int)"oom (host)", v3, v4, v5, v6); stub_alloc_fails_after_count = 2; (*(void ( **)(char *, _QWORD, const char *, long long))(v1 + 248))("", 0LL, "host2", 5LL); ok(global_host_container == 2, (unsigned int)"oom (host waits)", v7, v8, v9, v10); stub_alloc_fails_after_count = 3; (*(void ( **)(char *, _QWORD, const char *, long long))(v1 + 248))("", 0LL, "host3", 5LL); ok(global_host_container == 3, (unsigned int)"oom (host stages)", v11, v12, v13, v14); stub_alloc_fails_after_count = 4; (*(void ( **)(char *, _QWORD, const char *, long long))(v1 + 248))("", 0LL, "host4", 5LL); ok(global_host_container == 4, (unsigned int)"oom (host statements)", v15, v16, v17, v18); stub_alloc_fails_after_count = 5; (*(void ( **)(char *, _QWORD, const char *, long long))(v1 + 248))("", 0LL, "host5", 5LL); ok(global_host_container == 5, (unsigned int)"oom (host transactions)", v19, v20, v21, v22); stub_alloc_fails_after_count = 6; (*(void ( **)(char *, _QWORD, const char *, long long))(v1 + 248))("", 0LL, "host6", 5LL); ok(global_host_container == 6, (unsigned int)"oom (host memory)", v23, v24, v25, v26); return shutdown_performance_schema(); }
test_oom: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x1b8 LEA RBX,[RBP + -0x1c8] MOV EDX,0x188 MOV RDI,RBX MOV ESI,0xff CALL 0x001261c0 MOV byte ptr [RBX],0x1 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0x18],XMM0 XOR EAX,EAX MOV qword ptr [RBX + 0x28],RAX MOV ECX,0xa MOV qword ptr [RBX + 0x30],RCX MOV qword ptr [RBX + 0x38],RAX MOV qword ptr [RBX + 0x98],RAX MOVUPS xmmword ptr [RBX + 0x50],XMM0 MOVUPS xmmword ptr [RBX + 0x60],XMM0 MOV EDX,0x3e8 MOV qword ptr [RBX + 0x70],RDX MOVUPS xmmword ptr [RBX + 0x78],XMM0 MOVUPS xmmword ptr [RBX + 0x88],XMM0 MOV qword ptr [RBX + 0xa0],RCX MOVUPS xmmword ptr [RBX + 0xc8],XMM0 MOVUPS xmmword ptr [RBX + 0xa8],XMM0 MOV qword ptr [RBX + 0xb8],RAX MOV qword ptr [RBX + 0xc0],RDX MOV EDX,0x32 MOV qword ptr [RBX + 0xd8],RDX MOVUPS xmmword ptr [RBX + 0xe0],XMM0 MOV qword ptr [RBX + 0xf0],RDX MOVUPS xmmword ptr [RBX + 0x108],XMM0 MOVUPS xmmword ptr [RBX + 0xf8],XMM0 MOVUPS xmmword ptr [RBX + 0x120],XMM0 MOVUPS xmmword ptr [RBX + 0x130],XMM0 MOV qword ptr [RBX + 0x140],RCX MOVUPS xmmword ptr [RBX + 0x148],XMM0 MOV qword ptr [RBX + 0x158],RAX MOV byte ptr [0x00417010],0x0 MOV dword ptr [0x0048e2e0],0x3e8 CALL 0x00138474 MOV RDI,RBX CALL 0x001386c5 MOV EDI,0x1 CALL qword ptr [RAX] MOV RBX,RAX LEA R14,[RBP + -0x1c] LEA RSI,[RBP + -0x40] MOV qword ptr [RSI],R14 LEA RAX,[0x17b004] MOV qword ptr [RSI + 0x8],RAX MOV dword ptr [RSI + 0x10],0x0 LEA RDI,[0x17b008] MOV EDX,0x1 CALL qword ptr [RBX + 0x18] MOV EDI,dword ptr [R14] XOR ESI,ESI XOR EDX,EDX CALL qword ptr [RBX + 0xc8] MOV RDI,RAX CALL qword ptr [RBX + 0x130] MOV dword ptr [0x0048e2e0],0x1 LEA R14,[0x17fd2c] LEA RDX,[0x17b00d] MOV RDI,R14 XOR ESI,ESI MOV ECX,0x5 CALL qword ptr [RBX + 0xf8] LEA R15,[0x4c6418] XOR EDI,EDI CMP qword ptr [R15],0x1 SETZ DIL LEA RSI,[0x17b013] XOR EAX,EAX CALL 0x0012d403 MOV dword ptr [0x0048e2e0],0x2 LEA RDX,[0x17b01e] MOV RDI,R14 XOR ESI,ESI MOV ECX,0x5 CALL qword ptr [RBX + 0xf8] XOR EDI,EDI CMP qword ptr [R15],0x2 SETZ DIL LEA RSI,[0x17b024] XOR EAX,EAX CALL 0x0012d403 MOV dword ptr [0x0048e2e0],0x3 LEA RDX,[0x17b035] MOV RDI,R14 XOR ESI,ESI MOV ECX,0x5 CALL qword ptr [RBX + 0xf8] XOR EDI,EDI CMP qword ptr [R15],0x3 SETZ DIL LEA RSI,[0x17b03b] XOR EAX,EAX CALL 0x0012d403 MOV dword ptr [0x0048e2e0],0x4 LEA RDX,[0x17b04d] MOV RDI,R14 XOR ESI,ESI MOV ECX,0x5 CALL qword ptr [RBX + 0xf8] XOR EDI,EDI CMP qword ptr [R15],0x4 SETZ DIL LEA RSI,[0x17b053] XOR EAX,EAX CALL 0x0012d403 MOV dword ptr [0x0048e2e0],0x5 LEA RDX,[0x17b069] MOV RDI,R14 XOR ESI,ESI MOV ECX,0x5 CALL qword ptr [RBX + 0xf8] XOR EDI,EDI CMP qword ptr [R15],0x5 SETZ DIL LEA RSI,[0x17b06f] XOR EAX,EAX CALL 0x0012d403 MOV dword ptr [0x0048e2e0],0x6 LEA RDX,[0x17b087] MOV RDI,R14 XOR ESI,ESI MOV ECX,0x5 CALL qword ptr [RBX + 0xf8] XOR EDI,EDI CMP qword ptr [R15],0x6 SETZ DIL LEA RSI,[0x17b08d] XOR EAX,EAX CALL 0x0012d403 CALL 0x00138b09 ADD RSP,0x1b8 POP RBX POP R14 POP R15 POP RBP RET
/* WARNING: Unknown calling convention -- yet parameter storage is locked */ /* test_oom() */ void test_oom(void) { int8 *puVar1; long lVar2; int8 uVar3; PFS_global_param local_1d0 [24]; int8 local_1b8; int8 uStack_1b0; int8 local_1a8; int8 local_1a0; int8 local_198; int8 local_180; int8 uStack_178; int8 local_170; int8 uStack_168; int8 local_160; int8 local_158; int8 uStack_150; int8 local_148; int8 uStack_140; int8 local_138; int8 local_130; int8 local_128; int8 uStack_120; int8 local_118; int8 local_110; int8 local_108; int8 uStack_100; int8 local_f8; int8 local_f0; int8 uStack_e8; int8 local_e0; int8 local_d8; int8 uStack_d0; int8 local_c8; int8 uStack_c0; int8 local_b0; int8 uStack_a8; int8 local_a0; int8 uStack_98; int8 local_90; int8 local_88; int8 uStack_80; int8 local_78; int4 *local_48; int *local_40; int4 local_38; int4 local_24; memset(local_1d0,0xff,0x188); local_1d0[0] = (PFS_global_param)0x1; local_1b8 = 0; uStack_1b0 = 0; local_1a8 = 0; local_1a0 = 10; local_198 = 0; local_138 = 0; local_180 = 0; uStack_178 = 0; local_170 = 0; uStack_168 = 0; local_160 = 1000; local_158 = 0; uStack_150 = 0; local_148 = 0; uStack_140 = 0; local_130 = 10; local_108 = 0; uStack_100 = 0; local_128 = 0; uStack_120 = 0; local_118 = 0; local_110 = 1000; local_f8 = 0x32; local_f0 = 0; uStack_e8 = 0; local_e0 = 0x32; local_c8 = 0; uStack_c0 = 0; local_d8 = 0; uStack_d0 = 0; local_b0 = 0; uStack_a8 = 0; local_a0 = 0; uStack_98 = 0; local_90 = 10; local_88 = 0; uStack_80 = 0; local_78 = 0; stub_alloc_always_fails = 0; stub_alloc_fails_after_count = 1000; pre_initialize_performance_schema(); puVar1 = (int8 *)initialize_performance_schema(local_1d0); lVar2 = (*(code *)*puVar1)(1); local_48 = &local_24; local_40 = &DAT_0017b004; local_38 = 0; (**(code **)(lVar2 + 0x18))(&DAT_0017b008,&local_48,1); uVar3 = (**(code **)(lVar2 + 200))(local_24,0,0); (**(code **)(lVar2 + 0x130))(uVar3); stub_alloc_fails_after_count = 1; (**(code **)(lVar2 + 0xf8))(&DAT_0017fd2c,0,"host1",5); ok(global_host_container == 1,"oom (host)"); stub_alloc_fails_after_count = 2; (**(code **)(lVar2 + 0xf8))(&DAT_0017fd2c,0,"host2",5); ok(global_host_container == 2,"oom (host waits)"); stub_alloc_fails_after_count = 3; (**(code **)(lVar2 + 0xf8))(&DAT_0017fd2c,0,"host3",5); ok(global_host_container == 3,"oom (host stages)"); stub_alloc_fails_after_count = 4; (**(code **)(lVar2 + 0xf8))(&DAT_0017fd2c,0,"host4",5); ok(global_host_container == 4,"oom (host statements)"); stub_alloc_fails_after_count = 5; (**(code **)(lVar2 + 0xf8))(&DAT_0017fd2c,0,"host5",5); ok(global_host_container == 5,"oom (host transactions)"); stub_alloc_fails_after_count = 6; (**(code **)(lVar2 + 0xf8))(&DAT_0017fd2c,0,"host6",5); ok(global_host_container == 6,"oom (host memory)"); shutdown_performance_schema(); return; }
53,192
my_lengthsp_mb2
eloqsql/strings/ctype-ucs2.c
static size_t my_lengthsp_mb2(CHARSET_INFO *cs __attribute__((unused)), const char *ptr, size_t length) { const char *end= ptr + length; while (end > ptr + 1 && end[-1] == ' ' && end[-2] == '\0') end-= 2; return (size_t) (end - ptr); }
O0
c
my_lengthsp_mb2: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x10(%rbp), %rax addq -0x18(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rcx movq -0x10(%rbp), %rdx addq $0x1, %rdx xorl %eax, %eax cmpq %rdx, %rcx movb %al, -0x21(%rbp) jbe 0x5f9b5 movq -0x20(%rbp), %rax movsbl -0x1(%rax), %ecx xorl %eax, %eax cmpl $0x20, %ecx movb %al, -0x21(%rbp) jne 0x5f9b5 movq -0x20(%rbp), %rax movsbl -0x2(%rax), %eax cmpl $0x0, %eax sete %al movb %al, -0x21(%rbp) movb -0x21(%rbp), %al testb $0x1, %al jne 0x5f9be jmp 0x5f9cc movq -0x20(%rbp), %rax addq $-0x2, %rax movq %rax, -0x20(%rbp) jmp 0x5f97c movq -0x20(%rbp), %rax movq -0x10(%rbp), %rcx subq %rcx, %rax popq %rbp retq nopl (%rax)
my_lengthsp_mb2: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov rax, [rbp+var_10] add rax, [rbp+var_18] mov [rbp+var_20], rax loc_5F97C: mov rcx, [rbp+var_20] mov rdx, [rbp+var_10] add rdx, 1 xor eax, eax cmp rcx, rdx mov [rbp+var_21], al jbe short loc_5F9B5 mov rax, [rbp+var_20] movsx ecx, byte ptr [rax-1] xor eax, eax cmp ecx, 20h ; ' ' mov [rbp+var_21], al jnz short loc_5F9B5 mov rax, [rbp+var_20] movsx eax, byte ptr [rax-2] cmp eax, 0 setz al mov [rbp+var_21], al loc_5F9B5: mov al, [rbp+var_21] test al, 1 jnz short loc_5F9BE jmp short loc_5F9CC loc_5F9BE: mov rax, [rbp+var_20] add rax, 0FFFFFFFFFFFFFFFEh mov [rbp+var_20], rax jmp short loc_5F97C loc_5F9CC: mov rax, [rbp+var_20] mov rcx, [rbp+var_10] sub rax, rcx pop rbp retn
long long my_lengthsp_mb2(long long a1, long long a2, long long a3) { bool v4; // [rsp+1h] [rbp-21h] unsigned long long i; // [rsp+2h] [rbp-20h] for ( i = a3 + a2; ; i -= 2LL ) { v4 = 0; if ( i > a2 + 1 ) { v4 = 0; if ( *(_BYTE *)(i - 1) == 32 ) v4 = *(_BYTE *)(i - 2) == 0; } if ( !v4 ) break; } return i - a2; }
my_lengthsp_mb2: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV RAX,qword ptr [RBP + -0x10] ADD RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x20],RAX LAB_0015f97c: MOV RCX,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x10] ADD RDX,0x1 XOR EAX,EAX CMP RCX,RDX MOV byte ptr [RBP + -0x21],AL JBE 0x0015f9b5 MOV RAX,qword ptr [RBP + -0x20] MOVSX ECX,byte ptr [RAX + -0x1] XOR EAX,EAX CMP ECX,0x20 MOV byte ptr [RBP + -0x21],AL JNZ 0x0015f9b5 MOV RAX,qword ptr [RBP + -0x20] MOVSX EAX,byte ptr [RAX + -0x2] CMP EAX,0x0 SETZ AL MOV byte ptr [RBP + -0x21],AL LAB_0015f9b5: MOV AL,byte ptr [RBP + -0x21] TEST AL,0x1 JNZ 0x0015f9be JMP 0x0015f9cc LAB_0015f9be: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,-0x2 MOV qword ptr [RBP + -0x20],RAX JMP 0x0015f97c LAB_0015f9cc: MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x10] SUB RAX,RCX POP RBP RET
long my_lengthsp_mb2(int8 param_1,long param_2,long param_3) { bool bVar1; int8 local_28; local_28 = param_2 + param_3; while( true ) { bVar1 = false; if ((param_2 + 1U < local_28) && (bVar1 = false, *(char *)(local_28 - 1) == ' ')) { bVar1 = *(char *)(local_28 - 2) == '\0'; } if (!bVar1) break; local_28 = local_28 - 2; } return local_28 - param_2; }
53,193
mbedtls_mpi_is_prime_ext
msxemulator/build_O3/_deps/pico_sdk-src/lib/mbedtls/library/bignum.c
int mbedtls_mpi_is_prime_ext(const mbedtls_mpi *X, int rounds, int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) { int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; mbedtls_mpi XX; MPI_VALIDATE_RET(X != NULL); MPI_VALIDATE_RET(f_rng != NULL); XX.s = 1; XX.n = X->n; XX.p = X->p; if (mbedtls_mpi_cmp_int(&XX, 0) == 0 || mbedtls_mpi_cmp_int(&XX, 1) == 0) { return MBEDTLS_ERR_MPI_NOT_ACCEPTABLE; } if (mbedtls_mpi_cmp_int(&XX, 2) == 0) { return 0; } if ((ret = mpi_check_small_factors(&XX)) != 0) { if (ret == 1) { return 0; } return ret; } return mpi_miller_rabin(&XX, rounds, f_rng, p_rng); }
O3
c
mbedtls_mpi_is_prime_ext: pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x40, %rsp movq %rcx, %rbx movq %rdx, %r14 movl %esi, %ebp movl $0x1, %ecx leaq 0x10(%rsp), %rax movl %ecx, (%rax) movq 0x8(%rdi), %rdx movq %rdx, 0x8(%rax) movq 0x10(%rdi), %rdx movq %rdx, 0x10(%rax) leaq 0x8(%rsp), %r12 movq $0x0, (%r12) leaq 0x28(%rsp), %rsi movl %ecx, (%rsi) movq $0x1, 0x8(%rsi) movq %r12, 0x10(%rsi) movq %rax, %rdi callq 0x7f0b0 movl $0xfffffff2, %r15d # imm = 0xFFFFFFF2 testl %eax, %eax je 0x8173c movl $0x1, %eax movq %rax, 0x8(%rsp) leaq 0x28(%rsp), %rsi movl $0x1, (%rsi) movq %rax, 0x8(%rsi) movq %r12, 0x10(%rsi) leaq 0x10(%rsp), %rdi callq 0x7f0b0 testl %eax, %eax je 0x8173c movq $0x2, 0x8(%rsp) leaq 0x28(%rsp), %rsi movl $0x1, (%rsi) movq $0x1, 0x8(%rsi) movq %r12, 0x10(%rsi) leaq 0x10(%rsp), %rdi callq 0x7f0b0 xorl %r15d, %r15d testl %eax, %eax je 0x8173c leaq 0x10(%rsp), %rdi callq 0x8174c testl %eax, %eax je 0x81726 cmpl $0x1, %eax je 0x8173c jmp 0x81739 movslq %ebp, %rsi leaq 0x10(%rsp), %rdi movq %r14, %rdx movq %rbx, %rcx callq 0x817f6 movl %eax, %r15d movl %r15d, %eax addq $0x40, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
mbedtls_mpi_is_prime_ext: push rbp push r15 push r14 push r12 push rbx sub rsp, 40h mov rbx, rcx mov r14, rdx mov ebp, esi mov ecx, 1 lea rax, [rsp+68h+var_58] mov [rax], ecx mov rdx, [rdi+8] mov [rax+8], rdx mov rdx, [rdi+10h] mov [rax+10h], rdx lea r12, [rsp+68h+var_60] mov qword ptr [r12], 0 lea rsi, [rsp+68h+var_40] mov [rsi], ecx mov qword ptr [rsi+8], 1 mov [rsi+10h], r12 mov rdi, rax call mbedtls_mpi_cmp_mpi mov r15d, 0FFFFFFF2h test eax, eax jz loc_8173C mov eax, 1 mov [rsp+68h+var_60], rax lea rsi, [rsp+68h+var_40] mov dword ptr [rsi], 1 mov [rsi+8], rax mov [rsi+10h], r12 lea rdi, [rsp+68h+var_58] call mbedtls_mpi_cmp_mpi test eax, eax jz short loc_8173C mov [rsp+68h+var_60], 2 lea rsi, [rsp+68h+var_40] mov dword ptr [rsi], 1 mov qword ptr [rsi+8], 1 mov [rsi+10h], r12 lea rdi, [rsp+68h+var_58] call mbedtls_mpi_cmp_mpi xor r15d, r15d test eax, eax jz short loc_8173C lea rdi, [rsp+68h+var_58] call mpi_check_small_factors test eax, eax jz short loc_81726 cmp eax, 1 jz short loc_8173C jmp short loc_81739 loc_81726: movsxd rsi, ebp lea rdi, [rsp+68h+var_58] mov rdx, r14 mov rcx, rbx call mpi_miller_rabin loc_81739: mov r15d, eax loc_8173C: mov eax, r15d add rsp, 40h pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long mbedtls_mpi_is_prime_ext(long long a1, int a2, long long a3, long long a4) { unsigned int v6; // r15d unsigned int v7; // eax long long v9; // [rsp+8h] [rbp-60h] BYREF _QWORD v10[3]; // [rsp+10h] [rbp-58h] BYREF int v11; // [rsp+28h] [rbp-40h] BYREF long long v12; // [rsp+30h] [rbp-38h] long long *v13; // [rsp+38h] [rbp-30h] LODWORD(v10[0]) = 1; v10[1] = *(_QWORD *)(a1 + 8); v10[2] = *(_QWORD *)(a1 + 16); v9 = 0LL; v11 = 1; v12 = 1LL; v13 = &v9; v6 = -14; if ( (unsigned int)mbedtls_mpi_cmp_mpi(v10, (long long)&v11) ) { v9 = 1LL; v11 = 1; v12 = 1LL; v13 = &v9; if ( (unsigned int)mbedtls_mpi_cmp_mpi(v10, (long long)&v11) ) { v9 = 2LL; v11 = 1; v12 = 1LL; v13 = &v9; v6 = 0; if ( (unsigned int)mbedtls_mpi_cmp_mpi(v10, (long long)&v11) ) { v7 = mpi_check_small_factors(v10); if ( !v7 ) return (unsigned int)mpi_miller_rabin(v10, a2, a3, a4); if ( v7 != 1 ) return v7; } } } return v6; }
mbedtls_mpi_is_prime_ext: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x40 MOV RBX,RCX MOV R14,RDX MOV EBP,ESI MOV ECX,0x1 LEA RAX,[RSP + 0x10] MOV dword ptr [RAX],ECX MOV RDX,qword ptr [RDI + 0x8] MOV qword ptr [RAX + 0x8],RDX MOV RDX,qword ptr [RDI + 0x10] MOV qword ptr [RAX + 0x10],RDX LEA R12,[RSP + 0x8] MOV qword ptr [R12],0x0 LEA RSI,[RSP + 0x28] MOV dword ptr [RSI],ECX MOV qword ptr [RSI + 0x8],0x1 MOV qword ptr [RSI + 0x10],R12 MOV RDI,RAX CALL 0x0017f0b0 MOV R15D,0xfffffff2 TEST EAX,EAX JZ 0x0018173c MOV EAX,0x1 MOV qword ptr [RSP + 0x8],RAX LEA RSI,[RSP + 0x28] MOV dword ptr [RSI],0x1 MOV qword ptr [RSI + 0x8],RAX MOV qword ptr [RSI + 0x10],R12 LEA RDI,[RSP + 0x10] CALL 0x0017f0b0 TEST EAX,EAX JZ 0x0018173c MOV qword ptr [RSP + 0x8],0x2 LEA RSI,[RSP + 0x28] MOV dword ptr [RSI],0x1 MOV qword ptr [RSI + 0x8],0x1 MOV qword ptr [RSI + 0x10],R12 LEA RDI,[RSP + 0x10] CALL 0x0017f0b0 XOR R15D,R15D TEST EAX,EAX JZ 0x0018173c LEA RDI,[RSP + 0x10] CALL 0x0018174c TEST EAX,EAX JZ 0x00181726 CMP EAX,0x1 JZ 0x0018173c JMP 0x00181739 LAB_00181726: MOVSXD RSI,EBP LEA RDI,[RSP + 0x10] MOV RDX,R14 MOV RCX,RBX CALL 0x001817f6 LAB_00181739: MOV R15D,EAX LAB_0018173c: MOV EAX,R15D ADD RSP,0x40 POP RBX POP R12 POP R14 POP R15 POP RBP RET
int mbedtls_mpi_is_prime_ext(long param_1,int param_2,int8 param_3,int8 param_4) { int iVar1; int iVar2; int8 local_60; int4 local_58 [2]; int8 local_50; int8 local_48; int4 local_40; int8 local_38; int8 *local_30; local_58[0] = 1; local_50 = *(int8 *)(param_1 + 8); local_48 = *(int8 *)(param_1 + 0x10); local_60 = 0; local_40 = 1; local_38 = 1; local_30 = &local_60; iVar1 = mbedtls_mpi_cmp_mpi(local_58); iVar2 = -0xe; if (iVar1 != 0) { local_60 = 1; local_40 = 1; local_38 = 1; local_30 = &local_60; iVar1 = mbedtls_mpi_cmp_mpi(local_58); if (iVar1 != 0) { local_60 = 2; local_40 = 1; local_38 = 1; local_30 = &local_60; iVar1 = mbedtls_mpi_cmp_mpi(local_58); iVar2 = 0; if (iVar1 != 0) { iVar2 = mpi_check_small_factors(local_58); if (iVar2 == 0) { iVar2 = mpi_miller_rabin(local_58,(long)param_2,param_3,param_4); } else if (iVar2 == 1) { return 0; } } } } return iVar2; }
53,194
minja::Value::operator-() const
monkey531[P]llama/common/minja.hpp
Value operator-() const { if (is_number_integer()) return -get<int64_t>(); else return -get<double>(); }
O1
cpp
minja::Value::operator-() const: pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx movb 0x40(%rsi), %al addb $-0x5, %al leaq 0x40(%rdi), %r14 movq %rsi, %rdi cmpb $0x1, %al ja 0x8b1b6 callq 0x8b378 negq %rax xorps %xmm0, %xmm0 movups %xmm0, (%rbx) movups %xmm0, 0x10(%rbx) movups %xmm0, 0x20(%rbx) movups %xmm0, 0x30(%rbx) movups %xmm0, 0x40(%rbx) movq %r14, %rdi movq %rax, %rsi callq 0x64baa jmp 0x8b1e0 callq 0x8b4aa xorps 0x69c0e(%rip), %xmm0 # 0xf4dd0 xorps %xmm1, %xmm1 movups %xmm1, (%rbx) movups %xmm1, 0x10(%rbx) movups %xmm1, 0x20(%rbx) movups %xmm1, 0x30(%rbx) movups %xmm1, 0x40(%rbx) movq %r14, %rdi callq 0x6416a movq %r14, %rdi movl $0x1, %esi callq 0x5cc1e movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r14 retq
_ZNK5minja5ValuengEv: push r14 push rbx push rax mov rbx, rdi mov al, [rsi+40h] add al, 0FBh lea r14, [rdi+40h] mov rdi, rsi cmp al, 1 ja short loc_8B1B6 call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void) neg rax xorps xmm0, xmm0 movups xmmword ptr [rbx], xmm0 movups xmmword ptr [rbx+10h], xmm0 movups xmmword ptr [rbx+20h], xmm0 movups xmmword ptr [rbx+30h], xmm0 movups xmmword ptr [rbx+40h], xmm0 mov rdi, r14 mov rsi, rax call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE5EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_16number_integer_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_integer_t) jmp short loc_8B1E0 loc_8B1B6: call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) xorps xmm0, cs:xmmword_F4DD0 xorps xmm1, xmm1 movups xmmword ptr [rbx], xmm1 movups xmmword ptr [rbx+10h], xmm1 movups xmmword ptr [rbx+20h], xmm1 movups xmmword ptr [rbx+30h], xmm1 movups xmmword ptr [rbx+40h], xmm1 mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE7EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_14number_float_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_float_t) loc_8B1E0: mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rax, rbx add rsp, 8 pop rbx pop r14 retn
_OWORD * minja::Value::operator-(_OWORD *a1, long long a2) { unsigned __int8 *v2; // r14 long long v3; // rax double v4; // xmm0_8 v2 = (unsigned __int8 *)(a1 + 4); if ( (unsigned __int8)(*(_BYTE *)(a2 + 64) - 5) > 1u ) { v4 = minja::Value::get<double>(a2); *a1 = 0LL; a1[1] = 0LL; a1[2] = 0LL; a1[3] = 0LL; a1[4] = 0LL; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( v2, -v4); } else { v3 = minja::Value::get<long>(a2); *a1 = 0LL; a1[1] = 0LL; a1[2] = 0LL; a1[3] = 0LL; a1[4] = 0LL; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( v2, -v3); } nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v2); return a1; }
operator-: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI MOV AL,byte ptr [RSI + 0x40] ADD AL,0xfb LEA R14,[RDI + 0x40] MOV RDI,RSI CMP AL,0x1 JA 0x0018b1b6 CALL 0x0018b378 NEG RAX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX],XMM0 MOVUPS xmmword ptr [RBX + 0x10],XMM0 MOVUPS xmmword ptr [RBX + 0x20],XMM0 MOVUPS xmmword ptr [RBX + 0x30],XMM0 MOVUPS xmmword ptr [RBX + 0x40],XMM0 MOV RDI,R14 MOV RSI,RAX CALL 0x00164baa JMP 0x0018b1e0 LAB_0018b1b6: CALL 0x0018b4aa XORPS XMM0,xmmword ptr [0x001f4dd0] XORPS XMM1,XMM1 MOVUPS xmmword ptr [RBX],XMM1 MOVUPS xmmword ptr [RBX + 0x10],XMM1 MOVUPS xmmword ptr [RBX + 0x20],XMM1 MOVUPS xmmword ptr [RBX + 0x30],XMM1 MOVUPS xmmword ptr [RBX + 0x40],XMM1 MOV RDI,R14 CALL 0x0016416a LAB_0018b1e0: MOV RDI,R14 MOV ESI,0x1 CALL 0x0015cc1e MOV RAX,RBX ADD RSP,0x8 POP RBX POP R14 RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* minja::Value::TEMPNAMEPLACEHOLDERVALUE() const */ Value * __thiscall minja::Value::operator-(Value *this) { Value *pVVar1; double dVar2; long lVar3; Value *in_RSI; uint uVar4; pVVar1 = this + 0x40; if ((byte)((char)in_RSI[0x40] - 5U) < 2) { lVar3 = get<long>(in_RSI); *(int8 *)this = 0; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x40) = 0; *(int8 *)(this + 0x48) = 0; nlohmann::json_abi_v3_11_3::detail:: external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>:: construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (pVVar1,-lVar3); } else { dVar2 = get<double>(in_RSI); uVar4 = SUB84(dVar2,0) ^ _DAT_001f4dd0; *(int8 *)this = 0; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x40) = 0; *(int8 *)(this + 0x48) = 0; nlohmann::json_abi_v3_11_3::detail:: external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>:: construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (uVar4,pVVar1); } nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(pVVar1,0)); return this; }
53,195
unpack_dirname
eloqsql/mysys/mf_pack.c
size_t unpack_dirname(char * to, const char *from) { size_t length, h_length; char buff[FN_REFLEN+1+4],*suffix,*tilde_expansion; DBUG_ENTER("unpack_dirname"); length= normalize_dirname(buff, from); if (buff[0] == FN_HOMELIB) { suffix=buff+1; tilde_expansion=expand_tilde(&suffix); if (tilde_expansion) { length-= (size_t) (suffix-buff)-1; if (length+(h_length= strlen(tilde_expansion)) <= FN_REFLEN) { if ((h_length > 0) && (tilde_expansion[h_length-1] == FN_LIBCHAR)) h_length--; if (buff+h_length < suffix) bmove(buff+h_length,suffix,length); else bmove_upp((uchar*) buff+h_length+length, (uchar*) suffix+length, length); bmove(buff,tilde_expansion,h_length); } } } #ifdef USE_SYMDIR if (my_use_symdir) symdirget(buff); #endif DBUG_RETURN(system_filename(to,buff)); /* Fix for open */ }
O0
c
unpack_dirname: pushq %rbp movq %rsp, %rbp subq $0x250, %rsp # imm = 0x250 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x218(%rbp) movq %rsi, -0x220(%rbp) leaq -0x210(%rbp), %rdi movq -0x220(%rbp), %rsi callq 0x7d430 movq %rax, -0x228(%rbp) movsbl -0x210(%rbp), %eax cmpl $0x7e, %eax jne 0x7d6e1 leaq -0x210(%rbp), %rax addq $0x1, %rax movq %rax, -0x238(%rbp) leaq -0x238(%rbp), %rdi callq 0x7d730 movq %rax, -0x240(%rbp) cmpq $0x0, -0x240(%rbp) je 0x7d6df movq -0x238(%rbp), %rcx leaq -0x210(%rbp), %rax subq %rax, %rcx subq $0x1, %rcx movq -0x228(%rbp), %rax subq %rcx, %rax movq %rax, -0x228(%rbp) movq -0x228(%rbp), %rax movq %rax, -0x248(%rbp) movq -0x240(%rbp), %rdi callq 0x29150 movq %rax, %rcx movq -0x248(%rbp), %rax movq %rcx, -0x230(%rbp) addq %rcx, %rax cmpq $0x200, %rax # imm = 0x200 ja 0x7d6dd cmpq $0x0, -0x230(%rbp) jbe 0x7d65a movq -0x240(%rbp), %rax movq -0x230(%rbp), %rcx subq $0x1, %rcx movsbl (%rax,%rcx), %eax cmpl $0x2f, %eax jne 0x7d65a movq -0x230(%rbp), %rax addq $-0x1, %rax movq %rax, -0x230(%rbp) leaq -0x210(%rbp), %rax addq -0x230(%rbp), %rax cmpq -0x238(%rbp), %rax jae 0x7d694 leaq -0x210(%rbp), %rdi addq -0x230(%rbp), %rdi movq -0x238(%rbp), %rsi movq -0x228(%rbp), %rdx callq 0x296b0 jmp 0x7d6c3 leaq -0x210(%rbp), %rdi addq -0x230(%rbp), %rdi addq -0x228(%rbp), %rdi movq -0x238(%rbp), %rsi addq -0x228(%rbp), %rsi movq -0x228(%rbp), %rdx callq 0x9e440 leaq -0x210(%rbp), %rdi movq -0x240(%rbp), %rsi movq -0x230(%rbp), %rdx callq 0x296b0 jmp 0x7d6df jmp 0x7d6e1 jmp 0x7d6e3 movq -0x218(%rbp), %rdi leaq -0x210(%rbp), %rsi callq 0x7d7f0 movq %rax, -0x250(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x7d71f movq -0x250(%rbp), %rax addq $0x250, %rsp # imm = 0x250 popq %rbp retq callq 0x29420 nopw %cs:(%rax,%rax)
unpack_dirname: push rbp mov rbp, rsp sub rsp, 250h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_218], rdi mov [rbp+var_220], rsi lea rdi, [rbp+var_210] mov rsi, [rbp+var_220] call normalize_dirname mov [rbp+var_228], rax movsx eax, [rbp+var_210] cmp eax, 7Eh ; '~' jnz loc_7D6E1 lea rax, [rbp+var_210] add rax, 1 mov [rbp+var_238], rax lea rdi, [rbp+var_238] call expand_tilde mov [rbp+var_240], rax cmp [rbp+var_240], 0 jz loc_7D6DF mov rcx, [rbp+var_238] lea rax, [rbp+var_210] sub rcx, rax sub rcx, 1 mov rax, [rbp+var_228] sub rax, rcx mov [rbp+var_228], rax mov rax, [rbp+var_228] mov [rbp+var_248], rax mov rdi, [rbp+var_240] call _strlen mov rcx, rax mov rax, [rbp+var_248] mov [rbp+var_230], rcx add rax, rcx cmp rax, 200h ja loc_7D6DD cmp [rbp+var_230], 0 jbe short loc_7D65A mov rax, [rbp+var_240] mov rcx, [rbp+var_230] sub rcx, 1 movsx eax, byte ptr [rax+rcx] cmp eax, 2Fh ; '/' jnz short loc_7D65A mov rax, [rbp+var_230] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_230], rax loc_7D65A: lea rax, [rbp+var_210] add rax, [rbp+var_230] cmp rax, [rbp+var_238] jnb short loc_7D694 lea rdi, [rbp+var_210] add rdi, [rbp+var_230] mov rsi, [rbp+var_238] mov rdx, [rbp+var_228] call _memmove jmp short loc_7D6C3 loc_7D694: lea rdi, [rbp+var_210] add rdi, [rbp+var_230] add rdi, [rbp+var_228] mov rsi, [rbp+var_238] add rsi, [rbp+var_228] mov rdx, [rbp+var_228] call bmove_upp loc_7D6C3: lea rdi, [rbp+var_210] mov rsi, [rbp+var_240] mov rdx, [rbp+var_230] call _memmove loc_7D6DD: jmp short $+2 loc_7D6DF: jmp short $+2 loc_7D6E1: jmp short $+2 loc_7D6E3: mov rdi, [rbp+var_218] lea rsi, [rbp+var_210] call system_filename mov [rbp+var_250], rax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_7D71F mov rax, [rbp+var_250] add rsp, 250h pop rbp retn loc_7D71F: call ___stack_chk_fail
long long unpack_dirname(long long a1, _BYTE *a2) { long long v3; // [rsp+8h] [rbp-248h] long long v4; // [rsp+10h] [rbp-240h] _BYTE *v5; // [rsp+18h] [rbp-238h] BYREF long long v6; // [rsp+20h] [rbp-230h] long long v7; // [rsp+28h] [rbp-228h] _BYTE *v8; // [rsp+30h] [rbp-220h] long long v9; // [rsp+38h] [rbp-218h] char v10; // [rsp+40h] [rbp-210h] BYREF _BYTE v11[527]; // [rsp+41h] [rbp-20Fh] BYREF *(_QWORD *)&v11[519] = __readfsqword(0x28u); v9 = a1; v8 = a2; v7 = normalize_dirname((long long)&v10, a2); if ( v10 == 126 ) { v5 = v11; v4 = expand_tilde(&v5); if ( v4 ) { v7 -= v5 - &v10 - 1; v3 = v7; v6 = strlen(v4); if ( (unsigned long long)(v6 + v3) <= 0x200 ) { if ( v6 && *(_BYTE *)(v4 + v6 - 1) == 47 ) --v6; if ( &v11[v6 - 1] >= v5 ) bmove_upp(&v11[v6 - 1 + v7], &v5[v7], v7); else memmove(&v11[v6 - 1], v5, v7); memmove(&v10, v4, v6); } } } return system_filename(v9, &v10); }
unpack_dirname: PUSH RBP MOV RBP,RSP SUB RSP,0x250 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x218],RDI MOV qword ptr [RBP + -0x220],RSI LEA RDI,[RBP + -0x210] MOV RSI,qword ptr [RBP + -0x220] CALL 0x0017d430 MOV qword ptr [RBP + -0x228],RAX MOVSX EAX,byte ptr [RBP + -0x210] CMP EAX,0x7e JNZ 0x0017d6e1 LEA RAX,[RBP + -0x210] ADD RAX,0x1 MOV qword ptr [RBP + -0x238],RAX LEA RDI,[RBP + -0x238] CALL 0x0017d730 MOV qword ptr [RBP + -0x240],RAX CMP qword ptr [RBP + -0x240],0x0 JZ 0x0017d6df MOV RCX,qword ptr [RBP + -0x238] LEA RAX,[RBP + -0x210] SUB RCX,RAX SUB RCX,0x1 MOV RAX,qword ptr [RBP + -0x228] SUB RAX,RCX MOV qword ptr [RBP + -0x228],RAX MOV RAX,qword ptr [RBP + -0x228] MOV qword ptr [RBP + -0x248],RAX MOV RDI,qword ptr [RBP + -0x240] CALL 0x00129150 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x248] MOV qword ptr [RBP + -0x230],RCX ADD RAX,RCX CMP RAX,0x200 JA 0x0017d6dd CMP qword ptr [RBP + -0x230],0x0 JBE 0x0017d65a MOV RAX,qword ptr [RBP + -0x240] MOV RCX,qword ptr [RBP + -0x230] SUB RCX,0x1 MOVSX EAX,byte ptr [RAX + RCX*0x1] CMP EAX,0x2f JNZ 0x0017d65a MOV RAX,qword ptr [RBP + -0x230] ADD RAX,-0x1 MOV qword ptr [RBP + -0x230],RAX LAB_0017d65a: LEA RAX,[RBP + -0x210] ADD RAX,qword ptr [RBP + -0x230] CMP RAX,qword ptr [RBP + -0x238] JNC 0x0017d694 LEA RDI,[RBP + -0x210] ADD RDI,qword ptr [RBP + -0x230] MOV RSI,qword ptr [RBP + -0x238] MOV RDX,qword ptr [RBP + -0x228] CALL 0x001296b0 JMP 0x0017d6c3 LAB_0017d694: LEA RDI,[RBP + -0x210] ADD RDI,qword ptr [RBP + -0x230] ADD RDI,qword ptr [RBP + -0x228] MOV RSI,qword ptr [RBP + -0x238] ADD RSI,qword ptr [RBP + -0x228] MOV RDX,qword ptr [RBP + -0x228] CALL 0x0019e440 LAB_0017d6c3: LEA RDI,[RBP + -0x210] MOV RSI,qword ptr [RBP + -0x240] MOV RDX,qword ptr [RBP + -0x230] CALL 0x001296b0 LAB_0017d6dd: JMP 0x0017d6df LAB_0017d6df: JMP 0x0017d6e1 LAB_0017d6e1: JMP 0x0017d6e3 LAB_0017d6e3: MOV RDI,qword ptr [RBP + -0x218] LEA RSI,[RBP + -0x210] CALL 0x0017d7f0 MOV qword ptr [RBP + -0x250],RAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x0017d71f MOV RAX,qword ptr [RBP + -0x250] ADD RSP,0x250 POP RBP RET LAB_0017d71f: CALL 0x00129420
int8 unpack_dirname(int8 param_1,int8 param_2) { char *__s; size_t sVar1; int8 uVar2; long in_FS_OFFSET; char *local_240; size_t local_238; size_t local_230; int8 local_228; int8 local_220; char local_218 [520]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_228 = param_2; local_220 = param_1; local_230 = normalize_dirname(local_218,param_2); if (local_218[0] == '~') { local_240 = local_218 + 1; __s = (char *)expand_tilde(&local_240); if (__s != (char *)0x0) { sVar1 = local_230 - (long)(local_240 + (-1 - (long)local_218)); local_230 = sVar1; local_238 = strlen(__s); if (sVar1 + local_238 < 0x201) { if ((local_238 != 0) && (__s[local_238 - 1] == '/')) { local_238 = local_238 - 1; } if (local_218 + local_238 < local_240) { memmove(local_218 + local_238,local_240,local_230); } else { bmove_upp(local_218 + local_230 + local_238,local_240 + local_230,local_230); } memmove(local_218,__s,local_238); } } } uVar2 = system_filename(local_220,local_218); if (*(long *)(in_FS_OFFSET + 0x28) != local_10) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return uVar2; }
53,196
nlohmann::json_abi_v3_11_3::detail::iter_impl<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>>::operator->() const
llama.cpp/common/./json.hpp
pointer operator->() const { JSON_ASSERT(m_object != nullptr); switch (m_object->m_data.m_type) { case value_t::object: { JSON_ASSERT(m_it.object_iterator != m_object->m_data.m_value.object->end()); return &(m_it.object_iterator->second); } case value_t::array: { JSON_ASSERT(m_it.array_iterator != m_object->m_data.m_value.array->end()); return &*m_it.array_iterator; } case value_t::null: 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: { if (JSON_HEDLEY_LIKELY(m_it.primitive_iterator.is_begin())) { return m_object; } JSON_THROW(invalid_iterator::create(214, "cannot get value", m_object)); } } }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::iter_impl<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>>::operator->() const: pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x28, %rsp movq %rdi, %r14 movq (%rdi), %rax movzbl (%rax), %ecx cmpl $0x2, %ecx je 0x2b887 cmpl $0x1, %ecx jne 0x2b88d movq 0x8(%r14), %rax addq $0x40, %rax jmp 0x2b894 movq 0x10(%r14), %rax jmp 0x2b894 cmpq $0x0, 0x18(%r14) jne 0x2b89f addq $0x28, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq movl $0x20, %edi callq 0x1d520 movq %rax, %rbx leaq 0x18(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0x9f3e8(%rip), %rsi # 0xcaca4 leaq 0x9f3f1(%rip), %rdx # 0xcacb4 leaq 0x8(%rsp), %rdi callq 0x237c2 movq (%r14), %rcx movb $0x1, %bpl leaq 0x8(%rsp), %rdx movq %rbx, %rdi movl $0xd6, %esi callq 0x2c684 xorl %ebp, %ebp leaq 0xdd592(%rip), %rsi # 0x108e80 leaq -0x25d7(%rip), %rdx # 0x2931e movq %rbx, %rdi callq 0x1d890 movq %rax, %r14 movq 0x8(%rsp), %rdi cmpq %r15, %rdi je 0x2b917 movq 0x18(%rsp), %rsi incq %rsi callq 0x1d160 testb %bpl, %bpl jne 0x2b921 jmp 0x2b929 movq %rax, %r14 movq %rbx, %rdi callq 0x1dc90 movq %r14, %rdi callq 0x1d8e0 nop
_ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEptEv: push rbp; void * push r15; int push r14; __int64 push rbx; int sub rsp, 28h mov r14, rdi mov rax, [rdi] movzx ecx, byte ptr [rax] cmp ecx, 2 jz short loc_2B887 cmp ecx, 1 jnz short loc_2B88D mov rax, [r14+8] add rax, 40h ; '@' jmp short loc_2B894 loc_2B887: mov rax, [r14+10h] jmp short loc_2B894 loc_2B88D: cmp qword ptr [r14+18h], 0 jnz short loc_2B89F loc_2B894: add rsp, 28h pop rbx pop r14 pop r15 pop rbp retn loc_2B89F: mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rbx, rax lea r15, [rsp+48h+var_30] mov [r15-10h], r15 lea rsi, aCannotGetValue; "cannot get value" lea rdx, aCannotGetValue+10h; "" lea rdi, [rsp+48h+var_40] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) mov rcx, [r14] mov bpl, 1 lea rdx, [rsp+48h+var_40] mov rdi, rbx; this mov esi, 0D6h; int call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax mov rdi, [rsp+48h+var_40]; void * cmp rdi, r15 jz short loc_2B917 mov rsi, [rsp+48h+var_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_2B917: test bpl, bpl jnz short loc_2B921 jmp short loc_2B929 mov r14, rax loc_2B921: mov rdi, rbx; void * call ___cxa_free_exception loc_2B929: mov rdi, r14 call __Unwind_Resume
operator->: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x28 MOV R14,RDI MOV RAX,qword ptr [RDI] MOVZX ECX,byte ptr [RAX] CMP ECX,0x2 JZ 0x0012b887 CMP ECX,0x1 JNZ 0x0012b88d MOV RAX,qword ptr [R14 + 0x8] ADD RAX,0x40 JMP 0x0012b894 LAB_0012b887: MOV RAX,qword ptr [R14 + 0x10] JMP 0x0012b894 LAB_0012b88d: CMP qword ptr [R14 + 0x18],0x0 JNZ 0x0012b89f LAB_0012b894: ADD RSP,0x28 POP RBX POP R14 POP R15 POP RBP RET LAB_0012b89f: MOV EDI,0x20 CALL 0x0011d520 MOV RBX,RAX LEA R15,[RSP + 0x18] MOV qword ptr [R15 + -0x10],R15 LAB_0012b8b5: LEA RSI,[0x1caca4] LEA RDX,[0x1cacb4] LEA RDI,[RSP + 0x8] CALL 0x001237c2 MOV RCX,qword ptr [R14] MOV BPL,0x1 LAB_0012b8d3: LEA RDX,[RSP + 0x8] MOV RDI,RBX MOV ESI,0xd6 CALL 0x0012c684 XOR EBP,EBP LEA RSI,[0x208e80] LEA RDX,[0x12931e] MOV RDI,RBX CALL 0x0011d890
/* nlohmann::json_abi_v3_11_3::detail::iter_impl<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> >::TEMPNAMEPLACEHOLDERVALUE() const */ char * __thiscall nlohmann::json_abi_v3_11_3::detail:: iter_impl<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>> ::operator->(iter_impl<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>> *this) { char *pcVar1; int8 uVar2; int1 *local_40 [2]; int1 local_30 [16]; pcVar1 = *(char **)this; if (*pcVar1 == '\x02') { pcVar1 = *(char **)(this + 0x10); } else if (*pcVar1 == '\x01') { pcVar1 = (char *)(*(long *)(this + 8) + 0x40); } else if (*(long *)(this + 0x18) != 0) { uVar2 = __cxa_allocate_exception(0x20); local_40[0] = local_30; /* try { // try from 0012b8b5 to 0012b8cc has its CatchHandler @ 0012b91e */ std::__cxx11::string::_M_construct<char_const*>(local_40,"cannot get value",""); /* try { // try from 0012b8d3 to 0012b8fc has its CatchHandler @ 0012b8fd */ _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar2,0xd6,local_40,*(int8 *)this); /* WARNING: Subroutine does not return */ __cxa_throw(uVar2,&invalid_iterator::typeinfo,exception::~exception); } return pcVar1; }
53,197
LefDefParser::defiBlockage::Destroy()
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiBlockage.cpp
void defiBlockage::Destroy() { if (layerName_) free(layerName_); if (componentName_) free(componentName_); layerName_ = 0; componentName_ = 0; if (rectsAllocated_) { free((char*)(xl_)); free((char*)(yl_)); free((char*)(xh_)); free((char*)(yh_)); rectsAllocated_ = 0; xl_ = 0; yl_ = 0; xh_ = 0; yh_ = 0; } clearPoly(); free((char*)(polygons_)); polygons_ = 0; clear(); }
O0
cpp
LefDefParser::defiBlockage::Destroy(): subq $0x18, %rsp movq %rdi, 0x10(%rsp) movq 0x10(%rsp), %rax movq %rax, 0x8(%rsp) cmpq $0x0, 0x8(%rax) je 0x4b758 movq 0x8(%rsp), %rax movq 0x8(%rax), %rdi callq 0x72a0 movq 0x8(%rsp), %rax cmpq $0x0, 0x20(%rax) je 0x4b772 movq 0x8(%rsp), %rax movq 0x20(%rax), %rdi callq 0x72a0 movq 0x8(%rsp), %rax movq $0x0, 0x8(%rax) movq $0x0, 0x20(%rax) cmpl $0x0, 0x54(%rax) je 0x4b7f1 movq 0x8(%rsp), %rax movq 0x60(%rax), %rdi callq 0x72a0 movq 0x8(%rsp), %rax movq 0x68(%rax), %rdi callq 0x72a0 movq 0x8(%rsp), %rax movq 0x70(%rax), %rdi callq 0x72a0 movq 0x8(%rsp), %rax movq 0x78(%rax), %rdi callq 0x72a0 movq 0x8(%rsp), %rax movl $0x0, 0x54(%rax) movq $0x0, 0x60(%rax) movq $0x0, 0x68(%rax) movq $0x0, 0x70(%rax) movq $0x0, 0x78(%rax) movq 0x8(%rsp), %rdi callq 0x4b830 movq 0x8(%rsp), %rax movq 0x88(%rax), %rdi callq 0x72a0 movq 0x8(%rsp), %rdi movq $0x0, 0x88(%rdi) callq 0x4b6a0 addq $0x18, %rsp retq nopw %cs:(%rax,%rax)
_ZN12LefDefParser12defiBlockage7DestroyEv: sub rsp, 18h mov [rsp+18h+var_8], rdi mov rax, [rsp+18h+var_8] mov [rsp+18h+var_10], rax cmp qword ptr [rax+8], 0 jz short loc_4B758 mov rax, [rsp+18h+var_10] mov rdi, [rax+8] call _free loc_4B758: mov rax, [rsp+18h+var_10] cmp qword ptr [rax+20h], 0 jz short loc_4B772 mov rax, [rsp+18h+var_10] mov rdi, [rax+20h] call _free loc_4B772: mov rax, [rsp+18h+var_10] mov qword ptr [rax+8], 0 mov qword ptr [rax+20h], 0 cmp dword ptr [rax+54h], 0 jz short loc_4B7F1 mov rax, [rsp+18h+var_10] mov rdi, [rax+60h] call _free mov rax, [rsp+18h+var_10] mov rdi, [rax+68h] call _free mov rax, [rsp+18h+var_10] mov rdi, [rax+70h] call _free mov rax, [rsp+18h+var_10] mov rdi, [rax+78h] call _free mov rax, [rsp+18h+var_10] mov dword ptr [rax+54h], 0 mov qword ptr [rax+60h], 0 mov qword ptr [rax+68h], 0 mov qword ptr [rax+70h], 0 mov qword ptr [rax+78h], 0 loc_4B7F1: mov rdi, [rsp+18h+var_10]; this call _ZN12LefDefParser12defiBlockage9clearPolyEv; LefDefParser::defiBlockage::clearPoly(void) mov rax, [rsp+18h+var_10] mov rdi, [rax+88h] call _free mov rdi, [rsp+18h+var_10]; this mov qword ptr [rdi+88h], 0 call _ZN12LefDefParser12defiBlockage5clearEv; LefDefParser::defiBlockage::clear(void) add rsp, 18h retn
LefDefParser::defiBlockage * LefDefParser::defiBlockage::Destroy(LefDefParser::defiBlockage *this) { if ( *((_QWORD *)this + 1) ) free(*((_QWORD *)this + 1)); if ( *((_QWORD *)this + 4) ) free(*((_QWORD *)this + 4)); *((_QWORD *)this + 1) = 0LL; *((_QWORD *)this + 4) = 0LL; if ( *((_DWORD *)this + 21) ) { free(*((_QWORD *)this + 12)); free(*((_QWORD *)this + 13)); free(*((_QWORD *)this + 14)); free(*((_QWORD *)this + 15)); *((_DWORD *)this + 21) = 0; *((_QWORD *)this + 12) = 0LL; *((_QWORD *)this + 13) = 0LL; *((_QWORD *)this + 14) = 0LL; *((_QWORD *)this + 15) = 0LL; } LefDefParser::defiBlockage::clearPoly(this); free(*((_QWORD *)this + 17)); *((_QWORD *)this + 17) = 0LL; return LefDefParser::defiBlockage::clear(this); }
Destroy: SUB RSP,0x18 MOV qword ptr [RSP + 0x10],RDI MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x8],RAX CMP qword ptr [RAX + 0x8],0x0 JZ 0x0014b758 MOV RAX,qword ptr [RSP + 0x8] MOV RDI,qword ptr [RAX + 0x8] CALL 0x001072a0 LAB_0014b758: MOV RAX,qword ptr [RSP + 0x8] CMP qword ptr [RAX + 0x20],0x0 JZ 0x0014b772 MOV RAX,qword ptr [RSP + 0x8] MOV RDI,qword ptr [RAX + 0x20] CALL 0x001072a0 LAB_0014b772: MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RAX + 0x8],0x0 MOV qword ptr [RAX + 0x20],0x0 CMP dword ptr [RAX + 0x54],0x0 JZ 0x0014b7f1 MOV RAX,qword ptr [RSP + 0x8] MOV RDI,qword ptr [RAX + 0x60] CALL 0x001072a0 MOV RAX,qword ptr [RSP + 0x8] MOV RDI,qword ptr [RAX + 0x68] CALL 0x001072a0 MOV RAX,qword ptr [RSP + 0x8] MOV RDI,qword ptr [RAX + 0x70] CALL 0x001072a0 MOV RAX,qword ptr [RSP + 0x8] MOV RDI,qword ptr [RAX + 0x78] CALL 0x001072a0 MOV RAX,qword ptr [RSP + 0x8] MOV dword ptr [RAX + 0x54],0x0 MOV qword ptr [RAX + 0x60],0x0 MOV qword ptr [RAX + 0x68],0x0 MOV qword ptr [RAX + 0x70],0x0 MOV qword ptr [RAX + 0x78],0x0 LAB_0014b7f1: MOV RDI,qword ptr [RSP + 0x8] CALL 0x0014b830 MOV RAX,qword ptr [RSP + 0x8] MOV RDI,qword ptr [RAX + 0x88] CALL 0x001072a0 MOV RDI,qword ptr [RSP + 0x8] MOV qword ptr [RDI + 0x88],0x0 CALL 0x0014b6a0 ADD RSP,0x18 RET
/* LefDefParser::defiBlockage::Destroy() */ void __thiscall LefDefParser::defiBlockage::Destroy(defiBlockage *this) { if (*(long *)(this + 8) != 0) { free(*(void **)(this + 8)); } if (*(long *)(this + 0x20) != 0) { free(*(void **)(this + 0x20)); } *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x20) = 0; if (*(int *)(this + 0x54) != 0) { free(*(void **)(this + 0x60)); free(*(void **)(this + 0x68)); free(*(void **)(this + 0x70)); free(*(void **)(this + 0x78)); *(int4 *)(this + 0x54) = 0; *(int8 *)(this + 0x60) = 0; *(int8 *)(this + 0x68) = 0; *(int8 *)(this + 0x70) = 0; *(int8 *)(this + 0x78) = 0; } clearPoly(this); free(*(void **)(this + 0x88)); *(int8 *)(this + 0x88) = 0; clear(this); return; }
53,198
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__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>>::token_type, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
hkr04[P]cpp-mcp/common/json.hpp
std::string exception_message(const token_type expected, const std::string& context) { std::string error_msg = "syntax error "; if (!context.empty()) { error_msg += concat("while parsing ", context, ' '); } error_msg += "- "; if (last_token == token_type::parse_error) { error_msg += concat(m_lexer.get_error_message(), "; last read: '", m_lexer.get_token_string(), '\''); } else { error_msg += concat("unexpected ", lexer_t::token_type_name(last_token)); } if (expected != token_type::uninitialized) { error_msg += concat("; expected ", lexer_t::token_type_name(expected)); } return error_msg; }
O1
cpp
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__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>>::token_type, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movq %rcx, %r15 movl %edx, %ebp movq %rsi, %r14 movq %rdi, %rbx leaq 0x10(%rdi), %r12 movq %r12, (%rdi) leaq 0xbad7(%rip), %rsi # 0x45bbc leaq 0xbadd(%rip), %rdx # 0x45bc9 callq 0xba4e movq 0x8(%r15), %rsi testq %rsi, %rsi je 0x3a178 leaq 0x18(%rsp), %r13 movq %r13, -0x10(%r13) movq $0x0, -0x8(%r13) movb $0x0, (%r13) addq $0xf, %rsi leaq 0x8(%rsp), %rdi callq 0x8820 leaq 0xbaa5(%rip), %rsi # 0x45bca leaq 0x8(%rsp), %rdi callq 0x8a20 movq (%r15), %rsi movq 0x8(%r15), %rdx leaq 0x8(%rsp), %rdi callq 0x8150 leaq 0x8(%rsp), %rdi movl $0x20, %esi callq 0x84b0 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx movq %rbx, %rdi callq 0x8150 movq 0x8(%rsp), %rdi cmpq %r13, %rdi je 0x3a178 movq 0x18(%rsp), %rsi incq %rsi callq 0x8580 leaq 0x8038(%rip), %rsi # 0x421b7 movq %rbx, %rdi callq 0x8a20 movl 0x20(%r14), %edi cmpl $0xe, %edi jne 0x3a21b movq 0x98(%r14), %rax addq $0x28, %r14 movq %rax, 0x30(%rsp) leaq 0x38(%rsp), %rdi movq %r14, %rsi callq 0x39e06 leaq 0x2f(%rsp), %r8 movb $0x27, (%r8) leaq 0xba18(%rip), %rdx # 0x45bd9 leaq 0x8(%rsp), %rdi leaq 0x30(%rsp), %rsi leaq 0x38(%rsp), %rcx callq 0x3dffa movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx movq %rbx, %rdi callq 0x8150 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x3a202 movq 0x18(%rsp), %rsi incq %rsi callq 0x8580 leaq 0x48(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x3a295 movq 0x48(%rsp), %rsi jmp 0x3a28d callq 0x3e0bc movq %rax, %r14 leaq 0x18(%rsp), %r15 movq %r15, -0x10(%r15) movq $0x0, -0x8(%r15) movb $0x0, (%r15) movq %rax, %rdi callq 0x8230 leaq 0xb(%rax), %rsi leaq 0x8(%rsp), %rdi callq 0x8820 leaq 0xb993(%rip), %rsi # 0x45be8 leaq 0x8(%rsp), %rdi callq 0x8a20 leaq 0x8(%rsp), %rdi movq %r14, %rsi callq 0x8a20 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx movq %rbx, %rdi callq 0x8150 movq 0x8(%rsp), %rdi cmpq %r15, %rdi je 0x3a295 movq 0x18(%rsp), %rsi incq %rsi callq 0x8580 testl %ebp, %ebp je 0x3a315 movl %ebp, %edi callq 0x3e0bc movq %rax, %r14 leaq 0x18(%rsp), %r15 movq %r15, -0x10(%r15) movq $0x0, -0x8(%r15) movb $0x0, (%r15) movq %rax, %rdi callq 0x8230 leaq 0xb(%rax), %rsi leaq 0x8(%rsp), %rdi callq 0x8820 leaq 0xb91f(%rip), %rsi # 0x45bf4 leaq 0x8(%rsp), %rdi callq 0x8a20 leaq 0x8(%rsp), %rdi movq %r14, %rsi callq 0x8a20 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx movq %rbx, %rdi callq 0x8150 movq 0x8(%rsp), %rdi cmpq %r15, %rdi je 0x3a315 movq 0x18(%rsp), %rsi incq %rsi callq 0x8580 movq %rbx, %rax addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x3a36e movq %rax, %r14 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x3a34c movq 0x18(%rsp), %rsi incq %rsi callq 0x8580 jmp 0x3a34c movq %rax, %r14 leaq 0x48(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x3a397 movq 0x48(%rsp), %rsi jmp 0x3a38f jmp 0x3a367 jmp 0x3a36e jmp 0x3a37d movq %rax, %r14 jmp 0x3a397 jmp 0x3a36e movq %rax, %r14 movq 0x8(%rsp), %rdi cmpq %r15, %rdi jne 0x3a38a jmp 0x3a397 movq %rax, %r14 movq 0x8(%rsp), %rdi cmpq %r13, %rdi je 0x3a397 movq 0x18(%rsp), %rsi incq %rsi callq 0x8580 movq (%rbx), %rdi cmpq %r12, %rdi je 0x3a3ab movq (%r12), %rsi incq %rsi callq 0x8580 movq %r14, %rdi callq 0x8960 nop
_ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE17exception_messageENS1_10lexer_baseISF_E10token_typeERKSB_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 58h mov r15, rcx mov ebp, edx mov r14, rsi mov rbx, rdi lea r12, [rdi+10h] mov [rdi], r12 lea rsi, aSyntaxError; "syntax error " lea rdx, aSyntaxError+0Dh; "" 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 rsi, [r15+8] test rsi, rsi jz short loc_3A178 lea r13, [rsp+88h+var_70] mov [r13-10h], r13 mov qword ptr [r13-8], 0 mov byte ptr [r13+0], 0 add rsi, 0Fh lea rdi, [rsp+88h+var_80] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) lea rsi, aWhileParsing; "while parsing " lea rdi, [rsp+88h+var_80] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov rsi, [r15] mov rdx, [r15+8] lea rdi, [rsp+88h+var_80] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) lea rdi, [rsp+88h+var_80] mov esi, 20h ; ' ' call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov rsi, [rsp+88h+var_80] mov rdx, [rsp+88h+var_78] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rdi, [rsp+88h+var_80]; void * cmp rdi, r13 jz short loc_3A178 mov rsi, [rsp+88h+var_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3A178: lea rsi, asc_421B7; "- " mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov edi, [r14+20h] cmp edi, 0Eh jnz loc_3A21B mov rax, [r14+98h] add r14, 28h ; '(' mov [rsp+88h+var_58], rax lea rdi, [rsp+88h+var_50] mov rsi, r14 call _ZNK8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE16get_token_stringEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string(void) lea r8, [rsp+88h+var_59] mov byte ptr [r8], 27h ; ''' lea rdx, aLastRead; "; last read: '" lea rdi, [rsp+88h+var_80] lea rsi, [rsp+88h+var_58] lea rcx, [rsp+88h+var_50] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJPKcRA15_S9_S8_cEEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const*,char const(&)[15],std::string,char>(char const*,char const(&)[15],std::string,char &&) mov rsi, [rsp+88h+var_80] mov rdx, [rsp+88h+var_78] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) lea rax, [rsp+88h+var_70] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_3A202 mov rsi, [rsp+88h+var_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3A202: lea rax, [rsp+88h+var_40] mov rdi, [rax-10h] cmp rdi, rax jz loc_3A295 mov rsi, [rsp+88h+var_40] jmp short loc_3A28D loc_3A21B: call _ZN8nlohmann16json_abi_v3_11_36detail10lexer_baseINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15token_type_nameENSG_10token_typeE; nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type_name(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type) mov r14, rax lea r15, [rsp+88h+var_70] mov [r15-10h], r15 mov qword ptr [r15-8], 0 mov byte ptr [r15], 0 mov rdi, rax call _strlen lea rsi, [rax+0Bh] lea rdi, [rsp+88h+var_80] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) lea rsi, aUnexpected; "unexpected " lea rdi, [rsp+88h+var_80] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) lea rdi, [rsp+88h+var_80] mov rsi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov rsi, [rsp+88h+var_80] mov rdx, [rsp+88h+var_78] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rdi, [rsp+88h+var_80]; void * cmp rdi, r15 jz short loc_3A295 mov rsi, [rsp+88h+var_70] loc_3A28D: inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3A295: test ebp, ebp jz short loc_3A315 mov edi, ebp call _ZN8nlohmann16json_abi_v3_11_36detail10lexer_baseINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15token_type_nameENSG_10token_typeE; nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type_name(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type) mov r14, rax lea r15, [rsp+88h+var_70] mov [r15-10h], r15 mov qword ptr [r15-8], 0 mov byte ptr [r15], 0 mov rdi, rax call _strlen lea rsi, [rax+0Bh] lea rdi, [rsp+88h+var_80] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) lea rsi, aExpected; "; expected " lea rdi, [rsp+88h+var_80] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) lea rdi, [rsp+88h+var_80] mov rsi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov rsi, [rsp+88h+var_80] mov rdx, [rsp+88h+var_78] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rdi, [rsp+88h+var_80]; void * cmp rdi, r15 jz short loc_3A315 mov rsi, [rsp+88h+var_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3A315: mov rax, rbx add rsp, 58h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_3A36E mov r14, rax lea rax, [rsp+arg_10] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_3A34C mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_3A34C mov r14, rax loc_3A34C: lea rax, [rsp+arg_40] mov rdi, [rax-10h] cmp rdi, rax jz short loc_3A397 mov rsi, [rsp+arg_40] jmp short loc_3A38F jmp short loc_3A367 jmp short loc_3A36E jmp short loc_3A37D loc_3A367: mov r14, rax jmp short loc_3A397 jmp short $+2 loc_3A36E: mov r14, rax mov rdi, [rsp+arg_0] cmp rdi, r15 jnz short loc_3A38A jmp short loc_3A397 loc_3A37D: mov r14, rax mov rdi, [rsp+arg_0]; void * cmp rdi, r13 jz short loc_3A397 loc_3A38A: mov rsi, [rsp+arg_10] loc_3A38F: inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3A397: mov rdi, [rbx]; void * cmp rdi, r12 jz short loc_3A3AB mov rsi, [r12] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3A3AB: mov rdi, r14 call __Unwind_Resume
_QWORD * nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::exception_message( _QWORD *a1, long long a2, unsigned int a3, _QWORD *a4) { long long v8; // rsi void *v9; // rdi long long v10; // rsi long long v11; // r14 long long v12; // rax long long v13; // r14 long long v14; // rax void *v16; // [rsp+8h] [rbp-80h] BYREF long long v17; // [rsp+10h] [rbp-78h] _QWORD v18[2]; // [rsp+18h] [rbp-70h] BYREF char v19; // [rsp+2Fh] [rbp-59h] BYREF long long v20; // [rsp+30h] [rbp-58h] BYREF _QWORD v21[2]; // [rsp+38h] [rbp-50h] BYREF long long v22; // [rsp+48h] [rbp-40h] BYREF *a1 = a1 + 2; std::string::_M_construct<char const*>(a1, "syntax error ", (long long)""); v8 = a4[1]; if ( v8 ) { v16 = v18; v17 = 0LL; LOBYTE(v18[0]) = 0; std::string::reserve(&v16, v8 + 15); std::string::append(&v16, "while parsing "); std::string::_M_append(&v16, *a4, a4[1]); std::string::push_back(&v16, 32LL); std::string::_M_append(a1, v16, v17); if ( v16 != v18 ) operator delete(v16, v18[0] + 1LL); } std::string::append(a1, "- "); if ( *(_DWORD *)(a2 + 32) == 14 ) { v20 = *(_QWORD *)(a2 + 152); nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string( (long long)v21, a2 + 40); v19 = 39; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const*,char const(&)[15],std::string,char>( &v16, &v20, "; last read: '", v21, &v19); std::string::_M_append(a1, v16, v17); if ( v16 != v18 ) operator delete(v16, v18[0] + 1LL); v9 = (void *)v21[0]; if ( (long long *)v21[0] != &v22 ) { v10 = v22; LABEL_11: operator delete(v9, v10 + 1); } } else { v11 = ((long long (*)(void))nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::token_type_name)(); v16 = v18; v17 = 0LL; LOBYTE(v18[0]) = 0; v12 = strlen(v11); std::string::reserve(&v16, v12 + 11); std::string::append(&v16, "unexpected "); std::string::append(&v16, v11); std::string::_M_append(a1, v16, v17); v9 = v16; if ( v16 != v18 ) { v10 = v18[0]; goto LABEL_11; } } if ( a3 ) { v13 = nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::token_type_name(a3); v16 = v18; v17 = 0LL; LOBYTE(v18[0]) = 0; v14 = strlen(v13); std::string::reserve(&v16, v14 + 11); std::string::append(&v16, "; expected "); std::string::append(&v16, v13); std::string::_M_append(a1, v16, v17); if ( v16 != v18 ) operator delete(v16, v18[0] + 1LL); } return a1; }
exception_message: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x58 MOV R15,RCX MOV EBP,EDX MOV R14,RSI MOV RBX,RDI LEA R12,[RDI + 0x10] MOV qword ptr [RDI],R12 LEA RSI,[0x145bbc] LEA RDX,[0x145bc9] CALL 0x0010ba4e MOV RSI,qword ptr [R15 + 0x8] TEST RSI,RSI JZ 0x0013a178 LEA R13,[RSP + 0x18] MOV qword ptr [R13 + -0x10],R13 MOV qword ptr [R13 + -0x8],0x0 MOV byte ptr [R13],0x0 ADD RSI,0xf LAB_0013a114: LEA RDI,[RSP + 0x8] CALL 0x00108820 LEA RSI,[0x145bca] LEA RDI,[RSP + 0x8] CALL 0x00108a20 MOV RSI,qword ptr [R15] MOV RDX,qword ptr [R15 + 0x8] LEA RDI,[RSP + 0x8] CALL 0x00108150 LEA RDI,[RSP + 0x8] MOV ESI,0x20 CALL 0x001084b0 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] LAB_0013a159: MOV RDI,RBX CALL 0x00108150 MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R13 JZ 0x0013a178 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x00108580 LAB_0013a178: LEA RSI,[0x1421b7] MOV RDI,RBX CALL 0x00108a20 MOV EDI,dword ptr [R14 + 0x20] CMP EDI,0xe JNZ 0x0013a21b MOV RAX,qword ptr [R14 + 0x98] ADD R14,0x28 MOV qword ptr [RSP + 0x30],RAX LAB_0013a1a4: LEA RDI,[RSP + 0x38] MOV RSI,R14 CALL 0x00139e06 LEA R8,[RSP + 0x2f] MOV byte ptr [R8],0x27 LAB_0013a1ba: LEA RDX,[0x145bd9] LEA RDI,[RSP + 0x8] LEA RSI,[RSP + 0x30] LEA RCX,[RSP + 0x38] CALL 0x0013dffa MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] LAB_0013a1df: MOV RDI,RBX CALL 0x00108150 LEA RAX,[RSP + 0x18] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0013a202 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x00108580 LAB_0013a202: LEA RAX,[RSP + 0x48] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0013a295 MOV RSI,qword ptr [RSP + 0x48] JMP 0x0013a28d LAB_0013a21b: CALL 0x0013e0bc MOV R14,RAX LEA R15,[RSP + 0x18] MOV qword ptr [R15 + -0x10],R15 MOV qword ptr [R15 + -0x8],0x0 MOV byte ptr [R15],0x0 MOV RDI,RAX CALL 0x00108230 LEA RSI,[RAX + 0xb] LAB_0013a244: LEA RDI,[RSP + 0x8] CALL 0x00108820 LEA RSI,[0x145be8] LEA RDI,[RSP + 0x8] CALL 0x00108a20 LEA RDI,[RSP + 0x8] MOV RSI,R14 CALL 0x00108a20 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] LAB_0013a276: MOV RDI,RBX CALL 0x00108150 MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R15 JZ 0x0013a295 MOV RSI,qword ptr [RSP + 0x18] LAB_0013a28d: INC RSI CALL 0x00108580 LAB_0013a295: TEST EBP,EBP JZ 0x0013a315 MOV EDI,EBP CALL 0x0013e0bc MOV R14,RAX LEA R15,[RSP + 0x18] MOV qword ptr [R15 + -0x10],R15 MOV qword ptr [R15 + -0x8],0x0 MOV byte ptr [R15],0x0 MOV RDI,RAX CALL 0x00108230 LEA RSI,[RAX + 0xb] LAB_0013a2c4: LEA RDI,[RSP + 0x8] CALL 0x00108820 LEA RSI,[0x145bf4] LEA RDI,[RSP + 0x8] CALL 0x00108a20 LEA RDI,[RSP + 0x8] MOV RSI,R14 CALL 0x00108a20 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] LAB_0013a2f6: MOV RDI,RBX CALL 0x00108150 LAB_0013a2fe: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R15 JZ 0x0013a315 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x00108580 LAB_0013a315: MOV RAX,RBX ADD RSP,0x58 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::string > > >::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::token_type, std::__cxx11::string const&) */ long * nlohmann::json_abi_v3_11_3::detail:: parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::exception_message(long *param_1,long param_2,int param_3,ulong *param_4) { char *pcVar1; long *local_80; int8 local_78; int1 local_70; int7 uStack_6f; int1 local_59; int8 local_58; long *local_50 [2]; long local_40 [2]; *param_1 = (long)(param_1 + 2); std::__cxx11::string::_M_construct<char_const*>(param_1,"syntax error ",""); if (param_4[1] != 0) { local_78 = 0; local_70 = 0; /* try { // try from 0013a114 to 0013a14e has its CatchHandler @ 0013a37d */ local_80 = (long *)&local_70; std::__cxx11::string::reserve((ulong)&local_80); std::__cxx11::string::append((char *)&local_80); std::__cxx11::string::_M_append((char *)&local_80,*param_4); std::__cxx11::string::push_back((char)&local_80); /* try { // try from 0013a159 to 0013a160 has its CatchHandler @ 0013a365 */ std::__cxx11::string::_M_append((char *)param_1,(ulong)local_80); if (local_80 != (long *)&local_70) { operator_delete(local_80,CONCAT71(uStack_6f,local_70) + 1); } } /* try { // try from 0013a178 to 0013a186 has its CatchHandler @ 0013a367 */ std::__cxx11::string::append((char *)param_1); if (*(int *)(param_2 + 0x20) == 0xe) { local_58 = *(int8 *)(param_2 + 0x98); /* try { // try from 0013a1a4 to 0013a1b0 has its CatchHandler @ 0013a361 */ lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::get_token_string(); local_59 = 0x27; /* try { // try from 0013a1ba to 0013a1d4 has its CatchHandler @ 0013a349 */ concat<std::__cxx11::string,char_const*,char_const(&)[15],std::__cxx11::string,char> ((char **)&local_80,(char *)&local_58,(string *)"; last read: \'",(char *)local_50); /* try { // try from 0013a1df to 0013a1e6 has its CatchHandler @ 0013a329 */ std::__cxx11::string::_M_append((char *)param_1,(ulong)local_80); if (local_80 != (long *)&local_70) { operator_delete(local_80,CONCAT71(uStack_6f,local_70) + 1); } if (local_50[0] == local_40) goto LAB_0013a295; } else { pcVar1 = (char *)lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::token_type_name(); local_78 = 0; local_70 = 0; local_80 = (long *)&local_70; strlen(pcVar1); /* try { // try from 0013a244 to 0013a26b has its CatchHandler @ 0013a36c */ std::__cxx11::string::reserve((ulong)&local_80); std::__cxx11::string::append((char *)&local_80); std::__cxx11::string::append((char *)&local_80); /* try { // try from 0013a276 to 0013a27d has its CatchHandler @ 0013a327 */ std::__cxx11::string::_M_append((char *)param_1,(ulong)local_80); if (local_80 == (long *)&local_70) goto LAB_0013a295; local_40[0] = CONCAT71(uStack_6f,local_70); local_50[0] = local_80; } operator_delete(local_50[0],local_40[0] + 1); LAB_0013a295: if (param_3 != 0) { pcVar1 = (char *)lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::token_type_name(param_3); local_78 = 0; local_70 = 0; local_80 = (long *)&local_70; strlen(pcVar1); /* try { // try from 0013a2c4 to 0013a2eb has its CatchHandler @ 0013a36e */ std::__cxx11::string::reserve((ulong)&local_80); std::__cxx11::string::append((char *)&local_80); std::__cxx11::string::append((char *)&local_80); /* try { // try from 0013a2f6 to 0013a2fd has its CatchHandler @ 0013a363 */ std::__cxx11::string::_M_append((char *)param_1,(ulong)local_80); if (local_80 != (long *)&local_70) { operator_delete(local_80,CONCAT71(uStack_6f,local_70) + 1); } } return param_1; }
53,199
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__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>>::token_type, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
hkr04[P]cpp-mcp/common/json.hpp
std::string exception_message(const token_type expected, const std::string& context) { std::string error_msg = "syntax error "; if (!context.empty()) { error_msg += concat("while parsing ", context, ' '); } error_msg += "- "; if (last_token == token_type::parse_error) { error_msg += concat(m_lexer.get_error_message(), "; last read: '", m_lexer.get_token_string(), '\''); } else { error_msg += concat("unexpected ", lexer_t::token_type_name(last_token)); } if (expected != token_type::uninitialized) { error_msg += concat("; expected ", lexer_t::token_type_name(expected)); } return error_msg; }
O2
cpp
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__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>>::token_type, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x58, %rsp movq %rcx, %r15 movl %edx, %ebp movq %rsi, %r14 movq %rdi, %rbx leaq 0xae30(%rip), %rsi # 0x3bb74 leaq 0x10(%rsp), %rdx callq 0x99ce cmpq $0x0, 0x8(%r15) je 0x30d88 leaq 0x38(%rsp), %rcx movb $0x20, (%rcx) leaq 0xae1e(%rip), %rsi # 0x3bb82 leaq 0x10(%rsp), %rdi movq %r15, %rdx callq 0x340d9 leaq 0x10(%rsp), %rsi movq %rbx, %rdi callq 0x8aa0 leaq 0x10(%rsp), %rdi callq 0x8b18 leaq 0x7448(%rip), %rsi # 0x381d7 movq %rbx, %rdi callq 0x8a60 movl 0x20(%r14), %edi cmpl $0xe, %edi jne 0x30dff movq 0x98(%r14), %rax addq $0x28, %r14 movq %rax, 0x30(%rsp) leaq 0x38(%rsp), %rdi movq %r14, %rsi callq 0x30b4a leaq 0xf(%rsp), %r8 movb $0x27, (%r8) leaq 0xadc4(%rip), %rdx # 0x3bb91 leaq 0x10(%rsp), %rdi leaq 0x30(%rsp), %rsi leaq 0x38(%rsp), %rcx callq 0x34149 leaq 0x10(%rsp), %rsi movq %rbx, %rdi callq 0x8aa0 leaq 0x10(%rsp), %rdi callq 0x8b18 leaq 0x38(%rsp), %rdi jmp 0x30e2f callq 0x34220 leaq 0x38(%rsp), %rdx movq %rax, (%rdx) leaq 0xad8d(%rip), %rsi # 0x3bba0 leaq 0x10(%rsp), %rdi callq 0x341c1 leaq 0x10(%rsp), %rsi movq %rbx, %rdi callq 0x8aa0 leaq 0x10(%rsp), %rdi callq 0x8b18 testl %ebp, %ebp je 0x30e6f movl %ebp, %edi callq 0x34220 leaq 0x38(%rsp), %rdx movq %rax, (%rdx) leaq 0xad5e(%rip), %rsi # 0x3bbac leaq 0x10(%rsp), %rdi callq 0x341c1 leaq 0x10(%rsp), %rsi movq %rbx, %rdi callq 0x8aa0 leaq 0x10(%rsp), %rdi callq 0x8b18 movq %rbx, %rax addq $0x58, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq movq %rax, %r14 leaq 0x10(%rsp), %rdi callq 0x8b18 jmp 0x30e91 jmp 0x30ea0 movq %rax, %r14 leaq 0x38(%rsp), %rdi jmp 0x30ea8 jmp 0x30eb1 jmp 0x30eb1 jmp 0x30ea0 jmp 0x30eb1 movq %rax, %r14 leaq 0x10(%rsp), %rdi callq 0x8b18 jmp 0x30eb4 jmp 0x30eb1 movq %rax, %r14 movq %rbx, %rdi callq 0x8b18 movq %r14, %rdi callq 0x89c0
_ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE17exception_messageENS1_10lexer_baseISF_E10token_typeERKSB_: push rbp push r15 push r14 push rbx sub rsp, 58h mov r15, rcx mov ebp, edx mov r14, rsi mov rbx, rdi lea rsi, aSyntaxError; "syntax error " lea rdx, [rsp+78h+var_68] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) cmp qword ptr [r15+8], 0 jz short loc_30D88 lea rcx, [rsp+78h+var_40] mov byte ptr [rcx], 20h ; ' ' lea rsi, aWhileParsing; "while parsing " lea rdi, [rsp+78h+var_68] mov rdx, r15 call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA15_KcRKS8_cEEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[15],std::string const&,char>(char const(&)[15],std::string const&,char &&) lea rsi, [rsp+78h+var_68] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&) lea rdi, [rsp+78h+var_68]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_30D88: lea rsi, asc_381D7; "- " mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov edi, [r14+20h] cmp edi, 0Eh jnz short loc_30DFF mov rax, [r14+98h] add r14, 28h ; '(' mov [rsp+78h+var_48], rax lea rdi, [rsp+78h+var_40] mov rsi, r14 call _ZNK8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE16get_token_stringEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string(void) lea r8, [rsp+78h+var_69] mov byte ptr [r8], 27h ; ''' lea rdx, aLastRead; "; last read: '" lea rdi, [rsp+78h+var_68] lea rsi, [rsp+78h+var_48] lea rcx, [rsp+78h+var_40] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJPKcRA15_S9_S8_cEEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const*,char const(&)[15],std::string,char>(char const*,char const(&)[15],std::string,char &&) lea rsi, [rsp+78h+var_68] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&) lea rdi, [rsp+78h+var_68]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+78h+var_40] jmp short loc_30E2F loc_30DFF: call _ZN8nlohmann16json_abi_v3_11_36detail10lexer_baseINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15token_type_nameENSG_10token_typeE; nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type_name(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type) lea rdx, [rsp+78h+var_40] mov [rdx], rax lea rsi, aUnexpected; "unexpected " lea rdi, [rsp+78h+var_68] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA12_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[12],char const*>(char const(&)[12],char const* &&) lea rsi, [rsp+78h+var_68] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&) lea rdi, [rsp+78h+var_68]; void * loc_30E2F: call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test ebp, ebp jz short loc_30E6F mov edi, ebp call _ZN8nlohmann16json_abi_v3_11_36detail10lexer_baseINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15token_type_nameENSG_10token_typeE; nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type_name(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type) lea rdx, [rsp+78h+var_40] mov [rdx], rax lea rsi, aExpected; "; expected " lea rdi, [rsp+78h+var_68] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA12_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[12],char const*>(char const(&)[12],char const* &&) lea rsi, [rsp+78h+var_68] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&) lea rdi, [rsp+78h+var_68]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_30E6F: mov rax, rbx add rsp, 58h pop rbx pop r14 pop r15 pop rbp retn mov r14, rax lea rdi, [rsp+arg_8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_30E91 jmp short loc_30EA0 mov r14, rax loc_30E91: lea rdi, [rsp+arg_30] jmp short loc_30EA8 jmp short loc_30EB1 jmp short loc_30EB1 jmp short loc_30EA0 jmp short loc_30EB1 loc_30EA0: mov r14, rax lea rdi, [rsp+arg_8]; void * loc_30EA8: call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_30EB4 jmp short $+2 loc_30EB1: mov r14, rax loc_30EB4: mov rdi, rbx; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, r14 call __Unwind_Resume
_QWORD * nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::exception_message( _QWORD *a1, long long a2, unsigned int a3, long long a4) { _BYTE *v7; // rdi char v9; // [rsp+Fh] [rbp-69h] BYREF _BYTE v10[32]; // [rsp+10h] [rbp-68h] BYREF long long v11; // [rsp+30h] [rbp-48h] BYREF _QWORD v12[8]; // [rsp+38h] [rbp-40h] BYREF std::string::basic_string<std::allocator<char>>(a1, (long long)"syntax error "); if ( *(_QWORD *)(a4 + 8) ) { LOBYTE(v12[0]) = 32; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[15],std::string const&,char>( v10, "while parsing ", a4, v12); std::string::append(a1); std::string::~string(v10); } std::string::append(a1, "- "); if ( *(_DWORD *)(a2 + 32) == 14 ) { v11 = *(_QWORD *)(a2 + 152); nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string( (long long)v12, a2 + 40); v9 = 39; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const*,char const(&)[15],std::string,char>( v10, &v11, "; last read: '", v12, &v9); std::string::append(a1); std::string::~string(v10); v7 = v12; } else { v12[0] = ((long long (*)(void))nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::token_type_name)(); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[12],char const*>(v10, "unexpected "); std::string::append(a1); v7 = v10; } std::string::~string(v7); if ( a3 ) { v12[0] = nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::token_type_name( a3, v10); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[12],char const*>(v10, "; expected "); std::string::append(a1); std::string::~string(v10); } return a1; }
exception_message: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x58 MOV R15,RCX MOV EBP,EDX MOV R14,RSI MOV RBX,RDI LEA RSI,[0x13bb74] LEA RDX,[RSP + 0x10] CALL 0x001099ce CMP qword ptr [R15 + 0x8],0x0 JZ 0x00130d88 LEA RCX,[RSP + 0x38] MOV byte ptr [RCX],0x20 LAB_00130d5d: LEA RSI,[0x13bb82] LEA RDI,[RSP + 0x10] MOV RDX,R15 CALL 0x001340d9 LAB_00130d71: LEA RSI,[RSP + 0x10] MOV RDI,RBX CALL 0x00108aa0 LEA RDI,[RSP + 0x10] CALL 0x00108b18 LAB_00130d88: LEA RSI,[0x1381d7] MOV RDI,RBX CALL 0x00108a60 MOV EDI,dword ptr [R14 + 0x20] CMP EDI,0xe JNZ 0x00130dff MOV RAX,qword ptr [R14 + 0x98] ADD R14,0x28 MOV qword ptr [RSP + 0x30],RAX LAB_00130db0: LEA RDI,[RSP + 0x38] MOV RSI,R14 CALL 0x00130b4a LEA R8,[RSP + 0xf] MOV byte ptr [R8],0x27 LAB_00130dc6: LEA RDX,[0x13bb91] LEA RDI,[RSP + 0x10] LEA RSI,[RSP + 0x30] LEA RCX,[RSP + 0x38] CALL 0x00134149 LAB_00130de1: LEA RSI,[RSP + 0x10] MOV RDI,RBX CALL 0x00108aa0 LEA RDI,[RSP + 0x10] CALL 0x00108b18 LEA RDI,[RSP + 0x38] JMP 0x00130e2f LAB_00130dff: CALL 0x00134220 LEA RDX,[RSP + 0x38] MOV qword ptr [RDX],RAX LAB_00130e0c: LEA RSI,[0x13bba0] LEA RDI,[RSP + 0x10] CALL 0x001341c1 LAB_00130e1d: LEA RSI,[RSP + 0x10] MOV RDI,RBX CALL 0x00108aa0 LEA RDI,[RSP + 0x10] LAB_00130e2f: CALL 0x00108b18 TEST EBP,EBP JZ 0x00130e6f MOV EDI,EBP CALL 0x00134220 LEA RDX,[RSP + 0x38] MOV qword ptr [RDX],RAX LAB_00130e47: LEA RSI,[0x13bbac] LEA RDI,[RSP + 0x10] CALL 0x001341c1 LAB_00130e58: LEA RSI,[RSP + 0x10] MOV RDI,RBX CALL 0x00108aa0 LAB_00130e65: LEA RDI,[RSP + 0x10] CALL 0x00108b18 LAB_00130e6f: MOV RAX,RBX ADD RSP,0x58 POP RBX POP R14 POP R15 POP RBP RET
/* nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::string > > >::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::token_type, std::__cxx11::string const&) */ string * nlohmann::json_abi_v3_11_3::detail:: parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::exception_message(string *param_1,long param_2,int param_3,string *param_4) { string *this; char local_69; allocator local_68 [32]; char *local_48; char *local_40 [4]; std::__cxx11::string::string<std::allocator<char>>(param_1,"syntax error ",local_68); if (*(long *)(param_4 + 8) != 0) { local_40[0] = (char *)CONCAT71(local_40[0]._1_7_,0x20); /* try { // try from 00130d5d to 00130d70 has its CatchHandler @ 00130eaf */ concat<std::__cxx11::string,char_const(&)[15],std::__cxx11::string_const&,char> ((detail *)local_68,"while parsing ",param_4,(char *)local_40); /* try { // try from 00130d71 to 00130d7d has its CatchHandler @ 00130ea0 */ std::__cxx11::string::append(param_1); std::__cxx11::string::~string((string *)local_68); } /* try { // try from 00130d88 to 00130d96 has its CatchHandler @ 00130eb1 */ std::__cxx11::string::append((char *)param_1); if (*(int *)(param_2 + 0x20) == 0xe) { local_48 = *(char **)(param_2 + 0x98); /* try { // try from 00130db0 to 00130dbc has its CatchHandler @ 00130e9a */ lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::get_token_string(); local_69 = '\''; /* try { // try from 00130dc6 to 00130de0 has its CatchHandler @ 00130e8e */ concat<std::__cxx11::string,char_const*,char_const(&)[15],std::__cxx11::string,char> ((detail *)local_68,&local_48,"; last read: \'",(string *)local_40,&local_69); /* try { // try from 00130de1 to 00130ded has its CatchHandler @ 00130e7d */ std::__cxx11::string::append(param_1); std::__cxx11::string::~string((string *)local_68); this = (string *)local_40; } else { local_40[0] = (char *)lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::token_type_name(); /* try { // try from 00130e0c to 00130e1c has its CatchHandler @ 00130e98 */ concat<std::__cxx11::string,char_const(&)[12],char_const*> ((detail *)local_68,"unexpected ",local_40); /* try { // try from 00130e1d to 00130e29 has its CatchHandler @ 00130e8c */ std::__cxx11::string::append(param_1); this = (string *)local_68; } std::__cxx11::string::~string(this); if (param_3 != 0) { local_40[0] = (char *)lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::token_type_name(param_3); /* try { // try from 00130e47 to 00130e57 has its CatchHandler @ 00130e9e */ concat<std::__cxx11::string,char_const(&)[12],char_const*> ((detail *)local_68,"; expected ",local_40); /* try { // try from 00130e58 to 00130e64 has its CatchHandler @ 00130e9c */ std::__cxx11::string::append(param_1); std::__cxx11::string::~string((string *)local_68); } return param_1; }