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
19,400
mz_zip_reader_init_cfile
7CodeWizard[P]stablediffusion/thirdparty/miniz.h
mz_bool mz_zip_reader_init_cfile(mz_zip_archive *pZip, MZ_FILE *pFile, mz_uint64 archive_size, mz_uint flags) { mz_uint64 cur_file_ofs; if ((!pZip) || (!pFile)) return mz_zip_set_error(pZip, MZ_ZIP_FILE_OPEN_FAILED); cur_file_ofs = MZ_FTELL64(pFile); if (!archive_size) { if (MZ_FSEEK64(pFile, 0, SEEK_END)) return mz_zip_set_error(pZip, MZ_ZIP_FILE_SEEK_FAILED); archive_size = MZ_FTELL64(pFile) - cur_file_ofs; if (archive_size < MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE) return mz_zip_set_error(pZip, MZ_ZIP_NOT_AN_ARCHIVE); } if (!mz_zip_reader_init_internal(pZip, flags)) return MZ_FALSE; pZip->m_zip_type = MZ_ZIP_TYPE_CFILE; pZip->m_pRead = mz_zip_file_read_func; pZip->m_pIO_opaque = pZip; pZip->m_pState->m_pFile = pFile; pZip->m_archive_size = archive_size; pZip->m_pState->m_file_archive_start_ofs = cur_file_ofs; if (!mz_zip_reader_read_central_dir(pZip, flags)) { mz_zip_reader_end_internal(pZip, MZ_FALSE); return MZ_FALSE; } return MZ_TRUE; }
O0
c
mz_zip_reader_init_cfile: subq $0x58, %rsp movq %rdi, 0x20(%rsp) movq %rsi, 0x18(%rsp) movq %rdx, 0x10(%rsp) movl %ecx, 0xc(%rsp) cmpq $0x0, 0x20(%rsp) je 0xffd57 cmpq $0x0, 0x18(%rsp) jne 0xffd8a movq 0x20(%rsp), %rax movq %rax, 0x50(%rsp) movl $0x11, 0x4c(%rsp) cmpq $0x0, 0x50(%rsp) je 0xffd7d movl 0x4c(%rsp), %ecx movq 0x50(%rsp), %rax movl %ecx, 0x1c(%rax) movl $0x0, 0x28(%rsp) jmp 0xffeea movq 0x18(%rsp), %rdi callq 0xb940 movq %rax, (%rsp) cmpq $0x0, 0x10(%rsp) jne 0xffe3f movq 0x18(%rsp), %rdi xorl %eax, %eax movl %eax, %esi movl $0x2, %edx callq 0xb410 cmpl $0x0, %eax je 0xffdef movq 0x20(%rsp), %rax movq %rax, 0x40(%rsp) movl $0x16, 0x3c(%rsp) cmpq $0x0, 0x40(%rsp) je 0xffde2 movl 0x3c(%rsp), %ecx movq 0x40(%rsp), %rax movl %ecx, 0x1c(%rax) movl $0x0, 0x28(%rsp) jmp 0xffeea movq 0x18(%rsp), %rdi callq 0xb940 subq (%rsp), %rax movq %rax, 0x10(%rsp) cmpq $0x16, 0x10(%rsp) jae 0xffe3d movq 0x20(%rsp), %rax movq %rax, 0x30(%rsp) movl $0x8, 0x2c(%rsp) cmpq $0x0, 0x30(%rsp) je 0xffe30 movl 0x2c(%rsp), %ecx movq 0x30(%rsp), %rax movl %ecx, 0x1c(%rax) movl $0x0, 0x28(%rsp) jmp 0xffeea jmp 0xffe3f movq 0x20(%rsp), %rdi movl 0xc(%rsp), %esi callq 0xfe090 cmpl $0x0, %eax jne 0xffe5f movl $0x0, 0x28(%rsp) jmp 0xffeea movq 0x20(%rsp), %rax movl $0x5, 0x18(%rax) movq 0x20(%rsp), %rax leaq -0x447(%rip), %rcx # 0xffa30 movq %rcx, 0x48(%rax) movq 0x20(%rsp), %rcx movq 0x20(%rsp), %rax movq %rcx, 0x60(%rax) movq 0x18(%rsp), %rcx movq 0x20(%rsp), %rax movq 0x68(%rax), %rax movq %rcx, 0x70(%rax) movq 0x10(%rsp), %rcx movq 0x20(%rsp), %rax movq %rcx, (%rax) movq (%rsp), %rcx movq 0x20(%rsp), %rax movq 0x68(%rax), %rax movq %rcx, 0x78(%rax) movq 0x20(%rsp), %rdi movl 0xc(%rsp), %esi callq 0xfe270 cmpl $0x0, %eax jne 0xffee2 movq 0x20(%rsp), %rdi xorl %esi, %esi callq 0xfddc0 movl $0x0, 0x28(%rsp) jmp 0xffeea movl $0x1, 0x28(%rsp) movl 0x28(%rsp), %eax addq $0x58, %rsp retq nopw %cs:(%rax,%rax)
mz_zip_reader_init_cfile: sub rsp, 58h mov [rsp+58h+var_38], rdi mov [rsp+58h+var_40], rsi mov [rsp+58h+var_48], rdx mov [rsp+58h+var_4C], ecx cmp [rsp+58h+var_38], 0 jz short loc_FFD57 cmp [rsp+58h+var_40], 0 jnz short loc_FFD8A loc_FFD57: mov rax, [rsp+58h+var_38] mov [rsp+58h+var_8], rax mov [rsp+58h+var_C], 11h cmp [rsp+58h+var_8], 0 jz short loc_FFD7D mov ecx, [rsp+58h+var_C] mov rax, [rsp+58h+var_8] mov [rax+1Ch], ecx loc_FFD7D: mov [rsp+58h+var_30], 0 jmp loc_FFEEA loc_FFD8A: mov rdi, [rsp+58h+var_40] call _ftello mov [rsp+58h+var_58], rax cmp [rsp+58h+var_48], 0 jnz loc_FFE3F mov rdi, [rsp+58h+var_40] xor eax, eax mov esi, eax mov edx, 2 call _fseeko cmp eax, 0 jz short loc_FFDEF mov rax, [rsp+58h+var_38] mov [rsp+58h+var_18], rax mov [rsp+58h+var_1C], 16h cmp [rsp+58h+var_18], 0 jz short loc_FFDE2 mov ecx, [rsp+58h+var_1C] mov rax, [rsp+58h+var_18] mov [rax+1Ch], ecx loc_FFDE2: mov [rsp+58h+var_30], 0 jmp loc_FFEEA loc_FFDEF: mov rdi, [rsp+58h+var_40] call _ftello sub rax, [rsp+58h+var_58] mov [rsp+58h+var_48], rax cmp [rsp+58h+var_48], 16h jnb short loc_FFE3D mov rax, [rsp+58h+var_38] mov [rsp+58h+var_28], rax mov [rsp+58h+var_2C], 8 cmp [rsp+58h+var_28], 0 jz short loc_FFE30 mov ecx, [rsp+58h+var_2C] mov rax, [rsp+58h+var_28] mov [rax+1Ch], ecx loc_FFE30: mov [rsp+58h+var_30], 0 jmp loc_FFEEA loc_FFE3D: jmp short $+2 loc_FFE3F: mov rdi, [rsp+58h+var_38] mov esi, [rsp+58h+var_4C] call mz_zip_reader_init_internal cmp eax, 0 jnz short loc_FFE5F mov [rsp+58h+var_30], 0 jmp loc_FFEEA loc_FFE5F: mov rax, [rsp+58h+var_38] mov dword ptr [rax+18h], 5 mov rax, [rsp+58h+var_38] lea rcx, mz_zip_file_read_func mov [rax+48h], rcx mov rcx, [rsp+58h+var_38] mov rax, [rsp+58h+var_38] mov [rax+60h], rcx mov rcx, [rsp+58h+var_40] mov rax, [rsp+58h+var_38] mov rax, [rax+68h] mov [rax+70h], rcx mov rcx, [rsp+58h+var_48] mov rax, [rsp+58h+var_38] mov [rax], rcx mov rcx, [rsp+58h+var_58] mov rax, [rsp+58h+var_38] mov rax, [rax+68h] mov [rax+78h], rcx mov rdi, [rsp+58h+var_38] mov esi, [rsp+58h+var_4C] call mz_zip_reader_read_central_dir cmp eax, 0 jnz short loc_FFEE2 mov rdi, [rsp+58h+var_38] xor esi, esi call mz_zip_reader_end_internal mov [rsp+58h+var_30], 0 jmp short loc_FFEEA loc_FFEE2: mov [rsp+58h+var_30], 1 loc_FFEEA: mov eax, [rsp+58h+var_30] add rsp, 58h retn
long long mz_zip_reader_init_cfile(long long a1, long long a2, unsigned long long a3, int a4) { long long v5; // [rsp+0h] [rbp-58h] if ( a1 && a2 ) { v5 = ftello(a2); if ( !a3 ) { if ( (unsigned int)fseeko(a2, 0LL, 2LL) ) { *(_DWORD *)(a1 + 28) = 22; return 0; } a3 = ftello(a2) - v5; if ( a3 < 0x16 ) { *(_DWORD *)(a1 + 28) = 8; return 0; } } if ( (unsigned int)mz_zip_reader_init_internal(a1, a4) ) { *(_DWORD *)(a1 + 24) = 5; *(_QWORD *)(a1 + 72) = mz_zip_file_read_func; *(_QWORD *)(a1 + 96) = a1; *(_QWORD *)(*(_QWORD *)(a1 + 104) + 112LL) = a2; *(_QWORD *)a1 = a3; *(_QWORD *)(*(_QWORD *)(a1 + 104) + 120LL) = v5; if ( (unsigned int)mz_zip_reader_read_central_dir((_QWORD *)a1, a4) ) { return 1; } else { mz_zip_reader_end_internal(a1, 0); return 0; } } else { return 0; } } else { if ( a1 ) *(_DWORD *)(a1 + 28) = 17; return 0; } }
mz_zip_reader_init_cfile: SUB RSP,0x58 MOV qword ptr [RSP + 0x20],RDI MOV qword ptr [RSP + 0x18],RSI MOV qword ptr [RSP + 0x10],RDX MOV dword ptr [RSP + 0xc],ECX CMP qword ptr [RSP + 0x20],0x0 JZ 0x001ffd57 CMP qword ptr [RSP + 0x18],0x0 JNZ 0x001ffd8a LAB_001ffd57: MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x50],RAX MOV dword ptr [RSP + 0x4c],0x11 CMP qword ptr [RSP + 0x50],0x0 JZ 0x001ffd7d MOV ECX,dword ptr [RSP + 0x4c] MOV RAX,qword ptr [RSP + 0x50] MOV dword ptr [RAX + 0x1c],ECX LAB_001ffd7d: MOV dword ptr [RSP + 0x28],0x0 JMP 0x001ffeea LAB_001ffd8a: MOV RDI,qword ptr [RSP + 0x18] CALL 0x0010b940 MOV qword ptr [RSP],RAX CMP qword ptr [RSP + 0x10],0x0 JNZ 0x001ffe3f MOV RDI,qword ptr [RSP + 0x18] XOR EAX,EAX MOV ESI,EAX MOV EDX,0x2 CALL 0x0010b410 CMP EAX,0x0 JZ 0x001ffdef MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x40],RAX MOV dword ptr [RSP + 0x3c],0x16 CMP qword ptr [RSP + 0x40],0x0 JZ 0x001ffde2 MOV ECX,dword ptr [RSP + 0x3c] MOV RAX,qword ptr [RSP + 0x40] MOV dword ptr [RAX + 0x1c],ECX LAB_001ffde2: MOV dword ptr [RSP + 0x28],0x0 JMP 0x001ffeea LAB_001ffdef: MOV RDI,qword ptr [RSP + 0x18] CALL 0x0010b940 SUB RAX,qword ptr [RSP] MOV qword ptr [RSP + 0x10],RAX CMP qword ptr [RSP + 0x10],0x16 JNC 0x001ffe3d MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x30],RAX MOV dword ptr [RSP + 0x2c],0x8 CMP qword ptr [RSP + 0x30],0x0 JZ 0x001ffe30 MOV ECX,dword ptr [RSP + 0x2c] MOV RAX,qword ptr [RSP + 0x30] MOV dword ptr [RAX + 0x1c],ECX LAB_001ffe30: MOV dword ptr [RSP + 0x28],0x0 JMP 0x001ffeea LAB_001ffe3d: JMP 0x001ffe3f LAB_001ffe3f: MOV RDI,qword ptr [RSP + 0x20] MOV ESI,dword ptr [RSP + 0xc] CALL 0x001fe090 CMP EAX,0x0 JNZ 0x001ffe5f MOV dword ptr [RSP + 0x28],0x0 JMP 0x001ffeea LAB_001ffe5f: MOV RAX,qword ptr [RSP + 0x20] MOV dword ptr [RAX + 0x18],0x5 MOV RAX,qword ptr [RSP + 0x20] LEA RCX,[0x1ffa30] MOV qword ptr [RAX + 0x48],RCX MOV RCX,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RAX + 0x60],RCX MOV RCX,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RAX + 0x68] MOV qword ptr [RAX + 0x70],RCX MOV RCX,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RSP] MOV RAX,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RAX + 0x68] MOV qword ptr [RAX + 0x78],RCX MOV RDI,qword ptr [RSP + 0x20] MOV ESI,dword ptr [RSP + 0xc] CALL 0x001fe270 CMP EAX,0x0 JNZ 0x001ffee2 MOV RDI,qword ptr [RSP + 0x20] XOR ESI,ESI CALL 0x001fddc0 MOV dword ptr [RSP + 0x28],0x0 JMP 0x001ffeea LAB_001ffee2: MOV dword ptr [RSP + 0x28],0x1 LAB_001ffeea: MOV EAX,dword ptr [RSP + 0x28] ADD RSP,0x58 RET
int4 mz_zip_reader_init_cfile(ulong *param_1,FILE *param_2,ulong param_3,int4 param_4) { int iVar1; __off_t _Var2; __off_t _Var3; ulong local_48; int4 local_30; if ((param_1 == (ulong *)0x0) || (param_2 == (FILE *)0x0)) { if (param_1 != (ulong *)0x0) { *(int4 *)((long)param_1 + 0x1c) = 0x11; } return 0; } _Var2 = ftello(param_2); local_48 = param_3; if (param_3 == 0) { iVar1 = fseeko(param_2,0,2); if (iVar1 != 0) { if (param_1 != (ulong *)0x0) { *(int4 *)((long)param_1 + 0x1c) = 0x16; } return 0; } _Var3 = ftello(param_2); local_48 = _Var3 - _Var2; if (local_48 < 0x16) { if (param_1 != (ulong *)0x0) { *(int4 *)((long)param_1 + 0x1c) = 8; } return 0; } } iVar1 = mz_zip_reader_init_internal(param_1,param_4); if (iVar1 == 0) { local_30 = 0; } else { *(int4 *)(param_1 + 3) = 5; param_1[9] = (ulong)mz_zip_file_read_func; param_1[0xc] = (ulong)param_1; *(FILE **)(param_1[0xd] + 0x70) = param_2; *param_1 = local_48; *(__off_t *)(param_1[0xd] + 0x78) = _Var2; iVar1 = mz_zip_reader_read_central_dir(param_1,param_4); if (iVar1 == 0) { mz_zip_reader_end_internal(param_1,0); local_30 = 0; } else { local_30 = 1; } } return local_30; }
19,401
mz_zip_reader_init_cfile
7CodeWizard[P]stablediffusion/thirdparty/miniz.h
mz_bool mz_zip_reader_init_cfile(mz_zip_archive *pZip, MZ_FILE *pFile, mz_uint64 archive_size, mz_uint flags) { mz_uint64 cur_file_ofs; if ((!pZip) || (!pFile)) return mz_zip_set_error(pZip, MZ_ZIP_FILE_OPEN_FAILED); cur_file_ofs = MZ_FTELL64(pFile); if (!archive_size) { if (MZ_FSEEK64(pFile, 0, SEEK_END)) return mz_zip_set_error(pZip, MZ_ZIP_FILE_SEEK_FAILED); archive_size = MZ_FTELL64(pFile) - cur_file_ofs; if (archive_size < MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE) return mz_zip_set_error(pZip, MZ_ZIP_NOT_AN_ARCHIVE); } if (!mz_zip_reader_init_internal(pZip, flags)) return MZ_FALSE; pZip->m_zip_type = MZ_ZIP_TYPE_CFILE; pZip->m_pRead = mz_zip_file_read_func; pZip->m_pIO_opaque = pZip; pZip->m_pState->m_pFile = pFile; pZip->m_archive_size = archive_size; pZip->m_pState->m_file_archive_start_ofs = cur_file_ofs; if (!mz_zip_reader_read_central_dir(pZip, flags)) { mz_zip_reader_end_internal(pZip, MZ_FALSE); return MZ_FALSE; } return MZ_TRUE; }
O2
c
mz_zip_reader_init_cfile: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %ecx, %ebp movq %rdi, %rbx testq %rdi, %rdi setne %al testq %rsi, %rsi setne %cl testb %cl, %al je 0x5e91f movq %rdx, %r13 movq %rsi, %r14 movq %rsi, %rdi callq 0xa740 movq %rax, %r12 testq %r13, %r13 je 0x5e930 movq %rbx, %rdi movl %ebp, %esi callq 0x5da80 testl %eax, %eax je 0x5e94d movl $0x5, 0x18(%rbx) leaq -0x1eb(%rip), %rax # 0x5e709 movq %rax, 0x48(%rbx) movq %rbx, 0x60(%rbx) movq 0x68(%rbx), %rax movq %r14, 0x70(%rax) movq %r13, (%rbx) movq %r12, 0x78(%rax) movq %rbx, %rdi movl %ebp, %esi callq 0x5db4d testl %eax, %eax je 0x5e952 pushq $0x1 popq %r15 jmp 0x5e980 xorl %r15d, %r15d testq %rbx, %rbx je 0x5e980 movl $0x11, 0x1c(%rbx) jmp 0x5e980 xorl %r15d, %r15d pushq $0x2 popq %rdx movq %r14, %rdi xorl %esi, %esi callq 0xa330 testl %eax, %eax je 0x5e961 movl $0x16, 0x1c(%rbx) jmp 0x5e980 xorl %r15d, %r15d jmp 0x5e980 xorl %r15d, %r15d movq %rbx, %rdi xorl %esi, %esi callq 0x5d92b jmp 0x5e980 movq %r14, %rdi callq 0xa740 movq %rax, %r13 subq %r12, %r13 cmpq $0x15, %r13 ja 0x5e8d8 movl $0x8, 0x1c(%rbx) movl %r15d, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
mz_zip_reader_init_cfile: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov ebp, ecx mov rbx, rdi test rdi, rdi setnz al test rsi, rsi setnz cl test al, cl jz short loc_5E91F mov r13, rdx mov r14, rsi mov rdi, rsi call _ftello mov r12, rax test r13, r13 jz short loc_5E930 loc_5E8D8: mov rdi, rbx mov esi, ebp call mz_zip_reader_init_internal test eax, eax jz short loc_5E94D mov dword ptr [rbx+18h], 5 lea rax, mz_zip_file_read_func mov [rbx+48h], rax mov [rbx+60h], rbx mov rax, [rbx+68h] mov [rax+70h], r14 mov [rbx], r13 mov [rax+78h], r12 mov rdi, rbx mov esi, ebp call mz_zip_reader_read_central_dir test eax, eax jz short loc_5E952 push 1 pop r15 jmp short loc_5E980 loc_5E91F: xor r15d, r15d test rbx, rbx jz short loc_5E980 mov dword ptr [rbx+1Ch], 11h jmp short loc_5E980 loc_5E930: xor r15d, r15d push 2 pop rdx mov rdi, r14 xor esi, esi call _fseeko test eax, eax jz short loc_5E961 mov dword ptr [rbx+1Ch], 16h jmp short loc_5E980 loc_5E94D: xor r15d, r15d jmp short loc_5E980 loc_5E952: xor r15d, r15d mov rdi, rbx xor esi, esi call mz_zip_reader_end_internal jmp short loc_5E980 loc_5E961: mov rdi, r14 call _ftello mov r13, rax sub r13, r12 cmp r13, 15h ja loc_5E8D8 mov dword ptr [rbx+1Ch], 8 loc_5E980: mov eax, r15d add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long mz_zip_reader_init_cfile(long long a1, long long a2, unsigned long long a3, int a4) { long long v6; // r12 long long v7; // rax unsigned int v8; // r15d if ( a2 != 0 && a1 != 0 ) { v6 = ftello(a2); if ( !a3 ) { v8 = 0; if ( (unsigned int)fseeko(a2, 0LL, 2LL) ) { *(_DWORD *)(a1 + 28) = 22; return v8; } a3 = ftello(a2) - v6; if ( a3 <= 0x15 ) { *(_DWORD *)(a1 + 28) = 8; return v8; } } if ( (unsigned int)mz_zip_reader_init_internal(a1, a4) ) { *(_DWORD *)(a1 + 24) = 5; *(_QWORD *)(a1 + 72) = mz_zip_file_read_func; *(_QWORD *)(a1 + 96) = a1; v7 = *(_QWORD *)(a1 + 104); *(_QWORD *)(v7 + 112) = a2; *(_QWORD *)a1 = a3; *(_QWORD *)(v7 + 120) = v6; if ( (unsigned int)mz_zip_reader_read_central_dir(a1, a4) ) { return 1; } else { v8 = 0; mz_zip_reader_end_internal(a1, 0); } } else { return 0; } } else { v8 = 0; if ( a1 ) *(_DWORD *)(a1 + 28) = 17; } return v8; }
mz_zip_reader_init_cfile: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV EBP,ECX MOV RBX,RDI TEST RDI,RDI SETNZ AL TEST RSI,RSI SETNZ CL TEST AL,CL JZ 0x0015e91f MOV R13,RDX MOV R14,RSI MOV RDI,RSI CALL 0x0010a740 MOV R12,RAX TEST R13,R13 JZ 0x0015e930 LAB_0015e8d8: MOV RDI,RBX MOV ESI,EBP CALL 0x0015da80 TEST EAX,EAX JZ 0x0015e94d MOV dword ptr [RBX + 0x18],0x5 LEA RAX,[0x15e709] MOV qword ptr [RBX + 0x48],RAX MOV qword ptr [RBX + 0x60],RBX MOV RAX,qword ptr [RBX + 0x68] MOV qword ptr [RAX + 0x70],R14 MOV qword ptr [RBX],R13 MOV qword ptr [RAX + 0x78],R12 MOV RDI,RBX MOV ESI,EBP CALL 0x0015db4d TEST EAX,EAX JZ 0x0015e952 PUSH 0x1 POP R15 JMP 0x0015e980 LAB_0015e91f: XOR R15D,R15D TEST RBX,RBX JZ 0x0015e980 MOV dword ptr [RBX + 0x1c],0x11 JMP 0x0015e980 LAB_0015e930: XOR R15D,R15D PUSH 0x2 POP RDX MOV RDI,R14 XOR ESI,ESI CALL 0x0010a330 TEST EAX,EAX JZ 0x0015e961 MOV dword ptr [RBX + 0x1c],0x16 JMP 0x0015e980 LAB_0015e94d: XOR R15D,R15D JMP 0x0015e980 LAB_0015e952: XOR R15D,R15D MOV RDI,RBX XOR ESI,ESI CALL 0x0015d92b JMP 0x0015e980 LAB_0015e961: MOV RDI,R14 CALL 0x0010a740 MOV R13,RAX SUB R13,R12 CMP R13,0x15 JA 0x0015e8d8 MOV dword ptr [RBX + 0x1c],0x8 LAB_0015e980: MOV EAX,R15D ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 mz_zip_reader_init_cfile(ulong *param_1,FILE *param_2,ulong param_3,int4 param_4) { ulong uVar1; int iVar2; __off_t _Var3; __off_t _Var4; int8 uVar5; if (param_1 == (ulong *)0x0 || param_2 == (FILE *)0x0) { if (param_1 == (ulong *)0x0) { return 0; } *(int4 *)((long)param_1 + 0x1c) = 0x11; return 0; } _Var3 = ftello(param_2); if (param_3 == 0) { iVar2 = fseeko(param_2,0,2); if (iVar2 != 0) { *(int4 *)((long)param_1 + 0x1c) = 0x16; return 0; } _Var4 = ftello(param_2); param_3 = _Var4 - _Var3; if (param_3 < 0x16) { *(int4 *)((long)param_1 + 0x1c) = 8; return 0; } } iVar2 = mz_zip_reader_init_internal(param_1,param_4); if (iVar2 == 0) { uVar5 = 0; } else { *(int4 *)(param_1 + 3) = 5; param_1[9] = (ulong)mz_zip_file_read_func; param_1[0xc] = (ulong)param_1; uVar1 = param_1[0xd]; *(FILE **)(uVar1 + 0x70) = param_2; *param_1 = param_3; *(__off_t *)(uVar1 + 0x78) = _Var3; iVar2 = mz_zip_reader_read_central_dir(param_1,param_4); if (iVar2 == 0) { uVar5 = 0; mz_zip_reader_end_internal(param_1,0); } else { uVar5 = 1; } } return uVar5; }
19,402
mz_zip_reader_init_cfile
7CodeWizard[P]stablediffusion/thirdparty/miniz.h
mz_bool mz_zip_reader_init_cfile(mz_zip_archive *pZip, MZ_FILE *pFile, mz_uint64 archive_size, mz_uint flags) { mz_uint64 cur_file_ofs; if ((!pZip) || (!pFile)) return mz_zip_set_error(pZip, MZ_ZIP_FILE_OPEN_FAILED); cur_file_ofs = MZ_FTELL64(pFile); if (!archive_size) { if (MZ_FSEEK64(pFile, 0, SEEK_END)) return mz_zip_set_error(pZip, MZ_ZIP_FILE_SEEK_FAILED); archive_size = MZ_FTELL64(pFile) - cur_file_ofs; if (archive_size < MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE) return mz_zip_set_error(pZip, MZ_ZIP_NOT_AN_ARCHIVE); } if (!mz_zip_reader_init_internal(pZip, flags)) return MZ_FALSE; pZip->m_zip_type = MZ_ZIP_TYPE_CFILE; pZip->m_pRead = mz_zip_file_read_func; pZip->m_pIO_opaque = pZip; pZip->m_pState->m_pFile = pFile; pZip->m_archive_size = archive_size; pZip->m_pState->m_file_archive_start_ofs = cur_file_ofs; if (!mz_zip_reader_read_central_dir(pZip, flags)) { mz_zip_reader_end_internal(pZip, MZ_FALSE); return MZ_FALSE; } return MZ_TRUE; }
O3
c
mz_zip_reader_init_cfile: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %ecx, %ebp movq %rdi, %rbx testq %rdi, %rdi setne %al testq %rsi, %rsi setne %cl testb %cl, %al je 0x8323d movq %rdx, %r13 movq %rsi, %r14 movq %rsi, %rdi callq 0xa720 movq %rax, %r12 testq %r13, %r13 je 0x8324e movq %rbx, %rdi movl %ebp, %esi callq 0x82610 testl %eax, %eax je 0x8326d movl $0x5, 0x18(%rbx) leaq -0x1ff(%rip), %rax # 0x83004 movq %rax, 0x48(%rbx) movq %rbx, 0x60(%rbx) movq 0x68(%rbx), %rax movq %r14, 0x70(%rax) movq %r13, (%rbx) movq %r12, 0x78(%rax) movq %rbx, %rdi movl %ebp, %esi callq 0x826e7 movl $0x1, %r15d testl %eax, %eax jne 0x83291 xorl %r15d, %r15d movq %rbx, %rdi xorl %esi, %esi callq 0x824b0 jmp 0x83291 xorl %r15d, %r15d testq %rbx, %rbx je 0x83291 movl $0x11, 0x1c(%rbx) jmp 0x83291 xorl %r15d, %r15d movq %r14, %rdi xorl %esi, %esi movl $0x2, %edx callq 0xa320 testl %eax, %eax je 0x83272 movl $0x16, 0x1c(%rbx) jmp 0x83291 xorl %r15d, %r15d jmp 0x83291 movq %r14, %rdi callq 0xa720 movq %rax, %r13 subq %r12, %r13 cmpq $0x15, %r13 ja 0x831e7 movl $0x8, 0x1c(%rbx) movl %r15d, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
mz_zip_reader_init_cfile: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov ebp, ecx mov rbx, rdi test rdi, rdi setnz al test rsi, rsi setnz cl test al, cl jz short loc_8323D mov r13, rdx mov r14, rsi mov rdi, rsi call _ftello mov r12, rax test r13, r13 jz short loc_8324E loc_831E7: mov rdi, rbx mov esi, ebp call mz_zip_reader_init_internal test eax, eax jz short loc_8326D mov dword ptr [rbx+18h], 5 lea rax, mz_zip_file_read_func mov [rbx+48h], rax mov [rbx+60h], rbx mov rax, [rbx+68h] mov [rax+70h], r14 mov [rbx], r13 mov [rax+78h], r12 mov rdi, rbx mov esi, ebp call mz_zip_reader_read_central_dir mov r15d, 1 test eax, eax jnz short loc_83291 xor r15d, r15d mov rdi, rbx xor esi, esi call mz_zip_reader_end_internal jmp short loc_83291 loc_8323D: xor r15d, r15d test rbx, rbx jz short loc_83291 mov dword ptr [rbx+1Ch], 11h jmp short loc_83291 loc_8324E: xor r15d, r15d mov rdi, r14 xor esi, esi mov edx, 2 call _fseeko test eax, eax jz short loc_83272 mov dword ptr [rbx+1Ch], 16h jmp short loc_83291 loc_8326D: xor r15d, r15d jmp short loc_83291 loc_83272: mov rdi, r14 call _ftello mov r13, rax sub r13, r12 cmp r13, 15h ja loc_831E7 mov dword ptr [rbx+1Ch], 8 loc_83291: mov eax, r15d add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long mz_zip_reader_init_cfile(long long a1, long long a2, unsigned long long a3, signed __int32 a4) { long long v6; // r12 long long v7; // rax unsigned int v8; // r15d if ( a2 != 0 && a1 != 0 ) { v6 = ftello(a2); if ( !a3 ) { v8 = 0; if ( (unsigned int)fseeko(a2, 0LL, 2LL) ) { *(_DWORD *)(a1 + 28) = 22; return v8; } a3 = ftello(a2) - v6; if ( a3 <= 0x15 ) { *(_DWORD *)(a1 + 28) = 8; return v8; } } if ( (unsigned int)mz_zip_reader_init_internal(a1, a4) ) { *(_DWORD *)(a1 + 24) = 5; *(_QWORD *)(a1 + 72) = mz_zip_file_read_func; *(_QWORD *)(a1 + 96) = a1; v7 = *(_QWORD *)(a1 + 104); *(_QWORD *)(v7 + 112) = a2; *(_QWORD *)a1 = a3; *(_QWORD *)(v7 + 120) = v6; v8 = 1; if ( !(unsigned int)mz_zip_reader_read_central_dir(a1, a4) ) { v8 = 0; mz_zip_reader_end_internal(a1, 0); } } else { return 0; } } else { v8 = 0; if ( a1 ) *(_DWORD *)(a1 + 28) = 17; } return v8; }
19,403
read_pack_length
eloqsql/storage/myisam/mi_packrec.c
static uint read_pack_length(uint version, const uchar *buf, ulong *length) { if (buf[0] < 254) { *length= buf[0]; return 1; } else if (buf[0] == 254) { *length= uint2korr(buf + 1); return 3; } if (version == 1) /* old format */ { *length= uint3korr(buf + 1); return 4; } else { *length= uint4korr(buf + 1); return 5; } }
O0
c
read_pack_length: pushq %rbp movq %rsp, %rbp movl %edi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x10(%rbp), %rax movzbl (%rax), %eax cmpl $0xfe, %eax jge 0xbd436 movq -0x10(%rbp), %rax movzbl (%rax), %eax movl %eax, %ecx movq -0x18(%rbp), %rax movq %rcx, (%rax) movl $0x1, -0x4(%rbp) jmp 0xbd4b3 movq -0x10(%rbp), %rax movzbl (%rax), %eax cmpl $0xfe, %eax jne 0xbd45e movq -0x10(%rbp), %rax movzwl 0x1(%rax), %eax movl %eax, %ecx movq -0x18(%rbp), %rax movq %rcx, (%rax) movl $0x3, -0x4(%rbp) jmp 0xbd4b3 jmp 0xbd460 cmpl $0x1, -0x8(%rbp) jne 0xbd49c movq -0x10(%rbp), %rax movzbl 0x1(%rax), %eax movq -0x10(%rbp), %rcx movzbl 0x2(%rcx), %ecx shll $0x8, %ecx orl %ecx, %eax movq -0x10(%rbp), %rcx movzbl 0x3(%rcx), %ecx shll $0x10, %ecx orl %ecx, %eax movl %eax, %eax movl %eax, %ecx movq -0x18(%rbp), %rax movq %rcx, (%rax) movl $0x4, -0x4(%rbp) jmp 0xbd4b3 movq -0x10(%rbp), %rax movl 0x1(%rax), %eax movl %eax, %ecx movq -0x18(%rbp), %rax movq %rcx, (%rax) movl $0x5, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopl (%rax,%rax)
read_pack_length_0: push rbp mov rbp, rsp mov [rbp+var_8], edi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov rax, [rbp+var_10] movzx eax, byte ptr [rax] cmp eax, 0FEh jge short loc_BD436 mov rax, [rbp+var_10] movzx eax, byte ptr [rax] mov ecx, eax mov rax, [rbp+var_18] mov [rax], rcx mov [rbp+var_4], 1 jmp short loc_BD4B3 loc_BD436: mov rax, [rbp+var_10] movzx eax, byte ptr [rax] cmp eax, 0FEh jnz short loc_BD45E mov rax, [rbp+var_10] movzx eax, word ptr [rax+1] mov ecx, eax mov rax, [rbp+var_18] mov [rax], rcx mov [rbp+var_4], 3 jmp short loc_BD4B3 loc_BD45E: jmp short $+2 loc_BD460: cmp [rbp+var_8], 1 jnz short loc_BD49C mov rax, [rbp+var_10] movzx eax, byte ptr [rax+1] mov rcx, [rbp+var_10] movzx ecx, byte ptr [rcx+2] shl ecx, 8 or eax, ecx mov rcx, [rbp+var_10] movzx ecx, byte ptr [rcx+3] shl ecx, 10h or eax, ecx mov eax, eax mov ecx, eax mov rax, [rbp+var_18] mov [rax], rcx mov [rbp+var_4], 4 jmp short loc_BD4B3 loc_BD49C: mov rax, [rbp+var_10] mov eax, [rax+1] mov ecx, eax mov rax, [rbp+var_18] mov [rax], rcx mov [rbp+var_4], 5 loc_BD4B3: mov eax, [rbp+var_4] pop rbp retn
long long read_pack_length_0(int a1, unsigned __int8 *a2, _QWORD *a3) { if ( *a2 >= 0xFEu ) { if ( *a2 == 254 ) { *a3 = *(unsigned __int16 *)(a2 + 1); return 3; } else if ( a1 == 1 ) { *a3 = (a2[3] << 16) | (unsigned int)*(unsigned __int16 *)(a2 + 1); return 4; } else { *a3 = *(unsigned int *)(a2 + 1); return 5; } } else { *a3 = *a2; return 1; } }
read_pack_length: PUSH RBP MOV RBP,RSP MOV dword ptr [RBP + -0x8],EDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX] CMP EAX,0xfe JGE 0x001bd436 MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x1 JMP 0x001bd4b3 LAB_001bd436: MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX] CMP EAX,0xfe JNZ 0x001bd45e MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,word ptr [RAX + 0x1] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x3 JMP 0x001bd4b3 LAB_001bd45e: JMP 0x001bd460 LAB_001bd460: CMP dword ptr [RBP + -0x8],0x1 JNZ 0x001bd49c MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX + 0x1] MOV RCX,qword ptr [RBP + -0x10] MOVZX ECX,byte ptr [RCX + 0x2] SHL ECX,0x8 OR EAX,ECX MOV RCX,qword ptr [RBP + -0x10] MOVZX ECX,byte ptr [RCX + 0x3] SHL ECX,0x10 OR EAX,ECX MOV EAX,EAX MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x4 JMP 0x001bd4b3 LAB_001bd49c: MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x1] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x5 LAB_001bd4b3: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int4 read_pack_length(int param_1,byte *param_2,ulong *param_3) { int4 local_c; if (*param_2 < 0xfe) { *param_3 = (ulong)*param_2; local_c = 1; } else if (*param_2 == 0xfe) { *param_3 = (ulong)*(ushort *)(param_2 + 1); local_c = 3; } else if (param_1 == 1) { *param_3 = (ulong)*(uint3 *)(param_2 + 1); local_c = 4; } else { *param_3 = (ulong)*(uint *)(param_2 + 1); local_c = 5; } return local_c; }
19,404
pagecache_collect_changed_blocks_with_lsn
eloqsql/storage/maria/ma_pagecache.c
my_bool pagecache_collect_changed_blocks_with_lsn(PAGECACHE *pagecache, LEX_STRING *str, LSN *min_rec_lsn) { my_bool error= 0; size_t stored_list_size= 0; uint file_hash; char *ptr; LSN minimum_rec_lsn= LSN_MAX; DBUG_ENTER("pagecache_collect_changed_blocks_with_LSN"); DBUG_ASSERT(NULL == str->str); /* We lock the entire cache but will be quick, just reading/writing a few MBs of memory at most. */ pagecache_pthread_mutex_lock(&pagecache->cache_lock); for (;;) { struct st_file_in_flush *other_flusher; for (file_hash= 0; (other_flusher= (struct st_file_in_flush *) my_hash_element(&pagecache->files_in_flush, file_hash)) != NULL && !other_flusher->first_in_switch; file_hash++) {} if (other_flusher == NULL) break; /* other_flusher.first_in_switch is true: some thread is flushing a file and has removed dirty blocks from changed_blocks[] while they were still dirty (they were being evicted (=>flushed) by yet another thread, which may not have flushed the block yet so it may still be dirty). If Checkpoint proceeds now, it will not see the page. If there is a crash right after writing the checkpoint record, before the page is flushed, at recovery the page will be wrongly ignored because it won't be in the dirty pages list in the checkpoint record. So wait. */ { struct st_my_thread_var *thread= my_thread_var; wqueue_add_to_queue(&other_flusher->flush_queue, thread); do { DBUG_PRINT("wait", ("suspend thread %s %ld", thread->name, (ulong) thread->id)); pagecache_pthread_cond_wait(&thread->suspend, &pagecache->cache_lock); } while (thread->next); } } /* Count how many dirty pages are interesting */ for (file_hash= 0; file_hash < pagecache->changed_blocks_hash_size; file_hash++) { PAGECACHE_BLOCK_LINK *block; for (block= pagecache->changed_blocks[file_hash] ; block; block= block->next_changed) { /* Q: is there something subtle with block->hash_link: can it be NULL? does it have to be == hash_link->block... ? */ DBUG_ASSERT(block->hash_link != NULL); DBUG_ASSERT(block->status & PCBLOCK_CHANGED); /* Note that we don't store bitmap pages, or pages from non-transactional (like temporary) tables. Don't checkpoint during Recovery which uses PAGECACHE_PLAIN_PAGE. */ if (block->type != PAGECACHE_LSN_PAGE) continue; /* no need to store it */ stored_list_size++; } } compile_time_assert(sizeof(pagecache->blocks) <= 8); str->length= 8 + /* number of dirty pages */ (2 + /* table id */ 1 + /* data or index file */ 5 + /* pageno */ LSN_STORE_SIZE /* rec_lsn */ ) * stored_list_size; if (NULL == (str->str= my_malloc(PSI_INSTRUMENT_ME, str->length, MYF(MY_WME)))) goto err; ptr= str->str; int8store(ptr, (ulonglong)stored_list_size); ptr+= 8; DBUG_PRINT("info", ("found %zu dirty pages", stored_list_size)); if (stored_list_size == 0) goto end; for (file_hash= 0; file_hash < pagecache->changed_blocks_hash_size; file_hash++) { PAGECACHE_BLOCK_LINK *block; for (block= pagecache->changed_blocks[file_hash] ; block; block= block->next_changed) { uint16 table_id; MARIA_SHARE *share; if (block->type != PAGECACHE_LSN_PAGE) continue; /* no need to store it in the checkpoint record */ share= (MARIA_SHARE *)(block->hash_link->file.callback_data); table_id= share->id; int2store(ptr, table_id); ptr+= 2; ptr[0]= (share->kfile.file == block->hash_link->file.file); ptr++; DBUG_ASSERT(block->hash_link->pageno < ((1ULL) << 40)); page_store(ptr, block->hash_link->pageno); ptr+= PAGE_STORE_SIZE; lsn_store(ptr, block->rec_lsn); ptr+= LSN_STORE_SIZE; if (block->rec_lsn != LSN_MAX) { DBUG_ASSERT(LSN_VALID(block->rec_lsn)); if (cmp_translog_addr(block->rec_lsn, minimum_rec_lsn) < 0) minimum_rec_lsn= block->rec_lsn; } /* otherwise, some trn->rec_lsn should hold the correct info */ } } end: pagecache_pthread_mutex_unlock(&pagecache->cache_lock); *min_rec_lsn= minimum_rec_lsn; DBUG_RETURN(error); err: error= 1; goto end; }
O0
c
pagecache_collect_changed_blocks_with_lsn: pushq %rbp movq %rsp, %rbp subq $0xa0, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movb $0x0, -0x19(%rbp) movq $0x0, -0x28(%rbp) movabsq $0xffffffffffffff, %rax # imm = 0xFFFFFFFFFFFFFF movq %rax, -0x40(%rbp) jmp 0x3f6d3 movq -0x8(%rbp), %rdi addq $0xc8, %rdi leaq 0x112a8d(%rip), %rsi # 0x152172 movl $0x14c2, %edx # imm = 0x14C2 callq 0x3bb40 movl $0x0, -0x2c(%rbp) movq -0x8(%rbp), %rdi addq $0x1b0, %rdi # imm = 0x1B0 movl -0x2c(%rbp), %eax movl %eax, %esi callq 0xdefa0 movq %rax, %rcx movq %rcx, -0x48(%rbp) xorl %eax, %eax cmpq $0x0, %rcx movb %al, -0x91(%rbp) je 0x3f733 movq -0x48(%rbp), %rax cmpb $0x0, 0x10(%rax) setne %al xorb $-0x1, %al movb %al, -0x91(%rbp) movb -0x91(%rbp), %al testb $0x1, %al jne 0x3f73f jmp 0x3f74c jmp 0x3f741 movl -0x2c(%rbp), %eax addl $0x1, %eax movl %eax, -0x2c(%rbp) jmp 0x3f6f6 cmpq $0x0, -0x48(%rbp) jne 0x3f755 jmp 0x3f7aa callq 0xf6060 movq %rax, -0x50(%rbp) movq -0x48(%rbp), %rdi addq $0x8, %rdi movq -0x50(%rbp), %rsi callq 0xff520 jmp 0x3f771 jmp 0x3f773 movq -0x50(%rbp), %rdi addq $0x8, %rdi movq -0x8(%rbp), %rsi addq $0xc8, %rsi leaq 0x1129e5(%rip), %rdx # 0x152172 movl $0x14e1, %ecx # imm = 0x14E1 callq 0x3fac0 movq -0x50(%rbp), %rax cmpq $0x0, 0x88(%rax) jne 0x3f76f jmp 0x3f6ef movl $0x0, -0x2c(%rbp) movl -0x2c(%rbp), %eax movq -0x8(%rbp), %rcx cmpq 0x28(%rcx), %rax jae 0x3f816 movq -0x8(%rbp), %rax movq 0x128(%rax), %rax movl -0x2c(%rbp), %ecx movq (%rax,%rcx,8), %rax movq %rax, -0x58(%rbp) cmpq $0x0, -0x58(%rbp) je 0x3f809 jmp 0x3f7dd jmp 0x3f7df jmp 0x3f7e1 jmp 0x3f7e3 movq -0x58(%rbp), %rax cmpl $0x2, 0x7c(%rax) je 0x3f7ef jmp 0x3f7fb movq -0x28(%rbp), %rax addq $0x1, %rax movq %rax, -0x28(%rbp) movq -0x58(%rbp), %rax movq 0x10(%rax), %rax movq %rax, -0x58(%rbp) jmp 0x3f7d4 jmp 0x3f80b movl -0x2c(%rbp), %eax addl $0x1, %eax movl %eax, -0x2c(%rbp) jmp 0x3f7b1 jmp 0x3f818 jmp 0x3f81a imulq $0xf, -0x28(%rbp), %rcx addq $0x8, %rcx movq -0x10(%rbp), %rax movq %rcx, 0x8(%rax) movq -0x10(%rbp), %rax movq 0x8(%rax), %rsi xorl %edi, %edi movl $0x10, %edx callq 0xf3800 movq %rax, %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) xorl %eax, %eax cmpq %rcx, %rax jne 0x3f855 jmp 0x3faad movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movq %rax, -0x60(%rbp) movq -0x28(%rbp), %rcx movq -0x60(%rbp), %rax movq %rcx, (%rax) movq -0x38(%rbp), %rax addq $0x8, %rax movq %rax, -0x38(%rbp) jmp 0x3f881 cmpq $0x0, -0x28(%rbp) jne 0x3f88d jmp 0x3fa86 movl $0x0, -0x2c(%rbp) movl -0x2c(%rbp), %eax movq -0x8(%rbp), %rcx cmpq 0x28(%rcx), %rax jae 0x3fa84 movq -0x8(%rbp), %rax movq 0x128(%rax), %rax movl -0x2c(%rbp), %ecx movq (%rax,%rcx,8), %rax movq %rax, -0x68(%rbp) cmpq $0x0, -0x68(%rbp) je 0x3fa74 movq -0x68(%rbp), %rax cmpl $0x2, 0x7c(%rax) je 0x3f8d5 jmp 0x3fa63 movq -0x68(%rbp), %rax movq 0x20(%rax), %rax movq 0x58(%rax), %rax movq %rax, -0x78(%rbp) movq -0x78(%rbp), %rax movw 0x620(%rax), %ax movw %ax, -0x6a(%rbp) movq -0x38(%rbp), %rax movq %rax, -0x80(%rbp) movw -0x6a(%rbp), %cx movq -0x80(%rbp), %rax movw %cx, (%rax) movq -0x38(%rbp), %rax addq $0x2, %rax movq %rax, -0x38(%rbp) movq -0x78(%rbp), %rax movl 0x760(%rax), %eax movq -0x68(%rbp), %rcx movq 0x20(%rcx), %rcx cmpl 0x28(%rcx), %eax sete %al andb $0x1, %al movzbl %al, %eax movb %al, %cl movq -0x38(%rbp), %rax movb %cl, (%rax) movq -0x38(%rbp), %rax addq $0x1, %rax movq %rax, -0x38(%rbp) jmp 0x3f946 jmp 0x3f948 movq -0x38(%rbp), %rax movq %rax, -0x88(%rbp) movq -0x68(%rbp), %rax movq 0x20(%rax), %rax movq 0x60(%rax), %rax movl %eax, %ecx movq -0x88(%rbp), %rax movl %ecx, (%rax) movq -0x68(%rbp), %rax movq 0x20(%rax), %rax movq 0x60(%rax), %rax shrq $0x20, %rax movb %al, %cl movq -0x88(%rbp), %rax movb %cl, 0x4(%rax) movq -0x38(%rbp), %rax addq $0x5, %rax movq %rax, -0x38(%rbp) jmp 0x3f994 movq -0x68(%rbp), %rax movq 0x88(%rax), %rax sarq $0x20, %rax movb %al, %cl movq -0x38(%rbp), %rax movb %cl, (%rax) movq -0x68(%rbp), %rax movq 0x88(%rax), %rax sarq $0x20, %rax shrl $0x8, %eax movb %al, %cl movq -0x38(%rbp), %rax movb %cl, 0x1(%rax) movq -0x68(%rbp), %rax movq 0x88(%rax), %rax sarq $0x20, %rax shrl $0x10, %eax movb %al, %cl movq -0x38(%rbp), %rax movb %cl, 0x2(%rax) jmp 0x3f9e3 movq -0x38(%rbp), %rax addq $0x3, %rax movq %rax, -0x90(%rbp) movq -0x68(%rbp), %rcx movabsq $0xffffffff, %rax # imm = 0xFFFFFFFF andq 0x88(%rcx), %rax movl %eax, %ecx movq -0x90(%rbp), %rax movl %ecx, (%rax) jmp 0x3fa14 movq -0x38(%rbp), %rax addq $0x7, %rax movq %rax, -0x38(%rbp) movq -0x68(%rbp), %rax movabsq $0xffffffffffffff, %rcx # imm = 0xFFFFFFFFFFFFFF cmpq %rcx, 0x88(%rax) je 0x3fa61 jmp 0x3fa39 jmp 0x3fa3b movq -0x68(%rbp), %rax movq 0x88(%rax), %rax subq -0x40(%rbp), %rax cmpq $0x0, %rax jge 0x3fa5f movq -0x68(%rbp), %rax movq 0x88(%rax), %rax movq %rax, -0x40(%rbp) jmp 0x3fa61 jmp 0x3fa63 movq -0x68(%rbp), %rax movq 0x10(%rax), %rax movq %rax, -0x68(%rbp) jmp 0x3f8bb jmp 0x3fa76 movl -0x2c(%rbp), %eax addl $0x1, %eax movl %eax, -0x2c(%rbp) jmp 0x3f894 jmp 0x3fa86 movq -0x8(%rbp), %rdi addq $0xc8, %rdi callq 0x3bbb0 movq -0x40(%rbp), %rcx movq -0x18(%rbp), %rax movq %rcx, (%rax) movb -0x19(%rbp), %al addq $0xa0, %rsp popq %rbp retq movb $0x1, -0x19(%rbp) jmp 0x3fa86 nopw %cs:(%rax,%rax)
pagecache_collect_changed_blocks_with_lsn: push rbp mov rbp, rsp sub rsp, 0A0h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_19], 0 mov [rbp+var_28], 0 mov rax, 0FFFFFFFFFFFFFFh mov [rbp+var_40], rax jmp short $+2 loc_3F6D3: mov rdi, [rbp+var_8] add rdi, 0C8h lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 14C2h call inline_mysql_mutex_lock_0 loc_3F6EF: mov [rbp+var_2C], 0 loc_3F6F6: mov rdi, [rbp+var_8] add rdi, 1B0h mov eax, [rbp+var_2C] mov esi, eax call my_hash_element mov rcx, rax mov [rbp+var_48], rcx xor eax, eax cmp rcx, 0 mov [rbp+var_91], al jz short loc_3F733 mov rax, [rbp+var_48] cmp byte ptr [rax+10h], 0 setnz al xor al, 0FFh mov [rbp+var_91], al loc_3F733: mov al, [rbp+var_91] test al, 1 jnz short loc_3F73F jmp short loc_3F74C loc_3F73F: jmp short $+2 loc_3F741: mov eax, [rbp+var_2C] add eax, 1 mov [rbp+var_2C], eax jmp short loc_3F6F6 loc_3F74C: cmp [rbp+var_48], 0 jnz short loc_3F755 jmp short loc_3F7AA loc_3F755: call _my_thread_var mov [rbp+var_50], rax mov rdi, [rbp+var_48] add rdi, 8 mov rsi, [rbp+var_50] call wqueue_add_to_queue loc_3F76F: jmp short $+2 loc_3F771: jmp short $+2 loc_3F773: mov rdi, [rbp+var_50] add rdi, 8 mov rsi, [rbp+var_8] add rsi, 0C8h lea rdx, aWorkspaceLlm4b_1; "/workspace/llm4binary/github2025/eloqsq"... mov ecx, 14E1h call inline_mysql_cond_wait_0 mov rax, [rbp+var_50] cmp qword ptr [rax+88h], 0 jnz short loc_3F76F jmp loc_3F6EF loc_3F7AA: mov [rbp+var_2C], 0 loc_3F7B1: mov eax, [rbp+var_2C] mov rcx, [rbp+var_8] cmp rax, [rcx+28h] jnb short loc_3F816 mov rax, [rbp+var_8] mov rax, [rax+128h] mov ecx, [rbp+var_2C] mov rax, [rax+rcx*8] mov [rbp+var_58], rax loc_3F7D4: cmp [rbp+var_58], 0 jz short loc_3F809 jmp short $+2 loc_3F7DD: jmp short $+2 loc_3F7DF: jmp short $+2 loc_3F7E1: jmp short $+2 loc_3F7E3: mov rax, [rbp+var_58] cmp dword ptr [rax+7Ch], 2 jz short loc_3F7EF jmp short loc_3F7FB loc_3F7EF: mov rax, [rbp+var_28] add rax, 1 mov [rbp+var_28], rax loc_3F7FB: mov rax, [rbp+var_58] mov rax, [rax+10h] mov [rbp+var_58], rax jmp short loc_3F7D4 loc_3F809: jmp short $+2 loc_3F80B: mov eax, [rbp+var_2C] add eax, 1 mov [rbp+var_2C], eax jmp short loc_3F7B1 loc_3F816: jmp short $+2 loc_3F818: jmp short $+2 loc_3F81A: imul rcx, [rbp+var_28], 0Fh add rcx, 8 mov rax, [rbp+var_10] mov [rax+8], rcx mov rax, [rbp+var_10] mov rsi, [rax+8] xor edi, edi mov edx, 10h call my_malloc mov rcx, rax mov rax, [rbp+var_10] mov [rax], rcx xor eax, eax cmp rax, rcx jnz short loc_3F855 jmp loc_3FAAD loc_3F855: mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_38], rax mov rax, [rbp+var_38] mov [rbp+var_60], rax mov rcx, [rbp+var_28] mov rax, [rbp+var_60] mov [rax], rcx mov rax, [rbp+var_38] add rax, 8 mov [rbp+var_38], rax jmp short $+2 loc_3F881: cmp [rbp+var_28], 0 jnz short loc_3F88D jmp loc_3FA86 loc_3F88D: mov [rbp+var_2C], 0 loc_3F894: mov eax, [rbp+var_2C] mov rcx, [rbp+var_8] cmp rax, [rcx+28h] jnb loc_3FA84 mov rax, [rbp+var_8] mov rax, [rax+128h] mov ecx, [rbp+var_2C] mov rax, [rax+rcx*8] mov [rbp+var_68], rax loc_3F8BB: cmp [rbp+var_68], 0 jz loc_3FA74 mov rax, [rbp+var_68] cmp dword ptr [rax+7Ch], 2 jz short loc_3F8D5 jmp loc_3FA63 loc_3F8D5: mov rax, [rbp+var_68] mov rax, [rax+20h] mov rax, [rax+58h] mov [rbp+var_78], rax mov rax, [rbp+var_78] mov ax, [rax+620h] mov [rbp+var_6A], ax mov rax, [rbp+var_38] mov [rbp+var_80], rax mov cx, [rbp+var_6A] mov rax, [rbp+var_80] mov [rax], cx mov rax, [rbp+var_38] add rax, 2 mov [rbp+var_38], rax mov rax, [rbp+var_78] mov eax, [rax+760h] mov rcx, [rbp+var_68] mov rcx, [rcx+20h] cmp eax, [rcx+28h] setz al and al, 1 movzx eax, al mov cl, al mov rax, [rbp+var_38] mov [rax], cl mov rax, [rbp+var_38] add rax, 1 mov [rbp+var_38], rax jmp short $+2 loc_3F946: jmp short $+2 loc_3F948: mov rax, [rbp+var_38] mov [rbp+var_88], rax mov rax, [rbp+var_68] mov rax, [rax+20h] mov rax, [rax+60h] mov ecx, eax mov rax, [rbp+var_88] mov [rax], ecx mov rax, [rbp+var_68] mov rax, [rax+20h] mov rax, [rax+60h] shr rax, 20h mov cl, al mov rax, [rbp+var_88] mov [rax+4], cl mov rax, [rbp+var_38] add rax, 5 mov [rbp+var_38], rax jmp short $+2 loc_3F994: mov rax, [rbp+var_68] mov rax, [rax+88h] sar rax, 20h mov cl, al mov rax, [rbp+var_38] mov [rax], cl mov rax, [rbp+var_68] mov rax, [rax+88h] sar rax, 20h shr eax, 8 mov cl, al mov rax, [rbp+var_38] mov [rax+1], cl mov rax, [rbp+var_68] mov rax, [rax+88h] sar rax, 20h shr eax, 10h mov cl, al mov rax, [rbp+var_38] mov [rax+2], cl jmp short $+2 loc_3F9E3: mov rax, [rbp+var_38] add rax, 3 mov [rbp+var_90], rax mov rcx, [rbp+var_68] mov rax, 0FFFFFFFFh and rax, [rcx+88h] mov ecx, eax mov rax, [rbp+var_90] mov [rax], ecx jmp short $+2 loc_3FA14: mov rax, [rbp+var_38] add rax, 7 mov [rbp+var_38], rax mov rax, [rbp+var_68] mov rcx, 0FFFFFFFFFFFFFFh cmp [rax+88h], rcx jz short loc_3FA61 jmp short $+2 loc_3FA39: jmp short $+2 loc_3FA3B: mov rax, [rbp+var_68] mov rax, [rax+88h] sub rax, [rbp+var_40] cmp rax, 0 jge short loc_3FA5F mov rax, [rbp+var_68] mov rax, [rax+88h] mov [rbp+var_40], rax loc_3FA5F: jmp short $+2 loc_3FA61: jmp short $+2 loc_3FA63: mov rax, [rbp+var_68] mov rax, [rax+10h] mov [rbp+var_68], rax jmp loc_3F8BB loc_3FA74: jmp short $+2 loc_3FA76: mov eax, [rbp+var_2C] add eax, 1 mov [rbp+var_2C], eax jmp loc_3F894 loc_3FA84: jmp short $+2 loc_3FA86: mov rdi, [rbp+var_8] add rdi, 0C8h call inline_mysql_mutex_unlock_0 mov rcx, [rbp+var_40] mov rax, [rbp+var_18] mov [rax], rcx mov al, [rbp+var_19] add rsp, 0A0h pop rbp retn loc_3FAAD: mov [rbp+var_19], 1 jmp short loc_3FA86
char pagecache_collect_changed_blocks_with_lsn(long long a1, long long *a2, long long *a3) { long long v3; // rax char v5; // [rsp+Fh] [rbp-91h] long long v6; // [rsp+28h] [rbp-78h] long long n; // [rsp+38h] [rbp-68h] _QWORD *v8; // [rsp+40h] [rbp-60h] long long k; // [rsp+48h] [rbp-58h] long long v10; // [rsp+50h] [rbp-50h] long long v11; // [rsp+58h] [rbp-48h] long long v12; // [rsp+60h] [rbp-40h] _WORD *v13; // [rsp+68h] [rbp-38h] _WORD *v14; // [rsp+68h] [rbp-38h] unsigned int i; // [rsp+74h] [rbp-2Ch] unsigned int j; // [rsp+74h] [rbp-2Ch] unsigned int m; // [rsp+74h] [rbp-2Ch] long long v18; // [rsp+78h] [rbp-28h] char v19; // [rsp+87h] [rbp-19h] v19 = 0; v18 = 0LL; v12 = 0xFFFFFFFFFFFFFFLL; inline_mysql_mutex_lock_0( a1 + 200, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0x14C2u); while ( 1 ) { for ( i = 0; ; ++i ) { v11 = my_hash_element(a1 + 432, i); v5 = 0; if ( v11 ) v5 = ~(*(_BYTE *)(v11 + 16) != 0); if ( (v5 & 1) == 0 ) break; } if ( !v11 ) break; v10 = my_thread_var(); wqueue_add_to_queue(v11 + 8, v10); do inline_mysql_cond_wait_0( v10 + 8, a1 + 200, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 5345LL); while ( *(_QWORD *)(v10 + 136) ); } for ( j = 0; (unsigned long long)j < *(_QWORD *)(a1 + 40); ++j ) { for ( k = *(_QWORD *)(*(_QWORD *)(a1 + 296) + 8LL * j); k; k = *(_QWORD *)(k + 16) ) { if ( *(_DWORD *)(k + 124) == 2 ) ++v18; } } a2[1] = 15 * v18 + 8; v3 = my_malloc(0LL, a2[1], 16LL); *a2 = v3; if ( v3 ) { v8 = (_QWORD *)*a2; *v8 = v18; v13 = v8 + 1; if ( v18 ) { for ( m = 0; (unsigned long long)m < *(_QWORD *)(a1 + 40); ++m ) { for ( n = *(_QWORD *)(*(_QWORD *)(a1 + 296) + 8LL * m); n; n = *(_QWORD *)(n + 16) ) { if ( *(_DWORD *)(n + 124) == 2 ) { v6 = *(_QWORD *)(*(_QWORD *)(n + 32) + 88LL); *v13 = *(_WORD *)(v6 + 1568); v14 = v13 + 1; *(_BYTE *)v14 = *(_DWORD *)(v6 + 1888) == *(_DWORD *)(*(_QWORD *)(n + 32) + 40LL); *(_DWORD *)((char *)v14 + 1) = *(_QWORD *)(*(_QWORD *)(n + 32) + 96LL); *((_BYTE *)v14 + 5) = BYTE4(*(_QWORD *)(*(_QWORD *)(n + 32) + 96LL)); v14 += 3; *v14 = WORD2(*(_QWORD *)(n + 136)); *((_BYTE *)v14 + 2) = BYTE6(*(_QWORD *)(n + 136)); *(_DWORD *)((char *)v14 + 3) = *(_QWORD *)(n + 136); v13 = (_WORD *)((char *)v14 + 7); if ( *(_QWORD *)(n + 136) != 0xFFFFFFFFFFFFFFLL && *(_QWORD *)(n + 136) - v12 < 0 ) v12 = *(_QWORD *)(n + 136); } } } } } else { v19 = 1; } inline_mysql_mutex_unlock_0(a1 + 200); *a3 = v12; return v19; }
pagecache_collect_changed_blocks_with_lsn: PUSH RBP MOV RBP,RSP SUB RSP,0xa0 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV byte ptr [RBP + -0x19],0x0 MOV qword ptr [RBP + -0x28],0x0 MOV RAX,0xffffffffffffff MOV qword ptr [RBP + -0x40],RAX JMP 0x0013f6d3 LAB_0013f6d3: MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0xc8 LEA RSI,[0x252172] MOV EDX,0x14c2 CALL 0x0013bb40 LAB_0013f6ef: MOV dword ptr [RBP + -0x2c],0x0 LAB_0013f6f6: MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x1b0 MOV EAX,dword ptr [RBP + -0x2c] MOV ESI,EAX CALL 0x001defa0 MOV RCX,RAX MOV qword ptr [RBP + -0x48],RCX XOR EAX,EAX CMP RCX,0x0 MOV byte ptr [RBP + -0x91],AL JZ 0x0013f733 MOV RAX,qword ptr [RBP + -0x48] CMP byte ptr [RAX + 0x10],0x0 SETNZ AL XOR AL,0xff MOV byte ptr [RBP + -0x91],AL LAB_0013f733: MOV AL,byte ptr [RBP + -0x91] TEST AL,0x1 JNZ 0x0013f73f JMP 0x0013f74c LAB_0013f73f: JMP 0x0013f741 LAB_0013f741: MOV EAX,dword ptr [RBP + -0x2c] ADD EAX,0x1 MOV dword ptr [RBP + -0x2c],EAX JMP 0x0013f6f6 LAB_0013f74c: CMP qword ptr [RBP + -0x48],0x0 JNZ 0x0013f755 JMP 0x0013f7aa LAB_0013f755: CALL 0x001f6060 MOV qword ptr [RBP + -0x50],RAX MOV RDI,qword ptr [RBP + -0x48] ADD RDI,0x8 MOV RSI,qword ptr [RBP + -0x50] CALL 0x001ff520 LAB_0013f76f: JMP 0x0013f771 LAB_0013f771: JMP 0x0013f773 LAB_0013f773: MOV RDI,qword ptr [RBP + -0x50] ADD RDI,0x8 MOV RSI,qword ptr [RBP + -0x8] ADD RSI,0xc8 LEA RDX,[0x252172] MOV ECX,0x14e1 CALL 0x0013fac0 MOV RAX,qword ptr [RBP + -0x50] CMP qword ptr [RAX + 0x88],0x0 JNZ 0x0013f76f JMP 0x0013f6ef LAB_0013f7aa: MOV dword ptr [RBP + -0x2c],0x0 LAB_0013f7b1: MOV EAX,dword ptr [RBP + -0x2c] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,qword ptr [RCX + 0x28] JNC 0x0013f816 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x128] MOV ECX,dword ptr [RBP + -0x2c] MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RBP + -0x58],RAX LAB_0013f7d4: CMP qword ptr [RBP + -0x58],0x0 JZ 0x0013f809 JMP 0x0013f7dd LAB_0013f7dd: JMP 0x0013f7df LAB_0013f7df: JMP 0x0013f7e1 LAB_0013f7e1: JMP 0x0013f7e3 LAB_0013f7e3: MOV RAX,qword ptr [RBP + -0x58] CMP dword ptr [RAX + 0x7c],0x2 JZ 0x0013f7ef JMP 0x0013f7fb LAB_0013f7ef: MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x1 MOV qword ptr [RBP + -0x28],RAX LAB_0013f7fb: MOV RAX,qword ptr [RBP + -0x58] MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0x58],RAX JMP 0x0013f7d4 LAB_0013f809: JMP 0x0013f80b LAB_0013f80b: MOV EAX,dword ptr [RBP + -0x2c] ADD EAX,0x1 MOV dword ptr [RBP + -0x2c],EAX JMP 0x0013f7b1 LAB_0013f816: JMP 0x0013f818 LAB_0013f818: JMP 0x0013f81a LAB_0013f81a: IMUL RCX,qword ptr [RBP + -0x28],0xf ADD RCX,0x8 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX + 0x8] XOR EDI,EDI MOV EDX,0x10 CALL 0x001f3800 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX XOR EAX,EAX CMP RAX,RCX JNZ 0x0013f855 JMP 0x0013faad LAB_0013f855: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x60],RAX MOV RCX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x60] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x38] ADD RAX,0x8 MOV qword ptr [RBP + -0x38],RAX JMP 0x0013f881 LAB_0013f881: CMP qword ptr [RBP + -0x28],0x0 JNZ 0x0013f88d JMP 0x0013fa86 LAB_0013f88d: MOV dword ptr [RBP + -0x2c],0x0 LAB_0013f894: MOV EAX,dword ptr [RBP + -0x2c] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,qword ptr [RCX + 0x28] JNC 0x0013fa84 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x128] MOV ECX,dword ptr [RBP + -0x2c] MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RBP + -0x68],RAX LAB_0013f8bb: CMP qword ptr [RBP + -0x68],0x0 JZ 0x0013fa74 MOV RAX,qword ptr [RBP + -0x68] CMP dword ptr [RAX + 0x7c],0x2 JZ 0x0013f8d5 JMP 0x0013fa63 LAB_0013f8d5: MOV RAX,qword ptr [RBP + -0x68] MOV RAX,qword ptr [RAX + 0x20] MOV RAX,qword ptr [RAX + 0x58] MOV qword ptr [RBP + -0x78],RAX MOV RAX,qword ptr [RBP + -0x78] MOV AX,word ptr [RAX + 0x620] MOV word ptr [RBP + -0x6a],AX MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x80],RAX MOV CX,word ptr [RBP + -0x6a] MOV RAX,qword ptr [RBP + -0x80] MOV word ptr [RAX],CX MOV RAX,qword ptr [RBP + -0x38] ADD RAX,0x2 MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x78] MOV EAX,dword ptr [RAX + 0x760] MOV RCX,qword ptr [RBP + -0x68] MOV RCX,qword ptr [RCX + 0x20] CMP EAX,dword ptr [RCX + 0x28] SETZ AL AND AL,0x1 MOVZX EAX,AL MOV CL,AL MOV RAX,qword ptr [RBP + -0x38] MOV byte ptr [RAX],CL MOV RAX,qword ptr [RBP + -0x38] ADD RAX,0x1 MOV qword ptr [RBP + -0x38],RAX JMP 0x0013f946 LAB_0013f946: JMP 0x0013f948 LAB_0013f948: MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x88],RAX MOV RAX,qword ptr [RBP + -0x68] MOV RAX,qword ptr [RAX + 0x20] MOV RAX,qword ptr [RAX + 0x60] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x88] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x68] MOV RAX,qword ptr [RAX + 0x20] MOV RAX,qword ptr [RAX + 0x60] SHR RAX,0x20 MOV CL,AL MOV RAX,qword ptr [RBP + -0x88] MOV byte ptr [RAX + 0x4],CL MOV RAX,qword ptr [RBP + -0x38] ADD RAX,0x5 MOV qword ptr [RBP + -0x38],RAX JMP 0x0013f994 LAB_0013f994: MOV RAX,qword ptr [RBP + -0x68] MOV RAX,qword ptr [RAX + 0x88] SAR RAX,0x20 MOV CL,AL MOV RAX,qword ptr [RBP + -0x38] MOV byte ptr [RAX],CL MOV RAX,qword ptr [RBP + -0x68] MOV RAX,qword ptr [RAX + 0x88] SAR RAX,0x20 SHR EAX,0x8 MOV CL,AL MOV RAX,qword ptr [RBP + -0x38] MOV byte ptr [RAX + 0x1],CL MOV RAX,qword ptr [RBP + -0x68] MOV RAX,qword ptr [RAX + 0x88] SAR RAX,0x20 SHR EAX,0x10 MOV CL,AL MOV RAX,qword ptr [RBP + -0x38] MOV byte ptr [RAX + 0x2],CL JMP 0x0013f9e3 LAB_0013f9e3: MOV RAX,qword ptr [RBP + -0x38] ADD RAX,0x3 MOV qword ptr [RBP + -0x90],RAX MOV RCX,qword ptr [RBP + -0x68] MOV RAX,0xffffffff AND RAX,qword ptr [RCX + 0x88] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x90] MOV dword ptr [RAX],ECX JMP 0x0013fa14 LAB_0013fa14: MOV RAX,qword ptr [RBP + -0x38] ADD RAX,0x7 MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x68] MOV RCX,0xffffffffffffff CMP qword ptr [RAX + 0x88],RCX JZ 0x0013fa61 JMP 0x0013fa39 LAB_0013fa39: JMP 0x0013fa3b LAB_0013fa3b: MOV RAX,qword ptr [RBP + -0x68] MOV RAX,qword ptr [RAX + 0x88] SUB RAX,qword ptr [RBP + -0x40] CMP RAX,0x0 JGE 0x0013fa5f MOV RAX,qword ptr [RBP + -0x68] MOV RAX,qword ptr [RAX + 0x88] MOV qword ptr [RBP + -0x40],RAX LAB_0013fa5f: JMP 0x0013fa61 LAB_0013fa61: JMP 0x0013fa63 LAB_0013fa63: MOV RAX,qword ptr [RBP + -0x68] MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0x68],RAX JMP 0x0013f8bb LAB_0013fa74: JMP 0x0013fa76 LAB_0013fa76: MOV EAX,dword ptr [RBP + -0x2c] ADD EAX,0x1 MOV dword ptr [RBP + -0x2c],EAX JMP 0x0013f894 LAB_0013fa84: JMP 0x0013fa86 LAB_0013fa86: MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0xc8 CALL 0x0013bbb0 MOV RCX,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV AL,byte ptr [RBP + -0x19] ADD RSP,0xa0 POP RBP RET LAB_0013faad: MOV byte ptr [RBP + -0x19],0x1 JMP 0x0013fa86
int1 pagecache_collect_changed_blocks_with_lsn(long param_1,long *param_2,long *param_3) { long lVar1; long lVar2; bool bVar3; long local_70; long local_60; long local_48; long *local_40; uint local_34; long local_30; int1 local_21; local_21 = 0; local_30 = 0; local_48 = 0xffffffffffffff; inline_mysql_mutex_lock (param_1 + 200,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0x14c2); while( true ) { local_34 = 0; while( true ) { lVar1 = my_hash_element(param_1 + 0x1b0,local_34); bVar3 = false; if (lVar1 != 0) { bVar3 = *(char *)(lVar1 + 0x10) == '\0'; } if (!bVar3) break; local_34 = local_34 + 1; } if (lVar1 == 0) break; lVar2 = _my_thread_var(); wqueue_add_to_queue(lVar1 + 8,lVar2); do { inline_mysql_cond_wait (lVar2 + 8,param_1 + 200, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",0x14e1); } while (*(long *)(lVar2 + 0x88) != 0); } for (local_34 = 0; (ulong)local_34 < *(ulong *)(param_1 + 0x28); local_34 = local_34 + 1) { for (local_60 = *(long *)(*(long *)(param_1 + 0x128) + (ulong)local_34 * 8); local_60 != 0; local_60 = *(long *)(local_60 + 0x10)) { if (*(int *)(local_60 + 0x7c) == 2) { local_30 = local_30 + 1; } } } param_2[1] = local_30 * 0xf + 8; lVar1 = my_malloc(0,param_2[1],0x10); *param_2 = lVar1; if (lVar1 == 0) { local_21 = 1; } else { param_2 = (long *)*param_2; *param_2 = local_30; local_40 = param_2 + 1; if (local_30 != 0) { for (local_34 = 0; (ulong)local_34 < *(ulong *)(param_1 + 0x28); local_34 = local_34 + 1) { for (local_70 = *(long *)(*(long *)(param_1 + 0x128) + (ulong)local_34 * 8); local_70 != 0; local_70 = *(long *)(local_70 + 0x10)) { if (*(int *)(local_70 + 0x7c) == 2) { lVar1 = *(long *)(*(long *)(local_70 + 0x20) + 0x58); *(int2 *)local_40 = *(int2 *)(lVar1 + 0x620); *(bool *)((long)local_40 + 2) = *(int *)(lVar1 + 0x760) == *(int *)(*(long *)(local_70 + 0x20) + 0x28); *(int *)((long)local_40 + 3) = (int)*(int8 *)(*(long *)(local_70 + 0x20) + 0x60); *(char *)((long)local_40 + 7) = (char)((ulong)*(int8 *)(*(long *)(local_70 + 0x20) + 0x60) >> 0x20); *(char *)(local_40 + 1) = (char)((ulong)*(int8 *)(local_70 + 0x88) >> 0x20); *(char *)((long)local_40 + 9) = (char)((ulong)*(int8 *)(local_70 + 0x88) >> 0x28); *(char *)((long)local_40 + 10) = (char)((ulong)*(int8 *)(local_70 + 0x88) >> 0x30) ; *(int *)((long)local_40 + 0xb) = (int)*(int8 *)(local_70 + 0x88); local_40 = (long *)((long)local_40 + 0xf); if ((*(long *)(local_70 + 0x88) != 0xffffffffffffff) && (*(long *)(local_70 + 0x88) - local_48 < 0)) { local_48 = *(long *)(local_70 + 0x88); } } } } } } inline_mysql_mutex_unlock(param_1 + 200); *param_3 = local_48; return local_21; }
19,405
JS_ReadObjectValue
bluesky950520[P]quickjs/quickjs.c
static JSValue JS_ReadObjectValue(BCReaderState *s) { JSContext *ctx = s->ctx; JSValue val, obj = JS_UNDEFINED; val = JS_ReadObjectRec(s); if (JS_IsException(val)) goto fail; obj = JS_ToObject(ctx, val); if (JS_IsException(obj)) goto fail; if (BC_add_object_ref(s, obj)) goto fail; JS_FreeValue(ctx, val); return obj; fail: JS_FreeValue(ctx, val); JS_FreeValue(ctx, obj); return JS_EXCEPTION; }
O0
c
JS_ReadObjectValue: subq $0x68, %rsp movq %rdi, 0x50(%rsp) movq 0x50(%rsp), %rax movq (%rax), %rax movq %rax, 0x48(%rsp) movq 0x90fe3(%rip), %rax # 0x10d980 movq %rax, 0x28(%rsp) movq 0x90fdf(%rip), %rax # 0x10d988 movq %rax, 0x30(%rsp) movq 0x50(%rsp), %rdi callq 0x4c0a0 movq %rax, 0x18(%rsp) movq %rdx, 0x20(%rsp) movq 0x18(%rsp), %rax movq %rax, 0x38(%rsp) movq 0x20(%rsp), %rax movq %rax, 0x40(%rsp) movq 0x38(%rsp), %rdi movq 0x40(%rsp), %rsi callq 0x23cc0 cmpl $0x0, %eax je 0x7c9ef jmp 0x7ca7c movq 0x48(%rsp), %rdi movq 0x38(%rsp), %rsi movq 0x40(%rsp), %rdx callq 0x37770 movq %rax, 0x8(%rsp) movq %rdx, 0x10(%rsp) movq 0x8(%rsp), %rax movq %rax, 0x28(%rsp) movq 0x10(%rsp), %rax movq %rax, 0x30(%rsp) movq 0x28(%rsp), %rdi movq 0x30(%rsp), %rsi callq 0x23cc0 cmpl $0x0, %eax je 0x7ca37 jmp 0x7ca7c movq 0x50(%rsp), %rdi movq 0x28(%rsp), %rsi movq 0x30(%rsp), %rdx callq 0x7d440 cmpl $0x0, %eax je 0x7ca52 jmp 0x7ca7c movq 0x48(%rsp), %rdi movq 0x38(%rsp), %rsi movq 0x40(%rsp), %rdx callq 0x23c90 movq 0x28(%rsp), %rax movq %rax, 0x58(%rsp) movq 0x30(%rsp), %rax movq %rax, 0x60(%rsp) jmp 0x7cab5 movq 0x48(%rsp), %rdi movq 0x38(%rsp), %rsi movq 0x40(%rsp), %rdx callq 0x23c90 movq 0x48(%rsp), %rdi movq 0x28(%rsp), %rsi movq 0x30(%rsp), %rdx callq 0x23c90 movl $0x0, 0x58(%rsp) movq $0x6, 0x60(%rsp) movq 0x58(%rsp), %rax movq 0x60(%rsp), %rdx addq $0x68, %rsp retq nopw %cs:(%rax,%rax)
JS_ReadObjectValue: sub rsp, 68h mov [rsp+68h+var_18], rdi mov rax, [rsp+68h+var_18] mov rax, [rax] mov [rsp+68h+var_20], rax mov rax, cs:qword_10D980 mov [rsp+68h+var_40], rax mov rax, cs:qword_10D988 mov [rsp+68h+var_38], rax mov rdi, [rsp+68h+var_18] call JS_ReadObjectRec mov [rsp+68h+var_50], rax mov [rsp+68h+var_48], rdx mov rax, [rsp+68h+var_50] mov [rsp+68h+var_30], rax mov rax, [rsp+68h+var_48] mov [rsp+68h+var_28], rax mov rdi, [rsp+68h+var_30] mov rsi, [rsp+68h+var_28] call JS_IsException_1 cmp eax, 0 jz short loc_7C9EF jmp loc_7CA7C loc_7C9EF: mov rdi, [rsp+68h+var_20] mov rsi, [rsp+68h+var_30] mov rdx, [rsp+68h+var_28] call JS_ToObject mov [rsp+68h+var_60], rax mov [rsp+68h+var_58], rdx mov rax, [rsp+68h+var_60] mov [rsp+68h+var_40], rax mov rax, [rsp+68h+var_58] mov [rsp+68h+var_38], rax mov rdi, [rsp+68h+var_40] mov rsi, [rsp+68h+var_38] call JS_IsException_1 cmp eax, 0 jz short loc_7CA37 jmp short loc_7CA7C loc_7CA37: mov rdi, [rsp+68h+var_18] mov rsi, [rsp+68h+var_40] mov rdx, [rsp+68h+var_38] call BC_add_object_ref cmp eax, 0 jz short loc_7CA52 jmp short loc_7CA7C loc_7CA52: mov rdi, [rsp+68h+var_20] mov rsi, [rsp+68h+var_30] mov rdx, [rsp+68h+var_28] call JS_FreeValue mov rax, [rsp+68h+var_40] mov [rsp+68h+var_10], rax mov rax, [rsp+68h+var_38] mov [rsp+68h+var_8], rax jmp short loc_7CAB5 loc_7CA7C: mov rdi, [rsp+68h+var_20] mov rsi, [rsp+68h+var_30] mov rdx, [rsp+68h+var_28] call JS_FreeValue mov rdi, [rsp+68h+var_20] mov rsi, [rsp+68h+var_40] mov rdx, [rsp+68h+var_38] call JS_FreeValue mov dword ptr [rsp+68h+var_10], 0 mov [rsp+68h+var_8], 6 loc_7CAB5: mov rax, [rsp+68h+var_10] mov rdx, [rsp+68h+var_8] add rsp, 68h retn
_DWORD * JS_ReadObjectValue( long long *a1, __m128 a2, __m128 a3, __m128 a4, __m128 a5, double a6, double a7, __m128 a8, __m128 a9) { long long v9; // rdx long long v10; // rcx long long v11; // r8 long long v12; // r9 __m128 v13; // xmm4 __m128 v14; // xmm5 long long v15; // rdx _DWORD *v17; // [rsp+8h] [rbp-60h] _DWORD *ObjectRec; // [rsp+18h] [rbp-50h] long long v19; // [rsp+28h] [rbp-40h] long long v20; // [rsp+30h] [rbp-38h] long long v21; // [rsp+40h] [rbp-28h] long long v22; // [rsp+48h] [rbp-20h] long long v23; // [rsp+58h] [rbp-10h] v22 = *a1; v19 = 0LL; v20 = 3LL; ObjectRec = (_DWORD *)JS_ReadObjectRec(a1, a2, a3, a4, a5, a6, a7, a8, a9); v21 = v9; if ( JS_IsException_1((long long)ObjectRec, v9) || (v17 = JS_ToObject(v22, ObjectRec, v21, a2, a3, a4, a5, v13, v14, a8, a9, v10, v11, v12), v19 = (long long)v17, v20 = v15, JS_IsException_1((long long)v17, v15)) || (unsigned int)BC_add_object_ref(a1, v17, v20) ) { JS_FreeValue(v22, (long long)ObjectRec, v21); JS_FreeValue(v22, v19, v20); LODWORD(v23) = 0; } else { JS_FreeValue(v22, (long long)ObjectRec, v21); return v17; } return (_DWORD *)v23; }
JS_ReadObjectValue: SUB RSP,0x68 MOV qword ptr [RSP + 0x50],RDI MOV RAX,qword ptr [RSP + 0x50] MOV RAX,qword ptr [RAX] MOV qword ptr [RSP + 0x48],RAX MOV RAX,qword ptr [0x0020d980] MOV qword ptr [RSP + 0x28],RAX MOV RAX,qword ptr [0x0020d988] MOV qword ptr [RSP + 0x30],RAX MOV RDI,qword ptr [RSP + 0x50] CALL 0x0014c0a0 MOV qword ptr [RSP + 0x18],RAX MOV qword ptr [RSP + 0x20],RDX MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x38],RAX MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x40],RAX MOV RDI,qword ptr [RSP + 0x38] MOV RSI,qword ptr [RSP + 0x40] CALL 0x00123cc0 CMP EAX,0x0 JZ 0x0017c9ef JMP 0x0017ca7c LAB_0017c9ef: MOV RDI,qword ptr [RSP + 0x48] MOV RSI,qword ptr [RSP + 0x38] MOV RDX,qword ptr [RSP + 0x40] CALL 0x00137770 MOV qword ptr [RSP + 0x8],RAX MOV qword ptr [RSP + 0x10],RDX MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x28],RAX MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x30],RAX MOV RDI,qword ptr [RSP + 0x28] MOV RSI,qword ptr [RSP + 0x30] CALL 0x00123cc0 CMP EAX,0x0 JZ 0x0017ca37 JMP 0x0017ca7c LAB_0017ca37: MOV RDI,qword ptr [RSP + 0x50] MOV RSI,qword ptr [RSP + 0x28] MOV RDX,qword ptr [RSP + 0x30] CALL 0x0017d440 CMP EAX,0x0 JZ 0x0017ca52 JMP 0x0017ca7c LAB_0017ca52: MOV RDI,qword ptr [RSP + 0x48] MOV RSI,qword ptr [RSP + 0x38] MOV RDX,qword ptr [RSP + 0x40] CALL 0x00123c90 MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x58],RAX MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x60],RAX JMP 0x0017cab5 LAB_0017ca7c: MOV RDI,qword ptr [RSP + 0x48] MOV RSI,qword ptr [RSP + 0x38] MOV RDX,qword ptr [RSP + 0x40] CALL 0x00123c90 MOV RDI,qword ptr [RSP + 0x48] MOV RSI,qword ptr [RSP + 0x28] MOV RDX,qword ptr [RSP + 0x30] CALL 0x00123c90 MOV dword ptr [RSP + 0x58],0x0 MOV qword ptr [RSP + 0x60],0x6 LAB_0017cab5: MOV RAX,qword ptr [RSP + 0x58] MOV RDX,qword ptr [RSP + 0x60] ADD RSP,0x68 RET
int1 [16] JS_ReadObjectValue(int8 *param_1) { int8 uVar1; int iVar2; int1 auVar5 [16]; int1 auVar6 [16]; int8 local_40; int8 local_38; int4 local_10; int4 uStack_c; int8 local_8; int8 uVar3; int8 uVar4; uVar1 = *param_1; auVar6._8_8_ = DAT_0020d988; auVar6._0_8_ = DAT_0020d980; auVar5 = JS_ReadObjectRec(param_1); uVar4 = auVar5._8_8_; uVar3 = auVar5._0_8_; iVar2 = JS_IsException(uVar3,uVar4); if (iVar2 == 0) { auVar6 = JS_ToObject(uVar1,uVar3,uVar4); local_8 = auVar6._8_8_; iVar2 = JS_IsException(auVar6._0_8_,local_8); if ((iVar2 == 0) && (iVar2 = BC_add_object_ref(param_1,auVar6._0_8_,local_8), iVar2 == 0)) { JS_FreeValue(uVar1,uVar3,uVar4); local_10 = auVar6._0_4_; uStack_c = auVar6._4_4_; goto LAB_0017cab5; } } local_38 = auVar6._8_8_; local_40 = auVar6._0_8_; JS_FreeValue(uVar1,uVar3,uVar4); JS_FreeValue(uVar1,local_40,local_38); local_10 = 0; local_8 = 6; LAB_0017cab5: auVar5._4_4_ = uStack_c; auVar5._0_4_ = local_10; auVar5._8_8_ = local_8; return auVar5; }
19,406
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_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::__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)
monkey531[P]llama/common/json.hpp
static const char* token_type_name(const token_type t) noexcept { switch (t) { case token_type::uninitialized: return "<uninitialized>"; case token_type::literal_true: return "true literal"; case token_type::literal_false: return "false literal"; case token_type::literal_null: return "null literal"; case token_type::value_string: return "string literal"; case token_type::value_unsigned: case token_type::value_integer: case token_type::value_float: return "number literal"; case token_type::begin_array: return "'['"; case token_type::begin_object: return "'{'"; case token_type::end_array: return "']'"; case token_type::end_object: return "'}'"; case token_type::name_separator: return "':'"; case token_type::value_separator: return "','"; case token_type::parse_error: return "<parse error>"; case token_type::end_of_input: return "end of input"; case token_type::literal_or_value: return "'[', '{', or a literal"; // LCOV_EXCL_START default: // catch non-enum values return "unknown token"; // LCOV_EXCL_STOP } }
O2
cpp
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_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::__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): cmpl $0x10, %edi ja 0x45a66 movl %edi, %eax leaq 0x6e29a(%rip), %rcx # 0xb3cf8 movslq (%rcx,%rax,4), %rax addq %rcx, %rax retq leaq 0x6d49d(%rip), %rax # 0xb2f0a retq
_ZN8nlohmann16json_abi_v3_11_36detail10lexer_baseINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15token_type_nameENSG_10token_typeE: cmp edi, 10h ja short loc_45A66 mov eax, edi lea rcx, unk_B3CF8 movsxd rax, dword ptr [rcx+rax*4] add rax, rcx retn loc_45A66: lea rax, aUnknownToken; "unknown token" retn
const char * 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( unsigned int a1) { if ( a1 > 0x10 ) return "unknown token"; else return (char *)dword_B3CF8 + dword_B3CF8[a1]; }
token_type_name: CMP EDI,0x10 JA 0x00145a66 MOV EAX,EDI LEA RCX,[0x1b3cf8] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX RET LAB_00145a66: LEA RAX,[0x1b2f0a] RET
/* 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_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::__cxx11::string, 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) */ char * 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_name(uint param_1) { if (param_1 < 0x11) { return &DAT_001b3cf8 + *(int *)(&DAT_001b3cf8 + (ulong)param_1 * 4); } return "unknown token"; }
19,407
my_pread
eloqsql/mysys/my_pread.c
size_t my_pread(File Filedes, uchar *Buffer, size_t Count, my_off_t offset, myf MyFlags) { size_t readbytes, save_count= 0; DBUG_ENTER("my_pread"); DBUG_PRINT("my",("fd: %d Seek: %llu Buffer: %p Count: %lu MyFlags: %lu", Filedes, (ulonglong)offset, Buffer, (ulong)Count, MyFlags)); if (!(MyFlags & (MY_WME | MY_FAE | MY_FNABP))) MyFlags|= my_global_flags; for (;;) { errno= 0; /* Linux, Windows don't reset this on EOF/success */ #ifdef _WIN32 readbytes= my_win_pread(Filedes, Buffer, Count, offset); #else readbytes= pread(Filedes, Buffer, Count, offset); #endif if (readbytes != Count) { /* We should never read with wrong file descriptor! */ DBUG_ASSERT(readbytes != (size_t)-1 || errno != EBADF); my_errno= errno; if (errno == 0 || (readbytes != (size_t) -1 && (MyFlags & (MY_NABP | MY_FNABP)))) my_errno= HA_ERR_FILE_TOO_SHORT; DBUG_PRINT("warning",("Read only %d bytes off %u from %d, errno: %d", (int) readbytes, (uint) Count,Filedes,my_errno)); if ((readbytes == 0 || readbytes == (size_t) -1) && errno == EINTR) { DBUG_PRINT("debug", ("my_pread() was interrupted and returned %d", (int) readbytes)); continue; /* Interrupted */ } /* Do a read retry if we didn't get enough data on first read */ if (readbytes != (size_t) -1 && readbytes != 0 && (MyFlags & MY_FULL_IO)) { Buffer+= readbytes; Count-= readbytes; save_count+= readbytes; offset+= readbytes; continue; } if (MyFlags & (MY_WME | MY_FAE | MY_FNABP)) { if (readbytes == (size_t) -1) my_error(EE_READ, MYF(ME_BELL | (MyFlags & (ME_NOTE | ME_ERROR_LOG))), my_filename(Filedes),my_errno); else if (MyFlags & (MY_NABP | MY_FNABP)) my_error(EE_EOFERR, MYF(ME_BELL | (MyFlags & (ME_NOTE | ME_ERROR_LOG))), my_filename(Filedes),my_errno); } if (readbytes == (size_t) -1 || (MyFlags & (MY_FNABP | MY_NABP))) DBUG_RETURN(MY_FILE_ERROR); /* Return with error */ } if (MyFlags & (MY_NABP | MY_FNABP)) readbytes= 0; /* Read went ok; Return 0 */ else readbytes+= save_count; DBUG_RETURN(readbytes); } }
O3
c
my_pread: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %rcx, -0x58(%rbp) movq %rdx, -0x38(%rbp) movq %rsi, -0x50(%rbp) movl %edi, -0x2c(%rbp) movq $0x0, -0x40(%rbp) movl $0x0, %r15d testb $0x1a, %r8b jne 0x30936 leaq 0x348b65(%rip), %rax # 0x379498 movq (%rax), %r15 orq %r8, %r15 callq 0x24050 movq %rax, %r14 movq %r15, -0x48(%rbp) movl $0x0, (%r14) movl -0x2c(%rbp), %edi movq -0x50(%rbp), %rsi movq -0x38(%rbp), %rbx movq %rbx, %rdx movq -0x58(%rbp), %rcx callq 0x24630 subq %rax, %rbx je 0x30a2d movq %rax, %r12 testb $0x6, %r15b sete %r13b movl (%r14), %r15d callq 0x3193e movl %r15d, (%rax) cmpq $-0x1, %r12 sete %al cmpl $0x0, (%r14) je 0x30994 orb %r13b, %al jne 0x3099f callq 0x3193e movl $0xaf, (%rax) leaq 0x1(%r12), %rax cmpq $0x1, %rax ja 0x309b6 cmpl $0x4, (%r14) movq -0x48(%rbp), %r15 je 0x30945 jmp 0x309de movq -0x48(%rbp), %r15 btl $0x9, %r15d jae 0x309d6 addq %r12, -0x50(%rbp) addq %r12, -0x40(%rbp) addq %r12, -0x58(%rbp) movq %rbx, -0x38(%rbp) jmp 0x30945 movq $0x0, -0x40(%rbp) testb $0x1a, %r15b je 0x30a14 cmpq $-0x1, %r12 je 0x30a41 testb $0x6, %r15b je 0x30a14 andl $0x440, %r15d # imm = 0x440 orq $0x4, %r15 movl -0x2c(%rbp), %edi callq 0x367dc movq %rax, %rbx callq 0x3193e movl (%rax), %ecx movl $0x9, %edi jmp 0x30a63 movq $-0x1, %rax cmpq $-0x1, %r12 je 0x30a77 movl %r15d, %ecx movq %r12, -0x38(%rbp) andl $0x6, %ecx jne 0x30a77 movq -0x40(%rbp), %rcx addq -0x38(%rbp), %rcx xorl %eax, %eax testb $0x6, %r15b cmoveq %rcx, %rax jmp 0x30a77 andl $0x440, %r15d # imm = 0x440 orq $0x4, %r15 movl -0x2c(%rbp), %edi callq 0x367dc movq %rax, %rbx callq 0x3193e movl (%rax), %ecx movl $0x2, %edi movq %r15, %rsi movq %rbx, %rdx xorl %eax, %eax callq 0x2cce7 movq $-0x1, %rax addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
my_pread: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov [rbp+var_58], rcx mov [rbp+var_38], rdx mov [rbp+var_50], rsi mov [rbp+var_2C], edi mov [rbp+var_40], 0 mov r15d, 0 test r8b, 1Ah jnz short loc_30936 lea rax, my_global_flags mov r15, [rax] loc_30936: or r15, r8 call ___errno_location mov r14, rax mov [rbp+var_48], r15 loc_30945: mov dword ptr [r14], 0 mov edi, [rbp+var_2C] mov rsi, [rbp+var_50] mov rbx, [rbp+var_38] mov rdx, rbx mov rcx, [rbp+var_58] call _pread64 sub rbx, rax jz loc_30A2D mov r12, rax test r15b, 6 setz r13b mov r15d, [r14] call _my_thread_var mov [rax], r15d cmp r12, 0FFFFFFFFFFFFFFFFh setz al cmp dword ptr [r14], 0 jz short loc_30994 or al, r13b jnz short loc_3099F loc_30994: call _my_thread_var mov dword ptr [rax], 0AFh loc_3099F: lea rax, [r12+1] cmp rax, 1 ja short loc_309B6 cmp dword ptr [r14], 4 mov r15, [rbp+var_48] jz short loc_30945 jmp short loc_309DE loc_309B6: mov r15, [rbp+var_48] bt r15d, 9 jnb short loc_309D6 add [rbp+var_50], r12 add [rbp+var_40], r12 add [rbp+var_58], r12 mov [rbp+var_38], rbx jmp loc_30945 loc_309D6: mov [rbp+var_40], 0 loc_309DE: test r15b, 1Ah jz short loc_30A14 cmp r12, 0FFFFFFFFFFFFFFFFh jz short loc_30A41 test r15b, 6 jz short loc_30A14 and r15d, 440h or r15, 4 mov edi, [rbp+var_2C] call my_filename mov rbx, rax call _my_thread_var mov ecx, [rax] mov edi, 9 jmp short loc_30A63 loc_30A14: mov rax, 0FFFFFFFFFFFFFFFFh cmp r12, 0FFFFFFFFFFFFFFFFh jz short loc_30A77 mov ecx, r15d mov [rbp+var_38], r12 and ecx, 6 jnz short loc_30A77 loc_30A2D: mov rcx, [rbp+var_40] add rcx, [rbp+var_38] xor eax, eax test r15b, 6 cmovz rax, rcx jmp short loc_30A77 loc_30A41: and r15d, 440h or r15, 4 mov edi, [rbp+var_2C] call my_filename mov rbx, rax call _my_thread_var mov ecx, [rax] mov edi, 2 loc_30A63: mov rsi, r15 mov rdx, rbx xor eax, eax call my_error mov rax, 0FFFFFFFFFFFFFFFFh loc_30A77: add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long my_pread(long long a1, long long a2, long long a3, long long a4, __int16 a5) { __int16 v5; // r15 __int16 v6; // r15 int *v7; // r14 long long v8; // rax long long v9; // rdx long long v10; // rcx long long v11; // r8 long long v12; // r9 long long v13; // rbx long long v14; // r12 bool v15; // r13 int v16; // r15d long long v17; // rdx long long v18; // rcx long long v19; // r8 long long v20; // r9 long long v21; // r15 long long v22; // rbx long long v23; // rdx long long v24; // rcx long long v25; // r8 long long v26; // r9 long long v27; // rcx unsigned int v28; // edi long long result; // rax long long v30; // rdx long long v31; // rcx long long v32; // r8 long long v33; // r9 __int16 v36; // [rsp+18h] [rbp-48h] long long v37; // [rsp+20h] [rbp-40h] v37 = 0LL; v5 = 0; if ( (a5 & 0x1A) == 0 ) v5 = my_global_flags; v6 = a5 | v5; v7 = (int *)__errno_location(a1); v36 = v6; while ( 1 ) { while ( 1 ) { *v7 = 0; v8 = pread64((unsigned int)a1, a2, a3, a4); v13 = a3 - v8; if ( a3 == v8 ) goto LABEL_20; v14 = v8; v15 = (v6 & 6) == 0; v16 = *v7; *(_DWORD *)my_thread_var((unsigned int)a1, a2, v9, v10, v11, v12) = v16; if ( !*v7 || !v15 && v14 != -1 ) *(_DWORD *)my_thread_var((unsigned int)a1, a2, v17, v18, v19, v20) = 175; if ( (unsigned long long)(v14 + 1) > 1 ) break; v6 = v36; if ( *v7 != 4 ) goto LABEL_14; } v6 = v36; if ( (v36 & 0x200) == 0 ) break; a2 += v14; v37 += v14; a4 += v14; a3 = v13; } v37 = 0LL; LABEL_14: if ( (v6 & 0x1A) != 0 ) { if ( v14 == -1 ) { v21 = v6 & 0x440 | 4LL; v22 = my_filename((unsigned int)a1); v27 = *(unsigned int *)my_thread_var((unsigned int)a1, a2, v30, v31, v32, v33); v28 = 2; goto LABEL_24; } if ( (v6 & 6) != 0 ) { v21 = v6 & 0x440 | 4LL; v22 = my_filename((unsigned int)a1); v27 = *(unsigned int *)my_thread_var((unsigned int)a1, a2, v23, v24, v25, v26); v28 = 9; LABEL_24: my_error(v28, v21, v22, v27); return -1LL; } } result = -1LL; if ( v14 != -1 ) { a3 = v14; if ( (v6 & 6) == 0 ) { LABEL_20: result = 0LL; if ( (v6 & 6) == 0 ) return a3 + v37; } } return result; }
my_pread: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV qword ptr [RBP + -0x58],RCX MOV qword ptr [RBP + -0x38],RDX MOV qword ptr [RBP + -0x50],RSI MOV dword ptr [RBP + -0x2c],EDI MOV qword ptr [RBP + -0x40],0x0 MOV R15D,0x0 TEST R8B,0x1a JNZ 0x00130936 LEA RAX,[0x479498] MOV R15,qword ptr [RAX] LAB_00130936: OR R15,R8 CALL 0x00124050 MOV R14,RAX MOV qword ptr [RBP + -0x48],R15 LAB_00130945: MOV dword ptr [R14],0x0 MOV EDI,dword ptr [RBP + -0x2c] MOV RSI,qword ptr [RBP + -0x50] MOV RBX,qword ptr [RBP + -0x38] MOV RDX,RBX MOV RCX,qword ptr [RBP + -0x58] CALL 0x00124630 SUB RBX,RAX JZ 0x00130a2d MOV R12,RAX TEST R15B,0x6 SETZ R13B MOV R15D,dword ptr [R14] CALL 0x0013193e MOV dword ptr [RAX],R15D CMP R12,-0x1 SETZ AL CMP dword ptr [R14],0x0 JZ 0x00130994 OR AL,R13B JNZ 0x0013099f LAB_00130994: CALL 0x0013193e MOV dword ptr [RAX],0xaf LAB_0013099f: LEA RAX,[R12 + 0x1] CMP RAX,0x1 JA 0x001309b6 CMP dword ptr [R14],0x4 MOV R15,qword ptr [RBP + -0x48] JZ 0x00130945 JMP 0x001309de LAB_001309b6: MOV R15,qword ptr [RBP + -0x48] BT R15D,0x9 JNC 0x001309d6 ADD qword ptr [RBP + -0x50],R12 ADD qword ptr [RBP + -0x40],R12 ADD qword ptr [RBP + -0x58],R12 MOV qword ptr [RBP + -0x38],RBX JMP 0x00130945 LAB_001309d6: MOV qword ptr [RBP + -0x40],0x0 LAB_001309de: TEST R15B,0x1a JZ 0x00130a14 CMP R12,-0x1 JZ 0x00130a41 TEST R15B,0x6 JZ 0x00130a14 AND R15D,0x440 OR R15,0x4 MOV EDI,dword ptr [RBP + -0x2c] CALL 0x001367dc MOV RBX,RAX CALL 0x0013193e MOV ECX,dword ptr [RAX] MOV EDI,0x9 JMP 0x00130a63 LAB_00130a14: MOV RAX,-0x1 CMP R12,-0x1 JZ 0x00130a77 MOV ECX,R15D MOV qword ptr [RBP + -0x38],R12 AND ECX,0x6 JNZ 0x00130a77 LAB_00130a2d: MOV RCX,qword ptr [RBP + -0x40] ADD RCX,qword ptr [RBP + -0x38] XOR EAX,EAX TEST R15B,0x6 CMOVZ RAX,RCX JMP 0x00130a77 LAB_00130a41: AND R15D,0x440 OR R15,0x4 MOV EDI,dword ptr [RBP + -0x2c] CALL 0x001367dc MOV RBX,RAX CALL 0x0013193e MOV ECX,dword ptr [RAX] MOV EDI,0x2 LAB_00130a63: MOV RSI,R15 MOV RDX,RBX XOR EAX,EAX CALL 0x0012cce7 MOV RAX,-0x1 LAB_00130a77: ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
long my_pread(int param_1,void *param_2,size_t param_3,long param_4,ulong param_5) { int iVar1; int4 uVar2; int *piVar3; size_t sVar4; int *piVar5; int4 *puVar6; int8 uVar7; long lVar8; int8 uVar9; ulong uVar10; long local_60; void *local_58; long local_48; size_t local_40; local_48 = 0; uVar10 = 0; if ((param_5 & 0x1a) == 0) { uVar10 = my_global_flags; } uVar10 = uVar10 | param_5; piVar3 = __errno_location(); local_60 = param_4; local_58 = param_2; local_40 = param_3; do { while( true ) { *piVar3 = 0; sVar4 = pread64(param_1,local_58,local_40,local_60); if (local_40 - sVar4 == 0) goto LAB_00130a2d; iVar1 = *piVar3; piVar5 = (int *)_my_thread_var(); *piVar5 = iVar1; if ((*piVar3 == 0) || (sVar4 != 0xffffffffffffffff && (uVar10 & 6) != 0)) { puVar6 = (int4 *)_my_thread_var(); *puVar6 = 0xaf; } if (sVar4 + 1 < 2) break; if (((uint)uVar10 >> 9 & 1) == 0) { local_48 = 0; goto LAB_001309de; } local_58 = (void *)((long)local_58 + sVar4); local_48 = local_48 + sVar4; local_60 = local_60 + sVar4; local_40 = local_40 - sVar4; } } while (*piVar3 == 4); LAB_001309de: if ((uVar10 & 0x1a) == 0) { LAB_00130a14: lVar8 = -1; if ((sVar4 != 0xffffffffffffffff) && (local_40 = sVar4, (uVar10 & 6) == 0)) { LAB_00130a2d: lVar8 = 0; if ((uVar10 & 6) == 0) { lVar8 = local_48 + local_40; } } } else { if (sVar4 == 0xffffffffffffffff) { uVar7 = my_filename(param_1); puVar6 = (int4 *)_my_thread_var(); uVar2 = *puVar6; uVar9 = 2; } else { if ((uVar10 & 6) == 0) goto LAB_00130a14; uVar7 = my_filename(param_1); puVar6 = (int4 *)_my_thread_var(); uVar2 = *puVar6; uVar9 = 9; } my_error(uVar9,(uint)uVar10 & 0x440 | 4,uVar7,uVar2); lVar8 = -1; } return lVar8; }
19,408
my_hash_init2
eloqsql/mysys/hash.c
my_bool my_hash_init2(PSI_memory_key psi_key, HASH *hash, uint growth_size, CHARSET_INFO *charset, ulong size, size_t key_offset, size_t key_length, my_hash_get_key get_key, my_hash_function hash_function, void (*free_element)(void*), uint flags) { my_bool res; DBUG_ENTER("my_hash_init2"); DBUG_PRINT("enter",("hash:%p size: %u", hash, (uint) size)); hash->records=0; hash->key_offset=key_offset; hash->key_length=key_length; hash->blength=1; hash->get_key=get_key; hash->hash_function= hash_function ? hash_function : my_hash_sort; hash->free=free_element; hash->flags=flags; hash->charset=charset; res= init_dynamic_array2(psi_key, &hash->array, sizeof(HASH_LINK), NULL, size, growth_size, MYF((flags & HASH_THREAD_SPECIFIC ? MY_THREAD_SPECIFIC : 0))); DBUG_RETURN(res); }
O3
c
my_hash_init2: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx subq $0x10, %rsp movl %edx, %eax movl 0x30(%rbp), %edx movq 0x28(%rbp), %r10 movq 0x20(%rbp), %r11 movq 0x18(%rbp), %rbx movq 0x10(%rbp), %r14 movq $0x0, 0x18(%rsi) movq %r9, (%rsi) movq %r14, 0x8(%rsi) movq $0x1, 0x10(%rsi) movq %rbx, 0x50(%rsi) testq %r11, %r11 jne 0x29624 leaq -0x7c(%rip), %r11 # 0x295a8 movq %r11, 0x58(%rsi) movq %r10, 0x60(%rsi) movl %edx, 0x20(%rsi) movq %rcx, 0x68(%rsi) addq $0x28, %rsi andl $0x2, %edx shll $0xf, %edx movq %rdx, (%rsp) movl $0x10, %edx xorl %ecx, %ecx movl %eax, %r9d callq 0x2c288 addq $0x10, %rsp popq %rbx popq %r14 popq %rbp retq
my_hash_init2: push rbp mov rbp, rsp push r14 push rbx sub rsp, 10h mov eax, edx mov edx, [rbp+arg_20] mov r10, [rbp+arg_18] mov r11, [rbp+arg_10] mov rbx, [rbp+arg_8] mov r14, [rbp+arg_0] mov qword ptr [rsi+18h], 0 mov [rsi], r9 mov [rsi+8], r14 mov qword ptr [rsi+10h], 1 mov [rsi+50h], rbx test r11, r11 jnz short loc_29624 lea r11, my_hash_sort loc_29624: mov [rsi+58h], r11 mov [rsi+60h], r10 mov [rsi+20h], edx mov [rsi+68h], rcx add rsi, 28h ; '(' and edx, 2 shl edx, 0Fh mov [rsp+20h+var_20], rdx mov edx, 10h xor ecx, ecx mov r9d, eax call init_dynamic_array2 add rsp, 10h pop rbx pop r14 pop rbp retn
long long my_hash_init2( int a1, long long a2, int a3, long long a4, int a5, long long a6, long long a7, long long a8, long long ( *a9)(long long a1, long long a2, long long a3), long long a10, int a11) { long long ( *v11)(long long, long long, long long); // r11 v11 = a9; *(_QWORD *)(a2 + 24) = 0LL; *(_QWORD *)a2 = a6; *(_QWORD *)(a2 + 8) = a7; *(_QWORD *)(a2 + 16) = 1LL; *(_QWORD *)(a2 + 80) = a8; if ( !a9 ) v11 = my_hash_sort; *(_QWORD *)(a2 + 88) = v11; *(_QWORD *)(a2 + 96) = a10; *(_DWORD *)(a2 + 32) = a11; *(_QWORD *)(a2 + 104) = a4; return init_dynamic_array2(a1, (int)a2 + 40, 16, 0, a5, a3, (unsigned __int8)(a11 & 2) << 15); }
my_hash_init2: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX SUB RSP,0x10 MOV EAX,EDX MOV EDX,dword ptr [RBP + 0x30] MOV R10,qword ptr [RBP + 0x28] MOV R11,qword ptr [RBP + 0x20] MOV RBX,qword ptr [RBP + 0x18] MOV R14,qword ptr [RBP + 0x10] MOV qword ptr [RSI + 0x18],0x0 MOV qword ptr [RSI],R9 MOV qword ptr [RSI + 0x8],R14 MOV qword ptr [RSI + 0x10],0x1 MOV qword ptr [RSI + 0x50],RBX TEST R11,R11 JNZ 0x00129624 LEA R11,[0x1295a8] LAB_00129624: MOV qword ptr [RSI + 0x58],R11 MOV qword ptr [RSI + 0x60],R10 MOV dword ptr [RSI + 0x20],EDX MOV qword ptr [RSI + 0x68],RCX ADD RSI,0x28 AND EDX,0x2 SHL EDX,0xf MOV qword ptr [RSP],RDX MOV EDX,0x10 XOR ECX,ECX MOV R9D,EAX CALL 0x0012c288 ADD RSP,0x10 POP RBX POP R14 POP RBP RET
void my_hash_init2(int8 param_1,int8 *param_2,int4 param_3,int8 param_4, int8 param_5,int8 param_6,int8 param_7,int8 param_8, code *param_9,int8 param_10,uint param_11) { param_2[3] = 0; *param_2 = param_6; param_2[1] = param_7; param_2[2] = 1; param_2[10] = param_8; if (param_9 == (code *)0x0) { param_9 = my_hash_sort; } param_2[0xb] = param_9; param_2[0xc] = param_10; *(uint *)(param_2 + 4) = param_11; param_2[0xd] = param_4; init_dynamic_array2(param_1,param_2 + 5,0x10,0,param_5,param_3,(param_11 & 2) << 0xf); return; }
19,409
ftxui::bgcolor(ftxui::Color, std::shared_ptr<ftxui::Node>)
Andrewchistyakov[P]flashcards_lyc/build_O1/_deps/ftxui-src/src/ftxui/dom/color.cpp
Element bgcolor(Color color, Element child) { return std::make_shared<BgColor>(std::move(child), color); }
O1
cpp
ftxui::bgcolor(ftxui::Color, std::shared_ptr<ftxui::Node>): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rdx, %r12 movl %esi, %ebp movq %rdi, %r14 movl $0x70, %edi callq 0xb3e0 movq %rax, %rbx movabsq $0x100000001, %rax # imm = 0x100000001 movq %rax, 0x8(%rbx) leaq 0x35598(%rip), %rax # 0x58338 movq %rax, (%rbx) movq %rbx, %r15 addq $0x10, %r15 movups (%r12), %xmm0 xorps %xmm1, %xmm1 movups %xmm1, (%r12) movq %rsp, %rsi movups %xmm0, (%rsi) movq %r15, %rdi callq 0x23124 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x22dd4 callq 0x14c7c leaq 0x355ad(%rip), %rax # 0x58388 movq %rax, 0x10(%rbx) movl %ebp, 0x6c(%rbx) movq %r15, (%r14) movq %rbx, 0x8(%r14) movq %r14, %rax addq $0x10, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq %rax, %r14 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x22e0b callq 0x14c7c movl $0x70, %esi movq %rbx, %rdi callq 0xb400 movq %r14, %rdi callq 0xb780
_ZN5ftxui7bgcolorENS_5ColorESt10shared_ptrINS_4NodeEE: push rbp push r15 push r14 push r12 push rbx sub rsp, 10h mov r12, rdx mov ebp, esi mov r14, rdi mov edi, 70h ; 'p'; unsigned __int64 call __Znwm; operator new(ulong) mov rbx, rax mov rax, 100000001h mov [rbx+8], rax lea rax, off_58338 mov [rbx], rax mov r15, rbx add r15, 10h movups xmm0, xmmword ptr [r12] xorps xmm1, xmm1 movups xmmword ptr [r12], xmm1 mov rsi, rsp movups xmmword ptr [rsi], xmm0 mov rdi, r15 call _ZN5ftxui13NodeDecoratorC2ESt10shared_ptrINS_4NodeEE; ftxui::NodeDecorator::NodeDecorator(std::shared_ptr<ftxui::Node>) mov rdi, [rsp+38h+var_30] test rdi, rdi jz short loc_22DD4 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_22DD4: lea rax, off_58388 mov [rbx+10h], rax mov [rbx+6Ch], ebp mov [r14], r15 mov [r14+8], rbx mov rax, r14 add rsp, 10h pop rbx pop r12 pop r14 pop r15 pop rbp retn mov r14, rax mov rdi, [rsp+arg_0] test rdi, rdi jz short loc_22E0B call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_22E0B: mov esi, 70h ; 'p'; unsigned __int64 mov rdi, rbx; void * call __ZdlPvm; operator delete(void *,ulong) mov rdi, r14 call __Unwind_Resume
_QWORD * ftxui::bgcolor(_QWORD *a1, int a2, __int128 *a3) { long long v4; // rbx __int128 v5; // xmm0 int v6; // edx int v7; // ecx int v8; // r8d int v9; // r9d long long v11; // [rsp+0h] [rbp-38h] BYREF volatile signed __int32 *v12; // [rsp+8h] [rbp-30h] char v13; // [rsp+10h] [rbp-28h] v4 = operator new(0x70uLL); *(_QWORD *)(v4 + 8) = 0x100000001LL; *(_QWORD *)v4 = off_58338; v5 = *a3; *a3 = 0LL; ftxui::NodeDecorator::NodeDecorator(v4 + 16, (unsigned int)&v11, v6, v7, v8, v9, v5, *((long long *)&v5 + 1), v13); if ( v12 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v12); *(_QWORD *)(v4 + 16) = off_58388; *(_DWORD *)(v4 + 108) = a2; *a1 = v4 + 16; a1[1] = v4; return a1; }
bgcolor: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x10 MOV R12,RDX MOV EBP,ESI MOV R14,RDI MOV EDI,0x70 CALL 0x0010b3e0 MOV RBX,RAX MOV RAX,0x100000001 MOV qword ptr [RBX + 0x8],RAX LEA RAX,[0x158338] MOV qword ptr [RBX],RAX MOV R15,RBX ADD R15,0x10 MOVUPS XMM0,xmmword ptr [R12] XORPS XMM1,XMM1 MOVUPS xmmword ptr [R12],XMM1 MOV RSI,RSP MOVUPS xmmword ptr [RSI],XMM0 LAB_00122dbd: MOV RDI,R15 CALL 0x00123124 LAB_00122dc5: MOV RDI,qword ptr [RSP + 0x8] TEST RDI,RDI JZ 0x00122dd4 CALL 0x00114c7c LAB_00122dd4: LEA RAX,[0x158388] MOV qword ptr [RBX + 0x10],RAX MOV dword ptr [RBX + 0x6c],EBP MOV qword ptr [R14],R15 MOV qword ptr [R14 + 0x8],RBX MOV RAX,R14 ADD RSP,0x10 POP RBX POP R12 POP R14 POP R15 POP RBP RET
/* ftxui::bgcolor(ftxui::Color, std::shared_ptr<ftxui::Node>) */ ftxui * __thiscall ftxui::bgcolor(ftxui *this,int4 param_2,int8 *param_3) { _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *this_00; int8 *puVar1; puVar1 = (int8 *)operator_new(0x70); puVar1[1] = 0x100000001; *puVar1 = &PTR___Sp_counted_ptr_inplace_00158338; this_00 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)param_3[1]; *param_3 = 0; param_3[1] = 0; /* try { // try from 00122dbd to 00122dc4 has its CatchHandler @ 00122df9 */ NodeDecorator::NodeDecorator((NodeDecorator *)(puVar1 + 2)); if (this_00 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(this_00); } puVar1[2] = &PTR__Node_00158388; *(int4 *)((long)puVar1 + 0x6c) = param_2; *(NodeDecorator **)this = (NodeDecorator *)(puVar1 + 2); *(int8 **)(this + 8) = puVar1; return this; }
19,410
ma_find_half_pos
eloqsql/storage/maria/ma_write.c
uchar *_ma_find_half_pos(MARIA_KEY *key, MARIA_PAGE *ma_page, uchar **after_key) { uint keys, length, key_ref_length, page_flag, nod_flag; uchar *page, *end, *lastpos; MARIA_HA *info= ma_page->info; MARIA_SHARE *share= info->s; MARIA_KEYDEF *keyinfo= key->keyinfo; DBUG_ENTER("_ma_find_half_pos"); nod_flag= ma_page->node; key_ref_length= share->keypage_header + nod_flag; page_flag= ma_page->flag; length= ma_page->size - key_ref_length; page= ma_page->buff+ key_ref_length; /* Point to first key */ if (!(keyinfo->flag & (HA_PACK_KEY | HA_SPACE_PACK_USED | HA_VAR_LENGTH_KEY | HA_BINARY_PACK_KEY)) && !(page_flag & KEYPAGE_FLAG_HAS_TRANSID)) { key_ref_length= keyinfo->keylength+nod_flag; key->data_length= keyinfo->keylength - info->s->rec_reflength; key->ref_length= info->s->rec_reflength; key->flag= 0; keys=length/(key_ref_length*2); end=page+keys*key_ref_length; *after_key=end+key_ref_length; memcpy(key->data, end, key_ref_length); DBUG_RETURN(end); } end=page+length/2-key_ref_length; /* This is aprox. half */ key->data[0]= 0; /* Safety */ do { lastpos=page; if (!(length= (*keyinfo->get_key)(key, page_flag, nod_flag, &page))) DBUG_RETURN(0); } while (page < end); *after_key= page; DBUG_PRINT("exit",("returns: %p page: %p half: %p", lastpos, page, end)); DBUG_RETURN(lastpos); }
O0
c
ma_find_half_pos: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x18(%rbp), %rax movq (%rax), %rax movq %rax, -0x58(%rbp) movq -0x58(%rbp), %rax movq (%rax), %rax movq %rax, -0x60(%rbp) movq -0x10(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x68(%rbp) movq -0x18(%rbp), %rax movl 0x28(%rax), %eax movl %eax, -0x34(%rbp) movq -0x60(%rbp), %rax movl 0x744(%rax), %eax addl -0x34(%rbp), %eax movl %eax, -0x2c(%rbp) movq -0x18(%rbp), %rax movl 0x2c(%rax), %eax movl %eax, -0x30(%rbp) movq -0x18(%rbp), %rax movl 0x20(%rax), %eax subl -0x2c(%rbp), %eax movl %eax, -0x28(%rbp) movq -0x18(%rbp), %rax movq 0x10(%rax), %rax movl -0x2c(%rbp), %ecx addq %rcx, %rax movq %rax, -0x40(%rbp) movq -0x68(%rbp), %rax movzwl 0xa2(%rax), %eax andl $0x2e, %eax cmpl $0x0, %eax jne 0x85734 movl -0x30(%rbp), %eax andl $0x2, %eax cmpl $0x0, %eax jne 0x85734 movq -0x68(%rbp), %rax movzwl 0xaa(%rax), %eax addl -0x34(%rbp), %eax movl %eax, -0x2c(%rbp) movq -0x68(%rbp), %rax movzwl 0xaa(%rax), %ecx movq -0x58(%rbp), %rax movq (%rax), %rax subl 0x740(%rax), %ecx movq -0x10(%rbp), %rax movl %ecx, 0x10(%rax) movq -0x58(%rbp), %rax movq (%rax), %rax movl 0x740(%rax), %ecx movq -0x10(%rbp), %rax movl %ecx, 0x14(%rax) movq -0x10(%rbp), %rax movl $0x0, 0x18(%rax) movl -0x28(%rbp), %eax movl -0x2c(%rbp), %ecx shll %ecx xorl %edx, %edx divl %ecx movl %eax, -0x24(%rbp) movq -0x40(%rbp), %rax movl -0x24(%rbp), %ecx imull -0x2c(%rbp), %ecx movl %ecx, %ecx addq %rcx, %rax movq %rax, -0x48(%rbp) movq -0x48(%rbp), %rcx movl -0x2c(%rbp), %eax addq %rax, %rcx movq -0x20(%rbp), %rax movq %rcx, (%rax) movq -0x10(%rbp), %rax movq (%rax), %rdi movq -0x48(%rbp), %rsi movl -0x2c(%rbp), %eax movl %eax, %edx callq 0x2a090 movq -0x48(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x857b7 movq -0x40(%rbp), %rax movl -0x28(%rbp), %ecx shrl %ecx movl %ecx, %ecx addq %rcx, %rax movl -0x2c(%rbp), %ecx movl %ecx, %edx xorl %ecx, %ecx subq %rdx, %rcx addq %rcx, %rax movq %rax, -0x48(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movb $0x0, (%rax) movq -0x40(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x68(%rbp), %rax movq 0xe0(%rax), %rax movq -0x10(%rbp), %rdi movl -0x30(%rbp), %esi movl -0x34(%rbp), %edx leaq -0x40(%rbp), %rcx callq *%rax movl %eax, -0x28(%rbp) cmpl $0x0, %eax jne 0x85794 jmp 0x8578a movq $0x0, -0x8(%rbp) jmp 0x857b7 jmp 0x85796 movq -0x40(%rbp), %rax cmpq -0x48(%rbp), %rax jb 0x8575d movq -0x40(%rbp), %rcx movq -0x20(%rbp), %rax movq %rcx, (%rax) jmp 0x857ad jmp 0x857af movq -0x50(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x70, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_ma_find_half_pos: push rbp mov rbp, rsp sub rsp, 70h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rax, [rbp+var_18] mov rax, [rax] mov [rbp+var_58], rax mov rax, [rbp+var_58] mov rax, [rax] mov [rbp+var_60], rax mov rax, [rbp+var_10] mov rax, [rax+8] mov [rbp+var_68], rax mov rax, [rbp+var_18] mov eax, [rax+28h] mov [rbp+var_34], eax mov rax, [rbp+var_60] mov eax, [rax+744h] add eax, [rbp+var_34] mov [rbp+var_2C], eax mov rax, [rbp+var_18] mov eax, [rax+2Ch] mov [rbp+var_30], eax mov rax, [rbp+var_18] mov eax, [rax+20h] sub eax, [rbp+var_2C] mov [rbp+var_28], eax mov rax, [rbp+var_18] mov rax, [rax+10h] mov ecx, [rbp+var_2C] add rax, rcx mov [rbp+var_40], rax mov rax, [rbp+var_68] movzx eax, word ptr [rax+0A2h] and eax, 2Eh cmp eax, 0 jnz loc_85734 mov eax, [rbp+var_30] and eax, 2 cmp eax, 0 jnz loc_85734 mov rax, [rbp+var_68] movzx eax, word ptr [rax+0AAh] add eax, [rbp+var_34] mov [rbp+var_2C], eax mov rax, [rbp+var_68] movzx ecx, word ptr [rax+0AAh] mov rax, [rbp+var_58] mov rax, [rax] sub ecx, [rax+740h] mov rax, [rbp+var_10] mov [rax+10h], ecx mov rax, [rbp+var_58] mov rax, [rax] mov ecx, [rax+740h] mov rax, [rbp+var_10] mov [rax+14h], ecx mov rax, [rbp+var_10] mov dword ptr [rax+18h], 0 mov eax, [rbp+var_28] mov ecx, [rbp+var_2C] shl ecx, 1 xor edx, edx div ecx mov [rbp+var_24], eax mov rax, [rbp+var_40] mov ecx, [rbp+var_24] imul ecx, [rbp+var_2C] mov ecx, ecx add rax, rcx mov [rbp+var_48], rax mov rcx, [rbp+var_48] mov eax, [rbp+var_2C] add rcx, rax mov rax, [rbp+var_20] mov [rax], rcx mov rax, [rbp+var_10] mov rdi, [rax] mov rsi, [rbp+var_48] mov eax, [rbp+var_2C] mov edx, eax call _memcpy mov rax, [rbp+var_48] mov [rbp+var_8], rax jmp loc_857B7 loc_85734: mov rax, [rbp+var_40] mov ecx, [rbp+var_28] shr ecx, 1 mov ecx, ecx add rax, rcx mov ecx, [rbp+var_2C] mov edx, ecx xor ecx, ecx sub rcx, rdx add rax, rcx mov [rbp+var_48], rax mov rax, [rbp+var_10] mov rax, [rax] mov byte ptr [rax], 0 loc_8575D: mov rax, [rbp+var_40] mov [rbp+var_50], rax mov rax, [rbp+var_68] mov rax, [rax+0E0h] mov rdi, [rbp+var_10] mov esi, [rbp+var_30] mov edx, [rbp+var_34] lea rcx, [rbp+var_40] call rax mov [rbp+var_28], eax cmp eax, 0 jnz short loc_85794 jmp short $+2 loc_8578A: mov [rbp+var_8], 0 jmp short loc_857B7 loc_85794: jmp short $+2 loc_85796: mov rax, [rbp+var_40] cmp rax, [rbp+var_48] jb short loc_8575D mov rcx, [rbp+var_40] mov rax, [rbp+var_20] mov [rax], rcx jmp short $+2 loc_857AD: jmp short $+2 loc_857AF: mov rax, [rbp+var_50] mov [rbp+var_8], rax loc_857B7: mov rax, [rbp+var_8] add rsp, 70h pop rbp retn
unsigned long long ma_find_half_pos(long long a1, long long **a2, unsigned long long *a3) { long long v4; // [rsp+8h] [rbp-68h] long long v5; // [rsp+10h] [rbp-60h] long long *v6; // [rsp+18h] [rbp-58h] unsigned long long v7; // [rsp+20h] [rbp-50h] unsigned long long v8; // [rsp+28h] [rbp-48h] unsigned long long v9; // [rsp+28h] [rbp-48h] unsigned long long v10; // [rsp+30h] [rbp-40h] BYREF unsigned int v11; // [rsp+3Ch] [rbp-34h] unsigned int v12; // [rsp+40h] [rbp-30h] unsigned int v13; // [rsp+44h] [rbp-2Ch] unsigned int v14; // [rsp+48h] [rbp-28h] unsigned int v15; // [rsp+4Ch] [rbp-24h] unsigned long long *v16; // [rsp+50h] [rbp-20h] long long **v17; // [rsp+58h] [rbp-18h] long long v18; // [rsp+60h] [rbp-10h] v18 = a1; v17 = a2; v16 = a3; v6 = *a2; v5 = **a2; v4 = *(_QWORD *)(a1 + 8); v11 = *((_DWORD *)a2 + 10); v13 = v11 + *(_DWORD *)(v5 + 1860); v12 = *((_DWORD *)a2 + 11); v14 = *((_DWORD *)a2 + 8) - v13; v10 = (unsigned long long)a2[2] + v13; if ( (*(_WORD *)(v4 + 162) & 0x2E) != 0 || (v12 & 2) != 0 ) { v9 = (v14 >> 1) + v10 - v13; **(_BYTE **)v18 = 0; do { v7 = v10; v14 = (*(long long ( **)(long long, _QWORD, _QWORD, unsigned long long *))(v4 + 224))(v18, v12, v11, &v10); if ( !v14 ) return 0LL; } while ( v10 < v9 ); *v16 = v10; return v7; } else { v13 = v11 + *(unsigned __int16 *)(v4 + 170); *(_DWORD *)(v18 + 16) = *(unsigned __int16 *)(v4 + 170) - *(_DWORD *)(*v6 + 1856); *(_DWORD *)(v18 + 20) = *(_DWORD *)(*v6 + 1856); *(_DWORD *)(v18 + 24) = 0; v15 = v14 / (2 * v13); v8 = v13 * v15 + v10; *v16 = v13 + v8; memcpy(*(_QWORD *)v18, v8, v13); return v8; } }
_ma_find_half_pos: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x58] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x60],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x68],RAX MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX + 0x28] MOV dword ptr [RBP + -0x34],EAX MOV RAX,qword ptr [RBP + -0x60] MOV EAX,dword ptr [RAX + 0x744] ADD EAX,dword ptr [RBP + -0x34] MOV dword ptr [RBP + -0x2c],EAX MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX + 0x2c] MOV dword ptr [RBP + -0x30],EAX MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX + 0x20] SUB EAX,dword ptr [RBP + -0x2c] MOV dword ptr [RBP + -0x28],EAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x10] MOV ECX,dword ptr [RBP + -0x2c] ADD RAX,RCX MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x68] MOVZX EAX,word ptr [RAX + 0xa2] AND EAX,0x2e CMP EAX,0x0 JNZ 0x00185734 MOV EAX,dword ptr [RBP + -0x30] AND EAX,0x2 CMP EAX,0x0 JNZ 0x00185734 MOV RAX,qword ptr [RBP + -0x68] MOVZX EAX,word ptr [RAX + 0xaa] ADD EAX,dword ptr [RBP + -0x34] MOV dword ptr [RBP + -0x2c],EAX MOV RAX,qword ptr [RBP + -0x68] MOVZX ECX,word ptr [RAX + 0xaa] MOV RAX,qword ptr [RBP + -0x58] MOV RAX,qword ptr [RAX] SUB ECX,dword ptr [RAX + 0x740] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x10],ECX MOV RAX,qword ptr [RBP + -0x58] MOV RAX,qword ptr [RAX] MOV ECX,dword ptr [RAX + 0x740] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x14],ECX MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x18],0x0 MOV EAX,dword ptr [RBP + -0x28] MOV ECX,dword ptr [RBP + -0x2c] SHL ECX,0x1 XOR EDX,EDX DIV ECX MOV dword ptr [RBP + -0x24],EAX MOV RAX,qword ptr [RBP + -0x40] MOV ECX,dword ptr [RBP + -0x24] IMUL ECX,dword ptr [RBP + -0x2c] MOV ECX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x48],RAX MOV RCX,qword ptr [RBP + -0x48] MOV EAX,dword ptr [RBP + -0x2c] ADD RCX,RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RBP + -0x48] MOV EAX,dword ptr [RBP + -0x2c] MOV EDX,EAX CALL 0x0012a090 MOV RAX,qword ptr [RBP + -0x48] MOV qword ptr [RBP + -0x8],RAX JMP 0x001857b7 LAB_00185734: MOV RAX,qword ptr [RBP + -0x40] MOV ECX,dword ptr [RBP + -0x28] SHR ECX,0x1 MOV ECX,ECX ADD RAX,RCX MOV ECX,dword ptr [RBP + -0x2c] MOV EDX,ECX XOR ECX,ECX SUB RCX,RDX ADD RAX,RCX MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV byte ptr [RAX],0x0 LAB_0018575d: MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x68] MOV RAX,qword ptr [RAX + 0xe0] MOV RDI,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RBP + -0x30] MOV EDX,dword ptr [RBP + -0x34] LEA RCX,[RBP + -0x40] CALL RAX MOV dword ptr [RBP + -0x28],EAX CMP EAX,0x0 JNZ 0x00185794 JMP 0x0018578a LAB_0018578a: MOV qword ptr [RBP + -0x8],0x0 JMP 0x001857b7 LAB_00185794: JMP 0x00185796 LAB_00185796: MOV RAX,qword ptr [RBP + -0x40] CMP RAX,qword ptr [RBP + -0x48] JC 0x0018575d MOV RCX,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX],RCX JMP 0x001857ad LAB_001857ad: JMP 0x001857af LAB_001857af: MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RBP + -0x8],RAX LAB_001857b7: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x70 POP RBP RET
void * _ma_find_half_pos(int8 *param_1,int8 *param_2,long *param_3) { long *plVar1; long lVar2; void *pvVar3; void *pvVar4; void *local_48; int local_3c; uint local_38; uint local_34; uint local_30; uint local_2c; long *local_28; int8 *local_20; int8 *local_18; void *local_10; plVar1 = (long *)*param_2; lVar2 = param_1[1]; local_3c = *(int *)(param_2 + 5); local_34 = *(int *)(*plVar1 + 0x744) + local_3c; local_38 = *(uint *)((long)param_2 + 0x2c); local_30 = *(int *)(param_2 + 4) - local_34; local_48 = (void *)(param_2[2] + (ulong)local_34); local_28 = param_3; local_20 = param_2; local_18 = param_1; if (((*(ushort *)(lVar2 + 0xa2) & 0x2e) == 0) && ((local_38 & 2) == 0)) { local_34 = (uint)*(ushort *)(lVar2 + 0xaa) + local_3c; *(uint *)(param_1 + 2) = (uint)*(ushort *)(lVar2 + 0xaa) - *(int *)(*plVar1 + 0x740); *(int4 *)((long)param_1 + 0x14) = *(int4 *)(*plVar1 + 0x740); *(int4 *)(param_1 + 3) = 0; local_2c = local_30 / (local_34 * 2); pvVar4 = (void *)((long)local_48 + (ulong)(local_2c * local_34)); *param_3 = (long)pvVar4 + (ulong)local_34; memcpy((void *)*param_1,pvVar4,(ulong)local_34); local_10 = pvVar4; } else { pvVar4 = (void *)((long)local_48 + ((ulong)(local_30 >> 1) - (ulong)local_34)); *(int1 *)*param_1 = 0; do { pvVar3 = local_48; local_30 = (**(code **)(lVar2 + 0xe0))(local_18,local_38,local_3c,&local_48); if (local_30 == 0) { return (void *)0x0; } } while (local_48 < pvVar4); *local_28 = (long)local_48; local_10 = pvVar3; } return local_10; }
19,411
ma_find_half_pos
eloqsql/storage/maria/ma_write.c
uchar *_ma_find_half_pos(MARIA_KEY *key, MARIA_PAGE *ma_page, uchar **after_key) { uint keys, length, key_ref_length, page_flag, nod_flag; uchar *page, *end, *lastpos; MARIA_HA *info= ma_page->info; MARIA_SHARE *share= info->s; MARIA_KEYDEF *keyinfo= key->keyinfo; DBUG_ENTER("_ma_find_half_pos"); nod_flag= ma_page->node; key_ref_length= share->keypage_header + nod_flag; page_flag= ma_page->flag; length= ma_page->size - key_ref_length; page= ma_page->buff+ key_ref_length; /* Point to first key */ if (!(keyinfo->flag & (HA_PACK_KEY | HA_SPACE_PACK_USED | HA_VAR_LENGTH_KEY | HA_BINARY_PACK_KEY)) && !(page_flag & KEYPAGE_FLAG_HAS_TRANSID)) { key_ref_length= keyinfo->keylength+nod_flag; key->data_length= keyinfo->keylength - info->s->rec_reflength; key->ref_length= info->s->rec_reflength; key->flag= 0; keys=length/(key_ref_length*2); end=page+keys*key_ref_length; *after_key=end+key_ref_length; memcpy(key->data, end, key_ref_length); DBUG_RETURN(end); } end=page+length/2-key_ref_length; /* This is aprox. half */ key->data[0]= 0; /* Safety */ do { lastpos=page; if (!(length= (*keyinfo->get_key)(key, page_flag, nod_flag, &page))) DBUG_RETURN(0); } while (page < end); *after_key= page; DBUG_PRINT("exit",("returns: %p page: %p half: %p", lastpos, page, end)); DBUG_RETURN(lastpos); }
O3
c
ma_find_half_pos: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdx, %r8 movq (%rsi), %rbx movq (%rbx), %rcx movq 0x8(%rdi), %r11 movl 0x28(%rsi), %r10d movl 0x744(%rcx), %edx addl %r10d, %edx movl 0x2c(%rsi), %r9d movl 0x20(%rsi), %eax subl %edx, %eax movq 0x10(%rsi), %r14 addq %rdx, %r14 movq %r14, -0x38(%rbp) testb $0x2e, 0xa2(%r11) sete %sil movl %r9d, -0x2c(%rbp) testb $0x2, %r9b sete %r9b andb %sil, %r9b cmpb $0x1, %r9b jne 0x667cb movzwl 0xaa(%r11), %edx addl %edx, %r10d subl 0x740(%rcx), %edx movl %edx, 0x10(%rdi) movq (%rbx), %rcx movl 0x740(%rcx), %ecx movl %ecx, 0x14(%rdi) movl $0x0, 0x18(%rdi) leal (%r10,%r10), %ecx xorl %edx, %edx divl %ecx imull %r10d, %eax addq %rax, %r14 leaq (%r14,%r10), %rax movq %rax, (%r8) movq (%rdi), %rdi movq %r14, %rsi movq %r10, %rdx callq 0x29080 movq %r14, %r12 jmp 0x66821 movq %r8, -0x40(%rbp) shrl %eax addq %r14, %rax subq %rdx, %rax movq %rax, -0x48(%rbp) movq (%rdi), %rax movb $0x0, (%rax) movq %r14, %r12 movq %rdi, %r15 movl -0x2c(%rbp), %esi movq %r10, %rbx movl %r10d, %edx leaq -0x38(%rbp), %rcx movq %r11, %r13 callq *0xe0(%r11) testl %eax, %eax je 0x6681e movq -0x38(%rbp), %r14 cmpq -0x48(%rbp), %r14 movq %r15, %rdi movq %rbx, %r10 movq %r13, %r11 jb 0x667e1 movq -0x40(%rbp), %rax movq %r14, (%rax) jmp 0x66821 xorl %r12d, %r12d movq %r12, %rax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ma_find_half_pos: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov r8, rdx mov rbx, [rsi] mov rcx, [rbx] mov r11, [rdi+8] mov r10d, [rsi+28h] mov edx, [rcx+744h] add edx, r10d mov r9d, [rsi+2Ch] mov eax, [rsi+20h] sub eax, edx mov r14, [rsi+10h] add r14, rdx mov [rbp+var_38], r14 test byte ptr [r11+0A2h], 2Eh setz sil mov [rbp+var_2C], r9d test r9b, 2 setz r9b and r9b, sil cmp r9b, 1 jnz short loc_667CB movzx edx, word ptr [r11+0AAh] add r10d, edx sub edx, [rcx+740h] mov [rdi+10h], edx mov rcx, [rbx] mov ecx, [rcx+740h] mov [rdi+14h], ecx mov dword ptr [rdi+18h], 0 lea ecx, [r10+r10] xor edx, edx div ecx imul eax, r10d add r14, rax lea rax, [r14+r10] mov [r8], rax mov rdi, [rdi] mov rsi, r14 mov rdx, r10 call _memcpy mov r12, r14 jmp short loc_66821 loc_667CB: mov [rbp+var_40], r8 shr eax, 1 add rax, r14 sub rax, rdx mov [rbp+var_48], rax mov rax, [rdi] mov byte ptr [rax], 0 loc_667E1: mov r12, r14 mov r15, rdi mov esi, [rbp+var_2C] mov rbx, r10 mov edx, r10d lea rcx, [rbp+var_38] mov r13, r11 call qword ptr [r11+0E0h] test eax, eax jz short loc_6681E mov r14, [rbp+var_38] cmp r14, [rbp+var_48] mov rdi, r15 mov r10, rbx mov r11, r13 jb short loc_667E1 mov rax, [rbp+var_40] mov [rax], r14 jmp short loc_66821 loc_6681E: xor r12d, r12d loc_66821: mov rax, r12 add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long ma_find_half_pos(long long a1, long long **a2, unsigned long long *a3) { long long *v4; // rbx long long v5; // rcx long long v6; // r11 long long v7; // r10 long long v8; // rdx unsigned int v9; // r9d unsigned int v10; // eax long long v11; // r14 bool v12; // si int v13; // edx long long v14; // r10 long long v15; // r14 long long v16; // r12 long long v17; // rbx long long v18; // r13 unsigned long long v20; // [rsp+8h] [rbp-48h] unsigned long long *v21; // [rsp+10h] [rbp-40h] unsigned long long v22; // [rsp+18h] [rbp-38h] BYREF unsigned int v23; // [rsp+24h] [rbp-2Ch] v4 = *a2; v5 = **a2; v6 = *(_QWORD *)(a1 + 8); v7 = *((unsigned int *)a2 + 10); v8 = (unsigned int)(v7 + *(_DWORD *)(v5 + 1860)); v9 = *((_DWORD *)a2 + 11); v10 = *((_DWORD *)a2 + 8) - v8; v11 = (long long)a2[2] + v8; v22 = v11; v12 = (*(_BYTE *)(v6 + 162) & 0x2E) == 0; v23 = v9; if ( v12 && (v9 & 2) == 0 ) { v13 = *(unsigned __int16 *)(v6 + 170); v14 = (unsigned int)(v13 + v7); *(_DWORD *)(a1 + 16) = v13 - *(_DWORD *)(v5 + 1856); *(_DWORD *)(a1 + 20) = *(_DWORD *)(*v4 + 1856); *(_DWORD *)(a1 + 24) = 0; v15 = (unsigned int)v14 * (v10 / (2 * (int)v14)) + v11; *a3 = v15 + v14; memcpy(*(_QWORD *)a1, v15, v14); return v15; } else { v21 = a3; v20 = v11 + (v10 >> 1) - v8; **(_BYTE **)a1 = 0; while ( 1 ) { v16 = v11; v17 = v7; v18 = v6; if ( !(*(unsigned int ( **)(long long, _QWORD, _QWORD, unsigned long long *))(v6 + 224))( a1, v23, (unsigned int)v7, &v22) ) break; v11 = v22; v7 = v17; v6 = v18; if ( v22 >= v20 ) { *v21 = v22; return v16; } } return 0LL; } }
_ma_find_half_pos: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV R8,RDX MOV RBX,qword ptr [RSI] MOV RCX,qword ptr [RBX] MOV R11,qword ptr [RDI + 0x8] MOV R10D,dword ptr [RSI + 0x28] MOV EDX,dword ptr [RCX + 0x744] ADD EDX,R10D MOV R9D,dword ptr [RSI + 0x2c] MOV EAX,dword ptr [RSI + 0x20] SUB EAX,EDX MOV R14,qword ptr [RSI + 0x10] ADD R14,RDX MOV qword ptr [RBP + -0x38],R14 TEST byte ptr [R11 + 0xa2],0x2e SETZ SIL MOV dword ptr [RBP + -0x2c],R9D TEST R9B,0x2 SETZ R9B AND R9B,SIL CMP R9B,0x1 JNZ 0x001667cb MOVZX EDX,word ptr [R11 + 0xaa] ADD R10D,EDX SUB EDX,dword ptr [RCX + 0x740] MOV dword ptr [RDI + 0x10],EDX MOV RCX,qword ptr [RBX] MOV ECX,dword ptr [RCX + 0x740] MOV dword ptr [RDI + 0x14],ECX MOV dword ptr [RDI + 0x18],0x0 LEA ECX,[R10 + R10*0x1] XOR EDX,EDX DIV ECX IMUL EAX,R10D ADD R14,RAX LEA RAX,[R14 + R10*0x1] MOV qword ptr [R8],RAX MOV RDI,qword ptr [RDI] MOV RSI,R14 MOV RDX,R10 CALL 0x00129080 MOV R12,R14 JMP 0x00166821 LAB_001667cb: MOV qword ptr [RBP + -0x40],R8 SHR EAX,0x1 ADD RAX,R14 SUB RAX,RDX MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RDI] MOV byte ptr [RAX],0x0 LAB_001667e1: MOV R12,R14 MOV R15,RDI MOV ESI,dword ptr [RBP + -0x2c] MOV RBX,R10 MOV EDX,R10D LEA RCX,[RBP + -0x38] MOV R13,R11 CALL qword ptr [R11 + 0xe0] TEST EAX,EAX JZ 0x0016681e MOV R14,qword ptr [RBP + -0x38] CMP R14,qword ptr [RBP + -0x48] MOV RDI,R15 MOV R10,RBX MOV R11,R13 JC 0x001667e1 MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RAX],R14 JMP 0x00166821 LAB_0016681e: XOR R12D,R12D LAB_00166821: MOV RAX,R12 ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void * _ma_find_half_pos(int8 *param_1,int8 *param_2,long *param_3) { int iVar1; long *plVar2; long lVar3; long lVar4; int iVar5; void *pvVar6; uint uVar7; uint uVar8; void *__src; void *local_40; uint local_34; plVar2 = (long *)*param_2; lVar3 = *plVar2; lVar4 = param_1[1]; iVar1 = *(int *)(param_2 + 5); uVar7 = *(int *)(lVar3 + 0x744) + iVar1; local_34 = *(uint *)((long)param_2 + 0x2c); iVar5 = *(int *)(param_2 + 4); local_40 = (void *)(param_2[2] + (ulong)uVar7); if ((local_34 & 2) == 0 && (*(byte *)(lVar4 + 0xa2) & 0x2e) == 0) { uVar8 = iVar1 + (uint)*(ushort *)(lVar4 + 0xaa); *(uint *)(param_1 + 2) = (uint)*(ushort *)(lVar4 + 0xaa) - *(int *)(lVar3 + 0x740); *(int4 *)((long)param_1 + 0x14) = *(int4 *)(*plVar2 + 0x740); *(int4 *)(param_1 + 3) = 0; __src = (void *)((long)local_40 + (ulong)(((iVar5 - uVar7) / (uVar8 * 2)) * uVar8)); *param_3 = (long)__src + (ulong)uVar8; memcpy((void *)*param_1,__src,(ulong)uVar8); } else { pvVar6 = (void *)((long)local_40 + ((ulong)(iVar5 - uVar7 >> 1) - (ulong)uVar7)); *(int1 *)*param_1 = 0; do { __src = local_40; iVar5 = (**(code **)(lVar4 + 0xe0))(param_1,local_34,iVar1,&local_40); if (iVar5 == 0) { return (void *)0x0; } } while (local_40 < pvVar6); *param_3 = (long)local_40; } return __src; }
19,412
common_arg::get_value_from_env(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
llama.cpp/common/arg.cpp
bool common_arg::get_value_from_env(std::string & output) { if (env == nullptr) return false; char * value = std::getenv(env); if (value) { output = value; return true; } return false; }
O3
cpp
common_arg::get_value_from_env(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&): movq 0x88(%rdi), %rdi testq %rdi, %rdi je 0x27d0e pushq %r15 pushq %r14 pushq %rbx movq %rsi, %rbx callq 0x20c90 testq %rax, %rax je 0x27d11 movq %rax, %r14 movq 0x8(%rbx), %r15 movq %rax, %rdi callq 0x20640 movq %rbx, %rdi xorl %esi, %esi movq %r15, %rdx movq %r14, %rcx movq %rax, %r8 callq 0x20820 movb $0x1, %al jmp 0x27d13 xorl %eax, %eax retq xorl %eax, %eax popq %rbx popq %r14 popq %r15 retq nop
_ZN10common_arg18get_value_from_envERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: mov rdi, [rdi+88h] test rdi, rdi jz short loc_27D0E push r15 push r14 push rbx mov rbx, rsi call _getenv test rax, rax jz short loc_27D11 mov r14, rax mov r15, [rbx+8] mov rdi, rax call _strlen mov rdi, rbx xor esi, esi mov rdx, r15 mov rcx, r14 mov r8, rax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong) mov al, 1 jmp short loc_27D13 loc_27D0E: xor eax, eax retn loc_27D11: xor eax, eax loc_27D13: pop rbx pop r14 pop r15 retn
char common_arg::get_value_from_env(long long a1, long long a2) { long long v2; // rax long long v3; // r14 long long v4; // r15 long long v5; // rax if ( !*(_QWORD *)(a1 + 136) ) return 0; v2 = getenv(); if ( !v2 ) return 0; v3 = v2; v4 = *(_QWORD *)(a2 + 8); v5 = strlen(v2); std::string::_M_replace(a2, 0LL, v4, v3, v5); return 1; }
get_value_from_env: MOV RDI,qword ptr [RDI + 0x88] TEST RDI,RDI JZ 0x00127d0e PUSH R15 PUSH R14 PUSH RBX MOV RBX,RSI CALL 0x00120c90 TEST RAX,RAX JZ 0x00127d11 MOV R14,RAX MOV R15,qword ptr [RBX + 0x8] MOV RDI,RAX CALL 0x00120640 MOV RDI,RBX XOR ESI,ESI MOV RDX,R15 MOV RCX,R14 MOV R8,RAX CALL 0x00120820 MOV AL,0x1 JMP 0x00127d13 LAB_00127d0e: XOR EAX,EAX RET LAB_00127d11: XOR EAX,EAX LAB_00127d13: POP RBX POP R14 POP R15 RET
/* common_arg::get_value_from_env(std::__cxx11::string&) */ bool __thiscall common_arg::get_value_from_env(common_arg *this,string *param_1) { char *pcVar1; char *__s; if (*(char **)(this + 0x88) == (char *)0x0) { return false; } __s = getenv(*(char **)(this + 0x88)); if (__s != (char *)0x0) { pcVar1 = *(char **)(param_1 + 8); strlen(__s); std::__cxx11::string::_M_replace((ulong)param_1,0,pcVar1,(ulong)__s); } return __s != (char *)0x0; }
19,413
remove_io_thread
eloqsql/mysys/mf_iocache.c
void remove_io_thread(IO_CACHE *cache) { IO_CACHE_SHARE *cshare= cache->share; uint total; DBUG_ENTER("remove_io_thread"); /* If the writer goes, it needs to flush the write cache. */ if (cache == cshare->source_cache) flush_io_cache(cache); mysql_mutex_lock(&cshare->mutex); DBUG_PRINT("io_cache_share", ("%s: %p", (cache == cshare->source_cache) ? "writer" : "reader", cache)); /* Remove from share. */ total= --cshare->total_threads; DBUG_PRINT("io_cache_share", ("remaining threads: %u", total)); /* Detach from share. */ cache->share= NULL; /* If the writer goes, let the readers know. */ if (cache == cshare->source_cache) { DBUG_PRINT("io_cache_share", ("writer leaves")); cshare->source_cache= NULL; } /* If all threads are waiting for me to join the lock, wake them. */ if (!--cshare->running_threads) { DBUG_PRINT("io_cache_share", ("the last running thread leaves, wake all")); mysql_cond_signal(&cshare->cond_writer); mysql_cond_broadcast(&cshare->cond); } mysql_mutex_unlock(&cshare->mutex); if (!total) { DBUG_PRINT("io_cache_share", ("last thread removed, destroy share")); mysql_cond_destroy (&cshare->cond_writer); mysql_cond_destroy (&cshare->cond); mysql_mutex_destroy(&cshare->mutex); } DBUG_VOID_RETURN; }
O3
c
remove_io_thread: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdi, %r14 movq 0x98(%rdi), %rbx cmpq %rdi, 0xc0(%rbx) jne 0x51ab7 movq %r14, %rdi movl $0x1, %esi callq 0x511b9 cmpq $0x0, 0x40(%rbx) jne 0x51bc7 movq %rbx, %rdi callq 0x285a0 movl 0xdc(%rbx), %r15d decl %r15d movl %r15d, 0xdc(%rbx) movq $0x0, 0x98(%r14) cmpq %r14, 0xc0(%rbx) jne 0x51afa movq $0x0, 0xc0(%rbx) decl 0xd8(%rbx) jne 0x51b3a leaq 0x80(%rbx), %r14 movq 0xb0(%rbx), %rdi testq %rdi, %rdi jne 0x51bf5 movq %r14, %rdi callq 0x28040 leaq 0x48(%rbx), %r14 movq 0x78(%rbx), %rdi testq %rdi, %rdi jne 0x51c0a movq %r14, %rdi callq 0x28100 movq 0x40(%rbx), %rdi testq %rdi, %rdi jne 0x51be0 movq %rbx, %rdi callq 0x28280 testl %r15d, %r15d je 0x51b5f addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq leaq 0x80(%rbx), %r14 movq 0xb0(%rbx), %rdi testq %rdi, %rdi jne 0x51c1f movq %r14, %rdi callq 0x287a0 leaq 0x48(%rbx), %r14 movq 0x78(%rbx), %rdi testq %rdi, %rdi jne 0x51c3c movq %r14, %rdi callq 0x287a0 movq 0x40(%rbx), %rdi testq %rdi, %rdi je 0x51bb5 leaq 0x2e4d21(%rip), %rax # 0x3368c8 movq (%rax), %rax callq *0x48(%rax) movq $0x0, 0x40(%rbx) movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp 0x28470 leaq 0x450af(%rip), %rsi # 0x96c7d movq %rbx, %rdi movl $0x392, %edx # imm = 0x392 callq 0x29f5c jmp 0x51aca leaq 0x2e4ce1(%rip), %rax # 0x3368c8 movq (%rax), %rax callq *0x160(%rax) jmp 0x51b47 leaq 0x2e4ccc(%rip), %rax # 0x3368c8 movq (%rax), %rax callq *0x170(%rax) jmp 0x51b19 leaq 0x2e4cb7(%rip), %rax # 0x3368c8 movq (%rax), %rax callq *0x178(%rax) jmp 0x51b32 leaq 0x2e4ca2(%rip), %rax # 0x3368c8 movq (%rax), %rax callq *0x68(%rax) movq $0x0, 0xb0(%rbx) jmp 0x51b76 leaq 0x2e4c85(%rip), %rax # 0x3368c8 movq (%rax), %rax callq *0x68(%rax) movq $0x0, 0x78(%rbx) jmp 0x51b8f
remove_io_thread: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov r14, rdi mov rbx, [rdi+98h] cmp [rbx+0C0h], rdi jnz short loc_51AB7 mov rdi, r14 mov esi, 1 call my_b_flush_io_cache loc_51AB7: cmp qword ptr [rbx+40h], 0 jnz loc_51BC7 mov rdi, rbx call _pthread_mutex_lock loc_51ACA: mov r15d, [rbx+0DCh] dec r15d mov [rbx+0DCh], r15d mov qword ptr [r14+98h], 0 cmp [rbx+0C0h], r14 jnz short loc_51AFA mov qword ptr [rbx+0C0h], 0 loc_51AFA: dec dword ptr [rbx+0D8h] jnz short loc_51B3A lea r14, [rbx+80h] mov rdi, [rbx+0B0h] test rdi, rdi jnz loc_51BF5 loc_51B19: mov rdi, r14 call _pthread_cond_signal lea r14, [rbx+48h] mov rdi, [rbx+78h] test rdi, rdi jnz loc_51C0A loc_51B32: mov rdi, r14 call _pthread_cond_broadcast loc_51B3A: mov rdi, [rbx+40h] test rdi, rdi jnz loc_51BE0 loc_51B47: mov rdi, rbx call _pthread_mutex_unlock test r15d, r15d jz short loc_51B5F add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn loc_51B5F: lea r14, [rbx+80h] mov rdi, [rbx+0B0h] test rdi, rdi jnz loc_51C1F loc_51B76: mov rdi, r14 call _pthread_cond_destroy lea r14, [rbx+48h] mov rdi, [rbx+78h] test rdi, rdi jnz loc_51C3C loc_51B8F: mov rdi, r14 call _pthread_cond_destroy mov rdi, [rbx+40h] test rdi, rdi jz short loc_51BB5 lea rax, PSI_server mov rax, [rax] call qword ptr [rax+48h] mov qword ptr [rbx+40h], 0 loc_51BB5: mov rdi, rbx add rsp, 8 pop rbx pop r14 pop r15 pop rbp jmp _pthread_mutex_destroy loc_51BC7: lea rsi, aWorkspaceLlm4b_9; "/workspace/llm4binary/github2025/eloqsq"... mov rdi, rbx mov edx, 392h call psi_mutex_lock jmp loc_51ACA loc_51BE0: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp loc_51B47 loc_51BF5: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+170h] jmp loc_51B19 loc_51C0A: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+178h] jmp loc_51B32 loc_51C1F: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+68h] mov qword ptr [rbx+0B0h], 0 jmp loc_51B76 loc_51C3C: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+68h] mov qword ptr [rbx+78h], 0 jmp loc_51B8F
long long remove_io_thread(long long *a1) { long long v1; // rbx int v2; // r15d long long v4; // rdi long long v5; // rdi long long v6; // rdi long long result; // rax long long v8; // rdi long long v9; // rdi long long v10; // rdi v1 = a1[19]; if ( *(long long **)(v1 + 192) == a1 ) my_b_flush_io_cache(a1, 1); if ( *(_QWORD *)(v1 + 64) ) psi_mutex_lock(v1, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c", 0x392u); else pthread_mutex_lock(v1); v2 = *(_DWORD *)(v1 + 220) - 1; *(_DWORD *)(v1 + 220) = v2; a1[19] = 0LL; if ( *(long long **)(v1 + 192) == a1 ) *(_QWORD *)(v1 + 192) = 0LL; if ( (*(_DWORD *)(v1 + 216))-- == 1 ) { v4 = *(_QWORD *)(v1 + 176); if ( v4 ) (*((void ( **)(long long))PSI_server + 46))(v4); pthread_cond_signal(v1 + 128); v5 = *(_QWORD *)(v1 + 120); if ( v5 ) (*((void ( **)(long long))PSI_server + 47))(v5); pthread_cond_broadcast(v1 + 72); } v6 = *(_QWORD *)(v1 + 64); if ( v6 ) (*((void ( **)(long long))PSI_server + 44))(v6); result = pthread_mutex_unlock(v1); if ( !v2 ) { v8 = *(_QWORD *)(v1 + 176); if ( v8 ) { (*((void ( **)(long long))PSI_server + 13))(v8); *(_QWORD *)(v1 + 176) = 0LL; } pthread_cond_destroy(v1 + 128); v9 = *(_QWORD *)(v1 + 120); if ( v9 ) { (*((void ( **)(long long))PSI_server + 13))(v9); *(_QWORD *)(v1 + 120) = 0LL; } pthread_cond_destroy(v1 + 72); v10 = *(_QWORD *)(v1 + 64); if ( v10 ) { (*((void ( **)(long long))PSI_server + 9))(v10); *(_QWORD *)(v1 + 64) = 0LL; } return pthread_mutex_destroy(v1); } return result; }
remove_io_thread: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV R14,RDI MOV RBX,qword ptr [RDI + 0x98] CMP qword ptr [RBX + 0xc0],RDI JNZ 0x00151ab7 MOV RDI,R14 MOV ESI,0x1 CALL 0x001511b9 LAB_00151ab7: CMP qword ptr [RBX + 0x40],0x0 JNZ 0x00151bc7 MOV RDI,RBX CALL 0x001285a0 LAB_00151aca: MOV R15D,dword ptr [RBX + 0xdc] DEC R15D MOV dword ptr [RBX + 0xdc],R15D MOV qword ptr [R14 + 0x98],0x0 CMP qword ptr [RBX + 0xc0],R14 JNZ 0x00151afa MOV qword ptr [RBX + 0xc0],0x0 LAB_00151afa: DEC dword ptr [RBX + 0xd8] JNZ 0x00151b3a LEA R14,[RBX + 0x80] MOV RDI,qword ptr [RBX + 0xb0] TEST RDI,RDI JNZ 0x00151bf5 LAB_00151b19: MOV RDI,R14 CALL 0x00128040 LEA R14,[RBX + 0x48] MOV RDI,qword ptr [RBX + 0x78] TEST RDI,RDI JNZ 0x00151c0a LAB_00151b32: MOV RDI,R14 CALL 0x00128100 LAB_00151b3a: MOV RDI,qword ptr [RBX + 0x40] TEST RDI,RDI JNZ 0x00151be0 LAB_00151b47: MOV RDI,RBX CALL 0x00128280 TEST R15D,R15D JZ 0x00151b5f ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET LAB_00151b5f: LEA R14,[RBX + 0x80] MOV RDI,qword ptr [RBX + 0xb0] TEST RDI,RDI JNZ 0x00151c1f LAB_00151b76: MOV RDI,R14 CALL 0x001287a0 LEA R14,[RBX + 0x48] MOV RDI,qword ptr [RBX + 0x78] TEST RDI,RDI JNZ 0x00151c3c LAB_00151b8f: MOV RDI,R14 CALL 0x001287a0 MOV RDI,qword ptr [RBX + 0x40] TEST RDI,RDI JZ 0x00151bb5 LEA RAX,[0x4368c8] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x48] MOV qword ptr [RBX + 0x40],0x0 LAB_00151bb5: MOV RDI,RBX ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP JMP 0x00128470 LAB_00151bc7: LEA RSI,[0x196c7d] MOV RDI,RBX MOV EDX,0x392 CALL 0x00129f5c JMP 0x00151aca LAB_00151be0: LEA RAX,[0x4368c8] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x00151b47 LAB_00151bf5: LEA RAX,[0x4368c8] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x170] JMP 0x00151b19 LAB_00151c0a: LEA RAX,[0x4368c8] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x178] JMP 0x00151b32 LAB_00151c1f: LEA RAX,[0x4368c8] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x68] MOV qword ptr [RBX + 0xb0],0x0 JMP 0x00151b76 LAB_00151c3c: LEA RAX,[0x4368c8] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x68] MOV qword ptr [RBX + 0x78],0x0 JMP 0x00151b8f
void remove_io_thread(long param_1) { int *piVar1; pthread_mutex_t *__mutex; int iVar2; __mutex = *(pthread_mutex_t **)(param_1 + 0x98); if (*(long *)((long)__mutex + 0xc0) == param_1) { my_b_flush_io_cache(param_1,1); } if (*(long *)((long)__mutex + 0x40) == 0) { pthread_mutex_lock(__mutex); } else { psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",0x392); } iVar2 = *(int *)((long)__mutex + 0xdc) + -1; *(int *)((long)__mutex + 0xdc) = iVar2; *(int8 *)(param_1 + 0x98) = 0; if (*(long *)((long)__mutex + 0xc0) == param_1) { *(int8 *)((long)__mutex + 0xc0) = 0; } piVar1 = (int *)((long)__mutex + 0xd8); *piVar1 = *piVar1 + -1; if (*piVar1 == 0) { if (*(long *)((long)__mutex + 0xb0) != 0) { (**(code **)(PSI_server + 0x170))(); } pthread_cond_signal((pthread_cond_t *)((long)__mutex + 0x80)); if (__mutex[3].__align != 0) { (**(code **)(PSI_server + 0x178))(); } pthread_cond_broadcast((pthread_cond_t *)((long)__mutex + 0x48)); } if (*(long *)((long)__mutex + 0x40) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock(__mutex); if (iVar2 != 0) { return; } if (*(long *)((long)__mutex + 0xb0) != 0) { (**(code **)(PSI_server + 0x68))(); *(int8 *)((long)__mutex + 0xb0) = 0; } pthread_cond_destroy((pthread_cond_t *)((long)__mutex + 0x80)); if (__mutex[3].__align != 0) { (**(code **)(PSI_server + 0x68))(); __mutex[3].__align = 0; } pthread_cond_destroy((pthread_cond_t *)((long)__mutex + 0x48)); if (*(long *)((long)__mutex + 0x40) != 0) { (**(code **)(PSI_server + 0x48))(); *(int8 *)((long)__mutex + 0x40) = 0; } pthread_mutex_destroy(__mutex); return; }
19,414
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::size() const
monkey531[P]llama/common/./json.hpp
size_type size() const noexcept { switch (m_data.m_type) { case value_t::null: { // null values are empty return 0; } case value_t::array: { // delegate call to array_t::size() return m_data.m_value.array->size(); } case value_t::object: { // delegate call to object_t::size() return m_data.m_value.object->size(); } case value_t::string: case value_t::boolean: case value_t::number_integer: case value_t::number_unsigned: case value_t::number_float: case value_t::binary: case value_t::discarded: default: { // all other types have size 1 return 1; } } }
O1
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::size() const: movzbl (%rdi), %eax testl %eax, %eax je 0x4adec cmpl $0x1, %eax je 0x4adc9 cmpl $0x2, %eax jne 0x4ade7 movq 0x8(%rdi), %rcx movq 0x8(%rcx), %rax subq (%rcx), %rax sarq $0x4, %rax retq movq 0x8(%rdi), %rax movq 0x8(%rax), %rcx subq (%rax), %rcx sarq $0x4, %rcx movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB imulq %rcx, %rax retq movl $0x1, %eax retq nop
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4sizeEv: movzx eax, byte ptr [rdi] test eax, eax jz short locret_4ADEC cmp eax, 1 jz short loc_4ADC9 cmp eax, 2 jnz short loc_4ADE7 mov rcx, [rdi+8] mov rax, [rcx+8] sub rax, [rcx] sar rax, 4 retn loc_4ADC9: mov rax, [rdi+8] mov rcx, [rax+8] sub rcx, [rax] sar rcx, 4 mov rax, 0AAAAAAAAAAAAAAABh imul rax, rcx retn loc_4ADE7: mov eax, 1 locret_4ADEC: retn
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::size( unsigned __int8 *a1) { long long result; // rax result = *a1; if ( *a1 ) { if ( (_DWORD)result == 1 ) { return 0xAAAAAAAAAAAAAAABLL * ((long long)(*(_QWORD *)(*((_QWORD *)a1 + 1) + 8LL) - **((_QWORD **)a1 + 1)) >> 4); } else if ( (_DWORD)result == 2 ) { return (long long)(*(_QWORD *)(*((_QWORD *)a1 + 1) + 8LL) - **((_QWORD **)a1 + 1)) >> 4; } else { return 1LL; } } return result; }
size: MOVZX EAX,byte ptr [RDI] TEST EAX,EAX JZ 0x0014adec CMP EAX,0x1 JZ 0x0014adc9 CMP EAX,0x2 JNZ 0x0014ade7 MOV RCX,qword ptr [RDI + 0x8] MOV RAX,qword ptr [RCX + 0x8] SUB RAX,qword ptr [RCX] SAR RAX,0x4 RET LAB_0014adc9: MOV RAX,qword ptr [RDI + 0x8] MOV RCX,qword ptr [RAX + 0x8] SUB RCX,qword ptr [RAX] SAR RCX,0x4 MOV RAX,-0x5555555555555555 IMUL RAX,RCX RET LAB_0014ade7: MOV EAX,0x1 LAB_0014adec: RET
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>::size() const */ ulong __thiscall nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::size(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *this) { basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> bVar1; ulong uVar2; bVar1 = *this; uVar2 = (ulong)(byte)bVar1; if (bVar1 != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x0) { if (bVar1 == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x1) { return ((*(long **)(this + 8))[1] - **(long **)(this + 8) >> 4) * -0x5555555555555555; } if (bVar1 == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x2) { return (*(long **)(this + 8))[1] - **(long **)(this + 8) >> 4; } uVar2 = 1; } return uVar2; }
19,415
nlohmann::json_abi_v3_11_3::operator==(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&)
monkey531[P]llama/common/./json.hpp
friend bool operator==(const_reference lhs, const_reference rhs) noexcept { #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wfloat-equal" #endif JSON_IMPLEMENT_OPERATOR( ==, true, false, false) #ifdef __GNUC__ #pragma GCC diagnostic pop #endif }
O0
cpp
nlohmann::json_abi_v3_11_3::operator==(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, nlohmann::json_abi_v3_11_3::basic_json<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&): subq $0x38, %rsp movq %rdi, 0x28(%rsp) movq %rsi, 0x20(%rsp) movq 0x28(%rsp), %rdi callq 0x14d6b0 movb %al, 0x1f(%rsp) movq 0x20(%rsp), %rdi callq 0x14d6b0 movb %al, 0x1e(%rsp) movb 0x1f(%rsp), %al cmpb 0x1e(%rsp), %al jne 0x220bdf movzbl 0x1f(%rsp), %eax movq %rax, 0x10(%rsp) subq $0x9, %rax ja 0x220bd5 movq 0x10(%rsp), %rax leaq 0xd0dd8(%rip), %rcx # 0x2f1860 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq 0x28(%rsp), %rax movq 0x8(%rax), %rdi movq 0x20(%rsp), %rax movq 0x8(%rax), %rsi callq 0x220e20 movb %al, 0xf(%rsp) jmp 0x220aae movb 0xf(%rsp), %al andb $0x1, %al movb %al, 0x37(%rsp) jmp 0x220d88 movq 0x28(%rsp), %rax movq 0x8(%rax), %rdi movq 0x20(%rsp), %rax movq 0x8(%rax), %rsi callq 0x220eb0 movb %al, 0xe(%rsp) jmp 0x220ada movb 0xe(%rsp), %al andb $0x1, %al movb %al, 0x37(%rsp) jmp 0x220d88 movb $0x1, 0x37(%rsp) jmp 0x220d88 movq 0x28(%rsp), %rax movq 0x8(%rax), %rdi movq 0x20(%rsp), %rax movq 0x8(%rax), %rsi callq 0xb0190 andb $0x1, %al movb %al, 0x37(%rsp) jmp 0x220d88 movq 0x28(%rsp), %rax movb 0x8(%rax), %al andb $0x1, %al movzbl %al, %eax movq 0x20(%rsp), %rcx movb 0x8(%rcx), %cl andb $0x1, %cl movzbl %cl, %ecx cmpl %ecx, %eax sete %al andb $0x1, %al movb %al, 0x37(%rsp) jmp 0x220d88 movq 0x28(%rsp), %rax movq 0x8(%rax), %rax movq 0x20(%rsp), %rcx cmpq 0x8(%rcx), %rax sete %al andb $0x1, %al movb %al, 0x37(%rsp) jmp 0x220d88 movq 0x28(%rsp), %rax movq 0x8(%rax), %rax movq 0x20(%rsp), %rcx cmpq 0x8(%rcx), %rax sete %al andb $0x1, %al movb %al, 0x37(%rsp) jmp 0x220d88 movq 0x28(%rsp), %rax movsd 0x8(%rax), %xmm0 movq 0x20(%rsp), %rax ucomisd 0x8(%rax), %xmm0 sete %al setnp %cl andb %cl, %al andb $0x1, %al movb %al, 0x37(%rsp) jmp 0x220d88 movq 0x28(%rsp), %rax movq 0x8(%rax), %rdi movq 0x20(%rsp), %rax movq 0x8(%rax), %rsi callq 0x220f40 movb %al, 0xd(%rsp) jmp 0x220bc4 movb 0xd(%rsp), %al andb $0x1, %al movb %al, 0x37(%rsp) jmp 0x220d88 jmp 0x220bd5 movb $0x0, 0x37(%rsp) jmp 0x220d88 cmpb $0x5, 0x1f(%rsp) jne 0x220c15 cmpb $0x7, 0x1e(%rsp) jne 0x220c15 movq 0x28(%rsp), %rax cvtsi2sdq 0x8(%rax), %xmm0 movq 0x20(%rsp), %rax ucomisd 0x8(%rax), %xmm0 sete %al setnp %cl andb %cl, %al andb $0x1, %al movb %al, 0x37(%rsp) jmp 0x220d88 cmpb $0x7, 0x1f(%rsp) jne 0x220c4f cmpb $0x5, 0x1e(%rsp) jne 0x220c4f movq 0x28(%rsp), %rax movsd 0x8(%rax), %xmm0 movq 0x20(%rsp), %rax cvtsi2sdq 0x8(%rax), %xmm1 ucomisd %xmm1, %xmm0 sete %al setnp %cl andb %cl, %al andb $0x1, %al movb %al, 0x37(%rsp) jmp 0x220d88 cmpb $0x6, 0x1f(%rsp) jne 0x220ca6 cmpb $0x7, 0x1e(%rsp) jne 0x220ca6 movq 0x28(%rsp), %rax movq 0x8(%rax), %xmm0 movaps 0xbdf82(%rip), %xmm1 # 0x2debf0 punpckldq %xmm1, %xmm0 # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1] movapd 0xbdf86(%rip), %xmm1 # 0x2dec00 subpd %xmm1, %xmm0 movaps %xmm0, %xmm1 unpckhpd %xmm0, %xmm0 # xmm0 = xmm0[1,1] addsd %xmm1, %xmm0 movq 0x20(%rsp), %rax ucomisd 0x8(%rax), %xmm0 sete %al setnp %cl andb %cl, %al andb $0x1, %al movb %al, 0x37(%rsp) jmp 0x220d88 cmpb $0x7, 0x1f(%rsp) jne 0x220d01 cmpb $0x6, 0x1e(%rsp) jne 0x220d01 movq 0x28(%rsp), %rax movsd 0x8(%rax), %xmm0 movq 0x20(%rsp), %rax movq 0x8(%rax), %xmm1 movaps 0xbdf21(%rip), %xmm2 # 0x2debf0 punpckldq %xmm2, %xmm1 # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1] movapd 0xbdf25(%rip), %xmm2 # 0x2dec00 subpd %xmm2, %xmm1 movaps %xmm1, %xmm2 unpckhpd %xmm1, %xmm1 # xmm1 = xmm1[1,1] addsd %xmm2, %xmm1 ucomisd %xmm1, %xmm0 sete %al setnp %cl andb %cl, %al andb $0x1, %al movb %al, 0x37(%rsp) jmp 0x220d88 cmpb $0x6, 0x1f(%rsp) jne 0x220d2c cmpb $0x5, 0x1e(%rsp) jne 0x220d2c movq 0x28(%rsp), %rax movq 0x8(%rax), %rax movq 0x20(%rsp), %rcx cmpq 0x8(%rcx), %rax sete %al andb $0x1, %al movb %al, 0x37(%rsp) jmp 0x220d88 cmpb $0x5, 0x1f(%rsp) jne 0x220d57 cmpb $0x6, 0x1e(%rsp) jne 0x220d57 movq 0x28(%rsp), %rax movq 0x8(%rax), %rax movq 0x20(%rsp), %rcx cmpq 0x8(%rcx), %rax sete %al andb $0x1, %al movb %al, 0x37(%rsp) jmp 0x220d88 movq 0x28(%rsp), %rdi movq 0x20(%rsp), %rsi xorl %edx, %edx callq 0x220fb0 testb $0x1, %al jne 0x220d6e jmp 0x220d75 movb $0x0, 0x37(%rsp) jmp 0x220d88 jmp 0x220d77 jmp 0x220d79 jmp 0x220d7b jmp 0x220d7d jmp 0x220d7f jmp 0x220d81 jmp 0x220d83 movb $0x0, 0x37(%rsp) movb 0x37(%rsp), %al andb $0x1, %al addq $0x38, %rsp retq movq %rax, %rdi callq 0x989e0 nopl (%rax,%rax)
_ZN8nlohmann16json_abi_v3_11_3eqERKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEESF_: sub rsp, 38h mov [rsp+38h+var_10], rdi mov [rsp+38h+var_18], rsi mov rdi, [rsp+38h+var_10] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4typeEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type(void) mov [rsp+38h+var_19], al mov rdi, [rsp+38h+var_18] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4typeEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type(void) mov [rsp+38h+var_1A], al mov al, [rsp+38h+var_19] cmp al, [rsp+38h+var_1A] jnz loc_220BDF movzx eax, [rsp+38h+var_19] mov [rsp+38h+var_28], rax sub rax, 9; switch 10 cases ja def_220A8F; jumptable 0000000000220A8F default case mov rax, [rsp+38h+var_28] lea rcx, jpt_220A8F movsxd rax, ds:(jpt_220A8F - 2F1860h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_220A91: mov rax, [rsp+38h+var_10]; jumptable 0000000000220A8F case 2 mov rdi, [rax+8] mov rax, [rsp+38h+var_18] mov rsi, [rax+8] call _ZSteqIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEESaISE_EEbRKS4_IT_T0_ESK_; std::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>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>(std::vector const&<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,std::vector const&<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>) mov [rsp+38h+var_29], al jmp short $+2 loc_220AAE: mov al, [rsp+38h+var_29] and al, 1 mov [rsp+38h+var_1], al jmp loc_220D88 loc_220ABD: mov rax, [rsp+38h+var_10]; jumptable 0000000000220A8F case 1 mov rdi, [rax+8] mov rax, [rsp+38h+var_18] mov rsi, [rax+8] call _ZSteqISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapESt6vectorS6_blmdSaNS9_14adl_serializerESC_IhSaIhEEvEEESaISH_EEbRKSC_IT_T0_ESN_; std::operator==<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>(std::vector const&<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>,std::vector const&<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>) mov [rsp+38h+var_2A], al jmp short $+2 loc_220ADA: mov al, [rsp+38h+var_2A] and al, 1 mov [rsp+38h+var_1], al jmp loc_220D88 loc_220AE9: mov [rsp+38h+var_1], 1; jumptable 0000000000220A8F case 0 jmp loc_220D88 loc_220AF3: mov rax, [rsp+38h+var_10]; jumptable 0000000000220A8F case 3 mov rdi, [rax+8] mov rax, [rsp+38h+var_18] mov rsi, [rax+8] call _ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_ and al, 1 mov [rsp+38h+var_1], al jmp loc_220D88 loc_220B15: mov rax, [rsp+38h+var_10]; jumptable 0000000000220A8F case 4 mov al, [rax+8] and al, 1 movzx eax, al mov rcx, [rsp+38h+var_18] mov cl, [rcx+8] and cl, 1 movzx ecx, cl cmp eax, ecx setz al and al, 1 mov [rsp+38h+var_1], al jmp loc_220D88 loc_220B40: mov rax, [rsp+38h+var_10]; jumptable 0000000000220A8F case 5 mov rax, [rax+8] mov rcx, [rsp+38h+var_18] cmp rax, [rcx+8] setz al and al, 1 mov [rsp+38h+var_1], al jmp loc_220D88 loc_220B60: mov rax, [rsp+38h+var_10]; jumptable 0000000000220A8F case 6 mov rax, [rax+8] mov rcx, [rsp+38h+var_18] cmp rax, [rcx+8] setz al and al, 1 mov [rsp+38h+var_1], al jmp loc_220D88 loc_220B80: mov rax, [rsp+38h+var_10]; jumptable 0000000000220A8F case 7 movsd xmm0, qword ptr [rax+8] mov rax, [rsp+38h+var_18] ucomisd xmm0, qword ptr [rax+8] setz al setnp cl and al, cl and al, 1 mov [rsp+38h+var_1], al jmp loc_220D88 loc_220BA7: mov rax, [rsp+38h+var_10]; jumptable 0000000000220A8F case 8 mov rdi, [rax+8] mov rax, [rsp+38h+var_18] mov rsi, [rax+8] call _ZNK8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEeqERKS5_; nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>::operator==(nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>> const&) mov [rsp+38h+var_2B], al jmp short $+2 loc_220BC4: mov al, [rsp+38h+var_2B] and al, 1 mov [rsp+38h+var_1], al jmp loc_220D88 loc_220BD3: jmp short $+2; jumptable 0000000000220A8F case 9 def_220A8F: mov [rsp+38h+var_1], 0; jumptable 0000000000220A8F default case jmp loc_220D88 loc_220BDF: cmp [rsp+38h+var_19], 5 jnz short loc_220C15 cmp [rsp+38h+var_1A], 7 jnz short loc_220C15 mov rax, [rsp+38h+var_10] cvtsi2sd xmm0, qword ptr [rax+8] mov rax, [rsp+38h+var_18] ucomisd xmm0, qword ptr [rax+8] setz al setnp cl and al, cl and al, 1 mov [rsp+38h+var_1], al jmp loc_220D88 loc_220C15: cmp [rsp+38h+var_19], 7 jnz short loc_220C4F cmp [rsp+38h+var_1A], 5 jnz short loc_220C4F mov rax, [rsp+38h+var_10] movsd xmm0, qword ptr [rax+8] mov rax, [rsp+38h+var_18] cvtsi2sd xmm1, qword ptr [rax+8] ucomisd xmm0, xmm1 setz al setnp cl and al, cl and al, 1 mov [rsp+38h+var_1], al jmp loc_220D88 loc_220C4F: cmp [rsp+38h+var_19], 6 jnz short loc_220CA6 cmp [rsp+38h+var_1A], 7 jnz short loc_220CA6 mov rax, [rsp+38h+var_10] movq xmm0, qword ptr [rax+8] movaps xmm1, cs:xmmword_2DEBF0 punpckldq xmm0, xmm1 movapd xmm1, cs:xmmword_2DEC00 subpd xmm0, xmm1 movaps xmm1, xmm0 unpckhpd xmm0, xmm0 addsd xmm0, xmm1 mov rax, [rsp+38h+var_18] ucomisd xmm0, qword ptr [rax+8] setz al setnp cl and al, cl and al, 1 mov [rsp+38h+var_1], al jmp loc_220D88 loc_220CA6: cmp [rsp+38h+var_19], 7 jnz short loc_220D01 cmp [rsp+38h+var_1A], 6 jnz short loc_220D01 mov rax, [rsp+38h+var_10] movsd xmm0, qword ptr [rax+8] mov rax, [rsp+38h+var_18] movq xmm1, qword ptr [rax+8] movaps xmm2, cs:xmmword_2DEBF0 punpckldq xmm1, xmm2 movapd xmm2, cs:xmmword_2DEC00 subpd xmm1, xmm2 movaps xmm2, xmm1 unpckhpd xmm1, xmm1 addsd xmm1, xmm2 ucomisd xmm0, xmm1 setz al setnp cl and al, cl and al, 1 mov [rsp+38h+var_1], al jmp loc_220D88 loc_220D01: cmp [rsp+38h+var_19], 6 jnz short loc_220D2C cmp [rsp+38h+var_1A], 5 jnz short loc_220D2C mov rax, [rsp+38h+var_10] mov rax, [rax+8] mov rcx, [rsp+38h+var_18] cmp rax, [rcx+8] setz al and al, 1 mov [rsp+38h+var_1], al jmp short loc_220D88 loc_220D2C: cmp [rsp+38h+var_19], 5 jnz short loc_220D57 cmp [rsp+38h+var_1A], 6 jnz short loc_220D57 mov rax, [rsp+38h+var_10] mov rax, [rax+8] mov rcx, [rsp+38h+var_18] cmp rax, [rcx+8] setz al and al, 1 mov [rsp+38h+var_1], al jmp short loc_220D88 loc_220D57: mov rdi, [rsp+38h+var_10] mov rsi, [rsp+38h+var_18] xor edx, edx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE18compares_unorderedERKSD_SF_b; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::compares_unordered(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,bool) test al, 1 jnz short loc_220D6E jmp short loc_220D75 loc_220D6E: mov [rsp+38h+var_1], 0 jmp short loc_220D88 loc_220D75: jmp short $+2 loc_220D77: jmp short $+2 loc_220D79: jmp short $+2 loc_220D7B: jmp short $+2 loc_220D7D: jmp short $+2 loc_220D7F: jmp short $+2 loc_220D81: jmp short $+2 loc_220D83: mov [rsp+38h+var_1], 0 loc_220D88: mov al, [rsp+38h+var_1] and al, 1 add rsp, 38h retn mov rdi, rax call __clang_call_terminate
char nlohmann::json_abi_v3_11_3::operator==(long long a1, long long a2) { __m128d v2; // xmm1 __m128d v3; // xmm2 char v5; // [rsp+1Eh] [rbp-1Ah] char v6; // [rsp+1Fh] [rbp-19h] char v7; // [rsp+37h] [rbp-1h] v6 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type(a1); v5 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type(a2); if ( v6 == v5 ) { switch ( v6 ) { case 0: v7 = 1; break; case 1: v7 = std::operator==<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>( *(_QWORD *)(a1 + 8), *(_QWORD *)(a2 + 8)) & 1; break; case 2: v7 = std::operator==<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>( *(_QWORD *)(a1 + 8), *(_QWORD *)(a2 + 8)) & 1; break; case 3: v7 = std::operator==<char>(*(_QWORD *)(a1 + 8), *(_QWORD *)(a2 + 8)) & 1; break; case 4: v7 = (*(_BYTE *)(a1 + 8) & 1) == (*(_BYTE *)(a2 + 8) & 1); break; case 5: v7 = *(_QWORD *)(a1 + 8) == *(_QWORD *)(a2 + 8); break; case 6: v7 = *(_QWORD *)(a1 + 8) == *(_QWORD *)(a2 + 8); break; case 7: v7 = *(double *)(a1 + 8) == *(double *)(a2 + 8); break; case 8: v7 = nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>::operator==( *(_QWORD *)(a1 + 8), *(_QWORD *)(a2 + 8)) & 1; break; default: v7 = 0; break; } } else if ( v6 == 5 && v5 == 7 ) { v7 = (double)(int)*(_QWORD *)(a1 + 8) == *(double *)(a2 + 8); } else if ( v6 == 7 && v5 == 5 ) { v7 = *(double *)(a1 + 8) == (double)(int)*(_QWORD *)(a2 + 8); } else if ( v6 == 6 && v5 == 7 ) { v2 = _mm_sub_pd( (__m128d)_mm_unpacklo_epi32(_mm_loadl_epi64((const __m128i *)(a1 + 8)), (__m128i)xmmword_2DEBF0), (__m128d)xmmword_2DEC00); v7 = _mm_unpackhi_pd(v2, v2).m128d_f64[0] + v2.m128d_f64[0] == *(double *)(a2 + 8); } else if ( v6 == 7 && v5 == 6 ) { v3 = _mm_sub_pd( (__m128d)_mm_unpacklo_epi32(_mm_loadl_epi64((const __m128i *)(a2 + 8)), (__m128i)xmmword_2DEBF0), (__m128d)xmmword_2DEC00); v7 = *(double *)(a1 + 8) == _mm_unpackhi_pd(v3, v3).m128d_f64[0] + v3.m128d_f64[0]; } else if ( v6 == 6 && v5 == 5 ) { v7 = *(_QWORD *)(a1 + 8) == *(_QWORD *)(a2 + 8); } else if ( v6 == 5 && v5 == 6 ) { v7 = *(_QWORD *)(a1 + 8) == *(_QWORD *)(a2 + 8); } else { v7 = 0; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::compares_unordered( a1, a2, 0LL); } return v7 & 1; }
_M_get_pointer: PUSH RAX MOV qword ptr [RSP],RDI MOV RDI,qword ptr [RSP] CALL 0x00223fb0 MOV RAX,qword ptr [RAX] POP RCX RET
/* std::_Function_base::_Base_manager<httplib::Server::read_content_core(httplib::Stream&, httplib::Request&, httplib::Response&, std::function<bool (char const*, unsigned long)>, std::function<bool (httplib::MultipartFormData const&)>, std::function<bool (char const*, unsigned long)>) const::{lambda(char const*, unsigned long, unsigned long, unsigned long)#1}>::_M_get_pointer(std::_Any_data const&) */ _lambda_char_const__unsigned_long_unsigned_long_unsigned_long__1_ * std::_Function_base:: _Base_manager<httplib::Server::read_content_core(httplib::Stream&,httplib::Request&,httplib::Response&,std::function<bool(char_const*,unsigned_long)>,std::function<bool(httplib::MultipartFormData_const&)>,std::function<bool(char_const*,unsigned_long)>)const::{lambda(char_const*,unsigned_long,unsigned_long,unsigned_long)#1}> ::_M_get_pointer(_Any_data *param_1) { _lambda_char_const__unsigned_long_unsigned_long_unsigned_long__1_ **pp_Var1; pp_Var1 = _Any_data:: _M_access<httplib::Server::read_content_core(httplib::Stream&,httplib::Request&,httplib::Response&,std::function<bool(char_const*,unsigned_long)>,std::function<bool(httplib::MultipartFormData_const&)>,std::function<bool(char_const*,unsigned_long)>)const::_lambda(char_const*,unsigned_long,unsigned_long,unsigned_long)_1_*> (param_1); return *pp_Var1; }
19,416
lex2str
eloqsql/strings/xml.c
static const char *lex2str(int lex) { switch(lex) { case MY_XML_EOF: return "END-OF-INPUT"; case MY_XML_STRING: return "STRING"; case MY_XML_IDENT: return "IDENT"; case MY_XML_CDATA: return "CDATA"; case MY_XML_EQ: return "'='"; case MY_XML_LT: return "'<'"; case MY_XML_GT: return "'>'"; case MY_XML_SLASH: return "'/'"; case MY_XML_COMMENT: return "COMMENT"; case MY_XML_TEXT: return "TEXT"; case MY_XML_QUESTION: return "'?'"; case MY_XML_EXCLAM: return "'!'"; } return "unknown token"; }
O0
c
lex2str: pushq %rbp movq %rsp, %rbp movl %edi, -0xc(%rbp) movl -0xc(%rbp), %eax addl $-0x21, %eax movl %eax, %ecx movq %rcx, -0x18(%rbp) subl $0x33, %eax ja 0x30f25 movq -0x18(%rbp), %rax leaq 0x55371(%rip), %rcx # 0x861e8 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax leaq 0x4d37e(%rip), %rax # 0x7e205 movq %rax, -0x8(%rbp) jmp 0x30f30 leaq 0x4d395(%rip), %rax # 0x7e22c movq %rax, -0x8(%rbp) jmp 0x30f30 leaq 0x4d38c(%rip), %rax # 0x7e233 movq %rax, -0x8(%rbp) jmp 0x30f30 leaq 0x4d382(%rip), %rax # 0x7e239 movq %rax, -0x8(%rbp) jmp 0x30f30 leaq 0x4d37b(%rip), %rax # 0x7e23f movq %rax, -0x8(%rbp) jmp 0x30f30 leaq 0x4d372(%rip), %rax # 0x7e243 movq %rax, -0x8(%rbp) jmp 0x30f30 leaq 0x4d369(%rip), %rax # 0x7e247 movq %rax, -0x8(%rbp) jmp 0x30f30 leaq 0x4d360(%rip), %rax # 0x7e24b movq %rax, -0x8(%rbp) jmp 0x30f30 leaq 0x4d357(%rip), %rax # 0x7e24f movq %rax, -0x8(%rbp) jmp 0x30f30 leaq 0x4d352(%rip), %rax # 0x7e257 movq %rax, -0x8(%rbp) jmp 0x30f30 leaq 0x4d34a(%rip), %rax # 0x7e25c movq %rax, -0x8(%rbp) jmp 0x30f30 leaq 0x4d341(%rip), %rax # 0x7e260 movq %rax, -0x8(%rbp) jmp 0x30f30 leaq 0x4d338(%rip), %rax # 0x7e264 movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax popq %rbp retq nopw %cs:(%rax,%rax)
lex2str: push rbp mov rbp, rsp mov [rbp+var_C], edi mov eax, [rbp+var_C] add eax, 0FFFFFFDFh; switch 52 cases mov ecx, eax mov [rbp+var_18], rcx sub eax, 33h ja def_30E7E; jumptable 0000000000030E7E default case, cases 34-46,48-59,64-66,70-72,74-82 mov rax, [rbp+var_18] lea rcx, jpt_30E7E movsxd rax, ds:(jpt_30E7E - 861E8h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_30E80: lea rax, aUnexpectedEndO+0Bh; jumptable 0000000000030E7E case 69 mov [rbp+var_8], rax jmp loc_30F30 loc_30E90: lea rax, aString; jumptable 0000000000030E7E case 83 mov [rbp+var_8], rax jmp loc_30F30 loc_30EA0: lea rax, aIdent; jumptable 0000000000030E7E case 73 mov [rbp+var_8], rax jmp loc_30F30 loc_30EB0: lea rax, aCdata_0; jumptable 0000000000030E7E case 68 mov [rbp+var_8], rax jmp short loc_30F30 loc_30EBD: lea rax, asc_7E23F; jumptable 0000000000030E7E case 61 mov [rbp+var_8], rax jmp short loc_30F30 loc_30ECA: lea rax, asc_7E243; jumptable 0000000000030E7E case 60 mov [rbp+var_8], rax jmp short loc_30F30 loc_30ED7: lea rax, asc_7E247; jumptable 0000000000030E7E case 62 mov [rbp+var_8], rax jmp short loc_30F30 loc_30EE4: lea rax, asc_7E24B; jumptable 0000000000030E7E case 47 mov [rbp+var_8], rax jmp short loc_30F30 loc_30EF1: lea rax, aComment; jumptable 0000000000030E7E case 67 mov [rbp+var_8], rax jmp short loc_30F30 loc_30EFE: lea rax, aText; jumptable 0000000000030E7E case 84 mov [rbp+var_8], rax jmp short loc_30F30 loc_30F0B: lea rax, asc_7E25C; jumptable 0000000000030E7E case 63 mov [rbp+var_8], rax jmp short loc_30F30 loc_30F18: lea rax, asc_7E260; jumptable 0000000000030E7E case 33 mov [rbp+var_8], rax jmp short loc_30F30 def_30E7E: lea rax, aUnknownToken; jumptable 0000000000030E7E default case, cases 34-46,48-59,64-66,70-72,74-82 mov [rbp+var_8], rax loc_30F30: mov rax, [rbp+var_8] pop rbp retn
char * lex2str(int a1) { char *v2; // [rsp+10h] [rbp-8h] switch ( a1 ) { case '!': v2 = "'!'"; break; case '/': v2 = "'/'"; break; case '<': v2 = "'<'"; break; case '=': v2 = "'='"; break; case '>': v2 = "'>'"; break; case '?': v2 = "'?'"; break; case 'C': v2 = "COMMENT"; break; case 'D': v2 = "CDATA"; break; case 'E': v2 = "END-OF-INPUT"; break; case 'I': v2 = "IDENT"; break; case 'S': v2 = "STRING"; break; case 'T': v2 = "TEXT"; break; default: v2 = "unknown token"; break; } return v2; }
lex2str: PUSH RBP MOV RBP,RSP MOV dword ptr [RBP + -0xc],EDI MOV EAX,dword ptr [RBP + -0xc] ADD EAX,-0x21 MOV ECX,EAX MOV qword ptr [RBP + -0x18],RCX SUB EAX,0x33 JA 0x00130f25 MOV RAX,qword ptr [RBP + -0x18] LEA RCX,[0x1861e8] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_45: LEA RAX,[0x17e205] MOV qword ptr [RBP + -0x8],RAX JMP 0x00130f30 caseD_53: LEA RAX,[0x17e22c] MOV qword ptr [RBP + -0x8],RAX JMP 0x00130f30 caseD_49: LEA RAX,[0x17e233] MOV qword ptr [RBP + -0x8],RAX JMP 0x00130f30 caseD_44: LEA RAX,[0x17e239] MOV qword ptr [RBP + -0x8],RAX JMP 0x00130f30 caseD_3d: LEA RAX,[0x17e23f] MOV qword ptr [RBP + -0x8],RAX JMP 0x00130f30 caseD_3c: LEA RAX,[0x17e243] MOV qword ptr [RBP + -0x8],RAX JMP 0x00130f30 caseD_3e: LEA RAX,[0x17e247] MOV qword ptr [RBP + -0x8],RAX JMP 0x00130f30 caseD_2f: LEA RAX,[0x17e24b] MOV qword ptr [RBP + -0x8],RAX JMP 0x00130f30 caseD_43: LEA RAX,[0x17e24f] MOV qword ptr [RBP + -0x8],RAX JMP 0x00130f30 caseD_54: LEA RAX,[0x17e257] MOV qword ptr [RBP + -0x8],RAX JMP 0x00130f30 caseD_3f: LEA RAX,[0x17e25c] MOV qword ptr [RBP + -0x8],RAX JMP 0x00130f30 caseD_21: LEA RAX,[0x17e260] MOV qword ptr [RBP + -0x8],RAX JMP 0x00130f30 caseD_22: LEA RAX,[0x17e264] MOV qword ptr [RBP + -0x8],RAX LAB_00130f30: MOV RAX,qword ptr [RBP + -0x8] POP RBP RET
char * lex2str(int4 param_1) { char *local_10; switch(param_1) { case 0x21: local_10 = "\'!\'"; break; default: local_10 = "unknown token"; break; case 0x2f: local_10 = "\'/\'"; break; case 0x3c: local_10 = "\'<\'"; break; case 0x3d: local_10 = "\'=\'"; break; case 0x3e: local_10 = "\'>\'"; break; case 0x3f: local_10 = "\'?\'"; break; case 0x43: local_10 = "COMMENT"; break; case 0x44: local_10 = "CDATA"; break; case 0x45: local_10 = "END-OF-INPUT"; break; case 0x49: local_10 = "IDENT"; break; case 0x53: local_10 = "STRING"; break; case 0x54: local_10 = "TEXT"; } return local_10; }
19,417
SchemaConverter::_add_primitive(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, BuiltinRule const&)
monkey531[P]llama/common/json-schema-to-grammar.cpp
std::string _add_primitive(const std::string & name, const BuiltinRule & rule) { auto n = _add_rule(name, rule.content); for (const auto & dep : rule.deps) { BuiltinRule dep_rule; auto it = PRIMITIVE_RULES.find(dep); if (it == PRIMITIVE_RULES.end()) { it = STRING_FORMAT_RULES.find(dep); if (it == STRING_FORMAT_RULES.end()) { _errors.push_back("Rule " + dep + " not known"); continue; } } if (_rules.find(dep) == _rules.end()) { _add_primitive(dep, it->second); } } return n; }
O2
cpp
SchemaConverter::_add_primitive(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, BuiltinRule const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xc8, %rsp movq %rcx, %r14 movq %rsi, %rbx movq %rdi, (%rsp) callq 0xaa928 movq 0x20(%r14), %r15 movq 0x28(%r14), %rax movq %rax, 0x28(%rsp) leaq 0x40(%rsp), %rbp leaq 0x28(%rbx), %rax movq %rax, 0x20(%rsp) leaq 0x30(%rbx), %rax movq %rax, 0x18(%rsp) movq %rbx, 0x10(%rsp) leaq 0xc8(%rbx), %rax movq %rax, 0x8(%rsp) leaq 0x88(%rsp), %r13 leaq 0xa8(%rsp), %r12 cmpq 0x28(%rsp), %r15 je 0xadd9a movq %rbp, 0x30(%rsp) andq $0x0, 0x38(%rsp) movb $0x0, 0x40(%rsp) xorps %xmm0, %xmm0 movups %xmm0, 0x10(%rbp) andq $0x0, 0x20(%rbp) leaq 0x75a5b(%rip), %rdi # 0x123740 movq %r15, %rsi callq 0xb1dbe movq %rax, %rbx testq %rax, %rax jne 0xadd0c leaq 0x75a7c(%rip), %rdi # 0x123778 movq %r15, %rsi callq 0xb1dbe movq %rax, %rbx testq %rax, %rax je 0xadd40 movq 0x20(%rsp), %rdi movq %r15, %rsi callq 0xaac0e cmpq 0x18(%rsp), %rax jne 0xadd87 addq $0x28, %rbx leaq 0x68(%rsp), %rdi movq 0x10(%rsp), %rsi movq %r15, %rdx movq %rbx, %rcx callq 0xadc52 leaq 0x68(%rsp), %rdi jmp 0xadd82 movq %r13, %rbx movq %r13, %rdi leaq 0x292a5(%rip), %rsi # 0xd6ff2 movq %r15, %rdx callq 0x2c251 movq %r12, %r14 movq %r12, %rdi movq %rbx, %rsi leaq 0x29293(%rip), %rdx # 0xd6ff8 callq 0x2c232 movq 0x8(%rsp), %rdi movq %r14, %rsi callq 0x62af2 movq %r14, %rdi callq 0x27998 movq %rbx, %rdi callq 0x27998 leaq 0x30(%rsp), %rdi callq 0xa8e72 addq $0x20, %r15 jmp 0xadcb7 movq (%rsp), %rax addq $0xc8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq 0xa8(%rsp), %rdi callq 0x27998 jmp 0xaddc5 movq %rax, %rbx leaq 0x88(%rsp), %rdi callq 0x27998 jmp 0xadddd jmp 0xaddda jmp 0xaddda jmp 0xaddda movq %rax, %rbx leaq 0x30(%rsp), %rdi callq 0xa8e72 movq (%rsp), %rdi callq 0x27998 movq %rbx, %rdi callq 0x27660
_ZN15SchemaConverter14_add_primitiveERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK11BuiltinRule: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 0C8h mov r14, rcx mov rbx, rsi mov [rsp+0F8h+var_F8], rdi call _ZN15SchemaConverter9_add_ruleERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_; SchemaConverter::_add_rule(std::string const&,std::string const&) mov r15, [r14+20h] mov rax, [r14+28h] mov [rsp+0F8h+var_D0], rax lea rbp, [rsp+0F8h+var_B8] lea rax, [rbx+28h] mov [rsp+0F8h+var_D8], rax lea rax, [rbx+30h] mov [rsp+0F8h+var_E0], rax mov [rsp+0F8h+var_E8], rbx lea rax, [rbx+0C8h] mov [rsp+0F8h+var_F0], rax lea r13, [rsp+0F8h+var_70] lea r12, [rsp+0F8h+var_50] loc_ADCB7: cmp r15, [rsp+0F8h+var_D0] jz loc_ADD9A mov [rsp+0F8h+var_C8], rbp and [rsp+0F8h+var_C0], 0 mov [rsp+0F8h+var_B8], 0 xorps xmm0, xmm0 movups xmmword ptr [rbp+10h], xmm0 and qword ptr [rbp+20h], 0 lea rdi, _Z15PRIMITIVE_RULESB5cxx11; PRIMITIVE_RULES mov rsi, r15 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&) mov rbx, rax test rax, rax jnz short loc_ADD0C lea rdi, _Z19STRING_FORMAT_RULESB5cxx11; STRING_FORMAT_RULES mov rsi, r15 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&) mov rbx, rax test rax, rax jz short loc_ADD40 loc_ADD0C: mov rdi, [rsp+0F8h+var_D8] mov rsi, r15 call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE4findERS7_; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::find(std::string const&) cmp rax, [rsp+0F8h+var_E0] jnz short loc_ADD87 add rbx, 28h ; '(' lea rdi, [rsp+0F8h+var_90] mov rsi, [rsp+0F8h+var_E8] mov rdx, r15 mov rcx, rbx call _ZN15SchemaConverter14_add_primitiveERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK11BuiltinRule; SchemaConverter::_add_primitive(std::string const&,BuiltinRule const&) lea rdi, [rsp+0F8h+var_90] jmp short loc_ADD82 loc_ADD40: mov rbx, r13 mov rdi, r13 lea rsi, aRule; "Rule " mov rdx, r15 call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_; std::operator+<char>(char const*,std::string const&) mov r14, r12 mov rdi, r12 mov rsi, rbx lea rdx, aNotKnown; " not known" call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*) mov rdi, [rsp+0F8h+var_F0] mov rsi, r14 call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::string>::emplace_back<std::string>(std::string &&) mov rdi, r14; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, rbx; void * loc_ADD82: call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_ADD87: lea rdi, [rsp+0F8h+var_C8]; this call _ZN11BuiltinRuleD2Ev; BuiltinRule::~BuiltinRule() add r15, 20h ; ' ' jmp loc_ADCB7 loc_ADD9A: mov rax, [rsp+0F8h+var_F8] add rsp, 0C8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax lea rdi, [rsp+arg_A0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_ADDC5 mov rbx, rax loc_ADDC5: lea rdi, [rsp+arg_80]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_ADDDD jmp short loc_ADDDA jmp short loc_ADDDA jmp short $+2 loc_ADDDA: mov rbx, rax loc_ADDDD: lea rdi, [rsp+arg_28]; this call _ZN11BuiltinRuleD2Ev; BuiltinRule::~BuiltinRule() mov rdi, [rsp+0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, rbx call __Unwind_Resume
long long SchemaConverter::_add_primitive(long long a1, long long a2, _QWORD *a3, _QWORD *a4) { long long v5; // r15 long long v6; // rax int v7; // ebx long long v8; // rax int v9; // r8d int v10; // r9d _DWORD *v11; // rdi long long v13; // [rsp+0h] [rbp-F8h] long long v14; // [rsp+8h] [rbp-F0h] int v15; // [rsp+10h] [rbp-E8h] long long v16; // [rsp+18h] [rbp-E0h] long long v17; // [rsp+20h] [rbp-D8h] long long v18; // [rsp+28h] [rbp-D0h] _DWORD *v19; // [rsp+30h] [rbp-C8h] BYREF long long v20; // [rsp+38h] [rbp-C0h] _DWORD v21[4]; // [rsp+40h] [rbp-B8h] BYREF __int128 v22; // [rsp+50h] [rbp-A8h] long long v23; // [rsp+60h] [rbp-98h] _DWORD v24[6]; // [rsp+68h] [rbp-90h] BYREF char v25; // [rsp+80h] [rbp-78h] _DWORD v26[6]; // [rsp+88h] [rbp-70h] BYREF char v27; // [rsp+A0h] [rbp-58h] _BYTE v28[80]; // [rsp+A8h] [rbp-50h] BYREF v13 = a1; SchemaConverter::_add_rule(a1, a2, a3, a4); v5 = a4[4]; v18 = a4[5]; v17 = a2 + 40; v16 = a2 + 48; v15 = a2; v14 = a2 + 200; while ( v5 != v18 ) { v19 = v21; v20 = 0LL; LOBYTE(v21[0]) = 0; v22 = 0LL; v23 = 0LL; v6 = 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], v5); v7 = v6; if ( v6 || (v8 = 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( &STRING_FORMAT_RULES[abi:cxx11], v5), v7 = v8, v8) ) { if ( std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::find( v17, v5) != v16 ) goto LABEL_9; SchemaConverter::_add_primitive( (unsigned int)v24, v15, v5, v7 + 40, v9, v10, v13, v14, v15, v16, v17, v18, (_DWORD)v19, v20, v21[0], v21[2], v22, DWORD2(v22), v23, v24[0], v24[2], v24[4], v25, v26[0], v26[2], v26[4], v27); v11 = v24; } else { std::operator+<char>((long long)v26, (long long)"Rule ", v5); std::operator+<char>((long long)v28, (long long)v26, (long long)" not known"); std::vector<std::string>::emplace_back<std::string>(v14, (long long)v28); std::string::~string(v28); v11 = v26; } std::string::~string(v11); LABEL_9: BuiltinRule::~BuiltinRule((BuiltinRule *)&v19); v5 += 32LL; } return v13; }
_add_primitive: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xc8 MOV R14,RCX MOV RBX,RSI MOV qword ptr [RSP],RDI CALL 0x001aa928 MOV R15,qword ptr [R14 + 0x20] MOV RAX,qword ptr [R14 + 0x28] MOV qword ptr [RSP + 0x28],RAX LEA RBP,[RSP + 0x40] LEA RAX,[RBX + 0x28] MOV qword ptr [RSP + 0x20],RAX LEA RAX,[RBX + 0x30] MOV qword ptr [RSP + 0x18],RAX MOV qword ptr [RSP + 0x10],RBX LEA RAX,[RBX + 0xc8] MOV qword ptr [RSP + 0x8],RAX LEA R13,[RSP + 0x88] LEA R12,[RSP + 0xa8] LAB_001adcb7: CMP R15,qword ptr [RSP + 0x28] JZ 0x001add9a MOV qword ptr [RSP + 0x30],RBP AND qword ptr [RSP + 0x38],0x0 MOV byte ptr [RSP + 0x40],0x0 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBP + 0x10],XMM0 AND qword ptr [RBP + 0x20],0x0 LAB_001adcde: LEA RDI,[0x223740] MOV RSI,R15 CALL 0x001b1dbe MOV RBX,RAX TEST RAX,RAX JNZ 0x001add0c LAB_001adcf5: LEA RDI,[0x223778] MOV RSI,R15 CALL 0x001b1dbe MOV RBX,RAX TEST RAX,RAX JZ 0x001add40 LAB_001add0c: MOV RDI,qword ptr [RSP + 0x20] MOV RSI,R15 CALL 0x001aac0e CMP RAX,qword ptr [RSP + 0x18] JNZ 0x001add87 ADD RBX,0x28 LAB_001add24: LEA RDI,[RSP + 0x68] MOV RSI,qword ptr [RSP + 0x10] MOV RDX,R15 MOV RCX,RBX CALL 0x001adc52 LEA RDI,[RSP + 0x68] JMP 0x001add82 LAB_001add40: MOV RBX,R13 MOV RDI,R13 LEA RSI,[0x1d6ff2] MOV RDX,R15 CALL 0x0012c251 LAB_001add55: MOV R14,R12 MOV RDI,R12 MOV RSI,RBX LEA RDX,[0x1d6ff8] CALL 0x0012c232 LAB_001add6a: MOV RDI,qword ptr [RSP + 0x8] MOV RSI,R14 CALL 0x00162af2 LAB_001add77: MOV RDI,R14 CALL 0x00127998 MOV RDI,RBX LAB_001add82: CALL 0x00127998 LAB_001add87: LEA RDI,[RSP + 0x30] CALL 0x001a8e72 ADD R15,0x20 JMP 0x001adcb7 LAB_001add9a: MOV RAX,qword ptr [RSP] ADD RSP,0xc8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* SchemaConverter::_add_primitive(std::__cxx11::string const&, BuiltinRule const&) */ string * SchemaConverter::_add_primitive(string *param_1,BuiltinRule *param_2) { string *psVar1; long lVar2; BuiltinRule *pBVar3; long in_RCX; string *this; string *psVar4; int1 *local_c8; int8 local_c0; int1 local_b8 [16]; int8 local_a8; int8 uStack_a0; int8 local_98; string local_90 [32]; string local_70 [32]; string local_50 [32]; _add_rule(param_1,(string *)param_2); psVar4 = *(string **)(in_RCX + 0x20); psVar1 = *(string **)(in_RCX + 0x28); do { if (psVar4 == psVar1) { return param_1; } local_c0 = 0; local_b8[0] = 0; local_a8 = 0; uStack_a0 = 0; local_98 = 0; local_c8 = local_b8; /* try { // try from 001adcde to 001adcec has its CatchHandler @ 001addda */ lVar2 = 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_,psVar4); if (lVar2 == 0) { /* try { // try from 001adcf5 to 001add03 has its CatchHandler @ 001addd6 */ lVar2 = 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>> *)STRING_FORMAT_RULES_abi_cxx11_,psVar4); if (lVar2 != 0) goto LAB_001add0c; /* try { // try from 001add40 to 001add54 has its CatchHandler @ 001addd4 */ std::operator+((char *)local_70,(string *)"Rule "); /* try { // try from 001add55 to 001add69 has its CatchHandler @ 001addc2 */ std::operator+(local_50,(char *)local_70); /* try { // try from 001add6a to 001add76 has its CatchHandler @ 001addb0 */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>:: emplace_back<std::__cxx11::string> ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *) (param_2 + 200),local_50); std::__cxx11::string::~string(local_50); this = local_70; LAB_001add82: std::__cxx11::string::~string(this); } else { LAB_001add0c: /* try { // try from 001add0c to 001add18 has its CatchHandler @ 001addd8 */ pBVar3 = (BuiltinRule *) std:: _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>> ::find((_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>> *)(param_2 + 0x28),psVar4); if (pBVar3 == param_2 + 0x30) { /* try { // try from 001add24 to 001add38 has its CatchHandler @ 001addda */ _add_primitive(local_90,param_2); this = local_90; goto LAB_001add82; } } BuiltinRule::~BuiltinRule((BuiltinRule *)&local_c8); psVar4 = psVar4 + 0x20; } while( true ); }
19,418
my_uca_previous_context_find
eloqsql/strings/ctype-uca.c
static const MY_CONTRACTION * my_uca_previous_context_find(my_uca_scanner *scanner, my_wc_t wc0, my_wc_t wc1) { const MY_CONTRACTIONS *list= &scanner->level->contractions; MY_CONTRACTION *c, *last; for (c= list->item, last= c + list->nitems; c < last; c++) { if (c->with_context && wc0 == c->ch[0] && wc1 == c->ch[1]) { scanner->wbeg= c->weight + 1; return c; } } return NULL; }
O0
c
my_uca_previous_context_find: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rax movq 0x18(%rax), %rax addq $0x18, %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rax movq -0x28(%rbp), %rcx imulq $0x58, (%rcx), %rcx addq %rcx, %rax movq %rax, -0x38(%rbp) movq -0x30(%rbp), %rax cmpq -0x38(%rbp), %rax jae 0x5207e movq -0x30(%rbp), %rax movsbl 0x52(%rax), %eax cmpl $0x0, %eax je 0x5206e movq -0x18(%rbp), %rax movq -0x30(%rbp), %rcx cmpq (%rcx), %rax jne 0x5206e movq -0x20(%rbp), %rax movq -0x30(%rbp), %rcx cmpq 0x8(%rcx), %rax jne 0x5206e movq -0x30(%rbp), %rcx addq $0x30, %rcx addq $0x2, %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) movq -0x30(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x52086 jmp 0x52070 movq -0x30(%rbp), %rax addq $0x58, %rax movq %rax, -0x30(%rbp) jmp 0x5201f movq $0x0, -0x8(%rbp) movq -0x8(%rbp), %rax popq %rbp retq nopl (%rax)
my_uca_previous_context_find: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rax, [rbp+var_10] mov rax, [rax+18h] add rax, 18h mov [rbp+var_28], rax mov rax, [rbp+var_28] mov rax, [rax+8] mov [rbp+var_30], rax mov rax, [rbp+var_30] mov rcx, [rbp+var_28] imul rcx, [rcx], 58h ; 'X' add rax, rcx mov [rbp+var_38], rax loc_5201F: mov rax, [rbp+var_30] cmp rax, [rbp+var_38] jnb short loc_5207E mov rax, [rbp+var_30] movsx eax, byte ptr [rax+52h] cmp eax, 0 jz short loc_5206E mov rax, [rbp+var_18] mov rcx, [rbp+var_30] cmp rax, [rcx] jnz short loc_5206E mov rax, [rbp+var_20] mov rcx, [rbp+var_30] cmp rax, [rcx+8] jnz short loc_5206E mov rcx, [rbp+var_30] add rcx, 30h ; '0' add rcx, 2 mov rax, [rbp+var_10] mov [rax], rcx mov rax, [rbp+var_30] mov [rbp+var_8], rax jmp short loc_52086 loc_5206E: jmp short $+2 loc_52070: mov rax, [rbp+var_30] add rax, 58h ; 'X' mov [rbp+var_30], rax jmp short loc_5201F loc_5207E: mov [rbp+var_8], 0 loc_52086: mov rax, [rbp+var_8] pop rbp retn
unsigned long long my_uca_previous_context_find(_QWORD *a1, long long a2, long long a3) { unsigned long long v4; // [rsp+0h] [rbp-38h] unsigned long long v5; // [rsp+8h] [rbp-30h] v5 = *(_QWORD *)(a1[3] + 32LL); v4 = 88LL * *(_QWORD *)(a1[3] + 24LL) + v5; while ( v5 < v4 ) { if ( *(_BYTE *)(v5 + 82) && a2 == *(_QWORD *)v5 && a3 == *(_QWORD *)(v5 + 8) ) { *a1 = v5 + 50; return v5; } v5 += 88LL; } return 0LL; }
my_uca_previous_context_find: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x18] ADD RAX,0x18 MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x28] IMUL RCX,qword ptr [RCX],0x58 ADD RAX,RCX MOV qword ptr [RBP + -0x38],RAX LAB_0015201f: MOV RAX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RBP + -0x38] JNC 0x0015207e MOV RAX,qword ptr [RBP + -0x30] MOVSX EAX,byte ptr [RAX + 0x52] CMP EAX,0x0 JZ 0x0015206e MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RCX] JNZ 0x0015206e MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RCX + 0x8] JNZ 0x0015206e MOV RCX,qword ptr [RBP + -0x30] ADD RCX,0x30 ADD RCX,0x2 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x8],RAX JMP 0x00152086 LAB_0015206e: JMP 0x00152070 LAB_00152070: MOV RAX,qword ptr [RBP + -0x30] ADD RAX,0x58 MOV qword ptr [RBP + -0x30],RAX JMP 0x0015201f LAB_0015207e: MOV qword ptr [RBP + -0x8],0x0 LAB_00152086: MOV RAX,qword ptr [RBP + -0x8] POP RBP RET
long * my_uca_previous_context_find(long *param_1,long param_2,long param_3) { long *plVar1; long *local_38; local_38 = *(long **)(param_1[3] + 0x20); plVar1 = local_38 + *(long *)(param_1[3] + 0x18) * 0xb; while( true ) { if (plVar1 <= local_38) { return (long *)0x0; } if (((*(char *)((long)local_38 + 0x52) != '\0') && (param_2 == *local_38)) && (param_3 == local_38[1])) break; local_38 = local_38 + 0xb; } *param_1 = (long)local_38 + 0x32; return local_38; }
19,419
fix_for_comment
eloqsql/client/mysqldump.c
static const char *fix_for_comment(const char *ident) { static char buf[1024]; char c, *s= buf; while ((c= *s++= *ident++)) { if (s >= buf + sizeof(buf) - 10) { strmov(s, "..."); break; } if (c == '\n') s= strmov(s, "-- "); } return buf; }
O3
c
fix_for_comment: movb (%rdi), %al movb %al, 0x388ab5(%rip) # 0x3c5660 testb %al, %al je 0x3cc08 pushq %rbp movq %rsp, %rbp incq %rdi movl $0x1, %r8d leaq 0x388a9e(%rip), %rsi # 0x3c5661 xorl %edx, %edx leaq 0x388a94(%rip), %rcx # 0x3c5660 cmpq $0x3f5, %rdx # imm = 0x3F5 jge 0x3cc01 cmpb $0xa, %al jne 0x3cbe6 addq $0x4, %rdx movl $0x202d2d, (%rsi) # imm = 0x202D2D movq %rdx, %r8 movq %r8, %rdx movb (%rdi), %al incq %r8 leaq (%rdx,%rcx), %rsi incq %rsi movb %al, -0x1(%rsi) incq %rdi testb %al, %al jne 0x3cbcc jmp 0x3cc07 movl $0x2e2e2e, (%rsi) # imm = 0x2E2E2E popq %rbp retq
fix_for_comment: mov al, [rdi] mov cs:fix_for_comment_buf, al test al, al jz short locret_3CC08 push rbp mov rbp, rsp inc rdi mov r8d, 1 lea rsi, unk_3C5661 xor edx, edx lea rcx, fix_for_comment_buf loc_3CBCC: cmp rdx, 3F5h jge short loc_3CC01 cmp al, 0Ah jnz short loc_3CBE6 add rdx, 4 mov dword ptr [rsi], offset unk_202D2D mov r8, rdx loc_3CBE6: mov rdx, r8 mov al, [rdi] inc r8 lea rsi, [rdx+rcx] inc rsi mov [rsi-1], al inc rdi test al, al jnz short loc_3CBCC jmp short loc_3CC07 loc_3CC01: mov dword ptr [rsi], offset unk_2E2E2E loc_3CC07: pop rbp locret_3CC08: retn
char fix_for_comment(char *a1) { char result; // al char *v2; // rdi long long v3; // r8 char *v4; // rsi long long v5; // rdx result = *a1; fix_for_comment_buf[0] = result; if ( result ) { v2 = a1 + 1; v3 = 1LL; v4 = (char *)&unk_3C5661; v5 = 0LL; while ( v5 < 1013 ) { if ( result == 10 ) { *(_DWORD *)v4 = (_DWORD)&unk_202D2D; v3 = v5 + 4; } v5 = v3; result = *v2; ++v3; v4 = &fix_for_comment_buf[v5 + 1]; fix_for_comment_buf[v5] = *v2++; if ( !result ) return result; } *(_DWORD *)v4 = (_DWORD)&unk_2E2E2E; } return result; }
fix_for_comment: MOV AL,byte ptr [RDI] MOV byte ptr [0x004c5660],AL TEST AL,AL JZ 0x0013cc08 PUSH RBP MOV RBP,RSP INC RDI MOV R8D,0x1 LEA RSI,[0x4c5661] XOR EDX,EDX LEA RCX,[0x4c5660] LAB_0013cbcc: CMP RDX,0x3f5 JGE 0x0013cc01 CMP AL,0xa JNZ 0x0013cbe6 ADD RDX,0x4 MOV dword ptr [RSI],0x202d2d MOV R8,RDX LAB_0013cbe6: MOV RDX,R8 MOV AL,byte ptr [RDI] INC R8 LEA RSI,[RDX + RCX*0x1] INC RSI MOV byte ptr [RSI + -0x1],AL INC RDI TEST AL,AL JNZ 0x0013cbcc JMP 0x0013cc07 LAB_0013cc01: MOV dword ptr [RSI],0x2e2e2e LAB_0013cc07: POP RBP LAB_0013cc08: RET
void fix_for_comment(char *param_1) { char cVar1; long lVar2; int4 *puVar3; long lVar4; cVar1 = *param_1; fix_for_comment_buf[0] = cVar1; if (cVar1 != '\0') { param_1 = param_1 + 1; lVar4 = 1; puVar3 = (int4 *)(fix_for_comment_buf + 1); lVar2 = 0; do { if (0x3f4 < lVar2) { *puVar3 = 0x2e2e2e; return; } if (cVar1 == '\n') { *puVar3 = 0x202d2d; lVar4 = lVar2 + 4; } lVar2 = lVar4; cVar1 = *param_1; lVar4 = lVar2 + 1; puVar3 = (int4 *)(fix_for_comment_buf + lVar2 + 1); fix_for_comment_buf[lVar2] = cVar1; param_1 = param_1 + 1; } while (cVar1 != '\0'); } return; }
19,420
ma_tls_connect
eloqsql/libmariadb/libmariadb/secure/openssl.c
my_bool ma_tls_connect(MARIADB_TLS *ctls) { SSL *ssl = (SSL *)ctls->ssl; my_bool blocking, try_connect= 1; MYSQL *mysql; MARIADB_PVIO *pvio; int rc; #ifdef OPENSSL_USE_BIOMETHOD BIO_METHOD *bio_method= NULL; BIO *bio; #endif mysql= (MYSQL *)SSL_get_app_data(ssl); pvio= mysql->net.pvio; /* Set socket to non blocking if not already set */ if (!(blocking= pvio->methods->is_blocking(pvio))) pvio->methods->blocking(pvio, FALSE, 0); SSL_clear(ssl); #ifdef OPENSSL_USE_BIOMETHOD bio= BIO_new(&ma_BIO_method); bio->ptr= pvio; SSL_set_bio(ssl, bio, bio); BIO_set_fd(bio, mysql_get_socket(mysql), BIO_NOCLOSE); #else SSL_set_fd(ssl, (int)mysql_get_socket(mysql)); #endif while (try_connect && (rc= SSL_connect(ssl)) == -1) { switch((SSL_get_error(ssl, rc))) { case SSL_ERROR_WANT_READ: if (pvio->methods->wait_io_or_timeout(pvio, TRUE, mysql->options.connect_timeout) < 1) try_connect= 0; break; case SSL_ERROR_WANT_WRITE: if (pvio->methods->wait_io_or_timeout(pvio, TRUE, mysql->options.connect_timeout) < 1) try_connect= 0; break; default: try_connect= 0; } } /* In case handshake failed or if a root certificate (ca) was specified, we need to check the result code of X509 verification. A detailed check of the peer certificate (hostname checking will follow later) */ if (rc != 1 || (mysql->client_flag & CLIENT_SSL_VERIFY_SERVER_CERT) || (mysql->options.ssl_ca || mysql->options.ssl_capath)) { long x509_err= SSL_get_verify_result(ssl); if (x509_err != X509_V_OK) { my_set_error(mysql, CR_SSL_CONNECTION_ERROR, SQLSTATE_UNKNOWN, ER(CR_SSL_CONNECTION_ERROR), X509_verify_cert_error_string(x509_err)); /* restore blocking mode */ if (!blocking) pvio->methods->blocking(pvio, FALSE, 0); return 1; } else if (rc != 1) { ma_tls_set_error(mysql); return 1; } } pvio->ctls->ssl= ctls->ssl= (void *)ssl; return 0; }
O0
c
ma_tls_connect: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax movq 0x10(%rax), %rax movq %rax, -0x18(%rbp) movb $0x1, -0x1a(%rbp) movq -0x18(%rbp), %rdi xorl %esi, %esi callq 0x14150 movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax movq (%rax), %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rax movq 0x48(%rax), %rax movq 0x68(%rax), %rax movq -0x30(%rbp), %rdi callq *%rax movb %al, -0x19(%rbp) cmpb $0x0, %al jne 0x517c7 movq -0x30(%rbp), %rax movq 0x48(%rax), %rax movq 0x38(%rax), %rax movq -0x30(%rbp), %rdi xorl %esi, %esi xorl %ecx, %ecx movl %ecx, %edx callq *%rax movq -0x18(%rbp), %rdi callq 0x140a0 movq -0x18(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x28(%rbp), %rdi callq 0x3c910 movq -0x48(%rbp), %rdi movl %eax, %esi callq 0x142a0 movsbl -0x1a(%rbp), %ecx xorl %eax, %eax cmpl $0x0, %ecx movb %al, -0x49(%rbp) je 0x5180f movq -0x18(%rbp), %rdi callq 0x14620 movl %eax, -0x34(%rbp) cmpl $-0x1, %eax sete %al movb %al, -0x49(%rbp) movb -0x49(%rbp), %al testb $0x1, %al jne 0x5181b jmp 0x5189e movq -0x18(%rbp), %rdi movl -0x34(%rbp), %esi callq 0x14040 movl %eax, %ecx movl %ecx, -0x50(%rbp) subl $0x2, %eax je 0x5183d jmp 0x51833 movl -0x50(%rbp), %eax subl $0x3, %eax je 0x51869 jmp 0x51895 movq -0x30(%rbp), %rax movq 0x48(%rax), %rax movq 0x30(%rax), %rax movq -0x30(%rbp), %rdi movq -0x28(%rbp), %rcx movl 0x390(%rcx), %edx movl $0x1, %esi callq *%rax cmpl $0x1, %eax jge 0x51867 movb $0x0, -0x1a(%rbp) jmp 0x51899 movq -0x30(%rbp), %rax movq 0x48(%rax), %rax movq 0x30(%rax), %rax movq -0x30(%rbp), %rdi movq -0x28(%rbp), %rcx movl 0x390(%rcx), %edx movl $0x1, %esi callq *%rax cmpl $0x1, %eax jge 0x51893 movb $0x0, -0x1a(%rbp) jmp 0x51899 movb $0x0, -0x1a(%rbp) jmp 0x517ec cmpl $0x1, -0x34(%rbp) jne 0x518db movq -0x28(%rbp), %rax movq 0x368(%rax), %rax andq $0x40000000, %rax # imm = 0x40000000 cmpq $0x0, %rax jne 0x518db movq -0x28(%rbp), %rax cmpq $0x0, 0x410(%rax) jne 0x518db movq -0x28(%rbp), %rax cmpq $0x0, 0x418(%rax) je 0x51978 movq -0x18(%rbp), %rdi callq 0x14180 movq %rax, -0x40(%rbp) cmpq $0x0, -0x40(%rbp) je 0x5195f movq -0x28(%rbp), %rax movq %rax, -0x68(%rbp) leaq 0x2f5a2(%rip), %rax # 0x80ea0 movq (%rax), %rax movq %rax, -0x60(%rbp) leaq 0x2f5a4(%rip), %rax # 0x80eb0 movq 0xd0(%rax), %rax movq %rax, -0x58(%rbp) movq -0x40(%rbp), %rdi callq 0x142e0 movq -0x68(%rbp), %rdi movq -0x60(%rbp), %rdx movq -0x58(%rbp), %rcx movq %rax, %r8 movl $0x7ea, %esi # imm = 0x7EA movb $0x0, %al callq 0x307d0 cmpb $0x0, -0x19(%rbp) jne 0x51959 movq -0x30(%rbp), %rax movq 0x48(%rax), %rax movq 0x38(%rax), %rax movq -0x30(%rbp), %rdi xorl %esi, %esi xorl %ecx, %ecx movl %ecx, %edx callq *%rax movb $0x1, -0x1(%rbp) jmp 0x51994 cmpl $0x1, -0x34(%rbp) je 0x51974 movq -0x28(%rbp), %rdi callq 0x519a0 movb $0x1, -0x1(%rbp) jmp 0x51994 jmp 0x51976 jmp 0x51978 movq -0x18(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x10(%rax) movq -0x30(%rbp), %rax movq 0x38(%rax), %rax movq %rcx, 0x10(%rax) movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x70, %rsp popq %rbp retq nopl (%rax)
ma_tls_connect: push rbp mov rbp, rsp sub rsp, 70h mov [rbp+var_10], rdi mov rax, [rbp+var_10] mov rax, [rax+10h] mov [rbp+var_18], rax mov [rbp+var_1A], 1 mov rdi, [rbp+var_18] xor esi, esi call _SSL_get_ex_data mov [rbp+var_28], rax mov rax, [rbp+var_28] mov rax, [rax] mov [rbp+var_30], rax mov rax, [rbp+var_30] mov rax, [rax+48h] mov rax, [rax+68h] mov rdi, [rbp+var_30] call rax mov [rbp+var_19], al cmp al, 0 jnz short loc_517C7 mov rax, [rbp+var_30] mov rax, [rax+48h] mov rax, [rax+38h] mov rdi, [rbp+var_30] xor esi, esi xor ecx, ecx mov edx, ecx call rax loc_517C7: mov rdi, [rbp+var_18] call _SSL_clear mov rax, [rbp+var_18] mov [rbp+var_48], rax mov rdi, [rbp+var_28] call mysql_get_socket mov rdi, [rbp+var_48] mov esi, eax call _SSL_set_fd loc_517EC: movsx ecx, [rbp+var_1A] xor eax, eax cmp ecx, 0 mov [rbp+var_49], al jz short loc_5180F mov rdi, [rbp+var_18] call _SSL_connect mov [rbp+var_34], eax cmp eax, 0FFFFFFFFh setz al mov [rbp+var_49], al loc_5180F: mov al, [rbp+var_49] test al, 1 jnz short loc_5181B jmp loc_5189E loc_5181B: mov rdi, [rbp+var_18] mov esi, [rbp+var_34] call _SSL_get_error mov ecx, eax mov [rbp+var_50], ecx sub eax, 2 jz short loc_5183D jmp short $+2 loc_51833: mov eax, [rbp+var_50] sub eax, 3 jz short loc_51869 jmp short loc_51895 loc_5183D: mov rax, [rbp+var_30] mov rax, [rax+48h] mov rax, [rax+30h] mov rdi, [rbp+var_30] mov rcx, [rbp+var_28] mov edx, [rcx+390h] mov esi, 1 call rax cmp eax, 1 jge short loc_51867 mov [rbp+var_1A], 0 loc_51867: jmp short loc_51899 loc_51869: mov rax, [rbp+var_30] mov rax, [rax+48h] mov rax, [rax+30h] mov rdi, [rbp+var_30] mov rcx, [rbp+var_28] mov edx, [rcx+390h] mov esi, 1 call rax cmp eax, 1 jge short loc_51893 mov [rbp+var_1A], 0 loc_51893: jmp short loc_51899 loc_51895: mov [rbp+var_1A], 0 loc_51899: jmp loc_517EC loc_5189E: cmp [rbp+var_34], 1 jnz short loc_518DB mov rax, [rbp+var_28] mov rax, [rax+368h] and rax, 40000000h cmp rax, 0 jnz short loc_518DB mov rax, [rbp+var_28] cmp qword ptr [rax+410h], 0 jnz short loc_518DB mov rax, [rbp+var_28] cmp qword ptr [rax+418h], 0 jz loc_51978 loc_518DB: mov rdi, [rbp+var_18] call _SSL_get_verify_result mov [rbp+var_40], rax cmp [rbp+var_40], 0 jz short loc_5195F mov rax, [rbp+var_28] mov [rbp+var_68], rax lea rax, SQLSTATE_UNKNOWN mov rax, [rax] mov [rbp+var_60], rax lea rax, client_errors mov rax, [rax+0D0h] mov [rbp+var_58], rax mov rdi, [rbp+var_40] call _X509_verify_cert_error_string mov rdi, [rbp+var_68] mov rdx, [rbp+var_60] mov rcx, [rbp+var_58] mov r8, rax mov esi, 7EAh mov al, 0 call my_set_error cmp [rbp+var_19], 0 jnz short loc_51959 mov rax, [rbp+var_30] mov rax, [rax+48h] mov rax, [rax+38h] mov rdi, [rbp+var_30] xor esi, esi xor ecx, ecx mov edx, ecx call rax loc_51959: mov [rbp+var_1], 1 jmp short loc_51994 loc_5195F: cmp [rbp+var_34], 1 jz short loc_51974 mov rdi, [rbp+var_28] call ma_tls_set_error mov [rbp+var_1], 1 jmp short loc_51994 loc_51974: jmp short $+2 loc_51976: jmp short $+2 loc_51978: mov rcx, [rbp+var_18] mov rax, [rbp+var_10] mov [rax+10h], rcx mov rax, [rbp+var_30] mov rax, [rax+38h] mov [rax+10h], rcx mov [rbp+var_1], 0 loc_51994: mov al, [rbp+var_1] add rsp, 70h pop rbp retn
char ma_tls_connect(long long a1) { unsigned int socket; // eax long long v2; // rax char *v4; // [rsp+10h] [rbp-60h] char *v5; // [rsp+18h] [rbp-58h] int error; // [rsp+20h] [rbp-50h] bool v7; // [rsp+27h] [rbp-49h] long long verify_result; // [rsp+30h] [rbp-40h] unsigned int v9; // [rsp+3Ch] [rbp-34h] long long v10; // [rsp+40h] [rbp-30h] _QWORD *v11; // [rsp+48h] [rbp-28h] char v12; // [rsp+56h] [rbp-1Ah] char v13; // [rsp+57h] [rbp-19h] long long v14; // [rsp+58h] [rbp-18h] v14 = *(_QWORD *)(a1 + 16); v12 = 1; v11 = (_QWORD *)SSL_get_ex_data(v14, 0LL); v10 = *v11; v13 = (*(long long ( **)(_QWORD))(*(_QWORD *)(*v11 + 72LL) + 104LL))(*v11); if ( !v13 ) (*(void ( **)(long long, _QWORD, _QWORD))(*(_QWORD *)(v10 + 72) + 56LL))(v10, 0LL, 0LL); SSL_clear(v14); socket = mysql_get_socket((long long)v11); SSL_set_fd(v14, socket); while ( 1 ) { v7 = 0; if ( v12 ) { v9 = SSL_connect(v14); v7 = v9 == -1; } if ( !v7 ) break; error = SSL_get_error(v14, v9); if ( error == 2 ) { if ( (*(int ( **)(long long, long long, _QWORD))(*(_QWORD *)(v10 + 72) + 48LL))( v10, 1LL, *((unsigned int *)v11 + 228)) < 1 ) v12 = 0; } else if ( error == 3 ) { if ( (*(int ( **)(long long, long long, _QWORD))(*(_QWORD *)(v10 + 72) + 48LL))( v10, 1LL, *((unsigned int *)v11 + 228)) < 1 ) v12 = 0; } else { v12 = 0; } } if ( v9 == 1 && (v11[109] & 0x40000000LL) == 0 && !v11[130] && !v11[131] ) goto LABEL_26; verify_result = SSL_get_verify_result(v14); if ( !verify_result ) { if ( v9 != 1 ) { ma_tls_set_error(v11); return 1; } LABEL_26: *(_QWORD *)(a1 + 16) = v14; *(_QWORD *)(*(_QWORD *)(v10 + 56) + 16LL) = v14; return 0; } v4 = SQLSTATE_UNKNOWN; v5 = client_errors[26]; v2 = X509_verify_cert_error_string(verify_result); my_set_error((long long)v11, 0x7EAu, (long long)v4, (long long)v5, v2); if ( !v13 ) (*(void ( **)(long long, _QWORD, _QWORD))(*(_QWORD *)(v10 + 72) + 56LL))(v10, 0LL, 0LL); return 1; }
ma_tls_connect: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV qword ptr [RBP + -0x10],RDI MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0x18],RAX MOV byte ptr [RBP + -0x1a],0x1 MOV RDI,qword ptr [RBP + -0x18] XOR ESI,ESI CALL 0x00114150 MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x48] MOV RAX,qword ptr [RAX + 0x68] MOV RDI,qword ptr [RBP + -0x30] CALL RAX MOV byte ptr [RBP + -0x19],AL CMP AL,0x0 JNZ 0x001517c7 MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x48] MOV RAX,qword ptr [RAX + 0x38] MOV RDI,qword ptr [RBP + -0x30] XOR ESI,ESI XOR ECX,ECX MOV EDX,ECX CALL RAX LAB_001517c7: MOV RDI,qword ptr [RBP + -0x18] CALL 0x001140a0 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x48],RAX MOV RDI,qword ptr [RBP + -0x28] CALL 0x0013c910 MOV RDI,qword ptr [RBP + -0x48] MOV ESI,EAX CALL 0x001142a0 LAB_001517ec: MOVSX ECX,byte ptr [RBP + -0x1a] XOR EAX,EAX CMP ECX,0x0 MOV byte ptr [RBP + -0x49],AL JZ 0x0015180f MOV RDI,qword ptr [RBP + -0x18] CALL 0x00114620 MOV dword ptr [RBP + -0x34],EAX CMP EAX,-0x1 SETZ AL MOV byte ptr [RBP + -0x49],AL LAB_0015180f: MOV AL,byte ptr [RBP + -0x49] TEST AL,0x1 JNZ 0x0015181b JMP 0x0015189e LAB_0015181b: MOV RDI,qword ptr [RBP + -0x18] MOV ESI,dword ptr [RBP + -0x34] CALL 0x00114040 MOV ECX,EAX MOV dword ptr [RBP + -0x50],ECX SUB EAX,0x2 JZ 0x0015183d JMP 0x00151833 LAB_00151833: MOV EAX,dword ptr [RBP + -0x50] SUB EAX,0x3 JZ 0x00151869 JMP 0x00151895 LAB_0015183d: MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x48] MOV RAX,qword ptr [RAX + 0x30] MOV RDI,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x28] MOV EDX,dword ptr [RCX + 0x390] MOV ESI,0x1 CALL RAX CMP EAX,0x1 JGE 0x00151867 MOV byte ptr [RBP + -0x1a],0x0 LAB_00151867: JMP 0x00151899 LAB_00151869: MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x48] MOV RAX,qword ptr [RAX + 0x30] MOV RDI,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x28] MOV EDX,dword ptr [RCX + 0x390] MOV ESI,0x1 CALL RAX CMP EAX,0x1 JGE 0x00151893 MOV byte ptr [RBP + -0x1a],0x0 LAB_00151893: JMP 0x00151899 LAB_00151895: MOV byte ptr [RBP + -0x1a],0x0 LAB_00151899: JMP 0x001517ec LAB_0015189e: CMP dword ptr [RBP + -0x34],0x1 JNZ 0x001518db MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX + 0x368] AND RAX,0x40000000 CMP RAX,0x0 JNZ 0x001518db MOV RAX,qword ptr [RBP + -0x28] CMP qword ptr [RAX + 0x410],0x0 JNZ 0x001518db MOV RAX,qword ptr [RBP + -0x28] CMP qword ptr [RAX + 0x418],0x0 JZ 0x00151978 LAB_001518db: MOV RDI,qword ptr [RBP + -0x18] CALL 0x00114180 MOV qword ptr [RBP + -0x40],RAX CMP qword ptr [RBP + -0x40],0x0 JZ 0x0015195f MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x68],RAX LEA RAX,[0x180ea0] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x60],RAX LEA RAX,[0x180eb0] MOV RAX,qword ptr [RAX + 0xd0] MOV qword ptr [RBP + -0x58],RAX MOV RDI,qword ptr [RBP + -0x40] CALL 0x001142e0 MOV RDI,qword ptr [RBP + -0x68] MOV RDX,qword ptr [RBP + -0x60] MOV RCX,qword ptr [RBP + -0x58] MOV R8,RAX MOV ESI,0x7ea MOV AL,0x0 CALL 0x001307d0 CMP byte ptr [RBP + -0x19],0x0 JNZ 0x00151959 MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x48] MOV RAX,qword ptr [RAX + 0x38] MOV RDI,qword ptr [RBP + -0x30] XOR ESI,ESI XOR ECX,ECX MOV EDX,ECX CALL RAX LAB_00151959: MOV byte ptr [RBP + -0x1],0x1 JMP 0x00151994 LAB_0015195f: CMP dword ptr [RBP + -0x34],0x1 JZ 0x00151974 MOV RDI,qword ptr [RBP + -0x28] CALL 0x001519a0 MOV byte ptr [RBP + -0x1],0x1 JMP 0x00151994 LAB_00151974: JMP 0x00151976 LAB_00151976: JMP 0x00151978 LAB_00151978: MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x10],RCX MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x38] MOV qword ptr [RAX + 0x10],RCX MOV byte ptr [RBP + -0x1],0x0 LAB_00151994: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x70 POP RBP RET
int1 ma_tls_connect(long param_1) { SSL *ssl; long lVar1; bool bVar2; int *puVar3; int *puVar4; char cVar5; int iVar6; long *plVar7; long n; char *pcVar8; bool bVar9; int local_3c; ssl = *(SSL **)(param_1 + 0x10); bVar2 = true; plVar7 = (long *)SSL_get_ex_data(ssl,0); lVar1 = *plVar7; cVar5 = (**(code **)(*(long *)(lVar1 + 0x48) + 0x68))(lVar1); if (cVar5 == '\0') { (**(code **)(*(long *)(lVar1 + 0x48) + 0x38))(lVar1,0,0); } SSL_clear(ssl); iVar6 = mysql_get_socket(plVar7); SSL_set_fd(ssl,iVar6); while( true ) { bVar9 = false; if (bVar2) { local_3c = SSL_connect(ssl); bVar9 = local_3c == -1; } if (!bVar9) break; iVar6 = SSL_get_error(ssl,local_3c); if (iVar6 == 2) { iVar6 = (**(code **)(*(long *)(lVar1 + 0x48) + 0x30))(lVar1,1,(int)plVar7[0x72]); if (iVar6 < 1) { bVar2 = false; } } else if (iVar6 == 3) { iVar6 = (**(code **)(*(long *)(lVar1 + 0x48) + 0x30))(lVar1,1,(int)plVar7[0x72]); if (iVar6 < 1) { bVar2 = false; } } else { bVar2 = false; } } if ((((local_3c != 1) || ((plVar7[0x6d] & 0x40000000U) != 0)) || (plVar7[0x82] != 0)) || (plVar7[0x83] != 0)) { n = SSL_get_verify_result(ssl); puVar4 = PTR_s_TLS_SSL_error_____100s_00180f80; puVar3 = SQLSTATE_UNKNOWN; if (n != 0) { pcVar8 = X509_verify_cert_error_string(n); my_set_error(plVar7,0x7ea,puVar3,puVar4,pcVar8); if (cVar5 == '\0') { (**(code **)(*(long *)(lVar1 + 0x48) + 0x38))(lVar1,0,0); } return 1; } if (local_3c != 1) { ma_tls_set_error(plVar7); return 1; } } *(SSL **)(param_1 + 0x10) = ssl; *(SSL **)(*(long *)(lVar1 + 0x38) + 0x10) = ssl; return 0; }
19,421
LefDefParser::lefwMinimumDensity(double)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp
int lefwMinimumDensity(double minDensity) { lefw54Num = LEFW_MINIMUMDENSITY; if (!lefwFile) return LEFW_UNINITIALIZED; if (versionNum < 5.4) return LEFW_WRONG_VERSION; if (lefwWriteEncrypt) encPrint(lefwFile, (char*) " MINIMUMDENSITY %.11g ;\n", minDensity); else fprintf(lefwFile, " MINIMUMDENSITY %.11g ;\n", minDensity); lefwLines++; return LEFW_OK; }
O0
cpp
LefDefParser::lefwMinimumDensity(double): subq $0x18, %rsp movsd %xmm0, 0x8(%rsp) movl $0x85, 0x1cab8(%rip) # 0x32d4c leaq 0x1cb65(%rip), %rax # 0x32e00 cmpq $0x0, (%rax) jne 0x162ae movl $0x1, 0x14(%rsp) jmp 0x1632e movsd 0x12f4a(%rip), %xmm0 # 0x29200 ucomisd 0x1ca82(%rip), %xmm0 # 0x32d40 jbe 0x162ca movl $0x5, 0x14(%rsp) jmp 0x1632e cmpl $0x0, 0x1ce1b(%rip) # 0x330ec je 0x162f3 leaq 0x1cb26(%rip), %rax # 0x32e00 movq (%rax), %rdi movsd 0x8(%rsp), %xmm0 leaq 0x14a10(%rip), %rsi # 0x2acfa movb $0x1, %al callq 0x289b0 jmp 0x16311 leaq 0x1cb06(%rip), %rax # 0x32e00 movq (%rax), %rdi movsd 0x8(%rsp), %xmm0 leaq 0x149f0(%rip), %rsi # 0x2acfa movb $0x1, %al callq 0x1100 leaq 0x1cd34(%rip), %rax # 0x3304c movl (%rax), %ecx addl $0x1, %ecx leaq 0x1cd28(%rip), %rax # 0x3304c movl %ecx, (%rax) movl $0x0, 0x14(%rsp) movl 0x14(%rsp), %eax addq $0x18, %rsp retq nopw (%rax,%rax)
_ZN12LefDefParser18lefwMinimumDensityEd: sub rsp, 18h movsd [rsp+18h+var_10], xmm0 mov cs:_ZN12LefDefParserL9lefw54NumE, 85h; LefDefParser::lefw54Num lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile cmp qword ptr [rax], 0 jnz short loc_162AE mov [rsp+18h+var_4], 1 jmp loc_1632E loc_162AE: movsd xmm0, cs:dbl_29200 ucomisd xmm0, cs:_ZN12LefDefParserL10versionNumE; LefDefParser::versionNum jbe short loc_162CA mov [rsp+18h+var_4], 5 jmp short loc_1632E loc_162CA: cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 0; LefDefParser::lefwWriteEncrypt jz short loc_162F3 lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] movsd xmm0, [rsp+18h+var_10] lea rsi, aMinimumdensity; " MINIMUMDENSITY %.11g ;\n" mov al, 1 call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) jmp short loc_16311 loc_162F3: lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] movsd xmm0, [rsp+18h+var_10] lea rsi, aMinimumdensity; " MINIMUMDENSITY %.11g ;\n" mov al, 1 call _fprintf loc_16311: lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines mov ecx, [rax] add ecx, 1 lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines mov [rax], ecx mov [rsp+18h+var_4], 0 loc_1632E: mov eax, [rsp+18h+var_4] add rsp, 18h retn
long long LefDefParser::lefwMinimumDensity( LefDefParser *this, double a2, long long a3, int a4, int a5, int a6, int a7) { LefDefParser::lefw54Num = 133; if ( *(_QWORD *)&LefDefParser::lefwFile ) { if ( *(double *)&LefDefParser::versionNum >= 5.4 ) { if ( LefDefParser::lefwWriteEncrypt ) LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)" MINIMUMDENSITY %.11g ;\n", a4, a5, a6, a7); else fprintf(*(_QWORD *)&LefDefParser::lefwFile, " MINIMUMDENSITY %.11g ;\n", a2); ++LefDefParser::lefwLines; return 0; } else { return 5; } } else { return 1; } }
lefwMinimumDensity: SUB RSP,0x18 MOVSD qword ptr [RSP + 0x8],XMM0 MOV dword ptr [0x00132d4c],0x85 LEA RAX,[0x132e00] CMP qword ptr [RAX],0x0 JNZ 0x001162ae MOV dword ptr [RSP + 0x14],0x1 JMP 0x0011632e LAB_001162ae: MOVSD XMM0,qword ptr [0x00129200] UCOMISD XMM0,qword ptr [0x00132d40] JBE 0x001162ca MOV dword ptr [RSP + 0x14],0x5 JMP 0x0011632e LAB_001162ca: CMP dword ptr [0x001330ec],0x0 JZ 0x001162f3 LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] MOVSD XMM0,qword ptr [RSP + 0x8] LEA RSI,[0x12acfa] MOV AL,0x1 CALL 0x001289b0 JMP 0x00116311 LAB_001162f3: LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] MOVSD XMM0,qword ptr [RSP + 0x8] LEA RSI,[0x12acfa] MOV AL,0x1 CALL 0x00101100 LAB_00116311: LEA RAX,[0x13304c] MOV ECX,dword ptr [RAX] ADD ECX,0x1 LEA RAX,[0x13304c] MOV dword ptr [RAX],ECX MOV dword ptr [RSP + 0x14],0x0 LAB_0011632e: MOV EAX,dword ptr [RSP + 0x14] ADD RSP,0x18 RET
/* LefDefParser::lefwMinimumDensity(double) */ int4 LefDefParser::lefwMinimumDensity(double param_1) { int4 local_4; lefw54Num = 0x85; if (lefwFile == (_IO_FILE *)0x0) { local_4 = 1; } else if (DAT_00129200 <= versionNum) { if (lefwWriteEncrypt == 0) { fprintf(lefwFile," MINIMUMDENSITY %.11g ;\n",param_1); } else { encPrint(lefwFile," MINIMUMDENSITY %.11g ;\n",param_1); } lefwLines = lefwLines + 1; local_4 = 0; } else { local_4 = 5; } return local_4; }
19,422
my_fill_ucs2
eloqsql/strings/ctype-ucs2.c
static void my_fill_ucs2(CHARSET_INFO *cs __attribute__((unused)), char *s, size_t l, int fill) { DBUG_ASSERT(fill <= 0xFFFF); #ifdef WAITING_FOR_GCC_VECTORIZATION_BUG_TO_BE_FIXED /* This code with int2store() is known to be faster on some processors, but crashes on other processors due to a possible bug in GCC's -ftree-vectorization (which is enabled in -O3) in case of a non-aligned memory. See here for details: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58039 */ char *last= s + l - 2; uint16 tmp= (fill >> 8) + ((fill & 0xFF) << 8); /* swap bytes */ DBUG_ASSERT(fill <= 0xFFFF); for ( ; s <= last; s+= 2) int2store(s, tmp); /* store little-endian */ #else for ( ; l >= 2; s[0]= (fill >> 8), s[1]= (fill & 0xFF), s+= 2, l-= 2); #endif }
O0
c
my_fill_ucs2: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) jmp 0x53f45 jmp 0x53f47 cmpq $0x2, -0x18(%rbp) jb 0x53f89 jmp 0x53f50 movl -0x1c(%rbp), %eax sarl $0x8, %eax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, (%rax) movl -0x1c(%rbp), %eax andl $0xff, %eax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x1(%rax) movq -0x10(%rbp), %rax addq $0x2, %rax movq %rax, -0x10(%rbp) movq -0x18(%rbp), %rax subq $0x2, %rax movq %rax, -0x18(%rbp) jmp 0x53f47 popq %rbp retq nopl (%rax,%rax)
my_fill_ucs2: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_1C], ecx jmp short $+2 loc_53F45: jmp short $+2 loc_53F47: cmp [rbp+var_18], 2 jb short loc_53F89 jmp short $+2 loc_53F50: mov eax, [rbp+var_1C] sar eax, 8 mov cl, al mov rax, [rbp+var_10] mov [rax], cl mov eax, [rbp+var_1C] and eax, 0FFh mov cl, al mov rax, [rbp+var_10] mov [rax+1], cl mov rax, [rbp+var_10] add rax, 2 mov [rbp+var_10], rax mov rax, [rbp+var_18] sub rax, 2 mov [rbp+var_18], rax jmp short loc_53F47 loc_53F89: pop rbp retn
unsigned long long my_fill_ucs2(long long a1, _BYTE *a2, unsigned long long a3, __int16 a4) { unsigned long long result; // rax while ( a3 >= 2 ) { *a2 = HIBYTE(a4); a2[1] = a4; a2 += 2; result = a3 - 2; a3 -= 2LL; } return result; }
my_fill_ucs2: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV dword ptr [RBP + -0x1c],ECX JMP 0x00153f45 LAB_00153f45: JMP 0x00153f47 LAB_00153f47: CMP qword ptr [RBP + -0x18],0x2 JC 0x00153f89 JMP 0x00153f50 LAB_00153f50: MOV EAX,dword ptr [RBP + -0x1c] SAR EAX,0x8 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],CL MOV EAX,dword ptr [RBP + -0x1c] AND EAX,0xff MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x1],CL MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x2 MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x18] SUB RAX,0x2 MOV qword ptr [RBP + -0x18],RAX JMP 0x00153f47 LAB_00153f89: POP RBP RET
void my_fill_ucs2(int8 param_1,int1 *param_2,ulong param_3,int4 param_4) { ulong local_20; int1 *local_18; local_18 = param_2; for (local_20 = param_3; 1 < local_20; local_20 = local_20 - 2) { *local_18 = (char)((uint)param_4 >> 8); local_18[1] = (char)param_4; local_18 = local_18 + 2; } return; }
19,423
my_wc_mb_euc_jp
eloqsql/strings/ctype-ujis.c
static int my_wc_mb_euc_jp(CHARSET_INFO *cs __attribute__((unused)), my_wc_t wc, uchar *s, uchar *e) { int jp; if ((int) wc < 0x80) /* ASCII [00-7F] */ { if (s >= e) return MY_CS_TOOSMALL; *s= (uchar) wc; return 1; } if (wc > 0xFFFF) return MY_CS_ILUNI; if ((jp= unicode_to_jisx0208_eucjp[wc])) /* JIS-X-0208 */ { if (s + 2 > e) return MY_CS_TOOSMALL2; MY_PUT_MB2(s, jp); return 2; } if ((jp= unicode_to_jisx0212_eucjp[wc])) /* JIS-X-0212 */ { if (s + 3 > e) return MY_CS_TOOSMALL3; s[0]= 0x8F; MY_PUT_MB2(s + 1, jp); return 3; } if (wc >= 0xFF61 && wc <= 0xFF9F) /* Half width Katakana */ { if (s + 2 > e) return MY_CS_TOOSMALL2; s[0]= 0x8E; s[1]= (uchar) (wc - 0xFEC0); return 2; } return MY_CS_ILUNI; }
O3
c
my_wc_mb_euc_jp: cmpl $0x7f, %esi jg 0xc9cc6 movl $0xffffff9b, %eax # imm = 0xFFFFFF9B cmpq %rcx, %rdx jae 0xc9cfb movb %sil, (%rdx) movl $0x1, %eax retq xorl %eax, %eax cmpq $0xffff, %rsi # imm = 0xFFFF ja 0xc9cfb leaq 0x24ccd8(%rip), %rdi # 0x3169b0 movzwl (%rdi,%rsi,2), %edi testw %di, %di je 0xc9cfc leaq 0x2(%rdx), %rsi movl $0xffffff9a, %eax # imm = 0xFFFFFF9A cmpq %rcx, %rsi ja 0xc9cfb rolw $0x8, %di movw %di, (%rdx) movl $0x2, %eax retq pushq %rbp movq %rsp, %rbp pushq %rbx leaq 0x26cca8(%rip), %rdi # 0x3369b0 movzwl (%rdi,%rsi,2), %ebx testw %bx, %bx je 0xc9d2f leaq 0x3(%rdx), %rsi movl $0xffffff99, %eax # imm = 0xFFFFFF99 cmpq %rcx, %rsi ja 0xc9d5a movb $-0x71, (%rdx) movb %bh, 0x1(%rdx) movb %bl, 0x2(%rdx) movl $0x3, %eax jmp 0xc9d5a leaq -0xff61(%rsi), %rdi cmpq $0x3e, %rdi ja 0xc9d5a leaq 0x2(%rdx), %rdi movl $0xffffff9a, %eax # imm = 0xFFFFFF9A cmpq %rcx, %rdi ja 0xc9d5a movb $-0x72, (%rdx) addb $0x40, %sil movb %sil, 0x1(%rdx) movl $0x2, %eax popq %rbx popq %rbp retq
my_wc_mb_euc_jp: cmp esi, 7Fh jg short loc_C9CC6 mov eax, 0FFFFFF9Bh cmp rdx, rcx jnb short locret_C9CFB mov [rdx], sil mov eax, 1 retn loc_C9CC6: xor eax, eax cmp rsi, 0FFFFh ja short locret_C9CFB lea rdi, unicode_to_jisx0208_eucjp movzx edi, word ptr [rdi+rsi*2] test di, di jz short loc_C9CFC lea rsi, [rdx+2] mov eax, 0FFFFFF9Ah cmp rsi, rcx ja short locret_C9CFB rol di, 8 mov [rdx], di mov eax, 2 locret_C9CFB: retn loc_C9CFC: push rbp mov rbp, rsp push rbx lea rdi, unicode_to_jisx0212_eucjp movzx ebx, word ptr [rdi+rsi*2] test bx, bx jz short loc_C9D2F lea rsi, [rdx+3] mov eax, 0FFFFFF99h cmp rsi, rcx ja short loc_C9D5A mov byte ptr [rdx], 8Fh mov [rdx+1], bh mov [rdx+2], bl mov eax, 3 jmp short loc_C9D5A loc_C9D2F: lea rdi, [rsi-0FF61h] cmp rdi, 3Eh ; '>' ja short loc_C9D5A lea rdi, [rdx+2] mov eax, 0FFFFFF9Ah cmp rdi, rcx ja short loc_C9D5A mov byte ptr [rdx], 8Eh add sil, 40h ; '@' mov [rdx+1], sil mov eax, 2 loc_C9D5A: pop rbx pop rbp retn
long long my_wc_mb_euc_jp(long long a1, unsigned long long a2, unsigned long long a3, unsigned long long a4) { long long result; // rax __int16 v5; // di __int16 v6; // bx if ( (int)a2 > 127 ) { result = 0LL; if ( a2 <= 0xFFFF ) { v5 = unicode_to_jisx0208_eucjp[a2]; if ( v5 ) { result = 4294967194LL; if ( a3 + 2 <= a4 ) { *(_WORD *)a3 = __ROL2__(v5, 8); return 2LL; } } else { v6 = unicode_to_jisx0212_eucjp[a2]; if ( v6 ) { result = 4294967193LL; if ( a3 + 3 <= a4 ) { *(_BYTE *)a3 = -113; *(_BYTE *)(a3 + 1) = HIBYTE(v6); *(_BYTE *)(a3 + 2) = v6; return 3LL; } } else if ( a2 - 65377 <= 0x3E ) { result = 4294967194LL; if ( a3 + 2 <= a4 ) { *(_BYTE *)a3 = -114; *(_BYTE *)(a3 + 1) = a2 + 64; return 2LL; } } } } } else { result = 4294967195LL; if ( a3 < a4 ) { *(_BYTE *)a3 = a2; return 1LL; } } return result; }
my_wc_mb_euc_jp: CMP ESI,0x7f JG 0x001c9cc6 MOV EAX,0xffffff9b CMP RDX,RCX JNC 0x001c9cfb MOV byte ptr [RDX],SIL MOV EAX,0x1 RET LAB_001c9cc6: XOR EAX,EAX CMP RSI,0xffff JA 0x001c9cfb LEA RDI,[0x4169b0] MOVZX EDI,word ptr [RDI + RSI*0x2] TEST DI,DI JZ 0x001c9cfc LEA RSI,[RDX + 0x2] MOV EAX,0xffffff9a CMP RSI,RCX JA 0x001c9cfb ROL DI,0x8 MOV word ptr [RDX],DI MOV EAX,0x2 LAB_001c9cfb: RET LAB_001c9cfc: PUSH RBP MOV RBP,RSP PUSH RBX LEA RDI,[0x4369b0] MOVZX EBX,word ptr [RDI + RSI*0x2] TEST BX,BX JZ 0x001c9d2f LEA RSI,[RDX + 0x3] MOV EAX,0xffffff99 CMP RSI,RCX JA 0x001c9d5a MOV byte ptr [RDX],0x8f MOV byte ptr [RDX + 0x1],BH MOV byte ptr [RDX + 0x2],BL MOV EAX,0x3 JMP 0x001c9d5a LAB_001c9d2f: LEA RDI,[RSI + -0xff61] CMP RDI,0x3e JA 0x001c9d5a LEA RDI,[RDX + 0x2] MOV EAX,0xffffff9a CMP RDI,RCX JA 0x001c9d5a MOV byte ptr [RDX],0x8e ADD SIL,0x40 MOV byte ptr [RDX + 0x1],SIL MOV EAX,0x2 LAB_001c9d5a: POP RBX POP RBP RET
int8 my_wc_mb_euc_jp(int8 param_1,ulong param_2,ushort *param_3,ushort *param_4) { ushort uVar1; short sVar2; int8 uVar3; if ((int)param_2 < 0x80) { uVar3 = 0xffffff9b; if (param_3 < param_4) { *(char *)param_3 = (char)param_2; return 1; } } else { uVar3 = 0; if (param_2 < 0x10000) { uVar1 = *(ushort *)(unicode_to_jisx0208_eucjp + param_2 * 2); if (uVar1 == 0) { sVar2 = *(short *)(unicode_to_jisx0212_eucjp + param_2 * 2); if (sVar2 == 0) { if ((param_2 - 0xff61 < 0x3f) && (uVar3 = 0xffffff9a, param_3 + 1 <= param_4)) { *(char *)param_3 = -0x72; *(char *)((long)param_3 + 1) = (char)param_2 + '@'; uVar3 = 2; } } else { uVar3 = 0xffffff99; if ((ushort *)((long)param_3 + 3) <= param_4) { *(char *)param_3 = -0x71; *(char *)((long)param_3 + 1) = (char)((ushort)sVar2 >> 8); *(char *)(param_3 + 1) = (char)sVar2; uVar3 = 3; } } return uVar3; } uVar3 = 0xffffff9a; if (param_3 + 1 <= param_4) { *param_3 = uVar1 << 8 | uVar1 >> 8; uVar3 = 2; } } } return uVar3; }
19,424
JS_ResizeAtomHash
bluesky950520[P]quickjs/quickjs.c
static int JS_ResizeAtomHash(JSRuntime *rt, int new_hash_size) { JSAtomStruct *p; uint32_t new_hash_mask, h, i, hash_next1, j, *new_hash; assert((new_hash_size & (new_hash_size - 1)) == 0); /* power of two */ new_hash_mask = new_hash_size - 1; new_hash = js_mallocz_rt(rt, sizeof(rt->atom_hash[0]) * new_hash_size); if (!new_hash) return -1; for(i = 0; i < rt->atom_hash_size; i++) { h = rt->atom_hash[i]; while (h != 0) { p = rt->atom_array[h]; hash_next1 = p->hash_next; /* add in new hash table */ j = p->hash & new_hash_mask; p->hash_next = new_hash[j]; new_hash[j] = h; h = hash_next1; } } js_free_rt(rt, rt->atom_hash); rt->atom_hash = new_hash; rt->atom_hash_size = new_hash_size; rt->atom_count_resize = JS_ATOM_COUNT_RESIZE(new_hash_size); // JS_DumpAtoms(rt); return 0; }
O0
c
JS_ResizeAtomHash: subq $0x48, %rsp movq %rdi, 0x38(%rsp) movl %esi, 0x34(%rsp) movl 0x34(%rsp), %eax subl $0x1, %eax movl %eax, 0x24(%rsp) movq 0x38(%rsp), %rdi movslq 0x34(%rsp), %rsi shlq $0x2, %rsi callq 0x21b60 movq %rax, 0x8(%rsp) cmpq $0x0, 0x8(%rsp) jne 0x5c8c5 movl $0xffffffff, 0x44(%rsp) # imm = 0xFFFFFFFF jmp 0x5c9ba movl $0x0, 0x1c(%rsp) movl 0x1c(%rsp), %eax movq 0x38(%rsp), %rcx cmpl 0x50(%rcx), %eax jae 0x5c977 movq 0x38(%rsp), %rax movq 0x60(%rax), %rax movl 0x1c(%rsp), %ecx movl (%rax,%rcx,4), %eax movl %eax, 0x20(%rsp) cmpl $0x0, 0x20(%rsp) je 0x5c965 movq 0x38(%rsp), %rax movq 0x68(%rax), %rax movl 0x20(%rsp), %ecx movq (%rax,%rcx,8), %rax movq %rax, 0x28(%rsp) movq 0x28(%rsp), %rax movl 0xc(%rax), %eax movl %eax, 0x18(%rsp) movq 0x28(%rsp), %rax movq 0x4(%rax), %rax shrq $0x20, %rax andq $0x3fffffff, %rax # imm = 0x3FFFFFFF andl 0x24(%rsp), %eax movl %eax, 0x14(%rsp) movq 0x8(%rsp), %rax movl 0x14(%rsp), %ecx movl (%rax,%rcx,4), %ecx movq 0x28(%rsp), %rax movl %ecx, 0xc(%rax) movl 0x20(%rsp), %edx movq 0x8(%rsp), %rax movl 0x14(%rsp), %ecx movl %edx, (%rax,%rcx,4) movl 0x18(%rsp), %eax movl %eax, 0x20(%rsp) jmp 0x5c8f3 jmp 0x5c967 movl 0x1c(%rsp), %eax addl $0x1, %eax movl %eax, 0x1c(%rsp) jmp 0x5c8cd movq 0x38(%rsp), %rdi movq 0x38(%rsp), %rax movq 0x60(%rax), %rsi callq 0x21960 movq 0x8(%rsp), %rcx movq 0x38(%rsp), %rax movq %rcx, 0x60(%rax) movl 0x34(%rsp), %ecx movq 0x38(%rsp), %rax movl %ecx, 0x50(%rax) movl 0x34(%rsp), %ecx shll %ecx movq 0x38(%rsp), %rax movl %ecx, 0x5c(%rax) movl $0x0, 0x44(%rsp) movl 0x44(%rsp), %eax addq $0x48, %rsp retq nopw %cs:(%rax,%rax)
JS_ResizeAtomHash: sub rsp, 48h mov [rsp+48h+var_10], rdi mov [rsp+48h+var_14], esi mov eax, [rsp+48h+var_14] sub eax, 1 mov [rsp+48h+var_24], eax mov rdi, [rsp+48h+var_10] movsxd rsi, [rsp+48h+var_14] shl rsi, 2 call js_mallocz_rt mov [rsp+48h+var_40], rax cmp [rsp+48h+var_40], 0 jnz short loc_5C8C5 mov [rsp+48h+var_4], 0FFFFFFFFh jmp loc_5C9BA loc_5C8C5: mov [rsp+48h+var_2C], 0 loc_5C8CD: mov eax, [rsp+48h+var_2C] mov rcx, [rsp+48h+var_10] cmp eax, [rcx+50h] jnb loc_5C977 mov rax, [rsp+48h+var_10] mov rax, [rax+60h] mov ecx, [rsp+48h+var_2C] mov eax, [rax+rcx*4] mov [rsp+48h+var_28], eax loc_5C8F3: cmp [rsp+48h+var_28], 0 jz short loc_5C965 mov rax, [rsp+48h+var_10] mov rax, [rax+68h] mov ecx, [rsp+48h+var_28] mov rax, [rax+rcx*8] mov [rsp+48h+var_20], rax mov rax, [rsp+48h+var_20] mov eax, [rax+0Ch] mov [rsp+48h+var_30], eax mov rax, [rsp+48h+var_20] mov rax, [rax+4] shr rax, 20h and rax, 3FFFFFFFh and eax, [rsp+48h+var_24] mov [rsp+48h+var_34], eax mov rax, [rsp+48h+var_40] mov ecx, [rsp+48h+var_34] mov ecx, [rax+rcx*4] mov rax, [rsp+48h+var_20] mov [rax+0Ch], ecx mov edx, [rsp+48h+var_28] mov rax, [rsp+48h+var_40] mov ecx, [rsp+48h+var_34] mov [rax+rcx*4], edx mov eax, [rsp+48h+var_30] mov [rsp+48h+var_28], eax jmp short loc_5C8F3 loc_5C965: jmp short $+2 loc_5C967: mov eax, [rsp+48h+var_2C] add eax, 1 mov [rsp+48h+var_2C], eax jmp loc_5C8CD loc_5C977: mov rdi, [rsp+48h+var_10] mov rax, [rsp+48h+var_10] mov rsi, [rax+60h] call js_free_rt mov rcx, [rsp+48h+var_40] mov rax, [rsp+48h+var_10] mov [rax+60h], rcx mov ecx, [rsp+48h+var_14] mov rax, [rsp+48h+var_10] mov [rax+50h], ecx mov ecx, [rsp+48h+var_14] shl ecx, 1 mov rax, [rsp+48h+var_10] mov [rax+5Ch], ecx mov [rsp+48h+var_4], 0 loc_5C9BA: mov eax, [rsp+48h+var_4] add rsp, 48h retn
long long JS_ResizeAtomHash(long long a1, int a2) { long long v3; // [rsp+8h] [rbp-40h] unsigned int v4; // [rsp+14h] [rbp-34h] unsigned int v5; // [rsp+18h] [rbp-30h] unsigned int i; // [rsp+1Ch] [rbp-2Ch] unsigned int j; // [rsp+20h] [rbp-28h] long long v8; // [rsp+28h] [rbp-20h] v3 = js_mallocz_rt(a1, 4LL * a2); if ( v3 ) { for ( i = 0; i < *(_DWORD *)(a1 + 80); ++i ) { for ( j = *(_DWORD *)(*(_QWORD *)(a1 + 96) + 4LL * i); j; j = v5 ) { v8 = *(_QWORD *)(*(_QWORD *)(a1 + 104) + 8LL * j); v5 = *(_DWORD *)(v8 + 12); v4 = (a2 - 1) & HIDWORD(*(_QWORD *)(v8 + 4)) & 0x3FFFFFFF; *(_DWORD *)(v8 + 12) = *(_DWORD *)(v3 + 4LL * v4); *(_DWORD *)(v3 + 4LL * v4) = j; } } js_free_rt(a1, *(_QWORD *)(a1 + 96)); *(_QWORD *)(a1 + 96) = v3; *(_DWORD *)(a1 + 80) = a2; *(_DWORD *)(a1 + 92) = 2 * a2; return 0; } else { return (unsigned int)-1; } }
JS_ResizeAtomHash: SUB RSP,0x48 MOV qword ptr [RSP + 0x38],RDI MOV dword ptr [RSP + 0x34],ESI MOV EAX,dword ptr [RSP + 0x34] SUB EAX,0x1 MOV dword ptr [RSP + 0x24],EAX MOV RDI,qword ptr [RSP + 0x38] MOVSXD RSI,dword ptr [RSP + 0x34] SHL RSI,0x2 CALL 0x00121b60 MOV qword ptr [RSP + 0x8],RAX CMP qword ptr [RSP + 0x8],0x0 JNZ 0x0015c8c5 MOV dword ptr [RSP + 0x44],0xffffffff JMP 0x0015c9ba LAB_0015c8c5: MOV dword ptr [RSP + 0x1c],0x0 LAB_0015c8cd: MOV EAX,dword ptr [RSP + 0x1c] MOV RCX,qword ptr [RSP + 0x38] CMP EAX,dword ptr [RCX + 0x50] JNC 0x0015c977 MOV RAX,qword ptr [RSP + 0x38] MOV RAX,qword ptr [RAX + 0x60] MOV ECX,dword ptr [RSP + 0x1c] MOV EAX,dword ptr [RAX + RCX*0x4] MOV dword ptr [RSP + 0x20],EAX LAB_0015c8f3: CMP dword ptr [RSP + 0x20],0x0 JZ 0x0015c965 MOV RAX,qword ptr [RSP + 0x38] MOV RAX,qword ptr [RAX + 0x68] MOV ECX,dword ptr [RSP + 0x20] MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RSP + 0x28],RAX MOV RAX,qword ptr [RSP + 0x28] MOV EAX,dword ptr [RAX + 0xc] MOV dword ptr [RSP + 0x18],EAX MOV RAX,qword ptr [RSP + 0x28] MOV RAX,qword ptr [RAX + 0x4] SHR RAX,0x20 AND RAX,0x3fffffff AND EAX,dword ptr [RSP + 0x24] MOV dword ptr [RSP + 0x14],EAX MOV RAX,qword ptr [RSP + 0x8] MOV ECX,dword ptr [RSP + 0x14] MOV ECX,dword ptr [RAX + RCX*0x4] MOV RAX,qword ptr [RSP + 0x28] MOV dword ptr [RAX + 0xc],ECX MOV EDX,dword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x8] MOV ECX,dword ptr [RSP + 0x14] MOV dword ptr [RAX + RCX*0x4],EDX MOV EAX,dword ptr [RSP + 0x18] MOV dword ptr [RSP + 0x20],EAX JMP 0x0015c8f3 LAB_0015c965: JMP 0x0015c967 LAB_0015c967: MOV EAX,dword ptr [RSP + 0x1c] ADD EAX,0x1 MOV dword ptr [RSP + 0x1c],EAX JMP 0x0015c8cd LAB_0015c977: MOV RDI,qword ptr [RSP + 0x38] MOV RAX,qword ptr [RSP + 0x38] MOV RSI,qword ptr [RAX + 0x60] CALL 0x00121960 MOV RCX,qword ptr [RSP + 0x8] MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RAX + 0x60],RCX MOV ECX,dword ptr [RSP + 0x34] MOV RAX,qword ptr [RSP + 0x38] MOV dword ptr [RAX + 0x50],ECX MOV ECX,dword ptr [RSP + 0x34] SHL ECX,0x1 MOV RAX,qword ptr [RSP + 0x38] MOV dword ptr [RAX + 0x5c],ECX MOV dword ptr [RSP + 0x44],0x0 LAB_0015c9ba: MOV EAX,dword ptr [RSP + 0x44] ADD RSP,0x48 RET
int4 JS_ResizeAtomHash(long param_1,int param_2) { uint uVar1; long lVar2; uint uVar3; long lVar4; int4 local_2c; int4 local_28; int4 local_4; lVar4 = js_mallocz_rt(param_1,(long)param_2 << 2); if (lVar4 == 0) { local_4 = 0xffffffff; } else { for (local_2c = 0; local_2c < *(uint *)(param_1 + 0x50); local_2c = local_2c + 1) { local_28 = *(uint *)(*(long *)(param_1 + 0x60) + (ulong)local_2c * 4); while (local_28 != 0) { lVar2 = *(long *)(*(long *)(param_1 + 0x68) + (ulong)local_28 * 8); uVar1 = *(uint *)(lVar2 + 0xc); uVar3 = (uint)((ulong)*(int8 *)(lVar2 + 4) >> 0x20) & 0x3fffffff & param_2 - 1U; *(int4 *)(lVar2 + 0xc) = *(int4 *)(lVar4 + (ulong)uVar3 * 4); *(uint *)(lVar4 + (ulong)uVar3 * 4) = local_28; local_28 = uVar1; } } js_free_rt(param_1,*(int8 *)(param_1 + 0x60)); *(long *)(param_1 + 0x60) = lVar4; *(int *)(param_1 + 0x50) = param_2; *(int *)(param_1 + 0x5c) = param_2 << 1; local_4 = 0; } return local_4; }
19,425
JS_ResizeAtomHash
bluesky950520[P]quickjs/quickjs.c
static int JS_ResizeAtomHash(JSRuntime *rt, int new_hash_size) { JSAtomStruct *p; uint32_t new_hash_mask, h, i, hash_next1, j, *new_hash; assert((new_hash_size & (new_hash_size - 1)) == 0); /* power of two */ new_hash_mask = new_hash_size - 1; new_hash = js_mallocz_rt(rt, sizeof(rt->atom_hash[0]) * new_hash_size); if (!new_hash) return -1; for(i = 0; i < rt->atom_hash_size; i++) { h = rt->atom_hash[i]; while (h != 0) { p = rt->atom_array[h]; hash_next1 = p->hash_next; /* add in new hash table */ j = p->hash & new_hash_mask; p->hash_next = new_hash[j]; new_hash[j] = h; h = hash_next1; } } js_free_rt(rt, rt->atom_hash); rt->atom_hash = new_hash; rt->atom_hash_size = new_hash_size; rt->atom_count_resize = JS_ATOM_COUNT_RESIZE(new_hash_size); // JS_DumpAtoms(rt); return 0; }
O2
c
JS_ResizeAtomHash: pushq %r15 pushq %r14 pushq %rbx movl %esi, %ebx movq %rdi, %r14 movslq %esi, %rsi shlq $0x2, %rsi callq 0x171a8 testq %rax, %rax je 0x34628 movq %rax, %r15 leal -0x1(%rbx), %eax andl $0x3fffffff, %eax # imm = 0x3FFFFFFF movq 0x60(%r14), %rsi xorl %ecx, %ecx movl 0x50(%r14), %edx cmpq %rdx, %rcx jae 0x3460e movl (%rsi,%rcx,4), %edx testl %edx, %edx je 0x34609 movq 0x68(%r14), %rdi movl %edx, %r8d movq (%rdi,%r8,8), %rdi movl 0xc(%rdi), %r8d movl 0x8(%rdi), %r9d andl %eax, %r9d movl (%r15,%r9,4), %r10d movl %r10d, 0xc(%rdi) movl %edx, (%r15,%r9,4) movl %r8d, %edx jmp 0x345de incq %rcx jmp 0x345d2 movq %r14, %rdi callq 0x170cb movq %r15, 0x60(%r14) movl %ebx, 0x50(%r14) addl %ebx, %ebx movl %ebx, 0x5c(%r14) xorl %eax, %eax jmp 0x3462b pushq $-0x1 popq %rax popq %rbx popq %r14 popq %r15 retq
JS_ResizeAtomHash: push r15 push r14 push rbx mov ebx, esi mov r14, rdi movsxd rsi, esi shl rsi, 2 call js_mallocz_rt test rax, rax jz short loc_34628 mov r15, rax lea eax, [rbx-1] and eax, 3FFFFFFFh mov rsi, [r14+60h] xor ecx, ecx loc_345D2: mov edx, [r14+50h] cmp rcx, rdx jnb short loc_3460E mov edx, [rsi+rcx*4] loc_345DE: test edx, edx jz short loc_34609 mov rdi, [r14+68h] mov r8d, edx mov rdi, [rdi+r8*8] mov r8d, [rdi+0Ch] mov r9d, [rdi+8] and r9d, eax mov r10d, [r15+r9*4] mov [rdi+0Ch], r10d mov [r15+r9*4], edx mov edx, r8d jmp short loc_345DE loc_34609: inc rcx jmp short loc_345D2 loc_3460E: mov rdi, r14 call js_free_rt mov [r14+60h], r15 mov [r14+50h], ebx add ebx, ebx mov [r14+5Ch], ebx xor eax, eax jmp short loc_3462B loc_34628: push 0FFFFFFFFFFFFFFFFh pop rax loc_3462B: pop rbx pop r14 pop r15 retn
long long JS_ResizeAtomHash(long long a1, int a2) { long long v4; // rax long long v5; // r15 int v6; // eax long long v7; // rsi unsigned long long i; // rcx unsigned int j; // edx long long v10; // rdi unsigned int v11; // r8d long long v12; // r9 v4 = js_mallocz_rt(a1, 4LL * a2); if ( !v4 ) return -1LL; v5 = v4; v6 = (a2 - 1) & 0x3FFFFFFF; v7 = *(_QWORD *)(a1 + 96); for ( i = 0LL; i < *(unsigned int *)(a1 + 80); ++i ) { for ( j = *(_DWORD *)(v7 + 4 * i); j; j = v11 ) { v10 = *(_QWORD *)(*(_QWORD *)(a1 + 104) + 8LL * j); v11 = *(_DWORD *)(v10 + 12); v12 = (unsigned int)v6 & *(_DWORD *)(v10 + 8); *(_DWORD *)(v10 + 12) = *(_DWORD *)(v5 + 4 * v12); *(_DWORD *)(v5 + 4 * v12) = j; } } js_free_rt(a1, v7); *(_QWORD *)(a1 + 96) = v5; *(_DWORD *)(a1 + 80) = a2; *(_DWORD *)(a1 + 92) = 2 * a2; return 0LL; }
JS_ResizeAtomHash: PUSH R15 PUSH R14 PUSH RBX MOV EBX,ESI MOV R14,RDI MOVSXD RSI,ESI SHL RSI,0x2 CALL 0x001171a8 TEST RAX,RAX JZ 0x00134628 MOV R15,RAX LEA EAX,[RBX + -0x1] AND EAX,0x3fffffff MOV RSI,qword ptr [R14 + 0x60] XOR ECX,ECX LAB_001345d2: MOV EDX,dword ptr [R14 + 0x50] CMP RCX,RDX JNC 0x0013460e MOV EDX,dword ptr [RSI + RCX*0x4] LAB_001345de: TEST EDX,EDX JZ 0x00134609 MOV RDI,qword ptr [R14 + 0x68] MOV R8D,EDX MOV RDI,qword ptr [RDI + R8*0x8] MOV R8D,dword ptr [RDI + 0xc] MOV R9D,dword ptr [RDI + 0x8] AND R9D,EAX MOV R10D,dword ptr [R15 + R9*0x4] MOV dword ptr [RDI + 0xc],R10D MOV dword ptr [R15 + R9*0x4],EDX MOV EDX,R8D JMP 0x001345de LAB_00134609: INC RCX JMP 0x001345d2 LAB_0013460e: MOV RDI,R14 CALL 0x001170cb MOV qword ptr [R14 + 0x60],R15 MOV dword ptr [R14 + 0x50],EBX ADD EBX,EBX MOV dword ptr [R14 + 0x5c],EBX XOR EAX,EAX JMP 0x0013462b LAB_00134628: PUSH -0x1 POP RAX LAB_0013462b: POP RBX POP R14 POP R15 RET
int8 JS_ResizeAtomHash(long param_1,int param_2) { uint uVar1; long lVar2; long lVar3; long lVar4; int8 uVar5; ulong uVar6; uint uVar7; ulong uVar8; lVar4 = js_mallocz_rt(param_1,(long)param_2 << 2); if (lVar4 == 0) { uVar5 = 0xffffffffffffffff; } else { lVar2 = *(long *)(param_1 + 0x60); for (uVar6 = 0; uVar6 < *(uint *)(param_1 + 0x50); uVar6 = uVar6 + 1) { uVar7 = *(uint *)(lVar2 + uVar6 * 4); while (uVar7 != 0) { lVar3 = *(long *)(*(long *)(param_1 + 0x68) + (ulong)uVar7 * 8); uVar1 = *(uint *)(lVar3 + 0xc); uVar8 = (ulong)(*(uint *)(lVar3 + 8) & param_2 - 1U & 0x3fffffff); *(int4 *)(lVar3 + 0xc) = *(int4 *)(lVar4 + uVar8 * 4); *(uint *)(lVar4 + uVar8 * 4) = uVar7; uVar7 = uVar1; } } js_free_rt(param_1); *(long *)(param_1 + 0x60) = lVar4; *(int *)(param_1 + 0x50) = param_2; *(int *)(param_1 + 0x5c) = param_2 * 2; uVar5 = 0; } return uVar5; }
19,426
ImPlot::FormatDate(ImPlotTime const&, char*, int, int, bool)
zkingston[P]unknot/build_O1/_deps/implot-src/implot.cpp
int FormatDate(const ImPlotTime& t, char* buffer, int size, ImPlotDateFmt fmt, bool use_iso_8601) { tm& Tm = GImPlot->Tm; GetTime(t, &Tm); const int day = Tm.tm_mday; const int mon = Tm.tm_mon + 1; const int year = Tm.tm_year + 1900; const int yr = year % 100; if (use_iso_8601) { switch (fmt) { case ImPlotDateFmt_DayMo: return ImFormatString(buffer, size, "--%02d-%02d", mon, day); case ImPlotDateFmt_DayMoYr: return ImFormatString(buffer, size, "%d-%02d-%02d", year, mon, day); case ImPlotDateFmt_MoYr: return ImFormatString(buffer, size, "%d-%02d", year, mon); case ImPlotDateFmt_Mo: return ImFormatString(buffer, size, "--%02d", mon); case ImPlotDateFmt_Yr: return ImFormatString(buffer, size, "%d", year); default: return 0; } } else { switch (fmt) { case ImPlotDateFmt_DayMo: return ImFormatString(buffer, size, "%d/%d", mon, day); case ImPlotDateFmt_DayMoYr: return ImFormatString(buffer, size, "%d/%d/%02d", mon, day, yr); case ImPlotDateFmt_MoYr: return ImFormatString(buffer, size, "%s %d", MONTH_ABRVS[Tm.tm_mon], year); case ImPlotDateFmt_Mo: return ImFormatString(buffer, size, "%s", MONTH_ABRVS[Tm.tm_mon]); case ImPlotDateFmt_Yr: return ImFormatString(buffer, size, "%d", year); default: return 0; } } }
O1
cpp
ImPlot::FormatDate(ImPlotTime const&, char*, int, int, bool): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %r8d, %r15d movl %ecx, %r14d movl %edx, %ebp movq %rsi, %rbx movq %rdi, %r12 movq 0x2863f9(%rip), %r13 # 0x336ca0 testq %r13, %r13 jne 0xb08b8 leaq 0x1e9e28(%rip), %rdi # 0x29a6db callq 0x2161f4 leaq 0x3e0(%r13), %rsi movq 0x2863da(%rip), %rax # 0x336ca0 cmpb $0x1, 0x304(%rax) jne 0xb08d9 movq %r12, %rdi callq 0xf570 jmp 0xb08e1 movq %r12, %rdi callq 0x10370 movl 0x3ec(%r13), %r10d movslq 0x3f0(%r13), %rcx leal 0x1(%rcx), %r8d movl $0x76c, %eax # imm = 0x76C addl 0x3f4(%r13), %eax decl %r14d testb %r15b, %r15b je 0xb0929 cmpl $0x4, %r14d ja 0xb0968 leaq 0x1e938c(%rip), %rcx # 0x299ca0 movslq (%rcx,%r14,4), %rdx addq %rcx, %rdx jmpq *%rdx movslq %ebp, %rsi leaq 0x1e9bae(%rip), %rdx # 0x29a4d5 jmp 0xb0949 cmpl $0x4, %r14d ja 0xb0968 leaq 0x1e9356(%rip), %rdx # 0x299c8c movslq (%rdx,%r14,4), %rsi addq %rdx, %rsi jmpq *%rsi movslq %ebp, %rsi leaq 0x1e9bb4(%rip), %rdx # 0x29a4fd movq %rbx, %rdi movl %r8d, %ecx movl %r10d, %r8d jmp 0xb09b5 movslq %ebp, %rsi leaq 0x1eafc8(%rip), %rdx # 0x29b926 movq %rbx, %rdi movl %eax, %ecx jmp 0xb0a0c xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movslq %ebp, %rsi leaq 0x28338d(%rip), %rax # 0x333d10 movq (%rax,%rcx,8), %rcx leaq 0x1f4f89(%rip), %rdx # 0x2a5917 movq %rbx, %rdi xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x2133be movslq %ebp, %rsi leaq 0x1e9b3e(%rip), %rdx # 0x29a4ee movq %rbx, %rdi movl %eax, %ecx xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x2133be movslq %eax, %r9 imulq $0x51eb851f, %r9, %rax # imm = 0x51EB851F movq %rax, %rcx shrq $0x3f, %rcx sarq $0x25, %rax addl %ecx, %eax imull $0x64, %eax, %eax subl %eax, %r9d movslq %ebp, %rsi leaq 0x1e9b12(%rip), %rdx # 0x29a503 movq %rbx, %rdi movl %r8d, %ecx movl %r10d, %r8d jmp 0xb0a63 movslq %ebp, %rsi leaq 0x1e9af0(%rip), %rdx # 0x29a4f6 movq %rbx, %rdi movl %r8d, %ecx xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x2133be movslq %ebp, %rsi leaq 0x2832e5(%rip), %rdx # 0x333d10 movq (%rdx,%rcx,8), %rcx leaq 0x1e9ad8(%rip), %rdx # 0x29a50e movq %rbx, %rdi movl %eax, %r8d xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x2133be movslq %ebp, %rsi leaq 0x1e9a86(%rip), %rdx # 0x29a4e1 movq %rbx, %rdi movl %eax, %ecx movl %r10d, %r9d xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x2133be
_ZN6ImPlot10FormatDateERK10ImPlotTimePciib: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov r15d, r8d mov r14d, ecx mov ebp, edx mov rbx, rsi mov r12, rdi mov r13, cs:GImPlot test r13, r13 jnz short loc_B08B8 lea rdi, aNoCurrentConte_0; "No current context. Did you call ImPlot"... call _ZN5ImGui8ErrorLogEPKc; ImGui::ErrorLog(char const*) loc_B08B8: lea rsi, [r13+3E0h] mov rax, cs:GImPlot cmp byte ptr [rax+304h], 1 jnz short loc_B08D9 mov rdi, r12 call _localtime_r jmp short loc_B08E1 loc_B08D9: mov rdi, r12 call _gmtime_r loc_B08E1: mov r10d, [r13+3ECh] movsxd rcx, dword ptr [r13+3F0h] lea r8d, [rcx+1] mov eax, 76Ch add eax, [r13+3F4h] dec r14d; switch 5 cases test r15b, r15b jz short loc_B0929 cmp r14d, 4 ja short def_B091B; jumptable 00000000000B091B default case lea rcx, jpt_B091B movsxd rdx, ds:(jpt_B091B - 299CA0h)[rcx+r14*4] add rdx, rcx jmp rdx; switch jump loc_B091D: movsxd rsi, ebp; jumptable 00000000000B091B case 1 lea rdx, a02d02d; "--%02d-%02d" jmp short loc_B0949 loc_B0929: cmp r14d, 4 ja short def_B091B; jumptable 00000000000B091B default case lea rdx, jpt_B093D movsxd rsi, ds:(jpt_B093D - 299C8Ch)[rdx+r14*4] add rsi, rdx jmp rsi; switch jump loc_B093F: movsxd rsi, ebp; jumptable 00000000000B093D case 1 lea rdx, aDD; "%d/%d" loc_B0949: mov rdi, rbx mov ecx, r8d mov r8d, r10d jmp short loc_B09B5 loc_B0954: movsxd rsi, ebp; jumptable 00000000000B091B case 5 lea rdx, aColormapsD+0Ch; "%d" mov rdi, rbx mov ecx, eax jmp loc_B0A0C def_B091B: xor eax, eax; jumptable 00000000000B091B default case add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_B0979: movsxd rsi, ebp; jumptable 00000000000B093D case 4 lea rax, _ZN6ImPlotL11MONTH_ABRVSE; ImPlot::MONTH_ABRVS mov rcx, [rax+rcx*8] lea rdx, a61f61f61f61fSi+2Fh; char * mov rdi, rbx; char * xor eax, eax add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp _Z14ImFormatStringPcmPKcz; ImFormatString(char *,ulong,char const*,...) loc_B09A6: movsxd rsi, ebp; jumptable 00000000000B091B case 3 lea rdx, aD02d; "%d-%02d" mov rdi, rbx; char * mov ecx, eax loc_B09B5: xor eax, eax add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp _Z14ImFormatStringPcmPKcz; ImFormatString(char *,ulong,char const*,...) loc_B09CA: movsxd r9, eax; jumptable 00000000000B093D case 2 imul rax, r9, 51EB851Fh mov rcx, rax shr rcx, 3Fh sar rax, 25h add eax, ecx imul eax, 64h ; 'd' sub r9d, eax movsxd rsi, ebp lea rdx, aDD02d; "%d/%d/%02d" mov rdi, rbx mov ecx, r8d mov r8d, r10d jmp short loc_B0A63 loc_B09FC: movsxd rsi, ebp; jumptable 00000000000B091B case 4 lea rdx, a02d; "--%02d" mov rdi, rbx; char * mov ecx, r8d loc_B0A0C: xor eax, eax add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp _Z14ImFormatStringPcmPKcz; ImFormatString(char *,ulong,char const*,...) loc_B0A21: movsxd rsi, ebp; jumptable 00000000000B093D case 3 lea rdx, _ZN6ImPlotL11MONTH_ABRVSE; ImPlot::MONTH_ABRVS mov rcx, [rdx+rcx*8] lea rdx, aSD; "%s %d" mov rdi, rbx; char * mov r8d, eax xor eax, eax add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp _Z14ImFormatStringPcmPKcz; ImFormatString(char *,ulong,char const*,...) loc_B0A51: movsxd rsi, ebp; jumptable 00000000000B091B case 2 lea rdx, aD02d02d; "%d-%02d-%02d" mov rdi, rbx; char * mov ecx, eax mov r9d, r10d loc_B0A63: xor eax, eax add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp _Z14ImFormatStringPcmPKcz; ImFormatString(char *,ulong,char const*,...)
long long ImPlot::FormatDate(long long a1, char *a2, int a3, int a4, char a5) { ImGui *v9; // r13 char *v10; // rsi unsigned int v11; // r10d long long v12; // rcx long long v13; // r8 unsigned int v14; // eax int v15; // r14d unsigned long long v16; // rsi const char *v17; // rdx char *v18; // rdi long long v19; // rcx long long result; // rax v9 = GImPlot; if ( !GImPlot ) ImGui::ErrorLog( (ImGui *)"No current context. Did you call ImPlot::CreateContext() or ImPlot::SetCurrentContext()?", a2); v10 = (char *)v9 + 992; if ( *((_BYTE *)GImPlot + 772) == 1 ) localtime_r(a1, v10); else gmtime_r(a1, v10); v11 = *((_DWORD *)v9 + 251); v12 = *((int *)v9 + 252); v13 = (unsigned int)(v12 + 1); v14 = *((_DWORD *)v9 + 253) + 1900; v15 = a4 - 1; if ( a5 ) { switch ( v15 ) { case 0: v16 = a3; v17 = "--%02d-%02d"; goto LABEL_11; case 1: result = ImFormatString(a2, a3, "%d-%02d-%02d", v14, v13, v11); break; case 2: v16 = a3; v17 = "%d-%02d"; v18 = a2; v19 = v14; goto LABEL_16; case 3: result = ImFormatString(a2, a3, "--%02d", (unsigned int)v13, v13); break; case 4: goto LABEL_12; default: goto LABEL_13; } } else { switch ( v15 ) { case 0: v16 = a3; v17 = "%d/%d"; LABEL_11: v18 = a2; v19 = (unsigned int)v13; v13 = v11; LABEL_16: result = ImFormatString(v18, v16, v17, v19, v13); break; case 1: result = ImFormatString(a2, a3, "%d/%d/%02d", (unsigned int)v13, v11, (unsigned int)((int)v14 % 100)); break; case 2: result = ImFormatString(a2, a3, "%s %d", ImPlot::MONTH_ABRVS[v12], v14); break; case 3: result = ImFormatString(a2, a3, "%s", ImPlot::MONTH_ABRVS[v12]); break; case 4: LABEL_12: result = ImFormatString(a2, a3, "%d", v14, v13); break; default: LABEL_13: result = 0LL; break; } } return result; }
FormatDate: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R15D,R8D MOV R14D,ECX MOV EBP,EDX MOV RBX,RSI MOV R12,RDI MOV R13,qword ptr [0x00436ca0] TEST R13,R13 JNZ 0x001b08b8 LEA RDI,[0x39a6db] CALL 0x003161f4 LAB_001b08b8: LEA RSI,[R13 + 0x3e0] MOV RAX,qword ptr [0x00436ca0] CMP byte ptr [RAX + 0x304],0x1 JNZ 0x001b08d9 MOV RDI,R12 CALL 0x0010f570 JMP 0x001b08e1 LAB_001b08d9: MOV RDI,R12 CALL 0x00110370 LAB_001b08e1: MOV R10D,dword ptr [R13 + 0x3ec] MOVSXD RCX,dword ptr [R13 + 0x3f0] LEA R8D,[RCX + 0x1] MOV EAX,0x76c ADD EAX,dword ptr [R13 + 0x3f4] DEC R14D TEST R15B,R15B JZ 0x001b0929 CMP R14D,0x4 JA 0x001b0968 LEA RCX,[0x399ca0] MOVSXD RDX,dword ptr [RCX + R14*0x4] ADD RDX,RCX switchD: JMP RDX caseD_0: MOVSXD RSI,EBP LEA RDX,[0x39a4d5] JMP 0x001b0949 LAB_001b0929: CMP R14D,0x4 JA 0x001b0968 LEA RDX,[0x399c8c] MOVSXD RSI,dword ptr [RDX + R14*0x4] ADD RSI,RDX switchD: JMP RSI caseD_0: MOVSXD RSI,EBP LEA RDX,[0x39a4fd] LAB_001b0949: MOV RDI,RBX MOV ECX,R8D MOV R8D,R10D JMP 0x001b09b5 caseD_4: MOVSXD RSI,EBP LEA RDX,[0x39b926] MOV RDI,RBX MOV ECX,EAX JMP 0x001b0a0c default: XOR EAX,EAX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET caseD_3: MOVSXD RSI,EBP LEA RAX,[0x433d10] MOV RCX,qword ptr [RAX + RCX*0x8] LEA RDX,[0x3a5917] MOV RDI,RBX XOR EAX,EAX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x003133be caseD_2: MOVSXD RSI,EBP LEA RDX,[0x39a4ee] MOV RDI,RBX MOV ECX,EAX LAB_001b09b5: XOR EAX,EAX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x003133be caseD_1: MOVSXD R9,EAX IMUL RAX,R9,0x51eb851f MOV RCX,RAX SHR RCX,0x3f SAR RAX,0x25 ADD EAX,ECX IMUL EAX,EAX,0x64 SUB R9D,EAX MOVSXD RSI,EBP LEA RDX,[0x39a503] MOV RDI,RBX MOV ECX,R8D MOV R8D,R10D JMP 0x001b0a63 caseD_3: MOVSXD RSI,EBP LEA RDX,[0x39a4f6] MOV RDI,RBX MOV ECX,R8D LAB_001b0a0c: XOR EAX,EAX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x003133be caseD_2: MOVSXD RSI,EBP LEA RDX,[0x433d10] MOV RCX,qword ptr [RDX + RCX*0x8] LEA RDX,[0x39a50e] MOV RDI,RBX MOV R8D,EAX XOR EAX,EAX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x003133be caseD_1: MOVSXD RSI,EBP LEA RDX,[0x39a4e1] MOV RDI,RBX MOV ECX,EAX MOV R9D,R10D LAB_001b0a63: XOR EAX,EAX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x003133be
/* ImPlot::FormatDate(ImPlotTime const&, char*, int, int, bool) */ int8 ImPlot::FormatDate(ImPlotTime *param_1,char *param_2,int param_3,int param_4,bool param_5) { uint uVar1; int iVar2; long lVar3; uint uVar4; int8 uVar5; ulong uVar6; ulong uVar7; char *pcVar8; ulong uVar9; lVar3 = GImPlot; if (GImPlot == 0) { ImGui::ErrorLog( "No current context. Did you call ImPlot::CreateContext() or ImPlot::SetCurrentContext()?" ); } if (*(char *)(GImPlot + 0x304) == '\x01') { localtime_r((time_t *)param_1,(tm *)(lVar3 + 0x3e0)); } else { gmtime_r((time_t *)param_1,(tm *)(lVar3 + 0x3e0)); } uVar1 = *(uint *)(lVar3 + 0x3ec); iVar2 = *(int *)(lVar3 + 0x3f0); uVar6 = (ulong)(iVar2 + 1); uVar4 = *(int *)(lVar3 + 0x3f4) + 0x76c; if (param_5) { switch(param_4 + -1) { case 0: pcVar8 = "--%02d-%02d"; break; case 1: pcVar8 = "%d-%02d-%02d"; uVar7 = (ulong)uVar4; uVar9 = uVar6; uVar4 = uVar1; LAB_001b0a63: uVar5 = ImFormatString(param_2,(long)param_3,pcVar8,uVar7,uVar9,(ulong)uVar4); return uVar5; case 2: pcVar8 = "%d-%02d"; uVar7 = (ulong)uVar4; uVar9 = uVar6; goto LAB_001b09b5; case 3: pcVar8 = "--%02d"; goto LAB_001b0a0c; case 4: switchD_001b091b_caseD_4: pcVar8 = "%d"; uVar6 = (ulong)uVar4; LAB_001b0a0c: uVar5 = ImFormatString(param_2,(long)param_3,pcVar8,uVar6); return uVar5; default: switchD_001b091b_default: return 0; } } else { switch(param_4 + -1) { case 0: pcVar8 = "%d/%d"; break; case 1: uVar4 = (int)uVar4 % 100; pcVar8 = "%d/%d/%02d"; uVar9 = (ulong)uVar1; uVar7 = uVar6; goto LAB_001b0a63; case 2: uVar5 = ImFormatString(param_2,(long)param_3,"%s %d", *(int8 *)(MONTH_ABRVS + (long)iVar2 * 8),(ulong)uVar4); return uVar5; case 3: uVar5 = ImFormatString(param_2,(long)param_3,"%s", *(int8 *)(MONTH_ABRVS + (long)iVar2 * 8)); return uVar5; case 4: goto switchD_001b091b_caseD_4; default: goto switchD_001b091b_default; } } uVar9 = (ulong)uVar1; uVar7 = uVar6; LAB_001b09b5: uVar5 = ImFormatString(param_2,(long)param_3,pcVar8,uVar7,uVar9); return uVar5; }
19,427
fmt::v11::basic_appender<char> fmt::v11::detail::write_float<char, fmt::v11::basic_appender<char>, double>(fmt::v11::basic_appender<char>, double, fmt::v11::format_specs, fmt::v11::detail::locale_ref)
zkingston[P]unknot/build_O0/_deps/fmt-src/include/fmt/format.h
FMT_CONSTEXPR20 auto write_float(OutputIt out, T value, format_specs specs, locale_ref loc) -> OutputIt { // Use signbit because value < 0 is false for NaN. sign s = detail::signbit(value) ? sign::minus : specs.sign(); if (!detail::isfinite(value)) return write_nonfinite<Char>(out, detail::isnan(value), specs, s); if (specs.align() == align::numeric && s != sign::none) { *out++ = detail::getsign<Char>(s); s = sign::none; if (specs.width != 0) --specs.width; } constexpr int exp_upper = detail::exp_upper<T>(); int precision = specs.precision; if (precision < 0) { if (specs.type() != presentation_type::none) { precision = 6; } else if (is_fast_float<T>::value && !is_constant_evaluated()) { // Use Dragonbox for the shortest format. using floaty = conditional_t<sizeof(T) >= sizeof(double), double, float>; auto dec = dragonbox::to_decimal(static_cast<floaty>(value)); return write_float<Char>(out, dec, specs, s, exp_upper, loc); } } memory_buffer buffer; if (specs.type() == presentation_type::hexfloat) { if (s != sign::none) buffer.push_back(detail::getsign<char>(s)); format_hexfloat(convert_float(value), specs, buffer); return write_bytes<Char, align::right>(out, {buffer.data(), buffer.size()}, specs); } if (specs.type() == presentation_type::exp) { if (precision == max_value<int>()) report_error("number is too big"); else ++precision; if (specs.precision != 0) specs.set_alt(); } else if (specs.type() == presentation_type::fixed) { if (specs.precision != 0) specs.set_alt(); } else if (precision == 0) { precision = 1; } int exp = format_float(convert_float(value), precision, specs, std::is_same<T, float>(), buffer); specs.precision = precision; auto f = big_decimal_fp{buffer.data(), static_cast<int>(buffer.size()), exp}; return write_float<Char>(out, f, specs, s, exp_upper, loc); }
O0
c
fmt::v11::basic_appender<char> fmt::v11::detail::write_float<char, fmt::v11::basic_appender<char>, double>(fmt::v11::basic_appender<char>, double, fmt::v11::format_specs, fmt::v11::detail::locale_ref): subq $0x358, %rsp # imm = 0x358 movq %rdi, 0x340(%rsp) movq %rsi, 0x330(%rsp) movq %rdx, 0x338(%rsp) movq %rcx, 0x328(%rsp) movsd %xmm0, 0x320(%rsp) movsd 0x320(%rsp), %xmm0 movsd %xmm0, 0x350(%rsp) movsd 0x350(%rsp), %xmm0 callq 0x6c2b0 testb $0x1, %al jne 0xc3a76 jmp 0xc3a81 movl $0x1, %eax movl %eax, 0x44(%rsp) jmp 0xc3a92 leaq 0x330(%rsp), %rdi callq 0xae670 movl %eax, 0x44(%rsp) movl 0x44(%rsp), %eax movl %eax, 0x31c(%rsp) movsd 0x320(%rsp), %xmm0 callq 0xc3fc0 testb $0x1, %al jne 0xc3b25 movq 0x340(%rsp), %rax movq %rax, 0x310(%rsp) movsd 0x320(%rsp), %xmm0 callq 0xc3ff0 movq 0x330(%rsp), %rcx movq %rcx, 0x300(%rsp) movq 0x338(%rsp), %rcx movq %rcx, 0x308(%rsp) movl 0x31c(%rsp), %r8d movq 0x310(%rsp), %rdi movq 0x300(%rsp), %rdx movq 0x308(%rsp), %rcx movzbl %al, %esi andl $0x1, %esi callq 0xb00e0 movq %rax, 0x348(%rsp) jmp 0xc3f5c leaq 0x330(%rsp), %rdi callq 0xaed50 cmpl $0x4, %eax jne 0xc3bac cmpl $0x0, 0x31c(%rsp) je 0xc3bac movl 0x31c(%rsp), %edi callq 0xb0670 movb %al, 0x43(%rsp) leaq 0x340(%rsp), %rdi xorl %esi, %esi callq 0xac9d0 movq %rax, 0x2f8(%rsp) leaq 0x2f8(%rsp), %rdi callq 0xac9f0 movq %rax, %rdi movb 0x43(%rsp), %al movsbl %al, %esi callq 0xaca00 movl $0x0, 0x31c(%rsp) cmpl $0x0, 0x338(%rsp) je 0xc3baa movl 0x338(%rsp), %eax addl $-0x1, %eax movl %eax, 0x338(%rsp) jmp 0xc3bac movl $0x10, 0x2f4(%rsp) movl 0x33c(%rsp), %eax movl %eax, 0x2f0(%rsp) cmpl $0x0, 0x2f0(%rsp) jge 0xc3c6f leaq 0x330(%rsp), %rdi callq 0xae030 cmpb $0x0, %al je 0xc3bf1 movl $0x6, 0x2f0(%rsp) jmp 0xc3c6d movsd 0x320(%rsp), %xmm0 callq 0xa9b40 movq %rax, 0x2e0(%rsp) movl %edx, 0x2e8(%rsp) movq 0x340(%rsp), %rax movq %rax, 0x2d8(%rsp) movl 0x31c(%rsp), %ecx movq 0x328(%rsp), %rax movq %rax, 0x2d0(%rsp) movq 0x2d8(%rsp), %rdi movq 0x2d0(%rsp), %r9 leaq 0x2e0(%rsp), %rsi leaq 0x330(%rsp), %rdx movl $0x10, %r8d callq 0xb3720 movq %rax, 0x348(%rsp) jmp 0xc3f5c jmp 0xc3c6f leaq 0xb8(%rsp), %rdi leaq 0xb7(%rsp), %rsi callq 0xa6b50 leaq 0x330(%rsp), %rdi callq 0xae030 cmpb $0x4, %al jne 0xc3db8 cmpl $0x0, 0x31c(%rsp) je 0xc3cf5 movl 0x31c(%rsp), %edi callq 0xb0670 movb %al, 0xb6(%rsp) leaq 0xb8(%rsp), %rdi leaq 0xb6(%rsp), %rsi callq 0xa8d90 jmp 0xc3ccd jmp 0xc3cf5 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xa8(%rsp) movl %eax, 0xa4(%rsp) leaq 0xb8(%rsp), %rdi callq 0xa6bb0 jmp 0xc3f6c movsd 0x320(%rsp), %xmm0 callq 0xc3500 movups 0x330(%rsp), %xmm1 movaps %xmm1, 0x90(%rsp) movq 0x90(%rsp), %rdi movq 0x98(%rsp), %rsi leaq 0xb8(%rsp), %rdx callq 0xc2300 jmp 0xc3d32 movq 0x340(%rsp), %rax movq %rax, 0x88(%rsp) leaq 0xb8(%rsp), %rdi movq %rdi, 0x28(%rsp) callq 0xa6ba0 movq 0x28(%rsp), %rdi movq %rax, 0x30(%rsp) callq 0xa6b40 movq 0x30(%rsp), %rsi movq %rax, %rdx leaq 0x78(%rsp), %rdi callq 0x753a0 movq 0x88(%rsp), %rdi movq 0x78(%rsp), %rsi movq 0x80(%rsp), %rdx leaq 0x330(%rsp), %rcx callq 0xb65a0 movq %rax, 0x38(%rsp) jmp 0xc3d9e movq 0x38(%rsp), %rax movq %rax, 0x348(%rsp) movl $0x1, 0x74(%rsp) jmp 0xc3f4f leaq 0x330(%rsp), %rdi callq 0xae030 cmpb $0x1, %al jne 0xc3e1b movl 0x2f0(%rsp), %eax movl %eax, 0x24(%rsp) callq 0xb1e50 movl %eax, %ecx movl 0x24(%rsp), %eax cmpl %ecx, %eax jne 0xc3df1 leaq 0x50d0d0(%rip), %rdi # 0x5d0eba callq 0xa5500 jmp 0xc3df1 movl 0x2f0(%rsp), %eax addl $0x1, %eax movl %eax, 0x2f0(%rsp) cmpl $0x0, 0x33c(%rsp) je 0xc3e19 leaq 0x330(%rsp), %rdi callq 0xb6610 jmp 0xc3e5e leaq 0x330(%rsp), %rdi callq 0xae030 cmpb $0x2, %al jne 0xc3e45 cmpl $0x0, 0x33c(%rsp) je 0xc3e43 leaq 0x330(%rsp), %rdi callq 0xb6610 jmp 0xc3e5c cmpl $0x0, 0x2f0(%rsp) jne 0xc3e5a movl $0x1, 0x2f0(%rsp) jmp 0xc3e5c jmp 0xc3e5e movsd 0x320(%rsp), %xmm0 callq 0xc3500 movsd %xmm0, 0x10(%rsp) movl 0x2f0(%rsp), %eax movl %eax, 0x1c(%rsp) leaq 0x6f(%rsp), %rdi callq 0xb6a40 movsd 0x10(%rsp), %xmm0 movl 0x1c(%rsp), %edi movzbl %al, %edx leaq 0x330(%rsp), %rsi leaq 0xb8(%rsp), %rcx callq 0xc2780 movl %eax, 0x20(%rsp) jmp 0xc3eaf movl 0x20(%rsp), %eax movl %eax, 0x70(%rsp) movl 0x2f0(%rsp), %eax movl %eax, 0x33c(%rsp) leaq 0xb8(%rsp), %rdi movq %rdi, (%rsp) callq 0xa6ba0 movq (%rsp), %rdi movq %rax, 0x58(%rsp) callq 0xa6b40 movl %eax, 0x60(%rsp) movl 0x70(%rsp), %eax movl %eax, 0x64(%rsp) movq 0x340(%rsp), %rax movq %rax, 0x50(%rsp) movl 0x31c(%rsp), %ecx movq 0x328(%rsp), %rax movq %rax, 0x48(%rsp) movq 0x50(%rsp), %rdi movq 0x48(%rsp), %r9 leaq 0x58(%rsp), %rsi leaq 0x330(%rsp), %rdx movl $0x10, %r8d callq 0xb6a50 movq %rax, 0x8(%rsp) jmp 0xc3f3a movq 0x8(%rsp), %rax movq %rax, 0x348(%rsp) movl $0x1, 0x74(%rsp) leaq 0xb8(%rsp), %rdi callq 0xa6bb0 movq 0x348(%rsp), %rax addq $0x358, %rsp # imm = 0x358 retq movq 0xa8(%rsp), %rdi callq 0x13540 nopl (%rax)
_ZN3fmt3v116detail11write_floatIcNS0_14basic_appenderIcEEdEET0_S5_T1_NS0_12format_specsENS1_10locale_refE: sub rsp, 358h mov [rsp+358h+var_18], rdi mov qword ptr [rsp+358h+var_28], rsi mov qword ptr [rsp+358h+var_28+8], rdx mov [rsp+358h+var_30], rcx movsd [rsp+358h+var_38], xmm0 movsd xmm0, [rsp+358h+var_38] movsd [rsp+358h+var_8], xmm0 movsd xmm0, [rsp+358h+var_8]; double call _ZSt7signbitd; std::signbit(double) test al, 1 jnz short loc_C3A76 jmp short loc_C3A81 loc_C3A76: mov eax, 1 mov [rsp+358h+var_314], eax jmp short loc_C3A92 loc_C3A81: lea rdi, [rsp+358h+var_28]; this call _ZNK3fmt3v1111basic_specs4signEv; fmt::v11::basic_specs::sign(void) mov [rsp+358h+var_314], eax loc_C3A92: mov eax, [rsp+358h+var_314] mov [rsp+358h+var_3C], eax movsd xmm0, [rsp+358h+var_38] call _ZN3fmt3v116detail8isfiniteIdTnNSt9enable_ifIXaasr3std17is_floating_pointIT_EE5valuesr12has_isfiniteIS4_EE5valueEiE4typeELi0EEEbS4_ test al, 1 jnz short loc_C3B25 mov rax, [rsp+358h+var_18] mov [rsp+358h+var_48], rax movsd xmm0, [rsp+358h+var_38] call _ZN3fmt3v116detail5isnanIdEEbT_; fmt::v11::detail::isnan<double>(double) mov rcx, qword ptr [rsp+358h+var_28] mov [rsp+358h+var_58], rcx mov rcx, qword ptr [rsp+358h+var_28+8] mov [rsp+358h+var_50], rcx mov r8d, [rsp+358h+var_3C] mov rdi, [rsp+358h+var_48] mov rdx, [rsp+358h+var_58] mov rcx, [rsp+358h+var_50] movzx esi, al and esi, 1 call _ZN3fmt3v116detail15write_nonfiniteIcNS0_14basic_appenderIcEEEET0_S5_bNS0_12format_specsENS0_4signE; fmt::v11::detail::write_nonfinite<char,fmt::v11::basic_appender<char>>(fmt::v11::basic_appender<char>,bool,fmt::v11::format_specs,fmt::v11::sign) mov [rsp+358h+var_10], rax jmp loc_C3F5C loc_C3B25: lea rdi, [rsp+358h+var_28]; this call _ZNK3fmt3v1111basic_specs5alignEv; fmt::v11::basic_specs::align(void) cmp eax, 4 jnz short loc_C3BAC cmp [rsp+358h+var_3C], 0 jz short loc_C3BAC mov edi, [rsp+358h+var_3C] call _ZN3fmt3v116detail7getsignIcEET_NS0_4signE; fmt::v11::detail::getsign<char>(fmt::v11::sign) mov [rsp+358h+var_315], al lea rdi, [rsp+358h+var_18] xor esi, esi call _ZN3fmt3v1114basic_appenderIcEppEi; fmt::v11::basic_appender<char>::operator++(int) mov [rsp+358h+var_60], rax lea rdi, [rsp+358h+var_60] call _ZN3fmt3v1114basic_appenderIcEdeEv; fmt::v11::basic_appender<char>::operator*(void) mov rdi, rax mov al, [rsp+358h+var_315] movsx esi, al call _ZN3fmt3v1114basic_appenderIcEaSEc; fmt::v11::basic_appender<char>::operator=(char) mov [rsp+358h+var_3C], 0 cmp dword ptr [rsp+358h+var_28+8], 0 jz short loc_C3BAA mov eax, dword ptr [rsp+358h+var_28+8] add eax, 0FFFFFFFFh mov dword ptr [rsp+358h+var_28+8], eax loc_C3BAA: jmp short $+2 loc_C3BAC: mov [rsp+358h+var_64], 10h mov eax, dword ptr [rsp+358h+var_28+0Ch] mov [rsp+358h+var_68], eax cmp [rsp+358h+var_68], 0 jge loc_C3C6F lea rdi, [rsp+358h+var_28]; this call _ZNK3fmt3v1111basic_specs4typeEv; fmt::v11::basic_specs::type(void) cmp al, 0 jz short loc_C3BF1 mov [rsp+358h+var_68], 6 jmp short loc_C3C6D loc_C3BF1: movsd xmm0, [rsp+358h+var_38] call _ZN3fmt3v116detail9dragonbox10to_decimalIdEENS2_10decimal_fpIT_EES5_; fmt::v11::detail::dragonbox::to_decimal<double>(double) mov [rsp+358h+var_78], rax mov [rsp+358h+var_70], edx mov rax, [rsp+358h+var_18] mov [rsp+358h+var_80], rax mov ecx, [rsp+358h+var_3C] mov rax, [rsp+358h+var_30] mov [rsp+358h+var_88], rax mov rdi, [rsp+358h+var_80] mov r9, [rsp+358h+var_88] lea rsi, [rsp+358h+var_78] lea rdx, [rsp+358h+var_28] mov r8d, 10h call _ZN3fmt3v116detail11write_floatIcNS0_14basic_appenderIcEENS1_9dragonbox10decimal_fpIdEEEET0_S8_RKT1_RKNS0_12format_specsENS0_4signEiNS1_10locale_refE; fmt::v11::detail::write_float<char,fmt::v11::basic_appender<char>,fmt::v11::detail::dragonbox::decimal_fp<double>>(fmt::v11::basic_appender<char>,fmt::v11::detail::dragonbox::decimal_fp<double> const&,fmt::v11::format_specs const&,fmt::v11::sign,int,fmt::v11::detail::locale_ref) mov [rsp+358h+var_10], rax jmp loc_C3F5C loc_C3C6D: jmp short $+2 loc_C3C6F: lea rdi, [rsp+358h+var_2A0] lea rsi, [rsp+358h+var_2A1]; char * call _ZN3fmt3v1119basic_memory_bufferIcLm500ENS0_6detail9allocatorIcEEEC2ERKS4_; fmt::v11::basic_memory_buffer<char,500ul,fmt::v11::detail::allocator<char>>::basic_memory_buffer(fmt::v11::detail::allocator<char> const&) lea rdi, [rsp+358h+var_28]; this call _ZNK3fmt3v1111basic_specs4typeEv; fmt::v11::basic_specs::type(void) cmp al, 4 jnz loc_C3DB8 cmp [rsp+358h+var_3C], 0 jz short loc_C3CF5 mov edi, [rsp+358h+var_3C] call _ZN3fmt3v116detail7getsignIcEET_NS0_4signE; fmt::v11::detail::getsign<char>(fmt::v11::sign) mov [rsp+358h+var_2A2], al lea rdi, [rsp+358h+var_2A0] lea rsi, [rsp+358h+var_2A2] call _ZN3fmt3v116detail6bufferIcE9push_backERKc; fmt::v11::detail::buffer<char>::push_back(char const&) jmp short $+2 loc_C3CCD: jmp short loc_C3CF5 mov rcx, rax mov eax, edx mov [rsp+arg_A0], rcx mov [rsp+arg_9C], eax lea rdi, [rsp+arg_B0] call _ZN3fmt3v1119basic_memory_bufferIcLm500ENS0_6detail9allocatorIcEEED2Ev; fmt::v11::basic_memory_buffer<char,500ul,fmt::v11::detail::allocator<char>>::~basic_memory_buffer() jmp loc_C3F6C loc_C3CF5: movsd xmm0, [rsp+358h+var_38] call _ZN3fmt3v116detail13convert_floatIdEENSt11conditionalIXoosr3std7is_sameIT_fEE5valueeqcl8num_bitsIS4_EEclL_ZNS1_8num_bitsIdEEivEEEdS4_E4typeES4_ movups xmm1, [rsp+358h+var_28] movaps [rsp+358h+var_2C8], xmm1 mov rdi, qword ptr [rsp+358h+var_2C8] mov rsi, qword ptr [rsp+358h+var_2C8+8] lea rdx, [rsp+358h+var_2A0] call _ZN3fmt3v116detail15format_hexfloatIdTnNSt9enable_ifIXntsr16is_double_doubleIT_EE5valueEiE4typeELi0EEEvS4_NS0_12format_specsERNS1_6bufferIcEE jmp short $+2 loc_C3D32: mov rax, [rsp+358h+var_18] mov [rsp+358h+var_2D0], rax lea rdi, [rsp+358h+var_2A0] mov [rsp+358h+var_330], rdi call _ZN3fmt3v116detail6bufferIcE4dataEv; fmt::v11::detail::buffer<char>::data(void) mov rdi, [rsp+358h+var_330] mov [rsp+358h+var_328], rax call _ZNK3fmt3v116detail6bufferIcE4sizeEv; fmt::v11::detail::buffer<char>::size(void) mov rsi, [rsp+358h+var_328] mov rdx, rax lea rdi, [rsp+358h+var_2E0] call _ZN3fmt3v1117basic_string_viewIcEC2EPKcm; fmt::v11::basic_string_view<char>::basic_string_view(char const*,ulong) mov rdi, [rsp+358h+var_2D0] mov rsi, [rsp+358h+var_2E0] mov rdx, [rsp+358h+var_2D8] lea rcx, [rsp+358h+var_28] call _ZN3fmt3v116detail11write_bytesIcLNS0_5alignE2ENS0_14basic_appenderIcEEEET1_S6_NS0_17basic_string_viewIcEERKNS0_12format_specsE; fmt::v11::detail::write_bytes<char,(fmt::v11::align)2,fmt::v11::basic_appender<char>>(fmt::v11::basic_appender<char>,fmt::v11::basic_string_view<char>,fmt::v11::format_specs const&) mov [rsp+358h+var_320], rax jmp short $+2 loc_C3D9E: mov rax, [rsp+358h+var_320] mov [rsp+358h+var_10], rax mov [rsp+358h+var_2E4], 1 jmp loc_C3F4F loc_C3DB8: lea rdi, [rsp+358h+var_28]; this call _ZNK3fmt3v1111basic_specs4typeEv; fmt::v11::basic_specs::type(void) cmp al, 1 jnz short loc_C3E1B mov eax, [rsp+358h+var_68] mov [rsp+358h+var_334], eax call _ZN3fmt3v116detail9max_valueIiEET_v; fmt::v11::detail::max_value<int>(void) mov ecx, eax mov eax, [rsp+358h+var_334] cmp eax, ecx jnz short loc_C3DF1 lea rdi, aNumberIsTooBig; "number is too big" call _ZN3fmt3v1112report_errorEPKc; fmt::v11::report_error(char const*) jmp short $+2 loc_C3DF1: mov eax, [rsp+358h+var_68] add eax, 1 mov [rsp+358h+var_68], eax cmp dword ptr [rsp+358h+var_28+0Ch], 0 jz short loc_C3E19 lea rdi, [rsp+358h+var_28]; this call _ZN3fmt3v1111basic_specs7set_altEv; fmt::v11::basic_specs::set_alt(void) loc_C3E19: jmp short loc_C3E5E loc_C3E1B: lea rdi, [rsp+358h+var_28]; this call _ZNK3fmt3v1111basic_specs4typeEv; fmt::v11::basic_specs::type(void) cmp al, 2 jnz short loc_C3E45 cmp dword ptr [rsp+358h+var_28+0Ch], 0 jz short loc_C3E43 lea rdi, [rsp+358h+var_28]; this call _ZN3fmt3v1111basic_specs7set_altEv; fmt::v11::basic_specs::set_alt(void) loc_C3E43: jmp short loc_C3E5C loc_C3E45: cmp [rsp+358h+var_68], 0 jnz short loc_C3E5A mov [rsp+358h+var_68], 1 loc_C3E5A: jmp short $+2 loc_C3E5C: jmp short $+2 loc_C3E5E: movsd xmm0, [rsp+358h+var_38] call _ZN3fmt3v116detail13convert_floatIdEENSt11conditionalIXoosr3std7is_sameIT_fEE5valueeqcl8num_bitsIS4_EEclL_ZNS1_8num_bitsIdEEivEEEdS4_E4typeES4_ movsd [rsp+358h+var_348], xmm0 mov eax, [rsp+358h+var_68] mov [rsp+358h+var_33C], eax lea rdi, [rsp+358h+var_2E9] call _ZNKSt17integral_constantIbLb0EEcvbEv; std::integral_constant<bool,false>::operator bool(void) movsd xmm0, [rsp+358h+var_348] mov edi, [rsp+358h+var_33C] movzx edx, al lea rsi, [rsp+358h+var_28] lea rcx, [rsp+358h+var_2A0] call _ZN3fmt3v116detail12format_floatIdEEiT_iRKNS0_12format_specsEbRNS1_6bufferIcEE; fmt::v11::detail::format_float<double>(double,int,fmt::v11::format_specs const&,bool,fmt::v11::detail::buffer<char> &) mov [rsp+358h+var_338], eax jmp short $+2 loc_C3EAF: mov eax, [rsp+358h+var_338] mov [rsp+358h+var_2E8], eax mov eax, [rsp+358h+var_68] mov dword ptr [rsp+358h+var_28+0Ch], eax lea rdi, [rsp+358h+var_2A0] mov [rsp+358h+var_358], rdi call _ZN3fmt3v116detail6bufferIcE4dataEv; fmt::v11::detail::buffer<char>::data(void) mov rdi, [rsp+358h+var_358] mov [rsp+358h+var_300], rax call _ZNK3fmt3v116detail6bufferIcE4sizeEv; fmt::v11::detail::buffer<char>::size(void) mov [rsp+358h+var_2F8], eax mov eax, [rsp+358h+var_2E8] mov [rsp+358h+var_2F4], eax mov rax, [rsp+358h+var_18] mov [rsp+358h+var_308], rax mov ecx, [rsp+358h+var_3C] mov rax, [rsp+358h+var_30] mov [rsp+358h+var_310], rax mov rdi, [rsp+358h+var_308] mov r9, [rsp+358h+var_310] lea rsi, [rsp+358h+var_300] lea rdx, [rsp+358h+var_28] mov r8d, 10h call _ZN3fmt3v116detail11write_floatIcNS0_14basic_appenderIcEENS1_14big_decimal_fpEEET0_S6_RKT1_RKNS0_12format_specsENS0_4signEiNS1_10locale_refE; fmt::v11::detail::write_float<char,fmt::v11::basic_appender<char>,fmt::v11::detail::big_decimal_fp>(fmt::v11::basic_appender<char>,fmt::v11::detail::big_decimal_fp const&,fmt::v11::format_specs const&,fmt::v11::sign,int,fmt::v11::detail::locale_ref) mov [rsp+358h+var_350], rax jmp short $+2 loc_C3F3A: mov rax, [rsp+358h+var_350] mov [rsp+358h+var_10], rax mov [rsp+358h+var_2E4], 1 loc_C3F4F: lea rdi, [rsp+358h+var_2A0] call _ZN3fmt3v1119basic_memory_bufferIcLm500ENS0_6detail9allocatorIcEEED2Ev; fmt::v11::basic_memory_buffer<char,500ul,fmt::v11::detail::allocator<char>>::~basic_memory_buffer() loc_C3F5C: mov rax, [rsp+358h+var_10] add rsp, 358h retn loc_C3F6C: mov rdi, [rsp+arg_A0] call __Unwind_Resume
long long fmt::v11::detail::write_float<char,fmt::v11::basic_appender<char>,double>( long long a1, long long a2, long long a3, long long a4, double a5) { char v5; // al long long **v6; // rax int v7; // edx double v8; // xmm0_8 long long v9; // rax double v10; // xmm0_8 char v11; // al int v13; // [rsp+1Ch] [rbp-33Ch] int v14; // [rsp+24h] [rbp-334h] long long v15; // [rsp+30h] [rbp-328h] char v16; // [rsp+43h] [rbp-315h] int v17; // [rsp+44h] [rbp-314h] long long v18; // [rsp+58h] [rbp-300h] BYREF int v19; // [rsp+60h] [rbp-2F8h] int v20; // [rsp+64h] [rbp-2F4h] int v21; // [rsp+70h] [rbp-2E8h] int v22; // [rsp+74h] [rbp-2E4h] long long v23[2]; // [rsp+78h] [rbp-2E0h] BYREF long long v24; // [rsp+88h] [rbp-2D0h] __int128 v25; // [rsp+90h] [rbp-2C8h] char v26; // [rsp+B6h] [rbp-2A2h] BYREF char v27; // [rsp+B7h] [rbp-2A1h] BYREF long long v28[69]; // [rsp+B8h] [rbp-2A0h] BYREF long long v29; // [rsp+2E0h] [rbp-78h] BYREF int v30; // [rsp+2E8h] [rbp-70h] int v31; // [rsp+2F0h] [rbp-68h] int v32; // [rsp+2F4h] [rbp-64h] long long v33; // [rsp+2F8h] [rbp-60h] BYREF __int128 v34; // [rsp+300h] [rbp-58h] long long v35; // [rsp+310h] [rbp-48h] unsigned int v36; // [rsp+31Ch] [rbp-3Ch] double v37; // [rsp+320h] [rbp-38h] long long v38; // [rsp+328h] [rbp-30h] __int128 v39; // [rsp+330h] [rbp-28h] BYREF long long v40; // [rsp+340h] [rbp-18h] BYREF long long v41; // [rsp+348h] [rbp-10h] double v42; // [rsp+350h] [rbp-8h] v40 = a1; *(_QWORD *)&v39 = a2; *((_QWORD *)&v39 + 1) = a3; v38 = a4; v37 = a5; v42 = a5; if ( std::signbit((__m128)*(unsigned long long *)&a5) ) v17 = 1; else v17 = fmt::v11::basic_specs::sign((fmt::v11::basic_specs *)&v39); v36 = v17; if ( (ZN3fmt3v116detail8isfiniteIdTnNSt9enable_ifIXaasr3std17is_floating_pointIT_EE5valuesr12has_isfiniteIS4_EE5valueEiE4typeELi0EEEbS4_(v37) & 1) != 0 ) { if ( (unsigned int)fmt::v11::basic_specs::align((fmt::v11::basic_specs *)&v39) == 4 ) { if ( v36 ) { v16 = fmt::v11::detail::getsign<char>(v36); v33 = fmt::v11::basic_appender<char>::operator++((long long)&v40); v6 = (long long **)fmt::v11::basic_appender<char>::operator*((long long)&v33); LODWORD(a2) = v16; fmt::v11::basic_appender<char>::operator=(v6, v16); v36 = 0; if ( DWORD2(v39) ) --DWORD2(v39); } } v32 = 16; v31 = HIDWORD(v39); if ( v39 < 0 ) { if ( !(unsigned __int8)fmt::v11::basic_specs::type((fmt::v11::basic_specs *)&v39) ) { v29 = fmt::v11::detail::dragonbox::to_decimal<double>(v37, (long long)&v39, a2); v30 = v7; v28[68] = v40; v28[67] = v38; return fmt::v11::detail::write_float<char,fmt::v11::basic_appender<char>,fmt::v11::detail::dragonbox::decimal_fp<double>>( v40, &v29, &v39, v36, 16LL, v38); } v31 = 6; } fmt::v11::basic_memory_buffer<char,500ul,fmt::v11::detail::allocator<char>>::basic_memory_buffer((long long)v28); if ( (unsigned __int8)fmt::v11::basic_specs::type((fmt::v11::basic_specs *)&v39) == 4 ) { if ( v36 ) { v26 = fmt::v11::detail::getsign<char>(v36); fmt::v11::detail::buffer<char>::push_back(v28, &v26); } v8 = v37; fmt::v11::detail::convert_float<double>(); v25 = v39; ZN3fmt3v116detail15format_hexfloatIdTnNSt9enable_ifIXntsr16is_double_doubleIT_EE5valueEiE4typeELi0EEEvS4_NS0_12format_specsERNS1_6bufferIcEE( v39, *((long long *)&v39 + 1), (long long)v28, v8); v24 = v40; v15 = fmt::v11::detail::buffer<char>::data((long long)v28); v9 = fmt::v11::detail::buffer<char>::size((long long)v28); fmt::v11::basic_string_view<char>::basic_string_view(v23, v15, v9); v41 = fmt::v11::detail::write_bytes<char,(fmt::v11::align)2,fmt::v11::basic_appender<char>>( v24, v23[0], v23[1], (long long)&v39); v22 = 1; } else { if ( (unsigned __int8)fmt::v11::basic_specs::type((fmt::v11::basic_specs *)&v39) == 1 ) { v14 = v31; if ( v14 == (unsigned int)fmt::v11::detail::max_value<int>((long long)&v39) ) fmt::v11::report_error((fmt::v11 *)"number is too big", &v27); ++v31; if ( HIDWORD(v39) ) fmt::v11::basic_specs::set_alt((fmt::v11::basic_specs *)&v39); } else if ( (unsigned __int8)fmt::v11::basic_specs::type((fmt::v11::basic_specs *)&v39) == 2 ) { if ( HIDWORD(v39) ) fmt::v11::basic_specs::set_alt((fmt::v11::basic_specs *)&v39); } else if ( !v31 ) { v31 = 1; } v10 = v37; fmt::v11::detail::convert_float<double>(); v13 = v31; v11 = std::integral_constant<bool,false>::operator bool(); v21 = fmt::v11::detail::format_float<double>(v13, (fmt::v11::basic_specs *)&v39, v11, v28, v10); HIDWORD(v39) = v31; v18 = fmt::v11::detail::buffer<char>::data((long long)v28); v19 = fmt::v11::detail::buffer<char>::size((long long)v28); v20 = v21; v41 = fmt::v11::detail::write_float<char,fmt::v11::basic_appender<char>,fmt::v11::detail::big_decimal_fp>( v40, &v18, &v39, v36, 16LL, v38); v22 = 1; } fmt::v11::basic_memory_buffer<char,500ul,fmt::v11::detail::allocator<char>>::~basic_memory_buffer((long long)v28); } else { v35 = v40; v5 = fmt::v11::detail::isnan<double>(v37); v34 = v39; return fmt::v11::detail::write_nonfinite<char,fmt::v11::basic_appender<char>>( v35, v5 & 1, v39, *((long long *)&v39 + 1), v36); } return v41; }
write_float<char,fmt::v11::basic_appender<char>,double>: SUB RSP,0x358 MOV qword ptr [RSP + 0x340],RDI MOV qword ptr [RSP + 0x330],RSI MOV qword ptr [RSP + 0x338],RDX MOV qword ptr [RSP + 0x328],RCX MOVSD qword ptr [RSP + 0x320],XMM0 MOVSD XMM0,qword ptr [RSP + 0x320] MOVSD qword ptr [RSP + 0x350],XMM0 MOVSD XMM0,qword ptr [RSP + 0x350] CALL 0x0016c2b0 TEST AL,0x1 JNZ 0x001c3a76 JMP 0x001c3a81 LAB_001c3a76: MOV EAX,0x1 MOV dword ptr [RSP + 0x44],EAX JMP 0x001c3a92 LAB_001c3a81: LEA RDI,[RSP + 0x330] CALL 0x001ae670 MOV dword ptr [RSP + 0x44],EAX LAB_001c3a92: MOV EAX,dword ptr [RSP + 0x44] MOV dword ptr [RSP + 0x31c],EAX MOVSD XMM0,qword ptr [RSP + 0x320] CALL 0x001c3fc0 TEST AL,0x1 JNZ 0x001c3b25 MOV RAX,qword ptr [RSP + 0x340] MOV qword ptr [RSP + 0x310],RAX MOVSD XMM0,qword ptr [RSP + 0x320] CALL 0x001c3ff0 MOV RCX,qword ptr [RSP + 0x330] MOV qword ptr [RSP + 0x300],RCX MOV RCX,qword ptr [RSP + 0x338] MOV qword ptr [RSP + 0x308],RCX MOV R8D,dword ptr [RSP + 0x31c] MOV RDI,qword ptr [RSP + 0x310] MOV RDX,qword ptr [RSP + 0x300] MOV RCX,qword ptr [RSP + 0x308] MOVZX ESI,AL AND ESI,0x1 CALL 0x001b00e0 MOV qword ptr [RSP + 0x348],RAX JMP 0x001c3f5c LAB_001c3b25: LEA RDI,[RSP + 0x330] CALL 0x001aed50 CMP EAX,0x4 JNZ 0x001c3bac CMP dword ptr [RSP + 0x31c],0x0 JZ 0x001c3bac MOV EDI,dword ptr [RSP + 0x31c] CALL 0x001b0670 MOV byte ptr [RSP + 0x43],AL LEA RDI,[RSP + 0x340] XOR ESI,ESI CALL 0x001ac9d0 MOV qword ptr [RSP + 0x2f8],RAX LEA RDI,[RSP + 0x2f8] CALL 0x001ac9f0 MOV RDI,RAX MOV AL,byte ptr [RSP + 0x43] MOVSX ESI,AL CALL 0x001aca00 MOV dword ptr [RSP + 0x31c],0x0 CMP dword ptr [RSP + 0x338],0x0 JZ 0x001c3baa MOV EAX,dword ptr [RSP + 0x338] ADD EAX,-0x1 MOV dword ptr [RSP + 0x338],EAX LAB_001c3baa: JMP 0x001c3bac LAB_001c3bac: MOV dword ptr [RSP + 0x2f4],0x10 MOV EAX,dword ptr [RSP + 0x33c] MOV dword ptr [RSP + 0x2f0],EAX CMP dword ptr [RSP + 0x2f0],0x0 JGE 0x001c3c6f LEA RDI,[RSP + 0x330] CALL 0x001ae030 CMP AL,0x0 JZ 0x001c3bf1 MOV dword ptr [RSP + 0x2f0],0x6 JMP 0x001c3c6d LAB_001c3bf1: MOVSD XMM0,qword ptr [RSP + 0x320] CALL 0x001a9b40 MOV qword ptr [RSP + 0x2e0],RAX MOV dword ptr [RSP + 0x2e8],EDX MOV RAX,qword ptr [RSP + 0x340] MOV qword ptr [RSP + 0x2d8],RAX MOV ECX,dword ptr [RSP + 0x31c] MOV RAX,qword ptr [RSP + 0x328] MOV qword ptr [RSP + 0x2d0],RAX MOV RDI,qword ptr [RSP + 0x2d8] MOV R9,qword ptr [RSP + 0x2d0] LEA RSI,[RSP + 0x2e0] LEA RDX,[RSP + 0x330] MOV R8D,0x10 CALL 0x001b3720 MOV qword ptr [RSP + 0x348],RAX JMP 0x001c3f5c LAB_001c3c6d: JMP 0x001c3c6f LAB_001c3c6f: LEA RDI,[RSP + 0xb8] LEA RSI,[RSP + 0xb7] CALL 0x001a6b50 LEA RDI,[RSP + 0x330] CALL 0x001ae030 CMP AL,0x4 JNZ 0x001c3db8 CMP dword ptr [RSP + 0x31c],0x0 JZ 0x001c3cf5 MOV EDI,dword ptr [RSP + 0x31c] CALL 0x001b0670 MOV byte ptr [RSP + 0xb6],AL LAB_001c3cb6: LEA RDI,[RSP + 0xb8] LEA RSI,[RSP + 0xb6] CALL 0x001a8d90 JMP 0x001c3ccd LAB_001c3ccd: JMP 0x001c3cf5 LAB_001c3cf5: MOVSD XMM0,qword ptr [RSP + 0x320] CALL 0x001c3500 MOVUPS XMM1,xmmword ptr [RSP + 0x330] MOVAPS xmmword ptr [RSP + 0x90],XMM1 MOV RDI,qword ptr [RSP + 0x90] MOV RSI,qword ptr [RSP + 0x98] LEA RDX,[RSP + 0xb8] CALL 0x001c2300 JMP 0x001c3d32 LAB_001c3d32: MOV RAX,qword ptr [RSP + 0x340] MOV qword ptr [RSP + 0x88],RAX LEA RDI,[RSP + 0xb8] MOV qword ptr [RSP + 0x28],RDI CALL 0x001a6ba0 MOV RDI,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x30],RAX CALL 0x001a6b40 MOV RSI,qword ptr [RSP + 0x30] MOV RDX,RAX LEA RDI,[RSP + 0x78] CALL 0x001753a0 MOV RDI,qword ptr [RSP + 0x88] MOV RSI,qword ptr [RSP + 0x78] MOV RDX,qword ptr [RSP + 0x80] LEA RCX,[RSP + 0x330] CALL 0x001b65a0 MOV qword ptr [RSP + 0x38],RAX JMP 0x001c3d9e LAB_001c3d9e: MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x348],RAX MOV dword ptr [RSP + 0x74],0x1 JMP 0x001c3f4f LAB_001c3db8: LEA RDI,[RSP + 0x330] CALL 0x001ae030 CMP AL,0x1 JNZ 0x001c3e1b MOV EAX,dword ptr [RSP + 0x2f0] MOV dword ptr [RSP + 0x24],EAX CALL 0x001b1e50 MOV ECX,EAX MOV EAX,dword ptr [RSP + 0x24] CMP EAX,ECX JNZ 0x001c3df1 LEA RDI,[0x6d0eba] CALL 0x001a5500 LAB_001c3df1: MOV EAX,dword ptr [RSP + 0x2f0] ADD EAX,0x1 MOV dword ptr [RSP + 0x2f0],EAX CMP dword ptr [RSP + 0x33c],0x0 JZ 0x001c3e19 LEA RDI,[RSP + 0x330] CALL 0x001b6610 LAB_001c3e19: JMP 0x001c3e5e LAB_001c3e1b: LEA RDI,[RSP + 0x330] CALL 0x001ae030 CMP AL,0x2 JNZ 0x001c3e45 CMP dword ptr [RSP + 0x33c],0x0 JZ 0x001c3e43 LEA RDI,[RSP + 0x330] CALL 0x001b6610 LAB_001c3e43: JMP 0x001c3e5c LAB_001c3e45: CMP dword ptr [RSP + 0x2f0],0x0 JNZ 0x001c3e5a MOV dword ptr [RSP + 0x2f0],0x1 LAB_001c3e5a: JMP 0x001c3e5c LAB_001c3e5c: JMP 0x001c3e5e LAB_001c3e5e: MOVSD XMM0,qword ptr [RSP + 0x320] CALL 0x001c3500 MOVSD qword ptr [RSP + 0x10],XMM0 MOV EAX,dword ptr [RSP + 0x2f0] MOV dword ptr [RSP + 0x1c],EAX LEA RDI,[RSP + 0x6f] CALL 0x001b6a40 MOVSD XMM0,qword ptr [RSP + 0x10] MOV EDI,dword ptr [RSP + 0x1c] MOVZX EDX,AL LEA RSI,[RSP + 0x330] LEA RCX,[RSP + 0xb8] CALL 0x001c2780 MOV dword ptr [RSP + 0x20],EAX JMP 0x001c3eaf LAB_001c3eaf: MOV EAX,dword ptr [RSP + 0x20] MOV dword ptr [RSP + 0x70],EAX MOV EAX,dword ptr [RSP + 0x2f0] MOV dword ptr [RSP + 0x33c],EAX LEA RDI,[RSP + 0xb8] MOV qword ptr [RSP],RDI CALL 0x001a6ba0 MOV RDI,qword ptr [RSP] MOV qword ptr [RSP + 0x58],RAX CALL 0x001a6b40 MOV dword ptr [RSP + 0x60],EAX MOV EAX,dword ptr [RSP + 0x70] MOV dword ptr [RSP + 0x64],EAX MOV RAX,qword ptr [RSP + 0x340] MOV qword ptr [RSP + 0x50],RAX MOV ECX,dword ptr [RSP + 0x31c] MOV RAX,qword ptr [RSP + 0x328] MOV qword ptr [RSP + 0x48],RAX MOV RDI,qword ptr [RSP + 0x50] MOV R9,qword ptr [RSP + 0x48] LEA RSI,[RSP + 0x58] LEA RDX,[RSP + 0x330] MOV R8D,0x10 CALL 0x001b6a50 LAB_001c3f33: MOV qword ptr [RSP + 0x8],RAX JMP 0x001c3f3a LAB_001c3f3a: MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x348],RAX MOV dword ptr [RSP + 0x74],0x1 LAB_001c3f4f: LEA RDI,[RSP + 0xb8] CALL 0x001a6bb0 LAB_001c3f5c: MOV RAX,qword ptr [RSP + 0x348] ADD RSP,0x358 RET
/* fmt::v11::basic_appender<char> fmt::v11::detail::write_float<char, fmt::v11::basic_appender<char>, double>(fmt::v11::basic_appender<char>, double, fmt::v11::format_specs, fmt::v11::detail::locale_ref) */ int8 __thiscall fmt::v11::detail::write_float<char,fmt::v11::basic_appender<char>,double> (double param_1,detail *this,int8 param_3,long param_4,int8 param_5) { bool bVar1; char cVar2; int iVar3; int iVar4; ulong uVar5; basic_appender<char> *this_00; int8 uVar6; char *pcVar7; double dVar8; int local_314; int8 local_300; int4 local_2f8; int local_2f4; integral_constant local_2e9; int local_2e8; int4 local_2e4; int8 local_2e0; int8 local_2d8; detail *local_2d0; int4 local_2c8; int4 uStack_2c4; int4 uStack_2c0; int4 uStack_2bc; char local_2a2 [2]; allocator local_2a0 [536]; int8 local_88; detail *local_80; int1 local_78 [12]; int local_68; int4 local_64; int8 local_60; int8 local_58; long local_50; detail *local_48; int local_3c; double local_38; int8 local_30; int8 local_28; int8 uStack_20; detail *local_18; int8 local_10; double local_8; local_38 = param_1; local_30 = param_5; local_28 = param_3; uStack_20 = param_4; local_18 = this; local_8 = param_1; uVar5 = std::signbit(param_1); if ((uVar5 & 1) == 0) { local_314 = basic_specs::sign((basic_specs *)&local_28); } else { local_314 = 1; } local_3c = local_314; uVar5 = _ZN3fmt3v116detail8isfiniteIdTnNSt9enable_ifIXaasr3std17is_floating_pointIT_EE5valuesr12has_isfiniteIS4_EE5valueEiE4typeELi0EEEbS4_ (local_38); if ((uVar5 & 1) == 0) { local_48 = local_18; bVar1 = isnan<double>(local_38); local_58 = local_28; local_50 = uStack_20; local_10 = write_nonfinite<char,fmt::v11::basic_appender<char>> (local_48,bVar1,local_28,uStack_20,local_3c); } else { iVar3 = basic_specs::align((basic_specs *)&local_28); if ((iVar3 == 4) && (local_3c != 0)) { cVar2 = getsign<char>(local_3c); local_60 = basic_appender<char>::operator++((basic_appender<char> *)&local_18,0); this_00 = (basic_appender<char> *) basic_appender<char>::operator*((basic_appender<char> *)&local_60); basic_appender<char>::operator=(this_00,cVar2); local_3c = 0; if ((int)uStack_20 != 0) { uStack_20 = CONCAT44(uStack_20._4_4_,(int)uStack_20 + -1); } } local_64 = 0x10; local_68 = uStack_20._4_4_; if (uStack_20 < 0) { cVar2 = basic_specs::type((basic_specs *)&local_28); if (cVar2 == '\0') { local_78 = dragonbox::to_decimal<double>(local_38); local_80 = local_18; local_88 = local_30; uVar6 = write_float<char,fmt::v11::basic_appender<char>,fmt::v11::detail::dragonbox::decimal_fp<double>> (local_18,local_78,&local_28,local_3c,0x10,local_30); return uVar6; } local_68 = 6; } basic_memory_buffer<char,500ul,fmt::v11::detail::allocator<char>>::basic_memory_buffer (local_2a0); cVar2 = basic_specs::type((basic_specs *)&local_28); if (cVar2 == '\x04') { if (local_3c != 0) { local_2a2[0] = getsign<char>(local_3c); /* try { // try from 001c3cb6 to 001c3f32 has its CatchHandler @ 001c3ccf */ buffer<char>::push_back((buffer<char> *)local_2a0,local_2a2); } convert_float<double>(local_38); local_2c8 = (int4)local_28; uStack_2c4 = local_28._4_4_; uStack_2c0 = (int)uStack_20; uStack_2bc = uStack_20._4_4_; _ZN3fmt3v116detail15format_hexfloatIdTnNSt9enable_ifIXntsr16is_double_doubleIT_EE5valueEiE4typeELi0EEEvS4_NS0_12format_specsERNS1_6bufferIcEE (local_28,uStack_20,local_2a0); local_2d0 = local_18; pcVar7 = (char *)buffer<char>::data((buffer<char> *)local_2a0); uVar5 = buffer<char>::size((buffer<char> *)local_2a0); basic_string_view<char>::basic_string_view((basic_string_view<char> *)&local_2e0,pcVar7,uVar5) ; local_10 = write_bytes<char,(fmt::v11::align)2,fmt::v11::basic_appender<char>> (local_2d0,local_2e0,local_2d8,&local_28); } else { cVar2 = basic_specs::type((basic_specs *)&local_28); iVar3 = local_68; if (cVar2 == '\x01') { iVar4 = max_value<int>(); if (iVar3 == iVar4) { /* WARNING: Subroutine does not return */ report_error("number is too big"); } local_68 = local_68 + 1; if (uStack_20._4_4_ != 0) { basic_specs::set_alt((basic_specs *)&local_28); } } else { cVar2 = basic_specs::type((basic_specs *)&local_28); if (cVar2 == '\x02') { if (uStack_20._4_4_ != 0) { basic_specs::set_alt((basic_specs *)&local_28); } } else if (local_68 == 0) { local_68 = 1; } } dVar8 = (double)convert_float<double>(local_38); iVar3 = local_68; bVar1 = std::integral_constant::operator_cast_to_bool(&local_2e9); local_2e8 = format_float<double> (dVar8,iVar3,(format_specs *)&local_28,bVar1,(buffer *)local_2a0); uStack_20 = CONCAT44(local_68,(int)uStack_20); local_300 = buffer<char>::data((buffer<char> *)local_2a0); local_2f8 = buffer<char>::size((buffer<char> *)local_2a0); local_2f4 = local_2e8; local_10 = write_float<char,fmt::v11::basic_appender<char>,fmt::v11::detail::big_decimal_fp> (local_18,&local_300,&local_28,local_3c,0x10,local_30); } local_2e4 = 1; basic_memory_buffer<char,500ul,fmt::v11::detail::allocator<char>>::~basic_memory_buffer ((basic_memory_buffer<char,500ul,fmt::v11::detail::allocator<char>> *)local_2a0); } return local_10; }
19,428
httplib::ThreadPool::enqueue(std::function<void ()>)
llama.cpp/examples/server/httplib.h
bool enqueue(std::function<void()> fn) override { { std::unique_lock<std::mutex> lock(mutex_); if (max_queued_requests_ > 0 && jobs_.size() >= max_queued_requests_) { return false; } jobs_.push_back(std::move(fn)); } cond_.notify_one(); return true; }
O3
c
httplib::ThreadPool::enqueue(std::function<void ()>): pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %r14 movq %rdi, %rbx leaq 0x78(%rdi), %rax leaq 0x8(%rsp), %r15 movq %rax, (%r15) movb $0x0, 0x8(%r15) movq %r15, %rdi callq 0x4cad6 movb $0x1, 0x8(%r15) movq 0x30(%rbx), %r15 movq 0x40(%rbx), %r12 decq %r12 cmpq %r15, %r12 jb 0x4c6ca leaq 0x20(%rbx), %rdi movq %rdi, %rsi movq %r14, %rdx callq 0x4cc84 leaq 0x8(%rsp), %rdi callq 0x4cac0 addq $0x48, %rbx movq %rbx, %rdi callq 0x25b50 jmp 0x4c6d4 leaq 0x8(%rsp), %rdi callq 0x4cac0 cmpq %r15, %r12 setae %al addq $0x18, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x4cac0 movq %rbx, %rdi callq 0x25ca0 nop
_ZN7httplib10ThreadPool7enqueueESt8functionIFvvEE: push r15 push r14 push r12 push rbx sub rsp, 18h mov r14, rsi mov rbx, rdi lea rax, [rdi+78h] lea r15, [rsp+38h+var_30] mov [r15], rax mov byte ptr [r15+8], 0 mov rdi, r15 call _ZNSt11unique_lockISt5mutexE4lockEv; std::unique_lock<std::mutex>::lock(void) mov byte ptr [r15+8], 1 mov r15, [rbx+30h] mov r12, [rbx+40h] dec r12 cmp r12, r15 jb short loc_4C6CA lea rdi, [rbx+20h] mov rsi, rdi mov rdx, r14 call _ZNSt7__cxx114listISt8functionIFvvEESaIS3_EE9_M_insertIJS3_EEEvSt14_List_iteratorIS3_EDpOT_; std::list<std::function<void ()(void)>>::_M_insert<std::function<void ()(void)>>(std::_List_iterator<std::function<void ()(void)>>,std::function<void ()(void)> &&) lea rdi, [rsp+38h+var_30] call _ZNSt11unique_lockISt5mutexED2Ev; std::unique_lock<std::mutex>::~unique_lock() add rbx, 48h ; 'H' mov rdi, rbx; this call __ZNSt18condition_variable10notify_oneEv; std::condition_variable::notify_one(void) jmp short loc_4C6D4 loc_4C6CA: lea rdi, [rsp+38h+var_30] call _ZNSt11unique_lockISt5mutexED2Ev; std::unique_lock<std::mutex>::~unique_lock() loc_4C6D4: cmp r12, r15 setnb al add rsp, 18h pop rbx pop r12 pop r14 pop r15 retn mov rbx, rax lea rdi, [rsp+arg_0] call _ZNSt11unique_lockISt5mutexED2Ev; std::unique_lock<std::mutex>::~unique_lock() mov rdi, rbx call __Unwind_Resume
bool httplib::ThreadPool::enqueue(_QWORD *a1, long long a2) { unsigned long long v2; // r15 unsigned long long v3; // r12 _QWORD *v5; // [rsp+8h] [rbp-30h] BYREF char v6; // [rsp+10h] [rbp-28h] v5 = a1 + 15; v6 = 0; std::unique_lock<std::mutex>::lock(&v5); v6 = 1; v2 = a1[6]; v3 = a1[8] - 1LL; if ( v3 < v2 ) { std::unique_lock<std::mutex>::~unique_lock(&v5); } else { std::list<std::function<void ()(void)>>::_M_insert<std::function<void ()(void)>>(a1 + 4, a1 + 4, a2); std::unique_lock<std::mutex>::~unique_lock(&v5); std::condition_variable::notify_one((std::condition_variable *)(a1 + 9)); } return v3 >= v2; }
enqueue: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R14,RSI MOV RBX,RDI LEA RAX,[RDI + 0x78] LEA R15,[RSP + 0x8] MOV qword ptr [R15],RAX MOV byte ptr [R15 + 0x8],0x0 MOV RDI,R15 CALL 0x0014cad6 MOV byte ptr [R15 + 0x8],0x1 MOV R15,qword ptr [RBX + 0x30] MOV R12,qword ptr [RBX + 0x40] DEC R12 CMP R12,R15 JC 0x0014c6ca LEA RDI,[RBX + 0x20] LAB_0014c6a7: MOV RSI,RDI MOV RDX,R14 CALL 0x0014cc84 LAB_0014c6b2: LEA RDI,[RSP + 0x8] CALL 0x0014cac0 ADD RBX,0x48 MOV RDI,RBX CALL 0x00125b50 JMP 0x0014c6d4 LAB_0014c6ca: LEA RDI,[RSP + 0x8] CALL 0x0014cac0 LAB_0014c6d4: CMP R12,R15 SETNC AL ADD RSP,0x18 POP RBX POP R12 POP R14 POP R15 RET
/* httplib::ThreadPool::enqueue(std::function<void ()>) */ bool __thiscall httplib::ThreadPool::enqueue(ThreadPool *this,int8 param_2) { ulong uVar1; long lVar2; ThreadPool *local_30; int1 local_28; local_30 = this + 0x78; local_28 = 0; std::unique_lock<std::mutex>::lock((unique_lock<std::mutex> *)&local_30); local_28 = 1; uVar1 = *(ulong *)(this + 0x30); lVar2 = *(long *)(this + 0x40); if (lVar2 - 1U < uVar1) { std::unique_lock<std::mutex>::~unique_lock((unique_lock<std::mutex> *)&local_30); } else { /* try { // try from 0014c6a7 to 0014c6b1 has its CatchHandler @ 0014c6e6 */ std::__cxx11::list<std::function<void()>,std::allocator<std::function<void()>>>:: _M_insert<std::function<void()>> ((list<std::function<void()>,std::allocator<std::function<void()>>> *)(this + 0x20), (list<std::function<void()>,std::allocator<std::function<void()>>> *)(this + 0x20), param_2); std::unique_lock<std::mutex>::~unique_lock((unique_lock<std::mutex> *)&local_30); std::condition_variable::notify_one(); } return uVar1 <= lVar2 - 1U; }
19,429
my_hash_sort_ucs2_nopad
eloqsql/strings/ctype-ucs2.c
static void my_hash_sort_ucs2_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 ((s < e) && (res=my_ucs2_uni(cs,&wc, (uchar *)s, (uchar*)e)) >0) { my_tosort_ucs2(uni_plane, &wc); MY_HASH_ADD_16(m1, m2, wc); s+=res; } *nr1= m1; *nr2= m2; }
O0
c
my_hash_sort_ucs2_nopad: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq -0x10(%rbp), %rax addq -0x18(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x8(%rbp), %rax movq 0x78(%rax), %rax movq %rax, -0x48(%rbp) movq -0x20(%rbp), %rax movq (%rax), %rax movq %rax, -0x50(%rbp) movq -0x28(%rbp), %rax movq (%rax), %rax movq %rax, -0x58(%rbp) movq -0x10(%rbp), %rcx xorl %eax, %eax cmpq -0x40(%rbp), %rcx movb %al, -0x59(%rbp) jae 0x6223a movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rdx movq -0x40(%rbp), %rcx leaq -0x30(%rbp), %rsi callq 0x5cb10 movl %eax, -0x34(%rbp) cmpl $0x0, %eax setg %al movb %al, -0x59(%rbp) movb -0x59(%rbp), %al testb $0x1, %al jne 0x62246 jmp 0x622e0 movq -0x48(%rbp), %rdi leaq -0x30(%rbp), %rsi callq 0x62300 jmp 0x62255 movq -0x50(%rbp), %rax andq $0x3f, %rax addq -0x58(%rbp), %rax movq -0x30(%rbp), %rcx andq $0xff, %rcx imulq %rcx, %rax movq -0x50(%rbp), %rcx shlq $0x8, %rcx addq %rcx, %rax xorq -0x50(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x58(%rbp), %rax addq $0x3, %rax movq %rax, -0x58(%rbp) jmp 0x62291 movq -0x50(%rbp), %rax andq $0x3f, %rax addq -0x58(%rbp), %rax movq -0x30(%rbp), %rcx shrq $0x8, %rcx imulq %rcx, %rax movq -0x50(%rbp), %rcx shlq $0x8, %rcx addq %rcx, %rax xorq -0x50(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x58(%rbp), %rax addq $0x3, %rax movq %rax, -0x58(%rbp) jmp 0x622ca movl -0x34(%rbp), %ecx movq -0x10(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x10(%rbp) jmp 0x6220a movq -0x50(%rbp), %rcx movq -0x20(%rbp), %rax movq %rcx, (%rax) movq -0x58(%rbp), %rcx movq -0x28(%rbp), %rax movq %rcx, (%rax) addq $0x60, %rsp popq %rbp retq nopl (%rax)
my_hash_sort_ucs2_nopad: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov rax, [rbp+var_10] add rax, [rbp+var_18] mov [rbp+var_40], rax mov rax, [rbp+var_8] mov rax, [rax+78h] mov [rbp+var_48], rax mov rax, [rbp+var_20] mov rax, [rax] mov [rbp+var_50], rax mov rax, [rbp+var_28] mov rax, [rax] mov [rbp+var_58], rax loc_6220A: mov rcx, [rbp+var_10] xor eax, eax cmp rcx, [rbp+var_40] mov [rbp+var_59], al jnb short loc_6223A mov rdi, [rbp+var_8] mov rdx, [rbp+var_10] mov rcx, [rbp+var_40] lea rsi, [rbp+var_30] call my_ucs2_uni mov [rbp+var_34], eax cmp eax, 0 setnle al mov [rbp+var_59], al loc_6223A: mov al, [rbp+var_59] test al, 1 jnz short loc_62246 jmp loc_622E0 loc_62246: mov rdi, [rbp+var_48] lea rsi, [rbp+var_30] call my_tosort_ucs2 jmp short $+2 loc_62255: mov rax, [rbp+var_50] and rax, 3Fh add rax, [rbp+var_58] mov rcx, [rbp+var_30] and rcx, 0FFh imul rax, rcx mov rcx, [rbp+var_50] shl rcx, 8 add rax, rcx xor rax, [rbp+var_50] mov [rbp+var_50], rax mov rax, [rbp+var_58] add rax, 3 mov [rbp+var_58], rax jmp short $+2 loc_62291: mov rax, [rbp+var_50] and rax, 3Fh add rax, [rbp+var_58] mov rcx, [rbp+var_30] shr rcx, 8 imul rax, rcx mov rcx, [rbp+var_50] shl rcx, 8 add rax, rcx xor rax, [rbp+var_50] mov [rbp+var_50], rax mov rax, [rbp+var_58] add rax, 3 mov [rbp+var_58], rax jmp short $+2 loc_622CA: mov ecx, [rbp+var_34] mov rax, [rbp+var_10] movsxd rcx, ecx add rax, rcx mov [rbp+var_10], rax jmp loc_6220A loc_622E0: mov rcx, [rbp+var_50] mov rax, [rbp+var_20] mov [rax], rcx mov rcx, [rbp+var_58] mov rax, [rbp+var_28] mov [rax], rcx add rsp, 60h pop rbp retn
_QWORD * my_hash_sort_ucs2_nopad( long long a1, unsigned long long a2, long long a3, unsigned long long *a4, _QWORD *a5, long long a6) { _QWORD *result; // rax bool v7; // [rsp+7h] [rbp-59h] long long v8; // [rsp+8h] [rbp-58h] long long v9; // [rsp+8h] [rbp-58h] unsigned long long v10; // [rsp+10h] [rbp-50h] long long v11; // [rsp+10h] [rbp-50h] long long v12; // [rsp+18h] [rbp-48h] unsigned long long v13; // [rsp+20h] [rbp-40h] int v14; // [rsp+2Ch] [rbp-34h] unsigned long long v15; // [rsp+30h] [rbp-30h] BYREF _QWORD *v16; // [rsp+38h] [rbp-28h] unsigned long long *v17; // [rsp+40h] [rbp-20h] long long v18; // [rsp+48h] [rbp-18h] unsigned long long v19; // [rsp+50h] [rbp-10h] long long v20; // [rsp+58h] [rbp-8h] v20 = a1; v19 = a2; v18 = a3; v17 = a4; v16 = a5; v13 = a3 + a2; v12 = *(_QWORD *)(a1 + 120); v10 = *a4; v8 = *a5; while ( 1 ) { v7 = 0; if ( v19 < v13 ) { v14 = my_ucs2_uni(v20, (long long)&v15, v19, v13, (long long)a5, a6); v7 = v14 > 0; } if ( !v7 ) break; my_tosort_ucs2(v12, &v15); v11 = v10 ^ ((v10 << 8) + (unsigned __int8)v15 * (v8 + (v10 & 0x3F))); v9 = v8 + 3; v10 = v11 ^ ((v11 << 8) + (v15 >> 8) * (v9 + (v11 & 0x3F))); v8 = v9 + 3; v19 += v14; } *v17 = v10; result = v16; *v16 = v8; return result; }
my_hash_sort_ucs2_nopad: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV RAX,qword ptr [RBP + -0x10] ADD RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x78] MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x58],RAX LAB_0016220a: MOV RCX,qword ptr [RBP + -0x10] XOR EAX,EAX CMP RCX,qword ptr [RBP + -0x40] MOV byte ptr [RBP + -0x59],AL JNC 0x0016223a MOV RDI,qword ptr [RBP + -0x8] MOV RDX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x40] LEA RSI,[RBP + -0x30] CALL 0x0015cb10 MOV dword ptr [RBP + -0x34],EAX CMP EAX,0x0 SETG AL MOV byte ptr [RBP + -0x59],AL LAB_0016223a: MOV AL,byte ptr [RBP + -0x59] TEST AL,0x1 JNZ 0x00162246 JMP 0x001622e0 LAB_00162246: MOV RDI,qword ptr [RBP + -0x48] LEA RSI,[RBP + -0x30] CALL 0x00162300 JMP 0x00162255 LAB_00162255: MOV RAX,qword ptr [RBP + -0x50] AND RAX,0x3f ADD RAX,qword ptr [RBP + -0x58] MOV RCX,qword ptr [RBP + -0x30] AND RCX,0xff IMUL RAX,RCX MOV RCX,qword ptr [RBP + -0x50] SHL RCX,0x8 ADD RAX,RCX XOR RAX,qword ptr [RBP + -0x50] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x58] ADD RAX,0x3 MOV qword ptr [RBP + -0x58],RAX JMP 0x00162291 LAB_00162291: MOV RAX,qword ptr [RBP + -0x50] AND RAX,0x3f ADD RAX,qword ptr [RBP + -0x58] MOV RCX,qword ptr [RBP + -0x30] SHR RCX,0x8 IMUL RAX,RCX MOV RCX,qword ptr [RBP + -0x50] SHL RCX,0x8 ADD RAX,RCX XOR RAX,qword ptr [RBP + -0x50] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x58] ADD RAX,0x3 MOV qword ptr [RBP + -0x58],RAX JMP 0x001622ca LAB_001622ca: MOV ECX,dword ptr [RBP + -0x34] MOV RAX,qword ptr [RBP + -0x10] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x10],RAX JMP 0x0016220a LAB_001622e0: MOV RCX,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RBP + -0x58] MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RAX],RCX ADD RSP,0x60 POP RBP RET
void my_hash_sort_ucs2_nopad(long param_1,ulong param_2,long param_3,ulong *param_4,long *param_5) { int8 uVar1; bool bVar2; long local_60; ulong local_58; int local_3c; ulong local_38; long *local_30; ulong *local_28; long local_20; ulong local_18; long local_10; uVar1 = *(int8 *)(param_1 + 0x78); local_58 = *param_4; local_60 = *param_5; local_30 = param_5; local_28 = param_4; local_20 = param_3; local_18 = param_2; local_10 = param_1; while( true ) { bVar2 = false; if (local_18 < param_2 + param_3) { local_3c = my_ucs2_uni(local_10,&local_38,local_18,param_2 + param_3); bVar2 = 0 < local_3c; } if (!bVar2) break; my_tosort_ucs2(uVar1,&local_38); local_58 = ((local_58 & 0x3f) + local_60) * (local_38 & 0xff) + local_58 * 0x100 ^ local_58; local_58 = ((local_58 & 0x3f) + local_60 + 3) * (local_38 >> 8) + local_58 * 0x100 ^ local_58; local_60 = local_60 + 6; local_18 = local_18 + (long)local_3c; } *local_28 = local_58; *local_30 = local_60; return; }
19,430
js_regexp_constructor
bluesky950520[P]quickjs/quickjs.c
static JSValue js_regexp_constructor(JSContext *ctx, JSValue new_target, int argc, JSValue *argv) { JSValue pattern, flags, bc, val; JSValue pat, flags1; JSRegExp *re; int pat_is_regexp; pat = argv[0]; flags1 = argv[1]; pat_is_regexp = js_is_regexp(ctx, pat); if (pat_is_regexp < 0) return JS_EXCEPTION; if (JS_IsUndefined(new_target)) { /* called as a function */ new_target = JS_GetActiveFunction(ctx); if (pat_is_regexp && JS_IsUndefined(flags1)) { JSValue ctor; BOOL res; ctor = JS_GetProperty(ctx, pat, JS_ATOM_constructor); if (JS_IsException(ctor)) return ctor; res = js_same_value(ctx, ctor, new_target); JS_FreeValue(ctx, ctor); if (res) return js_dup(pat); } } re = js_get_regexp(ctx, pat, FALSE); if (re) { pattern = js_dup(JS_MKPTR(JS_TAG_STRING, re->pattern)); if (JS_IsUndefined(flags1)) { bc = js_dup(JS_MKPTR(JS_TAG_STRING, re->bytecode)); goto no_compilation; } else { flags = JS_ToString(ctx, flags1); if (JS_IsException(flags)) goto fail; } } else { flags = JS_UNDEFINED; if (pat_is_regexp) { pattern = JS_GetProperty(ctx, pat, JS_ATOM_source); if (JS_IsException(pattern)) goto fail; if (JS_IsUndefined(flags1)) { flags = JS_GetProperty(ctx, pat, JS_ATOM_flags); if (JS_IsException(flags)) goto fail; } else { flags = js_dup(flags1); } } else { pattern = js_dup(pat); flags = js_dup(flags1); } if (JS_IsUndefined(pattern)) { pattern = JS_AtomToString(ctx, JS_ATOM_empty_string); } else { val = pattern; pattern = JS_ToString(ctx, val); JS_FreeValue(ctx, val); if (JS_IsException(pattern)) goto fail; } } bc = js_compile_regexp(ctx, pattern, flags); if (JS_IsException(bc)) goto fail; JS_FreeValue(ctx, flags); no_compilation: return js_regexp_constructor_internal(ctx, new_target, pattern, bc); fail: JS_FreeValue(ctx, pattern); JS_FreeValue(ctx, flags); return JS_EXCEPTION; }
O1
c
js_regexp_constructor: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rdx, %r13 movq %rsi, %rbx movq (%r8), %r15 movq 0x8(%r8), %r12 movq 0x10(%r8), %rax movq %rax, 0x20(%rsp) movq 0x18(%r8), %rax movq %rax, 0x8(%rsp) movq %rdi, 0x40(%rsp) movq %r15, %rsi movq %r12, %rdx callq 0x50683 movl $0x6, %ebp testl %eax, %eax js 0x37921 movl %eax, %r14d movq %rbx, 0x28(%rsp) movq %r13, 0x30(%rsp) cmpl $0x3, %r13d jne 0x3798d movq 0x40(%rsp), %rbx movq 0x18(%rbx), %rax movq 0x108(%rax), %rax movq 0x8(%rax), %rcx movq %rcx, 0x28(%rsp) movq 0x10(%rax), %rax movq %rax, 0x30(%rsp) testl %r14d, %r14d setne %al cmpl $0x3, 0x8(%rsp) sete %cl andb %al, %cl cmpb $0x1, %cl jne 0x37929 movq %rbx, %rdi movq %r15, %rsi movq %r12, %rdx movl $0x3d, %ecx movq %r15, %r8 movq %r12, %r9 pushq $0x0 pushq $0x0 callq 0x26fff addq $0x10, %rsp movq %rax, %r13 movq %rdx, %rbp cmpl $0x6, %ebp jne 0x3792b movq %r13, %rbx shrq $0x20, %rbx xorl %eax, %eax jmp 0x37985 xorl %r13d, %r13d jmp 0x37bc7 jmp 0x3798d movq %rbx, %rdi movq %r13, %rsi movq %rbp, %rdx movq 0x28(%rsp), %rcx movq 0x30(%rsp), %r8 callq 0x2a4bd movl %eax, 0x3c(%rsp) movq 0x18(%rbx), %rdi movq %r13, %rsi movq %rbp, %rdx callq 0x21922 cmpl $0x0, 0x3c(%rsp) je 0x37980 movq %r15, 0x10(%rsp) cmpl $-0x9, %r12d jb 0x3796f movq 0x10(%rsp), %rax incl (%rax) movq %r15, %rbx shrq $0x20, %rbx xorl %eax, %eax movq %r15, %r13 movq %r12, %rbp jmp 0x37985 movb $0x1, %al xorl %r13d, %r13d testb %al, %al je 0x37bc7 movq %r15, 0x10(%rsp) cmpl $-0x1, %r12d jne 0x379aa movq 0x10(%rsp), %rax cmpw $0x12, 0x6(%rax) jne 0x379aa addq $0x30, %rax jmp 0x379ac xorl %eax, %eax testq %rax, %rax movq 0x40(%rsp), %rbp je 0x379e7 movq (%rax), %r13 incl (%r13) movq 0x8(%rsp), %rdx cmpl $0x3, %edx jne 0x37a2b movq 0x8(%rax), %rax incl (%rax) movq %rax, 0x10(%rsp) movq $-0x7, 0x18(%rsp) movq $-0x7, %r14 jmp 0x37b91 testl %r14d, %r14d je 0x37a56 movq %rbp, %rdi movq %r15, %rsi movq %r12, %rdx movl $0x6d, %ecx movq %r15, %r8 movq %r12, %r9 pushq $0x0 pushq $0x0 callq 0x26fff addq $0x10, %rsp movq %rax, %r13 movq %rdx, %r14 cmpl $0x6, %r14d jne 0x37ab5 movl $0x3, %r15d xorl %r12d, %r12d jmp 0x37b5a movq %rbp, %rdi movq 0x20(%rsp), %rsi xorl %ecx, %ecx callq 0x2bb39 movq %rax, %r12 movq %rdx, %r15 movq $-0x7, %r14 cmpl $0x6, %r15d jne 0x37b37 jmp 0x37b5a movq %r15, 0x10(%rsp) cmpl $-0x9, %r12d jb 0x37a68 movq 0x10(%rsp), %rax incl (%rax) movq 0x20(%rsp), %rax movq %rax, 0x10(%rsp) cmpl $-0x9, 0x8(%rsp) jb 0x37a80 movq 0x10(%rsp), %rax incl (%rax) movq %r15, %r13 movq %r12, %r14 movq 0x8(%rsp), %r15 movq 0x20(%rsp), %r12 cmpl $0x3, %r14d jne 0x37af2 movq 0x18(%rbp), %rax movq 0x68(%rax), %rax movq 0x178(%rax), %r13 incl (%r13) movq $-0x7, %r14 jmp 0x37b37 movq 0x8(%rsp), %rax cmpl $0x3, %eax jne 0x37be3 movq %rbp, %rdi movq %r15, %rsi movq %r12, %rdx movl $0x6e, %ecx movq %r15, %r8 movq %r12, %r9 pushq $0x0 pushq $0x0 callq 0x26fff addq $0x10, %rsp movq %rax, %r12 movq %rdx, %r15 cmpl $0x6, %r15d jne 0x37a90 jmp 0x37b5a movq %rbp, %rdi movq %r13, %rsi movq %r14, %rdx xorl %ecx, %ecx callq 0x2bb39 movq %r15, 0x8(%rsp) movq %rax, %r15 movq %r12, 0x20(%rsp) movq %rdx, %r12 movq 0x18(%rbp), %rdi movq %r13, %rsi movq %r14, %rdx callq 0x21922 movq %r15, %r13 movq 0x8(%rsp), %r15 movq %r12, %r14 cmpl $0x6, %r12d movq 0x20(%rsp), %r12 je 0x37b5a movq %rbp, %rdi movq %r13, %rsi movq %r14, %rdx movq %r12, %rcx movq %r15, %r8 callq 0x375be movq %rax, 0x10(%rsp) movq %rdx, 0x18(%rsp) cmpl $0x6, %edx jne 0x37b82 movq 0x18(%rbp), %rdi movq %r13, %rsi movq %r14, %rdx callq 0x21922 movq 0x18(%rbp), %rdi movq %r12, %rsi movq %r15, %rdx callq 0x21922 xorl %r13d, %r13d movl $0x6, %ebp jmp 0x37bc7 movq 0x18(%rbp), %rdi movq %r12, %rsi movq %r15, %rdx callq 0x21922 subq $0x10, %rsp movups 0x20(%rsp), %xmm0 movups %xmm0, (%rsp) movq %rbp, %rdi movq 0x38(%rsp), %rsi movq 0x40(%rsp), %rdx movq %r13, %rcx movq %r14, %r8 callq 0x43776 addq $0x10, %rsp movq %rax, %r13 movq %rdx, %rbp movq %rax, %rbx shrq $0x20, %rbx shlq $0x20, %rbx movl %r13d, %eax orq %rbx, %rax movq %rbp, %rdx addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq 0x20(%rsp), %r12 movq %r12, 0x10(%rsp) cmpl $-0x9, %eax movq %rax, %r15 jb 0x37a90 movq 0x10(%rsp), %rax incl (%rax) jmp 0x37a90
js_regexp_constructor: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h mov r13, rdx mov rbx, rsi mov r15, [r8] mov r12, [r8+8] mov rax, [r8+10h] mov [rsp+78h+var_58], rax mov rax, [r8+18h] mov [rsp+78h+var_70], rax mov [rsp+78h+var_38], rdi mov rsi, r15 mov rdx, r12 call js_is_regexp mov ebp, 6 test eax, eax js loc_37921 mov r14d, eax mov [rsp+78h+var_50], rbx mov [rsp+78h+var_48], r13 cmp r13d, 3 jnz loc_3798D mov rbx, [rsp+78h+var_38] mov rax, [rbx+18h] mov rax, [rax+108h] mov rcx, [rax+8] mov [rsp+78h+var_50], rcx mov rax, [rax+10h] mov [rsp+78h+var_48], rax test r14d, r14d setnz al cmp dword ptr [rsp+78h+var_70], 3 setz cl and cl, al cmp cl, 1 jnz short loc_37929 mov rdi, rbx mov rsi, r15 mov rdx, r12 mov ecx, 3Dh ; '=' mov r8, r15 mov r9, r12 push 0 push 0 call JS_GetPropertyInternal2 add rsp, 10h mov r13, rax mov rbp, rdx cmp ebp, 6 jnz short loc_3792B mov rbx, r13 shr rbx, 20h xor eax, eax jmp short loc_37985 loc_37921: xor r13d, r13d jmp loc_37BC7 loc_37929: jmp short loc_3798D loc_3792B: mov rdi, rbx mov rsi, r13 mov rdx, rbp mov rcx, [rsp+78h+var_50] mov r8, [rsp+78h+var_48] call js_same_value mov [rsp+78h+var_3C], eax mov rdi, [rbx+18h] mov rsi, r13 mov rdx, rbp call JS_FreeValueRT cmp [rsp+78h+var_3C], 0 jz short loc_37980 mov qword ptr [rsp+78h+var_68], r15 cmp r12d, 0FFFFFFF7h jb short loc_3796F mov rax, qword ptr [rsp+78h+var_68] inc dword ptr [rax] loc_3796F: mov rbx, r15 shr rbx, 20h xor eax, eax mov r13, r15 mov rbp, r12 jmp short loc_37985 loc_37980: mov al, 1 xor r13d, r13d loc_37985: test al, al jz loc_37BC7 loc_3798D: mov qword ptr [rsp+78h+var_68], r15 cmp r12d, 0FFFFFFFFh jnz short loc_379AA mov rax, qword ptr [rsp+78h+var_68] cmp word ptr [rax+6], 12h jnz short loc_379AA add rax, 30h ; '0' jmp short loc_379AC loc_379AA: xor eax, eax loc_379AC: test rax, rax mov rbp, [rsp+78h+var_38] jz short loc_379E7 mov r13, [rax] inc dword ptr [r13+0] mov rdx, [rsp+78h+var_70] cmp edx, 3 jnz short loc_37A2B mov rax, [rax+8] inc dword ptr [rax] mov qword ptr [rsp+78h+var_68], rax mov qword ptr [rsp+78h+var_68+8], 0FFFFFFFFFFFFFFF9h mov r14, 0FFFFFFFFFFFFFFF9h jmp loc_37B91 loc_379E7: test r14d, r14d jz short loc_37A56 mov rdi, rbp mov rsi, r15 mov rdx, r12 mov ecx, 6Dh ; 'm' mov r8, r15 mov r9, r12 push 0 push 0 call JS_GetPropertyInternal2 add rsp, 10h mov r13, rax mov r14, rdx cmp r14d, 6 jnz loc_37AB5 mov r15d, 3 xor r12d, r12d jmp loc_37B5A loc_37A2B: mov rdi, rbp mov rsi, [rsp+78h+var_58] xor ecx, ecx call JS_ToStringInternal mov r12, rax mov r15, rdx mov r14, 0FFFFFFFFFFFFFFF9h cmp r15d, 6 jnz loc_37B37 jmp loc_37B5A loc_37A56: mov qword ptr [rsp+78h+var_68], r15 cmp r12d, 0FFFFFFF7h jb short loc_37A68 mov rax, qword ptr [rsp+78h+var_68] inc dword ptr [rax] loc_37A68: mov rax, [rsp+78h+var_58] mov qword ptr [rsp+78h+var_68], rax cmp dword ptr [rsp+78h+var_70], 0FFFFFFF7h jb short loc_37A80 mov rax, qword ptr [rsp+78h+var_68] inc dword ptr [rax] loc_37A80: mov r13, r15 mov r14, r12 mov r15, [rsp+78h+var_70] mov r12, [rsp+78h+var_58] loc_37A90: cmp r14d, 3 jnz short loc_37AF2 mov rax, [rbp+18h] mov rax, [rax+68h] mov r13, [rax+178h] inc dword ptr [r13+0] mov r14, 0FFFFFFFFFFFFFFF9h jmp loc_37B37 loc_37AB5: mov rax, [rsp+78h+var_70] cmp eax, 3 jnz loc_37BE3 mov rdi, rbp mov rsi, r15 mov rdx, r12 mov ecx, 6Eh ; 'n' mov r8, r15 mov r9, r12 push 0 push 0 call JS_GetPropertyInternal2 add rsp, 10h mov r12, rax mov r15, rdx cmp r15d, 6 jnz short loc_37A90 jmp short loc_37B5A loc_37AF2: mov rdi, rbp mov rsi, r13 mov rdx, r14 xor ecx, ecx call JS_ToStringInternal mov [rsp+78h+var_70], r15 mov r15, rax mov [rsp+78h+var_58], r12 mov r12, rdx mov rdi, [rbp+18h] mov rsi, r13 mov rdx, r14 call JS_FreeValueRT mov r13, r15 mov r15, [rsp+78h+var_70] mov r14, r12 cmp r12d, 6 mov r12, [rsp+78h+var_58] jz short loc_37B5A loc_37B37: mov rdi, rbp mov rsi, r13 mov rdx, r14 mov rcx, r12 mov r8, r15 call js_compile_regexp mov qword ptr [rsp+78h+var_68], rax mov qword ptr [rsp+78h+var_68+8], rdx cmp edx, 6 jnz short loc_37B82 loc_37B5A: mov rdi, [rbp+18h] mov rsi, r13 mov rdx, r14 call JS_FreeValueRT mov rdi, [rbp+18h] mov rsi, r12 mov rdx, r15 call JS_FreeValueRT xor r13d, r13d mov ebp, 6 jmp short loc_37BC7 loc_37B82: mov rdi, [rbp+18h] mov rsi, r12 mov rdx, r15 call JS_FreeValueRT loc_37B91: sub rsp, 10h movups xmm0, [rsp+88h+var_68] movups [rsp+88h+var_88], xmm0 mov rdi, rbp mov rsi, [rsp+88h+var_50] mov rdx, [rsp+88h+var_48] mov rcx, r13 mov r8, r14 call js_regexp_constructor_internal add rsp, 10h mov r13, rax mov rbp, rdx mov rbx, rax shr rbx, 20h loc_37BC7: shl rbx, 20h mov eax, r13d or rax, rbx mov rdx, rbp add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_37BE3: mov r12, [rsp+78h+var_58] mov qword ptr [rsp+78h+var_68], r12 cmp eax, 0FFFFFFF7h mov r15, rax jb loc_37A90 mov rax, qword ptr [rsp+78h+var_68] inc dword ptr [rax] jmp loc_37A90
unsigned long long js_regexp_constructor( long long a1, unsigned long long a2, int a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, double a8, double a9, __m128 a10, __m128 a11, long long a12, unsigned long long *a13) { unsigned long long v14; // rbx unsigned long long v15; // r15 long long v16; // r12 int is_regexp; // eax long long v18; // r8 long long v19; // r9 __m128 v20; // xmm4 __m128 v21; // xmm5 int v22; // r14d long long v23; // rax unsigned long long PropertyInternal2; // rax long long v25; // rdx _DWORD *v26; // r13 long long v27; // rbp char v28; // al unsigned long long v29; // rax _DWORD *v30; // rax long long v31; // r14 long long v32; // rdx long long v33; // r15 _DWORD *v34; // r12 long long v35; // rdx long long v36; // rdx unsigned long long v37; // r15 long long v38; // rdx long long v39; // r12 bool v40; // zf __int128 v41; // rax unsigned long long v42; // rax long long v44; // [rsp+18h] [rbp-70h] long long v45; // [rsp+18h] [rbp-70h] __int128 v46; // [rsp+20h] [rbp-68h] _DWORD *v47; // [rsp+30h] [rbp-58h] _DWORD *v48; // [rsp+30h] [rbp-58h] _DWORD *v49; // [rsp+38h] [rbp-50h] long long v50; // [rsp+40h] [rbp-48h] int v51; // [rsp+4Ch] [rbp-3Ch] v14 = a2; v15 = *a13; v16 = a13[1]; v47 = (_DWORD *)a13[2]; v44 = a13[3]; is_regexp = js_is_regexp(a1, *a13, v16); if ( is_regexp < 0 ) { LODWORD(v26) = 0; } else { v22 = is_regexp; LODWORD(v49) = a2; LODWORD(v50) = a3; if ( a3 != 3 ) goto LABEL_15; v14 = a1; v23 = *(_QWORD *)(*(_QWORD *)(a1 + 24) + 264LL); v49 = *(_DWORD **)(v23 + 8); v50 = *(_QWORD *)(v23 + 16); if ( v22 == 0 || (_DWORD)v44 != 3 ) goto LABEL_15; PropertyInternal2 = JS_GetPropertyInternal2(a1, v15, v16, 0x3Du, v15, v16, 0LL, 0); v26 = (_DWORD *)PropertyInternal2; v27 = v25; if ( (_DWORD)v25 == 6 ) { v14 = HIDWORD(PropertyInternal2); v28 = 0; } else { v51 = js_same_value(a1, (_DWORD *)PropertyInternal2, v25, v49, v50); JS_FreeValueRT(*(_QWORD *)(a1 + 24), v26, v27); if ( v51 ) { if ( (unsigned int)v16 >= 0xFFFFFFF7 ) ++*(_DWORD *)v15; v14 = HIDWORD(v15); v28 = 0; LODWORD(v26) = v15; } else { v28 = 1; LODWORD(v26) = 0; } } if ( v28 ) { LABEL_15: if ( (_DWORD)v16 == -1 && *(_WORD *)(v15 + 6) == 18 ) v29 = v15 + 48; else v29 = 0LL; if ( v29 ) { v26 = *(_DWORD **)v29; ++**(_DWORD **)v29; if ( (_DWORD)v44 == 3 ) { v30 = *(_DWORD **)(v29 + 8); ++*v30; *(_QWORD *)&v46 = v30; *((_QWORD *)&v46 + 1) = -7LL; LODWORD(v31) = -7; LABEL_40: v42 = js_regexp_constructor_internal(a1, (_DWORD)v49, v50, (_DWORD)v26, v31, v19, v46); LODWORD(v26) = v42; v14 = HIDWORD(v42); return (v14 << 32) | (unsigned int)v26; } v34 = (_DWORD *)JS_ToStringInternal(a1, (long long)v47, v44, 0, v18, v19, a4, a5, a6, a7, v20, v21, a10, a11); v33 = v35; v31 = -7LL; if ( (_DWORD)v35 == 6 ) goto LABEL_38; goto LABEL_37; } if ( v22 ) { v26 = (_DWORD *)JS_GetPropertyInternal2(a1, v15, v16, 0x6Du, v15, v16, 0LL, 0); v31 = v32; if ( (_DWORD)v32 == 6 ) { v33 = 3LL; v34 = 0LL; LABEL_38: JS_FreeValueRT(*(_QWORD *)(a1 + 24), v26, v31); JS_FreeValueRT(*(_QWORD *)(a1 + 24), v34, v33); LODWORD(v26) = 0; return (v14 << 32) | (unsigned int)v26; } if ( (_DWORD)v44 == 3 ) { v34 = (_DWORD *)JS_GetPropertyInternal2(a1, v15, v16, 0x6Eu, v15, v16, 0LL, 0); v33 = v36; if ( (_DWORD)v36 == 6 ) goto LABEL_38; } else { v34 = v47; v33 = v44; if ( (unsigned int)v44 >= 0xFFFFFFF7 ) ++*v47; } } else { if ( (unsigned int)v16 >= 0xFFFFFFF7 ) ++*(_DWORD *)v15; if ( (unsigned int)v44 >= 0xFFFFFFF7 ) ++*v47; v26 = (_DWORD *)v15; v31 = v16; v33 = v44; v34 = v47; } if ( (_DWORD)v31 == 3 ) { v26 = *(_DWORD **)(*(_QWORD *)(*(_QWORD *)(a1 + 24) + 104LL) + 376LL); ++*v26; v31 = -7LL; } else { v45 = v33; v37 = JS_ToStringInternal(a1, (long long)v26, v31, 0, v18, v19, a4, a5, a6, a7, v20, v21, a10, a11); v48 = v34; v39 = v38; JS_FreeValueRT(*(_QWORD *)(a1 + 24), v26, v31); v26 = (_DWORD *)v37; v33 = v45; v31 = v39; v40 = (_DWORD)v39 == 6; v34 = v48; if ( v40 ) goto LABEL_38; } LABEL_37: *(_QWORD *)&v41 = js_compile_regexp( a1, (long long)v26, v31, (long long)v34, v33, v19, a4, a5, a6, a7, v20, v21, a10, a11); v46 = v41; if ( DWORD2(v41) != 6 ) { JS_FreeValueRT(*(_QWORD *)(a1 + 24), v34, v33); goto LABEL_40; } goto LABEL_38; } } return (v14 << 32) | (unsigned int)v26; }
js_regexp_constructor: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 MOV R13,RDX MOV RBX,RSI MOV R15,qword ptr [R8] MOV R12,qword ptr [R8 + 0x8] MOV RAX,qword ptr [R8 + 0x10] MOV qword ptr [RSP + 0x20],RAX MOV RAX,qword ptr [R8 + 0x18] MOV qword ptr [RSP + 0x8],RAX MOV qword ptr [RSP + 0x40],RDI MOV RSI,R15 MOV RDX,R12 CALL 0x00150683 MOV EBP,0x6 TEST EAX,EAX JS 0x00137921 MOV R14D,EAX MOV qword ptr [RSP + 0x28],RBX MOV qword ptr [RSP + 0x30],R13 CMP R13D,0x3 JNZ 0x0013798d MOV RBX,qword ptr [RSP + 0x40] MOV RAX,qword ptr [RBX + 0x18] MOV RAX,qword ptr [RAX + 0x108] MOV RCX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x28],RCX MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0x30],RAX TEST R14D,R14D SETNZ AL CMP dword ptr [RSP + 0x8],0x3 SETZ CL AND CL,AL CMP CL,0x1 JNZ 0x00137929 MOV RDI,RBX MOV RSI,R15 MOV RDX,R12 MOV ECX,0x3d MOV R8,R15 MOV R9,R12 PUSH 0x0 PUSH 0x0 CALL 0x00126fff ADD RSP,0x10 MOV R13,RAX MOV RBP,RDX CMP EBP,0x6 JNZ 0x0013792b MOV RBX,R13 SHR RBX,0x20 XOR EAX,EAX JMP 0x00137985 LAB_00137921: XOR R13D,R13D JMP 0x00137bc7 LAB_00137929: JMP 0x0013798d LAB_0013792b: MOV RDI,RBX MOV RSI,R13 MOV RDX,RBP MOV RCX,qword ptr [RSP + 0x28] MOV R8,qword ptr [RSP + 0x30] CALL 0x0012a4bd MOV dword ptr [RSP + 0x3c],EAX MOV RDI,qword ptr [RBX + 0x18] MOV RSI,R13 MOV RDX,RBP CALL 0x00121922 CMP dword ptr [RSP + 0x3c],0x0 JZ 0x00137980 MOV qword ptr [RSP + 0x10],R15 CMP R12D,-0x9 JC 0x0013796f MOV RAX,qword ptr [RSP + 0x10] INC dword ptr [RAX] LAB_0013796f: MOV RBX,R15 SHR RBX,0x20 XOR EAX,EAX MOV R13,R15 MOV RBP,R12 JMP 0x00137985 LAB_00137980: MOV AL,0x1 XOR R13D,R13D LAB_00137985: TEST AL,AL JZ 0x00137bc7 LAB_0013798d: MOV qword ptr [RSP + 0x10],R15 CMP R12D,-0x1 JNZ 0x001379aa MOV RAX,qword ptr [RSP + 0x10] CMP word ptr [RAX + 0x6],0x12 JNZ 0x001379aa ADD RAX,0x30 JMP 0x001379ac LAB_001379aa: XOR EAX,EAX LAB_001379ac: TEST RAX,RAX MOV RBP,qword ptr [RSP + 0x40] JZ 0x001379e7 MOV R13,qword ptr [RAX] INC dword ptr [R13] MOV RDX,qword ptr [RSP + 0x8] CMP EDX,0x3 JNZ 0x00137a2b MOV RAX,qword ptr [RAX + 0x8] INC dword ptr [RAX] MOV qword ptr [RSP + 0x10],RAX MOV qword ptr [RSP + 0x18],-0x7 MOV R14,-0x7 JMP 0x00137b91 LAB_001379e7: TEST R14D,R14D JZ 0x00137a56 MOV RDI,RBP MOV RSI,R15 MOV RDX,R12 MOV ECX,0x6d MOV R8,R15 MOV R9,R12 PUSH 0x0 PUSH 0x0 CALL 0x00126fff ADD RSP,0x10 MOV R13,RAX MOV R14,RDX CMP R14D,0x6 JNZ 0x00137ab5 MOV R15D,0x3 XOR R12D,R12D JMP 0x00137b5a LAB_00137a2b: MOV RDI,RBP MOV RSI,qword ptr [RSP + 0x20] XOR ECX,ECX CALL 0x0012bb39 MOV R12,RAX MOV R15,RDX MOV R14,-0x7 CMP R15D,0x6 JNZ 0x00137b37 JMP 0x00137b5a LAB_00137a56: MOV qword ptr [RSP + 0x10],R15 CMP R12D,-0x9 JC 0x00137a68 MOV RAX,qword ptr [RSP + 0x10] INC dword ptr [RAX] LAB_00137a68: MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x10],RAX CMP dword ptr [RSP + 0x8],-0x9 JC 0x00137a80 MOV RAX,qword ptr [RSP + 0x10] INC dword ptr [RAX] LAB_00137a80: MOV R13,R15 MOV R14,R12 MOV R15,qword ptr [RSP + 0x8] MOV R12,qword ptr [RSP + 0x20] LAB_00137a90: CMP R14D,0x3 JNZ 0x00137af2 MOV RAX,qword ptr [RBP + 0x18] MOV RAX,qword ptr [RAX + 0x68] MOV R13,qword ptr [RAX + 0x178] INC dword ptr [R13] MOV R14,-0x7 JMP 0x00137b37 LAB_00137ab5: MOV RAX,qword ptr [RSP + 0x8] CMP EAX,0x3 JNZ 0x00137be3 MOV RDI,RBP MOV RSI,R15 MOV RDX,R12 MOV ECX,0x6e MOV R8,R15 MOV R9,R12 PUSH 0x0 PUSH 0x0 CALL 0x00126fff ADD RSP,0x10 MOV R12,RAX MOV R15,RDX CMP R15D,0x6 JNZ 0x00137a90 JMP 0x00137b5a LAB_00137af2: MOV RDI,RBP MOV RSI,R13 MOV RDX,R14 XOR ECX,ECX CALL 0x0012bb39 MOV qword ptr [RSP + 0x8],R15 MOV R15,RAX MOV qword ptr [RSP + 0x20],R12 MOV R12,RDX MOV RDI,qword ptr [RBP + 0x18] MOV RSI,R13 MOV RDX,R14 CALL 0x00121922 MOV R13,R15 MOV R15,qword ptr [RSP + 0x8] MOV R14,R12 CMP R12D,0x6 MOV R12,qword ptr [RSP + 0x20] JZ 0x00137b5a LAB_00137b37: MOV RDI,RBP MOV RSI,R13 MOV RDX,R14 MOV RCX,R12 MOV R8,R15 CALL 0x001375be MOV qword ptr [RSP + 0x10],RAX MOV qword ptr [RSP + 0x18],RDX CMP EDX,0x6 JNZ 0x00137b82 LAB_00137b5a: MOV RDI,qword ptr [RBP + 0x18] MOV RSI,R13 MOV RDX,R14 CALL 0x00121922 MOV RDI,qword ptr [RBP + 0x18] MOV RSI,R12 MOV RDX,R15 CALL 0x00121922 XOR R13D,R13D MOV EBP,0x6 JMP 0x00137bc7 LAB_00137b82: MOV RDI,qword ptr [RBP + 0x18] MOV RSI,R12 MOV RDX,R15 CALL 0x00121922 LAB_00137b91: SUB RSP,0x10 MOVUPS XMM0,xmmword ptr [RSP + 0x20] MOVUPS xmmword ptr [RSP],XMM0 MOV RDI,RBP MOV RSI,qword ptr [RSP + 0x38] MOV RDX,qword ptr [RSP + 0x40] MOV RCX,R13 MOV R8,R14 CALL 0x00143776 ADD RSP,0x10 MOV R13,RAX MOV RBP,RDX MOV RBX,RAX SHR RBX,0x20 LAB_00137bc7: SHL RBX,0x20 MOV EAX,R13D OR RAX,RBX MOV RDX,RBP ADD RSP,0x48 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00137be3: MOV R12,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x10],R12 CMP EAX,-0x9 MOV R15,RAX JC 0x00137a90 MOV RAX,qword ptr [RSP + 0x10] INC dword ptr [RAX] JMP 0x00137a90
int1 [16] js_regexp_constructor (ulong param_1,ulong param_2,int8 param_3,int8 param_4, int1 (*param_5) [16]) { int1 (*pauVar1) [16]; int *piVar2; int *piVar3; long lVar4; bool bVar5; int1 auVar6 [16]; int1 auVar7 [16]; int1 auVar8 [16]; int iVar9; int iVar10; int *piVar12; int extraout_EDX; uint uVar14; int8 uVar15; int8 uVar16; int1 auVar17 [16]; int1 auVar18 [16]; int1 auVar19 [16]; uint local_70; ulong local_50; int8 local_48; ulong uVar11; ulong uVar13; piVar2 = *(int **)*param_5; uVar15 = *(int8 *)(*param_5 + 8); auVar18 = *param_5; pauVar1 = param_5 + 1; piVar3 = *(int **)*pauVar1; uVar16 = *(int8 *)(param_5[1] + 8); auVar8 = *pauVar1; auVar19 = *pauVar1; auVar7 = *pauVar1; auVar6 = *pauVar1; iVar9 = js_is_regexp(param_1,piVar2,uVar15); if (iVar9 < 0) { auVar17 = ZEXT816(6) << 0x40; goto LAB_00137bc7; } uVar14 = (uint)uVar15; local_70 = (uint)uVar16; local_50 = param_2; local_48 = param_3; if ((int)param_3 == 3) { lVar4 = *(long *)(*(long *)(param_1 + 0x18) + 0x108); local_50 = *(ulong *)(lVar4 + 8); local_48 = *(int8 *)(lVar4 + 0x10); param_2 = param_1; if (local_70 == 3 && iVar9 != 0) { auVar17 = JS_GetPropertyInternal2(param_1,piVar2,uVar15,0x3d,piVar2,uVar15,0,0); uVar13 = auVar17._8_8_; uVar11 = auVar17._0_8_; if (auVar17._8_4_ == 6) { bVar5 = false; param_2 = uVar11 >> 0x20; } else { iVar10 = js_same_value(param_1,uVar11,uVar13,local_50,local_48); JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar11,uVar13); if (iVar10 == 0) { bVar5 = true; auVar17._8_8_ = 0; auVar17._0_8_ = uVar13; auVar17 = auVar17 << 0x40; } else { if (0xfffffff6 < uVar14) { *piVar2 = *piVar2 + 1; } bVar5 = false; param_2 = (ulong)piVar2 >> 0x20; auVar17 = auVar18; } } if (!bVar5) goto LAB_00137bc7; } } if ((uVar14 == 0xffffffff) && (*(short *)((long)piVar2 + 6) == 0x12)) { piVar12 = piVar2 + 0xc; } else { piVar12 = (int *)0x0; } if (piVar12 == (int *)0x0) { if (iVar9 == 0) { if (0xfffffff6 < uVar14) { *piVar2 = *piVar2 + 1; } if (0xfffffff6 < local_70) { *piVar3 = *piVar3 + 1; auVar19 = auVar8; } LAB_00137a90: uVar16 = auVar18._8_8_; uVar15 = auVar18._0_8_; if (auVar18._8_4_ != 3) { auVar18 = JS_ToStringInternal(param_1,uVar15,uVar16,0); JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar15,uVar16); iVar9 = auVar18._8_4_; goto joined_r0x00137b35; } piVar2 = *(int **)(*(long *)(*(long *)(param_1 + 0x18) + 0x68) + 0x178); *piVar2 = *piVar2 + 1; auVar18._8_8_ = 0xfffffffffffffff9; auVar18._0_8_ = piVar2; LAB_00137b37: js_compile_regexp(param_1,auVar18._0_8_,auVar18._8_8_,auVar19._0_8_,auVar19._8_8_); if (extraout_EDX != 6) { JS_FreeValueRT(*(int8 *)(param_1 + 0x18),auVar19._0_8_,auVar19._8_8_); goto LAB_00137b91; } } else { auVar18 = JS_GetPropertyInternal2(param_1,piVar2,uVar15,0x6d,piVar2,uVar15,0,0); if (auVar18._8_4_ != 6) { if (local_70 == 3) { auVar19 = JS_GetPropertyInternal2(param_1,piVar2,uVar15,0x6e,piVar2,uVar15,0,0); if (auVar19._8_4_ == 6) goto LAB_00137b5a; } else { auVar19 = auVar6; if (0xfffffff6 < local_70) { *piVar3 = *piVar3 + 1; auVar19 = auVar7; } } goto LAB_00137a90; } auVar19 = ZEXT816(3) << 0x40; } } else { piVar2 = *(int **)piVar12; *piVar2 = *piVar2 + 1; if (local_70 == 3) { **(int **)(piVar12 + 2) = **(int **)(piVar12 + 2) + 1; auVar18._8_8_ = 0xfffffffffffffff9; auVar18._0_8_ = piVar2; LAB_00137b91: auVar17 = js_regexp_constructor_internal (param_1,local_50,local_48,auVar18._0_8_,auVar18._8_8_); param_2 = auVar17._0_8_ >> 0x20; goto LAB_00137bc7; } auVar19 = JS_ToStringInternal(param_1,piVar3,uVar16,0); auVar18._8_8_ = 0xfffffffffffffff9; auVar18._0_8_ = piVar2; iVar9 = auVar19._8_4_; joined_r0x00137b35: if (iVar9 != 6) goto LAB_00137b37; } LAB_00137b5a: JS_FreeValueRT(*(int8 *)(param_1 + 0x18),auVar18._0_8_,auVar18._8_8_); JS_FreeValueRT(*(int8 *)(param_1 + 0x18),auVar19._0_8_,auVar19._8_8_); auVar17 = ZEXT816(6) << 0x40; LAB_00137bc7: auVar19._0_8_ = auVar17._0_8_ & 0xffffffff | param_2 << 0x20; auVar19._8_8_ = auVar17._8_8_; return auVar19; }
19,431
js_regexp_constructor
bluesky950520[P]quickjs/quickjs.c
static JSValue js_regexp_constructor(JSContext *ctx, JSValue new_target, int argc, JSValue *argv) { JSValue pattern, flags, bc, val; JSValue pat, flags1; JSRegExp *re; int pat_is_regexp; pat = argv[0]; flags1 = argv[1]; pat_is_regexp = js_is_regexp(ctx, pat); if (pat_is_regexp < 0) return JS_EXCEPTION; if (JS_IsUndefined(new_target)) { /* called as a function */ new_target = JS_GetActiveFunction(ctx); if (pat_is_regexp && JS_IsUndefined(flags1)) { JSValue ctor; BOOL res; ctor = JS_GetProperty(ctx, pat, JS_ATOM_constructor); if (JS_IsException(ctor)) return ctor; res = js_same_value(ctx, ctor, new_target); JS_FreeValue(ctx, ctor); if (res) return js_dup(pat); } } re = js_get_regexp(ctx, pat, FALSE); if (re) { pattern = js_dup(JS_MKPTR(JS_TAG_STRING, re->pattern)); if (JS_IsUndefined(flags1)) { bc = js_dup(JS_MKPTR(JS_TAG_STRING, re->bytecode)); goto no_compilation; } else { flags = JS_ToString(ctx, flags1); if (JS_IsException(flags)) goto fail; } } else { flags = JS_UNDEFINED; if (pat_is_regexp) { pattern = JS_GetProperty(ctx, pat, JS_ATOM_source); if (JS_IsException(pattern)) goto fail; if (JS_IsUndefined(flags1)) { flags = JS_GetProperty(ctx, pat, JS_ATOM_flags); if (JS_IsException(flags)) goto fail; } else { flags = js_dup(flags1); } } else { pattern = js_dup(pat); flags = js_dup(flags1); } if (JS_IsUndefined(pattern)) { pattern = JS_AtomToString(ctx, JS_ATOM_empty_string); } else { val = pattern; pattern = JS_ToString(ctx, val); JS_FreeValue(ctx, val); if (JS_IsException(pattern)) goto fail; } } bc = js_compile_regexp(ctx, pattern, flags); if (JS_IsException(bc)) goto fail; JS_FreeValue(ctx, flags); no_compilation: return js_regexp_constructor_internal(ctx, new_target, pattern, bc); fail: JS_FreeValue(ctx, pattern); JS_FreeValue(ctx, flags); return JS_EXCEPTION; }
O2
c
js_regexp_constructor: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rdx, %r15 movq %rsi, 0x28(%rsp) movq %rdi, %r14 movq (%r8), %r12 movq 0x8(%r8), %rbp movq 0x10(%r8), %rax movq %rax, 0x18(%rsp) movq 0x18(%r8), %rax movq %rax, 0x10(%rsp) movq %r12, %rsi movq %rbp, %rdx callq 0x45652 pushq $0x6 popq %r13 testl %eax, %eax js 0x30c54 movl %eax, %ebx cmpl $0x3, %r15d jne 0x30aae movq 0x18(%r14), %rax movq 0x108(%rax), %rax movq 0x8(%rax), %rcx movq %rcx, 0x28(%rsp) movq 0x10(%rax), %r15 testl %ebx, %ebx setne %al cmpl $0x3, 0x10(%rsp) sete %cl andb %al, %cl cmpb $0x1, %cl jne 0x30aae movq %r15, 0x20(%rsp) pushq $0x3d popq %rcx movq %r14, %rdi movq %r12, %rsi movq %rbp, %rdx callq 0x1ebf3 movq %rax, %r13 movq %rdx, %r15 cmpl $0x6, %r15d jne 0x30a56 movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000 movq %r13, %rcx andq %rax, %rcx movq %r13, %r12 movq %r15, %r13 jmp 0x30c59 movq %r14, %rdi movq %r13, %rsi movq %r15, %rdx movq 0x28(%rsp), %rcx movq 0x20(%rsp), %r8 callq 0x23ae2 movl %eax, 0x34(%rsp) movq %r14, %rdi movq %r13, %rsi movq %r15, %rdx movq 0x20(%rsp), %r15 callq 0x1bbce cmpl $0x0, 0x34(%rsp) pushq $0x6 popq %r13 je 0x30aae cmpl $-0x9, %ebp jb 0x30a99 incl (%r12) movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 andq %r12, %rcx movq %rbp, %r13 jmp 0x30c59 cmpl $-0x1, %ebp movq %r15, 0x20(%rsp) jne 0x30af4 cmpw $0x12, 0x6(%r12) jne 0x30af4 movq 0x30(%r12), %rbx incl (%rbx) movq 0x10(%rsp), %rdx cmpl $0x3, %edx jne 0x30b63 movq 0x38(%r12), %rax incl (%rax) movq %rax, 0x38(%rsp) movq $-0x7, 0x40(%rsp) pushq $-0x7 popq %r15 jmp 0x30c7f testl %ebx, %ebx je 0x30b20 pushq $0x6d popq %rcx movq %r14, %rdi movq %r12, %rsi movq %rbp, %rdx callq 0x1ebf3 movq %rax, %rbx movq %rdx, %r15 cmpl $0x6, %r15d jne 0x30b38 pushq $0x3 popq %rbp xorl %r12d, %r12d jmp 0x30c38 cmpl $-0x9, %ebp jb 0x30b29 incl (%r12) cmpl $-0x9, 0x10(%rsp) jae 0x30b93 movq %r12, %rbx movq %rbp, %r15 jmp 0x30baa movq 0x10(%rsp), %rax cmpl $0x3, %eax jne 0x30b88 pushq $0x6e popq %rcx movq %r14, %rdi movq %r12, %rsi movq %rbp, %rdx callq 0x1ebf3 movq %rax, %r12 movq %rdx, %rbp cmpl $0x6, %ebp jne 0x30bb4 jmp 0x30c38 movq %r14, %rdi movq 0x18(%rsp), %rsi callq 0x1ebec movq %rax, %r12 movq %rdx, %rbp pushq $-0x7 popq %r15 cmpl $0x6, %ebp jne 0x30c15 jmp 0x30c38 movq %rbx, %r12 movq %r15, %rbp cmpl $-0xa, %eax jbe 0x30baa movq 0x18(%rsp), %rax incl (%rax) movq %r12, %rbx movq %rax, %r12 movq %rbp, %r15 movq 0x10(%rsp), %rbp jmp 0x30bb4 movq 0x10(%rsp), %rbp movq 0x18(%rsp), %r12 cmpl $0x3, %r15d jne 0x30bcd pushq $0x2f popq %rsi movq %r14, %rdi callq 0x1e540 movq %rax, %rbx movq %rdx, %r15 jmp 0x30c15 movq %r14, %rdi movq %rbx, %rsi movq %r15, %rdx callq 0x1ebec movq %r12, 0x18(%rsp) movq %rax, %r12 movq %rbp, 0x10(%rsp) movq %r13, %rbp movq %rdx, %r13 movq %r14, %rdi movq %rbx, %rsi movq %r15, %rdx callq 0x1bbce movq %r12, %rbx movq 0x18(%rsp), %r12 movq %r13, %r15 cmpl $0x6, %r13d movq %rbp, %r13 movq 0x10(%rsp), %rbp je 0x30c38 movq %r14, %rdi movq %rbx, %rsi movq %r15, %rdx movq %r12, %rcx movq %rbp, %r8 callq 0x3076d movq %rax, 0x38(%rsp) movq %rdx, 0x40(%rsp) cmpl $0x6, %edx jne 0x30c71 movq %r14, %rdi movq %rbx, %rsi movq %r15, %rdx callq 0x1bbce movq %r14, %rdi movq %r12, %rsi movq %rbp, %rdx callq 0x1bbce xorl %r12d, %r12d xorl %ecx, %ecx movl %r12d, %eax orq %rcx, %rax movq %r13, %rdx addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %r14, %rdi movq %r12, %rsi movq %rbp, %rdx callq 0x1bbce movups 0x38(%rsp), %xmm0 movups %xmm0, (%rsp) movq %r14, %rdi movq 0x28(%rsp), %rsi movq 0x20(%rsp), %rdx movq %rbx, %rcx movq %r15, %r8 callq 0x3b5ab movq %rax, %r12 movq %rdx, %r13 movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 andq %rax, %rcx jmp 0x30c59
js_regexp_constructor: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h mov r15, rdx mov [rsp+78h+var_50], rsi mov r14, rdi mov r12, [r8] mov rbp, [r8+8] mov rax, [r8+10h] mov [rsp+78h+var_60], rax mov rax, [r8+18h] mov [rsp+78h+var_68], rax mov rsi, r12 mov rdx, rbp call js_is_regexp push 6 pop r13 test eax, eax js loc_30C54 mov ebx, eax cmp r15d, 3 jnz loc_30AAE mov rax, [r14+18h] mov rax, [rax+108h] mov rcx, [rax+8] mov [rsp+78h+var_50], rcx mov r15, [rax+10h] test ebx, ebx setnz al cmp dword ptr [rsp+78h+var_68], 3 setz cl and cl, al cmp cl, 1 jnz loc_30AAE mov [rsp+78h+var_58], r15 push 3Dh ; '=' pop rcx mov rdi, r14 mov rsi, r12 mov rdx, rbp call JS_GetProperty mov r13, rax mov r15, rdx cmp r15d, 6 jnz short loc_30A56 mov rax, 0FFFFFFFF00000000h mov rcx, r13 and rcx, rax mov r12, r13 mov r13, r15 jmp loc_30C59 loc_30A56: mov rdi, r14 mov rsi, r13 mov rdx, r15 mov rcx, [rsp+78h+var_50] mov r8, [rsp+78h+var_58] call js_same_value mov [rsp+78h+var_44], eax mov rdi, r14 mov rsi, r13 mov rdx, r15 mov r15, [rsp+78h+var_58] call JS_FreeValue cmp [rsp+78h+var_44], 0 push 6 pop r13 jz short loc_30AAE cmp ebp, 0FFFFFFF7h jb short loc_30A99 inc dword ptr [r12] loc_30A99: mov rcx, 0FFFFFFFF00000000h and rcx, r12 mov r13, rbp jmp loc_30C59 loc_30AAE: cmp ebp, 0FFFFFFFFh mov [rsp+78h+var_58], r15 jnz short loc_30AF4 cmp word ptr [r12+6], 12h jnz short loc_30AF4 mov rbx, [r12+30h] inc dword ptr [rbx] mov rdx, [rsp+78h+var_68] cmp edx, 3 jnz loc_30B63 mov rax, [r12+38h] inc dword ptr [rax] mov qword ptr [rsp+78h+var_40], rax mov qword ptr [rsp+78h+var_40+8], 0FFFFFFFFFFFFFFF9h push 0FFFFFFFFFFFFFFF9h pop r15 jmp loc_30C7F loc_30AF4: test ebx, ebx jz short loc_30B20 push 6Dh ; 'm' pop rcx mov rdi, r14 mov rsi, r12 mov rdx, rbp call JS_GetProperty mov rbx, rax mov r15, rdx cmp r15d, 6 jnz short loc_30B38 push 3 pop rbp xor r12d, r12d jmp loc_30C38 loc_30B20: cmp ebp, 0FFFFFFF7h jb short loc_30B29 inc dword ptr [r12] loc_30B29: cmp dword ptr [rsp+78h+var_68], 0FFFFFFF7h jnb short loc_30B93 mov rbx, r12 mov r15, rbp jmp short loc_30BAA loc_30B38: mov rax, [rsp+78h+var_68] cmp eax, 3 jnz short loc_30B88 push 6Eh ; 'n' pop rcx mov rdi, r14 mov rsi, r12 mov rdx, rbp call JS_GetProperty mov r12, rax mov rbp, rdx cmp ebp, 6 jnz short loc_30BB4 jmp loc_30C38 loc_30B63: mov rdi, r14 mov rsi, [rsp+78h+var_60] call JS_ToString mov r12, rax mov rbp, rdx push 0FFFFFFFFFFFFFFF9h pop r15 cmp ebp, 6 jnz loc_30C15 jmp loc_30C38 loc_30B88: mov r12, rbx mov rbp, r15 cmp eax, 0FFFFFFF6h jbe short loc_30BAA loc_30B93: mov rax, [rsp+78h+var_60] inc dword ptr [rax] mov rbx, r12 mov r12, rax mov r15, rbp mov rbp, [rsp+78h+var_68] jmp short loc_30BB4 loc_30BAA: mov rbp, [rsp+78h+var_68] mov r12, [rsp+78h+var_60] loc_30BB4: cmp r15d, 3 jnz short loc_30BCD push 2Fh ; '/' pop rsi mov rdi, r14 call JS_AtomToString mov rbx, rax mov r15, rdx jmp short loc_30C15 loc_30BCD: mov rdi, r14 mov rsi, rbx mov rdx, r15 call JS_ToString mov [rsp+78h+var_60], r12 mov r12, rax mov [rsp+78h+var_68], rbp mov rbp, r13 mov r13, rdx mov rdi, r14 mov rsi, rbx mov rdx, r15 call JS_FreeValue mov rbx, r12 mov r12, [rsp+78h+var_60] mov r15, r13 cmp r13d, 6 mov r13, rbp mov rbp, [rsp+78h+var_68] jz short loc_30C38 loc_30C15: mov rdi, r14 mov rsi, rbx mov rdx, r15 mov rcx, r12 mov r8, rbp call js_compile_regexp mov qword ptr [rsp+78h+var_40], rax mov qword ptr [rsp+78h+var_40+8], rdx cmp edx, 6 jnz short loc_30C71 loc_30C38: mov rdi, r14 mov rsi, rbx mov rdx, r15 call JS_FreeValue mov rdi, r14 mov rsi, r12 mov rdx, rbp call JS_FreeValue loc_30C54: xor r12d, r12d xor ecx, ecx loc_30C59: mov eax, r12d or rax, rcx mov rdx, r13 add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_30C71: mov rdi, r14 mov rsi, r12 mov rdx, rbp call JS_FreeValue loc_30C7F: movups xmm0, [rsp+78h+var_40] movups [rsp+78h+var_78], xmm0 mov rdi, r14 mov rsi, [rsp+78h+var_50] mov rdx, [rsp+78h+var_58] mov rcx, rbx mov r8, r15 call js_regexp_constructor_internal mov r12, rax mov r13, rdx mov rcx, 0FFFFFFFF00000000h and rcx, rax jmp short loc_30C59
unsigned long long js_regexp_constructor( long long a1, int a2, int a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, double a8, double a9, __m128 a10, __m128 a11, long long a12, unsigned long long *a13) { long long v13; // r15 unsigned long long v14; // r12 long long v15; // rbp int is_regexp; // eax int v17; // r9d int v18; // ebx long long v19; // rax long long Property; // rax long long v21; // rdx long long v22; // r13 unsigned long long v23; // rcx long long v24; // rdx _DWORD *v25; // rbx _DWORD *v26; // rax long long v27; // r15 long long v28; // rdx long long v29; // rbp long long v30; // r12 long long v31; // rdx double v32; // xmm4_8 double v33; // xmm5_8 long long v34; // rdx long long v35; // rdx long long v36; // r12 long long v37; // rdx long long v38; // r13 __int128 v39; // rax long long v41; // rax long long v42; // [rsp+10h] [rbp-68h] _DWORD *v43; // [rsp+18h] [rbp-60h] long long v44; // [rsp+18h] [rbp-60h] long long v45; // [rsp+20h] [rbp-58h] int v46; // [rsp+20h] [rbp-58h] _DWORD *v47; // [rsp+28h] [rbp-50h] int v48; // [rsp+34h] [rbp-44h] __int128 v49; // [rsp+38h] [rbp-40h] LODWORD(v13) = a3; LODWORD(v47) = a2; v14 = *a13; v15 = a13[1]; v43 = (_DWORD *)a13[2]; v42 = a13[3]; is_regexp = js_is_regexp(a1, *a13, v15); if ( is_regexp < 0 ) goto LABEL_34; v18 = is_regexp; if ( (_DWORD)v13 != 3 ) goto LABEL_10; v19 = *(_QWORD *)(*(_QWORD *)(a1 + 24) + 264LL); v47 = *(_DWORD **)(v19 + 8); v13 = *(_QWORD *)(v19 + 16); if ( v18 == 0 || (_DWORD)v42 != 3 ) goto LABEL_10; v45 = *(_QWORD *)(v19 + 16); Property = JS_GetProperty(a1, v14, v15, 61); v22 = Property; v13 = v21; if ( (_DWORD)v21 == 6 ) { v23 = Property & 0xFFFFFFFF00000000LL; LODWORD(v14) = Property; return v23 | (unsigned int)v14; } v48 = js_same_value(a1, (_DWORD *)Property, v21, v47, v45); v24 = v13; LODWORD(v13) = v45; JS_FreeValue(a1, v22, v24); if ( !v48 ) { LABEL_10: v46 = v13; if ( (_DWORD)v15 == -1 && *(_WORD *)(v14 + 6) == 18 ) { v25 = *(_DWORD **)(v14 + 48); ++*v25; if ( (_DWORD)v42 == 3 ) { v26 = *(_DWORD **)(v14 + 56); ++*v26; *(_QWORD *)&v49 = v26; *((_QWORD *)&v49 + 1) = -7LL; LODWORD(v27) = -7; LABEL_37: v41 = js_regexp_constructor_internal(a1, (_DWORD)v47, v46, (_DWORD)v25, v27, v17, v49); LODWORD(v14) = v41; v23 = v41 & 0xFFFFFFFF00000000LL; return v23 | (unsigned int)v14; } v30 = JS_ToString(a1, (long long)v43, v42); v29 = v34; v27 = -7LL; if ( (_DWORD)v34 == 6 ) goto LABEL_33; goto LABEL_32; } if ( v18 ) { v25 = (_DWORD *)JS_GetProperty(a1, v14, v15, 109); v27 = v28; if ( (_DWORD)v28 == 6 ) { v29 = 3LL; v30 = 0LL; LABEL_33: JS_FreeValue(a1, (long long)v25, v27); JS_FreeValue(a1, v30, v29); LABEL_34: LODWORD(v14) = 0; v23 = 0LL; return v23 | (unsigned int)v14; } if ( (_DWORD)v42 == 3 ) { v30 = JS_GetProperty(a1, v14, v15, 110); v29 = v31; if ( (_DWORD)v31 == 6 ) goto LABEL_33; LABEL_29: if ( (_DWORD)v27 == 3 ) { v25 = (_DWORD *)JS_AtomToString(a1, 47); v27 = v35; } else { v44 = v30; v36 = JS_ToString(a1, (long long)v25, v27); v38 = v37; JS_FreeValue(a1, (long long)v25, v27); v25 = (_DWORD *)v36; v30 = v44; v27 = v38; if ( (_DWORD)v38 == 6 ) goto LABEL_33; } LABEL_32: *(_QWORD *)&v39 = js_compile_regexp(a1, (long long)v25, v27, v30, v29, a4, a5, a6, a7, v32, v33, a10, a11); v49 = v39; if ( DWORD2(v39) != 6 ) { JS_FreeValue(a1, v30, v29); goto LABEL_37; } goto LABEL_33; } v14 = (unsigned long long)v25; v15 = v28; if ( (unsigned int)v42 > 0xFFFFFFF6 ) { LABEL_27: ++*v43; v25 = (_DWORD *)v14; v30 = (long long)v43; v27 = v15; v29 = v42; goto LABEL_29; } } else { if ( (unsigned int)v15 >= 0xFFFFFFF7 ) ++*(_DWORD *)v14; if ( (unsigned int)v42 >= 0xFFFFFFF7 ) goto LABEL_27; v25 = (_DWORD *)v14; v27 = v15; } v29 = v42; v30 = (long long)v43; goto LABEL_29; } if ( (unsigned int)v15 >= 0xFFFFFFF7 ) ++*(_DWORD *)v14; v23 = v14 & 0xFFFFFFFF00000000LL; return v23 | (unsigned int)v14; }
js_regexp_constructor: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 MOV R15,RDX MOV qword ptr [RSP + 0x28],RSI MOV R14,RDI MOV R12,qword ptr [R8] MOV RBP,qword ptr [R8 + 0x8] MOV RAX,qword ptr [R8 + 0x10] MOV qword ptr [RSP + 0x18],RAX MOV RAX,qword ptr [R8 + 0x18] MOV qword ptr [RSP + 0x10],RAX MOV RSI,R12 MOV RDX,RBP CALL 0x00145652 PUSH 0x6 POP R13 TEST EAX,EAX JS 0x00130c54 MOV EBX,EAX CMP R15D,0x3 JNZ 0x00130aae MOV RAX,qword ptr [R14 + 0x18] MOV RAX,qword ptr [RAX + 0x108] MOV RCX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x28],RCX MOV R15,qword ptr [RAX + 0x10] TEST EBX,EBX SETNZ AL CMP dword ptr [RSP + 0x10],0x3 SETZ CL AND CL,AL CMP CL,0x1 JNZ 0x00130aae MOV qword ptr [RSP + 0x20],R15 PUSH 0x3d POP RCX MOV RDI,R14 MOV RSI,R12 MOV RDX,RBP CALL 0x0011ebf3 MOV R13,RAX MOV R15,RDX CMP R15D,0x6 JNZ 0x00130a56 MOV RAX,-0x100000000 MOV RCX,R13 AND RCX,RAX MOV R12,R13 MOV R13,R15 JMP 0x00130c59 LAB_00130a56: MOV RDI,R14 MOV RSI,R13 MOV RDX,R15 MOV RCX,qword ptr [RSP + 0x28] MOV R8,qword ptr [RSP + 0x20] CALL 0x00123ae2 MOV dword ptr [RSP + 0x34],EAX MOV RDI,R14 MOV RSI,R13 MOV RDX,R15 MOV R15,qword ptr [RSP + 0x20] CALL 0x0011bbce CMP dword ptr [RSP + 0x34],0x0 PUSH 0x6 POP R13 JZ 0x00130aae CMP EBP,-0x9 JC 0x00130a99 INC dword ptr [R12] LAB_00130a99: MOV RCX,-0x100000000 AND RCX,R12 MOV R13,RBP JMP 0x00130c59 LAB_00130aae: CMP EBP,-0x1 MOV qword ptr [RSP + 0x20],R15 JNZ 0x00130af4 CMP word ptr [R12 + 0x6],0x12 JNZ 0x00130af4 MOV RBX,qword ptr [R12 + 0x30] INC dword ptr [RBX] MOV RDX,qword ptr [RSP + 0x10] CMP EDX,0x3 JNZ 0x00130b63 MOV RAX,qword ptr [R12 + 0x38] INC dword ptr [RAX] MOV qword ptr [RSP + 0x38],RAX MOV qword ptr [RSP + 0x40],-0x7 PUSH -0x7 POP R15 JMP 0x00130c7f LAB_00130af4: TEST EBX,EBX JZ 0x00130b20 PUSH 0x6d POP RCX MOV RDI,R14 MOV RSI,R12 MOV RDX,RBP CALL 0x0011ebf3 MOV RBX,RAX MOV R15,RDX CMP R15D,0x6 JNZ 0x00130b38 PUSH 0x3 POP RBP XOR R12D,R12D JMP 0x00130c38 LAB_00130b20: CMP EBP,-0x9 JC 0x00130b29 INC dword ptr [R12] LAB_00130b29: CMP dword ptr [RSP + 0x10],-0x9 JNC 0x00130b93 MOV RBX,R12 MOV R15,RBP JMP 0x00130baa LAB_00130b38: MOV RAX,qword ptr [RSP + 0x10] CMP EAX,0x3 JNZ 0x00130b88 PUSH 0x6e POP RCX MOV RDI,R14 MOV RSI,R12 MOV RDX,RBP CALL 0x0011ebf3 MOV R12,RAX MOV RBP,RDX CMP EBP,0x6 JNZ 0x00130bb4 JMP 0x00130c38 LAB_00130b63: MOV RDI,R14 MOV RSI,qword ptr [RSP + 0x18] CALL 0x0011ebec MOV R12,RAX MOV RBP,RDX PUSH -0x7 POP R15 CMP EBP,0x6 JNZ 0x00130c15 JMP 0x00130c38 LAB_00130b88: MOV R12,RBX MOV RBP,R15 CMP EAX,-0xa JBE 0x00130baa LAB_00130b93: MOV RAX,qword ptr [RSP + 0x18] INC dword ptr [RAX] MOV RBX,R12 MOV R12,RAX MOV R15,RBP MOV RBP,qword ptr [RSP + 0x10] JMP 0x00130bb4 LAB_00130baa: MOV RBP,qword ptr [RSP + 0x10] MOV R12,qword ptr [RSP + 0x18] LAB_00130bb4: CMP R15D,0x3 JNZ 0x00130bcd PUSH 0x2f POP RSI MOV RDI,R14 CALL 0x0011e540 MOV RBX,RAX MOV R15,RDX JMP 0x00130c15 LAB_00130bcd: MOV RDI,R14 MOV RSI,RBX MOV RDX,R15 CALL 0x0011ebec MOV qword ptr [RSP + 0x18],R12 MOV R12,RAX MOV qword ptr [RSP + 0x10],RBP MOV RBP,R13 MOV R13,RDX MOV RDI,R14 MOV RSI,RBX MOV RDX,R15 CALL 0x0011bbce MOV RBX,R12 MOV R12,qword ptr [RSP + 0x18] MOV R15,R13 CMP R13D,0x6 MOV R13,RBP MOV RBP,qword ptr [RSP + 0x10] JZ 0x00130c38 LAB_00130c15: MOV RDI,R14 MOV RSI,RBX MOV RDX,R15 MOV RCX,R12 MOV R8,RBP CALL 0x0013076d MOV qword ptr [RSP + 0x38],RAX MOV qword ptr [RSP + 0x40],RDX CMP EDX,0x6 JNZ 0x00130c71 LAB_00130c38: MOV RDI,R14 MOV RSI,RBX MOV RDX,R15 CALL 0x0011bbce MOV RDI,R14 MOV RSI,R12 MOV RDX,RBP CALL 0x0011bbce LAB_00130c54: XOR R12D,R12D XOR ECX,ECX LAB_00130c59: MOV EAX,R12D OR RAX,RCX MOV RDX,R13 ADD RSP,0x48 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00130c71: MOV RDI,R14 MOV RSI,R12 MOV RDX,RBP CALL 0x0011bbce LAB_00130c7f: MOVUPS XMM0,xmmword ptr [RSP + 0x38] MOVUPS xmmword ptr [RSP],XMM0 MOV RDI,R14 MOV RSI,qword ptr [RSP + 0x28] MOV RDX,qword ptr [RSP + 0x20] MOV RCX,RBX MOV R8,R15 CALL 0x0013b5ab MOV R12,RAX MOV R13,RDX MOV RCX,-0x100000000 AND RCX,RAX JMP 0x00130c59
int1 [16] js_regexp_constructor (long param_1,int8 param_2,int8 param_3,int8 param_4, int1 (*param_5) [16],int8 param_6) { int1 (*pauVar1) [16]; int *piVar2; int *piVar3; long lVar4; int *piVar5; int iVar6; int iVar7; ulong uVar8; int8 uVar9; uint uVar10; int8 uVar11; int1 auVar12 [16]; int1 auVar13 [16]; int1 auVar14 [16]; int1 auVar15 [12]; uint local_68; int8 local_50; int4 local_40; int4 uStack_38; piVar2 = *(int **)*param_5; uVar9 = *(int8 *)(*param_5 + 8); auVar14 = *param_5; pauVar1 = param_5 + 1; piVar3 = *(int **)*pauVar1; uVar11 = *(int8 *)(param_5[1] + 8); auVar13 = *pauVar1; iVar6 = js_is_regexp(param_1,piVar2,uVar9); if (-1 < iVar6) { uVar10 = (uint)uVar9; local_68 = (uint)uVar11; local_50 = param_2; if ((int)param_3 == 3) { lVar4 = *(long *)(*(long *)(param_1 + 0x18) + 0x108); local_50 = *(int8 *)(lVar4 + 8); param_3 = *(int8 *)(lVar4 + 0x10); if (local_68 == 3 && iVar6 != 0) { auVar12 = JS_GetProperty(param_1,piVar2,uVar9,0x3d); uVar8 = auVar12._0_8_; if (auVar12._8_4_ == 6) { uVar8 = uVar8 & 0xffffffff00000000; auVar14 = auVar12; goto LAB_00130c59; } iVar7 = js_same_value(param_1,uVar8,auVar12._8_8_,local_50,param_3); JS_FreeValue(param_1,uVar8,auVar12._8_8_); if (iVar7 != 0) { if (0xfffffff6 < uVar10) { *piVar2 = *piVar2 + 1; } uVar8 = (ulong)piVar2 & 0xffffffff00000000; goto LAB_00130c59; } } } if ((uVar10 == 0xffffffff) && (*(short *)((long)piVar2 + 6) == 0x12)) { piVar5 = *(int **)(piVar2 + 0xc); *piVar5 = *piVar5 + 1; if (local_68 == 3) { piVar2 = *(int **)(piVar2 + 0xe); *piVar2 = *piVar2 + 1; auVar15._8_4_ = 0xfffffff9; auVar15._0_8_ = piVar2; auVar14._8_8_ = 0xfffffffffffffff9; auVar14._0_8_ = piVar5; LAB_00130c7f: uStack_38 = auVar15._8_4_; local_40 = auVar15._0_4_; auVar14 = js_regexp_constructor_internal (param_1,local_50,param_3,auVar14._0_8_,auVar14._8_8_,param_6,local_40, uStack_38); uVar8 = auVar14._0_8_ & 0xffffffff00000000; goto LAB_00130c59; } auVar12 = JS_ToString(param_1,piVar3); auVar14._8_8_ = 0xfffffffffffffff9; auVar14._0_8_ = piVar5; iVar6 = auVar12._8_4_; joined_r0x00130b7d: if (iVar6 != 6) goto LAB_00130c15; } else if (iVar6 == 0) { if (0xfffffff6 < uVar10) { *piVar2 = *piVar2 + 1; } joined_r0x00130b2e: auVar12 = *pauVar1; if (0xfffffff6 < local_68) { *piVar3 = *piVar3 + 1; auVar12 = auVar13; } LAB_00130bb4: uVar11 = auVar14._8_8_; uVar9 = auVar14._0_8_; if (auVar14._8_4_ != 3) { auVar14 = JS_ToString(param_1,uVar9,uVar11); JS_FreeValue(param_1,uVar9,uVar11); iVar6 = auVar14._8_4_; goto joined_r0x00130b7d; } auVar14 = JS_AtomToString(param_1,0x2f); LAB_00130c15: auVar15 = js_compile_regexp(param_1,auVar14._0_8_,auVar14._8_8_,auVar12._0_8_,auVar12._8_8_); if (auVar15._8_4_ != 6) { JS_FreeValue(param_1,auVar12._0_8_,auVar12._8_8_); goto LAB_00130c7f; } } else { auVar14 = JS_GetProperty(param_1,piVar2,uVar9,0x6d); if (auVar14._8_4_ != 6) { if (local_68 != 3) goto joined_r0x00130b2e; auVar12 = JS_GetProperty(param_1,piVar2,uVar9,0x6e); if (auVar12._8_4_ == 6) goto LAB_00130c38; goto LAB_00130bb4; } auVar12 = ZEXT816(3) << 0x40; } LAB_00130c38: JS_FreeValue(param_1,auVar14._0_8_,auVar14._8_8_); JS_FreeValue(param_1,auVar12._0_8_,auVar12._8_8_); } auVar14 = ZEXT816(6) << 0x40; uVar8 = 0; LAB_00130c59: auVar13._0_8_ = auVar14._0_8_ & 0xffffffff | uVar8; auVar13._8_8_ = auVar14._8_8_; return auVar13; }
19,432
handler::enable_pushed_rowid_filter()
eloqsql/sql/handler.h
virtual void enable_pushed_rowid_filter() { DBUG_ASSERT(save_pushed_rowid_filter != NULL && pushed_rowid_filter == NULL); pushed_rowid_filter= save_pushed_rowid_filter; if (save_rowid_filter_is_active) rowid_filter_is_active= true; save_pushed_rowid_filter= NULL; }
O3
c
handler::enable_pushed_rowid_filter(): pushq %rbp movq %rsp, %rbp movq 0x440(%rdi), %rax movq %rax, 0x430(%rdi) cmpb $0x1, 0x448(%rdi) jne 0xc3b2 movb $0x1, 0x438(%rdi) movq $0x0, 0x440(%rdi) popq %rbp retq nop
_ZN7handler26enable_pushed_rowid_filterEv: push rbp mov rbp, rsp mov rax, [rdi+440h] mov [rdi+430h], rax cmp byte ptr [rdi+448h], 1 jnz short loc_C3B2 mov byte ptr [rdi+438h], 1 loc_C3B2: mov qword ptr [rdi+440h], 0 pop rbp retn
long long handler::enable_pushed_rowid_filter(handler *this) { long long result; // rax result = *((_QWORD *)this + 136); *((_QWORD *)this + 134) = result; if ( *((_BYTE *)this + 1096) == 1 ) *((_BYTE *)this + 1080) = 1; *((_QWORD *)this + 136) = 0LL; return result; }
enable_pushed_rowid_filter: PUSH RBP MOV RBP,RSP MOV RAX,qword ptr [RDI + 0x440] MOV qword ptr [RDI + 0x430],RAX CMP byte ptr [RDI + 0x448],0x1 JNZ 0x0010c3b2 MOV byte ptr [RDI + 0x438],0x1 LAB_0010c3b2: MOV qword ptr [RDI + 0x440],0x0 POP RBP RET
/* handler::enable_pushed_rowid_filter() */ void __thiscall handler::enable_pushed_rowid_filter(handler *this) { *(int8 *)(this + 0x430) = *(int8 *)(this + 0x440); if (this[0x448] == (handler)0x1) { this[0x438] = (handler)0x1; } *(int8 *)(this + 0x440) = 0; return; }
19,433
ma_mempack_get_block_info
eloqsql/storage/maria/ma_packrec.c
static uchar * _ma_mempack_get_block_info(MARIA_HA *maria, MARIA_BIT_BUFF *bit_buff, MARIA_BLOCK_INFO *info, uchar **rec_buff_p, size_t *rec_buff_size_p, uchar *header) { MARIA_SHARE *share= maria->s; myf flag= MY_WME | (share->temporary ? MY_THREAD_SPECIFIC : 0); header+= read_pack_length((uint) share->pack.version, header, &info->rec_len); if (share->base.blobs) { header+= read_pack_length((uint) share->pack.version, header, &info->blob_len); /* _ma_alloc_rec_buff sets my_errno on error */ if (_ma_alloc_buffer(rec_buff_p, rec_buff_size_p, info->blob_len + share->base.extra_rec_buff_size, flag)) return 0; /* not enough memory */ bit_buff->blob_pos= *rec_buff_p; bit_buff->blob_end= *rec_buff_p + info->blob_len; } return header; }
O0
c
ma_mempack_get_block_info: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movq %r9, -0x38(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x40(%rbp) movq -0x40(%rbp), %rax movsbl 0x7d9(%rax), %edx xorl %eax, %eax movl $0x10000, %ecx # imm = 0x10000 cmpl $0x0, %edx cmovnel %ecx, %eax orl $0x10, %eax movl %eax, %eax movq %rax, -0x48(%rbp) movq -0x40(%rbp), %rax movzbl 0x59c(%rax), %edi movq -0x38(%rbp), %rsi movq -0x20(%rbp), %rdx addq $0x18, %rdx callq 0x49120 movl %eax, %ecx movq -0x38(%rbp), %rax movl %ecx, %ecx addq %rcx, %rax movq %rax, -0x38(%rbp) movq -0x40(%rbp), %rax cmpl $0x0, 0x3f0(%rax) je 0x4bc6d movq -0x40(%rbp), %rax movzbl 0x59c(%rax), %edi movq -0x38(%rbp), %rsi movq -0x20(%rbp), %rdx addq $0x30, %rdx callq 0x49120 movl %eax, %ecx movq -0x38(%rbp), %rax movl %ecx, %ecx addq %rcx, %rax movq %rax, -0x38(%rbp) movq -0x28(%rbp), %rdi movq -0x30(%rbp), %rsi movq -0x20(%rbp), %rax movq 0x30(%rax), %rdx movq -0x40(%rbp), %rax movl 0x424(%rax), %eax addq %rax, %rdx movq -0x48(%rbp), %rcx callq 0x32d40 cmpb $0x0, %al je 0x4bc47 movq $0x0, -0x8(%rbp) jmp 0x4bc75 movq -0x28(%rbp), %rax movq (%rax), %rcx movq -0x18(%rbp), %rax movq %rcx, 0x18(%rax) movq -0x28(%rbp), %rax movq (%rax), %rcx movq -0x20(%rbp), %rax addq 0x30(%rax), %rcx movq -0x18(%rbp), %rax movq %rcx, 0x20(%rax) movq -0x38(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x50, %rsp popq %rbp retq nop
_ma_mempack_get_block_info: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov [rbp+var_30], r8 mov [rbp+var_38], r9 mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_40], rax mov rax, [rbp+var_40] movsx edx, byte ptr [rax+7D9h] xor eax, eax mov ecx, 10000h cmp edx, 0 cmovnz eax, ecx or eax, 10h mov eax, eax mov [rbp+var_48], rax mov rax, [rbp+var_40] movzx edi, byte ptr [rax+59Ch] mov rsi, [rbp+var_38] mov rdx, [rbp+var_20] add rdx, 18h call read_pack_length mov ecx, eax mov rax, [rbp+var_38] mov ecx, ecx add rax, rcx mov [rbp+var_38], rax mov rax, [rbp+var_40] cmp dword ptr [rax+3F0h], 0 jz loc_4BC6D mov rax, [rbp+var_40] movzx edi, byte ptr [rax+59Ch] mov rsi, [rbp+var_38] mov rdx, [rbp+var_20] add rdx, 30h ; '0' call read_pack_length mov ecx, eax mov rax, [rbp+var_38] mov ecx, ecx add rax, rcx mov [rbp+var_38], rax mov rdi, [rbp+var_28] mov rsi, [rbp+var_30] mov rax, [rbp+var_20] mov rdx, [rax+30h] mov rax, [rbp+var_40] mov eax, [rax+424h] add rdx, rax mov rcx, [rbp+var_48] call _ma_alloc_buffer cmp al, 0 jz short loc_4BC47 mov [rbp+var_8], 0 jmp short loc_4BC75 loc_4BC47: mov rax, [rbp+var_28] mov rcx, [rax] mov rax, [rbp+var_18] mov [rax+18h], rcx mov rax, [rbp+var_28] mov rcx, [rax] mov rax, [rbp+var_20] add rcx, [rax+30h] mov rax, [rbp+var_18] mov [rax+20h], rcx loc_4BC6D: mov rax, [rbp+var_38] mov [rbp+var_8], rax loc_4BC75: mov rax, [rbp+var_8] add rsp, 50h pop rbp retn
unsigned __int8 * ma_mempack_get_block_info( long long *a1, long long a2, long long a3, long long *a4, unsigned long long *a5, unsigned __int8 *a6) { int v6; // eax long long v8; // [rsp+8h] [rbp-48h] long long v9; // [rsp+10h] [rbp-40h] unsigned __int8 *v10; // [rsp+18h] [rbp-38h] v9 = *a1; v6 = 0; if ( *(_BYTE *)(*a1 + 2009) ) v6 = 0x10000; v8 = v6 | 0x10u; v10 = &a6[(unsigned int)read_pack_length(*(unsigned __int8 *)(v9 + 1436), a6, (_QWORD *)(a3 + 24))]; if ( !*(_DWORD *)(v9 + 1008) ) return v10; v10 += (unsigned int)read_pack_length(*(unsigned __int8 *)(v9 + 1436), v10, (_QWORD *)(a3 + 48)); if ( !ma_alloc_buffer(a4, a5, *(unsigned int *)(v9 + 1060) + *(_QWORD *)(a3 + 48), v8) ) { *(_QWORD *)(a2 + 24) = *a4; *(_QWORD *)(a2 + 32) = *(_QWORD *)(a3 + 48) + *a4; return v10; } return 0LL; }
_ma_mempack_get_block_info: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV qword ptr [RBP + -0x30],R8 MOV qword ptr [RBP + -0x38],R9 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x40] MOVSX EDX,byte ptr [RAX + 0x7d9] XOR EAX,EAX MOV ECX,0x10000 CMP EDX,0x0 CMOVNZ EAX,ECX OR EAX,0x10 MOV EAX,EAX MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x40] MOVZX EDI,byte ptr [RAX + 0x59c] MOV RSI,qword ptr [RBP + -0x38] MOV RDX,qword ptr [RBP + -0x20] ADD RDX,0x18 CALL 0x00149120 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x38] MOV ECX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x40] CMP dword ptr [RAX + 0x3f0],0x0 JZ 0x0014bc6d MOV RAX,qword ptr [RBP + -0x40] MOVZX EDI,byte ptr [RAX + 0x59c] MOV RSI,qword ptr [RBP + -0x38] MOV RDX,qword ptr [RBP + -0x20] ADD RDX,0x30 CALL 0x00149120 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x38] MOV ECX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x38],RAX MOV RDI,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RAX + 0x30] MOV RAX,qword ptr [RBP + -0x40] MOV EAX,dword ptr [RAX + 0x424] ADD RDX,RAX MOV RCX,qword ptr [RBP + -0x48] CALL 0x00132d40 CMP AL,0x0 JZ 0x0014bc47 MOV qword ptr [RBP + -0x8],0x0 JMP 0x0014bc75 LAB_0014bc47: MOV RAX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x18],RCX MOV RAX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x20] ADD RCX,qword ptr [RAX + 0x30] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x20],RCX LAB_0014bc6d: MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x8],RAX LAB_0014bc75: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x50 POP RBP RET
long _ma_mempack_get_block_info (long *param_1,long param_2,long param_3,long *param_4,int8 param_5, long param_6) { long lVar1; char cVar2; uint uVar3; uint uVar4; long local_40; lVar1 = *param_1; uVar3 = 0; if (*(char *)(lVar1 + 0x7d9) != '\0') { uVar3 = 0x10000; } uVar4 = read_pack_length(*(int1 *)(lVar1 + 0x59c),param_6,param_3 + 0x18); local_40 = param_6 + (ulong)uVar4; if (*(int *)(lVar1 + 0x3f0) != 0) { uVar4 = read_pack_length(*(int1 *)(lVar1 + 0x59c),local_40,param_3 + 0x30); local_40 = local_40 + (ulong)uVar4; cVar2 = _ma_alloc_buffer(param_4,param_5, *(long *)(param_3 + 0x30) + (ulong)*(uint *)(lVar1 + 0x424), uVar3 | 0x10); if (cVar2 != '\0') { return 0; } *(long *)(param_2 + 0x18) = *param_4; *(long *)(param_2 + 0x20) = *param_4 + *(long *)(param_3 + 0x30); } return local_40; }
19,434
flux::parser::TemplateDecl::clone() const
kvthweatt[P]FluxLang/src/parser/ast.cpp
std::unique_ptr<Decl> TemplateDecl::clone() const { std::vector<TemplateDecl::Parameter> clonedParameters; for (const auto& param : parameters) { if (param.kind == TemplateDecl::Parameter::Kind::TYPE) { clonedParameters.emplace_back(param.name, param.kind); } else { clonedParameters.emplace_back( param.name, param.kind, static_cast<std::unique_ptr<TypeExpr>>(param.type->clone())); } } return std::make_unique<TemplateDecl>( std::move(clonedParameters), declaration->clone(), range); }
O0
cpp
flux::parser::TemplateDecl::clone() const: pushq %rbp movq %rsp, %rbp subq $0xa0, %rsp movq %rdi, -0x88(%rbp) movq %rdi, %rax movq %rax, -0x80(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x78(%rbp) leaq -0x28(%rbp), %rdi callq 0x223e0 movq -0x78(%rbp), %rax addq $0x38, %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rdi callq 0x22400 movq %rax, -0x38(%rbp) movq -0x30(%rbp), %rdi callq 0x22430 movq %rax, -0x40(%rbp) leaq -0x38(%rbp), %rdi leaq -0x40(%rbp), %rsi callq 0x22460 testb $0x1, %al jne 0x1ca6e jmp 0x1cb37 leaq -0x38(%rbp), %rdi callq 0x224a0 movq %rax, -0x48(%rbp) movq -0x48(%rbp), %rax cmpl $0x0, 0x10(%rax) jne 0x1cab1 movq -0x48(%rbp), %rsi movq %rsi, %rdx addq $0x10, %rdx leaq -0x28(%rbp), %rdi callq 0x224c0 jmp 0x1ca9b jmp 0x1cb27 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x50(%rbp) movl %eax, -0x54(%rbp) jmp 0x1cbbe movq -0x48(%rbp), %rdi movq %rdi, -0x98(%rbp) movq %rdi, %rax addq $0x10, %rax movq %rax, -0x90(%rbp) addq $0x18, %rdi callq 0x1e960 movq %rax, %rsi movq (%rsi), %rax movq 0x18(%rax), %rax leaq -0x60(%rbp), %rdi callq *%rax jmp 0x1cae5 movq -0x90(%rbp), %rdx movq -0x98(%rbp), %rsi leaq -0x28(%rbp), %rdi leaq -0x60(%rbp), %rcx callq 0x22540 jmp 0x1cb02 leaq -0x60(%rbp), %rdi callq 0x1ea30 jmp 0x1cb27 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x50(%rbp) movl %eax, -0x54(%rbp) leaq -0x60(%rbp), %rdi callq 0x1ea30 jmp 0x1cbbe jmp 0x1cb29 leaq -0x38(%rbp), %rdi callq 0x225d0 jmp 0x1ca58 movq -0x78(%rbp), %rdi addq $0x50, %rdi callq 0x20d70 movq %rax, %rsi movq (%rsi), %rax movq 0x18(%rax), %rax leaq -0x70(%rbp), %rdi callq *%rax jmp 0x1cb56 movq -0x78(%rbp), %rcx addq $0x8, %rcx leaq -0x68(%rbp), %rdi leaq -0x28(%rbp), %rsi leaq -0x70(%rbp), %rdx callq 0x225f0 jmp 0x1cb71 movq -0x88(%rbp), %rdi leaq -0x68(%rbp), %rsi callq 0x226e0 leaq -0x68(%rbp), %rdi callq 0x22730 leaq -0x70(%rbp), %rdi callq 0xbf30 leaq -0x28(%rbp), %rdi callq 0x22790 movq -0x80(%rbp), %rax addq $0xa0, %rsp popq %rbp retq movq %rax, %rcx movl %edx, %eax movq %rcx, -0x50(%rbp) movl %eax, -0x54(%rbp) leaq -0x70(%rbp), %rdi callq 0xbf30 leaq -0x28(%rbp), %rdi callq 0x22790 movq -0x50(%rbp), %rdi callq 0x75a0
_ZNK4flux6parser12TemplateDecl5cloneEv: push rbp mov rbp, rsp sub rsp, 0A0h mov [rbp+var_88], rdi mov rax, rdi mov [rbp+var_80], rax mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_10] mov [rbp+var_78], rax lea rdi, [rbp+var_28] call _ZNSt6vectorIN4flux6parser12TemplateDecl9ParameterESaIS3_EEC2Ev; std::vector<flux::parser::TemplateDecl::Parameter>::vector(void) mov rax, [rbp+var_78] add rax, 38h ; '8' mov [rbp+var_30], rax mov rdi, [rbp+var_30] call _ZNKSt6vectorIN4flux6parser12TemplateDecl9ParameterESaIS3_EE5beginEv; std::vector<flux::parser::TemplateDecl::Parameter>::begin(void) mov [rbp+var_38], rax mov rdi, [rbp+var_30] call _ZNKSt6vectorIN4flux6parser12TemplateDecl9ParameterESaIS3_EE3endEv; std::vector<flux::parser::TemplateDecl::Parameter>::end(void) mov [rbp+var_40], rax loc_1CA58: lea rdi, [rbp+var_38] lea rsi, [rbp+var_40] call _ZN9__gnu_cxxneIPKN4flux6parser12TemplateDecl9ParameterESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_; __gnu_cxx::operator!=<flux::parser::TemplateDecl::Parameter const*,std::vector<flux::parser::TemplateDecl::Parameter>>(__gnu_cxx::__normal_iterator<flux::parser::TemplateDecl::Parameter const*,std::vector<flux::parser::TemplateDecl::Parameter>> const&,__gnu_cxx::__normal_iterator<flux::parser::TemplateDecl::Parameter const*,std::vector<flux::parser::TemplateDecl::Parameter>> const&) test al, 1 jnz short loc_1CA6E jmp loc_1CB37 loc_1CA6E: lea rdi, [rbp+var_38] call _ZNK9__gnu_cxx17__normal_iteratorIPKN4flux6parser12TemplateDecl9ParameterESt6vectorIS4_SaIS4_EEEdeEv; __gnu_cxx::__normal_iterator<flux::parser::TemplateDecl::Parameter const*,std::vector<flux::parser::TemplateDecl::Parameter>>::operator*(void) mov [rbp+var_48], rax mov rax, [rbp+var_48] cmp dword ptr [rax+10h], 0 jnz short loc_1CAB1 mov rsi, [rbp+var_48] mov rdx, rsi add rdx, 10h lea rdi, [rbp+var_28] call _ZNSt6vectorIN4flux6parser12TemplateDecl9ParameterESaIS3_EE12emplace_backIJRKSt17basic_string_viewIcSt11char_traitsIcEERKNS3_4KindEEEERS3_DpOT_; std::vector<flux::parser::TemplateDecl::Parameter>::emplace_back<std::string_view const&,flux::parser::TemplateDecl::Parameter::Kind const&>(std::string_view const&,flux::parser::TemplateDecl::Parameter::Kind const&) jmp short $+2 loc_1CA9B: jmp loc_1CB27 mov rcx, rax mov eax, edx mov [rbp+var_50], rcx mov [rbp+var_54], eax jmp loc_1CBBE loc_1CAB1: mov rdi, [rbp+var_48] mov [rbp+var_98], rdi mov rax, rdi add rax, 10h mov [rbp+var_90], rax add rdi, 18h call _ZNKSt10unique_ptrIN4flux6parser8TypeExprESt14default_deleteIS2_EEptEv; std::unique_ptr<flux::parser::TypeExpr>::operator->(void) mov rsi, rax mov rax, [rsi] mov rax, [rax+18h] lea rdi, [rbp+var_60] call rax jmp short $+2 loc_1CAE5: mov rdx, [rbp+var_90] mov rsi, [rbp+var_98] lea rdi, [rbp+var_28] lea rcx, [rbp+var_60] call _ZNSt6vectorIN4flux6parser12TemplateDecl9ParameterESaIS3_EE12emplace_backIJRKSt17basic_string_viewIcSt11char_traitsIcEERKNS3_4KindESt10unique_ptrINS1_8TypeExprESt14default_deleteISH_EEEEERS3_DpOT_; std::vector<flux::parser::TemplateDecl::Parameter>::emplace_back<std::string_view const&,flux::parser::TemplateDecl::Parameter::Kind const&,std::unique_ptr<flux::parser::TypeExpr>>(std::string_view const&,flux::parser::TemplateDecl::Parameter::Kind const&,std::unique_ptr<flux::parser::TypeExpr> &&) jmp short $+2 loc_1CB02: lea rdi, [rbp+var_60] call _ZNSt10unique_ptrIN4flux6parser8TypeExprESt14default_deleteIS2_EED2Ev; std::unique_ptr<flux::parser::TypeExpr>::~unique_ptr() jmp short loc_1CB27 mov rcx, rax mov eax, edx mov [rbp+var_50], rcx mov [rbp+var_54], eax lea rdi, [rbp+var_60] call _ZNSt10unique_ptrIN4flux6parser8TypeExprESt14default_deleteIS2_EED2Ev; std::unique_ptr<flux::parser::TypeExpr>::~unique_ptr() jmp loc_1CBBE loc_1CB27: jmp short $+2 loc_1CB29: lea rdi, [rbp+var_38] call _ZN9__gnu_cxx17__normal_iteratorIPKN4flux6parser12TemplateDecl9ParameterESt6vectorIS4_SaIS4_EEEppEv; __gnu_cxx::__normal_iterator<flux::parser::TemplateDecl::Parameter const*,std::vector<flux::parser::TemplateDecl::Parameter>>::operator++(void) jmp loc_1CA58 loc_1CB37: mov rdi, [rbp+var_78] add rdi, 50h ; 'P' call _ZNKSt10unique_ptrIN4flux6parser4DeclESt14default_deleteIS2_EEptEv; std::unique_ptr<flux::parser::Decl>::operator->(void) mov rsi, rax mov rax, [rsi] mov rax, [rax+18h] lea rdi, [rbp+var_70] call rax jmp short $+2 loc_1CB56: mov rcx, [rbp+var_78] add rcx, 8 lea rdi, [rbp+var_68] lea rsi, [rbp+var_28] lea rdx, [rbp+var_70] call _ZSt11make_uniqueIN4flux6parser12TemplateDeclEJSt6vectorINS2_9ParameterESaIS4_EESt10unique_ptrINS1_4DeclESt14default_deleteIS8_EERKNS0_6common11SourceRangeEEENSt9_MakeUniqIT_E15__single_objectEDpOT0_; std::make_unique<flux::parser::TemplateDecl,std::vector<flux::parser::TemplateDecl::Parameter>,std::unique_ptr<flux::parser::Decl>,flux::common::SourceRange const&>(std::vector<flux::parser::TemplateDecl::Parameter>,std::unique_ptr<flux::parser::Decl>,flux::common::SourceRange const&) jmp short $+2 loc_1CB71: mov rdi, [rbp+var_88] lea rsi, [rbp+var_68] call _ZNSt10unique_ptrIN4flux6parser4DeclESt14default_deleteIS2_EEC2INS1_12TemplateDeclES3_IS7_EvEEOS_IT_T0_E; std::unique_ptr<flux::parser::Decl>::unique_ptr<flux::parser::TemplateDecl,std::default_delete<flux::parser::TemplateDecl>,void>(std::unique_ptr&&<flux::parser::TemplateDecl,std::default_delete<flux::parser::TemplateDecl>>) lea rdi, [rbp+var_68] call _ZNSt10unique_ptrIN4flux6parser12TemplateDeclESt14default_deleteIS2_EED2Ev; std::unique_ptr<flux::parser::TemplateDecl>::~unique_ptr() lea rdi, [rbp+var_70] call _ZNSt10unique_ptrIN4flux6parser4DeclESt14default_deleteIS2_EED2Ev; std::unique_ptr<flux::parser::Decl>::~unique_ptr() lea rdi, [rbp+var_28] call _ZNSt6vectorIN4flux6parser12TemplateDecl9ParameterESaIS3_EED2Ev; std::vector<flux::parser::TemplateDecl::Parameter>::~vector() mov rax, [rbp+var_80] add rsp, 0A0h pop rbp retn mov rcx, rax mov eax, edx mov [rbp+var_50], rcx mov [rbp+var_54], eax lea rdi, [rbp+var_70] call _ZNSt10unique_ptrIN4flux6parser4DeclESt14default_deleteIS2_EED2Ev; std::unique_ptr<flux::parser::Decl>::~unique_ptr() loc_1CBBE: lea rdi, [rbp+var_28] call _ZNSt6vectorIN4flux6parser12TemplateDecl9ParameterESaIS3_EED2Ev; std::vector<flux::parser::TemplateDecl::Parameter>::~vector() mov rdi, [rbp+var_50] call __Unwind_Resume
flux::parser::TemplateDecl * flux::parser::TemplateDecl::clone(flux::parser::TemplateDecl *this, long long a2) { long long v2; // rsi long long v3; // rsi long long v5; // [rsp+8h] [rbp-98h] long long v6; // [rsp+10h] [rbp-90h] _BYTE v8[8]; // [rsp+30h] [rbp-70h] BYREF _BYTE v9[8]; // [rsp+38h] [rbp-68h] BYREF _BYTE v10[12]; // [rsp+40h] [rbp-60h] BYREF long long v11; // [rsp+58h] [rbp-48h] long long v12; // [rsp+60h] [rbp-40h] BYREF _QWORD v13[2]; // [rsp+68h] [rbp-38h] BYREF _BYTE v14[24]; // [rsp+78h] [rbp-28h] BYREF long long v15; // [rsp+90h] [rbp-10h] flux::parser::TemplateDecl *v16; // [rsp+98h] [rbp-8h] v16 = this; v15 = a2; std::vector<flux::parser::TemplateDecl::Parameter>::vector(v14); v13[1] = a2 + 56; v13[0] = std::vector<flux::parser::TemplateDecl::Parameter>::begin(a2 + 56); v12 = std::vector<flux::parser::TemplateDecl::Parameter>::end(a2 + 56); while ( (__gnu_cxx::operator!=<flux::parser::TemplateDecl::Parameter const*,std::vector<flux::parser::TemplateDecl::Parameter>>( v13, &v12) & 1) != 0 ) { v11 = __gnu_cxx::__normal_iterator<flux::parser::TemplateDecl::Parameter const*,std::vector<flux::parser::TemplateDecl::Parameter>>::operator*(v13); if ( *(_DWORD *)(v11 + 16) ) { v5 = v11; v6 = v11 + 16; v2 = std::unique_ptr<flux::parser::TypeExpr>::operator->(v11 + 24); (*(void ( **)(_BYTE *))(*(_QWORD *)v2 + 24LL))(v10); std::vector<flux::parser::TemplateDecl::Parameter>::emplace_back<std::string_view const&,flux::parser::TemplateDecl::Parameter::Kind const&,std::unique_ptr<flux::parser::TypeExpr>>( v14, v5, v6, v10); std::unique_ptr<flux::parser::TypeExpr>::~unique_ptr(v10); } else { std::vector<flux::parser::TemplateDecl::Parameter>::emplace_back<std::string_view const&,flux::parser::TemplateDecl::Parameter::Kind const&>( v14, v11, v11 + 16); } __gnu_cxx::__normal_iterator<flux::parser::TemplateDecl::Parameter const*,std::vector<flux::parser::TemplateDecl::Parameter>>::operator++(v13); } v3 = std::unique_ptr<flux::parser::Decl>::operator->(a2 + 80); (*(void ( **)(_BYTE *))(*(_QWORD *)v3 + 24LL))(v8); std::make_unique<flux::parser::TemplateDecl,std::vector<flux::parser::TemplateDecl::Parameter>,std::unique_ptr<flux::parser::Decl>,flux::common::SourceRange const&>( v9, v14, v8, a2 + 8); std::unique_ptr<flux::parser::Decl>::unique_ptr<flux::parser::TemplateDecl,std::default_delete<flux::parser::TemplateDecl>,void>( this, v9); std::unique_ptr<flux::parser::TemplateDecl>::~unique_ptr(v9); std::unique_ptr<flux::parser::Decl>::~unique_ptr((long long)v8); std::vector<flux::parser::TemplateDecl::Parameter>::~vector(v14); return this; }
clone: PUSH RBP MOV RBP,RSP SUB RSP,0xa0 MOV qword ptr [RBP + -0x88],RDI MOV RAX,RDI MOV qword ptr [RBP + -0x80],RAX MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x78],RAX LEA RDI,[RBP + -0x28] CALL 0x001223e0 MOV RAX,qword ptr [RBP + -0x78] ADD RAX,0x38 MOV qword ptr [RBP + -0x30],RAX MOV RDI,qword ptr [RBP + -0x30] CALL 0x00122400 MOV qword ptr [RBP + -0x38],RAX MOV RDI,qword ptr [RBP + -0x30] CALL 0x00122430 MOV qword ptr [RBP + -0x40],RAX LAB_0011ca58: LEA RDI,[RBP + -0x38] LEA RSI,[RBP + -0x40] CALL 0x00122460 TEST AL,0x1 JNZ 0x0011ca6e JMP 0x0011cb37 LAB_0011ca6e: LEA RDI,[RBP + -0x38] CALL 0x001224a0 MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x48] CMP dword ptr [RAX + 0x10],0x0 JNZ 0x0011cab1 MOV RSI,qword ptr [RBP + -0x48] MOV RDX,RSI ADD RDX,0x10 LAB_0011ca90: LEA RDI,[RBP + -0x28] CALL 0x001224c0 JMP 0x0011ca9b LAB_0011ca9b: JMP 0x0011cb27 LAB_0011cab1: MOV RDI,qword ptr [RBP + -0x48] MOV qword ptr [RBP + -0x98],RDI MOV RAX,RDI ADD RAX,0x10 MOV qword ptr [RBP + -0x90],RAX ADD RDI,0x18 CALL 0x0011e960 MOV RSI,RAX MOV RAX,qword ptr [RSI] MOV RAX,qword ptr [RAX + 0x18] LEA RDI,[RBP + -0x60] CALL RAX JMP 0x0011cae5 LAB_0011cae5: MOV RDX,qword ptr [RBP + -0x90] MOV RSI,qword ptr [RBP + -0x98] LEA RDI,[RBP + -0x28] LEA RCX,[RBP + -0x60] CALL 0x00122540 JMP 0x0011cb02 LAB_0011cb02: LEA RDI,[RBP + -0x60] CALL 0x0011ea30 JMP 0x0011cb27 LAB_0011cb27: JMP 0x0011cb29 LAB_0011cb29: LEA RDI,[RBP + -0x38] CALL 0x001225d0 JMP 0x0011ca58 LAB_0011cb37: MOV RDI,qword ptr [RBP + -0x78] ADD RDI,0x50 CALL 0x00120d70 MOV RSI,RAX MOV RAX,qword ptr [RSI] MOV RAX,qword ptr [RAX + 0x18] LAB_0011cb4e: LEA RDI,[RBP + -0x70] CALL RAX JMP 0x0011cb56 LAB_0011cb56: MOV RCX,qword ptr [RBP + -0x78] ADD RCX,0x8 LAB_0011cb5e: LEA RDI,[RBP + -0x68] LEA RSI,[RBP + -0x28] LEA RDX,[RBP + -0x70] CALL 0x001225f0 LAB_0011cb6f: JMP 0x0011cb71 LAB_0011cb71: MOV RDI,qword ptr [RBP + -0x88] LEA RSI,[RBP + -0x68] CALL 0x001226e0 LEA RDI,[RBP + -0x68] CALL 0x00122730 LEA RDI,[RBP + -0x70] CALL 0x0010bf30 LEA RDI,[RBP + -0x28] CALL 0x00122790 MOV RAX,qword ptr [RBP + -0x80] ADD RSP,0xa0 POP RBP RET
/* flux::parser::TemplateDecl::clone() const */ unique_ptr<flux::parser::Decl,std::default_delete<flux::parser::Decl>> * flux::parser::TemplateDecl::clone(void) { bool bVar1; basic_string_view *pbVar2; long *plVar3; long in_RSI; unique_ptr<flux::parser::Decl,std::default_delete<flux::parser::Decl>> *in_RDI; SourceRange local_78 [8]; vector local_70 [8]; unique_ptr local_68 [24]; basic_string_view *local_50; int8 local_48; int8 local_40; vector<flux::parser::TemplateDecl::Parameter,std::allocator<flux::parser::TemplateDecl::Parameter>> *local_38; vector<flux::parser::TemplateDecl::Parameter,std::allocator<flux::parser::TemplateDecl::Parameter>> local_30 [40]; std:: vector<flux::parser::TemplateDecl::Parameter,std::allocator<flux::parser::TemplateDecl::Parameter>> ::vector(local_30); local_38 = (vector<flux::parser::TemplateDecl::Parameter,std::allocator<flux::parser::TemplateDecl::Parameter>> *)(in_RSI + 0x38); local_40 = std:: vector<flux::parser::TemplateDecl::Parameter,std::allocator<flux::parser::TemplateDecl::Parameter>> ::begin(local_38); local_48 = std:: vector<flux::parser::TemplateDecl::Parameter,std::allocator<flux::parser::TemplateDecl::Parameter>> ::end(local_38); while( true ) { bVar1 = __gnu_cxx::operator!=((__normal_iterator *)&local_40,(__normal_iterator *)&local_48); if (!bVar1) break; pbVar2 = (basic_string_view *) __gnu_cxx:: __normal_iterator<flux::parser::TemplateDecl::Parameter_const*,std::vector<flux::parser::TemplateDecl::Parameter,std::allocator<flux::parser::TemplateDecl::Parameter>>> ::operator*((__normal_iterator<flux::parser::TemplateDecl::Parameter_const*,std::vector<flux::parser::TemplateDecl::Parameter,std::allocator<flux::parser::TemplateDecl::Parameter>>> *)&local_40); local_50 = pbVar2; if (*(int *)(pbVar2 + 0x10) == 0) { /* try { // try from 0011ca90 to 0011cae2 has its CatchHandler @ 0011caa0 */ std:: vector<flux::parser::TemplateDecl::Parameter,std::allocator<flux::parser::TemplateDecl::Parameter>> :: emplace_back<std::basic_string_view<char,std::char_traits<char>>const&,flux::parser::TemplateDecl::Parameter::Kind_const&> (local_30,pbVar2,(Kind *)(pbVar2 + 0x10)); } else { plVar3 = (long *)std:: unique_ptr<flux::parser::TypeExpr,std::default_delete<flux::parser::TypeExpr>> ::operator->((unique_ptr<flux::parser::TypeExpr,std::default_delete<flux::parser::TypeExpr>> *)(pbVar2 + 0x18)); (**(code **)(*plVar3 + 0x18))(local_68); /* try { // try from 0011cae5 to 0011caff has its CatchHandler @ 0011cb0d */ std:: vector<flux::parser::TemplateDecl::Parameter,std::allocator<flux::parser::TemplateDecl::Parameter>> :: emplace_back<std::basic_string_view<char,std::char_traits<char>>const&,flux::parser::TemplateDecl::Parameter::Kind_const&,std::unique_ptr<flux::parser::TypeExpr,std::default_delete<flux::parser::TypeExpr>>> (local_30,pbVar2,(Kind *)(pbVar2 + 0x10),local_68); std::unique_ptr<flux::parser::TypeExpr,std::default_delete<flux::parser::TypeExpr>>:: ~unique_ptr((unique_ptr<flux::parser::TypeExpr,std::default_delete<flux::parser::TypeExpr>> *) local_68); } __gnu_cxx:: __normal_iterator<flux::parser::TemplateDecl::Parameter_const*,std::vector<flux::parser::TemplateDecl::Parameter,std::allocator<flux::parser::TemplateDecl::Parameter>>> ::operator++((__normal_iterator<flux::parser::TemplateDecl::Parameter_const*,std::vector<flux::parser::TemplateDecl::Parameter,std::allocator<flux::parser::TemplateDecl::Parameter>>> *)&local_40); } plVar3 = (long *)std::unique_ptr<flux::parser::Decl,std::default_delete<flux::parser::Decl>>:: operator->((unique_ptr<flux::parser::Decl,std::default_delete<flux::parser::Decl>> *)(in_RSI + 0x50)); /* try { // try from 0011cb4e to 0011cb53 has its CatchHandler @ 0011caa0 */ (**(code **)(*plVar3 + 0x18))(local_78); /* try { // try from 0011cb5e to 0011cb6e has its CatchHandler @ 0011cba9 */ std:: make_unique<flux::parser::TemplateDecl,std::vector<flux::parser::TemplateDecl::Parameter,std::allocator<flux::parser::TemplateDecl::Parameter>>,std::unique_ptr<flux::parser::Decl,std::default_delete<flux::parser::Decl>>,flux::common::SourceRange_const&> (local_70,(unique_ptr *)local_30,local_78); std::unique_ptr<flux::parser::Decl,std::default_delete<flux::parser::Decl>>:: unique_ptr<flux::parser::TemplateDecl,std::default_delete<flux::parser::TemplateDecl>,void> (in_RDI,(unique_ptr *)local_70); std::unique_ptr<flux::parser::TemplateDecl,std::default_delete<flux::parser::TemplateDecl>>:: ~unique_ptr((unique_ptr<flux::parser::TemplateDecl,std::default_delete<flux::parser::TemplateDecl>> *)local_70); std::unique_ptr<flux::parser::Decl,std::default_delete<flux::parser::Decl>>::~unique_ptr ((unique_ptr<flux::parser::Decl,std::default_delete<flux::parser::Decl>> *)local_78); std:: vector<flux::parser::TemplateDecl::Parameter,std::allocator<flux::parser::TemplateDecl::Parameter>> ::~vector(local_30); return in_RDI; }
19,435
flux::parser::TemplateDecl::clone() const
kvthweatt[P]FluxLang/src/parser/ast.cpp
std::unique_ptr<Decl> TemplateDecl::clone() const { std::vector<TemplateDecl::Parameter> clonedParameters; for (const auto& param : parameters) { if (param.kind == TemplateDecl::Parameter::Kind::TYPE) { clonedParameters.emplace_back(param.name, param.kind); } else { clonedParameters.emplace_back( param.name, param.kind, static_cast<std::unique_ptr<TypeExpr>>(param.type->clone())); } } return std::make_unique<TemplateDecl>( std::move(clonedParameters), declaration->clone(), range); }
O2
cpp
flux::parser::TemplateDecl::clone() const: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %rsi, %r14 movq %rdi, 0x18(%rsp) xorps %xmm0, %xmm0 leaq 0x20(%rsp), %r15 movaps %xmm0, (%r15) andq $0x0, 0x10(%r15) movq 0x38(%rsi), %r12 movq 0x40(%rsi), %rbx addq $0x10, %r12 leaq 0x8(%rsp), %r13 leaq -0x10(%r12), %rbp cmpq %rbx, %rbp je 0xd442 cmpl $0x0, (%r12) je 0xd42e movq 0x8(%r12), %rsi movq (%rsi), %rax movq %r13, %rdi callq *0x18(%rax) movq %r15, %rdi movq %rbp, %rsi movq %r12, %rdx movq %r13, %rcx callq 0xf174 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0xd43c movq (%rdi), %rax callq *0x8(%rax) jmp 0xd43c movq %r15, %rdi movq %rbp, %rsi movq %r12, %rdx callq 0xf130 addq $0x20, %r12 jmp 0xd3ec movq 0x50(%r14), %rsi movq (%rsi), %rax leaq 0x10(%rsp), %rdi callq *0x18(%rax) addq $0x8, %r14 leaq 0x8(%rsp), %rdi leaq 0x20(%rsp), %rsi leaq 0x10(%rsp), %rdx movq %r14, %rcx callq 0xf1c1 movq 0x8(%rsp), %rax andq $0x0, 0x8(%rsp) movq 0x18(%rsp), %rbx movq %rax, (%rbx) movq 0x10(%rsp), %rdi testq %rdi, %rdi je 0xd48f movq (%rdi), %rax callq *0x8(%rax) leaq 0x20(%rsp), %rdi callq 0xf25a movq %rbx, %rax addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx movq 0x10(%rsp), %rdi jmp 0xd4c6 jmp 0xd4b9 jmp 0xd4b9 movq %rax, %rbx jmp 0xd4d1 movq %rax, %rbx movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0xd4d1 movq (%rdi), %rax callq *0x8(%rax) leaq 0x20(%rsp), %rdi callq 0xf25a movq %rbx, %rdi callq 0x63e0 nop
_ZNK4flux6parser12TemplateDecl5cloneEv: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov r14, rsi mov [rsp+68h+var_50], rdi xorps xmm0, xmm0 lea r15, [rsp+68h+var_48] movaps xmmword ptr [r15], xmm0 and qword ptr [r15+10h], 0 mov r12, [rsi+38h] mov rbx, [rsi+40h] add r12, 10h lea r13, [rsp+68h+var_60] loc_D3EC: lea rbp, [r12-10h] cmp rbp, rbx jz short loc_D442 cmp dword ptr [r12], 0 jz short loc_D42E mov rsi, [r12+8] mov rax, [rsi] mov rdi, r13 call qword ptr [rax+18h] mov rdi, r15 mov rsi, rbp mov rdx, r12 mov rcx, r13 call _ZNSt6vectorIN4flux6parser12TemplateDecl9ParameterESaIS3_EE12emplace_backIJRKSt17basic_string_viewIcSt11char_traitsIcEERKNS3_4KindESt10unique_ptrINS1_8TypeExprESt14default_deleteISH_EEEEERS3_DpOT_; std::vector<flux::parser::TemplateDecl::Parameter>::emplace_back<std::string_view const&,flux::parser::TemplateDecl::Parameter::Kind const&,std::unique_ptr<flux::parser::TypeExpr>>(std::string_view const&,flux::parser::TemplateDecl::Parameter::Kind const&,std::unique_ptr<flux::parser::TypeExpr> &&) mov rdi, [rsp+68h+var_60] test rdi, rdi jz short loc_D43C mov rax, [rdi] call qword ptr [rax+8] jmp short loc_D43C loc_D42E: mov rdi, r15 mov rsi, rbp mov rdx, r12 call _ZNSt6vectorIN4flux6parser12TemplateDecl9ParameterESaIS3_EE12emplace_backIJRKSt17basic_string_viewIcSt11char_traitsIcEERKNS3_4KindEEEERS3_DpOT_; std::vector<flux::parser::TemplateDecl::Parameter>::emplace_back<std::string_view const&,flux::parser::TemplateDecl::Parameter::Kind const&>(std::string_view const&,flux::parser::TemplateDecl::Parameter::Kind const&) loc_D43C: add r12, 20h ; ' ' jmp short loc_D3EC loc_D442: mov rsi, [r14+50h] mov rax, [rsi] lea rdi, [rsp+68h+var_58] call qword ptr [rax+18h] add r14, 8 lea rdi, [rsp+68h+var_60] lea rsi, [rsp+68h+var_48] lea rdx, [rsp+68h+var_58] mov rcx, r14 call _ZSt11make_uniqueIN4flux6parser12TemplateDeclEJSt6vectorINS2_9ParameterESaIS4_EESt10unique_ptrINS1_4DeclESt14default_deleteIS8_EERKNS0_6common11SourceRangeEEENSt9_MakeUniqIT_E15__single_objectEDpOT0_; std::make_unique<flux::parser::TemplateDecl,std::vector<flux::parser::TemplateDecl::Parameter>,std::unique_ptr<flux::parser::Decl>,flux::common::SourceRange const&>(std::vector<flux::parser::TemplateDecl::Parameter>,std::unique_ptr<flux::parser::Decl>,flux::common::SourceRange const&) mov rax, [rsp+68h+var_60] and [rsp+68h+var_60], 0 mov rbx, [rsp+68h+var_50] mov [rbx], rax mov rdi, [rsp+68h+var_58] test rdi, rdi jz short loc_D48F mov rax, [rdi] call qword ptr [rax+8] loc_D48F: lea rdi, [rsp+68h+var_48] call _ZNSt6vectorIN4flux6parser12TemplateDecl9ParameterESaIS3_EED2Ev; std::vector<flux::parser::TemplateDecl::Parameter>::~vector() mov rax, rbx add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax mov rdi, [rsp+arg_8] jmp short loc_D4C6 jmp short loc_D4B9 jmp short $+2 loc_D4B9: mov rbx, rax jmp short loc_D4D1 mov rbx, rax mov rdi, [rsp+arg_0] loc_D4C6: test rdi, rdi jz short loc_D4D1 mov rax, [rdi] call qword ptr [rax+8] loc_D4D1: lea rdi, [rsp+arg_18] call _ZNSt6vectorIN4flux6parser12TemplateDecl9ParameterESaIS3_EED2Ev; std::vector<flux::parser::TemplateDecl::Parameter>::~vector() mov rdi, rbx call __Unwind_Resume
flux::parser::TemplateDecl * flux::parser::TemplateDecl::clone(flux::parser::TemplateDecl *this, long long a2) { long long v2; // rbx long long i; // r12 long long v4; // rax flux::parser::TemplateDecl *v5; // rbx long long v7; // [rsp+8h] [rbp-60h] BYREF long long v8; // [rsp+10h] [rbp-58h] BYREF flux::parser::TemplateDecl *v9; // [rsp+18h] [rbp-50h] __int128 v10; // [rsp+20h] [rbp-48h] BYREF long long v11; // [rsp+30h] [rbp-38h] v9 = this; v10 = 0LL; v11 = 0LL; v2 = *(_QWORD *)(a2 + 64); for ( i = *(_QWORD *)(a2 + 56) + 16LL; i - 16 != v2; i += 32LL ) { if ( *(_DWORD *)i ) { (*(void ( **)(long long *))(**(_QWORD **)(i + 8) + 24LL))(&v7); std::vector<flux::parser::TemplateDecl::Parameter>::emplace_back<std::string_view const&,flux::parser::TemplateDecl::Parameter::Kind const&,std::unique_ptr<flux::parser::TypeExpr>>( &v10, i - 16, i, &v7); if ( v7 ) (*(void ( **)(long long))(*(_QWORD *)v7 + 8LL))(v7); } else { std::vector<flux::parser::TemplateDecl::Parameter>::emplace_back<std::string_view const&,flux::parser::TemplateDecl::Parameter::Kind const&>( &v10, i - 16, i); } } (*(void ( **)(long long *))(**(_QWORD **)(a2 + 80) + 24LL))(&v8); std::make_unique<flux::parser::TemplateDecl,std::vector<flux::parser::TemplateDecl::Parameter>,std::unique_ptr<flux::parser::Decl>,flux::common::SourceRange const&>( &v7, &v10, &v8, a2 + 8); v4 = v7; v7 = 0LL; v5 = v9; *(_QWORD *)v9 = v4; if ( v8 ) (*(void ( **)(long long))(*(_QWORD *)v8 + 8LL))(v8); std::vector<flux::parser::TemplateDecl::Parameter>::~vector(&v10); return v5; }
clone: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV R14,RSI MOV qword ptr [RSP + 0x18],RDI XORPS XMM0,XMM0 LEA R15,[RSP + 0x20] MOVAPS xmmword ptr [R15],XMM0 AND qword ptr [R15 + 0x10],0x0 MOV R12,qword ptr [RSI + 0x38] MOV RBX,qword ptr [RSI + 0x40] ADD R12,0x10 LEA R13,[RSP + 0x8] LAB_0010d3ec: LEA RBP,[R12 + -0x10] CMP RBP,RBX JZ 0x0010d442 CMP dword ptr [R12],0x0 JZ 0x0010d42e MOV RSI,qword ptr [R12 + 0x8] MOV RAX,qword ptr [RSI] LAB_0010d405: MOV RDI,R13 CALL qword ptr [RAX + 0x18] LAB_0010d40b: MOV RDI,R15 MOV RSI,RBP MOV RDX,R12 MOV RCX,R13 CALL 0x0010f174 LAB_0010d41c: MOV RDI,qword ptr [RSP + 0x8] TEST RDI,RDI JZ 0x0010d43c MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] JMP 0x0010d43c LAB_0010d42e: MOV RDI,R15 MOV RSI,RBP MOV RDX,R12 CALL 0x0010f130 LAB_0010d43c: ADD R12,0x20 JMP 0x0010d3ec LAB_0010d442: MOV RSI,qword ptr [R14 + 0x50] MOV RAX,qword ptr [RSI] LAB_0010d449: LEA RDI,[RSP + 0x10] CALL qword ptr [RAX + 0x18] ADD R14,0x8 LAB_0010d455: LEA RDI,[RSP + 0x8] LEA RSI,[RSP + 0x20] LEA RDX,[RSP + 0x10] MOV RCX,R14 CALL 0x0010f1c1 LAB_0010d46c: MOV RAX,qword ptr [RSP + 0x8] AND qword ptr [RSP + 0x8],0x0 MOV RBX,qword ptr [RSP + 0x18] MOV qword ptr [RBX],RAX MOV RDI,qword ptr [RSP + 0x10] TEST RDI,RDI JZ 0x0010d48f MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] LAB_0010d48f: LEA RDI,[RSP + 0x20] CALL 0x0010f25a MOV RAX,RBX ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* flux::parser::TemplateDecl::clone() const */ int8 * flux::parser::TemplateDecl::clone(void) { Kind *pKVar1; Kind *pKVar2; long *plVar3; long in_RSI; int8 *in_RDI; Kind *pKVar4; long *local_60; long *local_58; int8 *local_50; int8 local_48; int8 uStack_40; int8 local_38; local_48 = 0; uStack_40 = 0; local_38 = 0; pKVar2 = *(Kind **)(in_RSI + 0x40); local_50 = in_RDI; for (pKVar4 = (Kind *)(*(long *)(in_RSI + 0x38) + 0x10); pKVar1 = pKVar4 + -0x10, pKVar1 != pKVar2 ; pKVar4 = pKVar4 + 0x20) { if (*(int *)pKVar4 == 0) { /* try { // try from 0010d42e to 0010d43b has its CatchHandler @ 0010d4b7 */ std:: vector<flux::parser::TemplateDecl::Parameter,std::allocator<flux::parser::TemplateDecl::Parameter>> :: emplace_back<std::basic_string_view<char,std::char_traits<char>>const&,flux::parser::TemplateDecl::Parameter::Kind_const&> ((vector<flux::parser::TemplateDecl::Parameter,std::allocator<flux::parser::TemplateDecl::Parameter>> *)&local_48,pKVar1,pKVar4); } else { /* try { // try from 0010d405 to 0010d40a has its CatchHandler @ 0010d4b9 */ (**(code **)(**(long **)(pKVar4 + 8) + 0x18))((unique_ptr *)&local_60); /* try { // try from 0010d40b to 0010d41b has its CatchHandler @ 0010d4be */ std:: vector<flux::parser::TemplateDecl::Parameter,std::allocator<flux::parser::TemplateDecl::Parameter>> :: emplace_back<std::basic_string_view<char,std::char_traits<char>>const&,flux::parser::TemplateDecl::Parameter::Kind_const&,std::unique_ptr<flux::parser::TypeExpr,std::default_delete<flux::parser::TypeExpr>>> ((vector<flux::parser::TemplateDecl::Parameter,std::allocator<flux::parser::TemplateDecl::Parameter>> *)&local_48,pKVar1,pKVar4,(unique_ptr *)&local_60); if (local_60 != (long *)0x0) { (**(code **)(*local_60 + 8))(); } } } /* try { // try from 0010d449 to 0010d450 has its CatchHandler @ 0010d4b5 */ (**(code **)(**(long **)(in_RSI + 0x50) + 0x18))(&local_58); /* try { // try from 0010d455 to 0010d46b has its CatchHandler @ 0010d4ab */ std:: make_unique<flux::parser::TemplateDecl,std::vector<flux::parser::TemplateDecl::Parameter,std::allocator<flux::parser::TemplateDecl::Parameter>>,std::unique_ptr<flux::parser::Decl,std::default_delete<flux::parser::Decl>>,flux::common::SourceRange_const&> ((vector *)&local_60,(unique_ptr *)&local_48,(SourceRange *)&local_58); plVar3 = local_60; local_60 = (long *)0x0; *local_50 = plVar3; if (local_58 != (long *)0x0) { (**(code **)(*local_58 + 8))(); } std:: vector<flux::parser::TemplateDecl::Parameter,std::allocator<flux::parser::TemplateDecl::Parameter>> ::~vector((vector<flux::parser::TemplateDecl::Parameter,std::allocator<flux::parser::TemplateDecl::Parameter>> *)&local_48); return local_50; }
19,436
SchemaConverter::check_errors()
llama.cpp/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()); } }
O3
cpp
SchemaConverter::check_errors(): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x68, %rsp movq %rdi, %r14 movq 0xc8(%rdi), %rax cmpq 0xd0(%rdi), %rax jne 0xb6041 movq 0xe0(%r14), %rax cmpq 0xe8(%r14), %rax jne 0xb5fe6 addq $0x68, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq movq 0x49f5b(%rip), %rax # 0xfff48 movq (%rax), %r15 leaq 0x18(%rsp), %rbx movq %rbx, -0x10(%rbx) leaq 0x1bf89(%rip), %rsi # 0xd1f89 leaq 0x1bf84(%rip), %rdx # 0xd1f8b leaq 0x8(%rsp), %rdi callq 0x3fe82 addq $0xe0, %r14 leaq 0x48(%rsp), %rdi leaq 0x8(%rsp), %rdx movq %r14, %rsi callq 0xacc67 leaq 0x48(%rsp), %rdi leaq 0x8(%rsp), %rdx movq %r15, %rsi movq %rbx, %rcx callq 0x1e4a2 jmp 0xb5fdb movl $0x10, %edi callq 0x1c460 movq %rax, %rbx leaq 0x38(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0x120ba(%rip), %rsi # 0xc8118 leaq 0x120b4(%rip), %rdx # 0xc8119 leaq 0x28(%rsp), %rdi callq 0x3fe82 addq $0xc8, %r14 leaq 0x8(%rsp), %rdi leaq 0x28(%rsp), %rdx movq %r14, %rsi callq 0xacc67 leaq 0x1bea6(%rip), %rsi # 0xd1f35 leaq 0x48(%rsp), %rdi leaq 0x8(%rsp), %rdx callq 0x66b64 movb $0x1, %bpl leaq 0x48(%rsp), %rsi movq %rbx, %rdi callq 0x1c2c0 xorl %ebp, %ebp movq 0x49f01(%rip), %rsi # 0xfffb8 movq 0x49eba(%rip), %rdx # 0xfff78 movq %rbx, %rdi callq 0x1c7b0 movq %rax, %r14 leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xb60ec movq 0x58(%rsp), %rsi incq %rsi callq 0x1c110 jmp 0xb60ec movq %rax, %r14 movb $0x1, %bpl leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xb6107 movq 0x18(%rsp), %rsi incq %rsi callq 0x1c110 movq 0x28(%rsp), %rdi cmpq %r15, %rdi je 0xb611e movq 0x38(%rsp), %rsi incq %rsi callq 0x1c110 testb %bpl, %bpl jne 0xb6144 jmp 0xb616d movq %rax, %r14 movq 0x28(%rsp), %rdi cmpq %r15, %rdi je 0xb6144 movq 0x38(%rsp), %rsi incq %rsi callq 0x1c110 jmp 0xb6144 movq %rax, %r14 movq %rbx, %rdi callq 0x1caa0 jmp 0xb616d movq %rax, %r14 movq 0x8(%rsp), %rdi cmpq %rbx, %rdi je 0xb616d movq 0x18(%rsp), %rsi incq %rsi callq 0x1c110 jmp 0xb616d movq %rax, %r14 movq %r14, %rdi callq 0x1c7d0 nop
_ZN15SchemaConverter12check_errorsEv: push rbp push r15 push r14 push rbx sub rsp, 68h mov r14, rdi mov rax, [rdi+0C8h] cmp rax, [rdi+0D0h] jnz short loc_B6041 mov rax, [r14+0E0h] cmp rax, [r14+0E8h] jnz short loc_B5FE6 loc_B5FDB: add rsp, 68h pop rbx pop r14 pop r15 pop rbp retn loc_B5FE6: mov rax, cs:stderr_ptr mov r15, [rax] lea rbx, [rsp+88h+var_70] mov [rbx-10h], rbx lea rsi, asc_D1F89; "; " lea rdx, asc_D1F89+2; "" lea rdi, [rsp+88h+var_80] 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) add r14, 0E0h lea rdi, [rsp+88h+var_40] lea rdx, [rsp+88h+var_80] mov rsi, r14 call _Z11string_joinRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EERKS5_; string_join(std::vector<std::string> const&,std::string const&) lea rdi, [rsp+88h+var_40] lea rdx, [rsp+88h+var_80] mov rsi, r15 mov rcx, rbx call _ZN15SchemaConverter12check_errorsEv_cold_1; SchemaConverter::check_errors(void) [clone] jmp short loc_B5FDB loc_B6041: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rbx, rax lea r15, [rsp+88h+var_50] mov [r15-10h], r15 lea rsi, aFailedToMatchD+27h; "\n" lea rdx, aFailedToMatchD+28h; "" lea rdi, [rsp+88h+var_60] 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) add r14, 0C8h lea rdi, [rsp+88h+var_80] lea rdx, [rsp+88h+var_60] mov rsi, r14 call _Z11string_joinRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EERKS5_; string_join(std::vector<std::string> const&,std::string const&) lea rsi, aJsonSchemaConv; "JSON schema conversion failed:\n" lea rdi, [rsp+88h+var_40] lea rdx, [rsp+88h+var_80] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) mov bpl, 1 lea rsi, [rsp+88h+var_40] mov rdi, rbx call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) xor ebp, ebp mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rax, [rsp+88h+var_30] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_B60EC mov rsi, [rsp+88h+var_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_B60EC mov r14, rax mov bpl, 1 loc_B60EC: lea rax, [rsp+88h+var_70] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_B6107 mov rsi, [rsp+88h+var_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_B6107: mov rdi, [rsp+88h+var_60]; void * cmp rdi, r15 jz short loc_B611E mov rsi, [rsp+88h+var_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_B611E: test bpl, bpl jnz short loc_B6144 jmp short loc_B616D mov r14, rax mov rdi, [rsp+88h+var_60]; void * cmp rdi, r15 jz short loc_B6144 mov rsi, [rsp+88h+var_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_B6144 mov r14, rax loc_B6144: mov rdi, rbx; void * call ___cxa_free_exception jmp short loc_B616D mov r14, rax mov rdi, [rsp+88h+var_80]; void * cmp rdi, rbx jz short loc_B616D mov rsi, [rsp+88h+var_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_B616D mov r14, rax loc_B616D: mov rdi, r14 call __Unwind_Resume
void SchemaConverter::check_errors(SchemaConverter *this) { long long v1; // r15 void *exception; // rbx void *v3[2]; // [rsp+8h] [rbp-80h] BYREF void *v4[2]; // [rsp+18h] [rbp-70h] BYREF void *v5[2]; // [rsp+28h] [rbp-60h] BYREF long long v6; // [rsp+38h] [rbp-50h] BYREF const char *v7[2]; // [rsp+48h] [rbp-40h] BYREF if ( *((_QWORD *)this + 25) != *((_QWORD *)this + 26) ) { exception = __cxa_allocate_exception(0x10uLL); v5[0] = &v6; std::string::_M_construct<char const*>((long long)v5, "\n", (long long)""); string_join((long long)v3, (long long *)this + 25, v5); std::operator+<char>(v7, (long long)"JSON schema conversion failed:\n", (long long)v3); std::runtime_error::runtime_error(exception, v7); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } if ( *((_QWORD *)this + 28) != *((_QWORD *)this + 29) ) { v1 = stderr; v3[0] = v4; std::string::_M_construct<char const*>((long long)v3, "; ", (long long)""); string_join((long long)v7, (long long *)this + 28, v3); SchemaConverter::check_errors(v7, v1, v3, v4); } }
check_errors: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x68 MOV R14,RDI MOV RAX,qword ptr [RDI + 0xc8] CMP RAX,qword ptr [RDI + 0xd0] JNZ 0x001b6041 MOV RAX,qword ptr [R14 + 0xe0] CMP RAX,qword ptr [R14 + 0xe8] JNZ 0x001b5fe6 LAB_001b5fdb: ADD RSP,0x68 POP RBX POP R14 POP R15 POP RBP RET LAB_001b5fe6: MOV RAX,qword ptr [0x001fff48] MOV R15,qword ptr [RAX] LEA RBX,[RSP + 0x18] MOV qword ptr [RBX + -0x10],RBX LAB_001b5ff9: LEA RSI,[0x1d1f89] LEA RDX,[0x1d1f8b] LEA RDI,[RSP + 0x8] CALL 0x0013fe82 LAB_001b6011: ADD R14,0xe0 LEA RDI,[RSP + 0x48] LEA RDX,[RSP + 0x8] MOV RSI,R14 CALL 0x001acc67 LAB_001b602a: LEA RDI,[RSP + 0x48] LEA RDX,[RSP + 0x8] MOV RSI,R15 MOV RCX,RBX CALL 0x0011e4a2 JMP 0x001b5fdb LAB_001b6041: MOV EDI,0x10 CALL 0x0011c460 MOV RBX,RAX LEA R15,[RSP + 0x38] MOV qword ptr [R15 + -0x10],R15 LAB_001b6057: LEA RSI,[0x1c8118] LEA RDX,[0x1c8119] LEA RDI,[RSP + 0x28] CALL 0x0013fe82 LAB_001b606f: ADD R14,0xc8 LEA RDI,[RSP + 0x8] LEA RDX,[RSP + 0x28] MOV RSI,R14 CALL 0x001acc67 LAB_001b6088: LEA RSI,[0x1d1f35] LEA RDI,[RSP + 0x48] LEA RDX,[RSP + 0x8] CALL 0x00166b64 MOV BPL,0x1 LAB_001b60a1: LEA RSI,[RSP + 0x48] MOV RDI,RBX CALL 0x0011c2c0 XOR EBP,EBP MOV RSI,qword ptr [0x001fffb8] MOV RDX,qword ptr [0x001fff78] MOV RDI,RBX CALL 0x0011c7b0
/* SchemaConverter::check_errors() */ void __thiscall SchemaConverter::check_errors(SchemaConverter *this) { runtime_error *this_00; int1 *local_80 [2]; int1 local_70 [16]; int1 *local_60 [2]; int1 local_50 [16]; vector local_40 [32]; if (*(long *)(this + 200) == *(long *)(this + 0xd0)) { if (*(long *)(this + 0xe0) != *(long *)(this + 0xe8)) { local_80[0] = local_70; /* try { // try from 001b5ff9 to 001b6010 has its CatchHandler @ 001b616a */ std::__cxx11::string::_M_construct<char_const*>(local_80,&DAT_001d1f89,&DAT_001d1f8b); /* try { // try from 001b6011 to 001b6029 has its CatchHandler @ 001b614e */ string_join(local_40,(string *)(this + 0xe0)); check_errors(); } return; } this_00 = (runtime_error *)__cxa_allocate_exception(0x10); local_60[0] = local_50; /* try { // try from 001b6057 to 001b606e has its CatchHandler @ 001b6141 */ std::__cxx11::string::_M_construct<char_const*>(local_60,"\n",""); /* try { // try from 001b606f to 001b6087 has its CatchHandler @ 001b6125 */ string_join((vector *)local_80,(string *)(this + 200)); /* try { // try from 001b6088 to 001b609d has its CatchHandler @ 001b60e6 */ std::operator+((char *)local_40,(string *)"JSON schema conversion failed:\n"); /* try { // try from 001b60a1 to 001b60c5 has its CatchHandler @ 001b60c6 */ std::runtime_error::runtime_error(this_00,(string *)local_40); /* WARNING: Subroutine does not return */ __cxa_throw(this_00,PTR_typeinfo_001fffb8,PTR__runtime_error_001fff78); }
19,437
ggml_add1_impl
llama.cpp/ggml/src/ggml.c
static struct ggml_tensor * ggml_add1_impl( struct ggml_context * ctx, struct ggml_tensor * a, struct ggml_tensor * b, bool inplace) { GGML_ASSERT(ggml_is_scalar(b)); GGML_ASSERT(ggml_is_padded_1d(a)); struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a); result->op = GGML_OP_ADD1; result->src[0] = a; result->src[1] = b; return result; }
O3
c
ggml_add1_impl: pushq %r14 pushq %rbx pushq %rax cmpq $0x1, 0x10(%rdx) jne 0x1a476 movq %rdx, %rbx cmpq $0x1, 0x18(%rdx) jne 0x1a476 cmpq $0x1, 0x20(%rbx) jne 0x1a476 cmpq $0x1, 0x28(%rbx) jne 0x1a476 movq %rsi, %r14 movq 0x30(%rsi), %rax movl (%rsi), %esi imulq $0x38, %rsi, %rdx leaq 0x4e9ad(%rip), %r8 # 0x68dc0 cmpq 0x18(%rdx,%r8), %rax jne 0x1a492 movq 0x18(%r14), %rdx movq 0x40(%r14), %rax imulq 0x38(%r14), %rdx cmpq %rdx, %rax jne 0x1a492 imulq 0x20(%r14), %rax cmpq %rax, 0x48(%r14) jne 0x1a492 testb %cl, %cl je 0x1a445 movq %r14, %rsi callq 0x16240 jmp 0x1a459 leaq 0x10(%r14), %rcx movl $0x4, %edx xorl %r8d, %r8d xorl %r9d, %r9d callq 0x19be7 movl $0x3, 0x50(%rax) movq %r14, 0x98(%rax) movq %rbx, 0xa0(%rax) addq $0x8, %rsp popq %rbx popq %r14 retq leaq 0x30196(%rip), %rdi # 0x4a613 leaq 0x301ca(%rip), %rdx # 0x4a64e leaq 0x32291(%rip), %rcx # 0x4c71c movl $0x77b, %esi # imm = 0x77B jmp 0x1a4ac leaq 0x3017a(%rip), %rdi # 0x4a613 leaq 0x301ae(%rip), %rdx # 0x4a64e leaq 0x32287(%rip), %rcx # 0x4c72e movl $0x77c, %esi # imm = 0x77C xorl %eax, %eax callq 0x17c80
ggml_add1_impl: push r14 push rbx push rax cmp qword ptr [rdx+10h], 1 jnz loc_1A476 mov rbx, rdx cmp qword ptr [rdx+18h], 1 jnz loc_1A476 cmp qword ptr [rbx+20h], 1 jnz short loc_1A476 cmp qword ptr [rbx+28h], 1 jnz short loc_1A476 mov r14, rsi mov rax, [rsi+30h] mov esi, [rsi] imul rdx, rsi, 38h ; '8' lea r8, type_traits cmp rax, [rdx+r8+18h] jnz short loc_1A492 mov rdx, [r14+18h] mov rax, [r14+40h] imul rdx, [r14+38h] cmp rax, rdx jnz short loc_1A492 imul rax, [r14+20h] cmp [r14+48h], rax jnz short loc_1A492 test cl, cl jz short loc_1A445 mov rsi, r14 call _ggml_view_tensor jmp short loc_1A459 loc_1A445: lea rcx, [r14+10h] mov edx, 4 xor r8d, r8d xor r9d, r9d call ggml_new_tensor_impl loc_1A459: mov dword ptr [rax+50h], 3 mov [rax+98h], r14 mov [rax+0A0h], rbx add rsp, 8 pop rbx pop r14 retn loc_1A476: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlIsScalarB; "ggml_is_scalar(b)" mov esi, 77Bh jmp short loc_1A4AC loc_1A492: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlIsPadded1d; "ggml_is_padded_1d(a)" mov esi, 77Ch loc_1A4AC: xor eax, eax call _ggml_abort
long long ggml_add1_impl(long long a1, _QWORD *a2, _QWORD *a3, char a4, char **a5, int a6) { char *v8; // rax long long v9; // rsi long long v10; // rax long long result; // rax const char *v12; // rcx int v13; // esi if ( a3[2] != 1LL || a3[3] != 1LL || a3[4] != 1LL || a3[5] != 1LL ) { v12 = "ggml_is_scalar(b)"; v13 = 1915; goto LABEL_14; } v8 = (char *)a2[6]; v9 = *(unsigned int *)a2; a5 = &type_traits; if ( v8 != (&type_traits)[7 * v9 + 3] || (v10 = a2[8], v10 != a2[7] * a2[3]) || a2[9] != a2[4] * v10 ) { v12 = "ggml_is_padded_1d(a)"; v13 = 1916; LABEL_14: ggml_abort( (unsigned int)"/workspace/llm4binary/github2025/llama.cpp/ggml/src/ggml.c", v13, (unsigned int)"GGML_ASSERT(%s) failed", (_DWORD)v12, (_DWORD)a5, a6); } if ( a4 ) result = ggml_view_tensor(a1, (long long)a2); else result = ggml_new_tensor_impl(a1, v9, 4u, a2 + 2, 0LL, 0LL); *(_DWORD *)(result + 80) = 3; *(_QWORD *)(result + 152) = a2; *(_QWORD *)(result + 160) = a3; return result; }
ggml_add1_impl: PUSH R14 PUSH RBX PUSH RAX CMP qword ptr [RDX + 0x10],0x1 JNZ 0x0011a476 MOV RBX,RDX CMP qword ptr [RDX + 0x18],0x1 JNZ 0x0011a476 CMP qword ptr [RBX + 0x20],0x1 JNZ 0x0011a476 CMP qword ptr [RBX + 0x28],0x1 JNZ 0x0011a476 MOV R14,RSI MOV RAX,qword ptr [RSI + 0x30] MOV ESI,dword ptr [RSI] IMUL RDX,RSI,0x38 LEA R8,[0x168dc0] CMP RAX,qword ptr [RDX + R8*0x1 + 0x18] JNZ 0x0011a492 MOV RDX,qword ptr [R14 + 0x18] MOV RAX,qword ptr [R14 + 0x40] IMUL RDX,qword ptr [R14 + 0x38] CMP RAX,RDX JNZ 0x0011a492 IMUL RAX,qword ptr [R14 + 0x20] CMP qword ptr [R14 + 0x48],RAX JNZ 0x0011a492 TEST CL,CL JZ 0x0011a445 MOV RSI,R14 CALL 0x00116240 JMP 0x0011a459 LAB_0011a445: LEA RCX,[R14 + 0x10] MOV EDX,0x4 XOR R8D,R8D XOR R9D,R9D CALL 0x00119be7 LAB_0011a459: MOV dword ptr [RAX + 0x50],0x3 MOV qword ptr [RAX + 0x98],R14 MOV qword ptr [RAX + 0xa0],RBX ADD RSP,0x8 POP RBX POP R14 RET LAB_0011a476: LEA RDI,[0x14a613] LEA RDX,[0x14a64e] LEA RCX,[0x14c71c] MOV ESI,0x77b JMP 0x0011a4ac LAB_0011a492: LEA RDI,[0x14a613] LEA RDX,[0x14a64e] LEA RCX,[0x14c72e] MOV ESI,0x77c LAB_0011a4ac: XOR EAX,EAX CALL 0x00117c80
void ggml_add1_impl(int8 param_1,uint *param_2,long param_3,char param_4) { long lVar1; char *pcVar2; int8 uVar3; if ((((*(long *)(param_3 + 0x10) == 1) && (*(long *)(param_3 + 0x18) == 1)) && (*(long *)(param_3 + 0x20) == 1)) && (*(long *)(param_3 + 0x28) == 1)) { if (*(long *)(param_2 + 0xc) == *(long *)(type_traits + (ulong)*param_2 * 0x38 + 0x18)) { if ((*(long *)(param_2 + 0x10) == *(long *)(param_2 + 6) * *(long *)(param_2 + 0xe)) && (*(long *)(param_2 + 0x12) == *(long *)(param_2 + 0x10) * *(long *)(param_2 + 8))) { if (param_4 == '\0') { lVar1 = ggml_new_tensor_impl(param_1,(ulong)*param_2,4,param_2 + 4,0,0); } else { lVar1 = ggml_view_tensor(param_1,param_2); } *(int4 *)(lVar1 + 0x50) = 3; *(uint **)(lVar1 + 0x98) = param_2; *(long *)(lVar1 + 0xa0) = param_3; return; } } pcVar2 = "ggml_is_padded_1d(a)"; uVar3 = 0x77c; } else { pcVar2 = "ggml_is_scalar(b)"; uVar3 = 0x77b; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github2025/llama.cpp/ggml/src/ggml.c",uVar3, "GGML_ASSERT(%s) failed",pcVar2); }
19,438
my_mb_wc_gbk
eloqsql/strings/ctype-gbk.c
static int my_mb_wc_gbk(CHARSET_INFO *cs __attribute__((unused)), my_wc_t *pwc, const uchar *s, const uchar *e) { int hi; if (s >= e) return MY_CS_TOOSMALL; hi=s[0]; if (hi<0x80) { pwc[0]=hi; return 1; } if (s+2>e) return MY_CS_TOOSMALL2; if (!IS_MB2_CHAR(hi, s[1])) return MY_CS_ILSEQ; if (!(pwc[0]=func_gbk_uni_onechar( (hi<<8) + s[1]))) return -2; return 2; }
O0
c
my_mb_wc_gbk: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x20(%rbp), %rax cmpq -0x28(%rbp), %rax jb 0x3e56e movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B jmp 0x3e649 movq -0x20(%rbp), %rax movzbl (%rax), %eax movl %eax, -0x2c(%rbp) cmpl $0x80, -0x2c(%rbp) jge 0x3e598 movslq -0x2c(%rbp), %rcx movq -0x18(%rbp), %rax movq %rcx, (%rax) movl $0x1, -0x4(%rbp) jmp 0x3e649 movq -0x20(%rbp), %rax addq $0x2, %rax cmpq -0x28(%rbp), %rax jbe 0x3e5b2 movl $0xffffff9a, -0x4(%rbp) # imm = 0xFFFFFF9A jmp 0x3e649 movl -0x2c(%rbp), %eax movzbl %al, %ecx movl $0x81, %eax cmpl %ecx, %eax jg 0x3e60c movl -0x2c(%rbp), %eax movzbl %al, %eax cmpl $0xfe, %eax jg 0x3e60c movq -0x20(%rbp), %rax movzbl 0x1(%rax), %ecx movl $0x40, %eax cmpl %ecx, %eax jg 0x3e5ec movq -0x20(%rbp), %rax movzbl 0x1(%rax), %eax cmpl $0x7e, %eax jle 0x3e615 movq -0x20(%rbp), %rax movzbl 0x1(%rax), %ecx movl $0x80, %eax cmpl %ecx, %eax jg 0x3e60c movq -0x20(%rbp), %rax movzbl 0x1(%rax), %eax cmpl $0xfe, %eax jle 0x3e615 movl $0x0, -0x4(%rbp) jmp 0x3e649 movl -0x2c(%rbp), %edi shll $0x8, %edi movq -0x20(%rbp), %rax movzbl 0x1(%rax), %eax addl %eax, %edi callq 0x3e990 cltq movq -0x18(%rbp), %rcx movq %rax, (%rcx) cmpq $0x0, %rax jne 0x3e642 movl $0xfffffffe, -0x4(%rbp) # imm = 0xFFFFFFFE jmp 0x3e649 movl $0x2, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_mb_wc_gbk: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov rax, [rbp+var_20] cmp rax, [rbp+var_28] jb short loc_3E56E mov [rbp+var_4], 0FFFFFF9Bh jmp loc_3E649 loc_3E56E: mov rax, [rbp+var_20] movzx eax, byte ptr [rax] mov [rbp+var_2C], eax cmp [rbp+var_2C], 80h jge short loc_3E598 movsxd rcx, [rbp+var_2C] mov rax, [rbp+var_18] mov [rax], rcx mov [rbp+var_4], 1 jmp loc_3E649 loc_3E598: mov rax, [rbp+var_20] add rax, 2 cmp rax, [rbp+var_28] jbe short loc_3E5B2 mov [rbp+var_4], 0FFFFFF9Ah jmp loc_3E649 loc_3E5B2: mov eax, [rbp+var_2C] movzx ecx, al mov eax, 81h cmp eax, ecx jg short loc_3E60C mov eax, [rbp+var_2C] movzx eax, al cmp eax, 0FEh jg short loc_3E60C mov rax, [rbp+var_20] movzx ecx, byte ptr [rax+1] mov eax, 40h ; '@' cmp eax, ecx jg short loc_3E5EC mov rax, [rbp+var_20] movzx eax, byte ptr [rax+1] cmp eax, 7Eh ; '~' jle short loc_3E615 loc_3E5EC: mov rax, [rbp+var_20] movzx ecx, byte ptr [rax+1] mov eax, 80h cmp eax, ecx jg short loc_3E60C mov rax, [rbp+var_20] movzx eax, byte ptr [rax+1] cmp eax, 0FEh jle short loc_3E615 loc_3E60C: mov [rbp+var_4], 0 jmp short loc_3E649 loc_3E615: mov edi, [rbp+var_2C] shl edi, 8 mov rax, [rbp+var_20] movzx eax, byte ptr [rax+1] add edi, eax call func_gbk_uni_onechar cdqe mov rcx, [rbp+var_18] mov [rcx], rax cmp rax, 0 jnz short loc_3E642 mov [rbp+var_4], 0FFFFFFFEh jmp short loc_3E649 loc_3E642: mov [rbp+var_4], 2 loc_3E649: mov eax, [rbp+var_4] add rsp, 30h pop rbp retn
long long my_mb_wc_gbk(long long a1, _QWORD *a2, unsigned __int8 *a3, unsigned long long a4) { int v4; // eax unsigned int v6; // [rsp+4h] [rbp-2Ch] if ( (unsigned long long)a3 < a4 ) { v6 = *a3; if ( v6 >= 0x80 ) { if ( (unsigned long long)(a3 + 2) <= a4 ) { if ( (unsigned __int8)v6 < 0x81u || (unsigned __int8)v6 == 255 || (a3[1] < 0x40u || a3[1] > 0x7Eu) && (a3[1] < 0x80u || a3[1] == 255) ) { return 0; } else { v4 = func_gbk_uni_onechar(a3[1] + (v6 << 8)); *a2 = v4; if ( v4 ) return 2; else return (unsigned int)-2; } } else { return (unsigned int)-102; } } else { *a2 = *a3; return 1; } } else { return (unsigned int)-101; } }
my_mb_wc_gbk: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV RAX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [RBP + -0x28] JC 0x0013e56e MOV dword ptr [RBP + -0x4],0xffffff9b JMP 0x0013e649 LAB_0013e56e: MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX] MOV dword ptr [RBP + -0x2c],EAX CMP dword ptr [RBP + -0x2c],0x80 JGE 0x0013e598 MOVSXD RCX,dword ptr [RBP + -0x2c] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x1 JMP 0x0013e649 LAB_0013e598: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x2 CMP RAX,qword ptr [RBP + -0x28] JBE 0x0013e5b2 MOV dword ptr [RBP + -0x4],0xffffff9a JMP 0x0013e649 LAB_0013e5b2: MOV EAX,dword ptr [RBP + -0x2c] MOVZX ECX,AL MOV EAX,0x81 CMP EAX,ECX JG 0x0013e60c MOV EAX,dword ptr [RBP + -0x2c] MOVZX EAX,AL CMP EAX,0xfe JG 0x0013e60c MOV RAX,qword ptr [RBP + -0x20] MOVZX ECX,byte ptr [RAX + 0x1] MOV EAX,0x40 CMP EAX,ECX JG 0x0013e5ec MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x1] CMP EAX,0x7e JLE 0x0013e615 LAB_0013e5ec: MOV RAX,qword ptr [RBP + -0x20] MOVZX ECX,byte ptr [RAX + 0x1] MOV EAX,0x80 CMP EAX,ECX JG 0x0013e60c MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x1] CMP EAX,0xfe JLE 0x0013e615 LAB_0013e60c: MOV dword ptr [RBP + -0x4],0x0 JMP 0x0013e649 LAB_0013e615: MOV EDI,dword ptr [RBP + -0x2c] SHL EDI,0x8 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x1] ADD EDI,EAX CALL 0x0013e990 CDQE MOV RCX,qword ptr [RBP + -0x18] MOV qword ptr [RCX],RAX CMP RAX,0x0 JNZ 0x0013e642 MOV dword ptr [RBP + -0x4],0xfffffffe JMP 0x0013e649 LAB_0013e642: MOV dword ptr [RBP + -0x4],0x2 LAB_0013e649: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x30 POP RBP RET
int4 my_mb_wc_gbk(int8 param_1,long *param_2,byte *param_3,byte *param_4) { uint uVar1; int iVar2; int4 local_c; if (param_3 < param_4) { uVar1 = (uint)*param_3; if (uVar1 < 0x80) { *param_2 = (long)(int)uVar1; local_c = 1; } else if (param_4 < param_3 + 2) { local_c = 0xffffff9a; } else if (((uVar1 < 0x81) || (0xfe < uVar1)) || (((param_3[1] < 0x40 || (0x7e < param_3[1])) && ((param_3[1] < 0x80 || (param_3[1] == 0xff)))))) { local_c = 0; } else { iVar2 = func_gbk_uni_onechar(uVar1 * 0x100 + (uint)param_3[1]); *param_2 = (long)iVar2; if ((long)iVar2 == 0) { local_c = 0xfffffffe; } else { local_c = 2; } } } else { local_c = 0xffffff9b; } return local_c; }
19,439
my_mb_wc_gbk
eloqsql/strings/ctype-gbk.c
static int my_mb_wc_gbk(CHARSET_INFO *cs __attribute__((unused)), my_wc_t *pwc, const uchar *s, const uchar *e) { int hi; if (s >= e) return MY_CS_TOOSMALL; hi=s[0]; if (hi<0x80) { pwc[0]=hi; return 1; } if (s+2>e) return MY_CS_TOOSMALL2; if (!IS_MB2_CHAR(hi, s[1])) return MY_CS_ILSEQ; if (!(pwc[0]=func_gbk_uni_onechar( (hi<<8) + s[1]))) return -2; return 2; }
O3
c
my_mb_wc_gbk: pushq %rbp movq %rsp, %rbp movl $0xffffff9b, %eax # imm = 0xFFFFFF9B cmpq %rcx, %rdx jae 0x354cd movsbq (%rdx), %rdi testq %rdi, %rdi js 0x35451 movq %rdi, (%rsi) movl $0x1, %eax jmp 0x354cd leaq 0x2(%rdx), %r8 movl $0xffffff9a, %eax # imm = 0xFFFFFF9A cmpq %rcx, %r8 ja 0x354cd movzbl %dil, %ecx xorl %eax, %eax cmpl $0x80, %ecx je 0x354cd cmpl $0xff, %ecx je 0x354cd movzbl 0x1(%rdx), %edx leal -0x7f(%rdx), %edi cmpb $-0x3f, %dil setb %dil cmpb $-0x1, %dl setge %r8b testb %dil, %r8b jne 0x354cd shll $0x8, %ecx leal (%rcx,%rdx), %eax addl $0xffff7ec0, %eax # imm = 0xFFFF7EC0 cmpl $0x7d10, %eax # imm = 0x7D10 jae 0x354c1 movl %eax, %eax leaq 0x144c45(%rip), %rcx # 0x17a0f0 movzwl (%rcx,%rax,2), %eax movzwl %ax, %ecx movq %rcx, (%rsi) movl $0x2, %eax testw %cx, %cx jne 0x354cd jmp 0x354c8 movq $0x0, (%rsi) movl $0xfffffffe, %eax # imm = 0xFFFFFFFE popq %rbp retq
my_mb_wc_gbk: push rbp mov rbp, rsp mov eax, 0FFFFFF9Bh cmp rdx, rcx jnb loc_354CD movsx rdi, byte ptr [rdx] test rdi, rdi js short loc_35451 mov [rsi], rdi mov eax, 1 jmp short loc_354CD loc_35451: lea r8, [rdx+2] mov eax, 0FFFFFF9Ah cmp r8, rcx ja short loc_354CD movzx ecx, dil xor eax, eax cmp ecx, 80h jz short loc_354CD cmp ecx, 0FFh jz short loc_354CD movzx edx, byte ptr [rdx+1] lea edi, [rdx-7Fh] cmp dil, 0C1h setb dil cmp dl, 0FFh setnl r8b test r8b, dil jnz short loc_354CD shl ecx, 8 lea eax, [rcx+rdx] add eax, 0FFFF7EC0h cmp eax, 7D10h jnb short loc_354C1 mov eax, eax lea rcx, tab_gbk_uni0 movzx eax, word ptr [rcx+rax*2] movzx ecx, ax mov [rsi], rcx mov eax, 2 test cx, cx jnz short loc_354CD jmp short loc_354C8 loc_354C1: mov qword ptr [rsi], 0 loc_354C8: mov eax, 0FFFFFFFEh loc_354CD: pop rbp retn
long long my_mb_wc_gbk(long long a1, long long *a2, char *a3, unsigned long long a4) { long long result; // rax long long v5; // rdi int v6; // edx unsigned int v7; // eax long long v8; // rcx result = 4294967195LL; if ( (unsigned long long)a3 < a4 ) { v5 = *a3; if ( v5 >= 0 ) { *a2 = v5; return 1LL; } result = 4294967194LL; if ( (unsigned long long)(a3 + 2) <= a4 ) { result = 0LL; if ( (unsigned __int8)v5 != 128 && (unsigned __int8)v5 != 255 ) { v6 = (unsigned __int8)a3[1]; if ( (unsigned __int8)(v6 - 127) >= 0xC1u || (char)v6 < -1 ) { v7 = ((unsigned __int8)v5 << 8) + v6 - 33088; if ( v7 >= 0x7D10 ) { *a2 = 0LL; } else { v8 = tab_gbk_uni0[v7]; *a2 = v8; result = 2LL; if ( (_WORD)v8 ) return result; } return 4294967294LL; } } } } return result; }
my_mb_wc_gbk: PUSH RBP MOV RBP,RSP MOV EAX,0xffffff9b CMP RDX,RCX JNC 0x001354cd MOVSX RDI,byte ptr [RDX] TEST RDI,RDI JS 0x00135451 MOV qword ptr [RSI],RDI MOV EAX,0x1 JMP 0x001354cd LAB_00135451: LEA R8,[RDX + 0x2] MOV EAX,0xffffff9a CMP R8,RCX JA 0x001354cd MOVZX ECX,DIL XOR EAX,EAX CMP ECX,0x80 JZ 0x001354cd CMP ECX,0xff JZ 0x001354cd MOVZX EDX,byte ptr [RDX + 0x1] LEA EDI,[RDX + -0x7f] CMP DIL,0xc1 SETC DIL CMP DL,0xff SETGE R8B TEST R8B,DIL JNZ 0x001354cd SHL ECX,0x8 LEA EAX,[RCX + RDX*0x1] ADD EAX,0xffff7ec0 CMP EAX,0x7d10 JNC 0x001354c1 MOV EAX,EAX LEA RCX,[0x27a0f0] MOVZX EAX,word ptr [RCX + RAX*0x2] MOVZX ECX,AX MOV qword ptr [RSI],RCX MOV EAX,0x2 TEST CX,CX JNZ 0x001354cd JMP 0x001354c8 LAB_001354c1: MOV qword ptr [RSI],0x0 LAB_001354c8: MOV EAX,0xfffffffe LAB_001354cd: POP RBP RET
int8 my_mb_wc_gbk(int8 param_1,ulong *param_2,byte *param_3,byte *param_4) { byte bVar1; byte bVar2; ushort uVar3; uint uVar4; int8 uVar5; uVar5 = 0xffffff9b; if (param_3 < param_4) { bVar1 = *param_3; if ((long)(char)bVar1 < 0) { uVar5 = 0xffffff9a; if ((((param_3 + 2 <= param_4) && (uVar5 = 0, bVar1 != 0x80)) && (bVar1 != 0xff)) && (bVar2 = param_3[1], (char)bVar2 < -1 || 0xc0 < (byte)(bVar2 + 0x81))) { uVar4 = ((uint)bVar1 * 0x100 + (uint)bVar2) - 0x8140; if (uVar4 < 0x7d10) { uVar3 = *(ushort *)(&tab_gbk_uni0 + (ulong)uVar4 * 2); *param_2 = (ulong)uVar3; if (uVar3 != 0) { return 2; } } else { *param_2 = 0; } uVar5 = 0xfffffffe; } } else { *param_2 = (long)(char)bVar1; uVar5 = 1; } } return uVar5; }
19,440
write_rest_of_head
eloqsql/storage/maria/ma_bitmap.c
static my_bool write_rest_of_head(MARIA_HA *info, uint position, ulong rest_length) { MARIA_SHARE *share= info->s; uint full_page_size= FULL_PAGE_SIZE(share); MARIA_BITMAP_BLOCK *block; DBUG_ENTER("write_rest_of_head"); DBUG_PRINT("enter", ("position: %u rest_length: %lu", position, rest_length)); if (position == 0) { /* Write out full pages */ uint pages= rest_length / full_page_size; rest_length%= full_page_size; if (rest_length >= MAX_TAIL_SIZE(share->block_size)) { /* Put tail on a full page */ pages++; rest_length= 0; } if (find_mid(info, pages, 1)) DBUG_RETURN(1); /* Insert empty block after full pages, to allow write_block_record() to split segment into used + free page */ block= dynamic_element(&info->bitmap_blocks, 2, MARIA_BITMAP_BLOCK*); block->page_count= 0; block->used= 0; } if (rest_length) { if (find_tail(info, rest_length, ELEMENTS_RESERVED_FOR_MAIN_PART - 1)) DBUG_RETURN(1); } else { /* Empty tail block */ block= dynamic_element(&info->bitmap_blocks, ELEMENTS_RESERVED_FOR_MAIN_PART - 1, MARIA_BITMAP_BLOCK *); block->page_count= 0; block->used= 0; } DBUG_RETURN(0); }
O0
c
write_rest_of_head: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax movl 0x7bc(%rax), %eax movq -0x28(%rbp), %rcx movl 0xc18(%rcx), %ecx addl $0x8, %ecx subl %ecx, %eax subl $0x4, %eax movl %eax, -0x2c(%rbp) jmp 0x42dff cmpl $0x0, -0x14(%rbp) jne 0x42e99 movq -0x20(%rbp), %rax movl -0x2c(%rbp), %ecx xorl %edx, %edx divq %rcx movl %eax, -0x3c(%rbp) movl -0x2c(%rbp), %eax movl %eax, %ecx movq -0x20(%rbp), %rax xorl %edx, %edx divq %rcx movq %rdx, -0x20(%rbp) movq -0x20(%rbp), %rax movq -0x28(%rbp), %rcx imull $0x3, 0x7bc(%rcx), %ecx shrl $0x2, %ecx movl %ecx, %ecx cmpq %rcx, %rax jb 0x42e54 movl -0x3c(%rbp), %eax addl $0x1, %eax movl %eax, -0x3c(%rbp) movq $0x0, -0x20(%rbp) movq -0x10(%rbp), %rdi movl -0x3c(%rbp), %eax movl %eax, %esi movl $0x1, %edx callq 0x456f0 cmpb $0x0, %al je 0x42e73 jmp 0x42e6d movb $0x1, -0x1(%rbp) jmp 0x42eee movq -0x10(%rbp), %rax movq 0x2c0(%rax), %rax addq $0x30, %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movl $0x0, 0x8(%rax) movq -0x38(%rbp), %rax movb $0x0, 0x14(%rax) cmpq $0x0, -0x20(%rbp) je 0x42ec2 movq -0x10(%rbp), %rdi movq -0x20(%rbp), %rax movl %eax, %esi movl $0x3, %edx callq 0x453d0 cmpb $0x0, %al je 0x42ec0 jmp 0x42eba movb $0x1, -0x1(%rbp) jmp 0x42eee jmp 0x42ee8 movq -0x10(%rbp), %rax movq 0x2c0(%rax), %rax addq $0x48, %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movl $0x0, 0x8(%rax) movq -0x38(%rbp), %rax movb $0x0, 0x14(%rax) jmp 0x42eea movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x40, %rsp popq %rbp retq nopw (%rax,%rax)
write_rest_of_head: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_20], rdx mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_28], rax mov rax, [rbp+var_28] mov eax, [rax+7BCh] mov rcx, [rbp+var_28] mov ecx, [rcx+0C18h] add ecx, 8 sub eax, ecx sub eax, 4 mov [rbp+var_2C], eax jmp short $+2 loc_42DFF: cmp [rbp+var_14], 0 jnz loc_42E99 mov rax, [rbp+var_20] mov ecx, [rbp+var_2C] xor edx, edx div rcx mov [rbp+var_3C], eax mov eax, [rbp+var_2C] mov ecx, eax mov rax, [rbp+var_20] xor edx, edx div rcx mov [rbp+var_20], rdx mov rax, [rbp+var_20] mov rcx, [rbp+var_28] imul ecx, [rcx+7BCh], 3 shr ecx, 2 mov ecx, ecx cmp rax, rcx jb short loc_42E54 mov eax, [rbp+var_3C] add eax, 1 mov [rbp+var_3C], eax mov [rbp+var_20], 0 loc_42E54: mov rdi, [rbp+var_10] mov eax, [rbp+var_3C] mov esi, eax mov edx, 1 call find_mid cmp al, 0 jz short loc_42E73 jmp short $+2 loc_42E6D: mov [rbp+var_1], 1 jmp short loc_42EEE loc_42E73: mov rax, [rbp+var_10] mov rax, [rax+2C0h] add rax, 30h ; '0' mov [rbp+var_38], rax mov rax, [rbp+var_38] mov dword ptr [rax+8], 0 mov rax, [rbp+var_38] mov byte ptr [rax+14h], 0 loc_42E99: cmp [rbp+var_20], 0 jz short loc_42EC2 mov rdi, [rbp+var_10] mov rax, [rbp+var_20] mov esi, eax mov edx, 3 call find_tail cmp al, 0 jz short loc_42EC0 jmp short $+2 loc_42EBA: mov [rbp+var_1], 1 jmp short loc_42EEE loc_42EC0: jmp short loc_42EE8 loc_42EC2: mov rax, [rbp+var_10] mov rax, [rax+2C0h] add rax, 48h ; 'H' mov [rbp+var_38], rax mov rax, [rbp+var_38] mov dword ptr [rax+8], 0 mov rax, [rbp+var_38] mov byte ptr [rax+14h], 0 loc_42EE8: jmp short $+2 loc_42EEA: mov [rbp+var_1], 0 loc_42EEE: mov al, [rbp+var_1] add rsp, 40h pop rbp retn
char write_rest_of_head(_QWORD *a1, int a2, unsigned long long a3) { long long v3; // rax long long v4; // rax unsigned int v6; // [rsp+4h] [rbp-3Ch] unsigned int v7; // [rsp+14h] [rbp-2Ch] unsigned long long v8; // [rsp+20h] [rbp-20h] v8 = a3; v7 = *(_DWORD *)(*a1 + 1980LL) - (*(_DWORD *)(*a1 + 3096LL) + 8) - 4; if ( a2 ) { LABEL_7: if ( v8 ) { if ( (unsigned __int8)find_tail(a1, (unsigned int)v8, 3LL) ) return 1; } else { v4 = a1[88]; *(_DWORD *)(v4 + 80) = 0; *(_BYTE *)(v4 + 92) = 0; } return 0; } v6 = a3 / v7; v8 = a3 % v7; if ( v8 >= (unsigned int)(3 * *(_DWORD *)(*a1 + 1980LL)) >> 2 ) { ++v6; v8 = 0LL; } if ( !(unsigned __int8)find_mid(a1, v6, 1LL) ) { v3 = a1[88]; *(_DWORD *)(v3 + 56) = 0; *(_BYTE *)(v3 + 68) = 0; goto LABEL_7; } return 1; }
write_rest_of_head: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV qword ptr [RBP + -0x20],RDX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x28] MOV EAX,dword ptr [RAX + 0x7bc] MOV RCX,qword ptr [RBP + -0x28] MOV ECX,dword ptr [RCX + 0xc18] ADD ECX,0x8 SUB EAX,ECX SUB EAX,0x4 MOV dword ptr [RBP + -0x2c],EAX JMP 0x00142dff LAB_00142dff: CMP dword ptr [RBP + -0x14],0x0 JNZ 0x00142e99 MOV RAX,qword ptr [RBP + -0x20] MOV ECX,dword ptr [RBP + -0x2c] XOR EDX,EDX DIV RCX MOV dword ptr [RBP + -0x3c],EAX MOV EAX,dword ptr [RBP + -0x2c] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x20] XOR EDX,EDX DIV RCX MOV qword ptr [RBP + -0x20],RDX MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x28] IMUL ECX,dword ptr [RCX + 0x7bc],0x3 SHR ECX,0x2 MOV ECX,ECX CMP RAX,RCX JC 0x00142e54 MOV EAX,dword ptr [RBP + -0x3c] ADD EAX,0x1 MOV dword ptr [RBP + -0x3c],EAX MOV qword ptr [RBP + -0x20],0x0 LAB_00142e54: MOV RDI,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RBP + -0x3c] MOV ESI,EAX MOV EDX,0x1 CALL 0x001456f0 CMP AL,0x0 JZ 0x00142e73 JMP 0x00142e6d LAB_00142e6d: MOV byte ptr [RBP + -0x1],0x1 JMP 0x00142eee LAB_00142e73: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x2c0] ADD RAX,0x30 MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x8],0x0 MOV RAX,qword ptr [RBP + -0x38] MOV byte ptr [RAX + 0x14],0x0 LAB_00142e99: CMP qword ptr [RBP + -0x20],0x0 JZ 0x00142ec2 MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x20] MOV ESI,EAX MOV EDX,0x3 CALL 0x001453d0 CMP AL,0x0 JZ 0x00142ec0 JMP 0x00142eba LAB_00142eba: MOV byte ptr [RBP + -0x1],0x1 JMP 0x00142eee LAB_00142ec0: JMP 0x00142ee8 LAB_00142ec2: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x2c0] ADD RAX,0x48 MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x8],0x0 MOV RAX,qword ptr [RBP + -0x38] MOV byte ptr [RAX + 0x14],0x0 LAB_00142ee8: JMP 0x00142eea LAB_00142eea: MOV byte ptr [RBP + -0x1],0x0 LAB_00142eee: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x40 POP RBP RET
int1 write_rest_of_head(long *param_1,int param_2,ulong param_3) { long lVar1; char cVar2; uint uVar3; int local_44; ulong local_28; lVar1 = *param_1; uVar3 = (*(int *)(lVar1 + 0x7bc) - (*(int *)(lVar1 + 0xc18) + 8)) - 4; local_28 = param_3; if (param_2 == 0) { local_44 = (int)(param_3 / uVar3); local_28 = param_3 % (ulong)uVar3; if ((uint)(*(int *)(lVar1 + 0x7bc) * 3) >> 2 <= local_28) { local_44 = local_44 + 1; local_28 = 0; } cVar2 = find_mid(param_1,local_44,1); if (cVar2 != '\0') { return 1; } lVar1 = param_1[0x58]; *(int4 *)(lVar1 + 0x38) = 0; *(int1 *)(lVar1 + 0x44) = 0; } if (local_28 == 0) { lVar1 = param_1[0x58]; *(int4 *)(lVar1 + 0x50) = 0; *(int1 *)(lVar1 + 0x5c) = 0; } else { cVar2 = find_tail(param_1,local_28 & 0xffffffff,3); if (cVar2 != '\0') { return 1; } } return 0; }
19,441
ma_get_status
eloqsql/storage/maria/ma_state.c
my_bool _ma_get_status(void* param, my_bool concurrent_insert) { MARIA_HA *info=(MARIA_HA*) param; DBUG_ENTER("_ma_get_status"); DBUG_PRINT("info",("key_file: %ld data_file: %ld concurrent_insert: %d", (long) info->s->state.state.key_file_length, (long) info->s->state.state.data_file_length, concurrent_insert)); #ifndef DBUG_OFF if (info->state->key_file_length > info->s->state.state.key_file_length || info->state->data_file_length > info->s->state.state.data_file_length) DBUG_PRINT("warning",("old info: key_file: %ld data_file: %ld", (long) info->state->key_file_length, (long) info->state->data_file_length)); #endif info->state_save= info->s->state.state; info->state= &info->state_save; info->state->changed= 0; info->append_insert_at_end= concurrent_insert; DBUG_RETURN(0); }
O3
c
ma_get_status: pushq %rbp movq %rsp, %rbp leaq 0x28(%rdi), %rax movq (%rdi), %rcx movq 0x48(%rcx), %rdx movq %rdx, 0x58(%rdi) movups 0x18(%rcx), %xmm0 movups 0x28(%rcx), %xmm1 movups 0x38(%rcx), %xmm2 movups %xmm0, 0x28(%rdi) movups %xmm1, 0x38(%rdi) movups %xmm2, 0x48(%rdi) movq %rax, 0x20(%rdi) andb $-0x2, 0x5c(%rdi) movb %sil, 0x681(%rdi) xorl %eax, %eax popq %rbp retq
_ma_get_status: push rbp mov rbp, rsp lea rax, [rdi+28h] mov rcx, [rdi] mov rdx, [rcx+48h] mov [rdi+58h], rdx movups xmm0, xmmword ptr [rcx+18h] movups xmm1, xmmword ptr [rcx+28h] movups xmm2, xmmword ptr [rcx+38h] movups xmmword ptr [rdi+28h], xmm0 movups xmmword ptr [rdi+38h], xmm1 movups xmmword ptr [rdi+48h], xmm2 mov [rdi+20h], rax and byte ptr [rdi+5Ch], 0FEh mov [rdi+681h], sil xor eax, eax pop rbp retn
long long ma_get_status(long long *a1, char a2) { long long v2; // rcx __int128 v3; // xmm1 __int128 v4; // xmm2 v2 = *a1; a1[11] = *(_QWORD *)(*a1 + 72); v3 = *(_OWORD *)(v2 + 40); v4 = *(_OWORD *)(v2 + 56); *(_OWORD *)(a1 + 5) = *(_OWORD *)(v2 + 24); *(_OWORD *)(a1 + 7) = v3; *(_OWORD *)(a1 + 9) = v4; a1[4] = (long long)(a1 + 5); *((_BYTE *)a1 + 92) &= ~1u; *((_BYTE *)a1 + 1665) = a2; return 0LL; }
_ma_get_status: PUSH RBP MOV RBP,RSP LEA RAX,[RDI + 0x28] MOV RCX,qword ptr [RDI] MOV RDX,qword ptr [RCX + 0x48] MOV qword ptr [RDI + 0x58],RDX MOVUPS XMM0,xmmword ptr [RCX + 0x18] MOVUPS XMM1,xmmword ptr [RCX + 0x28] MOVUPS XMM2,xmmword ptr [RCX + 0x38] MOVUPS xmmword ptr [RDI + 0x28],XMM0 MOVUPS xmmword ptr [RDI + 0x38],XMM1 MOVUPS xmmword ptr [RDI + 0x48],XMM2 MOV qword ptr [RDI + 0x20],RAX AND byte ptr [RDI + 0x5c],0xfe MOV byte ptr [RDI + 0x681],SIL XOR EAX,EAX POP RBP RET
int8 _ma_get_status(long *param_1,int1 param_2) { long lVar1; long lVar2; long lVar3; long lVar4; long lVar5; long lVar6; lVar1 = *param_1; param_1[0xb] = *(long *)(lVar1 + 0x48); lVar2 = *(long *)(lVar1 + 0x20); lVar3 = *(long *)(lVar1 + 0x28); lVar4 = *(long *)(lVar1 + 0x30); lVar5 = *(long *)(lVar1 + 0x38); lVar6 = *(long *)(lVar1 + 0x40); param_1[5] = *(long *)(lVar1 + 0x18); param_1[6] = lVar2; param_1[7] = lVar3; param_1[8] = lVar4; param_1[9] = lVar5; param_1[10] = lVar6; param_1[4] = (long)(param_1 + 5); *(byte *)((long)param_1 + 0x5c) = *(byte *)((long)param_1 + 0x5c) & 0xfe; *(int1 *)((long)param_1 + 0x681) = param_2; return 0; }
19,442
POINTonE1_Uncompress_Z
corpus-core[P]colibri-stateless/build_O0/_deps/blst-src/src/e1.c
static BLST_ERROR POINTonE1_Uncompress_Z(POINTonE1_affine *out, const unsigned char in[48]) { unsigned char in0 = in[0]; limb_t sgn0_pty; if ((in0 & 0x80) == 0) /* compressed bit */ return BLST_BAD_ENCODING; if (in0 & 0x40) { /* infinity bit */ if (byte_is_zero(in0 & 0x3f) & bytes_are_zero(in+1, 47)) { vec_zero(out, sizeof(*out)); return BLST_SUCCESS; } else { return BLST_BAD_ENCODING; } } sgn0_pty = POINTonE1_Uncompress_BE(out, in); if (sgn0_pty > 3) return (BLST_ERROR)(0 - sgn0_pty); /* POINT_NOT_ON_CURVE */ sgn0_pty >>= 1; /* skip over parity bit */ sgn0_pty ^= (in0 & 0x20) >> 5; cneg_fp(out->Y, out->Y, sgn0_pty); /* (0,±2) is not in group, but application might want to ignore? */ return vec_is_zero(out->X, sizeof(out->X)) ? BLST_POINT_NOT_IN_GROUP : BLST_SUCCESS; }
O0
c
POINTonE1_Uncompress_Z: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x18(%rbp), %rax movb (%rax), %al movb %al, -0x19(%rbp) movzbl -0x19(%rbp), %eax andl $0x80, %eax cmpl $0x0, %eax jne 0x23e43 movl $0x1, -0x4(%rbp) jmp 0x23f24 movzbl -0x19(%rbp), %eax andl $0x40, %eax cmpl $0x0, %eax je 0x23ea7 movzbl -0x19(%rbp), %eax andl $0x3f, %eax movzbl %al, %edi callq 0x32ec0 movq %rax, -0x30(%rbp) movq -0x18(%rbp), %rdi addq $0x1, %rdi movl $0x2f, %esi callq 0x306a0 movq %rax, %rcx movq -0x30(%rbp), %rax andq %rcx, %rax cmpq $0x0, %rax je 0x23e9e movq -0x10(%rbp), %rdi movl $0x60, %esi callq 0x23310 movl $0x0, -0x4(%rbp) jmp 0x23f24 movl $0x1, -0x4(%rbp) jmp 0x23f24 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0x32ef0 movq %rax, -0x28(%rbp) cmpq $0x3, -0x28(%rbp) jbe 0x23eca xorl %eax, %eax subq -0x28(%rbp), %rax movl %eax, -0x4(%rbp) jmp 0x23f24 movq -0x28(%rbp), %rax shrq %rax movq %rax, -0x28(%rbp) movzbl -0x19(%rbp), %eax andl $0x20, %eax sarl $0x5, %eax cltq xorq -0x28(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x10(%rbp), %rdi addq $0x30, %rdi movq -0x10(%rbp), %rsi addq $0x30, %rsi movq -0x28(%rbp), %rdx callq 0x2a970 movq -0x10(%rbp), %rdi movl $0x30, %esi callq 0x23820 movq %rax, %rdx xorl %eax, %eax movl $0x3, %ecx cmpq $0x0, %rdx cmovnel %ecx, %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x30, %rsp popq %rbp retq nopl (%rax)
POINTonE1_Uncompress_Z: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rax, [rbp+var_18] mov al, [rax] mov [rbp+var_19], al movzx eax, [rbp+var_19] and eax, 80h cmp eax, 0 jnz short loc_23E43 mov [rbp+var_4], 1 jmp loc_23F24 loc_23E43: movzx eax, [rbp+var_19] and eax, 40h cmp eax, 0 jz short loc_23EA7 movzx eax, [rbp+var_19] and eax, 3Fh movzx edi, al call _byte_is_zero mov [rbp+var_30], rax mov rdi, [rbp+var_18] add rdi, 1 mov esi, 2Fh ; '/' call bytes_are_zero mov rcx, rax mov rax, [rbp+var_30] and rax, rcx cmp rax, 0 jz short loc_23E9E mov rdi, [rbp+var_10] mov esi, 60h ; '`' call vec_zero mov [rbp+var_4], 0 jmp loc_23F24 loc_23E9E: mov [rbp+var_4], 1 jmp short loc_23F24 loc_23EA7: mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] call POINTonE1_Uncompress_BE mov [rbp+var_28], rax cmp [rbp+var_28], 3 jbe short loc_23ECA xor eax, eax sub rax, [rbp+var_28] mov [rbp+var_4], eax jmp short loc_23F24 loc_23ECA: mov rax, [rbp+var_28] shr rax, 1 mov [rbp+var_28], rax movzx eax, [rbp+var_19] and eax, 20h sar eax, 5 cdqe xor rax, [rbp+var_28] mov [rbp+var_28], rax mov rdi, [rbp+var_10] add rdi, 30h ; '0' mov rsi, [rbp+var_10] add rsi, 30h ; '0' mov rdx, [rbp+var_28] call cneg_fp mov rdi, [rbp+var_10] mov esi, 30h ; '0' call vec_is_zero mov rdx, rax xor eax, eax mov ecx, 3 cmp rdx, 0 cmovnz eax, ecx mov [rbp+var_4], eax loc_23F24: mov eax, [rbp+var_4] add rsp, 30h pop rbp retn
long long POINTonE1_Uncompress_Z(long long a1, char *a2) { unsigned long long v2; // rdx unsigned int v3; // eax long long is_zero; // [rsp+0h] [rbp-30h] unsigned long long v6; // [rsp+8h] [rbp-28h] char v7; // [rsp+17h] [rbp-19h] v7 = *a2; if ( *a2 < 0 ) { if ( (v7 & 0x40) != 0 ) { is_zero = byte_is_zero(v7 & 0x3F); if ( (bytes_are_zero(a2 + 1, 47LL) & is_zero) != 0 ) { vec_zero(a1, 0x60uLL); return 0; } else { return 1; } } else { v6 = POINTonE1_Uncompress_BE(a1, a2); if ( v6 <= 3 ) { cneg_fp(a1 + 48, a1 + 48, (v6 >> 1) ^ ((v7 & 0x20) >> 5)); v2 = vec_is_zero(a1, 0x30uLL); v3 = 0; if ( v2 ) return 3; return v3; } else { return (unsigned int)-(int)v6; } } } else { return 1; } }
POINTonE1_Uncompress_Z: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV RAX,qword ptr [RBP + -0x18] MOV AL,byte ptr [RAX] MOV byte ptr [RBP + -0x19],AL MOVZX EAX,byte ptr [RBP + -0x19] AND EAX,0x80 CMP EAX,0x0 JNZ 0x00123e43 MOV dword ptr [RBP + -0x4],0x1 JMP 0x00123f24 LAB_00123e43: MOVZX EAX,byte ptr [RBP + -0x19] AND EAX,0x40 CMP EAX,0x0 JZ 0x00123ea7 MOVZX EAX,byte ptr [RBP + -0x19] AND EAX,0x3f MOVZX EDI,AL CALL 0x00132ec0 MOV qword ptr [RBP + -0x30],RAX MOV RDI,qword ptr [RBP + -0x18] ADD RDI,0x1 MOV ESI,0x2f CALL 0x001306a0 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x30] AND RAX,RCX CMP RAX,0x0 JZ 0x00123e9e MOV RDI,qword ptr [RBP + -0x10] MOV ESI,0x60 CALL 0x00123310 MOV dword ptr [RBP + -0x4],0x0 JMP 0x00123f24 LAB_00123e9e: MOV dword ptr [RBP + -0x4],0x1 JMP 0x00123f24 LAB_00123ea7: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] CALL 0x00132ef0 MOV qword ptr [RBP + -0x28],RAX CMP qword ptr [RBP + -0x28],0x3 JBE 0x00123eca XOR EAX,EAX SUB RAX,qword ptr [RBP + -0x28] MOV dword ptr [RBP + -0x4],EAX JMP 0x00123f24 LAB_00123eca: MOV RAX,qword ptr [RBP + -0x28] SHR RAX,0x1 MOV qword ptr [RBP + -0x28],RAX MOVZX EAX,byte ptr [RBP + -0x19] AND EAX,0x20 SAR EAX,0x5 CDQE XOR RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x28],RAX MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x30 MOV RSI,qword ptr [RBP + -0x10] ADD RSI,0x30 MOV RDX,qword ptr [RBP + -0x28] CALL 0x0012a970 MOV RDI,qword ptr [RBP + -0x10] MOV ESI,0x30 CALL 0x00123820 MOV RDX,RAX XOR EAX,EAX MOV ECX,0x3 CMP RDX,0x0 CMOVNZ EAX,ECX MOV dword ptr [RBP + -0x4],EAX LAB_00123f24: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x30 POP RBP RET
int POINTonE1_Uncompress_Z(long param_1,byte *param_2) { byte bVar1; ulong uVar2; ulong uVar3; long lVar4; int local_c; bVar1 = *param_2; if ((bVar1 & 0x80) == 0) { local_c = 1; } else if ((bVar1 & 0x40) == 0) { uVar2 = POINTonE1_Uncompress_BE(param_1,param_2); if (uVar2 < 4) { cneg_fp(param_1 + 0x30,param_1 + 0x30,(long)((int)(bVar1 & 0x20) >> 5) ^ uVar2 >> 1); lVar4 = vec_is_zero(param_1,0x30); local_c = 0; if (lVar4 != 0) { local_c = 3; } } else { local_c = -(int)uVar2; } } else { uVar2 = byte_is_zero(bVar1 & 0x3f); uVar3 = bytes_are_zero(param_2 + 1,0x2f); if ((uVar2 & uVar3) == 0) { local_c = 1; } else { vec_zero(param_1,0x60); local_c = 0; } } return local_c; }
19,443
wqueue_release_queue
eloqsql/mysys/wqueue.c
void wqueue_release_queue(WQUEUE *wqueue) { struct st_my_thread_var *last= wqueue->last_thread; struct st_my_thread_var *next= last->next; struct st_my_thread_var *thread; do { thread= next; mysql_cond_signal(&thread->suspend); next= thread->next; thread->next= NULL; } while (thread != last); wqueue->last_thread= NULL; }
O3
c
wqueue_release_queue: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rdi, %rbx movq (%rdi), %r14 movq 0x88(%r14), %r12 leaq 0x2ed892(%rip), %r15 # 0x3b8c08 movq 0x38(%r12), %rdi testq %rdi, %rdi jne 0xcb3a8 leaq 0x8(%r12), %rdi callq 0x2b680 movq 0x88(%r12), %rax movq $0x0, 0x88(%r12) cmpq %r14, %r12 movq %rax, %r12 jne 0xcb376 jmp 0xcb3b3 movq (%r15), %rax callq *0x170(%rax) jmp 0xcb380 movq $0x0, (%rbx) popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
wqueue_release_queue: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov rbx, rdi mov r14, [rdi] mov r12, [r14+88h] lea r15, PSI_server loc_CB376: mov rdi, [r12+38h] test rdi, rdi jnz short loc_CB3A8 loc_CB380: lea rdi, [r12+8] call _pthread_cond_signal mov rax, [r12+88h] mov qword ptr [r12+88h], 0 cmp r12, r14 mov r12, rax jnz short loc_CB376 jmp short loc_CB3B3 loc_CB3A8: mov rax, [r15] call qword ptr [rax+170h] jmp short loc_CB380 loc_CB3B3: mov qword ptr [rbx], 0 pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long wqueue_release_queue(long long *a1) { long long v1; // r14 long long v2; // r12 long long result; // rax bool v4; // zf v1 = *a1; v2 = *(_QWORD *)(*a1 + 136); do { if ( *(_QWORD *)(v2 + 56) ) PSI_server[46](); pthread_cond_signal(v2 + 8); result = *(_QWORD *)(v2 + 136); *(_QWORD *)(v2 + 136) = 0LL; v4 = v2 == v1; v2 = result; } while ( !v4 ); *a1 = 0LL; return result; }
wqueue_release_queue: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV RBX,RDI MOV R14,qword ptr [RDI] MOV R12,qword ptr [R14 + 0x88] LEA R15,[0x4b8c08] LAB_001cb376: MOV RDI,qword ptr [R12 + 0x38] TEST RDI,RDI JNZ 0x001cb3a8 LAB_001cb380: LEA RDI,[R12 + 0x8] CALL 0x0012b680 MOV RAX,qword ptr [R12 + 0x88] MOV qword ptr [R12 + 0x88],0x0 CMP R12,R14 MOV R12,RAX JNZ 0x001cb376 JMP 0x001cb3b3 LAB_001cb3a8: MOV RAX,qword ptr [R15] CALL qword ptr [RAX + 0x170] JMP 0x001cb380 LAB_001cb3b3: MOV qword ptr [RBX],0x0 POP RBX POP R12 POP R14 POP R15 POP RBP RET
void wqueue_release_queue(long *param_1) { long lVar1; long lVar2; long lVar3; bool bVar4; lVar1 = *param_1; lVar3 = *(long *)(lVar1 + 0x88); do { if (*(long *)(lVar3 + 0x38) != 0) { (**(code **)(PSI_server + 0x170))(); } pthread_cond_signal((pthread_cond_t *)(lVar3 + 8)); lVar2 = *(long *)(lVar3 + 0x88); *(int8 *)(lVar3 + 0x88) = 0; bVar4 = lVar3 != lVar1; lVar3 = lVar2; } while (bVar4); *param_1 = 0; return; }
19,444
StartTree::UPGMA_Matrix<float>::loadMatrix(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&, double*)
iqtree3/utils/bionj2.cpp
virtual bool loadMatrix(const std::vector<std::string>& names, double* matrix) { //Assumptions: 2 < names.size(), all names distinct // matrix is symmetric, with matrix[row*names.size()+col] // containing the distance between taxon row and taxon col. setSize(names.size()); clusters.clear(); for (auto it = names.begin(); it != names.end(); ++it) { clusters.addCluster(*it); } rowToCluster.resize(n, 0); for (size_t r=0; r<n; ++r) { rowToCluster[r]=r; } #pragma omp parallel for for (size_t row=0; row<n; ++row) { double* sourceStart = matrix + row * n; double* sourceStop = sourceStart + n; T* dest = rows[row]; for (double* source=sourceStart; source<sourceStop; ++source, ++dest ) { *dest = (T) *source; } } calculateRowTotals(); return true; }
O0
cpp
StartTree::UPGMA_Matrix<float>::loadMatrix(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&, double*): subq $0x78, %rsp movq %rdi, 0x70(%rsp) movq %rsi, 0x68(%rsp) movq %rdx, 0x60(%rsp) movq 0x70(%rsp), %rax movq %rax, 0x10(%rsp) movq 0x68(%rsp), %rdi callq 0x44260 movq 0x10(%rsp), %rdi movq %rax, %rsi movq (%rdi), %rax callq *(%rax) movq 0x10(%rsp), %rdi addq $0x48, %rdi callq 0x44280 movq 0x68(%rsp), %rdi callq 0x442a0 movq %rax, 0x58(%rsp) movq 0x68(%rsp), %rdi callq 0x44310 movq %rax, 0x50(%rsp) leaq 0x58(%rsp), %rdi leaq 0x50(%rsp), %rsi callq 0x442d0 testb $0x1, %al jne 0x3f9b5 jmp 0x3f9e6 movq 0x10(%rsp), %rax addq $0x48, %rax movq %rax, 0x8(%rsp) leaq 0x58(%rsp), %rdi callq 0x44370 movq 0x8(%rsp), %rdi movq %rax, %rsi callq 0x44340 leaq 0x58(%rsp), %rdi callq 0x44380 jmp 0x3f991 movq 0x10(%rsp), %rax movq %rax, %rdi addq $0x30, %rdi movq 0x8(%rax), %rsi movq $0x0, 0x48(%rsp) leaq 0x48(%rsp), %rdx callq 0x443a0 movq $0x0, 0x40(%rsp) movq 0x10(%rsp), %rcx movq 0x40(%rsp), %rax cmpq 0x8(%rcx), %rax jae 0x3fa55 movq 0x10(%rsp), %rdi movq 0x40(%rsp), %rax movq %rax, (%rsp) addq $0x30, %rdi movq 0x40(%rsp), %rsi callq 0x42750 movq (%rsp), %rcx movq %rcx, (%rax) movq 0x40(%rsp), %rax addq $0x1, %rax movq %rax, 0x40(%rsp) jmp 0x3fa12 movq $0x0, 0x38(%rsp) movq 0x10(%rsp), %rcx movq 0x38(%rsp), %rax cmpq 0x8(%rcx), %rax jae 0x3fb18 movq 0x10(%rsp), %rax movq 0x60(%rsp), %rcx movq 0x38(%rsp), %rdx imulq 0x8(%rax), %rdx shlq $0x3, %rdx addq %rdx, %rcx movq %rcx, 0x30(%rsp) movq 0x30(%rsp), %rcx movq 0x8(%rax), %rdx shlq $0x3, %rdx addq %rdx, %rcx movq %rcx, 0x28(%rsp) movq 0x20(%rax), %rax movq 0x38(%rsp), %rcx movq (%rax,%rcx,8), %rax movq %rax, 0x20(%rsp) movq 0x30(%rsp), %rax movq %rax, 0x18(%rsp) movq 0x18(%rsp), %rax cmpq 0x28(%rsp), %rax jae 0x3fb03 movq 0x18(%rsp), %rax movsd (%rax), %xmm0 cvtsd2ss %xmm0, %xmm0 movq 0x20(%rsp), %rax movss %xmm0, (%rax) movq 0x18(%rsp), %rax addq $0x8, %rax movq %rax, 0x18(%rsp) movq 0x20(%rsp), %rax addq $0x4, %rax movq %rax, 0x20(%rsp) jmp 0x3fac3 jmp 0x3fb05 movq 0x38(%rsp), %rax addq $0x1, %rax movq %rax, 0x38(%rsp) jmp 0x3fa5e movq 0x10(%rsp), %rdi movq (%rdi), %rax callq *0x18(%rax) movb $0x1, %al andb $0x1, %al addq $0x78, %rsp retq nopl (%rax)
_ZN9StartTree12UPGMA_MatrixIfE10loadMatrixERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EEPd: sub rsp, 78h mov [rsp+78h+var_8], rdi mov [rsp+78h+var_10], rsi mov [rsp+78h+var_18], rdx mov rax, [rsp+78h+var_8] mov [rsp+78h+var_68], rax mov rdi, [rsp+78h+var_10] call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv; std::vector<std::string>::size(void) mov rdi, [rsp+78h+var_68] mov rsi, rax mov rax, [rdi] call qword ptr [rax] mov rdi, [rsp+78h+var_68] add rdi, 48h ; 'H' call _ZNSt6vectorIN9StartTree7ClusterIfEESaIS2_EE5clearEv; std::vector<StartTree::Cluster<float>>::clear(void) mov rdi, [rsp+78h+var_10] call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5beginEv; std::vector<std::string>::begin(void) mov [rsp+78h+var_20], rax loc_3F991: mov rdi, [rsp+78h+var_10] call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE3endEv; std::vector<std::string>::end(void) mov [rsp+78h+var_28], rax lea rdi, [rsp+78h+var_20] lea rsi, [rsp+78h+var_28] call _ZN9__gnu_cxxneIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_; __gnu_cxx::operator!=<std::string const*,std::vector<std::string>>(__gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>> const&,__gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>> const&) test al, 1 jnz short loc_3F9B5 jmp short loc_3F9E6 loc_3F9B5: mov rax, [rsp+78h+var_68] add rax, 48h ; 'H' mov [rsp+78h+var_70], rax lea rdi, [rsp+78h+var_20] call _ZNK9__gnu_cxx17__normal_iteratorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEdeEv; __gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>>::operator*(void) mov rdi, [rsp+78h+var_70] mov rsi, rax call _ZN9StartTree11ClusterTreeIfE10addClusterERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; StartTree::ClusterTree<float>::addCluster(std::string const&) lea rdi, [rsp+78h+var_20] call _ZN9__gnu_cxx17__normal_iteratorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEppEv; __gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>>::operator++(void) jmp short loc_3F991 loc_3F9E6: mov rax, [rsp+78h+var_68] mov rdi, rax add rdi, 30h ; '0' mov rsi, [rax+8] mov [rsp+78h+var_30], 0 lea rdx, [rsp+78h+var_30] call _ZNSt6vectorImSaImEE6resizeEmRKm; std::vector<ulong>::resize(ulong,ulong const&) mov [rsp+78h+var_38], 0 loc_3FA12: mov rcx, [rsp+78h+var_68] mov rax, [rsp+78h+var_38] cmp rax, [rcx+8] jnb short loc_3FA55 mov rdi, [rsp+78h+var_68] mov rax, [rsp+78h+var_38] mov [rsp+78h+var_78], rax add rdi, 30h ; '0' mov rsi, [rsp+78h+var_38] call _ZNSt6vectorImSaImEEixEm; std::vector<ulong>::operator[](ulong) mov rcx, [rsp+78h+var_78] mov [rax], rcx mov rax, [rsp+78h+var_38] add rax, 1 mov [rsp+78h+var_38], rax jmp short loc_3FA12 loc_3FA55: mov [rsp+78h+var_40], 0 loc_3FA5E: mov rcx, [rsp+78h+var_68] mov rax, [rsp+78h+var_40] cmp rax, [rcx+8] jnb loc_3FB18 mov rax, [rsp+78h+var_68] mov rcx, [rsp+78h+var_18] mov rdx, [rsp+78h+var_40] imul rdx, [rax+8] shl rdx, 3 add rcx, rdx mov [rsp+78h+var_48], rcx mov rcx, [rsp+78h+var_48] mov rdx, [rax+8] shl rdx, 3 add rcx, rdx mov [rsp+78h+var_50], rcx mov rax, [rax+20h] mov rcx, [rsp+78h+var_40] mov rax, [rax+rcx*8] mov [rsp+78h+var_58], rax mov rax, [rsp+78h+var_48] mov [rsp+78h+var_60], rax loc_3FAC3: mov rax, [rsp+78h+var_60] cmp rax, [rsp+78h+var_50] jnb short loc_3FB03 mov rax, [rsp+78h+var_60] movsd xmm0, qword ptr [rax] cvtsd2ss xmm0, xmm0 mov rax, [rsp+78h+var_58] movss dword ptr [rax], xmm0 mov rax, [rsp+78h+var_60] add rax, 8 mov [rsp+78h+var_60], rax mov rax, [rsp+78h+var_58] add rax, 4 mov [rsp+78h+var_58], rax jmp short loc_3FAC3 loc_3FB03: jmp short $+2 loc_3FB05: mov rax, [rsp+78h+var_40] add rax, 1 mov [rsp+78h+var_40], rax jmp loc_3FA5E loc_3FB18: mov rdi, [rsp+78h+var_68] mov rax, [rdi] call qword ptr [rax+18h] mov al, 1 and al, 1 add rsp, 78h retn
char StartTree::UPGMA_Matrix<float>::loadMatrix(_QWORD *a1, long long a2, long long a3) { long long v3; // rax long long v4; // rsi long long v5; // rsi float v6; // xmm0_4 double *m; // [rsp+18h] [rbp-60h] float *v9; // [rsp+20h] [rbp-58h] unsigned long long v10; // [rsp+28h] [rbp-50h] unsigned long long k; // [rsp+38h] [rbp-40h] unsigned long long j; // [rsp+40h] [rbp-38h] long long v13; // [rsp+48h] [rbp-30h] BYREF long long v14; // [rsp+50h] [rbp-28h] BYREF long long i; // [rsp+58h] [rbp-20h] BYREF long long v16; // [rsp+60h] [rbp-18h] long long v17; // [rsp+68h] [rbp-10h] _QWORD *v18; // [rsp+70h] [rbp-8h] v18 = a1; v17 = a2; v16 = a3; v3 = std::vector<std::string>::size(a2); (*(void ( **)(_QWORD *, long long))*a1)(a1, v3); std::vector<StartTree::Cluster<float>>::clear(a1 + 9); for ( i = std::vector<std::string>::begin(a2); ; __gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>>::operator++(&i) ) { v14 = std::vector<std::string>::end(v17); if ( (__gnu_cxx::operator!=<std::string const*,std::vector<std::string>>(&i, &v14) & 1) == 0 ) break; v4 = __gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>>::operator*(&i); StartTree::ClusterTree<float>::addCluster(a1 + 9, v4); } v5 = a1[1]; v13 = 0LL; std::vector<unsigned long>::resize(a1 + 6, v5, &v13); for ( j = 0LL; j < a1[1]; ++j ) *(_QWORD *)std::vector<unsigned long>::operator[](a1 + 6, j) = j; for ( k = 0LL; k < a1[1]; ++k ) { v10 = 8LL * a1[1] + 8 * a1[1] * k + v16; v9 = *(float **)(a1[4] + 8 * k); for ( m = (double *)(8 * a1[1] * k + v16); (unsigned long long)m < v10; ++m ) { v6 = *m; *v9++ = v6; } } (*(void ( **)(_QWORD *))(*a1 + 24LL))(a1); return 1; }
loadMatrix: SUB RSP,0x78 MOV qword ptr [RSP + 0x70],RDI MOV qword ptr [RSP + 0x68],RSI MOV qword ptr [RSP + 0x60],RDX MOV RAX,qword ptr [RSP + 0x70] MOV qword ptr [RSP + 0x10],RAX MOV RDI,qword ptr [RSP + 0x68] CALL 0x00144260 MOV RDI,qword ptr [RSP + 0x10] MOV RSI,RAX MOV RAX,qword ptr [RDI] CALL qword ptr [RAX] MOV RDI,qword ptr [RSP + 0x10] ADD RDI,0x48 CALL 0x00144280 MOV RDI,qword ptr [RSP + 0x68] CALL 0x001442a0 MOV qword ptr [RSP + 0x58],RAX LAB_0013f991: MOV RDI,qword ptr [RSP + 0x68] CALL 0x00144310 MOV qword ptr [RSP + 0x50],RAX LEA RDI,[RSP + 0x58] LEA RSI,[RSP + 0x50] CALL 0x001442d0 TEST AL,0x1 JNZ 0x0013f9b5 JMP 0x0013f9e6 LAB_0013f9b5: MOV RAX,qword ptr [RSP + 0x10] ADD RAX,0x48 MOV qword ptr [RSP + 0x8],RAX LEA RDI,[RSP + 0x58] CALL 0x00144370 MOV RDI,qword ptr [RSP + 0x8] MOV RSI,RAX CALL 0x00144340 LEA RDI,[RSP + 0x58] CALL 0x00144380 JMP 0x0013f991 LAB_0013f9e6: MOV RAX,qword ptr [RSP + 0x10] MOV RDI,RAX ADD RDI,0x30 MOV RSI,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x48],0x0 LEA RDX,[RSP + 0x48] CALL 0x001443a0 MOV qword ptr [RSP + 0x40],0x0 LAB_0013fa12: MOV RCX,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RSP + 0x40] CMP RAX,qword ptr [RCX + 0x8] JNC 0x0013fa55 MOV RDI,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RSP + 0x40] MOV qword ptr [RSP],RAX ADD RDI,0x30 MOV RSI,qword ptr [RSP + 0x40] CALL 0x00142750 MOV RCX,qword ptr [RSP] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RSP + 0x40] ADD RAX,0x1 MOV qword ptr [RSP + 0x40],RAX JMP 0x0013fa12 LAB_0013fa55: MOV qword ptr [RSP + 0x38],0x0 LAB_0013fa5e: MOV RCX,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RSP + 0x38] CMP RAX,qword ptr [RCX + 0x8] JNC 0x0013fb18 MOV RAX,qword ptr [RSP + 0x10] MOV RCX,qword ptr [RSP + 0x60] MOV RDX,qword ptr [RSP + 0x38] IMUL RDX,qword ptr [RAX + 0x8] SHL RDX,0x3 ADD RCX,RDX MOV qword ptr [RSP + 0x30],RCX MOV RCX,qword ptr [RSP + 0x30] MOV RDX,qword ptr [RAX + 0x8] SHL RDX,0x3 ADD RCX,RDX MOV qword ptr [RSP + 0x28],RCX MOV RAX,qword ptr [RAX + 0x20] MOV RCX,qword ptr [RSP + 0x38] MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RSP + 0x20],RAX MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x18],RAX LAB_0013fac3: MOV RAX,qword ptr [RSP + 0x18] CMP RAX,qword ptr [RSP + 0x28] JNC 0x0013fb03 MOV RAX,qword ptr [RSP + 0x18] MOVSD XMM0,qword ptr [RAX] CVTSD2SS XMM0,XMM0 MOV RAX,qword ptr [RSP + 0x20] MOVSS dword ptr [RAX],XMM0 MOV RAX,qword ptr [RSP + 0x18] ADD RAX,0x8 MOV qword ptr [RSP + 0x18],RAX MOV RAX,qword ptr [RSP + 0x20] ADD RAX,0x4 MOV qword ptr [RSP + 0x20],RAX JMP 0x0013fac3 LAB_0013fb03: JMP 0x0013fb05 LAB_0013fb05: MOV RAX,qword ptr [RSP + 0x38] ADD RAX,0x1 MOV qword ptr [RSP + 0x38],RAX JMP 0x0013fa5e LAB_0013fb18: MOV RDI,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x18] MOV AL,0x1 AND AL,0x1 ADD RSP,0x78 RET
/* StartTree::UPGMA_Matrix<float>::loadMatrix(std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > > const&, double*) */ int8 __thiscall StartTree::UPGMA_Matrix<float>::loadMatrix (UPGMA_Matrix<float> *this,vector *param_1,double *param_2) { bool bVar1; int8 uVar2; string *psVar3; ulong *puVar4; double *pdVar5; double *local_60; float *local_58; ulong local_40; ulong local_38; ulong local_30; int8 local_28; int8 local_20; double *local_18; vector *local_10; UPGMA_Matrix<float> *local_8; local_18 = param_2; local_10 = param_1; local_8 = this; uVar2 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::size ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)param_1); (*(code *)**(int8 **)this)(this,uVar2); std::vector<StartTree::Cluster<float>,std::allocator<StartTree::Cluster<float>>>::clear ((vector<StartTree::Cluster<float>,std::allocator<StartTree::Cluster<float>>> *) (this + 0x48)); local_20 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::begin ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *) local_10); while( true ) { local_28 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::end ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *) local_10); bVar1 = __gnu_cxx::operator!=((__normal_iterator *)&local_20,(__normal_iterator *)&local_28); if (!bVar1) break; psVar3 = (string *) __gnu_cxx:: __normal_iterator<std::__cxx11::string_const*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>> ::operator*((__normal_iterator<std::__cxx11::string_const*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>> *)&local_20); ClusterTree<float>::addCluster((ClusterTree<float> *)(this + 0x48),psVar3); __gnu_cxx:: __normal_iterator<std::__cxx11::string_const*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>> ::operator++((__normal_iterator<std::__cxx11::string_const*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>> *)&local_20); } local_30 = 0; std::vector<unsigned_long,std::allocator<unsigned_long>>::resize ((vector<unsigned_long,std::allocator<unsigned_long>> *)(this + 0x30), *(ulong *)(this + 8),&local_30); for (local_38 = 0; local_38 < *(ulong *)(this + 8); local_38 = local_38 + 1) { puVar4 = (ulong *)std::vector<unsigned_long,std::allocator<unsigned_long>>::operator[] ((vector<unsigned_long,std::allocator<unsigned_long>> *) (this + 0x30),local_38); *puVar4 = local_38; } for (local_40 = 0; local_40 < *(ulong *)(this + 8); local_40 = local_40 + 1) { local_60 = local_18 + local_40 * *(long *)(this + 8); pdVar5 = local_60 + *(long *)(this + 8); local_58 = *(float **)(*(long *)(this + 0x20) + local_40 * 8); for (; local_60 < pdVar5; local_60 = local_60 + 1) { *local_58 = (float)*local_60; local_58 = local_58 + 1; } } (**(code **)(*(long *)this + 0x18))(); return 1; }
19,445
StartTree::UPGMA_Matrix<float>::loadMatrix(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&, double*)
iqtree3/utils/bionj2.cpp
virtual bool loadMatrix(const std::vector<std::string>& names, double* matrix) { //Assumptions: 2 < names.size(), all names distinct // matrix is symmetric, with matrix[row*names.size()+col] // containing the distance between taxon row and taxon col. setSize(names.size()); clusters.clear(); for (auto it = names.begin(); it != names.end(); ++it) { clusters.addCluster(*it); } rowToCluster.resize(n, 0); for (size_t r=0; r<n; ++r) { rowToCluster[r]=r; } #pragma omp parallel for for (size_t row=0; row<n; ++row) { double* sourceStart = matrix + row * n; double* sourceStop = sourceStart + n; T* dest = rows[row]; for (double* source=sourceStart; source<sourceStop; ++source, ++dest ) { *dest = (T) *source; } } calculateRowTotals(); return true; }
O3
cpp
StartTree::UPGMA_Matrix<float>::loadMatrix(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&, double*): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx movq 0x8(%rsi), %rsi subq (%r15), %rsi sarq $0x5, %rsi movq (%rdi), %rax callq *(%rax) leaq 0x48(%rbx), %r12 movq 0x48(%rbx), %rsi movq %r12, %rdi callq 0x26f00 movq (%r15), %r13 cmpq 0x8(%r15), %r13 je 0x25f38 movq %r12, %rdi movq %r13, %rsi callq 0x26f30 addq $0x20, %r13 jmp 0x25f21 leaq 0x30(%rbx), %r15 movq 0x8(%rbx), %rsi leaq 0x8(%rsp), %rdx movq $0x0, (%rdx) movq %r15, %rdi callq 0x1af90 cmpq $0x0, 0x8(%rbx) je 0x25fb1 movq (%r15), %rcx xorl %edx, %edx movq %rdx, (%rcx,%rdx,8) incq %rdx movq 0x8(%rbx), %rax cmpq %rax, %rdx jb 0x25f60 testq %rax, %rax je 0x25fb1 movq 0x20(%rbx), %rcx xorl %edx, %edx testq %rax, %rax jle 0x25fa9 movq %rdx, %rsi imulq %rax, %rsi leaq (%r14,%rsi,8), %rsi leaq (%rsi,%rax,8), %rdi movq (%rcx,%rdx,8), %r8 movsd (%rsi), %xmm0 movsd %xmm0, (%r8) addq $0x8, %rsi addq $0x8, %r8 cmpq %rdi, %rsi jb 0x25f93 incq %rdx cmpq %rax, %rdx jne 0x25f7b movq (%rbx), %rax movq %rbx, %rdi callq *0x18(%rax) movb $0x1, %al addq $0x10, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq
_ZN9StartTree12UPGMA_MatrixIdE10loadMatrixERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EEPd: push r15 push r14 push r13 push r12 push rbx sub rsp, 10h mov r14, rdx mov r15, rsi mov rbx, rdi mov rsi, [rsi+8] sub rsi, [r15] sar rsi, 5 mov rax, [rdi] call qword ptr [rax] lea r12, [rbx+48h] mov rsi, [rbx+48h] mov rdi, r12 call _ZNSt6vectorIN9StartTree7ClusterIdEESaIS2_EE15_M_erase_at_endEPS2_; std::vector<StartTree::Cluster<double>>::_M_erase_at_end(StartTree::Cluster<double>*) mov r13, [r15] loc_25F21: cmp r13, [r15+8] jz short loc_25F38 mov rdi, r12 mov rsi, r13 call _ZNSt6vectorIN9StartTree7ClusterIdEESaIS2_EE12emplace_backIJRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEERS2_DpOT_; std::vector<StartTree::Cluster<double>>::emplace_back<std::string const&>(std::string const&) add r13, 20h ; ' ' jmp short loc_25F21 loc_25F38: lea r15, [rbx+30h] mov rsi, [rbx+8] lea rdx, [rsp+38h+var_30] mov qword ptr [rdx], 0 mov rdi, r15 call _ZNSt6vectorImSaImEE6resizeEmRKm; std::vector<ulong>::resize(ulong,ulong const&) cmp qword ptr [rbx+8], 0 jz short loc_25FB1 mov rcx, [r15] xor edx, edx loc_25F60: mov [rcx+rdx*8], rdx inc rdx mov rax, [rbx+8] cmp rdx, rax jb short loc_25F60 test rax, rax jz short loc_25FB1 mov rcx, [rbx+20h] xor edx, edx loc_25F7B: test rax, rax jle short loc_25FA9 mov rsi, rdx imul rsi, rax lea rsi, [r14+rsi*8] lea rdi, [rsi+rax*8] mov r8, [rcx+rdx*8] loc_25F93: movsd xmm0, qword ptr [rsi] movsd qword ptr [r8], xmm0 add rsi, 8 add r8, 8 cmp rsi, rdi jb short loc_25F93 loc_25FA9: inc rdx cmp rdx, rax jnz short loc_25F7B loc_25FB1: mov rax, [rbx] mov rdi, rbx call qword ptr [rax+18h] mov al, 1 add rsp, 10h pop rbx pop r12 pop r13 pop r14 pop r15 retn
char StartTree::UPGMA_Matrix<double>::loadMatrix(_QWORD *a1, long long *a2, long long a3) { long long i; // r13 unsigned long long v6; // rsi long long v7; // rcx unsigned long long v8; // rdx long long v9; // rax long long v10; // rcx long long j; // rdx _QWORD *v12; // rsi _QWORD *v13; // rdi _QWORD *v14; // r8 _QWORD v16[6]; // [rsp+8h] [rbp-30h] BYREF (*(void ( **)(_QWORD *, long long))*a1)(a1, (a2[1] - *a2) >> 5); std::vector<StartTree::Cluster<double>>::_M_erase_at_end(a1 + 9, a1[9]); for ( i = *a2; i != a2[1]; i += 32LL ) std::vector<StartTree::Cluster<double>>::emplace_back<std::string const&>(a1 + 9, i); v6 = a1[1]; v16[0] = 0LL; std::vector<unsigned long>::resize(a1 + 6, v6, (long long)v16); if ( a1[1] ) { v7 = a1[6]; v8 = 0LL; do { *(_QWORD *)(v7 + 8 * v8) = v8; ++v8; v9 = a1[1]; } while ( v8 < v9 ); if ( v9 ) { v10 = a1[4]; for ( j = 0LL; j != v9; ++j ) { if ( v9 > 0 ) { v12 = (_QWORD *)(a3 + 8 * v9 * j); v13 = &v12[v9]; v14 = *(_QWORD **)(v10 + 8 * j); do *v14++ = *v12++; while ( v12 < v13 ); } } } } (*(void ( **)(_QWORD *))(*a1 + 24LL))(a1); return 1; }
loadMatrix: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x10 MOV R14,RDX MOV R15,RSI MOV RBX,RDI MOV RSI,qword ptr [RSI + 0x8] SUB RSI,qword ptr [R15] SAR RSI,0x5 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX] LEA R12,[RBX + 0x48] MOV RSI,qword ptr [RBX + 0x48] MOV RDI,R12 CALL 0x00126f00 MOV R13,qword ptr [R15] LAB_00125f21: CMP R13,qword ptr [R15 + 0x8] JZ 0x00125f38 MOV RDI,R12 MOV RSI,R13 CALL 0x00126f30 ADD R13,0x20 JMP 0x00125f21 LAB_00125f38: LEA R15,[RBX + 0x30] MOV RSI,qword ptr [RBX + 0x8] LEA RDX,[RSP + 0x8] MOV qword ptr [RDX],0x0 MOV RDI,R15 CALL 0x0011af90 CMP qword ptr [RBX + 0x8],0x0 JZ 0x00125fb1 MOV RCX,qword ptr [R15] XOR EDX,EDX LAB_00125f60: MOV qword ptr [RCX + RDX*0x8],RDX INC RDX MOV RAX,qword ptr [RBX + 0x8] CMP RDX,RAX JC 0x00125f60 TEST RAX,RAX JZ 0x00125fb1 MOV RCX,qword ptr [RBX + 0x20] XOR EDX,EDX LAB_00125f7b: TEST RAX,RAX JLE 0x00125fa9 MOV RSI,RDX IMUL RSI,RAX LEA RSI,[R14 + RSI*0x8] LEA RDI,[RSI + RAX*0x8] MOV R8,qword ptr [RCX + RDX*0x8] LAB_00125f93: MOVSD XMM0,qword ptr [RSI] MOVSD qword ptr [R8],XMM0 ADD RSI,0x8 ADD R8,0x8 CMP RSI,RDI JC 0x00125f93 LAB_00125fa9: INC RDX CMP RDX,RAX JNZ 0x00125f7b LAB_00125fb1: MOV RAX,qword ptr [RBX] MOV RDI,RBX CALL qword ptr [RAX + 0x18] MOV AL,0x1 ADD RSP,0x10 POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* StartTree::UPGMA_Matrix<double>::loadMatrix(std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > > const&, double*) */ int8 __thiscall StartTree::UPGMA_Matrix<double>::loadMatrix (UPGMA_Matrix<double> *this,vector *param_1,double *param_2) { double *pdVar1; long lVar2; ulong uVar3; ulong uVar4; double *pdVar5; double *pdVar6; string *psVar7; ulong local_30; (*(code *)**(int8 **)this)(this,*(long *)(param_1 + 8) - *(long *)param_1 >> 5); std::vector<StartTree::Cluster<double>,std::allocator<StartTree::Cluster<double>>>:: _M_erase_at_end((vector<StartTree::Cluster<double>,std::allocator<StartTree::Cluster<double>>> *) (this + 0x48),*(Cluster **)(this + 0x48)); for (psVar7 = *(string **)param_1; psVar7 != *(string **)(param_1 + 8); psVar7 = psVar7 + 0x20) { std::vector<StartTree::Cluster<double>,std::allocator<StartTree::Cluster<double>>>:: emplace_back<std::__cxx11::string_const&> ((vector<StartTree::Cluster<double>,std::allocator<StartTree::Cluster<double>>> *) (this + 0x48),psVar7); } local_30 = 0; std::vector<unsigned_long,std::allocator<unsigned_long>>::resize ((vector<unsigned_long,std::allocator<unsigned_long>> *)(this + 0x30), *(ulong *)(this + 8),&local_30); if (*(long *)(this + 8) != 0) { lVar2 = *(long *)(this + 0x30); uVar4 = 0; do { *(ulong *)(lVar2 + uVar4 * 8) = uVar4; uVar4 = uVar4 + 1; uVar3 = *(ulong *)(this + 8); } while (uVar4 < uVar3); if (uVar3 != 0) { lVar2 = *(long *)(this + 0x20); uVar4 = 0; do { if (0 < (long)uVar3) { pdVar5 = param_2 + uVar4 * uVar3; pdVar1 = pdVar5 + uVar3; pdVar6 = *(double **)(lVar2 + uVar4 * 8); do { *pdVar6 = *pdVar5; pdVar5 = pdVar5 + 1; pdVar6 = pdVar6 + 1; } while (pdVar5 < pdVar1); } uVar4 = uVar4 + 1; } while (uVar4 != uVar3); } } (**(code **)(*(long *)this + 0x18))(this); return 1; }
19,446
testing::internal::CreateArgvFromArgs(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>>>>&)
AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest-death-test.cc
static std::vector<char*> CreateArgvFromArgs(std::vector<std::string>& args) { std::vector<char*> result; result.reserve(args.size() + 1); for (auto& arg : args) { result.push_back(&arg[0]); } result.push_back(nullptr); // Extra null terminator. return result; }
O0
cpp
testing::internal::CreateArgvFromArgs(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>>>>&): subq $0x78, %rsp movq %rdi, 0x18(%rsp) movq %rdi, %rax movq %rax, 0x10(%rsp) movq %rdi, 0x70(%rsp) movq %rsi, 0x68(%rsp) movb $0x0, 0x67(%rsp) callq 0xf5b30 movq 0x68(%rsp), %rdi callq 0xeb920 movq 0x18(%rsp), %rdi movq %rax, %rsi incq %rsi callq 0xf5b40 jmp 0xbd161 movq 0x68(%rsp), %rax movq %rax, 0x48(%rsp) movq 0x48(%rsp), %rdi callq 0xed040 movq %rax, 0x40(%rsp) movq 0x48(%rsp), %rdi callq 0xed0f0 movq %rax, 0x38(%rsp) leaq 0x40(%rsp), %rdi leaq 0x38(%rsp), %rsi callq 0xf5c50 xorb $-0x1, %al testb $0x1, %al jne 0xbd1a0 jmp 0xbd207 leaq 0x40(%rsp), %rdi callq 0xf5c90 movq %rax, 0x30(%rsp) movq 0x30(%rsp), %rdi xorl %eax, %eax movl %eax, %esi callq 0xf5cd0 movq %rax, 0x8(%rsp) jmp 0xbd1c4 movq 0x18(%rsp), %rdi movq 0x8(%rsp), %rax movq %rax, 0x28(%rsp) leaq 0x28(%rsp), %rsi callq 0xf5ca0 jmp 0xbd1df jmp 0xbd1e1 leaq 0x40(%rsp), %rdi callq 0xf5d00 jmp 0xbd189 movq 0x18(%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0x58(%rsp) movl %eax, 0x54(%rsp) callq 0xeb6a0 jmp 0xbd241 movq 0x18(%rsp), %rdi movq $0x0, 0x20(%rsp) leaq 0x20(%rsp), %rsi callq 0xf5ca0 jmp 0xbd221 movb $0x1, 0x67(%rsp) testb $0x1, 0x67(%rsp) jne 0xbd237 movq 0x18(%rsp), %rdi callq 0xeb6a0 movq 0x10(%rsp), %rax addq $0x78, %rsp retq movq 0x58(%rsp), %rdi callq 0x16cf0 nopl (%rax,%rax)
_ZN7testing8internalL18CreateArgvFromArgsERSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EE: sub rsp, 78h mov [rsp+78h+var_60], rdi mov rax, rdi mov [rsp+78h+var_68], rax mov [rsp+78h+var_8], rdi mov [rsp+78h+var_10], rsi mov [rsp+78h+var_11], 0 call _ZNSt6vectorIPcSaIS0_EEC2Ev; std::vector<char *>::vector(void) mov rdi, [rsp+78h+var_10] call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv; std::vector<std::string>::size(void) mov rdi, [rsp+78h+var_60] mov rsi, rax inc rsi call _ZNSt6vectorIPcSaIS0_EE7reserveEm; std::vector<char *>::reserve(ulong) jmp short $+2 loc_BD161: mov rax, [rsp+78h+var_10] mov [rsp+78h+var_30], rax mov rdi, [rsp+78h+var_30] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5beginEv; std::vector<std::string>::begin(void) mov [rsp+78h+var_38], rax mov rdi, [rsp+78h+var_30] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE3endEv; std::vector<std::string>::end(void) mov [rsp+78h+var_40], rax loc_BD189: lea rdi, [rsp+78h+var_38] lea rsi, [rsp+78h+var_40] call _ZN9__gnu_cxxeqIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_QrqXeqcldtfp_4baseEcldtfp0_4baseERSt14convertible_toIbEE xor al, 0FFh test al, 1 jnz short loc_BD1A0 jmp short loc_BD207 loc_BD1A0: lea rdi, [rsp+78h+var_38] call _ZNK9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEdeEv; __gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>::operator*(void) mov [rsp+78h+var_48], rax mov rdi, [rsp+78h+var_48] xor eax, eax mov esi, eax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm; std::string::operator[](ulong) mov [rsp+78h+var_70], rax jmp short $+2 loc_BD1C4: mov rdi, [rsp+78h+var_60] mov rax, [rsp+78h+var_70] mov [rsp+78h+var_50], rax lea rsi, [rsp+78h+var_50] call _ZNSt6vectorIPcSaIS0_EE9push_backEOS0_; std::vector<char *>::push_back(char *&&) jmp short $+2 loc_BD1DF: jmp short $+2 loc_BD1E1: lea rdi, [rsp+78h+var_38] call _ZN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEppEv; __gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>::operator++(void) jmp short loc_BD189 mov rdi, [rsp+arg_10] mov rcx, rax mov eax, edx mov [rsp+arg_50], rcx mov [rsp+arg_4C], eax call _ZNSt6vectorIPcSaIS0_EED2Ev; std::vector<char *>::~vector() jmp short loc_BD241 loc_BD207: mov rdi, [rsp+78h+var_60] mov [rsp+78h+var_58], 0 lea rsi, [rsp+78h+var_58] call _ZNSt6vectorIPcSaIS0_EE9push_backEOS0_; std::vector<char *>::push_back(char *&&) jmp short $+2 loc_BD221: mov [rsp+78h+var_11], 1 test [rsp+78h+var_11], 1 jnz short loc_BD237 mov rdi, [rsp+78h+var_60] call _ZNSt6vectorIPcSaIS0_EED2Ev; std::vector<char *>::~vector() loc_BD237: mov rax, [rsp+78h+var_68] add rsp, 78h retn loc_BD241: mov rdi, [rsp+arg_50] call __Unwind_Resume
long long testing::internal::CreateArgvFromArgs(long long a1, long long a2) { long long v2; // rax long long v4; // [rsp+20h] [rbp-58h] BYREF long long v5; // [rsp+28h] [rbp-50h] BYREF long long v6; // [rsp+30h] [rbp-48h] long long v7; // [rsp+38h] [rbp-40h] BYREF _QWORD v8[4]; // [rsp+40h] [rbp-38h] BYREF char v9; // [rsp+67h] [rbp-11h] long long v10; // [rsp+68h] [rbp-10h] long long v11; // [rsp+70h] [rbp-8h] v11 = a1; v10 = a2; v9 = 0; std::vector<char *>::vector(); v2 = std::vector<std::string>::size(a2); std::vector<char *>::reserve(a1, v2 + 1); v8[1] = a2; v8[0] = std::vector<std::string>::begin(a2); v7 = std::vector<std::string>::end(a2); while ( (__gnu_cxx::operator==<std::string *,std::vector<std::string>>(v8, &v7) & 1) == 0 ) { v6 = __gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>::operator*(v8); v5 = std::string::operator[](v6, 0LL); std::vector<char *>::push_back(a1, &v5); __gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>::operator++(v8); } v4 = 0LL; std::vector<char *>::push_back(a1, &v4); return a1; }
CreateArgvFromArgs: SUB RSP,0x78 MOV qword ptr [RSP + 0x18],RDI MOV RAX,RDI MOV qword ptr [RSP + 0x10],RAX MOV qword ptr [RSP + 0x70],RDI MOV qword ptr [RSP + 0x68],RSI MOV byte ptr [RSP + 0x67],0x0 CALL 0x001f5b30 MOV RDI,qword ptr [RSP + 0x68] CALL 0x001eb920 MOV RDI,qword ptr [RSP + 0x18] MOV RSI,RAX INC RSI LAB_001bd15a: CALL 0x001f5b40 JMP 0x001bd161 LAB_001bd161: MOV RAX,qword ptr [RSP + 0x68] MOV qword ptr [RSP + 0x48],RAX MOV RDI,qword ptr [RSP + 0x48] CALL 0x001ed040 MOV qword ptr [RSP + 0x40],RAX MOV RDI,qword ptr [RSP + 0x48] CALL 0x001ed0f0 MOV qword ptr [RSP + 0x38],RAX LAB_001bd189: LEA RDI,[RSP + 0x40] LEA RSI,[RSP + 0x38] CALL 0x001f5c50 XOR AL,0xff TEST AL,0x1 JNZ 0x001bd1a0 JMP 0x001bd207 LAB_001bd1a0: LEA RDI,[RSP + 0x40] CALL 0x001f5c90 MOV qword ptr [RSP + 0x30],RAX MOV RDI,qword ptr [RSP + 0x30] XOR EAX,EAX MOV ESI,EAX CALL 0x001f5cd0 MOV qword ptr [RSP + 0x8],RAX JMP 0x001bd1c4 LAB_001bd1c4: MOV RDI,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x28],RAX LEA RSI,[RSP + 0x28] CALL 0x001f5ca0 JMP 0x001bd1df LAB_001bd1df: JMP 0x001bd1e1 LAB_001bd1e1: LEA RDI,[RSP + 0x40] CALL 0x001f5d00 JMP 0x001bd189 LAB_001bd207: MOV RDI,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x20],0x0 LEA RSI,[RSP + 0x20] CALL 0x001f5ca0 LAB_001bd21f: JMP 0x001bd221 LAB_001bd221: MOV byte ptr [RSP + 0x67],0x1 TEST byte ptr [RSP + 0x67],0x1 JNZ 0x001bd237 MOV RDI,qword ptr [RSP + 0x18] CALL 0x001eb6a0 LAB_001bd237: MOV RAX,qword ptr [RSP + 0x10] ADD RSP,0x78 RET
/* WARNING: Removing unreachable block (ram,0x001bd22d) */ /* testing::internal::CreateArgvFromArgs(std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > >&) */ internal * __thiscall testing::internal::CreateArgvFromArgs(internal *this,vector *param_1) { byte bVar1; long lVar2; char *local_58; char *local_50; string *local_48; int8 local_40; int8 local_38; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *local_30; int1 local_11; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *local_10; internal *local_8; local_11 = 0; local_10 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)param_1; local_8 = this; std::vector<char*,std::allocator<char*>>::vector((vector<char*,std::allocator<char*>> *)this); lVar2 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::size(local_10); /* try { // try from 001bd15a to 001bd21e has its CatchHandler @ 001bd1ed */ std::vector<char*,std::allocator<char*>>::reserve ((vector<char*,std::allocator<char*>> *)this,lVar2 + 1); local_30 = local_10; local_38 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::begin(local_10) ; local_40 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::end(local_30); while (bVar1 = _ZN9__gnu_cxxeqIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_QrqXeqcldtfp_4baseEcldtfp0_4baseERSt14convertible_toIbEE (&local_38,&local_40), ((bVar1 ^ 0xff) & 1) != 0) { local_48 = (string *) __gnu_cxx:: __normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>> ::operator*((__normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>> *)&local_38); local_50 = (char *)std::__cxx11::string::operator[](local_48,0); std::vector<char*,std::allocator<char*>>::push_back ((vector<char*,std::allocator<char*>> *)this,&local_50); __gnu_cxx:: __normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>> ::operator++((__normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>> *)&local_38); } local_58 = (char *)0x0; std::vector<char*,std::allocator<char*>>::push_back ((vector<char*,std::allocator<char*>> *)this,&local_58); return this; }
19,447
lf_pinbox_init
eloqsql/mysys/lf_alloc-pin.c
void lf_pinbox_init(LF_PINBOX *pinbox, uint free_ptr_offset, lf_pinbox_free_func *free_func, void *free_func_arg) { DBUG_ASSERT(free_ptr_offset % sizeof(void *) == 0); lf_dynarray_init(&pinbox->pinarray, sizeof(LF_PINS)); pinbox->pinstack_top_ver= 0; pinbox->pins_in_array= 0; pinbox->free_ptr_offset= free_ptr_offset; pinbox->free_func= free_func; pinbox->free_func_arg= free_func_arg; }
O3
c
lf_pinbox_init: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rcx, %rbx movq %rdx, %r14 movl %esi, %r15d movq %rdi, %r12 movl $0x78, %esi callq 0x47a9c xorl %eax, %eax movl %eax, 0x3c(%r12) movl %eax, 0x40(%r12) movl %r15d, 0x38(%r12) movq %r14, 0x28(%r12) movq %rbx, 0x30(%r12) popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
lf_pinbox_init: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov rbx, rcx mov r14, rdx mov r15d, esi mov r12, rdi mov esi, 78h ; 'x' call lf_dynarray_init xor eax, eax mov [r12+3Ch], eax mov [r12+40h], eax mov [r12+38h], r15d mov [r12+28h], r14 mov [r12+30h], rbx pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long lf_pinbox_init(long long a1, int a2, long long a3, long long a4) { long long result; // rax lf_dynarray_init(a1, 120LL); result = 0LL; *(_DWORD *)(a1 + 60) = 0; *(_DWORD *)(a1 + 64) = 0; *(_DWORD *)(a1 + 56) = a2; *(_QWORD *)(a1 + 40) = a3; *(_QWORD *)(a1 + 48) = a4; return result; }
lf_pinbox_init: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV RBX,RCX MOV R14,RDX MOV R15D,ESI MOV R12,RDI MOV ESI,0x78 CALL 0x00147a9c XOR EAX,EAX MOV dword ptr [R12 + 0x3c],EAX MOV dword ptr [R12 + 0x40],EAX MOV dword ptr [R12 + 0x38],R15D MOV qword ptr [R12 + 0x28],R14 MOV qword ptr [R12 + 0x30],RBX POP RBX POP R12 POP R14 POP R15 POP RBP RET
void lf_pinbox_init(long param_1,int4 param_2,int8 param_3,int8 param_4) { lf_dynarray_init(param_1,0x78); *(int4 *)(param_1 + 0x3c) = 0; *(int4 *)(param_1 + 0x40) = 0; *(int4 *)(param_1 + 0x38) = param_2; *(int8 *)(param_1 + 0x28) = param_3; *(int8 *)(param_1 + 0x30) = param_4; return; }
19,448
minja::FilterExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const
llama.cpp/common/minja/minja.hpp
Value do_evaluate(const std::shared_ptr<Context> & context) const override { Value result; bool first = true; for (const auto& part : parts) { if (!part) throw std::runtime_error("FilterExpr.part is null"); if (first) { first = false; result = part->evaluate(context); } else { if (auto ce = dynamic_cast<CallExpr*>(part.get())) { auto target = ce->object->evaluate(context); ArgumentsValue args = ce->args.evaluate(context); args.args.insert(args.args.begin(), result); result = target.call(context, args); } else { auto callable = part->evaluate(context); ArgumentsValue args; args.args.insert(args.args.begin(), result); result = callable.call(context, args); } } } return result; }
O3
cpp
minja::FilterExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xf8, %rsp movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx leaq 0x40(%rdi), %r12 movq $0x0, 0x48(%rdi) xorps %xmm0, %xmm0 movups %xmm0, (%rdi) movups %xmm0, 0x10(%rdi) movups %xmm0, 0x20(%rdi) movups %xmm0, 0x30(%rdi) movb $0x0, 0x40(%rdi) movq %r12, %rdi movl $0x1, %esi callq 0x8538a movq %r12, 0x18(%rsp) movq %r12, %rdi movl $0x1, %esi callq 0x8538a movq 0x20(%r15), %r12 movq 0x28(%r15), %r15 cmpq %r15, %r12 je 0xec511 movb $0x1, %al movq (%r12), %rbp testq %rbp, %rbp je 0xec526 testb $0x1, %al je 0xec272 leaq 0x70(%rsp), %rdi movq %rbp, %rsi movq %r14, %rdx callq 0xe15ec movups 0x80(%rsp), %xmm0 xorps %xmm1, %xmm1 leaq 0xb0(%rsp), %r13 movups %xmm1, -0x30(%r13) movups 0x10(%rbx), %xmm1 movups %xmm0, 0x10(%rbx) movaps %xmm1, 0x20(%rsp) leaq 0x28(%rsp), %rdi callq 0x70a60 movups 0x90(%rsp), %xmm0 xorps %xmm1, %xmm1 movups %xmm1, -0x20(%r13) movups 0x20(%rbx), %xmm1 movups %xmm0, 0x20(%rbx) movaps %xmm1, 0x20(%rsp) leaq 0x28(%rsp), %rdi callq 0x70a60 movups 0xa0(%rsp), %xmm0 xorps %xmm1, %xmm1 movups %xmm1, -0x10(%r13) movups 0x30(%rbx), %xmm1 movups %xmm0, 0x30(%rbx) movaps %xmm1, 0x20(%rsp) leaq 0x28(%rsp), %rdi callq 0x70a60 leaq 0xb0(%rsp), %r13 movups (%r13), %xmm0 movaps %xmm0, 0x20(%rsp) movq %r13, %rdi xorl %esi, %esi callq 0x8538a movb $0x0, 0xb0(%rsp) movq $0x0, 0xb8(%rsp) leaq 0x20(%rsp), %rbp movq %rbp, %rdi movl $0x1, %esi callq 0x8538a movq 0x18(%rsp), %rdi movq %rbp, %rsi callq 0x874f6 movq %rbp, %rdi xorl %esi, %esi callq 0x8538a movq %rbp, %rdi callq 0x89aa4 jmp 0xec493 movq %r15, %r13 movq %rbp, %rdi leaq 0x75739(%rip), %rsi # 0x1619b8 leaq 0x75bfa(%rip), %rdx # 0x161e80 xorl %ecx, %ecx callq 0x21040 testq %rax, %rax je 0xec2ed movq %rax, %r15 movq 0x20(%rax), %rsi leaq 0x70(%rsp), %rdi movq %r14, %rdx callq 0xe15ec addq $0x30, %r15 leaq 0xc0(%rsp), %rbp movq %rbp, %rdi movq %r15, %rsi movq %r14, %rdx callq 0xe9ba0 movq 0xc0(%rsp), %rsi movq %rbp, %rdi movq %rbx, %rdx callq 0xeb612 movq %r13, %r15 leaq 0x20(%rsp), %rdi leaq 0x70(%rsp), %rsi movq %r14, %rdx movq %rbp, %rcx callq 0xca3f0 jmp 0xec345 leaq 0x70(%rsp), %rdi movq %rbp, %rsi movq %r14, %rdx callq 0xe15ec xorps %xmm0, %xmm0 movaps %xmm0, 0xe0(%rsp) movaps %xmm0, 0xd0(%rsp) movaps %xmm0, 0xc0(%rsp) leaq 0xc0(%rsp), %rbp movq %rbp, %rdi xorl %esi, %esi movq %rbx, %rdx callq 0xeb612 movq %r13, %r15 leaq 0x20(%rsp), %rdi leaq 0x70(%rsp), %rsi movq %r14, %rdx movq %rbp, %rcx callq 0xca3f0 movups 0x30(%rsp), %xmm0 xorps %xmm1, %xmm1 leaq 0x30(%rsp), %r13 movups %xmm1, (%r13) movups 0x10(%rbx), %xmm1 movups %xmm0, 0x10(%rbx) movaps %xmm1, (%rsp) leaq 0x8(%rsp), %rdi callq 0x70a60 movups 0x40(%rsp), %xmm0 xorps %xmm1, %xmm1 movups %xmm1, 0x10(%r13) movups 0x20(%rbx), %xmm1 movups %xmm0, 0x20(%rbx) movaps %xmm1, (%rsp) leaq 0x8(%rsp), %rdi callq 0x70a60 movups 0x50(%rsp), %xmm0 xorps %xmm1, %xmm1 movups %xmm1, 0x20(%r13) movups 0x30(%rbx), %xmm1 movups %xmm0, 0x30(%rbx) movaps %xmm1, (%rsp) leaq 0x8(%rsp), %rdi callq 0x70a60 leaq 0x60(%rsp), %r13 movups (%r13), %xmm0 movaps %xmm0, (%rsp) movq %r13, %rdi xorl %esi, %esi callq 0x8538a movb $0x0, 0x60(%rsp) movq $0x0, 0x68(%rsp) movq %rsp, %rbp movq %rbp, %rdi movl $0x1, %esi callq 0x8538a movq 0x18(%rsp), %rdi movq %rbp, %rsi callq 0x874f6 movq %rbp, %rdi xorl %esi, %esi callq 0x8538a movq %rbp, %rdi callq 0x89aa4 movq %r13, %rdi xorl %esi, %esi callq 0x8538a movq %r13, %rdi callq 0x89aa4 leaq 0x58(%rsp), %rdi callq 0x70a60 leaq 0x48(%rsp), %rdi callq 0x70a60 leaq 0x38(%rsp), %rdi callq 0x70a60 movq 0x28(%rsp), %rdi testq %rdi, %rdi leaq 0xc0(%rsp), %r13 je 0xec476 movq 0x76b47(%rip), %rax # 0x162f98 cmpb $0x0, (%rax) je 0xec461 movl 0xc(%rdi), %eax leal -0x1(%rax), %ecx movl %ecx, 0xc(%rdi) jmp 0xec46b movl $0xffffffff, %eax # imm = 0xFFFFFFFF lock xaddl %eax, 0xc(%rdi) cmpl $0x1, %eax jne 0xec476 movq (%rdi), %rax callq *0x18(%rax) leaq 0xd8(%rsp), %rdi callq 0xcaaba movq %r13, %rdi callq 0xbe254 leaq 0xb0(%rsp), %r13 movq %r13, %rdi xorl %esi, %esi callq 0x8538a movq %r13, %rdi callq 0x89aa4 leaq 0xa8(%rsp), %rdi callq 0x70a60 leaq 0x98(%rsp), %rdi callq 0x70a60 leaq 0x88(%rsp), %rdi callq 0x70a60 movq 0x78(%rsp), %rdi testq %rdi, %rdi je 0xec502 movq 0x76abb(%rip), %rax # 0x162f98 cmpb $0x0, (%rax) je 0xec4ed movl 0xc(%rdi), %eax leal -0x1(%rax), %ecx movl %ecx, 0xc(%rdi) jmp 0xec4f7 movl $0xffffffff, %eax # imm = 0xFFFFFFFF lock xaddl %eax, 0xc(%rdi) cmpl $0x1, %eax jne 0xec502 movq (%rdi), %rax callq *0x18(%rax) addq $0x10, %r12 xorl %eax, %eax cmpq %r15, %r12 jne 0xec16a movq %rbx, %rax addq $0xf8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0x10, %edi callq 0x20650 movq %rax, %r15 leaq 0x35cb9(%rip), %rsi # 0x1221f3 movq %rax, %rdi callq 0x20430 movq 0x76a77(%rip), %rsi # 0x162fc0 movq 0x76a30(%rip), %rdx # 0x162f80 movq %r15, %rdi callq 0x20a50 jmp 0xec567 jmp 0xec567 jmp 0xec59f jmp 0xec567 movq %rax, %r14 jmp 0xec584 jmp 0xec59f movq %rax, %r14 leaq 0xd8(%rsp), %rdi callq 0xcaaba leaq 0xc0(%rsp), %rdi callq 0xbe254 leaq 0x70(%rsp), %rdi callq 0xb63cc jmp 0xec5a2 jmp 0xec59f movq %rax, %r14 movq %r15, %rdi callq 0x20f00 jmp 0xec5a2 movq %rax, %r14 movq %rbx, %rdi callq 0xb63cc movq %r14, %rdi callq 0x20af0
_ZNK5minja10FilterExpr11do_evaluateERKSt10shared_ptrINS_7ContextEE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 0F8h mov r14, rdx mov r15, rsi mov rbx, rdi lea r12, [rdi+40h] mov qword ptr [rdi+48h], 0 xorps xmm0, xmm0 movups xmmword ptr [rdi], xmm0 movups xmmword ptr [rdi+10h], xmm0 movups xmmword ptr [rdi+20h], xmm0 movups xmmword ptr [rdi+30h], xmm0 mov byte ptr [rdi+40h], 0 mov rdi, r12 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov [rsp+128h+var_110], r12 mov rdi, r12 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov r12, [r15+20h] mov r15, [r15+28h] cmp r12, r15 jz loc_EC511 mov al, 1 loc_EC16A: mov rbp, [r12] test rbp, rbp jz loc_EC526 test al, 1 jz loc_EC272 lea rdi, [rsp+128h+var_B8] mov rsi, rbp mov rdx, r14 call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&) movups xmm0, [rsp+128h+var_A8] xorps xmm1, xmm1 lea r13, [rsp+128h+var_78] movups xmmword ptr [r13-30h], xmm1 movups xmm1, xmmword ptr [rbx+10h] movups xmmword ptr [rbx+10h], xmm0 movaps [rsp+128h+var_108], xmm1 lea rdi, [rsp+128h+var_108+8] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() movups xmm0, [rsp+128h+var_98] xorps xmm1, xmm1 movups xmmword ptr [r13-20h], xmm1 movups xmm1, xmmword ptr [rbx+20h] movups xmmword ptr [rbx+20h], xmm0 movaps [rsp+128h+var_108], xmm1 lea rdi, [rsp+128h+var_108+8] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() movups xmm0, [rsp+128h+var_88] xorps xmm1, xmm1 movups xmmword ptr [r13-10h], xmm1 movups xmm1, xmmword ptr [rbx+30h] movups xmmword ptr [rbx+30h], xmm0 movaps [rsp+128h+var_108], xmm1 lea rdi, [rsp+128h+var_108+8] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() lea r13, [rsp+128h+var_78] movups xmm0, xmmword ptr [r13+0] movaps [rsp+128h+var_108], xmm0 mov rdi, r13 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov [rsp+128h+var_78], 0 mov [rsp+128h+var_70], 0 lea rbp, [rsp+128h+var_108] mov rdi, rbp mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, [rsp+128h+var_110] mov rsi, rbp 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, rbp 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, rbp call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() jmp loc_EC493 loc_EC272: mov r13, r15 mov rdi, rbp; lpsrc lea rsi, _ZTIN5minja10ExpressionE; lpstype lea rdx, _ZTIN5minja8CallExprE; lpdtype xor ecx, ecx; s2d call ___dynamic_cast test rax, rax jz short loc_EC2ED mov r15, rax mov rsi, [rax+20h] lea rdi, [rsp+128h+var_B8] mov rdx, r14 call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&) add r15, 30h ; '0' lea rbp, [rsp+128h+var_68] mov rdi, rbp mov rsi, r15 mov rdx, r14 call _ZNK5minja19ArgumentsExpression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::ArgumentsExpression::evaluate(std::shared_ptr<minja::Context> const&) mov rsi, qword ptr [rsp+128h+var_68] mov rdi, rbp mov rdx, rbx call _ZNSt6vectorIN5minja5ValueESaIS1_EE6insertEN9__gnu_cxx17__normal_iteratorIPKS1_S3_EERS6_; std::vector<minja::Value>::insert(__gnu_cxx::__normal_iterator<minja::Value const*,std::vector<minja::Value>>,minja::Value const&) mov r15, r13 lea rdi, [rsp+128h+var_108] lea rsi, [rsp+128h+var_B8] mov rdx, r14 mov rcx, rbp call _ZNK5minja5Value4callERKSt10shared_ptrINS_7ContextEERNS_14ArgumentsValueE; minja::Value::call(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &) jmp short loc_EC345 loc_EC2ED: lea rdi, [rsp+128h+var_B8] mov rsi, rbp mov rdx, r14 call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&) xorps xmm0, xmm0 movaps [rsp+128h+var_48], xmm0 movaps [rsp+128h+var_58], xmm0 movaps [rsp+128h+var_68], xmm0 lea rbp, [rsp+128h+var_68] mov rdi, rbp xor esi, esi mov rdx, rbx call _ZNSt6vectorIN5minja5ValueESaIS1_EE6insertEN9__gnu_cxx17__normal_iteratorIPKS1_S3_EERS6_; std::vector<minja::Value>::insert(__gnu_cxx::__normal_iterator<minja::Value const*,std::vector<minja::Value>>,minja::Value const&) mov r15, r13 lea rdi, [rsp+128h+var_108] lea rsi, [rsp+128h+var_B8] mov rdx, r14 mov rcx, rbp call _ZNK5minja5Value4callERKSt10shared_ptrINS_7ContextEERNS_14ArgumentsValueE; minja::Value::call(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &) loc_EC345: movups xmm0, [rsp+128h+var_F8] xorps xmm1, xmm1 lea r13, [rsp+128h+var_F8] movups xmmword ptr [r13+0], xmm1 movups xmm1, xmmword ptr [rbx+10h] movups xmmword ptr [rbx+10h], xmm0 movaps [rsp+128h+var_128], xmm1 lea rdi, [rsp+128h+var_128+8] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() movups xmm0, [rsp+128h+var_E8] xorps xmm1, xmm1 movups xmmword ptr [r13+10h], xmm1 movups xmm1, xmmword ptr [rbx+20h] movups xmmword ptr [rbx+20h], xmm0 movaps [rsp+128h+var_128], xmm1 lea rdi, [rsp+128h+var_128+8] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() movups xmm0, [rsp+128h+var_D8] xorps xmm1, xmm1 movups xmmword ptr [r13+20h], xmm1 movups xmm1, xmmword ptr [rbx+30h] movups xmmword ptr [rbx+30h], xmm0 movaps [rsp+128h+var_128], xmm1 lea rdi, [rsp+128h+var_128+8] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() lea r13, [rsp+128h+var_C8] movups xmm0, xmmword ptr [r13+0] movaps [rsp+128h+var_128], xmm0 mov rdi, r13 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov [rsp+128h+var_C8], 0 mov [rsp+128h+var_C0], 0 mov rbp, rsp mov rdi, rbp mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, [rsp+128h+var_110] mov rsi, rbp 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, rbp 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, rbp call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rdi, r13 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r13 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() lea rdi, [rsp+128h+var_D8+8] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() lea rdi, [rsp+128h+var_E8+8] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() lea rdi, [rsp+128h+var_F8+8] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() mov rdi, qword ptr [rsp+128h+var_108+8] test rdi, rdi lea r13, [rsp+128h+var_68] jz short loc_EC476 mov rax, cs:_ZTISt19_Sp_make_shared_tag; `typeinfo for'std::_Sp_make_shared_tag cmp byte ptr [rax], 0 jz short loc_EC461 mov eax, [rdi+0Ch] lea ecx, [rax-1] mov [rdi+0Ch], ecx jmp short loc_EC46B loc_EC461: mov eax, 0FFFFFFFFh lock xadd [rdi+0Ch], eax loc_EC46B: cmp eax, 1 jnz short loc_EC476 mov rax, [rdi] call qword ptr [rax+18h] loc_EC476: lea rdi, [rsp+128h+var_58+8] call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5minja5ValueEESaIS9_EED2Ev; std::vector<std::pair<std::string,minja::Value>>::~vector() mov rdi, r13 call _ZNSt6vectorIN5minja5ValueESaIS1_EED2Ev; std::vector<minja::Value>::~vector() lea r13, [rsp+128h+var_78] loc_EC493: mov rdi, r13 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r13 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() lea rdi, [rsp+128h+var_88+8] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() lea rdi, [rsp+128h+var_98+8] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() lea rdi, [rsp+128h+var_A8+8] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() mov rdi, [rsp+128h+var_B0] test rdi, rdi jz short loc_EC502 mov rax, cs:_ZTISt19_Sp_make_shared_tag; `typeinfo for'std::_Sp_make_shared_tag cmp byte ptr [rax], 0 jz short loc_EC4ED mov eax, [rdi+0Ch] lea ecx, [rax-1] mov [rdi+0Ch], ecx jmp short loc_EC4F7 loc_EC4ED: mov eax, 0FFFFFFFFh lock xadd [rdi+0Ch], eax loc_EC4F7: cmp eax, 1 jnz short loc_EC502 mov rax, [rdi] call qword ptr [rax+18h] loc_EC502: add r12, 10h xor eax, eax cmp r12, r15 jnz loc_EC16A loc_EC511: mov rax, rbx add rsp, 0F8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_EC526: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r15, rax lea rsi, aFilterexprPart; "FilterExpr.part is null" mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, r15; void * call ___cxa_throw jmp short loc_EC567 jmp short loc_EC567 jmp short loc_EC59F jmp short loc_EC567 mov r14, rax jmp short loc_EC584 jmp short loc_EC59F loc_EC567: mov r14, rax lea rdi, [rsp+128h+var_58+8] call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5minja5ValueEESaIS9_EED2Ev; std::vector<std::pair<std::string,minja::Value>>::~vector() lea rdi, [rsp+128h+var_68] call _ZNSt6vectorIN5minja5ValueESaIS1_EED2Ev; std::vector<minja::Value>::~vector() loc_EC584: lea rdi, [rsp+128h+var_B8]; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() jmp short loc_EC5A2 jmp short loc_EC59F mov r14, rax mov rdi, r15; void * call ___cxa_free_exception jmp short loc_EC5A2 loc_EC59F: mov r14, rax loc_EC5A2: mov rdi, rbx; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() mov rdi, r14 call __Unwind_Resume
long long minja::FilterExpr::do_evaluate(long long a1, long long a2) { void (****v3)(void); // r12 void (****v4)(void); // r15 char v5; // al void (***v6)(void); // rbp __int128 v7; // xmm0 __int128 v8; // xmm1 __int128 v9; // xmm0 __int128 v10; // xmm1 __int128 v11; // xmm0 __int128 v12; // xmm1 void (****v13)(void); // r13 void (****v14)(void); // rax void (****v15)(void); // r15 __int128 v16; // xmm0 __int128 v17; // xmm1 __int128 v18; // xmm0 __int128 v19; // xmm1 __int128 v20; // xmm0 __int128 v21; // xmm1 long long v22; // rdi signed __int32 v23; // eax long long v24; // rdi signed __int32 v25; // eax std::runtime_error *exception; // r15 __int128 v28; // [rsp+0h] [rbp-128h] BYREF long long v29; // [rsp+18h] [rbp-110h] __int128 v30; // [rsp+20h] [rbp-108h] BYREF __int128 v31; // [rsp+30h] [rbp-F8h] BYREF __int128 v32; // [rsp+40h] [rbp-E8h] BYREF __int128 v33; // [rsp+50h] [rbp-D8h] BYREF __int128 v34; // [rsp+60h] [rbp-C8h] BYREF char v35[8]; // [rsp+70h] [rbp-B8h] BYREF long long v36; // [rsp+78h] [rbp-B0h] __int128 v37; // [rsp+80h] [rbp-A8h] BYREF __int128 v38; // [rsp+90h] [rbp-98h] BYREF __int128 v39; // [rsp+A0h] [rbp-88h] BYREF __int128 v40; // [rsp+B0h] [rbp-78h] BYREF _OWORD v41[6]; // [rsp+C0h] [rbp-68h] BYREF *(_QWORD *)(a1 + 72) = 0LL; *(_OWORD *)a1 = 0LL; *(_OWORD *)(a1 + 16) = 0LL; *(_OWORD *)(a1 + 32) = 0LL; *(_OWORD *)(a1 + 48) = 0LL; *(_BYTE *)(a1 + 64) = 0; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)(a1 + 64)); v29 = a1 + 64; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)(a1 + 64)); v3 = *(void (*****)(void))(a2 + 32); v4 = *(void (*****)(void))(a2 + 40); if ( v3 != v4 ) { v5 = 1; do { v6 = *v3; if ( !*v3 ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "FilterExpr.part is null"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } if ( (v5 & 1) != 0 ) { minja::Expression::evaluate((long long)v35, *v3); v7 = v37; v37 = 0LL; v8 = *(_OWORD *)(a1 + 16); *(_OWORD *)(a1 + 16) = v7; v30 = v8; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((volatile signed __int32 **)&v30 + 1); v9 = v38; v38 = 0LL; v10 = *(_OWORD *)(a1 + 32); *(_OWORD *)(a1 + 32) = v9; v30 = v10; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((volatile signed __int32 **)&v30 + 1); v11 = v39; v39 = 0LL; v12 = *(_OWORD *)(a1 + 48); *(_OWORD *)(a1 + 48) = v11; v30 = v12; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((volatile signed __int32 **)&v30 + 1); v30 = v40; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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 *)&v40); LOBYTE(v40) = 0; *((_QWORD *)&v40 + 1) = 0LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v30); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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=( v29, (long long)&v30); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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 *)&v30); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(&v30); } else { v13 = v4; v14 = (void (****)(void))__dynamic_cast( *v3, (const struct __class_type_info *)&`typeinfo for'minja::Expression, (const struct __class_type_info *)&`typeinfo for'minja::CallExpr, 0LL); if ( v14 ) { v15 = v14; minja::Expression::evaluate((long long)v35, v14[4]); minja::ArgumentsExpression::evaluate(v41, (long long *)v15 + 6); std::vector<minja::Value>::insert((long long *)v41, *(long long *)&v41[0], (const minja::Value *)a1); v4 = v13; } else { minja::Expression::evaluate((long long)v35, v6); memset(v41, 0, 48); std::vector<minja::Value>::insert((long long *)v41, 0LL, (const minja::Value *)a1); } minja::Value::call((long long)&v30, (long long)v35); v16 = v31; v31 = 0LL; v17 = *(_OWORD *)(a1 + 16); *(_OWORD *)(a1 + 16) = v16; v28 = v17; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((volatile signed __int32 **)&v28 + 1); v18 = v32; v32 = 0LL; v19 = *(_OWORD *)(a1 + 32); *(_OWORD *)(a1 + 32) = v18; v28 = v19; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((volatile signed __int32 **)&v28 + 1); v20 = v33; v33 = 0LL; v21 = *(_OWORD *)(a1 + 48); *(_OWORD *)(a1 + 48) = v20; v28 = v21; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((volatile signed __int32 **)&v28 + 1); v28 = v34; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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 *)&v34); LOBYTE(v34) = 0; *((_QWORD *)&v34 + 1) = 0LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v28); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=( v29, (long long)&v28); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v28); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v28); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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 *)&v34); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(&v34); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((volatile signed __int32 **)&v33 + 1); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((volatile signed __int32 **)&v32 + 1); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((volatile signed __int32 **)&v31 + 1); v22 = *((_QWORD *)&v30 + 1); if ( *((_QWORD *)&v30 + 1) ) { if ( _libc_single_threaded ) { v23 = *(_DWORD *)(*((_QWORD *)&v30 + 1) + 12LL); *(_DWORD *)(*((_QWORD *)&v30 + 1) + 12LL) = v23 - 1; } else { v23 = _InterlockedExchangeAdd((volatile signed __int32 *)(*((_QWORD *)&v30 + 1) + 12LL), 0xFFFFFFFF); } if ( v23 == 1 ) (*(void ( **)(long long, _QWORD))(*(_QWORD *)v22 + 24LL))(v22, 0LL); } std::vector<std::pair<std::string,minja::Value>>::~vector((_QWORD *)&v41[1] + 1); std::vector<minja::Value>::~vector(v41); } nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)&v40); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(&v40); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((volatile signed __int32 **)&v39 + 1); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((volatile signed __int32 **)&v38 + 1); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((volatile signed __int32 **)&v37 + 1); v24 = v36; if ( v36 ) { if ( _libc_single_threaded ) { v25 = *(_DWORD *)(v36 + 12); *(_DWORD *)(v36 + 12) = v25 - 1; } else { v25 = _InterlockedExchangeAdd((volatile signed __int32 *)(v36 + 12), 0xFFFFFFFF); } if ( v25 == 1 ) (*(void ( **)(long long, _QWORD))(*(_QWORD *)v24 + 24LL))(v24, 0LL); } v3 += 2; v5 = 0; } while ( v3 != v4 ); } return a1; }
do_evaluate: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xf8 MOV R14,RDX MOV R15,RSI MOV RBX,RDI LEA R12,[RDI + 0x40] MOV qword ptr [RDI + 0x48],0x0 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI],XMM0 MOVUPS xmmword ptr [RDI + 0x10],XMM0 MOVUPS xmmword ptr [RDI + 0x20],XMM0 MOVUPS xmmword ptr [RDI + 0x30],XMM0 MOV byte ptr [RDI + 0x40],0x0 MOV RDI,R12 MOV ESI,0x1 CALL 0x0018538a MOV qword ptr [RSP + 0x18],R12 MOV RDI,R12 MOV ESI,0x1 CALL 0x0018538a MOV R12,qword ptr [R15 + 0x20] MOV R15,qword ptr [R15 + 0x28] CMP R12,R15 JZ 0x001ec511 MOV AL,0x1 LAB_001ec16a: MOV RBP,qword ptr [R12] TEST RBP,RBP JZ 0x001ec526 TEST AL,0x1 JZ 0x001ec272 LAB_001ec17f: LEA RDI,[RSP + 0x70] MOV RSI,RBP MOV RDX,R14 CALL 0x001e15ec MOVUPS XMM0,xmmword ptr [RSP + 0x80] XORPS XMM1,XMM1 LEA R13,[RSP + 0xb0] MOVUPS xmmword ptr [R13 + -0x30],XMM1 MOVUPS XMM1,xmmword ptr [RBX + 0x10] MOVUPS xmmword ptr [RBX + 0x10],XMM0 MOVAPS xmmword ptr [RSP + 0x20],XMM1 LEA RDI,[RSP + 0x28] CALL 0x00170a60 MOVUPS XMM0,xmmword ptr [RSP + 0x90] XORPS XMM1,XMM1 MOVUPS xmmword ptr [R13 + -0x20],XMM1 MOVUPS XMM1,xmmword ptr [RBX + 0x20] MOVUPS xmmword ptr [RBX + 0x20],XMM0 MOVAPS xmmword ptr [RSP + 0x20],XMM1 LEA RDI,[RSP + 0x28] CALL 0x00170a60 MOVUPS XMM0,xmmword ptr [RSP + 0xa0] XORPS XMM1,XMM1 MOVUPS xmmword ptr [R13 + -0x10],XMM1 MOVUPS XMM1,xmmword ptr [RBX + 0x30] MOVUPS xmmword ptr [RBX + 0x30],XMM0 MOVAPS xmmword ptr [RSP + 0x20],XMM1 LEA RDI,[RSP + 0x28] CALL 0x00170a60 LEA R13,[RSP + 0xb0] MOVUPS XMM0,xmmword ptr [R13] MOVAPS xmmword ptr [RSP + 0x20],XMM0 MOV RDI,R13 XOR ESI,ESI CALL 0x0018538a MOV byte ptr [RSP + 0xb0],0x0 MOV qword ptr [RSP + 0xb8],0x0 LEA RBP,[RSP + 0x20] MOV RDI,RBP MOV ESI,0x1 CALL 0x0018538a MOV RDI,qword ptr [RSP + 0x18] MOV RSI,RBP CALL 0x001874f6 MOV RDI,RBP XOR ESI,ESI CALL 0x0018538a MOV RDI,RBP CALL 0x00189aa4 JMP 0x001ec493 LAB_001ec272: MOV R13,R15 MOV RDI,RBP LEA RSI,[0x2619b8] LEA RDX,[0x261e80] XOR ECX,ECX CALL 0x00121040 TEST RAX,RAX JZ 0x001ec2ed MOV R15,RAX MOV RSI,qword ptr [RAX + 0x20] LAB_001ec299: LEA RDI,[RSP + 0x70] MOV RDX,R14 CALL 0x001e15ec ADD R15,0x30 LAB_001ec2aa: LEA RBP,[RSP + 0xc0] MOV RDI,RBP MOV RSI,R15 MOV RDX,R14 CALL 0x001e9ba0 MOV RSI,qword ptr [RSP + 0xc0] LAB_001ec2c8: MOV RDI,RBP MOV RDX,RBX CALL 0x001eb612 LAB_001ec2d3: MOV R15,R13 LEA RDI,[RSP + 0x20] LEA RSI,[RSP + 0x70] MOV RDX,R14 MOV RCX,RBP CALL 0x001ca3f0 JMP 0x001ec345 LAB_001ec2ed: LEA RDI,[RSP + 0x70] MOV RSI,RBP MOV RDX,R14 CALL 0x001e15ec XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP + 0xe0],XMM0 MOVAPS xmmword ptr [RSP + 0xd0],XMM0 MOVAPS xmmword ptr [RSP + 0xc0],XMM0 LAB_001ec318: LEA RBP,[RSP + 0xc0] MOV RDI,RBP XOR ESI,ESI MOV RDX,RBX CALL 0x001eb612 LAB_001ec32d: MOV R15,R13 LEA RDI,[RSP + 0x20] LEA RSI,[RSP + 0x70] MOV RDX,R14 MOV RCX,RBP CALL 0x001ca3f0 LAB_001ec345: MOVUPS XMM0,xmmword ptr [RSP + 0x30] XORPS XMM1,XMM1 LEA R13,[RSP + 0x30] MOVUPS xmmword ptr [R13],XMM1 MOVUPS XMM1,xmmword ptr [RBX + 0x10] MOVUPS xmmword ptr [RBX + 0x10],XMM0 MOVAPS xmmword ptr [RSP],XMM1 LEA RDI,[RSP + 0x8] CALL 0x00170a60 MOVUPS XMM0,xmmword ptr [RSP + 0x40] XORPS XMM1,XMM1 MOVUPS xmmword ptr [R13 + 0x10],XMM1 MOVUPS XMM1,xmmword ptr [RBX + 0x20] MOVUPS xmmword ptr [RBX + 0x20],XMM0 MOVAPS xmmword ptr [RSP],XMM1 LEA RDI,[RSP + 0x8] CALL 0x00170a60 MOVUPS XMM0,xmmword ptr [RSP + 0x50] XORPS XMM1,XMM1 MOVUPS xmmword ptr [R13 + 0x20],XMM1 MOVUPS XMM1,xmmword ptr [RBX + 0x30] MOVUPS xmmword ptr [RBX + 0x30],XMM0 MOVAPS xmmword ptr [RSP],XMM1 LEA RDI,[RSP + 0x8] CALL 0x00170a60 LEA R13,[RSP + 0x60] MOVUPS XMM0,xmmword ptr [R13] MOVAPS xmmword ptr [RSP],XMM0 MOV RDI,R13 XOR ESI,ESI CALL 0x0018538a MOV byte ptr [RSP + 0x60],0x0 MOV qword ptr [RSP + 0x68],0x0 MOV RBP,RSP MOV RDI,RBP MOV ESI,0x1 CALL 0x0018538a MOV RDI,qword ptr [RSP + 0x18] MOV RSI,RBP CALL 0x001874f6 MOV RDI,RBP XOR ESI,ESI CALL 0x0018538a MOV RDI,RBP CALL 0x00189aa4 MOV RDI,R13 XOR ESI,ESI CALL 0x0018538a MOV RDI,R13 CALL 0x00189aa4 LEA RDI,[RSP + 0x58] CALL 0x00170a60 LEA RDI,[RSP + 0x48] CALL 0x00170a60 LEA RDI,[RSP + 0x38] CALL 0x00170a60 MOV RDI,qword ptr [RSP + 0x28] TEST RDI,RDI LEA R13,[RSP + 0xc0] JZ 0x001ec476 MOV RAX,qword ptr [0x00262f98] CMP byte ptr [RAX],0x0 JZ 0x001ec461 MOV EAX,dword ptr [RDI + 0xc] LEA ECX,[RAX + -0x1] MOV dword ptr [RDI + 0xc],ECX JMP 0x001ec46b LAB_001ec461: MOV EAX,0xffffffff XADD.LOCK dword ptr [RDI + 0xc],EAX LAB_001ec46b: CMP EAX,0x1 JNZ 0x001ec476 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x18] LAB_001ec476: LEA RDI,[RSP + 0xd8] CALL 0x001caaba MOV RDI,R13 CALL 0x001be254 LEA R13,[RSP + 0xb0] LAB_001ec493: MOV RDI,R13 XOR ESI,ESI CALL 0x0018538a MOV RDI,R13 CALL 0x00189aa4 LEA RDI,[RSP + 0xa8] CALL 0x00170a60 LEA RDI,[RSP + 0x98] CALL 0x00170a60 LEA RDI,[RSP + 0x88] CALL 0x00170a60 MOV RDI,qword ptr [RSP + 0x78] TEST RDI,RDI JZ 0x001ec502 MOV RAX,qword ptr [0x00262f98] CMP byte ptr [RAX],0x0 JZ 0x001ec4ed MOV EAX,dword ptr [RDI + 0xc] LEA ECX,[RAX + -0x1] MOV dword ptr [RDI + 0xc],ECX JMP 0x001ec4f7 LAB_001ec4ed: MOV EAX,0xffffffff XADD.LOCK dword ptr [RDI + 0xc],EAX LAB_001ec4f7: CMP EAX,0x1 JNZ 0x001ec502 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x18] LAB_001ec502: ADD R12,0x10 XOR EAX,EAX CMP R12,R15 JNZ 0x001ec16a LAB_001ec511: MOV RAX,RBX ADD RSP,0xf8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001ec526: MOV EDI,0x10 CALL 0x00120650 MOV R15,RAX LAB_001ec533: LEA RSI,[0x2221f3] MOV RDI,RAX CALL 0x00120430 LAB_001ec542: MOV RSI,qword ptr [0x00262fc0] MOV RDX,qword ptr [0x00262f80] MOV RDI,R15 CALL 0x00120a50
/* minja::FilterExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const */ FilterExpr * __thiscall minja::FilterExpr::do_evaluate(FilterExpr *this,shared_ptr *param_1) { int *piVar1; int8 *puVar2; shared_ptr *psVar3; int8 uVar4; int8 uVar5; int iVar6; long lVar7; runtime_error *this_00; bool bVar8; int8 *puVar9; int8 local_128; int8 auStack_120 [2]; FilterExpr *local_110; int8 local_108; long *plStack_100; int8 local_f8; int8 uStack_f0; int8 local_e8; int8 uStack_e0; int8 local_d8; int8 uStack_d0; data local_c8; int7 uStack_c7; int8 uStack_c0; Expression local_b8 [8]; long *local_b0; int8 local_a8; int8 uStack_a0; int8 local_98; int8 uStack_90; int8 local_88; int8 uStack_80; data local_78; int7 uStack_77; long *plStack_70; int8 local_68; int8 uStack_60; int8 local_58; int8 uStack_50; int8 local_48; int8 uStack_40; *(int8 *)(this + 0x48) = 0; *(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; this[0x40] = (FilterExpr)0x0; bVar8 = SUB81(this + 0x40,0); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar8); local_110 = this + 0x40; nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar8); puVar9 = *(int8 **)(param_1 + 0x20); puVar2 = *(int8 **)(param_1 + 0x28); if (puVar9 != puVar2) { bVar8 = true; do { psVar3 = (shared_ptr *)*puVar9; if (psVar3 == (shared_ptr *)0x0) { this_00 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001ec533 to 001ec541 has its CatchHandler @ 001ec592 */ std::runtime_error::runtime_error(this_00,"FilterExpr.part is null"); /* try { // try from 001ec542 to 001ec557 has its CatchHandler @ 001ec590 */ /* WARNING: Subroutine does not return */ __cxa_throw(this_00,PTR_typeinfo_00262fc0,PTR__runtime_error_00262f80); } if (bVar8) { /* try { // try from 001ec17f to 001ec18e has its CatchHandler @ 001ec59f */ Expression::evaluate(local_b8,psVar3); uVar5 = uStack_a0; uVar4 = local_a8; local_a8 = 0; uStack_a0 = 0; local_108 = *(int8 *)(this + 0x10); plStack_100 = *(long **)(this + 0x18); *(int8 *)(this + 0x10) = uVar4; *(int8 *)(this + 0x18) = uVar5; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&plStack_100); uVar5 = uStack_90; uVar4 = local_98; local_98 = 0; uStack_90 = 0; local_108 = *(int8 *)(this + 0x20); plStack_100 = *(long **)(this + 0x28); *(int8 *)(this + 0x20) = uVar4; *(int8 *)(this + 0x28) = uVar5; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&plStack_100); uVar5 = uStack_80; uVar4 = local_88; local_88 = 0; uStack_80 = 0; local_108 = *(int8 *)(this + 0x30); plStack_100 = *(long **)(this + 0x38); *(int8 *)(this + 0x30) = uVar4; *(int8 *)(this + 0x38) = uVar5; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&plStack_100); local_108 = CONCAT71(uStack_77,local_78); plStack_100 = plStack_70; nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(&local_78,0)); local_78 = (data)0x0; plStack_70 = (long *)0x0; bVar8 = SUB81((data *)&local_108,0); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar8); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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> *)local_110,(data *)&local_108); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(bVar8); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_108); } else { lVar7 = __dynamic_cast(psVar3,&Expression::typeinfo,&CallExpr::typeinfo,0); if (lVar7 == 0) { /* try { // try from 001ec2ed to 001ec2fc has its CatchHandler @ 001ec55c */ Expression::evaluate(local_b8,psVar3); local_48 = 0; uStack_40 = 0; local_58 = 0; uStack_50 = 0; local_68 = 0; uStack_60 = 0; /* try { // try from 001ec318 to 001ec32c has its CatchHandler @ 001ec55a */ std::vector<minja::Value,std::allocator<minja::Value>>::insert ((vector<minja::Value,std::allocator<minja::Value>> *)&local_68,0,this); /* try { // try from 001ec32d to 001ec344 has its CatchHandler @ 001ec558 */ Value::call((shared_ptr *)&local_108,(ArgumentsValue *)local_b8); } else { /* try { // try from 001ec299 to 001ec2a5 has its CatchHandler @ 001ec565 */ Expression::evaluate(local_b8,*(shared_ptr **)(lVar7 + 0x20)); /* try { // try from 001ec2aa to 001ec2bf has its CatchHandler @ 001ec560 */ ArgumentsExpression::evaluate ((ArgumentsExpression *)&local_68,(shared_ptr *)(lVar7 + 0x30)); /* try { // try from 001ec2c8 to 001ec2d2 has its CatchHandler @ 001ec55e */ std::vector<minja::Value,std::allocator<minja::Value>>::insert ((vector<minja::Value,std::allocator<minja::Value>> *)&local_68,local_68,this); /* try { // try from 001ec2d3 to 001ec2ea has its CatchHandler @ 001ec567 */ Value::call((shared_ptr *)&local_108,(ArgumentsValue *)local_b8); } uVar5 = uStack_f0; uVar4 = local_f8; local_f8 = 0; uStack_f0 = 0; local_128 = *(int8 *)(this + 0x10); auStack_120[0] = *(int8 *)(this + 0x18); *(int8 *)(this + 0x10) = uVar4; *(int8 *)(this + 0x18) = uVar5; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)auStack_120); uVar5 = uStack_e0; uVar4 = local_e8; local_e8 = 0; uStack_e0 = 0; local_128 = *(int8 *)(this + 0x20); auStack_120[0] = *(int8 *)(this + 0x28); *(int8 *)(this + 0x20) = uVar4; *(int8 *)(this + 0x28) = uVar5; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)auStack_120); uVar5 = uStack_d0; uVar4 = local_d8; local_d8 = 0; uStack_d0 = 0; local_128 = *(int8 *)(this + 0x30); auStack_120[0] = *(int8 *)(this + 0x38); *(int8 *)(this + 0x30) = uVar4; *(int8 *)(this + 0x38) = uVar5; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)auStack_120); local_128 = CONCAT71(uStack_c7,local_c8); auStack_120[0] = uStack_c0; bVar8 = SUB81(&local_c8,0); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar8); local_c8 = (data)0x0; uStack_c0 = 0; nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(&local_128,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> ::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> *)local_110,&local_128); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(&local_128,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_128); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(bVar8); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(&local_c8); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&uStack_d0); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&uStack_e0); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&uStack_f0); if (plStack_100 != (long *)0x0) { if (*PTR___libc_single_threaded_00262f98 == '\0') { LOCK(); piVar1 = (int *)((long)plStack_100 + 0xc); iVar6 = *piVar1; *piVar1 = *piVar1 + -1; UNLOCK(); } else { iVar6 = *(int *)((long)plStack_100 + 0xc); *(int *)((long)plStack_100 + 0xc) = iVar6 + -1; } if (iVar6 == 1) { (**(code **)(*plStack_100 + 0x18))(); } } std:: vector<std::pair<std::__cxx11::string,minja::Value>,std::allocator<std::pair<std::__cxx11::string,minja::Value>>> ::~vector((vector<std::pair<std::__cxx11::string,minja::Value>,std::allocator<std::pair<std::__cxx11::string,minja::Value>>> *)&uStack_50); std::vector<minja::Value,std::allocator<minja::Value>>::~vector ((vector<minja::Value,std::allocator<minja::Value>> *)&local_68); } nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(&local_78,0)); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(&local_78); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&uStack_80); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&uStack_90); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&uStack_a0); if (local_b0 != (long *)0x0) { if (*PTR___libc_single_threaded_00262f98 == '\0') { LOCK(); piVar1 = (int *)((long)local_b0 + 0xc); iVar6 = *piVar1; *piVar1 = *piVar1 + -1; UNLOCK(); } else { iVar6 = *(int *)((long)local_b0 + 0xc); *(int *)((long)local_b0 + 0xc) = iVar6 + -1; } if (iVar6 == 1) { (**(code **)(*local_b0 + 0x18))(); } } puVar9 = puVar9 + 2; bVar8 = false; } while (puVar9 != puVar2); } return this; }
19,449
minja::Value::operator+(minja::Value const&) const
monkey531[P]llama/common/./minja.hpp
Value operator+(const Value& rhs) const { if (is_string() || rhs.is_string()) { return to_str() + rhs.to_str(); } else if (is_number_integer() && rhs.is_number_integer()) { return get<int64_t>() + rhs.get<int64_t>(); } else if (is_array() && rhs.is_array()) { auto res = Value::array(); for (const auto& item : *array_) res.push_back(item); for (const auto& item : *rhs.array_) res.push_back(item); return res; } else { return get<double>() + rhs.get<double>(); } }
O1
cpp
minja::Value::operator+(minja::Value const&) const: pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x88, %rsp movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx movb 0x40(%rsi), %al cmpb $0x3, %al je 0x59d6f movb 0x40(%r14), %cl cmpb $0x3, %cl jne 0x59dde leaq 0x50(%rsp), %rdi movq %r15, %rsi callq 0x59bae leaq 0x28(%rsp), %rdi movq %r14, %rsi callq 0x59bae leaq 0x60(%rsp), %r14 movq -0x10(%r14), %rcx movq -0x8(%r14), %r8 movq 0x30(%rsp), %rdx leaq (%rdx,%r8), %rax movl $0xf, %esi cmpq %r14, %rcx je 0x59dae movq 0x60(%rsp), %rsi cmpq %rsi, %rax jbe 0x59dcd leaq 0x38(%rsp), %rdi movl $0xf, %esi cmpq %rdi, -0x10(%rdi) je 0x59dc8 movq 0x38(%rsp), %rsi cmpq %rsi, %rax jbe 0x59e34 movq 0x28(%rsp), %rsi leaq 0x50(%rsp), %rdi callq 0x181e0 jmp 0x59e42 addb $-0x5, %al addb $-0x5, %cl orb %al, %cl cmpb $0x1, %cl ja 0x59eee movq %r15, %rdi callq 0x3f0b2 movq %rax, %r15 movq %r14, %rdi callq 0x3f0b2 addq %rax, %r15 leaq 0x40(%rbx), %r14 xorpd %xmm0, %xmm0 movupd %xmm0, (%rbx) movupd %xmm0, 0x10(%rbx) movupd %xmm0, 0x20(%rbx) movupd %xmm0, 0x30(%rbx) movupd %xmm0, 0x40(%rbx) movq %r14, %rdi movq %r15, %rsi callq 0x40218 jmp 0x59f82 leaq 0x28(%rsp), %rdi xorl %esi, %esi xorl %edx, %edx callq 0x18750 leaq 0x18(%rsp), %rdx movq %rdx, -0x10(%rdx) movq (%rax), %rsi leaq 0x10(%rax), %rcx cmpq %rcx, %rsi je 0x59e66 movq %rsi, 0x8(%rsp) movq (%rcx), %rdx movq %rdx, 0x18(%rsp) jmp 0x59e6e movupd (%rcx), %xmm0 movupd %xmm0, (%rdx) movq %rax, %rdx addq $0x8, %rdx movq 0x8(%rax), %rsi movq %rsi, 0x10(%rsp) movq %rcx, (%rax) movq $0x0, (%rdx) movb $0x0, (%rcx) leaq 0x8(%rsp), %rsi movq %rbx, %rdi callq 0x43cba leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x59eb3 movq 0x18(%rsp), %rsi incq %rsi callq 0x186a0 leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x59ece movq 0x38(%rsp), %rsi incq %rsi callq 0x186a0 movq 0x50(%rsp), %rdi cmpq %r14, %rdi je 0x59f8f movq 0x60(%rsp), %rsi incq %rsi callq 0x186a0 jmp 0x59f8f cmpq $0x0, 0x10(%r15) je 0x59f44 cmpq $0x0, 0x10(%r14) je 0x59f44 xorpd %xmm0, %xmm0 leaq 0x70(%rsp), %rsi movapd %xmm0, (%rsi) movq $0x0, 0x10(%rsi) movq %rbx, %rdi callq 0x5113e leaq 0x70(%rsp), %rdi callq 0x5093e movq 0x10(%r15), %rax movq (%rax), %r15 movq 0x8(%rax), %r12 cmpq %r12, %r15 je 0x59fa1 movq %rbx, %rdi movq %r15, %rsi callq 0x511f0 addq $0x50, %r15 jmp 0x59f2e movq %r15, %rdi callq 0x3f1e4 movsd %xmm0, 0x48(%rsp) movq %r14, %rdi callq 0x3f1e4 addsd 0x48(%rsp), %xmm0 leaq 0x40(%rbx), %r14 xorps %xmm1, %xmm1 movups %xmm1, (%rbx) movups %xmm1, 0x10(%rbx) movups %xmm1, 0x20(%rbx) movups %xmm1, 0x30(%rbx) movups %xmm1, 0x40(%rbx) movq %r14, %rdi callq 0x40b6c movq %r14, %rdi movl $0x1, %esi callq 0x3efdc movq %rbx, %rax addq $0x88, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq movq 0x10(%r14), %rax movq (%rax), %r14 movq 0x8(%rax), %r15 cmpq %r15, %r14 je 0x59f8f movq %rbx, %rdi movq %r14, %rsi callq 0x511f0 addq $0x50, %r14 jmp 0x59fac movq %rax, %r14 leaq 0x70(%rsp), %rdi callq 0x5093e jmp 0x5a03e movq %rax, %r14 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x59ff4 movq 0x18(%rsp), %rsi incq %rsi callq 0x186a0 jmp 0x59ff4 movq %rax, %r14 leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x5a014 movq 0x38(%rsp), %rsi incq %rsi callq 0x186a0 jmp 0x5a014 movq %rax, %r14 leaq 0x60(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x5a03e movq 0x60(%rsp), %rsi incq %rsi callq 0x186a0 jmp 0x5a03e jmp 0x5a033 movq %rax, %r14 movq %rbx, %rdi callq 0x3ef50 movq %r14, %rdi callq 0x18b90
_ZNK5minja5ValueplERKS0_: push r15 push r14 push r12 push rbx sub rsp, 88h mov r14, rdx mov r15, rsi mov rbx, rdi mov al, [rsi+40h] cmp al, 3 jz short loc_59D6F mov cl, [r14+40h] cmp cl, 3 jnz short loc_59DDE loc_59D6F: lea rdi, [rsp+0A8h+var_58] mov rsi, r15 call _ZNK5minja5Value6to_strB5cxx11Ev; minja::Value::to_str(void) lea rdi, [rsp+0A8h+var_80] mov rsi, r14 call _ZNK5minja5Value6to_strB5cxx11Ev; minja::Value::to_str(void) lea r14, [rsp+0A8h+var_48] mov rcx, [r14-10h] mov r8, [r14-8] mov rdx, [rsp+0A8h+var_78] lea rax, [rdx+r8] mov esi, 0Fh cmp rcx, r14 jz short loc_59DAE mov rsi, [rsp+0A8h+var_48] loc_59DAE: cmp rax, rsi jbe short loc_59DCD lea rdi, [rsp+0A8h+var_70] mov esi, 0Fh cmp [rdi-10h], rdi jz short loc_59DC8 mov rsi, [rsp+0A8h+var_70] loc_59DC8: cmp rax, rsi jbe short loc_59E34 loc_59DCD: mov rsi, [rsp+0A8h+var_80] lea rdi, [rsp+0A8h+var_58] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) jmp short loc_59E42 loc_59DDE: add al, 0FBh add cl, 0FBh or cl, al cmp cl, 1 ja loc_59EEE mov rdi, r15 call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void) mov r15, rax mov rdi, r14 call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void) add r15, rax lea r14, [rbx+40h] xorpd xmm0, xmm0 movupd xmmword ptr [rbx], xmm0 movupd xmmword ptr [rbx+10h], xmm0 movupd xmmword ptr [rbx+20h], xmm0 movupd xmmword ptr [rbx+30h], xmm0 movupd xmmword ptr [rbx+40h], xmm0 mov rdi, r14 mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE5EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_16number_integer_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_integer_t) jmp loc_59F82 loc_59E34: lea rdi, [rsp+0A8h+var_80] xor esi, esi xor edx, edx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong) loc_59E42: lea rdx, [rsp+0A8h+var_90] mov [rdx-10h], rdx mov rsi, [rax] lea rcx, [rax+10h] cmp rsi, rcx jz short loc_59E66 mov [rsp+0A8h+var_A0], rsi mov rdx, [rcx] mov [rsp+0A8h+var_90], rdx jmp short loc_59E6E loc_59E66: movupd xmm0, xmmword ptr [rcx] movupd xmmword ptr [rdx], xmm0 loc_59E6E: mov rdx, rax add rdx, 8 mov rsi, [rax+8] mov [rsp+0A8h+var_98], rsi mov [rax], rcx mov qword ptr [rdx], 0 mov byte ptr [rcx], 0 lea rsi, [rsp+0A8h+var_A0] mov rdi, rbx call _ZN5minja5ValueC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::Value(std::string const&) lea rax, [rsp+0A8h+var_90] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_59EB3 mov rsi, [rsp+0A8h+var_90] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_59EB3: lea rax, [rsp+0A8h+var_70] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_59ECE mov rsi, [rsp+0A8h+var_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_59ECE: mov rdi, [rsp+0A8h+var_58]; void * cmp rdi, r14 jz loc_59F8F mov rsi, [rsp+0A8h+var_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp loc_59F8F loc_59EEE: cmp qword ptr [r15+10h], 0 jz short loc_59F44 cmp qword ptr [r14+10h], 0 jz short loc_59F44 xorpd xmm0, xmm0 lea rsi, [rsp+0A8h+var_38] movapd xmmword ptr [rsi], xmm0 mov qword ptr [rsi+10h], 0 mov rdi, rbx call _ZN5minja5Value5arrayESt6vectorIS0_SaIS0_EE; minja::Value::array(std::vector<minja::Value>) lea rdi, [rsp+0A8h+var_38] call _ZNSt6vectorIN5minja5ValueESaIS1_EED2Ev; std::vector<minja::Value>::~vector() mov rax, [r15+10h] mov r15, [rax] mov r12, [rax+8] loc_59F2E: cmp r15, r12 jz short loc_59FA1 mov rdi, rbx; this mov rsi, r15; minja::Value * call _ZN5minja5Value9push_backERKS0_; minja::Value::push_back(minja::Value const&) add r15, 50h ; 'P' jmp short loc_59F2E loc_59F44: mov rdi, r15 call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) movsd [rsp+0A8h+var_60], xmm0 mov rdi, r14 call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) addsd xmm0, [rsp+0A8h+var_60] lea r14, [rbx+40h] xorps xmm1, xmm1 movups xmmword ptr [rbx], xmm1 movups xmmword ptr [rbx+10h], xmm1 movups xmmword ptr [rbx+20h], xmm1 movups xmmword ptr [rbx+30h], xmm1 movups xmmword ptr [rbx+40h], xmm1 mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE7EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_14number_float_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::number_float_t) loc_59F82: mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) loc_59F8F: mov rax, rbx add rsp, 88h pop rbx pop r12 pop r14 pop r15 retn loc_59FA1: mov rax, [r14+10h] mov r14, [rax] mov r15, [rax+8] loc_59FAC: cmp r14, r15 jz short loc_59F8F mov rdi, rbx; this mov rsi, r14; minja::Value * call _ZN5minja5Value9push_backERKS0_; minja::Value::push_back(minja::Value const&) add r14, 50h ; 'P' jmp short loc_59FAC mov r14, rax lea rdi, [rsp+arg_68] call _ZNSt6vectorIN5minja5ValueESaIS1_EED2Ev; std::vector<minja::Value>::~vector() jmp short loc_5A03E mov r14, rax lea rax, [rsp+arg_10] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_59FF4 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_59FF4 mov r14, rax loc_59FF4: lea rax, [rsp+arg_30] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_5A014 mov rsi, [rsp+arg_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_5A014 mov r14, rax loc_5A014: lea rax, [rsp+arg_58] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_5A03E mov rsi, [rsp+arg_58] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_5A03E jmp short $+2 loc_5A033: mov r14, rax mov rdi, rbx; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() loc_5A03E: mov rdi, r14 call __Unwind_Resume
minja::Value * minja::Value::operator+(minja::Value *this, long long a2, long long a3) { char v4; // al char v5; // cl unsigned long long v6; // rax unsigned long long v7; // rsi unsigned long long v8; // rsi __int128 **v9; // rax long long v10; // r15 long long v11; // rax char *v12; // r14 __int128 *v13; // rcx const minja::Value **v14; // rax const minja::Value *v15; // r15 const minja::Value *v16; // r12 double v17; // xmm0_8 const minja::Value **v19; // rax const minja::Value *v20; // r14 const minja::Value *v21; // r15 __int128 *v22; // [rsp+8h] [rbp-A0h] __int128 v23; // [rsp+18h] [rbp-90h] BYREF _QWORD *v24; // [rsp+28h] [rbp-80h] BYREF long long v25; // [rsp+30h] [rbp-78h] _QWORD v26[2]; // [rsp+38h] [rbp-70h] BYREF double v27; // [rsp+48h] [rbp-60h] void *v28; // [rsp+50h] [rbp-58h] BYREF long long v29; // [rsp+58h] [rbp-50h] _QWORD v30[2]; // [rsp+60h] [rbp-48h] BYREF __int128 v31; // [rsp+70h] [rbp-38h] BYREF long long v32; // [rsp+80h] [rbp-28h] v4 = *(_BYTE *)(a2 + 64); if ( v4 != 3 ) { v5 = *(_BYTE *)(a3 + 64); if ( v5 != 3 ) { if ( (unsigned __int8)((v4 - 5) | (v5 - 5)) > 1u ) { if ( *(_QWORD *)(a2 + 16) && *(_QWORD *)(a3 + 16) ) { v31 = 0LL; v32 = 0LL; minja::Value::array((long long)this, (long long *)&v31); std::vector<minja::Value>::~vector(&v31); v14 = *(const minja::Value ***)(a2 + 16); v15 = *v14; v16 = v14[1]; while ( v15 != v16 ) { minja::Value::push_back(this, v15); v15 = (const minja::Value *)((char *)v15 + 80); } v19 = *(const minja::Value ***)(a3 + 16); v20 = *v19; v21 = v19[1]; while ( v20 != v21 ) { minja::Value::push_back(this, v20); v20 = (const minja::Value *)((char *)v20 + 80); } return this; } v27 = minja::Value::get<double>(a2); v17 = minja::Value::get<double>(a3) + v27; v12 = (char *)this + 64; *(_OWORD *)this = 0LL; *((_OWORD *)this + 1) = 0LL; *((_OWORD *)this + 2) = 0LL; *((_OWORD *)this + 3) = 0LL; *((_OWORD *)this + 4) = 0LL; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( (unsigned __int8 *)this + 64, v17); } else { v10 = minja::Value::get<long>(a2); v11 = minja::Value::get<long>(a3); v12 = (char *)this + 64; *(_OWORD *)this = 0LL; *((_OWORD *)this + 1) = 0LL; *((_OWORD *)this + 2) = 0LL; *((_OWORD *)this + 3) = 0LL; *((_OWORD *)this + 4) = 0LL; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( (char *)this + 64, v11 + v10); } nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v12); return this; } } minja::Value::to_str[abi:cxx11](&v28, a2); minja::Value::to_str[abi:cxx11](&v24, a3); v6 = v25 + v29; v7 = 15LL; if ( v28 != v30 ) v7 = v30[0]; if ( v6 <= v7 ) goto LABEL_9; v8 = 15LL; if ( v24 != v26 ) v8 = v26[0]; if ( v6 <= v8 ) v9 = (__int128 **)std::string::replace(&v24, 0LL, 0LL, v28, v29); else LABEL_9: v9 = (__int128 **)std::string::_M_append(&v28, v24, v25); v22 = &v23; v13 = (__int128 *)(v9 + 2); if ( *v9 == (__int128 *)(v9 + 2) ) { v23 = *v13; } else { v22 = *v9; *(_QWORD *)&v23 = *(_QWORD *)v13; } *v9 = v13; v9[1] = 0LL; *(_BYTE *)v13 = 0; minja::Value::Value(this); if ( v22 != &v23 ) operator delete(v22, v23 + 1); if ( v24 != v26 ) operator delete(v24, v26[0] + 1LL); if ( v28 != v30 ) operator delete(v28, v30[0] + 1LL); return this; }
operator+: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x88 MOV R14,RDX MOV R15,RSI MOV RBX,RDI MOV AL,byte ptr [RSI + 0x40] CMP AL,0x3 JZ 0x00159d6f MOV CL,byte ptr [R14 + 0x40] CMP CL,0x3 JNZ 0x00159dde LAB_00159d6f: LEA RDI,[RSP + 0x50] MOV RSI,R15 CALL 0x00159bae LAB_00159d7c: LEA RDI,[RSP + 0x28] MOV RSI,R14 CALL 0x00159bae LEA R14,[RSP + 0x60] MOV RCX,qword ptr [R14 + -0x10] MOV R8,qword ptr [R14 + -0x8] MOV RDX,qword ptr [RSP + 0x30] LEA RAX,[RDX + R8*0x1] MOV ESI,0xf CMP RCX,R14 JZ 0x00159dae MOV RSI,qword ptr [RSP + 0x60] LAB_00159dae: CMP RAX,RSI JBE 0x00159dcd LEA RDI,[RSP + 0x38] MOV ESI,0xf CMP qword ptr [RDI + -0x10],RDI JZ 0x00159dc8 MOV RSI,qword ptr [RSP + 0x38] LAB_00159dc8: CMP RAX,RSI JBE 0x00159e34 LAB_00159dcd: MOV RSI,qword ptr [RSP + 0x28] LAB_00159dd2: LEA RDI,[RSP + 0x50] CALL 0x001181e0 LAB_00159ddc: JMP 0x00159e42 LAB_00159dde: ADD AL,0xfb ADD CL,0xfb OR CL,AL CMP CL,0x1 JA 0x00159eee MOV RDI,R15 CALL 0x0013f0b2 MOV R15,RAX MOV RDI,R14 CALL 0x0013f0b2 ADD R15,RAX LEA R14,[RBX + 0x40] XORPD XMM0,XMM0 MOVUPD xmmword ptr [RBX],XMM0 MOVUPD xmmword ptr [RBX + 0x10],XMM0 MOVUPD xmmword ptr [RBX + 0x20],XMM0 MOVUPD xmmword ptr [RBX + 0x30],XMM0 MOVUPD xmmword ptr [RBX + 0x40],XMM0 MOV RDI,R14 MOV RSI,R15 CALL 0x00140218 JMP 0x00159f82 LAB_00159e34: LEA RDI,[RSP + 0x28] XOR ESI,ESI XOR EDX,EDX CALL 0x00118750 LAB_00159e42: LEA RDX,[RSP + 0x18] MOV qword ptr [RDX + -0x10],RDX MOV RSI,qword ptr [RAX] LEA RCX,[RAX + 0x10] CMP RSI,RCX JZ 0x00159e66 MOV qword ptr [RSP + 0x8],RSI MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x18],RDX JMP 0x00159e6e LAB_00159e66: MOVUPD XMM0,xmmword ptr [RCX] MOVUPD xmmword ptr [RDX],XMM0 LAB_00159e6e: MOV RDX,RAX ADD RDX,0x8 MOV RSI,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x10],RSI MOV qword ptr [RAX],RCX MOV qword ptr [RDX],0x0 MOV byte ptr [RCX],0x0 LAB_00159e8b: LEA RSI,[RSP + 0x8] MOV RDI,RBX CALL 0x00143cba LEA RAX,[RSP + 0x18] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00159eb3 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001186a0 LAB_00159eb3: LEA RAX,[RSP + 0x38] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00159ece MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x001186a0 LAB_00159ece: MOV RDI,qword ptr [RSP + 0x50] CMP RDI,R14 JZ 0x00159f8f MOV RSI,qword ptr [RSP + 0x60] INC RSI CALL 0x001186a0 JMP 0x00159f8f LAB_00159eee: CMP qword ptr [R15 + 0x10],0x0 JZ 0x00159f44 CMP qword ptr [R14 + 0x10],0x0 JZ 0x00159f44 XORPD XMM0,XMM0 LEA RSI,[RSP + 0x70] MOVAPD xmmword ptr [RSI],XMM0 MOV qword ptr [RSI + 0x10],0x0 LAB_00159f11: MOV RDI,RBX CALL 0x0015113e LEA RDI,[RSP + 0x70] CALL 0x0015093e MOV RAX,qword ptr [R15 + 0x10] MOV R15,qword ptr [RAX] MOV R12,qword ptr [RAX + 0x8] LAB_00159f2e: CMP R15,R12 JZ 0x00159fa1 LAB_00159f33: MOV RDI,RBX MOV RSI,R15 CALL 0x001511f0 LAB_00159f3e: ADD R15,0x50 JMP 0x00159f2e LAB_00159f44: MOV RDI,R15 CALL 0x0013f1e4 MOVSD qword ptr [RSP + 0x48],XMM0 MOV RDI,R14 CALL 0x0013f1e4 ADDSD XMM0,qword ptr [RSP + 0x48] LEA R14,[RBX + 0x40] XORPS XMM1,XMM1 MOVUPS xmmword ptr [RBX],XMM1 MOVUPS xmmword ptr [RBX + 0x10],XMM1 MOVUPS xmmword ptr [RBX + 0x20],XMM1 MOVUPS xmmword ptr [RBX + 0x30],XMM1 MOVUPS xmmword ptr [RBX + 0x40],XMM1 MOV RDI,R14 CALL 0x00140b6c LAB_00159f82: MOV RDI,R14 MOV ESI,0x1 CALL 0x0013efdc LAB_00159f8f: MOV RAX,RBX ADD RSP,0x88 POP RBX POP R12 POP R14 POP R15 RET LAB_00159fa1: MOV RAX,qword ptr [R14 + 0x10] MOV R14,qword ptr [RAX] MOV R15,qword ptr [RAX + 0x8] LAB_00159fac: CMP R14,R15 JZ 0x00159f8f LAB_00159fb1: MOV RDI,RBX MOV RSI,R14 CALL 0x001511f0 LAB_00159fbc: ADD R14,0x50 JMP 0x00159fac
/* minja::Value::TEMPNAMEPLACEHOLDERVALUE(minja::Value const&) const */ Value * __thiscall minja::Value::operator+(Value *this,Value *param_1) { long *plVar1; Value *pVVar2; int8 *puVar3; long lVar4; long lVar5; Value *in_RDX; ulong uVar6; Value *pVVar7; double dVar8; long *local_a0; int8 local_98; long local_90; int8 uStack_88; ulong *local_80; long local_78; ulong local_70 [2]; double local_60; ulong *local_58; long local_50; ulong local_48 [2]; int8 local_38; int8 uStack_30; int8 local_28; if ((param_1[0x40] != (Value)0x3) && (in_RDX[0x40] != (Value)0x3)) { if ((byte)((char)in_RDX[0x40] - 5U | (char)param_1[0x40] - 5U) < 2) { lVar4 = get<long>(param_1); lVar5 = get<long>(in_RDX); *(int8 *)this = 0; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x40) = 0; *(int8 *)(this + 0x48) = 0; nlohmann::json_abi_v3_11_3::detail:: external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)5>:: construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (this + 0x40,lVar4 + lVar5); } else { if ((*(long *)(param_1 + 0x10) != 0) && (*(long *)(in_RDX + 0x10) != 0)) { local_38 = 0; uStack_30 = 0; local_28 = 0; /* try { // try from 00159f11 to 00159f18 has its CatchHandler @ 00159fc2 */ array(this); std::vector<minja::Value,std::allocator<minja::Value>>::~vector ((vector<minja::Value,std::allocator<minja::Value>> *)&local_38); pVVar2 = (Value *)(*(int8 **)(param_1 + 0x10))[1]; for (pVVar7 = (Value *)**(int8 **)(param_1 + 0x10); pVVar7 != pVVar2; pVVar7 = pVVar7 + 0x50) { /* try { // try from 00159f33 to 00159f3d has its CatchHandler @ 0015a033 */ push_back(this,pVVar7); } pVVar2 = (Value *)(*(int8 **)(in_RDX + 0x10))[1]; for (pVVar7 = (Value *)**(int8 **)(in_RDX + 0x10); pVVar7 != pVVar2; pVVar7 = pVVar7 + 0x50) { /* try { // try from 00159fb1 to 00159fbb has its CatchHandler @ 0015a031 */ push_back(this,pVVar7); } return this; } local_60 = get<double>(param_1); dVar8 = get<double>(in_RDX); *(int8 *)this = 0; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x40) = 0; *(int8 *)(this + 0x48) = 0; nlohmann::json_abi_v3_11_3::detail:: external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>:: construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (dVar8 + local_60,this + 0x40); } nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant((bool)((char)this + '@')); return this; } to_str_abi_cxx11_(); /* try { // try from 00159d7c to 00159d88 has its CatchHandler @ 0015a011 */ to_str_abi_cxx11_(); uVar6 = 0xf; if (local_58 != local_48) { uVar6 = local_48[0]; } if (uVar6 < (ulong)(local_78 + local_50)) { uVar6 = 0xf; if (local_80 != local_70) { uVar6 = local_70[0]; } if ((ulong)(local_78 + local_50) <= uVar6) { /* try { // try from 00159e34 to 00159e41 has its CatchHandler @ 00159ff1 */ puVar3 = (int8 *) std::__cxx11::string::replace((ulong)&local_80,0,(char *)0x0,(ulong)local_58); goto LAB_00159e42; } } /* try { // try from 00159dd2 to 00159ddb has its CatchHandler @ 00159ff1 */ puVar3 = (int8 *)std::__cxx11::string::_M_append((char *)&local_58,(ulong)local_80); LAB_00159e42: local_a0 = &local_90; plVar1 = puVar3 + 2; if ((long *)*puVar3 == plVar1) { local_90 = *plVar1; uStack_88 = puVar3[3]; } else { local_90 = *plVar1; local_a0 = (long *)*puVar3; } local_98 = puVar3[1]; *puVar3 = plVar1; puVar3[1] = 0; *(int1 *)plVar1 = 0; /* try { // try from 00159e8b to 00159e97 has its CatchHandler @ 00159fd1 */ Value(this,(string *)&local_a0); if (local_a0 != &local_90) { operator_delete(local_a0,local_90 + 1); } if (local_80 != local_70) { operator_delete(local_80,local_70[0] + 1); } if (local_58 != local_48) { operator_delete(local_58,local_48[0] + 1); } return this; }
19,450
escape_quotes_for_mysql
eloqsql/mysys/charset.c
size_t escape_quotes_for_mysql(CHARSET_INFO *charset_info, char *to, size_t to_length, const char *from, size_t length, my_bool *overflow) { const char *to_start= to; const char *end, *to_end=to_start + (to_length ? to_length-1 : 2*length); #ifdef USE_MB my_bool use_mb_flag= my_ci_use_mb(charset_info); #endif *overflow= FALSE; for (end= from + length; from < end; from++) { #ifdef USE_MB int tmp_length; if (use_mb_flag && (tmp_length= my_ismbchar(charset_info, from, end))) { if (to + tmp_length > to_end) { *overflow= TRUE; break; } while (tmp_length--) *to++= *from++; from--; continue; } /* We don't have the same issue here with a non-multi-byte character being turned into a multi-byte character by the addition of an escaping character, because we are only escaping the ' character with itself. */ #endif if (*from == '\'') { if (to + 2 > to_end) { *overflow= TRUE; break; } *to++= '\''; *to++= '\''; } else { if (to + 1 > to_end) { *overflow= TRUE; break; } *to++= *from; } } *to= 0; return (size_t) (to - to_start); }
O3
c
escape_quotes_for_mysql: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdx, %r12 leaq (%r8,%r8), %rax subq $0x1, %r12 cmovbq %rax, %r12 movq %rdi, -0x40(%rbp) movl 0x9c(%rdi), %r13d movq %r9, -0x38(%rbp) movb $0x0, (%r9) movq %rsi, -0x30(%rbp) movq %rsi, %rax testq %r8, %r8 jle 0x498a3 movq %r8, %r15 movq %rcx, %r14 movq -0x30(%rbp), %rbx addq %rbx, %r12 addq %rcx, %r15 cmpl $0x2, %r13d jb 0x4983e movq -0x40(%rbp), %rdi movq 0xb8(%rdi), %rax movq %r14, %rsi movq %r15, %rdx callq *0xc0(%rax) cmpl $0x2, %eax jge 0x49863 movb (%r14), %cl cmpb $0x27, %cl jne 0x49856 leaq 0x2(%rbx), %rax cmpq %r12, %rax ja 0x49899 movw $0x2727, (%rbx) # imm = 0x2727 jmp 0x4988c leaq 0x1(%rbx), %rax cmpq %r12, %rax ja 0x49899 movb %cl, (%rbx) jmp 0x4988c movl %eax, %ecx movl %eax, %eax addq %rbx, %rax cmpq %r12, %rax ja 0x49899 decq %r14 movq %r14, %rdx leaq 0x1(%rdx), %r14 leaq 0x1(%rbx), %rax movb 0x1(%rdx), %dl movb %dl, (%rbx) movq %r14, %rdx movq %rax, %rbx decl %ecx jne 0x49875 incq %r14 movq %rax, %rbx cmpq %r15, %r14 jb 0x4981c jmp 0x498a3 movq -0x38(%rbp), %rax movb $0x1, (%rax) movq %rbx, %rax movb $0x0, (%rax) subq -0x30(%rbp), %rax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
escape_quotes_for_mysql: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r12, rdx lea rax, [r8+r8] sub r12, 1 cmovb r12, rax mov [rbp+var_40], rdi mov r13d, [rdi+9Ch] mov [rbp+var_38], r9 mov byte ptr [r9], 0 mov [rbp+var_30], rsi mov rax, rsi test r8, r8 jle loc_498A3 mov r15, r8 mov r14, rcx mov rbx, [rbp+var_30] add r12, rbx add r15, rcx loc_4981C: cmp r13d, 2 jb short loc_4983E mov rdi, [rbp+var_40] mov rax, [rdi+0B8h] mov rsi, r14 mov rdx, r15 call qword ptr [rax+0C0h] cmp eax, 2 jge short loc_49863 loc_4983E: mov cl, [r14] cmp cl, 27h ; ''' jnz short loc_49856 lea rax, [rbx+2] cmp rax, r12 ja short loc_49899 mov word ptr [rbx], 2727h jmp short loc_4988C loc_49856: lea rax, [rbx+1] cmp rax, r12 ja short loc_49899 mov [rbx], cl jmp short loc_4988C loc_49863: mov ecx, eax mov eax, eax add rax, rbx cmp rax, r12 ja short loc_49899 dec r14 mov rdx, r14 loc_49875: lea r14, [rdx+1] lea rax, [rbx+1] mov dl, [rdx+1] mov [rbx], dl mov rdx, r14 mov rbx, rax dec ecx jnz short loc_49875 loc_4988C: inc r14 mov rbx, rax cmp r14, r15 jb short loc_4981C jmp short loc_498A3 loc_49899: mov rax, [rbp+var_38] mov byte ptr [rax], 1 mov rax, rbx loc_498A3: mov byte ptr [rax], 0 sub rax, [rbp+var_30] add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
_BYTE * escape_quotes_for_mysql(long long a1, _BYTE *a2, long long a3, _BYTE *a4, long long a5, _BYTE *a6) { long long v6; // r12 unsigned int v7; // r13d _BYTE *v8; // rax _BYTE *v9; // r14 _WORD *v10; // rbx unsigned long long v11; // r12 unsigned long long v12; // r15 int v13; // eax int v14; // ecx _BYTE *v15; // rdx v6 = a3 - 1; if ( !a3 ) v6 = 2 * a5; v7 = *(_DWORD *)(a1 + 156); *a6 = 0; v8 = a2; if ( a5 > 0 ) { v9 = a4; v10 = a2; v11 = (unsigned long long)&a2[v6]; v12 = (unsigned long long)&a4[a5]; do { if ( v7 >= 2 && (v13 = (*(long long ( **)(long long, _BYTE *, unsigned long long))(*(_QWORD *)(a1 + 184) + 192LL))( a1, v9, v12), v13 >= 2) ) { v14 = v13; if ( (unsigned long long)v10 + (unsigned int)v13 > v11 ) { LABEL_17: *a6 = 1; v8 = v10; break; } v15 = v9 - 1; do { v9 = v15 + 1; v8 = (char *)v10 + 1; *(_BYTE *)v10 = *++v15; v10 = (_WORD *)((char *)v10 + 1); --v14; } while ( v14 ); } else if ( *v9 == 39 ) { v8 = v10 + 1; if ( (unsigned long long)(v10 + 1) > v11 ) goto LABEL_17; *v10 = 10023; } else { v8 = (char *)v10 + 1; if ( (unsigned long long)v10 + 1 > v11 ) goto LABEL_17; *(_BYTE *)v10 = *v9; } ++v9; v10 = v8; } while ( (unsigned long long)v9 < v12 ); } *v8 = 0; return (_BYTE *)(v8 - a2); }
escape_quotes_for_mysql: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R12,RDX LEA RAX,[R8 + R8*0x1] SUB R12,0x1 CMOVC R12,RAX MOV qword ptr [RBP + -0x40],RDI MOV R13D,dword ptr [RDI + 0x9c] MOV qword ptr [RBP + -0x38],R9 MOV byte ptr [R9],0x0 MOV qword ptr [RBP + -0x30],RSI MOV RAX,RSI TEST R8,R8 JLE 0x001498a3 MOV R15,R8 MOV R14,RCX MOV RBX,qword ptr [RBP + -0x30] ADD R12,RBX ADD R15,RCX LAB_0014981c: CMP R13D,0x2 JC 0x0014983e MOV RDI,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RDI + 0xb8] MOV RSI,R14 MOV RDX,R15 CALL qword ptr [RAX + 0xc0] CMP EAX,0x2 JGE 0x00149863 LAB_0014983e: MOV CL,byte ptr [R14] CMP CL,0x27 JNZ 0x00149856 LEA RAX,[RBX + 0x2] CMP RAX,R12 JA 0x00149899 MOV word ptr [RBX],0x2727 JMP 0x0014988c LAB_00149856: LEA RAX,[RBX + 0x1] CMP RAX,R12 JA 0x00149899 MOV byte ptr [RBX],CL JMP 0x0014988c LAB_00149863: MOV ECX,EAX MOV EAX,EAX ADD RAX,RBX CMP RAX,R12 JA 0x00149899 DEC R14 MOV RDX,R14 LAB_00149875: LEA R14,[RDX + 0x1] LEA RAX,[RBX + 0x1] MOV DL,byte ptr [RDX + 0x1] MOV byte ptr [RBX],DL MOV RDX,R14 MOV RBX,RAX DEC ECX JNZ 0x00149875 LAB_0014988c: INC R14 MOV RBX,RAX CMP R14,R15 JC 0x0014981c JMP 0x001498a3 LAB_00149899: MOV RAX,qword ptr [RBP + -0x38] MOV byte ptr [RAX],0x1 MOV RAX,RBX LAB_001498a3: MOV byte ptr [RAX],0x0 SUB RAX,qword ptr [RBP + -0x30] ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
long escape_quotes_for_mysql (long param_1,char *param_2,long param_3,char *param_4,long param_5, int1 *param_6) { uint uVar1; uint uVar2; char *pcVar3; char *pcVar4; char *pcVar5; long lVar6; char *pcVar7; char *pcVar8; lVar6 = param_3 + -1; if (param_3 == 0) { lVar6 = param_5 * 2; } uVar1 = *(uint *)(param_1 + 0x9c); *param_6 = 0; pcVar3 = param_2; if (0 < param_5) { pcVar7 = param_2 + lVar6; pcVar8 = param_4 + param_5; pcVar5 = param_2; do { if ((uVar1 < 2) || (uVar2 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,param_4,pcVar8), (int)uVar2 < 2)) { if (*param_4 == '\'') { pcVar3 = pcVar5 + 2; if (pcVar7 < pcVar3) { LAB_00149899: *param_6 = 1; pcVar3 = pcVar5; break; } pcVar5[0] = '\''; pcVar5[1] = '\''; } else { pcVar3 = pcVar5 + 1; if (pcVar7 < pcVar3) goto LAB_00149899; *pcVar5 = *param_4; } } else { if (pcVar7 < pcVar5 + uVar2) goto LAB_00149899; pcVar4 = param_4 + -1; do { param_4 = pcVar4 + 1; pcVar3 = pcVar5 + 1; *pcVar5 = pcVar4[1]; uVar2 = uVar2 - 1; pcVar4 = param_4; pcVar5 = pcVar3; } while (uVar2 != 0); } param_4 = param_4 + 1; pcVar5 = pcVar3; } while (param_4 < pcVar8); } *pcVar3 = '\0'; return (long)pcVar3 - (long)param_2; }
19,451
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::start_array(unsigned long)
hkr04[P]cpp-mcp/common/json.hpp
bool start_array(std::size_t len) { const bool keep = callback(static_cast<int>(ref_stack.size()), parse_event_t::array_start, discarded); keep_stack.push_back(keep); auto val = handle_value(BasicJsonType::value_t::array, true); ref_stack.push_back(val.second); // check array limit if (ref_stack.back() && JSON_HEDLEY_UNLIKELY(len != static_cast<std::size_t>(-1) && len > ref_stack.back()->max_size())) { JSON_THROW(out_of_range::create(408, concat("excessive array size: ", std::to_string(len)), ref_stack.back())); } return true; }
O2
cpp
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::start_array(unsigned long): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x58, %rsp movq %rsi, %r15 movq %rdi, %r14 addq $0x80, %rdi leaq 0x8(%r14), %rbx movq 0x10(%r14), %rsi subq 0x8(%r14), %rsi shrq $0x3, %rsi leaq 0xa8(%r14), %rcx pushq $0x2 popq %rdx callq 0x154b4 leaq 0x20(%r14), %rdi movzbl %al, %esi callq 0x14780 leaq 0x8(%rsp), %rsi movb $0x2, (%rsi) pushq $0x1 popq %rdx movq %r14, %rdi callq 0x154d8 leaq 0x50(%rsp), %rsi movb %al, -0x8(%rsi) movq %rdx, (%rsi) movq %rbx, %rdi callq 0x15644 movq 0x10(%r14), %rax movq -0x8(%rax), %rdi testq %rdi, %rdi sete %al cmpq $-0x1, %r15 sete %cl orb %al, %cl jne 0x15107 callq 0x15662 cmpq %r15, %rax jb 0x15114 movb $0x1, %al addq $0x58, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq pushq $0x20 popq %rdi callq 0x5220 movq %rax, %rbx leaq 0x28(%rsp), %rdi movq %r15, %rsi callq 0xa0bb leaq 0x8979(%rip), %rsi # 0x1daac leaq 0x8(%rsp), %rdi leaq 0x28(%rsp), %rdx callq 0x1603d movq 0x10(%r14), %rax movq -0x8(%rax), %rcx movb $0x1, %bpl leaq 0x8(%rsp), %rdx movq %rbx, %rdi movl $0x198, %esi # imm = 0x198 callq 0x1568a xorl %ebp, %ebp leaq 0x169f0(%rip), %rsi # 0x2bb58 leaq -0xcf35(%rip), %rdx # 0x823a movq %rbx, %rdi callq 0x5730 movq %rax, %r14 leaq 0x8(%rsp), %rdi callq 0x51d0 jmp 0x1518c movq %rax, %r14 movb $0x1, %bpl leaq 0x28(%rsp), %rdi callq 0x51d0 testb %bpl, %bpl jne 0x151a0 jmp 0x151a8 movq %rax, %r14 movq %rbx, %rdi callq 0x5330 movq %r14, %rdi callq 0x5750
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE11start_arrayEm: push rbp push r15 push r14; char push rbx; int sub rsp, 58h mov r15, rsi mov r14, rdi add rdi, 80h lea rbx, [r14+8] mov rsi, [r14+10h] sub rsi, [r14+8] shr rsi, 3 lea rcx, [r14+0A8h] push 2 pop rdx call _ZNKSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEclEiS3_SH_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::operator()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &) lea rdi, [r14+20h] movzx esi, al call _ZNSt6vectorIbSaIbEE9push_backEb; std::vector<bool>::push_back(bool) lea rsi, [rsp+78h+var_70] mov byte ptr [rsi], 2 push 1 pop rdx mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueINS1_7value_tEEESt4pairIbPSF_EOT_b; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(nlohmann::json_abi_v3_11_3::detail::value_t &&,bool) lea rsi, [rsp+78h+var_28] mov [rsi-8], al mov [rsi], rdx mov rdi, rbx call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE9push_backERKSE_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> * const&) mov rax, [r14+10h] mov rdi, [rax-8] test rdi, rdi setz al cmp r15, 0FFFFFFFFFFFFFFFFh setz cl or cl, al jnz short loc_15107 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8max_sizeEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::max_size(void) cmp rax, r15 jb short loc_15114 loc_15107: mov al, 1 add rsp, 58h pop rbx pop r14 pop r15 pop rbp retn loc_15114: push 20h ; ' ' pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rdi, [rsp+78h+var_50]; this mov rsi, r15; unsigned __int64 call _ZNSt7__cxx119to_stringEm; std::to_string(ulong) lea rsi, aExcessiveArray; "excessive array size: " lea rdi, [rsp+78h+var_70] lea rdx, [rsp+78h+var_50] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA23_KcS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[23],std::string>(char const(&)[23],std::string &&) mov rax, [r14+10h] mov rcx, [rax-8] mov bpl, 1 lea rdx, [rsp+78h+var_70] mov rdi, rbx; this mov esi, 198h; int call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rdi, [rsp+78h+var_70] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_1518C mov r14, rax mov bpl, 1 loc_1518C: lea rdi, [rsp+78h+var_50] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test bpl, bpl jnz short loc_151A0 jmp short loc_151A8 mov r14, rax loc_151A0: mov rdi, rbx; void * call ___cxa_free_exception loc_151A8: mov rdi, r14 call __Unwind_Resume
char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::start_array( long long a1, unsigned long long a2) { unsigned __int8 v2; // al long long v3; // rdx nlohmann::json_abi_v3_11_3::detail::out_of_range *exception; // rbx char v6; // [rsp+0h] [rbp-78h] int v7[6]; // [rsp+8h] [rbp-70h] BYREF char v8; // [rsp+20h] [rbp-58h] int v9[6]; // [rsp+28h] [rbp-50h] BYREF char v10; // [rsp+40h] [rbp-38h] int v11; // [rsp+48h] [rbp-30h] long long v12; // [rsp+50h] [rbp-28h] int v13; // [rsp+58h] [rbp-20h] char v14; // [rsp+60h] [rbp-18h] v2 = std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::operator()( a1 + 128, (*(_QWORD *)(a1 + 16) - *(_QWORD *)(a1 + 8)) >> 3, 2LL, a1 + 168); std::vector<bool>::push_back(a1 + 32, v2); LOBYTE(v7[0]) = 2; LOBYTE(v11) = nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>( a1, v7, 1LL); v12 = v3; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::push_back(a1 + 8); if ( *(_QWORD *)(*(_QWORD *)(a1 + 16) - 8LL) != 0LL && a2 != -1LL && nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::max_size() < a2 ) { exception = (nlohmann::json_abi_v3_11_3::detail::out_of_range *)__cxa_allocate_exception(0x20uLL); std::to_string((std::__cxx11 *)v9, a2); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[23],std::string>( v7, "excessive array size: ", v9); ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_( exception, 408, v6, v7[0], v7[2], v7[4], v8, v9[0], v9[2], v9[4], v10, v11, v12, v13, v14); __cxa_throw( exception, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::out_of_range, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } return 1; }
start_array: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x58 MOV R15,RSI MOV R14,RDI ADD RDI,0x80 LEA RBX,[R14 + 0x8] MOV RSI,qword ptr [R14 + 0x10] SUB RSI,qword ptr [R14 + 0x8] SHR RSI,0x3 LEA RCX,[R14 + 0xa8] PUSH 0x2 POP RDX CALL 0x001154b4 LEA RDI,[R14 + 0x20] MOVZX ESI,AL CALL 0x00114780 LEA RSI,[RSP + 0x8] MOV byte ptr [RSI],0x2 PUSH 0x1 POP RDX MOV RDI,R14 CALL 0x001154d8 LEA RSI,[RSP + 0x50] MOV byte ptr [RSI + -0x8],AL MOV qword ptr [RSI],RDX MOV RDI,RBX CALL 0x00115644 MOV RAX,qword ptr [R14 + 0x10] MOV RDI,qword ptr [RAX + -0x8] TEST RDI,RDI SETZ AL CMP R15,-0x1 SETZ CL OR CL,AL JNZ 0x00115107 CALL 0x00115662 CMP RAX,R15 JC 0x00115114 LAB_00115107: MOV AL,0x1 ADD RSP,0x58 POP RBX POP R14 POP R15 POP RBP RET LAB_00115114: PUSH 0x20 POP RDI CALL 0x00105220 MOV RBX,RAX LAB_0011511f: LEA RDI,[RSP + 0x28] MOV RSI,R15 CALL 0x0010a0bb LAB_0011512c: LEA RSI,[0x11daac] LEA RDI,[RSP + 0x8] LEA RDX,[RSP + 0x28] CALL 0x0011603d MOV RAX,qword ptr [R14 + 0x10] MOV RCX,qword ptr [RAX + -0x8] MOV BPL,0x1 LAB_0011514d: LEA RDX,[RSP + 0x8] MOV RDI,RBX MOV ESI,0x198 CALL 0x0011568a XOR EBP,EBP LEA RSI,[0x12bb58] LEA RDX,[0x10823a] MOV RDI,RBX CALL 0x00105730
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::start_array(unsigned long) */ int8 __thiscall nlohmann::json_abi_v3_11_3::detail:: json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::start_array(json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *this,ulong param_1) { bool bVar1; ulong uVar2; int8 uVar3; basic_json *extraout_RDX; detail local_70 [32]; __cxx11 local_50 [32]; int1 local_30; basic_json *local_28; bVar1 = (bool)std:: function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)> ::operator()(this + 0x80,(ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3, 2,this + 0xa8); std::vector<bool,std::allocator<bool>>::push_back ((vector<bool,std::allocator<bool>> *)(this + 0x20),bVar1); local_70[0] = (detail)0x2; local_30 = handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(this,local_70,true); local_28 = extraout_RDX; std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::push_back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8),&local_28); if (param_1 != 0xffffffffffffffff && *(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> **)(*(long *)(this + 0x10) + -8) != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)0x0) { uVar2 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::max_size(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> **)(*(long *)(this + 0x10) + -8)); if (uVar2 < param_1) { uVar3 = __cxa_allocate_exception(0x20); /* try { // try from 0011511f to 0011512b has its CatchHandler @ 0011519d */ std::__cxx11::to_string(local_50,param_1); /* try { // try from 0011512c to 00115141 has its CatchHandler @ 00115186 */ concat<std::__cxx11::string,char_const(&)[23],std::__cxx11::string> (local_70,"excessive array size: ",(string *)local_50); /* try { // try from 0011514d to 00115176 has its CatchHandler @ 00115177 */ _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar3,0x198,local_70,*(int8 *)(*(long *)(this + 0x10) + -8)); /* WARNING: Subroutine does not return */ __cxa_throw(uVar3,&out_of_range::typeinfo,exception::~exception); } } return 1; }
19,452
spdlog::details::backtracer::backtracer(spdlog::details::backtracer&&)
AlayaLite/build_O3/_deps/spdlog-src/include/spdlog/details/backtracer-inl.h
SPDLOG_INLINE backtracer::backtracer(backtracer &&other) SPDLOG_NOEXCEPT { std::lock_guard<std::mutex> lock(other.mutex_); enabled_ = other.enabled(); messages_ = std::move(other.messages_); }
O3
c
spdlog::details::backtracer::backtracer(spdlog::details::backtracer&&): pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 xorps %xmm0, %xmm0 movups %xmm0, 0x50(%rdi) movups %xmm0, 0x40(%rdi) movups %xmm0, 0x30(%rdi) movq $0x0, 0x60(%rdi) movups %xmm0, (%rdi) movups %xmm0, 0x10(%rdi) movups %xmm0, 0x19(%rdi) movq %rsi, %rdi callq 0x11350 testl %eax, %eax jne 0x2c560 movb 0x28(%rbx), %al andb $0x1, %al xchgb %al, 0x28(%r14) addq $0x30, %r14 leaq 0x30(%rbx), %rsi movq %r14, %rdi callq 0x33046 movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x112d0 movl %eax, %edi callq 0x114f0 movq %rax, %rdi callq 0x18a8f nop
_ZN6spdlog7details10backtracerC2EOS1_: push r14 push rbx push rax mov rbx, rsi mov r14, rdi xorps xmm0, xmm0 movups xmmword ptr [rdi+50h], xmm0 movups xmmword ptr [rdi+40h], xmm0 movups xmmword ptr [rdi+30h], xmm0 mov qword ptr [rdi+60h], 0 movups xmmword ptr [rdi], xmm0 movups xmmword ptr [rdi+10h], xmm0 movups xmmword ptr [rdi+19h], xmm0 mov rdi, rsi call _pthread_mutex_lock test eax, eax jnz short loc_2C560 mov al, [rbx+28h] and al, 1 xchg al, [r14+28h] add r14, 30h ; '0' lea rsi, [rbx+30h] mov rdi, r14 call _ZN6spdlog7details10circular_qINS0_14log_msg_bufferEE13copy_moveableEOS3_; spdlog::details::circular_q<spdlog::details::log_msg_buffer>::copy_moveable(spdlog::details::circular_q<spdlog::details::log_msg_buffer>&&) mov rdi, rbx add rsp, 8 pop rbx pop r14 jmp _pthread_mutex_unlock loc_2C560: mov edi, eax; int call __ZSt20__throw_system_errori; std::__throw_system_error(int) mov rdi, rax call __clang_call_terminate
long long spdlog::details::backtracer::backtracer(long long a1, long long a2) { int v2; // eax *(_OWORD *)(a1 + 80) = 0LL; *(_OWORD *)(a1 + 64) = 0LL; *(_OWORD *)(a1 + 48) = 0LL; *(_QWORD *)(a1 + 96) = 0LL; *(_OWORD *)a1 = 0LL; *(_OWORD *)(a1 + 16) = 0LL; *(_OWORD *)(a1 + 25) = 0LL; v2 = pthread_mutex_lock(a2); if ( v2 ) std::__throw_system_error(v2); *(_BYTE *)(a1 + 40) = *(_BYTE *)(a2 + 40) & 1; spdlog::details::circular_q<spdlog::details::log_msg_buffer>::copy_moveable(a1 + 48, a2 + 48); return pthread_mutex_unlock(a2); }
backtracer: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RSI MOV R14,RDI XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI + 0x50],XMM0 MOVUPS xmmword ptr [RDI + 0x40],XMM0 MOVUPS xmmword ptr [RDI + 0x30],XMM0 MOV qword ptr [RDI + 0x60],0x0 MOVUPS xmmword ptr [RDI],XMM0 MOVUPS xmmword ptr [RDI + 0x10],XMM0 MOVUPS xmmword ptr [RDI + 0x19],XMM0 MOV RDI,RSI CALL 0x00111350 TEST EAX,EAX JNZ 0x0012c560 MOV AL,byte ptr [RBX + 0x28] AND AL,0x1 XCHG byte ptr [R14 + 0x28],AL ADD R14,0x30 LEA RSI,[RBX + 0x30] MOV RDI,R14 CALL 0x00133046 MOV RDI,RBX ADD RSP,0x8 POP RBX POP R14 JMP 0x001112d0 LAB_0012c560: MOV EDI,EAX CALL 0x001114f0
/* spdlog::details::backtracer::backtracer(spdlog::details::backtracer&&) */ void __thiscall spdlog::details::backtracer::backtracer(backtracer *this,backtracer *param_1) { int iVar1; *(int8 *)(this + 0x50) = 0; *(int8 *)(this + 0x58) = 0; *(int8 *)(this + 0x40) = 0; *(int8 *)(this + 0x48) = 0; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x60) = 0; *(int8 *)this = 0; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)(this + 0x19) = 0; *(int8 *)(this + 0x21) = 0; iVar1 = pthread_mutex_lock((pthread_mutex_t *)param_1); if (iVar1 == 0) { LOCK(); this[0x28] = (backtracer)((byte)param_1[0x28] & 1); UNLOCK(); circular_q<spdlog::details::log_msg_buffer>::copy_moveable ((circular_q<spdlog::details::log_msg_buffer> *)(this + 0x30), (circular_q *)(param_1 + 0x30)); pthread_mutex_unlock((pthread_mutex_t *)param_1); return; } /* try { // try from 0012c560 to 0012c566 has its CatchHandler @ 0012c567 */ /* WARNING: Subroutine does not return */ std::__throw_system_error(iVar1); }
19,453
gguf_set_val_u32
monkey531[P]llama/ggml/src/gguf.cpp
void gguf_set_val_u32(struct gguf_context * ctx, const char * key, uint32_t val) { gguf_check_reserved_keys(key, val); gguf_remove_key(ctx, key); ctx->kv.emplace_back(key, val); }
O3
cpp
gguf_set_val_u32: pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x38, %rsp movl %edx, %ebp movq %rsi, %r14 movq %rdi, %rbx movq %rsi, 0x10(%rsp) movl %edx, 0xc(%rsp) leaq 0x18(%rsp), %r15 leaq 0xb(%rsp), %rdx movq %r15, %rdi callq 0x17cf0 leaq 0x1c02a(%rip), %rsi # 0x59d41 movq %r15, %rdi callq 0x163e0 testl %eax, %eax jne 0x3dd58 movl %ebp, %eax shrl %eax andl $0x55555555, %eax # imm = 0x55555555 subl %eax, %ebp movl $0x33333333, %eax # imm = 0x33333333 movl %ebp, %ecx andl %eax, %ecx shrl $0x2, %ebp andl %eax, %ebp addl %ecx, %ebp movl %ebp, %eax shrl $0x4, %eax addl %ebp, %eax andl $0xf0f0f0f, %eax # imm = 0xF0F0F0F imull $0x1010101, %eax, %eax # imm = 0x1010101 shrl $0x18, %eax cmpl $0x1, %eax jne 0x3dd9f leaq 0x28(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x3dd73 movq 0x28(%rsp), %rsi incq %rsi callq 0x17070 movq %rbx, %rdi movq %r14, %rsi callq 0x17650 addq $0x8, %rbx leaq 0x10(%rsp), %rsi leaq 0xc(%rsp), %rdx movq %rbx, %rdi callq 0x169e0 addq $0x38, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq leaq 0x1bf2f(%rip), %rdi # 0x59cd5 leaq 0xc8b0(%rip), %rdx # 0x4a65d leaq 0x1c7a4(%rip), %rcx # 0x5a558 movl $0x3a5, %esi # imm = 0x3A5 xorl %eax, %eax callq 0x17c60 movq %rax, %rbx leaq 0x28(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x3ddde movq 0x28(%rsp), %rsi incq %rsi callq 0x17070 movq %rbx, %rdi callq 0x17e20
gguf_set_val_u32: push rbp push r15 push r14 push rbx sub rsp, 38h mov ebp, edx mov r14, rsi mov rbx, rdi mov [rsp+58h+var_48], rsi mov [rsp+58h+var_4C], edx lea r15, [rsp+58h+var_40] lea rdx, [rsp+58h+var_4D] mov rdi, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rsi, aGeneralAlignme; "general.alignment" mov rdi, r15 call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jnz short loc_3DD58 mov eax, ebp shr eax, 1 and eax, 55555555h sub ebp, eax mov eax, 33333333h mov ecx, ebp and ecx, eax shr ebp, 2 and ebp, eax add ebp, ecx mov eax, ebp shr eax, 4 add eax, ebp and eax, 0F0F0F0Fh imul eax, 1010101h shr eax, 18h cmp eax, 1 jnz short loc_3DD9F loc_3DD58: lea rax, [rsp+58h+var_30] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_3DD73 mov rsi, [rsp+58h+var_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3DD73: mov rdi, rbx mov rsi, r14 call _gguf_remove_key add rbx, 8 lea rsi, [rsp+58h+var_48] lea rdx, [rsp+58h+var_4C] mov rdi, rbx call __ZNSt6vectorI7gguf_kvSaIS0_EE12emplace_backIJRPKcRjEEERS0_DpOT_; std::vector<gguf_kv>::emplace_back<char const*&,uint &>(char const*&,uint &) add rsp, 38h pop rbx pop r14 pop r15 pop rbp retn loc_3DD9F: lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aVal0ValVal10Gg; "val > 0 && (val & (val - 1)) == 0 && GG"... mov esi, 3A5h xor eax, eax call _ggml_abort mov rbx, rax lea rax, [rsp+58h+var_30] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_3DDDE mov rsi, [rsp+58h+var_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3DDDE: mov rdi, rbx call __Unwind_Resume
long long gguf_set_val_u32(long long a1, long long a2, unsigned int a3) { int v4; // r8d int v5; // r9d unsigned int v6; // ebp char v8; // [rsp+Bh] [rbp-4Dh] BYREF unsigned int v9; // [rsp+Ch] [rbp-4Ch] BYREF long long v10; // [rsp+10h] [rbp-48h] BYREF void *v11[2]; // [rsp+18h] [rbp-40h] BYREF long long v12; // [rsp+28h] [rbp-30h] BYREF v10 = a2; v9 = a3; std::string::basic_string<std::allocator<char>>(v11, a2, &v8); if ( !(unsigned int)std::string::compare(v11, "general.alignment") ) { v6 = ((a3 - ((a3 >> 1) & 0x55555555)) & 0x33333333) + (((a3 - ((a3 >> 1) & 0x55555555)) >> 2) & 0x33333333); if ( (16843009 * ((v6 + (v6 >> 4)) & 0xF0F0F0F)) >> 24 != 1 ) ggml_abort( (unsigned int)"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/ggml/src/gguf.cpp", 933, (unsigned int)"GGML_ASSERT(%s) failed", (unsigned int)"val > 0 && (val & (val - 1)) == 0 && GGUF_KEY_GENERAL_ALIGNMENT \" must be power of 2\"", v4, v5); } if ( v11[0] != &v12 ) operator delete(v11[0], v12 + 1); gguf_remove_key(a1, a2); return std::vector<gguf_kv>::emplace_back<char const*&,unsigned int &>(a1 + 8, &v10, &v9); }
gguf_set_val_u32: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x38 MOV EBP,EDX MOV R14,RSI MOV RBX,RDI MOV qword ptr [RSP + 0x10],RSI MOV dword ptr [RSP + 0xc],EDX LEA R15,[RSP + 0x18] LEA RDX,[RSP + 0xb] MOV RDI,R15 CALL 0x00117cf0 LEA RSI,[0x159d41] MOV RDI,R15 CALL 0x001163e0 TEST EAX,EAX JNZ 0x0013dd58 MOV EAX,EBP SHR EAX,0x1 AND EAX,0x55555555 SUB EBP,EAX MOV EAX,0x33333333 MOV ECX,EBP AND ECX,EAX SHR EBP,0x2 AND EBP,EAX ADD EBP,ECX MOV EAX,EBP SHR EAX,0x4 ADD EAX,EBP AND EAX,0xf0f0f0f IMUL EAX,EAX,0x1010101 SHR EAX,0x18 CMP EAX,0x1 JNZ 0x0013dd9f LAB_0013dd58: LEA RAX,[RSP + 0x28] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0013dd73 MOV RSI,qword ptr [RSP + 0x28] INC RSI CALL 0x00117070 LAB_0013dd73: MOV RDI,RBX MOV RSI,R14 CALL 0x00117650 ADD RBX,0x8 LEA RSI,[RSP + 0x10] LEA RDX,[RSP + 0xc] MOV RDI,RBX CALL 0x001169e0 ADD RSP,0x38 POP RBX POP R14 POP R15 POP RBP RET LAB_0013dd9f: LEA RDI,[0x159cd5] LEA RDX,[0x14a65d] LEA RCX,[0x15a558] MOV ESI,0x3a5 XOR EAX,EAX CALL 0x00117c60
void gguf_set_val_u32(long param_1,char *param_2,uint param_3) { int iVar1; uint uVar2; allocator local_4d; uint local_4c; char *local_48; long *local_40 [2]; long local_30 [2]; local_4c = param_3; local_48 = param_2; std::__cxx11::string::string<std::allocator<char>>((string *)local_40,param_2,&local_4d); iVar1 = std::__cxx11::string::compare((char *)local_40); if ((iVar1 == 0) && (param_3 = param_3 - (param_3 >> 1 & 0x55555555), uVar2 = (param_3 >> 2 & 0x33333333) + (param_3 & 0x33333333), ((uVar2 >> 4) + uVar2 & 0xf0f0f0f) * 0x1010101 >> 0x18 != 1)) { /* try { // try from 0013dd9f to 0013ddbf has its CatchHandler @ 0013ddc0 */ /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/ggml/src/gguf.cpp",0x3a5, "GGML_ASSERT(%s) failed", "val > 0 && (val & (val - 1)) == 0 && GGUF_KEY_GENERAL_ALIGNMENT \" must be power of 2\"" ); } if (local_40[0] != local_30) { operator_delete(local_40[0],local_30[0] + 1); } gguf_remove_key(param_1,param_2); std::vector<gguf_kv,std::allocator<gguf_kv>>::emplace_back<char_const*&,unsigned_int&> ((vector<gguf_kv,std::allocator<gguf_kv>> *)(param_1 + 8),&local_48,&local_4c); return; }
19,454
GetHostName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*)
ng-log[P]ng-log/src/logging.cc
static void GetHostName(string* hostname) { #if defined(HAVE_SYS_UTSNAME_H) struct utsname buf; if (uname(&buf) < 0) { // ensure null termination on failure *buf.nodename = '\0'; } *hostname = buf.nodename; #elif defined(NGLOG_OS_WINDOWS) char buf[MAX_COMPUTERNAME_LENGTH + 1]; DWORD len = MAX_COMPUTERNAME_LENGTH + 1; if (GetComputerNameA(buf, &len)) { *hostname = buf; } else { hostname->clear(); } #else # warning There is no way to retrieve the host name. *hostname = "(unknown)"; #endif }
O0
cpp
GetHostName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*): pushq %rbp movq %rsp, %rbp subq $0x190, %rsp # imm = 0x190 movq %rdi, -0x8(%rbp) leaq -0x18e(%rbp), %rdi callq 0x90c0 cmpl $0x0, %eax jge 0x109e7 movb $0x0, -0x14d(%rbp) leaq -0x18e(%rbp), %rsi addq $0x41, %rsi movq -0x8(%rbp), %rdi callq 0x99e0 addq $0x190, %rsp # imm = 0x190 popq %rbp retq nopw %cs:(%rax,%rax)
_ZL11GetHostNamePNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push rbp mov rbp, rsp sub rsp, 190h mov [rbp+var_8], rdi lea rdi, [rbp+var_18E] call _uname cmp eax, 0 jge short loc_109E7 mov [rbp+var_14D], 0 loc_109E7: lea rsi, [rbp+var_18E] add rsi, 41h ; 'A' mov rdi, [rbp+var_8] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc; std::string::operator=(char const*) add rsp, 190h pop rbp retn
long long GetHostName(long long a1) { _BYTE v2[65]; // [rsp+2h] [rbp-18Eh] BYREF _BYTE v3[325]; // [rsp+43h] [rbp-14Dh] BYREF long long v4; // [rsp+188h] [rbp-8h] v4 = a1; if ( (int)uname(v2) < 0 ) v3[0] = 0; return std::string::operator=(v4, v3); }
GetHostName: PUSH RBP MOV RBP,RSP SUB RSP,0x190 MOV qword ptr [RBP + -0x8],RDI LEA RDI,[RBP + -0x18e] CALL 0x001090c0 CMP EAX,0x0 JGE 0x001109e7 MOV byte ptr [RBP + -0x14d],0x0 LAB_001109e7: LEA RSI,[RBP + -0x18e] ADD RSI,0x41 MOV RDI,qword ptr [RBP + -0x8] CALL 0x001099e0 ADD RSP,0x190 POP RBP RET
/* GetHostName(std::__cxx11::string*) */ void GetHostName(string *param_1) { int iVar1; utsname local_196; string *local_10; local_10 = param_1; iVar1 = uname(&local_196); if (iVar1 < 0) { local_196.nodename[0] = '\0'; } std::__cxx11::string::operator=(local_10,local_196.nodename); return; }
19,455
protocol::encode(protocol::EntityVelocity const&, unsigned int)
untodesu[P]voxelius/game/shared/protocol.cc
ENetPacket *protocol::encode(const protocol::EntityVelocity &packet, enet_uint32 flags) { write_buffer.reset(); write_buffer.write_UI16(protocol::EntityVelocity::ID); write_buffer.write_UI64(static_cast<std::uint64_t>(packet.entity)); write_buffer.write_FP32(packet.value.x); write_buffer.write_FP32(packet.value.y); write_buffer.write_FP32(packet.value.z); return write_buffer.to_packet(flags); }
O0
cpp
protocol::encode(protocol::EntityVelocity const&, unsigned int): pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) leaq 0x3b10da(%rip), %rdi # 0x510ba0 callq 0x27a920 leaq 0x3b10ce(%rip), %rdi # 0x510ba0 movl $0x8, %esi callq 0x27a970 movq -0x8(%rbp), %rax movl 0x10(%rax), %eax movl %eax, %esi leaq 0x3b10b4(%rip), %rdi # 0x510ba0 callq 0x27aa90 movq -0x8(%rbp), %rax movss 0x14(%rax), %xmm0 leaq 0x3b109f(%rip), %rdi # 0x510ba0 callq 0x1619c0 movq -0x8(%rbp), %rax movss 0x18(%rax), %xmm0 leaq 0x3b108a(%rip), %rdi # 0x510ba0 callq 0x1619c0 movq -0x8(%rbp), %rax movss 0x1c(%rax), %xmm0 leaq 0x3b1075(%rip), %rdi # 0x510ba0 callq 0x1619c0 movl -0xc(%rbp), %esi leaq 0x3b1066(%rip), %rdi # 0x510ba0 callq 0x27ad80 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_ZN8protocol6encodeERKNS_14EntityVelocityEj: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov [rbp+var_C], esi lea rdi, _ZL12write_buffer; this call _ZN11WriteBuffer5resetEv; WriteBuffer::reset(void) lea rdi, _ZL12write_buffer; this mov esi, 8; unsigned __int16 call _ZN11WriteBuffer10write_UI16Et; WriteBuffer::write_UI16(ushort) mov rax, [rbp+var_8] mov eax, [rax+10h] mov esi, eax; unsigned __int64 lea rdi, _ZL12write_buffer; this call _ZN11WriteBuffer10write_UI64Em; WriteBuffer::write_UI64(ulong) mov rax, [rbp+var_8] movss xmm0, dword ptr [rax+14h]; float lea rdi, _ZL12write_buffer; this call _ZN11WriteBuffer10write_FP32Ef; WriteBuffer::write_FP32(float) mov rax, [rbp+var_8] movss xmm0, dword ptr [rax+18h]; float lea rdi, _ZL12write_buffer; this call _ZN11WriteBuffer10write_FP32Ef; WriteBuffer::write_FP32(float) mov rax, [rbp+var_8] movss xmm0, dword ptr [rax+1Ch]; float lea rdi, _ZL12write_buffer; this call _ZN11WriteBuffer10write_FP32Ef; WriteBuffer::write_FP32(float) mov esi, [rbp+var_C]; unsigned int lea rdi, _ZL12write_buffer; this call _ZNK11WriteBuffer9to_packetEj; WriteBuffer::to_packet(uint) add rsp, 10h pop rbp retn
long long protocol::encode(protocol *this, const protocol::EntityVelocity *a2) { WriteBuffer::reset((WriteBuffer *)&write_buffer); WriteBuffer::write_UI16((WriteBuffer *)&write_buffer, 8u); WriteBuffer::write_UI64((WriteBuffer *)&write_buffer, *((unsigned int *)this + 4)); WriteBuffer::write_FP32((WriteBuffer *)&write_buffer, *((float *)this + 5)); WriteBuffer::write_FP32((WriteBuffer *)&write_buffer, *((float *)this + 6)); WriteBuffer::write_FP32((WriteBuffer *)&write_buffer, *((float *)this + 7)); return WriteBuffer::to_packet((WriteBuffer *)&write_buffer, (unsigned int)a2); }
19,456
protocol::encode(protocol::EntityVelocity const&, unsigned int)
untodesu[P]voxelius/game/shared/protocol.cc
ENetPacket *protocol::encode(const protocol::EntityVelocity &packet, enet_uint32 flags) { write_buffer.reset(); write_buffer.write_UI16(protocol::EntityVelocity::ID); write_buffer.write_UI64(static_cast<std::uint64_t>(packet.entity)); write_buffer.write_FP32(packet.value.x); write_buffer.write_FP32(packet.value.y); write_buffer.write_FP32(packet.value.z); return write_buffer.to_packet(flags); }
O1
cpp
protocol::encode(protocol::EntityVelocity const&, unsigned int): pushq %r15 pushq %r14 pushq %rbx movl %esi, %ebx movq %rdi, %r15 leaq 0x1e5225(%rip), %r14 # 0x260960 movq %r14, %rdi callq 0x12ed02 movq %r14, %rdi movl $0x8, %esi callq 0x12ed2a movl 0x10(%r15), %esi movq %r14, %rdi callq 0x12edbe movl 0x14(%r15), %esi movq %r14, %rdi callq 0x12ed60 movl 0x18(%r15), %esi movq %r14, %rdi callq 0x12ed60 movl 0x1c(%r15), %esi movq %r14, %rdi callq 0x12ed60 movq %r14, %rdi movl %ebx, %esi popq %rbx popq %r14 popq %r15 jmp 0x12ef3a
_ZN8protocol6encodeERKNS_14EntityVelocityEj: push r15 push r14 push rbx mov ebx, esi mov r15, rdi lea r14, _ZL12write_buffer; write_buffer mov rdi, r14; this call _ZN11WriteBuffer5resetEv; WriteBuffer::reset(void) mov rdi, r14; this mov esi, 8; unsigned __int16 call _ZN11WriteBuffer10write_UI16Et; WriteBuffer::write_UI16(ushort) mov esi, [r15+10h]; unsigned __int64 mov rdi, r14; this call _ZN11WriteBuffer10write_UI64Em; WriteBuffer::write_UI64(ulong) mov esi, [r15+14h]; unsigned int mov rdi, r14; this call _ZN11WriteBuffer10write_UI32Ej; WriteBuffer::write_UI32(uint) mov esi, [r15+18h]; unsigned int mov rdi, r14; this call _ZN11WriteBuffer10write_UI32Ej; WriteBuffer::write_UI32(uint) mov esi, [r15+1Ch]; unsigned int mov rdi, r14; this call _ZN11WriteBuffer10write_UI32Ej; WriteBuffer::write_UI32(uint) mov rdi, r14; this mov esi, ebx; unsigned int pop rbx pop r14 pop r15 jmp _ZNK11WriteBuffer9to_packetEj; WriteBuffer::to_packet(uint)
long long protocol::encode(protocol *this, const protocol::EntityVelocity *a2) { WriteBuffer::reset((WriteBuffer *)&write_buffer); WriteBuffer::write_UI16((WriteBuffer *)&write_buffer, 8u); WriteBuffer::write_UI64((WriteBuffer *)&write_buffer, *((unsigned int *)this + 4)); WriteBuffer::write_UI32((WriteBuffer *)&write_buffer, *((_DWORD *)this + 5)); WriteBuffer::write_UI32((WriteBuffer *)&write_buffer, *((_DWORD *)this + 6)); WriteBuffer::write_UI32((WriteBuffer *)&write_buffer, *((_DWORD *)this + 7)); return WriteBuffer::to_packet((WriteBuffer *)&write_buffer, (unsigned int)a2); }
encode: PUSH R15 PUSH R14 PUSH RBX MOV EBX,ESI MOV R15,RDI LEA R14,[0x360960] MOV RDI,R14 CALL 0x0022ed02 MOV RDI,R14 MOV ESI,0x8 CALL 0x0022ed2a MOV ESI,dword ptr [R15 + 0x10] MOV RDI,R14 CALL 0x0022edbe MOV ESI,dword ptr [R15 + 0x14] MOV RDI,R14 CALL 0x0022ed60 MOV ESI,dword ptr [R15 + 0x18] MOV RDI,R14 CALL 0x0022ed60 MOV ESI,dword ptr [R15 + 0x1c] MOV RDI,R14 CALL 0x0022ed60 MOV RDI,R14 MOV ESI,EBX POP RBX POP R14 POP R15 JMP 0x0022ef3a
/* protocol::encode(protocol::EntityVelocity const&, unsigned int) */ void protocol::encode(EntityVelocity *param_1,uint param_2) { WriteBuffer::reset((WriteBuffer *)write_buffer); WriteBuffer::write_UI16(0x960); WriteBuffer::write_UI64((WriteBuffer *)write_buffer,(ulong)*(uint *)(param_1 + 0x10)); WriteBuffer::write_UI32(0x360960); WriteBuffer::write_UI32(0x360960); WriteBuffer::write_UI32(0x360960); WriteBuffer::to_packet((WriteBuffer *)write_buffer,param_2); return; }
19,457
my_instr_bin
eloqsql/strings/ctype-bin.c
static uint my_instr_bin(CHARSET_INFO *cs __attribute__((unused)), const char *b, size_t b_length, const char *s, size_t s_length, my_match_t *match, uint nmatch) { register const uchar *str, *search, *end, *search_end; if (s_length <= b_length) { if (!s_length) { if (nmatch) { match->beg= 0; match->end= 0; match->mb_len= 0; } return 1; /* Empty string is always found */ } str= (const uchar*) b; search= (const uchar*) s; end= (const uchar*) b+b_length-s_length+1; search_end= (const uchar*) s + s_length; skip: while (str != end) { if ( (*str++) == (*search)) { register const uchar *i,*j; i= str; j= search+1; while (j != search_end) if ((*i++) != (*j++)) goto skip; if (nmatch > 0) { match[0].beg= 0; match[0].end= (uint) (str- (const uchar*)b-1); match[0].mb_len= match[0].end; if (nmatch > 1) { match[1].beg= match[0].end; match[1].end= (uint)(match[0].end+s_length); match[1].mb_len= match[1].end-match[1].beg; } } return 2; } } } return 0; }
O0
c
my_instr_bin: pushq %rbp movq %rsp, %rbp movl 0x10(%rbp), %eax movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movq %r9, -0x38(%rbp) movq -0x30(%rbp), %rax cmpq -0x20(%rbp), %rax ja 0x4762b cmpq $0x0, -0x30(%rbp) jne 0x474f6 cmpl $0x0, 0x10(%rbp) je 0x474ea movq -0x38(%rbp), %rax movl $0x0, (%rax) movq -0x38(%rbp), %rax movl $0x0, 0x4(%rax) movq -0x38(%rbp), %rax movl $0x0, 0x8(%rax) movl $0x1, -0x4(%rbp) jmp 0x47632 movq -0x18(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x28(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x18(%rbp), %rax addq -0x20(%rbp), %rax xorl %ecx, %ecx subq -0x30(%rbp), %rcx addq %rcx, %rax addq $0x1, %rax movq %rax, -0x50(%rbp) movq -0x28(%rbp), %rax addq -0x30(%rbp), %rax movq %rax, -0x58(%rbp) jmp 0x4752d movq -0x40(%rbp), %rax cmpq -0x50(%rbp), %rax je 0x47629 movq -0x40(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x40(%rbp) movzbl (%rax), %eax movq -0x48(%rbp), %rcx movzbl (%rcx), %ecx cmpl %ecx, %eax jne 0x47624 movq -0x40(%rbp), %rax movq %rax, -0x60(%rbp) movq -0x48(%rbp), %rax addq $0x1, %rax movq %rax, -0x68(%rbp) movq -0x68(%rbp), %rax cmpq -0x58(%rbp), %rax je 0x475a6 movq -0x60(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x60(%rbp) movzbl (%rax), %eax movq -0x68(%rbp), %rcx movq %rcx, %rdx addq $0x1, %rdx movq %rdx, -0x68(%rbp) movzbl (%rcx), %ecx cmpl %ecx, %eax je 0x475a4 jmp 0x4752b jmp 0x47570 cmpl $0x0, 0x10(%rbp) jbe 0x4761b movq -0x38(%rbp), %rax movl $0x0, (%rax) movq -0x40(%rbp), %rax movq -0x18(%rbp), %rcx subq %rcx, %rax subq $0x1, %rax movl %eax, %ecx movq -0x38(%rbp), %rax movl %ecx, 0x4(%rax) movq -0x38(%rbp), %rax movl 0x4(%rax), %ecx movq -0x38(%rbp), %rax movl %ecx, 0x8(%rax) cmpl $0x1, 0x10(%rbp) jbe 0x47619 movq -0x38(%rbp), %rax movl 0x4(%rax), %ecx movq -0x38(%rbp), %rax movl %ecx, 0xc(%rax) movq -0x38(%rbp), %rax movl 0x4(%rax), %eax addq -0x30(%rbp), %rax movl %eax, %ecx movq -0x38(%rbp), %rax movl %ecx, 0x10(%rax) movq -0x38(%rbp), %rax movl 0x10(%rax), %ecx movq -0x38(%rbp), %rax subl 0xc(%rax), %ecx movq -0x38(%rbp), %rax movl %ecx, 0x14(%rax) jmp 0x4761b movl $0x2, -0x4(%rbp) jmp 0x47632 jmp 0x4752d jmp 0x4762b movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopw (%rax,%rax)
my_instr_bin: push rbp mov rbp, rsp mov eax, [rbp+arg_0] mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov [rbp+var_30], r8 mov [rbp+var_38], r9 mov rax, [rbp+var_30] cmp rax, [rbp+var_20] ja loc_4762B cmp [rbp+var_30], 0 jnz short loc_474F6 cmp [rbp+arg_0], 0 jz short loc_474EA mov rax, [rbp+var_38] mov dword ptr [rax], 0 mov rax, [rbp+var_38] mov dword ptr [rax+4], 0 mov rax, [rbp+var_38] mov dword ptr [rax+8], 0 loc_474EA: mov [rbp+var_4], 1 jmp loc_47632 loc_474F6: mov rax, [rbp+var_18] mov [rbp+var_40], rax mov rax, [rbp+var_28] mov [rbp+var_48], rax mov rax, [rbp+var_18] add rax, [rbp+var_20] xor ecx, ecx sub rcx, [rbp+var_30] add rax, rcx add rax, 1 mov [rbp+var_50], rax mov rax, [rbp+var_28] add rax, [rbp+var_30] mov [rbp+var_58], rax loc_4752B: jmp short $+2 loc_4752D: mov rax, [rbp+var_40] cmp rax, [rbp+var_50] jz loc_47629 mov rax, [rbp+var_40] mov rcx, rax add rcx, 1 mov [rbp+var_40], rcx movzx eax, byte ptr [rax] mov rcx, [rbp+var_48] movzx ecx, byte ptr [rcx] cmp eax, ecx jnz loc_47624 mov rax, [rbp+var_40] mov [rbp+var_60], rax mov rax, [rbp+var_48] add rax, 1 mov [rbp+var_68], rax loc_47570: mov rax, [rbp+var_68] cmp rax, [rbp+var_58] jz short loc_475A6 mov rax, [rbp+var_60] mov rcx, rax add rcx, 1 mov [rbp+var_60], rcx movzx eax, byte ptr [rax] mov rcx, [rbp+var_68] mov rdx, rcx add rdx, 1 mov [rbp+var_68], rdx movzx ecx, byte ptr [rcx] cmp eax, ecx jz short loc_475A4 jmp short loc_4752B loc_475A4: jmp short loc_47570 loc_475A6: cmp [rbp+arg_0], 0 jbe short loc_4761B mov rax, [rbp+var_38] mov dword ptr [rax], 0 mov rax, [rbp+var_40] mov rcx, [rbp+var_18] sub rax, rcx sub rax, 1 mov ecx, eax mov rax, [rbp+var_38] mov [rax+4], ecx mov rax, [rbp+var_38] mov ecx, [rax+4] mov rax, [rbp+var_38] mov [rax+8], ecx cmp [rbp+arg_0], 1 jbe short loc_47619 mov rax, [rbp+var_38] mov ecx, [rax+4] mov rax, [rbp+var_38] mov [rax+0Ch], ecx mov rax, [rbp+var_38] mov eax, [rax+4] add rax, [rbp+var_30] mov ecx, eax mov rax, [rbp+var_38] mov [rax+10h], ecx mov rax, [rbp+var_38] mov ecx, [rax+10h] mov rax, [rbp+var_38] sub ecx, [rax+0Ch] mov rax, [rbp+var_38] mov [rax+14h], ecx loc_47619: jmp short $+2 loc_4761B: mov [rbp+var_4], 2 jmp short loc_47632 loc_47624: jmp loc_4752D loc_47629: jmp short $+2 loc_4762B: mov [rbp+var_4], 0 loc_47632: mov eax, [rbp+var_4] pop rbp retn
long long my_instr_bin( long long a1, unsigned __int8 *a2, unsigned long long a3, unsigned __int8 *a4, unsigned long long a5, _DWORD *a6, unsigned int a7) { unsigned __int8 *v7; // rax unsigned __int8 *v8; // rax unsigned __int8 *v9; // rcx unsigned __int8 *v11; // [rsp+0h] [rbp-68h] unsigned __int8 *v12; // [rsp+8h] [rbp-60h] unsigned __int8 *v13; // [rsp+10h] [rbp-58h] unsigned __int8 *v14; // [rsp+28h] [rbp-40h] if ( a5 > a3 ) return 0; if ( a5 ) { v14 = a2; v13 = &a4[a5]; LABEL_7: while ( v14 != &a2[a3 - a5 + 1] ) { v7 = v14++; if ( *v7 == *a4 ) { v12 = v14; v11 = a4 + 1; while ( v11 != v13 ) { v8 = v12++; v9 = v11++; if ( *v8 != *v9 ) goto LABEL_7; } if ( a7 ) { *a6 = 0; a6[1] = (_DWORD)v14 - (_DWORD)a2 - 1; a6[2] = a6[1]; if ( a7 > 1 ) { a6[3] = a6[1]; a6[4] = a5 + a6[1]; a6[5] = a6[4] - a6[3]; } } return 2; } } return 0; } if ( a7 ) { *a6 = 0; a6[1] = 0; a6[2] = 0; } return 1; }
my_instr_bin: PUSH RBP MOV RBP,RSP MOV EAX,dword ptr [RBP + 0x10] MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV qword ptr [RBP + -0x30],R8 MOV qword ptr [RBP + -0x38],R9 MOV RAX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RBP + -0x20] JA 0x0014762b CMP qword ptr [RBP + -0x30],0x0 JNZ 0x001474f6 CMP dword ptr [RBP + 0x10],0x0 JZ 0x001474ea MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x4],0x0 MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x8],0x0 LAB_001474ea: MOV dword ptr [RBP + -0x4],0x1 JMP 0x00147632 LAB_001474f6: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x18] ADD RAX,qword ptr [RBP + -0x20] XOR ECX,ECX SUB RCX,qword ptr [RBP + -0x30] ADD RAX,RCX ADD RAX,0x1 MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x58],RAX LAB_0014752b: JMP 0x0014752d LAB_0014752d: MOV RAX,qword ptr [RBP + -0x40] CMP RAX,qword ptr [RBP + -0x50] JZ 0x00147629 MOV RAX,qword ptr [RBP + -0x40] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x40],RCX MOVZX EAX,byte ptr [RAX] MOV RCX,qword ptr [RBP + -0x48] MOVZX ECX,byte ptr [RCX] CMP EAX,ECX JNZ 0x00147624 MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x60],RAX MOV RAX,qword ptr [RBP + -0x48] ADD RAX,0x1 MOV qword ptr [RBP + -0x68],RAX LAB_00147570: MOV RAX,qword ptr [RBP + -0x68] CMP RAX,qword ptr [RBP + -0x58] JZ 0x001475a6 MOV RAX,qword ptr [RBP + -0x60] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x60],RCX MOVZX EAX,byte ptr [RAX] MOV RCX,qword ptr [RBP + -0x68] MOV RDX,RCX ADD RDX,0x1 MOV qword ptr [RBP + -0x68],RDX MOVZX ECX,byte ptr [RCX] CMP EAX,ECX JZ 0x001475a4 JMP 0x0014752b LAB_001475a4: JMP 0x00147570 LAB_001475a6: CMP dword ptr [RBP + 0x10],0x0 JBE 0x0014761b MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x40] MOV RCX,qword ptr [RBP + -0x18] SUB RAX,RCX SUB RAX,0x1 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x4],ECX MOV RAX,qword ptr [RBP + -0x38] MOV ECX,dword ptr [RAX + 0x4] MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x8],ECX CMP dword ptr [RBP + 0x10],0x1 JBE 0x00147619 MOV RAX,qword ptr [RBP + -0x38] MOV ECX,dword ptr [RAX + 0x4] MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0xc],ECX MOV RAX,qword ptr [RBP + -0x38] MOV EAX,dword ptr [RAX + 0x4] ADD RAX,qword ptr [RBP + -0x30] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x10],ECX MOV RAX,qword ptr [RBP + -0x38] MOV ECX,dword ptr [RAX + 0x10] MOV RAX,qword ptr [RBP + -0x38] SUB ECX,dword ptr [RAX + 0xc] MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x14],ECX LAB_00147619: JMP 0x0014761b LAB_0014761b: MOV dword ptr [RBP + -0x4],0x2 JMP 0x00147632 LAB_00147624: JMP 0x0014752d LAB_00147629: JMP 0x0014762b LAB_0014762b: MOV dword ptr [RBP + -0x4],0x0 LAB_00147632: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int4 my_instr_bin(int8 param_1,char *param_2,ulong param_3,char *param_4,ulong param_5, int4 *param_6,uint param_7) { char cVar1; char cVar2; char *pcVar3; char *local_70; char *local_68; char *local_48; if (param_5 <= param_3) { if (param_5 == 0) { if (param_7 != 0) { *param_6 = 0; param_6[1] = 0; param_6[2] = 0; } return 1; } local_48 = param_2; while (local_48 != param_2 + (param_3 - param_5) + 1) { pcVar3 = local_48 + 1; cVar1 = *local_48; local_48 = pcVar3; if (cVar1 == *param_4) { local_70 = param_4 + 1; local_68 = pcVar3; do { if (local_70 == param_4 + param_5) { if (param_7 != 0) { *param_6 = 0; param_6[1] = ((int)pcVar3 - (int)param_2) + -1; param_6[2] = param_6[1]; if (1 < param_7) { param_6[3] = param_6[1]; param_6[4] = param_6[1] + (int)param_5; param_6[5] = param_6[4] - param_6[3]; } } return 2; } cVar1 = *local_68; cVar2 = *local_70; local_70 = local_70 + 1; local_68 = local_68 + 1; } while (cVar1 == cVar2); } } } return 0; }
19,458
js_free_modules
bluesky950520[P]quickjs/quickjs.c
static void js_free_modules(JSContext *ctx, JSFreeModuleEnum flag) { struct list_head *el, *el1; list_for_each_safe(el, el1, &ctx->loaded_modules) { JSModuleDef *m = list_entry(el, JSModuleDef, link); if (flag == JS_FREE_MODULE_ALL || (flag == JS_FREE_MODULE_NOT_RESOLVED && !m->resolved)) { js_free_module_def(ctx, m); } } }
O0
c
js_free_modules: subq $0x28, %rsp movq %rdi, 0x20(%rsp) movl %esi, 0x1c(%rsp) movq 0x20(%rsp), %rax movq 0x1e8(%rax), %rax movq %rax, 0x10(%rsp) movq 0x10(%rsp), %rax movq 0x8(%rax), %rax movq %rax, 0x8(%rsp) movq 0x10(%rsp), %rax movq 0x20(%rsp), %rcx addq $0x1e0, %rcx # imm = 0x1E0 cmpq %rcx, %rax je 0x27e9c movq 0x10(%rsp), %rax addq $-0x8, %rax movq %rax, (%rsp) cmpl $0x0, 0x1c(%rsp) je 0x27e72 cmpl $0x1, 0x1c(%rsp) jne 0x27e80 movq (%rsp), %rax movl 0x80(%rax), %eax shll $0x10, %eax sarl $0x18, %eax cmpl $0x0, %eax jne 0x27e80 movq 0x20(%rsp), %rdi movq (%rsp), %rsi callq 0x5c5f0 jmp 0x27e82 movq 0x8(%rsp), %rax movq %rax, 0x10(%rsp) movq 0x10(%rsp), %rax movq 0x8(%rax), %rax movq %rax, 0x8(%rsp) jmp 0x27e2c addq $0x28, %rsp retq nopw %cs:(%rax,%rax)
js_free_modules: sub rsp, 28h mov [rsp+28h+var_8], rdi mov [rsp+28h+var_C], esi mov rax, [rsp+28h+var_8] mov rax, [rax+1E8h] mov [rsp+28h+var_18], rax mov rax, [rsp+28h+var_18] mov rax, [rax+8] mov [rsp+28h+var_20], rax loc_27E2C: mov rax, [rsp+28h+var_18] mov rcx, [rsp+28h+var_8] add rcx, 1E0h cmp rax, rcx jz short loc_27E9C mov rax, [rsp+28h+var_18] add rax, 0FFFFFFFFFFFFFFF8h mov [rsp+28h+var_28], rax cmp [rsp+28h+var_C], 0 jz short loc_27E72 cmp [rsp+28h+var_C], 1 jnz short loc_27E80 mov rax, [rsp+28h+var_28] mov eax, [rax+80h] shl eax, 10h sar eax, 18h cmp eax, 0 jnz short loc_27E80 loc_27E72: mov rdi, [rsp+28h+var_8] mov rsi, [rsp+28h+var_28] call js_free_module_def loc_27E80: jmp short $+2 loc_27E82: mov rax, [rsp+28h+var_20] mov [rsp+28h+var_18], rax mov rax, [rsp+28h+var_18] mov rax, [rax+8] mov [rsp+28h+var_20], rax jmp short loc_27E2C loc_27E9C: add rsp, 28h retn
long long js_free_modules(long long a1, int a2) { long long result; // rax long long v3; // [rsp+0h] [rbp-28h] long long i; // [rsp+8h] [rbp-20h] long long v5; // [rsp+10h] [rbp-18h] v5 = *(_QWORD *)(a1 + 488); for ( i = *(_QWORD *)(v5 + 8); ; i = *(_QWORD *)(i + 8) ) { result = v5; if ( v5 == a1 + 480 ) break; v3 = v5 - 8; if ( !a2 || a2 == 1 && !((int)(*(_DWORD *)(v3 + 128) << 16) >> 24) ) js_free_module_def(a1, v3); v5 = i; } return result; }
js_free_modules: SUB RSP,0x28 MOV qword ptr [RSP + 0x20],RDI MOV dword ptr [RSP + 0x1c],ESI MOV RAX,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RAX + 0x1e8] MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x8],RAX LAB_00127e2c: MOV RAX,qword ptr [RSP + 0x10] MOV RCX,qword ptr [RSP + 0x20] ADD RCX,0x1e0 CMP RAX,RCX JZ 0x00127e9c MOV RAX,qword ptr [RSP + 0x10] ADD RAX,-0x8 MOV qword ptr [RSP],RAX CMP dword ptr [RSP + 0x1c],0x0 JZ 0x00127e72 CMP dword ptr [RSP + 0x1c],0x1 JNZ 0x00127e80 MOV RAX,qword ptr [RSP] MOV EAX,dword ptr [RAX + 0x80] SHL EAX,0x10 SAR EAX,0x18 CMP EAX,0x0 JNZ 0x00127e80 LAB_00127e72: MOV RDI,qword ptr [RSP + 0x20] MOV RSI,qword ptr [RSP] CALL 0x0015c5f0 LAB_00127e80: JMP 0x00127e82 LAB_00127e82: MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x8],RAX JMP 0x00127e2c LAB_00127e9c: ADD RSP,0x28 RET
void js_free_modules(long param_1,int param_2) { int8 local_20; int8 local_18; local_18 = *(long *)(param_1 + 0x1e8); local_20 = *(long *)(local_18 + 8); while (local_18 != param_1 + 0x1e0) { if ((param_2 == 0) || ((param_2 == 1 && ((*(int *)(local_18 + 0x78) << 0x10) >> 0x18 == 0)))) { js_free_module_def(param_1,local_18 + -8); } local_18 = local_20; local_20 = *(long *)(local_20 + 8); } return; }
19,459
js_free_modules
bluesky950520[P]quickjs/quickjs.c
static void js_free_modules(JSContext *ctx, JSFreeModuleEnum flag) { struct list_head *el, *el1; list_for_each_safe(el, el1, &ctx->loaded_modules) { JSModuleDef *m = list_entry(el, JSModuleDef, link); if (flag == JS_FREE_MODULE_ALL || (flag == JS_FREE_MODULE_NOT_RESOLVED && !m->resolved)) { js_free_module_def(ctx, m); } } }
O1
c
js_free_modules: pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movl %esi, %ebx leaq 0x1e0(%rdi), %r15 movq 0x1e8(%rdi), %rsi cmpq %r15, %rsi je 0x1fd72 movq %rdi, %r14 movq 0x8(%rsi), %r12 testl %ebx, %ebx je 0x1fd5e cmpb $0x0, 0x79(%rsi) jne 0x1fd6a addq $-0x8, %rsi movq %r14, %rdi callq 0x3b6a0 movq %r12, %rsi cmpq %r15, %r12 jne 0x1fd50 addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
js_free_modules: push r15 push r14 push r12 push rbx push rax mov ebx, esi lea r15, [rdi+1E0h] mov rsi, [rdi+1E8h] cmp rsi, r15 jz short loc_1FD72 mov r14, rdi loc_1FD50: mov r12, [rsi+8] test ebx, ebx jz short loc_1FD5E cmp byte ptr [rsi+79h], 0 jnz short loc_1FD6A loc_1FD5E: add rsi, 0FFFFFFFFFFFFFFF8h mov rdi, r14 call js_free_module_def loc_1FD6A: mov rsi, r12 cmp r12, r15 jnz short loc_1FD50 loc_1FD72: add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn
long long js_free_modules(long long a1, int a2) { long long v3; // rsi long long v4; // r12 long long result; // rax v3 = *(_QWORD *)(a1 + 488); if ( v3 != a1 + 480 ) { do { v4 = *(_QWORD *)(v3 + 8); if ( !a2 || !*(_BYTE *)(v3 + 121) ) result = js_free_module_def(a1, v3 - 8); v3 = v4; } while ( v4 != a1 + 480 ); } return result; }
19,460
js_free_modules
bluesky950520[P]quickjs/quickjs.c
static void js_free_modules(JSContext *ctx, JSFreeModuleEnum flag) { struct list_head *el, *el1; list_for_each_safe(el, el1, &ctx->loaded_modules) { JSModuleDef *m = list_entry(el, JSModuleDef, link); if (flag == JS_FREE_MODULE_ALL || (flag == JS_FREE_MODULE_NOT_RESOLVED && !m->resolved)) { js_free_module_def(ctx, m); } } }
O2
c
js_free_modules: pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movl %esi, %ebx movq %rdi, %r14 leaq 0x1e0(%rdi), %r15 movq 0x1e8(%rdi), %r12 cmpq %r15, %r12 je 0x1a16f movq %r12, %rsi movq 0x8(%r12), %r12 testl %ebx, %ebx je 0x1a161 cmpb $0x0, 0x79(%rsi) jne 0x1a14a addq $-0x8, %rsi movq %r14, %rdi callq 0x34404 jmp 0x1a14a addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
js_free_modules: push r15 push r14 push r12 push rbx push rax mov ebx, esi mov r14, rdi lea r15, [rdi+1E0h] mov r12, [rdi+1E8h] loc_1A14A: cmp r12, r15 jz short loc_1A16F mov rsi, r12 mov r12, [r12+8] test ebx, ebx jz short loc_1A161 cmp byte ptr [rsi+79h], 0 jnz short loc_1A14A loc_1A161: add rsi, 0FFFFFFFFFFFFFFF8h mov rdi, r14 call js_free_module_def jmp short loc_1A14A loc_1A16F: add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn
long long js_free_modules(long long a1, int a2) { long long v3; // r12 long long v4; // rsi long long result; // rax v3 = *(_QWORD *)(a1 + 488); while ( v3 != a1 + 480 ) { v4 = v3; v3 = *(_QWORD *)(v3 + 8); if ( !a2 || !*(_BYTE *)(v4 + 121) ) result = js_free_module_def(a1, v4 - 8); } return result; }
js_free_modules: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV EBX,ESI MOV R14,RDI LEA R15,[RDI + 0x1e0] MOV R12,qword ptr [RDI + 0x1e8] LAB_0011a14a: CMP R12,R15 JZ 0x0011a16f MOV RSI,R12 MOV R12,qword ptr [R12 + 0x8] TEST EBX,EBX JZ 0x0011a161 CMP byte ptr [RSI + 0x79],0x0 JNZ 0x0011a14a LAB_0011a161: ADD RSI,-0x8 MOV RDI,R14 CALL 0x00134404 JMP 0x0011a14a LAB_0011a16f: ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
void js_free_modules(long param_1,int param_2) { long lVar1; long lVar2; lVar1 = *(long *)(param_1 + 0x1e8); while (lVar2 = lVar1, lVar2 != param_1 + 0x1e0) { lVar1 = *(long *)(lVar2 + 8); if ((param_2 == 0) || (*(char *)(lVar2 + 0x79) == '\0')) { js_free_module_def(param_1,lVar2 + -8); } } return; }
19,461
common_token_to_piece[abi:cxx11](llama_vocab const*, int, bool)
llama.cpp/common/common.cpp
std::string common_token_to_piece(const struct llama_vocab * vocab, llama_token token, bool special) { std::string piece; piece.resize(piece.capacity()); // using string internal cache, 15 bytes + '\n' const int n_chars = llama_token_to_piece(vocab, token, &piece[0], piece.size(), 0, special); if (n_chars < 0) { piece.resize(-n_chars); int check = llama_token_to_piece(vocab, token, &piece[0], piece.size(), 0, special); GGML_ASSERT(check == -n_chars); } else { piece.resize(n_chars); } return piece; }
O3
cpp
common_token_to_piece[abi:cxx11](llama_vocab const*, int, bool): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %ecx, %r15d movl %edx, %ebp movq %rsi, %r14 movq %rdi, %rbx leaq 0x10(%rdi), %r13 movq %r13, (%rdi) movq $0x0, 0x8(%rdi) movb $0x0, 0x10(%rdi) movl $0xf, %esi xorl %edx, %edx callq 0x20b50 movq (%rbx), %rdx movl 0x8(%rbx), %ecx movzbl %r15b, %r15d movq %r14, %rdi movl %ebp, %esi xorl %r8d, %r8d movl %r15d, %r9d callq 0x205c0 movl %eax, %r12d testl %eax, %eax js 0xfacc4 movl %r12d, %esi movq %rbx, %rdi xorl %edx, %edx callq 0x20b50 jmp 0xfacef negl %r12d movq %rbx, %rdi movq %r12, %rsi xorl %edx, %edx callq 0x20b50 movq (%rbx), %rdx movl 0x8(%rbx), %ecx movq %r14, %rdi movl %ebp, %esi xorl %r8d, %r8d movl %r15d, %r9d callq 0x205c0 cmpl %r12d, %eax jne 0xfad01 movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x298dd(%rip), %rdi # 0x1245e5 leaq 0x1ed68(%rip), %rdx # 0x119a77 leaq 0x29ef1(%rip), %rcx # 0x124c07 movl $0x4ef, %esi # imm = 0x4EF xorl %eax, %eax callq 0x20e20 jmp 0xfad26 jmp 0xfad26 movq %rax, %r14 movq (%rbx), %rdi cmpq %r13, %rdi je 0xfad3d movq (%r13), %rsi incq %rsi callq 0x20170 movq %r14, %rdi callq 0x20ad0
_Z21common_token_to_pieceB5cxx11PK11llama_vocabib: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov r15d, ecx mov ebp, edx mov r14, rsi mov rbx, rdi lea r13, [rdi+10h] mov [rdi], r13 mov qword ptr [rdi+8], 0 mov byte ptr [rdi+10h], 0 mov esi, 0Fh xor edx, edx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEmc; std::string::resize(ulong,char) mov rdx, [rbx] mov ecx, [rbx+8] movzx r15d, r15b mov rdi, r14 mov esi, ebp xor r8d, r8d mov r9d, r15d call _llama_token_to_piece mov r12d, eax test eax, eax js short loc_FACC4 mov esi, r12d mov rdi, rbx xor edx, edx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEmc; std::string::resize(ulong,char) jmp short loc_FACEF loc_FACC4: neg r12d mov rdi, rbx mov rsi, r12 xor edx, edx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEmc; std::string::resize(ulong,char) mov rdx, [rbx] mov ecx, [rbx+8] mov rdi, r14 mov esi, ebp xor r8d, r8d mov r9d, r15d call _llama_token_to_piece cmp eax, r12d jnz short loc_FAD01 loc_FACEF: mov rax, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_FAD01: lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aCheckNChars; "check == -n_chars" mov esi, 4EFh xor eax, eax call _ggml_abort jmp short loc_FAD26 jmp short $+2 loc_FAD26: mov r14, rax mov rdi, [rbx]; void * cmp rdi, r13 jz short loc_FAD3D mov rsi, [r13+0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_FAD3D: mov rdi, r14 call __Unwind_Resume
_QWORD * common_token_to_piece[abi:cxx11](_QWORD *a1, long long a2, unsigned int a3, unsigned __int8 a4) { long long v4; // rax _QWORD *v7; // r13 int v8; // eax long long v9; // r12 long long v11; // rax long long v12; // r14 long long v13; // [rsp-8h] [rbp-38h] long long v14; // [rsp-8h] [rbp-38h] v13 = v4; v7 = a1 + 2; *a1 = a1 + 2; a1[1] = 0LL; *((_BYTE *)a1 + 16) = 0; std::string::resize(a1, 15LL, 0LL); v8 = llama_token_to_piece(a2, a3, *a1, *((unsigned int *)a1 + 2), 0LL, a4, v13); if ( v8 < 0 ) { v9 = (unsigned int)-v8; std::string::resize(a1, v9, 0LL); if ( (unsigned int)llama_token_to_piece(a2, a3, *a1, *((unsigned int *)a1 + 2), 0LL, a4, v14) != (_DWORD)v9 ) { ggml_abort( "/workspace/llm4binary/github2025/llama.cpp/common/common.cpp", 1263LL, "GGML_ASSERT(%s) failed", "check == -n_chars"); v12 = v11; if ( (_QWORD *)*a1 != v7 ) operator delete((void *)*a1, *v7 + 1LL); _Unwind_Resume(v12); } } else { std::string::resize(a1, (unsigned int)v8, 0LL); } return a1; }
common_token_to_piece[abi:cxx11]: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R15D,ECX MOV EBP,EDX MOV R14,RSI MOV RBX,RDI LEA R13,[RDI + 0x10] MOV qword ptr [RDI],R13 MOV qword ptr [RDI + 0x8],0x0 MOV byte ptr [RDI + 0x10],0x0 LAB_001fac88: MOV ESI,0xf XOR EDX,EDX CALL 0x00120b50 MOV RDX,qword ptr [RBX] MOV ECX,dword ptr [RBX + 0x8] LAB_001fac9a: MOVZX R15D,R15B MOV RDI,R14 MOV ESI,EBP XOR R8D,R8D MOV R9D,R15D CALL 0x001205c0 MOV R12D,EAX TEST EAX,EAX JS 0x001facc4 MOV ESI,R12D MOV RDI,RBX XOR EDX,EDX CALL 0x00120b50 JMP 0x001facef LAB_001facc4: NEG R12D MOV RDI,RBX MOV RSI,R12 XOR EDX,EDX CALL 0x00120b50 MOV RDX,qword ptr [RBX] MOV ECX,dword ptr [RBX + 0x8] LAB_001facda: MOV RDI,R14 MOV ESI,EBP XOR R8D,R8D MOV R9D,R15D CALL 0x001205c0 CMP EAX,R12D JNZ 0x001fad01 LAB_001facef: MOV RAX,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001fad01: LEA RDI,[0x2245e5] LEA RDX,[0x219a77] LEA RCX,[0x224c07] MOV ESI,0x4ef XOR EAX,EAX CALL 0x00120e20
/* common_token_to_piece[abi:cxx11](llama_vocab const*, int, bool) */ llama_vocab * common_token_to_piece_abi_cxx11_(llama_vocab *param_1,int param_2,bool param_3) { int iVar1; int iVar2; int1 in_CL; int7 in_register_00000011; int4 in_register_00000034; *(llama_vocab **)param_1 = param_1 + 0x10; *(int8 *)(param_1 + 8) = 0; param_1[0x10] = (llama_vocab)0x0; /* try { // try from 001fac88 to 001fac93 has its CatchHandler @ 001fad24 */ std::__cxx11::string::resize((ulong)param_1,'\x0f'); /* try { // try from 001fac9a to 001facd3 has its CatchHandler @ 001fad26 */ iVar1 = llama_token_to_piece (CONCAT44(in_register_00000034,param_2), CONCAT71(in_register_00000011,param_3) & 0xffffffff,*(int8 *)param_1, *(int4 *)(param_1 + 8),0,in_CL); if (iVar1 < 0) { std::__cxx11::string::resize((ulong)param_1,(char)-iVar1); /* try { // try from 001facda to 001fad21 has its CatchHandler @ 001fad22 */ iVar2 = llama_token_to_piece (CONCAT44(in_register_00000034,param_2), CONCAT71(in_register_00000011,param_3) & 0xffffffff,*(int8 *)param_1, *(int4 *)(param_1 + 8),0,in_CL); if (iVar2 != -iVar1) { /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github2025/llama.cpp/common/common.cpp",0x4ef, "GGML_ASSERT(%s) failed","check == -n_chars"); } } else { std::__cxx11::string::resize((ulong)param_1,(char)iVar1); } return param_1; }
19,462
js_string_isWellFormed
bluesky950520[P]quickjs/quickjs.c
static JSValue js_string_isWellFormed(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { JSValue str; JSValue ret; JSString *p; uint32_t c, i, n; ret = JS_TRUE; str = JS_ToStringCheckObject(ctx, this_val); if (JS_IsException(str)) return JS_EXCEPTION; p = JS_VALUE_GET_STRING(str); if (!p->is_wide_char || p->len == 0) goto done; // by definition well-formed for (i = 0, n = p->len; i < n; i++) { c = p->u.str16[i]; if (!is_surrogate(c)) continue; if (is_lo_surrogate(c) || i + 1 == n) break; c = p->u.str16[++i]; if (!is_lo_surrogate(c)) break; } if (i < n) ret = JS_FALSE; done: JS_FreeValue(ctx, str); return ret; }
O1
c
js_string_isWellFormed: pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq %rdi, %r14 callq 0x419eb movq %rax, 0x8(%rsp) cmpl $0x6, %edx jne 0x7a61c movl $0x6, %ebx xorl %r15d, %r15d jmp 0x7a6a5 movq 0x8(%rsp), %rcx movq 0x4(%rcx), %rax movl $0x1, %ebx movl $0x1, %r15d testl %eax, %eax jns 0x7a697 andl $0x7fffffff, %eax # imm = 0x7FFFFFFF je 0x7a697 xorl %esi, %esi movl %esi, %edi movzwl 0x18(%rcx,%rdi,2), %edi movl %edi, %r8d andl $0xf800, %r8d # imm = 0xF800 cmpl $0xd800, %r8d # imm = 0xD800 jne 0x7a684 notl %edi testl $0xdc00, %edi # imm = 0xDC00 je 0x7a68e leal 0x1(%rsi), %edi cmpl %eax, %edi je 0x7a68e movl %edi, %esi movzwl 0x18(%rcx,%rsi,2), %r8d andl $0xfc00, %r8d # imm = 0xFC00 movl %edi, %esi cmpl $0xdc00, %r8d # imm = 0xDC00 je 0x7a686 jmp 0x7a68e movl %esi, %edi incl %edi movl %edi, %esi cmpl %eax, %edi jb 0x7a63d xorl %r15d, %r15d cmpl %eax, %esi setae %r15b movq 0x8(%rsp), %rsi movq 0x18(%r14), %rdi callq 0x1ccb2 movq %r15, %rax movq %rbx, %rdx addq $0x10, %rsp popq %rbx popq %r14 popq %r15 retq
js_string_isWellFormed: push r15 push r14 push rbx sub rsp, 10h mov r14, rdi call JS_ToStringCheckObject mov [rsp+28h+var_20], rax cmp edx, 6 jnz short loc_7A61C mov ebx, 6 xor r15d, r15d jmp loc_7A6A5 loc_7A61C: mov rcx, [rsp+28h+var_20] mov rax, [rcx+4] mov ebx, 1 mov r15d, 1 test eax, eax jns short loc_7A697 and eax, 7FFFFFFFh jz short loc_7A697 xor esi, esi loc_7A63D: mov edi, esi movzx edi, word ptr [rcx+rdi*2+18h] mov r8d, edi and r8d, 0F800h cmp r8d, 0D800h jnz short loc_7A684 not edi test edi, 0DC00h jz short loc_7A68E lea edi, [rsi+1] cmp edi, eax jz short loc_7A68E mov esi, edi movzx r8d, word ptr [rcx+rsi*2+18h] and r8d, 0FC00h mov esi, edi cmp r8d, 0DC00h jz short loc_7A686 jmp short loc_7A68E loc_7A684: mov edi, esi loc_7A686: inc edi mov esi, edi cmp edi, eax jb short loc_7A63D loc_7A68E: xor r15d, r15d cmp esi, eax setnb r15b loc_7A697: mov rsi, [rsp+28h+var_20] mov rdi, [r14+18h] call JS_FreeValueRT loc_7A6A5: mov rax, r15 mov rdx, rbx add rsp, 10h pop rbx pop r14 pop r15 retn
_BOOL8 js_string_isWellFormed( 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 v15; // rdx _BOOL8 v16; // r15 long long v17; // rax unsigned int v18; // eax unsigned int v19; // esi unsigned int v20; // edi unsigned long long v22; // [rsp+8h] [rbp-20h] v22 = JS_ToStringCheckObject(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14); if ( (_DWORD)v15 == 6 ) return 0LL; v17 = *(_QWORD *)(v22 + 4); v16 = 1LL; if ( (int)v17 < 0 ) { v18 = v17 & 0x7FFFFFFF; if ( v18 ) { v19 = 0; while ( 1 ) { if ( (*(_WORD *)(v22 + 2LL * v19 + 24) & 0xF800) == 0xD800 ) { if ( (~*(_WORD *)(v22 + 2LL * v19 + 24) & 0xDC00) == 0 || (v20 = v19 + 1, v19 + 1 == v18) || (++v19, (*(_WORD *)(v22 + 2LL * v20 + 24) & 0xFC00) != 0xDC00) ) { LABEL_13: v16 = v19 >= v18; break; } } else { v20 = v19; } v19 = v20 + 1; if ( v20 + 1 >= v18 ) goto LABEL_13; } } } JS_FreeValueRT(*(_QWORD *)(a1 + 24), (_DWORD *)v22, v15); return v16; }
js_string_isWellFormed: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x10 MOV R14,RDI CALL 0x001419eb MOV qword ptr [RSP + 0x8],RAX CMP EDX,0x6 JNZ 0x0017a61c MOV EBX,0x6 XOR R15D,R15D JMP 0x0017a6a5 LAB_0017a61c: MOV RCX,qword ptr [RSP + 0x8] MOV RAX,qword ptr [RCX + 0x4] MOV EBX,0x1 MOV R15D,0x1 TEST EAX,EAX JNS 0x0017a697 AND EAX,0x7fffffff JZ 0x0017a697 XOR ESI,ESI LAB_0017a63d: MOV EDI,ESI MOVZX EDI,word ptr [RCX + RDI*0x2 + 0x18] MOV R8D,EDI AND R8D,0xf800 CMP R8D,0xd800 JNZ 0x0017a684 NOT EDI TEST EDI,0xdc00 JZ 0x0017a68e LEA EDI,[RSI + 0x1] CMP EDI,EAX JZ 0x0017a68e MOV ESI,EDI MOVZX R8D,word ptr [RCX + RSI*0x2 + 0x18] AND R8D,0xfc00 MOV ESI,EDI CMP R8D,0xdc00 JZ 0x0017a686 JMP 0x0017a68e LAB_0017a684: MOV EDI,ESI LAB_0017a686: INC EDI MOV ESI,EDI CMP EDI,EAX JC 0x0017a63d LAB_0017a68e: XOR R15D,R15D CMP ESI,EAX SETNC R15B LAB_0017a697: MOV RSI,qword ptr [RSP + 0x8] MOV RDI,qword ptr [R14 + 0x18] CALL 0x0011ccb2 LAB_0017a6a5: MOV RAX,R15 MOV RDX,RBX ADD RSP,0x10 POP RBX POP R14 POP R15 RET
bool js_string_isWellFormed(long param_1) { uint uVar1; ushort uVar2; uint uVar3; long lVar4; uint uVar5; bool bVar6; int1 auVar7 [12]; auVar7 = JS_ToStringCheckObject(); lVar4 = auVar7._0_8_; if (auVar7._8_4_ == 6) { bVar6 = false; } else { bVar6 = true; uVar3 = (uint)*(ulong *)(lVar4 + 4); if (((int)uVar3 < 0) && (uVar3 = uVar3 & 0x7fffffff, (*(ulong *)(lVar4 + 4) & 0x7fffffff) != 0)) { uVar5 = 0; do { uVar2 = *(ushort *)(lVar4 + 0x18 + (ulong)uVar5 * 2); if (((uVar2 & 0xf800) == 0xd800) && ((((~uVar2 & 0xdc00) == 0 || (uVar1 = uVar5 + 1, uVar1 == uVar3)) || (uVar5 = uVar1, (*(ushort *)(lVar4 + 0x18 + (ulong)uVar1 * 2) & 0xfc00) != 0xdc00)))) break; uVar5 = uVar5 + 1; } while (uVar5 < uVar3); bVar6 = uVar3 <= uVar5; } JS_FreeValueRT(*(int8 *)(param_1 + 0x18),lVar4); } return bVar6; }
19,463
js_string_isWellFormed
bluesky950520[P]quickjs/quickjs.c
static JSValue js_string_isWellFormed(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { JSValue str; JSValue ret; JSString *p; uint32_t c, i, n; ret = JS_TRUE; str = JS_ToStringCheckObject(ctx, this_val); if (JS_IsException(str)) return JS_EXCEPTION; p = JS_VALUE_GET_STRING(str); if (!p->is_wide_char || p->len == 0) goto done; // by definition well-formed for (i = 0, n = p->len; i < n; i++) { c = p->u.str16[i]; if (!is_surrogate(c)) continue; if (is_lo_surrogate(c) || i + 1 == n) break; c = p->u.str16[++i]; if (!is_lo_surrogate(c)) break; } if (i < n) ret = JS_FALSE; done: JS_FreeValue(ctx, str); return ret; }
O3
c
js_string_isWellFormed: pushq %r15 pushq %r14 pushq %rbx movq %rdi, %r14 callq 0x4350b cmpl $0x6, %edx jne 0x7cfbe movl $0x6, %ebx xorl %r15d, %r15d jmp 0x7d052 movq 0x4(%rax), %rcx movl $0x1, %ebx movl $0x1, %r15d testl %ecx, %ecx jns 0x7d035 andl $0x7fffffff, %ecx # imm = 0x7FFFFFFF je 0x7d035 xorl %esi, %esi movl %esi, %edi movzwl 0x18(%rax,%rdi,2), %edi movl %edi, %r8d andl $0xf800, %r8d # imm = 0xF800 cmpl $0xd800, %r8d # imm = 0xD800 jne 0x7d022 notl %edi testl $0xdc00, %edi # imm = 0xDC00 je 0x7d02c leal 0x1(%rsi), %edi cmpl %ecx, %edi je 0x7d02c movl %edi, %esi movzwl 0x18(%rax,%rsi,2), %r8d andl $0xfc00, %r8d # imm = 0xFC00 movl %edi, %esi cmpl $0xdc00, %r8d # imm = 0xDC00 je 0x7d024 jmp 0x7d02c movl %esi, %edi incl %edi movl %edi, %esi cmpl %ecx, %edi jb 0x7cfdb xorl %r15d, %r15d cmpl %ecx, %esi setae %r15b cmpl $-0x9, %edx jb 0x7d052 movq 0x18(%r14), %rdi movl (%rax), %ecx leal -0x1(%rcx), %esi movl %esi, (%rax) cmpl $0x1, %ecx jg 0x7d052 movq %rax, %rsi callq 0x20d90 movq %r15, %rax movq %rbx, %rdx popq %rbx popq %r14 popq %r15 retq
js_string_isWellFormed: push r15 push r14 push rbx mov r14, rdi call JS_ToStringCheckObject cmp edx, 6 jnz short loc_7CFBE mov ebx, 6 xor r15d, r15d jmp loc_7D052 loc_7CFBE: mov rcx, [rax+4] mov ebx, 1 mov r15d, 1 test ecx, ecx jns short loc_7D035 and ecx, 7FFFFFFFh jz short loc_7D035 xor esi, esi loc_7CFDB: mov edi, esi movzx edi, word ptr [rax+rdi*2+18h] mov r8d, edi and r8d, 0F800h cmp r8d, 0D800h jnz short loc_7D022 not edi test edi, 0DC00h jz short loc_7D02C lea edi, [rsi+1] cmp edi, ecx jz short loc_7D02C mov esi, edi movzx r8d, word ptr [rax+rsi*2+18h] and r8d, 0FC00h mov esi, edi cmp r8d, 0DC00h jz short loc_7D024 jmp short loc_7D02C loc_7D022: mov edi, esi loc_7D024: inc edi mov esi, edi cmp edi, ecx jb short loc_7CFDB loc_7D02C: xor r15d, r15d cmp esi, ecx setnb r15b loc_7D035: cmp edx, 0FFFFFFF7h jb short loc_7D052 mov rdi, [r14+18h] mov ecx, [rax] lea esi, [rcx-1] mov [rax], esi cmp ecx, 1 jg short loc_7D052 mov rsi, rax call js_free_value_rt loc_7D052: mov rax, r15 mov rdx, rbx pop rbx pop r14 pop r15 retn
_BOOL8 js_string_isWellFormed( long long a1, _DWORD *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) { _QWORD *v15; // rax long long v16; // rdx long long v17; // r8 long long v18; // r9 _BOOL8 v19; // r15 long long v20; // rcx unsigned int v21; // ecx unsigned int v22; // esi unsigned int v23; // edi long long v24; // rdi long long v25; // rcx v15 = (_QWORD *)JS_ToStringCheckObject(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14); if ( (_DWORD)v16 == 6 ) return 0LL; v20 = *(_QWORD *)((char *)v15 + 4); v19 = 1LL; if ( (int)v20 >= 0 ) goto LABEL_14; v21 = v20 & 0x7FFFFFFF; if ( !v21 ) goto LABEL_14; v22 = 0; while ( 1 ) { v17 = *((_WORD *)v15 + v22 + 12) & 0xF800; if ( (_DWORD)v17 == 55296 ) break; v23 = v22; LABEL_12: v22 = v23 + 1; if ( v23 + 1 >= v21 ) goto LABEL_13; } if ( (~*((_WORD *)v15 + v22 + 12) & 0xDC00) != 0 ) { v23 = v22 + 1; if ( v22 + 1 != v21 ) { v17 = *((_WORD *)v15 + v23 + 12) & 0xFC00; ++v22; if ( (_DWORD)v17 == 56320 ) goto LABEL_12; } } LABEL_13: v19 = v22 >= v21; LABEL_14: if ( (unsigned int)v16 >= 0xFFFFFFF7 ) { v24 = *(_QWORD *)(a1 + 24); v25 = *(unsigned int *)v15; *(_DWORD *)v15 = v25 - 1; if ( (int)v25 <= 1 ) js_free_value_rt(v24, v15, v16, v25, v17, v18); } return v19; }
js_string_isWellFormed: PUSH R15 PUSH R14 PUSH RBX MOV R14,RDI CALL 0x0014350b CMP EDX,0x6 JNZ 0x0017cfbe MOV EBX,0x6 XOR R15D,R15D JMP 0x0017d052 LAB_0017cfbe: MOV RCX,qword ptr [RAX + 0x4] MOV EBX,0x1 MOV R15D,0x1 TEST ECX,ECX JNS 0x0017d035 AND ECX,0x7fffffff JZ 0x0017d035 XOR ESI,ESI LAB_0017cfdb: MOV EDI,ESI MOVZX EDI,word ptr [RAX + RDI*0x2 + 0x18] MOV R8D,EDI AND R8D,0xf800 CMP R8D,0xd800 JNZ 0x0017d022 NOT EDI TEST EDI,0xdc00 JZ 0x0017d02c LEA EDI,[RSI + 0x1] CMP EDI,ECX JZ 0x0017d02c MOV ESI,EDI MOVZX R8D,word ptr [RAX + RSI*0x2 + 0x18] AND R8D,0xfc00 MOV ESI,EDI CMP R8D,0xdc00 JZ 0x0017d024 JMP 0x0017d02c LAB_0017d022: MOV EDI,ESI LAB_0017d024: INC EDI MOV ESI,EDI CMP EDI,ECX JC 0x0017cfdb LAB_0017d02c: XOR R15D,R15D CMP ESI,ECX SETNC R15B LAB_0017d035: CMP EDX,-0x9 JC 0x0017d052 MOV RDI,qword ptr [R14 + 0x18] MOV ECX,dword ptr [RAX] LEA ESI,[RCX + -0x1] MOV dword ptr [RAX],ESI CMP ECX,0x1 JG 0x0017d052 MOV RSI,RAX CALL 0x00120d90 LAB_0017d052: MOV RAX,R15 MOV RDX,RBX POP RBX POP R14 POP R15 RET
bool js_string_isWellFormed(long param_1) { uint uVar1; ushort uVar2; int iVar3; int8 uVar4; int *piVar5; uint uVar6; uint uVar7; bool bVar8; int1 auVar9 [12]; auVar9 = JS_ToStringCheckObject(); piVar5 = auVar9._0_8_; if (auVar9._8_4_ == 6) { bVar8 = false; } else { bVar8 = true; uVar6 = (uint)*(ulong *)(piVar5 + 1); if (((int)uVar6 < 0) && (uVar6 = uVar6 & 0x7fffffff, (*(ulong *)(piVar5 + 1) & 0x7fffffff) != 0) ) { uVar7 = 0; do { uVar2 = *(ushort *)((long)piVar5 + (ulong)uVar7 * 2 + 0x18); if (((uVar2 & 0xf800) == 0xd800) && ((((~uVar2 & 0xdc00) == 0 || (uVar1 = uVar7 + 1, uVar1 == uVar6)) || (uVar7 = uVar1, (*(ushort *)((long)piVar5 + (ulong)uVar1 * 2 + 0x18) & 0xfc00) != 0xdc00 )))) break; uVar7 = uVar7 + 1; } while (uVar7 < uVar6); bVar8 = uVar6 <= uVar7; } if (0xfffffff6 < auVar9._8_4_) { uVar4 = *(int8 *)(param_1 + 0x18); iVar3 = *piVar5; *piVar5 = iVar3 + -1; if (iVar3 < 2) { js_free_value_rt(uVar4,piVar5); } } } return bVar8; }
19,464
minja::Value::to_str[abi:cxx11]() const
monkey531[P]llama/common/minja.hpp
std::string to_str() const { if (is_string()) return get<std::string>(); if (is_number_integer()) return std::to_string(get<int64_t>()); if (is_number_float()) return std::to_string(get<double>()); if (is_boolean()) return get<bool>() ? "True" : "False"; if (is_null()) return "None"; return dump(); }
O0
cpp
minja::Value::to_str[abi:cxx11]() const: subq $0x58, %rsp movq %rdi, 0x18(%rsp) movq %rdi, %rax movq %rax, 0x20(%rsp) movq %rdi, 0x50(%rsp) movq %rsi, 0x48(%rsp) movq 0x48(%rsp), %rdi movq %rdi, 0x28(%rsp) callq 0xa1c30 testb $0x1, %al jne 0xe4a60 jmp 0xe4a74 movq 0x28(%rsp), %rsi movq 0x18(%rsp), %rdi callq 0xa4560 jmp 0xe4bbd movq 0x28(%rsp), %rdi callq 0x9fae0 testb $0x1, %al jne 0xe4a84 jmp 0xe4aa0 movq 0x28(%rsp), %rdi callq 0x9fb00 movq 0x18(%rsp), %rdi movq %rax, %rsi callq 0xe5b50 jmp 0xe4bbd movq 0x28(%rsp), %rdi callq 0xe5ad0 testb $0x1, %al jne 0xe4ab0 jmp 0xe4ac9 movq 0x28(%rsp), %rdi callq 0x9fc70 movq 0x18(%rsp), %rdi callq 0xe5ca0 jmp 0xe4bbd movq 0x28(%rsp), %rdi callq 0xa1c10 testb $0x1, %al jne 0xe4ad9 jmp 0xe4b4c movq 0x28(%rsp), %rdi callq 0xa4430 movb %al, %dl leaq 0xd2fef(%rip), %rcx # 0x1b7adb leaq 0xd2fed(%rip), %rax # 0x1b7ae0 testb %dl, %dl cmovneq %rcx, %rax movq %rax, 0x8(%rsp) leaq 0x47(%rsp), %rdi movq %rdi, 0x10(%rsp) callq 0x4fd90 movq 0x18(%rsp), %rdi movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx callq 0x55120 jmp 0xe4b23 leaq 0x47(%rsp), %rdi callq 0x500e0 jmp 0xe4bbd movq %rax, %rcx movl %edx, %eax movq %rcx, 0x38(%rsp) movl %eax, 0x34(%rsp) leaq 0x47(%rsp), %rdi callq 0x500e0 jmp 0xe4bc7 movq 0x28(%rsp), %rdi callq 0xa15f0 testb $0x1, %al jne 0xe4b5c jmp 0xe4ba7 leaq 0x33(%rsp), %rdi movq %rdi, (%rsp) callq 0x4fd90 movq 0x18(%rsp), %rdi movq (%rsp), %rdx leaq 0xd3391(%rip), %rsi # 0x1b7f0b callq 0x55120 jmp 0xe4b81 leaq 0x33(%rsp), %rdi callq 0x500e0 jmp 0xe4bbd movq %rax, %rcx movl %edx, %eax movq %rcx, 0x38(%rsp) movl %eax, 0x34(%rsp) leaq 0x33(%rsp), %rdi callq 0x500e0 jmp 0xe4bc7 movq 0x28(%rsp), %rsi movq 0x18(%rsp), %rdi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0x9fe90 movq 0x20(%rsp), %rax addq $0x58, %rsp retq movq 0x38(%rsp), %rdi callq 0x4f990 nopw %cs:(%rax,%rax) nopl (%rax,%rax)
_ZNK5minja5Value6to_strB5cxx11Ev: sub rsp, 58h mov [rsp+58h+var_40], rdi; int mov rax, rdi mov qword ptr [rsp+58h+var_38], rax; __int16 mov qword ptr [rsp+58h+var_8], rdi; char mov [rsp+58h+var_10], rsi; int mov rdi, [rsp+58h+var_10]; this mov [rsp+58h+var_30], rdi; __int64 call _ZNK5minja5Value9is_stringEv; minja::Value::is_string(void) test al, 1 jnz short loc_E4A60 jmp short loc_E4A74 loc_E4A60: mov rsi, [rsp+58h+var_30]; int mov rdi, [rsp+58h+var_40]; int call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void) jmp loc_E4BBD loc_E4A74: mov rdi, [rsp+58h+var_30]; this call _ZNK5minja5Value17is_number_integerEv; minja::Value::is_number_integer(void) test al, 1 jnz short loc_E4A84 jmp short loc_E4AA0 loc_E4A84: mov rdi, [rsp+58h+var_30] call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void) mov rdi, [rsp+58h+var_40]; this mov rsi, rax; __int64 call _ZNSt7__cxx119to_stringEl; std::to_string(long) jmp loc_E4BBD loc_E4AA0: mov rdi, [rsp+58h+var_30]; this call _ZNK5minja5Value15is_number_floatEv; minja::Value::is_number_float(void) test al, 1 jnz short loc_E4AB0 jmp short loc_E4AC9 loc_E4AB0: mov rdi, [rsp+58h+var_30] call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) mov rdi, [rsp+58h+var_40]; this call _ZNSt7__cxx119to_stringEd; std::to_string(double) jmp loc_E4BBD loc_E4AC9: mov rdi, [rsp+58h+var_30]; this call _ZNK5minja5Value10is_booleanEv; minja::Value::is_boolean(void) test al, 1 jnz short loc_E4AD9 jmp short loc_E4B4C loc_E4AD9: mov rdi, [rsp+58h+var_30] call _ZNK5minja5Value3getIbEET_v; minja::Value::get<bool>(void) mov dl, al lea rcx, aTrue_0; "True" lea rax, aFalse_0; "False" test dl, dl cmovnz rax, rcx mov [rsp+58h+var_50], rax lea rdi, [rsp+58h+var_11] mov [rsp+58h+var_48], rdi call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdi, [rsp+58h+var_40] mov rsi, [rsp+58h+var_50] mov rdx, [rsp+58h+var_48] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_E4B23: lea rdi, [rsp+58h+var_11] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() jmp loc_E4BBD mov rcx, rax mov eax, edx mov [rsp+arg_30], rcx mov [rsp+arg_2C], eax lea rdi, [rsp+arg_3F] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() jmp short loc_E4BC7 loc_E4B4C: mov rdi, [rsp+58h+var_30]; this call _ZNK5minja5Value7is_nullEv; minja::Value::is_null(void) test al, 1 jnz short loc_E4B5C jmp short loc_E4BA7 loc_E4B5C: lea rdi, [rsp+58h+var_25] mov [rsp+58h+var_58], rdi call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdi, [rsp+58h+var_40] mov rdx, [rsp+58h+var_58] lea rsi, aNone; "None" call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_E4B81: lea rdi, [rsp+58h+var_25] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() jmp short loc_E4BBD mov rcx, rax mov eax, edx mov [rsp+arg_30], rcx mov [rsp+arg_2C], eax lea rdi, [rsp+arg_2B] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() jmp short loc_E4BC7 loc_E4BA7: mov rsi, [rsp+58h+var_30] mov rdi, [rsp+58h+var_40] mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) loc_E4BBD: mov rax, qword ptr [rsp+58h+var_38] add rsp, 58h retn loc_E4BC7: mov rdi, [rsp+arg_30] call __Unwind_Resume
void * minja::Value::to_str[abi:cxx11](void *a1, minja::Value *a2, double a3) { long long v3; // rax char v4; // dl const char *v5; // rax long long v7; // [rsp+8h] [rbp-50h] _BYTE v8[20]; // [rsp+33h] [rbp-25h] BYREF char v9; // [rsp+47h] [rbp-11h] BYREF minja::Value *v10; // [rsp+48h] [rbp-10h] char v11[8]; // [rsp+50h] [rbp-8h] *(_QWORD *)v11 = a1; v10 = a2; if ( minja::Value::is_string(a2) ) { minja::Value::get<std::string>(a1, a2); } else if ( (minja::Value::is_number_integer(a2) & 1) != 0 ) { v3 = minja::Value::get<long>(a2); std::to_string((std::__cxx11 *)a1, v3); } else if ( (minja::Value::is_number_float(a2) & 1) != 0 ) { minja::Value::get<double>(a2); std::to_string((std::__cxx11 *)a1, a3); } else if ( (minja::Value::is_boolean(a2) & 1) != 0 ) { v4 = minja::Value::get<bool>(a2); v5 = "False"; if ( v4 ) v5 = "True"; v7 = (long long)v5; std::allocator<char>::allocator(); std::string::basic_string<std::allocator<char>>((long long)a1, v7, (long long)&v9); std::allocator<char>::~allocator(&v9); } else if ( (minja::Value::is_null(a2) & 1) != 0 ) { std::allocator<char>::allocator(); std::string::basic_string<std::allocator<char>>((long long)a1, (long long)"None", (long long)v8); std::allocator<char>::~allocator(v8); } else { minja::Value::dump[abi:cxx11]((long long)a1, (long long)a2, 0xFFFFFFFF, 0); } return a1; }
to_str[abi:cxx11]: SUB RSP,0x58 MOV qword ptr [RSP + 0x18],RDI MOV RAX,RDI MOV qword ptr [RSP + 0x20],RAX MOV qword ptr [RSP + 0x50],RDI MOV qword ptr [RSP + 0x48],RSI MOV RDI,qword ptr [RSP + 0x48] MOV qword ptr [RSP + 0x28],RDI CALL 0x001a1c30 TEST AL,0x1 JNZ 0x001e4a60 JMP 0x001e4a74 LAB_001e4a60: MOV RSI,qword ptr [RSP + 0x28] MOV RDI,qword ptr [RSP + 0x18] CALL 0x001a4560 JMP 0x001e4bbd LAB_001e4a74: MOV RDI,qword ptr [RSP + 0x28] CALL 0x0019fae0 TEST AL,0x1 JNZ 0x001e4a84 JMP 0x001e4aa0 LAB_001e4a84: MOV RDI,qword ptr [RSP + 0x28] CALL 0x0019fb00 MOV RDI,qword ptr [RSP + 0x18] MOV RSI,RAX CALL 0x001e5b50 JMP 0x001e4bbd LAB_001e4aa0: MOV RDI,qword ptr [RSP + 0x28] CALL 0x001e5ad0 TEST AL,0x1 JNZ 0x001e4ab0 JMP 0x001e4ac9 LAB_001e4ab0: MOV RDI,qword ptr [RSP + 0x28] CALL 0x0019fc70 MOV RDI,qword ptr [RSP + 0x18] CALL 0x001e5ca0 JMP 0x001e4bbd LAB_001e4ac9: MOV RDI,qword ptr [RSP + 0x28] CALL 0x001a1c10 TEST AL,0x1 JNZ 0x001e4ad9 JMP 0x001e4b4c LAB_001e4ad9: MOV RDI,qword ptr [RSP + 0x28] CALL 0x001a4430 MOV DL,AL LEA RCX,[0x2b7adb] LEA RAX,[0x2b7ae0] TEST DL,DL CMOVNZ RAX,RCX MOV qword ptr [RSP + 0x8],RAX LEA RDI,[RSP + 0x47] MOV qword ptr [RSP + 0x10],RDI CALL 0x0014fd90 MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] LAB_001e4b1c: CALL 0x00155120 JMP 0x001e4b23 LAB_001e4b23: LEA RDI,[RSP + 0x47] CALL 0x001500e0 JMP 0x001e4bbd LAB_001e4b4c: MOV RDI,qword ptr [RSP + 0x28] CALL 0x001a15f0 TEST AL,0x1 JNZ 0x001e4b5c JMP 0x001e4ba7 LAB_001e4b5c: LEA RDI,[RSP + 0x33] MOV qword ptr [RSP],RDI CALL 0x0014fd90 MOV RDI,qword ptr [RSP + 0x18] MOV RDX,qword ptr [RSP] LAB_001e4b73: LEA RSI,[0x2b7f0b] CALL 0x00155120 LAB_001e4b7f: JMP 0x001e4b81 LAB_001e4b81: LEA RDI,[RSP + 0x33] CALL 0x001500e0 JMP 0x001e4bbd LAB_001e4ba7: MOV RSI,qword ptr [RSP + 0x28] MOV RDI,qword ptr [RSP + 0x18] MOV EDX,0xffffffff XOR ECX,ECX CALL 0x0019fe90 LAB_001e4bbd: MOV RAX,qword ptr [RSP + 0x20] ADD RSP,0x58 RET
/* minja::Value::to_str[abi:cxx11]() const */ __cxx11 * minja::Value::to_str_abi_cxx11_(void) { bool bVar1; ulong uVar2; long lVar3; char *pcVar4; Value *in_RSI; __cxx11 *in_RDI; double dVar5; allocator local_25 [20]; allocator local_11 [17]; uVar2 = is_string(in_RSI); if ((uVar2 & 1) == 0) { uVar2 = is_number_integer(in_RSI); if ((uVar2 & 1) == 0) { uVar2 = is_number_float(in_RSI); if ((uVar2 & 1) == 0) { uVar2 = is_boolean(in_RSI); if ((uVar2 & 1) == 0) { uVar2 = is_null(in_RSI); if ((uVar2 & 1) == 0) { dump_abi_cxx11_((int)in_RDI,SUB81(in_RSI,0)); } else { std::allocator<char>::allocator(); /* try { // try from 001e4b73 to 001e4b7e has its CatchHandler @ 001e4b8d */ std::__cxx11::string::string<std::allocator<char>>((string *)in_RDI,"None",local_25); std::allocator<char>::~allocator((allocator<char> *)local_25); } } else { bVar1 = get<bool>(in_RSI); pcVar4 = "False"; if (bVar1) { pcVar4 = "True"; } std::allocator<char>::allocator(); /* try { // try from 001e4b1c to 001e4b20 has its CatchHandler @ 001e4b32 */ std::__cxx11::string::string<std::allocator<char>>((string *)in_RDI,pcVar4,local_11); std::allocator<char>::~allocator((allocator<char> *)local_11); } } else { dVar5 = get<double>(in_RSI); std::__cxx11::to_string(in_RDI,dVar5); } } else { lVar3 = get<long>(in_RSI); std::__cxx11::to_string(in_RDI,lVar3); } } else { get<std::__cxx11::string>(); } return in_RDI; }
19,465
minja::Value::to_str[abi:cxx11]() const
monkey531[P]llama/common/minja.hpp
std::string to_str() const { if (is_string()) return get<std::string>(); if (is_number_integer()) return std::to_string(get<int64_t>()); if (is_number_float()) return std::to_string(get<double>()); if (is_boolean()) return get<bool>() ? "True" : "False"; if (is_null()) return "None"; return dump(); }
O2
cpp
minja::Value::to_str[abi:cxx11]() const: pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx movzbl 0x40(%rsi), %eax cmpl $0x3, %eax jne 0x52951 movq %rbx, %rdi movq %r14, %rsi callq 0x3e430 jmp 0x529df leal -0x5(%rax), %ecx cmpb $0x1, %cl ja 0x5296e movq %r14, %rdi callq 0x3cd9c movq %rbx, %rdi movq %rax, %rsi callq 0x5325a jmp 0x529df cmpl $0x4, %eax je 0x5298a cmpl $0x7, %eax jne 0x529ad movq %r14, %rdi callq 0x3ce70 movq %rbx, %rdi callq 0x532ba jmp 0x529df movq %r14, %rdi callq 0x3e37a leaq 0x3d63b(%rip), %rcx # 0x8ffd4 leaq 0x3d639(%rip), %rsi # 0x8ffd9 testb %al, %al cmovneq %rcx, %rsi leaq 0x7(%rsp), %rdx jmp 0x529c5 movq %r14, %rdi callq 0x3d906 testb %al, %al je 0x529cf leaq 0x3da44(%rip), %rsi # 0x90404 leaq 0x6(%rsp), %rdx movq %rbx, %rdi callq 0x2303e jmp 0x529df pushq $-0x1 popq %rdx movq %rbx, %rdi movq %r14, %rsi xorl %ecx, %ecx callq 0x3cf54 movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r14 retq
_ZNK5minja5Value6to_strB5cxx11Ev: push r14 push rbx push rax mov r14, rsi mov rbx, rdi movzx eax, byte ptr [rsi+40h] cmp eax, 3 jnz short loc_52951 mov rdi, rbx mov rsi, r14 call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void) jmp loc_529DF loc_52951: lea ecx, [rax-5] cmp cl, 1 ja short loc_5296E mov rdi, r14 call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void) mov rdi, rbx; this mov rsi, rax; __int64 call _ZNSt7__cxx119to_stringEl; std::to_string(long) jmp short loc_529DF loc_5296E: cmp eax, 4 jz short loc_5298A cmp eax, 7 jnz short loc_529AD mov rdi, r14 call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) mov rdi, rbx; this call _ZNSt7__cxx119to_stringEd; std::to_string(double) jmp short loc_529DF loc_5298A: mov rdi, r14 call _ZNK5minja5Value3getIbEET_v; minja::Value::get<bool>(void) lea rcx, aTrue_0; "True" lea rsi, aFalse_0; "False" test al, al cmovnz rsi, rcx lea rdx, [rsp+18h+var_11] jmp short loc_529C5 loc_529AD: mov rdi, r14; this call _ZNK5minja5Value7is_nullEv; minja::Value::is_null(void) test al, al jz short loc_529CF lea rsi, aNone; "None" lea rdx, [rsp+18h+var_12] loc_529C5: mov rdi, rbx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short loc_529DF loc_529CF: push 0FFFFFFFFFFFFFFFFh pop rdx mov rdi, rbx mov rsi, r14 xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) loc_529DF: mov rax, rbx add rsp, 8 pop rbx pop r14 retn
std::__cxx11 * minja::Value::to_str[abi:cxx11](std::__cxx11 *this, minja::Value *a2, double a3) { int v3; // eax long long v4; // rax char v5; // al const char *v6; // rsi v3 = *((unsigned __int8 *)a2 + 64); if ( v3 == 3 ) { minja::Value::get<std::string>((long long)this, a2); } else { if ( (unsigned __int8)(v3 - 5) > 1u ) { if ( v3 == 4 ) { v5 = minja::Value::get<bool>(a2); v6 = "False"; if ( v5 ) v6 = "True"; } else { if ( v3 == 7 ) { minja::Value::get<double>(a2); std::to_string(this, a3); return this; } if ( !minja::Value::is_null(a2) ) { minja::Value::dump[abi:cxx11]((long long)this, (long long)a2, 0xFFFFFFFF, 0); return this; } v6 = "None"; } std::string::basic_string<std::allocator<char>>(this, (long long)v6); return this; } v4 = minja::Value::get<long>(a2); std::to_string(this, v4); } return this; }
to_str[abi:cxx11]: PUSH R14 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI MOVZX EAX,byte ptr [RSI + 0x40] CMP EAX,0x3 JNZ 0x00152951 MOV RDI,RBX MOV RSI,R14 CALL 0x0013e430 JMP 0x001529df LAB_00152951: LEA ECX,[RAX + -0x5] CMP CL,0x1 JA 0x0015296e MOV RDI,R14 CALL 0x0013cd9c MOV RDI,RBX MOV RSI,RAX CALL 0x0015325a JMP 0x001529df LAB_0015296e: CMP EAX,0x4 JZ 0x0015298a CMP EAX,0x7 JNZ 0x001529ad MOV RDI,R14 CALL 0x0013ce70 MOV RDI,RBX CALL 0x001532ba JMP 0x001529df LAB_0015298a: MOV RDI,R14 CALL 0x0013e37a LEA RCX,[0x18ffd4] LEA RSI,[0x18ffd9] TEST AL,AL CMOVNZ RSI,RCX LEA RDX,[RSP + 0x7] JMP 0x001529c5 LAB_001529ad: MOV RDI,R14 CALL 0x0013d906 TEST AL,AL JZ 0x001529cf LEA RSI,[0x190404] LEA RDX,[RSP + 0x6] LAB_001529c5: MOV RDI,RBX CALL 0x0012303e JMP 0x001529df LAB_001529cf: PUSH -0x1 POP RDX MOV RDI,RBX MOV RSI,R14 XOR ECX,ECX CALL 0x0013cf54 LAB_001529df: MOV RAX,RBX ADD RSP,0x8 POP RBX POP R14 RET
/* minja::Value::to_str[abi:cxx11]() const */ void minja::Value::to_str_abi_cxx11_(void) { Value VVar1; bool bVar2; char cVar3; long lVar4; allocator *paVar5; Value *in_RSI; char *pcVar6; __cxx11 *in_RDI; double dVar7; allocator local_12; allocator local_11; VVar1 = in_RSI[0x40]; if (VVar1 == (Value)0x3) { get<std::__cxx11::string>(); } else if ((byte)((char)VVar1 - 5U) < 2) { lVar4 = get<long>(in_RSI); std::__cxx11::to_string(in_RDI,lVar4); } else { if (VVar1 == (Value)0x4) { bVar2 = get<bool>(in_RSI); pcVar6 = "False"; if (bVar2) { pcVar6 = "True"; } paVar5 = &local_11; } else { if (VVar1 == (Value)0x7) { dVar7 = get<double>(in_RSI); std::__cxx11::to_string(dVar7); return; } cVar3 = is_null(in_RSI); if (cVar3 == '\0') { dump_abi_cxx11_((int)in_RDI,SUB81(in_RSI,0)); return; } pcVar6 = "None"; paVar5 = &local_12; } std::__cxx11::string::string<std::allocator<char>>((string *)in_RDI,pcVar6,paVar5); } return; }
19,466
StartTree::Builder<StartTree::BIONJMatrix<float>>::constructTree(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
iqtree3/utils/starttree.h
virtual bool constructTree ( const std::string &distanceMatrixFilePath , const std::string & newickTreeFilePath) { B builder; if (!builder.loadMatrixFromFile(distanceMatrixFilePath)) { return false; } constructTreeWith(builder); builder.setZippedOutput(isOutputToBeZipped); return builder.writeTreeFile(newickTreeFilePath); }
O3
c
StartTree::Builder<StartTree::BIONJMatrix<float>>::constructTree(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xc8, %rsp movq %rdx, %rbx movq %rdi, %r14 xorps %xmm0, %xmm0 movq %rsp, %rdi movups %xmm0, 0x68(%rdi) movups %xmm0, 0x58(%rdi) movups %xmm0, 0x48(%rdi) movups %xmm0, 0x38(%rdi) movups %xmm0, 0x28(%rdi) movups %xmm0, 0x18(%rdi) movups %xmm0, 0x8(%rdi) movb $0x0, 0x78(%rdi) movups %xmm0, 0x80(%rdi) xorl %eax, %eax movq %rax, 0x90(%rdi) leaq 0x13a76(%rip), %r13 # 0x34608 movq %r13, (%rdi) leaq 0x134a4(%rip), %r12 # 0x34040 movq %r12, 0x98(%rdi) movups %xmm0, 0xa0(%rdi) movups %xmm0, 0xb0(%rdi) movq %rax, 0xc0(%rdi) callq 0x193d4 movl %eax, %ebp leaq 0x98(%rsp), %r15 movq %rsp, %rsi movq %r15, %rdi callq 0x214ea testb %bpl, %bpl je 0x20bfc movq %rsp, %rsi movq %r14, %rdi callq 0x20e5e movzbl 0x49(%r14), %esi leaq 0x48(%rsp), %rdi movb %sil, 0x30(%rdi) movq %rbx, %rdx callq 0x1bee4 movl %eax, %ebx jmp 0x20bfe xorl %ebx, %ebx movq %r13, (%rsp) movq %r12, 0x98(%rsp) movq %r15, %rdi callq 0x1a676 leaq 0x1331f(%rip), %rax # 0x33f38 movq %rax, (%rsp) movq 0x80(%rsp), %rdi testq %rdi, %rdi je 0x20c3a movq 0x90(%rsp), %rsi subq %rdi, %rsi callq 0x152e0 leaq 0x1339f(%rip), %rax # 0x33fe0 movq %rax, (%rsp) movq 0x60(%rsp), %rdi testq %rdi, %rdi je 0x20c5c movq 0x70(%rsp), %rsi subq %rdi, %rsi callq 0x152e0 leaq 0x48(%rsp), %r14 movq %r14, %rdi callq 0x1a6c0 movq -0x18(%r14), %rdi testq %rdi, %rdi je 0x20c7f movq 0x40(%rsp), %rsi subq %rdi, %rsi callq 0x152e0 movq %rsp, %rdi movq %r12, (%rdi) callq 0x1a676 movl %ebx, %eax addq $0xc8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx movq %rsp, %rdi callq 0x2106e movq %rbx, %rdi callq 0x15580 nop
_ZN9StartTree7BuilderINS_11BIONJMatrixIfEEE13constructTreeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESB_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 0C8h mov rbx, rdx mov r14, rdi xorps xmm0, xmm0 mov rdi, rsp movups xmmword ptr [rdi+68h], xmm0 movups xmmword ptr [rdi+58h], xmm0 movups xmmword ptr [rdi+48h], xmm0 movups xmmword ptr [rdi+38h], xmm0 movups xmmword ptr [rdi+28h], xmm0 movups xmmword ptr [rdi+18h], xmm0 movups xmmword ptr [rdi+8], xmm0 mov byte ptr [rdi+78h], 0 movups xmmword ptr [rdi+80h], xmm0 xor eax, eax mov [rdi+90h], rax lea r13, off_34608 mov [rdi], r13 lea r12, off_34040 mov [rdi+98h], r12 movups xmmword ptr [rdi+0A0h], xmm0 movups xmmword ptr [rdi+0B0h], xmm0 mov [rdi+0C0h], rax call _ZN9StartTree12UPGMA_MatrixIfE18loadMatrixFromFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; StartTree::UPGMA_Matrix<float>::loadMatrixFromFile(std::string const&) mov ebp, eax lea r15, [rsp+0F8h+var_60] mov rsi, rsp mov rdi, r15 call _ZN9StartTree6MatrixIfE6assignERKS1_; StartTree::Matrix<float>::assign(StartTree::Matrix<float> const&) test bpl, bpl jz short loc_20BFC mov rsi, rsp mov rdi, r14 call _ZN9StartTree7BuilderINS_11BIONJMatrixIfEEE17constructTreeWithERS2_; StartTree::Builder<StartTree::BIONJMatrix<float>>::constructTreeWith(StartTree::BIONJMatrix<float>&) movzx esi, byte ptr [r14+49h] lea rdi, [rsp+0F8h+var_B0] mov [rdi+30h], sil mov rdx, rbx call _ZNK9StartTree11ClusterTreeIfE13writeTreeFileEbRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; StartTree::ClusterTree<float>::writeTreeFile(bool,std::string const&) mov ebx, eax jmp short loc_20BFE loc_20BFC: xor ebx, ebx loc_20BFE: mov [rsp+0F8h+var_F8], r13 mov [rsp+0F8h+var_60], r12 mov rdi, r15 call _ZN9StartTree6MatrixIfE5clearEv; StartTree::Matrix<float>::clear(void) lea rax, off_33F38 mov [rsp+0F8h+var_F8], rax mov rdi, [rsp+0F8h+var_78]; void * test rdi, rdi jz short loc_20C3A mov rsi, [rsp+0F8h+var_68] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_20C3A: lea rax, off_33FE0 mov [rsp+0F8h+var_F8], rax mov rdi, [rsp+0F8h+var_98]; void * test rdi, rdi jz short loc_20C5C mov rsi, [rsp+0F8h+var_88] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_20C5C: lea r14, [rsp+0F8h+var_B0] mov rdi, r14 call _ZNSt6vectorIN9StartTree7ClusterIfEESaIS2_EED2Ev; std::vector<StartTree::Cluster<float>>::~vector() mov rdi, [r14-18h]; void * test rdi, rdi jz short loc_20C7F mov rsi, [rsp+0F8h+var_B8] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_20C7F: mov rdi, rsp mov [rdi], r12 call _ZN9StartTree6MatrixIfE5clearEv; StartTree::Matrix<float>::clear(void) mov eax, ebx add rsp, 0C8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax mov rdi, rsp call _ZN9StartTree11BIONJMatrixIfED2Ev; StartTree::BIONJMatrix<float>::~BIONJMatrix() mov rdi, rbx call __Unwind_Resume
long long StartTree::Builder<StartTree::BIONJMatrix<float>>::constructTree( long long a1, const char **a2, long long a3) { char v4; // bp unsigned int v5; // ebx long long ( **v7)(); // [rsp+0h] [rbp-F8h] BYREF __int128 v8; // [rsp+8h] [rbp-F0h] __int128 v9; // [rsp+18h] [rbp-E0h] __int128 v10; // [rsp+28h] [rbp-D0h] __int128 v11; // [rsp+38h] [rbp-C0h] __int128 v12; // [rsp+48h] [rbp-B0h] BYREF __int128 v13; // [rsp+58h] [rbp-A0h] __int128 v14; // [rsp+68h] [rbp-90h] unsigned __int8 v15; // [rsp+78h] [rbp-80h] __int128 v16; // [rsp+80h] [rbp-78h] long long v17; // [rsp+90h] [rbp-68h] long long ( **v18)(); // [rsp+98h] [rbp-60h] BYREF __int128 v19; // [rsp+A0h] [rbp-58h] __int128 v20; // [rsp+B0h] [rbp-48h] long long v21; // [rsp+C0h] [rbp-38h] v14 = 0LL; v13 = 0LL; v12 = 0LL; v11 = 0LL; v10 = 0LL; v9 = 0LL; v8 = 0LL; v15 = 0; v16 = 0LL; v17 = 0LL; v7 = off_34608; v18 = off_34040; v19 = 0LL; v20 = 0LL; v21 = 0LL; v4 = StartTree::UPGMA_Matrix<float>::loadMatrixFromFile(&v7, a2); StartTree::Matrix<float>::assign(&v18, &v7); if ( v4 ) { StartTree::Builder<StartTree::BIONJMatrix<float>>::constructTreeWith(a1, &v7); v15 = *(_BYTE *)(a1 + 73); v5 = StartTree::ClusterTree<float>::writeTreeFile((long long)&v12, v15, a3); } else { v5 = 0; } v7 = off_34608; v18 = off_34040; StartTree::Matrix<float>::clear(&v18); v7 = off_33F38; if ( (_QWORD)v16 ) operator delete((void *)v16, v17 - v16); v7 = off_33FE0; if ( *((_QWORD *)&v13 + 1) ) operator delete(*((void **)&v13 + 1), *((_QWORD *)&v14 + 1) - *((_QWORD *)&v13 + 1)); std::vector<StartTree::Cluster<float>>::~vector(&v12); if ( *((_QWORD *)&v10 + 1) ) operator delete(*((void **)&v10 + 1), *((_QWORD *)&v11 + 1) - *((_QWORD *)&v10 + 1)); v7 = off_34040; StartTree::Matrix<float>::clear(&v7); return v5; }
constructTree: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xc8 MOV RBX,RDX MOV R14,RDI XORPS XMM0,XMM0 MOV RDI,RSP MOVUPS xmmword ptr [RDI + 0x68],XMM0 MOVUPS xmmword ptr [RDI + 0x58],XMM0 MOVUPS xmmword ptr [RDI + 0x48],XMM0 MOVUPS xmmword ptr [RDI + 0x38],XMM0 MOVUPS xmmword ptr [RDI + 0x28],XMM0 MOVUPS xmmword ptr [RDI + 0x18],XMM0 MOVUPS xmmword ptr [RDI + 0x8],XMM0 MOV byte ptr [RDI + 0x78],0x0 MOVUPS xmmword ptr [RDI + 0x80],XMM0 XOR EAX,EAX MOV qword ptr [RDI + 0x90],RAX LEA R13,[0x134608] MOV qword ptr [RDI],R13 LEA R12,[0x134040] MOV qword ptr [RDI + 0x98],R12 MOVUPS xmmword ptr [RDI + 0xa0],XMM0 MOVUPS xmmword ptr [RDI + 0xb0],XMM0 MOV qword ptr [RDI + 0xc0],RAX LAB_00120bb8: CALL 0x001193d4 MOV EBP,EAX LEA R15,[RSP + 0x98] MOV RSI,RSP MOV RDI,R15 CALL 0x001214ea TEST BPL,BPL JZ 0x00120bfc MOV RSI,RSP MOV RDI,R14 CALL 0x00120e5e MOVZX ESI,byte ptr [R14 + 0x49] LEA RDI,[RSP + 0x48] MOV byte ptr [RDI + 0x30],SIL MOV RDX,RBX CALL 0x0011bee4 LAB_00120bf8: MOV EBX,EAX JMP 0x00120bfe LAB_00120bfc: XOR EBX,EBX LAB_00120bfe: MOV qword ptr [RSP],R13 MOV qword ptr [RSP + 0x98],R12 MOV RDI,R15 CALL 0x0011a676 LEA RAX,[0x133f38] MOV qword ptr [RSP],RAX MOV RDI,qword ptr [RSP + 0x80] TEST RDI,RDI JZ 0x00120c3a MOV RSI,qword ptr [RSP + 0x90] SUB RSI,RDI CALL 0x001152e0 LAB_00120c3a: LEA RAX,[0x133fe0] MOV qword ptr [RSP],RAX MOV RDI,qword ptr [RSP + 0x60] TEST RDI,RDI JZ 0x00120c5c MOV RSI,qword ptr [RSP + 0x70] SUB RSI,RDI CALL 0x001152e0 LAB_00120c5c: LEA R14,[RSP + 0x48] MOV RDI,R14 CALL 0x0011a6c0 MOV RDI,qword ptr [R14 + -0x18] TEST RDI,RDI JZ 0x00120c7f MOV RSI,qword ptr [RSP + 0x40] SUB RSI,RDI CALL 0x001152e0 LAB_00120c7f: MOV RDI,RSP MOV qword ptr [RDI],R12 CALL 0x0011a676 MOV EAX,EBX ADD RSP,0xc8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* StartTree::Builder<StartTree::BIONJMatrix<float> >::constructTree(std::__cxx11::string const&, std::__cxx11::string const&) */ int4 __thiscall StartTree::Builder<StartTree::BIONJMatrix<float>>::constructTree (Builder<StartTree::BIONJMatrix<float>> *this,string *param_1,string *param_2) { char cVar1; int4 uVar2; int **local_f8; int8 local_f0; int8 uStack_e8; int8 local_e0; int8 uStack_d8; int8 local_d0; void *pvStack_c8; int8 local_c0; long lStack_b8; int8 local_b0; int8 uStack_a8; int8 local_a0; void *pvStack_98; int8 local_90; long lStack_88; Builder<StartTree::BIONJMatrix<float>> local_80; void *local_78; int8 uStack_70; long local_68; int **local_60; int8 local_58; int8 uStack_50; int8 local_48; int8 uStack_40; int8 local_38; local_90 = 0; lStack_88 = 0; local_a0 = 0; pvStack_98 = (void *)0x0; local_b0 = 0; uStack_a8 = 0; local_c0 = 0; lStack_b8 = 0; local_d0 = 0; pvStack_c8 = (void *)0x0; local_e0 = 0; uStack_d8 = 0; local_f0 = 0; uStack_e8 = 0; local_80 = (Builder<StartTree::BIONJMatrix<float>>)0x0; local_78 = (void *)0x0; uStack_70 = 0; local_68 = 0; local_f8 = &PTR_setSize_00134608; local_60 = &PTR_setSize_00134040; local_58 = 0; uStack_50 = 0; local_48 = 0; uStack_40 = 0; local_38 = 0; /* try { // try from 00120bb8 to 00120bf7 has its CatchHandler @ 00120c9e */ cVar1 = UPGMA_Matrix<float>::loadMatrixFromFile((UPGMA_Matrix<float> *)&local_f8,param_1); Matrix<float>::assign((Matrix<float> *)&local_60,(Matrix *)&local_f8); if (cVar1 == '\0') { uVar2 = 0; } else { constructTreeWith(this,(BIONJMatrix *)&local_f8); local_80 = this[0x49]; uVar2 = ClusterTree<float>::writeTreeFile ((ClusterTree<float> *)&local_b0,(bool)local_80,param_2); } local_f8 = &PTR_setSize_00134608; local_60 = &PTR_setSize_00134040; Matrix<float>::clear((Matrix<float> *)&local_60); local_f8 = &PTR_setSize_00133f38; if (local_78 != (void *)0x0) { operator_delete(local_78,local_68 - (long)local_78); } local_f8 = &PTR_setSize_00133fe0; if (pvStack_98 != (void *)0x0) { operator_delete(pvStack_98,lStack_88 - (long)pvStack_98); } std::vector<StartTree::Cluster<float>,std::allocator<StartTree::Cluster<float>>>::~vector ((vector<StartTree::Cluster<float>,std::allocator<StartTree::Cluster<float>>> *) &local_b0); if (pvStack_c8 != (void *)0x0) { operator_delete(pvStack_c8,lStack_b8 - (long)pvStack_c8); } local_f8 = &PTR_setSize_00134040; Matrix<float>::clear((Matrix<float> *)&local_f8); return uVar2; }
19,467
testing::internal::DoubleNearPredFormat(char const*, char const*, char const*, double, double, double)
seiftnesse[P]memoryallocator/build_O1/_deps/googletest-src/googletest/src/gtest.cc
AssertionResult DoubleNearPredFormat(const char* expr1, const char* expr2, const char* abs_error_expr, double val1, double val2, double abs_error) { const double diff = fabs(val1 - val2); if (diff <= abs_error) return AssertionSuccess(); // Find the value which is closest to zero. const double min_abs = std::min(fabs(val1), fabs(val2)); // Find the distance to the next double from that value. const double epsilon = nextafter(min_abs, std::numeric_limits<double>::infinity()) - min_abs; // Detect the case where abs_error is so small that EXPECT_NEAR is // effectively the same as EXPECT_EQUAL, and give an informative error // message so that the situation can be more easily understood without // requiring exotic floating-point knowledge. // Don't do an epsilon check if abs_error is zero because that implies // that an equality check was actually intended. if (!(std::isnan)(val1) && !(std::isnan)(val2) && abs_error > 0 && abs_error < epsilon) { return AssertionFailure() << "The difference between " << expr1 << " and " << expr2 << " is " << diff << ", where\n" << expr1 << " evaluates to " << val1 << ",\n" << expr2 << " evaluates to " << val2 << ".\nThe abs_error parameter " << abs_error_expr << " evaluates to " << abs_error << " which is smaller than the minimum distance between doubles for " "numbers of this magnitude which is " << epsilon << ", thus making this EXPECT_NEAR check equivalent to " "EXPECT_EQUAL. Consider using EXPECT_DOUBLE_EQ instead."; } return AssertionFailure() << "The difference between " << expr1 << " and " << expr2 << " is " << diff << ", which exceeds " << abs_error_expr << ", where\n" << expr1 << " evaluates to " << val1 << ",\n" << expr2 << " evaluates to " << val2 << ", and\n" << abs_error_expr << " evaluates to " << abs_error << "."; }
O1
cpp
testing::internal::DoubleNearPredFormat(char const*, char const*, char const*, double, double, double): pushq %r14 pushq %rbx subq $0x68, %rsp movapd %xmm1, %xmm3 movq %rdi, %rbx movq %rsi, 0x8(%rsp) movq %rdx, (%rsp) movq %rcx, 0x38(%rsp) movsd %xmm0, 0x30(%rsp) movsd %xmm1, 0x28(%rsp) movapd %xmm0, %xmm1 subsd %xmm3, %xmm1 andpd 0x1fff7(%rip), %xmm1 # 0x42120 movsd %xmm2, 0x20(%rsp) movlpd %xmm1, 0x40(%rsp) ucomisd %xmm1, %xmm2 jae 0x222fa movapd 0x1ffd9(%rip), %xmm1 # 0x42120 andpd %xmm1, %xmm0 andpd %xmm1, %xmm3 minsd %xmm0, %xmm3 movapd %xmm3, 0x50(%rsp) movsd 0x20087(%rip), %xmm1 # 0x421e8 movapd %xmm3, %xmm0 callq 0x9370 subsd 0x50(%rsp), %xmm0 movsd %xmm0, 0x48(%rsp) movsd 0x30(%rsp), %xmm1 ucomisd %xmm1, %xmm1 jp 0x2230a movsd 0x28(%rsp), %xmm1 ucomisd %xmm1, %xmm1 jp 0x2230a movsd 0x20(%rsp), %xmm1 xorpd %xmm2, %xmm2 ucomisd %xmm2, %xmm1 jbe 0x2230a ucomisd %xmm1, %xmm0 jbe 0x2230a leaq 0x18(%rsp), %r14 movb $0x0, -0x8(%r14) movq $0x0, (%r14) leaq 0x20cbf(%rip), %rsi # 0x42e8b leaq 0x10(%rsp), %rdi callq 0x360bc leaq 0x8(%rsp), %rsi movq %rax, %rdi callq 0x101a2 leaq 0x1dfc7(%rip), %rsi # 0x401b1 movq %rax, %rdi callq 0x3613a movq %rsp, %rsi movq %rax, %rdi callq 0x101a2 leaq 0x20d31(%rip), %rsi # 0x42f35 movq %rax, %rdi callq 0x10324 leaq 0x40(%rsp), %rsi movq %rax, %rdi callq 0x361b8 leaq 0x20c83(%rip), %rsi # 0x42ea3 movq %rax, %rdi callq 0x3622a leaq 0x8(%rsp), %rsi movq %rax, %rdi callq 0x101a2 leaq 0x20c70(%rip), %rsi # 0x42eac movq %rax, %rdi callq 0x362a8 leaq 0x30(%rsp), %rsi movq %rax, %rdi callq 0x361b8 leaq 0x21789(%rip), %rsi # 0x439e1 movq %rax, %rdi callq 0x10232 movq %rsp, %rsi movq %rax, %rdi callq 0x101a2 leaq 0x20c3a(%rip), %rsi # 0x42eac movq %rax, %rdi callq 0x362a8 leaq 0x28(%rsp), %rsi movq %rax, %rdi callq 0x361b8 leaq 0x20c2d(%rip), %rsi # 0x42ebb movq %rax, %rdi callq 0x36326 leaq 0x38(%rsp), %rsi movq %rax, %rdi callq 0x101a2 leaq 0x20c02(%rip), %rsi # 0x42eac movq %rax, %rdi callq 0x362a8 leaq 0x20(%rsp), %rsi movq %rax, %rdi callq 0x361b8 leaq 0x20c10(%rip), %rsi # 0x42ed6 movq %rax, %rdi callq 0x363a4 leaq 0x48(%rsp), %rsi movq %rax, %rdi callq 0x361b8 leaq 0x20c58(%rip), %rsi # 0x42f3a movq %rax, %rdi callq 0x36422 movq %rbx, %rdi movq %rax, %rsi callq 0x11fe4 jmp 0x2244b movb $0x1, (%rbx) movq $0x0, 0x8(%rbx) jmp 0x2245d leaq 0x18(%rsp), %r14 movb $0x0, -0x8(%r14) movq $0x0, (%r14) leaq 0x20b69(%rip), %rsi # 0x42e8b leaq 0x10(%rsp), %rdi callq 0x360bc leaq 0x8(%rsp), %rsi movq %rax, %rdi callq 0x101a2 leaq 0x1de71(%rip), %rsi # 0x401b1 movq %rax, %rdi callq 0x3613a movq %rsp, %rsi movq %rax, %rdi callq 0x101a2 leaq 0x20bdb(%rip), %rsi # 0x42f35 movq %rax, %rdi callq 0x10324 leaq 0x40(%rsp), %rsi movq %rax, %rdi callq 0x361b8 leaq 0x20c2e(%rip), %rsi # 0x42fa4 movq %rax, %rdi callq 0x364a0 leaq 0x38(%rsp), %rsi movq %rax, %rdi callq 0x101a2 leaq 0x20b11(%rip), %rsi # 0x42ea3 movq %rax, %rdi callq 0x3622a leaq 0x8(%rsp), %rsi movq %rax, %rdi callq 0x101a2 leaq 0x20afe(%rip), %rsi # 0x42eac movq %rax, %rdi callq 0x362a8 leaq 0x30(%rsp), %rsi movq %rax, %rdi callq 0x361b8 leaq 0x21617(%rip), %rsi # 0x439e1 movq %rax, %rdi callq 0x10232 movq %rsp, %rsi movq %rax, %rdi callq 0x101a2 leaq 0x20ac8(%rip), %rsi # 0x42eac movq %rax, %rdi callq 0x362a8 leaq 0x28(%rsp), %rsi movq %rax, %rdi callq 0x361b8 leaq 0x20bb5(%rip), %rsi # 0x42fb5 movq %rax, %rdi callq 0x3651e leaq 0x38(%rsp), %rsi movq %rax, %rdi callq 0x101a2 leaq 0x20a90(%rip), %rsi # 0x42eac movq %rax, %rdi callq 0x362a8 leaq 0x20(%rsp), %rsi movq %rax, %rdi callq 0x361b8 leaq 0x21555(%rip), %rsi # 0x4398d movq %rax, %rdi callq 0x3659c movq %rbx, %rdi movq %rax, %rsi callq 0x11fe4 movq 0x18(%rsp), %rsi testq %rsi, %rsi je 0x2245d movq %r14, %rdi callq 0xf756 movq %rbx, %rax addq $0x68, %rsp popq %rbx popq %r14 retq jmp 0x2246a movq %rax, %rbx movq 0x18(%rsp), %rsi testq %rsi, %rsi je 0x2247f movq %r14, %rdi callq 0xf756 movq %rbx, %rdi callq 0x99a0
_ZN7testing8internal20DoubleNearPredFormatEPKcS2_S2_ddd: push r14 push rbx sub rsp, 68h movapd xmm3, xmm1 mov rbx, rdi mov [rsp+78h+var_70], rsi mov [rsp+78h+var_78], rdx; __int64 mov [rsp+78h+var_40], rcx movsd [rsp+78h+var_48], xmm0 movsd [rsp+78h+var_50], xmm1 movapd xmm1, xmm0 subsd xmm1, xmm3 andpd xmm1, cs:xmmword_42120 movsd [rsp+78h+var_58], xmm2 movlpd [rsp+78h+var_38], xmm1 ucomisd xmm2, xmm1 jnb loc_222FA movapd xmm1, cs:xmmword_42120 andpd xmm0, xmm1 andpd xmm3, xmm1 minsd xmm3, xmm0 movapd [rsp+78h+var_28], xmm3 movsd xmm1, cs:qword_421E8 movapd xmm0, xmm3 call _nextafter subsd xmm0, qword ptr [rsp+78h+var_28] movsd [rsp+78h+var_30], xmm0 movsd xmm1, [rsp+78h+var_48] ucomisd xmm1, xmm1 jp loc_2230A movsd xmm1, [rsp+78h+var_50] ucomisd xmm1, xmm1 jp loc_2230A movsd xmm1, [rsp+78h+var_58] xorpd xmm2, xmm2 ucomisd xmm1, xmm2 jbe loc_2230A ucomisd xmm0, xmm1 jbe loc_2230A lea r14, [rsp+78h+var_60] mov byte ptr [r14-8], 0 mov qword ptr [r14], 0 lea rsi, aTheDifferenceB; "The difference between " lea rdi, [rsp+78h+var_68]; this call _ZN7testing15AssertionResultlsIA24_cEERS0_RKT_; testing::AssertionResult::operator<<<char [24]>(char [24] const&) lea rsi, [rsp+78h+var_70] mov rdi, rax; this call _ZN7testing15AssertionResultlsIPKcEERS0_RKT_; testing::AssertionResult::operator<<<char const*>(char const* const&) lea rsi, aSmallBlocksAnd+0Dh; " and " mov rdi, rax; this call _ZN7testing15AssertionResultlsIA6_cEERS0_RKT_; testing::AssertionResult::operator<<<char [6]>(char [6] const&) mov rsi, rsp mov rdi, rax; this call _ZN7testing15AssertionResultlsIPKcEERS0_RKT_; testing::AssertionResult::operator<<<char const*>(char const* const&) lea rsi, aWhichIsSmaller+5Fh; " is " mov rdi, rax; this call _ZN7testing15AssertionResultlsIA5_cEERS0_RKT_; testing::AssertionResult::operator<<<char [5]>(char [5] const&) lea rsi, [rsp+78h+var_38] mov rdi, rax; this call _ZN7testing15AssertionResultlsIdEERS0_RKT_; testing::AssertionResult::operator<<<double>(double const&) lea rsi, aWhere; ", where\n" mov rdi, rax; this call _ZN7testing15AssertionResultlsIA9_cEERS0_RKT_; testing::AssertionResult::operator<<<char [9]>(char [9] const&) lea rsi, [rsp+78h+var_70] mov rdi, rax; this call _ZN7testing15AssertionResultlsIPKcEERS0_RKT_; testing::AssertionResult::operator<<<char const*>(char const* const&) lea rsi, aEvaluatesTo; " evaluates to " mov rdi, rax; this call _ZN7testing15AssertionResultlsIA15_cEERS0_RKT_; testing::AssertionResult::operator<<<char [15]>(char [15] const&) lea rsi, [rsp+78h+var_48] mov rdi, rax; this call _ZN7testing15AssertionResultlsIdEERS0_RKT_; testing::AssertionResult::operator<<<double>(double const&) lea rsi, asc_439E0+1; ",\n" mov rdi, rax; this call _ZN7testing15AssertionResultlsIA3_cEERS0_RKT_; testing::AssertionResult::operator<<<char [3]>(char [3] const&) mov rsi, rsp mov rdi, rax; this call _ZN7testing15AssertionResultlsIPKcEERS0_RKT_; testing::AssertionResult::operator<<<char const*>(char const* const&) lea rsi, aEvaluatesTo; " evaluates to " mov rdi, rax; this call _ZN7testing15AssertionResultlsIA15_cEERS0_RKT_; testing::AssertionResult::operator<<<char [15]>(char [15] const&) lea rsi, [rsp+78h+var_50] mov rdi, rax; this call _ZN7testing15AssertionResultlsIdEERS0_RKT_; testing::AssertionResult::operator<<<double>(double const&) lea rsi, aTheAbsErrorPar; ".\nThe abs_error parameter " mov rdi, rax; this call _ZN7testing15AssertionResultlsIA27_cEERS0_RKT_; testing::AssertionResult::operator<<<char [27]>(char [27] const&) lea rsi, [rsp+78h+var_40] mov rdi, rax; this call _ZN7testing15AssertionResultlsIPKcEERS0_RKT_; testing::AssertionResult::operator<<<char const*>(char const* const&) lea rsi, aEvaluatesTo; " evaluates to " mov rdi, rax; this call _ZN7testing15AssertionResultlsIA15_cEERS0_RKT_; testing::AssertionResult::operator<<<char [15]>(char [15] const&) lea rsi, [rsp+78h+var_58] mov rdi, rax; this call _ZN7testing15AssertionResultlsIdEERS0_RKT_; testing::AssertionResult::operator<<<double>(double const&) lea rsi, aWhichIsSmaller; " which is smaller than the minimum dist"... mov rdi, rax; this call _ZN7testing15AssertionResultlsIA100_cEERS0_RKT_; testing::AssertionResult::operator<<<char [100]>(char [100] const&) lea rsi, [rsp+78h+var_30] mov rdi, rax; this call _ZN7testing15AssertionResultlsIdEERS0_RKT_; testing::AssertionResult::operator<<<double>(double const&) lea rsi, aThusMakingThis; ", thus making this EXPECT_NEAR check eq"... mov rdi, rax; this call _ZN7testing15AssertionResultlsIA106_cEERS0_RKT_; testing::AssertionResult::operator<<<char [106]>(char [106] const&) mov rdi, rbx mov rsi, rax call _ZN7testing15AssertionResultC2ERKS0_; testing::AssertionResult::AssertionResult(testing::AssertionResult const&) jmp loc_2244B loc_222FA: mov byte ptr [rbx], 1 mov qword ptr [rbx+8], 0 jmp loc_2245D loc_2230A: lea r14, [rsp+78h+var_60] mov byte ptr [r14-8], 0 mov qword ptr [r14], 0 lea rsi, aTheDifferenceB; "The difference between " lea rdi, [rsp+78h+var_68]; this call _ZN7testing15AssertionResultlsIA24_cEERS0_RKT_; testing::AssertionResult::operator<<<char [24]>(char [24] const&) lea rsi, [rsp+78h+var_70] mov rdi, rax; this call _ZN7testing15AssertionResultlsIPKcEERS0_RKT_; testing::AssertionResult::operator<<<char const*>(char const* const&) lea rsi, aSmallBlocksAnd+0Dh; " and " mov rdi, rax; this call _ZN7testing15AssertionResultlsIA6_cEERS0_RKT_; testing::AssertionResult::operator<<<char [6]>(char [6] const&) mov rsi, rsp mov rdi, rax; this call _ZN7testing15AssertionResultlsIPKcEERS0_RKT_; testing::AssertionResult::operator<<<char const*>(char const* const&) lea rsi, aWhichIsSmaller+5Fh; " is " mov rdi, rax; this call _ZN7testing15AssertionResultlsIA5_cEERS0_RKT_; testing::AssertionResult::operator<<<char [5]>(char [5] const&) lea rsi, [rsp+78h+var_38] mov rdi, rax; this call _ZN7testing15AssertionResultlsIdEERS0_RKT_; testing::AssertionResult::operator<<<double>(double const&) lea rsi, aWhichExceeds; ", which exceeds " mov rdi, rax; this call _ZN7testing15AssertionResultlsIA17_cEERS0_RKT_; testing::AssertionResult::operator<<<char [17]>(char [17] const&) lea rsi, [rsp+78h+var_40] mov rdi, rax; this call _ZN7testing15AssertionResultlsIPKcEERS0_RKT_; testing::AssertionResult::operator<<<char const*>(char const* const&) lea rsi, aWhere; ", where\n" mov rdi, rax; this call _ZN7testing15AssertionResultlsIA9_cEERS0_RKT_; testing::AssertionResult::operator<<<char [9]>(char [9] const&) lea rsi, [rsp+78h+var_70] mov rdi, rax; this call _ZN7testing15AssertionResultlsIPKcEERS0_RKT_; testing::AssertionResult::operator<<<char const*>(char const* const&) lea rsi, aEvaluatesTo; " evaluates to " mov rdi, rax; this call _ZN7testing15AssertionResultlsIA15_cEERS0_RKT_; testing::AssertionResult::operator<<<char [15]>(char [15] const&) lea rsi, [rsp+78h+var_48] mov rdi, rax; this call _ZN7testing15AssertionResultlsIdEERS0_RKT_; testing::AssertionResult::operator<<<double>(double const&) lea rsi, asc_439E0+1; ",\n" mov rdi, rax; this call _ZN7testing15AssertionResultlsIA3_cEERS0_RKT_; testing::AssertionResult::operator<<<char [3]>(char [3] const&) mov rsi, rsp mov rdi, rax; this call _ZN7testing15AssertionResultlsIPKcEERS0_RKT_; testing::AssertionResult::operator<<<char const*>(char const* const&) lea rsi, aEvaluatesTo; " evaluates to " mov rdi, rax; this call _ZN7testing15AssertionResultlsIA15_cEERS0_RKT_; testing::AssertionResult::operator<<<char [15]>(char [15] const&) lea rsi, [rsp+78h+var_50] mov rdi, rax; this call _ZN7testing15AssertionResultlsIdEERS0_RKT_; testing::AssertionResult::operator<<<double>(double const&) lea rsi, aAnd; ", and\n" mov rdi, rax; this call _ZN7testing15AssertionResultlsIA7_cEERS0_RKT_; testing::AssertionResult::operator<<<char [7]>(char [7] const&) lea rsi, [rsp+78h+var_40] mov rdi, rax; this call _ZN7testing15AssertionResultlsIPKcEERS0_RKT_; testing::AssertionResult::operator<<<char const*>(char const* const&) lea rsi, aEvaluatesTo; " evaluates to " mov rdi, rax; this call _ZN7testing15AssertionResultlsIA15_cEERS0_RKT_; testing::AssertionResult::operator<<<char [15]>(char [15] const&) lea rsi, [rsp+78h+var_58] mov rdi, rax; this call _ZN7testing15AssertionResultlsIdEERS0_RKT_; testing::AssertionResult::operator<<<double>(double const&) lea rsi, asc_4398C+1; "." mov rdi, rax; this call _ZN7testing15AssertionResultlsIA2_cEERS0_RKT_; testing::AssertionResult::operator<<<char [2]>(char [2] const&) mov rdi, rbx mov rsi, rax call _ZN7testing15AssertionResultC2ERKS0_; testing::AssertionResult::AssertionResult(testing::AssertionResult const&) loc_2244B: mov rsi, [rsp+78h+var_60] test rsi, rsi jz short loc_2245D mov rdi, r14 call _ZNKSt14default_deleteINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclEPS5_; std::default_delete<std::string>::operator()(std::string*) loc_2245D: mov rax, rbx add rsp, 68h pop rbx pop r14 retn jmp short $+2 loc_2246A: mov rbx, rax mov rsi, [rsp+arg_10] test rsi, rsi jz short loc_2247F mov rdi, r14 call _ZNKSt14default_deleteINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclEPS5_; std::default_delete<std::string>::operator()(std::string*) loc_2247F: mov rdi, rbx call __Unwind_Resume
testing::internal * testing::internal::DoubleNearPredFormat( testing::internal *this, const char *a2, const char *a3, const char *a4, double a5, __m128d a6, double a7) { __m128d v7; // xmm3 double v8; // xmm0_8 testing::AssertionResult *v9; // rax testing::AssertionResult *v10; // rax testing::AssertionResult *v11; // rax testing::AssertionResult *v12; // rax testing::AssertionResult *v13; // rax testing::AssertionResult *v14; // rax testing::AssertionResult *v15; // rax testing::AssertionResult *v16; // rax testing::AssertionResult *v17; // rax testing::AssertionResult *v18; // rax testing::AssertionResult *v19; // rax testing::AssertionResult *v20; // rax testing::AssertionResult *v21; // rax testing::AssertionResult *v22; // rax testing::AssertionResult *v23; // rax testing::AssertionResult *v24; // rax testing::AssertionResult *v25; // rax testing::AssertionResult *v26; // rax testing::AssertionResult *v27; // rax testing::AssertionResult *v28; // rax const testing::AssertionResult *v29; // rax testing::AssertionResult *v30; // rax testing::AssertionResult *v31; // rax testing::AssertionResult *v32; // rax testing::AssertionResult *v33; // rax testing::AssertionResult *v34; // rax testing::AssertionResult *v35; // rax testing::AssertionResult *v36; // rax testing::AssertionResult *v37; // rax testing::AssertionResult *v38; // rax testing::AssertionResult *v39; // rax testing::AssertionResult *v40; // rax testing::AssertionResult *v41; // rax testing::AssertionResult *v42; // rax testing::AssertionResult *v43; // rax testing::AssertionResult *v44; // rax testing::AssertionResult *v45; // rax testing::AssertionResult *v46; // rax testing::AssertionResult *v47; // rax testing::AssertionResult *v48; // rax testing::AssertionResult *v49; // rax const testing::AssertionResult *v50; // rax long long v52; // [rsp+0h] [rbp-78h] BYREF const char *v53; // [rsp+8h] [rbp-70h] BYREF _BYTE v54[8]; // [rsp+10h] [rbp-68h] BYREF long long v55; // [rsp+18h] [rbp-60h] BYREF double v56; // [rsp+20h] [rbp-58h] unsigned long long v57; // [rsp+28h] [rbp-50h] double v58; // [rsp+30h] [rbp-48h] const char *v59; // [rsp+38h] [rbp-40h] BYREF double v60; // [rsp+40h] [rbp-38h] double v61; // [rsp+48h] [rbp-30h] __m128d v62; // [rsp+50h] [rbp-28h] v53 = a2; v52 = (long long)a3; v59 = a4; v58 = a5; v57 = *(_QWORD *)&a6.m128d_f64[0]; v56 = a7; v60 = fabs(a5 - a6.m128d_f64[0]); if ( a7 >= v60 ) { *(_BYTE *)this = 1; *((_QWORD *)this + 1) = 0LL; } else { v7 = _mm_and_pd(a6, (__m128d)xmmword_42120); v7.m128d_f64[0] = fmin(v7.m128d_f64[0], fabs(a5)); v62 = v7; v8 = nextafter(v7.m128d_f64[0], INFINITY) - v7.m128d_f64[0]; v61 = v8; if ( v56 <= 0.0 || v8 <= v56 ) { v54[0] = 0; v55 = 0LL; v30 = (testing::AssertionResult *)testing::AssertionResult::operator<<<char [24]>( (testing::AssertionResult *)v54, v52); v31 = testing::AssertionResult::operator<<<char const*>(v30, &v53); v32 = (testing::AssertionResult *)testing::AssertionResult::operator<<<char [6]>(v31, v52); v33 = testing::AssertionResult::operator<<<char const*>(v32, (const char **)&v52); v34 = testing::AssertionResult::operator<<<char [5]>(v33, (long long)" is "); v35 = (testing::AssertionResult *)testing::AssertionResult::operator<<<double>(v34, v52); v36 = (testing::AssertionResult *)testing::AssertionResult::operator<<<char [17]>(v35, v52); v37 = testing::AssertionResult::operator<<<char const*>(v36, &v59); v38 = (testing::AssertionResult *)testing::AssertionResult::operator<<<char [9]>(v37, v52); v39 = testing::AssertionResult::operator<<<char const*>(v38, &v53); v40 = (testing::AssertionResult *)testing::AssertionResult::operator<<<char [15]>(v39, v52); v41 = (testing::AssertionResult *)testing::AssertionResult::operator<<<double>(v40, v52); v42 = testing::AssertionResult::operator<<<char [3]>(v41, (long long)",\n"); v43 = testing::AssertionResult::operator<<<char const*>(v42, (const char **)&v52); v44 = (testing::AssertionResult *)testing::AssertionResult::operator<<<char [15]>(v43, v52); v45 = (testing::AssertionResult *)testing::AssertionResult::operator<<<double>(v44, v52); v46 = (testing::AssertionResult *)testing::AssertionResult::operator<<<char [7]>(v45, v52); v47 = testing::AssertionResult::operator<<<char const*>(v46, &v59); v48 = (testing::AssertionResult *)testing::AssertionResult::operator<<<char [15]>(v47, v52); v49 = (testing::AssertionResult *)testing::AssertionResult::operator<<<double>(v48, v52); v50 = (const testing::AssertionResult *)testing::AssertionResult::operator<<<char [2]>(v49, v52); testing::AssertionResult::AssertionResult(this, v50); } else { v54[0] = 0; v55 = 0LL; v9 = (testing::AssertionResult *)testing::AssertionResult::operator<<<char [24]>( (testing::AssertionResult *)v54, v52); v10 = testing::AssertionResult::operator<<<char const*>(v9, &v53); v11 = (testing::AssertionResult *)testing::AssertionResult::operator<<<char [6]>(v10, v52); v12 = testing::AssertionResult::operator<<<char const*>(v11, (const char **)&v52); v13 = testing::AssertionResult::operator<<<char [5]>(v12, (long long)" is "); v14 = (testing::AssertionResult *)testing::AssertionResult::operator<<<double>(v13, v52); v15 = (testing::AssertionResult *)testing::AssertionResult::operator<<<char [9]>(v14, v52); v16 = testing::AssertionResult::operator<<<char const*>(v15, &v53); v17 = (testing::AssertionResult *)testing::AssertionResult::operator<<<char [15]>(v16, v52); v18 = (testing::AssertionResult *)testing::AssertionResult::operator<<<double>(v17, v52); v19 = testing::AssertionResult::operator<<<char [3]>(v18, (long long)",\n"); v20 = testing::AssertionResult::operator<<<char const*>(v19, (const char **)&v52); v21 = (testing::AssertionResult *)testing::AssertionResult::operator<<<char [15]>(v20, v52); v22 = (testing::AssertionResult *)testing::AssertionResult::operator<<<double>(v21, v52); v23 = (testing::AssertionResult *)testing::AssertionResult::operator<<<char [27]>(v22, v52); v24 = testing::AssertionResult::operator<<<char const*>(v23, &v59); v25 = (testing::AssertionResult *)testing::AssertionResult::operator<<<char [15]>(v24, v52); v26 = (testing::AssertionResult *)testing::AssertionResult::operator<<<double>(v25, v52); v27 = (testing::AssertionResult *)testing::AssertionResult::operator<<<char [100]>(v26, v52); v28 = (testing::AssertionResult *)testing::AssertionResult::operator<<<double>(v27, v52); v29 = (const testing::AssertionResult *)testing::AssertionResult::operator<<<char [106]>(v28, v52); testing::AssertionResult::AssertionResult(this, v29); } if ( v55 ) std::default_delete<std::string>::operator()((long long)&v55, v55); } return this; }
DoubleNearPredFormat: PUSH R14 PUSH RBX SUB RSP,0x68 MOVAPD XMM3,XMM1 MOV RBX,RDI MOV qword ptr [RSP + 0x8],RSI MOV qword ptr [RSP],RDX MOV qword ptr [RSP + 0x38],RCX MOVSD qword ptr [RSP + 0x30],XMM0 MOVSD qword ptr [RSP + 0x28],XMM1 MOVAPD XMM1,XMM0 SUBSD XMM1,XMM3 ANDPD XMM1,xmmword ptr [0x00142120] MOVSD qword ptr [RSP + 0x20],XMM2 MOVLPD qword ptr [RSP + 0x40],XMM1 UCOMISD XMM2,XMM1 JNC 0x001222fa MOVAPD XMM1,xmmword ptr [0x00142120] ANDPD XMM0,XMM1 ANDPD XMM3,XMM1 MINSD XMM3,XMM0 MOVAPD xmmword ptr [RSP + 0x50],XMM3 MOVSD XMM1,qword ptr [0x001421e8] MOVAPD XMM0,XMM3 CALL 0x00109370 SUBSD XMM0,qword ptr [RSP + 0x50] MOVSD qword ptr [RSP + 0x48],XMM0 MOVSD XMM1,qword ptr [RSP + 0x30] UCOMISD XMM1,XMM1 JP 0x0012230a MOVSD XMM1,qword ptr [RSP + 0x28] UCOMISD XMM1,XMM1 JP 0x0012230a MOVSD XMM1,qword ptr [RSP + 0x20] XORPD XMM2,XMM2 UCOMISD XMM1,XMM2 JBE 0x0012230a UCOMISD XMM0,XMM1 JBE 0x0012230a LEA R14,[RSP + 0x18] MOV byte ptr [R14 + -0x8],0x0 MOV qword ptr [R14],0x0 LAB_001221c5: LEA RSI,[0x142e8b] LEA RDI,[RSP + 0x10] CALL 0x001360bc LEA RSI,[RSP + 0x8] MOV RDI,RAX CALL 0x001101a2 LEA RSI,[0x1401b1] MOV RDI,RAX CALL 0x0013613a MOV RSI,RSP MOV RDI,RAX CALL 0x001101a2 LEA RSI,[0x142f35] MOV RDI,RAX CALL 0x00110324 LEA RSI,[RSP + 0x40] MOV RDI,RAX CALL 0x001361b8 LEA RSI,[0x142ea3] MOV RDI,RAX CALL 0x0013622a LEA RSI,[RSP + 0x8] MOV RDI,RAX CALL 0x001101a2 LEA RSI,[0x142eac] MOV RDI,RAX CALL 0x001362a8 LEA RSI,[RSP + 0x30] MOV RDI,RAX CALL 0x001361b8 LEA RSI,[0x1439e1] MOV RDI,RAX CALL 0x00110232 MOV RSI,RSP MOV RDI,RAX CALL 0x001101a2 LEA RSI,[0x142eac] MOV RDI,RAX CALL 0x001362a8 LEA RSI,[RSP + 0x28] MOV RDI,RAX CALL 0x001361b8 LEA RSI,[0x142ebb] MOV RDI,RAX CALL 0x00136326 LEA RSI,[RSP + 0x38] MOV RDI,RAX CALL 0x001101a2 LEA RSI,[0x142eac] MOV RDI,RAX CALL 0x001362a8 LEA RSI,[RSP + 0x20] MOV RDI,RAX CALL 0x001361b8 LEA RSI,[0x142ed6] MOV RDI,RAX CALL 0x001363a4 LEA RSI,[RSP + 0x48] MOV RDI,RAX CALL 0x001361b8 LEA RSI,[0x142f3a] MOV RDI,RAX CALL 0x00136422 MOV RDI,RBX MOV RSI,RAX CALL 0x00111fe4 JMP 0x0012244b LAB_001222fa: MOV byte ptr [RBX],0x1 MOV qword ptr [RBX + 0x8],0x0 JMP 0x0012245d LAB_0012230a: LEA R14,[RSP + 0x18] MOV byte ptr [R14 + -0x8],0x0 MOV qword ptr [R14],0x0 LAB_0012231b: LEA RSI,[0x142e8b] LEA RDI,[RSP + 0x10] CALL 0x001360bc LEA RSI,[RSP + 0x8] MOV RDI,RAX CALL 0x001101a2 LEA RSI,[0x1401b1] MOV RDI,RAX CALL 0x0013613a MOV RSI,RSP MOV RDI,RAX CALL 0x001101a2 LEA RSI,[0x142f35] MOV RDI,RAX CALL 0x00110324 LEA RSI,[RSP + 0x40] MOV RDI,RAX CALL 0x001361b8 LEA RSI,[0x142fa4] MOV RDI,RAX CALL 0x001364a0 LEA RSI,[RSP + 0x38] MOV RDI,RAX CALL 0x001101a2 LEA RSI,[0x142ea3] MOV RDI,RAX CALL 0x0013622a LEA RSI,[RSP + 0x8] MOV RDI,RAX CALL 0x001101a2 LEA RSI,[0x142eac] MOV RDI,RAX CALL 0x001362a8 LEA RSI,[RSP + 0x30] MOV RDI,RAX CALL 0x001361b8 LEA RSI,[0x1439e1] MOV RDI,RAX CALL 0x00110232 MOV RSI,RSP MOV RDI,RAX CALL 0x001101a2 LEA RSI,[0x142eac] MOV RDI,RAX CALL 0x001362a8 LEA RSI,[RSP + 0x28] MOV RDI,RAX CALL 0x001361b8 LEA RSI,[0x142fb5] MOV RDI,RAX CALL 0x0013651e LEA RSI,[RSP + 0x38] MOV RDI,RAX CALL 0x001101a2 LEA RSI,[0x142eac] MOV RDI,RAX CALL 0x001362a8 LEA RSI,[RSP + 0x20] MOV RDI,RAX CALL 0x001361b8 LEA RSI,[0x14398d] MOV RDI,RAX CALL 0x0013659c MOV RDI,RBX MOV RSI,RAX CALL 0x00111fe4 LAB_0012244b: MOV RSI,qword ptr [RSP + 0x18] TEST RSI,RSI JZ 0x0012245d MOV RDI,R14 CALL 0x0010f756 LAB_0012245d: MOV RAX,RBX ADD RSP,0x68 POP RBX POP R14 RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* testing::internal::DoubleNearPredFormat(char const*, char const*, char const*, double, double, double) */ internal * __thiscall testing::internal::DoubleNearPredFormat (internal *this,char *param_1,char *param_2,char *param_3,double param_4,double param_5, double param_6) { AssertionResult *pAVar1; ulong in_XMM1_Qb; char *local_78; char *local_70; AssertionResult local_68 [8]; string *local_60; double local_58; double local_50; double local_48; char *local_40; double local_38; double local_30; double local_28; ulong uStack_20; local_38 = (double)((ulong)(param_4 - param_5) & _DAT_00142120); if (local_38 <= param_6) { *this = (internal)0x1; *(int8 *)(this + 8) = 0; } else { uStack_20 = in_XMM1_Qb & _UNK_00142128; local_28 = (double)((ulong)param_5 & _DAT_00142120); if ((double)((ulong)param_4 & _DAT_00142120) <= (double)((ulong)param_5 & _DAT_00142120)) { local_28 = (double)((ulong)param_4 & _DAT_00142120); } local_78 = param_2; local_70 = param_1; local_58 = param_6; local_50 = param_5; local_48 = param_4; local_40 = param_3; local_30 = nextafter(local_28,DAT_001421e8); local_30 = local_30 - local_28; if ((((NAN(local_48)) || (NAN(local_50))) || (local_58 <= 0.0)) || (local_30 <= local_58)) { local_68[0] = (AssertionResult)0x0; local_60 = (string *)0x0; /* try { // try from 0012231b to 0012244a has its CatchHandler @ 0012246a */ pAVar1 = AssertionResult::operator<<(local_68,"The difference between "); pAVar1 = AssertionResult::operator<<(pAVar1,&local_70); pAVar1 = AssertionResult::operator<<(pAVar1," and "); pAVar1 = AssertionResult::operator<<(pAVar1,&local_78); pAVar1 = AssertionResult::operator<<(pAVar1," is "); pAVar1 = AssertionResult::operator<<(pAVar1,&local_38); pAVar1 = AssertionResult::operator<<(pAVar1,", which exceeds "); pAVar1 = AssertionResult::operator<<(pAVar1,&local_40); pAVar1 = AssertionResult::operator<<(pAVar1,", where\n"); pAVar1 = AssertionResult::operator<<(pAVar1,&local_70); pAVar1 = AssertionResult::operator<<(pAVar1," evaluates to "); pAVar1 = AssertionResult::operator<<(pAVar1,&local_48); pAVar1 = AssertionResult::operator<<(pAVar1,",\n"); pAVar1 = AssertionResult::operator<<(pAVar1,&local_78); pAVar1 = AssertionResult::operator<<(pAVar1," evaluates to "); pAVar1 = AssertionResult::operator<<(pAVar1,&local_50); pAVar1 = AssertionResult::operator<<(pAVar1,", and\n"); pAVar1 = AssertionResult::operator<<(pAVar1,&local_40); pAVar1 = AssertionResult::operator<<(pAVar1," evaluates to "); pAVar1 = AssertionResult::operator<<(pAVar1,&local_58); pAVar1 = AssertionResult::operator<<(pAVar1,"."); AssertionResult::AssertionResult((AssertionResult *)this,pAVar1); } else { local_68[0] = (AssertionResult)0x0; local_60 = (string *)0x0; /* try { // try from 001221c5 to 001222f4 has its CatchHandler @ 00122468 */ pAVar1 = AssertionResult::operator<<(local_68,"The difference between "); pAVar1 = AssertionResult::operator<<(pAVar1,&local_70); pAVar1 = AssertionResult::operator<<(pAVar1," and "); pAVar1 = AssertionResult::operator<<(pAVar1,&local_78); pAVar1 = AssertionResult::operator<<(pAVar1," is "); pAVar1 = AssertionResult::operator<<(pAVar1,&local_38); pAVar1 = AssertionResult::operator<<(pAVar1,", where\n"); pAVar1 = AssertionResult::operator<<(pAVar1,&local_70); pAVar1 = AssertionResult::operator<<(pAVar1," evaluates to "); pAVar1 = AssertionResult::operator<<(pAVar1,&local_48); pAVar1 = AssertionResult::operator<<(pAVar1,",\n"); pAVar1 = AssertionResult::operator<<(pAVar1,&local_78); pAVar1 = AssertionResult::operator<<(pAVar1," evaluates to "); pAVar1 = AssertionResult::operator<<(pAVar1,&local_50); pAVar1 = AssertionResult::operator<<(pAVar1,".\nThe abs_error parameter "); pAVar1 = AssertionResult::operator<<(pAVar1,&local_40); pAVar1 = AssertionResult::operator<<(pAVar1," evaluates to "); pAVar1 = AssertionResult::operator<<(pAVar1,&local_58); pAVar1 = AssertionResult::operator<< (pAVar1, " which is smaller than the minimum distance between doubles for numbers of this magnitude which is " ); pAVar1 = AssertionResult::operator<<(pAVar1,&local_30); pAVar1 = AssertionResult::operator<< (pAVar1, ", thus making this EXPECT_NEAR check equivalent to EXPECT_EQUAL. Consider using EXPECT_DOUBLE_EQ instead." ); AssertionResult::AssertionResult((AssertionResult *)this,pAVar1); } if (local_60 != (string *)0x0) { std::default_delete<std::__cxx11::string>::operator() ((default_delete<std::__cxx11::string> *)&local_60,local_60); } } return this; }
19,468
nglog::GetLoggingDirectories[abi:cxx11]()
ng-log[P]ng-log/src/logging.cc
const vector<string>& GetLoggingDirectories() { // Not strictly thread-safe but we're called early in InitGoogle(). if (logging_directories_list == nullptr) { logging_directories_list = std::make_unique<std::vector<std::string>>(); if (!FLAGS_log_dir.empty()) { // Ensure the specified path ends with a directory delimiter. if (std::find(std::begin(possible_dir_delim), std::end(possible_dir_delim), FLAGS_log_dir.back()) == std::end(possible_dir_delim)) { logging_directories_list->push_back(FLAGS_log_dir + "/"); } else { logging_directories_list->push_back(FLAGS_log_dir); } } else { GetTempDirectories(*logging_directories_list); #ifdef NGLOG_OS_WINDOWS char tmp[MAX_PATH]; if (GetWindowsDirectoryA(tmp, MAX_PATH)) logging_directories_list->push_back(tmp); logging_directories_list->push_back(".\\"); #else logging_directories_list->push_back("./"); #endif } } return *logging_directories_list; }
O0
cpp
nglog::GetLoggingDirectories[abi:cxx11](): pushq %rbp movq %rsp, %rbp subq $0xa0, %rsp leaq 0x6eb4e(%rip), %rdi # 0x7fe00 xorl %eax, %eax movl %eax, %esi callq 0x18690 testb $0x1, %al jne 0x112c4 jmp 0x11490 leaq -0x8(%rbp), %rdi callq 0x186c0 leaq 0x6eb2c(%rip), %rdi # 0x7fe00 leaq -0x8(%rbp), %rsi callq 0x18720 leaq -0x8(%rbp), %rdi callq 0x18640 leaq 0x5e3d3(%rip), %rax # 0x6f6c0 movq (%rax), %rdi callq 0x9c30 testb $0x1, %al jne 0x113e3 leaq 0x3c144(%rip), %rdi # 0x4d448 callq 0x187a0 movq %rax, -0x78(%rbp) leaq 0x3c134(%rip), %rdi # 0x4d448 callq 0x187b0 movq %rax, -0x70(%rbp) leaq 0x5e39c(%rip), %rax # 0x6f6c0 movq (%rax), %rdi callq 0x9520 movq -0x78(%rbp), %rdi movq -0x70(%rbp), %rsi movq %rax, %rdx callq 0x18750 movq %rax, -0x68(%rbp) leaq 0x3c101(%rip), %rdi # 0x4d448 callq 0x187b0 movq %rax, %rcx movq -0x68(%rbp), %rax cmpq %rcx, %rax jne 0x113c0 leaq 0x6eaa1(%rip), %rdi # 0x7fe00 callq 0x187d0 movq %rax, -0x88(%rbp) leaq 0x5e34e(%rip), %rax # 0x6f6c0 movq (%rax), %rsi leaq 0x3c475(%rip), %rdx # 0x4d7f1 leaq -0x28(%rbp), %rdi movq %rdi, -0x80(%rbp) callq 0x187f0 movq -0x88(%rbp), %rdi movq -0x80(%rbp), %rsi callq 0x17da0 jmp 0x1139b leaq -0x28(%rbp), %rdi callq 0x9ea8 jmp 0x113de movq %rax, %rcx movl %edx, %eax movq %rcx, -0x30(%rbp) movl %eax, -0x34(%rbp) leaq -0x28(%rbp), %rdi callq 0x9ea8 jmp 0x114a5 leaq 0x6ea39(%rip), %rdi # 0x7fe00 callq 0x187d0 movq %rax, %rdi leaq 0x5e2ea(%rip), %rax # 0x6f6c0 movq (%rax), %rsi callq 0x18870 jmp 0x1148e leaq 0x6ea16(%rip), %rdi # 0x7fe00 movq %rdi, -0xa0(%rbp) callq 0x188e0 movq %rax, %rdi callq 0x114b0 movq -0xa0(%rbp), %rdi callq 0x187d0 movq %rax, -0x98(%rbp) leaq -0x59(%rbp), %rdi movq %rdi, -0x90(%rbp) callq 0x9d10 movq -0x90(%rbp), %rdx leaq 0x3c3c1(%rip), %rsi # 0x4d7f0 leaq -0x58(%rbp), %rdi callq 0xcb30 jmp 0x1143a movq -0x98(%rbp), %rdi leaq -0x58(%rbp), %rsi callq 0x17da0 jmp 0x1144c leaq -0x58(%rbp), %rdi callq 0x9ea8 leaq -0x59(%rbp), %rdi callq 0x97c0 jmp 0x1148e movq %rax, %rcx movl %edx, %eax movq %rcx, -0x30(%rbp) movl %eax, -0x34(%rbp) jmp 0x11483 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x30(%rbp) movl %eax, -0x34(%rbp) leaq -0x58(%rbp), %rdi callq 0x9ea8 leaq -0x59(%rbp), %rdi callq 0x97c0 jmp 0x114a5 jmp 0x11490 leaq 0x6e969(%rip), %rdi # 0x7fe00 callq 0x188e0 addq $0xa0, %rsp popq %rbp retq movq -0x30(%rbp), %rdi callq 0x9d00 nop
_ZN5nglog21GetLoggingDirectoriesB5cxx11Ev: push rbp mov rbp, rsp sub rsp, 0A0h lea rdi, _ZN5nglogL24logging_directories_listB5cxx11E; nglog::logging_directories_list xor eax, eax mov esi, eax call _ZSteqISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EESt14default_deleteIS8_EEbRKSt10unique_ptrIT_T0_EDn; std::operator==<std::vector<std::string>,std::default_delete<std::vector<std::string>>>(std::unique_ptr<std::vector<std::string>> const&,decltype(nullptr)) test al, 1 jnz short loc_112C4 jmp loc_11490 loc_112C4: lea rdi, [rbp+var_8] call _ZSt11make_uniqueISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EEJEENSt9_MakeUniqIT_E15__single_objectEDpOT0_; std::make_unique<std::vector<std::string>>() lea rdi, _ZN5nglogL24logging_directories_listB5cxx11E; nglog::logging_directories_list lea rsi, [rbp+var_8] call _ZNSt10unique_ptrISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EESt14default_deleteIS8_EEaSEOSB_; std::unique_ptr<std::vector<std::string>>::operator=(std::unique_ptr<std::vector<std::string>>&&) lea rdi, [rbp+var_8]; void * call _ZNSt10unique_ptrISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EESt14default_deleteIS8_EED2Ev; std::unique_ptr<std::vector<std::string>>::~unique_ptr() lea rax, _ZN3fLS13FLAGS_log_dirB5cxx11E; fLS::FLAGS_log_dir mov rdi, [rax] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void) test al, 1 jnz loc_113E3 lea rdi, _ZN5nglog12_GLOBAL__N_118possible_dir_delimE; nglog::`anonymous namespace'::possible_dir_delim call _ZSt5beginIKcLm1EEPT_RAT0__S1_; std::begin<char const,1ul>(char const(&)[1ul]) mov [rbp+var_78], rax lea rdi, _ZN5nglog12_GLOBAL__N_118possible_dir_delimE; nglog::`anonymous namespace'::possible_dir_delim call _ZSt3endIKcLm1EEPT_RAT0__S1_; std::end<char const,1ul>(char const(&)[1ul]) mov [rbp+var_70], rax lea rax, _ZN3fLS13FLAGS_log_dirB5cxx11E; fLS::FLAGS_log_dir mov rdi, [rax] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4backEv; std::string::back(void) mov rdi, [rbp+var_78] mov rsi, [rbp+var_70] mov rdx, rax call _ZSt4findIPKccET_S2_S2_RKT0_; std::find<char const*,char>(char const*,char const*,char const&) mov [rbp+var_68], rax lea rdi, _ZN5nglog12_GLOBAL__N_118possible_dir_delimE; nglog::`anonymous namespace'::possible_dir_delim call _ZSt3endIKcLm1EEPT_RAT0__S1_; std::end<char const,1ul>(char const(&)[1ul]) mov rcx, rax mov rax, [rbp+var_68] cmp rax, rcx jnz short loc_113C0 lea rdi, _ZN5nglogL24logging_directories_listB5cxx11E; nglog::logging_directories_list call _ZNKSt10unique_ptrISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EESt14default_deleteIS8_EEptEv; std::unique_ptr<std::vector<std::string>>::operator->(void) mov [rbp+var_88], rax lea rax, _ZN3fLS13FLAGS_log_dirB5cxx11E; fLS::FLAGS_log_dir mov rsi, [rax] lea rdx, asc_4D7F0+1; "/" lea rdi, [rbp+var_28] mov [rbp+var_80], rdi call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_; std::operator+<char>(std::string const&,char const*) mov rdi, [rbp+var_88] mov rsi, [rbp+var_80] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_; std::vector<std::string>::push_back(std::string&&) jmp short $+2 loc_1139B: lea rdi, [rbp+var_28]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_113DE mov rcx, rax mov eax, edx mov [rbp+var_30], rcx mov [rbp+var_34], eax lea rdi, [rbp+var_28]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp loc_114A5 loc_113C0: lea rdi, _ZN5nglogL24logging_directories_listB5cxx11E; nglog::logging_directories_list call _ZNKSt10unique_ptrISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EESt14default_deleteIS8_EEptEv; std::unique_ptr<std::vector<std::string>>::operator->(void) mov rdi, rax lea rax, _ZN3fLS13FLAGS_log_dirB5cxx11E; fLS::FLAGS_log_dir mov rsi, [rax] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_; std::vector<std::string>::push_back(std::string const&) loc_113DE: jmp loc_1148E loc_113E3: lea rdi, _ZN5nglogL24logging_directories_listB5cxx11E; nglog::logging_directories_list mov [rbp+var_A0], rdi call _ZNKSt10unique_ptrISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EESt14default_deleteIS8_EEdeEv; std::unique_ptr<std::vector<std::string>>::operator*(void) mov rdi, rax call _ZN5nglogL18GetTempDirectoriesERSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EE; nglog::GetTempDirectories(std::vector<std::string> &) mov rdi, [rbp+var_A0] call _ZNKSt10unique_ptrISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EESt14default_deleteIS8_EEptEv; std::unique_ptr<std::vector<std::string>>::operator->(void) mov [rbp+var_98], rax lea rdi, [rbp+var_59] mov [rbp+var_90], rdi call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdx, [rbp+var_90] lea rsi, asc_4D7F0; "./" lea rdi, [rbp+var_58] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_1143A: mov rdi, [rbp+var_98] lea rsi, [rbp+var_58] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_; std::vector<std::string>::push_back(std::string&&) jmp short $+2 loc_1144C: lea rdi, [rbp+var_58]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rbp+var_59] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() jmp short loc_1148E mov rcx, rax mov eax, edx mov [rbp+var_30], rcx mov [rbp+var_34], eax jmp short loc_11483 mov rcx, rax mov eax, edx mov [rbp+var_30], rcx mov [rbp+var_34], eax lea rdi, [rbp+var_58]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_11483: lea rdi, [rbp+var_59] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() jmp short loc_114A5 loc_1148E: jmp short $+2 loc_11490: lea rdi, _ZN5nglogL24logging_directories_listB5cxx11E; nglog::logging_directories_list call _ZNKSt10unique_ptrISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EESt14default_deleteIS8_EEdeEv; std::unique_ptr<std::vector<std::string>>::operator*(void) add rsp, 0A0h pop rbp retn loc_114A5: mov rdi, [rbp+var_30] call __Unwind_Resume
long long nglog::GetLoggingDirectories[abi:cxx11]() { long long v0; // rax long long v1; // rax long long v2; // rax long long v4; // [rsp+8h] [rbp-98h] long long v5; // [rsp+18h] [rbp-88h] long long v6; // [rsp+28h] [rbp-78h] long long v7; // [rsp+30h] [rbp-70h] long long v8; // [rsp+38h] [rbp-68h] char v9; // [rsp+47h] [rbp-59h] BYREF _BYTE v10[36]; // [rsp+48h] [rbp-58h] BYREF _BYTE v11[32]; // [rsp+78h] [rbp-28h] BYREF _BYTE v12[8]; // [rsp+98h] [rbp-8h] BYREF if ( (std::operator==<std::vector<std::string>,std::default_delete<std::vector<std::string>>>( &nglog::logging_directories_list[abi:cxx11], 0LL) & 1) != 0 ) { std::make_unique<std::vector<std::string>>(v12); std::unique_ptr<std::vector<std::string>>::operator=(&nglog::logging_directories_list[abi:cxx11], v12); std::unique_ptr<std::vector<std::string>>::~unique_ptr(v12); if ( (std::string::empty(&fLS::FLAGS_log_dir_buf[abi:cxx11]) & 1) != 0 ) { v2 = ((long long (*)(void))std::unique_ptr<std::vector<std::string>>::operator*)(); nglog::GetTempDirectories(v2); v4 = std::unique_ptr<std::vector<std::string>>::operator->(&nglog::logging_directories_list[abi:cxx11]); std::allocator<char>::allocator(); std::string::basic_string<std::allocator<char>>((long long)v10, (long long)"./", (long long)&v9); std::vector<std::string>::push_back(v4, v10); std::string::~string(v10); std::allocator<char>::~allocator(&v9); } else { v6 = std::begin<char const,1ul>(&nglog::`anonymous namespace'::possible_dir_delim); v7 = std::end<char const,1ul>(&nglog::`anonymous namespace'::possible_dir_delim); v0 = std::string::back(&fLS::FLAGS_log_dir_buf[abi:cxx11]); v8 = std::find<char const*,char>(v6, v7, v0); if ( v8 == std::end<char const,1ul>(&nglog::`anonymous namespace'::possible_dir_delim) ) { v5 = std::unique_ptr<std::vector<std::string>>::operator->(&nglog::logging_directories_list[abi:cxx11]); std::operator+<char>(v11, &fLS::FLAGS_log_dir_buf[abi:cxx11], "/"); std::vector<std::string>::push_back(v5, v11); std::string::~string(v11); } else { v1 = std::unique_ptr<std::vector<std::string>>::operator->(&nglog::logging_directories_list[abi:cxx11]); std::vector<std::string>::push_back(v1, &fLS::FLAGS_log_dir_buf[abi:cxx11]); } } } return std::unique_ptr<std::vector<std::string>>::operator*(&nglog::logging_directories_list[abi:cxx11]); }
GetLoggingDirectories[abi:cxx11]: PUSH RBP MOV RBP,RSP SUB RSP,0xa0 LEA RDI,[0x17fe00] XOR EAX,EAX MOV ESI,EAX CALL 0x00118690 TEST AL,0x1 JNZ 0x001112c4 JMP 0x00111490 LAB_001112c4: LEA RDI,[RBP + -0x8] CALL 0x001186c0 LEA RDI,[0x17fe00] LEA RSI,[RBP + -0x8] CALL 0x00118720 LEA RDI,[RBP + -0x8] CALL 0x00118640 LEA RAX,[0x16f6c0] MOV RDI,qword ptr [RAX] CALL 0x00109c30 TEST AL,0x1 JNZ 0x001113e3 LEA RDI,[0x14d448] CALL 0x001187a0 MOV qword ptr [RBP + -0x78],RAX LEA RDI,[0x14d448] CALL 0x001187b0 MOV qword ptr [RBP + -0x70],RAX LEA RAX,[0x16f6c0] MOV RDI,qword ptr [RAX] CALL 0x00109520 MOV RDI,qword ptr [RBP + -0x78] MOV RSI,qword ptr [RBP + -0x70] MOV RDX,RAX CALL 0x00118750 MOV qword ptr [RBP + -0x68],RAX LEA RDI,[0x14d448] CALL 0x001187b0 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x68] CMP RAX,RCX JNZ 0x001113c0 LEA RDI,[0x17fe00] CALL 0x001187d0 MOV qword ptr [RBP + -0x88],RAX LEA RAX,[0x16f6c0] MOV RSI,qword ptr [RAX] LEA RDX,[0x14d7f1] LEA RDI,[RBP + -0x28] MOV qword ptr [RBP + -0x80],RDI CALL 0x001187f0 MOV RDI,qword ptr [RBP + -0x88] MOV RSI,qword ptr [RBP + -0x80] LAB_00111394: CALL 0x00117da0 LAB_00111399: JMP 0x0011139b LAB_0011139b: LEA RDI,[RBP + -0x28] CALL 0x00109ea8 JMP 0x001113de LAB_001113c0: LEA RDI,[0x17fe00] CALL 0x001187d0 MOV RDI,RAX LEA RAX,[0x16f6c0] MOV RSI,qword ptr [RAX] CALL 0x00118870 LAB_001113de: JMP 0x0011148e LAB_001113e3: LEA RDI,[0x17fe00] MOV qword ptr [RBP + -0xa0],RDI CALL 0x001188e0 MOV RDI,RAX CALL 0x001114b0 MOV RDI,qword ptr [RBP + -0xa0] CALL 0x001187d0 MOV qword ptr [RBP + -0x98],RAX LEA RDI,[RBP + -0x59] MOV qword ptr [RBP + -0x90],RDI CALL 0x00109d10 MOV RDX,qword ptr [RBP + -0x90] LAB_00111428: LEA RSI,[0x14d7f0] LEA RDI,[RBP + -0x58] CALL 0x0010cb30 JMP 0x0011143a LAB_0011143a: MOV RDI,qword ptr [RBP + -0x98] LEA RSI,[RBP + -0x58] CALL 0x00117da0 LAB_0011144a: JMP 0x0011144c LAB_0011144c: LEA RDI,[RBP + -0x58] CALL 0x00109ea8 LEA RDI,[RBP + -0x59] CALL 0x001097c0 JMP 0x0011148e LAB_0011148e: JMP 0x00111490 LAB_00111490: LEA RDI,[0x17fe00] CALL 0x001188e0 ADD RSP,0xa0 POP RBP RET
/* nglog::GetLoggingDirectories[abi:cxx11]() */ void nglog::GetLoggingDirectories_abi_cxx11_(void) { bool bVar1; ulong uVar2; char *pcVar3; char *pcVar4; char *pcVar5; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *pvVar6; vector *pvVar7; allocator local_61; string local_60 [48]; string local_30 [32]; unique_ptr local_10 [8]; bVar1 = std::operator==((unique_ptr *)&logging_directories_list_abi_cxx11_, (_func_decltype_nullptr *)0x0); if (bVar1) { std::make_unique<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>(); std:: unique_ptr<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>> ::operator=((unique_ptr<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>> *)&logging_directories_list_abi_cxx11_,local_10); std:: unique_ptr<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>> ::~unique_ptr((unique_ptr<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>> *)local_10); uVar2 = std::__cxx11::string::empty(); if ((uVar2 & 1) == 0) { pcVar3 = std::begin<char_const,1ul>("/N5nglog4base6LoggerE"); pcVar4 = std::end<char_const,1ul>("/N5nglog4base6LoggerE"); pcVar5 = (char *)std::__cxx11::string::back(); pcVar3 = std::find<char_const*,char>(pcVar3,pcVar4,pcVar5); pcVar4 = std::end<char_const,1ul>("/N5nglog4base6LoggerE"); if (pcVar3 == pcVar4) { pvVar6 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *) std:: unique_ptr<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>> ::operator->((unique_ptr<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>> *)&logging_directories_list_abi_cxx11_); std::operator+(local_30,fLS::FLAGS_log_dir_abi_cxx11_); /* try { // try from 00111394 to 00111398 has its CatchHandler @ 001113a6 */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::push_back (pvVar6,local_30); std::__cxx11::string::~string(local_30); } else { pvVar6 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *) std:: unique_ptr<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>> ::operator->((unique_ptr<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>> *)&logging_directories_list_abi_cxx11_); std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::push_back (pvVar6,(string *)fLS::FLAGS_log_dir_abi_cxx11_); } } else { pvVar7 = (vector *) std:: unique_ptr<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>> ::operator*((unique_ptr<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>> *)&logging_directories_list_abi_cxx11_); GetTempDirectories(pvVar7); pvVar6 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *) std:: unique_ptr<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>> ::operator->((unique_ptr<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>> *)&logging_directories_list_abi_cxx11_); std::allocator<char>::allocator(); /* try { // try from 00111428 to 00111437 has its CatchHandler @ 00111460 */ std::__cxx11::string::string<std::allocator<char>>(local_60,"./",&local_61); /* try { // try from 0011143a to 00111449 has its CatchHandler @ 0011146e */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::push_back (pvVar6,local_60); std::__cxx11::string::~string(local_60); std::allocator<char>::~allocator((allocator<char> *)&local_61); } } std:: unique_ptr<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>> ::operator*((unique_ptr<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>> *)&logging_directories_list_abi_cxx11_); return; }
19,469
ggml_graph_compute_thread_ready
ngxson[P]ggml-easy/ggml/src/ggml-cpu/ggml-cpu.c
static inline bool ggml_graph_compute_thread_ready(struct ggml_compute_state * state) { struct ggml_threadpool * threadpool = state->threadpool; if (state->pending || threadpool->stop || threadpool->pause) { return true; } // check for new graph/work int new_graph = atomic_load_explicit(&threadpool->n_graph, memory_order_relaxed); if (new_graph != state->last_graph) { state->pending = ggml_graph_compute_thread_active(state); state->last_graph = new_graph; } return state->pending; }
O0
c
ggml_graph_compute_thread_ready: subq $0x28, %rsp movq %rdi, 0x18(%rsp) movq 0x18(%rsp), %rax movq 0x210(%rax), %rax movq %rax, 0x10(%rsp) movq 0x18(%rsp), %rax testb $0x1, 0x20c(%rax) jne 0x14fb4 movq 0x10(%rsp), %rax testb $0x1, 0x104(%rax) jne 0x14fb4 movq 0x10(%rsp), %rax testb $0x1, 0x105(%rax) je 0x14fbb movb $0x1, 0x27(%rsp) jmp 0x1501a movq 0x10(%rsp), %rax movl 0x68(%rax), %eax movl %eax, 0x8(%rsp) movl 0x8(%rsp), %eax movl %eax, 0xc(%rsp) movl 0xc(%rsp), %eax movq 0x18(%rsp), %rcx cmpl 0x208(%rcx), %eax je 0x15009 movq 0x18(%rsp), %rdi callq 0x15030 movb %al, %cl movq 0x18(%rsp), %rax andb $0x1, %cl movb %cl, 0x20c(%rax) movl 0xc(%rsp), %ecx movq 0x18(%rsp), %rax movl %ecx, 0x208(%rax) movq 0x18(%rsp), %rax movb 0x20c(%rax), %al andb $0x1, %al movb %al, 0x27(%rsp) movb 0x27(%rsp), %al andb $0x1, %al addq $0x28, %rsp retq nopw %cs:(%rax,%rax)
ggml_graph_compute_thread_ready: sub rsp, 28h mov [rsp+28h+var_10], rdi mov rax, [rsp+28h+var_10] mov rax, [rax+210h] mov [rsp+28h+var_18], rax mov rax, [rsp+28h+var_10] test byte ptr [rax+20Ch], 1 jnz short loc_14FB4 mov rax, [rsp+28h+var_18] test byte ptr [rax+104h], 1 jnz short loc_14FB4 mov rax, [rsp+28h+var_18] test byte ptr [rax+105h], 1 jz short loc_14FBB loc_14FB4: mov [rsp+28h+var_1], 1 jmp short loc_1501A loc_14FBB: mov rax, [rsp+28h+var_18] mov eax, [rax+68h] mov [rsp+28h+var_20], eax mov eax, [rsp+28h+var_20] mov [rsp+28h+var_1C], eax mov eax, [rsp+28h+var_1C] mov rcx, [rsp+28h+var_10] cmp eax, [rcx+208h] jz short loc_15009 mov rdi, [rsp+28h+var_10] call ggml_graph_compute_thread_active mov cl, al mov rax, [rsp+28h+var_10] and cl, 1 mov [rax+20Ch], cl mov ecx, [rsp+28h+var_1C] mov rax, [rsp+28h+var_10] mov [rax+208h], ecx loc_15009: mov rax, [rsp+28h+var_10] mov al, [rax+20Ch] and al, 1 mov [rsp+28h+var_1], al loc_1501A: mov al, [rsp+28h+var_1] and al, 1 add rsp, 28h retn
char ggml_graph_compute_thread_ready(long long a1) { int v2; // [rsp+Ch] [rbp-1Ch] long long v3; // [rsp+10h] [rbp-18h] v3 = *(_QWORD *)(a1 + 528); if ( (*(_BYTE *)(a1 + 524) & 1) != 0 || (*(_BYTE *)(v3 + 260) & 1) != 0 || (*(_BYTE *)(v3 + 261) & 1) != 0 ) return 1; v2 = *(_DWORD *)(v3 + 104); if ( v2 != *(_DWORD *)(a1 + 520) ) { *(_BYTE *)(a1 + 524) = ggml_graph_compute_thread_active(a1) & 1; *(_DWORD *)(a1 + 520) = v2; } return *(_BYTE *)(a1 + 524) & 1; }
ggml_graph_compute_thread_ready: SUB RSP,0x28 MOV qword ptr [RSP + 0x18],RDI MOV RAX,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RAX + 0x210] MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [RSP + 0x18] TEST byte ptr [RAX + 0x20c],0x1 JNZ 0x00114fb4 MOV RAX,qword ptr [RSP + 0x10] TEST byte ptr [RAX + 0x104],0x1 JNZ 0x00114fb4 MOV RAX,qword ptr [RSP + 0x10] TEST byte ptr [RAX + 0x105],0x1 JZ 0x00114fbb LAB_00114fb4: MOV byte ptr [RSP + 0x27],0x1 JMP 0x0011501a LAB_00114fbb: MOV RAX,qword ptr [RSP + 0x10] MOV EAX,dword ptr [RAX + 0x68] MOV dword ptr [RSP + 0x8],EAX MOV EAX,dword ptr [RSP + 0x8] MOV dword ptr [RSP + 0xc],EAX MOV EAX,dword ptr [RSP + 0xc] MOV RCX,qword ptr [RSP + 0x18] CMP EAX,dword ptr [RCX + 0x208] JZ 0x00115009 MOV RDI,qword ptr [RSP + 0x18] CALL 0x00115030 MOV CL,AL MOV RAX,qword ptr [RSP + 0x18] AND CL,0x1 MOV byte ptr [RAX + 0x20c],CL MOV ECX,dword ptr [RSP + 0xc] MOV RAX,qword ptr [RSP + 0x18] MOV dword ptr [RAX + 0x208],ECX LAB_00115009: MOV RAX,qword ptr [RSP + 0x18] MOV AL,byte ptr [RAX + 0x20c] AND AL,0x1 MOV byte ptr [RSP + 0x27],AL LAB_0011501a: MOV AL,byte ptr [RSP + 0x27] AND AL,0x1 ADD RSP,0x28 RET
byte ggml_graph_compute_thread_ready(long param_1) { int iVar1; long lVar2; byte bVar3; int1 local_1; lVar2 = *(long *)(param_1 + 0x210); if ((((*(byte *)(param_1 + 0x20c) & 1) == 0) && ((*(byte *)(lVar2 + 0x104) & 1) == 0)) && ((*(byte *)(lVar2 + 0x105) & 1) == 0)) { iVar1 = *(int *)(lVar2 + 0x68); if (iVar1 != *(int *)(param_1 + 0x208)) { bVar3 = ggml_graph_compute_thread_active(param_1); *(byte *)(param_1 + 0x20c) = bVar3 & 1; *(int *)(param_1 + 0x208) = iVar1; } local_1 = *(byte *)(param_1 + 0x20c) & 1; } else { local_1 = 1; } return local_1; }
19,470
ggml_graph_compute_thread_ready
ngxson[P]ggml-easy/ggml/src/ggml-cpu/ggml-cpu.c
static inline bool ggml_graph_compute_thread_ready(struct ggml_compute_state * state) { struct ggml_threadpool * threadpool = state->threadpool; if (state->pending || threadpool->stop || threadpool->pause) { return true; } // check for new graph/work int new_graph = atomic_load_explicit(&threadpool->n_graph, memory_order_relaxed); if (new_graph != state->last_graph) { state->pending = ggml_graph_compute_thread_active(state); state->last_graph = new_graph; } return state->pending; }
O2
c
ggml_graph_compute_thread_ready: movb $0x1, %al cmpb $0x0, 0x20c(%rdi) jne 0x1081a movq 0x210(%rdi), %rcx movb 0x104(%rcx), %dl testb $0x1, %dl jne 0x1081a movb 0x105(%rcx), %dl testb $0x1, %dl jne 0x1081a movl 0x68(%rcx), %ecx cmpl 0x208(%rdi), %ecx jne 0x107f7 movb 0x20c(%rdi), %al jmp 0x1081a movq 0x210(%rdi), %rax movl 0x11c(%rax), %eax cmpl %eax, 0x218(%rdi) setl %al setl 0x20c(%rdi) movl %ecx, 0x208(%rdi) andb $0x1, %al retq nopl (%rax)
ggml_graph_compute_thread_ready: mov al, 1 cmp byte ptr [rdi+20Ch], 0 jnz short loc_1081A mov rcx, [rdi+210h] mov dl, [rcx+104h] test dl, 1 jnz short loc_1081A mov dl, [rcx+105h] test dl, 1 jnz short loc_1081A mov ecx, [rcx+68h] cmp ecx, [rdi+208h] jnz short loc_107F7 mov al, [rdi+20Ch] jmp short loc_1081A loc_107F7: mov rax, [rdi+210h] mov eax, [rax+11Ch] cmp [rdi+218h], eax setl al setl byte ptr [rdi+20Ch] mov [rdi+208h], ecx loc_1081A: and al, 1 retn
char ggml_graph_compute_thread_ready(long long a1) { char v1; // al long long v2; // rcx int v3; // ecx v1 = 1; if ( !*(_BYTE *)(a1 + 524) ) { v2 = *(_QWORD *)(a1 + 528); if ( (*(_BYTE *)(v2 + 260) & 1) == 0 && (*(_BYTE *)(v2 + 261) & 1) == 0 ) { v3 = *(_DWORD *)(v2 + 104); if ( v3 == *(_DWORD *)(a1 + 520) ) { v1 = *(_BYTE *)(a1 + 524); } else { v1 = *(_DWORD *)(a1 + 536) < *(_DWORD *)(*(_QWORD *)(a1 + 528) + 284LL); *(_BYTE *)(a1 + 524) = v1; *(_DWORD *)(a1 + 520) = v3; } } } return v1 & 1; }
ggml_graph_compute_thread_ready: MOV AL,0x1 CMP byte ptr [RDI + 0x20c],0x0 JNZ 0x0011081a MOV RCX,qword ptr [RDI + 0x210] MOV DL,byte ptr [RCX + 0x104] TEST DL,0x1 JNZ 0x0011081a MOV DL,byte ptr [RCX + 0x105] TEST DL,0x1 JNZ 0x0011081a MOV ECX,dword ptr [RCX + 0x68] CMP ECX,dword ptr [RDI + 0x208] JNZ 0x001107f7 MOV AL,byte ptr [RDI + 0x20c] JMP 0x0011081a LAB_001107f7: MOV RAX,qword ptr [RDI + 0x210] MOV EAX,dword ptr [RAX + 0x11c] CMP dword ptr [RDI + 0x218],EAX SETL AL SETL byte ptr [RDI + 0x20c] MOV dword ptr [RDI + 0x208],ECX LAB_0011081a: AND AL,0x1 RET
ulong ggml_graph_compute_thread_ready(long param_1) { int iVar1; int iVar2; long lVar3; int8 in_RAX; ulong uVar4; int7 uVar5; uVar5 = (int7)((ulong)in_RAX >> 8); uVar4 = CONCAT71(uVar5,1); if (((*(char *)(param_1 + 0x20c) == '\0') && (lVar3 = *(long *)(param_1 + 0x210), (*(byte *)(lVar3 + 0x104) & 1) == 0)) && ((*(byte *)(lVar3 + 0x105) & 1) == 0)) { iVar1 = *(int *)(lVar3 + 0x68); if (iVar1 == *(int *)(param_1 + 0x208)) { uVar4 = CONCAT71(uVar5,*(int1 *)(param_1 + 0x20c)); } else { iVar2 = *(int *)(*(long *)(param_1 + 0x210) + 0x11c); uVar4 = (ulong)CONCAT31((int3)((uint)iVar2 >> 8),*(int *)(param_1 + 0x218) < iVar2); *(bool *)(param_1 + 0x20c) = *(int *)(param_1 + 0x218) < iVar2; *(int *)(param_1 + 0x208) = iVar1; } } return uVar4 & 0xffffffffffffff01; }
19,471
google::protobuf::TextFormat::Printer::TextGenerator::Outdent()
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/text_format.cc
void Outdent() override { if (indent_level_ == 0 || indent_level_ < initial_indent_level_) { GOOGLE_LOG(DFATAL) << " Outdent() without matching Indent()."; return; } --indent_level_; }
O0
cpp
google::protobuf::TextFormat::Printer::TextGenerator::Outdent(): subq $0x68, %rsp movq %rdi, 0x60(%rsp) movq 0x60(%rsp), %rax movq %rax, 0x10(%rsp) cmpl $0x0, 0x20(%rax) je 0x158686 movq 0x10(%rsp), %rcx movl 0x20(%rcx), %eax cmpl 0x24(%rcx), %eax jge 0x1586f3 leaq 0x9d00a(%rip), %rdx # 0x1f5697 leaq 0x28(%rsp), %rdi movq %rdi, (%rsp) movl $0x2, %esi movl $0x566, %ecx # imm = 0x566 callq 0x237e0 movq (%rsp), %rdi leaq 0x9d7c6(%rip), %rsi # 0x1f5e76 callq 0x230a0 movq %rax, 0x8(%rsp) jmp 0x1586bc movq 0x8(%rsp), %rsi leaq 0x1b(%rsp), %rdi callq 0x23250 jmp 0x1586cd leaq 0x28(%rsp), %rdi callq 0x23820 jmp 0x158701 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x20(%rsp) movl %eax, 0x1c(%rsp) leaq 0x28(%rsp), %rdi callq 0x23820 jmp 0x158706 movq 0x10(%rsp), %rax movl 0x20(%rax), %ecx addl $-0x1, %ecx movl %ecx, 0x20(%rax) addq $0x68, %rsp retq movq 0x20(%rsp), %rdi callq 0x13750
_ZN6google8protobuf10TextFormat7Printer13TextGenerator7OutdentEv: sub rsp, 68h mov [rsp+68h+var_8], rdi mov rax, [rsp+68h+var_8] mov [rsp+68h+var_58], rax cmp dword ptr [rax+20h], 0 jz short loc_158686 mov rcx, [rsp+68h+var_58] mov eax, [rcx+20h] cmp eax, [rcx+24h] jge short loc_1586F3 loc_158686: lea rdx, aWorkspaceLlm4b_29; "/workspace/llm4binary/github2025/aimrt_"... lea rdi, [rsp+68h+var_40] mov [rsp+68h+var_68], rdi mov esi, 2 mov ecx, 566h call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int) mov rdi, [rsp+68h+var_68] lea rsi, aOutdentWithout; " Outdent() without matching Indent()." call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) mov [rsp+68h+var_60], rax jmp short $+2 loc_1586BC: mov rsi, [rsp+68h+var_60] lea rdi, [rsp+68h+var_4D] call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &) jmp short $+2 loc_1586CD: lea rdi, [rsp+68h+var_40]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() jmp short loc_158701 mov rcx, rax mov eax, edx mov [rsp+arg_18], rcx mov [rsp+arg_14], eax lea rdi, [rsp+arg_20]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() jmp short loc_158706 loc_1586F3: mov rax, [rsp+68h+var_58] mov ecx, [rax+20h] add ecx, 0FFFFFFFFh mov [rax+20h], ecx loc_158701: add rsp, 68h retn loc_158706: mov rdi, [rsp+arg_18] call __Unwind_Resume
void google::protobuf::TextFormat::Printer::TextGenerator::Outdent( google::protobuf::TextFormat::Printer::TextGenerator *this) { google::protobuf::internal::LogMessage *v1; // [rsp+8h] [rbp-60h] _BYTE v2[13]; // [rsp+1Bh] [rbp-4Dh] BYREF _BYTE v3[56]; // [rsp+28h] [rbp-40h] BYREF google::protobuf::TextFormat::Printer::TextGenerator *v4; // [rsp+60h] [rbp-8h] v4 = this; if ( *((_DWORD *)this + 8) && *((_DWORD *)this + 8) >= *((_DWORD *)this + 9) ) { --*((_DWORD *)this + 8); } else { google::protobuf::internal::LogMessage::LogMessage( (long long)v3, 2, (long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/text_format.cc", 1382); v1 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<( (long long)v3, (long long)" Outdent() without matching Indent()."); google::protobuf::internal::LogFinisher::operator=((long long)v2, v1); google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v3); } }
19,472
google::protobuf::TextFormat::Printer::TextGenerator::Outdent()
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/text_format.cc
void Outdent() override { if (indent_level_ == 0 || indent_level_ < initial_indent_level_) { GOOGLE_LOG(DFATAL) << " Outdent() without matching Indent()."; return; } --indent_level_; }
O3
cpp
google::protobuf::TextFormat::Printer::TextGenerator::Outdent(): pushq %rbx subq $0x40, %rsp movl 0x20(%rdi), %eax testl %eax, %eax je 0x858b2 cmpl 0x24(%rdi), %eax jl 0x858b2 decl %eax movl %eax, 0x20(%rdi) jmp 0x858f6 leaq 0x369ce(%rip), %rdx # 0xbc287 leaq 0x8(%rsp), %rbx movq %rbx, %rdi movl $0x2, %esi movl $0x566, %ecx # imm = 0x566 callq 0x169ca leaq 0x36ffb(%rip), %rsi # 0xbc8d2 movq %rbx, %rdi callq 0x164c8 leaq 0x7(%rsp), %rdi movq %rax, %rsi callq 0x165a2 leaq 0x8(%rsp), %rdi callq 0x169e8 addq $0x40, %rsp popq %rbx retq jmp 0x858fe movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x169e8 movq %rbx, %rdi callq 0xf570 nop
_ZN6google8protobuf10TextFormat7Printer13TextGenerator7OutdentEv: push rbx sub rsp, 40h mov eax, [rdi+20h] test eax, eax jz short loc_858B2 cmp eax, [rdi+24h] jl short loc_858B2 dec eax mov [rdi+20h], eax jmp short loc_858F6 loc_858B2: lea rdx, aWorkspaceLlm4b_17; "/workspace/llm4binary/github2025/aimrt_"... lea rbx, [rsp+48h+var_40] mov rdi, rbx mov esi, 2 mov ecx, 566h call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int) lea rsi, aOutdentWithout; " Outdent() without matching Indent()." mov rdi, rbx call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) lea rdi, [rsp+48h+var_41] mov rsi, rax call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &) lea rdi, [rsp+48h+var_40]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() loc_858F6: add rsp, 40h pop rbx retn jmp short $+2 loc_858FE: mov rbx, rax lea rdi, [rsp+arg_0]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() mov rdi, rbx call __Unwind_Resume
void google::protobuf::TextFormat::Printer::TextGenerator::Outdent( google::protobuf::TextFormat::Printer::TextGenerator *this) { int v1; // eax google::protobuf::internal::LogMessage *v2; // rax char v3; // [rsp+7h] [rbp-41h] BYREF _BYTE v4[64]; // [rsp+8h] [rbp-40h] BYREF v1 = *((_DWORD *)this + 8); if ( v1 && v1 >= *((_DWORD *)this + 9) ) { *((_DWORD *)this + 8) = v1 - 1; } else { google::protobuf::internal::LogMessage::LogMessage( (long long)v4, 2, (long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/text_format.cc", 1382); v2 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<( (long long)v4, (long long)" Outdent() without matching Indent()."); google::protobuf::internal::LogFinisher::operator=((long long)&v3, v2); google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v4); } }
Outdent: PUSH RBX SUB RSP,0x40 MOV EAX,dword ptr [RDI + 0x20] TEST EAX,EAX JZ 0x001858b2 CMP EAX,dword ptr [RDI + 0x24] JL 0x001858b2 DEC EAX MOV dword ptr [RDI + 0x20],EAX JMP 0x001858f6 LAB_001858b2: LEA RDX,[0x1bc287] LEA RBX,[RSP + 0x8] MOV RDI,RBX MOV ESI,0x2 MOV ECX,0x566 CALL 0x001169ca LAB_001858d0: LEA RSI,[0x1bc8d2] MOV RDI,RBX CALL 0x001164c8 LAB_001858df: LEA RDI,[RSP + 0x7] MOV RSI,RAX CALL 0x001165a2 LAB_001858ec: LEA RDI,[RSP + 0x8] CALL 0x001169e8 LAB_001858f6: ADD RSP,0x40 POP RBX RET
/* google::protobuf::TextFormat::Printer::TextGenerator::Outdent() */ void __thiscall google::protobuf::TextFormat::Printer::TextGenerator::Outdent(TextGenerator *this) { int iVar1; LogMessage *pLVar2; LogFinisher local_41; LogMessage local_40 [56]; iVar1 = *(int *)(this + 0x20); if ((iVar1 == 0) || (iVar1 < *(int *)(this + 0x24))) { internal::LogMessage::LogMessage (local_40,2, "/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/text_format.cc" ,0x566); /* try { // try from 001858d0 to 001858de has its CatchHandler @ 001858fe */ pLVar2 = (LogMessage *) internal::LogMessage::operator<<(local_40," Outdent() without matching Indent()."); /* try { // try from 001858df to 001858eb has its CatchHandler @ 001858fc */ internal::LogFinisher::operator=(&local_41,pLVar2); internal::LogMessage::~LogMessage(local_40); } else { *(int *)(this + 0x20) = iVar1 + -1; } return; }
19,473
ma_ft_make_key
eloqsql/storage/maria/ma_ft_update.c
MARIA_KEY *_ma_ft_make_key(MARIA_HA *info, MARIA_KEY *key, uint keynr, uchar *keybuf, FT_WORD *wptr, my_off_t filepos) { uchar buf[HA_FT_MAXBYTELEN+16]; float weight=(float) ((filepos==HA_OFFSET_ERROR) ? 0 : wptr->weight); DBUG_ENTER("_ma_ft_make_key"); mi_float4store(buf,weight); int2store(buf+HA_FT_WLEN,wptr->len); memcpy(buf+HA_FT_WLEN+2,wptr->pos,wptr->len); /* Can't be spatial so it's ok to call _ma_make_key directly here */ DBUG_RETURN(_ma_make_key(info, key, keynr, keybuf, buf, filepos, 0)); }
O0
c
ma_ft_make_key: pushq %rbp movq %rsp, %rbp subq $0x180, %rsp # imm = 0x180 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x128(%rbp) movq %rsi, -0x130(%rbp) movl %edx, -0x134(%rbp) movq %rcx, -0x140(%rbp) movq %r8, -0x148(%rbp) movq %r9, -0x150(%rbp) cmpq $-0x1, -0x150(%rbp) jne 0x76898 xorps %xmm0, %xmm0 movsd %xmm0, -0x168(%rbp) jmp 0x768ac movq -0x148(%rbp), %rax movsd 0x10(%rax), %xmm0 movsd %xmm0, -0x168(%rbp) movsd -0x168(%rbp), %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -0x154(%rbp) movb -0x151(%rbp), %al movb %al, -0x120(%rbp) movb -0x152(%rbp), %al movb %al, -0x11f(%rbp) movb -0x153(%rbp), %al movb %al, -0x11e(%rbp) movb -0x154(%rbp), %al movb %al, -0x11d(%rbp) leaq -0x120(%rbp), %rax addq $0x4, %rax movq %rax, -0x160(%rbp) movq -0x148(%rbp), %rax movl 0x8(%rax), %eax movw %ax, %cx movq -0x160(%rbp), %rax movw %cx, (%rax) leaq -0x120(%rbp), %rdi addq $0x4, %rdi addq $0x2, %rdi movq -0x148(%rbp), %rax movq (%rax), %rsi movq -0x148(%rbp), %rax movl 0x8(%rax), %eax movl %eax, %edx callq 0x2a0b0 movq -0x128(%rbp), %rdi movq -0x130(%rbp), %rsi movl -0x134(%rbp), %edx movq -0x140(%rbp), %rcx leaq -0x120(%rbp), %r8 movq -0x150(%rbp), %r9 xorl %eax, %eax movq $0x0, (%rsp) callq 0x43680 movq %rax, -0x170(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x769a4 movq -0x170(%rbp), %rax addq $0x180, %rsp # imm = 0x180 popq %rbp retq callq 0x2a250 nopl (%rax)
_ma_ft_make_key: push rbp mov rbp, rsp sub rsp, 180h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_128], rdi mov [rbp+var_130], rsi mov [rbp+var_134], edx mov [rbp+var_140], rcx mov [rbp+var_148], r8 mov [rbp+var_150], r9 cmp [rbp+var_150], 0FFFFFFFFFFFFFFFFh jnz short loc_76898 xorps xmm0, xmm0 movsd [rbp+var_168], xmm0 jmp short loc_768AC loc_76898: mov rax, [rbp+var_148] movsd xmm0, qword ptr [rax+10h] movsd [rbp+var_168], xmm0 loc_768AC: movsd xmm0, [rbp+var_168] cvtsd2ss xmm0, xmm0 movss [rbp+var_154], xmm0 mov al, byte ptr [rbp+var_154+3] mov [rbp+var_120], al mov al, byte ptr [rbp+var_154+2] mov [rbp+var_11F], al mov al, byte ptr [rbp+var_154+1] mov [rbp+var_11E], al mov al, byte ptr [rbp+var_154] mov [rbp+var_11D], al lea rax, [rbp+var_120] add rax, 4 mov [rbp+var_160], rax mov rax, [rbp+var_148] mov eax, [rax+8] mov cx, ax mov rax, [rbp+var_160] mov [rax], cx lea rdi, [rbp+var_120] add rdi, 4 add rdi, 2 mov rax, [rbp+var_148] mov rsi, [rax] mov rax, [rbp+var_148] mov eax, [rax+8] mov edx, eax call _memcpy mov rdi, [rbp+var_128] mov rsi, [rbp+var_130] mov edx, [rbp+var_134] mov rcx, [rbp+var_140] lea r8, [rbp+var_120] mov r9, [rbp+var_150] xor eax, eax mov [rsp+180h+var_180], 0 call _ma_make_key mov [rbp+var_170], rax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_769A4 mov rax, [rbp+var_170] add rsp, 180h pop rbp retn loc_769A4: call ___stack_chk_fail
long long ma_ft_make_key(long long a1, long long a2, unsigned int a3, _BYTE *a4, long long a5, long long a6) { float v6; // xmm0_4 double v8; // [rsp+18h] [rbp-168h] _BYTE v12[4]; // [rsp+60h] [rbp-120h] BYREF __int16 v13; // [rsp+64h] [rbp-11Ch] _BYTE v14[282]; // [rsp+66h] [rbp-11Ah] BYREF *(_QWORD *)&v14[274] = __readfsqword(0x28u); if ( a6 == -1 ) v8 = 0.0; else v8 = *(double *)(a5 + 16); v6 = v8; v12[0] = HIBYTE(v6); v12[1] = BYTE2(v6); v12[2] = BYTE1(v6); v12[3] = LOBYTE(v6); v13 = *(_DWORD *)(a5 + 8); memcpy(v14, *(_QWORD *)a5, *(unsigned int *)(a5 + 8)); return ma_make_key(a1, a2, a3, a4, (long long)v12, a6, 0LL); }
_ma_ft_make_key: PUSH RBP MOV RBP,RSP SUB RSP,0x180 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x128],RDI MOV qword ptr [RBP + -0x130],RSI MOV dword ptr [RBP + -0x134],EDX MOV qword ptr [RBP + -0x140],RCX MOV qword ptr [RBP + -0x148],R8 MOV qword ptr [RBP + -0x150],R9 CMP qword ptr [RBP + -0x150],-0x1 JNZ 0x00176898 XORPS XMM0,XMM0 MOVSD qword ptr [RBP + -0x168],XMM0 JMP 0x001768ac LAB_00176898: MOV RAX,qword ptr [RBP + -0x148] MOVSD XMM0,qword ptr [RAX + 0x10] MOVSD qword ptr [RBP + -0x168],XMM0 LAB_001768ac: MOVSD XMM0,qword ptr [RBP + -0x168] CVTSD2SS XMM0,XMM0 MOVSS dword ptr [RBP + -0x154],XMM0 MOV AL,byte ptr [RBP + -0x151] MOV byte ptr [RBP + -0x120],AL MOV AL,byte ptr [RBP + -0x152] MOV byte ptr [RBP + -0x11f],AL MOV AL,byte ptr [RBP + -0x153] MOV byte ptr [RBP + -0x11e],AL MOV AL,byte ptr [RBP + -0x154] MOV byte ptr [RBP + -0x11d],AL LEA RAX,[RBP + -0x120] ADD RAX,0x4 MOV qword ptr [RBP + -0x160],RAX MOV RAX,qword ptr [RBP + -0x148] MOV EAX,dword ptr [RAX + 0x8] MOV CX,AX MOV RAX,qword ptr [RBP + -0x160] MOV word ptr [RAX],CX LEA RDI,[RBP + -0x120] ADD RDI,0x4 ADD RDI,0x2 MOV RAX,qword ptr [RBP + -0x148] MOV RSI,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x148] MOV EAX,dword ptr [RAX + 0x8] MOV EDX,EAX CALL 0x0012a0b0 MOV RDI,qword ptr [RBP + -0x128] MOV RSI,qword ptr [RBP + -0x130] MOV EDX,dword ptr [RBP + -0x134] MOV RCX,qword ptr [RBP + -0x140] LEA R8,[RBP + -0x120] MOV R9,qword ptr [RBP + -0x150] XOR EAX,EAX MOV qword ptr [RSP],0x0 CALL 0x00143680 MOV qword ptr [RBP + -0x170],RAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x001769a4 MOV RAX,qword ptr [RBP + -0x170] ADD RSP,0x180 POP RBP RET LAB_001769a4: CALL 0x0012a250
int8 _ma_ft_make_key(int8 param_1,int8 param_2,int4 param_3,int8 param_4, int8 *param_5,long param_6) { int8 uVar1; long in_FS_OFFSET; float fVar2; double local_170; int1 local_15c; int1 uStack_15b; int1 uStack_15a; int1 uStack_159; int1 local_128; int1 local_127; int1 local_126; int1 local_125; int2 local_124; int1 auStack_122 [274]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); if (param_6 == -1) { local_170 = 0.0; } else { local_170 = (double)param_5[2]; } fVar2 = (float)local_170; uStack_159 = (int1)((uint)fVar2 >> 0x18); local_128 = uStack_159; uStack_15a = (int1)((uint)fVar2 >> 0x10); local_127 = uStack_15a; uStack_15b = (int1)((uint)fVar2 >> 8); local_126 = uStack_15b; local_15c = SUB41(fVar2,0); local_125 = local_15c; local_124 = (int2)*(int4 *)(param_5 + 1); memcpy(auStack_122,(void *)*param_5,(ulong)*(uint *)(param_5 + 1)); uVar1 = _ma_make_key(param_1,param_2,param_3,param_4,&local_128,param_6,0); if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return uVar1; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
19,474
ma_ft_make_key
eloqsql/storage/maria/ma_ft_update.c
MARIA_KEY *_ma_ft_make_key(MARIA_HA *info, MARIA_KEY *key, uint keynr, uchar *keybuf, FT_WORD *wptr, my_off_t filepos) { uchar buf[HA_FT_MAXBYTELEN+16]; float weight=(float) ((filepos==HA_OFFSET_ERROR) ? 0 : wptr->weight); DBUG_ENTER("_ma_ft_make_key"); mi_float4store(buf,weight); int2store(buf+HA_FT_WLEN,wptr->len); memcpy(buf+HA_FT_WLEN+2,wptr->pos,wptr->len); /* Can't be spatial so it's ok to call _ma_make_key directly here */ DBUG_RETURN(_ma_make_key(info, key, keynr, keybuf, buf, filepos, 0)); }
O3
c
ma_ft_make_key: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x128, %rsp # imm = 0x128 movq %r9, %rbx movq %rcx, %r14 movl %edx, %r15d movq %rsi, %r12 movq %rdi, %r13 movq %fs:0x28, %rax movq %rax, -0x30(%rbp) cmpq $-0x1, %r9 je 0x5f243 cvtsd2ss 0x10(%r8), %xmm0 movd %xmm0, %eax jmp 0x5f245 xorl %eax, %eax bswapl %eax leaq -0x13a(%rbp), %rdi movl %eax, -0x6(%rdi) movl 0x8(%r8), %edx movw %dx, -0x2(%rdi) movq (%r8), %rsi movl $0x108, %ecx # imm = 0x108 callq 0x2a400 movq $0x0, (%rsp) leaq -0x140(%rbp), %r8 movq %r13, %rdi movq %r12, %rsi movl %r15d, %edx movq %r14, %rcx movq %rbx, %r9 callq 0x3f513 movq %fs:0x28, %rcx cmpq -0x30(%rbp), %rcx jne 0x5f2aa addq $0x128, %rsp # imm = 0x128 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0x2a240
_ma_ft_make_key: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 128h mov rbx, r9 mov r14, rcx mov r15d, edx mov r12, rsi mov r13, rdi mov rax, fs:28h mov [rbp+var_30], rax cmp r9, 0FFFFFFFFFFFFFFFFh jz short loc_5F243 cvtsd2ss xmm0, qword ptr [r8+10h] movd eax, xmm0 jmp short loc_5F245 loc_5F243: xor eax, eax loc_5F245: bswap eax lea rdi, [rbp+var_13A] mov [rdi-6], eax mov edx, [r8+8] mov [rdi-2], dx mov rsi, [r8] mov ecx, 108h call ___memcpy_chk mov [rsp+150h+var_150], 0 lea r8, [rbp+var_140] mov rdi, r13 mov rsi, r12 mov edx, r15d mov rcx, r14 mov r9, rbx call _ma_make_key mov rcx, fs:28h cmp rcx, [rbp+var_30] jnz short loc_5F2AA add rsp, 128h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_5F2AA: call ___stack_chk_fail
long long ma_ft_make_key( long long a1, long long a2, unsigned int a3, char *a4, long long a5, long long a6, __m128i a7) { unsigned int v10; // eax long long v11; // rdx unsigned __int32 v13; // [rsp+10h] [rbp-140h] BYREF __int16 v14; // [rsp+14h] [rbp-13Ch] _BYTE v15[266]; // [rsp+16h] [rbp-13Ah] BYREF unsigned long long v16; // [rsp+120h] [rbp-30h] v16 = __readfsqword(0x28u); if ( a6 == -1 ) { v10 = 0; } else { *(float *)a7.m128i_i32 = *(double *)(a5 + 16); v10 = _mm_cvtsi128_si32(a7); } v13 = _byteswap_ulong(v10); v11 = *(unsigned int *)(a5 + 8); v14 = *(_DWORD *)(a5 + 8); __memcpy_chk(v15, *(_QWORD *)a5, v11, 264LL); return ma_make_key(a1, a2, a3, a4, (long long)&v13, a6, 0LL); }
_ma_ft_make_key: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x128 MOV RBX,R9 MOV R14,RCX MOV R15D,EDX MOV R12,RSI MOV R13,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX CMP R9,-0x1 JZ 0x0015f243 CVTSD2SS XMM0,qword ptr [R8 + 0x10] MOVD EAX,XMM0 JMP 0x0015f245 LAB_0015f243: XOR EAX,EAX LAB_0015f245: BSWAP EAX LEA RDI,[RBP + -0x13a] MOV dword ptr [RDI + -0x6],EAX MOV EDX,dword ptr [R8 + 0x8] MOV word ptr [RDI + -0x2],DX MOV RSI,qword ptr [R8] MOV ECX,0x108 CALL 0x0012a400 MOV qword ptr [RSP],0x0 LEA R8,[RBP + -0x140] MOV RDI,R13 MOV RSI,R12 MOV EDX,R15D MOV RCX,R14 MOV R9,RBX CALL 0x0013f513 MOV RCX,qword ptr FS:[0x28] CMP RCX,qword ptr [RBP + -0x30] JNZ 0x0015f2aa ADD RSP,0x128 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0015f2aa: CALL 0x0012a240
void _ma_ft_make_key(int8 param_1,int8 param_2,int4 param_3,int8 param_4, int8 *param_5,long param_6) { long in_FS_OFFSET; float fVar1; uint local_148; int2 local_144; int1 local_142 [266]; long local_38; local_38 = *(long *)(in_FS_OFFSET + 0x28); if (param_6 == -1) { fVar1 = 0.0; } else { fVar1 = (float)(double)param_5[2]; } local_148 = (uint)fVar1 >> 0x18 | ((uint)fVar1 & 0xff0000) >> 8 | ((uint)fVar1 & 0xff00) << 8 | (int)fVar1 << 0x18; local_144 = (int2)*(int4 *)(param_5 + 1); __memcpy_chk(local_142,*param_5,*(int4 *)(param_5 + 1),0x108); _ma_make_key(param_1,param_2,param_3,param_4,&local_148,param_6,0); if (*(long *)(in_FS_OFFSET + 0x28) == local_38) { return; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
19,475
evmone::StackSpace::allocate()
corpus-core[P]colibri-stateless/build_O2/_deps/evmone_external-src/lib/evmone/execution_state.hpp
static uint256* allocate() noexcept { static constexpr auto alignment = sizeof(uint256); static constexpr auto size = limit * sizeof(uint256); #ifdef _MSC_VER // MSVC doesn't support aligned_alloc() but _aligned_malloc() can be used instead. const auto p = _aligned_malloc(size, alignment); #else const auto p = evmone_compat::aligned_alloc(alignment, size); #endif return static_cast<uint256*>(p); }
O2
cpp
evmone::StackSpace::allocate(): pushq $0x20 popq %rdi movl $0x8000, %esi # imm = 0x8000 jmp 0x224a0 nopl (%rax)
_ZN6evmone10StackSpace8allocateEv: push 20h ; ' ' pop rdi mov esi, 8000h jmp _aligned_alloc
long long evmone::StackSpace::allocate(evmone::StackSpace *this) { return aligned_alloc(32LL, 0x8000LL); }
allocate: PUSH 0x20 POP RDI MOV ESI,0x8000 JMP 0x001224a0
/* evmone::StackSpace::allocate() */ void evmone::StackSpace::allocate(void) { aligned_alloc(0x20,0x8000); return; }
19,476
get_changed_account
corpus-core[P]colibri-stateless/src/chains/eth/verifier/call_ctx.h
static changed_account_t* get_changed_account(evmone_context_t* ctx, const address_t address) { for (changed_account_t* acc = ctx->changed_accounts; acc != NULL; acc = acc->next) { if (memcmp(acc->address, address, 20) == 0) return acc; } if (ctx->parent) return get_changed_account(ctx->parent, address); return NULL; }
O3
c
get_changed_account: movq 0x28(%rdi), %rax testq %rax, %rax je 0x27681 movdqu (%rax), %xmm0 movdqu (%rsi), %xmm1 pcmpeqb %xmm0, %xmm1 movd 0x10(%rax), %xmm0 movd 0x10(%rsi), %xmm2 pcmpeqb %xmm0, %xmm2 pand %xmm1, %xmm2 pmovmskb %xmm2, %ecx cmpl $0xffff, %ecx # imm = 0xFFFF je 0x2768f movq 0x48(%rax), %rax jmp 0x2764c movq 0x90(%rdi), %rdi testq %rdi, %rdi jne 0x27648 xorl %eax, %eax retq
get_changed_account: mov rax, [rdi+28h] loc_2764C: test rax, rax jz short loc_27681 movdqu xmm0, xmmword ptr [rax] movdqu xmm1, xmmword ptr [rsi] pcmpeqb xmm1, xmm0 movd xmm0, dword ptr [rax+10h] movd xmm2, dword ptr [rsi+10h] pcmpeqb xmm2, xmm0 pand xmm2, xmm1 pmovmskb ecx, xmm2 cmp ecx, 0FFFFh jz short locret_2768F mov rax, [rax+48h] jmp short loc_2764C loc_27681: mov rdi, [rdi+90h] test rdi, rdi jnz short get_changed_account xor eax, eax locret_2768F: retn
const __m128i * get_changed_account(long long a1, const __m128i *a2) { const __m128i *result; // rax do { for ( result = *(const __m128i **)(a1 + 40); result; result = (const __m128i *)result[4].m128i_i64[1] ) { if ( _mm_movemask_epi8( _mm_and_si128( _mm_cmpeq_epi8(_mm_cvtsi32_si128(a2[1].m128i_u32[0]), _mm_cvtsi32_si128(result[1].m128i_u32[0])), _mm_cmpeq_epi8(_mm_loadu_si128(a2), _mm_loadu_si128(result)))) == 0xFFFF ) return result; } a1 = *(_QWORD *)(a1 + 144); } while ( a1 ); return 0LL; }
get_changed_account: MOV RAX,qword ptr [RDI + 0x28] LAB_0012764c: TEST RAX,RAX JZ 0x00127681 MOVDQU XMM0,xmmword ptr [RAX] MOVDQU XMM1,xmmword ptr [RSI] PCMPEQB XMM1,XMM0 MOVD XMM0,dword ptr [RAX + 0x10] MOVD XMM2,dword ptr [RSI + 0x10] PCMPEQB XMM2,XMM0 PAND XMM2,XMM1 PMOVMSKB ECX,XMM2 CMP ECX,0xffff JZ 0x0012768f MOV RAX,qword ptr [RAX + 0x48] JMP 0x0012764c LAB_00127681: MOV RDI,qword ptr [RDI + 0x90] TEST RDI,RDI JNZ 0x00127648 XOR EAX,EAX LAB_0012768f: RET
char * get_changed_account(long param_1,char *param_2) { int4 uVar1; int4 uVar2; char *pcVar3; int1 auVar4 [16]; int1 auVar5 [16]; do { for (pcVar3 = *(char **)(param_1 + 0x28); pcVar3 != (char *)0x0; pcVar3 = *(char **)(pcVar3 + 0x48)) { auVar4[0] = -(*param_2 == *pcVar3); auVar4[1] = -(param_2[1] == pcVar3[1]); auVar4[2] = -(param_2[2] == pcVar3[2]); auVar4[3] = -(param_2[3] == pcVar3[3]); auVar4[4] = -(param_2[4] == pcVar3[4]); auVar4[5] = -(param_2[5] == pcVar3[5]); auVar4[6] = -(param_2[6] == pcVar3[6]); auVar4[7] = -(param_2[7] == pcVar3[7]); auVar4[8] = -(param_2[8] == pcVar3[8]); auVar4[9] = -(param_2[9] == pcVar3[9]); auVar4[10] = -(param_2[10] == pcVar3[10]); auVar4[0xb] = -(param_2[0xb] == pcVar3[0xb]); auVar4[0xc] = -(param_2[0xc] == pcVar3[0xc]); auVar4[0xd] = -(param_2[0xd] == pcVar3[0xd]); auVar4[0xe] = -(param_2[0xe] == pcVar3[0xe]); auVar4[0xf] = -(param_2[0xf] == pcVar3[0xf]); uVar1 = *(int4 *)(pcVar3 + 0x10); uVar2 = *(int4 *)(param_2 + 0x10); auVar5[0] = -((char)uVar2 == (char)uVar1); auVar5[1] = -((char)((uint)uVar2 >> 8) == (char)((uint)uVar1 >> 8)); auVar5[2] = -((char)((uint)uVar2 >> 0x10) == (char)((uint)uVar1 >> 0x10)); auVar5[3] = -((char)((uint)uVar2 >> 0x18) == (char)((uint)uVar1 >> 0x18)); auVar5[4] = 0xff; auVar5[5] = 0xff; auVar5[6] = 0xff; auVar5[7] = 0xff; auVar5[8] = 0xff; auVar5[9] = 0xff; auVar5[10] = 0xff; auVar5[0xb] = 0xff; auVar5[0xc] = 0xff; auVar5[0xd] = 0xff; auVar5[0xe] = 0xff; auVar5[0xf] = 0xff; auVar5 = auVar5 & auVar4; if ((ushort)((ushort)(SUB161(auVar5 >> 7,0) & 1) | (ushort)(SUB161(auVar5 >> 0xf,0) & 1) << 1 | (ushort)(SUB161(auVar5 >> 0x17,0) & 1) << 2 | (ushort)(SUB161(auVar5 >> 0x1f,0) & 1) << 3 | (ushort)(SUB161(auVar5 >> 0x27,0) & 1) << 4 | (ushort)(SUB161(auVar5 >> 0x2f,0) & 1) << 5 | (ushort)(SUB161(auVar5 >> 0x37,0) & 1) << 6 | (ushort)(SUB161(auVar5 >> 0x3f,0) & 1) << 7 | (ushort)(SUB161(auVar5 >> 0x47,0) & 1) << 8 | (ushort)(SUB161(auVar5 >> 0x4f,0) & 1) << 9 | (ushort)(SUB161(auVar5 >> 0x57,0) & 1) << 10 | (ushort)(SUB161(auVar5 >> 0x5f,0) & 1) << 0xb | (ushort)(SUB161(auVar5 >> 0x67,0) & 1) << 0xc | (ushort)(SUB161(auVar5 >> 0x6f,0) & 1) << 0xd | (ushort)(SUB161(auVar5 >> 0x77,0) & 1) << 0xe | (ushort)(byte)(auVar5[0xf] >> 7) << 0xf) == 0xffff) { return pcVar3; } } param_1 = *(long *)(param_1 + 0x90); } while (param_1 != 0); return (char *)0x0; }
19,477
minja::SliceExpr::~SliceExpr()
monkey531[P]llama/common/minja.hpp
SliceExpr(const Location & location, std::shared_ptr<Expression> && s, std::shared_ptr<Expression> && e) : Expression(location), start(std::move(s)), end(std::move(e)) {}
O1
cpp
minja::SliceExpr::~SliceExpr(): pushq %rbx movq %rdi, %rbx leaq 0x9cf45(%rip), %rax # 0x12d6e8 addq $0x10, %rax movq %rax, (%rdi) movq 0x38(%rdi), %rdi testq %rdi, %rdi je 0x907b8 callq 0x6dc18 movq 0x28(%rbx), %rdi testq %rdi, %rdi je 0x907c6 callq 0x6dc18 leaq 0x9cbeb(%rip), %rax # 0x12d3b8 addq $0x10, %rax movq %rax, (%rbx) movq 0x10(%rbx), %rdi testq %rdi, %rdi je 0x907e2 callq 0x6dc18 movl $0x40, %esi movq %rbx, %rdi popq %rbx jmp 0x1b8f0
_ZN5minja9SliceExprD0Ev: push rbx mov rbx, rdi lea rax, _ZTVN5minja9SliceExprE; `vtable for'minja::SliceExpr add rax, 10h mov [rdi], rax mov rdi, [rdi+38h] test rdi, rdi jz short loc_907B8 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_907B8: mov rdi, [rbx+28h] test rdi, rdi jz short loc_907C6 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_907C6: lea rax, _ZTVN5minja10ExpressionE; `vtable for'minja::Expression add rax, 10h mov [rbx], rax mov rdi, [rbx+10h] test rdi, rdi jz short loc_907E2 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_907E2: mov esi, 40h ; '@'; unsigned __int64 mov rdi, rbx; void * pop rbx jmp __ZdlPvm; operator delete(void *,ulong)
void minja::SliceExpr::~SliceExpr(minja::SliceExpr *this) { volatile signed __int32 *v2; // rdi volatile signed __int32 *v3; // rdi volatile signed __int32 *v4; // rdi *(_QWORD *)this = &`vtable for'minja::SliceExpr + 2; v2 = (volatile signed __int32 *)*((_QWORD *)this + 7); if ( v2 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v2); v3 = (volatile signed __int32 *)*((_QWORD *)this + 5); if ( v3 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3); *(_QWORD *)this = &`vtable for'minja::Expression + 2; v4 = (volatile signed __int32 *)*((_QWORD *)this + 2); if ( v4 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v4); operator delete(this, 0x40uLL); }
~SliceExpr: PUSH RBX MOV RBX,RDI LEA RAX,[0x22d6e8] ADD RAX,0x10 MOV qword ptr [RDI],RAX MOV RDI,qword ptr [RDI + 0x38] TEST RDI,RDI JZ 0x001907b8 CALL 0x0016dc18 LAB_001907b8: MOV RDI,qword ptr [RBX + 0x28] TEST RDI,RDI JZ 0x001907c6 CALL 0x0016dc18 LAB_001907c6: LEA RAX,[0x22d3b8] ADD RAX,0x10 MOV qword ptr [RBX],RAX MOV RDI,qword ptr [RBX + 0x10] TEST RDI,RDI JZ 0x001907e2 CALL 0x0016dc18 LAB_001907e2: MOV ESI,0x40 MOV RDI,RBX POP RBX JMP 0x0011b8f0
/* minja::SliceExpr::~SliceExpr() */ void __thiscall minja::SliceExpr::~SliceExpr(SliceExpr *this) { *(int ***)this = &PTR_do_evaluate_0022d6f8; if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x38) != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x38)); } if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x28) != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x28)); } *(int ***)this = &PTR___cxa_pure_virtual_0022d3c8; if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10) != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10)); } operator_delete(this,0x40); return; }
19,478
minja::SliceExpr::~SliceExpr()
monkey531[P]llama/common/minja.hpp
SliceExpr(const Location & location, std::shared_ptr<Expression> && s, std::shared_ptr<Expression> && e) : Expression(location), start(std::move(s)), end(std::move(e)) {}
O2
cpp
minja::SliceExpr::~SliceExpr(): pushq %r15 pushq %r14 pushq %rbx movq %rcx, %rbx movq %rdx, %r14 movq %rdi, %r15 callq 0x628da leaq 0x92518(%rip), %rax # 0xfc6e8 addq $0x10, %rax movq %rax, (%r15) andq $0x0, 0x28(%r15) movups (%r14), %xmm0 andq $0x0, 0x8(%r14) movups %xmm0, 0x20(%r15) andq $0x0, (%r14) andq $0x0, 0x38(%r15) movups (%rbx), %xmm0 andq $0x0, 0x8(%rbx) movups %xmm0, 0x30(%r15) andq $0x0, (%rbx) popq %rbx popq %r14 popq %r15 retq
_ZN5minja9SliceExprC2ERKNS_8LocationEOSt10shared_ptrINS_10ExpressionEES7_: push r15 push r14 push rbx mov rbx, rcx mov r14, rdx mov r15, rdi call _ZN5minja10ExpressionC2ERKNS_8LocationE; minja::Expression::Expression(minja::Location const&) lea rax, _ZTVN5minja9SliceExprE; `vtable for'minja::SliceExpr add rax, 10h mov [r15], rax and qword ptr [r15+28h], 0 movups xmm0, xmmword ptr [r14] and qword ptr [r14+8], 0 movups xmmword ptr [r15+20h], xmm0 and qword ptr [r14], 0 and qword ptr [r15+38h], 0 movups xmm0, xmmword ptr [rbx] and qword ptr [rbx+8], 0 movups xmmword ptr [r15+30h], xmm0 and qword ptr [rbx], 0 pop rbx pop r14 pop r15 retn
long long * minja::SliceExpr::SliceExpr(long long a1, _QWORD *a2, __int128 *a3, __int128 *a4) { long long *result; // rax __int128 v7; // xmm0 __int128 v8; // xmm0 minja::Expression::Expression((_QWORD *)a1, a2); result = &`vtable for'minja::SliceExpr + 2; *(_QWORD *)a1 = &`vtable for'minja::SliceExpr + 2; *(_QWORD *)(a1 + 40) = 0LL; v7 = *a3; *((_QWORD *)a3 + 1) = 0LL; *(_OWORD *)(a1 + 32) = v7; *(_QWORD *)a3 = 0LL; *(_QWORD *)(a1 + 56) = 0LL; v8 = *a4; *((_QWORD *)a4 + 1) = 0LL; *(_OWORD *)(a1 + 48) = v8; *(_QWORD *)a4 = 0LL; return result; }
SliceExpr: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RCX MOV R14,RDX MOV R15,RDI CALL 0x001628da LEA RAX,[0x1fc6e8] ADD RAX,0x10 MOV qword ptr [R15],RAX AND qword ptr [R15 + 0x28],0x0 MOVUPS XMM0,xmmword ptr [R14] AND qword ptr [R14 + 0x8],0x0 MOVUPS xmmword ptr [R15 + 0x20],XMM0 AND qword ptr [R14],0x0 AND qword ptr [R15 + 0x38],0x0 MOVUPS XMM0,xmmword ptr [RBX] AND qword ptr [RBX + 0x8],0x0 MOVUPS xmmword ptr [R15 + 0x30],XMM0 AND qword ptr [RBX],0x0 POP RBX POP R14 POP R15 RET
/* minja::SliceExpr::SliceExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::Expression>&&) */ void __thiscall minja::SliceExpr::SliceExpr (SliceExpr *this,Location *param_1,shared_ptr *param_2,shared_ptr *param_3) { int8 uVar1; Expression::Expression((Expression *)this,param_1); *(int ***)this = &PTR_do_evaluate_001fc6f8; *(int8 *)(this + 0x28) = 0; uVar1 = *(int8 *)(param_2 + 8); *(int8 *)(param_2 + 8) = 0; *(int8 *)(this + 0x20) = *(int8 *)param_2; *(int8 *)(this + 0x28) = uVar1; *(int8 *)param_2 = 0; *(int8 *)(this + 0x38) = 0; uVar1 = *(int8 *)(param_3 + 8); *(int8 *)(param_3 + 8) = 0; *(int8 *)(this + 0x30) = *(int8 *)param_3; *(int8 *)(this + 0x38) = uVar1; *(int8 *)param_3 = 0; return; }
19,479
testing::internal::TypedTestSuitePState::VerifyRegisteredTestNames(char const*, char const*, int, char const*)
giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/src/gtest-typed-test.cc
const char* TypedTestSuitePState::VerifyRegisteredTestNames( const char* test_suite_name, const char* file, int line, const char* registered_tests) { RegisterTypeParameterizedTestSuite(test_suite_name, CodeLocation(file, line)); typedef RegisteredTestsMap::const_iterator RegisteredTestIter; registered_ = true; std::vector<std::string> name_vec = SplitIntoTestNames(registered_tests); Message errors; std::set<std::string> tests; for (std::vector<std::string>::const_iterator name_it = name_vec.begin(); name_it != name_vec.end(); ++name_it) { const std::string& name = *name_it; if (tests.count(name) != 0) { errors << "Test " << name << " is listed more than once.\n"; continue; } if (registered_tests_.count(name) != 0) { tests.insert(name); } else { errors << "No test named " << name << " can be found in this test suite.\n"; } } for (RegisteredTestIter it = registered_tests_.begin(); it != registered_tests_.end(); ++it) { if (tests.count(it->first) == 0) { errors << "You forgot to list test " << it->first << ".\n"; } } const std::string& errors_str = errors.GetString(); if (!errors_str.empty()) { fprintf(stderr, "%s %s", FormatFileLocation(file, line).c_str(), errors_str.c_str()); fflush(stderr); posix::Abort(); } return registered_tests; }
O1
cpp
testing::internal::TypedTestSuitePState::VerifyRegisteredTestNames(char const*, char const*, int, char const*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x108, %rsp # imm = 0x108 movq %r8, %r12 movl %ecx, %ebp movq %rdx, %r13 movq %rsi, %rbx movq %rdi, 0x30(%rsp) leaq 0x58(%rsp), %rdi leaq 0x78(%rsp), %rdx movq %r13, %rsi callq 0x81e0 leaq 0xd0(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0x68(%rsp), %r14 movq -0x10(%r14), %rax cmpq %r14, %rax je 0x18826 movq %rax, 0xc0(%rsp) movq 0x68(%rsp), %rax movq %rax, 0xd0(%rsp) jmp 0x1882e movups (%r14), %xmm0 movups %xmm0, (%r15) movq 0x60(%rsp), %rax leaq 0xc0(%rsp), %rsi movq %rax, 0x8(%rsi) movq %r14, 0x58(%rsp) movq $0x0, 0x60(%rsp) movb $0x0, 0x68(%rsp) movl %ebp, 0x20(%rsi) movq %rbx, %rdi callq 0x18d54 movq 0xc0(%rsp), %rdi cmpq %r15, %rdi je 0x1887a movq 0xd0(%rsp), %rsi incq %rsi callq 0x84e0 movq 0x58(%rsp), %rdi cmpq %r14, %rdi je 0x18891 movq 0x68(%rsp), %rsi incq %rsi callq 0x84e0 movq %r13, 0xa8(%rsp) movl %ebp, 0x3c(%rsp) movq 0x30(%rsp), %rax movb $0x1, (%rax) xorps %xmm0, %xmm0 movaps %xmm0, 0x40(%rsp) movq $0x0, 0x50(%rsp) movq %r12, 0xb0(%rsp) decq %r12 movzbl 0x1(%r12), %edi incq %r12 callq 0x80b0 testl %eax, %eax jne 0x188c1 leaq 0x18(%rsp), %rbx leaq 0x88(%rsp), %rbp leaq 0x8(%rsp), %r13 movq %r12, %rdi movl $0x2c, %esi callq 0x81d0 movq %rbx, 0x8(%rsp) testq %rax, %rax je 0x1890c movq %r13, %rdi movq %r12, %rsi movq %rax, %rdx callq 0x39504 jmp 0x18923 movq %r12, %rdi callq 0x8200 leaq (%rax,%r12), %rdx movq %r13, %rdi movq %r12, %rsi callq 0x39504 movq 0x8(%rsp), %r14 movq 0x10(%rsp), %r15 testq %r15, %r15 je 0x18971 addq %r14, %r15 movzbl -0x1(%r15), %edi callq 0x80b0 testl %eax, %eax je 0x18971 decq %r15 movq %r15, %rbx subq %r14, %rbx movl $0x1, %edx movq %r13, %rdi movq %rbx, %rsi callq 0x8630 movq 0x8(%rsp), %rax addq %rax, %rbx cmpq %r14, %r15 movq %rax, %r14 movq %rbx, %r15 jne 0x18935 jmp 0x18974 movq %r14, %rax movq %rbp, 0x78(%rsp) leaq 0x18(%rsp), %rbx cmpq %rbx, %rax je 0x18997 movq %rax, 0x78(%rsp) movq 0x18(%rsp), %rax movq %rax, 0x88(%rsp) jmp 0x1899e movups (%rbx), %xmm0 movups %xmm0, (%rbp) movq 0x10(%rsp), %rax movq %rax, 0x80(%rsp) movq %rbx, 0x8(%rsp) movq $0x0, 0x10(%rsp) movb $0x0, 0x18(%rsp) leaq 0x40(%rsp), %rdi leaq 0x78(%rsp), %rsi callq 0x3a1ee movq 0x78(%rsp), %rdi cmpq %rbp, %rdi je 0x189e7 movq 0x88(%rsp), %rsi incq %rsi callq 0x84e0 movq 0x8(%rsp), %rdi cmpq %rbx, %rdi je 0x189fe movq 0x18(%rsp), %rsi incq %rsi callq 0x84e0 movq %r12, %rdi movl $0x2c, %esi callq 0x81d0 testq %rax, %rax je 0x18a27 movq %rax, %r12 movzbl 0x1(%r12), %edi incq %r12 callq 0x80b0 testl %eax, %eax jne 0x18a13 jmp 0x18a2a xorl %r12d, %r12d testq %r12, %r12 jne 0x188e5 leaq 0x28(%rsp), %rdi callq 0x1cd64 leaq 0x80(%rsp), %r13 movl $0x0, (%r13) xorl %eax, %eax movq %rax, 0x8(%r13) movq %r13, 0x10(%r13) movq %r13, 0x18(%r13) movq %rax, 0x20(%r13) movq 0x40(%rsp), %r14 cmpq 0x48(%rsp), %r14 je 0x18b3c movq 0x28(%rsp), %r12 addq $0x10, %r12 movq 0x30(%rsp), %rax leaq 0x8(%rax), %r15 addq $0x10, %rax movq %rax, 0xb8(%rsp) leaq 0x78(%rsp), %rbp movq %rbp, %rdi movq %r14, %rsi callq 0x3a242 cmpq %r13, %rax je 0x18ade movl $0x5, %edx movq %r12, %rdi leaq 0x29ada(%rip), %rsi # 0x4258b callq 0x85b0 movq (%r14), %rsi movq 0x8(%r14), %rdx movl $0x1b, %ebx movq %r12, %rdi callq 0x85b0 leaq 0x29ac0(%rip), %rsi # 0x42591 movq %r12, %rdi movq %rbx, %rdx callq 0x85b0 jmp 0x18afe movq %r15, %rdi movq %r14, %rsi callq 0x39624 cmpq 0xb8(%rsp), %rax je 0x18b0b movq %rbp, %rdi movq %r14, %rsi callq 0x3a2cc addq $0x20, %r14 cmpq 0x48(%rsp), %r14 jne 0x18a92 jmp 0x18b3c movl $0xe, %edx movq %r12, %rdi leaq 0x29a93(%rip), %rsi # 0x425ad callq 0x85b0 movq (%r14), %rsi movq 0x8(%r14), %rdx movl $0x22, %ebx movq %r12, %rdi callq 0x85b0 leaq 0x29a82(%rip), %rsi # 0x425bc jmp 0x18ad1 movq 0x30(%rsp), %rax movq 0x20(%rax), %rbx addq $0x10, %rax cmpq %rax, %rbx je 0x18bbb movq %rax, %r15 leaq 0x78(%rsp), %r14 leaq 0x2a6c7(%rip), %r12 # 0x43224 leaq 0x20(%rbx), %rsi movq %r14, %rdi callq 0x3a242 cmpq %r13, %rax jne 0x18bab movq 0x28(%rsp), %rbp addq $0x10, %rbp movl $0x18, %edx movq %rbp, %rdi leaq 0x29a59(%rip), %rsi # 0x425df callq 0x85b0 movq 0x20(%rbx), %rsi movq 0x28(%rbx), %rdx movq %rbp, %rdi callq 0x85b0 movl $0x2, %edx movq %rbp, %rdi movq %r12, %rsi callq 0x85b0 movq %rbx, %rdi callq 0x85d0 movq %rax, %rbx cmpq %r15, %rax jne 0x18b5d movq 0x28(%rsp), %rbx leaq 0x8(%rsp), %rdi movq %rbx, %rsi callq 0x1cfc7 cmpq $0x0, 0x10(%rsp) movq 0xb0(%rsp), %r14 leaq 0x18(%rsp), %rax jne 0x18c30 movq 0x8(%rsp), %rdi cmpq %rax, %rdi je 0x18bf9 movq 0x18(%rsp), %rsi incq %rsi callq 0x84e0 leaq 0x78(%rsp), %rdi callq 0x3654e testq %rbx, %rbx je 0x18c11 movq (%rbx), %rax movq %rbx, %rdi callq *0x8(%rax) leaq 0x40(%rsp), %rdi callq 0x3244c movq %r14, %rax addq $0x108, %rsp # imm = 0x108 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq 0x40391(%rip), %rax # 0x58fc8 movq (%rax), %rbx leaq 0xe8(%rsp), %rdi movq 0xa8(%rsp), %rsi movl 0x3c(%rsp), %edx callq 0x169a6 leaq 0xe8(%rsp), %rdi leaq 0x8(%rsp), %rsi movq %rbx, %rdx callq 0x8bfb movq %rax, %rbx movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x18cfe movq 0x18(%rsp), %rsi incq %rsi callq 0x84e0 jmp 0x18cfe jmp 0x18cfb jmp 0x18cd5 movq %rax, %rbx movq 0xc0(%rsp), %rdi cmpq %r15, %rdi je 0x18cb1 movq 0xd0(%rsp), %rsi incq %rsi callq 0x84e0 movq 0x58(%rsp), %rdi cmpq %r14, %rdi je 0x18d4c movq 0x68(%rsp), %rsi incq %rsi callq 0x84e0 jmp 0x18d4c movq %rax, %rbx jmp 0x18d4c jmp 0x18cd5 movq %rax, %rbx jmp 0x18d42 movq %rax, %rbx movq 0x78(%rsp), %rdi cmpq %rbp, %rdi je 0x18d26 movq 0x88(%rsp), %rsi incq %rsi callq 0x84e0 jmp 0x18d26 jmp 0x18cfb movq %rax, %rbx leaq 0x78(%rsp), %rdi callq 0x3654e movq 0x28(%rsp), %rdi testq %rdi, %rdi je 0x18d18 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x28(%rsp) jmp 0x18d42 movq %rax, %rbx movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x18d42 movq 0x18(%rsp), %rsi incq %rsi callq 0x84e0 leaq 0x40(%rsp), %rdi callq 0x3244c movq %rbx, %rdi callq 0x8990
_ZN7testing8internal20TypedTestSuitePState25VerifyRegisteredTestNamesEPKcS3_iS3_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 108h mov r12, r8 mov ebp, ecx mov r13, rdx mov rbx, rsi mov [rsp+138h+var_108], rdi; __int64 lea rdi, [rsp+138h+var_E0] lea rdx, [rsp+138h+var_C0] mov rsi, r13 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EPKcRKS3_; std::string::basic_string(char const*,std::allocator<char> const&) lea r15, [rsp+138h+var_68] mov [r15-10h], r15 lea r14, [rsp+138h+var_D0] mov rax, [r14-10h] cmp rax, r14 jz short loc_18826 mov [rsp+138h+var_78], rax mov rax, qword ptr [rsp+138h+var_D0] mov [rsp+138h+var_68], rax jmp short loc_1882E loc_18826: movups xmm0, xmmword ptr [r14] movups xmmword ptr [r15], xmm0 loc_1882E: mov rax, [rsp+138h+var_D8] lea rsi, [rsp+138h+var_78] mov [rsi+8], rax mov [rsp+138h+var_E0], r14; int mov [rsp+138h+var_D8], 0; void * mov byte ptr [rsp+138h+var_D0], 0; int mov [rsi+20h], ebp mov rdi, rbx; int call _ZN7testing8internal34RegisterTypeParameterizedTestSuiteEPKcNS0_12CodeLocationE; testing::internal::RegisterTypeParameterizedTestSuite(char const*,testing::internal::CodeLocation) mov rdi, [rsp+138h+var_78]; void * cmp rdi, r15 jz short loc_1887A mov rsi, [rsp+138h+var_68] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1887A: mov rdi, [rsp+138h+var_E0]; void * cmp rdi, r14 jz short loc_18891 mov rsi, qword ptr [rsp+138h+var_D0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_18891: mov qword ptr [rsp+138h+var_90], r13 mov [rsp+138h+var_FC], ebp mov rax, [rsp+138h+var_108] mov byte ptr [rax], 1 xorps xmm0, xmm0 movaps xmmword ptr [rsp+138h+var_F8], xmm0; int mov [rsp+138h+var_E8], 0; __int64 mov [rsp+138h+var_88], r12 dec r12 loc_188C1: movzx edi, byte ptr [r12+1] inc r12 call _isspace test eax, eax jnz short loc_188C1 lea rbx, [rsp+138h+var_120] lea rbp, [rsp+138h+var_B0] lea r13, [rsp+138h+var_130] loc_188E5: mov rdi, r12 mov esi, 2Ch ; ',' call _strchr mov [rsp+138h+var_130], rbx test rax, rax jz short loc_1890C mov rdi, r13 mov rsi, r12 mov rdx, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) jmp short loc_18923 loc_1890C: mov rdi, r12 call _strlen lea rdx, [rax+r12] mov rdi, r13 mov rsi, r12 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) loc_18923: mov r14, [rsp+138h+var_130] mov r15, [rsp+138h+var_128] test r15, r15 jz short loc_18971 add r15, r14 loc_18935: movzx edi, byte ptr [r15-1] call _isspace test eax, eax jz short loc_18971 dec r15 mov rbx, r15 sub rbx, r14 mov edx, 1 mov rdi, r13 mov rsi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8_M_eraseEmm; std::string::_M_erase(ulong,ulong) mov rax, [rsp+138h+var_130] add rbx, rax cmp r15, r14 mov r14, rax mov r15, rbx jnz short loc_18935 jmp short loc_18974 loc_18971: mov rax, r14 loc_18974: mov [rsp+138h+var_C0], rbp lea rbx, [rsp+138h+var_120] cmp rax, rbx jz short loc_18997 mov [rsp+138h+var_C0], rax mov rax, qword ptr [rsp+138h+var_120] mov [rsp+138h+var_B0], rax jmp short loc_1899E loc_18997: movups xmm0, xmmword ptr [rbx] movups xmmword ptr [rbp+0], xmm0 loc_1899E: mov rax, [rsp+138h+var_128] mov [rsp+138h+var_B8], rax mov [rsp+138h+var_130], rbx; int mov [rsp+138h+var_128], 0; __int64 mov byte ptr [rsp+138h+var_120], 0; int lea rdi, [rsp+138h+var_F8] lea rsi, [rsp+138h+var_C0] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJS5_EEEvDpOT_; std::vector<std::string>::emplace_back<std::string>(std::string &&) mov rdi, [rsp+138h+var_C0]; void * cmp rdi, rbp jz short loc_189E7 mov rsi, [rsp+138h+var_B0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_189E7: mov rdi, [rsp+138h+var_130]; void * cmp rdi, rbx jz short loc_189FE mov rsi, qword ptr [rsp+138h+var_120] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_189FE: mov rdi, r12 mov esi, 2Ch ; ',' call _strchr test rax, rax jz short loc_18A27 mov r12, rax loc_18A13: movzx edi, byte ptr [r12+1] inc r12 call _isspace test eax, eax jnz short loc_18A13 jmp short loc_18A2A loc_18A27: xor r12d, r12d loc_18A2A: test r12, r12 jnz loc_188E5 lea rdi, [rsp+138h+var_110]; this call _ZN7testing7MessageC2Ev; testing::Message::Message(void) lea r13, [rsp+138h+var_B8] mov dword ptr [r13+0], 0 xor eax, eax mov [r13+8], rax mov [r13+10h], r13 mov [r13+18h], r13 mov [r13+20h], rax mov r14, qword ptr [rsp+138h+var_F8] cmp r14, qword ptr [rsp+138h+var_F8+8] jz loc_18B3C mov r12, [rsp+138h+var_110] add r12, 10h mov rax, [rsp+138h+var_108] lea r15, [rax+8] add rax, 10h mov [rsp+138h+var_80], rax lea rbp, [rsp+138h+var_C0] loc_18A92: mov rdi, rbp mov rsi, r14 call _ZNKSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St9_IdentityIS5_ESt4lessIS5_ESaIS5_EE4findERKS5_; std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::find(std::string const&) cmp rax, r13 jz short loc_18ADE mov edx, 5 mov rdi, r12 lea rsi, aTest; "Test " call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rsi, [r14] mov rdx, [r14+8] mov ebx, 1Bh mov rdi, r12 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rsi, aIsListedMoreTh; " is listed more than once.\n" loc_18AD1: mov rdi, r12 mov rdx, rbx call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) jmp short loc_18AFE loc_18ADE: mov rdi, r15 mov rsi, r14 call _ZNKSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N7testing8internal12CodeLocationEESt10_Select1stISB_ESt4lessIvESaISB_EE4findERS7_; std::_Rb_tree<std::string,std::pair<std::string const,testing::internal::CodeLocation>,std::_Select1st<std::pair<std::string const,testing::internal::CodeLocation>>,std::less<void>,std::allocator<std::pair<std::string const,testing::internal::CodeLocation>>>::find(std::string const&) cmp rax, [rsp+138h+var_80] jz short loc_18B0B mov rdi, rbp mov rsi, r14 call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St9_IdentityIS5_ESt4lessIS5_ESaIS5_EE16_M_insert_uniqueIRKS5_EESt4pairISt17_Rb_tree_iteratorIS5_EbEOT_; std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::_M_insert_unique<std::string const&>(std::string const&) loc_18AFE: add r14, 20h ; ' ' cmp r14, qword ptr [rsp+138h+var_F8+8] jnz short loc_18A92 jmp short loc_18B3C loc_18B0B: mov edx, 0Eh mov rdi, r12 lea rsi, aNoTestNamed; "No test named " call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rsi, [r14] mov rdx, [r14+8] mov ebx, 22h ; '"' mov rdi, r12 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rsi, aCanBeFoundInTh; " can be found in this test suite.\n" jmp short loc_18AD1 loc_18B3C: mov rax, [rsp+138h+var_108] mov rbx, [rax+20h] add rax, 10h cmp rbx, rax jz short loc_18BBB mov r15, rax lea r14, [rsp+138h+var_C0] lea r12, aNoteRandomizin+32h; ".\n" loc_18B5D: lea rsi, [rbx+20h] mov rdi, r14 call _ZNKSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St9_IdentityIS5_ESt4lessIS5_ESaIS5_EE4findERKS5_; std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::find(std::string const&) cmp rax, r13 jnz short loc_18BAB mov rbp, [rsp+138h+var_110] add rbp, 10h mov edx, 18h mov rdi, rbp lea rsi, aYouForgotToLis; "You forgot to list test " call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rsi, [rbx+20h] mov rdx, [rbx+28h] mov rdi, rbp call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov edx, 2 mov rdi, rbp mov rsi, r12 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) loc_18BAB: mov rdi, rbx call __ZSt18_Rb_tree_incrementPKSt18_Rb_tree_node_base; std::_Rb_tree_increment(std::_Rb_tree_node_base const*) mov rbx, rax cmp rax, r15 jnz short loc_18B5D loc_18BBB: mov rbx, [rsp+138h+var_110] lea rdi, [rsp+138h+var_130] mov rsi, rbx call _ZN7testing8internal20StringStreamToStringEPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE; testing::internal::StringStreamToString(std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>> *) cmp [rsp+138h+var_128], 0 mov r14, [rsp+138h+var_88] lea rax, [rsp+138h+var_120] jnz short loc_18C30 mov rdi, [rsp+138h+var_130]; void * cmp rdi, rax jz short loc_18BF9 mov rsi, qword ptr [rsp+138h+var_120] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_18BF9: lea rdi, [rsp+138h+var_C0] call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St9_IdentityIS5_ESt4lessIS5_ESaIS5_EED2Ev; std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::~_Rb_tree() test rbx, rbx jz short loc_18C11 mov rax, [rbx] mov rdi, rbx call qword ptr [rax+8] loc_18C11: lea rdi, [rsp+138h+var_F8]; void * call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() mov rax, r14 add rsp, 108h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_18C30: mov rax, cs:stderr_ptr mov rbx, [rax] lea rdi, [rsp+138h+var_50]; int mov rsi, qword ptr [rsp+138h+var_90]; int mov edx, [rsp+138h+var_FC]; int call _ZN7testing8internal18FormatFileLocationB5cxx11EPKci; testing::internal::FormatFileLocation(char const*,int) lea rdi, [rsp+138h+var_50]; void * lea rsi, [rsp+138h+var_130] mov rdx, rbx call _ZN7testing8internal20TypedTestSuitePState25VerifyRegisteredTestNamesEPKcS3_iS3__cold_1; testing::internal::TypedTestSuitePState::VerifyRegisteredTestNames(char const*,char const*,int,char const*) [clone] mov rbx, rax mov rdi, [rsp+138h+var_130]; void * lea rax, [rsp+138h+var_120] cmp rdi, rax jz loc_18CFE mov rsi, qword ptr [rsp+138h+var_120] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_18CFE jmp short loc_18CFB jmp short loc_18CD5 mov rbx, rax mov rdi, [rsp+138h+var_78]; void * cmp rdi, r15 jz short loc_18CB1 mov rsi, [rsp+138h+var_68] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_18CB1: mov rdi, [rsp+138h+var_E0]; void * cmp rdi, r14 jz loc_18D4C mov rsi, qword ptr [rsp+138h+var_D0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_18D4C mov rbx, rax jmp short loc_18D4C jmp short $+2 loc_18CD5: mov rbx, rax jmp short loc_18D42 mov rbx, rax mov rdi, [rsp+138h+var_C0]; void * cmp rdi, rbp jz short loc_18D26 mov rsi, [rsp+138h+var_B0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_18D26 jmp short $+2 loc_18CFB: mov rbx, rax loc_18CFE: lea rdi, [rsp+138h+var_C0] call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St9_IdentityIS5_ESt4lessIS5_ESaIS5_EED2Ev; std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::~_Rb_tree() mov rdi, [rsp+138h+var_110] test rdi, rdi jz short loc_18D18 mov rax, [rdi] call qword ptr [rax+8] loc_18D18: mov [rsp+138h+var_110], 0 jmp short loc_18D42 mov rbx, rax loc_18D26: mov rdi, [rsp+138h+var_130]; void * lea rax, [rsp+138h+var_120] cmp rdi, rax jz short loc_18D42 mov rsi, qword ptr [rsp+138h+var_120] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_18D42: lea rdi, [rsp+138h+var_F8]; void * call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() loc_18D4C: mov rdi, rbx call __Unwind_Resume
const char * testing::internal::TypedTestSuitePState::VerifyRegisteredTestNames( testing::internal::TypedTestSuitePState *this, const char *a2, const char *a3, int a4, const char *a5) { const char *v8; // r12 long long v9; // rdi long long v10; // rax long long v11; // rax char *v12; // r14 char *v13; // r15 char *v14; // r15 signed long long v15; // rbx __int128 *v16; // rax bool v17; // zf long long v18; // rax long long v19; // rdi int v20; // edx int v21; // ecx int v22; // r8d int v23; // r9d _QWORD *v24; // r14 long long v25; // r12 long long v26; // r15 long long v27; // rbx const char *v28; // rsi long long v29; // rax long long v30; // rbx long long v31; // r15 long long v32; // rbp long long v33; // rbx const char *v34; // r14 long long v36; // rbx void *v37; // [rsp+0h] [rbp-138h] void *v38; // [rsp+8h] [rbp-130h] BYREF long long v39; // [rsp+10h] [rbp-128h] __int128 v40; // [rsp+18h] [rbp-120h] BYREF long long v41; // [rsp+28h] [rbp-110h] BYREF long long v42; // [rsp+30h] [rbp-108h] int v43; // [rsp+3Ch] [rbp-FCh] int v44[4]; // [rsp+40h] [rbp-F8h] BYREF long long v45; // [rsp+50h] [rbp-E8h] void *v46; // [rsp+58h] [rbp-E0h] BYREF void *v47; // [rsp+60h] [rbp-D8h] __int128 v48; // [rsp+68h] [rbp-D0h] BYREF void *v49; // [rsp+78h] [rbp-C0h] BYREF long long v50; // [rsp+80h] [rbp-B8h] BYREF __int128 v51; // [rsp+88h] [rbp-B0h] BYREF long long *v52; // [rsp+98h] [rbp-A0h] long long v53; // [rsp+A0h] [rbp-98h] int v54[2]; // [rsp+A8h] [rbp-90h] const char *v55; // [rsp+B0h] [rbp-88h] long long v56; // [rsp+B8h] [rbp-80h] void *v57; // [rsp+C0h] [rbp-78h] void *v58; // [rsp+C8h] [rbp-70h] __int128 v59; // [rsp+D0h] [rbp-68h] BYREF int v60; // [rsp+E0h] [rbp-58h] int v61[20]; // [rsp+E8h] [rbp-50h] BYREF v42 = (long long)this; std::string::basic_string(&v46, a3, &v49); v57 = &v59; if ( v46 == &v48 ) { v59 = v48; } else { v57 = v46; *(_QWORD *)&v59 = v48; } v58 = v47; v46 = &v48; v47 = 0LL; LOBYTE(v48) = 0; v60 = a4; testing::internal::RegisterTypeParameterizedTestSuite((int)a2, v37, (int)v38, v39); if ( v57 != &v59 ) operator delete(v57, v59 + 1); if ( v46 != &v48 ) operator delete(v46, v48 + 1); *(_QWORD *)v54 = a3; v43 = a4; *(_BYTE *)v42 = 1; *(_OWORD *)v44 = 0LL; v45 = 0LL; v55 = a5; v8 = a5 - 1; do v9 = *(unsigned __int8 *)++v8; while ( (unsigned int)isspace(v9) ); do { v10 = strchr(v8, 44LL); v38 = &v40; if ( v10 ) { std::string::_M_construct<char const*>(&v38, v8, v10); } else { v11 = strlen(v8); std::string::_M_construct<char const*>(&v38, v8, &v8[v11]); } v12 = (char *)v38; if ( v39 ) { v13 = (char *)v38 + v39; while ( (unsigned int)isspace((unsigned __int8)*(v13 - 1)) ) { v14 = v13 - 1; v15 = v14 - v12; std::string::_M_erase(&v38, v14 - v12, 1LL); v16 = (__int128 *)v38; v17 = v14 == v12; v12 = (char *)v38; v13 = (char *)v38 + v15; if ( v17 ) goto LABEL_19; } } v16 = (__int128 *)v12; LABEL_19: v49 = &v51; if ( v16 == &v40 ) { v51 = v40; } else { v49 = v16; *(_QWORD *)&v51 = v40; } v50 = v39; v38 = &v40; v39 = 0LL; LOBYTE(v40) = 0; std::vector<std::string>::emplace_back<std::string>(v44, &v49); if ( v49 != &v51 ) operator delete(v49, v51 + 1); if ( v38 != &v40 ) operator delete(v38, v40 + 1); v18 = strchr(v8, 44LL); if ( v18 ) { v8 = (const char *)v18; do v19 = *(unsigned __int8 *)++v8; while ( (unsigned int)isspace(v19) ); } else { v8 = 0LL; } } while ( v8 ); testing::Message::Message((testing::Message *)&v41); LODWORD(v50) = 0; *(_QWORD *)&v51 = 0LL; *((_QWORD *)&v51 + 1) = &v50; v52 = &v50; v53 = 0LL; v24 = *(_QWORD **)v44; if ( *(_QWORD *)v44 != *(_QWORD *)&v44[2] ) { v25 = v41 + 16; v26 = v42 + 8; v56 = v42 + 16; do { if ( (long long *)std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::find( &v49, v24) == &v50 ) { v29 = std::_Rb_tree<std::string,std::pair<std::string const,testing::internal::CodeLocation>,std::_Select1st<std::pair<std::string const,testing::internal::CodeLocation>>,std::less<void>,std::allocator<std::pair<std::string const,testing::internal::CodeLocation>>>::find( v26, v24); if ( v29 != v56 ) { std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::_M_insert_unique<std::string const&>( &v49, v24); goto LABEL_39; } std::__ostream_insert<char,std::char_traits<char>>(v25, "No test named ", 14LL); v27 = 34LL; std::__ostream_insert<char,std::char_traits<char>>(v25, *v24, v24[1]); v28 = " can be found in this test suite.\n"; } else { std::__ostream_insert<char,std::char_traits<char>>(v25, "Test ", 5LL); v27 = 27LL; std::__ostream_insert<char,std::char_traits<char>>(v25, *v24, v24[1]); v28 = " is listed more than once.\n"; } std::__ostream_insert<char,std::char_traits<char>>(v25, v28, v27); LABEL_39: v24 += 4; } while ( v24 != *(_QWORD **)&v44[2] ); } v30 = *(_QWORD *)(v42 + 32); if ( v30 != v42 + 16 ) { v31 = v42 + 16; do { if ( (long long *)std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::find( &v49, v30 + 32) == &v50 ) { v32 = v41 + 16; std::__ostream_insert<char,std::char_traits<char>>(v41 + 16, "You forgot to list test ", 24LL); std::__ostream_insert<char,std::char_traits<char>>(v32, *(_QWORD *)(v30 + 32), *(_QWORD *)(v30 + 40)); std::__ostream_insert<char,std::char_traits<char>>(v32, ".\n", 2LL); } v30 = std::_Rb_tree_increment(v30); } while ( v30 != v31 ); } v33 = v41; testing::internal::StringStreamToString((unsigned int)&v38, v41, v20, v21, v22, v23); v34 = v55; if ( v39 ) { v36 = stderr; testing::internal::FormatFileLocation[abi:cxx11]((long long)v61, *(const char **)v54, v43); testing::internal::TypedTestSuitePState::VerifyRegisteredTestNames((const char **)v61, (const char **)&v38, v36); } if ( v38 != &v40 ) operator delete(v38, v40 + 1); std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::~_Rb_tree(&v49); if ( v33 ) (*(void ( **)(long long))(*(_QWORD *)v33 + 8LL))(v33); std::vector<std::string>::~vector(v44); return v34; }
VerifyRegisteredTestNames: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x108 MOV R12,R8 MOV EBP,ECX MOV R13,RDX MOV RBX,RSI MOV qword ptr [RSP + 0x30],RDI LAB_001187e3: LEA RDI,[RSP + 0x58] LEA RDX,[RSP + 0x78] MOV RSI,R13 CALL 0x001081e0 LEA R15,[RSP + 0xd0] MOV qword ptr [R15 + -0x10],R15 LEA R14,[RSP + 0x68] MOV RAX,qword ptr [R14 + -0x10] CMP RAX,R14 JZ 0x00118826 MOV qword ptr [RSP + 0xc0],RAX MOV RAX,qword ptr [RSP + 0x68] MOV qword ptr [RSP + 0xd0],RAX JMP 0x0011882e LAB_00118826: MOVUPS XMM0,xmmword ptr [R14] MOVUPS xmmword ptr [R15],XMM0 LAB_0011882e: MOV RAX,qword ptr [RSP + 0x60] LEA RSI,[RSP + 0xc0] MOV qword ptr [RSI + 0x8],RAX MOV qword ptr [RSP + 0x58],R14 MOV qword ptr [RSP + 0x60],0x0 MOV byte ptr [RSP + 0x68],0x0 MOV dword ptr [RSI + 0x20],EBP LAB_00118855: MOV RDI,RBX CALL 0x00118d54 MOV RDI,qword ptr [RSP + 0xc0] CMP RDI,R15 JZ 0x0011887a MOV RSI,qword ptr [RSP + 0xd0] INC RSI CALL 0x001084e0 LAB_0011887a: MOV RDI,qword ptr [RSP + 0x58] CMP RDI,R14 JZ 0x00118891 MOV RSI,qword ptr [RSP + 0x68] INC RSI CALL 0x001084e0 LAB_00118891: MOV qword ptr [RSP + 0xa8],R13 MOV dword ptr [RSP + 0x3c],EBP MOV RAX,qword ptr [RSP + 0x30] MOV byte ptr [RAX],0x1 XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP + 0x40],XMM0 MOV qword ptr [RSP + 0x50],0x0 MOV qword ptr [RSP + 0xb0],R12 DEC R12 LAB_001188c1: MOVZX EDI,byte ptr [R12 + 0x1] INC R12 CALL 0x001080b0 TEST EAX,EAX JNZ 0x001188c1 LEA RBX,[RSP + 0x18] LEA RBP,[RSP + 0x88] LEA R13,[RSP + 0x8] LAB_001188e5: MOV RDI,R12 MOV ESI,0x2c CALL 0x001081d0 MOV qword ptr [RSP + 0x8],RBX TEST RAX,RAX JZ 0x0011890c LAB_001188fc: MOV RDI,R13 MOV RSI,R12 MOV RDX,RAX CALL 0x00139504 JMP 0x00118923 LAB_0011890c: MOV RDI,R12 CALL 0x00108200 LEA RDX,[RAX + R12*0x1] LAB_00118918: MOV RDI,R13 MOV RSI,R12 CALL 0x00139504 LAB_00118923: MOV R14,qword ptr [RSP + 0x8] MOV R15,qword ptr [RSP + 0x10] TEST R15,R15 JZ 0x00118971 ADD R15,R14 LAB_00118935: MOVZX EDI,byte ptr [R15 + -0x1] CALL 0x001080b0 TEST EAX,EAX JZ 0x00118971 DEC R15 MOV RBX,R15 SUB RBX,R14 LAB_0011894c: MOV EDX,0x1 MOV RDI,R13 MOV RSI,RBX CALL 0x00108630 MOV RAX,qword ptr [RSP + 0x8] ADD RBX,RAX CMP R15,R14 MOV R14,RAX MOV R15,RBX JNZ 0x00118935 JMP 0x00118974 LAB_00118971: MOV RAX,R14 LAB_00118974: MOV qword ptr [RSP + 0x78],RBP LEA RBX,[RSP + 0x18] CMP RAX,RBX JZ 0x00118997 MOV qword ptr [RSP + 0x78],RAX MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x88],RAX JMP 0x0011899e LAB_00118997: MOVUPS XMM0,xmmword ptr [RBX] MOVUPS xmmword ptr [RBP],XMM0 LAB_0011899e: MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x80],RAX MOV qword ptr [RSP + 0x8],RBX MOV qword ptr [RSP + 0x10],0x0 MOV byte ptr [RSP + 0x18],0x0 LAB_001189be: LEA RDI,[RSP + 0x40] LEA RSI,[RSP + 0x78] CALL 0x0013a1ee MOV RDI,qword ptr [RSP + 0x78] CMP RDI,RBP JZ 0x001189e7 MOV RSI,qword ptr [RSP + 0x88] INC RSI CALL 0x001084e0 LAB_001189e7: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,RBX JZ 0x001189fe MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001084e0 LAB_001189fe: MOV RDI,R12 MOV ESI,0x2c CALL 0x001081d0 TEST RAX,RAX JZ 0x00118a27 MOV R12,RAX LAB_00118a13: MOVZX EDI,byte ptr [R12 + 0x1] INC R12 CALL 0x001080b0 TEST EAX,EAX JNZ 0x00118a13 JMP 0x00118a2a LAB_00118a27: XOR R12D,R12D LAB_00118a2a: TEST R12,R12 JNZ 0x001188e5 LAB_00118a33: LEA RDI,[RSP + 0x28] CALL 0x0011cd64 LEA R13,[RSP + 0x80] MOV dword ptr [R13],0x0 XOR EAX,EAX MOV qword ptr [R13 + 0x8],RAX MOV qword ptr [R13 + 0x10],R13 MOV qword ptr [R13 + 0x18],R13 MOV qword ptr [R13 + 0x20],RAX MOV R14,qword ptr [RSP + 0x40] CMP R14,qword ptr [RSP + 0x48] JZ 0x00118b3c MOV R12,qword ptr [RSP + 0x28] ADD R12,0x10 MOV RAX,qword ptr [RSP + 0x30] LEA R15,[RAX + 0x8] ADD RAX,0x10 MOV qword ptr [RSP + 0xb8],RAX LEA RBP,[RSP + 0x78] LAB_00118a92: MOV RDI,RBP MOV RSI,R14 CALL 0x0013a242 CMP RAX,R13 JZ 0x00118ade MOV EDX,0x5 MOV RDI,R12 LEA RSI,[0x14258b] CALL 0x001085b0 MOV RSI,qword ptr [R14] MOV RDX,qword ptr [R14 + 0x8] MOV EBX,0x1b MOV RDI,R12 CALL 0x001085b0 LEA RSI,[0x142591] LAB_00118ad1: MOV RDI,R12 MOV RDX,RBX CALL 0x001085b0 JMP 0x00118afe LAB_00118ade: MOV RDI,R15 MOV RSI,R14 CALL 0x00139624 CMP RAX,qword ptr [RSP + 0xb8] JZ 0x00118b0b MOV RDI,RBP MOV RSI,R14 CALL 0x0013a2cc LAB_00118afe: ADD R14,0x20 CMP R14,qword ptr [RSP + 0x48] JNZ 0x00118a92 JMP 0x00118b3c LAB_00118b0b: MOV EDX,0xe MOV RDI,R12 LEA RSI,[0x1425ad] CALL 0x001085b0 MOV RSI,qword ptr [R14] MOV RDX,qword ptr [R14 + 0x8] MOV EBX,0x22 MOV RDI,R12 CALL 0x001085b0 LEA RSI,[0x1425bc] JMP 0x00118ad1 LAB_00118b3c: MOV RAX,qword ptr [RSP + 0x30] MOV RBX,qword ptr [RAX + 0x20] ADD RAX,0x10 CMP RBX,RAX JZ 0x00118bbb MOV R15,RAX LEA R14,[RSP + 0x78] LEA R12,[0x143224] LAB_00118b5d: LEA RSI,[RBX + 0x20] LAB_00118b61: MOV RDI,R14 CALL 0x0013a242 CMP RAX,R13 JNZ 0x00118bab MOV RBP,qword ptr [RSP + 0x28] ADD RBP,0x10 MOV EDX,0x18 MOV RDI,RBP LEA RSI,[0x1425df] CALL 0x001085b0 MOV RSI,qword ptr [RBX + 0x20] MOV RDX,qword ptr [RBX + 0x28] MOV RDI,RBP CALL 0x001085b0 MOV EDX,0x2 MOV RDI,RBP MOV RSI,R12 CALL 0x001085b0 LAB_00118bab: MOV RDI,RBX CALL 0x001085d0 MOV RBX,RAX CMP RAX,R15 JNZ 0x00118b5d LAB_00118bbb: MOV RBX,qword ptr [RSP + 0x28] LAB_00118bc0: LEA RDI,[RSP + 0x8] MOV RSI,RBX CALL 0x0011cfc7 LAB_00118bcd: CMP qword ptr [RSP + 0x10],0x0 MOV R14,qword ptr [RSP + 0xb0] LEA RAX,[RSP + 0x18] JNZ 0x00118c30 MOV RDI,qword ptr [RSP + 0x8] CMP RDI,RAX JZ 0x00118bf9 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001084e0 LAB_00118bf9: LEA RDI,[RSP + 0x78] CALL 0x0013654e TEST RBX,RBX JZ 0x00118c11 MOV RAX,qword ptr [RBX] MOV RDI,RBX CALL qword ptr [RAX + 0x8] LAB_00118c11: LEA RDI,[RSP + 0x40] CALL 0x0013244c MOV RAX,R14 ADD RSP,0x108 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00118c30: MOV RAX,qword ptr [0x00158fc8] MOV RBX,qword ptr [RAX] LAB_00118c3a: LEA RDI,[RSP + 0xe8] MOV RSI,qword ptr [RSP + 0xa8] MOV EDX,dword ptr [RSP + 0x3c] CALL 0x001169a6 LAB_00118c53: LEA RDI,[RSP + 0xe8] LEA RSI,[RSP + 0x8] MOV RDX,RBX CALL 0x00108bfb LAB_00118c68: MOV RBX,RAX MOV RDI,qword ptr [RSP + 0x8] LEA RAX,[RSP + 0x18] CMP RDI,RAX JZ 0x00118cfe MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001084e0 JMP 0x00118cfe LAB_00118cfe: LEA RDI,[RSP + 0x78] CALL 0x0013654e MOV RDI,qword ptr [RSP + 0x28] TEST RDI,RDI JZ 0x00118d18 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] LAB_00118d18: MOV qword ptr [RSP + 0x28],0x0 JMP 0x00118d42 LAB_00118d42: LEA RDI,[RSP + 0x40] CALL 0x0013244c LAB_00118d4c: MOV RDI,RBX CALL 0x00108990
/* testing::internal::TypedTestSuitePState::VerifyRegisteredTestNames(char const*, char const*, int, char const*) */ char * __thiscall testing::internal::TypedTestSuitePState::VerifyRegisteredTestNames (TypedTestSuitePState *this,char *param_1,char *param_2,int param_3,char *param_4) { _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,testing::internal::CodeLocation>,std::_Select1st<std::pair<std::__cxx11::string_const,testing::internal::CodeLocation>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,testing::internal::CodeLocation>>> *this_00; byte *pbVar1; int8 uVar2; long *plVar3; int iVar4; char *pcVar5; size_t sVar6; long *plVar7; ulong *puVar8; TypedTestSuitePState *pTVar9; _Rb_tree_node_base *p_Var10; _Rb_tree_node_base *p_Var11; int8 extraout_RAX; int iVar12; int4 in_register_0000000c; ulong uVar13; char *pcVar14; ostream *poVar15; string *psVar16; long lVar17; long *plVar18; long *local_130; ulong local_128; int1 local_120; int7 uStack_11f; int8 uStack_118; long *local_110; TypedTestSuitePState *local_108; int local_fc; string *local_f8; string *psStack_f0; int8 local_e8; uint *local_e0; int8 local_d8; uint local_d0; int4 uStack_cc; int4 uStack_c8; int4 uStack_c4; long *local_c0; ulong local_b8; long local_b0; ulong *puStack_a8; ulong *local_a0; int8 local_98; char *local_90; char *local_88; TypedTestSuitePState *local_80; uint *local_78; int8 local_70; int8 local_68; int4 uStack_60; int4 uStack_5c; int local_58; internal local_50 [32]; /* try { // try from 001187e3 to 001187f4 has its CatchHandler @ 00118cce */ iVar12 = param_3; local_108 = this; std::__cxx11::string::string((string *)&local_e0,param_2,(allocator *)&local_c0); if (local_e0 == &local_d0) { uStack_60 = uStack_c8; uStack_5c = uStack_c4; local_78 = (uint *)&local_68; } else { local_78 = local_e0; } local_68 = CONCAT44(uStack_cc,local_d0); local_70 = local_d8; local_d8 = 0; local_d0 = local_d0 & 0xffffff00; local_e0 = &local_d0; local_58 = param_3; /* try { // try from 00118855 to 0011885c has its CatchHandler @ 00118c91 */ RegisterTypeParameterizedTestSuite(param_1); if (local_78 != (uint *)&local_68) { operator_delete(local_78,local_68 + 1); } if (local_e0 != &local_d0) { operator_delete(local_e0,CONCAT44(uStack_cc,local_d0) + 1); } *local_108 = (TypedTestSuitePState)0x1; local_f8 = (string *)0x0; psStack_f0 = (string *)0x0; local_e8 = 0; pcVar14 = param_4 + -1; local_fc = param_3; local_90 = param_2; local_88 = param_4; do { pbVar1 = (byte *)(pcVar14 + 1); pcVar14 = pcVar14 + 1; iVar4 = isspace((uint)*pbVar1); } while (iVar4 != 0); do { pcVar5 = strchr(pcVar14,0x2c); local_130 = (long *)&local_120; if (pcVar5 == (char *)0x0) { sVar6 = strlen(pcVar14); /* try { // try from 00118918 to 00118922 has its CatchHandler @ 00118cd3 */ std::__cxx11::string::_M_construct<char_const*>(&local_130,pcVar14,pcVar14 + sVar6); } else { /* try { // try from 001188fc to 00118909 has its CatchHandler @ 00118cd5 */ std::__cxx11::string::_M_construct<char_const*>(&local_130,pcVar14,pcVar5); } plVar7 = local_130; if (local_128 != 0) { lVar17 = local_128 + (long)local_130; do { plVar3 = local_130; iVar4 = isspace((uint)*(byte *)(lVar17 + -1)); plVar7 = plVar3; if (iVar4 == 0) break; plVar18 = (long *)(lVar17 + -1); uVar13 = (long)plVar18 - (long)plVar3; /* try { // try from 0011894c to 0011895b has its CatchHandler @ 00118d23 */ std::__cxx11::string::_M_erase((ulong)&local_130,uVar13); lVar17 = uVar13 + (long)local_130; plVar7 = local_130; } while (plVar18 != plVar3); } local_c0 = plVar7; if (plVar7 == (long *)&local_120) { puStack_a8 = (ulong *)uStack_118; local_c0 = &local_b0; } local_b0 = CONCAT71(uStack_11f,local_120); local_b8 = local_128; local_128 = 0; local_120 = 0; /* try { // try from 001189be to 001189cc has its CatchHandler @ 00118cda */ local_130 = (long *)&local_120; std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>:: emplace_back<std::__cxx11::string> ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_f8, (string *)&local_c0); if (local_c0 != &local_b0) { operator_delete(local_c0,local_b0 + 1); } if (local_130 != (long *)&local_120) { operator_delete(local_130,CONCAT71(uStack_11f,local_120) + 1); } pcVar14 = strchr(pcVar14,0x2c); if (pcVar14 == (char *)0x0) { pcVar14 = (char *)0x0; } else { do { pbVar1 = (byte *)(pcVar14 + 1); pcVar14 = pcVar14 + 1; iVar4 = isspace((uint)*pbVar1); } while (iVar4 != 0); } } while (pcVar14 != (char *)0x0); /* try { // try from 00118a33 to 00118a3c has its CatchHandler @ 00118c8f */ Message::Message((Message *)&local_110); local_b8 = local_b8 & 0xffffffff00000000; local_b0 = 0; local_98 = 0; puStack_a8 = &local_b8; local_a0 = &local_b8; if (local_f8 != psStack_f0) { poVar15 = (ostream *)(local_110 + 2); this_00 = (_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,testing::internal::CodeLocation>,std::_Select1st<std::pair<std::__cxx11::string_const,testing::internal::CodeLocation>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,testing::internal::CodeLocation>>> *)(local_108 + 8); local_80 = local_108 + 0x10; psVar16 = local_f8; do { /* try { // try from 00118a92 to 00118b32 has its CatchHandler @ 00118cfb */ puVar8 = (ulong *)std:: _Rb_tree<std::__cxx11::string,std::__cxx11::string,std::_Identity<std::__cxx11::string>,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>> ::find((_Rb_tree<std::__cxx11::string,std::__cxx11::string,std::_Identity<std::__cxx11::string>,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>> *)&local_c0,psVar16); if (puVar8 == &local_b8) { pTVar9 = (TypedTestSuitePState *) std:: _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,testing::internal::CodeLocation>,std::_Select1st<std::pair<std::__cxx11::string_const,testing::internal::CodeLocation>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,testing::internal::CodeLocation>>> ::find(this_00,psVar16); if (pTVar9 == local_80) { std::__ostream_insert<char,std::char_traits<char>>(poVar15,"No test named ",0xe); lVar17 = 0x22; std::__ostream_insert<char,std::char_traits<char>> (poVar15,*(char **)psVar16,*(long *)(psVar16 + 8)); pcVar14 = " can be found in this test suite.\n"; goto LAB_00118ad1; } std:: _Rb_tree<std::__cxx11::string,std::__cxx11::string,std::_Identity<std::__cxx11::string>,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>> ::_M_insert_unique<std::__cxx11::string_const&> ((_Rb_tree<std::__cxx11::string,std::__cxx11::string,std::_Identity<std::__cxx11::string>,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>> *)&local_c0,psVar16); } else { std::__ostream_insert<char,std::char_traits<char>>(poVar15,"Test ",5); lVar17 = 0x1b; std::__ostream_insert<char,std::char_traits<char>> (poVar15,*(char **)psVar16,*(long *)(psVar16 + 8)); pcVar14 = " is listed more than once.\n"; LAB_00118ad1: std::__ostream_insert<char,std::char_traits<char>>(poVar15,pcVar14,lVar17); } psVar16 = psVar16 + 0x20; } while (psVar16 != psStack_f0); } p_Var11 = *(_Rb_tree_node_base **)(local_108 + 0x20); p_Var10 = (_Rb_tree_node_base *)(local_108 + 0x10); if (p_Var11 != p_Var10) { do { /* try { // try from 00118b61 to 00118baa has its CatchHandler @ 00118cf9 */ puVar8 = (ulong *)std:: _Rb_tree<std::__cxx11::string,std::__cxx11::string,std::_Identity<std::__cxx11::string>,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>> ::find((_Rb_tree<std::__cxx11::string,std::__cxx11::string,std::_Identity<std::__cxx11::string>,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>> *)&local_c0,(string *)(p_Var11 + 0x20)); if (puVar8 == &local_b8) { poVar15 = (ostream *)(local_110 + 2); std::__ostream_insert<char,std::char_traits<char>>(poVar15,"You forgot to list test ",0x18); std::__ostream_insert<char,std::char_traits<char>> (poVar15,*(char **)(p_Var11 + 0x20),*(long *)(p_Var11 + 0x28)); std::__ostream_insert<char,std::char_traits<char>>(poVar15,".\n",2); } p_Var11 = (_Rb_tree_node_base *)std::_Rb_tree_increment(p_Var11); } while (p_Var11 != p_Var10); } plVar7 = local_110; /* try { // try from 00118bc0 to 00118bcc has its CatchHandler @ 00118c8d */ StringStreamToString((stringstream *)&local_130); pcVar14 = local_88; if (local_128 != 0) { uVar2 = *(int8 *)PTR_stderr_00158fc8; /* try { // try from 00118c3a to 00118c52 has its CatchHandler @ 00118c68 */ FormatFileLocation_abi_cxx11_(local_50,local_90,local_fc); VerifyRegisteredTestNames ((char *)local_50,(char *)&local_130,(int)uVar2, (char *)CONCAT44(in_register_0000000c,iVar12)); /* catch() { ... } // from try @ 00118c3a with catch @ 00118c68 */ if (local_130 != (long *)&local_120) { operator_delete(local_130,CONCAT71(uStack_11f,local_120) + 1); } std:: _Rb_tree<std::__cxx11::string,std::__cxx11::string,std::_Identity<std::__cxx11::string>,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>> ::~_Rb_tree((_Rb_tree<std::__cxx11::string,std::__cxx11::string,std::_Identity<std::__cxx11::string>,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>> *)&local_c0); if (local_110 != (long *)0x0) { (**(code **)(*local_110 + 8))(); } local_110 = (long *)0x0; std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_f8); /* WARNING: Subroutine does not return */ _Unwind_Resume(extraout_RAX); } if (local_130 != (long *)&local_120) { operator_delete(local_130,CONCAT71(uStack_11f,local_120) + 1); } std:: _Rb_tree<std::__cxx11::string,std::__cxx11::string,std::_Identity<std::__cxx11::string>,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>> ::~_Rb_tree((_Rb_tree<std::__cxx11::string,std::__cxx11::string,std::_Identity<std::__cxx11::string>,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>> *)&local_c0); if (plVar7 != (long *)0x0) { (**(code **)(*plVar7 + 8))(plVar7); } std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_f8); return pcVar14; }
19,480
mysql_client_find_plugin
eloqsql/build_O0/libmariadb/libmariadb/ma_client_plugin.c
struct st_mysql_client_plugin * STDCALL mysql_client_find_plugin(MYSQL *mysql, const char *name, int type) { struct st_mysql_client_plugin *p; int plugin_nr= get_plugin_nr(type); if (is_not_initialized(mysql, name)) return NULL; if (plugin_nr == -1) { my_set_error(mysql, CR_AUTH_PLUGIN_CANNOT_LOAD, SQLSTATE_UNKNOWN, ER(CR_AUTH_PLUGIN_CANNOT_LOAD), name, "invalid type"); } if ((p= find_plugin(name, type))) return p; /* not found, load it */ return mysql_load_plugin(mysql, name, type, 0); }
O0
c
mysql_client_find_plugin: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) movl -0x1c(%rbp), %edi callq 0x67ed0 movl %eax, -0x2c(%rbp) movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0x67860 cmpl $0x0, %eax je 0x67e4a movq $0x0, -0x8(%rbp) jmp 0x67ebb cmpl $-0x1, -0x2c(%rbp) jne 0x67e83 movq -0x10(%rbp), %rdi leaq 0x1e1b75(%rip), %rax # 0x2499d0 movq (%rax), %rdx leaq 0x1e1b7b(%rip), %rax # 0x2499e0 movq 0x1d8(%rax), %rcx movq -0x18(%rbp), %r8 movl $0x80b, %esi # imm = 0x80B leaq 0x77d3f(%rip), %r9 # 0xdfbbb movb $0x0, %al callq 0x47bd0 movq -0x18(%rbp), %rdi movl -0x1c(%rbp), %esi callq 0x678d0 movq %rax, -0x28(%rbp) cmpq $0x0, %rax je 0x67ea3 movq -0x28(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x67ebb movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi movl -0x1c(%rbp), %edx xorl %ecx, %ecx movb $0x0, %al callq 0x67d70 movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
mysql_client_find_plugin: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_1C], edx mov edi, [rbp+var_1C] call get_plugin_nr mov [rbp+var_2C], eax mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] call is_not_initialized cmp eax, 0 jz short loc_67E4A mov [rbp+var_8], 0 jmp short loc_67EBB loc_67E4A: cmp [rbp+var_2C], 0FFFFFFFFh jnz short loc_67E83 mov rdi, [rbp+var_10] lea rax, SQLSTATE_UNKNOWN mov rdx, [rax] lea rax, client_errors mov rcx, [rax+1D8h] mov r8, [rbp+var_18] mov esi, 80Bh lea r9, aInvalidType; "invalid type" mov al, 0 call my_set_error loc_67E83: mov rdi, [rbp+var_18] mov esi, [rbp+var_1C] call find_plugin mov [rbp+var_28], rax cmp rax, 0 jz short loc_67EA3 mov rax, [rbp+var_28] mov [rbp+var_8], rax jmp short loc_67EBB loc_67EA3: mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] mov edx, [rbp+var_1C] xor ecx, ecx mov al, 0 call mysql_load_plugin mov [rbp+var_8], rax loc_67EBB: mov rax, [rbp+var_8] add rsp, 30h pop rbp retn
void (** mysql_client_find_plugin(long long a1, const char *a2, unsigned int a3))(void) { int plugin_nr; // [rsp+4h] [rbp-2Ch] long long plugin; // [rsp+8h] [rbp-28h] plugin_nr = get_plugin_nr(a3); if ( (unsigned int)is_not_initialized(a1, (long long)a2) ) return 0LL; if ( plugin_nr == -1 ) my_set_error(a1, 0x80Bu, (long long)SQLSTATE_UNKNOWN, (long long)client_errors[59], a2, "invalid type"); plugin = find_plugin((long long)a2, a3); if ( plugin ) return (void (**)(void))plugin; else return mysql_load_plugin(a1, a2, a3, 0); }
mysql_client_find_plugin: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV dword ptr [RBP + -0x1c],EDX MOV EDI,dword ptr [RBP + -0x1c] CALL 0x00167ed0 MOV dword ptr [RBP + -0x2c],EAX MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] CALL 0x00167860 CMP EAX,0x0 JZ 0x00167e4a MOV qword ptr [RBP + -0x8],0x0 JMP 0x00167ebb LAB_00167e4a: CMP dword ptr [RBP + -0x2c],-0x1 JNZ 0x00167e83 MOV RDI,qword ptr [RBP + -0x10] LEA RAX,[0x3499d0] MOV RDX,qword ptr [RAX] LEA RAX,[0x3499e0] MOV RCX,qword ptr [RAX + 0x1d8] MOV R8,qword ptr [RBP + -0x18] MOV ESI,0x80b LEA R9,[0x1dfbbb] MOV AL,0x0 CALL 0x00147bd0 LAB_00167e83: MOV RDI,qword ptr [RBP + -0x18] MOV ESI,dword ptr [RBP + -0x1c] CALL 0x001678d0 MOV qword ptr [RBP + -0x28],RAX CMP RAX,0x0 JZ 0x00167ea3 MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x8],RAX JMP 0x00167ebb LAB_00167ea3: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] MOV EDX,dword ptr [RBP + -0x1c] XOR ECX,ECX MOV AL,0x0 CALL 0x00167d70 MOV qword ptr [RBP + -0x8],RAX LAB_00167ebb: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x30 POP RBP RET
long mysql_client_find_plugin(int8 param_1,int8 param_2,int4 param_3) { int iVar1; int iVar2; long local_10; iVar1 = get_plugin_nr(param_3); iVar2 = is_not_initialized(param_1,param_2); if (iVar2 == 0) { if (iVar1 == -1) { my_set_error(param_1,0x80b,SQLSTATE_UNKNOWN,PTR_s_Plugin__s_could_not_be_loaded____00349bb8, param_2,"invalid type"); } local_10 = find_plugin(param_2,param_3); if (local_10 == 0) { local_10 = mysql_load_plugin(param_1,param_2,param_3,0); } } else { local_10 = 0; } return local_10; }
19,481
minja::TemplateToken::typeToString[abi:cxx11](minja::TemplateToken::Type)
monkey531[P]llama/common/minja.hpp
static std::string typeToString(Type t) { switch (t) { case Type::Text: return "text"; case Type::Expression: return "expression"; case Type::If: return "if"; case Type::Else: return "else"; case Type::Elif: return "elif"; case Type::EndIf: return "endif"; case Type::For: return "for"; case Type::EndFor: return "endfor"; case Type::Set: return "set"; case Type::EndSet: return "endset"; case Type::Comment: return "comment"; case Type::Macro: return "macro"; case Type::EndMacro: return "endmacro"; case Type::Filter: return "filter"; case Type::EndFilter: return "endfilter"; case Type::Generation: return "generation"; case Type::EndGeneration: return "endgeneration"; case Type::Break: return "break"; case Type::Continue: return "continue"; } return "Unknown"; }
O2
cpp
minja::TemplateToken::typeToString[abi:cxx11](minja::TemplateToken::Type): pushq %rbx subq $0x10, %rsp movq %rdi, %rbx cmpl $0x12, %esi ja 0x72e71 movl %esi, %eax leaq 0x419de(%rip), %rcx # 0xb478c movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax leaq 0x42767(%rip), %rsi # 0xb5525 jmp 0x72e78 leaq 0x42ae5(%rip), %rsi # 0xb58af jmp 0x72e78 leaq 0x42aac(%rip), %rsi # 0xb5882 jmp 0x72e78 leaq 0x42a76(%rip), %rsi # 0xb5858 jmp 0x72e78 leaq 0x42974(%rip), %rsi # 0xb5762 jmp 0x72e78 leaq 0x43aea(%rip), %rsi # 0xb68e4 jmp 0x72e78 leaq 0x429ea(%rip), %rsi # 0xb57ed jmp 0x72e78 leaq 0x3a8bd(%rip), %rsi # 0xad6c9 jmp 0x72e78 leaq 0x42a9d(%rip), %rsi # 0xb58b2 jmp 0x72e78 leaq 0x4296a(%rip), %rsi # 0xb5788 jmp 0x72e78 leaq 0x429bf(%rip), %rsi # 0xb57e6 jmp 0x72e78 leaq 0x42b29(%rip), %rsi # 0xb5959 jmp 0x72e78 leaq 0x42a80(%rip), %rsi # 0xb58b9 jmp 0x72e78 leaq 0x4294b(%rip), %rsi # 0xb578d jmp 0x72e78 leaq 0x42a3a(%rip), %rsi # 0xb5885 jmp 0x72e78 leaq 0x42995(%rip), %rsi # 0xb57e9 jmp 0x72e78 leaq 0x42a62(%rip), %rsi # 0xb58bf jmp 0x72e78 leaq 0x47b2e(%rip), %rsi # 0xba994 jmp 0x72e78 leaq 0x42981(%rip), %rsi # 0xb57f0 jmp 0x72e78 leaq 0x43a74(%rip), %rsi # 0xb68ec leaq 0xf(%rsp), %rdx movq %rbx, %rdi callq 0x27852 movq %rbx, %rax addq $0x10, %rsp popq %rbx retq
_ZN5minja13TemplateToken12typeToStringB5cxx11ENS0_4TypeE: push rbx sub rsp, 10h mov rbx, rdi cmp esi, 12h; switch 19 cases ja def_72DB5; jumptable 0000000000072DB5 default case mov eax, esi lea rcx, jpt_72DB5 movsxd rax, ds:(jpt_72DB5 - 0B478Ch)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_72DB7: lea rsi, aText; jumptable 0000000000072DB5 case 0 jmp loc_72E78 loc_72DC3: lea rsi, aEndfilter; jumptable 0000000000072DB5 case 16 jmp loc_72E78 loc_72DCF: lea rsi, aEndmacro; jumptable 0000000000072DB5 case 14 jmp loc_72E78 loc_72DDB: lea rsi, aEndset; jumptable 0000000000072DB5 case 11 jmp loc_72E78 loc_72DE7: lea rsi, aElif; jumptable 0000000000072DB5 case 4 jmp loc_72E78 loc_72DF3: lea rsi, aComment; jumptable 0000000000072DB5 case 12 jmp short loc_72E78 loc_72DFC: lea rsi, aEndgeneration; jumptable 0000000000072DB5 case 9 jmp short loc_72E78 loc_72E05: lea rsi, aIf+1; jumptable 0000000000072DB5 case 2 jmp short loc_72E78 loc_72E0E: lea rsi, aEndfilter+3; jumptable 0000000000072DB5 case 15 jmp short loc_72E78 loc_72E17: lea rsi, aElse; jumptable 0000000000072DB5 case 3 jmp short loc_72E78 loc_72E20: lea rsi, aEndfor; jumptable 0000000000072DB5 case 7 jmp short loc_72E78 loc_72E29: lea rsi, aExpectedLeftSi_0+24h; jumptable 0000000000072DB5 case 1 jmp short loc_72E78 loc_72E32: lea rsi, aBreak; jumptable 0000000000072DB5 case 17 jmp short loc_72E78 loc_72E3B: lea rsi, aEndif; jumptable 0000000000072DB5 case 5 jmp short loc_72E78 loc_72E44: lea rsi, aEndmacro+3; jumptable 0000000000072DB5 case 13 jmp short loc_72E78 loc_72E4D: lea rsi, aEndfor+3; jumptable 0000000000072DB5 case 6 jmp short loc_72E78 loc_72E56: lea rsi, aContinue; jumptable 0000000000072DB5 case 18 jmp short loc_72E78 loc_72E5F: lea rsi, aAtLeastOneOfMi+2Fh; jumptable 0000000000072DB5 case 10 jmp short loc_72E78 loc_72E68: lea rsi, aEndgeneration+3; jumptable 0000000000072DB5 case 8 jmp short loc_72E78 def_72DB5: lea rsi, aUnknown; jumptable 0000000000072DB5 default case loc_72E78: lea rdx, [rsp+18h+var_9] mov rdi, rbx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) mov rax, rbx add rsp, 10h pop rbx retn
_QWORD * minja::TemplateToken::typeToString[abi:cxx11](_QWORD *a1, int a2) { char *v2; // rsi switch ( a2 ) { case 0: v2 = "text"; break; case 1: v2 = (char *)"expression"; break; case 2: v2 = "if"; break; case 3: v2 = "else"; break; case 4: v2 = "elif"; break; case 5: v2 = "endif"; break; case 6: v2 = "for"; break; case 7: v2 = "endfor"; break; case 8: v2 = "generation"; break; case 9: v2 = "endgeneration"; break; case 10: v2 = (char *)"set"; break; case 11: v2 = "endset"; break; case 12: v2 = "comment"; break; case 13: v2 = "macro"; break; case 14: v2 = "endmacro"; break; case 15: v2 = "filter"; break; case 16: v2 = "endfilter"; break; case 17: v2 = "break"; break; case 18: v2 = "continue"; break; default: v2 = "Unknown"; break; } std::string::basic_string<std::allocator<char>>(a1, (long long)v2); return a1; }
typeToString[abi:cxx11]: PUSH RBX SUB RSP,0x10 MOV RBX,RDI CMP ESI,0x12 JA 0x00172e71 MOV EAX,ESI LEA RCX,[0x1b478c] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_0: LEA RSI,[0x1b5525] JMP 0x00172e78 caseD_10: LEA RSI,[0x1b58af] JMP 0x00172e78 caseD_e: LEA RSI,[0x1b5882] JMP 0x00172e78 caseD_b: LEA RSI,[0x1b5858] JMP 0x00172e78 caseD_4: LEA RSI,[0x1b5762] JMP 0x00172e78 caseD_c: LEA RSI,[0x1b68e4] JMP 0x00172e78 caseD_9: LEA RSI,[0x1b57ed] JMP 0x00172e78 caseD_2: LEA RSI,[0x1ad6c9] JMP 0x00172e78 caseD_f: LEA RSI,[0x1b58b2] JMP 0x00172e78 caseD_3: LEA RSI,[0x1b5788] JMP 0x00172e78 caseD_7: LEA RSI,[0x1b57e6] JMP 0x00172e78 caseD_1: LEA RSI,[0x1b5959] JMP 0x00172e78 caseD_11: LEA RSI,[0x1b58b9] JMP 0x00172e78 caseD_5: LEA RSI,[0x1b578d] JMP 0x00172e78 caseD_d: LEA RSI,[0x1b5885] JMP 0x00172e78 caseD_6: LEA RSI,[0x1b57e9] JMP 0x00172e78 caseD_12: LEA RSI,[0x1b58bf] JMP 0x00172e78 caseD_a: LEA RSI,[0x1ba994] JMP 0x00172e78 caseD_8: LEA RSI,[0x1b57f0] JMP 0x00172e78 default: LEA RSI,[0x1b68ec] LAB_00172e78: LEA RDX,[RSP + 0xf] MOV RDI,RBX CALL 0x00127852 MOV RAX,RBX ADD RSP,0x10 POP RBX RET
/* minja::TemplateToken::typeToString[abi:cxx11](minja::TemplateToken::Type) */ TemplateToken * __thiscall minja::TemplateToken::typeToString_abi_cxx11_(TemplateToken *this,int4 param_2) { char *pcVar1; allocator local_9; switch(param_2) { case 0: pcVar1 = "text"; break; case 1: pcVar1 = "expression"; break; case 2: pcVar1 = "if"; break; case 3: pcVar1 = "else"; break; case 4: pcVar1 = "elif"; break; case 5: pcVar1 = "endif"; break; case 6: pcVar1 = "for"; break; case 7: pcVar1 = "endfor"; break; case 8: pcVar1 = "generation"; break; case 9: pcVar1 = "endgeneration"; break; case 10: pcVar1 = "set"; break; case 0xb: pcVar1 = "endset"; break; case 0xc: pcVar1 = "comment"; break; case 0xd: pcVar1 = "macro"; break; case 0xe: pcVar1 = "endmacro"; break; case 0xf: pcVar1 = "filter"; break; case 0x10: pcVar1 = "endfilter"; break; case 0x11: pcVar1 = "break"; break; case 0x12: pcVar1 = "continue"; break; default: pcVar1 = "Unknown"; } std::__cxx11::string::string<std::allocator<char>>((string *)this,pcVar1,&local_9); return this; }
19,482
get_charset_number_internal
eloqsql/mysys/charset.c
static uint get_charset_number_internal(const char *charset_name, uint cs_flags) { CHARSET_INFO **cs; for (cs= all_charsets; cs < all_charsets + array_elements(all_charsets); cs++) { if ( cs[0] && cs[0]->cs_name.str && (cs[0]->state & cs_flags) && !my_strcasecmp(&my_charset_latin1, cs[0]->cs_name.str, charset_name)) return cs[0]->number; } return 0; }
O0
c
get_charset_number_internal: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) leaq 0xb9df7a(%rip), %rax # 0xc796c0 movq %rax, -0x20(%rbp) leaq 0xb9df6f(%rip), %rax # 0xc796c0 addq $0x4000, %rax # imm = 0x4000 cmpq %rax, -0x20(%rbp) jae 0xdb7d7 movq -0x20(%rbp), %rax cmpq $0x0, (%rax) je 0xdb7c4 movq -0x20(%rbp), %rax movq (%rax), %rax cmpq $0x0, 0x10(%rax) je 0xdb7c4 movq -0x20(%rbp), %rax movq (%rax), %rax movl 0xc(%rax), %eax andl -0x14(%rbp), %eax cmpl $0x0, %eax je 0xdb7c4 leaq 0x289842(%rip), %rax # 0x364fd0 movq 0xc0(%rax), %rax movq 0x40(%rax), %rax movq -0x20(%rbp), %rcx movq (%rcx), %rcx movq 0x10(%rcx), %rsi movq -0x10(%rbp), %rdx leaq 0x289821(%rip), %rdi # 0x364fd0 callq *%rax cmpl $0x0, %eax jne 0xdb7c4 movq -0x20(%rbp), %rax movq (%rax), %rax movl (%rax), %eax movl %eax, -0x4(%rbp) jmp 0xdb7de jmp 0xdb7c6 movq -0x20(%rbp), %rax addq $0x8, %rax movq %rax, -0x20(%rbp) jmp 0xdb74a movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x20, %rsp popq %rbp retq nopw (%rax,%rax)
get_charset_number_internal: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi mov [rbp+var_14], esi lea rax, all_charsets mov [rbp+var_20], rax loc_DB74A: lea rax, all_charsets add rax, 4000h cmp [rbp+var_20], rax jnb short loc_DB7D7 mov rax, [rbp+var_20] cmp qword ptr [rax], 0 jz short loc_DB7C4 mov rax, [rbp+var_20] mov rax, [rax] cmp qword ptr [rax+10h], 0 jz short loc_DB7C4 mov rax, [rbp+var_20] mov rax, [rax] mov eax, [rax+0Ch] and eax, [rbp+var_14] cmp eax, 0 jz short loc_DB7C4 lea rax, my_charset_latin1 mov rax, [rax+0C0h] mov rax, [rax+40h] mov rcx, [rbp+var_20] mov rcx, [rcx] mov rsi, [rcx+10h] mov rdx, [rbp+var_10] lea rdi, my_charset_latin1 call rax cmp eax, 0 jnz short loc_DB7C4 mov rax, [rbp+var_20] mov rax, [rax] mov eax, [rax] mov [rbp+var_4], eax jmp short loc_DB7DE loc_DB7C4: jmp short $+2 loc_DB7C6: mov rax, [rbp+var_20] add rax, 8 mov [rbp+var_20], rax jmp loc_DB74A loc_DB7D7: mov [rbp+var_4], 0 loc_DB7DE: mov eax, [rbp+var_4] add rsp, 20h pop rbp retn
long long get_charset_number_internal(long long a1, int a2) { unsigned int **i; // [rsp+0h] [rbp-20h] for ( i = (unsigned int **)all_charsets; i < &all_charsets[2048]; ++i ) { if ( *i && *((_QWORD *)*i + 2) && (a2 & (*i)[3]) != 0 && !(*(unsigned int ( **)(void *, _QWORD, long long))(*((_QWORD *)&my_charset_latin1 + 24) + 64LL))( &my_charset_latin1, *((_QWORD *)*i + 2), a1) ) { return **i; } } return 0; }
get_charset_number_internal: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI LEA RAX,[0xd796c0] MOV qword ptr [RBP + -0x20],RAX LAB_001db74a: LEA RAX,[0xd796c0] ADD RAX,0x4000 CMP qword ptr [RBP + -0x20],RAX JNC 0x001db7d7 MOV RAX,qword ptr [RBP + -0x20] CMP qword ptr [RAX],0x0 JZ 0x001db7c4 MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX] CMP qword ptr [RAX + 0x10],0x0 JZ 0x001db7c4 MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX] MOV EAX,dword ptr [RAX + 0xc] AND EAX,dword ptr [RBP + -0x14] CMP EAX,0x0 JZ 0x001db7c4 LEA RAX,[0x464fd0] MOV RAX,qword ptr [RAX + 0xc0] MOV RAX,qword ptr [RAX + 0x40] MOV RCX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RCX] MOV RSI,qword ptr [RCX + 0x10] MOV RDX,qword ptr [RBP + -0x10] LEA RDI,[0x464fd0] CALL RAX CMP EAX,0x0 JNZ 0x001db7c4 MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x4],EAX JMP 0x001db7de LAB_001db7c4: JMP 0x001db7c6 LAB_001db7c6: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x8 MOV qword ptr [RBP + -0x20],RAX JMP 0x001db74a LAB_001db7d7: MOV dword ptr [RBP + -0x4],0x0 LAB_001db7de: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x20 POP RBP RET
int4 get_charset_number_internal(int8 param_1,uint param_2) { int iVar1; long *local_28; local_28 = &all_charsets; while( true ) { if ((long *)0xd7d6bf < local_28) { return 0; } if ((((*local_28 != 0) && (*(long *)(*local_28 + 0x10) != 0)) && ((*(uint *)(*local_28 + 0xc) & param_2) != 0)) && (iVar1 = (**(code **)(PTR_my_collation_8bit_simple_ci_handler_00465090 + 0x40)) (&my_charset_latin1,*(int8 *)(*local_28 + 0x10),param_1), iVar1 == 0 )) break; local_28 = local_28 + 1; } return *(int4 *)*local_28; }
19,483
rtree_get_first
eloqsql/storage/myisam/rt_index.c
int rtree_get_first(MI_INFO *info, uint keynr, uint key_length) { my_off_t root; MI_KEYDEF *keyinfo = info->s->keyinfo + keynr; if ((root = info->s->state.key_root[keynr]) == HA_OFFSET_ERROR) { my_errno= HA_ERR_END_OF_FILE; return -1; } info->rtree_recursion_depth = -1; info->buff_used = 1; return rtree_get_req(info, keyinfo, key_length, root, 0); }
O3
c
rtree_get_first: movq (%rdi), %rax movl %esi, %ecx movq 0x98(%rax), %rdx movq (%rdx,%rcx,8), %rdx cmpq $-0x1, %rdx je 0x8ae59 imulq $0x70, %rcx, %rsi addq 0x218(%rax), %rsi movl $0xffffffff, 0x3c0(%rdi) # imm = 0xFFFFFFFF movb $0x1, 0x33d(%rdi) xorl %ecx, %ecx jmp 0x8ae6f pushq %rbp movq %rsp, %rbp callq 0xa2a4e movl $0x89, (%rax) movl $0xffffffff, %eax # imm = 0xFFFFFFFF popq %rbp retq
rtree_get_first: mov rax, [rdi] mov ecx, esi mov rdx, [rax+98h] mov rdx, [rdx+rcx*8] cmp rdx, 0FFFFFFFFFFFFFFFFh jz short loc_8AE59 imul rsi, rcx, 70h ; 'p' add rsi, [rax+218h] mov dword ptr [rdi+3C0h], 0FFFFFFFFh mov byte ptr [rdi+33Dh], 1 xor ecx, ecx jmp short rtree_get_req loc_8AE59: push rbp mov rbp, rsp call _my_thread_var mov dword ptr [rax], 89h mov eax, 0FFFFFFFFh pop rbp retn
long long rtree_get_first(long long a1, const char *a2) { long long v2; // rdx long long v3; // rsi v2 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)a1 + 152LL) + 8LL * (unsigned int)a2); if ( v2 == -1 ) { *(_DWORD *)my_thread_var(a1, a2) = 137; return 0xFFFFFFFFLL; } else { v3 = *(_QWORD *)(*(_QWORD *)a1 + 536LL) + 112LL * (unsigned int)a2; *(_DWORD *)(a1 + 960) = -1; *(_BYTE *)(a1 + 829) = 1; return rtree_get_req(a1, v3, v2, 0LL); } }
rtree_get_first: MOV RAX,qword ptr [RDI] MOV ECX,ESI MOV RDX,qword ptr [RAX + 0x98] MOV RDX,qword ptr [RDX + RCX*0x8] CMP RDX,-0x1 JZ 0x0018ae59 IMUL RSI,RCX,0x70 ADD RSI,qword ptr [RAX + 0x218] MOV dword ptr [RDI + 0x3c0],0xffffffff MOV byte ptr [RDI + 0x33d],0x1 XOR ECX,ECX JMP 0x0018ae6f LAB_0018ae59: PUSH RBP MOV RBP,RSP CALL 0x001a2a4e MOV dword ptr [RAX],0x89 MOV EAX,0xffffffff POP RBP RET
int8 rtree_get_first(long *param_1,ulong param_2) { long lVar1; long lVar2; int8 uVar3; int4 *puVar4; lVar1 = *(long *)(*(long *)(*param_1 + 0x98) + (param_2 & 0xffffffff) * 8); if (lVar1 != -1) { lVar2 = *(long *)(*param_1 + 0x218); *(int4 *)(param_1 + 0x78) = 0xffffffff; *(int1 *)((long)param_1 + 0x33d) = 1; uVar3 = rtree_get_req(param_1,(param_2 & 0xffffffff) * 0x70 + lVar2,lVar1,0); return uVar3; } puVar4 = (int4 *)_my_thread_var(); *puVar4 = 0x89; return 0xffffffff; }
19,484
evmone::(anonymous namespace)::validate_types(std::basic_string_view<unsigned char, evmc::byte_traits<unsigned char>>, evmone::EOF1Header const&)
corpus-core[P]colibri-stateless/build_O0/_deps/evmone_external-src/lib/evmone/eof.cpp
EOFValidationError validate_types(bytes_view container, const EOF1Header& header) noexcept { for (size_t i = 0; i < header.get_type_count(); ++i) { const auto [inputs, outputs, max_stack_increase] = header.get_type(container, i); // First type should be (0, 0x80) if (i == 0 && (inputs != 0 || outputs != NON_RETURNING_FUNCTION)) return EOFValidationError::invalid_first_section_type; if ((outputs > OUTPUTS_INPUTS_NUMBER_LIMIT && outputs != NON_RETURNING_FUNCTION) || inputs > OUTPUTS_INPUTS_NUMBER_LIMIT) return EOFValidationError::inputs_outputs_num_above_limit; if (max_stack_increase > MAX_STACK_INCREASE_LIMIT) return EOFValidationError::max_stack_increase_above_limit; } return EOFValidationError::success; }
O0
cpp
evmone::(anonymous namespace)::validate_types(std::basic_string_view<unsigned char, evmc::byte_traits<unsigned char>>, evmone::EOF1Header const&): pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x18(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x20(%rbp) movq $0x0, -0x28(%rbp) movq -0x28(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x20(%rbp), %rdi callq 0x7af00 movq %rax, %rcx movq -0x48(%rbp), %rax cmpq %rcx, %rax jae 0x72b76 movq -0x20(%rbp), %rdi movq -0x18(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x28(%rbp), %rcx movq -0x40(%rbp), %rsi movq -0x38(%rbp), %rdx callq 0x6e9d0 movl %eax, -0x2c(%rbp) cmpq $0x0, -0x28(%rbp) jne 0x72b29 movzbl -0x2c(%rbp), %eax cmpl $0x0, %eax jne 0x72b20 movzbl -0x2b(%rbp), %eax cmpl $0x80, %eax je 0x72b29 movl $0x12, -0x4(%rbp) jmp 0x72b7d movzbl -0x2b(%rbp), %eax cmpl $0x7f, %eax jle 0x72b3d movzbl -0x2b(%rbp), %eax cmpl $0x80, %eax jne 0x72b46 movzbl -0x2c(%rbp), %eax cmpl $0x7f, %eax jle 0x72b4f movl $0x18, -0x4(%rbp) jmp 0x72b7d movzwl -0x2a(%rbp), %eax cmpl $0x3ff, %eax # imm = 0x3FF jle 0x72b63 movl $0x17, -0x4(%rbp) jmp 0x72b7d jmp 0x72b65 movq -0x28(%rbp), %rax addq $0x1, %rax movq %rax, -0x28(%rbp) jmp 0x72abc movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x50, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_ZN6evmone12_GLOBAL__N_114validate_typesESt17basic_string_viewIhN4evmc11byte_traitsIhEEERKNS_10EOF1HeaderE: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_18], rdi mov [rbp+var_10], rsi mov [rbp+var_20], rdx mov [rbp+var_28], 0 loc_72ABC: mov rax, [rbp+var_28] mov [rbp+var_48], rax mov rdi, [rbp+var_20]; this call _ZNK6evmone10EOF1Header14get_type_countEv; evmone::EOF1Header::get_type_count(void) mov rcx, rax mov rax, [rbp+var_48] cmp rax, rcx jnb loc_72B76 mov rdi, [rbp+var_20] mov rax, [rbp+var_18] mov [rbp+var_40], rax mov rax, [rbp+var_10] mov [rbp+var_38], rax mov rcx, [rbp+var_28] mov rsi, [rbp+var_40] mov rdx, [rbp+var_38] call _ZNK6evmone10EOF1Header8get_typeESt17basic_string_viewIhN4evmc11byte_traitsIhEEEm; evmone::EOF1Header::get_type(std::basic_string_view<uchar,evmc::byte_traits<uchar>>,ulong) mov [rbp+var_2C], eax cmp [rbp+var_28], 0 jnz short loc_72B29 movzx eax, byte ptr [rbp+var_2C] cmp eax, 0 jnz short loc_72B20 movzx eax, byte ptr [rbp+var_2C+1] cmp eax, 80h jz short loc_72B29 loc_72B20: mov [rbp+var_4], 12h jmp short loc_72B7D loc_72B29: movzx eax, byte ptr [rbp+var_2C+1] cmp eax, 7Fh jle short loc_72B3D movzx eax, byte ptr [rbp+var_2C+1] cmp eax, 80h jnz short loc_72B46 loc_72B3D: movzx eax, byte ptr [rbp+var_2C] cmp eax, 7Fh jle short loc_72B4F loc_72B46: mov [rbp+var_4], 18h jmp short loc_72B7D loc_72B4F: movzx eax, word ptr [rbp+var_2C+2] cmp eax, 3FFh jle short loc_72B63 mov [rbp+var_4], 17h jmp short loc_72B7D loc_72B63: jmp short $+2 loc_72B65: mov rax, [rbp+var_28] add rax, 1 mov [rbp+var_28], rax jmp loc_72ABC loc_72B76: mov [rbp+var_4], 0 loc_72B7D: mov eax, [rbp+var_4] add rsp, 50h pop rbp retn
long long evmone::`anonymous namespace'::validate_types(long long a1, long long a2, evmone::EOF1Header *a3) { int type; // [rsp+24h] [rbp-2Ch] unsigned long long i; // [rsp+28h] [rbp-28h] for ( i = 0LL; i < evmone::EOF1Header::get_type_count(a3); ++i ) { type = evmone::EOF1Header::get_type((long long)a3, a1, a2, i); if ( !i && ((_BYTE)type || BYTE1(type) != 128) ) return 18; if ( BYTE1(type) > 0x80u || (unsigned __int8)type > 0x7Fu ) return 24; if ( HIWORD(type) > 0x3FFu ) return 23; } return 0; }
validate_types: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x18],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],0x0 LAB_00172abc: MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x48],RAX MOV RDI,qword ptr [RBP + -0x20] CALL 0x0017af00 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x48] CMP RAX,RCX JNC 0x00172b76 MOV RDI,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x38],RAX MOV RCX,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RBP + -0x40] MOV RDX,qword ptr [RBP + -0x38] CALL 0x0016e9d0 MOV dword ptr [RBP + -0x2c],EAX CMP qword ptr [RBP + -0x28],0x0 JNZ 0x00172b29 MOVZX EAX,byte ptr [RBP + -0x2c] CMP EAX,0x0 JNZ 0x00172b20 MOVZX EAX,byte ptr [RBP + -0x2b] CMP EAX,0x80 JZ 0x00172b29 LAB_00172b20: MOV dword ptr [RBP + -0x4],0x12 JMP 0x00172b7d LAB_00172b29: MOVZX EAX,byte ptr [RBP + -0x2b] CMP EAX,0x7f JLE 0x00172b3d MOVZX EAX,byte ptr [RBP + -0x2b] CMP EAX,0x80 JNZ 0x00172b46 LAB_00172b3d: MOVZX EAX,byte ptr [RBP + -0x2c] CMP EAX,0x7f JLE 0x00172b4f LAB_00172b46: MOV dword ptr [RBP + -0x4],0x18 JMP 0x00172b7d LAB_00172b4f: MOVZX EAX,word ptr [RBP + -0x2a] CMP EAX,0x3ff JLE 0x00172b63 MOV dword ptr [RBP + -0x4],0x17 JMP 0x00172b7d LAB_00172b63: JMP 0x00172b65 LAB_00172b65: MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x1 MOV qword ptr [RBP + -0x28],RAX JMP 0x00172abc LAB_00172b76: MOV dword ptr [RBP + -0x4],0x0 LAB_00172b7d: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x50 POP RBP RET
/* evmone::(anonymous namespace)::validate_types(std::basic_string_view<unsigned char, evmc::byte_traits<unsigned char> >, evmone::EOF1Header const&) */ int4 __thiscall evmone::(anonymous_namespace)::validate_types (_anonymous_namespace_ *this,int8 param_2,EOF1Header *param_3) { int4 uVar1; ulong uVar2; byte local_34; byte bStack_33; ushort uStack_32; ulong local_30; local_30 = 0; while( true ) { uVar2 = EOF1Header::get_type_count(param_3); if (uVar2 <= local_30) { return 0; } uVar1 = EOF1Header::get_type(param_3,this,param_2,local_30); local_34 = (byte)uVar1; bStack_33 = (byte)((uint)uVar1 >> 8); if ((local_30 == 0) && ((local_34 != 0 || (bStack_33 != 0x80)))) break; if (((0x7f < bStack_33) && (bStack_33 != 0x80)) || (0x7f < local_34)) { return 0x18; } uStack_32 = (ushort)((uint)uVar1 >> 0x10); if (0x3ff < uStack_32) { return 0x17; } local_30 = local_30 + 1; } return 0x12; }
19,485
JS_HasProperty
bluesky950520[P]quickjs/quickjs.c
int JS_HasProperty(JSContext *ctx, JSValue obj, JSAtom prop) { JSObject *p; int ret; JSValue obj1; if (unlikely(JS_VALUE_GET_TAG(obj) != JS_TAG_OBJECT)) return FALSE; p = JS_VALUE_GET_OBJ(obj); for(;;) { if (p->is_exotic) { const JSClassExoticMethods *em = ctx->rt->class_array[p->class_id].exotic; if (em && em->has_property) { /* has_property can free the prototype */ obj1 = js_dup(JS_MKPTR(JS_TAG_OBJECT, p)); ret = em->has_property(ctx, obj1, prop); JS_FreeValue(ctx, obj1); return ret; } } /* JS_GetOwnPropertyInternal can free the prototype */ js_dup(JS_MKPTR(JS_TAG_OBJECT, p)); ret = JS_GetOwnPropertyInternal(ctx, NULL, p, prop); JS_FreeValue(ctx, JS_MKPTR(JS_TAG_OBJECT, p)); if (ret != 0) return ret; if (p->class_id >= JS_CLASS_UINT8C_ARRAY && p->class_id <= JS_CLASS_FLOAT64_ARRAY) { ret = JS_AtomIsNumericIndex(ctx, prop); if (ret != 0) { if (ret < 0) return -1; return FALSE; } } p = p->shape->proto; if (!p) break; } return FALSE; }
O1
c
JS_HasProperty: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, (%rsp) cmpl $-0x1, %edx jne 0xf842 movl %ecx, %ebx movq %rdi, %r14 movq (%rsp), %r15 pushq $-0x1 popq %r12 testb $0x4, 0x5(%r15) je 0xf7de movq 0x18(%r14), %rax movq 0x80(%rax), %rax movzwl 0x6(%r15), %ecx imulq $0x28, %rcx, %rcx movq 0x20(%rax,%rcx), %rcx movb $0x1, %al testq %rcx, %rcx je 0xf7da movq 0x20(%rcx), %r8 testq %r8, %r8 je 0xf7da incl (%r15) movq %r14, %rdi movq %r15, %rsi movq %r12, %rdx movl %ebx, %ecx callq *%r8 movl %eax, %ebp movq 0x18(%r14), %rdi movl (%r15), %eax leal -0x1(%rax), %ecx movl %ecx, (%r15) cmpl $0x1, %eax jg 0xf7d8 movq %r15, %rsi movq %r12, %rdx callq 0x21266 xorl %eax, %eax testb %al, %al je 0xf850 incl (%r15) movq %r14, %rdi xorl %esi, %esi movq %r15, %rdx movl %ebx, %ecx callq 0x23bd9 movl %eax, %r13d movq 0x18(%r14), %rdi movl (%r15), %eax leal -0x1(%rax), %ecx movl %ecx, (%r15) cmpl $0x1, %eax jg 0xf810 movq %r15, %rsi movq %r12, %rdx callq 0x21266 testl %r13d, %r13d jne 0xf846 movzwl 0x6(%r15), %eax addl $-0x15, %eax cmpw $0xb, %ax ja 0xf831 movq %r14, %rdi movl %ebx, %esi callq 0x24060 testl %eax, %eax jne 0xf84b movq 0x18(%r15), %rax movq 0x38(%rax), %r15 testq %r15, %r15 jne 0xf778 xorl %ebp, %ebp jmp 0xf850 movl %r13d, %ebp jmp 0xf850 sarl $0x1f, %eax movl %eax, %ebp movl %ebp, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
JS_HasProperty: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov [rsp+38h+var_38], rsi cmp edx, 0FFFFFFFFh jnz loc_F842 mov ebx, ecx mov r14, rdi mov r15, [rsp+38h+var_38] push 0FFFFFFFFFFFFFFFFh pop r12 loc_F778: test byte ptr [r15+5], 4 jz short loc_F7DE mov rax, [r14+18h] mov rax, [rax+80h] movzx ecx, word ptr [r15+6] imul rcx, 28h ; '(' mov rcx, [rax+rcx+20h] mov al, 1 test rcx, rcx jz short loc_F7DA mov r8, [rcx+20h] test r8, r8 jz short loc_F7DA inc dword ptr [r15] mov rdi, r14 mov rsi, r15 mov rdx, r12 mov ecx, ebx call r8 mov ebp, eax mov rdi, [r14+18h] mov eax, [r15] lea ecx, [rax-1] mov [r15], ecx cmp eax, 1 jg short loc_F7D8 mov rsi, r15 mov rdx, r12 call js_free_value_rt loc_F7D8: xor eax, eax loc_F7DA: test al, al jz short loc_F850 loc_F7DE: inc dword ptr [r15] mov rdi, r14 xor esi, esi mov rdx, r15 mov ecx, ebx call JS_GetOwnPropertyInternal mov r13d, eax mov rdi, [r14+18h] mov eax, [r15] lea ecx, [rax-1] mov [r15], ecx cmp eax, 1 jg short loc_F810 mov rsi, r15 mov rdx, r12 call js_free_value_rt loc_F810: test r13d, r13d jnz short loc_F846 movzx eax, word ptr [r15+6] add eax, 0FFFFFFEBh cmp ax, 0Bh ja short loc_F831 mov rdi, r14 mov esi, ebx call JS_AtomIsNumericIndex test eax, eax jnz short loc_F84B loc_F831: mov rax, [r15+18h] mov r15, [rax+38h] test r15, r15 jnz loc_F778 loc_F842: xor ebp, ebp jmp short loc_F850 loc_F846: mov ebp, r13d jmp short loc_F850 loc_F84B: sar eax, 1Fh mov ebp, eax loc_F850: mov eax, ebp add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long JS_HasProperty(long long a1, long long a2, int a3, unsigned int a4) { unsigned int v4; // ebp long long v8; // rcx char v9; // al long long ( *v10)(long long, long long, long long, _QWORD); // r8 long long v11; // rdi int v12; // eax unsigned int OwnPropertyInternal; // r13d long long v14; // rdi int v15; // eax int IsNumericIndex; // eax if ( a3 == -1 ) { while ( 1 ) { if ( (*(_BYTE *)(a2 + 5) & 4) != 0 ) { v8 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 24) + 128LL) + 40LL * *(unsigned __int16 *)(a2 + 6) + 32); v9 = 1; if ( v8 ) { v10 = *(long long ( **)(long long, long long, long long, _QWORD))(v8 + 32); if ( v10 ) { ++*(_DWORD *)a2; v4 = v10(a1, a2, -1LL, a4); v11 = *(_QWORD *)(a1 + 24); v12 = (*(_DWORD *)a2)--; if ( v12 <= 1 ) js_free_value_rt(v11, a2, -1LL); v9 = 0; } } if ( !v9 ) break; } ++*(_DWORD *)a2; OwnPropertyInternal = JS_GetOwnPropertyInternal(a1, 0LL, a2, a4); v14 = *(_QWORD *)(a1 + 24); v15 = (*(_DWORD *)a2)--; if ( v15 <= 1 ) js_free_value_rt(v14, a2, -1LL); if ( OwnPropertyInternal ) return OwnPropertyInternal; if ( (unsigned __int16)(*(_WORD *)(a2 + 6) - 21) <= 0xBu ) { IsNumericIndex = JS_AtomIsNumericIndex(a1, a4); if ( IsNumericIndex ) return (unsigned int)(IsNumericIndex >> 31); } a2 = *(_QWORD *)(*(_QWORD *)(a2 + 24) + 56LL); if ( !a2 ) return 0; } } else { return 0; } return v4; }
JS_HasProperty: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV qword ptr [RSP],RSI CMP EDX,-0x1 JNZ 0x0010f842 MOV EBX,ECX MOV R14,RDI MOV R15,qword ptr [RSP] PUSH -0x1 POP R12 LAB_0010f778: TEST byte ptr [R15 + 0x5],0x4 JZ 0x0010f7de MOV RAX,qword ptr [R14 + 0x18] MOV RAX,qword ptr [RAX + 0x80] MOVZX ECX,word ptr [R15 + 0x6] IMUL RCX,RCX,0x28 MOV RCX,qword ptr [RAX + RCX*0x1 + 0x20] MOV AL,0x1 TEST RCX,RCX JZ 0x0010f7da MOV R8,qword ptr [RCX + 0x20] TEST R8,R8 JZ 0x0010f7da INC dword ptr [R15] MOV RDI,R14 MOV RSI,R15 MOV RDX,R12 MOV ECX,EBX CALL R8 MOV EBP,EAX MOV RDI,qword ptr [R14 + 0x18] MOV EAX,dword ptr [R15] LEA ECX,[RAX + -0x1] MOV dword ptr [R15],ECX CMP EAX,0x1 JG 0x0010f7d8 MOV RSI,R15 MOV RDX,R12 CALL 0x00121266 LAB_0010f7d8: XOR EAX,EAX LAB_0010f7da: TEST AL,AL JZ 0x0010f850 LAB_0010f7de: INC dword ptr [R15] MOV RDI,R14 XOR ESI,ESI MOV RDX,R15 MOV ECX,EBX CALL 0x00123bd9 MOV R13D,EAX MOV RDI,qword ptr [R14 + 0x18] MOV EAX,dword ptr [R15] LEA ECX,[RAX + -0x1] MOV dword ptr [R15],ECX CMP EAX,0x1 JG 0x0010f810 MOV RSI,R15 MOV RDX,R12 CALL 0x00121266 LAB_0010f810: TEST R13D,R13D JNZ 0x0010f846 MOVZX EAX,word ptr [R15 + 0x6] ADD EAX,-0x15 CMP AX,0xb JA 0x0010f831 MOV RDI,R14 MOV ESI,EBX CALL 0x00124060 TEST EAX,EAX JNZ 0x0010f84b LAB_0010f831: MOV RAX,qword ptr [R15 + 0x18] MOV R15,qword ptr [RAX + 0x38] TEST R15,R15 JNZ 0x0010f778 LAB_0010f842: XOR EBP,EBP JMP 0x0010f850 LAB_0010f846: MOV EBP,R13D JMP 0x0010f850 LAB_0010f84b: SAR EAX,0x1f MOV EBP,EAX LAB_0010f850: MOV EAX,EBP ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int JS_HasProperty(long param_1,int *param_2,int param_3,int4 param_4) { long lVar1; code *pcVar2; int8 uVar3; bool bVar4; int iVar5; int iVar6; int unaff_EBP; if (param_3 == -1) { do { if ((*(byte *)((long)param_2 + 5) & 4) != 0) { lVar1 = *(long *)(*(long *)(*(long *)(param_1 + 0x18) + 0x80) + 0x20 + (ulong)*(ushort *)((long)param_2 + 6) * 0x28); bVar4 = true; if ((lVar1 != 0) && (pcVar2 = *(code **)(lVar1 + 0x20), pcVar2 != (code *)0x0)) { *param_2 = *param_2 + 1; unaff_EBP = (*pcVar2)(param_1,param_2,0xffffffffffffffff,param_4); uVar3 = *(int8 *)(param_1 + 0x18); iVar6 = *param_2; *param_2 = iVar6 + -1; if (iVar6 < 2) { js_free_value_rt(uVar3,param_2,0xffffffffffffffff); } bVar4 = false; } if (!bVar4) { return unaff_EBP; } } *param_2 = *param_2 + 1; iVar5 = JS_GetOwnPropertyInternal(param_1,0,param_2,param_4); uVar3 = *(int8 *)(param_1 + 0x18); iVar6 = *param_2; *param_2 = iVar6 + -1; if (iVar6 < 2) { js_free_value_rt(uVar3,param_2,0xffffffffffffffff); } if (iVar5 != 0) { return iVar5; } if (((ushort)(*(short *)((long)param_2 + 6) - 0x15U) < 0xc) && (iVar6 = JS_AtomIsNumericIndex(param_1), iVar6 != 0)) { return iVar6 >> 0x1f; } param_2 = *(int **)(*(long *)(param_2 + 6) + 0x38); } while (param_2 != (int *)0x0); } return 0; }
19,486
JS_HasProperty
bluesky950520[P]quickjs/quickjs.c
int JS_HasProperty(JSContext *ctx, JSValue obj, JSAtom prop) { JSObject *p; int ret; JSValue obj1; if (unlikely(JS_VALUE_GET_TAG(obj) != JS_TAG_OBJECT)) return FALSE; p = JS_VALUE_GET_OBJ(obj); for(;;) { if (p->is_exotic) { const JSClassExoticMethods *em = ctx->rt->class_array[p->class_id].exotic; if (em && em->has_property) { /* has_property can free the prototype */ obj1 = js_dup(JS_MKPTR(JS_TAG_OBJECT, p)); ret = em->has_property(ctx, obj1, prop); JS_FreeValue(ctx, obj1); return ret; } } /* JS_GetOwnPropertyInternal can free the prototype */ js_dup(JS_MKPTR(JS_TAG_OBJECT, p)); ret = JS_GetOwnPropertyInternal(ctx, NULL, p, prop); JS_FreeValue(ctx, JS_MKPTR(JS_TAG_OBJECT, p)); if (ret != 0) return ret; if (p->class_id >= JS_CLASS_UINT8C_ARRAY && p->class_id <= JS_CLASS_FLOAT64_ARRAY) { ret = JS_AtomIsNumericIndex(ctx, prop); if (ret != 0) { if (ret < 0) return -1; return FALSE; } } p = p->shape->proto; if (!p) break; } return FALSE; }
O2
c
JS_HasProperty: pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx cmpl $-0x1, %edx jne 0x1e050 movl %ecx, %ebp movq %rsi, %rbx movq %rdi, %r14 pushq $-0x1 popq %r15 testb $0x4, 0x5(%rbx) je 0x1e001 movq 0x18(%r14), %rax movq 0x80(%rax), %rax movzwl 0x6(%rbx), %ecx imulq $0x28, %rcx, %rcx movq 0x20(%rax,%rcx), %rax testq %rax, %rax je 0x1e001 movq 0x20(%rax), %rax testq %rax, %rax jne 0x1e068 incl (%rbx) movq %r14, %rdi xorl %esi, %esi movq %rbx, %rdx movl %ebp, %ecx callq 0x1db80 movl %eax, %r12d movq %r14, %rdi movq %rbx, %rsi movq %r15, %rdx callq 0x1801e testl %r12d, %r12d jne 0x1e05c movzwl 0x6(%rbx), %eax addl $-0x15, %eax cmpw $0xb, %ax ja 0x1e043 movq %r14, %rdi movl %ebp, %esi callq 0x1e08f testl %eax, %eax jne 0x1e055 movq 0x18(%rbx), %rax movq 0x38(%rax), %rbx testq %rbx, %rbx jne 0x1dfd5 xorl %r12d, %r12d jmp 0x1e05c movl %eax, %r12d sarl $0x1f, %r12d movl %r12d, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq incl (%rbx) pushq $-0x1 popq %r15 movq %r14, %rdi movq %rbx, %rsi movq %r15, %rdx movl %ebp, %ecx callq *%rax movl %eax, %ebp movq %r14, %rdi movq %rbx, %rsi movq %r15, %rdx callq 0x1801e movl %ebp, %eax jmp 0x1e05f
JS_HasProperty: push rbp push r15 push r14 push r12 push rbx cmp edx, 0FFFFFFFFh jnz loc_1E050 mov ebp, ecx mov rbx, rsi mov r14, rdi push 0FFFFFFFFFFFFFFFFh pop r15 loc_1DFD5: test byte ptr [rbx+5], 4 jz short loc_1E001 mov rax, [r14+18h] mov rax, [rax+80h] movzx ecx, word ptr [rbx+6] imul rcx, 28h ; '(' mov rax, [rax+rcx+20h] test rax, rax jz short loc_1E001 mov rax, [rax+20h] test rax, rax jnz short loc_1E068 loc_1E001: inc dword ptr [rbx] mov rdi, r14 xor esi, esi mov rdx, rbx mov ecx, ebp call JS_GetOwnPropertyInternal mov r12d, eax mov rdi, r14 mov rsi, rbx mov rdx, r15 call JS_FreeValue test r12d, r12d jnz short loc_1E05C movzx eax, word ptr [rbx+6] add eax, 0FFFFFFEBh cmp ax, 0Bh ja short loc_1E043 mov rdi, r14 mov esi, ebp call JS_AtomIsNumericIndex test eax, eax jnz short loc_1E055 loc_1E043: mov rax, [rbx+18h] mov rbx, [rax+38h] test rbx, rbx jnz short loc_1DFD5 loc_1E050: xor r12d, r12d jmp short loc_1E05C loc_1E055: mov r12d, eax sar r12d, 1Fh loc_1E05C: mov eax, r12d loc_1E05F: pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_1E068: inc dword ptr [rbx] push 0FFFFFFFFFFFFFFFFh pop r15 mov rdi, r14 mov rsi, rbx mov rdx, r15 mov ecx, ebp call rax mov ebp, eax mov rdi, r14 mov rsi, rbx mov rdx, r15 call JS_FreeValue mov eax, ebp jmp short loc_1E05F
long long JS_HasProperty(long long a1, long long a2, int a3, unsigned int a4, unsigned int *a5) { long long v7; // rax long long ( *v8)(long long, long long, long long, _QWORD); // rax unsigned int v9; // eax unsigned int v10; // r12d long long v11; // rdx long long v12; // rcx long long v13; // r9 int IsNumericIndex; // eax unsigned int v16; // ebp if ( a3 == -1 ) { while ( 1 ) { if ( (*(_BYTE *)(a2 + 5) & 4) != 0 ) { v7 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 24) + 128LL) + 40LL * *(unsigned __int16 *)(a2 + 6) + 32); if ( v7 ) { v8 = *(long long ( **)(long long, long long, long long, _QWORD))(v7 + 32); if ( v8 ) break; } } ++*(_DWORD *)a2; LOBYTE(v9) = JS_GetOwnPropertyInternal(a1, 0LL, a2, a4, a5); v10 = v9; JS_FreeValue(a1, a2, -1LL); if ( v10 ) return v10; if ( (unsigned __int16)(*(_WORD *)(a2 + 6) - 21) <= 0xBu ) { IsNumericIndex = JS_AtomIsNumericIndex(a1, a4, v11, v12, a5, v13); if ( IsNumericIndex ) return (unsigned int)(IsNumericIndex >> 31); } a2 = *(_QWORD *)(*(_QWORD *)(a2 + 24) + 56LL); if ( !a2 ) return 0; } ++*(_DWORD *)a2; v16 = v8(a1, a2, -1LL, a4); JS_FreeValue(a1, a2, -1LL); return v16; } else { return 0; } }
JS_HasProperty: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX CMP EDX,-0x1 JNZ 0x0011e050 MOV EBP,ECX MOV RBX,RSI MOV R14,RDI PUSH -0x1 POP R15 LAB_0011dfd5: TEST byte ptr [RBX + 0x5],0x4 JZ 0x0011e001 MOV RAX,qword ptr [R14 + 0x18] MOV RAX,qword ptr [RAX + 0x80] MOVZX ECX,word ptr [RBX + 0x6] IMUL RCX,RCX,0x28 MOV RAX,qword ptr [RAX + RCX*0x1 + 0x20] TEST RAX,RAX JZ 0x0011e001 MOV RAX,qword ptr [RAX + 0x20] TEST RAX,RAX JNZ 0x0011e068 LAB_0011e001: INC dword ptr [RBX] MOV RDI,R14 XOR ESI,ESI MOV RDX,RBX MOV ECX,EBP CALL 0x0011db80 MOV R12D,EAX MOV RDI,R14 MOV RSI,RBX MOV RDX,R15 CALL 0x0011801e TEST R12D,R12D JNZ 0x0011e05c MOVZX EAX,word ptr [RBX + 0x6] ADD EAX,-0x15 CMP AX,0xb JA 0x0011e043 MOV RDI,R14 MOV ESI,EBP CALL 0x0011e08f TEST EAX,EAX JNZ 0x0011e055 LAB_0011e043: MOV RAX,qword ptr [RBX + 0x18] MOV RBX,qword ptr [RAX + 0x38] TEST RBX,RBX JNZ 0x0011dfd5 LAB_0011e050: XOR R12D,R12D JMP 0x0011e05c LAB_0011e055: MOV R12D,EAX SAR R12D,0x1f LAB_0011e05c: MOV EAX,R12D LAB_0011e05f: POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_0011e068: INC dword ptr [RBX] PUSH -0x1 POP R15 MOV RDI,R14 MOV RSI,RBX MOV RDX,R15 MOV ECX,EBP CALL RAX MOV EBP,EAX MOV RDI,R14 MOV RSI,RBX MOV RDX,R15 CALL 0x0011801e MOV EAX,EBP JMP 0x0011e05f
int JS_HasProperty(long param_1,int *param_2,int param_3,int4 param_4) { long lVar1; code *pcVar2; int iVar3; if (param_3 == -1) { do { if ((((*(byte *)((long)param_2 + 5) & 4) != 0) && (lVar1 = *(long *)(*(long *)(*(long *)(param_1 + 0x18) + 0x80) + 0x20 + (ulong)*(ushort *)((long)param_2 + 6) * 0x28), lVar1 != 0)) && (pcVar2 = *(code **)(lVar1 + 0x20), pcVar2 != (code *)0x0)) { *param_2 = *param_2 + 1; iVar3 = (*pcVar2)(param_1,param_2,0xffffffffffffffff,param_4); JS_FreeValue(param_1,param_2,0xffffffffffffffff); return iVar3; } *param_2 = *param_2 + 1; iVar3 = JS_GetOwnPropertyInternal(param_1,0,param_2,param_4); JS_FreeValue(param_1,param_2,0xffffffffffffffff); if (iVar3 != 0) { return iVar3; } if (((ushort)(*(short *)((long)param_2 + 6) - 0x15U) < 0xc) && (iVar3 = JS_AtomIsNumericIndex(param_1), iVar3 != 0)) { return iVar3 >> 0x1f; } param_2 = *(int **)(*(long *)(param_2 + 6) + 0x38); } while (param_2 != (int *)0x0); } return 0; }
19,487
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&)
monkey531[P]llama/common/json.hpp
static diyfp mul(const diyfp& x, const diyfp& y) noexcept { static_assert(kPrecision == 64, "internal error"); // Computes: // f = round((x.f * y.f) / 2^q) // e = x.e + y.e + q // Emulate the 64-bit * 64-bit multiplication: // // p = u * v // = (u_lo + 2^32 u_hi) (v_lo + 2^32 v_hi) // = (u_lo v_lo ) + 2^32 ((u_lo v_hi ) + (u_hi v_lo )) + 2^64 (u_hi v_hi ) // = (p0 ) + 2^32 ((p1 ) + (p2 )) + 2^64 (p3 ) // = (p0_lo + 2^32 p0_hi) + 2^32 ((p1_lo + 2^32 p1_hi) + (p2_lo + 2^32 p2_hi)) + 2^64 (p3 ) // = (p0_lo ) + 2^32 (p0_hi + p1_lo + p2_lo ) + 2^64 (p1_hi + p2_hi + p3) // = (p0_lo ) + 2^32 (Q ) + 2^64 (H ) // = (p0_lo ) + 2^32 (Q_lo + 2^32 Q_hi ) + 2^64 (H ) // // (Since Q might be larger than 2^32 - 1) // // = (p0_lo + 2^32 Q_lo) + 2^64 (Q_hi + H) // // (Q_hi + H does not overflow a 64-bit int) // // = p_lo + 2^64 p_hi const std::uint64_t u_lo = x.f & 0xFFFFFFFFu; const std::uint64_t u_hi = x.f >> 32u; const std::uint64_t v_lo = y.f & 0xFFFFFFFFu; const std::uint64_t v_hi = y.f >> 32u; const std::uint64_t p0 = u_lo * v_lo; const std::uint64_t p1 = u_lo * v_hi; const std::uint64_t p2 = u_hi * v_lo; const std::uint64_t p3 = u_hi * v_hi; const std::uint64_t p0_hi = p0 >> 32u; const std::uint64_t p1_lo = p1 & 0xFFFFFFFFu; const std::uint64_t p1_hi = p1 >> 32u; const std::uint64_t p2_lo = p2 & 0xFFFFFFFFu; const std::uint64_t p2_hi = p2 >> 32u; std::uint64_t Q = p0_hi + p1_lo + p2_lo; // The full product might now be computed as // // p_hi = p3 + p2_hi + p1_hi + (Q >> 32) // p_lo = p0_lo + (Q << 32) // // But in this particular case here, the full p_lo is not required. // Effectively we only need to add the highest bit in p_lo to p_hi (and // Q_hi + 1 does not overflow). Q += std::uint64_t{1} << (64u - 32u - 1u); // round, ties up const std::uint64_t h = p3 + p2_hi + p1_hi + (Q >> 32u); return {h, x.e + y.e + 64}; }
O0
cpp
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&): subq $0x98, %rsp movq %rdi, 0x80(%rsp) movq %rsi, 0x78(%rsp) movq 0x80(%rsp), %rax movl (%rax), %eax movq %rax, 0x70(%rsp) movq 0x80(%rsp), %rax movl 0x4(%rax), %eax movq %rax, 0x68(%rsp) movq 0x78(%rsp), %rax movl (%rax), %eax movq %rax, 0x60(%rsp) movq 0x78(%rsp), %rax movl 0x4(%rax), %eax movq %rax, 0x58(%rsp) movq 0x70(%rsp), %rax movq 0x60(%rsp), %rcx imulq %rcx, %rax movq %rax, 0x50(%rsp) movq 0x70(%rsp), %rax movq 0x58(%rsp), %rcx imulq %rcx, %rax movq %rax, 0x48(%rsp) movq 0x68(%rsp), %rax movq 0x60(%rsp), %rcx imulq %rcx, %rax movq %rax, 0x40(%rsp) movq 0x68(%rsp), %rax movq 0x58(%rsp), %rcx imulq %rcx, %rax movq %rax, 0x38(%rsp) movl 0x54(%rsp), %eax movq %rax, 0x30(%rsp) movl 0x48(%rsp), %eax movq %rax, 0x28(%rsp) movl 0x4c(%rsp), %eax movq %rax, 0x20(%rsp) movl 0x40(%rsp), %eax movq %rax, 0x18(%rsp) movl 0x44(%rsp), %eax movq %rax, 0x10(%rsp) movq 0x30(%rsp), %rax movq 0x28(%rsp), %rcx addq %rcx, %rax movq 0x18(%rsp), %rcx addq %rcx, %rax movq %rax, 0x8(%rsp) movq 0x8(%rsp), %rax subq $-0x80000000, %rax # imm = 0x80000000 movq %rax, 0x8(%rsp) movq 0x38(%rsp), %rax movq 0x10(%rsp), %rcx addq %rcx, %rax movq 0x20(%rsp), %rcx addq %rcx, %rax movl 0xc(%rsp), %ecx addq %rcx, %rax movq %rax, (%rsp) movq (%rsp), %rsi movq 0x80(%rsp), %rax movl 0x8(%rax), %edx movq 0x78(%rsp), %rax movl 0x8(%rax), %eax movl %eax, %ecx movl %edx, %eax leal 0x40(%rax,%rcx), %edx leaq 0x88(%rsp), %rdi callq 0x18d2c0 movq 0x88(%rsp), %rax movl 0x90(%rsp), %edx addq $0x98, %rsp retq nopw %cs:(%rax,%rax) nopl (%rax)
_ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp3mulERKS3_S5_: sub rsp, 98h mov [rsp+98h+var_18], rdi mov [rsp+98h+var_20], rsi mov rax, [rsp+98h+var_18] mov eax, [rax] mov [rsp+98h+var_28], rax mov rax, [rsp+98h+var_18] mov eax, [rax+4] mov [rsp+98h+var_30], rax mov rax, [rsp+98h+var_20] mov eax, [rax] mov [rsp+98h+var_38], rax mov rax, [rsp+98h+var_20] mov eax, [rax+4] mov [rsp+98h+var_40], rax mov rax, [rsp+98h+var_28] mov rcx, [rsp+98h+var_38] imul rax, rcx mov [rsp+98h+var_48], rax mov rax, [rsp+98h+var_28] mov rcx, [rsp+98h+var_40] imul rax, rcx mov [rsp+98h+var_50], rax mov rax, [rsp+98h+var_30] mov rcx, [rsp+98h+var_38] imul rax, rcx mov [rsp+98h+var_58], rax mov rax, [rsp+98h+var_30] mov rcx, [rsp+98h+var_40] imul rax, rcx mov [rsp+98h+var_60], rax mov eax, dword ptr [rsp+98h+var_48+4] mov [rsp+98h+var_68], rax mov eax, dword ptr [rsp+98h+var_50] mov [rsp+98h+var_70], rax mov eax, dword ptr [rsp+98h+var_50+4] mov [rsp+98h+var_78], rax mov eax, dword ptr [rsp+98h+var_58] mov [rsp+98h+var_80], rax mov eax, dword ptr [rsp+98h+var_58+4] mov [rsp+98h+var_88], rax mov rax, [rsp+98h+var_68] mov rcx, [rsp+98h+var_70] add rax, rcx mov rcx, [rsp+98h+var_80] add rax, rcx mov [rsp+98h+var_90], rax mov rax, [rsp+98h+var_90] sub rax, 0FFFFFFFF80000000h mov [rsp+98h+var_90], rax mov rax, [rsp+98h+var_60] mov rcx, [rsp+98h+var_88] add rax, rcx mov rcx, [rsp+98h+var_78] add rax, rcx mov ecx, dword ptr [rsp+98h+var_90+4] add rax, rcx mov [rsp+98h+var_98], rax mov rsi, [rsp+98h+var_98]; unsigned __int64 mov rax, [rsp+98h+var_18] mov edx, [rax+8] mov rax, [rsp+98h+var_20] mov eax, [rax+8] mov ecx, eax mov eax, edx lea edx, [rax+rcx+40h]; int lea rdi, [rsp+98h+var_10]; this call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfpC2Emi; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::diyfp(ulong,int) mov rax, [rsp+98h+var_10] mov edx, [rsp+98h+var_8] add rsp, 98h retn
long long nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul( nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp *this, const nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp *a2, const nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp *a3) { long long v4; // [rsp+68h] [rbp-30h] long long v5; // [rsp+70h] [rbp-28h] long long v6; // [rsp+88h] [rbp-10h] BYREF v5 = *(unsigned int *)this; v4 = *((unsigned int *)this + 1); nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::diyfp( (nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp *)&v6, (((unsigned int)(*(_DWORD *)a2 * v4) + (unsigned int)(*((_DWORD *)a2 + 1) * v5) + (((unsigned long long)*(unsigned int *)a2 * v5) >> 32) + 0x80000000) >> 32) + (((unsigned long long)*((unsigned int *)a2 + 1) * v5) >> 32) + (((unsigned long long)*(unsigned int *)a2 * v4) >> 32) + *((unsigned int *)a2 + 1) * v4, *((_DWORD *)this + 2) + *((_DWORD *)a2 + 2) + 64); return v6; }
_M_get_Tp_allocator: MOV qword ptr [RSP + -0x8],RDI MOV RAX,qword ptr [RSP + -0x8] RET
/* std::_Vector_base<llama_logit_bias, std::allocator<llama_logit_bias> >::_M_get_Tp_allocator() const */ _Vector_base<llama_logit_bias,std::allocator<llama_logit_bias>> * __thiscall std::_Vector_base<llama_logit_bias,std::allocator<llama_logit_bias>>::_M_get_Tp_allocator (_Vector_base<llama_logit_bias,std::allocator<llama_logit_bias>> *this) { return this; }
19,488
testing::Message& testing::Message::operator<<<char [5]>(char const (&) [5])
giladroyz[P]FindPeaks/build_O0/_deps/googletest-src/googletest/include/gtest/gtest-message.h
inline Message& operator<<(const T& val) { // Some libraries overload << for STL containers. These // overloads are defined in the global namespace instead of ::std. // // C++'s symbol lookup rule (i.e. Koenig lookup) says that these // overloads are visible in either the std namespace or the global // namespace, but not other namespaces, including the testing // namespace which Google Test's Message class is in. // // To allow STL containers (and other types that has a << operator // defined in the global namespace) to be used in Google Test // assertions, testing::Message must access the custom << operator // from the global namespace. With this using declaration, // overloads of << defined in the global namespace and those // visible via Koenig lookup are both exposed in this function. using ::operator<<; *ss_ << val; return *this; }
O0
c
testing::Message& testing::Message::operator<<<char [5]>(char const (&) [5]): pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x18(%rbp) callq 0x16070 movq %rax, %rdi addq $0x10, %rdi movq -0x10(%rbp), %rsi callq 0x213c0 movq -0x18(%rbp), %rax addq $0x20, %rsp popq %rbp retq nopw (%rax,%rax)
_ZN7testing7MessagelsINS_14TestPartResultEEERS0_RKT_: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rdi, [rbp+var_8] mov [rbp+var_18], rdi call _ZNKSt10unique_ptrINSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EEdeEv; std::unique_ptr<std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>>::operator*(void) mov rdi, rax add rdi, 10h mov rsi, [rbp+var_10] call _ZN7testinglsERSoRKNS_14TestPartResultE; testing::operator<<(std::ostream &,testing::TestPartResult const&) mov rax, [rbp+var_18] add rsp, 20h pop rbp retn
long long testing::Message::operator<<<testing::TestPartResult>(long long a1, testing::TestPartResult *a2) { long long v2; // rax v2 = std::unique_ptr<std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>>::operator*(a1); testing::operator<<(v2 + 16, a2); return a1; }
_M_insert_node: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x38],RAX MOV AL,0x1 CMP qword ptr [RBP + -0x18],0x0 MOV byte ptr [RBP + -0x2a],AL JNZ 0x00154517 MOV RDI,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x40],RAX CALL 0x00153c70 MOV RCX,qword ptr [RBP + -0x40] MOV RDX,RAX MOV AL,0x1 CMP RCX,RDX MOV byte ptr [RBP + -0x2a],AL JZ 0x00154517 MOV RDI,qword ptr [RBP + -0x28] CALL 0x00153d40 MOV qword ptr [RBP + -0x48],RAX MOV RDI,qword ptr [RBP + -0x20] CALL 0x00153d20 MOV RDI,qword ptr [RBP + -0x38] MOV RSI,qword ptr [RBP + -0x48] MOV RDX,RAX CALL 0x00153cf0 MOV byte ptr [RBP + -0x2a],AL LAB_00154517: MOV RCX,qword ptr [RBP + -0x38] MOV AL,byte ptr [RBP + -0x2a] AND AL,0x1 MOV byte ptr [RBP + -0x29],AL MOV AL,byte ptr [RBP + -0x29] MOV RSI,qword ptr [RBP + -0x28] MOV RDX,qword ptr [RBP + -0x20] ADD RCX,0x8 AND AL,0x1 MOVZX EDI,AL CALL 0x0010a0e0 MOV RAX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RAX + 0x28] ADD RCX,0x1 MOV qword ptr [RAX + 0x28],RCX MOV RSI,qword ptr [RBP + -0x28] LEA RDI,[RBP + -0x8] CALL 0x00153db0 MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x50 POP RBP RET
/* std::_Rb_tree<std::__cxx11::string, std::pair<std::__cxx11::string const, unsigned long>, std::_Select1st<std::pair<std::__cxx11::string const, unsigned long> >, std::less<std::__cxx11::string >, std::allocator<std::pair<std::__cxx11::string const, unsigned long> > >::_M_insert_node(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node<std::pair<std::__cxx11::string const, unsigned long> >*) */ int8 __thiscall std:: _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>> ::_M_insert_node(_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>> *this,_Rb_tree_node_base *param_1,_Rb_tree_node_base *param_2, _Rb_tree_node *param_3) { _Rb_tree_node_base *p_Var1; string *psVar2; string *psVar3; byte local_32; int8 local_10; local_32 = 1; if (param_1 == (_Rb_tree_node_base *)0x0) { p_Var1 = (_Rb_tree_node_base *)_M_end(this); local_32 = 1; if (param_2 != p_Var1) { psVar2 = (string *)_S_key(param_3); psVar3 = (string *)_S_key(param_2); local_32 = less<std::__cxx11::string>::operator() ((less<std::__cxx11::string> *)this,psVar2,psVar3); } } std::_Rb_tree_insert_and_rebalance ((bool)(local_32 & 1),(_Rb_tree_node_base *)param_3,param_2, (_Rb_tree_node_base *)(this + 8)); *(long *)(this + 0x28) = *(long *)(this + 0x28) + 1; _Rb_tree_iterator<std::pair<std::__cxx11::string_const,unsigned_long>>::_Rb_tree_iterator ((_Rb_tree_iterator<std::pair<std::__cxx11::string_const,unsigned_long>> *)&local_10, (_Rb_tree_node_base *)param_3); return local_10; }
19,489
do_flush_tables_read_lock
eloqsql/client/mysqldump.c
static int do_flush_tables_read_lock(MYSQL *mysql_con) { /* We do first a FLUSH TABLES. If a long update is running, the FLUSH TABLES will wait but will not stall the whole mysqld, and when the long update is done the FLUSH TABLES WITH READ LOCK will start and succeed quickly. So, FLUSH TABLES is to lower the probability of a stage where both mysqldump and most client connections are stalled. Of course, if a second long update starts between the two FLUSHes, we have that bad stall. We use the LOCAL option, as we do not want the FLUSH TABLES replicated to other servers. */ return ( mysql_query_with_error_report(mysql_con, 0, "FLUSH /*!40101 LOCAL */ TABLES") || mysql_query_with_error_report(mysql_con, 0, "FLUSH TABLES WITH READ LOCK") ); }
O0
c
do_flush_tables_read_lock: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi xorl %eax, %eax movl %eax, %esi leaq 0xa0895(%rip), %rdx # 0xdb8e0 callq 0x39350 movl %eax, %ecx movb $0x1, %al cmpl $0x0, %ecx movb %al, -0x9(%rbp) jne 0x3b079 movq -0x8(%rbp), %rdi xorl %eax, %eax movl %eax, %esi leaq 0xa0894(%rip), %rdx # 0xdb8ff callq 0x39350 cmpl $0x0, %eax setne %al movb %al, -0x9(%rbp) movb -0x9(%rbp), %al andb $0x1, %al movzbl %al, %eax addq $0x10, %rsp popq %rbp retq nopw (%rax,%rax)
do_flush_tables_read_lock: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov rdi, [rbp+var_8] xor eax, eax mov esi, eax lea rdx, aFlush40101Loca; "FLUSH /*!40101 LOCAL */ TABLES" call mysql_query_with_error_report mov ecx, eax mov al, 1 cmp ecx, 0 mov [rbp+var_9], al jnz short loc_3B079 mov rdi, [rbp+var_8] xor eax, eax mov esi, eax lea rdx, aFlushTablesWit; "FLUSH TABLES WITH READ LOCK" call mysql_query_with_error_report cmp eax, 0 setnz al mov [rbp+var_9], al loc_3B079: mov al, [rbp+var_9] and al, 1 movzx eax, al add rsp, 10h pop rbp retn
_BOOL8 do_flush_tables_read_lock(long long a1) { bool v2; // [rsp+7h] [rbp-9h] v2 = 1; if ( !(unsigned int)mysql_query_with_error_report(a1, 0LL, (long long)"FLUSH /*!40101 LOCAL */ TABLES") ) return (unsigned int)mysql_query_with_error_report(a1, 0LL, (long long)"FLUSH TABLES WITH READ LOCK") != 0; return v2; }
do_flush_tables_read_lock: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RDI,qword ptr [RBP + -0x8] XOR EAX,EAX MOV ESI,EAX LEA RDX,[0x1db8e0] CALL 0x00139350 MOV ECX,EAX MOV AL,0x1 CMP ECX,0x0 MOV byte ptr [RBP + -0x9],AL JNZ 0x0013b079 MOV RDI,qword ptr [RBP + -0x8] XOR EAX,EAX MOV ESI,EAX LEA RDX,[0x1db8ff] CALL 0x00139350 CMP EAX,0x0 SETNZ AL MOV byte ptr [RBP + -0x9],AL LAB_0013b079: MOV AL,byte ptr [RBP + -0x9] AND AL,0x1 MOVZX EAX,AL ADD RSP,0x10 POP RBP RET
bool do_flush_tables_read_lock(int8 param_1) { int iVar1; bool local_11; iVar1 = mysql_query_with_error_report(param_1,0,"FLUSH /*!40101 LOCAL */ TABLES"); local_11 = true; if (iVar1 == 0) { iVar1 = mysql_query_with_error_report(param_1,0,"FLUSH TABLES WITH READ LOCK"); local_11 = iVar1 != 0; } return local_11; }
19,490
coro::channel<int, 5ul>::recv() (.cleanup)
tinyCoroLab/include/coro/comp/channel.hpp
auto recv() noexcept -> task<data_type> { co_return {}; }
O0
cpp
coro::channel<int, 5ul>::recv() (.cleanup): subq $0x98, %rsp movq %rdi, 0x48(%rsp) movq %rdi, 0x90(%rsp) movq %rdi, %rax addq $0x21, %rax movq %rax, 0x50(%rsp) movq %rdi, %rax addq $0x22, %rax movq %rax, 0x58(%rsp) addq $0x10, %rdi movq %rdi, 0x60(%rsp) jmp 0xc35a jmp 0xc1ac jmp 0xc1ae xorl %eax, %eax testb %al, %al jne 0xc1d7 jmp 0xc1b6 xorl %eax, %eax testb %al, %al jne 0xc348 jmp 0xc1c2 movl $0x2, %eax movl %eax, 0x44(%rsp) jmp 0xc1cd movl 0x44(%rsp), %eax movl %eax, 0x40(%rsp) jmp 0xc1ef movq 0x50(%rsp), %rdi callq 0xdb00 xorl %eax, %eax movl %eax, 0x3c(%rsp) movl 0x3c(%rsp), %eax movl %eax, 0x40(%rsp) movl 0x40(%rsp), %eax cmpl $0x0, %eax movl %eax, 0x38(%rsp) je 0xc209 movl 0x38(%rsp), %eax movl %eax, 0x34(%rsp) jmp 0xc318 leaq 0x78(%rsp), %rdi movq %rdi, 0x28(%rsp) callq 0x6bff0 movq 0x60(%rsp), %rdi movq 0x28(%rsp), %rsi callq 0x6bfc0 jmp 0xc229 jmp 0xc261 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x80(%rsp) movl %eax, 0x8c(%rsp) movq 0x80(%rsp), %rdi callq 0x9100 movq 0x60(%rsp), %rdi callq 0x6c000 callq 0x94e0 jmp 0xc25d jmp 0xc25f jmp 0xc261 movq 0x60(%rsp), %rdi callq 0xdf90 movq 0x58(%rsp), %rdi callq 0xda80 testb $0x1, %al jne 0xc2d9 movq 0x48(%rsp), %rax movq $0x0, (%rax) movq 0x48(%rsp), %rsi movq 0x58(%rsp), %rdi callq 0xa7d0 movb $-0x1, %al movb %al, 0x27(%rsp) jmp 0xc2a4 movb $0x1, %al movb %al, 0x27(%rsp) jmp 0xc2a4 movb 0x27(%rsp), %al movb %al, 0x26(%rsp) movb 0x26(%rsp), %al testb %al, %al je 0xc2d9 jmp 0xc2b6 movb 0x26(%rsp), %al subb $0x1, %al jne 0xc348 jmp 0xc2c4 movl $0x2, %eax movl %eax, 0x20(%rsp) jmp 0xc2cf movl 0x20(%rsp), %eax movl %eax, 0x1c(%rsp) jmp 0xc2f1 movq 0x58(%rsp), %rdi callq 0xdb00 xorl %eax, %eax movl %eax, 0x18(%rsp) movl 0x18(%rsp), %eax movl %eax, 0x1c(%rsp) movl 0x1c(%rsp), %eax cmpl $0x0, %eax movl %eax, 0x14(%rsp) je 0xc308 movl 0x14(%rsp), %eax movl %eax, 0x34(%rsp) jmp 0xc318 xorl %eax, %eax movl %eax, 0x10(%rsp) jmp 0xc310 movl 0x10(%rsp), %eax movl %eax, 0x34(%rsp) movq 0x60(%rsp), %rdi movl 0x34(%rsp), %eax movl %eax, 0xc(%rsp) callq 0x6c010 jmp 0xc33a xorl %eax, %eax movl %eax, %edi movl $0x28, %esi callq 0x92f0 movl 0xc(%rsp), %eax testl %eax, %eax je 0xc346 jmp 0xc344 jmp 0xc348 jmp 0xc348 jmp 0xc34a addq $0x98, %rsp retq movq %rax, %rdi callq 0xf320 movq 0x48(%rsp), %rax cmpq $0x0, (%rax) je 0xc29c jmp 0xc1aa nop
_ZN4coro7channelIiLm5EE4recvEv_cleanup: sub rsp, 98h mov [rsp+98h+var_50], rdi mov [rsp+98h+var_8], rdi mov rax, rdi add rax, 21h ; '!' mov [rsp+98h+var_48], rax mov rax, rdi add rax, 22h ; '"' mov [rsp+98h+var_40], rax add rdi, 10h mov [rsp+98h+var_38], rdi jmp loc_C35A loc_C1AA: jmp short $+2 loc_C1AC: jmp short $+2 loc_C1AE: xor eax, eax test al, al jnz short loc_C1D7 jmp short $+2 loc_C1B6: xor eax, eax test al, al jnz loc_C348 jmp short $+2 loc_C1C2: mov eax, 2 mov [rsp+98h+var_54], eax jmp short $+2 loc_C1CD: mov eax, [rsp+98h+var_54] mov [rsp+98h+var_58], eax jmp short loc_C1EF loc_C1D7: mov rdi, [rsp+98h+var_48]; this call _ZNKSt7__n486114suspend_always12await_resumeEv; std::__n4861::suspend_always::await_resume(void) xor eax, eax mov [rsp+98h+var_5C], eax mov eax, [rsp+98h+var_5C] mov [rsp+98h+var_58], eax loc_C1EF: mov eax, [rsp+98h+var_58] cmp eax, 0 mov [rsp+98h+var_60], eax jz short loc_C209 mov eax, [rsp+98h+var_60] mov [rsp+98h+var_64], eax jmp loc_C318 loc_C209: lea rdi, [rsp+98h+var_20] mov [rsp+98h+var_70], rdi call _ZNSt8optionalIiEC2Ev; std::optional<int>::optional(void) mov rdi, [rsp+98h+var_38] mov rsi, [rsp+98h+var_70] call _ZN4coro6detail9containerISt8optionalIiEE12return_valueEOS3_QntL_ZNS0_9container24return_type_is_referenceEE jmp short $+2 loc_C229: jmp short loc_C261 mov rcx, rax mov eax, edx mov [rsp+98h+var_18], rcx mov [rsp+98h+var_C], eax mov rdi, [rsp+98h+var_18]; void * call ___cxa_begin_catch mov rdi, [rsp+98h+var_38] call _ZN4coro6detail7promiseISt8optionalIiEE19unhandled_exceptionEv; coro::detail::promise<std::optional<int>>::unhandled_exception(void) call ___cxa_end_catch jmp short $+2 loc_C25D: jmp short $+2 loc_C25F: jmp short $+2 loc_C261: mov rdi, [rsp+98h+var_38]; this call _ZN4coro6detail12promise_base13final_suspendEv; coro::detail::promise_base::final_suspend(void) mov rdi, [rsp+98h+var_40]; this call _ZNKSt7__n486114suspend_always11await_readyEv; std::__n4861::suspend_always::await_ready(void) test al, 1 jnz short loc_C2D9 mov rax, [rsp+98h+var_50] mov qword ptr [rax], 0 mov rsi, [rsp+98h+var_50] mov rdi, [rsp+98h+var_40] call sub_A7D0 mov al, 0FFh mov [rsp+98h+var_71], al jmp short loc_C2A4 loc_C29C: mov al, 1 mov [rsp+98h+var_71], al jmp short $+2 loc_C2A4: mov al, [rsp+98h+var_71] mov [rsp+98h+var_72], al mov al, [rsp+98h+var_72] test al, al jz short loc_C2D9 jmp short $+2 loc_C2B6: mov al, [rsp+98h+var_72] sub al, 1 jnz loc_C348 jmp short $+2 loc_C2C4: mov eax, 2 mov [rsp+98h+var_78], eax jmp short $+2 loc_C2CF: mov eax, [rsp+98h+var_78] mov [rsp+98h+var_7C], eax jmp short loc_C2F1 loc_C2D9: mov rdi, [rsp+98h+var_40]; this call _ZNKSt7__n486114suspend_always12await_resumeEv; std::__n4861::suspend_always::await_resume(void) xor eax, eax mov [rsp+98h+var_80], eax mov eax, [rsp+98h+var_80] mov [rsp+98h+var_7C], eax loc_C2F1: mov eax, [rsp+98h+var_7C] cmp eax, 0 mov [rsp+98h+var_84], eax jz short loc_C308 mov eax, [rsp+98h+var_84] mov [rsp+98h+var_64], eax jmp short loc_C318 loc_C308: xor eax, eax mov [rsp+98h+var_88], eax jmp short $+2 loc_C310: mov eax, [rsp+98h+var_88] mov [rsp+98h+var_64], eax loc_C318: mov rdi, [rsp+98h+var_38] mov eax, [rsp+98h+var_64] mov [rsp+98h+var_8C], eax call _ZN4coro6detail7promiseISt8optionalIiEED2Ev; coro::detail::promise<std::optional<int>>::~promise() jmp short loc_C33A xor eax, eax mov edi, eax; void * mov esi, 28h ; '('; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_C33A: mov eax, [rsp+98h+var_8C] test eax, eax jz short loc_C346 jmp short $+2 loc_C344: jmp short loc_C348 loc_C346: jmp short $+2 loc_C348: jmp short $+2 loc_C34A: add rsp, 98h retn mov rdi, rax call __clang_call_terminate loc_C35A: mov rax, [rsp+98h+var_50] cmp qword ptr [rax], 0 jz loc_C29C jmp loc_C1AA
char coro::channel<int,5ul>::recv(long long a1) { coro::detail::promise<std::optional<int>>::~promise(a1 + 16); return 2; }
_ZN4coro7channelIiLm5EE4recvEv.cleanup: SUB RSP,0x98 MOV qword ptr [RSP + 0x48],RDI MOV qword ptr [RSP + 0x90],RDI MOV RAX,RDI ADD RAX,0x21 MOV qword ptr [RSP + 0x50],RAX MOV RAX,RDI ADD RAX,0x22 MOV qword ptr [RSP + 0x58],RAX ADD RDI,0x10 MOV qword ptr [RSP + 0x60],RDI JMP 0x0010c35a LAB_0010c1aa: JMP 0x0010c1ac LAB_0010c1ac: JMP 0x0010c1ae LAB_0010c1ae: XOR EAX,EAX TEST AL,AL JNZ 0x0010c1d7 JMP 0x0010c1b6 LAB_0010c1b6: XOR EAX,EAX TEST AL,AL JNZ 0x0010c348 JMP 0x0010c1c2 LAB_0010c1c2: MOV EAX,0x2 MOV dword ptr [RSP + 0x44],EAX JMP 0x0010c1cd LAB_0010c1cd: MOV EAX,dword ptr [RSP + 0x44] MOV dword ptr [RSP + 0x40],EAX JMP 0x0010c1ef LAB_0010c1d7: MOV RDI,qword ptr [RSP + 0x50] CALL 0x0010db00 XOR EAX,EAX MOV dword ptr [RSP + 0x3c],EAX MOV EAX,dword ptr [RSP + 0x3c] MOV dword ptr [RSP + 0x40],EAX LAB_0010c1ef: MOV EAX,dword ptr [RSP + 0x40] CMP EAX,0x0 MOV dword ptr [RSP + 0x38],EAX JZ 0x0010c209 MOV EAX,dword ptr [RSP + 0x38] MOV dword ptr [RSP + 0x34],EAX JMP 0x0010c318 LAB_0010c209: LEA RDI,[RSP + 0x78] MOV qword ptr [RSP + 0x28],RDI CALL 0x0016bff0 MOV RDI,qword ptr [RSP + 0x60] MOV RSI,qword ptr [RSP + 0x28] LAB_0010c222: CALL 0x0016bfc0 LAB_0010c227: JMP 0x0010c229 LAB_0010c229: JMP 0x0010c261 LAB_0010c261: MOV RDI,qword ptr [RSP + 0x60] CALL 0x0010df90 MOV RDI,qword ptr [RSP + 0x58] CALL 0x0010da80 TEST AL,0x1 JNZ 0x0010c2d9 MOV RAX,qword ptr [RSP + 0x48] MOV qword ptr [RAX],0x0 MOV RSI,qword ptr [RSP + 0x48] MOV RDI,qword ptr [RSP + 0x58] CALL 0x0010a7d0 MOV AL,0xff MOV byte ptr [RSP + 0x27],AL JMP 0x0010c2a4 LAB_0010c29c: MOV AL,0x1 MOV byte ptr [RSP + 0x27],AL JMP 0x0010c2a4 LAB_0010c2a4: MOV AL,byte ptr [RSP + 0x27] MOV byte ptr [RSP + 0x26],AL MOV AL,byte ptr [RSP + 0x26] TEST AL,AL JZ 0x0010c2d9 JMP 0x0010c2b6 LAB_0010c2b6: MOV AL,byte ptr [RSP + 0x26] SUB AL,0x1 JNZ 0x0010c348 JMP 0x0010c2c4 LAB_0010c2c4: MOV EAX,0x2 MOV dword ptr [RSP + 0x20],EAX JMP 0x0010c2cf LAB_0010c2cf: MOV EAX,dword ptr [RSP + 0x20] MOV dword ptr [RSP + 0x1c],EAX JMP 0x0010c2f1 LAB_0010c2d9: MOV RDI,qword ptr [RSP + 0x58] CALL 0x0010db00 XOR EAX,EAX MOV dword ptr [RSP + 0x18],EAX MOV EAX,dword ptr [RSP + 0x18] MOV dword ptr [RSP + 0x1c],EAX LAB_0010c2f1: MOV EAX,dword ptr [RSP + 0x1c] CMP EAX,0x0 MOV dword ptr [RSP + 0x14],EAX JZ 0x0010c308 MOV EAX,dword ptr [RSP + 0x14] MOV dword ptr [RSP + 0x34],EAX JMP 0x0010c318 LAB_0010c308: XOR EAX,EAX MOV dword ptr [RSP + 0x10],EAX JMP 0x0010c310 LAB_0010c310: MOV EAX,dword ptr [RSP + 0x10] MOV dword ptr [RSP + 0x34],EAX LAB_0010c318: MOV RDI,qword ptr [RSP + 0x60] MOV EAX,dword ptr [RSP + 0x34] MOV dword ptr [RSP + 0xc],EAX CALL 0x0016c010 JMP 0x0010c33a LAB_0010c33a: MOV EAX,dword ptr [RSP + 0xc] TEST EAX,EAX JZ 0x0010c346 JMP 0x0010c344 LAB_0010c344: JMP 0x0010c348 LAB_0010c346: JMP 0x0010c348 LAB_0010c348: JMP 0x0010c34a LAB_0010c34a: ADD RSP,0x98 RET LAB_0010c35a: MOV RAX,qword ptr [RSP + 0x48] CMP qword ptr [RAX],0x0 JZ 0x0010c29c JMP 0x0010c1aa
/* WARNING: Removing unreachable block (ram,0x0010c1d7) */ /* WARNING: Removing unreachable block (ram,0x0010c209) */ /* WARNING: Removing unreachable block (ram,0x0010c279) */ /* WARNING: Removing unreachable block (ram,0x0010c2d9) */ /* WARNING: Removing unreachable block (ram,0x0010c308) */ /* WARNING: Removing unreachable block (ram,0x0010c346) */ void _ZN4coro7channelIiLm5EE4recvEv_cleanup(EVP_PKEY_CTX *ctx) { coro::detail::promise<std::optional<int>>::~promise((promise<std::optional<int>> *)(ctx + 0x10)); return; }
19,491
mi_state_info_read_dsk
eloqsql/storage/myisam/mi_open.c
uint mi_state_info_read_dsk(File file, MI_STATE_INFO *state, my_bool pRead) { uchar buff[MI_STATE_INFO_SIZE + MI_STATE_EXTRA_SIZE]; if (!myisam_single_user) { if (pRead) { if (mysql_file_pread(file, buff, state->state_length, 0L, MYF(MY_NABP))) return 1; } else if (mysql_file_read(file, buff, state->state_length, MYF(MY_NABP))) return 1; mi_state_info_read(buff, state); } return 0; }
O0
c
mi_state_info_read_dsk: pushq %rbp movq %rsp, %rbp subq $0x2360, %rsp # imm = 0x2360 movb %dl, %al movq %fs:0x28, %rcx movq %rcx, -0x8(%rbp) movl %edi, -0x2348(%rbp) movq %rsi, -0x2350(%rbp) movb %al, -0x2351(%rbp) leaq 0xbc18b6(%rip), %rax # 0xc7a55a cmpb $0x0, (%rax) jne 0xb8d60 cmpb $0x0, -0x2351(%rbp) je 0xb8d05 movl -0x2348(%rbp), %edx leaq -0x2340(%rbp), %rcx movq -0x2350(%rbp), %rax movl 0xf8(%rax), %eax movl %eax, %r8d leaq 0x9aea5(%rip), %rdi # 0x153b7f movl $0x418, %esi # imm = 0x418 xorl %eax, %eax movl %eax, %r9d movq $0x4, (%rsp) callq 0xb8da0 cmpq $0x0, %rax je 0xb8d03 movl $0x1, -0x2344(%rbp) jmp 0xb8d6a jmp 0xb8d4d movl -0x2348(%rbp), %edx leaq -0x2340(%rbp), %rcx movq -0x2350(%rbp), %rax movl 0xf8(%rax), %eax movl %eax, %r8d leaq 0x9ae56(%rip), %rdi # 0x153b7f movl $0x41b, %esi # imm = 0x41B movl $0x4, %r9d callq 0xb4cb0 cmpq $0x0, %rax je 0xb8d4b movl $0x1, -0x2344(%rbp) jmp 0xb8d6a jmp 0xb8d4d leaq -0x2340(%rbp), %rdi movq -0x2350(%rbp), %rsi callq 0xb4f10 movl $0x0, -0x2344(%rbp) movl -0x2344(%rbp), %eax movl %eax, -0x2358(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0xb8d97 movl -0x2358(%rbp), %eax addq $0x2360, %rsp # imm = 0x2360 popq %rbp retq callq 0x2a270 nopl (%rax)
mi_state_info_read_dsk: push rbp mov rbp, rsp sub rsp, 2360h mov al, dl mov rcx, fs:28h mov [rbp+var_8], rcx mov [rbp+var_2348], edi mov [rbp+var_2350], rsi mov [rbp+var_2351], al lea rax, myisam_single_user cmp byte ptr [rax], 0 jnz loc_B8D60 cmp [rbp+var_2351], 0 jz short loc_B8D05 mov edx, [rbp+var_2348] lea rcx, [rbp+var_2340] mov rax, [rbp+var_2350] mov eax, [rax+0F8h] mov r8d, eax lea rdi, aWorkspaceLlm4b_29; "/workspace/llm4binary/github2025/eloqsq"... mov esi, 418h xor eax, eax mov r9d, eax mov [rsp+2360h+var_2360], 4 call inline_mysql_file_pread_7 cmp rax, 0 jz short loc_B8D03 mov [rbp+var_2344], 1 jmp short loc_B8D6A loc_B8D03: jmp short loc_B8D4D loc_B8D05: mov edx, [rbp+var_2348] lea rcx, [rbp+var_2340] mov rax, [rbp+var_2350] mov eax, [rax+0F8h] mov r8d, eax lea rdi, aWorkspaceLlm4b_29; "/workspace/llm4binary/github2025/eloqsq"... mov esi, 41Bh mov r9d, 4 call inline_mysql_file_read_2 cmp rax, 0 jz short loc_B8D4B mov [rbp+var_2344], 1 jmp short loc_B8D6A loc_B8D4B: jmp short $+2 loc_B8D4D: lea rdi, [rbp+var_2340] mov rsi, [rbp+var_2350] call mi_state_info_read loc_B8D60: mov [rbp+var_2344], 0 loc_B8D6A: mov eax, [rbp+var_2344] mov [rbp+var_2358], eax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_B8D97 mov eax, [rbp+var_2358] add rsp, 2360h pop rbp retn loc_B8D97: call ___stack_chk_fail
long long mi_state_info_read_dsk(unsigned int a1, long long a2, char a3) { _BYTE v5[9016]; // [rsp+20h] [rbp-2340h] BYREF unsigned long long v6; // [rsp+2358h] [rbp-8h] v6 = __readfsqword(0x28u); if ( myisam_single_user ) return 0; if ( !a3 ) { if ( inline_mysql_file_read_2( (long long)"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_open.c", 0x41Bu, a1, (long long)v5, *(unsigned int *)(a2 + 248), 4LL) ) { return 1; } goto LABEL_8; } if ( !inline_mysql_file_pread_7( (unsigned int)"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_open.c", 1048, a1, (unsigned int)v5, *(_DWORD *)(a2 + 248), 0, 4LL) ) { LABEL_8: mi_state_info_read((long long)v5, a2); return 0; } return 1; }
mi_state_info_read_dsk: PUSH RBP MOV RBP,RSP SUB RSP,0x2360 MOV AL,DL MOV RCX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RCX MOV dword ptr [RBP + -0x2348],EDI MOV qword ptr [RBP + -0x2350],RSI MOV byte ptr [RBP + -0x2351],AL LEA RAX,[0xd7a55a] CMP byte ptr [RAX],0x0 JNZ 0x001b8d60 CMP byte ptr [RBP + -0x2351],0x0 JZ 0x001b8d05 MOV EDX,dword ptr [RBP + -0x2348] LEA RCX,[RBP + -0x2340] MOV RAX,qword ptr [RBP + -0x2350] MOV EAX,dword ptr [RAX + 0xf8] MOV R8D,EAX LEA RDI,[0x253b7f] MOV ESI,0x418 XOR EAX,EAX MOV R9D,EAX MOV qword ptr [RSP],0x4 CALL 0x001b8da0 CMP RAX,0x0 JZ 0x001b8d03 MOV dword ptr [RBP + -0x2344],0x1 JMP 0x001b8d6a LAB_001b8d03: JMP 0x001b8d4d LAB_001b8d05: MOV EDX,dword ptr [RBP + -0x2348] LEA RCX,[RBP + -0x2340] MOV RAX,qword ptr [RBP + -0x2350] MOV EAX,dword ptr [RAX + 0xf8] MOV R8D,EAX LEA RDI,[0x253b7f] MOV ESI,0x41b MOV R9D,0x4 CALL 0x001b4cb0 CMP RAX,0x0 JZ 0x001b8d4b MOV dword ptr [RBP + -0x2344],0x1 JMP 0x001b8d6a LAB_001b8d4b: JMP 0x001b8d4d LAB_001b8d4d: LEA RDI,[RBP + -0x2340] MOV RSI,qword ptr [RBP + -0x2350] CALL 0x001b4f10 LAB_001b8d60: MOV dword ptr [RBP + -0x2344],0x0 LAB_001b8d6a: MOV EAX,dword ptr [RBP + -0x2344] MOV dword ptr [RBP + -0x2358],EAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x001b8d97 MOV EAX,dword ptr [RBP + -0x2358] ADD RSP,0x2360 POP RBP RET LAB_001b8d97: CALL 0x0012a270
int4 mi_state_info_read_dsk(int4 param_1,long param_2,char param_3) { long lVar1; long in_FS_OFFSET; int4 local_234c; int1 local_2348 [9016]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); if (myisam_single_user == '\0') { if (param_3 == '\0') { lVar1 = inline_mysql_file_read ("/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_open.c",0x41b, param_1,local_2348,*(int4 *)(param_2 + 0xf8),4); if (lVar1 != 0) { local_234c = 1; goto LAB_001b8d6a; } } else { lVar1 = inline_mysql_file_pread ("/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_open.c",0x418, param_1,local_2348,*(int4 *)(param_2 + 0xf8),0,4); if (lVar1 != 0) { local_234c = 1; goto LAB_001b8d6a; } } mi_state_info_read(local_2348,param_2); } local_234c = 0; LAB_001b8d6a: if (*(long *)(in_FS_OFFSET + 0x28) != local_10) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return local_234c; }
19,492
my_scan_8bit
eloqsql/strings/ctype-simple.c
size_t my_scan_8bit(CHARSET_INFO *cs, const char *str, const char *end, int sq) { const char *str0= str; switch (sq) { case MY_SEQ_INTTAIL: if (*str == '.') { for(str++ ; str != end && *str == '0' ; str++); return (size_t) (str - str0); } return 0; case MY_SEQ_SPACES: for ( ; str < end ; str++) { if (!my_isspace(cs,*str)) break; } return (size_t) (str - str0); case MY_SEQ_NONSPACES: for ( ; str < end ; str++) { if (my_isspace(cs, *str)) break; } return (size_t) (str - str0); default: return 0; } }
O0
c
my_scan_8bit: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x30(%rbp) movl -0x24(%rbp), %eax movl %eax, -0x34(%rbp) subl $0x1, %eax je 0x507f7 jmp 0x507d8 movl -0x34(%rbp), %eax subl $0x2, %eax je 0x50868 jmp 0x507e6 movl -0x34(%rbp), %eax subl $0x3, %eax je 0x508b3 jmp 0x508fe movq -0x18(%rbp), %rax movsbl (%rax), %eax cmpl $0x2e, %eax jne 0x5085b movq -0x18(%rbp), %rax addq $0x1, %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rcx xorl %eax, %eax cmpq -0x20(%rbp), %rcx movb %al, -0x35(%rbp) je 0x5082e movq -0x18(%rbp), %rax movsbl (%rax), %eax cmpl $0x30, %eax sete %al movb %al, -0x35(%rbp) movb -0x35(%rbp), %al testb $0x1, %al jne 0x50837 jmp 0x50847 jmp 0x50839 movq -0x18(%rbp), %rax addq $0x1, %rax movq %rax, -0x18(%rbp) jmp 0x5080f movq -0x18(%rbp), %rax movq -0x30(%rbp), %rcx subq %rcx, %rax movq %rax, -0x8(%rbp) jmp 0x50906 movq $0x0, -0x8(%rbp) jmp 0x50906 jmp 0x5086a movq -0x18(%rbp), %rax cmpq -0x20(%rbp), %rax jae 0x508a2 movq -0x10(%rbp), %rax movq 0x40(%rax), %rax movq -0x18(%rbp), %rcx movzbl (%rcx), %ecx movzbl 0x1(%rax,%rcx), %eax andl $0x8, %eax cmpl $0x0, %eax jne 0x50892 jmp 0x508a2 jmp 0x50894 movq -0x18(%rbp), %rax addq $0x1, %rax movq %rax, -0x18(%rbp) jmp 0x5086a movq -0x18(%rbp), %rax movq -0x30(%rbp), %rcx subq %rcx, %rax movq %rax, -0x8(%rbp) jmp 0x50906 jmp 0x508b5 movq -0x18(%rbp), %rax cmpq -0x20(%rbp), %rax jae 0x508ed movq -0x10(%rbp), %rax movq 0x40(%rax), %rax movq -0x18(%rbp), %rcx movzbl (%rcx), %ecx movzbl 0x1(%rax,%rcx), %eax andl $0x8, %eax cmpl $0x0, %eax je 0x508dd jmp 0x508ed jmp 0x508df movq -0x18(%rbp), %rax addq $0x1, %rax movq %rax, -0x18(%rbp) jmp 0x508b5 movq -0x18(%rbp), %rax movq -0x30(%rbp), %rcx subq %rcx, %rax movq %rax, -0x8(%rbp) jmp 0x50906 movq $0x0, -0x8(%rbp) movq -0x8(%rbp), %rax popq %rbp retq nopl (%rax)
my_scan_8bit: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_24], ecx mov rax, [rbp+var_18] mov [rbp+var_30], rax mov eax, [rbp+var_24] mov [rbp+var_34], eax sub eax, 1 jz short loc_507F7 jmp short $+2 loc_507D8: mov eax, [rbp+var_34] sub eax, 2 jz loc_50868 jmp short $+2 loc_507E6: mov eax, [rbp+var_34] sub eax, 3 jz loc_508B3 jmp loc_508FE loc_507F7: mov rax, [rbp+var_18] movsx eax, byte ptr [rax] cmp eax, 2Eh ; '.' jnz short loc_5085B mov rax, [rbp+var_18] add rax, 1 mov [rbp+var_18], rax loc_5080F: mov rcx, [rbp+var_18] xor eax, eax cmp rcx, [rbp+var_20] mov [rbp+var_35], al jz short loc_5082E mov rax, [rbp+var_18] movsx eax, byte ptr [rax] cmp eax, 30h ; '0' setz al mov [rbp+var_35], al loc_5082E: mov al, [rbp+var_35] test al, 1 jnz short loc_50837 jmp short loc_50847 loc_50837: jmp short $+2 loc_50839: mov rax, [rbp+var_18] add rax, 1 mov [rbp+var_18], rax jmp short loc_5080F loc_50847: mov rax, [rbp+var_18] mov rcx, [rbp+var_30] sub rax, rcx mov [rbp+var_8], rax jmp loc_50906 loc_5085B: mov [rbp+var_8], 0 jmp loc_50906 loc_50868: jmp short $+2 loc_5086A: mov rax, [rbp+var_18] cmp rax, [rbp+var_20] jnb short loc_508A2 mov rax, [rbp+var_10] mov rax, [rax+40h] mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx] movzx eax, byte ptr [rax+rcx+1] and eax, 8 cmp eax, 0 jnz short loc_50892 jmp short loc_508A2 loc_50892: jmp short $+2 loc_50894: mov rax, [rbp+var_18] add rax, 1 mov [rbp+var_18], rax jmp short loc_5086A loc_508A2: mov rax, [rbp+var_18] mov rcx, [rbp+var_30] sub rax, rcx mov [rbp+var_8], rax jmp short loc_50906 loc_508B3: jmp short $+2 loc_508B5: mov rax, [rbp+var_18] cmp rax, [rbp+var_20] jnb short loc_508ED mov rax, [rbp+var_10] mov rax, [rax+40h] mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx] movzx eax, byte ptr [rax+rcx+1] and eax, 8 cmp eax, 0 jz short loc_508DD jmp short loc_508ED loc_508DD: jmp short $+2 loc_508DF: mov rax, [rbp+var_18] add rax, 1 mov [rbp+var_18], rax jmp short loc_508B5 loc_508ED: mov rax, [rbp+var_18] mov rcx, [rbp+var_30] sub rax, rcx mov [rbp+var_8], rax jmp short loc_50906 loc_508FE: mov [rbp+var_8], 0 loc_50906: mov rax, [rbp+var_8] pop rbp retn
long long my_scan_8bit(long long a1, unsigned __int8 *a2, unsigned __int8 *a3, int a4) { bool v5; // [rsp+1h] [rbp-35h] unsigned __int8 *v6; // [rsp+1Eh] [rbp-18h] unsigned __int8 *i; // [rsp+1Eh] [rbp-18h] v6 = a2; switch ( a4 ) { case 1: if ( *a2 == 46 ) { for ( i = a2 + 1; ; ++i ) { v5 = 0; if ( i != a3 ) v5 = *i == 48; if ( !v5 ) break; } return i - a2; } else { return 0LL; } case 2: while ( v6 < a3 && (*(_BYTE *)(*(_QWORD *)(a1 + 64) + *v6 + 1LL) & 8) != 0 ) ++v6; return v6 - a2; case 3: while ( v6 < a3 && (*(_BYTE *)(*(_QWORD *)(a1 + 64) + *v6 + 1LL) & 8) == 0 ) ++v6; return v6 - a2; default: return 0LL; } }
my_scan_8bit: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV dword ptr [RBP + -0x24],ECX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x30],RAX MOV EAX,dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x34],EAX SUB EAX,0x1 JZ 0x001507f7 JMP 0x001507d8 LAB_001507d8: MOV EAX,dword ptr [RBP + -0x34] SUB EAX,0x2 JZ 0x00150868 JMP 0x001507e6 LAB_001507e6: MOV EAX,dword ptr [RBP + -0x34] SUB EAX,0x3 JZ 0x001508b3 JMP 0x001508fe LAB_001507f7: MOV RAX,qword ptr [RBP + -0x18] MOVSX EAX,byte ptr [RAX] CMP EAX,0x2e JNZ 0x0015085b MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x1 MOV qword ptr [RBP + -0x18],RAX LAB_0015080f: MOV RCX,qword ptr [RBP + -0x18] XOR EAX,EAX CMP RCX,qword ptr [RBP + -0x20] MOV byte ptr [RBP + -0x35],AL JZ 0x0015082e MOV RAX,qword ptr [RBP + -0x18] MOVSX EAX,byte ptr [RAX] CMP EAX,0x30 SETZ AL MOV byte ptr [RBP + -0x35],AL LAB_0015082e: MOV AL,byte ptr [RBP + -0x35] TEST AL,0x1 JNZ 0x00150837 JMP 0x00150847 LAB_00150837: JMP 0x00150839 LAB_00150839: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x1 MOV qword ptr [RBP + -0x18],RAX JMP 0x0015080f LAB_00150847: MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x30] SUB RAX,RCX MOV qword ptr [RBP + -0x8],RAX JMP 0x00150906 LAB_0015085b: MOV qword ptr [RBP + -0x8],0x0 JMP 0x00150906 LAB_00150868: JMP 0x0015086a LAB_0015086a: MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x20] JNC 0x001508a2 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x40] MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX] MOVZX EAX,byte ptr [RAX + RCX*0x1 + 0x1] AND EAX,0x8 CMP EAX,0x0 JNZ 0x00150892 JMP 0x001508a2 LAB_00150892: JMP 0x00150894 LAB_00150894: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x1 MOV qword ptr [RBP + -0x18],RAX JMP 0x0015086a LAB_001508a2: MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x30] SUB RAX,RCX MOV qword ptr [RBP + -0x8],RAX JMP 0x00150906 LAB_001508b3: JMP 0x001508b5 LAB_001508b5: MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x20] JNC 0x001508ed MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x40] MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX] MOVZX EAX,byte ptr [RAX + RCX*0x1 + 0x1] AND EAX,0x8 CMP EAX,0x0 JZ 0x001508dd JMP 0x001508ed LAB_001508dd: JMP 0x001508df LAB_001508df: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x1 MOV qword ptr [RBP + -0x18],RAX JMP 0x001508b5 LAB_001508ed: MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x30] SUB RAX,RCX MOV qword ptr [RBP + -0x8],RAX JMP 0x00150906 LAB_001508fe: MOV qword ptr [RBP + -0x8],0x0 LAB_00150906: MOV RAX,qword ptr [RBP + -0x8] POP RBP RET
long my_scan_8bit(long param_1,byte *param_2,byte *param_3,int param_4) { bool bVar1; byte *local_20; long local_10; if (param_4 == 1) { if (*param_2 == 0x2e) { local_20 = param_2 + 1; while( true ) { bVar1 = false; if (local_20 != param_3) { bVar1 = *local_20 == 0x30; } if (!bVar1) break; local_20 = local_20 + 1; } local_10 = (long)local_20 - (long)param_2; } else { local_10 = 0; } } else { local_20 = param_2; if (param_4 == 2) { while ((local_20 < param_3 && ((*(byte *)(*(long *)(param_1 + 0x40) + 1 + (ulong)*local_20) & 8) != 0))) { local_20 = local_20 + 1; } local_10 = (long)local_20 - (long)param_2; } else if (param_4 == 3) { while ((local_20 < param_3 && ((*(byte *)(*(long *)(param_1 + 0x40) + 1 + (ulong)*local_20) & 8) == 0))) { local_20 = local_20 + 1; } local_10 = (long)local_20 - (long)param_2; } else { local_10 = 0; } } return local_10; }
19,493
bitmap_xor
eloqsql/mysys/my_bitmap.c
void bitmap_xor(MY_BITMAP *map, const MY_BITMAP *map2) { my_bitmap_map *to= map->bitmap, *from= map2->bitmap, *end= map->last_word_ptr; DBUG_ASSERT(map->bitmap); DBUG_ASSERT(map2->bitmap); DBUG_ASSERT(map->n_bits == map2->n_bits); while (to <= end) *to++ ^= *from++; }
O0
c
bitmap_xor: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x20(%rbp) movq -0x8(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x28(%rbp) jmp 0xf0ec0 jmp 0xf0ec2 jmp 0xf0ec4 jmp 0xf0ec6 jmp 0xf0ec8 jmp 0xf0eca movq -0x18(%rbp), %rax cmpq -0x28(%rbp), %rax ja 0xf0efa movq -0x20(%rbp), %rax movq %rax, %rcx addq $0x4, %rcx movq %rcx, -0x20(%rbp) movl (%rax), %ecx movq -0x18(%rbp), %rax movq %rax, %rdx addq $0x4, %rdx movq %rdx, -0x18(%rbp) xorl (%rax), %ecx movl %ecx, (%rax) jmp 0xf0eca popq %rbp retq nopl (%rax)
bitmap_xor: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] mov rax, [rax] mov [rbp+var_18], rax mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_20], rax mov rax, [rbp+var_8] mov rax, [rax+8] mov [rbp+var_28], rax jmp short $+2 loc_F0EC0: jmp short $+2 loc_F0EC2: jmp short $+2 loc_F0EC4: jmp short $+2 loc_F0EC6: jmp short $+2 loc_F0EC8: jmp short $+2 loc_F0ECA: mov rax, [rbp+var_18] cmp rax, [rbp+var_28] ja short loc_F0EFA mov rax, [rbp+var_20] mov rcx, rax add rcx, 4 mov [rbp+var_20], rcx mov ecx, [rax] mov rax, [rbp+var_18] mov rdx, rax add rdx, 4 mov [rbp+var_18], rdx xor ecx, [rax] mov [rax], ecx jmp short loc_F0ECA loc_F0EFA: pop rbp retn
_DWORD * bitmap_xor(_QWORD *a1, int **a2) { _DWORD *result; // rax int *v3; // rax int v4; // ecx _DWORD *v5; // rax unsigned long long v6; // [rsp+0h] [rbp-28h] int *v7; // [rsp+8h] [rbp-20h] _DWORD *v8; // [rsp+10h] [rbp-18h] v8 = (_DWORD *)*a1; v7 = *a2; v6 = a1[1]; while ( 1 ) { result = v8; if ( (unsigned long long)v8 > v6 ) break; v3 = v7++; v4 = *v3; v5 = v8++; *v5 ^= v4; } return result; }
bitmap_xor: 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] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x28],RAX JMP 0x001f0ec0 LAB_001f0ec0: JMP 0x001f0ec2 LAB_001f0ec2: JMP 0x001f0ec4 LAB_001f0ec4: JMP 0x001f0ec6 LAB_001f0ec6: JMP 0x001f0ec8 LAB_001f0ec8: JMP 0x001f0eca LAB_001f0eca: MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x28] JA 0x001f0efa MOV RAX,qword ptr [RBP + -0x20] MOV RCX,RAX ADD RCX,0x4 MOV qword ptr [RBP + -0x20],RCX MOV ECX,dword ptr [RAX] MOV RAX,qword ptr [RBP + -0x18] MOV RDX,RAX ADD RDX,0x4 MOV qword ptr [RBP + -0x18],RDX XOR ECX,dword ptr [RAX] MOV dword ptr [RAX],ECX JMP 0x001f0eca LAB_001f0efa: POP RBP RET
void bitmap_xor(int8 *param_1,int8 *param_2) { uint *puVar1; uint *local_28; uint *local_20; puVar1 = (uint *)param_1[1]; local_28 = (uint *)*param_2; local_20 = (uint *)*param_1; while (local_20 <= puVar1) { *local_20 = *local_28 ^ *local_20; local_28 = local_28 + 1; local_20 = local_20 + 1; } return; }
19,494
common_log::set_file(char const*)
monkey531[P]llama/common/log.cpp
void set_file(const char * path) { pause(); if (file) { fclose(file); } if (path) { file = fopen(path, "w"); } else { file = nullptr; } resume(); }
O3
cpp
common_log::set_file(char const*): pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx callq 0xcc0c2 movq 0x60(%rbx), %rdi testq %rdi, %rdi je 0xcc4d3 callq 0x1a8c0 testq %r14, %r14 je 0xcc4e9 leaq 0x1ccfb(%rip), %rsi # 0xe91da movq %r14, %rdi callq 0x1aa70 jmp 0xcc4eb xorl %eax, %eax movq %rax, 0x60(%rbx) movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r14 jmp 0xcc14a
_ZN10common_log8set_fileEPKc: push r14 push rbx push rax mov r14, rsi mov rbx, rdi call _ZN10common_log5pauseEv; common_log::pause(void) mov rdi, [rbx+60h] test rdi, rdi jz short loc_CC4D3 call _fclose loc_CC4D3: test r14, r14 jz short loc_CC4E9 lea rsi, aGrpAttnW+0Bh; "w" mov rdi, r14 call _fopen jmp short loc_CC4EB loc_CC4E9: xor eax, eax loc_CC4EB: mov [rbx+60h], rax mov rdi, rbx; this add rsp, 8 pop rbx pop r14 jmp _ZN10common_log6resumeEv; common_log::resume(void)
long long common_log::set_file(common_log *this, const char *a2) { long long v3; // rdi long long v4; // rax common_log::pause(this); v3 = *((_QWORD *)this + 12); if ( v3 ) fclose(v3); if ( a2 ) v4 = fopen(a2, "w"); else v4 = 0LL; *((_QWORD *)this + 12) = v4; return common_log::resume(this); }
set_file: PUSH R14 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI CALL 0x001cc0c2 MOV RDI,qword ptr [RBX + 0x60] TEST RDI,RDI JZ 0x001cc4d3 CALL 0x0011a8c0 LAB_001cc4d3: TEST R14,R14 JZ 0x001cc4e9 LEA RSI,[0x1e91da] MOV RDI,R14 CALL 0x0011aa70 JMP 0x001cc4eb LAB_001cc4e9: XOR EAX,EAX LAB_001cc4eb: MOV qword ptr [RBX + 0x60],RAX MOV RDI,RBX ADD RSP,0x8 POP RBX POP R14 JMP 0x001cc14a
/* common_log::set_file(char const*) */ void __thiscall common_log::set_file(common_log *this,char *param_1) { FILE *pFVar1; pause(this); if (*(FILE **)(this + 0x60) != (FILE *)0x0) { fclose(*(FILE **)(this + 0x60)); } if (param_1 == (char *)0x0) { pFVar1 = (FILE *)0x0; } else { pFVar1 = fopen(param_1,"w"); } *(FILE **)(this + 0x60) = pFVar1; resume(this); return; }
19,495
gguf_remove_key
Yangxiaoz[P]GGML-Tutorial/ggml/src/gguf.cpp
int64_t gguf_remove_key(struct gguf_context * ctx, const char * key) { const int64_t key_id = gguf_find_key(ctx, key); if (key_id >= 0) { ctx->kv.erase(ctx->kv.begin() + key_id); } return key_id; }
O1
cpp
gguf_remove_key: pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx callq 0x187d0 movq %rax, %r14 testq %rax, %rax js 0x3f81e imulq $0x58, %r14, %rsi addq 0x8(%rbx), %rsi addq $0x8, %rbx movq %rbx, %rdi callq 0x17c20 movq %r14, %rax addq $0x8, %rsp popq %rbx popq %r14 retq
gguf_remove_key: push r14 push rbx push rax mov rbx, rdi call _gguf_find_key mov r14, rax test rax, rax js short loc_3F81E imul rsi, r14, 58h ; 'X' add rsi, [rbx+8] add rbx, 8 mov rdi, rbx call __ZNSt6vectorI7gguf_kvSaIS0_EE8_M_eraseEN9__gnu_cxx17__normal_iteratorIPS0_S2_EE; std::vector<gguf_kv>::_M_erase(__gnu_cxx::__normal_iterator<gguf_kv*,std::vector<gguf_kv>>) loc_3F81E: mov rax, r14 add rsp, 8 pop rbx pop r14 retn
long long gguf_remove_key(long long a1, long long a2) { long long key; // rax long long v3; // r14 key = gguf_find_key(a1, a2); v3 = key; if ( key >= 0 ) std::vector<gguf_kv>::_M_erase(a1 + 8, *(_QWORD *)(a1 + 8) + 88 * key); return v3; }
gguf_remove_key: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI CALL 0x001187d0 MOV R14,RAX TEST RAX,RAX JS 0x0013f81e IMUL RSI,R14,0x58 ADD RSI,qword ptr [RBX + 0x8] ADD RBX,0x8 MOV RDI,RBX CALL 0x00117c20 LAB_0013f81e: MOV RAX,R14 ADD RSP,0x8 POP RBX POP R14 RET
long gguf_remove_key(long param_1) { long lVar1; lVar1 = gguf_find_key(); if (-1 < lVar1) { std::vector<gguf_kv,std::allocator<gguf_kv>>::_M_erase ((vector<gguf_kv,std::allocator<gguf_kv>> *)(param_1 + 8), lVar1 * 0x58 + *(long *)(param_1 + 8)); } return lVar1; }
19,496
gguf_remove_key
Yangxiaoz[P]GGML-Tutorial/ggml/src/gguf.cpp
int64_t gguf_remove_key(struct gguf_context * ctx, const char * key) { const int64_t key_id = gguf_find_key(ctx, key); if (key_id >= 0) { ctx->kv.erase(ctx->kv.begin() + key_id); } return key_id; }
O3
cpp
gguf_remove_key: pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx callq 0x177c0 movq %rax, %r14 testq %rax, %rax js 0x3eea7 imulq $0x58, %r14, %rsi addq 0x8(%rbx), %rsi addq $0x8, %rbx movq %rbx, %rdi callq 0x16c20 movq %r14, %rax addq $0x8, %rsp popq %rbx popq %r14 retq
gguf_remove_key: push r14 push rbx push rax mov rbx, rdi call _gguf_find_key mov r14, rax test rax, rax js short loc_3EEA7 imul rsi, r14, 58h ; 'X' add rsi, [rbx+8] add rbx, 8 mov rdi, rbx call __ZNSt6vectorI7gguf_kvSaIS0_EE8_M_eraseEN9__gnu_cxx17__normal_iteratorIPS0_S2_EE; std::vector<gguf_kv>::_M_erase(__gnu_cxx::__normal_iterator<gguf_kv*,std::vector<gguf_kv>>) loc_3EEA7: mov rax, r14 add rsp, 8 pop rbx pop r14 retn
long long gguf_remove_key(long long a1, long long a2) { long long key; // rax long long v3; // r14 key = gguf_find_key(a1, a2); v3 = key; if ( key >= 0 ) std::vector<gguf_kv>::_M_erase(a1 + 8, *(_QWORD *)(a1 + 8) + 88 * key); return v3; }
gguf_remove_key: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI CALL 0x001177c0 MOV R14,RAX TEST RAX,RAX JS 0x0013eea7 IMUL RSI,R14,0x58 ADD RSI,qword ptr [RBX + 0x8] ADD RBX,0x8 MOV RDI,RBX CALL 0x00116c20 LAB_0013eea7: MOV RAX,R14 ADD RSP,0x8 POP RBX POP R14 RET
long gguf_remove_key(long param_1) { long lVar1; lVar1 = gguf_find_key(); if (-1 < lVar1) { std::vector<gguf_kv,std::allocator<gguf_kv>>::_M_erase ((vector<gguf_kv,std::allocator<gguf_kv>> *)(param_1 + 8), lVar1 * 0x58 + *(long *)(param_1 + 8)); } return lVar1; }
19,497
thr_print_locks
eloqsql/mysys/thr_lock.c
void thr_print_locks(void) { LIST *list; uint count=0; mysql_mutex_lock(&THR_LOCK_lock); puts("Current active THR (table level locks):"); for (list= thr_lock_thread_list; list && count++ < MAX_THREADS; list= list_rest(list)) { THR_LOCK *lock=(THR_LOCK*) list->data; mysql_mutex_lock(&lock->mutex); if ((lock->write.data || lock->read.data || lock->write_wait.data || lock->read_wait.data)) { printf("lock: %p:", lock); if ((lock->write_wait.data || lock->read_wait.data) && (! lock->read.data && ! lock->write.data)) printf(" WARNING: "); if (lock->write.data) printf(" write"); if (lock->write_wait.data) printf(" write_wait"); if (lock->read.data) printf(" read"); if (lock->read_wait.data) printf(" read_wait"); puts(""); thr_print_lock("write",&lock->write); thr_print_lock("write_wait",&lock->write_wait); thr_print_lock("read",&lock->read); thr_print_lock("read_wait",&lock->read_wait); puts(""); } mysql_mutex_unlock(&lock->mutex); } fflush(stdout); mysql_mutex_unlock(&THR_LOCK_lock); }
O3
c
thr_print_locks: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp leaq 0xb65b5d(%rip), %rax # 0xc0aa28 cmpq $0x0, 0x40(%rax) jne 0xa5108 leaq 0xb65b4b(%rip), %rdi # 0xc0aa28 callq 0x29220 leaq 0x38c41(%rip), %rdi # 0xddb2a callq 0x297e0 leaq 0xb65de3(%rip), %rax # 0xc0acd8 movq (%rax), %r15 testq %r15, %r15 je 0xa50cf movl $0x3e9, %ebx # imm = 0x3E9 decl %ebx je 0xa50cf movq 0x10(%r15), %r14 leaq 0x18(%r14), %r12 cmpq $0x0, 0x58(%r14) jne 0xa50a4 movq %r12, %rdi callq 0x29220 cmpq $0x0, 0x90(%r14) jne 0xa4f4f cmpq $0x0, 0x70(%r14) jne 0xa4f4f cmpq $0x0, 0x80(%r14) jne 0xa4f4f cmpq $0x0, 0x60(%r14) je 0xa506c movq %r15, -0x38(%rbp) leaq 0x90(%r14), %r15 movl $0x1, %edi leaq 0x38bec(%rip), %rsi # 0xddb52 movq %r14, %rdx xorl %eax, %eax callq 0x29810 cmpq $0x0, 0x80(%r14) jne 0xa4f81 cmpq $0x0, 0x60(%r14) je 0xa4f88 cmpq $0x0, 0x70(%r14) je 0xa4f90 cmpq $0x0, (%r15) jne 0xa4f9a jmp 0xa4fad cmpq $0x0, (%r15) je 0xa508c movl $0x1, %edi leaq 0x355be(%rip), %rsi # 0xda564 xorl %eax, %eax callq 0x29810 movq %r12, -0x40(%rbp) leaq 0x80(%r14), %r12 cmpq $0x0, (%r12) je 0xa4fd2 movl $0x1, %edi leaq 0x38b9c(%rip), %rsi # 0xddb67 xorl %eax, %eax callq 0x29810 cmpq $0x0, 0x70(%r14) je 0xa4fec movl $0x1, %edi leaq 0x3c990(%rip), %rsi # 0xe1975 xorl %eax, %eax callq 0x29810 movl %ebx, -0x2c(%rbp) cmpq $0x0, 0x60(%r14) je 0xa5009 movl $0x1, %edi leaq 0x38b71(%rip), %rsi # 0xddb73 xorl %eax, %eax callq 0x29810 leaq 0x70(%r14), %r13 leaq 0x60(%r14), %rbx movl $0xa, %edi callq 0x29900 leaq 0x35543(%rip), %rdi # 0xda565 movq %r15, %rsi callq 0xa5124 leaq 0x38b37(%rip), %rdi # 0xddb68 movq %r12, %rsi callq 0xa5124 leaq 0x3c936(%rip), %rdi # 0xe1976 movq %r13, %rsi callq 0xa5124 leaq 0x38b25(%rip), %rdi # 0xddb74 movq %rbx, %rsi callq 0xa5124 movl $0xa, %edi callq 0x29900 movl -0x2c(%rbp), %ebx movq -0x40(%rbp), %r12 movq -0x38(%rbp), %r15 movq 0x58(%r14), %rdi testq %rdi, %rdi jne 0xa50bd movq %r12, %rdi callq 0x291e0 movq 0x8(%r15), %r15 testq %r15, %r15 jne 0xa4f06 jmp 0xa50cf movl $0x1, %edi leaq 0x38ac4(%rip), %rsi # 0xddb5c xorl %eax, %eax callq 0x29810 jmp 0xa4f88 movq %r12, %rdi leaq 0x38a42(%rip), %rsi # 0xddaf0 movl $0x621, %edx # imm = 0x621 callq 0x2eb8f jmp 0xa4f29 leaq 0x2e2ffc(%rip), %rax # 0x3880c0 movq (%rax), %rax callq *0x160(%rax) jmp 0xa5075 movq 0x2e0ed2(%rip), %rax # 0x385fa8 movq (%rax), %rdi callq 0x29400 leaq 0xb65943(%rip), %rax # 0xc0aa28 movq 0x40(%rax), %rdi testq %rdi, %rdi jne 0xa5112 leaq 0xb65933(%rip), %rdi # 0xc0aa28 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x291e0 callq 0x2f208 jmp 0xa4ee2 leaq 0x2e2fa7(%rip), %rax # 0x3880c0 movq (%rax), %rax callq *0x160(%rax) jmp 0xa50ee
thr_print_locks: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h lea rax, THR_LOCK_lock cmp qword ptr [rax+40h], 0 jnz loc_A5108 lea rdi, THR_LOCK_lock call _pthread_mutex_lock loc_A4EE2: lea rdi, aCurrentActiveT; "Current active THR (table level locks):" call _puts lea rax, thr_lock_thread_list mov r15, [rax] test r15, r15 jz loc_A50CF mov ebx, 3E9h loc_A4F06: dec ebx jz loc_A50CF mov r14, [r15+10h] lea r12, [r14+18h] cmp qword ptr [r14+58h], 0 jnz loc_A50A4 mov rdi, r12 call _pthread_mutex_lock loc_A4F29: cmp qword ptr [r14+90h], 0 jnz short loc_A4F4F cmp qword ptr [r14+70h], 0 jnz short loc_A4F4F cmp qword ptr [r14+80h], 0 jnz short loc_A4F4F cmp qword ptr [r14+60h], 0 jz loc_A506C loc_A4F4F: mov [rbp+var_38], r15 lea r15, [r14+90h] mov edi, 1 lea rsi, aLockP; "lock: %p:" mov rdx, r14 xor eax, eax call ___printf_chk cmp qword ptr [r14+80h], 0 jnz short loc_A4F81 cmp qword ptr [r14+60h], 0 jz short loc_A4F88 loc_A4F81: cmp qword ptr [r14+70h], 0 jz short loc_A4F90 loc_A4F88: cmp qword ptr [r15], 0 jnz short loc_A4F9A jmp short loc_A4FAD loc_A4F90: cmp qword ptr [r15], 0 jz loc_A508C loc_A4F9A: mov edi, 1 lea rsi, aSimpleBigFileW+0Fh; " write" xor eax, eax call ___printf_chk loc_A4FAD: mov [rbp+var_40], r12 lea r12, [r14+80h] cmp qword ptr [r12], 0 jz short loc_A4FD2 mov edi, 1 lea rsi, aWriteWait; " write_wait" xor eax, eax call ___printf_chk loc_A4FD2: cmp qword ptr [r14+70h], 0 jz short loc_A4FEC mov edi, 1 lea rsi, aTheEventWasCor+34h; " read" xor eax, eax call ___printf_chk loc_A4FEC: mov [rbp+var_2C], ebx cmp qword ptr [r14+60h], 0 jz short loc_A5009 mov edi, 1 lea rsi, aReadWait; " read_wait" xor eax, eax call ___printf_chk loc_A5009: lea r13, [r14+70h] lea rbx, [r14+60h] mov edi, 0Ah call _putchar lea rdi, aSimpleBigFileW+10h; "write" mov rsi, r15 call thr_print_lock lea rdi, aWriteWait+1; "write_wait" mov rsi, r12 call thr_print_lock lea rdi, aTheEventWasCor+35h; "read" mov rsi, r13 call thr_print_lock lea rdi, aReadWait+1; "read_wait" mov rsi, rbx call thr_print_lock mov edi, 0Ah call _putchar mov ebx, [rbp+var_2C] mov r12, [rbp+var_40] mov r15, [rbp+var_38] loc_A506C: mov rdi, [r14+58h] test rdi, rdi jnz short loc_A50BD loc_A5075: mov rdi, r12 call _pthread_mutex_unlock mov r15, [r15+8] test r15, r15 jnz loc_A4F06 jmp short loc_A50CF loc_A508C: mov edi, 1 lea rsi, aWarning; " WARNING: " xor eax, eax call ___printf_chk jmp loc_A4F88 loc_A50A4: mov rdi, r12 lea rsi, aWorkspaceLlm4b_23; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 621h call psi_mutex_lock jmp loc_A4F29 loc_A50BD: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp short loc_A5075 loc_A50CF: mov rax, cs:stdout_ptr mov rdi, [rax] call _fflush lea rax, THR_LOCK_lock mov rdi, [rax+40h] test rdi, rdi jnz short loc_A5112 loc_A50EE: lea rdi, THR_LOCK_lock add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp _pthread_mutex_unlock loc_A5108: call thr_print_locks_cold_1 jmp loc_A4EE2 loc_A5112: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp short loc_A50EE
long long thr_print_locks() { long long *v0; // r15 int v1; // ebx _QWORD *v2; // r14 _QWORD *v3; // r12 _QWORD *v4; // r15 long long *v6; // [rsp+8h] [rbp-38h] if ( THR_LOCK_lock[8] ) thr_print_locks_cold_1(); else pthread_mutex_lock(THR_LOCK_lock); puts("Current active THR (table level locks):"); v0 = thr_lock_thread_list; if ( thr_lock_thread_list ) { v1 = 1001; while ( 1 ) { if ( !--v1 ) goto LABEL_32; v2 = (_QWORD *)v0[2]; v3 = v2 + 3; if ( v2[11] ) psi_mutex_lock((long long)(v2 + 3), (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c", 0x621u); else pthread_mutex_lock(v2 + 3); if ( v2[18] || v2[14] || v2[16] || v2[12] ) break; LABEL_26: if ( v2[11] ) PSI_server[44](); pthread_mutex_unlock(v3); v0 = (long long *)v0[1]; if ( !v0 ) goto LABEL_32; } v6 = v0; v4 = v2 + 18; __printf_chk(1LL, "lock: %p:", v2); if ( (v2[16] || v2[12]) && !v2[14] ) { if ( *v4 ) { LABEL_18: __printf_chk(1LL, " write"); LABEL_19: if ( v2[16] ) __printf_chk(1LL, " write_wait"); if ( v2[14] ) __printf_chk(1LL, " read"); if ( v2[12] ) __printf_chk(1LL, " read_wait"); putchar(10LL); thr_print_lock("write", v2 + 18); thr_print_lock("write_wait", v2 + 16); thr_print_lock("read", v2 + 14); thr_print_lock("read_wait", v2 + 12); putchar(10LL); v3 = v2 + 3; v0 = v6; goto LABEL_26; } __printf_chk(1LL, " WARNING: "); } if ( !*v4 ) goto LABEL_19; goto LABEL_18; } LABEL_32: fflush(stdout); if ( THR_LOCK_lock[8] ) PSI_server[44](); return pthread_mutex_unlock(THR_LOCK_lock); }
thr_print_locks: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 LEA RAX,[0xd0aa28] CMP qword ptr [RAX + 0x40],0x0 JNZ 0x001a5108 LEA RDI,[0xd0aa28] CALL 0x00129220 LAB_001a4ee2: LEA RDI,[0x1ddb2a] CALL 0x001297e0 LEA RAX,[0xd0acd8] MOV R15,qword ptr [RAX] TEST R15,R15 JZ 0x001a50cf MOV EBX,0x3e9 LAB_001a4f06: DEC EBX JZ 0x001a50cf MOV R14,qword ptr [R15 + 0x10] LEA R12,[R14 + 0x18] CMP qword ptr [R14 + 0x58],0x0 JNZ 0x001a50a4 MOV RDI,R12 CALL 0x00129220 LAB_001a4f29: CMP qword ptr [R14 + 0x90],0x0 JNZ 0x001a4f4f CMP qword ptr [R14 + 0x70],0x0 JNZ 0x001a4f4f CMP qword ptr [R14 + 0x80],0x0 JNZ 0x001a4f4f CMP qword ptr [R14 + 0x60],0x0 JZ 0x001a506c LAB_001a4f4f: MOV qword ptr [RBP + -0x38],R15 LEA R15,[R14 + 0x90] MOV EDI,0x1 LEA RSI,[0x1ddb52] MOV RDX,R14 XOR EAX,EAX CALL 0x00129810 CMP qword ptr [R14 + 0x80],0x0 JNZ 0x001a4f81 CMP qword ptr [R14 + 0x60],0x0 JZ 0x001a4f88 LAB_001a4f81: CMP qword ptr [R14 + 0x70],0x0 JZ 0x001a4f90 LAB_001a4f88: CMP qword ptr [R15],0x0 JNZ 0x001a4f9a JMP 0x001a4fad LAB_001a4f90: CMP qword ptr [R15],0x0 JZ 0x001a508c LAB_001a4f9a: MOV EDI,0x1 LEA RSI,[0x1da564] XOR EAX,EAX CALL 0x00129810 LAB_001a4fad: MOV qword ptr [RBP + -0x40],R12 LEA R12,[R14 + 0x80] CMP qword ptr [R12],0x0 JZ 0x001a4fd2 MOV EDI,0x1 LEA RSI,[0x1ddb67] XOR EAX,EAX CALL 0x00129810 LAB_001a4fd2: CMP qword ptr [R14 + 0x70],0x0 JZ 0x001a4fec MOV EDI,0x1 LEA RSI,[0x1e1975] XOR EAX,EAX CALL 0x00129810 LAB_001a4fec: MOV dword ptr [RBP + -0x2c],EBX CMP qword ptr [R14 + 0x60],0x0 JZ 0x001a5009 MOV EDI,0x1 LEA RSI,[0x1ddb73] XOR EAX,EAX CALL 0x00129810 LAB_001a5009: LEA R13,[R14 + 0x70] LEA RBX,[R14 + 0x60] MOV EDI,0xa CALL 0x00129900 LEA RDI,[0x1da565] MOV RSI,R15 CALL 0x001a5124 LEA RDI,[0x1ddb68] MOV RSI,R12 CALL 0x001a5124 LEA RDI,[0x1e1976] MOV RSI,R13 CALL 0x001a5124 LEA RDI,[0x1ddb74] MOV RSI,RBX CALL 0x001a5124 MOV EDI,0xa CALL 0x00129900 MOV EBX,dword ptr [RBP + -0x2c] MOV R12,qword ptr [RBP + -0x40] MOV R15,qword ptr [RBP + -0x38] LAB_001a506c: MOV RDI,qword ptr [R14 + 0x58] TEST RDI,RDI JNZ 0x001a50bd LAB_001a5075: MOV RDI,R12 CALL 0x001291e0 MOV R15,qword ptr [R15 + 0x8] TEST R15,R15 JNZ 0x001a4f06 JMP 0x001a50cf LAB_001a508c: MOV EDI,0x1 LEA RSI,[0x1ddb5c] XOR EAX,EAX CALL 0x00129810 JMP 0x001a4f88 LAB_001a50a4: MOV RDI,R12 LEA RSI,[0x1ddaf0] MOV EDX,0x621 CALL 0x0012eb8f JMP 0x001a4f29 LAB_001a50bd: LEA RAX,[0x4880c0] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x001a5075 LAB_001a50cf: MOV RAX,qword ptr [0x00485fa8] MOV RDI,qword ptr [RAX] CALL 0x00129400 LEA RAX,[0xd0aa28] MOV RDI,qword ptr [RAX + 0x40] TEST RDI,RDI JNZ 0x001a5112 LAB_001a50ee: LEA RDI,[0xd0aa28] ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x001291e0 LAB_001a5108: CALL 0x0012f208 JMP 0x001a4ee2 LAB_001a5112: LEA RAX,[0x4880c0] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x001a50ee
void thr_print_locks(void) { pthread_mutex_t *__mutex; long *plVar1; long lVar2; int iVar3; long lVar4; if (THR_LOCK_lock._64_8_ == 0) { pthread_mutex_lock((pthread_mutex_t *)THR_LOCK_lock); } else { thr_print_locks_cold_1(); } puts("Current active THR (table level locks):"); if (thr_lock_thread_list != 0) { iVar3 = 0x3e9; lVar4 = thr_lock_thread_list; do { iVar3 = iVar3 + -1; if (iVar3 == 0) break; lVar2 = *(long *)(lVar4 + 0x10); __mutex = (pthread_mutex_t *)(lVar2 + 0x18); if (*(long *)(lVar2 + 0x58) == 0) { pthread_mutex_lock(__mutex); } else { psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c",0x621); } if ((((*(long *)(lVar2 + 0x90) != 0) || (*(long *)(lVar2 + 0x70) != 0)) || (*(long *)(lVar2 + 0x80) != 0)) || (*(long *)(lVar2 + 0x60) != 0)) { plVar1 = (long *)(lVar2 + 0x90); __printf_chk(1,"lock: %p:",lVar2); if (((*(long *)(lVar2 + 0x80) == 0) && (*(long *)(lVar2 + 0x60) == 0)) || (*(long *)(lVar2 + 0x70) != 0)) { LAB_001a4f88: if (*plVar1 != 0) goto LAB_001a4f9a; } else { if (*plVar1 == 0) { __printf_chk(1," WARNING: "); goto LAB_001a4f88; } LAB_001a4f9a: __printf_chk(1," write"); } if (*(long *)(lVar2 + 0x80) != 0) { __printf_chk(1," write_wait"); } if (*(long *)(lVar2 + 0x70) != 0) { __printf_chk(1," read"); } if (*(long *)(lVar2 + 0x60) != 0) { __printf_chk(1," read_wait"); } putchar(10); thr_print_lock("write",plVar1); thr_print_lock("write_wait",(long *)(lVar2 + 0x80)); thr_print_lock("read",lVar2 + 0x70); thr_print_lock("read_wait",lVar2 + 0x60); putchar(10); } if (*(long *)(lVar2 + 0x58) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock(__mutex); lVar4 = *(long *)(lVar4 + 8); } while (lVar4 != 0); } fflush(*(FILE **)PTR_stdout_00485fa8); if (THR_LOCK_lock._64_8_ != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock((pthread_mutex_t *)THR_LOCK_lock); return; }
19,498
html_emit_text
navaro[P]qoraal-tictactoe/src/services/www/parts/html.c
static int32_t html_emit_text (PENGINE_T instance, uint32_t parm, uint32_t flags, bool strsub) { if (flags & (PART_ACTION_FLAG_VALIDATE)) { return parts_valadate_string (instance, parm, flags) ; } HTTP_USER_T * user = 0 ; MUTEX_LOCK () ; if (!_html_emit || _html_emit->response < 0) { MUTEX_UNLOCK () ; DBG_ENGINE_LOG(ENGINE_LOG_TYPE_ERROR, "error: html_emit unexpected!") ; return EFAIL ; } user = _html_emit->user ; MUTEX_UNLOCK () ; if (user) { uint16_t len ; const char* str = 0 ; if (flags & PART_ACTION_FLAG_STRING) { str = engine_get_string (instance, parm, &len) ; } if (str) { char * newstr = 0 ; if (strsub) { int32_t dstlen = strsub_parse_get_dst_length (0, str, len) ; if (dstlen > 0) { newstr = qoraal_malloc(QORAAL_HeapAuxiliary, dstlen) ; if (newstr) { len = strsub_parse_string_to (0, str, len, newstr, dstlen) ; str = newstr ; } } } httpserver_chunked_append_str (user, str, len) ; if (newstr) qoraal_free(QORAAL_HeapAuxiliary, newstr) ; } } return ENGINE_OK ; }
O3
c
html_emit_text: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %edx, %r14d movl %esi, %r13d movq %rdi, %r12 testb $0x1, %r14b jne 0x140af movl %ecx, %r15d leaq 0x2c95e(%rip), %rdi # 0x40938 callq 0x14ff0 movq 0x2c95a(%rip), %rax # 0x40940 testq %rax, %rax je 0x140cb cmpl $0x0, 0x8(%rax) js 0x140cb movq (%rax), %rbx leaq 0x2c935(%rip), %rdi # 0x40938 callq 0x15015 xorl %eax, %eax movq %rbx, -0x38(%rbp) testq %rbx, %rbx je 0x140f1 testb $0x8, %r14b je 0x140f1 movzwl %r13w, %esi leaq -0x2a(%rbp), %rdx movq %r12, %rdi callq 0xffe1 movq %rax, %r12 xorl %eax, %eax testq %r12, %r12 je 0x140f1 testb %r15b, %r15b je 0x14100 movzwl -0x2a(%rbp), %edx xorl %edi, %edi movq %r12, %rsi callq 0x1b821 testl %eax, %eax jle 0x14100 movl %eax, %r15d movl %eax, %esi movl $0x1, %edi callq 0x14229 testq %rax, %rax je 0x14100 movq %rax, %r14 movzwl -0x2a(%rbp), %edx xorl %edi, %edi movq %r12, %rsi movq %rax, %rcx movl %r15d, %r8d callq 0x1b8ea movw %ax, -0x2a(%rbp) movzwl %ax, %edx movq -0x38(%rbp), %rdi movq %r14, %rsi callq 0x1dd14 movl $0x1, %edi movq %r14, %rsi callq 0x14243 jmp 0x14110 movq %r12, %rdi movl %r13d, %esi movl %r14d, %edx addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x822a leaq 0x2c866(%rip), %rdi # 0x40938 callq 0x15015 leaq 0x1da24(%rip), %rdx # 0x31b02 xorl %edi, %edi movl $0x2, %esi xorl %eax, %eax callq 0xe379 movl $0xffffffff, %eax # imm = 0xFFFFFFFF addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movzwl -0x2a(%rbp), %edx movq -0x38(%rbp), %rdi movq %r12, %rsi callq 0x1dd14 xorl %eax, %eax jmp 0x140f1
html_emit_text: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r14d, edx mov r13d, esi mov r12, rdi test r14b, 1 jnz loc_140AF mov r15d, ecx lea rdi, _html_mutex call os_mutex_lock mov rax, cs:_html_emit test rax, rax jz loc_140CB cmp dword ptr [rax+8], 0 js loc_140CB mov rbx, [rax] lea rdi, _html_mutex call os_mutex_unlock xor eax, eax mov [rbp+var_38], rbx test rbx, rbx jz loc_140F1 test r14b, 8 jz loc_140F1 movzx esi, r13w lea rdx, [rbp+var_2A] mov rdi, r12 call engine_get_string mov r12, rax xor eax, eax test r12, r12 jz loc_140F1 test r15b, r15b jz loc_14100 movzx edx, [rbp+var_2A] xor edi, edi mov rsi, r12 call strsub_parse_get_dst_length test eax, eax jle loc_14100 mov r15d, eax mov esi, eax mov edi, 1 call qoraal_malloc test rax, rax jz loc_14100 mov r14, rax movzx edx, [rbp+var_2A] xor edi, edi mov rsi, r12 mov rcx, rax mov r8d, r15d call strsub_parse_string_to mov [rbp+var_2A], ax movzx edx, ax mov rdi, [rbp+var_38] mov rsi, r14 call httpserver_chunked_append_str mov edi, 1 mov rsi, r14 call qoraal_free jmp short loc_14110 loc_140AF: mov rdi, r12 mov esi, r13d mov edx, r14d add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp parts_valadate_string loc_140CB: lea rdi, _html_mutex call os_mutex_unlock lea rdx, aErrorHtmlEmitU; "error: html_emit unexpected!" xor edi, edi mov esi, 2 xor eax, eax call engine_log mov eax, 0FFFFFFFFh loc_140F1: add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_14100: movzx edx, [rbp+var_2A] mov rdi, [rbp+var_38] mov rsi, r12 call httpserver_chunked_append_str loc_14110: xor eax, eax jmp short loc_140F1
long long html_emit_text( unsigned int *a1, unsigned __int16 a2, char a3, char a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, double a9, double a10, __m128 a11, __m128 a12) { long long v14; // rbx long long v15; // rcx long long v16; // r8 long long v17; // r9 __m128 v18; // xmm4 __m128 v19; // xmm5 long long result; // rax _WORD *string; // r12 int dst_length; // eax unsigned int v23; // r15d long long v24; // rax long long v25; // r14 long long v26; // rcx long long v27; // r8 long long v28; // r9 __m128 v29; // xmm4 __m128 v30; // xmm5 char v31; // [rsp+0h] [rbp-40h] _WORD v32[21]; // [rsp+16h] [rbp-2Ah] BYREF if ( (a3 & 1) != 0 ) return parts_valadate_string((long long)a1, a2, a3); os_mutex_lock(&html_mutex); if ( html_emit && *(int *)(html_emit + 8) >= 0 ) { v14 = *(_QWORD *)html_emit; os_mutex_unlock(&html_mutex); result = 0LL; if ( v14 ) { if ( (a3 & 8) != 0 ) { string = engine_get_string(a1, a2, v32, a5, a6, a7, a8, v18, v19, a11, a12, v15, v16, v17); result = 0LL; if ( string ) { if ( a4 && (dst_length = strsub_parse_get_dst_length(0LL, string, v32[0]), dst_length > 0) && (v23 = dst_length, (v24 = qoraal_malloc(1LL, (unsigned int)dst_length)) != 0) ) { v25 = v24; v32[0] = strsub_parse_string_to(0LL, string, v32[0], v24, v23); httpserver_chunked_append_str(v14, v25, v32[0]); qoraal_free(1LL, v25); } else { httpserver_chunked_append_str(v14, string, v32[0]); } return 0LL; } } } } else { os_mutex_unlock(&html_mutex); engine_log(0LL, 2, (long long)aErrorHtmlEmitU, v26, v27, v28, a5, a6, a7, a8, v29, v30, a11, a12, v31); return 0xFFFFFFFFLL; } return result; }
html_emit_text: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R14D,EDX MOV R13D,ESI MOV R12,RDI TEST R14B,0x1 JNZ 0x001140af MOV R15D,ECX LEA RDI,[0x140938] CALL 0x00114ff0 MOV RAX,qword ptr [0x00140940] TEST RAX,RAX JZ 0x001140cb CMP dword ptr [RAX + 0x8],0x0 JS 0x001140cb MOV RBX,qword ptr [RAX] LEA RDI,[0x140938] CALL 0x00115015 XOR EAX,EAX MOV qword ptr [RBP + -0x38],RBX TEST RBX,RBX JZ 0x001140f1 TEST R14B,0x8 JZ 0x001140f1 MOVZX ESI,R13W LEA RDX,[RBP + -0x2a] MOV RDI,R12 CALL 0x0010ffe1 MOV R12,RAX XOR EAX,EAX TEST R12,R12 JZ 0x001140f1 TEST R15B,R15B JZ 0x00114100 MOVZX EDX,word ptr [RBP + -0x2a] XOR EDI,EDI MOV RSI,R12 CALL 0x0011b821 TEST EAX,EAX JLE 0x00114100 MOV R15D,EAX MOV ESI,EAX MOV EDI,0x1 CALL 0x00114229 TEST RAX,RAX JZ 0x00114100 MOV R14,RAX MOVZX EDX,word ptr [RBP + -0x2a] XOR EDI,EDI MOV RSI,R12 MOV RCX,RAX MOV R8D,R15D CALL 0x0011b8ea MOV word ptr [RBP + -0x2a],AX MOVZX EDX,AX MOV RDI,qword ptr [RBP + -0x38] MOV RSI,R14 CALL 0x0011dd14 MOV EDI,0x1 MOV RSI,R14 CALL 0x00114243 JMP 0x00114110 LAB_001140af: MOV RDI,R12 MOV ESI,R13D MOV EDX,R14D ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x0010822a LAB_001140cb: LEA RDI,[0x140938] CALL 0x00115015 LEA RDX,[0x131b02] XOR EDI,EDI MOV ESI,0x2 XOR EAX,EAX CALL 0x0010e379 MOV EAX,0xffffffff LAB_001140f1: ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00114100: MOVZX EDX,word ptr [RBP + -0x2a] MOV RDI,qword ptr [RBP + -0x38] MOV RSI,R12 CALL 0x0011dd14 LAB_00114110: XOR EAX,EAX JMP 0x001140f1
int8 html_emit_text(int8 param_1,uint param_2,uint param_3,char param_4) { long lVar1; int iVar2; long lVar3; long lVar4; int8 uVar5; int2 local_32; if ((param_3 & 1) != 0) { uVar5 = parts_valadate_string(param_1,param_2,param_3); return uVar5; } os_mutex_lock(&_html_mutex); if ((_html_emit == (long *)0x0) || ((int)_html_emit[1] < 0)) { os_mutex_unlock(&_html_mutex); engine_log(0,2,s_error__html_emit_unexpected__00131b02); return 0xffffffff; } lVar1 = *_html_emit; os_mutex_unlock(&_html_mutex); if (lVar1 == 0) { return 0; } if ((param_3 & 8) != 0) { lVar3 = engine_get_string(param_1,param_2 & 0xffff,&local_32); if (lVar3 != 0) { if (((param_4 == '\0') || (iVar2 = strsub_parse_get_dst_length(0,lVar3,local_32), iVar2 < 1)) || (lVar4 = qoraal_malloc(1,iVar2), lVar4 == 0)) { httpserver_chunked_append_str(lVar1,lVar3,local_32); } else { local_32 = strsub_parse_string_to(0,lVar3,local_32,lVar4,iVar2); httpserver_chunked_append_str(lVar1,lVar4,local_32); qoraal_free(1,lVar4); } return 0; } return 0; } return 0; }
19,499
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::get_ref_impl<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&)
monkey531[P]llama/common/json.hpp
static ReferenceType get_ref_impl(ThisType& obj) { // delegate the call to get_ptr<>() auto* ptr = obj.template get_ptr<typename std::add_pointer<ReferenceType>::type>(); if (JSON_HEDLEY_LIKELY(ptr != nullptr)) { return *ptr; } JSON_THROW(type_error::create(303, detail::concat("incompatible ReferenceType for get_ref, actual type is ", obj.type_name()), &obj)); }
O2
cpp
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::get_ref_impl<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&): pushq %rbp pushq %r14 pushq %rbx subq $0x30, %rsp movq %rdi, %r14 cmpb $0x3, (%rdi) jne 0x84298 movq 0x8(%r14), %rax testq %rax, %rax je 0x84298 addq $0x30, %rsp popq %rbx popq %r14 popq %rbp retq pushq $0x20 popq %rdi callq 0x23470 movq %rax, %rbx movq %r14, %rdi callq 0x445e8 leaq 0x8(%rsp), %rdx movq %rax, (%rdx) leaq 0x31fda(%rip), %rsi # 0xb6294 leaq 0x10(%rsp), %rdi callq 0x8431b movb $0x1, %bpl leaq 0x10(%rsp), %rdx movq %rbx, %rdi movl $0x12f, %esi # imm = 0x12F movq %r14, %rcx callq 0x644da xorl %ebp, %ebp leaq 0x78c53(%rip), %rsi # 0xfcf38 leaq -0x43174(%rip), %rdx # 0x41178 movq %rbx, %rdi callq 0x23f00 movq %rax, %r14 leaq 0x10(%rsp), %rdi callq 0x241c8 testb %bpl, %bpl jne 0x8430b jmp 0x84313 movq %rax, %r14 movq %rbx, %rdi callq 0x236a0 movq %r14, %rdi callq 0x23f80
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE12get_ref_implIRKS9_KSD_EET_RT0_: push rbp; char push r14; int push rbx; int sub rsp, 30h mov r14, rdi cmp byte ptr [rdi], 3 jnz short loc_84298 mov rax, [r14+8] test rax, rax jz short loc_84298 add rsp, 30h pop rbx pop r14 pop rbp retn loc_84298: push 20h ; ' ' pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) lea rdx, [rsp+48h+var_40] mov [rdx], rax lea rsi, aIncompatibleRe; "incompatible ReferenceType for get_ref,"... lea rdi, [rsp+48h+var_38] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA56_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[56],char const*>(char const(&)[56],char const* &&) mov bpl, 1 lea rdx, [rsp+48h+var_38] mov rdi, rbx; this mov esi, 12Fh; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rdi, [rsp+48h+var_38]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test bpl, bpl jnz short loc_8430B jmp short loc_84313 mov r14, rax loc_8430B: mov rdi, rbx; void * call ___cxa_free_exception loc_84313: mov rdi, r14 call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::get_ref_impl<std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>( long long a1) { long long result; // rax nlohmann::json_abi_v3_11_3::detail::type_error *exception; // rbx _BYTE v3[56]; // [rsp+10h] [rbp-38h] BYREF if ( *(_BYTE *)a1 != 3 || (result = *(_QWORD *)(a1 + 8)) == 0 ) { exception = (nlohmann::json_abi_v3_11_3::detail::type_error *)__cxa_allocate_exception(0x20uLL); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((unsigned __int8 *)a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[56],char const*>( v3, "incompatible ReferenceType for get_ref, actual type is "); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( exception, 303, (long long)v3); __cxa_throw( exception, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } return result; }
get_ref_impl<std::__cxx11::string_const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x30 MOV R14,RDI CMP byte ptr [RDI],0x3 JNZ 0x00184298 MOV RAX,qword ptr [R14 + 0x8] TEST RAX,RAX JZ 0x00184298 ADD RSP,0x30 POP RBX POP R14 POP RBP RET LAB_00184298: PUSH 0x20 POP RDI CALL 0x00123470 MOV RBX,RAX MOV RDI,R14 CALL 0x001445e8 LEA RDX,[RSP + 0x8] MOV qword ptr [RDX],RAX LAB_001842b3: LEA RSI,[0x1b6294] LEA RDI,[RSP + 0x10] CALL 0x0018431b MOV BPL,0x1 LAB_001842c7: LEA RDX,[RSP + 0x10] MOV RDI,RBX MOV ESI,0x12f MOV RCX,R14 CALL 0x001644da XOR EBP,EBP LEA RSI,[0x1fcf38] LEA RDX,[0x141178] MOV RDI,RBX CALL 0x00123f00
/* 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>::get_ref_impl<std::__cxx11::string const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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&) */ string * nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> :: get_ref_impl<std::__cxx11::string_const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> (basic_json *param_1) { int8 uVar1; char *local_40; detail local_38 [32]; if ((*param_1 == '\x03') && (*(string **)(param_1 + 8) != (string *)0x0)) { return *(string **)(param_1 + 8); } uVar1 = __cxa_allocate_exception(0x20); local_40 = (char *)type_name((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)param_1); /* try { // try from 001842b3 to 001842c3 has its CatchHandler @ 00184308 */ detail::concat<std::__cxx11::string,char_const(&)[56],char_const*> (local_38,"incompatible ReferenceType for get_ref, actual type is ",&local_40); /* try { // try from 001842c7 to 001842f3 has its CatchHandler @ 001842f4 */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar1,0x12f,local_38,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar1,&detail::type_error::typeinfo,detail::exception::~exception); }