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
47,700
fs_get_cache_directory[abi:cxx11]()
monkey531[P]llama/common/common.cpp
std::string fs_get_cache_directory() { std::string cache_directory = ""; auto ensure_trailing_slash = [](std::string p) { // Make sure to add trailing slash if (p.back() != DIRECTORY_SEPARATOR) { p += DIRECTORY_SEPARATOR; } return p; }; if (getenv("LLAMA_CACHE")) { cache_directory = std::getenv("LLAMA_CACHE"); } else { #ifdef __linux__ if (std::getenv("XDG_CACHE_HOME")) { cache_directory = std::getenv("XDG_CACHE_HOME"); } else { cache_directory = std::getenv("HOME") + std::string("/.cache/"); } #elif defined(__APPLE__) cache_directory = std::getenv("HOME") + std::string("/Library/Caches/"); #elif defined(_WIN32) cache_directory = std::getenv("LOCALAPPDATA"); #endif // __linux__ cache_directory = ensure_trailing_slash(cache_directory); cache_directory += "llama.cpp"; } return ensure_trailing_slash(cache_directory); }
O3
cpp
fs_get_cache_directory[abi:cxx11](): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xa0, %rsp movq %rdi, %rbx leaq 0x30(%rsp), %r13 movq %r13, -0x10(%r13) leaq 0x7234e(%rip), %rdx # 0xe5151 leaq 0x20(%rsp), %rdi movq %rdx, %rsi callq 0x21540 leaq 0x7ade5(%rip), %rdi # 0xedbfc callq 0x1aa30 testq %rax, %rax je 0x72e4d movq %rax, %r14 leaq 0x20(%rsp), %r15 movq 0x8(%r15), %r12 movq %rax, %rdi callq 0x1a3d0 movq %r15, %rdi xorl %esi, %esi movq %r12, %rdx movq %r14, %rcx movq %rax, %r8 callq 0x1ad10 jmp 0x7303b leaq 0x7adb4(%rip), %rdi # 0xedc08 callq 0x1aa30 testq %rax, %rax je 0x72e8a movq %rax, %r14 leaq 0x20(%rsp), %r15 movq 0x8(%r15), %r12 movq %rax, %rdi callq 0x1a3d0 movq %r15, %rdi xorl %esi, %esi movq %r12, %rdx movq %r14, %rcx movq %rax, %r8 callq 0x1ad10 jmp 0x72f6a leaq 0x7ad81(%rip), %rdi # 0xedc12 callq 0x1aa30 movq %rax, %r14 leaq 0x90(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0x7ad6b(%rip), %rsi # 0xedc17 leaq 0x7ad6c(%rip), %rdx # 0xedc1f leaq 0x80(%rsp), %rdi callq 0x21540 movq %r14, %rdi callq 0x1a3d0 leaq 0x80(%rsp), %rdi xorl %esi, %esi xorl %edx, %edx movq %r14, %rcx movq %rax, %r8 callq 0x1a980 leaq 0x70(%rsp), %r12 movq %r12, -0x10(%r12) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x72f07 movq %rdx, 0x60(%rsp) movq (%rcx), %rdx movq %rdx, 0x70(%rsp) jmp 0x72f0f movups (%rcx), %xmm0 movups %xmm0, (%r12) movq 0x8(%rax), %rdx leaq 0x60(%rsp), %r14 movq %rdx, 0x8(%r14) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x20(%rsp), %rdi movq %r14, %rsi callq 0x1aa50 movq (%r14), %rdi cmpq %r12, %rdi je 0x72f4d movq 0x70(%rsp), %rsi incq %rsi callq 0x1a890 movq 0x80(%rsp), %rdi cmpq %r15, %rdi je 0x72f6a movq 0x90(%rsp), %rsi incq %rsi callq 0x1a890 leaq 0x10(%rsp), %r15 movq %r15, -0x10(%r15) movq 0x20(%rsp), %rsi movq 0x28(%rsp), %rdx addq %rsi, %rdx movq %rsp, %rdi callq 0x210fc movq (%rsp), %rax movq 0x8(%rsp), %rcx cmpb $0x2f, -0x1(%rax,%rcx) je 0x72fa9 movq %rsp, %rdi movl $0x2f, %esi callq 0x1a730 movq (%rsp), %rax leaq 0x70(%rsp), %r12 movq %r12, -0x10(%r12) cmpq %r15, %rax je 0x72fc9 movq %rax, 0x60(%rsp) movq 0x10(%rsp), %rax movq %rax, 0x70(%rsp) jmp 0x72fd2 movups (%r15), %xmm0 movups %xmm0, (%r12) movq 0x8(%rsp), %rax leaq 0x60(%rsp), %r14 movq %rax, 0x8(%r14) movq %r15, (%rsp) movq $0x0, 0x8(%rsp) movb $0x0, 0x10(%rsp) leaq 0x20(%rsp), %rdi movq %r14, %rsi callq 0x1aa50 movq (%r14), %rdi cmpq %r12, %rdi je 0x73014 movq 0x70(%rsp), %rsi incq %rsi callq 0x1a890 movq (%rsp), %rdi cmpq %r15, %rdi je 0x7302a movq 0x10(%rsp), %rsi incq %rsi callq 0x1a890 leaq 0x7abef(%rip), %rsi # 0xedc20 leaq 0x20(%rsp), %rdi callq 0x1b070 leaq 0x50(%rsp), %r14 movq %r14, -0x10(%r14) movq 0x20(%rsp), %rsi movq 0x28(%rsp), %rdx addq %rsi, %rdx leaq 0x40(%rsp), %rdi callq 0x210fc movq 0x40(%rsp), %rax movq 0x48(%rsp), %rcx cmpb $0x2f, -0x1(%rax,%rcx) je 0x73080 leaq 0x40(%rsp), %rdi movl $0x2f, %esi callq 0x1a730 movq 0x40(%rsp), %rax leaq 0x10(%rbx), %rcx movq %rcx, (%rbx) cmpq %r14, %rax je 0x7309a movq %rax, (%rbx) movq 0x50(%rsp), %rax movq %rax, 0x10(%rbx) jmp 0x730a1 movups (%r14), %xmm0 movups %xmm0, (%rcx) movq 0x48(%rsp), %rax movq %rax, 0x8(%rbx) movq %r14, 0x40(%rsp) movq $0x0, 0x48(%rsp) movb $0x0, 0x50(%rsp) movq 0x20(%rsp), %rdi cmpq %r13, %rdi je 0x730d4 movq 0x30(%rsp), %rsi incq %rsi callq 0x1a890 movq %rbx, %rax addq $0xa0, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq movq %rax, %rbx movq 0x80(%rsp), %rdi cmpq %r15, %rdi je 0x73138 movq 0x90(%rsp), %rsi jmp 0x7312b jmp 0x73135 movq %rax, %rbx movq (%rsp), %rdi cmpq %r15, %rdi je 0x73138 movq 0x10(%rsp), %rsi jmp 0x7312b jmp 0x73135 movq %rax, %rbx movq 0x40(%rsp), %rdi cmpq %r14, %rdi je 0x73138 movq 0x50(%rsp), %rsi incq %rsi callq 0x1a890 jmp 0x73138 movq %rax, %rbx movq 0x20(%rsp), %rdi cmpq %r13, %rdi je 0x7314f movq 0x30(%rsp), %rsi incq %rsi callq 0x1a890 movq %rbx, %rdi callq 0x1af20
_Z22fs_get_cache_directoryB5cxx11v: push r15 push r14 push r13 push r12 push rbx sub rsp, 0A0h mov rbx, rdi lea r13, [rsp+0C8h+var_98] mov [r13-10h], r13 lea rdx, aExampleSpecifi+1Fh; "" lea rdi, [rsp+0C8h+var_A8] mov rsi, rdx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rdi, aLlamaCache; "LLAMA_CACHE" call _getenv test rax, rax jz short loc_72E4D mov r14, rax lea r15, [rsp+0C8h+var_A8] mov r12, [r15+8] mov rdi, rax call _strlen mov rdi, r15 xor esi, esi mov rdx, r12 mov rcx, r14 mov r8, rax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong) jmp loc_7303B loc_72E4D: lea rdi, aXdgCacheHome; "XDG_CACHE_HOME" call _getenv test rax, rax jz short loc_72E8A mov r14, rax lea r15, [rsp+0C8h+var_A8] mov r12, [r15+8] mov rdi, rax call _strlen mov rdi, r15 xor esi, esi mov rdx, r12 mov rcx, r14 mov r8, rax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong) jmp loc_72F6A loc_72E8A: lea rdi, aXdgCacheHome+0Ah; "HOME" call _getenv mov r14, rax lea r15, [rsp+0C8h+var_38] mov [r15-10h], r15 lea rsi, aCache; "/.cache/" lea rdx, aCache+8; "" lea rdi, [rsp+0C8h+var_48] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) mov rdi, r14 call _strlen lea rdi, [rsp+0C8h+var_48] xor esi, esi xor edx, edx mov rcx, r14 mov r8, rax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong) lea r12, [rsp+0C8h+var_58] mov [r12-10h], r12 mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jz short loc_72F07 mov [rsp+0C8h+var_68], rdx mov rdx, [rcx] mov [rsp+0C8h+var_58], rdx jmp short loc_72F0F loc_72F07: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [r12], xmm0 loc_72F0F: mov rdx, [rax+8] lea r14, [rsp+0C8h+var_68] mov [r14+8], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 lea rdi, [rsp+0C8h+var_A8] mov rsi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&) mov rdi, [r14]; void * cmp rdi, r12 jz short loc_72F4D mov rsi, [rsp+0C8h+var_58] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_72F4D: mov rdi, [rsp+0C8h+var_48]; void * cmp rdi, r15 jz short loc_72F6A mov rsi, [rsp+0C8h+var_38] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_72F6A: lea r15, [rsp+0C8h+var_B8] mov [r15-10h], r15 mov rsi, [rsp+0C8h+var_A8] mov rdx, [rsp+0C8h+var_A0] add rdx, rsi mov rdi, rsp call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) mov rax, [rsp+0C8h+var_C8] mov rcx, [rsp+0C8h+var_C0] cmp byte ptr [rax+rcx-1], 2Fh ; '/' jz short loc_72FA9 mov rdi, rsp mov esi, 2Fh ; '/' call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov rax, [rsp+0C8h+var_C8] loc_72FA9: lea r12, [rsp+0C8h+var_58] mov [r12-10h], r12 cmp rax, r15 jz short loc_72FC9 mov [rsp+0C8h+var_68], rax mov rax, [rsp+0C8h+var_B8] mov [rsp+0C8h+var_58], rax jmp short loc_72FD2 loc_72FC9: movups xmm0, xmmword ptr [r15] movups xmmword ptr [r12], xmm0 loc_72FD2: mov rax, [rsp+0C8h+var_C0] lea r14, [rsp+0C8h+var_68] mov [r14+8], rax mov [rsp+0C8h+var_C8], r15 mov [rsp+0C8h+var_C0], 0 mov byte ptr [rsp+0C8h+var_B8], 0 lea rdi, [rsp+0C8h+var_A8] mov rsi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&) mov rdi, [r14]; void * cmp rdi, r12 jz short loc_73014 mov rsi, [rsp+0C8h+var_58] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_73014: mov rdi, [rsp+0C8h+var_C8]; void * cmp rdi, r15 jz short loc_7302A mov rsi, [rsp+0C8h+var_B8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_7302A: lea rsi, aLlamaCpp; "llama.cpp" lea rdi, [rsp+0C8h+var_A8] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) loc_7303B: lea r14, [rsp+0C8h+var_78] mov [r14-10h], r14 mov rsi, [rsp+0C8h+var_A8] mov rdx, [rsp+0C8h+var_A0] add rdx, rsi lea rdi, [rsp+0C8h+var_88] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) mov rax, [rsp+0C8h+var_88] mov rcx, [rsp+0C8h+var_80] cmp byte ptr [rax+rcx-1], 2Fh ; '/' jz short loc_73080 lea rdi, [rsp+0C8h+var_88] mov esi, 2Fh ; '/' call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov rax, [rsp+0C8h+var_88] loc_73080: lea rcx, [rbx+10h] mov [rbx], rcx cmp rax, r14 jz short loc_7309A mov [rbx], rax mov rax, [rsp+0C8h+var_78] mov [rbx+10h], rax jmp short loc_730A1 loc_7309A: movups xmm0, xmmword ptr [r14] movups xmmword ptr [rcx], xmm0 loc_730A1: mov rax, [rsp+0C8h+var_80] mov [rbx+8], rax mov [rsp+0C8h+var_88], r14 mov [rsp+0C8h+var_80], 0 mov byte ptr [rsp+0C8h+var_78], 0 mov rdi, [rsp+0C8h+var_A8]; void * cmp rdi, r13 jz short loc_730D4 mov rsi, [rsp+0C8h+var_98] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_730D4: mov rax, rbx add rsp, 0A0h pop rbx pop r12 pop r13 pop r14 pop r15 retn mov rbx, rax mov rdi, [rsp+arg_78] cmp rdi, r15 jz short loc_73138 mov rsi, [rsp+arg_88] jmp short loc_7312B jmp short loc_73135 mov rbx, rax mov rdi, [rsp+0] cmp rdi, r15 jz short loc_73138 mov rsi, [rsp+arg_8] jmp short loc_7312B jmp short loc_73135 mov rbx, rax mov rdi, [rsp+arg_38]; void * cmp rdi, r14 jz short loc_73138 mov rsi, [rsp+arg_48] loc_7312B: inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_73138 loc_73135: mov rbx, rax loc_73138: mov rdi, [rsp+arg_18]; void * cmp rdi, r13 jz short loc_7314F mov rsi, [rsp+arg_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_7314F: mov rdi, rbx call __Unwind_Resume
long long fs_get_cache_directory[abi:cxx11](long long a1) { long long v1; // rax long long v2; // r14 long long v3; // r12 long long v4; // rax long long v5; // rax long long v6; // r14 long long v7; // r12 long long v8; // rax long long v9; // r14 long long v10; // rax long long v11; // rax __int128 *v12; // rcx __int128 *v13; // rax __int128 *v14; // rax void *v16; // [rsp+0h] [rbp-C8h] BYREF long long v17; // [rsp+8h] [rbp-C0h] __int128 v18; // [rsp+10h] [rbp-B8h] BYREF void *v19; // [rsp+20h] [rbp-A8h] BYREF long long v20; // [rsp+28h] [rbp-A0h] _QWORD v21[2]; // [rsp+30h] [rbp-98h] BYREF __int128 *v22; // [rsp+40h] [rbp-88h] BYREF long long v23; // [rsp+48h] [rbp-80h] __int128 v24; // [rsp+50h] [rbp-78h] BYREF __int128 *v25; // [rsp+60h] [rbp-68h] BYREF long long v26; // [rsp+68h] [rbp-60h] __int128 v27; // [rsp+70h] [rbp-58h] BYREF void *v28[2]; // [rsp+80h] [rbp-48h] BYREF _QWORD v29[7]; // [rsp+90h] [rbp-38h] BYREF v19 = v21; std::string::_M_construct<char const*>((long long)&v19, "", (long long)""); v1 = getenv("LLAMA_CACHE"); if ( v1 ) { v2 = v1; v3 = v20; v4 = strlen(v1); std::string::_M_replace(&v19, 0LL, v3, v2, v4); } else { v5 = getenv("XDG_CACHE_HOME"); if ( v5 ) { v6 = v5; v7 = v20; v8 = strlen(v5); std::string::_M_replace(&v19, 0LL, v7, v6, v8); } else { v9 = getenv("HOME"); v28[0] = v29; std::string::_M_construct<char const*>((long long)v28, "/.cache/", (long long)""); v10 = strlen(v9); v11 = std::string::replace(v28, 0LL, 0LL, v9, v10); v25 = &v27; v12 = (__int128 *)(v11 + 16); if ( *(_QWORD *)v11 == v11 + 16 ) { v27 = *v12; } else { v25 = *(__int128 **)v11; *(_QWORD *)&v27 = *(_QWORD *)v12; } v26 = *(_QWORD *)(v11 + 8); *(_QWORD *)v11 = v12; *(_QWORD *)(v11 + 8) = 0LL; *(_BYTE *)(v11 + 16) = 0; std::string::operator=(&v19, &v25); if ( v25 != &v27 ) operator delete(v25, v27 + 1); if ( v28[0] != v29 ) operator delete(v28[0], v29[0] + 1LL); } v16 = &v18; std::string::_M_construct<char *>((long long)&v16, v19, (long long)v19 + v20); v13 = (__int128 *)v16; if ( *((char *)v16 + v17 - 1) != 47 ) { std::string::push_back(&v16, 47LL); v13 = (__int128 *)v16; } v25 = &v27; if ( v13 == &v18 ) { v27 = v18; } else { v25 = v13; *(_QWORD *)&v27 = v18; } v26 = v17; v16 = &v18; v17 = 0LL; LOBYTE(v18) = 0; std::string::operator=(&v19, &v25); if ( v25 != &v27 ) operator delete(v25, v27 + 1); if ( v16 != &v18 ) operator delete(v16, v18 + 1); std::string::append(&v19, "llama.cpp"); } v22 = &v24; std::string::_M_construct<char *>((long long)&v22, v19, (long long)v19 + v20); v14 = v22; if ( *((_BYTE *)v22 + v23 - 1) != 47 ) { std::string::push_back(&v22, 47LL); v14 = v22; } *(_QWORD *)a1 = a1 + 16; if ( v14 == &v24 ) { *(_OWORD *)(a1 + 16) = v24; } else { *(_QWORD *)a1 = v14; *(_QWORD *)(a1 + 16) = v24; } *(_QWORD *)(a1 + 8) = v23; v22 = &v24; v23 = 0LL; LOBYTE(v24) = 0; if ( v19 != v21 ) operator delete(v19, v21[0] + 1LL); return a1; }
fs_get_cache_directory[abi:cxx11]: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xa0 MOV RBX,RDI LEA R13,[RSP + 0x30] MOV qword ptr [R13 + -0x10],R13 LEA RDX,[0x1e5151] LEA RDI,[RSP + 0x20] MOV RSI,RDX CALL 0x00121540 LEA RDI,[0x1edbfc] CALL 0x0011aa30 TEST RAX,RAX JZ 0x00172e4d MOV R14,RAX LEA R15,[RSP + 0x20] MOV R12,qword ptr [R15 + 0x8] MOV RDI,RAX CALL 0x0011a3d0 LAB_00172e35: MOV RDI,R15 XOR ESI,ESI MOV RDX,R12 MOV RCX,R14 MOV R8,RAX CALL 0x0011ad10 JMP 0x0017303b LAB_00172e4d: LEA RDI,[0x1edc08] CALL 0x0011aa30 TEST RAX,RAX JZ 0x00172e8a MOV R14,RAX LEA R15,[RSP + 0x20] MOV R12,qword ptr [R15 + 0x8] MOV RDI,RAX CALL 0x0011a3d0 MOV RDI,R15 XOR ESI,ESI MOV RDX,R12 MOV RCX,R14 MOV R8,RAX CALL 0x0011ad10 JMP 0x00172f6a LAB_00172e8a: LEA RDI,[0x1edc12] CALL 0x0011aa30 MOV R14,RAX LEA R15,[RSP + 0x90] MOV qword ptr [R15 + -0x10],R15 LAB_00172ea5: LEA RSI,[0x1edc17] LEA RDX,[0x1edc1f] LEA RDI,[RSP + 0x80] CALL 0x00121540 MOV RDI,R14 CALL 0x0011a3d0 LAB_00172ec8: LEA RDI,[RSP + 0x80] XOR ESI,ESI XOR EDX,EDX MOV RCX,R14 MOV R8,RAX CALL 0x0011a980 LEA R12,[RSP + 0x70] MOV qword ptr [R12 + -0x10],R12 MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JZ 0x00172f07 MOV qword ptr [RSP + 0x60],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x70],RDX JMP 0x00172f0f LAB_00172f07: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [R12],XMM0 LAB_00172f0f: MOV RDX,qword ptr [RAX + 0x8] LEA R14,[RSP + 0x60] MOV qword ptr [R14 + 0x8],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 LEA RDI,[RSP + 0x20] MOV RSI,R14 CALL 0x0011aa50 MOV RDI,qword ptr [R14] CMP RDI,R12 JZ 0x00172f4d MOV RSI,qword ptr [RSP + 0x70] INC RSI CALL 0x0011a890 LAB_00172f4d: MOV RDI,qword ptr [RSP + 0x80] CMP RDI,R15 JZ 0x00172f6a MOV RSI,qword ptr [RSP + 0x90] INC RSI CALL 0x0011a890 LAB_00172f6a: LEA R15,[RSP + 0x10] MOV qword ptr [R15 + -0x10],R15 MOV RSI,qword ptr [RSP + 0x20] MOV RDX,qword ptr [RSP + 0x28] ADD RDX,RSI LAB_00172f80: MOV RDI,RSP CALL 0x001210fc MOV RAX,qword ptr [RSP] MOV RCX,qword ptr [RSP + 0x8] CMP byte ptr [RAX + RCX*0x1 + -0x1],0x2f JZ 0x00172fa9 LAB_00172f98: MOV RDI,RSP MOV ESI,0x2f CALL 0x0011a730 MOV RAX,qword ptr [RSP] LAB_00172fa9: LEA R12,[RSP + 0x70] MOV qword ptr [R12 + -0x10],R12 CMP RAX,R15 JZ 0x00172fc9 MOV qword ptr [RSP + 0x60],RAX MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x70],RAX JMP 0x00172fd2 LAB_00172fc9: MOVUPS XMM0,xmmword ptr [R15] MOVUPS xmmword ptr [R12],XMM0 LAB_00172fd2: MOV RAX,qword ptr [RSP + 0x8] LEA R14,[RSP + 0x60] MOV qword ptr [R14 + 0x8],RAX MOV qword ptr [RSP],R15 MOV qword ptr [RSP + 0x8],0x0 MOV byte ptr [RSP + 0x10],0x0 LEA RDI,[RSP + 0x20] MOV RSI,R14 CALL 0x0011aa50 MOV RDI,qword ptr [R14] CMP RDI,R12 JZ 0x00173014 MOV RSI,qword ptr [RSP + 0x70] INC RSI CALL 0x0011a890 LAB_00173014: MOV RDI,qword ptr [RSP] CMP RDI,R15 JZ 0x0017302a MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x0011a890 LAB_0017302a: LEA RSI,[0x1edc20] LEA RDI,[RSP + 0x20] CALL 0x0011b070 LAB_0017303b: LEA R14,[RSP + 0x50] MOV qword ptr [R14 + -0x10],R14 MOV RSI,qword ptr [RSP + 0x20] MOV RDX,qword ptr [RSP + 0x28] ADD RDX,RSI LEA RDI,[RSP + 0x40] CALL 0x001210fc MOV RAX,qword ptr [RSP + 0x40] MOV RCX,qword ptr [RSP + 0x48] CMP byte ptr [RAX + RCX*0x1 + -0x1],0x2f JZ 0x00173080 LAB_0017306c: LEA RDI,[RSP + 0x40] MOV ESI,0x2f CALL 0x0011a730 LAB_0017307b: MOV RAX,qword ptr [RSP + 0x40] LAB_00173080: LEA RCX,[RBX + 0x10] MOV qword ptr [RBX],RCX CMP RAX,R14 JZ 0x0017309a MOV qword ptr [RBX],RAX MOV RAX,qword ptr [RSP + 0x50] MOV qword ptr [RBX + 0x10],RAX JMP 0x001730a1 LAB_0017309a: MOVUPS XMM0,xmmword ptr [R14] MOVUPS xmmword ptr [RCX],XMM0 LAB_001730a1: MOV RAX,qword ptr [RSP + 0x48] MOV qword ptr [RBX + 0x8],RAX MOV qword ptr [RSP + 0x40],R14 MOV qword ptr [RSP + 0x48],0x0 MOV byte ptr [RSP + 0x50],0x0 MOV RDI,qword ptr [RSP + 0x20] CMP RDI,R13 JZ 0x001730d4 MOV RSI,qword ptr [RSP + 0x30] INC RSI CALL 0x0011a890 LAB_001730d4: MOV RAX,RBX ADD RSP,0xa0 POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* WARNING: Unknown calling convention -- yet parameter storage is locked */ /* fs_get_cache_directory[abi:cxx11]() */ void fs_get_cache_directory_abi_cxx11_(void) { char *pcVar1; char *pcVar2; long *plVar3; long *plVar4; long *in_RDI; long *local_c8; long local_c0; int1 local_b8; int7 uStack_b7; long lStack_b0; long *local_a8; char *local_a0; long local_98 [2]; int1 *local_88; long local_80; int1 local_78; int7 uStack_77; long lStack_70; long *local_68; long local_60; long local_58; long lStack_50; long *local_48 [2]; long local_38 [2]; local_a8 = local_98; std::__cxx11::string::_M_construct<char_const*>(&local_a8); pcVar1 = getenv("LLAMA_CACHE"); pcVar2 = local_a0; if (pcVar1 == (char *)0x0) { pcVar1 = getenv("XDG_CACHE_HOME"); pcVar2 = local_a0; if (pcVar1 == (char *)0x0) { pcVar2 = getenv("HOME"); /* try { // try from 00172ea5 to 00172ebf has its CatchHandler @ 00173102 */ local_48[0] = local_38; std::__cxx11::string::_M_construct<char_const*>(local_48,"/.cache/",""); strlen(pcVar2); /* try { // try from 00172ec8 to 00172ede has its CatchHandler @ 001730e8 */ plVar3 = (long *)std::__cxx11::string::replace((ulong)local_48,0,(char *)0x0,(ulong)pcVar2); plVar4 = plVar3 + 2; if ((long *)*plVar3 == plVar4) { local_58 = *plVar4; lStack_50 = plVar3[3]; local_68 = &local_58; } else { local_58 = *plVar4; local_68 = (long *)*plVar3; } local_60 = plVar3[1]; *plVar3 = (long)plVar4; plVar3[1] = 0; *(int1 *)(plVar3 + 2) = 0; std::__cxx11::string::operator=((string *)&local_a8,(string *)&local_68); if (local_68 != &local_58) { operator_delete(local_68,local_58 + 1); } if (local_48[0] != local_38) { operator_delete(local_48[0],local_38[0] + 1); } } else { strlen(pcVar1); std::__cxx11::string::_M_replace((ulong)&local_a8,0,pcVar2,(ulong)pcVar1); } local_c8 = (long *)&local_b8; /* try { // try from 00172f80 to 00172f87 has its CatchHandler @ 00173117 */ std::__cxx11::string::_M_construct<char*>(&local_c8,local_a8,local_a0 + (long)local_a8); if (*(char *)((long)local_c8 + local_c0 + -1) != '/') { /* try { // try from 00172f98 to 00172fa4 has its CatchHandler @ 00173104 */ std::__cxx11::string::push_back((char)&local_c8); } local_68 = local_c8; if (local_c8 == (long *)&local_b8) { lStack_50 = lStack_b0; local_68 = &local_58; } local_58 = CONCAT71(uStack_b7,local_b8); local_60 = local_c0; local_c0 = 0; local_b8 = 0; local_c8 = (long *)&local_b8; std::__cxx11::string::operator=((string *)&local_a8,(string *)&local_68); if (local_68 != &local_58) { operator_delete(local_68,local_58 + 1); } if (local_c8 != (long *)&local_b8) { operator_delete(local_c8,CONCAT71(uStack_b7,local_b8) + 1); } /* try { // try from 0017302a to 0017305a has its CatchHandler @ 00173135 */ std::__cxx11::string::append((char *)&local_a8); } else { strlen(pcVar1); /* try { // try from 00172e35 to 00172e84 has its CatchHandler @ 00173135 */ std::__cxx11::string::_M_replace((ulong)&local_a8,0,pcVar2,(ulong)pcVar1); } local_88 = &local_78; std::__cxx11::string::_M_construct<char*>(&local_88,local_a8,local_a0 + (long)local_a8); if (local_88[local_80 + -1] != '/') { /* try { // try from 0017306c to 0017307a has its CatchHandler @ 00173119 */ std::__cxx11::string::push_back((char)&local_88); } *in_RDI = (long)(in_RDI + 2); if (local_88 == &local_78) { in_RDI[2] = CONCAT71(uStack_77,local_78); in_RDI[3] = lStack_70; } else { *in_RDI = (long)local_88; in_RDI[2] = CONCAT71(uStack_77,local_78); } in_RDI[1] = local_80; local_80 = 0; local_78 = 0; if (local_a8 != local_98) { local_88 = &local_78; operator_delete(local_a8,local_98[0] + 1); } return; }
47,701
ReadWriteQueue::writeShotToFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int, unsigned long, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
666mxvbee[P]BattleShip/lib/ReadWriteQueue/ReadWriteQueue.cpp
void ReadWriteQueue::writeShotToFile(const std::string& filename, int player, uint64_t x, uint64_t y, const std::string& result) { std::lock_guard<std::mutex> lock(queue_mutex); std::ofstream out(filename, std::ios::app); if (!out.is_open()) { std::cerr << "ReadWriteQueue: Unable to open " << filename << " for appending." << std::endl; return; } out << "Player " << player << " shot at (" << x << ", " << y << "): " << result << "\n"; out.close(); }
O0
cpp
ReadWriteQueue::writeShotToFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int, unsigned long, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %rbp movq %rsp, %rbp subq $0x2b0, %rsp # imm = 0x2B0 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq %r9, -0x30(%rbp) movq -0x8(%rbp), %rsi leaq -0x38(%rbp), %rdi callq 0xb200 movq -0x10(%rbp), %rsi leaq -0x238(%rbp), %rdi movl $0x1, %edx callq 0x76c0 jmp 0x37d76 leaq -0x238(%rbp), %rdi callq 0x7300 movb %al, -0x249(%rbp) jmp 0x37d8a movb -0x249(%rbp), %al testb $0x1, %al jne 0x37e49 jmp 0x37d9a movq 0x2623f(%rip), %rdi # 0x5dfe0 leaq 0x95b3(%rip), %rsi # 0x4135b callq 0x7380 movq %rax, -0x258(%rbp) jmp 0x37db6 movq -0x258(%rbp), %rdi movq -0x10(%rbp), %rsi callq 0x7350 movq %rax, -0x260(%rbp) jmp 0x37dcf movq -0x260(%rbp), %rdi leaq 0x95ac(%rip), %rsi # 0x41389 callq 0x7380 movq %rax, -0x268(%rbp) jmp 0x37deb movq -0x268(%rbp), %rdi movq 0x26167(%rip), %rsi # 0x5df60 callq 0x73c0 jmp 0x37e00 movl $0x1, -0x248(%rbp) jmp 0x37f49 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x240(%rbp) movl %eax, -0x244(%rbp) jmp 0x37f67 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x240(%rbp) movl %eax, -0x244(%rbp) leaq -0x238(%rbp), %rdi callq 0x7530 jmp 0x37f67 leaq 0x9549(%rip), %rsi # 0x41399 leaq -0x238(%rbp), %rdi callq 0x7380 movq %rax, -0x270(%rbp) jmp 0x37e65 movq -0x270(%rbp), %rdi movl -0x14(%rbp), %esi callq 0x7620 movq %rax, -0x278(%rbp) jmp 0x37e7d movq -0x278(%rbp), %rdi leaq 0x9516(%rip), %rsi # 0x413a1 callq 0x7380 movq %rax, -0x280(%rbp) jmp 0x37e99 movq -0x280(%rbp), %rdi movq -0x20(%rbp), %rsi callq 0x70a0 movq %rax, -0x288(%rbp) jmp 0x37eb2 movq -0x288(%rbp), %rdi leaq 0x94ec(%rip), %rsi # 0x413ac callq 0x7380 movq %rax, -0x290(%rbp) jmp 0x37ece movq -0x290(%rbp), %rdi movq -0x28(%rbp), %rsi callq 0x70a0 movq %rax, -0x298(%rbp) jmp 0x37ee7 movq -0x298(%rbp), %rdi leaq 0x842e(%rip), %rsi # 0x40323 callq 0x7380 movq %rax, -0x2a0(%rbp) jmp 0x37f03 movq -0x2a0(%rbp), %rdi movq -0x30(%rbp), %rsi callq 0x7350 movq %rax, -0x2a8(%rbp) jmp 0x37f1c movq -0x2a8(%rbp), %rdi leaq 0x9a53(%rip), %rsi # 0x4197d callq 0x7380 jmp 0x37f31 leaq -0x238(%rbp), %rdi callq 0x74d0 jmp 0x37f3f movl $0x0, -0x248(%rbp) leaq -0x238(%rbp), %rdi callq 0x7530 leaq -0x38(%rbp), %rdi callq 0xb290 addq $0x2b0, %rsp # imm = 0x2B0 popq %rbp retq leaq -0x38(%rbp), %rdi callq 0xb290 movq -0x240(%rbp), %rdi callq 0x7640 nopl (%rax)
_ZN14ReadWriteQueue15writeShotToFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEimmS7_: push rbp mov rbp, rsp sub rsp, 2B0h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov [rbp+var_30], r9 mov rsi, [rbp+var_8] lea rdi, [rbp+var_38] call _ZNSt10lock_guardISt5mutexEC2ERS0_; std::lock_guard<std::mutex>::lock_guard(std::mutex&) mov rsi, [rbp+var_10] lea rdi, [rbp+var_238] mov edx, 1 call __ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1ERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode; std::ofstream::basic_ofstream(std::string const&,std::_Ios_Openmode) jmp short $+2 loc_37D76: lea rdi, [rbp+var_238] call __ZNSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv; std::ofstream::is_open(void) mov [rbp+var_249], al jmp short $+2 loc_37D8A: mov al, [rbp+var_249] test al, 1 jnz loc_37E49 jmp short $+2 loc_37D9A: mov rdi, cs:_ZSt4cerr_ptr lea rsi, aReadwritequeue; "ReadWriteQueue: Unable to open " call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov [rbp+var_258], rax jmp short $+2 loc_37DB6: mov rdi, [rbp+var_258] mov rsi, [rbp+var_10] call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&) mov [rbp+var_260], rax jmp short $+2 loc_37DCF: mov rdi, [rbp+var_260] lea rsi, aForAppending; " for appending." call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov [rbp+var_268], rax jmp short $+2 loc_37DEB: mov rdi, [rbp+var_268] mov rsi, cs:_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6__ptr call __ZNSolsEPFRSoS_E; std::ostream::operator<<(std::ostream & (*)(std::ostream &)) jmp short $+2 loc_37E00: mov [rbp+var_248], 1 jmp loc_37F49 mov rcx, rax mov eax, edx mov [rbp+var_240], rcx mov [rbp+var_244], eax jmp loc_37F67 mov rcx, rax mov eax, edx mov [rbp+var_240], rcx mov [rbp+var_244], eax lea rdi, [rbp+var_238] call __ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev; std::ofstream::~ofstream() jmp loc_37F67 loc_37E49: lea rsi, aPlayer; "Player " lea rdi, [rbp+var_238] call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov [rbp+var_270], rax jmp short $+2 loc_37E65: mov rdi, [rbp+var_270] mov esi, [rbp+var_14] call __ZNSolsEi; std::ostream::operator<<(int) mov [rbp+var_278], rax jmp short $+2 loc_37E7D: mov rdi, [rbp+var_278] lea rsi, aShotAt; " shot at (" call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov [rbp+var_280], rax jmp short $+2 loc_37E99: mov rdi, [rbp+var_280] mov rsi, [rbp+var_20] call __ZNSolsEm; std::ostream::operator<<(ulong) mov [rbp+var_288], rax jmp short $+2 loc_37EB2: mov rdi, [rbp+var_288] lea rsi, asc_413AC; ", " call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov [rbp+var_290], rax jmp short $+2 loc_37ECE: mov rdi, [rbp+var_290] mov rsi, [rbp+var_28] call __ZNSolsEm; std::ostream::operator<<(ulong) mov [rbp+var_298], rax jmp short $+2 loc_37EE7: mov rdi, [rbp+var_298] lea rsi, aSettingsStartg_1+30h; "): " call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov [rbp+var_2A0], rax jmp short $+2 loc_37F03: mov rdi, [rbp+var_2A0] mov rsi, [rbp+var_30] call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&) mov [rbp+var_2A8], rax jmp short $+2 loc_37F1C: mov rdi, [rbp+var_2A8] lea rsi, aMasterSlaveShi+28h; "\n" call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) jmp short $+2 loc_37F31: lea rdi, [rbp+var_238] call __ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv; std::ofstream::close(void) jmp short $+2 loc_37F3F: mov [rbp+var_248], 0 loc_37F49: lea rdi, [rbp+var_238] call __ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev; std::ofstream::~ofstream() lea rdi, [rbp+var_38] call _ZNSt10lock_guardISt5mutexED2Ev; std::lock_guard<std::mutex>::~lock_guard() add rsp, 2B0h pop rbp retn loc_37F67: lea rdi, [rbp+var_38] call _ZNSt10lock_guardISt5mutexED2Ev; std::lock_guard<std::mutex>::~lock_guard() mov rdi, [rbp+var_240] call __Unwind_Resume
long long ReadWriteQueue::writeShotToFile( std::mutex *a1, long long a2, unsigned int a3, long long a4, long long a5, long long a6) { long long v7; // [rsp+8h] [rbp-2A8h] long long v8; // [rsp+10h] [rbp-2A0h] long long v9; // [rsp+18h] [rbp-298h] long long v10; // [rsp+20h] [rbp-290h] long long v11; // [rsp+28h] [rbp-288h] long long v12; // [rsp+30h] [rbp-280h] long long v13; // [rsp+38h] [rbp-278h] long long v14; // [rsp+40h] [rbp-270h] long long v15; // [rsp+48h] [rbp-268h] long long v16; // [rsp+50h] [rbp-260h] long long v17; // [rsp+58h] [rbp-258h] _BYTE v18[512]; // [rsp+78h] [rbp-238h] BYREF std::mutex *v19; // [rsp+278h] [rbp-38h] BYREF long long v20; // [rsp+280h] [rbp-30h] long long v21; // [rsp+288h] [rbp-28h] long long v22; // [rsp+290h] [rbp-20h] unsigned int v23; // [rsp+29Ch] [rbp-14h] long long v24; // [rsp+2A0h] [rbp-10h] std::mutex *v25; // [rsp+2A8h] [rbp-8h] v25 = a1; v24 = a2; v23 = a3; v22 = a4; v21 = a5; v20 = a6; std::lock_guard<std::mutex>::lock_guard(&v19, a1); std::ofstream::basic_ofstream(v18, v24, 1LL); if ( (std::ofstream::is_open(v18) & 1) != 0 ) { v14 = std::operator<<<std::char_traits<char>>(v18, "Player "); v13 = std::ostream::operator<<(v14, v23); v12 = std::operator<<<std::char_traits<char>>(v13, " shot at ("); v11 = std::ostream::operator<<(v12, v22); v10 = std::operator<<<std::char_traits<char>>(v11, ", "); v9 = std::ostream::operator<<(v10, v21); v8 = std::operator<<<std::char_traits<char>>(v9, "): "); v7 = std::operator<<<char>(v8, v20); std::operator<<<std::char_traits<char>>(v7, "\n"); std::ofstream::close(v18); } else { v17 = std::operator<<<std::char_traits<char>>(&std::cerr, "ReadWriteQueue: Unable to open "); v16 = std::operator<<<char>(v17, v24); v15 = std::operator<<<std::char_traits<char>>(v16, " for appending."); std::ostream::operator<<(v15, &std::endl<char,std::char_traits<char>>); } std::ofstream::~ofstream(v18); return std::lock_guard<std::mutex>::~lock_guard(&v19); }
writeShotToFile: PUSH RBP MOV RBP,RSP SUB RSP,0x2b0 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV qword ptr [RBP + -0x30],R9 MOV RSI,qword ptr [RBP + -0x8] LEA RDI,[RBP + -0x38] CALL 0x0010b200 MOV RSI,qword ptr [RBP + -0x10] LAB_00137d63: LEA RDI,[RBP + -0x238] MOV EDX,0x1 CALL 0x001076c0 JMP 0x00137d76 LAB_00137d76: LEA RDI,[RBP + -0x238] CALL 0x00107300 MOV byte ptr [RBP + -0x249],AL JMP 0x00137d8a LAB_00137d8a: MOV AL,byte ptr [RBP + -0x249] TEST AL,0x1 JNZ 0x00137e49 JMP 0x00137d9a LAB_00137d9a: MOV RDI,qword ptr [0x0015dfe0] LEA RSI,[0x14135b] CALL 0x00107380 MOV qword ptr [RBP + -0x258],RAX JMP 0x00137db6 LAB_00137db6: MOV RDI,qword ptr [RBP + -0x258] MOV RSI,qword ptr [RBP + -0x10] CALL 0x00107350 MOV qword ptr [RBP + -0x260],RAX JMP 0x00137dcf LAB_00137dcf: MOV RDI,qword ptr [RBP + -0x260] LEA RSI,[0x141389] CALL 0x00107380 MOV qword ptr [RBP + -0x268],RAX JMP 0x00137deb LAB_00137deb: MOV RDI,qword ptr [RBP + -0x268] MOV RSI,qword ptr [0x0015df60] CALL 0x001073c0 JMP 0x00137e00 LAB_00137e00: MOV dword ptr [RBP + -0x248],0x1 JMP 0x00137f49 LAB_00137e49: LEA RSI,[0x141399] LEA RDI,[RBP + -0x238] CALL 0x00107380 MOV qword ptr [RBP + -0x270],RAX JMP 0x00137e65 LAB_00137e65: MOV RDI,qword ptr [RBP + -0x270] MOV ESI,dword ptr [RBP + -0x14] CALL 0x00107620 MOV qword ptr [RBP + -0x278],RAX JMP 0x00137e7d LAB_00137e7d: MOV RDI,qword ptr [RBP + -0x278] LEA RSI,[0x1413a1] CALL 0x00107380 MOV qword ptr [RBP + -0x280],RAX JMP 0x00137e99 LAB_00137e99: MOV RDI,qword ptr [RBP + -0x280] MOV RSI,qword ptr [RBP + -0x20] CALL 0x001070a0 MOV qword ptr [RBP + -0x288],RAX JMP 0x00137eb2 LAB_00137eb2: MOV RDI,qword ptr [RBP + -0x288] LEA RSI,[0x1413ac] CALL 0x00107380 MOV qword ptr [RBP + -0x290],RAX JMP 0x00137ece LAB_00137ece: MOV RDI,qword ptr [RBP + -0x290] MOV RSI,qword ptr [RBP + -0x28] CALL 0x001070a0 MOV qword ptr [RBP + -0x298],RAX JMP 0x00137ee7 LAB_00137ee7: MOV RDI,qword ptr [RBP + -0x298] LEA RSI,[0x140323] CALL 0x00107380 MOV qword ptr [RBP + -0x2a0],RAX JMP 0x00137f03 LAB_00137f03: MOV RDI,qword ptr [RBP + -0x2a0] MOV RSI,qword ptr [RBP + -0x30] CALL 0x00107350 MOV qword ptr [RBP + -0x2a8],RAX JMP 0x00137f1c LAB_00137f1c: MOV RDI,qword ptr [RBP + -0x2a8] LEA RSI,[0x14197d] CALL 0x00107380 JMP 0x00137f31 LAB_00137f31: LEA RDI,[RBP + -0x238] CALL 0x001074d0 LAB_00137f3d: JMP 0x00137f3f LAB_00137f3f: MOV dword ptr [RBP + -0x248],0x0 LAB_00137f49: LEA RDI,[RBP + -0x238] CALL 0x00107530 LEA RDI,[RBP + -0x38] CALL 0x0010b290 ADD RSP,0x2b0 POP RBP RET
/* ReadWriteQueue::writeShotToFile(std::__cxx11::string const&, int, unsigned long, unsigned long, std::__cxx11::string const&) */ void __thiscall ReadWriteQueue::writeShotToFile (ReadWriteQueue *this,string *param_1,int param_2,ulong param_3,ulong param_4, string *param_5) { byte bVar1; ostream *poVar2; ofstream local_240 [512]; lock_guard<std::mutex> local_40 [8]; string *local_38; ulong local_30; ulong local_28; int local_1c; string *local_18; ReadWriteQueue *local_10; local_38 = param_5; local_30 = param_4; local_28 = param_3; local_1c = param_2; local_18 = param_1; local_10 = this; std::lock_guard<std::mutex>::lock_guard(local_40,(mutex *)this); /* try { // try from 00137d63 to 00137d73 has its CatchHandler @ 00137e0f */ std::ofstream::ofstream(local_240,local_18,1); /* try { // try from 00137d76 to 00137f3c has its CatchHandler @ 00137e26 */ bVar1 = std::ofstream::is_open(); if ((bVar1 & 1) == 0) { poVar2 = std::operator<<((ostream *)PTR_cerr_0015dfe0,"ReadWriteQueue: Unable to open "); poVar2 = std::operator<<(poVar2,local_18); poVar2 = std::operator<<(poVar2," for appending."); std::ostream::operator<< (poVar2,(_func_ostream_ptr_ostream_ptr *)PTR_endl<char,std_char_traits<char>>_0015df60 ); } else { poVar2 = std::operator<<((ostream *)local_240,"Player "); poVar2 = (ostream *)std::ostream::operator<<(poVar2,local_1c); poVar2 = std::operator<<(poVar2," shot at ("); poVar2 = (ostream *)std::ostream::operator<<(poVar2,local_28); poVar2 = std::operator<<(poVar2,", "); poVar2 = (ostream *)std::ostream::operator<<(poVar2,local_30); poVar2 = std::operator<<(poVar2,"): "); poVar2 = std::operator<<(poVar2,local_38); std::operator<<(poVar2,"\n"); std::ofstream::close(); } std::ofstream::~ofstream(local_240); std::lock_guard<std::mutex>::~lock_guard(local_40); return; }
47,702
my_thread_init_common_mutex
eloqsql/mysys/my_thr_init.c
static void my_thread_init_common_mutex(void) { mysql_mutex_init(key_THR_LOCK_open, &THR_LOCK_open, MY_MUTEX_INIT_FAST); mysql_mutex_init(key_THR_LOCK_lock, &THR_LOCK_lock, MY_MUTEX_INIT_FAST); mysql_mutex_init(key_THR_LOCK_myisam, &THR_LOCK_myisam, MY_MUTEX_INIT_SLOW); mysql_mutex_init(key_THR_LOCK_myisam_mmap, &THR_LOCK_myisam_mmap, MY_MUTEX_INIT_FAST); mysql_mutex_init(key_THR_LOCK_heap, &THR_LOCK_heap, MY_MUTEX_INIT_FAST); mysql_mutex_init(key_THR_LOCK_net, &THR_LOCK_net, MY_MUTEX_INIT_FAST); mysql_mutex_init(key_THR_LOCK_charset, &THR_LOCK_charset, MY_MUTEX_INIT_FAST); #if !defined(HAVE_LOCALTIME_R) || !defined(HAVE_GMTIME_R) mysql_mutex_init(key_LOCK_localtime_r, &LOCK_localtime_r, MY_MUTEX_INIT_SLOW); #endif }
O0
c
my_thread_init_common_mutex: pushq %rbp movq %rsp, %rbp leaq 0x38026d(%rip), %rax # 0x40cb78 movl (%rax), %edi leaq 0x380c4c(%rip), %rsi # 0x40d560 leaq 0x380f15(%rip), %rdx # 0x40d830 callq 0x8d610 leaq 0x38023d(%rip), %rax # 0x40cb64 movl (%rax), %edi leaq 0x380c78(%rip), %rsi # 0x40d5a8 leaq 0x380ef9(%rip), %rdx # 0x40d830 callq 0x8d610 leaq 0x38022d(%rip), %rax # 0x40cb70 movl (%rax), %edi leaq 0x380ca4(%rip), %rsi # 0x40d5f0 xorl %eax, %eax movl %eax, %edx callq 0x8d610 leaq 0x380228(%rip), %rax # 0x40cb84 movl (%rax), %edi leaq 0x380cd3(%rip), %rsi # 0x40d638 leaq 0x380ec4(%rip), %rdx # 0x40d830 callq 0x8d610 leaq 0x3801e8(%rip), %rax # 0x40cb60 movl (%rax), %edi leaq 0x380cff(%rip), %rsi # 0x40d680 leaq 0x380ea8(%rip), %rdx # 0x40d830 callq 0x8d610 leaq 0x3801e0(%rip), %rax # 0x40cb74 movl (%rax), %edi leaq 0x380d2b(%rip), %rsi # 0x40d6c8 leaq 0x380e8c(%rip), %rdx # 0x40d830 callq 0x8d610 leaq 0x3801ac(%rip), %rax # 0x40cb5c movl (%rax), %edi leaq 0x380d57(%rip), %rsi # 0x40d710 leaq 0x380e70(%rip), %rdx # 0x40d830 callq 0x8d610 popq %rbp retq nopw (%rax,%rax)
my_thread_init_common_mutex: push rbp mov rbp, rsp lea rax, key_THR_LOCK_open mov edi, [rax] lea rsi, THR_LOCK_open lea rdx, my_fast_mutexattr call inline_mysql_mutex_init lea rax, key_THR_LOCK_lock mov edi, [rax] lea rsi, THR_LOCK_lock lea rdx, my_fast_mutexattr call inline_mysql_mutex_init lea rax, key_THR_LOCK_myisam mov edi, [rax] lea rsi, THR_LOCK_myisam xor eax, eax mov edx, eax call inline_mysql_mutex_init lea rax, key_THR_LOCK_myisam_mmap mov edi, [rax] lea rsi, THR_LOCK_myisam_mmap lea rdx, my_fast_mutexattr call inline_mysql_mutex_init lea rax, key_THR_LOCK_heap mov edi, [rax] lea rsi, THR_LOCK_heap lea rdx, my_fast_mutexattr call inline_mysql_mutex_init lea rax, key_THR_LOCK_net mov edi, [rax] lea rsi, THR_LOCK_net lea rdx, my_fast_mutexattr call inline_mysql_mutex_init lea rax, key_THR_LOCK_charset mov edi, [rax] lea rsi, THR_LOCK_charset lea rdx, my_fast_mutexattr call inline_mysql_mutex_init pop rbp retn
long long my_thread_init_common_mutex() { inline_mysql_mutex_init(key_THR_LOCK_open, &THR_LOCK_open, &my_fast_mutexattr); inline_mysql_mutex_init(key_THR_LOCK_lock, &THR_LOCK_lock, &my_fast_mutexattr); inline_mysql_mutex_init(key_THR_LOCK_myisam, &THR_LOCK_myisam, 0LL); inline_mysql_mutex_init(key_THR_LOCK_myisam_mmap, &THR_LOCK_myisam_mmap, &my_fast_mutexattr); inline_mysql_mutex_init(key_THR_LOCK_heap, &THR_LOCK_heap, &my_fast_mutexattr); inline_mysql_mutex_init(key_THR_LOCK_net, &THR_LOCK_net, &my_fast_mutexattr); return inline_mysql_mutex_init(key_THR_LOCK_charset, &THR_LOCK_charset, &my_fast_mutexattr); }
my_thread_init_common_mutex: PUSH RBP MOV RBP,RSP LEA RAX,[0x50cb78] MOV EDI,dword ptr [RAX] LEA RSI,[0x50d560] LEA RDX,[0x50d830] CALL 0x0018d610 LEA RAX,[0x50cb64] MOV EDI,dword ptr [RAX] LEA RSI,[0x50d5a8] LEA RDX,[0x50d830] CALL 0x0018d610 LEA RAX,[0x50cb70] MOV EDI,dword ptr [RAX] LEA RSI,[0x50d5f0] XOR EAX,EAX MOV EDX,EAX CALL 0x0018d610 LEA RAX,[0x50cb84] MOV EDI,dword ptr [RAX] LEA RSI,[0x50d638] LEA RDX,[0x50d830] CALL 0x0018d610 LEA RAX,[0x50cb60] MOV EDI,dword ptr [RAX] LEA RSI,[0x50d680] LEA RDX,[0x50d830] CALL 0x0018d610 LEA RAX,[0x50cb74] MOV EDI,dword ptr [RAX] LEA RSI,[0x50d6c8] LEA RDX,[0x50d830] CALL 0x0018d610 LEA RAX,[0x50cb5c] MOV EDI,dword ptr [RAX] LEA RSI,[0x50d710] LEA RDX,[0x50d830] CALL 0x0018d610 POP RBP RET
void my_thread_init_common_mutex(void) { inline_mysql_mutex_init(key_THR_LOCK_open,THR_LOCK_open,&my_fast_mutexattr); inline_mysql_mutex_init(key_THR_LOCK_lock,THR_LOCK_lock,&my_fast_mutexattr); inline_mysql_mutex_init(key_THR_LOCK_myisam,THR_LOCK_myisam,0); inline_mysql_mutex_init(key_THR_LOCK_myisam_mmap,THR_LOCK_myisam_mmap,&my_fast_mutexattr); inline_mysql_mutex_init(key_THR_LOCK_heap,THR_LOCK_heap,&my_fast_mutexattr); inline_mysql_mutex_init(key_THR_LOCK_net,THR_LOCK_net,&my_fast_mutexattr); inline_mysql_mutex_init(key_THR_LOCK_charset,THR_LOCK_charset,&my_fast_mutexattr); return; }
47,703
ma_bitmap_find_new_place
eloqsql/storage/maria/ma_bitmap.c
my_bool _ma_bitmap_find_new_place(MARIA_HA *info, MARIA_ROW *row, pgcache_page_no_t page, uint free_size, MARIA_BITMAP_BLOCKS *blocks) { MARIA_SHARE *share= info->s; my_bool res= 1; uint position; uint head_length, row_length, rest_length, extents_length; ulonglong bitmap_page; DBUG_ENTER("_ma_bitmap_find_new_place"); blocks->count= 0; blocks->tail_page_skipped= blocks->page_skipped= 0; row->extents_count= 0; info->bitmap_blocks.elements= ELEMENTS_RESERVED_FOR_MAIN_PART; mysql_mutex_lock(&share->bitmap.bitmap_lock); /* First allocate all blobs (so that we can find out the needed size for the main block. */ if (row->blob_length && allocate_blobs(info, row)) goto abort; /* Switch bitmap to current head page */ bitmap_page= page - page % share->bitmap.pages_covered; if (share->bitmap.page != bitmap_page && _ma_change_bitmap_page(info, &share->bitmap, bitmap_page)) goto abort; extents_length= row->extents_count * ROW_EXTENT_SIZE; if ((head_length= (row->head_length + extents_length + 3)) <= free_size) { /* Main row part fits into one page */ position= ELEMENTS_RESERVED_FOR_MAIN_PART - 1; use_head(info, page, head_length, position); row->space_on_head_page= head_length; goto end; } /* Allocate enough space */ head_length+= ELEMENTS_RESERVED_FOR_MAIN_PART * ROW_EXTENT_SIZE; /* The first segment size is stored in 'row_length' We have to add ELEMENTS_RESERVED_FOR_MAIN_PART here as the extent information may be up to this size when the header splits. */ row_length= find_where_to_split_row(share, row, row->extents_count + ELEMENTS_RESERVED_FOR_MAIN_PART-1, free_size); position= 0; rest_length= head_length - row_length; if (rest_length <= MAX_TAIL_SIZE(share->block_size)) position= ELEMENTS_RESERVED_FOR_MAIN_PART -2; /* Only head and tail */ use_head(info, page, row_length, position); row->space_on_head_page= row_length; if (write_rest_of_head(info, position, rest_length)) goto abort; end: blocks->block= dynamic_element(&info->bitmap_blocks, position, MARIA_BITMAP_BLOCK*); blocks->block->sub_blocks= ELEMENTS_RESERVED_FOR_MAIN_PART - position; /* First block's page_count is for all blocks */ blocks->count= info->bitmap_blocks.elements - position; res= 0; abort: mysql_mutex_unlock(&share->bitmap.bitmap_lock); DBUG_RETURN(res); }
O0
c
ma_bitmap_find_new_place: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movq %r8, -0x28(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax movq %rax, -0x30(%rbp) movb $0x1, -0x31(%rbp) movq -0x28(%rbp), %rax movl $0x0, 0x8(%rax) movq -0x28(%rbp), %rax movb $0x0, 0xd(%rax) movq -0x28(%rbp), %rax movb $0x0, 0xc(%rax) movq -0x10(%rbp), %rax movl $0x0, 0xac(%rax) movq -0x8(%rbp), %rax movl $0x4, 0x2c8(%rax) movq -0x30(%rbp), %rdi addq $0xa10, %rdi # imm = 0xA10 addq $0x88, %rdi leaq 0xf6efc(%rip), %rsi # 0x159466 movl $0x8b1, %edx # imm = 0x8B1 callq 0x61210 movq -0x10(%rbp), %rax cmpq $0x0, 0x88(%rax) je 0x6259c movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi callq 0x62200 movsbl %al, %eax cmpl $0x0, %eax je 0x6259c jmp 0x6271f movq -0x18(%rbp), %rax movq %rax, -0x58(%rbp) movq -0x18(%rbp), %rax movq -0x30(%rbp), %rcx xorl %edx, %edx divq 0xb48(%rcx) movq -0x58(%rbp), %rax subq %rdx, %rax movq %rax, -0x50(%rbp) movq -0x30(%rbp), %rax movq 0xa20(%rax), %rax cmpq -0x50(%rbp), %rax je 0x625f6 movq -0x8(%rbp), %rdi movq -0x30(%rbp), %rsi addq $0xa10, %rsi # imm = 0xA10 movq -0x50(%rbp), %rdx callq 0x62750 movsbl %al, %eax cmpl $0x0, %eax je 0x625f6 jmp 0x6271f movq -0x10(%rbp), %rax imull $0x7, 0xac(%rax), %eax movl %eax, -0x48(%rbp) movq -0x10(%rbp), %rax movl 0xa0(%rax), %eax addl -0x48(%rbp), %eax addl $0x3, %eax movl %eax, -0x3c(%rbp) cmpl -0x1c(%rbp), %eax ja 0x62648 movl $0x3, -0x38(%rbp) movq -0x8(%rbp), %rdi movq -0x18(%rbp), %rsi movl -0x3c(%rbp), %edx movl -0x38(%rbp), %ecx callq 0x627d0 movl -0x3c(%rbp), %ecx movq -0x10(%rbp), %rax movl %ecx, 0xb8(%rax) jmp 0x626d9 movl -0x3c(%rbp), %eax addl $0x1c, %eax movl %eax, -0x3c(%rbp) movq -0x30(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x10(%rbp), %rax movl 0xac(%rax), %edx addl $0x4, %edx subl $0x1, %edx movl -0x1c(%rbp), %ecx callq 0x622b0 movl %eax, -0x40(%rbp) movl $0x0, -0x38(%rbp) movl -0x3c(%rbp), %eax subl -0x40(%rbp), %eax movl %eax, -0x44(%rbp) movl -0x44(%rbp), %eax movq -0x30(%rbp), %rcx imull $0x3, 0x7bc(%rcx), %ecx shrl $0x2, %ecx cmpl %ecx, %eax ja 0x626a0 movl $0x2, -0x38(%rbp) movq -0x8(%rbp), %rdi movq -0x18(%rbp), %rsi movl -0x40(%rbp), %edx movl -0x38(%rbp), %ecx callq 0x627d0 movl -0x40(%rbp), %ecx movq -0x10(%rbp), %rax movl %ecx, 0xb8(%rax) movq -0x8(%rbp), %rdi movl -0x38(%rbp), %esi movl -0x44(%rbp), %eax movl %eax, %edx callq 0x623b0 cmpb $0x0, %al je 0x626d7 jmp 0x6271f jmp 0x626d9 movq -0x8(%rbp), %rax movq 0x2c0(%rax), %rcx movl -0x38(%rbp), %eax imulq $0x18, %rax, %rax addq %rax, %rcx movq -0x28(%rbp), %rax movq %rcx, (%rax) movl $0x4, %ecx subl -0x38(%rbp), %ecx movq -0x28(%rbp), %rax movq (%rax), %rax movl %ecx, 0x10(%rax) movq -0x8(%rbp), %rax movl 0x2c8(%rax), %ecx subl -0x38(%rbp), %ecx movq -0x28(%rbp), %rax movl %ecx, 0x8(%rax) movb $0x0, -0x31(%rbp) movq -0x30(%rbp), %rdi addq $0xa10, %rdi # imm = 0xA10 addq $0x88, %rdi callq 0x614c0 movb -0x31(%rbp), %al movb %al, -0x59(%rbp) movb -0x59(%rbp), %al addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_ma_bitmap_find_new_place: 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_1C], ecx mov [rbp+var_28], r8 mov rax, [rbp+var_8] mov rax, [rax] mov [rbp+var_30], rax mov [rbp+var_31], 1 mov rax, [rbp+var_28] mov dword ptr [rax+8], 0 mov rax, [rbp+var_28] mov byte ptr [rax+0Dh], 0 mov rax, [rbp+var_28] mov byte ptr [rax+0Ch], 0 mov rax, [rbp+var_10] mov dword ptr [rax+0ACh], 0 mov rax, [rbp+var_8] mov dword ptr [rax+2C8h], 4 mov rdi, [rbp+var_30] add rdi, 0A10h add rdi, 88h lea rsi, aWorkspaceLlm4b_13; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 8B1h call inline_mysql_mutex_lock_7 mov rax, [rbp+var_10] cmp qword ptr [rax+88h], 0 jz short loc_6259C mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] call allocate_blobs movsx eax, al cmp eax, 0 jz short loc_6259C jmp loc_6271F loc_6259C: mov rax, [rbp+var_18] mov [rbp+var_58], rax mov rax, [rbp+var_18] mov rcx, [rbp+var_30] xor edx, edx div qword ptr [rcx+0B48h] mov rax, [rbp+var_58] sub rax, rdx mov [rbp+var_50], rax mov rax, [rbp+var_30] mov rax, [rax+0A20h] cmp rax, [rbp+var_50] jz short loc_625F6 mov rdi, [rbp+var_8] mov rsi, [rbp+var_30] add rsi, 0A10h mov rdx, [rbp+var_50] call _ma_change_bitmap_page movsx eax, al cmp eax, 0 jz short loc_625F6 jmp loc_6271F loc_625F6: mov rax, [rbp+var_10] imul eax, [rax+0ACh], 7 mov [rbp+var_48], eax mov rax, [rbp+var_10] mov eax, [rax+0A0h] add eax, [rbp+var_48] add eax, 3 mov [rbp+var_3C], eax cmp eax, [rbp+var_1C] ja short loc_62648 mov [rbp+var_38], 3 mov rdi, [rbp+var_8] mov rsi, [rbp+var_18] mov edx, [rbp+var_3C] mov ecx, [rbp+var_38] call use_head mov ecx, [rbp+var_3C] mov rax, [rbp+var_10] mov [rax+0B8h], ecx jmp loc_626D9 loc_62648: mov eax, [rbp+var_3C] add eax, 1Ch mov [rbp+var_3C], eax mov rdi, [rbp+var_30] mov rsi, [rbp+var_10] mov rax, [rbp+var_10] mov edx, [rax+0ACh] add edx, 4 sub edx, 1 mov ecx, [rbp+var_1C] call find_where_to_split_row mov [rbp+var_40], eax mov [rbp+var_38], 0 mov eax, [rbp+var_3C] sub eax, [rbp+var_40] mov [rbp+var_44], eax mov eax, [rbp+var_44] mov rcx, [rbp+var_30] imul ecx, [rcx+7BCh], 3 shr ecx, 2 cmp eax, ecx ja short loc_626A0 mov [rbp+var_38], 2 loc_626A0: mov rdi, [rbp+var_8] mov rsi, [rbp+var_18] mov edx, [rbp+var_40] mov ecx, [rbp+var_38] call use_head mov ecx, [rbp+var_40] mov rax, [rbp+var_10] mov [rax+0B8h], ecx mov rdi, [rbp+var_8] mov esi, [rbp+var_38] mov eax, [rbp+var_44] mov edx, eax call write_rest_of_head cmp al, 0 jz short loc_626D7 jmp short loc_6271F loc_626D7: jmp short $+2 loc_626D9: mov rax, [rbp+var_8] mov rcx, [rax+2C0h] mov eax, [rbp+var_38] imul rax, 18h add rcx, rax mov rax, [rbp+var_28] mov [rax], rcx mov ecx, 4 sub ecx, [rbp+var_38] mov rax, [rbp+var_28] mov rax, [rax] mov [rax+10h], ecx mov rax, [rbp+var_8] mov ecx, [rax+2C8h] sub ecx, [rbp+var_38] mov rax, [rbp+var_28] mov [rax+8], ecx mov [rbp+var_31], 0 loc_6271F: mov rdi, [rbp+var_30] add rdi, 0A10h add rdi, 88h call inline_mysql_mutex_unlock_7 mov al, [rbp+var_31] mov [rbp+var_59], al mov al, [rbp+var_59] add rsp, 60h pop rbp retn
char ma_bitmap_find_new_place(long long *a1, long long a2, unsigned long long a3, unsigned int a4, long long a5) { unsigned long long v6; // [rsp+10h] [rbp-50h] unsigned int v7; // [rsp+1Ch] [rbp-44h] unsigned int where_to_split_row; // [rsp+20h] [rbp-40h] unsigned int v9; // [rsp+24h] [rbp-3Ch] unsigned int v10; // [rsp+28h] [rbp-38h] char v11; // [rsp+2Fh] [rbp-31h] long long v12; // [rsp+30h] [rbp-30h] v12 = *a1; v11 = 1; *(_DWORD *)(a5 + 8) = 0; *(_BYTE *)(a5 + 13) = 0; *(_BYTE *)(a5 + 12) = 0; *(_DWORD *)(a2 + 172) = 0; *((_DWORD *)a1 + 178) = 4; inline_mysql_mutex_lock_7( v12 + 2712, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_bitmap.c", 0x8B1u); if ( !*(_QWORD *)(a2 + 136) || !allocate_blobs(a1, a2) ) { v6 = a3 - a3 % *(_QWORD *)(v12 + 2888); if ( *(_QWORD *)(v12 + 2592) == v6 || !(unsigned __int8)ma_change_bitmap_page(a1, v12 + 2576, v6) ) { v9 = 7 * *(_DWORD *)(a2 + 172) + *(_DWORD *)(a2 + 160) + 3; if ( v9 <= a4 ) { v10 = 3; use_head(a1, a3, v9, 3LL); *(_DWORD *)(a2 + 184) = v9; LABEL_10: *(_QWORD *)a5 = 24LL * v10 + a1[88]; *(_DWORD *)(*(_QWORD *)a5 + 16LL) = 4 - v10; *(_DWORD *)(a5 + 8) = *((_DWORD *)a1 + 178) - v10; v11 = 0; goto LABEL_11; } where_to_split_row = find_where_to_split_row((unsigned int *)v12, a2, *(_DWORD *)(a2 + 172) + 3, a4); v10 = 0; v7 = v9 + 28 - where_to_split_row; if ( v7 <= (unsigned int)(3 * *(_DWORD *)(v12 + 1980)) >> 2 ) v10 = 2; use_head(a1, a3, where_to_split_row, v10); *(_DWORD *)(a2 + 184) = where_to_split_row; if ( !write_rest_of_head(a1, v10, v7) ) goto LABEL_10; } } LABEL_11: inline_mysql_mutex_unlock_7(v12 + 2712); return v11; }
_ma_bitmap_find_new_place: 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 dword ptr [RBP + -0x1c],ECX MOV qword ptr [RBP + -0x28],R8 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x30],RAX MOV byte ptr [RBP + -0x31],0x1 MOV RAX,qword ptr [RBP + -0x28] MOV dword ptr [RAX + 0x8],0x0 MOV RAX,qword ptr [RBP + -0x28] MOV byte ptr [RAX + 0xd],0x0 MOV RAX,qword ptr [RBP + -0x28] MOV byte ptr [RAX + 0xc],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0xac],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x2c8],0x4 MOV RDI,qword ptr [RBP + -0x30] ADD RDI,0xa10 ADD RDI,0x88 LEA RSI,[0x259466] MOV EDX,0x8b1 CALL 0x00161210 MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX + 0x88],0x0 JZ 0x0016259c MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] CALL 0x00162200 MOVSX EAX,AL CMP EAX,0x0 JZ 0x0016259c JMP 0x0016271f LAB_0016259c: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x30] XOR EDX,EDX DIV qword ptr [RCX + 0xb48] MOV RAX,qword ptr [RBP + -0x58] SUB RAX,RDX MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0xa20] CMP RAX,qword ptr [RBP + -0x50] JZ 0x001625f6 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x30] ADD RSI,0xa10 MOV RDX,qword ptr [RBP + -0x50] CALL 0x00162750 MOVSX EAX,AL CMP EAX,0x0 JZ 0x001625f6 JMP 0x0016271f LAB_001625f6: MOV RAX,qword ptr [RBP + -0x10] IMUL EAX,dword ptr [RAX + 0xac],0x7 MOV dword ptr [RBP + -0x48],EAX MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0xa0] ADD EAX,dword ptr [RBP + -0x48] ADD EAX,0x3 MOV dword ptr [RBP + -0x3c],EAX CMP EAX,dword ptr [RBP + -0x1c] JA 0x00162648 MOV dword ptr [RBP + -0x38],0x3 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x18] MOV EDX,dword ptr [RBP + -0x3c] MOV ECX,dword ptr [RBP + -0x38] CALL 0x001627d0 MOV ECX,dword ptr [RBP + -0x3c] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0xb8],ECX JMP 0x001626d9 LAB_00162648: MOV EAX,dword ptr [RBP + -0x3c] ADD EAX,0x1c MOV dword ptr [RBP + -0x3c],EAX MOV RDI,qword ptr [RBP + -0x30] MOV RSI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RAX + 0xac] ADD EDX,0x4 SUB EDX,0x1 MOV ECX,dword ptr [RBP + -0x1c] CALL 0x001622b0 MOV dword ptr [RBP + -0x40],EAX MOV dword ptr [RBP + -0x38],0x0 MOV EAX,dword ptr [RBP + -0x3c] SUB EAX,dword ptr [RBP + -0x40] MOV dword ptr [RBP + -0x44],EAX MOV EAX,dword ptr [RBP + -0x44] MOV RCX,qword ptr [RBP + -0x30] IMUL ECX,dword ptr [RCX + 0x7bc],0x3 SHR ECX,0x2 CMP EAX,ECX JA 0x001626a0 MOV dword ptr [RBP + -0x38],0x2 LAB_001626a0: MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x18] MOV EDX,dword ptr [RBP + -0x40] MOV ECX,dword ptr [RBP + -0x38] CALL 0x001627d0 MOV ECX,dword ptr [RBP + -0x40] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0xb8],ECX MOV RDI,qword ptr [RBP + -0x8] MOV ESI,dword ptr [RBP + -0x38] MOV EAX,dword ptr [RBP + -0x44] MOV EDX,EAX CALL 0x001623b0 CMP AL,0x0 JZ 0x001626d7 JMP 0x0016271f LAB_001626d7: JMP 0x001626d9 LAB_001626d9: MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RAX + 0x2c0] MOV EAX,dword ptr [RBP + -0x38] IMUL RAX,RAX,0x18 ADD RCX,RAX MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RAX],RCX MOV ECX,0x4 SUB ECX,dword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX] MOV dword ptr [RAX + 0x10],ECX MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x2c8] SUB ECX,dword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x28] MOV dword ptr [RAX + 0x8],ECX MOV byte ptr [RBP + -0x31],0x0 LAB_0016271f: MOV RDI,qword ptr [RBP + -0x30] ADD RDI,0xa10 ADD RDI,0x88 CALL 0x001614c0 MOV AL,byte ptr [RBP + -0x31] MOV byte ptr [RBP + -0x59],AL MOV AL,byte ptr [RBP + -0x59] ADD RSP,0x60 POP RBP RET
int1 _ma_bitmap_find_new_place(long *param_1,long param_2,ulong param_3,uint param_4,long *param_5) { long lVar1; char cVar2; int iVar3; uint uVar4; int iVar5; long lVar6; uint local_40; int1 local_39; lVar1 = *param_1; local_39 = 1; *(int4 *)(param_5 + 1) = 0; *(int1 *)((long)param_5 + 0xd) = 0; *(int1 *)((long)param_5 + 0xc) = 0; *(int4 *)(param_2 + 0xac) = 0; *(int4 *)(param_1 + 0x59) = 4; inline_mysql_mutex_lock (lVar1 + 0xa98,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_bitmap.c", 0x8b1); if (((*(long *)(param_2 + 0x88) == 0) || (cVar2 = allocate_blobs(param_1,param_2), cVar2 == '\0')) && ((lVar6 = param_3 - param_3 % *(ulong *)(lVar1 + 0xb48), *(long *)(lVar1 + 0xa20) == lVar6 || (cVar2 = _ma_change_bitmap_page(param_1,lVar1 + 0xa10,lVar6), cVar2 == '\0')))) { iVar3 = *(int *)(param_2 + 0xa0) + *(int *)(param_2 + 0xac) * 7; uVar4 = iVar3 + 3; if (param_4 < uVar4) { iVar5 = find_where_to_split_row(lVar1,param_2,*(int *)(param_2 + 0xac) + 3,param_4); local_40 = 0; uVar4 = (iVar3 + 0x1f) - iVar5; if (uVar4 <= (uint)(*(int *)(lVar1 + 0x7bc) * 3) >> 2) { local_40 = 2; } use_head(param_1,param_3,iVar5,local_40); *(int *)(param_2 + 0xb8) = iVar5; cVar2 = write_rest_of_head(param_1,local_40,uVar4); if (cVar2 != '\0') goto LAB_0016271f; } else { local_40 = 3; use_head(param_1,param_3,uVar4,3); *(uint *)(param_2 + 0xb8) = uVar4; } *param_5 = param_1[0x58] + (ulong)local_40 * 0x18; *(uint *)(*param_5 + 0x10) = 4 - local_40; *(uint *)(param_5 + 1) = (int)param_1[0x59] - local_40; local_39 = 0; } LAB_0016271f: inline_mysql_mutex_unlock(lVar1 + 0xa98); return local_39; }
47,704
test_ldi_path
eloqsql/libmariadb/unittest/libmariadb/misc.c
static int test_ldi_path(MYSQL *mysql) { int rc; rc= mysql_query(mysql, "DROP TABLE IF EXISTS t1"); check_mysql_rc(rc, mysql); rc= mysql_query(mysql, "CREATE TABLE t1 (a int)"); check_mysql_rc(rc, mysql); rc= mysql_query(mysql, "FLUSH TABLES"); check_mysql_rc(rc, mysql); #ifdef _WIN32 rc= mysql_query(mysql, "LOAD DATA LOCAL INFILE 'X:/non_existing_path/data.csv' INTO TABLE t1 " "FIELDS TERMINATED BY '.' LINES TERMINATED BY '\r\n'"); #else rc= mysql_query(mysql, "LOAD DATA LOCAL INFILE '/non_existing_path/data.csv' INTO TABLE t1 " "FIELDS TERMINATED BY '.' LINES TERMINATED BY '\r\n'"); #endif FAIL_IF(rc== 0, "Error expected"); diag("Error: %d", mysql_errno(mysql)); FAIL_IF(mysql_errno(mysql) == 0, "Error expected"); rc= mysql_query(mysql, "DROP TABLE t1"); check_mysql_rc(rc, mysql); return OK; }
O3
c
test_ldi_path: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx leaq 0x207d9(%rip), %rsi # 0x39ba9 callq 0x1ee15 testl %eax, %eax je 0x19410 movl %eax, %r14d movq %rbx, %rdi callq 0x20e8e movq %rax, %r15 movq %rbx, %rdi callq 0x20e79 leaq 0x1fe6f(%rip), %rdi # 0x39265 leaq 0x20571(%rip), %r8 # 0x3996e movl %r14d, %esi movq %r15, %rdx movl %eax, %ecx movl $0x376, %r9d # imm = 0x376 jmp 0x1949c leaq 0x207aa(%rip), %rsi # 0x39bc1 movq %rbx, %rdi callq 0x1ee15 testl %eax, %eax je 0x19457 movl %eax, %r14d movq %rbx, %rdi callq 0x20e8e movq %rax, %r15 movq %rbx, %rdi callq 0x20e79 leaq 0x1fe25(%rip), %rdi # 0x39265 leaq 0x20527(%rip), %r8 # 0x3996e movl %r14d, %esi movq %r15, %rdx movl %eax, %ecx movl $0x379, %r9d # imm = 0x379 jmp 0x1949c leaq 0x21482(%rip), %rsi # 0x3a8e0 movq %rbx, %rdi callq 0x1ee15 testl %eax, %eax je 0x194b7 movl %eax, %r14d movq %rbx, %rdi callq 0x20e8e movq %rax, %r15 movq %rbx, %rdi callq 0x20e79 leaq 0x1fdde(%rip), %rdi # 0x39265 leaq 0x204e0(%rip), %r8 # 0x3996e movl %r14d, %esi movq %r15, %rdx movl %eax, %ecx movl $0x37c, %r9d # imm = 0x37C xorl %eax, %eax callq 0x1970b movl $0x1, %r14d movl %r14d, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq leaq 0x218a6(%rip), %rsi # 0x3ad64 movq %rbx, %rdi callq 0x1ee15 testl %eax, %eax je 0x1953b movq %rbx, %rdi callq 0x20e79 leaq 0x21900(%rip), %rdi # 0x3add9 xorl %r14d, %r14d movl %eax, %esi xorl %eax, %eax callq 0x1970b movq %rbx, %rdi callq 0x20e79 testl %eax, %eax je 0x19557 leaq 0x218eb(%rip), %rsi # 0x3ade3 movq %rbx, %rdi callq 0x1ee15 testl %eax, %eax je 0x194a9 movl %eax, %r15d movq %rbx, %rdi callq 0x20e8e movq %rax, %r14 movq %rbx, %rdi callq 0x20e79 leaq 0x1fd44(%rip), %rdi # 0x39265 leaq 0x20446(%rip), %r8 # 0x3996e movl %r15d, %esi movq %r14, %rdx movl %eax, %ecx movl $0x38a, %r9d # imm = 0x38A jmp 0x1949c leaq 0x1fbde(%rip), %rdi # 0x39120 leaq 0x213e3(%rip), %rsi # 0x3a92c leaq 0x2041e(%rip), %rdx # 0x3996e movl $0x385, %ecx # imm = 0x385 jmp 0x19571 leaq 0x1fbc2(%rip), %rdi # 0x39120 leaq 0x213c7(%rip), %rsi # 0x3a92c leaq 0x20402(%rip), %rdx # 0x3996e movl $0x387, %ecx # imm = 0x387 xorl %eax, %eax callq 0x1970b jmp 0x194a3
test_ldi_path: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov rbx, rdi lea rsi, aDropTableIfExi; "DROP TABLE IF EXISTS t1" call mysql_query test eax, eax jz short loc_19410 mov r14d, eax mov rdi, rbx call mysql_error mov r15, rax mov rdi, rbx call mysql_errno lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d" lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov esi, r14d mov rdx, r15 mov ecx, eax mov r9d, 376h jmp loc_1949C loc_19410: lea rsi, aCreateTableT1A; "CREATE TABLE t1 (a int)" mov rdi, rbx call mysql_query test eax, eax jz short loc_19457 mov r14d, eax mov rdi, rbx call mysql_error mov r15, rax mov rdi, rbx call mysql_errno lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d" lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov esi, r14d mov rdx, r15 mov ecx, eax mov r9d, 379h jmp short loc_1949C loc_19457: lea rsi, aFlushTables_0; "FLUSH TABLES" mov rdi, rbx call mysql_query test eax, eax jz short loc_194B7 mov r14d, eax mov rdi, rbx call mysql_error mov r15, rax mov rdi, rbx call mysql_errno lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d" lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov esi, r14d mov rdx, r15 mov ecx, eax mov r9d, 37Ch loc_1949C: xor eax, eax call diag loc_194A3: mov r14d, 1 loc_194A9: mov eax, r14d add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn loc_194B7: lea rsi, aLoadDataLocalI_2; "LOAD DATA LOCAL INFILE '/non_existing_p"... mov rdi, rbx call mysql_query test eax, eax jz short loc_1953B mov rdi, rbx call mysql_errno lea rdi, aErrorD; "Error: %d" xor r14d, r14d mov esi, eax xor eax, eax call diag mov rdi, rbx call mysql_errno test eax, eax jz short loc_19557 lea rsi, aDropTableT1_0; "DROP TABLE t1" mov rdi, rbx call mysql_query test eax, eax jz short loc_194A9 mov r15d, eax mov rdi, rbx call mysql_error mov r14, rax mov rdi, rbx call mysql_errno lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d" lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov esi, r15d mov rdx, r14 mov ecx, eax mov r9d, 38Ah jmp loc_1949C loc_1953B: lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rsi, aErrorExpected_0; "Error expected" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov ecx, 385h jmp short loc_19571 loc_19557: lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rsi, aErrorExpected_0; "Error expected" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov ecx, 387h loc_19571: xor eax, eax call diag jmp loc_194A3
long long test_ldi_path(long long a1) { int v1; // eax int v2; // r14d int v3; // r15d int v4; // eax const char *v5; // rdi const char *v6; // r8 const char *v7; // rsi const char *v8; // rdx int v9; // ecx int v10; // r9d int v11; // eax int v12; // r14d int v13; // r15d int v14; // eax int v15; // eax int v16; // r14d int v17; // r15d int v18; // eax unsigned int v19; // r14d int v21; // eax int v22; // edx int v23; // ecx int v24; // r8d int v25; // r9d int v26; // eax int v27; // r15d int v28; // r14d int v29; // eax v1 = mysql_query(a1, "DROP TABLE IF EXISTS t1"); if ( v1 ) { v2 = v1; v3 = mysql_error(a1); v4 = mysql_errno(a1); v5 = "Error (%d): %s (%d) in %s line %d"; v6 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/misc.c"; LODWORD(v7) = v2; LODWORD(v8) = v3; v9 = v4; v10 = 886; } else { v11 = mysql_query(a1, "CREATE TABLE t1 (a int)"); if ( v11 ) { v12 = v11; v13 = mysql_error(a1); v14 = mysql_errno(a1); v5 = "Error (%d): %s (%d) in %s line %d"; v6 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/misc.c"; LODWORD(v7) = v12; LODWORD(v8) = v13; v9 = v14; v10 = 889; } else { v15 = mysql_query(a1, "FLUSH TABLES"); if ( v15 ) { v16 = v15; v17 = mysql_error(a1); v18 = mysql_errno(a1); v5 = "Error (%d): %s (%d) in %s line %d"; v6 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/misc.c"; LODWORD(v7) = v16; LODWORD(v8) = v17; v9 = v18; v10 = 892; } else if ( (unsigned int)mysql_query( a1, "LOAD DATA LOCAL INFILE '/non_existing_path/data.csv' INTO TABLE t1 FIELDS TERMINATED BY " "'.' LINES TERMINATED BY '\r\n" "'") ) { v21 = mysql_errno(a1); v19 = 0; diag((unsigned int)"Error: %d", v21, v22, v23, v24, v25); if ( (unsigned int)mysql_errno(a1) ) { v26 = mysql_query(a1, "DROP TABLE t1"); if ( !v26 ) return v19; v27 = v26; v28 = mysql_error(a1); v29 = mysql_errno(a1); v5 = "Error (%d): %s (%d) in %s line %d"; v6 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/misc.c"; LODWORD(v7) = v27; LODWORD(v8) = v28; v9 = v29; v10 = 906; } else { v5 = "Error: %s (%s: %d)"; v7 = "Error expected"; v8 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/misc.c"; v9 = 903; } } else { v5 = "Error: %s (%s: %d)"; v7 = "Error expected"; v8 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/misc.c"; v9 = 901; } } } diag((_DWORD)v5, (_DWORD)v7, (_DWORD)v8, v9, (_DWORD)v6, v10); return 1; }
test_ldi_path: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI LEA RSI,[0x139ba9] CALL 0x0011ee15 TEST EAX,EAX JZ 0x00119410 MOV R14D,EAX MOV RDI,RBX CALL 0x00120e8e MOV R15,RAX MOV RDI,RBX CALL 0x00120e79 LEA RDI,[0x139265] LEA R8,[0x13996e] MOV ESI,R14D MOV RDX,R15 MOV ECX,EAX MOV R9D,0x376 JMP 0x0011949c LAB_00119410: LEA RSI,[0x139bc1] MOV RDI,RBX CALL 0x0011ee15 TEST EAX,EAX JZ 0x00119457 MOV R14D,EAX MOV RDI,RBX CALL 0x00120e8e MOV R15,RAX MOV RDI,RBX CALL 0x00120e79 LEA RDI,[0x139265] LEA R8,[0x13996e] MOV ESI,R14D MOV RDX,R15 MOV ECX,EAX MOV R9D,0x379 JMP 0x0011949c LAB_00119457: LEA RSI,[0x13a8e0] MOV RDI,RBX CALL 0x0011ee15 TEST EAX,EAX JZ 0x001194b7 MOV R14D,EAX MOV RDI,RBX CALL 0x00120e8e MOV R15,RAX MOV RDI,RBX CALL 0x00120e79 LEA RDI,[0x139265] LEA R8,[0x13996e] MOV ESI,R14D MOV RDX,R15 MOV ECX,EAX MOV R9D,0x37c LAB_0011949c: XOR EAX,EAX CALL 0x0011970b LAB_001194a3: MOV R14D,0x1 LAB_001194a9: MOV EAX,R14D ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET LAB_001194b7: LEA RSI,[0x13ad64] MOV RDI,RBX CALL 0x0011ee15 TEST EAX,EAX JZ 0x0011953b MOV RDI,RBX CALL 0x00120e79 LEA RDI,[0x13add9] XOR R14D,R14D MOV ESI,EAX XOR EAX,EAX CALL 0x0011970b MOV RDI,RBX CALL 0x00120e79 TEST EAX,EAX JZ 0x00119557 LEA RSI,[0x13ade3] MOV RDI,RBX CALL 0x0011ee15 TEST EAX,EAX JZ 0x001194a9 MOV R15D,EAX MOV RDI,RBX CALL 0x00120e8e MOV R14,RAX MOV RDI,RBX CALL 0x00120e79 LEA RDI,[0x139265] LEA R8,[0x13996e] MOV ESI,R15D MOV RDX,R14 MOV ECX,EAX MOV R9D,0x38a JMP 0x0011949c LAB_0011953b: LEA RDI,[0x139120] LEA RSI,[0x13a92c] LEA RDX,[0x13996e] MOV ECX,0x385 JMP 0x00119571 LAB_00119557: LEA RDI,[0x139120] LEA RSI,[0x13a92c] LEA RDX,[0x13996e] MOV ECX,0x387 LAB_00119571: XOR EAX,EAX CALL 0x0011970b JMP 0x001194a3
int8 test_ldi_path(int8 param_1) { int iVar1; int4 uVar2; int8 uVar3; int8 uVar4; iVar1 = mysql_query(param_1,"DROP TABLE IF EXISTS t1"); if (iVar1 == 0) { iVar1 = mysql_query(param_1,"CREATE TABLE t1 (a int)"); if (iVar1 == 0) { iVar1 = mysql_query(param_1,"FLUSH TABLES"); if (iVar1 == 0) { iVar1 = mysql_query(param_1, "LOAD DATA LOCAL INFILE \'/non_existing_path/data.csv\' INTO TABLE t1 FIELDS TERMINATED BY \'.\' LINES TERMINATED BY \'\r\n\'" ); if (iVar1 == 0) { uVar3 = 0x385; } else { uVar2 = mysql_errno(param_1); diag("Error: %d",uVar2); iVar1 = mysql_errno(param_1); if (iVar1 != 0) { iVar1 = mysql_query(param_1,"DROP TABLE t1"); if (iVar1 == 0) { return 0; } uVar3 = mysql_error(param_1); uVar2 = mysql_errno(param_1); uVar4 = 0x38a; goto LAB_0011949c; } uVar3 = 0x387; } diag("Error: %s (%s: %d)","Error expected", "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/misc.c",uVar3) ; return 1; } uVar3 = mysql_error(param_1); uVar2 = mysql_errno(param_1); uVar4 = 0x37c; } else { uVar3 = mysql_error(param_1); uVar2 = mysql_errno(param_1); uVar4 = 0x379; } } else { uVar3 = mysql_error(param_1); uVar2 = mysql_errno(param_1); uVar4 = 0x376; } LAB_0011949c: diag("Error (%d): %s (%d) in %s line %d",iVar1,uVar3,uVar2, "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/misc.c",uVar4); return 1; }
47,705
ftxui::borderWith(ftxui::Pixel const&)
Andrewchistyakov[P]flashcards_lyc/build_O2/_deps/ftxui-src/src/ftxui/dom/border.cpp
Decorator borderWith(const Pixel& pixel) { return [pixel](Element child) { return std::make_shared<BorderPixel>(unpack(std::move(child)), pixel); }; }
O2
cpp
ftxui::borderWith(ftxui::Pixel const&): pushq %r15 pushq %r14 pushq %rbx subq $0x30, %rsp movq %rdi, %rbx movq %rsp, %rdi callq 0x1da02 xorps %xmm0, %xmm0 movups %xmm0, 0x10(%rbx) movups %xmm0, (%rbx) pushq $0x30 popq %rdi callq 0xc450 movq %rax, %r15 movq %rsp, %rsi movq %rax, %rdi callq 0x1da02 movq %r15, (%rbx) leaq 0x9aa(%rip), %rax # 0x1cf44 movq %rax, 0x18(%rbx) leaq 0xb97(%rip), %rax # 0x1d13c movq %rax, 0x10(%rbx) leaq 0x8(%rsp), %rdi callq 0xc8c8 movq %rbx, %rax addq $0x30, %rsp popq %rbx popq %r14 popq %r15 retq movq %rax, %r14 pushq $0x30 popq %rsi movq %r15, %rdi callq 0xc480 jmp 0x1c5d3 movq %rax, %r14 movq %rbx, %rdi callq 0x13b10 leaq 0x8(%rsp), %rdi callq 0xc8c8 movq %r14, %rdi callq 0xc7f0
_ZN5ftxui10borderWithERKNS_5PixelE: push r15 push r14 push rbx sub rsp, 30h mov rbx, rdi mov rdi, rsp call _ZN5ftxui5PixelC2ERKS0_; ftxui::Pixel::Pixel(ftxui::Pixel const&) xorps xmm0, xmm0 movups xmmword ptr [rbx+10h], xmm0 movups xmmword ptr [rbx], xmm0 push 30h ; '0' pop rdi; unsigned __int64 call __Znwm; operator new(ulong) mov r15, rax mov rsi, rsp mov rdi, rax call _ZN5ftxui5PixelC2ERKS0_; ftxui::Pixel::Pixel(ftxui::Pixel const&) mov [rbx], r15 lea rax, _ZNSt17_Function_handlerIFSt10shared_ptrIN5ftxui4NodeEES3_EZNS1_10borderWithERKNS1_5PixelEE3$_0E9_M_invokeERKSt9_Any_dataOS3_; std::_Function_handler<std::shared_ptr<ftxui::Node> ()(std::shared_ptr<ftxui::Node>),ftxui::borderWith(ftxui::Pixel const&)::$_0>::_M_invoke(std::_Any_data const&,std::shared_ptr<ftxui::Node>&&) mov [rbx+18h], rax lea rax, _ZNSt17_Function_handlerIFSt10shared_ptrIN5ftxui4NodeEES3_EZNS1_10borderWithERKNS1_5PixelEE3$_0E10_M_managerERSt9_Any_dataRKSA_St18_Manager_operation; std::_Function_handler<std::shared_ptr<ftxui::Node> ()(std::shared_ptr<ftxui::Node>),ftxui::borderWith(ftxui::Pixel const&)::$_0>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation) mov [rbx+10h], rax lea rdi, [rsp+48h+var_40]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rax, rbx add rsp, 30h pop rbx pop r14 pop r15 retn mov r14, rax push 30h ; '0' pop rsi; unsigned __int64 mov rdi, r15; void * call __ZdlPvm; operator delete(void *,ulong) jmp short loc_1C5D3 mov r14, rax loc_1C5D3: mov rdi, rbx; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() lea rdi, [rsp+arg_0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, r14 call __Unwind_Resume
ftxui * ftxui::borderWith(ftxui *this, const ftxui::Pixel *a2) { ftxui::Pixel *v2; // r15 long long v4; // [rsp+0h] [rbp-48h] BYREF _BYTE v5[64]; // [rsp+8h] [rbp-40h] BYREF ftxui::Pixel::Pixel((ftxui::Pixel *)&v4, a2); *((_OWORD *)this + 1) = 0LL; *(_OWORD *)this = 0LL; v2 = (ftxui::Pixel *)operator new(0x30uLL); ftxui::Pixel::Pixel(v2, (const ftxui::Pixel *)&v4); *(_QWORD *)this = v2; *((_QWORD *)this + 3) = std::_Function_handler<std::shared_ptr<ftxui::Node> ()(std::shared_ptr<ftxui::Node>),ftxui::borderWith(ftxui::Pixel const&)::$_0>::_M_invoke; *((_QWORD *)this + 2) = std::_Function_handler<std::shared_ptr<ftxui::Node> ()(std::shared_ptr<ftxui::Node>),ftxui::borderWith(ftxui::Pixel const&)::$_0>::_M_manager; std::string::~string(v5); return this; }
borderWith: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x30 MOV RBX,RDI MOV RDI,RSP CALL 0x0011da02 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0x10],XMM0 MOVUPS xmmword ptr [RBX],XMM0 LAB_0011c57a: PUSH 0x30 POP RDI CALL 0x0010c450 LAB_0011c582: MOV R15,RAX MOV RSI,RSP MOV RDI,RAX CALL 0x0011da02 LAB_0011c590: MOV qword ptr [RBX],R15 LEA RAX,[0x11cf44] MOV qword ptr [RBX + 0x18],RAX LEA RAX,[0x11d13c] MOV qword ptr [RBX + 0x10],RAX LEA RDI,[RSP + 0x8] CALL 0x0010c8c8 MOV RAX,RBX ADD RSP,0x30 POP RBX POP R14 POP R15 RET
/* ftxui::borderWith(ftxui::Pixel const&) */ ftxui * __thiscall ftxui::borderWith(ftxui *this,Pixel *param_1) { Pixel *this_00; Pixel aPStack_48 [8]; string local_40 [40]; Pixel::Pixel(aPStack_48,param_1); *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)this = 0; *(int8 *)(this + 8) = 0; /* try { // try from 0011c57a to 0011c581 has its CatchHandler @ 0011c5d0 */ this_00 = (Pixel *)operator_new(0x30); /* try { // try from 0011c582 to 0011c58f has its CatchHandler @ 0011c5c0 */ Pixel::Pixel(this_00,aPStack_48); *(Pixel **)this = this_00; *(code **)(this + 0x18) = std:: _Function_handler<std::shared_ptr<ftxui::Node>(std::shared_ptr<ftxui::Node>),ftxui::borderWith(ftxui::Pixel_const&)::$_0> ::_M_invoke; *(code **)(this + 0x10) = std:: _Function_handler<std::shared_ptr<ftxui::Node>(std::shared_ptr<ftxui::Node>),ftxui::borderWith(ftxui::Pixel_const&)::$_0> ::_M_manager; std::__cxx11::string::~string(local_40); return this; }
47,706
r3d_framebuffer_load_scene
r3d/src/r3d_state.c
void r3d_framebuffer_load_scene(int width, int height) { struct r3d_fb_scene_t* scene = &R3D.framebuffer.scene; scene->id = rlLoadFramebuffer(); if (scene->id == 0) { TraceLog(LOG_WARNING, "Failed to create framebuffer"); } rlEnableFramebuffer(scene->id); // Generate color texture scene->color = rlLoadTexture(NULL, width, height, RL_PIXELFORMAT_UNCOMPRESSED_R8G8B8, 1); // Generate bright texture glGenTextures(1, &scene->bright); glBindTexture(GL_TEXTURE_2D, scene->bright); if (R3D.support.TEX_R11G11B10F) { glTexImage2D(GL_TEXTURE_2D, 0, GL_R11F_G11F_B10F, width, height, 0, GL_RGB, GL_FLOAT, NULL); } else if (R3D.support.TEX_R16G16B16F) { glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB16F, width, height, 0, GL_RGB, GL_HALF_FLOAT, NULL); } else /* 8-bit fallback - non-HDR */ { glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, width, height, 0, GL_RGB, GL_UNSIGNED_BYTE, NULL); } glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); // Attach the depth-stencil buffer from the G-buffer glFramebufferTexture2D( GL_FRAMEBUFFER, GL_DEPTH_STENCIL_ATTACHMENT, GL_TEXTURE_2D, R3D.framebuffer.gBuffer.depth, 0 ); // Activate the draw buffers for all the attachments rlActiveDrawBuffers(2); // Attach the textures to the framebuffer rlFramebufferAttach(scene->id, scene->color, RL_ATTACHMENT_COLOR_CHANNEL0, RL_ATTACHMENT_TEXTURE2D, 0); rlFramebufferAttach(scene->id, scene->bright, RL_ATTACHMENT_COLOR_CHANNEL1, RL_ATTACHMENT_TEXTURE2D, 0); // Check if the framebuffer is complete if (!rlFramebufferComplete(scene->id)) { TraceLog(LOG_WARNING, "Framebuffer is not complete"); } }
O3
c
r3d_framebuffer_load_scene: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movl %esi, %ebx movl %edi, %r14d callq 0x1dff3 movl %eax, 0xf0d37(%rip) # 0x1b03a4 testl %eax, %eax jne 0xbf68a leaq 0x5179e(%rip), %rsi # 0x110e16 movl $0x4, %edi xorl %eax, %eax callq 0xa9cb1 movl 0xf0d1a(%rip), %eax # 0x1b03a4 movl %eax, %edi callq 0x1be4a xorl %edi, %edi movl %r14d, %esi movl %ebx, %edx movl $0x4, %ecx movl $0x1, %r8d callq 0x1c760 movl %eax, 0xf0cfa(%rip) # 0x1b03a8 leaq 0xc30cb(%rip), %rax # 0x182780 leaq 0xf0cf0(%rip), %rsi # 0x1b03ac movl $0x1, %edi callq *(%rax) leaq 0xc2966(%rip), %rax # 0x182030 movl 0xf0cdc(%rip), %esi # 0x1b03ac movl $0xde1, %edi # imm = 0xDE1 callq *(%rax) cmpb $0x1, 0xf0c94(%rip) # 0x1b0372 jne 0xbf710 leaq 0xc3f29(%rip), %rax # 0x183610 subq $0x8, %rsp movl $0xde1, %edi # imm = 0xDE1 xorl %esi, %esi movl $0x8c3a, %edx # imm = 0x8C3A movl %r14d, %ecx movl %ebx, %r8d xorl %r9d, %r9d pushq $0x0 pushq $0x1406 # imm = 0x1406 pushq $0x1907 # imm = 0x1907 callq *(%rax) jmp 0xbf76c leaq 0xc3ef9(%rip), %rax # 0x183610 movq (%rax), %rax cmpb $0x1, 0xf0c50(%rip) # 0x1b0371 jne 0xbf745 subq $0x8, %rsp movl $0xde1, %edi # imm = 0xDE1 xorl %esi, %esi movl $0x881b, %edx # imm = 0x881B movl %r14d, %ecx movl %ebx, %r8d xorl %r9d, %r9d pushq $0x0 pushq $0x140b # imm = 0x140B jmp 0xbf765 subq $0x8, %rsp movl $0xde1, %edi # imm = 0xDE1 xorl %esi, %esi movl $0x1907, %edx # imm = 0x1907 movl %r14d, %ecx movl %ebx, %r8d xorl %r9d, %r9d pushq $0x0 pushq $0x1401 # imm = 0x1401 pushq $0x1907 # imm = 0x1907 callq *%rax addq $0x20, %rsp leaq 0xc3ed9(%rip), %rbx # 0x183650 movl $0xde1, %edi # imm = 0xDE1 movl $0x2801, %esi # imm = 0x2801 movl $0x2600, %edx # imm = 0x2600 callq *(%rbx) movl $0xde1, %edi # imm = 0xDE1 movl $0x2800, %esi # imm = 0x2800 movl $0x2600, %edx # imm = 0x2600 callq *(%rbx) movl $0xde1, %edi # imm = 0xDE1 movl $0x2802, %esi # imm = 0x2802 movl $0x812f, %edx # imm = 0x812F callq *(%rbx) movl $0xde1, %edi # imm = 0xDE1 movl $0x2803, %esi # imm = 0x2803 movl $0x812f, %edx # imm = 0x812F callq *(%rbx) leaq 0xc2f16(%rip), %rax # 0x1826d8 movl 0xf0bc0(%rip), %ecx # 0x1b0388 movl $0x8d40, %edi # imm = 0x8D40 movl $0x821a, %esi # imm = 0x821A movl $0xde1, %edx # imm = 0xDE1 xorl %r8d, %r8d callq *(%rax) movl $0x2, %edi callq 0x1bece movl 0xf0bb8(%rip), %edi # 0x1b03a4 movl 0xf0bb6(%rip), %esi # 0x1b03a8 xorl %edx, %edx movl $0x64, %ecx xorl %r8d, %r8d callq 0x1e027 movl 0xf0b9d(%rip), %edi # 0x1b03a4 movl 0xf0b9f(%rip), %esi # 0x1b03ac movl $0x1, %edx movl $0x64, %ecx xorl %r8d, %r8d callq 0x1e027 movl 0xf0b7f(%rip), %edi # 0x1b03a4 callq 0x1e13f testb %al, %al je 0xbf833 popq %rbx popq %r14 popq %rbp retq leaq 0x515f9(%rip), %rsi # 0x110e33 movl $0x4, %edi xorl %eax, %eax popq %rbx popq %r14 popq %rbp jmp 0xa9cb1
r3d_framebuffer_load_scene: push rbp mov rbp, rsp push r14 push rbx mov ebx, esi mov r14d, edi call rlLoadFramebuffer mov dword ptr cs:qword_1B03A4, eax test eax, eax jnz short loc_BF68A lea rsi, aFailedToCreate; "Failed to create framebuffer" mov edi, 4 xor eax, eax call TraceLog mov eax, dword ptr cs:qword_1B03A4 loc_BF68A: mov edi, eax call rlEnableFramebuffer xor edi, edi mov esi, r14d mov edx, ebx mov ecx, 4 mov r8d, 1 call rlLoadTexture mov dword ptr cs:qword_1B03A4+4, eax lea rax, glad_glGenTextures lea rsi, dword_1B03AC mov edi, 1 call qword ptr [rax] lea rax, glad_glBindTexture mov esi, cs:dword_1B03AC mov edi, 0DE1h call qword ptr [rax] cmp cs:byte_1B0372, 1 jnz short loc_BF710 lea rax, glad_glTexImage2D sub rsp, 8 mov edi, 0DE1h xor esi, esi mov edx, 8C3Ah mov ecx, r14d mov r8d, ebx xor r9d, r9d push 0 push 1406h push 1907h call qword ptr [rax] jmp short loc_BF76C loc_BF710: lea rax, glad_glTexImage2D mov rax, [rax] cmp cs:byte_1B0371, 1 jnz short loc_BF745 sub rsp, 8 mov edi, 0DE1h xor esi, esi mov edx, 881Bh mov ecx, r14d mov r8d, ebx xor r9d, r9d push 0 push 140Bh jmp short loc_BF765 loc_BF745: sub rsp, 8 mov edi, 0DE1h xor esi, esi mov edx, 1907h mov ecx, r14d mov r8d, ebx xor r9d, r9d push 0 push 1401h loc_BF765: push 1907h call rax loc_BF76C: add rsp, 20h lea rbx, glad_glTexParameteri mov edi, 0DE1h mov esi, 2801h mov edx, 2600h call qword ptr [rbx] mov edi, 0DE1h mov esi, 2800h mov edx, 2600h call qword ptr [rbx] mov edi, 0DE1h mov esi, 2802h mov edx, 812Fh call qword ptr [rbx] mov edi, 0DE1h mov esi, 2803h mov edx, 812Fh call qword ptr [rbx] lea rax, glad_glFramebufferTexture2D mov ecx, dword ptr cs:qword_1B0384+4 mov edi, 8D40h mov esi, 821Ah mov edx, 0DE1h xor r8d, r8d call qword ptr [rax] mov edi, 2 call rlActiveDrawBuffers mov edi, dword ptr cs:qword_1B03A4 mov esi, dword ptr cs:qword_1B03A4+4 xor edx, edx mov ecx, 64h ; 'd' xor r8d, r8d call rlFramebufferAttach mov edi, dword ptr cs:qword_1B03A4 mov esi, cs:dword_1B03AC mov edx, 1 mov ecx, 64h ; 'd' xor r8d, r8d call rlFramebufferAttach mov edi, dword ptr cs:qword_1B03A4 call rlFramebufferComplete test al, al jz short loc_BF833 pop rbx pop r14 pop rbp retn loc_BF833: lea rsi, aFramebufferIsN; "Framebuffer is not complete" mov edi, 4 xor eax, eax pop rbx pop r14 pop rbp jmp TraceLog
void r3d_framebuffer_load_scene(long long a1, unsigned int a2) { unsigned int Framebuffer; // eax long long v3; // rdx long long v4; // rcx int v5; // r8d int v6; // r9d Framebuffer = rlLoadFramebuffer(a1); LODWORD(qword_1B03A4) = Framebuffer; if ( !Framebuffer ) { TraceLog(4, (long long)"Failed to create framebuffer"); Framebuffer = qword_1B03A4; } rlEnableFramebuffer(Framebuffer); HIDWORD(qword_1B03A4) = rlLoadTexture(0LL, a1, a2, 4u, 1u); glad_glGenTextures(1LL, &dword_1B03AC); glad_glBindTexture(3553LL, (unsigned int)dword_1B03AC); if ( byte_1B0372 == 1 ) { glad_glTexImage2D(3553LL, 0LL, 35898LL, (unsigned int)a1, a2, 0LL, 6407LL, 5126LL, 0LL); } else if ( byte_1B0371 == 1 ) { glad_glTexImage2D(3553LL, 0LL, 34843LL, (unsigned int)a1, a2, 0LL, 6407LL, 5131LL, 0LL); } else { glad_glTexImage2D(3553LL, 0LL, 6407LL, (unsigned int)a1, a2, 0LL, 6407LL, 5121LL, 0LL); } glad_glTexParameteri(3553LL, 10241LL, 9728LL); glad_glTexParameteri(3553LL, 10240LL, 9728LL); glad_glTexParameteri(3553LL, 10242LL, 33071LL); glad_glTexParameteri(3553LL, 10243LL, 33071LL); glad_glFramebufferTexture2D(36160LL, 33306LL, 3553LL, HIDWORD(qword_1B0384), 0LL); rlActiveDrawBuffers(2LL, 33306LL, v3, v4, v5, v6); rlFramebufferAttach(qword_1B03A4, HIDWORD(qword_1B03A4), 0, 100, 0); rlFramebufferAttach(qword_1B03A4, dword_1B03AC, 1u, 100, 0); if ( !rlFramebufferComplete(qword_1B03A4) ) TraceLog(4, (long long)"Framebuffer is not complete"); }
r3d_framebuffer_load_scene: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV EBX,ESI MOV R14D,EDI CALL 0x0011dff3 MOV dword ptr [0x002b03a4],EAX TEST EAX,EAX JNZ 0x001bf68a LEA RSI,[0x210e16] MOV EDI,0x4 XOR EAX,EAX CALL 0x001a9cb1 MOV EAX,dword ptr [0x002b03a4] LAB_001bf68a: MOV EDI,EAX CALL 0x0011be4a XOR EDI,EDI MOV ESI,R14D MOV EDX,EBX MOV ECX,0x4 MOV R8D,0x1 CALL 0x0011c760 MOV dword ptr [0x002b03a8],EAX LEA RAX,[0x282780] LEA RSI,[0x2b03ac] MOV EDI,0x1 CALL qword ptr [RAX] LEA RAX,[0x282030] MOV ESI,dword ptr [0x002b03ac] MOV EDI,0xde1 CALL qword ptr [RAX] CMP byte ptr [0x002b0372],0x1 JNZ 0x001bf710 LEA RAX,[0x283610] SUB RSP,0x8 MOV EDI,0xde1 XOR ESI,ESI MOV EDX,0x8c3a MOV ECX,R14D MOV R8D,EBX XOR R9D,R9D PUSH 0x0 PUSH 0x1406 PUSH 0x1907 CALL qword ptr [RAX] JMP 0x001bf76c LAB_001bf710: LEA RAX,[0x283610] MOV RAX,qword ptr [RAX] CMP byte ptr [0x002b0371],0x1 JNZ 0x001bf745 SUB RSP,0x8 MOV EDI,0xde1 XOR ESI,ESI MOV EDX,0x881b MOV ECX,R14D MOV R8D,EBX XOR R9D,R9D PUSH 0x0 PUSH 0x140b JMP 0x001bf765 LAB_001bf745: SUB RSP,0x8 MOV EDI,0xde1 XOR ESI,ESI MOV EDX,0x1907 MOV ECX,R14D MOV R8D,EBX XOR R9D,R9D PUSH 0x0 PUSH 0x1401 LAB_001bf765: PUSH 0x1907 CALL RAX LAB_001bf76c: ADD RSP,0x20 LEA RBX,[0x283650] MOV EDI,0xde1 MOV ESI,0x2801 MOV EDX,0x2600 CALL qword ptr [RBX] MOV EDI,0xde1 MOV ESI,0x2800 MOV EDX,0x2600 CALL qword ptr [RBX] MOV EDI,0xde1 MOV ESI,0x2802 MOV EDX,0x812f CALL qword ptr [RBX] MOV EDI,0xde1 MOV ESI,0x2803 MOV EDX,0x812f CALL qword ptr [RBX] LEA RAX,[0x2826d8] MOV ECX,dword ptr [0x002b0388] MOV EDI,0x8d40 MOV ESI,0x821a MOV EDX,0xde1 XOR R8D,R8D CALL qword ptr [RAX] MOV EDI,0x2 CALL 0x0011bece MOV EDI,dword ptr [0x002b03a4] MOV ESI,dword ptr [0x002b03a8] XOR EDX,EDX MOV ECX,0x64 XOR R8D,R8D CALL 0x0011e027 MOV EDI,dword ptr [0x002b03a4] MOV ESI,dword ptr [0x002b03ac] MOV EDX,0x1 MOV ECX,0x64 XOR R8D,R8D CALL 0x0011e027 MOV EDI,dword ptr [0x002b03a4] CALL 0x0011e13f TEST AL,AL JZ 0x001bf833 POP RBX POP R14 POP RBP RET LAB_001bf833: LEA RSI,[0x210e33] MOV EDI,0x4 XOR EAX,EAX POP RBX POP R14 POP RBP JMP 0x001a9cb1
void r3d_framebuffer_load_scene(int4 param_1,int4 param_2) { char cVar1; int8 uVar2; int8 uVar3; DAT_002b03a4 = rlLoadFramebuffer(); if (DAT_002b03a4 == 0) { TraceLog(4,"Failed to create framebuffer"); } rlEnableFramebuffer(DAT_002b03a4); DAT_002b03a8 = rlLoadTexture(0,param_1,param_2,4,1); (*glad_glGenTextures)(1,&DAT_002b03ac); (*glad_glBindTexture)(0xde1,DAT_002b03ac); if (DAT_002b0372 == '\x01') { (*glad_glTexImage2D)(0xde1,0,0x8c3a,param_1,param_2,0,0x1907,0x1406,0); } else { if (DAT_002b0371 == '\x01') { uVar2 = 0x881b; uVar3 = 0x140b; } else { uVar2 = 0x1907; uVar3 = 0x1401; } (*glad_glTexImage2D)(0xde1,0,uVar2,param_1,param_2,0,0x1907,uVar3,0); } (*glad_glTexParameteri)(0xde1,0x2801,0x2600); (*glad_glTexParameteri)(0xde1,0x2800,0x2600); (*glad_glTexParameteri)(0xde1,0x2802,0x812f); (*glad_glTexParameteri)(0xde1,0x2803,0x812f); (*glad_glFramebufferTexture2D)(0x8d40,0x821a,0xde1,DAT_002b0388,0); rlActiveDrawBuffers(2); rlFramebufferAttach(DAT_002b03a4,DAT_002b03a8,0,100,0); rlFramebufferAttach(DAT_002b03a4,DAT_002b03ac,1,100,0); cVar1 = rlFramebufferComplete(DAT_002b03a4); if (cVar1 != '\0') { return; } TraceLog(4,"Framebuffer is not complete"); return; }
47,707
maria_ft_parse_internal
eloqsql/storage/maria/ma_ft_parser.c
static int maria_ft_parse_internal(MYSQL_FTPARSER_PARAM *param, const char *doc_arg, int doc_len) { uchar *doc= (uchar*) doc_arg; uchar *end= doc + doc_len; MY_FT_PARSER_PARAM *ft_param=param->mysql_ftparam; TREE *wtree= ft_param->wtree; FT_WORD w; DBUG_ENTER("maria_ft_parse_internal"); while (maria_ft_simple_get_word(wtree->custom_arg, &doc, end, &w, TRUE)) if (param->mysql_add_word(param, (char*)w.pos, w.len, 0)) DBUG_RETURN(1); DBUG_RETURN(0); }
O3
c
maria_ft_parse_internal: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx leaq -0x48(%rbp), %r14 movq %rsi, (%r14) movslq %edx, %r15 addq %rsi, %r15 movq 0x18(%rdi), %rax movq (%rax), %r12 leaq -0x40(%rbp), %r13 movq 0x230(%r12), %rdi movq %r14, %rsi movq %r15, %rdx movq %r13, %rcx movl $0x1, %r8d callq 0x42523 testb %al, %al je 0x4275f movq -0x40(%rbp), %rsi movl -0x38(%rbp), %edx movq %rbx, %rdi xorl %ecx, %ecx callq *0x8(%rbx) testl %eax, %eax je 0x42725 movl $0x1, %eax jmp 0x42761 xorl %eax, %eax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
maria_ft_parse_internal: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov rbx, rdi lea r14, [rbp+var_48] mov [r14], rsi movsxd r15, edx add r15, rsi mov rax, [rdi+18h] mov r12, [rax] lea r13, [rbp+var_40] loc_42725: mov rdi, [r12+230h] mov rsi, r14 mov rdx, r15 mov rcx, r13 mov r8d, 1 call maria_ft_simple_get_word test al, al jz short loc_4275F mov rsi, [rbp+var_40] mov edx, [rbp+var_38] mov rdi, rbx xor ecx, ecx call qword ptr [rbx+8] test eax, eax jz short loc_42725 mov eax, 1 jmp short loc_42761 loc_4275F: xor eax, eax loc_42761: add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long maria_ft_parse_internal(long long a1, _BYTE *a2, int a3) { unsigned long long v3; // r15 long long v4; // r12 _BYTE *v6; // [rsp+8h] [rbp-48h] BYREF long long v7; // [rsp+10h] [rbp-40h] BYREF unsigned int v8; // [rsp+18h] [rbp-38h] v6 = a2; v3 = (unsigned long long)&a2[a3]; v4 = **(_QWORD **)(a1 + 24); while ( maria_ft_simple_get_word(*(_QWORD *)(v4 + 560), &v6, v3, &v7, 1) ) { if ( (*(unsigned int ( **)(long long, long long, _QWORD, _QWORD))(a1 + 8))(a1, v7, v8, 0LL) ) return 1LL; } return 0LL; }
maria_ft_parse_internal: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,RDI LEA R14,[RBP + -0x48] MOV qword ptr [R14],RSI MOVSXD R15,EDX ADD R15,RSI MOV RAX,qword ptr [RDI + 0x18] MOV R12,qword ptr [RAX] LEA R13,[RBP + -0x40] LAB_00142725: MOV RDI,qword ptr [R12 + 0x230] MOV RSI,R14 MOV RDX,R15 MOV RCX,R13 MOV R8D,0x1 CALL 0x00142523 TEST AL,AL JZ 0x0014275f MOV RSI,qword ptr [RBP + -0x40] MOV EDX,dword ptr [RBP + -0x38] MOV RDI,RBX XOR ECX,ECX CALL qword ptr [RBX + 0x8] TEST EAX,EAX JZ 0x00142725 MOV EAX,0x1 JMP 0x00142761 LAB_0014275f: XOR EAX,EAX LAB_00142761: ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 maria_ft_parse_internal(long param_1,long param_2,int param_3) { long lVar1; char cVar2; int iVar3; long local_50; int8 local_48; int4 local_40; lVar1 = **(long **)(param_1 + 0x18); local_50 = param_2; do { cVar2 = maria_ft_simple_get_word (*(int8 *)(lVar1 + 0x230),&local_50,param_3 + param_2,&local_48,1); if (cVar2 == '\0') { return 0; } iVar3 = (**(code **)(param_1 + 8))(param_1,local_48,local_40,0); } while (iVar3 == 0); return 1; }
47,708
LefDefParser::lefiLayer::setCurrentPoint(double, double)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiLayer.cpp
void lefiLayer::setCurrentPoint(double width, double current) { if (numCurrentPoints_ == currentPointsAllocated_) { int max = numCurrentPoints_; int len; int i; double *nc; double *nw; if (currentPointsAllocated_ == 0) len = currentPointsAllocated_ = 2; else len = currentPointsAllocated_ *= 2; nc = (double*) lefMalloc(sizeof(double) * len); nw = (double*) lefMalloc(sizeof(double) * len); for (i = 0; i < max; i++) { nc[i] = current_[i]; nw[i] = currentWidths_[i]; } lefFree((char*) (current_)); lefFree((char*) (currentWidths_)); current_ = nc; currentWidths_ = nw; } current_[numCurrentPoints_] = current; currentWidths_[numCurrentPoints_] = width; numCurrentPoints_ += 1; }
O0
cpp
LefDefParser::lefiLayer::setCurrentPoint(double, double): subq $0x48, %rsp movq %rdi, 0x40(%rsp) movsd %xmm0, 0x38(%rsp) movsd %xmm1, 0x30(%rsp) movq 0x40(%rsp), %rcx movq %rcx, 0x8(%rsp) movl 0x308(%rcx), %eax cmpl 0x30c(%rcx), %eax jne 0x22272 movq 0x8(%rsp), %rax movl 0x308(%rax), %ecx movl %ecx, 0x2c(%rsp) cmpl $0x0, 0x30c(%rax) jne 0x22192 movq 0x8(%rsp), %rax movl $0x2, 0x30c(%rax) movl $0x2, 0x28(%rsp) jmp 0x221a9 movq 0x8(%rsp), %rcx movl 0x30c(%rcx), %eax shll %eax movl %eax, 0x30c(%rcx) movl %eax, 0x28(%rsp) movslq 0x28(%rsp), %rdi shlq $0x3, %rdi callq 0x359d0 movq %rax, 0x18(%rsp) movslq 0x28(%rsp), %rdi shlq $0x3, %rdi callq 0x359d0 movq %rax, 0x10(%rsp) movl $0x0, 0x24(%rsp) movl 0x24(%rsp), %eax cmpl 0x2c(%rsp), %eax jge 0x22233 movq 0x8(%rsp), %rax movq 0x318(%rax), %rcx movslq 0x24(%rsp), %rdx movsd (%rcx,%rdx,8), %xmm0 movq 0x18(%rsp), %rcx movslq 0x24(%rsp), %rdx movsd %xmm0, (%rcx,%rdx,8) movq 0x310(%rax), %rax movslq 0x24(%rsp), %rcx movsd (%rax,%rcx,8), %xmm0 movq 0x10(%rsp), %rax movslq 0x24(%rsp), %rcx movsd %xmm0, (%rax,%rcx,8) movl 0x24(%rsp), %eax addl $0x1, %eax movl %eax, 0x24(%rsp) jmp 0x221d7 movq 0x8(%rsp), %rax movq 0x318(%rax), %rdi callq 0x38c90 movq 0x8(%rsp), %rax movq 0x310(%rax), %rdi callq 0x38c90 movq 0x8(%rsp), %rax movq 0x18(%rsp), %rcx movq %rcx, 0x318(%rax) movq 0x10(%rsp), %rcx movq %rcx, 0x310(%rax) movq 0x8(%rsp), %rax movsd 0x30(%rsp), %xmm0 movq 0x318(%rax), %rcx movslq 0x308(%rax), %rdx movsd %xmm0, (%rcx,%rdx,8) movsd 0x38(%rsp), %xmm0 movq 0x310(%rax), %rcx movslq 0x308(%rax), %rdx movsd %xmm0, (%rcx,%rdx,8) movl 0x308(%rax), %ecx addl $0x1, %ecx movl %ecx, 0x308(%rax) addq $0x48, %rsp retq nopl (%rax)
_ZN12LefDefParser9lefiLayer15setCurrentPointEdd: sub rsp, 48h mov [rsp+48h+var_8], rdi movsd [rsp+48h+var_10], xmm0 movsd [rsp+48h+var_18], xmm1 mov rcx, [rsp+48h+var_8] mov [rsp+48h+var_40], rcx mov eax, [rcx+308h] cmp eax, [rcx+30Ch] jnz loc_22272 mov rax, [rsp+48h+var_40] mov ecx, [rax+308h] mov [rsp+48h+var_1C], ecx cmp dword ptr [rax+30Ch], 0 jnz short loc_22192 mov rax, [rsp+48h+var_40] mov dword ptr [rax+30Ch], 2 mov [rsp+48h+var_20], 2 jmp short loc_221A9 loc_22192: mov rcx, [rsp+48h+var_40] mov eax, [rcx+30Ch] shl eax, 1 mov [rcx+30Ch], eax mov [rsp+48h+var_20], eax loc_221A9: movsxd rdi, [rsp+48h+var_20] shl rdi, 3; this call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong) mov [rsp+48h+var_30], rax movsxd rdi, [rsp+48h+var_20] shl rdi, 3; this call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong) mov [rsp+48h+var_38], rax mov [rsp+48h+var_24], 0 loc_221D7: mov eax, [rsp+48h+var_24] cmp eax, [rsp+48h+var_1C] jge short loc_22233 mov rax, [rsp+48h+var_40] mov rcx, [rax+318h] movsxd rdx, [rsp+48h+var_24] movsd xmm0, qword ptr [rcx+rdx*8] mov rcx, [rsp+48h+var_30] movsxd rdx, [rsp+48h+var_24] movsd qword ptr [rcx+rdx*8], xmm0 mov rax, [rax+310h] movsxd rcx, [rsp+48h+var_24] movsd xmm0, qword ptr [rax+rcx*8] mov rax, [rsp+48h+var_38] movsxd rcx, [rsp+48h+var_24] movsd qword ptr [rax+rcx*8], xmm0 mov eax, [rsp+48h+var_24] add eax, 1 mov [rsp+48h+var_24], eax jmp short loc_221D7 loc_22233: mov rax, [rsp+48h+var_40] mov rdi, [rax+318h]; this call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *) mov rax, [rsp+48h+var_40] mov rdi, [rax+310h]; this call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *) mov rax, [rsp+48h+var_40] mov rcx, [rsp+48h+var_30] mov [rax+318h], rcx mov rcx, [rsp+48h+var_38] mov [rax+310h], rcx loc_22272: mov rax, [rsp+48h+var_40] movsd xmm0, [rsp+48h+var_18] mov rcx, [rax+318h] movsxd rdx, dword ptr [rax+308h] movsd qword ptr [rcx+rdx*8], xmm0 movsd xmm0, [rsp+48h+var_10] mov rcx, [rax+310h] movsxd rdx, dword ptr [rax+308h] movsd qword ptr [rcx+rdx*8], xmm0 mov ecx, [rax+308h] add ecx, 1 mov [rax+308h], ecx add rsp, 48h retn
LefDefParser::lefiLayer * LefDefParser::lefiLayer::setCurrentPoint( LefDefParser::lefiLayer *this, double a2, double a3, void *a4) { int v4; // eax LefDefParser::lefiLayer *result; // rax long long v6; // [rsp+10h] [rbp-38h] long long v7; // [rsp+18h] [rbp-30h] int i; // [rsp+24h] [rbp-24h] int v9; // [rsp+28h] [rbp-20h] int v10; // [rsp+2Ch] [rbp-1Ch] if ( *((_DWORD *)this + 194) == *((_DWORD *)this + 195) ) { v10 = *((_DWORD *)this + 194); if ( *((_DWORD *)this + 195) ) { v4 = 2 * *((_DWORD *)this + 195); *((_DWORD *)this + 195) = v4; v9 = v4; } else { *((_DWORD *)this + 195) = 2; v9 = 2; } v7 = LefDefParser::lefMalloc((LefDefParser *)(8LL * v9), (unsigned long long)a4); v6 = LefDefParser::lefMalloc((LefDefParser *)(8LL * v9), (unsigned long long)a4); for ( i = 0; i < v10; ++i ) { *(_QWORD *)(v7 + 8LL * i) = *(_QWORD *)(*((_QWORD *)this + 99) + 8LL * i); *(_QWORD *)(v6 + 8LL * i) = *(_QWORD *)(*((_QWORD *)this + 98) + 8LL * i); } LefDefParser::lefFree(*((LefDefParser **)this + 99), a4); LefDefParser::lefFree(*((LefDefParser **)this + 98), a4); *((_QWORD *)this + 99) = v7; *((_QWORD *)this + 98) = v6; } result = this; *(double *)(*((_QWORD *)this + 99) + 8LL * *((int *)this + 194)) = a3; *(double *)(*((_QWORD *)this + 98) + 8LL * (int)(*((_DWORD *)this + 194))++) = a2; return result; }
setCurrentPoint: SUB RSP,0x48 MOV qword ptr [RSP + 0x40],RDI MOVSD qword ptr [RSP + 0x38],XMM0 MOVSD qword ptr [RSP + 0x30],XMM1 MOV RCX,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0x8],RCX MOV EAX,dword ptr [RCX + 0x308] CMP EAX,dword ptr [RCX + 0x30c] JNZ 0x00122272 MOV RAX,qword ptr [RSP + 0x8] MOV ECX,dword ptr [RAX + 0x308] MOV dword ptr [RSP + 0x2c],ECX CMP dword ptr [RAX + 0x30c],0x0 JNZ 0x00122192 MOV RAX,qword ptr [RSP + 0x8] MOV dword ptr [RAX + 0x30c],0x2 MOV dword ptr [RSP + 0x28],0x2 JMP 0x001221a9 LAB_00122192: MOV RCX,qword ptr [RSP + 0x8] MOV EAX,dword ptr [RCX + 0x30c] SHL EAX,0x1 MOV dword ptr [RCX + 0x30c],EAX MOV dword ptr [RSP + 0x28],EAX LAB_001221a9: MOVSXD RDI,dword ptr [RSP + 0x28] SHL RDI,0x3 CALL 0x001359d0 MOV qword ptr [RSP + 0x18],RAX MOVSXD RDI,dword ptr [RSP + 0x28] SHL RDI,0x3 CALL 0x001359d0 MOV qword ptr [RSP + 0x10],RAX MOV dword ptr [RSP + 0x24],0x0 LAB_001221d7: MOV EAX,dword ptr [RSP + 0x24] CMP EAX,dword ptr [RSP + 0x2c] JGE 0x00122233 MOV RAX,qword ptr [RSP + 0x8] MOV RCX,qword ptr [RAX + 0x318] MOVSXD RDX,dword ptr [RSP + 0x24] MOVSD XMM0,qword ptr [RCX + RDX*0x8] MOV RCX,qword ptr [RSP + 0x18] MOVSXD RDX,dword ptr [RSP + 0x24] MOVSD qword ptr [RCX + RDX*0x8],XMM0 MOV RAX,qword ptr [RAX + 0x310] MOVSXD RCX,dword ptr [RSP + 0x24] MOVSD XMM0,qword ptr [RAX + RCX*0x8] MOV RAX,qword ptr [RSP + 0x10] MOVSXD RCX,dword ptr [RSP + 0x24] MOVSD qword ptr [RAX + RCX*0x8],XMM0 MOV EAX,dword ptr [RSP + 0x24] ADD EAX,0x1 MOV dword ptr [RSP + 0x24],EAX JMP 0x001221d7 LAB_00122233: MOV RAX,qword ptr [RSP + 0x8] MOV RDI,qword ptr [RAX + 0x318] CALL 0x00138c90 MOV RAX,qword ptr [RSP + 0x8] MOV RDI,qword ptr [RAX + 0x310] CALL 0x00138c90 MOV RAX,qword ptr [RSP + 0x8] MOV RCX,qword ptr [RSP + 0x18] MOV qword ptr [RAX + 0x318],RCX MOV RCX,qword ptr [RSP + 0x10] MOV qword ptr [RAX + 0x310],RCX LAB_00122272: MOV RAX,qword ptr [RSP + 0x8] MOVSD XMM0,qword ptr [RSP + 0x30] MOV RCX,qword ptr [RAX + 0x318] MOVSXD RDX,dword ptr [RAX + 0x308] MOVSD qword ptr [RCX + RDX*0x8],XMM0 MOVSD XMM0,qword ptr [RSP + 0x38] MOV RCX,qword ptr [RAX + 0x310] MOVSXD RDX,dword ptr [RAX + 0x308] MOVSD qword ptr [RCX + RDX*0x8],XMM0 MOV ECX,dword ptr [RAX + 0x308] ADD ECX,0x1 MOV dword ptr [RAX + 0x308],ECX ADD RSP,0x48 RET
/* LefDefParser::lefiLayer::setCurrentPoint(double, double) */ void __thiscall LefDefParser::lefiLayer::setCurrentPoint(lefiLayer *this,double param_1,double param_2) { int iVar1; long lVar2; long lVar3; int local_24; int local_20; if (*(int *)(this + 0x308) == *(int *)(this + 0x30c)) { iVar1 = *(int *)(this + 0x308); if (*(int *)(this + 0x30c) == 0) { *(int4 *)(this + 0x30c) = 2; local_20 = 2; } else { local_20 = *(int *)(this + 0x30c) << 1; *(int *)(this + 0x30c) = local_20; } lVar2 = lefMalloc((long)local_20 << 3); lVar3 = lefMalloc((long)local_20 << 3); for (local_24 = 0; local_24 < iVar1; local_24 = local_24 + 1) { *(int8 *)(lVar2 + (long)local_24 * 8) = *(int8 *)(*(long *)(this + 0x318) + (long)local_24 * 8); *(int8 *)(lVar3 + (long)local_24 * 8) = *(int8 *)(*(long *)(this + 0x310) + (long)local_24 * 8); } lefFree(*(void **)(this + 0x318)); lefFree(*(void **)(this + 0x310)); *(long *)(this + 0x318) = lVar2; *(long *)(this + 0x310) = lVar3; } *(double *)(*(long *)(this + 0x318) + (long)*(int *)(this + 0x308) * 8) = param_2; *(double *)(*(long *)(this + 0x310) + (long)*(int *)(this + 0x308) * 8) = param_1; *(int *)(this + 0x308) = *(int *)(this + 0x308) + 1; return; }
47,709
LefDefParser::lefiLayer::setCurrentPoint(double, double)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiLayer.cpp
void lefiLayer::setCurrentPoint(double width, double current) { if (numCurrentPoints_ == currentPointsAllocated_) { int max = numCurrentPoints_; int len; int i; double *nc; double *nw; if (currentPointsAllocated_ == 0) len = currentPointsAllocated_ = 2; else len = currentPointsAllocated_ *= 2; nc = (double*) lefMalloc(sizeof(double) * len); nw = (double*) lefMalloc(sizeof(double) * len); for (i = 0; i < max; i++) { nc[i] = current_[i]; nw[i] = currentWidths_[i]; } lefFree((char*) (current_)); lefFree((char*) (currentWidths_)); current_ = nc; currentWidths_ = nw; } current_[numCurrentPoints_] = current; currentWidths_[numCurrentPoints_] = width; numCurrentPoints_ += 1; }
O3
cpp
LefDefParser::lefiLayer::setCurrentPoint(double, double): pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdi, %rbx movl 0x308(%rdi), %r12d cmpl 0x30c(%rdi), %r12d jne 0x1a16d movsd %xmm1, 0x8(%rsp) movsd %xmm0, 0x10(%rsp) leal (%r12,%r12), %eax testl %r12d, %r12d movl $0x2, %ecx cmovnel %eax, %ecx movl %ecx, 0x30c(%rbx) movslq %ecx, %r15 shlq $0x3, %r15 movq %r15, %rdi callq 0x24985 movq %rax, %r14 movq %r15, %rdi callq 0x24985 movq %rax, %r15 movq 0x318(%rbx), %rdi testl %r12d, %r12d jle 0x1a139 movq 0x310(%rbx), %rax xorl %ecx, %ecx movsd (%rdi,%rcx,8), %xmm0 movsd %xmm0, (%r14,%rcx,8) movsd (%rax,%rcx,8), %xmm0 movsd %xmm0, (%r15,%rcx,8) incq %rcx cmpq %rcx, %r12 jne 0x1a11b callq 0x26040 movq 0x310(%rbx), %rdi callq 0x26040 movq %r14, 0x318(%rbx) movq %r15, 0x310(%rbx) movl 0x308(%rbx), %r12d movsd 0x10(%rsp), %xmm0 movsd 0x8(%rsp), %xmm1 jmp 0x1a17b movq 0x310(%rbx), %r15 movq 0x318(%rbx), %r14 movslq %r12d, %rax movsd %xmm1, (%r14,%rax,8) movsd %xmm0, (%r15,%rax,8) incl %eax movl %eax, 0x308(%rbx) addq $0x18, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
_ZN12LefDefParser9lefiLayer15setCurrentPointEdd: push r15 push r14 push r12 push rbx sub rsp, 18h mov rbx, rdi mov r12d, [rdi+308h] cmp r12d, [rdi+30Ch] jnz loc_1A16D movsd [rsp+38h+var_30], xmm1 movsd [rsp+38h+var_28], xmm0 lea eax, [r12+r12] test r12d, r12d mov ecx, 2 cmovnz ecx, eax mov [rbx+30Ch], ecx movsxd r15, ecx shl r15, 3 mov rdi, r15; this call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong) mov r14, rax mov rdi, r15; this call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong) mov r15, rax mov rdi, [rbx+318h]; this test r12d, r12d jle short loc_1A139 mov rax, [rbx+310h] xor ecx, ecx loc_1A11B: movsd xmm0, qword ptr [rdi+rcx*8] movsd qword ptr [r14+rcx*8], xmm0 movsd xmm0, qword ptr [rax+rcx*8] movsd qword ptr [r15+rcx*8], xmm0 inc rcx cmp r12, rcx jnz short loc_1A11B loc_1A139: call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *) mov rdi, [rbx+310h]; this call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *) mov [rbx+318h], r14 mov [rbx+310h], r15 mov r12d, [rbx+308h] movsd xmm0, [rsp+38h+var_28] movsd xmm1, [rsp+38h+var_30] jmp short loc_1A17B loc_1A16D: mov r15, [rbx+310h] mov r14, [rbx+318h] loc_1A17B: movsxd rax, r12d movsd qword ptr [r14+rax*8], xmm1 movsd qword ptr [r15+rax*8], xmm0 inc eax mov [rbx+308h], eax add rsp, 18h pop rbx pop r12 pop r14 pop r15 retn
long long LefDefParser::lefiLayer::setCurrentPoint( LefDefParser::lefiLayer *this, double a2, double a3, void *a4) { long long v5; // r12 int v6; // ecx LefDefParser *v7; // r15 long long v8; // r14 long long v9; // r15 LefDefParser *v10; // rdi long long v11; // rax long long i; // rcx long long result; // rax v5 = *((unsigned int *)this + 194); if ( (_DWORD)v5 == *((_DWORD *)this + 195) ) { v6 = 2; if ( (_DWORD)v5 ) v6 = 2 * v5; *((_DWORD *)this + 195) = v6; v7 = (LefDefParser *)(8LL * v6); v8 = LefDefParser::lefMalloc(v7, (unsigned long long)a4); v9 = LefDefParser::lefMalloc(v7, (unsigned long long)a4); v10 = (LefDefParser *)*((_QWORD *)this + 99); if ( (int)v5 > 0 ) { v11 = *((_QWORD *)this + 98); for ( i = 0LL; i != v5; ++i ) { *(_QWORD *)(v8 + 8 * i) = *((_QWORD *)v10 + i); *(_QWORD *)(v9 + 8 * i) = *(_QWORD *)(v11 + 8 * i); } } LefDefParser::lefFree(v10, a4); LefDefParser::lefFree(*((LefDefParser **)this + 98), a4); *((_QWORD *)this + 99) = v8; *((_QWORD *)this + 98) = v9; LODWORD(v5) = *((_DWORD *)this + 194); } else { v9 = *((_QWORD *)this + 98); v8 = *((_QWORD *)this + 99); } *(double *)(v8 + 8LL * (int)v5) = a3; *(double *)(v9 + 8LL * (int)v5) = a2; result = (unsigned int)(v5 + 1); *((_DWORD *)this + 194) = result; return result; }
setCurrentPoint: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x18 MOV RBX,RDI MOV R12D,dword ptr [RDI + 0x308] CMP R12D,dword ptr [RDI + 0x30c] JNZ 0x0011a16d MOVSD qword ptr [RSP + 0x8],XMM1 MOVSD qword ptr [RSP + 0x10],XMM0 LEA EAX,[R12 + R12*0x1] TEST R12D,R12D MOV ECX,0x2 CMOVNZ ECX,EAX MOV dword ptr [RBX + 0x30c],ECX MOVSXD R15,ECX SHL R15,0x3 MOV RDI,R15 CALL 0x00124985 MOV R14,RAX MOV RDI,R15 CALL 0x00124985 MOV R15,RAX MOV RDI,qword ptr [RBX + 0x318] TEST R12D,R12D JLE 0x0011a139 MOV RAX,qword ptr [RBX + 0x310] XOR ECX,ECX LAB_0011a11b: MOVSD XMM0,qword ptr [RDI + RCX*0x8] MOVSD qword ptr [R14 + RCX*0x8],XMM0 MOVSD XMM0,qword ptr [RAX + RCX*0x8] MOVSD qword ptr [R15 + RCX*0x8],XMM0 INC RCX CMP R12,RCX JNZ 0x0011a11b LAB_0011a139: CALL 0x00126040 MOV RDI,qword ptr [RBX + 0x310] CALL 0x00126040 MOV qword ptr [RBX + 0x318],R14 MOV qword ptr [RBX + 0x310],R15 MOV R12D,dword ptr [RBX + 0x308] MOVSD XMM0,qword ptr [RSP + 0x10] MOVSD XMM1,qword ptr [RSP + 0x8] JMP 0x0011a17b LAB_0011a16d: MOV R15,qword ptr [RBX + 0x310] MOV R14,qword ptr [RBX + 0x318] LAB_0011a17b: MOVSXD RAX,R12D MOVSD qword ptr [R14 + RAX*0x8],XMM1 MOVSD qword ptr [R15 + RAX*0x8],XMM0 INC EAX MOV dword ptr [RBX + 0x308],EAX ADD RSP,0x18 POP RBX POP R12 POP R14 POP R15 RET
/* LefDefParser::lefiLayer::setCurrentPoint(double, double) */ void LefDefParser::lefiLayer::setCurrentPoint(double param_1,double param_2) { void *pvVar1; long lVar2; long lVar3; long lVar4; int iVar5; ulong uVar6; ulong in_RSI; long in_RDI; uint uVar7; uVar7 = *(uint *)(in_RDI + 0x308); if (uVar7 == *(uint *)(in_RDI + 0x30c)) { iVar5 = 2; if (uVar7 != 0) { iVar5 = uVar7 * 2; } *(int *)(in_RDI + 0x30c) = iVar5; lVar3 = lefMalloc((LefDefParser *)((long)iVar5 << 3),in_RSI); lVar4 = lefMalloc((LefDefParser *)((long)iVar5 << 3),in_RSI); pvVar1 = *(void **)(in_RDI + 0x318); if (0 < (int)uVar7) { lVar2 = *(long *)(in_RDI + 0x310); uVar6 = 0; do { *(int8 *)(lVar3 + uVar6 * 8) = *(int8 *)((long)pvVar1 + uVar6 * 8); *(int8 *)(lVar4 + uVar6 * 8) = *(int8 *)(lVar2 + uVar6 * 8); uVar6 = uVar6 + 1; } while (uVar7 != uVar6); } lefFree(pvVar1); lefFree(*(void **)(in_RDI + 0x310)); *(long *)(in_RDI + 0x318) = lVar3; *(long *)(in_RDI + 0x310) = lVar4; uVar7 = *(uint *)(in_RDI + 0x308); } else { lVar4 = *(long *)(in_RDI + 0x310); lVar3 = *(long *)(in_RDI + 0x318); } *(double *)(lVar3 + (long)(int)uVar7 * 8) = param_2; *(double *)(lVar4 + (long)(int)uVar7 * 8) = param_1; *(uint *)(in_RDI + 0x308) = uVar7 + 1; return; }
47,710
voxel_atlas::find_or_load(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&)
untodesu[P]voxelius/game/client/voxel_atlas.cc
AtlasStrip *voxel_atlas::find_or_load(const std::vector<std::string> &paths) { const std::size_t hash_value = vector_hash(paths); for(AtlasPlane &plane : planes) { if(AtlasStrip *strip = plane_lookup(plane, hash_value)) return strip; continue; } for(AtlasPlane &plane : planes) { if((plane.layer_count + paths.size()) <= plane.layer_count_max) return plane_new_strip(plane, paths, hash_value); continue; } return nullptr; }
O0
cpp
voxel_atlas::find_or_load(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&): pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rdi callq 0x139920 movq %rax, -0x18(%rbp) leaq 0x3d6708(%rip), %rax # 0x50ff08 movq %rax, -0x20(%rbp) leaq 0x3d66fd(%rip), %rdi # 0x50ff08 callq 0x13a000 movq %rax, -0x28(%rbp) leaq 0x3d66ed(%rip), %rdi # 0x50ff08 callq 0x13a030 movq %rax, -0x30(%rbp) leaq -0x28(%rbp), %rdi leaq -0x30(%rbp), %rsi callq 0x13a060 testb $0x1, %al jne 0x139837 jmp 0x139876 leaq -0x28(%rbp), %rdi callq 0x13a0a0 movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0x1399b0 movq %rax, -0x40(%rbp) cmpq $0x0, -0x40(%rbp) je 0x139869 movq -0x40(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x139916 jmp 0x13986b leaq -0x28(%rbp), %rdi callq 0x13a0c0 jmp 0x139824 leaq 0x3d668b(%rip), %rax # 0x50ff08 movq %rax, -0x48(%rbp) leaq 0x3d6680(%rip), %rdi # 0x50ff08 callq 0x13a000 movq %rax, -0x50(%rbp) leaq 0x3d6670(%rip), %rdi # 0x50ff08 callq 0x13a030 movq %rax, -0x58(%rbp) leaq -0x50(%rbp), %rdi leaq -0x58(%rbp), %rsi callq 0x13a060 testb $0x1, %al jne 0x1398b4 jmp 0x13990e leaq -0x50(%rbp), %rdi callq 0x13a0a0 movq %rax, -0x60(%rbp) movq -0x60(%rbp), %rax movq 0x58(%rax), %rax movq %rax, -0x68(%rbp) movq -0x10(%rbp), %rdi callq 0x63d70 movq %rax, %rcx movq -0x68(%rbp), %rax addq %rcx, %rax movq -0x60(%rbp), %rcx cmpq 0x50(%rcx), %rax ja 0x139901 movq -0x60(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx callq 0x139a30 movq %rax, -0x8(%rbp) jmp 0x139916 jmp 0x139903 leaq -0x50(%rbp), %rdi callq 0x13a0c0 jmp 0x1398a1 movq $0x0, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x70, %rsp popq %rbp retq
_ZN11voxel_atlas12find_or_loadERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EE: push rbp mov rbp, rsp sub rsp, 70h mov [rbp+var_10], rdi mov rdi, [rbp+var_10] call _ZL11vector_hashRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE; vector_hash(std::vector<std::string> const&) mov [rbp+var_18], rax lea rax, _ZL6planes; planes mov [rbp+var_20], rax lea rdi, _ZL6planes; planes call _ZNSt6vectorI10AtlasPlaneSaIS0_EE5beginEv; std::vector<AtlasPlane>::begin(void) mov [rbp+var_28], rax lea rdi, _ZL6planes; planes call _ZNSt6vectorI10AtlasPlaneSaIS0_EE3endEv; std::vector<AtlasPlane>::end(void) mov [rbp+var_30], rax loc_139824: lea rdi, [rbp+var_28] lea rsi, [rbp+var_30] call _ZN9__gnu_cxxneIP10AtlasPlaneSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_; __gnu_cxx::operator!=<AtlasPlane *,std::vector<AtlasPlane>>(__gnu_cxx::__normal_iterator<AtlasPlane *,std::vector<AtlasPlane>> const&,__gnu_cxx::__normal_iterator<AtlasPlane *,std::vector<AtlasPlane>> const&) test al, 1 jnz short loc_139837 jmp short loc_139876 loc_139837: lea rdi, [rbp+var_28] call _ZNK9__gnu_cxx17__normal_iteratorIP10AtlasPlaneSt6vectorIS1_SaIS1_EEEdeEv; __gnu_cxx::__normal_iterator<AtlasPlane *,std::vector<AtlasPlane>>::operator*(void) mov [rbp+var_38], rax mov rdi, [rbp+var_38] mov rsi, [rbp+var_18] call _ZL12plane_lookupR10AtlasPlanem; plane_lookup(AtlasPlane &,ulong) mov [rbp+var_40], rax cmp [rbp+var_40], 0 jz short loc_139869 mov rax, [rbp+var_40] mov [rbp+var_8], rax jmp loc_139916 loc_139869: jmp short $+2 loc_13986B: lea rdi, [rbp+var_28] call _ZN9__gnu_cxx17__normal_iteratorIP10AtlasPlaneSt6vectorIS1_SaIS1_EEEppEv; __gnu_cxx::__normal_iterator<AtlasPlane *,std::vector<AtlasPlane>>::operator++(void) jmp short loc_139824 loc_139876: lea rax, _ZL6planes; planes mov [rbp+var_48], rax lea rdi, _ZL6planes; planes call _ZNSt6vectorI10AtlasPlaneSaIS0_EE5beginEv; std::vector<AtlasPlane>::begin(void) mov [rbp+var_50], rax lea rdi, _ZL6planes; planes call _ZNSt6vectorI10AtlasPlaneSaIS0_EE3endEv; std::vector<AtlasPlane>::end(void) mov [rbp+var_58], rax loc_1398A1: lea rdi, [rbp+var_50] lea rsi, [rbp+var_58] call _ZN9__gnu_cxxneIP10AtlasPlaneSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_; __gnu_cxx::operator!=<AtlasPlane *,std::vector<AtlasPlane>>(__gnu_cxx::__normal_iterator<AtlasPlane *,std::vector<AtlasPlane>> const&,__gnu_cxx::__normal_iterator<AtlasPlane *,std::vector<AtlasPlane>> const&) test al, 1 jnz short loc_1398B4 jmp short loc_13990E loc_1398B4: lea rdi, [rbp+var_50] call _ZNK9__gnu_cxx17__normal_iteratorIP10AtlasPlaneSt6vectorIS1_SaIS1_EEEdeEv; __gnu_cxx::__normal_iterator<AtlasPlane *,std::vector<AtlasPlane>>::operator*(void) mov [rbp+var_60], rax mov rax, [rbp+var_60] mov rax, [rax+58h] mov [rbp+var_68], rax mov rdi, [rbp+var_10] call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv; std::vector<std::string>::size(void) mov rcx, rax mov rax, [rbp+var_68] add rax, rcx mov rcx, [rbp+var_60] cmp rax, [rcx+50h] ja short loc_139901 mov rdi, [rbp+var_60] mov rsi, [rbp+var_10] mov rdx, [rbp+var_18] call _ZL15plane_new_stripR10AtlasPlaneRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEm; plane_new_strip(AtlasPlane &,std::vector<std::string> const&,ulong) mov [rbp+var_8], rax jmp short loc_139916 loc_139901: jmp short $+2 loc_139903: lea rdi, [rbp+var_50] call _ZN9__gnu_cxx17__normal_iteratorIP10AtlasPlaneSt6vectorIS1_SaIS1_EEEppEv; __gnu_cxx::__normal_iterator<AtlasPlane *,std::vector<AtlasPlane>>::operator++(void) jmp short loc_1398A1 loc_13990E: mov [rbp+var_8], 0 loc_139916: mov rax, [rbp+var_8] add rsp, 70h pop rbp retn
long long voxel_atlas::find_or_load(_QWORD *a1) { long long v2; // [rsp+8h] [rbp-68h] long long v3; // [rsp+10h] [rbp-60h] long long v4; // [rsp+18h] [rbp-58h] BYREF _QWORD v5[2]; // [rsp+20h] [rbp-50h] BYREF long long v6; // [rsp+30h] [rbp-40h] AtlasPlane *v7; // [rsp+38h] [rbp-38h] long long v8; // [rsp+40h] [rbp-30h] BYREF _QWORD v9[2]; // [rsp+48h] [rbp-28h] BYREF unsigned long long v10; // [rsp+58h] [rbp-18h] _QWORD *v11; // [rsp+60h] [rbp-10h] v11 = a1; v10 = vector_hash(a1); v9[1] = &planes; v9[0] = std::vector<AtlasPlane>::begin(&planes); v8 = std::vector<AtlasPlane>::end(&planes); while ( (__gnu_cxx::operator!=<AtlasPlane *,std::vector<AtlasPlane>>(v9, &v8) & 1) != 0 ) { v7 = (AtlasPlane *)__gnu_cxx::__normal_iterator<AtlasPlane *,std::vector<AtlasPlane>>::operator*(v9); v6 = plane_lookup(v7, v10); if ( v6 ) return v6; __gnu_cxx::__normal_iterator<AtlasPlane *,std::vector<AtlasPlane>>::operator++(v9); } v5[1] = &planes; v5[0] = std::vector<AtlasPlane>::begin(&planes); v4 = std::vector<AtlasPlane>::end(&planes); while ( (__gnu_cxx::operator!=<AtlasPlane *,std::vector<AtlasPlane>>(v5, &v4) & 1) != 0 ) { v3 = __gnu_cxx::__normal_iterator<AtlasPlane *,std::vector<AtlasPlane>>::operator*(v5); v2 = *(_QWORD *)(v3 + 88); if ( (unsigned long long)(std::vector<std::string>::size(v11) + v2) <= *(_QWORD *)(v3 + 80) ) return plane_new_strip(v3, v11, v10); __gnu_cxx::__normal_iterator<AtlasPlane *,std::vector<AtlasPlane>>::operator++(v5); } return 0LL; }
new_allocator: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI POP RBP RET
/* __gnu_cxx::new_allocator<unsigned long>::new_allocator() */ void __gnu_cxx::new_allocator<unsigned_long>::new_allocator(void) { return; }
47,711
my_rw_rdlock
eloqsql/mysys/thr_rwlock.c
int my_rw_rdlock(my_rw_lock_t *rwp) { pthread_mutex_lock(&rwp->lock); /* active or queued writers */ while (( rwp->state < 0 ) || rwp->waiters) pthread_cond_wait( &rwp->readers, &rwp->lock); rwp->state++; pthread_mutex_unlock(&rwp->lock); return(0); }
O3
c
my_rw_rdlock: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rdi, %rbx callq 0x5f2e0 leaq 0x28(%rbx), %r14 movl 0x88(%rbx), %eax testl %eax, %eax js 0x9f192 cmpl $0x0, 0x8c(%rbx) je 0x9f19f movq %r14, %rdi movq %rbx, %rsi callq 0x5f5a0 jmp 0x9f17f incl %eax movl %eax, 0x88(%rbx) movq %rbx, %rdi callq 0x5f290 xorl %eax, %eax popq %rbx popq %r14 popq %rbp retq
my_rw_rdlock: push rbp mov rbp, rsp push r14 push rbx mov rbx, rdi call _pthread_mutex_lock lea r14, [rbx+28h] loc_9F17F: mov eax, [rbx+88h] test eax, eax js short loc_9F192 cmp dword ptr [rbx+8Ch], 0 jz short loc_9F19F loc_9F192: mov rdi, r14 mov rsi, rbx call _pthread_cond_wait jmp short loc_9F17F loc_9F19F: inc eax mov [rbx+88h], eax mov rdi, rbx call _pthread_mutex_unlock xor eax, eax pop rbx pop r14 pop rbp retn
long long my_rw_rdlock(long long a1) { int v1; // eax pthread_mutex_lock(a1); while ( 1 ) { v1 = *(_DWORD *)(a1 + 136); if ( v1 >= 0 && !*(_DWORD *)(a1 + 140) ) break; pthread_cond_wait(a1 + 40, a1); } *(_DWORD *)(a1 + 136) = v1 + 1; pthread_mutex_unlock(a1); return 0LL; }
my_rw_rdlock: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV RBX,RDI CALL 0x0015f2e0 LEA R14,[RBX + 0x28] LAB_0019f17f: MOV EAX,dword ptr [RBX + 0x88] TEST EAX,EAX JS 0x0019f192 CMP dword ptr [RBX + 0x8c],0x0 JZ 0x0019f19f LAB_0019f192: MOV RDI,R14 MOV RSI,RBX CALL 0x0015f5a0 JMP 0x0019f17f LAB_0019f19f: INC EAX MOV dword ptr [RBX + 0x88],EAX MOV RDI,RBX CALL 0x0015f290 XOR EAX,EAX POP RBX POP R14 POP RBP RET
int8 my_rw_rdlock(pthread_mutex_t *param_1) { pthread_mutex_lock(param_1); while ((*(int *)((long)param_1 + 0x88) < 0 || (*(int *)((long)param_1 + 0x8c) != 0))) { pthread_cond_wait((pthread_cond_t *)(param_1 + 1),param_1); } *(int *)((long)param_1 + 0x88) = *(int *)((long)param_1 + 0x88) + 1; pthread_mutex_unlock(param_1); return 0; }
47,712
clip_init
llama.cpp/examples/llava/clip.cpp
struct clip_ctx * clip_init(const char * fname, struct clip_context_params ctx_params) { g_logger_state.verbosity_thold = ctx_params.verbosity; clip_ctx * ctx_clip = new clip_ctx(ctx_params); try { clip_model_loader loader(fname, *ctx_clip); loader.load_hparams(); loader.load_tensors(); loader.alloc_compute_meta(); } catch (const std::exception & e) { LOG_ERR("%s: failed to load model '%s': %s\n", __func__, fname, e.what()); delete ctx_clip; return nullptr; } return ctx_clip; }
O3
cpp
clip_init: pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x50, %rsp movq %rdi, %r14 leaq 0x48(%rsp), %r15 movq %rsi, (%r15) shrq $0x20, %rsi leaq 0x15ea6b(%rip), %r13 # 0x18fe30 movl %esi, (%r13) movl $0x3a8, %edi # imm = 0x3A8 callq 0x23290 movq %rax, %rbx movq %rax, %rdi movq %r15, %rsi callq 0x46d9c leaq 0x8(%rsp), %rdi movq %r14, %rsi movq %rbx, %rdx callq 0x47072 leaq 0x8(%rsp), %rdi callq 0x475b4 leaq 0x8(%rsp), %rdi callq 0x48136 leaq 0x8(%rsp), %rdi callq 0x4b81c leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x3142a movq 0x30(%rsp), %rsi incq %rsi callq 0x231f0 leaq 0x10(%rsp), %rdi callq 0x4c152 leaq 0x8(%rsp), %rdi callq 0x4c278 movq %rbx, %rax addq $0x50, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq movq %rdx, %r12 movq %rax, %r15 jmp 0x3147f movq %rax, %r15 movl $0x3a8, %esi # imm = 0x3A8 movq %rbx, %rdi callq 0x231f0 movq %r15, %rdi callq 0x23ee0 movq %rdx, %r12 movq %rax, %r15 leaq 0x8(%rsp), %rdi callq 0x4b962 cmpl $0x1, %r12d jne 0x31467 movq %r15, %rdi callq 0x23120 cmpl $0x4, (%r13) jg 0x314bd movq (%rax), %rcx movq %rax, %rdi callq *0x10(%rcx) leaq 0x1071c7(%rip), %rsi # 0x13866b leaq 0x1071e3(%rip), %rdx # 0x13868e movl $0x4, %edi movq %r14, %rcx movq %rax, %r8 xorl %eax, %eax callq 0x314f3 movq %rbx, %rdi callq 0x4b990 movl $0x3a8, %esi # imm = 0x3A8 movq %rbx, %rdi callq 0x231f0 callq 0x24220 xorl %ebx, %ebx jmp 0x3143e movq %rax, %r15 callq 0x24220 jmp 0x31467 movq %rax, %rdi callq 0x2c93b
clip_init: push r15 push r14 push r13 push r12 push rbx sub rsp, 50h mov r14, rdi lea r15, [rsp+78h+var_30] mov [r15], rsi shr rsi, 20h lea r13, g_logger_state mov [r13+0], esi mov edi, 3A8h; unsigned __int64 call __Znwm; operator new(ulong) mov rbx, rax mov rdi, rax mov rsi, r15 call _ZN8clip_ctxC2ER19clip_context_params; clip_ctx::clip_ctx(clip_context_params &) lea rdi, [rsp+78h+var_70] mov rsi, r14 mov rdx, rbx call _ZN17clip_model_loaderC2EPKcR8clip_ctx; clip_model_loader::clip_model_loader(char const*,clip_ctx &) lea rdi, [rsp+78h+var_70]; this call _ZN17clip_model_loader12load_hparamsEv; clip_model_loader::load_hparams(void) lea rdi, [rsp+78h+var_70]; this call _ZN17clip_model_loader12load_tensorsEv; clip_model_loader::load_tensors(void) lea rdi, [rsp+78h+var_70]; this call _ZN17clip_model_loader18alloc_compute_metaEv; clip_model_loader::alloc_compute_meta(void) lea rax, [rsp+78h+var_48] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_3142A mov rsi, [rsp+78h+var_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3142A: lea rdi, [rsp+78h+var_68] call _ZNSt10unique_ptrI12gguf_context20gguf_context_deleterED2Ev; std::unique_ptr<gguf_context,gguf_context_deleter>::~unique_ptr() lea rdi, [rsp+78h+var_70] call _ZNSt10unique_ptrI12ggml_context20ggml_context_deleterED2Ev; std::unique_ptr<ggml_context,ggml_context_deleter>::~unique_ptr() loc_3143E: mov rax, rbx add rsp, 50h pop rbx pop r12 pop r13 pop r14 pop r15 retn mov r12, rdx mov r15, rax jmp short loc_3147F mov r15, rax mov esi, 3A8h; unsigned __int64 mov rdi, rbx; void * call __ZdlPvm; operator delete(void *,ulong) loc_31467: mov rdi, r15 call __Unwind_Resume mov r12, rdx mov r15, rax lea rdi, [rsp+78h+var_70]; this call _ZN17clip_model_loaderD2Ev; clip_model_loader::~clip_model_loader() loc_3147F: cmp r12d, 1 jnz short loc_31467 mov rdi, r15; void * call ___cxa_begin_catch cmp dword ptr [r13+0], 4 jg short loc_314BD mov rcx, [rax] mov rdi, rax call qword ptr [rcx+10h] lea rsi, aSFailedToLoadM; "%s: failed to load model '%s': %s\n" lea rdx, aClipInit; "clip_init" mov edi, 4 mov rcx, r14 mov r8, rax xor eax, eax call _ZL17clip_log_internal14ggml_log_levelPKcz; clip_log_internal(ggml_log_level,char const*,...) loc_314BD: mov rdi, rbx; this call _ZN8clip_ctxD2Ev; clip_ctx::~clip_ctx() mov esi, 3A8h; unsigned __int64 mov rdi, rbx; void * call __ZdlPvm; operator delete(void *,ulong) call ___cxa_end_catch xor ebx, ebx jmp loc_3143E mov r15, rax call ___cxa_end_catch jmp loc_31467 mov rdi, rax call __clang_call_terminate
clip_ctx * clip_init(const char *a1, long long a2) { clip_ctx *v2; // rbx int v3; // edx int v4; // ecx int v5; // r8d int v6; // r9d _BYTE v8[8]; // [rsp+8h] [rbp-70h] BYREF _BYTE v9[16]; // [rsp+10h] [rbp-68h] BYREF long long *v10; // [rsp+20h] [rbp-58h] long long v11; // [rsp+30h] [rbp-48h] BYREF long long v12; // [rsp+48h] [rbp-30h] BYREF v12 = a2; g_logger_state = HIDWORD(a2); v2 = (clip_ctx *)operator new(0x3A8uLL); clip_ctx::clip_ctx((_DWORD)v2, (unsigned int)&v12, v3, v4, v5, v6); clip_model_loader::clip_model_loader((clip_model_loader *)v8, a1, v2); clip_model_loader::load_hparams((clip_model_loader *)v8); clip_model_loader::load_tensors((clip_model_loader *)v8); clip_model_loader::alloc_compute_meta((clip_model_loader *)v8); if ( v10 != &v11 ) operator delete(v10, v11 + 1); std::unique_ptr<gguf_context,gguf_context_deleter>::~unique_ptr(v9); std::unique_ptr<ggml_context,ggml_context_deleter>::~unique_ptr(v8); return v2; }
clip_init: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x50 MOV R14,RDI LEA R15,[RSP + 0x48] MOV qword ptr [R15],RSI SHR RSI,0x20 LEA R13,[0x28fe30] MOV dword ptr [R13],ESI MOV EDI,0x3a8 CALL 0x00123290 MOV RBX,RAX LAB_001313d6: MOV RDI,RAX MOV RSI,R15 CALL 0x00146d9c LAB_001313e1: LEA RDI,[RSP + 0x8] MOV RSI,R14 MOV RDX,RBX CALL 0x00147072 LAB_001313f1: LEA RDI,[RSP + 0x8] CALL 0x001475b4 LEA RDI,[RSP + 0x8] CALL 0x00148136 LEA RDI,[RSP + 0x8] CALL 0x0014b81c LAB_0013140f: LEA RAX,[RSP + 0x30] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0013142a MOV RSI,qword ptr [RSP + 0x30] INC RSI CALL 0x001231f0 LAB_0013142a: LEA RDI,[RSP + 0x10] CALL 0x0014c152 LEA RDI,[RSP + 0x8] CALL 0x0014c278 LAB_0013143e: MOV RAX,RBX ADD RSP,0x50 POP RBX POP R12 POP R13 POP R14 POP R15 RET
clip_ctx * clip_init(char *param_1,int8 param_2) { clip_ctx *this; clip_model_loader local_70 [8]; unique_ptr<gguf_context,gguf_context_deleter> local_68 [16]; long *local_58; long local_48 [3]; int8 local_30; g_logger_state = (int4)((ulong)param_2 >> 0x20); local_30 = param_2; this = (clip_ctx *)operator_new(0x3a8); /* try { // try from 001313d6 to 001313e0 has its CatchHandler @ 00131457 */ clip_ctx::clip_ctx(this,(clip_context_params *)&local_30); /* try { // try from 001313e1 to 001313f0 has its CatchHandler @ 0013144f */ clip_model_loader::clip_model_loader(local_70,param_1,this); /* try { // try from 001313f1 to 0013140e has its CatchHandler @ 0013146f */ clip_model_loader::load_hparams(local_70); clip_model_loader::load_tensors(local_70); clip_model_loader::alloc_compute_meta(local_70); if (local_58 != local_48) { operator_delete(local_58,local_48[0] + 1); } std::unique_ptr<gguf_context,gguf_context_deleter>::~unique_ptr(local_68); std::unique_ptr<ggml_context,ggml_context_deleter>::~unique_ptr ((unique_ptr<ggml_context,ggml_context_deleter> *)local_70); return this; }
47,713
mysql_fetch_row_start
eloqsql/libmariadb/libmariadb/mariadb_async.c
int STDCALL mysql_fetch_row_start(MYSQL_ROW *ret, MYSQL_RES *result) { MK_ASYNC_START_BODY( mysql_fetch_row, result->handle, { WIN_SET_NONBLOCKING(result->handle) parms.result= result; }, NULL, r_ptr, /* If we already fetched all rows from server (eg. mysql_store_result()), then result->handle will be NULL and we cannot suspend. But that is fine, since in this case mysql_fetch_row cannot block anyway. Just return directly. */ if (!result->handle) { *ret= mysql_fetch_row(result); return 0; }) }
O3
c
mysql_fetch_row_start: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx movq 0x78(%rsi), %rax testq %rax, %rax je 0x2bffa movq 0x480(%rax), %rax movq 0x28(%rax), %r15 leaq -0x20(%rbp), %rdx movq %r14, (%rdx) movb $0x1, 0x14(%r15) leaq 0x38(%r15), %rdi leaq 0xa1(%rip), %rsi # 0x2c081 callq 0x308a0 movw $0x0, 0x14(%r15) testl %eax, %eax jle 0x2c007 movb $0x1, 0x15(%r15) movl (%r15), %eax jmp 0x2c076 movq %r14, %rdi callq 0x1e63c movq %rax, (%rbx) jmp 0x2c074 js 0x2c00f movq 0x8(%r15), %r15 jmp 0x2c071 movq 0x78(%r14), %rax movl $0x7d8, 0x90(%rax) # imm = 0x7D8 movl $0x297, %edi # imm = 0x297 addq 0x78(%r14), %rdi leaq 0x21c73(%rip), %rax # 0x4dca0 movq (%rax), %rsi movl $0x5, %edx callq 0x13220 movq 0x78(%r14), %rax xorl %r15d, %r15d movb %r15b, 0x29c(%rax) movl $0x97, %edi addq 0x78(%r14), %rdi leaq 0x21c58(%rip), %rax # 0x4dcb0 movq 0x40(%rax), %rsi movl $0x1ff, %edx # imm = 0x1FF callq 0x13220 movq 0x78(%r14), %rax movb %r15b, 0x296(%rax) movq %r15, (%rbx) xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
mysql_fetch_row_start: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov r14, rsi mov rbx, rdi mov rax, [rsi+78h] test rax, rax jz short loc_2BFFA mov rax, [rax+480h] mov r15, [rax+28h] lea rdx, [rbp+var_20] mov [rdx], r14 mov byte ptr [r15+14h], 1 lea rdi, [r15+38h] lea rsi, mysql_fetch_row_start_internal call my_context_spawn mov word ptr [r15+14h], 0 test eax, eax jle short loc_2C007 mov byte ptr [r15+15h], 1 mov eax, [r15] jmp short loc_2C076 loc_2BFFA: mov rdi, r14 call mysql_fetch_row mov [rbx], rax jmp short loc_2C074 loc_2C007: js short loc_2C00F mov r15, [r15+8] jmp short loc_2C071 loc_2C00F: mov rax, [r14+78h] mov dword ptr [rax+90h], 7D8h mov edi, 297h add rdi, [r14+78h] lea rax, SQLSTATE_UNKNOWN mov rsi, [rax] mov edx, 5 call _strncpy mov rax, [r14+78h] xor r15d, r15d mov [rax+29Ch], r15b mov edi, 97h add rdi, [r14+78h] lea rax, client_errors mov rsi, [rax+40h] mov edx, 1FFh call _strncpy mov rax, [r14+78h] mov [rax+296h], r15b loc_2C071: mov [rbx], r15 loc_2C074: xor eax, eax loc_2C076: add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long mysql_fetch_row_start(long long *a1, long long a2) { long long v2; // rax long long v3; // rax unsigned int *v4; // r15 int v5; // eax long long v7; // r15 long long v8[4]; // [rsp+0h] [rbp-20h] BYREF v8[0] = v2; v3 = *(_QWORD *)(a2 + 120); if ( v3 ) { v4 = *(unsigned int **)(*(_QWORD *)(v3 + 1152) + 40LL); v8[0] = a2; *((_BYTE *)v4 + 20) = 1; v5 = my_context_spawn(v4 + 14, mysql_fetch_row_start_internal, v8); *((_WORD *)v4 + 10) = 0; if ( v5 > 0 ) { *((_BYTE *)v4 + 21) = 1; return *v4; } if ( v5 < 0 ) { *(_DWORD *)(*(_QWORD *)(a2 + 120) + 144LL) = 2008; strncpy(*(_QWORD *)(a2 + 120) + 663LL, SQLSTATE_UNKNOWN, 5LL); v7 = 0LL; *(_BYTE *)(*(_QWORD *)(a2 + 120) + 668LL) = 0; strncpy(*(_QWORD *)(a2 + 120) + 151LL, client_errors[8], 511LL); *(_BYTE *)(*(_QWORD *)(a2 + 120) + 662LL) = 0; } else { v7 = *((_QWORD *)v4 + 1); } *a1 = v7; } else { *a1 = mysql_fetch_row(a2); } return 0LL; }
mysql_fetch_row_start: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI MOV RAX,qword ptr [RSI + 0x78] TEST RAX,RAX JZ 0x0012bffa MOV RAX,qword ptr [RAX + 0x480] MOV R15,qword ptr [RAX + 0x28] LEA RDX,[RBP + -0x20] MOV qword ptr [RDX],R14 MOV byte ptr [R15 + 0x14],0x1 LEA RDI,[R15 + 0x38] LEA RSI,[0x12c081] CALL 0x001308a0 MOV word ptr [R15 + 0x14],0x0 TEST EAX,EAX JLE 0x0012c007 MOV byte ptr [R15 + 0x15],0x1 MOV EAX,dword ptr [R15] JMP 0x0012c076 LAB_0012bffa: MOV RDI,R14 CALL 0x0011e63c MOV qword ptr [RBX],RAX JMP 0x0012c074 LAB_0012c007: JS 0x0012c00f MOV R15,qword ptr [R15 + 0x8] JMP 0x0012c071 LAB_0012c00f: MOV RAX,qword ptr [R14 + 0x78] MOV dword ptr [RAX + 0x90],0x7d8 MOV EDI,0x297 ADD RDI,qword ptr [R14 + 0x78] LEA RAX,[0x14dca0] MOV RSI,qword ptr [RAX] MOV EDX,0x5 CALL 0x00113220 MOV RAX,qword ptr [R14 + 0x78] XOR R15D,R15D MOV byte ptr [RAX + 0x29c],R15B MOV EDI,0x97 ADD RDI,qword ptr [R14 + 0x78] LEA RAX,[0x14dcb0] MOV RSI,qword ptr [RAX + 0x40] MOV EDX,0x1ff CALL 0x00113220 MOV RAX,qword ptr [R14 + 0x78] MOV byte ptr [RAX + 0x296],R15B LAB_0012c071: MOV qword ptr [RBX],R15 LAB_0012c074: XOR EAX,EAX LAB_0012c076: ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
int4 mysql_fetch_row_start(int8 *param_1,long param_2) { int4 *puVar1; int iVar2; int8 uVar3; if (*(long *)(param_2 + 0x78) == 0) { uVar3 = mysql_fetch_row(param_2); *param_1 = uVar3; } else { puVar1 = *(int4 **)(*(long *)(*(long *)(param_2 + 0x78) + 0x480) + 0x28); *(int1 *)(puVar1 + 5) = 1; iVar2 = my_context_spawn(puVar1 + 0xe,mysql_fetch_row_start_internal); *(int2 *)(puVar1 + 5) = 0; if (0 < iVar2) { *(int1 *)((long)puVar1 + 0x15) = 1; return *puVar1; } if (iVar2 < 0) { *(int4 *)(*(long *)(param_2 + 0x78) + 0x90) = 0x7d8; strncpy((char *)(*(long *)(param_2 + 0x78) + 0x297),SQLSTATE_UNKNOWN,5); uVar3 = 0; *(int1 *)(*(long *)(param_2 + 0x78) + 0x29c) = 0; strncpy((char *)(*(long *)(param_2 + 0x78) + 0x97),PTR_s_Client_run_out_of_memory_0014dcf0, 0x1ff); *(int1 *)(*(long *)(param_2 + 0x78) + 0x296) = 0; } else { uVar3 = *(int8 *)(puVar1 + 2); } *param_1 = uVar3; } return 0; }
47,714
sp_get_linestring_mbr
eloqsql/storage/maria/ma_sp_key.c
static int sp_get_linestring_mbr(uchar *(*wkb), uchar *end, uint n_dims, uchar byte_order, double *mbr) { uint n_points; n_points = uint4korr(*wkb); (*wkb) += 4; for (; n_points > 0; --n_points) { /* Add next point to mbr */ if (sp_add_point_to_mbr(wkb, end, n_dims, byte_order, mbr)) return -1; } return 0; }
O0
c
sp_get_linestring_mbr: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movb %cl, %al movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) movb %al, -0x1d(%rbp) movq %r8, -0x28(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movl (%rax), %eax movl %eax, -0x2c(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rcx addq $0x4, %rcx movq %rcx, (%rax) cmpl $0x0, -0x2c(%rbp) jbe 0x9c4d1 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi movl -0x1c(%rbp), %edx movb -0x1d(%rbp), %al movq -0x28(%rbp), %r8 movzbl %al, %ecx callq 0x9c5a0 cmpl $0x0, %eax je 0x9c4c4 movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x9c4d8 jmp 0x9c4c6 movl -0x2c(%rbp), %eax addl $-0x1, %eax movl %eax, -0x2c(%rbp) jmp 0x9c496 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
sp_get_linestring_mbr: push rbp mov rbp, rsp sub rsp, 30h mov al, cl mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_1C], edx mov [rbp+var_1D], al mov [rbp+var_28], r8 mov rax, [rbp+var_10] mov rax, [rax] mov eax, [rax] mov [rbp+var_2C], eax mov rax, [rbp+var_10] mov rcx, [rax] add rcx, 4 mov [rax], rcx loc_9C496: cmp [rbp+var_2C], 0 jbe short loc_9C4D1 mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] mov edx, [rbp+var_1C] mov al, [rbp+var_1D] mov r8, [rbp+var_28] movzx ecx, al call sp_add_point_to_mbr cmp eax, 0 jz short loc_9C4C4 mov [rbp+var_4], 0FFFFFFFFh jmp short loc_9C4D8 loc_9C4C4: jmp short $+2 loc_9C4C6: mov eax, [rbp+var_2C] add eax, 0FFFFFFFFh mov [rbp+var_2C], eax jmp short loc_9C496 loc_9C4D1: mov [rbp+var_4], 0 loc_9C4D8: mov eax, [rbp+var_4] add rsp, 30h pop rbp retn
long long sp_get_linestring_mbr(_DWORD **a1, long long a2, unsigned int a3, unsigned __int8 a4, long long a5) { int i; // [rsp+4h] [rbp-2Ch] for ( i = *(*a1)++; i; --i ) { if ( (unsigned int)sp_add_point_to_mbr(a1, a2, a3, a4, a5) ) return (unsigned int)-1; } return 0; }
sp_get_linestring_mbr: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV AL,CL MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV dword ptr [RBP + -0x1c],EDX MOV byte ptr [RBP + -0x1d],AL MOV qword ptr [RBP + -0x28],R8 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x2c],EAX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX] ADD RCX,0x4 MOV qword ptr [RAX],RCX LAB_0019c496: CMP dword ptr [RBP + -0x2c],0x0 JBE 0x0019c4d1 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] MOV EDX,dword ptr [RBP + -0x1c] MOV AL,byte ptr [RBP + -0x1d] MOV R8,qword ptr [RBP + -0x28] MOVZX ECX,AL CALL 0x0019c5a0 CMP EAX,0x0 JZ 0x0019c4c4 MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x0019c4d8 LAB_0019c4c4: JMP 0x0019c4c6 LAB_0019c4c6: MOV EAX,dword ptr [RBP + -0x2c] ADD EAX,-0x1 MOV dword ptr [RBP + -0x2c],EAX JMP 0x0019c496 LAB_0019c4d1: MOV dword ptr [RBP + -0x4],0x0 LAB_0019c4d8: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x30 POP RBP RET
int4 sp_get_linestring_mbr (long *param_1,int8 param_2,int4 param_3,int1 param_4,int8 param_5 ) { int iVar1; int local_34; local_34 = *(int *)*param_1; *param_1 = *param_1 + 4; while( true ) { if (local_34 == 0) { return 0; } iVar1 = sp_add_point_to_mbr(param_1,param_2,param_3,param_4,param_5); if (iVar1 != 0) break; local_34 = local_34 + -1; } return 0xffffffff; }
47,715
AssetStore::getImage(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
GhostEscape/src/core/asset_store.cpp
SDL_Texture *AssetStore::getImage(const std::string &file_path) { auto iter = textures_.find(file_path); if (iter == textures_.end()) // 如果没有找到,则载入。 { loadImage(file_path); iter = textures_.find(file_path); } if (iter == textures_.end()) // 如果载入失败,则返回空指针。 { SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Failed to get image: %s", file_path.c_str()); return nullptr; } return iter->second; }
O3
cpp
AssetStore::getImage(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r15 leaq 0x8(%rdi), %r14 movq %r14, %rdi callq 0x8690 testq %rax, %rax jne 0x6fcc movq %r15, %rdi movq %rbx, %rsi callq 0x6c9c movq %r14, %rdi movq %rbx, %rsi callq 0x8690 testq %rax, %rax je 0x6fde movq 0x28(%rax), %rbx movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq movq (%rbx), %rdx leaq 0x92df(%rip), %rsi # 0x102c7 xorl %ebx, %ebx xorl %edi, %edi xorl %eax, %eax callq 0x5610 jmp 0x6fd0 nop
_ZN10AssetStore8getImageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov rbx, rsi mov r15, rdi lea r14, [rdi+8] mov rdi, r14 call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_P11SDL_TextureESaISA_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSC_18_Mod_range_hashingENSC_20_Default_ranged_hashENSC_20_Prime_rehash_policyENSC_17_Hashtable_traitsILb1ELb0ELb1EEEE4findERS7_; std::_Hashtable<std::string,std::pair<std::string const,SDL_Texture *>,std::allocator<std::pair<std::string const,SDL_Texture *>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::find(std::string const&) test rax, rax jnz short loc_6FCC mov rdi, r15 mov rsi, rbx call _ZN10AssetStore9loadImageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; AssetStore::loadImage(std::string const&) mov rdi, r14 mov rsi, rbx call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_P11SDL_TextureESaISA_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSC_18_Mod_range_hashingENSC_20_Default_ranged_hashENSC_20_Prime_rehash_policyENSC_17_Hashtable_traitsILb1ELb0ELb1EEEE4findERS7_; std::_Hashtable<std::string,std::pair<std::string const,SDL_Texture *>,std::allocator<std::pair<std::string const,SDL_Texture *>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::find(std::string const&) test rax, rax jz short loc_6FDE loc_6FCC: mov rbx, [rax+28h] loc_6FD0: mov rax, rbx add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn loc_6FDE: mov rdx, [rbx] lea rsi, aFailedToGetIma; "Failed to get image: %s" xor ebx, ebx xor edi, edi xor eax, eax call _SDL_LogError jmp short loc_6FD0
long long AssetStore::getImage(_QWORD *a1, const char **a2) { long long v2; // rax long long v3; // rbx v2 = std::_Hashtable<std::string,std::pair<std::string const,SDL_Texture *>,std::allocator<std::pair<std::string const,SDL_Texture *>>,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(a1 + 1); if ( v2 ) return *(_QWORD *)(v2 + 40); AssetStore::loadImage(a1, a2); v2 = std::_Hashtable<std::string,std::pair<std::string const,SDL_Texture *>,std::allocator<std::pair<std::string const,SDL_Texture *>>,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(a1 + 1); if ( v2 ) return *(_QWORD *)(v2 + 40); v3 = 0LL; SDL_LogError(0LL, "Failed to get image: %s", *a2); return v3; }
getImage: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RSI MOV R15,RDI LEA R14,[RDI + 0x8] MOV RDI,R14 CALL 0x00108690 TEST RAX,RAX JNZ 0x00106fcc MOV RDI,R15 MOV RSI,RBX CALL 0x00106c9c MOV RDI,R14 MOV RSI,RBX CALL 0x00108690 TEST RAX,RAX JZ 0x00106fde LAB_00106fcc: MOV RBX,qword ptr [RAX + 0x28] LAB_00106fd0: MOV RAX,RBX ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET LAB_00106fde: MOV RDX,qword ptr [RBX] LEA RSI,[0x1102c7] XOR EBX,EBX XOR EDI,EDI XOR EAX,EAX CALL 0x00105610 JMP 0x00106fd0
/* AssetStore::getImage(std::__cxx11::string const&) */ int8 __thiscall AssetStore::getImage(AssetStore *this,string *param_1) { long lVar1; lVar1 = std:: _Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,SDL_Texture*>,std::allocator<std::pair<std::__cxx11::string_const,SDL_Texture*>>,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,SDL_Texture*>,std::allocator<std::pair<std::__cxx11::string_const,SDL_Texture*>>,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>> *)(this + 8),param_1); if (lVar1 == 0) { loadImage(this,param_1); lVar1 = std:: _Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,SDL_Texture*>,std::allocator<std::pair<std::__cxx11::string_const,SDL_Texture*>>,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,SDL_Texture*>,std::allocator<std::pair<std::__cxx11::string_const,SDL_Texture*>>,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>> *)(this + 8),param_1); if (lVar1 == 0) { SDL_LogError(0,"Failed to get image: %s",*(int8 *)param_1); return 0; } } return *(int8 *)(lVar1 + 0x28); }
47,716
mysql_stat_start_internal
eloqsql/libmariadb/libmariadb/mariadb_async.c
static void mysql_stat_start_internal(void *d) { MK_ASYNC_INTERNAL_BODY( mysql_stat, (parms->mysql), parms->mysql, const char *, r_const_ptr) }
O3
c
mysql_stat_start_internal: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq (%rdi), %rdi movq 0x480(%rdi), %rax movq 0x28(%rax), %rbx callq 0x1ec37 movq %rax, 0x8(%rbx) movl $0x0, (%rbx) addq $0x8, %rsp popq %rbx popq %rbp retq
mysql_stat_start_internal: push rbp mov rbp, rsp push rbx push rax mov rdi, [rdi] mov rax, [rdi+480h] mov rbx, [rax+28h] call mysql_stat mov [rbx+8], rax mov dword ptr [rbx], 0 add rsp, 8 pop rbx pop rbp retn
_BYTE * mysql_stat_start_internal(long long *a1) { long long v1; // rdi long long v2; // rbx _BYTE *result; // rax v1 = *a1; v2 = *(_QWORD *)(*(_QWORD *)(v1 + 1152) + 40LL); result = mysql_stat(v1); *(_QWORD *)(v2 + 8) = result; *(_DWORD *)v2 = 0; return result; }
mysql_stat_start_internal: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RDI,qword ptr [RDI] MOV RAX,qword ptr [RDI + 0x480] MOV RBX,qword ptr [RAX + 0x28] CALL 0x0011ec37 MOV qword ptr [RBX + 0x8],RAX MOV dword ptr [RBX],0x0 ADD RSP,0x8 POP RBX POP RBP RET
void mysql_stat_start_internal(long *param_1) { int4 *puVar1; int8 uVar2; puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28); uVar2 = mysql_stat(); *(int8 *)(puVar1 + 2) = uVar2; *puVar1 = 0; return; }
47,717
Client_field_metadata::print_attr(Binary_string*, st_mysql_const_lex_string const&, mariadb_field_attr_t, unsigned int) const
eloqsql/client/client_metadata.h
void print_attr(Binary_string *to, const LEX_CSTRING &name, mariadb_field_attr_t attr, uint orig_to_length) const { MARIADB_CONST_STRING tmp; if (!mariadb_field_attr(&tmp, m_field, attr) && tmp.length) { if (to->length() != orig_to_length) to->append(" ", 1); to->append(name); to->append(tmp.str, tmp.length); } }
O3
c
Client_field_metadata::print_attr(Binary_string*, st_mysql_const_lex_string const&, mariadb_field_attr_t, unsigned int) const: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x18, %rsp movl %r8d, %r15d movq %rdx, %r14 movq %rsi, %rbx movq (%rdi), %rsi leaq -0x28(%rbp), %rdi movl %ecx, %edx callq 0x78c09 testl %eax, %eax jne 0x712c2 cmpq $0x0, -0x20(%rbp) je 0x712c2 cmpl %r15d, 0x8(%rbx) je 0x712a3 leaq 0x9e518(%rip), %rsi # 0x10f7ae movl $0x1, %edx movq %rbx, %rdi callq 0x712ce movq (%r14), %rsi movq 0x8(%r14), %rdx movq %rbx, %rdi callq 0x712ce movq -0x28(%rbp), %rsi movq -0x20(%rbp), %rdx movq %rbx, %rdi callq 0x712ce addq $0x18, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq nop
_ZNK21Client_field_metadata10print_attrEP13Binary_stringRK25st_mysql_const_lex_string20mariadb_field_attr_tj: push rbp mov rbp, rsp push r15 push r14 push rbx sub rsp, 18h mov r15d, r8d mov r14, rdx mov rbx, rsi mov rsi, [rdi] lea rdi, [rbp+var_28] mov edx, ecx call mariadb_field_attr test eax, eax jnz short loc_712C2 cmp [rbp+var_20], 0 jz short loc_712C2 cmp [rbx+8], r15d jz short loc_712A3 lea rsi, asc_10F7AD+1; char * mov edx, 1; unsigned __int64 mov rdi, rbx; this call _ZN13Binary_string6appendEPKcm; Binary_string::append(char const*,ulong) loc_712A3: mov rsi, [r14]; char * mov rdx, [r14+8]; unsigned __int64 mov rdi, rbx; this call _ZN13Binary_string6appendEPKcm; Binary_string::append(char const*,ulong) mov rsi, [rbp+var_28]; char * mov rdx, [rbp+var_20]; unsigned __int64 mov rdi, rbx; this call _ZN13Binary_string6appendEPKcm; Binary_string::append(char const*,ulong) loc_712C2: add rsp, 18h pop rbx pop r14 pop r15 pop rbp retn
long long Client_field_metadata::print_attr( _QWORD *a1, Binary_string *a2, long long a3, unsigned int a4, int a5) { long long result; // rax char *v8; // [rsp+8h] [rbp-28h] BYREF unsigned long long v9; // [rsp+10h] [rbp-20h] result = mariadb_field_attr(&v8, *a1, a4); if ( !(_DWORD)result && v9 ) { if ( *((_DWORD *)a2 + 2) != a5 ) Binary_string::append(a2, " ", 1uLL); Binary_string::append(a2, *(const char **)a3, *(_QWORD *)(a3 + 8)); return Binary_string::append(a2, v8, v9); } return result; }
print_attr: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x18 MOV R15D,R8D MOV R14,RDX MOV RBX,RSI MOV RSI,qword ptr [RDI] LEA RDI,[RBP + -0x28] MOV EDX,ECX CALL 0x00178c09 TEST EAX,EAX JNZ 0x001712c2 CMP qword ptr [RBP + -0x20],0x0 JZ 0x001712c2 CMP dword ptr [RBX + 0x8],R15D JZ 0x001712a3 LEA RSI,[0x20f7ae] MOV EDX,0x1 MOV RDI,RBX CALL 0x001712ce LAB_001712a3: MOV RSI,qword ptr [R14] MOV RDX,qword ptr [R14 + 0x8] MOV RDI,RBX CALL 0x001712ce MOV RSI,qword ptr [RBP + -0x28] MOV RDX,qword ptr [RBP + -0x20] MOV RDI,RBX CALL 0x001712ce LAB_001712c2: ADD RSP,0x18 POP RBX POP R14 POP R15 POP RBP RET
/* Client_field_metadata::print_attr(Binary_string*, st_mysql_const_lex_string const&, mariadb_field_attr_t, unsigned int) const */ void __thiscall Client_field_metadata::print_attr (Client_field_metadata *this,Binary_string *param_1,int8 *param_2,int4 param_4 ,int param_5) { int iVar1; char *local_30; ulong local_28; iVar1 = mariadb_field_attr(&local_30,*(int8 *)this,param_4); if ((iVar1 == 0) && (local_28 != 0)) { if (*(int *)(param_1 + 8) != param_5) { Binary_string::append(param_1," ",1); } Binary_string::append(param_1,(char *)*param_2,param_2[1]); Binary_string::append(param_1,local_30,local_28); } return; }
47,718
link_changed
eloqsql/mysys/mf_keycache.c
static inline void link_changed(BLOCK_LINK *block, BLOCK_LINK **phead) { DBUG_ASSERT(!block->next_changed); DBUG_ASSERT(!block->prev_changed); block->prev_changed= phead; if ((block->next_changed= *phead)) (*phead)->prev_changed= &block->next_changed; *phead= block; }
O0
c
link_changed: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) jmp 0xe57de jmp 0xe57e0 jmp 0xe57e2 movq -0x10(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x18(%rax) movq -0x10(%rbp), %rax movq (%rax), %rax movq -0x8(%rbp), %rcx movq %rax, 0x10(%rcx) cmpq $0x0, %rax je 0xe5816 movq -0x8(%rbp), %rcx addq $0x10, %rcx movq -0x10(%rbp), %rax movq (%rax), %rax movq %rcx, 0x18(%rax) movq -0x8(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) popq %rbp retq nopw %cs:(%rax,%rax)
link_changed_0: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi jmp short $+2 loc_E57DE: jmp short $+2 loc_E57E0: jmp short $+2 loc_E57E2: mov rcx, [rbp+var_10] mov rax, [rbp+var_8] mov [rax+18h], rcx mov rax, [rbp+var_10] mov rax, [rax] mov rcx, [rbp+var_8] mov [rcx+10h], rax cmp rax, 0 jz short loc_E5816 mov rcx, [rbp+var_8] add rcx, 10h mov rax, [rbp+var_10] mov rax, [rax] mov [rax+18h], rcx loc_E5816: mov rcx, [rbp+var_8] mov rax, [rbp+var_10] mov [rax], rcx pop rbp retn
long long * link_changed_0(long long a1, long long *a2) { long long v2; // rax long long *result; // rax *(_QWORD *)(a1 + 24) = a2; v2 = *a2; *(_QWORD *)(a1 + 16) = *a2; if ( v2 ) *(_QWORD *)(*a2 + 24) = a1 + 16; result = a2; *a2 = a1; return result; }
link_changed: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI JMP 0x001e57de LAB_001e57de: JMP 0x001e57e0 LAB_001e57e0: JMP 0x001e57e2 LAB_001e57e2: MOV RCX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x18],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RCX,qword ptr [RBP + -0x8] MOV qword ptr [RCX + 0x10],RAX CMP RAX,0x0 JZ 0x001e5816 MOV RCX,qword ptr [RBP + -0x8] ADD RCX,0x10 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RAX + 0x18],RCX LAB_001e5816: MOV RCX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX POP RBP RET
void link_changed(long param_1,long *param_2) { long lVar1; *(long **)(param_1 + 0x18) = param_2; lVar1 = *param_2; *(long *)(param_1 + 0x10) = lVar1; if (lVar1 != 0) { *(long *)(*param_2 + 0x18) = param_1 + 0x10; } *param_2 = param_1; return; }
47,719
req_client_update
corpus-core[P]colibri-stateless/src/chains/eth/verifier/sync_committee_state.c
static bool req_client_update(c4_state_t* state, uint32_t period, uint32_t count, chain_id_t chain_id, bytes_t* data) { buffer_t tmp = {0}; bprintf(&tmp, "eth/v1/beacon/light_client/updates?start_period=%d&count=%d", period, count); data_request_t* req = c4_state_get_data_request_by_url(state, (char*) tmp.data.data); if (req) buffer_free(&tmp); if (req && req->response.data) { *data = req->response; return true; } else if (req && req->error) { state->error = strdup(req->error); return false; } data_request_t* new_req = safe_calloc(1, sizeof(data_request_t)); new_req->chain_id = chain_id; new_req->url = (char*) tmp.data.data; new_req->encoding = C4_DATA_ENCODING_SSZ; new_req->type = C4_DATA_TYPE_BEACON_API; c4_state_add_request(state, new_req); return false; }
O0
c
req_client_update: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl %edx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movq %r8, -0x28(%rbp) leaq -0x40(%rbp), %rdi xorl %esi, %esi movl $0x18, %edx callq 0x231c0 movl -0x14(%rbp), %edx movl -0x18(%rbp), %ecx leaq -0x40(%rbp), %rdi leaq 0xb5012(%rip), %rsi # 0xdc6fc movb $0x0, %al callq 0x9ebf0 movq -0x10(%rbp), %rdi movq -0x38(%rbp), %rsi callq 0xa7810 movq %rax, -0x48(%rbp) cmpq $0x0, -0x48(%rbp) je 0x27712 leaq -0x40(%rbp), %rdi callq 0x9e240 cmpq $0x0, -0x48(%rbp) je 0x27744 movq -0x48(%rbp), %rax cmpq $0x0, 0x38(%rax) je 0x27744 movq -0x28(%rbp), %rax movq -0x48(%rbp), %rcx movq 0x30(%rcx), %rdx movq %rdx, (%rax) movq 0x38(%rcx), %rcx movq %rcx, 0x8(%rax) movb $0x1, -0x1(%rbp) jmp 0x277c5 cmpq $0x0, -0x48(%rbp) je 0x27774 movq -0x48(%rbp), %rax cmpq $0x0, 0x48(%rax) je 0x27774 movq -0x48(%rbp), %rax movq 0x48(%rax), %rdi callq 0x23030 movq %rax, %rcx movq -0x10(%rbp), %rax movq %rcx, 0x8(%rax) movb $0x0, -0x1(%rbp) jmp 0x277c5 jmp 0x27776 movl $0x1, %edi movl $0x80, %esi callq 0x9dad0 movq %rax, -0x50(%rbp) movl -0x1c(%rbp), %ecx movq -0x50(%rbp), %rax movl %ecx, (%rax) movq -0x38(%rbp), %rcx movq -0x50(%rbp), %rax movq %rcx, 0x10(%rax) movq -0x50(%rbp), %rax movl $0x1, 0x8(%rax) movq -0x50(%rbp), %rax movl $0x0, 0x4(%rax) movq -0x10(%rbp), %rdi movq -0x50(%rbp), %rsi callq 0xa78b0 movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al andb $0x1, %al addq $0x50, %rsp popq %rbp retq
req_client_update: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_18], edx mov [rbp+var_1C], ecx mov [rbp+var_28], r8 lea rdi, [rbp+var_40] xor esi, esi mov edx, 18h call _memset mov edx, [rbp+var_14] mov ecx, [rbp+var_18] lea rdi, [rbp+var_40] lea rsi, aEthV1BeaconLig; "eth/v1/beacon/light_client/updates?star"... mov al, 0 call bprintf mov rdi, [rbp+var_10] mov rsi, [rbp+var_38] call c4_state_get_data_request_by_url mov [rbp+var_48], rax cmp [rbp+var_48], 0 jz short loc_27712 lea rdi, [rbp+var_40] call buffer_free loc_27712: cmp [rbp+var_48], 0 jz short loc_27744 mov rax, [rbp+var_48] cmp qword ptr [rax+38h], 0 jz short loc_27744 mov rax, [rbp+var_28] mov rcx, [rbp+var_48] mov rdx, [rcx+30h] mov [rax], rdx mov rcx, [rcx+38h] mov [rax+8], rcx mov [rbp+var_1], 1 jmp loc_277C5 loc_27744: cmp [rbp+var_48], 0 jz short loc_27774 mov rax, [rbp+var_48] cmp qword ptr [rax+48h], 0 jz short loc_27774 mov rax, [rbp+var_48] mov rdi, [rax+48h] call _strdup mov rcx, rax mov rax, [rbp+var_10] mov [rax+8], rcx mov [rbp+var_1], 0 jmp short loc_277C5 loc_27774: jmp short $+2 loc_27776: mov edi, 1 mov esi, 80h call safe_calloc mov [rbp+var_50], rax mov ecx, [rbp+var_1C] mov rax, [rbp+var_50] mov [rax], ecx mov rcx, [rbp+var_38] mov rax, [rbp+var_50] mov [rax+10h], rcx mov rax, [rbp+var_50] mov dword ptr [rax+8], 1 mov rax, [rbp+var_50] mov dword ptr [rax+4], 0 mov rdi, [rbp+var_10] mov rsi, [rbp+var_50] call c4_state_add_request mov [rbp+var_1], 0 loc_277C5: mov al, [rbp+var_1] and al, 1 add rsp, 50h pop rbp retn
char req_client_update(long long a1, int a2, int a3, int a4, _QWORD *a5) { int v5; // r8d int v6; // r9d _QWORD *v7; // rax long long v8; // rcx long long v10; // [rsp+0h] [rbp-50h] _QWORD *data_request_by_url; // [rsp+8h] [rbp-48h] _BYTE v12[8]; // [rsp+10h] [rbp-40h] BYREF long long v13; // [rsp+18h] [rbp-38h] _QWORD *v14; // [rsp+28h] [rbp-28h] int v15; // [rsp+34h] [rbp-1Ch] int v16; // [rsp+38h] [rbp-18h] int v17; // [rsp+3Ch] [rbp-14h] long long v18; // [rsp+40h] [rbp-10h] v18 = a1; v17 = a2; v16 = a3; v15 = a4; v14 = a5; memset(v12, 0LL, 24LL); bprintf( (unsigned int)v12, (unsigned int)"eth/v1/beacon/light_client/updates?start_period=%d&count=%d", v17, v16, v5, v6); data_request_by_url = (_QWORD *)c4_state_get_data_request_by_url(v18, v13); if ( data_request_by_url && (buffer_free(v12), data_request_by_url[7]) ) { v7 = v14; *v14 = data_request_by_url[6]; v7[1] = data_request_by_url[7]; return 1; } else if ( data_request_by_url && data_request_by_url[9] ) { v8 = strdup(data_request_by_url[9]); *(_QWORD *)(v18 + 8) = v8; return 0; } else { v10 = safe_calloc(1LL, 128LL); *(_DWORD *)v10 = v15; *(_QWORD *)(v10 + 16) = v13; *(_DWORD *)(v10 + 8) = 1; *(_DWORD *)(v10 + 4) = 0; c4_state_add_request(v18, v10); return 0; } }
req_client_update: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV dword ptr [RBP + -0x18],EDX MOV dword ptr [RBP + -0x1c],ECX MOV qword ptr [RBP + -0x28],R8 LEA RDI,[RBP + -0x40] XOR ESI,ESI MOV EDX,0x18 CALL 0x001231c0 MOV EDX,dword ptr [RBP + -0x14] MOV ECX,dword ptr [RBP + -0x18] LEA RDI,[RBP + -0x40] LEA RSI,[0x1dc6fc] MOV AL,0x0 CALL 0x0019ebf0 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x38] CALL 0x001a7810 MOV qword ptr [RBP + -0x48],RAX CMP qword ptr [RBP + -0x48],0x0 JZ 0x00127712 LEA RDI,[RBP + -0x40] CALL 0x0019e240 LAB_00127712: CMP qword ptr [RBP + -0x48],0x0 JZ 0x00127744 MOV RAX,qword ptr [RBP + -0x48] CMP qword ptr [RAX + 0x38],0x0 JZ 0x00127744 MOV RAX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x48] MOV RDX,qword ptr [RCX + 0x30] MOV qword ptr [RAX],RDX MOV RCX,qword ptr [RCX + 0x38] MOV qword ptr [RAX + 0x8],RCX MOV byte ptr [RBP + -0x1],0x1 JMP 0x001277c5 LAB_00127744: CMP qword ptr [RBP + -0x48],0x0 JZ 0x00127774 MOV RAX,qword ptr [RBP + -0x48] CMP qword ptr [RAX + 0x48],0x0 JZ 0x00127774 MOV RAX,qword ptr [RBP + -0x48] MOV RDI,qword ptr [RAX + 0x48] CALL 0x00123030 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x8],RCX MOV byte ptr [RBP + -0x1],0x0 JMP 0x001277c5 LAB_00127774: JMP 0x00127776 LAB_00127776: MOV EDI,0x1 MOV ESI,0x80 CALL 0x0019dad0 MOV qword ptr [RBP + -0x50],RAX MOV ECX,dword ptr [RBP + -0x1c] MOV RAX,qword ptr [RBP + -0x50] MOV dword ptr [RAX],ECX MOV RCX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RAX + 0x10],RCX MOV RAX,qword ptr [RBP + -0x50] MOV dword ptr [RAX + 0x8],0x1 MOV RAX,qword ptr [RBP + -0x50] MOV dword ptr [RAX + 0x4],0x0 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x50] CALL 0x001a78b0 MOV byte ptr [RBP + -0x1],0x0 LAB_001277c5: MOV AL,byte ptr [RBP + -0x1] AND AL,0x1 ADD RSP,0x50 POP RBP RET
int1 req_client_update(long param_1,int4 param_2,int4 param_3,int4 param_4, int8 *param_5) { long lVar1; char *pcVar2; int4 *puVar3; int1 local_48 [8]; int8 local_40; int8 *local_30; int4 local_24; int4 local_20; int4 local_1c; long local_18; int1 local_9; local_30 = param_5; local_24 = param_4; local_20 = param_3; local_1c = param_2; local_18 = param_1; memset(local_48,0,0x18); bprintf(local_48,"eth/v1/beacon/light_client/updates?start_period=%d&count=%d",local_1c,local_20); lVar1 = c4_state_get_data_request_by_url(local_18,local_40); if ((lVar1 == 0) || (buffer_free(local_48), *(long *)(lVar1 + 0x38) == 0)) { if ((lVar1 == 0) || (*(long *)(lVar1 + 0x48) == 0)) { puVar3 = (int4 *)safe_calloc(1,0x80); *puVar3 = local_24; *(int8 *)(puVar3 + 4) = local_40; puVar3[2] = 1; puVar3[1] = 0; c4_state_add_request(local_18,puVar3); local_9 = 0; } else { pcVar2 = strdup(*(char **)(lVar1 + 0x48)); *(char **)(local_18 + 8) = pcVar2; local_9 = 0; } } else { *local_30 = *(int8 *)(lVar1 + 0x30); local_30[1] = *(int8 *)(lVar1 + 0x38); local_9 = 1; } return local_9; }
47,720
req_client_update
corpus-core[P]colibri-stateless/src/chains/eth/verifier/sync_committee_state.c
static bool req_client_update(c4_state_t* state, uint32_t period, uint32_t count, chain_id_t chain_id, bytes_t* data) { buffer_t tmp = {0}; bprintf(&tmp, "eth/v1/beacon/light_client/updates?start_period=%d&count=%d", period, count); data_request_t* req = c4_state_get_data_request_by_url(state, (char*) tmp.data.data); if (req) buffer_free(&tmp); if (req && req->response.data) { *data = req->response; return true; } else if (req && req->error) { state->error = strdup(req->error); return false; } data_request_t* new_req = safe_calloc(1, sizeof(data_request_t)); new_req->chain_id = chain_id; new_req->url = (char*) tmp.data.data; new_req->encoding = C4_DATA_ENCODING_SSZ; new_req->type = C4_DATA_TYPE_BEACON_API; c4_state_add_request(state, new_req); return false; }
O1
c
req_client_update: pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x18, %rsp movq %r8, %r14 movl %ecx, %ebp movl %edx, %ecx movl %esi, %edx movq %rdi, %rbx xorps %xmm0, %xmm0 movq %rsp, %r15 movaps %xmm0, (%r15) movq $0x0, 0x10(%r15) leaq 0x5efba(%rip), %rsi # 0x85674 movq %r15, %rdi xorl %eax, %eax callq 0x57769 movq 0x8(%r15), %rsi movq %rbx, %rdi callq 0x5ce80 testq %rax, %rax je 0x26708 movq %rax, %r15 movq %rsp, %rdi callq 0x57107 cmpq $0x0, 0x38(%r15) je 0x266f4 movups 0x30(%r15), %xmm0 movups %xmm0, (%r14) movb $0x1, %al jmp 0x2673d movq 0x48(%r15), %rdi testq %rdi, %rdi je 0x26708 callq 0x22030 movq %rax, 0x8(%rbx) jmp 0x2673b movl $0x1, %edi movl $0x80, %esi callq 0x56f2f movl %ebp, (%rax) movq 0x8(%rsp), %rcx movq %rcx, 0x10(%rax) movabsq $0x100000000, %rcx # imm = 0x100000000 movq %rcx, 0x4(%rax) movq %rbx, %rdi movq %rax, %rsi callq 0x5cecd xorl %eax, %eax addq $0x18, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
req_client_update: push rbp push r15 push r14 push rbx sub rsp, 18h mov r14, r8 mov ebp, ecx mov ecx, edx mov edx, esi mov rbx, rdi xorps xmm0, xmm0 mov r15, rsp movaps xmmword ptr [r15], xmm0 mov qword ptr [r15+10h], 0 lea rsi, aEthV1BeaconLig; "eth/v1/beacon/light_client/updates?star"... mov rdi, r15 xor eax, eax call bprintf mov rsi, [r15+8] mov rdi, rbx call c4_state_get_data_request_by_url test rax, rax jz short loc_26708 mov r15, rax mov rdi, rsp call buffer_free cmp qword ptr [r15+38h], 0 jz short loc_266F4 movups xmm0, xmmword ptr [r15+30h] movups xmmword ptr [r14], xmm0 mov al, 1 jmp short loc_2673D loc_266F4: mov rdi, [r15+48h] test rdi, rdi jz short loc_26708 call _strdup mov [rbx+8], rax jmp short loc_2673B loc_26708: mov edi, 1 mov esi, 80h call safe_calloc mov [rax], ebp mov rcx, [rsp+38h+var_30] mov [rax+10h], rcx mov rcx, 100000000h mov [rax+4], rcx mov rdi, rbx mov rsi, rax call c4_state_add_request loc_2673B: xor eax, eax loc_2673D: add rsp, 18h pop rbx pop r14 pop r15 pop rbp retn
char req_client_update(long long a1, int a2, int a3, int a4, _OWORD *a5, int a6) { long long data_request_by_url; // rax long long v10; // r15 long long v12; // rdi long long v13; // rax __int128 v14; // [rsp+0h] [rbp-38h] BYREF long long v15; // [rsp+10h] [rbp-28h] v14 = 0LL; v15 = 0LL; bprintf( (unsigned int)&v14, (unsigned int)"eth/v1/beacon/light_client/updates?start_period=%d&count=%d", a2, a3, (_DWORD)a5, a6, 0LL); data_request_by_url = c4_state_get_data_request_by_url(a1, *((_QWORD *)&v14 + 1)); if ( !data_request_by_url ) goto LABEL_6; v10 = data_request_by_url; buffer_free(&v14); if ( *(_QWORD *)(v10 + 56) ) { *a5 = *(_OWORD *)(v10 + 48); return 1; } v12 = *(_QWORD *)(v10 + 72); if ( v12 ) { *(_QWORD *)(a1 + 8) = strdup(v12); } else { LABEL_6: v13 = safe_calloc(1LL, 128LL); *(_DWORD *)v13 = a4; *(_QWORD *)(v13 + 16) = *((_QWORD *)&v14 + 1); *(_QWORD *)(v13 + 4) = 0x100000000LL; c4_state_add_request(a1, v13); } return 0; }
req_client_update: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x18 MOV R14,R8 MOV EBP,ECX MOV ECX,EDX MOV EDX,ESI MOV RBX,RDI XORPS XMM0,XMM0 MOV R15,RSP MOVAPS xmmword ptr [R15],XMM0 MOV qword ptr [R15 + 0x10],0x0 LEA RSI,[0x185674] MOV RDI,R15 XOR EAX,EAX CALL 0x00157769 MOV RSI,qword ptr [R15 + 0x8] MOV RDI,RBX CALL 0x0015ce80 TEST RAX,RAX JZ 0x00126708 MOV R15,RAX MOV RDI,RSP CALL 0x00157107 CMP qword ptr [R15 + 0x38],0x0 JZ 0x001266f4 MOVUPS XMM0,xmmword ptr [R15 + 0x30] MOVUPS xmmword ptr [R14],XMM0 MOV AL,0x1 JMP 0x0012673d LAB_001266f4: MOV RDI,qword ptr [R15 + 0x48] TEST RDI,RDI JZ 0x00126708 CALL 0x00122030 MOV qword ptr [RBX + 0x8],RAX JMP 0x0012673b LAB_00126708: MOV EDI,0x1 MOV ESI,0x80 CALL 0x00156f2f MOV dword ptr [RAX],EBP MOV RCX,qword ptr [RSP + 0x8] MOV qword ptr [RAX + 0x10],RCX MOV RCX,0x100000000 MOV qword ptr [RAX + 0x4],RCX MOV RDI,RBX MOV RSI,RAX CALL 0x0015cecd LAB_0012673b: XOR EAX,EAX LAB_0012673d: ADD RSP,0x18 POP RBX POP R14 POP R15 POP RBP RET
int8 req_client_update(long param_1,int4 param_2,int4 param_3,int4 param_4, int8 *param_5) { int8 uVar1; long lVar2; char *pcVar3; int4 *puVar4; int8 local_38; int8 uStack_30; int8 local_28; local_38 = 0; uStack_30 = 0; local_28 = 0; bprintf(&local_38,"eth/v1/beacon/light_client/updates?start_period=%d&count=%d",param_2,param_3); lVar2 = c4_state_get_data_request_by_url(param_1,uStack_30); if (lVar2 != 0) { buffer_free(&local_38); if (*(long *)(lVar2 + 0x38) != 0) { uVar1 = *(int8 *)(lVar2 + 0x38); *param_5 = *(int8 *)(lVar2 + 0x30); param_5[1] = uVar1; return 1; } if (*(char **)(lVar2 + 0x48) != (char *)0x0) { pcVar3 = strdup(*(char **)(lVar2 + 0x48)); *(char **)(param_1 + 8) = pcVar3; return 0; } } puVar4 = (int4 *)safe_calloc(1,0x80); *puVar4 = param_4; *(int8 *)(puVar4 + 4) = uStack_30; *(int8 *)(puVar4 + 1) = 0x100000000; c4_state_add_request(param_1,puVar4); return 0; }
47,721
req_client_update
corpus-core[P]colibri-stateless/src/chains/eth/verifier/sync_committee_state.c
static bool req_client_update(c4_state_t* state, uint32_t period, uint32_t count, chain_id_t chain_id, bytes_t* data) { buffer_t tmp = {0}; bprintf(&tmp, "eth/v1/beacon/light_client/updates?start_period=%d&count=%d", period, count); data_request_t* req = c4_state_get_data_request_by_url(state, (char*) tmp.data.data); if (req) buffer_free(&tmp); if (req && req->response.data) { *data = req->response; return true; } else if (req && req->error) { state->error = strdup(req->error); return false; } data_request_t* new_req = safe_calloc(1, sizeof(data_request_t)); new_req->chain_id = chain_id; new_req->url = (char*) tmp.data.data; new_req->encoding = C4_DATA_ENCODING_SSZ; new_req->type = C4_DATA_TYPE_BEACON_API; c4_state_add_request(state, new_req); return false; }
O2
c
req_client_update: pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x18, %rsp movq %r8, %r14 movl %ecx, %ebp movl %edx, %ecx movl %esi, %edx movq %rdi, %rbx xorps %xmm0, %xmm0 movq %rsp, %r15 movaps %xmm0, (%r15) andq $0x0, 0x10(%r15) leaq 0x4f241(%rip), %rsi # 0x74674 movq %r15, %rdi xorl %eax, %eax callq 0x4b737 movq 0x8(%r15), %rsi movq %rbx, %rdi callq 0x505ab testq %rax, %rax je 0x25481 movq %rax, %r15 movq %rsp, %rdi callq 0x4b16d cmpq $0x0, 0x38(%r15) je 0x2546d movups 0x30(%r15), %xmm0 movups %xmm0, (%r14) movb $0x1, %al jmp 0x254b4 movq 0x48(%r15), %rdi testq %rdi, %rdi je 0x25481 callq 0x22030 movq %rax, 0x8(%rbx) jmp 0x254b2 pushq $0x1 popq %rdi movl $0x80, %esi callq 0x4af39 movl %ebp, (%rax) movq 0x8(%rsp), %rcx movq %rcx, 0x10(%rax) movabsq $0x100000000, %rcx # imm = 0x100000000 movq %rcx, 0x4(%rax) movq %rbx, %rdi movq %rax, %rsi callq 0x505f6 xorl %eax, %eax addq $0x18, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
req_client_update: push rbp push r15 push r14 push rbx sub rsp, 18h mov r14, r8 mov ebp, ecx mov ecx, edx mov edx, esi mov rbx, rdi xorps xmm0, xmm0 mov r15, rsp movaps xmmword ptr [r15], xmm0 and qword ptr [r15+10h], 0 lea rsi, aEthV1BeaconLig; "eth/v1/beacon/light_client/updates?star"... mov rdi, r15 xor eax, eax call bprintf mov rsi, [r15+8] mov rdi, rbx call c4_state_get_data_request_by_url test rax, rax jz short loc_25481 mov r15, rax mov rdi, rsp call buffer_free cmp qword ptr [r15+38h], 0 jz short loc_2546D movups xmm0, xmmword ptr [r15+30h] movups xmmword ptr [r14], xmm0 mov al, 1 jmp short loc_254B4 loc_2546D: mov rdi, [r15+48h] test rdi, rdi jz short loc_25481 call _strdup mov [rbx+8], rax jmp short loc_254B2 loc_25481: push 1 pop rdi mov esi, 80h call safe_calloc mov [rax], ebp mov rcx, [rsp+38h+var_30] mov [rax+10h], rcx mov rcx, 100000000h mov [rax+4], rcx mov rdi, rbx mov rsi, rax call c4_state_add_request loc_254B2: xor eax, eax loc_254B4: add rsp, 18h pop rbx pop r14 pop r15 pop rbp retn
char req_client_update(long long a1, int a2, int a3, int a4, _OWORD *a5, int a6) { long long data_request_by_url; // rax long long v10; // r15 long long v12; // rdi long long v13; // rax __int128 v14; // [rsp+0h] [rbp-38h] BYREF long long v15; // [rsp+10h] [rbp-28h] v14 = 0LL; v15 = 0LL; bprintf( (unsigned int)&v14, (unsigned int)"eth/v1/beacon/light_client/updates?start_period=%d&count=%d", a2, a3, (_DWORD)a5, a6, 0LL); data_request_by_url = c4_state_get_data_request_by_url(a1, *((_QWORD *)&v14 + 1)); if ( !data_request_by_url ) goto LABEL_6; v10 = data_request_by_url; buffer_free(&v14); if ( *(_QWORD *)(v10 + 56) ) { *a5 = *(_OWORD *)(v10 + 48); return 1; } v12 = *(_QWORD *)(v10 + 72); if ( v12 ) { *(_QWORD *)(a1 + 8) = strdup(v12); } else { LABEL_6: v13 = safe_calloc(1LL, 128LL); *(_DWORD *)v13 = a4; *(_QWORD *)(v13 + 16) = *((_QWORD *)&v14 + 1); *(_QWORD *)(v13 + 4) = 0x100000000LL; c4_state_add_request(a1, v13); } return 0; }
req_client_update: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x18 MOV R14,R8 MOV EBP,ECX MOV ECX,EDX MOV EDX,ESI MOV RBX,RDI XORPS XMM0,XMM0 MOV R15,RSP MOVAPS xmmword ptr [R15],XMM0 AND qword ptr [R15 + 0x10],0x0 LEA RSI,[0x174674] MOV RDI,R15 XOR EAX,EAX CALL 0x0014b737 MOV RSI,qword ptr [R15 + 0x8] MOV RDI,RBX CALL 0x001505ab TEST RAX,RAX JZ 0x00125481 MOV R15,RAX MOV RDI,RSP CALL 0x0014b16d CMP qword ptr [R15 + 0x38],0x0 JZ 0x0012546d MOVUPS XMM0,xmmword ptr [R15 + 0x30] MOVUPS xmmword ptr [R14],XMM0 MOV AL,0x1 JMP 0x001254b4 LAB_0012546d: MOV RDI,qword ptr [R15 + 0x48] TEST RDI,RDI JZ 0x00125481 CALL 0x00122030 MOV qword ptr [RBX + 0x8],RAX JMP 0x001254b2 LAB_00125481: PUSH 0x1 POP RDI MOV ESI,0x80 CALL 0x0014af39 MOV dword ptr [RAX],EBP MOV RCX,qword ptr [RSP + 0x8] MOV qword ptr [RAX + 0x10],RCX MOV RCX,0x100000000 MOV qword ptr [RAX + 0x4],RCX MOV RDI,RBX MOV RSI,RAX CALL 0x001505f6 LAB_001254b2: XOR EAX,EAX LAB_001254b4: ADD RSP,0x18 POP RBX POP R14 POP R15 POP RBP RET
int8 req_client_update(long param_1,int4 param_2,int4 param_3,int4 param_4, int8 *param_5) { int8 uVar1; long lVar2; char *pcVar3; int4 *puVar4; int8 local_38; int8 uStack_30; int8 local_28; local_38 = 0; uStack_30 = 0; local_28 = 0; bprintf(&local_38,"eth/v1/beacon/light_client/updates?start_period=%d&count=%d",param_2,param_3); lVar2 = c4_state_get_data_request_by_url(param_1,uStack_30); if (lVar2 != 0) { buffer_free(&local_38); if (*(long *)(lVar2 + 0x38) != 0) { uVar1 = *(int8 *)(lVar2 + 0x38); *param_5 = *(int8 *)(lVar2 + 0x30); param_5[1] = uVar1; return 1; } if (*(char **)(lVar2 + 0x48) != (char *)0x0) { pcVar3 = strdup(*(char **)(lVar2 + 0x48)); *(char **)(param_1 + 8) = pcVar3; return 0; } } puVar4 = (int4 *)safe_calloc(1,0x80); *puVar4 = param_4; *(int8 *)(puVar4 + 4) = uStack_30; *(int8 *)(puVar4 + 1) = 0x100000000; c4_state_add_request(param_1,puVar4); return 0; }
47,722
req_client_update
corpus-core[P]colibri-stateless/src/chains/eth/verifier/sync_committee_state.c
static bool req_client_update(c4_state_t* state, uint32_t period, uint32_t count, chain_id_t chain_id, bytes_t* data) { buffer_t tmp = {0}; bprintf(&tmp, "eth/v1/beacon/light_client/updates?start_period=%d&count=%d", period, count); data_request_t* req = c4_state_get_data_request_by_url(state, (char*) tmp.data.data); if (req) buffer_free(&tmp); if (req && req->response.data) { *data = req->response; return true; } else if (req && req->error) { state->error = strdup(req->error); return false; } data_request_t* new_req = safe_calloc(1, sizeof(data_request_t)); new_req->chain_id = chain_id; new_req->url = (char*) tmp.data.data; new_req->encoding = C4_DATA_ENCODING_SSZ; new_req->type = C4_DATA_TYPE_BEACON_API; c4_state_add_request(state, new_req); return false; }
O3
c
req_client_update: pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x18, %rsp movq %r8, %r14 movl %ecx, %ebp movl %edx, %ecx movl %esi, %edx movq %rdi, %rbx xorps %xmm0, %xmm0 movq %rsp, %r15 movaps %xmm0, (%r15) movq $0x0, 0x10(%r15) leaq 0x5b47f(%rip), %rsi # 0x81674 movq %r15, %rdi xorl %eax, %eax callq 0x53780 movq 0x8(%r15), %rsi movq %rbx, %rdi callq 0x58900 testq %rax, %rax je 0x26243 movq %rax, %r15 movq %rsp, %rdi callq 0x5310b cmpq $0x0, 0x38(%r15) je 0x2622f movups 0x30(%r15), %xmm0 movups %xmm0, (%r14) movb $0x1, %al jmp 0x26278 movq 0x48(%r15), %rdi testq %rdi, %rdi je 0x26243 callq 0x22030 movq %rax, 0x8(%rbx) jmp 0x26276 movl $0x1, %edi movl $0x80, %esi callq 0x52f3b movl %ebp, (%rax) movq 0x8(%rsp), %rcx movq %rcx, 0x10(%rax) movabsq $0x100000000, %rcx # imm = 0x100000000 movq %rcx, 0x4(%rax) movq %rbx, %rdi movq %rax, %rsi callq 0x5894d xorl %eax, %eax addq $0x18, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
req_client_update: push rbp push r15 push r14 push rbx sub rsp, 18h mov r14, r8 mov ebp, ecx mov ecx, edx mov edx, esi mov rbx, rdi xorps xmm0, xmm0 mov r15, rsp movaps xmmword ptr [r15], xmm0 mov qword ptr [r15+10h], 0 lea rsi, aEthV1BeaconLig; "eth/v1/beacon/light_client/updates?star"... mov rdi, r15 xor eax, eax call bprintf mov rsi, [r15+8] mov rdi, rbx call c4_state_get_data_request_by_url test rax, rax jz short loc_26243 mov r15, rax mov rdi, rsp call buffer_free cmp qword ptr [r15+38h], 0 jz short loc_2622F movups xmm0, xmmword ptr [r15+30h] movups xmmword ptr [r14], xmm0 mov al, 1 jmp short loc_26278 loc_2622F: mov rdi, [r15+48h] test rdi, rdi jz short loc_26243 call _strdup mov [rbx+8], rax jmp short loc_26276 loc_26243: mov edi, 1 mov esi, 80h call safe_calloc mov [rax], ebp mov rcx, [rsp+38h+var_30] mov [rax+10h], rcx mov rcx, 100000000h mov [rax+4], rcx mov rdi, rbx mov rsi, rax call c4_state_add_request loc_26276: xor eax, eax loc_26278: add rsp, 18h pop rbx pop r14 pop r15 pop rbp retn
char req_client_update(long long a1, int a2, int a3, int a4, _OWORD *a5, int a6) { long long data_request_by_url; // rax long long v10; // r15 long long v12; // rdi long long v13; // rax __int128 v14; // [rsp+0h] [rbp-38h] BYREF long long v15; // [rsp+10h] [rbp-28h] v14 = 0LL; v15 = 0LL; bprintf( (unsigned int)&v14, (unsigned int)"eth/v1/beacon/light_client/updates?start_period=%d&count=%d", a2, a3, (_DWORD)a5, a6, 0LL); data_request_by_url = c4_state_get_data_request_by_url(a1, *((_QWORD *)&v14 + 1)); if ( !data_request_by_url ) goto LABEL_6; v10 = data_request_by_url; buffer_free(&v14); if ( *(_QWORD *)(v10 + 56) ) { *a5 = *(_OWORD *)(v10 + 48); return 1; } v12 = *(_QWORD *)(v10 + 72); if ( v12 ) { *(_QWORD *)(a1 + 8) = strdup(v12); } else { LABEL_6: v13 = safe_calloc(1LL, 128LL); *(_DWORD *)v13 = a4; *(_QWORD *)(v13 + 16) = *((_QWORD *)&v14 + 1); *(_QWORD *)(v13 + 4) = 0x100000000LL; c4_state_add_request(a1, v13); } return 0; }
req_client_update: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x18 MOV R14,R8 MOV EBP,ECX MOV ECX,EDX MOV EDX,ESI MOV RBX,RDI XORPS XMM0,XMM0 MOV R15,RSP MOVAPS xmmword ptr [R15],XMM0 MOV qword ptr [R15 + 0x10],0x0 LEA RSI,[0x181674] MOV RDI,R15 XOR EAX,EAX CALL 0x00153780 MOV RSI,qword ptr [R15 + 0x8] MOV RDI,RBX CALL 0x00158900 TEST RAX,RAX JZ 0x00126243 MOV R15,RAX MOV RDI,RSP CALL 0x0015310b CMP qword ptr [R15 + 0x38],0x0 JZ 0x0012622f MOVUPS XMM0,xmmword ptr [R15 + 0x30] MOVUPS xmmword ptr [R14],XMM0 MOV AL,0x1 JMP 0x00126278 LAB_0012622f: MOV RDI,qword ptr [R15 + 0x48] TEST RDI,RDI JZ 0x00126243 CALL 0x00122030 MOV qword ptr [RBX + 0x8],RAX JMP 0x00126276 LAB_00126243: MOV EDI,0x1 MOV ESI,0x80 CALL 0x00152f3b MOV dword ptr [RAX],EBP MOV RCX,qword ptr [RSP + 0x8] MOV qword ptr [RAX + 0x10],RCX MOV RCX,0x100000000 MOV qword ptr [RAX + 0x4],RCX MOV RDI,RBX MOV RSI,RAX CALL 0x0015894d LAB_00126276: XOR EAX,EAX LAB_00126278: ADD RSP,0x18 POP RBX POP R14 POP R15 POP RBP RET
int8 req_client_update(long param_1,int4 param_2,int4 param_3,int4 param_4, int8 *param_5) { int8 uVar1; long lVar2; char *pcVar3; int4 *puVar4; int8 local_38; int8 uStack_30; int8 local_28; local_38 = 0; uStack_30 = 0; local_28 = 0; bprintf(&local_38,"eth/v1/beacon/light_client/updates?start_period=%d&count=%d",param_2,param_3); lVar2 = c4_state_get_data_request_by_url(param_1,uStack_30); if (lVar2 != 0) { buffer_free(&local_38); if (*(long *)(lVar2 + 0x38) != 0) { uVar1 = *(int8 *)(lVar2 + 0x38); *param_5 = *(int8 *)(lVar2 + 0x30); param_5[1] = uVar1; return 1; } if (*(char **)(lVar2 + 0x48) != (char *)0x0) { pcVar3 = strdup(*(char **)(lVar2 + 0x48)); *(char **)(param_1 + 8) = pcVar3; return 0; } } puVar4 = (int4 *)safe_calloc(1,0x80); *puVar4 = param_4; *(int8 *)(puVar4 + 4) = uStack_30; *(int8 *)(puVar4 + 1) = 0x100000000; c4_state_add_request(param_1,puVar4); return 0; }
47,723
google::protobuf::FieldDescriptorProto::Clear()
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc
void FieldDescriptorProto::Clear() { // @@protoc_insertion_point(message_clear_start:google.protobuf.FieldDescriptorProto) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x0000003fu) { if (cached_has_bits & 0x00000001u) { _impl_.name_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { _impl_.extendee_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { _impl_.type_name_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { _impl_.default_value_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000010u) { _impl_.json_name_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000020u) { GOOGLE_DCHECK(_impl_.options_ != nullptr); _impl_.options_->Clear(); } } if (cached_has_bits & 0x000000c0u) { ::memset(&_impl_.number_, 0, static_cast<size_t>( reinterpret_cast<char*>(&_impl_.oneof_index_) - reinterpret_cast<char*>(&_impl_.number_)) + sizeof(_impl_.oneof_index_)); } if (cached_has_bits & 0x00000700u) { _impl_.proto3_optional_ = false; _impl_.label_ = 1; _impl_.type_ = 1; } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); }
O3
cpp
google::protobuf::FieldDescriptorProto::Clear(): pushq %rbp pushq %rbx pushq %rax movq %rdi, %rbx movl 0x10(%rdi), %ebp testb $0x3f, %bpl je 0xee38c testb $0x1, %bpl je 0xee30d movq 0x18(%rbx), %rax andq $-0x4, %rax movq $0x0, 0x8(%rax) movq (%rax), %rax movb $0x0, (%rax) testb $0x2, %bpl je 0xee329 movq 0x20(%rbx), %rax andq $-0x4, %rax movq $0x0, 0x8(%rax) movq (%rax), %rax movb $0x0, (%rax) testb $0x4, %bpl je 0xee345 movq 0x28(%rbx), %rax andq $-0x4, %rax movq $0x0, 0x8(%rax) movq (%rax), %rax movb $0x0, (%rax) testb $0x8, %bpl je 0xee361 movq 0x30(%rbx), %rax andq $-0x4, %rax movq $0x0, 0x8(%rax) movq (%rax), %rax movb $0x0, (%rax) testb $0x10, %bpl je 0xee37d movq 0x38(%rbx), %rax andq $-0x4, %rax movq $0x0, 0x8(%rax) movq (%rax), %rax movb $0x0, (%rax) testb $0x20, %bpl je 0xee38c movq 0x40(%rbx), %rdi callq 0xee3da testb $-0x40, %bpl je 0xee39a movq $0x0, 0x48(%rbx) testl $0x700, %ebp # imm = 0x700 je 0xee3b4 movb $0x0, 0x50(%rbx) movabsq $0x100000001, %rax # imm = 0x100000001 movq %rax, 0x54(%rbx) movl $0x0, 0x10(%rbx) testb $0x1, 0x8(%rbx) jne 0xee3c8 addq $0x8, %rsp popq %rbx popq %rbp retq addq $0x8, %rbx movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %rbp jmp 0x73576
_ZN6google8protobuf20FieldDescriptorProto5ClearEv: push rbp push rbx push rax mov rbx, rdi mov ebp, [rdi+10h] test bpl, 3Fh jz loc_EE38C test bpl, 1 jz short loc_EE30D mov rax, [rbx+18h] and rax, 0FFFFFFFFFFFFFFFCh mov qword ptr [rax+8], 0 mov rax, [rax] mov byte ptr [rax], 0 loc_EE30D: test bpl, 2 jz short loc_EE329 mov rax, [rbx+20h] and rax, 0FFFFFFFFFFFFFFFCh mov qword ptr [rax+8], 0 mov rax, [rax] mov byte ptr [rax], 0 loc_EE329: test bpl, 4 jz short loc_EE345 mov rax, [rbx+28h] and rax, 0FFFFFFFFFFFFFFFCh mov qword ptr [rax+8], 0 mov rax, [rax] mov byte ptr [rax], 0 loc_EE345: test bpl, 8 jz short loc_EE361 mov rax, [rbx+30h] and rax, 0FFFFFFFFFFFFFFFCh mov qword ptr [rax+8], 0 mov rax, [rax] mov byte ptr [rax], 0 loc_EE361: test bpl, 10h jz short loc_EE37D mov rax, [rbx+38h] and rax, 0FFFFFFFFFFFFFFFCh mov qword ptr [rax+8], 0 mov rax, [rax] mov byte ptr [rax], 0 loc_EE37D: test bpl, 20h jz short loc_EE38C mov rdi, [rbx+40h]; this call _ZN6google8protobuf12FieldOptions5ClearEv; google::protobuf::FieldOptions::Clear(void) loc_EE38C: test bpl, 0C0h jz short loc_EE39A mov qword ptr [rbx+48h], 0 loc_EE39A: test ebp, 700h jz short loc_EE3B4 mov byte ptr [rbx+50h], 0 mov rax, 100000001h mov [rbx+54h], rax loc_EE3B4: mov dword ptr [rbx+10h], 0 test byte ptr [rbx+8], 1 jnz short loc_EE3C8 add rsp, 8 pop rbx pop rbp retn loc_EE3C8: add rbx, 8 mov rdi, rbx add rsp, 8 pop rbx pop rbp jmp _ZN6google8protobuf8internal16InternalMetadata7DoClearINS0_15UnknownFieldSetEEEvv; google::protobuf::internal::InternalMetadata::DoClear<google::protobuf::UnknownFieldSet>(void)
long long google::protobuf::FieldDescriptorProto::Clear(google::protobuf::FieldDescriptorProto *this) { int v1; // ebp long long *v2; // rax long long result; // rax long long *v4; // rax long long *v5; // rax long long *v6; // rax long long *v7; // rax v1 = *((_DWORD *)this + 4); if ( (v1 & 0x3F) != 0 ) { if ( (v1 & 1) != 0 ) { v2 = (long long *)(*((_QWORD *)this + 3) & 0xFFFFFFFFFFFFFFFCLL); v2[1] = 0LL; result = *v2; *(_BYTE *)result = 0; } if ( (v1 & 2) != 0 ) { v4 = (long long *)(*((_QWORD *)this + 4) & 0xFFFFFFFFFFFFFFFCLL); v4[1] = 0LL; result = *v4; *(_BYTE *)result = 0; } if ( (v1 & 4) != 0 ) { v5 = (long long *)(*((_QWORD *)this + 5) & 0xFFFFFFFFFFFFFFFCLL); v5[1] = 0LL; result = *v5; *(_BYTE *)result = 0; } if ( (v1 & 8) != 0 ) { v6 = (long long *)(*((_QWORD *)this + 6) & 0xFFFFFFFFFFFFFFFCLL); v6[1] = 0LL; result = *v6; *(_BYTE *)result = 0; } if ( (v1 & 0x10) != 0 ) { v7 = (long long *)(*((_QWORD *)this + 7) & 0xFFFFFFFFFFFFFFFCLL); v7[1] = 0LL; result = *v7; *(_BYTE *)result = 0; } if ( (v1 & 0x20) != 0 ) result = google::protobuf::FieldOptions::Clear(*((google::protobuf::FieldOptions **)this + 8)); } if ( (v1 & 0xC0) != 0 ) *((_QWORD *)this + 9) = 0LL; if ( (v1 & 0x700) != 0 ) { *((_BYTE *)this + 80) = 0; result = 0x100000001LL; *(_QWORD *)((char *)this + 84) = 0x100000001LL; } *((_DWORD *)this + 4) = 0; if ( (*((_BYTE *)this + 8) & 1) != 0 ) return google::protobuf::internal::InternalMetadata::DoClear<google::protobuf::UnknownFieldSet>((long long *)this + 1); return result; }
Clear: PUSH RBP PUSH RBX PUSH RAX MOV RBX,RDI MOV EBP,dword ptr [RDI + 0x10] TEST BPL,0x3f JZ 0x001ee38c TEST BPL,0x1 JZ 0x001ee30d MOV RAX,qword ptr [RBX + 0x18] AND RAX,-0x4 MOV qword ptr [RAX + 0x8],0x0 MOV RAX,qword ptr [RAX] MOV byte ptr [RAX],0x0 LAB_001ee30d: TEST BPL,0x2 JZ 0x001ee329 MOV RAX,qword ptr [RBX + 0x20] AND RAX,-0x4 MOV qword ptr [RAX + 0x8],0x0 MOV RAX,qword ptr [RAX] MOV byte ptr [RAX],0x0 LAB_001ee329: TEST BPL,0x4 JZ 0x001ee345 MOV RAX,qword ptr [RBX + 0x28] AND RAX,-0x4 MOV qword ptr [RAX + 0x8],0x0 MOV RAX,qword ptr [RAX] MOV byte ptr [RAX],0x0 LAB_001ee345: TEST BPL,0x8 JZ 0x001ee361 MOV RAX,qword ptr [RBX + 0x30] AND RAX,-0x4 MOV qword ptr [RAX + 0x8],0x0 MOV RAX,qword ptr [RAX] MOV byte ptr [RAX],0x0 LAB_001ee361: TEST BPL,0x10 JZ 0x001ee37d MOV RAX,qword ptr [RBX + 0x38] AND RAX,-0x4 MOV qword ptr [RAX + 0x8],0x0 MOV RAX,qword ptr [RAX] MOV byte ptr [RAX],0x0 LAB_001ee37d: TEST BPL,0x20 JZ 0x001ee38c MOV RDI,qword ptr [RBX + 0x40] CALL 0x001ee3da LAB_001ee38c: TEST BPL,0xc0 JZ 0x001ee39a MOV qword ptr [RBX + 0x48],0x0 LAB_001ee39a: TEST EBP,0x700 JZ 0x001ee3b4 MOV byte ptr [RBX + 0x50],0x0 MOV RAX,0x100000001 MOV qword ptr [RBX + 0x54],RAX LAB_001ee3b4: MOV dword ptr [RBX + 0x10],0x0 TEST byte ptr [RBX + 0x8],0x1 JNZ 0x001ee3c8 ADD RSP,0x8 POP RBX POP RBP RET LAB_001ee3c8: ADD RBX,0x8 MOV RDI,RBX ADD RSP,0x8 POP RBX POP RBP JMP 0x00173576
/* google::protobuf::FieldDescriptorProto::Clear() */ void __thiscall google::protobuf::FieldDescriptorProto::Clear(FieldDescriptorProto *this) { uint uVar1; ulong uVar2; uVar1 = *(uint *)(this + 0x10); if ((uVar1 & 0x3f) != 0) { if ((uVar1 & 1) != 0) { uVar2 = *(ulong *)(this + 0x18); ((int8 *)(uVar2 & 0xfffffffffffffffc))[1] = 0; **(int1 **)(uVar2 & 0xfffffffffffffffc) = 0; } if ((uVar1 & 2) != 0) { uVar2 = *(ulong *)(this + 0x20); ((int8 *)(uVar2 & 0xfffffffffffffffc))[1] = 0; **(int1 **)(uVar2 & 0xfffffffffffffffc) = 0; } if ((uVar1 & 4) != 0) { uVar2 = *(ulong *)(this + 0x28); ((int8 *)(uVar2 & 0xfffffffffffffffc))[1] = 0; **(int1 **)(uVar2 & 0xfffffffffffffffc) = 0; } if ((uVar1 & 8) != 0) { uVar2 = *(ulong *)(this + 0x30); ((int8 *)(uVar2 & 0xfffffffffffffffc))[1] = 0; **(int1 **)(uVar2 & 0xfffffffffffffffc) = 0; } if ((uVar1 & 0x10) != 0) { uVar2 = *(ulong *)(this + 0x38); ((int8 *)(uVar2 & 0xfffffffffffffffc))[1] = 0; **(int1 **)(uVar2 & 0xfffffffffffffffc) = 0; } if ((uVar1 & 0x20) != 0) { FieldOptions::Clear(*(FieldOptions **)(this + 0x40)); } } if ((uVar1 & 0xc0) != 0) { *(int8 *)(this + 0x48) = 0; } if ((uVar1 & 0x700) != 0) { this[0x50] = (FieldDescriptorProto)0x0; *(int8 *)(this + 0x54) = 0x100000001; } *(int4 *)(this + 0x10) = 0; if (((byte)this[8] & 1) == 0) { return; } internal::InternalMetadata::DoClear<google::protobuf::UnknownFieldSet> ((InternalMetadata *)(this + 8)); return; }
47,724
allocate_dynamic
eloqsql/mysys/array.c
my_bool allocate_dynamic(DYNAMIC_ARRAY *array, uint max_elements) { DBUG_ENTER("allocate_dynamic"); if (max_elements >= array->max_element) { uint size; uchar *new_ptr; size= (max_elements + array->alloc_increment)/array->alloc_increment; size*= array->alloc_increment; if (array->malloc_flags & MY_INIT_BUFFER_USED) { /* In this senerio, the buffer is statically preallocated, so we have to create an all-new malloc since we overflowed */ if (!(new_ptr= (uchar *) my_malloc(array->m_psi_key, size * array->size_of_element, MYF(array->malloc_flags | MY_WME)))) DBUG_RETURN(0); memcpy(new_ptr, array->buffer, array->elements * array->size_of_element); array->malloc_flags&= ~MY_INIT_BUFFER_USED; } else if (!(new_ptr= (uchar*) my_realloc(array->m_psi_key, array->buffer,size * array->size_of_element, MYF(MY_WME | MY_ALLOW_ZERO_PTR | array->malloc_flags)))) DBUG_RETURN(TRUE); array->buffer= new_ptr; array->max_element= size; } DBUG_RETURN(FALSE); }
O0
c
allocate_dynamic: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl -0x14(%rbp), %eax movq -0x10(%rbp), %rcx cmpl 0xc(%rcx), %eax jb 0x84e05 movl -0x14(%rbp), %eax movq -0x10(%rbp), %rcx addl 0x10(%rcx), %eax movq -0x10(%rbp), %rcx xorl %edx, %edx divl 0x10(%rcx) movl %eax, -0x18(%rbp) movq -0x10(%rbp), %rax movl 0x10(%rax), %eax imull -0x18(%rbp), %eax movl %eax, -0x18(%rbp) movq -0x10(%rbp), %rax movq 0x20(%rax), %rax andq $0x100, %rax # imm = 0x100 cmpq $0x0, %rax je 0x84dae movq -0x10(%rbp), %rax movl 0x18(%rax), %edi movl -0x18(%rbp), %eax movq -0x10(%rbp), %rcx imull 0x14(%rcx), %eax movl %eax, %eax movl %eax, %esi movq -0x10(%rbp), %rax movq 0x20(%rax), %rdx orq $0x10, %rdx callq 0x7fad0 movq %rax, -0x20(%rbp) cmpq $0x0, %rax jne 0x84d73 jmp 0x84d6a movb $0x0, -0x1(%rbp) jmp 0x84e0b movq -0x20(%rbp), %rdi movq -0x10(%rbp), %rax movq (%rax), %rsi movq -0x10(%rbp), %rax movl 0x8(%rax), %eax movq -0x10(%rbp), %rcx imull 0x14(%rcx), %eax movl %eax, %eax movl %eax, %edx callq 0x370c0 movq -0x10(%rbp), %rax movabsq $0xfffffeff, %rcx # imm = 0xFFFFFEFF andq 0x20(%rax), %rcx movq %rcx, 0x20(%rax) jmp 0x84df0 movq -0x10(%rbp), %rax movl 0x18(%rax), %edi movq -0x10(%rbp), %rax movq (%rax), %rsi movl -0x18(%rbp), %eax movq -0x10(%rbp), %rcx imull 0x14(%rcx), %eax movl %eax, %eax movl %eax, %edx movq -0x10(%rbp), %rax movq 0x20(%rax), %rcx orq $0x50, %rcx callq 0x7fca0 movq %rax, -0x20(%rbp) cmpq $0x0, %rax jne 0x84dee jmp 0x84de8 movb $0x1, -0x1(%rbp) jmp 0x84e0b jmp 0x84df0 movq -0x20(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) movl -0x18(%rbp), %ecx movq -0x10(%rbp), %rax movl %ecx, 0xc(%rax) jmp 0x84e07 movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
allocate_dynamic: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov eax, [rbp+var_14] mov rcx, [rbp+var_10] cmp eax, [rcx+0Ch] jb loc_84E05 mov eax, [rbp+var_14] mov rcx, [rbp+var_10] add eax, [rcx+10h] mov rcx, [rbp+var_10] xor edx, edx div dword ptr [rcx+10h] mov [rbp+var_18], eax mov rax, [rbp+var_10] mov eax, [rax+10h] imul eax, [rbp+var_18] mov [rbp+var_18], eax mov rax, [rbp+var_10] mov rax, [rax+20h] and rax, 100h cmp rax, 0 jz short loc_84DAE mov rax, [rbp+var_10] mov edi, [rax+18h] mov eax, [rbp+var_18] mov rcx, [rbp+var_10] imul eax, [rcx+14h] mov eax, eax mov esi, eax mov rax, [rbp+var_10] mov rdx, [rax+20h] or rdx, 10h call my_malloc mov [rbp+var_20], rax cmp rax, 0 jnz short loc_84D73 jmp short $+2 loc_84D6A: mov [rbp+var_1], 0 jmp loc_84E0B loc_84D73: mov rdi, [rbp+var_20] mov rax, [rbp+var_10] mov rsi, [rax] mov rax, [rbp+var_10] mov eax, [rax+8] mov rcx, [rbp+var_10] imul eax, [rcx+14h] mov eax, eax mov edx, eax call _memcpy mov rax, [rbp+var_10] mov rcx, 0FFFFFEFFh and rcx, [rax+20h] mov [rax+20h], rcx jmp short loc_84DF0 loc_84DAE: mov rax, [rbp+var_10] mov edi, [rax+18h] mov rax, [rbp+var_10] mov rsi, [rax] mov eax, [rbp+var_18] mov rcx, [rbp+var_10] imul eax, [rcx+14h] mov eax, eax mov edx, eax mov rax, [rbp+var_10] mov rcx, [rax+20h] or rcx, 50h call my_realloc mov [rbp+var_20], rax cmp rax, 0 jnz short loc_84DEE jmp short $+2 loc_84DE8: mov [rbp+var_1], 1 jmp short loc_84E0B loc_84DEE: jmp short $+2 loc_84DF0: mov rcx, [rbp+var_20] mov rax, [rbp+var_10] mov [rax], rcx mov ecx, [rbp+var_18] mov rax, [rbp+var_10] mov [rax+0Ch], ecx loc_84E05: jmp short $+2 loc_84E07: mov [rbp+var_1], 0 loc_84E0B: mov al, [rbp+var_1] add rsp, 20h pop rbp retn
char allocate_dynamic(long long *a1, unsigned int a2) { long long v3; // [rsp+0h] [rbp-20h] unsigned int v4; // [rsp+8h] [rbp-18h] if ( a2 < *((_DWORD *)a1 + 3) ) return 0; v4 = (*((_DWORD *)a1 + 4) + a2) / *((_DWORD *)a1 + 4) * *((_DWORD *)a1 + 4); if ( (a1[4] & 0x100) == 0 ) { v3 = my_realloc(*((_DWORD *)a1 + 6), *a1, *((_DWORD *)a1 + 5) * v4, *((_BYTE *)a1 + 32) | 0x50u); if ( !v3 ) return 1; goto LABEL_8; } v3 = my_malloc(*((_DWORD *)a1 + 6), *((_DWORD *)a1 + 5) * v4, *((_DWORD *)a1 + 8) | 0x10u); if ( v3 ) { memcpy(v3, *a1, (unsigned int)(*((_DWORD *)a1 + 5) * *((_DWORD *)a1 + 2))); a1[4] &= 0xFFFFFEFFuLL; LABEL_8: *a1 = v3; *((_DWORD *)a1 + 3) = v4; return 0; } return 0; }
allocate_dynamic: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV EAX,dword ptr [RBP + -0x14] MOV RCX,qword ptr [RBP + -0x10] CMP EAX,dword ptr [RCX + 0xc] JC 0x00184e05 MOV EAX,dword ptr [RBP + -0x14] MOV RCX,qword ptr [RBP + -0x10] ADD EAX,dword ptr [RCX + 0x10] MOV RCX,qword ptr [RBP + -0x10] XOR EDX,EDX DIV dword ptr [RCX + 0x10] MOV dword ptr [RBP + -0x18],EAX MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x10] IMUL EAX,dword ptr [RBP + -0x18] MOV dword ptr [RBP + -0x18],EAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x20] AND RAX,0x100 CMP RAX,0x0 JZ 0x00184dae MOV RAX,qword ptr [RBP + -0x10] MOV EDI,dword ptr [RAX + 0x18] MOV EAX,dword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x10] IMUL EAX,dword ptr [RCX + 0x14] MOV EAX,EAX MOV ESI,EAX MOV RAX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RAX + 0x20] OR RDX,0x10 CALL 0x0017fad0 MOV qword ptr [RBP + -0x20],RAX CMP RAX,0x0 JNZ 0x00184d73 JMP 0x00184d6a LAB_00184d6a: MOV byte ptr [RBP + -0x1],0x0 JMP 0x00184e0b LAB_00184d73: MOV RDI,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x8] MOV RCX,qword ptr [RBP + -0x10] IMUL EAX,dword ptr [RCX + 0x14] MOV EAX,EAX MOV EDX,EAX CALL 0x001370c0 MOV RAX,qword ptr [RBP + -0x10] MOV RCX,0xfffffeff AND RCX,qword ptr [RAX + 0x20] MOV qword ptr [RAX + 0x20],RCX JMP 0x00184df0 LAB_00184dae: MOV RAX,qword ptr [RBP + -0x10] MOV EDI,dword ptr [RAX + 0x18] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX] MOV EAX,dword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x10] IMUL EAX,dword ptr [RCX + 0x14] MOV EAX,EAX MOV EDX,EAX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x20] OR RCX,0x50 CALL 0x0017fca0 MOV qword ptr [RBP + -0x20],RAX CMP RAX,0x0 JNZ 0x00184dee JMP 0x00184de8 LAB_00184de8: MOV byte ptr [RBP + -0x1],0x1 JMP 0x00184e0b LAB_00184dee: JMP 0x00184df0 LAB_00184df0: MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX MOV ECX,dword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0xc],ECX LAB_00184e05: JMP 0x00184e07 LAB_00184e07: MOV byte ptr [RBP + -0x1],0x0 LAB_00184e0b: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x20 POP RBP RET
int1 allocate_dynamic(int8 *param_1,uint param_2) { int iVar1; void *local_28; if (*(uint *)((long)param_1 + 0xc) <= param_2) { iVar1 = *(int *)(param_1 + 2) * ((param_2 + *(int *)(param_1 + 2)) / *(uint *)(param_1 + 2)); if ((param_1[4] & 0x100) == 0) { local_28 = (void *)my_realloc(*(int4 *)(param_1 + 3),*param_1, iVar1 * *(int *)((long)param_1 + 0x14),param_1[4] | 0x50); if (local_28 == (void *)0x0) { return 1; } } else { local_28 = (void *)my_malloc(*(int4 *)(param_1 + 3), iVar1 * *(int *)((long)param_1 + 0x14),param_1[4] | 0x10); if (local_28 == (void *)0x0) { return 0; } memcpy(local_28,(void *)*param_1, (ulong)(uint)(*(int *)(param_1 + 1) * *(int *)((long)param_1 + 0x14))); param_1[4] = param_1[4] & 0xfffffeff; } *param_1 = local_28; *(int *)((long)param_1 + 0xc) = iVar1; } return 0; }
47,725
cxxopts::exceptions::exception::~exception()
shubhamoy[P]dir2txt/include/cxxopts.hpp
explicit exception(std::string message) : m_message(std::move(message)) { }
O1
cpp
cxxopts::exceptions::exception::~exception(): pushq %rbx movq %rdi, %rbx leaq 0x2773f(%rip), %rax # 0x4d368 movq %rax, (%rdi) movq 0x8(%rdi), %rdi leaq 0x18(%rbx), %rax cmpq %rax, %rdi je 0x25c44 movq (%rax), %rsi incq %rsi callq 0x8380 movq %rbx, %rdi popq %rbx jmp 0x8610 nop
_ZN7cxxopts10exceptions9exceptionD2Ev: push rbx mov rbx, rdi lea rax, off_4D368 mov [rdi], rax mov rdi, [rdi+8]; void * lea rax, [rbx+18h] cmp rdi, rax jz short loc_25C44 mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_25C44: mov rdi, rbx; this pop rbx jmp __ZNSt9exceptionD2Ev; std::exception::~exception()
void cxxopts::exceptions::exception::~exception(std::exception *a1) { _QWORD *v2; // rdi *(_QWORD *)a1 = off_4D368; v2 = (_QWORD *)*((_QWORD *)a1 + 1); if ( v2 != (_QWORD *)((char *)a1 + 24) ) operator delete(v2, *((_QWORD *)a1 + 3) + 1LL); std::exception::~exception(a1); }
~exception: PUSH RBX MOV RBX,RDI LEA RAX,[0x14d368] MOV qword ptr [RDI],RAX MOV RDI,qword ptr [RDI + 0x8] LEA RAX,[RBX + 0x18] CMP RDI,RAX JZ 0x00125c44 MOV RSI,qword ptr [RAX] INC RSI CALL 0x00108380 LAB_00125c44: MOV RDI,RBX POP RBX JMP 0x00108610
/* cxxopts::exceptions::exception::~exception() */ void __thiscall cxxopts::exceptions::exception::~exception(exception *this) { *(int ***)this = &PTR__exception_0014d368; if (*(exception **)(this + 8) != this + 0x18) { operator_delete(*(exception **)(this + 8),*(long *)(this + 0x18) + 1); } std::exception::~exception((exception *)this); return; }
47,726
ConfigString::~ConfigString()
untodesu[P]voxelius/core/config.hh
virtual ~ConfigString(void) = default;
O1
cpp
ConfigString::~ConfigString(): pushq %rbx movq %rdi, %rbx movq 0x8(%rdi), %rdi leaq 0x18(%rbx), %rax cmpq %rax, %rdi je 0x13120e movq (%rax), %rsi incq %rsi callq 0x268d0 movl $0x28, %esi movq %rbx, %rdi popq %rbx jmp 0x268d0
_ZN12ConfigStringD0Ev: push rbx mov rbx, rdi mov rdi, [rdi+8]; void * lea rax, [rbx+18h] cmp rdi, rax jz short loc_13120E mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_13120E: mov esi, 28h ; '('; unsigned __int64 mov rdi, rbx; void * pop rbx jmp __ZdlPvm; operator delete(void *,ulong)
void ConfigString::~ConfigString(ConfigString *this) { char *v2; // rdi v2 = (char *)*((_QWORD *)this + 1); if ( v2 != (char *)this + 24 ) operator delete(v2, *((_QWORD *)this + 3) + 1LL); operator delete(this, 0x28uLL); }
47,727
ConfigString::~ConfigString()
untodesu[P]voxelius/core/config.hh
virtual ~ConfigString(void) = default;
O3
cpp
ConfigString::~ConfigString(): movq %rdi, %rax movq 0x8(%rdi), %rdi addq $0x18, %rax cmpq %rax, %rdi je 0x4acb7 movq (%rax), %rsi incq %rsi jmp 0x268e0 retq
_ZN12ConfigStringD2Ev: mov rax, rdi mov rdi, [rdi+8]; void * add rax, 18h cmp rdi, rax jz short locret_4ACB7 mov rsi, [rax] inc rsi; unsigned __int64 jmp __ZdlPvm; operator delete(void *,ulong) locret_4ACB7: retn
void ConfigString::~ConfigString(_QWORD *a1) { _QWORD *v2; // rdi _QWORD *v3; // rax v2 = (_QWORD *)a1[1]; v3 = a1 + 3; if ( v2 != v3 ) operator delete(v2, *v3 + 1LL); }
~ConfigString: MOV RAX,RDI MOV RDI,qword ptr [RDI + 0x8] ADD RAX,0x18 CMP RDI,RAX JZ 0x0014acb7 MOV RSI,qword ptr [RAX] INC RSI JMP 0x001268e0 LAB_0014acb7: RET
/* ConfigString::~ConfigString() */ void __thiscall ConfigString::~ConfigString(ConfigString *this) { if (*(ConfigString **)(this + 8) != this + 0x18) { operator_delete(*(ConfigString **)(this + 8),*(long *)(this + 0x18) + 1); return; } return; }
47,728
my_block_write
eloqsql/mysys/mf_iocache.c
int my_block_write(IO_CACHE *info, const uchar *Buffer, size_t Count, my_off_t pos) { size_t length; int error=0; /* Assert that we cannot come here with a shared cache. If we do one day, we might need to add a call to copy_to_read_buffer(). */ DBUG_ASSERT(!info->share); DBUG_ASSERT(!(info->myflags & MY_ENCRYPT)); if (pos < info->pos_in_file) { /* Of no overlap, write everything without buffering */ if (pos + Count <= info->pos_in_file) return (int)mysql_file_pwrite(info->file, Buffer, Count, pos, info->myflags | MY_NABP); /* Write the part of the block that is before buffer */ length= (uint) (info->pos_in_file - pos); if (mysql_file_pwrite(info->file, Buffer, length, pos, info->myflags | MY_NABP)) info->error= error= -1; Buffer+=length; pos+= length; Count-= length; } /* Check if we want to write inside the used part of the buffer.*/ length= (size_t) (info->write_end - info->buffer); if (pos < info->pos_in_file + length) { size_t offset= (size_t) (pos - info->pos_in_file); length-=offset; if (length > Count) length=Count; memcpy(info->buffer+offset, Buffer, length); Buffer+=length; Count-= length; /* Fix length of buffer if the new data was larger */ if (info->buffer+length > info->write_pos) info->write_pos=info->buffer+length; if (!Count) return (error); } /* Write at the end of the current buffer; This is the normal case */ if (_my_b_write(info, Buffer, Count)) error= -1; return error; }
O3
c
my_block_write: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x68, %rsp movq %rcx, %r15 movq %rdi, %r12 movq (%rdi), %r13 xorl %r14d, %r14d cmpq %rcx, %r13 jbe 0x542f7 movq %rsi, -0x30(%rbp) movq %rdx, -0x38(%rbp) leaq (%r15,%rdx), %rax cmpq %r13, %rax jbe 0x54288 subl %r15d, %r13d movl 0xd4(%r12), %ebx movq 0xf8(%r12), %r14 orq $0x4, %r14 leaq 0x2dfc2c(%rip), %rax # 0x333e60 movq (%rax), %rax leaq -0x88(%rbp), %rdi movl %ebx, %esi movl $0x7, %edx callq *0x158(%rax) testq %rax, %rax jne 0x54376 movl %ebx, %edi movq -0x30(%rbp), %rsi movq %r13, %rdx movq %r15, %rcx movq %r14, %r8 callq 0x5da0e movq %rax, %rbx testq %rbx, %rbx movq -0x38(%rbp), %rdx je 0x542e3 movl $0xffffffff, 0xe4(%r12) # imm = 0xFFFFFFFF movl $0xffffffff, %r14d # imm = 0xFFFFFFFF jmp 0x542e6 movl 0xd4(%r12), %r13d movq 0xf8(%r12), %r14 orq $0x4, %r14 leaq 0x2dfbbd(%rip), %r12 # 0x333e60 movq (%r12), %rax leaq -0x88(%rbp), %rdi movl %r13d, %esi movl $0x7, %edx callq *0x158(%rax) testq %rax, %rax jne 0x543d8 movl %r13d, %edi movq -0x30(%rbp), %rsi movq -0x38(%rbp), %rdx movq %r15, %rcx movq %r14, %r8 callq 0x5da0e movq %rax, %r14 jmp 0x54364 xorl %r14d, %r14d movq -0x30(%rbp), %rsi addq %r13, %rsi addq %r13, %r15 subq %r13, %rdx movq (%r12), %r13 movq 0x20(%r12), %rdi movq 0x48(%r12), %rbx subq %rdi, %rbx leaq (%rbx,%r13), %rax cmpq %rax, %r15 jae 0x54350 subq %r13, %r15 subq %r15, %rbx cmpq %rdx, %rbx cmovaeq %rdx, %rbx addq %r15, %rdi movq %rsi, %r13 movq %rdx, %r15 movq %rbx, %rdx callq 0x282c0 movq %r15, %rdx subq %rbx, %rdx movq 0x20(%r12), %rax addq %rbx, %rax cmpq 0x40(%r12), %rax jbe 0x54345 movq %rax, 0x40(%r12) testq %rdx, %rdx je 0x54364 movq %r13, %rsi addq %rbx, %rsi movq %r12, %rdi callq 0x5374b xorl %ecx, %ecx negl %eax sbbl %ecx, %ecx orl %r14d, %ecx movl %ecx, %r14d movl %r14d, %eax addq $0x68, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rcx leaq 0x2dfae0(%rip), %rax # 0x333e60 movq (%rax), %rax leaq 0x423bc(%rip), %rdx # 0x96746 movq %rcx, -0x40(%rbp) movq %rcx, %rdi movq %r13, %rsi movl $0x676, %ecx # imm = 0x676 callq *0x210(%rax) movl %ebx, %edi movq -0x30(%rbp), %rsi movq %r13, %rdx movq %r15, %rcx movq %r14, %r8 callq 0x5da0e movq %rax, %rbx xorl %esi, %esi testq %rax, %rax cmoveq %r13, %rsi leaq 0x2dfa9a(%rip), %rax # 0x333e60 movq (%rax), %rax movq -0x40(%rbp), %rdi callq *0x218(%rax) jmp 0x5426b movq %rax, %rbx movq (%r12), %rax leaq 0x42360(%rip), %rdx # 0x96746 movq %rbx, %rdi movq -0x38(%rbp), %rsi movl $0x673, %ecx # imm = 0x673 callq *0x210(%rax) movl %r13d, %edi movq -0x30(%rbp), %rsi movq -0x38(%rbp), %r13 movq %r13, %rdx movq %r15, %rcx movq %r14, %r8 callq 0x5da0e movq %rax, %r14 xorl %esi, %esi testq %rax, %rax cmoveq %r13, %rsi movq (%r12), %rax movq %rbx, %rdi callq *0x218(%rax) jmp 0x54364
my_block_write: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 68h mov r15, rcx mov r12, rdi mov r13, [rdi] xor r14d, r14d cmp r13, rcx jbe loc_542F7 mov [rbp+var_30], rsi mov [rbp+var_38], rdx lea rax, [r15+rdx] cmp rax, r13 jbe short loc_54288 sub r13d, r15d mov ebx, [r12+0D4h] mov r14, [r12+0F8h] or r14, 4 lea rax, PSI_server mov rax, [rax] lea rdi, [rbp+var_88] mov esi, ebx mov edx, 7 call qword ptr [rax+158h] test rax, rax jnz loc_54376 mov edi, ebx mov rsi, [rbp+var_30] mov rdx, r13 mov rcx, r15 mov r8, r14 call my_pwrite mov rbx, rax loc_5426B: test rbx, rbx mov rdx, [rbp+var_38] jz short loc_542E3 mov dword ptr [r12+0E4h], 0FFFFFFFFh mov r14d, 0FFFFFFFFh jmp short loc_542E6 loc_54288: mov r13d, [r12+0D4h] mov r14, [r12+0F8h] or r14, 4 lea r12, PSI_server mov rax, [r12] lea rdi, [rbp+var_88] mov esi, r13d mov edx, 7 call qword ptr [rax+158h] test rax, rax jnz loc_543D8 mov edi, r13d mov rsi, [rbp+var_30] mov rdx, [rbp+var_38] mov rcx, r15 mov r8, r14 call my_pwrite mov r14, rax jmp loc_54364 loc_542E3: xor r14d, r14d loc_542E6: mov rsi, [rbp+var_30] add rsi, r13 add r15, r13 sub rdx, r13 mov r13, [r12] loc_542F7: mov rdi, [r12+20h] mov rbx, [r12+48h] sub rbx, rdi lea rax, [rbx+r13] cmp r15, rax jnb short loc_54350 sub r15, r13 sub rbx, r15 cmp rbx, rdx cmovnb rbx, rdx add rdi, r15 mov r13, rsi mov r15, rdx mov rdx, rbx call _memcpy mov rdx, r15 sub rdx, rbx mov rax, [r12+20h] add rax, rbx cmp rax, [r12+40h] jbe short loc_54345 mov [r12+40h], rax loc_54345: test rdx, rdx jz short loc_54364 mov rsi, r13 add rsi, rbx loc_54350: mov rdi, r12 call _my_b_write xor ecx, ecx neg eax sbb ecx, ecx or ecx, r14d mov r14d, ecx loc_54364: mov eax, r14d add rsp, 68h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_54376: mov rcx, rax lea rax, PSI_server mov rax, [rax] lea rdx, aWorkspaceLlm4b_10; "/workspace/llm4binary/github2025/eloqsq"... mov [rbp+var_40], rcx mov rdi, rcx mov rsi, r13 mov ecx, 676h call qword ptr [rax+210h] mov edi, ebx mov rsi, [rbp+var_30] mov rdx, r13 mov rcx, r15 mov r8, r14 call my_pwrite mov rbx, rax xor esi, esi test rax, rax cmovz rsi, r13 lea rax, PSI_server mov rax, [rax] mov rdi, [rbp+var_40] call qword ptr [rax+218h] jmp loc_5426B loc_543D8: mov rbx, rax mov rax, [r12] lea rdx, aWorkspaceLlm4b_10; "/workspace/llm4binary/github2025/eloqsq"... mov rdi, rbx mov rsi, [rbp+var_38] mov ecx, 673h call qword ptr [rax+210h] mov edi, r13d mov rsi, [rbp+var_30] mov r13, [rbp+var_38] mov rdx, r13 mov rcx, r15 mov r8, r14 call my_pwrite mov r14, rax xor esi, esi test rax, rax cmovz rsi, r13 mov rax, [r12] mov rdi, rbx call qword ptr [rax+218h] jmp loc_54364
long long my_block_write(long long a1, const char *a2, unsigned long long a3, unsigned long long a4) { unsigned long long v4; // r15 unsigned long long v6; // r13 long long v7; // r14 long long v8; // r13 unsigned int v9; // ebx long long v10; // r14 long long v11; // rax long long v12; // rbx unsigned long long v13; // rdx unsigned int v14; // r13d long long v15; // rax long long v16; // rdi long long v17; // rbx long long v18; // r15 unsigned long long v19; // rbx long long v20; // rdi unsigned long long v21; // r15 unsigned long long v22; // rax long long v24; // rsi long long v25; // rbx long long v26; // rdi unsigned long long v27; // r13 unsigned long long v28; // rsi _BYTE v29[72]; // [rsp+8h] [rbp-88h] BYREF long long v30; // [rsp+50h] [rbp-40h] unsigned long long v31; // [rsp+58h] [rbp-38h] const char *v32; // [rsp+60h] [rbp-30h] v4 = a4; v6 = *(_QWORD *)a1; LODWORD(v7) = 0; if ( *(_QWORD *)a1 > a4 ) { v32 = a2; v31 = a3; if ( a4 + a3 <= v6 ) { v14 = *(_DWORD *)(a1 + 212); v7 = *(_QWORD *)(a1 + 248) | 4LL; v15 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v29, v14, 7LL); if ( v15 ) { v25 = v15; ((void ( *)(long long, unsigned long long, const char *, long long))PSI_server[66])( v15, v31, "/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c", 1651LL); v26 = v14; v27 = v31; v7 = my_pwrite(v26, v32, v31, v4, v7); v28 = 0LL; if ( !v7 ) v28 = v27; ((void ( *)(long long, unsigned long long))PSI_server[67])(v25, v28); } else { LODWORD(v7) = my_pwrite(v14, v32, v31, v4, v7); } return (unsigned int)v7; } v8 = (unsigned int)(v6 - a4); v9 = *(_DWORD *)(a1 + 212); v10 = *(_QWORD *)(a1 + 248) | 4LL; v11 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v29, v9, 7LL); if ( v11 ) { v30 = v11; ((void ( *)(long long, long long, const char *, long long))PSI_server[66])( v11, v8, "/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c", 1654LL); v12 = my_pwrite(v9, v32, v8, v4, v10); v24 = 0LL; if ( !v12 ) v24 = v8; ((void ( *)(long long, long long))PSI_server[67])(v30, v24); } else { v12 = my_pwrite(v9, v32, v8, v4, v10); } v13 = v31; if ( v12 ) { *(_DWORD *)(a1 + 228) = -1; LODWORD(v7) = -1; } else { LODWORD(v7) = 0; } a2 = &v32[v8]; v4 += v8; a3 = v13 - v8; v6 = *(_QWORD *)a1; } v16 = *(_QWORD *)(a1 + 32); v17 = *(_QWORD *)(a1 + 72) - v16; if ( v4 >= v17 + v6 ) { LABEL_18: LODWORD(v7) = (unsigned int)my_b_write(a1, a2, a3) != 0 ? -1 : v7; return (unsigned int)v7; } v18 = v4 - v6; v19 = v17 - v18; if ( v19 >= a3 ) v19 = a3; v20 = v18 + v16; v21 = a3; memcpy(v20, a2, v19); a3 = v21 - v19; v22 = v19 + *(_QWORD *)(a1 + 32); if ( v22 > *(_QWORD *)(a1 + 64) ) *(_QWORD *)(a1 + 64) = v22; if ( a3 ) { a2 += v19; goto LABEL_18; } return (unsigned int)v7; }
my_block_write: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x68 MOV R15,RCX MOV R12,RDI MOV R13,qword ptr [RDI] XOR R14D,R14D CMP R13,RCX JBE 0x001542f7 MOV qword ptr [RBP + -0x30],RSI MOV qword ptr [RBP + -0x38],RDX LEA RAX,[R15 + RDX*0x1] CMP RAX,R13 JBE 0x00154288 SUB R13D,R15D MOV EBX,dword ptr [R12 + 0xd4] MOV R14,qword ptr [R12 + 0xf8] OR R14,0x4 LEA RAX,[0x433e60] MOV RAX,qword ptr [RAX] LEA RDI,[RBP + -0x88] MOV ESI,EBX MOV EDX,0x7 CALL qword ptr [RAX + 0x158] TEST RAX,RAX JNZ 0x00154376 MOV EDI,EBX MOV RSI,qword ptr [RBP + -0x30] MOV RDX,R13 MOV RCX,R15 MOV R8,R14 CALL 0x0015da0e MOV RBX,RAX LAB_0015426b: TEST RBX,RBX MOV RDX,qword ptr [RBP + -0x38] JZ 0x001542e3 MOV dword ptr [R12 + 0xe4],0xffffffff MOV R14D,0xffffffff JMP 0x001542e6 LAB_00154288: MOV R13D,dword ptr [R12 + 0xd4] MOV R14,qword ptr [R12 + 0xf8] OR R14,0x4 LEA R12,[0x433e60] MOV RAX,qword ptr [R12] LEA RDI,[RBP + -0x88] MOV ESI,R13D MOV EDX,0x7 CALL qword ptr [RAX + 0x158] TEST RAX,RAX JNZ 0x001543d8 MOV EDI,R13D MOV RSI,qword ptr [RBP + -0x30] MOV RDX,qword ptr [RBP + -0x38] MOV RCX,R15 MOV R8,R14 CALL 0x0015da0e MOV R14,RAX JMP 0x00154364 LAB_001542e3: XOR R14D,R14D LAB_001542e6: MOV RSI,qword ptr [RBP + -0x30] ADD RSI,R13 ADD R15,R13 SUB RDX,R13 MOV R13,qword ptr [R12] LAB_001542f7: MOV RDI,qword ptr [R12 + 0x20] MOV RBX,qword ptr [R12 + 0x48] SUB RBX,RDI LEA RAX,[RBX + R13*0x1] CMP R15,RAX JNC 0x00154350 SUB R15,R13 SUB RBX,R15 CMP RBX,RDX CMOVNC RBX,RDX ADD RDI,R15 MOV R13,RSI MOV R15,RDX MOV RDX,RBX CALL 0x001282c0 MOV RDX,R15 SUB RDX,RBX MOV RAX,qword ptr [R12 + 0x20] ADD RAX,RBX CMP RAX,qword ptr [R12 + 0x40] JBE 0x00154345 MOV qword ptr [R12 + 0x40],RAX LAB_00154345: TEST RDX,RDX JZ 0x00154364 MOV RSI,R13 ADD RSI,RBX LAB_00154350: MOV RDI,R12 CALL 0x0015374b XOR ECX,ECX NEG EAX SBB ECX,ECX OR ECX,R14D MOV R14D,ECX LAB_00154364: MOV EAX,R14D ADD RSP,0x68 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00154376: MOV RCX,RAX LEA RAX,[0x433e60] MOV RAX,qword ptr [RAX] LEA RDX,[0x196746] MOV qword ptr [RBP + -0x40],RCX MOV RDI,RCX MOV RSI,R13 MOV ECX,0x676 CALL qword ptr [RAX + 0x210] MOV EDI,EBX MOV RSI,qword ptr [RBP + -0x30] MOV RDX,R13 MOV RCX,R15 MOV R8,R14 CALL 0x0015da0e MOV RBX,RAX XOR ESI,ESI TEST RAX,RAX CMOVZ RSI,R13 LEA RAX,[0x433e60] MOV RAX,qword ptr [RAX] MOV RDI,qword ptr [RBP + -0x40] CALL qword ptr [RAX + 0x218] JMP 0x0015426b LAB_001543d8: MOV RBX,RAX MOV RAX,qword ptr [R12] LEA RDX,[0x196746] MOV RDI,RBX MOV RSI,qword ptr [RBP + -0x38] MOV ECX,0x673 CALL qword ptr [RAX + 0x210] MOV EDI,R13D MOV RSI,qword ptr [RBP + -0x30] MOV R13,qword ptr [RBP + -0x38] MOV RDX,R13 MOV RCX,R15 MOV R8,R14 CALL 0x0015da0e MOV R14,RAX XOR ESI,ESI TEST RAX,RAX CMOVZ RSI,R13 MOV RAX,qword ptr [R12] MOV RDI,RBX CALL qword ptr [RAX + 0x218] JMP 0x00154364
ulong my_block_write(ulong *param_1,void *param_2,ulong param_3,ulong param_4) { int4 uVar1; int iVar2; long lVar3; ulong uVar4; ulong uVar5; ulong uVar6; int1 local_90 [72]; long local_48; ulong local_40; void *local_38; uVar5 = *param_1; uVar6 = 0; if (param_4 < uVar5) { local_40 = param_3; local_38 = param_2; if (param_4 + param_3 <= uVar5) { uVar1 = *(int4 *)((long)param_1 + 0xd4); uVar5 = param_1[0x1f]; lVar3 = (**(code **)(PSI_server + 0x158))(local_90,uVar1,7); if (lVar3 == 0) { uVar6 = my_pwrite(uVar1,local_38,local_40,param_4,uVar5 | 4); } else { (**(code **)(PSI_server + 0x210)) (lVar3,local_40,"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c", 0x673); uVar4 = local_40; uVar6 = my_pwrite(uVar1,local_38,local_40,param_4,uVar5 | 4); uVar5 = 0; if (uVar6 == 0) { uVar5 = uVar4; } (**(code **)(PSI_server + 0x218))(lVar3,uVar5); } goto LAB_00154364; } param_3 = (ulong)(uint)((int)uVar5 - (int)param_4); uVar1 = *(int4 *)((long)param_1 + 0xd4); uVar5 = param_1[0x1f]; lVar3 = (**(code **)(PSI_server + 0x158))(local_90,uVar1,7); if (lVar3 == 0) { lVar3 = my_pwrite(uVar1,local_38,param_3,param_4,uVar5 | 4); } else { local_48 = lVar3; (**(code **)(PSI_server + 0x210)) (lVar3,param_3,"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",0x676); lVar3 = my_pwrite(uVar1,local_38,param_3,param_4,uVar5 | 4); uVar5 = 0; if (lVar3 == 0) { uVar5 = param_3; } (**(code **)(PSI_server + 0x218))(local_48,uVar5); } if (lVar3 == 0) { uVar6 = 0; } else { *(int4 *)((long)param_1 + 0xe4) = 0xffffffff; uVar6 = 0xffffffff; } param_2 = (void *)((long)local_38 + param_3); param_4 = param_4 + param_3; param_3 = local_40 - param_3; uVar5 = *param_1; } lVar3 = param_1[9] - param_1[4]; if (param_4 < lVar3 + uVar5) { uVar4 = lVar3 - (param_4 - uVar5); if (param_3 <= uVar4) { uVar4 = param_3; } memcpy((void *)(param_1[4] + (param_4 - uVar5)),param_2,uVar4); if (param_1[8] < param_1[4] + uVar4) { param_1[8] = param_1[4] + uVar4; } if (param_3 == uVar4) goto LAB_00154364; param_2 = (void *)((long)param_2 + uVar4); } iVar2 = _my_b_write(param_1,param_2); uVar6 = (ulong)(-(uint)(iVar2 != 0) | (uint)uVar6); LAB_00154364: return uVar6 & 0xffffffff; }
47,729
mbr_join
eloqsql/storage/myisam/rt_split.c
static void mbr_join(double *a, const double *b, int n_dim) { double *end = a + n_dim * 2; do { if (a[0] > b[0]) a[0] = b[0]; if (a[1] < b[1]) a[1] = b[1]; a += 2; b += 2; }while (a != end); }
O0
c
mbr_join: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movq -0x8(%rbp), %rax movl -0x14(%rbp), %ecx shll %ecx movslq %ecx, %rcx shlq $0x3, %rcx addq %rcx, %rax movq %rax, -0x20(%rbp) movq -0x8(%rbp), %rax movsd (%rax), %xmm0 movq -0x10(%rbp), %rax ucomisd (%rax), %xmm0 jbe 0xd5eb8 movq -0x10(%rbp), %rax movsd (%rax), %xmm0 movq -0x8(%rbp), %rax movsd %xmm0, (%rax) movq -0x8(%rbp), %rax movsd 0x8(%rax), %xmm1 movq -0x10(%rbp), %rax movsd 0x8(%rax), %xmm0 ucomisd %xmm1, %xmm0 jbe 0xd5ee2 movq -0x10(%rbp), %rax movsd 0x8(%rax), %xmm0 movq -0x8(%rbp), %rax movsd %xmm0, 0x8(%rax) movq -0x8(%rbp), %rax addq $0x10, %rax movq %rax, -0x8(%rbp) movq -0x10(%rbp), %rax addq $0x10, %rax movq %rax, -0x10(%rbp) movq -0x8(%rbp), %rax cmpq -0x20(%rbp), %rax jne 0xd5e96 popq %rbp retq nopw %cs:(%rax,%rax)
mbr_join_0: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx mov rax, [rbp+var_8] mov ecx, [rbp+var_14] shl ecx, 1 movsxd rcx, ecx shl rcx, 3 add rax, rcx mov [rbp+var_20], rax loc_D5E96: mov rax, [rbp+var_8] movsd xmm0, qword ptr [rax] mov rax, [rbp+var_10] ucomisd xmm0, qword ptr [rax] jbe short loc_D5EB8 mov rax, [rbp+var_10] movsd xmm0, qword ptr [rax] mov rax, [rbp+var_8] movsd qword ptr [rax], xmm0 loc_D5EB8: mov rax, [rbp+var_8] movsd xmm1, qword ptr [rax+8] mov rax, [rbp+var_10] movsd xmm0, qword ptr [rax+8] ucomisd xmm0, xmm1 jbe short loc_D5EE2 mov rax, [rbp+var_10] movsd xmm0, qword ptr [rax+8] mov rax, [rbp+var_8] movsd qword ptr [rax+8], xmm0 loc_D5EE2: mov rax, [rbp+var_8] add rax, 10h mov [rbp+var_8], rax mov rax, [rbp+var_10] add rax, 10h mov [rbp+var_10], rax mov rax, [rbp+var_8] cmp rax, [rbp+var_20] jnz short loc_D5E96 pop rbp retn
double * mbr_join_0(double *a1, double *a2, int a3) { double *result; // rax double *v5; // [rsp+18h] [rbp-8h] v5 = a1; do { if ( *v5 > *a2 ) *v5 = *a2; if ( a2[1] > v5[1] ) v5[1] = a2[1]; v5 += 2; a2 += 2; result = v5; } while ( v5 != &a1[2 * a3] ); return result; }
mbr_join: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RBP + -0x14] SHL ECX,0x1 MOVSXD RCX,ECX SHL RCX,0x3 ADD RAX,RCX MOV qword ptr [RBP + -0x20],RAX LAB_001d5e96: MOV RAX,qword ptr [RBP + -0x8] MOVSD XMM0,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] UCOMISD XMM0,qword ptr [RAX] JBE 0x001d5eb8 MOV RAX,qword ptr [RBP + -0x10] MOVSD XMM0,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x8] MOVSD qword ptr [RAX],XMM0 LAB_001d5eb8: MOV RAX,qword ptr [RBP + -0x8] MOVSD XMM1,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x10] MOVSD XMM0,qword ptr [RAX + 0x8] UCOMISD XMM0,XMM1 JBE 0x001d5ee2 MOV RAX,qword ptr [RBP + -0x10] MOVSD XMM0,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x8] MOVSD qword ptr [RAX + 0x8],XMM0 LAB_001d5ee2: MOV RAX,qword ptr [RBP + -0x8] ADD RAX,0x10 MOV qword ptr [RBP + -0x8],RAX MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x10 MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x8] CMP RAX,qword ptr [RBP + -0x20] JNZ 0x001d5e96 POP RBP RET
void mbr_join(double *param_1,double *param_2,int param_3) { double *local_18; double *local_10; local_18 = param_2; local_10 = param_1; do { if (*local_18 <= *local_10 && *local_10 != *local_18) { *local_10 = *local_18; } if (local_10[1] < local_18[1]) { local_10[1] = local_18[1]; } local_10 = local_10 + 2; local_18 = local_18 + 2; } while (local_10 != param_1 + (param_3 << 1)); return; }
47,730
UntrackAudioBuffer
csit-sgu[P]mit-game-2025-team-tyler/Libraries/raylib/src/raudio.c
void UntrackAudioBuffer(AudioBuffer *buffer) { ma_mutex_lock(&AUDIO.System.lock); { if (buffer->prev == NULL) AUDIO.Buffer.first = buffer->next; else buffer->prev->next = buffer->next; if (buffer->next == NULL) AUDIO.Buffer.last = buffer->prev; else buffer->next->prev = buffer->prev; buffer->prev = NULL; buffer->next = NULL; } ma_mutex_unlock(&AUDIO.System.lock); }
O2
c
UntrackAudioBuffer: pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx leaq 0xe9f76(%rip), %r14 # 0x124b48 movq %r14, %rdi callq 0x97c0 movq 0x180(%rbx), %rax leaq 0x178(%rax), %rcx testq %rax, %rax leaq 0xe9f96(%rip), %rax # 0x124b88 cmovneq %rcx, %rax movq 0x178(%rbx), %rcx movq %rcx, (%rax) leaq 0x180(%rcx), %rax testq %rcx, %rcx movq 0x180(%rbx), %rcx leaq 0xe9f78(%rip), %rdx # 0x124b90 cmovneq %rax, %rdx movq %rcx, (%rdx) xorps %xmm0, %xmm0 movups %xmm0, 0x178(%rbx) movq %r14, %rdi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x93b0
UntrackAudioBuffer: push r14 push rbx push rax mov rbx, rdi lea r14, unk_124B48 mov rdi, r14 call _pthread_mutex_lock mov rax, [rbx+180h] lea rcx, [rax+178h] test rax, rax lea rax, qword_124B88 cmovnz rax, rcx mov rcx, [rbx+178h] mov [rax], rcx lea rax, [rcx+180h] test rcx, rcx mov rcx, [rbx+180h] lea rdx, qword_124B90 cmovnz rdx, rax mov [rdx], rcx xorps xmm0, xmm0 movups xmmword ptr [rbx+178h], xmm0 mov rdi, r14 add rsp, 8 pop rbx pop r14 jmp _pthread_mutex_unlock
long long UntrackAudioBuffer(long long a1) { long long v1; // rax long long *v2; // rcx bool v3; // zf long long *v4; // rax long long v5; // rcx long long *v6; // rdx pthread_mutex_lock(&unk_124B48); v1 = *(_QWORD *)(a1 + 384); v2 = (long long *)(v1 + 376); v3 = v1 == 0; v4 = &qword_124B88; if ( !v3 ) v4 = v2; v5 = *(_QWORD *)(a1 + 376); *v4 = v5; v6 = &qword_124B90; if ( v5 ) v6 = (long long *)(v5 + 384); *v6 = *(_QWORD *)(a1 + 384); *(_OWORD *)(a1 + 376) = 0LL; return pthread_mutex_unlock(&unk_124B48); }
UntrackAudioBuffer: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI LEA R14,[0x224b48] MOV RDI,R14 CALL 0x001097c0 MOV RAX,qword ptr [RBX + 0x180] LEA RCX,[RAX + 0x178] TEST RAX,RAX LEA RAX,[0x224b88] CMOVNZ RAX,RCX MOV RCX,qword ptr [RBX + 0x178] MOV qword ptr [RAX],RCX LEA RAX,[RCX + 0x180] TEST RCX,RCX MOV RCX,qword ptr [RBX + 0x180] LEA RDX,[0x224b90] CMOVNZ RDX,RAX MOV qword ptr [RDX],RCX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0x178],XMM0 MOV RDI,R14 ADD RSP,0x8 POP RBX POP R14 JMP 0x001093b0
void UntrackAudioBuffer(long param_1) { long lVar1; long *plVar2; int8 *puVar3; pthread_mutex_lock((pthread_mutex_t *)(AUDIO + 0x12b8)); plVar2 = (long *)(AUDIO + 0x12f8); if (*(long *)(param_1 + 0x180) != 0) { plVar2 = (long *)(*(long *)(param_1 + 0x180) + 0x178); } lVar1 = *(long *)(param_1 + 0x178); *plVar2 = lVar1; puVar3 = (int8 *)(AUDIO + 0x1300); if (lVar1 != 0) { puVar3 = (int8 *)(lVar1 + 0x180); } *puVar3 = *(int8 *)(param_1 + 0x180); *(int8 *)(param_1 + 0x178) = 0; *(int8 *)(param_1 + 0x180) = 0; pthread_mutex_unlock((pthread_mutex_t *)(AUDIO + 0x12b8)); return; }
47,731
next_name
corpus-core[P]colibri-stateless/src/util/json_validate.c
static const char* next_name(const char* pos, const char** next, int* len) { while (*pos && isspace(*pos)) pos++; const char* start = pos; while (*pos && isalnum(*pos)) pos++; *next = pos; *len = pos - start; return start; }
O0
c
next_name: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rax movsbl (%rax), %ecx xorl %eax, %eax cmpl $0x0, %ecx movb %al, -0x21(%rbp) je 0xa74d9 callq 0x230f0 movq (%rax), %rax movq -0x8(%rbp), %rcx movsbl (%rcx), %ecx movslq %ecx, %rcx movzwl (%rax,%rcx,2), %eax andl $0x2000, %eax # imm = 0x2000 cmpl $0x0, %eax setne %al movb %al, -0x21(%rbp) movb -0x21(%rbp), %al testb $0x1, %al jne 0xa74e2 jmp 0xa74f0 movq -0x8(%rbp), %rax addq $0x1, %rax movq %rax, -0x8(%rbp) jmp 0xa74a4 movq -0x8(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x8(%rbp), %rax movsbl (%rax), %ecx xorl %eax, %eax cmpl $0x0, %ecx movb %al, -0x22(%rbp) je 0xa752b callq 0x230f0 movq (%rax), %rax movq -0x8(%rbp), %rcx movsbl (%rcx), %ecx movslq %ecx, %rcx movzwl (%rax,%rcx,2), %eax andl $0x8, %eax cmpl $0x0, %eax setne %al movb %al, -0x22(%rbp) movb -0x22(%rbp), %al testb $0x1, %al jne 0xa7534 jmp 0xa7542 movq -0x8(%rbp), %rax addq $0x1, %rax movq %rax, -0x8(%rbp) jmp 0xa74f8 movq -0x8(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) movq -0x8(%rbp), %rax movq -0x20(%rbp), %rcx subq %rcx, %rax movl %eax, %ecx movq -0x18(%rbp), %rax movl %ecx, (%rax) movq -0x20(%rbp), %rax addq $0x30, %rsp popq %rbp retq nopw (%rax,%rax)
next_name: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx loc_A74A4: mov rax, [rbp+var_8] movsx ecx, byte ptr [rax] xor eax, eax cmp ecx, 0 mov [rbp+var_21], al jz short loc_A74D9 call ___ctype_b_loc mov rax, [rax] mov rcx, [rbp+var_8] movsx ecx, byte ptr [rcx] movsxd rcx, ecx movzx eax, word ptr [rax+rcx*2] and eax, 2000h cmp eax, 0 setnz al mov [rbp+var_21], al loc_A74D9: mov al, [rbp+var_21] test al, 1 jnz short loc_A74E2 jmp short loc_A74F0 loc_A74E2: mov rax, [rbp+var_8] add rax, 1 mov [rbp+var_8], rax jmp short loc_A74A4 loc_A74F0: mov rax, [rbp+var_8] mov [rbp+var_20], rax loc_A74F8: mov rax, [rbp+var_8] movsx ecx, byte ptr [rax] xor eax, eax cmp ecx, 0 mov [rbp+var_22], al jz short loc_A752B call ___ctype_b_loc mov rax, [rax] mov rcx, [rbp+var_8] movsx ecx, byte ptr [rcx] movsxd rcx, ecx movzx eax, word ptr [rax+rcx*2] and eax, 8 cmp eax, 0 setnz al mov [rbp+var_22], al loc_A752B: mov al, [rbp+var_22] test al, 1 jnz short loc_A7534 jmp short loc_A7542 loc_A7534: mov rax, [rbp+var_8] add rax, 1 mov [rbp+var_8], rax jmp short loc_A74F8 loc_A7542: mov rcx, [rbp+var_8] mov rax, [rbp+var_10] mov [rax], rcx mov rax, [rbp+var_8] mov rcx, [rbp+var_20] sub rax, rcx mov ecx, eax mov rax, [rbp+var_18] mov [rax], ecx mov rax, [rbp+var_20] add rsp, 30h pop rbp retn
_BYTE * next_name(_BYTE *a1, _QWORD *a2, _DWORD *a3) { bool v4; // [rsp+Eh] [rbp-22h] bool v5; // [rsp+Fh] [rbp-21h] _BYTE *v6; // [rsp+10h] [rbp-20h] while ( 1 ) { v5 = 0; if ( *a1 ) v5 = (*(_WORD *)(*(_QWORD *)__ctype_b_loc() + 2LL * (char)*a1) & 0x2000) != 0; if ( !v5 ) break; ++a1; } v6 = a1; while ( 1 ) { v4 = 0; if ( *a1 ) v4 = (*(_WORD *)(*(_QWORD *)__ctype_b_loc() + 2LL * (char)*a1) & 8) != 0; if ( !v4 ) break; ++a1; } *a2 = a1; *a3 = (_DWORD)a1 - (_DWORD)v6; return v6; }
next_name: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX LAB_001a74a4: MOV RAX,qword ptr [RBP + -0x8] MOVSX ECX,byte ptr [RAX] XOR EAX,EAX CMP ECX,0x0 MOV byte ptr [RBP + -0x21],AL JZ 0x001a74d9 CALL 0x001230f0 MOV RAX,qword ptr [RAX] MOV RCX,qword ptr [RBP + -0x8] MOVSX ECX,byte ptr [RCX] MOVSXD RCX,ECX MOVZX EAX,word ptr [RAX + RCX*0x2] AND EAX,0x2000 CMP EAX,0x0 SETNZ AL MOV byte ptr [RBP + -0x21],AL LAB_001a74d9: MOV AL,byte ptr [RBP + -0x21] TEST AL,0x1 JNZ 0x001a74e2 JMP 0x001a74f0 LAB_001a74e2: MOV RAX,qword ptr [RBP + -0x8] ADD RAX,0x1 MOV qword ptr [RBP + -0x8],RAX JMP 0x001a74a4 LAB_001a74f0: MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x20],RAX LAB_001a74f8: MOV RAX,qword ptr [RBP + -0x8] MOVSX ECX,byte ptr [RAX] XOR EAX,EAX CMP ECX,0x0 MOV byte ptr [RBP + -0x22],AL JZ 0x001a752b CALL 0x001230f0 MOV RAX,qword ptr [RAX] MOV RCX,qword ptr [RBP + -0x8] MOVSX ECX,byte ptr [RCX] MOVSXD RCX,ECX MOVZX EAX,word ptr [RAX + RCX*0x2] AND EAX,0x8 CMP EAX,0x0 SETNZ AL MOV byte ptr [RBP + -0x22],AL LAB_001a752b: MOV AL,byte ptr [RBP + -0x22] TEST AL,0x1 JNZ 0x001a7534 JMP 0x001a7542 LAB_001a7534: MOV RAX,qword ptr [RBP + -0x8] ADD RAX,0x1 MOV qword ptr [RBP + -0x8],RAX JMP 0x001a74f8 LAB_001a7542: MOV RCX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RBP + -0x20] SUB RAX,RCX MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x20] ADD RSP,0x30 POP RBP RET
char * next_name(char *param_1,int8 *param_2,int *param_3) { char *pcVar1; ushort **ppuVar2; bool bVar3; char *local_10; local_10 = param_1; while( true ) { pcVar1 = local_10; bVar3 = false; if (*local_10 != '\0') { ppuVar2 = __ctype_b_loc(); bVar3 = ((*ppuVar2)[(int)*local_10] & 0x2000) != 0; } if (!bVar3) break; local_10 = local_10 + 1; } while( true ) { bVar3 = false; if (*local_10 != '\0') { ppuVar2 = __ctype_b_loc(); bVar3 = ((*ppuVar2)[(int)*local_10] & 8) != 0; } if (!bVar3) break; local_10 = local_10 + 1; } *param_2 = local_10; *param_3 = (int)local_10 - (int)pcVar1; return pcVar1; }
47,732
next_name
corpus-core[P]colibri-stateless/src/util/json_validate.c
static const char* next_name(const char* pos, const char** next, int* len) { while (*pos && isspace(*pos)) pos++; const char* start = pos; while (*pos && isalnum(*pos)) pos++; *next = pos; *len = pos - start; return start; }
O2
c
next_name: pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rdx, %rbx movq %rsi, %r15 movq %rdi, %r14 movsbq (%r14), %r12 testq %r12, %r12 je 0x50468 callq 0x220e0 movq (%rax), %rax testb $0x20, 0x1(%rax,%r12,2) je 0x50468 incq %r14 jmp 0x5044a xorl %r13d, %r13d testb %r12b, %r12b je 0x5048c callq 0x220e0 movq (%rax), %rax movsbq %r12b, %rcx testb $0x8, (%rax,%rcx,2) je 0x5048c movb 0x1(%r14,%r13), %r12b incq %r13 jmp 0x5046b leaq (%r14,%r13), %rax movq %rax, (%r15) movl %r13d, (%rbx) movq %r14, %rax popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq nop
next_name: push r15 push r14 push r13 push r12 push rbx mov rbx, rdx mov r15, rsi mov r14, rdi loc_5044A: movsx r12, byte ptr [r14] test r12, r12 jz short loc_50468 call ___ctype_b_loc mov rax, [rax] test byte ptr [rax+r12*2+1], 20h jz short loc_50468 inc r14 jmp short loc_5044A loc_50468: xor r13d, r13d loc_5046B: test r12b, r12b jz short loc_5048C call ___ctype_b_loc mov rax, [rax] movsx rcx, r12b test byte ptr [rax+rcx*2], 8 jz short loc_5048C mov r12b, [r14+r13+1] inc r13 jmp short loc_5046B loc_5048C: lea rax, [r14+r13] mov [r15], rax mov [rbx], r13d mov rax, r14 pop rbx pop r12 pop r13 pop r14 pop r15 retn
_BYTE * next_name(_BYTE *a1, _QWORD *a2, _DWORD *a3) { _BYTE *i; // r14 long long v5; // r12 long long v6; // r13 for ( i = a1; ; ++i ) { v5 = (char)*i; if ( !*i || (*(_BYTE *)(*(_QWORD *)__ctype_b_loc(a1) + 2 * v5 + 1) & 0x20) == 0 ) break; } v6 = 0LL; while ( (_BYTE)v5 && (*(_BYTE *)(*(_QWORD *)__ctype_b_loc(a1) + 2LL * (char)v5) & 8) != 0 ) LOBYTE(v5) = i[++v6]; *a2 = &i[v6]; *a3 = v6; return i; }
next_name: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX MOV RBX,RDX MOV R15,RSI MOV R14,RDI LAB_0015044a: MOVSX R12,byte ptr [R14] TEST R12,R12 JZ 0x00150468 CALL 0x001220e0 MOV RAX,qword ptr [RAX] TEST byte ptr [RAX + R12*0x2 + 0x1],0x20 JZ 0x00150468 INC R14 JMP 0x0015044a LAB_00150468: XOR R13D,R13D LAB_0015046b: TEST R12B,R12B JZ 0x0015048c CALL 0x001220e0 MOV RAX,qword ptr [RAX] MOVSX RCX,R12B TEST byte ptr [RAX + RCX*0x2],0x8 JZ 0x0015048c MOV R12B,byte ptr [R14 + R13*0x1 + 0x1] INC R13 JMP 0x0015046b LAB_0015048c: LEA RAX,[R14 + R13*0x1] MOV qword ptr [R15],RAX MOV dword ptr [RBX],R13D MOV RAX,R14 POP RBX POP R12 POP R13 POP R14 POP R15 RET
char * next_name(char *param_1,long *param_2,int4 *param_3) { long lVar1; ushort **ppuVar2; ulong uVar3; long lVar4; for (; uVar3 = (ulong)*param_1, uVar3 != 0; param_1 = param_1 + 1) { ppuVar2 = __ctype_b_loc(); if ((*(byte *)((long)*ppuVar2 + uVar3 * 2 + 1) & 0x20) == 0) break; } lVar4 = 0; while ((char)uVar3 != '\0') { ppuVar2 = __ctype_b_loc(); if (((*ppuVar2)[(char)uVar3] & 8) == 0) break; lVar1 = lVar4 + 1; lVar4 = lVar4 + 1; uVar3 = (ulong)(byte)param_1[lVar1]; } *param_2 = (long)(param_1 + lVar4); *param_3 = (int)lVar4; return param_1; }
47,733
next_name
corpus-core[P]colibri-stateless/src/util/json_validate.c
static const char* next_name(const char* pos, const char** next, int* len) { while (*pos && isspace(*pos)) pos++; const char* start = pos; while (*pos && isalnum(*pos)) pos++; *next = pos; *len = pos - start; return start; }
O3
c
next_name: pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdx, %rbx movq %rsi, %r15 movq %rdi, %r14 movb (%rdi), %bpl testb %bpl, %bpl je 0x587af callq 0x220e0 movq (%rax), %rcx movsbq %bpl, %rax testb $0x20, 0x1(%rcx,%rax,2) je 0x587b4 movb 0x1(%r14), %bpl incq %r14 movq %r14, %rax testb %bpl, %bpl jne 0x58793 jmp 0x587d5 movq %r14, %rax jmp 0x587d5 callq 0x220e0 movq (%rax), %rcx movq %r14, %rax movsbq %bpl, %rdx testb $0x8, (%rcx,%rdx,2) je 0x587d5 movb 0x1(%rax), %bpl incq %rax testb %bpl, %bpl jne 0x587bf movq %rax, (%r15) subl %r14d, %eax movl %eax, (%rbx) movq %r14, %rax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq nop
next_name: push rbp push r15 push r14 push rbx push rax mov rbx, rdx mov r15, rsi mov r14, rdi mov bpl, [rdi] test bpl, bpl jz short loc_587AF call ___ctype_b_loc mov rcx, [rax] loc_58793: movsx rax, bpl test byte ptr [rcx+rax*2+1], 20h jz short loc_587B4 mov bpl, [r14+1] inc r14 mov rax, r14 test bpl, bpl jnz short loc_58793 jmp short loc_587D5 loc_587AF: mov rax, r14 jmp short loc_587D5 loc_587B4: call ___ctype_b_loc mov rcx, [rax] mov rax, r14 loc_587BF: movsx rdx, bpl test byte ptr [rcx+rdx*2], 8 jz short loc_587D5 mov bpl, [rax+1] inc rax test bpl, bpl jnz short loc_587BF loc_587D5: mov [r15], rax sub eax, r14d mov [rbx], eax mov rax, r14 add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
_BYTE * next_name(_BYTE *a1, _QWORD *a2, _DWORD *a3) { _BYTE *v4; // r14 char v5; // bp long long v6; // rcx _BYTE *v7; // rax long long v8; // rcx v4 = a1; v5 = *a1; if ( *a1 ) { v6 = *(_QWORD *)__ctype_b_loc(a1); while ( (*(_BYTE *)(v6 + 2LL * v5 + 1) & 0x20) != 0 ) { v5 = *++v4; v7 = v4; if ( !v5 ) goto LABEL_10; } v8 = *(_QWORD *)__ctype_b_loc(a1); v7 = v4; do { if ( (*(_BYTE *)(v8 + 2LL * v5) & 8) == 0 ) break; v5 = *++v7; } while ( v5 ); } else { v7 = a1; } LABEL_10: *a2 = v7; *a3 = (_DWORD)v7 - (_DWORD)v4; return v4; }
next_name: PUSH RBP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDX MOV R15,RSI MOV R14,RDI MOV BPL,byte ptr [RDI] TEST BPL,BPL JZ 0x001587af CALL 0x001220e0 MOV RCX,qword ptr [RAX] LAB_00158793: MOVSX RAX,BPL TEST byte ptr [RCX + RAX*0x2 + 0x1],0x20 JZ 0x001587b4 MOV BPL,byte ptr [R14 + 0x1] INC R14 MOV RAX,R14 TEST BPL,BPL JNZ 0x00158793 JMP 0x001587d5 LAB_001587af: MOV RAX,R14 JMP 0x001587d5 LAB_001587b4: CALL 0x001220e0 MOV RCX,qword ptr [RAX] MOV RAX,R14 LAB_001587bf: MOVSX RDX,BPL TEST byte ptr [RCX + RDX*0x2],0x8 JZ 0x001587d5 MOV BPL,byte ptr [RAX + 0x1] INC RAX TEST BPL,BPL JNZ 0x001587bf LAB_001587d5: MOV qword ptr [R15],RAX SUB EAX,R14D MOV dword ptr [RBX],EAX MOV RAX,R14 ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
char * next_name(char *param_1,int8 *param_2,int *param_3) { ushort **ppuVar1; char cVar2; char *pcVar3; cVar2 = *param_1; pcVar3 = param_1; if (cVar2 != '\0') { ppuVar1 = __ctype_b_loc(); do { if ((*(byte *)((long)*ppuVar1 + (long)cVar2 * 2 + 1) & 0x20) == 0) { ppuVar1 = __ctype_b_loc(); param_1 = pcVar3; goto LAB_001587bf; } cVar2 = pcVar3[1]; param_1 = pcVar3 + 1; pcVar3 = param_1; } while (cVar2 != '\0'); } goto LAB_001587d5; while( true ) { cVar2 = param_1[1]; param_1 = param_1 + 1; if (cVar2 == '\0') break; LAB_001587bf: if (((*ppuVar1)[cVar2] & 8) == 0) break; } LAB_001587d5: *param_2 = param_1; *param_3 = (int)param_1 - (int)pcVar3; return pcVar3; }
47,734
nlohmann::json_abi_v3_11_3::detail::parse_error::position_string[abi:cxx11](nlohmann::json_abi_v3_11_3::detail::position_t const&)
monkey531[P]llama/common/json.hpp
static std::string position_string(const position_t& pos) { return concat(" at line ", std::to_string(pos.lines_read + 1), ", column ", std::to_string(pos.chars_read_current_line)); }
O2
cpp
nlohmann::json_abi_v3_11_3::detail::parse_error::position_string[abi:cxx11](nlohmann::json_abi_v3_11_3::detail::position_t const&): pushq %r14 pushq %rbx subq $0x48, %rsp movq %rsi, %r14 movq %rdi, %rbx movq 0x10(%rsi), %rsi incq %rsi leaq 0x28(%rsp), %rdi callq 0x40e69 movq 0x8(%r14), %rsi leaq 0x8(%rsp), %rdi callq 0x40e69 leaq 0x6c0c4(%rip), %rsi # 0xafdaf leaq 0x6c0c7(%rip), %rcx # 0xafdb9 leaq 0x28(%rsp), %rdx leaq 0x8(%rsp), %r8 movq %rbx, %rdi callq 0x43ee2 leaq 0x8(%rsp), %rdi callq 0x24158 leaq 0x28(%rsp), %rdi callq 0x24158 movq %rbx, %rax addq $0x48, %rsp popq %rbx popq %r14 retq movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x24158 jmp 0x43d35 movq %rax, %rbx leaq 0x28(%rsp), %rdi callq 0x24158 movq %rbx, %rdi callq 0x23f10 nop
_ZN8nlohmann16json_abi_v3_11_36detail11parse_error15position_stringB5cxx11ERKNS1_10position_tE: push r14 push rbx sub rsp, 48h mov r14, rsi mov rbx, rdi mov rsi, [rsi+10h] inc rsi; unsigned __int64 lea rdi, [rsp+58h+var_30]; this call _ZNSt7__cxx119to_stringEm; std::to_string(ulong) mov rsi, [r14+8]; unsigned __int64 lea rdi, [rsp+58h+var_50]; this call _ZNSt7__cxx119to_stringEm; std::to_string(ulong) lea rsi, aAtLine; " at line " lea rcx, aColumn; ", column " lea rdx, [rsp+58h+var_30] lea r8, [rsp+58h+var_50] mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA10_KcS8_SB_S8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[10],std::string,char const(&)[10],std::string>(char const(&)[10],std::string,char const(&)[10],std::string &&) lea rdi, [rsp+58h+var_50]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+58h+var_30]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rax, rbx add rsp, 48h pop rbx pop r14 retn mov rbx, rax lea rdi, [rsp+arg_0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_43D35 mov rbx, rax loc_43D35: lea rdi, [rsp+arg_20]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, rbx call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::detail::parse_error::position_string[abi:cxx11](long long a1, long long a2) { _BYTE v3[32]; // [rsp+8h] [rbp-50h] BYREF _BYTE v4[48]; // [rsp+28h] [rbp-30h] BYREF std::to_string((std::__cxx11 *)v4, *(_QWORD *)(a2 + 16) + 1LL); std::to_string((std::__cxx11 *)v3, *(_QWORD *)(a2 + 8)); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[10],std::string,char const(&)[10],std::string>( a1, " at line ", v4, ", column ", v3); std::string::~string(v3); std::string::~string(v4); return a1; }
position_string[abi:cxx11]: PUSH R14 PUSH RBX SUB RSP,0x48 MOV R14,RSI MOV RBX,RDI MOV RSI,qword ptr [RSI + 0x10] INC RSI LEA RDI,[RSP + 0x28] CALL 0x00140e69 MOV RSI,qword ptr [R14 + 0x8] LAB_00143cda: LEA RDI,[RSP + 0x8] CALL 0x00140e69 LAB_00143ce4: LEA RSI,[0x1afdaf] LEA RCX,[0x1afdb9] LEA RDX,[RSP + 0x28] LEA R8,[RSP + 0x8] MOV RDI,RBX CALL 0x00143ee2 LAB_00143d04: LEA RDI,[RSP + 0x8] CALL 0x00124158 LEA RDI,[RSP + 0x28] CALL 0x00124158 MOV RAX,RBX ADD RSP,0x48 POP RBX POP R14 RET
/* nlohmann::json_abi_v3_11_3::detail::parse_error::position_string[abi:cxx11](nlohmann::json_abi_v3_11_3::detail::position_t const&) */ parse_error * __thiscall nlohmann::json_abi_v3_11_3::detail::parse_error::position_string_abi_cxx11_ (parse_error *this,position_t *param_1) { __cxx11 local_50 [32]; __cxx11 local_30 [32]; std::__cxx11::to_string(local_30,*(long *)(param_1 + 0x10) + 1); /* try { // try from 00143cda to 00143ce3 has its CatchHandler @ 00143d32 */ std::__cxx11::to_string(local_50,*(ulong *)(param_1 + 8)); /* try { // try from 00143ce4 to 00143d03 has its CatchHandler @ 00143d23 */ concat<std::__cxx11::string,char_const(&)[10],std::__cxx11::string,char_const(&)[10],std::__cxx11::string> ((detail *)this," at line ",(string *)local_30,", column ",(string *)local_50); std::__cxx11::string::~string((string *)local_50); std::__cxx11::string::~string((string *)local_30); return this; }
47,735
nlohmann::json_abi_v3_11_3::detail::parse_error::position_string[abi:cxx11](nlohmann::json_abi_v3_11_3::detail::position_t const&)
monkey531[P]llama/common/json.hpp
static std::string position_string(const position_t& pos) { return concat(" at line ", std::to_string(pos.lines_read + 1), ", column ", std::to_string(pos.chars_read_current_line)); }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::parse_error::position_string[abi:cxx11](nlohmann::json_abi_v3_11_3::detail::position_t const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rsi, %r14 movq %rdi, %rbx movq 0x10(%rsi), %r15 incq %r15 movl $0x1, %ebp movabsq $0x346dc5d63886594b, %r13 # imm = 0x346DC5D63886594B movl $0x1, %esi cmpq $0xa, %r15 jb 0x5ffc8 movl $0x4, %esi movq %r15, %rcx cmpq $0x63, %rcx jbe 0x5ffc1 cmpq $0x3e7, %rcx # imm = 0x3E7 jbe 0x5ffc6 cmpq $0x2710, %rcx # imm = 0x2710 jb 0x5ffc8 movq %rcx, %rax mulq %r13 shrq $0xb, %rdx addl $0x4, %esi cmpq $0x1869f, %rcx # imm = 0x1869F movq %rdx, %rcx ja 0x5ff8b addl $-0x3, %esi jmp 0x5ffc8 addl $-0x2, %esi jmp 0x5ffc8 decl %esi movl %esi, %esi leaq 0x18(%rsp), %rax movq %rax, -0x10(%rax) leaq 0x8(%rsp), %r12 movq %r12, %rdi xorl %edx, %edx callq 0x1a9d0 movq (%r12), %rdi movl 0x8(%r12), %esi movq %r15, %rdx callq 0x5c977 movq 0x8(%r14), %r14 cmpq $0xa, %r14 jb 0x60042 movl $0x4, %ebp movq %r14, %rcx cmpq $0x63, %rcx jbe 0x6003b cmpq $0x3e7, %rcx # imm = 0x3E7 jbe 0x60040 cmpq $0x2710, %rcx # imm = 0x2710 jb 0x60042 movq %rcx, %rax mulq %r13 shrq $0xb, %rdx addl $0x4, %ebp cmpq $0x1869f, %rcx # imm = 0x1869F movq %rdx, %rcx ja 0x60005 addl $-0x3, %ebp jmp 0x60042 addl $-0x2, %ebp jmp 0x60042 decl %ebp movl %ebp, %esi leaq 0x38(%rsp), %r12 movq %r12, -0x10(%r12) leaq 0x28(%rsp), %rdi xorl %edx, %edx callq 0x1a9d0 leaq 0x28(%rsp), %r15 movq (%r15), %rdi movl 0x8(%r15), %esi movq %r14, %rdx callq 0x5c977 leaq 0x8bd28(%rip), %rsi # 0xebd9d leaq 0x8bd2b(%rip), %rcx # 0xebda7 leaq 0x8(%rsp), %rdx movq %rbx, %rdi movq %r15, %r8 callq 0x60114 movq 0x28(%rsp), %rdi cmpq %r12, %rdi je 0x600a3 movq 0x38(%rsp), %rsi incq %rsi callq 0x1a890 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x600bf movq 0x18(%rsp), %rsi incq %rsi callq 0x1a890 movq %rbx, %rax addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx movq 0x28(%rsp), %rdi cmpq %r12, %rdi je 0x600f0 movq 0x38(%rsp), %rsi incq %rsi callq 0x1a890 jmp 0x600f0 movq %rax, %rbx movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x6010c movq 0x18(%rsp), %rsi incq %rsi callq 0x1a890 movq %rbx, %rdi callq 0x1af20
_ZN8nlohmann16json_abi_v3_11_36detail11parse_error15position_stringB5cxx11ERKNS1_10position_tE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h mov r14, rsi mov rbx, rdi mov r15, [rsi+10h] inc r15 mov ebp, 1 mov r13, 346DC5D63886594Bh mov esi, 1 cmp r15, 0Ah jb short loc_5FFC8 mov esi, 4 mov rcx, r15 loc_5FF8B: cmp rcx, 63h ; 'c' jbe short loc_5FFC1 cmp rcx, 3E7h jbe short loc_5FFC6 cmp rcx, 2710h jb short loc_5FFC8 mov rax, rcx mul r13 shr rdx, 0Bh add esi, 4 cmp rcx, 1869Fh mov rcx, rdx ja short loc_5FF8B add esi, 0FFFFFFFDh jmp short loc_5FFC8 loc_5FFC1: add esi, 0FFFFFFFEh jmp short loc_5FFC8 loc_5FFC6: dec esi loc_5FFC8: mov esi, esi lea rax, [rsp+78h+var_60] mov [rax-10h], rax lea r12, [rsp+78h+var_70] mov rdi, r12 xor edx, edx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc; std::string::_M_construct(ulong,char) mov rdi, [r12] mov esi, [r12+8] mov rdx, r15 call _ZNSt8__detail18__to_chars_10_implImEEvPcjT_; std::__detail::__to_chars_10_impl<ulong>(char *,uint,ulong) mov r14, [r14+8] cmp r14, 0Ah jb short loc_60042 mov ebp, 4 mov rcx, r14 loc_60005: cmp rcx, 63h ; 'c' jbe short loc_6003B cmp rcx, 3E7h jbe short loc_60040 cmp rcx, 2710h jb short loc_60042 mov rax, rcx mul r13 shr rdx, 0Bh add ebp, 4 cmp rcx, 1869Fh mov rcx, rdx ja short loc_60005 add ebp, 0FFFFFFFDh jmp short loc_60042 loc_6003B: add ebp, 0FFFFFFFEh jmp short loc_60042 loc_60040: dec ebp loc_60042: mov esi, ebp lea r12, [rsp+78h+var_40] mov [r12-10h], r12 lea rdi, [rsp+78h+var_50] xor edx, edx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc; std::string::_M_construct(ulong,char) lea r15, [rsp+78h+var_50] mov rdi, [r15] mov esi, [r15+8] mov rdx, r14 call _ZNSt8__detail18__to_chars_10_implImEEvPcjT_; std::__detail::__to_chars_10_impl<ulong>(char *,uint,ulong) lea rsi, aAtLine; " at line " lea rcx, aColumn; ", column " lea rdx, [rsp+78h+var_70] mov rdi, rbx mov r8, r15 call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA10_KcS8_SB_S8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[10],std::string,char const(&)[10],std::string>(char const(&)[10],std::string,char const(&)[10],std::string &&) mov rdi, [rsp+78h+var_50]; void * cmp rdi, r12 jz short loc_600A3 mov rsi, [rsp+78h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_600A3: mov rdi, [rsp+78h+var_70]; void * lea rax, [rsp+78h+var_60] cmp rdi, rax jz short loc_600BF mov rsi, [rsp+78h+var_60] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_600BF: mov rax, rbx add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax mov rdi, [rsp+arg_20]; void * cmp rdi, r12 jz short loc_600F0 mov rsi, [rsp+arg_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_600F0 mov rbx, rax loc_600F0: mov rdi, [rsp+arg_0]; void * lea rax, [rsp+arg_10] cmp rdi, rax jz short loc_6010C mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_6010C: mov rdi, rbx call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::detail::parse_error::position_string[abi:cxx11](long long a1, long long a2) { unsigned long long v3; // r15 unsigned int v4; // ebp unsigned int v5; // esi unsigned long long v6; // rcx bool v7; // cc unsigned long long v8; // r14 unsigned long long v9; // rcx void *v11; // [rsp+8h] [rbp-70h] BYREF int v12; // [rsp+10h] [rbp-68h] _QWORD v13[2]; // [rsp+18h] [rbp-60h] BYREF void *v14; // [rsp+28h] [rbp-50h] BYREF int v15; // [rsp+30h] [rbp-48h] _QWORD v16[8]; // [rsp+38h] [rbp-40h] BYREF v3 = *(_QWORD *)(a2 + 16) + 1LL; v4 = 1; v5 = 1; if ( v3 >= 0xA ) { v5 = 4; v6 = v3; while ( 1 ) { if ( v6 <= 0x63 ) { v5 -= 2; goto LABEL_10; } if ( v6 <= 0x3E7 ) break; if ( v6 < 0x2710 ) goto LABEL_10; v5 += 4; v7 = v6 <= 0x1869F; v6 /= 0x2710uLL; if ( v7 ) { v5 -= 3; goto LABEL_10; } } --v5; } LABEL_10: v11 = v13; std::string::_M_construct(&v11, v5, 0LL); std::__detail::__to_chars_10_impl<unsigned long>((char *)v11, v12, v3); v8 = *(_QWORD *)(a2 + 8); if ( v8 >= 0xA ) { v4 = 4; v9 = v8; while ( 1 ) { if ( v9 <= 0x63 ) { v4 -= 2; goto LABEL_19; } if ( v9 <= 0x3E7 ) break; if ( v9 < 0x2710 ) goto LABEL_19; v4 += 4; v7 = v9 <= 0x1869F; v9 /= 0x2710uLL; if ( v7 ) { v4 -= 3; goto LABEL_19; } } --v4; } LABEL_19: v14 = v16; std::string::_M_construct(&v14, v4, 0LL); std::__detail::__to_chars_10_impl<unsigned long>((char *)v14, v15, v8); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[10],std::string,char const(&)[10],std::string>( a1, " at line ", &v11, ", column ", &v14); if ( v14 != v16 ) operator delete(v14, v16[0] + 1LL); if ( v11 != v13 ) operator delete(v11, v13[0] + 1LL); return a1; }
position_string[abi:cxx11]: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 MOV R14,RSI MOV RBX,RDI MOV R15,qword ptr [RSI + 0x10] INC R15 MOV EBP,0x1 MOV R13,0x346dc5d63886594b MOV ESI,0x1 CMP R15,0xa JC 0x0015ffc8 MOV ESI,0x4 MOV RCX,R15 LAB_0015ff8b: CMP RCX,0x63 JBE 0x0015ffc1 CMP RCX,0x3e7 JBE 0x0015ffc6 CMP RCX,0x2710 JC 0x0015ffc8 MOV RAX,RCX MUL R13 SHR RDX,0xb ADD ESI,0x4 CMP RCX,0x1869f MOV RCX,RDX JA 0x0015ff8b ADD ESI,-0x3 JMP 0x0015ffc8 LAB_0015ffc1: ADD ESI,-0x2 JMP 0x0015ffc8 LAB_0015ffc6: DEC ESI LAB_0015ffc8: MOV ESI,ESI LEA RAX,[RSP + 0x18] MOV qword ptr [RAX + -0x10],RAX LEA R12,[RSP + 0x8] MOV RDI,R12 XOR EDX,EDX CALL 0x0011a9d0 MOV RDI,qword ptr [R12] MOV ESI,dword ptr [R12 + 0x8] MOV RDX,R15 CALL 0x0015c977 MOV R14,qword ptr [R14 + 0x8] CMP R14,0xa JC 0x00160042 MOV EBP,0x4 MOV RCX,R14 LAB_00160005: CMP RCX,0x63 JBE 0x0016003b CMP RCX,0x3e7 JBE 0x00160040 CMP RCX,0x2710 JC 0x00160042 MOV RAX,RCX MUL R13 SHR RDX,0xb ADD EBP,0x4 CMP RCX,0x1869f MOV RCX,RDX JA 0x00160005 ADD EBP,-0x3 JMP 0x00160042 LAB_0016003b: ADD EBP,-0x2 JMP 0x00160042 LAB_00160040: DEC EBP LAB_00160042: MOV ESI,EBP LEA R12,[RSP + 0x38] MOV qword ptr [R12 + -0x10],R12 LAB_0016004e: LEA RDI,[RSP + 0x28] XOR EDX,EDX CALL 0x0011a9d0 LEA R15,[RSP + 0x28] MOV RDI,qword ptr [R15] MOV ESI,dword ptr [R15 + 0x8] MOV RDX,R14 CALL 0x0015c977 LAB_0016006e: LEA RSI,[0x1ebd9d] LEA RCX,[0x1ebda7] LEA RDX,[RSP + 0x8] MOV RDI,RBX MOV R8,R15 CALL 0x00160114 LAB_0016008c: MOV RDI,qword ptr [RSP + 0x28] CMP RDI,R12 JZ 0x001600a3 MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x0011a890 LAB_001600a3: MOV RDI,qword ptr [RSP + 0x8] LEA RAX,[RSP + 0x18] CMP RDI,RAX JZ 0x001600bf MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0011a890 LAB_001600bf: MOV RAX,RBX ADD RSP,0x48 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* nlohmann::json_abi_v3_11_3::detail::parse_error::position_string[abi:cxx11](nlohmann::json_abi_v3_11_3::detail::position_t const&) */ parse_error * __thiscall nlohmann::json_abi_v3_11_3::detail::parse_error::position_string_abi_cxx11_ (parse_error *this,position_t *param_1) { bool bVar1; char cVar2; ulong uVar3; char cVar4; char cVar5; ulong uVar6; long *local_70; uint local_68; long local_60 [2]; long *local_50; uint local_48; long local_40 [2]; uVar6 = *(long *)(param_1 + 0x10) + 1; cVar4 = '\x01'; cVar5 = '\x01'; if (9 < uVar6) { uVar3 = uVar6; cVar2 = '\x04'; do { cVar5 = cVar2; if (uVar3 < 100) { cVar5 = cVar5 + -2; goto LAB_0015ffc8; } if (uVar3 < 1000) { cVar5 = cVar5 + -1; goto LAB_0015ffc8; } if (uVar3 < 10000) goto LAB_0015ffc8; bVar1 = 99999 < uVar3; uVar3 = uVar3 / 10000; cVar2 = cVar5 + '\x04'; } while (bVar1); cVar5 = cVar5 + '\x01'; } LAB_0015ffc8: local_70 = local_60; std::__cxx11::string::_M_construct((ulong)&local_70,cVar5); std::__detail::__to_chars_10_impl<unsigned_long>((char *)local_70,local_68,uVar6); uVar6 = *(ulong *)(param_1 + 8); if (9 < uVar6) { uVar3 = uVar6; cVar5 = '\x04'; do { cVar4 = cVar5; if (uVar3 < 100) { cVar4 = cVar4 + -2; goto LAB_00160042; } if (uVar3 < 1000) { cVar4 = cVar4 + -1; goto LAB_00160042; } if (uVar3 < 10000) goto LAB_00160042; bVar1 = 99999 < uVar3; uVar3 = uVar3 / 10000; cVar5 = cVar4 + '\x04'; } while (bVar1); cVar4 = cVar4 + '\x01'; } LAB_00160042: /* try { // try from 0016004e to 00160059 has its CatchHandler @ 001600ed */ local_50 = local_40; std::__cxx11::string::_M_construct((ulong)&local_50,cVar4); std::__detail::__to_chars_10_impl<unsigned_long>((char *)local_50,local_48,uVar6); /* try { // try from 0016006e to 0016008b has its CatchHandler @ 001600d1 */ concat<std::__cxx11::string,char_const(&)[10],std::__cxx11::string,char_const(&)[10],std::__cxx11::string> ((detail *)this," at line ",(string *)&local_70,", column ",(string *)&local_50); if (local_50 != local_40) { operator_delete(local_50,local_40[0] + 1); } if (local_70 != local_60) { operator_delete(local_70,local_60[0] + 1); } return this; }
47,736
translog_deassign_id_from_share
eloqsql/storage/maria/ma_loghandler.c
void translog_deassign_id_from_share(MARIA_SHARE *share) { DBUG_PRINT("info", ("id_to_share: %p id %u -> 0", share, share->id)); /* We don't need any mutex as we are called only when closing the last instance of the table or at the end of REPAIR: no writes can be happening. But a Checkpoint may be reading share->id, so we require this mutex: */ mysql_mutex_assert_owner(&share->intern_lock); my_atomic_storeptr((void **)&id_to_share[share->id], 0); share->id= 0; /* useless but safety: */ share->lsn_of_file_id= LSN_IMPOSSIBLE; }
O0
c
translog_deassign_id_from_share: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) jmp 0x56e4a jmp 0x56e4c jmp 0x56e4e movq 0xc23483(%rip), %rcx # 0xc7a2d8 movq -0x8(%rbp), %rax movzwl 0x620(%rax), %eax movl %eax, %edx movq $0x0, -0x10(%rbp) movq -0x10(%rbp), %rax xchgq %rax, (%rcx,%rdx,8) movq -0x8(%rbp), %rax movw $0x0, 0x620(%rax) movq -0x8(%rbp), %rax movq $0x0, 0xc10(%rax) popq %rbp retq
translog_deassign_id_from_share: push rbp mov rbp, rsp mov [rbp+var_8], rdi jmp short $+2 loc_56E4A: jmp short $+2 loc_56E4C: jmp short $+2 loc_56E4E: mov rcx, cs:id_to_share mov rax, [rbp+var_8] movzx eax, word ptr [rax+620h] mov edx, eax mov [rbp+var_10], 0 mov rax, [rbp+var_10] xchg rax, [rcx+rdx*8] mov rax, [rbp+var_8] mov word ptr [rax+620h], 0 mov rax, [rbp+var_8] mov qword ptr [rax+0C10h], 0 pop rbp retn
long long translog_deassign_id_from_share(long long a1) { long long result; // rax _InterlockedExchange64((volatile long long *)(id_to_share + 8LL * *(unsigned __int16 *)(a1 + 1568)), 0LL); *(_WORD *)(a1 + 1568) = 0; result = a1; *(_QWORD *)(a1 + 3088) = 0LL; return result; }
translog_deassign_id_from_share: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI JMP 0x00156e4a LAB_00156e4a: JMP 0x00156e4c LAB_00156e4c: JMP 0x00156e4e LAB_00156e4e: MOV RCX,qword ptr [0x00d7a2d8] MOV RAX,qword ptr [RBP + -0x8] MOVZX EAX,word ptr [RAX + 0x620] MOV EDX,EAX MOV qword ptr [RBP + -0x10],0x0 MOV RAX,qword ptr [RBP + -0x10] XCHG qword ptr [RCX + RDX*0x8],RAX MOV RAX,qword ptr [RBP + -0x8] MOV word ptr [RAX + 0x620],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0xc10],0x0 POP RBP RET
void translog_deassign_id_from_share(long param_1) { LOCK(); *(int8 *)(id_to_share + (ulong)*(ushort *)(param_1 + 0x620) * 8) = 0; UNLOCK(); *(int2 *)(param_1 + 0x620) = 0; *(int8 *)(param_1 + 0xc10) = 0; return; }
47,737
wt_init
eloqsql/mysys/waiting_threads.c
void wt_init() { DBUG_ENTER("wt_init"); DBUG_ASSERT(reshash.alloc.constructor != wt_resource_create); lf_hash_init(&reshash, sizeof(WT_RESOURCE), LF_HASH_UNIQUE, 0, sizeof_WT_RESOURCE_ID, 0, 0); reshash.alloc.constructor= wt_resource_create; reshash.alloc.destructor= wt_resource_destroy; reshash.initializer= (lf_hash_initializer) wt_resource_init; bzero(wt_wait_stats, sizeof(wt_wait_stats)); bzero(wt_cycle_stats, sizeof(wt_cycle_stats)); wt_success_stats= 0; { /* initialize wt_wait_table[]. from 1 us to 1 min, log e scale */ int i; double from= log(1); /* 1 us */ double to= log(60e6); /* 1 min */ for (i= 0; i < WT_WAIT_STATS; i++) { wt_wait_table[i]= (ulonglong)exp((to-from)/(WT_WAIT_STATS-1)*i+from); DBUG_ASSERT(i == 0 || wt_wait_table[i-1] != wt_wait_table[i]); } } wt_init_done= 1; DBUG_VOID_RETURN; }
O3
c
wt_init: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx subq $0x10, %rsp movq $0x0, (%rsp) leaq 0xb61d12(%rip), %rdi # 0xc08610 xorl %ebx, %ebx movl $0x108, %esi # imm = 0x108 movl $0x1, %edx xorl %ecx, %ecx movl $0x10, %r8d xorl %r9d, %r9d callq 0xa5c18 leaq 0xc9(%rip), %rax # 0xa69ea movq %rax, 0xb61d68(%rip) # 0xc08690 leaq 0x155(%rip), %rax # 0xa6a84 movq %rax, 0xb61d62(%rip) # 0xc08698 leaq 0x1b1(%rip), %rax # 0xa6aee movq %rax, 0xb61d64(%rip) # 0xc086a8 xorpd %xmm0, %xmm0 leaq 0xb61d91(%rip), %rax # 0xc086e0 movapd %xmm0, (%rax) movapd %xmm0, 0x10(%rax) movapd %xmm0, 0x20(%rax) movapd %xmm0, 0x30(%rax) movapd %xmm0, 0x40(%rax) movapd %xmm0, 0x50(%rax) movl %ebx, 0x60(%rax) leaq 0xb61dda(%rip), %rdi # 0xc08750 movl $0x108, %edx # imm = 0x108 xorl %esi, %esi callq 0x292a0 leaq 0xb61ecf(%rip), %rax # 0xc08858 movl %ebx, (%rax) leaq 0xb61ece(%rip), %r14 # 0xc08860 xorps %xmm0, %xmm0 cvtsi2sd %ebx, %xmm0 mulsd 0x3a587(%rip), %xmm0 # 0xe0f28 addsd 0x3a51f(%rip), %xmm0 # 0xe0ec8 callq 0x290f0 cvttsd2si %xmm0, %rax movq %rax, %rcx sarq $0x3f, %rcx subsd 0x3a4d6(%rip), %xmm0 # 0xe0e98 cvttsd2si %xmm0, %rdx andq %rcx, %rdx orq %rax, %rdx movq %rdx, (%r14,%rbx,8) incq %rbx cmpq $0x18, %rbx jne 0xa6992 movb $0x1, 0xb61f3f(%rip) # 0xc08920 addq $0x10, %rsp popq %rbx popq %r14 popq %rbp retq
wt_init: push rbp mov rbp, rsp push r14 push rbx sub rsp, 10h mov [rsp+20h+var_20], 0 lea rdi, reshash xor ebx, ebx mov esi, 108h mov edx, 1 xor ecx, ecx mov r8d, 10h xor r9d, r9d call lf_hash_init lea rax, wt_resource_create mov cs:qword_C08690, rax lea rax, wt_resource_destroy mov cs:qword_C08698, rax lea rax, wt_resource_init mov cs:qword_C086A8, rax xorpd xmm0, xmm0 lea rax, wt_wait_stats movapd xmmword ptr [rax], xmm0 movapd xmmword ptr [rax+10h], xmm0 movapd xmmword ptr [rax+20h], xmm0 movapd xmmword ptr [rax+30h], xmm0 movapd xmmword ptr [rax+40h], xmm0 movapd xmmword ptr [rax+50h], xmm0 mov [rax+60h], ebx lea rdi, wt_cycle_stats mov edx, 108h xor esi, esi call _memset lea rax, wt_success_stats mov [rax], ebx lea r14, wt_wait_table loc_A6992: xorps xmm0, xmm0 cvtsi2sd xmm0, ebx mulsd xmm0, cs:qword_E0F28 addsd xmm0, cs:qword_E0EC8 call _exp cvttsd2si rax, xmm0 mov rcx, rax sar rcx, 3Fh subsd xmm0, cs:qword_E0E98 cvttsd2si rdx, xmm0 and rdx, rcx or rdx, rax mov [r14+rbx*8], rdx inc rbx cmp rbx, 18h jnz short loc_A6992 mov cs:wt_init_done, 1 add rsp, 10h pop rbx pop r14 pop rbp retn
long long wt_init() { long long v0; // rbx long long result; // rax v0 = 0LL; lf_hash_init((long long)&reshash, 264, 1, 0, 16, 0LL, 0LL); qword_C08690 = (long long)wt_resource_create; qword_C08698 = (long long)wt_resource_destroy; qword_C086A8 = (long long)wt_resource_init; wt_wait_stats = 0LL; *((_OWORD *)&wt_wait_stats + 1) = 0LL; *((_OWORD *)&wt_wait_stats + 2) = 0LL; *((_OWORD *)&wt_wait_stats + 3) = 0LL; *((_OWORD *)&wt_wait_stats + 4) = 0LL; *((_OWORD *)&wt_wait_stats + 5) = 0LL; *((_DWORD *)&wt_wait_stats + 24) = 0; memset(&wt_cycle_stats, 0LL, 264LL); wt_success_stats = 0; do { result = (unsigned int)(int)exp((double)(int)v0 * 0.7786893530515815 + 0.0); wt_wait_table[v0++] = result; } while ( v0 != 24 ); wt_init_done = 1; return result; }
wt_init: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX SUB RSP,0x10 MOV qword ptr [RSP],0x0 LEA RDI,[0xd08610] XOR EBX,EBX MOV ESI,0x108 MOV EDX,0x1 XOR ECX,ECX MOV R8D,0x10 XOR R9D,R9D CALL 0x001a5c18 LEA RAX,[0x1a69ea] MOV qword ptr [0x00d08690],RAX LEA RAX,[0x1a6a84] MOV qword ptr [0x00d08698],RAX LEA RAX,[0x1a6aee] MOV qword ptr [0x00d086a8],RAX XORPD XMM0,XMM0 LEA RAX,[0xd086e0] MOVAPD xmmword ptr [RAX],XMM0 MOVAPD xmmword ptr [RAX + 0x10],XMM0 MOVAPD xmmword ptr [RAX + 0x20],XMM0 MOVAPD xmmword ptr [RAX + 0x30],XMM0 MOVAPD xmmword ptr [RAX + 0x40],XMM0 MOVAPD xmmword ptr [RAX + 0x50],XMM0 MOV dword ptr [RAX + 0x60],EBX LEA RDI,[0xd08750] MOV EDX,0x108 XOR ESI,ESI CALL 0x001292a0 LEA RAX,[0xd08858] MOV dword ptr [RAX],EBX LEA R14,[0xd08860] LAB_001a6992: XORPS XMM0,XMM0 CVTSI2SD XMM0,EBX MULSD XMM0,qword ptr [0x001e0f28] ADDSD XMM0,qword ptr [0x001e0ec8] CALL 0x001290f0 CVTTSD2SI RAX,XMM0 MOV RCX,RAX SAR RCX,0x3f SUBSD XMM0,qword ptr [0x001e0e98] CVTTSD2SI RDX,XMM0 AND RDX,RCX OR RDX,RAX MOV qword ptr [R14 + RBX*0x8],RDX INC RBX CMP RBX,0x18 JNZ 0x001a6992 MOV byte ptr [0x00d08920],0x1 ADD RSP,0x10 POP RBX POP R14 POP RBP RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ void wt_init(void) { double dVar1; long lVar2; lVar2 = 0; lf_hash_init(reshash,0x108,1,0,0x10,0,0); reshash._128_8_ = wt_resource_create; reshash._136_8_ = wt_resource_destroy; reshash._152_8_ = wt_resource_init; _wt_wait_stats = 0; uRam0000000000d086e8 = 0; _DAT_00d086f0 = 0; uRam0000000000d086f8 = 0; _DAT_00d08700 = 0; uRam0000000000d08708 = 0; _DAT_00d08710 = 0; uRam0000000000d08718 = 0; _DAT_00d08720 = 0; uRam0000000000d08728 = 0; _DAT_00d08730 = 0; uRam0000000000d08738 = 0; _DAT_00d08740 = 0; memset(wt_cycle_stats,0,0x108); wt_success_stats = 0; do { dVar1 = exp((double)(int)lVar2 * _DAT_001e0f28 + _DAT_001e0ec8); (&wt_wait_table)[lVar2] = (long)(dVar1 - _DAT_001e0e98) & (long)dVar1 >> 0x3f | (long)dVar1; lVar2 = lVar2 + 1; } while (lVar2 != 0x18); wt_init_done = 1; return; }
47,738
llm_tokenizer_rwkv::~llm_tokenizer_rwkv()
monkey531[P]llama/src/llama-vocab.cpp
llm_tokenizer_rwkv(const llama_vocab & vocab) { // RWKV supports arbitrary byte tokens, but the vocab struct only supports string tokens. // For now, we decode the vocab here into the lookup we'll use for tokenization. // build trie for (uint32_t id = 0; id < vocab.n_tokens(); ++id) { const auto & data = vocab.get_token_data(id); const auto text = llama_unescape_rwkv_token(data.text); token_matcher.insert((const char *) text.data(), text.size(), id); } }
O0
cpp
llm_tokenizer_rwkv::~llm_tokenizer_rwkv(): subq $0x18, %rsp movq %rdi, 0x10(%rsp) movq 0x10(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0x208760 movq 0x8(%rsp), %rdi movl $0x40, %esi callq 0x205a30 addq $0x18, %rsp retq nopl (%rax)
_ZN18llm_tokenizer_rwkvD0Ev: sub rsp, 18h mov [rsp+18h+var_8], rdi mov rdi, [rsp+18h+var_8]; this mov [rsp+18h+var_10], rdi call __ZN18llm_tokenizer_rwkvD2Ev; llm_tokenizer_rwkv::~llm_tokenizer_rwkv() mov rdi, [rsp+18h+var_10]; void * mov esi, 40h ; '@'; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) add rsp, 18h retn
void llm_tokenizer_rwkv::~llm_tokenizer_rwkv(llm_tokenizer_rwkv *this) { llm_tokenizer_rwkv::~llm_tokenizer_rwkv(this); operator delete(this, 0x40uLL); }
47,739
llm_tokenizer_rwkv::~llm_tokenizer_rwkv()
monkey531[P]llama/src/llama-vocab.cpp
llm_tokenizer_rwkv(const llama_vocab & vocab) { // RWKV supports arbitrary byte tokens, but the vocab struct only supports string tokens. // For now, we decode the vocab here into the lookup we'll use for tokenization. // build trie for (uint32_t id = 0; id < vocab.n_tokens(); ++id) { const auto & data = vocab.get_token_data(id); const auto text = llama_unescape_rwkv_token(data.text); token_matcher.insert((const char *) text.data(), text.size(), id); } }
O1
cpp
llm_tokenizer_rwkv::~llm_tokenizer_rwkv(): pushq %rbx movq %rdi, %rbx movq 0x6cf2f(%rip), %rax # 0x160b28 addq $0x10, %rax movq %rax, (%rdi) addq $0x8, %rdi callq 0x6b0c0 movl $0x40, %esi movq %rbx, %rdi popq %rbx jmp 0x69220 nop
_ZN18llm_tokenizer_rwkvD0Ev: push rbx mov rbx, rdi mov rax, cs:_ZTV18llm_tokenizer_rwkv_ptr add rax, 10h mov [rdi], rax add rdi, 8 call __ZNSt8_Rb_treeIcSt4pairIKc10naive_trieESt10_Select1stIS3_ESt4lessIcESaIS3_EED2Ev; std::_Rb_tree<char,std::pair<char const,naive_trie>,std::_Select1st<std::pair<char const,naive_trie>>,std::less<char>,std::allocator<std::pair<char const,naive_trie>>>::~_Rb_tree() mov esi, 40h ; '@'; unsigned __int64 mov rdi, rbx; void * pop rbx jmp __ZdlPvm; operator delete(void *,ulong)
void llm_tokenizer_rwkv::~llm_tokenizer_rwkv(llm_tokenizer_rwkv *this) { *(_QWORD *)this = &`vtable for'llm_tokenizer_rwkv + 2; std::_Rb_tree<char,std::pair<char const,naive_trie>,std::_Select1st<std::pair<char const,naive_trie>>,std::less<char>,std::allocator<std::pair<char const,naive_trie>>>::~_Rb_tree((char *)this + 8); operator delete(this, 0x40uLL); }
~llm_tokenizer_rwkv: PUSH RBX MOV RBX,RDI MOV RAX,qword ptr [0x00260b28] ADD RAX,0x10 MOV qword ptr [RDI],RAX ADD RDI,0x8 CALL 0x0016b0c0 MOV ESI,0x40 MOV RDI,RBX POP RBX JMP 0x00169220
/* llm_tokenizer_rwkv::~llm_tokenizer_rwkv() */ void __thiscall llm_tokenizer_rwkv::~llm_tokenizer_rwkv(llm_tokenizer_rwkv *this) { *(int **)this = PTR_vtable_00260b28 + 0x10; std:: _Rb_tree<char,std::pair<char_const,naive_trie>,std::_Select1st<std::pair<char_const,naive_trie>>,std::less<char>,std::allocator<std::pair<char_const,naive_trie>>> ::~_Rb_tree((_Rb_tree<char,std::pair<char_const,naive_trie>,std::_Select1st<std::pair<char_const,naive_trie>>,std::less<char>,std::allocator<std::pair<char_const,naive_trie>>> *)(this + 8)); operator_delete(this,0x40); return; }
47,740
llm_tokenizer_rwkv::~llm_tokenizer_rwkv()
monkey531[P]llama/src/llama-vocab.cpp
llm_tokenizer_rwkv(const llama_vocab & vocab) { // RWKV supports arbitrary byte tokens, but the vocab struct only supports string tokens. // For now, we decode the vocab here into the lookup we'll use for tokenization. // build trie for (uint32_t id = 0; id < vocab.n_tokens(); ++id) { const auto & data = vocab.get_token_data(id); const auto text = llama_unescape_rwkv_token(data.text); token_matcher.insert((const char *) text.data(), text.size(), id); } }
O2
cpp
llm_tokenizer_rwkv::~llm_tokenizer_rwkv(): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x20, %rsp movq %rsi, %r14 movq 0x77b06(%rip), %rax # 0x199b38 addq $0x10, %rax movq %rax, (%rdi) leaq 0x10(%rdi), %rax andl $0x0, 0x10(%rdi) andq $0x0, 0x18(%rdi) movq %rax, 0x20(%rdi) movq %rax, 0x28(%rdi) andq $0x0, 0x30(%rdi) movb $0x0, 0x38(%rdi) andl $0x0, 0x3c(%rdi) leaq 0x8(%rdi), %rbx xorl %ebp, %ebp pushq $0x28 popq %r12 leaq 0x8(%rsp), %r15 movq (%r14), %rcx movq 0x98(%rcx), %rax subq 0x90(%rcx), %rax cqto idivq %r12 cmpl %eax, %ebp jae 0x1220bc movq %r14, %rdi movl %ebp, %esi callq 0xa5260 movq %r15, %rdi movq %rax, %rsi callq 0x11b5b5 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx subq %rsi, %rdx movq %rbx, %rdi movl %ebp, %ecx callq 0x9c920 movq %r15, %rdi callq 0xa5e40 incl %ebp jmp 0x12206a addq $0x20, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq %rax, %r14 leaq 0x8(%rsp), %rdi callq 0xa5e40 jmp 0x1220dd jmp 0x1220da movq %rax, %r14 movq %rbx, %rdi callq 0xa52c0 movq %r14, %rdi callq 0xa7540 nop
_ZN18llm_tokenizer_rwkvC2ERK11llama_vocab: push rbp push r15 push r14 push r12 push rbx sub rsp, 20h mov r14, rsi mov rax, cs:_ZTV18llm_tokenizer_rwkv_ptr add rax, 10h mov [rdi], rax lea rax, [rdi+10h] and dword ptr [rdi+10h], 0 and qword ptr [rdi+18h], 0 mov [rdi+20h], rax mov [rdi+28h], rax and qword ptr [rdi+30h], 0 mov byte ptr [rdi+38h], 0 and dword ptr [rdi+3Ch], 0 lea rbx, [rdi+8] xor ebp, ebp push 28h ; '(' pop r12 lea r15, [rsp+48h+var_40] loc_12206A: mov rcx, [r14] mov rax, [rcx+98h] sub rax, [rcx+90h] cqo idiv r12 cmp ebp, eax jnb short loc_1220BC mov rdi, r14; this mov esi, ebp; int call __ZNK11llama_vocab14get_token_dataEi; llama_vocab::get_token_data(int) mov rdi, r15 mov rsi, rax call _ZL25llama_unescape_rwkv_tokenRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; llama_unescape_rwkv_token(std::string const&) mov rsi, [rsp+48h+var_40]; char * mov rdx, [rsp+48h+var_38] sub rdx, rsi; unsigned __int64 mov rdi, rbx; this mov ecx, ebp; int call __ZN10naive_trie6insertEPKcmi; naive_trie::insert(char const*,ulong,int) mov rdi, r15 call __ZNSt12_Vector_baseIhSaIhEED2Ev; std::_Vector_base<uchar>::~_Vector_base() inc ebp jmp short loc_12206A loc_1220BC: add rsp, 20h pop rbx pop r12 pop r14 pop r15 pop rbp retn mov r14, rax lea rdi, [rsp+arg_0] call __ZNSt12_Vector_baseIhSaIhEED2Ev; std::_Vector_base<uchar>::~_Vector_base() jmp short loc_1220DD jmp short $+2 loc_1220DA: mov r14, rax loc_1220DD: mov rdi, rbx call __ZNSt8_Rb_treeIcSt4pairIKc10naive_trieESt10_Select1stIS3_ESt4lessIcESaIS3_EED2Ev; std::_Rb_tree<char,std::pair<char const,naive_trie>,std::_Select1st<std::pair<char const,naive_trie>>,std::less<char>,std::allocator<std::pair<char const,naive_trie>>>::~_Rb_tree() mov rdi, r14 call __Unwind_Resume
void llm_tokenizer_rwkv::llm_tokenizer_rwkv(llm_tokenizer_rwkv *this, const llama_vocab *a2) { unsigned int i; // ebp long long *token_data; // rax char *v4[8]; // [rsp+8h] [rbp-40h] BYREF *(_QWORD *)this = &`vtable for'llm_tokenizer_rwkv + 2; *((_DWORD *)this + 4) = 0; *((_QWORD *)this + 3) = 0LL; *((_QWORD *)this + 4) = (char *)this + 16; *((_QWORD *)this + 5) = (char *)this + 16; *((_QWORD *)this + 6) = 0LL; *((_BYTE *)this + 56) = 0; *((_DWORD *)this + 15) = 0; for ( i = 0; i < (unsigned int)((*(_QWORD *)(*(_QWORD *)a2 + 152LL) - *(_QWORD *)(*(_QWORD *)a2 + 144LL)) / 40LL); ++i ) { token_data = (long long *)llama_vocab::get_token_data(a2, i); llama_unescape_rwkv_token((long long)v4, token_data); naive_trie::insert((llm_tokenizer_rwkv *)((char *)this + 8), v4[0], v4[1] - v4[0], i); std::_Vector_base<unsigned char>::~_Vector_base(v4); } }
47,741
js_os_dup2
bluesky950520[P]quickjs/quickjs-libc.c
static JSValue js_os_dup2(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { int fd, fd2, ret; if (JS_ToInt32(ctx, &fd, argv[0])) return JS_EXCEPTION; if (JS_ToInt32(ctx, &fd2, argv[1])) return JS_EXCEPTION; ret = js_get_errno(dup2(fd, fd2)); return JS_NewInt32(ctx, ret); }
O0
c
js_os_dup2: subq $0x68, %rsp movq %rsi, 0x28(%rsp) movq %rdx, 0x30(%rsp) movq %rdi, 0x20(%rsp) movl %ecx, 0x1c(%rsp) movq %r8, 0x10(%rsp) movq 0x20(%rsp), %rdi movq 0x10(%rsp), %rax movq (%rax), %rdx movq 0x8(%rax), %rcx leaq 0xc(%rsp), %rsi callq 0x37c60 cmpl $0x0, %eax je 0x1b952 movl $0x0, 0x38(%rsp) movq $0x6, 0x40(%rsp) jmp 0x1b9d6 movq 0x20(%rsp), %rdi movq 0x10(%rsp), %rax movq 0x10(%rax), %rdx movq 0x18(%rax), %rcx leaq 0x8(%rsp), %rsi callq 0x37c60 cmpl $0x0, %eax je 0x1b986 movl $0x0, 0x38(%rsp) movq $0x6, 0x40(%rsp) jmp 0x1b9d6 movl 0xc(%rsp), %edi movl 0x8(%rsp), %esi callq 0xe260 movslq %eax, %rdi callq 0x12790 movl %eax, 0x4(%rsp) movq 0x20(%rsp), %rcx movl 0x4(%rsp), %eax movq %rcx, 0x50(%rsp) movl %eax, 0x4c(%rsp) movl 0x4c(%rsp), %eax movl %eax, 0x58(%rsp) movq $0x0, 0x60(%rsp) movq 0x58(%rsp), %rcx movq 0x60(%rsp), %rax movq %rcx, 0x38(%rsp) movq %rax, 0x40(%rsp) movq 0x38(%rsp), %rax movq 0x40(%rsp), %rdx addq $0x68, %rsp retq nopw %cs:(%rax,%rax)
js_os_dup2: sub rsp, 68h mov [rsp+68h+var_40], rsi mov [rsp+68h+var_38], rdx mov [rsp+68h+var_48], rdi mov [rsp+68h+var_4C], ecx mov [rsp+68h+var_58], r8 mov rdi, [rsp+68h+var_48] mov rax, [rsp+68h+var_58] mov rdx, [rax] mov rcx, [rax+8] lea rsi, [rsp+68h+var_5C] call JS_ToInt32 cmp eax, 0 jz short loc_1B952 mov dword ptr [rsp+68h+var_30], 0 mov [rsp+68h+var_28], 6 jmp loc_1B9D6 loc_1B952: mov rdi, [rsp+68h+var_48] mov rax, [rsp+68h+var_58] mov rdx, [rax+10h] mov rcx, [rax+18h] lea rsi, [rsp+68h+var_60] call JS_ToInt32 cmp eax, 0 jz short loc_1B986 mov dword ptr [rsp+68h+var_30], 0 mov [rsp+68h+var_28], 6 jmp short loc_1B9D6 loc_1B986: mov edi, [rsp+68h+var_5C] mov esi, [rsp+68h+var_60] call _dup2 movsxd rdi, eax call js_get_errno mov [rsp+68h+var_64], eax mov rcx, [rsp+68h+var_48] mov eax, [rsp+68h+var_64] mov [rsp+68h+var_18], rcx mov [rsp+68h+var_1C], eax mov eax, [rsp+68h+var_1C] mov dword ptr [rsp+68h+var_10], eax mov [rsp+68h+var_8], 0 mov rcx, [rsp+68h+var_10] mov rax, [rsp+68h+var_8] mov [rsp+68h+var_30], rcx mov [rsp+68h+var_28], rax loc_1B9D6: mov rax, [rsp+68h+var_30] mov rdx, [rsp+68h+var_28] add rsp, 68h retn
long long js_os_dup2(long long a1, long long a2, long long a3, int a4, _QWORD *a5) { int v5; // eax int errno; // [rsp+4h] [rbp-64h] unsigned int v8; // [rsp+8h] [rbp-60h] BYREF unsigned int v9; // [rsp+Ch] [rbp-5Ch] BYREF _QWORD *v10; // [rsp+10h] [rbp-58h] int v11; // [rsp+1Ch] [rbp-4Ch] long long v12; // [rsp+20h] [rbp-48h] long long v13; // [rsp+28h] [rbp-40h] long long v14; // [rsp+30h] [rbp-38h] long long v15; // [rsp+38h] [rbp-30h] long long v16; // [rsp+40h] [rbp-28h] int v17; // [rsp+4Ch] [rbp-1Ch] long long v18; // [rsp+50h] [rbp-18h] long long v19; // [rsp+58h] [rbp-10h] long long v20; // [rsp+60h] [rbp-8h] v13 = a2; v14 = a3; v12 = a1; v11 = a4; v10 = a5; if ( (unsigned int)JS_ToInt32(a1, &v9, *a5, a5[1]) ) { LODWORD(v15) = 0; v16 = 6LL; } else if ( (unsigned int)JS_ToInt32(v12, &v8, v10[2], v10[3]) ) { LODWORD(v15) = 0; v16 = 6LL; } else { v5 = dup2(v9, v8); errno = js_get_errno(v5); v18 = v12; v17 = errno; LODWORD(v19) = errno; v20 = 0LL; v15 = v19; v16 = 0LL; } return v15; }
js_os_dup2: SUB RSP,0x68 MOV qword ptr [RSP + 0x28],RSI MOV qword ptr [RSP + 0x30],RDX MOV qword ptr [RSP + 0x20],RDI MOV dword ptr [RSP + 0x1c],ECX MOV qword ptr [RSP + 0x10],R8 MOV RDI,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x10] MOV RDX,qword ptr [RAX] MOV RCX,qword ptr [RAX + 0x8] LEA RSI,[RSP + 0xc] CALL 0x00137c60 CMP EAX,0x0 JZ 0x0011b952 MOV dword ptr [RSP + 0x38],0x0 MOV qword ptr [RSP + 0x40],0x6 JMP 0x0011b9d6 LAB_0011b952: MOV RDI,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x10] MOV RDX,qword ptr [RAX + 0x10] MOV RCX,qword ptr [RAX + 0x18] LEA RSI,[RSP + 0x8] CALL 0x00137c60 CMP EAX,0x0 JZ 0x0011b986 MOV dword ptr [RSP + 0x38],0x0 MOV qword ptr [RSP + 0x40],0x6 JMP 0x0011b9d6 LAB_0011b986: MOV EDI,dword ptr [RSP + 0xc] MOV ESI,dword ptr [RSP + 0x8] CALL 0x0010e260 MOVSXD RDI,EAX CALL 0x00112790 MOV dword ptr [RSP + 0x4],EAX MOV RCX,qword ptr [RSP + 0x20] MOV EAX,dword ptr [RSP + 0x4] MOV qword ptr [RSP + 0x50],RCX MOV dword ptr [RSP + 0x4c],EAX MOV EAX,dword ptr [RSP + 0x4c] MOV dword ptr [RSP + 0x58],EAX MOV qword ptr [RSP + 0x60],0x0 MOV RCX,qword ptr [RSP + 0x58] MOV RAX,qword ptr [RSP + 0x60] MOV qword ptr [RSP + 0x38],RCX MOV qword ptr [RSP + 0x40],RAX LAB_0011b9d6: MOV RAX,qword ptr [RSP + 0x38] MOV RDX,qword ptr [RSP + 0x40] ADD RSP,0x68 RET
int1 [16] js_os_dup2(int8 param_1,int8 param_2,int8 param_3,int4 param_4, int8 *param_5) { int1 auVar1 [16]; int iVar2; int local_60; int local_5c; int8 *local_58; int4 local_4c; int8 local_48; int8 local_40; int8 local_38; int4 local_30; int4 uStack_2c; int8 local_28; int4 uStack_c; local_58 = param_5; local_4c = param_4; local_48 = param_1; local_40 = param_2; local_38 = param_3; iVar2 = JS_ToInt32(param_1,&local_5c,*param_5,param_5[1]); if (iVar2 == 0) { iVar2 = JS_ToInt32(local_48,&local_60,local_58[2],local_58[3]); if (iVar2 == 0) { iVar2 = dup2(local_5c,local_60); local_30 = js_get_errno((long)iVar2); uStack_2c = uStack_c; local_28 = 0; } else { local_30 = 0; local_28 = 6; } } else { local_30 = 0; local_28 = 6; } auVar1._4_4_ = uStack_2c; auVar1._0_4_ = local_30; auVar1._8_8_ = local_28; return auVar1; }
47,742
js_os_dup2
bluesky950520[P]quickjs/quickjs-libc.c
static JSValue js_os_dup2(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { int fd, fd2, ret; if (JS_ToInt32(ctx, &fd, argv[0])) return JS_EXCEPTION; if (JS_ToInt32(ctx, &fd2, argv[1])) return JS_EXCEPTION; ret = js_get_errno(dup2(fd, fd2)); return JS_NewInt32(ctx, ret); }
O1
c
js_os_dup2: pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq %r8, %r15 movq %rdi, %r14 movq (%r8), %rdx movq 0x8(%r8), %rcx leaq 0xc(%rsp), %rsi callq 0x26d9c movl $0x6, %ebx testl %eax, %eax jne 0x19eb2 movq 0x10(%r15), %rdx movq 0x18(%r15), %rcx leaq 0x8(%rsp), %rsi movq %r14, %rdi callq 0x26d9c testl %eax, %eax je 0x19ec1 xorl %eax, %eax movq %rbx, %rdx addq $0x10, %rsp popq %rbx popq %r14 popq %r15 retq movl 0xc(%rsp), %edi movl 0x8(%rsp), %esi callq 0xe260 cmpl $-0x1, %eax jne 0x19edf callq 0xe0b0 movq %rax, %rcx xorl %eax, %eax subl (%rcx), %eax movl %eax, %eax xorl %ebx, %ebx jmp 0x19eb4
js_os_dup2: push r15 push r14 push rbx sub rsp, 10h mov r15, r8 mov r14, rdi mov rdx, [r8] mov rcx, [r8+8] lea rsi, [rsp+28h+var_1C] call JS_ToInt32 mov ebx, 6 test eax, eax jnz short loc_19EB2 mov rdx, [r15+10h] mov rcx, [r15+18h] lea rsi, [rsp+28h+var_20] mov rdi, r14 call JS_ToInt32 test eax, eax jz short loc_19EC1 loc_19EB2: xor eax, eax loc_19EB4: mov rdx, rbx add rsp, 10h pop rbx pop r14 pop r15 retn loc_19EC1: mov edi, [rsp+28h+var_1C] mov esi, [rsp+28h+var_20] call _dup2 cmp eax, 0FFFFFFFFh jnz short loc_19EDF call ___errno_location mov rcx, rax xor eax, eax sub eax, [rcx] loc_19EDF: mov eax, eax xor ebx, ebx jmp short loc_19EB4
long long js_os_dup2(long long a1, long long a2, long long a3, long long a4, _QWORD *a5) { long long result; // rax long long v7; // rdi unsigned int v8; // [rsp+8h] [rbp-20h] BYREF _DWORD v9[7]; // [rsp+Ch] [rbp-1Ch] BYREF if ( (unsigned int)JS_ToInt32(a1, v9, *a5, a5[1]) || (unsigned int)JS_ToInt32(a1, &v8, a5[2], a5[3]) ) return 0LL; v7 = v9[0]; LODWORD(result) = dup2(v9[0], v8); if ( (_DWORD)result == -1 ) LODWORD(result) = -*(_DWORD *)__errno_location(v7); return (unsigned int)result; }
js_os_dup2: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x10 MOV R15,R8 MOV R14,RDI MOV RDX,qword ptr [R8] MOV RCX,qword ptr [R8 + 0x8] LEA RSI,[RSP + 0xc] CALL 0x00126d9c MOV EBX,0x6 TEST EAX,EAX JNZ 0x00119eb2 MOV RDX,qword ptr [R15 + 0x10] MOV RCX,qword ptr [R15 + 0x18] LEA RSI,[RSP + 0x8] MOV RDI,R14 CALL 0x00126d9c TEST EAX,EAX JZ 0x00119ec1 LAB_00119eb2: XOR EAX,EAX LAB_00119eb4: MOV RDX,RBX ADD RSP,0x10 POP RBX POP R14 POP R15 RET LAB_00119ec1: MOV EDI,dword ptr [RSP + 0xc] MOV ESI,dword ptr [RSP + 0x8] CALL 0x0010e260 CMP EAX,-0x1 JNZ 0x00119edf CALL 0x0010e0b0 MOV RCX,RAX XOR EAX,EAX SUB EAX,dword ptr [RCX] LAB_00119edf: MOV EAX,EAX XOR EBX,EBX JMP 0x00119eb4
int js_os_dup2(int8 param_1) { int iVar1; int *piVar2; int8 *in_R8; int local_20; int local_1c; iVar1 = JS_ToInt32(param_1,&local_1c,*in_R8,in_R8[1]); if ((iVar1 == 0) && (iVar1 = JS_ToInt32(param_1,&local_20,in_R8[2],in_R8[3]), iVar1 == 0)) { iVar1 = dup2(local_1c,local_20); if (iVar1 == -1) { piVar2 = __errno_location(); iVar1 = -*piVar2; } } else { iVar1 = 0; } return iVar1; }
47,743
TextToSnake
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rtext.c
const char *TextToSnake(const char *text) { static char buffer[MAX_TEXT_BUFFER_LENGTH] = {0}; memset(buffer, 0, MAX_TEXT_BUFFER_LENGTH); if (text != NULL) { // Check for next separator to upper case another character for (int i = 0, j = 0; (i < MAX_TEXT_BUFFER_LENGTH - 1) && (text[j] != '\0'); i++, j++) { if ((text[j] >= 'A') && (text[j] <= 'Z')) { if (i >= 1) { buffer[i] = '_'; i++; } buffer[i] = text[j] + 32; } else buffer[i] = text[j]; } } return buffer; }
O2
c
TextToSnake: pushq %r15 pushq %r14 pushq %rbx movq %rdi, %rbx leaq 0xbdc98(%rip), %r14 # 0x130560 xorl %r15d, %r15d movl $0x400, %edx # imm = 0x400 movq %r14, %rdi xorl %esi, %esi callq 0x92c0 testq %rbx, %rbx je 0x72919 cmpl $0x3fe, %r15d # imm = 0x3FE jg 0x72919 movb (%rbx), %al testb %al, %al je 0x72919 leal -0x41(%rax), %ecx cmpb $0x19, %cl ja 0x7290a testl %r15d, %r15d jle 0x72908 movl %r15d, %eax movb $0x5f, (%rax,%r14) incl %r15d movb (%rbx), %al addb $0x20, %al movslq %r15d, %r15 movb %al, (%r15,%r14) incl %r15d incq %rbx jmp 0x728df leaq 0xbdc40(%rip), %rax # 0x130560 popq %rbx popq %r14 popq %r15 retq
TextToSnake: push r15 push r14 push rbx mov rbx, rdi lea r14, TextToSnake_buffer xor r15d, r15d mov edx, 400h mov rdi, r14 xor esi, esi call _memset test rbx, rbx jz short loc_72919 loc_728DF: cmp r15d, 3FEh jg short loc_72919 mov al, [rbx] test al, al jz short loc_72919 lea ecx, [rax-41h] cmp cl, 19h ja short loc_7290A test r15d, r15d jle short loc_72908 mov eax, r15d mov byte ptr [rax+r14], 5Fh ; '_' inc r15d mov al, [rbx] loc_72908: add al, 20h ; ' ' loc_7290A: movsxd r15, r15d mov [r15+r14], al inc r15d inc rbx jmp short loc_728DF loc_72919: lea rax, TextToSnake_buffer pop rbx pop r14 pop r15 retn
_BYTE * TextToSnake(char *a1) { char *v1; // rbx int v2; // r15d char v3; // al v1 = a1; v2 = 0; memset(TextToSnake_buffer, 0LL, sizeof(TextToSnake_buffer)); if ( a1 ) { while ( v2 <= 1022 ) { v3 = *v1; if ( !*v1 ) break; if ( (unsigned __int8)(v3 - 65) <= 0x19u ) { if ( v2 > 0 ) { TextToSnake_buffer[v2++] = 95; v3 = *v1; } v3 += 32; } TextToSnake_buffer[v2++] = v3; ++v1; } } return TextToSnake_buffer; }
TextToSnake: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RDI LEA R14,[0x230560] XOR R15D,R15D MOV EDX,0x400 MOV RDI,R14 XOR ESI,ESI CALL 0x001092c0 TEST RBX,RBX JZ 0x00172919 LAB_001728df: CMP R15D,0x3fe JG 0x00172919 MOV AL,byte ptr [RBX] TEST AL,AL JZ 0x00172919 LEA ECX,[RAX + -0x41] CMP CL,0x19 JA 0x0017290a TEST R15D,R15D JLE 0x00172908 MOV EAX,R15D MOV byte ptr [RAX + R14*0x1],0x5f INC R15D MOV AL,byte ptr [RBX] LAB_00172908: ADD AL,0x20 LAB_0017290a: MOVSXD R15,R15D MOV byte ptr [R15 + R14*0x1],AL INC R15D INC RBX JMP 0x001728df LAB_00172919: LEA RAX,[0x230560] POP RBX POP R14 POP R15 RET
int1 * TextToSnake(char *param_1) { char cVar1; uint uVar2; uVar2 = 0; memset(&TextToSnake_buffer,0,0x400); if (param_1 != (char *)0x0) { for (; ((int)uVar2 < 0x3ff && (cVar1 = *param_1, cVar1 != '\0')); param_1 = param_1 + 1) { if ((byte)(cVar1 + 0xbfU) < 0x1a) { if (0 < (int)uVar2) { (&TextToSnake_buffer)[uVar2] = 0x5f; uVar2 = uVar2 + 1; cVar1 = *param_1; } cVar1 = cVar1 + ' '; } (&TextToSnake_buffer)[(int)uVar2] = cVar1; uVar2 = uVar2 + 1; } } return &TextToSnake_buffer; }
47,744
my_mb_wc_utf16_quick
eloqsql/strings/ctype-utf16.h
static inline int my_mb_wc_utf16_quick(my_wc_t *pwc, const uchar *s, const uchar *e) { if (s + 2 > e) return MY_CS_TOOSMALL2; /* High bytes: 0xD[89AB] = B'110110??' Low bytes: 0xD[CDEF] = B'110111??' Surrogate mask: 0xFC = B'11111100' */ if (MY_UTF16_HIGH_HEAD(*s)) /* Surrogate head */ { if (s + 4 > e) return MY_CS_TOOSMALL4; if (!MY_UTF16_LOW_HEAD(s[2])) /* Broken surrigate pair */ return MY_CS_ILSEQ; *pwc= MY_UTF16_WC4(s[0], s[1], s[2], s[3]); return 4; } if (MY_UTF16_LOW_HEAD(*s)) /* Low surrogate part without high part */ return MY_CS_ILSEQ; *pwc= MY_UTF16_WC2(s[0], s[1]); return 2; }
O0
c
my_mb_wc_utf16_quick: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x18(%rbp), %rax addq $0x2, %rax cmpq -0x20(%rbp), %rax jbe 0x8c9fa movl $0xffffff9a, -0x4(%rbp) # imm = 0xFFFFFF9A jmp 0x8cad8 movq -0x18(%rbp), %rax movzbl (%rax), %eax andl $0xfc, %eax cmpl $0xd8, %eax jne 0x8ca97 movq -0x18(%rbp), %rax addq $0x4, %rax cmpq -0x20(%rbp), %rax jbe 0x8ca2b movl $0xffffff98, -0x4(%rbp) # imm = 0xFFFFFF98 jmp 0x8cad8 movq -0x18(%rbp), %rax movzbl 0x2(%rax), %eax andl $0xfc, %eax cmpl $0xdc, %eax je 0x8ca4b movl $0x0, -0x4(%rbp) jmp 0x8cad8 movq -0x18(%rbp), %rax movzbl (%rax), %eax andl $0x3, %eax shll $0x12, %eax movq -0x18(%rbp), %rcx movzbl 0x1(%rcx), %ecx shll $0xa, %ecx addl %ecx, %eax movq -0x18(%rbp), %rcx movzbl 0x2(%rcx), %ecx andl $0x3, %ecx shll $0x8, %ecx addl %ecx, %eax movq -0x18(%rbp), %rcx movzbl 0x3(%rcx), %ecx addl %ecx, %eax addl $0x10000, %eax # imm = 0x10000 movslq %eax, %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) movl $0x4, -0x4(%rbp) jmp 0x8cad8 movq -0x18(%rbp), %rax movzbl (%rax), %eax andl $0xfc, %eax cmpl $0xdc, %eax jne 0x8cab3 movl $0x0, -0x4(%rbp) jmp 0x8cad8 movq -0x18(%rbp), %rax movzbl (%rax), %eax shll $0x8, %eax movq -0x18(%rbp), %rcx movzbl 0x1(%rcx), %ecx addl %ecx, %eax movslq %eax, %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) movl $0x2, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopl (%rax)
my_mb_wc_utf16_quick: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rax, [rbp+var_18] add rax, 2 cmp rax, [rbp+var_20] jbe short loc_8C9FA mov [rbp+var_4], 0FFFFFF9Ah jmp loc_8CAD8 loc_8C9FA: mov rax, [rbp+var_18] movzx eax, byte ptr [rax] and eax, 0FCh cmp eax, 0D8h jnz loc_8CA97 mov rax, [rbp+var_18] add rax, 4 cmp rax, [rbp+var_20] jbe short loc_8CA2B mov [rbp+var_4], 0FFFFFF98h jmp loc_8CAD8 loc_8CA2B: mov rax, [rbp+var_18] movzx eax, byte ptr [rax+2] and eax, 0FCh cmp eax, 0DCh jz short loc_8CA4B mov [rbp+var_4], 0 jmp loc_8CAD8 loc_8CA4B: mov rax, [rbp+var_18] movzx eax, byte ptr [rax] and eax, 3 shl eax, 12h mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+1] shl ecx, 0Ah add eax, ecx mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+2] and ecx, 3 shl ecx, 8 add eax, ecx mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+3] add eax, ecx add eax, 10000h movsxd rcx, eax mov rax, [rbp+var_10] mov [rax], rcx mov [rbp+var_4], 4 jmp short loc_8CAD8 loc_8CA97: mov rax, [rbp+var_18] movzx eax, byte ptr [rax] and eax, 0FCh cmp eax, 0DCh jnz short loc_8CAB3 mov [rbp+var_4], 0 jmp short loc_8CAD8 loc_8CAB3: mov rax, [rbp+var_18] movzx eax, byte ptr [rax] shl eax, 8 mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+1] add eax, ecx movsxd rcx, eax mov rax, [rbp+var_10] mov [rax], rcx mov [rbp+var_4], 2 loc_8CAD8: mov eax, [rbp+var_4] pop rbp retn
long long my_mb_wc_utf16_quick(_QWORD *a1, unsigned __int8 *a2, unsigned long long a3) { if ( (unsigned long long)(a2 + 2) <= a3 ) { if ( (*a2 & 0xFC) == 0xD8 ) { if ( (unsigned long long)(a2 + 4) <= a3 ) { if ( (a2[2] & 0xFC) == 0xDC ) { *a1 = a2[3] + ((a2[2] & 3) << 8) + (a2[1] << 10) + ((*a2 & 3) << 18) + 0x10000; return 4; } else { return 0; } } else { return (unsigned int)-104; } } else if ( (*a2 & 0xFC) == 0xDC ) { return 0; } else { *a1 = a2[1] + (*a2 << 8); return 2; } } else { return (unsigned int)-102; } }
my_mb_wc_utf16_quick: 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 + -0x18] ADD RAX,0x2 CMP RAX,qword ptr [RBP + -0x20] JBE 0x0018c9fa MOV dword ptr [RBP + -0x4],0xffffff9a JMP 0x0018cad8 LAB_0018c9fa: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] AND EAX,0xfc CMP EAX,0xd8 JNZ 0x0018ca97 MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x4 CMP RAX,qword ptr [RBP + -0x20] JBE 0x0018ca2b MOV dword ptr [RBP + -0x4],0xffffff98 JMP 0x0018cad8 LAB_0018ca2b: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + 0x2] AND EAX,0xfc CMP EAX,0xdc JZ 0x0018ca4b MOV dword ptr [RBP + -0x4],0x0 JMP 0x0018cad8 LAB_0018ca4b: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] AND EAX,0x3 SHL EAX,0x12 MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x1] SHL ECX,0xa ADD EAX,ECX MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x2] AND ECX,0x3 SHL ECX,0x8 ADD EAX,ECX MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x3] ADD EAX,ECX ADD EAX,0x10000 MOVSXD RCX,EAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x4 JMP 0x0018cad8 LAB_0018ca97: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] AND EAX,0xfc CMP EAX,0xdc JNZ 0x0018cab3 MOV dword ptr [RBP + -0x4],0x0 JMP 0x0018cad8 LAB_0018cab3: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] SHL EAX,0x8 MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x1] ADD EAX,ECX MOVSXD RCX,EAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x2 LAB_0018cad8: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int4 my_mb_wc_utf16_quick(long *param_1,byte *param_2,byte *param_3) { int4 local_c; if (param_3 < param_2 + 2) { local_c = 0xffffff9a; } else if ((*param_2 & 0xfc) == 0xd8) { if (param_3 < param_2 + 4) { local_c = 0xffffff98; } else if ((param_2[2] & 0xfc) == 0xdc) { *param_1 = (long)(int)((*param_2 & 3) * 0x40000 + (uint)param_2[1] * 0x400 + (param_2[2] & 3) * 0x100 + (uint)param_2[3] + 0x10000); local_c = 4; } else { local_c = 0; } } else if ((*param_2 & 0xfc) == 0xdc) { local_c = 0; } else { *param_1 = (long)(int)((uint)*param_2 * 0x100 + (uint)param_2[1]); local_c = 2; } return local_c; }
47,745
ggml_compute_fp32_to_bf16
ngxson[P]ggml-easy/ggml/src/ggml-impl.h
static inline ggml_bf16_t ggml_compute_fp32_to_bf16(float s) { ggml_bf16_t h; union { float f; uint32_t i; } u; u.f = s; if ((u.i & 0x7fffffff) > 0x7f800000) { /* nan */ h.bits = (u.i >> 16) | 64; /* force to quiet */ return h; } h.bits = (u.i + (0x7fff + ((u.i >> 16) & 1))) >> 16; return h; }
O0
c
ggml_compute_fp32_to_bf16: movss %xmm0, -0x8(%rsp) movss -0x8(%rsp), %xmm0 movss %xmm0, -0xc(%rsp) movl -0xc(%rsp), %eax andl $0x7fffffff, %eax # imm = 0x7FFFFFFF cmpl $0x7f800000, %eax # imm = 0x7F800000 jbe 0x48793 movl -0xc(%rsp), %eax shrl $0x10, %eax orl $0x40, %eax movw %ax, -0x2(%rsp) jmp 0x487b1 movl -0xc(%rsp), %eax movl -0xc(%rsp), %ecx shrl $0x10, %ecx andl $0x1, %ecx addl $0x7fff, %ecx # imm = 0x7FFF addl %ecx, %eax shrl $0x10, %eax movw %ax, -0x2(%rsp) movw -0x2(%rsp), %ax retq nopw (%rax,%rax)
ggml_compute_fp32_to_bf16: movss [rsp+var_8], xmm0 movss xmm0, [rsp+var_8] movss [rsp+var_C], xmm0 mov eax, [rsp+var_C] and eax, 7FFFFFFFh cmp eax, 7F800000h jbe short loc_48793 mov eax, [rsp+var_C] shr eax, 10h or eax, 40h mov [rsp+var_2], ax jmp short loc_487B1 loc_48793: mov eax, [rsp+var_C] mov ecx, [rsp+var_C] shr ecx, 10h and ecx, 1 add ecx, 7FFFh add eax, ecx shr eax, 10h mov [rsp+var_2], ax loc_487B1: mov ax, [rsp+var_2] retn
__int16 ggml_compute_fp32_to_bf16(float a1) { if ( (LODWORD(a1) & 0x7FFFFFFFu) <= 0x7F800000 ) return ((HIWORD(LODWORD(a1)) & 1u) + 0x7FFF + LODWORD(a1)) >> 16; else return HIWORD(a1) | 0x40; }
ggml_compute_fp32_to_bf16: MOVSS dword ptr [RSP + -0x8],XMM0 MOVSS XMM0,dword ptr [RSP + -0x8] MOVSS dword ptr [RSP + -0xc],XMM0 MOV EAX,dword ptr [RSP + -0xc] AND EAX,0x7fffffff CMP EAX,0x7f800000 JBE 0x00148793 MOV EAX,dword ptr [RSP + -0xc] SHR EAX,0x10 OR EAX,0x40 MOV word ptr [RSP + -0x2],AX JMP 0x001487b1 LAB_00148793: MOV EAX,dword ptr [RSP + -0xc] MOV ECX,dword ptr [RSP + -0xc] SHR ECX,0x10 AND ECX,0x1 ADD ECX,0x7fff ADD EAX,ECX SHR EAX,0x10 MOV word ptr [RSP + -0x2],AX LAB_001487b1: MOV AX,word ptr [RSP + -0x2] RET
ushort ggml_compute_fp32_to_bf16(uint param_1) { int2 local_2; if ((param_1 & 0x7fffffff) < 0x7f800001) { local_2 = (ushort)(param_1 + (param_1 >> 0x10 & 1) + 0x7fff >> 0x10); } else { local_2 = (ushort)(param_1 >> 0x10) | 0x40; } return local_2; }
47,746
ggml_compute_fp32_to_bf16
ngxson[P]ggml-easy/ggml/src/ggml-impl.h
static inline ggml_bf16_t ggml_compute_fp32_to_bf16(float s) { ggml_bf16_t h; union { float f; uint32_t i; } u; u.f = s; if ((u.i & 0x7fffffff) > 0x7f800000) { /* nan */ h.bits = (u.i >> 16) | 64; /* force to quiet */ return h; } h.bits = (u.i + (0x7fff + ((u.i >> 16) & 1))) >> 16; return h; }
O2
c
ggml_compute_fp32_to_bf16: movd %xmm0, %ecx movl %ecx, %edx andl $0x7fffffff, %edx # imm = 0x7FFFFFFF movl %ecx, %eax shrl $0x10, %eax cmpl $0x7f800001, %edx # imm = 0x7F800001 jb 0x1f650 orl $0x40, %eax retq andl $0x1, %eax addl %ecx, %eax addl $0x7fff, %eax # imm = 0x7FFF shrl $0x10, %eax retq
ggml_compute_fp32_to_bf16: movd ecx, xmm0 mov edx, ecx and edx, 7FFFFFFFh mov eax, ecx shr eax, 10h cmp edx, 7F800001h jb short loc_1F650 or eax, 40h retn loc_1F650: and eax, 1 add eax, ecx add eax, 7FFFh shr eax, 10h retn
long long ggml_compute_fp32_to_bf16(__m128i a1) { unsigned int v1; // ecx v1 = _mm_cvtsi128_si32(a1); if ( (v1 & 0x7FFFFFFF) < 0x7F800001 ) return (v1 + (BYTE2(v1) & 1) + 0x7FFF) >> 16; else return HIWORD(v1) | 0x40; }
ggml_compute_fp32_to_bf16: MOVD ECX,XMM0 MOV EDX,ECX AND EDX,0x7fffffff MOV EAX,ECX SHR EAX,0x10 CMP EDX,0x7f800001 JC 0x0011f650 OR EAX,0x40 RET LAB_0011f650: AND EAX,0x1 ADD EAX,ECX ADD EAX,0x7fff SHR EAX,0x10 RET
uint ggml_compute_fp32_to_bf16(uint param_1) { if (0x7f800000 < (param_1 & 0x7fffffff)) { return param_1 >> 0x10 | 0x40; } return (param_1 >> 0x10 & 1) + param_1 + 0x7fff >> 0x10; }
47,747
nlohmann::json_abi_v3_11_2::detail::lexer<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>, nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::reset()
7CodeWizard[P]stablediffusion/thirdparty/json.hpp
void reset() noexcept { token_buffer.clear(); token_string.clear(); token_string.push_back(std::char_traits<char_type>::to_char_type(current)); }
O2
cpp
nlohmann::json_abi_v3_11_2::detail::lexer<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>, nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::reset(): pushq %rax movq %rdi, %rax andq $0x0, 0x58(%rdi) movq 0x50(%rdi), %rcx movb $0x0, (%rcx) addq $0x38, %rdi movq 0x38(%rax), %rcx cmpq %rcx, 0x40(%rax) je 0x4ed26 movq %rcx, 0x40(%rax) movb 0x14(%rax), %al leaq 0x7(%rsp), %rsi movb %al, (%rsi) callq 0x3ed36 popq %rax retq movq %rax, %rdi callq 0x207fc nop
_ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE5resetEv: push rax mov rax, rdi and qword ptr [rdi+58h], 0 mov rcx, [rdi+50h] mov byte ptr [rcx], 0 add rdi, 38h ; '8' mov rcx, [rax+38h] cmp [rax+40h], rcx jz short loc_4ED26 mov [rax+40h], rcx loc_4ED26: mov al, [rax+14h] lea rsi, [rsp+8+var_1] mov [rsi], al call _ZNSt6vectorIcSaIcEE12emplace_backIJcEEERcDpOT_; std::vector<char>::emplace_back<char>(char &&) pop rax retn mov rdi, rax call __clang_call_terminate
void __spoils<rdx,rcx,r8,r9,r10,r11,xmm4,xmm5> nlohmann::json_abi_v3_11_2::detail::lexer<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::reset( long long a1) { long long v2; // rdi long long v3; // rcx char v4; // [rsp+1h] [rbp-1h] BYREF *(_QWORD *)(a1 + 88) = 0LL; **(_BYTE **)(a1 + 80) = 0; v2 = a1 + 56; v3 = *(_QWORD *)(a1 + 56); if ( *(_QWORD *)(a1 + 64) != v3 ) *(_QWORD *)(a1 + 64) = v3; v4 = *(_BYTE *)(a1 + 20); std::vector<char>::emplace_back<char>(v2, &v4); }
reset: PUSH RAX MOV RAX,RDI AND qword ptr [RDI + 0x58],0x0 MOV RCX,qword ptr [RDI + 0x50] MOV byte ptr [RCX],0x0 ADD RDI,0x38 MOV RCX,qword ptr [RAX + 0x38] CMP qword ptr [RAX + 0x40],RCX JZ 0x0014ed26 MOV qword ptr [RAX + 0x40],RCX LAB_0014ed26: MOV AL,byte ptr [RAX + 0x14] LEA RSI,[RSP + 0x7] MOV byte ptr [RSI],AL LAB_0014ed30: CALL 0x0013ed36 POP RAX RET
/* nlohmann::json_abi_v3_11_2::detail::lexer<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> > >, nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*> >::reset() */ int8 __thiscall nlohmann::json_abi_v3_11_2::detail:: lexer<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char_const*>> ::reset(lexer<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char_const*>> *this) { int8 in_RAX; int8 uStack_8; *(int8 *)(this + 0x58) = 0; **(int1 **)(this + 0x50) = 0; if (*(long *)(this + 0x40) != *(long *)(this + 0x38)) { *(long *)(this + 0x40) = *(long *)(this + 0x38); } uStack_8 = CONCAT17(this[0x14],(int7)in_RAX); /* try { // try from 0014ed30 to 0014ed34 has its CatchHandler @ 0014ed37 */ std::vector<char,std::allocator<char>>::emplace_back<char> ((vector<char,std::allocator<char>> *)(this + 0x38),(char *)((long)&uStack_8 + 7)); return uStack_8; }
47,748
nlohmann::json_abi_v3_11_2::detail::lexer<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>, nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::reset()
7CodeWizard[P]stablediffusion/thirdparty/json.hpp
void reset() noexcept { token_buffer.clear(); token_string.clear(); token_string.push_back(std::char_traits<char_type>::to_char_type(current)); }
O3
cpp
nlohmann::json_abi_v3_11_2::detail::lexer<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>, nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::reset(): pushq %rax movq %rdi, %rax movq $0x0, 0x58(%rdi) movq 0x50(%rdi), %rcx movb $0x0, (%rcx) addq $0x38, %rdi movq 0x38(%rax), %rcx cmpq %rcx, 0x40(%rax) je 0x70fc1 movq %rcx, 0x40(%rax) movb 0x14(%rax), %al leaq 0x7(%rsp), %rsi movb %al, (%rsi) callq 0x5d648 popq %rax retq movq %rax, %rdi callq 0x36331
_ZN8nlohmann16json_abi_v3_11_26detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEENS1_22iterator_input_adapterIPKcEEE5resetEv: push rax mov rax, rdi mov qword ptr [rdi+58h], 0 mov rcx, [rdi+50h] mov byte ptr [rcx], 0 add rdi, 38h ; '8' mov rcx, [rax+38h] cmp [rax+40h], rcx jz short loc_70FC1 mov [rax+40h], rcx loc_70FC1: mov al, [rax+14h] lea rsi, [rsp+8+var_1] mov [rsi], al call _ZNSt6vectorIcSaIcEE12emplace_backIJcEEERcDpOT_; std::vector<char>::emplace_back<char>(char &&) pop rax retn mov rdi, rax call __clang_call_terminate
void __spoils<rdx,rcx,r8,r9,r10,r11,xmm4,xmm5> nlohmann::json_abi_v3_11_2::detail::lexer<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>,nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::reset( long long a1) { long long v2; // rdi long long v3; // rcx char v4; // [rsp+1h] [rbp-1h] BYREF *(_QWORD *)(a1 + 88) = 0LL; **(_BYTE **)(a1 + 80) = 0; v2 = a1 + 56; v3 = *(_QWORD *)(a1 + 56); if ( *(_QWORD *)(a1 + 64) != v3 ) *(_QWORD *)(a1 + 64) = v3; v4 = *(_BYTE *)(a1 + 20); std::vector<char>::emplace_back<char>(v2, &v4); }
47,749
testing::internal::edit_distance::(anonymous namespace)::Hunk::~Hunk()
giladroyz[P]FindPeaks/build_O3/_deps/googletest-src/googletest/src/gtest.cc
Hunk(size_t left_start, size_t right_start) : left_start_(left_start), right_start_(right_start), adds_(), removes_(), common_() {}
O3
cpp
testing::internal::edit_distance::(anonymous namespace)::Hunk::~Hunk(): pushq %r15 pushq %r14 pushq %rbx movq %rdi, %rbx leaq 0x58(%rdi), %r14 movq 0x58(%rdi), %rdi cmpq %r14, %rdi je 0x1d97e movq (%rdi), %r15 movl $0x20, %esi callq 0x84e0 movq %r15, %rdi cmpq %r14, %r15 jne 0x1d969 leaq 0x40(%rbx), %r14 movq 0x40(%rbx), %rdi cmpq %r14, %rdi je 0x1d9a0 movq (%rdi), %r15 movl $0x20, %esi callq 0x84e0 movq %r15, %rdi cmpq %r14, %r15 jne 0x1d98b movq 0x28(%rbx), %rdi addq $0x28, %rbx cmpq %rbx, %rdi je 0x1d9c2 movq (%rdi), %r14 movl $0x20, %esi callq 0x84e0 movq %r14, %rdi cmpq %rbx, %r14 jne 0x1d9ad popq %rbx popq %r14 popq %r15 retq
_ZN7testing8internal13edit_distance12_GLOBAL__N_14HunkD2Ev: push r15 push r14 push rbx mov rbx, rdi lea r14, [rdi+58h] mov rdi, [rdi+58h]; void * cmp rdi, r14 jz short loc_1D97E loc_1D969: mov r15, [rdi] mov esi, 20h ; ' '; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) mov rdi, r15 cmp r15, r14 jnz short loc_1D969 loc_1D97E: lea r14, [rbx+40h] mov rdi, [rbx+40h]; void * cmp rdi, r14 jz short loc_1D9A0 loc_1D98B: mov r15, [rdi] mov esi, 20h ; ' '; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) mov rdi, r15 cmp r15, r14 jnz short loc_1D98B loc_1D9A0: mov rdi, [rbx+28h]; void * add rbx, 28h ; '(' cmp rdi, rbx jz short loc_1D9C2 loc_1D9AD: mov r14, [rdi] mov esi, 20h ; ' '; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) mov rdi, r14 cmp r14, rbx jnz short loc_1D9AD loc_1D9C2: pop rbx pop r14 pop r15 retn
void testing::internal::edit_distance::`anonymous namespace'::Hunk::~Hunk( testing::internal::edit_distance::_anonymous_namespace_::Hunk *this) { char *v2; // r14 char *v3; // rdi char *v4; // r15 testing::internal::edit_distance::_anonymous_namespace_::Hunk **v5; // rdi testing::internal::edit_distance::_anonymous_namespace_::Hunk *v6; // r15 char *v7; // rdi char *v8; // rbx char *v9; // r14 v2 = (char *)this + 88; v3 = (char *)*((_QWORD *)this + 11); if ( v3 != v2 ) { do { v4 = *(char **)v3; operator delete(v3, 0x20uLL); v3 = v4; } while ( v4 != v2 ); } v5 = (testing::internal::edit_distance::_anonymous_namespace_::Hunk **)*((_QWORD *)this + 8); if ( v5 != (testing::internal::edit_distance::_anonymous_namespace_::Hunk **)((char *)this + 64) ) { do { v6 = *v5; operator delete(v5, 0x20uLL); v5 = (testing::internal::edit_distance::_anonymous_namespace_::Hunk **)v6; } while ( v6 != (testing::internal::edit_distance::_anonymous_namespace_::Hunk *)((char *)this + 64) ); } v7 = (char *)*((_QWORD *)this + 5); v8 = (char *)this + 40; if ( v7 != v8 ) { do { v9 = *(char **)v7; operator delete(v7, 0x20uLL); v7 = v9; } while ( v9 != v8 ); } }
~Hunk: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RDI LEA R14,[RDI + 0x58] MOV RDI,qword ptr [RDI + 0x58] CMP RDI,R14 JZ 0x0011d97e LAB_0011d969: MOV R15,qword ptr [RDI] MOV ESI,0x20 CALL 0x001084e0 MOV RDI,R15 CMP R15,R14 JNZ 0x0011d969 LAB_0011d97e: LEA R14,[RBX + 0x40] MOV RDI,qword ptr [RBX + 0x40] CMP RDI,R14 JZ 0x0011d9a0 LAB_0011d98b: MOV R15,qword ptr [RDI] MOV ESI,0x20 CALL 0x001084e0 MOV RDI,R15 CMP R15,R14 JNZ 0x0011d98b LAB_0011d9a0: MOV RDI,qword ptr [RBX + 0x28] ADD RBX,0x28 CMP RDI,RBX JZ 0x0011d9c2 LAB_0011d9ad: MOV R14,qword ptr [RDI] MOV ESI,0x20 CALL 0x001084e0 MOV RDI,R14 CMP R14,RBX JNZ 0x0011d9ad LAB_0011d9c2: POP RBX POP R14 POP R15 RET
/* testing::internal::edit_distance::(anonymous namespace)::Hunk::~Hunk() */ void __thiscall testing::internal::edit_distance::(anonymous_namespace)::Hunk::~Hunk(Hunk *this) { Hunk *pHVar1; Hunk *pHVar2; pHVar2 = *(Hunk **)(this + 0x58); while (pHVar2 != this + 0x58) { pHVar1 = *(Hunk **)pHVar2; operator_delete(pHVar2,0x20); pHVar2 = pHVar1; } pHVar2 = *(Hunk **)(this + 0x40); while (pHVar2 != this + 0x40) { pHVar1 = *(Hunk **)pHVar2; operator_delete(pHVar2,0x20); pHVar2 = pHVar1; } pHVar2 = *(Hunk **)(this + 0x28); while (pHVar2 != this + 0x28) { pHVar1 = *(Hunk **)pHVar2; operator_delete(pHVar2,0x20); pHVar2 = pHVar1; } return; }
47,750
my_strxfrm_pad_unicode
eloqsql/strings/ctype-utf8.c
size_t my_strxfrm_pad_unicode(uchar *str, uchar *strend) { uchar *str0= str; DBUG_ASSERT(str && str <= strend); for ( ; str < strend ; ) { *str++= 0x00; if (str < strend) *str++= 0x20; } return str - str0; }
O0
c
my_strxfrm_pad_unicode: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) jmp 0x74586 jmp 0x74588 movq -0x8(%rbp), %rax cmpq -0x10(%rbp), %rax jae 0x745c2 movq -0x8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x8(%rbp) movb $0x0, (%rax) movq -0x8(%rbp), %rax cmpq -0x10(%rbp), %rax jae 0x745c0 movq -0x8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x8(%rbp) movb $0x20, (%rax) jmp 0x74588 movq -0x8(%rbp), %rax movq -0x18(%rbp), %rcx subq %rcx, %rax popq %rbp retq nop
my_strxfrm_pad_unicode: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] mov [rbp+var_18], rax jmp short $+2 loc_74586: jmp short $+2 loc_74588: mov rax, [rbp+var_8] cmp rax, [rbp+var_10] jnb short loc_745C2 mov rax, [rbp+var_8] mov rcx, rax add rcx, 1 mov [rbp+var_8], rcx mov byte ptr [rax], 0 mov rax, [rbp+var_8] cmp rax, [rbp+var_10] jnb short loc_745C0 mov rax, [rbp+var_8] mov rcx, rax add rcx, 1 mov [rbp+var_8], rcx mov byte ptr [rax], 20h ; ' ' loc_745C0: jmp short loc_74588 loc_745C2: mov rax, [rbp+var_8] mov rcx, [rbp+var_18] sub rax, rcx pop rbp retn
_BYTE * my_strxfrm_pad_unicode(_BYTE *a1, unsigned long long a2) { _BYTE *v2; // rax _BYTE *v3; // rax _BYTE *v5; // [rsp+10h] [rbp-8h] v5 = a1; while ( (unsigned long long)v5 < a2 ) { v2 = v5++; *v2 = 0; if ( (unsigned long long)v5 < a2 ) { v3 = v5++; *v3 = 32; } } return (_BYTE *)(v5 - a1); }
my_strxfrm_pad_unicode: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x18],RAX JMP 0x00174586 LAB_00174586: JMP 0x00174588 LAB_00174588: MOV RAX,qword ptr [RBP + -0x8] CMP RAX,qword ptr [RBP + -0x10] JNC 0x001745c2 MOV RAX,qword ptr [RBP + -0x8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x8],RCX MOV byte ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x8] CMP RAX,qword ptr [RBP + -0x10] JNC 0x001745c0 MOV RAX,qword ptr [RBP + -0x8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x8],RCX MOV byte ptr [RAX],0x20 LAB_001745c0: JMP 0x00174588 LAB_001745c2: MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RBP + -0x18] SUB RAX,RCX POP RBP RET
long my_strxfrm_pad_unicode(int1 *param_1,int1 *param_2) { int1 *puVar1; int1 *local_10; puVar1 = param_1; while (local_10 = puVar1, local_10 < param_2) { puVar1 = local_10 + 1; *local_10 = 0; if (puVar1 < param_2) { *puVar1 = 0x20; puVar1 = local_10 + 2; } } return (long)local_10 - (long)param_1; }
47,751
my_strxfrm_pad_unicode
eloqsql/strings/ctype-utf8.c
size_t my_strxfrm_pad_unicode(uchar *str, uchar *strend) { uchar *str0= str; DBUG_ASSERT(str && str <= strend); for ( ; str < strend ; ) { *str++= 0x00; if (str < strend) *str++= 0x20; } return str - str0; }
O3
c
my_strxfrm_pad_unicode: movq %rdi, %rax cmpq %rsi, %rdi jae 0x57660 pushq %rbp movq %rsp, %rbp movq %rdi, %rcx leaq 0x1(%rcx), %rax movb $0x0, (%rcx) cmpq %rsi, %rax jae 0x57657 movb $0x20, 0x1(%rcx) addq $0x2, %rcx movq %rcx, %rax movq %rax, %rcx cmpq %rsi, %rax jb 0x57640 popq %rbp subq %rdi, %rax retq
my_strxfrm_pad_unicode: mov rax, rdi cmp rdi, rsi jnb short loc_57660 push rbp mov rbp, rsp mov rcx, rdi loc_57640: lea rax, [rcx+1] mov byte ptr [rcx], 0 cmp rax, rsi jnb short loc_57657 mov byte ptr [rcx+1], 20h ; ' ' add rcx, 2 mov rax, rcx loc_57657: mov rcx, rax cmp rax, rsi jb short loc_57640 pop rbp loc_57660: sub rax, rdi retn
long long my_strxfrm_pad_unicode(_BYTE *a1, unsigned long long a2) { _BYTE *v2; // rax _BYTE *v3; // rcx v2 = a1; if ( (unsigned long long)a1 < a2 ) { v3 = a1; do { v2 = v3 + 1; *v3 = 0; if ( (unsigned long long)(v3 + 1) < a2 ) { v3[1] = 32; v2 = v3 + 2; } v3 = v2; } while ( (unsigned long long)v2 < a2 ); } return v2 - a1; }
my_strxfrm_pad_unicode: MOV RAX,RDI CMP RDI,RSI JNC 0x00157660 PUSH RBP MOV RBP,RSP MOV RCX,RDI LAB_00157640: LEA RAX,[RCX + 0x1] MOV byte ptr [RCX],0x0 CMP RAX,RSI JNC 0x00157657 MOV byte ptr [RCX + 0x1],0x20 ADD RCX,0x2 MOV RAX,RCX LAB_00157657: MOV RCX,RAX CMP RAX,RSI JC 0x00157640 POP RBP LAB_00157660: SUB RAX,RDI RET
long my_strxfrm_pad_unicode(int1 *param_1,int1 *param_2) { int1 *puVar1; int1 *puVar2; puVar2 = param_1; puVar1 = param_1; if (param_1 < param_2) { do { puVar2 = puVar1 + 1; *puVar1 = 0; if (puVar2 < param_2) { puVar1[1] = 0x20; puVar2 = puVar1 + 2; } puVar1 = puVar2; } while (puVar2 < param_2); } return (long)puVar2 - (long)param_1; }
47,752
get_charset_name
eloqsql/mysys/charset.c
const char *get_charset_name(uint charset_number) { my_pthread_once(&charsets_initialized, init_available_charsets); if (charset_number < array_elements(all_charsets)) { CHARSET_INFO *cs= all_charsets[charset_number]; if (cs && (cs->number == charset_number) && cs->coll_name.str) return cs->coll_name.str; } return "?"; /* this mimics find_type() */ }
O3
c
get_charset_name: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movl %edi, %ebx leaq 0xb750ea(%rip), %rdi # 0xc07b30 leaq -0x302(%rip), %rsi # 0x9274b callq 0x29240 leaq 0x49600(%rip), %rcx # 0xdc059 cmpl $0x7ff, %ebx # imm = 0x7FF ja 0x92a80 movl %ebx, %eax leaq 0xb6d056(%rip), %rdx # 0xbffac0 movq (%rdx,%rax,8), %rax testq %rax, %rax je 0x92a80 cmpl %ebx, (%rax) jne 0x92a80 movq 0x20(%rax), %rax testq %rax, %rax jne 0x92a83 movq %rcx, %rax addq $0x8, %rsp popq %rbx popq %rbp retq
get_charset_name: push rbp mov rbp, rsp push rbx push rax mov ebx, edi lea rdi, charsets_initialized lea rsi, init_available_charsets call _pthread_once lea rcx, asc_DC059; "?" cmp ebx, 7FFh ja short loc_92A80 mov eax, ebx lea rdx, all_charsets mov rax, [rdx+rax*8] test rax, rax jz short loc_92A80 cmp [rax], ebx jnz short loc_92A80 mov rax, [rax+20h] test rax, rax jnz short loc_92A83 loc_92A80: mov rax, rcx loc_92A83: add rsp, 8 pop rbx pop rbp retn
const char * get_charset_name(unsigned int a1) { long long v1; // rax const char *result; // rax pthread_once(&charsets_initialized, init_available_charsets); if ( a1 > 0x7FF ) return "?"; v1 = all_charsets[a1]; if ( !v1 ) return "?"; if ( *(_DWORD *)v1 != a1 ) return "?"; result = *(const char **)(v1 + 32); if ( !result ) return "?"; return result; }
get_charset_name: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV EBX,EDI LEA RDI,[0xd07b30] LEA RSI,[0x19274b] CALL 0x00129240 LEA RCX,[0x1dc059] CMP EBX,0x7ff JA 0x00192a80 MOV EAX,EBX LEA RDX,[0xcffac0] MOV RAX,qword ptr [RDX + RAX*0x8] TEST RAX,RAX JZ 0x00192a80 CMP dword ptr [RAX],EBX JNZ 0x00192a80 MOV RAX,qword ptr [RAX + 0x20] TEST RAX,RAX JNZ 0x00192a83 LAB_00192a80: MOV RAX,RCX LAB_00192a83: ADD RSP,0x8 POP RBX POP RBP RET
int * get_charset_name(uint param_1) { uint *puVar1; int *puVar2; pthread_once(&charsets_initialized,init_available_charsets); if ((((0x7ff < param_1) || (puVar1 = (uint *)(&all_charsets)[param_1], puVar1 == (uint *)0x0)) || (*puVar1 != param_1)) || (puVar2 = *(int **)(puVar1 + 8), puVar2 == (int *)0x0)) { puVar2 = &DAT_001dc059; } return puVar2; }
47,753
my_round_up_to_next_power
eloqsql/include/my_bit.h
static inline uint32 my_round_up_to_next_power(uint32 v) { v--; /* 01100000000000000000000000001010 */ v|= v >> 1; /* 01110000000000000000000000001111 */ v|= v >> 2; /* 01111100000000000000000000001111 */ v|= v >> 4; /* 01111111110000000000000000001111 */ v|= v >> 8; /* 01111111111111111100000000001111 */ v|= v >> 16; /* 01111111111111111111111111111111 */ return v+1; /* 10000000000000000000000000000000 */ }
O0
c
my_round_up_to_next_power: pushq %rbp movq %rsp, %rbp movl %edi, -0x4(%rbp) movl -0x4(%rbp), %eax addl $-0x1, %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax shrl %eax orl -0x4(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax shrl $0x2, %eax orl -0x4(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax shrl $0x4, %eax orl -0x4(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax shrl $0x8, %eax orl -0x4(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax shrl $0x10, %eax orl -0x4(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addl $0x1, %eax popq %rbp retq nopw %cs:(%rax,%rax)
my_round_up_to_next_power_1: push rbp mov rbp, rsp mov [rbp+var_4], edi mov eax, [rbp+var_4] add eax, 0FFFFFFFFh mov [rbp+var_4], eax mov eax, [rbp+var_4] shr eax, 1 or eax, [rbp+var_4] mov [rbp+var_4], eax mov eax, [rbp+var_4] shr eax, 2 or eax, [rbp+var_4] mov [rbp+var_4], eax mov eax, [rbp+var_4] shr eax, 4 or eax, [rbp+var_4] mov [rbp+var_4], eax mov eax, [rbp+var_4] shr eax, 8 or eax, [rbp+var_4] mov [rbp+var_4], eax mov eax, [rbp+var_4] shr eax, 10h or eax, [rbp+var_4] mov [rbp+var_4], eax mov eax, [rbp+var_4] add eax, 1 pop rbp retn
long long my_round_up_to_next_power_1(int a1) { unsigned int v2; // [rsp+0h] [rbp-4h] unsigned int v3; // [rsp+0h] [rbp-4h] v2 = (a1 - 1) | ((unsigned int)(a1 - 1) >> 1) | (((a1 - 1) | ((unsigned int)(a1 - 1) >> 1)) >> 2); v3 = v2 | (v2 >> 4) | ((v2 | (v2 >> 4)) >> 8); return (v3 | HIWORD(v3)) + 1; }
my_round_up_to_next_power: PUSH RBP MOV RBP,RSP MOV dword ptr [RBP + -0x4],EDI MOV EAX,dword ptr [RBP + -0x4] ADD EAX,-0x1 MOV dword ptr [RBP + -0x4],EAX MOV EAX,dword ptr [RBP + -0x4] SHR EAX,0x1 OR EAX,dword ptr [RBP + -0x4] MOV dword ptr [RBP + -0x4],EAX MOV EAX,dword ptr [RBP + -0x4] SHR EAX,0x2 OR EAX,dword ptr [RBP + -0x4] MOV dword ptr [RBP + -0x4],EAX MOV EAX,dword ptr [RBP + -0x4] SHR EAX,0x4 OR EAX,dword ptr [RBP + -0x4] MOV dword ptr [RBP + -0x4],EAX MOV EAX,dword ptr [RBP + -0x4] SHR EAX,0x8 OR EAX,dword ptr [RBP + -0x4] MOV dword ptr [RBP + -0x4],EAX MOV EAX,dword ptr [RBP + -0x4] SHR EAX,0x10 OR EAX,dword ptr [RBP + -0x4] MOV dword ptr [RBP + -0x4],EAX MOV EAX,dword ptr [RBP + -0x4] ADD EAX,0x1 POP RBP RET
int my_round_up_to_next_power(int param_1) { uint uVar1; uVar1 = param_1 - 1U >> 1 | param_1 - 1U; uVar1 = uVar1 >> 2 | uVar1; uVar1 = uVar1 >> 4 | uVar1; uVar1 = uVar1 >> 8 | uVar1; return (uVar1 >> 0x10 | uVar1) + 1; }
47,754
my_strxfrm_pad_desc_and_reverse_nopad
eloqsql/strings/ctype-simple.c
size_t my_strxfrm_pad_desc_and_reverse_nopad(CHARSET_INFO *cs, uchar *str, uchar *frmend, uchar *strend, uint nweights, uint flags, uint level) { if (nweights && frmend < strend && (flags & MY_STRXFRM_PAD_WITH_SPACE)) { uint fill_length= MY_MIN((uint) (strend - frmend), nweights * cs->mbminlen); memset(frmend, 0x00, fill_length); frmend+= fill_length; } my_strxfrm_desc_and_reverse(str, frmend, flags, level); if ((flags & MY_STRXFRM_PAD_TO_MAXLEN) && frmend < strend) { size_t fill_length= strend - frmend; memset(frmend, 0x00, fill_length); frmend= strend; } return frmend - str; }
O0
c
my_strxfrm_pad_desc_and_reverse_nopad: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movl 0x10(%rbp), %eax movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movl %r8d, -0x24(%rbp) movl %r9d, -0x28(%rbp) cmpl $0x0, -0x24(%rbp) je 0xa12d2 movq -0x18(%rbp), %rax cmpq -0x20(%rbp), %rax jae 0xa12d2 movl -0x28(%rbp), %eax andl $0x40, %eax cmpl $0x0, %eax je 0xa12d2 movq -0x20(%rbp), %rax movq -0x18(%rbp), %rcx subq %rcx, %rax movl -0x24(%rbp), %ecx movq -0x8(%rbp), %rdx imull 0x98(%rdx), %ecx cmpl %ecx, %eax jae 0xa129b movq -0x20(%rbp), %rax movq -0x18(%rbp), %rcx subq %rcx, %rax movl %eax, -0x3c(%rbp) jmp 0xa12ac movl -0x24(%rbp), %eax movq -0x8(%rbp), %rcx imull 0x98(%rcx), %eax movl %eax, -0x3c(%rbp) movl -0x3c(%rbp), %eax movl %eax, -0x2c(%rbp) movq -0x18(%rbp), %rdi movl -0x2c(%rbp), %eax movl %eax, %edx xorl %esi, %esi callq 0x281d0 movl -0x2c(%rbp), %ecx movq -0x18(%rbp), %rax movl %ecx, %ecx addq %rcx, %rax movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi movl -0x28(%rbp), %edx movl 0x10(%rbp), %ecx callq 0xa44d0 movl -0x28(%rbp), %eax andl $0x80, %eax cmpl $0x0, %eax je 0xa1322 movq -0x18(%rbp), %rax cmpq -0x20(%rbp), %rax jae 0xa1322 movq -0x20(%rbp), %rax movq -0x18(%rbp), %rcx subq %rcx, %rax movq %rax, -0x38(%rbp) movq -0x18(%rbp), %rdi movq -0x38(%rbp), %rdx xorl %esi, %esi callq 0x281d0 movq -0x20(%rbp), %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax movq -0x10(%rbp), %rcx subq %rcx, %rax addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_strxfrm_pad_desc_and_reverse_nopad: push rbp mov rbp, rsp sub rsp, 40h mov eax, [rbp+arg_0] mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_24], r8d mov [rbp+var_28], r9d cmp [rbp+var_24], 0 jz short loc_A12D2 mov rax, [rbp+var_18] cmp rax, [rbp+var_20] jnb short loc_A12D2 mov eax, [rbp+var_28] and eax, 40h cmp eax, 0 jz short loc_A12D2 mov rax, [rbp+var_20] mov rcx, [rbp+var_18] sub rax, rcx mov ecx, [rbp+var_24] mov rdx, [rbp+var_8] imul ecx, [rdx+98h] cmp eax, ecx jnb short loc_A129B mov rax, [rbp+var_20] mov rcx, [rbp+var_18] sub rax, rcx mov [rbp+var_3C], eax jmp short loc_A12AC loc_A129B: mov eax, [rbp+var_24] mov rcx, [rbp+var_8] imul eax, [rcx+98h] mov [rbp+var_3C], eax loc_A12AC: mov eax, [rbp+var_3C] mov [rbp+var_2C], eax mov rdi, [rbp+var_18] mov eax, [rbp+var_2C] mov edx, eax xor esi, esi call _memset mov ecx, [rbp+var_2C] mov rax, [rbp+var_18] mov ecx, ecx add rax, rcx mov [rbp+var_18], rax loc_A12D2: mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] mov edx, [rbp+var_28] mov ecx, [rbp+arg_0] call my_strxfrm_desc_and_reverse mov eax, [rbp+var_28] and eax, 80h cmp eax, 0 jz short loc_A1322 mov rax, [rbp+var_18] cmp rax, [rbp+var_20] jnb short loc_A1322 mov rax, [rbp+var_20] mov rcx, [rbp+var_18] sub rax, rcx mov [rbp+var_38], rax mov rdi, [rbp+var_18] mov rdx, [rbp+var_38] xor esi, esi call _memset mov rax, [rbp+var_20] mov [rbp+var_18], rax loc_A1322: mov rax, [rbp+var_18] mov rcx, [rbp+var_10] sub rax, rcx add rsp, 40h pop rbp retn
long long my_strxfrm_pad_desc_and_reverse_nopad( long long a1, long long a2, unsigned long long a3, unsigned long long a4, int a5, unsigned int a6, unsigned int a7) { unsigned int v8; // [rsp+4h] [rbp-3Ch] unsigned long long v11; // [rsp+28h] [rbp-18h] v11 = a3; if ( a5 && a3 < a4 && (a6 & 0x40) != 0 ) { if ( (int)a4 - (int)a3 >= (unsigned int)(*(_DWORD *)(a1 + 152) * a5) ) v8 = *(_DWORD *)(a1 + 152) * a5; else v8 = a4 - a3; memset(a3, 0LL, v8); v11 += v8; } my_strxfrm_desc_and_reverse(a2, v11, a6, a7); if ( (a6 & 0x80) != 0 && v11 < a4 ) { memset(v11, 0LL, a4 - v11); v11 = a4; } return v11 - a2; }
my_strxfrm_pad_desc_and_reverse_nopad: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV EAX,dword ptr [RBP + 0x10] MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV dword ptr [RBP + -0x24],R8D MOV dword ptr [RBP + -0x28],R9D CMP dword ptr [RBP + -0x24],0x0 JZ 0x001a12d2 MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x20] JNC 0x001a12d2 MOV EAX,dword ptr [RBP + -0x28] AND EAX,0x40 CMP EAX,0x0 JZ 0x001a12d2 MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x18] SUB RAX,RCX MOV ECX,dword ptr [RBP + -0x24] MOV RDX,qword ptr [RBP + -0x8] IMUL ECX,dword ptr [RDX + 0x98] CMP EAX,ECX JNC 0x001a129b MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x18] SUB RAX,RCX MOV dword ptr [RBP + -0x3c],EAX JMP 0x001a12ac LAB_001a129b: MOV EAX,dword ptr [RBP + -0x24] MOV RCX,qword ptr [RBP + -0x8] IMUL EAX,dword ptr [RCX + 0x98] MOV dword ptr [RBP + -0x3c],EAX LAB_001a12ac: MOV EAX,dword ptr [RBP + -0x3c] MOV dword ptr [RBP + -0x2c],EAX MOV RDI,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RBP + -0x2c] MOV EDX,EAX XOR ESI,ESI CALL 0x001281d0 MOV ECX,dword ptr [RBP + -0x2c] MOV RAX,qword ptr [RBP + -0x18] MOV ECX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x18],RAX LAB_001a12d2: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] MOV EDX,dword ptr [RBP + -0x28] MOV ECX,dword ptr [RBP + 0x10] CALL 0x001a44d0 MOV EAX,dword ptr [RBP + -0x28] AND EAX,0x80 CMP EAX,0x0 JZ 0x001a1322 MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x20] JNC 0x001a1322 MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x18] SUB RAX,RCX MOV qword ptr [RBP + -0x38],RAX MOV RDI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x38] XOR ESI,ESI CALL 0x001281d0 MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x18],RAX LAB_001a1322: MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x10] SUB RAX,RCX ADD RSP,0x40 POP RBP RET
long my_strxfrm_pad_desc_and_reverse_nopad (long param_1,long param_2,void *param_3,void *param_4,int param_5,uint param_6, int4 param_7) { int4 local_44; int8 local_20; local_20 = param_3; if (((param_5 != 0) && (param_3 < param_4)) && ((param_6 & 0x40) != 0)) { if ((uint)((int)param_4 - (int)param_3) < (uint)(param_5 * *(int *)(param_1 + 0x98))) { local_44 = (int)param_4 - (int)param_3; } else { local_44 = param_5 * *(int *)(param_1 + 0x98); } memset(param_3,0,(ulong)local_44); local_20 = (void *)((long)param_3 + (ulong)local_44); } my_strxfrm_desc_and_reverse(param_2,local_20,param_6,param_7); if (((param_6 & 0x80) != 0) && (local_20 < param_4)) { memset(local_20,0,(long)param_4 - (long)local_20); local_20 = param_4; } return (long)local_20 - param_2; }
47,755
uf_varchar2
eloqsql/storage/myisam/mi_packrec.c
static void uf_varchar2(MI_COLUMNDEF *rec, MI_BIT_BUFF *bit_buff, uchar *to, uchar *end __attribute__((unused))) { if (get_bit(bit_buff)) to[0]=to[1]=0; /* Zero lengths */ else { ulong length=get_bits(bit_buff,rec->space_length_bits); int2store(to,length); decode_bytes(rec,bit_buff,to+2,to+2+length); } }
O3
c
uf_varchar2: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %rbx movq %rsi, %r14 movq %rdi, %r15 movl 0x4(%rsi), %eax testl %eax, %eax je 0x83917 movl (%r14), %r13d decl %eax movl %eax, 0x4(%r14) btl %eax, %r13d jae 0x83934 movw $0x0, (%rbx) addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %r14, %rdi callq 0x821b9 movl $0x1f, 0x4(%r14) movl (%r14), %r13d movl $0x1f, %eax testl %r13d, %r13d js 0x83903 movl 0x1c(%r15), %r12d movl %eax, %ecx subl %r12d, %ecx jae 0x83979 subl %eax, %r12d movl %eax, %eax leaq 0x5df55(%rip), %rcx # 0xe18a0 andl (%rcx,%rax,4), %r13d movl %r12d, %ecx shll %cl, %r13d movq %r14, %rdi callq 0x821b9 movl $0x20, %eax subl %r12d, %eax movl %eax, 0x4(%r14) movl (%r14), %eax negl %r12d movl %r12d, %ecx shrl %cl, %eax addl %eax, %r13d jmp 0x8398f movl %ecx, 0x4(%r14) shrl %cl, %r13d movl 0x1c(%r15), %eax leaq 0x5df15(%rip), %rcx # 0xe18a0 andl (%rcx,%rax,4), %r13d movl %r13d, %eax movw %r13w, (%rbx) leaq (%rbx,%rax), %rcx addq $0x2, %rcx addq $0x2, %rbx movq %r15, %rdi movq %r14, %rsi movq %rbx, %rdx addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x82aaa
uf_varchar2_0: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rdx mov r14, rsi mov r15, rdi mov eax, [rsi+4] test eax, eax jz short loc_83917 mov r13d, [r14] dec eax mov [r14+4], eax bt r13d, eax jnb short loc_83934 loc_83903: mov word ptr [rbx], 0 add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_83917: mov rdi, r14 call fill_buffer_0 mov dword ptr [r14+4], 1Fh mov r13d, [r14] mov eax, 1Fh test r13d, r13d js short loc_83903 loc_83934: mov r12d, [r15+1Ch] mov ecx, eax sub ecx, r12d jnb short loc_83979 sub r12d, eax mov eax, eax lea rcx, mask_0 and r13d, [rcx+rax*4] mov ecx, r12d shl r13d, cl mov rdi, r14 call fill_buffer_0 mov eax, 20h ; ' ' sub eax, r12d mov [r14+4], eax mov eax, [r14] neg r12d mov ecx, r12d shr eax, cl add r13d, eax jmp short loc_8398F loc_83979: mov [r14+4], ecx shr r13d, cl mov eax, [r15+1Ch] lea rcx, mask_0 and r13d, [rcx+rax*4] loc_8398F: mov eax, r13d mov [rbx], r13w lea rcx, [rbx+rax] add rcx, 2 add rbx, 2 mov rdi, r15 mov rsi, r14 mov rdx, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp decode_bytes_0
long long uf_varchar2_0(long long a1, unsigned int *a2, long long a3) { unsigned int v4; // eax unsigned int v5; // r13d long long result; // rax unsigned int v7; // r12d unsigned int v8; // ecx int v9; // r12d int v10; // r13d unsigned int v11; // r13d v4 = a2[1]; if ( v4 ) { v5 = *a2; result = v4 - 1; a2[1] = result; if ( _bittest((const int *)&v5, result) ) { LABEL_3: *(_WORD *)a3 = 0; return result; } } else { fill_buffer_0((long long)a2); a2[1] = 31; v5 = *a2; result = 31LL; if ( (*a2 & 0x80000000) != 0 ) goto LABEL_3; } v7 = *(_DWORD *)(a1 + 28); v8 = result - v7; if ( (unsigned int)result >= v7 ) { a2[1] = v8; v11 = mask_0[*(unsigned int *)(a1 + 28)] & (v5 >> v8); } else { v9 = v7 - result; v10 = (mask_0[(unsigned int)result] & v5) << v9; fill_buffer_0((long long)a2); a2[1] = 32 - v9; v11 = (*a2 >> -(char)v9) + v10; } *(_WORD *)a3 = v11; return (long long)decode_bytes_0(a1, (long long)a2, (_BYTE *)(a3 + 2), (_BYTE *)(a3 + v11 + 2)); }
uf_varchar2: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RDX MOV R14,RSI MOV R15,RDI MOV EAX,dword ptr [RSI + 0x4] TEST EAX,EAX JZ 0x00183917 MOV R13D,dword ptr [R14] DEC EAX MOV dword ptr [R14 + 0x4],EAX BT R13D,EAX JNC 0x00183934 LAB_00183903: MOV word ptr [RBX],0x0 ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00183917: MOV RDI,R14 CALL 0x001821b9 MOV dword ptr [R14 + 0x4],0x1f MOV R13D,dword ptr [R14] MOV EAX,0x1f TEST R13D,R13D JS 0x00183903 LAB_00183934: MOV R12D,dword ptr [R15 + 0x1c] MOV ECX,EAX SUB ECX,R12D JNC 0x00183979 SUB R12D,EAX MOV EAX,EAX LEA RCX,[0x1e18a0] AND R13D,dword ptr [RCX + RAX*0x4] MOV ECX,R12D SHL R13D,CL MOV RDI,R14 CALL 0x001821b9 MOV EAX,0x20 SUB EAX,R12D MOV dword ptr [R14 + 0x4],EAX MOV EAX,dword ptr [R14] NEG R12D MOV ECX,R12D SHR EAX,CL ADD R13D,EAX JMP 0x0018398f LAB_00183979: MOV dword ptr [R14 + 0x4],ECX SHR R13D,CL MOV EAX,dword ptr [R15 + 0x1c] LEA RCX,[0x1e18a0] AND R13D,dword ptr [RCX + RAX*0x4] LAB_0018398f: MOV EAX,R13D MOV word ptr [RBX],R13W LEA RCX,[RBX + RAX*0x1] ADD RCX,0x2 ADD RBX,0x2 MOV RDI,R15 MOV RSI,R14 MOV RDX,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x00182aaa
void uf_varchar2(long param_1,uint *param_2,int2 *param_3) { uint uVar1; uint uVar2; uint uVar3; byte bVar4; uint uVar5; if (param_2[1] == 0) { fill_buffer(param_2); param_2[1] = 0x1f; uVar5 = *param_2; uVar3 = 0x1f; if (-1 < (int)uVar5) goto LAB_00183934; } else { uVar5 = *param_2; uVar3 = param_2[1] - 1; param_2[1] = uVar3; if ((uVar5 >> (uVar3 & 0x1f) & 1) == 0) { LAB_00183934: uVar1 = *(uint *)(param_1 + 0x1c); if (uVar3 < uVar1) { uVar2 = (&mask)[uVar3]; bVar4 = (byte)(uVar1 - uVar3); fill_buffer(param_2); param_2[1] = 0x20 - (uVar1 - uVar3); uVar5 = ((uVar5 & uVar2) << (bVar4 & 0x1f)) + (*param_2 >> (-bVar4 & 0x1f)); } else { param_2[1] = uVar3 - uVar1; uVar5 = uVar5 >> ((byte)(uVar3 - uVar1) & 0x1f) & (&mask)[*(uint *)(param_1 + 0x1c)]; } *param_3 = (short)uVar5; decode_bytes(param_1,param_2,param_3 + 1,(long)param_3 + (ulong)uVar5 + 2); return; } } *param_3 = 0; return; }
47,756
nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>::find(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
iterator find(const key_type& key) { for (auto it = this->begin(); it != this->end(); ++it) { if (m_compare(it->first, key)) { return it; } } return Container::end(); }
O0
cpp
nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>::find(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 movq %rdi, 0x10(%rsp) callq 0xa1ae0 movq %rax, 0x30(%rsp) movq 0x10(%rsp), %rdi callq 0xa1b50 movq %rax, 0x18(%rsp) leaq 0x30(%rsp), %rdi leaq 0x18(%rsp), %rsi callq 0xa1b10 testb $0x1, %al jne 0xd4326 jmp 0xd4366 movq 0x10(%rsp), %rax addq $0x18, %rax movq %rax, 0x8(%rsp) leaq 0x30(%rsp), %rdi callq 0xa1b80 movq 0x8(%rsp), %rdi movq %rax, %rsi movq 0x20(%rsp), %rdx callq 0xcf9a0 testb $0x1, %al jne 0xd4356 jmp 0xd4358 jmp 0xd4375 jmp 0xd435a leaq 0x30(%rsp), %rdi callq 0xa1ef0 jmp 0xd4302 movq 0x10(%rsp), %rdi callq 0xa1b50 movq %rax, 0x30(%rsp) movq 0x30(%rsp), %rax addq $0x38, %rsp retq nop
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE4findERSJ_: sub rsp, 38h mov [rsp+38h+var_10], rdi mov [rsp+38h+var_18], rsi mov rdi, [rsp+38h+var_10] mov [rsp+38h+var_28], rdi call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE5beginEv; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>::begin(void) mov [rsp+38h+var_8], rax loc_D4302: mov rdi, [rsp+38h+var_28] call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE3endEv; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>::end(void) mov [rsp+38h+var_20], rax lea rdi, [rsp+38h+var_8] lea rsi, [rsp+38h+var_20] call _ZN9__gnu_cxxneIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEEbRKNS_17__normal_iteratorIT_T0_EEST_; __gnu_cxx::operator!=<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>> const&,__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>> const&) test al, 1 jnz short loc_D4326 jmp short loc_D4366 loc_D4326: mov rax, [rsp+38h+var_28] add rax, 18h mov [rsp+38h+var_30], rax lea rdi, [rsp+38h+var_8] call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEptEv; __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::operator->(void) mov rdi, [rsp+38h+var_30] mov rsi, rax mov rdx, [rsp+38h+var_18] call _ZNKSt8equal_toIvEclIRKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEESI_EEDTeqclsr3stdE7forwardIT_Efp_Eclsr3stdE7forwardIT0_Efp0_EEOSJ_OSK_ test al, 1 jnz short loc_D4356 jmp short loc_D4358 loc_D4356: jmp short loc_D4375 loc_D4358: jmp short $+2 loc_D435A: lea rdi, [rsp+38h+var_8] call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEppEv; __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::operator++(void) jmp short loc_D4302 loc_D4366: mov rdi, [rsp+38h+var_28] call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE3endEv; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>::end(void) mov [rsp+38h+var_8], rax loc_D4375: mov rax, [rsp+38h+var_8] add rsp, 38h retn
long long nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::find( long long a1, long long a2) { long long v2; // rax long long v4; // [rsp+18h] [rbp-20h] BYREF long long v5; // [rsp+20h] [rbp-18h] long long v6; // [rsp+28h] [rbp-10h] long long i; // [rsp+30h] [rbp-8h] BYREF v6 = a1; v5 = a2; for ( i = std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>::begin(a1); ; __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::operator++(&i) ) { v4 = std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>::end(a1); if ( !__gnu_cxx::operator!=<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>( (long long)&i, (long long)&v4) ) break; v2 = __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::operator->((long long)&i); if ( (std::equal_to<void>::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> 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&>( a1 + 24, v2, v5) & 1) != 0 ) return i; } return std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>::end(a1); }
find: SUB RSP,0x38 MOV qword ptr [RSP + 0x28],RDI MOV qword ptr [RSP + 0x20],RSI MOV RDI,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x10],RDI CALL 0x001a1ae0 MOV qword ptr [RSP + 0x30],RAX LAB_001d4302: MOV RDI,qword ptr [RSP + 0x10] CALL 0x001a1b50 MOV qword ptr [RSP + 0x18],RAX LEA RDI,[RSP + 0x30] LEA RSI,[RSP + 0x18] CALL 0x001a1b10 TEST AL,0x1 JNZ 0x001d4326 JMP 0x001d4366 LAB_001d4326: MOV RAX,qword ptr [RSP + 0x10] ADD RAX,0x18 MOV qword ptr [RSP + 0x8],RAX LEA RDI,[RSP + 0x30] CALL 0x001a1b80 MOV RDI,qword ptr [RSP + 0x8] MOV RSI,RAX MOV RDX,qword ptr [RSP + 0x20] CALL 0x001cf9a0 TEST AL,0x1 JNZ 0x001d4356 JMP 0x001d4358 LAB_001d4356: JMP 0x001d4375 LAB_001d4358: JMP 0x001d435a LAB_001d435a: LEA RDI,[RSP + 0x30] CALL 0x001a1ef0 JMP 0x001d4302 LAB_001d4366: MOV RDI,qword ptr [RSP + 0x10] CALL 0x001a1b50 MOV qword ptr [RSP + 0x30],RAX LAB_001d4375: MOV RAX,qword ptr [RSP + 0x30] ADD RSP,0x38 RET
/* nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const, minja::Value> > >::find(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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&) */ int8 __thiscall nlohmann::json_abi_v3_11_3:: ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> ::find(ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> *this,basic_json *param_1) { bool bVar1; basic_json *pbVar2; ulong uVar3; int8 uVar4; int8 local_20; basic_json *local_18; ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> *local_10; int8 local_8; local_18 = param_1; local_10 = this; local_8 = std:: vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> ::begin((vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> *)this); while( true ) { local_20 = std:: vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> ::end((vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> *)this); bVar1 = __gnu_cxx::operator!=((__normal_iterator *)&local_8,(__normal_iterator *)&local_20); if (!bVar1) { uVar4 = std:: vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> ::end((vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> *)this); return uVar4; } pbVar2 = (basic_json *) __gnu_cxx:: __normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>*,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>> ::operator->((__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>*,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>> *)&local_8); uVar3 = std::equal_to<void>::operator()((equal_to<void> *)(this + 0x18),pbVar2,local_18); if ((uVar3 & 1) != 0) break; __gnu_cxx:: __normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>*,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>> ::operator++((__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>*,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>> *)&local_8); } return local_8; }
47,757
js_promise_finally
bluesky950520[P]quickjs/quickjs.c
static JSValue js_promise_finally(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { JSValue onFinally = argv[0]; JSValue ctor, ret; JSValue then_funcs[2]; JSValue func_data[2]; int i; ctor = JS_SpeciesConstructor(ctx, this_val, JS_UNDEFINED); if (JS_IsException(ctor)) return ctor; if (!JS_IsFunction(ctx, onFinally)) { then_funcs[0] = js_dup(onFinally); then_funcs[1] = js_dup(onFinally); } else { func_data[0] = ctor; func_data[1] = onFinally; for(i = 0; i < 2; i++) { then_funcs[i] = JS_NewCFunctionData(ctx, js_promise_then_finally_func, 1, i, 2, func_data); if (JS_IsException(then_funcs[i])) { if (i == 1) JS_FreeValue(ctx, then_funcs[0]); JS_FreeValue(ctx, ctor); return JS_EXCEPTION; } } } JS_FreeValue(ctx, ctor); ret = JS_Invoke(ctx, this_val, JS_ATOM_then, 2, then_funcs); JS_FreeValue(ctx, then_funcs[0]); JS_FreeValue(ctx, then_funcs[1]); return ret; }
O1
c
js_promise_finally: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x68, %rsp movq %rdx, %r13 movq %rdi, %r15 movq (%r8), %r12 movq 0x8(%r8), %rbp movl $0x3, %r8d movq %rsi, 0x38(%rsp) xorl %ecx, %ecx callq 0x48113 movq %rax, %r14 movq %rdx, %rbx cmpl $0x6, %ebx jne 0x5761a movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000 movq %r14, %rcx andq %rax, %rcx jmp 0x5776f movq %r15, %rdi movq %r12, %rsi movq %rbp, %rdx callq 0x26e1a testl %eax, %eax movq %r14, 0x8(%rsp) movq %r13, 0x30(%rsp) je 0x57695 leaq 0x40(%rsp), %r13 movq %r14, (%r13) movq %rbx, 0x8(%r13) movq %r12, 0x10(%r13) movq %rbp, 0x18(%r13) leaq 0x18(%rsp), %r14 xorl %r12d, %r12d leaq 0x12d(%rip), %rbp # 0x57787 movq %r15, %rdi movq %rbp, %rsi movl $0x1, %edx movl %r12d, %ecx movl $0x2, %r8d movq %r13, %r9 callq 0x25146 movq %rax, -0x8(%r14) movq %rdx, (%r14) cmpl $0x6, %edx je 0x5773b incq %r12 addq $0x10, %r14 cmpq $0x1, %r12 je 0x5765a jmp 0x576cb movq %r12, 0x10(%rsp) cmpl $-0x9, %ebp jb 0x576a6 movq 0x10(%rsp), %rax incl (%rax) movq %r12, 0x10(%rsp) movq %rbp, 0x18(%rsp) movq %r12, 0x40(%rsp) cmpl $-0x9, %ebp jb 0x576c1 movq 0x40(%rsp), %rax incl (%rax) movq %r12, 0x20(%rsp) movq %rbp, 0x28(%rsp) movq 0x18(%r15), %rdi movq 0x8(%rsp), %rsi movq %rbx, %rdx callq 0x21922 leaq 0x10(%rsp), %r12 movq %r15, %rdi movq 0x38(%rsp), %rsi movq 0x30(%rsp), %rdx movl $0x80, %ecx movl $0x2, %r8d movq %r12, %r9 callq 0x33cf0 movq %rax, %r14 movq %rdx, %rbx movq (%r12), %rsi movq 0x8(%r12), %rdx movq 0x18(%r15), %rdi callq 0x21922 movq 0x10(%r12), %rsi movq 0x18(%r12), %rdx movq 0x18(%r15), %rdi callq 0x21922 movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 andq %r14, %rcx jmp 0x5776f cmpq $0x1, %r12 jne 0x57754 movq 0x10(%rsp), %rsi movq 0x18(%rsp), %rdx movq 0x18(%r15), %rdi callq 0x21922 movq 0x18(%r15), %rdi movq 0x8(%rsp), %rsi movq %rbx, %rdx callq 0x21922 movl $0x6, %ebx xorl %r14d, %r14d xorl %ecx, %ecx movl %r14d, %eax orq %rcx, %rax movq %rbx, %rdx addq $0x68, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
js_promise_finally: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 68h mov r13, rdx mov r15, rdi mov r12, [r8] mov rbp, [r8+8] mov r8d, 3 mov [rsp+98h+var_60], rsi xor ecx, ecx call JS_SpeciesConstructor mov r14, rax mov rbx, rdx cmp ebx, 6 jnz short loc_5761A mov rax, 0FFFFFFFF00000000h mov rcx, r14 and rcx, rax jmp loc_5776F loc_5761A: mov rdi, r15 mov rsi, r12 mov rdx, rbp call JS_IsFunction test eax, eax mov [rsp+98h+var_90], r14 mov [rsp+98h+var_68], r13 jz short loc_57695 lea r13, [rsp+98h+var_58] mov [r13+0], r14 mov [r13+8], rbx mov [r13+10h], r12 mov [r13+18h], rbp lea r14, [rsp+98h+var_80] xor r12d, r12d lea rbp, js_promise_then_finally_func loc_5765A: mov rdi, r15 mov rsi, rbp mov edx, 1 mov ecx, r12d mov r8d, 2 mov r9, r13 call JS_NewCFunctionData mov [r14-8], rax mov [r14], rdx cmp edx, 6 jz loc_5773B inc r12 add r14, 10h cmp r12, 1 jz short loc_5765A jmp short loc_576CB loc_57695: mov [rsp+98h+var_88], r12 cmp ebp, 0FFFFFFF7h jb short loc_576A6 mov rax, [rsp+98h+var_88] inc dword ptr [rax] loc_576A6: mov [rsp+98h+var_88], r12 mov [rsp+98h+var_80], rbp mov [rsp+98h+var_58], r12 cmp ebp, 0FFFFFFF7h jb short loc_576C1 mov rax, [rsp+98h+var_58] inc dword ptr [rax] loc_576C1: mov [rsp+98h+var_78], r12 mov [rsp+98h+var_70], rbp loc_576CB: mov rdi, [r15+18h] mov rsi, [rsp+98h+var_90] mov rdx, rbx call JS_FreeValueRT lea r12, [rsp+98h+var_88] mov rdi, r15 mov rsi, [rsp+98h+var_60] mov rdx, [rsp+98h+var_68] mov ecx, 80h mov r8d, 2 mov r9, r12 call JS_Invoke mov r14, rax mov rbx, rdx mov rsi, [r12] mov rdx, [r12+8] mov rdi, [r15+18h] call JS_FreeValueRT mov rsi, [r12+10h] mov rdx, [r12+18h] mov rdi, [r15+18h] call JS_FreeValueRT mov rcx, 0FFFFFFFF00000000h and rcx, r14 jmp short loc_5776F loc_5773B: cmp r12, 1 jnz short loc_57754 mov rsi, [rsp+98h+var_88] mov rdx, [rsp+98h+var_80] mov rdi, [r15+18h] call JS_FreeValueRT loc_57754: mov rdi, [r15+18h] mov rsi, [rsp+98h+var_90] mov rdx, rbx call JS_FreeValueRT mov ebx, 6 xor r14d, r14d xor ecx, ecx loc_5776F: mov eax, r14d or rax, rcx mov rdx, rbx add rsp, 68h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
unsigned long long js_promise_finally( long long *a1, long long a2, long long a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, long long a12, long long a13, long long a14) { _DWORD *v15; // r12 long long v16; // rbp unsigned long long v17; // r14 long long v18; // rdx long long v19; // rbx unsigned long long v20; // rcx long long *v21; // r14 long long v22; // r12 long long v23; // rdx _DWORD *v25; // [rsp+8h] [rbp-90h] _DWORD *v26; // [rsp+10h] [rbp-88h] BYREF long long v27; // [rsp+18h] [rbp-80h] BYREF _DWORD *v28; // [rsp+20h] [rbp-78h] long long v29; // [rsp+28h] [rbp-70h] long long v30; // [rsp+30h] [rbp-68h] long long v31; // [rsp+38h] [rbp-60h] _QWORD v32[11]; // [rsp+40h] [rbp-58h] BYREF v15 = *(_DWORD **)a13; v16 = *(_QWORD *)(a13 + 8); v31 = a2; v17 = (unsigned long long)JS_SpeciesConstructor((long long)a1, a2, a3, 0LL, 3LL, a14, a4, a5, a6, a7, a8, a9, a10, a11); v19 = v18; if ( (_DWORD)v18 == 6 ) { v20 = v17 & 0xFFFFFFFF00000000LL; } else { v25 = (_DWORD *)v17; v30 = a3; if ( (unsigned int)JS_IsFunction((long long)a1, (long long)v15, v16) ) { v32[0] = v17; v32[1] = v19; v32[2] = v15; v32[3] = v16; v21 = &v27; v22 = 0LL; while ( 1 ) { *(v21 - 1) = JS_NewCFunctionData(a1, (long long)js_promise_then_finally_func, 1u, v22, 2, (long long)v32); *v21 = v23; if ( (_DWORD)v23 == 6 ) break; ++v22; v21 += 2; if ( v22 != 1 ) goto LABEL_13; } if ( v22 == 1 ) JS_FreeValueRT(a1[3], v26, v27); JS_FreeValueRT(a1[3], v25, v19); LODWORD(v17) = 0; v20 = 0LL; } else { v26 = v15; if ( (unsigned int)v16 >= 0xFFFFFFF7 ) ++*v26; v26 = v15; v27 = v16; v32[0] = v15; if ( (unsigned int)v16 >= 0xFFFFFFF7 ) ++*(_DWORD *)v32[0]; v28 = v15; v29 = v16; LABEL_13: JS_FreeValueRT(a1[3], v25, v19); v17 = (unsigned long long)JS_Invoke((long long)a1, v31, v30, 0x80u, 2, (long long)&v26); JS_FreeValueRT(a1[3], v26, v27); JS_FreeValueRT(a1[3], v28, v29); v20 = v17 & 0xFFFFFFFF00000000LL; } } return v20 | (unsigned int)v17; }
js_promise_finally: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x68 MOV R13,RDX MOV R15,RDI MOV R12,qword ptr [R8] MOV RBP,qword ptr [R8 + 0x8] MOV R8D,0x3 MOV qword ptr [RSP + 0x38],RSI XOR ECX,ECX CALL 0x00148113 MOV R14,RAX MOV RBX,RDX CMP EBX,0x6 JNZ 0x0015761a MOV RAX,-0x100000000 MOV RCX,R14 AND RCX,RAX JMP 0x0015776f LAB_0015761a: MOV RDI,R15 MOV RSI,R12 MOV RDX,RBP CALL 0x00126e1a TEST EAX,EAX MOV qword ptr [RSP + 0x8],R14 MOV qword ptr [RSP + 0x30],R13 JZ 0x00157695 LEA R13,[RSP + 0x40] MOV qword ptr [R13],R14 MOV qword ptr [R13 + 0x8],RBX MOV qword ptr [R13 + 0x10],R12 MOV qword ptr [R13 + 0x18],RBP LEA R14,[RSP + 0x18] XOR R12D,R12D LEA RBP,[0x157787] LAB_0015765a: MOV RDI,R15 MOV RSI,RBP MOV EDX,0x1 MOV ECX,R12D MOV R8D,0x2 MOV R9,R13 CALL 0x00125146 MOV qword ptr [R14 + -0x8],RAX MOV qword ptr [R14],RDX CMP EDX,0x6 JZ 0x0015773b INC R12 ADD R14,0x10 CMP R12,0x1 JZ 0x0015765a JMP 0x001576cb LAB_00157695: MOV qword ptr [RSP + 0x10],R12 CMP EBP,-0x9 JC 0x001576a6 MOV RAX,qword ptr [RSP + 0x10] INC dword ptr [RAX] LAB_001576a6: MOV qword ptr [RSP + 0x10],R12 MOV qword ptr [RSP + 0x18],RBP MOV qword ptr [RSP + 0x40],R12 CMP EBP,-0x9 JC 0x001576c1 MOV RAX,qword ptr [RSP + 0x40] INC dword ptr [RAX] LAB_001576c1: MOV qword ptr [RSP + 0x20],R12 MOV qword ptr [RSP + 0x28],RBP LAB_001576cb: MOV RDI,qword ptr [R15 + 0x18] MOV RSI,qword ptr [RSP + 0x8] MOV RDX,RBX CALL 0x00121922 LEA R12,[RSP + 0x10] MOV RDI,R15 MOV RSI,qword ptr [RSP + 0x38] MOV RDX,qword ptr [RSP + 0x30] MOV ECX,0x80 MOV R8D,0x2 MOV R9,R12 CALL 0x00133cf0 MOV R14,RAX MOV RBX,RDX MOV RSI,qword ptr [R12] MOV RDX,qword ptr [R12 + 0x8] MOV RDI,qword ptr [R15 + 0x18] CALL 0x00121922 MOV RSI,qword ptr [R12 + 0x10] MOV RDX,qword ptr [R12 + 0x18] MOV RDI,qword ptr [R15 + 0x18] CALL 0x00121922 MOV RCX,-0x100000000 AND RCX,R14 JMP 0x0015776f LAB_0015773b: CMP R12,0x1 JNZ 0x00157754 MOV RSI,qword ptr [RSP + 0x10] MOV RDX,qword ptr [RSP + 0x18] MOV RDI,qword ptr [R15 + 0x18] CALL 0x00121922 LAB_00157754: MOV RDI,qword ptr [R15 + 0x18] MOV RSI,qword ptr [RSP + 0x8] MOV RDX,RBX CALL 0x00121922 MOV EBX,0x6 XOR R14D,R14D XOR ECX,ECX LAB_0015776f: MOV EAX,R14D OR RAX,RCX MOV RDX,RBX ADD RSP,0x68 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int1 [16] js_promise_finally(long param_1,int8 param_2,int8 param_3,int8 param_4, int8 *param_5) { int *piVar1; int8 uVar2; int iVar3; ulong uVar4; ulong uVar5; int **ppiVar6; int1 auVar7 [16]; int1 auVar8 [16]; int1 auVar9 [16]; int *local_88 [5]; int8 local_60; int1 local_58 [16]; int *local_48; int8 local_40; piVar1 = (int *)*param_5; uVar2 = param_5[1]; local_60 = param_2; auVar7 = JS_SpeciesConstructor(); uVar4 = auVar7._0_8_; if (auVar7._8_4_ == 6) { uVar4 = uVar4 & 0xffffffff00000000; } else { iVar3 = JS_IsFunction(param_1,piVar1,uVar2); auVar8._8_8_ = local_58._8_8_; auVar8._0_8_ = piVar1; local_58._0_8_ = piVar1; local_88[4] = (int *)param_3; if (iVar3 == 0) { local_88[0] = piVar1; local_88[1] = (int *)uVar2; local_88[2] = piVar1; local_88[3] = (int *)uVar2; if (0xfffffff6 < (uint)uVar2) { *piVar1 = *piVar1 + 1; *piVar1 = *piVar1 + 1; local_58 = auVar8; } } else { ppiVar6 = local_88 + 1; uVar5 = 0; local_48 = piVar1; local_40 = uVar2; local_58 = auVar7; do { auVar8 = JS_NewCFunctionData(param_1,js_promise_then_finally_func,1,uVar5 & 0xffffffff,2, local_58); ppiVar6[-1] = auVar8._0_8_; *ppiVar6 = auVar8._8_8_; if (auVar8._8_4_ == 6) { if (uVar5 == 1) { JS_FreeValueRT(*(int8 *)(param_1 + 0x18),local_88[0],local_88[1]); } JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar4,auVar7._8_8_); auVar7 = ZEXT816(6) << 0x40; uVar4 = 0; goto LAB_0015776f; } uVar5 = uVar5 + 1; ppiVar6 = ppiVar6 + 2; } while (uVar5 == 1); } JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar4,auVar7._8_8_); auVar7 = JS_Invoke(param_1,local_60,local_88[4],0x80,2,local_88); JS_FreeValueRT(*(int8 *)(param_1 + 0x18),local_88[0],local_88[1]); JS_FreeValueRT(*(int8 *)(param_1 + 0x18),local_88[2],local_88[3]); uVar4 = auVar7._0_8_ & 0xffffffff00000000; } LAB_0015776f: auVar9._0_8_ = auVar7._0_8_ & 0xffffffff | uVar4; auVar9._8_8_ = auVar7._8_8_; return auVar9; }
47,758
js_promise_finally
bluesky950520[P]quickjs/quickjs.c
static JSValue js_promise_finally(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { JSValue onFinally = argv[0]; JSValue ctor, ret; JSValue then_funcs[2]; JSValue func_data[2]; int i; ctor = JS_SpeciesConstructor(ctx, this_val, JS_UNDEFINED); if (JS_IsException(ctor)) return ctor; if (!JS_IsFunction(ctx, onFinally)) { then_funcs[0] = js_dup(onFinally); then_funcs[1] = js_dup(onFinally); } else { func_data[0] = ctor; func_data[1] = onFinally; for(i = 0; i < 2; i++) { then_funcs[i] = JS_NewCFunctionData(ctx, js_promise_then_finally_func, 1, i, 2, func_data); if (JS_IsException(then_funcs[i])) { if (i == 1) JS_FreeValue(ctx, then_funcs[0]); JS_FreeValue(ctx, ctor); return JS_EXCEPTION; } } } JS_FreeValue(ctx, ctor); ret = JS_Invoke(ctx, this_val, JS_ATOM_then, 2, then_funcs); JS_FreeValue(ctx, then_funcs[0]); JS_FreeValue(ctx, then_funcs[1]); return ret; }
O2
c
js_promise_finally: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x68, %rsp movq %rdx, %r13 movq %rdi, %r15 movq (%r8), %r12 movq 0x8(%r8), %rbp pushq $0x3 popq %r8 movq %rsi, 0x38(%rsp) xorl %ecx, %ecx callq 0x3f688 movq %rax, %rbx movq %rdx, %r14 cmpl $0x6, %r14d jne 0x4b451 movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000 movq %rbx, %rcx andq %rax, %rcx jmp 0x4b599 movq %r15, %rdi movq %r12, %rsi movq %rbp, %rdx callq 0x20a2d testl %eax, %eax movq %r14, 0x8(%rsp) movq %rbx, (%rsp) movq %r13, 0x30(%rsp) je 0x4b4d0 leaq 0x40(%rsp), %r13 movq %rbx, (%r13) movq %r14, 0x8(%r13) movq %r12, 0x10(%r13) movq %rbp, 0x18(%r13) leaq 0x18(%rsp), %rbp xorl %r12d, %r12d pushq $0x1 popq %r14 pushq $0x2 popq %rbx cmpq $0x2, %r12 je 0x4b530 movq %r15, %rdi leaq 0x107(%rip), %rsi # 0x4b5b0 movl %r14d, %edx movl %r12d, %ecx movl %ebx, %r8d movq %r13, %r9 callq 0x1ef6a movq %rax, -0x8(%rbp) movq %rdx, (%rbp) cmpl $0x6, %edx je 0x4b4e9 incq %r12 addq $0x10, %rbp jmp 0x4b495 cmpl $-0xa, %ebp jbe 0x4b51c incl (%r12) movq %r12, 0x10(%rsp) movq %rbp, 0x18(%rsp) incl (%r12) jmp 0x4b526 cmpq $0x1, %r12 jne 0x4b501 movq 0x10(%rsp), %rsi movq 0x18(%rsp), %rdx movq %r15, %rdi callq 0x1bbce movq %r15, %rdi movq (%rsp), %rsi movq 0x8(%rsp), %rdx callq 0x1bbce pushq $0x6 popq %r14 xorl %ebx, %ebx xorl %ecx, %ecx jmp 0x4b599 movq %r12, 0x10(%rsp) movq %rbp, 0x18(%rsp) movq %r12, 0x20(%rsp) movq %rbp, 0x28(%rsp) movq %r15, %rdi movq (%rsp), %rsi movq 0x8(%rsp), %rdx callq 0x1bbce pushq $0x2 popq %r8 leaq 0x10(%rsp), %rbx movq %r15, %rdi movq 0x38(%rsp), %rsi movq 0x30(%rsp), %rdx movl $0x80, %ecx movq %rbx, %r9 callq 0x2bfbb movq %rax, %r12 movq %rdx, %r14 movq (%rbx), %rsi movq 0x8(%rbx), %rdx movq %r15, %rdi callq 0x1bbce movq 0x10(%rbx), %rsi movq 0x18(%rbx), %rdx movq %r12, %rbx movq %r15, %rdi callq 0x1bbce movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 andq %r12, %rcx movl %ebx, %eax orq %rcx, %rax movq %r14, %rdx addq $0x68, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
js_promise_finally: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 68h mov r13, rdx mov r15, rdi mov r12, [r8] mov rbp, [r8+8] push 3 pop r8 mov [rsp+98h+var_60], rsi xor ecx, ecx call JS_SpeciesConstructor mov rbx, rax mov r14, rdx cmp r14d, 6 jnz short loc_4B451 mov rax, 0FFFFFFFF00000000h mov rcx, rbx and rcx, rax jmp loc_4B599 loc_4B451: mov rdi, r15 mov rsi, r12 mov rdx, rbp call JS_IsFunction test eax, eax mov [rsp+98h+var_90], r14 mov [rsp+98h+var_98], rbx mov [rsp+98h+var_68], r13 jz short loc_4B4D0 lea r13, [rsp+98h+var_58] mov [r13+0], rbx mov [r13+8], r14 mov [r13+10h], r12 mov [r13+18h], rbp lea rbp, [rsp+98h+var_80] xor r12d, r12d push 1 pop r14 push 2 pop rbx loc_4B495: cmp r12, 2 jz loc_4B530 mov rdi, r15 lea rsi, js_promise_then_finally_func mov edx, r14d mov ecx, r12d mov r8d, ebx mov r9, r13 call JS_NewCFunctionData mov [rbp-8], rax mov [rbp+0], rdx cmp edx, 6 jz short loc_4B4E9 inc r12 add rbp, 10h jmp short loc_4B495 loc_4B4D0: cmp ebp, 0FFFFFFF6h jbe short loc_4B51C inc dword ptr [r12] mov [rsp+98h+var_88], r12 mov [rsp+98h+var_80], rbp inc dword ptr [r12] jmp short loc_4B526 loc_4B4E9: cmp r12, 1 jnz short loc_4B501 mov rsi, [rsp+98h+var_88] mov rdx, [rsp+98h+var_80] mov rdi, r15 call JS_FreeValue loc_4B501: mov rdi, r15 mov rsi, [rsp+98h+var_98] mov rdx, [rsp+98h+var_90] call JS_FreeValue push 6 pop r14 xor ebx, ebx xor ecx, ecx jmp short loc_4B599 loc_4B51C: mov [rsp+98h+var_88], r12 mov [rsp+98h+var_80], rbp loc_4B526: mov [rsp+98h+var_78], r12 mov [rsp+98h+var_70], rbp loc_4B530: mov rdi, r15 mov rsi, [rsp+98h+var_98] mov rdx, [rsp+98h+var_90] call JS_FreeValue push 2 pop r8 lea rbx, [rsp+98h+var_88] mov rdi, r15 mov rsi, [rsp+98h+var_60] mov rdx, [rsp+98h+var_68] mov ecx, 80h mov r9, rbx call JS_Invoke mov r12, rax mov r14, rdx mov rsi, [rbx] mov rdx, [rbx+8] mov rdi, r15 call JS_FreeValue mov rsi, [rbx+10h] mov rdx, [rbx+18h] mov rbx, r12 mov rdi, r15 call JS_FreeValue mov rcx, 0FFFFFFFF00000000h and rcx, r12 loc_4B599: mov eax, ebx or rax, rcx mov rdx, r14 add rsp, 68h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
unsigned long long js_promise_finally( long long a1, long long a2, long long a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, long long a12, long long a13, long long a14) { _DWORD *v15; // r12 long long v16; // rbp long long v17; // rbx long long v18; // rdx long long v19; // r14 unsigned long long v20; // rcx long long *v21; // rbp long long i; // r12 long long v23; // rdx long long v24; // r12 _DWORD *v26; // [rsp+10h] [rbp-88h] BYREF long long v27; // [rsp+18h] [rbp-80h] BYREF _DWORD *v28; // [rsp+20h] [rbp-78h] long long v29; // [rsp+28h] [rbp-70h] long long v30; // [rsp+30h] [rbp-68h] long long v31; // [rsp+38h] [rbp-60h] _QWORD v32[11]; // [rsp+40h] [rbp-58h] BYREF v15 = *(_DWORD **)a13; v16 = *(_QWORD *)(a13 + 8); v31 = a2; v17 = (long long)JS_SpeciesConstructor(a1, a2, a3, 0LL, 3LL, a14, a4, a5, a6, a7, a8, a9, a10, a11); v19 = v18; if ( (_DWORD)v18 == 6 ) { v20 = v17 & 0xFFFFFFFF00000000LL; } else { v30 = a3; if ( (unsigned int)JS_IsFunction(a1, (long long)v15, v16) ) { v32[0] = v17; v32[1] = v19; v32[2] = v15; v32[3] = v16; v21 = &v27; for ( i = 0LL; i != 2; ++i ) { *(v21 - 1) = JS_NewCFunctionData(a1, (long long)js_promise_then_finally_func, 1u, i, 2u, (long long)v32); *v21 = v23; if ( (_DWORD)v23 == 6 ) { if ( i == 1 ) JS_FreeValue(a1, (long long)v26, v27); JS_FreeValue(a1, v17, v19); LODWORD(v17) = 0; v20 = 0LL; return v20 | (unsigned int)v17; } v21 += 2; } } else { if ( (unsigned int)v16 <= 0xFFFFFFF6 ) { v26 = v15; v27 = v16; } else { ++*v15; v26 = v15; v27 = v16; ++*v15; } v28 = v15; v29 = v16; } JS_FreeValue(a1, v17, v19); v24 = JS_Invoke(a1, v31, v30, 128, 2, (long long)&v26); JS_FreeValue(a1, (long long)v26, v27); LODWORD(v17) = v24; JS_FreeValue(a1, (long long)v28, v29); v20 = v24 & 0xFFFFFFFF00000000LL; } return v20 | (unsigned int)v17; }
js_promise_finally: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x68 MOV R13,RDX MOV R15,RDI MOV R12,qword ptr [R8] MOV RBP,qword ptr [R8 + 0x8] PUSH 0x3 POP R8 MOV qword ptr [RSP + 0x38],RSI XOR ECX,ECX CALL 0x0013f688 MOV RBX,RAX MOV R14,RDX CMP R14D,0x6 JNZ 0x0014b451 MOV RAX,-0x100000000 MOV RCX,RBX AND RCX,RAX JMP 0x0014b599 LAB_0014b451: MOV RDI,R15 MOV RSI,R12 MOV RDX,RBP CALL 0x00120a2d TEST EAX,EAX MOV qword ptr [RSP + 0x8],R14 MOV qword ptr [RSP],RBX MOV qword ptr [RSP + 0x30],R13 JZ 0x0014b4d0 LEA R13,[RSP + 0x40] MOV qword ptr [R13],RBX MOV qword ptr [R13 + 0x8],R14 MOV qword ptr [R13 + 0x10],R12 MOV qword ptr [R13 + 0x18],RBP LEA RBP,[RSP + 0x18] XOR R12D,R12D PUSH 0x1 POP R14 PUSH 0x2 POP RBX LAB_0014b495: CMP R12,0x2 JZ 0x0014b530 MOV RDI,R15 LEA RSI,[0x14b5b0] MOV EDX,R14D MOV ECX,R12D MOV R8D,EBX MOV R9,R13 CALL 0x0011ef6a MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP],RDX CMP EDX,0x6 JZ 0x0014b4e9 INC R12 ADD RBP,0x10 JMP 0x0014b495 LAB_0014b4d0: CMP EBP,-0xa JBE 0x0014b51c INC dword ptr [R12] MOV qword ptr [RSP + 0x10],R12 MOV qword ptr [RSP + 0x18],RBP INC dword ptr [R12] JMP 0x0014b526 LAB_0014b4e9: CMP R12,0x1 JNZ 0x0014b501 MOV RSI,qword ptr [RSP + 0x10] MOV RDX,qword ptr [RSP + 0x18] MOV RDI,R15 CALL 0x0011bbce LAB_0014b501: MOV RDI,R15 MOV RSI,qword ptr [RSP] MOV RDX,qword ptr [RSP + 0x8] CALL 0x0011bbce PUSH 0x6 POP R14 XOR EBX,EBX XOR ECX,ECX JMP 0x0014b599 LAB_0014b51c: MOV qword ptr [RSP + 0x10],R12 MOV qword ptr [RSP + 0x18],RBP LAB_0014b526: MOV qword ptr [RSP + 0x20],R12 MOV qword ptr [RSP + 0x28],RBP LAB_0014b530: MOV RDI,R15 MOV RSI,qword ptr [RSP] MOV RDX,qword ptr [RSP + 0x8] CALL 0x0011bbce PUSH 0x2 POP R8 LEA RBX,[RSP + 0x10] MOV RDI,R15 MOV RSI,qword ptr [RSP + 0x38] MOV RDX,qword ptr [RSP + 0x30] MOV ECX,0x80 MOV R9,RBX CALL 0x0012bfbb MOV R12,RAX MOV R14,RDX MOV RSI,qword ptr [RBX] MOV RDX,qword ptr [RBX + 0x8] MOV RDI,R15 CALL 0x0011bbce MOV RSI,qword ptr [RBX + 0x10] MOV RDX,qword ptr [RBX + 0x18] MOV RBX,R12 MOV RDI,R15 CALL 0x0011bbce MOV RCX,-0x100000000 AND RCX,R12 LAB_0014b599: MOV EAX,EBX OR RAX,RCX MOV RDX,R14 ADD RSP,0x68 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int1 [16] js_promise_finally(int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 *param_5) { int *piVar1; int8 uVar2; int iVar3; ulong uVar4; int **ppiVar5; ulong uVar6; int1 auVar7 [16]; int1 auVar8 [16]; int1 auVar9 [16]; int *local_88 [5]; int8 local_60; int1 local_58 [16]; int *local_48; int8 local_40; piVar1 = (int *)*param_5; uVar2 = param_5[1]; local_60 = param_2; auVar7 = JS_SpeciesConstructor(); uVar4 = auVar7._0_8_; if (auVar7._8_4_ == 6) { uVar4 = uVar4 & 0xffffffff00000000; } else { iVar3 = JS_IsFunction(param_1,piVar1,uVar2); auVar8._8_8_ = local_58._8_8_; auVar8._0_8_ = local_58._0_8_; local_88[4] = (int *)param_3; if (iVar3 == 0) { local_88[0] = piVar1; local_88[1] = (int *)uVar2; local_88[2] = piVar1; local_88[3] = (int *)uVar2; if (0xfffffff6 < (uint)uVar2) { *piVar1 = *piVar1 + 1; *piVar1 = *piVar1 + 1; local_58 = auVar8; } } else { ppiVar5 = local_88 + 1; local_48 = piVar1; local_40 = uVar2; local_58 = auVar7; for (uVar6 = 0; uVar6 != 2; uVar6 = uVar6 + 1) { auVar8 = JS_NewCFunctionData(param_1,js_promise_then_finally_func,1,uVar6 & 0xffffffff,2, local_58); ppiVar5[-1] = auVar8._0_8_; *ppiVar5 = auVar8._8_8_; if (auVar8._8_4_ == 6) { if (uVar6 == 1) { JS_FreeValue(param_1,local_88[0],local_88[1]); } JS_FreeValue(param_1,uVar4,auVar7._8_8_); auVar7 = ZEXT816(6) << 0x40; uVar4 = 0; goto LAB_0014b599; } ppiVar5 = ppiVar5 + 2; } } JS_FreeValue(param_1,uVar4,auVar7._8_8_); auVar7 = JS_Invoke(param_1,local_60,local_88[4],0x80,2,local_88); JS_FreeValue(param_1,local_88[0],local_88[1]); JS_FreeValue(param_1,local_88[2],local_88[3]); uVar4 = auVar7._0_8_ & 0xffffffff00000000; } LAB_0014b599: auVar9._0_8_ = auVar7._0_8_ & 0xffffffff | uVar4; auVar9._8_8_ = auVar7._8_8_; return auVar9; }
47,759
my_getcputime
eloqsql/mysys/my_getsystime.c
ulonglong my_getcputime() { #ifdef CLOCK_THREAD_CPUTIME_ID struct timespec tp; if (clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tp)) return 0; return (ulonglong)tp.tv_sec*10000000+(ulonglong)tp.tv_nsec/100; #elif defined(__NR_clock_gettime) struct timespec tp; if (syscall(__NR_clock_gettime, CLOCK_THREAD_CPUTIME_ID, &tp)) return 0; return (ulonglong)tp.tv_sec*10000000+(ulonglong)tp.tv_nsec/100; #endif /* CLOCK_THREAD_CPUTIME_ID */ return 0; }
O0
c
my_getcputime: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x3, %edi leaq -0x18(%rbp), %rsi callq 0x3b3f0 cmpl $0x0, %eax je 0xc23e5 movq $0x0, -0x8(%rbp) jmp 0xc240d imulq $0x989680, -0x18(%rbp), %rax # imm = 0x989680 movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rax movl $0x64, %ecx xorl %edx, %edx divq %rcx movq %rax, %rcx movq -0x20(%rbp), %rax addq %rcx, %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x20, %rsp popq %rbp retq nopw (%rax,%rax)
my_getcputime: push rbp mov rbp, rsp sub rsp, 20h mov edi, 3 lea rsi, [rbp+var_18] call _clock_gettime cmp eax, 0 jz short loc_C23E5 mov [rbp+var_8], 0 jmp short loc_C240D loc_C23E5: imul rax, [rbp+var_18], 989680h mov [rbp+var_20], rax mov rax, [rbp+var_10] mov ecx, 64h ; 'd' xor edx, edx div rcx mov rcx, rax mov rax, [rbp+var_20] add rax, rcx mov [rbp+var_8], rax loc_C240D: mov rax, [rbp+var_8] add rsp, 20h pop rbp retn
unsigned long long my_getcputime() { long long v1; // [rsp+8h] [rbp-18h] BYREF unsigned long long v2; // [rsp+10h] [rbp-10h] if ( (unsigned int)clock_gettime(3LL, &v1) ) return 0LL; else return v2 / 0x64 + 10000000 * v1; }
my_getcputime: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV EDI,0x3 LEA RSI,[RBP + -0x18] CALL 0x0013b3f0 CMP EAX,0x0 JZ 0x001c23e5 MOV qword ptr [RBP + -0x8],0x0 JMP 0x001c240d LAB_001c23e5: IMUL RAX,qword ptr [RBP + -0x18],0x989680 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x10] MOV ECX,0x64 XOR EDX,EDX DIV RCX MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x20] ADD RAX,RCX MOV qword ptr [RBP + -0x8],RAX LAB_001c240d: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x20 POP RBP RET
long my_getcputime(void) { int iVar1; timespec local_20; long local_10; iVar1 = clock_gettime(3,&local_20); if (iVar1 == 0) { local_10 = local_20.tv_sec * 10000000 + (ulong)local_20.tv_nsec / 100; } else { local_10 = 0; } return local_10; }
47,760
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>>::iteration_proxy_value(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>, unsigned long)
monkey531[P]llama/common/json.hpp
explicit iteration_proxy_value(IteratorType it, std::size_t array_index_ = 0) noexcept(std::is_nothrow_move_constructible<IteratorType>::value && std::is_nothrow_default_constructible<string_type>::value) : anchor(std::move(it)) , array_index(array_index_) {}
O2
cpp
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>>::iteration_proxy_value(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>, unsigned long): pushq %rbx subq $0x10, %rsp movq %rdi, %rbx movups (%rsi), %xmm0 movups 0x10(%rsi), %xmm1 movups %xmm1, 0x10(%rdi) movups %xmm0, (%rdi) movq %rdx, 0x20(%rdi) andq $0x0, 0x28(%rdi) addq $0x30, %rdi leaq 0x30b2d(%rip), %rsi # 0xb94e7 leaq 0xf(%rsp), %rdx callq 0x29c20 leaq 0x60(%rbx), %rax movq %rax, 0x50(%rbx) andq $0x0, 0x58(%rbx) movb $0x0, 0x60(%rbx) addq $0x10, %rsp popq %rbx retq movq %rax, %rdi callq 0x2a647 nop
_ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEEC2ESI_m: push rbx sub rsp, 10h mov rbx, rdi movups xmm0, xmmword ptr [rsi] movups xmm1, xmmword ptr [rsi+10h] movups xmmword ptr [rdi+10h], xmm1 movups xmmword ptr [rdi], xmm0 mov [rdi+20h], rdx and qword ptr [rdi+28h], 0 add rdi, 30h ; '0' lea rsi, aMinExp0+0Ah; "0" lea rdx, [rsp+18h+var_9] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rax, [rbx+60h] mov [rbx+50h], rax and qword ptr [rbx+58h], 0 mov byte ptr [rbx+60h], 0 add rsp, 10h pop rbx retn mov rdi, rax call __clang_call_terminate
long long nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::iteration_proxy_value( long long a1, __int128 *a2, long long a3) { __int128 v3; // xmm0 long long result; // rax v3 = *a2; *(_OWORD *)(a1 + 16) = a2[1]; *(_OWORD *)a1 = v3; *(_QWORD *)(a1 + 32) = a3; *(_QWORD *)(a1 + 40) = 0LL; std::string::basic_string<std::allocator<char>>((_QWORD *)(a1 + 48), (long long)"0"); result = a1 + 96; *(_QWORD *)(a1 + 80) = a1 + 96; *(_QWORD *)(a1 + 88) = 0LL; *(_BYTE *)(a1 + 96) = 0; return result; }
iteration_proxy_value: PUSH RBX SUB RSP,0x10 MOV RBX,RDI MOVUPS XMM0,xmmword ptr [RSI] MOVUPS XMM1,xmmword ptr [RSI + 0x10] MOVUPS xmmword ptr [RDI + 0x10],XMM1 MOVUPS xmmword ptr [RDI],XMM0 MOV qword ptr [RDI + 0x20],RDX AND qword ptr [RDI + 0x28],0x0 ADD RDI,0x30 LAB_001889b3: LEA RSI,[0x1b94e7] LEA RDX,[RSP + 0xf] CALL 0x00129c20 LEA RAX,[RBX + 0x60] MOV qword ptr [RBX + 0x50],RAX AND qword ptr [RBX + 0x58],0x0 MOV byte ptr [RBX + 0x60],0x0 ADD RSP,0x10 POP RBX RET
/* nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const> >::iteration_proxy_value(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const>, unsigned long) */ void __thiscall nlohmann::json_abi_v3_11_3::detail:: iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>> ::iteration_proxy_value (iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>> *this,int8 *param_2,int8 param_3) { int8 uVar1; int8 uVar2; int8 uVar3; allocator local_9; uVar1 = *param_2; uVar2 = param_2[1]; uVar3 = param_2[3]; *(int8 *)(this + 0x10) = param_2[2]; *(int8 *)(this + 0x18) = uVar3; *(int8 *)this = uVar1; *(int8 *)(this + 8) = uVar2; *(int8 *)(this + 0x20) = param_3; *(int8 *)(this + 0x28) = 0; /* try { // try from 001889b3 to 001889c3 has its CatchHandler @ 001889db */ std::__cxx11::string::string<std::allocator<char>>((string *)(this + 0x30),"0",&local_9); *(iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>> **)(this + 0x50) = this + 0x60; *(int8 *)(this + 0x58) = 0; this[0x60] = (iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>> )0x0; return; }
47,761
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>>::iteration_proxy_value(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>, unsigned long)
monkey531[P]llama/common/json.hpp
explicit iteration_proxy_value(IteratorType it, std::size_t array_index_ = 0) noexcept(std::is_nothrow_move_constructible<IteratorType>::value && std::is_nothrow_default_constructible<string_type>::value) : anchor(std::move(it)) , array_index(array_index_) {}
O3
cpp
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>>::iteration_proxy_value(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const>, unsigned long): pushq %rbx movq %rdi, %rbx movups (%rsi), %xmm0 movups 0x10(%rsi), %xmm1 movups %xmm1, 0x10(%rdi) movups %xmm0, (%rdi) movq %rdx, 0x20(%rdi) movq $0x0, 0x28(%rdi) addq $0x30, %rdi leaq 0x40(%rbx), %rax movq %rax, 0x30(%rbx) leaq 0x4457c(%rip), %rsi # 0xf64bb leaq 0x44576(%rip), %rdx # 0xf64bc callq 0x2695a leaq 0x60(%rbx), %rax movq %rax, 0x50(%rbx) movq $0x0, 0x58(%rbx) movb $0x0, 0x60(%rbx) popq %rbx retq movq %rax, %rdi callq 0x26123
_ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEEC2ESH_m: push rbx mov rbx, rdi movups xmm0, xmmword ptr [rsi] movups xmm1, xmmword ptr [rsi+10h] movups xmmword ptr [rdi+10h], xmm1 movups xmmword ptr [rdi], xmm0 mov [rdi+20h], rdx mov qword ptr [rdi+28h], 0 add rdi, 30h ; '0' lea rax, [rbx+40h] mov [rbx+30h], rax lea rsi, aMinExp0+0Ah; "0" lea rdx, aMinExp0+0Bh; "" call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rax, [rbx+60h] mov [rbx+50h], rax mov qword ptr [rbx+58h], 0 mov byte ptr [rbx+60h], 0 pop rbx retn mov rdi, rax call __clang_call_terminate
long long nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::iteration_proxy_value( long long a1, __int128 *a2, long long a3) { __int128 v3; // xmm0 long long result; // rax v3 = *a2; *(_OWORD *)(a1 + 16) = a2[1]; *(_OWORD *)a1 = v3; *(_QWORD *)(a1 + 32) = a3; *(_QWORD *)(a1 + 40) = 0LL; *(_QWORD *)(a1 + 48) = a1 + 64; std::string::_M_construct<char const*>(a1 + 48, "0", (long long)""); result = a1 + 96; *(_QWORD *)(a1 + 80) = a1 + 96; *(_QWORD *)(a1 + 88) = 0LL; *(_BYTE *)(a1 + 96) = 0; return result; }
iteration_proxy_value: PUSH RBX MOV RBX,RDI MOVUPS XMM0,xmmword ptr [RSI] MOVUPS XMM1,xmmword ptr [RSI + 0x10] MOVUPS xmmword ptr [RDI + 0x10],XMM1 MOVUPS xmmword ptr [RDI],XMM0 MOV qword ptr [RDI + 0x20],RDX MOV qword ptr [RDI + 0x28],0x0 ADD RDI,0x30 LEA RAX,[RBX + 0x40] MOV qword ptr [RBX + 0x30],RAX LAB_001b1f38: LEA RSI,[0x1f64bb] LEA RDX,[0x1f64bc] CALL 0x0012695a LEA RAX,[RBX + 0x60] MOV qword ptr [RBX + 0x50],RAX MOV qword ptr [RBX + 0x58],0x0 MOV byte ptr [RBX + 0x60],0x0 POP RBX RET
/* nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> > >::iteration_proxy_value(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >, unsigned long) */ void __thiscall nlohmann::json_abi_v3_11_3::detail:: iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::iteration_proxy_value (iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *this,int4 *param_2,int8 param_3) { int4 uVar1; int4 uVar2; int4 uVar3; int4 uVar4; int4 uVar5; int4 uVar6; int4 uVar7; uVar1 = *param_2; uVar2 = param_2[1]; uVar3 = param_2[2]; uVar4 = param_2[3]; uVar5 = param_2[5]; uVar6 = param_2[6]; uVar7 = param_2[7]; *(int4 *)(this + 0x10) = param_2[4]; *(int4 *)(this + 0x14) = uVar5; *(int4 *)(this + 0x18) = uVar6; *(int4 *)(this + 0x1c) = uVar7; *(int4 *)this = uVar1; *(int4 *)(this + 4) = uVar2; *(int4 *)(this + 8) = uVar3; *(int4 *)(this + 0xc) = uVar4; *(int8 *)(this + 0x20) = param_3; *(int8 *)(this + 0x28) = 0; *(iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)(this + 0x30) = this + 0x40; /* try { // try from 001b1f38 to 001b1f4a has its CatchHandler @ 001b1f61 */ std::__cxx11::string::_M_construct<char_const*>(this + 0x30,"0",""); *(iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)(this + 0x50) = this + 0x60; *(int8 *)(this + 0x58) = 0; this[0x60] = (iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> )0x0; return; }
47,762
UCIAdapter::processCommand(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
Razamindset[P]pawnstar-chess-engine/src/main.cpp
void processCommand(const std::string& cmd) { std::istringstream iss(cmd); std::string token; iss >> token; if (token == "uci") { handleUCI(); } else if (token == "isready") { std::cout << "readyok" << std::endl; } else if (token == "position") { handlePosition(iss); } else if (token == "go") { handleGo(); } else if (token == "stop") { handleStop(); } else if (token == "quit") { exit(0); } else if (token == "ucinewgame") { engine->initilizeEngine(); } else if (token == "setoption") { handleSetOption(iss); } }
O3
cpp
UCIAdapter::processCommand(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %r15 pushq %r14 pushq %rbx subq $0x1a0, %rsp # imm = 0x1A0 movq %rdi, %rbx leaq 0x20(%rsp), %r14 movq %r14, %rdi movl $0x8, %edx callq 0x2320 leaq 0x10(%rsp), %r15 movq %r15, -0x10(%r15) movq $0x0, -0x8(%r15) movb $0x0, (%r15) movq %rsp, %rsi movq %r14, %rdi callq 0x2270 leaq 0x7bfa(%rip), %rsi # 0xcaf4 movq %rsp, %rdi callq 0x2060 testl %eax, %eax je 0x4fba leaq 0x7be7(%rip), %rsi # 0xcaf8 movq %rsp, %rdi callq 0x2060 testl %eax, %eax je 0x4fc4 leaq 0x791a(%rip), %rsi # 0xc842 movq %rsp, %rdi callq 0x2060 testl %eax, %eax je 0x500c leaq 0x7bc9(%rip), %rsi # 0xcb08 movq %rsp, %rdi callq 0x2060 testl %eax, %eax je 0x501b leaq 0x7bb5(%rip), %rsi # 0xcb0b movq %rsp, %rdi callq 0x2060 testl %eax, %eax je 0x5025 leaq 0x7ba3(%rip), %rsi # 0xcb10 movq %rsp, %rdi callq 0x2060 testl %eax, %eax je 0x5078 leaq 0x7b91(%rip), %rsi # 0xcb15 movq %rsp, %rdi callq 0x2060 testl %eax, %eax je 0x502f leaq 0x7b85(%rip), %rsi # 0xcb20 movq %rsp, %rdi callq 0x2060 testl %eax, %eax jne 0x5037 leaq 0x20(%rsp), %rsi movq %rbx, %rdi callq 0x56e6 jmp 0x5037 movq %rbx, %rdi callq 0x50be jmp 0x5037 movq 0xeffd(%rip), %rbx # 0x13fc8 leaq 0x7b2e(%rip), %rsi # 0xcb00 movl $0x7, %edx movq %rbx, %rdi callq 0x2240 movq (%rbx), %rax addq -0x18(%rax), %rbx movq %rbx, %rdi movl $0xa, %esi callq 0x21f0 movsbl %al, %esi movq 0xefcb(%rip), %rdi # 0x13fc8 callq 0x2030 movq %rax, %rdi callq 0x2150 jmp 0x5037 leaq 0x20(%rsp), %rsi movq %rbx, %rdi callq 0x5178 jmp 0x5037 movq %rbx, %rdi callq 0x557e jmp 0x5037 movq %rbx, %rdi callq 0x5632 jmp 0x5037 movq (%rbx), %rdi callq 0x5a90 movq (%rsp), %rdi cmpq %r15, %rdi je 0x504d movq 0x10(%rsp), %rsi incq %rsi callq 0x2210 movq 0xef64(%rip), %rsi # 0x13fb8 leaq 0x20(%rsp), %rdi callq 0x22a0 leaq 0x98(%rsp), %rdi callq 0x2080 addq $0x1a0, %rsp # imm = 0x1A0 popq %rbx popq %r14 popq %r15 retq xorl %edi, %edi callq 0x2260 movq %rax, %rbx movq (%rsp), %rdi cmpq %r15, %rdi je 0x5098 movq 0x10(%rsp), %rsi incq %rsi callq 0x2210 movq 0xef19(%rip), %rsi # 0x13fb8 leaq 0x20(%rsp), %rdi callq 0x22a0 leaq 0x98(%rsp), %rdi callq 0x2080 movq %rbx, %rdi callq 0x2350
_ZN10UCIAdapter14processCommandERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push r15 push r14 push rbx sub rsp, 1A0h mov rbx, rdi lea r14, [rsp+1B8h+var_198] mov rdi, r14 mov edx, 8 call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode; std::istringstream::basic_istringstream(std::string const&,std::_Ios_Openmode) lea r15, [rsp+1B8h+var_1A8] mov [r15-10h], r15 mov qword ptr [r15-8], 0 mov byte ptr [r15], 0 mov rsi, rsp mov rdi, r14 call __ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator>><char>(std::istream &,std::string &) lea rsi, aUci; "uci" mov rdi, rsp call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz loc_4FBA lea rsi, aIsready; "isready" mov rdi, rsp call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz loc_4FC4 lea rsi, aInvalidPositio+8; "position" mov rdi, rsp call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz loc_500C lea rsi, aGo; "go" mov rdi, rsp call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz loc_501B lea rsi, aStop; "stop" mov rdi, rsp call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz loc_5025 lea rsi, aQuit; "quit" mov rdi, rsp call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz loc_5078 lea rsi, aUcinewgame; "ucinewgame" mov rdi, rsp call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz loc_502F lea rsi, aSetoption; "setoption" mov rdi, rsp call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jnz loc_5037 lea rsi, [rsp+1B8h+var_198]; int mov rdi, rbx; int call _ZN10UCIAdapter15handleSetOptionERNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE; UCIAdapter::handleSetOption(std::istringstream &) jmp short loc_5037 loc_4FBA: mov rdi, rbx; this call _ZN10UCIAdapter9handleUCIEv; UCIAdapter::handleUCI(void) jmp short loc_5037 loc_4FC4: mov rbx, cs:_ZSt4cout_ptr lea rsi, aReadyok; "readyok" mov edx, 7 mov rdi, rbx call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rax, [rbx] add rbx, [rax-18h] mov rdi, rbx mov esi, 0Ah call __ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc; std::ios::widen(char) movsx esi, al; char mov rdi, cs:_ZSt4cout_ptr; this call __ZNSo3putEc; std::ostream::put(char) mov rdi, rax; this call __ZNSo5flushEv; std::ostream::flush(void) jmp short loc_5037 loc_500C: lea rsi, [rsp+1B8h+var_198]; int mov rdi, rbx; int call _ZN10UCIAdapter14handlePositionERNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE; UCIAdapter::handlePosition(std::istringstream &) jmp short loc_5037 loc_501B: mov rdi, rbx; this call _ZN10UCIAdapter8handleGoEv; UCIAdapter::handleGo(void) jmp short loc_5037 loc_5025: mov rdi, rbx; this call _ZN10UCIAdapter10handleStopEv; UCIAdapter::handleStop(void) jmp short loc_5037 loc_502F: mov rdi, [rbx]; this call _ZN6Engine15initilizeEngineEv; Engine::initilizeEngine(void) loc_5037: mov rdi, [rsp+1B8h+var_1B8]; void * cmp rdi, r15 jz short loc_504D mov rsi, [rsp+1B8h+var_1A8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_504D: mov rsi, cs:_ZTTNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+1B8h+var_198] call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED2Ev; std::istringstream::~istringstream() lea rdi, [rsp+1B8h+var_120]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() add rsp, 1A0h pop rbx pop r14 pop r15 retn loc_5078: xor edi, edi call _exit mov rbx, rax mov rdi, [rsp+1B8h+var_1B8]; void * cmp rdi, r15 jz short loc_5098 mov rsi, [rsp+1B8h+var_1A8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5098: mov rsi, cs:_ZTTNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+1B8h+var_198] call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED2Ev; std::istringstream::~istringstream() lea rdi, [rsp+1B8h+var_120]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() mov rdi, rbx call __Unwind_Resume
void UCIAdapter::processCommand(UCIAdapter *this, long long a2) { int v2; // edx int v3; // ecx int v4; // r8d int v5; // r9d int v6; // edx int v7; // ecx int v8; // r8d int v9; // r9d char v10; // al std::ostream *v11; // rax void *v12; // [rsp+0h] [rbp-1B8h] BYREF long long v13; // [rsp+8h] [rbp-1B0h] long long v14; // [rsp+10h] [rbp-1A8h] BYREF void *v15; // [rsp+18h] [rbp-1A0h] void *v16; // [rsp+20h] [rbp-198h] BYREF long long v17; // [rsp+28h] [rbp-190h] long long v18; // [rsp+30h] [rbp-188h] int v19; // [rsp+38h] [rbp-180h] void *v20; // [rsp+40h] [rbp-178h] int v21; // [rsp+48h] [rbp-170h] long long v22; // [rsp+50h] [rbp-168h] int v23; // [rsp+58h] [rbp-160h] void *v24; // [rsp+60h] [rbp-158h] int v25; // [rsp+68h] [rbp-150h] long long v26; // [rsp+70h] [rbp-148h] int v27; // [rsp+78h] [rbp-140h] void *v28; // [rsp+80h] [rbp-138h] int v29; // [rsp+88h] [rbp-130h] long long v30; // [rsp+90h] [rbp-128h] _BYTE v31[288]; // [rsp+98h] [rbp-120h] BYREF std::istringstream::basic_istringstream(&v16, a2, 8LL); v12 = &v14; v13 = 0LL; LOBYTE(v14) = 0; std::operator>><char>(&v16, &v12); if ( !(unsigned int)std::string::compare(&v12, "uci") ) { UCIAdapter::handleUCI(this); } else if ( !(unsigned int)std::string::compare(&v12, "isready") ) { std::__ostream_insert<char,std::char_traits<char>>(&std::cout, "readyok", 7LL); v10 = std::ios::widen((char *)&std::cout + *(_QWORD *)(std::cout - 24LL), 10LL); v11 = (std::ostream *)std::ostream::put((std::ostream *)&std::cout, v10); std::ostream::flush(v11); } else if ( !(unsigned int)std::string::compare(&v12, "position") ) { UCIAdapter::handlePosition( (int)this, (int)&v16, v2, v3, v4, v5, (int)v12, v13, v14, v15, (int)v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30); } else if ( !(unsigned int)std::string::compare(&v12, "go") ) { UCIAdapter::handleGo(this); } else if ( !(unsigned int)std::string::compare(&v12, "stop") ) { UCIAdapter::handleStop(this); } else { if ( !(unsigned int)std::string::compare(&v12, "quit") ) exit(0LL); if ( !(unsigned int)std::string::compare(&v12, "ucinewgame") ) { Engine::initilizeEngine(*(Engine **)this); } else if ( !(unsigned int)std::string::compare(&v12, "setoption") ) { UCIAdapter::handleSetOption( (int)this, (int)&v16, v6, v7, v8, v9, v12, v13, v14, (int)v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30); } } if ( v12 != &v14 ) operator delete(v12, v14 + 1); std::istringstream::~istringstream(&v16, &`VTT for'std::istringstream); std::ios_base::~ios_base((std::ios_base *)v31); }
processCommand: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x1a0 MOV RBX,RDI LEA R14,[RSP + 0x20] MOV RDI,R14 MOV EDX,0x8 CALL 0x00102320 LEA R15,[RSP + 0x10] MOV qword ptr [R15 + -0x10],R15 MOV qword ptr [R15 + -0x8],0x0 MOV byte ptr [R15],0x0 LAB_00104ee8: MOV RSI,RSP MOV RDI,R14 CALL 0x00102270 LEA RSI,[0x10caf4] MOV RDI,RSP CALL 0x00102060 TEST EAX,EAX JZ 0x00104fba LEA RSI,[0x10caf8] MOV RDI,RSP CALL 0x00102060 TEST EAX,EAX JZ 0x00104fc4 LEA RSI,[0x10c842] MOV RDI,RSP CALL 0x00102060 TEST EAX,EAX JZ 0x0010500c LEA RSI,[0x10cb08] MOV RDI,RSP CALL 0x00102060 TEST EAX,EAX JZ 0x0010501b LEA RSI,[0x10cb0b] MOV RDI,RSP CALL 0x00102060 TEST EAX,EAX JZ 0x00105025 LEA RSI,[0x10cb10] MOV RDI,RSP CALL 0x00102060 TEST EAX,EAX JZ 0x00105078 LEA RSI,[0x10cb15] MOV RDI,RSP CALL 0x00102060 TEST EAX,EAX JZ 0x0010502f LEA RSI,[0x10cb20] MOV RDI,RSP CALL 0x00102060 TEST EAX,EAX JNZ 0x00105037 LEA RSI,[RSP + 0x20] MOV RDI,RBX CALL 0x001056e6 JMP 0x00105037 LAB_00104fba: MOV RDI,RBX CALL 0x001050be JMP 0x00105037 LAB_00104fc4: MOV RBX,qword ptr [0x00113fc8] LEA RSI,[0x10cb00] MOV EDX,0x7 MOV RDI,RBX CALL 0x00102240 MOV RAX,qword ptr [RBX] ADD RBX,qword ptr [RAX + -0x18] MOV RDI,RBX MOV ESI,0xa CALL 0x001021f0 MOVSX ESI,AL MOV RDI,qword ptr [0x00113fc8] CALL 0x00102030 MOV RDI,RAX CALL 0x00102150 JMP 0x00105037 LAB_0010500c: LEA RSI,[RSP + 0x20] MOV RDI,RBX CALL 0x00105178 JMP 0x00105037 LAB_0010501b: MOV RDI,RBX CALL 0x0010557e JMP 0x00105037 LAB_00105025: MOV RDI,RBX CALL 0x00105632 JMP 0x00105037 LAB_0010502f: MOV RDI,qword ptr [RBX] CALL 0x00105a90 LAB_00105037: MOV RDI,qword ptr [RSP] CMP RDI,R15 JZ 0x0010504d MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x00102210 LAB_0010504d: MOV RSI,qword ptr [0x00113fb8] LEA RDI,[RSP + 0x20] CALL 0x001022a0 LEA RDI,[RSP + 0x98] CALL 0x00102080 ADD RSP,0x1a0 POP RBX POP R14 POP R15 RET LAB_00105078: XOR EDI,EDI CALL 0x00102260
/* UCIAdapter::processCommand(std::__cxx11::string const&) */ void __thiscall UCIAdapter::processCommand(UCIAdapter *this,string *param_1) { int *puVar1; int iVar2; int1 *local_1b8; int8 local_1b0; int1 local_1a8; int7 uStack_1a7; istream local_198 [120]; ios_base local_120 [264]; std::__cxx11::istringstream::istringstream((istringstream *)local_198,param_1,8); local_1b0 = 0; local_1a8 = 0; local_1b8 = &local_1a8; /* try { // try from 00104ee8 to 00105036 has its CatchHandler @ 0010507f */ std::operator>>(local_198,(string *)&local_1b8); iVar2 = std::__cxx11::string::compare((char *)&local_1b8); if (iVar2 == 0) { handleUCI(); } else { iVar2 = std::__cxx11::string::compare((char *)&local_1b8); puVar1 = PTR_cout_00113fc8; if (iVar2 == 0) { std::__ostream_insert<char,std::char_traits<char>>((ostream *)PTR_cout_00113fc8,"readyok",7); std::ios::widen((char)puVar1 + (char)*(int8 *)(*(long *)puVar1 + -0x18)); std::ostream::put((char)PTR_cout_00113fc8); std::ostream::flush(); } else { iVar2 = std::__cxx11::string::compare((char *)&local_1b8); if (iVar2 == 0) { handlePosition(this,(istringstream *)local_198); } else { iVar2 = std::__cxx11::string::compare((char *)&local_1b8); if (iVar2 == 0) { handleGo(); } else { iVar2 = std::__cxx11::string::compare((char *)&local_1b8); if (iVar2 == 0) { handleStop(); } else { iVar2 = std::__cxx11::string::compare((char *)&local_1b8); if (iVar2 == 0) { /* WARNING: Subroutine does not return */ exit(0); } iVar2 = std::__cxx11::string::compare((char *)&local_1b8); if (iVar2 == 0) { Engine::initilizeEngine(*(Engine **)this); } else { iVar2 = std::__cxx11::string::compare((char *)&local_1b8); if (iVar2 == 0) { handleSetOption(this,(istringstream *)local_198); } } } } } } } if (local_1b8 != &local_1a8) { operator_delete(local_1b8,CONCAT71(uStack_1a7,local_1a8) + 1); } std::__cxx11::istringstream::~istringstream((istringstream *)local_198); std::ios_base::~ios_base(local_120); return; }
47,763
server_context::populate_token_probs(server_slot const&, completion_token_output&, bool, bool, int)
monkey531[P]llama/examples/server/server.cpp
void populate_token_probs(const server_slot & slot, completion_token_output & result, bool post_sampling, bool special, int idx) { size_t n_probs = slot.params.sampling.n_probs; size_t n_vocab = llama_vocab_n_tokens(vocab); if (post_sampling) { const auto * cur_p = common_sampler_get_candidates(slot.smpl); const size_t max_probs = cur_p->size; // set probability for sampled token for (size_t i = 0; i < max_probs; i++) { if (cur_p->data[i].id == result.tok) { result.prob = cur_p->data[i].p; break; } } // set probability for top n_probs tokens result.probs.reserve(max_probs); for (size_t i = 0; i < std::min(max_probs, n_probs); i++) { result.probs.push_back({ cur_p->data[i].id, common_detokenize(ctx, {cur_p->data[i].id}, special), cur_p->data[i].p }); } } else { // TODO: optimize this with min-p optimization std::vector<llama_token_data> cur = get_token_probabilities(ctx, idx); // set probability for sampled token for (size_t i = 0; i < n_vocab; i++) { // set probability for sampled token if (cur[i].id == result.tok) { result.prob = cur[i].p; break; } } // set probability for top n_probs tokens result.probs.reserve(n_probs); for (size_t i = 0; i < std::min(n_vocab, n_probs); i++) { result.probs.push_back({ cur[i].id, common_detokenize(ctx, {cur[i].id}, special), cur[i].p }); } } }
O2
cpp
server_context::populate_token_probs(server_slot const&, completion_token_output&, bool, bool, int): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x98, %rsp movl %r9d, %ebp movl %r8d, 0x18(%rsp) movl %ecx, %r12d movq %rdx, %r13 movq %rsi, %r14 movq %rdi, %rbx movslq 0x100(%rsi), %r15 movq 0x1348(%rdi), %rdi callq 0x29560 movl %eax, 0x8(%rsp) testl %r12d, %r12d movq %rbx, 0x48(%rsp) je 0x82540 movq 0x848(%r14), %rdi callq 0xed18a movq %rax, %r12 movq 0x8(%rax), %rbx movl (%r13), %eax pushq $-0x1 popq %rcx xorl %edx, %edx incq %rcx cmpq %rcx, %rbx je 0x8248a leaq 0xc(%rdx), %rsi movq (%r12), %rdi cmpl %eax, (%rdi,%rdx) movq %rsi, %rdx jne 0x82466 movss -0x4(%rdi,%rsi), %xmm0 movss %xmm0, 0x4(%r13) addq $0x28, %r13 movq %r13, 0x10(%rsp) movq %r13, %rdi movq %rbx, %rsi callq 0x89834 cmpq %r15, %rbx cmovbq %rbx, %r15 xorl %r13d, %r13d leaq 0x20(%rsp), %rbp movzbl 0x18(%rsp), %ebx subq $0x1, %r15 jb 0x82786 movq (%r12), %rax movl (%rax,%r13), %eax movl %eax, 0x50(%rsp) movq 0x48(%rsp), %rcx movq 0x1340(%rcx), %r14 movl %eax, 0x80(%rsp) movq %rbp, %rdi leaq 0x80(%rsp), %rsi pushq $0x1 popq %rdx leaq 0x1c(%rsp), %rcx callq 0x81980 leaq 0x58(%rsp), %rdi movq %r14, %rsi movq %rbp, %rdx movl %ebx, %ecx callq 0xc38d1 movq (%r12), %rax movss 0x8(%rax,%r13), %xmm0 movss %xmm0, 0x78(%rsp) movq 0x10(%rsp), %rdi leaq 0x50(%rsp), %rsi callq 0x8995a leaq 0x58(%rsp), %rdi callq 0x29678 movq %rbp, %rdi callq 0x3e8f8 addq $0xc, %r13 jmp 0x824b2 movq %r13, 0x10(%rsp) movq 0x1340(%rbx), %r14 xorps %xmm0, %xmm0 movaps %xmm0, 0x20(%rsp) andq $0x0, 0x30(%rsp) movq %r14, %rdi movl %ebp, %esi callq 0x29140 movq %rax, %r12 movq %r14, %rdi callq 0x28990 movq %rax, %rdi callq 0x29620 movq %rax, %rdi callq 0x29560 movl %eax, %r14d movslq %eax, %rsi leaq 0x20(%rsp), %rdi callq 0x89aa6 movslq 0x8(%rsp), %r13 movq 0x20(%rsp), %rbp xorl %eax, %eax testl %r14d, %r14d cmovlel %eax, %r14d leaq 0x8(%rbp), %rcx cmpq %rax, %r14 je 0x825c5 movss (%r12,%rax,4), %xmm0 movl %eax, -0x8(%rcx) movss %xmm0, -0x4(%rcx) andl $0x0, (%rcx) incq %rax addq $0xc, %rcx jmp 0x825a6 movq 0x28(%rsp), %rbx pushq $0xc popq %r12 cmpq %rbx, %rbp je 0x82632 movq %rbx, %r14 subq %rbp, %r14 movq %r14, %rax cqto idivq %r12 bsrq %rax, %rdx xorl $0x3f, %edx addl %edx, %edx xorq $0x7e, %rdx movq %rbp, %rdi movq %rbx, %rsi callq 0x3b52f cmpq $0xc1, %r14 jl 0x82627 leaq 0xc0(%rbp), %r14 movq %rbp, %rdi movq %r14, %rsi callq 0x3b83f cmpq %rbx, %r14 je 0x82632 movq %r14, %rdi callq 0x3b8d8 addq $0xc, %r14 jmp 0x82614 movq %rbp, %rdi movq %rbx, %rsi callq 0x3b83f movq 0x20(%rsp), %r14 movq 0x28(%rsp), %rax movss 0x4(%r14), %xmm0 movss %xmm0, 0x44(%rsp) subq %r14, %rax cqto idivq %r12 movq %rax, %rbx leaq 0x8(%r14), %r12 xorps %xmm1, %xmm1 movq %rax, %rbp subq $0x1, %rbp jb 0x82691 movss -0x4(%r12), %xmm0 subss 0x44(%rsp), %xmm0 movss %xmm1, 0x8(%rsp) callq 0x29250 movss 0x8(%rsp), %xmm1 movss %xmm0, (%r12) addss %xmm0, %xmm1 addq $0xc, %r12 jmp 0x8265d leaq 0x8(%r14), %rax movq 0x10(%rsp), %rdi subq $0x1, %rbx jb 0x826b2 movss (%rax), %xmm0 divss %xmm1, %xmm0 movss %xmm0, (%rax) addq $0xc, %rax jmp 0x8269a movl (%rdi), %eax leaq 0x1(%r13), %rcx decq %rcx je 0x826d3 leaq 0xc(%r14), %rdx cmpl %eax, (%r14) movq %rdx, %r14 jne 0x826b8 movss -0x4(%rdx), %xmm0 movss %xmm0, 0x4(%rdi) addq $0x28, %rdi movq %rdi, 0x10(%rsp) movq %r15, %rsi callq 0x89834 cmpq %r13, %r15 cmovbq %r15, %r13 leaq 0x58(%rsp), %r15 xorl %ebx, %ebx leaq 0x80(%rsp), %r12 movzbl 0x18(%rsp), %ebp subq $0x1, %r13 jb 0x8277c movq 0x20(%rsp), %rax movl (%rax,%rbx), %eax movl %eax, 0x50(%rsp) movq 0x48(%rsp), %rcx movq 0x1340(%rcx), %r14 movl %eax, 0x1c(%rsp) movq %r12, %rdi leaq 0x1c(%rsp), %rsi pushq $0x1 popq %rdx leaq 0xf(%rsp), %rcx callq 0x81980 movq %r15, %rdi movq %r14, %rsi movq %r12, %rdx movl %ebp, %ecx callq 0xc38d1 movq 0x20(%rsp), %rax movss 0x8(%rax,%rbx), %xmm0 movss %xmm0, 0x78(%rsp) movq 0x10(%rsp), %rdi leaq 0x50(%rsp), %rsi callq 0x8995a movq %r15, %rdi callq 0x29678 movq %r12, %rdi callq 0x3e8f8 addq $0xc, %rbx jmp 0x826ff leaq 0x20(%rsp), %rdi callq 0x89ce6 addq $0x98, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x827a2 jmp 0x827a2 jmp 0x827a2 jmp 0x827a2 jmp 0x827a2 movq %rax, %rbx jmp 0x827c4 movq %rax, %rbx jmp 0x827b7 movq %rax, %rbx movq %r15, %rdi callq 0x29678 leaq 0x80(%rsp), %rdi callq 0x3e8f8 leaq 0x20(%rsp), %rdi callq 0x89ce6 jmp 0x827f1 movq %rax, %rbx jmp 0x827f1 movq %rax, %rbx jmp 0x827e7 movq %rax, %rbx leaq 0x58(%rsp), %rdi callq 0x29678 leaq 0x20(%rsp), %rdi callq 0x3e8f8 movq %rbx, %rdi callq 0x293c0 nop
_ZN14server_context20populate_token_probsERK11server_slotR23completion_token_outputbbi: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 98h mov ebp, r9d mov [rsp+0C8h+var_B0], r8d mov r12d, ecx mov r13, rdx mov r14, rsi mov rbx, rdi movsxd r15, dword ptr [rsi+100h] mov rdi, [rdi+1348h] call _llama_vocab_n_tokens mov [rsp+0C8h+var_C0], eax test r12d, r12d mov [rsp+0C8h+var_80], rbx jz loc_82540 mov rdi, [r14+848h] call _Z29common_sampler_get_candidatesP14common_sampler; common_sampler_get_candidates(common_sampler *) mov r12, rax mov rbx, [rax+8] mov eax, [r13+0] push 0FFFFFFFFFFFFFFFFh pop rcx xor edx, edx loc_82466: inc rcx cmp rbx, rcx jz short loc_8248A lea rsi, [rdx+0Ch] mov rdi, [r12] cmp [rdi+rdx], eax mov rdx, rsi jnz short loc_82466 movss xmm0, dword ptr [rdi+rsi-4] movss dword ptr [r13+4], xmm0 loc_8248A: add r13, 28h ; '(' mov [rsp+0C8h+var_B8], r13 mov rdi, r13 mov rsi, rbx call _ZNSt6vectorIN23completion_token_output9prob_infoESaIS1_EE7reserveEm; std::vector<completion_token_output::prob_info>::reserve(ulong) cmp rbx, r15 cmovb r15, rbx xor r13d, r13d lea rbp, [rsp+0C8h+var_A8] movzx ebx, byte ptr [rsp+0C8h+var_B0] loc_824B2: sub r15, 1 jb loc_82786 mov rax, [r12] mov eax, [rax+r13] mov [rsp+0C8h+var_78], eax mov rcx, [rsp+0C8h+var_80] mov r14, [rcx+1340h] mov [rsp+0C8h+var_48], eax mov rdi, rbp lea rsi, [rsp+0C8h+var_48] push 1 pop rdx lea rcx, [rsp+0C8h+var_AC] call _ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_; std::vector<int>::vector(std::initializer_list<int>,std::allocator<int> const&) lea rdi, [rsp+0C8h+var_70]; void * mov rsi, r14 mov rdx, rbp mov ecx, ebx call _Z17common_detokenizeB5cxx11PK13llama_contextRKSt6vectorIiSaIiEEb; common_detokenize(llama_context const*,std::vector<int> const&,bool) mov rax, [r12] movss xmm0, dword ptr [rax+r13+8] movss [rsp+0C8h+var_50], xmm0 mov rdi, [rsp+0C8h+var_B8] lea rsi, [rsp+0C8h+var_78] call _ZNSt6vectorIN23completion_token_output9prob_infoESaIS1_EE12emplace_backIJS1_EEERS1_DpOT_; std::vector<completion_token_output::prob_info>::emplace_back<completion_token_output::prob_info>(completion_token_output::prob_info &&) lea rdi, [rsp+0C8h+var_70]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, rbp call _ZNSt12_Vector_baseIiSaIiEED2Ev; std::_Vector_base<int>::~_Vector_base() add r13, 0Ch jmp loc_824B2 loc_82540: mov [rsp+0C8h+var_B8], r13 mov r14, [rbx+1340h] xorps xmm0, xmm0 movaps [rsp+0C8h+var_A8], xmm0 and [rsp+0C8h+var_98], 0 mov rdi, r14 mov esi, ebp call _llama_get_logits_ith mov r12, rax mov rdi, r14 call _llama_get_model mov rdi, rax call _llama_model_get_vocab mov rdi, rax call _llama_vocab_n_tokens mov r14d, eax movsxd rsi, eax lea rdi, [rsp+0C8h+var_A8] call _ZNSt6vectorI16llama_token_dataSaIS0_EE6resizeEm; std::vector<llama_token_data>::resize(ulong) movsxd r13, [rsp+0C8h+var_C0] mov rbp, qword ptr [rsp+0C8h+var_A8] xor eax, eax test r14d, r14d cmovle r14d, eax lea rcx, [rbp+8] loc_825A6: cmp r14, rax jz short loc_825C5 movss xmm0, dword ptr [r12+rax*4] mov [rcx-8], eax movss dword ptr [rcx-4], xmm0 and dword ptr [rcx], 0 inc rax add rcx, 0Ch jmp short loc_825A6 loc_825C5: mov rbx, qword ptr [rsp+0C8h+var_A8+8] push 0Ch pop r12 cmp rbp, rbx jz short loc_82632 mov r14, rbx sub r14, rbp mov rax, r14 cqo idiv r12 bsr rdx, rax xor edx, 3Fh add edx, edx xor rdx, 7Eh mov rdi, rbp mov rsi, rbx call _ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP16llama_token_dataSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIZL23get_token_probabilitiesP13llama_contextiE3$_0EEEvT_SE_T0_T1_; std::__introsort_loop<__gnu_cxx::__normal_iterator<llama_token_data *,std::vector<llama_token_data>>,long,__gnu_cxx::__ops::_Iter_comp_iter<get_token_probabilities(llama_context *,int)::$_0>>(__gnu_cxx::__normal_iterator<llama_token_data *,std::vector<llama_token_data>>,__gnu_cxx::__normal_iterator<llama_token_data *,std::vector<llama_token_data>>,long,__gnu_cxx::__ops::_Iter_comp_iter<get_token_probabilities(llama_context *,int)::$_0>) cmp r14, 0C1h jl short loc_82627 lea r14, [rbp+0C0h] mov rdi, rbp mov rsi, r14 call _ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP16llama_token_dataSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIZL23get_token_probabilitiesP13llama_contextiE3$_0EEEvT_SE_T0_; std::__insertion_sort<__gnu_cxx::__normal_iterator<llama_token_data *,std::vector<llama_token_data>>,__gnu_cxx::__ops::_Iter_comp_iter<get_token_probabilities(llama_context *,int)::$_0>>(__gnu_cxx::__normal_iterator<llama_token_data *,std::vector<llama_token_data>>,__gnu_cxx::__normal_iterator<llama_token_data *,std::vector<llama_token_data>>,__gnu_cxx::__ops::_Iter_comp_iter<get_token_probabilities(llama_context *,int)::$_0>) loc_82614: cmp r14, rbx jz short loc_82632 mov rdi, r14 call _ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIP16llama_token_dataSt6vectorIS2_SaIS2_EEEENS0_5__ops14_Val_comp_iterIZL23get_token_probabilitiesP13llama_contextiE3$_0EEEvT_T0_; std::__unguarded_linear_insert<__gnu_cxx::__normal_iterator<llama_token_data *,std::vector<llama_token_data>>,__gnu_cxx::__ops::_Val_comp_iter<get_token_probabilities(llama_context *,int)::$_0>>(__gnu_cxx::__normal_iterator<llama_token_data *,std::vector<llama_token_data>>,__gnu_cxx::__ops::_Val_comp_iter<get_token_probabilities(llama_context *,int)::$_0>) add r14, 0Ch jmp short loc_82614 loc_82627: mov rdi, rbp mov rsi, rbx call _ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP16llama_token_dataSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIZL23get_token_probabilitiesP13llama_contextiE3$_0EEEvT_SE_T0_; std::__insertion_sort<__gnu_cxx::__normal_iterator<llama_token_data *,std::vector<llama_token_data>>,__gnu_cxx::__ops::_Iter_comp_iter<get_token_probabilities(llama_context *,int)::$_0>>(__gnu_cxx::__normal_iterator<llama_token_data *,std::vector<llama_token_data>>,__gnu_cxx::__normal_iterator<llama_token_data *,std::vector<llama_token_data>>,__gnu_cxx::__ops::_Iter_comp_iter<get_token_probabilities(llama_context *,int)::$_0>) loc_82632: mov r14, qword ptr [rsp+0C8h+var_A8] mov rax, qword ptr [rsp+0C8h+var_A8+8] movss xmm0, dword ptr [r14+4] movss [rsp+0C8h+var_84], xmm0 sub rax, r14 cqo idiv r12 mov rbx, rax lea r12, [r14+8] xorps xmm1, xmm1 mov rbp, rax loc_8265D: sub rbp, 1 jb short loc_82691 movss xmm0, dword ptr [r12-4] subss xmm0, [rsp+0C8h+var_84] movss [rsp+0C8h+var_C0], xmm1 call _expf movss xmm1, [rsp+0C8h+var_C0] movss dword ptr [r12], xmm0 addss xmm1, xmm0 add r12, 0Ch jmp short loc_8265D loc_82691: lea rax, [r14+8] mov rdi, [rsp+0C8h+var_B8] loc_8269A: sub rbx, 1 jb short loc_826B2 movss xmm0, dword ptr [rax] divss xmm0, xmm1 movss dword ptr [rax], xmm0 add rax, 0Ch jmp short loc_8269A loc_826B2: mov eax, [rdi] lea rcx, [r13+1] loc_826B8: dec rcx jz short loc_826D3 lea rdx, [r14+0Ch] cmp [r14], eax mov r14, rdx jnz short loc_826B8 movss xmm0, dword ptr [rdx-4] movss dword ptr [rdi+4], xmm0 loc_826D3: add rdi, 28h ; '(' mov [rsp+0C8h+var_B8], rdi mov rsi, r15 call _ZNSt6vectorIN23completion_token_output9prob_infoESaIS1_EE7reserveEm; std::vector<completion_token_output::prob_info>::reserve(ulong) cmp r15, r13 cmovb r13, r15 lea r15, [rsp+0C8h+var_70] xor ebx, ebx lea r12, [rsp+0C8h+var_48] movzx ebp, byte ptr [rsp+0C8h+var_B0] loc_826FF: sub r13, 1 jb short loc_8277C mov rax, qword ptr [rsp+0C8h+var_A8] mov eax, [rax+rbx] mov [rsp+0C8h+var_78], eax mov rcx, [rsp+0C8h+var_80] mov r14, [rcx+1340h] mov [rsp+0C8h+var_AC], eax mov rdi, r12 lea rsi, [rsp+0C8h+var_AC] push 1 pop rdx lea rcx, [rsp+0C8h+var_B9] call _ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_; std::vector<int>::vector(std::initializer_list<int>,std::allocator<int> const&) mov rdi, r15; void * mov rsi, r14 mov rdx, r12 mov ecx, ebp call _Z17common_detokenizeB5cxx11PK13llama_contextRKSt6vectorIiSaIiEEb; common_detokenize(llama_context const*,std::vector<int> const&,bool) mov rax, qword ptr [rsp+0C8h+var_A8] movss xmm0, dword ptr [rax+rbx+8] movss [rsp+0C8h+var_50], xmm0 mov rdi, [rsp+0C8h+var_B8] lea rsi, [rsp+0C8h+var_78] call _ZNSt6vectorIN23completion_token_output9prob_infoESaIS1_EE12emplace_backIJS1_EEERS1_DpOT_; std::vector<completion_token_output::prob_info>::emplace_back<completion_token_output::prob_info>(completion_token_output::prob_info &&) mov rdi, r15; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, r12 call _ZNSt12_Vector_baseIiSaIiEED2Ev; std::_Vector_base<int>::~_Vector_base() add rbx, 0Ch jmp short loc_826FF loc_8277C: lea rdi, [rsp+0C8h+var_A8] call _ZNSt12_Vector_baseI16llama_token_dataSaIS0_EED2Ev; std::_Vector_base<llama_token_data>::~_Vector_base() loc_82786: add rsp, 98h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_827A2 jmp short loc_827A2 jmp short loc_827A2 jmp short loc_827A2 jmp short $+2 loc_827A2: mov rbx, rax jmp short loc_827C4 mov rbx, rax jmp short loc_827B7 mov rbx, rax mov rdi, r15; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_827B7: lea rdi, [rsp+arg_78] call _ZNSt12_Vector_baseIiSaIiEED2Ev; std::_Vector_base<int>::~_Vector_base() loc_827C4: lea rdi, [rsp+arg_18] call _ZNSt12_Vector_baseI16llama_token_dataSaIS0_EED2Ev; std::_Vector_base<llama_token_data>::~_Vector_base() jmp short loc_827F1 mov rbx, rax jmp short loc_827F1 mov rbx, rax jmp short loc_827E7 mov rbx, rax lea rdi, [rsp+arg_50]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_827E7: lea rdi, [rsp+arg_18] call _ZNSt12_Vector_baseIiSaIiEED2Ev; std::_Vector_base<int>::~_Vector_base() loc_827F1: mov rdi, rbx call __Unwind_Resume
void server_context::populate_token_probs( server_context *this, common_sampler **a2, completion_token_output *a3, int a4, bool a5, unsigned int a6, double a7, double a8) { unsigned long long v11; // r15 _QWORD *candidates; // r12 unsigned long long v13; // rbx long long v14; // rcx long long v15; // rdx long long v16; // rsi bool v17; // zf long long i; // r13 bool v19; // cf long long v20; // r14 long long logits_ith; // r12 long long model; // rax long long vocab; // rax unsigned int v24; // eax long long v25; // r14 long long *v26; // rsi __int128 *v27; // rdi unsigned long long v28; // r13 long long *v29; // rbp long long v30; // rax _DWORD *v31; // rcx int v32; // xmm0_4 long long *v33; // rbx long long v34; // r14 unsigned long long v35; // rdx unsigned int *v36; // r14 _DWORD *v37; // r14 double v38; // xmm0_8 long long v39; // rdx long long v40; // rbx _DWORD *v41; // r12 double v42; // xmm1_8 long long v43; // rbp _DWORD *j; // rax long long v45; // rcx long long k; // rbx int v47; // [rsp+8h] [rbp-C0h] char *v48; // [rsp+10h] [rbp-B8h] completion_token_output *v49; // [rsp+10h] [rbp-B8h] int v50; // [rsp+1Ch] [rbp-ACh] BYREF __int128 v51; // [rsp+20h] [rbp-A8h] BYREF long long v52; // [rsp+30h] [rbp-98h] float v53; // [rsp+44h] [rbp-84h] server_context *v54; // [rsp+48h] [rbp-80h] int v55; // [rsp+50h] [rbp-78h] BYREF _BYTE v56[32]; // [rsp+58h] [rbp-70h] BYREF int v57; // [rsp+78h] [rbp-50h] _QWORD v58[9]; // [rsp+80h] [rbp-48h] BYREF v11 = *((int *)a2 + 64); v47 = llama_vocab_n_tokens(*((_QWORD *)this + 617), a2); v54 = this; if ( a4 ) { candidates = (_QWORD *)common_sampler_get_candidates(a2[265]); v13 = candidates[1]; v14 = -1LL; v15 = 0LL; while ( v13 != ++v14 ) { v16 = v15 + 12; v17 = *(_DWORD *)(*candidates + v15) == *(_DWORD *)a3; v15 += 12LL; if ( v17 ) { *(_QWORD *)&a7 = *(unsigned int *)(*candidates + v16 - 4); *((_DWORD *)a3 + 1) = LODWORD(a7); break; } } v48 = (char *)a3 + 40; std::vector<completion_token_output::prob_info>::reserve((char *)a3 + 40, v13, v15, a7, a8); if ( v13 < v11 ) v11 = v13; for ( i = 0LL; ; i += 12LL ) { v19 = v11-- == 0; if ( v19 ) break; v55 = *(_DWORD *)(*candidates + i); LODWORD(v58[0]) = v55; std::vector<int>::vector((long long)&v51, (long long)v58, 1LL); common_detokenize[abi:cxx11](v56); v57 = *(_DWORD *)(*candidates + i + 8); std::vector<completion_token_output::prob_info>::emplace_back<completion_token_output::prob_info>(v48, &v55); std::string::~string(v56); std::_Vector_base<int>::~_Vector_base(&v51); } } else { v49 = a3; v20 = *((_QWORD *)this + 616); v51 = 0LL; v52 = 0LL; logits_ith = llama_get_logits_ith(v20, a6); model = llama_get_model(v20); vocab = llama_model_get_vocab(model); v24 = llama_vocab_n_tokens(vocab, a6); v25 = v24; v26 = (long long *)(int)v24; v27 = &v51; std::vector<llama_token_data>::resize(&v51, (int)v24); v28 = v47; v29 = (long long *)v51; v30 = 0LL; if ( (int)v25 <= 0 ) v25 = 0LL; v31 = (_DWORD *)(v51 + 8); while ( v25 != v30 ) { v32 = *(_DWORD *)(logits_ith + 4 * v30); *(v31 - 2) = v30; *(v31 - 1) = v32; *v31 = 0; ++v30; v31 += 3; } v33 = (long long *)*((_QWORD *)&v51 + 1); if ( v29 != *((long long **)&v51 + 1) ) { v34 = *((_QWORD *)&v51 + 1) - (_QWORD)v29; _BitScanReverse64(&v35, (*((_QWORD *)&v51 + 1) - (_QWORD)v29) / 12LL); std::__introsort_loop<__gnu_cxx::__normal_iterator<llama_token_data *,std::vector<llama_token_data>>,long,__gnu_cxx::__ops::_Iter_comp_iter<get_token_probabilities(llama_context *,int)::$_0>>( v29, *((char **)&v51 + 1), (2 * ((unsigned int)v35 ^ 0x3F)) ^ 0x7ELL); if ( v34 < 193 ) { v27 = (__int128 *)v29; v26 = v33; std::__insertion_sort<__gnu_cxx::__normal_iterator<llama_token_data *,std::vector<llama_token_data>>,__gnu_cxx::__ops::_Iter_comp_iter<get_token_probabilities(llama_context *,int)::$_0>>( (long long)v29, v33); } else { v36 = (unsigned int *)(v29 + 24); v27 = (__int128 *)v29; v26 = v29 + 24; std::__insertion_sort<__gnu_cxx::__normal_iterator<llama_token_data *,std::vector<llama_token_data>>,__gnu_cxx::__ops::_Iter_comp_iter<get_token_probabilities(llama_context *,int)::$_0>>( (long long)v29, v29 + 24); while ( v36 != (unsigned int *)v33 ) { v27 = (__int128 *)v36; std::__unguarded_linear_insert<__gnu_cxx::__normal_iterator<llama_token_data *,std::vector<llama_token_data>>,__gnu_cxx::__ops::_Val_comp_iter<get_token_probabilities(llama_context *,int)::$_0>>(v36); v36 += 3; } } } v37 = (_DWORD *)v51; *(_QWORD *)&v38 = *(unsigned int *)(v51 + 4); v53 = *(float *)(v51 + 4); v39 = (*((_QWORD *)&v51 + 1) - (_QWORD)v51) % 12LL; v40 = (*((_QWORD *)&v51 + 1) - (_QWORD)v51) / 12LL; v41 = (_DWORD *)(v51 + 8); v42 = 0.0; v43 = v40; while ( 1 ) { v19 = v43-- == 0; if ( v19 ) break; *(_QWORD *)&v38 = (unsigned int)*(v41 - 1); *(float *)&v38 = expf(v27, v26, v39, v31, *(float *)&v38 - v53); *(_QWORD *)&v42 = LODWORD(v42); *v41 = LODWORD(v38); *(float *)&v42 = *(float *)&v42 + *(float *)&v38; v41 += 3; } for ( j = v37 + 2; ; j += 3 ) { v19 = v40-- == 0; if ( v19 ) break; *(_QWORD *)&v38 = (unsigned int)*j; *(float *)&v38 = *(float *)&v38 / *(float *)&v42; *j = LODWORD(v38); } v45 = v47 + 1LL; while ( --v45 ) { v39 = (long long)(v37 + 3); v17 = *v37 == *(_DWORD *)v49; v37 += 3; if ( v17 ) { *(_QWORD *)&v38 = *(unsigned int *)(v39 - 4); *((_DWORD *)v49 + 1) = LODWORD(v38); break; } } std::vector<completion_token_output::prob_info>::reserve((char *)v49 + 40, v11, v39, v38, v42); if ( v11 < v47 ) v28 = v11; for ( k = 0LL; ; k += 12LL ) { v19 = v28-- == 0; if ( v19 ) break; v55 = *(_DWORD *)(v51 + k); v50 = v55; std::vector<int>::vector((long long)v58, (long long)&v50, 1LL); common_detokenize[abi:cxx11](v56); v57 = *(_DWORD *)(v51 + k + 8); std::vector<completion_token_output::prob_info>::emplace_back<completion_token_output::prob_info>( (char *)v49 + 40, &v55); std::string::~string(v56); std::_Vector_base<int>::~_Vector_base(v58); } std::_Vector_base<llama_token_data>::~_Vector_base(&v51); } }
populate_token_probs: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x98 MOV EBP,R9D MOV dword ptr [RSP + 0x18],R8D MOV R12D,ECX MOV R13,RDX MOV R14,RSI MOV RBX,RDI MOVSXD R15,dword ptr [RSI + 0x100] MOV RDI,qword ptr [RDI + 0x1348] CALL 0x00129560 MOV dword ptr [RSP + 0x8],EAX TEST R12D,R12D MOV qword ptr [RSP + 0x48],RBX JZ 0x00182540 MOV RDI,qword ptr [R14 + 0x848] CALL 0x001ed18a MOV R12,RAX MOV RBX,qword ptr [RAX + 0x8] MOV EAX,dword ptr [R13] PUSH -0x1 POP RCX XOR EDX,EDX LAB_00182466: INC RCX CMP RBX,RCX JZ 0x0018248a LEA RSI,[RDX + 0xc] MOV RDI,qword ptr [R12] CMP dword ptr [RDI + RDX*0x1],EAX MOV RDX,RSI JNZ 0x00182466 MOVSS XMM0,dword ptr [RDI + RSI*0x1 + -0x4] MOVSS dword ptr [R13 + 0x4],XMM0 LAB_0018248a: ADD R13,0x28 MOV qword ptr [RSP + 0x10],R13 MOV RDI,R13 MOV RSI,RBX CALL 0x00189834 CMP RBX,R15 CMOVC R15,RBX XOR R13D,R13D LEA RBP,[RSP + 0x20] MOVZX EBX,byte ptr [RSP + 0x18] LAB_001824b2: SUB R15,0x1 JC 0x00182786 MOV RAX,qword ptr [R12] MOV EAX,dword ptr [RAX + R13*0x1] MOV dword ptr [RSP + 0x50],EAX MOV RCX,qword ptr [RSP + 0x48] MOV R14,qword ptr [RCX + 0x1340] MOV dword ptr [RSP + 0x80],EAX LAB_001824db: MOV RDI,RBP LEA RSI,[RSP + 0x80] PUSH 0x1 POP RDX LEA RCX,[RSP + 0x1c] CALL 0x00181980 LAB_001824f3: LEA RDI,[RSP + 0x58] MOV RSI,R14 MOV RDX,RBP MOV ECX,EBX CALL 0x001c38d1 MOV RAX,qword ptr [R12] MOVSS XMM0,dword ptr [RAX + R13*0x1 + 0x8] MOVSS dword ptr [RSP + 0x78],XMM0 LAB_00182516: MOV RDI,qword ptr [RSP + 0x10] LEA RSI,[RSP + 0x50] CALL 0x0018995a LEA RDI,[RSP + 0x58] CALL 0x00129678 MOV RDI,RBP CALL 0x0013e8f8 ADD R13,0xc JMP 0x001824b2 LAB_00182540: MOV qword ptr [RSP + 0x10],R13 MOV R14,qword ptr [RBX + 0x1340] XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP + 0x20],XMM0 AND qword ptr [RSP + 0x30],0x0 LAB_0018255a: MOV RDI,R14 MOV ESI,EBP CALL 0x00129140 LAB_00182564: MOV R12,RAX MOV RDI,R14 CALL 0x00128990 LAB_0018256f: MOV RDI,RAX CALL 0x00129620 LAB_00182577: MOV RDI,RAX CALL 0x00129560 MOV R14D,EAX MOVSXD RSI,EAX LEA RDI,[RSP + 0x20] CALL 0x00189aa6 MOVSXD R13,dword ptr [RSP + 0x8] MOV RBP,qword ptr [RSP + 0x20] XOR EAX,EAX TEST R14D,R14D CMOVLE R14D,EAX LEA RCX,[RBP + 0x8] LAB_001825a6: CMP R14,RAX JZ 0x001825c5 MOVSS XMM0,dword ptr [R12 + RAX*0x4] MOV dword ptr [RCX + -0x8],EAX MOVSS dword ptr [RCX + -0x4],XMM0 AND dword ptr [RCX],0x0 INC RAX ADD RCX,0xc JMP 0x001825a6 LAB_001825c5: MOV RBX,qword ptr [RSP + 0x28] PUSH 0xc POP R12 CMP RBP,RBX JZ 0x00182632 MOV R14,RBX SUB R14,RBP MOV RAX,R14 CQO IDIV R12 BSR RDX,RAX XOR EDX,0x3f ADD EDX,EDX XOR RDX,0x7e MOV RDI,RBP MOV RSI,RBX CALL 0x0013b52f CMP R14,0xc1 JL 0x00182627 LEA R14,[RBP + 0xc0] MOV RDI,RBP MOV RSI,R14 CALL 0x0013b83f LAB_00182614: CMP R14,RBX JZ 0x00182632 MOV RDI,R14 CALL 0x0013b8d8 ADD R14,0xc JMP 0x00182614 LAB_00182627: MOV RDI,RBP MOV RSI,RBX CALL 0x0013b83f LAB_00182632: MOV R14,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x28] MOVSS XMM0,dword ptr [R14 + 0x4] MOVSS dword ptr [RSP + 0x44],XMM0 SUB RAX,R14 CQO IDIV R12 MOV RBX,RAX LEA R12,[R14 + 0x8] XORPS XMM1,XMM1 MOV RBP,RAX LAB_0018265d: SUB RBP,0x1 JC 0x00182691 MOVSS XMM0,dword ptr [R12 + -0x4] SUBSS XMM0,dword ptr [RSP + 0x44] MOVSS dword ptr [RSP + 0x8],XMM1 CALL 0x00129250 MOVSS XMM1,dword ptr [RSP + 0x8] MOVSS dword ptr [R12],XMM0 ADDSS XMM1,XMM0 ADD R12,0xc JMP 0x0018265d LAB_00182691: LEA RAX,[R14 + 0x8] MOV RDI,qword ptr [RSP + 0x10] LAB_0018269a: SUB RBX,0x1 JC 0x001826b2 MOVSS XMM0,dword ptr [RAX] DIVSS XMM0,XMM1 MOVSS dword ptr [RAX],XMM0 ADD RAX,0xc JMP 0x0018269a LAB_001826b2: MOV EAX,dword ptr [RDI] LEA RCX,[R13 + 0x1] LAB_001826b8: DEC RCX JZ 0x001826d3 LEA RDX,[R14 + 0xc] CMP dword ptr [R14],EAX MOV R14,RDX JNZ 0x001826b8 MOVSS XMM0,dword ptr [RDX + -0x4] MOVSS dword ptr [RDI + 0x4],XMM0 LAB_001826d3: ADD RDI,0x28 LAB_001826d7: MOV qword ptr [RSP + 0x10],RDI MOV RSI,R15 CALL 0x00189834 CMP R15,R13 CMOVC R13,R15 LEA R15,[RSP + 0x58] XOR EBX,EBX LEA R12,[RSP + 0x80] MOVZX EBP,byte ptr [RSP + 0x18] LAB_001826ff: SUB R13,0x1 JC 0x0018277c MOV RAX,qword ptr [RSP + 0x20] MOV EAX,dword ptr [RAX + RBX*0x1] MOV dword ptr [RSP + 0x50],EAX MOV RCX,qword ptr [RSP + 0x48] MOV R14,qword ptr [RCX + 0x1340] MOV dword ptr [RSP + 0x1c],EAX LAB_00182721: MOV RDI,R12 LEA RSI,[RSP + 0x1c] PUSH 0x1 POP RDX LEA RCX,[RSP + 0xf] CALL 0x00181980 LAB_00182736: MOV RDI,R15 MOV RSI,R14 MOV RDX,R12 MOV ECX,EBP CALL 0x001c38d1 MOV RAX,qword ptr [RSP + 0x20] MOVSS XMM0,dword ptr [RAX + RBX*0x1 + 0x8] MOVSS dword ptr [RSP + 0x78],XMM0 LAB_00182757: MOV RDI,qword ptr [RSP + 0x10] LEA RSI,[RSP + 0x50] CALL 0x0018995a LAB_00182766: MOV RDI,R15 CALL 0x00129678 MOV RDI,R12 CALL 0x0013e8f8 ADD RBX,0xc JMP 0x001826ff LAB_0018277c: LEA RDI,[RSP + 0x20] CALL 0x00189ce6 LAB_00182786: ADD RSP,0x98 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* server_context::populate_token_probs(server_slot const&, completion_token_output&, bool, bool, int) */ void __thiscall server_context::populate_token_probs (server_context *this,server_slot *param_1,completion_token_output *param_2,bool param_3, bool param_4,int param_5) { int *piVar1; vector *pvVar2; int iVar3; uint uVar4; long *plVar5; int8 uVar6; ulong uVar7; float *pfVar8; int7 in_register_00000009; ulong uVar9; int *piVar10; int3 in_register_00000081; long lVar11; ulong uVar12; long lVar13; int *piVar14; ulong uVar15; bool bVar16; float fVar17; float fVar18; int1 uStack_b9; vector<completion_token_output::prob_info,std::allocator<completion_token_output::prob_info>> *local_b8; int4 local_b0; int4 local_ac; int *local_a8; int *piStack_a0; int8 local_98; float fStack_84; server_context *local_80; int4 local_78 [2]; llama_context local_70 [32]; int4 local_50; int4 local_48 [6]; local_b0 = CONCAT31(in_register_00000081,param_4); uVar15 = (ulong)*(int *)(param_1 + 0x100); iVar3 = llama_vocab_n_tokens(*(int8 *)(this + 0x1348)); local_80 = this; if ((int)CONCAT71(in_register_00000009,param_3) == 0) { uVar6 = *(int8 *)(this + 0x1340); local_a8 = (int *)0x0; piStack_a0 = (int *)0x0; local_98 = 0; local_b8 = (vector<completion_token_output::prob_info,std::allocator<completion_token_output::prob_info>> *)param_2; /* try { // try from 0018255a to 00182563 has its CatchHandler @ 0018279e */ lVar11 = llama_get_logits_ith(uVar6,param_5); /* try { // try from 00182564 to 0018256e has its CatchHandler @ 0018279c */ uVar6 = llama_get_model(uVar6); /* try { // try from 0018256f to 00182576 has its CatchHandler @ 0018279a */ uVar6 = llama_model_get_vocab(uVar6); /* try { // try from 00182577 to 0018258e has its CatchHandler @ 001827a0 */ uVar4 = llama_vocab_n_tokens(uVar6); std::vector<llama_token_data,std::allocator<llama_token_data>>::resize ((vector<llama_token_data,std::allocator<llama_token_data>> *)&local_a8, (long)(int)uVar4); piVar14 = piStack_a0; piVar1 = local_a8; uVar12 = (ulong)iVar3; uVar7 = 0; uVar9 = (ulong)uVar4; if ((int)uVar4 < 1) { uVar9 = uVar7; } piVar10 = local_a8 + 2; for (; uVar9 != uVar7; uVar7 = uVar7 + 1) { iVar3 = *(int *)(lVar11 + uVar7 * 4); piVar10[-2] = (int)uVar7; piVar10[-1] = iVar3; *piVar10 = 0; piVar10 = piVar10 + 3; } if (local_a8 != piStack_a0) { lVar13 = (long)piStack_a0 - (long)local_a8; uVar9 = lVar13 / 0xc; lVar11 = 0x3f; if (uVar9 != 0) { for (; uVar9 >> lVar11 == 0; lVar11 = lVar11 + -1) { } } std:: __introsort_loop<__gnu_cxx::__normal_iterator<llama_token_data*,std::vector<llama_token_data,std::allocator<llama_token_data>>>,long,__gnu_cxx::__ops::_Iter_comp_iter<get_token_probabilities(llama_context*,int)::__0>> (local_a8,piStack_a0,((uint)lVar11 ^ 0x3f) * 2 ^ 0x7e); if (lVar13 < 0xc1) { std:: __insertion_sort<__gnu_cxx::__normal_iterator<llama_token_data*,std::vector<llama_token_data,std::allocator<llama_token_data>>>,__gnu_cxx::__ops::_Iter_comp_iter<get_token_probabilities(llama_context*,int)::__0>> (piVar1,piVar14); } else { piVar10 = piVar1 + 0x30; std:: __insertion_sort<__gnu_cxx::__normal_iterator<llama_token_data*,std::vector<llama_token_data,std::allocator<llama_token_data>>>,__gnu_cxx::__ops::_Iter_comp_iter<get_token_probabilities(llama_context*,int)::__0>> (piVar1,piVar10); for (; piVar10 != piVar14; piVar10 = piVar10 + 3) { std:: __unguarded_linear_insert<__gnu_cxx::__normal_iterator<llama_token_data*,std::vector<llama_token_data,std::allocator<llama_token_data>>>,__gnu_cxx::__ops::_Val_comp_iter<get_token_probabilities(llama_context*,int)::__0>> (piVar10); } } } piVar1 = local_a8; fStack_84 = (float)local_a8[1]; lVar13 = ((long)piStack_a0 - (long)local_a8) / 0xc; pfVar8 = (float *)(local_a8 + 2); fVar18 = 0.0; lVar11 = lVar13; while (bVar16 = lVar11 != 0, lVar11 = lVar11 + -1, bVar16) { fVar17 = expf(pfVar8[-1] - fStack_84); *pfVar8 = fVar17; fVar18 = fVar18 + fVar17; pfVar8 = pfVar8 + 3; } pfVar8 = (float *)(piVar1 + 2); while (bVar16 = lVar13 != 0, lVar13 = lVar13 + -1, bVar16) { *pfVar8 = *pfVar8 / fVar18; pfVar8 = pfVar8 + 3; } lVar11 = uVar12 + 1; do { piVar14 = piVar1; lVar11 = lVar11 + -1; if (lVar11 == 0) goto LAB_001826d3; piVar1 = piVar14 + 3; } while (*piVar14 != *(int *)local_b8); *(int *)(local_b8 + 4) = piVar14[2]; LAB_001826d3: local_b8 = local_b8 + 0x28; /* try { // try from 001826d7 to 001826e3 has its CatchHandler @ 00182798 */ std:: vector<completion_token_output::prob_info,std::allocator<completion_token_output::prob_info>>:: reserve(local_b8,uVar15); if (uVar15 < uVar12) { uVar12 = uVar15; } lVar11 = 0; while (bVar16 = uVar12 != 0, uVar12 = uVar12 - 1, bVar16) { local_ac = *(int4 *)((long)local_a8 + lVar11); pvVar2 = *(vector **)(local_80 + 0x1340); /* try { // try from 00182721 to 00182735 has its CatchHandler @ 001827a2 */ local_78[0] = local_ac; std::vector<int,std::allocator<int>>::vector ((vector<int,std::allocator<int>> *)local_48,&local_ac,1,&uStack_b9); /* try { // try from 00182736 to 00182745 has its CatchHandler @ 001827a7 */ common_detokenize_abi_cxx11_ (local_70,pvVar2,SUB81((_Vector_base<int,std::allocator<int>> *)local_48,0)); local_50 = *(int4 *)((long)local_a8 + lVar11 + 8); /* try { // try from 00182757 to 00182765 has its CatchHandler @ 001827ac */ std:: vector<completion_token_output::prob_info,std::allocator<completion_token_output::prob_info>> ::emplace_back<completion_token_output::prob_info>(local_b8,(prob_info *)local_78); std::__cxx11::string::~string((string *)local_70); std::_Vector_base<int,std::allocator<int>>::~_Vector_base ((_Vector_base<int,std::allocator<int>> *)local_48); lVar11 = lVar11 + 0xc; } std::_Vector_base<llama_token_data,std::allocator<llama_token_data>>::~_Vector_base ((_Vector_base<llama_token_data,std::allocator<llama_token_data>> *)&local_a8); } else { plVar5 = (long *)common_sampler_get_candidates(*(common_sampler **)(param_1 + 0x848)); uVar12 = plVar5[1]; uVar9 = 0xffffffffffffffff; lVar11 = 0; do { uVar9 = uVar9 + 1; if (uVar12 == uVar9) goto LAB_0018248a; lVar13 = lVar11 + 0xc; piVar1 = (int *)(*plVar5 + lVar11); lVar11 = lVar13; } while (*piVar1 != *(int *)param_2); *(int4 *)(param_2 + 4) = *(int4 *)(*plVar5 + -4 + lVar13); LAB_0018248a: local_b8 = (vector<completion_token_output::prob_info,std::allocator<completion_token_output::prob_info>> *)(param_2 + 0x28); std:: vector<completion_token_output::prob_info,std::allocator<completion_token_output::prob_info>>:: reserve(local_b8,uVar12); if (uVar12 < uVar15) { uVar15 = uVar12; } lVar11 = 0; while (bVar16 = uVar15 != 0, uVar15 = uVar15 - 1, bVar16) { local_78[0] = *(int4 *)(*plVar5 + lVar11); pvVar2 = *(vector **)(local_80 + 0x1340); /* try { // try from 001824db to 001824f2 has its CatchHandler @ 001827d0 */ local_48[0] = local_78[0]; std::vector<int,std::allocator<int>>::vector ((vector<int,std::allocator<int>> *)&local_a8,local_48,1,&local_ac); /* try { // try from 001824f3 to 00182504 has its CatchHandler @ 001827d5 */ common_detokenize_abi_cxx11_ (local_70,pvVar2,SUB81((_Vector_base<int,std::allocator<int>> *)&local_a8,0)); local_50 = *(int4 *)(*plVar5 + 8 + lVar11); /* try { // try from 00182516 to 00182524 has its CatchHandler @ 001827da */ std:: vector<completion_token_output::prob_info,std::allocator<completion_token_output::prob_info>> ::emplace_back<completion_token_output::prob_info>(local_b8,(prob_info *)local_78); std::__cxx11::string::~string((string *)local_70); std::_Vector_base<int,std::allocator<int>>::~_Vector_base ((_Vector_base<int,std::allocator<int>> *)&local_a8); lVar11 = lVar11 + 0xc; } } return; }
47,764
my_error_unregister_all
eloqsql/mysys/my_error.c
void my_error_unregister_all(void) { struct my_err_head *cursor, *saved_next; for (cursor= my_errmsgs_globerrs.meh_next; cursor != NULL; cursor= saved_next) { /* We need this ptr, but we're about to free its container, so save it. */ saved_next= cursor->meh_next; my_free(cursor); } my_errmsgs_globerrs.meh_next= NULL; /* Freed in first iteration above. */ my_errmsgs_list= &my_errmsgs_globerrs; }
O0
c
my_error_unregister_all: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq 0x1d8569(%rip), %rax # 0x2cd5c8 movq %rax, -0x8(%rbp) cmpq $0x0, -0x8(%rbp) je 0xf5088 movq -0x8(%rbp), %rax movq (%rax), %rax movq %rax, -0x10(%rbp) movq -0x8(%rbp), %rdi callq 0xfc410 movq -0x10(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0xf5063 movq $0x0, 0x1d8535(%rip) # 0x2cd5c8 leaq 0x1d852e(%rip), %rax # 0x2cd5c8 movq %rax, 0x1d851f(%rip) # 0x2cd5c0 addq $0x10, %rsp popq %rbp retq nopw (%rax,%rax)
my_error_unregister_all: push rbp mov rbp, rsp sub rsp, 10h mov rax, cs:my_errmsgs_globerrs mov [rbp+var_8], rax loc_F5063: cmp [rbp+var_8], 0 jz short loc_F5088 mov rax, [rbp+var_8] mov rax, [rax] mov [rbp+var_10], rax mov rdi, [rbp+var_8] call my_free mov rax, [rbp+var_10] mov [rbp+var_8], rax jmp short loc_F5063 loc_F5088: mov cs:my_errmsgs_globerrs, 0 lea rax, my_errmsgs_globerrs mov cs:my_errmsgs_list, rax add rsp, 10h pop rbp retn
long long *my_error_unregister_all() { long long *result; // rax _QWORD *v1; // [rsp+0h] [rbp-10h] _QWORD *i; // [rsp+8h] [rbp-8h] for ( i = (_QWORD *)my_errmsgs_globerrs; i; i = v1 ) { v1 = (_QWORD *)*i; my_free(i); } my_errmsgs_globerrs = 0LL; result = &my_errmsgs_globerrs; my_errmsgs_list = &my_errmsgs_globerrs; return result; }
my_error_unregister_all: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV RAX,qword ptr [0x003cd5c8] MOV qword ptr [RBP + -0x8],RAX LAB_001f5063: CMP qword ptr [RBP + -0x8],0x0 JZ 0x001f5088 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x10],RAX MOV RDI,qword ptr [RBP + -0x8] CALL 0x001fc410 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x8],RAX JMP 0x001f5063 LAB_001f5088: MOV qword ptr [0x003cd5c8],0x0 LEA RAX,[0x3cd5c8] MOV qword ptr [0x003cd5c0],RAX ADD RSP,0x10 POP RBP RET
void my_error_unregister_all(void) { int8 *puVar1; int8 *local_10; local_10 = my_errmsgs_globerrs; while (local_10 != (int8 *)0x0) { puVar1 = (int8 *)*local_10; my_free(local_10); local_10 = puVar1; } my_errmsgs_globerrs = (int8 *)0x0; my_errmsgs_list = (int *)&my_errmsgs_globerrs; return; }
47,765
OpenSubdiv::v3_6_0::Vtr::internal::Level::gatherQuadLinearPatchPoints(int, int*, int, int) const
NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/level.cpp
int Level::gatherQuadLinearPatchPoints( Index thisFace, Index patchPoints[], int rotation, int fvarChannel) const { Level const& level = *this; assert((0 <= rotation) && (rotation < 4)); static int const rotationSequence[7] = { 0, 1, 2, 3, 0, 1, 2 }; int const * rotatedVerts = &rotationSequence[rotation]; ConstIndexArray facePoints = (fvarChannel < 0) ? level.getFaceVertices(thisFace) : level.getFaceFVarValues(thisFace, fvarChannel); patchPoints[0] = facePoints[rotatedVerts[0]]; patchPoints[1] = facePoints[rotatedVerts[1]]; patchPoints[2] = facePoints[rotatedVerts[2]]; patchPoints[3] = facePoints[rotatedVerts[3]]; return 4; }
O3
cpp
OpenSubdiv::v3_6_0::Vtr::internal::Level::gatherQuadLinearPatchPoints(int, int*, int, int) const: cmpl $0x4, %ecx jae 0x44c36 testl %r8d, %r8d js 0x44bde movl %r8d, %eax movq 0x1c8(%rdi), %rdi movq (%rdi,%rax,8), %rdi movq (%rdi), %r8 leal 0x1(,%rsi,2), %eax cltq shlq $0x2, %rax addq 0x18(%r8), %rax addq $0x18, %rdi jmp 0x44bf3 leal 0x1(,%rsi,2), %eax cltq shlq $0x2, %rax addq 0x18(%rdi), %rax addq $0x30, %rdi movslq (%rax), %rax shlq $0x2, %rax addq (%rdi), %rax movl %ecx, %ecx leaq 0x71d5a(%rip), %rsi # 0xb6960 movslq (%rsi,%rcx,4), %rdi movl (%rax,%rdi,4), %edi movl %edi, (%rdx) movslq 0x4(%rsi,%rcx,4), %rdi movl (%rax,%rdi,4), %edi movl %edi, 0x4(%rdx) movslq 0x8(%rsi,%rcx,4), %rdi movl (%rax,%rdi,4), %edi movl %edi, 0x8(%rdx) movslq 0xc(%rsi,%rcx,4), %rcx movl (%rax,%rcx,4), %eax movl %eax, 0xc(%rdx) movl $0x4, %eax retq pushq %rax leaq 0x7179c(%rip), %rdi # 0xb63da leaq 0x70e25(%rip), %rsi # 0xb5a6a leaq 0x717b0(%rip), %rcx # 0xb63fc movl $0x321, %edx # imm = 0x321 callq 0x39540
_ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level27gatherQuadLinearPatchPointsEiPiii: cmp ecx, 4 jnb loc_44C36 test r8d, r8d js short loc_44BDE mov eax, r8d mov rdi, [rdi+1C8h] mov rdi, [rdi+rax*8] mov r8, [rdi] lea eax, ds:1[rsi*2] cdqe shl rax, 2 add rax, [r8+18h] add rdi, 18h jmp short loc_44BF3 loc_44BDE: lea eax, ds:1[rsi*2] cdqe shl rax, 2 add rax, [rdi+18h] add rdi, 30h ; '0' loc_44BF3: movsxd rax, dword ptr [rax] shl rax, 2 add rax, [rdi] mov ecx, ecx lea rsi, _ZZNK10OpenSubdiv6v3_6_03Vtr8internal5Level36gatherQuadRegularInteriorPatchPointsEiPiiiE16rotationSequence; OpenSubdiv::v3_6_0::Vtr::internal::Level::gatherQuadRegularInteriorPatchPoints(int,int *,int,int)::rotationSequence movsxd rdi, dword ptr [rsi+rcx*4] mov edi, [rax+rdi*4] mov [rdx], edi movsxd rdi, dword ptr [rsi+rcx*4+4] mov edi, [rax+rdi*4] mov [rdx+4], edi movsxd rdi, dword ptr [rsi+rcx*4+8] mov edi, [rax+rdi*4] mov [rdx+8], edi movsxd rcx, dword ptr [rsi+rcx*4+0Ch] mov eax, [rax+rcx*4] mov [rdx+0Ch], eax mov eax, 4 retn loc_44C36: push rax lea rdi, a0RotationRotat; "(0 <= rotation) && (rotation < 4)" lea rsi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rcx, aIntOpensubdivV_3; "int OpenSubdiv::v3_6_0::Vtr::internal::"... mov edx, 321h call ___assert_fail
long long OpenSubdiv::v3_6_0::Vtr::internal::Level::gatherQuadLinearPatchPoints( OpenSubdiv::v3_6_0::Vtr::internal::Level *this, int a2, int *a3, unsigned int a4, int a5) { _QWORD *v5; // rdi int *v6; // rax _QWORD *v7; // rdi long long v8; // rax if ( a4 >= 4 ) __assert_fail( "(0 <= rotation) && (rotation < 4)", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/level.cpp", 801LL, "int OpenSubdiv::v3_6_0::Vtr::internal::Level::gatherQuadLinearPatchPoints(Index, Index *, int, int) const"); if ( a5 < 0 ) { v6 = (int *)(*((_QWORD *)this + 3) + 4LL * (2 * a2 + 1)); v7 = (_QWORD *)((char *)this + 48); } else { v5 = *(_QWORD **)(*((_QWORD *)this + 57) + 8LL * (unsigned int)a5); v6 = (int *)(*(_QWORD *)(*v5 + 24LL) + 4LL * (2 * a2 + 1)); v7 = v5 + 3; } v8 = *v7 + 4LL * *v6; *a3 = *(_DWORD *)(v8 + 4LL * OpenSubdiv::v3_6_0::Vtr::internal::Level::gatherQuadRegularInteriorPatchPoints(int,int *,int,int)const::rotationSequence[a4]); a3[1] = *(_DWORD *)(v8 + 4LL * OpenSubdiv::v3_6_0::Vtr::internal::Level::gatherQuadRegularInteriorPatchPoints(int,int *,int,int)const::rotationSequence[a4 + 1]); a3[2] = *(_DWORD *)(v8 + 4LL * OpenSubdiv::v3_6_0::Vtr::internal::Level::gatherQuadRegularInteriorPatchPoints(int,int *,int,int)const::rotationSequence[a4 + 2]); a3[3] = *(_DWORD *)(v8 + 4LL * OpenSubdiv::v3_6_0::Vtr::internal::Level::gatherQuadRegularInteriorPatchPoints(int,int *,int,int)const::rotationSequence[a4 + 3]); return 4LL; }
gatherQuadLinearPatchPoints: CMP ECX,0x4 JNC 0x00144c36 TEST R8D,R8D JS 0x00144bde MOV EAX,R8D MOV RDI,qword ptr [RDI + 0x1c8] MOV RDI,qword ptr [RDI + RAX*0x8] MOV R8,qword ptr [RDI] LEA EAX,[0x1 + RSI*0x2] CDQE SHL RAX,0x2 ADD RAX,qword ptr [R8 + 0x18] ADD RDI,0x18 JMP 0x00144bf3 LAB_00144bde: LEA EAX,[0x1 + RSI*0x2] CDQE SHL RAX,0x2 ADD RAX,qword ptr [RDI + 0x18] ADD RDI,0x30 LAB_00144bf3: MOVSXD RAX,dword ptr [RAX] SHL RAX,0x2 ADD RAX,qword ptr [RDI] MOV ECX,ECX LEA RSI,[0x1b6960] MOVSXD RDI,dword ptr [RSI + RCX*0x4] MOV EDI,dword ptr [RAX + RDI*0x4] MOV dword ptr [RDX],EDI MOVSXD RDI,dword ptr [RSI + RCX*0x4 + 0x4] MOV EDI,dword ptr [RAX + RDI*0x4] MOV dword ptr [RDX + 0x4],EDI MOVSXD RDI,dword ptr [RSI + RCX*0x4 + 0x8] MOV EDI,dword ptr [RAX + RDI*0x4] MOV dword ptr [RDX + 0x8],EDI MOVSXD RCX,dword ptr [RSI + RCX*0x4 + 0xc] MOV EAX,dword ptr [RAX + RCX*0x4] MOV dword ptr [RDX + 0xc],EAX MOV EAX,0x4 RET LAB_00144c36: PUSH RAX LEA RDI,[0x1b63da] LEA RSI,[0x1b5a6a] LEA RCX,[0x1b63fc] MOV EDX,0x321 CALL 0x00139540
/* OpenSubdiv::v3_6_0::Vtr::internal::Level::gatherQuadLinearPatchPoints(int, int*, int, int) const */ int8 __thiscall OpenSubdiv::v3_6_0::Vtr::internal::Level::gatherQuadLinearPatchPoints (Level *this,int param_1,int *param_2,int param_3,int param_4) { long *plVar1; int *piVar2; long lVar3; ulong uVar4; Level *pLVar5; if ((uint)param_3 < 4) { if (param_4 < 0) { piVar2 = (int *)((long)(param_1 * 2 + 1) * 4 + *(long *)(this + 0x18)); pLVar5 = this + 0x30; } else { plVar1 = *(long **)(*(long *)(this + 0x1c8) + (ulong)(uint)param_4 * 8); piVar2 = (int *)((long)(param_1 * 2 + 1) * 4 + *(long *)(*plVar1 + 0x18)); pLVar5 = (Level *)(plVar1 + 3); } lVar3 = (long)*piVar2 * 4 + *(long *)pLVar5; uVar4 = (ulong)(uint)param_3; *param_2 = *(int *)(lVar3 + (long)*(int *)(gatherQuadRegularInteriorPatchPoints(int,int*,int,int) ::rotationSequence + uVar4 * 4) * 4); param_2[1] = *(int *)(lVar3 + (long)*(int *)(gatherQuadRegularInteriorPatchPoints(int,int*,int,int) ::rotationSequence + uVar4 * 4 + 4) * 4); param_2[2] = *(int *)(lVar3 + (long)*(int *)(gatherQuadRegularInteriorPatchPoints(int,int*,int,int) ::rotationSequence + uVar4 * 4 + 8) * 4); param_2[3] = *(int *)(lVar3 + (long)*(int *)(gatherQuadRegularInteriorPatchPoints(int,int*,int,int) ::rotationSequence + uVar4 * 4 + 0xc) * 4); return 4; } /* WARNING: Subroutine does not return */ __assert_fail("(0 <= rotation) && (rotation < 4)", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/level.cpp" ,0x321, "int OpenSubdiv::v3_6_0::Vtr::internal::Level::gatherQuadLinearPatchPoints(Index, Index *, int, int) const" ); }
47,766
create_socket(PFS_socket_class*, int const*, sockaddr const*, unsigned int)
eloqsql/storage/perfschema/pfs_instr.cc
PFS_socket* create_socket(PFS_socket_class *klass, const my_socket *fd, const struct sockaddr *addr, socklen_t addr_len) { PFS_socket *pfs; pfs_dirty_state dirty_state; uint fd_used= 0; uint addr_len_used= addr_len; if (fd != NULL) fd_used= (int)*fd; if (addr_len_used > sizeof(sockaddr_storage)) addr_len_used= sizeof(sockaddr_storage); pfs= global_socket_container.allocate(& dirty_state); if (pfs != NULL) { pfs->m_fd= fd_used; /* There is no socket object, so we use the instrumentation. */ pfs->m_identity= pfs; pfs->m_class= klass; pfs->m_enabled= klass->m_enabled && flag_global_instrumentation; pfs->m_timed= klass->m_timed; pfs->m_idle= false; pfs->m_socket_stat.reset(); pfs->m_thread_owner= NULL; pfs->m_addr_len= addr_len_used; if ((addr != NULL) && (addr_len_used > 0)) { pfs->m_addr_len= addr_len_used; memcpy(&pfs->m_sock_addr, addr, addr_len_used); } else { pfs->m_addr_len= 0; } pfs->m_lock.dirty_to_allocated(& dirty_state); if (klass->is_singleton()) klass->m_singleton= pfs; } return pfs; }
O3
cpp
create_socket(PFS_socket_class*, int const*, sockaddr const*, unsigned int): pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %ecx, %r12d movq %rdx, -0x38(%rbp) movq %rdi, %rbx testq %rsi, %rsi je 0x30cf2 movl (%rsi), %r14d jmp 0x30cf5 xorl %r14d, %r14d movl $0x80, %r13d cmpl %r13d, %r12d cmovbl %r12d, %r13d leaq 0x36816f(%rip), %rdi # 0x398e78 leaq -0x2c(%rbp), %rsi callq 0x33a06 movq %rax, %r15 testq %rax, %rax je 0x30dfa movl %r14d, 0x20(%r15) movq %r15, 0x10(%r15) movq %rbx, 0xb0(%r15) leaq 0x39fecc(%rip), %rax # 0x3d0c00 xorl %ecx, %ecx cmpb $0x0, 0x4(%rbx) movzbl (%rax), %eax cmovnel %eax, %ecx movb %cl, 0x4(%r15) movb 0x5(%rbx), %al movb %al, 0x5(%r15) movb $0x0, 0xac(%r15) xorps %xmm0, %xmm0 movups %xmm0, 0xb8(%r15) movq $-0x1, %rax movq %rax, 0xc8(%r15) movups %xmm0, 0xd0(%r15) movups %xmm0, 0xe0(%r15) movq %rax, 0xf0(%r15) movups %xmm0, 0xf8(%r15) movups %xmm0, 0x108(%r15) movq %rax, 0x118(%r15) movups %xmm0, 0x120(%r15) movq $0x0, 0x18(%r15) movq -0x38(%rbp), %rsi testq %rsi, %rsi sete %al testl %r12d, %r12d sete %cl orb %al, %cl jne 0x30dd6 movl %r13d, 0xa8(%r15) movq %r15, %rdi addq $0x28, %rdi movl %r13d, %edx callq 0x26290 jmp 0x30de1 movl $0x0, 0xa8(%r15) movl -0x2c(%rbp), %eax andl $-0x4, %eax addl $0x6, %eax xchgl %eax, (%r15) testb $0x1, 0x8(%rbx) je 0x30dfa movq %r15, 0x118(%rbx) movq %r15, %rax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_Z13create_socketP16PFS_socket_classPKiPK8sockaddrj: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r12d, ecx mov [rbp+var_38], rdx mov rbx, rdi test rsi, rsi jz short loc_30CF2 mov r14d, [rsi] jmp short loc_30CF5 loc_30CF2: xor r14d, r14d loc_30CF5: mov r13d, 80h cmp r12d, r13d cmovb r13d, r12d lea rdi, global_socket_container lea rsi, [rbp+var_2C] call _ZN29PFS_buffer_scalable_containerI10PFS_socketLi256ELi256E24PFS_buffer_default_arrayIS0_E28PFS_buffer_default_allocatorIS0_EE8allocateEP15pfs_dirty_state; PFS_buffer_scalable_container<PFS_socket,256,256,PFS_buffer_default_array<PFS_socket>,PFS_buffer_default_allocator<PFS_socket>>::allocate(pfs_dirty_state *) mov r15, rax test rax, rax jz loc_30DFA mov [r15+20h], r14d mov [r15+10h], r15 mov [r15+0B0h], rbx lea rax, flag_global_instrumentation xor ecx, ecx cmp byte ptr [rbx+4], 0 movzx eax, byte ptr [rax] cmovnz ecx, eax mov [r15+4], cl mov al, [rbx+5] mov [r15+5], al mov byte ptr [r15+0ACh], 0 xorps xmm0, xmm0 movups xmmword ptr [r15+0B8h], xmm0 mov rax, 0FFFFFFFFFFFFFFFFh mov [r15+0C8h], rax movups xmmword ptr [r15+0D0h], xmm0 movups xmmword ptr [r15+0E0h], xmm0 mov [r15+0F0h], rax movups xmmword ptr [r15+0F8h], xmm0 movups xmmword ptr [r15+108h], xmm0 mov [r15+118h], rax movups xmmword ptr [r15+120h], xmm0 mov qword ptr [r15+18h], 0 mov rsi, [rbp+var_38] test rsi, rsi setz al test r12d, r12d setz cl or cl, al jnz short loc_30DD6 mov [r15+0A8h], r13d mov rdi, r15 add rdi, 28h ; '(' mov edx, r13d call _memcpy jmp short loc_30DE1 loc_30DD6: mov dword ptr [r15+0A8h], 0 loc_30DE1: mov eax, [rbp+var_2C] and eax, 0FFFFFFFCh add eax, 6 xchg eax, [r15] test byte ptr [rbx+8], 1 jz short loc_30DFA mov [rbx+118h], r15 loc_30DFA: mov rax, r15 add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
volatile __int32 * create_socket(long long a1, int *a2, long long a3, unsigned int a4) { int v5; // r14d unsigned int v6; // r13d long long v7; // rax volatile __int32 *v8; // r15 char v9; // cl _DWORD v12[11]; // [rsp+14h] [rbp-2Ch] BYREF if ( a2 ) v5 = *a2; else v5 = 0; v6 = 128; if ( a4 < 0x80 ) v6 = a4; v7 = PFS_buffer_scalable_container<PFS_socket,256,256,PFS_buffer_default_array<PFS_socket>,PFS_buffer_default_allocator<PFS_socket>>::allocate( global_socket_container, v12); v8 = (volatile __int32 *)v7; if ( v7 ) { *(_DWORD *)(v7 + 32) = v5; *(_QWORD *)(v7 + 16) = v7; *(_QWORD *)(v7 + 176) = a1; v9 = 0; if ( *(_BYTE *)(a1 + 4) ) v9 = flag_global_instrumentation[0]; *(_BYTE *)(v7 + 4) = v9; *(_BYTE *)(v7 + 5) = *(_BYTE *)(a1 + 5); *(_BYTE *)(v7 + 172) = 0; *(_OWORD *)(v7 + 184) = 0LL; *(_QWORD *)(v7 + 200) = -1LL; *(_OWORD *)(v7 + 208) = 0LL; *(_OWORD *)(v7 + 224) = 0LL; *(_QWORD *)(v7 + 240) = -1LL; *(_OWORD *)(v7 + 248) = 0LL; *(_OWORD *)(v7 + 264) = 0LL; *(_QWORD *)(v7 + 280) = -1LL; *(_OWORD *)(v7 + 288) = 0LL; *(_QWORD *)(v7 + 24) = 0LL; if ( a3 == 0 || a4 == 0 ) { *(_DWORD *)(v7 + 168) = 0; } else { *(_DWORD *)(v7 + 168) = v6; memcpy(v7 + 40, a3, v6); } _InterlockedExchange(v8, (v12[0] & 0xFFFFFFFC) + 6); if ( (*(_BYTE *)(a1 + 8) & 1) != 0 ) *(_QWORD *)(a1 + 280) = v8; } return v8; }
create_socket: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R12D,ECX MOV qword ptr [RBP + -0x38],RDX MOV RBX,RDI TEST RSI,RSI JZ 0x00130cf2 MOV R14D,dword ptr [RSI] JMP 0x00130cf5 LAB_00130cf2: XOR R14D,R14D LAB_00130cf5: MOV R13D,0x80 CMP R12D,R13D CMOVC R13D,R12D LEA RDI,[0x498e78] LEA RSI,[RBP + -0x2c] CALL 0x00133a06 MOV R15,RAX TEST RAX,RAX JZ 0x00130dfa MOV dword ptr [R15 + 0x20],R14D MOV qword ptr [R15 + 0x10],R15 MOV qword ptr [R15 + 0xb0],RBX LEA RAX,[0x4d0c00] XOR ECX,ECX CMP byte ptr [RBX + 0x4],0x0 MOVZX EAX,byte ptr [RAX] CMOVNZ ECX,EAX MOV byte ptr [R15 + 0x4],CL MOV AL,byte ptr [RBX + 0x5] MOV byte ptr [R15 + 0x5],AL MOV byte ptr [R15 + 0xac],0x0 XORPS XMM0,XMM0 MOVUPS xmmword ptr [R15 + 0xb8],XMM0 MOV RAX,-0x1 MOV qword ptr [R15 + 0xc8],RAX MOVUPS xmmword ptr [R15 + 0xd0],XMM0 MOVUPS xmmword ptr [R15 + 0xe0],XMM0 MOV qword ptr [R15 + 0xf0],RAX MOVUPS xmmword ptr [R15 + 0xf8],XMM0 MOVUPS xmmword ptr [R15 + 0x108],XMM0 MOV qword ptr [R15 + 0x118],RAX MOVUPS xmmword ptr [R15 + 0x120],XMM0 MOV qword ptr [R15 + 0x18],0x0 MOV RSI,qword ptr [RBP + -0x38] TEST RSI,RSI SETZ AL TEST R12D,R12D SETZ CL OR CL,AL JNZ 0x00130dd6 MOV dword ptr [R15 + 0xa8],R13D MOV RDI,R15 ADD RDI,0x28 MOV EDX,R13D CALL 0x00126290 JMP 0x00130de1 LAB_00130dd6: MOV dword ptr [R15 + 0xa8],0x0 LAB_00130de1: MOV EAX,dword ptr [RBP + -0x2c] AND EAX,0xfffffffc ADD EAX,0x6 XCHG dword ptr [R15],EAX TEST byte ptr [RBX + 0x8],0x1 JZ 0x00130dfa MOV qword ptr [RBX + 0x118],R15 LAB_00130dfa: MOV RAX,R15 ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* create_socket(PFS_socket_class*, int const*, sockaddr const*, unsigned int) */ int * create_socket(PFS_socket_class *param_1,int *param_2,sockaddr *param_3,uint param_4) { int *piVar1; int1 uVar2; uint uVar3; int iVar4; uint local_34; if (param_2 == (int *)0x0) { iVar4 = 0; } else { iVar4 = *param_2; } uVar3 = 0x80; if (param_4 < 0x80) { uVar3 = param_4; } piVar1 = (int *)PFS_buffer_scalable_container<PFS_socket,256,256,PFS_buffer_default_array<PFS_socket>,PFS_buffer_default_allocator<PFS_socket>> ::allocate((PFS_buffer_scalable_container<PFS_socket,256,256,PFS_buffer_default_array<PFS_socket>,PFS_buffer_default_allocator<PFS_socket>> *)global_socket_container,(pfs_dirty_state *)&local_34); if (piVar1 != (int *)0x0) { piVar1[8] = iVar4; *(int **)(piVar1 + 4) = piVar1; *(PFS_socket_class **)(piVar1 + 0x2c) = param_1; uVar2 = 0; if (param_1[4] != (PFS_socket_class)0x0) { uVar2 = flag_global_instrumentation; } *(int1 *)(piVar1 + 1) = uVar2; *(PFS_socket_class *)((long)piVar1 + 5) = param_1[5]; *(int1 *)(piVar1 + 0x2b) = 0; piVar1[0x2e] = 0; piVar1[0x2f] = 0; piVar1[0x30] = 0; piVar1[0x31] = 0; piVar1[0x32] = -1; piVar1[0x33] = -1; piVar1[0x34] = 0; piVar1[0x35] = 0; piVar1[0x36] = 0; piVar1[0x37] = 0; piVar1[0x38] = 0; piVar1[0x39] = 0; piVar1[0x3a] = 0; piVar1[0x3b] = 0; piVar1[0x3c] = -1; piVar1[0x3d] = -1; piVar1[0x3e] = 0; piVar1[0x3f] = 0; piVar1[0x40] = 0; piVar1[0x41] = 0; piVar1[0x42] = 0; piVar1[0x43] = 0; piVar1[0x44] = 0; piVar1[0x45] = 0; piVar1[0x46] = -1; piVar1[0x47] = -1; piVar1[0x48] = 0; piVar1[0x49] = 0; piVar1[0x4a] = 0; piVar1[0x4b] = 0; piVar1[6] = 0; piVar1[7] = 0; if (param_4 == 0 || param_3 == (sockaddr *)0x0) { piVar1[0x2a] = 0; } else { piVar1[0x2a] = uVar3; memcpy(piVar1 + 10,param_3,(ulong)uVar3); } LOCK(); *piVar1 = (local_34 & 0xfffffffc) + 6; UNLOCK(); if (((byte)param_1[8] & 1) != 0) { *(int **)(param_1 + 0x118) = piVar1; } } return piVar1; }
47,767
ch2x
eloqsql/strings/ctype-uca.c
static int ch2x(int ch) { if (ch >= '0' && ch <= '9') return ch - '0'; if (ch >= 'a' && ch <= 'f') return 10 + ch - 'a'; if (ch >= 'A' && ch <= 'F') return 10 + ch - 'A'; return -1; }
O0
c
ch2x: pushq %rbp movq %rsp, %rbp movl %edi, -0x8(%rbp) cmpl $0x30, -0x8(%rbp) jl 0x54e2e cmpl $0x39, -0x8(%rbp) jg 0x54e2e movl -0x8(%rbp), %eax subl $0x30, %eax movl %eax, -0x4(%rbp) jmp 0x54e69 cmpl $0x61, -0x8(%rbp) jl 0x54e48 cmpl $0x66, -0x8(%rbp) jg 0x54e48 movl -0x8(%rbp), %eax addl $0xa, %eax subl $0x61, %eax movl %eax, -0x4(%rbp) jmp 0x54e69 cmpl $0x41, -0x8(%rbp) jl 0x54e62 cmpl $0x46, -0x8(%rbp) jg 0x54e62 movl -0x8(%rbp), %eax addl $0xa, %eax subl $0x41, %eax movl %eax, -0x4(%rbp) jmp 0x54e69 movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF movl -0x4(%rbp), %eax popq %rbp retq nop
ch2x: push rbp mov rbp, rsp mov [rbp+var_8], edi cmp [rbp+var_8], 30h ; '0' jl short loc_54E2E cmp [rbp+var_8], 39h ; '9' jg short loc_54E2E mov eax, [rbp+var_8] sub eax, 30h ; '0' mov [rbp+var_4], eax jmp short loc_54E69 loc_54E2E: cmp [rbp+var_8], 61h ; 'a' jl short loc_54E48 cmp [rbp+var_8], 66h ; 'f' jg short loc_54E48 mov eax, [rbp+var_8] add eax, 0Ah sub eax, 61h ; 'a' mov [rbp+var_4], eax jmp short loc_54E69 loc_54E48: cmp [rbp+var_8], 41h ; 'A' jl short loc_54E62 cmp [rbp+var_8], 46h ; 'F' jg short loc_54E62 mov eax, [rbp+var_8] add eax, 0Ah sub eax, 41h ; 'A' mov [rbp+var_4], eax jmp short loc_54E69 loc_54E62: mov [rbp+var_4], 0FFFFFFFFh loc_54E69: mov eax, [rbp+var_4] pop rbp retn
long long ch2x(int a1) { if ( a1 < 48 || a1 > 57 ) { if ( a1 < 97 || a1 > 102 ) { if ( a1 < 65 || a1 > 70 ) return (unsigned int)-1; else return (unsigned int)(a1 - 55); } else { return (unsigned int)(a1 - 87); } } else { return (unsigned int)(a1 - 48); } }
ch2x: PUSH RBP MOV RBP,RSP MOV dword ptr [RBP + -0x8],EDI CMP dword ptr [RBP + -0x8],0x30 JL 0x00154e2e CMP dword ptr [RBP + -0x8],0x39 JG 0x00154e2e MOV EAX,dword ptr [RBP + -0x8] SUB EAX,0x30 MOV dword ptr [RBP + -0x4],EAX JMP 0x00154e69 LAB_00154e2e: CMP dword ptr [RBP + -0x8],0x61 JL 0x00154e48 CMP dword ptr [RBP + -0x8],0x66 JG 0x00154e48 MOV EAX,dword ptr [RBP + -0x8] ADD EAX,0xa SUB EAX,0x61 MOV dword ptr [RBP + -0x4],EAX JMP 0x00154e69 LAB_00154e48: CMP dword ptr [RBP + -0x8],0x41 JL 0x00154e62 CMP dword ptr [RBP + -0x8],0x46 JG 0x00154e62 MOV EAX,dword ptr [RBP + -0x8] ADD EAX,0xa SUB EAX,0x41 MOV dword ptr [RBP + -0x4],EAX JMP 0x00154e69 LAB_00154e62: MOV dword ptr [RBP + -0x4],0xffffffff LAB_00154e69: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int ch2x(int param_1) { int4 local_c; if ((param_1 < 0x30) || (0x39 < param_1)) { if ((param_1 < 0x61) || (0x66 < param_1)) { if ((param_1 < 0x41) || (0x46 < param_1)) { local_c = -1; } else { local_c = param_1 + -0x37; } } else { local_c = param_1 + -0x57; } } else { local_c = param_1 + -0x30; } return local_c; }
47,768
LefDefParser::lefiPinAntennaModel::clear()
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiMacro.cpp
void lefiPinAntennaModel::clear() { int i; if (oxide_) lefFree((char*) (oxide_)); else // did not declare return; oxide_ = 0; hasReturn_ = 0; for (i = 0; i < numAntennaGateArea_; i++) { if (antennaGateAreaLayer_[i]) lefFree(antennaGateAreaLayer_[i]); } numAntennaGateArea_ = 0; for (i = 0; i < numAntennaMaxAreaCar_; i++) { if (antennaMaxAreaCarLayer_[i]) lefFree(antennaMaxAreaCarLayer_[i]); } numAntennaMaxAreaCar_ = 0; for (i = 0; i < numAntennaMaxSideAreaCar_; i++) { if (antennaMaxSideAreaCarLayer_[i]) lefFree(antennaMaxSideAreaCarLayer_[i]); } numAntennaMaxSideAreaCar_ = 0; for (i = 0; i < numAntennaMaxCutCar_; i++) { if (antennaMaxCutCarLayer_[i]) lefFree(antennaMaxCutCarLayer_[i]); } numAntennaMaxCutCar_ = 0; lefFree((char*) (antennaGateArea_)); lefFree((char*) (antennaGateAreaLayer_)); lefFree((char*) (antennaMaxAreaCar_)); lefFree((char*) (antennaMaxAreaCarLayer_)); lefFree((char*) (antennaMaxSideAreaCar_)); lefFree((char*) (antennaMaxSideAreaCarLayer_)); lefFree((char*) (antennaMaxCutCar_)); lefFree((char*) (antennaMaxCutCarLayer_)); }
O3
cpp
LefDefParser::lefiPinAntennaModel::clear(): pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx movq (%rdi), %rdi testq %rdi, %rdi je 0x28413 callq 0x26040 movq $0x0, (%rbx) movl $0x0, 0x8(%rbx) movl 0xc(%rbx), %eax testl %eax, %eax jle 0x2832a xorl %r14d, %r14d movq 0x20(%rbx), %rcx movq (%rcx,%r14,8), %rdi testq %rdi, %rdi je 0x2831f callq 0x26040 movl 0xc(%rbx), %eax incq %r14 movslq %eax, %rcx cmpq %rcx, %r14 jl 0x2830a movl $0x0, 0xc(%rbx) movl 0x28(%rbx), %eax testl %eax, %eax jle 0x2835b xorl %r14d, %r14d movq 0x38(%rbx), %rcx movq (%rcx,%r14,8), %rdi testq %rdi, %rdi je 0x28350 callq 0x26040 movl 0x28(%rbx), %eax incq %r14 movslq %eax, %rcx cmpq %rcx, %r14 jl 0x2833b movl $0x0, 0x28(%rbx) movl 0x40(%rbx), %eax testl %eax, %eax jle 0x2838c xorl %r14d, %r14d movq 0x50(%rbx), %rcx movq (%rcx,%r14,8), %rdi testq %rdi, %rdi je 0x28381 callq 0x26040 movl 0x40(%rbx), %eax incq %r14 movslq %eax, %rcx cmpq %rcx, %r14 jl 0x2836c movl $0x0, 0x40(%rbx) movl 0x58(%rbx), %eax testl %eax, %eax jle 0x283bd xorl %r14d, %r14d movq 0x68(%rbx), %rcx movq (%rcx,%r14,8), %rdi testq %rdi, %rdi je 0x283b2 callq 0x26040 movl 0x58(%rbx), %eax incq %r14 movslq %eax, %rcx cmpq %rcx, %r14 jl 0x2839d movl $0x0, 0x58(%rbx) movq 0x18(%rbx), %rdi callq 0x26040 movq 0x20(%rbx), %rdi callq 0x26040 movq 0x30(%rbx), %rdi callq 0x26040 movq 0x38(%rbx), %rdi callq 0x26040 movq 0x48(%rbx), %rdi callq 0x26040 movq 0x50(%rbx), %rdi callq 0x26040 movq 0x60(%rbx), %rdi callq 0x26040 movq 0x68(%rbx), %rdi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x26040 addq $0x8, %rsp popq %rbx popq %r14 retq nop
_ZN12LefDefParser19lefiPinAntennaModel5clearEv: push r14 push rbx push rax mov rbx, rdi mov rdi, [rdi]; this test rdi, rdi jz loc_28413 call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *) mov qword ptr [rbx], 0 mov dword ptr [rbx+8], 0 mov eax, [rbx+0Ch] test eax, eax jle short loc_2832A xor r14d, r14d loc_2830A: mov rcx, [rbx+20h] mov rdi, [rcx+r14*8]; this test rdi, rdi jz short loc_2831F call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *) mov eax, [rbx+0Ch] loc_2831F: inc r14 movsxd rcx, eax cmp r14, rcx jl short loc_2830A loc_2832A: mov dword ptr [rbx+0Ch], 0 mov eax, [rbx+28h] test eax, eax jle short loc_2835B xor r14d, r14d loc_2833B: mov rcx, [rbx+38h] mov rdi, [rcx+r14*8]; this test rdi, rdi jz short loc_28350 call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *) mov eax, [rbx+28h] loc_28350: inc r14 movsxd rcx, eax cmp r14, rcx jl short loc_2833B loc_2835B: mov dword ptr [rbx+28h], 0 mov eax, [rbx+40h] test eax, eax jle short loc_2838C xor r14d, r14d loc_2836C: mov rcx, [rbx+50h] mov rdi, [rcx+r14*8]; this test rdi, rdi jz short loc_28381 call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *) mov eax, [rbx+40h] loc_28381: inc r14 movsxd rcx, eax cmp r14, rcx jl short loc_2836C loc_2838C: mov dword ptr [rbx+40h], 0 mov eax, [rbx+58h] test eax, eax jle short loc_283BD xor r14d, r14d loc_2839D: mov rcx, [rbx+68h] mov rdi, [rcx+r14*8]; this test rdi, rdi jz short loc_283B2 call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *) mov eax, [rbx+58h] loc_283B2: inc r14 movsxd rcx, eax cmp r14, rcx jl short loc_2839D loc_283BD: mov dword ptr [rbx+58h], 0 mov rdi, [rbx+18h]; this call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *) mov rdi, [rbx+20h]; this call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *) mov rdi, [rbx+30h]; this call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *) mov rdi, [rbx+38h]; this call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *) mov rdi, [rbx+48h]; this call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *) mov rdi, [rbx+50h]; this call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *) mov rdi, [rbx+60h]; this call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *) mov rdi, [rbx+68h]; this add rsp, 8 pop rbx pop r14 jmp _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *) loc_28413: add rsp, 8 pop rbx pop r14 retn
long long LefDefParser::lefiPinAntennaModel::clear(LefDefParser::lefiPinAntennaModel *this, void *a2) { long long result; // rax LefDefParser *v4; // rdi int v5; // eax long long i; // r14 LefDefParser *v7; // rdi int v8; // eax long long j; // r14 LefDefParser *v10; // rdi int v11; // eax long long k; // r14 LefDefParser *v13; // rdi int v14; // eax long long m; // r14 LefDefParser *v16; // rdi v4 = *(LefDefParser **)this; if ( v4 ) { LefDefParser::lefFree(v4, a2); *(_QWORD *)this = 0LL; *((_DWORD *)this + 2) = 0; v5 = *((_DWORD *)this + 3); if ( v5 > 0 ) { for ( i = 0LL; i < v5; ++i ) { v7 = *(LefDefParser **)(*((_QWORD *)this + 4) + 8 * i); if ( v7 ) { LefDefParser::lefFree(v7, a2); v5 = *((_DWORD *)this + 3); } } } *((_DWORD *)this + 3) = 0; v8 = *((_DWORD *)this + 10); if ( v8 > 0 ) { for ( j = 0LL; j < v8; ++j ) { v10 = *(LefDefParser **)(*((_QWORD *)this + 7) + 8 * j); if ( v10 ) { LefDefParser::lefFree(v10, a2); v8 = *((_DWORD *)this + 10); } } } *((_DWORD *)this + 10) = 0; v11 = *((_DWORD *)this + 16); if ( v11 > 0 ) { for ( k = 0LL; k < v11; ++k ) { v13 = *(LefDefParser **)(*((_QWORD *)this + 10) + 8 * k); if ( v13 ) { LefDefParser::lefFree(v13, a2); v11 = *((_DWORD *)this + 16); } } } *((_DWORD *)this + 16) = 0; v14 = *((_DWORD *)this + 22); if ( v14 > 0 ) { for ( m = 0LL; m < v14; ++m ) { v16 = *(LefDefParser **)(*((_QWORD *)this + 13) + 8 * m); if ( v16 ) { LefDefParser::lefFree(v16, a2); v14 = *((_DWORD *)this + 22); } } } *((_DWORD *)this + 22) = 0; LefDefParser::lefFree(*((LefDefParser **)this + 3), a2); LefDefParser::lefFree(*((LefDefParser **)this + 4), a2); LefDefParser::lefFree(*((LefDefParser **)this + 6), a2); LefDefParser::lefFree(*((LefDefParser **)this + 7), a2); LefDefParser::lefFree(*((LefDefParser **)this + 9), a2); LefDefParser::lefFree(*((LefDefParser **)this + 10), a2); LefDefParser::lefFree(*((LefDefParser **)this + 12), a2); return LefDefParser::lefFree(*((LefDefParser **)this + 13), a2); } return result; }
clear: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI MOV RDI,qword ptr [RDI] TEST RDI,RDI JZ 0x00128413 CALL 0x00126040 MOV qword ptr [RBX],0x0 MOV dword ptr [RBX + 0x8],0x0 MOV EAX,dword ptr [RBX + 0xc] TEST EAX,EAX JLE 0x0012832a XOR R14D,R14D LAB_0012830a: MOV RCX,qword ptr [RBX + 0x20] MOV RDI,qword ptr [RCX + R14*0x8] TEST RDI,RDI JZ 0x0012831f CALL 0x00126040 MOV EAX,dword ptr [RBX + 0xc] LAB_0012831f: INC R14 MOVSXD RCX,EAX CMP R14,RCX JL 0x0012830a LAB_0012832a: MOV dword ptr [RBX + 0xc],0x0 MOV EAX,dword ptr [RBX + 0x28] TEST EAX,EAX JLE 0x0012835b XOR R14D,R14D LAB_0012833b: MOV RCX,qword ptr [RBX + 0x38] MOV RDI,qword ptr [RCX + R14*0x8] TEST RDI,RDI JZ 0x00128350 CALL 0x00126040 MOV EAX,dword ptr [RBX + 0x28] LAB_00128350: INC R14 MOVSXD RCX,EAX CMP R14,RCX JL 0x0012833b LAB_0012835b: MOV dword ptr [RBX + 0x28],0x0 MOV EAX,dword ptr [RBX + 0x40] TEST EAX,EAX JLE 0x0012838c XOR R14D,R14D LAB_0012836c: MOV RCX,qword ptr [RBX + 0x50] MOV RDI,qword ptr [RCX + R14*0x8] TEST RDI,RDI JZ 0x00128381 CALL 0x00126040 MOV EAX,dword ptr [RBX + 0x40] LAB_00128381: INC R14 MOVSXD RCX,EAX CMP R14,RCX JL 0x0012836c LAB_0012838c: MOV dword ptr [RBX + 0x40],0x0 MOV EAX,dword ptr [RBX + 0x58] TEST EAX,EAX JLE 0x001283bd XOR R14D,R14D LAB_0012839d: MOV RCX,qword ptr [RBX + 0x68] MOV RDI,qword ptr [RCX + R14*0x8] TEST RDI,RDI JZ 0x001283b2 CALL 0x00126040 MOV EAX,dword ptr [RBX + 0x58] LAB_001283b2: INC R14 MOVSXD RCX,EAX CMP R14,RCX JL 0x0012839d LAB_001283bd: MOV dword ptr [RBX + 0x58],0x0 MOV RDI,qword ptr [RBX + 0x18] CALL 0x00126040 MOV RDI,qword ptr [RBX + 0x20] CALL 0x00126040 MOV RDI,qword ptr [RBX + 0x30] CALL 0x00126040 MOV RDI,qword ptr [RBX + 0x38] CALL 0x00126040 MOV RDI,qword ptr [RBX + 0x48] CALL 0x00126040 MOV RDI,qword ptr [RBX + 0x50] CALL 0x00126040 MOV RDI,qword ptr [RBX + 0x60] CALL 0x00126040 MOV RDI,qword ptr [RBX + 0x68] ADD RSP,0x8 POP RBX POP R14 JMP 0x00126040 LAB_00128413: ADD RSP,0x8 POP RBX POP R14 RET
/* LefDefParser::lefiPinAntennaModel::clear() */ void __thiscall LefDefParser::lefiPinAntennaModel::clear(lefiPinAntennaModel *this) { void *pvVar1; int iVar2; long lVar3; if (*(void **)this != (void *)0x0) { lefFree(*(void **)this); *(int8 *)this = 0; *(int4 *)(this + 8) = 0; iVar2 = *(int *)(this + 0xc); if (0 < iVar2) { lVar3 = 0; do { pvVar1 = *(void **)(*(long *)(this + 0x20) + lVar3 * 8); if (pvVar1 != (void *)0x0) { lefFree(pvVar1); iVar2 = *(int *)(this + 0xc); } lVar3 = lVar3 + 1; } while (lVar3 < iVar2); } *(int4 *)(this + 0xc) = 0; iVar2 = *(int *)(this + 0x28); if (0 < iVar2) { lVar3 = 0; do { pvVar1 = *(void **)(*(long *)(this + 0x38) + lVar3 * 8); if (pvVar1 != (void *)0x0) { lefFree(pvVar1); iVar2 = *(int *)(this + 0x28); } lVar3 = lVar3 + 1; } while (lVar3 < iVar2); } *(int4 *)(this + 0x28) = 0; iVar2 = *(int *)(this + 0x40); if (0 < iVar2) { lVar3 = 0; do { pvVar1 = *(void **)(*(long *)(this + 0x50) + lVar3 * 8); if (pvVar1 != (void *)0x0) { lefFree(pvVar1); iVar2 = *(int *)(this + 0x40); } lVar3 = lVar3 + 1; } while (lVar3 < iVar2); } *(int4 *)(this + 0x40) = 0; iVar2 = *(int *)(this + 0x58); if (0 < iVar2) { lVar3 = 0; do { pvVar1 = *(void **)(*(long *)(this + 0x68) + lVar3 * 8); if (pvVar1 != (void *)0x0) { lefFree(pvVar1); iVar2 = *(int *)(this + 0x58); } lVar3 = lVar3 + 1; } while (lVar3 < iVar2); } *(int4 *)(this + 0x58) = 0; lefFree(*(void **)(this + 0x18)); lefFree(*(void **)(this + 0x20)); lefFree(*(void **)(this + 0x30)); lefFree(*(void **)(this + 0x38)); lefFree(*(void **)(this + 0x48)); lefFree(*(void **)(this + 0x50)); lefFree(*(void **)(this + 0x60)); lefFree(*(void **)(this + 0x68)); return; } return; }
47,769
google::protobuf::UninterpretedOption_NamePart::SharedCtor(google::protobuf::Arena*, bool)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc
inline void UninterpretedOption_NamePart::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){} , /*decltype(_impl_._cached_size_)*/{} , decltype(_impl_.name_part_){} , decltype(_impl_.is_extension_){false} }; _impl_.name_part_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.name_part_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING }
O0
cpp
google::protobuf::UninterpretedOption_NamePart::SharedCtor(google::protobuf::Arena*, bool): subq $0x48, %rsp movb %dl, %al movq %rdi, 0x38(%rsp) movq %rsi, 0x30(%rsp) andb $0x1, %al movb %al, 0x2f(%rsp) movq 0x38(%rsp), %rax movq %rax, 0x8(%rsp) addq $0x10, %rax movq %rax, 0x10(%rsp) movq %rax, 0x40(%rsp) movq 0x40(%rsp), %rax movq %rax, %rcx addq $0x4, %rcx movq %rcx, 0x18(%rsp) movq %rax, 0x20(%rsp) movq 0x20(%rsp), %rax movq 0x18(%rsp), %rcx movl $0x0, (%rax) addq $0x4, %rax cmpq %rcx, %rax movq %rax, 0x20(%rsp) jne 0xdb7e4 movq 0x10(%rsp), %rdi addq $0x4, %rdi movq %rdi, (%rsp) xorl %esi, %esi movl $0x4, %edx callq 0x13200 movq (%rsp), %rdi callq 0xd3ff0 movq 0x10(%rsp), %rdi addq $0x8, %rdi xorl %esi, %esi movl $0x8, %edx callq 0x13200 movq 0x10(%rsp), %rax movq 0x8(%rsp), %rdi movb $0x0, 0x10(%rax) addq $0x10, %rdi addq $0x8, %rdi callq 0xd4b40 addq $0x48, %rsp retq nopl (%rax)
_ZN6google8protobuf28UninterpretedOption_NamePart10SharedCtorEPNS0_5ArenaEb: sub rsp, 48h mov al, dl mov [rsp+48h+var_10], rdi mov [rsp+48h+var_18], rsi and al, 1 mov [rsp+48h+var_19], al mov rax, [rsp+48h+var_10] mov [rsp+48h+var_40], rax add rax, 10h mov [rsp+48h+var_38], rax mov [rsp+48h+var_8], rax mov rax, [rsp+48h+var_8] mov rcx, rax add rcx, 4 mov [rsp+48h+var_30], rcx mov [rsp+48h+var_28], rax loc_DB7E4: mov rax, [rsp+48h+var_28] mov rcx, [rsp+48h+var_30] mov dword ptr [rax], 0 add rax, 4 cmp rax, rcx mov [rsp+48h+var_28], rax jnz short loc_DB7E4 mov rdi, [rsp+48h+var_38] add rdi, 4 mov [rsp+48h+var_48], rdi xor esi, esi mov edx, 4 call _memset mov rdi, [rsp+48h+var_48]; this call _ZN6google8protobuf8internal10CachedSizeC2Ev; google::protobuf::internal::CachedSize::CachedSize(void) mov rdi, [rsp+48h+var_38] add rdi, 8 xor esi, esi mov edx, 8 call _memset mov rax, [rsp+48h+var_38] mov rdi, [rsp+48h+var_40] mov byte ptr [rax+10h], 0 add rdi, 10h add rdi, 8; this call _ZN6google8protobuf8internal14ArenaStringPtr11InitDefaultEv; google::protobuf::internal::ArenaStringPtr::InitDefault(void) add rsp, 48h retn
google::protobuf::internal::ArenaStringPtr * google::protobuf::UninterpretedOption_NamePart::SharedCtor( google::protobuf::UninterpretedOption_NamePart *this, google::protobuf::Arena *a2) { google::protobuf::UninterpretedOption_NamePart *v3; // [rsp+20h] [rbp-28h] v3 = (google::protobuf::UninterpretedOption_NamePart *)((char *)this + 16); do { *(_DWORD *)v3 = 0; v3 = (google::protobuf::UninterpretedOption_NamePart *)((char *)v3 + 4); } while ( v3 != (google::protobuf::UninterpretedOption_NamePart *)((char *)this + 20) ); memset((char *)this + 20, 0LL, 4LL); google::protobuf::internal::CachedSize::CachedSize((google::protobuf::UninterpretedOption_NamePart *)((char *)this + 20)); memset((char *)this + 24, 0LL, 8LL); *((_BYTE *)this + 32) = 0; return google::protobuf::internal::ArenaStringPtr::InitDefault((google::protobuf::UninterpretedOption_NamePart *)((char *)this + 24)); }
SharedCtor: SUB RSP,0x48 MOV AL,DL MOV qword ptr [RSP + 0x38],RDI MOV qword ptr [RSP + 0x30],RSI AND AL,0x1 MOV byte ptr [RSP + 0x2f],AL MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x8],RAX ADD RAX,0x10 MOV qword ptr [RSP + 0x10],RAX MOV qword ptr [RSP + 0x40],RAX MOV RAX,qword ptr [RSP + 0x40] MOV RCX,RAX ADD RCX,0x4 MOV qword ptr [RSP + 0x18],RCX MOV qword ptr [RSP + 0x20],RAX LAB_001db7e4: MOV RAX,qword ptr [RSP + 0x20] MOV RCX,qword ptr [RSP + 0x18] MOV dword ptr [RAX],0x0 ADD RAX,0x4 CMP RAX,RCX MOV qword ptr [RSP + 0x20],RAX JNZ 0x001db7e4 MOV RDI,qword ptr [RSP + 0x10] ADD RDI,0x4 MOV qword ptr [RSP],RDI XOR ESI,ESI MOV EDX,0x4 CALL 0x00113200 MOV RDI,qword ptr [RSP] CALL 0x001d3ff0 MOV RDI,qword ptr [RSP + 0x10] ADD RDI,0x8 XOR ESI,ESI MOV EDX,0x8 CALL 0x00113200 MOV RAX,qword ptr [RSP + 0x10] MOV RDI,qword ptr [RSP + 0x8] MOV byte ptr [RAX + 0x10],0x0 ADD RDI,0x10 ADD RDI,0x8 CALL 0x001d4b40 ADD RSP,0x48 RET
/* google::protobuf::UninterpretedOption_NamePart::SharedCtor(google::protobuf::Arena*, bool) */ void google::protobuf::UninterpretedOption_NamePart::SharedCtor(Arena *param_1,bool param_2) { Arena *local_28; local_28 = param_1 + 0x10; do { *(int4 *)local_28 = 0; local_28 = local_28 + 4; } while (local_28 != param_1 + 0x14); memset((CachedSize *)(param_1 + 0x14),0,4); internal::CachedSize::CachedSize((CachedSize *)(param_1 + 0x14)); memset(param_1 + 0x18,0,8); param_1[0x20] = (Arena)0x0; internal::ArenaStringPtr::InitDefault((ArenaStringPtr *)(param_1 + 0x18)); return; }
47,770
my_strxfrm_desc_and_reverse
eloqsql/strings/ctype-simple.c
void my_strxfrm_desc_and_reverse(uchar *str, uchar *strend, uint flags, uint level) { if (flags & (MY_STRXFRM_DESC_LEVEL1 << level)) { if (flags & (MY_STRXFRM_REVERSE_LEVEL1 << level)) { for (strend--; str <= strend;) { uchar tmp= *str; *str++= ~*strend; *strend--= ~tmp; } } else { for (; str < strend; str++) *str= ~*str; } } else if (flags & (MY_STRXFRM_REVERSE_LEVEL1 << level)) { for (strend--; str < strend;) { uchar tmp= *str; *str++= *strend; *strend--= tmp; } } }
O0
c
my_strxfrm_desc_and_reverse: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movl %ecx, -0x18(%rbp) movl -0x14(%rbp), %eax movl -0x18(%rbp), %ecx movl $0x100, %edx # imm = 0x100 shll %cl, %edx movl %edx, %ecx andl %ecx, %eax cmpl $0x0, %eax je 0x4ea8c movl -0x14(%rbp), %eax movl -0x18(%rbp), %ecx movl $0x10000, %edx # imm = 0x10000 shll %cl, %edx movl %edx, %ecx andl %ecx, %eax cmpl $0x0, %eax je 0x4ea5c movq -0x10(%rbp), %rax addq $-0x1, %rax movq %rax, -0x10(%rbp) movq -0x8(%rbp), %rax cmpq -0x10(%rbp), %rax ja 0x4ea5a movq -0x8(%rbp), %rax movb (%rax), %al movb %al, -0x19(%rbp) movq -0x10(%rbp), %rax movzbl (%rax), %eax xorl $-0x1, %eax movb %al, %cl movq -0x8(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x8(%rbp) movb %cl, (%rax) movzbl -0x19(%rbp), %eax xorl $-0x1, %eax movb %al, %cl movq -0x10(%rbp), %rax movq %rax, %rdx addq $-0x1, %rdx movq %rdx, -0x10(%rbp) movb %cl, (%rax) jmp 0x4ea0e jmp 0x4ea8a jmp 0x4ea5e movq -0x8(%rbp), %rax cmpq -0x10(%rbp), %rax jae 0x4ea88 movq -0x8(%rbp), %rax movzbl (%rax), %eax xorl $-0x1, %eax movb %al, %cl movq -0x8(%rbp), %rax movb %cl, (%rax) movq -0x8(%rbp), %rax addq $0x1, %rax movq %rax, -0x8(%rbp) jmp 0x4ea5e jmp 0x4ea8a jmp 0x4eaf2 movl -0x14(%rbp), %eax movl -0x18(%rbp), %ecx movl $0x10000, %edx # imm = 0x10000 shll %cl, %edx movl %edx, %ecx andl %ecx, %eax cmpl $0x0, %eax je 0x4eaf0 movq -0x10(%rbp), %rax addq $-0x1, %rax movq %rax, -0x10(%rbp) movq -0x8(%rbp), %rax cmpq -0x10(%rbp), %rax jae 0x4eaee movq -0x8(%rbp), %rax movb (%rax), %al movb %al, -0x1a(%rbp) movq -0x10(%rbp), %rax movb (%rax), %cl movq -0x8(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x8(%rbp) movb %cl, (%rax) movb -0x1a(%rbp), %cl movq -0x10(%rbp), %rax movq %rax, %rdx addq $-0x1, %rdx movq %rdx, -0x10(%rbp) movb %cl, (%rax) jmp 0x4eaae jmp 0x4eaf0 jmp 0x4eaf2 popq %rbp retq nopw %cs:(%rax,%rax)
my_strxfrm_desc_and_reverse: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx mov [rbp+var_18], ecx mov eax, [rbp+var_14] mov ecx, [rbp+var_18] mov edx, 100h shl edx, cl mov ecx, edx and eax, ecx cmp eax, 0 jz loc_4EA8C mov eax, [rbp+var_14] mov ecx, [rbp+var_18] mov edx, 10000h shl edx, cl mov ecx, edx and eax, ecx cmp eax, 0 jz short loc_4EA5C mov rax, [rbp+var_10] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_10], rax loc_4EA0E: mov rax, [rbp+var_8] cmp rax, [rbp+var_10] ja short loc_4EA5A mov rax, [rbp+var_8] mov al, [rax] mov [rbp+var_19], al mov rax, [rbp+var_10] movzx eax, byte ptr [rax] xor eax, 0FFFFFFFFh mov cl, al mov rax, [rbp+var_8] mov rdx, rax add rdx, 1 mov [rbp+var_8], rdx mov [rax], cl movzx eax, [rbp+var_19] xor eax, 0FFFFFFFFh mov cl, al mov rax, [rbp+var_10] mov rdx, rax add rdx, 0FFFFFFFFFFFFFFFFh mov [rbp+var_10], rdx mov [rax], cl jmp short loc_4EA0E loc_4EA5A: jmp short loc_4EA8A loc_4EA5C: jmp short $+2 loc_4EA5E: mov rax, [rbp+var_8] cmp rax, [rbp+var_10] jnb short loc_4EA88 mov rax, [rbp+var_8] movzx eax, byte ptr [rax] xor eax, 0FFFFFFFFh mov cl, al mov rax, [rbp+var_8] mov [rax], cl mov rax, [rbp+var_8] add rax, 1 mov [rbp+var_8], rax jmp short loc_4EA5E loc_4EA88: jmp short $+2 loc_4EA8A: jmp short loc_4EAF2 loc_4EA8C: mov eax, [rbp+var_14] mov ecx, [rbp+var_18] mov edx, 10000h shl edx, cl mov ecx, edx and eax, ecx cmp eax, 0 jz short loc_4EAF0 mov rax, [rbp+var_10] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_10], rax loc_4EAAE: mov rax, [rbp+var_8] cmp rax, [rbp+var_10] jnb short loc_4EAEE mov rax, [rbp+var_8] mov al, [rax] mov [rbp+var_1A], al mov rax, [rbp+var_10] mov cl, [rax] mov rax, [rbp+var_8] mov rdx, rax add rdx, 1 mov [rbp+var_8], rdx mov [rax], cl mov cl, [rbp+var_1A] mov rax, [rbp+var_10] mov rdx, rax add rdx, 0FFFFFFFFFFFFFFFFh mov [rbp+var_10], rdx mov [rax], cl jmp short loc_4EAAE loc_4EAEE: jmp short $+2 loc_4EAF0: jmp short $+2 loc_4EAF2: pop rbp retn
_BYTE * my_strxfrm_desc_and_reverse(_BYTE *a1, unsigned long long a2, unsigned int a3, char a4) { _BYTE *result; // rax _BYTE *v5; // rax _BYTE *v6; // rax _BYTE *v7; // rax _BYTE *v8; // rax char v9; // [rsp+0h] [rbp-1Ah] char v10; // [rsp+1h] [rbp-19h] _BYTE *i; // [rsp+Ah] [rbp-10h] _BYTE *j; // [rsp+Ah] [rbp-10h] if ( ((256 << a4) & a3) != 0 ) { if ( ((0x10000 << a4) & a3) != 0 ) { for ( i = (_BYTE *)(a2 - 1); ; --i ) { result = a1; if ( a1 > i ) break; v10 = *a1; v5 = a1++; *v5 = ~*i; v6 = i; *v6 = ~v10; } } else { while ( 1 ) { result = a1; if ( (unsigned long long)a1 >= a2 ) break; *a1 = ~*a1; ++a1; } } } else { result = (_BYTE *)((0x10000 << a4) & a3); if ( (_DWORD)result ) { for ( j = (_BYTE *)(a2 - 1); ; --j ) { result = a1; if ( a1 >= j ) break; v9 = *a1; v7 = a1++; *v7 = *j; v8 = j; *v8 = v9; } } } return result; }
my_strxfrm_desc_and_reverse: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX MOV dword ptr [RBP + -0x18],ECX MOV EAX,dword ptr [RBP + -0x14] MOV ECX,dword ptr [RBP + -0x18] MOV EDX,0x100 SHL EDX,CL MOV ECX,EDX AND EAX,ECX CMP EAX,0x0 JZ 0x0014ea8c MOV EAX,dword ptr [RBP + -0x14] MOV ECX,dword ptr [RBP + -0x18] MOV EDX,0x10000 SHL EDX,CL MOV ECX,EDX AND EAX,ECX CMP EAX,0x0 JZ 0x0014ea5c MOV RAX,qword ptr [RBP + -0x10] ADD RAX,-0x1 MOV qword ptr [RBP + -0x10],RAX LAB_0014ea0e: MOV RAX,qword ptr [RBP + -0x8] CMP RAX,qword ptr [RBP + -0x10] JA 0x0014ea5a MOV RAX,qword ptr [RBP + -0x8] MOV AL,byte ptr [RAX] MOV byte ptr [RBP + -0x19],AL MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX] XOR EAX,0xffffffff MOV CL,AL MOV RAX,qword ptr [RBP + -0x8] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x8],RDX MOV byte ptr [RAX],CL MOVZX EAX,byte ptr [RBP + -0x19] XOR EAX,0xffffffff MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV RDX,RAX ADD RDX,-0x1 MOV qword ptr [RBP + -0x10],RDX MOV byte ptr [RAX],CL JMP 0x0014ea0e LAB_0014ea5a: JMP 0x0014ea8a LAB_0014ea5c: JMP 0x0014ea5e LAB_0014ea5e: MOV RAX,qword ptr [RBP + -0x8] CMP RAX,qword ptr [RBP + -0x10] JNC 0x0014ea88 MOV RAX,qword ptr [RBP + -0x8] MOVZX EAX,byte ptr [RAX] XOR EAX,0xffffffff MOV CL,AL MOV RAX,qword ptr [RBP + -0x8] MOV byte ptr [RAX],CL MOV RAX,qword ptr [RBP + -0x8] ADD RAX,0x1 MOV qword ptr [RBP + -0x8],RAX JMP 0x0014ea5e LAB_0014ea88: JMP 0x0014ea8a LAB_0014ea8a: JMP 0x0014eaf2 LAB_0014ea8c: MOV EAX,dword ptr [RBP + -0x14] MOV ECX,dword ptr [RBP + -0x18] MOV EDX,0x10000 SHL EDX,CL MOV ECX,EDX AND EAX,ECX CMP EAX,0x0 JZ 0x0014eaf0 MOV RAX,qword ptr [RBP + -0x10] ADD RAX,-0x1 MOV qword ptr [RBP + -0x10],RAX LAB_0014eaae: MOV RAX,qword ptr [RBP + -0x8] CMP RAX,qword ptr [RBP + -0x10] JNC 0x0014eaee MOV RAX,qword ptr [RBP + -0x8] MOV AL,byte ptr [RAX] MOV byte ptr [RBP + -0x1a],AL MOV RAX,qword ptr [RBP + -0x10] MOV CL,byte ptr [RAX] MOV RAX,qword ptr [RBP + -0x8] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x8],RDX MOV byte ptr [RAX],CL MOV CL,byte ptr [RBP + -0x1a] MOV RAX,qword ptr [RBP + -0x10] MOV RDX,RAX ADD RDX,-0x1 MOV qword ptr [RBP + -0x10],RDX MOV byte ptr [RAX],CL JMP 0x0014eaae LAB_0014eaee: JMP 0x0014eaf0 LAB_0014eaf0: JMP 0x0014eaf2 LAB_0014eaf2: POP RBP RET
void my_strxfrm_desc_and_reverse(byte *param_1,byte *param_2,uint param_3,byte param_4) { byte bVar1; byte *local_18; byte *local_10; if ((param_3 & 0x100 << (param_4 & 0x1f)) == 0) { if ((param_3 & 0x10000 << (param_4 & 0x1f)) != 0) { local_18 = param_2 + -1; local_10 = param_1; while (local_10 < local_18) { bVar1 = *local_10; *local_10 = *local_18; *local_18 = bVar1; local_18 = local_18 + -1; local_10 = local_10 + 1; } } } else { local_10 = param_1; if ((param_3 & 0x10000 << (param_4 & 0x1f)) == 0) { for (; local_10 < param_2; local_10 = local_10 + 1) { *local_10 = *local_10 ^ 0xff; } } else { local_18 = param_2 + -1; local_10 = param_1; while (local_10 <= local_18) { bVar1 = *local_10; *local_10 = *local_18 ^ 0xff; *local_18 = bVar1 ^ 0xff; local_18 = local_18 + -1; local_10 = local_10 + 1; } } } return; }
47,771
get_fps_string[abi:cxx11](float)
Depths-CPP/src/camera_depth_estimation.cpp
std::string get_fps_string(float fps) { std::stringstream ss; ss << std::fixed << std::setprecision(1) << fps << " FPS"; return ss.str(); }
O3
cpp
get_fps_string[abi:cxx11](float): pushq %rbx subq $0x190, %rsp # imm = 0x190 vmovss %xmm0, 0x4(%rsp) movq %rdi, %rbx leaq 0x8(%rsp), %rdi callq 0x7330 leaq 0x18(%rsp), %rdi movq (%rdi), %rax movq -0x18(%rax), %rcx movl $0xfffffefb, %edx # imm = 0xFFFFFEFB andl 0x30(%rsp,%rcx), %edx orl $0x4, %edx movl %edx, 0x30(%rsp,%rcx) movq -0x18(%rax), %rax movq $0x1, 0x20(%rsp,%rax) vcvtss2sd 0x4(%rsp), %xmm1, %xmm0 callq 0x73e0 leaq 0x6799(%rip), %rsi # 0x10328 movl $0x4, %edx movq %rax, %rdi callq 0x7170 leaq 0x20(%rsp), %rsi movq %rbx, %rdi callq 0x7340 movq 0xb448(%rip), %rsi # 0x14ff8 leaq 0x8(%rsp), %rdi callq 0x7510 leaq 0x88(%rsp), %rdi callq 0x7520 movq %rbx, %rax addq $0x190, %rsp # imm = 0x190 popq %rbx retq movq %rax, %rbx movq 0xb41b(%rip), %rsi # 0x14ff8 leaq 0x8(%rsp), %rdi callq 0x7510 leaq 0x88(%rsp), %rdi callq 0x7520 movq %rbx, %rdi callq 0x73a0
_Z14get_fps_stringB5cxx11f: push rbx sub rsp, 190h vmovss [rsp+198h+var_194], xmm0 mov rbx, rdi lea rdi, [rsp+198h+var_190] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(void) lea rdi, [rsp+198h+var_180] mov rax, [rdi] mov rcx, [rax-18h] mov edx, 0FFFFFEFBh and edx, [rsp+rcx+198h+var_168] or edx, 4 mov [rsp+rcx+198h+var_168], edx mov rax, [rax-18h] mov [rsp+rax+198h+var_178], 1 vcvtss2sd xmm0, xmm1, [rsp+198h+var_194] call __ZNSo9_M_insertIdEERSoT_; std::ostream::_M_insert<double>(double) lea rsi, aFps; " FPS" mov edx, 4 mov rdi, rax call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rsi, [rsp+198h+var_178] mov rdi, rbx call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void) mov rsi, cs:_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+198h+var_190] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream() lea rdi, [rsp+198h+var_110]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() mov rax, rbx add rsp, 190h pop rbx retn mov rbx, rax mov rsi, cs:_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+arg_0] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream() lea rdi, [rsp+arg_80]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() mov rdi, rbx call __Unwind_Resume
long long get_fps_string[abi:cxx11](long long a1, __m128 _XMM0, __m128 _XMM1) { long long v3; // rax long long v5; // rax _BYTE v8[16]; // [rsp+8h] [rbp-190h] BYREF long long v9; // [rsp+18h] [rbp-180h] _QWORD v10[13]; // [rsp+20h] [rbp-178h] BYREF _BYTE v11[272]; // [rsp+88h] [rbp-110h] BYREF __asm { vmovss [rsp+198h+var_194], xmm0 } std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(v8); v3 = v9; *(_DWORD *)((char *)&v10[2] + *(_QWORD *)(v9 - 24)) = *(_DWORD *)((_BYTE *)&v10[2] + *(_QWORD *)(v9 - 24)) & 0xFFFFFEFB | 4; *(_QWORD *)((char *)v10 + *(_QWORD *)(v3 - 24)) = 1LL; __asm { vcvtss2sd xmm0, xmm1, [rsp+198h+var_194] } v5 = std::ostream::_M_insert<double>(*(double *)&_XMM0); std::__ostream_insert<char,std::char_traits<char>>(v5, " FPS", 4LL); std::stringbuf::str(a1, v10); std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream( v8, &`VTT for'std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>); std::ios_base::~ios_base((std::ios_base *)v11); return a1; }
get_fps_string[abi:cxx11]: PUSH RBX SUB RSP,0x190 VMOVSS dword ptr [RSP + 0x4],XMM0 MOV RBX,RDI LEA RDI,[RSP + 0x8] CALL 0x00107330 LEA RDI,[RSP + 0x18] MOV RAX,qword ptr [RDI] MOV RCX,qword ptr [RAX + -0x18] MOV EDX,0xfffffefb AND EDX,dword ptr [RSP + RCX*0x1 + 0x30] OR EDX,0x4 MOV dword ptr [RSP + RCX*0x1 + 0x30],EDX MOV RAX,qword ptr [RAX + -0x18] MOV qword ptr [RSP + RAX*0x1 + 0x20],0x1 VCVTSS2SD XMM0,XMM1,dword ptr [RSP + 0x4] LAB_00109b83: CALL 0x001073e0 LEA RSI,[0x110328] MOV EDX,0x4 MOV RDI,RAX CALL 0x00107170 LEA RSI,[RSP + 0x20] MOV RDI,RBX CALL 0x00107340 LAB_00109ba9: MOV RSI,qword ptr [0x00114ff8] LEA RDI,[RSP + 0x8] CALL 0x00107510 LEA RDI,[RSP + 0x88] CALL 0x00107520 MOV RAX,RBX ADD RSP,0x190 POP RBX RET
/* get_fps_string[abi:cxx11](float) */ void get_fps_string_abi_cxx11_(float param_1) { ostream *poVar1; stringstream local_190 [16]; long local_180; int8 local_178 [2]; uint auStack_168 [22]; ios_base local_110 [264]; std::__cxx11::stringstream::stringstream(local_190); *(uint *)((long)auStack_168 + *(long *)(local_180 + -0x18)) = *(uint *)((long)auStack_168 + *(long *)(local_180 + -0x18)) & 0xfffffefb | 4; *(int8 *)((long)local_178 + *(long *)(local_180 + -0x18)) = 1; /* try { // try from 00109b83 to 00109ba8 has its CatchHandler @ 00109bd3 */ poVar1 = std::ostream::_M_insert<double>((double)param_1); std::__ostream_insert<char,std::char_traits<char>>(poVar1," FPS",4); std::__cxx11::stringbuf::str(); std::__cxx11::stringstream::~stringstream(local_190); std::ios_base::~ios_base(local_110); return; }
47,772
void google::protobuf::internal::InternalMetadata::DoMergeFrom<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/message_lite.cc
void InternalMetadata::DoMergeFrom<std::string>(const std::string& other) { mutable_unknown_fields<std::string>()->append(other); }
O3
cpp
void google::protobuf::internal::InternalMetadata::DoMergeFrom<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %rbx movq %rsi, %rbx movq %rdi, %rax movq (%rdi), %rdi testb $0x1, %dil je 0xfdf7b andq $-0x4, %rdi addq $0x8, %rdi movq (%rbx), %rsi movq 0x8(%rbx), %rdx popq %rbx jmp 0x1f150 movq %rax, %rdi callq 0xfe218 movq %rax, %rdi jmp 0xfdf6e
_ZN6google8protobuf8internal16InternalMetadata11DoMergeFromINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEvRKT_: push rbx mov rbx, rsi mov rax, rdi mov rdi, [rdi] test dil, 1 jz short loc_FDF7B and rdi, 0FFFFFFFFFFFFFFFCh add rdi, 8 loc_FDF6E: mov rsi, [rbx] mov rdx, [rbx+8] pop rbx jmp __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) loc_FDF7B: mov rdi, rax call _ZN6google8protobuf8internal16InternalMetadata27mutable_unknown_fields_slowINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEPT_v; google::protobuf::internal::InternalMetadata::mutable_unknown_fields_slow<std::string>(void) mov rdi, rax jmp short loc_FDF6E
long long google::protobuf::internal::InternalMetadata::DoMergeFrom<std::string>(long long *a1, _QWORD *a2) { long long v3; // rdi unsigned long long v4; // rdi v3 = *a1; if ( (v3 & 1) != 0 ) v4 = (v3 & 0xFFFFFFFFFFFFFFFCLL) + 8; else v4 = google::protobuf::internal::InternalMetadata::mutable_unknown_fields_slow<std::string>(a1); return std::string::_M_append(v4, *a2, a2[1]); }
DoMergeFrom<std::__cxx11::string>: PUSH RBX MOV RBX,RSI MOV RAX,RDI MOV RDI,qword ptr [RDI] TEST DIL,0x1 JZ 0x001fdf7b AND RDI,-0x4 ADD RDI,0x8 LAB_001fdf6e: MOV RSI,qword ptr [RBX] MOV RDX,qword ptr [RBX + 0x8] POP RBX JMP 0x0011f150 LAB_001fdf7b: MOV RDI,RAX CALL 0x001fe218 MOV RDI,RAX JMP 0x001fdf6e
/* void google::protobuf::internal::InternalMetadata::DoMergeFrom<std::__cxx11::string >(std::__cxx11::string const&) */ void __thiscall google::protobuf::internal::InternalMetadata::DoMergeFrom<std::__cxx11::string> (InternalMetadata *this,string *param_1) { string *psVar1; if ((*(ulong *)this & 1) == 0) { psVar1 = mutable_unknown_fields_slow<std::__cxx11::string>(this); } else { psVar1 = (string *)((*(ulong *)this & 0xfffffffffffffffc) + 8); } std::__cxx11::string::_M_append((char *)psVar1,*(ulong *)param_1); return; }
47,773
minja::Value::Value(std::shared_ptr<std::vector<minja::Value, std::allocator<minja::Value>>> const&)
monkey531[P]llama/common/minja.hpp
Value(const std::shared_ptr<ArrayType> & array) : array_(array) {}
O2
cpp
minja::Value::Value(std::shared_ptr<std::vector<minja::Value, std::allocator<minja::Value>>> const&): pushq %rbx movq %rdi, %rbx xorps %xmm0, %xmm0 movups %xmm0, (%rdi) addq $0x10, %rdi callq 0x69bf2 leaq 0x40(%rbx), %rdi xorps %xmm0, %xmm0 movups %xmm0, 0x30(%rbx) movups %xmm0, 0x20(%rbx) xorl %esi, %esi popq %rbx jmp 0x3e640
_ZN5minja5ValueC2ERKSt10shared_ptrISt6vectorIS0_SaIS0_EEE: push rbx mov rbx, rdi xorps xmm0, xmm0 movups xmmword ptr [rdi], xmm0 add rdi, 10h call _ZNSt12__shared_ptrISt6vectorIN5minja5ValueESaIS2_EELN9__gnu_cxx12_Lock_policyE2EEC2ERKS7_; std::__shared_ptr<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2>::__shared_ptr(std::__shared_ptr<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2> const&) lea rdi, [rbx+40h] xorps xmm0, xmm0 movups xmmword ptr [rbx+30h], xmm0 movups xmmword ptr [rbx+20h], xmm0 xor esi, esi pop rbx jmp _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EDn; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(decltype(nullptr))
long long minja::Value::Value(long long a1, _QWORD *a2) { *(_OWORD *)a1 = 0LL; std::__shared_ptr<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2>::__shared_ptr((_QWORD *)(a1 + 16), a2); *(_OWORD *)(a1 + 48) = 0LL; *(_OWORD *)(a1 + 32) = 0LL; return nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(a1 + 64); }
Value: PUSH RBX MOV RBX,RDI XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI],XMM0 ADD RDI,0x10 CALL 0x00169bf2 LEA RDI,[RBX + 0x40] XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0x30],XMM0 MOVUPS xmmword ptr [RBX + 0x20],XMM0 XOR ESI,ESI POP RBX JMP 0x0013e640
/* minja::Value::Value(std::shared_ptr<std::vector<minja::Value, std::allocator<minja::Value> > > const&) */ void __thiscall minja::Value::Value(Value *this,shared_ptr *param_1) { *(int8 *)this = 0; *(int8 *)(this + 8) = 0; std:: __shared_ptr<std::vector<minja::Value,std::allocator<minja::Value>>,(__gnu_cxx::_Lock_policy)2>:: __shared_ptr((__shared_ptr<std::vector<minja::Value,std::allocator<minja::Value>>,(__gnu_cxx::_Lock_policy)2> *)(this + 0x10),(__shared_ptr *)param_1); *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 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> ::basic_json((_func_decltype_nullptr *)(this + 0x40)); return; }
47,774
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 0xafaee movq -0x30(%rbp), %rax movsbl 0x52(%rax), %eax cmpl $0x0, %eax je 0xafade movq -0x18(%rbp), %rax movq -0x30(%rbp), %rcx cmpq (%rcx), %rax jne 0xafade movq -0x20(%rbp), %rax movq -0x30(%rbp), %rcx cmpq 0x8(%rcx), %rax jne 0xafade 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 0xafaf6 jmp 0xafae0 movq -0x30(%rbp), %rax addq $0x58, %rax movq %rax, -0x30(%rbp) jmp 0xafa8f 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_AFA8F: mov rax, [rbp+var_30] cmp rax, [rbp+var_38] jnb short loc_AFAEE mov rax, [rbp+var_30] movsx eax, byte ptr [rax+52h] cmp eax, 0 jz short loc_AFADE mov rax, [rbp+var_18] mov rcx, [rbp+var_30] cmp rax, [rcx] jnz short loc_AFADE mov rax, [rbp+var_20] mov rcx, [rbp+var_30] cmp rax, [rcx+8] jnz short loc_AFADE 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_AFAF6 loc_AFADE: jmp short $+2 loc_AFAE0: mov rax, [rbp+var_30] add rax, 58h ; 'X' mov [rbp+var_30], rax jmp short loc_AFA8F loc_AFAEE: mov [rbp+var_8], 0 loc_AFAF6: 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_001afa8f: MOV RAX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RBP + -0x38] JNC 0x001afaee MOV RAX,qword ptr [RBP + -0x30] MOVSX EAX,byte ptr [RAX + 0x52] CMP EAX,0x0 JZ 0x001afade MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RCX] JNZ 0x001afade MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RCX + 0x8] JNZ 0x001afade 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 0x001afaf6 LAB_001afade: JMP 0x001afae0 LAB_001afae0: MOV RAX,qword ptr [RBP + -0x30] ADD RAX,0x58 MOV qword ptr [RBP + -0x30],RAX JMP 0x001afa8f LAB_001afaee: MOV qword ptr [RBP + -0x8],0x0 LAB_001afaf6: 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; }
47,775
ValueTest_ValueSubtraction_Test::~ValueTest_ValueSubtraction_Test()
deependujha[P]DeepTensor/ctests/value_fixture_test.cc
TEST_F(ValueTest, ValueSubtraction) { std::shared_ptr<Value> v3 = v1->sub(v2); EXPECT_DOUBLE_EQ(v1->data, double(5.1)); EXPECT_DOUBLE_EQ(v2->data, double(4.2)); EXPECT_DOUBLE_EQ(v3->data, double(5.1 - 4.2)); v3->grad = -2.3; EXPECT_DOUBLE_EQ(v1->grad, double(0.0)); EXPECT_DOUBLE_EQ(v2->grad, double(0.0)); EXPECT_DOUBLE_EQ(v3->grad, double(-2.3)); v3->executeBackWardMethod(); EXPECT_DOUBLE_EQ(v1->grad, double(-2.3)); EXPECT_DOUBLE_EQ(v2->grad, double(2.3)); EXPECT_DOUBLE_EQ(v3->grad, double(-2.3)); }
O0
cpp
ValueTest_ValueSubtraction_Test::~ValueTest_ValueSubtraction_Test(): pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x18690 movq -0x10(%rbp), %rdi movl $0x30, %esi callq 0xd720 addq $0x10, %rsp popq %rbp retq nopl (%rax)
_ZN31ValueTest_ValueSubtraction_TestD0Ev: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov rdi, [rbp+var_8]; this mov [rbp+var_10], rdi call _ZN31ValueTest_ValueSubtraction_TestD2Ev; ValueTest_ValueSubtraction_Test::~ValueTest_ValueSubtraction_Test() mov rdi, [rbp+var_10]; void * mov esi, 30h ; '0'; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) add rsp, 10h pop rbp retn
void ValueTest_ValueSubtraction_Test::~ValueTest_ValueSubtraction_Test( ValueTest_ValueSubtraction_Test *this) { ValueTest_ValueSubtraction_Test::~ValueTest_ValueSubtraction_Test(this); operator delete(this, 0x30uLL); }
~ValueTest_ValueSubtraction_Test: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RDI,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x10],RDI CALL 0x00118690 MOV RDI,qword ptr [RBP + -0x10] MOV ESI,0x30 CALL 0x0010d720 ADD RSP,0x10 POP RBP RET
/* ValueTest_ValueSubtraction_Test::~ValueTest_ValueSubtraction_Test() */ void __thiscall ValueTest_ValueSubtraction_Test::~ValueTest_ValueSubtraction_Test (ValueTest_ValueSubtraction_Test *this) { ~ValueTest_ValueSubtraction_Test(this); operator_delete(this,0x30); return; }
47,776
find_head
eloqsql/storage/maria/ma_bitmap.c
static my_bool find_head(MARIA_HA *info, uint length, uint position) { MARIA_FILE_BITMAP *bitmap= &info->s->bitmap; MARIA_BITMAP_BLOCK *block; /* There is always place for the head block in bitmap_blocks as these are preallocated at _ma_init_block_record(). */ block= dynamic_element(&info->bitmap_blocks, position, MARIA_BITMAP_BLOCK *); if (info->s->base.extra_options & MA_EXTRA_OPTIONS_INSERT_ORDER) { if (bitmap->page != info->s->last_insert_bitmap && _ma_change_bitmap_page(info, bitmap, info->s->last_insert_bitmap)) return 1; /* Don't allocate any blocks from earlier pages */ info->s->state.first_bitmap_with_space= info->s->last_insert_bitmap; } /* We need to have DIRENTRY_SIZE here to take into account that we may need an extra directory entry for the row */ while (allocate_head(bitmap, length + DIR_ENTRY_SIZE, block)) if (move_to_next_bitmap(info, bitmap)) return 1; return 0; }
O0
c
find_head: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl %edx, -0x18(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax addq $0xa10, %rax # imm = 0xA10 movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rax movq 0x2c0(%rax), %rax movl -0x18(%rbp), %ecx imulq $0x18, %rcx, %rcx addq %rcx, %rax movq %rax, -0x28(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movl 0x428(%rax), %eax andl $0x2, %eax cmpl $0x0, %eax je 0x634fe movq -0x20(%rbp), %rax movq 0x10(%rax), %rax movq -0x10(%rbp), %rcx movq (%rcx), %rcx cmpq 0xc30(%rcx), %rax je 0x634e2 movq -0x10(%rbp), %rdi movq -0x20(%rbp), %rsi movq -0x10(%rbp), %rax movq (%rax), %rax movq 0xc30(%rax), %rdx callq 0x63a90 movsbl %al, %eax cmpl $0x0, %eax je 0x634e2 movb $0x1, -0x1(%rbp) jmp 0x63534 movq -0x10(%rbp), %rax movq (%rax), %rax movq 0xc30(%rax), %rcx movq -0x10(%rbp), %rax movq (%rax), %rax movq %rcx, 0xd0(%rax) jmp 0x63500 movq -0x20(%rbp), %rdi movl -0x14(%rbp), %esi addl $0x4, %esi movq -0x28(%rbp), %rdx callq 0x64ff0 cmpb $0x0, %al je 0x63530 movq -0x10(%rbp), %rdi movq -0x20(%rbp), %rsi callq 0x65330 cmpb $0x0, %al je 0x6352e movb $0x1, -0x1(%rbp) jmp 0x63534 jmp 0x63500 movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x30, %rsp popq %rbp retq nopl (%rax)
find_head: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_18], edx mov rax, [rbp+var_10] mov rax, [rax] add rax, 0A10h mov [rbp+var_20], rax mov rax, [rbp+var_10] mov rax, [rax+2C0h] mov ecx, [rbp+var_18] imul rcx, 18h add rax, rcx mov [rbp+var_28], rax mov rax, [rbp+var_10] mov rax, [rax] mov eax, [rax+428h] and eax, 2 cmp eax, 0 jz short loc_634FE mov rax, [rbp+var_20] mov rax, [rax+10h] mov rcx, [rbp+var_10] mov rcx, [rcx] cmp rax, [rcx+0C30h] jz short loc_634E2 mov rdi, [rbp+var_10] mov rsi, [rbp+var_20] mov rax, [rbp+var_10] mov rax, [rax] mov rdx, [rax+0C30h] call _ma_change_bitmap_page movsx eax, al cmp eax, 0 jz short loc_634E2 mov [rbp+var_1], 1 jmp short loc_63534 loc_634E2: mov rax, [rbp+var_10] mov rax, [rax] mov rcx, [rax+0C30h] mov rax, [rbp+var_10] mov rax, [rax] mov [rax+0D0h], rcx loc_634FE: jmp short $+2 loc_63500: mov rdi, [rbp+var_20] mov esi, [rbp+var_14] add esi, 4 mov rdx, [rbp+var_28] call allocate_head cmp al, 0 jz short loc_63530 mov rdi, [rbp+var_10] mov rsi, [rbp+var_20] call move_to_next_bitmap cmp al, 0 jz short loc_6352E mov [rbp+var_1], 1 jmp short loc_63534 loc_6352E: jmp short loc_63500 loc_63530: mov [rbp+var_1], 0 loc_63534: mov al, [rbp+var_1] add rsp, 30h pop rbp retn
char find_head(_QWORD *a1, int a2, unsigned int a3) { long long v4; // [rsp+8h] [rbp-28h] long long v5; // [rsp+10h] [rbp-20h] v5 = *a1 + 2576LL; v4 = 24LL * a3 + a1[88]; if ( (*(_DWORD *)(*a1 + 1064LL) & 2) != 0 ) { if ( *(_QWORD *)(*a1 + 2592LL) == *(_QWORD *)(*a1 + 3120LL) || !(unsigned __int8)ma_change_bitmap_page(a1, v5, *(_QWORD *)(*a1 + 3120LL)) ) { *(_QWORD *)(*a1 + 208LL) = *(_QWORD *)(*a1 + 3120LL); goto LABEL_6; } return 1; } else { LABEL_6: while ( (unsigned __int8)allocate_head(v5, (unsigned int)(a2 + 4), v4) ) { if ( (unsigned __int8)move_to_next_bitmap(a1, v5) ) return 1; } return 0; } }
find_head: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV dword ptr [RBP + -0x18],EDX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] ADD RAX,0xa10 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x2c0] MOV ECX,dword ptr [RBP + -0x18] IMUL RCX,RCX,0x18 ADD RAX,RCX MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV EAX,dword ptr [RAX + 0x428] AND EAX,0x2 CMP EAX,0x0 JZ 0x001634fe MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x10] MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX] CMP RAX,qword ptr [RCX + 0xc30] JZ 0x001634e2 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RDX,qword ptr [RAX + 0xc30] CALL 0x00163a90 MOVSX EAX,AL CMP EAX,0x0 JZ 0x001634e2 MOV byte ptr [RBP + -0x1],0x1 JMP 0x00163534 LAB_001634e2: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RCX,qword ptr [RAX + 0xc30] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RAX + 0xd0],RCX LAB_001634fe: JMP 0x00163500 LAB_00163500: MOV RDI,qword ptr [RBP + -0x20] MOV ESI,dword ptr [RBP + -0x14] ADD ESI,0x4 MOV RDX,qword ptr [RBP + -0x28] CALL 0x00164ff0 CMP AL,0x0 JZ 0x00163530 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x20] CALL 0x00165330 CMP AL,0x0 JZ 0x0016352e MOV byte ptr [RBP + -0x1],0x1 JMP 0x00163534 LAB_0016352e: JMP 0x00163500 LAB_00163530: MOV byte ptr [RBP + -0x1],0x0 LAB_00163534: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x30 POP RBP RET
int1 find_head(long *param_1,int param_2,uint param_3) { long lVar1; char cVar2; long lVar3; lVar3 = *param_1 + 0xa10; lVar1 = param_1[0x58]; if ((*(uint *)(*param_1 + 0x428) & 2) != 0) { if ((*(long *)(*param_1 + 0xa20) != *(long *)(*param_1 + 0xc30)) && (cVar2 = _ma_change_bitmap_page(param_1,lVar3,*(int8 *)(*param_1 + 0xc30)), cVar2 != '\0')) { return 1; } *(int8 *)(*param_1 + 0xd0) = *(int8 *)(*param_1 + 0xc30); } do { cVar2 = allocate_head(lVar3,param_2 + 4,lVar1 + (ulong)param_3 * 0x18); if (cVar2 == '\0') { return 0; } cVar2 = move_to_next_bitmap(param_1,lVar3); } while (cVar2 == '\0'); return 1; }
47,777
seek_io_cache
eloqsql/mysys/mf_iocache.c
void seek_io_cache(IO_CACHE *cache, my_off_t needed_offset) { my_off_t cached_data_start= cache->pos_in_file; my_off_t cached_data_end= cache->pos_in_file + (cache->read_end - cache->buffer); if (needed_offset >= cached_data_start && needed_offset < cached_data_end) { /* The offset we're seeking to is in the buffer. Move buffer's read position accordingly */ cache->read_pos= cache->buffer + (needed_offset - cached_data_start); } else { if (needed_offset > cache->end_of_file) needed_offset= cache->end_of_file; /* The offset we're seeking to is not in the buffer. - Set the buffer to be exhausted. - Make the next read to a mysql_file_seek() call to the required offset. TODO(cvicentiu, spetrunia) properly implement aligned seeks for efficiency. */ cache->seek_not_done= 1; cache->pos_in_file= needed_offset; /* When reading it must appear as if we've started from the offset that we've seeked here. We must let _my_b_cache_read assume that by implying "no reading starting from pos_in_file" has happened. */ cache->read_pos= cache->buffer; cache->read_end= cache->buffer; } }
O3
c
seek_io_cache: pushq %rbp movq %rsp, %rbp movq (%rdi), %rdx movq 0x20(%rdi), %rax movq %rsi, %rcx subq %rdx, %rcx jb 0x961ea subq %rax, %rdx addq 0x18(%rdi), %rdx cmpq %rsi, %rdx jbe 0x961ea addq %rcx, %rax movq %rax, 0x10(%rdi) jmp 0x9620a movq 0x8(%rdi), %rcx cmpq %rsi, %rcx cmovbq %rcx, %rsi movl $0x1, 0xe0(%rdi) movq %rsi, (%rdi) movq %rax, 0x10(%rdi) movq %rax, 0x18(%rdi) popq %rbp retq
seek_io_cache: push rbp mov rbp, rsp mov rdx, [rdi] mov rax, [rdi+20h] mov rcx, rsi sub rcx, rdx jb short loc_961EA sub rdx, rax add rdx, [rdi+18h] cmp rdx, rsi jbe short loc_961EA add rax, rcx mov [rdi+10h], rax jmp short loc_9620A loc_961EA: mov rcx, [rdi+8] cmp rcx, rsi cmovb rsi, rcx mov dword ptr [rdi+0E0h], 1 mov [rdi], rsi mov [rdi+10h], rax mov [rdi+18h], rax loc_9620A: pop rbp retn
long long seek_io_cache(long long a1, unsigned long long a2) { long long result; // rax result = *(_QWORD *)(a1 + 32); if ( a2 < *(_QWORD *)a1 || *(_QWORD *)(a1 + 24) + *(_QWORD *)a1 - result <= a2 ) { if ( *(_QWORD *)(a1 + 8) < a2 ) a2 = *(_QWORD *)(a1 + 8); *(_DWORD *)(a1 + 224) = 1; *(_QWORD *)a1 = a2; *(_QWORD *)(a1 + 16) = result; *(_QWORD *)(a1 + 24) = result; } else { result += a2 - *(_QWORD *)a1; *(_QWORD *)(a1 + 16) = result; } return result; }
seek_io_cache: PUSH RBP MOV RBP,RSP MOV RDX,qword ptr [RDI] MOV RAX,qword ptr [RDI + 0x20] MOV RCX,RSI SUB RCX,RDX JC 0x001961ea SUB RDX,RAX ADD RDX,qword ptr [RDI + 0x18] CMP RDX,RSI JBE 0x001961ea ADD RAX,RCX MOV qword ptr [RDI + 0x10],RAX JMP 0x0019620a LAB_001961ea: MOV RCX,qword ptr [RDI + 0x8] CMP RCX,RSI CMOVC RSI,RCX MOV dword ptr [RDI + 0xe0],0x1 MOV qword ptr [RDI],RSI MOV qword ptr [RDI + 0x10],RAX MOV qword ptr [RDI + 0x18],RAX LAB_0019620a: POP RBP RET
void seek_io_cache(ulong *param_1,ulong param_2) { ulong uVar1; ulong uVar2; uVar1 = *param_1; uVar2 = param_1[4]; if ((param_2 < uVar1) || ((uVar1 - uVar2) + param_1[3] <= param_2)) { if (param_1[1] < param_2) { param_2 = param_1[1]; } *(int4 *)(param_1 + 0x1c) = 1; *param_1 = param_2; param_1[2] = uVar2; param_1[3] = uVar2; } else { param_1[2] = uVar2 + (param_2 - uVar1); } return; }
47,778
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>>::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>&, 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::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool)
monkey531[P]llama/common/json.hpp
json_sax_dom_callback_parser(BasicJsonType& r, const parser_callback_t cb, const bool allow_exceptions_ = true) : root(r), callback(cb), allow_exceptions(allow_exceptions_) { keep_stack.push_back(true); }
O0
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>>::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>&, 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::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool): subq $0x88, %rsp movq %rdx, 0x48(%rsp) movb %cl, %al movq %rdi, 0x80(%rsp) movq %rsi, 0x78(%rsp) movq %rdx, 0x70(%rsp) andb $0x1, %al movb %al, 0x6f(%rsp) movq 0x80(%rsp), %rax movq %rax, 0x40(%rsp) movq 0x78(%rsp), %rcx movq %rcx, (%rax) movq %rax, %rdi addq $0x8, %rdi movq %rdi, 0x10(%rsp) xorps %xmm0, %xmm0 movaps %xmm0, 0x20(%rsp) movups %xmm0, 0x8(%rax) movq $0x0, 0x18(%rax) callq 0xac910 movaps 0x20(%rsp), %xmm0 movq 0x40(%rsp), %rax movq %rax, %rdi addq $0x20, %rdi movq %rdi, 0x18(%rsp) movups %xmm0, 0x30(%rax) movups %xmm0, 0x20(%rax) movq $0x0, 0x40(%rax) callq 0xac920 movaps 0x20(%rsp), %xmm0 movq 0x40(%rsp), %rax movq %rax, %rdi addq $0x48, %rdi movq %rdi, 0x38(%rsp) movups %xmm0, 0x58(%rax) movups %xmm0, 0x48(%rax) movq $0x0, 0x68(%rax) callq 0xac920 movq 0x40(%rsp), %rdi movq 0x48(%rsp), %rsi movq $0x0, 0x70(%rdi) movb $0x0, 0x78(%rdi) subq $-0x80, %rdi movq %rdi, 0x50(%rsp) callq 0xa1650 jmp 0xa7dfc movq 0x40(%rsp), %rdi movb 0x6f(%rsp), %al andb $0x1, %al movb %al, 0xa0(%rdi) addq $0xa8, %rdi movq %rdi, 0x8(%rsp) movl $0x9, %esi callq 0xaa6c0 jmp 0xa7e25 movq 0x40(%rsp), %rdi addq $0x20, %rdi movl $0x1, %esi callq 0xac930 jmp 0xa7e3a addq $0x88, %rsp retq movq %rax, %rcx movl %edx, %eax movq %rcx, 0x60(%rsp) movl %eax, 0x5c(%rsp) jmp 0xa7e84 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x60(%rsp) movl %eax, 0x5c(%rsp) jmp 0xa7e7a movq 0x8(%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0x60(%rsp) movl %eax, 0x5c(%rsp) callq 0xa14c0 movq 0x50(%rsp), %rdi callq 0xa14f0 movq 0x38(%rsp), %rdi callq 0xaca10 movq 0x18(%rsp), %rdi callq 0xaca10 movq 0x10(%rsp), %rdi callq 0xaca20 movq 0x60(%rsp), %rdi callq 0x5dbc0 nopl (%rax)
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ERSF_St8functionIFbiNS1_13parse_event_tESH_EEb: sub rsp, 88h mov [rsp+88h+var_40], rdx mov al, cl mov [rsp+88h+var_8], rdi mov [rsp+88h+var_10], rsi mov [rsp+88h+var_18], rdx and al, 1 mov [rsp+88h+var_19], al mov rax, [rsp+88h+var_8] mov [rsp+88h+var_48], rax mov rcx, [rsp+88h+var_10] mov [rax], rcx mov rdi, rax add rdi, 8 mov [rsp+88h+var_78], rdi xorps xmm0, xmm0 movaps [rsp+88h+var_68], xmm0 movups xmmword ptr [rax+8], xmm0 mov qword ptr [rax+18h], 0 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EEC2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,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> *>>::vector(void) movaps xmm0, [rsp+88h+var_68] mov rax, [rsp+88h+var_48] mov rdi, rax add rdi, 20h ; ' ' mov [rsp+88h+var_70], rdi movups xmmword ptr [rax+30h], xmm0 movups xmmword ptr [rax+20h], xmm0 mov qword ptr [rax+40h], 0 call _ZNSt6vectorIbSaIbEEC2Ev; std::vector<bool>::vector(void) movaps xmm0, [rsp+88h+var_68] mov rax, [rsp+88h+var_48] mov rdi, rax add rdi, 48h ; 'H' mov [rsp+88h+var_50], rdi movups xmmword ptr [rax+58h], xmm0 movups xmmword ptr [rax+48h], xmm0 mov qword ptr [rax+68h], 0 call _ZNSt6vectorIbSaIbEEC2Ev; std::vector<bool>::vector(void) mov rdi, [rsp+88h+var_48] mov rsi, [rsp+88h+var_40] mov qword ptr [rdi+70h], 0 mov byte ptr [rdi+78h], 0 sub rdi, 0FFFFFFFFFFFFFF80h mov [rsp+88h+var_38], rdi call _ZNSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEC2ERKSJ_; 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> &)>::function(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> &)> const&) jmp short $+2 loc_A7DFC: mov rdi, [rsp+88h+var_48] mov al, [rsp+88h+var_19] and al, 1 mov [rdi+0A0h], al add rdi, 0A8h mov [rsp+88h+var_80], rdi mov esi, 9 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ENS0_6detail7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::detail::value_t) jmp short $+2 loc_A7E25: mov rdi, [rsp+88h+var_48] add rdi, 20h ; ' ' mov esi, 1 call _ZNSt6vectorIbSaIbEE9push_backEb; std::vector<bool>::push_back(bool) jmp short $+2 loc_A7E3A: add rsp, 88h retn mov rcx, rax mov eax, edx mov [rsp+arg_58], rcx mov [rsp+arg_54], eax jmp short loc_A7E84 mov rcx, rax mov eax, edx mov [rsp+arg_58], rcx mov [rsp+arg_54], eax jmp short loc_A7E7A mov rdi, [rsp+arg_0] mov rcx, rax mov eax, edx mov [rsp+arg_58], rcx mov [rsp+arg_54], eax call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() loc_A7E7A: mov rdi, [rsp+arg_48] call _ZNSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEED2Ev; 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> &)>::~function() loc_A7E84: mov rdi, [rsp+arg_30] call _ZNSt6vectorIbSaIbEED2Ev; std::vector<bool>::~vector() mov rdi, [rsp+arg_10] call _ZNSt6vectorIbSaIbEED2Ev; std::vector<bool>::~vector() mov rdi, [rsp+arg_8] call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,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> *>>::~vector() mov rdi, [rsp+arg_58] call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::json_sax_dom_callback_parser( long long a1, long long a2, long long a3, char a4) { char v6; // [rsp+6Fh] [rbp-19h] v6 = a4 & 1; *(_QWORD *)a1 = a2; *(_OWORD *)(a1 + 8) = 0LL; *(_QWORD *)(a1 + 24) = 0LL; 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> *>>::vector(); *(_OWORD *)(a1 + 48) = 0LL; *(_OWORD *)(a1 + 32) = 0LL; *(_QWORD *)(a1 + 64) = 0LL; std::vector<bool>::vector(); *(_OWORD *)(a1 + 88) = 0LL; *(_OWORD *)(a1 + 72) = 0LL; *(_QWORD *)(a1 + 104) = 0LL; std::vector<bool>::vector(); *(_QWORD *)(a1 + 112) = 0LL; *(_BYTE *)(a1 + 120) = 0; 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> &)>::function( (std::_Function_base *)(a1 + 128), a3); *(_BYTE *)(a1 + 160) = v6 & 1; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( a1 + 168, 9LL); return std::vector<bool>::push_back(a1 + 32, 1LL); }
json_sax_dom_callback_parser: SUB RSP,0x88 MOV qword ptr [RSP + 0x48],RDX MOV AL,CL MOV qword ptr [RSP + 0x80],RDI MOV qword ptr [RSP + 0x78],RSI MOV qword ptr [RSP + 0x70],RDX AND AL,0x1 MOV byte ptr [RSP + 0x6f],AL MOV RAX,qword ptr [RSP + 0x80] MOV qword ptr [RSP + 0x40],RAX MOV RCX,qword ptr [RSP + 0x78] MOV qword ptr [RAX],RCX MOV RDI,RAX ADD RDI,0x8 MOV qword ptr [RSP + 0x10],RDI XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP + 0x20],XMM0 MOVUPS xmmword ptr [RAX + 0x8],XMM0 MOV qword ptr [RAX + 0x18],0x0 CALL 0x001ac910 MOVAPS XMM0,xmmword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x40] MOV RDI,RAX ADD RDI,0x20 MOV qword ptr [RSP + 0x18],RDI MOVUPS xmmword ptr [RAX + 0x30],XMM0 MOVUPS xmmword ptr [RAX + 0x20],XMM0 MOV qword ptr [RAX + 0x40],0x0 CALL 0x001ac920 MOVAPS XMM0,xmmword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x40] MOV RDI,RAX ADD RDI,0x48 MOV qword ptr [RSP + 0x38],RDI MOVUPS xmmword ptr [RAX + 0x58],XMM0 MOVUPS xmmword ptr [RAX + 0x48],XMM0 MOV qword ptr [RAX + 0x68],0x0 CALL 0x001ac920 MOV RDI,qword ptr [RSP + 0x40] MOV RSI,qword ptr [RSP + 0x48] MOV qword ptr [RDI + 0x70],0x0 MOV byte ptr [RDI + 0x78],0x0 SUB RDI,-0x80 MOV qword ptr [RSP + 0x50],RDI LAB_001a7df5: CALL 0x001a1650 JMP 0x001a7dfc LAB_001a7dfc: MOV RDI,qword ptr [RSP + 0x40] MOV AL,byte ptr [RSP + 0x6f] AND AL,0x1 MOV byte ptr [RDI + 0xa0],AL ADD RDI,0xa8 MOV qword ptr [RSP + 0x8],RDI LAB_001a7e19: MOV ESI,0x9 CALL 0x001aa6c0 JMP 0x001a7e25 LAB_001a7e25: MOV RDI,qword ptr [RSP + 0x40] ADD RDI,0x20 LAB_001a7e2e: MOV ESI,0x1 CALL 0x001ac930 LAB_001a7e38: JMP 0x001a7e3a LAB_001a7e3a: ADD RSP,0x88 RET
/* 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> >::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>&, 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>&)>, bool) */ void __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>> ::json_sax_dom_callback_parser (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,int8 param_1,function *param_3,byte param_4) { *(int8 *)this = param_1; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::vector((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x40) = 0; std::vector<bool,std::allocator<bool>>::vector((vector<bool,std::allocator<bool>> *)(this + 0x20)) ; *(int8 *)(this + 0x58) = 0; *(int8 *)(this + 0x60) = 0; *(int8 *)(this + 0x48) = 0; *(int8 *)(this + 0x50) = 0; *(int8 *)(this + 0x68) = 0; std::vector<bool,std::allocator<bool>>::vector((vector<bool,std::allocator<bool>> *)(this + 0x48)) ; *(int8 *)(this + 0x70) = 0; this[0x78] = (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>> )0x0; /* try { // try from 001a7df5 to 001a7df9 has its CatchHandler @ 001a7e42 */ 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>&)> ::function((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>&)> *)(this + 0x80),param_3); this[0xa0] = (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>> )(param_4 & 1); /* try { // try from 001a7e19 to 001a7e22 has its CatchHandler @ 001a7e52 */ basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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 + 0xa8),9); /* try { // try from 001a7e2e to 001a7e37 has its CatchHandler @ 001a7e62 */ std::vector<bool,std::allocator<bool>>::push_back ((vector<bool,std::allocator<bool>> *)(this + 0x20),true); return; }
47,779
OpenSubdiv::v3_6_0::Far::StencilTableFactoryReal<float>::AppendLocalPointStencilTable(OpenSubdiv::v3_6_0::Far::TopologyRefiner const&, OpenSubdiv::v3_6_0::Far::StencilTableReal<float> const*, OpenSubdiv::v3_6_0::Far::StencilTableReal<float> const*, bool)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/stencilTableFactory.cpp
StencilTableReal<REAL> const * StencilTableFactoryReal<REAL>::AppendLocalPointStencilTable( TopologyRefiner const &refiner, StencilTableReal<REAL> const * baseStencilTable, StencilTableReal<REAL> const * localPointStencilTable, bool factorize) { return appendLocalPointStencilTable( refiner, baseStencilTable, localPointStencilTable, /*channel*/-1, factorize); }
O0
cpp
OpenSubdiv::v3_6_0::Far::StencilTableFactoryReal<float>::AppendLocalPointStencilTable(OpenSubdiv::v3_6_0::Far::TopologyRefiner const&, OpenSubdiv::v3_6_0::Far::StencilTableReal<float> const*, OpenSubdiv::v3_6_0::Far::StencilTableReal<float> const*, bool): pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movb %cl, %al movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) andb $0x1, %al movb %al, -0x19(%rbp) movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx movb -0x19(%rbp), %al movl $0xffffffff, %ecx # imm = 0xFFFFFFFF andb $0x1, %al movzbl %al, %r8d callq 0xc8d10 addq $0x20, %rsp popq %rbp retq
_ZN10OpenSubdiv6v3_6_03Far23StencilTableFactoryRealIdE28AppendLocalPointStencilTableERKNS1_15TopologyRefinerEPKNS1_16StencilTableRealIdEESA_b: push rbp mov rbp, rsp sub rsp, 20h mov al, cl mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx and al, 1 mov [rbp+var_19], al mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov rdx, [rbp+var_18] mov al, [rbp+var_19] mov ecx, 0FFFFFFFFh and al, 1 movzx r8d, al call __ZN10OpenSubdiv6v3_6_03Far23StencilTableFactoryRealIdE28appendLocalPointStencilTableERKNS1_15TopologyRefinerEPKNS1_16StencilTableRealIdEESA_ib; OpenSubdiv::v3_6_0::Far::StencilTableFactoryReal<double>::appendLocalPointStencilTable(OpenSubdiv::v3_6_0::Far::TopologyRefiner const&,OpenSubdiv::v3_6_0::Far::StencilTableReal<double> const*,OpenSubdiv::v3_6_0::Far::StencilTableReal<double> const*,int,bool) add rsp, 20h pop rbp retn
long long OpenSubdiv::v3_6_0::Far::StencilTableFactoryReal<double>::AppendLocalPointStencilTable( long long a1, long long a2, long long a3, char a4) { return OpenSubdiv::v3_6_0::Far::StencilTableFactoryReal<double>::appendLocalPointStencilTable( a1, a2, a3, 0xFFFFFFFFLL, a4 & 1); }
47,780
OpenSubdiv::v3_6_0::Far::StencilTableFactoryReal<float>::AppendLocalPointStencilTable(OpenSubdiv::v3_6_0::Far::TopologyRefiner const&, OpenSubdiv::v3_6_0::Far::StencilTableReal<float> const*, OpenSubdiv::v3_6_0::Far::StencilTableReal<float> const*, bool)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/stencilTableFactory.cpp
StencilTableReal<REAL> const * StencilTableFactoryReal<REAL>::AppendLocalPointStencilTable( TopologyRefiner const &refiner, StencilTableReal<REAL> const * baseStencilTable, StencilTableReal<REAL> const * localPointStencilTable, bool factorize) { return appendLocalPointStencilTable( refiner, baseStencilTable, localPointStencilTable, /*channel*/-1, factorize); }
O2
cpp
OpenSubdiv::v3_6_0::Far::StencilTableFactoryReal<float>::AppendLocalPointStencilTable(OpenSubdiv::v3_6_0::Far::TopologyRefiner const&, OpenSubdiv::v3_6_0::Far::StencilTableReal<float> const*, OpenSubdiv::v3_6_0::Far::StencilTableReal<float> const*, bool): movl %ecx, %r8d pushq $-0x1 popq %rcx jmp 0x52c00 nop
_ZN10OpenSubdiv6v3_6_03Far23StencilTableFactoryRealIfE28AppendLocalPointStencilTableERKNS1_15TopologyRefinerEPKNS1_16StencilTableRealIfEESA_b: mov r8d, ecx push 0FFFFFFFFFFFFFFFFh pop rcx jmp __ZN10OpenSubdiv6v3_6_03Far23StencilTableFactoryRealIfE28appendLocalPointStencilTableERKNS1_15TopologyRefinerEPKNS1_16StencilTableRealIfEESA_ib; OpenSubdiv::v3_6_0::Far::StencilTableFactoryReal<float>::appendLocalPointStencilTable(OpenSubdiv::v3_6_0::Far::TopologyRefiner const&,OpenSubdiv::v3_6_0::Far::StencilTableReal<float> const*,OpenSubdiv::v3_6_0::Far::StencilTableReal<float> const*,int,bool)
long long OpenSubdiv::v3_6_0::Far::StencilTableFactoryReal<float>::AppendLocalPointStencilTable( OpenSubdiv::v3_6_0::Far::TopologyRefiner *a1) { return OpenSubdiv::v3_6_0::Far::StencilTableFactoryReal<float>::appendLocalPointStencilTable(a1); }
AppendLocalPointStencilTable: MOV R8D,ECX PUSH -0x1 POP RCX JMP 0x00152c00
/* OpenSubdiv::v3_6_0::Far::StencilTableFactoryReal<float>::AppendLocalPointStencilTable(OpenSubdiv::v3_6_0::Far::TopologyRefiner const&, OpenSubdiv::v3_6_0::Far::StencilTableReal<float> const*, OpenSubdiv::v3_6_0::Far::StencilTableReal<float> const*, bool) */ void OpenSubdiv::v3_6_0::Far::StencilTableFactoryReal<float>::AppendLocalPointStencilTable (TopologyRefiner *param_1,StencilTableReal *param_2,StencilTableReal *param_3, bool param_4) { appendLocalPointStencilTable(param_1,param_2,param_3,-1,param_4); return; }
47,781
google::protobuf::io::EpsCopyOutputStream::WriteStringMaybeAliasedOutline(unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned char*)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/io/coded_stream.cc
uint8_t* EpsCopyOutputStream::WriteStringMaybeAliasedOutline(uint32_t num, const std::string& s, uint8_t* ptr) { ptr = EnsureSpace(ptr); uint32_t size = s.size(); ptr = WriteLengthDelim(num, size, ptr); return WriteRawMaybeAliased(s.data(), size, ptr); }
O3
cpp
google::protobuf::io::EpsCopyOutputStream::WriteStringMaybeAliasedOutline(unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned char*): pushq %r15 pushq %r14 pushq %rbx movq %rcx, %rax movq %rdx, %rbx movl %esi, %r15d movq %rdi, %r14 cmpq %rcx, (%rdi) jbe 0xfb578 movl 0x8(%rbx), %edx shll $0x3, %r15d leal 0x2(%r15), %ecx movb %cl, (%rax) cmpl $0x7f, %r15d ja 0xfb4f9 incq %rax movq %rax, %rcx jmp 0xfb53a movl %r15d, %ecx orb $-0x7e, %cl movb %cl, (%rax) movl %r15d, %esi shrl $0x7, %esi movb %sil, 0x1(%rax) leaq 0x2(%rax), %rcx cmpl $0x4000, %r15d # imm = 0x4000 jb 0xfb53a movb 0x1(%rax), %dil movl %esi, %eax orb $-0x80, %dil movb %dil, -0x1(%rcx) shrl $0x7, %eax movb %al, (%rcx) incq %rcx movl %eax, %edi cmpl $0x3fff, %esi # imm = 0x3FFF movl %eax, %esi ja 0xfb51e cmpl $0x80, %edx jae 0xfb559 movl %edx, %eax movb %al, (%rcx) incq %rcx movq (%rbx), %rsi movq %r14, %rdi popq %rbx popq %r14 popq %r15 jmp 0xfb74a movl %edx, %esi movl %edx, %eax movl %esi, %edi orb $-0x80, %dil movb %dil, (%rcx) shrl $0x7, %eax incq %rcx cmpl $0x3fff, %esi # imm = 0x3FFF movl %eax, %esi jbe 0xfb544 jmp 0xfb55d movq %r14, %rdi movq %rax, %rsi callq 0x202fc jmp 0xfb4de
_ZN6google8protobuf2io19EpsCopyOutputStream30WriteStringMaybeAliasedOutlineEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPh: push r15 push r14 push rbx mov rax, rcx mov rbx, rdx mov r15d, esi mov r14, rdi cmp [rdi], rcx jbe loc_FB578 loc_FB4DE: mov edx, [rbx+8]; int shl r15d, 3 lea ecx, [r15+2] mov [rax], cl cmp r15d, 7Fh ja short loc_FB4F9 inc rax mov rcx, rax jmp short loc_FB53A loc_FB4F9: mov ecx, r15d or cl, 82h mov [rax], cl mov esi, r15d shr esi, 7 mov [rax+1], sil lea rcx, [rax+2] cmp r15d, 4000h jb short loc_FB53A mov dil, [rax+1] mov eax, esi loc_FB51E: or dil, 80h mov [rcx-1], dil shr eax, 7 mov [rcx], al inc rcx mov edi, eax cmp esi, 3FFFh mov esi, eax ja short loc_FB51E loc_FB53A: cmp edx, 80h jnb short loc_FB559 mov eax, edx loc_FB544: mov [rcx], al inc rcx; unsigned __int8 * mov rsi, [rbx]; void * mov rdi, r14; this pop rbx pop r14 pop r15 jmp _ZN6google8protobuf2io19EpsCopyOutputStream20WriteRawMaybeAliasedEPKviPh; google::protobuf::io::EpsCopyOutputStream::WriteRawMaybeAliased(void const*,int,uchar *) loc_FB559: mov esi, edx mov eax, edx loc_FB55D: mov edi, esi or dil, 80h mov [rcx], dil shr eax, 7 inc rcx cmp esi, 3FFFh mov esi, eax jbe short loc_FB544 jmp short loc_FB55D loc_FB578: mov rdi, r14; this mov rsi, rax; unsigned __int8 * call _ZN6google8protobuf2io19EpsCopyOutputStream19EnsureSpaceFallbackEPh; google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(uchar *) jmp loc_FB4DE
long long google::protobuf::io::EpsCopyOutputStream::WriteStringMaybeAliasedOutline( google::protobuf::io::EpsCopyOutputStream *this, int a2, long long a3, unsigned __int8 *a4) { char *v4; // rax unsigned int v7; // edx unsigned int v8; // r15d _BYTE *v9; // rcx unsigned int v10; // esi char v11; // di unsigned int v12; // eax bool v13; // cc unsigned int v14; // eax unsigned int v16; // esi v4 = (char *)a4; if ( *(_QWORD *)this <= (unsigned long long)a4 ) v4 = google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(this, a4); v7 = *(_DWORD *)(a3 + 8); v8 = 8 * a2; *v4 = 8 * a2 + 2; if ( (unsigned int)(8 * a2) > 0x7F ) { *v4 = v8 | 0x82; v10 = v8 >> 7; v4[1] = v8 >> 7; v9 = v4 + 2; if ( v8 >= 0x4000 ) { v11 = v4[1]; v12 = v8 >> 7; do { *(v9 - 1) = v11 | 0x80; v12 >>= 7; *v9++ = v12; v11 = v12; v13 = v10 <= 0x3FFF; v10 = v12; } while ( !v13 ); } } else { v9 = v4 + 1; } if ( v7 >= 0x80 ) { v16 = v7; v14 = v7; do { *v9 = v16 | 0x80; v14 >>= 7; ++v9; v13 = v16 <= 0x3FFF; v16 = v14; } while ( !v13 ); } else { LOBYTE(v14) = v7; } *v9 = v14; return google::protobuf::io::EpsCopyOutputStream::WriteRawMaybeAliased(this, *(const void **)a3, v7, v9 + 1); }
WriteStringMaybeAliasedOutline: PUSH R15 PUSH R14 PUSH RBX MOV RAX,RCX MOV RBX,RDX MOV R15D,ESI MOV R14,RDI CMP qword ptr [RDI],RCX JBE 0x001fb578 LAB_001fb4de: MOV EDX,dword ptr [RBX + 0x8] SHL R15D,0x3 LEA ECX,[R15 + 0x2] MOV byte ptr [RAX],CL CMP R15D,0x7f JA 0x001fb4f9 INC RAX MOV RCX,RAX JMP 0x001fb53a LAB_001fb4f9: MOV ECX,R15D OR CL,0x82 MOV byte ptr [RAX],CL MOV ESI,R15D SHR ESI,0x7 MOV byte ptr [RAX + 0x1],SIL LEA RCX,[RAX + 0x2] CMP R15D,0x4000 JC 0x001fb53a MOV DIL,byte ptr [RAX + 0x1] MOV EAX,ESI LAB_001fb51e: OR DIL,0x80 MOV byte ptr [RCX + -0x1],DIL SHR EAX,0x7 MOV byte ptr [RCX],AL INC RCX MOV EDI,EAX CMP ESI,0x3fff MOV ESI,EAX JA 0x001fb51e LAB_001fb53a: CMP EDX,0x80 JNC 0x001fb559 MOV EAX,EDX LAB_001fb544: MOV byte ptr [RCX],AL INC RCX MOV RSI,qword ptr [RBX] MOV RDI,R14 POP RBX POP R14 POP R15 JMP 0x001fb74a LAB_001fb559: MOV ESI,EDX MOV EAX,EDX LAB_001fb55d: MOV EDI,ESI OR DIL,0x80 MOV byte ptr [RCX],DIL SHR EAX,0x7 INC RCX CMP ESI,0x3fff MOV ESI,EAX JBE 0x001fb544 JMP 0x001fb55d LAB_001fb578: MOV RDI,R14 MOV RSI,RAX CALL 0x001202fc JMP 0x001fb4de
/* google::protobuf::io::EpsCopyOutputStream::WriteStringMaybeAliasedOutline(unsigned int, std::__cxx11::string const&, unsigned char*) */ void __thiscall google::protobuf::io::EpsCopyOutputStream::WriteStringMaybeAliasedOutline (EpsCopyOutputStream *this,uint param_1,string *param_2,uchar *param_3) { uint uVar1; bool bVar2; uint uVar3; byte *pbVar4; uint uVar5; if (*(uchar **)this <= param_3) { param_3 = (uchar *)EnsureSpaceFallback(this,param_3); } uVar1 = *(uint *)(param_2 + 8); uVar5 = param_1 << 3; *param_3 = (byte)uVar5 + 2; if (uVar5 < 0x80) { pbVar4 = param_3 + 1; } else { *param_3 = (byte)uVar5 | 0x82; param_3[1] = (byte)(uVar5 >> 7); pbVar4 = param_3 + 2; if (0x3fff < uVar5) { uVar3 = (uint)param_3[1]; uVar5 = uVar5 >> 7; do { pbVar4[-1] = (byte)uVar3 | 0x80; uVar3 = uVar5 >> 7; *pbVar4 = (byte)uVar3; pbVar4 = pbVar4 + 1; bVar2 = 0x3fff < uVar5; uVar5 = uVar3; } while (bVar2); } } uVar5 = uVar1; uVar3 = uVar1; if (0x7f < uVar1) { do { *pbVar4 = (byte)uVar3 | 0x80; pbVar4 = pbVar4 + 1; bVar2 = 0x3fff < uVar3; uVar5 = uVar3 >> 7; uVar3 = uVar3 >> 7; } while (bVar2); } *pbVar4 = (byte)uVar5; WriteRawMaybeAliased(this,*(void **)param_2,uVar1,pbVar4 + 1); return; }
47,782
translog_write_variable_record_1group
eloqsql/storage/maria/ma_loghandler.c
static my_bool translog_write_variable_record_1group(LSN *lsn, enum translog_record_type type, MARIA_HA *tbl_info, SHORT_TRANSACTION_ID short_trid, struct st_translog_parts *parts, struct st_translog_buffer *buffer_to_flush, uint16 header_length, TRN *trn, void *hook_arg) { TRANSLOG_ADDRESS horizon; struct st_buffer_cursor cursor; int rc= 0; uint i; translog_size_t record_rest, full_pages, first_page; uint additional_chunk3_page= 0; uchar chunk0_header[1 + 2 + 5 + 2]; DBUG_ENTER("translog_write_variable_record_1group"); translog_lock_assert_owner(); if (buffer_to_flush) translog_buffer_lock_assert_owner(buffer_to_flush); set_lsn(lsn, horizon= log_descriptor.horizon); if (translog_set_lsn_for_files(LSN_FILE_NO(*lsn), LSN_FILE_NO(*lsn), *lsn, TRUE) || (log_record_type_descriptor[type].inwrite_hook && (*log_record_type_descriptor[type].inwrite_hook)(type, trn, tbl_info, lsn, hook_arg))) { translog_unlock(); if (buffer_to_flush != NULL) { translog_buffer_flush(buffer_to_flush); translog_buffer_unlock(buffer_to_flush); } DBUG_RETURN(1); } cursor= log_descriptor.bc; cursor.chaser= 1; /* Advance pointer to be able unlock the loghandler */ first_page= translog_get_current_page_rest(); record_rest= parts->record_length - (first_page - header_length); full_pages= record_rest / log_descriptor.page_capacity_chunk_2; record_rest= (record_rest % log_descriptor.page_capacity_chunk_2); if (record_rest + 1 == log_descriptor.page_capacity_chunk_2) { DBUG_PRINT("info", ("2 chunks type 3 is needed")); /* We will write 2 chunks type 3 at the end of this group */ additional_chunk3_page= 1; record_rest= 1; } DBUG_PRINT("info", ("first_page: %u (%u) full_pages: %u (%lu) " "additional: %u (%u) rest %u = %u", first_page, first_page - header_length, full_pages, (ulong) full_pages * log_descriptor.page_capacity_chunk_2, additional_chunk3_page, additional_chunk3_page * (log_descriptor.page_capacity_chunk_2 - 1), record_rest, parts->record_length)); /* record_rest + 3 is chunk type 3 overhead + record_rest */ rc= translog_advance_pointer((int)(full_pages + additional_chunk3_page), (record_rest ? record_rest + 3 : 0), &cursor.buffs); log_descriptor.bc.buffer->last_lsn= *lsn; DBUG_PRINT("info", ("last_lsn set to " LSN_FMT " buffer: %p", LSN_IN_PARTS(log_descriptor.bc.buffer->last_lsn), log_descriptor.bc.buffer)); translog_unlock(); /* Check if we switched buffer and need process it (current buffer is unlocked already => we will not delay other threads */ if (buffer_to_flush != NULL) { if (!rc) rc= translog_buffer_flush(buffer_to_flush); translog_buffer_unlock(buffer_to_flush); } if (rc) { //translog_advance_pointer decreased writers so it is OK DBUG_ASSERT(cursor.buffs.unlck_ptr == cursor.buffs.wrt_ptr); DBUG_RETURN(1); } translog_write_variable_record_1group_header(parts, type, short_trid, header_length, chunk0_header); /* fill the pages */ translog_write_parts_on_page(&horizon, &cursor, first_page, parts); DBUG_PRINT("info", ("absolute horizon: " LSN_FMT " local: " LSN_FMT, LSN_IN_PARTS(log_descriptor.horizon), LSN_IN_PARTS(horizon))); for (i= 0; i < full_pages; i++) { if (translog_write_variable_record_chunk2_page(parts, &horizon, &cursor)) goto error; DBUG_PRINT("info", ("absolute horizon: " LSN_FMT " local: " LSN_FMT, LSN_IN_PARTS(log_descriptor.horizon), LSN_IN_PARTS(horizon))); } if (additional_chunk3_page) { if (translog_write_variable_record_chunk3_page(parts, log_descriptor. page_capacity_chunk_2 - 2, &horizon, &cursor)) goto error; DBUG_PRINT("info", ("absolute horizon: " LSN_FMT " local: " LSN_FMT, LSN_IN_PARTS(log_descriptor.horizon), LSN_IN_PARTS(horizon))); DBUG_ASSERT(cursor.current_page_fill == TRANSLOG_PAGE_SIZE); } if (translog_write_variable_record_chunk3_page(parts, record_rest, &horizon, &cursor)) goto error; DBUG_PRINT("info", ("absolute horizon: " LSN_FMT " local: " LSN_FMT, (uint) LSN_FILE_NO(log_descriptor.horizon), (uint) LSN_OFFSET(log_descriptor.horizon), (uint) LSN_FILE_NO(horizon), (uint) LSN_OFFSET(horizon))); translog_buffer_lock(cursor.buffer); translog_buffer_decrease_writers(cursor.buffer); used_buffs_register_unlock(&cursor.buffs, cursor.buffer); translog_buffer_unlock(cursor.buffer); DBUG_ASSERT(cursor.buffs.unlck_ptr == cursor.buffs.wrt_ptr); DBUG_RETURN(0); error: used_buffs_urgent_unlock(&cursor.buffs); DBUG_RETURN(1); }
O0
c
translog_write_variable_record_1group: pushq %rbp movq %rsp, %rbp subq $0xc0, %rsp movw %cx, %ax movq 0x20(%rbp), %rcx movq 0x18(%rbp), %rcx movw 0x10(%rbp), %cx movq %fs:0x28, %rcx movq %rcx, -0x8(%rbp) movq %rdi, -0x20(%rbp) movl %esi, -0x24(%rbp) movq %rdx, -0x30(%rbp) movw %ax, -0x32(%rbp) movq %r8, -0x40(%rbp) movq %r9, -0x48(%rbp) movl $0x0, -0x94(%rbp) movl $0x0, -0xa8(%rbp) cmpq $0x0, -0x48(%rbp) je 0x90c2b jmp 0x90c2b movq -0x20(%rbp), %rdi movq 0xbeb422(%rip), %rsi # 0xc7c058 movq %rsi, -0x50(%rbp) callq 0x91fa0 movq -0x20(%rbp), %rax movq (%rax), %rax sarq $0x20, %rax movl %eax, %edi movq -0x20(%rbp), %rax movq (%rax), %rax sarq $0x20, %rax movl %eax, %esi movq -0x20(%rbp), %rax movq (%rax), %rdx movl $0x1, %ecx callq 0x91fd0 movsbl %al, %eax cmpl $0x0, %eax jne 0x90cc0 movl -0x24(%rbp), %eax movl %eax, %ecx leaq 0x3e9592(%rip), %rax # 0x47a210 imulq $0x48, %rcx, %rcx addq %rcx, %rax cmpq $0x0, 0x10(%rax) je 0x90ce9 movl -0x24(%rbp), %eax movl %eax, %ecx leaq 0x3e9578(%rip), %rax # 0x47a210 imulq $0x48, %rcx, %rcx addq %rcx, %rax movq 0x10(%rax), %rax movl -0x24(%rbp), %edi movq 0x18(%rbp), %rsi movq -0x30(%rbp), %rdx movq -0x20(%rbp), %rcx movq 0x20(%rbp), %r8 callq *%rax movsbl %al, %eax cmpl $0x0, %eax je 0x90ce9 callq 0x86d90 cmpq $0x0, -0x48(%rbp) je 0x90cde movq -0x48(%rbp), %rdi callq 0x8cf50 movq -0x48(%rbp), %rdi callq 0x86d60 jmp 0x90ce0 movb $0x1, -0x13(%rbp) jmp 0x90f74 leaq -0x90(%rbp), %rdi leaq 0x3ea719(%rip), %rsi # 0x47b410 addq $0x800c50, %rsi # imm = 0x800C50 movl $0x40, %edx callq 0x29090 movb $0x1, -0x59(%rbp) callq 0x92a30 movl %eax, -0xa4(%rbp) movq -0x40(%rbp), %rax movl (%rax), %eax movl -0xa4(%rbp), %ecx movzwl 0x10(%rbp), %edx subl %edx, %ecx subl %ecx, %eax movl %eax, -0x9c(%rbp) movl -0x9c(%rbp), %eax movzwl 0x3ea6f8(%rip), %ecx # 0x47b436 xorl %edx, %edx divl %ecx movl %eax, -0xa0(%rbp) movl -0x9c(%rbp), %eax movzwl 0x3ea6e1(%rip), %ecx # 0x47b436 xorl %edx, %edx divl %ecx movl %edx, -0x9c(%rbp) movl -0x9c(%rbp), %eax addl $0x1, %eax movzwl 0x3ea6c7(%rip), %ecx # 0x47b436 cmpl %ecx, %eax jne 0x90d8b jmp 0x90d75 jmp 0x90d77 movl $0x1, -0xa8(%rbp) movl $0x1, -0x9c(%rbp) jmp 0x90d8d jmp 0x90d8f movl -0xa0(%rbp), %eax addl -0xa8(%rbp), %eax movl %eax, -0xac(%rbp) cmpl $0x0, -0x9c(%rbp) je 0x90dbb movl -0x9c(%rbp), %eax addl $0x3, %eax movl %eax, -0xb0(%rbp) jmp 0x90dc5 xorl %eax, %eax movl %eax, -0xb0(%rbp) jmp 0x90dc5 movl -0xac(%rbp), %edi movl -0xb0(%rbp), %eax leaq -0x90(%rbp), %rdx movzwl %ax, %esi callq 0x92450 movsbl %al, %eax movl %eax, -0x94(%rbp) movq -0x20(%rbp), %rax movq (%rax), %rcx movq 0xbeb291(%rip), %rax # 0xc7c088 movq %rcx, 0x100000(%rax) jmp 0x90e00 callq 0x86d90 cmpq $0x0, -0x48(%rbp) je 0x90e30 cmpl $0x0, -0x94(%rbp) jne 0x90e27 movq -0x48(%rbp), %rdi callq 0x8cf50 movsbl %al, %eax movl %eax, -0x94(%rbp) movq -0x48(%rbp), %rdi callq 0x86d60 cmpl $0x0, -0x94(%rbp) je 0x90e48 jmp 0x90e3b jmp 0x90e3d jmp 0x90e3f movb $0x1, -0x13(%rbp) jmp 0x90f74 movq -0x40(%rbp), %rdi movl -0x24(%rbp), %esi movw -0x32(%rbp), %cx movw 0x10(%rbp), %ax leaq -0x12(%rbp), %r8 movzwl %cx, %edx movzwl %ax, %ecx callq 0x91ed0 movl -0xa4(%rbp), %edx movq -0x40(%rbp), %rcx leaq -0x50(%rbp), %rdi leaq -0x90(%rbp), %rsi callq 0x92170 jmp 0x90e82 movl $0x0, -0x98(%rbp) movl -0x98(%rbp), %eax cmpl -0xa0(%rbp), %eax jae 0x90ece movq -0x40(%rbp), %rdi leaq -0x50(%rbp), %rsi leaq -0x90(%rbp), %rdx callq 0x927d0 cmpb $0x0, %al je 0x90eb7 jmp 0x90f64 jmp 0x90eb9 jmp 0x90ebb jmp 0x90ebd movl -0x98(%rbp), %eax addl $0x1, %eax movl %eax, -0x98(%rbp) jmp 0x90e8c cmpl $0x0, -0xa8(%rbp) je 0x90f08 movq -0x40(%rbp), %rdi movzwl 0x3ea554(%rip), %eax # 0x47b436 subl $0x2, %eax leaq -0x50(%rbp), %rdx leaq -0x90(%rbp), %rcx movzwl %ax, %esi callq 0x92840 cmpb $0x0, %al je 0x90efe jmp 0x90f64 jmp 0x90f00 jmp 0x90f02 jmp 0x90f04 jmp 0x90f06 jmp 0x90f08 movq -0x40(%rbp), %rdi movl -0x9c(%rbp), %eax leaq -0x50(%rbp), %rdx leaq -0x90(%rbp), %rcx movzwl %ax, %esi callq 0x92840 cmpb $0x0, %al je 0x90f2b jmp 0x90f64 jmp 0x90f2d jmp 0x90f2f movq -0x68(%rbp), %rdi callq 0x86d20 movq -0x68(%rbp), %rdi callq 0x92920 leaq -0x90(%rbp), %rdi movq -0x68(%rbp), %rsi callq 0x92970 movq -0x68(%rbp), %rdi callq 0x86d60 jmp 0x90f5c jmp 0x90f5e movb $0x0, -0x13(%rbp) jmp 0x90f74 leaq -0x90(%rbp), %rdi callq 0x929a0 movb $0x1, -0x13(%rbp) movb -0x13(%rbp), %al movb %al, -0xb1(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x90f9e movb -0xb1(%rbp), %al addq $0xc0, %rsp popq %rbp retq callq 0x29230 nopw %cs:(%rax,%rax)
translog_write_variable_record_1group: push rbp mov rbp, rsp sub rsp, 0C0h mov ax, cx mov rcx, [rbp+arg_10] mov rcx, [rbp+arg_8] mov cx, [rbp+arg_0] mov rcx, fs:28h mov [rbp+var_8], rcx mov [rbp+var_20], rdi mov [rbp+var_24], esi mov [rbp+var_30], rdx mov [rbp+var_32], ax mov [rbp+var_40], r8 mov [rbp+var_48], r9 mov [rbp+var_94], 0 mov [rbp+var_A8], 0 cmp [rbp+var_48], 0 jz short loc_90C2B jmp short $+2 loc_90C2B: mov rdi, [rbp+var_20] mov rsi, cs:qword_C7C058 mov [rbp+var_50], rsi call set_lsn mov rax, [rbp+var_20] mov rax, [rax] sar rax, 20h mov edi, eax mov rax, [rbp+var_20] mov rax, [rax] sar rax, 20h mov esi, eax mov rax, [rbp+var_20] mov rdx, [rax] mov ecx, 1 call translog_set_lsn_for_files movsx eax, al cmp eax, 0 jnz short loc_90CC0 mov eax, [rbp+var_24] mov ecx, eax lea rax, log_record_type_descriptor imul rcx, 48h ; 'H' add rax, rcx cmp qword ptr [rax+10h], 0 jz short loc_90CE9 mov eax, [rbp+var_24] mov ecx, eax lea rax, log_record_type_descriptor imul rcx, 48h ; 'H' add rax, rcx mov rax, [rax+10h] mov edi, [rbp+var_24] mov rsi, [rbp+arg_8] mov rdx, [rbp+var_30] mov rcx, [rbp+var_20] mov r8, [rbp+arg_10] call rax movsx eax, al cmp eax, 0 jz short loc_90CE9 loc_90CC0: call translog_unlock cmp [rbp+var_48], 0 jz short loc_90CDE mov rdi, [rbp+var_48] call translog_buffer_flush mov rdi, [rbp+var_48] call translog_buffer_unlock loc_90CDE: jmp short $+2 loc_90CE0: mov [rbp+var_13], 1 jmp loc_90F74 loc_90CE9: lea rdi, [rbp+var_90] lea rsi, log_descriptor add rsi, 800C50h mov edx, 40h ; '@' call _memcpy mov [rbp+var_59], 1 call translog_get_current_page_rest mov [rbp+var_A4], eax mov rax, [rbp+var_40] mov eax, [rax] mov ecx, [rbp+var_A4] movzx edx, [rbp+arg_0] sub ecx, edx sub eax, ecx mov [rbp+var_9C], eax mov eax, [rbp+var_9C] movzx ecx, cs:word_47B436 xor edx, edx div ecx mov [rbp+var_A0], eax mov eax, [rbp+var_9C] movzx ecx, cs:word_47B436 xor edx, edx div ecx mov [rbp+var_9C], edx mov eax, [rbp+var_9C] add eax, 1 movzx ecx, cs:word_47B436 cmp eax, ecx jnz short loc_90D8B jmp short $+2 loc_90D75: jmp short $+2 loc_90D77: mov [rbp+var_A8], 1 mov [rbp+var_9C], 1 loc_90D8B: jmp short $+2 loc_90D8D: jmp short $+2 loc_90D8F: mov eax, [rbp+var_A0] add eax, [rbp+var_A8] mov [rbp+var_AC], eax cmp [rbp+var_9C], 0 jz short loc_90DBB mov eax, [rbp+var_9C] add eax, 3 mov [rbp+var_B0], eax jmp short loc_90DC5 loc_90DBB: xor eax, eax mov [rbp+var_B0], eax jmp short $+2 loc_90DC5: mov edi, [rbp+var_AC] mov eax, [rbp+var_B0] lea rdx, [rbp+var_90] movzx esi, ax call translog_advance_pointer movsx eax, al mov [rbp+var_94], eax mov rax, [rbp+var_20] mov rcx, [rax] mov rax, cs:qword_C7C088 mov qword ptr ds:loc_100000[rax], rcx jmp short $+2 loc_90E00: call translog_unlock cmp [rbp+var_48], 0 jz short loc_90E30 cmp [rbp+var_94], 0 jnz short loc_90E27 mov rdi, [rbp+var_48] call translog_buffer_flush movsx eax, al mov [rbp+var_94], eax loc_90E27: mov rdi, [rbp+var_48] call translog_buffer_unlock loc_90E30: cmp [rbp+var_94], 0 jz short loc_90E48 jmp short $+2 loc_90E3B: jmp short $+2 loc_90E3D: jmp short $+2 loc_90E3F: mov [rbp+var_13], 1 jmp loc_90F74 loc_90E48: mov rdi, [rbp+var_40] mov esi, [rbp+var_24] mov cx, [rbp+var_32] mov ax, [rbp+arg_0] lea r8, [rbp+var_12] movzx edx, cx movzx ecx, ax call translog_write_variable_record_1group_header mov edx, [rbp+var_A4] mov rcx, [rbp+var_40] lea rdi, [rbp+var_50] lea rsi, [rbp+var_90] call translog_write_parts_on_page jmp short $+2 loc_90E82: mov [rbp+var_98], 0 loc_90E8C: mov eax, [rbp+var_98] cmp eax, [rbp+var_A0] jnb short loc_90ECE mov rdi, [rbp+var_40] lea rsi, [rbp+var_50] lea rdx, [rbp+var_90] call translog_write_variable_record_chunk2_page cmp al, 0 jz short loc_90EB7 jmp loc_90F64 loc_90EB7: jmp short $+2 loc_90EB9: jmp short $+2 loc_90EBB: jmp short $+2 loc_90EBD: mov eax, [rbp+var_98] add eax, 1 mov [rbp+var_98], eax jmp short loc_90E8C loc_90ECE: cmp [rbp+var_A8], 0 jz short loc_90F08 mov rdi, [rbp+var_40] movzx eax, cs:word_47B436 sub eax, 2 lea rdx, [rbp+var_50] lea rcx, [rbp+var_90] movzx esi, ax call translog_write_variable_record_chunk3_page cmp al, 0 jz short loc_90EFE jmp short loc_90F64 loc_90EFE: jmp short $+2 loc_90F00: jmp short $+2 loc_90F02: jmp short $+2 loc_90F04: jmp short $+2 loc_90F06: jmp short $+2 loc_90F08: mov rdi, [rbp+var_40] mov eax, [rbp+var_9C] lea rdx, [rbp+var_50] lea rcx, [rbp+var_90] movzx esi, ax call translog_write_variable_record_chunk3_page cmp al, 0 jz short loc_90F2B jmp short loc_90F64 loc_90F2B: jmp short $+2 loc_90F2D: jmp short $+2 loc_90F2F: mov rdi, [rbp+var_68] call translog_buffer_lock mov rdi, [rbp+var_68] call translog_buffer_decrease_writers lea rdi, [rbp+var_90] mov rsi, [rbp+var_68] call used_buffs_register_unlock mov rdi, [rbp+var_68] call translog_buffer_unlock jmp short $+2 loc_90F5C: jmp short $+2 loc_90F5E: mov [rbp+var_13], 0 jmp short loc_90F74 loc_90F64: lea rdi, [rbp+var_90] call used_buffs_urgent_unlock mov [rbp+var_13], 1 loc_90F74: mov al, [rbp+var_13] mov [rbp+var_B1], al mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_90F9E mov al, [rbp+var_B1] add rsp, 0C0h pop rbp retn loc_90F9E: call ___stack_chk_fail
char translog_write_variable_record_1group( _QWORD *a1, unsigned int a2, long long a3, unsigned __int16 a4, _DWORD *a5, long long a6, unsigned __int16 a7, long long a8, long long a9) { unsigned __int16 v10; // [rsp+10h] [rbp-B0h] int v11; // [rsp+18h] [rbp-A8h] unsigned int current_page_rest; // [rsp+1Ch] [rbp-A4h] unsigned int v13; // [rsp+20h] [rbp-A0h] unsigned int v14; // [rsp+24h] [rbp-9Ch] unsigned int v15; // [rsp+24h] [rbp-9Ch] unsigned int i; // [rsp+28h] [rbp-98h] int v17; // [rsp+2Ch] [rbp-94h] _BYTE v18[40]; // [rsp+30h] [rbp-90h] BYREF long long v19; // [rsp+58h] [rbp-68h] char v20; // [rsp+67h] [rbp-59h] long long v21; // [rsp+70h] [rbp-50h] BYREF long long v22; // [rsp+78h] [rbp-48h] _DWORD *v23; // [rsp+80h] [rbp-40h] unsigned __int16 v24; // [rsp+8Eh] [rbp-32h] long long v25; // [rsp+90h] [rbp-30h] unsigned int v26; // [rsp+9Ch] [rbp-24h] _QWORD *v27; // [rsp+A0h] [rbp-20h] _BYTE v29[10]; // [rsp+AEh] [rbp-12h] BYREF unsigned long long v30; // [rsp+B8h] [rbp-8h] v30 = __readfsqword(0x28u); v27 = a1; v26 = a2; v25 = a3; v24 = a4; v23 = a5; v22 = a6; v11 = 0; v21 = qword_C7C058; set_lsn(a1, qword_C7C058); if ( (unsigned __int8)translog_set_lsn_for_files((unsigned int)HIDWORD(*v27), (unsigned int)HIDWORD(*v27), *v27, 1LL) || *(_QWORD *)&log_record_type_descriptor[18 * v26 + 4] && (*(unsigned __int8 ( **)(_QWORD, long long, long long, _QWORD *, long long))&log_record_type_descriptor[18 * v26 + 4])( v26, a8, v25, v27, a9) ) { translog_unlock(); if ( v22 ) { translog_buffer_flush(v22); translog_buffer_unlock(v22); } return 1; } else { memcpy(v18, &log_descriptor[1048970], 64LL); v20 = 1; current_page_rest = translog_get_current_page_rest(); v14 = *v23 - (current_page_rest - a7); v13 = v14 / (unsigned __int16)word_47B436; v15 = v14 % (unsigned __int16)word_47B436; if ( v15 + 1 == (unsigned __int16)word_47B436 ) { v11 = 1; v15 = 1; } if ( v15 ) v10 = v15 + 3; else v10 = 0; v17 = (char)translog_advance_pointer(v11 + v13, v10, v18); *(_QWORD *)((char *)&loc_100000 + qword_C7C088) = *v27; translog_unlock(); if ( v22 ) { if ( !v17 ) v17 = translog_buffer_flush(v22); translog_buffer_unlock(v22); } if ( v17 ) { return 1; } else { translog_write_variable_record_1group_header(v23, v26, v24, a7, v29); translog_write_parts_on_page(&v21, v18, current_page_rest, v23); for ( i = 0; i < v13; ++i ) { if ( (unsigned __int8)translog_write_variable_record_chunk2_page(v23, &v21, v18) ) goto LABEL_26; } if ( (!v11 || !(unsigned __int8)translog_write_variable_record_chunk3_page( v23, (unsigned __int16)(word_47B436 - 2), &v21, v18)) && !(unsigned __int8)translog_write_variable_record_chunk3_page(v23, (unsigned __int16)v15, &v21, v18) ) { translog_buffer_lock(v19); translog_buffer_decrease_writers(v19); used_buffs_register_unlock(v18, v19); translog_buffer_unlock(v19); return 0; } LABEL_26: used_buffs_urgent_unlock(v18); return 1; } } }
translog_write_variable_record_1group: PUSH RBP MOV RBP,RSP SUB RSP,0xc0 MOV AX,CX MOV RCX,qword ptr [RBP + 0x20] MOV RCX,qword ptr [RBP + 0x18] MOV CX,word ptr [RBP + 0x10] MOV RCX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RCX MOV qword ptr [RBP + -0x20],RDI MOV dword ptr [RBP + -0x24],ESI MOV qword ptr [RBP + -0x30],RDX MOV word ptr [RBP + -0x32],AX MOV qword ptr [RBP + -0x40],R8 MOV qword ptr [RBP + -0x48],R9 MOV dword ptr [RBP + -0x94],0x0 MOV dword ptr [RBP + -0xa8],0x0 CMP qword ptr [RBP + -0x48],0x0 JZ 0x00190c2b JMP 0x00190c2b LAB_00190c2b: MOV RDI,qword ptr [RBP + -0x20] MOV RSI,qword ptr [0x00d7c058] MOV qword ptr [RBP + -0x50],RSI CALL 0x00191fa0 MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX] SAR RAX,0x20 MOV EDI,EAX MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX] SAR RAX,0x20 MOV ESI,EAX MOV RAX,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RAX] MOV ECX,0x1 CALL 0x00191fd0 MOVSX EAX,AL CMP EAX,0x0 JNZ 0x00190cc0 MOV EAX,dword ptr [RBP + -0x24] MOV ECX,EAX LEA RAX,[0x57a210] IMUL RCX,RCX,0x48 ADD RAX,RCX CMP qword ptr [RAX + 0x10],0x0 JZ 0x00190ce9 MOV EAX,dword ptr [RBP + -0x24] MOV ECX,EAX LEA RAX,[0x57a210] IMUL RCX,RCX,0x48 ADD RAX,RCX MOV RAX,qword ptr [RAX + 0x10] MOV EDI,dword ptr [RBP + -0x24] MOV RSI,qword ptr [RBP + 0x18] MOV RDX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x20] MOV R8,qword ptr [RBP + 0x20] CALL RAX MOVSX EAX,AL CMP EAX,0x0 JZ 0x00190ce9 LAB_00190cc0: CALL 0x00186d90 CMP qword ptr [RBP + -0x48],0x0 JZ 0x00190cde MOV RDI,qword ptr [RBP + -0x48] CALL 0x0018cf50 MOV RDI,qword ptr [RBP + -0x48] CALL 0x00186d60 LAB_00190cde: JMP 0x00190ce0 LAB_00190ce0: MOV byte ptr [RBP + -0x13],0x1 JMP 0x00190f74 LAB_00190ce9: LEA RDI,[RBP + -0x90] LEA RSI,[0x57b410] ADD RSI,0x800c50 MOV EDX,0x40 CALL 0x00129090 MOV byte ptr [RBP + -0x59],0x1 CALL 0x00192a30 MOV dword ptr [RBP + -0xa4],EAX MOV RAX,qword ptr [RBP + -0x40] MOV EAX,dword ptr [RAX] MOV ECX,dword ptr [RBP + -0xa4] MOVZX EDX,word ptr [RBP + 0x10] SUB ECX,EDX SUB EAX,ECX MOV dword ptr [RBP + -0x9c],EAX MOV EAX,dword ptr [RBP + -0x9c] MOVZX ECX,word ptr [0x0057b436] XOR EDX,EDX DIV ECX MOV dword ptr [RBP + -0xa0],EAX MOV EAX,dword ptr [RBP + -0x9c] MOVZX ECX,word ptr [0x0057b436] XOR EDX,EDX DIV ECX MOV dword ptr [RBP + -0x9c],EDX MOV EAX,dword ptr [RBP + -0x9c] ADD EAX,0x1 MOVZX ECX,word ptr [0x0057b436] CMP EAX,ECX JNZ 0x00190d8b JMP 0x00190d75 LAB_00190d75: JMP 0x00190d77 LAB_00190d77: MOV dword ptr [RBP + -0xa8],0x1 MOV dword ptr [RBP + -0x9c],0x1 LAB_00190d8b: JMP 0x00190d8d LAB_00190d8d: JMP 0x00190d8f LAB_00190d8f: MOV EAX,dword ptr [RBP + -0xa0] ADD EAX,dword ptr [RBP + -0xa8] MOV dword ptr [RBP + -0xac],EAX CMP dword ptr [RBP + -0x9c],0x0 JZ 0x00190dbb MOV EAX,dword ptr [RBP + -0x9c] ADD EAX,0x3 MOV dword ptr [RBP + -0xb0],EAX JMP 0x00190dc5 LAB_00190dbb: XOR EAX,EAX MOV dword ptr [RBP + -0xb0],EAX JMP 0x00190dc5 LAB_00190dc5: MOV EDI,dword ptr [RBP + -0xac] MOV EAX,dword ptr [RBP + -0xb0] LEA RDX,[RBP + -0x90] MOVZX ESI,AX CALL 0x00192450 MOVSX EAX,AL MOV dword ptr [RBP + -0x94],EAX MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [0x00d7c088] MOV qword ptr [RAX + 0x100000],RCX JMP 0x00190e00 LAB_00190e00: CALL 0x00186d90 CMP qword ptr [RBP + -0x48],0x0 JZ 0x00190e30 CMP dword ptr [RBP + -0x94],0x0 JNZ 0x00190e27 MOV RDI,qword ptr [RBP + -0x48] CALL 0x0018cf50 MOVSX EAX,AL MOV dword ptr [RBP + -0x94],EAX LAB_00190e27: MOV RDI,qword ptr [RBP + -0x48] CALL 0x00186d60 LAB_00190e30: CMP dword ptr [RBP + -0x94],0x0 JZ 0x00190e48 JMP 0x00190e3b LAB_00190e3b: JMP 0x00190e3d LAB_00190e3d: JMP 0x00190e3f LAB_00190e3f: MOV byte ptr [RBP + -0x13],0x1 JMP 0x00190f74 LAB_00190e48: MOV RDI,qword ptr [RBP + -0x40] MOV ESI,dword ptr [RBP + -0x24] MOV CX,word ptr [RBP + -0x32] MOV AX,word ptr [RBP + 0x10] LEA R8,[RBP + -0x12] MOVZX EDX,CX MOVZX ECX,AX CALL 0x00191ed0 MOV EDX,dword ptr [RBP + -0xa4] MOV RCX,qword ptr [RBP + -0x40] LEA RDI,[RBP + -0x50] LEA RSI,[RBP + -0x90] CALL 0x00192170 JMP 0x00190e82 LAB_00190e82: MOV dword ptr [RBP + -0x98],0x0 LAB_00190e8c: MOV EAX,dword ptr [RBP + -0x98] CMP EAX,dword ptr [RBP + -0xa0] JNC 0x00190ece MOV RDI,qword ptr [RBP + -0x40] LEA RSI,[RBP + -0x50] LEA RDX,[RBP + -0x90] CALL 0x001927d0 CMP AL,0x0 JZ 0x00190eb7 JMP 0x00190f64 LAB_00190eb7: JMP 0x00190eb9 LAB_00190eb9: JMP 0x00190ebb LAB_00190ebb: JMP 0x00190ebd LAB_00190ebd: MOV EAX,dword ptr [RBP + -0x98] ADD EAX,0x1 MOV dword ptr [RBP + -0x98],EAX JMP 0x00190e8c LAB_00190ece: CMP dword ptr [RBP + -0xa8],0x0 JZ 0x00190f08 MOV RDI,qword ptr [RBP + -0x40] MOVZX EAX,word ptr [0x0057b436] SUB EAX,0x2 LEA RDX,[RBP + -0x50] LEA RCX,[RBP + -0x90] MOVZX ESI,AX CALL 0x00192840 CMP AL,0x0 JZ 0x00190efe JMP 0x00190f64 LAB_00190efe: JMP 0x00190f00 LAB_00190f00: JMP 0x00190f02 LAB_00190f02: JMP 0x00190f04 LAB_00190f04: JMP 0x00190f06 LAB_00190f06: JMP 0x00190f08 LAB_00190f08: MOV RDI,qword ptr [RBP + -0x40] MOV EAX,dword ptr [RBP + -0x9c] LEA RDX,[RBP + -0x50] LEA RCX,[RBP + -0x90] MOVZX ESI,AX CALL 0x00192840 CMP AL,0x0 JZ 0x00190f2b JMP 0x00190f64 LAB_00190f2b: JMP 0x00190f2d LAB_00190f2d: JMP 0x00190f2f LAB_00190f2f: MOV RDI,qword ptr [RBP + -0x68] CALL 0x00186d20 MOV RDI,qword ptr [RBP + -0x68] CALL 0x00192920 LEA RDI,[RBP + -0x90] MOV RSI,qword ptr [RBP + -0x68] CALL 0x00192970 MOV RDI,qword ptr [RBP + -0x68] CALL 0x00186d60 JMP 0x00190f5c LAB_00190f5c: JMP 0x00190f5e LAB_00190f5e: MOV byte ptr [RBP + -0x13],0x0 JMP 0x00190f74 LAB_00190f64: LEA RDI,[RBP + -0x90] CALL 0x001929a0 MOV byte ptr [RBP + -0x13],0x1 LAB_00190f74: MOV AL,byte ptr [RBP + -0x13] MOV byte ptr [RBP + -0xb1],AL MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x00190f9e MOV AL,byte ptr [RBP + -0xb1] ADD RSP,0xc0 POP RBP RET LAB_00190f9e: CALL 0x00129230
int8 translog_write_variable_record_1group (long *param_1,uint param_2,int8 param_3,int2 param_4,int *param_5, long param_6,ushort param_7,int8 param_8,int8 param_9) { char cVar1; int iVar2; uint uVar3; long in_FS_OFFSET; bool bVar4; uint local_b8; uint local_b0; uint local_a4; uint local_a0; int1 local_98 [40]; int8 local_70; int1 local_61; int8 local_58; long local_50; int *local_48; int2 local_3a; int8 local_38; uint local_2c; long *local_28; int1 local_1b; int1 local_1a [10]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_58 = DAT_00d7c058; local_50 = param_6; local_48 = param_5; local_3a = param_4; local_38 = param_3; local_2c = param_2; local_28 = param_1; set_lsn(param_1); cVar1 = translog_set_lsn_for_files (*local_28 >> 0x20 & 0xffffffff,*local_28 >> 0x20 & 0xffffffff,*local_28,1); if ((cVar1 == '\0') && ((*(long *)(log_record_type_descriptor + (ulong)local_2c * 0x48 + 0x10) == 0 || (cVar1 = (**(code **)(log_record_type_descriptor + (ulong)local_2c * 0x48 + 0x10)) (local_2c,param_8,local_38,local_28,param_9), cVar1 == '\0')))) { memcpy(local_98,&DAT_00d7c060,0x40); local_61 = 1; iVar2 = translog_get_current_page_rest(); local_a4 = *local_48 - (iVar2 - (uint)param_7); uVar3 = local_a4 / DAT_0057b436; local_a4 = local_a4 % (uint)DAT_0057b436; bVar4 = local_a4 + 1 == (uint)DAT_0057b436; if (bVar4) { local_a4 = 1; } local_b0 = (uint)bVar4; if (local_a4 == 0) { local_b8 = 0; } else { local_b8 = local_a4 + 3; } cVar1 = translog_advance_pointer(uVar3 + local_b0,local_b8 & 0xffff,local_98); *(long *)(DAT_00d7c088 + 0x100000) = *local_28; translog_unlock(); if (local_50 != 0) { if (cVar1 == '\0') { cVar1 = translog_buffer_flush(local_50); } translog_buffer_unlock(local_50); } if (cVar1 == '\0') { translog_write_variable_record_1group_header(local_48,local_2c,local_3a,param_7,local_1a); translog_write_parts_on_page(&local_58,local_98,iVar2,local_48); for (local_a0 = 0; local_a0 < uVar3; local_a0 = local_a0 + 1) { cVar1 = translog_write_variable_record_chunk2_page(local_48,&local_58,local_98); if (cVar1 != '\0') goto LAB_00190f64; } if (((local_b0 == 0) || (cVar1 = translog_write_variable_record_chunk3_page (local_48,DAT_0057b436 - 2,&local_58,local_98), cVar1 == '\0')) && (cVar1 = translog_write_variable_record_chunk3_page(local_48,local_a4,&local_58,local_98), cVar1 == '\0')) { translog_buffer_lock(local_70); translog_buffer_decrease_writers(local_70); used_buffs_register_unlock(local_98,local_70); translog_buffer_unlock(local_70); local_1b = 0; } else { LAB_00190f64: used_buffs_urgent_unlock(local_98); local_1b = 1; } } else { local_1b = 1; } } else { translog_unlock(); if (local_50 != 0) { translog_buffer_flush(local_50); translog_buffer_unlock(local_50); } local_1b = 1; } if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),local_1b); } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
47,783
reset_table_lock_waits_by_table()
eloqsql/storage/perfschema/pfs_events_waits.cc
void reset_table_lock_waits_by_table() { global_table_share_container.apply(fct_reset_table_lock_waits_by_table); }
O3
cpp
reset_table_lock_waits_by_table(): pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx xorl %r14d, %r14d leaq 0x372253(%rip), %r15 # 0x3a6a78 movq 0xa8(%r15,%r14,8), %rax testq %rax, %rax je 0x34864 movq 0x50(%rax), %r12 testq %r12, %r12 jle 0x34864 movq 0x48(%rax), %rbx shlq $0xa, %r12 addq %rbx, %r12 movl (%rbx), %eax andl $0x3, %eax cmpl $0x2, %eax jne 0x34858 movq %rbx, %rdi callq 0x3d27e addq $0x400, %rbx # imm = 0x400 cmpq %r12, %rbx jb 0x34846 incq %r14 cmpq $0x1000, %r14 # imm = 0x1000 jne 0x34825 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
_Z31reset_table_lock_waits_by_tablev: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx xor r14d, r14d lea r15, global_table_share_container loc_34825: mov rax, [r15+r14*8+0A8h] test rax, rax jz short loc_34864 mov r12, [rax+50h] test r12, r12 jle short loc_34864 mov rbx, [rax+48h] shl r12, 0Ah add r12, rbx loc_34846: mov eax, [rbx] and eax, 3 cmp eax, 2 jnz short loc_34858 mov rdi, rbx; this call _ZN15PFS_table_share14aggregate_lockEv; PFS_table_share::aggregate_lock(void) loc_34858: add rbx, 400h cmp rbx, r12 jb short loc_34846 loc_34864: inc r14 cmp r14, 1000h jnz short loc_34825 pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long reset_table_lock_waits_by_table(void) { long long i; // r14 long long result; // rax long long v2; // r12 PFS_table_share *v3; // rbx PFS_table_share *v4; // r12 for ( i = 0LL; i != 4096; ++i ) { result = global_table_share_container[i + 21]; if ( result ) { v2 = *(_QWORD *)(result + 80); if ( v2 > 0 ) { v3 = *(PFS_table_share **)(result + 72); v4 = (PFS_table_share *)((char *)v3 + 1024 * v2); do { result = *(_DWORD *)v3 & 3; if ( (_DWORD)result == 2 ) result = PFS_table_share::aggregate_lock(v3); v3 = (PFS_table_share *)((char *)v3 + 1024); } while ( v3 < v4 ); } } } return result; }
reset_table_lock_waits_by_table: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX XOR R14D,R14D LEA R15,[0x4a6a78] LAB_00134825: MOV RAX,qword ptr [R15 + R14*0x8 + 0xa8] TEST RAX,RAX JZ 0x00134864 MOV R12,qword ptr [RAX + 0x50] TEST R12,R12 JLE 0x00134864 MOV RBX,qword ptr [RAX + 0x48] SHL R12,0xa ADD R12,RBX LAB_00134846: MOV EAX,dword ptr [RBX] AND EAX,0x3 CMP EAX,0x2 JNZ 0x00134858 MOV RDI,RBX CALL 0x0013d27e LAB_00134858: ADD RBX,0x400 CMP RBX,R12 JC 0x00134846 LAB_00134864: INC R14 CMP R14,0x1000 JNZ 0x00134825 POP RBX POP R12 POP R14 POP R15 POP RBP RET
/* WARNING: Unknown calling convention -- yet parameter storage is locked */ /* reset_table_lock_waits_by_table() */ void reset_table_lock_waits_by_table(void) { long lVar1; PFS_table_share *this; PFS_table_share *pPVar2; long lVar3; lVar3 = 0; do { lVar1 = (&DAT_004a6b20)[lVar3]; if ((lVar1 != 0) && (0 < *(long *)(lVar1 + 0x50))) { this = *(PFS_table_share **)(lVar1 + 0x48); pPVar2 = this + *(long *)(lVar1 + 0x50) * 0x400; do { if ((*(uint *)this & 3) == 2) { PFS_table_share::aggregate_lock(this); } this = this + 0x400; } while (this < pPVar2); } lVar3 = lVar3 + 1; } while (lVar3 != 0x1000); return; }
47,784
inline_mysql_mutex_init
eloqsql/include/mysql/psi/mysql_thread.h
static inline int inline_mysql_mutex_init( #ifdef HAVE_PSI_MUTEX_INTERFACE PSI_mutex_key key, #endif mysql_mutex_t *that, const pthread_mutexattr_t *attr #ifdef SAFE_MUTEX , const char *src_name, const char *src_file, uint src_line #endif ) { #ifdef HAVE_PSI_MUTEX_INTERFACE that->m_psi= PSI_MUTEX_CALL(init_mutex)(key, &that->m_mutex); #else that->m_psi= NULL; #endif #ifdef COROUTINE_ENABLED that->l.data= that; that->l.prev= that->l.next= NULL; #endif #ifdef SAFE_MUTEX return safe_mutex_init(&that->m_mutex, attr, src_name, src_file, src_line); #else return pthread_mutex_init(&that->m_mutex, attr); #endif }
O0
c
inline_mysql_mutex_init: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl %edi, -0x4(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) leaq 0x1ab75e(%rip), %rax # 0x1dd8b8 movq (%rax), %rax movq 0x40(%rax), %rax movl -0x4(%rbp), %edi movq -0x10(%rbp), %rsi callq *%rax movq %rax, %rcx movq -0x10(%rbp), %rax movq %rcx, 0x40(%rax) movq -0x10(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x38(%rax) movq -0x10(%rbp), %rax movq $0x0, 0x30(%rax) movq -0x10(%rbp), %rax movq $0x0, 0x28(%rax) movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0x24430 addq $0x20, %rsp popq %rbp retq nopl (%rax)
inline_mysql_mutex_init_0: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_4], edi mov [rbp+var_10], rsi mov [rbp+var_18], rdx lea rax, PSI_server mov rax, [rax] mov rax, [rax+40h] mov edi, [rbp+var_4] mov rsi, [rbp+var_10] call rax mov rcx, rax mov rax, [rbp+var_10] mov [rax+40h], rcx mov rcx, [rbp+var_10] mov rax, [rbp+var_10] mov [rax+38h], rcx mov rax, [rbp+var_10] mov qword ptr [rax+30h], 0 mov rax, [rbp+var_10] mov qword ptr [rax+28h], 0 mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] call _pthread_mutex_init add rsp, 20h pop rbp retn
long long inline_mysql_mutex_init_0(unsigned int a1, _QWORD *a2, long long a3) { a2[8] = (*((long long ( **)(_QWORD, _QWORD *))PSI_server[0] + 8))(a1, a2); a2[7] = a2; a2[6] = 0LL; a2[5] = 0LL; return pthread_mutex_init(a2, a3); }
inline_mysql_mutex_init: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV dword ptr [RBP + -0x4],EDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX LEA RAX,[0x2dd8b8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x40] MOV EDI,dword ptr [RBP + -0x4] MOV RSI,qword ptr [RBP + -0x10] CALL RAX MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x40],RCX MOV RCX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x38],RCX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x30],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x28],0x0 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] CALL 0x00124430 ADD RSP,0x20 POP RBP RET
void inline_mysql_mutex_init (int4 param_1,pthread_mutex_t *param_2,pthread_mutexattr_t *param_3) { int8 uVar1; uVar1 = (**(code **)(PSI_server + 0x40))(param_1,param_2); *(int8 *)((long)param_2 + 0x40) = uVar1; *(pthread_mutex_t **)((long)param_2 + 0x38) = param_2; *(int8 *)((long)param_2 + 0x30) = 0; param_2[1].__align = 0; pthread_mutex_init(param_2,param_3); return; }
47,785
_gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>> nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::find<char const (&) [12], 0>(char const (&) [12])
monkey531[P]llama/common/json.hpp
iterator find(KeyType && key) // NOLINT(cppcoreguidelines-missing-std-forward) { for (auto it = this->begin(); it != this->end(); ++it) { if (m_compare(it->first, key)) { return it; } } return Container::end(); }
O0
cpp
_gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>> nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::find<char const (&) [12], 0>(char const (&) [12]): subq $0x38, %rsp movq %rdi, 0x28(%rsp) movq %rsi, 0x20(%rsp) movq 0x28(%rsp), %rdi movq %rdi, 0x10(%rsp) callq 0xd5d60 movq %rax, 0x30(%rsp) movq 0x10(%rsp), %rdi callq 0xd5d90 movq %rax, 0x18(%rsp) leaq 0x30(%rsp), %rdi leaq 0x18(%rsp), %rsi callq 0xd5dc0 testb $0x1, %al jne 0x1dcc06 jmp 0x1dcc46 movq 0x10(%rsp), %rax addq $0x18, %rax movq %rax, 0x8(%rsp) leaq 0x30(%rsp), %rdi callq 0xd6f30 movq 0x8(%rsp), %rdi movq %rax, %rsi movq 0x20(%rsp), %rdx callq 0x1dcc60 testb $0x1, %al jne 0x1dcc36 jmp 0x1dcc38 jmp 0x1dcc55 jmp 0x1dcc3a leaq 0x30(%rsp), %rdi callq 0xd5e40 jmp 0x1dcbe2 movq 0x10(%rsp), %rdi callq 0xd5d90 movq %rax, 0x30(%rsp) movq 0x30(%rsp), %rax addq $0x38, %rsp retq nop
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA17_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_: sub rsp, 38h mov [rsp+38h+var_10], rdi mov [rsp+38h+var_18], rsi mov rdi, [rsp+38h+var_10] mov [rsp+38h+var_28], rdi call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE5beginEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::begin(void) mov [rsp+38h+var_8], rax loc_1DCBE2: mov rdi, [rsp+38h+var_28] call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE3endEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::end(void) mov [rsp+38h+var_20], rax lea rdi, [rsp+38h+var_8] lea rsi, [rsp+38h+var_20] call _ZN9__gnu_cxxneIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbRKNS_17__normal_iteratorIT_T0_EESR_; __gnu_cxx::operator!=<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>(__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&,__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&) test al, 1 jnz short loc_1DCC06 jmp short loc_1DCC46 loc_1DCC06: mov rax, [rsp+38h+var_28] add rax, 18h mov [rsp+38h+var_30], rax lea rdi, [rsp+38h+var_8] call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEptEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator->(void) mov rdi, [rsp+38h+var_30] mov rsi, rax mov rdx, [rsp+38h+var_18] call _ZNKSt8equal_toIvEclIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA17_KcEEDTeqclsr3stdE7forwardIT_Efp_Eclsr3stdE7forwardIT0_Efp0_EEOSD_OSE_ test al, 1 jnz short loc_1DCC36 jmp short loc_1DCC38 loc_1DCC36: jmp short loc_1DCC55 loc_1DCC38: jmp short $+2 loc_1DCC3A: lea rdi, [rsp+38h+var_8] call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEppEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator++(void) jmp short loc_1DCBE2 loc_1DCC46: mov rdi, [rsp+38h+var_28] call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE3endEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::end(void) mov [rsp+38h+var_8], rax loc_1DCC55: mov rax, [rsp+38h+var_8] add rsp, 38h retn
long long ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA17_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_( long long a1, long long a2) { long long v2; // rax long long v4; // [rsp+18h] [rbp-20h] BYREF long long v5; // [rsp+20h] [rbp-18h] long long v6; // [rsp+28h] [rbp-10h] long long i; // [rsp+30h] [rbp-8h] BYREF v6 = a1; v5 = a2; for ( i = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::begin(a1); ; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator++(&i) ) { v4 = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::end(a1); if ( !__gnu_cxx::operator!=<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>( (long long)&i, (long long)&v4) ) break; v2 = __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator->((long long)&i); if ( (std::equal_to<void>::operator()<std::string const&,char const(&)[17]>(a1 + 24, v2, v5) & 1) != 0 ) return i; } return std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::end(a1); }
47,786
_gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>> nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::find<char const (&) [12], 0>(char const (&) [12])
monkey531[P]llama/common/json.hpp
iterator find(KeyType && key) // NOLINT(cppcoreguidelines-missing-std-forward) { for (auto it = this->begin(); it != this->end(); ++it) { if (m_compare(it->first, key)) { return it; } } return Container::end(); }
O2
cpp
_gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>> nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::find<char const (&) [12], 0>(char const (&) [12]): pushq %r15 pushq %r14 pushq %rbx movq %rsi, %rbx movq %rdi, %r15 movq (%rdi), %r14 movq 0x8(%r15), %rax cmpq %rax, %r14 je 0xa148f movq %r14, %rdi movq %rbx, %rsi callq 0x4550a testb %al, %al jne 0xa148c addq $0x30, %r14 jmp 0xa146e movq %r14, %rax popq %rbx popq %r14 popq %r15 retq nop
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA17_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_: push r15 push r14 push rbx mov rbx, rsi mov r15, rdi mov r14, [rdi] loc_A146E: mov rax, [r15+8] cmp r14, rax jz short loc_A148F mov rdi, r14 mov rsi, rbx call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) test al, al jnz short loc_A148C add r14, 30h ; '0' jmp short loc_A146E loc_A148C: mov rax, r14 loc_A148F: pop rbx pop r14 pop r15 retn
long long ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA17_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_( long long *a1) { long long i; // r14 long long result; // rax for ( i = *a1; ; i += 48LL ) { result = a1[1]; if ( i == result ) break; if ( std::operator==<char>(i) ) return i; } return result; }
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA17_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RSI MOV R15,RDI MOV R14,qword ptr [RDI] LAB_001a146e: MOV RAX,qword ptr [R15 + 0x8] CMP R14,RAX JZ 0x001a148f MOV RDI,R14 MOV RSI,RBX CALL 0x0014550a TEST AL,AL JNZ 0x001a148c ADD R14,0x30 JMP 0x001a146e LAB_001a148c: MOV RAX,R14 LAB_001a148f: POP RBX POP R14 POP R15 RET
string * _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA17_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_ (int8 *param_1,char *param_2) { bool bVar1; string *psVar2; string *psVar3; psVar3 = (string *)*param_1; while ((psVar2 = (string *)param_1[1], psVar3 != (string *)param_1[1] && (bVar1 = std::operator==(psVar3,param_2), psVar2 = psVar3, !bVar1))) { psVar3 = psVar3 + 0x30; } return psVar2; }
47,787
test_fetch_seek
eloqsql/libmariadb/unittest/libmariadb/fetch.c
static int test_fetch_seek(MYSQL *mysql) { MYSQL_STMT *stmt; MYSQL_BIND my_bind[3]; MYSQL_ROW_OFFSET row; int rc; int32 c1; char c2[11], c3[20]; const char *query = "SELECT * FROM t1"; rc= mysql_query(mysql, "drop table if exists t1"); check_mysql_rc(rc, mysql); rc= mysql_query(mysql, "create table t1(c1 int primary key auto_increment, c2 char(10), c3 timestamp)"); check_mysql_rc(rc, mysql); rc= mysql_query(mysql, "insert into t1(c2) values('venu'), ('mysql'), ('open'), ('source')"); check_mysql_rc(rc, mysql); stmt= mysql_stmt_init(mysql); FAIL_IF(!stmt, mysql_error(mysql)); rc= mysql_stmt_prepare(stmt, SL(query)); check_stmt_rc(rc,stmt); memset(my_bind, '\0', sizeof(my_bind)); my_bind[0].buffer_type= MYSQL_TYPE_LONG; my_bind[0].buffer= (void *)&c1; my_bind[1].buffer_type= MYSQL_TYPE_STRING; my_bind[1].buffer= (void *)c2; my_bind[1].buffer_length= sizeof(c2); my_bind[2]= my_bind[1]; my_bind[2].buffer= (void *)c3; my_bind[2].buffer_length= sizeof(c3); rc= mysql_stmt_execute(stmt); check_stmt_rc(rc,stmt); rc= mysql_stmt_bind_result(stmt, my_bind); check_stmt_rc(rc,stmt); rc= mysql_stmt_store_result(stmt); check_stmt_rc(rc,stmt); rc= mysql_stmt_fetch(stmt); check_stmt_rc(rc,stmt); row= mysql_stmt_row_tell(stmt); row= mysql_stmt_row_seek(stmt, row); rc= mysql_stmt_fetch(stmt); check_stmt_rc(rc,stmt); row= mysql_stmt_row_seek(stmt, row); rc= mysql_stmt_fetch(stmt); check_stmt_rc(rc,stmt); mysql_stmt_data_seek(stmt, 0); rc= mysql_stmt_fetch(stmt); check_stmt_rc(rc,stmt); rc= mysql_stmt_fetch(stmt); check_stmt_rc(rc,stmt); rc= mysql_stmt_fetch(stmt); check_stmt_rc(rc,stmt); rc= mysql_stmt_fetch(stmt); check_stmt_rc(rc,stmt); rc= mysql_stmt_fetch(stmt); FAIL_IF(rc != MYSQL_NO_DATA, "Expected MYSQL_NO_DATA"); mysql_stmt_close(stmt); rc= mysql_query(mysql, "drop table t1"); check_mysql_rc(rc, mysql); return OK; }
O3
c
test_fetch_seek: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x188, %rsp # imm = 0x188 movq %rdi, %rbx movq %fs:0x28, %rax movq %rax, -0x20(%rbp) leaq 0x22d20(%rip), %rsi # 0x3797f callq 0x1d541 testl %eax, %eax je 0x14c9f movl %eax, %r14d movq %rbx, %rdi callq 0x1f5ba movq %rax, %r15 movq %rbx, %rdi callq 0x1f5a5 leaq 0x225d0(%rip), %rdi # 0x37255 leaq 0x22bcb(%rip), %r8 # 0x37857 movl %r14d, %esi movq %r15, %rdx movl %eax, %ecx movl $0xc1, %r9d jmp 0x14d2b leaq 0x22cf1(%rip), %rsi # 0x37997 movq %rbx, %rdi callq 0x1d541 testl %eax, %eax je 0x14ce6 movl %eax, %r14d movq %rbx, %rdi callq 0x1f5ba movq %rax, %r15 movq %rbx, %rdi callq 0x1f5a5 leaq 0x22586(%rip), %rdi # 0x37255 leaq 0x22b81(%rip), %r8 # 0x37857 movl %r14d, %esi movq %r15, %rdx movl %eax, %ecx movl $0xc3, %r9d jmp 0x14d2b leaq 0x22cf8(%rip), %rsi # 0x379e5 movq %rbx, %rdi callq 0x1d541 testl %eax, %eax je 0x14d58 movl %eax, %r14d movq %rbx, %rdi callq 0x1f5ba movq %rax, %r15 movq %rbx, %rdi callq 0x1f5a5 leaq 0x2253f(%rip), %rdi # 0x37255 leaq 0x22b3a(%rip), %r8 # 0x37857 movl %r14d, %esi movq %r15, %rdx movl %eax, %ecx movl $0xc5, %r9d xorl %eax, %eax callq 0x17e37 movl $0x1, %eax movq %fs:0x28, %rcx cmpq -0x20(%rbp), %rcx jne 0x15031 addq $0x188, %rsp # imm = 0x188 popq %rbx popq %r14 popq %r15 popq %rbp retq movq %rbx, %rdi callq 0x23c00 testq %rax, %rax je 0x14da3 movq %rax, %r14 leaq 0x22bff(%rip), %rsi # 0x3796e movl $0x10, %edx movq %rax, %rdi callq 0x23fc4 testl %eax, %eax je 0x14dc6 movq %r14, %rdi callq 0x236a0 leaq 0x22381(%rip), %rdi # 0x37110 leaq 0x22ac1(%rip), %rdx # 0x37857 movq %rax, %rsi movl $0xcb, %ecx jmp 0x150af movq %rbx, %rdi callq 0x1f5ba leaq 0x2235e(%rip), %rdi # 0x37110 leaq 0x22a9e(%rip), %rdx # 0x37857 movq %rax, %rsi movl $0xc8, %ecx jmp 0x150af leaq -0x1a0(%rbp), %r15 movl $0x150, %edx # imm = 0x150 movq %r15, %rdi xorl %esi, %esi callq 0x13260 movl $0x3, 0x60(%r15) leaq -0x44(%rbp), %rax movq %rax, 0x10(%r15) leaq -0x130(%rbp), %rsi movl $0xfe, 0x60(%rsi) leaq -0x2b(%rbp), %rax movq %rax, 0x10(%rsi) movq $0xb, 0x40(%rsi) leaq -0xc0(%rbp), %rax movl $0xe, %ecx movq %rax, %rdi rep movsq (%rsi), %es:(%rdi) leaq -0x40(%rbp), %rcx movq %rcx, 0x10(%rax) movq $0x14, 0x40(%rax) movq %r14, %rdi callq 0x24b95 testl %eax, %eax je 0x14e5b movq %r14, %rdi callq 0x236a0 leaq 0x222c9(%rip), %rdi # 0x37110 leaq 0x22a09(%rip), %rdx # 0x37857 movq %rax, %rsi movl $0xda, %ecx jmp 0x150af leaq -0x1a0(%rbp), %rsi movq %r14, %rdi callq 0x23368 testb %al, %al je 0x14e91 movq %r14, %rdi callq 0x236a0 leaq 0x22293(%rip), %rdi # 0x37110 leaq 0x229d3(%rip), %rdx # 0x37857 movq %rax, %rsi movl $0xdd, %ecx jmp 0x150af movq %r14, %rdi callq 0x2426e testl %eax, %eax je 0x14ec0 movq %r14, %rdi callq 0x236a0 leaq 0x22264(%rip), %rdi # 0x37110 leaq 0x229a4(%rip), %rdx # 0x37857 movq %rax, %rsi movl $0xe0, %ecx jmp 0x150af movq %r14, %rdi callq 0x236bb testl %eax, %eax je 0x14eef movq %r14, %rdi callq 0x236a0 leaq 0x22235(%rip), %rdi # 0x37110 leaq 0x22975(%rip), %rdx # 0x37857 movq %rax, %rsi movl $0xe4, %ecx jmp 0x150af movq %r14, %rdi callq 0x24fc2 movq %r14, %rdi movq %rax, %rsi callq 0x24fd8 movq %rax, %r15 movq %r14, %rdi callq 0x236bb testl %eax, %eax je 0x14f34 movq %r14, %rdi callq 0x236a0 leaq 0x221f0(%rip), %rdi # 0x37110 leaq 0x22930(%rip), %rdx # 0x37857 movq %rax, %rsi movl $0xeb, %ecx jmp 0x150af movq %r14, %rdi movq %r15, %rsi callq 0x24fd8 movq %r14, %rdi callq 0x236bb testl %eax, %eax je 0x14f6e movq %r14, %rdi callq 0x236a0 leaq 0x221b6(%rip), %rdi # 0x37110 leaq 0x228f6(%rip), %rdx # 0x37857 movq %rax, %rsi movl $0xf0, %ecx jmp 0x150af movq %r14, %rdi xorl %esi, %esi callq 0x2366b movq %r14, %rdi callq 0x236bb testl %eax, %eax je 0x14fa7 movq %r14, %rdi callq 0x236a0 leaq 0x2217d(%rip), %rdi # 0x37110 leaq 0x228bd(%rip), %rdx # 0x37857 movq %rax, %rsi movl $0xf5, %ecx jmp 0x150af movq %r14, %rdi callq 0x236bb testl %eax, %eax je 0x14fd6 movq %r14, %rdi callq 0x236a0 leaq 0x2214e(%rip), %rdi # 0x37110 leaq 0x2288e(%rip), %rdx # 0x37857 movq %rax, %rsi movl $0xf8, %ecx jmp 0x150af movq %r14, %rdi callq 0x236bb testl %eax, %eax je 0x15005 movq %r14, %rdi callq 0x236a0 leaq 0x2211f(%rip), %rdi # 0x37110 leaq 0x2285f(%rip), %rdx # 0x37857 movq %rax, %rsi movl $0xfb, %ecx jmp 0x150af movq %r14, %rdi callq 0x236bb testl %eax, %eax je 0x15036 movq %r14, %rdi callq 0x236a0 leaq 0x220f0(%rip), %rdi # 0x37110 leaq 0x22830(%rip), %rdx # 0x37857 movq %rax, %rsi movl $0xfe, %ecx jmp 0x150af callq 0x13500 movq %r14, %rdi callq 0x236bb cmpl $0x64, %eax jne 0x15095 movq %r14, %rdi callq 0x23611 leaq 0x229ed(%rip), %rsi # 0x37a3f movq %rbx, %rdi callq 0x1d541 testl %eax, %eax je 0x150bb movl %eax, %r14d movq %rbx, %rdi callq 0x1f5ba movq %rax, %r15 movq %rbx, %rdi callq 0x1f5a5 leaq 0x221da(%rip), %rdi # 0x37255 leaq 0x227d5(%rip), %r8 # 0x37857 movl %r14d, %esi movq %r15, %rdx movl %eax, %ecx movl $0x105, %r9d # imm = 0x105 jmp 0x14d2b leaq 0x22074(%rip), %rdi # 0x37110 leaq 0x22985(%rip), %rsi # 0x37a28 leaq 0x227ad(%rip), %rdx # 0x37857 movl $0x101, %ecx # imm = 0x101 xorl %eax, %eax callq 0x17e37 jmp 0x14d32 xorl %eax, %eax jmp 0x14d37
test_fetch_seek: push rbp mov rbp, rsp push r15 push r14 push rbx sub rsp, 188h mov rbx, rdi mov rax, fs:28h mov [rbp+var_20], rax lea rsi, aDropTableIfExi_0; "drop table if exists t1" call mysql_query test eax, eax jz short loc_14C9F mov r14d, eax mov rdi, rbx call mysql_error mov r15, rax mov rdi, rbx call mysql_errno lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d" lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov esi, r14d mov rdx, r15 mov ecx, eax mov r9d, 0C1h jmp loc_14D2B loc_14C9F: lea rsi, aCreateTableT1C; "create table t1(c1 int primary key auto"... mov rdi, rbx call mysql_query test eax, eax jz short loc_14CE6 mov r14d, eax mov rdi, rbx call mysql_error mov r15, rax mov rdi, rbx call mysql_errno lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d" lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov esi, r14d mov rdx, r15 mov ecx, eax mov r9d, 0C3h jmp short loc_14D2B loc_14CE6: lea rsi, aInsertIntoT1C2; "insert into t1(c2) values('venu'), ('my"... mov rdi, rbx call mysql_query test eax, eax jz short loc_14D58 mov r14d, eax mov rdi, rbx call mysql_error mov r15, rax mov rdi, rbx call mysql_errno lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d" lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov esi, r14d mov rdx, r15 mov ecx, eax mov r9d, 0C5h loc_14D2B: xor eax, eax call diag loc_14D32: mov eax, 1 loc_14D37: mov rcx, fs:28h cmp rcx, [rbp+var_20] jnz loc_15031 add rsp, 188h pop rbx pop r14 pop r15 pop rbp retn loc_14D58: mov rdi, rbx call mysql_stmt_init test rax, rax jz short loc_14DA3 mov r14, rax lea rsi, aSelectFromT1; "SELECT * FROM t1" mov edx, 10h mov rdi, rax call mysql_stmt_prepare test eax, eax jz short loc_14DC6 mov rdi, r14 call mysql_stmt_error lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov rsi, rax mov ecx, 0CBh jmp loc_150AF loc_14DA3: mov rdi, rbx call mysql_error lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov rsi, rax mov ecx, 0C8h jmp loc_150AF loc_14DC6: lea r15, [rbp+var_1A0] mov edx, 150h mov rdi, r15 xor esi, esi call _memset mov dword ptr [r15+60h], 3 lea rax, [rbp+var_44] mov [r15+10h], rax lea rsi, [rbp+var_130] mov dword ptr [rsi+60h], 0FEh lea rax, [rbp+var_2B] mov [rsi+10h], rax mov qword ptr [rsi+40h], 0Bh lea rax, [rbp+var_C0] mov ecx, 0Eh mov rdi, rax rep movsq lea rcx, [rbp+var_40] mov [rax+10h], rcx mov qword ptr [rax+40h], 14h mov rdi, r14 call mysql_stmt_execute test eax, eax jz short loc_14E5B mov rdi, r14 call mysql_stmt_error lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov rsi, rax mov ecx, 0DAh jmp loc_150AF loc_14E5B: lea rsi, [rbp+var_1A0] mov rdi, r14 call mysql_stmt_bind_result test al, al jz short loc_14E91 mov rdi, r14 call mysql_stmt_error lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov rsi, rax mov ecx, 0DDh jmp loc_150AF loc_14E91: mov rdi, r14 call mysql_stmt_store_result test eax, eax jz short loc_14EC0 mov rdi, r14 call mysql_stmt_error lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov rsi, rax mov ecx, 0E0h jmp loc_150AF loc_14EC0: mov rdi, r14 call mysql_stmt_fetch test eax, eax jz short loc_14EEF mov rdi, r14 call mysql_stmt_error lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov rsi, rax mov ecx, 0E4h jmp loc_150AF loc_14EEF: mov rdi, r14 call mysql_stmt_row_tell mov rdi, r14 mov rsi, rax call mysql_stmt_row_seek mov r15, rax mov rdi, r14 call mysql_stmt_fetch test eax, eax jz short loc_14F34 mov rdi, r14 call mysql_stmt_error lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov rsi, rax mov ecx, 0EBh jmp loc_150AF loc_14F34: mov rdi, r14 mov rsi, r15 call mysql_stmt_row_seek mov rdi, r14 call mysql_stmt_fetch test eax, eax jz short loc_14F6E mov rdi, r14 call mysql_stmt_error lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov rsi, rax mov ecx, 0F0h jmp loc_150AF loc_14F6E: mov rdi, r14 xor esi, esi call mysql_stmt_data_seek mov rdi, r14 call mysql_stmt_fetch test eax, eax jz short loc_14FA7 mov rdi, r14 call mysql_stmt_error lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov rsi, rax mov ecx, 0F5h jmp loc_150AF loc_14FA7: mov rdi, r14 call mysql_stmt_fetch test eax, eax jz short loc_14FD6 mov rdi, r14 call mysql_stmt_error lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov rsi, rax mov ecx, 0F8h jmp loc_150AF loc_14FD6: mov rdi, r14 call mysql_stmt_fetch test eax, eax jz short loc_15005 mov rdi, r14 call mysql_stmt_error lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov rsi, rax mov ecx, 0FBh jmp loc_150AF loc_15005: mov rdi, r14 call mysql_stmt_fetch test eax, eax jz short loc_15036 mov rdi, r14 call mysql_stmt_error lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov rsi, rax mov ecx, 0FEh jmp short loc_150AF loc_15031: call ___stack_chk_fail loc_15036: mov rdi, r14 call mysql_stmt_fetch cmp eax, 64h ; 'd' jnz short loc_15095 mov rdi, r14 call mysql_stmt_close lea rsi, aDropTableT1; "drop table t1" mov rdi, rbx call mysql_query test eax, eax jz short loc_150BB mov r14d, eax mov rdi, rbx call mysql_error mov r15, rax mov rdi, rbx call mysql_errno lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d" lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov esi, r14d mov rdx, r15 mov ecx, eax mov r9d, 105h jmp loc_14D2B loc_15095: lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rsi, aExpectedMysqlN; "Expected MYSQL_NO_DATA" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov ecx, 101h loc_150AF: xor eax, eax call diag jmp loc_14D32 loc_150BB: xor eax, eax jmp loc_14D37
long long test_fetch_seek(long long a1) { int v1; // eax int v2; // r14d int v3; // r15d int v4; // eax const char *v5; // rdi const char *v6; // r8 const char *v7; // rsi const char *v8; // rdx int v9; // ecx int v10; // r9d int v11; // eax int v12; // r14d int v13; // r15d int v14; // eax int v15; // eax int v16; // r14d int v17; // r15d int v18; // eax long long v20; // rax long long v21; // r14 int v22; // eax int v23; // eax int v24; // eax int v25; // eax int v26; // eax int v27; // eax long long v28; // rax long long v29; // r15 int v30; // eax int v31; // eax int v32; // eax int v33; // eax int v34; // eax int v35; // eax int v36; // eax int v37; // r14d int v38; // r15d int v39; // eax _BYTE v40[16]; // [rsp+0h] [rbp-1A0h] BYREF char *v41; // [rsp+10h] [rbp-190h] int v42; // [rsp+60h] [rbp-140h] _QWORD v43[14]; // [rsp+70h] [rbp-130h] BYREF _QWORD v44[15]; // [rsp+E0h] [rbp-C0h] BYREF char v45; // [rsp+15Ch] [rbp-44h] BYREF char v46; // [rsp+160h] [rbp-40h] BYREF char v47; // [rsp+175h] [rbp-2Bh] BYREF unsigned long long v48; // [rsp+180h] [rbp-20h] v48 = __readfsqword(0x28u); v1 = mysql_query(a1, "drop table if exists t1"); if ( v1 ) { v2 = v1; v3 = mysql_error(a1); v4 = mysql_errno(a1); v5 = "Error (%d): %s (%d) in %s line %d"; v6 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/fetch.c"; LODWORD(v7) = v2; LODWORD(v8) = v3; v9 = v4; v10 = 193; LABEL_7: diag((_DWORD)v5, (_DWORD)v7, (_DWORD)v8, v9, (_DWORD)v6, v10); return 1LL; } v11 = mysql_query(a1, "create table t1(c1 int primary key auto_increment, c2 char(10), c3 timestamp)"); if ( v11 ) { v12 = v11; v13 = mysql_error(a1); v14 = mysql_errno(a1); v5 = "Error (%d): %s (%d) in %s line %d"; v6 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/fetch.c"; LODWORD(v7) = v12; LODWORD(v8) = v13; v9 = v14; v10 = 195; goto LABEL_7; } v15 = mysql_query(a1, "insert into t1(c2) values('venu'), ('mysql'), ('open'), ('source')"); if ( v15 ) { v16 = v15; v17 = mysql_error(a1); v18 = mysql_errno(a1); v5 = "Error (%d): %s (%d) in %s line %d"; v6 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/fetch.c"; LODWORD(v7) = v16; LODWORD(v8) = v17; v9 = v18; v10 = 197; goto LABEL_7; } v20 = mysql_stmt_init(a1); if ( !v20 ) { v23 = mysql_error(a1); v5 = "Error: %s (%s: %d)"; v8 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/fetch.c"; LODWORD(v7) = v23; v9 = 200; goto LABEL_7; } v21 = v20; if ( (unsigned int)mysql_stmt_prepare(v20, "SELECT * FROM t1", 16LL) ) { v22 = mysql_stmt_error(v21); v5 = "Error: %s (%s: %d)"; v8 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/fetch.c"; LODWORD(v7) = v22; v9 = 203; goto LABEL_7; } memset(v40, 0LL, 336LL); v42 = 3; v41 = &v45; LODWORD(v43[12]) = 254; v43[2] = &v47; v43[8] = 11LL; qmemcpy(v44, v43, 0x70uLL); v44[2] = &v46; v44[8] = 20LL; if ( (unsigned int)mysql_stmt_execute(v21) ) { v24 = mysql_stmt_error(v21); v5 = "Error: %s (%s: %d)"; v8 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/fetch.c"; LODWORD(v7) = v24; v9 = 218; goto LABEL_7; } if ( (unsigned __int8)mysql_stmt_bind_result(v21, v40) ) { v25 = mysql_stmt_error(v21); v5 = "Error: %s (%s: %d)"; v8 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/fetch.c"; LODWORD(v7) = v25; v9 = 221; goto LABEL_7; } if ( (unsigned int)mysql_stmt_store_result(v21) ) { v26 = mysql_stmt_error(v21); v5 = "Error: %s (%s: %d)"; v8 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/fetch.c"; LODWORD(v7) = v26; v9 = 224; goto LABEL_7; } if ( (unsigned int)mysql_stmt_fetch(v21) ) { v27 = mysql_stmt_error(v21); v5 = "Error: %s (%s: %d)"; v8 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/fetch.c"; LODWORD(v7) = v27; v9 = 228; goto LABEL_7; } v28 = mysql_stmt_row_tell(v21); v29 = mysql_stmt_row_seek(v21, v28); if ( (unsigned int)mysql_stmt_fetch(v21) ) { v30 = mysql_stmt_error(v21); v5 = "Error: %s (%s: %d)"; v8 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/fetch.c"; LODWORD(v7) = v30; v9 = 235; goto LABEL_7; } mysql_stmt_row_seek(v21, v29); if ( (unsigned int)mysql_stmt_fetch(v21) ) { v31 = mysql_stmt_error(v21); v5 = "Error: %s (%s: %d)"; v8 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/fetch.c"; LODWORD(v7) = v31; v9 = 240; goto LABEL_7; } mysql_stmt_data_seek(v21, 0LL); if ( (unsigned int)mysql_stmt_fetch(v21) ) { v32 = mysql_stmt_error(v21); v5 = "Error: %s (%s: %d)"; v8 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/fetch.c"; LODWORD(v7) = v32; v9 = 245; goto LABEL_7; } if ( (unsigned int)mysql_stmt_fetch(v21) ) { v33 = mysql_stmt_error(v21); v5 = "Error: %s (%s: %d)"; v8 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/fetch.c"; LODWORD(v7) = v33; v9 = 248; goto LABEL_7; } if ( (unsigned int)mysql_stmt_fetch(v21) ) { v34 = mysql_stmt_error(v21); v5 = "Error: %s (%s: %d)"; v8 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/fetch.c"; LODWORD(v7) = v34; v9 = 251; goto LABEL_7; } if ( (unsigned int)mysql_stmt_fetch(v21) ) { v35 = mysql_stmt_error(v21); v5 = "Error: %s (%s: %d)"; v8 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/fetch.c"; LODWORD(v7) = v35; v9 = 254; goto LABEL_7; } if ( (unsigned int)mysql_stmt_fetch(v21) != 100 ) { v5 = "Error: %s (%s: %d)"; v7 = "Expected MYSQL_NO_DATA"; v8 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/fetch.c"; v9 = 257; goto LABEL_7; } mysql_stmt_close(v21); v36 = mysql_query(a1, "drop table t1"); if ( v36 ) { v37 = v36; v38 = mysql_error(a1); v39 = mysql_errno(a1); v5 = "Error (%d): %s (%d) in %s line %d"; v6 = "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/fetch.c"; LODWORD(v7) = v37; LODWORD(v8) = v38; v9 = v39; v10 = 261; goto LABEL_7; } return 0LL; }
test_fetch_seek: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x188 MOV RBX,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x20],RAX LEA RSI,[0x13797f] CALL 0x0011d541 TEST EAX,EAX JZ 0x00114c9f MOV R14D,EAX MOV RDI,RBX CALL 0x0011f5ba MOV R15,RAX MOV RDI,RBX CALL 0x0011f5a5 LEA RDI,[0x137255] LEA R8,[0x137857] MOV ESI,R14D MOV RDX,R15 MOV ECX,EAX MOV R9D,0xc1 JMP 0x00114d2b LAB_00114c9f: LEA RSI,[0x137997] MOV RDI,RBX CALL 0x0011d541 TEST EAX,EAX JZ 0x00114ce6 MOV R14D,EAX MOV RDI,RBX CALL 0x0011f5ba MOV R15,RAX MOV RDI,RBX CALL 0x0011f5a5 LEA RDI,[0x137255] LEA R8,[0x137857] MOV ESI,R14D MOV RDX,R15 MOV ECX,EAX MOV R9D,0xc3 JMP 0x00114d2b LAB_00114ce6: LEA RSI,[0x1379e5] MOV RDI,RBX CALL 0x0011d541 TEST EAX,EAX JZ 0x00114d58 MOV R14D,EAX MOV RDI,RBX CALL 0x0011f5ba MOV R15,RAX MOV RDI,RBX CALL 0x0011f5a5 LEA RDI,[0x137255] LEA R8,[0x137857] MOV ESI,R14D MOV RDX,R15 MOV ECX,EAX MOV R9D,0xc5 LAB_00114d2b: XOR EAX,EAX CALL 0x00117e37 LAB_00114d32: MOV EAX,0x1 LAB_00114d37: MOV RCX,qword ptr FS:[0x28] CMP RCX,qword ptr [RBP + -0x20] JNZ 0x00115031 ADD RSP,0x188 POP RBX POP R14 POP R15 POP RBP RET LAB_00114d58: MOV RDI,RBX CALL 0x00123c00 TEST RAX,RAX JZ 0x00114da3 MOV R14,RAX LEA RSI,[0x13796e] MOV EDX,0x10 MOV RDI,RAX CALL 0x00123fc4 TEST EAX,EAX JZ 0x00114dc6 MOV RDI,R14 CALL 0x001236a0 LEA RDI,[0x137110] LEA RDX,[0x137857] MOV RSI,RAX MOV ECX,0xcb JMP 0x001150af LAB_00114da3: MOV RDI,RBX CALL 0x0011f5ba LEA RDI,[0x137110] LEA RDX,[0x137857] MOV RSI,RAX MOV ECX,0xc8 JMP 0x001150af LAB_00114dc6: LEA R15,[RBP + -0x1a0] MOV EDX,0x150 MOV RDI,R15 XOR ESI,ESI CALL 0x00113260 MOV dword ptr [R15 + 0x60],0x3 LEA RAX,[RBP + -0x44] MOV qword ptr [R15 + 0x10],RAX LEA RSI,[RBP + -0x130] MOV dword ptr [RSI + 0x60],0xfe LEA RAX,[RBP + -0x2b] MOV qword ptr [RSI + 0x10],RAX MOV qword ptr [RSI + 0x40],0xb LEA RAX,[RBP + -0xc0] MOV ECX,0xe MOV RDI,RAX MOVSQ.REP RDI,RSI LEA RCX,[RBP + -0x40] MOV qword ptr [RAX + 0x10],RCX MOV qword ptr [RAX + 0x40],0x14 MOV RDI,R14 CALL 0x00124b95 TEST EAX,EAX JZ 0x00114e5b MOV RDI,R14 CALL 0x001236a0 LEA RDI,[0x137110] LEA RDX,[0x137857] MOV RSI,RAX MOV ECX,0xda JMP 0x001150af LAB_00114e5b: LEA RSI,[RBP + -0x1a0] MOV RDI,R14 CALL 0x00123368 TEST AL,AL JZ 0x00114e91 MOV RDI,R14 CALL 0x001236a0 LEA RDI,[0x137110] LEA RDX,[0x137857] MOV RSI,RAX MOV ECX,0xdd JMP 0x001150af LAB_00114e91: MOV RDI,R14 CALL 0x0012426e TEST EAX,EAX JZ 0x00114ec0 MOV RDI,R14 CALL 0x001236a0 LEA RDI,[0x137110] LEA RDX,[0x137857] MOV RSI,RAX MOV ECX,0xe0 JMP 0x001150af LAB_00114ec0: MOV RDI,R14 CALL 0x001236bb TEST EAX,EAX JZ 0x00114eef MOV RDI,R14 CALL 0x001236a0 LEA RDI,[0x137110] LEA RDX,[0x137857] MOV RSI,RAX MOV ECX,0xe4 JMP 0x001150af LAB_00114eef: MOV RDI,R14 CALL 0x00124fc2 MOV RDI,R14 MOV RSI,RAX CALL 0x00124fd8 MOV R15,RAX MOV RDI,R14 CALL 0x001236bb TEST EAX,EAX JZ 0x00114f34 MOV RDI,R14 CALL 0x001236a0 LEA RDI,[0x137110] LEA RDX,[0x137857] MOV RSI,RAX MOV ECX,0xeb JMP 0x001150af LAB_00114f34: MOV RDI,R14 MOV RSI,R15 CALL 0x00124fd8 MOV RDI,R14 CALL 0x001236bb TEST EAX,EAX JZ 0x00114f6e MOV RDI,R14 CALL 0x001236a0 LEA RDI,[0x137110] LEA RDX,[0x137857] MOV RSI,RAX MOV ECX,0xf0 JMP 0x001150af LAB_00114f6e: MOV RDI,R14 XOR ESI,ESI CALL 0x0012366b MOV RDI,R14 CALL 0x001236bb TEST EAX,EAX JZ 0x00114fa7 MOV RDI,R14 CALL 0x001236a0 LEA RDI,[0x137110] LEA RDX,[0x137857] MOV RSI,RAX MOV ECX,0xf5 JMP 0x001150af LAB_00114fa7: MOV RDI,R14 CALL 0x001236bb TEST EAX,EAX JZ 0x00114fd6 MOV RDI,R14 CALL 0x001236a0 LEA RDI,[0x137110] LEA RDX,[0x137857] MOV RSI,RAX MOV ECX,0xf8 JMP 0x001150af LAB_00114fd6: MOV RDI,R14 CALL 0x001236bb TEST EAX,EAX JZ 0x00115005 MOV RDI,R14 CALL 0x001236a0 LEA RDI,[0x137110] LEA RDX,[0x137857] MOV RSI,RAX MOV ECX,0xfb JMP 0x001150af LAB_00115005: MOV RDI,R14 CALL 0x001236bb TEST EAX,EAX JZ 0x00115036 MOV RDI,R14 CALL 0x001236a0 LEA RDI,[0x137110] LEA RDX,[0x137857] MOV RSI,RAX MOV ECX,0xfe JMP 0x001150af LAB_00115031: CALL 0x00113500 LAB_00115036: MOV RDI,R14 CALL 0x001236bb CMP EAX,0x64 JNZ 0x00115095 MOV RDI,R14 CALL 0x00123611 LEA RSI,[0x137a3f] MOV RDI,RBX CALL 0x0011d541 TEST EAX,EAX JZ 0x001150bb MOV R14D,EAX MOV RDI,RBX CALL 0x0011f5ba MOV R15,RAX MOV RDI,RBX CALL 0x0011f5a5 LEA RDI,[0x137255] LEA R8,[0x137857] MOV ESI,R14D MOV RDX,R15 MOV ECX,EAX MOV R9D,0x105 JMP 0x00114d2b LAB_00115095: LEA RDI,[0x137110] LEA RSI,[0x137a28] LEA RDX,[0x137857] MOV ECX,0x101 LAB_001150af: XOR EAX,EAX CALL 0x00117e37 JMP 0x00114d32 LAB_001150bb: XOR EAX,EAX JMP 0x00114d37
int8 test_fetch_seek(int8 param_1) { char cVar1; int iVar2; int4 uVar3; int8 uVar4; long lVar5; char *pcVar6; long lVar7; int8 *puVar8; int8 *puVar9; int8 uVar10; long in_FS_OFFSET; byte bVar11; int1 local_1a8 [16]; int1 *local_198; int4 local_148; int8 local_138 [2]; int1 *local_128; int8 local_f8; int4 local_d8; int8 local_c8 [2]; int1 *local_b8; int8 local_88; int1 local_4c [4]; int1 local_48 [21]; int1 local_33 [11]; long local_28; bVar11 = 0; local_28 = *(long *)(in_FS_OFFSET + 0x28); iVar2 = mysql_query(param_1,"drop table if exists t1"); if (iVar2 == 0) { iVar2 = mysql_query(param_1, "create table t1(c1 int primary key auto_increment, c2 char(10), c3 timestamp)" ); if (iVar2 != 0) { uVar4 = mysql_error(param_1); uVar3 = mysql_errno(param_1); uVar10 = 0xc3; goto LAB_00114d2b; } iVar2 = mysql_query(param_1, "insert into t1(c2) values(\'venu\'), (\'mysql\'), (\'open\'), (\'source\')" ); if (iVar2 != 0) { uVar4 = mysql_error(param_1); uVar3 = mysql_errno(param_1); uVar10 = 0xc5; goto LAB_00114d2b; } lVar5 = mysql_stmt_init(param_1); if (lVar5 == 0) { pcVar6 = (char *)mysql_error(param_1); uVar4 = 200; } else { iVar2 = mysql_stmt_prepare(lVar5,"SELECT * FROM t1",0x10); if (iVar2 == 0) { memset(local_1a8,0,0x150); local_148 = 3; local_198 = local_4c; local_d8 = 0xfe; local_128 = local_33; local_f8 = 0xb; puVar8 = local_138; puVar9 = local_c8; for (lVar7 = 0xe; lVar7 != 0; lVar7 = lVar7 + -1) { *puVar9 = *puVar8; puVar8 = puVar8 + (ulong)bVar11 * -2 + 1; puVar9 = puVar9 + (ulong)bVar11 * -2 + 1; } local_b8 = local_48; local_88 = 0x14; iVar2 = mysql_stmt_execute(lVar5); if (iVar2 == 0) { cVar1 = mysql_stmt_bind_result(lVar5,local_1a8); if (cVar1 == '\0') { iVar2 = mysql_stmt_store_result(lVar5); if (iVar2 == 0) { iVar2 = mysql_stmt_fetch(lVar5); if (iVar2 == 0) { uVar4 = mysql_stmt_row_tell(lVar5); uVar4 = mysql_stmt_row_seek(lVar5,uVar4); iVar2 = mysql_stmt_fetch(lVar5); if (iVar2 == 0) { mysql_stmt_row_seek(lVar5,uVar4); iVar2 = mysql_stmt_fetch(lVar5); if (iVar2 == 0) { mysql_stmt_data_seek(lVar5,0); iVar2 = mysql_stmt_fetch(lVar5); if (iVar2 == 0) { iVar2 = mysql_stmt_fetch(lVar5); if (iVar2 == 0) { iVar2 = mysql_stmt_fetch(lVar5); if (iVar2 == 0) { iVar2 = mysql_stmt_fetch(lVar5); if (iVar2 == 0) { iVar2 = mysql_stmt_fetch(lVar5); if (iVar2 == 100) { mysql_stmt_close(lVar5); iVar2 = mysql_query(param_1,"drop table t1"); if (iVar2 == 0) { uVar4 = 0; goto LAB_00114d37; } uVar4 = mysql_error(param_1); uVar3 = mysql_errno(param_1); uVar10 = 0x105; goto LAB_00114d2b; } pcVar6 = "Expected MYSQL_NO_DATA"; uVar4 = 0x101; } else { pcVar6 = (char *)mysql_stmt_error(lVar5); uVar4 = 0xfe; } } else { pcVar6 = (char *)mysql_stmt_error(lVar5); uVar4 = 0xfb; } } else { pcVar6 = (char *)mysql_stmt_error(lVar5); uVar4 = 0xf8; } } else { pcVar6 = (char *)mysql_stmt_error(lVar5); uVar4 = 0xf5; } } else { pcVar6 = (char *)mysql_stmt_error(lVar5); uVar4 = 0xf0; } } else { pcVar6 = (char *)mysql_stmt_error(lVar5); uVar4 = 0xeb; } } else { pcVar6 = (char *)mysql_stmt_error(lVar5); uVar4 = 0xe4; } } else { pcVar6 = (char *)mysql_stmt_error(lVar5); uVar4 = 0xe0; } } else { pcVar6 = (char *)mysql_stmt_error(lVar5); uVar4 = 0xdd; } } else { pcVar6 = (char *)mysql_stmt_error(lVar5); uVar4 = 0xda; } } else { pcVar6 = (char *)mysql_stmt_error(lVar5); uVar4 = 0xcb; } } diag("Error: %s (%s: %d)",pcVar6, "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/fetch.c",uVar4); } else { uVar4 = mysql_error(param_1); uVar3 = mysql_errno(param_1); uVar10 = 0xc1; LAB_00114d2b: diag("Error (%d): %s (%d) in %s line %d",iVar2,uVar4,uVar3, "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/fetch.c",uVar10); } uVar4 = 1; LAB_00114d37: if (*(long *)(in_FS_OFFSET + 0x28) == local_28) { return uVar4; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
47,788
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>>::end_object()
hkr04[P]cpp-mcp/common/json.hpp
bool end_object() { if (ref_stack.back()) { if (!callback(static_cast<int>(ref_stack.size()) - 1, parse_event_t::object_end, *ref_stack.back())) { // discard object *ref_stack.back() = discarded; } else { ref_stack.back()->set_parents(); } } JSON_ASSERT(!ref_stack.empty()); JSON_ASSERT(!keep_stack.empty()); ref_stack.pop_back(); keep_stack.pop_back(); if (!ref_stack.empty() && ref_stack.back() && ref_stack.back()->is_structured()) { // remove discarded value for (auto it = ref_stack.back()->begin(); it != ref_stack.back()->end(); ++it) { if (it->is_discarded()) { ref_stack.back()->erase(it); break; } } } return true; }
O0
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>>::end_object(): subq $0xb8, %rsp movq %rdi, 0xb0(%rsp) movq 0xb0(%rsp), %rdi movq %rdi, 0x18(%rsp) addq $0x8, %rdi callq 0x3bb70 cmpq $0x0, (%rax) je 0x3aa68 movq 0x18(%rsp), %rdi movq %rdi, %rax addq $0x80, %rax movq %rax, 0x8(%rsp) addq $0x8, %rdi callq 0x3b6b0 movq 0x18(%rsp), %rdi subl $0x1, %eax movl %eax, 0x14(%rsp) addq $0x8, %rdi callq 0x3bb70 movq 0x8(%rsp), %rdi movl 0x14(%rsp), %esi movq (%rax), %rcx movl $0x1, %edx callq 0x3b650 testb $0x1, %al jne 0x3aa50 movq 0x18(%rsp), %rsi addq $0xa8, %rsi leaq 0xa0(%rsp), %rdi callq 0x8f20 movq 0x18(%rsp), %rdi addq $0x8, %rdi callq 0x3bb70 movq (%rax), %rdi leaq 0xa0(%rsp), %rsi callq 0x22280 leaq 0xa0(%rsp), %rdi callq 0x87f0 jmp 0x3aa66 movq 0x18(%rsp), %rdi addq $0x8, %rdi callq 0x3bb70 movq (%rax), %rdi callq 0xb1e0 jmp 0x3aa68 movq 0x18(%rsp), %rdi addq $0x8, %rdi callq 0x3c810 movq 0x18(%rsp), %rdi addq $0x20, %rdi callq 0x3b630 movq 0x18(%rsp), %rdi addq $0x8, %rdi callq 0x3bec0 testb $0x1, %al jne 0x3ab8f movq 0x18(%rsp), %rdi addq $0x8, %rdi callq 0x3bb70 cmpq $0x0, (%rax) je 0x3ab8f movq 0x18(%rsp), %rdi addq $0x8, %rdi callq 0x3bb70 movq (%rax), %rdi callq 0x3c830 testb $0x1, %al jne 0x3aad1 jmp 0x3ab8f movq 0x18(%rsp), %rdi addq $0x8, %rdi callq 0x3bb70 movq (%rax), %rsi leaq 0x80(%rsp), %rdi callq 0x22720 movq 0x18(%rsp), %rdi addq $0x8, %rdi callq 0x3bb70 movq (%rax), %rsi leaq 0x60(%rsp), %rdi callq 0x22760 leaq 0x80(%rsp), %rdi leaq 0x60(%rsp), %rsi callq 0x227a0 testb $0x1, %al jne 0x3ab22 jmp 0x3ab8d leaq 0x80(%rsp), %rdi callq 0x3c870 movq %rax, %rdi callq 0x362d0 testb $0x1, %al jne 0x3ab3d jmp 0x3ab79 movq 0x18(%rsp), %rdi addq $0x8, %rdi callq 0x3bb70 movq (%rax), %rax movq %rax, (%rsp) leaq 0x40(%rsp), %rdi leaq 0x80(%rsp), %rsi callq 0x3cf30 movq (%rsp), %rsi leaq 0x20(%rsp), %rdi leaq 0x40(%rsp), %rdx callq 0x3c9e0 jmp 0x3ab8d jmp 0x3ab7b leaq 0x80(%rsp), %rdi callq 0x22c20 jmp 0x3aaef jmp 0x3ab8f movb $0x1, %al andb $0x1, %al addq $0xb8, %rsp retq nopl (%rax,%rax)
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE10end_objectEv: sub rsp, 0B8h mov qword ptr [rsp+0B8h+var_8], rdi; int mov rdi, qword ptr [rsp+0B8h+var_8] mov qword ptr [rsp+0B8h+var_A0], rdi; int add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,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> *>>::back(void) cmp qword ptr [rax], 0 jz loc_3AA68 mov rdi, qword ptr [rsp+0B8h+var_A0] mov rax, rdi add rax, 80h mov [rsp+0B8h+var_B0], rax add rdi, 8 call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4sizeEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,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> *>>::size(void) mov rdi, qword ptr [rsp+0B8h+var_A0] sub eax, 1 mov [rsp+0B8h+var_A4], eax add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,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> *>>::back(void) mov rdi, [rsp+0B8h+var_B0] mov esi, [rsp+0B8h+var_A4] mov rcx, [rax] mov edx, 1 call _ZNKSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEclEiS3_SH_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::operator()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &) test al, 1 jnz short loc_3AA50 mov rsi, qword ptr [rsp+0B8h+var_A0] add rsi, 0A8h lea rdi, [rsp+0B8h+var_18] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) mov rdi, qword ptr [rsp+0B8h+var_A0] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,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> *>>::back(void) mov rdi, [rax] lea rsi, [rsp+0B8h+var_18] 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>) lea rdi, [rsp+0B8h+var_18] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() jmp short loc_3AA66 loc_3AA50: mov rdi, qword ptr [rsp+0B8h+var_A0] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,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> *>>::back(void) mov rdi, [rax] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE11set_parentsEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::set_parents(void) loc_3AA66: jmp short $+2 loc_3AA68: mov rdi, qword ptr [rsp+0B8h+var_A0] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE8pop_backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,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> *>>::pop_back(void) mov rdi, qword ptr [rsp+0B8h+var_A0] add rdi, 20h ; ' ' call _ZNSt6vectorIbSaIbEE8pop_backEv; std::vector<bool>::pop_back(void) mov rdi, qword ptr [rsp+0B8h+var_A0] add rdi, 8 call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE5emptyEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,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> *>>::empty(void) test al, 1 jnz loc_3AB8F mov rdi, qword ptr [rsp+0B8h+var_A0] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,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> *>>::back(void) cmp qword ptr [rax], 0 jz loc_3AB8F mov rdi, qword ptr [rsp+0B8h+var_A0] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,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> *>>::back(void) mov rdi, [rax] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE13is_structuredEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_structured(void) test al, 1 jnz short loc_3AAD1 jmp loc_3AB8F loc_3AAD1: mov rdi, qword ptr [rsp+0B8h+var_A0] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,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> *>>::back(void) mov rsi, [rax] lea rdi, [rsp+0B8h+var_38] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5beginEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::begin(void) loc_3AAEF: mov rdi, qword ptr [rsp+0B8h+var_A0] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,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> *>>::back(void) mov rsi, [rax] lea rdi, [rsp+0B8h+var_58] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE3endEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::end(void) lea rdi, [rsp+0B8h+var_38]; int lea rsi, [rsp+0B8h+var_58]; void * call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_ test al, 1 jnz short loc_3AB22 jmp short loc_3AB8D loc_3AB22: lea rdi, [rsp+0B8h+var_38] call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEptEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::operator->(void) mov rdi, rax call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE12is_discardedEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_discarded(void) test al, 1 jnz short loc_3AB3D jmp short loc_3AB79 loc_3AB3D: mov rdi, qword ptr [rsp+0B8h+var_A0] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,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> *>>::back(void) mov rax, [rax] mov [rsp+0B8h+var_B8], rax; void * lea rdi, [rsp+0B8h+var_78] lea rsi, [rsp+0B8h+var_38] call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ERKSG_; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::iter_impl(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const&) mov rsi, [rsp+0B8h+var_B8]; int lea rdi, [rsp+0B8h+var_98]; int lea rdx, [rsp+0B8h+var_78]; int call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_ jmp short loc_3AB8D loc_3AB79: jmp short $+2 loc_3AB7B: lea rdi, [rsp+0B8h+var_38] call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEppEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::operator++(void) jmp loc_3AAEF loc_3AB8D: jmp short $+2 loc_3AB8F: mov al, 1 and al, 1 add rsp, 0B8h retn
end_object: SUB RSP,0xb8 MOV qword ptr [RSP + 0xb0],RDI MOV RDI,qword ptr [RSP + 0xb0] MOV qword ptr [RSP + 0x18],RDI ADD RDI,0x8 CALL 0x0013bb70 CMP qword ptr [RAX],0x0 JZ 0x0013aa68 MOV RDI,qword ptr [RSP + 0x18] MOV RAX,RDI ADD RAX,0x80 MOV qword ptr [RSP + 0x8],RAX ADD RDI,0x8 CALL 0x0013b6b0 MOV RDI,qword ptr [RSP + 0x18] SUB EAX,0x1 MOV dword ptr [RSP + 0x14],EAX ADD RDI,0x8 CALL 0x0013bb70 MOV RDI,qword ptr [RSP + 0x8] MOV ESI,dword ptr [RSP + 0x14] MOV RCX,qword ptr [RAX] MOV EDX,0x1 CALL 0x0013b650 TEST AL,0x1 JNZ 0x0013aa50 MOV RSI,qword ptr [RSP + 0x18] ADD RSI,0xa8 LEA RDI,[RSP + 0xa0] CALL 0x00108f20 MOV RDI,qword ptr [RSP + 0x18] ADD RDI,0x8 CALL 0x0013bb70 MOV RDI,qword ptr [RAX] LEA RSI,[RSP + 0xa0] CALL 0x00122280 LEA RDI,[RSP + 0xa0] CALL 0x001087f0 JMP 0x0013aa66 LAB_0013aa50: MOV RDI,qword ptr [RSP + 0x18] ADD RDI,0x8 CALL 0x0013bb70 MOV RDI,qword ptr [RAX] CALL 0x0010b1e0 LAB_0013aa66: JMP 0x0013aa68 LAB_0013aa68: MOV RDI,qword ptr [RSP + 0x18] ADD RDI,0x8 CALL 0x0013c810 MOV RDI,qword ptr [RSP + 0x18] ADD RDI,0x20 CALL 0x0013b630 MOV RDI,qword ptr [RSP + 0x18] ADD RDI,0x8 CALL 0x0013bec0 TEST AL,0x1 JNZ 0x0013ab8f MOV RDI,qword ptr [RSP + 0x18] ADD RDI,0x8 CALL 0x0013bb70 CMP qword ptr [RAX],0x0 JZ 0x0013ab8f MOV RDI,qword ptr [RSP + 0x18] ADD RDI,0x8 CALL 0x0013bb70 MOV RDI,qword ptr [RAX] CALL 0x0013c830 TEST AL,0x1 JNZ 0x0013aad1 JMP 0x0013ab8f LAB_0013aad1: MOV RDI,qword ptr [RSP + 0x18] ADD RDI,0x8 CALL 0x0013bb70 MOV RSI,qword ptr [RAX] LEA RDI,[RSP + 0x80] CALL 0x00122720 LAB_0013aaef: MOV RDI,qword ptr [RSP + 0x18] ADD RDI,0x8 CALL 0x0013bb70 MOV RSI,qword ptr [RAX] LEA RDI,[RSP + 0x60] CALL 0x00122760 LEA RDI,[RSP + 0x80] LEA RSI,[RSP + 0x60] CALL 0x001227a0 TEST AL,0x1 JNZ 0x0013ab22 JMP 0x0013ab8d LAB_0013ab22: LEA RDI,[RSP + 0x80] CALL 0x0013c870 MOV RDI,RAX CALL 0x001362d0 TEST AL,0x1 JNZ 0x0013ab3d JMP 0x0013ab79 LAB_0013ab3d: MOV RDI,qword ptr [RSP + 0x18] ADD RDI,0x8 CALL 0x0013bb70 MOV RAX,qword ptr [RAX] MOV qword ptr [RSP],RAX LEA RDI,[RSP + 0x40] LEA RSI,[RSP + 0x80] CALL 0x0013cf30 MOV RSI,qword ptr [RSP] LEA RDI,[RSP + 0x20] LEA RDX,[RSP + 0x40] CALL 0x0013c9e0 JMP 0x0013ab8d LAB_0013ab79: JMP 0x0013ab7b LAB_0013ab7b: LEA RDI,[RSP + 0x80] CALL 0x00122c20 JMP 0x0013aaef LAB_0013ab8d: JMP 0x0013ab8f LAB_0013ab8f: MOV AL,0x1 AND AL,0x1 ADD RSP,0xb8 RET
/* 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> >::end_object() */ 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>> ::end_object(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) { int8 uVar1; int iVar2; long *plVar3; int8 *puVar4; ulong uVar5; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *this_00; int1 local_98 [32]; iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> local_78 [32]; int1 local_58 [32]; iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> local_38 [32]; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_18 [16]; 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>> *local_8; local_8 = this; plVar3 = (long *)std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); if (*plVar3 != 0) { iVar2 = std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::size((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); puVar4 = (int8 *) std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((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)); uVar5 = 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()((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>&)> *)(this + 0x80),iVar2 + -1,1,*puVar4); if ((uVar5 & 1) == 0) { basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json(local_18,(basic_json *)(this + 0xa8)); puVar4 = (int8 *) std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((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)); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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> *)*puVar4,local_18); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::~basic_json(local_18); } else { std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((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)); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::set_parents(); } } std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::pop_back((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)); std::vector<bool,std::allocator<bool>>::pop_back ((vector<bool,std::allocator<bool>> *)(this + 0x20)); uVar5 = std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::empty((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); if (((uVar5 & 1) == 0) && (plVar3 = (long *)std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((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)), *plVar3 != 0)) { puVar4 = (int8 *) std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((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)); uVar5 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::is_structured((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)*puVar4); if ((uVar5 & 1) != 0) { std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((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)); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::begin(); while( true ) { std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((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)); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::end(); uVar5 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_ (local_38,local_58); if ((uVar5 & 1) == 0) break; this_00 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::operator->(local_38); uVar5 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::is_discarded(this_00); if ((uVar5 & 1) != 0) { puVar4 = (int8 *) std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((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)); uVar1 = *puVar4; iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::iter_impl(local_78,local_38); _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_ (local_98,uVar1,local_78); return 1; } iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::operator++(local_38); } } } return 1; }
47,789
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>>::end_object()
hkr04[P]cpp-mcp/common/json.hpp
bool end_object() { if (ref_stack.back()) { if (!callback(static_cast<int>(ref_stack.size()) - 1, parse_event_t::object_end, *ref_stack.back())) { // discard object *ref_stack.back() = discarded; } else { ref_stack.back()->set_parents(); } } JSON_ASSERT(!ref_stack.empty()); JSON_ASSERT(!keep_stack.empty()); ref_stack.pop_back(); keep_stack.pop_back(); if (!ref_stack.empty() && ref_stack.back() && ref_stack.back()->is_structured()) { // remove discarded value for (auto it = ref_stack.back()->begin(); it != ref_stack.back()->end(); ++it) { if (it->is_discarded()) { ref_stack.back()->erase(it); break; } } } return true; }
O1
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>>::end_object(): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x70, %rsp movq %rdi, %rbx movq 0x10(%rdi), %rax movq -0x8(%rax), %rcx testq %rcx, %rcx je 0x184e4 subq 0x8(%rbx), %rax shrq $0x3, %rax decl %eax movl %eax, 0x20(%rsp) movb $0x1, (%rsp) cmpq $0x0, 0x90(%rbx) je 0x18648 leaq 0x80(%rbx), %rdi leaq 0x20(%rsp), %rsi movq %rsp, %rdx callq *0x98(%rbx) testb %al, %al jne 0x184e4 leaq 0xa8(%rbx), %rsi leaq 0x40(%rsp), %r14 movq %r14, %rdi callq 0x7852 movq 0x10(%rbx), %rax movq -0x8(%rax), %rax movb (%rax), %cl movb (%r14), %dl movb %dl, (%rax) movb %cl, (%r14) movq 0x8(%rax), %rcx movq 0x8(%r14), %rdx movq %rdx, 0x8(%rax) movq %rcx, 0x8(%r14) movq %r14, %rdi callq 0x7a32 movq 0x10(%rbx), %rax leaq -0x8(%rax), %rcx movq %rcx, 0x10(%rbx) subl $0x1, 0x38(%rbx) jae 0x18502 movl $0x3f, 0x38(%rbx) addq $-0x8, 0x30(%rbx) cmpq %rcx, 0x8(%rbx) je 0x18638 movq -0x10(%rax), %rcx testq %rcx, %rcx je 0x18638 movb (%rcx), %cl decb %cl cmpb $0x1, %cl ja 0x18638 movabsq $-0x8000000000000000, %r12 # imm = 0x8000000000000000 movq -0x10(%rax), %rsi leaq 0x20(%rsp), %r14 movq %r14, %rdi callq 0xf92c leaq 0x8(%rsp), %r13 movq %rsp, %r15 movq 0x10(%rbx), %rax movq -0x8(%rax), %rax movq %rax, (%rsp) xorps %xmm0, %xmm0 movups %xmm0, (%r13) movq %r12, 0x18(%rsp) movzbl (%rax), %ecx cmpl $0x2, %ecx je 0x1857a cmpl $0x1, %ecx jne 0x18585 movq $0x0, 0x8(%rsp) jmp 0x1858a movq $0x0, 0x10(%rsp) jmp 0x1858a movq %r12, 0x18(%rsp) cmpl $0x2, %ecx je 0x185a3 cmpl $0x1, %ecx jne 0x185b2 movq 0x8(%rax), %rax movq 0x8(%rax), %rax movq %rax, 0x8(%rsp) jmp 0x185bb movq 0x8(%rax), %rax movq 0x8(%rax), %rax movq %rax, 0x10(%rsp) jmp 0x185bb movq $0x1, 0x18(%rsp) movq %r14, %rdi movq %r15, %rsi callq 0x11e9e testb %al, %al jne 0x18638 movq %r14, %rdi callq 0x1928c cmpb $0x9, (%rax) je 0x18609 movq 0x20(%rsp), %rax movzbl (%rax), %eax cmpl $0x2, %eax je 0x185f4 cmpl $0x1, %eax jne 0x185ff addq $0x30, 0x28(%rsp) jmp 0x18549 addq $0x10, 0x30(%rsp) jmp 0x18549 incq 0x38(%rsp) jmp 0x18549 movq 0x10(%rbx), %rax movq -0x8(%rax), %rsi movq 0x20(%rsp), %rax leaq 0x50(%rsp), %rdx movq %rax, (%rdx) movups 0x28(%rsp), %xmm0 movups %xmm0, 0x8(%rdx) movq 0x38(%rsp), %rax movq %rax, 0x18(%rdx) movq %rsp, %rdi callq 0x19360 movb $0x1, %al addq $0x70, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq callq 0x5170 nop
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE10end_objectEv: push r15 push r14 push r13 push r12 push rbx sub rsp, 70h mov rbx, rdi mov rax, [rdi+10h] mov rcx, [rax-8] test rcx, rcx jz short loc_184E4 sub rax, [rbx+8] shr rax, 3 dec eax mov dword ptr [rsp+98h+var_78], eax mov byte ptr [rsp+98h+var_98], 1 cmp qword ptr [rbx+90h], 0 jz loc_18648 lea rdi, [rbx+80h] lea rsi, [rsp+98h+var_78] mov rdx, rsp call qword ptr [rbx+98h] test al, al jnz short loc_184E4 lea rsi, [rbx+0A8h] lea r14, [rsp+98h+var_58] mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) mov rax, [rbx+10h] mov rax, [rax-8] mov cl, [rax] mov dl, [r14] mov [rax], dl mov [r14], cl mov rcx, [rax+8] mov rdx, [r14+8] mov [rax+8], rdx mov [r14+8], rcx mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() loc_184E4: mov rax, [rbx+10h] lea rcx, [rax-8] mov [rbx+10h], rcx sub dword ptr [rbx+38h], 1 jnb short loc_18502 mov dword ptr [rbx+38h], 3Fh ; '?' add qword ptr [rbx+30h], 0FFFFFFFFFFFFFFF8h loc_18502: cmp [rbx+8], rcx jz loc_18638 mov rcx, [rax-10h] test rcx, rcx jz loc_18638 mov cl, [rcx] dec cl cmp cl, 1 ja loc_18638 mov r12, 8000000000000000h mov rsi, [rax-10h] lea r14, [rsp+98h+var_78] mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5beginEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::begin(void) lea r13, [rsp+98h+var_90] mov r15, rsp loc_18549: mov rax, [rbx+10h] mov rax, [rax-8] mov [rsp+98h+var_98], rax xorps xmm0, xmm0 movups xmmword ptr [r13+0], xmm0 mov [rsp+98h+var_80], r12 movzx ecx, byte ptr [rax] cmp ecx, 2 jz short loc_1857A cmp ecx, 1 jnz short loc_18585 mov [rsp+98h+var_90], 0 jmp short loc_1858A loc_1857A: mov [rsp+98h+var_88], 0 jmp short loc_1858A loc_18585: mov [rsp+98h+var_80], r12 loc_1858A: cmp ecx, 2 jz short loc_185A3 cmp ecx, 1 jnz short loc_185B2 mov rax, [rax+8] mov rax, [rax+8] mov [rsp+98h+var_90], rax jmp short loc_185BB loc_185A3: mov rax, [rax+8] mov rax, [rax+8] mov [rsp+98h+var_88], rax jmp short loc_185BB loc_185B2: mov [rsp+98h+var_80], 1 loc_185BB: mov rdi, r14 mov rsi, r15 call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_ test al, al jnz short loc_18638 mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEptEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::operator->(void) cmp byte ptr [rax], 9 jz short loc_18609 mov rax, [rsp+98h+var_78] movzx eax, byte ptr [rax] cmp eax, 2 jz short loc_185F4 cmp eax, 1 jnz short loc_185FF add qword ptr [rsp+98h+var_70], 30h ; '0' jmp loc_18549 loc_185F4: add qword ptr [rsp+98h+var_70+8], 10h jmp loc_18549 loc_185FF: inc [rsp+98h+var_60] jmp loc_18549 loc_18609: mov rax, [rbx+10h] mov rsi, [rax-8] mov rax, [rsp+98h+var_78] lea rdx, [rsp+98h+var_48] mov [rdx], rax movups xmm0, [rsp+98h+var_70] movups xmmword ptr [rdx+8], xmm0 mov rax, [rsp+98h+var_60] mov [rdx+18h], rax mov rdi, rsp call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_ loc_18638: mov al, 1 add rsp, 70h pop rbx pop r12 pop r13 pop r14 pop r15 retn loc_18648: call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void)
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>>::end_object( long long a1) { long long v1; // rax char *v2; // rax char v3; // cl long long v4; // rcx long long v5; // rax _BYTE *v7; // rcx int v8; // ecx int v9; // eax long long v10; // rsi unsigned __int8 *v12; // [rsp+0h] [rbp-98h] BYREF __int128 v13; // [rsp+8h] [rbp-90h] long long v14; // [rsp+18h] [rbp-80h] unsigned __int8 *v15; // [rsp+20h] [rbp-78h] BYREF __int128 v16; // [rsp+28h] [rbp-70h] long long v17; // [rsp+38h] [rbp-60h] _BYTE v18[8]; // [rsp+40h] [rbp-58h] BYREF long long v19; // [rsp+48h] [rbp-50h] unsigned __int8 *v20; // [rsp+50h] [rbp-48h] __int128 v21; // [rsp+58h] [rbp-40h] long long v22; // [rsp+68h] [rbp-30h] v1 = *(_QWORD *)(a1 + 16); if ( *(_QWORD *)(v1 - 8) ) { LODWORD(v15) = ((unsigned long long)(v1 - *(_QWORD *)(a1 + 8)) >> 3) - 1; LOBYTE(v12) = 1; if ( !*(_QWORD *)(a1 + 144) ) std::__throw_bad_function_call(); if ( !(*(unsigned __int8 ( **)(long long, unsigned __int8 **, unsigned __int8 **))(a1 + 152))( a1 + 128, &v15, &v12) ) { nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( (long long)v18, (unsigned __int8 *)(a1 + 168)); v2 = *(char **)(*(_QWORD *)(a1 + 16) - 8LL); v3 = *v2; *v2 = v18[0]; v18[0] = v3; v4 = *((_QWORD *)v2 + 1); *((_QWORD *)v2 + 1) = v19; v19 = v4; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v18); } } v5 = *(_QWORD *)(a1 + 16); *(_QWORD *)(a1 + 16) = v5 - 8; if ( (*(_DWORD *)(a1 + 56))-- == 0 ) { *(_DWORD *)(a1 + 56) = 63; *(_QWORD *)(a1 + 48) -= 8LL; } if ( *(_QWORD *)(a1 + 8) != v5 - 8 ) { v7 = *(_BYTE **)(v5 - 16); if ( v7 ) { if ( (unsigned __int8)(*v7 - 1) <= 1u ) { nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::begin( (long long)&v15, *(unsigned __int8 **)(v5 - 16)); while ( 1 ) { v12 = *(unsigned __int8 **)(*(_QWORD *)(a1 + 16) - 8LL); v13 = 0LL; v14 = 0x8000000000000000LL; v8 = *v12; if ( v8 == 2 ) { *((_QWORD *)&v13 + 1) = 0LL; } else if ( v8 == 1 ) { *(_QWORD *)&v13 = 0LL; } else { v14 = 0x8000000000000000LL; } if ( v8 == 2 ) { *((_QWORD *)&v13 + 1) = *(_QWORD *)(*((_QWORD *)v12 + 1) + 8LL); } else if ( v8 == 1 ) { *(_QWORD *)&v13 = *(_QWORD *)(*((_QWORD *)v12 + 1) + 8LL); } else { v14 = 1LL; } if ( (unsigned __int8)ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_( &v15, &v12) ) break; if ( *(_BYTE *)nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::operator->(&v15) == 9 ) { v10 = *(_QWORD *)(*(_QWORD *)(a1 + 16) - 8LL); v20 = v15; v21 = v16; v22 = v17; ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_( &v12, v10); return 1; } v9 = *v15; if ( v9 == 2 ) { *((_QWORD *)&v16 + 1) += 16LL; } else if ( v9 == 1 ) { *(_QWORD *)&v16 = v16 + 48; } else { ++v17; } } } } } return 1; }
end_object: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x70 MOV RBX,RDI MOV RAX,qword ptr [RDI + 0x10] MOV RCX,qword ptr [RAX + -0x8] TEST RCX,RCX JZ 0x001184e4 SUB RAX,qword ptr [RBX + 0x8] SHR RAX,0x3 DEC EAX MOV dword ptr [RSP + 0x20],EAX MOV byte ptr [RSP],0x1 CMP qword ptr [RBX + 0x90],0x0 JZ 0x00118648 LEA RDI,[RBX + 0x80] LEA RSI,[RSP + 0x20] MOV RDX,RSP CALL qword ptr [RBX + 0x98] TEST AL,AL JNZ 0x001184e4 LEA RSI,[RBX + 0xa8] LEA R14,[RSP + 0x40] MOV RDI,R14 CALL 0x00107852 MOV RAX,qword ptr [RBX + 0x10] MOV RAX,qword ptr [RAX + -0x8] MOV CL,byte ptr [RAX] MOV DL,byte ptr [R14] MOV byte ptr [RAX],DL MOV byte ptr [R14],CL MOV RCX,qword ptr [RAX + 0x8] MOV RDX,qword ptr [R14 + 0x8] MOV qword ptr [RAX + 0x8],RDX MOV qword ptr [R14 + 0x8],RCX MOV RDI,R14 CALL 0x00107a32 LAB_001184e4: MOV RAX,qword ptr [RBX + 0x10] LEA RCX,[RAX + -0x8] MOV qword ptr [RBX + 0x10],RCX SUB dword ptr [RBX + 0x38],0x1 JNC 0x00118502 MOV dword ptr [RBX + 0x38],0x3f ADD qword ptr [RBX + 0x30],-0x8 LAB_00118502: CMP qword ptr [RBX + 0x8],RCX JZ 0x00118638 MOV RCX,qword ptr [RAX + -0x10] TEST RCX,RCX JZ 0x00118638 MOV CL,byte ptr [RCX] DEC CL CMP CL,0x1 JA 0x00118638 MOV R12,-0x8000000000000000 MOV RSI,qword ptr [RAX + -0x10] LEA R14,[RSP + 0x20] MOV RDI,R14 CALL 0x0010f92c LEA R13,[RSP + 0x8] MOV R15,RSP LAB_00118549: MOV RAX,qword ptr [RBX + 0x10] MOV RAX,qword ptr [RAX + -0x8] MOV qword ptr [RSP],RAX XORPS XMM0,XMM0 MOVUPS xmmword ptr [R13],XMM0 MOV qword ptr [RSP + 0x18],R12 MOVZX ECX,byte ptr [RAX] CMP ECX,0x2 JZ 0x0011857a CMP ECX,0x1 JNZ 0x00118585 MOV qword ptr [RSP + 0x8],0x0 JMP 0x0011858a LAB_0011857a: MOV qword ptr [RSP + 0x10],0x0 JMP 0x0011858a LAB_00118585: MOV qword ptr [RSP + 0x18],R12 LAB_0011858a: CMP ECX,0x2 JZ 0x001185a3 CMP ECX,0x1 JNZ 0x001185b2 MOV RAX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x8],RAX JMP 0x001185bb LAB_001185a3: MOV RAX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x10],RAX JMP 0x001185bb LAB_001185b2: MOV qword ptr [RSP + 0x18],0x1 LAB_001185bb: MOV RDI,R14 MOV RSI,R15 CALL 0x00111e9e TEST AL,AL JNZ 0x00118638 MOV RDI,R14 CALL 0x0011928c CMP byte ptr [RAX],0x9 JZ 0x00118609 MOV RAX,qword ptr [RSP + 0x20] MOVZX EAX,byte ptr [RAX] CMP EAX,0x2 JZ 0x001185f4 CMP EAX,0x1 JNZ 0x001185ff ADD qword ptr [RSP + 0x28],0x30 JMP 0x00118549 LAB_001185f4: ADD qword ptr [RSP + 0x30],0x10 JMP 0x00118549 LAB_001185ff: INC qword ptr [RSP + 0x38] JMP 0x00118549 LAB_00118609: MOV RAX,qword ptr [RBX + 0x10] MOV RSI,qword ptr [RAX + -0x8] MOV RAX,qword ptr [RSP + 0x20] LEA RDX,[RSP + 0x50] MOV qword ptr [RDX],RAX MOVUPS XMM0,xmmword ptr [RSP + 0x28] MOVUPS xmmword ptr [RDX + 0x8],XMM0 MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RDX + 0x18],RAX MOV RDI,RSP CALL 0x00119360 LAB_00118638: MOV AL,0x1 ADD RSP,0x70 POP RBX POP R12 POP R13 POP R14 POP R15 RET LAB_00118648: CALL 0x00105170 NOP
/* 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> >::end_object() */ int8 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>> ::end_object(void) { long lVar1; int *piVar2; int iVar3; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> bVar4; long lVar5; char cVar6; bool bVar7; char *pcVar8; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *pbVar9; int8 uVar10; string *in_RSI; long in_RDI; int1 uStack_d5; int4 uStack_d4; data adStack_d0 [16]; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> abStack_c0 [8]; int8 uStack_b8; char *local_98; int8 local_90; int8 uStack_88; int8 local_80; int local_78; int4 uStack_74; int8 local_70; int8 uStack_68; long local_60; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_58 [8]; int8 local_50; int8 local_48; int4 local_40; int4 uStack_3c; int4 uStack_38; int4 uStack_34; long local_30; if (*(long *)(*(long *)(in_RDI + 0x10) + -8) != 0) { local_78 = (int)((ulong)(*(long *)(in_RDI + 0x10) - *(long *)(in_RDI + 8)) >> 3) + -1; local_98 = (char *)CONCAT71(local_98._1_7_,1); if (*(long *)(in_RDI + 0x90) == 0) { std::__throw_bad_function_call(); _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_ (adStack_d0); uStack_d4 = (int4)((ulong)(*(long *)(in_RDI + 0x10) - *(long *)(in_RDI + 8)) >> 3); uStack_d5 = 4; if (*(long *)(in_RDI + 0x90) != 0) { bVar7 = (bool)(**(code **)(in_RDI + 0x98))(in_RDI + 0x80,&uStack_d4,&uStack_d5,adStack_d0); std::vector<bool,std::allocator<bool>>::push_back ((vector<bool,std::allocator<bool>> *)(in_RDI + 0x48),bVar7); if ((bVar7 != false) && (*(long *)(*(long *)(in_RDI + 0x10) + -8) != 0)) { basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json(abStack_c0,(basic_json *)(in_RDI + 0xa8)); pbVar9 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::operator[](*(ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> **)(*(long *)(*(long *)(in_RDI + 0x10) + -8) + 8),in_RSI); bVar4 = *pbVar9; *pbVar9 = abStack_c0[0]; uVar10 = *(int8 *)(pbVar9 + 8); *(int8 *)(pbVar9 + 8) = uStack_b8; *(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> **)(in_RDI + 0x70) = pbVar9; abStack_c0[0] = bVar4; uStack_b8 = uVar10; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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 *)abStack_c0); } basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(adStack_d0); return 1; } uVar10 = std::__throw_bad_function_call(); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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 *)abStack_c0); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(adStack_d0); /* WARNING: Subroutine does not return */ _Unwind_Resume(uVar10); } cVar6 = (**(code **)(in_RDI + 0x98))(in_RDI + 0x80,&local_78,&local_98); if (cVar6 == '\0') { basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json(local_58,(basic_json *)(in_RDI + 0xa8)); pbVar9 = *(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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 *)(in_RDI + 0x10) + -8); bVar4 = *pbVar9; *pbVar9 = local_58[0]; uVar10 = *(int8 *)(pbVar9 + 8); *(int8 *)(pbVar9 + 8) = local_50; local_58[0] = bVar4; local_50 = uVar10; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)local_58); } } lVar5 = *(long *)(in_RDI + 0x10); lVar1 = lVar5 + -8; *(long *)(in_RDI + 0x10) = lVar1; piVar2 = (int *)(in_RDI + 0x38); iVar3 = *piVar2; *piVar2 = *piVar2 + -1; if (iVar3 == 0) { *(int4 *)(in_RDI + 0x38) = 0x3f; *(long *)(in_RDI + 0x30) = *(long *)(in_RDI + 0x30) + -8; } if (((*(long *)(in_RDI + 8) != lVar1) && (pcVar8 = *(char **)(lVar5 + -0x10), pcVar8 != (char *)0x0)) && ((byte)(*pcVar8 - 1U) < 2)) { basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::begin(); while( true ) { local_98 = *(char **)(*(long *)(in_RDI + 0x10) + -8); local_80 = 0x8000000000000000; uStack_88 = 0; local_90 = 0; if (*local_98 == '\x02') { uStack_88 = *(int8 *)(*(long *)(local_98 + 8) + 8); } else if (*local_98 == '\x01') { local_90 = *(int8 *)(*(long *)(local_98 + 8) + 8); } else { local_80 = 1; } cVar6 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_ ((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *)&local_78,&local_98); if (cVar6 != '\0') { return 1; } pcVar8 = (char *)iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::operator->((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *)&local_78); if (*pcVar8 == '\t') break; if (*(char *)CONCAT44(uStack_74,local_78) == '\x02') { uStack_68 = uStack_68 + 0x10; } else if (*(char *)CONCAT44(uStack_74,local_78) == '\x01') { local_70 = local_70 + 0x30; } else { local_60 = local_60 + 1; } } local_48 = CONCAT44(uStack_74,local_78); local_40 = (int4)local_70; uStack_3c = local_70._4_4_; uStack_38 = (int4)uStack_68; uStack_34 = uStack_68._4_4_; local_30 = local_60; _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_ (&local_98,*(int8 *)(*(long *)(in_RDI + 0x10) + -8)); } return 1; }
47,790
flux::common::Arena::newBlock(unsigned long)
kvthweatt[P]FluxLang/src/common/arena.cpp
Arena::Block* Arena::newBlock(size_t minSize) { size_t blockSize = std::max(blockSize_, minSize); auto block = std::make_unique<Block>(blockSize); Block* blockPtr = block.get(); blocks_.push_back(std::move(block)); totalAllocated_ += blockSize; return blockPtr; }
O0
cpp
flux::common::Arena::newBlock(unsigned long): pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x48(%rbp) addq $0x20, %rdi leaq -0x10(%rbp), %rsi callq 0xe1f0 movq (%rax), %rax movq %rax, -0x18(%rbp) leaq -0x20(%rbp), %rdi movq %rdi, -0x40(%rbp) leaq -0x18(%rbp), %rsi callq 0xf0e0 movq -0x40(%rbp), %rdi callq 0xf050 movq -0x48(%rbp), %rdi movq -0x40(%rbp), %rsi movq %rax, -0x28(%rbp) callq 0xf020 jmp 0xec09 movq -0x48(%rbp), %rax movq -0x18(%rbp), %rcx addq 0x28(%rax), %rcx movq %rcx, 0x28(%rax) movq -0x28(%rbp), %rax movq %rax, -0x50(%rbp) leaq -0x20(%rbp), %rdi callq 0xf080 movq -0x50(%rbp), %rax addq $0x50, %rsp popq %rbp retq movq %rax, %rcx movl %edx, %eax movq %rcx, -0x30(%rbp) movl %eax, -0x34(%rbp) leaq -0x20(%rbp), %rdi callq 0xf080 movq -0x30(%rbp), %rdi callq 0x75a0 nopw %cs:(%rax,%rax)
_ZN4flux6common5Arena8newBlockEm: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rdi, [rbp+var_8] mov [rbp+var_48], rdi add rdi, 20h ; ' ' lea rsi, [rbp+var_10] call _ZSt3maxImERKT_S2_S2_; std::max<ulong>(ulong const&,ulong const&) mov rax, [rax] mov [rbp+var_18], rax lea rdi, [rbp+var_20] mov [rbp+var_40], rdi lea rsi, [rbp+var_18] call _ZSt11make_uniqueIN4flux6common5Arena5BlockEJRmEENSt9_MakeUniqIT_E15__single_objectEDpOT0_; std::make_unique<flux::common::Arena::Block,ulong &>(ulong &) mov rdi, [rbp+var_40] call _ZNKSt10unique_ptrIN4flux6common5Arena5BlockESt14default_deleteIS3_EE3getEv; std::unique_ptr<flux::common::Arena::Block>::get(void) mov rdi, [rbp+var_48] mov rsi, [rbp+var_40] mov [rbp+var_28], rax call _ZNSt6vectorISt10unique_ptrIN4flux6common5Arena5BlockESt14default_deleteIS4_EESaIS7_EE9push_backEOS7_; std::vector<std::unique_ptr<flux::common::Arena::Block>>::push_back(std::unique_ptr<flux::common::Arena::Block>&&) jmp short $+2 loc_EC09: mov rax, [rbp+var_48] mov rcx, [rbp+var_18] add rcx, [rax+28h] mov [rax+28h], rcx mov rax, [rbp+var_28] mov [rbp+var_50], rax lea rdi, [rbp+var_20] call _ZNSt10unique_ptrIN4flux6common5Arena5BlockESt14default_deleteIS3_EED2Ev; std::unique_ptr<flux::common::Arena::Block>::~unique_ptr() mov rax, [rbp+var_50] add rsp, 50h pop rbp retn mov rcx, rax mov eax, edx mov [rbp+var_30], rcx mov [rbp+var_34], eax lea rdi, [rbp+var_20] call _ZNSt10unique_ptrIN4flux6common5Arena5BlockESt14default_deleteIS3_EED2Ev; std::unique_ptr<flux::common::Arena::Block>::~unique_ptr() mov rdi, [rbp+var_30] call __Unwind_Resume
long long flux::common::Arena::newBlock(flux::common::Arena *this, long long a2) { long long v3; // [rsp+28h] [rbp-28h] _BYTE v4[8]; // [rsp+30h] [rbp-20h] BYREF long long v5; // [rsp+38h] [rbp-18h] BYREF _QWORD v6[2]; // [rsp+40h] [rbp-10h] BYREF v6[1] = this; v6[0] = a2; v5 = *std::max<unsigned long>((_QWORD *)this + 4, v6); std::make_unique<flux::common::Arena::Block,unsigned long &>(v4, &v5); v3 = std::unique_ptr<flux::common::Arena::Block>::get(v4); std::vector<std::unique_ptr<flux::common::Arena::Block>>::push_back(this, v4); *((_QWORD *)this + 5) += v5; std::unique_ptr<flux::common::Arena::Block>::~unique_ptr(v4); return v3; }
newBlock: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RDI,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x48],RDI ADD RDI,0x20 LEA RSI,[RBP + -0x10] CALL 0x0010e1f0 MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x18],RAX LEA RDI,[RBP + -0x20] MOV qword ptr [RBP + -0x40],RDI LEA RSI,[RBP + -0x18] CALL 0x0010f0e0 MOV RDI,qword ptr [RBP + -0x40] CALL 0x0010f050 MOV RDI,qword ptr [RBP + -0x48] MOV RSI,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x28],RAX LAB_0010ec02: CALL 0x0010f020 LAB_0010ec07: JMP 0x0010ec09 LAB_0010ec09: MOV RAX,qword ptr [RBP + -0x48] MOV RCX,qword ptr [RBP + -0x18] ADD RCX,qword ptr [RAX + 0x28] MOV qword ptr [RAX + 0x28],RCX MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x50],RAX LEA RDI,[RBP + -0x20] CALL 0x0010f080 MOV RAX,qword ptr [RBP + -0x50] ADD RSP,0x50 POP RBP RET
/* flux::common::Arena::newBlock(unsigned long) */ int8 __thiscall flux::common::Arena::newBlock(Arena *this,ulong param_1) { ulong *puVar1; int8 uVar2; unique_ptr<flux::common::Arena::Block,std::default_delete<flux::common::Arena::Block>> local_28 [8]; ulong local_20; ulong local_18; Arena *local_10; local_18 = param_1; local_10 = this; puVar1 = std::max<unsigned_long>((ulong *)(this + 0x20),&local_18); local_20 = *puVar1; std::make_unique<flux::common::Arena::Block,unsigned_long&>((ulong *)local_28); uVar2 = std:: unique_ptr<flux::common::Arena::Block,std::default_delete<flux::common::Arena::Block>>:: get(local_28); /* try { // try from 0010ec02 to 0010ec06 has its CatchHandler @ 0010ec34 */ std:: vector<std::unique_ptr<flux::common::Arena::Block,std::default_delete<flux::common::Arena::Block>>,std::allocator<std::unique_ptr<flux::common::Arena::Block,std::default_delete<flux::common::Arena::Block>>>> ::push_back((vector<std::unique_ptr<flux::common::Arena::Block,std::default_delete<flux::common::Arena::Block>>,std::allocator<std::unique_ptr<flux::common::Arena::Block,std::default_delete<flux::common::Arena::Block>>>> *)this,(unique_ptr *)local_28); *(ulong *)(this + 0x28) = local_20 + *(long *)(this + 0x28); std::unique_ptr<flux::common::Arena::Block,std::default_delete<flux::common::Arena::Block>>:: ~unique_ptr(local_28); return uVar2; }
47,791
IsSoundValid
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/raudio.c
bool IsSoundValid(Sound sound) { bool result = false; if ((sound.frameCount > 0) && // Validate frame count (sound.stream.buffer != NULL) && // Validate stream buffer (sound.stream.sampleRate > 0) && // Validate sample rate is supported (sound.stream.sampleSize > 0) && // Validate sample size is supported (sound.stream.channels > 0)) result = true; // Validate number of channels supported return result; }
O0
c
IsSoundValid: pushq %rbp movq %rsp, %rbp leaq 0x10(%rbp), %rax movq %rax, -0x10(%rbp) movb $0x0, -0x1(%rbp) cmpl $0x0, 0x20(%rax) jbe 0x7ae42 movq -0x10(%rbp), %rax cmpq $0x0, (%rax) je 0x7ae42 movq -0x10(%rbp), %rax cmpl $0x0, 0x10(%rax) jbe 0x7ae42 movq -0x10(%rbp), %rax cmpl $0x0, 0x14(%rax) jbe 0x7ae42 movq -0x10(%rbp), %rax cmpl $0x0, 0x18(%rax) jbe 0x7ae42 movb $0x1, -0x1(%rbp) movb -0x1(%rbp), %al andb $0x1, %al popq %rbp retq nopl (%rax)
IsSoundValid: push rbp mov rbp, rsp lea rax, [rbp+arg_0] mov [rbp+var_10], rax mov [rbp+var_1], 0 cmp dword ptr [rax+20h], 0 jbe short loc_7AE42 mov rax, [rbp+var_10] cmp qword ptr [rax], 0 jz short loc_7AE42 mov rax, [rbp+var_10] cmp dword ptr [rax+10h], 0 jbe short loc_7AE42 mov rax, [rbp+var_10] cmp dword ptr [rax+14h], 0 jbe short loc_7AE42 mov rax, [rbp+var_10] cmp dword ptr [rax+18h], 0 jbe short loc_7AE42 mov [rbp+var_1], 1 loc_7AE42: mov al, [rbp+var_1] and al, 1 pop rbp retn
bool IsSoundValid( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, long long a7, long long a8, long long a9, unsigned int a10, int a11) { bool v12; // [rsp+Fh] [rbp-1h] v12 = 0; if ( a11 && a7 && (_DWORD)a9 ) return __PAIR64__(a10, HIDWORD(a9)) != 0; return v12; }
IsSoundValid: PUSH RBP MOV RBP,RSP LEA RAX,[RBP + 0x10] MOV qword ptr [RBP + -0x10],RAX MOV byte ptr [RBP + -0x1],0x0 CMP dword ptr [RAX + 0x20],0x0 JBE 0x0017ae42 MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX],0x0 JZ 0x0017ae42 MOV RAX,qword ptr [RBP + -0x10] CMP dword ptr [RAX + 0x10],0x0 JBE 0x0017ae42 MOV RAX,qword ptr [RBP + -0x10] CMP dword ptr [RAX + 0x14],0x0 JBE 0x0017ae42 MOV RAX,qword ptr [RBP + -0x10] CMP dword ptr [RAX + 0x18],0x0 JBE 0x0017ae42 MOV byte ptr [RBP + -0x1],0x1 LAB_0017ae42: MOV AL,byte ptr [RBP + -0x1] AND AL,0x1 POP RBP RET
int8 IsSoundValid(void) { long in_stack_00000008; int iStack0000000000000018; int iStack000000000000001c; int in_stack_00000020; int in_stack_00000028; int1 local_9; local_9 = 0; if ((((in_stack_00000028 != 0) && (in_stack_00000008 != 0)) && (iStack0000000000000018 != 0)) && ((iStack000000000000001c != 0 && (in_stack_00000020 != 0)))) { local_9 = 1; } return CONCAT71((int7)((ulong)&stack0x00000008 >> 8),local_9); }
47,792
IsSoundValid
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/raudio.c
bool IsSoundValid(Sound sound) { bool result = false; if ((sound.frameCount > 0) && // Validate frame count (sound.stream.buffer != NULL) && // Validate stream buffer (sound.stream.sampleRate > 0) && // Validate sample rate is supported (sound.stream.sampleSize > 0) && // Validate sample size is supported (sound.stream.channels > 0)) result = true; // Validate number of channels supported return result; }
O1
c
IsSoundValid: cmpl $0x0, 0x28(%rsp) setne %al cmpq $0x0, 0x8(%rsp) setne %cl andb %al, %cl cmpl $0x0, 0x18(%rsp) setne %al cmpl $0x0, 0x1c(%rsp) setne %dl andb %al, %dl andb %cl, %dl cmpl $0x0, 0x20(%rsp) setne %al andb %dl, %al retq
IsSoundValid: cmp [rsp+arg_20], 0 setnz al cmp [rsp+arg_0], 0 setnz cl and cl, al cmp [rsp+arg_10], 0 setnz al cmp [rsp+arg_14], 0 setnz dl and dl, al and dl, cl cmp [rsp+arg_18], 0 setnz al and al, dl retn
bool IsSoundValid( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, long long a7, int a8, long long a9, int a10, int a11) { return a11 != 0 && a7 != 0 && (_DWORD)a9 != 0 && HIDWORD(a9) != 0 && a10 != 0; }
IsSoundValid: CMP dword ptr [RSP + 0x28],0x0 SETNZ AL CMP qword ptr [RSP + 0x8],0x0 SETNZ CL AND CL,AL CMP dword ptr [RSP + 0x18],0x0 SETNZ AL CMP dword ptr [RSP + 0x1c],0x0 SETNZ DL AND DL,AL AND DL,CL CMP dword ptr [RSP + 0x20],0x0 SETNZ AL AND AL,DL RET
bool IsSoundValid(void) { long in_stack_00000008; int iStack0000000000000018; int iStack000000000000001c; int in_stack_00000020; int in_stack_00000028; return in_stack_00000020 != 0 && ((iStack000000000000001c != 0 && iStack0000000000000018 != 0) && (in_stack_00000008 != 0 && in_stack_00000028 != 0)); }
47,793
IsSoundValid
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/raudio.c
bool IsSoundValid(Sound sound) { bool result = false; if ((sound.frameCount > 0) && // Validate frame count (sound.stream.buffer != NULL) && // Validate stream buffer (sound.stream.sampleRate > 0) && // Validate sample rate is supported (sound.stream.sampleSize > 0) && // Validate sample size is supported (sound.stream.channels > 0)) result = true; // Validate number of channels supported return result; }
O2
c
IsSoundValid: cmpl $0x0, 0x28(%rsp) setne %al cmpq $0x0, 0x8(%rsp) setne %cl andb %al, %cl cmpl $0x0, 0x18(%rsp) setne %al cmpl $0x0, 0x1c(%rsp) setne %dl andb %al, %dl andb %cl, %dl cmpl $0x0, 0x20(%rsp) setne %al andb %dl, %al retq
IsSoundValid: cmp [rsp+arg_20], 0 setnz al cmp [rsp+arg_0], 0 setnz cl and cl, al cmp [rsp+arg_10], 0 setnz al cmp [rsp+arg_14], 0 setnz dl and dl, al and dl, cl cmp [rsp+arg_18], 0 setnz al and al, dl retn
bool IsSoundValid( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, long long a7, int a8, long long a9, int a10, int a11) { return a11 != 0 && a7 != 0 && (_DWORD)a9 != 0 && HIDWORD(a9) != 0 && a10 != 0; }
IsSoundValid: CMP dword ptr [RSP + 0x28],0x0 SETNZ AL CMP qword ptr [RSP + 0x8],0x0 SETNZ CL AND CL,AL CMP dword ptr [RSP + 0x18],0x0 SETNZ AL CMP dword ptr [RSP + 0x1c],0x0 SETNZ DL AND DL,AL AND DL,CL CMP dword ptr [RSP + 0x20],0x0 SETNZ AL AND AL,DL RET
bool IsSoundValid(void) { long in_stack_00000008; int iStack0000000000000018; int iStack000000000000001c; int in_stack_00000020; int in_stack_00000028; return in_stack_00000020 != 0 && ((iStack000000000000001c != 0 && iStack0000000000000018 != 0) && (in_stack_00000008 != 0 && in_stack_00000028 != 0)); }
47,794
IsSoundValid
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/raudio.c
bool IsSoundValid(Sound sound) { bool result = false; if ((sound.frameCount > 0) && // Validate frame count (sound.stream.buffer != NULL) && // Validate stream buffer (sound.stream.sampleRate > 0) && // Validate sample rate is supported (sound.stream.sampleSize > 0) && // Validate sample size is supported (sound.stream.channels > 0)) result = true; // Validate number of channels supported return result; }
O3
c
IsSoundValid: cmpl $0x0, 0x28(%rsp) setne %al cmpq $0x0, 0x8(%rsp) setne %cl andb %al, %cl cmpl $0x0, 0x18(%rsp) setne %al cmpl $0x0, 0x1c(%rsp) setne %dl andb %al, %dl andb %cl, %dl cmpl $0x0, 0x20(%rsp) setne %al andb %dl, %al retq
IsSoundValid: cmp [rsp+arg_20], 0 setnz al cmp [rsp+arg_0], 0 setnz cl and cl, al cmp [rsp+arg_10], 0 setnz al cmp [rsp+arg_14], 0 setnz dl and dl, al and dl, cl cmp [rsp+arg_18], 0 setnz al and al, dl retn
bool IsSoundValid( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, long long a7, int a8, long long a9, int a10, int a11) { return a11 != 0 && a7 != 0 && (_DWORD)a9 != 0 && HIDWORD(a9) != 0 && a10 != 0; }
IsSoundValid: CMP dword ptr [RSP + 0x28],0x0 SETNZ AL CMP qword ptr [RSP + 0x8],0x0 SETNZ CL AND CL,AL CMP dword ptr [RSP + 0x18],0x0 SETNZ AL CMP dword ptr [RSP + 0x1c],0x0 SETNZ DL AND DL,AL AND DL,CL CMP dword ptr [RSP + 0x20],0x0 SETNZ AL AND AL,DL RET
bool IsSoundValid(void) { long in_stack_00000008; int iStack0000000000000018; int iStack000000000000001c; int in_stack_00000020; int in_stack_00000028; return in_stack_00000020 != 0 && ((iStack000000000000001c != 0 && iStack0000000000000018 != 0) && (in_stack_00000008 != 0 && in_stack_00000028 != 0)); }
47,795
stbi__fill_bits(stbi__zbuf*)
monkey531[P]llama/examples/llava/../../common/stb_image.h
static void stbi__fill_bits(stbi__zbuf *z) { do { if (z->code_buffer >= (1U << z->num_bits)) { z->zbuffer = z->zbuffer_end; /* treat this as EOF so we fail. */ return; } z->code_buffer |= (unsigned int) stbi__zget8(z) << z->num_bits; z->num_bits += 8; } while (z->num_bits <= 24); }
O3
c
stbi__fill_bits(stbi__zbuf*): movl 0x10(%rdi), %ecx movl 0x18(%rdi), %eax movl %eax, %edx shrl %cl, %edx testl %edx, %edx jne 0x42a03 movq (%rdi), %rsi xorl %edx, %edx cmpq 0x8(%rdi), %rsi jae 0x429ee leaq 0x1(%rsi), %rdx movq %rdx, (%rdi) movzbl (%rsi), %edx shll %cl, %edx orl %edx, %eax movl %eax, 0x18(%rdi) leal 0x8(%rcx), %edx movl %edx, 0x10(%rdi) cmpl $0x11, %ecx movl %edx, %ecx jl 0x429d1 retq movq 0x8(%rdi), %rax movq %rax, (%rdi) retq
_ZL15stbi__fill_bitsP10stbi__zbuf: mov ecx, [rdi+10h] mov eax, [rdi+18h] loc_429D1: mov edx, eax shr edx, cl test edx, edx jnz short loc_42A03 mov rsi, [rdi] xor edx, edx cmp rsi, [rdi+8] jnb short loc_429EE lea rdx, [rsi+1] mov [rdi], rdx movzx edx, byte ptr [rsi] loc_429EE: shl edx, cl or eax, edx mov [rdi+18h], eax lea edx, [rcx+8] mov [rdi+10h], edx cmp ecx, 11h mov ecx, edx jl short loc_429D1 retn loc_42A03: mov rax, [rdi+8] mov [rdi], rax retn
unsigned __int8 * stbi__fill_bits(unsigned __int8 **a1) { int v1; // ecx unsigned __int8 *result; // rax unsigned __int8 *v3; // rsi int v4; // edx bool v5; // cc v1 = *((_DWORD *)a1 + 4); LODWORD(result) = *((_DWORD *)a1 + 6); while ( !((unsigned int)result >> v1) ) { v3 = *a1; v4 = 0; if ( *a1 < a1[1] ) { *a1 = v3 + 1; v4 = *v3; } result = (unsigned __int8 *)((v4 << v1) | (unsigned int)result); *((_DWORD *)a1 + 6) = (_DWORD)result; *((_DWORD *)a1 + 4) = v1 + 8; v5 = v1 < 17; v1 += 8; if ( !v5 ) return result; } result = a1[1]; *a1 = result; return result; }
stbi__fill_bits: MOV ECX,dword ptr [RDI + 0x10] MOV EAX,dword ptr [RDI + 0x18] LAB_001429d1: MOV EDX,EAX SHR EDX,CL TEST EDX,EDX JNZ 0x00142a03 MOV RSI,qword ptr [RDI] XOR EDX,EDX CMP RSI,qword ptr [RDI + 0x8] JNC 0x001429ee LEA RDX,[RSI + 0x1] MOV qword ptr [RDI],RDX MOVZX EDX,byte ptr [RSI] LAB_001429ee: SHL EDX,CL OR EAX,EDX MOV dword ptr [RDI + 0x18],EAX LEA EDX,[RCX + 0x8] MOV dword ptr [RDI + 0x10],EDX CMP ECX,0x11 MOV ECX,EDX JL 0x001429d1 RET LAB_00142a03: MOV RAX,qword ptr [RDI + 0x8] MOV qword ptr [RDI],RAX RET
/* stbi__fill_bits(stbi__zbuf*) */ void stbi__fill_bits(stbi__zbuf *param_1) { byte *pbVar1; bool bVar2; byte bVar3; uint uVar4; int iVar5; uint uVar6; uVar4 = *(uint *)(param_1 + 0x18); iVar5 = *(int *)(param_1 + 0x10); do { bVar3 = (byte)iVar5 & 0x1f; if (uVar4 >> bVar3 != 0) { *(int8 *)param_1 = *(int8 *)(param_1 + 8); return; } pbVar1 = *(byte **)param_1; uVar6 = 0 >> bVar3; if (pbVar1 < *(byte **)(param_1 + 8)) { *(byte **)param_1 = pbVar1 + 1; uVar6 = (uint)*pbVar1; } uVar4 = uVar4 | uVar6 << ((byte)iVar5 & 0x1f); *(uint *)(param_1 + 0x18) = uVar4; *(int *)(param_1 + 0x10) = iVar5 + 8; bVar2 = iVar5 < 0x11; iVar5 = iVar5 + 8; } while (bVar2); return; }
47,796
OpenSubdiv::v3_6_0::Bfr::Surface<float>::Evaluate(float const*, float const*, OpenSubdiv::v3_6_0::Bfr::Surface<float>::PointDescriptor const&, float*, float*, float*, float*, float*, float*) const
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/../bfr/surface.h
inline void Surface<REAL>::Evaluate(REAL const uv[2], REAL const patchPoints[], PointDescriptor const & pointDesc, REAL P[], REAL Du[], REAL Dv[], REAL Duu[], REAL Duv[], REAL Dvv[]) const { REAL * derivatives[6] = { P, Du, Dv, Duu, Duv, Dvv }; evaluateDerivs(uv, patchPoints, pointDesc, derivatives); }
O3
c
OpenSubdiv::v3_6_0::Bfr::Surface<float>::Evaluate(float const*, float const*, OpenSubdiv::v3_6_0::Bfr::Surface<float>::PointDescriptor const&, float*, float*, float*, float*, float*, float*) const: subq $0x38, %rsp movaps 0x50(%rsp), %xmm0 movaps 0x40(%rsp), %xmm1 movq %r8, (%rsp) movq %r9, 0x8(%rsp) movaps %xmm1, 0x10(%rsp) movaps %xmm0, 0x20(%rsp) movb 0x6c(%rdi), %al movq %rsp, %r8 testb $0x4, %al jne 0x9a792 testb $0x8, %al jne 0x9a799 callq 0x398c0 jmp 0x9a79e callq 0x3a530 jmp 0x9a79e callq 0x3a040 addq $0x38, %rsp retq nop
_ZNK10OpenSubdiv6v3_6_03Bfr7SurfaceIdE8EvaluateEPKdS5_RKNS3_15PointDescriptorEPdS9_S9_S9_S9_S9_: sub rsp, 38h movaps xmm0, [rsp+38h+arg_10] movaps xmm1, [rsp+38h+arg_0] mov [rsp+38h+var_38], r8 mov [rsp+38h+var_30], r9 movaps [rsp+38h+var_28], xmm1 movaps [rsp+38h+var_18], xmm0 mov al, [rdi+6Ch] mov r8, rsp test al, 4 jnz short loc_9A792 test al, 8 jnz short loc_9A799 call __ZNK10OpenSubdiv6v3_6_03Bfr7SurfaceIdE19evalIrregularDerivsEPKdS5_RKNS3_15PointDescriptorEPPd; OpenSubdiv::v3_6_0::Bfr::Surface<double>::evalIrregularDerivs(double const*,double const*,OpenSubdiv::v3_6_0::Bfr::Surface<double>::PointDescriptor const&,double **) jmp short loc_9A79E loc_9A792: call __ZNK10OpenSubdiv6v3_6_03Bfr7SurfaceIdE17evalRegularDerivsEPKdS5_RKNS3_15PointDescriptorEPPd; OpenSubdiv::v3_6_0::Bfr::Surface<double>::evalRegularDerivs(double const*,double const*,OpenSubdiv::v3_6_0::Bfr::Surface<double>::PointDescriptor const&,double **) jmp short loc_9A79E loc_9A799: call __ZNK10OpenSubdiv6v3_6_03Bfr7SurfaceIdE21evalMultiLinearDerivsEPKdS5_RKNS3_15PointDescriptorEPPd; OpenSubdiv::v3_6_0::Bfr::Surface<double>::evalMultiLinearDerivs(double const*,double const*,OpenSubdiv::v3_6_0::Bfr::Surface<double>::PointDescriptor const&,double **) loc_9A79E: add rsp, 38h retn
long long OpenSubdiv::v3_6_0::Bfr::Surface<double>::Evaluate( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __int128 a7, __int128 a8) { char v8; // al long long v10; // [rsp+0h] [rbp-38h] BYREF long long v11; // [rsp+8h] [rbp-30h] __int128 v12; // [rsp+10h] [rbp-28h] __int128 v13; // [rsp+20h] [rbp-18h] v10 = a5; v11 = a6; v12 = a7; v13 = a8; v8 = *(_BYTE *)(a1 + 108); if ( (v8 & 4) != 0 ) return OpenSubdiv::v3_6_0::Bfr::Surface<double>::evalRegularDerivs( a1, a2, a3, a4, &v10, a6, v10, v11, v12, *((_QWORD *)&v12 + 1), v13, *((_QWORD *)&v13 + 1)); if ( (v8 & 8) != 0 ) return OpenSubdiv::v3_6_0::Bfr::Surface<double>::evalMultiLinearDerivs( a1, a2, a3, a4, &v10, a6, v10, v11, v12, *((_QWORD *)&v12 + 1), v13, *((_QWORD *)&v13 + 1)); return OpenSubdiv::v3_6_0::Bfr::Surface<double>::evalIrregularDerivs( a1, a2, a3, a4, &v10, a6, v10, v11, v12, *((_QWORD *)&v12 + 1), v13, *((_QWORD *)&v13 + 1)); }
Evaluate: SUB RSP,0x38 MOVAPS XMM0,xmmword ptr [RSP + 0x50] MOVAPS XMM1,xmmword ptr [RSP + 0x40] MOV qword ptr [RSP],R8 MOV qword ptr [RSP + 0x8],R9 MOVAPS xmmword ptr [RSP + 0x10],XMM1 MOVAPS xmmword ptr [RSP + 0x20],XMM0 MOV AL,byte ptr [RDI + 0x6c] MOV R8,RSP TEST AL,0x4 JNZ 0x0019a792 TEST AL,0x8 JNZ 0x0019a799 CALL 0x001398c0 JMP 0x0019a79e LAB_0019a792: CALL 0x0013a530 JMP 0x0019a79e LAB_0019a799: CALL 0x0013a040 LAB_0019a79e: ADD RSP,0x38 RET
/* OpenSubdiv::v3_6_0::Bfr::Surface<double>::Evaluate(double const*, double const*, OpenSubdiv::v3_6_0::Bfr::Surface<double>::PointDescriptor const&, double*, double*, double*, double*, double*, double*) const */ void __thiscall OpenSubdiv::v3_6_0::Bfr::Surface<double>::Evaluate (Surface<double> *this,double *param_1,double *param_2,PointDescriptor *param_3, double *param_4,double *param_5,double *param_6,double *param_7,double *param_8, double *param_9) { double *local_38; double *local_30; double *local_28; double *pdStack_20; double *local_18; double *pdStack_10; local_28 = param_6; pdStack_20 = param_7; local_18 = param_8; pdStack_10 = param_9; local_38 = param_4; local_30 = param_5; if (((byte)this[0x6c] & 4) == 0) { if (((byte)this[0x6c] & 8) == 0) { evalIrregularDerivs(this,param_1,param_2,param_3,&local_38); } else { evalMultiLinearDerivs(this,param_1,param_2,param_3,&local_38); } } else { evalRegularDerivs(this,param_1,param_2,param_3,&local_38); } return; }
47,797
my_error_register
eloqsql/mysys/my_error.c
int my_error_register(const char** (*get_errmsgs)(int error), uint first, uint last) { struct my_err_head *meh_p; struct my_err_head **search_meh_pp; /* Allocate a new header structure. */ if (! (meh_p= (struct my_err_head*) my_malloc(key_memory_my_err_head, sizeof(struct my_err_head), MYF(MY_WME)))) return 1; meh_p->get_errmsgs= get_errmsgs; meh_p->meh_first= first; meh_p->meh_last= last; /* Search for the right position in the list. */ for (search_meh_pp= &my_errmsgs_list; *search_meh_pp; search_meh_pp= &(*search_meh_pp)->meh_next) { if ((*search_meh_pp)->meh_last > first) break; } /* Error numbers must be unique. No overlapping is allowed. */ if (*search_meh_pp && ((*search_meh_pp)->meh_first <= last)) { my_free(meh_p); return 1; } /* Insert header into the chain. */ meh_p->meh_next= *search_meh_pp; *search_meh_pp= meh_p; return 0; }
O0
c
my_error_register: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl %edx, -0x18(%rbp) leaq 0x39b497(%rip), %rax # 0x4506c0 movl (%rax), %edi movl $0x18, %esi movl $0x10, %edx callq 0xba940 movq %rax, -0x20(%rbp) cmpq $0x0, %rax jne 0xb5250 movl $0x1, -0x4(%rbp) jmp 0xb52f0 movq -0x10(%rbp), %rcx movq -0x20(%rbp), %rax movq %rcx, 0x8(%rax) movl -0x14(%rbp), %ecx movq -0x20(%rbp), %rax movl %ecx, 0x10(%rax) movl -0x18(%rbp), %ecx movq -0x20(%rbp), %rax movl %ecx, 0x14(%rax) leaq 0x1d8961(%rip), %rax # 0x28dbd8 movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax cmpq $0x0, (%rax) je 0xb52a5 movq -0x28(%rbp), %rax movq (%rax), %rax movl 0x14(%rax), %eax cmpl -0x14(%rbp), %eax jbe 0xb5296 jmp 0xb52a5 jmp 0xb5298 movq -0x28(%rbp), %rax movq (%rax), %rax movq %rax, -0x28(%rbp) jmp 0xb527b movq -0x28(%rbp), %rax cmpq $0x0, (%rax) je 0xb52d0 movq -0x28(%rbp), %rax movq (%rax), %rax movl 0x10(%rax), %eax cmpl -0x18(%rbp), %eax ja 0xb52d0 movq -0x20(%rbp), %rdi callq 0xbacc0 movl $0x1, -0x4(%rbp) jmp 0xb52f0 movq -0x28(%rbp), %rax movq (%rax), %rcx movq -0x20(%rbp), %rax movq %rcx, (%rax) movq -0x20(%rbp), %rcx movq -0x28(%rbp), %rax movq %rcx, (%rax) movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x30, %rsp popq %rbp retq nopl (%rax)
my_error_register: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_18], edx lea rax, key_memory_my_err_head mov edi, [rax] mov esi, 18h mov edx, 10h call my_malloc mov [rbp+var_20], rax cmp rax, 0 jnz short loc_B5250 mov [rbp+var_4], 1 jmp loc_B52F0 loc_B5250: mov rcx, [rbp+var_10] mov rax, [rbp+var_20] mov [rax+8], rcx mov ecx, [rbp+var_14] mov rax, [rbp+var_20] mov [rax+10h], ecx mov ecx, [rbp+var_18] mov rax, [rbp+var_20] mov [rax+14h], ecx lea rax, my_errmsgs_list mov [rbp+var_28], rax loc_B527B: mov rax, [rbp+var_28] cmp qword ptr [rax], 0 jz short loc_B52A5 mov rax, [rbp+var_28] mov rax, [rax] mov eax, [rax+14h] cmp eax, [rbp+var_14] jbe short loc_B5296 jmp short loc_B52A5 loc_B5296: jmp short $+2 loc_B5298: mov rax, [rbp+var_28] mov rax, [rax] mov [rbp+var_28], rax jmp short loc_B527B loc_B52A5: mov rax, [rbp+var_28] cmp qword ptr [rax], 0 jz short loc_B52D0 mov rax, [rbp+var_28] mov rax, [rax] mov eax, [rax+10h] cmp eax, [rbp+var_18] ja short loc_B52D0 mov rdi, [rbp+var_20] call my_free mov [rbp+var_4], 1 jmp short loc_B52F0 loc_B52D0: mov rax, [rbp+var_28] mov rcx, [rax] mov rax, [rbp+var_20] mov [rax], rcx mov rcx, [rbp+var_20] mov rax, [rbp+var_28] mov [rax], rcx mov [rbp+var_4], 0 loc_B52F0: mov eax, [rbp+var_4] add rsp, 30h pop rbp retn
long long my_error_register(long long a1, unsigned int a2, unsigned int a3) { long long **i; // [rsp+8h] [rbp-28h] long long v5; // [rsp+10h] [rbp-20h] v5 = my_malloc(key_memory_my_err_head, 24LL, 16LL); if ( v5 ) { *(_QWORD *)(v5 + 8) = a1; *(_DWORD *)(v5 + 16) = a2; *(_DWORD *)(v5 + 20) = a3; for ( i = &my_errmsgs_list; *i && *((_DWORD *)*i + 5) <= a2; i = (long long **)*i ) ; if ( *i && *((_DWORD *)*i + 4) <= a3 ) { my_free(v5); return 1; } else { *(_QWORD *)v5 = *i; *i = (long long *)v5; return 0; } } else { return 1; } }
my_error_register: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV dword ptr [RBP + -0x18],EDX LEA RAX,[0x5506c0] MOV EDI,dword ptr [RAX] MOV ESI,0x18 MOV EDX,0x10 CALL 0x001ba940 MOV qword ptr [RBP + -0x20],RAX CMP RAX,0x0 JNZ 0x001b5250 MOV dword ptr [RBP + -0x4],0x1 JMP 0x001b52f0 LAB_001b5250: MOV RCX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x8],RCX MOV ECX,dword ptr [RBP + -0x14] MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX + 0x10],ECX MOV ECX,dword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX + 0x14],ECX LEA RAX,[0x38dbd8] MOV qword ptr [RBP + -0x28],RAX LAB_001b527b: MOV RAX,qword ptr [RBP + -0x28] CMP qword ptr [RAX],0x0 JZ 0x001b52a5 MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX] MOV EAX,dword ptr [RAX + 0x14] CMP EAX,dword ptr [RBP + -0x14] JBE 0x001b5296 JMP 0x001b52a5 LAB_001b5296: JMP 0x001b5298 LAB_001b5298: MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x28],RAX JMP 0x001b527b LAB_001b52a5: MOV RAX,qword ptr [RBP + -0x28] CMP qword ptr [RAX],0x0 JZ 0x001b52d0 MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX] MOV EAX,dword ptr [RAX + 0x10] CMP EAX,dword ptr [RBP + -0x18] JA 0x001b52d0 MOV RDI,qword ptr [RBP + -0x20] CALL 0x001bacc0 MOV dword ptr [RBP + -0x4],0x1 JMP 0x001b52f0 LAB_001b52d0: MOV RAX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x0 LAB_001b52f0: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x30 POP RBP RET
int4 my_error_register(long param_1,uint param_2,uint param_3) { long *plVar1; int **local_30; int4 local_c; plVar1 = (long *)my_malloc(key_memory_my_err_head,0x18,0x10); if (plVar1 == (long *)0x0) { local_c = 1; } else { plVar1[1] = param_1; *(uint *)(plVar1 + 2) = param_2; *(uint *)((long)plVar1 + 0x14) = param_3; for (local_30 = &my_errmsgs_list; (*local_30 != (int *)0x0 && (*(uint *)(*local_30 + 0x14) <= param_2)); local_30 = (int **)*local_30) { } if ((*local_30 == (int *)0x0) || (param_3 < *(uint *)(*local_30 + 0x10))) { *plVar1 = (long)*local_30; *local_30 = (int *)plVar1; local_c = 0; } else { my_free(plVar1); local_c = 1; } } return local_c; }
47,798
xid_printable(PSI_xid*, unsigned long, unsigned long)
eloqsql/storage/perfschema/pfs_events_transactions.cc
bool xid_printable(PSI_xid *xid, size_t offset, size_t length) { if (xid->is_null()) return false; assert(offset + length <= MYSQL_XIDDATASIZE); unsigned char *c= (unsigned char*)&xid->data + offset; for (size_t i= 0; i < length; i++, c++) { if(*c < 32 || *c > 127) return false; } return true; }
O0
cpp
xid_printable(PSI_xid*, unsigned long, unsigned long): pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rdi callq 0x580c0 testb $0x1, %al jne 0x58043 jmp 0x58049 movb $0x0, -0x1(%rbp) jmp 0x580a9 movq -0x10(%rbp), %rax addq $0x18, %rax addq -0x18(%rbp), %rax movq %rax, -0x28(%rbp) movq $0x0, -0x30(%rbp) movq -0x30(%rbp), %rax cmpq -0x20(%rbp), %rax jae 0x580a5 movq -0x28(%rbp), %rax movzbl (%rax), %eax cmpl $0x20, %eax jl 0x58083 movq -0x28(%rbp), %rax movzbl (%rax), %eax cmpl $0x7f, %eax jle 0x58089 movb $0x0, -0x1(%rbp) jmp 0x580a9 jmp 0x5808b movq -0x30(%rbp), %rax addq $0x1, %rax movq %rax, -0x30(%rbp) movq -0x28(%rbp), %rax addq $0x1, %rax movq %rax, -0x28(%rbp) jmp 0x58061 movb $0x1, -0x1(%rbp) movb -0x1(%rbp), %al andb $0x1, %al addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
_Z13xid_printableP7PSI_xidmm: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rdi, [rbp+var_10]; this call _ZN7PSI_xid7is_nullEv; PSI_xid::is_null(void) test al, 1 jnz short loc_58043 jmp short loc_58049 loc_58043: mov [rbp+var_1], 0 jmp short loc_580A9 loc_58049: mov rax, [rbp+var_10] add rax, 18h add rax, [rbp+var_18] mov [rbp+var_28], rax mov [rbp+var_30], 0 loc_58061: mov rax, [rbp+var_30] cmp rax, [rbp+var_20] jnb short loc_580A5 mov rax, [rbp+var_28] movzx eax, byte ptr [rax] cmp eax, 20h ; ' ' jl short loc_58083 mov rax, [rbp+var_28] movzx eax, byte ptr [rax] cmp eax, 7Fh jle short loc_58089 loc_58083: mov [rbp+var_1], 0 jmp short loc_580A9 loc_58089: jmp short $+2 loc_5808B: mov rax, [rbp+var_30] add rax, 1 mov [rbp+var_30], rax mov rax, [rbp+var_28] add rax, 1 mov [rbp+var_28], rax jmp short loc_58061 loc_580A5: mov [rbp+var_1], 1 loc_580A9: mov al, [rbp+var_1] and al, 1 add rsp, 30h pop rbp retn
char xid_printable(PSI_xid *a1, long long a2, unsigned long long a3) { unsigned long long i; // [rsp+0h] [rbp-30h] unsigned __int8 *v5; // [rsp+8h] [rbp-28h] if ( (PSI_xid::is_null(a1) & 1) != 0 ) return 0; v5 = (unsigned __int8 *)a1 + a2 + 24; for ( i = 0LL; i < a3; ++i ) { if ( *v5 < 0x20u || *v5 > 0x7Fu ) return 0; ++v5; } return 1; }
xid_printable: 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 RDI,qword ptr [RBP + -0x10] CALL 0x001580c0 TEST AL,0x1 JNZ 0x00158043 JMP 0x00158049 LAB_00158043: MOV byte ptr [RBP + -0x1],0x0 JMP 0x001580a9 LAB_00158049: MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x18 ADD RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x28],RAX MOV qword ptr [RBP + -0x30],0x0 LAB_00158061: MOV RAX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RBP + -0x20] JNC 0x001580a5 MOV RAX,qword ptr [RBP + -0x28] MOVZX EAX,byte ptr [RAX] CMP EAX,0x20 JL 0x00158083 MOV RAX,qword ptr [RBP + -0x28] MOVZX EAX,byte ptr [RAX] CMP EAX,0x7f JLE 0x00158089 LAB_00158083: MOV byte ptr [RBP + -0x1],0x0 JMP 0x001580a9 LAB_00158089: JMP 0x0015808b LAB_0015808b: MOV RAX,qword ptr [RBP + -0x30] ADD RAX,0x1 MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x1 MOV qword ptr [RBP + -0x28],RAX JMP 0x00158061 LAB_001580a5: MOV byte ptr [RBP + -0x1],0x1 LAB_001580a9: MOV AL,byte ptr [RBP + -0x1] AND AL,0x1 ADD RSP,0x30 POP RBP RET
/* xid_printable(PSI_xid*, unsigned long, unsigned long) */ int1 xid_printable(PSI_xid *param_1,ulong param_2,ulong param_3) { ulong uVar1; ulong local_38; PSI_xid *local_30; int1 local_9; uVar1 = PSI_xid::is_null(param_1); if ((uVar1 & 1) == 0) { local_30 = param_1 + param_2 + 0x18; for (local_38 = 0; local_38 < param_3; local_38 = local_38 + 1) { if (((byte)*local_30 < 0x20) || (0x7f < (byte)*local_30)) { return 0; } local_30 = local_30 + 1; } local_9 = 1; } else { local_9 = 0; } return local_9; }
47,799
google::protobuf::DescriptorBuilder::FindSymbolNotEnforcingDeps(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc
Symbol DescriptorBuilder::FindSymbolNotEnforcingDeps(const std::string& name, bool build_it) { Symbol result = FindSymbolNotEnforcingDepsHelper(pool_, name, build_it); // Only find symbols which were defined in this file or one of its // dependencies. const FileDescriptor* file = result.GetFile(); if (file == file_ || dependencies_.count(file) > 0) { unused_dependency_.erase(file); } return result; }
O0
cpp
google::protobuf::DescriptorBuilder::FindSymbolNotEnforcingDeps(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool): subq $0x38, %rsp movb %dl, %al movq %rdi, 0x28(%rsp) movq %rsi, 0x20(%rsp) andb $0x1, %al movb %al, 0x1f(%rsp) movq 0x28(%rsp), %rdi movq %rdi, 0x8(%rsp) movq (%rdi), %rsi movq 0x20(%rsp), %rdx movb 0x1f(%rsp), %al andb $0x1, %al movzbl %al, %ecx callq 0x43370 movq %rax, 0x30(%rsp) leaq 0x30(%rsp), %rdi callq 0x74520 movq 0x8(%rsp), %rcx movq %rax, 0x10(%rsp) movq 0x10(%rsp), %rax cmpq 0x58(%rcx), %rax je 0x43653 movq 0x8(%rsp), %rdi addq $0x68, %rdi leaq 0x10(%rsp), %rsi callq 0x77260 cmpq $0x0, %rax jbe 0x43669 movq 0x8(%rsp), %rdi addq $0xd0, %rdi leaq 0x10(%rsp), %rsi callq 0x772c0 movq 0x30(%rsp), %rax addq $0x38, %rsp retq nopw %cs:(%rax,%rax)
_ZN6google8protobuf17DescriptorBuilder26FindSymbolNotEnforcingDepsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb: sub rsp, 38h mov al, dl mov [rsp+38h+var_10], rdi mov [rsp+38h+var_18], rsi and al, 1 mov [rsp+38h+var_19], al mov rdi, [rsp+38h+var_10] mov [rsp+38h+var_30], rdi mov rsi, [rdi] mov rdx, [rsp+38h+var_18] mov al, [rsp+38h+var_19] and al, 1 movzx ecx, al call _ZN6google8protobuf17DescriptorBuilder32FindSymbolNotEnforcingDepsHelperEPKNS0_14DescriptorPoolERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb; google::protobuf::DescriptorBuilder::FindSymbolNotEnforcingDepsHelper(google::protobuf::DescriptorPool const*,std::string const&,bool) mov [rsp+38h+var_8], rax lea rdi, [rsp+38h+var_8]; this call _ZNK6google8protobuf6Symbol7GetFileEv; google::protobuf::Symbol::GetFile(void) mov rcx, [rsp+38h+var_30] mov [rsp+38h+var_28], rax mov rax, [rsp+38h+var_28] cmp rax, [rcx+58h] jz short loc_43653 mov rdi, [rsp+38h+var_30] add rdi, 68h ; 'h' lea rsi, [rsp+38h+var_28] call _ZNKSt3setIPKN6google8protobuf14FileDescriptorESt4lessIS4_ESaIS4_EE5countERKS4_; std::set<google::protobuf::FileDescriptor const*>::count(google::protobuf::FileDescriptor const* const&) cmp rax, 0 jbe short loc_43669 loc_43653: mov rdi, [rsp+38h+var_30] add rdi, 0D0h lea rsi, [rsp+38h+var_28] call _ZNSt3setIPKN6google8protobuf14FileDescriptorESt4lessIS4_ESaIS4_EE5eraseERKS4_; std::set<google::protobuf::FileDescriptor const*>::erase(google::protobuf::FileDescriptor const* const&) loc_43669: mov rax, [rsp+38h+var_8] add rsp, 38h retn
long long google::protobuf::DescriptorBuilder::FindSymbolNotEnforcingDeps(long long *a1, long long a2, char a3) { long long File; // [rsp+10h] [rbp-28h] BYREF char v5; // [rsp+1Fh] [rbp-19h] long long v6; // [rsp+20h] [rbp-18h] long long *v7; // [rsp+28h] [rbp-10h] long long SymbolNotEnforcingDepsHelper; // [rsp+30h] [rbp-8h] BYREF v7 = a1; v6 = a2; v5 = a3 & 1; SymbolNotEnforcingDepsHelper = google::protobuf::DescriptorBuilder::FindSymbolNotEnforcingDepsHelper( a1, *a1, a2, a3 & 1); File = google::protobuf::Symbol::GetFile((google::protobuf::Symbol *)&SymbolNotEnforcingDepsHelper); if ( File == a1[11] || std::set<google::protobuf::FileDescriptor const*>::count(a1 + 13, &File) ) std::set<google::protobuf::FileDescriptor const*>::erase(a1 + 26, &File); return SymbolNotEnforcingDepsHelper; }
FindSymbolNotEnforcingDeps: SUB RSP,0x38 MOV AL,DL MOV qword ptr [RSP + 0x28],RDI MOV qword ptr [RSP + 0x20],RSI AND AL,0x1 MOV byte ptr [RSP + 0x1f],AL MOV RDI,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x8],RDI MOV RSI,qword ptr [RDI] MOV RDX,qword ptr [RSP + 0x20] MOV AL,byte ptr [RSP + 0x1f] AND AL,0x1 MOVZX ECX,AL CALL 0x00143370 MOV qword ptr [RSP + 0x30],RAX LEA RDI,[RSP + 0x30] CALL 0x00174520 MOV RCX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [RSP + 0x10] CMP RAX,qword ptr [RCX + 0x58] JZ 0x00143653 MOV RDI,qword ptr [RSP + 0x8] ADD RDI,0x68 LEA RSI,[RSP + 0x10] CALL 0x00177260 CMP RAX,0x0 JBE 0x00143669 LAB_00143653: MOV RDI,qword ptr [RSP + 0x8] ADD RDI,0xd0 LEA RSI,[RSP + 0x10] CALL 0x001772c0 LAB_00143669: MOV RAX,qword ptr [RSP + 0x30] ADD RSP,0x38 RET
/* google::protobuf::DescriptorBuilder::FindSymbolNotEnforcingDeps(std::__cxx11::string const&, bool) */ int8 __thiscall google::protobuf::DescriptorBuilder::FindSymbolNotEnforcingDeps (DescriptorBuilder *this,string *param_1,bool param_2) { long lVar1; FileDescriptor *local_28; int1 local_19; string *local_18; DescriptorBuilder *local_10; int8 local_8; local_19 = param_2; local_18 = param_1; local_10 = this; local_8 = FindSymbolNotEnforcingDepsHelper(this,*(DescriptorPool **)this,param_1,param_2); local_28 = (FileDescriptor *)Symbol::GetFile((Symbol *)&local_8); if ((local_28 != *(FileDescriptor **)(this + 0x58)) && (lVar1 = std:: set<google::protobuf::FileDescriptor_const*,std::less<google::protobuf::FileDescriptor_const*>,std::allocator<google::protobuf::FileDescriptor_const*>> ::count((set<google::protobuf::FileDescriptor_const*,std::less<google::protobuf::FileDescriptor_const*>,std::allocator<google::protobuf::FileDescriptor_const*>> *)(this + 0x68),&local_28), lVar1 == 0)) { return local_8; } std:: set<google::protobuf::FileDescriptor_const*,std::less<google::protobuf::FileDescriptor_const*>,std::allocator<google::protobuf::FileDescriptor_const*>> ::erase((set<google::protobuf::FileDescriptor_const*,std::less<google::protobuf::FileDescriptor_const*>,std::allocator<google::protobuf::FileDescriptor_const*>> *)(this + 0xd0),&local_28); return local_8; }