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
49,300
mysql_rm_arc_files(THD*, st_my_dir*, char const*)
eloqsql/sql/sql_db.cc
long mysql_rm_arc_files(THD *thd, MY_DIR *dirp, const char *org_path) { long deleted= 0; ulong found_other_files= 0; char filePath[FN_REFLEN]; DBUG_ENTER("mysql_rm_arc_files"); DBUG_PRINT("enter", ("path: %s", org_path)); for (uint idx=0 ; idx < (uint) dirp->number_of_files && !thd->killed ; idx++) { FILEINFO *file=dirp->dir_entry+idx; char *extension, *revision; DBUG_PRINT("info",("Examining: %s", file->name)); extension= fn_ext(file->name); if (extension[0] != '.' || extension[1] != 'f' || extension[2] != 'r' || extension[3] != 'm' || extension[4] != '-') { found_other_files++; continue; } revision= extension+5; while (*revision && my_isdigit(system_charset_info, *revision)) revision++; if (*revision) { found_other_files++; continue; } strxmov(filePath, org_path, "/", file->name, NullS); if (mysql_file_delete_with_symlink(key_file_misc, filePath, "", MYF(MY_WME))) { goto err; } deleted++; } if (thd->killed) goto err; my_dirend(dirp); /* If the directory is a symbolic link, remove the link first, then remove the directory the symbolic link pointed at */ if (!found_other_files && rm_dir_w_symlink(org_path, 0)) DBUG_RETURN(-1); DBUG_RETURN(deleted); err: my_dirend(dirp); DBUG_RETURN(-1); }
O3
cpp
mysql_rm_arc_files(THD*, st_my_dir*, char const*): pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x478, %rsp # imm = 0x478 movq %rdx, -0x450(%rbp) movq %rdi, %r15 movq %fs:0x28, %rax movq %rax, -0x30(%rbp) cmpl $0x0, 0x8(%rsi) je 0x72fbe3 xorl %r12d, %r12d movq $0x0, -0x448(%rbp) xorl %ebx, %ebx movq %rsi, -0x438(%rbp) cmpl $0x0, 0x3ebc(%r15) jne 0x72fbc3 movq (%rsi), %r13 movq %r12, %r14 shlq $0x4, %r14 movq (%r13,%r14), %rdi callq 0xcb3ecc cmpb $0x2e, (%rax) jne 0x72fb87 cmpb $0x66, 0x1(%rax) jne 0x72fb87 cmpb $0x72, 0x2(%rax) jne 0x72fb87 cmpb $0x6d, 0x3(%rax) jne 0x72fb87 cmpb $0x2d, 0x4(%rax) jne 0x72fb87 movb 0x5(%rax), %dl testb %dl, %dl je 0x72fad4 leaq 0xe27bd6(%rip), %rcx # 0x1557688 movq (%rcx), %rcx movq 0x40(%rcx), %rcx addq $0x6, %rax movzbl %dl, %edx testb $0x4, 0x1(%rcx,%rdx) je 0x72fb87 movb (%rax), %dl incq %rax testb %dl, %dl jne 0x72fabd addq %r14, %r13 movq (%r13), %rcx leaq -0x430(%rbp), %r14 movq %r14, %rdi movq -0x450(%rbp), %rsi leaq 0x6575ad(%rip), %rdx # 0xd870a0 xorl %r8d, %r8d xorl %eax, %eax callq 0xd088c0 leaq 0xe286dc(%rip), %rax # 0x15581e0 movl (%rax), %eax movl %eax, -0x43c(%rbp) leaq -0x230(%rbp), %rdi movq %r14, %rsi leaq 0x6573f5(%rip), %rcx # 0xd86f12 movq %rcx, %rdx movl $0x104, %r8d # imm = 0x104 callq 0xcb3f50 movq %rax, %r13 leaq 0xdada13(%rip), %rax # 0x14dd548 movq (%rax), %rax leaq -0x4a0(%rbp), %rdi movl -0x43c(%rbp), %esi movl $0xe, %edx movq %r13, %rcx leaq -0x458(%rbp), %r8 callq *0x148(%rax) movq %rax, -0x458(%rbp) testq %rax, %rax jne 0x72fba2 movl $0x10, %esi movq %r13, %rdi callq 0xcc5852 movq -0x438(%rbp), %rsi testl %eax, %eax jne 0x72fbed incq -0x448(%rbp) jmp 0x72fb91 incq %rbx movq -0x438(%rbp), %rsi incq %r12 movl 0x8(%rsi), %eax cmpq %rax, %r12 jb 0x72fa51 jmp 0x72fbc3 movq %rax, %rdi movq %r13, %rsi leaq -0x458(%rbp), %rdx leaq -0x440(%rbp), %rcx callq 0x622a64 movl -0x440(%rbp), %eax jmp 0x72fb73 cmpl $0x0, 0x3ebc(%r15) jne 0x72fbed movq %rsi, %rdi callq 0xcc37b0 testq %rbx, %rbx movq -0x448(%rbp), %r14 jne 0x72fbfc jmp 0x72fc2b cmpl $0x0, 0x3ebc(%r15) je 0x72fc20 movq %rsi, %rdi callq 0xcc37b0 movq $-0x1, %r14 movq %fs:0x28, %rax cmpq -0x30(%rbp), %rax jne 0x72fc45 movq %r14, %rax addq $0x478, %rsp # imm = 0x478 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rsi, %rdi callq 0xcc37b0 xorl %r14d, %r14d xorl %ebx, %ebx movq -0x450(%rbp), %rdi xorl %esi, %esi callq 0x622512 negb %al sbbq %rbx, %rbx orq %rbx, %r14 jmp 0x72fbfc callq 0x61b680
_Z18mysql_rm_arc_filesP3THDP9st_my_dirPKc: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 478h mov [rbp+var_450], rdx mov r15, rdi mov rax, fs:28h mov [rbp+var_30], rax cmp dword ptr [rsi+8], 0 jz loc_72FBE3 xor r12d, r12d mov [rbp+var_448], 0 xor ebx, ebx mov [rbp+var_438], rsi loc_72FA51: cmp dword ptr [r15+3EBCh], 0 jnz loc_72FBC3 mov r13, [rsi] mov r14, r12 shl r14, 4 mov rdi, [r13+r14+0] call fn_ext cmp byte ptr [rax], 2Eh ; '.' jnz loc_72FB87 cmp byte ptr [rax+1], 66h ; 'f' jnz loc_72FB87 cmp byte ptr [rax+2], 72h ; 'r' jnz loc_72FB87 cmp byte ptr [rax+3], 6Dh ; 'm' jnz loc_72FB87 cmp byte ptr [rax+4], 2Dh ; '-' jnz loc_72FB87 mov dl, [rax+5] test dl, dl jz short loc_72FAD4 lea rcx, system_charset_info mov rcx, [rcx] mov rcx, [rcx+40h] add rax, 6 loc_72FABD: movzx edx, dl test byte ptr [rcx+rdx+1], 4 jz loc_72FB87 mov dl, [rax] inc rax test dl, dl jnz short loc_72FABD loc_72FAD4: add r13, r14 mov rcx, [r13+0] lea r14, [rbp+var_430] mov rdi, r14 mov rsi, [rbp+var_450] lea rdx, asc_D87090+10h; "/" xor r8d, r8d xor eax, eax call strxmov lea rax, key_file_misc mov eax, [rax] mov [rbp+var_43C], eax lea rdi, [rbp+var_230] mov rsi, r14 lea rcx, byte_D86F12 mov rdx, rcx mov r8d, 104h call fn_format mov r13, rax lea rax, PSI_server mov rax, [rax] lea rdi, [rbp+var_4A0] mov esi, [rbp+var_43C] mov edx, 0Eh mov rcx, r13 lea r8, [rbp+var_458] call qword ptr [rax+148h] mov [rbp+var_458], rax test rax, rax jnz short loc_72FBA2 mov esi, 10h mov rdi, r13 call my_handler_delete_with_symlink loc_72FB73: mov rsi, [rbp+var_438] test eax, eax jnz short loc_72FBED inc [rbp+var_448] jmp short loc_72FB91 loc_72FB87: inc rbx mov rsi, [rbp+var_438] loc_72FB91: inc r12 mov eax, [rsi+8] cmp r12, rax jb loc_72FA51 jmp short loc_72FBC3 loc_72FBA2: mov rdi, rax mov rsi, r13 lea rdx, [rbp+var_458] lea rcx, [rbp+var_440] call _Z18mysql_rm_arc_filesP3THDP9st_my_dirPKc_cold_1; mysql_rm_arc_files(THD *,st_my_dir *,char const*) [clone] mov eax, [rbp+var_440] jmp short loc_72FB73 loc_72FBC3: cmp dword ptr [r15+3EBCh], 0 jnz short loc_72FBED mov rdi, rsi call my_dirend test rbx, rbx mov r14, [rbp+var_448] jnz short loc_72FBFC jmp short loc_72FC2B loc_72FBE3: cmp dword ptr [r15+3EBCh], 0 jz short loc_72FC20 loc_72FBED: mov rdi, rsi call my_dirend mov r14, 0FFFFFFFFFFFFFFFFh loc_72FBFC: mov rax, fs:28h cmp rax, [rbp+var_30] jnz short loc_72FC45 mov rax, r14 add rsp, 478h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_72FC20: mov rdi, rsi call my_dirend xor r14d, r14d loc_72FC2B: xor ebx, ebx mov rdi, [rbp+var_450]; char * xor esi, esi; char call _Z16rm_dir_w_symlinkPKcc; rm_dir_w_symlink(char const*,char) neg al sbb rbx, rbx or r14, rbx jmp short loc_72FBFC loc_72FC45: call ___stack_chk_fail
long long mysql_rm_arc_files(long long a1, long long *a2, char *a3) { long long v3; // r12 long long v4; // rbx long long v5; // r13 _BYTE *v6; // rax int v7; // r9d unsigned __int8 v8; // dl unsigned __int8 *v9; // rax long long v10; // r13 long long v11; // rax unsigned int v12; // eax long long v13; // r14 _BYTE v15[72]; // [rsp+0h] [rbp-4A0h] BYREF long long v16; // [rsp+48h] [rbp-458h] BYREF char *v17; // [rsp+50h] [rbp-450h] long long v18; // [rsp+58h] [rbp-448h] unsigned int v19; // [rsp+60h] [rbp-440h] BYREF unsigned int v20; // [rsp+64h] [rbp-43Ch] long long *v21; // [rsp+68h] [rbp-438h] _BYTE v22[512]; // [rsp+70h] [rbp-430h] BYREF _BYTE v23[512]; // [rsp+270h] [rbp-230h] BYREF unsigned long long v24; // [rsp+470h] [rbp-30h] v17 = a3; v24 = __readfsqword(0x28u); if ( !*((_DWORD *)a2 + 2) ) { if ( !*(_DWORD *)(a1 + 16060) ) { my_dirend(a2); v13 = 0LL; return -(long long)(rm_dir_w_symlink(v17, 0) != 0) | v13; } goto LABEL_25; } v3 = 0LL; v18 = 0LL; v4 = 0LL; v21 = a2; while ( !*(_DWORD *)(a1 + 16060) ) { v5 = *a2; v6 = (_BYTE *)fn_ext(*(_QWORD *)(*a2 + 16 * v3)); if ( *v6 == 46 && v6[1] == 102 && v6[2] == 114 && v6[3] == 109 && v6[4] == 45 ) { v8 = v6[5]; if ( !v8 ) { LABEL_13: strxmov((unsigned int)v22, (_DWORD)v17, (unsigned int)"/", *(_QWORD *)(16 * v3 + v5), 0, v7); v20 = key_file_misc; v10 = fn_format(v23, v22, &byte_D86F12, &byte_D86F12, 260LL); v11 = ((long long ( *)(_BYTE *, _QWORD, long long, long long, long long *))PSI_server[41])( v15, v20, 14LL, v10, &v16); v16 = v11; if ( v11 ) { mysql_rm_arc_files(v11, v10, &v16, &v19); v12 = v19; } else { v12 = my_handler_delete_with_symlink(v10, 16LL); } a2 = v21; if ( v12 ) goto LABEL_25; ++v18; goto LABEL_18; } v9 = v6 + 6; while ( (*(_BYTE *)(*(_QWORD *)(system_charset_info + 64) + v8 + 1LL) & 4) != 0 ) { v8 = *v9++; if ( !v8 ) goto LABEL_13; } } ++v4; a2 = v21; LABEL_18: if ( ++v3 >= (unsigned long long)*((unsigned int *)a2 + 2) ) break; } if ( *(_DWORD *)(a1 + 16060) ) { LABEL_25: my_dirend(a2); return -1LL; } my_dirend(a2); v13 = v18; if ( !v4 ) return -(long long)(rm_dir_w_symlink(v17, 0) != 0) | v13; return v13; }
49,301
common_log::resume()
monkey531[P]llama/common/log.cpp
void resume() { std::lock_guard<std::mutex> lock(mtx); if (running) { return; } running = true; thrd = std::thread([this]() { while (true) { { std::unique_lock<std::mutex> lock(mtx); cv.wait(lock, [this]() { return head != tail; }); cur = entries[head]; head = (head + 1) % entries.size(); } if (cur.is_end) { break; } cur.print(); // stdout and stderr if (file) { cur.print(file); } } }); }
O1
cpp
common_log::resume(): pushq %r14 pushq %rbx subq $0x18, %rsp movq %rdi, %rbx callq 0x1bd20 testl %eax, %eax jne 0xd18ab cmpb $0x0, 0x6a(%rbx) jne 0xd189b movb $0x1, 0x6a(%rbx) leaq 0x10(%rsp), %rsi movq %rbx, (%rsi) leaq 0x8(%rsp), %rdi callq 0xd20d6 cmpq $0x0, 0x28(%rbx) jne 0xd18b2 movq 0x8(%rsp), %rax movq %rax, 0x28(%rbx) movq %rbx, %rdi callq 0x1b6e0 addq $0x18, %rsp popq %rbx popq %r14 retq movl %eax, %edi callq 0x1b600 callq 0x1b210 movq %rax, %r14 movq %rbx, %rdi callq 0x1b6e0 movq %r14, %rdi callq 0x1bff0
_ZN10common_log6resumeEv: push r14 push rbx sub rsp, 18h mov rbx, rdi call _pthread_mutex_lock test eax, eax jnz short loc_D18AB cmp byte ptr [rbx+6Ah], 0 jnz short loc_D189B mov byte ptr [rbx+6Ah], 1 lea rsi, [rsp+28h+var_18] mov [rsi], rbx lea rdi, [rsp+28h+var_20] call _ZNSt6threadC2IZN10common_log6resumeEvEUlvE_JEvEEOT_DpOT0_ cmp qword ptr [rbx+28h], 0 jnz short loc_D18B2 mov rax, [rsp+28h+var_20] mov [rbx+28h], rax loc_D189B: mov rdi, rbx call _pthread_mutex_unlock add rsp, 18h pop rbx pop r14 retn loc_D18AB: mov edi, eax; int call __ZSt20__throw_system_errori; std::__throw_system_error(int) loc_D18B2: call __ZSt9terminatev; std::terminate(void) mov r14, rax mov rdi, rbx call _pthread_mutex_unlock mov rdi, r14 call __Unwind_Resume
long long common_log::resume(common_log *this) { int v1; // eax _QWORD v3[4]; // [rsp+8h] [rbp-20h] BYREF v1 = pthread_mutex_lock(); if ( v1 ) std::__throw_system_error(v1); if ( !*((_BYTE *)this + 106) ) { *((_BYTE *)this + 106) = 1; v3[1] = this; ZNSt6threadC2IZN10common_log6resumeEvEUlvE_JEvEEOT_DpOT0_(v3); if ( *((_QWORD *)this + 5) ) std::terminate(); *((_QWORD *)this + 5) = v3[0]; } return pthread_mutex_unlock(this); }
resume: PUSH R14 PUSH RBX SUB RSP,0x18 MOV RBX,RDI CALL 0x0011bd20 TEST EAX,EAX JNZ 0x001d18ab CMP byte ptr [RBX + 0x6a],0x0 JNZ 0x001d189b MOV byte ptr [RBX + 0x6a],0x1 LEA RSI,[RSP + 0x10] MOV qword ptr [RSI],RBX LAB_001d1881: LEA RDI,[RSP + 0x8] CALL 0x001d20d6 LAB_001d188b: CMP qword ptr [RBX + 0x28],0x0 JNZ 0x001d18b2 MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RBX + 0x28],RAX LAB_001d189b: MOV RDI,RBX CALL 0x0011b6e0 ADD RSP,0x18 POP RBX POP R14 RET LAB_001d18ab: MOV EDI,EAX CALL 0x0011b600 LAB_001d18b2: CALL 0x0011b210
/* common_log::resume() */ void __thiscall common_log::resume(common_log *this) { int iVar1; int8 local_20; common_log *local_18; iVar1 = pthread_mutex_lock((pthread_mutex_t *)this); if (iVar1 != 0) { /* WARNING: Subroutine does not return */ std::__throw_system_error(iVar1); } if (this[0x6a] == (common_log)0x0) { this[0x6a] = (common_log)0x1; /* try { // try from 001d1881 to 001d188a has its CatchHandler @ 001d18b7 */ local_18 = this; std::thread::thread<common_log::resume()::_lambda()_1_,,void> ((thread *)&local_20,(_lambda___1_ *)&local_18); if (*(long *)(this + 0x28) != 0) { /* WARNING: Subroutine does not return */ std::terminate(); } *(int8 *)(this + 0x28) = local_20; } pthread_mutex_unlock((pthread_mutex_t *)this); return; }
49,302
QuaternionLerp
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/raymath.h
RMAPI Quaternion QuaternionLerp(Quaternion q1, Quaternion q2, float amount) { Quaternion result = { 0 }; result.x = q1.x + amount*(q2.x - q1.x); result.y = q1.y + amount*(q2.y - q1.y); result.z = q1.z + amount*(q2.z - q1.z); result.w = q1.w + amount*(q2.w - q1.w); return result; }
O3
c
QuaternionLerp: movlhps %xmm3, %xmm2 # xmm2 = xmm2[0],xmm3[0] movlhps %xmm1, %xmm0 # xmm0 = xmm0[0],xmm1[0] subps %xmm0, %xmm2 shufps $0x0, %xmm4, %xmm4 # xmm4 = xmm4[0,0,0,0] mulps %xmm2, %xmm4 addps %xmm4, %xmm0 movaps %xmm0, %xmm1 unpckhpd %xmm0, %xmm1 # xmm1 = xmm1[1],xmm0[1] retq
QuaternionLerp: movlhps xmm2, xmm3 movlhps xmm0, xmm1 subps xmm2, xmm0 shufps xmm4, xmm4, 0 mulps xmm4, xmm2 addps xmm0, xmm4 movaps xmm1, xmm0 unpckhpd xmm1, xmm0 retn
__m128 QuaternionLerp(__m128 a1, __m128 a2, __m128 a3, __m128 a4, __m128 a5) { __m128 v5; // xmm0 v5 = _mm_movelh_ps(a1, a2); return _mm_add_ps(v5, _mm_mul_ps(_mm_shuffle_ps(a5, a5, 0), _mm_sub_ps(_mm_movelh_ps(a3, a4), v5))); }
QuaternionLerp: MOVLHPS XMM2,XMM3 MOVLHPS XMM0,XMM1 SUBPS XMM2,XMM0 SHUFPS XMM4,XMM4,0x0 MULPS XMM4,XMM2 ADDPS XMM0,XMM4 MOVAPS XMM1,XMM0 UNPCKHPD XMM1,XMM0 RET
int8 QuaternionLerp(int8 param_1,int8 param_2,int8 param_3,int8 param_4, float param_5) { float fVar1; fVar1 = (float)((ulong)param_1 >> 0x20); return CONCAT44(fVar1 + param_5 * ((float)((ulong)param_3 >> 0x20) - fVar1), (float)param_1 + param_5 * ((float)param_3 - (float)param_1)); }
49,303
ok1
eloqsql/unittest/mytap/tap.c
void ok1(int const pass) { va_list ap; memset(&ap, 0, sizeof(ap)); if (!pass && *g_test.todo == '\0') ++g_test.failed; vemit_tap(pass, NULL, ap); if (*g_test.todo != '\0') emit_dir("todo", g_test.todo); emit_endl(); }
O3
c
ok1: pushq %rbp movq %rsp, %rbp pushq %rbx subq $0x18, %rsp xorps %xmm0, %xmm0 movaps %xmm0, -0x20(%rbp) movq $0x0, -0x10(%rbp) testl %edi, %edi jne 0x9150e cmpb $0x0, 0xb6e516(%rip) # 0xbffa1c jne 0x9150e incl 0xb6e50a(%rip) # 0xbffa18 leaq -0x20(%rbp), %rdx xorl %esi, %esi callq 0x91435 cmpb $0x0, 0xb6e4fc(%rip) # 0xbffa1c je 0x91555 movq 0x2f2a7f(%rip), %rbx # 0x383fa8 movq (%rbx), %rdi leaq 0x4aa9d(%rip), %rdx # 0xdbfd0 leaq 0x4aa25(%rip), %rcx # 0xdbf5f leaq 0xb6e4db(%rip), %r8 # 0xbffa1c movl $0x1, %esi xorl %eax, %eax callq 0x29200 movq (%rbx), %rdi callq 0x29400 movq 0x2f2a4c(%rip), %rbx # 0x383fa8 movq (%rbx), %rdi leaq 0x4e8b2(%rip), %rdx # 0xdfe18 movl $0x1, %esi xorl %eax, %eax callq 0x29200 movq (%rbx), %rdi callq 0x29400 addq $0x18, %rsp popq %rbx popq %rbp retq
ok1: push rbp mov rbp, rsp push rbx sub rsp, 18h xorps xmm0, xmm0 movaps [rbp+var_20], xmm0 mov [rbp+var_10], 0 test edi, edi jnz short loc_9150E cmp cs:byte_BFFA1C, 0 jnz short loc_9150E inc cs:dword_BFFA18 loc_9150E: lea rdx, [rbp+var_20] xor esi, esi call vemit_tap cmp cs:byte_BFFA1C, 0 jz short loc_91555 mov rbx, cs:stdout_ptr mov rdi, [rbx] lea rdx, aSS; " # %s %s" lea rcx, aTodo; "todo" lea r8, byte_BFFA1C mov esi, 1 xor eax, eax call ___fprintf_chk mov rdi, [rbx] call _fflush loc_91555: mov rbx, cs:stdout_ptr mov rdi, [rbx] lea rdx, asc_DFE15+3; "\n" mov esi, 1 xor eax, eax call ___fprintf_chk mov rdi, [rbx] call _fflush add rsp, 18h pop rbx pop rbp retn
long long ok1(int a1) { long long v1; // rcx long long v2; // r8 long long v3; // r9 __int128 v5; // [rsp+0h] [rbp-20h] BYREF long long v6; // [rsp+10h] [rbp-10h] v5 = 0LL; v6 = 0LL; if ( !a1 && !byte_BFFA1C ) ++dword_BFFA18; vemit_tap(a1, 0LL, (long long)&v5); if ( byte_BFFA1C ) { __fprintf_chk(stdout, 1LL, " # %s %s", "todo", &byte_BFFA1C); fflush(stdout); } __fprintf_chk(stdout, 1LL, "\n", v1, v2, v3, v5, v6); return fflush(stdout); }
ok1: PUSH RBP MOV RBP,RSP PUSH RBX SUB RSP,0x18 XORPS XMM0,XMM0 MOVAPS xmmword ptr [RBP + -0x20],XMM0 MOV qword ptr [RBP + -0x10],0x0 TEST EDI,EDI JNZ 0x0019150e CMP byte ptr [0x00cffa1c],0x0 JNZ 0x0019150e INC dword ptr [0x00cffa18] LAB_0019150e: LEA RDX,[RBP + -0x20] XOR ESI,ESI CALL 0x00191435 CMP byte ptr [0x00cffa1c],0x0 JZ 0x00191555 MOV RBX,qword ptr [0x00483fa8] MOV RDI,qword ptr [RBX] LEA RDX,[0x1dbfd0] LEA RCX,[0x1dbf5f] LEA R8,[0xcffa1c] MOV ESI,0x1 XOR EAX,EAX CALL 0x00129200 MOV RDI,qword ptr [RBX] CALL 0x00129400 LAB_00191555: MOV RBX,qword ptr [0x00483fa8] MOV RDI,qword ptr [RBX] LEA RDX,[0x1dfe18] MOV ESI,0x1 XOR EAX,EAX CALL 0x00129200 MOV RDI,qword ptr [RBX] CALL 0x00129400 ADD RSP,0x18 POP RBX POP RBP RET
void ok1(int8 param_1) { int *puVar1; int8 local_28; int8 uStack_20; int8 local_18; local_28 = 0; uStack_20 = 0; local_18 = 0; if (((int)param_1 == 0) && (DAT_00cffa1c == '\0')) { DAT_00cffa18 = DAT_00cffa18 + 1; } vemit_tap(param_1,0,&local_28); puVar1 = PTR_stdout_00483fa8; if (DAT_00cffa1c != '\0') { __fprintf_chk(*(int8 *)PTR_stdout_00483fa8,1," # %s %s",&DAT_001dbf5f,&DAT_00cffa1c); fflush(*(FILE **)puVar1); } puVar1 = PTR_stdout_00483fa8; __fprintf_chk(*(int8 *)PTR_stdout_00483fa8,1,&DAT_001dfe18); fflush(*(FILE **)puVar1); return; }
49,304
my_lengthsp_mb2
eloqsql/strings/ctype-ucs2.c
static size_t my_lengthsp_mb2(CHARSET_INFO *cs __attribute__((unused)), const char *ptr, size_t length) { const char *end= ptr + length; while (end > ptr + 1 && end[-1] == ' ' && end[-2] == '\0') end-= 2; return (size_t) (end - ptr); }
O0
c
my_lengthsp_mb2: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x10(%rbp), %rax addq -0x18(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rcx movq -0x10(%rbp), %rdx addq $0x1, %rdx xorl %eax, %eax cmpq %rdx, %rcx movb %al, -0x21(%rbp) jbe 0xfce55 movq -0x20(%rbp), %rax movsbl -0x1(%rax), %ecx xorl %eax, %eax cmpl $0x20, %ecx movb %al, -0x21(%rbp) jne 0xfce55 movq -0x20(%rbp), %rax movsbl -0x2(%rax), %eax cmpl $0x0, %eax sete %al movb %al, -0x21(%rbp) movb -0x21(%rbp), %al testb $0x1, %al jne 0xfce5e jmp 0xfce6c movq -0x20(%rbp), %rax addq $-0x2, %rax movq %rax, -0x20(%rbp) jmp 0xfce1c movq -0x20(%rbp), %rax movq -0x10(%rbp), %rcx subq %rcx, %rax popq %rbp retq nopl (%rax)
my_lengthsp_mb2: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov rax, [rbp+var_10] add rax, [rbp+var_18] mov [rbp+var_20], rax loc_FCE1C: mov rcx, [rbp+var_20] mov rdx, [rbp+var_10] add rdx, 1 xor eax, eax cmp rcx, rdx mov [rbp+var_21], al jbe short loc_FCE55 mov rax, [rbp+var_20] movsx ecx, byte ptr [rax-1] xor eax, eax cmp ecx, 20h ; ' ' mov [rbp+var_21], al jnz short loc_FCE55 mov rax, [rbp+var_20] movsx eax, byte ptr [rax-2] cmp eax, 0 setz al mov [rbp+var_21], al loc_FCE55: mov al, [rbp+var_21] test al, 1 jnz short loc_FCE5E jmp short loc_FCE6C loc_FCE5E: mov rax, [rbp+var_20] add rax, 0FFFFFFFFFFFFFFFEh mov [rbp+var_20], rax jmp short loc_FCE1C loc_FCE6C: mov rax, [rbp+var_20] mov rcx, [rbp+var_10] sub rax, rcx pop rbp retn
long long my_lengthsp_mb2(long long a1, long long a2, long long a3) { bool v4; // [rsp+1h] [rbp-21h] unsigned long long i; // [rsp+2h] [rbp-20h] for ( i = a3 + a2; ; i -= 2LL ) { v4 = 0; if ( i > a2 + 1 ) { v4 = 0; if ( *(_BYTE *)(i - 1) == 32 ) v4 = *(_BYTE *)(i - 2) == 0; } if ( !v4 ) break; } return i - a2; }
my_lengthsp_mb2: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV RAX,qword ptr [RBP + -0x10] ADD RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x20],RAX LAB_001fce1c: MOV RCX,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x10] ADD RDX,0x1 XOR EAX,EAX CMP RCX,RDX MOV byte ptr [RBP + -0x21],AL JBE 0x001fce55 MOV RAX,qword ptr [RBP + -0x20] MOVSX ECX,byte ptr [RAX + -0x1] XOR EAX,EAX CMP ECX,0x20 MOV byte ptr [RBP + -0x21],AL JNZ 0x001fce55 MOV RAX,qword ptr [RBP + -0x20] MOVSX EAX,byte ptr [RAX + -0x2] CMP EAX,0x0 SETZ AL MOV byte ptr [RBP + -0x21],AL LAB_001fce55: MOV AL,byte ptr [RBP + -0x21] TEST AL,0x1 JNZ 0x001fce5e JMP 0x001fce6c LAB_001fce5e: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,-0x2 MOV qword ptr [RBP + -0x20],RAX JMP 0x001fce1c LAB_001fce6c: MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x10] SUB RAX,RCX POP RBP RET
long my_lengthsp_mb2(int8 param_1,long param_2,long param_3) { bool bVar1; int8 local_28; local_28 = param_2 + param_3; while( true ) { bVar1 = false; if ((param_2 + 1U < local_28) && (bVar1 = false, *(char *)(local_28 - 1) == ' ')) { bVar1 = *(char *)(local_28 - 2) == '\0'; } if (!bVar1) break; local_28 = local_28 - 2; } return local_28 - param_2; }
49,305
my_uca_coll_init_utf8mb3
eloqsql/strings/ctype-uca.c
static my_bool my_uca_coll_init_utf8mb3(struct charset_info_st *cs, MY_CHARSET_LOADER *loader) { if (my_coll_init_uca(cs, loader)) return TRUE; if (my_uca_collation_can_optimize_no_contractions(cs)) my_uca_handler_map(cs, &my_uca_package_utf8mb3, &my_uca_package_no_contractions_utf8mb3); return FALSE; }
O0
c
my_uca_coll_init_utf8mb3: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0x11fa40 cmpb $0x0, %al je 0x120ed7 movb $0x1, -0x1(%rbp) jmp 0x120eff movq -0x10(%rbp), %rdi callq 0x12ba30 cmpb $0x0, %al je 0x120efb movq -0x10(%rbp), %rdi leaq 0x290001(%rip), %rsi # 0x3b0ef0 leaq 0x29001a(%rip), %rdx # 0x3b0f10 callq 0x12ba90 movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x20, %rsp popq %rbp retq nopl (%rax,%rax)
my_uca_coll_init_utf8mb3: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] call my_coll_init_uca cmp al, 0 jz short loc_120ED7 mov [rbp+var_1], 1 jmp short loc_120EFF loc_120ED7: mov rdi, [rbp+var_10] call my_uca_collation_can_optimize_no_contractions cmp al, 0 jz short loc_120EFB mov rdi, [rbp+var_10] lea rsi, my_uca_package_utf8mb3 lea rdx, my_uca_package_no_contractions_utf8mb3 call my_uca_handler_map loc_120EFB: mov [rbp+var_1], 0 loc_120EFF: mov al, [rbp+var_1] add rsp, 20h pop rbp retn
char my_uca_coll_init_utf8mb3(long long a1, long long a2) { if ( (unsigned __int8)my_coll_init_uca(a1, a2) ) return 1; if ( (unsigned __int8)my_uca_collation_can_optimize_no_contractions(a1) ) my_uca_handler_map(a1, my_uca_package_utf8mb3, my_uca_package_no_contractions_utf8mb3); return 0; }
49,306
my_uca_coll_init_utf8mb3
eloqsql/strings/ctype-uca.c
static my_bool my_uca_coll_init_utf8mb3(struct charset_info_st *cs, MY_CHARSET_LOADER *loader) { if (my_coll_init_uca(cs, loader)) return TRUE; if (my_uca_collation_can_optimize_no_contractions(cs)) my_uca_handler_map(cs, &my_uca_package_utf8mb3, &my_uca_package_no_contractions_utf8mb3); return FALSE; }
O3
c
my_uca_coll_init_utf8mb3: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq %rdi, %rbx callq 0xb833c movl %eax, %ecx movb $0x1, %al testb %cl, %cl jne 0xba250 movzbl 0xb2(%rbx), %ecx testq %rcx, %rcx je 0xba1ff movq 0x60(%rbx), %rax imulq $0x38, %rcx, %rcx xorl %edx, %edx cmpq $0x0, 0x18(%rax,%rdx) jne 0xba24e addq $0x38, %rdx cmpq %rdx, %rcx jne 0xba1ee movq 0xc0(%rbx), %rcx leaq 0x2fcb73(%rip), %rdx # 0x3b6d80 cmpq (%rdx), %rcx je 0xba231 leaq 0x2fcb87(%rip), %rax # 0x3b6da0 cmpq 0x8(%rdx), %rcx je 0xba23a cmpq 0x10(%rdx), %rcx je 0xba240 cmpq 0x18(%rdx), %rcx jne 0xba24e addq $0x18, %rax jmp 0xba244 leaq 0x2fcb68(%rip), %rax # 0x3b6da0 jmp 0xba244 addq $0x8, %rax jmp 0xba244 addq $0x10, %rax movq (%rax), %rax movq %rax, 0xc0(%rbx) xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %rbp retq
my_uca_coll_init_utf8mb3: push rbp mov rbp, rsp push rbx push rax mov rbx, rdi call my_coll_init_uca mov ecx, eax mov al, 1 test cl, cl jnz short loc_BA250 movzx ecx, byte ptr [rbx+0B2h] test rcx, rcx jz short loc_BA1FF mov rax, [rbx+60h] imul rcx, 38h ; '8' xor edx, edx loc_BA1EE: cmp qword ptr [rax+rdx+18h], 0 jnz short loc_BA24E add rdx, 38h ; '8' cmp rcx, rdx jnz short loc_BA1EE loc_BA1FF: mov rcx, [rbx+0C0h] lea rdx, my_uca_package_utf8mb3 cmp rcx, [rdx] jz short loc_BA231 lea rax, my_uca_package_no_contractions_utf8mb3 cmp rcx, [rdx+8] jz short loc_BA23A cmp rcx, [rdx+10h] jz short loc_BA240 cmp rcx, [rdx+18h] jnz short loc_BA24E add rax, 18h jmp short loc_BA244 loc_BA231: lea rax, my_uca_package_no_contractions_utf8mb3 jmp short loc_BA244 loc_BA23A: add rax, 8 jmp short loc_BA244 loc_BA240: add rax, 10h loc_BA244: mov rax, [rax] mov [rbx+0C0h], rax loc_BA24E: xor eax, eax loc_BA250: add rsp, 8 pop rbx pop rbp retn
char my_uca_coll_init_utf8mb3( long long a1, long long ( **a2)(unsigned long long, unsigned long long, const char *)) { char inited; // cl char result; // al long long v4; // rdx long long ( **v5)(); // rcx long long ( ***v6)(); // rax inited = my_coll_init_uca(a1, a2); result = 1; if ( !inited ) { if ( *(_BYTE *)(a1 + 178) ) { v4 = 0LL; while ( !*(_QWORD *)(*(_QWORD *)(a1 + 96) + v4 + 24) ) { v4 += 56LL; if ( 56LL * *(unsigned __int8 *)(a1 + 178) == v4 ) goto LABEL_6; } return 0; } LABEL_6: v5 = *(long long ( ***)())(a1 + 192); if ( v5 == my_uca_package_utf8mb3[0] ) { v6 = my_uca_package_no_contractions_utf8mb3; } else if ( v5 == my_uca_package_utf8mb3[1] ) { v6 = &my_uca_package_no_contractions_utf8mb3[1]; } else if ( v5 == my_uca_package_utf8mb3[2] ) { v6 = &my_uca_package_no_contractions_utf8mb3[2]; } else { if ( v5 != my_uca_package_utf8mb3[3] ) return 0; v6 = &my_uca_package_no_contractions_utf8mb3[3]; } *(_QWORD *)(a1 + 192) = *v6; return 0; } return result; }
my_uca_coll_init_utf8mb3: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RBX,RDI CALL 0x001b833c MOV ECX,EAX MOV AL,0x1 TEST CL,CL JNZ 0x001ba250 MOVZX ECX,byte ptr [RBX + 0xb2] TEST RCX,RCX JZ 0x001ba1ff MOV RAX,qword ptr [RBX + 0x60] IMUL RCX,RCX,0x38 XOR EDX,EDX LAB_001ba1ee: CMP qword ptr [RAX + RDX*0x1 + 0x18],0x0 JNZ 0x001ba24e ADD RDX,0x38 CMP RCX,RDX JNZ 0x001ba1ee LAB_001ba1ff: MOV RCX,qword ptr [RBX + 0xc0] LEA RDX,[0x4b6d80] CMP RCX,qword ptr [RDX] JZ 0x001ba231 LEA RAX,[0x4b6da0] CMP RCX,qword ptr [RDX + 0x8] JZ 0x001ba23a CMP RCX,qword ptr [RDX + 0x10] JZ 0x001ba240 CMP RCX,qword ptr [RDX + 0x18] JNZ 0x001ba24e ADD RAX,0x18 JMP 0x001ba244 LAB_001ba231: LEA RAX,[0x4b6da0] JMP 0x001ba244 LAB_001ba23a: ADD RAX,0x8 JMP 0x001ba244 LAB_001ba240: ADD RAX,0x10 LAB_001ba244: MOV RAX,qword ptr [RAX] MOV qword ptr [RBX + 0xc0],RAX LAB_001ba24e: XOR EAX,EAX LAB_001ba250: ADD RSP,0x8 POP RBX POP RBP RET
int8 my_uca_coll_init_utf8mb3(long param_1) { int *puVar1; char cVar2; int **ppuVar3; long lVar4; cVar2 = my_coll_init_uca(); if (cVar2 != '\0') { return 1; } if ((ulong)*(byte *)(param_1 + 0xb2) != 0) { lVar4 = 0; do { if (*(long *)(*(long *)(param_1 + 0x60) + 0x18 + lVar4) != 0) { return 0; } lVar4 = lVar4 + 0x38; } while ((ulong)*(byte *)(param_1 + 0xb2) * 0x38 - lVar4 != 0); } puVar1 = *(int **)(param_1 + 0xc0); if (puVar1 == my_uca_package_utf8mb3) { ppuVar3 = &my_uca_package_no_contractions_utf8mb3; } else if (puVar1 == PTR_my_uca_collation_handler_nopad_utf8mb3_004b6d88) { ppuVar3 = &PTR_my_uca_collation_handler_nopad_no_contractions_utf8mb3_004b6da8; } else if (puVar1 == PTR_my_uca_collation_handler_multilevel_utf8mb3_004b6d90) { ppuVar3 = &PTR_my_uca_collation_handler_multilevel_no_contractions_utf8mb3_004b6db0; } else { if (puVar1 != PTR_my_uca_collation_handler_nopad_multilevel_utf8mb3_004b6d98) { return 0; } ppuVar3 = &PTR_my_uca_collation_handler_nopad_multilevel_no_contractions_utf8mb3_004b6db8; } *(int **)(param_1 + 0xc0) = *ppuVar3; return 0; }
49,307
mysql_kill_start_internal
eloqsql/libmariadb/libmariadb/mariadb_async.c
static void mysql_kill_start_internal(void *d) { MK_ASYNC_INTERNAL_BODY( mysql_kill, (parms->mysql, parms->pid), parms->mysql, int, r_int) }
O0
c
mysql_kill_start_internal: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq 0x480(%rax), %rax movq 0x28(%rax), %rax movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rdi movq -0x10(%rbp), %rax movq 0x8(%rax), %rsi callq 0x20570 movl %eax, -0x14(%rbp) movl -0x14(%rbp), %ecx movq -0x20(%rbp), %rax movl %ecx, 0x8(%rax) movq -0x20(%rbp), %rax movl $0x0, (%rax) addq $0x20, %rsp popq %rbp retq nopl (%rax,%rax)
mysql_kill_start_internal: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov [rbp+var_10], rax mov rax, [rbp+var_10] mov rax, [rax] mov rax, [rax+480h] mov rax, [rax+28h] mov [rbp+var_20], rax mov rax, [rbp+var_10] mov rdi, [rax] mov rax, [rbp+var_10] mov rsi, [rax+8] call mysql_kill mov [rbp+var_14], eax mov ecx, [rbp+var_14] mov rax, [rbp+var_20] mov [rax+8], ecx mov rax, [rbp+var_20] mov dword ptr [rax], 0 add rsp, 20h pop rbp retn
_DWORD * mysql_kill_start_internal(long long *a1) { _DWORD *result; // rax _DWORD *v2; // [rsp+0h] [rbp-20h] v2 = *(_DWORD **)(*(_QWORD *)(*a1 + 1152) + 40LL); v2[2] = mysql_kill(*a1, a1[1]); result = v2; *v2 = 0; return result; }
mysql_kill_start_internal: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x480] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX + 0x8] CALL 0x00120570 MOV dword ptr [RBP + -0x14],EAX MOV ECX,dword ptr [RBP + -0x14] MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX + 0x8],ECX MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX],0x0 ADD RSP,0x20 POP RBP RET
void mysql_kill_start_internal(long *param_1) { int4 *puVar1; int4 uVar2; puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28); uVar2 = mysql_kill(*param_1,param_1[1]); puVar1[2] = uVar2; *puVar1 = 0; return; }
49,308
alloc_root
eloqsql/mysys/my_alloc.c
void *alloc_root(MEM_ROOT *mem_root, size_t length) { #if defined(HAVE_valgrind) && defined(EXTRA_DEBUG) reg1 USED_MEM *next; DBUG_ENTER("alloc_root"); DBUG_PRINT("enter",("root: %p", mem_root)); DBUG_ASSERT(alloc_root_inited(mem_root)); DBUG_EXECUTE_IF("simulate_out_of_memory", { if (mem_root->error_handler) (*mem_root->error_handler)(); DBUG_SET("-d,simulate_out_of_memory"); DBUG_RETURN((void*) 0); /* purecov: inspected */ }); length+=ALIGN_SIZE(sizeof(USED_MEM)); if (!(next = (USED_MEM*) my_malloc(mem_root->m_psi_key, length, MYF(MY_WME | ME_FATAL | MALLOC_FLAG(mem_root->block_size))))) { if (mem_root->error_handler) (*mem_root->error_handler)(); DBUG_RETURN((uchar*) 0); /* purecov: inspected */ } next->next= mem_root->used; next->left= 0; next->size= length; mem_root->used= next; DBUG_PRINT("exit",("ptr: %p", (((char*)next)+ALIGN_SIZE(sizeof(USED_MEM))))); DBUG_RETURN((((uchar*) next)+ALIGN_SIZE(sizeof(USED_MEM)))); #else size_t get_size, block_size; uchar* point; reg1 USED_MEM *next= 0; reg2 USED_MEM **prev; size_t original_length __attribute__((unused)) = length; DBUG_ENTER("alloc_root"); DBUG_PRINT("enter",("root: %p", mem_root)); DBUG_ASSERT(alloc_root_inited(mem_root)); DBUG_EXECUTE_IF("simulate_out_of_memory", { /* Avoid reusing an already allocated block */ if (mem_root->error_handler) (*mem_root->error_handler)(); DBUG_SET("-d,simulate_out_of_memory"); DBUG_RETURN((void*) 0); /* purecov: inspected */ }); length= ALIGN_SIZE(length) + REDZONE_SIZE; if ((*(prev= &mem_root->free)) != NULL) { if ((*prev)->left < length && mem_root->first_block_usage++ >= ALLOC_MAX_BLOCK_USAGE_BEFORE_DROP && (*prev)->left < ALLOC_MAX_BLOCK_TO_DROP) { next= *prev; *prev= next->next; /* Remove block from list */ next->next= mem_root->used; mem_root->used= next; mem_root->first_block_usage= 0; } for (next= *prev ; next && next->left < length ; next= next->next) prev= &next->next; } if (! next) { /* Time to alloc new block */ block_size= (mem_root->block_size & ~1) * (mem_root->block_num >> 2); get_size= length+ALIGN_SIZE(sizeof(USED_MEM)); get_size= MY_MAX(get_size, block_size); if (!(next = (USED_MEM*) my_malloc(mem_root->m_psi_key, get_size, MYF(MY_WME | ME_FATAL | MALLOC_FLAG(mem_root-> block_size))))) { if (mem_root->error_handler) (*mem_root->error_handler)(); DBUG_RETURN((void*) 0); /* purecov: inspected */ } mem_root->block_num++; next->next= *prev; next->size= get_size; next->left= get_size-ALIGN_SIZE(sizeof(USED_MEM)); *prev=next; TRASH_MEM(next); } point= (uchar*) ((char*) next+ (next->size-next->left)); /*TODO: next part may be unneded due to mem_root->first_block_usage counter*/ if ((next->left-= length) < mem_root->min_malloc) { /* Full block */ *prev= next->next; /* Remove block from list */ next->next= mem_root->used; mem_root->used= next; mem_root->first_block_usage= 0; } point+= REDZONE_SIZE; TRASH_ALLOC(point, original_length); DBUG_PRINT("exit",("ptr: %p", point)); DBUG_RETURN((void*) point); #endif }
O0
c
alloc_root: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq $0x0, -0x38(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x48(%rbp) jmp 0x75652 jmp 0x75654 jmp 0x75656 jmp 0x75658 jmp 0x7565a movq -0x18(%rbp), %rax addq $0x8, %rax subq $0x1, %rax andq $-0x8, %rax addq $0x0, %rax movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x40(%rbp) cmpq $0x0, (%rax) je 0x75742 movq -0x40(%rbp), %rax movq (%rax), %rax movq 0x8(%rax), %rax cmpq -0x18(%rbp), %rax jae 0x756f9 movq -0x10(%rbp), %rcx movl 0x2c(%rcx), %eax movl %eax, %edx addl $0x1, %edx movl %edx, 0x2c(%rcx) cmpl $0xa, %eax jb 0x756f9 movq -0x40(%rbp), %rax movq (%rax), %rax cmpq $0x1000, 0x8(%rax) # imm = 0x1000 jae 0x756f9 movq -0x40(%rbp), %rax movq (%rax), %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movq (%rax), %rcx movq -0x40(%rbp), %rax movq %rcx, (%rax) movq -0x10(%rbp), %rax movq 0x8(%rax), %rcx movq -0x38(%rbp), %rax movq %rcx, (%rax) movq -0x38(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x8(%rax) movq -0x10(%rbp), %rax movl $0x0, 0x2c(%rax) movq -0x40(%rbp), %rax movq (%rax), %rax movq %rax, -0x38(%rbp) xorl %eax, %eax cmpq $0x0, -0x38(%rbp) movb %al, -0x49(%rbp) je 0x75722 movq -0x38(%rbp), %rax movq 0x8(%rax), %rax cmpq -0x18(%rbp), %rax setb %al movb %al, -0x49(%rbp) movb -0x49(%rbp), %al testb $0x1, %al jne 0x7572b jmp 0x75740 movq -0x38(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x38(%rbp), %rax movq (%rax), %rax movq %rax, -0x38(%rbp) jmp 0x75704 jmp 0x75742 cmpq $0x0, -0x38(%rbp) jne 0x75845 movq -0x10(%rbp), %rax movq 0x20(%rax), %rax andq $-0x2, %rax movq -0x10(%rbp), %rcx movl 0x28(%rcx), %ecx shrl $0x2, %ecx movl %ecx, %ecx imulq %rcx, %rax movq %rax, -0x28(%rbp) movq -0x18(%rbp), %rax addq $0x18, %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax cmpq -0x28(%rbp), %rax jbe 0x7578d movq -0x20(%rbp), %rax movq %rax, -0x58(%rbp) jmp 0x75795 movq -0x28(%rbp), %rax movq %rax, -0x58(%rbp) movq -0x58(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rax movl 0x38(%rax), %edi movq -0x20(%rbp), %rsi movq -0x10(%rbp), %rax movq 0x20(%rax), %rdx andq $0x1, %rdx xorl %eax, %eax movl $0x10000, %ecx # imm = 0x10000 cmpq $0x0, %rdx cmovnel %ecx, %eax orl $0x1010, %eax # imm = 0x1010 movl %eax, %eax movl %eax, %edx callq 0x7b980 movq %rax, -0x38(%rbp) cmpq $0x0, %rax jne 0x757fb movq -0x10(%rbp), %rax cmpq $0x0, 0x30(%rax) je 0x757ec movq -0x10(%rbp), %rax callq *0x30(%rax) jmp 0x757ee movq $0x0, -0x8(%rbp) jmp 0x758cd movq -0x10(%rbp), %rax movl 0x28(%rax), %ecx addl $0x1, %ecx movl %ecx, 0x28(%rax) movq -0x40(%rbp), %rax movq (%rax), %rcx movq -0x38(%rbp), %rax movq %rcx, (%rax) movq -0x20(%rbp), %rcx movq -0x38(%rbp), %rax movq %rcx, 0x10(%rax) movq -0x20(%rbp), %rcx subq $0x18, %rcx movq -0x38(%rbp), %rax movq %rcx, 0x8(%rax) movq -0x38(%rbp), %rcx movq -0x40(%rbp), %rax movq %rcx, (%rax) jmp 0x7583f jmp 0x75841 jmp 0x75843 jmp 0x75845 movq -0x38(%rbp), %rax movq -0x38(%rbp), %rcx movq 0x10(%rcx), %rcx movq -0x38(%rbp), %rdx subq 0x8(%rdx), %rcx addq %rcx, %rax movq %rax, -0x30(%rbp) movq -0x18(%rbp), %rdx movq -0x38(%rbp), %rcx movq 0x8(%rcx), %rax subq %rdx, %rax movq %rax, 0x8(%rcx) movq -0x10(%rbp), %rcx cmpq 0x18(%rcx), %rax jae 0x758b1 movq -0x38(%rbp), %rax movq (%rax), %rcx movq -0x40(%rbp), %rax movq %rcx, (%rax) movq -0x10(%rbp), %rax movq 0x8(%rax), %rcx movq -0x38(%rbp), %rax movq %rcx, (%rax) movq -0x38(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x8(%rax) movq -0x10(%rbp), %rax movl $0x0, 0x2c(%rax) movq -0x30(%rbp), %rax movq %rax, -0x30(%rbp) jmp 0x758bb jmp 0x758bd jmp 0x758bf jmp 0x758c1 jmp 0x758c3 jmp 0x758c5 movq -0x30(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x60, %rsp popq %rbp retq nopw (%rax,%rax)
alloc_root: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_38], 0 mov rax, [rbp+var_18] mov [rbp+var_48], rax jmp short $+2 loc_75652: jmp short $+2 loc_75654: jmp short $+2 loc_75656: jmp short $+2 loc_75658: jmp short $+2 loc_7565A: mov rax, [rbp+var_18] add rax, 8 sub rax, 1 and rax, 0FFFFFFFFFFFFFFF8h add rax, 0 mov [rbp+var_18], rax mov rax, [rbp+var_10] mov [rbp+var_40], rax cmp qword ptr [rax], 0 jz loc_75742 mov rax, [rbp+var_40] mov rax, [rax] mov rax, [rax+8] cmp rax, [rbp+var_18] jnb short loc_756F9 mov rcx, [rbp+var_10] mov eax, [rcx+2Ch] mov edx, eax add edx, 1 mov [rcx+2Ch], edx cmp eax, 0Ah jb short loc_756F9 mov rax, [rbp+var_40] mov rax, [rax] cmp qword ptr [rax+8], 1000h jnb short loc_756F9 mov rax, [rbp+var_40] mov rax, [rax] mov [rbp+var_38], rax mov rax, [rbp+var_38] mov rcx, [rax] mov rax, [rbp+var_40] mov [rax], rcx mov rax, [rbp+var_10] mov rcx, [rax+8] mov rax, [rbp+var_38] mov [rax], rcx mov rcx, [rbp+var_38] mov rax, [rbp+var_10] mov [rax+8], rcx mov rax, [rbp+var_10] mov dword ptr [rax+2Ch], 0 loc_756F9: mov rax, [rbp+var_40] mov rax, [rax] mov [rbp+var_38], rax loc_75704: xor eax, eax cmp [rbp+var_38], 0 mov [rbp+var_49], al jz short loc_75722 mov rax, [rbp+var_38] mov rax, [rax+8] cmp rax, [rbp+var_18] setb al mov [rbp+var_49], al loc_75722: mov al, [rbp+var_49] test al, 1 jnz short loc_7572B jmp short loc_75740 loc_7572B: mov rax, [rbp+var_38] mov [rbp+var_40], rax mov rax, [rbp+var_38] mov rax, [rax] mov [rbp+var_38], rax jmp short loc_75704 loc_75740: jmp short $+2 loc_75742: cmp [rbp+var_38], 0 jnz loc_75845 mov rax, [rbp+var_10] mov rax, [rax+20h] and rax, 0FFFFFFFFFFFFFFFEh mov rcx, [rbp+var_10] mov ecx, [rcx+28h] shr ecx, 2 mov ecx, ecx imul rax, rcx mov [rbp+var_28], rax mov rax, [rbp+var_18] add rax, 18h mov [rbp+var_20], rax mov rax, [rbp+var_20] cmp rax, [rbp+var_28] jbe short loc_7578D mov rax, [rbp+var_20] mov [rbp+var_58], rax jmp short loc_75795 loc_7578D: mov rax, [rbp+var_28] mov [rbp+var_58], rax loc_75795: mov rax, [rbp+var_58] mov [rbp+var_20], rax mov rax, [rbp+var_10] mov edi, [rax+38h] mov rsi, [rbp+var_20] mov rax, [rbp+var_10] mov rdx, [rax+20h] and rdx, 1 xor eax, eax mov ecx, 10000h cmp rdx, 0 cmovnz eax, ecx or eax, 1010h mov eax, eax mov edx, eax call my_malloc mov [rbp+var_38], rax cmp rax, 0 jnz short loc_757FB mov rax, [rbp+var_10] cmp qword ptr [rax+30h], 0 jz short loc_757EC mov rax, [rbp+var_10] call qword ptr [rax+30h] loc_757EC: jmp short $+2 loc_757EE: mov [rbp+var_8], 0 jmp loc_758CD loc_757FB: mov rax, [rbp+var_10] mov ecx, [rax+28h] add ecx, 1 mov [rax+28h], ecx mov rax, [rbp+var_40] mov rcx, [rax] mov rax, [rbp+var_38] mov [rax], rcx mov rcx, [rbp+var_20] mov rax, [rbp+var_38] mov [rax+10h], rcx mov rcx, [rbp+var_20] sub rcx, 18h mov rax, [rbp+var_38] mov [rax+8], rcx mov rcx, [rbp+var_38] mov rax, [rbp+var_40] mov [rax], rcx jmp short $+2 loc_7583F: jmp short $+2 loc_75841: jmp short $+2 loc_75843: jmp short $+2 loc_75845: mov rax, [rbp+var_38] mov rcx, [rbp+var_38] mov rcx, [rcx+10h] mov rdx, [rbp+var_38] sub rcx, [rdx+8] add rax, rcx mov [rbp+var_30], rax mov rdx, [rbp+var_18] mov rcx, [rbp+var_38] mov rax, [rcx+8] sub rax, rdx mov [rcx+8], rax mov rcx, [rbp+var_10] cmp rax, [rcx+18h] jnb short loc_758B1 mov rax, [rbp+var_38] mov rcx, [rax] mov rax, [rbp+var_40] mov [rax], rcx mov rax, [rbp+var_10] mov rcx, [rax+8] mov rax, [rbp+var_38] mov [rax], rcx mov rcx, [rbp+var_38] mov rax, [rbp+var_10] mov [rax+8], rcx mov rax, [rbp+var_10] mov dword ptr [rax+2Ch], 0 loc_758B1: mov rax, [rbp+var_30] mov [rbp+var_30], rax jmp short $+2 loc_758BB: jmp short $+2 loc_758BD: jmp short $+2 loc_758BF: jmp short $+2 loc_758C1: jmp short $+2 loc_758C3: jmp short $+2 loc_758C5: mov rax, [rbp+var_30] mov [rbp+var_8], rax loc_758CD: mov rax, [rbp+var_8] add rsp, 60h pop rbp retn
char * alloc_root(_QWORD **a1, long long a2) { unsigned int v2; // eax long long v3; // rdi int v4; // eax unsigned long long v5; // rax unsigned long long v7; // [rsp+8h] [rbp-58h] bool v8; // [rsp+17h] [rbp-49h] _QWORD *v9; // [rsp+20h] [rbp-40h] _QWORD *i; // [rsp+28h] [rbp-38h] _QWORD *v11; // [rsp+28h] [rbp-38h] char *v12; // [rsp+30h] [rbp-30h] unsigned long long v13; // [rsp+48h] [rbp-18h] i = 0LL; v13 = (a2 + 7) & 0xFFFFFFFFFFFFFFF8LL; v9 = a1; if ( *a1 ) { if ( (*a1)[1] < v13 ) { v2 = *((_DWORD *)a1 + 11); *((_DWORD *)a1 + 11) = v2 + 1; if ( v2 >= 0xA && (*a1)[1] < 0x1000uLL ) { v11 = *a1; *a1 = (_QWORD *)**a1; *v11 = a1[1]; a1[1] = v11; *((_DWORD *)a1 + 11) = 0; } } for ( i = *a1; ; i = (_QWORD *)*i ) { v8 = 0; if ( i ) v8 = i[1] < v13; if ( !v8 ) break; v9 = i; } } if ( !i ) { if ( v13 + 24 <= (*((_DWORD *)a1 + 10) >> 2) * ((unsigned long long)a1[4] & 0xFFFFFFFFFFFFFFFELL) ) v7 = (*((_DWORD *)a1 + 10) >> 2) * ((unsigned long long)a1[4] & 0xFFFFFFFFFFFFFFFELL); else v7 = v13 + 24; v3 = *((unsigned int *)a1 + 14); v4 = 0; if ( ((unsigned long long)a1[4] & 1) != 0 ) v4 = 0x10000; i = (_QWORD *)my_malloc(v3, v7, v4 | 0x1010u); if ( !i ) { if ( a1[6] ) ((void (*)(void))a1[6])(); return 0LL; } ++*((_DWORD *)a1 + 10); *i = *v9; i[2] = v7; i[1] = v7 - 24; *v9 = i; } v12 = (char *)i + i[2] - i[1]; v5 = i[1] - v13; i[1] = v5; if ( v5 < (unsigned long long)a1[3] ) { *v9 = *i; *i = a1[1]; a1[1] = i; *((_DWORD *)a1 + 11) = 0; } return v12; }
alloc_root: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x38],0x0 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x48],RAX JMP 0x00175652 LAB_00175652: JMP 0x00175654 LAB_00175654: JMP 0x00175656 LAB_00175656: JMP 0x00175658 LAB_00175658: JMP 0x0017565a LAB_0017565a: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x8 SUB RAX,0x1 AND RAX,-0x8 ADD RAX,0x0 MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x40],RAX CMP qword ptr [RAX],0x0 JZ 0x00175742 MOV RAX,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x8] CMP RAX,qword ptr [RBP + -0x18] JNC 0x001756f9 MOV RCX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RCX + 0x2c] MOV EDX,EAX ADD EDX,0x1 MOV dword ptr [RCX + 0x2c],EDX CMP EAX,0xa JC 0x001756f9 MOV RAX,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RAX] CMP qword ptr [RAX + 0x8],0x1000 JNC 0x001756f9 MOV RAX,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x2c],0x0 LAB_001756f9: MOV RAX,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x38],RAX LAB_00175704: XOR EAX,EAX CMP qword ptr [RBP + -0x38],0x0 MOV byte ptr [RBP + -0x49],AL JZ 0x00175722 MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX + 0x8] CMP RAX,qword ptr [RBP + -0x18] SETC AL MOV byte ptr [RBP + -0x49],AL LAB_00175722: MOV AL,byte ptr [RBP + -0x49] TEST AL,0x1 JNZ 0x0017572b JMP 0x00175740 LAB_0017572b: MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x38],RAX JMP 0x00175704 LAB_00175740: JMP 0x00175742 LAB_00175742: CMP qword ptr [RBP + -0x38],0x0 JNZ 0x00175845 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x20] AND RAX,-0x2 MOV RCX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RCX + 0x28] SHR ECX,0x2 MOV ECX,ECX IMUL RAX,RCX MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x18 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [RBP + -0x28] JBE 0x0017578d MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x58],RAX JMP 0x00175795 LAB_0017578d: MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x58],RAX LAB_00175795: MOV RAX,qword ptr [RBP + -0x58] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x10] MOV EDI,dword ptr [RAX + 0x38] MOV RSI,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RAX + 0x20] AND RDX,0x1 XOR EAX,EAX MOV ECX,0x10000 CMP RDX,0x0 CMOVNZ EAX,ECX OR EAX,0x1010 MOV EAX,EAX MOV EDX,EAX CALL 0x0017b980 MOV qword ptr [RBP + -0x38],RAX CMP RAX,0x0 JNZ 0x001757fb MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX + 0x30],0x0 JZ 0x001757ec MOV RAX,qword ptr [RBP + -0x10] CALL qword ptr [RAX + 0x30] LAB_001757ec: JMP 0x001757ee LAB_001757ee: MOV qword ptr [RBP + -0x8],0x0 JMP 0x001758cd LAB_001757fb: MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RAX + 0x28] ADD ECX,0x1 MOV dword ptr [RAX + 0x28],ECX MOV RAX,qword ptr [RBP + -0x40] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0x10],RCX MOV RCX,qword ptr [RBP + -0x20] SUB RCX,0x18 MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0x8],RCX MOV RCX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RAX],RCX JMP 0x0017583f LAB_0017583f: JMP 0x00175841 LAB_00175841: JMP 0x00175843 LAB_00175843: JMP 0x00175845 LAB_00175845: MOV RAX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RCX + 0x10] MOV RDX,qword ptr [RBP + -0x38] SUB RCX,qword ptr [RDX + 0x8] ADD RAX,RCX MOV qword ptr [RBP + -0x30],RAX MOV RDX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RCX + 0x8] SUB RAX,RDX MOV qword ptr [RCX + 0x8],RAX MOV RCX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RCX + 0x18] JNC 0x001758b1 MOV RAX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x2c],0x0 LAB_001758b1: MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x30],RAX JMP 0x001758bb LAB_001758bb: JMP 0x001758bd LAB_001758bd: JMP 0x001758bf LAB_001758bf: JMP 0x001758c1 LAB_001758c1: JMP 0x001758c3 LAB_001758c3: JMP 0x001758c5 LAB_001758c5: MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x8],RAX LAB_001758cd: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x60 POP RBP RET
long alloc_root(long *param_1,long param_2) { long *plVar1; long lVar2; long lVar3; long lVar4; uint uVar5; ulong uVar6; bool bVar7; ulong local_60; long *local_48; long *local_40; local_40 = (long *)0x0; uVar6 = param_2 + 7U & 0xfffffffffffffff8; local_48 = param_1; if (*param_1 != 0) { if (((*(ulong *)(*param_1 + 8) < uVar6) && (uVar5 = *(uint *)((long)param_1 + 0x2c), *(uint *)((long)param_1 + 0x2c) = uVar5 + 1, 9 < uVar5)) && (*(ulong *)(*param_1 + 8) < 0x1000)) { plVar1 = (long *)*param_1; *param_1 = *plVar1; *plVar1 = param_1[1]; param_1[1] = (long)plVar1; *(int4 *)((long)param_1 + 0x2c) = 0; } local_40 = (long *)*param_1; while( true ) { bVar7 = false; if (local_40 != (long *)0x0) { bVar7 = (ulong)local_40[1] < uVar6; } if (!bVar7) break; local_48 = local_40; local_40 = (long *)*local_40; } } if (local_40 == (long *)0x0) { local_60 = (param_1[4] & 0xfffffffffffffffeU) * (ulong)(*(uint *)(param_1 + 5) >> 2); if (local_60 < uVar6 + 0x18) { local_60 = uVar6 + 0x18; } uVar5 = 0; if ((param_1[4] & 1U) != 0) { uVar5 = 0x10000; } local_40 = (long *)my_malloc((int)param_1[7],local_60,uVar5 | 0x1010); if (local_40 == (long *)0x0) { if (param_1[6] != 0) { (*(code *)param_1[6])(); } return 0; } *(int *)(param_1 + 5) = (int)param_1[5] + 1; *local_40 = *local_48; local_40[2] = local_60; local_40[1] = local_60 - 0x18; *local_48 = (long)local_40; } lVar2 = local_40[2]; lVar3 = local_40[1]; lVar4 = local_40[1]; local_40[1] = lVar4 - uVar6; if (lVar4 - uVar6 < (ulong)param_1[3]) { *local_48 = *local_40; *local_40 = param_1[1]; param_1[1] = (long)local_40; *(int4 *)((long)param_1 + 0x2c) = 0; } return (long)local_40 + (lVar2 - lVar3); }
49,309
stmt_buffered_fetch
eloqsql/libmariadb/libmariadb/mariadb_stmt.c
static int stmt_buffered_fetch(MYSQL_STMT *stmt, uchar **row) { if (!stmt->result_cursor) { *row= NULL; stmt->state= MYSQL_STMT_FETCH_DONE; return MYSQL_NO_DATA; } stmt->state= MYSQL_STMT_USER_FETCHING; *row= (uchar *)stmt->result_cursor->data; stmt->result_cursor= stmt->result_cursor->next; return 0; }
O3
c
stmt_buffered_fetch: movq 0xe0(%rdi), %rax testq %rax, %rax je 0x2133f pushq %rbp movq %rsp, %rbp movl $0x5, 0x50(%rdi) movq 0x8(%rax), %rax movq %rax, (%rsi) movq 0xe0(%rdi), %rax movq (%rax), %rax movq %rax, 0xe0(%rdi) xorl %eax, %eax popq %rbp retq movq $0x0, (%rsi) movl $0x6, 0x50(%rdi) movl $0x64, %eax retq
stmt_buffered_fetch: mov rax, [rdi+0E0h] test rax, rax jz short loc_2133F push rbp mov rbp, rsp mov dword ptr [rdi+50h], 5 mov rax, [rax+8] mov [rsi], rax mov rax, [rdi+0E0h] mov rax, [rax] mov [rdi+0E0h], rax xor eax, eax pop rbp retn loc_2133F: mov qword ptr [rsi], 0 mov dword ptr [rdi+50h], 6 mov eax, 64h ; 'd' retn
long long stmt_buffered_fetch(long long a1, _QWORD *a2) { long long v2; // rax v2 = *(_QWORD *)(a1 + 224); if ( v2 ) { *(_DWORD *)(a1 + 80) = 5; *a2 = *(_QWORD *)(v2 + 8); *(_QWORD *)(a1 + 224) = **(_QWORD **)(a1 + 224); return 0LL; } else { *a2 = 0LL; *(_DWORD *)(a1 + 80) = 6; return 100LL; } }
stmt_buffered_fetch: MOV RAX,qword ptr [RDI + 0xe0] TEST RAX,RAX JZ 0x0012133f PUSH RBP MOV RBP,RSP MOV dword ptr [RDI + 0x50],0x5 MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RSI],RAX MOV RAX,qword ptr [RDI + 0xe0] MOV RAX,qword ptr [RAX] MOV qword ptr [RDI + 0xe0],RAX XOR EAX,EAX POP RBP RET LAB_0012133f: MOV qword ptr [RSI],0x0 MOV dword ptr [RDI + 0x50],0x6 MOV EAX,0x64 RET
int8 stmt_buffered_fetch(long param_1,int8 *param_2) { if (*(long *)(param_1 + 0xe0) != 0) { *(int4 *)(param_1 + 0x50) = 5; *param_2 = *(int8 *)(*(long *)(param_1 + 0xe0) + 8); *(int8 *)(param_1 + 0xe0) = **(int8 **)(param_1 + 0xe0); return 0; } *param_2 = 0; *(int4 *)(param_1 + 0x50) = 6; return 100; }
49,310
handler::ha_rnd_init(bool)
eloqsql/sql/handler.h
int ha_rnd_init(bool scan) __attribute__ ((warn_unused_result)) { DBUG_EXECUTE_IF("ha_rnd_init_fail", return HA_ERR_TABLE_DEF_CHANGED;); int result; DBUG_ENTER("ha_rnd_init"); DBUG_ASSERT(inited==NONE || (inited==RND && scan)); inited= (result= rnd_init(scan)) ? NONE: RND; end_range= NULL; DBUG_RETURN(result); }
O0
c
handler::ha_rnd_init(bool): pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movb %sil, %al movq %rdi, -0x8(%rbp) andb $0x1, %al movb %al, -0x9(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) jmp 0xe05e jmp 0xe060 jmp 0xe062 movq -0x18(%rbp), %rdi movb -0x9(%rbp), %cl movq (%rdi), %rax andb $0x1, %cl movzbl %cl, %esi callq *0x4e0(%rax) movl %eax, %esi movq -0x18(%rbp), %rax movl %esi, -0x10(%rbp) movl $0x2, %ecx xorl %edx, %edx cmpl $0x0, %esi cmovnel %edx, %ecx movl %ecx, 0x1b0(%rax) movq $0x0, 0x170(%rax) movl -0x10(%rbp), %eax addq $0x20, %rsp popq %rbp retq nopl (%rax,%rax)
_ZN7handler11ha_rnd_initEb: push rbp mov rbp, rsp sub rsp, 20h mov al, sil mov [rbp+var_8], rdi and al, 1 mov [rbp+var_9], al mov rax, [rbp+var_8] mov [rbp+var_18], rax jmp short $+2 loc_E05E: jmp short $+2 loc_E060: jmp short $+2 loc_E062: mov rdi, [rbp+var_18] mov cl, [rbp+var_9] mov rax, [rdi] and cl, 1 movzx esi, cl call qword ptr [rax+4E0h] mov esi, eax mov rax, [rbp+var_18] mov [rbp+var_10], esi mov ecx, 2 xor edx, edx cmp esi, 0 cmovnz ecx, edx mov [rax+1B0h], ecx mov qword ptr [rax+170h], 0 mov eax, [rbp+var_10] add rsp, 20h pop rbp retn
long long handler::ha_rnd_init(handler *this, char a2) { unsigned int v2; // esi int v3; // ecx v2 = (*(long long ( **)(handler *, _QWORD))(*(_QWORD *)this + 1248LL))(this, a2 & 1); v3 = 2; if ( v2 ) v3 = 0; *((_DWORD *)this + 108) = v3; *((_QWORD *)this + 46) = 0LL; return v2; }
ha_rnd_init: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV AL,SIL MOV qword ptr [RBP + -0x8],RDI AND AL,0x1 MOV byte ptr [RBP + -0x9],AL MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x18],RAX JMP 0x0010e05e LAB_0010e05e: JMP 0x0010e060 LAB_0010e060: JMP 0x0010e062 LAB_0010e062: MOV RDI,qword ptr [RBP + -0x18] MOV CL,byte ptr [RBP + -0x9] MOV RAX,qword ptr [RDI] AND CL,0x1 MOVZX ESI,CL CALL qword ptr [RAX + 0x4e0] MOV ESI,EAX MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RBP + -0x10],ESI MOV ECX,0x2 XOR EDX,EDX CMP ESI,0x0 CMOVNZ ECX,EDX MOV dword ptr [RAX + 0x1b0],ECX MOV qword ptr [RAX + 0x170],0x0 MOV EAX,dword ptr [RBP + -0x10] ADD RSP,0x20 POP RBP RET
/* handler::ha_rnd_init(bool) */ int handler::ha_rnd_init(bool param_1) { int iVar1; int4 uVar2; int8 in_RCX; int8 in_RDX; byte in_SIL; int7 in_register_00000039; long *plVar3; plVar3 = (long *)CONCAT71(in_register_00000039,param_1); iVar1 = (**(code **)(*plVar3 + 0x4e0)) (plVar3,in_SIL & 1,in_RDX, CONCAT71((int7)((ulong)in_RCX >> 8),in_SIL) & 0xffffffffffffff01); uVar2 = 2; if (iVar1 != 0) { uVar2 = 0; } *(int4 *)(plVar3 + 0x36) = uVar2; plVar3[0x2e] = 0; return iVar1; }
49,311
reciprocal_fp2
corpus-core[P]colibri-stateless/build_O1/_deps/blst-src/src/recip.c
static void reciprocal_fp2(vec384x out, const vec384x inp) { vec384 t0, t1; /* * |out| = 1/(a + b*i) = a/(a^2+b^2) - b/(a^2+b^2)*i */ sqr_fp(t0, inp[0]); sqr_fp(t1, inp[1]); add_fp(t0, t0, t1); reciprocal_fp(t1, t0); mul_fp(out[0], inp[0], t1); mul_fp(out[1], inp[1], t1); neg_fp(out[1], out[1]); }
O1
c
reciprocal_fp2: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x68, %rsp movq %rsi, %r12 movq %rdi, %rbx leaq 0x1d6c1(%rip), %rdx # 0x3fb20 leaq -0x90(%rbp), %r14 movabsq $-0x760c000300030003, %rcx # imm = 0x89F3FFFCFFFCFFFD movq %r14, %rdi callq 0x34460 leaq 0x30(%r12), %r13 leaq -0x60(%rbp), %r15 movq %r15, %rdi movq %r13, %rsi leaq 0x1d692(%rip), %rdx # 0x3fb20 movabsq $-0x760c000300030003, %rcx # imm = 0x89F3FFFCFFFCFFFD callq 0x34460 movq %r14, %rdi movq %r14, %rsi movq %r15, %rdx leaq 0x1d673(%rip), %rcx # 0x3fb20 callq 0x2f380 movq %r15, %rdi movq %r14, %rsi callq 0x2233a movq %rbx, %rdi movq %r12, %rsi movq %r15, %rdx leaq 0x1d653(%rip), %rcx # 0x3fb20 movabsq $-0x760c000300030003, %r12 # imm = 0x89F3FFFCFFFCFFFD movq %r12, %r8 callq 0x34be0 addq $0x30, %rbx movq %rbx, %rdi movq %r13, %rsi movq %r15, %rdx leaq 0x1d62d(%rip), %rcx # 0x3fb20 movq %rcx, %r14 movq %r12, %r8 callq 0x34be0 movl $0x1, %edx movq %rbx, %rdi movq %rbx, %rsi movq %r14, %rcx callq 0x2fa00 addq $0x68, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
reciprocal_fp2: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 68h mov r12, rsi mov rbx, rdi lea rdx, BLS12_381_P lea r14, [rbp+var_90] mov rcx, 89F3FFFCFFFCFFFDh mov rdi, r14 call sqr_mont_384 lea r13, [r12+30h] lea r15, [rbp+var_60] mov rdi, r15 mov rsi, r13 lea rdx, BLS12_381_P mov rcx, 89F3FFFCFFFCFFFDh call sqr_mont_384 mov rdi, r14 mov rsi, r14 mov rdx, r15 lea rcx, BLS12_381_P call add_mod_384 mov rdi, r15 mov rsi, r14 call reciprocal_fp mov rdi, rbx mov rsi, r12 mov rdx, r15 lea rcx, BLS12_381_P mov r12, 89F3FFFCFFFCFFFDh mov r8, r12 call mul_mont_384 add rbx, 30h ; '0' mov rdi, rbx mov rsi, r13 mov rdx, r15 lea rcx, BLS12_381_P mov r14, rcx mov r8, r12 call mul_mont_384 mov edx, 1 mov rdi, rbx mov rsi, rbx mov rcx, r14 call cneg_mod_384 add rsp, 68h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long reciprocal_fp2(long long a1, long long a2) { _BYTE v3[48]; // [rsp+0h] [rbp-90h] BYREF _OWORD v4[6]; // [rsp+30h] [rbp-60h] BYREF sqr_mont_384(v3, a2, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL); sqr_mont_384(v4, a2 + 48, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL); add_mod_384(v3, v3, v4, &BLS12_381_P); reciprocal_fp(v4, (long long)v3); mul_mont_384(a1, a2, v4, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL); mul_mont_384(a1 + 48, a2 + 48, v4, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL); return cneg_mod_384(a1 + 48, a1 + 48, 1LL, &BLS12_381_P); }
reciprocal_fp2: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x68 MOV R12,RSI MOV RBX,RDI LEA RDX,[0x13fb20] LEA R14,[RBP + -0x90] MOV RCX,-0x760c000300030003 MOV RDI,R14 CALL 0x00134460 LEA R13,[R12 + 0x30] LEA R15,[RBP + -0x60] MOV RDI,R15 MOV RSI,R13 LEA RDX,[0x13fb20] MOV RCX,-0x760c000300030003 CALL 0x00134460 MOV RDI,R14 MOV RSI,R14 MOV RDX,R15 LEA RCX,[0x13fb20] CALL 0x0012f380 MOV RDI,R15 MOV RSI,R14 CALL 0x0012233a MOV RDI,RBX MOV RSI,R12 MOV RDX,R15 LEA RCX,[0x13fb20] MOV R12,-0x760c000300030003 MOV R8,R12 CALL 0x00134be0 ADD RBX,0x30 MOV RDI,RBX MOV RSI,R13 MOV RDX,R15 LEA RCX,[0x13fb20] MOV R14,RCX MOV R8,R12 CALL 0x00134be0 MOV EDX,0x1 MOV RDI,RBX MOV RSI,RBX MOV RCX,R14 CALL 0x0012fa00 ADD RSP,0x68 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void reciprocal_fp2(long param_1,long param_2) { int1 local_98 [48]; int1 local_68 [56]; sqr_mont_384(local_98,param_2,BLS12_381_P,0x89f3fffcfffcfffd); sqr_mont_384(local_68,param_2 + 0x30,BLS12_381_P,0x89f3fffcfffcfffd); add_mod_384(local_98,local_98,local_68,BLS12_381_P); reciprocal_fp(local_68,local_98); mul_mont_384(param_1,param_2,local_68,BLS12_381_P,0x89f3fffcfffcfffd); param_1 = param_1 + 0x30; mul_mont_384(param_1,param_2 + 0x30,local_68,BLS12_381_P,0x89f3fffcfffcfffd); cneg_mod_384(param_1,param_1,1,BLS12_381_P); return; }
49,312
ftxui::Color::Color(unsigned char, unsigned char, unsigned char)
Andrewchistyakov[P]flashcards_lyc/build_O1/_deps/ftxui-src/src/ftxui/screen/color.cpp
Color::Color(uint8_t red, uint8_t green, uint8_t blue) : type_(ColorType::TrueColor), red_(red), green_(green), blue_(blue) { if (Terminal::ColorSupport() == Terminal::Color::TrueColor) { return; } // Find the closest Color from the database: const int max_distance = 256 * 256 * 3; int closest = max_distance; int best = 0; const int database_begin = 16; const int database_end = 256; for (int i = database_begin; i < database_end; ++i) { const ColorInfo color_info = GetColorInfo(Color::Palette256(i)); const int dr = color_info.red - red; const int dg = color_info.green - green; const int db = color_info.blue - blue; const int dist = dr * dr + dg * dg + db * db; if (closest > dist) { closest = dist; best = i; } } if (Terminal::ColorSupport() == Terminal::Color::Palette256) { type_ = ColorType::Palette256; red_ = best; } else { type_ = ColorType::Palette16; red_ = GetColorInfo(Color::Palette256(best)).index_16; } }
O1
cpp
ftxui::Color::Color(unsigned char, unsigned char, unsigned char): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %ecx, %ebp movl %edx, %r14d movl %esi, %r15d movq %rdi, %rbx movb $0x3, (%rdi) movb %r15b, 0x1(%rdi) movb %r14b, 0x2(%rdi) movb %bpl, 0x3(%rdi) callq 0x21191 cmpl $0x3, %eax je 0x20d7f movq %rbx, 0x10(%rsp) movzbl %r15b, %eax movl %eax, 0xc(%rsp) movzbl %r14b, %r12d movzbl %bpl, %ebp movl $0x10, %r13d xorl %r14d, %r14d movl $0x30000, %r15d # imm = 0x30000 movl $0xff, %ebx movl %r13d, %edi andl %ebx, %edi callq 0x210fc movl %edx, %eax shrl $0x10, %eax andl %ebx, %eax subl 0xc(%rsp), %eax movl %edx, %ecx shrl $0x18, %ecx subl %r12d, %ecx shrq $0x20, %rdx andl %ebx, %edx subl %ebp, %edx imull %eax, %eax imull %ecx, %ecx addl %eax, %ecx imull %edx, %edx addl %ecx, %edx cmpl %edx, %r15d cmovgl %r13d, %r14d cmovll %r15d, %edx incl %r13d movl %edx, %r15d cmpl $0x100, %r13d # imm = 0x100 jne 0x20d03 callq 0x21191 cmpl $0x2, %eax jne 0x20d63 movq 0x10(%rsp), %rbx movb $0x2, (%rbx) jmp 0x20d7b movq 0x10(%rsp), %rbx movb $0x1, (%rbx) movzbl %r14b, %edi callq 0x210fc movq %rdx, %r14 shrl $0x8, %r14d movb %r14b, 0x1(%rbx) addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZN5ftxui5ColorC2Ehhh: push rbp; Alternative name is 'ftxui::Color::Color(unsigned char, unsigned char, unsigned char)' push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov ebp, ecx mov r14d, edx mov r15d, esi mov rbx, rdi mov byte ptr [rdi], 3 mov [rdi+1], r15b mov [rdi+2], r14b mov [rdi+3], bpl call _ZN5ftxui8Terminal12ColorSupportEv; ftxui::Terminal::ColorSupport(void) cmp eax, 3 jz loc_20D7F mov [rsp+48h+var_38], rbx movzx eax, r15b mov [rsp+48h+var_3C], eax movzx r12d, r14b movzx ebp, bpl mov r13d, 10h xor r14d, r14d mov r15d, offset loc_30000 mov ebx, 0FFh loc_20D03: mov edi, r13d and edi, ebx; this call _ZN5ftxui12GetColorInfoENS_5Color10Palette256E; ftxui::GetColorInfo(ftxui::Color::Palette256) mov eax, edx shr eax, 10h and eax, ebx sub eax, [rsp+48h+var_3C] mov ecx, edx shr ecx, 18h sub ecx, r12d shr rdx, 20h and edx, ebx sub edx, ebp imul eax, eax imul ecx, ecx add ecx, eax imul edx, edx add edx, ecx cmp r15d, edx cmovg r14d, r13d cmovl edx, r15d inc r13d mov r15d, edx cmp r13d, 100h jnz short loc_20D03 call _ZN5ftxui8Terminal12ColorSupportEv; ftxui::Terminal::ColorSupport(void) cmp eax, 2 jnz short loc_20D63 mov rbx, [rsp+48h+var_38] mov byte ptr [rbx], 2 jmp short loc_20D7B loc_20D63: mov rbx, [rsp+48h+var_38] mov byte ptr [rbx], 1 movzx edi, r14b call _ZN5ftxui12GetColorInfoENS_5Color10Palette256E; ftxui::GetColorInfo(ftxui::Color::Palette256) mov r14, rdx shr r14d, 8 loc_20D7B: mov [rbx+1], r14b loc_20D7F: add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long ftxui::Color::Color(ftxui::Color *this, unsigned __int8 a2, unsigned __int8 a3, unsigned __int8 a4) { long long result; // rax int v7; // r12d int v8; // r13d unsigned int v9; // r14d void *v10; // r15 ftxui::Terminal *v11; // rdi unsigned int v12; // edx unsigned __int8 v13; // rdx^4 int v14; // edx unsigned int v15; // edx *(_BYTE *)this = 3; *((_BYTE *)this + 1) = a2; *((_BYTE *)this + 2) = a3; *((_BYTE *)this + 3) = a4; result = ftxui::Terminal::ColorSupport(this); if ( (_DWORD)result != 3 ) { v7 = a3; v8 = 16; LOBYTE(v9) = 0; v10 = &loc_30000; do { v11 = (ftxui::Terminal *)(unsigned __int8)v8; ftxui::GetColorInfo((unsigned __int8)v8); v14 = (BYTE2(v12) - a2) * (BYTE2(v12) - a2) + (HIBYTE(v12) - v7) * (HIBYTE(v12) - v7) + (v13 - a4) * (v13 - a4); if ( (int)v10 > v14 ) LOBYTE(v9) = v8; if ( (int)v10 < v14 ) v14 = (int)v10; ++v8; LODWORD(v10) = v14; } while ( v8 != 256 ); result = ftxui::Terminal::ColorSupport(v11); if ( (_DWORD)result == 2 ) { *(_BYTE *)this = 2; } else { *(_BYTE *)this = 1; result = ftxui::GetColorInfo((unsigned __int8)v9); v9 = v15 >> 8; } *((_BYTE *)this + 1) = v9; } return result; }
Color: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV EBP,ECX MOV R14D,EDX MOV R15D,ESI MOV RBX,RDI MOV byte ptr [RDI],0x3 MOV byte ptr [RDI + 0x1],R15B MOV byte ptr [RDI + 0x2],R14B MOV byte ptr [RDI + 0x3],BPL CALL 0x00121191 CMP EAX,0x3 JZ 0x00120d7f MOV qword ptr [RSP + 0x10],RBX MOVZX EAX,R15B MOV dword ptr [RSP + 0xc],EAX MOVZX R12D,R14B MOVZX EBP,BPL MOV R13D,0x10 XOR R14D,R14D MOV R15D,0x30000 MOV EBX,0xff LAB_00120d03: MOV EDI,R13D AND EDI,EBX CALL 0x001210fc MOV EAX,EDX SHR EAX,0x10 AND EAX,EBX SUB EAX,dword ptr [RSP + 0xc] MOV ECX,EDX SHR ECX,0x18 SUB ECX,R12D SHR RDX,0x20 AND EDX,EBX SUB EDX,EBP IMUL EAX,EAX IMUL ECX,ECX ADD ECX,EAX IMUL EDX,EDX ADD EDX,ECX CMP R15D,EDX CMOVG R14D,R13D CMOVL EDX,R15D INC R13D MOV R15D,EDX CMP R13D,0x100 JNZ 0x00120d03 CALL 0x00121191 CMP EAX,0x2 JNZ 0x00120d63 MOV RBX,qword ptr [RSP + 0x10] MOV byte ptr [RBX],0x2 JMP 0x00120d7b LAB_00120d63: MOV RBX,qword ptr [RSP + 0x10] MOV byte ptr [RBX],0x1 MOVZX EDI,R14B CALL 0x001210fc MOV R14,RDX SHR R14D,0x8 LAB_00120d7b: MOV byte ptr [RBX + 0x1],R14B LAB_00120d7f: ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* ftxui::Color::Color(unsigned char, unsigned char, unsigned char) */ void __thiscall ftxui::Color::Color(Color *this,uchar param_1,uchar param_2,uchar param_3) { int iVar1; int iVar2; int iVar3; int iVar4; Color extraout_DH; int8 extraout_RDX; uint uVar5; Color CVar6; uint uVar7; *this = (Color)0x3; this[1] = (Color)param_1; this[2] = (Color)param_2; this[3] = (Color)param_3; iVar1 = Terminal::ColorSupport(); if (iVar1 != 3) { uVar5 = 0x10; uVar7 = 0; iVar1 = 0x30000; do { GetColorInfo(uVar5 & 0xff); iVar2 = ((uint)((ulong)extraout_RDX >> 0x10) & 0xff) - (uint)param_1; iVar3 = ((uint)((ulong)extraout_RDX >> 0x18) & 0xff) - (uint)param_2; iVar4 = ((uint)((ulong)extraout_RDX >> 0x20) & 0xff) - (uint)param_3; iVar2 = iVar4 * iVar4 + iVar3 * iVar3 + iVar2 * iVar2; if (iVar2 < iVar1) { uVar7 = uVar5; } CVar6 = SUB41(uVar7,0); if (iVar1 < iVar2) { iVar2 = iVar1; } iVar1 = iVar2; uVar5 = uVar5 + 1; } while (uVar5 != 0x100); iVar1 = Terminal::ColorSupport(); if (iVar1 == 2) { *this = (Color)0x2; } else { *this = (Color)0x1; GetColorInfo(uVar7 & 0xff); CVar6 = extraout_DH; } this[1] = CVar6; } return; }
49,313
change_partitioned_key_cache_param
eloqsql/mysys/mf_keycache.c
static void change_partitioned_key_cache_param(PARTITIONED_KEY_CACHE_CB *keycache, uint division_limit, uint age_threshold) { uint i; uint partitions= keycache->partitions; DBUG_ENTER("partitioned_change_key_cache_param"); for (i= 0; i < partitions; i++) { change_simple_key_cache_param(keycache->partition_array[i], division_limit, age_threshold); } DBUG_VOID_RETURN; }
O0
c
change_partitioned_key_cache_param: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movq -0x8(%rbp), %rax movl 0x1c(%rax), %eax movl %eax, -0x18(%rbp) movl $0x0, -0x14(%rbp) movl -0x14(%rbp), %eax cmpl -0x18(%rbp), %eax jae 0xed0e0 movq -0x8(%rbp), %rax movq 0x8(%rax), %rax movl -0x14(%rbp), %ecx movq (%rax,%rcx,8), %rdi movl -0xc(%rbp), %esi movl -0x10(%rbp), %edx callq 0xeb0b0 movl -0x14(%rbp), %eax addl $0x1, %eax movl %eax, -0x14(%rbp) jmp 0xed0b3 jmp 0xed0e2 jmp 0xed0e4 addq $0x20, %rsp popq %rbp retq nopw (%rax,%rax)
change_partitioned_key_cache_param: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_10], edx mov rax, [rbp+var_8] mov eax, [rax+1Ch] mov [rbp+var_18], eax mov [rbp+var_14], 0 loc_ED0B3: mov eax, [rbp+var_14] cmp eax, [rbp+var_18] jnb short loc_ED0E0 mov rax, [rbp+var_8] mov rax, [rax+8] mov ecx, [rbp+var_14] mov rdi, [rax+rcx*8] mov esi, [rbp+var_C] mov edx, [rbp+var_10] call change_simple_key_cache_param mov eax, [rbp+var_14] add eax, 1 mov [rbp+var_14], eax jmp short loc_ED0B3 loc_ED0E0: jmp short $+2 loc_ED0E2: jmp short $+2 loc_ED0E4: add rsp, 20h pop rbp retn
long long change_partitioned_key_cache_param(long long a1, int a2, int a3) { long long result; // rax unsigned int v4; // [rsp+8h] [rbp-18h] unsigned int i; // [rsp+Ch] [rbp-14h] v4 = *(_DWORD *)(a1 + 28); for ( i = 0; ; ++i ) { result = i; if ( i >= v4 ) break; change_simple_key_cache_param(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL * i), a2, a3); } return result; }
change_partitioned_key_cache_param: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV dword ptr [RBP + -0x10],EDX MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x1c] MOV dword ptr [RBP + -0x18],EAX MOV dword ptr [RBP + -0x14],0x0 LAB_001ed0b3: MOV EAX,dword ptr [RBP + -0x14] CMP EAX,dword ptr [RBP + -0x18] JNC 0x001ed0e0 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x8] MOV ECX,dword ptr [RBP + -0x14] MOV RDI,qword ptr [RAX + RCX*0x8] MOV ESI,dword ptr [RBP + -0xc] MOV EDX,dword ptr [RBP + -0x10] CALL 0x001eb0b0 MOV EAX,dword ptr [RBP + -0x14] ADD EAX,0x1 MOV dword ptr [RBP + -0x14],EAX JMP 0x001ed0b3 LAB_001ed0e0: JMP 0x001ed0e2 LAB_001ed0e2: JMP 0x001ed0e4 LAB_001ed0e4: ADD RSP,0x20 POP RBP RET
void change_partitioned_key_cache_param(long param_1,int4 param_2,int4 param_3) { uint uVar1; int4 local_1c; uVar1 = *(uint *)(param_1 + 0x1c); for (local_1c = 0; local_1c < uVar1; local_1c = local_1c + 1) { change_simple_key_cache_param (*(int8 *)(*(long *)(param_1 + 8) + (ulong)local_1c * 8),param_2,param_3); } return; }
49,314
LefDefParser::defiNonDefault::addVia(char const*)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiNonDefault.cpp
void defiNonDefault::addVia(const char* name) { if (numVias_ == viasAllocated_) { int i; char** vn; if (viasAllocated_ == 0) viasAllocated_ = 2; else viasAllocated_ *= 2; vn = (char**)malloc(sizeof(char*)* viasAllocated_); for (i = 0; i < numVias_; i++) { vn[i] = viaNames_[i]; } free((char*)(viaNames_)); viaNames_ = vn; } viaNames_[numVias_] = (char*)malloc(strlen(name)+1); strcpy(viaNames_[numVias_], defData->DEFCASE(name)); numVias_ += 1; }
O0
cpp
LefDefParser::defiNonDefault::addVia(char const*): subq $0x38, %rsp movq %rdi, 0x30(%rsp) movq %rsi, 0x28(%rsp) movq 0x30(%rsp), %rcx movq %rcx, 0x10(%rsp) movl 0x58(%rcx), %eax cmpl 0x5c(%rcx), %eax jne 0x44850 movq 0x10(%rsp), %rax cmpl $0x0, 0x5c(%rax) jne 0x447cd movq 0x10(%rsp), %rax movl $0x2, 0x5c(%rax) jmp 0x447da movq 0x10(%rsp), %rax movl 0x5c(%rax), %ecx shll %ecx movl %ecx, 0x5c(%rax) movq 0x10(%rsp), %rax movslq 0x5c(%rax), %rdi shlq $0x3, %rdi callq 0x72d0 movq %rax, 0x18(%rsp) movl $0x0, 0x24(%rsp) movq 0x10(%rsp), %rcx movl 0x24(%rsp), %eax cmpl 0x58(%rcx), %eax jge 0x44834 movq 0x10(%rsp), %rax movq 0x60(%rax), %rax movslq 0x24(%rsp), %rcx movq (%rax,%rcx,8), %rdx movq 0x18(%rsp), %rax movslq 0x24(%rsp), %rcx movq %rdx, (%rax,%rcx,8) movl 0x24(%rsp), %eax addl $0x1, %eax movl %eax, 0x24(%rsp) jmp 0x447f9 movq 0x10(%rsp), %rax movq 0x60(%rax), %rdi callq 0x72a0 movq 0x10(%rsp), %rax movq 0x18(%rsp), %rcx movq %rcx, 0x60(%rax) movq 0x28(%rsp), %rdi callq 0x70e0 movq %rax, %rdi addq $0x1, %rdi callq 0x72d0 movq %rax, %rsi movq 0x10(%rsp), %rax movq 0x60(%rax), %rcx movslq 0x58(%rax), %rdx movq %rsi, (%rcx,%rdx,8) movq 0x60(%rax), %rcx movslq 0x58(%rax), %rdx movq (%rcx,%rdx,8), %rcx movq %rcx, 0x8(%rsp) movq 0xb8(%rax), %rdi movq 0x28(%rsp), %rsi callq 0x250b0 movq 0x8(%rsp), %rdi movq %rax, %rsi callq 0x7220 movq 0x10(%rsp), %rax movl 0x58(%rax), %ecx addl $0x1, %ecx movl %ecx, 0x58(%rax) addq $0x38, %rsp retq nopl (%rax)
_ZN12LefDefParser14defiNonDefault6addViaEPKc: sub rsp, 38h mov [rsp+38h+var_8], rdi mov [rsp+38h+var_10], rsi mov rcx, [rsp+38h+var_8] mov [rsp+38h+var_28], rcx mov eax, [rcx+58h] cmp eax, [rcx+5Ch] jnz loc_44850 mov rax, [rsp+38h+var_28] cmp dword ptr [rax+5Ch], 0 jnz short loc_447CD mov rax, [rsp+38h+var_28] mov dword ptr [rax+5Ch], 2 jmp short loc_447DA loc_447CD: mov rax, [rsp+38h+var_28] mov ecx, [rax+5Ch] shl ecx, 1 mov [rax+5Ch], ecx loc_447DA: mov rax, [rsp+38h+var_28] movsxd rdi, dword ptr [rax+5Ch] shl rdi, 3 call _malloc mov [rsp+38h+var_20], rax mov [rsp+38h+var_14], 0 loc_447F9: mov rcx, [rsp+38h+var_28] mov eax, [rsp+38h+var_14] cmp eax, [rcx+58h] jge short loc_44834 mov rax, [rsp+38h+var_28] mov rax, [rax+60h] movsxd rcx, [rsp+38h+var_14] mov rdx, [rax+rcx*8] mov rax, [rsp+38h+var_20] movsxd rcx, [rsp+38h+var_14] mov [rax+rcx*8], rdx mov eax, [rsp+38h+var_14] add eax, 1 mov [rsp+38h+var_14], eax jmp short loc_447F9 loc_44834: mov rax, [rsp+38h+var_28] mov rdi, [rax+60h] call _free mov rax, [rsp+38h+var_28] mov rcx, [rsp+38h+var_20] mov [rax+60h], rcx loc_44850: mov rdi, [rsp+38h+var_10] call _strlen mov rdi, rax add rdi, 1 call _malloc mov rsi, rax mov rax, [rsp+38h+var_28] mov rcx, [rax+60h] movsxd rdx, dword ptr [rax+58h] mov [rcx+rdx*8], rsi mov rcx, [rax+60h] movsxd rdx, dword ptr [rax+58h] mov rcx, [rcx+rdx*8] mov [rsp+38h+var_30], rcx mov rdi, [rax+0B8h]; this mov rsi, [rsp+38h+var_10]; char * call _ZN12LefDefParser8defrData7DEFCASEEPKc; LefDefParser::defrData::DEFCASE(char const*) mov rdi, [rsp+38h+var_30] mov rsi, rax call _strcpy mov rax, [rsp+38h+var_28] mov ecx, [rax+58h] add ecx, 1 mov [rax+58h], ecx add rsp, 38h retn
LefDefParser::defiNonDefault * LefDefParser::defiNonDefault::addVia( LefDefParser::defiNonDefault *this, const char *a2) { long long v2; // rax const char *v3; // rax LefDefParser::defiNonDefault *result; // rax long long v5; // [rsp+8h] [rbp-30h] long long v6; // [rsp+18h] [rbp-20h] int i; // [rsp+24h] [rbp-14h] if ( *((_DWORD *)this + 22) == *((_DWORD *)this + 23) ) { if ( *((_DWORD *)this + 23) ) *((_DWORD *)this + 23) *= 2; else *((_DWORD *)this + 23) = 2; v6 = malloc(8LL * *((int *)this + 23)); for ( i = 0; i < *((_DWORD *)this + 22); ++i ) *(_QWORD *)(v6 + 8LL * i) = *(_QWORD *)(*((_QWORD *)this + 12) + 8LL * i); free(*((_QWORD *)this + 12)); *((_QWORD *)this + 12) = v6; } v2 = strlen(a2); *(_QWORD *)(*((_QWORD *)this + 12) + 8LL * *((int *)this + 22)) = malloc(v2 + 1); v5 = *(_QWORD *)(*((_QWORD *)this + 12) + 8LL * *((int *)this + 22)); v3 = LefDefParser::defrData::DEFCASE(*((LefDefParser::defrData **)this + 23), a2); strcpy(v5, v3); result = this; ++*((_DWORD *)this + 22); return result; }
addVia: SUB RSP,0x38 MOV qword ptr [RSP + 0x30],RDI MOV qword ptr [RSP + 0x28],RSI MOV RCX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x10],RCX MOV EAX,dword ptr [RCX + 0x58] CMP EAX,dword ptr [RCX + 0x5c] JNZ 0x00144850 MOV RAX,qword ptr [RSP + 0x10] CMP dword ptr [RAX + 0x5c],0x0 JNZ 0x001447cd MOV RAX,qword ptr [RSP + 0x10] MOV dword ptr [RAX + 0x5c],0x2 JMP 0x001447da LAB_001447cd: MOV RAX,qword ptr [RSP + 0x10] MOV ECX,dword ptr [RAX + 0x5c] SHL ECX,0x1 MOV dword ptr [RAX + 0x5c],ECX LAB_001447da: MOV RAX,qword ptr [RSP + 0x10] MOVSXD RDI,dword ptr [RAX + 0x5c] SHL RDI,0x3 CALL 0x001072d0 MOV qword ptr [RSP + 0x18],RAX MOV dword ptr [RSP + 0x24],0x0 LAB_001447f9: MOV RCX,qword ptr [RSP + 0x10] MOV EAX,dword ptr [RSP + 0x24] CMP EAX,dword ptr [RCX + 0x58] JGE 0x00144834 MOV RAX,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RAX + 0x60] MOVSXD RCX,dword ptr [RSP + 0x24] MOV RDX,qword ptr [RAX + RCX*0x8] MOV RAX,qword ptr [RSP + 0x18] MOVSXD RCX,dword ptr [RSP + 0x24] MOV qword ptr [RAX + RCX*0x8],RDX MOV EAX,dword ptr [RSP + 0x24] ADD EAX,0x1 MOV dword ptr [RSP + 0x24],EAX JMP 0x001447f9 LAB_00144834: MOV RAX,qword ptr [RSP + 0x10] MOV RDI,qword ptr [RAX + 0x60] CALL 0x001072a0 MOV RAX,qword ptr [RSP + 0x10] MOV RCX,qword ptr [RSP + 0x18] MOV qword ptr [RAX + 0x60],RCX LAB_00144850: MOV RDI,qword ptr [RSP + 0x28] CALL 0x001070e0 MOV RDI,RAX ADD RDI,0x1 CALL 0x001072d0 MOV RSI,RAX MOV RAX,qword ptr [RSP + 0x10] MOV RCX,qword ptr [RAX + 0x60] MOVSXD RDX,dword ptr [RAX + 0x58] MOV qword ptr [RCX + RDX*0x8],RSI MOV RCX,qword ptr [RAX + 0x60] MOVSXD RDX,dword ptr [RAX + 0x58] MOV RCX,qword ptr [RCX + RDX*0x8] MOV qword ptr [RSP + 0x8],RCX MOV RDI,qword ptr [RAX + 0xb8] MOV RSI,qword ptr [RSP + 0x28] CALL 0x001250b0 MOV RDI,qword ptr [RSP + 0x8] MOV RSI,RAX CALL 0x00107220 MOV RAX,qword ptr [RSP + 0x10] MOV ECX,dword ptr [RAX + 0x58] ADD ECX,0x1 MOV dword ptr [RAX + 0x58],ECX ADD RSP,0x38 RET
/* LefDefParser::defiNonDefault::addVia(char const*) */ void __thiscall LefDefParser::defiNonDefault::addVia(defiNonDefault *this,char *param_1) { char *__dest; void *pvVar1; size_t sVar2; char *__src; int local_14; if (*(int *)(this + 0x58) == *(int *)(this + 0x5c)) { if (*(int *)(this + 0x5c) == 0) { *(int4 *)(this + 0x5c) = 2; } else { *(int *)(this + 0x5c) = *(int *)(this + 0x5c) << 1; } pvVar1 = malloc((long)*(int *)(this + 0x5c) << 3); for (local_14 = 0; local_14 < *(int *)(this + 0x58); local_14 = local_14 + 1) { *(int8 *)((long)pvVar1 + (long)local_14 * 8) = *(int8 *)(*(long *)(this + 0x60) + (long)local_14 * 8); } free(*(void **)(this + 0x60)); *(void **)(this + 0x60) = pvVar1; } sVar2 = strlen(param_1); pvVar1 = malloc(sVar2 + 1); *(void **)(*(long *)(this + 0x60) + (long)*(int *)(this + 0x58) * 8) = pvVar1; __dest = *(char **)(*(long *)(this + 0x60) + (long)*(int *)(this + 0x58) * 8); __src = (char *)defrData::DEFCASE(*(defrData **)(this + 0xb8),param_1); strcpy(__dest,__src); *(int *)(this + 0x58) = *(int *)(this + 0x58) + 1; return; }
49,315
codegen_generate_letstar
tsotchke[P]eshkol/src/backend/codegen/blocks.c
bool codegen_generate_letstar(CodegenContext* context, const AstNode* node) { assert(context != NULL); assert(node != NULL); assert(node->type == AST_LETSTAR); // Get output file FILE* output = codegen_context_get_output(context); // Generate code fprintf(output, "({ "); // Generate bindings for (size_t i = 0; i < node->as.let.binding_count; i++) { // Get binding AstNode* binding = node->as.let.bindings[i]; // Get binding node (for type information) AstNode* binding_node = node->as.let.binding_nodes[i]; // Get type context TypeInferenceContext* type_context = codegen_context_get_type_context(context); // Get variable type Type* var_type = type_inference_get_type(type_context, binding); // Generate type if (var_type) { fprintf(output, "%s ", codegen_type_to_c_type(var_type)); } else { fprintf(output, "int "); } // Generate variable name if (binding_node->type == AST_IDENTIFIER) { fprintf(output, "%s = ", binding_node->as.identifier.name); } else { fprintf(output, "_letstar_var_%zu = ", i); } // Generate value if (!codegen_generate_expression(context, binding)) { return false; } fprintf(output, "; "); } // Generate body if (!codegen_generate_expression(context, node->as.let.body)) { return false; } // Close let* fprintf(output, "; })"); return true; }
O1
c
codegen_generate_letstar: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax testq %rdi, %rdi je 0x148d9 movq %rsi, %r14 testq %rsi, %rsi je 0x148f8 cmpl $0xf, (%r14) jne 0x14917 movq %rdi, %rbx callq 0xb88c movq %rax, %r15 leaq 0xb8ec(%rip), %rdi # 0x200a9 movl $0x3, %esi movl $0x1, %edx movq %rax, %rcx callq 0x22c0 cmpq $0x0, 0x58(%r14) je 0x1489b xorl %r12d, %r12d movq 0x48(%r14), %rax movq 0x50(%r14), %rcx movq (%rax,%r12,8), %r13 movq (%rcx,%r12,8), %rbp movq %rbx, %rdi callq 0xb862 movq %rax, %rdi movq %r13, %rsi callq 0x8f9b testq %rax, %rax je 0x14823 movq %rax, %rdi callq 0x1565c movq %r15, %rdi leaq 0x9f54(%rip), %rsi # 0x1e76b movq %rax, %rdx xorl %eax, %eax callq 0x2200 jmp 0x1483c movl $0x4, %esi movl $0x1, %edx leaq 0xd287(%rip), %rdi # 0x21abb movq %r15, %rcx callq 0x22c0 cmpl $0x6, (%rbp) jne 0x14852 movq 0x48(%rbp), %rdx movq %r15, %rdi leaq 0xa113(%rip), %rsi # 0x1e963 jmp 0x1485f movq %r15, %rdi leaq 0xd34f(%rip), %rsi # 0x21bab movq %r12, %rdx xorl %eax, %eax callq 0x2200 movq %rbx, %rdi movq %r13, %rsi callq 0x115b0 testb %al, %al je 0x148c8 movl $0x2, %esi movl $0x1, %edx leaq 0xcb2f(%rip), %rdi # 0x213b5 movq %r15, %rcx callq 0x22c0 incq %r12 cmpq 0x58(%r14), %r12 jb 0x147dd movq 0x60(%r14), %rsi movq %rbx, %rdi callq 0x115b0 testb %al, %al je 0x148c8 leaq 0xcc8b(%rip), %rdi # 0x2153d movl $0x4, %esi movl $0x1, %edx movq %r15, %rcx callq 0x22c0 movb $0x1, %al jmp 0x148ca xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x6487(%rip), %rdi # 0x1ad67 leaq 0xd0d1(%rip), %rsi # 0x219b8 leaq 0xd261(%rip), %rcx # 0x21b4f movl $0xb9, %edx callq 0x2180 leaq 0x7fe1(%rip), %rdi # 0x1c8e0 leaq 0xd0b2(%rip), %rsi # 0x219b8 leaq 0xd242(%rip), %rcx # 0x21b4f movl $0xba, %edx callq 0x2180 leaq 0xd273(%rip), %rdi # 0x21b91 leaq 0xd093(%rip), %rsi # 0x219b8 leaq 0xd223(%rip), %rcx # 0x21b4f movl $0xbb, %edx callq 0x2180
codegen_generate_letstar: push rbp push r15 push r14 push r13 push r12 push rbx push rax test rdi, rdi jz loc_148D9 mov r14, rsi test rsi, rsi jz loc_148F8 cmp dword ptr [r14], 0Fh jnz loc_14917 mov rbx, rdi call codegen_context_get_output mov r15, rax lea rdi, asc_200A9; "({ " mov esi, 3 mov edx, 1 mov rcx, rax call _fwrite cmp qword ptr [r14+58h], 0 jz loc_1489B xor r12d, r12d loc_147DD: mov rax, [r14+48h] mov rcx, [r14+50h] mov r13, [rax+r12*8] mov rbp, [rcx+r12*8] mov rdi, rbx call codegen_context_get_type_context mov rdi, rax mov rsi, r13 call type_inference_get_type test rax, rax jz short loc_14823 mov rdi, rax call codegen_type_to_c_type mov rdi, r15 lea rsi, aS_1; "%s " mov rdx, rax xor eax, eax call _fprintf jmp short loc_1483C loc_14823: mov esi, 4 mov edx, 1 lea rdi, aInt_0; "int " mov rcx, r15 call _fwrite loc_1483C: cmp dword ptr [rbp+0], 6 jnz short loc_14852 mov rdx, [rbp+48h] mov rdi, r15 lea rsi, aS_2+4; "%s = " jmp short loc_1485F loc_14852: mov rdi, r15 lea rsi, aLetstarVarZu; "_letstar_var_%zu = " mov rdx, r12 loc_1485F: xor eax, eax call _fprintf mov rdi, rbx mov rsi, r13 call codegen_generate_expression test al, al jz short loc_148C8 mov esi, 2 mov edx, 1 lea rdi, aCharBuffer1024+19h; "; " mov rcx, r15 call _fwrite inc r12 cmp r12, [r14+58h] jb loc_147DD loc_1489B: mov rsi, [r14+60h] mov rdi, rbx call codegen_generate_expression test al, al jz short loc_148C8 lea rdi, aVectorFGetComp_0+4Eh; "; })" mov esi, 4 mov edx, 1 mov rcx, r15 call _fwrite mov al, 1 jmp short loc_148CA loc_148C8: xor eax, eax loc_148CA: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_148D9: lea rdi, aContextNull; "context != NULL" lea rsi, aWorkspaceLlm4b_20; "/workspace/llm4binary/github/2025_star3"... lea rcx, aBoolCodegenGen_24; "_Bool codegen_generate_letstar(CodegenC"... mov edx, 0B9h call ___assert_fail loc_148F8: lea rdi, aNodeNull; "node != NULL" lea rsi, aWorkspaceLlm4b_20; "/workspace/llm4binary/github/2025_star3"... lea rcx, aBoolCodegenGen_24; "_Bool codegen_generate_letstar(CodegenC"... mov edx, 0BAh call ___assert_fail loc_14917: lea rdi, aNodeTypeAstLet_1; "node->type == AST_LETSTAR" lea rsi, aWorkspaceLlm4b_20; "/workspace/llm4binary/github/2025_star3"... lea rcx, aBoolCodegenGen_24; "_Bool codegen_generate_letstar(CodegenC"... mov edx, 0BBh call ___assert_fail
char codegen_generate_letstar(long long a1, long long a2) { long long output; // r15 long long v3; // r12 _DWORD *v4; // r13 long long v5; // rbp _QWORD *type_context; // rax unsigned long long type; // rax long long v8; // rdx const char *v9; // rax if ( !a1 ) __assert_fail( "context != NULL", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/backend/codegen/blocks.c", 185LL, "_Bool codegen_generate_letstar(CodegenContext *, const AstNode *)"); if ( !a2 ) __assert_fail( "node != NULL", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/backend/codegen/blocks.c", 186LL, "_Bool codegen_generate_letstar(CodegenContext *, const AstNode *)"); if ( *(_DWORD *)a2 != 15 ) __assert_fail( "node->type == AST_LETSTAR", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/backend/codegen/blocks.c", 187LL, "_Bool codegen_generate_letstar(CodegenContext *, const AstNode *)"); output = codegen_context_get_output(a1); fwrite("({ ", 3LL, 1LL, output); if ( *(_QWORD *)(a2 + 88) ) { v3 = 0LL; while ( 1 ) { v4 = *(_DWORD **)(*(_QWORD *)(a2 + 72) + 8 * v3); v5 = *(_QWORD *)(*(_QWORD *)(a2 + 80) + 8 * v3); type_context = (_QWORD *)codegen_context_get_type_context(a1); type = type_inference_get_type(type_context, (long long)v4); if ( type ) { v9 = (const char *)codegen_type_to_c_type(type, v4, v8); fprintf(output, "%s ", v9); } else { fwrite("int ", 4LL, 1LL, output); } if ( *(_DWORD *)v5 == 6 ) fprintf(output, "%s = ", *(_QWORD *)(v5 + 72)); else fprintf(output, "_letstar_var_%zu = ", v3); if ( !(unsigned __int8)codegen_generate_expression(a1, v4) ) break; fwrite("; ", 2LL, 1LL, output); if ( (unsigned long long)++v3 >= *(_QWORD *)(a2 + 88) ) goto LABEL_14; } } else { LABEL_14: if ( (unsigned __int8)codegen_generate_expression(a1, *(_DWORD **)(a2 + 96)) ) { fwrite("; })", 4LL, 1LL, output); return 1; } } return 0; }
codegen_generate_letstar: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX TEST RDI,RDI JZ 0x001148d9 MOV R14,RSI TEST RSI,RSI JZ 0x001148f8 CMP dword ptr [R14],0xf JNZ 0x00114917 MOV RBX,RDI CALL 0x0010b88c MOV R15,RAX LEA RDI,[0x1200a9] MOV ESI,0x3 MOV EDX,0x1 MOV RCX,RAX CALL 0x001022c0 CMP qword ptr [R14 + 0x58],0x0 JZ 0x0011489b XOR R12D,R12D LAB_001147dd: MOV RAX,qword ptr [R14 + 0x48] MOV RCX,qword ptr [R14 + 0x50] MOV R13,qword ptr [RAX + R12*0x8] MOV RBP,qword ptr [RCX + R12*0x8] MOV RDI,RBX CALL 0x0010b862 MOV RDI,RAX MOV RSI,R13 CALL 0x00108f9b TEST RAX,RAX JZ 0x00114823 MOV RDI,RAX CALL 0x0011565c MOV RDI,R15 LEA RSI,[0x11e76b] MOV RDX,RAX XOR EAX,EAX CALL 0x00102200 JMP 0x0011483c LAB_00114823: MOV ESI,0x4 MOV EDX,0x1 LEA RDI,[0x121abb] MOV RCX,R15 CALL 0x001022c0 LAB_0011483c: CMP dword ptr [RBP],0x6 JNZ 0x00114852 MOV RDX,qword ptr [RBP + 0x48] MOV RDI,R15 LEA RSI,[0x11e963] JMP 0x0011485f LAB_00114852: MOV RDI,R15 LEA RSI,[0x121bab] MOV RDX,R12 LAB_0011485f: XOR EAX,EAX CALL 0x00102200 MOV RDI,RBX MOV RSI,R13 CALL 0x001115b0 TEST AL,AL JZ 0x001148c8 MOV ESI,0x2 MOV EDX,0x1 LEA RDI,[0x1213b5] MOV RCX,R15 CALL 0x001022c0 INC R12 CMP R12,qword ptr [R14 + 0x58] JC 0x001147dd LAB_0011489b: MOV RSI,qword ptr [R14 + 0x60] MOV RDI,RBX CALL 0x001115b0 TEST AL,AL JZ 0x001148c8 LEA RDI,[0x12153d] MOV ESI,0x4 MOV EDX,0x1 MOV RCX,R15 CALL 0x001022c0 MOV AL,0x1 JMP 0x001148ca LAB_001148c8: XOR EAX,EAX LAB_001148ca: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001148d9: LEA RDI,[0x11ad67] LEA RSI,[0x1219b8] LEA RCX,[0x121b4f] MOV EDX,0xb9 CALL 0x00102180 LAB_001148f8: LEA RDI,[0x11c8e0] LEA RSI,[0x1219b8] LEA RCX,[0x121b4f] MOV EDX,0xba CALL 0x00102180 LAB_00114917: LEA RDI,[0x121b91] LEA RSI,[0x1219b8] LEA RCX,[0x121b4f] MOV EDX,0xbb CALL 0x00102180
int8 codegen_generate_letstar(long param_1,int *param_2) { int *piVar1; char cVar2; FILE *__s; int8 uVar3; long lVar4; int8 uVar5; ulong uVar6; char *__format; ulong uVar7; if (param_1 == 0) { /* WARNING: Subroutine does not return */ __assert_fail("context != NULL", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/backend/codegen/blocks.c" ,0xb9,"_Bool codegen_generate_letstar(CodegenContext *, const AstNode *)"); } if (param_2 == (int *)0x0) { /* WARNING: Subroutine does not return */ __assert_fail("node != NULL", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/backend/codegen/blocks.c" ,0xba,"_Bool codegen_generate_letstar(CodegenContext *, const AstNode *)"); } if (*param_2 != 0xf) { /* WARNING: Subroutine does not return */ __assert_fail("node->type == AST_LETSTAR", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/backend/codegen/blocks.c" ,0xbb,"_Bool codegen_generate_letstar(CodegenContext *, const AstNode *)"); } __s = (FILE *)codegen_context_get_output(); fwrite(&DAT_001200a9,3,1,__s); if (*(long *)(param_2 + 0x16) != 0) { uVar7 = 0; do { uVar5 = *(int8 *)(*(long *)(param_2 + 0x12) + uVar7 * 8); piVar1 = *(int **)(*(long *)(param_2 + 0x14) + uVar7 * 8); uVar3 = codegen_context_get_type_context(param_1); lVar4 = type_inference_get_type(uVar3,uVar5); if (lVar4 == 0) { fwrite(&DAT_00121abb,4,1,__s); } else { uVar3 = codegen_type_to_c_type(lVar4); fprintf(__s,"%s ",uVar3); } if (*piVar1 == 6) { __format = "%s = "; uVar6 = *(ulong *)(piVar1 + 0x12); } else { __format = "_letstar_var_%zu = "; uVar6 = uVar7; } fprintf(__s,__format,uVar6); cVar2 = codegen_generate_expression(param_1,uVar5); if (cVar2 == '\0') goto LAB_001148c8; fwrite("; ",2,1,__s); uVar7 = uVar7 + 1; } while (uVar7 < *(ulong *)(param_2 + 0x16)); } cVar2 = codegen_generate_expression(param_1,*(int8 *)(param_2 + 0x18)); if (cVar2 == '\0') { LAB_001148c8: uVar5 = 0; } else { fwrite("; })",4,1,__s); uVar5 = 1; } return uVar5; }
49,316
char const* fmt::v10::detail::parse_dynamic_spec<char>(char const*, char const*, int&, fmt::v10::detail::arg_ref<char>&, fmt::v10::basic_format_parse_context<char>&)
aimrt_mujoco_sim/_deps/fmt-src/include/fmt/core.h
FMT_CONSTEXPR auto parse_dynamic_spec(const Char* begin, const Char* end, int& value, arg_ref<Char>& ref, basic_format_parse_context<Char>& ctx) -> const Char* { FMT_ASSERT(begin != end, ""); if ('0' <= *begin && *begin <= '9') { int val = parse_nonnegative_int(begin, end, -1); if (val != -1) value = val; else throw_format_error("number is too big"); } else if (*begin == '{') { ++begin; auto handler = dynamic_spec_id_handler<Char>{ctx, ref}; if (begin != end) begin = parse_arg_id(begin, end, handler); if (begin != end && *begin == '}') return ++begin; throw_format_error("invalid format string"); } return begin; }
O3
c
char const* fmt::v10::detail::parse_dynamic_spec<char>(char const*, char const*, int&, fmt::v10::detail::arg_ref<char>&, fmt::v10::basic_format_parse_context<char>&): pushq %r14 pushq %rbx subq $0x18, %rsp movq %rdx, %r14 movq %rsi, %rbx movq %rdi, (%rsp) movb (%rdi), %al leal -0x30(%rax), %edx cmpb $0x9, %dl ja 0x2fe35 movq %rsp, %rdi movq %rbx, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF callq 0x2fbf5 cmpl $-0x1, %eax je 0x2fea2 movl %eax, (%r14) movq (%rsp), %rdi jmp 0x2fe97 cmpb $0x7b, %al jne 0x2fe97 incq %rdi movq %rdi, (%rsp) movq %r8, 0x8(%rsp) movq %rcx, 0x10(%rsp) cmpq %rbx, %rdi je 0x2fe8a movzbl (%rdi), %eax cmpl $0x3a, %eax je 0x2fe5c cmpl $0x7d, %eax jne 0x2fe76 movl 0x10(%r8), %eax testl %eax, %eax js 0x2feba leal 0x1(%rax), %edx movl %edx, 0x10(%r8) movl $0x1, (%rcx) movl %eax, 0x8(%rcx) jmp 0x2fe86 leaq 0x8(%rsp), %rdx movq %rbx, %rsi callq 0x2fee4 movq %rax, %rdi movq %rdi, (%rsp) cmpq %rbx, %rdi je 0x2feae cmpb $0x7d, (%rdi) jne 0x2feae incq %rdi movq %rdi, %rax addq $0x18, %rsp popq %rbx popq %r14 retq leaq 0x53af8(%rip), %rdi # 0x839a1 callq 0x254fc leaq 0x53b34(%rip), %rdi # 0x839e9 callq 0x254fc leaq 0x53b74(%rip), %rdi # 0x83a35 callq 0x254fc
_ZN3fmt3v106detail18parse_dynamic_specIcEEPKT_S5_S5_RiRNS1_7arg_refIS3_EERNS0_26basic_format_parse_contextIS3_EE: push r14 push rbx sub rsp, 18h mov r14, rdx mov rbx, rsi mov [rsp+28h+var_28], rdi mov al, [rdi] lea edx, [rax-30h] cmp dl, 9 ja short loc_2FE35 mov rdi, rsp mov rsi, rbx; char * mov edx, 0FFFFFFFFh call _ZN3fmt3v106detail21parse_nonnegative_intIcEEiRPKT_S5_i; fmt::v10::detail::parse_nonnegative_int<char>(char const*&,char const*,int) cmp eax, 0FFFFFFFFh jz short loc_2FEA2 mov [r14], eax mov rdi, [rsp+28h+var_28] jmp short loc_2FE97 loc_2FE35: cmp al, 7Bh ; '{' jnz short loc_2FE97 inc rdi mov [rsp+28h+var_28], rdi mov [rsp+28h+var_20], r8 mov [rsp+28h+var_18], rcx cmp rdi, rbx jz short loc_2FE8A movzx eax, byte ptr [rdi] cmp eax, 3Ah ; ':' jz short loc_2FE5C cmp eax, 7Dh ; '}' jnz short loc_2FE76 loc_2FE5C: mov eax, [r8+10h] test eax, eax js short loc_2FEBA lea edx, [rax+1] mov [r8+10h], edx mov dword ptr [rcx], 1 mov [rcx+8], eax jmp short loc_2FE86 loc_2FE76: lea rdx, [rsp+28h+var_20] mov rsi, rbx; char * call _ZN3fmt3v106detail15do_parse_arg_idIcRNS1_23dynamic_spec_id_handlerIcEEEEPKT_S8_S8_OT0_; fmt::v10::detail::do_parse_arg_id<char,fmt::v10::detail::dynamic_spec_id_handler<char> &>(char const*,char const*,fmt::v10::detail::dynamic_spec_id_handler<char> &) mov rdi, rax loc_2FE86: mov [rsp+28h+var_28], rdi loc_2FE8A: cmp rdi, rbx jz short loc_2FEAE cmp byte ptr [rdi], 7Dh ; '}' jnz short loc_2FEAE inc rdi loc_2FE97: mov rax, rdi add rsp, 18h pop rbx pop r14 retn loc_2FEA2: lea rdi, aNumberIsTooBig; "number is too big" call _ZN3fmt3v106detail18throw_format_errorEPKc; fmt::v10::detail::throw_format_error(char const*) loc_2FEAE: lea rdi, aInvalidFormatS_0; "invalid format string" call _ZN3fmt3v106detail18throw_format_errorEPKc; fmt::v10::detail::throw_format_error(char const*) loc_2FEBA: lea rdi, aCannotSwitchFr; "cannot switch from manual to automatic "... call _ZN3fmt3v106detail18throw_format_errorEPKc; fmt::v10::detail::throw_format_error(char const*)
char * fmt::v10::detail::parse_dynamic_spec<char>( char *a1, char *a2, _DWORD *a3, _DWORD *a4, long long a5, long long a6) { int v7; // eax char *v8; // rdi int v9; // eax int v10; // eax char *v12; // [rsp+0h] [rbp-28h] BYREF _QWORD v13[4]; // [rsp+8h] [rbp-20h] BYREF v12 = a1; if ( (unsigned __int8)(*a1 - 48) > 9u ) { if ( *a1 == 123 ) { v8 = a1 + 1; v12 = v8; v13[0] = a5; v13[1] = a4; if ( v8 != a2 ) { v9 = (unsigned __int8)*v8; if ( v9 == 58 || v9 == 125 ) { v10 = *(_DWORD *)(a5 + 16); if ( v10 < 0 ) fmt::v10::detail::throw_format_error( (fmt::v10::detail *)"cannot switch from manual to automatic argument indexing", a2); *(_DWORD *)(a5 + 16) = v10 + 1; *a4 = 1; a4[2] = v10; } else { v8 = (char *)((long long ( *)(char *, char *, _QWORD *, _DWORD *, long long, long long, char *))fmt::v10::detail::do_parse_arg_id<char,fmt::v10::detail::dynamic_spec_id_handler<char> &>)( v8, a2, v13, a4, a5, a6, v12); } v12 = v8; } if ( v8 == a2 || *v8 != 125 ) fmt::v10::detail::throw_format_error((fmt::v10::detail *)"invalid format string", a2); return v8 + 1; } } else { v7 = fmt::v10::detail::parse_nonnegative_int<char>(&v12, a2, 0xFFFFFFFF); if ( v7 == -1 ) fmt::v10::detail::throw_format_error((fmt::v10::detail *)"number is too big", a2); *a3 = v7; return v12; } return a1; }
parse_dynamic_spec<char>: PUSH R14 PUSH RBX SUB RSP,0x18 MOV R14,RDX MOV RBX,RSI MOV qword ptr [RSP],RDI MOV AL,byte ptr [RDI] LEA EDX,[RAX + -0x30] CMP DL,0x9 JA 0x0012fe35 MOV RDI,RSP MOV RSI,RBX MOV EDX,0xffffffff CALL 0x0012fbf5 CMP EAX,-0x1 JZ 0x0012fea2 MOV dword ptr [R14],EAX MOV RDI,qword ptr [RSP] JMP 0x0012fe97 LAB_0012fe35: CMP AL,0x7b JNZ 0x0012fe97 INC RDI MOV qword ptr [RSP],RDI MOV qword ptr [RSP + 0x8],R8 MOV qword ptr [RSP + 0x10],RCX CMP RDI,RBX JZ 0x0012fe8a MOVZX EAX,byte ptr [RDI] CMP EAX,0x3a JZ 0x0012fe5c CMP EAX,0x7d JNZ 0x0012fe76 LAB_0012fe5c: MOV EAX,dword ptr [R8 + 0x10] TEST EAX,EAX JS 0x0012feba LEA EDX,[RAX + 0x1] MOV dword ptr [R8 + 0x10],EDX MOV dword ptr [RCX],0x1 MOV dword ptr [RCX + 0x8],EAX JMP 0x0012fe86 LAB_0012fe76: LEA RDX,[RSP + 0x8] MOV RSI,RBX CALL 0x0012fee4 MOV RDI,RAX LAB_0012fe86: MOV qword ptr [RSP],RDI LAB_0012fe8a: CMP RDI,RBX JZ 0x0012feae CMP byte ptr [RDI],0x7d JNZ 0x0012feae INC RDI LAB_0012fe97: MOV RAX,RDI ADD RSP,0x18 POP RBX POP R14 RET LAB_0012fea2: LEA RDI,[0x1839a1] CALL 0x001254fc LAB_0012feae: LEA RDI,[0x1839e9] CALL 0x001254fc LAB_0012feba: LEA RDI,[0x183a35] CALL 0x001254fc
/* char const* fmt::v10::detail::parse_dynamic_spec<char>(char const*, char const*, int&, fmt::v10::detail::arg_ref<char>&, fmt::v10::basic_format_parse_context<char>&) */ char * fmt::v10::detail::parse_dynamic_spec<char> (char *param_1,char *param_2,int *param_3,arg_ref *param_4, basic_format_parse_context *param_5) { int iVar1; char *local_28; basic_format_parse_context *local_20; arg_ref *local_18; local_28 = param_1; if ((byte)(*param_1 - 0x30U) < 10) { iVar1 = parse_nonnegative_int<char>(&local_28,param_2,-1); if (iVar1 == -1) { /* WARNING: Subroutine does not return */ throw_format_error("number is too big"); } *param_3 = iVar1; } else if (*param_1 == '{') { local_28 = param_1 + 1; local_20 = param_5; local_18 = param_4; if (local_28 != param_2) { if ((*local_28 == ':') || (*local_28 == '}')) { iVar1 = *(int *)(param_5 + 0x10); if (iVar1 < 0) { /* WARNING: Subroutine does not return */ throw_format_error("cannot switch from manual to automatic argument indexing"); } *(int *)(param_5 + 0x10) = iVar1 + 1; *(int4 *)param_4 = 1; *(int *)(param_4 + 8) = iVar1; } else { local_28 = do_parse_arg_id<char,fmt::v10::detail::dynamic_spec_id_handler<char>&> (local_28,param_2,(dynamic_spec_id_handler *)&local_20); } } if ((local_28 == param_2) || (*local_28 != '}')) { /* WARNING: Subroutine does not return */ throw_format_error("invalid format string"); } local_28 = local_28 + 1; } return local_28; }
49,317
freeze_size
eloqsql/mysys/array.c
void freeze_size(DYNAMIC_ARRAY *array) { uint elements; /* Do nothing if we are using a static buffer */ if (array->malloc_flags & MY_INIT_BUFFER_USED) return; elements= MY_MAX(array->elements, 1); if (array->buffer && array->max_element > elements) { array->buffer=(uchar*) my_realloc(array->m_psi_key, array->buffer, elements * array->size_of_element, MYF(MY_WME | array->malloc_flags)); array->max_element= elements; } }
O0
c
freeze_size: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq 0x20(%rax), %rax andq $0x100, %rax # imm = 0x100 cmpq $0x0, %rax je 0x80c22 jmp 0x80ca0 movq -0x8(%rbp), %rax cmpl $0x1, 0x8(%rax) jbe 0x80c38 movq -0x8(%rbp), %rax movl 0x8(%rax), %eax movl %eax, -0x10(%rbp) jmp 0x80c42 movl $0x1, %eax movl %eax, -0x10(%rbp) jmp 0x80c42 movl -0x10(%rbp), %eax movl %eax, -0xc(%rbp) movq -0x8(%rbp), %rax cmpq $0x0, (%rax) je 0x80ca0 movq -0x8(%rbp), %rax movl 0xc(%rax), %eax cmpl -0xc(%rbp), %eax jbe 0x80ca0 movq -0x8(%rbp), %rax movl 0x18(%rax), %edi movq -0x8(%rbp), %rax movq (%rax), %rsi movl -0xc(%rbp), %eax movq -0x8(%rbp), %rcx imull 0x14(%rcx), %eax movl %eax, %eax movl %eax, %edx movq -0x8(%rbp), %rax movq 0x20(%rax), %rcx orq $0x10, %rcx callq 0x7bb50 movq %rax, %rcx movq -0x8(%rbp), %rax movq %rcx, (%rax) movl -0xc(%rbp), %ecx movq -0x8(%rbp), %rax movl %ecx, 0xc(%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
freeze_size: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov rax, [rax+20h] and rax, 100h cmp rax, 0 jz short loc_80C22 jmp short loc_80CA0 loc_80C22: mov rax, [rbp+var_8] cmp dword ptr [rax+8], 1 jbe short loc_80C38 mov rax, [rbp+var_8] mov eax, [rax+8] mov [rbp+var_10], eax jmp short loc_80C42 loc_80C38: mov eax, 1 mov [rbp+var_10], eax jmp short $+2 loc_80C42: mov eax, [rbp+var_10] mov [rbp+var_C], eax mov rax, [rbp+var_8] cmp qword ptr [rax], 0 jz short loc_80CA0 mov rax, [rbp+var_8] mov eax, [rax+0Ch] cmp eax, [rbp+var_C] jbe short loc_80CA0 mov rax, [rbp+var_8] mov edi, [rax+18h] mov rax, [rbp+var_8] mov rsi, [rax] mov eax, [rbp+var_C] mov rcx, [rbp+var_8] imul eax, [rcx+14h] mov eax, eax mov edx, eax mov rax, [rbp+var_8] mov rcx, [rax+20h] or rcx, 10h call my_realloc mov rcx, rax mov rax, [rbp+var_8] mov [rax], rcx mov ecx, [rbp+var_C] mov rax, [rbp+var_8] mov [rax+0Ch], ecx loc_80CA0: add rsp, 10h pop rbp retn
long long freeze_size(long long a1) { long long result; // rax unsigned int v2; // [rsp+0h] [rbp-10h] result = *(_QWORD *)(a1 + 32) & 0x100LL; if ( !result ) { if ( *(_DWORD *)(a1 + 8) <= 1u ) v2 = 1; else v2 = *(_DWORD *)(a1 + 8); result = a1; if ( *(_QWORD *)a1 ) { result = *(unsigned int *)(a1 + 12); if ( (unsigned int)result > v2 ) { *(_QWORD *)a1 = my_realloc( *(_DWORD *)(a1 + 24), *(_QWORD *)a1, *(_DWORD *)(a1 + 20) * v2, *(_BYTE *)(a1 + 32) | 0x10u); result = a1; *(_DWORD *)(a1 + 12) = v2; } } } return result; }
freeze_size: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x20] AND RAX,0x100 CMP RAX,0x0 JZ 0x00180c22 JMP 0x00180ca0 LAB_00180c22: MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x8],0x1 JBE 0x00180c38 MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x8] MOV dword ptr [RBP + -0x10],EAX JMP 0x00180c42 LAB_00180c38: MOV EAX,0x1 MOV dword ptr [RBP + -0x10],EAX JMP 0x00180c42 LAB_00180c42: MOV EAX,dword ptr [RBP + -0x10] MOV dword ptr [RBP + -0xc],EAX MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX],0x0 JZ 0x00180ca0 MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0xc] CMP EAX,dword ptr [RBP + -0xc] JBE 0x00180ca0 MOV RAX,qword ptr [RBP + -0x8] MOV EDI,dword ptr [RAX + 0x18] MOV RAX,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RAX] MOV EAX,dword ptr [RBP + -0xc] MOV RCX,qword ptr [RBP + -0x8] IMUL EAX,dword ptr [RCX + 0x14] MOV EAX,EAX MOV EDX,EAX MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RAX + 0x20] OR RCX,0x10 CALL 0x0017bb50 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX],RCX MOV ECX,dword ptr [RBP + -0xc] MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0xc],ECX LAB_00180ca0: ADD RSP,0x10 POP RBP RET
void freeze_size(long *param_1) { long lVar1; uint local_18; if ((param_1[4] & 0x100U) == 0) { if (*(uint *)(param_1 + 1) < 2) { local_18 = 1; } else { local_18 = *(uint *)(param_1 + 1); } if ((*param_1 != 0) && (local_18 < *(uint *)((long)param_1 + 0xc))) { lVar1 = my_realloc((int)param_1[3],*param_1,local_18 * *(int *)((long)param_1 + 0x14), param_1[4] | 0x10); *param_1 = lVar1; *(uint *)((long)param_1 + 0xc) = local_18; } } return; }
49,318
decltype(from_json_array_impl(fp, fp0, nlohmann::json_abi_v3_11_3::detail::priority_tag<3u>{}), fp.get<std::vector<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<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>>>::value_type>(), (void)()) nlohmann::json_abi_v3_11_3::detail::from_json<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<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<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>>>, 0>(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&, std::vector<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<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>&)
monkey531[P]llama/common/json.hpp
auto from_json(const BasicJsonType& j, ConstructibleArrayType& arr) -> decltype(from_json_array_impl(j, arr, priority_tag<3> {}), j.template get<typename ConstructibleArrayType::value_type>(), void()) { if (JSON_HEDLEY_UNLIKELY(!j.is_array())) { JSON_THROW(type_error::create(302, concat("type must be array, but is ", j.type_name()), &j)); } from_json_array_impl(j, arr, priority_tag<3> {}); }
O2
cpp
decltype(from_json_array_impl(fp, fp0, nlohmann::json_abi_v3_11_3::detail::priority_tag<3u>{}), fp.get<std::vector<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<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>>>::value_type>(), (void)()) nlohmann::json_abi_v3_11_3::detail::from_json<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<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<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>>>, 0>(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&, std::vector<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<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>&): pushq %rbp pushq %r14 pushq %rbx subq $0x30, %rsp movq %rdi, %r14 cmpb $0x2, (%rdi) jne 0x921e1 movq %r14, %rdi addq $0x30, %rsp popq %rbx popq %r14 popq %rbp jmp 0x922c2 pushq $0x20 popq %rdi callq 0x24460 movq %rax, %rbx movq %r14, %rdi callq 0x434f0 leaq 0x8(%rsp), %rdx movq %rax, (%rdx) leaq 0x2856f(%rip), %rsi # 0xba772 leaq 0x10(%rsp), %rdi callq 0x92264 movb $0x1, %bpl leaq 0x10(%rsp), %rdx movq %rbx, %rdi movl $0x12e, %esi # imm = 0x12E movq %r14, %rcx callq 0x63472 xorl %ebp, %ebp leaq 0x6bd0a(%rip), %rsi # 0xfdf38 leaq -0x521b5(%rip), %rdx # 0x40080 movq %rbx, %rdi callq 0x24ee0 movq %rax, %r14 leaq 0x10(%rsp), %rdi callq 0x251b8 testb %bpl, %bpl jne 0x92254 jmp 0x9225c movq %rax, %r14 movq %rbx, %rdi callq 0x24670 movq %r14, %rdi callq 0x24f60
_ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEES5_ISF_SaISF_EETnNSt9enable_ifIXaaaaaaaasr27is_constructible_array_typeIT_T0_EE5valuentsr28is_constructible_object_typeISJ_SK_EE5valuentsr28is_constructible_string_typeISJ_SK_EE5valuentsr3std7is_sameISK_NSJ_8binary_tEEE5valuentsr13is_basic_jsonISK_EE5valueEiE4typeELi0EEEDTcmcmcl20from_json_array_implfp_fp0_tlNS1_12priority_tagILj3EEEEEcldtfp_3getINSK_10value_typeEEEcvv_EERKSJ_RSK_: push rbp; char push r14; int push rbx; int sub rsp, 30h mov r14, rdi cmp byte ptr [rdi], 2 jnz short loc_921E1 mov rdi, r14 add rsp, 30h pop rbx pop r14 pop rbp jmp _ZN8nlohmann16json_abi_v3_11_36detail20from_json_array_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEEvRKT_RNSG_7array_tENS1_12priority_tagILj3EEE; nlohmann::json_abi_v3_11_3::detail::from_json_array_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>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::array_t &,nlohmann::json_abi_v3_11_3::detail::priority_tag<3u>) loc_921E1: push 20h ; ' ' pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) lea rdx, [rsp+48h+var_40] mov [rdx], rax lea rsi, aTypeMustBeArra; "type must be array, but is " lea rdi, [rsp+48h+var_38] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA28_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[28],char const*>(char const(&)[28],char const* &&) mov bpl, 1 lea rdx, [rsp+48h+var_38] mov rdi, rbx; this mov esi, 12Eh; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rdi, [rsp+48h+var_38]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test bpl, bpl jnz short loc_92254 jmp short loc_9225C mov r14, rax loc_92254: mov rdi, rbx; void * call ___cxa_free_exception loc_9225C: mov rdi, r14 call __Unwind_Resume
long long ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEES5_ISF_SaISF_EETnNSt9enable_ifIXaaaaaaaasr27is_constructible_array_typeIT_T0_EE5valuentsr28is_constructible_object_typeISJ_SK_EE5valuentsr28is_constructible_string_typeISJ_SK_EE5valuentsr3std7is_sameISK_NSJ_8binary_tEEE5valuentsr13is_basic_jsonISK_EE5valueEiE4typeELi0EEEDTcmcmcl20from_json_array_implfp_fp0_tlNS1_12priority_tagILj3EEEEEcldtfp_3getINSK_10value_typeEEEcvv_EERKSJ_RSK_( unsigned __int8 *a1) { nlohmann::json_abi_v3_11_3::detail::type_error *exception; // rbx _BYTE v3[56]; // [rsp+10h] [rbp-38h] BYREF if ( *a1 != 2 ) { exception = (nlohmann::json_abi_v3_11_3::detail::type_error *)__cxa_allocate_exception(0x20uLL); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name(a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[28],char const*>( v3, "type must be array, but is "); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( exception, 302, (long long)v3); __cxa_throw( exception, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } return nlohmann::json_abi_v3_11_3::detail::from_json_array_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>>(a1); }
_ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEES5_ISF_SaISF_EETnNSt9enable_ifIXaaaaaaaasr27is_constructible_array_typeIT_T0_EE5valuentsr28is_constructible_object_typeISJ_SK_EE5valuentsr28is_constructible_string_typeISJ_SK_EE5valuentsr3std7is_sameISK_NSJ_8binary_tEEE5valuentsr13is_basic_jsonISK_EE5valueEiE4typeELi0EEEDTcmcmcl20from_json_array_implfp_fp0_tlNS1_12priority_tagILj3EEEEEcldtfp_3getINSK_10value_typeEEEcvv_EERKSJ_RSK_: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x30 MOV R14,RDI CMP byte ptr [RDI],0x2 JNZ 0x001921e1 MOV RDI,R14 ADD RSP,0x30 POP RBX POP R14 POP RBP JMP 0x001922c2 LAB_001921e1: PUSH 0x20 POP RDI CALL 0x00124460 MOV RBX,RAX MOV RDI,R14 CALL 0x001434f0 LEA RDX,[RSP + 0x8] MOV qword ptr [RDX],RAX LAB_001921fc: LEA RSI,[0x1ba772] LEA RDI,[RSP + 0x10] CALL 0x00192264 MOV BPL,0x1 LAB_00192210: LEA RDX,[RSP + 0x10] MOV RDI,RBX MOV ESI,0x12e MOV RCX,R14 CALL 0x00163472 XOR EBP,EBP LEA RSI,[0x1fdf38] LEA RDX,[0x140080] MOV RDI,RBX CALL 0x00124ee0
void _ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEES5_ISF_SaISF_EETnNSt9enable_ifIXaaaaaaaasr27is_constructible_array_typeIT_T0_EE5valuentsr28is_constructible_object_typeISJ_SK_EE5valuentsr28is_constructible_string_typeISJ_SK_EE5valuentsr3std7is_sameISK_NSJ_8binary_tEEE5valuentsr13is_basic_jsonISK_EE5valueEiE4typeELi0EEEDTcmcmcl20from_json_array_implfp_fp0_tlNS1_12priority_tagILj3EEEEEcldtfp_3getINSK_10value_typeEEEcvv_EERKSJ_RSK_ (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *param_1) { int8 uVar1; char *local_40; detail local_38 [32]; if (*param_1 == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x2) { nlohmann::json_abi_v3_11_3::detail:: from_json_array_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>> (param_1); return; } uVar1 = __cxa_allocate_exception(0x20); local_40 = (char *)nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::type_name(param_1); /* try { // try from 001921fc to 0019220c has its CatchHandler @ 00192251 */ nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[28],char_const*> (local_38,"type must be array, but is ",&local_40); /* try { // try from 00192210 to 0019223c has its CatchHandler @ 0019223d */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar1,0x12e,local_38,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar1,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); }
49,319
OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateVertexParentVectors(OpenSubdiv::v3_6_0::Vtr::internal::Refinement::ChildTag const (*) [4])
NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/refinement.cpp
void Refinement::populateVertexParentVectors(ChildTag const initialChildTags[2][4]) { if (_uniform) { _childVertexTag.resize(_child->getNumVertices(), initialChildTags[0][0]); } else { _childVertexTag.resize(_child->getNumVertices(), initialChildTags[1][0]); } _childVertexParentIndex.resize(_child->getNumVertices()); populateVertexParentFromParentFaces(initialChildTags); populateVertexParentFromParentEdges(initialChildTags); populateVertexParentFromParentVertices(initialChildTags); }
O2
cpp
OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateVertexParentVectors(OpenSubdiv::v3_6_0::Vtr::internal::Refinement::ChildTag const (*) [4]): pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 movzbl 0x24(%rdi), %eax addq $0x180, %rdi # imm = 0x180 movq 0x10(%r14), %rcx movslq 0x8(%rcx), %rsi xorl $0x1, %eax leaq (%rbx,%rax,4), %rdx callq 0x541b0 leaq 0x138(%r14), %rdi movq 0x10(%r14), %rax movslq 0x8(%rax), %rsi callq 0x514b0 movq %r14, %rdi movq %rbx, %rsi callq 0x50c60 movq %r14, %rdi movq %rbx, %rsi callq 0x52f50 movq %r14, %rdi movq %rbx, %rsi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x50fa0 nop
_ZN10OpenSubdiv6v3_6_03Vtr8internal10Refinement27populateVertexParentVectorsEPA4_KNS3_8ChildTagE: push r14 push rbx push rax mov rbx, rsi mov r14, rdi movzx eax, byte ptr [rdi+24h] add rdi, 180h mov rcx, [r14+10h] movsxd rsi, dword ptr [rcx+8] xor eax, 1 lea rdx, [rbx+rax*4] call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Vtr8internal10Refinement8ChildTagESaIS5_EE6resizeEmRKS5_; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::ChildTag>::resize(ulong,OpenSubdiv::v3_6_0::Vtr::internal::Refinement::ChildTag const&) lea rdi, [r14+138h] mov rax, [r14+10h] movsxd rsi, dword ptr [rax+8] call __ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong) mov rdi, r14 mov rsi, rbx call __ZN10OpenSubdiv6v3_6_03Vtr8internal10Refinement35populateVertexParentFromParentFacesEPA4_KNS3_8ChildTagE; OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateVertexParentFromParentFaces(OpenSubdiv::v3_6_0::Vtr::internal::Refinement::ChildTag const(*)[4]) mov rdi, r14 mov rsi, rbx call __ZN10OpenSubdiv6v3_6_03Vtr8internal10Refinement35populateVertexParentFromParentEdgesEPA4_KNS3_8ChildTagE; OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateVertexParentFromParentEdges(OpenSubdiv::v3_6_0::Vtr::internal::Refinement::ChildTag const(*)[4]) mov rdi, r14 mov rsi, rbx add rsp, 8 pop rbx pop r14 jmp __ZN10OpenSubdiv6v3_6_03Vtr8internal10Refinement38populateVertexParentFromParentVerticesEPA4_KNS3_8ChildTagE; OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateVertexParentFromParentVertices(OpenSubdiv::v3_6_0::Vtr::internal::Refinement::ChildTag const(*)[4])
long long OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateVertexParentVectors(long long a1, long long a2) { std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::ChildTag>::resize( a1 + 384, *(int *)(*(_QWORD *)(a1 + 16) + 8LL), a2 + 4LL * (*(unsigned __int8 *)(a1 + 36) ^ 1u)); std::vector<int>::resize(a1 + 312, *(int *)(*(_QWORD *)(a1 + 16) + 8LL)); OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateVertexParentFromParentFaces(a1, a2); OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateVertexParentFromParentEdges(a1, a2); return OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateVertexParentFromParentVertices(a1, a2); }
populateVertexParentVectors: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RSI MOV R14,RDI MOVZX EAX,byte ptr [RDI + 0x24] ADD RDI,0x180 MOV RCX,qword ptr [R14 + 0x10] MOVSXD RSI,dword ptr [RCX + 0x8] XOR EAX,0x1 LEA RDX,[RBX + RAX*0x4] CALL 0x001541b0 LEA RDI,[R14 + 0x138] MOV RAX,qword ptr [R14 + 0x10] MOVSXD RSI,dword ptr [RAX + 0x8] CALL 0x001514b0 MOV RDI,R14 MOV RSI,RBX CALL 0x00150c60 MOV RDI,R14 MOV RSI,RBX CALL 0x00152f50 MOV RDI,R14 MOV RSI,RBX ADD RSP,0x8 POP RBX POP R14 JMP 0x00150fa0
/* OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateVertexParentVectors(OpenSubdiv::v3_6_0::Vtr::internal::Refinement::ChildTag const (*) [4]) */ void __thiscall OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateVertexParentVectors (Refinement *this,ChildTag *param_1) { std:: vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::ChildTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::ChildTag>> ::resize((ulong)(this + 0x180),(ChildTag *)(long)*(int *)(*(long *)(this + 0x10) + 8)); std::vector<int,std::allocator<int>>::resize ((vector<int,std::allocator<int>> *)(this + 0x138), (long)*(int *)(*(long *)(this + 0x10) + 8)); populateVertexParentFromParentFaces(this,param_1); populateVertexParentFromParentEdges(this,param_1); populateVertexParentFromParentVertices(this,param_1); return; }
49,320
ftxui::MenuOption::VerticalAnimated()
Andrewchistyakov[P]flashcards_lyc/build_O2/_deps/ftxui-src/src/ftxui/component/component_options.cpp
MenuOption MenuOption::VerticalAnimated() { auto option = MenuOption::Vertical(); option.entries_option.transform = [](const EntryState& state) { Element e = text(state.label); if (state.focused) { e |= inverted; } if (state.active) { e |= bold; } if (!state.focused && !state.active) { e |= dim; } return e; }; option.underline.enabled = true; return option; }
O2
cpp
ftxui::MenuOption::VerticalAnimated(): pushq %rbx subq $0x20, %rsp movq %rdi, %rbx callq 0x2b9f8 movups 0xa8(%rbx), %xmm0 movq %rsp, %rdi movaps %xmm0, (%rdi) xorps %xmm0, %xmm0 movups %xmm0, 0xa8(%rbx) movups 0xb8(%rbx), %xmm0 leaq 0x9cc(%rip), %rax # 0x2c450 movq %rax, 0xb8(%rbx) movaps %xmm0, 0x10(%rdi) leaq 0x872(%rip), %rax # 0x2c308 movq %rax, 0xc0(%rbx) callq 0x13b10 movb $0x1, 0x20(%rbx) movq %rbx, %rax addq $0x20, %rsp popq %rbx retq nop
_ZN5ftxui10MenuOption16VerticalAnimatedEv: push rbx sub rsp, 20h mov rbx, rdi call _ZN5ftxui10MenuOption8VerticalEv; ftxui::MenuOption::Vertical(void) movups xmm0, xmmword ptr [rbx+0A8h] mov rdi, rsp; this movaps xmmword ptr [rdi], xmm0 xorps xmm0, xmm0 movups xmmword ptr [rbx+0A8h], xmm0 movups xmm0, xmmword ptr [rbx+0B8h] lea rax, _ZNSt17_Function_handlerIFSt10shared_ptrIN5ftxui4NodeEERKNS1_10EntryStateEEZNS1_10MenuOption16VerticalAnimatedEvE3$_0E10_M_managerERSt9_Any_dataRKSB_St18_Manager_operation; std::_Function_handler<std::shared_ptr<ftxui::Node> ()(ftxui::EntryState const&),ftxui::MenuOption::VerticalAnimated(void)::$_0>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation) mov [rbx+0B8h], rax movaps xmmword ptr [rdi+10h], xmm0 lea rax, _ZNSt17_Function_handlerIFSt10shared_ptrIN5ftxui4NodeEERKNS1_10EntryStateEEZNS1_10MenuOption16VerticalAnimatedEvE3$_0E9_M_invokeERKSt9_Any_dataS6_; std::_Function_handler<std::shared_ptr<ftxui::Node> ()(ftxui::EntryState const&),ftxui::MenuOption::VerticalAnimated(void)::$_0>::_M_invoke(std::_Any_data const&,ftxui::EntryState const&) mov [rbx+0C0h], rax call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() mov byte ptr [rbx+20h], 1 mov rax, rbx add rsp, 20h pop rbx retn
ftxui::MenuOption * ftxui::MenuOption::VerticalAnimated(ftxui::MenuOption *this) { __int128 v1; // xmm0 _OWORD v3[2]; // [rsp+0h] [rbp-28h] BYREF ftxui::MenuOption::Vertical(this); v3[0] = *(_OWORD *)((char *)this + 168); *(_OWORD *)((char *)this + 168) = 0LL; v1 = *(_OWORD *)((char *)this + 184); *((_QWORD *)this + 23) = std::_Function_handler<std::shared_ptr<ftxui::Node> ()(ftxui::EntryState const&),ftxui::MenuOption::VerticalAnimated(void)::$_0>::_M_manager; v3[1] = v1; *((_QWORD *)this + 24) = std::_Function_handler<std::shared_ptr<ftxui::Node> ()(ftxui::EntryState const&),ftxui::MenuOption::VerticalAnimated(void)::$_0>::_M_invoke; std::_Function_base::~_Function_base((std::_Function_base *)v3); *((_BYTE *)this + 32) = 1; return this; }
VerticalAnimated: PUSH RBX SUB RSP,0x20 MOV RBX,RDI CALL 0x0012b9f8 MOVUPS XMM0,xmmword ptr [RBX + 0xa8] MOV RDI,RSP MOVAPS xmmword ptr [RDI],XMM0 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0xa8],XMM0 MOVUPS XMM0,xmmword ptr [RBX + 0xb8] LEA RAX,[0x12c450] MOV qword ptr [RBX + 0xb8],RAX MOVAPS xmmword ptr [RDI + 0x10],XMM0 LEA RAX,[0x12c308] MOV qword ptr [RBX + 0xc0],RAX CALL 0x00113b10 MOV byte ptr [RBX + 0x20],0x1 MOV RAX,RBX ADD RSP,0x20 POP RBX RET
/* ftxui::MenuOption::VerticalAnimated() */ MenuOption * __thiscall ftxui::MenuOption::VerticalAnimated(MenuOption *this) { int8 local_28; int8 uStack_20; int8 local_18; int8 uStack_10; Vertical(this); local_28 = *(int8 *)(this + 0xa8); uStack_20 = *(int8 *)(this + 0xb0); *(int8 *)(this + 0xa8) = 0; *(int8 *)(this + 0xb0) = 0; local_18 = *(int8 *)(this + 0xb8); uStack_10 = *(int8 *)(this + 0xc0); *(code **)(this + 0xb8) = std:: _Function_handler<std::shared_ptr<ftxui::Node>(ftxui::EntryState_const&),ftxui::MenuOption::VerticalAnimated()::$_0> ::_M_manager; *(code **)(this + 0xc0) = std:: _Function_handler<std::shared_ptr<ftxui::Node>(ftxui::EntryState_const&),ftxui::MenuOption::VerticalAnimated()::$_0> ::_M_invoke; std::_Function_base::~_Function_base((_Function_base *)&local_28); this[0x20] = (MenuOption)0x1; return this; }
49,321
BranchPredictor::strategyName[abi:cxx11]()
EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/src/BranchPredictor.cpp
std::string BranchPredictor::strategyName() { switch (this->strategy) { case NT: return "Always Not Taken"; case AT: return "Always Taken"; case BTFNT: return "Back Taken Forward Not Taken"; case BPB: return "Branch Prediction Buffer"; default: dbgprintf("Unknown Branch Perdiction Strategy!\n"); break; } return "error"; // should not go here }
O1
cpp
BranchPredictor::strategyName[abi:cxx11](): pushq %rbx movq %rdi, %rbx movl (%rsi), %eax cmpq $0x3, %rax ja 0x133f5 leaq 0x2e7b(%rip), %rcx # 0x16200 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax leaq 0x10(%rbx), %rax movq %rax, (%rbx) leaq 0x2ec6(%rip), %rsi # 0x16262 leaq 0x2ecb(%rip), %rdx # 0x1626e jmp 0x133e8 leaq 0x10(%rbx), %rax movq %rax, (%rbx) leaq 0x2ebc(%rip), %rsi # 0x1626f leaq 0x2ed1(%rip), %rdx # 0x1628b jmp 0x133e8 leaq 0x10(%rbx), %rax movq %rax, (%rbx) leaq 0x2ec2(%rip), %rsi # 0x1628c leaq 0x2ed3(%rip), %rdx # 0x162a4 jmp 0x133e8 leaq 0x10(%rbx), %rax movq %rax, (%rbx) leaq 0x2e70(%rip), %rsi # 0x16251 leaq 0x2e79(%rip), %rdx # 0x16261 movq %rbx, %rdi callq 0xea5a movq %rbx, %rax popq %rbx retq movq %rbx, %rdi callq 0xb4d8 jmp 0x133f0 nop
_ZN15BranchPredictor12strategyNameB5cxx11Ev: push rbx mov rbx, rdi mov eax, [rsi] cmp rax, 3; switch 4 cases ja short def_1338C; jumptable 000000000001338C default case lea rcx, jpt_1338C movsxd rax, ds:(jpt_1338C - 16200h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_1338E: lea rax, [rbx+10h]; jumptable 000000000001338C case 0 mov [rbx], rax lea rsi, aAlwaysTaken; "Always Taken" lea rdx, aAlwaysTaken+0Ch; "" jmp short loc_133E8 loc_133A5: lea rax, [rbx+10h]; jumptable 000000000001338C case 2 mov [rbx], rax lea rsi, aBackTakenForwa; "Back Taken Forward Not Taken" lea rdx, aBackTakenForwa+1Ch; "" jmp short loc_133E8 loc_133BC: lea rax, [rbx+10h]; jumptable 000000000001338C case 3 mov [rbx], rax lea rsi, aBranchPredicti; "Branch Prediction Buffer" lea rdx, aBranchPredicti+18h; "" jmp short loc_133E8 loc_133D3: lea rax, [rbx+10h]; jumptable 000000000001338C case 1 mov [rbx], rax lea rsi, aAlwaysNotTaken; "Always Not Taken" lea rdx, aAlwaysNotTaken+10h; "" loc_133E8: mov rdi, rbx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) loc_133F0: mov rax, rbx pop rbx retn def_1338C: mov rdi, rbx; jumptable 000000000001338C default case call _ZN15BranchPredictor12strategyNameB5cxx11Ev_cold_1; BranchPredictor::strategyName(void) [clone] jmp short loc_133F0
_QWORD * BranchPredictor::strategyName[abi:cxx11]( _QWORD *a1, _DWORD *a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { char *v14; // rsi char *v15; // rdx switch ( *a2 ) { case 0: *a1 = a1 + 2; v14 = "Always Taken"; v15 = ""; goto LABEL_6; case 1: *a1 = a1 + 2; v14 = "Always Not Taken"; v15 = ""; goto LABEL_6; case 2: *a1 = a1 + 2; v14 = "Back Taken Forward Not Taken"; v15 = ""; goto LABEL_6; case 3: *a1 = a1 + 2; v14 = "Branch Prediction Buffer"; v15 = ""; LABEL_6: std::string::_M_construct<char const*>(a1, v14, (long long)v15); break; default: BranchPredictor::strategyName[abi:cxx11](a1, (long long)a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14); break; } return a1; }
strategyName[abi:cxx11]: PUSH RBX MOV RBX,RDI MOV EAX,dword ptr [RSI] CMP RAX,0x3 JA 0x001133f5 LEA RCX,[0x116200] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_0: LEA RAX,[RBX + 0x10] MOV qword ptr [RBX],RAX LEA RSI,[0x116262] LEA RDX,[0x11626e] JMP 0x001133e8 caseD_2: LEA RAX,[RBX + 0x10] MOV qword ptr [RBX],RAX LEA RSI,[0x11626f] LEA RDX,[0x11628b] JMP 0x001133e8 caseD_3: LEA RAX,[RBX + 0x10] MOV qword ptr [RBX],RAX LEA RSI,[0x11628c] LEA RDX,[0x1162a4] JMP 0x001133e8 caseD_1: LEA RAX,[RBX + 0x10] MOV qword ptr [RBX],RAX LEA RSI,[0x116251] LEA RDX,[0x116261] LAB_001133e8: MOV RDI,RBX CALL 0x0010ea5a LAB_001133f0: MOV RAX,RBX POP RBX RET default: MOV RDI,RBX CALL 0x0010b4d8 JMP 0x001133f0
/* BranchPredictor::strategyName[abi:cxx11]() */ void BranchPredictor::strategyName_abi_cxx11_(void) { int4 *in_RSI; BranchPredictor *in_RDI; switch(*in_RSI) { case 0: *(BranchPredictor **)in_RDI = in_RDI + 0x10; break; case 1: *(BranchPredictor **)in_RDI = in_RDI + 0x10; break; case 2: *(BranchPredictor **)in_RDI = in_RDI + 0x10; break; case 3: *(BranchPredictor **)in_RDI = in_RDI + 0x10; break; default: strategyName_abi_cxx11_(in_RDI); return; } std::__cxx11::string::_M_construct<char_const*>(); return; }
49,322
BranchPredictor::strategyName[abi:cxx11]()
EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/src/BranchPredictor.cpp
std::string BranchPredictor::strategyName() { switch (this->strategy) { case NT: return "Always Not Taken"; case AT: return "Always Taken"; case BTFNT: return "Back Taken Forward Not Taken"; case BPB: return "Branch Prediction Buffer"; default: dbgprintf("Unknown Branch Perdiction Strategy!\n"); break; } return "error"; // should not go here }
O3
cpp
BranchPredictor::strategyName[abi:cxx11](): pushq %rbx movq %rdi, %rbx movl (%rsi), %eax cmpq $0x3, %rax ja 0x1333b leaq 0x2f35(%rip), %rcx # 0x16200 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax leaq 0x10(%rbx), %rax movq %rax, (%rbx) leaq 0x2f80(%rip), %rsi # 0x16262 leaq 0x2f85(%rip), %rdx # 0x1626e jmp 0x1332e leaq 0x10(%rbx), %rax movq %rax, (%rbx) leaq 0x2f76(%rip), %rsi # 0x1626f leaq 0x2f8b(%rip), %rdx # 0x1628b jmp 0x1332e leaq 0x10(%rbx), %rax movq %rax, (%rbx) leaq 0x2f7c(%rip), %rsi # 0x1628c leaq 0x2f8d(%rip), %rdx # 0x162a4 jmp 0x1332e leaq 0x10(%rbx), %rax movq %rax, (%rbx) leaq 0x2f2a(%rip), %rsi # 0x16251 leaq 0x2f33(%rip), %rdx # 0x16261 movq %rbx, %rdi callq 0xe9da movq %rbx, %rax popq %rbx retq movq %rbx, %rdi callq 0xb4d8 jmp 0x13336 nopl (%rax)
_ZN15BranchPredictor12strategyNameB5cxx11Ev: push rbx mov rbx, rdi mov eax, [rsi] cmp rax, 3; switch 4 cases ja short def_132D2; jumptable 00000000000132D2 default case lea rcx, jpt_132D2 movsxd rax, ds:(jpt_132D2 - 16200h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_132D4: lea rax, [rbx+10h]; jumptable 00000000000132D2 case 0 mov [rbx], rax lea rsi, aAlwaysTaken; "Always Taken" lea rdx, aAlwaysTaken+0Ch; "" jmp short loc_1332E loc_132EB: lea rax, [rbx+10h]; jumptable 00000000000132D2 case 2 mov [rbx], rax lea rsi, aBackTakenForwa; "Back Taken Forward Not Taken" lea rdx, aBackTakenForwa+1Ch; "" jmp short loc_1332E loc_13302: lea rax, [rbx+10h]; jumptable 00000000000132D2 case 3 mov [rbx], rax lea rsi, aBranchPredicti; "Branch Prediction Buffer" lea rdx, aBranchPredicti+18h; "" jmp short loc_1332E loc_13319: lea rax, [rbx+10h]; jumptable 00000000000132D2 case 1 mov [rbx], rax lea rsi, aAlwaysNotTaken; "Always Not Taken" lea rdx, aAlwaysNotTaken+10h; "" loc_1332E: mov rdi, rbx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) loc_13336: mov rax, rbx pop rbx retn def_132D2: mov rdi, rbx; jumptable 00000000000132D2 default case call _ZN15BranchPredictor12strategyNameB5cxx11Ev_cold_1; BranchPredictor::strategyName(void) [clone] jmp short loc_13336
_QWORD * BranchPredictor::strategyName[abi:cxx11]( _QWORD *a1, _DWORD *a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { char *v14; // rsi char *v15; // rdx switch ( *a2 ) { case 0: *a1 = a1 + 2; v14 = "Always Taken"; v15 = ""; goto LABEL_6; case 1: *a1 = a1 + 2; v14 = "Always Not Taken"; v15 = ""; goto LABEL_6; case 2: *a1 = a1 + 2; v14 = "Back Taken Forward Not Taken"; v15 = ""; goto LABEL_6; case 3: *a1 = a1 + 2; v14 = "Branch Prediction Buffer"; v15 = ""; LABEL_6: std::string::_M_construct<char const*>((long long)a1, v14, (long long)v15); break; default: BranchPredictor::strategyName[abi:cxx11](a1, (long long)a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14); break; } return a1; }
strategyName[abi:cxx11]: PUSH RBX MOV RBX,RDI MOV EAX,dword ptr [RSI] CMP RAX,0x3 JA 0x0011333b LEA RCX,[0x116200] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_0: LEA RAX,[RBX + 0x10] MOV qword ptr [RBX],RAX LEA RSI,[0x116262] LEA RDX,[0x11626e] JMP 0x0011332e caseD_2: LEA RAX,[RBX + 0x10] MOV qword ptr [RBX],RAX LEA RSI,[0x11626f] LEA RDX,[0x11628b] JMP 0x0011332e caseD_3: LEA RAX,[RBX + 0x10] MOV qword ptr [RBX],RAX LEA RSI,[0x11628c] LEA RDX,[0x1162a4] JMP 0x0011332e caseD_1: LEA RAX,[RBX + 0x10] MOV qword ptr [RBX],RAX LEA RSI,[0x116251] LEA RDX,[0x116261] LAB_0011332e: MOV RDI,RBX CALL 0x0010e9da LAB_00113336: MOV RAX,RBX POP RBX RET default: MOV RDI,RBX CALL 0x0010b4d8 JMP 0x00113336
/* BranchPredictor::strategyName[abi:cxx11]() */ void BranchPredictor::strategyName_abi_cxx11_(void) { int4 *in_RSI; BranchPredictor *in_RDI; switch(*in_RSI) { case 0: *(BranchPredictor **)in_RDI = in_RDI + 0x10; break; case 1: *(BranchPredictor **)in_RDI = in_RDI + 0x10; break; case 2: *(BranchPredictor **)in_RDI = in_RDI + 0x10; break; case 3: *(BranchPredictor **)in_RDI = in_RDI + 0x10; break; default: strategyName_abi_cxx11_(in_RDI); return; } std::__cxx11::string::_M_construct<char_const*>(); return; }
49,323
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [32], char const*>(char const (&) [32], char const*&&)
monkey531[P]llama/common/./json.hpp
inline OutStringType concat(Args && ... args) { OutStringType str; str.reserve(concat_length(args...)); concat_into(str, std::forward<Args>(args)...); return str; }
O2
cpp
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [32], char const*>(char const (&) [32], char const*&&): pushq %r15 pushq %r14 pushq %rbx movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx leaq 0x10(%rdi), %rax movq %rax, (%rdi) andq $0x0, 0x8(%rdi) movb $0x0, 0x10(%rdi) movq %rsi, %rdi movq %rdx, %rsi callq 0x46079 movq %rbx, %rdi movq %rax, %rsi callq 0x24fb0 movq %rbx, %rdi movq %r15, %rsi movq %r14, %rdx callq 0xab6b2 movq %rbx, %rax popq %rbx popq %r14 popq %r15 retq movq %rax, %r14 movq %rbx, %rdi callq 0x25478 movq %r14, %rdi callq 0x251e0
_ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA32_KcPS9_EEET_DpOT0_: push r15 push r14 push rbx mov r14, rdx mov r15, rsi mov rbx, rdi lea rax, [rdi+10h] mov [rdi], rax and qword ptr [rdi+8], 0 mov byte ptr [rdi+10h], 0 mov rdi, rsi mov rsi, rdx call _ZN8nlohmann16json_abi_v3_11_36detail13concat_lengthIJPKcEEEmS4_DpRKT_; nlohmann::json_abi_v3_11_3::detail::concat_length<char const*>(char const*,char const* const&) mov rdi, rbx mov rsi, rax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) mov rdi, rbx mov rsi, r15 mov rdx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA32_KcJPS9_ETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_ mov rax, rbx pop rbx pop r14 pop r15 retn mov r14, rax mov rdi, rbx; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, r14 call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[32],char const*>( long long a1, long long a2, _QWORD *a3) { long long v4; // rax *(_QWORD *)a1 = a1 + 16; *(_QWORD *)(a1 + 8) = 0LL; *(_BYTE *)(a1 + 16) = 0; v4 = nlohmann::json_abi_v3_11_3::detail::concat_length<char const*>(a2, a3); std::string::reserve(a1, v4); ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA32_KcJPS9_ETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_( a1, a2, a3); return a1; }
concat<std::__cxx11::string,char_const(&)[32],char_const*>: PUSH R15 PUSH R14 PUSH RBX MOV R14,RDX MOV R15,RSI MOV RBX,RDI LEA RAX,[RDI + 0x10] MOV qword ptr [RDI],RAX AND qword ptr [RDI + 0x8],0x0 MOV byte ptr [RDI + 0x10],0x0 MOV RDI,RSI MOV RSI,RDX CALL 0x00146079 LAB_001ab641: MOV RDI,RBX MOV RSI,RAX CALL 0x00124fb0 MOV RDI,RBX MOV RSI,R15 MOV RDX,R14 CALL 0x001ab6b2 LAB_001ab65a: MOV RAX,RBX POP RBX POP R14 POP R15 RET
/* std::__cxx11::string nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string, char const (&) [32], char const*>(char const (&) [32], char const*&&) */ detail * __thiscall nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[32],char_const*> (detail *this,char *param_1,char **param_2) { *(detail **)this = this + 0x10; *(int8 *)(this + 8) = 0; this[0x10] = (detail)0x0; concat_length<char_const*>(param_1,param_2); /* try { // try from 001ab641 to 001ab659 has its CatchHandler @ 001ab663 */ std::__cxx11::string::reserve((ulong)this); _ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA32_KcJPS9_ETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_ (this,param_1,param_2); return this; }
49,324
PolyLine<float>::lip(unsigned long, Eigen::Matrix<float, 3, 1, 0, 3, 1> const&) const
zkingston[P]unknot/src/knot.hh
[[nodiscard]] auto lip(size_type index, const VectorT &target) const -> std::pair<PolyLine<RealT>, RealT> { auto k_prime = *this; const auto &p0 = points[index]; auto zeros = find_interpolation_intersections(index, target); RealT best = RealT{0.}; for (auto &z : zeros) { k_prime[index] = interpolate(p0, target, z); auto clr = k_prime.clearance(); // // If collision detected, back off until safe if (clr < tolerance) { // Binary search to find largest safe z while (z > tolerance and clr < tolerance) { z /= RealT{2.}; k_prime[index] = interpolate(p0, target, z); clr = k_prime.clearance(); } // Update best if valid position found if (clr > tolerance) { best = std::max(z, best); } break; } best = z; } k_prime[index] = p0 + best * (target - p0); return {k_prime, best}; }
O1
cpp
PolyLine<float>::lip(unsigned long, Eigen::Matrix<float, 3, 1, 0, 3, 1> const&) const: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rcx, %r14 movq %rdx, %r15 movq %rsi, %r12 movq %rdi, 0x40(%rsp) leaq 0x10(%rsp), %rdi callq 0x38d58 leaq (%r15,%r15,2), %r13 leaq (,%r13,4), %rbp addq (%r12), %rbp leaq 0x28(%rsp), %rdi movq %r12, %rsi movq %r15, %rdx movq %r14, %rcx callq 0x3a202 movq 0x28(%rsp), %r12 movq 0x30(%rsp), %rbx vxorps %xmm2, %xmm2, %xmm2 cmpq %rbx, %r12 je 0x3ba7f leaq 0x10(%rsp), %r15 vmovss %xmm2, 0x8(%rsp) vmovss 0x8(%r14), %xmm0 vmovss 0x8(%rbp), %xmm1 vsubss %xmm1, %xmm0, %xmm0 vbroadcastss (%r12), %xmm2 vmulss %xmm0, %xmm2, %xmm0 vaddss %xmm0, %xmm1, %xmm0 movq 0x10(%rsp), %rax vmovsd (%r14), %xmm1 vmovsd (%rbp), %xmm3 vsubps %xmm3, %xmm1, %xmm1 vmulps %xmm1, %xmm2, %xmm1 vaddps %xmm1, %xmm3, %xmm1 vmovlps %xmm1, (%rax,%r13,4) vmovss %xmm0, 0x8(%rax,%r13,4) movq %r15, %rdi callq 0x3a728 vmovss 0x25366c(%rip), %xmm3 # 0x28f030 vucomiss %xmm0, %xmm3 jbe 0x3ba46 vmovss %xmm0, 0xc(%rsp) vmovss (%r12), %xmm1 vucomiss %xmm0, %xmm3 jbe 0x3ba4e vucomiss %xmm3, %xmm1 jbe 0x3ba4e vmulss 0x253636(%rip), %xmm1, %xmm0 # 0x28f020 vmovss %xmm0, (%r12) vmovss 0x8(%r14), %xmm1 vmovss 0x8(%rbp), %xmm2 vsubss %xmm2, %xmm1, %xmm1 vmulss %xmm1, %xmm0, %xmm1 vaddss %xmm1, %xmm2, %xmm1 movq 0x10(%rsp), %rax vmovsd (%r14), %xmm2 vmovsd (%rbp), %xmm3 vsubps %xmm3, %xmm2, %xmm2 vbroadcastss %xmm0, %xmm0 vmulps %xmm2, %xmm0, %xmm0 vaddps %xmm0, %xmm3, %xmm0 vmovlps %xmm0, (%rax,%r13,4) vmovss %xmm1, 0x8(%rax,%r13,4) movq %r15, %rdi callq 0x3a728 vmovss 0x2535ec(%rip), %xmm3 # 0x28f030 jmp 0x3b9d0 vmovss (%r12), %xmm2 jmp 0x3ba6c vucomiss %xmm3, %xmm0 jbe 0x3ba60 vmovss 0x8(%rsp), %xmm2 vmaxss %xmm1, %xmm2, %xmm2 jmp 0x3ba66 vmovss 0x8(%rsp), %xmm2 vmovss 0xc(%rsp), %xmm0 vucomiss %xmm0, %xmm3 ja 0x3ba7f addq $0x4, %r12 cmpq %rbx, %r12 jne 0x3b969 vmovss %xmm2, 0x8(%rsp) leaq 0x10(%rsp), %rsi movq (%rsi), %rax vmovss (%r14), %xmm0 vmovss (%rbp), %xmm1 vsubss %xmm1, %xmm0, %xmm0 vmulss %xmm0, %xmm2, %xmm0 vaddss %xmm0, %xmm1, %xmm0 vmovss %xmm0, (%rax,%r13,4) vmovss 0x4(%r14), %xmm0 vmovss 0x4(%rbp), %xmm1 vsubss %xmm1, %xmm0, %xmm0 vmulss %xmm0, %xmm2, %xmm0 vaddss %xmm0, %xmm1, %xmm0 vmovss %xmm0, 0x4(%rax,%r13,4) vmovss 0x8(%r14), %xmm0 vmovss 0x8(%rbp), %xmm1 vsubss %xmm1, %xmm0, %xmm0 vmulss %xmm0, %xmm2, %xmm0 vaddss %xmm0, %xmm1, %xmm0 vmovss %xmm0, 0x8(%rax,%r13,4) movq 0x40(%rsp), %rbx movq %rbx, %rdi callq 0x38d58 vmovss 0x8(%rsp), %xmm0 vmovss %xmm0, 0x18(%rbx) movq 0x28(%rsp), %rdi testq %rdi, %rdi je 0x3bb14 movq 0x38(%rsp), %rsi subq %rdi, %rsi callq 0xfa70 movq 0x10(%rsp), %rdi testq %rdi, %rdi je 0x3bb2b movq 0x20(%rsp), %rsi subq %rdi, %rsi callq 0xfa70 movq %rbx, %rax addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x3bb46 movq %rax, %rbx jmp 0x3bb60 jmp 0x3bb46 movq %rax, %rbx movq 0x28(%rsp), %rdi testq %rdi, %rdi je 0x3bb60 movq 0x38(%rsp), %rsi subq %rdi, %rsi callq 0xfa70 movq 0x10(%rsp), %rdi testq %rdi, %rdi je 0x3bb77 movq 0x20(%rsp), %rsi subq %rdi, %rsi callq 0xfa70 movq %rbx, %rdi callq 0x101c0 nop
_ZNK8PolyLineIfE3lipEmRKN5Eigen6MatrixIfLi3ELi1ELi0ELi3ELi1EEE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h mov r14, rcx mov r15, rdx mov r12, rsi mov [rsp+78h+var_38], rdi lea rdi, [rsp+78h+var_68] call _ZNSt6vectorIN5Eigen6MatrixIfLi3ELi1ELi0ELi3ELi1EEESaIS2_EEC2ERKS4_; std::vector<Eigen::Matrix<float,3,1,0,3,1>>::vector(std::vector<Eigen::Matrix<float,3,1,0,3,1>> const&) lea r13, [r15+r15*2] lea rbp, ds:0[r13*4] add rbp, [r12] lea rdi, [rsp+78h+var_50] mov rsi, r12 mov rdx, r15 mov rcx, r14 call _ZNK8PolyLineIfE32find_interpolation_intersectionsEmRKN5Eigen6MatrixIfLi3ELi1ELi0ELi3ELi1EEE; PolyLine<float>::find_interpolation_intersections(ulong,Eigen::Matrix<float,3,1,0,3,1> const&) mov r12, [rsp+78h+var_50] mov rbx, [rsp+78h+var_48] vxorps xmm2, xmm2, xmm2 cmp r12, rbx jz loc_3BA7F lea r15, [rsp+78h+var_68] loc_3B969: vmovss [rsp+78h+var_70], xmm2 vmovss xmm0, dword ptr [r14+8] vmovss xmm1, dword ptr [rbp+8] vsubss xmm0, xmm0, xmm1 vbroadcastss xmm2, dword ptr [r12] vmulss xmm0, xmm2, xmm0 vaddss xmm0, xmm1, xmm0 mov rax, [rsp+78h+var_68] vmovsd xmm1, qword ptr [r14] vmovsd xmm3, qword ptr [rbp+0] vsubps xmm1, xmm1, xmm3 vmulps xmm1, xmm2, xmm1 vaddps xmm1, xmm3, xmm1 vmovlps qword ptr [rax+r13*4], xmm1 vmovss dword ptr [rax+r13*4+8], xmm0 mov rdi, r15 call _ZNK8PolyLineIfE9clearanceEv; PolyLine<float>::clearance(void) vmovss xmm3, cs:dword_28F030 vucomiss xmm3, xmm0 jbe short loc_3BA46 vmovss [rsp+78h+var_6C], xmm0 loc_3B9D0: vmovss xmm1, dword ptr [r12] vucomiss xmm3, xmm0 jbe short loc_3BA4E vucomiss xmm1, xmm3 jbe short loc_3BA4E vmulss xmm0, xmm1, dword ptr cs:xmmword_28F020 vmovss dword ptr [r12], xmm0 vmovss xmm1, dword ptr [r14+8] vmovss xmm2, dword ptr [rbp+8] vsubss xmm1, xmm1, xmm2 vmulss xmm1, xmm0, xmm1 vaddss xmm1, xmm2, xmm1 mov rax, [rsp+78h+var_68] vmovsd xmm2, qword ptr [r14] vmovsd xmm3, qword ptr [rbp+0] vsubps xmm2, xmm2, xmm3 vbroadcastss xmm0, xmm0 vmulps xmm0, xmm0, xmm2 vaddps xmm0, xmm3, xmm0 vmovlps qword ptr [rax+r13*4], xmm0 vmovss dword ptr [rax+r13*4+8], xmm1 mov rdi, r15 call _ZNK8PolyLineIfE9clearanceEv; PolyLine<float>::clearance(void) vmovss xmm3, cs:dword_28F030 jmp short loc_3B9D0 loc_3BA46: vmovss xmm2, dword ptr [r12] jmp short loc_3BA6C loc_3BA4E: vucomiss xmm0, xmm3 jbe short loc_3BA60 vmovss xmm2, [rsp+78h+var_70] vmaxss xmm2, xmm2, xmm1 jmp short loc_3BA66 loc_3BA60: vmovss xmm2, [rsp+78h+var_70] loc_3BA66: vmovss xmm0, [rsp+78h+var_6C] loc_3BA6C: vucomiss xmm3, xmm0 ja short loc_3BA7F add r12, 4 cmp r12, rbx jnz loc_3B969 loc_3BA7F: vmovss [rsp+78h+var_70], xmm2 lea rsi, [rsp+78h+var_68] mov rax, [rsi] vmovss xmm0, dword ptr [r14] vmovss xmm1, dword ptr [rbp+0] vsubss xmm0, xmm0, xmm1 vmulss xmm0, xmm2, xmm0 vaddss xmm0, xmm1, xmm0 vmovss dword ptr [rax+r13*4], xmm0 vmovss xmm0, dword ptr [r14+4] vmovss xmm1, dword ptr [rbp+4] vsubss xmm0, xmm0, xmm1 vmulss xmm0, xmm2, xmm0 vaddss xmm0, xmm1, xmm0 vmovss dword ptr [rax+r13*4+4], xmm0 vmovss xmm0, dword ptr [r14+8] vmovss xmm1, dword ptr [rbp+8] vsubss xmm0, xmm0, xmm1 vmulss xmm0, xmm2, xmm0 vaddss xmm0, xmm1, xmm0 vmovss dword ptr [rax+r13*4+8], xmm0 mov rbx, [rsp+78h+var_38] mov rdi, rbx call _ZNSt6vectorIN5Eigen6MatrixIfLi3ELi1ELi0ELi3ELi1EEESaIS2_EEC2ERKS4_; std::vector<Eigen::Matrix<float,3,1,0,3,1>>::vector(std::vector<Eigen::Matrix<float,3,1,0,3,1>> const&) vmovss xmm0, [rsp+78h+var_70] vmovss dword ptr [rbx+18h], xmm0 mov rdi, [rsp+78h+var_50]; void * test rdi, rdi jz short loc_3BB14 mov rsi, [rsp+78h+var_40] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3BB14: mov rdi, [rsp+78h+var_68]; void * test rdi, rdi jz short loc_3BB2B mov rsi, [rsp+78h+var_58] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3BB2B: mov rax, rbx add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_3BB46 mov rbx, rax jmp short loc_3BB60 jmp short $+2 loc_3BB46: mov rbx, rax mov rdi, [rsp+arg_20]; void * test rdi, rdi jz short loc_3BB60 mov rsi, [rsp+arg_30] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3BB60: mov rdi, [rsp+arg_8]; void * test rdi, rdi jz short loc_3BB77 mov rsi, [rsp+arg_18] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3BB77: mov rdi, rbx call __Unwind_Resume
long long * PolyLine<float>::lip( long long *a1, long long *a2, long long a3, long long a4, __m128 a5, __m128 a6, __m128 _XMM2) { char *v12; // rbx char v26; // cf char v27; // zf void *v66[3]; // [rsp+10h] [rbp-68h] BYREF void *v67; // [rsp+28h] [rbp-50h] BYREF char *v68; // [rsp+30h] [rbp-48h] long long v69; // [rsp+38h] [rbp-40h] long long *v70; // [rsp+40h] [rbp-38h] _R14 = a4; v70 = a1; std::vector<Eigen::Matrix<float,3,1,0,3,1>>::vector((long long *)v66, a2, a5); _R13 = 3 * a3; _RBP = *a2 + 12 * a3; PolyLine<float>::find_interpolation_intersections((long long *)&v67, a2, a3, _R14, a5, a6); _R12 = (char *)v67; v12 = v68; __asm { vxorps xmm2, xmm2, xmm2 } if ( v67 != v68 ) { do { __asm { vmovss [rsp+78h+var_70], xmm2 vmovss xmm0, dword ptr [r14+8] vmovss xmm1, dword ptr [rbp+8] vsubss xmm0, xmm0, xmm1 vbroadcastss xmm2, dword ptr [r12] vmulss xmm0, xmm2, xmm0 vaddss xmm0, xmm1, xmm0 } _RAX = v66[0]; __asm { vmovsd xmm1, qword ptr [r14] vmovsd xmm3, qword ptr [rbp+0] vsubps xmm1, xmm1, xmm3 vmulps xmm1, xmm2, xmm1 vaddps xmm1, xmm3, xmm1 vmovlps qword ptr [rax+r13*4], xmm1 vmovss dword ptr [rax+r13*4+8], xmm0 } _XMM0 = PolyLine<float>::clearance((long long *)v66); __asm { vmovss xmm3, cs:dword_28F030 vucomiss xmm3, xmm0 } if ( v26 | v27 ) { __asm { vmovss xmm2, dword ptr [r12] } } else { __asm { vmovss [rsp+78h+var_6C], xmm0 } while ( 1 ) { __asm { vmovss xmm1, dword ptr [r12] vucomiss xmm3, xmm0 } if ( v26 | v27 ) break; __asm { vucomiss xmm1, xmm3 vmulss xmm0, xmm1, dword ptr cs:xmmword_28F020 vmovss dword ptr [r12], xmm0 vmovss xmm1, dword ptr [r14+8] vmovss xmm2, dword ptr [rbp+8] vsubss xmm1, xmm1, xmm2 vmulss xmm1, xmm0, xmm1 vaddss xmm1, xmm2, xmm1 } _RAX = v66[0]; __asm { vmovsd xmm2, qword ptr [r14] vmovsd xmm3, qword ptr [rbp+0] vsubps xmm2, xmm2, xmm3 vbroadcastss xmm0, xmm0 vmulps xmm0, xmm0, xmm2 vaddps xmm0, xmm3, xmm0 vmovlps qword ptr [rax+r13*4], xmm0 vmovss dword ptr [rax+r13*4+8], xmm1 } _XMM0 = PolyLine<float>::clearance((long long *)v66); __asm { vmovss xmm3, cs:dword_28F030 } } __asm { vucomiss xmm0, xmm3 vmovss xmm2, [rsp+78h+var_70] vmovss xmm0, [rsp+78h+var_6C] } } __asm { vucomiss xmm3, xmm0 } if ( !(v26 | v27) ) break; _R12 += 4; } while ( _R12 != v12 ); } __asm { vmovss [rsp+78h+var_70], xmm2 } _RAX = v66[0]; __asm { vmovss xmm0, dword ptr [r14] vmovss xmm1, dword ptr [rbp+0] vsubss xmm0, xmm0, xmm1 vmulss xmm0, xmm2, xmm0 vaddss xmm0, xmm1, xmm0 vmovss dword ptr [rax+r13*4], xmm0 vmovss xmm0, dword ptr [r14+4] vmovss xmm1, dword ptr [rbp+4] vsubss xmm0, xmm0, xmm1 vmulss xmm0, xmm2, xmm0 vaddss xmm0, xmm1, xmm0 vmovss dword ptr [rax+r13*4+4], xmm0 vmovss xmm0, dword ptr [r14+8] vmovss xmm1, dword ptr [rbp+8] vsubss xmm0, xmm0, xmm1 vmulss xmm0, xmm2, xmm0 vaddss xmm0, xmm1, xmm0 vmovss dword ptr [rax+r13*4+8], xmm0 } _RBX = v70; std::vector<Eigen::Matrix<float,3,1,0,3,1>>::vector(v70, (long long *)v66, _XMM0); __asm { vmovss xmm0, [rsp+78h+var_70] vmovss dword ptr [rbx+18h], xmm0 } if ( v67 ) operator delete(v67, v69 - (_QWORD)v67); if ( v66[0] ) operator delete(v66[0], (char *)v66[2] - (char *)v66[0]); return _RBX; }
lip: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 MOV R14,RCX MOV R15,RDX MOV R12,RSI MOV qword ptr [RSP + 0x40],RDI LEA RDI,[RSP + 0x10] CALL 0x00138d58 LEA R13,[R15 + R15*0x2] LEA RBP,[R13*0x4] ADD RBP,qword ptr [R12] LAB_0013b93a: LEA RDI,[RSP + 0x28] MOV RSI,R12 MOV RDX,R15 MOV RCX,R14 CALL 0x0013a202 MOV R12,qword ptr [RSP + 0x28] MOV RBX,qword ptr [RSP + 0x30] VXORPS XMM2,XMM2,XMM2 CMP R12,RBX JZ 0x0013ba7f LEA R15,[RSP + 0x10] LAB_0013b969: VMOVSS dword ptr [RSP + 0x8],XMM2 VMOVSS XMM0,dword ptr [R14 + 0x8] VMOVSS XMM1,dword ptr [RBP + 0x8] VSUBSS XMM0,XMM0,XMM1 VBROADCASTSS XMM2,dword ptr [R12] VMULSS XMM0,XMM2,XMM0 VADDSS XMM0,XMM1,XMM0 MOV RAX,qword ptr [RSP + 0x10] VMOVSD XMM1,qword ptr [R14] VMOVSD XMM3,qword ptr [RBP] VSUBPS XMM1,XMM1,XMM3 VMULPS XMM1,XMM2,XMM1 VADDPS XMM1,XMM3,XMM1 VMOVLPS qword ptr [RAX + R13*0x4],XMM1 VMOVSS dword ptr [RAX + R13*0x4 + 0x8],XMM0 LAB_0013b9b4: MOV RDI,R15 CALL 0x0013a728 VMOVSS XMM3,dword ptr [0x0038f030] VUCOMISS XMM3,XMM0 JBE 0x0013ba46 VMOVSS dword ptr [RSP + 0xc],XMM0 LAB_0013b9d0: VMOVSS XMM1,dword ptr [R12] VUCOMISS XMM3,XMM0 JBE 0x0013ba4e VUCOMISS XMM1,XMM3 JBE 0x0013ba4e VMULSS XMM0,XMM1,dword ptr [0x0038f020] VMOVSS dword ptr [R12],XMM0 VMOVSS XMM1,dword ptr [R14 + 0x8] VMOVSS XMM2,dword ptr [RBP + 0x8] VSUBSS XMM1,XMM1,XMM2 VMULSS XMM1,XMM0,XMM1 VADDSS XMM1,XMM2,XMM1 MOV RAX,qword ptr [RSP + 0x10] VMOVSD XMM2,qword ptr [R14] VMOVSD XMM3,qword ptr [RBP] VSUBPS XMM2,XMM2,XMM3 VBROADCASTSS XMM0,XMM0 VMULPS XMM0,XMM0,XMM2 VADDPS XMM0,XMM3,XMM0 VMOVLPS qword ptr [RAX + R13*0x4],XMM0 VMOVSS dword ptr [RAX + R13*0x4 + 0x8],XMM1 LAB_0013ba34: MOV RDI,R15 CALL 0x0013a728 VMOVSS XMM3,dword ptr [0x0038f030] JMP 0x0013b9d0 LAB_0013ba46: VMOVSS XMM2,dword ptr [R12] JMP 0x0013ba6c LAB_0013ba4e: VUCOMISS XMM0,XMM3 JBE 0x0013ba60 VMOVSS XMM2,dword ptr [RSP + 0x8] VMAXSS XMM2,XMM2,XMM1 JMP 0x0013ba66 LAB_0013ba60: VMOVSS XMM2,dword ptr [RSP + 0x8] LAB_0013ba66: VMOVSS XMM0,dword ptr [RSP + 0xc] LAB_0013ba6c: VUCOMISS XMM3,XMM0 JA 0x0013ba7f ADD R12,0x4 CMP R12,RBX JNZ 0x0013b969 LAB_0013ba7f: VMOVSS dword ptr [RSP + 0x8],XMM2 LEA RSI,[RSP + 0x10] MOV RAX,qword ptr [RSI] VMOVSS XMM0,dword ptr [R14] VMOVSS XMM1,dword ptr [RBP] VSUBSS XMM0,XMM0,XMM1 VMULSS XMM0,XMM2,XMM0 VADDSS XMM0,XMM1,XMM0 VMOVSS dword ptr [RAX + R13*0x4],XMM0 VMOVSS XMM0,dword ptr [R14 + 0x4] VMOVSS XMM1,dword ptr [RBP + 0x4] VSUBSS XMM0,XMM0,XMM1 VMULSS XMM0,XMM2,XMM0 VADDSS XMM0,XMM1,XMM0 VMOVSS dword ptr [RAX + R13*0x4 + 0x4],XMM0 VMOVSS XMM0,dword ptr [R14 + 0x8] VMOVSS XMM1,dword ptr [RBP + 0x8] VSUBSS XMM0,XMM0,XMM1 VMULSS XMM0,XMM2,XMM0 VADDSS XMM0,XMM1,XMM0 VMOVSS dword ptr [RAX + R13*0x4 + 0x8],XMM0 LAB_0013bae5: MOV RBX,qword ptr [RSP + 0x40] MOV RDI,RBX CALL 0x00138d58 LAB_0013baf2: VMOVSS XMM0,dword ptr [RSP + 0x8] VMOVSS dword ptr [RBX + 0x18],XMM0 MOV RDI,qword ptr [RSP + 0x28] TEST RDI,RDI JZ 0x0013bb14 MOV RSI,qword ptr [RSP + 0x38] SUB RSI,RDI CALL 0x0010fa70 LAB_0013bb14: MOV RDI,qword ptr [RSP + 0x10] TEST RDI,RDI JZ 0x0013bb2b MOV RSI,qword ptr [RSP + 0x20] SUB RSI,RDI CALL 0x0010fa70 LAB_0013bb2b: MOV RAX,RBX ADD RSP,0x48 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* PolyLine<float>::lip(unsigned long, Eigen::Matrix<float, 3, 1, 0, 3, 1> const&) const */ vector<Eigen::Matrix<float,3,1,0,3,1>,std::allocator<Eigen::Matrix<float,3,1,0,3,1>>> * PolyLine<float>::lip(ulong param_1,Matrix *param_2) { float fVar1; float fVar2; ulong uVar3; int8 uVar4; vector<Eigen::Matrix<float,3,1,0,3,1>,std::allocator<Eigen::Matrix<float,3,1,0,3,1>>> *pvVar5; float *in_RCX; long in_RDX; float *pfVar6; float *pfVar7; float fVar8; float fVar9; int1 auVar10 [16]; int1 auVar11 [16]; int1 auVar12 [16]; int1 auVar13 [16]; int1 auVar14 [64]; int1 auVar15 [16]; int1 auVar16 [16]; void *local_68 [2]; long local_58; float *local_50; float *local_48; long local_40; vector<Eigen::Matrix<float,3,1,0,3,1>,std::allocator<Eigen::Matrix<float,3,1,0,3,1>>> *local_38; local_38 = (vector<Eigen::Matrix<float,3,1,0,3,1>,std::allocator<Eigen::Matrix<float,3,1,0,3,1>>> *)param_1; std::vector<Eigen::Matrix<float,3,1,0,3,1>,std::allocator<Eigen::Matrix<float,3,1,0,3,1>>>::vector ((vector<Eigen::Matrix<float,3,1,0,3,1>,std::allocator<Eigen::Matrix<float,3,1,0,3,1>>> *)local_68,param_2); pfVar6 = (float *)(in_RDX * 0xc + *(long *)param_2); /* try { // try from 0013b93a to 0013b94c has its CatchHandler @ 0013bb3f */ find_interpolation_intersections((ulong)&local_50,param_2); auVar14 = ZEXT1664(ZEXT816(0) << 0x40); fVar9 = 0.0; if (local_50 != local_48) { pfVar7 = local_50; do { fVar9 = in_RCX[2]; fVar8 = pfVar6[2]; fVar1 = *pfVar7; auVar11._8_8_ = 0; auVar11._0_8_ = *(ulong *)in_RCX; uVar3 = *(ulong *)pfVar6; auVar15._8_8_ = 0; auVar15._0_8_ = uVar3; auVar11 = vsubps_avx(auVar11,auVar15); auVar12._0_4_ = (float)uVar3 + fVar1 * auVar11._0_4_; auVar12._4_4_ = (float)(uVar3 >> 0x20) + fVar1 * auVar11._4_4_; auVar12._8_4_ = fVar1 * auVar11._8_4_ + 0.0; auVar12._12_4_ = fVar1 * auVar11._12_4_ + 0.0; uVar4 = vmovlps_avx(auVar12); *(int8 *)((long)local_68[0] + in_RDX * 0xc) = uVar4; *(float *)((long)local_68[0] + in_RDX * 0xc + 8) = fVar8 + fVar1 * (fVar9 - fVar8); /* try { // try from 0013b9b4 to 0013b9bb has its CatchHandler @ 0013bb44 */ fVar8 = (float)clearance((PolyLine<float> *)local_68); fVar9 = fVar8; if (DAT_0038f030 <= fVar8) { auVar14 = ZEXT464((uint)*pfVar7); } else { while ((fVar1 = *pfVar7, fVar9 < DAT_0038f030 && (DAT_0038f030 < fVar1))) { fVar1 = fVar1 * DAT_0038f020; *pfVar7 = fVar1; fVar9 = in_RCX[2]; fVar2 = pfVar6[2]; auVar13._8_8_ = 0; auVar13._0_8_ = *(ulong *)in_RCX; uVar3 = *(ulong *)pfVar6; auVar16._8_8_ = 0; auVar16._0_8_ = uVar3; auVar11 = vsubps_avx(auVar13,auVar16); auVar10._0_4_ = (float)uVar3 + fVar1 * auVar11._0_4_; auVar10._4_4_ = (float)(uVar3 >> 0x20) + fVar1 * auVar11._4_4_; auVar10._8_4_ = fVar1 * auVar11._8_4_ + 0.0; auVar10._12_4_ = fVar1 * auVar11._12_4_ + 0.0; uVar4 = vmovlps_avx(auVar10); *(int8 *)((long)local_68[0] + in_RDX * 0xc) = uVar4; *(float *)((long)local_68[0] + in_RDX * 0xc + 8) = fVar2 + fVar1 * (fVar9 - fVar2); /* try { // try from 0013ba34 to 0013ba43 has its CatchHandler @ 0013bb46 */ fVar9 = (float)clearance((PolyLine<float> *)local_68); } if (fVar9 <= DAT_0038f030) { auVar14 = ZEXT464(auVar14._0_4_); } else { auVar11 = vmaxss_avx(ZEXT416(auVar14._0_4_),ZEXT416((uint)fVar1)); auVar14 = ZEXT1664(auVar11); } } fVar9 = auVar14._0_4_; } while ((DAT_0038f030 <= fVar8) && (pfVar7 = pfVar7 + 1, pfVar7 != local_48)); } pvVar5 = local_38; *(float *)((long)local_68[0] + in_RDX * 0xc) = *pfVar6 + fVar9 * (*in_RCX - *pfVar6); *(float *)((long)local_68[0] + in_RDX * 0xc + 4) = pfVar6[1] + fVar9 * (in_RCX[1] - pfVar6[1]); *(float *)((long)local_68[0] + in_RDX * 0xc + 8) = pfVar6[2] + fVar9 * (in_RCX[2] - pfVar6[2]); /* try { // try from 0013bae5 to 0013baf1 has its CatchHandler @ 0013bb3d */ std::vector<Eigen::Matrix<float,3,1,0,3,1>,std::allocator<Eigen::Matrix<float,3,1,0,3,1>>>::vector (local_38,(vector *)local_68); *(float *)(pvVar5 + 0x18) = fVar9; if (local_50 != (float *)0x0) { operator_delete(local_50,local_40 - (long)local_50); } if (local_68[0] != (void *)0x0) { operator_delete(local_68[0],local_58 - (long)local_68[0]); } return pvVar5; }
49,325
ac_psr_bitand
alca/libalca/parser.c
ac_expr *ac_psr_bitand(ac_parser *parser) { ac_expr *expr = ac_psr_bitxor(parser); if (!expr) return NULL; while (MATCH(parser, TOKEN_BITAND)) { ac_token *op = ac_psr_previous_token(parser); ac_expr *right = ac_psr_bitxor(parser); if (!right) { ac_expr_free_expression(expr); return NULL; } expr = ac_expr_new_binary(expr, op, right); } return expr; }
O0
c
ac_psr_bitand: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rdi callq 0x77b0 movq %rax, -0x18(%rbp) cmpq $0x0, -0x18(%rbp) jne 0xa5da movq $0x0, -0x8(%rbp) jmp 0xa649 jmp 0xa5dc movq -0x10(%rbp), %rdi movl $0xf, %esi movl $0xffffffff, %edx # imm = 0xFFFFFFFF movb $0x0, %al callq 0x7700 cmpl $0x0, %eax je 0xa641 movq -0x10(%rbp), %rdi callq 0x7370 movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rdi callq 0x77b0 movq %rax, -0x28(%rbp) cmpq $0x0, -0x28(%rbp) jne 0xa62a movq -0x18(%rbp), %rdi callq 0x7430 movq $0x0, -0x8(%rbp) jmp 0xa649 movq -0x18(%rbp), %rdi movq -0x20(%rbp), %rsi movq -0x28(%rbp), %rdx callq 0x7680 movq %rax, -0x18(%rbp) jmp 0xa5dc movq -0x18(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
ac_psr_bitand: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov rdi, [rbp+var_10] call _ac_psr_bitxor mov [rbp+var_18], rax cmp [rbp+var_18], 0 jnz short loc_A5DA mov [rbp+var_8], 0 jmp short loc_A649 loc_A5DA: jmp short $+2 loc_A5DC: mov rdi, [rbp+var_10] mov esi, 0Fh mov edx, 0FFFFFFFFh mov al, 0 call _ac_psr_match cmp eax, 0 jz short loc_A641 mov rdi, [rbp+var_10] call _ac_psr_previous_token mov [rbp+var_20], rax mov rdi, [rbp+var_10] call _ac_psr_bitxor mov [rbp+var_28], rax cmp [rbp+var_28], 0 jnz short loc_A62A mov rdi, [rbp+var_18] call _ac_expr_free_expression mov [rbp+var_8], 0 jmp short loc_A649 loc_A62A: mov rdi, [rbp+var_18] mov rsi, [rbp+var_20] mov rdx, [rbp+var_28] call _ac_expr_new_binary mov [rbp+var_18], rax jmp short loc_A5DC loc_A641: mov rax, [rbp+var_18] mov [rbp+var_8], rax loc_A649: mov rax, [rbp+var_8] add rsp, 30h pop rbp retn
long long ac_psr_bitand( long long a1, __m128 a2, __m128 a3, __m128 a4, __m128 a5, double a6, double a7, __m128 a8, __m128 a9) { long long v9; // rcx long long v10; // r8 long long v11; // r9 __m128 v12; // xmm4 __m128 v13; // xmm5 double v14; // xmm4_8 double v15; // xmm5_8 char v17; // [rsp+0h] [rbp-30h] long long v18; // [rsp+8h] [rbp-28h] long long v19; // [rsp+10h] [rbp-20h] long long v20; // [rsp+18h] [rbp-18h] v20 = ac_psr_bitxor(a1, a2, a3, a4, a5, a6, a7, a8, a9); if ( !v20 ) return 0LL; while ( (unsigned int)ac_psr_match(a1, 15LL, 0xFFFFFFFFLL, v9, v10, v11, a2, a3, a4, a5, v12, v13, a8, a9, v17) ) { v19 = ac_psr_previous_token(a1); v18 = ac_psr_bitxor(a1, a2, a3, a4, a5, v14, v15, a8, a9); if ( !v18 ) { ac_expr_free_expression(v20); return 0LL; } v20 = ac_expr_new_binary(v20, v19, v18); } return v20; }
ac_psr_bitand: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV RDI,qword ptr [RBP + -0x10] CALL 0x001077b0 MOV qword ptr [RBP + -0x18],RAX CMP qword ptr [RBP + -0x18],0x0 JNZ 0x0010a5da MOV qword ptr [RBP + -0x8],0x0 JMP 0x0010a649 LAB_0010a5da: JMP 0x0010a5dc LAB_0010a5dc: MOV RDI,qword ptr [RBP + -0x10] MOV ESI,0xf MOV EDX,0xffffffff MOV AL,0x0 CALL 0x00107700 CMP EAX,0x0 JZ 0x0010a641 MOV RDI,qword ptr [RBP + -0x10] CALL 0x00107370 MOV qword ptr [RBP + -0x20],RAX MOV RDI,qword ptr [RBP + -0x10] CALL 0x001077b0 MOV qword ptr [RBP + -0x28],RAX CMP qword ptr [RBP + -0x28],0x0 JNZ 0x0010a62a MOV RDI,qword ptr [RBP + -0x18] CALL 0x00107430 MOV qword ptr [RBP + -0x8],0x0 JMP 0x0010a649 LAB_0010a62a: MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x28] CALL 0x00107680 MOV qword ptr [RBP + -0x18],RAX JMP 0x0010a5dc LAB_0010a641: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x8],RAX LAB_0010a649: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x30 POP RBP RET
long ac_psr_bitand(int8 param_1) { int iVar1; int8 uVar2; long lVar3; long local_20; long local_10; local_20 = ac_psr_bitxor(param_1); if (local_20 == 0) { local_10 = 0; } else { while (iVar1 = ac_psr_match(param_1,0xf,0xffffffff), iVar1 != 0) { uVar2 = ac_psr_previous_token(param_1); lVar3 = ac_psr_bitxor(param_1); if (lVar3 == 0) { ac_expr_free_expression(local_20); return 0; } local_20 = ac_expr_new_binary(local_20,uVar2,lVar3); } local_10 = local_20; } return local_10; }
49,326
aimrt::runtime::core::channel::ChannelBackendManager::GetPubTopicBackendInfo() const
aimrt_mujoco_sim/_deps/aimrt-src/src/runtime/core/channel/channel_backend_manager.cc
ChannelBackendManager::TopicBackendInfoMap ChannelBackendManager::GetPubTopicBackendInfo() const { std::unordered_map<std::string_view, std::vector<std::string_view>> result; for (const auto& itr : pub_topics_backend_index_map_) { std::vector<std::string_view> backends_name; backends_name.reserve(itr.second.size()); for (const auto& item : itr.second) backends_name.emplace_back(item->Name()); result.emplace(itr.first, std::move(backends_name)); } return result; }
O3
cpp
aimrt::runtime::core::channel::ChannelBackendManager::GetPubTopicBackendInfo() const: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx leaq 0x30(%rdi), %rax movq %rax, (%rdi) movq $0x1, 0x8(%rdi) xorps %xmm0, %xmm0 movups %xmm0, 0x10(%rdi) movl $0x3f800000, 0x20(%rdi) # imm = 0x3F800000 movups %xmm0, 0x28(%rdi) movq 0xb8(%rsi), %r12 testq %r12, %r12 je 0x41933 movq %rsp, %r14 leaq 0x18(%rsp), %r15 xorps %xmm0, %xmm0 movaps %xmm0, (%rsp) movq $0x0, 0x10(%rsp) movq 0x30(%r12), %rsi subq 0x28(%r12), %rsi sarq $0x3, %rsi movq %r14, %rdi callq 0x20200 movq 0x28(%r12), %r13 movq 0x30(%r12), %rbp cmpq %rbp, %r13 je 0x41900 movq (%r13), %rdi movq (%rdi), %rax callq *0x10(%rax) movq %rax, 0x18(%rsp) movq %rdx, 0x20(%rsp) movq 0x8(%rsp), %rsi cmpq 0x10(%rsp), %rsi je 0x418ef movups 0x18(%rsp), %xmm0 movups %xmm0, (%rsi) addq $0x10, 0x8(%rsp) jmp 0x418fa movq %r14, %rdi movq %r15, %rdx callq 0x1ffa0 addq $0x8, %r13 jmp 0x418ba leaq 0x8(%r12), %rsi movq %rbx, %rdi movq %r14, %rdx callq 0x1f3a0 movq (%rsp), %rdi testq %rdi, %rdi je 0x41926 movq 0x10(%rsp), %rsi subq %rdi, %rsi callq 0x1f250 movq (%r12), %r12 testq %r12, %r12 jne 0x4188a movq %rbx, %rax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x41947 movq %rax, %r14 movq (%rsp), %rdi testq %rdi, %rdi je 0x41960 movq 0x10(%rsp), %rsi subq %rdi, %rsi callq 0x1f250 movq %rbx, %rdi callq 0x1f320 movq %r14, %rdi callq 0x1ffd0
_ZNK5aimrt7runtime4core7channel21ChannelBackendManager22GetPubTopicBackendInfoEv: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov rbx, rdi lea rax, [rdi+30h] mov [rdi], rax mov qword ptr [rdi+8], 1 xorps xmm0, xmm0 movups xmmword ptr [rdi+10h], xmm0 mov dword ptr [rdi+20h], 3F800000h movups xmmword ptr [rdi+28h], xmm0 mov r12, [rsi+0B8h] test r12, r12 jz loc_41933 mov r14, rsp lea r15, [rsp+58h+var_40] loc_4188A: xorps xmm0, xmm0 movaps xmmword ptr [rsp+58h+var_58], xmm0 mov [rsp+58h+var_48], 0 mov rsi, [r12+30h] sub rsi, [r12+28h] sar rsi, 3 mov rdi, r14 call __ZNSt6vectorISt17basic_string_viewIcSt11char_traitsIcEESaIS3_EE7reserveEm; std::vector<std::string_view>::reserve(ulong) mov r13, [r12+28h] mov rbp, [r12+30h] loc_418BA: cmp r13, rbp jz short loc_41900 mov rdi, [r13+0] mov rax, [rdi] call qword ptr [rax+10h] mov qword ptr [rsp+58h+var_40], rax mov qword ptr [rsp+58h+var_40+8], rdx mov rsi, [rsp+58h+var_58+8] cmp rsi, [rsp+58h+var_48] jz short loc_418EF movups xmm0, [rsp+58h+var_40] movups xmmword ptr [rsi], xmm0 add [rsp+58h+var_58+8], 10h jmp short loc_418FA loc_418EF: mov rdi, r14 mov rdx, r15 call __ZNSt6vectorISt17basic_string_viewIcSt11char_traitsIcEESaIS3_EE17_M_realloc_insertIJS3_EEEvN9__gnu_cxx17__normal_iteratorIPS3_S5_EEDpOT_; std::vector<std::string_view>::_M_realloc_insert<std::string_view>(__gnu_cxx::__normal_iterator<std::string_view*,std::vector<std::string_view>>,std::string_view &&) loc_418FA: add r13, 8 jmp short loc_418BA loc_41900: lea rsi, [r12+8] mov rdi, rbx mov rdx, r14 call __ZNSt10_HashtableISt17basic_string_viewIcSt11char_traitsIcEESt4pairIKS3_St6vectorIS3_SaIS3_EEESaIS9_ENSt8__detail10_Select1stESt8equal_toIS3_ESt4hashIS3_ENSB_18_Mod_range_hashingENSB_20_Default_ranged_hashENSB_20_Prime_rehash_policyENSB_17_Hashtable_traitsILb1ELb0ELb1EEEE10_M_emplaceIJRKNSt7__cxx1112basic_stringIcS2_SaIcEEES8_EEES4_INSB_14_Node_iteratorIS9_Lb0ELb1EEEbESt17integral_constantIbLb1EEDpOT_; std::_Hashtable<std::string_view,std::pair<std::string_view const,std::vector<std::string_view>>,std::allocator<std::pair<std::string_view const,std::vector<std::string_view>>>,std::__detail::_Select1st,std::equal_to<std::string_view>,std::hash<std::string_view>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::_M_emplace<std::string const&,std::vector<std::string_view>>(std::integral_constant<bool,true>,std::string const&,std::vector<std::string_view> &&) mov rdi, [rsp+58h+var_58]; void * test rdi, rdi jz short loc_41926 mov rsi, [rsp+58h+var_48] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_41926: mov r12, [r12] test r12, r12 jnz loc_4188A loc_41933: mov rax, rbx add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short $+2 loc_41947: mov r14, rax mov rdi, [rsp+0]; void * test rdi, rdi jz short loc_41960 mov rsi, [rsp+arg_8] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_41960: mov rdi, rbx call __ZNSt10_HashtableISt17basic_string_viewIcSt11char_traitsIcEESt4pairIKS3_St6vectorIS3_SaIS3_EEESaIS9_ENSt8__detail10_Select1stESt8equal_toIS3_ESt4hashIS3_ENSB_18_Mod_range_hashingENSB_20_Default_ranged_hashENSB_20_Prime_rehash_policyENSB_17_Hashtable_traitsILb1ELb0ELb1EEEED2Ev; std::_Hashtable<std::string_view,std::pair<std::string_view const,std::vector<std::string_view>>,std::allocator<std::pair<std::string_view const,std::vector<std::string_view>>>,std::__detail::_Select1st,std::equal_to<std::string_view>,std::hash<std::string_view>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::~_Hashtable() mov rdi, r14 call __Unwind_Resume
aimrt::runtime::core::channel::ChannelBackendManager * aimrt::runtime::core::channel::ChannelBackendManager::GetPubTopicBackendInfo( aimrt::runtime::core::channel::ChannelBackendManager *this, long long a2) { _QWORD *i; // r12 _QWORD *v3; // r13 _QWORD *v4; // rbp __int128 v5; // rax void *v7[2]; // [rsp+0h] [rbp-58h] BYREF void *v8; // [rsp+10h] [rbp-48h] _OWORD v9[4]; // [rsp+18h] [rbp-40h] BYREF *(_QWORD *)this = (char *)this + 48; *((_QWORD *)this + 1) = 1LL; *((_OWORD *)this + 1) = 0LL; *((_DWORD *)this + 8) = 1065353216; *(_OWORD *)((char *)this + 40) = 0LL; for ( i = *(_QWORD **)(a2 + 184); i; i = (_QWORD *)*i ) { *(_OWORD *)v7 = 0LL; v8 = 0LL; std::vector<std::string_view>::reserve(v7, (long long)(i[6] - i[5]) >> 3); v3 = (_QWORD *)i[5]; v4 = (_QWORD *)i[6]; while ( v3 != v4 ) { *(_QWORD *)&v5 = (*(long long ( **)(_QWORD))(*(_QWORD *)*v3 + 16LL))(*v3); v9[0] = v5; if ( v7[1] == v8 ) { std::vector<std::string_view>::_M_realloc_insert<std::string_view>(v7, v7[1], v9); } else { *(_OWORD *)v7[1] = v9[0]; v7[1] = (char *)v7[1] + 16; } ++v3; } std::_Hashtable<std::string_view,std::pair<std::string_view const,std::vector<std::string_view>>,std::allocator<std::pair<std::string_view const,std::vector<std::string_view>>>,std::__detail::_Select1st,std::equal_to<std::string_view>,std::hash<std::string_view>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::_M_emplace<std::string const&,std::vector<std::string_view>>( this, i + 1, v7); if ( v7[0] ) operator delete(v7[0], (unsigned long long)v8 - (unsigned long long)v7[0]); } return this; }
GetPubTopicBackendInfo: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,RDI LEA RAX,[RDI + 0x30] MOV qword ptr [RDI],RAX MOV qword ptr [RDI + 0x8],0x1 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI + 0x10],XMM0 MOV dword ptr [RDI + 0x20],0x3f800000 MOVUPS xmmword ptr [RDI + 0x28],XMM0 MOV R12,qword ptr [RSI + 0xb8] TEST R12,R12 JZ 0x00141933 MOV R14,RSP LEA R15,[RSP + 0x18] LAB_0014188a: XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP],XMM0 MOV qword ptr [RSP + 0x10],0x0 MOV RSI,qword ptr [R12 + 0x30] SUB RSI,qword ptr [R12 + 0x28] SAR RSI,0x3 LAB_001418a8: MOV RDI,R14 CALL 0x00120200 LAB_001418b0: MOV R13,qword ptr [R12 + 0x28] MOV RBP,qword ptr [R12 + 0x30] LAB_001418ba: CMP R13,RBP JZ 0x00141900 MOV RDI,qword ptr [R13] MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0x18],RAX MOV qword ptr [RSP + 0x20],RDX MOV RSI,qword ptr [RSP + 0x8] CMP RSI,qword ptr [RSP + 0x10] JZ 0x001418ef MOVUPS XMM0,xmmword ptr [RSP + 0x18] MOVUPS xmmword ptr [RSI],XMM0 ADD qword ptr [RSP + 0x8],0x10 JMP 0x001418fa LAB_001418ef: MOV RDI,R14 MOV RDX,R15 CALL 0x0011ffa0 LAB_001418fa: ADD R13,0x8 JMP 0x001418ba LAB_00141900: LEA RSI,[R12 + 0x8] LAB_00141905: MOV RDI,RBX MOV RDX,R14 CALL 0x0011f3a0 LAB_00141910: MOV RDI,qword ptr [RSP] TEST RDI,RDI JZ 0x00141926 MOV RSI,qword ptr [RSP + 0x10] SUB RSI,RDI CALL 0x0011f250 LAB_00141926: MOV R12,qword ptr [R12] TEST R12,R12 JNZ 0x0014188a LAB_00141933: MOV RAX,RBX ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* aimrt::runtime::core::channel::ChannelBackendManager::GetPubTopicBackendInfo() const */ void aimrt::runtime::core::channel::ChannelBackendManager::GetPubTopicBackendInfo(void) { int8 *puVar1; long in_RSI; long *in_RDI; long *plVar2; int8 *puVar3; int1 auVar4 [16]; void *local_58; int1 (*pauStack_50) [16]; int1 (*local_48) [16]; int1 local_40 [16]; *in_RDI = (long)(in_RDI + 6); in_RDI[1] = 1; in_RDI[2] = 0; in_RDI[3] = 0; *(int4 *)(in_RDI + 4) = 0x3f800000; in_RDI[5] = 0; in_RDI[6] = 0; plVar2 = *(long **)(in_RSI + 0xb8); if (plVar2 != (long *)0x0) { do { local_58 = (void *)0x0; pauStack_50 = (int1 (*) [16])0x0; local_48 = (int1 (*) [16])0x0; /* try { // try from 001418a8 to 001418af has its CatchHandler @ 00141945 */ std:: vector<std::basic_string_view<char,std::char_traits<char>>,std::allocator<std::basic_string_view<char,std::char_traits<char>>>> ::reserve((vector<std::basic_string_view<char,std::char_traits<char>>,std::allocator<std::basic_string_view<char,std::char_traits<char>>>> *)&local_58,plVar2[6] - plVar2[5] >> 3); puVar1 = (int8 *)plVar2[6]; for (puVar3 = (int8 *)plVar2[5]; puVar3 != puVar1; puVar3 = puVar3 + 1) { auVar4 = (**(code **)(*(long *)*puVar3 + 0x10))(); local_40 = auVar4; if (pauStack_50 == local_48) { /* try { // try from 001418ef to 001418f9 has its CatchHandler @ 00141947 */ std:: vector<std::basic_string_view<char,std::char_traits<char>>,std::allocator<std::basic_string_view<char,std::char_traits<char>>>> ::_M_realloc_insert<std::basic_string_view<char,std::char_traits<char>>> ((vector<std::basic_string_view<char,std::char_traits<char>>,std::allocator<std::basic_string_view<char,std::char_traits<char>>>> *)&local_58,pauStack_50,local_40); } else { *pauStack_50 = auVar4; pauStack_50 = pauStack_50 + 1; } } /* try { // try from 00141905 to 0014190f has its CatchHandler @ 00141945 */ std:: _Hashtable<std::basic_string_view<char,std::char_traits<char>>,std::pair<std::basic_string_view<char,std::char_traits<char>>const,std::vector<std::basic_string_view<char,std::char_traits<char>>,std::allocator<std::basic_string_view<char,std::char_traits<char>>>>>,std::allocator<std::pair<std::basic_string_view<char,std::char_traits<char>>const,std::vector<std::basic_string_view<char,std::char_traits<char>>,std::allocator<std::basic_string_view<char,std::char_traits<char>>>>>>,std::__detail::_Select1st,std::equal_to<std::basic_string_view<char,std::char_traits<char>>>,std::hash<std::basic_string_view<char,std::char_traits<char>>>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>> :: _M_emplace<std::__cxx11::string_const&,std::vector<std::basic_string_view<char,std::char_traits<char>>,std::allocator<std::basic_string_view<char,std::char_traits<char>>>>> (); if (local_58 != (void *)0x0) { operator_delete(local_58,(long)local_48 - (long)local_58); } plVar2 = (long *)*plVar2; } while (plVar2 != (long *)0x0); } return; }
49,327
google::protobuf::DescriptorProto_ReservedRange::_InternalParse(char const*, google::protobuf::internal::ParseContext*)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc
const char* DescriptorProto_ReservedRange::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional int32 start = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) { _Internal::set_has_start(&has_bits); _impl_.start_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional int32 end = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) { _Internal::set_has_end(&has_bits); _impl_.end_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: goto handle_unusual; } // switch handle_unusual: if ((tag == 0) || ((tag & 7) == 4)) { CHK_(ptr); ctx->SetLastTag(tag); goto message_done; } ptr = UnknownFieldParse( tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); } // while message_done: _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto message_done; #undef CHK_ }
O0
cpp
google::protobuf::DescriptorProto_ReservedRange::_InternalParse(char const*, google::protobuf::internal::ParseContext*): subq $0x78, %rsp movq %rdi, 0x48(%rsp) movq %rsi, 0x40(%rsp) movq %rdx, 0x38(%rsp) movq 0x48(%rsp), %rax movq %rax, 0x18(%rsp) leaq 0x34(%rsp), %rax movq %rax, 0x68(%rsp) movq 0x68(%rsp), %rax movq %rax, %rcx addq $0x4, %rcx movq %rcx, 0x20(%rsp) movq %rax, 0x28(%rsp) movq 0x28(%rsp), %rax movq 0x20(%rsp), %rcx movl $0x0, (%rax) addq $0x4, %rax cmpq %rcx, %rax movq %rax, 0x28(%rsp) jne 0xadc3d jmp 0xadc5d movq 0x38(%rsp), %rdi leaq 0x40(%rsp), %rsi callq 0xd41f0 xorb $-0x1, %al testb $0x1, %al jne 0xadc77 jmp 0xade17 movq 0x40(%rsp), %rdi leaq 0x30(%rsp), %rsi xorl %edx, %edx callq 0xd4220 movq %rax, 0x40(%rsp) movl 0x30(%rsp), %eax shrl $0x3, %eax movl %eax, 0x14(%rsp) subl $0x1, %eax je 0xadcad jmp 0xadc9f movl 0x14(%rsp), %eax subl $0x2, %eax je 0xadcf6 jmp 0xadd3f movl 0x30(%rsp), %eax movzbl %al, %eax cmpl $0x8, %eax jne 0xadcef leaq 0x34(%rsp), %rdi callq 0xd5d00 leaq 0x40(%rsp), %rdi callq 0xd4f80 movl %eax, %ecx movq 0x18(%rsp), %rax movl %ecx, 0x18(%rax) cmpq $0x0, 0x40(%rsp) setne %al xorb $-0x1, %al testb $0x1, %al jne 0xadce8 jmp 0xadced jmp 0xade36 jmp 0xadcf1 jmp 0xadd41 jmp 0xadc5d movl 0x30(%rsp), %eax movzbl %al, %eax cmpl $0x10, %eax jne 0xadd38 leaq 0x34(%rsp), %rdi callq 0xd5d30 leaq 0x40(%rsp), %rdi callq 0xd4f80 movl %eax, %ecx movq 0x18(%rsp), %rax movl %ecx, 0x1c(%rax) cmpq $0x0, 0x40(%rsp) setne %al xorb $-0x1, %al testb $0x1, %al jne 0xadd31 jmp 0xadd36 jmp 0xade36 jmp 0xadd3a jmp 0xadd41 jmp 0xadc5d jmp 0xadd41 cmpl $0x0, 0x30(%rsp) je 0xadd54 movl 0x30(%rsp), %eax andl $0x7, %eax cmpl $0x4, %eax jne 0xadd7d cmpq $0x0, 0x40(%rsp) setne %al xorb $-0x1, %al testb $0x1, %al jne 0xadd65 jmp 0xadd6a jmp 0xade36 movq 0x38(%rsp), %rdi movl 0x30(%rsp), %esi callq 0xd4350 jmp 0xade19 movq 0x18(%rsp), %rax movl 0x30(%rsp), %ecx movq %rcx, (%rsp) addq $0x8, %rax movq %rax, 0x50(%rsp) movq 0x50(%rsp), %rax movq %rax, 0x8(%rsp) movq %rax, 0x60(%rsp) movq 0x60(%rsp), %rax movq %rax, 0x70(%rsp) movq 0x70(%rsp), %rax movq (%rax), %rax andq $0x1, %rax cmpq $0x0, %rax je 0xaddd3 movq 0x8(%rsp), %rdi callq 0x9cd40 addq $0x8, %rax movq %rax, 0x58(%rsp) jmp 0xadde2 movq 0x8(%rsp), %rdi callq 0xdf250 movq %rax, 0x58(%rsp) movq (%rsp), %rdi movq 0x58(%rsp), %rsi movq 0x40(%rsp), %rdx movq 0x38(%rsp), %rcx callq 0x163b20 movq %rax, 0x40(%rsp) cmpq $0x0, 0x40(%rsp) setne %al xorb $-0x1, %al testb $0x1, %al jne 0xade10 jmp 0xade12 jmp 0xade36 jmp 0xadc5d jmp 0xade19 movq 0x18(%rsp), %rdi addq $0x10, %rdi leaq 0x34(%rsp), %rsi callq 0xd5090 movq 0x40(%rsp), %rax addq $0x78, %rsp retq movq $0x0, 0x40(%rsp) jmp 0xade19 nopw %cs:(%rax,%rax)
_ZN6google8protobuf29DescriptorProto_ReservedRange14_InternalParseEPKcPNS0_8internal12ParseContextE: sub rsp, 78h mov qword ptr [rsp+78h+var_30], rdi; int mov [rsp+78h+var_38], rsi mov [rsp+78h+var_40], rdx; int mov rax, qword ptr [rsp+78h+var_30] mov qword ptr [rsp+78h+var_60], rax; int lea rax, [rsp+78h+var_48+4] mov qword ptr [rsp+78h+var_10], rax; int mov rax, qword ptr [rsp+78h+var_10] mov rcx, rax add rcx, 4 mov qword ptr [rsp+78h+var_58], rcx; int mov qword ptr [rsp+78h+var_50], rax loc_ADC3D: mov rax, qword ptr [rsp+78h+var_50] mov rcx, qword ptr [rsp+78h+var_58] mov dword ptr [rax], 0 add rax, 4 cmp rax, rcx mov qword ptr [rsp+78h+var_50], rax; int jnz short loc_ADC3D jmp short $+2 loc_ADC5D: mov rdi, [rsp+78h+var_40]; this lea rsi, [rsp+78h+var_38]; char ** call _ZN6google8protobuf8internal12ParseContext4DoneEPPKc; google::protobuf::internal::ParseContext::Done(char const**) xor al, 0FFh test al, 1 jnz short loc_ADC77 jmp loc_ADE17 loc_ADC77: mov rdi, [rsp+78h+var_38]; this lea rsi, [rsp+78h+var_48]; char ** xor edx, edx; unsigned int * call _ZN6google8protobuf8internal7ReadTagEPKcPjj; google::protobuf::internal::ReadTag(char const*,uint *,uint) mov [rsp+78h+var_38], rax; int mov eax, dword ptr [rsp+78h+var_48] shr eax, 3 mov [rsp+78h+var_64], eax sub eax, 1 jz short loc_ADCAD jmp short $+2 loc_ADC9F: mov eax, [rsp+78h+var_64] sub eax, 2 jz short loc_ADCF6 jmp loc_ADD3F loc_ADCAD: mov eax, dword ptr [rsp+78h+var_48] movzx eax, al cmp eax, 8 jnz short loc_ADCEF lea rdi, [rsp+78h+var_48+4] call _ZN6google8protobuf29DescriptorProto_ReservedRange9_Internal13set_has_startEPNS0_8internal7HasBitsILm1EEE; google::protobuf::DescriptorProto_ReservedRange::_Internal::set_has_start(google::protobuf::internal::HasBits<1ul> *) lea rdi, [rsp+78h+var_38]; this call _ZN6google8protobuf8internal12ReadVarint32EPPKc; google::protobuf::internal::ReadVarint32(char const**) mov ecx, eax mov rax, qword ptr [rsp+78h+var_60] mov [rax+18h], ecx cmp [rsp+78h+var_38], 0 setnz al xor al, 0FFh test al, 1 jnz short loc_ADCE8 jmp short loc_ADCED loc_ADCE8: jmp loc_ADE36 loc_ADCED: jmp short loc_ADCF1 loc_ADCEF: jmp short loc_ADD41 loc_ADCF1: jmp loc_ADC5D loc_ADCF6: mov eax, dword ptr [rsp+78h+var_48] movzx eax, al cmp eax, 10h jnz short loc_ADD38 lea rdi, [rsp+78h+var_48+4] call _ZN6google8protobuf29DescriptorProto_ReservedRange9_Internal11set_has_endEPNS0_8internal7HasBitsILm1EEE; google::protobuf::DescriptorProto_ReservedRange::_Internal::set_has_end(google::protobuf::internal::HasBits<1ul> *) lea rdi, [rsp+78h+var_38]; this call _ZN6google8protobuf8internal12ReadVarint32EPPKc; google::protobuf::internal::ReadVarint32(char const**) mov ecx, eax mov rax, qword ptr [rsp+78h+var_60] mov [rax+1Ch], ecx cmp [rsp+78h+var_38], 0 setnz al xor al, 0FFh test al, 1 jnz short loc_ADD31 jmp short loc_ADD36 loc_ADD31: jmp loc_ADE36 loc_ADD36: jmp short loc_ADD3A loc_ADD38: jmp short loc_ADD41 loc_ADD3A: jmp loc_ADC5D loc_ADD3F: jmp short $+2 loc_ADD41: cmp dword ptr [rsp+78h+var_48], 0 jz short loc_ADD54 mov eax, dword ptr [rsp+78h+var_48] and eax, 7 cmp eax, 4 jnz short loc_ADD7D loc_ADD54: cmp [rsp+78h+var_38], 0 setnz al xor al, 0FFh test al, 1 jnz short loc_ADD65 jmp short loc_ADD6A loc_ADD65: jmp loc_ADE36 loc_ADD6A: mov rdi, [rsp+78h+var_40]; this mov esi, dword ptr [rsp+78h+var_48]; unsigned int call _ZN6google8protobuf8internal18EpsCopyInputStream10SetLastTagEj; google::protobuf::internal::EpsCopyInputStream::SetLastTag(uint) jmp loc_ADE19 loc_ADD7D: mov rax, qword ptr [rsp+78h+var_60] mov ecx, dword ptr [rsp+78h+var_48]; int mov [rsp+78h+var_78], rcx; int add rax, 8 mov qword ptr [rsp+78h+var_28], rax; int mov rax, qword ptr [rsp+78h+var_28] mov qword ptr [rsp+78h+var_70], rax; int mov qword ptr [rsp+78h+var_18], rax; int mov rax, qword ptr [rsp+78h+var_18] mov qword ptr [rsp+78h+var_8], rax; int mov rax, qword ptr [rsp+78h+var_8] mov rax, [rax] and rax, 1 cmp rax, 0 jz short loc_ADDD3 mov rdi, qword ptr [rsp+78h+var_70] call _ZNK6google8protobuf8internal16InternalMetadata8PtrValueINS2_9ContainerINS0_15UnknownFieldSetEEEEEPT_v; google::protobuf::internal::InternalMetadata::PtrValue<google::protobuf::internal::InternalMetadata::Container<google::protobuf::UnknownFieldSet>>(void) add rax, 8 mov [rsp+78h+var_20], rax jmp short loc_ADDE2 loc_ADDD3: mov rdi, qword ptr [rsp+78h+var_70]; int call _ZN6google8protobuf8internal16InternalMetadata27mutable_unknown_fields_slowINS0_15UnknownFieldSetEEEPT_v; google::protobuf::internal::InternalMetadata::mutable_unknown_fields_slow<google::protobuf::UnknownFieldSet>(void) mov [rsp+78h+var_20], rax loc_ADDE2: mov rdi, [rsp+78h+var_78]; this mov rsi, [rsp+78h+var_20]; unsigned __int64 mov rdx, [rsp+78h+var_38]; google::protobuf::UnknownFieldSet * mov rcx, [rsp+78h+var_40]; char * call _ZN6google8protobuf8internal17UnknownFieldParseEmPNS0_15UnknownFieldSetEPKcPNS1_12ParseContextE; google::protobuf::internal::UnknownFieldParse(ulong,google::protobuf::UnknownFieldSet *,char const*,google::protobuf::internal::ParseContext *) mov [rsp+78h+var_38], rax cmp [rsp+78h+var_38], 0 setnz al xor al, 0FFh test al, 1 jnz short loc_ADE10 jmp short loc_ADE12 loc_ADE10: jmp short loc_ADE36 loc_ADE12: jmp loc_ADC5D loc_ADE17: jmp short $+2 loc_ADE19: mov rdi, qword ptr [rsp+78h+var_60] add rdi, 10h lea rsi, [rsp+78h+var_48+4] call _ZN6google8protobuf8internal7HasBitsILm1EE2OrERKS3_; google::protobuf::internal::HasBits<1ul>::Or(google::protobuf::internal::HasBits<1ul> const&) mov rax, [rsp+78h+var_38] add rsp, 78h retn loc_ADE36: mov [rsp+78h+var_38], 0 jmp short loc_ADE19
_InternalParse: SUB RSP,0x78 MOV qword ptr [RSP + 0x48],RDI MOV qword ptr [RSP + 0x40],RSI MOV qword ptr [RSP + 0x38],RDX MOV RAX,qword ptr [RSP + 0x48] MOV qword ptr [RSP + 0x18],RAX LEA RAX,[RSP + 0x34] MOV qword ptr [RSP + 0x68],RAX MOV RAX,qword ptr [RSP + 0x68] MOV RCX,RAX ADD RCX,0x4 MOV qword ptr [RSP + 0x20],RCX MOV qword ptr [RSP + 0x28],RAX LAB_001adc3d: MOV RAX,qword ptr [RSP + 0x28] MOV RCX,qword ptr [RSP + 0x20] MOV dword ptr [RAX],0x0 ADD RAX,0x4 CMP RAX,RCX MOV qword ptr [RSP + 0x28],RAX JNZ 0x001adc3d JMP 0x001adc5d LAB_001adc5d: MOV RDI,qword ptr [RSP + 0x38] LEA RSI,[RSP + 0x40] CALL 0x001d41f0 XOR AL,0xff TEST AL,0x1 JNZ 0x001adc77 JMP 0x001ade17 LAB_001adc77: MOV RDI,qword ptr [RSP + 0x40] LEA RSI,[RSP + 0x30] XOR EDX,EDX CALL 0x001d4220 MOV qword ptr [RSP + 0x40],RAX MOV EAX,dword ptr [RSP + 0x30] SHR EAX,0x3 MOV dword ptr [RSP + 0x14],EAX SUB EAX,0x1 JZ 0x001adcad JMP 0x001adc9f LAB_001adc9f: MOV EAX,dword ptr [RSP + 0x14] SUB EAX,0x2 JZ 0x001adcf6 JMP 0x001add3f LAB_001adcad: MOV EAX,dword ptr [RSP + 0x30] MOVZX EAX,AL CMP EAX,0x8 JNZ 0x001adcef LEA RDI,[RSP + 0x34] CALL 0x001d5d00 LEA RDI,[RSP + 0x40] CALL 0x001d4f80 MOV ECX,EAX MOV RAX,qword ptr [RSP + 0x18] MOV dword ptr [RAX + 0x18],ECX CMP qword ptr [RSP + 0x40],0x0 SETNZ AL XOR AL,0xff TEST AL,0x1 JNZ 0x001adce8 JMP 0x001adced LAB_001adce8: JMP 0x001ade36 LAB_001adced: JMP 0x001adcf1 LAB_001adcef: JMP 0x001add41 LAB_001adcf1: JMP 0x001adc5d LAB_001adcf6: MOV EAX,dword ptr [RSP + 0x30] MOVZX EAX,AL CMP EAX,0x10 JNZ 0x001add38 LEA RDI,[RSP + 0x34] CALL 0x001d5d30 LEA RDI,[RSP + 0x40] CALL 0x001d4f80 MOV ECX,EAX MOV RAX,qword ptr [RSP + 0x18] MOV dword ptr [RAX + 0x1c],ECX CMP qword ptr [RSP + 0x40],0x0 SETNZ AL XOR AL,0xff TEST AL,0x1 JNZ 0x001add31 JMP 0x001add36 LAB_001add31: JMP 0x001ade36 LAB_001add36: JMP 0x001add3a LAB_001add38: JMP 0x001add41 LAB_001add3a: JMP 0x001adc5d LAB_001add3f: JMP 0x001add41 LAB_001add41: CMP dword ptr [RSP + 0x30],0x0 JZ 0x001add54 MOV EAX,dword ptr [RSP + 0x30] AND EAX,0x7 CMP EAX,0x4 JNZ 0x001add7d LAB_001add54: CMP qword ptr [RSP + 0x40],0x0 SETNZ AL XOR AL,0xff TEST AL,0x1 JNZ 0x001add65 JMP 0x001add6a LAB_001add65: JMP 0x001ade36 LAB_001add6a: MOV RDI,qword ptr [RSP + 0x38] MOV ESI,dword ptr [RSP + 0x30] CALL 0x001d4350 JMP 0x001ade19 LAB_001add7d: MOV RAX,qword ptr [RSP + 0x18] MOV ECX,dword ptr [RSP + 0x30] MOV qword ptr [RSP],RCX ADD RAX,0x8 MOV qword ptr [RSP + 0x50],RAX MOV RAX,qword ptr [RSP + 0x50] MOV qword ptr [RSP + 0x8],RAX MOV qword ptr [RSP + 0x60],RAX MOV RAX,qword ptr [RSP + 0x60] MOV qword ptr [RSP + 0x70],RAX MOV RAX,qword ptr [RSP + 0x70] MOV RAX,qword ptr [RAX] AND RAX,0x1 CMP RAX,0x0 JZ 0x001addd3 MOV RDI,qword ptr [RSP + 0x8] CALL 0x0019cd40 ADD RAX,0x8 MOV qword ptr [RSP + 0x58],RAX JMP 0x001adde2 LAB_001addd3: MOV RDI,qword ptr [RSP + 0x8] CALL 0x001df250 MOV qword ptr [RSP + 0x58],RAX LAB_001adde2: MOV RDI,qword ptr [RSP] MOV RSI,qword ptr [RSP + 0x58] MOV RDX,qword ptr [RSP + 0x40] MOV RCX,qword ptr [RSP + 0x38] CALL 0x00263b20 MOV qword ptr [RSP + 0x40],RAX CMP qword ptr [RSP + 0x40],0x0 SETNZ AL XOR AL,0xff TEST AL,0x1 JNZ 0x001ade10 JMP 0x001ade12 LAB_001ade10: JMP 0x001ade36 LAB_001ade12: JMP 0x001adc5d LAB_001ade17: JMP 0x001ade19 LAB_001ade19: MOV RDI,qword ptr [RSP + 0x18] ADD RDI,0x10 LEA RSI,[RSP + 0x34] CALL 0x001d5090 MOV RAX,qword ptr [RSP + 0x40] ADD RSP,0x78 RET LAB_001ade36: MOV qword ptr [RSP + 0x40],0x0 JMP 0x001ade19
/* google::protobuf::DescriptorProto_ReservedRange::_InternalParse(char const*, google::protobuf::internal::ParseContext*) */ char * __thiscall google::protobuf::DescriptorProto_ReservedRange::_InternalParse (DescriptorProto_ReservedRange *this,char *param_1,ParseContext *param_2) { byte bVar1; int4 uVar2; Container *pCVar3; ulong uVar4; HasBits *local_50; uint local_48; HasBits local_44 [4]; ParseContext *local_40; char *local_38; DescriptorProto_ReservedRange *local_30; InternalMetadata *local_28; UnknownFieldSet *local_20; InternalMetadata *local_18; HasBits *local_10; InternalMetadata *local_8; local_50 = local_44; local_40 = param_2; local_38 = param_1; local_30 = this; local_10 = local_50; do { *(int4 *)local_50 = 0; local_50 = local_50 + 4; } while (local_50 != (HasBits *)&local_40); do { while( true ) { bVar1 = internal::ParseContext::Done(local_40,&local_38); if (((bVar1 ^ 0xff) & 1) == 0) goto LAB_001ade19; local_38 = (char *)internal::ReadTag(local_38,&local_48,0); if (local_48 >> 3 != 1) break; if ((local_48 & 0xff) == 8) { _Internal::set_has_start(local_44); uVar2 = internal::ReadVarint32(&local_38); *(int4 *)(this + 0x18) = uVar2; } else { LAB_001add41: if ((local_48 == 0) || ((local_48 & 7) == 4)) { if (local_38 != (char *)0x0) { internal::EpsCopyInputStream::SetLastTag((EpsCopyInputStream *)local_40,local_48); goto LAB_001ade19; } goto LAB_001ade36; } uVar4 = (ulong)local_48; local_28 = (InternalMetadata *)(this + 8); local_18 = local_28; local_8 = local_28; if ((*(ulong *)local_28 & 1) == 0) { local_20 = internal::InternalMetadata:: mutable_unknown_fields_slow<google::protobuf::UnknownFieldSet>(local_28); } else { pCVar3 = internal::InternalMetadata:: PtrValue<google::protobuf::internal::InternalMetadata::Container<google::protobuf::UnknownFieldSet>> (local_28); local_20 = (UnknownFieldSet *)(pCVar3 + 8); } local_38 = (char *)internal::UnknownFieldParse(uVar4,local_20,local_38,local_40); } if (local_38 == (char *)0x0) goto LAB_001ade36; } if ((local_48 >> 3 != 2) || ((local_48 & 0xff) != 0x10)) goto LAB_001add41; _Internal::set_has_end(local_44); uVar2 = internal::ReadVarint32(&local_38); *(int4 *)(this + 0x1c) = uVar2; } while (local_38 != (char *)0x0); LAB_001ade36: local_38 = (char *)0x0; LAB_001ade19: internal::HasBits<1ul>::Or((HasBits<1ul> *)(this + 0x10),local_44); return local_38; }
49,328
flush_cached_blocks
eloqsql/mysys/mf_keycache.c
static int flush_cached_blocks(SIMPLE_KEY_CACHE_CB *keycache, File file, BLOCK_LINK **cache, BLOCK_LINK **end, enum flush_type type) { int error; int last_errno= 0; uint count= (uint) (end-cache); /* Don't lock the cache during the flush */ keycache_pthread_mutex_unlock(&keycache->cache_lock); /* As all blocks referred in 'cache' are marked by BLOCK_IN_FLUSH we are guarunteed no thread will change them */ my_qsort((uchar*) cache, count, sizeof(*cache), (qsort_cmp) cmp_sec_link); keycache_pthread_mutex_lock(&keycache->cache_lock); /* Note: Do not break the loop. We have registered a request on every block in 'cache'. These must be unregistered by free_block() or unreg_request(). */ for ( ; cache != end ; cache++) { BLOCK_LINK *block= *cache; KEYCACHE_DBUG_PRINT("flush_cached_blocks", ("block %u to be flushed", BLOCK_NUMBER(block))); /* If the block contents is going to be changed, we abandon the flush for this block. flush_key_blocks_int() will restart its search and handle the block properly. */ if (!(block->status & BLOCK_FOR_UPDATE)) { /* Blocks coming here must have a certain status. */ DBUG_ASSERT(block->hash_link); DBUG_ASSERT(block->hash_link->block == block); DBUG_ASSERT(block->hash_link->file == file); DBUG_ASSERT((block->status & ~BLOCK_IN_EVICTION) == (BLOCK_READ | BLOCK_IN_FLUSH | BLOCK_CHANGED | BLOCK_IN_USE)); block->status|= BLOCK_IN_FLUSHWRITE; keycache_pthread_mutex_unlock(&keycache->cache_lock); error= (int)my_pwrite(file, block->buffer + block->offset, block->length - block->offset, block->hash_link->diskpos + block->offset, MYF(MY_NABP | MY_WAIT_IF_FULL)); keycache_pthread_mutex_lock(&keycache->cache_lock); keycache->global_cache_write++; if (error) { block->status|= BLOCK_ERROR; if (!last_errno) last_errno= errno ? errno : -1; } block->status&= ~BLOCK_IN_FLUSHWRITE; /* Block must not have changed status except BLOCK_FOR_UPDATE. */ DBUG_ASSERT(block->hash_link); DBUG_ASSERT(block->hash_link->block == block); DBUG_ASSERT(block->hash_link->file == file); DBUG_ASSERT((block->status & ~(BLOCK_FOR_UPDATE | BLOCK_IN_EVICTION)) == (BLOCK_READ | BLOCK_IN_FLUSH | BLOCK_CHANGED | BLOCK_IN_USE)); /* Set correct status and link in right queue for free or later use. free_block() must not see BLOCK_CHANGED and it may need to wait for readers of the block. These should not see the block in the wrong hash. If not freeing the block, we need to have it in the right queue anyway. */ link_to_file_list(keycache, block, file, 1); } block->status&= ~BLOCK_IN_FLUSH; /* Let to proceed for possible waiting requests to write to the block page. It might happen only during an operation to resize the key cache. */ release_whole_queue(&block->wqueue[COND_FOR_SAVED]); /* type will never be FLUSH_IGNORE_CHANGED here */ if (!(type == FLUSH_KEEP || type == FLUSH_FORCE_WRITE) && !(block->status & (BLOCK_IN_EVICTION | BLOCK_IN_SWITCH | BLOCK_FOR_UPDATE))) { /* Note that a request has been registered against the block in flush_key_blocks_int(). */ free_block(keycache, block); } else { /* Link the block into the LRU ring if it's the last submitted request for the block. This enables eviction for the block. Note that a request has been registered against the block in flush_key_blocks_int(). */ unreg_request(keycache, block, 1); } } /* end of for ( ; cache != end ; cache++) */ return last_errno; }
O3
c
flush_cached_blocks: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movl %r8d, %r14d movq %rdx, %r15 movl %esi, -0x34(%rbp) movq %rdi, %r13 movq %rcx, -0x40(%rbp) movq %rcx, %rbx subq %rdx, %rbx shrq $0x3, %rbx leaq 0xc0(%rdi), %r12 movq 0x100(%rdi), %rdi testq %rdi, %rdi jne 0x9a5ed movq %r12, %rdi callq 0x291e0 movl %ebx, %esi leaq 0x1e9(%rip), %rcx # 0x9a61b movl $0x8, %edx movq %r15, %rdi callq 0x9b710 cmpq $0x0, 0x100(%r13) jne 0x9a602 movq %r12, %rdi callq 0x29220 movq %r12, %rbx cmpq -0x40(%rbp), %r15 je 0x9a5d4 movl $0x0, -0x2c(%rbp) movq %rbx, -0x48(%rbp) movl %r14d, -0x30(%rbp) movq (%r15), %r12 movl 0x50(%r12), %eax btl $0x9, %eax jb 0x9a54f orl $0x100, %eax # imm = 0x100 movl %eax, 0x50(%r12) movq 0x100(%r13), %rdi testq %rdi, %rdi jne 0x9a5a6 movq %rbx, %rdi callq 0x291e0 movl 0x48(%r12), %ecx movq 0x40(%r12), %rsi addq %rcx, %rsi movl 0x4c(%r12), %edx subl %ecx, %edx movq 0x20(%r12), %rax addq 0x20(%rax), %rcx movl $0x24, %r8d movl -0x34(%rbp), %edi callq 0xa07ee movq %rax, %r14 cmpq $0x0, 0x100(%r13) jne 0x9a5bb movq %rbx, %rdi callq 0x29220 incq 0x148(%r13) movl 0x50(%r12), %ebx testl %r14d, %r14d je 0x9a524 orl $0x1, %ebx movl %ebx, 0x50(%r12) cmpl $0x0, -0x2c(%rbp) movl -0x30(%rbp), %r14d jne 0x9a528 callq 0x297b0 movl (%rax), %eax cmpl $0x1, %eax movl $0x0, %ecx sbbl %ecx, %ecx orl %eax, %ecx movl %ecx, -0x2c(%rbp) jmp 0x9a528 movl -0x30(%rbp), %r14d andl $0xfffffeff, %ebx # imm = 0xFFFFFEFF movl %ebx, 0x50(%r12) movq %r13, %rdi movq %r12, %rsi movl -0x34(%rbp), %edx movl $0x1, %ecx callq 0x9894e movl 0x50(%r12), %eax movq -0x48(%rbp), %rbx andl $-0x11, %eax movl %eax, 0x50(%r12) leaq 0x30(%r12), %rdi callq 0x989b9 testl %r14d, %r14d je 0x9a579 cmpl $0x3, %r14d je 0x9a579 movzwl 0x50(%r12), %eax testl $0x284, %eax # imm = 0x284 je 0x9a599 movq %r13, %rdi movq %r12, %rsi movl $0x1, %edx callq 0x980ac addq $0x8, %r15 cmpq -0x40(%rbp), %r15 jne 0x9a471 jmp 0x9a5db movq %r13, %rdi movq %r12, %rsi callq 0x981b4 jmp 0x9a589 leaq 0x2eba63(%rip), %rax # 0x386010 movq (%rax), %rax callq *0x160(%rax) jmp 0x9a49d movq %rbx, %rdi leaq 0x41da6(%rip), %rsi # 0xdc36b movl $0xee8, %edx # imm = 0xEE8 callq 0x2eb8f jmp 0x9a4e9 movl $0x0, -0x2c(%rbp) movl -0x2c(%rbp), %eax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x2eba1c(%rip), %rax # 0x386010 movq (%rax), %rax callq *0x160(%rax) jmp 0x9a421 leaq 0x41d62(%rip), %rsi # 0xdc36b movq %r12, %rdi movl $0xec9, %edx # imm = 0xEC9 callq 0x2eb8f jmp 0x9a455
flush_cached_blocks_0: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov r14d, r8d mov r15, rdx mov [rbp+var_34], esi mov r13, rdi mov [rbp+var_40], rcx mov rbx, rcx sub rbx, rdx shr rbx, 3 lea r12, [rdi+0C0h] mov rdi, [rdi+100h] test rdi, rdi jnz loc_9A5ED loc_9A421: mov rdi, r12 call _pthread_mutex_unlock mov esi, ebx lea rcx, cmp_sec_link_0 mov edx, 8 mov rdi, r15 call my_qsort cmp qword ptr [r13+100h], 0 jnz loc_9A602 mov rdi, r12 call _pthread_mutex_lock loc_9A455: mov rbx, r12 cmp r15, [rbp+var_40] jz loc_9A5D4 mov [rbp+var_2C], 0 mov [rbp+var_48], rbx mov [rbp+var_30], r14d loc_9A471: mov r12, [r15] mov eax, [r12+50h] bt eax, 9 jb loc_9A54F or eax, 100h mov [r12+50h], eax mov rdi, [r13+100h] test rdi, rdi jnz loc_9A5A6 loc_9A49D: mov rdi, rbx call _pthread_mutex_unlock mov ecx, [r12+48h] mov rsi, [r12+40h] add rsi, rcx mov edx, [r12+4Ch] sub edx, ecx mov rax, [r12+20h] add rcx, [rax+20h] mov r8d, 24h ; '$' mov edi, [rbp+var_34] call my_pwrite mov r14, rax cmp qword ptr [r13+100h], 0 jnz loc_9A5BB mov rdi, rbx call _pthread_mutex_lock loc_9A4E9: inc qword ptr [r13+148h] mov ebx, [r12+50h] test r14d, r14d jz short loc_9A524 or ebx, 1 mov [r12+50h], ebx cmp [rbp+var_2C], 0 mov r14d, [rbp+var_30] jnz short loc_9A528 call ___errno_location mov eax, [rax] cmp eax, 1 mov ecx, 0 sbb ecx, ecx or ecx, eax mov [rbp+var_2C], ecx jmp short loc_9A528 loc_9A524: mov r14d, [rbp+var_30] loc_9A528: and ebx, 0FFFFFEFFh mov [r12+50h], ebx mov rdi, r13 mov rsi, r12 mov edx, [rbp+var_34] mov ecx, 1 call link_to_file_list_0 mov eax, [r12+50h] mov rbx, [rbp+var_48] loc_9A54F: and eax, 0FFFFFFEFh mov [r12+50h], eax lea rdi, [r12+30h] call release_whole_queue test r14d, r14d jz short loc_9A579 cmp r14d, 3 jz short loc_9A579 movzx eax, word ptr [r12+50h] test eax, 284h jz short loc_9A599 loc_9A579: mov rdi, r13 mov rsi, r12 mov edx, 1 call unreg_request_0 loc_9A589: add r15, 8 cmp r15, [rbp+var_40] jnz loc_9A471 jmp short loc_9A5DB loc_9A599: mov rdi, r13 mov rsi, r12 call free_block_0 jmp short loc_9A589 loc_9A5A6: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp loc_9A49D loc_9A5BB: mov rdi, rbx lea rsi, aWorkspaceLlm4b_39; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 0EE8h call psi_mutex_lock jmp loc_9A4E9 loc_9A5D4: mov [rbp+var_2C], 0 loc_9A5DB: mov eax, [rbp+var_2C] add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_9A5ED: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp loc_9A421 loc_9A602: lea rsi, aWorkspaceLlm4b_39; "/workspace/llm4binary/github2025/eloqsq"... mov rdi, r12 mov edx, 0EC9h call psi_mutex_lock jmp loc_9A455
long long flush_cached_blocks_0(_QWORD *a1, unsigned int a2, long long *a3, long long *a4, int a5) { long long *v6; // r15 unsigned long long v8; // rbx long long v9; // r12 long long v10; // rbx long long v11; // r12 int v12; // eax int v13; // r14d long long v14; // rdi int v15; // ebx _DWORD *v16; // rax _QWORD *v18; // [rsp+8h] [rbp-48h] int v20; // [rsp+20h] [rbp-30h] unsigned int v21; // [rsp+24h] [rbp-2Ch] v6 = a3; v8 = (unsigned long long)((char *)a4 - (char *)a3) >> 3; v9 = (long long)(a1 + 24); if ( a1[32] ) PSI_server[44](); pthread_mutex_unlock(v9); my_qsort(v6, (unsigned int)v8, 8LL, cmp_sec_link_0); if ( a1[32] ) psi_mutex_lock(v9, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/mf_keycache.c", 0xEC9u); else pthread_mutex_lock(v9); v10 = (long long)(a1 + 24); if ( v6 == a4 ) { return 0; } else { v21 = 0; v18 = a1 + 24; v20 = a5; do { v11 = *v6; v12 = *(_DWORD *)(*v6 + 80); if ( (v12 & 0x200) == 0 ) { *(_DWORD *)(v11 + 80) = v12 | 0x100; if ( a1[32] ) PSI_server[44](); pthread_mutex_unlock(v10); v13 = my_pwrite( a2, *(unsigned int *)(v11 + 72) + *(_QWORD *)(v11 + 64), (unsigned int)(*(_DWORD *)(v11 + 76) - *(_DWORD *)(v11 + 72)), *(_QWORD *)(*(_QWORD *)(v11 + 32) + 32LL) + *(unsigned int *)(v11 + 72), 36LL); v14 = v10; if ( a1[32] ) psi_mutex_lock(v10, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/mf_keycache.c", 0xEE8u); else pthread_mutex_lock(v10); ++a1[41]; v15 = *(_DWORD *)(v11 + 80); if ( v13 ) { v15 |= 1u; *(_DWORD *)(v11 + 80) = v15; a5 = v20; if ( !v21 ) { v16 = (_DWORD *)__errno_location(v14); v21 = *v16 == 0 ? -1 : *v16; } } else { a5 = v20; } *(_DWORD *)(v11 + 80) = v15 & 0xFFFFFEFF; link_to_file_list_0((long long)a1, v11, a2, 1); v12 = *(_DWORD *)(v11 + 80); v10 = (long long)v18; } *(_DWORD *)(v11 + 80) = v12 & 0xFFFFFFEF; release_whole_queue((long long *)(v11 + 48)); if ( !a5 || a5 == 3 || (*(_WORD *)(v11 + 80) & 0x284) != 0 ) unreg_request_0(a1, v11, 1LL); else free_block_0((long long)a1, v11); ++v6; } while ( v6 != a4 ); } return v21; }
flush_cached_blocks: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV R14D,R8D MOV R15,RDX MOV dword ptr [RBP + -0x34],ESI MOV R13,RDI MOV qword ptr [RBP + -0x40],RCX MOV RBX,RCX SUB RBX,RDX SHR RBX,0x3 LEA R12,[RDI + 0xc0] MOV RDI,qword ptr [RDI + 0x100] TEST RDI,RDI JNZ 0x0019a5ed LAB_0019a421: MOV RDI,R12 CALL 0x001291e0 MOV ESI,EBX LEA RCX,[0x19a61b] MOV EDX,0x8 MOV RDI,R15 CALL 0x0019b710 CMP qword ptr [R13 + 0x100],0x0 JNZ 0x0019a602 MOV RDI,R12 CALL 0x00129220 LAB_0019a455: MOV RBX,R12 CMP R15,qword ptr [RBP + -0x40] JZ 0x0019a5d4 MOV dword ptr [RBP + -0x2c],0x0 MOV qword ptr [RBP + -0x48],RBX MOV dword ptr [RBP + -0x30],R14D LAB_0019a471: MOV R12,qword ptr [R15] MOV EAX,dword ptr [R12 + 0x50] BT EAX,0x9 JC 0x0019a54f OR EAX,0x100 MOV dword ptr [R12 + 0x50],EAX MOV RDI,qword ptr [R13 + 0x100] TEST RDI,RDI JNZ 0x0019a5a6 LAB_0019a49d: MOV RDI,RBX CALL 0x001291e0 MOV ECX,dword ptr [R12 + 0x48] MOV RSI,qword ptr [R12 + 0x40] ADD RSI,RCX MOV EDX,dword ptr [R12 + 0x4c] SUB EDX,ECX MOV RAX,qword ptr [R12 + 0x20] ADD RCX,qword ptr [RAX + 0x20] MOV R8D,0x24 MOV EDI,dword ptr [RBP + -0x34] CALL 0x001a07ee MOV R14,RAX CMP qword ptr [R13 + 0x100],0x0 JNZ 0x0019a5bb MOV RDI,RBX CALL 0x00129220 LAB_0019a4e9: INC qword ptr [R13 + 0x148] MOV EBX,dword ptr [R12 + 0x50] TEST R14D,R14D JZ 0x0019a524 OR EBX,0x1 MOV dword ptr [R12 + 0x50],EBX CMP dword ptr [RBP + -0x2c],0x0 MOV R14D,dword ptr [RBP + -0x30] JNZ 0x0019a528 CALL 0x001297b0 MOV EAX,dword ptr [RAX] CMP EAX,0x1 MOV ECX,0x0 SBB ECX,ECX OR ECX,EAX MOV dword ptr [RBP + -0x2c],ECX JMP 0x0019a528 LAB_0019a524: MOV R14D,dword ptr [RBP + -0x30] LAB_0019a528: AND EBX,0xfffffeff MOV dword ptr [R12 + 0x50],EBX MOV RDI,R13 MOV RSI,R12 MOV EDX,dword ptr [RBP + -0x34] MOV ECX,0x1 CALL 0x0019894e MOV EAX,dword ptr [R12 + 0x50] MOV RBX,qword ptr [RBP + -0x48] LAB_0019a54f: AND EAX,0xffffffef MOV dword ptr [R12 + 0x50],EAX LEA RDI,[R12 + 0x30] CALL 0x001989b9 TEST R14D,R14D JZ 0x0019a579 CMP R14D,0x3 JZ 0x0019a579 MOVZX EAX,word ptr [R12 + 0x50] TEST EAX,0x284 JZ 0x0019a599 LAB_0019a579: MOV RDI,R13 MOV RSI,R12 MOV EDX,0x1 CALL 0x001980ac LAB_0019a589: ADD R15,0x8 CMP R15,qword ptr [RBP + -0x40] JNZ 0x0019a471 JMP 0x0019a5db LAB_0019a599: MOV RDI,R13 MOV RSI,R12 CALL 0x001981b4 JMP 0x0019a589 LAB_0019a5a6: LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x0019a49d LAB_0019a5bb: MOV RDI,RBX LEA RSI,[0x1dc36b] MOV EDX,0xee8 CALL 0x0012eb8f JMP 0x0019a4e9 LAB_0019a5d4: MOV dword ptr [RBP + -0x2c],0x0 LAB_0019a5db: MOV EAX,dword ptr [RBP + -0x2c] ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0019a5ed: LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x0019a421 LAB_0019a602: LEA RSI,[0x1dc36b] MOV RDI,R12 MOV EDX,0xec9 CALL 0x0012eb8f JMP 0x0019a455
uint flush_cached_blocks(long param_1,int4 param_2,long *param_3,long *param_4,int param_5) { pthread_mutex_t *__mutex; long lVar1; int iVar2; uint *puVar3; uint uVar4; uint local_34; __mutex = (pthread_mutex_t *)(param_1 + 0xc0); if (*(long *)(param_1 + 0x100) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock(__mutex); my_qsort(param_3,(ulong)((long)param_4 - (long)param_3) >> 3 & 0xffffffff,8,cmp_sec_link); if (*(long *)(param_1 + 0x100) == 0) { pthread_mutex_lock(__mutex); } else { psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/mysys/mf_keycache.c",0xec9); } if (param_3 == param_4) { local_34 = 0; } else { local_34 = 0; do { lVar1 = *param_3; uVar4 = *(uint *)(lVar1 + 0x50); if ((uVar4 >> 9 & 1) == 0) { *(uint *)(lVar1 + 0x50) = uVar4 | 0x100; if (*(long *)(param_1 + 0x100) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock(__mutex); uVar4 = *(uint *)(lVar1 + 0x48); iVar2 = my_pwrite(param_2,*(long *)(lVar1 + 0x40) + (ulong)uVar4, *(int *)(lVar1 + 0x4c) - uVar4, (ulong)uVar4 + *(long *)(*(long *)(lVar1 + 0x20) + 0x20),0x24); if (*(long *)(param_1 + 0x100) == 0) { pthread_mutex_lock(__mutex); } else { psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/mysys/mf_keycache.c", 0xee8); } *(long *)(param_1 + 0x148) = *(long *)(param_1 + 0x148) + 1; uVar4 = *(uint *)(lVar1 + 0x50); if (iVar2 != 0) { uVar4 = uVar4 | 1; *(uint *)(lVar1 + 0x50) = uVar4; if (local_34 == 0) { puVar3 = (uint *)__errno_location(); local_34 = -(uint)(*puVar3 == 0) | *puVar3; } } *(uint *)(lVar1 + 0x50) = uVar4 & 0xfffffeff; link_to_file_list(param_1,lVar1,param_2,1); uVar4 = *(uint *)(lVar1 + 0x50); } *(uint *)(lVar1 + 0x50) = uVar4 & 0xffffffef; release_whole_queue(lVar1 + 0x30); if (((param_5 == 0) || (param_5 == 3)) || ((*(ushort *)(lVar1 + 0x50) & 0x284) != 0)) { unreg_request(param_1,lVar1,1); } else { free_block(param_1,lVar1); } param_3 = param_3 + 1; } while (param_3 != param_4); } return local_34; }
49,329
nlohmann::json_abi_v3_11_3::detail::out_of_range nlohmann::json_abi_v3_11_3::detail::out_of_range::create<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>*, 0>(int, 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>*)
monkey531[P]llama/common/./json.hpp
static out_of_range create(int id_, const std::string& what_arg, BasicJsonContext context) { const std::string w = concat(exception::name("out_of_range", id_), exception::diagnostics(context), what_arg); return {id_, w.c_str()}; }
O2
cpp
nlohmann::json_abi_v3_11_3::detail::out_of_range nlohmann::json_abi_v3_11_3::detail::out_of_range::create<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>*, 0>(int, 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>*): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x88, %rsp movq %rcx, %r15 movq %rdx, %r14 movl %esi, %ebp movq %rdi, %rbx leaq 0x57d57(%rip), %rsi # 0x9c2c8 leaq 0x28(%rsp), %rdi leaq 0x7(%rsp), %rdx callq 0x262e2 leaq 0x48(%rsp), %rdi leaq 0x28(%rsp), %rsi movl %ebp, %edx callq 0x3b93c leaq 0x8(%rsp), %rdi movq %r15, %rsi callq 0x3b9b2 leaq 0x68(%rsp), %rdi leaq 0x48(%rsp), %rsi leaq 0x8(%rsp), %rdx movq %r14, %rcx callq 0x3b8d2 leaq 0x8(%rsp), %rdi callq 0x20d78 leaq 0x48(%rsp), %rdi callq 0x20d78 leaq 0x28(%rsp), %rdi callq 0x20d78 movq 0x68(%rsp), %rdx movq %rbx, %rdi movl %ebp, %esi callq 0x4485e leaq 0x68(%rsp), %rdi callq 0x20d78 movq %rbx, %rax addq $0x88, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq 0x68(%rsp), %rdi jmp 0x4462d movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x20d78 jmp 0x44619 movq %rax, %rbx leaq 0x48(%rsp), %rdi callq 0x20d78 jmp 0x44628 movq %rax, %rbx leaq 0x28(%rsp), %rdi callq 0x20d78 jmp 0x44637 movq %rax, %rbx movq %rbx, %rdi callq 0x20b90
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_: push rbp push r15 push r14 push rbx sub rsp, 88h mov r15, rcx mov r14, rdx mov ebp, esi mov rbx, rdi lea rsi, aOutOfRange; "out_of_range" lea rdi, [rsp+0A8h+var_80] lea rdx, [rsp+0A8h+var_A1] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rdi, [rsp+0A8h+var_60] lea rsi, [rsp+0A8h+var_80] mov edx, ebp call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int) lea rdi, [rsp+0A8h+var_A0] mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail9exception11diagnosticsINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEESC_PKT_; nlohmann::json_abi_v3_11_3::detail::exception::diagnostics<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const*) lea rdi, [rsp+0A8h+var_40] lea rsi, [rsp+0A8h+var_60] lea rdx, [rsp+0A8h+var_A0] mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS8_S8_RKS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,std::string,std::string const&>(std::string,std::string,std::string const&) lea rdi, [rsp+0A8h+var_A0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+0A8h+var_60]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+0A8h+var_80]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdx, [rsp+0A8h+var_40]; char * mov rdi, rbx; this mov esi, ebp; int call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_rangeC2EiPKc; nlohmann::json_abi_v3_11_3::detail::out_of_range::out_of_range(int,char const*) lea rdi, [rsp+0A8h+var_40]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rax, rbx add rsp, 88h pop rbx pop r14 pop r15 pop rbp retn mov rbx, rax lea rdi, [rsp+arg_60] jmp short loc_4462D mov rbx, rax lea rdi, [rsp+arg_0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_44619 mov rbx, rax loc_44619: lea rdi, [rsp+arg_40]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_44628 mov rbx, rax loc_44628: lea rdi, [rsp+arg_20]; void * loc_4462D: call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_44637 mov rbx, rax loc_44637: mov rdi, rbx call __Unwind_Resume
nlohmann::json_abi_v3_11_3::detail::out_of_range * ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_( nlohmann::json_abi_v3_11_3::detail::out_of_range *this, int a2, long long a3) { _QWORD v5[4]; // [rsp+8h] [rbp-A0h] BYREF _QWORD v6[4]; // [rsp+28h] [rbp-80h] BYREF _BYTE v7[32]; // [rsp+48h] [rbp-60h] BYREF char *v8[8]; // [rsp+68h] [rbp-40h] BYREF std::string::basic_string<std::allocator<char>>(v6, (long long)"out_of_range"); nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v7, (long long)v6, a2); nlohmann::json_abi_v3_11_3::detail::exception::diagnostics<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>>(v5); nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,std::string,std::string const&>( (long long)v8, (long long)v7, (long long)v5, a3); std::string::~string(v5); std::string::~string(v7); std::string::~string(v6); nlohmann::json_abi_v3_11_3::detail::out_of_range::out_of_range(this, a2, v8[0]); std::string::~string(v8); return this; }
49,330
nlohmann::json_abi_v3_11_3::detail::out_of_range nlohmann::json_abi_v3_11_3::detail::out_of_range::create<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>*, 0>(int, 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>*)
monkey531[P]llama/common/./json.hpp
static out_of_range create(int id_, const std::string& what_arg, BasicJsonContext context) { const std::string w = concat(exception::name("out_of_range", id_), exception::diagnostics(context), what_arg); return {id_, w.c_str()}; }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::out_of_range nlohmann::json_abi_v3_11_3::detail::out_of_range::create<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>*, 0>(int, 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>*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x98, %rsp movq %rdx, %r15 movl %esi, %ebp movq %rdi, %rbx leaq 0x38(%rsp), %r13 movq %r13, -0x10(%r13) leaq 0x706b1(%rip), %rsi # 0xb9140 leaq 0x706b6(%rip), %rdx # 0xb914c leaq 0x28(%rsp), %rdi callq 0x590a2 leaq 0x48(%rsp), %rdi leaq 0x28(%rsp), %rsi movl %ebp, %edx callq 0x3e0b6 leaq 0x78(%rsp), %r14 movq %r14, -0x10(%r14) xorl %eax, %eax movq %rax, -0x8(%r14) movb %al, (%r14) leaq 0x18(%rsp), %r12 movq %r12, -0x10(%r12) movq %rax, -0x8(%r12) movb %al, (%r12) movq 0x8(%r15), %rsi addq 0x50(%rsp), %rsi leaq 0x8(%rsp), %rdi callq 0x18a30 movq 0x48(%rsp), %rsi movq 0x50(%rsp), %rdx leaq 0x8(%rsp), %rdi callq 0x181e0 movq 0x68(%rsp), %rsi movq 0x70(%rsp), %rdx leaq 0x8(%rsp), %rdi callq 0x181e0 movq (%r15), %rsi movq 0x8(%r15), %rdx leaq 0x8(%rsp), %rdi callq 0x181e0 movq 0x68(%rsp), %rdi cmpq %r14, %rdi je 0x48b39 movq 0x78(%rsp), %rsi incq %rsi callq 0x186a0 leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x48b54 movq 0x58(%rsp), %rsi incq %rsi callq 0x186a0 movq 0x28(%rsp), %rdi cmpq %r13, %rdi je 0x48b6b movq 0x38(%rsp), %rsi incq %rsi callq 0x186a0 movq 0x8(%rsp), %rdx movq %rbx, %rdi movl %ebp, %esi callq 0x3e31e leaq 0xa5847(%rip), %rax # 0xee3c8 movq %rax, (%rbx) movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x48b9b movq 0x18(%rsp), %rsi incq %rsi callq 0x186a0 movq %rbx, %rax addq $0x98, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x48c29 movq 0x18(%rsp), %rsi jmp 0x48c21 movq %rax, %rbx jmp 0x48c12 movq %rax, %rbx jmp 0x48c29 movq %rdx, %rbx movq %rax, %r15 movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x48beb movq 0x18(%rsp), %rsi incq %rsi callq 0x186a0 leaq 0x68(%rsp), %rdi leaq 0x48(%rsp), %rdx leaq 0x88(%rsp), %r12 movq %r14, %rsi movq %r15, %rcx movl %ebx, %r8d movq %r12, %r9 callq 0x1906d movq (%r12), %rbx movq 0x28(%rsp), %rdi cmpq %r13, %rdi je 0x48c29 movq 0x38(%rsp), %rsi incq %rsi callq 0x186a0 movq %rbx, %rdi callq 0x18b90
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 98h mov r15, rdx mov ebp, esi mov rbx, rdi lea r13, [rsp+0C8h+var_90] mov [r13-10h], r13 lea rsi, aOutOfRange; "out_of_range" lea rdx, aOutOfRange+0Ch; "" lea rdi, [rsp+0C8h+var_A0] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rdi, [rsp+0C8h+var_80]; int lea rsi, [rsp+0C8h+var_A0]; int mov edx, ebp; int call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int) lea r14, [rsp+0C8h+var_50] mov [r14-10h], r14 xor eax, eax mov [r14-8], rax mov [r14], al lea r12, [rsp+0C8h+var_B0] mov [r12-10h], r12 mov [r12-8], rax mov [r12], al mov rsi, [r15+8] add rsi, [rsp+0C8h+var_78] lea rdi, [rsp+0C8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) mov rsi, qword ptr [rsp+0C8h+var_80] mov rdx, [rsp+0C8h+var_78] lea rdi, [rsp+0C8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rsi, [rsp+0C8h+var_60] mov rdx, [rsp+0C8h+var_58] lea rdi, [rsp+0C8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rsi, [r15] mov rdx, [r15+8] lea rdi, [rsp+0C8h+var_C0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rdi, [rsp+0C8h+var_60]; void * cmp rdi, r14 jz short loc_48B39 mov rsi, [rsp+0C8h+var_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_48B39: lea rax, [rsp+0C8h+var_70] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_48B54 mov rsi, [rsp+0C8h+var_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_48B54: mov rdi, [rsp+0C8h+var_A0]; void * cmp rdi, r13 jz short loc_48B6B mov rsi, [rsp+0C8h+var_90] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_48B6B: mov rdx, [rsp+0C8h+var_C0]; char * mov rdi, rbx; this mov esi, ebp; int call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionC2EiPKc; nlohmann::json_abi_v3_11_3::detail::exception::exception(int,char const*) lea rax, off_EE3C8 mov [rbx], rax mov rdi, [rsp+0C8h+var_C0]; void * cmp rdi, r12 jz short loc_48B9B mov rsi, [rsp+0C8h+var_B0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_48B9B: mov rax, rbx add rsp, 98h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax mov rdi, [rsp+arg_0] cmp rdi, r12 jz short loc_48C29 mov rsi, [rsp+arg_10] jmp short loc_48C21 mov rbx, rax jmp short loc_48C12 mov rbx, rax jmp short loc_48C29 mov rbx, rdx mov r15, rax mov rdi, [rsp+arg_0]; void * cmp rdi, r12 jz short loc_48BEB mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_48BEB: lea rdi, [rsp+arg_60] lea rdx, [rsp+arg_40] lea r12, [rsp+arg_80] mov rsi, r14 mov rcx, r15 mov r8d, ebx mov r9, r12 call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5__cold_1 mov rbx, [r12] loc_48C12: mov rdi, [rsp+arg_20]; void * cmp rdi, r13 jz short loc_48C29 mov rsi, [rsp+arg_30] loc_48C21: inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_48C29: mov rdi, rbx call __Unwind_Resume
nlohmann::json_abi_v3_11_3::detail::exception * ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_( nlohmann::json_abi_v3_11_3::detail::exception *this, int a2, _QWORD *a3) { char *v5[2]; // [rsp+8h] [rbp-C0h] BYREF _QWORD v6[2]; // [rsp+18h] [rbp-B0h] BYREF void *v7[2]; // [rsp+28h] [rbp-A0h] BYREF _QWORD v8[2]; // [rsp+38h] [rbp-90h] BYREF int v9[2]; // [rsp+48h] [rbp-80h] BYREF long long v10; // [rsp+50h] [rbp-78h] long long v11; // [rsp+58h] [rbp-70h] BYREF void *v12; // [rsp+68h] [rbp-60h] long long v13; // [rsp+70h] [rbp-58h] _QWORD v14[10]; // [rsp+78h] [rbp-50h] BYREF v7[0] = v8; std::string::_M_construct<char const*>(v7, "out_of_range", ""); nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v9, (long long)v7, a2); v12 = v14; v13 = 0LL; LOBYTE(v14[0]) = 0; v5[0] = (char *)v6; v5[1] = 0LL; LOBYTE(v6[0]) = 0; std::string::reserve(v5, v10 + a3[1]); std::string::_M_append(v5, *(_QWORD *)v9, v10); std::string::_M_append(v5, v12, v13); std::string::_M_append(v5, *a3, a3[1]); if ( v12 != v14 ) operator delete(v12, v14[0] + 1LL); if ( *(long long **)v9 != &v11 ) operator delete(*(void **)v9, v11 + 1); if ( v7[0] != v8 ) operator delete(v7[0], v8[0] + 1LL); nlohmann::json_abi_v3_11_3::detail::exception::exception(this, a2, v5[0]); *(_QWORD *)this = off_EE3C8; if ( (_QWORD *)v5[0] != v6 ) operator delete(v5[0], v6[0] + 1LL); return this; }
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x98 MOV R15,RDX MOV EBP,ESI MOV RBX,RDI LEA R13,[RSP + 0x38] MOV qword ptr [R13 + -0x10],R13 LAB_00148a88: LEA RSI,[0x1b9140] LEA RDX,[0x1b914c] LEA RDI,[RSP + 0x28] CALL 0x001590a2 LAB_00148aa0: LEA RDI,[RSP + 0x48] LEA RSI,[RSP + 0x28] MOV EDX,EBP CALL 0x0013e0b6 LEA R14,[RSP + 0x78] MOV qword ptr [R14 + -0x10],R14 XOR EAX,EAX MOV qword ptr [R14 + -0x8],RAX MOV byte ptr [R14],AL LEA R12,[RSP + 0x18] MOV qword ptr [R12 + -0x10],R12 MOV qword ptr [R12 + -0x8],RAX MOV byte ptr [R12],AL MOV RSI,qword ptr [R15 + 0x8] ADD RSI,qword ptr [RSP + 0x50] LAB_00148adf: LEA RDI,[RSP + 0x8] CALL 0x00118a30 MOV RSI,qword ptr [RSP + 0x48] MOV RDX,qword ptr [RSP + 0x50] LEA RDI,[RSP + 0x8] CALL 0x001181e0 MOV RSI,qword ptr [RSP + 0x68] MOV RDX,qword ptr [RSP + 0x70] LEA RDI,[RSP + 0x8] CALL 0x001181e0 MOV RSI,qword ptr [R15] MOV RDX,qword ptr [R15 + 0x8] LEA RDI,[RSP + 0x8] CALL 0x001181e0 MOV RDI,qword ptr [RSP + 0x68] CMP RDI,R14 JZ 0x00148b39 MOV RSI,qword ptr [RSP + 0x78] INC RSI CALL 0x001186a0 LAB_00148b39: LEA RAX,[RSP + 0x58] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00148b54 MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x001186a0 LAB_00148b54: MOV RDI,qword ptr [RSP + 0x28] CMP RDI,R13 JZ 0x00148b6b MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x001186a0 LAB_00148b6b: MOV RDX,qword ptr [RSP + 0x8] LAB_00148b70: MOV RDI,RBX MOV ESI,EBP CALL 0x0013e31e LAB_00148b7a: LEA RAX,[0x1ee3c8] MOV qword ptr [RBX],RAX MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R12 JZ 0x00148b9b MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001186a0 LAB_00148b9b: MOV RAX,RBX ADD RSP,0x98 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
exception * _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ (exception *param_1,int param_2,ulong *param_3) { char *local_c0; int8 local_b8; char local_b0; int7 uStack_af; long *local_a0 [2]; long local_90 [2]; long *local_80 [2]; long local_70 [2]; int1 *local_60; int8 local_58; int1 local_50; int7 uStack_4f; /* try { // try from 00148a88 to 00148a9f has its CatchHandler @ 00148bc9 */ local_a0[0] = local_90; std::__cxx11::string::_M_construct<char_const*>(local_a0,"out_of_range",""); /* try { // try from 00148aa0 to 00148ab0 has its CatchHandler @ 00148bc4 */ nlohmann::json_abi_v3_11_3::detail::exception::name ((exception *)local_80,(string *)local_a0,param_2); local_58 = 0; local_50 = 0; local_b8 = 0; local_b0 = '\0'; /* try { // try from 00148adf to 00148b21 has its CatchHandler @ 00148bce */ local_c0 = &local_b0; local_60 = &local_50; std::__cxx11::string::reserve((ulong)&local_c0); std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_80[0]); std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_60); std::__cxx11::string::_M_append((char *)&local_c0,*param_3); if (local_60 != &local_50) { operator_delete(local_60,CONCAT71(uStack_4f,local_50) + 1); } if (local_80[0] != local_70) { operator_delete(local_80[0],local_70[0] + 1); } if (local_a0[0] != local_90) { operator_delete(local_a0[0],local_90[0] + 1); } /* try { // try from 00148b70 to 00148b79 has its CatchHandler @ 00148bb0 */ nlohmann::json_abi_v3_11_3::detail::exception::exception(param_1,param_2,local_c0); *(int ***)param_1 = &PTR__exception_001ee3c8; if (local_c0 != &local_b0) { operator_delete(local_c0,CONCAT71(uStack_af,local_b0) + 1); } return param_1; }
49,331
minja::Parser::parseExpansion()
monkey531[P]llama/common/minja.hpp
std::shared_ptr<Expression> parseExpansion() { static std::regex expansion_tok(R"(\*\*?)"); auto op_str = consumeToken(expansion_tok); auto expr = parseValueExpression(); if (op_str.empty()) return expr; if (!expr) throw std::runtime_error("Expected expr of 'expansion' expression"); return std::make_shared<UnaryOpExpr>(get_location(), std::move(expr), op_str == "*" ? UnaryOpExpr::Op::Expansion : UnaryOpExpr::Op::ExpansionDict); }
O3
cpp
minja::Parser::parseExpansion(): pushq %r14 pushq %rbx subq $0x78, %rsp movq %rsi, %r14 movq %rdi, %rbx leaq 0xaabfa(%rip), %rax # 0x1575b0 movb (%rax), %al testb %al, %al je 0xacae9 leaq 0xaabc9(%rip), %rdx # 0x157590 leaq 0x40(%rsp), %rdi movq %r14, %rsi movl $0x1, %ecx callq 0xa7b1a leaq 0x10(%rsp), %rdi movq %r14, %rsi callq 0xacbde cmpq $0x0, 0x48(%rsp) movq 0x10(%rsp), %rax je 0xaca23 testq %rax, %rax je 0xacb40 movq (%r14), %rax movq %rax, 0x60(%rsp) movq 0x8(%r14), %rax movq %rax, 0x68(%rsp) testq %rax, %rax je 0xaca38 movq 0xa9567(%rip), %rcx # 0x155f80 cmpb $0x0, (%rcx) je 0xaca34 incl 0x8(%rax) jmp 0xaca38 movq %rax, (%rbx) movq 0x18(%rsp), %rax movq %rax, 0x8(%rbx) jmp 0xacac3 lock incl 0x8(%rax) movq 0x20(%r14), %rax subq 0x10(%r14), %rax leaq 0x60(%rsp), %r14 movq %rax, 0x10(%r14) leaq 0x6f338(%rip), %rsi # 0x11bd88 leaq 0x40(%rsp), %rdi callq 0x1d2a0 cmpl $0x1, %eax movl $0x4, %eax sbbl $0x0, %eax leaq 0x3c(%rsp), %r9 movl %eax, (%r9) leaq 0x28(%rsp), %rdi movq $0x0, -0x8(%rdi) leaq 0x20(%rsp), %rsi leaq 0xf(%rsp), %rdx leaq 0x10(%rsp), %r8 movq %r14, %rcx callq 0xb923c movaps 0x20(%rsp), %xmm0 xorl %eax, %eax movq %rax, 0x28(%rsp) movups %xmm0, (%rbx) movq %rax, 0x20(%rsp) movq 0x68(%rsp), %rdi testq %rdi, %rdi je 0xacab4 callq 0x516f8 movq 0x18(%rsp), %rdi testq %rdi, %rdi je 0xacac3 callq 0x516f8 leaq 0x50(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xacade movq 0x50(%rsp), %rsi incq %rsi callq 0x1dc50 movq %rbx, %rax addq $0x78, %rsp popq %rbx popq %r14 retq leaq 0xaaac0(%rip), %rdi # 0x1575b0 callq 0x1e6f0 testl %eax, %eax je 0xac9c0 leaq 0xaaa8c(%rip), %rdi # 0x157590 leaq 0x68ac9(%rip), %rsi # 0x1155d4 movl $0x10, %edx callq 0x934aa leaq -0x67e66(%rip), %rdi # 0x44cb6 leaq 0xaaa6d(%rip), %rsi # 0x157590 leaq 0xaa17e(%rip), %rdx # 0x156ca8 callq 0x1da80 leaq 0xaaa7a(%rip), %rdi # 0x1575b0 callq 0x1d7c0 jmp 0xac9c0 movl $0x10, %edi callq 0x1d5b0 movq %rax, %r14 leaq 0x68a86(%rip), %rsi # 0x1155da movq %rax, %rdi callq 0x1d410 movq 0xa9485(%rip), %rsi # 0x155fe8 movq 0xa93ee(%rip), %rdx # 0x155f58 movq %r14, %rdi callq 0x1e5b0 movq %rax, %rbx leaq 0xaaa34(%rip), %rdi # 0x1575b0 callq 0x1d7a0 jmp 0xacbd6 movq %rax, %rbx jmp 0xacba7 movq %rax, %rbx movq %r14, %rdi callq 0x1d8c0 jmp 0xacba7 movq %rax, %rbx movq 0x68(%rsp), %rdi testq %rdi, %rdi je 0xacba7 callq 0x516f8 movq 0x18(%rsp), %rdi testq %rdi, %rdi je 0xacbbb callq 0x516f8 jmp 0xacbbb movq %rax, %rbx leaq 0x50(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xacbd6 movq 0x50(%rsp), %rsi incq %rsi callq 0x1dc50 movq %rbx, %rdi callq 0x1e660
_ZN5minja6Parser14parseExpansionEv: push r14 push rbx sub rsp, 78h mov r14, rsi mov rbx, rdi lea rax, _ZGVZN5minja6Parser14parseExpansionEvE13expansion_tokB5cxx11; `guard variable for'minja::Parser::parseExpansion(void)::expansion_tok mov al, [rax] test al, al jz loc_ACAE9 loc_AC9C0: lea rdx, _ZZN5minja6Parser14parseExpansionEvE13expansion_tokB5cxx11; minja::Parser::parseExpansion(void)::expansion_tok lea rdi, [rsp+88h+var_48] mov rsi, r14 mov ecx, 1 call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling) lea rdi, [rsp+88h+var_78]; this mov rsi, r14 call _ZN5minja6Parser20parseValueExpressionEv; minja::Parser::parseValueExpression(void) cmp [rsp+88h+var_40], 0 mov rax, [rsp+88h+var_78] jz short loc_ACA23 test rax, rax jz loc_ACB40 mov rax, [r14] mov [rsp+88h+var_28], rax mov rax, [r14+8] mov [rsp+88h+var_20], rax test rax, rax jz short loc_ACA38 mov rcx, cs:__libc_single_threaded_ptr cmp byte ptr [rcx], 0 jz short loc_ACA34 inc dword ptr [rax+8] jmp short loc_ACA38 loc_ACA23: mov [rbx], rax mov rax, [rsp+88h+var_70] mov [rbx+8], rax jmp loc_ACAC3 loc_ACA34: lock inc dword ptr [rax+8] loc_ACA38: mov rax, [r14+20h] sub rax, [r14+10h] lea r14, [rsp+88h+var_28] mov [r14+10h], rax lea rsi, asc_11BD87+1; "*" lea rdi, [rsp+88h+var_48] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) cmp eax, 1 mov eax, 4 sbb eax, 0 lea r9, [rsp+88h+var_4C] mov [r9], eax lea rdi, [rsp+88h+var_68+8] mov qword ptr [rdi-8], 0 lea rsi, [rsp+88h+var_68] lea rdx, [rsp+88h+var_79] lea r8, [rsp+88h+var_78] mov rcx, r14 call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEC2IN5minja11UnaryOpExprESaIS5_EJNS4_8LocationESt10shared_ptrINS4_10ExpressionEENS5_2OpEEEERPT_St20_Sp_alloc_shared_tagIT0_EDpOT1_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<minja::UnaryOpExpr,std::allocator<minja::UnaryOpExpr>,minja::Location,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op>(minja::UnaryOpExpr *&,std::_Sp_alloc_shared_tag<std::allocator<minja::UnaryOpExpr>>,minja::Location,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op &&) movaps xmm0, [rsp+88h+var_68] xor eax, eax mov qword ptr [rsp+88h+var_68+8], rax movups xmmword ptr [rbx], xmm0 mov qword ptr [rsp+88h+var_68], rax mov rdi, [rsp+88h+var_20] test rdi, rdi jz short loc_ACAB4 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_ACAB4: mov rdi, [rsp+88h+var_70] test rdi, rdi jz short loc_ACAC3 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_ACAC3: lea rax, [rsp+88h+var_38] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_ACADE mov rsi, [rsp+88h+var_38] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_ACADE: mov rax, rbx add rsp, 78h pop rbx pop r14 retn loc_ACAE9: lea rdi, _ZGVZN5minja6Parser14parseExpansionEvE13expansion_tokB5cxx11; __guard * call ___cxa_guard_acquire test eax, eax jz loc_AC9C0 lea rdi, _ZZN5minja6Parser14parseExpansionEvE13expansion_tokB5cxx11; minja::Parser::parseExpansion(void)::expansion_tok lea rsi, asc_1155D4; "\\*\\*?" mov edx, 10h call _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2EPKcNSt15regex_constants18syntax_option_typeE; std::basic_regex<char,std::regex_traits<char>>::basic_regex(char const*,std::regex_constants::syntax_option_type) lea rdi, _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev; lpfunc lea rsi, _ZZN5minja6Parser14parseExpansionEvE13expansion_tokB5cxx11; obj lea rdx, __dso_handle; lpdso_handle call ___cxa_atexit lea rdi, _ZGVZN5minja6Parser14parseExpansionEvE13expansion_tokB5cxx11; __guard * call ___cxa_guard_release jmp loc_AC9C0 loc_ACB40: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aExpectedExprOf_0; "Expected expr of 'expansion' expression" mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, r14; void * call ___cxa_throw mov rbx, rax lea rdi, _ZGVZN5minja6Parser14parseExpansionEvE13expansion_tokB5cxx11; __guard * call ___cxa_guard_abort jmp short loc_ACBD6 mov rbx, rax jmp short loc_ACBA7 mov rbx, rax mov rdi, r14; void * call ___cxa_free_exception jmp short loc_ACBA7 mov rbx, rax mov rdi, [rsp+88h+var_20] test rdi, rdi jz short loc_ACBA7 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_ACBA7: mov rdi, [rsp+88h+var_70] test rdi, rdi jz short loc_ACBBB call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) jmp short loc_ACBBB mov rbx, rax loc_ACBBB: lea rax, [rsp+88h+var_38] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_ACBD6 mov rsi, [rsp+88h+var_38] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_ACBD6: mov rdi, rbx call __Unwind_Resume
minja::Parser * minja::Parser::parseExpansion(minja::Parser *this, long long *a2) { volatile signed __int32 *v2; // rax __int128 v3; // xmm0 std::runtime_error *exception; // r14 char v6; // [rsp+Fh] [rbp-79h] BYREF long long v7; // [rsp+10h] [rbp-78h] BYREF volatile signed __int32 *v8; // [rsp+18h] [rbp-70h] __int128 v9; // [rsp+20h] [rbp-68h] BYREF int v10; // [rsp+3Ch] [rbp-4Ch] void *v11[2]; // [rsp+40h] [rbp-48h] BYREF long long v12; // [rsp+50h] [rbp-38h] BYREF long long v13; // [rsp+60h] [rbp-28h] BYREF volatile signed __int32 *v14; // [rsp+68h] [rbp-20h] long long v15; // [rsp+70h] [rbp-18h] if ( !(_BYTE)`guard variable for'minja::Parser::parseExpansion(void)::expansion_tok[abi:cxx11] && __cxa_guard_acquire(&`guard variable for'minja::Parser::parseExpansion(void)::expansion_tok[abi:cxx11]) ) { std::basic_regex<char,std::regex_traits<char>>::basic_regex( (long long)&minja::Parser::parseExpansion(void)::expansion_tok[abi:cxx11], (long long)"\\*\\*?", 0x10u); __cxa_atexit( (void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex, &minja::Parser::parseExpansion(void)::expansion_tok[abi:cxx11], &_dso_handle); __cxa_guard_release(&`guard variable for'minja::Parser::parseExpansion(void)::expansion_tok[abi:cxx11]); } minja::Parser::consumeToken( (long long)v11, (long long)a2, (long long)&minja::Parser::parseExpansion(void)::expansion_tok[abi:cxx11], 1u); minja::Parser::parseValueExpression((minja::Parser *)&v7); if ( v11[1] ) { if ( !v7 ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "Expected expr of 'expansion' expression"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } v13 = *a2; v2 = (volatile signed __int32 *)a2[1]; v14 = v2; if ( v2 ) { if ( _libc_single_threaded ) ++*((_DWORD *)v2 + 2); else _InterlockedIncrement(v2 + 2); } v15 = a2[4] - a2[2]; v10 = 4 - ((unsigned int)std::string::compare(v11, "*") == 0); *(_QWORD *)&v9 = 0LL; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<minja::UnaryOpExpr,std::allocator<minja::UnaryOpExpr>,minja::Location,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op>( (char *)&v9 + 8, &v9, &v6, &v13, &v7); v3 = v9; *((_QWORD *)&v9 + 1) = 0LL; *(_OWORD *)this = v3; *(_QWORD *)&v9 = 0LL; if ( v14 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v14); if ( v8 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v8); } else { *(_QWORD *)this = v7; *((_QWORD *)this + 1) = v8; } if ( v11[0] != &v12 ) operator delete(v11[0], v12 + 1); return this; }
parseExpansion: PUSH R14 PUSH RBX SUB RSP,0x78 MOV R14,RSI MOV RBX,RDI LEA RAX,[0x2575b0] MOV AL,byte ptr [RAX] TEST AL,AL JZ 0x001acae9 LAB_001ac9c0: LEA RDX,[0x257590] LEA RDI,[RSP + 0x40] MOV RSI,R14 MOV ECX,0x1 CALL 0x001a7b1a LAB_001ac9d9: LEA RDI,[RSP + 0x10] MOV RSI,R14 CALL 0x001acbde CMP qword ptr [RSP + 0x48],0x0 MOV RAX,qword ptr [RSP + 0x10] JZ 0x001aca23 TEST RAX,RAX JZ 0x001acb40 MOV RAX,qword ptr [R14] MOV qword ptr [RSP + 0x60],RAX MOV RAX,qword ptr [R14 + 0x8] MOV qword ptr [RSP + 0x68],RAX TEST RAX,RAX JZ 0x001aca38 MOV RCX,qword ptr [0x00255f80] CMP byte ptr [RCX],0x0 JZ 0x001aca34 INC dword ptr [RAX + 0x8] JMP 0x001aca38 LAB_001aca23: MOV qword ptr [RBX],RAX MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RBX + 0x8],RAX JMP 0x001acac3 LAB_001aca34: INC.LOCK dword ptr [RAX + 0x8] LAB_001aca38: MOV RAX,qword ptr [R14 + 0x20] SUB RAX,qword ptr [R14 + 0x10] LEA R14,[RSP + 0x60] MOV qword ptr [R14 + 0x10],RAX LEA RSI,[0x21bd88] LEA RDI,[RSP + 0x40] CALL 0x0011d2a0 CMP EAX,0x1 MOV EAX,0x4 SBB EAX,0x0 LEA R9,[RSP + 0x3c] MOV dword ptr [R9],EAX LEA RDI,[RSP + 0x28] MOV qword ptr [RDI + -0x8],0x0 LAB_001aca7a: LEA RSI,[RSP + 0x20] LEA RDX,[RSP + 0xf] LEA R8,[RSP + 0x10] MOV RCX,R14 CALL 0x001b923c MOVAPS XMM0,xmmword ptr [RSP + 0x20] XOR EAX,EAX MOV qword ptr [RSP + 0x28],RAX MOVUPS xmmword ptr [RBX],XMM0 MOV qword ptr [RSP + 0x20],RAX MOV RDI,qword ptr [RSP + 0x68] TEST RDI,RDI JZ 0x001acab4 CALL 0x001516f8 LAB_001acab4: MOV RDI,qword ptr [RSP + 0x18] TEST RDI,RDI JZ 0x001acac3 CALL 0x001516f8 LAB_001acac3: LEA RAX,[RSP + 0x50] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001acade MOV RSI,qword ptr [RSP + 0x50] INC RSI CALL 0x0011dc50 LAB_001acade: MOV RAX,RBX ADD RSP,0x78 POP RBX POP R14 RET LAB_001acae9: LEA RDI,[0x2575b0] CALL 0x0011e6f0 TEST EAX,EAX JZ 0x001ac9c0 LAB_001acafd: LEA RDI,[0x257590] LEA RSI,[0x2155d4] MOV EDX,0x10 CALL 0x001934aa LAB_001acb15: LEA RDI,[0x144cb6] LEA RSI,[0x257590] LEA RDX,[0x256ca8] CALL 0x0011da80 LEA RDI,[0x2575b0] CALL 0x0011d7c0 JMP 0x001ac9c0 LAB_001acb40: MOV EDI,0x10 CALL 0x0011d5b0 MOV R14,RAX LAB_001acb4d: LEA RSI,[0x2155da] MOV RDI,RAX CALL 0x0011d410 LAB_001acb5c: MOV RSI,qword ptr [0x00255fe8] MOV RDX,qword ptr [0x00255f58] MOV RDI,R14 CALL 0x0011e5b0
/* minja::Parser::parseExpansion() */ void minja::Parser::parseExpansion(void) { long lVar1; int iVar2; runtime_error *this; int8 *in_RSI; long *in_RDI; int1 local_79; long local_78; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_70; long local_68; long alStack_60 [2]; int local_4c; long *local_48; long local_40; long local_38 [2]; int8 local_28; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_20; long local_18; if (parseExpansion()::expansion_tok_abi_cxx11_ == '\0') { iVar2 = __cxa_guard_acquire(&parseExpansion()::expansion_tok_abi_cxx11_); if (iVar2 != 0) { /* try { // try from 001acafd to 001acb14 has its CatchHandler @ 001acb72 */ std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex ((basic_regex<char,std::__cxx11::regex_traits<char>> *) parseExpansion()::expansion_tok_abi_cxx11_,"\\*\\*?",0x10); __cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex, parseExpansion()::expansion_tok_abi_cxx11_,&__dso_handle); __cxa_guard_release(&parseExpansion()::expansion_tok_abi_cxx11_); } } consumeToken(&local_48); /* try { // try from 001ac9d9 to 001ac9e5 has its CatchHandler @ 001acbb8 */ parseValueExpression(); if (local_40 == 0) { *in_RDI = local_78; in_RDI[1] = (long)local_70; } else { if (local_78 == 0) { this = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001acb4d to 001acb5b has its CatchHandler @ 001acb88 */ std::runtime_error::runtime_error(this,"Expected expr of \'expansion\' expression"); /* try { // try from 001acb5c to 001acb71 has its CatchHandler @ 001acb83 */ /* WARNING: Subroutine does not return */ __cxa_throw(this,PTR_typeinfo_00255fe8,PTR__runtime_error_00255f58); } local_28 = *in_RSI; local_20 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)in_RSI[1]; if (local_20 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { if (*PTR___libc_single_threaded_00255f80 == '\0') { LOCK(); *(int *)(local_20 + 8) = *(int *)(local_20 + 8) + 1; UNLOCK(); } else { *(int *)(local_20 + 8) = *(int *)(local_20 + 8) + 1; } } local_18 = in_RSI[4] - in_RSI[2]; iVar2 = std::__cxx11::string::compare((char *)&local_48); local_4c = 4 - (uint)(iVar2 == 0); local_68 = 0; /* try { // try from 001aca7a to 001aca90 has its CatchHandler @ 001acb95 */ std::__shared_count<(__gnu_cxx::_Lock_policy)2>:: __shared_count<minja::UnaryOpExpr,std::allocator<minja::UnaryOpExpr>,minja::Location,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op> ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)alStack_60,&local_68,&local_79, &local_28,&local_78); lVar1 = alStack_60[0]; alStack_60[0] = 0; *in_RDI = local_68; in_RDI[1] = lVar1; local_68 = 0; if (local_20 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_20); } if (local_70 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_70); } } if (local_48 != local_38) { operator_delete(local_48,local_38[0] + 1); } return; }
49,332
my_collation_get_by_name
eloqsql/mysys/charset.c
CHARSET_INFO * my_collation_get_by_name(MY_CHARSET_LOADER *loader, const char *name, myf flags) { uint cs_number; CHARSET_INFO *cs; my_pthread_once(&charsets_initialized, init_available_charsets); cs_number= get_collation_number(name,flags); my_charset_loader_init_mysys(loader); cs= cs_number ? get_internal_charset(loader, cs_number, flags) : NULL; if (!cs && (flags & MY_WME)) { char index_file[FN_REFLEN + sizeof(MY_CHARSET_INDEX)]; strmov(get_charsets_dir(index_file),MY_CHARSET_INDEX); my_error(EE_UNKNOWN_COLLATION, MYF(ME_BELL), name, index_file); } return cs; }
O0
c
my_collation_get_by_name: pushq %rbp movq %rsp, %rbp subq $0x260, %rsp # imm = 0x260 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x228(%rbp) movq %rsi, -0x230(%rbp) movq %rdx, -0x238(%rbp) leaq 0xba6480(%rip), %rdi # 0xc82734 leaq -0x90b(%rip), %rsi # 0xdb9b0 callq 0x2a240 movq -0x230(%rbp), %rdi movq -0x238(%rbp), %rsi callq 0xdb900 movl %eax, -0x23c(%rbp) movq -0x228(%rbp), %rdi callq 0xdafd0 cmpl $0x0, -0x23c(%rbp) je 0xdc310 movq -0x228(%rbp), %rdi movl -0x23c(%rbp), %esi movq -0x238(%rbp), %rdx callq 0xdc000 movq %rax, -0x250(%rbp) jmp 0xdc31b xorl %eax, %eax movq %rax, -0x250(%rbp) jmp 0xdc31b movq -0x250(%rbp), %rax movq %rax, -0x248(%rbp) cmpq $0x0, -0x248(%rbp) jne 0xdc37e movq -0x238(%rbp), %rax andq $0x10, %rax cmpq $0x0, %rax je 0xdc37e leaq -0x220(%rbp), %rdi callq 0xdb670 movq %rax, %rdi leaq 0x77b77(%rip), %rsi # 0x153ed1 callq 0x2a730 movq -0x230(%rbp), %rdx leaq -0x220(%rbp), %rcx movl $0x1c, %edi movl $0x4, %esi movb $0x0, %al callq 0xefb40 movq -0x248(%rbp), %rax movq %rax, -0x258(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0xdc3ae movq -0x258(%rbp), %rax addq $0x260, %rsp # imm = 0x260 popq %rbp retq callq 0x2a270 nopw %cs:(%rax,%rax)
my_collation_get_by_name: push rbp mov rbp, rsp sub rsp, 260h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_228], rdi mov [rbp+var_230], rsi mov [rbp+var_238], rdx lea rdi, charsets_initialized lea rsi, init_available_charsets call _pthread_once mov rdi, [rbp+var_230] mov rsi, [rbp+var_238] call get_collation_number mov [rbp+var_23C], eax mov rdi, [rbp+var_228] call my_charset_loader_init_mysys cmp [rbp+var_23C], 0 jz short loc_DC310 mov rdi, [rbp+var_228] mov esi, [rbp+var_23C] mov rdx, [rbp+var_238] call get_internal_charset mov [rbp+var_250], rax jmp short loc_DC31B loc_DC310: xor eax, eax mov [rbp+var_250], rax jmp short $+2 loc_DC31B: mov rax, [rbp+var_250] mov [rbp+var_248], rax cmp [rbp+var_248], 0 jnz short loc_DC37E mov rax, [rbp+var_238] and rax, 10h cmp rax, 0 jz short loc_DC37E lea rdi, [rbp+var_220] call get_charsets_dir mov rdi, rax lea rsi, aIndexXml; "Index.xml" call _stpcpy mov rdx, [rbp+var_230] lea rcx, [rbp+var_220] mov edi, 1Ch mov esi, 4 mov al, 0 call my_error loc_DC37E: mov rax, [rbp+var_248] mov [rbp+var_258], rax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_DC3AE mov rax, [rbp+var_258] add rsp, 260h pop rbp retn loc_DC3AE: call ___stack_chk_fail
long long my_collation_get_by_name(long long a1, long long a2, long long a3) { long long charsets_dir; // rax int v4; // r8d int v5; // r9d long long internal_charset; // [rsp+10h] [rbp-250h] unsigned int collation_number; // [rsp+24h] [rbp-23Ch] _BYTE v10[536]; // [rsp+40h] [rbp-220h] BYREF unsigned long long v11; // [rsp+258h] [rbp-8h] v11 = __readfsqword(0x28u); pthread_once(&charsets_initialized, init_available_charsets); collation_number = get_collation_number(a2, a3); my_charset_loader_init_mysys(a1); if ( collation_number ) internal_charset = get_internal_charset(a1, collation_number, a3); else internal_charset = 0LL; if ( !internal_charset && (a3 & 0x10) != 0 ) { charsets_dir = get_charsets_dir((long long)v10); stpcpy(charsets_dir, "Index.xml"); my_error(28, 4, a2, (unsigned int)v10, v4, v5); } return internal_charset; }
my_collation_get_by_name: PUSH RBP MOV RBP,RSP SUB RSP,0x260 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x228],RDI MOV qword ptr [RBP + -0x230],RSI MOV qword ptr [RBP + -0x238],RDX LEA RDI,[0xd82734] LEA RSI,[0x1db9b0] CALL 0x0012a240 MOV RDI,qword ptr [RBP + -0x230] MOV RSI,qword ptr [RBP + -0x238] CALL 0x001db900 MOV dword ptr [RBP + -0x23c],EAX MOV RDI,qword ptr [RBP + -0x228] CALL 0x001dafd0 CMP dword ptr [RBP + -0x23c],0x0 JZ 0x001dc310 MOV RDI,qword ptr [RBP + -0x228] MOV ESI,dword ptr [RBP + -0x23c] MOV RDX,qword ptr [RBP + -0x238] CALL 0x001dc000 MOV qword ptr [RBP + -0x250],RAX JMP 0x001dc31b LAB_001dc310: XOR EAX,EAX MOV qword ptr [RBP + -0x250],RAX JMP 0x001dc31b LAB_001dc31b: MOV RAX,qword ptr [RBP + -0x250] MOV qword ptr [RBP + -0x248],RAX CMP qword ptr [RBP + -0x248],0x0 JNZ 0x001dc37e MOV RAX,qword ptr [RBP + -0x238] AND RAX,0x10 CMP RAX,0x0 JZ 0x001dc37e LEA RDI,[RBP + -0x220] CALL 0x001db670 MOV RDI,RAX LEA RSI,[0x253ed1] CALL 0x0012a730 MOV RDX,qword ptr [RBP + -0x230] LEA RCX,[RBP + -0x220] MOV EDI,0x1c MOV ESI,0x4 MOV AL,0x0 CALL 0x001efb40 LAB_001dc37e: MOV RAX,qword ptr [RBP + -0x248] MOV qword ptr [RBP + -0x258],RAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x001dc3ae MOV RAX,qword ptr [RBP + -0x258] ADD RSP,0x260 POP RBP RET LAB_001dc3ae: CALL 0x0012a270
long my_collation_get_by_name(int8 param_1,int8 param_2,ulong param_3) { int iVar1; char *__dest; long in_FS_OFFSET; long local_258; int1 local_228 [536]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); pthread_once(&charsets_initialized,init_available_charsets); iVar1 = get_collation_number(param_2,param_3); my_charset_loader_init_mysys(param_1); if (iVar1 == 0) { local_258 = 0; } else { local_258 = get_internal_charset(param_1,iVar1,param_3); } if ((local_258 == 0) && ((param_3 & 0x10) != 0)) { __dest = (char *)get_charsets_dir(local_228); stpcpy(__dest,"Index.xml"); my_error(0x1c,4,param_2,local_228); } if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return local_258; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
49,333
nglog::(anonymous namespace)::LogFileObject::~LogFileObject()
ng-log[P]ng-log/src/logging.cc
LogFileObject::~LogFileObject() { std::lock_guard<std::mutex> l{mutex_}; file_ = nullptr; }
O3
cpp
nglog::(anonymous namespace)::LogFileObject::~LogFileObject(): pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx leaq 0x25676(%rip), %rax # 0x2f820 movq %rax, (%rdi) leaq 0x8(%rdi), %r14 movq %r14, %rdi callq 0x7820 testl %eax, %eax jne 0xa25b movq 0x98(%rbx), %rdi movq $0x0, 0x98(%rbx) testq %rdi, %rdi je 0xa1dd callq 0x7520 movq %r14, %rdi callq 0x73e0 movq 0x98(%rbx), %rdi testq %rdi, %rdi je 0xa1f6 callq 0x7520 movq $0x0, 0x98(%rbx) movq 0x78(%rbx), %rdi leaq 0x88(%rbx), %rax cmpq %rax, %rdi je 0xa21c movq (%rax), %rsi incq %rsi callq 0x7540 movq 0x58(%rbx), %rdi leaq 0x68(%rbx), %rax cmpq %rax, %rdi je 0xa234 movq (%rax), %rsi incq %rsi callq 0x7540 movq 0x38(%rbx), %rdi addq $0x48, %rbx cmpq %rbx, %rdi je 0xa253 movq (%rbx), %rsi incq %rsi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x7540 addq $0x8, %rsp popq %rbx popq %r14 retq movl %eax, %edi callq 0x7350 movq %rax, %rdi callq 0x9b03
_ZN5nglog12_GLOBAL__N_113LogFileObjectD2Ev: push r14 push rbx push rax mov rbx, rdi lea rax, off_2F820 mov [rdi], rax lea r14, [rdi+8] mov rdi, r14 call _pthread_mutex_lock test eax, eax jnz loc_A25B mov rdi, [rbx+98h] mov qword ptr [rbx+98h], 0 test rdi, rdi jz short loc_A1DD call _fclose loc_A1DD: mov rdi, r14 call _pthread_mutex_unlock mov rdi, [rbx+98h] test rdi, rdi jz short loc_A1F6 call _fclose loc_A1F6: mov qword ptr [rbx+98h], 0 mov rdi, [rbx+78h]; void * lea rax, [rbx+88h] cmp rdi, rax jz short loc_A21C mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_A21C: mov rdi, [rbx+58h]; void * lea rax, [rbx+68h] cmp rdi, rax jz short loc_A234 mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_A234: mov rdi, [rbx+38h]; void * add rbx, 48h ; 'H' cmp rdi, rbx jz short loc_A253 mov rsi, [rbx] inc rsi; unsigned __int64 add rsp, 8 pop rbx pop r14 jmp __ZdlPvm; operator delete(void *,ulong) loc_A253: add rsp, 8 pop rbx pop r14 retn loc_A25B: mov edi, eax; int call __ZSt20__throw_system_errori; std::__throw_system_error(int) mov rdi, rax call __clang_call_terminate
void nglog::`anonymous namespace'::LogFileObject::~LogFileObject( nglog::_anonymous_namespace_::LogFileObject *this) { char *v2; // r14 int v3; // eax long long v4; // rdi char *v5; // rdi char *v6; // rdi _QWORD *v7; // rdi _QWORD *v8; // rbx *(_QWORD *)this = off_2F820; v2 = (char *)this + 8; v3 = pthread_mutex_lock((char *)this + 8); if ( v3 ) std::__throw_system_error(v3); v4 = *((_QWORD *)this + 19); *((_QWORD *)this + 19) = 0LL; if ( v4 ) fclose(); pthread_mutex_unlock(v2); if ( *((_QWORD *)this + 19) ) fclose(); *((_QWORD *)this + 19) = 0LL; v5 = (char *)*((_QWORD *)this + 15); if ( v5 != (char *)this + 136 ) operator delete(v5, *((_QWORD *)this + 17) + 1LL); v6 = (char *)*((_QWORD *)this + 11); if ( v6 != (char *)this + 104 ) operator delete(v6, *((_QWORD *)this + 13) + 1LL); v7 = (_QWORD *)*((_QWORD *)this + 7); v8 = (_QWORD *)((char *)this + 72); if ( v7 != v8 ) operator delete(v7, *v8 + 1LL); }
~LogFileObject: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI LEA RAX,[0x12f820] MOV qword ptr [RDI],RAX LEA R14,[RDI + 0x8] MOV RDI,R14 CALL 0x00107820 TEST EAX,EAX JNZ 0x0010a25b MOV RDI,qword ptr [RBX + 0x98] MOV qword ptr [RBX + 0x98],0x0 TEST RDI,RDI JZ 0x0010a1dd CALL 0x00107520 LAB_0010a1dd: MOV RDI,R14 CALL 0x001073e0 MOV RDI,qword ptr [RBX + 0x98] TEST RDI,RDI JZ 0x0010a1f6 CALL 0x00107520 LAB_0010a1f6: MOV qword ptr [RBX + 0x98],0x0 MOV RDI,qword ptr [RBX + 0x78] LEA RAX,[RBX + 0x88] CMP RDI,RAX JZ 0x0010a21c MOV RSI,qword ptr [RAX] INC RSI CALL 0x00107540 LAB_0010a21c: MOV RDI,qword ptr [RBX + 0x58] LEA RAX,[RBX + 0x68] CMP RDI,RAX JZ 0x0010a234 MOV RSI,qword ptr [RAX] INC RSI CALL 0x00107540 LAB_0010a234: MOV RDI,qword ptr [RBX + 0x38] ADD RBX,0x48 CMP RDI,RBX JZ 0x0010a253 MOV RSI,qword ptr [RBX] INC RSI ADD RSP,0x8 POP RBX POP R14 JMP 0x00107540 LAB_0010a253: ADD RSP,0x8 POP RBX POP R14 RET LAB_0010a25b: MOV EDI,EAX CALL 0x00107350
/* nglog::(anonymous namespace)::LogFileObject::~LogFileObject() */ void __thiscall nglog::(anonymous_namespace)::LogFileObject::~LogFileObject(LogFileObject *this) { FILE *__stream; int iVar1; *(int ***)this = &PTR__LogFileObject_0012f820; iVar1 = pthread_mutex_lock((pthread_mutex_t *)(this + 8)); if (iVar1 != 0) { /* try { // try from 0010a25b to 0010a261 has its CatchHandler @ 0010a262 */ /* WARNING: Subroutine does not return */ std::__throw_system_error(iVar1); } __stream = *(FILE **)(this + 0x98); *(int8 *)(this + 0x98) = 0; if (__stream != (FILE *)0x0) { fclose(__stream); } pthread_mutex_unlock((pthread_mutex_t *)(this + 8)); if (*(FILE **)(this + 0x98) != (FILE *)0x0) { fclose(*(FILE **)(this + 0x98)); } *(int8 *)(this + 0x98) = 0; if (*(LogFileObject **)(this + 0x78) != this + 0x88) { operator_delete(*(LogFileObject **)(this + 0x78),*(long *)(this + 0x88) + 1); } if (*(LogFileObject **)(this + 0x58) != this + 0x68) { operator_delete(*(LogFileObject **)(this + 0x58),*(long *)(this + 0x68) + 1); } if (*(LogFileObject **)(this + 0x38) != this + 0x48) { operator_delete(*(LogFileObject **)(this + 0x38),*(long *)(this + 0x48) + 1); return; } return; }
49,334
ma_unpin_all_pages
eloqsql/storage/maria/ma_key_recover.c
void _ma_unpin_all_pages(MARIA_HA *info, LSN undo_lsn) { MARIA_PINNED_PAGE *page_link= ((MARIA_PINNED_PAGE*) dynamic_array_ptr(&info->pinned_pages, 0)); MARIA_PINNED_PAGE *pinned_page= page_link + info->pinned_pages.elements; DBUG_ENTER("_ma_unpin_all_pages"); DBUG_PRINT("info", ("undo_lsn: %lu", (ulong) undo_lsn)); if (!info->s->now_transactional) DBUG_ASSERT(undo_lsn == LSN_IMPOSSIBLE || maria_in_recovery); while (pinned_page-- != page_link) { /* Note this assert fails if we got a disk error or the record file is corrupted, which means we should have this enabled only in debug builds. */ #ifdef EXTRA_DEBUG DBUG_ASSERT((!pinned_page->changed || undo_lsn != LSN_IMPOSSIBLE || !info->s->now_transactional) || (info->s->state.changed & STATE_CRASHED_FLAGS)); #endif pagecache_unlock_by_link(info->s->pagecache, pinned_page->link, pinned_page->unlock, PAGECACHE_UNPIN, info->trn->rec_lsn, undo_lsn, pinned_page->changed, FALSE); } info->pinned_pages.elements= 0; DBUG_VOID_RETURN; }
O0
c
ma_unpin_all_pages: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq 0x2e8(%rax), %rax movq -0x8(%rbp), %rcx imull $0x0, 0x2fc(%rcx), %ecx movl %ecx, %ecx addq %rcx, %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax movq -0x8(%rbp), %rcx movl 0x2f0(%rcx), %ecx imulq $0x18, %rcx, %rcx addq %rcx, %rax movq %rax, -0x20(%rbp) jmp 0x4098a movq -0x8(%rbp), %rax movq (%rax), %rax cmpb $0x0, 0x7e7(%rax) jne 0x409a0 jmp 0x4099c jmp 0x4099e jmp 0x409a0 jmp 0x409a2 movq -0x20(%rbp), %rax movq %rax, %rcx addq $-0x18, %rcx movq %rcx, -0x20(%rbp) cmpq -0x18(%rbp), %rax je 0x40a08 movq -0x8(%rbp), %rax movq (%rax), %rax movq 0x600(%rax), %rdi movq -0x20(%rbp), %rax movq (%rax), %rsi movq -0x20(%rbp), %rax movl 0x8(%rax), %edx movq -0x8(%rbp), %rax movq 0x8(%rax), %rax movq 0x90(%rax), %r8 movq -0x10(%rbp), %r9 movq -0x20(%rbp), %rax movl $0x3, %ecx xorl %r10d, %r10d movsbl 0x10(%rax), %eax movl %eax, (%rsp) movl $0x0, 0x8(%rsp) callq 0x991d0 jmp 0x409a2 movq -0x8(%rbp), %rax movl $0x0, 0x2f0(%rax) jmp 0x40a18 addq $0x30, %rsp popq %rbp retq nop
_ma_unpin_all_pages: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] mov rax, [rax+2E8h] mov rcx, [rbp+var_8] imul ecx, [rcx+2FCh], 0 mov ecx, ecx add rax, rcx mov [rbp+var_18], rax mov rax, [rbp+var_18] mov rcx, [rbp+var_8] mov ecx, [rcx+2F0h] imul rcx, 18h add rax, rcx mov [rbp+var_20], rax jmp short $+2 loc_4098A: mov rax, [rbp+var_8] mov rax, [rax] cmp byte ptr [rax+7E7h], 0 jnz short loc_409A0 jmp short $+2 loc_4099C: jmp short $+2 loc_4099E: jmp short $+2 loc_409A0: jmp short $+2 loc_409A2: mov rax, [rbp+var_20] mov rcx, rax add rcx, 0FFFFFFFFFFFFFFE8h mov [rbp+var_20], rcx cmp rax, [rbp+var_18] jz short loc_40A08 mov rax, [rbp+var_8] mov rax, [rax] mov rdi, [rax+600h] mov rax, [rbp+var_20] mov rsi, [rax] mov rax, [rbp+var_20] mov edx, [rax+8] mov rax, [rbp+var_8] mov rax, [rax+8] mov r8, [rax+90h] mov r9, [rbp+var_10] mov rax, [rbp+var_20] mov ecx, 3 xor r10d, r10d movsx eax, byte ptr [rax+10h] mov [rsp+30h+var_30], eax mov [rsp+30h+var_28], 0 call pagecache_unlock_by_link jmp short loc_409A2 loc_40A08: mov rax, [rbp+var_8] mov dword ptr [rax+2F0h], 0 jmp short $+2 loc_40A18: add rsp, 30h pop rbp retn
long long ma_unpin_all_pages(long long a1, int a2) { long long v2; // rax long long result; // rax long long i; // [rsp+10h] [rbp-20h] long long v5; // [rsp+18h] [rbp-18h] v5 = *(_QWORD *)(a1 + 744); for ( i = 24LL * *(unsigned int *)(a1 + 752) + v5; ; pagecache_unlock_by_link( *(_QWORD *)(*(_QWORD *)a1 + 1536LL), *(_QWORD *)i, *(_DWORD *)(i + 8), 3, *(_QWORD *)(*(_QWORD *)(a1 + 8) + 144LL), a2, *(_BYTE *)(i + 16), 0) ) { v2 = i; i -= 24LL; if ( v2 == v5 ) break; } result = a1; *(_DWORD *)(a1 + 752) = 0; return result; }
_ma_unpin_all_pages: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x2e8] MOV RCX,qword ptr [RBP + -0x8] IMUL ECX,dword ptr [RCX + 0x2fc],0x0 MOV ECX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RCX + 0x2f0] IMUL RCX,RCX,0x18 ADD RAX,RCX MOV qword ptr [RBP + -0x20],RAX JMP 0x0014098a LAB_0014098a: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] CMP byte ptr [RAX + 0x7e7],0x0 JNZ 0x001409a0 JMP 0x0014099c LAB_0014099c: JMP 0x0014099e LAB_0014099e: JMP 0x001409a0 LAB_001409a0: JMP 0x001409a2 LAB_001409a2: MOV RAX,qword ptr [RBP + -0x20] MOV RCX,RAX ADD RCX,-0x18 MOV qword ptr [RBP + -0x20],RCX CMP RAX,qword ptr [RBP + -0x18] JZ 0x00140a08 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV RDI,qword ptr [RAX + 0x600] MOV RAX,qword ptr [RBP + -0x20] MOV RSI,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x20] MOV EDX,dword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x8] MOV R8,qword ptr [RAX + 0x90] MOV R9,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x20] MOV ECX,0x3 XOR R10D,R10D MOVSX EAX,byte ptr [RAX + 0x10] MOV dword ptr [RSP],EAX MOV dword ptr [RSP + 0x8],0x0 CALL 0x001991d0 JMP 0x001409a2 LAB_00140a08: MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x2f0],0x0 JMP 0x00140a18 LAB_00140a18: ADD RSP,0x30 POP RBP RET
void _ma_unpin_all_pages(long *param_1,int8 param_2) { int8 *puVar1; int8 *local_28; puVar1 = (int8 *)param_1[0x5d]; local_28 = puVar1 + (ulong)*(uint *)(param_1 + 0x5e) * 3; while (local_28 != puVar1) { pagecache_unlock_by_link (*(int8 *)(*param_1 + 0x600),local_28[-3],*(int4 *)(local_28 + -2),3, *(int8 *)(param_1[1] + 0x90),param_2,(int)*(char *)(local_28 + -1),0); local_28 = local_28 + -3; } *(int4 *)(param_1 + 0x5e) = 0; return; }
49,335
ma_unpin_all_pages
eloqsql/storage/maria/ma_key_recover.c
void _ma_unpin_all_pages(MARIA_HA *info, LSN undo_lsn) { MARIA_PINNED_PAGE *page_link= ((MARIA_PINNED_PAGE*) dynamic_array_ptr(&info->pinned_pages, 0)); MARIA_PINNED_PAGE *pinned_page= page_link + info->pinned_pages.elements; DBUG_ENTER("_ma_unpin_all_pages"); DBUG_PRINT("info", ("undo_lsn: %lu", (ulong) undo_lsn)); if (!info->s->now_transactional) DBUG_ASSERT(undo_lsn == LSN_IMPOSSIBLE || maria_in_recovery); while (pinned_page-- != page_link) { /* Note this assert fails if we got a disk error or the record file is corrupted, which means we should have this enabled only in debug builds. */ #ifdef EXTRA_DEBUG DBUG_ASSERT((!pinned_page->changed || undo_lsn != LSN_IMPOSSIBLE || !info->s->now_transactional) || (info->s->state.changed & STATE_CRASHED_FLAGS)); #endif pagecache_unlock_by_link(info->s->pagecache, pinned_page->link, pinned_page->unlock, PAGECACHE_UNPIN, info->trn->rec_lsn, undo_lsn, pinned_page->changed, FALSE); } info->pinned_pages.elements= 0; DBUG_VOID_RETURN; }
O3
c
ma_unpin_all_pages: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rdi, %rbx movl 0x2f0(%rdi), %eax testq %rax, %rax je 0x3dd2a movq %rsi, %r14 movq 0x2e8(%rbx), %r15 shlq $0x3, %rax leaq (%rax,%rax,2), %r12 movq (%rbx), %rax movq 0x8(%rbx), %rcx movq 0x600(%rax), %rdi movq -0x18(%r15,%r12), %rsi movl -0x10(%r15,%r12), %edx movq 0x90(%rcx), %r8 movsbl -0x8(%r15,%r12), %eax movl $0x3, %ecx movq %r14, %r9 pushq $0x0 pushq %rax callq 0x70749 addq $0x10, %rsp addq $-0x18, %r12 jne 0x3dceb movl $0x0, 0x2f0(%rbx) popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
_ma_unpin_all_pages: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov rbx, rdi mov eax, [rdi+2F0h] test rax, rax jz short loc_3DD2A mov r14, rsi mov r15, [rbx+2E8h] shl rax, 3 lea r12, [rax+rax*2] loc_3DCEB: mov rax, [rbx] mov rcx, [rbx+8] mov rdi, [rax+600h] mov rsi, [r15+r12-18h] mov edx, [r15+r12-10h] mov r8, [rcx+90h] movsx eax, byte ptr [r15+r12-8] mov ecx, 3 mov r9, r14 push 0 push rax call pagecache_unlock_by_link add rsp, 10h add r12, 0FFFFFFFFFFFFFFE8h jnz short loc_3DCEB loc_3DD2A: mov dword ptr [rbx+2F0h], 0 pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long ma_unpin_all_pages(long long a1, int a2) { long long result; // rax long long v3; // r15 long long v4; // r12 result = *(unsigned int *)(a1 + 752); if ( *(_DWORD *)(a1 + 752) ) { v3 = *(_QWORD *)(a1 + 744); v4 = 24 * result; do { result = pagecache_unlock_by_link( *(_QWORD *)(*(_QWORD *)a1 + 1536LL), *(_QWORD *)(v3 + v4 - 24), *(_DWORD *)(v3 + v4 - 16), 3, *(_QWORD *)(*(_QWORD *)(a1 + 8) + 144LL), a2, (unsigned int)*(char *)(v3 + v4 - 8), 0LL); v4 -= 24LL; } while ( v4 ); } *(_DWORD *)(a1 + 752) = 0; return result; }
_ma_unpin_all_pages: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV RBX,RDI MOV EAX,dword ptr [RDI + 0x2f0] TEST RAX,RAX JZ 0x0013dd2a MOV R14,RSI MOV R15,qword ptr [RBX + 0x2e8] SHL RAX,0x3 LEA R12,[RAX + RAX*0x2] LAB_0013dceb: MOV RAX,qword ptr [RBX] MOV RCX,qword ptr [RBX + 0x8] MOV RDI,qword ptr [RAX + 0x600] MOV RSI,qword ptr [R15 + R12*0x1 + -0x18] MOV EDX,dword ptr [R15 + R12*0x1 + -0x10] MOV R8,qword ptr [RCX + 0x90] MOVSX EAX,byte ptr [R15 + R12*0x1 + -0x8] MOV ECX,0x3 MOV R9,R14 PUSH 0x0 PUSH RAX CALL 0x00170749 ADD RSP,0x10 ADD R12,-0x18 JNZ 0x0013dceb LAB_0013dd2a: MOV dword ptr [RBX + 0x2f0],0x0 POP RBX POP R12 POP R14 POP R15 POP RBP RET
void _ma_unpin_all_pages(long *param_1,int8 param_2) { long lVar1; long lVar2; if ((ulong)*(uint *)(param_1 + 0x5e) != 0) { lVar1 = param_1[0x5d]; lVar2 = (ulong)*(uint *)(param_1 + 0x5e) * 0x18; do { pagecache_unlock_by_link (*(int8 *)(*param_1 + 0x600),*(int8 *)(lVar1 + -0x18 + lVar2), *(int4 *)(lVar1 + -0x10 + lVar2),3,*(int8 *)(param_1[1] + 0x90),param_2 ,(int)*(char *)(lVar1 + -8 + lVar2),0); lVar2 = lVar2 + -0x18; } while (lVar2 != 0); } *(int4 *)(param_1 + 0x5e) = 0; return; }
49,336
llava_validate_embed_size
monkey531[P]llama/examples/llava/llava.cpp
bool llava_validate_embed_size(const llama_context * ctx_llama, const clip_ctx * ctx_clip) { // make sure that the correct mmproj was used, i.e., compare apples to apples int n_llama_embd = llama_model_n_embd(llama_get_model(ctx_llama)); auto n_image_embd = clip_n_mmproj_embd(ctx_clip); if (n_image_embd != n_llama_embd) { LOG_ERR("%s: embedding dim of the multimodal projector (%d) is not equal to that of LLaMA (%d). Make sure that you use the correct mmproj file.\n", __func__, n_image_embd, n_llama_embd); return false; } return true; }
O2
cpp
llava_validate_embed_size: pushq %rbp pushq %r14 pushq %rbx movq %rsi, %r14 callq 0x29a20 movq %rax, %rdi callq 0x286c0 movl %eax, %ebx movq %r14, %rdi callq 0x2af50 movl %eax, %ebp cmpl %ebx, %eax jne 0x2c00a cmpl %ebx, %ebp sete %al popq %rbx popq %r14 popq %rbp retq movq 0x37f17(%rip), %rax # 0x63f28 movq (%rax), %rdi leaq 0x24fed(%rip), %rsi # 0x51008 leaq 0x2506e(%rip), %rdx # 0x51090 movl %ebp, %ecx movl %ebx, %r8d xorl %eax, %eax callq 0x2abc0 jmp 0x2c000
llava_validate_embed_size: push rbp push r14 push rbx mov r14, rsi call _llama_get_model mov rdi, rax call _llama_model_n_embd mov ebx, eax mov rdi, r14 call _clip_n_mmproj_embd mov ebp, eax cmp eax, ebx jnz short loc_2C00A loc_2C000: cmp ebp, ebx setz al pop rbx pop r14 pop rbp retn loc_2C00A: mov rax, cs:stderr_ptr mov rdi, [rax] lea rsi, aSEmbeddingDimO; "%s: embedding dim of the multimodal pro"... lea rdx, aLlavaValidateE_0; "llava_validate_embed_size" mov ecx, ebp mov r8d, ebx xor eax, eax call _fprintf jmp short loc_2C000
bool llava_validate_embed_size(long long a1, long long a2) { long long model; // rax int v3; // ebx int v4; // eax int v5; // ebp model = llama_get_model(); v3 = llama_model_n_embd(model); v4 = clip_n_mmproj_embd(a2); v5 = v4; if ( v4 != v3 ) fprintf( stderr, "%s: embedding dim of the multimodal projector (%d) is not equal to that of LLaMA (%d). Make sure that you use the " "correct mmproj file.\n", "llava_validate_embed_size", v4, v3); return v5 == v3; }
llava_validate_embed_size: PUSH RBP PUSH R14 PUSH RBX MOV R14,RSI CALL 0x00129a20 MOV RDI,RAX CALL 0x001286c0 MOV EBX,EAX MOV RDI,R14 CALL 0x0012af50 MOV EBP,EAX CMP EAX,EBX JNZ 0x0012c00a LAB_0012c000: CMP EBP,EBX SETZ AL POP RBX POP R14 POP RBP RET LAB_0012c00a: MOV RAX,qword ptr [0x00163f28] MOV RDI,qword ptr [RAX] LEA RSI,[0x151008] LEA RDX,[0x151090] MOV ECX,EBP MOV R8D,EBX XOR EAX,EAX CALL 0x0012abc0 JMP 0x0012c000
bool llava_validate_embed_size(int8 param_1,int8 param_2) { uint uVar1; uint uVar2; int8 uVar3; uVar3 = llama_get_model(); uVar1 = llama_model_n_embd(uVar3); uVar2 = clip_n_mmproj_embd(param_2); if (uVar2 != uVar1) { fprintf(*(FILE **)PTR_stderr_00163f28, "%s: embedding dim of the multimodal projector (%d) is not equal to that of LLaMA (%d). Make sure that you use the correct mmproj file.\n" ,"llava_validate_embed_size",(ulong)uVar2,(ulong)uVar1); } return uVar2 == uVar1; }
49,337
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>> 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>::erase<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>>, 0>(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>>)
monkey531[P]llama/common/json.hpp
IteratorType erase(IteratorType pos) { // make sure iterator fits the current value if (JSON_HEDLEY_UNLIKELY(this != pos.m_object)) { JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", this)); } IteratorType result = end(); switch (m_data.m_type) { case value_t::boolean: case value_t::number_float: case value_t::number_integer: case value_t::number_unsigned: case value_t::string: case value_t::binary: { if (JSON_HEDLEY_UNLIKELY(!pos.m_it.primitive_iterator.is_begin())) { JSON_THROW(invalid_iterator::create(205, "iterator out of range", this)); } if (is_string()) { AllocatorType<string_t> alloc; std::allocator_traits<decltype(alloc)>::destroy(alloc, m_data.m_value.string); std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_data.m_value.string, 1); m_data.m_value.string = nullptr; } else if (is_binary()) { AllocatorType<binary_t> alloc; std::allocator_traits<decltype(alloc)>::destroy(alloc, m_data.m_value.binary); std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_data.m_value.binary, 1); m_data.m_value.binary = nullptr; } m_data.m_type = value_t::null; assert_invariant(); break; } case value_t::object: { result.m_it.object_iterator = m_data.m_value.object->erase(pos.m_it.object_iterator); break; } case value_t::array: { result.m_it.array_iterator = m_data.m_value.array->erase(pos.m_it.array_iterator); break; } case value_t::null: case value_t::discarded: default: JSON_THROW(type_error::create(307, detail::concat("cannot use erase() with ", type_name()), this)); } return result; }
O0
cpp
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>> 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>::erase<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>>, 0>(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>>): subq $0x138, %rsp # imm = 0x138 movq %rdx, 0x50(%rsp) movq %rdi, 0x58(%rsp) movq %rdi, %rax movq %rax, 0x60(%rsp) movq %rdi, 0x130(%rsp) movq %rsi, 0x128(%rsp) movq %rdx, 0x120(%rsp) movq 0x128(%rsp), %rax movq %rax, 0x68(%rsp) cmpq (%rdx), %rax setne %al xorb $-0x1, %al xorb $-0x1, %al testb $0x1, %al jne 0xc7601 jmp 0xc76e7 movb $0x1, 0xeb(%rsp) movl $0x20, %edi callq 0x52570 movq %rax, 0x40(%rsp) leaq 0xff(%rsp), %rdi movq %rdi, 0x48(%rsp) callq 0x52de0 movq 0x48(%rsp), %rdx leaq 0xfdf2c(%rip), %rsi # 0x1c5562 leaq 0x100(%rsp), %rdi callq 0x5bc60 jmp 0xc7645 movq 0x68(%rsp), %rcx movq 0x40(%rsp), %rdi movl $0xca, %esi leaq 0x100(%rsp), %rdx callq 0xc8100 jmp 0xc7663 movq 0x40(%rsp), %rdi movb $0x0, 0xeb(%rsp) leaq 0x17abc9(%rip), %rsi # 0x242240 leaq 0xc32(%rip), %rdx # 0xc82b0 callq 0x52960 jmp 0xc7af3 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf0(%rsp) movl %eax, 0xec(%rsp) jmp 0xc76bf movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf0(%rsp) movl %eax, 0xec(%rsp) leaq 0x100(%rsp), %rdi callq 0x53180 leaq 0xff(%rsp), %rdi callq 0x53160 testb $0x1, 0xeb(%rsp) jne 0xc76d8 jmp 0xc76e2 movq 0x40(%rsp), %rdi callq 0x52cb0 jmp 0xc7ae6 movq 0x68(%rsp), %rsi movq 0x58(%rsp), %rdi callq 0xc7300 movq 0x68(%rsp), %rax movzbl (%rax), %eax movq %rax, 0x38(%rsp) subq $0x9, %rax ja 0xc7a12 movq 0x38(%rsp), %rax leaq 0xfa74b(%rip), %rcx # 0x1c1e64 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq 0x50(%rsp), %rdi addq $0x8, %rdi addq $0x10, %rdi callq 0xc8510 xorb $-0x1, %al xorb $-0x1, %al xorb $-0x1, %al testb $0x1, %al jne 0xc7743 jmp 0xc7829 movb $0x1, 0xc6(%rsp) movl $0x20, %edi callq 0x52570 movq %rax, 0x28(%rsp) leaq 0xc7(%rsp), %rdi movq %rdi, 0x30(%rsp) callq 0x52de0 movq 0x30(%rsp), %rdx leaq 0xfde0e(%rip), %rsi # 0x1c5586 leaq 0xc8(%rsp), %rdi callq 0x5bc60 jmp 0xc7787 movq 0x68(%rsp), %rcx movq 0x28(%rsp), %rdi movl $0xcd, %esi leaq 0xc8(%rsp), %rdx callq 0xc8100 jmp 0xc77a5 movq 0x28(%rsp), %rdi movb $0x0, 0xc6(%rsp) leaq 0x17aa87(%rip), %rsi # 0x242240 leaq 0xaf0(%rip), %rdx # 0xc82b0 callq 0x52960 jmp 0xc7af3 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf0(%rsp) movl %eax, 0xec(%rsp) jmp 0xc7801 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf0(%rsp) movl %eax, 0xec(%rsp) leaq 0xc8(%rsp), %rdi callq 0x53180 leaq 0xc7(%rsp), %rdi callq 0x53160 testb $0x1, 0xc6(%rsp) jne 0xc781a jmp 0xc7824 movq 0x28(%rsp), %rdi callq 0x52cb0 jmp 0xc7ae6 movq 0x68(%rsp), %rdi callq 0xae660 testb $0x1, %al jne 0xc783c jmp 0xc78c0 leaq 0xc5(%rsp), %rdi movq %rdi, 0x20(%rsp) callq 0x5c4b0 movq 0x68(%rsp), %rax movq 0x20(%rsp), %rdi movq 0x8(%rax), %rsi callq 0x630e0 movq 0x68(%rsp), %rax movq 0x20(%rsp), %rdi movq 0x8(%rax), %rsi movl $0x1, %edx callq 0x61e20 jmp 0xc787b movq 0x68(%rsp), %rax movq $0x0, 0x8(%rax) leaq 0xc5(%rsp), %rdi callq 0x61e80 jmp 0xc7956 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf0(%rsp) movl %eax, 0xec(%rsp) leaq 0xc5(%rsp), %rdi callq 0x61e80 jmp 0xc7ae6 movq 0x68(%rsp), %rdi callq 0xc8530 testb $0x1, %al jne 0xc78d3 jmp 0xc7954 leaq 0xc4(%rsp), %rdi movq %rdi, 0x18(%rsp) callq 0xaf8f0 movq 0x68(%rsp), %rax movq 0x18(%rsp), %rdi movq 0x8(%rax), %rsi callq 0xaf900 movq 0x68(%rsp), %rax movq 0x18(%rsp), %rdi movq 0x8(%rax), %rsi movl $0x1, %edx callq 0xaf930 jmp 0xc7912 movq 0x68(%rsp), %rax movq $0x0, 0x8(%rax) leaq 0xc4(%rsp), %rdi callq 0xaf960 jmp 0xc7954 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf0(%rsp) movl %eax, 0xec(%rsp) leaq 0xc4(%rsp), %rdi callq 0xaf960 jmp 0xc7ae6 jmp 0xc7956 movq 0x68(%rsp), %rdi movb $0x0, (%rdi) movl $0x1, %esi callq 0xac7a0 jmp 0xc7ad9 movq 0x50(%rsp), %rax movq 0x68(%rsp), %rcx movq 0x8(%rcx), %rdi movq 0x8(%rax), %rax movq %rax, 0xb0(%rsp) movq 0xb0(%rsp), %rsi callq 0xc8550 movq %rax, %rcx movq 0x58(%rsp), %rax movq %rcx, 0xb8(%rsp) movq 0xb8(%rsp), %rcx movq %rcx, 0x8(%rax) jmp 0xc7ad9 movq 0x50(%rsp), %rsi movq 0x68(%rsp), %rax movq 0x8(%rax), %rax movq %rax, 0x10(%rsp) addq $0x8, %rsi addq $0x8, %rsi leaq 0xa0(%rsp), %rdi callq 0xc8630 movq 0x10(%rsp), %rdi movq 0xa0(%rsp), %rsi callq 0xc85c0 movq %rax, %rcx movq 0x58(%rsp), %rax movq %rcx, 0xa8(%rsp) movq 0xa8(%rsp), %rcx movq %rcx, 0x10(%rax) jmp 0xc7ad9 jmp 0xc7a12 movb $0x1, 0x77(%rsp) movl $0x20, %edi callq 0x52570 movq 0x68(%rsp), %rdi movq %rax, 0x8(%rsp) callq 0xad270 movq %rax, 0x78(%rsp) leaq 0xfdb60(%rip), %rsi # 0x1c559c leaq 0x80(%rsp), %rdi leaq 0x78(%rsp), %rdx callq 0xc8820 jmp 0xc7a50 movq 0x68(%rsp), %rcx movq 0x8(%rsp), %rdi movl $0x133, %esi # imm = 0x133 leaq 0x80(%rsp), %rdx callq 0xc8670 jmp 0xc7a6e movq 0x8(%rsp), %rdi movb $0x0, 0x77(%rsp) leaq 0x17a699(%rip), %rsi # 0x242118 leaq -0x1a766(%rip), %rdx # 0xad320 callq 0x52960 jmp 0xc7af3 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf0(%rsp) movl %eax, 0xec(%rsp) jmp 0xc7ac4 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf0(%rsp) movl %eax, 0xec(%rsp) leaq 0x80(%rsp), %rdi callq 0x53180 testb $0x1, 0x77(%rsp) jne 0xc7acd jmp 0xc7ad7 movq 0x8(%rsp), %rdi callq 0x52cb0 jmp 0xc7ae6 movq 0x60(%rsp), %rax addq $0x138, %rsp # imm = 0x138 retq movq 0xf0(%rsp), %rdi callq 0x529b0 nopw %cs:(%rax,%rax) nopl (%rax)
_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_: sub rsp, 138h mov qword ptr [rsp+138h+var_E8], rdx; char mov qword ptr [rsp+138h+var_E0], rdi; int mov rax, rdi mov qword ptr [rsp+138h+var_D8], rax; int mov [rsp+138h+var_8], rdi mov qword ptr [rsp+138h+var_10], rsi mov [rsp+138h+var_18], rdx mov rax, qword ptr [rsp+138h+var_10] mov qword ptr [rsp+138h+var_D0], rax; int cmp rax, [rdx] setnz al xor al, 0FFh xor al, 0FFh test al, 1 jnz short loc_C7601 jmp loc_C76E7 loc_C7601: mov [rsp+138h+var_4D], 1 mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov [rsp+138h+var_F8], rax; __int64 lea rdi, [rsp+138h+var_39] mov qword ptr [rsp+138h+var_F0], rdi; int call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdx, qword ptr [rsp+138h+var_F0] lea rsi, aIteratorDoesNo; "iterator does not fit current value" lea rdi, [rsp+138h+var_39+1] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_C7645: mov rcx, qword ptr [rsp+138h+var_D0] mov rdi, [rsp+138h+var_F8]; int mov esi, 0CAh lea rdx, [rsp+138h+var_39+1] call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ jmp short $+2 loc_C7663: mov rdi, [rsp+138h+var_F8]; void * mov [rsp+138h+var_4D], 0 lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorD2Ev; void (*)(void *) call ___cxa_throw jmp loc_C7AF3 mov rcx, rax mov eax, edx mov [rsp+arg_E8], rcx mov [rsp+arg_E4], eax jmp short loc_C76BF mov rcx, rax mov eax, edx mov [rsp+arg_E8], rcx mov [rsp+arg_E4], eax lea rdi, [rsp+arg_F8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_C76BF: lea rdi, [rsp+arg_F7] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() test [rsp+arg_E3], 1 jnz short loc_C76D8 jmp short loc_C76E2 loc_C76D8: mov rdi, [rsp+arg_38]; void * call ___cxa_free_exception loc_C76E2: jmp loc_C7AE6 loc_C76E7: mov rsi, qword ptr [rsp+138h+var_D0] mov rdi, qword ptr [rsp+138h+var_E0] 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) mov rax, qword ptr [rsp+138h+var_D0] movzx eax, byte ptr [rax] mov qword ptr [rsp+138h+var_100], rax; int sub rax, 9; switch 10 cases ja def_C7720; jumptable 00000000000C7720 default case mov rax, qword ptr [rsp+138h+var_100] lea rcx, jpt_C7720 movsxd rax, ds:(jpt_C7720 - 1C1E64h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_C7722: mov rdi, qword ptr [rsp+138h+var_E8]; jumptable 00000000000C7720 cases 3-8 add rdi, 8 add rdi, 10h; this call _ZNK8nlohmann16json_abi_v3_11_36detail20primitive_iterator_t8is_beginEv; nlohmann::json_abi_v3_11_3::detail::primitive_iterator_t::is_begin(void) xor al, 0FFh xor al, 0FFh xor al, 0FFh test al, 1 jnz short loc_C7743 jmp loc_C7829 loc_C7743: mov [rsp+138h+var_72], 1 mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov [rsp+138h+var_110], rax; int lea rdi, [rsp+138h+var_71] mov qword ptr [rsp+138h+var_108], rdi; int call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdx, qword ptr [rsp+138h+var_108] lea rsi, aIteratorOutOfR; "iterator out of range" lea rdi, [rsp+138h+var_71+1] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_C7787: mov rcx, qword ptr [rsp+138h+var_D0] mov rdi, [rsp+138h+var_110]; int mov esi, 0CDh lea rdx, [rsp+138h+var_71+1] call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ jmp short $+2 loc_C77A5: mov rdi, [rsp+138h+var_110]; void * mov [rsp+138h+var_72], 0 lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorD2Ev; void (*)(void *) call ___cxa_throw jmp loc_C7AF3 mov rcx, rax mov eax, edx mov [rsp+arg_E8], rcx mov [rsp+arg_E4], eax jmp short loc_C7801 mov rcx, rax mov eax, edx mov [rsp+arg_E8], rcx mov [rsp+arg_E4], eax lea rdi, [rsp+arg_C0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_C7801: lea rdi, [rsp+arg_BF] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() test [rsp+arg_BE], 1 jnz short loc_C781A jmp short loc_C7824 loc_C781A: mov rdi, [rsp+arg_20]; void * call ___cxa_free_exception loc_C7824: jmp loc_C7AE6 loc_C7829: mov rdi, qword ptr [rsp+138h+var_D0] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_stringEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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_string(void) test al, 1 jnz short loc_C783C jmp loc_C78C0 loc_C783C: lea rdi, [rsp+138h+var_73] mov [rsp+138h+var_118], rdi call _ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2Ev; std::allocator<std::string>::allocator(void) mov rax, qword ptr [rsp+138h+var_D0] mov rdi, [rsp+138h+var_118] mov rsi, [rax+8] call _ZNSt16allocator_traitsISaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE7destroyIS5_EEvRS6_PT_; std::allocator_traits<std::allocator<std::string>>::destroy<std::string>(std::allocator<std::string>&,std::string *) mov rax, qword ptr [rsp+138h+var_D0] mov rdi, [rsp+138h+var_118] mov rsi, [rax+8] mov edx, 1 call _ZNSt16allocator_traitsISaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE10deallocateERS6_PS5_m; std::allocator_traits<std::allocator<std::string>>::deallocate(std::allocator<std::string>&,std::string*,ulong) jmp short $+2 loc_C787B: mov rax, qword ptr [rsp+138h+var_D0] mov qword ptr [rax+8], 0 lea rdi, [rsp+138h+var_73] call _ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; std::allocator<std::string>::~allocator() jmp loc_C7956 mov rcx, rax mov eax, edx mov [rsp+arg_E8], rcx mov [rsp+arg_E4], eax lea rdi, [rsp+arg_BD] call _ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; std::allocator<std::string>::~allocator() jmp loc_C7AE6 loc_C78C0: mov rdi, qword ptr [rsp+138h+var_D0] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_binaryEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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_binary(void) test al, 1 jnz short loc_C78D3 jmp loc_C7954 loc_C78D3: lea rdi, [rsp+138h+var_74] mov [rsp+138h+var_120], rdi call _ZNSaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEEC2Ev; std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>::allocator(void) mov rax, qword ptr [rsp+138h+var_D0] mov rdi, [rsp+138h+var_120] mov rsi, [rax+8] call _ZNSt16allocator_traitsISaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEEE7destroyIS6_EEvRS7_PT_; std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>>::destroy<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>(std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>&,nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>> *) mov rax, qword ptr [rsp+138h+var_D0] mov rdi, [rsp+138h+var_120] mov rsi, [rax+8] mov edx, 1 call _ZNSt16allocator_traitsISaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEEE10deallocateERS7_PS6_m; std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>>::deallocate(std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>&,nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>*,ulong) jmp short $+2 loc_C7912: mov rax, qword ptr [rsp+138h+var_D0] mov qword ptr [rax+8], 0 lea rdi, [rsp+138h+var_74] call _ZNSaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEED2Ev; std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>::~allocator() jmp short loc_C7954 mov rcx, rax mov eax, edx mov [rsp+arg_E8], rcx mov [rsp+arg_E4], eax lea rdi, [rsp+arg_BC] call _ZNSaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEED2Ev; std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>::~allocator() jmp loc_C7AE6 loc_C7954: jmp short $+2 loc_C7956: mov rdi, qword ptr [rsp+138h+var_D0] mov byte ptr [rdi], 0 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) jmp loc_C7AD9 loc_C796D: mov rax, qword ptr [rsp+138h+var_E8]; jumptable 00000000000C7720 case 1 mov rcx, qword ptr [rsp+138h+var_D0] mov rdi, [rcx+8] mov rax, [rax+8] mov [rsp+138h+var_88], rax mov rsi, [rsp+138h+var_88] call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE5eraseEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEE; nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::erase(__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>>>>) mov rcx, rax mov rax, qword ptr [rsp+138h+var_E0] mov [rsp+138h+var_80], rcx mov rcx, [rsp+138h+var_80] mov [rax+8], rcx jmp loc_C7AD9 loc_C79B5: mov rsi, qword ptr [rsp+138h+var_E8]; jumptable 00000000000C7720 case 2 mov rax, qword ptr [rsp+138h+var_D0] mov rax, [rax+8] mov [rsp+138h+var_128], rax add rsi, 8 add rsi, 8 lea rdi, [rsp+138h+var_98] call _ZN9__gnu_cxx17__normal_iteratorIPKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEES5_ISF_SaISF_EEEC2IPSF_EERKNS0_IT_NS_11__enable_ifIXsr3std10__are_sameISN_SM_EE7__valueESJ_E6__typeEEE mov rdi, [rsp+138h+var_128] mov rsi, [rsp+138h+var_98] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKSD_SF_EE; 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>>::erase(__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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*,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>>>) mov rcx, rax mov rax, qword ptr [rsp+138h+var_E0] mov [rsp+138h+var_90], rcx mov rcx, [rsp+138h+var_90] mov [rax+10h], rcx jmp loc_C7AD9 loc_C7A10: jmp short $+2; jumptable 00000000000C7720 cases 0,9 def_C7720: mov [rsp+138h+var_C1], 1; jumptable 00000000000C7720 default case mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rdi, qword ptr [rsp+138h+var_D0] mov [rsp+138h+var_130], rax; int call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) mov qword ptr [rsp+138h+var_C0], rax; int lea rsi, aCannotUseErase; "cannot use erase() with " lea rdi, [rsp+138h+var_B8]; int lea rdx, [rsp+138h+var_C0]; int call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA25_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[25],char const*>(char const(&)[25],char const* &&) jmp short $+2 loc_C7A50: mov rcx, qword ptr [rsp+138h+var_D0] mov rdi, [rsp+138h+var_130]; int mov esi, 133h lea rdx, [rsp+138h+var_B8] call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ jmp short $+2 loc_C7A6E: mov rdi, [rsp+138h+var_130]; void * mov [rsp+138h+var_C1], 0 lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail10type_errorD2Ev; void (*)(void *) call ___cxa_throw jmp short loc_C7AF3 mov rcx, rax mov eax, edx mov [rsp+arg_E8], rcx mov [rsp+arg_E4], eax jmp short loc_C7AC4 mov rcx, rax mov eax, edx mov [rsp+arg_E8], rcx mov [rsp+arg_E4], eax lea rdi, [rsp+arg_78]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_C7AC4: test [rsp+arg_6F], 1 jnz short loc_C7ACD jmp short loc_C7AD7 loc_C7ACD: mov rdi, [rsp+arg_0]; void * call ___cxa_free_exception loc_C7AD7: jmp short loc_C7AE6 loc_C7AD9: mov rax, qword ptr [rsp+138h+var_D8] add rsp, 138h retn loc_C7AE6: mov rdi, [rsp+arg_E8] call __Unwind_Resume loc_C7AF3: nop word ptr [rax+rax+00000000h] nop dword ptr [rax]
long long 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_( long long a1, unsigned __int8 *a2, unsigned __int8 **a3) { long long v3; // rcx long long v4; // r8 long long v5; // r9 long long v6; // rcx long long v7; // r8 long long v8; // r9 int v9; // ecx int v10; // r8d int v11; // r9d int v13; // [rsp+0h] [rbp-138h] int v14; // [rsp+0h] [rbp-138h] int v15; // [rsp+8h] [rbp-130h] void *v16; // [rsp+8h] [rbp-130h] int v17; // [rsp+8h] [rbp-130h] void *v18; // [rsp+8h] [rbp-130h] int v19; // [rsp+10h] [rbp-128h] long long v20; // [rsp+10h] [rbp-128h] int v21; // [rsp+10h] [rbp-128h] long long v22; // [rsp+18h] [rbp-120h] char v23; // [rsp+18h] [rbp-120h] int v24; // [rsp+20h] [rbp-118h] int v25; // [rsp+28h] [rbp-110h] int v26; // [rsp+28h] [rbp-110h] void *v27; // [rsp+28h] [rbp-110h] int v28; // [rsp+30h] [rbp-108h] int v29; // [rsp+38h] [rbp-100h] int v30; // [rsp+38h] [rbp-100h] void *v31; // [rsp+40h] [rbp-F8h] void *exception; // [rsp+40h] [rbp-F8h] void *v33; // [rsp+40h] [rbp-F8h] int v34; // [rsp+48h] [rbp-F0h] char v36; // [rsp+70h] [rbp-C8h] int v37[2]; // [rsp+78h] [rbp-C0h] BYREF int v38; // [rsp+80h] [rbp-B8h] BYREF int v39; // [rsp+88h] [rbp-B0h] char v40; // [rsp+90h] [rbp-A8h] long long v41; // [rsp+A0h] [rbp-98h] BYREF long long v42; // [rsp+A8h] [rbp-90h] char v43; // [rsp+C4h] [rbp-74h] BYREF _BYTE v44[2]; // [rsp+C5h] [rbp-73h] BYREF int v45[9]; // [rsp+C7h] [rbp-71h] BYREF char v46; // [rsp+EBh] [rbp-4Dh] int v47[8]; // [rsp+FFh] [rbp-39h] BYREF unsigned __int8 **v48; // [rsp+120h] [rbp-18h] int v49[2]; // [rsp+128h] [rbp-10h] long long v50; // [rsp+130h] [rbp-8h] v50 = a1; *(_QWORD *)v49 = a2; v48 = a3; if ( a2 != *a3 ) { exception = __cxa_allocate_exception(0x20uLL); std::allocator<char>::allocator(); std::string::basic_string<std::allocator<char>>( (long long)v47 + 1, (long long)"iterator does not fit current value", (long long)v47); ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_( (int)exception, v13, v15, v19, v22, v24, v25, v28, v29, (long long)exception, (int)v47, (char)a3, a1, a1, (int)a2, v36, v37[0], v38, v39, v40); v46 = 0; __cxa_throw( v33, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::invalid_iterator, nlohmann::json_abi_v3_11_3::detail::invalid_iterator::~invalid_iterator); } 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, (long long)a2); v30 = *a2; switch ( *a2 ) { case 1u: *(_QWORD *)(a1 + 8) = nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::erase( *((_QWORD *)a2 + 1), a3[1]); break; case 2u: v20 = *((_QWORD *)a2 + 1); __gnu_cxx::__normal_iterator<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*,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>>>::__normal_iterator<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>*>( &v41, a3 + 2); v42 = 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>>::erase( v20, v41); *(_QWORD *)(a1 + 16) = v42; break; case 3u: case 4u: case 5u: case 6u: case 7u: case 8u: if ( (nlohmann::json_abi_v3_11_3::detail::primitive_iterator_t::is_begin((nlohmann::json_abi_v3_11_3::detail::primitive_iterator_t *)(a3 + 3)) & 1) == 0 ) { v26 = (unsigned int)__cxa_allocate_exception(0x20uLL); std::allocator<char>::allocator(); std::string::basic_string<std::allocator<char>>( (long long)v45 + 1, (long long)"iterator out of range", (long long)v45); ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_( v26, v13, v15, v19, v22, v24, v26, (int)v45, v30, (long long)v31, v34, (char)a3, a1, a1, (int)a2, v36, v37[0], v38, v39, v40); v44[1] = 0; __cxa_throw( v27, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::invalid_iterator, nlohmann::json_abi_v3_11_3::detail::invalid_iterator::~invalid_iterator); } if ( 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>::is_string(a2) ) { std::allocator<std::string>::allocator((long long)v44); std::allocator_traits<std::allocator<std::string>>::destroy<std::string>((long long)v44, *((_QWORD *)a2 + 1)); std::allocator_traits<std::allocator<std::string>>::deallocate( (long long)v44, *((_QWORD *)a2 + 1), 1LL, v3, v4, v5); *((_QWORD *)a2 + 1) = 0LL; std::allocator<std::string>::~allocator((long long)v44); } else if ( (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>::is_binary(a2) & 1) != 0 ) { std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>::allocator((long long)&v43); std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>>::destroy<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>( (long long)&v43, *((_QWORD *)a2 + 1)); std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>>::deallocate( (long long)&v43, *((_QWORD *)a2 + 1), 1LL, v6, v7, v8); *((_QWORD *)a2 + 1) = 0LL; std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>::~allocator((long long)&v43); } *a2 = 0; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((long long)a2); break; default: v16 = __cxa_allocate_exception(0x20uLL); *(_QWORD *)v37 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name(a2); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[25],char const*>( (int)&v38, (int)"cannot use erase() with ", (int)v37, v9, v10, v11, v13, v16, v19, v22); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_( v17, v14, v17, v21, v23, v24, v25, v28, v30, (long long)v31, v34, (char)a3, a1, a1, (int)a2, v36, v37[0], v38, v39, v40); __cxa_throw( v18, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::type_error::~type_error); } return a1; }
_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_: SUB RSP,0x138 MOV qword ptr [RSP + 0x50],RDX MOV qword ptr [RSP + 0x58],RDI MOV RAX,RDI MOV qword ptr [RSP + 0x60],RAX MOV qword ptr [RSP + 0x130],RDI MOV qword ptr [RSP + 0x128],RSI MOV qword ptr [RSP + 0x120],RDX MOV RAX,qword ptr [RSP + 0x128] MOV qword ptr [RSP + 0x68],RAX CMP RAX,qword ptr [RDX] SETNZ AL XOR AL,0xff XOR AL,0xff TEST AL,0x1 JNZ 0x001c7601 JMP 0x001c76e7 LAB_001c7601: MOV byte ptr [RSP + 0xeb],0x1 MOV EDI,0x20 CALL 0x00152570 MOV qword ptr [RSP + 0x40],RAX LEA RDI,[RSP + 0xff] MOV qword ptr [RSP + 0x48],RDI CALL 0x00152de0 MOV RDX,qword ptr [RSP + 0x48] LAB_001c762f: LEA RSI,[0x2c5562] LEA RDI,[RSP + 0x100] CALL 0x0015bc60 JMP 0x001c7645 LAB_001c7645: MOV RCX,qword ptr [RSP + 0x68] MOV RDI,qword ptr [RSP + 0x40] MOV ESI,0xca LEA RDX,[RSP + 0x100] CALL 0x001c8100 JMP 0x001c7663 LAB_001c7663: MOV RDI,qword ptr [RSP + 0x40] MOV byte ptr [RSP + 0xeb],0x0 LEA RSI,[0x342240] LEA RDX,[0x1c82b0] CALL 0x00152960 LAB_001c76e7: MOV RSI,qword ptr [RSP + 0x68] MOV RDI,qword ptr [RSP + 0x58] CALL 0x001c7300 MOV RAX,qword ptr [RSP + 0x68] MOVZX EAX,byte ptr [RAX] MOV qword ptr [RSP + 0x38],RAX SUB RAX,0x9 JA 0x001c7a12 MOV RAX,qword ptr [RSP + 0x38] LEA RCX,[0x2c1e64] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_3: MOV RDI,qword ptr [RSP + 0x50] ADD RDI,0x8 ADD RDI,0x10 CALL 0x001c8510 XOR AL,0xff XOR AL,0xff XOR AL,0xff TEST AL,0x1 JNZ 0x001c7743 JMP 0x001c7829 LAB_001c7743: MOV byte ptr [RSP + 0xc6],0x1 MOV EDI,0x20 CALL 0x00152570 MOV qword ptr [RSP + 0x28],RAX LEA RDI,[RSP + 0xc7] MOV qword ptr [RSP + 0x30],RDI CALL 0x00152de0 MOV RDX,qword ptr [RSP + 0x30] LAB_001c7771: LEA RSI,[0x2c5586] LEA RDI,[RSP + 0xc8] CALL 0x0015bc60 JMP 0x001c7787 LAB_001c7787: MOV RCX,qword ptr [RSP + 0x68] MOV RDI,qword ptr [RSP + 0x28] MOV ESI,0xcd LEA RDX,[RSP + 0xc8] CALL 0x001c8100 JMP 0x001c77a5 LAB_001c77a5: MOV RDI,qword ptr [RSP + 0x28] MOV byte ptr [RSP + 0xc6],0x0 LEA RSI,[0x342240] LEA RDX,[0x1c82b0] CALL 0x00152960 LAB_001c7829: MOV RDI,qword ptr [RSP + 0x68] CALL 0x001ae660 TEST AL,0x1 JNZ 0x001c783c JMP 0x001c78c0 LAB_001c783c: LEA RDI,[RSP + 0xc5] MOV qword ptr [RSP + 0x20],RDI CALL 0x0015c4b0 MOV RAX,qword ptr [RSP + 0x68] MOV RDI,qword ptr [RSP + 0x20] MOV RSI,qword ptr [RAX + 0x8] CALL 0x001630e0 MOV RAX,qword ptr [RSP + 0x68] MOV RDI,qword ptr [RSP + 0x20] MOV RSI,qword ptr [RAX + 0x8] LAB_001c786f: MOV EDX,0x1 CALL 0x00161e20 JMP 0x001c787b LAB_001c787b: MOV RAX,qword ptr [RSP + 0x68] MOV qword ptr [RAX + 0x8],0x0 LEA RDI,[RSP + 0xc5] CALL 0x00161e80 JMP 0x001c7956 LAB_001c78c0: MOV RDI,qword ptr [RSP + 0x68] CALL 0x001c8530 TEST AL,0x1 JNZ 0x001c78d3 JMP 0x001c7954 LAB_001c78d3: LEA RDI,[RSP + 0xc4] MOV qword ptr [RSP + 0x18],RDI CALL 0x001af8f0 MOV RAX,qword ptr [RSP + 0x68] MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RAX + 0x8] CALL 0x001af900 MOV RAX,qword ptr [RSP + 0x68] MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RAX + 0x8] LAB_001c7906: MOV EDX,0x1 CALL 0x001af930 LAB_001c7910: JMP 0x001c7912 LAB_001c7912: MOV RAX,qword ptr [RSP + 0x68] MOV qword ptr [RAX + 0x8],0x0 LEA RDI,[RSP + 0xc4] CALL 0x001af960 JMP 0x001c7954 LAB_001c7954: JMP 0x001c7956 LAB_001c7956: MOV RDI,qword ptr [RSP + 0x68] MOV byte ptr [RDI],0x0 MOV ESI,0x1 CALL 0x001ac7a0 JMP 0x001c7ad9 caseD_1: MOV RAX,qword ptr [RSP + 0x50] MOV RCX,qword ptr [RSP + 0x68] MOV RDI,qword ptr [RCX + 0x8] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0xb0],RAX MOV RSI,qword ptr [RSP + 0xb0] CALL 0x001c8550 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x58] MOV qword ptr [RSP + 0xb8],RCX MOV RCX,qword ptr [RSP + 0xb8] MOV qword ptr [RAX + 0x8],RCX JMP 0x001c7ad9 caseD_2: MOV RSI,qword ptr [RSP + 0x50] MOV RAX,qword ptr [RSP + 0x68] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x10],RAX ADD RSI,0x8 ADD RSI,0x8 LEA RDI,[RSP + 0xa0] CALL 0x001c8630 MOV RDI,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RSP + 0xa0] CALL 0x001c85c0 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x58] MOV qword ptr [RSP + 0xa8],RCX MOV RCX,qword ptr [RSP + 0xa8] MOV qword ptr [RAX + 0x10],RCX JMP 0x001c7ad9 caseD_0: JMP 0x001c7a12 default: MOV byte ptr [RSP + 0x77],0x1 MOV EDI,0x20 CALL 0x00152570 MOV RDI,qword ptr [RSP + 0x68] MOV qword ptr [RSP + 0x8],RAX CALL 0x001ad270 MOV qword ptr [RSP + 0x78],RAX LAB_001c7a35: LEA RSI,[0x2c559c] LEA RDI,[RSP + 0x80] LEA RDX,[RSP + 0x78] CALL 0x001c8820 JMP 0x001c7a50 LAB_001c7a50: MOV RCX,qword ptr [RSP + 0x68] MOV RDI,qword ptr [RSP + 0x8] MOV ESI,0x133 LEA RDX,[RSP + 0x80] CALL 0x001c8670 JMP 0x001c7a6e LAB_001c7a6e: MOV RDI,qword ptr [RSP + 0x8] MOV byte ptr [RSP + 0x77],0x0 LEA RSI,[0x342118] LEA RDX,[0x1ad320] CALL 0x00152960 LAB_001c7ad9: MOV RAX,qword ptr [RSP + 0x60] ADD RSP,0x138 RET
long _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_ (long param_1, basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *param_2,long *param_3) { 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>>> *pvVar1; byte bVar2; ulong uVar3; int8 uVar4; char *local_c0; detail local_b8 [32]; int8 local_98 [2]; long local_88; allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>> local_74; allocator<std::__cxx11::string> local_73; int1 local_72; allocator local_71; string local_70 [35]; int1 local_4d; allocator local_39; string local_38 [32]; long *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> *local_10; long local_8; local_18 = param_3; local_10 = param_2; local_8 = param_1; if (param_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> *)*param_3) { local_4d = 1; uVar4 = __cxa_allocate_exception(0x20); std::allocator<char>::allocator(); /* try { // try from 001c762f to 001c7642 has its CatchHandler @ 001c7688 */ std::__cxx11::string::string<std::allocator<char>> (local_38,"iterator does not fit current value",&local_39); /* try { // try from 001c7645 to 001c7682 has its CatchHandler @ 001c769e */ _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar4,0xca,local_38,param_2); local_4d = 0; /* WARNING: Subroutine does not return */ __cxa_throw(uVar4,&nlohmann::json_abi_v3_11_3::detail::invalid_iterator::typeinfo, nlohmann::json_abi_v3_11_3::detail::invalid_iterator::~invalid_iterator); } nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(); switch(*param_2) { case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x0: case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x9: default: uVar4 = __cxa_allocate_exception(0x20); local_c0 = (char *)nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::type_name(param_2); /* try { // try from 001c7a35 to 001c7a4d has its CatchHandler @ 001c7a8d */ nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[25],char_const*> (local_b8,"cannot use erase() with ",&local_c0); /* try { // try from 001c7a50 to 001c7a8a has its CatchHandler @ 001c7aa3 */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar4,0x133,local_b8,param_2); /* WARNING: Subroutine does not return */ __cxa_throw(uVar4,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo, nlohmann::json_abi_v3_11_3::detail::type_error::~type_error); case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x1: local_88 = param_3[1]; uVar4 = nlohmann::json_abi_v3_11_3:: ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::erase(*(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>>>> **)(param_2 + 8),local_88); *(int8 *)(param_1 + 8) = uVar4; break; case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x2: pvVar1 = *(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>>> **)(param_2 + 8); __gnu_cxx:: __normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const*,std::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>>>> :: __normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*> ((__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const*,std::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>>>> *)local_98,(__normal_iterator *)(param_3 + 2)); uVar4 = 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>>> ::erase(pvVar1,local_98[0]); *(int8 *)(param_1 + 0x10) = uVar4; break; case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x3: case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x4: case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x5: case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x6: case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x7: case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x8: bVar2 = nlohmann::json_abi_v3_11_3::detail::primitive_iterator_t::is_begin ((primitive_iterator_t *)(param_3 + 3)); if (((bVar2 ^ 0xff) & 1) != 0) { local_72 = 1; uVar4 = __cxa_allocate_exception(0x20); std::allocator<char>::allocator(); /* try { // try from 001c7771 to 001c7784 has its CatchHandler @ 001c77ca */ std::__cxx11::string::string<std::allocator<char>>(local_70,"iterator out of range",&local_71) ; /* try { // try from 001c7787 to 001c77c4 has its CatchHandler @ 001c77e0 */ _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar4,0xcd,local_70,param_2); local_72 = 0; /* WARNING: Subroutine does not return */ __cxa_throw(uVar4,&nlohmann::json_abi_v3_11_3::detail::invalid_iterator::typeinfo, nlohmann::json_abi_v3_11_3::detail::invalid_iterator::~invalid_iterator); } uVar3 = nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_string(param_2); if ((uVar3 & 1) == 0) { uVar3 = nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_binary(param_2); if ((uVar3 & 1) != 0) { std:: allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>> ::allocator(&local_74); std:: allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>> :: destroy<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>> ((allocator *)&local_74,*(byte_container_with_subtype **)(param_2 + 8)); /* try { // try from 001c7906 to 001c790f has its CatchHandler @ 001c792e */ std:: allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>> ::deallocate((allocator *)&local_74,*(byte_container_with_subtype **)(param_2 + 8),1); *(int8 *)(param_2 + 8) = 0; std:: allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>> ::~allocator(&local_74); } } else { std::allocator<std::__cxx11::string>::allocator(&local_73); std::allocator_traits<std::allocator<std::__cxx11::string>>::destroy<std::__cxx11::string> ((allocator *)&local_73,*(string **)(param_2 + 8)); /* try { // try from 001c786f to 001c7878 has its CatchHandler @ 001c789a */ std::allocator_traits<std::allocator<std::__cxx11::string>>::deallocate ((allocator *)&local_73,*(string **)(param_2 + 8),1); *(int8 *)(param_2 + 8) = 0; std::allocator<std::__cxx11::string>::~allocator(&local_73); } *param_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> )0x0; nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(param_2,0)); } return param_1; }
49,338
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>> 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>::erase<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>>, 0>(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>>)
monkey531[P]llama/common/json.hpp
IteratorType erase(IteratorType pos) { // make sure iterator fits the current value if (JSON_HEDLEY_UNLIKELY(this != pos.m_object)) { JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", this)); } IteratorType result = end(); switch (m_data.m_type) { case value_t::boolean: case value_t::number_float: case value_t::number_integer: case value_t::number_unsigned: case value_t::string: case value_t::binary: { if (JSON_HEDLEY_UNLIKELY(!pos.m_it.primitive_iterator.is_begin())) { JSON_THROW(invalid_iterator::create(205, "iterator out of range", this)); } if (is_string()) { AllocatorType<string_t> alloc; std::allocator_traits<decltype(alloc)>::destroy(alloc, m_data.m_value.string); std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_data.m_value.string, 1); m_data.m_value.string = nullptr; } else if (is_binary()) { AllocatorType<binary_t> alloc; std::allocator_traits<decltype(alloc)>::destroy(alloc, m_data.m_value.binary); std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_data.m_value.binary, 1); m_data.m_value.binary = nullptr; } m_data.m_type = value_t::null; assert_invariant(); break; } case value_t::object: { result.m_it.object_iterator = m_data.m_value.object->erase(pos.m_it.object_iterator); break; } case value_t::array: { result.m_it.array_iterator = m_data.m_value.array->erase(pos.m_it.array_iterator); break; } case value_t::null: case value_t::discarded: default: JSON_THROW(type_error::create(307, detail::concat("cannot use erase() with ", type_name()), this)); } return result; }
O3
cpp
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>> 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>::erase<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>>, 0>(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>>): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x30, %rsp movq %rsi, %r14 cmpq %rsi, (%rdx) jne 0x4c971 movq %rdx, %r15 movq %rdi, %rbx movq %r14, (%rdi) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%rdi) movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000 movq %rax, 0x18(%rdi) callq 0x4ceaa movzbl (%r14), %eax leal -0x3(%rax), %ecx cmpl $0x6, %ecx jae 0x4c8de cmpq $0x0, 0x18(%r15) jne 0x4c9d4 cmpl $0x8, %eax je 0x4c8ff cmpl $0x3, %eax jne 0x4c932 leaq 0x8(%r14), %r15 movq 0x8(%r14), %rdi movq (%rdi), %rax leaq 0x10(%rdi), %rcx cmpq %rcx, %rax je 0x4c8d7 movq (%rcx), %rsi incq %rsi movq %rax, %rdi callq 0x186e0 movq (%r15), %rdi movl $0x20, %esi jmp 0x4c926 cmpl $0x1, %eax je 0x4c953 cmpl $0x2, %eax jne 0x4ca34 movq 0x8(%r14), %rdi movq 0x10(%r15), %rsi callq 0x4d63e movq %rax, 0x10(%rbx) jmp 0x4c943 leaq 0x8(%r14), %r15 movq 0x8(%r14), %rdi movq (%rdi), %rax testq %rax, %rax je 0x4c921 movq 0x10(%rdi), %rsi subq %rax, %rsi movq %rax, %rdi callq 0x186e0 movq (%r15), %rdi movl $0x28, %esi callq 0x186e0 movq $0x0, (%r15) movb $0x0, (%r14) movq %r14, %rdi movl $0x1, %esi callq 0x40bf2 movq %rbx, %rax addq $0x30, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq %rbx, %r12 addq $0x8, %r12 movq 0x8(%r14), %rdi movq 0x8(%r15), %rsi leaq 0x30(%rsi), %rdx callq 0x4d168 movq %rax, (%r12) jmp 0x4c943 movl $0x20, %edi callq 0x18380 movq %rax, %rbx leaq 0x18(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0x620e4(%rip), %rsi # 0xaea72 leaq 0x62100(%rip), %rdx # 0xaea95 leaq 0x8(%rsp), %rdi callq 0x200f4 movb $0x1, %bpl leaq 0x8(%rsp), %rdx movq %rbx, %rdi movl $0xca, %esi movq %r14, %rcx callq 0x4cca8 xorl %ebp, %ebp leaq 0x92a30(%rip), %rsi # 0xdf3f0 leaq 0x2be5(%rip), %rdx # 0x4f5ac movq %rbx, %rdi callq 0x18bb0 jmp 0x4ca92 movl $0x20, %edi callq 0x18380 movq %rax, %rbx leaq 0x18(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0x620a5(%rip), %rsi # 0xaea96 leaq 0x620b3(%rip), %rdx # 0xaeaab leaq 0x8(%rsp), %rdi callq 0x200f4 movb $0x1, %bpl leaq 0x8(%rsp), %rdx movq %rbx, %rdi movl $0xcd, %esi movq %r14, %rcx callq 0x4cca8 xorl %ebp, %ebp leaq 0x929cd(%rip), %rsi # 0xdf3f0 leaq 0x2b82(%rip), %rdx # 0x4f5ac movq %rbx, %rdi callq 0x18bb0 jmp 0x4ca92 movl $0x20, %edi callq 0x18380 movq %rax, %rbx movq %r14, %rdi callq 0x412e6 leaq 0x28(%rsp), %rdx movq %rax, (%rdx) leaq 0x62054(%rip), %rsi # 0xaeaac leaq 0x8(%rsp), %rdi callq 0x4d0df movb $0x1, %bpl leaq 0x8(%rsp), %rdx movq %rbx, %rdi movl $0x133, %esi # imm = 0x133 movq %r14, %rcx callq 0x4cf10 xorl %ebp, %ebp leaq 0x92845(%rip), %rsi # 0xdf2c8 leaq 0x2b22(%rip), %rdx # 0x4f5ac movq %rbx, %rdi callq 0x18bb0 movq %rax, %r14 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi jne 0x4cab8 jmp 0x4cac5 jmp 0x4cacc jmp 0x4caab jmp 0x4cacc movq %rax, %r14 movq 0x8(%rsp), %rdi cmpq %r15, %rdi je 0x4cac5 movq 0x18(%rsp), %rsi incq %rsi callq 0x186e0 testb %bpl, %bpl jne 0x4cacf jmp 0x4cad7 movq %rax, %r14 movq %rbx, %rdi callq 0x18520 movq %r14, %rdi callq 0x18c10 nop
_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_: push rbp; int push r15; int push r14; char push r12; int push rbx; __int64 sub rsp, 30h mov r14, rsi cmp [rdx], rsi jnz loc_4C971 mov r15, rdx mov rbx, rdi mov [rdi], r14 xorps xmm0, xmm0 movups xmmword ptr [rdi+8], xmm0 mov rax, 8000000000000000h mov [rdi+18h], rax call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE7set_endEv; 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>>::set_end(void) movzx eax, byte ptr [r14] lea ecx, [rax-3] cmp ecx, 6 jnb short loc_4C8DE cmp qword ptr [r15+18h], 0 jnz loc_4C9D4 cmp eax, 8 jz short loc_4C8FF cmp eax, 3 jnz loc_4C932 lea r15, [r14+8] mov rdi, [r14+8] mov rax, [rdi] lea rcx, [rdi+10h] cmp rax, rcx jz short loc_4C8D7 mov rsi, [rcx] inc rsi; unsigned __int64 mov rdi, rax; void * call __ZdlPvm; operator delete(void *,ulong) mov rdi, [r15] loc_4C8D7: mov esi, 20h ; ' ' jmp short loc_4C926 loc_4C8DE: cmp eax, 1 jz short loc_4C953 cmp eax, 2 jnz loc_4CA34 mov rdi, [r14+8] mov rsi, [r15+10h] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE8_M_eraseEN9__gnu_cxx17__normal_iteratorIPSD_SF_EE; 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>>::_M_erase(__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>) mov [rbx+10h], rax jmp short loc_4C943 loc_4C8FF: lea r15, [r14+8] mov rdi, [r14+8] mov rax, [rdi] test rax, rax jz short loc_4C921 mov rsi, [rdi+10h] sub rsi, rax; unsigned __int64 mov rdi, rax; void * call __ZdlPvm; operator delete(void *,ulong) mov rdi, [r15]; void * loc_4C921: mov esi, 28h ; '('; unsigned __int64 loc_4C926: call __ZdlPvm; operator delete(void *,ulong) mov qword ptr [r15], 0 loc_4C932: mov byte ptr [r14], 0 mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) loc_4C943: mov rax, rbx add rsp, 30h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_4C953: mov r12, rbx add r12, 8 mov rdi, [r14+8] mov rsi, [r15+8] lea rdx, [rsi+30h] call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE5eraseEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEESP_; nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::erase(__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>>>>,__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>>>>) mov [r12], rax jmp short loc_4C943 loc_4C971: mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rbx, rax lea r15, [rsp+58h+var_40] mov [r15-10h], r15 lea rsi, aIteratorDoesNo; "iterator does not fit current value" lea rdx, aIteratorDoesNo+23h; "" lea rdi, [rsp+58h+var_50] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) mov bpl, 1 lea rdx, [rsp+58h+var_50] mov rdi, rbx; this mov esi, 0CAh; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw jmp loc_4CA92 loc_4C9D4: mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rbx, rax lea r15, [rsp+58h+var_40] mov [r15-10h], r15 lea rsi, aIteratorOutOfR; "iterator out of range" lea rdx, aIteratorOutOfR+15h; "" lea rdi, [rsp+58h+var_50] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) mov bpl, 1 lea rdx, [rsp+58h+var_50] mov rdi, rbx; this mov esi, 0CDh; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw jmp short loc_4CA92 loc_4CA34: mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) lea rdx, [rsp+58h+var_30] mov [rdx], rax lea rsi, aCannotUseErase; "cannot use erase() with " lea rdi, [rsp+58h+var_50] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA25_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[25],char const*>(char const(&)[25],char const* &&) mov bpl, 1 lea rdx, [rsp+58h+var_50] mov rdi, rbx; this mov esi, 133h; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw loc_4CA92: mov r14, rax lea rax, [rsp+58h+var_40] mov rdi, [rax-10h] cmp rdi, rax jnz short loc_4CAB8 jmp short loc_4CAC5 jmp short loc_4CACC jmp short loc_4CAAB jmp short loc_4CACC loc_4CAAB: mov r14, rax mov rdi, [rsp+58h+var_50]; void * cmp rdi, r15 jz short loc_4CAC5 loc_4CAB8: mov rsi, [rsp+58h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_4CAC5: test bpl, bpl jnz short loc_4CACF jmp short loc_4CAD7 loc_4CACC: mov r14, rax loc_4CACF: mov rdi, rbx; void * call ___cxa_free_exception loc_4CAD7: mov rdi, r14 call __Unwind_Resume
_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_: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x30 MOV R14,RSI CMP qword ptr [RDX],RSI JNZ 0x0014c971 MOV R15,RDX MOV RBX,RDI MOV qword ptr [RDI],R14 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI + 0x8],XMM0 MOV RAX,-0x8000000000000000 MOV qword ptr [RDI + 0x18],RAX CALL 0x0014ceaa MOVZX EAX,byte ptr [R14] LEA ECX,[RAX + -0x3] CMP ECX,0x6 JNC 0x0014c8de CMP qword ptr [R15 + 0x18],0x0 JNZ 0x0014c9d4 CMP EAX,0x8 JZ 0x0014c8ff CMP EAX,0x3 JNZ 0x0014c932 LEA R15,[R14 + 0x8] MOV RDI,qword ptr [R14 + 0x8] MOV RAX,qword ptr [RDI] LEA RCX,[RDI + 0x10] CMP RAX,RCX JZ 0x0014c8d7 MOV RSI,qword ptr [RCX] INC RSI MOV RDI,RAX CALL 0x001186e0 MOV RDI,qword ptr [R15] LAB_0014c8d7: MOV ESI,0x20 JMP 0x0014c926 LAB_0014c8de: CMP EAX,0x1 JZ 0x0014c953 CMP EAX,0x2 JNZ 0x0014ca34 MOV RDI,qword ptr [R14 + 0x8] MOV RSI,qword ptr [R15 + 0x10] CALL 0x0014d63e MOV qword ptr [RBX + 0x10],RAX JMP 0x0014c943 LAB_0014c8ff: LEA R15,[R14 + 0x8] MOV RDI,qword ptr [R14 + 0x8] MOV RAX,qword ptr [RDI] TEST RAX,RAX JZ 0x0014c921 MOV RSI,qword ptr [RDI + 0x10] SUB RSI,RAX MOV RDI,RAX CALL 0x001186e0 MOV RDI,qword ptr [R15] LAB_0014c921: MOV ESI,0x28 LAB_0014c926: CALL 0x001186e0 MOV qword ptr [R15],0x0 LAB_0014c932: MOV byte ptr [R14],0x0 MOV RDI,R14 MOV ESI,0x1 CALL 0x00140bf2 LAB_0014c943: MOV RAX,RBX ADD RSP,0x30 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_0014c953: MOV R12,RBX ADD R12,0x8 MOV RDI,qword ptr [R14 + 0x8] MOV RSI,qword ptr [R15 + 0x8] LEA RDX,[RSI + 0x30] CALL 0x0014d168 MOV qword ptr [R12],RAX JMP 0x0014c943 LAB_0014c971: MOV EDI,0x20 CALL 0x00118380 MOV RBX,RAX LEA R15,[RSP + 0x18] MOV qword ptr [R15 + -0x10],R15 LAB_0014c987: LEA RSI,[0x1aea72] LEA RDX,[0x1aea95] LEA RDI,[RSP + 0x8] CALL 0x001200f4 MOV BPL,0x1 LAB_0014c9a2: LEA RDX,[RSP + 0x8] MOV RDI,RBX MOV ESI,0xca MOV RCX,R14 CALL 0x0014cca8 XOR EBP,EBP LEA RSI,[0x1df3f0] LEA RDX,[0x14f5ac] MOV RDI,RBX CALL 0x00118bb0 LAB_0014c9d4: MOV EDI,0x20 CALL 0x00118380 MOV RBX,RAX LEA R15,[RSP + 0x18] MOV qword ptr [R15 + -0x10],R15 LAB_0014c9ea: LEA RSI,[0x1aea96] LEA RDX,[0x1aeaab] LEA RDI,[RSP + 0x8] CALL 0x001200f4 MOV BPL,0x1 LAB_0014ca05: LEA RDX,[RSP + 0x8] MOV RDI,RBX MOV ESI,0xcd MOV RCX,R14 CALL 0x0014cca8 XOR EBP,EBP LEA RSI,[0x1df3f0] LEA RDX,[0x14f5ac] MOV RDI,RBX CALL 0x00118bb0 LAB_0014ca34: MOV EDI,0x20 CALL 0x00118380 MOV RBX,RAX MOV RDI,R14 CALL 0x001412e6 LEA RDX,[RSP + 0x28] MOV qword ptr [RDX],RAX LAB_0014ca51: LEA RSI,[0x1aeaac] LEA RDI,[RSP + 0x8] CALL 0x0014d0df MOV BPL,0x1 LAB_0014ca65: LEA RDX,[RSP + 0x8] MOV RDI,RBX MOV ESI,0x133 MOV RCX,R14 CALL 0x0014cf10 XOR EBP,EBP LEA RSI,[0x1df2c8] LEA RDX,[0x14f5ac] MOV RDI,RBX CALL 0x00118bb0
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>> * _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_ (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>> *param_1, basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *param_2,long *param_3) { basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> bVar1; void *pvVar2; int8 uVar3; ulong uVar4; int8 *puVar5; int1 *local_50 [2]; int1 local_40 [16]; char *local_30; if ((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_3 != param_2) { uVar3 = __cxa_allocate_exception(0x20); local_50[0] = local_40; /* try { // try from 0014c987 to 0014c99e has its CatchHandler @ 0014cacc */ std::__cxx11::string::_M_construct<char_const*> (local_50,"iterator does not fit current value",""); /* try { // try from 0014c9a2 to 0014c9ce has its CatchHandler @ 0014caab */ _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar3,0xca,local_50,param_2); /* WARNING: Subroutine does not return */ __cxa_throw(uVar3,&nlohmann::json_abi_v3_11_3::detail::invalid_iterator::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); } *(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> **)param_1 = param_2; *(int8 *)(param_1 + 8) = 0; *(int8 *)(param_1 + 0x10) = 0; *(int8 *)(param_1 + 0x18) = 0x8000000000000000; 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>> ::set_end(param_1); bVar1 = *param_2; if (5 < (byte)bVar1 - 3) { if (bVar1 == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x1) { uVar3 = nlohmann::json_abi_v3_11_3:: ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::erase(*(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>>>> **)(param_2 + 8),param_3[1],param_3[1] + 0x30); *(int8 *)(param_1 + 8) = uVar3; return param_1; } if (bVar1 == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x2) { uVar3 = 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>>> ::_M_erase(*(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>>> **)(param_2 + 8),param_3[2]); *(int8 *)(param_1 + 0x10) = uVar3; return param_1; } uVar3 = __cxa_allocate_exception(0x20); local_30 = (char *)nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::type_name(param_2); /* try { // try from 0014ca51 to 0014ca61 has its CatchHandler @ 0014caa5 */ nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[25],char_const*> ((detail *)local_50,"cannot use erase() with ",&local_30); /* try { // try from 0014ca65 to 0014ca91 has its CatchHandler @ 0014ca92 */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar3,0x133,local_50,param_2); /* WARNING: Subroutine does not return */ __cxa_throw(uVar3,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); } if (param_3[3] != 0) { uVar3 = __cxa_allocate_exception(0x20); local_50[0] = local_40; /* try { // try from 0014c9ea to 0014ca01 has its CatchHandler @ 0014caa9 */ std::__cxx11::string::_M_construct<char_const*>(local_50,"iterator out of range",""); /* try { // try from 0014ca05 to 0014ca31 has its CatchHandler @ 0014caa7 */ _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar3,0xcd,local_50,param_2); /* WARNING: Subroutine does not return */ __cxa_throw(uVar3,&nlohmann::json_abi_v3_11_3::detail::invalid_iterator::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); } if (bVar1 == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x8) { puVar5 = *(int8 **)(param_2 + 8); pvVar2 = (void *)*puVar5; if (pvVar2 != (void *)0x0) { operator_delete(pvVar2,puVar5[2] - (long)pvVar2); puVar5 = *(int8 **)(param_2 + 8); } uVar4 = 0x28; } else { if (bVar1 != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x3) goto LAB_0014c932; puVar5 = *(int8 **)(param_2 + 8); if ((long *)*puVar5 != puVar5 + 2) { operator_delete((long *)*puVar5,puVar5[2] + 1); puVar5 = *(int8 **)(param_2 + 8); } uVar4 = 0x20; } operator_delete(puVar5,uVar4); *(int8 *)(param_2 + 8) = 0; LAB_0014c932: *param_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> )0x0; nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(param_2,0)); return param_1; }
49,339
ImPlot3D::PopStyleVar(int)
zkingston[P]unknot/build_O0/_deps/implot3d-src/implot3d.cpp
void PopStyleVar(int count) { ImPlot3DContext& gp = *GImPlot3D; IM_ASSERT_USER_ERROR(count <= gp.StyleModifiers.Size, "You can't pop more modifiers than have been pushed!"); while (count > 0) { ImGuiStyleMod& backup = gp.StyleModifiers.back(); const ImPlot3DStyleVarInfo* info = GetPlotStyleVarInfo(backup.VarIdx); void* data = info->GetVarPtr(&gp.Style); if (info->Type == ImGuiDataType_Float && info->Count == 1) { ((float*)data)[0] = backup.BackupFloat[0]; } else if (info->Type == ImGuiDataType_Float && info->Count == 2) { ((float*)data)[0] = backup.BackupFloat[0]; ((float*)data)[1] = backup.BackupFloat[1]; } else if (info->Type == ImGuiDataType_S32 && info->Count == 1) { ((int*)data)[0] = backup.BackupInt[0]; } gp.StyleModifiers.pop_back(); count--; } }
O0
cpp
ImPlot3D::PopStyleVar(int): subq $0x28, %rsp movl %edi, 0x24(%rsp) movq 0x5b90b9(%rip), %rax # 0x68f638 movq %rax, 0x18(%rsp) movl 0x24(%rsp), %eax movq 0x18(%rsp), %rcx cmpl 0x1e8(%rcx), %eax jle 0xd65a9 leaq 0x4fc306(%rip), %rdi # 0x5d28a2 callq 0x4f7220 testb $0x1, %al jne 0xd65a7 jmp 0xd65a9 jmp 0xd65a9 jmp 0xd65ab jmp 0xd65ad cmpl $0x0, 0x24(%rsp) jle 0xd66a6 movq 0x18(%rsp), %rdi addq $0x1e8, %rdi # imm = 0x1E8 callq 0xd9c80 movq %rax, 0x10(%rsp) movq 0x10(%rsp), %rax movl (%rax), %edi callq 0xd6380 movq %rax, 0x8(%rsp) movq 0x8(%rsp), %rdi movq 0x18(%rsp), %rsi addq $0x94, %rsi callq 0xd9b60 movq %rax, (%rsp) movq 0x8(%rsp), %rax cmpl $0x8, (%rax) jne 0xd6622 movq 0x8(%rsp), %rax cmpl $0x1, 0x4(%rax) jne 0xd6622 movq 0x10(%rsp), %rax movss 0x4(%rax), %xmm0 movq (%rsp), %rax movss %xmm0, (%rax) jmp 0xd6685 movq 0x8(%rsp), %rax cmpl $0x8, (%rax) jne 0xd665e movq 0x8(%rsp), %rax cmpl $0x2, 0x4(%rax) jne 0xd665e movq 0x10(%rsp), %rax movss 0x4(%rax), %xmm0 movq (%rsp), %rax movss %xmm0, (%rax) movq 0x10(%rsp), %rax movss 0x8(%rax), %xmm0 movq (%rsp), %rax movss %xmm0, 0x4(%rax) jmp 0xd6683 movq 0x8(%rsp), %rax cmpl $0x4, (%rax) jne 0xd6681 movq 0x8(%rsp), %rax cmpl $0x1, 0x4(%rax) jne 0xd6681 movq 0x10(%rsp), %rax movl 0x4(%rax), %ecx movq (%rsp), %rax movl %ecx, (%rax) jmp 0xd6683 jmp 0xd6685 movq 0x18(%rsp), %rdi addq $0x1e8, %rdi # imm = 0x1E8 callq 0xd9ca0 movl 0x24(%rsp), %eax addl $-0x1, %eax movl %eax, 0x24(%rsp) jmp 0xd65ad addq $0x28, %rsp retq nopl (%rax,%rax)
_ZN8ImPlot3D11PopStyleVarEi: sub rsp, 28h mov [rsp+28h+var_4], edi mov rax, cs:_ZN8ImPlot3D9GImPlot3DE; ImPlot3D::GImPlot3D mov [rsp+28h+var_10], rax mov eax, [rsp+28h+var_4] mov rcx, [rsp+28h+var_10] cmp eax, [rcx+1E8h] jle short loc_D65A9 lea rdi, aYouCanTPopMore; "You can't pop more modifiers than have "... call _ZN5ImGui8ErrorLogEPKc; ImGui::ErrorLog(char const*) test al, 1 jnz short loc_D65A7 jmp short loc_D65A9 loc_D65A7: jmp short $+2 loc_D65A9: jmp short $+2 loc_D65AB: jmp short $+2 loc_D65AD: cmp [rsp+28h+var_4], 0 jle loc_D66A6 mov rdi, [rsp+28h+var_10] add rdi, 1E8h call _ZN8ImVectorI13ImGuiStyleModE4backEv; ImVector<ImGuiStyleMod>::back(void) mov [rsp+28h+var_18], rax mov rax, [rsp+28h+var_18] mov edi, [rax]; this call _ZN8ImPlot3DL19GetPlotStyleVarInfoEi; ImPlot3D::GetPlotStyleVarInfo(int) mov [rsp+28h+var_20], rax mov rdi, [rsp+28h+var_20] mov rsi, [rsp+28h+var_10] add rsi, 94h call _ZNK8ImPlot3D20ImPlot3DStyleVarInfo9GetVarPtrEP13ImPlot3DStyle; ImPlot3D::ImPlot3DStyleVarInfo::GetVarPtr(ImPlot3DStyle *) mov [rsp+28h+var_28], rax mov rax, [rsp+28h+var_20] cmp dword ptr [rax], 8 jnz short loc_D6622 mov rax, [rsp+28h+var_20] cmp dword ptr [rax+4], 1 jnz short loc_D6622 mov rax, [rsp+28h+var_18] movss xmm0, dword ptr [rax+4] mov rax, [rsp+28h+var_28] movss dword ptr [rax], xmm0 jmp short loc_D6685 loc_D6622: mov rax, [rsp+28h+var_20] cmp dword ptr [rax], 8 jnz short loc_D665E mov rax, [rsp+28h+var_20] cmp dword ptr [rax+4], 2 jnz short loc_D665E mov rax, [rsp+28h+var_18] movss xmm0, dword ptr [rax+4] mov rax, [rsp+28h+var_28] movss dword ptr [rax], xmm0 mov rax, [rsp+28h+var_18] movss xmm0, dword ptr [rax+8] mov rax, [rsp+28h+var_28] movss dword ptr [rax+4], xmm0 jmp short loc_D6683 loc_D665E: mov rax, [rsp+28h+var_20] cmp dword ptr [rax], 4 jnz short loc_D6681 mov rax, [rsp+28h+var_20] cmp dword ptr [rax+4], 1 jnz short loc_D6681 mov rax, [rsp+28h+var_18] mov ecx, [rax+4] mov rax, [rsp+28h+var_28] mov [rax], ecx loc_D6681: jmp short $+2 loc_D6683: jmp short $+2 loc_D6685: mov rdi, [rsp+28h+var_10] add rdi, 1E8h call _ZN8ImVectorI13ImGuiStyleModE8pop_backEv; ImVector<ImGuiStyleMod>::pop_back(void) mov eax, [rsp+28h+var_4] add eax, 0FFFFFFFFh mov [rsp+28h+var_4], eax jmp loc_D65AD loc_D66A6: add rsp, 28h retn
long long ImPlot3D::PopStyleVar(ImPlot3D *this, const char *a2) { long long result; // rax _DWORD *VarPtr; // [rsp+0h] [rbp-28h] ImPlot3D::ImPlot3DStyleVarInfo *PlotStyleVarInfo; // [rsp+8h] [rbp-20h] unsigned int *v5; // [rsp+10h] [rbp-18h] long long v6; // [rsp+18h] [rbp-10h] int v7; // [rsp+24h] [rbp-4h] v7 = (int)this; v6 = ImPlot3D::GImPlot3D; result = (unsigned int)this; if ( (int)this > *(_DWORD *)(ImPlot3D::GImPlot3D + 488) ) result = ImGui::ErrorLog((ImGui *)"You can't pop more modifiers than have been pushed!", a2); while ( v7 > 0 ) { v5 = (unsigned int *)ImVector<ImGuiStyleMod>::back(v6 + 488); PlotStyleVarInfo = (ImPlot3D::ImPlot3DStyleVarInfo *)ImPlot3D::GetPlotStyleVarInfo((ImPlot3D *)*v5); VarPtr = (_DWORD *)ImPlot3D::ImPlot3DStyleVarInfo::GetVarPtr(PlotStyleVarInfo, (ImPlot3DStyle *)(v6 + 148)); if ( *(_DWORD *)PlotStyleVarInfo == 8 && *((_DWORD *)PlotStyleVarInfo + 1) == 1 ) { *VarPtr = v5[1]; } else if ( *(_DWORD *)PlotStyleVarInfo == 8 && *((_DWORD *)PlotStyleVarInfo + 1) == 2 ) { *VarPtr = v5[1]; VarPtr[1] = v5[2]; } else if ( *(_DWORD *)PlotStyleVarInfo == 4 && *((_DWORD *)PlotStyleVarInfo + 1) == 1 ) { *VarPtr = v5[1]; } ImVector<ImGuiStyleMod>::pop_back(v6 + 488); result = (unsigned int)--v7; } return result; }
PopStyleVar: SUB RSP,0x28 MOV dword ptr [RSP + 0x24],EDI MOV RAX,qword ptr [0x0078f638] MOV qword ptr [RSP + 0x18],RAX MOV EAX,dword ptr [RSP + 0x24] MOV RCX,qword ptr [RSP + 0x18] CMP EAX,dword ptr [RCX + 0x1e8] JLE 0x001d65a9 LEA RDI,[0x6d28a2] CALL 0x005f7220 TEST AL,0x1 JNZ 0x001d65a7 JMP 0x001d65a9 LAB_001d65a7: JMP 0x001d65a9 LAB_001d65a9: JMP 0x001d65ab LAB_001d65ab: JMP 0x001d65ad LAB_001d65ad: CMP dword ptr [RSP + 0x24],0x0 JLE 0x001d66a6 MOV RDI,qword ptr [RSP + 0x18] ADD RDI,0x1e8 CALL 0x001d9c80 MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [RSP + 0x10] MOV EDI,dword ptr [RAX] CALL 0x001d6380 MOV qword ptr [RSP + 0x8],RAX MOV RDI,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RSP + 0x18] ADD RSI,0x94 CALL 0x001d9b60 MOV qword ptr [RSP],RAX MOV RAX,qword ptr [RSP + 0x8] CMP dword ptr [RAX],0x8 JNZ 0x001d6622 MOV RAX,qword ptr [RSP + 0x8] CMP dword ptr [RAX + 0x4],0x1 JNZ 0x001d6622 MOV RAX,qword ptr [RSP + 0x10] MOVSS XMM0,dword ptr [RAX + 0x4] MOV RAX,qword ptr [RSP] MOVSS dword ptr [RAX],XMM0 JMP 0x001d6685 LAB_001d6622: MOV RAX,qword ptr [RSP + 0x8] CMP dword ptr [RAX],0x8 JNZ 0x001d665e MOV RAX,qword ptr [RSP + 0x8] CMP dword ptr [RAX + 0x4],0x2 JNZ 0x001d665e MOV RAX,qword ptr [RSP + 0x10] MOVSS XMM0,dword ptr [RAX + 0x4] MOV RAX,qword ptr [RSP] MOVSS dword ptr [RAX],XMM0 MOV RAX,qword ptr [RSP + 0x10] MOVSS XMM0,dword ptr [RAX + 0x8] MOV RAX,qword ptr [RSP] MOVSS dword ptr [RAX + 0x4],XMM0 JMP 0x001d6683 LAB_001d665e: MOV RAX,qword ptr [RSP + 0x8] CMP dword ptr [RAX],0x4 JNZ 0x001d6681 MOV RAX,qword ptr [RSP + 0x8] CMP dword ptr [RAX + 0x4],0x1 JNZ 0x001d6681 MOV RAX,qword ptr [RSP + 0x10] MOV ECX,dword ptr [RAX + 0x4] MOV RAX,qword ptr [RSP] MOV dword ptr [RAX],ECX LAB_001d6681: JMP 0x001d6683 LAB_001d6683: JMP 0x001d6685 LAB_001d6685: MOV RDI,qword ptr [RSP + 0x18] ADD RDI,0x1e8 CALL 0x001d9ca0 MOV EAX,dword ptr [RSP + 0x24] ADD EAX,-0x1 MOV dword ptr [RSP + 0x24],EAX JMP 0x001d65ad LAB_001d66a6: ADD RSP,0x28 RET
/* ImPlot3D::PopStyleVar(int) */ void ImPlot3D::PopStyleVar(int param_1) { long lVar1; int *piVar2; ImPlot3DStyleVarInfo *this; int *piVar3; int local_4; lVar1 = GImPlot3D; local_4 = param_1; if (*(int *)(GImPlot3D + 0x1e8) < param_1) { ImGui::ErrorLog("You can\'t pop more modifiers than have been pushed!"); } for (; 0 < local_4; local_4 = local_4 + -1) { piVar2 = (int *)ImVector<ImGuiStyleMod>::back((ImVector<ImGuiStyleMod> *)(lVar1 + 0x1e8)); this = (ImPlot3DStyleVarInfo *)GetPlotStyleVarInfo(*piVar2); piVar3 = (int *)ImPlot3DStyleVarInfo::GetVarPtr(this,(ImPlot3DStyle *)(lVar1 + 0x94)); if ((*(int *)this == 8) && (*(int *)(this + 4) == 1)) { *piVar3 = piVar2[1]; } else if ((*(int *)this == 8) && (*(int *)(this + 4) == 2)) { *piVar3 = piVar2[1]; piVar3[1] = piVar2[2]; } else if ((*(int *)this == 4) && (*(int *)(this + 4) == 1)) { *piVar3 = piVar2[1]; } ImVector<ImGuiStyleMod>::pop_back((ImVector<ImGuiStyleMod> *)(lVar1 + 0x1e8)); } return; }
49,340
my_default_csname
eloqsql/mysys/charset.c
const char* my_default_csname() { const char* csname = NULL; #ifdef _WIN32 char cpbuf[64]; int cp = GetConsoleCP(); if (cp == 0) cp = GetACP(); snprintf(cpbuf, sizeof(cpbuf), "cp%d", (int)cp); csname = my_os_charset_to_mysql_charset(cpbuf); #elif defined(HAVE_SETLOCALE) && defined(HAVE_NL_LANGINFO) if (setlocale(LC_CTYPE, "") && (csname = nl_langinfo(CODESET))) csname = my_os_charset_to_mysql_charset(csname); #endif return csname ? csname : MYSQL_DEFAULT_CHARSET_NAME; }
O3
c
my_default_csname: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax leaq 0x4dbf4(%rip), %rsi # 0x9eb76 xorl %r14d, %r14d xorl %edi, %edi callq 0x28340 testq %rax, %rax je 0x50fde movl $0xe, %edi callq 0x283c0 testq %rax, %rax je 0x50fdb movq %rax, %rbx leaq 0x4928a(%rip), %rdi # 0x9a234 leaq 0x2dd717(%rip), %r15 # 0x32e6c8 xorl %r14d, %r14d movq %rbx, %rsi callq 0x28440 testl %eax, %eax je 0x50fce movq (%r15), %rdi addq $0x18, %r15 testq %rdi, %rdi jne 0x50fb4 jmp 0x50fde cmpl $0x2, -0x8(%r15) jae 0x50fdb movq -0x10(%r15), %r14 jmp 0x50fde xorl %r14d, %r14d testq %r14, %r14 leaq 0x491c2(%rip), %rax # 0x9a1aa cmovneq %r14, %rax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
my_default_csname: push rbp mov rbp, rsp push r15 push r14 push rbx push rax lea rsi, asc_9EB72+4; "" xor r14d, r14d xor edi, edi call _setlocale test rax, rax jz short loc_50FDE mov edi, 0Eh call _nl_langinfo test rax, rax jz short loc_50FDB mov rbx, rax lea rdi, a646; "646" lea r15, off_32E6C8; "ANSI_X3.4-1968" xor r14d, r14d loc_50FB4: mov rsi, rbx call _strcasecmp test eax, eax jz short loc_50FCE mov rdi, [r15] add r15, 18h test rdi, rdi jnz short loc_50FB4 jmp short loc_50FDE loc_50FCE: cmp dword ptr [r15-8], 2 jnb short loc_50FDB mov r14, [r15-10h] jmp short loc_50FDE loc_50FDB: xor r14d, r14d loc_50FDE: test r14, r14 lea rax, aLatin1; "latin1" cmovnz rax, r14 add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
const char *my_default_csname() { long long v0; // r14 long long v1; // rax long long v2; // rbx const char *v3; // rdi const char **v4; // r15 const char *result; // rax v0 = 0LL; if ( setlocale(0LL, "") ) { v1 = nl_langinfo(14LL); if ( !v1 ) goto LABEL_9; v2 = v1; v3 = "646"; v4 = (const char **)off_32E6C8; v0 = 0LL; while ( (unsigned int)strcasecmp(v3, v2) ) { v3 = *v4; v4 += 3; if ( !v3 ) goto LABEL_10; } if ( *((_DWORD *)v4 - 2) < 2u ) v0 = (long long)*(v4 - 2); else LABEL_9: v0 = 0LL; } LABEL_10: result = "latin1"; if ( v0 ) return (const char *)v0; return result; }
my_default_csname: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX LEA RSI,[0x19eb76] XOR R14D,R14D XOR EDI,EDI CALL 0x00128340 TEST RAX,RAX JZ 0x00150fde MOV EDI,0xe CALL 0x001283c0 TEST RAX,RAX JZ 0x00150fdb MOV RBX,RAX LEA RDI,[0x19a234] LEA R15,[0x42e6c8] XOR R14D,R14D LAB_00150fb4: MOV RSI,RBX CALL 0x00128440 TEST EAX,EAX JZ 0x00150fce MOV RDI,qword ptr [R15] ADD R15,0x18 TEST RDI,RDI JNZ 0x00150fb4 JMP 0x00150fde LAB_00150fce: CMP dword ptr [R15 + -0x8],0x2 JNC 0x00150fdb MOV R14,qword ptr [R15 + -0x10] JMP 0x00150fde LAB_00150fdb: XOR R14D,R14D LAB_00150fde: TEST R14,R14 LEA RAX,[0x19a1aa] CMOVNZ RAX,R14 ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
char * my_default_csname(void) { int iVar1; char *pcVar2; char *__s1; char *pcVar3; long *plVar4; pcVar3 = (char *)0x0; pcVar2 = setlocale(0,""); if (pcVar2 != (char *)0x0) { pcVar2 = nl_langinfo(0xe); if (pcVar2 == (char *)0x0) { LAB_00150fdb: pcVar3 = (char *)0x0; } else { __s1 = "646"; plVar4 = (long *)(charsets + 0x18); pcVar3 = (char *)0x0; do { iVar1 = strcasecmp(__s1,pcVar2); if (iVar1 == 0) { if (1 < *(uint *)(plVar4 + -1)) goto LAB_00150fdb; pcVar3 = (char *)plVar4[-2]; break; } __s1 = (char *)*plVar4; plVar4 = plVar4 + 3; } while (__s1 != (char *)0x0); } } pcVar2 = "latin1"; if (pcVar3 != (char *)0x0) { pcVar2 = pcVar3; } return pcVar2; }
49,341
gather_available_ancestors
bluesky950520[P]quickjs/quickjs.c
static int gather_available_ancestors(JSContext *ctx, JSModuleDef *module, ExecModuleList *exec_list) { int i; if (js_check_stack_overflow(ctx->rt, 0)) { JS_ThrowStackOverflow(ctx); return -1; } for(i = 0; i < module->async_parent_modules_count; i++) { JSModuleDef *m = module->async_parent_modules[i]; if (!find_in_exec_module_list(exec_list, m) && !m->cycle_root->eval_has_exception) { assert(m->status == JS_MODULE_STATUS_EVALUATING_ASYNC); assert(!m->eval_has_exception); assert(m->async_evaluation); assert(m->pending_async_dependencies > 0); m->pending_async_dependencies--; if (m->pending_async_dependencies == 0) { if (js_resize_array(ctx, (void **)&exec_list->tab, sizeof(exec_list->tab[0]), &exec_list->size, exec_list->count + 1)) { return -1; } exec_list->tab[exec_list->count++] = m; if (!m->has_tla) { if (gather_available_ancestors(ctx, m, exec_list)) return -1; } } } } return 0; }
O1
c
gather_available_ancestors: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdi, %rbx movq 0x18(%rdi), %rax cmpq %rbp, 0xe8(%rax) jbe 0x445ed leaq 0x592f5(%rip), %rsi # 0x9d8ce movq %rbx, %rdi xorl %eax, %eax callq 0x1fec9 movl $0xffffffff, %eax # imm = 0xFFFFFFFF jmp 0x446bd movq %rsi, %r15 cmpl $0x0, 0xa0(%rsi) jle 0x446bb movq %rdx, %r14 leaq 0xc(%rdx), %rcx xorl %r12d, %r12d movq %rcx, -0x30(%rbp) movq 0x98(%r15), %rax movq (%rax,%r12,8), %r13 movslq 0x8(%r14), %r8 testq %r8, %r8 jle 0x44632 movq (%r14), %rax xorl %edx, %edx cmpq %r13, (%rax,%rdx,8) je 0x44686 incq %rdx cmpq %rdx, %r8 jne 0x44624 movq 0xb8(%r13), %rax cmpb $0x0, 0xf0(%rax) jne 0x44686 decl 0xa8(%r13) jne 0x44686 cmpl %r8d, (%rcx) jle 0x4469b movq (%r14), %rax movslq 0x8(%r14), %rsi leal 0x1(%rsi), %edx movl %edx, 0x8(%r14) movq %r13, (%rax,%rsi,8) cmpb $0x0, 0x80(%r13) jne 0x44686 movq %rbx, %rdi movq %r13, %rsi movq %r14, %rdx callq 0x445b4 movq -0x30(%rbp), %rcx testl %eax, %eax jne 0x445e3 incq %r12 movslq 0xa0(%r15), %rax cmpq %rax, %r12 jl 0x4460b jmp 0x446bb incl %r8d movq %rbx, %rdi movq %r14, %rsi movl $0x8, %edx callq 0x428db movq -0x30(%rbp), %rcx testl %eax, %eax je 0x44650 jmp 0x445e3 xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
gather_available_ancestors: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rdi mov rax, [rdi+18h] cmp [rax+0E8h], rbp jbe short loc_445ED lea rsi, aMaximumCallSta; "Maximum call stack size exceeded" mov rdi, rbx xor eax, eax call JS_ThrowRangeError loc_445E3: mov eax, 0FFFFFFFFh jmp loc_446BD loc_445ED: mov r15, rsi cmp dword ptr [rsi+0A0h], 0 jle loc_446BB mov r14, rdx lea rcx, [rdx+0Ch] xor r12d, r12d mov [rbp+var_30], rcx loc_4460B: mov rax, [r15+98h] mov r13, [rax+r12*8] movsxd r8, dword ptr [r14+8] test r8, r8 jle short loc_44632 mov rax, [r14] xor edx, edx loc_44624: cmp [rax+rdx*8], r13 jz short loc_44686 inc rdx cmp r8, rdx jnz short loc_44624 loc_44632: mov rax, [r13+0B8h] cmp byte ptr [rax+0F0h], 0 jnz short loc_44686 dec dword ptr [r13+0A8h] jnz short loc_44686 cmp [rcx], r8d jle short loc_4469B loc_44650: mov rax, [r14] movsxd rsi, dword ptr [r14+8] lea edx, [rsi+1] mov [r14+8], edx mov [rax+rsi*8], r13 cmp byte ptr [r13+80h], 0 jnz short loc_44686 mov rdi, rbx mov rsi, r13 mov rdx, r14 call gather_available_ancestors mov rcx, [rbp+var_30] test eax, eax jnz loc_445E3 loc_44686: inc r12 movsxd rax, dword ptr [r15+0A0h] cmp r12, rax jl loc_4460B jmp short loc_446BB loc_4469B: inc r8d mov rdi, rbx mov rsi, r14 mov edx, 8 call js_realloc_array mov rcx, [rbp+var_30] test eax, eax jz short loc_44650 jmp loc_445E3 loc_446BB: xor eax, eax loc_446BD: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long gather_available_ancestors( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { char v14; // al _DWORD *v18; // rcx long long v19; // r12 long long v20; // r13 long long v21; // r8 long long v22; // rdx long long v24; // rax long long v25; // rsi int v26; // eax int v27; // eax _DWORD *v28; // [rsp+0h] [rbp-30h] long long savedregs; // [rsp+30h] [rbp+0h] BYREF if ( *(_QWORD *)(*(_QWORD *)(a1 + 24) + 232LL) <= (unsigned long long)&savedregs ) { if ( *(int *)(a2 + 160) > 0 ) { v18 = (_DWORD *)(a3 + 12); v19 = 0LL; v28 = (_DWORD *)(a3 + 12); do { v20 = *(_QWORD *)(*(_QWORD *)(a2 + 152) + 8 * v19); v21 = *(int *)(a3 + 8); if ( v21 <= 0 ) { LABEL_10: if ( !*(_BYTE *)(*(_QWORD *)(v20 + 184) + 240LL) && (*(_DWORD *)(v20 + 168))-- == 1 ) { if ( *v18 <= (int)v21 ) { v27 = js_realloc_array(a1, (long long *)a3, 8u, v18, (int)v21 + 1); v18 = v28; if ( v27 ) return 0xFFFFFFFFLL; } v24 = *(_QWORD *)a3; v25 = *(int *)(a3 + 8); *(_DWORD *)(a3 + 8) = v25 + 1; *(_QWORD *)(v24 + 8 * v25) = v20; if ( !*(_BYTE *)(v20 + 128) ) { v26 = gather_available_ancestors(a1, v20, a3); v18 = v28; if ( v26 ) return 0xFFFFFFFFLL; } } } else { v22 = 0LL; while ( *(_QWORD *)(*(_QWORD *)a3 + 8 * v22) != v20 ) { if ( v21 == ++v22 ) goto LABEL_10; } } ++v19; } while ( v19 < *(int *)(a2 + 160) ); } return 0LL; } else { JS_ThrowRangeError( a1, (long long)"Maximum call stack size exceeded", a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v14); return 0xFFFFFFFFLL; } }
gather_available_ancestors: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RDI MOV RAX,qword ptr [RDI + 0x18] CMP qword ptr [RAX + 0xe8],RBP JBE 0x001445ed LEA RSI,[0x19d8ce] MOV RDI,RBX XOR EAX,EAX CALL 0x0011fec9 LAB_001445e3: MOV EAX,0xffffffff JMP 0x001446bd LAB_001445ed: MOV R15,RSI CMP dword ptr [RSI + 0xa0],0x0 JLE 0x001446bb MOV R14,RDX LEA RCX,[RDX + 0xc] XOR R12D,R12D MOV qword ptr [RBP + -0x30],RCX LAB_0014460b: MOV RAX,qword ptr [R15 + 0x98] MOV R13,qword ptr [RAX + R12*0x8] MOVSXD R8,dword ptr [R14 + 0x8] TEST R8,R8 JLE 0x00144632 MOV RAX,qword ptr [R14] XOR EDX,EDX LAB_00144624: CMP qword ptr [RAX + RDX*0x8],R13 JZ 0x00144686 INC RDX CMP R8,RDX JNZ 0x00144624 LAB_00144632: MOV RAX,qword ptr [R13 + 0xb8] CMP byte ptr [RAX + 0xf0],0x0 JNZ 0x00144686 DEC dword ptr [R13 + 0xa8] JNZ 0x00144686 CMP dword ptr [RCX],R8D JLE 0x0014469b LAB_00144650: MOV RAX,qword ptr [R14] MOVSXD RSI,dword ptr [R14 + 0x8] LEA EDX,[RSI + 0x1] MOV dword ptr [R14 + 0x8],EDX MOV qword ptr [RAX + RSI*0x8],R13 CMP byte ptr [R13 + 0x80],0x0 JNZ 0x00144686 MOV RDI,RBX MOV RSI,R13 MOV RDX,R14 CALL 0x001445b4 MOV RCX,qword ptr [RBP + -0x30] TEST EAX,EAX JNZ 0x001445e3 LAB_00144686: INC R12 MOVSXD RAX,dword ptr [R15 + 0xa0] CMP R12,RAX JL 0x0014460b JMP 0x001446bb LAB_0014469b: INC R8D MOV RDI,RBX MOV RSI,R14 MOV EDX,0x8 CALL 0x001428db MOV RCX,qword ptr [RBP + -0x30] TEST EAX,EAX JZ 0x00144650 JMP 0x001445e3 LAB_001446bb: XOR EAX,EAX LAB_001446bd: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 gather_available_ancestors(long param_1,long param_2,long *param_3) { int *piVar1; long lVar2; int iVar3; int8 uVar4; long lVar5; long lVar6; if (&stack0xfffffffffffffff8 < *(int1 **)(*(long *)(param_1 + 0x18) + 0xe8)) { JS_ThrowRangeError(param_1,"Maximum call stack size exceeded"); LAB_001445e3: uVar4 = 0xffffffff; } else { if (0 < *(int *)(param_2 + 0xa0)) { lVar6 = 0; do { lVar2 = *(long *)(*(long *)(param_2 + 0x98) + lVar6 * 8); iVar3 = (int)param_3[1]; if (0 < (long)iVar3) { lVar5 = 0; do { if (*(long *)(*param_3 + lVar5 * 8) == lVar2) goto LAB_00144686; lVar5 = lVar5 + 1; } while (iVar3 != lVar5); } if (*(char *)(*(long *)(lVar2 + 0xb8) + 0xf0) == '\0') { piVar1 = (int *)(lVar2 + 0xa8); *piVar1 = *piVar1 + -1; if (*piVar1 == 0) { if ((*(int *)((long)param_3 + 0xc) <= iVar3) && (iVar3 = js_realloc_array(param_1,param_3,8,(int *)((long)param_3 + 0xc),iVar3 + 1), iVar3 != 0)) goto LAB_001445e3; lVar5 = param_3[1]; *(int *)(param_3 + 1) = (int)lVar5 + 1; *(long *)(*param_3 + (long)(int)lVar5 * 8) = lVar2; if ((*(char *)(lVar2 + 0x80) == '\0') && (iVar3 = gather_available_ancestors(param_1,lVar2,param_3), iVar3 != 0)) goto LAB_001445e3; } } LAB_00144686: lVar6 = lVar6 + 1; } while (lVar6 < *(int *)(param_2 + 0xa0)); } uVar4 = 0; } return uVar4; }
49,342
gather_available_ancestors
bluesky950520[P]quickjs/quickjs.c
static int gather_available_ancestors(JSContext *ctx, JSModuleDef *module, ExecModuleList *exec_list) { int i; if (js_check_stack_overflow(ctx->rt, 0)) { JS_ThrowStackOverflow(ctx); return -1; } for(i = 0; i < module->async_parent_modules_count; i++) { JSModuleDef *m = module->async_parent_modules[i]; if (!find_in_exec_module_list(exec_list, m) && !m->cycle_root->eval_has_exception) { assert(m->status == JS_MODULE_STATUS_EVALUATING_ASYNC); assert(!m->eval_has_exception); assert(m->async_evaluation); assert(m->pending_async_dependencies > 0); m->pending_async_dependencies--; if (m->pending_async_dependencies == 0) { if (js_resize_array(ctx, (void **)&exec_list->tab, sizeof(exec_list->tab[0]), &exec_list->size, exec_list->count + 1)) { return -1; } exec_list->tab[exec_list->count++] = m; if (!m->has_tla) { if (gather_available_ancestors(ctx, m, exec_list)) return -1; } } } } return 0; }
O3
c
gather_available_ancestors: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdi, %rbx movq 0x18(%rdi), %rax cmpq %rbp, 0xe8(%rax) jbe 0x461b6 leaq 0x5a6fc(%rip), %rsi # 0xa089e movq %rbx, %rdi xorl %eax, %eax callq 0x205f0 movl $0xffffffff, %eax # imm = 0xFFFFFFFF jmp 0x4628b movq %rsi, %r15 cmpl $0x0, 0xa0(%rsi) jle 0x46289 movq %rdx, %r14 leaq 0xc(%rdx), %rcx xorl %r12d, %r12d movq %rcx, -0x30(%rbp) movq 0x98(%r15), %rax movq (%rax,%r12,8), %r13 movslq 0x8(%r14), %r8 testq %r8, %r8 jle 0x461fb movq (%r14), %rax xorl %edx, %edx cmpq %r13, (%rax,%rdx,8) je 0x4624f incq %rdx cmpq %rdx, %r8 jne 0x461ed movq 0xb8(%r13), %rax cmpb $0x0, 0xf0(%rax) jne 0x4624f decl 0xa8(%r13) jne 0x4624f cmpl %r8d, (%rcx) jle 0x46264 movq (%r14), %rax leal 0x1(%r8), %edx movl %edx, 0x8(%r14) movslq %r8d, %rdx movq %r13, (%rax,%rdx,8) cmpb $0x0, 0x80(%r13) jne 0x4624f movq %rbx, %rdi movq %r13, %rsi movq %r14, %rdx callq 0x4617d movq -0x30(%rbp), %rcx testl %eax, %eax jne 0x461ac incq %r12 movslq 0xa0(%r15), %rax cmpq %rax, %r12 jl 0x461d4 jmp 0x46289 incl %r8d movq %rbx, %rdi movq %r14, %rsi movl $0x8, %edx callq 0x444ee testl %eax, %eax jne 0x461ac movl 0x8(%r14), %r8d movq -0x30(%rbp), %rcx jmp 0x46219 xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
gather_available_ancestors: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rdi mov rax, [rdi+18h] cmp [rax+0E8h], rbp jbe short loc_461B6 lea rsi, aMaximumCallSta; "Maximum call stack size exceeded" mov rdi, rbx xor eax, eax call JS_ThrowRangeError loc_461AC: mov eax, 0FFFFFFFFh jmp loc_4628B loc_461B6: mov r15, rsi cmp dword ptr [rsi+0A0h], 0 jle loc_46289 mov r14, rdx lea rcx, [rdx+0Ch] xor r12d, r12d mov [rbp+var_30], rcx loc_461D4: mov rax, [r15+98h] mov r13, [rax+r12*8] movsxd r8, dword ptr [r14+8] test r8, r8 jle short loc_461FB mov rax, [r14] xor edx, edx loc_461ED: cmp [rax+rdx*8], r13 jz short loc_4624F inc rdx cmp r8, rdx jnz short loc_461ED loc_461FB: mov rax, [r13+0B8h] cmp byte ptr [rax+0F0h], 0 jnz short loc_4624F dec dword ptr [r13+0A8h] jnz short loc_4624F cmp [rcx], r8d jle short loc_46264 loc_46219: mov rax, [r14] lea edx, [r8+1] mov [r14+8], edx movsxd rdx, r8d mov [rax+rdx*8], r13 cmp byte ptr [r13+80h], 0 jnz short loc_4624F mov rdi, rbx mov rsi, r13 mov rdx, r14 call gather_available_ancestors mov rcx, [rbp+var_30] test eax, eax jnz loc_461AC loc_4624F: inc r12 movsxd rax, dword ptr [r15+0A0h] cmp r12, rax jl loc_461D4 jmp short loc_46289 loc_46264: inc r8d mov rdi, rbx mov rsi, r14 mov edx, 8 call js_realloc_array test eax, eax jnz loc_461AC mov r8d, [r14+8] mov rcx, [rbp+var_30] jmp short loc_46219 loc_46289: xor eax, eax loc_4628B: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long gather_available_ancestors( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { char v14; // al _DWORD *v17; // rcx long long v18; // r12 long long v19; // r13 long long v20; // r8 long long v21; // rdx long long v23; // rax int v24; // eax _DWORD *v25; // [rsp+0h] [rbp-30h] long long savedregs; // [rsp+30h] [rbp+0h] BYREF if ( *(_QWORD *)(*(_QWORD *)(a1 + 24) + 232LL) <= (unsigned long long)&savedregs ) { if ( *(int *)(a2 + 160) > 0 ) { v17 = (_DWORD *)(a3 + 12); v18 = 0LL; v25 = (_DWORD *)(a3 + 12); do { v19 = *(_QWORD *)(*(_QWORD *)(a2 + 152) + 8 * v18); v20 = *(int *)(a3 + 8); if ( v20 <= 0 ) { LABEL_10: if ( !*(_BYTE *)(*(_QWORD *)(v19 + 184) + 240LL) && (*(_DWORD *)(v19 + 168))-- == 1 ) { if ( *v17 <= (int)v20 ) { if ( (unsigned int)js_realloc_array(a1, (long long *)a3, 8u, v17, (int)v20 + 1) ) return 0xFFFFFFFFLL; LODWORD(v20) = *(_DWORD *)(a3 + 8); v17 = v25; } v23 = *(_QWORD *)a3; *(_DWORD *)(a3 + 8) = v20 + 1; *(_QWORD *)(v23 + 8LL * (int)v20) = v19; if ( !*(_BYTE *)(v19 + 128) ) { v24 = gather_available_ancestors(a1, v19, a3); v17 = v25; if ( v24 ) return 0xFFFFFFFFLL; } } } else { v21 = 0LL; while ( *(_QWORD *)(*(_QWORD *)a3 + 8 * v21) != v19 ) { if ( v20 == ++v21 ) goto LABEL_10; } } ++v18; } while ( v18 < *(int *)(a2 + 160) ); } return 0LL; } else { JS_ThrowRangeError( a1, (long long)"Maximum call stack size exceeded", a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v14); return 0xFFFFFFFFLL; } }
gather_available_ancestors: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RDI MOV RAX,qword ptr [RDI + 0x18] CMP qword ptr [RAX + 0xe8],RBP JBE 0x001461b6 LEA RSI,[0x1a089e] MOV RDI,RBX XOR EAX,EAX CALL 0x001205f0 LAB_001461ac: MOV EAX,0xffffffff JMP 0x0014628b LAB_001461b6: MOV R15,RSI CMP dword ptr [RSI + 0xa0],0x0 JLE 0x00146289 MOV R14,RDX LEA RCX,[RDX + 0xc] XOR R12D,R12D MOV qword ptr [RBP + -0x30],RCX LAB_001461d4: MOV RAX,qword ptr [R15 + 0x98] MOV R13,qword ptr [RAX + R12*0x8] MOVSXD R8,dword ptr [R14 + 0x8] TEST R8,R8 JLE 0x001461fb MOV RAX,qword ptr [R14] XOR EDX,EDX LAB_001461ed: CMP qword ptr [RAX + RDX*0x8],R13 JZ 0x0014624f INC RDX CMP R8,RDX JNZ 0x001461ed LAB_001461fb: MOV RAX,qword ptr [R13 + 0xb8] CMP byte ptr [RAX + 0xf0],0x0 JNZ 0x0014624f DEC dword ptr [R13 + 0xa8] JNZ 0x0014624f CMP dword ptr [RCX],R8D JLE 0x00146264 LAB_00146219: MOV RAX,qword ptr [R14] LEA EDX,[R8 + 0x1] MOV dword ptr [R14 + 0x8],EDX MOVSXD RDX,R8D MOV qword ptr [RAX + RDX*0x8],R13 CMP byte ptr [R13 + 0x80],0x0 JNZ 0x0014624f MOV RDI,RBX MOV RSI,R13 MOV RDX,R14 CALL 0x0014617d MOV RCX,qword ptr [RBP + -0x30] TEST EAX,EAX JNZ 0x001461ac LAB_0014624f: INC R12 MOVSXD RAX,dword ptr [R15 + 0xa0] CMP R12,RAX JL 0x001461d4 JMP 0x00146289 LAB_00146264: INC R8D MOV RDI,RBX MOV RSI,R14 MOV EDX,0x8 CALL 0x001444ee TEST EAX,EAX JNZ 0x001461ac MOV R8D,dword ptr [R14 + 0x8] MOV RCX,qword ptr [RBP + -0x30] JMP 0x00146219 LAB_00146289: XOR EAX,EAX LAB_0014628b: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 gather_available_ancestors(long param_1,long param_2,long *param_3) { int *piVar1; long lVar2; int iVar3; int8 uVar4; long lVar5; long lVar6; if (&stack0xfffffffffffffff8 < *(int1 **)(*(long *)(param_1 + 0x18) + 0xe8)) { JS_ThrowRangeError(param_1,"Maximum call stack size exceeded"); LAB_001461ac: uVar4 = 0xffffffff; } else { if (0 < *(int *)(param_2 + 0xa0)) { lVar6 = 0; do { lVar2 = *(long *)(*(long *)(param_2 + 0x98) + lVar6 * 8); iVar3 = (int)param_3[1]; if (0 < (long)iVar3) { lVar5 = 0; do { if (*(long *)(*param_3 + lVar5 * 8) == lVar2) goto LAB_0014624f; lVar5 = lVar5 + 1; } while (iVar3 != lVar5); } if (*(char *)(*(long *)(lVar2 + 0xb8) + 0xf0) == '\0') { piVar1 = (int *)(lVar2 + 0xa8); *piVar1 = *piVar1 + -1; if (*piVar1 == 0) { if (*(int *)((long)param_3 + 0xc) <= iVar3) { iVar3 = js_realloc_array(param_1,param_3,8,(int *)((long)param_3 + 0xc),iVar3 + 1); if (iVar3 != 0) goto LAB_001461ac; iVar3 = (int)param_3[1]; } *(int *)(param_3 + 1) = iVar3 + 1; *(long *)(*param_3 + (long)iVar3 * 8) = lVar2; if ((*(char *)(lVar2 + 0x80) == '\0') && (iVar3 = gather_available_ancestors(param_1,lVar2,param_3), iVar3 != 0)) goto LAB_001461ac; } } LAB_0014624f: lVar6 = lVar6 + 1; } while (lVar6 < *(int *)(param_2 + 0xa0)); } uVar4 = 0; } return uVar4; }
49,343
common_kv_cache_dump_view_seqs(llama_kv_cache_view const&, int)
monkey531[P]llama/common/common.cpp
void common_kv_cache_dump_view_seqs(const llama_kv_cache_view & view, int row_size) { static const char slot_chars[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; printf("=== Dumping KV cache. total cells %d, max sequences per cell %d, populated cells %d, total tokens in cache %d, largest empty slot=%d @ %d\n", view.n_cells, view.n_seq_max, view.used_cells, view.token_count, view.max_contiguous, view.max_contiguous_idx); std::unordered_map<llama_seq_id, size_t> seqs; llama_kv_cache_view_cell * c_curr = view.cells; llama_seq_id * cs_curr = view.cells_sequences; for (int i = 0; i < view.n_cells; i++, c_curr++, cs_curr += view.n_seq_max) { for (int j = 0; j < view.n_seq_max; j++) { if (cs_curr[j] < 0) { continue; } if (seqs.find(cs_curr[j]) == seqs.end()) { if (seqs.size() + 1 >= sizeof(slot_chars)) { break; } const size_t sz = seqs.size(); seqs[cs_curr[j]] = sz; } } if (seqs.size() + 1 >= sizeof(slot_chars)) { break; } } printf("=== Sequence legend: "); for (const auto & it : seqs) { printf("%zu=%d, ", it.second, it.first); } printf("'+'=other sequence ids"); c_curr = view.cells; cs_curr = view.cells_sequences; for (int i = 0; i < view.n_cells; i++, c_curr++, cs_curr += view.n_seq_max) { if (i % row_size == 0) { printf("\n%5d: ", i); } for (int j = 0; j < view.n_seq_max; j++) { if (cs_curr[j] >= 0) { const auto & it = seqs.find(cs_curr[j]); putchar(it != seqs.end() ? int(slot_chars[it->second]) : '+'); } else { putchar('.'); } } putchar(' '); } printf("\n=== Done dumping\n"); }
O3
cpp
common_kv_cache_dump_view_seqs(llama_kv_cache_view const&, int): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movl %esi, 0x14(%rsp) movq %rdi, %r14 movl (%rdi), %esi movl 0x4(%rdi), %edx movl 0xc(%rdi), %ecx movl 0x8(%rdi), %r8d movl 0x10(%rdi), %r9d movl 0x14(%rdi), %eax movl %eax, (%rsp) leaq 0x62e80(%rip), %rdi # 0xb9ddf movq $0x0, 0x18(%rsp) xorl %eax, %eax callq 0x19070 leaq 0x50(%rsp), %rax movq %rax, -0x30(%rax) movq $0x1, -0x28(%rax) xorps %xmm0, %xmm0 movups %xmm0, -0x20(%rax) movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000 movups %xmm0, -0x8(%rax) cmpl $0x0, (%r14) jle 0x57022 movq 0x20(%r14), %rbp movl 0x4(%r14), %eax leaq 0x20(%rsp), %r15 xorl %ebx, %ebx testl %eax, %eax jle 0x56ffe movq %rbp, %r12 xorl %r13d, %r13d cmpl $0x0, (%r12) js 0x56fe9 movq %r15, %rdi movq %r12, %rsi callq 0x95262 testq %rax, %rax jne 0x56fe9 movq 0x38(%rsp), %rbx leaq -0x3e(%rbx), %rax cmpq $-0x3f, %rax jb 0x56ffe movq %r15, %rdi movq %r12, %rsi callq 0x952be movq %rbx, (%rax) incq %r13 movslq 0x4(%r14), %rax addq $0x4, %r12 cmpq %rax, %r13 jl 0x56fb5 movq 0x38(%rsp), %rbx leaq -0x3e(%rbx), %rax cmpq $-0x3f, %rax jb 0x57022 movq 0x18(%rsp), %rcx incl %ecx movslq 0x4(%r14), %rax leaq (%rbp,%rax,4), %rbp movq %rcx, 0x18(%rsp) cmpl (%r14), %ecx jl 0x56fab leaq 0x62e41(%rip), %rdi # 0xb9e6a xorl %eax, %eax callq 0x19070 movq 0x30(%rsp), %rbx testq %rbx, %rbx je 0x5705a leaq 0x62e3f(%rip), %r15 # 0xb9e80 movq 0x10(%rbx), %rsi movl 0x8(%rbx), %edx movq %r15, %rdi xorl %eax, %eax callq 0x19070 movq (%rbx), %rbx testq %rbx, %rbx jne 0x57041 leaq 0x62e28(%rip), %rdi # 0xb9e89 xorl %eax, %eax callq 0x19070 cmpl $0x0, (%r14) jle 0x5710a movq 0x20(%r14), %r15 leaq 0x20(%rsp), %r12 xorl %ebp, %ebp movl %ebp, %eax cltd idivl 0x14(%rsp) testl %edx, %edx jne 0x57098 leaq 0x62d49(%rip), %rdi # 0xb9dd8 movl %ebp, %esi xorl %eax, %eax callq 0x19070 cmpl $0x0, 0x4(%r14) jle 0x570ed movq %r15, %r13 xorl %ebx, %ebx cmpl $0x0, (%r13) js 0x570cc movq %r12, %rdi movq %r13, %rsi callq 0x95262 testq %rax, %rax je 0x570d3 movq 0x10(%rax), %rax leaq 0x64c9a(%rip), %rcx # 0xbbd60 movsbl (%rax,%rcx), %edi jmp 0x570d8 movl $0x2e, %edi jmp 0x570d8 movl $0x2b, %edi callq 0x19950 incq %rbx movslq 0x4(%r14), %rax addq $0x4, %r13 cmpq %rax, %rbx jl 0x570a4 movl $0x20, %edi callq 0x19950 incl %ebp movslq 0x4(%r14), %rax leaq (%r15,%rax,4), %r15 cmpl (%r14), %ebp jl 0x5707d leaq 0x64bf4(%rip), %rdi # 0xbbd05 callq 0x19a70 leaq 0x20(%rsp), %rdi callq 0x93016 addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x57133 jmp 0x57133 movq %rax, %rbx leaq 0x20(%rsp), %rdi callq 0x93016 movq %rbx, %rdi callq 0x19c00
_Z30common_kv_cache_dump_view_seqsRK19llama_kv_cache_viewi: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 58h mov [rsp+88h+var_74], esi mov r14, rdi mov esi, [rdi] mov edx, [rdi+4] mov ecx, [rdi+0Ch] mov r8d, [rdi+8] mov r9d, [rdi+10h] mov eax, [rdi+14h] mov [rsp+88h+var_88], eax lea rdi, aDumpingKvCache_0; "=== Dumping KV cache. total cells %d, m"... mov [rsp+88h+var_70], 0 xor eax, eax call _printf lea rax, [rsp+88h+var_38] mov [rax-30h], rax mov qword ptr [rax-28h], 1 xorps xmm0, xmm0 movups xmmword ptr [rax-20h], xmm0 mov dword ptr [rax-10h], 3F800000h movups xmmword ptr [rax-8], xmm0 cmp dword ptr [r14], 0 jle loc_57022 mov rbp, [r14+20h] mov eax, [r14+4] lea r15, [rsp+88h+var_68] xor ebx, ebx loc_56FAB: test eax, eax jle short loc_56FFE mov r12, rbp xor r13d, r13d loc_56FB5: cmp dword ptr [r12], 0 js short loc_56FE9 mov rdi, r15 mov rsi, r12 call _ZNSt10_HashtableIiSt4pairIKimESaIS2_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE4findERS1_; std::_Hashtable<int,std::pair<int const,ulong>,std::allocator<std::pair<int const,ulong>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::find(int const&) test rax, rax jnz short loc_56FE9 mov rbx, [rsp+88h+var_50] lea rax, [rbx-3Eh] cmp rax, 0FFFFFFFFFFFFFFC1h jb short loc_56FFE mov rdi, r15 mov rsi, r12 call _ZNSt8__detail9_Map_baseIiSt4pairIKimESaIS3_ENS_10_Select1stESt8equal_toIiESt4hashIiENS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb0ELb0ELb1EEELb1EEixERS2_; std::__detail::_Map_base<int,std::pair<int const,ulong>,std::allocator<std::pair<int const,ulong>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>::operator[](int const&) mov [rax], rbx loc_56FE9: inc r13 movsxd rax, dword ptr [r14+4] add r12, 4 cmp r13, rax jl short loc_56FB5 mov rbx, [rsp+88h+var_50] loc_56FFE: lea rax, [rbx-3Eh] cmp rax, 0FFFFFFFFFFFFFFC1h jb short loc_57022 mov rcx, [rsp+88h+var_70] inc ecx movsxd rax, dword ptr [r14+4] lea rbp, [rbp+rax*4+0] mov [rsp+88h+var_70], rcx cmp ecx, [r14] jl short loc_56FAB loc_57022: lea rdi, aSequenceLegend; "=== Sequence legend: " xor eax, eax call _printf mov rbx, [rsp+88h+var_58] test rbx, rbx jz short loc_5705A lea r15, aZuD; "%zu=%d, " loc_57041: mov rsi, [rbx+10h] mov edx, [rbx+8] mov rdi, r15 xor eax, eax call _printf mov rbx, [rbx] test rbx, rbx jnz short loc_57041 loc_5705A: lea rdi, aOtherSequenceI; "'+'=other sequence ids" xor eax, eax call _printf cmp dword ptr [r14], 0 jle loc_5710A mov r15, [r14+20h] lea r12, [rsp+88h+var_68] xor ebp, ebp loc_5707D: mov eax, ebp cdq idiv [rsp+88h+var_74] test edx, edx jnz short loc_57098 lea rdi, a5d; "\n%5d: " mov esi, ebp xor eax, eax call _printf loc_57098: cmp dword ptr [r14+4], 0 jle short loc_570ED mov r13, r15 xor ebx, ebx loc_570A4: cmp dword ptr [r13+0], 0 js short loc_570CC mov rdi, r12 mov rsi, r13 call _ZNSt10_HashtableIiSt4pairIKimESaIS2_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE4findERS1_; std::_Hashtable<int,std::pair<int const,ulong>,std::allocator<std::pair<int const,ulong>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::find(int const&) test rax, rax jz short loc_570D3 mov rax, [rax+10h] lea rcx, _ZZ30common_kv_cache_dump_view_seqsRK19llama_kv_cache_viewiE10slot_chars; "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabc"... movsx edi, byte ptr [rax+rcx] jmp short loc_570D8 loc_570CC: mov edi, 2Eh ; '.' jmp short loc_570D8 loc_570D3: mov edi, 2Bh ; '+' loc_570D8: call _putchar inc rbx movsxd rax, dword ptr [r14+4] add r13, 4 cmp rbx, rax jl short loc_570A4 loc_570ED: mov edi, 20h ; ' ' call _putchar inc ebp movsxd rax, dword ptr [r14+4] lea r15, [r15+rax*4] cmp ebp, [r14] jl loc_5707D loc_5710A: lea rdi, aDoneDumping; "\n=== Done dumping" call _puts lea rdi, [rsp+88h+var_68] call _ZNSt10_HashtableIiSt4pairIKimESaIS2_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEED2Ev; std::_Hashtable<int,std::pair<int const,ulong>,std::allocator<std::pair<int const,ulong>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::~_Hashtable() add rsp, 58h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_57133 jmp short $+2 loc_57133: mov rbx, rax lea rdi, [rsp+arg_18] call _ZNSt10_HashtableIiSt4pairIKimESaIS2_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEED2Ev; std::_Hashtable<int,std::pair<int const,ulong>,std::allocator<std::pair<int const,ulong>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::~_Hashtable() mov rdi, rbx call __Unwind_Resume
long long common_kv_cache_dump_view_seqs(long long a1, int a2) { int *v3; // rbp long long v4; // rax long long v5; // rbx int *v6; // r12 long long v7; // r13 long long *i; // rbx int *v9; // r15 int v10; // ebp int *v11; // r13 long long v12; // rbx long long v13; // rax long long v14; // rdi int v16; // [rsp+18h] [rbp-70h] _QWORD v17[2]; // [rsp+20h] [rbp-68h] BYREF __int128 v18; // [rsp+30h] [rbp-58h] int v19; // [rsp+40h] [rbp-48h] __int128 v20; // [rsp+48h] [rbp-40h] BYREF v16 = 0; printf( "=== Dumping KV cache. total cells %d, max sequences per cell %d, populated cells %d, total tokens in cache %d, large" "st empty slot=%d @ %d\n", *(_DWORD *)a1, *(_DWORD *)(a1 + 4), *(_DWORD *)(a1 + 12), *(_DWORD *)(a1 + 8), *(_DWORD *)(a1 + 16), *(_DWORD *)(a1 + 20)); v17[0] = (char *)&v20 + 8; v17[1] = 1LL; v18 = 0LL; v19 = 1065353216; v20 = 0LL; if ( *(int *)a1 > 0 ) { v3 = *(int **)(a1 + 32); LODWORD(v4) = *(_DWORD *)(a1 + 4); v5 = 0LL; do { if ( (int)v4 > 0 ) { v6 = v3; v7 = 0LL; do { if ( *v6 >= 0 && !std::_Hashtable<int,std::pair<int const,unsigned long>,std::allocator<std::pair<int const,unsigned long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::find( v17, v6) ) { v5 = *((_QWORD *)&v18 + 1); if ( (unsigned long long)(*((_QWORD *)&v18 + 1) - 62LL) < 0xFFFFFFFFFFFFFFC1LL ) goto LABEL_11; *(_QWORD *)std::__detail::_Map_base<int,std::pair<int const,unsigned long>,std::allocator<std::pair<int const,unsigned long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>::operator[]( v17, v6) = v5; } ++v7; ++v6; } while ( v7 < *(int *)(a1 + 4) ); v5 = *((_QWORD *)&v18 + 1); } LABEL_11: if ( (unsigned long long)(v5 - 62) < 0xFFFFFFFFFFFFFFC1LL ) break; v4 = *(int *)(a1 + 4); v3 += v4; ++v16; } while ( v16 < *(_DWORD *)a1 ); } printf("=== Sequence legend: "); for ( i = (long long *)v18; i; i = (long long *)*i ) printf("%zu=%d, ", i[2], *((_DWORD *)i + 2)); printf("'+'=other sequence ids"); if ( *(int *)a1 > 0 ) { v9 = *(int **)(a1 + 32); v10 = 0; do { if ( !(v10 % a2) ) printf("\n%5d: ", v10); if ( *(int *)(a1 + 4) > 0 ) { v11 = v9; v12 = 0LL; do { if ( *v11 < 0 ) { v14 = 46LL; } else { v13 = std::_Hashtable<int,std::pair<int const,unsigned long>,std::allocator<std::pair<int const,unsigned long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::find( v17, v11); if ( v13 ) v14 = (unsigned int)common_kv_cache_dump_view_seqs(llama_kv_cache_view const&,int)::slot_chars[*(_QWORD *)(v13 + 16)]; else v14 = 43LL; } putchar(v14); ++v12; ++v11; } while ( v12 < *(int *)(a1 + 4) ); } putchar(32LL); ++v10; v9 += *(int *)(a1 + 4); } while ( v10 < *(_DWORD *)a1 ); } puts("\n=== Done dumping"); return std::_Hashtable<int,std::pair<int const,unsigned long>,std::allocator<std::pair<int const,unsigned long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::~_Hashtable(v17); }
common_kv_cache_dump_view_seqs: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x58 MOV dword ptr [RSP + 0x14],ESI MOV R14,RDI MOV ESI,dword ptr [RDI] MOV EDX,dword ptr [RDI + 0x4] MOV ECX,dword ptr [RDI + 0xc] MOV R8D,dword ptr [RDI + 0x8] MOV R9D,dword ptr [RDI + 0x10] MOV EAX,dword ptr [RDI + 0x14] MOV dword ptr [RSP],EAX LEA RDI,[0x1b9ddf] MOV qword ptr [RSP + 0x18],0x0 XOR EAX,EAX CALL 0x00119070 LEA RAX,[RSP + 0x50] MOV qword ptr [RAX + -0x30],RAX MOV qword ptr [RAX + -0x28],0x1 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX + -0x20],XMM0 MOV dword ptr [RAX + -0x10],0x3f800000 MOVUPS xmmword ptr [RAX + -0x8],XMM0 CMP dword ptr [R14],0x0 JLE 0x00157022 MOV RBP,qword ptr [R14 + 0x20] MOV EAX,dword ptr [R14 + 0x4] LEA R15,[RSP + 0x20] XOR EBX,EBX LAB_00156fab: TEST EAX,EAX JLE 0x00156ffe MOV R12,RBP XOR R13D,R13D LAB_00156fb5: CMP dword ptr [R12],0x0 JS 0x00156fe9 LAB_00156fbc: MOV RDI,R15 MOV RSI,R12 CALL 0x00195262 TEST RAX,RAX JNZ 0x00156fe9 MOV RBX,qword ptr [RSP + 0x38] LEA RAX,[RBX + -0x3e] CMP RAX,-0x3f JC 0x00156ffe LAB_00156fdb: MOV RDI,R15 MOV RSI,R12 CALL 0x001952be MOV qword ptr [RAX],RBX LAB_00156fe9: INC R13 MOVSXD RAX,dword ptr [R14 + 0x4] ADD R12,0x4 CMP R13,RAX JL 0x00156fb5 MOV RBX,qword ptr [RSP + 0x38] LAB_00156ffe: LEA RAX,[RBX + -0x3e] CMP RAX,-0x3f JC 0x00157022 MOV RCX,qword ptr [RSP + 0x18] INC ECX MOVSXD RAX,dword ptr [R14 + 0x4] LEA RBP,[RBP + RAX*0x4] MOV qword ptr [RSP + 0x18],RCX CMP ECX,dword ptr [R14] JL 0x00156fab LAB_00157022: LEA RDI,[0x1b9e6a] XOR EAX,EAX CALL 0x00119070 MOV RBX,qword ptr [RSP + 0x30] TEST RBX,RBX JZ 0x0015705a LEA R15,[0x1b9e80] LAB_00157041: MOV RSI,qword ptr [RBX + 0x10] MOV EDX,dword ptr [RBX + 0x8] MOV RDI,R15 XOR EAX,EAX CALL 0x00119070 MOV RBX,qword ptr [RBX] TEST RBX,RBX JNZ 0x00157041 LAB_0015705a: LEA RDI,[0x1b9e89] XOR EAX,EAX CALL 0x00119070 CMP dword ptr [R14],0x0 JLE 0x0015710a MOV R15,qword ptr [R14 + 0x20] LEA R12,[RSP + 0x20] XOR EBP,EBP LAB_0015707d: MOV EAX,EBP CDQ IDIV dword ptr [RSP + 0x14] TEST EDX,EDX JNZ 0x00157098 LEA RDI,[0x1b9dd8] MOV ESI,EBP XOR EAX,EAX CALL 0x00119070 LAB_00157098: CMP dword ptr [R14 + 0x4],0x0 JLE 0x001570ed MOV R13,R15 XOR EBX,EBX LAB_001570a4: CMP dword ptr [R13],0x0 JS 0x001570cc LAB_001570ab: MOV RDI,R12 MOV RSI,R13 CALL 0x00195262 LAB_001570b6: TEST RAX,RAX JZ 0x001570d3 MOV RAX,qword ptr [RAX + 0x10] LEA RCX,[0x1bbd60] MOVSX EDI,byte ptr [RAX + RCX*0x1] JMP 0x001570d8 LAB_001570cc: MOV EDI,0x2e JMP 0x001570d8 LAB_001570d3: MOV EDI,0x2b LAB_001570d8: CALL 0x00119950 INC RBX MOVSXD RAX,dword ptr [R14 + 0x4] ADD R13,0x4 CMP RBX,RAX JL 0x001570a4 LAB_001570ed: MOV EDI,0x20 CALL 0x00119950 INC EBP MOVSXD RAX,dword ptr [R14 + 0x4] LEA R15,[R15 + RAX*0x4] CMP EBP,dword ptr [R14] JL 0x0015707d LAB_0015710a: LEA RDI,[0x1bbd05] CALL 0x00119a70 LEA RDI,[RSP + 0x20] CALL 0x00193016 ADD RSP,0x58 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* common_kv_cache_dump_view_seqs(llama_kv_cache_view const&, int) */ void common_kv_cache_dump_view_seqs(llama_kv_cache_view *param_1,int param_2) { int8 *puVar1; long lVar2; long *plVar3; ulong uVar4; int iVar5; long lVar6; uint uVar7; int *piVar8; int *piVar9; long lVar10; int8 *local_68; int8 local_60; int8 *local_58; long lStack_50; int4 local_48; int8 local_40; int8 uStack_38; iVar5 = 0; printf("=== Dumping KV cache. total cells %d, max sequences per cell %d, populated cells %d, total tokens in cache %d, largest empty slot=%d @ %d\n" ,(ulong)*(uint *)param_1,(ulong)*(uint *)(param_1 + 4),(ulong)*(uint *)(param_1 + 0xc), (ulong)*(uint *)(param_1 + 8),(ulong)*(uint *)(param_1 + 0x10), *(int4 *)(param_1 + 0x14)); local_68 = &uStack_38; local_60 = 1; local_58 = (int8 *)0x0; lStack_50 = 0; local_48 = 0x3f800000; local_40 = 0; uStack_38 = 0; if (0 < *(int *)param_1) { piVar8 = *(int **)(param_1 + 0x20); uVar4 = (ulong)*(uint *)(param_1 + 4); lVar6 = 0; do { if (0 < (int)uVar4) { lVar10 = 0; piVar9 = piVar8; do { /* try { // try from 00156fbc to 00156fc6 has its CatchHandler @ 00157131 */ if ((-1 < *piVar9) && (lVar2 = std:: _Hashtable<int,std::pair<int_const,unsigned_long>,std::allocator<std::pair<int_const,unsigned_long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>> ::find((_Hashtable<int,std::pair<int_const,unsigned_long>,std::allocator<std::pair<int_const,unsigned_long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>> *)&local_68,piVar9), lVar6 = lStack_50, lVar2 == 0)) { if (lStack_50 - 0x3eU < 0xffffffffffffffc1) break; /* try { // try from 00156fdb to 00156fe5 has its CatchHandler @ 0015712f */ plVar3 = (long *)std::__detail:: _Map_base<int,std::pair<int_const,unsigned_long>,std::allocator<std::pair<int_const,unsigned_long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true> ::operator[]((_Map_base<int,std::pair<int_const,unsigned_long>,std::allocator<std::pair<int_const,unsigned_long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true> *)&local_68,piVar9); *plVar3 = lVar6; } lVar10 = lVar10 + 1; piVar9 = piVar9 + 1; lVar6 = lStack_50; } while (lVar10 < *(int *)(param_1 + 4)); } if (lVar6 - 0x3eU < 0xffffffffffffffc1) break; iVar5 = iVar5 + 1; uVar4 = (ulong)*(int *)(param_1 + 4); piVar8 = piVar8 + uVar4; } while (iVar5 < *(int *)param_1); } printf("=== Sequence legend: "); for (puVar1 = local_58; puVar1 != (int8 *)0x0; puVar1 = (int8 *)*puVar1) { printf("%zu=%d, ",puVar1[2],(ulong)*(uint *)(puVar1 + 1)); } printf("\'+\'=other sequence ids"); if (0 < *(int *)param_1) { piVar8 = *(int **)(param_1 + 0x20); uVar7 = 0; do { if ((int)uVar7 % param_2 == 0) { printf("\n%5d: ",(ulong)uVar7); } if (0 < *(int *)(param_1 + 4)) { lVar6 = 0; piVar9 = piVar8; do { if (*piVar9 < 0) { iVar5 = 0x2e; } else { /* try { // try from 001570ab to 001570b5 has its CatchHandler @ 00157133 */ lVar10 = std:: _Hashtable<int,std::pair<int_const,unsigned_long>,std::allocator<std::pair<int_const,unsigned_long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>> ::find((_Hashtable<int,std::pair<int_const,unsigned_long>,std::allocator<std::pair<int_const,unsigned_long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>> *)&local_68,piVar9); if (lVar10 == 0) { iVar5 = 0x2b; } else { iVar5 = (int)"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" [*(long *)(lVar10 + 0x10)]; } } putchar(iVar5); lVar6 = lVar6 + 1; piVar9 = piVar9 + 1; } while (lVar6 < *(int *)(param_1 + 4)); } putchar(0x20); uVar7 = uVar7 + 1; piVar8 = piVar8 + *(int *)(param_1 + 4); } while ((int)uVar7 < *(int *)param_1); } puts("\n=== Done dumping"); std:: _Hashtable<int,std::pair<int_const,unsigned_long>,std::allocator<std::pair<int_const,unsigned_long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>> ::~_Hashtable((_Hashtable<int,std::pair<int_const,unsigned_long>,std::allocator<std::pair<int_const,unsigned_long>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>> *)&local_68); return; }
49,344
minja::Parser::Parser(std::shared_ptr<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const&, minja::Options const&)
llama.cpp/common/minja/minja.hpp
Parser(const std::shared_ptr<std::string>& template_str, const Options & options) : template_str(template_str), options(options) { if (!template_str) throw std::runtime_error("Template string is null"); start = it = this->template_str->begin(); end = this->template_str->end(); }
O3
cpp
minja::Parser::Parser(std::shared_ptr<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const&, minja::Options const&): pushq %r15 pushq %r14 pushq %rbx movq %rdi, %rbx movq (%rsi), %rax movq %rax, (%rdi) movq 0x8(%rsi), %rax movq %rax, 0x8(%rdi) testq %rax, %rax je 0xe86d0 movq 0x898d6(%rip), %rcx # 0x171f98 cmpb $0x0, (%rcx) je 0xe86cc incl 0x8(%rax) jmp 0xe86d0 lock incl 0x8(%rax) xorps %xmm0, %xmm0 movups %xmm0, 0x10(%rbx) movq $0x0, 0x20(%rbx) movb 0x2(%rdx), %al movb %al, 0x2a(%rbx) movzwl (%rdx), %eax movw %ax, 0x28(%rbx) cmpq $0x0, (%rsi) je 0xe8711 movq (%rbx), %rax movq (%rax), %rcx movq %rcx, 0x20(%rbx) movq %rcx, 0x10(%rbx) movq (%rax), %rcx addq 0x8(%rax), %rcx movq %rcx, 0x18(%rbx) popq %rbx popq %r14 popq %r15 retq movl $0x10, %edi callq 0x21690 movq %rax, %r14 leaq 0x466e5(%rip), %rsi # 0x12ee0a movq %rax, %rdi callq 0x21450 movq 0x8988c(%rip), %rsi # 0x171fc0 movq 0x89845(%rip), %rdx # 0x171f80 movq %r14, %rdi callq 0x21ad0 movq %rax, %r15 jmp 0xe8753 movq %rax, %r15 movq %r14, %rdi callq 0x21f80 addq $0x8, %rbx movq %rbx, %rdi callq 0x7e132 movq %r15, %rdi callq 0x21b70 nop
_ZN5minja6ParserC2ERKSt10shared_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEERKNS_7OptionsE: push r15 push r14 push rbx mov rbx, rdi mov rax, [rsi] mov [rdi], rax mov rax, [rsi+8] mov [rdi+8], rax test rax, rax jz short loc_E86D0 mov rcx, cs:_ZTISt19_Sp_make_shared_tag; `typeinfo for'std::_Sp_make_shared_tag cmp byte ptr [rcx], 0 jz short loc_E86CC inc dword ptr [rax+8] jmp short loc_E86D0 loc_E86CC: lock inc dword ptr [rax+8] loc_E86D0: xorps xmm0, xmm0 movups xmmword ptr [rbx+10h], xmm0 mov qword ptr [rbx+20h], 0 mov al, [rdx+2] mov [rbx+2Ah], al movzx eax, word ptr [rdx] mov [rbx+28h], ax cmp qword ptr [rsi], 0 jz short loc_E8711 mov rax, [rbx] mov rcx, [rax] mov [rbx+20h], rcx mov [rbx+10h], rcx mov rcx, [rax] add rcx, [rax+8] mov [rbx+18h], rcx pop rbx pop r14 pop r15 retn loc_E8711: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aTemplateString; "Template string is null" mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, r14; void * call ___cxa_throw mov r15, rax jmp short loc_E8753 mov r15, rax mov rdi, r14; void * call ___cxa_free_exception loc_E8753: add rbx, 8 mov rdi, rbx call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() mov rdi, r15 call __Unwind_Resume
long long * minja::Parser::Parser(long long **a1, long long **a2, long long a3) { long long *v3; // rax long long *result; // rax long long *v5; // rcx std::runtime_error *exception; // r14 *a1 = *a2; v3 = a2[1]; a1[1] = v3; if ( v3 ) { if ( _libc_single_threaded ) ++*((_DWORD *)v3 + 2); else _InterlockedIncrement((volatile signed __int32 *)v3 + 2); } *((_OWORD *)a1 + 1) = 0LL; a1[4] = 0LL; *((_BYTE *)a1 + 42) = *(_BYTE *)(a3 + 2); *((_WORD *)a1 + 20) = *(_WORD *)a3; if ( !*a2 ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "Template string is null"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } result = *a1; v5 = (long long *)**a1; a1[4] = v5; a1[2] = v5; a1[3] = (long long *)(result[1] + *result); return result; }
Parser: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RDI MOV RAX,qword ptr [RSI] MOV qword ptr [RDI],RAX MOV RAX,qword ptr [RSI + 0x8] MOV qword ptr [RDI + 0x8],RAX TEST RAX,RAX JZ 0x001e86d0 MOV RCX,qword ptr [0x00271f98] CMP byte ptr [RCX],0x0 JZ 0x001e86cc INC dword ptr [RAX + 0x8] JMP 0x001e86d0 LAB_001e86cc: INC.LOCK dword ptr [RAX + 0x8] LAB_001e86d0: XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0x10],XMM0 MOV qword ptr [RBX + 0x20],0x0 MOV AL,byte ptr [RDX + 0x2] MOV byte ptr [RBX + 0x2a],AL MOVZX EAX,word ptr [RDX] MOV word ptr [RBX + 0x28],AX CMP qword ptr [RSI],0x0 JZ 0x001e8711 MOV RAX,qword ptr [RBX] MOV RCX,qword ptr [RAX] MOV qword ptr [RBX + 0x20],RCX MOV qword ptr [RBX + 0x10],RCX MOV RCX,qword ptr [RAX] ADD RCX,qword ptr [RAX + 0x8] MOV qword ptr [RBX + 0x18],RCX POP RBX POP R14 POP R15 RET LAB_001e8711: MOV EDI,0x10 CALL 0x00121690 MOV R14,RAX LAB_001e871e: LEA RSI,[0x22ee0a] MOV RDI,RAX CALL 0x00121450 LAB_001e872d: MOV RSI,qword ptr [0x00271fc0] MOV RDX,qword ptr [0x00271f80] MOV RDI,R14 CALL 0x00121ad0
/* minja::Parser::Parser(std::shared_ptr<std::__cxx11::string > const&, minja::Options const&) */ void __thiscall minja::Parser::Parser(Parser *this,shared_ptr *param_1,Options *param_2) { long lVar1; long *plVar2; runtime_error *this_00; *(int8 *)this = *(int8 *)param_1; lVar1 = *(long *)(param_1 + 8); *(long *)(this + 8) = lVar1; if (lVar1 != 0) { if (*PTR___libc_single_threaded_00271f98 == '\0') { LOCK(); *(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1; UNLOCK(); } else { *(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1; } } *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)(this + 0x20) = 0; *(Options *)(this + 0x2a) = param_2[2]; *(int2 *)(this + 0x28) = *(int2 *)param_2; if (*(long *)param_1 != 0) { plVar2 = *(long **)this; lVar1 = *plVar2; *(long *)(this + 0x20) = lVar1; *(long *)(this + 0x10) = lVar1; *(long *)(this + 0x18) = *plVar2 + plVar2[1]; return; } this_00 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001e871e to 001e872c has its CatchHandler @ 001e8748 */ std::runtime_error::runtime_error(this_00,"Template string is null"); /* try { // try from 001e872d to 001e8742 has its CatchHandler @ 001e8743 */ /* WARNING: Subroutine does not return */ __cxa_throw(this_00,PTR_typeinfo_00271fc0,PTR__runtime_error_00271f80); }
49,345
linenoiseBlockingEdit(int, int, char*, unsigned long, char const*)
ericcurtin[P]linenoise/linenoise.cpp
static const char * linenoiseBlockingEdit(int stdin_fd, int stdout_fd, char * buf, size_t buflen, const char * prompt) { struct linenoiseState l; /* Editing without a buffer is invalid. */ if (buflen == 0) { errno = EINVAL; return NULL; } linenoiseEditStart(&l, stdin_fd, stdout_fd, buf, buflen, prompt); const char * res; while ((res = linenoiseEditFeed(&l)) == linenoiseEditMore) ; linenoiseEditStop(&l); return res; }
O0
cpp
linenoiseBlockingEdit(int, int, char*, unsigned long, char const*): pushq %rbp movq %rsp, %rbp subq $0xa0, %rsp movl %edi, -0xc(%rbp) movl %esi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) cmpq $0x0, -0x20(%rbp) jne 0x4ac9 callq 0x2040 movl $0x16, (%rax) movq $0x0, -0x8(%rbp) jmp 0x4b1c movl -0xc(%rbp), %esi movl -0x10(%rbp), %edx movq -0x18(%rbp), %rcx movq -0x20(%rbp), %r8 movq -0x28(%rbp), %r9 leaq -0x90(%rbp), %rdi callq 0x3b50 leaq -0x90(%rbp), %rdi callq 0x4010 movq %rax, -0x98(%rbp) cmpq 0xb76f(%rip), %rax # 0x10270 jne 0x4b05 jmp 0x4ae7 leaq -0x90(%rbp), %rdi callq 0x46e0 movq -0x98(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0xa0, %rsp popq %rbp retq nopl (%rax)
_ZL21linenoiseBlockingEditiiPcmPKc: push rbp mov rbp, rsp sub rsp, 0A0h mov [rbp+var_C], edi mov [rbp+var_10], esi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_28], r8 cmp [rbp+var_20], 0 jnz short loc_4AC9 call ___errno_location mov dword ptr [rax], 16h mov [rbp+var_8], 0 jmp short loc_4B1C loc_4AC9: mov esi, [rbp+var_C] mov edx, [rbp+var_10] mov rcx, [rbp+var_18] mov r8, [rbp+var_20] mov r9, [rbp+var_28] lea rdi, [rbp+var_90] call linenoiseEditStart loc_4AE7: lea rdi, [rbp+var_90] call linenoiseEditFeed mov [rbp+var_98], rax cmp rax, cs:linenoiseEditMore jnz short loc_4B05 jmp short loc_4AE7 loc_4B05: lea rdi, [rbp+var_90] call linenoiseEditStop mov rax, [rbp+var_98] mov [rbp+var_8], rax loc_4B1C: mov rax, [rbp+var_8] add rsp, 0A0h pop rbp retn
char * linenoiseBlockingEdit(int a1, int a2, char *a3, long long a4, const char *a5) { char *v6; // [rsp+8h] [rbp-98h] _DWORD v7[26]; // [rsp+10h] [rbp-90h] BYREF const char *v8; // [rsp+78h] [rbp-28h] long long v9; // [rsp+80h] [rbp-20h] char *v10; // [rsp+88h] [rbp-18h] int v11; // [rsp+90h] [rbp-10h] int v12; // [rsp+94h] [rbp-Ch] v12 = a1; v11 = a2; v10 = a3; v9 = a4; v8 = a5; if ( a4 ) { linenoiseEditStart((long long)v7, v12, v11, (long long)v10, v9, (long long)v8); do v6 = linenoiseEditFeed(v7); while ( v6 == linenoiseEditMore ); linenoiseEditStop((long long)v7); return v6; } else { *(_DWORD *)__errno_location() = 22; return 0LL; } }
linenoiseBlockingEdit: PUSH RBP MOV RBP,RSP SUB RSP,0xa0 MOV dword ptr [RBP + -0xc],EDI MOV dword ptr [RBP + -0x10],ESI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 CMP qword ptr [RBP + -0x20],0x0 JNZ 0x00104ac9 CALL 0x00102040 MOV dword ptr [RAX],0x16 MOV qword ptr [RBP + -0x8],0x0 JMP 0x00104b1c LAB_00104ac9: MOV ESI,dword ptr [RBP + -0xc] MOV EDX,dword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x18] MOV R8,qword ptr [RBP + -0x20] MOV R9,qword ptr [RBP + -0x28] LEA RDI,[RBP + -0x90] CALL 0x00103b50 LAB_00104ae7: LEA RDI,[RBP + -0x90] CALL 0x00104010 MOV qword ptr [RBP + -0x98],RAX CMP RAX,qword ptr [0x00110270] JNZ 0x00104b05 JMP 0x00104ae7 LAB_00104b05: LEA RDI,[RBP + -0x90] CALL 0x001046e0 MOV RAX,qword ptr [RBP + -0x98] MOV qword ptr [RBP + -0x8],RAX LAB_00104b1c: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0xa0 POP RBP RET
/* linenoiseBlockingEdit(int, int, char*, unsigned long, char const*) */ int * linenoiseBlockingEdit(int param_1,int param_2,char *param_3,ulong param_4,char *param_5) { int *piVar1; int1 local_98 [104]; char *local_30; ulong local_28; char *local_20; int local_18; int local_14; int *local_10; local_30 = param_5; local_28 = param_4; local_20 = param_3; local_18 = param_2; local_14 = param_1; if (param_4 == 0) { piVar1 = __errno_location(); *piVar1 = 0x16; local_10 = (int *)0x0; } else { linenoiseEditStart(local_98,param_1,param_2,param_3,param_4,param_5); do { local_10 = (int *)linenoiseEditFeed(local_98); } while (local_10 == linenoiseEditMore); linenoiseEditStop(local_98); } return local_10; }
49,346
js_os_readdir
bluesky950520[P]quickjs/quickjs-libc.c
static JSValue js_os_readdir(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { const char *path; DIR *f; struct dirent *d; JSValue obj; int err; uint32_t len; path = JS_ToCString(ctx, argv[0]); if (!path) return JS_EXCEPTION; obj = JS_NewArray(ctx); if (JS_IsException(obj)) { JS_FreeCString(ctx, path); return JS_EXCEPTION; } f = opendir(path); if (!f) err = errno; else err = 0; JS_FreeCString(ctx, path); if (!f) goto done; len = 0; for(;;) { errno = 0; d = readdir(f); if (!d) { err = errno; break; } JS_DefinePropertyValueUint32(ctx, obj, len++, JS_NewString(ctx, d->d_name), JS_PROP_C_W_E); } closedir(f); done: return make_obj_error(ctx, obj, err); }
O0
c
js_os_readdir: subq $0xa8, %rsp movq %rsi, 0x88(%rsp) movq %rdx, 0x90(%rsp) movq %rdi, 0x80(%rsp) movl %ecx, 0x7c(%rsp) movq %r8, 0x70(%rsp) movq 0x80(%rsp), %rdi movq 0x70(%rsp), %rax movq (%rax), %rsi movq 0x8(%rax), %rdx callq 0x1aad0 movq %rax, 0x68(%rsp) cmpq $0x0, 0x68(%rsp) jne 0x1fdca movl $0x0, 0x98(%rsp) movq $0x6, 0xa0(%rsp) jmp 0x1ff58 movq 0x80(%rsp), %rdi callq 0x30810 movq %rax, 0x30(%rsp) movq %rdx, 0x38(%rsp) movq 0x30(%rsp), %rax movq %rax, 0x48(%rsp) movq 0x38(%rsp), %rax movq %rax, 0x50(%rsp) movq 0x48(%rsp), %rdi movq 0x50(%rsp), %rsi callq 0x16680 cmpl $0x0, %eax je 0x1fe37 movq 0x80(%rsp), %rdi movq 0x68(%rsp), %rsi callq 0x30140 movl $0x0, 0x98(%rsp) movq $0x6, 0xa0(%rsp) jmp 0x1ff58 movq 0x68(%rsp), %rdi callq 0xe250 movq %rax, 0x60(%rsp) cmpq $0x0, 0x60(%rsp) jne 0x1fe5b callq 0xe0b0 movl (%rax), %eax movl %eax, 0x44(%rsp) jmp 0x1fe63 movl $0x0, 0x44(%rsp) movq 0x80(%rsp), %rdi movq 0x68(%rsp), %rsi callq 0x30140 cmpq $0x0, 0x60(%rsp) jne 0x1fe82 jmp 0x1ff2d movl $0x0, 0x40(%rsp) callq 0xe0b0 movl $0x0, (%rax) movq 0x60(%rsp), %rdi callq 0xe680 movq %rax, 0x58(%rsp) cmpq $0x0, 0x58(%rsp) jne 0x1feb9 callq 0xe0b0 movl (%rax), %eax movl %eax, 0x44(%rsp) jmp 0x1ff23 movq 0x80(%rsp), %rax movq %rax, 0x10(%rsp) movl 0x40(%rsp), %eax movl %eax, 0x1c(%rsp) addl $0x1, %eax movl %eax, 0x40(%rsp) movq 0x80(%rsp), %rdi movq 0x58(%rsp), %rsi addq $0x13, %rsi callq 0x166a0 movq 0x10(%rsp), %rdi movl 0x1c(%rsp), %ecx movq %rax, 0x20(%rsp) movq %rdx, 0x28(%rsp) movq 0x48(%rsp), %rsi movq 0x50(%rsp), %rdx movq 0x20(%rsp), %r8 movq 0x28(%rsp), %r9 movl $0x7, (%rsp) callq 0x3d660 jmp 0x1fe8a movq 0x60(%rsp), %rdi callq 0xe430 movq 0x80(%rsp), %rdi movl 0x44(%rsp), %ecx movq 0x48(%rsp), %rsi movq 0x50(%rsp), %rdx callq 0x23250 movq %rax, 0x98(%rsp) movq %rdx, 0xa0(%rsp) movq 0x98(%rsp), %rax movq 0xa0(%rsp), %rdx addq $0xa8, %rsp retq
js_os_readdir: sub rsp, 0A8h mov [rsp+0A8h+var_20], rsi mov [rsp+0A8h+var_18], rdx mov [rsp+0A8h+var_28], rdi mov [rsp+0A8h+var_2C], ecx mov [rsp+0A8h+var_38], r8 mov rdi, [rsp+0A8h+var_28] mov rax, [rsp+0A8h+var_38] mov rsi, [rax] mov rdx, [rax+8] call JS_ToCString_0 mov [rsp+0A8h+var_40], rax cmp [rsp+0A8h+var_40], 0 jnz short loc_1FDCA mov dword ptr [rsp+0A8h+var_10], 0 mov [rsp+0A8h+var_8], 6 jmp loc_1FF58 loc_1FDCA: mov rdi, [rsp+0A8h+var_28] call JS_NewArray mov [rsp+0A8h+var_78], rax mov [rsp+0A8h+var_70], rdx mov rax, [rsp+0A8h+var_78] mov [rsp+0A8h+var_60], rax mov rax, [rsp+0A8h+var_70] mov [rsp+0A8h+var_58], rax mov rdi, [rsp+0A8h+var_60] mov rsi, [rsp+0A8h+var_58] call JS_IsException_0 cmp eax, 0 jz short loc_1FE37 mov rdi, [rsp+0A8h+var_28] mov rsi, [rsp+0A8h+var_40] call JS_FreeCString mov dword ptr [rsp+0A8h+var_10], 0 mov [rsp+0A8h+var_8], 6 jmp loc_1FF58 loc_1FE37: mov rdi, [rsp+0A8h+var_40] call _opendir mov [rsp+0A8h+var_48], rax cmp [rsp+0A8h+var_48], 0 jnz short loc_1FE5B call ___errno_location mov eax, [rax] mov [rsp+0A8h+var_64], eax jmp short loc_1FE63 loc_1FE5B: mov [rsp+0A8h+var_64], 0 loc_1FE63: mov rdi, [rsp+0A8h+var_28] mov rsi, [rsp+0A8h+var_40] call JS_FreeCString cmp [rsp+0A8h+var_48], 0 jnz short loc_1FE82 jmp loc_1FF2D loc_1FE82: mov [rsp+0A8h+var_68], 0 loc_1FE8A: call ___errno_location mov dword ptr [rax], 0 mov rdi, [rsp+0A8h+var_48] call _readdir mov [rsp+0A8h+var_50], rax cmp [rsp+0A8h+var_50], 0 jnz short loc_1FEB9 call ___errno_location mov eax, [rax] mov [rsp+0A8h+var_64], eax jmp short loc_1FF23 loc_1FEB9: mov rax, [rsp+0A8h+var_28] mov [rsp+0A8h+var_98], rax mov eax, [rsp+0A8h+var_68] mov [rsp+0A8h+var_8C], eax add eax, 1 mov [rsp+0A8h+var_68], eax mov rdi, [rsp+0A8h+var_28] mov rsi, [rsp+0A8h+var_50] add rsi, 13h call JS_NewString_0 mov rdi, [rsp+0A8h+var_98] mov ecx, [rsp+0A8h+var_8C] mov [rsp+0A8h+var_88], rax mov [rsp+0A8h+var_80], rdx mov rsi, [rsp+0A8h+var_60] mov rdx, [rsp+0A8h+var_58] mov r8, [rsp+0A8h+var_88] mov r9, [rsp+0A8h+var_80] mov [rsp+0A8h+var_A8], 7 call JS_DefinePropertyValueUint32 jmp loc_1FE8A loc_1FF23: mov rdi, [rsp+0A8h+var_48] call _closedir loc_1FF2D: mov rdi, [rsp+0A8h+var_28] mov ecx, [rsp+0A8h+var_64] mov rsi, [rsp+0A8h+var_60] mov rdx, [rsp+0A8h+var_58] call make_obj_error mov [rsp+0A8h+var_10], rax mov [rsp+0A8h+var_8], rdx loc_1FF58: mov rax, [rsp+0A8h+var_10] mov rdx, [rsp+0A8h+var_8] add rsp, 0A8h retn
long long js_os_readdir(long long a1, long long a2, long long a3, long long a4, long long *a5, long long a6) { long long v6; // rdx int v7; // edx int v9; // [rsp+1Ch] [rbp-8Ch] int v10; // [rsp+20h] [rbp-88h] long long v11; // [rsp+30h] [rbp-78h] int i; // [rsp+40h] [rbp-68h] unsigned int v13; // [rsp+44h] [rbp-64h] long long v14; // [rsp+50h] [rbp-58h] long long v15; // [rsp+58h] [rbp-50h] long long v16; // [rsp+60h] [rbp-48h] long long v17; // [rsp+68h] [rbp-40h] long long v18; // [rsp+98h] [rbp-10h] v17 = JS_ToCString_0(a1, *a5, a5[1], a4, (long long)a5, a6); if ( v17 ) { v11 = JS_NewArray(a1); v14 = v6; if ( JS_IsException_0(v11, v6) ) { JS_FreeCString(a1, v17); LODWORD(v18) = 0; } else { v16 = opendir(v17); if ( v16 ) v13 = 0; else v13 = *(_DWORD *)__errno_location(); JS_FreeCString(a1, v17); if ( v16 ) { for ( i = 0; ; ++i ) { *(_DWORD *)__errno_location() = 0; v15 = readdir(v16); if ( !v15 ) break; v9 = i; v10 = JS_NewString_0(a1, v15 + 19); JS_DefinePropertyValueUint32(a1, v11, v14, v9, v10, v7, 7); } v13 = *(_DWORD *)__errno_location(); closedir(v16); } return make_obj_error(a1, v11, v14, v13); } } else { LODWORD(v18) = 0; } return v18; }
js_os_readdir: SUB RSP,0xa8 MOV qword ptr [RSP + 0x88],RSI MOV qword ptr [RSP + 0x90],RDX MOV qword ptr [RSP + 0x80],RDI MOV dword ptr [RSP + 0x7c],ECX MOV qword ptr [RSP + 0x70],R8 MOV RDI,qword ptr [RSP + 0x80] MOV RAX,qword ptr [RSP + 0x70] MOV RSI,qword ptr [RAX] MOV RDX,qword ptr [RAX + 0x8] CALL 0x0011aad0 MOV qword ptr [RSP + 0x68],RAX CMP qword ptr [RSP + 0x68],0x0 JNZ 0x0011fdca MOV dword ptr [RSP + 0x98],0x0 MOV qword ptr [RSP + 0xa0],0x6 JMP 0x0011ff58 LAB_0011fdca: MOV RDI,qword ptr [RSP + 0x80] CALL 0x00130810 MOV qword ptr [RSP + 0x30],RAX MOV qword ptr [RSP + 0x38],RDX MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x48],RAX MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x50],RAX MOV RDI,qword ptr [RSP + 0x48] MOV RSI,qword ptr [RSP + 0x50] CALL 0x00116680 CMP EAX,0x0 JZ 0x0011fe37 MOV RDI,qword ptr [RSP + 0x80] MOV RSI,qword ptr [RSP + 0x68] CALL 0x00130140 MOV dword ptr [RSP + 0x98],0x0 MOV qword ptr [RSP + 0xa0],0x6 JMP 0x0011ff58 LAB_0011fe37: MOV RDI,qword ptr [RSP + 0x68] CALL 0x0010e250 MOV qword ptr [RSP + 0x60],RAX CMP qword ptr [RSP + 0x60],0x0 JNZ 0x0011fe5b CALL 0x0010e0b0 MOV EAX,dword ptr [RAX] MOV dword ptr [RSP + 0x44],EAX JMP 0x0011fe63 LAB_0011fe5b: MOV dword ptr [RSP + 0x44],0x0 LAB_0011fe63: MOV RDI,qword ptr [RSP + 0x80] MOV RSI,qword ptr [RSP + 0x68] CALL 0x00130140 CMP qword ptr [RSP + 0x60],0x0 JNZ 0x0011fe82 JMP 0x0011ff2d LAB_0011fe82: MOV dword ptr [RSP + 0x40],0x0 LAB_0011fe8a: CALL 0x0010e0b0 MOV dword ptr [RAX],0x0 MOV RDI,qword ptr [RSP + 0x60] CALL 0x0010e680 MOV qword ptr [RSP + 0x58],RAX CMP qword ptr [RSP + 0x58],0x0 JNZ 0x0011feb9 CALL 0x0010e0b0 MOV EAX,dword ptr [RAX] MOV dword ptr [RSP + 0x44],EAX JMP 0x0011ff23 LAB_0011feb9: MOV RAX,qword ptr [RSP + 0x80] MOV qword ptr [RSP + 0x10],RAX MOV EAX,dword ptr [RSP + 0x40] MOV dword ptr [RSP + 0x1c],EAX ADD EAX,0x1 MOV dword ptr [RSP + 0x40],EAX MOV RDI,qword ptr [RSP + 0x80] MOV RSI,qword ptr [RSP + 0x58] ADD RSI,0x13 CALL 0x001166a0 MOV RDI,qword ptr [RSP + 0x10] MOV ECX,dword ptr [RSP + 0x1c] MOV qword ptr [RSP + 0x20],RAX MOV qword ptr [RSP + 0x28],RDX MOV RSI,qword ptr [RSP + 0x48] MOV RDX,qword ptr [RSP + 0x50] MOV R8,qword ptr [RSP + 0x20] MOV R9,qword ptr [RSP + 0x28] MOV dword ptr [RSP],0x7 CALL 0x0013d660 JMP 0x0011fe8a LAB_0011ff23: MOV RDI,qword ptr [RSP + 0x60] CALL 0x0010e430 LAB_0011ff2d: MOV RDI,qword ptr [RSP + 0x80] MOV ECX,dword ptr [RSP + 0x44] MOV RSI,qword ptr [RSP + 0x48] MOV RDX,qword ptr [RSP + 0x50] CALL 0x00123250 MOV qword ptr [RSP + 0x98],RAX MOV qword ptr [RSP + 0xa0],RDX LAB_0011ff58: MOV RAX,qword ptr [RSP + 0x98] MOV RDX,qword ptr [RSP + 0xa0] ADD RSP,0xa8 RET
int1 [16] js_os_readdir(int8 param_1) { int iVar1; char *__name; DIR *__dirp; int *piVar3; dirent *pdVar4; int8 *in_R8; int1 auVar6 [16]; int local_68; int local_64; int4 local_10; int4 uStack_c; int8 local_8; int8 uVar2; int8 uVar5; __name = (char *)JS_ToCString(param_1,*in_R8,in_R8[1]); if (__name == (char *)0x0) { local_10 = 0; local_8 = 6; } else { auVar6 = JS_NewArray(param_1); uVar5 = auVar6._8_8_; uVar2 = auVar6._0_8_; iVar1 = JS_IsException(uVar2,uVar5); if (iVar1 == 0) { __dirp = opendir(__name); if (__dirp == (DIR *)0x0) { piVar3 = __errno_location(); local_64 = *piVar3; } else { local_64 = 0; } JS_FreeCString(param_1,__name); if (__dirp != (DIR *)0x0) { local_68 = 0; while( true ) { piVar3 = __errno_location(); *piVar3 = 0; pdVar4 = readdir(__dirp); if (pdVar4 == (dirent *)0x0) break; auVar6 = JS_NewString(param_1,pdVar4->d_name); JS_DefinePropertyValueUint32(param_1,uVar2,uVar5,local_68,auVar6._0_8_,auVar6._8_8_,7); local_68 = local_68 + 1; } piVar3 = __errno_location(); local_64 = *piVar3; closedir(__dirp); } auVar6 = make_obj_error(param_1,uVar2,uVar5,local_64); local_8 = auVar6._8_8_; local_10 = auVar6._0_4_; uStack_c = auVar6._4_4_; } else { JS_FreeCString(param_1,__name); local_10 = 0; local_8 = 6; } } auVar6._4_4_ = uStack_c; auVar6._0_4_ = local_10; auVar6._8_8_ = local_8; return auVar6; }
49,347
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>> 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>::insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&>(nlohmann::json_abi_v3_11_3::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>, 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 insert_iterator(const_iterator pos, Args&& ... args) { iterator result(this); JSON_ASSERT(m_data.m_value.array != nullptr); auto insert_pos = std::distance(m_data.m_value.array->begin(), pos.m_it.array_iterator); m_data.m_value.array->insert(pos.m_it.array_iterator, std::forward<Args>(args)...); result.m_it.array_iterator = m_data.m_value.array->begin() + insert_pos; // This could have been written as: // result.m_it.array_iterator = m_data.m_value.array->insert(pos.m_it.array_iterator, cnt, val); // but the return value of insert is missing in GCC 4.8, so it is written this way instead. set_parents(); return result; }
O0
cpp
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>> 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>::insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&>(nlohmann::json_abi_v3_11_3::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>, 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 $0x88, %rsp movq %rdx, 0x10(%rsp) movq %rdi, 0x18(%rsp) movq %rdi, %rax movq %rax, 0x20(%rsp) movq %rdi, 0x80(%rsp) movq %rsi, 0x78(%rsp) movq %rdx, 0x70(%rsp) movq %rcx, 0x68(%rsp) movq 0x78(%rsp), %rsi movq %rsi, 0x28(%rsp) callq 0xd66a0 movq 0x28(%rsp), %rax cmpq $0x0, 0x8(%rax) jne 0x18b94c leaq 0xa1bd5(%rip), %rdi # 0x22d507 movl $0x582c, %esi # imm = 0x582C leaq 0x9b397(%rip), %rdx # 0x226cd5 leaq 0xa1ca0(%rip), %rcx # 0x22d5e5 movb $0x0, %al callq 0x5ef80 movq 0x28(%rsp), %rax movq 0x8(%rax), %rdi callq 0xd0b00 movq %rax, %rcx movq 0x10(%rsp), %rax movq %rcx, 0x58(%rsp) movq 0x10(%rax), %rax movq %rax, 0x50(%rsp) movq 0x58(%rsp), %rdi movq 0x50(%rsp), %rsi callq 0x18bad0 movq 0x10(%rsp), %rsi movq %rax, %rcx movq 0x28(%rsp), %rax movq %rcx, 0x60(%rsp) movq 0x8(%rax), %rax movq %rax, 0x8(%rsp) addq $0x8, %rsi addq $0x8, %rsi leaq 0x48(%rsp), %rdi callq 0xd70c0 movq 0x8(%rsp), %rdi movq 0x68(%rsp), %rdx movq 0x48(%rsp), %rsi callq 0x18bb10 movq %rax, %rcx movq 0x28(%rsp), %rax movq %rcx, 0x40(%rsp) movq 0x8(%rax), %rdi callq 0xd0b00 movq %rax, 0x30(%rsp) movq 0x60(%rsp), %rsi leaq 0x30(%rsp), %rdi callq 0xd80e0 movq 0x28(%rsp), %rdi movq %rax, %rcx movq 0x18(%rsp), %rax movq %rcx, 0x38(%rsp) movq 0x38(%rsp), %rcx movq %rcx, 0x10(%rax) callq 0xd0770 movq 0x20(%rsp), %rax addq $0x88, %rsp retq nopw (%rax,%rax)
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE15insert_iteratorIJRKSD_EEENS0_6detail9iter_implISD_EENSI_ISF_EEDpOT_: sub rsp, 88h mov [rsp+88h+var_78], rdx mov [rsp+88h+var_70], rdi mov rax, rdi mov [rsp+88h+var_68], rax mov [rsp+88h+var_8], rdi mov [rsp+88h+var_10], rsi mov [rsp+88h+var_18], rdx mov [rsp+88h+var_20], rcx mov rsi, [rsp+88h+var_10] mov [rsp+88h+var_60], rsi call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2EPSF_; 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::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>*) mov rax, [rsp+88h+var_60] cmp qword ptr [rax+8], 0 jnz short loc_18B94C lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... mov esi, 582Ch lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aMDataMTypeValu_0+23h; "m_data.m_value.array != nullptr" mov al, 0 call _ggml_abort loc_18B94C: mov rax, [rsp+88h+var_60] mov rdi, [rax+8] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE5beginEv; 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>>::begin(void) mov rcx, rax mov rax, [rsp+88h+var_78] mov [rsp+88h+var_30], rcx mov rax, [rax+10h] mov [rsp+88h+var_38], rax mov rdi, [rsp+88h+var_30] mov rsi, [rsp+88h+var_38] call _ZSt8distanceIN9__gnu_cxx17__normal_iteratorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEES6_ISG_SaISG_EEEEENSt15iterator_traitsIT_E15difference_typeESM_SM_; std::distance<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>) mov rsi, [rsp+88h+var_78] mov rcx, rax mov rax, [rsp+88h+var_60] mov [rsp+88h+var_28], rcx mov rax, [rax+8] mov [rsp+88h+var_80], rax add rsi, 8 add rsi, 8 lea rdi, [rsp+88h+var_40] call _ZN9__gnu_cxx17__normal_iteratorIPKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEES5_ISF_SaISF_EEEC2IPSF_EERKNS0_IT_NS_11__enable_ifIXsr3std10__are_sameISN_SM_EE7__valueESJ_E6__typeEEE mov rdi, [rsp+88h+var_80] mov rdx, [rsp+88h+var_20] mov rsi, [rsp+88h+var_40] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE6insertEN9__gnu_cxx17__normal_iteratorIPKSD_SF_EERSI_; 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>>::insert(__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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*,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>>>,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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 rcx, rax mov rax, [rsp+88h+var_60] mov [rsp+88h+var_48], rcx mov rdi, [rax+8] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE5beginEv; 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>>::begin(void) mov [rsp+88h+var_58], rax mov rsi, [rsp+88h+var_28] lea rdi, [rsp+88h+var_58] call _ZNK9__gnu_cxx17__normal_iteratorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEES5_ISF_SaISF_EEEplEl; __gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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+(long) mov rdi, [rsp+88h+var_60] mov rcx, rax mov rax, [rsp+88h+var_70] mov [rsp+88h+var_50], rcx mov rcx, [rsp+88h+var_50] mov [rax+10h], rcx 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) mov rax, [rsp+88h+var_68] add rsp, 88h retn
_QWORD * 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>::insert_iterator<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&>( _QWORD *a1, long long a2, long long a3, long long a4) { int v4; // ecx int v5; // r8d int v6; // r9d long long v8; // [rsp+8h] [rbp-80h] long long v10; // [rsp+30h] [rbp-58h] BYREF long long v11; // [rsp+38h] [rbp-50h] long long v12; // [rsp+40h] [rbp-48h] long long v13; // [rsp+48h] [rbp-40h] BYREF long long v14; // [rsp+50h] [rbp-38h] long long v15; // [rsp+58h] [rbp-30h] long long v16; // [rsp+60h] [rbp-28h] long long v17; // [rsp+68h] [rbp-20h] long long v18; // [rsp+70h] [rbp-18h] long long v19; // [rsp+78h] [rbp-10h] _QWORD *v20; // [rsp+80h] [rbp-8h] v20 = a1; v19 = a2; v18 = a3; v17 = a4; 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>>::iter_impl( a1, a2); if ( !*(_QWORD *)(a2 + 8) ) ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 22572LL, "GGML_ASSERT(%s) failed", "m_data.m_value.array != nullptr"); v15 = 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>>::begin(*(_QWORD *)(a2 + 8)); v14 = *(_QWORD *)(a3 + 16); v16 = std::distance<__gnu_cxx::__normal_iterator<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<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>>>>( v15, v14); v8 = *(_QWORD *)(a2 + 8); __gnu_cxx::__normal_iterator<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*,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>>>::__normal_iterator<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>*>( &v13, a3 + 16); v12 = 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>>::insert( v8, v13, v17, v4, v5, v6); v10 = 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>>::begin(*(_QWORD *)(a2 + 8)); v11 = __gnu_cxx::__normal_iterator<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<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+( &v10, v16); a1[2] = v11; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::set_parents(); return a1; }
49,348
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>> 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>::insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&>(nlohmann::json_abi_v3_11_3::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>, 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 insert_iterator(const_iterator pos, Args&& ... args) { iterator result(this); JSON_ASSERT(m_data.m_value.array != nullptr); auto insert_pos = std::distance(m_data.m_value.array->begin(), pos.m_it.array_iterator); m_data.m_value.array->insert(pos.m_it.array_iterator, std::forward<Args>(args)...); result.m_it.array_iterator = m_data.m_value.array->begin() + insert_pos; // This could have been written as: // result.m_it.array_iterator = m_data.m_value.array->insert(pos.m_it.array_iterator, cnt, val); // but the return value of insert is missing in GCC 4.8, so it is written this way instead. set_parents(); return result; }
O2
cpp
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>> 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>::insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&>(nlohmann::json_abi_v3_11_3::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>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&): pushq %r15 pushq %r14 pushq %rbx movq %rdi, %rbx movq %rsi, (%rdi) andq $0x0, 0x8(%rdi) movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000 movq %rax, 0x18(%rdi) movq 0x8(%rsi), %rdi testq %rdi, %rdi je 0x899ce movq %rsi, %r14 movq 0x10(%rdx), %rsi movq %rsi, %r15 subq (%rdi), %r15 movq %rcx, %rdx callq 0x89a4e movq 0x8(%r14), %rax addq (%rax), %r15 movq %r15, 0x10(%rbx) movq %rbx, %rax popq %rbx popq %r14 popq %r15 retq leaq 0x32582(%rip), %rdi # 0xbbf57 leaq 0x2c114(%rip), %rdx # 0xb5af0 leaq 0x32646(%rip), %rcx # 0xbc029 movl $0x582c, %esi # imm = 0x582C xorl %eax, %eax callq 0x24f20
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE15insert_iteratorIJRKSD_EEENS0_6detail9iter_implISD_EENSI_ISF_EEDpOT_: push r15 push r14 push rbx mov rbx, rdi mov [rdi], rsi and qword ptr [rdi+8], 0 mov rax, 8000000000000000h mov [rdi+18h], rax mov rdi, [rsi+8] test rdi, rdi jz short loc_899CE mov r14, rsi mov rsi, [rdx+10h] mov r15, rsi sub r15, [rdi] mov rdx, rcx call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE6insertEN9__gnu_cxx17__normal_iteratorIPKSD_SF_EERSI_; 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>>::insert(__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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*,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>>>,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) mov rax, [r14+8] add r15, [rax] mov [rbx+10h], r15 mov rax, rbx pop rbx pop r14 pop r15 retn loc_899CE: lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aMDataMTypeValu_0+23h; "m_data.m_value.array != nullptr" mov esi, 582Ch xor eax, eax call _ggml_abort
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::insert_iterator<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&>( _QWORD *a1, long long a2, long long a3, long long a4) { _QWORD *v5; // rdi long long v6; // r15 *a1 = a2; a1[1] = 0LL; a1[3] = 0x8000000000000000LL; v5 = *(_QWORD **)(a2 + 8); if ( v5 ) { v6 = *(_QWORD *)(a3 + 16) - *v5; 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>>::insert( v5, *(_QWORD *)(a3 + 16), a4); a1[2] = **(_QWORD **)(a2 + 8) + v6; return (long long)a1; } else { ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 22572LL, "GGML_ASSERT(%s) failed", "m_data.m_value.array != nullptr"); return nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[26],char const*>( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 22572LL); } }
insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const&>: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RDI MOV qword ptr [RDI],RSI AND qword ptr [RDI + 0x8],0x0 MOV RAX,-0x8000000000000000 MOV qword ptr [RDI + 0x18],RAX MOV RDI,qword ptr [RSI + 0x8] TEST RDI,RDI JZ 0x001899ce MOV R14,RSI MOV RSI,qword ptr [RDX + 0x10] MOV R15,RSI SUB R15,qword ptr [RDI] MOV RDX,RCX CALL 0x00189a4e MOV RAX,qword ptr [R14 + 0x8] ADD R15,qword ptr [RAX] MOV qword ptr [RBX + 0x10],R15 MOV RAX,RBX POP RBX POP R14 POP R15 RET LAB_001899ce: LEA RDI,[0x1bbf57] LEA RDX,[0x1b5af0] LEA RCX,[0x1bc029] MOV ESI,0x582c XOR EAX,EAX CALL 0x00124f20
/* 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> > nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>::insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const&>(nlohmann::json_abi_v3_11_3::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>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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&) */ long * nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> :: insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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&> (long *param_1,long param_2,long param_3,int8 param_4) { 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>>> *pvVar1; long lVar2; long lVar3; *param_1 = param_2; param_1[1] = 0; param_1[3] = -0x8000000000000000; pvVar1 = *(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>>> **)(param_2 + 8); if (pvVar1 != (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>>> *)0x0) { lVar2 = *(long *)(param_3 + 0x10); lVar3 = *(long *)pvVar1; 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>>> ::insert(pvVar1,lVar2,param_4); param_1[2] = (lVar2 - lVar3) + **(long **)(param_2 + 8); return param_1; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x582c, "GGML_ASSERT(%s) failed","m_data.m_value.array != nullptr"); }
49,349
apply(minja::chat_template const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&)
llama.cpp/common/chat.cpp
static std::string apply( const common_chat_template & tmpl, const nlohmann::ordered_json & messages, const nlohmann::ordered_json & tools, bool add_generation_prompt, const nlohmann::ordered_json & extra_context = nlohmann::ordered_json()) { minja::chat_template_inputs tmpl_inputs; tmpl_inputs.messages = messages; tmpl_inputs.tools = tools; tmpl_inputs.add_generation_prompt = add_generation_prompt; tmpl_inputs.extra_context = extra_context; // TODO: add flag to control date/time, if only for testing purposes. // tmpl_inputs.now = std::chrono::system_clock::now(); minja::chat_template_options tmpl_opts; // To avoid double BOS / EOS tokens, we're manually removing begining / trailing tokens // instead of using `chat_template_options.use_bos_token = false`, since these tokens // may be needed inside the template / between messages too. auto result = tmpl.apply(tmpl_inputs, tmpl_opts); if (string_starts_with(result, tmpl.bos_token())) { result = result.substr(tmpl.bos_token().size()); } if (string_ends_with(result, tmpl.eos_token())) { result = result.substr(0, result.size() - tmpl.eos_token().size()); } return result; }
O3
cpp
apply(minja::chat_template const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xb8, %rsp movq %r9, 0x8(%rsp) movl %r8d, 0x4(%rsp) movq %rcx, 0x10(%rsp) movq %rdx, %rbp movq %rsi, %r12 movq %rdi, %rbx xorl %r13d, %r13d leaq 0x68(%rsp), %r14 movb %r13b, (%r14) movq %r13, 0x8(%r14) movq %r14, %rdi movl $0x1, %esi callq 0x732fc movq %r14, %rdi movl $0x1, %esi callq 0x732fc leaq 0x78(%rsp), %r15 movb %r13b, (%r15) movq %r13, 0x8(%r15) movq %r15, %rdi movl $0x1, %esi callq 0x732fc movq %r15, %rdi movl $0x1, %esi callq 0x732fc movb $0x1, 0x10(%r15) leaq 0x90(%rsp), %r14 movb %r13b, (%r14) movq %r13, 0x8(%r14) movq %r14, %rdi movl $0x1, %esi callq 0x732fc movq %r14, %rdi movl $0x1, %esi callq 0x732fc callq 0x1c8d0 movq %rax, 0x10(%r14) leaq 0x58(%rsp), %rdi movq %rbp, %rsi callq 0x2fd1c leaq 0x68(%rsp), %rdi leaq 0x58(%rsp), %rbp movq %rbp, %rsi callq 0x6831a movq %rbp, %rdi xorl %esi, %esi callq 0x732fc movq %rbp, %rdi callq 0x300e0 leaq 0x48(%rsp), %rdi movq 0x10(%rsp), %rsi callq 0x2fd1c leaq 0x48(%rsp), %r13 movq %r15, %rdi movq %r13, %rsi callq 0x6831a movq %r13, %rdi xorl %esi, %esi callq 0x732fc movq %r13, %rdi callq 0x300e0 movl 0x4(%rsp), %eax movb %al, 0x88(%rsp) leaq 0x38(%rsp), %rdi movq 0x8(%rsp), %rsi callq 0x2fd1c leaq 0x38(%rsp), %r13 movq %r14, %rdi movq %r13, %rsi callq 0x6831a movq %r13, %rdi xorl %esi, %esi callq 0x732fc movq %r13, %rdi callq 0x300e0 movabsq $0x101010101010101, %rax # imm = 0x101010101010101 leaq 0xa8(%rsp), %rcx movq %rax, (%rcx) movl $0x1010101, 0x7(%rcx) # imm = 0x1010101 leaq 0x68(%rsp), %rdx movq %rbx, %rdi movq %r12, %rsi callq 0x69190 movq 0x30(%r12), %rsi movq 0x38(%r12), %rcx movq %rbx, %rdi xorl %edx, %edx callq 0x1c1a0 testq %rax, %rax jne 0x53a2f movq 0x38(%r12), %rdx leaq 0x18(%rsp), %rdi movq %rbx, %rsi movq $-0x1, %rcx callq 0x1cbb0 leaq 0x18(%rsp), %r13 movq %rbx, %rdi movq %r13, %rsi callq 0x1c670 movq (%r13), %rdi leaq 0x28(%rsp), %rax cmpq %rax, %rdi je 0x53a2f movq 0x28(%rsp), %rsi incq %rsi callq 0x1c110 movq 0x8(%rbx), %rsi movq 0x58(%r12), %rdx subq %rdx, %rsi jb 0x53a91 leaq 0x50(%r12), %rcx movq %rbx, %rdi callq 0x1cca0 testl %eax, %eax jne 0x53a91 movq 0x8(%rbx), %rcx subq 0x58(%r12), %rcx leaq 0x18(%rsp), %rdi movq %rbx, %rsi xorl %edx, %edx callq 0x1cbb0 leaq 0x18(%rsp), %r12 movq %rbx, %rdi movq %r12, %rsi callq 0x1c670 movq (%r12), %rdi leaq 0x28(%rsp), %rax cmpq %rax, %rdi je 0x53a91 movq 0x28(%rsp), %rsi incq %rsi callq 0x1c110 movq %r14, %rdi xorl %esi, %esi callq 0x732fc movq %r14, %rdi callq 0x300e0 movq %r15, %rdi xorl %esi, %esi callq 0x732fc movq %r15, %rdi callq 0x300e0 leaq 0x68(%rsp), %rbx movq %rbx, %rdi xorl %esi, %esi callq 0x732fc movq %rbx, %rdi callq 0x300e0 addq $0xb8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x53ae2 jmp 0x53ae2 movq %rax, %r14 movq (%rbx), %rdi addq $0x10, %rbx cmpq %rbx, %rdi je 0x53b03 movq (%rbx), %rsi incq %rsi callq 0x1c110 jmp 0x53b03 jmp 0x53b00 movq %rax, %r14 leaq 0x68(%rsp), %rdi callq 0x6bce0 movq %r14, %rdi callq 0x1c7d0 nop
_ZL5applyRKN5minja13chat_templateERKN8nlohmann16json_abi_v3_11_310basic_jsonINS4_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS4_14adl_serializerES7_IhSaIhEEvEESJ_bSJ_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 0B8h mov [rsp+0E8h+var_E0], r9 mov [rsp+0E8h+var_E4], r8d mov [rsp+0E8h+var_D8], rcx mov rbp, rdx mov r12, rsi mov rbx, rdi xor r13d, r13d lea r14, [rsp+0E8h+var_80] mov [r14], r13b mov [r14+8], r13 mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) lea r15, [rsp+0E8h+var_70] mov [r15], r13b mov [r15+8], r13 mov rdi, r15 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r15 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov byte ptr [r15+10h], 1 lea r14, [rsp+0E8h+var_58] mov [r14], r13b mov [r14+8], r13 mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14; this mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) call __ZNSt6chrono3_V212system_clock3nowEv; std::chrono::_V2::system_clock::now(void) mov [r14+10h], rax lea rdi, [rsp+0E8h+var_90] mov rsi, rbp 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&) lea rdi, [rsp+0E8h+var_80] lea rbp, [rsp+0E8h+var_90] mov rsi, rbp call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, rbp xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, rbp call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() lea rdi, [rsp+0E8h+var_A0] mov rsi, [rsp+0E8h+var_D8] 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&) lea r13, [rsp+0E8h+var_A0] mov rdi, r15 mov rsi, r13 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, r13 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r13 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov eax, [rsp+0E8h+var_E4] mov [rsp+0E8h+var_60], al lea rdi, [rsp+0E8h+var_B0] mov rsi, [rsp+0E8h+var_E0] 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&) lea r13, [rsp+0E8h+var_B0] mov rdi, r14 mov rsi, r13 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, r13 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r13 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rax, 101010101010101h lea rcx, [rsp+0E8h+var_40] mov [rcx], rax mov dword ptr [rcx+7], 1010101h lea rdx, [rsp+0E8h+var_80] mov rdi, rbx mov rsi, r12 call _ZNK5minja13chat_template5applyB5cxx11ERKNS_20chat_template_inputsERKNS_21chat_template_optionsE; minja::chat_template::apply(minja::chat_template_inputs const&,minja::chat_template_options const&) mov rsi, [r12+30h] mov rcx, [r12+38h] mov rdi, rbx xor edx, edx call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5rfindEPKcmm; std::string::rfind(char const*,ulong,ulong) test rax, rax jnz short loc_53A2F mov rdx, [r12+38h] lea rdi, [rsp+0E8h+var_D0] mov rsi, rbx mov rcx, 0FFFFFFFFFFFFFFFFh call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong) lea r13, [rsp+0E8h+var_D0] mov rdi, rbx mov rsi, r13 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&) mov rdi, [r13+0]; void * lea rax, [rsp+0E8h+var_C0] cmp rdi, rax jz short loc_53A2F mov rsi, [rsp+0E8h+var_C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_53A2F: mov rsi, [rbx+8] mov rdx, [r12+58h] sub rsi, rdx jb short loc_53A91 lea rcx, [r12+50h] mov rdi, rbx call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEmmRKS4_; std::string::compare(ulong,ulong,std::string const&) test eax, eax jnz short loc_53A91 mov rcx, [rbx+8] sub rcx, [r12+58h] lea rdi, [rsp+0E8h+var_D0] mov rsi, rbx xor edx, edx call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong) lea r12, [rsp+0E8h+var_D0] mov rdi, rbx mov rsi, r12 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&) mov rdi, [r12]; void * lea rax, [rsp+0E8h+var_C0] cmp rdi, rax jz short loc_53A91 mov rsi, [rsp+0E8h+var_C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_53A91: mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rdi, r15 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() lea rbx, [rsp+0E8h+var_80] mov rdi, rbx xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() add rsp, 0B8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_53AE2 jmp short $+2 loc_53AE2: mov r14, rax mov rdi, [rbx]; void * add rbx, 10h cmp rdi, rbx jz short loc_53B03 mov rsi, [rbx] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_53B03 jmp short $+2 loc_53B00: mov r14, rax loc_53B03: lea rdi, [rsp+arg_60]; this call _ZN5minja20chat_template_inputsD2Ev; minja::chat_template_inputs::~chat_template_inputs() mov rdi, r14 call __Unwind_Resume
long long apply( long long a1, _QWORD *a2, unsigned __int8 *a3, unsigned __int8 *a4, char a5, unsigned __int8 *a6) { unsigned long long v8; // rsi unsigned long long v9; // rdx bool v10; // cf unsigned long long v11; // rsi void *v16[2]; // [rsp+18h] [rbp-D0h] BYREF _QWORD v17[2]; // [rsp+28h] [rbp-C0h] BYREF _BYTE v18[16]; // [rsp+38h] [rbp-B0h] BYREF _BYTE v19[16]; // [rsp+48h] [rbp-A0h] BYREF _BYTE v20[16]; // [rsp+58h] [rbp-90h] BYREF _BYTE v21[8]; // [rsp+68h] [rbp-80h] BYREF long long v22; // [rsp+70h] [rbp-78h] _BYTE v23[8]; // [rsp+78h] [rbp-70h] BYREF long long v24; // [rsp+80h] [rbp-68h] char v25; // [rsp+88h] [rbp-60h] _BYTE v26[8]; // [rsp+90h] [rbp-58h] BYREF long long v27; // [rsp+98h] [rbp-50h] long long v28; // [rsp+A0h] [rbp-48h] _QWORD v29[8]; // [rsp+A8h] [rbp-40h] BYREF v21[0] = 0; v22 = 0LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant( v21, 1LL); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant( v21, 1LL); v23[0] = 0; v24 = 0LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant( v23, 1LL); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant( v23, 1LL); v25 = 1; v26[0] = 0; v27 = 0LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant( v26, 1LL); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant( v26, 1LL); v28 = std::chrono::_V2::system_clock::now((std::chrono::_V2::system_clock *)v26); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( (long long)v20, a3); 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=( v21, v20); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant( v20, 0LL); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v20); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( (long long)v19, a4); 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=( v23, v19); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant( v19, 0LL); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v19); v25 = a5; 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, a6); 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=( v26, v18); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant( v18, 0LL); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v18); v29[0] = 0x101010101010101LL; *(_DWORD *)((char *)v29 + 7) = 16843009; minja::chat_template::apply[abi:cxx11](a1, a2, v21, v29); if ( !std::string::rfind(a1, a2[6], 0LL, a2[7]) ) { std::string::substr(v16, a1, a2[7], -1LL); std::string::operator=(a1, v16); if ( v16[0] != v17 ) operator delete(v16[0], v17[0] + 1LL); } v8 = *(_QWORD *)(a1 + 8); v9 = a2[11]; v10 = v8 < v9; v11 = v8 - v9; if ( !v10 && !(unsigned int)std::string::compare(a1, v11, v9, a2 + 10) ) { std::string::substr(v16, a1, 0LL, *(_QWORD *)(a1 + 8) - a2[11]); std::string::operator=(a1, v16); if ( v16[0] != v17 ) operator delete(v16[0], v17[0] + 1LL); } nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant( v26, 0LL); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v26); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant( v23, 0LL); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v23); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant( v21, 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>::data::~data(v21); }
apply: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xb8 MOV qword ptr [RSP + 0x8],R9 MOV dword ptr [RSP + 0x4],R8D MOV qword ptr [RSP + 0x10],RCX MOV RBP,RDX MOV R12,RSI MOV RBX,RDI XOR R13D,R13D LEA R14,[RSP + 0x68] MOV byte ptr [R14],R13B MOV qword ptr [R14 + 0x8],R13 MOV RDI,R14 MOV ESI,0x1 CALL 0x001732fc MOV RDI,R14 MOV ESI,0x1 CALL 0x001732fc LEA R15,[RSP + 0x78] MOV byte ptr [R15],R13B MOV qword ptr [R15 + 0x8],R13 MOV RDI,R15 MOV ESI,0x1 CALL 0x001732fc MOV RDI,R15 MOV ESI,0x1 CALL 0x001732fc MOV byte ptr [R15 + 0x10],0x1 LEA R14,[RSP + 0x90] MOV byte ptr [R14],R13B MOV qword ptr [R14 + 0x8],R13 MOV RDI,R14 MOV ESI,0x1 CALL 0x001732fc MOV RDI,R14 MOV ESI,0x1 CALL 0x001732fc CALL 0x0011c8d0 MOV qword ptr [R14 + 0x10],RAX LAB_00153908: LEA RDI,[RSP + 0x58] MOV RSI,RBP CALL 0x0012fd1c LEA RDI,[RSP + 0x68] LEA RBP,[RSP + 0x58] MOV RSI,RBP CALL 0x0016831a MOV RDI,RBP XOR ESI,ESI CALL 0x001732fc MOV RDI,RBP CALL 0x001300e0 LEA RDI,[RSP + 0x48] MOV RSI,qword ptr [RSP + 0x10] CALL 0x0012fd1c LEA R13,[RSP + 0x48] MOV RDI,R15 MOV RSI,R13 CALL 0x0016831a MOV RDI,R13 XOR ESI,ESI CALL 0x001732fc MOV RDI,R13 CALL 0x001300e0 MOV EAX,dword ptr [RSP + 0x4] MOV byte ptr [RSP + 0x88],AL LEA RDI,[RSP + 0x38] MOV RSI,qword ptr [RSP + 0x8] CALL 0x0012fd1c LEA R13,[RSP + 0x38] MOV RDI,R14 MOV RSI,R13 CALL 0x0016831a MOV RDI,R13 XOR ESI,ESI CALL 0x001732fc MOV RDI,R13 CALL 0x001300e0 MOV RAX,0x101010101010101 LEA RCX,[RSP + 0xa8] MOV qword ptr [RCX],RAX MOV dword ptr [RCX + 0x7],0x1010101 LAB_001539c2: LEA RDX,[RSP + 0x68] MOV RDI,RBX MOV RSI,R12 CALL 0x00169190 MOV RSI,qword ptr [R12 + 0x30] MOV RCX,qword ptr [R12 + 0x38] MOV RDI,RBX XOR EDX,EDX CALL 0x0011c1a0 TEST RAX,RAX JNZ 0x00153a2f MOV RDX,qword ptr [R12 + 0x38] LAB_001539f0: LEA RDI,[RSP + 0x18] MOV RSI,RBX MOV RCX,-0x1 CALL 0x0011cbb0 LEA R13,[RSP + 0x18] MOV RDI,RBX MOV RSI,R13 CALL 0x0011c670 MOV RDI,qword ptr [R13] LEA RAX,[RSP + 0x28] CMP RDI,RAX JZ 0x00153a2f MOV RSI,qword ptr [RSP + 0x28] INC RSI CALL 0x0011c110 LAB_00153a2f: MOV RSI,qword ptr [RBX + 0x8] MOV RDX,qword ptr [R12 + 0x58] SUB RSI,RDX JC 0x00153a91 LEA RCX,[R12 + 0x50] LAB_00153a42: MOV RDI,RBX CALL 0x0011cca0 TEST EAX,EAX JNZ 0x00153a91 MOV RCX,qword ptr [RBX + 0x8] SUB RCX,qword ptr [R12 + 0x58] LAB_00153a57: LEA RDI,[RSP + 0x18] MOV RSI,RBX XOR EDX,EDX CALL 0x0011cbb0 LAB_00153a66: LEA R12,[RSP + 0x18] MOV RDI,RBX MOV RSI,R12 CALL 0x0011c670 MOV RDI,qword ptr [R12] LEA RAX,[RSP + 0x28] CMP RDI,RAX JZ 0x00153a91 MOV RSI,qword ptr [RSP + 0x28] INC RSI CALL 0x0011c110 LAB_00153a91: MOV RDI,R14 XOR ESI,ESI CALL 0x001732fc MOV RDI,R14 CALL 0x001300e0 MOV RDI,R15 XOR ESI,ESI CALL 0x001732fc MOV RDI,R15 CALL 0x001300e0 LEA RBX,[RSP + 0x68] MOV RDI,RBX XOR ESI,ESI CALL 0x001732fc MOV RDI,RBX CALL 0x001300e0 ADD RSP,0xb8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* apply(minja::chat_template const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const&, bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const&) */ void apply(chat_template *param_1,basic_json *param_2,basic_json *param_3,bool param_4, basic_json *param_5) { string *psVar1; int iVar2; long lVar3; int7 in_register_00000009; bool bVar4; bool bVar5; basic_json *in_R9; long *local_d0 [2]; long local_c0 [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> local_b0 [16]; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_a0 [16]; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_90 [16]; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_80 [8]; int8 local_78; data local_70 [8]; int8 local_68; int1 local_60; data local_58 [8]; int8 local_50; int8 local_48; int7 local_40; int4 uStack_39; local_80[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> )0x0; local_78 = 0; nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(local_80,0)); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(local_80,0)); local_70[0] = (data)0x0; local_68 = 0; bVar4 = SUB81(local_70,0); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar4); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar4); local_60 = 1; local_58[0] = (data)0x0; local_50 = 0; bVar5 = SUB81(local_58,0); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar5); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar5); local_48 = std::chrono::_V2::system_clock::now(); /* try { // try from 00153908 to 00153983 has its CatchHandler @ 00153b00 */ nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_90,param_3); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_80,(data *)local_90); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81((data *)local_90,0)); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)local_90); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_a0,(basic_json *)CONCAT71(in_register_00000009,param_4)); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator=((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)local_70,(data *)local_a0); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81((data *)local_a0,0)); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)local_a0); local_60 = SUB81(param_5,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(local_b0,in_R9); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator=((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)local_58,(data *)local_b0); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81((data *)local_b0,0)); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)local_b0); local_40 = 0x1010101010101; uStack_39 = 0x1010101; /* try { // try from 001539c2 to 001539d1 has its CatchHandler @ 00153afe */ minja::chat_template::apply_abi_cxx11_ ((chat_template_inputs *)param_1,(chat_template_options *)param_2); lVar3 = std::__cxx11::string::rfind((char *)param_1,*(ulong *)(param_2 + 0x30),0); if (lVar3 == 0) { /* try { // try from 001539f0 to 00153a03 has its CatchHandler @ 00153ae0 */ std::__cxx11::string::substr((ulong)local_d0,(ulong)param_1); std::__cxx11::string::operator=((string *)param_1,(string *)local_d0); if (local_d0[0] != local_c0) { operator_delete(local_d0[0],local_c0[0] + 1); } } psVar1 = *(string **)(param_2 + 0x58); if (psVar1 <= *(string **)(param_1 + 8)) { /* try { // try from 00153a42 to 00153a49 has its CatchHandler @ 00153ae2 */ iVar2 = std::__cxx11::string::compare ((ulong)param_1,(long)*(string **)(param_1 + 8) - (long)psVar1,psVar1); if (iVar2 == 0) { /* try { // try from 00153a57 to 00153a65 has its CatchHandler @ 00153ade */ std::__cxx11::string::substr((ulong)local_d0,(ulong)param_1); std::__cxx11::string::operator=((string *)param_1,(string *)local_d0); if (local_d0[0] != local_c0) { operator_delete(local_d0[0],local_c0[0] + 1); } } } nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar5); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_58); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar4); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_70); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81((data *)local_80,0)); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)local_80); return; }
49,350
unlink_thd(THD*)
eloqsql/sql/mysqld.cc
void unlink_thd(THD *thd) { DBUG_ENTER("unlink_thd"); DBUG_PRINT("enter", ("thd: %p", thd)); thd->cleanup(); thd->add_status_to_global(); server_threads.erase(thd); #ifdef WITH_WSREP /* Do not decrement when its wsrep system thread. wsrep_applier is set for applier as well as rollbacker threads. */ if (!thd->wsrep_applier) #endif /* WITH_WSREP */ --*thd->scheduler->connection_count; thd->free_connection(); DBUG_VOID_RETURN; }
O0
cpp
unlink_thd(THD*): pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) jmp 0x8904ee movq -0x8(%rbp), %rdi callq 0x969610 movq -0x8(%rbp), %rdi callq 0x89f640 movq -0x8(%rbp), %rsi leaq 0x14b8c25(%rip), %rdi # 0x1d49130 callq 0x89f6b0 movq -0x8(%rbp), %rax testb $0x1, 0x6299(%rax) jne 0x890531 movq -0x8(%rbp), %rax movq 0x588(%rax), %rax movq 0x8(%rax), %rdi callq 0x89f7f0 movq -0x8(%rbp), %rdi callq 0x969b90 jmp 0x89053c addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_Z10unlink_thdP3THD: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi jmp short $+2 loc_8904EE: mov rdi, [rbp+var_8]; this call _ZN3THD7cleanupEv; THD::cleanup(void) mov rdi, [rbp+var_8]; this call _ZN3THD20add_status_to_globalEv; THD::add_status_to_global(void) mov rsi, [rbp+var_8]; THD * lea rdi, server_threads; this call _ZN8THD_list5eraseEP3THD; THD_list::erase(THD *) mov rax, [rbp+var_8] test byte ptr [rax+6299h], 1 jnz short loc_890531 mov rax, [rbp+var_8] mov rax, [rax+588h] mov rdi, [rax+8] call _ZN14Atomic_counterIjEmmEv; Atomic_counter<uint>::operator--(void) loc_890531: mov rdi, [rbp+var_8]; this call _ZN3THD15free_connectionEv; THD::free_connection(void) jmp short $+2 loc_89053C: add rsp, 10h pop rbp retn
long long unlink_thd(THD *a1) { THD::cleanup(a1); THD::add_status_to_global(a1); THD_list::erase((THD_list *)&server_threads, a1); if ( (*((_BYTE *)a1 + 25241) & 1) == 0 ) Atomic_counter<unsigned int>::operator--(*(_QWORD *)(*((_QWORD *)a1 + 177) + 8LL)); return THD::free_connection(a1); }
__cxx_global_var_init.7: PUSH RBP MOV RBP,RSP LEA RDI,[0x1e5a43c] MOV ESI,0x2000000 CALL 0x008fd530 POP RBP RET
void __cxx_global_var_init_7(void) { date_conv_mode_t::date_conv_mode_t((date_conv_mode_t *)&TIME_INVALID_DATES,0x2000000); return; }
49,351
ma_bitmap_flush_all
eloqsql/storage/maria/ma_bitmap.c
my_bool _ma_bitmap_flush_all(MARIA_SHARE *share) { my_bool res= 0; uint send_signal= 0; MARIA_FILE_BITMAP *bitmap= &share->bitmap; DBUG_ENTER("_ma_bitmap_flush_all"); #ifdef EXTRA_DEBUG_BITMAP { char buff[160]; uint len= my_sprintf(buff, (buff, "bitmap_flush: fd: %d id: %u " "changed: %d changed_not_flushed: %d " "flush_all_requested: %d", share->bitmap.file.file, share->id, bitmap->changed, bitmap->changed_not_flushed, bitmap->flush_all_requested)); (void) translog_log_debug_info(0, LOGREC_DEBUG_INFO_QUERY, (uchar*) buff, len); } #endif mysql_mutex_lock(&bitmap->bitmap_lock); if (!bitmap->changed && !bitmap->changed_not_flushed) { mysql_mutex_unlock(&bitmap->bitmap_lock); DBUG_RETURN(0); } _ma_bitmap_mark_file_changed(share, 0); /* The following should be true as it was tested above. We have to test this again as _ma_bitmap_mark_file_changed() did temporarly release the bitmap mutex. */ if (bitmap->changed || bitmap->changed_not_flushed) { bitmap->flush_all_requested++; bitmap->waiting_for_non_flushable++; #if !WRONG_BITMAP_FLUSH while (bitmap->non_flushable > 0) { DBUG_PRINT("info", ("waiting for bitmap to be flushable")); mysql_cond_wait(&bitmap->bitmap_cond, &bitmap->bitmap_lock); } #endif bitmap->waiting_for_non_flushable--; #ifdef EXTRA_DEBUG_BITMAP { char tmp[MAX_BITMAP_INFO_LENGTH]; size_t len; len= _ma_get_bitmap_description(bitmap, bitmap->map, bitmap->page, tmp); (void) translog_log_debug_info(0, LOGREC_DEBUG_INFO_QUERY, (uchar*) tmp, len); } #endif DBUG_ASSERT(bitmap->flush_all_requested == 1); /* Bitmap is in a flushable state: its contents in memory are reflected by log records (complete REDO-UNDO groups) and all bitmap pages are unpinned. We keep the mutex to preserve this situation, and flush to the file. */ if (bitmap->changed) { bitmap->changed= FALSE; res= write_changed_bitmap(share, bitmap); } /* We do NOT use FLUSH_KEEP_LAZY because we must be sure that bitmap pages have been flushed. That's a condition of correctness of Recovery: data pages may have been all flushed, if we write the checkpoint record Recovery will start from after their REDOs. If bitmap page was not flushed, as the REDOs about it will be skipped, it will wrongly not be recovered. If bitmap pages had a rec_lsn it would be different. There should be no pinned pages as bitmap->non_flushable==0. */ if (flush_pagecache_blocks_with_filter(share->pagecache, &bitmap->file, FLUSH_KEEP, filter_flush_bitmap_pages, &bitmap->pages_covered) & PCFLUSH_PINNED_AND_ERROR) res= TRUE; bitmap->changed_not_flushed= FALSE; bitmap->flush_all_requested--; /* Some well-behaved threads may be waiting for flush_all_requested to become false, wake them up. */ DBUG_PRINT("info", ("bitmap flusher waking up others")); send_signal= (bitmap->waiting_for_flush_all_requested | bitmap->waiting_for_non_flushable); } mysql_mutex_unlock(&bitmap->bitmap_lock); if (send_signal) mysql_cond_broadcast(&bitmap->bitmap_cond); DBUG_RETURN(res); }
O0
c
ma_bitmap_flush_all: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movb $0x0, -0x11(%rbp) movl $0x0, -0x18(%rbp) movq -0x10(%rbp), %rax addq $0xa10, %rax # imm = 0xA10 movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rdi addq $0x88, %rdi leaq 0xf5c3f(%rip), %rsi # 0x154896 movl $0x1ee, %edx # imm = 0x1EE callq 0x5e910 movq -0x20(%rbp), %rax cmpb $0x0, 0x20(%rax) jne 0x5ec8e movq -0x20(%rbp), %rax cmpb $0x0, 0x21(%rax) jne 0x5ec8e movq -0x20(%rbp), %rdi addq $0x88, %rdi callq 0x5ebc0 movb $0x0, -0x1(%rbp) jmp 0x5edc7 movq -0x10(%rbp), %rdi xorl %esi, %esi callq 0x5e980 movq -0x20(%rbp), %rax movsbl 0x20(%rax), %eax cmpl $0x0, %eax jne 0x5ecb7 movq -0x20(%rbp), %rax movsbl 0x21(%rax), %eax cmpl $0x0, %eax je 0x5ed99 movq -0x20(%rbp), %rax movl 0x30(%rax), %ecx addl $0x1, %ecx movl %ecx, 0x30(%rax) movq -0x20(%rbp), %rax movl 0x3c(%rax), %ecx addl $0x1, %ecx movl %ecx, 0x3c(%rax) movq -0x20(%rbp), %rax cmpl $0x0, 0x38(%rax) jbe 0x5ed08 jmp 0x5ecdd jmp 0x5ecdf movq -0x20(%rbp), %rdi addq $0xd0, %rdi movq -0x20(%rbp), %rsi addq $0x88, %rsi leaq 0xf5b9a(%rip), %rdx # 0x154896 movl $0x204, %ecx # imm = 0x204 callq 0x5edd0 jmp 0x5ecd1 movq -0x20(%rbp), %rax movl 0x3c(%rax), %ecx addl $-0x1, %ecx movl %ecx, 0x3c(%rax) jmp 0x5ed17 movq -0x20(%rbp), %rax cmpb $0x0, 0x20(%rax) je 0x5ed39 movq -0x20(%rbp), %rax movb $0x0, 0x20(%rax) movq -0x10(%rbp), %rdi movq -0x20(%rbp), %rsi callq 0x5ea50 movb %al, -0x11(%rbp) movq -0x10(%rbp), %rax movq 0x600(%rax), %rdi movq -0x20(%rbp), %rsi addq $0x40, %rsi movq -0x20(%rbp), %r8 addq $0x138, %r8 # imm = 0x138 xorl %edx, %edx leaq 0xe0(%rip), %rcx # 0x5ee40 callq 0x9a5e0 andl $0x3, %eax cmpl $0x0, %eax je 0x5ed71 movb $0x1, -0x11(%rbp) movq -0x20(%rbp), %rax movb $0x0, 0x21(%rax) movq -0x20(%rbp), %rax movl 0x30(%rax), %ecx addl $-0x1, %ecx movl %ecx, 0x30(%rax) jmp 0x5ed88 movq -0x20(%rbp), %rax movl 0x34(%rax), %eax movq -0x20(%rbp), %rcx orl 0x3c(%rcx), %eax movl %eax, -0x18(%rbp) movq -0x20(%rbp), %rdi addq $0x88, %rdi callq 0x5ebc0 cmpl $0x0, -0x18(%rbp) je 0x5edbf movq -0x20(%rbp), %rdi addq $0xd0, %rdi callq 0x5ee70 jmp 0x5edc1 movb -0x11(%rbp), %al movb %al, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x20, %rsp popq %rbp retq
_ma_bitmap_flush_all: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi mov [rbp+var_11], 0 mov [rbp+var_18], 0 mov rax, [rbp+var_10] add rax, 0A10h mov [rbp+var_20], rax mov rdi, [rbp+var_20] add rdi, 88h lea rsi, aWorkspaceLlm4b_13; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 1EEh call inline_mysql_mutex_lock_7 mov rax, [rbp+var_20] cmp byte ptr [rax+20h], 0 jnz short loc_5EC8E mov rax, [rbp+var_20] cmp byte ptr [rax+21h], 0 jnz short loc_5EC8E mov rdi, [rbp+var_20] add rdi, 88h call inline_mysql_mutex_unlock_7 mov [rbp+var_1], 0 jmp loc_5EDC7 loc_5EC8E: mov rdi, [rbp+var_10] xor esi, esi call _ma_bitmap_mark_file_changed mov rax, [rbp+var_20] movsx eax, byte ptr [rax+20h] cmp eax, 0 jnz short loc_5ECB7 mov rax, [rbp+var_20] movsx eax, byte ptr [rax+21h] cmp eax, 0 jz loc_5ED99 loc_5ECB7: mov rax, [rbp+var_20] mov ecx, [rax+30h] add ecx, 1 mov [rax+30h], ecx mov rax, [rbp+var_20] mov ecx, [rax+3Ch] add ecx, 1 mov [rax+3Ch], ecx loc_5ECD1: mov rax, [rbp+var_20] cmp dword ptr [rax+38h], 0 jbe short loc_5ED08 jmp short $+2 loc_5ECDD: jmp short $+2 loc_5ECDF: mov rdi, [rbp+var_20] add rdi, 0D0h mov rsi, [rbp+var_20] add rsi, 88h lea rdx, aWorkspaceLlm4b_13; "/workspace/llm4binary/github2025/eloqsq"... mov ecx, 204h call inline_mysql_cond_wait_0 jmp short loc_5ECD1 loc_5ED08: mov rax, [rbp+var_20] mov ecx, [rax+3Ch] add ecx, 0FFFFFFFFh mov [rax+3Ch], ecx jmp short $+2 loc_5ED17: mov rax, [rbp+var_20] cmp byte ptr [rax+20h], 0 jz short loc_5ED39 mov rax, [rbp+var_20] mov byte ptr [rax+20h], 0 mov rdi, [rbp+var_10] mov rsi, [rbp+var_20] call write_changed_bitmap mov [rbp+var_11], al loc_5ED39: mov rax, [rbp+var_10] mov rdi, [rax+600h] mov rsi, [rbp+var_20] add rsi, 40h ; '@' mov r8, [rbp+var_20] add r8, 138h xor edx, edx lea rcx, filter_flush_bitmap_pages call flush_pagecache_blocks_with_filter and eax, 3 cmp eax, 0 jz short loc_5ED71 mov [rbp+var_11], 1 loc_5ED71: mov rax, [rbp+var_20] mov byte ptr [rax+21h], 0 mov rax, [rbp+var_20] mov ecx, [rax+30h] add ecx, 0FFFFFFFFh mov [rax+30h], ecx jmp short $+2 loc_5ED88: mov rax, [rbp+var_20] mov eax, [rax+34h] mov rcx, [rbp+var_20] or eax, [rcx+3Ch] mov [rbp+var_18], eax loc_5ED99: mov rdi, [rbp+var_20] add rdi, 88h call inline_mysql_mutex_unlock_7 cmp [rbp+var_18], 0 jz short loc_5EDBF mov rdi, [rbp+var_20] add rdi, 0D0h call inline_mysql_cond_broadcast loc_5EDBF: jmp short $+2 loc_5EDC1: mov al, [rbp+var_11] mov [rbp+var_1], al loc_5EDC7: mov al, [rbp+var_1] add rsp, 20h pop rbp retn
char ma_bitmap_flush_all(long long a1) { int v2; // [rsp+8h] [rbp-18h] char v3; // [rsp+Fh] [rbp-11h] v3 = 0; v2 = 0; inline_mysql_mutex_lock_7( a1 + 2712, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_bitmap.c", 0x1EEu); if ( *(_BYTE *)(a1 + 2608) || *(_BYTE *)(a1 + 2609) ) { ma_bitmap_mark_file_changed(a1, 0); if ( *(_BYTE *)(a1 + 2608) || *(_BYTE *)(a1 + 2609) ) { ++*(_DWORD *)(a1 + 2624); ++*(_DWORD *)(a1 + 2636); while ( *(_DWORD *)(a1 + 2632) ) inline_mysql_cond_wait_0( a1 + 2784, a1 + 2712, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_bitmap.c", 516LL); --*(_DWORD *)(a1 + 2636); if ( *(_BYTE *)(a1 + 2608) ) { *(_BYTE *)(a1 + 2608) = 0; v3 = write_changed_bitmap(a1, a1 + 2576); } if ( (flush_pagecache_blocks_with_filter(*(_QWORD *)(a1 + 1536), a1 + 2640, 0LL, filter_flush_bitmap_pages) & 3) != 0 ) v3 = 1; *(_BYTE *)(a1 + 2609) = 0; --*(_DWORD *)(a1 + 2624); v2 = *(_DWORD *)(a1 + 2636) | *(_DWORD *)(a1 + 2628); } inline_mysql_mutex_unlock_7(a1 + 2712); if ( v2 ) inline_mysql_cond_broadcast(a1 + 2784); return v3; } else { inline_mysql_mutex_unlock_7(a1 + 2712); return 0; } }
_ma_bitmap_flush_all: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI MOV byte ptr [RBP + -0x11],0x0 MOV dword ptr [RBP + -0x18],0x0 MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0xa10 MOV qword ptr [RBP + -0x20],RAX MOV RDI,qword ptr [RBP + -0x20] ADD RDI,0x88 LEA RSI,[0x254896] MOV EDX,0x1ee CALL 0x0015e910 MOV RAX,qword ptr [RBP + -0x20] CMP byte ptr [RAX + 0x20],0x0 JNZ 0x0015ec8e MOV RAX,qword ptr [RBP + -0x20] CMP byte ptr [RAX + 0x21],0x0 JNZ 0x0015ec8e MOV RDI,qword ptr [RBP + -0x20] ADD RDI,0x88 CALL 0x0015ebc0 MOV byte ptr [RBP + -0x1],0x0 JMP 0x0015edc7 LAB_0015ec8e: MOV RDI,qword ptr [RBP + -0x10] XOR ESI,ESI CALL 0x0015e980 MOV RAX,qword ptr [RBP + -0x20] MOVSX EAX,byte ptr [RAX + 0x20] CMP EAX,0x0 JNZ 0x0015ecb7 MOV RAX,qword ptr [RBP + -0x20] MOVSX EAX,byte ptr [RAX + 0x21] CMP EAX,0x0 JZ 0x0015ed99 LAB_0015ecb7: MOV RAX,qword ptr [RBP + -0x20] MOV ECX,dword ptr [RAX + 0x30] ADD ECX,0x1 MOV dword ptr [RAX + 0x30],ECX MOV RAX,qword ptr [RBP + -0x20] MOV ECX,dword ptr [RAX + 0x3c] ADD ECX,0x1 MOV dword ptr [RAX + 0x3c],ECX LAB_0015ecd1: MOV RAX,qword ptr [RBP + -0x20] CMP dword ptr [RAX + 0x38],0x0 JBE 0x0015ed08 JMP 0x0015ecdd LAB_0015ecdd: JMP 0x0015ecdf LAB_0015ecdf: MOV RDI,qword ptr [RBP + -0x20] ADD RDI,0xd0 MOV RSI,qword ptr [RBP + -0x20] ADD RSI,0x88 LEA RDX,[0x254896] MOV ECX,0x204 CALL 0x0015edd0 JMP 0x0015ecd1 LAB_0015ed08: MOV RAX,qword ptr [RBP + -0x20] MOV ECX,dword ptr [RAX + 0x3c] ADD ECX,-0x1 MOV dword ptr [RAX + 0x3c],ECX JMP 0x0015ed17 LAB_0015ed17: MOV RAX,qword ptr [RBP + -0x20] CMP byte ptr [RAX + 0x20],0x0 JZ 0x0015ed39 MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x20],0x0 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x20] CALL 0x0015ea50 MOV byte ptr [RBP + -0x11],AL LAB_0015ed39: MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x600] MOV RSI,qword ptr [RBP + -0x20] ADD RSI,0x40 MOV R8,qword ptr [RBP + -0x20] ADD R8,0x138 XOR EDX,EDX LEA RCX,[0x15ee40] CALL 0x0019a5e0 AND EAX,0x3 CMP EAX,0x0 JZ 0x0015ed71 MOV byte ptr [RBP + -0x11],0x1 LAB_0015ed71: MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x21],0x0 MOV RAX,qword ptr [RBP + -0x20] MOV ECX,dword ptr [RAX + 0x30] ADD ECX,-0x1 MOV dword ptr [RAX + 0x30],ECX JMP 0x0015ed88 LAB_0015ed88: MOV RAX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX + 0x34] MOV RCX,qword ptr [RBP + -0x20] OR EAX,dword ptr [RCX + 0x3c] MOV dword ptr [RBP + -0x18],EAX LAB_0015ed99: MOV RDI,qword ptr [RBP + -0x20] ADD RDI,0x88 CALL 0x0015ebc0 CMP dword ptr [RBP + -0x18],0x0 JZ 0x0015edbf MOV RDI,qword ptr [RBP + -0x20] ADD RDI,0xd0 CALL 0x0015ee70 LAB_0015edbf: JMP 0x0015edc1 LAB_0015edc1: MOV AL,byte ptr [RBP + -0x11] MOV byte ptr [RBP + -0x1],AL LAB_0015edc7: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x20 POP RBP RET
int8 _ma_bitmap_flush_all(long param_1) { uint uVar1; int7 extraout_var; int8 uVar2; int7 uVar3; uint local_20; int1 local_19; int1 local_9; local_19 = 0; local_20 = 0; inline_mysql_mutex_lock (param_1 + 0xa98,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_bitmap.c", 0x1ee); if ((*(char *)(param_1 + 0xa30) == '\0') && (*(char *)(param_1 + 0xa31) == '\0')) { inline_mysql_mutex_unlock(param_1 + 0xa98); local_9 = 0; uVar3 = extraout_var; } else { _ma_bitmap_mark_file_changed(param_1,0); if ((*(char *)(param_1 + 0xa30) != '\0') || (*(char *)(param_1 + 0xa31) != '\0')) { *(int *)(param_1 + 0xa40) = *(int *)(param_1 + 0xa40) + 1; *(int *)(param_1 + 0xa4c) = *(int *)(param_1 + 0xa4c) + 1; while (*(int *)(param_1 + 0xa48) != 0) { inline_mysql_cond_wait (param_1 + 0xae0,param_1 + 0xa98, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_bitmap.c",0x204); } *(int *)(param_1 + 0xa4c) = *(int *)(param_1 + 0xa4c) + -1; if (*(char *)(param_1 + 0xa30) != '\0') { *(int1 *)(param_1 + 0xa30) = 0; local_19 = write_changed_bitmap(param_1,param_1 + 0xa10); } uVar1 = flush_pagecache_blocks_with_filter (*(int8 *)(param_1 + 0x600),param_1 + 0xa50,0, filter_flush_bitmap_pages,param_1 + 0xb48); if ((uVar1 & 3) != 0) { local_19 = 1; } *(int1 *)(param_1 + 0xa31) = 0; *(int *)(param_1 + 0xa40) = *(int *)(param_1 + 0xa40) + -1; local_20 = *(uint *)(param_1 + 0xa44) | *(uint *)(param_1 + 0xa4c); } uVar2 = inline_mysql_mutex_unlock(param_1 + 0xa98); if (local_20 != 0) { uVar2 = inline_mysql_cond_broadcast(param_1 + 0xae0); } uVar3 = (int7)((ulong)uVar2 >> 8); local_9 = local_19; } return CONCAT71(uVar3,local_9); }
49,352
ma_bitmap_flush_all
eloqsql/storage/maria/ma_bitmap.c
my_bool _ma_bitmap_flush_all(MARIA_SHARE *share) { my_bool res= 0; uint send_signal= 0; MARIA_FILE_BITMAP *bitmap= &share->bitmap; DBUG_ENTER("_ma_bitmap_flush_all"); #ifdef EXTRA_DEBUG_BITMAP { char buff[160]; uint len= my_sprintf(buff, (buff, "bitmap_flush: fd: %d id: %u " "changed: %d changed_not_flushed: %d " "flush_all_requested: %d", share->bitmap.file.file, share->id, bitmap->changed, bitmap->changed_not_flushed, bitmap->flush_all_requested)); (void) translog_log_debug_info(0, LOGREC_DEBUG_INFO_QUERY, (uchar*) buff, len); } #endif mysql_mutex_lock(&bitmap->bitmap_lock); if (!bitmap->changed && !bitmap->changed_not_flushed) { mysql_mutex_unlock(&bitmap->bitmap_lock); DBUG_RETURN(0); } _ma_bitmap_mark_file_changed(share, 0); /* The following should be true as it was tested above. We have to test this again as _ma_bitmap_mark_file_changed() did temporarly release the bitmap mutex. */ if (bitmap->changed || bitmap->changed_not_flushed) { bitmap->flush_all_requested++; bitmap->waiting_for_non_flushable++; #if !WRONG_BITMAP_FLUSH while (bitmap->non_flushable > 0) { DBUG_PRINT("info", ("waiting for bitmap to be flushable")); mysql_cond_wait(&bitmap->bitmap_cond, &bitmap->bitmap_lock); } #endif bitmap->waiting_for_non_flushable--; #ifdef EXTRA_DEBUG_BITMAP { char tmp[MAX_BITMAP_INFO_LENGTH]; size_t len; len= _ma_get_bitmap_description(bitmap, bitmap->map, bitmap->page, tmp); (void) translog_log_debug_info(0, LOGREC_DEBUG_INFO_QUERY, (uchar*) tmp, len); } #endif DBUG_ASSERT(bitmap->flush_all_requested == 1); /* Bitmap is in a flushable state: its contents in memory are reflected by log records (complete REDO-UNDO groups) and all bitmap pages are unpinned. We keep the mutex to preserve this situation, and flush to the file. */ if (bitmap->changed) { bitmap->changed= FALSE; res= write_changed_bitmap(share, bitmap); } /* We do NOT use FLUSH_KEEP_LAZY because we must be sure that bitmap pages have been flushed. That's a condition of correctness of Recovery: data pages may have been all flushed, if we write the checkpoint record Recovery will start from after their REDOs. If bitmap page was not flushed, as the REDOs about it will be skipped, it will wrongly not be recovered. If bitmap pages had a rec_lsn it would be different. There should be no pinned pages as bitmap->non_flushable==0. */ if (flush_pagecache_blocks_with_filter(share->pagecache, &bitmap->file, FLUSH_KEEP, filter_flush_bitmap_pages, &bitmap->pages_covered) & PCFLUSH_PINNED_AND_ERROR) res= TRUE; bitmap->changed_not_flushed= FALSE; bitmap->flush_all_requested--; /* Some well-behaved threads may be waiting for flush_all_requested to become false, wake them up. */ DBUG_PRINT("info", ("bitmap flusher waking up others")); send_signal= (bitmap->waiting_for_flush_all_requested | bitmap->waiting_for_non_flushable); } mysql_mutex_unlock(&bitmap->bitmap_lock); if (send_signal) mysql_cond_broadcast(&bitmap->bitmap_cond); DBUG_RETURN(res); }
O3
c
ma_bitmap_flush_all: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x40, %rsp movq %rdi, %rbx leaq 0xa98(%rdi), %r14 cmpq $0x0, 0xad8(%rdi) jne 0x4efca movq %r14, %rdi callq 0x291d0 movb 0xa30(%rbx), %al testb %al, %al jne 0x4ee11 cmpb $0x0, 0xa31(%rbx) je 0x4ef97 cmpb $0x0, 0x7df(%rbx) jne 0x4ee27 testb $0x1, 0x170(%rbx) jne 0x4f00a testb %al, %al jne 0x4ee38 cmpb $0x0, 0xa31(%rbx) je 0x4efc2 incl 0xa40(%rbx) movl 0xa4c(%rbx), %ecx leal 0x1(%rcx), %edx movl %edx, 0xa4c(%rbx) cmpl $0x0, 0xa48(%rbx) je 0x4eea7 leaq 0xae0(%rbx), %r15 leaq 0x8ca32(%rip), %r12 # 0xdb896 cmpq $0x0, 0xb10(%rbx) jne 0x4ee84 movq %r15, %rdi movq %r14, %rsi callq 0x293d0 cmpl $0x0, 0xa48(%rbx) jne 0x4ee64 jmp 0x4ee99 movq %r15, %rdi movq %r14, %rsi movq %r12, %rdx movl $0x204, %ecx # imm = 0x204 callq 0x2f11c jmp 0x4ee79 movl 0xa4c(%rbx), %ecx movb 0xa30(%rbx), %al decl %ecx movl %ecx, 0xa4c(%rbx) xorl %r15d, %r15d testb %al, %al je 0x4ef11 movw $0x100, 0xa30(%rbx) # imm = 0x100 movq 0x600(%rbx), %rdi leaq 0xa50(%rbx), %rsi movq 0xa20(%rbx), %rdx movq 0xa18(%rbx), %r8 movl 0x80(%rdi), %eax movl %eax, 0x30(%rsp) movl %r15d, 0x28(%rsp) xorps %xmm0, %xmm0 movups %xmm0, 0x18(%rsp) movl %r15d, 0x10(%rsp) movl %r15d, (%rsp) movl $0x1, 0x8(%rsp) xorl %ecx, %ecx movl $0x1, %r9d callq 0x7003a movl %eax, %r15d movq 0x600(%rbx), %rdi leaq 0xa50(%rbx), %rsi leaq 0xb48(%rbx), %r8 leaq 0x158(%rip), %rcx # 0x4f085 xorl %edx, %edx callq 0x70730 testb $0x3, %al movzbl %r15b, %eax movl $0x1, %r15d cmovel %eax, %r15d movb $0x0, 0xa31(%rbx) decl 0xa40(%rbx) movl 0xa4c(%rbx), %eax orl 0xa44(%rbx), %eax sete %r12b movq 0xad8(%rbx), %rdi testq %rdi, %rdi jne 0x4efe3 movq %r14, %rdi callq 0x291a0 testb %r12b, %r12b jne 0x4efb2 movq 0xb10(%rbx), %rdi addq $0xae0, %rbx # imm = 0xAE0 testq %rdi, %rdi jne 0x4eff8 movq %rbx, %rdi callq 0x29660 jmp 0x4efb2 movq 0xad8(%rbx), %rdi testq %rdi, %rdi jne 0x4f03e movq %r14, %rdi callq 0x291a0 xorl %r15d, %r15d movl %r15d, %eax addq $0x40, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movb $0x1, %r12b xorl %r15d, %r15d jmp 0x4ef61 leaq 0x8c8c5(%rip), %rsi # 0xdb896 movq %r14, %rdi movl $0x1ee, %edx # imm = 0x1EE callq 0x2ee0b jmp 0x4edfa leaq 0x33a066(%rip), %rax # 0x389050 movq (%rax), %rax callq *0x160(%rax) jmp 0x4ef6d leaq 0x33a051(%rip), %rax # 0x389050 movq (%rax), %rax callq *0x178(%rax) jmp 0x4ef8d movq 0xad8(%rbx), %rdi testq %rdi, %rdi jne 0x4f053 movq %r14, %rdi callq 0x291a0 movq %rbx, %rdi callq 0x3e52f movq %r14, %rdi movl $0x184, %esi # imm = 0x184 callq 0x4edab movb 0xa30(%rbx), %al jmp 0x4ee27 leaq 0x33a00b(%rip), %rax # 0x389050 movq (%rax), %rax callq *0x160(%rax) jmp 0x4efa7 leaq 0x339ff6(%rip), %rax # 0x389050 movq (%rax), %rax callq *0x160(%rax) jmp 0x4f016
_ma_bitmap_flush_all: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx sub rsp, 40h mov rbx, rdi lea r14, [rdi+0A98h] cmp qword ptr [rdi+0AD8h], 0 jnz loc_4EFCA mov rdi, r14 call _pthread_mutex_lock loc_4EDFA: mov al, [rbx+0A30h] test al, al jnz short loc_4EE11 cmp byte ptr [rbx+0A31h], 0 jz loc_4EF97 loc_4EE11: cmp byte ptr [rbx+7DFh], 0 jnz short loc_4EE27 test byte ptr [rbx+170h], 1 jnz loc_4F00A loc_4EE27: test al, al jnz short loc_4EE38 cmp byte ptr [rbx+0A31h], 0 jz loc_4EFC2 loc_4EE38: inc dword ptr [rbx+0A40h] mov ecx, [rbx+0A4Ch] lea edx, [rcx+1] mov [rbx+0A4Ch], edx cmp dword ptr [rbx+0A48h], 0 jz short loc_4EEA7 lea r15, [rbx+0AE0h] lea r12, aWorkspaceLlm4b_4; "/workspace/llm4binary/github2025/eloqsq"... loc_4EE64: cmp qword ptr [rbx+0B10h], 0 jnz short loc_4EE84 mov rdi, r15 mov rsi, r14 call _pthread_cond_wait loc_4EE79: cmp dword ptr [rbx+0A48h], 0 jnz short loc_4EE64 jmp short loc_4EE99 loc_4EE84: mov rdi, r15 mov rsi, r14 mov rdx, r12 mov ecx, 204h call psi_cond_wait jmp short loc_4EE79 loc_4EE99: mov ecx, [rbx+0A4Ch] mov al, [rbx+0A30h] dec ecx loc_4EEA7: mov [rbx+0A4Ch], ecx xor r15d, r15d test al, al jz short loc_4EF11 mov word ptr [rbx+0A30h], 100h mov rdi, [rbx+600h] lea rsi, [rbx+0A50h] mov rdx, [rbx+0A20h] mov r8, [rbx+0A18h] mov eax, [rdi+80h] mov [rsp+60h+var_30], eax mov [rsp+60h+var_38], r15d xorps xmm0, xmm0 movups [rsp+60h+var_48], xmm0 mov [rsp+60h+var_50], r15d mov [rsp+60h+var_60], r15d mov [rsp+60h+var_58], 1 xor ecx, ecx mov r9d, 1 call pagecache_write_part mov r15d, eax loc_4EF11: mov rdi, [rbx+600h] lea rsi, [rbx+0A50h] lea r8, [rbx+0B48h] lea rcx, filter_flush_bitmap_pages xor edx, edx call flush_pagecache_blocks_with_filter test al, 3 movzx eax, r15b mov r15d, 1 cmovz r15d, eax mov byte ptr [rbx+0A31h], 0 dec dword ptr [rbx+0A40h] mov eax, [rbx+0A4Ch] or eax, [rbx+0A44h] setz r12b loc_4EF61: mov rdi, [rbx+0AD8h] test rdi, rdi jnz short loc_4EFE3 loc_4EF6D: mov rdi, r14 call _pthread_mutex_unlock test r12b, r12b jnz short loc_4EFB2 mov rdi, [rbx+0B10h] add rbx, 0AE0h test rdi, rdi jnz short loc_4EFF8 loc_4EF8D: mov rdi, rbx call _pthread_cond_broadcast jmp short loc_4EFB2 loc_4EF97: mov rdi, [rbx+0AD8h] test rdi, rdi jnz loc_4F03E loc_4EFA7: mov rdi, r14 call _pthread_mutex_unlock xor r15d, r15d loc_4EFB2: mov eax, r15d add rsp, 40h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_4EFC2: mov r12b, 1 xor r15d, r15d jmp short loc_4EF61 loc_4EFCA: lea rsi, aWorkspaceLlm4b_4; "/workspace/llm4binary/github2025/eloqsq"... mov rdi, r14 mov edx, 1EEh call psi_mutex_lock jmp loc_4EDFA loc_4EFE3: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp loc_4EF6D loc_4EFF8: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+178h] jmp short loc_4EF8D loc_4F00A: mov rdi, [rbx+0AD8h] test rdi, rdi jnz short loc_4F053 loc_4F016: mov rdi, r14 call _pthread_mutex_unlock mov rdi, rbx call _ma_mark_file_changed_now mov rdi, r14 mov esi, 184h call inline_mysql_mutex_lock_0 mov al, [rbx+0A30h] jmp loc_4EE27 loc_4F03E: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp loc_4EFA7 loc_4F053: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp short loc_4F016
long long ma_bitmap_flush_all(long long a1) { long long v1; // r14 char v2; // al int v3; // ecx unsigned __int8 v4; // r15 bool v5; // zf unsigned int v6; // eax unsigned int v7; // r15d bool v8; // r12 v1 = a1 + 2712; if ( *(_QWORD *)(a1 + 2776) ) psi_mutex_lock(a1 + 2712, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_bitmap.c", 0x1EEu); else pthread_mutex_lock(a1 + 2712); v2 = *(_BYTE *)(a1 + 2608); if ( v2 || *(_BYTE *)(a1 + 2609) ) { if ( !*(_BYTE *)(a1 + 2015) && (*(_BYTE *)(a1 + 368) & 1) != 0 ) { if ( *(_QWORD *)(a1 + 2776) ) PSI_server[44](); pthread_mutex_unlock(v1); ma_mark_file_changed_now(a1); inline_mysql_mutex_lock_0(v1, 0x184u); v2 = *(_BYTE *)(a1 + 2608); } if ( v2 || *(_BYTE *)(a1 + 2609) ) { ++*(_DWORD *)(a1 + 2624); v3 = *(_DWORD *)(a1 + 2636); *(_DWORD *)(a1 + 2636) = v3 + 1; if ( *(_DWORD *)(a1 + 2632) ) { do { if ( *(_QWORD *)(a1 + 2832) ) psi_cond_wait( a1 + 2784, v1, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_bitmap.c", 0x204u); else pthread_cond_wait(a1 + 2784, v1); } while ( *(_DWORD *)(a1 + 2632) ); v2 = *(_BYTE *)(a1 + 2608); v3 = *(_DWORD *)(a1 + 2636) - 1; } *(_DWORD *)(a1 + 2636) = v3; v4 = 0; if ( v2 ) { *(_WORD *)(a1 + 2608) = 256; v4 = pagecache_write_part( *(_QWORD *)(a1 + 1536), (int)a1 + 2640, *(_QWORD *)(a1 + 2592), 0, *(_QWORD *)(a1 + 2584), 1, 0, 1, 0, 0LL, 0LL, 0, *(_DWORD *)(*(_QWORD *)(a1 + 1536) + 128LL)); } v5 = (flush_pagecache_blocks_with_filter( *(_QWORD *)(a1 + 1536), a1 + 2640, 0LL, filter_flush_bitmap_pages, a1 + 2888) & 3) == 0; v6 = v4; v7 = 1; if ( v5 ) v7 = v6; *(_BYTE *)(a1 + 2609) = 0; --*(_DWORD *)(a1 + 2624); v8 = (*(_DWORD *)(a1 + 2628) | *(_DWORD *)(a1 + 2636)) == 0; } else { v8 = 1; v7 = 0; } if ( *(_QWORD *)(a1 + 2776) ) PSI_server[44](); pthread_mutex_unlock(v1); if ( !v8 ) { if ( *(_QWORD *)(a1 + 2832) ) PSI_server[47](); pthread_cond_broadcast(a1 + 2784); } } else { if ( *(_QWORD *)(a1 + 2776) ) PSI_server[44](); pthread_mutex_unlock(v1); return 0; } return v7; }
_ma_bitmap_flush_all: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x40 MOV RBX,RDI LEA R14,[RDI + 0xa98] CMP qword ptr [RDI + 0xad8],0x0 JNZ 0x0014efca MOV RDI,R14 CALL 0x001291d0 LAB_0014edfa: MOV AL,byte ptr [RBX + 0xa30] TEST AL,AL JNZ 0x0014ee11 CMP byte ptr [RBX + 0xa31],0x0 JZ 0x0014ef97 LAB_0014ee11: CMP byte ptr [RBX + 0x7df],0x0 JNZ 0x0014ee27 TEST byte ptr [RBX + 0x170],0x1 JNZ 0x0014f00a LAB_0014ee27: TEST AL,AL JNZ 0x0014ee38 CMP byte ptr [RBX + 0xa31],0x0 JZ 0x0014efc2 LAB_0014ee38: INC dword ptr [RBX + 0xa40] MOV ECX,dword ptr [RBX + 0xa4c] LEA EDX,[RCX + 0x1] MOV dword ptr [RBX + 0xa4c],EDX CMP dword ptr [RBX + 0xa48],0x0 JZ 0x0014eea7 LEA R15,[RBX + 0xae0] LEA R12,[0x1db896] LAB_0014ee64: CMP qword ptr [RBX + 0xb10],0x0 JNZ 0x0014ee84 MOV RDI,R15 MOV RSI,R14 CALL 0x001293d0 LAB_0014ee79: CMP dword ptr [RBX + 0xa48],0x0 JNZ 0x0014ee64 JMP 0x0014ee99 LAB_0014ee84: MOV RDI,R15 MOV RSI,R14 MOV RDX,R12 MOV ECX,0x204 CALL 0x0012f11c JMP 0x0014ee79 LAB_0014ee99: MOV ECX,dword ptr [RBX + 0xa4c] MOV AL,byte ptr [RBX + 0xa30] DEC ECX LAB_0014eea7: MOV dword ptr [RBX + 0xa4c],ECX XOR R15D,R15D TEST AL,AL JZ 0x0014ef11 MOV word ptr [RBX + 0xa30],0x100 MOV RDI,qword ptr [RBX + 0x600] LEA RSI,[RBX + 0xa50] MOV RDX,qword ptr [RBX + 0xa20] MOV R8,qword ptr [RBX + 0xa18] MOV EAX,dword ptr [RDI + 0x80] MOV dword ptr [RSP + 0x30],EAX MOV dword ptr [RSP + 0x28],R15D XORPS XMM0,XMM0 MOVUPS xmmword ptr [RSP + 0x18],XMM0 MOV dword ptr [RSP + 0x10],R15D MOV dword ptr [RSP],R15D MOV dword ptr [RSP + 0x8],0x1 XOR ECX,ECX MOV R9D,0x1 CALL 0x0017003a MOV R15D,EAX LAB_0014ef11: MOV RDI,qword ptr [RBX + 0x600] LEA RSI,[RBX + 0xa50] LEA R8,[RBX + 0xb48] LEA RCX,[0x14f085] XOR EDX,EDX CALL 0x00170730 TEST AL,0x3 MOVZX EAX,R15B MOV R15D,0x1 CMOVZ R15D,EAX MOV byte ptr [RBX + 0xa31],0x0 DEC dword ptr [RBX + 0xa40] MOV EAX,dword ptr [RBX + 0xa4c] OR EAX,dword ptr [RBX + 0xa44] SETZ R12B LAB_0014ef61: MOV RDI,qword ptr [RBX + 0xad8] TEST RDI,RDI JNZ 0x0014efe3 LAB_0014ef6d: MOV RDI,R14 CALL 0x001291a0 TEST R12B,R12B JNZ 0x0014efb2 MOV RDI,qword ptr [RBX + 0xb10] ADD RBX,0xae0 TEST RDI,RDI JNZ 0x0014eff8 LAB_0014ef8d: MOV RDI,RBX CALL 0x00129660 JMP 0x0014efb2 LAB_0014ef97: MOV RDI,qword ptr [RBX + 0xad8] TEST RDI,RDI JNZ 0x0014f03e LAB_0014efa7: MOV RDI,R14 CALL 0x001291a0 XOR R15D,R15D LAB_0014efb2: MOV EAX,R15D ADD RSP,0x40 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_0014efc2: MOV R12B,0x1 XOR R15D,R15D JMP 0x0014ef61 LAB_0014efca: LEA RSI,[0x1db896] MOV RDI,R14 MOV EDX,0x1ee CALL 0x0012ee0b JMP 0x0014edfa LAB_0014efe3: LEA RAX,[0x489050] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x0014ef6d LAB_0014eff8: LEA RAX,[0x489050] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x178] JMP 0x0014ef8d LAB_0014f00a: MOV RDI,qword ptr [RBX + 0xad8] TEST RDI,RDI JNZ 0x0014f053 LAB_0014f016: MOV RDI,R14 CALL 0x001291a0 MOV RDI,RBX CALL 0x0013e52f MOV RDI,R14 MOV ESI,0x184 CALL 0x0014edab MOV AL,byte ptr [RBX + 0xa30] JMP 0x0014ee27 LAB_0014f03e: LEA RAX,[0x489050] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x0014efa7 LAB_0014f053: LEA RAX,[0x489050] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x0014f016
int1 _ma_bitmap_flush_all(long param_1) { pthread_mutex_t *__mutex; char cVar1; int1 uVar2; ulong uVar3; int iVar4; int1 uVar5; bool bVar6; __mutex = (pthread_mutex_t *)(param_1 + 0xa98); if (*(long *)(param_1 + 0xad8) == 0) { pthread_mutex_lock(__mutex); } else { psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_bitmap.c", 0x1ee); } cVar1 = *(char *)(param_1 + 0xa30); if ((cVar1 == '\0') && (*(char *)(param_1 + 0xa31) == '\0')) { if (*(long *)(param_1 + 0xad8) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock(__mutex); uVar5 = 0; } else { if ((*(char *)(param_1 + 0x7df) == '\0') && ((*(byte *)(param_1 + 0x170) & 1) != 0)) { if (*(long *)(param_1 + 0xad8) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock(__mutex); _ma_mark_file_changed_now(param_1); inline_mysql_mutex_lock(__mutex,0x184); cVar1 = *(char *)(param_1 + 0xa30); } if ((cVar1 == '\0') && (*(char *)(param_1 + 0xa31) == '\0')) { bVar6 = true; uVar5 = 0; } else { *(int *)(param_1 + 0xa40) = *(int *)(param_1 + 0xa40) + 1; iVar4 = *(int *)(param_1 + 0xa4c); *(int *)(param_1 + 0xa4c) = iVar4 + 1; if (*(int *)(param_1 + 0xa48) != 0) { do { if (*(long *)(param_1 + 0xb10) == 0) { pthread_cond_wait((pthread_cond_t *)(param_1 + 0xae0),__mutex); } else { psi_cond_wait((pthread_cond_t *)(param_1 + 0xae0),__mutex, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_bitmap.c",0x204 ); } } while (*(int *)(param_1 + 0xa48) != 0); cVar1 = *(char *)(param_1 + 0xa30); iVar4 = *(int *)(param_1 + 0xa4c) + -1; } *(int *)(param_1 + 0xa4c) = iVar4; uVar2 = 0; if (cVar1 != '\0') { *(int2 *)(param_1 + 0xa30) = 0x100; uVar2 = pagecache_write_part (*(long *)(param_1 + 0x600),param_1 + 0xa50, *(int8 *)(param_1 + 0xa20),0,*(int8 *)(param_1 + 0xa18),1,0,1 ,0,0,0,0,*(int4 *)(*(long *)(param_1 + 0x600) + 0x80)); } uVar3 = flush_pagecache_blocks_with_filter (*(int8 *)(param_1 + 0x600),param_1 + 0xa50,0, filter_flush_bitmap_pages,param_1 + 0xb48); uVar5 = 1; if ((uVar3 & 3) == 0) { uVar5 = uVar2; } *(int1 *)(param_1 + 0xa31) = 0; *(int *)(param_1 + 0xa40) = *(int *)(param_1 + 0xa40) + -1; bVar6 = *(int *)(param_1 + 0xa4c) == 0 && *(int *)(param_1 + 0xa44) == 0; } if (*(long *)(param_1 + 0xad8) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock(__mutex); if (!bVar6) { if (*(long *)(param_1 + 0xb10) != 0) { (**(code **)(PSI_server + 0x178))(); } pthread_cond_broadcast((pthread_cond_t *)(param_1 + 0xae0)); } } return uVar5; }
49,353
get_partition_id_range_for_endpoint(partition_info*, bool, bool)
eloqsql/sql/sql_partition.cc
uint32 get_partition_id_range_for_endpoint(partition_info *part_info, bool left_endpoint, bool include_endpoint) { longlong *range_array= part_info->range_int_array; longlong part_end_val; uint max_partition= part_info->num_parts - 1; uint min_part_id= 0, max_part_id= max_partition, loc_part_id; /* Get the partitioning function value for the endpoint */ longlong part_func_value= part_info->part_expr->val_int_endpoint(left_endpoint, &include_endpoint); bool unsigned_flag= part_info->part_expr->unsigned_flag; DBUG_ENTER("get_partition_id_range_for_endpoint"); if (part_info->part_expr->null_value) { /* Special handling for MONOTONIC functions that can return NULL for values that are comparable. I.e. '2000-00-00' can be compared to '2000-01-01' but TO_DAYS('2000-00-00') returns NULL which cannot be compared used <, >, <=, >= etc. Otherwise, just return the first partition (may be included if not left endpoint) */ enum_monotonicity_info monotonic; monotonic= part_info->part_expr->get_monotonicity_info(); if (monotonic != MONOTONIC_INCREASING_NOT_NULL && monotonic != MONOTONIC_STRICT_INCREASING_NOT_NULL) { /* F(col) can not return NULL, return partition with lowest value */ if (!left_endpoint && include_endpoint) DBUG_RETURN(1); DBUG_RETURN(0); } } if (unsigned_flag) part_func_value-= 0x8000000000000000ULL; if (left_endpoint && !include_endpoint) part_func_value++; /* Search for the partition containing part_func_value (including the right endpoint). */ while (max_part_id > min_part_id) { loc_part_id= (max_part_id + min_part_id) / 2; if (range_array[loc_part_id] < part_func_value) min_part_id= loc_part_id + 1; else max_part_id= loc_part_id; } loc_part_id= max_part_id; /* Adjust for endpoints */ part_end_val= range_array[loc_part_id]; if (left_endpoint) { DBUG_ASSERT(part_func_value > part_end_val ? (loc_part_id == max_partition && !part_info->defined_max_value) : 1); /* In case of PARTITION p VALUES LESS THAN MAXVALUE the maximum value is in the current (last) partition. If value is equal or greater than the endpoint, the range starts from the next partition. */ if (part_func_value >= part_end_val && (loc_part_id < max_partition || !part_info->defined_max_value)) loc_part_id++; if (part_info->part_type == VERSIONING_PARTITION && part_func_value < INT_MAX32 && loc_part_id > part_info->vers_info->hist_part->id) { /* Historical query with AS OF point after the last history partition must include last history partition because it can be overflown (contain history rows out of right endpoint). */ loc_part_id= part_info->vers_info->hist_part->id; } } else { /* if 'WHERE <= X' and partition is LESS THAN (X) include next partition */ if (include_endpoint && loc_part_id < max_partition && part_func_value == part_end_val) loc_part_id++; /* Right endpoint, set end after correct partition */ loc_part_id++; } DBUG_RETURN(loc_part_id); }
O0
cpp
get_partition_id_range_for_endpoint(partition_info*, bool, bool): pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movb %dl, %al movb %sil, %cl movq %rdi, -0x10(%rbp) andb $0x1, %cl movb %cl, -0x11(%rbp) andb $0x1, %al movb %al, -0x12(%rbp) movq -0x10(%rbp), %rax movq 0x178(%rax), %rax movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rax movl 0x204(%rax), %eax subl $0x1, %eax movl %eax, -0x2c(%rbp) movl $0x0, -0x30(%rbp) movl -0x2c(%rbp), %eax movl %eax, -0x34(%rbp) movq -0x10(%rbp), %rax movq 0x100(%rax), %rdi movb -0x11(%rbp), %cl movq (%rdi), %rax leaq -0x12(%rbp), %rdx andb $0x1, %cl movzbl %cl, %esi callq *0xe0(%rax) movq %rax, -0x40(%rbp) movq -0x10(%rbp), %rax movq 0x100(%rax), %rax movb 0xe(%rax), %al andb $0x1, %al movb %al, -0x41(%rbp) movq -0x10(%rbp), %rax movq 0x100(%rax), %rax testb $0x1, 0x64(%rax) je 0xa8f76e movq -0x10(%rbp), %rax movq 0x100(%rax), %rdi movq (%rdi), %rax callq *0xd8(%rax) movl %eax, -0x48(%rbp) cmpl $0x2, -0x48(%rbp) je 0xa8f76c cmpl $0x4, -0x48(%rbp) je 0xa8f76c testb $0x1, -0x11(%rbp) jne 0xa8f75e testb $0x1, -0x12(%rbp) je 0xa8f75e jmp 0xa8f752 movl $0x1, -0x4(%rbp) jmp 0xa8f89e jmp 0xa8f760 movl $0x0, -0x4(%rbp) jmp 0xa8f89e jmp 0xa8f76e testb $0x1, -0x41(%rbp) je 0xa8f789 movq -0x40(%rbp), %rax movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000 subq %rcx, %rax movq %rax, -0x40(%rbp) testb $0x1, -0x11(%rbp) je 0xa8f7a1 testb $0x1, -0x12(%rbp) jne 0xa8f7a1 movq -0x40(%rbp), %rax addq $0x1, %rax movq %rax, -0x40(%rbp) jmp 0xa8f7a3 movl -0x34(%rbp), %eax cmpl -0x30(%rbp), %eax jbe 0xa8f7da movl -0x34(%rbp), %eax addl -0x30(%rbp), %eax shrl %eax movl %eax, -0x38(%rbp) movq -0x20(%rbp), %rax movl -0x38(%rbp), %ecx movq (%rax,%rcx,8), %rax cmpq -0x40(%rbp), %rax jge 0xa8f7d2 movl -0x38(%rbp), %eax addl $0x1, %eax movl %eax, -0x30(%rbp) jmp 0xa8f7d8 movl -0x38(%rbp), %eax movl %eax, -0x34(%rbp) jmp 0xa8f7a3 movl -0x34(%rbp), %eax movl %eax, -0x38(%rbp) movq -0x20(%rbp), %rax movl -0x38(%rbp), %ecx movq (%rax,%rcx,8), %rax movq %rax, -0x28(%rbp) testb $0x1, -0x11(%rbp) je 0xa8f86c jmp 0xa8f7f7 jmp 0xa8f7f9 movq -0x40(%rbp), %rax cmpq -0x28(%rbp), %rax jl 0xa8f821 movl -0x38(%rbp), %eax cmpl -0x2c(%rbp), %eax jb 0xa8f818 movq -0x10(%rbp), %rax testb $0x1, 0x235(%rax) jne 0xa8f821 movl -0x38(%rbp), %eax addl $0x1, %eax movl %eax, -0x38(%rbp) movq -0x10(%rbp), %rax cmpl $0x4, 0x1f8(%rax) jne 0xa8f86a cmpq $0x7fffffff, -0x40(%rbp) # imm = 0x7FFFFFFF jge 0xa8f86a movl -0x38(%rbp), %eax movq -0x10(%rbp), %rcx movq 0x180(%rcx), %rcx movq 0x60(%rcx), %rcx cmpl 0xa4(%rcx), %eax jbe 0xa8f86a movq -0x10(%rbp), %rax movq 0x180(%rax), %rax movq 0x60(%rax), %rax movl 0xa4(%rax), %eax movl %eax, -0x38(%rbp) jmp 0xa8f896 testb $0x1, -0x12(%rbp) je 0xa8f88d movl -0x38(%rbp), %eax cmpl -0x2c(%rbp), %eax jae 0xa8f88d movq -0x40(%rbp), %rax cmpq -0x28(%rbp), %rax jne 0xa8f88d movl -0x38(%rbp), %eax addl $0x1, %eax movl %eax, -0x38(%rbp) movl -0x38(%rbp), %eax addl $0x1, %eax movl %eax, -0x38(%rbp) jmp 0xa8f898 movl -0x38(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x50, %rsp popq %rbp retq nopw (%rax,%rax)
_Z35get_partition_id_range_for_endpointP14partition_infobb: push rbp mov rbp, rsp sub rsp, 50h mov al, dl mov cl, sil mov [rbp+var_10], rdi and cl, 1 mov [rbp+var_11], cl and al, 1 mov [rbp+var_12], al mov rax, [rbp+var_10] mov rax, [rax+178h] mov [rbp+var_20], rax mov rax, [rbp+var_10] mov eax, [rax+204h] sub eax, 1 mov [rbp+var_2C], eax mov [rbp+var_30], 0 mov eax, [rbp+var_2C] mov [rbp+var_34], eax mov rax, [rbp+var_10] mov rdi, [rax+100h] mov cl, [rbp+var_11] mov rax, [rdi] lea rdx, [rbp+var_12] and cl, 1 movzx esi, cl call qword ptr [rax+0E0h] mov [rbp+var_40], rax mov rax, [rbp+var_10] mov rax, [rax+100h] mov al, [rax+0Eh] and al, 1 mov [rbp+var_41], al mov rax, [rbp+var_10] mov rax, [rax+100h] test byte ptr [rax+64h], 1 jz short loc_A8F76E mov rax, [rbp+var_10] mov rdi, [rax+100h] mov rax, [rdi] call qword ptr [rax+0D8h] mov [rbp+var_48], eax cmp [rbp+var_48], 2 jz short loc_A8F76C cmp [rbp+var_48], 4 jz short loc_A8F76C test [rbp+var_11], 1 jnz short loc_A8F75E test [rbp+var_12], 1 jz short loc_A8F75E jmp short $+2 loc_A8F752: mov [rbp+var_4], 1 jmp loc_A8F89E loc_A8F75E: jmp short $+2 loc_A8F760: mov [rbp+var_4], 0 jmp loc_A8F89E loc_A8F76C: jmp short $+2 loc_A8F76E: test [rbp+var_41], 1 jz short loc_A8F789 mov rax, [rbp+var_40] mov rcx, 8000000000000000h sub rax, rcx mov [rbp+var_40], rax loc_A8F789: test [rbp+var_11], 1 jz short loc_A8F7A1 test [rbp+var_12], 1 jnz short loc_A8F7A1 mov rax, [rbp+var_40] add rax, 1 mov [rbp+var_40], rax loc_A8F7A1: jmp short $+2 loc_A8F7A3: mov eax, [rbp+var_34] cmp eax, [rbp+var_30] jbe short loc_A8F7DA mov eax, [rbp+var_34] add eax, [rbp+var_30] shr eax, 1 mov [rbp+var_38], eax mov rax, [rbp+var_20] mov ecx, [rbp+var_38] mov rax, [rax+rcx*8] cmp rax, [rbp+var_40] jge short loc_A8F7D2 mov eax, [rbp+var_38] add eax, 1 mov [rbp+var_30], eax jmp short loc_A8F7D8 loc_A8F7D2: mov eax, [rbp+var_38] mov [rbp+var_34], eax loc_A8F7D8: jmp short loc_A8F7A3 loc_A8F7DA: mov eax, [rbp+var_34] mov [rbp+var_38], eax mov rax, [rbp+var_20] mov ecx, [rbp+var_38] mov rax, [rax+rcx*8] mov [rbp+var_28], rax test [rbp+var_11], 1 jz short loc_A8F86C jmp short $+2 loc_A8F7F7: jmp short $+2 loc_A8F7F9: mov rax, [rbp+var_40] cmp rax, [rbp+var_28] jl short loc_A8F821 mov eax, [rbp+var_38] cmp eax, [rbp+var_2C] jb short loc_A8F818 mov rax, [rbp+var_10] test byte ptr [rax+235h], 1 jnz short loc_A8F821 loc_A8F818: mov eax, [rbp+var_38] add eax, 1 mov [rbp+var_38], eax loc_A8F821: mov rax, [rbp+var_10] cmp dword ptr [rax+1F8h], 4 jnz short loc_A8F86A cmp [rbp+var_40], 7FFFFFFFh jge short loc_A8F86A mov eax, [rbp+var_38] mov rcx, [rbp+var_10] mov rcx, [rcx+180h] mov rcx, [rcx+60h] cmp eax, [rcx+0A4h] jbe short loc_A8F86A mov rax, [rbp+var_10] mov rax, [rax+180h] mov rax, [rax+60h] mov eax, [rax+0A4h] mov [rbp+var_38], eax loc_A8F86A: jmp short loc_A8F896 loc_A8F86C: test [rbp+var_12], 1 jz short loc_A8F88D mov eax, [rbp+var_38] cmp eax, [rbp+var_2C] jnb short loc_A8F88D mov rax, [rbp+var_40] cmp rax, [rbp+var_28] jnz short loc_A8F88D mov eax, [rbp+var_38] add eax, 1 mov [rbp+var_38], eax loc_A8F88D: mov eax, [rbp+var_38] add eax, 1 mov [rbp+var_38], eax loc_A8F896: jmp short $+2 loc_A8F898: mov eax, [rbp+var_38] mov [rbp+var_4], eax loc_A8F89E: mov eax, [rbp+var_4] add rsp, 50h pop rbp retn
long long get_partition_id_range_for_endpoint(partition_info *a1, char a2, char a3) { int v4; // [rsp+8h] [rbp-48h] char v5; // [rsp+Fh] [rbp-41h] long long v6; // [rsp+10h] [rbp-40h] unsigned int v7; // [rsp+18h] [rbp-38h] unsigned int v8; // [rsp+1Ch] [rbp-34h] unsigned int v9; // [rsp+20h] [rbp-30h] unsigned int v10; // [rsp+24h] [rbp-2Ch] long long v11; // [rsp+28h] [rbp-28h] long long v12; // [rsp+30h] [rbp-20h] char v13; // [rsp+3Eh] [rbp-12h] BYREF char v14; // [rsp+3Fh] [rbp-11h] partition_info *v15; // [rsp+40h] [rbp-10h] v15 = a1; v14 = a2 & 1; v13 = a3 & 1; v12 = *((_QWORD *)a1 + 47); v10 = *((_DWORD *)a1 + 129) - 1; v9 = 0; v8 = v10; v6 = (*(long long ( **)(_QWORD, _QWORD, char *))(**((_QWORD **)a1 + 32) + 224LL))( *((_QWORD *)a1 + 32), a2 & 1, &v13); v5 = *(_BYTE *)(*((_QWORD *)v15 + 32) + 14LL) & 1; if ( (*(_BYTE *)(*((_QWORD *)v15 + 32) + 100LL) & 1) == 0 || (v4 = (*(long long ( **)(_QWORD))(**((_QWORD **)v15 + 32) + 216LL))(*((_QWORD *)v15 + 32)), v4 == 2) || v4 == 4 ) { if ( (v5 & 1) != 0 ) v6 += 0x8000000000000000LL; if ( (v14 & 1) != 0 && (v13 & 1) == 0 ) ++v6; while ( v8 > v9 ) { if ( *(_QWORD *)(v12 + 8LL * ((v9 + v8) >> 1)) >= v6 ) v8 = (v9 + v8) >> 1; else v9 = ((v9 + v8) >> 1) + 1; } v7 = v8; v11 = *(_QWORD *)(v12 + 8LL * v8); if ( (v14 & 1) != 0 ) { if ( v6 >= v11 && (v8 < v10 || (*((_BYTE *)v15 + 565) & 1) == 0) ) v7 = v8 + 1; if ( *((_DWORD *)v15 + 126) == 4 && v6 < 0x7FFFFFFF && v7 > *(_DWORD *)(*(_QWORD *)(*((_QWORD *)v15 + 48) + 96LL) + 164LL) ) { return *(unsigned int *)(*(_QWORD *)(*((_QWORD *)v15 + 48) + 96LL) + 164LL); } } else { if ( (v13 & 1) != 0 && v8 < v10 && v6 == v11 ) v7 = v8 + 1; ++v7; } return v7; } else { return (v14 & 1) == 0 && (v13 & 1) != 0; } }
get_item_copy<Item_func_distance>: 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] CALL 0x009f28f0 MOV RSI,RAX MOV qword ptr [RBP + -0x48],RSI MOV EDI,0x218 CALL 0x005b54b0 MOV RCX,RAX MOV qword ptr [RBP + -0x40],RCX MOV byte ptr [RBP + -0x19],0x0 XOR EAX,EAX CMP RCX,0x0 MOV qword ptr [RBP + -0x38],RAX JZ 0x00a8f6ee MOV RDI,qword ptr [RBP + -0x40] MOV byte ptr [RBP + -0x19],0x1 MOV RSI,qword ptr [RBP + -0x10] LAB_00a8f6dd: CALL 0x00a8f750 LAB_00a8f6e2: JMP 0x00a8f6e4 LAB_00a8f6e4: MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x38],RAX JMP 0x00a8f6ee LAB_00a8f6ee: MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x18],RAX CMP qword ptr [RBP + -0x18],0x0 JZ 0x00a8f72f MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x8] CALL 0x00a0eda0 JMP 0x00a8f72f LAB_00a8f72f: MOV RAX,qword ptr [RBP + -0x18] ADD RSP,0x50 POP RBP RET
/* Item* get_item_copy<Item_func_distance>(THD*, Item_func_distance*) */ Item * get_item_copy<Item_func_distance>(THD *param_1,Item_func_distance *param_2) { st_mem_root *psVar1; Item_func_distance *this; int8 local_40; psVar1 = (st_mem_root *)get_thd_memroot(param_1); this = (Item_func_distance *)Item::operator_new(0x218,psVar1); local_40 = (Item *)0x0; if (this != (Item_func_distance *)0x0) { /* try { // try from 00a8f6dd to 00a8f6e1 has its CatchHandler @ 00a8f70c */ Item_func_distance::Item_func_distance(this,param_2); local_40 = (Item *)this; } if (local_40 != (Item *)0x0) { Item::register_in(local_40,param_1); } return (Item *)local_40; }
49,354
get_dynamic
eloqsql/mysys/array.c
void get_dynamic(DYNAMIC_ARRAY *array, void *element, uint idx) { if (idx >= array->elements) { DBUG_PRINT("warning",("To big array idx: %d, array size is %d", idx,array->elements)); bzero(element,array->size_of_element); return; } memcpy(element,array->buffer+idx*array->size_of_element, (size_t) array->size_of_element); }
O3
c
get_dynamic: pushq %rbp movq %rsp, %rbp cmpl %edx, 0x8(%rdi) jbe 0x32eb2 movl 0x14(%rdi), %eax imull %eax, %edx addq (%rdi), %rdx movq %rsi, %rdi movq %rdx, %rsi movq %rax, %rdx popq %rbp jmp 0x24290 movl 0x14(%rdi), %edx movq %rsi, %rdi xorl %esi, %esi popq %rbp jmp 0x241e0
get_dynamic: push rbp mov rbp, rsp cmp [rdi+8], edx jbe short loc_32EB2 mov eax, [rdi+14h] imul edx, eax add rdx, [rdi] mov rdi, rsi mov rsi, rdx mov rdx, rax pop rbp jmp _memcpy loc_32EB2: mov edx, [rdi+14h] mov rdi, rsi xor esi, esi pop rbp jmp _memset
long long get_dynamic(long long a1, long long a2, unsigned int a3) { if ( *(_DWORD *)(a1 + 8) <= a3 ) return memset(a2, 0LL, *(unsigned int *)(a1 + 20)); else return memcpy(a2, *(_QWORD *)a1 + *(_DWORD *)(a1 + 20) * a3); }
get_dynamic: PUSH RBP MOV RBP,RSP CMP dword ptr [RDI + 0x8],EDX JBE 0x00132eb2 MOV EAX,dword ptr [RDI + 0x14] IMUL EDX,EAX ADD RDX,qword ptr [RDI] MOV RDI,RSI MOV RSI,RDX MOV RDX,RAX POP RBP JMP 0x00124290 LAB_00132eb2: MOV EDX,dword ptr [RDI + 0x14] MOV RDI,RSI XOR ESI,ESI POP RBP JMP 0x001241e0
void get_dynamic(long *param_1,void *param_2,uint param_3) { if (param_3 < *(uint *)(param_1 + 1)) { memcpy(param_2,(void *)((ulong)(param_3 * *(uint *)((long)param_1 + 0x14)) + *param_1), (ulong)*(uint *)((long)param_1 + 0x14)); return; } memset(param_2,0,(ulong)*(uint *)((long)param_1 + 0x14)); return; }
49,355
nlohmann::json_abi_v3_12_0::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_12_0::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>& nlohmann::json_abi_v3_12_0::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_12_0::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::operator[]<char const>(char const*)
shubhamoy[P]dir2txt/include/nlohmann/json.hpp
reference operator[](T* key) { return operator[](typename object_t::key_type(key)); }
O3
cpp
nlohmann::json_abi_v3_12_0::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_12_0::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>& nlohmann::json_abi_v3_12_0::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_12_0::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::operator[]<char const>(char const*): pushq %r14 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx leaq 0x8(%rsp), %r14 leaq 0x7(%rsp), %rdx movq %r14, %rdi callq 0xb96a movq %rbx, %rdi movq %r14, %rsi callq 0x2939c movq %rax, %rbx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x28a67 movq 0x18(%rsp), %rsi incq %rsi callq 0x8380 movq %rbx, %rax addq $0x28, %rsp popq %rbx popq %r14 retq movq %rax, %rbx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x28a90 movq 0x18(%rsp), %rsi incq %rsi callq 0x8380 movq %rbx, %rdi callq 0x85d0
_ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERSD_PT_: push r14 push rbx sub rsp, 28h mov rbx, rdi lea r14, [rsp+38h+var_30] lea rdx, [rsp+38h+var_31] mov rdi, r14 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) mov rdi, rbx mov rsi, r14 call _ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixES9_; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::operator[](std::string) mov rbx, rax lea rax, [rsp+38h+var_20] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_28A67 mov rsi, [rsp+38h+var_20] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_28A67: mov rax, rbx add rsp, 28h pop rbx pop r14 retn mov rbx, rax lea rax, [rsp+arg_10] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_28A90 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_28A90: mov rdi, rbx call __Unwind_Resume
long long nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>( long long a1, _BYTE *a2) { long long v2; // rbx void *v4[2]; // [rsp+8h] [rbp-30h] BYREF long long v5; // [rsp+18h] [rbp-20h] BYREF std::string::basic_string<std::allocator<char>>(v4, a2); v2 = nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned char>,void>::operator[]( a1, v4); if ( v4[0] != &v5 ) operator delete(v4[0], v5 + 1); return v2; }
operator[]<char_const>: PUSH R14 PUSH RBX SUB RSP,0x28 MOV RBX,RDI LEA R14,[RSP + 0x8] LEA RDX,[RSP + 0x7] MOV RDI,R14 CALL 0x0010b96a LAB_00128a3e: MOV RDI,RBX MOV RSI,R14 CALL 0x0012939c LAB_00128a49: MOV RBX,RAX LEA RAX,[RSP + 0x18] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00128a67 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x00108380 LAB_00128a67: MOV RAX,RBX ADD RSP,0x28 POP RBX POP R14 RET
/* nlohmann::json_abi_v3_12_0::basic_json<std::map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_12_0::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>& nlohmann::json_abi_v3_12_0::basic_json<std::map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_12_0::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>::operator[]<char const>(char const*) */ basic_json * __thiscall nlohmann::json_abi_v3_12_0:: basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator[]<char_const> (basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *this,char *param_1) { basic_json *pbVar1; allocator local_31; long *local_30 [2]; long local_20 [2]; std::__cxx11::string::string<std::allocator<char>>((string *)local_30,param_1,&local_31); /* try { // try from 00128a3e to 00128a48 has its CatchHandler @ 00128a72 */ pbVar1 = (basic_json *)operator[](this,(string *)local_30); if (local_30[0] != local_20) { operator_delete(local_30[0],local_20[0] + 1); } return pbVar1; }
49,356
JS_StringToBigInt
bluesky950520[P]quickjs/quickjs.c
static JSValue JS_StringToBigInt(JSContext *ctx, JSValue val) { const char *str; size_t len; int flags; str = JS_ToCStringLen(ctx, &len, val); JS_FreeValue(ctx, val); if (!str) return JS_EXCEPTION; flags = ATOD_WANT_BIG_INT | ATOD_TRIM_SPACES | ATOD_ACCEPT_EMPTY | ATOD_ACCEPT_HEX_PREFIX | ATOD_ACCEPT_BIN_OCT | ATOD_DECIMAL_AFTER_SIGN | ATOD_NO_TRAILING_CHARS; val = js_atof(ctx, str, len, NULL, 10, flags); JS_FreeCString(ctx, str); return val; }
O1
c
JS_StringToBigInt: pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rdx, %r12 movq %rsi, %r13 movq %rdi, %r15 leaq 0x8(%rsp), %rsi xorl %ebx, %ebx movq %r13, %rdx movq %r12, %rcx xorl %r8d, %r8d callq 0x20bf7 movq %rax, %r14 movq 0x18(%r15), %rdi movq %r13, %rsi movq %r12, %rdx callq 0x1d8c6 testq %r14, %r14 je 0x3e5f4 movq 0x8(%rsp), %rdx movq %r15, %rdi movq %r14, %rsi xorl %ecx, %ecx movl $0xa, %r8d movl $0x733, %r9d # imm = 0x733 callq 0x3e60e movq %rax, %rbx movq %rdx, %r12 movq 0x18(%r15), %rdi movl -0x18(%r14), %eax leal -0x1(%rax), %ecx movl %ecx, -0x18(%r14) cmpl $0x1, %eax jg 0x3e5fa addq $-0x18, %r14 movq %r14, %rsi movq $-0x7, %rdx callq 0x21266 jmp 0x3e5fa movl $0x6, %r12d movq %rbx, %rax movq %r12, %rdx addq $0x10, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq
JS_StringToBigInt: push r15 push r14 push r13 push r12 push rbx sub rsp, 10h mov r12, rdx mov r13, rsi mov r15, rdi lea rsi, [rsp+38h+var_30] xor ebx, ebx mov rdx, r13 mov rcx, r12 xor r8d, r8d call JS_ToCStringLen2 mov r14, rax mov rdi, [r15+18h] mov rsi, r13 mov rdx, r12 call JS_FreeValueRT test r14, r14 jz short loc_3E5F4 mov rdx, [rsp+38h+var_30] mov rdi, r15 mov rsi, r14 xor ecx, ecx mov r8d, 0Ah mov r9d, 733h call js_atof mov rbx, rax mov r12, rdx mov rdi, [r15+18h] mov eax, [r14-18h] lea ecx, [rax-1] mov [r14-18h], ecx cmp eax, 1 jg short loc_3E5FA add r14, 0FFFFFFFFFFFFFFE8h mov rsi, r14 mov rdx, 0FFFFFFFFFFFFFFF9h call js_free_value_rt jmp short loc_3E5FA loc_3E5F4: mov r12d, 6 loc_3E5FA: mov rax, rbx mov rdx, r12 add rsp, 10h pop rbx pop r12 pop r13 pop r14 pop r15 retn
long long JS_StringToBigInt(long long a1, _DWORD *a2, long long a3) { long long v4; // rbx long long v5; // r14 long long v6; // rdi int v7; // eax long long v9[6]; // [rsp+8h] [rbp-30h] BYREF v4 = 0LL; v5 = JS_ToCStringLen2(a1, v9, (long long)a2, a3, 0); JS_FreeValueRT(*(_QWORD *)(a1 + 24), a2, a3); if ( v5 ) { v4 = js_atof(a1, v5, v9[0], 0LL, 10LL, 1843LL); v6 = *(_QWORD *)(a1 + 24); v7 = *(_DWORD *)(v5 - 24); *(_DWORD *)(v5 - 24) = v7 - 1; if ( v7 <= 1 ) js_free_value_rt(v6, (_QWORD *)(v5 - 24), -7); } return v4; }
49,357
JS_StringToBigInt
bluesky950520[P]quickjs/quickjs.c
static JSValue JS_StringToBigInt(JSContext *ctx, JSValue val) { const char *str; size_t len; int flags; str = JS_ToCStringLen(ctx, &len, val); JS_FreeValue(ctx, val); if (!str) return JS_EXCEPTION; flags = ATOD_WANT_BIG_INT | ATOD_TRIM_SPACES | ATOD_ACCEPT_EMPTY | ATOD_ACCEPT_HEX_PREFIX | ATOD_ACCEPT_BIN_OCT | ATOD_DECIMAL_AFTER_SIGN | ATOD_NO_TRAILING_CHARS; val = js_atof(ctx, str, len, NULL, 10, flags); JS_FreeCString(ctx, str); return val; }
O2
c
JS_StringToBigInt: pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r15 movq %rsi, %r12 movq %rdi, %rbx movq %rsp, %rsi movq %r12, %rdx movq %r15, %rcx callq 0x36bee movq %rax, %r14 movq %rbx, %rdi movq %r12, %rsi movq %r15, %rdx callq 0x1801e testq %r14, %r14 je 0x36bd5 movq (%rsp), %rdx pushq $0xa popq %r8 movq %rbx, %rdi movq %r14, %rsi xorl %ecx, %ecx movl $0x733, %r9d # imm = 0x733 callq 0x36bf6 movq %rax, %r12 movq %rdx, %r15 movq %rbx, %rdi movq %r14, %rsi callq 0x1b057 jmp 0x36bdc pushq $0x6 popq %r15 xorl %r12d, %r12d movq %r12, %rax movq %r15, %rdx addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
JS_StringToBigInt: push r15 push r14 push r12 push rbx push rax mov r15, rdx mov r12, rsi mov rbx, rdi mov rsi, rsp mov rdx, r12 mov rcx, r15 call JS_ToCStringLen_0 mov r14, rax mov rdi, rbx mov rsi, r12 mov rdx, r15 call JS_FreeValue test r14, r14 jz short loc_36BD5 mov rdx, [rsp+28h+var_28] push 0Ah pop r8 mov rdi, rbx mov rsi, r14 xor ecx, ecx mov r9d, 733h call js_atof mov r12, rax mov r15, rdx mov rdi, rbx mov rsi, r14 call JS_FreeCString jmp short loc_36BDC loc_36BD5: push 6 pop r15 xor r12d, r12d loc_36BDC: mov rax, r12 mov rdx, r15 add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn
long long JS_StringToBigInt(long long a1, long long a2, long long a3) { long long v3; // rax long long v5; // r14 long long v6; // r12 _QWORD v8[5]; // [rsp+0h] [rbp-28h] BYREF v8[0] = v3; v5 = JS_ToCStringLen_0(a1, v8, a2, a3); JS_FreeValue(a1, a2, a3); if ( !v5 ) return 0LL; v6 = js_atof(a1, v5, v8[0], 0LL, 10LL, 1843LL); JS_FreeCString(a1, v5); return v6; }
JS_StringToBigInt: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV R15,RDX MOV R12,RSI MOV RBX,RDI MOV RSI,RSP MOV RDX,R12 MOV RCX,R15 CALL 0x00136bee MOV R14,RAX MOV RDI,RBX MOV RSI,R12 MOV RDX,R15 CALL 0x0011801e TEST R14,R14 JZ 0x00136bd5 MOV RDX,qword ptr [RSP] PUSH 0xa POP R8 MOV RDI,RBX MOV RSI,R14 XOR ECX,ECX MOV R9D,0x733 CALL 0x00136bf6 MOV R12,RAX MOV R15,RDX MOV RDI,RBX MOV RSI,R14 CALL 0x0011b057 JMP 0x00136bdc LAB_00136bd5: PUSH 0x6 POP R15 XOR R12D,R12D LAB_00136bdc: MOV RAX,R12 MOV RDX,R15 ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
int1 [16] JS_StringToBigInt(int8 param_1,int8 param_2,int8 param_3) { int8 in_RAX; long lVar1; int1 auVar2 [16]; int8 local_28; local_28 = in_RAX; lVar1 = JS_ToCStringLen(param_1,&local_28,param_2,param_3); JS_FreeValue(param_1,param_2,param_3); if (lVar1 == 0) { auVar2 = ZEXT816(6) << 0x40; } else { auVar2 = js_atof(param_1,lVar1,local_28,0,10,0x733); JS_FreeCString(param_1,lVar1); } return auVar2; }
49,358
LefDefParser::lefwEndArrayFloorplan(char const*)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp
int lefwEndArrayFloorplan(const char *name) { if (!lefwFile) return LEFW_UNINITIALIZED; if (!lefwIsArrayFloorp) return LEFW_BAD_ORDER; if (!name || name == 0 || *name == 0) return LEFW_BAD_DATA; if (lefwWriteEncrypt) encPrint(lefwFile, (char*) " END %s\n\n", name); else fprintf(lefwFile, " END %s\n\n", name); lefwLines++; lefwIsArrayFloorp = 0; return LEFW_OK; }
O3
cpp
LefDefParser::lefwEndArrayFloorplan(char const*): pushq %rbx movq %rdi, %rdx leaq 0x13080(%rip), %rax # 0x24e00 movq (%rax), %rdi testq %rdi, %rdi je 0x11dbc leaq 0x132e9(%rip), %rbx # 0x25078 cmpl $0x0, (%rbx) je 0x11dc3 movl $0x3, %eax testq %rdx, %rdx je 0x11de9 cmpb $0x0, (%rdx) je 0x11de9 cmpb $0x1, 0x13342(%rip) # 0x250ec jne 0x11dca leaq 0x9625(%rip), %rsi # 0x1b3d8 xorl %eax, %eax callq 0x18c35 jmp 0x11dd8 movl $0x1, %eax jmp 0x11de9 movl $0x2, %eax jmp 0x11de9 leaq 0x9607(%rip), %rsi # 0x1b3d8 xorl %eax, %eax callq 0x10f0 leaq 0x1326d(%rip), %rax # 0x2504c incl (%rax) movl $0x0, (%rbx) xorl %eax, %eax popq %rbx retq
_ZN12LefDefParser21lefwEndArrayFloorplanEPKc: push rbx mov rdx, rdi lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] test rdi, rdi jz short loc_11DBC lea rbx, _ZN12LefDefParser17lefwIsArrayFloorpE; LefDefParser::lefwIsArrayFloorp cmp dword ptr [rbx], 0 jz short loc_11DC3 mov eax, 3 test rdx, rdx jz short loc_11DE9 cmp byte ptr [rdx], 0 jz short loc_11DE9 cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 1; LefDefParser::lefwWriteEncrypt jnz short loc_11DCA lea rsi, aEndS; " END %s\n\n" xor eax, eax call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) jmp short loc_11DD8 loc_11DBC: mov eax, 1 jmp short loc_11DE9 loc_11DC3: mov eax, 2 jmp short loc_11DE9 loc_11DCA: lea rsi, aEndS; " END %s\n\n" xor eax, eax call _fprintf loc_11DD8: lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines inc dword ptr [rax] mov dword ptr [rbx], 0 xor eax, eax loc_11DE9: pop rbx retn
long long LefDefParser::lefwEndArrayFloorplan( LefDefParser *this, const char *a2, long long a3, int a4, int a5, int a6) { long long result; // rax if ( !*(_QWORD *)&LefDefParser::lefwFile ) return 1LL; if ( !LefDefParser::lefwIsArrayFloorp ) return 2LL; result = 3LL; if ( this && *(_BYTE *)this ) { if ( LefDefParser::lefwWriteEncrypt == 1 ) LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)" END %s\n\n", (_DWORD)this, a4, a5, a6); else fprintf(*(_QWORD *)&LefDefParser::lefwFile, " END %s\n\n", (const char *)this); ++LefDefParser::lefwLines; LefDefParser::lefwIsArrayFloorp = 0; return 0LL; } return result; }
lefwEndArrayFloorplan: PUSH RBX MOV RDX,RDI LEA RAX,[0x124e00] MOV RDI,qword ptr [RAX] TEST RDI,RDI JZ 0x00111dbc LEA RBX,[0x125078] CMP dword ptr [RBX],0x0 JZ 0x00111dc3 MOV EAX,0x3 TEST RDX,RDX JZ 0x00111de9 CMP byte ptr [RDX],0x0 JZ 0x00111de9 CMP byte ptr [0x001250ec],0x1 JNZ 0x00111dca LEA RSI,[0x11b3d8] XOR EAX,EAX CALL 0x00118c35 JMP 0x00111dd8 LAB_00111dbc: MOV EAX,0x1 JMP 0x00111de9 LAB_00111dc3: MOV EAX,0x2 JMP 0x00111de9 LAB_00111dca: LEA RSI,[0x11b3d8] XOR EAX,EAX CALL 0x001010f0 LAB_00111dd8: LEA RAX,[0x12504c] INC dword ptr [RAX] MOV dword ptr [RBX],0x0 XOR EAX,EAX LAB_00111de9: POP RBX RET
/* LefDefParser::lefwEndArrayFloorplan(char const*) */ int8 LefDefParser::lefwEndArrayFloorplan(char *param_1) { int8 uVar1; if (lefwFile == (_IO_FILE *)0x0) { uVar1 = 1; } else if (lefwIsArrayFloorp == 0) { uVar1 = 2; } else { uVar1 = 3; if ((param_1 != (char *)0x0) && (*param_1 != '\0')) { if (lefwWriteEncrypt == '\x01') { encPrint(lefwFile," END %s\n\n"); } else { fprintf(lefwFile," END %s\n\n"); } lefwLines = lefwLines + 1; lefwIsArrayFloorp = 0; uVar1 = 0; } } return uVar1; }
49,359
clip_log_internal(ggml_log_level, char const*, ...)
llama.cpp/examples/llava/clip-impl.h
static void clip_log_internal(enum ggml_log_level level, const char * format, ...) { va_list args; va_start(args, format); clip_log_internal_v(level, format, args); va_end(args); }
O3
c
clip_log_internal(ggml_log_level, char const*, ...): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x170, %rsp # imm = 0x170 movq %rsi, %r14 leaq 0xc0(%rsp), %rsi movq %rdx, 0x10(%rsi) movq %rcx, 0x18(%rsi) movq %r8, 0x20(%rsi) movq %r9, 0x28(%rsi) testb %al, %al je 0x31562 movaps %xmm0, 0xf0(%rsp) movaps %xmm1, 0x100(%rsp) movaps %xmm2, 0x110(%rsp) movaps %xmm3, 0x120(%rsp) movaps %xmm4, 0x130(%rsp) movaps %xmm5, 0x140(%rsp) movaps %xmm6, 0x150(%rsp) movaps %xmm7, 0x160(%rsp) movq %rsi, 0x10(%rsp) leaq 0x1a0(%rsp), %rax movq %rax, 0x8(%rsp) movabsq $0x3000000010, %rax # imm = 0x3000000010 movq %rax, (%rsp) testq %r14, %r14 je 0x3161d movl %edi, %ebx movq %rsp, %rcx movq 0x10(%rcx), %rax movq %rax, 0x30(%rsp) movaps (%rcx), %xmm0 movaps %xmm0, 0x20(%rsp) leaq 0x40(%rsp), %rdi movl $0x80, %esi movq %r14, %rdx callq 0x24c28 cmpl $0x7f, %eax jg 0x315cf leaq 0x15e871(%rip), %rax # 0x18fe30 movq 0x10(%rax), %rdx leaq 0x40(%rsp), %rsi movl %ebx, %edi callq *0x8(%rax) jmp 0x3161d movl %eax, %r15d leal 0x1(%r15), %r12d movl $0x1, %esi movq %r12, %rdi callq 0x243b0 movq %rax, %r13 leaq 0x20(%rsp), %rcx movq %rax, %rdi movq %r12, %rsi movq %r14, %rdx callq 0x24c28 movl %r15d, %eax movb $0x0, (%r13,%rax) leaq 0x15e827(%rip), %rax # 0x18fe30 movq 0x10(%rax), %rdx movl %ebx, %edi movq %r13, %rsi callq *0x8(%rax) movq %r13, %rdi callq 0x23300 addq $0x170, %rsp # imm = 0x170 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq
_ZL17clip_log_internal14ggml_log_levelPKcz: push r15 push r14 push r13 push r12 push rbx sub rsp, 170h mov r14, rsi lea rsi, [rsp+198h+var_D8] mov [rsi+10h], rdx mov [rsi+18h], rcx mov [rsi+20h], r8 mov [rsi+28h], r9 test al, al jz short loc_31562 movaps [rsp+198h+var_A8], xmm0 movaps [rsp+198h+var_98], xmm1 movaps [rsp+198h+var_88], xmm2 movaps [rsp+198h+var_78], xmm3 movaps [rsp+198h+var_68], xmm4 movaps [rsp+198h+var_58], xmm5 movaps [rsp+198h+var_48], xmm6 movaps [rsp+198h+var_38], xmm7 loc_31562: mov [rsp+198h+var_188], rsi lea rax, [rsp+198h+arg_0] mov [rsp+198h+var_190], rax mov rax, 3000000010h mov [rsp+198h+var_198], rax test r14, r14 jz loc_3161D mov ebx, edi mov rcx, rsp mov rax, [rcx+10h] mov [rsp+198h+var_168], rax movaps xmm0, xmmword ptr [rcx] movaps [rsp+198h+var_178], xmm0 lea rdi, [rsp+198h+var_158] mov esi, 80h mov rdx, r14 call vsnprintf cmp eax, 7Fh jg short loc_315CF lea rax, g_logger_state mov rdx, [rax+10h] lea rsi, [rsp+198h+var_158] mov edi, ebx call qword ptr [rax+8] jmp short loc_3161D loc_315CF: mov r15d, eax lea r12d, [r15+1] mov esi, 1 mov rdi, r12 call _calloc mov r13, rax lea rcx, [rsp+198h+var_178] mov rdi, rax mov rsi, r12 mov rdx, r14 call vsnprintf mov eax, r15d mov byte ptr [r13+rax+0], 0 lea rax, g_logger_state mov rdx, [rax+10h] mov edi, ebx mov rsi, r13 call qword ptr [rax+8] mov rdi, r13 call _free loc_3161D: add rsp, 170h pop rbx pop r12 pop r13 pop r14 pop r15 retn
long long clip_log_internal( unsigned int a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { long long result; // rax int v15; // eax unsigned int v16; // r15d long long v17; // r12 long long v18; // r13 _BYTE v19[128]; // [rsp+40h] [rbp-158h] BYREF long long v20; // [rsp+D0h] [rbp-C8h] long long v21; // [rsp+D8h] [rbp-C0h] long long v22; // [rsp+E0h] [rbp-B8h] long long v23; // [rsp+E8h] [rbp-B0h] __m128 v24; // [rsp+F0h] [rbp-A8h] __m128 v25; // [rsp+100h] [rbp-98h] __m128 v26; // [rsp+110h] [rbp-88h] __m128 v27; // [rsp+120h] [rbp-78h] __m128 v28; // [rsp+130h] [rbp-68h] __m128 v29; // [rsp+140h] [rbp-58h] __m128 v30; // [rsp+150h] [rbp-48h] __m128 v31; // [rsp+160h] [rbp-38h] v24 = a7; v25 = a8; v26 = a9; v27 = a10; v28 = a11; v29 = a12; v30 = a13; v31 = a14; v20 = a3; v21 = a4; v22 = a5; v23 = a6; result = 0x3000000010LL; if ( a2 ) { v15 = vsnprintf(v19, 128LL, a2); if ( v15 > 127 ) { v16 = v15; v17 = (unsigned int)(v15 + 1); v18 = calloc(v17, 1LL); vsnprintf(v18, v17, a2); *(_BYTE *)(v18 + v16) = 0; (*((void ( **)(_QWORD, long long, _QWORD))&g_logger_state + 1))(a1, v18, *((_QWORD *)&g_logger_state + 2)); return free(v18); } else { return (*((long long ( **)(_QWORD, _BYTE *, _QWORD))&g_logger_state + 1))( a1, v19, *((_QWORD *)&g_logger_state + 2)); } } return result; }
clip_log_internal: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x170 MOV R14,RSI LEA RSI,[RSP + 0xc0] MOV qword ptr [RSI + 0x10],RDX MOV qword ptr [RSI + 0x18],RCX MOV qword ptr [RSI + 0x20],R8 MOV qword ptr [RSI + 0x28],R9 TEST AL,AL JZ 0x00131562 MOVAPS xmmword ptr [RSP + 0xf0],XMM0 MOVAPS xmmword ptr [RSP + 0x100],XMM1 MOVAPS xmmword ptr [RSP + 0x110],XMM2 MOVAPS xmmword ptr [RSP + 0x120],XMM3 MOVAPS xmmword ptr [RSP + 0x130],XMM4 MOVAPS xmmword ptr [RSP + 0x140],XMM5 MOVAPS xmmword ptr [RSP + 0x150],XMM6 MOVAPS xmmword ptr [RSP + 0x160],XMM7 LAB_00131562: MOV qword ptr [RSP + 0x10],RSI LEA RAX,[RSP + 0x1a0] MOV qword ptr [RSP + 0x8],RAX MOV RAX,0x3000000010 MOV qword ptr [RSP],RAX TEST R14,R14 JZ 0x0013161d MOV EBX,EDI MOV RCX,RSP MOV RAX,qword ptr [RCX + 0x10] MOV qword ptr [RSP + 0x30],RAX MOVAPS XMM0,xmmword ptr [RCX] MOVAPS xmmword ptr [RSP + 0x20],XMM0 LEA RDI,[RSP + 0x40] MOV ESI,0x80 MOV RDX,R14 CALL 0x00124c28 CMP EAX,0x7f JG 0x001315cf LEA RAX,[0x28fe30] MOV RDX,qword ptr [RAX + 0x10] LEA RSI,[RSP + 0x40] MOV EDI,EBX CALL qword ptr [RAX + 0x8] JMP 0x0013161d LAB_001315cf: MOV R15D,EAX LEA R12D,[R15 + 0x1] MOV ESI,0x1 MOV RDI,R12 CALL 0x001243b0 MOV R13,RAX LEA RCX,[RSP + 0x20] MOV RDI,RAX MOV RSI,R12 MOV RDX,R14 CALL 0x00124c28 MOV EAX,R15D MOV byte ptr [R13 + RAX*0x1],0x0 LEA RAX,[0x28fe30] MOV RDX,qword ptr [RAX + 0x10] MOV EDI,EBX MOV RSI,R13 CALL qword ptr [RAX + 0x8] MOV RDI,R13 CALL 0x00123300 LAB_0013161d: ADD RSP,0x170 POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* clip_log_internal(ggml_log_level, char const*, ...) */ void clip_log_internal(int4 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6,int8 param_7,int8 param_8, int4 param_9,char *param_10,int8 param_11,int8 param_12, int8 param_13,int8 param_14,...) { char in_AL; uint uVar1; char *__s; int8 local_198; int1 *puStack_190; int1 *local_188; int8 local_178; int1 *puStack_170; int1 *local_168; char local_158 [128]; int1 local_d8 [16]; int8 local_c8; int8 local_c0; int8 local_b8; int8 local_b0; int4 local_a8; int8 local_98; int8 local_88; int8 local_78; int8 local_68; int8 local_58; int8 local_48; int8 local_38; local_188 = local_d8; if (in_AL != '\0') { local_a8 = param_1; local_98 = param_2; local_88 = param_3; local_78 = param_4; local_68 = param_5; local_58 = param_6; local_48 = param_7; local_38 = param_8; } puStack_190 = &stack0x00000008; local_198 = 0x3000000010; if (param_10 != (char *)0x0) { local_178 = 0x3000000010; puStack_170 = puStack_190; local_168 = local_188; local_c8 = param_11; local_c0 = param_12; local_b8 = param_13; local_b0 = param_14; uVar1 = vsnprintf(local_158,0x80,param_10,&local_198); if ((int)uVar1 < 0x80) { (*(code *)PTR_clip_log_callback_default_0028fe38)(param_9,local_158,DAT_0028fe40); } else { __s = (char *)calloc((ulong)(uVar1 + 1),1); vsnprintf(__s,(ulong)(uVar1 + 1),param_10,&local_178); __s[uVar1] = '\0'; (*(code *)PTR_clip_log_callback_default_0028fe38)(param_9,__s,DAT_0028fe40); free(__s); } } return; }
49,360
MemoryManager::setInt(unsigned int, unsigned int, unsigned int*)
DanielDanyang[P]CSC3050-2025-Spring-Project-4/src/MemoryManager.cpp
bool MemoryManager::setInt(uint32_t addr, uint32_t val, uint32_t *cycles) { if (!this->isAddrExist(addr)) { dbgprintf("Int write to invalid addr 0x%x!\n", addr); return false; } this->setByte(addr, val & 0xFF, cycles); this->setByte(addr + 1, (val >> 8) & 0xFF); this->setByte(addr + 2, (val >> 16) & 0xFF); this->setByte(addr + 3, (val >> 24) & 0xFF); return true; }
O0
cpp
MemoryManager::setInt(unsigned int, unsigned int, unsigned int*): subq $0x28, %rsp movq %rdi, 0x18(%rsp) movl %esi, 0x14(%rsp) movl %edx, 0x10(%rsp) movq %rcx, 0x8(%rsp) movq 0x18(%rsp), %rdi movq %rdi, (%rsp) movl 0x14(%rsp), %esi callq 0x3430 testb $0x1, %al jne 0x39d8 movl 0x14(%rsp), %esi leaq 0x47fb(%rip), %rdi # 0x81c2 movb $0x0, %al callq 0x2f60 movb $0x0, 0x27(%rsp) jmp 0x3a5e movq (%rsp), %rdi movl 0x14(%rsp), %esi movl 0x10(%rsp), %eax andl $0xff, %eax movq 0x8(%rsp), %rcx movzbl %al, %edx callq 0x3560 movq (%rsp), %rdi movl 0x14(%rsp), %esi addl $0x1, %esi movl 0x10(%rsp), %eax shrl $0x8, %eax andl $0xff, %eax xorl %ecx, %ecx movzbl %al, %edx callq 0x3560 movq (%rsp), %rdi movl 0x14(%rsp), %esi addl $0x2, %esi movl 0x10(%rsp), %eax shrl $0x10, %eax andl $0xff, %eax xorl %ecx, %ecx movzbl %al, %edx callq 0x3560 movq (%rsp), %rdi movl 0x14(%rsp), %esi addl $0x3, %esi movl 0x10(%rsp), %eax shrl $0x18, %eax andl $0xff, %eax xorl %ecx, %ecx movzbl %al, %edx callq 0x3560 movb $0x1, 0x27(%rsp) movb 0x27(%rsp), %al andb $0x1, %al addq $0x28, %rsp retq nopl (%rax)
_ZN13MemoryManager6setIntEjjPj: sub rsp, 28h mov [rsp+28h+var_10], rdi mov [rsp+28h+var_14], esi mov [rsp+28h+var_18], edx mov [rsp+28h+var_20], rcx mov rdi, [rsp+28h+var_10]; this mov [rsp+28h+var_28], rdi mov esi, [rsp+28h+var_14]; unsigned int call _ZN13MemoryManager11isAddrExistEj; MemoryManager::isAddrExist(uint) test al, 1 jnz short loc_39D8 mov esi, [rsp+28h+var_14] lea rdi, aIntWriteToInva; "Int write to invalid addr 0x%x!\n" mov al, 0 call _Z9dbgprintfPKcz; dbgprintf(char const*,...) mov [rsp+28h+var_1], 0 jmp loc_3A5E loc_39D8: mov rdi, [rsp+28h+var_28]; this mov esi, [rsp+28h+var_14]; unsigned int mov eax, [rsp+28h+var_18] and eax, 0FFh mov rcx, [rsp+28h+var_20]; unsigned int * movzx edx, al; unsigned __int8 call _ZN13MemoryManager7setByteEjhPj; MemoryManager::setByte(uint,uchar,uint *) mov rdi, [rsp+28h+var_28]; this mov esi, [rsp+28h+var_14] add esi, 1; unsigned int mov eax, [rsp+28h+var_18] shr eax, 8 and eax, 0FFh xor ecx, ecx; unsigned int * movzx edx, al; unsigned __int8 call _ZN13MemoryManager7setByteEjhPj; MemoryManager::setByte(uint,uchar,uint *) mov rdi, [rsp+28h+var_28]; this mov esi, [rsp+28h+var_14] add esi, 2; unsigned int mov eax, [rsp+28h+var_18] shr eax, 10h and eax, 0FFh xor ecx, ecx; unsigned int * movzx edx, al; unsigned __int8 call _ZN13MemoryManager7setByteEjhPj; MemoryManager::setByte(uint,uchar,uint *) mov rdi, [rsp+28h+var_28]; this mov esi, [rsp+28h+var_14] add esi, 3; unsigned int mov eax, [rsp+28h+var_18] shr eax, 18h and eax, 0FFh xor ecx, ecx; unsigned int * movzx edx, al; unsigned __int8 call _ZN13MemoryManager7setByteEjhPj; MemoryManager::setByte(uint,uchar,uint *) mov [rsp+28h+var_1], 1 loc_3A5E: mov al, [rsp+28h+var_1] and al, 1 add rsp, 28h retn
char MemoryManager::setInt( Cache **this, unsigned int a2, int a3, unsigned int *a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, double a9, double a10, __m128 a11, __m128 a12) { long long v12; // rdx long long v13; // rcx long long v14; // r8 long long v15; // r9 __m128 v16; // xmm4 __m128 v17; // xmm5 double v18; // xmm4_8 double v19; // xmm5_8 double v20; // xmm4_8 double v21; // xmm5_8 double v22; // xmm4_8 double v23; // xmm5_8 if ( MemoryManager::isAddrExist((MemoryManager *)this, a2) ) { MemoryManager::setByte(this, a2, a3, a4, a5, a6, a7, a8, *(double *)v16.m128_u64, *(double *)v17.m128_u64, a11, a12); MemoryManager::setByte(this, a2 + 1, BYTE1(a3), 0LL, a5, a6, a7, a8, v18, v19, a11, a12); MemoryManager::setByte(this, a2 + 2, BYTE2(a3), 0LL, a5, a6, a7, a8, v20, v21, a11, a12); MemoryManager::setByte(this, a2 + 3, HIBYTE(a3), 0LL, a5, a6, a7, a8, v22, v23, a11, a12); return 1; } else { dbgprintf( "Int write to invalid addr 0x%x!\n", a2, v12, v13, v14, v15, a5, a6, a7, a8, v16, v17, a11, a12, (char)this); return 0; } }
setInt: SUB RSP,0x28 MOV qword ptr [RSP + 0x18],RDI MOV dword ptr [RSP + 0x14],ESI MOV dword ptr [RSP + 0x10],EDX MOV qword ptr [RSP + 0x8],RCX MOV RDI,qword ptr [RSP + 0x18] MOV qword ptr [RSP],RDI MOV ESI,dword ptr [RSP + 0x14] CALL 0x00103430 TEST AL,0x1 JNZ 0x001039d8 MOV ESI,dword ptr [RSP + 0x14] LEA RDI,[0x1081c2] MOV AL,0x0 CALL 0x00102f60 MOV byte ptr [RSP + 0x27],0x0 JMP 0x00103a5e LAB_001039d8: MOV RDI,qword ptr [RSP] MOV ESI,dword ptr [RSP + 0x14] MOV EAX,dword ptr [RSP + 0x10] AND EAX,0xff MOV RCX,qword ptr [RSP + 0x8] MOVZX EDX,AL CALL 0x00103560 MOV RDI,qword ptr [RSP] MOV ESI,dword ptr [RSP + 0x14] ADD ESI,0x1 MOV EAX,dword ptr [RSP + 0x10] SHR EAX,0x8 AND EAX,0xff XOR ECX,ECX MOVZX EDX,AL CALL 0x00103560 MOV RDI,qword ptr [RSP] MOV ESI,dword ptr [RSP + 0x14] ADD ESI,0x2 MOV EAX,dword ptr [RSP + 0x10] SHR EAX,0x10 AND EAX,0xff XOR ECX,ECX MOVZX EDX,AL CALL 0x00103560 MOV RDI,qword ptr [RSP] MOV ESI,dword ptr [RSP + 0x14] ADD ESI,0x3 MOV EAX,dword ptr [RSP + 0x10] SHR EAX,0x18 AND EAX,0xff XOR ECX,ECX MOVZX EDX,AL CALL 0x00103560 MOV byte ptr [RSP + 0x27],0x1 LAB_00103a5e: MOV AL,byte ptr [RSP + 0x27] AND AL,0x1 ADD RSP,0x28 RET
/* MemoryManager::setInt(unsigned int, unsigned int, unsigned int*) */ bool __thiscall MemoryManager::setInt(MemoryManager *this,uint param_1,uint param_2,uint *param_3) { ulong uVar1; bool bVar2; uVar1 = isAddrExist(this,param_1); bVar2 = (uVar1 & 1) != 0; if (bVar2) { setByte(this,param_1,(uchar)param_2,param_3); setByte(this,param_1 + 1,(uchar)(param_2 >> 8),(uint *)0x0); setByte(this,param_1 + 2,(uchar)(param_2 >> 0x10),(uint *)0x0); setByte(this,param_1 + 3,(uchar)(param_2 >> 0x18),(uint *)0x0); } else { dbgprintf("Int write to invalid addr 0x%x!\n",(ulong)param_1); } return bVar2; }
49,361
MemoryManager::setInt(unsigned int, unsigned int, unsigned int*)
DanielDanyang[P]CSC3050-2025-Spring-Project-4/src/MemoryManager.cpp
bool MemoryManager::setInt(uint32_t addr, uint32_t val, uint32_t *cycles) { if (!this->isAddrExist(addr)) { dbgprintf("Int write to invalid addr 0x%x!\n", addr); return false; } this->setByte(addr, val & 0xFF, cycles); this->setByte(addr + 1, (val >> 8) & 0xFF); this->setByte(addr + 2, (val >> 16) & 0xFF); this->setByte(addr + 3, (val >> 24) & 0xFF); return true; }
O1
cpp
MemoryManager::setInt(unsigned int, unsigned int, unsigned int*): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movl %edx, %ebp movl %esi, %ebx movq %rdi, %r15 movl %esi, %eax shrl $0x16, %eax movq (%rdi,%rax,8), %rax testq %rax, %rax je 0x30c6 movl %ebx, %edx shrl $0x9, %edx andl $0x1ff8, %edx # imm = 0x1FF8 movb $0x1, %r14b cmpq $0x0, (%rax,%rdx) jne 0x30c9 xorl %r14d, %r14d testb %r14b, %r14b je 0x312d movl $0xff, %r12d movl %ebp, %edx andl %r12d, %edx movq %r15, %rdi movl %ebx, %esi callq 0x2e86 leal 0x1(%rbx), %esi movl %ebp, %edx shrl $0x8, %edx andl %r12d, %edx movq %r15, %rdi xorl %ecx, %ecx callq 0x2e86 leal 0x2(%rbx), %esi movl %ebp, %edx shrl $0x10, %edx andl %r12d, %edx movq %r15, %rdi xorl %ecx, %ecx callq 0x2e86 addl $0x3, %ebx shrl $0x18, %ebp movq %r15, %rdi movl %ebx, %esi movl %ebp, %edx xorl %ecx, %ecx callq 0x2e86 movl %r14d, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq leaq 0x2089(%rip), %rdi # 0x51bd movl %ebx, %esi xorl %eax, %eax callq 0x22c0 jmp 0x3121 nop
_ZN13MemoryManager6setIntEjjPj: push rbp push r15 push r14 push r12 push rbx mov ebp, edx mov ebx, esi mov r15, rdi mov eax, esi shr eax, 16h mov rax, [rdi+rax*8] test rax, rax jz short loc_30C6 mov edx, ebx shr edx, 9 and edx, 1FF8h mov r14b, 1 cmp qword ptr [rax+rdx], 0 jnz short loc_30C9 loc_30C6: xor r14d, r14d loc_30C9: test r14b, r14b jz short loc_312D mov r12d, 0FFh mov edx, ebp and edx, r12d; unsigned __int8 mov rdi, r15; this mov esi, ebx; unsigned int call _ZN13MemoryManager7setByteEjhPj; MemoryManager::setByte(uint,uchar,uint *) lea esi, [rbx+1]; unsigned int mov edx, ebp shr edx, 8 and edx, r12d; unsigned __int8 mov rdi, r15; this xor ecx, ecx; unsigned int * call _ZN13MemoryManager7setByteEjhPj; MemoryManager::setByte(uint,uchar,uint *) lea esi, [rbx+2]; unsigned int mov edx, ebp shr edx, 10h and edx, r12d; unsigned __int8 mov rdi, r15; this xor ecx, ecx; unsigned int * call _ZN13MemoryManager7setByteEjhPj; MemoryManager::setByte(uint,uchar,uint *) add ebx, 3 shr ebp, 18h mov rdi, r15; this mov esi, ebx; unsigned int mov edx, ebp; unsigned __int8 xor ecx, ecx; unsigned int * call _ZN13MemoryManager7setByteEjhPj; MemoryManager::setByte(uint,uchar,uint *) loc_3121: mov eax, r14d pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_312D: lea rdi, aIntWriteToInva; "Int write to invalid addr 0x%x!\n" mov esi, ebx xor eax, eax call _Z9dbgprintfPKcz; dbgprintf(char const*,...) jmp short loc_3121
long long MemoryManager::setInt( MemoryManager *this, unsigned int a2, long long a3, unsigned int *a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { unsigned int v14; // r14d unsigned int v15; // ebp long long v16; // rax long long v17; // r8 long long v18; // r9 __m128 v19; // xmm4 __m128 v20; // xmm5 long long v21; // r8 long long v22; // r9 __m128 v23; // xmm4 __m128 v24; // xmm5 long long v25; // r8 long long v26; // r9 __m128 v27; // xmm4 __m128 v28; // xmm5 char v30; // [rsp+0h] [rbp-28h] v15 = a3; v16 = *((_QWORD *)this + (a2 >> 22)); if ( !v16 || (a3 = (a2 >> 9) & 0x1FF8, LOBYTE(v14) = 1, !*(_QWORD *)(v16 + a3)) ) v14 = 0; if ( (_BYTE)v14 ) { MemoryManager::setByte(this, a2, (unsigned __int8)v15, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14); MemoryManager::setByte(this, a2 + 1, BYTE1(v15), 0LL, v17, v18, a7, a8, a9, a10, v19, v20, a13, a14); MemoryManager::setByte(this, a2 + 2, BYTE2(v15), 0LL, v21, v22, a7, a8, a9, a10, v23, v24, a13, a14); MemoryManager::setByte(this, a2 + 3, HIBYTE(v15), 0LL, v25, v26, a7, a8, a9, a10, v27, v28, a13, a14); } else { dbgprintf( "Int write to invalid addr 0x%x!\n", a2, a3, (long long)a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v30); } return v14; }
setInt: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV EBP,EDX MOV EBX,ESI MOV R15,RDI MOV EAX,ESI SHR EAX,0x16 MOV RAX,qword ptr [RDI + RAX*0x8] TEST RAX,RAX JZ 0x001030c6 MOV EDX,EBX SHR EDX,0x9 AND EDX,0x1ff8 MOV R14B,0x1 CMP qword ptr [RAX + RDX*0x1],0x0 JNZ 0x001030c9 LAB_001030c6: XOR R14D,R14D LAB_001030c9: TEST R14B,R14B JZ 0x0010312d MOV R12D,0xff MOV EDX,EBP AND EDX,R12D MOV RDI,R15 MOV ESI,EBX CALL 0x00102e86 LEA ESI,[RBX + 0x1] MOV EDX,EBP SHR EDX,0x8 AND EDX,R12D MOV RDI,R15 XOR ECX,ECX CALL 0x00102e86 LEA ESI,[RBX + 0x2] MOV EDX,EBP SHR EDX,0x10 AND EDX,R12D MOV RDI,R15 XOR ECX,ECX CALL 0x00102e86 ADD EBX,0x3 SHR EBP,0x18 MOV RDI,R15 MOV ESI,EBX MOV EDX,EBP XOR ECX,ECX CALL 0x00102e86 LAB_00103121: MOV EAX,R14D POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_0010312d: LEA RDI,[0x1051bd] MOV ESI,EBX XOR EAX,EAX CALL 0x001022c0 JMP 0x00103121
/* MemoryManager::setInt(unsigned int, unsigned int, unsigned int*) */ int4 __thiscall MemoryManager::setInt(MemoryManager *this,uint param_1,uint param_2,uint *param_3) { int4 uVar1; int8 unaff_R14; if (*(long *)(this + (ulong)(param_1 >> 0x16) * 8) != 0) { uVar1 = (int4)CONCAT71((int7)((ulong)unaff_R14 >> 8),1); if (*(long *)(*(long *)(this + (ulong)(param_1 >> 0x16) * 8) + (ulong)(param_1 >> 9 & 0x1ff8)) != 0) goto LAB_001030c9; } uVar1 = 0; LAB_001030c9: if ((char)uVar1 == '\0') { dbgprintf("Int write to invalid addr 0x%x!\n",param_1); } else { setByte(this,param_1,(uchar)param_2,param_3); setByte(this,param_1 + 1,(uchar)(param_2 >> 8),(uint *)0x0); setByte(this,param_1 + 2,(uchar)(param_2 >> 0x10),(uint *)0x0); setByte(this,param_1 + 3,(uchar)(param_2 >> 0x18),(uint *)0x0); } return uVar1; }
49,362
void nlohmann::json_abi_v3_11_3::detail::get_arithmetic_value<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>, long, 0>(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&, long&)
monkey531[P]llama/common/./json.hpp
void get_arithmetic_value(const BasicJsonType& j, ArithmeticType& val) { switch (static_cast<value_t>(j)) { case value_t::number_unsigned: { val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_unsigned_t*>()); break; } case value_t::number_integer: { val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_integer_t*>()); break; } case value_t::number_float: { val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_float_t*>()); break; } case value_t::null: case value_t::object: case value_t::array: case value_t::string: case value_t::boolean: case value_t::binary: case value_t::discarded: default: JSON_THROW(type_error::create(302, concat("type must be number, but is ", j.type_name()), &j)); } }
O2
cpp
void nlohmann::json_abi_v3_11_3::detail::get_arithmetic_value<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>, long, 0>(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&, long&): pushq %rbp pushq %r14 pushq %rbx subq $0x30, %rsp movq %rdi, %r14 movzbl (%rdi), %eax cmpl $0x5, %eax je 0x3b6ca cmpl $0x7, %eax je 0x3b6d0 cmpl $0x6, %eax jne 0x3b6e2 movq 0x8(%r14), %rax jmp 0x3b6d6 cvttsd2si 0x8(%r14), %rax movq %rax, (%rsi) addq $0x30, %rsp popq %rbx popq %r14 popq %rbp retq pushq $0x20 popq %rdi callq 0x20390 movq %rax, %rbx movq %r14, %rdi callq 0x3b8b2 leaq 0x8(%rsp), %rdx movq %rax, (%rdx) leaq 0x5ea17(%rip), %rsi # 0x9a11b leaq 0x10(%rsp), %rdi callq 0x3b853 movb $0x1, %bpl leaq 0x10(%rsp), %rdx movq %rbx, %rdi movl $0x12e, %esi # imm = 0x12E movq %r14, %rcx callq 0x3b766 xorl %ebp, %ebp leaq 0xa4b89(%rip), %rsi # 0xe02b8 leaq 0xb8ac(%rip), %rdx # 0x46fe2 movq %rbx, %rdi callq 0x20b30 movq %rax, %r14 leaq 0x10(%rsp), %rdi callq 0x20d78 testb %bpl, %bpl jne 0x3b755 jmp 0x3b75d movq %rax, %r14 movq %rbx, %rdi callq 0x20520 movq %r14, %rdi callq 0x20b90 nop
_ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEElTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_: push rbp; char push r14; int push rbx; int sub rsp, 30h mov r14, rdi movzx eax, byte ptr [rdi] cmp eax, 5 jz short loc_3B6CA cmp eax, 7 jz short loc_3B6D0 cmp eax, 6 jnz short loc_3B6E2 loc_3B6CA: mov rax, [r14+8] jmp short loc_3B6D6 loc_3B6D0: cvttsd2si rax, qword ptr [r14+8] loc_3B6D6: mov [rsi], rax add rsp, 30h pop rbx pop r14 pop rbp retn loc_3B6E2: push 20h ; ' ' pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) lea rdx, [rsp+48h+var_40] mov [rdx], rax lea rsi, aTypeMustBeNumb; "type must be number, but is " lea rdi, [rsp+48h+var_38] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],char const* &&) mov bpl, 1 lea rdx, [rsp+48h+var_38] mov rdi, rbx; this mov esi, 12Eh; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rdi, [rsp+48h+var_38]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test bpl, bpl jnz short loc_3B755 jmp short loc_3B75D mov r14, rax loc_3B755: mov rdi, rbx; void * call ___cxa_free_exception loc_3B75D: mov rdi, r14 call __Unwind_Resume
49,363
void nlohmann::json_abi_v3_11_3::detail::get_arithmetic_value<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>, long, 0>(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&, long&)
monkey531[P]llama/common/./json.hpp
void get_arithmetic_value(const BasicJsonType& j, ArithmeticType& val) { switch (static_cast<value_t>(j)) { case value_t::number_unsigned: { val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_unsigned_t*>()); break; } case value_t::number_integer: { val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_integer_t*>()); break; } case value_t::number_float: { val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_float_t*>()); break; } case value_t::null: case value_t::object: case value_t::array: case value_t::string: case value_t::boolean: case value_t::binary: case value_t::discarded: default: JSON_THROW(type_error::create(302, concat("type must be number, but is ", j.type_name()), &j)); } }
O3
cpp
void nlohmann::json_abi_v3_11_3::detail::get_arithmetic_value<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>, long, 0>(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&, long&): pushq %rbp pushq %r14 pushq %rbx subq $0x30, %rsp movq %rdi, %r14 movzbl (%rdi), %eax cmpl $0x5, %eax je 0x3dd94 cmpl $0x7, %eax je 0x3dd9a cmpl $0x6, %eax jne 0x3ddac movq 0x8(%r14), %rax jmp 0x3dda0 cvttsd2si 0x8(%r14), %rax movq %rax, (%rsi) addq $0x30, %rsp popq %rbx popq %r14 popq %rbp retq movl $0x20, %edi callq 0x18360 movq %rax, %rbx movq %r14, %rdi callq 0x3e096 leaq 0x8(%rsp), %rdx movq %rax, (%rdx) leaq 0x791c3(%rip), %rsi # 0xb6f93 leaq 0x10(%rsp), %rdi callq 0x3e00d movb $0x1, %bpl leaq 0x10(%rsp), %rdx movq %rbx, %rdi movl $0x12e, %esi # imm = 0x12E movq %r14, %rcx callq 0x3de42 xorl %ebp, %ebp leaq 0xb04bd(%rip), %rsi # 0xee2b8 leaq 0xe5ae(%rip), %rdx # 0x4c3b0 movq %rbx, %rdi callq 0x18b30 movq %rax, %r14 leaq 0x20(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x3de28 movq 0x20(%rsp), %rsi incq %rsi callq 0x186a0 testb %bpl, %bpl jne 0x3de32 jmp 0x3de3a movq %rax, %r14 movq %rbx, %rdi callq 0x18500 movq %r14, %rdi callq 0x18b90
_ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEElTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_: push rbp; char push r14; int push rbx; __int64 sub rsp, 30h mov r14, rdi movzx eax, byte ptr [rdi] cmp eax, 5 jz short loc_3DD94 cmp eax, 7 jz short loc_3DD9A cmp eax, 6 jnz short loc_3DDAC loc_3DD94: mov rax, [r14+8] jmp short loc_3DDA0 loc_3DD9A: cvttsd2si rax, qword ptr [r14+8] loc_3DDA0: mov [rsi], rax add rsp, 30h pop rbx pop r14 pop rbp retn loc_3DDAC: mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) lea rdx, [rsp+48h+var_40] mov [rdx], rax lea rsi, aTypeMustBeNumb; "type must be number, but is " lea rdi, [rsp+48h+var_38] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],char const* &&) mov bpl, 1 lea rdx, [rsp+48h+var_38] mov rdi, rbx; this mov esi, 12Eh; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rax, [rsp+48h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_3DE28 mov rsi, [rsp+48h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3DE28: test bpl, bpl jnz short loc_3DE32 jmp short loc_3DE3A mov r14, rax loc_3DE32: mov rdi, rbx; void * call ___cxa_free_exception loc_3DE3A: mov rdi, r14 call __Unwind_Resume
_ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEElTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x30 MOV R14,RDI MOVZX EAX,byte ptr [RDI] CMP EAX,0x5 JZ 0x0013dd94 CMP EAX,0x7 JZ 0x0013dd9a CMP EAX,0x6 JNZ 0x0013ddac LAB_0013dd94: MOV RAX,qword ptr [R14 + 0x8] JMP 0x0013dda0 LAB_0013dd9a: CVTTSD2SI RAX,qword ptr [R14 + 0x8] LAB_0013dda0: MOV qword ptr [RSI],RAX ADD RSP,0x30 POP RBX POP R14 POP RBP RET LAB_0013ddac: MOV EDI,0x20 CALL 0x00118360 MOV RBX,RAX MOV RDI,R14 CALL 0x0013e096 LEA RDX,[RSP + 0x8] MOV qword ptr [RDX],RAX LAB_0013ddc9: LEA RSI,[0x1b6f93] LEA RDI,[RSP + 0x10] CALL 0x0013e00d MOV BPL,0x1 LAB_0013dddd: LEA RDX,[RSP + 0x10] MOV RDI,RBX MOV ESI,0x12e MOV RCX,R14 CALL 0x0013de42 XOR EBP,EBP LEA RSI,[0x1ee2b8] LEA RDX,[0x14c3b0] MOV RDI,RBX CALL 0x00118b30
void _ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEElTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_ (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *param_1,long *param_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> bVar1; long lVar2; int8 uVar3; char *local_40; detail local_38 [32]; bVar1 = *param_1; if (bVar1 != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x5) { if (bVar1 == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x7) { lVar2 = (long)*(double *)(param_1 + 8); goto LAB_0013dda0; } if (bVar1 != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x6) { uVar3 = __cxa_allocate_exception(0x20); local_40 = (char *)nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::type_name(param_1); /* try { // try from 0013ddc9 to 0013ddd9 has its CatchHandler @ 0013de2f */ nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[29],char_const*> (local_38,"type must be number, but is ",&local_40); /* try { // try from 0013dddd to 0013de09 has its CatchHandler @ 0013de0a */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar3,0x12e,local_38,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar3,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); } } lVar2 = *(long *)(param_1 + 8); LAB_0013dda0: *param_2 = lVar2; return; }
49,364
ma_net_read
eloqsql/libmariadb/libmariadb/ma_net.c
ulong ma_net_read(NET *net) { size_t len,complen; #ifdef HAVE_COMPRESS if (!net->compress) { #endif len = ma_real_read (net,(size_t *)&complen); if (len == MAX_PACKET_LENGTH) { /* multi packet read */ size_t length= 0; ulong last_pos= net->where_b; do { length+= len; net->where_b+= (unsigned long)len; len= ma_real_read(net, &complen); } while (len == MAX_PACKET_LENGTH); net->where_b= last_pos; if (len != packet_error) len+= length; } net->read_pos = net->buff + net->where_b; if (len != packet_error) net->read_pos[len]=0; /* Safeguard for mysql_use_result */ return (ulong)len; #ifdef HAVE_COMPRESS } else { /* compressed protocol: -------------------------------------- packet_length 3 sequence_id 1 uncompressed_length 3 -------------------------------------- compressed data packet_length - 7 -------------------------------------- Another packet will follow if: packet_length == MAX_PACKET_LENGTH Last package will be identified by - packet_length is zero (special case) - packet_length < MAX_PACKET_LENGTH */ size_t packet_length, buffer_length; size_t current= 0, start= 0; my_bool is_multi_packet= 0; /* check if buffer is empty */ if (!net->remain_in_buf) { buffer_length= 0; } else { /* save position and restore \0 character */ buffer_length= net->buf_length; current= net->buf_length - net->remain_in_buf; start= current; net->buff[net->buf_length - net->remain_in_buf]=net->save_char; } for (;;) { if (buffer_length - current >= 4) { uchar *pos= net->buff + current; packet_length= uint3korr(pos); /* check if we have last package (special case: zero length) */ if (!packet_length) { current+= 4; /* length + sequence_id, no more data will follow */ break; } if (packet_length + 4 <= buffer_length - current) { if (!is_multi_packet) { current= current + packet_length + 4; } else { /* remove packet_header */ memmove(net->buff + current, net->buff + current + 4, buffer_length - current); buffer_length-= 4; current+= packet_length; } /* do we have last packet ? */ if (packet_length != MAX_PACKET_LENGTH) { is_multi_packet= 0; break; } else is_multi_packet= 1; if (start) { memmove(net->buff, net->buff + start, buffer_length - start); /* decrease buflen*/ buffer_length-= start; start= 0; } continue; } } if (start) { memmove(net->buff, net->buff + start, buffer_length - start); /* decrease buflen and current */ current -= start; buffer_length-= start; start= 0; } net->where_b=(unsigned long)buffer_length; if ((packet_length = ma_real_read(net,(size_t *)&complen)) == packet_error) return packet_error; if (_mariadb_uncompress(net, (unsigned char*) net->buff + net->where_b, &packet_length, &complen)) { net->error=2; /* caller will close socket */ net->pvio->set_error(net->pvio->mysql, CR_ERR_NET_UNCOMPRESS, SQLSTATE_UNKNOWN, 0); return packet_error; } buffer_length+= complen; } /* set values */ net->buf_length= (unsigned long)buffer_length; net->remain_in_buf= (unsigned long)(buffer_length - current); net->read_pos= net->buff + start + 4; len= current - start - 4; if (is_multi_packet) len-= 4; net->save_char= net->read_pos[len]; /* Must be saved */ net->read_pos[len]=0; /* Safeguard for mysql_use_result */ } #endif return (ulong)len; }
O0
c
ma_net_read: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax cmpb $0x0, 0x84(%rax) jne 0x498d8 movq -0x10(%rbp), %rdi leaq -0x20(%rbp), %rsi callq 0x49c20 movq %rax, -0x18(%rbp) cmpq $0xffffff, -0x18(%rbp) # imm = 0xFFFFFF jne 0x49898 movq $0x0, -0x28(%rbp) movq -0x10(%rbp), %rax movq 0x48(%rax), %rax movq %rax, -0x30(%rbp) movq -0x18(%rbp), %rax addq -0x28(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x18(%rbp), %rcx movq -0x10(%rbp), %rax addq 0x48(%rax), %rcx movq %rcx, 0x48(%rax) movq -0x10(%rbp), %rdi leaq -0x20(%rbp), %rsi callq 0x49c20 movq %rax, -0x18(%rbp) cmpq $0xffffff, -0x18(%rbp) # imm = 0xFFFFFF je 0x4983c movq -0x30(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x48(%rax) movl $0xffffffff, %eax # imm = 0xFFFFFFFF cmpq %rax, -0x18(%rbp) je 0x49896 movq -0x28(%rbp), %rax addq -0x18(%rbp), %rax movq %rax, -0x18(%rbp) jmp 0x49898 movq -0x10(%rbp), %rax movq 0x8(%rax), %rcx movq -0x10(%rbp), %rax addq 0x48(%rax), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x20(%rax) movl $0xffffffff, %eax # imm = 0xFFFFFFFF cmpq %rax, -0x18(%rbp) je 0x498cb movq -0x10(%rbp), %rax movq 0x20(%rax), %rax movq -0x18(%rbp), %rcx movb $0x0, (%rax,%rcx) movq -0x18(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x49c07 movq $0x0, -0x48(%rbp) movq $0x0, -0x50(%rbp) movb $0x0, -0x51(%rbp) movq -0x10(%rbp), %rax cmpq $0x0, 0x30(%rax) jne 0x49901 movq $0x0, -0x40(%rbp) jmp 0x4994e movq -0x10(%rbp), %rax movq 0x40(%rax), %rax movq %rax, -0x40(%rbp) movq -0x10(%rbp), %rax movq 0x40(%rax), %rax movq -0x10(%rbp), %rcx subq 0x30(%rcx), %rax movq %rax, -0x48(%rbp) movq -0x48(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x10(%rbp), %rax movb 0x81(%rax), %dl movq -0x10(%rbp), %rax movq 0x8(%rax), %rax movq -0x10(%rbp), %rcx movq 0x40(%rcx), %rcx movq -0x10(%rbp), %rsi subq 0x30(%rsi), %rcx movb %dl, (%rax,%rcx) jmp 0x49950 movq -0x40(%rbp), %rax subq -0x48(%rbp), %rax cmpq $0x4, %rax jb 0x49a80 movq -0x10(%rbp), %rax movq 0x8(%rax), %rax addq -0x48(%rbp), %rax movq %rax, -0x60(%rbp) movq -0x60(%rbp), %rax movzbl (%rax), %eax movq -0x60(%rbp), %rcx movzbl 0x1(%rcx), %ecx shll $0x8, %ecx addl %ecx, %eax movq -0x60(%rbp), %rcx movzbl 0x2(%rcx), %ecx shll $0x10, %ecx addl %ecx, %eax movl %eax, %eax movq %rax, -0x38(%rbp) cmpq $0x0, -0x38(%rbp) jne 0x499b1 movq -0x48(%rbp), %rax addq $0x4, %rax movq %rax, -0x48(%rbp) jmp 0x49b80 movq -0x38(%rbp), %rax addq $0x4, %rax movq -0x40(%rbp), %rcx subq -0x48(%rbp), %rcx cmpq %rcx, %rax ja 0x49a7e cmpb $0x0, -0x51(%rbp) jne 0x499e2 movq -0x48(%rbp), %rax addq -0x38(%rbp), %rax addq $0x4, %rax movq %rax, -0x48(%rbp) jmp 0x49a23 movq -0x10(%rbp), %rax movq 0x8(%rax), %rdi addq -0x48(%rbp), %rdi movq -0x10(%rbp), %rax movq 0x8(%rax), %rsi addq -0x48(%rbp), %rsi addq $0x4, %rsi movq -0x40(%rbp), %rdx subq -0x48(%rbp), %rdx callq 0x136f0 movq -0x40(%rbp), %rax subq $0x4, %rax movq %rax, -0x40(%rbp) movq -0x38(%rbp), %rax addq -0x48(%rbp), %rax movq %rax, -0x48(%rbp) cmpq $0xffffff, -0x38(%rbp) # imm = 0xFFFFFF je 0x49a36 movb $0x0, -0x51(%rbp) jmp 0x49b80 movb $0x1, -0x51(%rbp) cmpq $0x0, -0x50(%rbp) je 0x49a79 movq -0x10(%rbp), %rax movq 0x8(%rax), %rdi movq -0x10(%rbp), %rax movq 0x8(%rax), %rsi addq -0x50(%rbp), %rsi movq -0x40(%rbp), %rdx subq -0x50(%rbp), %rdx callq 0x136f0 movq -0x50(%rbp), %rcx movq -0x40(%rbp), %rax subq %rcx, %rax movq %rax, -0x40(%rbp) movq $0x0, -0x50(%rbp) jmp 0x49950 jmp 0x49a80 cmpq $0x0, -0x50(%rbp) je 0x49ace movq -0x10(%rbp), %rax movq 0x8(%rax), %rdi movq -0x10(%rbp), %rax movq 0x8(%rax), %rsi addq -0x50(%rbp), %rsi movq -0x40(%rbp), %rdx subq -0x50(%rbp), %rdx callq 0x136f0 movq -0x50(%rbp), %rcx movq -0x48(%rbp), %rax subq %rcx, %rax movq %rax, -0x48(%rbp) movq -0x50(%rbp), %rcx movq -0x40(%rbp), %rax subq %rcx, %rax movq %rax, -0x40(%rbp) movq $0x0, -0x50(%rbp) movq -0x40(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x48(%rax) movq -0x10(%rbp), %rdi leaq -0x20(%rbp), %rsi callq 0x49c20 movq %rax, -0x38(%rbp) movl $0xffffffff, %ecx # imm = 0xFFFFFFFF cmpq %rcx, %rax jne 0x49b03 movl $0xffffffff, %eax # imm = 0xFFFFFFFF movq %rax, -0x8(%rbp) jmp 0x49c07 movq -0x10(%rbp), %rdi movq -0x10(%rbp), %rax movq 0x8(%rax), %rsi movq -0x10(%rbp), %rax addq 0x48(%rax), %rsi leaq -0x38(%rbp), %rdx leaq -0x20(%rbp), %rcx callq 0x29f80 cmpb $0x0, %al je 0x49b6f movq -0x10(%rbp), %rax movb $0x2, 0x94(%rax) movq -0x10(%rbp), %rax movq (%rax), %rax movq 0x50(%rax), %r8 movq -0x10(%rbp), %rax movq (%rax), %rax movq 0x40(%rax), %rdi leaq 0x1a5f0(%rip), %rax # 0x64140 movq (%rax), %rdx movl $0x1397, %esi # imm = 0x1397 xorl %eax, %eax movl %eax, %ecx movb $0x0, %al callq *%r8 movl $0xffffffff, %eax # imm = 0xFFFFFFFF movq %rax, -0x8(%rbp) jmp 0x49c07 movq -0x20(%rbp), %rax addq -0x40(%rbp), %rax movq %rax, -0x40(%rbp) jmp 0x49950 movq -0x40(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x40(%rax) movq -0x40(%rbp), %rcx subq -0x48(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x30(%rax) movq -0x10(%rbp), %rax movq 0x8(%rax), %rcx addq -0x50(%rbp), %rcx addq $0x4, %rcx movq -0x10(%rbp), %rax movq %rcx, 0x20(%rax) movq -0x48(%rbp), %rax subq -0x50(%rbp), %rax subq $0x4, %rax movq %rax, -0x18(%rbp) cmpb $0x0, -0x51(%rbp) je 0x49bd6 movq -0x18(%rbp), %rax subq $0x4, %rax movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rax movq 0x20(%rax), %rax movq -0x18(%rbp), %rcx movb (%rax,%rcx), %cl movq -0x10(%rbp), %rax movb %cl, 0x81(%rax) movq -0x10(%rbp), %rax movq 0x20(%rax), %rax movq -0x18(%rbp), %rcx movb $0x0, (%rax,%rcx) movq -0x18(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
ma_net_read: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_10], rdi mov rax, [rbp+var_10] cmp byte ptr [rax+84h], 0 jnz loc_498D8 mov rdi, [rbp+var_10] lea rsi, [rbp+var_20] call ma_real_read mov [rbp+var_18], rax cmp [rbp+var_18], 0FFFFFFh jnz short loc_49898 mov [rbp+var_28], 0 mov rax, [rbp+var_10] mov rax, [rax+48h] mov [rbp+var_30], rax loc_4983C: mov rax, [rbp+var_18] add rax, [rbp+var_28] mov [rbp+var_28], rax mov rcx, [rbp+var_18] mov rax, [rbp+var_10] add rcx, [rax+48h] mov [rax+48h], rcx mov rdi, [rbp+var_10] lea rsi, [rbp+var_20] call ma_real_read mov [rbp+var_18], rax cmp [rbp+var_18], 0FFFFFFh jz short loc_4983C mov rcx, [rbp+var_30] mov rax, [rbp+var_10] mov [rax+48h], rcx mov eax, 0FFFFFFFFh cmp [rbp+var_18], rax jz short loc_49896 mov rax, [rbp+var_28] add rax, [rbp+var_18] mov [rbp+var_18], rax loc_49896: jmp short $+2 loc_49898: mov rax, [rbp+var_10] mov rcx, [rax+8] mov rax, [rbp+var_10] add rcx, [rax+48h] mov rax, [rbp+var_10] mov [rax+20h], rcx mov eax, 0FFFFFFFFh cmp [rbp+var_18], rax jz short loc_498CB mov rax, [rbp+var_10] mov rax, [rax+20h] mov rcx, [rbp+var_18] mov byte ptr [rax+rcx], 0 loc_498CB: mov rax, [rbp+var_18] mov [rbp+var_8], rax jmp loc_49C07 loc_498D8: mov [rbp+var_48], 0 mov [rbp+var_50], 0 mov [rbp+var_51], 0 mov rax, [rbp+var_10] cmp qword ptr [rax+30h], 0 jnz short loc_49901 mov [rbp+var_40], 0 jmp short loc_4994E loc_49901: mov rax, [rbp+var_10] mov rax, [rax+40h] mov [rbp+var_40], rax mov rax, [rbp+var_10] mov rax, [rax+40h] mov rcx, [rbp+var_10] sub rax, [rcx+30h] mov [rbp+var_48], rax mov rax, [rbp+var_48] mov [rbp+var_50], rax mov rax, [rbp+var_10] mov dl, [rax+81h] mov rax, [rbp+var_10] mov rax, [rax+8] mov rcx, [rbp+var_10] mov rcx, [rcx+40h] mov rsi, [rbp+var_10] sub rcx, [rsi+30h] mov [rax+rcx], dl loc_4994E: jmp short $+2 loc_49950: mov rax, [rbp+var_40] sub rax, [rbp+var_48] cmp rax, 4 jb loc_49A80 mov rax, [rbp+var_10] mov rax, [rax+8] add rax, [rbp+var_48] mov [rbp+var_60], rax mov rax, [rbp+var_60] movzx eax, byte ptr [rax] mov rcx, [rbp+var_60] movzx ecx, byte ptr [rcx+1] shl ecx, 8 add eax, ecx mov rcx, [rbp+var_60] movzx ecx, byte ptr [rcx+2] shl ecx, 10h add eax, ecx mov eax, eax mov [rbp+var_38], rax cmp [rbp+var_38], 0 jnz short loc_499B1 mov rax, [rbp+var_48] add rax, 4 mov [rbp+var_48], rax jmp loc_49B80 loc_499B1: mov rax, [rbp+var_38] add rax, 4 mov rcx, [rbp+var_40] sub rcx, [rbp+var_48] cmp rax, rcx ja loc_49A7E cmp [rbp+var_51], 0 jnz short loc_499E2 mov rax, [rbp+var_48] add rax, [rbp+var_38] add rax, 4 mov [rbp+var_48], rax jmp short loc_49A23 loc_499E2: mov rax, [rbp+var_10] mov rdi, [rax+8] add rdi, [rbp+var_48] mov rax, [rbp+var_10] mov rsi, [rax+8] add rsi, [rbp+var_48] add rsi, 4 mov rdx, [rbp+var_40] sub rdx, [rbp+var_48] call _memmove mov rax, [rbp+var_40] sub rax, 4 mov [rbp+var_40], rax mov rax, [rbp+var_38] add rax, [rbp+var_48] mov [rbp+var_48], rax loc_49A23: cmp [rbp+var_38], 0FFFFFFh jz short loc_49A36 mov [rbp+var_51], 0 jmp loc_49B80 loc_49A36: mov [rbp+var_51], 1 cmp [rbp+var_50], 0 jz short loc_49A79 mov rax, [rbp+var_10] mov rdi, [rax+8] mov rax, [rbp+var_10] mov rsi, [rax+8] add rsi, [rbp+var_50] mov rdx, [rbp+var_40] sub rdx, [rbp+var_50] call _memmove mov rcx, [rbp+var_50] mov rax, [rbp+var_40] sub rax, rcx mov [rbp+var_40], rax mov [rbp+var_50], 0 loc_49A79: jmp loc_49950 loc_49A7E: jmp short $+2 loc_49A80: cmp [rbp+var_50], 0 jz short loc_49ACE mov rax, [rbp+var_10] mov rdi, [rax+8] mov rax, [rbp+var_10] mov rsi, [rax+8] add rsi, [rbp+var_50] mov rdx, [rbp+var_40] sub rdx, [rbp+var_50] call _memmove mov rcx, [rbp+var_50] mov rax, [rbp+var_48] sub rax, rcx mov [rbp+var_48], rax mov rcx, [rbp+var_50] mov rax, [rbp+var_40] sub rax, rcx mov [rbp+var_40], rax mov [rbp+var_50], 0 loc_49ACE: mov rcx, [rbp+var_40] mov rax, [rbp+var_10] mov [rax+48h], rcx mov rdi, [rbp+var_10] lea rsi, [rbp+var_20] call ma_real_read mov [rbp+var_38], rax mov ecx, 0FFFFFFFFh cmp rax, rcx jnz short loc_49B03 mov eax, 0FFFFFFFFh mov [rbp+var_8], rax jmp loc_49C07 loc_49B03: mov rdi, [rbp+var_10] mov rax, [rbp+var_10] mov rsi, [rax+8] mov rax, [rbp+var_10] add rsi, [rax+48h] lea rdx, [rbp+var_38] lea rcx, [rbp+var_20] call _mariadb_uncompress cmp al, 0 jz short loc_49B6F mov rax, [rbp+var_10] mov byte ptr [rax+94h], 2 mov rax, [rbp+var_10] mov rax, [rax] mov r8, [rax+50h] mov rax, [rbp+var_10] mov rax, [rax] mov rdi, [rax+40h] lea rax, SQLSTATE_UNKNOWN mov rdx, [rax] mov esi, 1397h xor eax, eax mov ecx, eax mov al, 0 call r8 mov eax, 0FFFFFFFFh mov [rbp+var_8], rax jmp loc_49C07 loc_49B6F: mov rax, [rbp+var_20] add rax, [rbp+var_40] mov [rbp+var_40], rax jmp loc_49950 loc_49B80: mov rcx, [rbp+var_40] mov rax, [rbp+var_10] mov [rax+40h], rcx mov rcx, [rbp+var_40] sub rcx, [rbp+var_48] mov rax, [rbp+var_10] mov [rax+30h], rcx mov rax, [rbp+var_10] mov rcx, [rax+8] add rcx, [rbp+var_50] add rcx, 4 mov rax, [rbp+var_10] mov [rax+20h], rcx mov rax, [rbp+var_48] sub rax, [rbp+var_50] sub rax, 4 mov [rbp+var_18], rax cmp [rbp+var_51], 0 jz short loc_49BD6 mov rax, [rbp+var_18] sub rax, 4 mov [rbp+var_18], rax loc_49BD6: mov rax, [rbp+var_10] mov rax, [rax+20h] mov rcx, [rbp+var_18] mov cl, [rax+rcx] mov rax, [rbp+var_10] mov [rax+81h], cl mov rax, [rbp+var_10] mov rax, [rax+20h] mov rcx, [rbp+var_18] mov byte ptr [rax+rcx], 0 mov rax, [rbp+var_18] mov [rbp+var_8], rax loc_49C07: mov rax, [rbp+var_8] add rsp, 60h pop rbp retn
long long ma_net_read(long long a1) { char v2; // [rsp+Fh] [rbp-51h] long long v3; // [rsp+10h] [rbp-50h] long long v4; // [rsp+18h] [rbp-48h] long long v5; // [rsp+20h] [rbp-40h] long long v6; // [rsp+28h] [rbp-38h] BYREF long long v7; // [rsp+30h] [rbp-30h] long long v8; // [rsp+38h] [rbp-28h] long long v9; // [rsp+40h] [rbp-20h] BYREF long long v10; // [rsp+48h] [rbp-18h] long long v11; // [rsp+50h] [rbp-10h] v11 = a1; if ( *(_BYTE *)(a1 + 132) ) { v4 = 0LL; v3 = 0LL; v2 = 0; if ( *(_QWORD *)(v11 + 48) ) { v5 = *(_QWORD *)(v11 + 64); v4 = v5 - *(_QWORD *)(v11 + 48); v3 = v4; *(_BYTE *)(*(_QWORD *)(v11 + 8) + v4) = *(_BYTE *)(v11 + 129); } else { v5 = 0LL; } while ( 1 ) { while ( 1 ) { if ( (unsigned long long)(v5 - v4) >= 4 ) { v6 = (*(unsigned __int8 *)(v4 + *(_QWORD *)(v11 + 8) + 2) << 16) + (*(unsigned __int8 *)(v4 + *(_QWORD *)(v11 + 8) + 1) << 8) + (unsigned int)*(unsigned __int8 *)(v4 + *(_QWORD *)(v11 + 8)); if ( !v6 ) { v4 += 4LL; goto LABEL_32; } if ( v6 + 4 <= (unsigned long long)(v5 - v4) ) break; } if ( v3 ) { memmove(*(_QWORD *)(v11 + 8), v3 + *(_QWORD *)(v11 + 8), v5 - v3); v4 -= v3; v5 -= v3; v3 = 0LL; } *(_QWORD *)(v11 + 72) = v5; v6 = ma_real_read(v11, &v9); if ( v6 == 0xFFFFFFFFLL ) return 0xFFFFFFFFLL; if ( mariadb_uncompress(v11, *(_QWORD *)(v11 + 72) + *(_QWORD *)(v11 + 8), &v6, &v9) ) { *(_BYTE *)(v11 + 148) = 2; (*(void ( **)(_QWORD, long long, char *, _QWORD))(*(_QWORD *)v11 + 80LL))( *(_QWORD *)(*(_QWORD *)v11 + 64LL), 5015LL, SQLSTATE_UNKNOWN, 0LL); return 0xFFFFFFFFLL; } v5 += v9; } if ( v2 ) { memmove(v4 + *(_QWORD *)(v11 + 8), v4 + *(_QWORD *)(v11 + 8) + 4, v5 - v4); v5 -= 4LL; v4 += v6; } else { v4 += v6 + 4; } if ( v6 != 0xFFFFFF ) break; v2 = 1; if ( v3 ) { memmove(*(_QWORD *)(v11 + 8), v3 + *(_QWORD *)(v11 + 8), v5 - v3); v5 -= v3; v3 = 0LL; } } v2 = 0; LABEL_32: *(_QWORD *)(v11 + 64) = v5; *(_QWORD *)(v11 + 48) = v5 - v4; *(_QWORD *)(v11 + 32) = v3 + *(_QWORD *)(v11 + 8) + 4; v10 = v4 - v3 - 4; if ( v2 ) v10 -= 4LL; *(_BYTE *)(v11 + 129) = *(_BYTE *)(*(_QWORD *)(v11 + 32) + v10); *(_BYTE *)(*(_QWORD *)(v11 + 32) + v10) = 0; return v10; } else { v10 = ma_real_read(v11, &v9); if ( v10 == 0xFFFFFF ) { v8 = 0LL; v7 = *(_QWORD *)(v11 + 72); do { v8 += v10; *(_QWORD *)(v11 + 72) += v10; v10 = ma_real_read(v11, &v9); } while ( v10 == 0xFFFFFF ); *(_QWORD *)(v11 + 72) = v7; if ( v10 != 0xFFFFFFFFLL ) v10 += v8; } *(_QWORD *)(v11 + 32) = *(_QWORD *)(v11 + 72) + *(_QWORD *)(v11 + 8); if ( v10 != 0xFFFFFFFFLL ) *(_BYTE *)(*(_QWORD *)(v11 + 32) + v10) = 0; return v10; } }
ma_net_read: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x10],RDI MOV RAX,qword ptr [RBP + -0x10] CMP byte ptr [RAX + 0x84],0x0 JNZ 0x001498d8 MOV RDI,qword ptr [RBP + -0x10] LEA RSI,[RBP + -0x20] CALL 0x00149c20 MOV qword ptr [RBP + -0x18],RAX CMP qword ptr [RBP + -0x18],0xffffff JNZ 0x00149898 MOV qword ptr [RBP + -0x28],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x48] MOV qword ptr [RBP + -0x30],RAX LAB_0014983c: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x28],RAX MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x10] ADD RCX,qword ptr [RAX + 0x48] MOV qword ptr [RAX + 0x48],RCX MOV RDI,qword ptr [RBP + -0x10] LEA RSI,[RBP + -0x20] CALL 0x00149c20 MOV qword ptr [RBP + -0x18],RAX CMP qword ptr [RBP + -0x18],0xffffff JZ 0x0014983c MOV RCX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x48],RCX MOV EAX,0xffffffff CMP qword ptr [RBP + -0x18],RAX JZ 0x00149896 MOV RAX,qword ptr [RBP + -0x28] ADD RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x18],RAX LAB_00149896: JMP 0x00149898 LAB_00149898: MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x10] ADD RCX,qword ptr [RAX + 0x48] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x20],RCX MOV EAX,0xffffffff CMP qword ptr [RBP + -0x18],RAX JZ 0x001498cb MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x20] MOV RCX,qword ptr [RBP + -0x18] MOV byte ptr [RAX + RCX*0x1],0x0 LAB_001498cb: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x8],RAX JMP 0x00149c07 LAB_001498d8: MOV qword ptr [RBP + -0x48],0x0 MOV qword ptr [RBP + -0x50],0x0 MOV byte ptr [RBP + -0x51],0x0 MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX + 0x30],0x0 JNZ 0x00149901 MOV qword ptr [RBP + -0x40],0x0 JMP 0x0014994e LAB_00149901: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x40] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x40] MOV RCX,qword ptr [RBP + -0x10] SUB RAX,qword ptr [RCX + 0x30] MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x48] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x10] MOV DL,byte ptr [RAX + 0x81] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX + 0x40] MOV RSI,qword ptr [RBP + -0x10] SUB RCX,qword ptr [RSI + 0x30] MOV byte ptr [RAX + RCX*0x1],DL LAB_0014994e: JMP 0x00149950 LAB_00149950: MOV RAX,qword ptr [RBP + -0x40] SUB RAX,qword ptr [RBP + -0x48] CMP RAX,0x4 JC 0x00149a80 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] ADD RAX,qword ptr [RBP + -0x48] MOV qword ptr [RBP + -0x60],RAX MOV RAX,qword ptr [RBP + -0x60] MOVZX EAX,byte ptr [RAX] MOV RCX,qword ptr [RBP + -0x60] MOVZX ECX,byte ptr [RCX + 0x1] SHL ECX,0x8 ADD EAX,ECX MOV RCX,qword ptr [RBP + -0x60] MOVZX ECX,byte ptr [RCX + 0x2] SHL ECX,0x10 ADD EAX,ECX MOV EAX,EAX MOV qword ptr [RBP + -0x38],RAX CMP qword ptr [RBP + -0x38],0x0 JNZ 0x001499b1 MOV RAX,qword ptr [RBP + -0x48] ADD RAX,0x4 MOV qword ptr [RBP + -0x48],RAX JMP 0x00149b80 LAB_001499b1: MOV RAX,qword ptr [RBP + -0x38] ADD RAX,0x4 MOV RCX,qword ptr [RBP + -0x40] SUB RCX,qword ptr [RBP + -0x48] CMP RAX,RCX JA 0x00149a7e CMP byte ptr [RBP + -0x51],0x0 JNZ 0x001499e2 MOV RAX,qword ptr [RBP + -0x48] ADD RAX,qword ptr [RBP + -0x38] ADD RAX,0x4 MOV qword ptr [RBP + -0x48],RAX JMP 0x00149a23 LAB_001499e2: MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x8] ADD RDI,qword ptr [RBP + -0x48] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX + 0x8] ADD RSI,qword ptr [RBP + -0x48] ADD RSI,0x4 MOV RDX,qword ptr [RBP + -0x40] SUB RDX,qword ptr [RBP + -0x48] CALL 0x001136f0 MOV RAX,qword ptr [RBP + -0x40] SUB RAX,0x4 MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x38] ADD RAX,qword ptr [RBP + -0x48] MOV qword ptr [RBP + -0x48],RAX LAB_00149a23: CMP qword ptr [RBP + -0x38],0xffffff JZ 0x00149a36 MOV byte ptr [RBP + -0x51],0x0 JMP 0x00149b80 LAB_00149a36: MOV byte ptr [RBP + -0x51],0x1 CMP qword ptr [RBP + -0x50],0x0 JZ 0x00149a79 MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX + 0x8] ADD RSI,qword ptr [RBP + -0x50] MOV RDX,qword ptr [RBP + -0x40] SUB RDX,qword ptr [RBP + -0x50] CALL 0x001136f0 MOV RCX,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RBP + -0x40] SUB RAX,RCX MOV qword ptr [RBP + -0x40],RAX MOV qword ptr [RBP + -0x50],0x0 LAB_00149a79: JMP 0x00149950 LAB_00149a7e: JMP 0x00149a80 LAB_00149a80: CMP qword ptr [RBP + -0x50],0x0 JZ 0x00149ace MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX + 0x8] ADD RSI,qword ptr [RBP + -0x50] MOV RDX,qword ptr [RBP + -0x40] SUB RDX,qword ptr [RBP + -0x50] CALL 0x001136f0 MOV RCX,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RBP + -0x48] SUB RAX,RCX MOV qword ptr [RBP + -0x48],RAX MOV RCX,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RBP + -0x40] SUB RAX,RCX MOV qword ptr [RBP + -0x40],RAX MOV qword ptr [RBP + -0x50],0x0 LAB_00149ace: MOV RCX,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x48],RCX MOV RDI,qword ptr [RBP + -0x10] LEA RSI,[RBP + -0x20] CALL 0x00149c20 MOV qword ptr [RBP + -0x38],RAX MOV ECX,0xffffffff CMP RAX,RCX JNZ 0x00149b03 MOV EAX,0xffffffff MOV qword ptr [RBP + -0x8],RAX JMP 0x00149c07 LAB_00149b03: MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x10] ADD RSI,qword ptr [RAX + 0x48] LEA RDX,[RBP + -0x38] LEA RCX,[RBP + -0x20] CALL 0x00129f80 CMP AL,0x0 JZ 0x00149b6f MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x94],0x2 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV R8,qword ptr [RAX + 0x50] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RDI,qword ptr [RAX + 0x40] LEA RAX,[0x164140] MOV RDX,qword ptr [RAX] MOV ESI,0x1397 XOR EAX,EAX MOV ECX,EAX MOV AL,0x0 CALL R8 MOV EAX,0xffffffff MOV qword ptr [RBP + -0x8],RAX JMP 0x00149c07 LAB_00149b6f: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x40],RAX JMP 0x00149950 LAB_00149b80: MOV RCX,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x40],RCX MOV RCX,qword ptr [RBP + -0x40] SUB RCX,qword ptr [RBP + -0x48] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x30],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x8] ADD RCX,qword ptr [RBP + -0x50] ADD RCX,0x4 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x20],RCX MOV RAX,qword ptr [RBP + -0x48] SUB RAX,qword ptr [RBP + -0x50] SUB RAX,0x4 MOV qword ptr [RBP + -0x18],RAX CMP byte ptr [RBP + -0x51],0x0 JZ 0x00149bd6 MOV RAX,qword ptr [RBP + -0x18] SUB RAX,0x4 MOV qword ptr [RBP + -0x18],RAX LAB_00149bd6: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x20] MOV RCX,qword ptr [RBP + -0x18] MOV CL,byte ptr [RAX + RCX*0x1] MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x81],CL MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x20] MOV RCX,qword ptr [RBP + -0x18] MOV byte ptr [RAX + RCX*0x1],0x0 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x8],RAX LAB_00149c07: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x60 POP RBP RET
long ma_net_read(long *param_1) { bool bVar1; char cVar2; byte *pbVar3; long local_58; long local_50; long local_48; ulong local_40; long local_38; long local_30; long local_28; long local_20; long *local_18; local_18 = param_1; if (*(char *)((long)param_1 + 0x84) == '\0') { local_20 = ma_real_read(param_1,&local_28); if (local_20 == 0xffffff) { local_30 = 0; local_38 = local_18[9]; local_20 = 0xffffff; do { local_30 = local_20 + local_30; local_18[9] = local_20 + local_18[9]; local_20 = ma_real_read(local_18,&local_28); } while (local_20 == 0xffffff); local_18[9] = local_38; if (local_20 != 0xffffffff) { local_20 = local_30 + local_20; } } local_18[4] = local_18[1] + local_18[9]; if (local_20 != 0xffffffff) { *(int1 *)(local_18[4] + local_20) = 0; } return local_20; } local_50 = 0; bVar1 = false; if (param_1[6] == 0) { local_48 = 0; local_58 = local_50; } else { local_48 = param_1[8]; local_58 = param_1[8] - param_1[6]; *(int1 *)(param_1[1] + (param_1[8] - param_1[6])) = *(int1 *)((long)param_1 + 0x81); local_50 = local_58; } LAB_00149950: do { if (3 < (ulong)(local_48 - local_50)) { pbVar3 = (byte *)(local_18[1] + local_50); local_40 = (ulong)((uint)*pbVar3 + (uint)pbVar3[1] * 0x100 + (uint)pbVar3[2] * 0x10000); if (local_40 == 0) { local_50 = local_50 + 4; LAB_00149b80: local_18[8] = local_48; local_18[6] = local_48 - local_50; local_18[4] = local_18[1] + local_58 + 4; local_20 = (local_50 - local_58) + -4; if (bVar1) { local_20 = (local_50 - local_58) + -8; } *(int1 *)((long)local_18 + 0x81) = *(int1 *)(local_18[4] + local_20); *(int1 *)(local_18[4] + local_20) = 0; return local_20; } if (local_40 + 4 <= (ulong)(local_48 - local_50)) { if (bVar1) { memmove((void *)(local_18[1] + local_50),(void *)(local_18[1] + local_50 + 4), local_48 - local_50); local_48 = local_48 + -4; local_50 = local_40 + local_50; } else { local_50 = local_50 + local_40 + 4; } if (local_40 != 0xffffff) { bVar1 = false; goto LAB_00149b80; } bVar1 = true; if (local_58 != 0) { memmove((void *)local_18[1],(void *)(local_18[1] + local_58),local_48 - local_58); local_48 = local_48 - local_58; local_58 = 0; } goto LAB_00149950; } } if (local_58 != 0) { memmove((void *)local_18[1],(void *)(local_18[1] + local_58),local_48 - local_58); local_50 = local_50 - local_58; local_48 = local_48 - local_58; local_58 = 0; } local_18[9] = local_48; local_40 = ma_real_read(local_18,&local_28); if (local_40 == 0xffffffff) { return 0xffffffff; } cVar2 = _mariadb_uncompress(local_18,local_18[1] + local_18[9],&local_40,&local_28); if (cVar2 != '\0') { *(int1 *)((long)local_18 + 0x94) = 2; (**(code **)(*local_18 + 0x50))(*(int8 *)(*local_18 + 0x40),0x1397,SQLSTATE_UNKNOWN,0); return 0xffffffff; } local_48 = local_28 + local_48; } while( true ); }
49,365
ma_net_read
eloqsql/libmariadb/libmariadb/ma_net.c
ulong ma_net_read(NET *net) { size_t len,complen; #ifdef HAVE_COMPRESS if (!net->compress) { #endif len = ma_real_read (net,(size_t *)&complen); if (len == MAX_PACKET_LENGTH) { /* multi packet read */ size_t length= 0; ulong last_pos= net->where_b; do { length+= len; net->where_b+= (unsigned long)len; len= ma_real_read(net, &complen); } while (len == MAX_PACKET_LENGTH); net->where_b= last_pos; if (len != packet_error) len+= length; } net->read_pos = net->buff + net->where_b; if (len != packet_error) net->read_pos[len]=0; /* Safeguard for mysql_use_result */ return (ulong)len; #ifdef HAVE_COMPRESS } else { /* compressed protocol: -------------------------------------- packet_length 3 sequence_id 1 uncompressed_length 3 -------------------------------------- compressed data packet_length - 7 -------------------------------------- Another packet will follow if: packet_length == MAX_PACKET_LENGTH Last package will be identified by - packet_length is zero (special case) - packet_length < MAX_PACKET_LENGTH */ size_t packet_length, buffer_length; size_t current= 0, start= 0; my_bool is_multi_packet= 0; /* check if buffer is empty */ if (!net->remain_in_buf) { buffer_length= 0; } else { /* save position and restore \0 character */ buffer_length= net->buf_length; current= net->buf_length - net->remain_in_buf; start= current; net->buff[net->buf_length - net->remain_in_buf]=net->save_char; } for (;;) { if (buffer_length - current >= 4) { uchar *pos= net->buff + current; packet_length= uint3korr(pos); /* check if we have last package (special case: zero length) */ if (!packet_length) { current+= 4; /* length + sequence_id, no more data will follow */ break; } if (packet_length + 4 <= buffer_length - current) { if (!is_multi_packet) { current= current + packet_length + 4; } else { /* remove packet_header */ memmove(net->buff + current, net->buff + current + 4, buffer_length - current); buffer_length-= 4; current+= packet_length; } /* do we have last packet ? */ if (packet_length != MAX_PACKET_LENGTH) { is_multi_packet= 0; break; } else is_multi_packet= 1; if (start) { memmove(net->buff, net->buff + start, buffer_length - start); /* decrease buflen*/ buffer_length-= start; start= 0; } continue; } } if (start) { memmove(net->buff, net->buff + start, buffer_length - start); /* decrease buflen and current */ current -= start; buffer_length-= start; start= 0; } net->where_b=(unsigned long)buffer_length; if ((packet_length = ma_real_read(net,(size_t *)&complen)) == packet_error) return packet_error; if (_mariadb_uncompress(net, (unsigned char*) net->buff + net->where_b, &packet_length, &complen)) { net->error=2; /* caller will close socket */ net->pvio->set_error(net->pvio->mysql, CR_ERR_NET_UNCOMPRESS, SQLSTATE_UNKNOWN, 0); return packet_error; } buffer_length+= complen; } /* set values */ net->buf_length= (unsigned long)buffer_length; net->remain_in_buf= (unsigned long)(buffer_length - current); net->read_pos= net->buff + start + 4; len= current - start - 4; if (is_multi_packet) len-= 4; net->save_char= net->read_pos[len]; /* Must be saved */ net->read_pos[len]=0; /* Safeguard for mysql_use_result */ } #endif return (ulong)len; }
O3
c
ma_net_read: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdi, %rbx cmpb $0x0, 0x84(%rdi) je 0x338c0 movq 0x30(%rbx), %rax testq %rax, %rax je 0x33920 movq 0x8(%rbx), %rcx movq 0x40(%rbx), %r15 movq %r15, %r14 subq %rax, %r14 movb 0x81(%rbx), %al movb %al, (%rcx,%r14) jmp 0x33926 leaq -0x38(%rbp), %rsi movq %rbx, %rdi callq 0x33ad2 movq 0x48(%rbx), %r15 cmpq $0xffffff, %rax # imm = 0xFFFFFF jne 0x33a98 xorl %r12d, %r12d movl $0xffffff, %r13d # imm = 0xFFFFFF leaq -0x38(%rbp), %r14 addq %r13, %r12 addq %r13, 0x48(%rbx) movq %rbx, %rdi movq %r14, %rsi callq 0x33ad2 cmpq %r13, %rax je 0x338e9 movq %r15, 0x48(%rbx) movl $0xffffffff, %r14d # imm = 0xFFFFFFFF cmpq %r14, %rax jne 0x33a95 addq 0x8(%rbx), %r15 movq %r15, 0x20(%rbx) jmp 0x33ab3 xorl %r15d, %r15d xorl %r14d, %r14d movb $0x1, %cl leaq -0x38(%rbp), %r12 movq %r14, %rax movq %rcx, -0x40(%rbp) movq %rax, %r13 movq %r15, %rdx subq %r14, %rdx cmpq $0x4, %rdx jb 0x3396a movq 0x8(%rbx), %rdi movzwl (%rdi,%r14), %ecx movzbl 0x2(%rdi,%r14), %eax shll $0x10, %eax orq %rcx, %rax movq %rax, -0x30(%rbp) je 0x33a58 leaq 0x4(%rax), %rcx cmpq %rdx, %rcx jbe 0x339cd testq %r13, %r13 je 0x33985 movq 0x8(%rbx), %rdi leaq (%rdi,%r13), %rsi subq %r13, %r15 movq %r15, %rdx callq 0x13720 subq %r13, %r14 movq %r15, 0x48(%rbx) movq %rbx, %rdi movq %r12, %rsi callq 0x33ad2 movq %rax, -0x30(%rbp) movl $0xffffffff, %ecx # imm = 0xFFFFFFFF cmpq %rcx, %rax je 0x33a50 movq 0x8(%rbx), %rsi addq 0x48(%rbx), %rsi movq %rbx, %rdi leaq -0x30(%rbp), %rdx movq %r12, %rcx callq 0x20d19 testb %al, %al jne 0x33a2b addq -0x38(%rbp), %r15 xorl %r13d, %r13d jmp 0x33936 testb $0x1, -0x40(%rbp) je 0x339dc addq %rax, %r14 addq $0x4, %r14 jmp 0x339f3 addq %r14, %rdi leaq 0x4(%rdi), %rsi callq 0x13720 addq $-0x4, %r15 movq -0x30(%rbp), %rax addq %rax, %r14 cmpq $0xffffff, %rax # imm = 0xFFFFFF jne 0x33ac5 xorl %eax, %eax movl $0x0, %ecx testq %r13, %r13 je 0x3392f movq 0x8(%rbx), %rdi leaq (%rdi,%r13), %rsi subq %r13, %r15 movq %r15, %rdx callq 0x13720 xorl %eax, %eax xorl %ecx, %ecx jmp 0x3392f movb $0x2, 0x94(%rbx) movq (%rbx), %r8 movq 0x40(%r8), %rdi leaq 0x18250(%rip), %rax # 0x4bc90 movq (%rax), %rdx movl $0x1397, %esi # imm = 0x1397 xorl %ecx, %ecx xorl %eax, %eax callq *0x50(%r8) movl $0xffffffff, %r14d # imm = 0xFFFFFFFF jmp 0x33ab3 addq $0x4, %r14 movzbl -0x40(%rbp), %eax shll $0x2, %eax orq $-0x8, %rax movq %r15, 0x40(%rbx) subq %r14, %r15 movq %r15, 0x30(%rbx) leaq (%rdi,%r13), %rcx addq $0x4, %rcx movq %rcx, 0x20(%rbx) subq %r13, %r14 addq %rax, %r14 movb (%rcx,%r14), %al movb %al, 0x81(%rbx) movb $0x0, (%rcx,%r14) jmp 0x33ab3 addq %r12, %rax movl $0xffffffff, %r14d # imm = 0xFFFFFFFF addq 0x8(%rbx), %r15 movq %r15, 0x20(%rbx) cmpq %r14, %rax je 0x33ab3 movb $0x0, (%r15,%rax) movq %rax, %r14 movq %r14, %rax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq 0x8(%rbx), %rdi movq $-0x4, %rax jmp 0x33a67
ma_net_read: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov rbx, rdi cmp byte ptr [rdi+84h], 0 jz short loc_338C0 mov rax, [rbx+30h] test rax, rax jz short loc_33920 mov rcx, [rbx+8] mov r15, [rbx+40h] mov r14, r15 sub r14, rax mov al, [rbx+81h] mov [rcx+r14], al jmp short loc_33926 loc_338C0: lea rsi, [rbp+var_38] mov rdi, rbx call ma_real_read mov r15, [rbx+48h] cmp rax, 0FFFFFFh jnz loc_33A98 xor r12d, r12d mov r13d, 0FFFFFFh lea r14, [rbp+var_38] loc_338E9: add r12, r13 add [rbx+48h], r13 mov rdi, rbx mov rsi, r14 call ma_real_read cmp rax, r13 jz short loc_338E9 mov [rbx+48h], r15 mov r14d, 0FFFFFFFFh cmp rax, r14 jnz loc_33A95 add r15, [rbx+8] mov [rbx+20h], r15 jmp loc_33AB3 loc_33920: xor r15d, r15d xor r14d, r14d loc_33926: mov cl, 1 lea r12, [rbp+var_38] mov rax, r14 loc_3392F: mov [rbp+var_40], rcx mov r13, rax loc_33936: mov rdx, r15 sub rdx, r14 cmp rdx, 4 jb short loc_3396A mov rdi, [rbx+8] movzx ecx, word ptr [rdi+r14] movzx eax, byte ptr [rdi+r14+2] shl eax, 10h or rax, rcx mov [rbp+var_30], rax jz loc_33A58 lea rcx, [rax+4] cmp rcx, rdx jbe short loc_339CD loc_3396A: test r13, r13 jz short loc_33985 mov rdi, [rbx+8] lea rsi, [rdi+r13] sub r15, r13 mov rdx, r15 call _memmove sub r14, r13 loc_33985: mov [rbx+48h], r15 mov rdi, rbx mov rsi, r12 call ma_real_read mov [rbp+var_30], rax mov ecx, 0FFFFFFFFh cmp rax, rcx jz loc_33A50 mov rsi, [rbx+8] add rsi, [rbx+48h] mov rdi, rbx lea rdx, [rbp+var_30] mov rcx, r12 call _mariadb_uncompress test al, al jnz short loc_33A2B add r15, [rbp+var_38] xor r13d, r13d jmp loc_33936 loc_339CD: test byte ptr [rbp+var_40], 1 jz short loc_339DC add r14, rax add r14, 4 jmp short loc_339F3 loc_339DC: add rdi, r14 lea rsi, [rdi+4] call _memmove add r15, 0FFFFFFFFFFFFFFFCh mov rax, [rbp+var_30] add r14, rax loc_339F3: cmp rax, 0FFFFFFh jnz loc_33AC5 xor eax, eax mov ecx, 0 test r13, r13 jz loc_3392F mov rdi, [rbx+8] lea rsi, [rdi+r13] sub r15, r13 mov rdx, r15 call _memmove xor eax, eax xor ecx, ecx jmp loc_3392F loc_33A2B: mov byte ptr [rbx+94h], 2 mov r8, [rbx] mov rdi, [r8+40h] lea rax, SQLSTATE_UNKNOWN mov rdx, [rax] mov esi, 1397h xor ecx, ecx xor eax, eax call qword ptr [r8+50h] loc_33A50: mov r14d, 0FFFFFFFFh jmp short loc_33AB3 loc_33A58: add r14, 4 movzx eax, byte ptr [rbp+var_40] shl eax, 2 or rax, 0FFFFFFFFFFFFFFF8h loc_33A67: mov [rbx+40h], r15 sub r15, r14 mov [rbx+30h], r15 lea rcx, [rdi+r13] add rcx, 4 mov [rbx+20h], rcx sub r14, r13 add r14, rax mov al, [rcx+r14] mov [rbx+81h], al mov byte ptr [rcx+r14], 0 jmp short loc_33AB3 loc_33A95: add rax, r12 loc_33A98: mov r14d, 0FFFFFFFFh add r15, [rbx+8] mov [rbx+20h], r15 cmp rax, r14 jz short loc_33AB3 mov byte ptr [r15+rax], 0 mov r14, rax loc_33AB3: mov rax, r14 add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_33AC5: mov rdi, [rbx+8] mov rax, 0FFFFFFFFFFFFFFFCh jmp short loc_33A67
long long ma_net_read(long long a1) { long long v2; // rax long long v3; // r15 long long v4; // r14 long long v5; // rax long long v6; // r15 long long v7; // r12 long long v8; // rax long long v9; // r14 char v10; // cl long long v11; // rax long long i; // r13 unsigned long long v13; // rdx long long v14; // rdi unsigned long long v15; // rax unsigned long long v16; // rax long long v17; // rcx long long v18; // r15 char v20; // [rsp+0h] [rbp-40h] long long v21; // [rsp+8h] [rbp-38h] BYREF long long v22[6]; // [rsp+10h] [rbp-30h] BYREF if ( *(_BYTE *)(a1 + 132) ) { v2 = *(_QWORD *)(a1 + 48); if ( v2 ) { v3 = *(_QWORD *)(a1 + 64); v4 = v3 - v2; *(_BYTE *)(*(_QWORD *)(a1 + 8) + v3 - v2) = *(_BYTE *)(a1 + 129); } else { v3 = 0LL; v4 = 0LL; } v10 = 1; v11 = v4; while ( 1 ) { v20 = v10; for ( i = v11; ; i = 0LL ) { v13 = v3 - v4; if ( (unsigned long long)(v3 - v4) >= 4 ) { v14 = *(_QWORD *)(a1 + 8); v15 = *(unsigned __int16 *)(v14 + v4) | (unsigned long long)(*(unsigned __int8 *)(v14 + v4 + 2) << 16); v22[0] = v15; if ( !v15 ) { v4 += 4LL; v16 = (4 * v20) | 0xFFFFFFFFFFFFFFF8LL; goto LABEL_29; } if ( v15 + 4 <= v13 ) break; } if ( i ) { v3 -= i; memmove(*(_QWORD *)(a1 + 8), *(_QWORD *)(a1 + 8) + i, v3); v4 -= i; } *(_QWORD *)(a1 + 72) = v3; v22[0] = ma_real_read(a1, &v21); if ( v22[0] == 0xFFFFFFFFLL ) return 0xFFFFFFFFLL; if ( (unsigned __int8)mariadb_uncompress(a1, *(_QWORD *)(a1 + 72) + *(_QWORD *)(a1 + 8), v22, &v21) ) { *(_BYTE *)(a1 + 148) = 2; (*(void ( **)(_QWORD, long long, char *, _QWORD))(*(_QWORD *)a1 + 80LL))( *(_QWORD *)(*(_QWORD *)a1 + 64LL), 5015LL, SQLSTATE_UNKNOWN, 0LL); return 0xFFFFFFFFLL; } v3 += v21; } if ( (v20 & 1) != 0 ) { v4 += v15 + 4; } else { memmove(v4 + v14, v4 + v14 + 4, v13); v3 -= 4LL; v15 = v22[0]; v4 += v22[0]; } if ( v15 != 0xFFFFFF ) break; v11 = 0LL; v10 = 0; if ( i ) { v3 -= i; memmove(*(_QWORD *)(a1 + 8), *(_QWORD *)(a1 + 8) + i, v3); v11 = 0LL; v10 = 0; } } v14 = *(_QWORD *)(a1 + 8); v16 = -4LL; LABEL_29: *(_QWORD *)(a1 + 64) = v3; *(_QWORD *)(a1 + 48) = v3 - v4; v17 = v14 + i + 4; *(_QWORD *)(a1 + 32) = v17; v9 = v16 + v4 - i; *(_BYTE *)(a1 + 129) = *(_BYTE *)(v17 + v9); *(_BYTE *)(v17 + v9) = 0; } else { v5 = ma_real_read(a1, &v21); v6 = *(_QWORD *)(a1 + 72); if ( v5 == 0xFFFFFF ) { v7 = 0LL; do { v7 += 0xFFFFFFLL; *(_QWORD *)(a1 + 72) += 0xFFFFFFLL; v8 = ma_real_read(a1, &v21); } while ( v8 == 0xFFFFFF ); *(_QWORD *)(a1 + 72) = v6; v9 = 0xFFFFFFFFLL; if ( v8 == 0xFFFFFFFFLL ) { *(_QWORD *)(a1 + 32) = *(_QWORD *)(a1 + 8) + v6; return v9; } v5 = v7 + v8; } v9 = 0xFFFFFFFFLL; v18 = *(_QWORD *)(a1 + 8) + v6; *(_QWORD *)(a1 + 32) = v18; if ( v5 != 0xFFFFFFFFLL ) { *(_BYTE *)(v18 + v5) = 0; return v5; } } return v9; }
ma_net_read: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV RBX,RDI CMP byte ptr [RDI + 0x84],0x0 JZ 0x001338c0 MOV RAX,qword ptr [RBX + 0x30] TEST RAX,RAX JZ 0x00133920 MOV RCX,qword ptr [RBX + 0x8] MOV R15,qword ptr [RBX + 0x40] MOV R14,R15 SUB R14,RAX MOV AL,byte ptr [RBX + 0x81] MOV byte ptr [RCX + R14*0x1],AL JMP 0x00133926 LAB_001338c0: LEA RSI,[RBP + -0x38] MOV RDI,RBX CALL 0x00133ad2 MOV R15,qword ptr [RBX + 0x48] CMP RAX,0xffffff JNZ 0x00133a98 XOR R12D,R12D MOV R13D,0xffffff LEA R14,[RBP + -0x38] LAB_001338e9: ADD R12,R13 ADD qword ptr [RBX + 0x48],R13 MOV RDI,RBX MOV RSI,R14 CALL 0x00133ad2 CMP RAX,R13 JZ 0x001338e9 MOV qword ptr [RBX + 0x48],R15 MOV R14D,0xffffffff CMP RAX,R14 JNZ 0x00133a95 ADD R15,qword ptr [RBX + 0x8] MOV qword ptr [RBX + 0x20],R15 JMP 0x00133ab3 LAB_00133920: XOR R15D,R15D XOR R14D,R14D LAB_00133926: MOV CL,0x1 LEA R12,[RBP + -0x38] MOV RAX,R14 LAB_0013392f: MOV qword ptr [RBP + -0x40],RCX MOV R13,RAX LAB_00133936: MOV RDX,R15 SUB RDX,R14 CMP RDX,0x4 JC 0x0013396a MOV RDI,qword ptr [RBX + 0x8] MOVZX ECX,word ptr [RDI + R14*0x1] MOVZX EAX,byte ptr [RDI + R14*0x1 + 0x2] SHL EAX,0x10 OR RAX,RCX MOV qword ptr [RBP + -0x30],RAX JZ 0x00133a58 LEA RCX,[RAX + 0x4] CMP RCX,RDX JBE 0x001339cd LAB_0013396a: TEST R13,R13 JZ 0x00133985 MOV RDI,qword ptr [RBX + 0x8] LEA RSI,[RDI + R13*0x1] SUB R15,R13 MOV RDX,R15 CALL 0x00113720 SUB R14,R13 LAB_00133985: MOV qword ptr [RBX + 0x48],R15 MOV RDI,RBX MOV RSI,R12 CALL 0x00133ad2 MOV qword ptr [RBP + -0x30],RAX MOV ECX,0xffffffff CMP RAX,RCX JZ 0x00133a50 MOV RSI,qword ptr [RBX + 0x8] ADD RSI,qword ptr [RBX + 0x48] MOV RDI,RBX LEA RDX,[RBP + -0x30] MOV RCX,R12 CALL 0x00120d19 TEST AL,AL JNZ 0x00133a2b ADD R15,qword ptr [RBP + -0x38] XOR R13D,R13D JMP 0x00133936 LAB_001339cd: TEST byte ptr [RBP + -0x40],0x1 JZ 0x001339dc ADD R14,RAX ADD R14,0x4 JMP 0x001339f3 LAB_001339dc: ADD RDI,R14 LEA RSI,[RDI + 0x4] CALL 0x00113720 ADD R15,-0x4 MOV RAX,qword ptr [RBP + -0x30] ADD R14,RAX LAB_001339f3: CMP RAX,0xffffff JNZ 0x00133ac5 XOR EAX,EAX MOV ECX,0x0 TEST R13,R13 JZ 0x0013392f MOV RDI,qword ptr [RBX + 0x8] LEA RSI,[RDI + R13*0x1] SUB R15,R13 MOV RDX,R15 CALL 0x00113720 XOR EAX,EAX XOR ECX,ECX JMP 0x0013392f LAB_00133a2b: MOV byte ptr [RBX + 0x94],0x2 MOV R8,qword ptr [RBX] MOV RDI,qword ptr [R8 + 0x40] LEA RAX,[0x14bc90] MOV RDX,qword ptr [RAX] MOV ESI,0x1397 XOR ECX,ECX XOR EAX,EAX CALL qword ptr [R8 + 0x50] LAB_00133a50: MOV R14D,0xffffffff JMP 0x00133ab3 LAB_00133a58: ADD R14,0x4 MOVZX EAX,byte ptr [RBP + -0x40] SHL EAX,0x2 OR RAX,-0x8 LAB_00133a67: MOV qword ptr [RBX + 0x40],R15 SUB R15,R14 MOV qword ptr [RBX + 0x30],R15 LEA RCX,[RDI + R13*0x1] ADD RCX,0x4 MOV qword ptr [RBX + 0x20],RCX SUB R14,R13 ADD R14,RAX MOV AL,byte ptr [RCX + R14*0x1] MOV byte ptr [RBX + 0x81],AL MOV byte ptr [RCX + R14*0x1],0x0 JMP 0x00133ab3 LAB_00133a95: ADD RAX,R12 LAB_00133a98: MOV R14D,0xffffffff ADD R15,qword ptr [RBX + 0x8] MOV qword ptr [RBX + 0x20],R15 CMP RAX,R14 JZ 0x00133ab3 MOV byte ptr [R15 + RAX*0x1],0x0 MOV R14,RAX LAB_00133ab3: MOV RAX,R14 ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00133ac5: MOV RDI,qword ptr [RBX + 0x8] MOV RAX,-0x4 JMP 0x00133a67
long ma_net_read(long *param_1) { char cVar1; ulong uVar2; long lVar3; long lVar4; size_t __n; long lVar5; long lVar6; size_t __n_00; long local_40; ulong local_38; if (*(char *)((long)param_1 + 0x84) == '\0') { lVar4 = ma_real_read(param_1,&local_40); lVar6 = param_1[9]; if (lVar4 == 0xffffff) { lVar3 = 0; do { lVar3 = lVar3 + 0xffffff; param_1[9] = param_1[9] + 0xffffff; lVar4 = ma_real_read(param_1,&local_40); } while (lVar4 == 0xffffff); param_1[9] = lVar6; if (lVar4 == 0xffffffff) { param_1[4] = lVar6 + param_1[1]; return 0xffffffff; } lVar4 = lVar4 + lVar3; } param_1[4] = lVar6 + param_1[1]; lVar3 = 0xffffffff; if (lVar4 != 0xffffffff) { *(int1 *)(lVar6 + param_1[1] + lVar4) = 0; lVar3 = lVar4; } return lVar3; } if (param_1[6] == 0) { __n_00 = 0; lVar6 = 0; } else { __n_00 = param_1[8]; lVar6 = __n_00 - param_1[6]; *(int1 *)(param_1[1] + lVar6) = *(int1 *)((long)param_1 + 0x81); } lVar3 = 1; lVar4 = lVar6; LAB_00133936: do { lVar5 = lVar4; __n = __n_00 - lVar6; if (3 < __n) { lVar4 = param_1[1]; local_38 = (ulong)CONCAT12(*(int1 *)(lVar4 + 2 + lVar6),*(int2 *)(lVar4 + lVar6)); if (local_38 == 0) { lVar6 = lVar6 + 4; uVar2 = lVar3 << 2 | 0xfffffffffffffff8; LAB_00133a67: param_1[8] = __n_00; param_1[6] = __n_00 - lVar6; lVar4 = lVar4 + lVar5 + 4; param_1[4] = lVar4; lVar6 = (lVar6 - lVar5) + uVar2; *(int1 *)((long)param_1 + 0x81) = *(int1 *)(lVar4 + lVar6); *(int1 *)(lVar4 + lVar6) = 0; return lVar6; } if (local_38 + 4 <= __n) { if (lVar3 == 0) { memmove((void *)(lVar4 + lVar6),(void *)(lVar4 + lVar6 + 4),__n); __n_00 = __n_00 - 4; lVar6 = lVar6 + local_38; } else { lVar6 = lVar6 + local_38 + 4; } if (local_38 != 0xffffff) { lVar4 = param_1[1]; uVar2 = 0xfffffffffffffffc; goto LAB_00133a67; } lVar3 = 0; lVar4 = 0; if (lVar5 != 0) { __n_00 = __n_00 - lVar5; memmove((void *)param_1[1],(void *)(param_1[1] + lVar5),__n_00); lVar3 = 0; lVar4 = 0; } goto LAB_00133936; } } if (lVar5 != 0) { __n_00 = __n_00 - lVar5; memmove((void *)param_1[1],(void *)(param_1[1] + lVar5),__n_00); lVar6 = lVar6 - lVar5; } param_1[9] = __n_00; local_38 = ma_real_read(param_1,&local_40); if (local_38 == 0xffffffff) { return 0xffffffff; } cVar1 = _mariadb_uncompress(param_1,param_1[1] + param_1[9],&local_38,&local_40); if (cVar1 != '\0') { *(int1 *)((long)param_1 + 0x94) = 2; (**(code **)(*param_1 + 0x50))(*(int8 *)(*param_1 + 0x40),0x1397,SQLSTATE_UNKNOWN,0); return 0xffffffff; } __n_00 = __n_00 + local_40; lVar4 = 0; } while( true ); }
49,366
my_fdopen
eloqsql/mysys/my_fopen.c
FILE *my_fdopen(File Filedes, const char *name, int Flags, myf MyFlags) { FILE *fd; char type[5]; DBUG_ENTER("my_fdopen"); DBUG_PRINT("my",("fd: %d Flags: %d MyFlags: %lu", Filedes, Flags, MyFlags)); make_ftype(type,Flags); #ifdef _WIN32 fd= my_win_fdopen(Filedes, type); #else fd= fdopen(Filedes, type); #endif if (!fd) { my_errno=errno; if (MyFlags & (MY_FAE | MY_WME)) my_error(EE_CANT_OPEN_STREAM, MYF(ME_BELL), errno); } else { statistic_increment(my_stream_opened, &THR_LOCK_open); if ((uint) Filedes < (uint) my_file_limit) { if (my_file_info[Filedes].type != UNOPEN) { /* File is opened with my_open ! */ my_atomic_add32_explicit(&my_file_opened, -1, MY_MEMORY_ORDER_RELAXED); } else { my_file_info[Filedes].name= my_strdup(key_memory_my_file_info, name, MyFlags); } my_file_info[Filedes].type= STREAM_BY_FDOPEN; } } DBUG_PRINT("exit",("stream: %p", fd)); DBUG_RETURN(fd); }
O0
c
my_fdopen: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movl %edi, -0x14(%rbp) movq %rsi, -0x20(%rbp) movl %edx, -0x24(%rbp) movq %rcx, -0x30(%rbp) jmp 0x78385 leaq -0xd(%rbp), %rdi movl -0x24(%rbp), %esi callq 0x780d0 movl -0x14(%rbp), %edi leaq -0xd(%rbp), %rsi callq 0x36080 movq %rax, -0x38(%rbp) cmpq $0x0, -0x38(%rbp) jne 0x783e7 callq 0x36990 movl (%rax), %eax movl %eax, -0x44(%rbp) callq 0x7ed00 movl -0x44(%rbp), %ecx movl %ecx, (%rax) movq -0x30(%rbp), %rax andq $0x18, %rax cmpq $0x0, %rax je 0x783e2 callq 0x36990 movl (%rax), %edx movl $0xf, %edi movl $0x4, %esi movb $0x0, %al callq 0x779f0 jmp 0x78495 leaq 0x37d8e2(%rip), %rax # 0x3f5cd0 movq (%rax), %rcx addq $0x1, %rcx leaq 0x37d8d4(%rip), %rax # 0x3f5cd0 movq %rcx, (%rax) movl -0x14(%rbp), %eax leaq 0x1bb937(%rip), %rcx # 0x233d40 cmpl (%rcx), %eax jae 0x78493 leaq 0x1bb930(%rip), %rax # 0x233d48 movq (%rax), %rax movslq -0x14(%rbp), %rcx shlq $0x4, %rcx addq %rcx, %rax cmpl $0x0, 0x8(%rax) je 0x78446 movl $0xffffffff, -0x3c(%rbp) # imm = 0xFFFFFFFF movl -0x3c(%rbp), %eax leaq 0x37d8b7(%rip), %rcx # 0x3f5cf4 lock xaddl %eax, (%rcx) movl %eax, -0x40(%rbp) jmp 0x78477 leaq 0x37ddd7(%rip), %rax # 0x3f6224 movl (%rax), %edi movq -0x20(%rbp), %rsi movq -0x30(%rbp), %rdx callq 0x7d660 movq %rax, %rcx leaq 0x1bb8e2(%rip), %rax # 0x233d48 movq (%rax), %rax movslq -0x14(%rbp), %rdx shlq $0x4, %rdx addq %rdx, %rax movq %rcx, (%rax) leaq 0x1bb8ca(%rip), %rax # 0x233d48 movq (%rax), %rax movslq -0x14(%rbp), %rcx shlq $0x4, %rcx addq %rcx, %rax movl $0x4, 0x8(%rax) jmp 0x78495 jmp 0x78497 jmp 0x78499 jmp 0x7849b movq -0x38(%rbp), %rax movq %rax, -0x50(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x784bf movq -0x50(%rbp), %rax addq $0x50, %rsp popq %rbp retq callq 0x362a0 nopw %cs:(%rax,%rax) nop
my_fdopen: push rbp mov rbp, rsp sub rsp, 50h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_14], edi mov [rbp+var_20], rsi mov [rbp+var_24], edx mov [rbp+var_30], rcx jmp short $+2 loc_78385: lea rdi, [rbp+var_D] mov esi, [rbp+var_24] call make_ftype mov edi, [rbp+var_14] lea rsi, [rbp+var_D] call _fdopen mov [rbp+var_38], rax cmp [rbp+var_38], 0 jnz short loc_783E7 call ___errno_location mov eax, [rax] mov [rbp+var_44], eax call _my_thread_var mov ecx, [rbp+var_44] mov [rax], ecx mov rax, [rbp+var_30] and rax, 18h cmp rax, 0 jz short loc_783E2 call ___errno_location mov edx, [rax] mov edi, 0Fh mov esi, 4 mov al, 0 call my_error loc_783E2: jmp loc_78495 loc_783E7: lea rax, my_stream_opened mov rcx, [rax] add rcx, 1 lea rax, my_stream_opened mov [rax], rcx mov eax, [rbp+var_14] lea rcx, my_file_limit cmp eax, [rcx] jnb loc_78493 lea rax, my_file_info mov rax, [rax] movsxd rcx, [rbp+var_14] shl rcx, 4 add rax, rcx cmp dword ptr [rax+8], 0 jz short loc_78446 mov [rbp+var_3C], 0FFFFFFFFh mov eax, [rbp+var_3C] lea rcx, my_file_opened lock xadd [rcx], eax mov [rbp+var_40], eax jmp short loc_78477 loc_78446: lea rax, key_memory_my_file_info mov edi, [rax] mov rsi, [rbp+var_20] mov rdx, [rbp+var_30] call my_strdup mov rcx, rax lea rax, my_file_info mov rax, [rax] movsxd rdx, [rbp+var_14] shl rdx, 4 add rax, rdx mov [rax], rcx loc_78477: lea rax, my_file_info mov rax, [rax] movsxd rcx, [rbp+var_14] shl rcx, 4 add rax, rcx mov dword ptr [rax+8], 4 loc_78493: jmp short $+2 loc_78495: jmp short $+2 loc_78497: jmp short $+2 loc_78499: jmp short $+2 loc_7849B: mov rax, [rbp+var_38] mov [rbp+var_50], rax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_784BF mov rax, [rbp+var_50] add rsp, 50h pop rbp retn loc_784BF: call ___stack_chk_fail
long long my_fdopen(unsigned int a1, long long a2, __int16 a3, long long a4) { unsigned int *v4; // rax int v6; // [rsp+Ch] [rbp-44h] long long v7; // [rsp+18h] [rbp-38h] char v9[5]; // [rsp+43h] [rbp-Dh] BYREF unsigned long long v10; // [rsp+48h] [rbp-8h] v10 = __readfsqword(0x28u); make_ftype(v9, a3); v7 = fdopen(a1, v9); if ( v7 ) { ++my_stream_opened; if ( a1 < my_file_limit ) { if ( *((_DWORD *)my_file_info + 4 * (int)a1 + 2) ) _InterlockedExchangeAdd(my_file_opened, 0xFFFFFFFF); else *((_QWORD *)my_file_info + 2 * (int)a1) = my_strdup(key_memory_my_file_info, a2, a4); *((_DWORD *)my_file_info + 4 * (int)a1 + 2) = 4; } } else { v6 = *(_DWORD *)__errno_location(a1); *(_DWORD *)my_thread_var() = v6; if ( (a4 & 0x18) != 0 ) { v4 = (unsigned int *)__errno_location(a1); my_error(0xFu, 4LL, *v4); } } return v7; }
my_fdopen: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV dword ptr [RBP + -0x14],EDI MOV qword ptr [RBP + -0x20],RSI MOV dword ptr [RBP + -0x24],EDX MOV qword ptr [RBP + -0x30],RCX JMP 0x00178385 LAB_00178385: LEA RDI,[RBP + -0xd] MOV ESI,dword ptr [RBP + -0x24] CALL 0x001780d0 MOV EDI,dword ptr [RBP + -0x14] LEA RSI,[RBP + -0xd] CALL 0x00136080 MOV qword ptr [RBP + -0x38],RAX CMP qword ptr [RBP + -0x38],0x0 JNZ 0x001783e7 CALL 0x00136990 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x44],EAX CALL 0x0017ed00 MOV ECX,dword ptr [RBP + -0x44] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x30] AND RAX,0x18 CMP RAX,0x0 JZ 0x001783e2 CALL 0x00136990 MOV EDX,dword ptr [RAX] MOV EDI,0xf MOV ESI,0x4 MOV AL,0x0 CALL 0x001779f0 LAB_001783e2: JMP 0x00178495 LAB_001783e7: LEA RAX,[0x4f5cd0] MOV RCX,qword ptr [RAX] ADD RCX,0x1 LEA RAX,[0x4f5cd0] MOV qword ptr [RAX],RCX MOV EAX,dword ptr [RBP + -0x14] LEA RCX,[0x333d40] CMP EAX,dword ptr [RCX] JNC 0x00178493 LEA RAX,[0x333d48] MOV RAX,qword ptr [RAX] MOVSXD RCX,dword ptr [RBP + -0x14] SHL RCX,0x4 ADD RAX,RCX CMP dword ptr [RAX + 0x8],0x0 JZ 0x00178446 MOV dword ptr [RBP + -0x3c],0xffffffff MOV EAX,dword ptr [RBP + -0x3c] LEA RCX,[0x4f5cf4] XADD.LOCK dword ptr [RCX],EAX MOV dword ptr [RBP + -0x40],EAX JMP 0x00178477 LAB_00178446: LEA RAX,[0x4f6224] MOV EDI,dword ptr [RAX] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x30] CALL 0x0017d660 MOV RCX,RAX LEA RAX,[0x333d48] MOV RAX,qword ptr [RAX] MOVSXD RDX,dword ptr [RBP + -0x14] SHL RDX,0x4 ADD RAX,RDX MOV qword ptr [RAX],RCX LAB_00178477: LEA RAX,[0x333d48] MOV RAX,qword ptr [RAX] MOVSXD RCX,dword ptr [RBP + -0x14] SHL RCX,0x4 ADD RAX,RCX MOV dword ptr [RAX + 0x8],0x4 LAB_00178493: JMP 0x00178495 LAB_00178495: JMP 0x00178497 LAB_00178497: JMP 0x00178499 LAB_00178499: JMP 0x0017849b LAB_0017849b: MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x001784bf MOV RAX,qword ptr [RBP + -0x50] ADD RSP,0x50 POP RBP RET LAB_001784bf: CALL 0x001362a0
FILE * my_fdopen(uint param_1,int8 param_2,int4 param_3,ulong param_4) { int iVar1; FILE *pFVar2; int *piVar3; int8 uVar4; long in_FS_OFFSET; char local_15 [5]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); make_ftype(local_15,param_3); pFVar2 = fdopen(param_1,local_15); if (pFVar2 == (FILE *)0x0) { piVar3 = __errno_location(); iVar1 = *piVar3; piVar3 = (int *)_my_thread_var(); *piVar3 = iVar1; if ((param_4 & 0x18) != 0) { piVar3 = __errno_location(); my_error(0xf,4,*piVar3); } } else { my_stream_opened = my_stream_opened + 1; if (param_1 < my_file_limit) { if (*(int *)(my_file_info + (long)(int)param_1 * 0x10 + 8) == 0) { uVar4 = my_strdup(key_memory_my_file_info,param_2,param_4); *(int8 *)(my_file_info + (long)(int)param_1 * 0x10) = uVar4; } else { LOCK(); my_file_opened = my_file_opened + -1; UNLOCK(); } *(int4 *)(my_file_info + (long)(int)param_1 * 0x10 + 8) = 4; } } if (*(long *)(in_FS_OFFSET + 0x28) != local_10) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return pFVar2; }
49,367
ggml_opt_free
ngxson[P]ggml-easy/ggml/src/ggml-opt.cpp
void ggml_opt_free(ggml_opt_context_t opt_ctx) { if (opt_ctx == nullptr) { return; } ggml_backend_buffer_free(opt_ctx->buf_static); ggml_backend_buffer_free(opt_ctx->buf_static_cpu); ggml_free(opt_ctx->ctx_static); ggml_free(opt_ctx->ctx_static_cpu); delete opt_ctx; }
O0
cpp
ggml_opt_free: subq $0x18, %rsp movq %rdi, 0x10(%rsp) cmpq $0x0, 0x10(%rsp) jne 0x66423 jmp 0x6647a movq 0x10(%rsp), %rax movq 0x38(%rax), %rdi callq 0x469a0 movq 0x10(%rsp), %rax movq 0x40(%rax), %rdi callq 0x469a0 movq 0x10(%rsp), %rax movq 0x18(%rax), %rdi callq 0x40900 movq 0x10(%rsp), %rax movq 0x20(%rax), %rdi callq 0x40900 movq 0x10(%rsp), %rax movq %rax, 0x8(%rsp) cmpq $0x0, %rax je 0x6647a movq 0x8(%rsp), %rdi movl $0x1448, %esi # imm = 0x1448 callq 0x43d50 addq $0x18, %rsp retq nop
ggml_opt_free: sub rsp, 18h mov [rsp+18h+var_8], rdi cmp [rsp+18h+var_8], 0 jnz short loc_66423 jmp short loc_6647A loc_66423: mov rax, [rsp+18h+var_8] mov rdi, [rax+38h] call _ggml_backend_buffer_free mov rax, [rsp+18h+var_8] mov rdi, [rax+40h] call _ggml_backend_buffer_free mov rax, [rsp+18h+var_8] mov rdi, [rax+18h] call _ggml_free mov rax, [rsp+18h+var_8] mov rdi, [rax+20h] call _ggml_free mov rax, [rsp+18h+var_8] mov [rsp+18h+var_10], rax cmp rax, 0 jz short loc_6647A mov rdi, [rsp+18h+var_10]; void * mov esi, 1448h; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_6647A: add rsp, 18h retn
void ggml_opt_free(long long *a1, long long a2) { if ( a1 ) { ggml_backend_buffer_free(a1[7]); ggml_backend_buffer_free(a1[8]); ggml_free(a1[3], a2); ggml_free(a1[4], a2); operator delete(a1, 0x1448uLL); } }
ggml_opt_free: SUB RSP,0x18 MOV qword ptr [RSP + 0x10],RDI CMP qword ptr [RSP + 0x10],0x0 JNZ 0x00166423 JMP 0x0016647a LAB_00166423: MOV RAX,qword ptr [RSP + 0x10] MOV RDI,qword ptr [RAX + 0x38] CALL 0x001469a0 MOV RAX,qword ptr [RSP + 0x10] MOV RDI,qword ptr [RAX + 0x40] CALL 0x001469a0 MOV RAX,qword ptr [RSP + 0x10] MOV RDI,qword ptr [RAX + 0x18] CALL 0x00140900 MOV RAX,qword ptr [RSP + 0x10] MOV RDI,qword ptr [RAX + 0x20] CALL 0x00140900 MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x8],RAX CMP RAX,0x0 JZ 0x0016647a MOV RDI,qword ptr [RSP + 0x8] MOV ESI,0x1448 CALL 0x00143d50 LAB_0016647a: ADD RSP,0x18 RET
void ggml_opt_free(void *param_1) { if (param_1 != (void *)0x0) { ggml_backend_buffer_free(*(int8 *)((long)param_1 + 0x38)); ggml_backend_buffer_free(*(int8 *)((long)param_1 + 0x40)); ggml_free(*(int8 *)((long)param_1 + 0x18)); ggml_free(*(int8 *)((long)param_1 + 0x20)); if (param_1 != (void *)0x0) { operator_delete(param_1,0x1448); } } return; }
49,368
ggml_opt_free
ngxson[P]ggml-easy/ggml/src/ggml-opt.cpp
void ggml_opt_free(ggml_opt_context_t opt_ctx) { if (opt_ctx == nullptr) { return; } ggml_backend_buffer_free(opt_ctx->buf_static); ggml_backend_buffer_free(opt_ctx->buf_static_cpu); ggml_free(opt_ctx->ctx_static); ggml_free(opt_ctx->ctx_static_cpu); delete opt_ctx; }
O2
cpp
ggml_opt_free: testq %rdi, %rdi je 0x2e69c pushq %rbx movq %rdi, %rbx movq 0x38(%rdi), %rdi callq 0x1e830 movq 0x40(%rbx), %rdi callq 0x1e830 movq 0x18(%rbx), %rdi callq 0x1c3f0 movq 0x20(%rbx), %rdi callq 0x1c3f0 movl $0x1448, %esi # imm = 0x1448 movq %rbx, %rdi popq %rbx jmp 0x1d700 retq
ggml_opt_free: test rdi, rdi jz short locret_2E69C push rbx mov rbx, rdi mov rdi, [rdi+38h]; void * call _ggml_backend_buffer_free mov rdi, [rbx+40h]; void * call _ggml_backend_buffer_free mov rdi, [rbx+18h] call _ggml_free mov rdi, [rbx+20h] call _ggml_free mov esi, 1448h; unsigned __int64 mov rdi, rbx; void * pop rbx jmp __ZdlPvm; operator delete(void *,ulong) locret_2E69C: retn
void ggml_opt_free(void *a1, long long a2) { if ( a1 ) { ggml_backend_buffer_free(*((void **)a1 + 7)); ggml_backend_buffer_free(*((void **)a1 + 8)); ggml_free(*((_QWORD *)a1 + 3), a2); ggml_free(*((_QWORD *)a1 + 4), a2); operator delete(a1, 0x1448uLL); } }
ggml_opt_free: TEST RDI,RDI JZ 0x0012e69c PUSH RBX MOV RBX,RDI MOV RDI,qword ptr [RDI + 0x38] CALL 0x0011e830 MOV RDI,qword ptr [RBX + 0x40] CALL 0x0011e830 MOV RDI,qword ptr [RBX + 0x18] CALL 0x0011c3f0 MOV RDI,qword ptr [RBX + 0x20] CALL 0x0011c3f0 MOV ESI,0x1448 MOV RDI,RBX POP RBX JMP 0x0011d700 LAB_0012e69c: RET
void ggml_opt_free(void *param_1) { if (param_1 != (void *)0x0) { ggml_backend_buffer_free(*(int8 *)((long)param_1 + 0x38)); ggml_backend_buffer_free(*(int8 *)((long)param_1 + 0x40)); ggml_free(*(int8 *)((long)param_1 + 0x18)); ggml_free(*(int8 *)((long)param_1 + 0x20)); operator_delete(param_1,0x1448); return; } return; }
49,369
ggml_opt_free
ngxson[P]ggml-easy/ggml/src/ggml-opt.cpp
void ggml_opt_free(ggml_opt_context_t opt_ctx) { if (opt_ctx == nullptr) { return; } ggml_backend_buffer_free(opt_ctx->buf_static); ggml_backend_buffer_free(opt_ctx->buf_static_cpu); ggml_free(opt_ctx->ctx_static); ggml_free(opt_ctx->ctx_static_cpu); delete opt_ctx; }
O3
cpp
ggml_opt_free: testq %rdi, %rdi je 0x29ba4 pushq %rbx movq %rdi, %rbx movq 0x38(%rdi), %rdi callq 0x17d00 movq 0x40(%rbx), %rdi callq 0x17d00 movq 0x18(%rbx), %rdi callq 0x16270 movq 0x20(%rbx), %rdi callq 0x16270 movl $0x1448, %esi # imm = 0x1448 movq %rbx, %rdi popq %rbx jmp 0x17070 retq
ggml_opt_free: test rdi, rdi jz short locret_29BA4 push rbx mov rbx, rdi mov rdi, [rdi+38h]; void * call _ggml_backend_buffer_free mov rdi, [rbx+40h]; void * call _ggml_backend_buffer_free mov rdi, [rbx+18h] call _ggml_free mov rdi, [rbx+20h] call _ggml_free mov esi, 1448h; unsigned __int64 mov rdi, rbx; void * pop rbx jmp __ZdlPvm; operator delete(void *,ulong) locret_29BA4: retn
void ggml_opt_free(void **a1) { if ( a1 ) { ggml_backend_buffer_free(a1[7]); ggml_backend_buffer_free(a1[8]); ggml_free(a1[3]); ggml_free(a1[4]); operator delete(a1, 0x1448uLL); } }
ggml_opt_free: TEST RDI,RDI JZ 0x00129ba4 PUSH RBX MOV RBX,RDI MOV RDI,qword ptr [RDI + 0x38] CALL 0x00117d00 MOV RDI,qword ptr [RBX + 0x40] CALL 0x00117d00 MOV RDI,qword ptr [RBX + 0x18] CALL 0x00116270 MOV RDI,qword ptr [RBX + 0x20] CALL 0x00116270 MOV ESI,0x1448 MOV RDI,RBX POP RBX JMP 0x00117070 LAB_00129ba4: RET
void ggml_opt_free(void *param_1) { if (param_1 != (void *)0x0) { ggml_backend_buffer_free(*(int8 *)((long)param_1 + 0x38)); ggml_backend_buffer_free(*(int8 *)((long)param_1 + 0x40)); ggml_free(*(int8 *)((long)param_1 + 0x18)); ggml_free(*(int8 *)((long)param_1 + 0x20)); operator_delete(param_1,0x1448); return; } return; }
49,370
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; }) }
O0
c
mysql_fetch_row_start: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x18(%rbp), %rax cmpq $0x0, 0x78(%rax) jne 0x3854a movq -0x18(%rbp), %rdi callq 0x1fd80 movq %rax, %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) movl $0x0, -0x4(%rbp) jmp 0x3865e movq -0x18(%rbp), %rax movq 0x78(%rax), %rax movq 0x480(%rax), %rax movq 0x28(%rax), %rax movq %rax, -0x28(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x28(%rbp), %rax movb $0x1, 0x14(%rax) movq -0x28(%rbp), %rdi addq $0x38, %rdi leaq 0xf0(%rip), %rsi # 0x38670 leaq -0x30(%rbp), %rdx callq 0x3f490 movl %eax, -0x1c(%rbp) movq -0x28(%rbp), %rax movb $0x0, 0x15(%rax) movq -0x28(%rbp), %rax movb $0x0, 0x14(%rax) cmpl $0x0, -0x1c(%rbp) jle 0x385b8 movq -0x28(%rbp), %rax movb $0x1, 0x15(%rax) movq -0x28(%rbp), %rax movl (%rax), %eax movl %eax, -0x4(%rbp) jmp 0x3865e cmpl $0x0, -0x1c(%rbp) jge 0x38648 jmp 0x385c4 movq -0x18(%rbp), %rax movq 0x78(%rax), %rax movl $0x7d8, 0x90(%rax) # imm = 0x7D8 movq -0x18(%rbp), %rax movq 0x78(%rax), %rdi addq $0x297, %rdi # imm = 0x297 leaq 0x278f4(%rip), %rax # 0x5fee0 movq (%rax), %rsi movl $0x5, %edx callq 0x13210 movq -0x18(%rbp), %rax movq 0x78(%rax), %rax movb $0x0, 0x29c(%rax) movq -0x18(%rbp), %rax movq 0x78(%rax), %rdi addq $0x97, %rdi leaq 0x278d2(%rip), %rax # 0x5fef0 movq 0x40(%rax), %rsi movl $0x1ff, %edx # imm = 0x1FF callq 0x13210 movq -0x18(%rbp), %rax movq 0x78(%rax), %rax movb $0x0, 0x296(%rax) movq -0x10(%rbp), %rax movq $0x0, (%rax) jmp 0x38657 movq -0x28(%rbp), %rax movq 0x8(%rax), %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x30, %rsp popq %rbp retq nopw (%rax,%rax)
mysql_fetch_row_start: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rax, [rbp+var_18] cmp qword ptr [rax+78h], 0 jnz short loc_3854A mov rdi, [rbp+var_18] call mysql_fetch_row mov rcx, rax mov rax, [rbp+var_10] mov [rax], rcx mov [rbp+var_4], 0 jmp loc_3865E loc_3854A: mov rax, [rbp+var_18] mov rax, [rax+78h] mov rax, [rax+480h] mov rax, [rax+28h] mov [rbp+var_28], rax mov rax, [rbp+var_18] mov [rbp+var_30], rax mov rax, [rbp+var_28] mov byte ptr [rax+14h], 1 mov rdi, [rbp+var_28] add rdi, 38h ; '8' lea rsi, mysql_fetch_row_start_internal lea rdx, [rbp+var_30] call my_context_spawn mov [rbp+var_1C], eax mov rax, [rbp+var_28] mov byte ptr [rax+15h], 0 mov rax, [rbp+var_28] mov byte ptr [rax+14h], 0 cmp [rbp+var_1C], 0 jle short loc_385B8 mov rax, [rbp+var_28] mov byte ptr [rax+15h], 1 mov rax, [rbp+var_28] mov eax, [rax] mov [rbp+var_4], eax jmp loc_3865E loc_385B8: cmp [rbp+var_1C], 0 jge loc_38648 jmp short $+2 loc_385C4: mov rax, [rbp+var_18] mov rax, [rax+78h] mov dword ptr [rax+90h], 7D8h mov rax, [rbp+var_18] mov rdi, [rax+78h] add rdi, 297h lea rax, SQLSTATE_UNKNOWN mov rsi, [rax] mov edx, 5 call _strncpy mov rax, [rbp+var_18] mov rax, [rax+78h] mov byte ptr [rax+29Ch], 0 mov rax, [rbp+var_18] mov rdi, [rax+78h] add rdi, 97h lea rax, client_errors mov rsi, [rax+40h] mov edx, 1FFh call _strncpy mov rax, [rbp+var_18] mov rax, [rax+78h] mov byte ptr [rax+296h], 0 mov rax, [rbp+var_10] mov qword ptr [rax], 0 jmp short loc_38657 loc_38648: mov rax, [rbp+var_28] mov rcx, [rax+8] mov rax, [rbp+var_10] mov [rax], rcx loc_38657: mov [rbp+var_4], 0 loc_3865E: mov eax, [rbp+var_4] add rsp, 30h pop rbp retn
long long mysql_fetch_row_start(long long *a1, long long a2) { long long v3; // [rsp+0h] [rbp-30h] BYREF unsigned int *v4; // [rsp+8h] [rbp-28h] int v5; // [rsp+14h] [rbp-1Ch] long long v6; // [rsp+18h] [rbp-18h] long long *v7; // [rsp+20h] [rbp-10h] v7 = a1; v6 = a2; if ( *(_QWORD *)(a2 + 120) ) { v4 = *(unsigned int **)(*(_QWORD *)(*(_QWORD *)(v6 + 120) + 1152LL) + 40LL); v3 = v6; *((_BYTE *)v4 + 20) = 1; v5 = my_context_spawn(v4 + 14, mysql_fetch_row_start_internal, &v3); *((_BYTE *)v4 + 21) = 0; *((_BYTE *)v4 + 20) = 0; if ( v5 <= 0 ) { if ( v5 >= 0 ) { *v7 = *((_QWORD *)v4 + 1); } else { *(_DWORD *)(*(_QWORD *)(v6 + 120) + 144LL) = 2008; strncpy(*(_QWORD *)(v6 + 120) + 663LL, SQLSTATE_UNKNOWN, 5LL); *(_BYTE *)(*(_QWORD *)(v6 + 120) + 668LL) = 0; strncpy(*(_QWORD *)(v6 + 120) + 151LL, client_errors[8], 511LL); *(_BYTE *)(*(_QWORD *)(v6 + 120) + 662LL) = 0; *v7 = 0LL; } return 0; } else { *((_BYTE *)v4 + 21) = 1; return *v4; } } else { *v7 = mysql_fetch_row(v6); return 0; } }
mysql_fetch_row_start: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV RAX,qword ptr [RBP + -0x18] CMP qword ptr [RAX + 0x78],0x0 JNZ 0x0013854a MOV RDI,qword ptr [RBP + -0x18] CALL 0x0011fd80 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x0 JMP 0x0013865e LAB_0013854a: MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x78] MOV RAX,qword ptr [RAX + 0x480] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x28] MOV byte ptr [RAX + 0x14],0x1 MOV RDI,qword ptr [RBP + -0x28] ADD RDI,0x38 LEA RSI,[0x138670] LEA RDX,[RBP + -0x30] CALL 0x0013f490 MOV dword ptr [RBP + -0x1c],EAX MOV RAX,qword ptr [RBP + -0x28] MOV byte ptr [RAX + 0x15],0x0 MOV RAX,qword ptr [RBP + -0x28] MOV byte ptr [RAX + 0x14],0x0 CMP dword ptr [RBP + -0x1c],0x0 JLE 0x001385b8 MOV RAX,qword ptr [RBP + -0x28] MOV byte ptr [RAX + 0x15],0x1 MOV RAX,qword ptr [RBP + -0x28] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x4],EAX JMP 0x0013865e LAB_001385b8: CMP dword ptr [RBP + -0x1c],0x0 JGE 0x00138648 JMP 0x001385c4 LAB_001385c4: MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x78] MOV dword ptr [RAX + 0x90],0x7d8 MOV RAX,qword ptr [RBP + -0x18] MOV RDI,qword ptr [RAX + 0x78] ADD RDI,0x297 LEA RAX,[0x15fee0] MOV RSI,qword ptr [RAX] MOV EDX,0x5 CALL 0x00113210 MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x78] MOV byte ptr [RAX + 0x29c],0x0 MOV RAX,qword ptr [RBP + -0x18] MOV RDI,qword ptr [RAX + 0x78] ADD RDI,0x97 LEA RAX,[0x15fef0] MOV RSI,qword ptr [RAX + 0x40] MOV EDX,0x1ff CALL 0x00113210 MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x78] MOV byte ptr [RAX + 0x296],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],0x0 JMP 0x00138657 LAB_00138648: MOV RAX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX LAB_00138657: MOV dword ptr [RBP + -0x4],0x0 LAB_0013865e: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x30 POP RBP RET
int4 mysql_fetch_row_start(int8 *param_1,long param_2) { int8 uVar1; long local_38; int4 *local_30; int local_24; long local_20; int8 *local_18; int4 local_c; local_20 = param_2; local_18 = param_1; if (*(long *)(param_2 + 0x78) == 0) { uVar1 = mysql_fetch_row(param_2); *local_18 = uVar1; local_c = 0; } else { local_30 = *(int4 **)(*(long *)(*(long *)(param_2 + 0x78) + 0x480) + 0x28); *(int1 *)(local_30 + 5) = 1; local_38 = param_2; local_24 = my_context_spawn(local_30 + 0xe,mysql_fetch_row_start_internal,&local_38); *(int1 *)((long)local_30 + 0x15) = 0; *(int1 *)(local_30 + 5) = 0; if (local_24 < 1) { if (local_24 < 0) { *(int4 *)(*(long *)(local_20 + 0x78) + 0x90) = 0x7d8; strncpy((char *)(*(long *)(local_20 + 0x78) + 0x297),SQLSTATE_UNKNOWN,5); *(int1 *)(*(long *)(local_20 + 0x78) + 0x29c) = 0; strncpy((char *)(*(long *)(local_20 + 0x78) + 0x97),PTR_s_Client_run_out_of_memory_0015ff30, 0x1ff); *(int1 *)(*(long *)(local_20 + 0x78) + 0x296) = 0; *local_18 = 0; } else { *local_18 = *(int8 *)(local_30 + 2); } local_c = 0; } else { *(int1 *)((long)local_30 + 0x15) = 1; local_c = *local_30; } } return local_c; }
49,371
bool (anonymous namespace)::Bisearch<294ul>(unsigned int, std::array<(anonymous namespace)::Interval, 294ul> const&)
Andrewchistyakov[P]flashcards_lyc/build_O0/_deps/ftxui-src/src/ftxui/screen/string.cpp
bool Bisearch(uint32_t ucs, const std::array<Interval, N>& table) { if (ucs < table.front().first || ucs > table.back().last) { // NOLINT return false; } int min = 0; int max = N - 1; while (max >= min) { const int mid = (min + max) / 2; if (ucs > table[mid].last) { // NOLINT min = mid + 1; } else if (ucs < table[mid].first) { // NOLINT max = mid - 1; } else { return true; } } return false; }
O0
cpp
bool (anonymous namespace)::Bisearch<294ul>(unsigned int, std::array<(anonymous namespace)::Interval, 294ul> const&): pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movl %edi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl -0x8(%rbp), %eax movl %eax, -0x20(%rbp) movq -0x10(%rbp), %rdi callq 0x8e320 movq %rax, %rcx movl -0x20(%rbp), %eax cmpl (%rcx), %eax jb 0x8d312 movl -0x8(%rbp), %eax movl %eax, -0x24(%rbp) movq -0x10(%rbp), %rdi callq 0x8e340 movq %rax, %rcx movl -0x24(%rbp), %eax cmpl 0x4(%rcx), %eax jbe 0x8d31b movb $0x0, -0x1(%rbp) jmp 0x8d3a1 movl $0x0, -0x14(%rbp) movl $0x125, -0x18(%rbp) # imm = 0x125 movl -0x18(%rbp), %eax cmpl -0x14(%rbp), %eax jl 0x8d39d movl -0x14(%rbp), %eax addl -0x18(%rbp), %eax movl $0x2, %ecx cltd idivl %ecx movl %eax, -0x1c(%rbp) movl -0x8(%rbp), %eax movl %eax, -0x28(%rbp) movq -0x10(%rbp), %rdi movslq -0x1c(%rbp), %rsi callq 0x8e360 movq %rax, %rcx movl -0x28(%rbp), %eax cmpl 0x4(%rcx), %eax jbe 0x8d36b movl -0x1c(%rbp), %eax addl $0x1, %eax movl %eax, -0x14(%rbp) jmp 0x8d39b movl -0x8(%rbp), %eax movl %eax, -0x2c(%rbp) movq -0x10(%rbp), %rdi movslq -0x1c(%rbp), %rsi callq 0x8e360 movq %rax, %rcx movl -0x2c(%rbp), %eax cmpl (%rcx), %eax jae 0x8d393 movl -0x1c(%rbp), %eax subl $0x1, %eax movl %eax, -0x18(%rbp) jmp 0x8d399 movb $0x1, -0x1(%rbp) jmp 0x8d3a1 jmp 0x8d39b jmp 0x8d329 movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al andb $0x1, %al addq $0x30, %rsp popq %rbp retq nopl (%rax)
_ZN12_GLOBAL__N_18BisearchILm294EEEbjRKSt5arrayINS_8IntervalEXT_EE: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], edi mov [rbp+var_10], rsi mov eax, [rbp+var_8] mov [rbp+var_20], eax mov rdi, [rbp+var_10] call _ZNKSt5arrayIN12_GLOBAL__N_18IntervalELm294EE5frontEv; std::array<`anonymous namespace'::Interval,294ul>::front(void) mov rcx, rax mov eax, [rbp+var_20] cmp eax, [rcx] jb short loc_8D312 mov eax, [rbp+var_8] mov [rbp+var_24], eax mov rdi, [rbp+var_10] call _ZNKSt5arrayIN12_GLOBAL__N_18IntervalELm294EE4backEv; std::array<`anonymous namespace'::Interval,294ul>::back(void) mov rcx, rax mov eax, [rbp+var_24] cmp eax, [rcx+4] jbe short loc_8D31B loc_8D312: mov [rbp+var_1], 0 jmp loc_8D3A1 loc_8D31B: mov [rbp+var_14], 0 mov [rbp+var_18], 125h loc_8D329: mov eax, [rbp+var_18] cmp eax, [rbp+var_14] jl short loc_8D39D mov eax, [rbp+var_14] add eax, [rbp+var_18] mov ecx, 2 cdq idiv ecx mov [rbp+var_1C], eax mov eax, [rbp+var_8] mov [rbp+var_28], eax mov rdi, [rbp+var_10] movsxd rsi, [rbp+var_1C] call _ZNKSt5arrayIN12_GLOBAL__N_18IntervalELm294EEixEm; std::array<`anonymous namespace'::Interval,294ul>::operator[](ulong) mov rcx, rax mov eax, [rbp+var_28] cmp eax, [rcx+4] jbe short loc_8D36B mov eax, [rbp+var_1C] add eax, 1 mov [rbp+var_14], eax jmp short loc_8D39B loc_8D36B: mov eax, [rbp+var_8] mov [rbp+var_2C], eax mov rdi, [rbp+var_10] movsxd rsi, [rbp+var_1C] call _ZNKSt5arrayIN12_GLOBAL__N_18IntervalELm294EEixEm; std::array<`anonymous namespace'::Interval,294ul>::operator[](ulong) mov rcx, rax mov eax, [rbp+var_2C] cmp eax, [rcx] jnb short loc_8D393 mov eax, [rbp+var_1C] sub eax, 1 mov [rbp+var_18], eax jmp short loc_8D399 loc_8D393: mov [rbp+var_1], 1 jmp short loc_8D3A1 loc_8D399: jmp short $+2 loc_8D39B: jmp short loc_8D329 loc_8D39D: mov [rbp+var_1], 0 loc_8D3A1: mov al, [rbp+var_1] and al, 1 add rsp, 30h pop rbp retn
char `anonymous namespace'::Bisearch<294ul>(unsigned int a1, long long a2) { long long v2; // rdx long long v3; // rdx int v5; // [rsp+14h] [rbp-1Ch] int v6; // [rsp+18h] [rbp-18h] int v7; // [rsp+1Ch] [rbp-14h] if ( a1 < *(_DWORD *)std::array<`anonymous namespace'::Interval,294ul>::front(a2) || a1 > *(_DWORD *)(std::array<`anonymous namespace'::Interval,294ul>::back(a2) + 4) ) { return 0; } v7 = 0; v6 = 293; while ( v6 >= v7 ) { v2 = (unsigned int)((v6 + v7) >> 31); LODWORD(v2) = (v6 + v7) % 2; v5 = (v6 + v7) / 2; if ( a1 <= *(_DWORD *)(std::array<`anonymous namespace'::Interval,294ul>::operator[](a2, v5, v2) + 4) ) { if ( a1 >= *(_DWORD *)std::array<`anonymous namespace'::Interval,294ul>::operator[](a2, v5, v3) ) return 1; v6 = v5 - 1; } else { v7 = v5 + 1; } } return 0; }
Bisearch<294ul>: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV dword ptr [RBP + -0x8],EDI MOV qword ptr [RBP + -0x10],RSI MOV EAX,dword ptr [RBP + -0x8] MOV dword ptr [RBP + -0x20],EAX MOV RDI,qword ptr [RBP + -0x10] CALL 0x0018e320 MOV RCX,RAX MOV EAX,dword ptr [RBP + -0x20] CMP EAX,dword ptr [RCX] JC 0x0018d312 MOV EAX,dword ptr [RBP + -0x8] MOV dword ptr [RBP + -0x24],EAX MOV RDI,qword ptr [RBP + -0x10] CALL 0x0018e340 MOV RCX,RAX MOV EAX,dword ptr [RBP + -0x24] CMP EAX,dword ptr [RCX + 0x4] JBE 0x0018d31b LAB_0018d312: MOV byte ptr [RBP + -0x1],0x0 JMP 0x0018d3a1 LAB_0018d31b: MOV dword ptr [RBP + -0x14],0x0 MOV dword ptr [RBP + -0x18],0x125 LAB_0018d329: MOV EAX,dword ptr [RBP + -0x18] CMP EAX,dword ptr [RBP + -0x14] JL 0x0018d39d MOV EAX,dword ptr [RBP + -0x14] ADD EAX,dword ptr [RBP + -0x18] MOV ECX,0x2 CDQ IDIV ECX MOV dword ptr [RBP + -0x1c],EAX MOV EAX,dword ptr [RBP + -0x8] MOV dword ptr [RBP + -0x28],EAX MOV RDI,qword ptr [RBP + -0x10] MOVSXD RSI,dword ptr [RBP + -0x1c] CALL 0x0018e360 MOV RCX,RAX MOV EAX,dword ptr [RBP + -0x28] CMP EAX,dword ptr [RCX + 0x4] JBE 0x0018d36b MOV EAX,dword ptr [RBP + -0x1c] ADD EAX,0x1 MOV dword ptr [RBP + -0x14],EAX JMP 0x0018d39b LAB_0018d36b: MOV EAX,dword ptr [RBP + -0x8] MOV dword ptr [RBP + -0x2c],EAX MOV RDI,qword ptr [RBP + -0x10] MOVSXD RSI,dword ptr [RBP + -0x1c] CALL 0x0018e360 MOV RCX,RAX MOV EAX,dword ptr [RBP + -0x2c] CMP EAX,dword ptr [RCX] JNC 0x0018d393 MOV EAX,dword ptr [RBP + -0x1c] SUB EAX,0x1 MOV dword ptr [RBP + -0x18],EAX JMP 0x0018d399 LAB_0018d393: MOV byte ptr [RBP + -0x1],0x1 JMP 0x0018d3a1 LAB_0018d399: JMP 0x0018d39b LAB_0018d39b: JMP 0x0018d329 LAB_0018d39d: MOV byte ptr [RBP + -0x1],0x0 LAB_0018d3a1: MOV AL,byte ptr [RBP + -0x1] AND AL,0x1 ADD RSP,0x30 POP RBP RET
/* bool (anonymous namespace)::Bisearch<294ul>(unsigned int, std::array<(anonymous namespace)::Interval, 294ul> const&) */ bool (anonymous_namespace)::Bisearch<294ul>(uint param_1,array *param_2) { int iVar1; uint *puVar2; long lVar3; int local_20; int local_1c; puVar2 = (uint *)std::array<(anonymous_namespace)::Interval,294ul>::front ((array<(anonymous_namespace)::Interval,294ul> *)param_2); if ((*puVar2 <= param_1) && (lVar3 = std::array<(anonymous_namespace)::Interval,294ul>::back ((array<(anonymous_namespace)::Interval,294ul> *)param_2), param_1 <= *(uint *)(lVar3 + 4))) { local_1c = 0; local_20 = 0x125; while (local_1c <= local_20) { iVar1 = (local_1c + local_20) / 2; lVar3 = std::array<(anonymous_namespace)::Interval,294ul>::operator[] ((array<(anonymous_namespace)::Interval,294ul> *)param_2,(long)iVar1); if (*(uint *)(lVar3 + 4) < param_1) { local_1c = iVar1 + 1; } else { puVar2 = (uint *)std::array<(anonymous_namespace)::Interval,294ul>::operator[] ((array<(anonymous_namespace)::Interval,294ul> *)param_2, (long)iVar1); if (*puVar2 <= param_1) { return true; } local_20 = iVar1 + -1; } } } return false; }
49,372
rtree_delete_key
eloqsql/storage/myisam/rt_key.c
int rtree_delete_key(MI_INFO *info, uchar *page_buf, uchar *key, uint key_length, uint nod_flag) { uint16 page_size = mi_getint(page_buf); uchar *key_start; key_start= key - nod_flag; if (!nod_flag) key_length += info->s->base.rec_reflength; memmove(key_start, key + key_length, page_size - key_length - (key - page_buf)); page_size-= key_length + nod_flag; mi_putint(page_buf, page_size, nod_flag); return 0; }
O3
c
rtree_delete_key: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %r8d, %r15d movl %ecx, %r14d movq %rsi, %rbx movzbl 0x1(%rsi), %eax movzbl (%rsi), %r12d testl %r8d, %r8d je 0x8e127 movl $0x8000, %r13d # imm = 0x8000 jmp 0x8e134 movq (%rdi), %rcx addl 0x178(%rcx), %r14d xorl %r13d, %r13d movl %r15d, %ecx movq %rdx, %rdi subq %rcx, %rdi andl $0x7f, %r12d shll $0x8, %r12d orl %eax, %r12d movl %r14d, %esi addq %rdx, %rsi movl %r12d, %ecx subl %r14d, %ecx movq %rbx, %rax subq %rdx, %rax addq %rcx, %rax movq %rax, %rdx callq 0x2a130 addl %r15d, %r14d subl %r14d, %r12d movl %r13d, %eax addl %r12d, %eax movb %r12b, 0x1(%rbx) movb %ah, (%rbx) xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
rtree_delete_key: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r15d, r8d mov r14d, ecx mov rbx, rsi movzx eax, byte ptr [rsi+1] movzx r12d, byte ptr [rsi] test r8d, r8d jz short loc_8E127 mov r13d, 8000h jmp short loc_8E134 loc_8E127: mov rcx, [rdi] add r14d, [rcx+178h] xor r13d, r13d loc_8E134: mov ecx, r15d mov rdi, rdx sub rdi, rcx and r12d, 7Fh shl r12d, 8 or r12d, eax mov esi, r14d add rsi, rdx mov ecx, r12d sub ecx, r14d mov rax, rbx sub rax, rdx add rax, rcx mov rdx, rax call _memmove add r14d, r15d sub r12d, r14d mov eax, r13d add eax, r12d mov [rbx+1], r12b mov [rbx], ah xor eax, eax add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long rtree_delete_key(long long a1, _BYTE *a2, long long a3, unsigned int a4, unsigned int a5) { __int16 v5; // r15 unsigned int v6; // r14d __int16 v7; // r13 int v8; // r12d v5 = a5; v6 = a4; if ( a5 ) { v7 = 0x8000; } else { v6 = *(_DWORD *)(*(_QWORD *)a1 + 376LL) + a4; v7 = 0; } v8 = (unsigned __int8)a2[1] | ((*a2 & 0x7F) << 8); memmove(a3 - a5, a3 + v6, &a2[v8 - v6 - a3]); LOWORD(v8) = v8 - (v5 + v6); a2[1] = v8; *a2 = (unsigned __int16)(v8 + v7) >> 8; return 0LL; }
rtree_delete_key: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R15D,R8D MOV R14D,ECX MOV RBX,RSI MOVZX EAX,byte ptr [RSI + 0x1] MOVZX R12D,byte ptr [RSI] TEST R8D,R8D JZ 0x0018e127 MOV R13D,0x8000 JMP 0x0018e134 LAB_0018e127: MOV RCX,qword ptr [RDI] ADD R14D,dword ptr [RCX + 0x178] XOR R13D,R13D LAB_0018e134: MOV ECX,R15D MOV RDI,RDX SUB RDI,RCX AND R12D,0x7f SHL R12D,0x8 OR R12D,EAX MOV ESI,R14D ADD RSI,RDX MOV ECX,R12D SUB ECX,R14D MOV RAX,RBX SUB RAX,RDX ADD RAX,RCX MOV RDX,RAX CALL 0x0012a130 ADD R14D,R15D SUB R12D,R14D MOV EAX,R13D ADD EAX,R12D MOV byte ptr [RBX + 0x1],R12B MOV byte ptr [RBX],AH XOR EAX,EAX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 rtree_delete_key(long *param_1,byte *param_2,long param_3,uint param_4,uint param_5) { uint uVar1; int iVar2; int iVar3; ulong uVar4; uVar4 = (ulong)param_4; if (param_5 == 0) { uVar4 = (ulong)(param_4 + *(int *)(*param_1 + 0x178)); iVar3 = 0; } else { iVar3 = 0x8000; } uVar1 = (*param_2 & 0x7f) << 8 | (uint)param_2[1]; memmove((void *)(param_3 - (ulong)param_5),(void *)(uVar4 + param_3), (size_t)(param_2 + ((ulong)(uVar1 - (int)uVar4) - param_3))); iVar2 = uVar1 - ((int)uVar4 + param_5); param_2[1] = (byte)iVar2; *param_2 = (byte)((uint)(iVar3 + iVar2) >> 8); return 0; }
49,373
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [32], char const*>(char const (&) [32], char const*&&)
monkey531[P]llama/common/./json.hpp
inline OutStringType concat(Args && ... args) { OutStringType str; str.reserve(concat_length(args...)); concat_into(str, std::forward<Args>(args)...); return str; }
O3
cpp
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [32], char const*>(char const (&) [32], char const*&&): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx leaq 0x10(%rdi), %r13 movq %r13, (%rdi) movq $0x0, 0x8(%rdi) movb $0x0, 0x10(%rdi) movq %rsi, %rdi callq 0x19350 movq %rax, %r12 movq (%r14), %rdi callq 0x19350 addq %rax, %r12 movq %rbx, %rdi movq %r12, %rsi callq 0x19c00 movq %rbx, %rdi movq %r15, %rsi callq 0x19ee0 movq (%r14), %rsi movq %rbx, %rdi callq 0x19ee0 movq %rbx, %rax popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq movq %rax, %r14 movq (%rbx), %rdi cmpq %r13, %rdi je 0xa5c3a movq (%r13), %rsi incq %rsi callq 0x197f0 movq %r14, %rdi callq 0x19dc0
_ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA32_KcPS9_EEET_DpOT0_: push r15 push r14 push r13 push r12 push rbx mov r14, rdx mov r15, rsi mov rbx, rdi lea r13, [rdi+10h] mov [rdi], r13 mov qword ptr [rdi+8], 0 mov byte ptr [rdi+10h], 0 mov rdi, rsi call _strlen mov r12, rax mov rdi, [r14] call _strlen add r12, rax mov rdi, rbx mov rsi, r12 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) mov rdi, rbx mov rsi, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov rsi, [r14] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov rax, rbx pop rbx pop r12 pop r13 pop r14 pop r15 retn mov r14, rax mov rdi, [rbx]; void * cmp rdi, r13 jz short loc_A5C3A mov rsi, [r13+0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_A5C3A: mov rdi, r14 call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[32],char const*>( long long a1, long long a2, _QWORD *a3) { long long v4; // r12 long long v5; // rax *(_QWORD *)a1 = a1 + 16; *(_QWORD *)(a1 + 8) = 0LL; *(_BYTE *)(a1 + 16) = 0; v4 = strlen(a2); v5 = strlen(*a3); std::string::reserve(a1, v5 + v4); std::string::append(a1, a2); std::string::append(a1, *a3); return a1; }
concat<std::__cxx11::string,char_const(&)[32],char_const*>: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX MOV R14,RDX MOV R15,RSI MOV RBX,RDI LEA R13,[RDI + 0x10] MOV qword ptr [RDI],R13 MOV qword ptr [RDI + 0x8],0x0 MOV byte ptr [RDI + 0x10],0x0 MOV RDI,RSI CALL 0x00119350 MOV R12,RAX MOV RDI,qword ptr [R14] CALL 0x00119350 ADD R12,RAX LAB_001a5bf5: MOV RDI,RBX MOV RSI,R12 CALL 0x00119c00 MOV RDI,RBX MOV RSI,R15 CALL 0x00119ee0 MOV RSI,qword ptr [R14] MOV RDI,RBX CALL 0x00119ee0 LAB_001a5c16: MOV RAX,RBX POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* std::__cxx11::string nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string, char const (&) [32], char const*>(char const (&) [32], char const*&&) */ detail * __thiscall nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[32],char_const*> (detail *this,char *param_1,char **param_2) { *(detail **)this = this + 0x10; *(int8 *)(this + 8) = 0; this[0x10] = (detail)0x0; strlen(param_1); strlen(*param_2); /* try { // try from 001a5bf5 to 001a5c15 has its CatchHandler @ 001a5c23 */ std::__cxx11::string::reserve((ulong)this); std::__cxx11::string::append((char *)this); std::__cxx11::string::append((char *)this); return this; }
49,374
google::protobuf::compiler::GeneratorContext::GetCompilerVersion(google::protobuf::compiler::Version*) const
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/code_generator.cc
void GeneratorContext::GetCompilerVersion(Version* version) const { version->set_major(GOOGLE_PROTOBUF_VERSION / 1000000); version->set_minor(GOOGLE_PROTOBUF_VERSION / 1000 % 1000); version->set_patch(GOOGLE_PROTOBUF_VERSION % 1000); version->set_suffix(GOOGLE_PROTOBUF_VERSION_SUFFIX); }
O3
cpp
google::protobuf::compiler::GeneratorContext::GetCompilerVersion(google::protobuf::compiler::Version*) const: pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rsi, %rbx movabsq $0x1500000003, %rax # imm = 0x1500000003 movq %rax, 0x20(%rsi) movl $0xc, 0x28(%rsi) orb $0xf, 0x10(%rsi) movq 0x8(%rsi), %rax addq $0x18, %rbx movq %rax, %r14 andq $-0x4, %r14 testb $0x1, %al jne 0xac0a0 leaq 0x18(%rsp), %r12 movq %r12, -0x10(%r12) leaq 0xa0b3(%rip), %rdx # 0xb611a leaq 0x8(%rsp), %r15 movq %r15, %rdi movq %rdx, %rsi callq 0x137ec movq %rbx, %rdi movq %r15, %rsi movq %r14, %rdx callq 0x9308e movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0xac094 callq 0xf330 addq $0x28, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq movq (%r14), %r14 jmp 0xac056 movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0xac0b7 callq 0xf330 movq %rbx, %rdi callq 0xf570
_ZNK6google8protobuf8compiler16GeneratorContext18GetCompilerVersionEPNS1_7VersionE: push r15 push r14 push r12 push rbx sub rsp, 28h mov rbx, rsi mov rax, 1500000003h mov [rsi+20h], rax mov dword ptr [rsi+28h], 0Ch or byte ptr [rsi+10h], 0Fh mov rax, [rsi+8] add rbx, 18h mov r14, rax and r14, 0FFFFFFFFFFFFFFFCh test al, 1 jnz short loc_AC0A0 loc_AC056: lea r12, [rsp+48h+var_30] mov [r12-10h], r12 lea rdx, aSyntax0+10h; "" lea r15, [rsp+48h+var_40] mov rdi, r15 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) mov rdi, rbx mov rsi, r15 mov rdx, r14 call _ZN6google8protobuf8internal14ArenaStringPtr3SetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Set(std::string const&,google::protobuf::Arena *) mov rdi, [rsp+48h+var_40]; void * cmp rdi, r12 jz short loc_AC094 call __ZdlPv; operator delete(void *) loc_AC094: add rsp, 28h pop rbx pop r12 pop r14 pop r15 retn loc_AC0A0: mov r14, [r14] jmp short loc_AC056 mov rbx, rax mov rdi, [rsp+arg_0]; void * cmp rdi, r12 jz short loc_AC0B7 call __ZdlPv; operator delete(void *) loc_AC0B7: mov rdi, rbx call __Unwind_Resume
void google::protobuf::compiler::GeneratorContext::GetCompilerVersion( google::protobuf::compiler::GeneratorContext *this, google::protobuf::compiler::Version *a2) { google::protobuf::Arena *v2; // r14 void *v3[2]; // [rsp+8h] [rbp-40h] BYREF _BYTE v4[48]; // [rsp+18h] [rbp-30h] BYREF *((_QWORD *)a2 + 4) = 0x1500000003LL; *((_DWORD *)a2 + 10) = 12; *((_BYTE *)a2 + 16) |= 0xFu; v2 = (google::protobuf::Arena *)(*((_QWORD *)a2 + 1) & 0xFFFFFFFFFFFFFFFCLL); if ( (*((_QWORD *)a2 + 1) & 1) != 0 ) v2 = *(google::protobuf::Arena **)v2; v3[0] = v4; std::string::_M_construct<char const*>((long long)v3, "", (long long)""); google::protobuf::internal::ArenaStringPtr::Set((long long *)a2 + 3, (long long)v3, v2); if ( v3[0] != v4 ) operator delete(v3[0]); }
GetCompilerVersion: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,RSI MOV RAX,0x1500000003 MOV qword ptr [RSI + 0x20],RAX MOV dword ptr [RSI + 0x28],0xc OR byte ptr [RSI + 0x10],0xf MOV RAX,qword ptr [RSI + 0x8] ADD RBX,0x18 MOV R14,RAX AND R14,-0x4 TEST AL,0x1 JNZ 0x001ac0a0 LAB_001ac056: LEA R12,[RSP + 0x18] MOV qword ptr [R12 + -0x10],R12 LEA RDX,[0x1b611a] LEA R15,[RSP + 0x8] MOV RDI,R15 MOV RSI,RDX CALL 0x001137ec LAB_001ac077: MOV RDI,RBX MOV RSI,R15 MOV RDX,R14 CALL 0x0019308e LAB_001ac085: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R12 JZ 0x001ac094 CALL 0x0010f330 LAB_001ac094: ADD RSP,0x28 POP RBX POP R12 POP R14 POP R15 RET LAB_001ac0a0: MOV R14,qword ptr [R14] JMP 0x001ac056
/* google::protobuf::compiler::GeneratorContext::GetCompilerVersion(google::protobuf::compiler::Version*) const */ void __thiscall google::protobuf::compiler::GeneratorContext::GetCompilerVersion (GeneratorContext *this,Version *param_1) { Arena *pAVar1; int1 *local_40 [2]; int1 local_30 [16]; *(int8 *)(param_1 + 0x20) = 0x1500000003; *(int4 *)(param_1 + 0x28) = 0xc; param_1[0x10] = (Version)((byte)param_1[0x10] | 0xf); pAVar1 = (Arena *)(*(ulong *)(param_1 + 8) & 0xfffffffffffffffc); if ((*(ulong *)(param_1 + 8) & 1) != 0) { pAVar1 = *(Arena **)pAVar1; } local_40[0] = local_30; std::__cxx11::string::_M_construct<char_const*>((string *)local_40,""); /* try { // try from 001ac077 to 001ac084 has its CatchHandler @ 001ac0a5 */ internal::ArenaStringPtr::Set((ArenaStringPtr *)(param_1 + 0x18),(string *)local_40,pAVar1); if (local_40[0] != local_30) { operator_delete(local_40[0]); } return; }
49,375
test_file_registration()
eloqsql/storage/perfschema/unittest/pfs_instr_class-t.cc
void test_file_registration() { int rc; PFS_file_key key; PFS_file_class *file; rc= init_file_class(5); ok(rc == 0, "room for 5 file"); key= register_file_class("FOO", 3, 0); ok(key == 1, "foo registered"); key= register_file_class("BAR", 3, 0); ok(key == 2, "bar registered"); key= register_file_class("FOO", 3, 0); ok(key == 1, "foo re registered"); key= register_file_class("File-3", 6, 0); ok(key == 3, "File-3 registered"); key= register_file_class("File-4", 6, 0); ok(key == 4, "File-4 registered"); key= register_file_class("File-5", 6, 0); ok(key == 5, "File-5 registered"); key= register_file_class("File-6", 6, 0); ok(key == 0, "File-6 not registered"); key= register_file_class("File-7", 6, 0); ok(key == 0, "File-7 not registered"); key= register_file_class("File-3", 6, 0); ok(key == 3, "File-3 re registered"); key= register_file_class("File-5", 6, 0); ok(key == 5, "File-5 re registered"); file= find_file_class(0); ok(file == NULL, "no key 0"); file= find_file_class(3); ok(file != NULL, "found key 3"); ok(strncmp(file->m_name, "File-3", 6) == 0, "key 3 is File-3"); ok(file->m_name_length == 6, "name length 6"); file= find_file_class(9999); ok(file == NULL, "no key 9999"); cleanup_file_class(); }
O3
cpp
test_file_registration(): pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movl $0x5, %edi callq 0x267c8 xorl %edi, %edi testl %eax, %eax sete %dil leaq 0x4f733(%rip), %rsi # 0x7d5dc xorl %eax, %eax callq 0x2ef93 leaq 0x4f1ba(%rip), %rbx # 0x7d071 movq %rbx, %rdi movl $0x3, %esi xorl %edx, %edx callq 0x308ee xorl %edi, %edi cmpl $0x1, %eax sete %dil leaq 0x4f398(%rip), %rsi # 0x7d26e xorl %eax, %eax callq 0x2ef93 leaq 0x4f1a5(%rip), %rdi # 0x7d089 movl $0x3, %esi xorl %edx, %edx callq 0x308ee xorl %edi, %edi cmpl $0x2, %eax sete %dil leaq 0x4f37d(%rip), %rsi # 0x7d27d xorl %eax, %eax callq 0x2ef93 movq %rbx, %rdi movl $0x3, %esi xorl %edx, %edx callq 0x308ee xorl %edi, %edi cmpl $0x1, %eax sete %dil leaq 0x4f366(%rip), %rsi # 0x7d28c xorl %eax, %eax callq 0x2ef93 leaq 0x4f769(%rip), %rbx # 0x7d69d movq %rbx, %rdi movl $0x6, %esi xorl %edx, %edx callq 0x308ee xorl %edi, %edi cmpl $0x3, %eax sete %dil leaq 0x4f699(%rip), %rsi # 0x7d5ec xorl %eax, %eax callq 0x2ef93 leaq 0x4f69d(%rip), %rdi # 0x7d5fe movl $0x6, %esi xorl %edx, %edx callq 0x308ee xorl %edi, %edi cmpl $0x4, %eax sete %dil leaq 0x4f688(%rip), %rsi # 0x7d605 xorl %eax, %eax callq 0x2ef93 leaq 0x4f68c(%rip), %r14 # 0x7d617 movq %r14, %rdi movl $0x6, %esi xorl %edx, %edx callq 0x308ee xorl %edi, %edi cmpl $0x5, %eax sete %dil leaq 0x4f674(%rip), %rsi # 0x7d61e xorl %eax, %eax callq 0x2ef93 leaq 0x4f678(%rip), %rdi # 0x7d630 movl $0x6, %esi xorl %edx, %edx callq 0x308ee xorl %edi, %edi testl %eax, %eax sete %dil leaq 0x4f664(%rip), %rsi # 0x7d637 xorl %eax, %eax callq 0x2ef93 leaq 0x4f66c(%rip), %rdi # 0x7d64d movl $0x6, %esi xorl %edx, %edx callq 0x308ee xorl %edi, %edi testl %eax, %eax sete %dil leaq 0x4f658(%rip), %rsi # 0x7d654 xorl %eax, %eax callq 0x2ef93 movq %rbx, %rdi movl $0x6, %esi xorl %edx, %edx callq 0x308ee xorl %edi, %edi cmpl $0x3, %eax sete %dil leaq 0x4f648(%rip), %rsi # 0x7d66a xorl %eax, %eax callq 0x2ef93 movq %r14, %rdi movl $0x6, %esi xorl %edx, %edx callq 0x308ee xorl %edi, %edi cmpl $0x5, %eax sete %dil leaq 0x4f637(%rip), %rsi # 0x7d67f xorl %eax, %eax callq 0x2ef93 xorl %edi, %edi callq 0x30cb3 xorl %edi, %edi testq %rax, %rax sete %dil leaq 0x4f2e6(%rip), %rsi # 0x7d34c xorl %eax, %eax callq 0x2ef93 movl $0x3, %edi callq 0x30cb3 movq %rax, %r14 xorl %edi, %edi testq %rax, %rax setne %dil leaq 0x4f2cb(%rip), %rsi # 0x7d355 xorl %eax, %eax callq 0x2ef93 leaq 0x14(%r14), %rdi movl $0x6, %edx movq %rbx, %rsi callq 0x26170 xorl %edi, %edi testl %eax, %eax sete %dil leaq 0x4f5e3(%rip), %rsi # 0x7d694 xorl %eax, %eax callq 0x2ef93 xorl %edi, %edi cmpl $0x6, 0x94(%r14) sete %dil leaq 0x4f5d7(%rip), %rsi # 0x7d6a4 xorl %eax, %eax callq 0x2ef93 movl $0x270f, %edi # imm = 0x270F callq 0x30cb3 xorl %edi, %edi testq %rax, %rax sete %dil leaq 0x4f28e(%rip), %rsi # 0x7d37c xorl %eax, %eax callq 0x2ef93 popq %rbx popq %r14 popq %rbp jmp 0x3015d
_Z22test_file_registrationv: push rbp mov rbp, rsp push r14 push rbx mov edi, 5; unsigned int call _Z15init_file_classj; init_file_class(uint) xor edi, edi test eax, eax setz dil lea rsi, aRoomFor5File; "room for 5 file" xor eax, eax call ok lea rbx, aFoo; "FOO" mov rdi, rbx; char * mov esi, 3; unsigned int xor edx, edx; int call _Z19register_file_classPKcji; register_file_class(char const*,uint,int) xor edi, edi cmp eax, 1 setz dil lea rsi, aFooRegistered; "foo registered" xor eax, eax call ok lea rdi, aBar; "BAR" mov esi, 3; unsigned int xor edx, edx; int call _Z19register_file_classPKcji; register_file_class(char const*,uint,int) xor edi, edi cmp eax, 2 setz dil lea rsi, aBarRegistered; "bar registered" xor eax, eax call ok mov rdi, rbx; char * mov esi, 3; unsigned int xor edx, edx; int call _Z19register_file_classPKcji; register_file_class(char const*,uint,int) xor edi, edi cmp eax, 1 setz dil lea rsi, aFooReRegistere; "foo re registered" xor eax, eax call ok lea rbx, aKey3IsFile3+9; "File-3" mov rdi, rbx; char * mov esi, 6; unsigned int xor edx, edx; int call _Z19register_file_classPKcji; register_file_class(char const*,uint,int) xor edi, edi cmp eax, 3 setz dil lea rsi, aFile3Registere; "File-3 registered" xor eax, eax call ok lea rdi, aFile4; "File-4" mov esi, 6; unsigned int xor edx, edx; int call _Z19register_file_classPKcji; register_file_class(char const*,uint,int) xor edi, edi cmp eax, 4 setz dil lea rsi, aFile4Registere; "File-4 registered" xor eax, eax call ok lea r14, aFile5; "File-5" mov rdi, r14; char * mov esi, 6; unsigned int xor edx, edx; int call _Z19register_file_classPKcji; register_file_class(char const*,uint,int) xor edi, edi cmp eax, 5 setz dil lea rsi, aFile5Registere; "File-5 registered" xor eax, eax call ok lea rdi, aFile6; "File-6" mov esi, 6; unsigned int xor edx, edx; int call _Z19register_file_classPKcji; register_file_class(char const*,uint,int) xor edi, edi test eax, eax setz dil lea rsi, aFile6NotRegist; "File-6 not registered" xor eax, eax call ok lea rdi, aFile7; "File-7" mov esi, 6; unsigned int xor edx, edx; int call _Z19register_file_classPKcji; register_file_class(char const*,uint,int) xor edi, edi test eax, eax setz dil lea rsi, aFile7NotRegist; "File-7 not registered" xor eax, eax call ok mov rdi, rbx; char * mov esi, 6; unsigned int xor edx, edx; int call _Z19register_file_classPKcji; register_file_class(char const*,uint,int) xor edi, edi cmp eax, 3 setz dil lea rsi, aFile3ReRegiste; "File-3 re registered" xor eax, eax call ok mov rdi, r14; char * mov esi, 6; unsigned int xor edx, edx; int call _Z19register_file_classPKcji; register_file_class(char const*,uint,int) xor edi, edi cmp eax, 5 setz dil lea rsi, aFile5ReRegiste; "File-5 re registered" xor eax, eax call ok xor edi, edi; unsigned int call _Z15find_file_classj; find_file_class(uint) xor edi, edi test rax, rax setz dil lea rsi, aNoKey0; "no key 0" xor eax, eax call ok mov edi, 3; unsigned int call _Z15find_file_classj; find_file_class(uint) mov r14, rax xor edi, edi test rax, rax setnz dil lea rsi, aFoundKey3; "found key 3" xor eax, eax call ok lea rdi, [r14+14h] mov edx, 6 mov rsi, rbx call _strncmp xor edi, edi test eax, eax setz dil lea rsi, aKey3IsFile3; "key 3 is File-3" xor eax, eax call ok xor edi, edi cmp dword ptr [r14+94h], 6 setz dil lea rsi, aNameLength6; "name length 6" xor eax, eax call ok mov edi, 270Fh; unsigned int call _Z15find_file_classj; find_file_class(uint) xor edi, edi test rax, rax setz dil lea rsi, aNoKey9999; "no key 9999" xor eax, eax call ok pop rbx pop r14 pop rbp jmp _Z18cleanup_file_classv; cleanup_file_class(void)
long long test_file_registration(void) { int inited; // eax int v1; // edx int v2; // ecx int v3; // r8d int v4; // r9d int v5; // eax int v6; // edx int v7; // ecx int v8; // r8d int v9; // r9d int v10; // eax int v11; // edx int v12; // ecx int v13; // r8d int v14; // r9d int v15; // eax int v16; // edx int v17; // ecx int v18; // r8d int v19; // r9d int v20; // eax int v21; // edx int v22; // ecx int v23; // r8d int v24; // r9d int v25; // eax int v26; // edx int v27; // ecx int v28; // r8d int v29; // r9d int v30; // eax int v31; // edx int v32; // ecx int v33; // r8d int v34; // r9d int v35; // eax int v36; // edx int v37; // ecx int v38; // r8d int v39; // r9d int v40; // eax int v41; // edx int v42; // ecx int v43; // r8d int v44; // r9d int v45; // eax int v46; // edx int v47; // ecx int v48; // r8d int v49; // r9d int v50; // eax int v51; // edx int v52; // ecx int v53; // r8d int v54; // r9d long long file_class; // rax int v56; // edx int v57; // ecx int v58; // r8d int v59; // r9d long long v60; // r14 int v61; // edx int v62; // ecx int v63; // r8d int v64; // r9d int v65; // eax int v66; // edx int v67; // ecx int v68; // r8d int v69; // r9d int v70; // edx int v71; // ecx int v72; // r8d int v73; // r9d long long v74; // rax int v75; // edx int v76; // ecx int v77; // r8d int v78; // r9d inited = init_file_class(5u); ok(inited == 0, (unsigned int)"room for 5 file", v1, v2, v3, v4); v5 = register_file_class("FOO", 3u, 0); ok(v5 == 1, (unsigned int)"foo registered", v6, v7, v8, v9); v10 = register_file_class("BAR", 3u, 0); ok(v10 == 2, (unsigned int)"bar registered", v11, v12, v13, v14); v15 = register_file_class("FOO", 3u, 0); ok(v15 == 1, (unsigned int)"foo re registered", v16, v17, v18, v19); v20 = register_file_class("File-3", 6u, 0); ok(v20 == 3, (unsigned int)"File-3 registered", v21, v22, v23, v24); v25 = register_file_class("File-4", 6u, 0); ok(v25 == 4, (unsigned int)"File-4 registered", v26, v27, v28, v29); v30 = register_file_class("File-5", 6u, 0); ok(v30 == 5, (unsigned int)"File-5 registered", v31, v32, v33, v34); v35 = register_file_class("File-6", 6u, 0); ok(v35 == 0, (unsigned int)"File-6 not registered", v36, v37, v38, v39); v40 = register_file_class("File-7", 6u, 0); ok(v40 == 0, (unsigned int)"File-7 not registered", v41, v42, v43, v44); v45 = register_file_class("File-3", 6u, 0); ok(v45 == 3, (unsigned int)"File-3 re registered", v46, v47, v48, v49); v50 = register_file_class("File-5", 6u, 0); ok(v50 == 5, (unsigned int)"File-5 re registered", v51, v52, v53, v54); file_class = find_file_class(0); ok(file_class == 0, (unsigned int)"no key 0", v56, v57, v58, v59); v60 = find_file_class(3u); ok(v60 != 0, (unsigned int)"found key 3", v61, v62, v63, v64); v65 = strncmp(v60 + 20, "File-3", 6LL); ok(v65 == 0, (unsigned int)"key 3 is File-3", v66, v67, v68, v69); ok(*(_DWORD *)(v60 + 148) == 6, (unsigned int)"name length 6", v70, v71, v72, v73); v74 = find_file_class(0x270Fu); ok(v74 == 0, (unsigned int)"no key 9999", v75, v76, v77, v78); return cleanup_file_class(); }
test_file_registration: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV EDI,0x5 CALL 0x001267c8 XOR EDI,EDI TEST EAX,EAX SETZ DIL LEA RSI,[0x17d5dc] XOR EAX,EAX CALL 0x0012ef93 LEA RBX,[0x17d071] MOV RDI,RBX MOV ESI,0x3 XOR EDX,EDX CALL 0x001308ee XOR EDI,EDI CMP EAX,0x1 SETZ DIL LEA RSI,[0x17d26e] XOR EAX,EAX CALL 0x0012ef93 LEA RDI,[0x17d089] MOV ESI,0x3 XOR EDX,EDX CALL 0x001308ee XOR EDI,EDI CMP EAX,0x2 SETZ DIL LEA RSI,[0x17d27d] XOR EAX,EAX CALL 0x0012ef93 MOV RDI,RBX MOV ESI,0x3 XOR EDX,EDX CALL 0x001308ee XOR EDI,EDI CMP EAX,0x1 SETZ DIL LEA RSI,[0x17d28c] XOR EAX,EAX CALL 0x0012ef93 LEA RBX,[0x17d69d] MOV RDI,RBX MOV ESI,0x6 XOR EDX,EDX CALL 0x001308ee XOR EDI,EDI CMP EAX,0x3 SETZ DIL LEA RSI,[0x17d5ec] XOR EAX,EAX CALL 0x0012ef93 LEA RDI,[0x17d5fe] MOV ESI,0x6 XOR EDX,EDX CALL 0x001308ee XOR EDI,EDI CMP EAX,0x4 SETZ DIL LEA RSI,[0x17d605] XOR EAX,EAX CALL 0x0012ef93 LEA R14,[0x17d617] MOV RDI,R14 MOV ESI,0x6 XOR EDX,EDX CALL 0x001308ee XOR EDI,EDI CMP EAX,0x5 SETZ DIL LEA RSI,[0x17d61e] XOR EAX,EAX CALL 0x0012ef93 LEA RDI,[0x17d630] MOV ESI,0x6 XOR EDX,EDX CALL 0x001308ee XOR EDI,EDI TEST EAX,EAX SETZ DIL LEA RSI,[0x17d637] XOR EAX,EAX CALL 0x0012ef93 LEA RDI,[0x17d64d] MOV ESI,0x6 XOR EDX,EDX CALL 0x001308ee XOR EDI,EDI TEST EAX,EAX SETZ DIL LEA RSI,[0x17d654] XOR EAX,EAX CALL 0x0012ef93 MOV RDI,RBX MOV ESI,0x6 XOR EDX,EDX CALL 0x001308ee XOR EDI,EDI CMP EAX,0x3 SETZ DIL LEA RSI,[0x17d66a] XOR EAX,EAX CALL 0x0012ef93 MOV RDI,R14 MOV ESI,0x6 XOR EDX,EDX CALL 0x001308ee XOR EDI,EDI CMP EAX,0x5 SETZ DIL LEA RSI,[0x17d67f] XOR EAX,EAX CALL 0x0012ef93 XOR EDI,EDI CALL 0x00130cb3 XOR EDI,EDI TEST RAX,RAX SETZ DIL LEA RSI,[0x17d34c] XOR EAX,EAX CALL 0x0012ef93 MOV EDI,0x3 CALL 0x00130cb3 MOV R14,RAX XOR EDI,EDI TEST RAX,RAX SETNZ DIL LEA RSI,[0x17d355] XOR EAX,EAX CALL 0x0012ef93 LEA RDI,[R14 + 0x14] MOV EDX,0x6 MOV RSI,RBX CALL 0x00126170 XOR EDI,EDI TEST EAX,EAX SETZ DIL LEA RSI,[0x17d694] XOR EAX,EAX CALL 0x0012ef93 XOR EDI,EDI CMP dword ptr [R14 + 0x94],0x6 SETZ DIL LEA RSI,[0x17d6a4] XOR EAX,EAX CALL 0x0012ef93 MOV EDI,0x270f CALL 0x00130cb3 XOR EDI,EDI TEST RAX,RAX SETZ DIL LEA RSI,[0x17d37c] XOR EAX,EAX CALL 0x0012ef93 POP RBX POP R14 POP RBP JMP 0x0013015d
/* WARNING: Unknown calling convention -- yet parameter storage is locked */ /* test_file_registration() */ void test_file_registration(void) { int iVar1; long lVar2; iVar1 = init_file_class(5); ok(iVar1 == 0,"room for 5 file"); iVar1 = register_file_class("FOO",3,0); ok(iVar1 == 1,"foo registered"); iVar1 = register_file_class("BAR",3,0); ok(iVar1 == 2,"bar registered"); iVar1 = register_file_class("FOO",3,0); ok(iVar1 == 1,"foo re registered"); iVar1 = register_file_class("File-3",6,0); ok(iVar1 == 3,"File-3 registered"); iVar1 = register_file_class("File-4",6,0); ok(iVar1 == 4,"File-4 registered"); iVar1 = register_file_class("File-5",6,0); ok(iVar1 == 5,"File-5 registered"); iVar1 = register_file_class("File-6",6,0); ok(iVar1 == 0,"File-6 not registered"); iVar1 = register_file_class("File-7",6,0); ok(iVar1 == 0,"File-7 not registered"); iVar1 = register_file_class("File-3",6,0); ok(iVar1 == 3,"File-3 re registered"); iVar1 = register_file_class("File-5",6,0); ok(iVar1 == 5,"File-5 re registered"); lVar2 = find_file_class(0); ok(lVar2 == 0,"no key 0"); lVar2 = find_file_class(3); ok(lVar2 != 0,"found key 3"); iVar1 = strncmp((char *)(lVar2 + 0x14),"File-3",6); ok(iVar1 == 0,"key 3 is File-3"); ok(*(int *)(lVar2 + 0x94) == 6,"name length 6"); lVar2 = find_file_class(9999); ok(lVar2 == 0,"no key 9999"); cleanup_file_class(); return; }
49,376
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>>>::erase(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__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>*, std::vector<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>, 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>>>>, __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::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>*, std::vector<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>, 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>>>>)
monkey531[P]llama/common/./json.hpp
iterator erase(iterator first, iterator last) { if (first == last) { return first; } const auto elements_affected = std::distance(first, last); const auto offset = std::distance(Container::begin(), first); // This is the start situation. We need to delete elements_affected // elements (3 in this example: e, f, g), and need to return an // iterator past the last deleted element (h in this example). // Note that offset is the distance from the start of the vector // to first. We will need this later. // [ a, b, c, d, e, f, g, h, i, j ] // ^ ^ // first last // Since we cannot move const Keys, we re-construct them in place. // We start at first and re-construct (viz. copy) the elements from // the back of the vector. Example for first iteration: // ,--------. // v | destroy e and re-construct with h // [ a, b, c, d, e, f, g, h, i, j ] // ^ ^ // it it + elements_affected for (auto it = first; std::next(it, elements_affected) != Container::end(); ++it) { it->~value_type(); // destroy but keep allocation new (&*it) value_type{std::move(*std::next(it, elements_affected))}; // "move" next element to it } // [ a, b, c, d, h, i, j, h, i, j ] // ^ ^ // first last // remove the unneeded elements at the end of the vector Container::resize(this->size() - static_cast<size_type>(elements_affected)); // [ a, b, c, d, h, i, j ] // ^ ^ // first last // first is now pointing past the last deleted element, but we cannot // use this iterator, because it may have been invalidated by the // resize call. Instead, we can return begin() + offset. return Container::begin() + offset; }
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>>>::erase(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__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>*, std::vector<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>, 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>>>>, __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::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>*, std::vector<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>, 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>>>>): subq $0x98, %rsp movq %rsi, 0x88(%rsp) movq %rdx, 0x80(%rsp) movq %rdi, 0x78(%rsp) movq 0x78(%rsp), %rax movq %rax, 0x8(%rsp) leaq 0x88(%rsp), %rdi leaq 0x80(%rsp), %rsi callq 0xd4380 testb $0x1, %al jne 0xdc6f1 jmp 0xdc706 movq 0x88(%rsp), %rax movq %rax, 0x90(%rsp) jmp 0xdc858 movq 0x88(%rsp), %rax movq %rax, 0x68(%rsp) movq 0x80(%rsp), %rax movq %rax, 0x60(%rsp) movq 0x68(%rsp), %rdi movq 0x60(%rsp), %rsi callq 0xdc8a0 movq 0x8(%rsp), %rdi movq %rax, 0x70(%rsp) callq 0xa1ae0 movq %rax, 0x50(%rsp) movq 0x88(%rsp), %rax movq %rax, 0x48(%rsp) movq 0x50(%rsp), %rdi movq 0x48(%rsp), %rsi callq 0xdc8a0 movq %rax, 0x58(%rsp) movq 0x88(%rsp), %rax movq %rax, 0x40(%rsp) movq 0x40(%rsp), %rax movq %rax, 0x30(%rsp) movq 0x70(%rsp), %rsi movq 0x30(%rsp), %rdi callq 0xdc870 movq 0x8(%rsp), %rdi movq %rax, 0x38(%rsp) callq 0xa1b50 movq %rax, 0x28(%rsp) leaq 0x38(%rsp), %rdi leaq 0x28(%rsp), %rsi callq 0xa1b10 testb $0x1, %al jne 0xdc7b3 jmp 0xdc816 leaq 0x40(%rsp), %rdi callq 0xa1b80 movq %rax, %rdi callq 0xc7c30 leaq 0x40(%rsp), %rdi callq 0xca440 movq %rax, (%rsp) movq 0x40(%rsp), %rax movq %rax, 0x18(%rsp) movq 0x70(%rsp), %rsi movq 0x18(%rsp), %rdi callq 0xdc870 movq %rax, 0x20(%rsp) leaq 0x20(%rsp), %rdi callq 0xca440 movq (%rsp), %rdi movq %rax, %rsi callq 0xdc8e0 leaq 0x40(%rsp), %rdi callq 0xa1ef0 jmp 0xdc771 movq 0x8(%rsp), %rdi callq 0xc9e90 movq 0x8(%rsp), %rdi movq %rax, %rsi subq 0x70(%rsp), %rsi callq 0xdc920 movq 0x8(%rsp), %rdi callq 0xa1ae0 movq %rax, 0x10(%rsp) movq 0x58(%rsp), %rsi leaq 0x10(%rsp), %rdi callq 0xdc9c0 movq %rax, 0x90(%rsp) movq 0x90(%rsp), %rax addq $0x98, %rsp retq nopl (%rax,%rax)
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE5eraseEN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEESR_: sub rsp, 98h mov [rsp+98h+var_10], rsi mov [rsp+98h+var_18], rdx mov [rsp+98h+var_20], rdi mov rax, [rsp+98h+var_20] mov [rsp+98h+var_90], rax lea rdi, [rsp+98h+var_10] lea rsi, [rsp+98h+var_18] call _ZN9__gnu_cxxeqIPSt4pairIKN8nlohmann16json_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_DC6F1 jmp short loc_DC706 loc_DC6F1: mov rax, [rsp+98h+var_10] mov [rsp+98h+var_8], rax jmp loc_DC858 loc_DC706: mov rax, [rsp+98h+var_10] mov [rsp+98h+var_30], rax mov rax, [rsp+98h+var_18] mov [rsp+98h+var_38], rax mov rdi, [rsp+98h+var_30] mov rsi, [rsp+98h+var_38] call _ZSt8distanceIN9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS4_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS4_14adl_serializerES7_IhSaIhEEvEEN5minja5ValueEES7_ISL_SaISL_EEEEENSt15iterator_traitsIT_E15difference_typeESR_SR_; std::distance<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>>(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,__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>>>) mov rdi, [rsp+98h+var_90] mov [rsp+98h+var_28], rax 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+98h+var_48], rax mov rax, [rsp+98h+var_10] mov [rsp+98h+var_50], rax mov rdi, [rsp+98h+var_48] mov rsi, [rsp+98h+var_50] call _ZSt8distanceIN9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS4_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS4_14adl_serializerES7_IhSaIhEEvEEN5minja5ValueEES7_ISL_SaISL_EEEEENSt15iterator_traitsIT_E15difference_typeESR_SR_; std::distance<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>>(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,__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>>>) mov [rsp+98h+var_40], rax mov rax, [rsp+98h+var_10] mov [rsp+98h+var_58], rax loc_DC771: mov rax, [rsp+98h+var_58] mov [rsp+98h+var_68], rax mov rsi, [rsp+98h+var_28] mov rdi, [rsp+98h+var_68] call _ZSt4nextIN9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS4_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS4_14adl_serializerES7_IhSaIhEEvEEN5minja5ValueEES7_ISL_SaISL_EEEEET_SQ_NSt15iterator_traitsISQ_E15difference_typeE; std::next<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>>(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,std::iterator_traits<__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>>>>::difference_type) mov rdi, [rsp+98h+var_90] mov [rsp+98h+var_60], rax 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+98h+var_70], rax lea rdi, [rsp+98h+var_60] lea rsi, [rsp+98h+var_70] 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_DC7B3 jmp short loc_DC816 loc_DC7B3: lea rdi, [rsp+98h+var_58] 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, rax call _ZNSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueEED2Ev; 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>::~pair() lea rdi, [rsp+98h+var_58] call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEdeEv; __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::operator*(void) mov [rsp+98h+var_98], rax mov rax, [rsp+98h+var_58] mov [rsp+98h+var_80], rax mov rsi, [rsp+98h+var_28] mov rdi, [rsp+98h+var_80] call _ZSt4nextIN9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS4_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS4_14adl_serializerES7_IhSaIhEEvEEN5minja5ValueEES7_ISL_SaISL_EEEEET_SQ_NSt15iterator_traitsISQ_E15difference_typeE; std::next<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>>(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,std::iterator_traits<__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>>>>::difference_type) mov [rsp+98h+var_78], rax lea rdi, [rsp+98h+var_78] call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEdeEv; __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::operator*(void) mov rdi, [rsp+98h+var_98] mov rsi, rax call _ZNSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueEEC2EOSI_; 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>::pair(std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>&&) lea rdi, [rsp+98h+var_58] 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 loc_DC771 loc_DC816: mov rdi, [rsp+98h+var_90] call _ZNKSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE4sizeEv; 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>>::size(void) mov rdi, [rsp+98h+var_90] mov rsi, rax sub rsi, [rsp+98h+var_28] call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE6resizeEm; 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>>::resize(ulong) mov rdi, [rsp+98h+var_90] 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+98h+var_88], rax mov rsi, [rsp+98h+var_40] lea rdi, [rsp+98h+var_88] call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEplEl; __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+(long) mov [rsp+98h+var_8], rax loc_DC858: mov rax, [rsp+98h+var_8] add rsp, 98h 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>>>::erase( _QWORD *a1, long long a2, long long a3) { long long v3; // rax long long v4; // rax long long v5; // rax long long v7; // [rsp+0h] [rbp-98h] _QWORD v8[2]; // [rsp+10h] [rbp-88h] BYREF long long v9; // [rsp+20h] [rbp-78h] BYREF _QWORD v10[2]; // [rsp+28h] [rbp-70h] BYREF long long v11; // [rsp+38h] [rbp-60h] BYREF _QWORD v12[2]; // [rsp+40h] [rbp-58h] BYREF long long v13; // [rsp+50h] [rbp-48h] long long v14; // [rsp+58h] [rbp-40h] long long v15; // [rsp+60h] [rbp-38h] long long v16; // [rsp+68h] [rbp-30h] long long v17; // [rsp+70h] [rbp-28h] _QWORD *v18; // [rsp+78h] [rbp-20h] long long v19; // [rsp+80h] [rbp-18h] BYREF long long v20; // [rsp+88h] [rbp-10h] BYREF v20 = a2; v19 = a3; v18 = 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)&v20, (long long)&v19) ) { return v20; } v16 = v20; v15 = v19; v17 = std::distance<__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>>>>( v20, v19); v13 = 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((long long)a1); v12[1] = v20; v14 = std::distance<__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>>>>( v13, v20); v12[0] = v20; while ( 1 ) { v10[1] = v12[0]; v11 = std::next<__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>>>>( v12[0], v17); v10[0] = 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((long long)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)&v11, (long long)v10) ) break; v3 = __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)v12); 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>::~pair(v3); v7 = __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)v12); v8[1] = v12[0]; v9 = std::next<__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>>>>( v12[0], v17); v4 = __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::operator*((long long)&v9); 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>::pair( v7, v4); __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::operator++(v12); } v5 = 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>>::size(a1); 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>>::resize( a1, v5 - v17); v8[0] = 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((long long)a1); return __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+( v8, v14); }
erase: SUB RSP,0x98 MOV qword ptr [RSP + 0x88],RSI MOV qword ptr [RSP + 0x80],RDX MOV qword ptr [RSP + 0x78],RDI MOV RAX,qword ptr [RSP + 0x78] MOV qword ptr [RSP + 0x8],RAX LEA RDI,[RSP + 0x88] LEA RSI,[RSP + 0x80] CALL 0x001d4380 TEST AL,0x1 JNZ 0x001dc6f1 JMP 0x001dc706 LAB_001dc6f1: MOV RAX,qword ptr [RSP + 0x88] MOV qword ptr [RSP + 0x90],RAX JMP 0x001dc858 LAB_001dc706: MOV RAX,qword ptr [RSP + 0x88] MOV qword ptr [RSP + 0x68],RAX MOV RAX,qword ptr [RSP + 0x80] MOV qword ptr [RSP + 0x60],RAX MOV RDI,qword ptr [RSP + 0x68] MOV RSI,qword ptr [RSP + 0x60] CALL 0x001dc8a0 MOV RDI,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x70],RAX CALL 0x001a1ae0 MOV qword ptr [RSP + 0x50],RAX MOV RAX,qword ptr [RSP + 0x88] MOV qword ptr [RSP + 0x48],RAX MOV RDI,qword ptr [RSP + 0x50] MOV RSI,qword ptr [RSP + 0x48] CALL 0x001dc8a0 MOV qword ptr [RSP + 0x58],RAX MOV RAX,qword ptr [RSP + 0x88] MOV qword ptr [RSP + 0x40],RAX LAB_001dc771: MOV RAX,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0x30],RAX MOV RSI,qword ptr [RSP + 0x70] MOV RDI,qword ptr [RSP + 0x30] CALL 0x001dc870 MOV RDI,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x38],RAX CALL 0x001a1b50 MOV qword ptr [RSP + 0x28],RAX LEA RDI,[RSP + 0x38] LEA RSI,[RSP + 0x28] CALL 0x001a1b10 TEST AL,0x1 JNZ 0x001dc7b3 JMP 0x001dc816 LAB_001dc7b3: LEA RDI,[RSP + 0x40] CALL 0x001a1b80 MOV RDI,RAX CALL 0x001c7c30 LEA RDI,[RSP + 0x40] CALL 0x001ca440 MOV qword ptr [RSP],RAX MOV RAX,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0x18],RAX MOV RSI,qword ptr [RSP + 0x70] MOV RDI,qword ptr [RSP + 0x18] CALL 0x001dc870 MOV qword ptr [RSP + 0x20],RAX LEA RDI,[RSP + 0x20] CALL 0x001ca440 MOV RDI,qword ptr [RSP] MOV RSI,RAX CALL 0x001dc8e0 LEA RDI,[RSP + 0x40] CALL 0x001a1ef0 JMP 0x001dc771 LAB_001dc816: MOV RDI,qword ptr [RSP + 0x8] CALL 0x001c9e90 MOV RDI,qword ptr [RSP + 0x8] MOV RSI,RAX SUB RSI,qword ptr [RSP + 0x70] CALL 0x001dc920 MOV RDI,qword ptr [RSP + 0x8] CALL 0x001a1ae0 MOV qword ptr [RSP + 0x10],RAX MOV RSI,qword ptr [RSP + 0x58] LEA RDI,[RSP + 0x10] CALL 0x001dc9c0 MOV qword ptr [RSP + 0x90],RAX LAB_001dc858: MOV RAX,qword ptr [RSP + 0x90] ADD RSP,0x98 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> > >::erase(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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> > > >, __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> > > >) */ 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>>> ::erase(ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> *this,int8 param_2,int8 param_3) { bool bVar1; 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> *ppVar2; pair *ppVar3; long lVar4; int8 local_88; int8 local_80; int8 local_78; int8 local_70; int8 local_68; int8 local_60; int8 local_58; int8 local_50; int8 local_48; long local_40; int8 local_38; int8 local_30; long local_28; 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_20; int8 local_18; int8 local_10; int8 local_8; local_20 = this; local_18 = param_3; local_10 = param_2; bVar1 = __gnu_cxx::operator==((__normal_iterator *)&local_10,(__normal_iterator *)&local_18); if (bVar1) { local_8 = local_10; } else { local_30 = local_10; local_38 = local_18; local_28 = std:: distance<__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>>>>> (local_10,local_18); local_48 = 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); local_50 = local_10; local_40 = std:: distance<__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>>>>> (local_48,local_10); local_58 = local_10; while( true ) { local_68 = local_58; local_60 = std:: next<__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>>>>> (local_58,local_28); local_70 = std:: vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> ::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_60,(__normal_iterator *)&local_70); if (!bVar1) break; ppVar2 = (pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value> *)__gnu_cxx:: __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_58); 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> ::~pair(ppVar2); ppVar2 = (pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value> *)__gnu_cxx:: __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_58); local_80 = local_58; local_78 = std:: next<__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>>>>> (local_58,local_28); ppVar3 = (pair *)__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_78); 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> ::pair(ppVar2,ppVar3); __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_58); } lVar4 = 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>>> ::size((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); 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>>> ::resize((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,lVar4 - local_28); local_88 = 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); local_8 = __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_88,local_40); } return local_8; }
49,377
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>>>::erase(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__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>*, std::vector<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>, 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>>>>, __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::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>*, std::vector<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>, 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>>>>)
monkey531[P]llama/common/./json.hpp
iterator erase(iterator first, iterator last) { if (first == last) { return first; } const auto elements_affected = std::distance(first, last); const auto offset = std::distance(Container::begin(), first); // This is the start situation. We need to delete elements_affected // elements (3 in this example: e, f, g), and need to return an // iterator past the last deleted element (h in this example). // Note that offset is the distance from the start of the vector // to first. We will need this later. // [ a, b, c, d, e, f, g, h, i, j ] // ^ ^ // first last // Since we cannot move const Keys, we re-construct them in place. // We start at first and re-construct (viz. copy) the elements from // the back of the vector. Example for first iteration: // ,--------. // v | destroy e and re-construct with h // [ a, b, c, d, e, f, g, h, i, j ] // ^ ^ // it it + elements_affected for (auto it = first; std::next(it, elements_affected) != Container::end(); ++it) { it->~value_type(); // destroy but keep allocation new (&*it) value_type{std::move(*std::next(it, elements_affected))}; // "move" next element to it } // [ a, b, c, d, h, i, j, h, i, j ] // ^ ^ // first last // remove the unneeded elements at the end of the vector Container::resize(this->size() - static_cast<size_type>(elements_affected)); // [ a, b, c, d, h, i, j ] // ^ ^ // first last // first is now pointing past the last deleted element, but we cannot // use this iterator, because it may have been invalidated by the // resize call. Instead, we can return begin() + offset. return Container::begin() + offset; }
O1
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>>>::erase(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__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>*, std::vector<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>, 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>>>>, __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::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>*, std::vector<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>, 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>>>>): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %rbx cmpq %rdx, %rsi je 0x57300 movq %rdx, %r15 movq %rdi, %r14 subq %rbx, %r15 movq %r15, %rbp sarq $0x5, %rbp movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB imulq %rax, %rbp movq (%rdi), %rax movq %rax, (%rsp) movq %rbx, %r12 leaq (%r12,%r15), %r13 movq 0x8(%r14), %rsi cmpq %rsi, %r13 je 0x572d9 movq %r12, %rdi callq 0x4fb5c movq %r12, %rdi movq %r13, %rsi callq 0x57312 addq $0x60, %r12 jmp 0x572b3 subq (%r14), %rsi subq (%rsp), %rbx sarq $0x5, %rsi movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB imulq %rax, %rsi subq %rbp, %rsi movq %r14, %rdi callq 0x5739e addq (%r14), %rbx movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE5eraseEN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEESR_: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rsi cmp rsi, rdx jz short loc_57300 mov r15, rdx mov r14, rdi sub r15, rbx mov rbp, r15 sar rbp, 5 mov rax, 0AAAAAAAAAAAAAAABh imul rbp, rax mov rax, [rdi] mov [rsp+38h+var_38], rax mov r12, rbx loc_572B3: lea r13, [r12+r15] mov rsi, [r14+8] cmp r13, rsi jz short loc_572D9 mov rdi, r12 call _ZNSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueEED2Ev; 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>::~pair() mov rdi, r12 mov rsi, r13 call _ZNSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueEEC2EOSI_; 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>::pair(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>&&) add r12, 60h ; '`' jmp short loc_572B3 loc_572D9: sub rsi, [r14] sub rbx, [rsp+38h+var_38] sar rsi, 5 mov rax, 0AAAAAAAAAAAAAAABh imul rsi, rax sub rsi, rbp mov rdi, r14 call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE6resizeEm; 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>>::resize(ulong) add rbx, [r14] loc_57300: mov rax, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp 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>>>::erase( long long *a1, long long a2, long long a3) { long long v3; // rbx long long v4; // r15 unsigned long long v5; // rbp long long i; // r12 long long v7; // rsi long long v9; // [rsp+0h] [rbp-38h] v3 = a2; if ( a2 != a3 ) { v4 = a3 - a2; v5 = 0xAAAAAAAAAAAAAAABLL * ((a3 - a2) >> 5); v9 = *a1; for ( i = a2; ; i += 96LL ) { v7 = a1[1]; if ( i + v4 == v7 ) break; 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>::~pair(i); 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>::pair( i, 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>>::resize( a1, 0xAAAAAAAAAAAAAAABLL * ((v7 - *a1) >> 5) - v5); return *a1 + v3 - v9; } return v3; }
erase: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RSI CMP RSI,RDX JZ 0x00157300 MOV R15,RDX MOV R14,RDI SUB R15,RBX MOV RBP,R15 SAR RBP,0x5 MOV RAX,-0x5555555555555555 IMUL RBP,RAX MOV RAX,qword ptr [RDI] MOV qword ptr [RSP],RAX MOV R12,RBX LAB_001572b3: LEA R13,[R12 + R15*0x1] MOV RSI,qword ptr [R14 + 0x8] CMP R13,RSI JZ 0x001572d9 MOV RDI,R12 CALL 0x0014fb5c MOV RDI,R12 MOV RSI,R13 CALL 0x00157312 ADD R12,0x60 JMP 0x001572b3 LAB_001572d9: SUB RSI,qword ptr [R14] SUB RBX,qword ptr [RSP] SAR RSI,0x5 MOV RAX,-0x5555555555555555 IMUL RSI,RAX SUB RSI,RBP MOV RDI,R14 CALL 0x0015739e ADD RBX,qword ptr [R14] LAB_00157300: MOV RAX,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP 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> > >::erase(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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> > > >, __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> > > >) */ 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> * __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>>> ::erase(ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> *this,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> *param_2, 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> *param_3) { long lVar1; 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_00; if (param_2 != param_3) { lVar1 = *(long *)this; this_00 = param_2; while( true ) { if ((pair *)(this_00 + ((long)param_3 - (long)param_2)) == *(pair **)(this + 8)) break; 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> ::~pair(this_00); 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> ::pair(this_00,(pair *)(this_00 + ((long)param_3 - (long)param_2))); this_00 = this_00 + 0x60; } 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>>> ::resize((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,((long)*(pair **)(this + 8) - *(long *)this >> 5) * -0x5555555555555555 + ((long)param_3 - (long)param_2 >> 5) * 0x5555555555555555); param_2 = param_2 + (*(long *)this - lVar1); } return param_2; }
49,378
my_mb_wc_utf8mb4_no_range
eloqsql/strings/ctype-utf8.c
static int my_mb_wc_utf8mb4_no_range(CHARSET_INFO *cs __attribute__((unused)), my_wc_t *pwc, const uchar *s) { uchar c; c= s[0]; if (c < 0x80) { *pwc = c; return 1; } if (c < 0xc2) return MY_CS_ILSEQ; if (c < 0xe0) { if (!IS_CONTINUATION_BYTE(s[1])) return MY_CS_ILSEQ; *pwc= UTF8MB2_CODE(c, s[1]); return 2; } if (c < 0xf0) { if (!IS_UTF8MB3_STEP2(c, s[1], s[2])) return MY_CS_ILSEQ; *pwc= UTF8MB3_CODE(c, s[1], s[2]); return 3; } else if (c < 0xf5) { if (!IS_UTF8MB4_STEP2(c, s[1], s[2], s[3])) return MY_CS_ILSEQ; *pwc= UTF8MB4_CODE(c, s[1], s[2], s[3]); return 4; } return MY_CS_ILSEQ; }
O0
c
my_mb_wc_utf8mb4_no_range: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x20(%rbp), %rax movb (%rax), %al movb %al, -0x21(%rbp) movzbl -0x21(%rbp), %eax cmpl $0x80, %eax jge 0xa27ed movzbl -0x21(%rbp), %eax movl %eax, %ecx movq -0x18(%rbp), %rax movq %rcx, (%rax) movl $0x1, -0x4(%rbp) jmp 0xa29e9 movzbl -0x21(%rbp), %eax cmpl $0xc2, %eax jge 0xa2804 movl $0x0, -0x4(%rbp) jmp 0xa29e9 movzbl -0x21(%rbp), %eax cmpl $0xe0, %eax jge 0xa2860 movq -0x20(%rbp), %rax movzbl 0x1(%rax), %eax xorl $0x80, %eax cmpl $0x40, %eax jl 0xa282d movl $0x0, -0x4(%rbp) jmp 0xa29e9 movzbl -0x21(%rbp), %eax andl $0x1f, %eax movslq %eax, %rcx shlq $0x6, %rcx movq -0x20(%rbp), %rax movzbl 0x1(%rax), %eax xorl $0x80, %eax cltq orq %rax, %rcx movq -0x18(%rbp), %rax movq %rcx, (%rax) movl $0x2, -0x4(%rbp) jmp 0xa29e9 movzbl -0x21(%rbp), %eax cmpl $0xf0, %eax jge 0xa2902 movq -0x20(%rbp), %rax movzbl 0x1(%rax), %eax xorl $0x80, %eax cmpl $0x40, %eax jge 0xa28ad movq -0x20(%rbp), %rax movzbl 0x2(%rax), %eax xorl $0x80, %eax cmpl $0x40, %eax jge 0xa28ad movzbl -0x21(%rbp), %eax cmpl $0xe1, %eax jge 0xa28b9 movq -0x20(%rbp), %rax movzbl 0x1(%rax), %eax cmpl $0xa0, %eax jge 0xa28b9 movl $0x0, -0x4(%rbp) jmp 0xa29e9 movzbl -0x21(%rbp), %eax andl $0xf, %eax movslq %eax, %rcx shlq $0xc, %rcx movq -0x20(%rbp), %rax movzbl 0x1(%rax), %eax xorl $0x80, %eax cltq shlq $0x6, %rax orq %rax, %rcx movq -0x20(%rbp), %rax movzbl 0x2(%rax), %eax xorl $0x80, %eax cltq orq %rax, %rcx movq -0x18(%rbp), %rax movq %rcx, (%rax) movl $0x3, -0x4(%rbp) jmp 0xa29e9 movzbl -0x21(%rbp), %eax cmpl $0xf5, %eax jge 0xa29e0 movq -0x20(%rbp), %rax movzbl 0x1(%rax), %eax xorl $0x80, %eax cmpl $0x40, %eax jge 0xa297b movq -0x20(%rbp), %rax movzbl 0x2(%rax), %eax xorl $0x80, %eax cmpl $0x40, %eax jge 0xa297b movq -0x20(%rbp), %rax movzbl 0x3(%rax), %eax xorl $0x80, %eax cmpl $0x40, %eax jge 0xa297b movzbl -0x21(%rbp), %eax cmpl $0xf1, %eax jge 0xa2961 movq -0x20(%rbp), %rax movzbl 0x1(%rax), %eax cmpl $0x90, %eax jl 0xa297b movzbl -0x21(%rbp), %eax cmpl $0xf3, %eax jle 0xa2984 movq -0x20(%rbp), %rax movzbl 0x1(%rax), %eax cmpl $0x8f, %eax jle 0xa2984 movl $0x0, -0x4(%rbp) jmp 0xa29e9 movzbl -0x21(%rbp), %eax andl $0x7, %eax movslq %eax, %rcx shlq $0x12, %rcx movq -0x20(%rbp), %rax movzbl 0x1(%rax), %eax xorl $0x80, %eax cltq shlq $0xc, %rax orq %rax, %rcx movq -0x20(%rbp), %rax movzbl 0x2(%rax), %eax xorl $0x80, %eax cltq shlq $0x6, %rax orq %rax, %rcx movq -0x20(%rbp), %rax movzbl 0x3(%rax), %eax xorl $0x80, %eax cltq orq %rax, %rcx movq -0x18(%rbp), %rax movq %rcx, (%rax) movl $0x4, -0x4(%rbp) jmp 0xa29e9 jmp 0xa29e2 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nop
my_mb_wc_utf8mb4_no_range: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rax, [rbp+var_20] mov al, [rax] mov [rbp+var_21], al movzx eax, [rbp+var_21] cmp eax, 80h jge short loc_A27ED movzx eax, [rbp+var_21] mov ecx, eax mov rax, [rbp+var_18] mov [rax], rcx mov [rbp+var_4], 1 jmp loc_A29E9 loc_A27ED: movzx eax, [rbp+var_21] cmp eax, 0C2h jge short loc_A2804 mov [rbp+var_4], 0 jmp loc_A29E9 loc_A2804: movzx eax, [rbp+var_21] cmp eax, 0E0h jge short loc_A2860 mov rax, [rbp+var_20] movzx eax, byte ptr [rax+1] xor eax, 80h cmp eax, 40h ; '@' jl short loc_A282D mov [rbp+var_4], 0 jmp loc_A29E9 loc_A282D: movzx eax, [rbp+var_21] and eax, 1Fh movsxd rcx, eax shl rcx, 6 mov rax, [rbp+var_20] movzx eax, byte ptr [rax+1] xor eax, 80h cdqe or rcx, rax mov rax, [rbp+var_18] mov [rax], rcx mov [rbp+var_4], 2 jmp loc_A29E9 loc_A2860: movzx eax, [rbp+var_21] cmp eax, 0F0h jge loc_A2902 mov rax, [rbp+var_20] movzx eax, byte ptr [rax+1] xor eax, 80h cmp eax, 40h ; '@' jge short loc_A28AD mov rax, [rbp+var_20] movzx eax, byte ptr [rax+2] xor eax, 80h cmp eax, 40h ; '@' jge short loc_A28AD movzx eax, [rbp+var_21] cmp eax, 0E1h jge short loc_A28B9 mov rax, [rbp+var_20] movzx eax, byte ptr [rax+1] cmp eax, 0A0h jge short loc_A28B9 loc_A28AD: mov [rbp+var_4], 0 jmp loc_A29E9 loc_A28B9: movzx eax, [rbp+var_21] and eax, 0Fh movsxd rcx, eax shl rcx, 0Ch mov rax, [rbp+var_20] movzx eax, byte ptr [rax+1] xor eax, 80h cdqe shl rax, 6 or rcx, rax mov rax, [rbp+var_20] movzx eax, byte ptr [rax+2] xor eax, 80h cdqe or rcx, rax mov rax, [rbp+var_18] mov [rax], rcx mov [rbp+var_4], 3 jmp loc_A29E9 loc_A2902: movzx eax, [rbp+var_21] cmp eax, 0F5h jge loc_A29E0 mov rax, [rbp+var_20] movzx eax, byte ptr [rax+1] xor eax, 80h cmp eax, 40h ; '@' jge short loc_A297B mov rax, [rbp+var_20] movzx eax, byte ptr [rax+2] xor eax, 80h cmp eax, 40h ; '@' jge short loc_A297B mov rax, [rbp+var_20] movzx eax, byte ptr [rax+3] xor eax, 80h cmp eax, 40h ; '@' jge short loc_A297B movzx eax, [rbp+var_21] cmp eax, 0F1h jge short loc_A2961 mov rax, [rbp+var_20] movzx eax, byte ptr [rax+1] cmp eax, 90h jl short loc_A297B loc_A2961: movzx eax, [rbp+var_21] cmp eax, 0F3h jle short loc_A2984 mov rax, [rbp+var_20] movzx eax, byte ptr [rax+1] cmp eax, 8Fh jle short loc_A2984 loc_A297B: mov [rbp+var_4], 0 jmp short loc_A29E9 loc_A2984: movzx eax, [rbp+var_21] and eax, 7 movsxd rcx, eax shl rcx, 12h mov rax, [rbp+var_20] movzx eax, byte ptr [rax+1] xor eax, 80h cdqe shl rax, 0Ch or rcx, rax mov rax, [rbp+var_20] movzx eax, byte ptr [rax+2] xor eax, 80h cdqe shl rax, 6 or rcx, rax mov rax, [rbp+var_20] movzx eax, byte ptr [rax+3] xor eax, 80h cdqe or rcx, rax mov rax, [rbp+var_18] mov [rax], rcx mov [rbp+var_4], 4 jmp short loc_A29E9 loc_A29E0: jmp short $+2 loc_A29E2: mov [rbp+var_4], 0 loc_A29E9: mov eax, [rbp+var_4] pop rbp retn
long long my_mb_wc_utf8mb4_no_range(long long a1, unsigned long long *a2, unsigned __int8 *a3) { unsigned __int8 v4; // [rsp+1h] [rbp-21h] v4 = *a3; if ( *a3 >= 0x80u ) { if ( v4 >= 0xC2u ) { if ( v4 >= 0xE0u ) { if ( v4 >= 0xF0u ) { if ( v4 >= 0xF5u ) { return 0; } else if ( (a3[1] ^ 0x80) < 64 && (a3[2] ^ 0x80) < 64 && (a3[3] ^ 0x80) < 64 && (v4 >= 0xF1u || a3[1] >= 0x90u) && (v4 <= 0xF3u || a3[1] <= 0x8Fu) ) { *a2 = a3[3] ^ 0x80u | ((long long)(a3[2] ^ 0x80u) << 6) | ((long long)(a3[1] ^ 0x80u) << 12) | ((unsigned long long)(v4 & 7) << 18); return 4; } else { return 0; } } else if ( (a3[1] ^ 0x80) < 64 && (a3[2] ^ 0x80) < 64 && (v4 >= 0xE1u || a3[1] >= 0xA0u) ) { *a2 = a3[2] ^ 0x80u | ((long long)(a3[1] ^ 0x80u) << 6) | ((unsigned long long)(v4 & 0xF) << 12); return 3; } else { return 0; } } else if ( (a3[1] ^ 0x80) < 64 ) { *a2 = a3[1] ^ 0x80u | ((unsigned long long)(v4 & 0x1F) << 6); return 2; } else { return 0; } } else { return 0; } } else { *a2 = v4; return 1; } }
my_mb_wc_utf8mb4_no_range: 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 + -0x20] MOV AL,byte ptr [RAX] MOV byte ptr [RBP + -0x21],AL MOVZX EAX,byte ptr [RBP + -0x21] CMP EAX,0x80 JGE 0x001a27ed MOVZX EAX,byte ptr [RBP + -0x21] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x1 JMP 0x001a29e9 LAB_001a27ed: MOVZX EAX,byte ptr [RBP + -0x21] CMP EAX,0xc2 JGE 0x001a2804 MOV dword ptr [RBP + -0x4],0x0 JMP 0x001a29e9 LAB_001a2804: MOVZX EAX,byte ptr [RBP + -0x21] CMP EAX,0xe0 JGE 0x001a2860 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x1] XOR EAX,0x80 CMP EAX,0x40 JL 0x001a282d MOV dword ptr [RBP + -0x4],0x0 JMP 0x001a29e9 LAB_001a282d: MOVZX EAX,byte ptr [RBP + -0x21] AND EAX,0x1f MOVSXD RCX,EAX SHL RCX,0x6 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x1] XOR EAX,0x80 CDQE OR RCX,RAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x2 JMP 0x001a29e9 LAB_001a2860: MOVZX EAX,byte ptr [RBP + -0x21] CMP EAX,0xf0 JGE 0x001a2902 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x1] XOR EAX,0x80 CMP EAX,0x40 JGE 0x001a28ad MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x2] XOR EAX,0x80 CMP EAX,0x40 JGE 0x001a28ad MOVZX EAX,byte ptr [RBP + -0x21] CMP EAX,0xe1 JGE 0x001a28b9 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x1] CMP EAX,0xa0 JGE 0x001a28b9 LAB_001a28ad: MOV dword ptr [RBP + -0x4],0x0 JMP 0x001a29e9 LAB_001a28b9: MOVZX EAX,byte ptr [RBP + -0x21] AND EAX,0xf MOVSXD RCX,EAX SHL RCX,0xc MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x1] XOR EAX,0x80 CDQE SHL RAX,0x6 OR RCX,RAX MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x2] XOR EAX,0x80 CDQE OR RCX,RAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x3 JMP 0x001a29e9 LAB_001a2902: MOVZX EAX,byte ptr [RBP + -0x21] CMP EAX,0xf5 JGE 0x001a29e0 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x1] XOR EAX,0x80 CMP EAX,0x40 JGE 0x001a297b MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x2] XOR EAX,0x80 CMP EAX,0x40 JGE 0x001a297b MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x3] XOR EAX,0x80 CMP EAX,0x40 JGE 0x001a297b MOVZX EAX,byte ptr [RBP + -0x21] CMP EAX,0xf1 JGE 0x001a2961 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x1] CMP EAX,0x90 JL 0x001a297b LAB_001a2961: MOVZX EAX,byte ptr [RBP + -0x21] CMP EAX,0xf3 JLE 0x001a2984 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x1] CMP EAX,0x8f JLE 0x001a2984 LAB_001a297b: MOV dword ptr [RBP + -0x4],0x0 JMP 0x001a29e9 LAB_001a2984: MOVZX EAX,byte ptr [RBP + -0x21] AND EAX,0x7 MOVSXD RCX,EAX SHL RCX,0x12 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x1] XOR EAX,0x80 CDQE SHL RAX,0xc OR RCX,RAX MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x2] XOR EAX,0x80 CDQE SHL RAX,0x6 OR RCX,RAX MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x3] XOR EAX,0x80 CDQE OR RCX,RAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x4 JMP 0x001a29e9 LAB_001a29e0: JMP 0x001a29e2 LAB_001a29e2: MOV dword ptr [RBP + -0x4],0x0 LAB_001a29e9: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int4 my_mb_wc_utf8mb4_no_range(int8 param_1,ulong *param_2,byte *param_3) { byte bVar1; int4 local_c; bVar1 = *param_3; if (bVar1 < 0x80) { *param_2 = (ulong)bVar1; local_c = 1; } else if (bVar1 < 0xc2) { local_c = 0; } else if (bVar1 < 0xe0) { if ((param_3[1] ^ 0x80) < 0x40) { *param_2 = (long)(int)(bVar1 & 0x1f) << 6 | (long)(int)(param_3[1] ^ 0x80); local_c = 2; } else { local_c = 0; } } else if (bVar1 < 0xf0) { if ((((param_3[1] ^ 0x80) < 0x40) && ((param_3[2] ^ 0x80) < 0x40)) && ((0xe0 < bVar1 || (0x9f < param_3[1])))) { *param_2 = (long)(int)(bVar1 & 0xf) << 0xc | (long)(int)(param_3[1] ^ 0x80) << 6 | (long)(int)(param_3[2] ^ 0x80); local_c = 3; } else { local_c = 0; } } else if (bVar1 < 0xf5) { if ((((((param_3[1] ^ 0x80) < 0x40) && ((param_3[2] ^ 0x80) < 0x40)) && ((param_3[3] ^ 0x80) < 0x40)) && ((0xf0 < bVar1 || (0x8f < param_3[1])))) && ((bVar1 < 0xf4 || (param_3[1] < 0x90)))) { *param_2 = (long)(int)(bVar1 & 7) << 0x12 | (long)(int)(param_3[1] ^ 0x80) << 0xc | (long)(int)(param_3[2] ^ 0x80) << 6 | (long)(int)(param_3[3] ^ 0x80); local_c = 4; } else { local_c = 0; } } else { local_c = 0; } return local_c; }
49,379
LefDefParser::lefiMaxStackVia::print(_IO_FILE*) const
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiMisc.cpp
void lefiMaxStackVia::print(FILE *f) const { fprintf(f, "MAXVIASTACK %d", maxStackVia()); if (hasMaxStackViaRange()) fprintf(f, " RANGE %s %s", maxStackViaBottomLayer(), maxStackViaTopLayer()); fprintf(f, "\n"); }
O0
cpp
LefDefParser::lefiMaxStackVia::print(_IO_FILE*) const: subq $0x38, %rsp movq %rdi, 0x30(%rsp) movq %rsi, 0x28(%rsp) movq 0x30(%rsp), %rdi movq %rdi, 0x20(%rsp) movq 0x28(%rsp), %rax movq %rax, 0x18(%rsp) callq 0x14e30 movq 0x18(%rsp), %rdi movl %eax, %edx leaq 0x61700(%rip), %rsi # 0x765b5 movb $0x0, %al callq 0x2350 movq 0x20(%rsp), %rdi callq 0x14e40 cmpl $0x0, %eax je 0x14f09 movq 0x20(%rsp), %rdi movq 0x28(%rsp), %rax movq %rax, 0x8(%rsp) callq 0x14e60 movq 0x20(%rsp), %rdi movq %rax, 0x10(%rsp) callq 0x14e70 movq 0x8(%rsp), %rdi movq 0x10(%rsp), %rdx movq %rax, %rcx leaq 0x616c2(%rip), %rsi # 0x765c4 movb $0x0, %al callq 0x2350 movq 0x28(%rsp), %rdi leaq 0x667b4(%rip), %rsi # 0x7b6c9 movb $0x0, %al callq 0x2350 addq $0x38, %rsp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
_ZNK12LefDefParser15lefiMaxStackVia5printEP8_IO_FILE: sub rsp, 38h mov [rsp+38h+var_8], rdi mov [rsp+38h+var_10], rsi mov rdi, [rsp+38h+var_8]; this mov [rsp+38h+var_18], rdi mov rax, [rsp+38h+var_10] mov [rsp+38h+var_20], rax call _ZNK12LefDefParser15lefiMaxStackVia11maxStackViaEv; LefDefParser::lefiMaxStackVia::maxStackVia(void) mov rdi, [rsp+38h+var_20] mov edx, eax lea rsi, aMaxviastackD; "MAXVIASTACK %d" mov al, 0 call _fprintf mov rdi, [rsp+38h+var_18]; this call _ZNK12LefDefParser15lefiMaxStackVia19hasMaxStackViaRangeEv; LefDefParser::lefiMaxStackVia::hasMaxStackViaRange(void) cmp eax, 0 jz short loc_14F09 mov rdi, [rsp+38h+var_18]; this mov rax, [rsp+38h+var_10] mov [rsp+38h+var_30], rax call _ZNK12LefDefParser15lefiMaxStackVia22maxStackViaBottomLayerEv; LefDefParser::lefiMaxStackVia::maxStackViaBottomLayer(void) mov rdi, [rsp+38h+var_18]; this mov [rsp+38h+var_28], rax call _ZNK12LefDefParser15lefiMaxStackVia19maxStackViaTopLayerEv; LefDefParser::lefiMaxStackVia::maxStackViaTopLayer(void) mov rdi, [rsp+38h+var_30] mov rdx, [rsp+38h+var_28] mov rcx, rax lea rsi, aRangeSS; " RANGE %s %s" mov al, 0 call _fprintf loc_14F09: mov rdi, [rsp+38h+var_10] lea rsi, aInfoFromFileS+14h; "\n" mov al, 0 call _fprintf add rsp, 38h retn
long long LefDefParser::lefiMaxStackVia::print(LefDefParser::lefiMaxStackVia *a1, long long a2) { int v2; // eax const char *v3; // rax const char *v5; // [rsp+10h] [rbp-28h] v2 = LefDefParser::lefiMaxStackVia::maxStackVia(a1); fprintf(a2, "MAXVIASTACK %d", v2); if ( LefDefParser::lefiMaxStackVia::hasMaxStackViaRange(a1) ) { v5 = (const char *)LefDefParser::lefiMaxStackVia::maxStackViaBottomLayer(a1); v3 = (const char *)LefDefParser::lefiMaxStackVia::maxStackViaTopLayer(a1); fprintf(a2, " RANGE %s %s", v5, v3); } return fprintf(a2, "\n"); }
print: SUB RSP,0x38 MOV qword ptr [RSP + 0x30],RDI MOV qword ptr [RSP + 0x28],RSI MOV RDI,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x20],RDI MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x18],RAX CALL 0x00114e30 MOV RDI,qword ptr [RSP + 0x18] MOV EDX,EAX LEA RSI,[0x1765b5] MOV AL,0x0 CALL 0x00102350 MOV RDI,qword ptr [RSP + 0x20] CALL 0x00114e40 CMP EAX,0x0 JZ 0x00114f09 MOV RDI,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x8],RAX CALL 0x00114e60 MOV RDI,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x10],RAX CALL 0x00114e70 MOV RDI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] MOV RCX,RAX LEA RSI,[0x1765c4] MOV AL,0x0 CALL 0x00102350 LAB_00114f09: MOV RDI,qword ptr [RSP + 0x28] LEA RSI,[0x17b6c9] MOV AL,0x0 CALL 0x00102350 ADD RSP,0x38 RET
/* LefDefParser::lefiMaxStackVia::print(_IO_FILE*) const */ void __thiscall LefDefParser::lefiMaxStackVia::print(lefiMaxStackVia *this,_IO_FILE *param_1) { uint uVar1; int iVar2; int8 uVar3; int8 uVar4; uVar1 = maxStackVia(this); fprintf(param_1,"MAXVIASTACK %d",(ulong)uVar1); iVar2 = hasMaxStackViaRange(this); if (iVar2 != 0) { uVar3 = maxStackViaBottomLayer(this); uVar4 = maxStackViaTopLayer(this); fprintf(param_1," RANGE %s %s",uVar3,uVar4); } fprintf(param_1,"\n"); return; }
49,380
ma_randominit
eloqsql/libmariadb/libmariadb/ma_password.c
void ma_randominit(struct rand_struct *rand_st,ulong seed1, ulong seed2) { /* For mysql 3.21.# */ #ifdef HAVE_purify memset((char*) rand_st, 0m sizeof(*rand_st)); /* Avoid UMC warnings */ #endif rand_st->max_value= 0x3FFFFFFFL; rand_st->max_value_dbl=(double) rand_st->max_value; rand_st->seed1=seed1%rand_st->max_value ; rand_st->seed2=seed2%rand_st->max_value; }
O0
c
ma_randominit: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rax movq $0x3fffffff, 0x10(%rax) # imm = 0x3FFFFFFF movq -0x8(%rbp), %rax movq 0x10(%rax), %xmm0 movaps 0x6674(%rip), %xmm1 # 0x4b730 punpckldq %xmm1, %xmm0 # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1] movapd 0x6678(%rip), %xmm1 # 0x4b740 subpd %xmm1, %xmm0 movaps %xmm0, %xmm1 unpckhpd %xmm0, %xmm0 # xmm0 = xmm0[1,1] addsd %xmm1, %xmm0 movq -0x8(%rbp), %rax movsd %xmm0, 0x18(%rax) movq -0x10(%rbp), %rax movq -0x8(%rbp), %rcx xorl %edx, %edx divq 0x10(%rcx) movq -0x8(%rbp), %rax movq %rdx, (%rax) movq -0x18(%rbp), %rax movq -0x8(%rbp), %rcx xorl %edx, %edx divq 0x10(%rcx) movq -0x8(%rbp), %rax movq %rdx, 0x8(%rax) popq %rbp retq nopl (%rax)
ma_randominit: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov rax, [rbp+var_8] mov qword ptr [rax+10h], 3FFFFFFFh mov rax, [rbp+var_8] movq xmm0, qword ptr [rax+10h] movaps xmm1, cs:xmmword_4B730 punpckldq xmm0, xmm1 movapd xmm1, cs:xmmword_4B740 subpd xmm0, xmm1 movaps xmm1, xmm0 unpckhpd xmm0, xmm0 addsd xmm0, xmm1 mov rax, [rbp+var_8] movsd qword ptr [rax+18h], xmm0 mov rax, [rbp+var_10] mov rcx, [rbp+var_8] xor edx, edx div qword ptr [rcx+10h] mov rax, [rbp+var_8] mov [rax], rdx mov rax, [rbp+var_18] mov rcx, [rbp+var_8] xor edx, edx div qword ptr [rcx+10h] mov rax, [rbp+var_8] mov [rax+8], rdx pop rbp retn
long long ma_randominit(long long a1, unsigned long long a2, unsigned long long a3) { __m128d v3; // xmm1 long long result; // rax *(_QWORD *)(a1 + 16) = 0x3FFFFFFFLL; v3 = _mm_sub_pd( (__m128d)_mm_unpacklo_epi32(_mm_loadl_epi64((const __m128i *)(a1 + 16)), (__m128i)xmmword_4B730), (__m128d)xmmword_4B740); *(double *)(a1 + 24) = _mm_unpackhi_pd(v3, v3).m128d_f64[0] + v3.m128d_f64[0]; *(_QWORD *)a1 = a2 % *(_QWORD *)(a1 + 16); result = a1; *(_QWORD *)(a1 + 8) = a3 % *(_QWORD *)(a1 + 16); return result; }
ma_randominit: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x10],0x3fffffff MOV RAX,qword ptr [RBP + -0x8] MOVQ XMM0,qword ptr [RAX + 0x10] MOVAPS XMM1,xmmword ptr [0x0014b730] PUNPCKLDQ XMM0,XMM1 MOVAPD XMM1,xmmword ptr [0x0014b740] SUBPD XMM0,XMM1 MOVAPS XMM1,XMM0 UNPCKHPD XMM0,XMM0 ADDSD XMM0,XMM1 MOV RAX,qword ptr [RBP + -0x8] MOVSD qword ptr [RAX + 0x18],XMM0 MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x8] XOR EDX,EDX DIV qword ptr [RCX + 0x10] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX],RDX MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x8] XOR EDX,EDX DIV qword ptr [RCX + 0x10] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x8],RDX POP RBP RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ void ma_randominit(ulong *param_1,ulong param_2,ulong param_3) { ulong uVar1; int1 auVar2 [16]; param_1[2] = 0x3fffffff; uVar1 = param_1[2]; auVar2._8_4_ = (int)(uVar1 >> 0x20); auVar2._0_8_ = uVar1; auVar2._12_4_ = _UNK_0014b734; param_1[3] = (ulong)((auVar2._8_8_ - _UNK_0014b748) + ((double)CONCAT44(_DAT_0014b730,(int)uVar1) - _DAT_0014b740)); *param_1 = param_2 % param_1[2]; param_1[1] = param_3 % param_1[2]; return; }
49,381
ps_fetch_string
eloqsql/libmariadb/libmariadb/ma_stmt_codec.c
static void ps_fetch_string(MYSQL_BIND *r_param, const MYSQL_FIELD *field __attribute__((unused)), unsigned char **row) { /* C-API differs from PHP. While PHP just converts string to string, C-API needs to convert the string to the defined type with in the result bind buffer. */ ulong field_length= net_field_length(row); convert_froma_string(r_param, (char *)*row, field_length); (*row) += field_length; }
O3
c
ps_fetch_string: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdx, %rbx movq %rdi, %r14 movq %rdx, %rdi callq 0x72f15 movq %rax, %r15 movq (%rbx), %rsi movq %r14, %rdi movq %rax, %rdx callq 0x81e25 addq %r15, (%rbx) addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
ps_fetch_string: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov rbx, rdx mov r14, rdi mov rdi, rdx call net_field_length mov r15, rax mov rsi, [rbx] mov rdi, r14 mov rdx, rax call convert_froma_string add [rbx], r15 add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long ps_fetch_string(long long a1, long long a2, unsigned __int8 **a3) { unsigned long long v4; // r15 long long result; // rax v4 = net_field_length(a3); result = convert_froma_string(a1, *a3, v4); *a3 += v4; return result; }
ps_fetch_string: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDX MOV R14,RDI MOV RDI,RDX CALL 0x00172f15 MOV R15,RAX MOV RSI,qword ptr [RBX] MOV RDI,R14 MOV RDX,RAX CALL 0x00181e25 ADD qword ptr [RBX],R15 ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
void ps_fetch_string(int8 param_1,int8 param_2,long *param_3) { long lVar1; lVar1 = net_field_length(param_3); convert_froma_string(param_1,*param_3,lVar1); *param_3 = *param_3 + lVar1; return; }
49,382
my_strnxfrm_simple_internal
eloqsql/strings/ctype-simple.c
size_t my_strnxfrm_simple_internal(CHARSET_INFO * cs, uchar *dst, size_t dstlen, uint *nweights, const uchar *src, size_t srclen) { const uchar *map= cs->sort_order; uchar *d0= dst; uint frmlen; if ((frmlen= (uint)MY_MIN(dstlen, *nweights)) > srclen) frmlen= (uint)srclen; if (dst != src) { const uchar *end; for (end= src + frmlen; src < end;) *dst++= map[*src++]; } else { const uchar *end; for (end= dst + frmlen; dst < end; dst++) *dst= map[(uchar) *dst]; } *nweights-= frmlen; return dst - d0; }
O0
c
my_strnxfrm_simple_internal: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq %r9, -0x30(%rbp) movq -0x8(%rbp), %rax movq 0x58(%rax), %rax movq %rax, -0x38(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x18(%rbp), %rax movq -0x20(%rbp), %rcx movl (%rcx), %ecx cmpq %rcx, %rax jae 0x78589 movq -0x18(%rbp), %rax movq %rax, -0x60(%rbp) jmp 0x78593 movq -0x20(%rbp), %rax movl (%rax), %eax movq %rax, -0x60(%rbp) movq -0x60(%rbp), %rax movl %eax, -0x44(%rbp) movl %eax, %eax cmpq -0x30(%rbp), %rax jbe 0x785a9 movq -0x30(%rbp), %rax movl %eax, -0x44(%rbp) movq -0x10(%rbp), %rax cmpq -0x28(%rbp), %rax je 0x785f9 movq -0x28(%rbp), %rax movl -0x44(%rbp), %ecx addq %rcx, %rax movq %rax, -0x50(%rbp) movq -0x28(%rbp), %rax cmpq -0x50(%rbp), %rax jae 0x785f7 movq -0x38(%rbp), %rax movq -0x28(%rbp), %rcx movq %rcx, %rdx addq $0x1, %rdx movq %rdx, -0x28(%rbp) movzbl (%rcx), %ecx movb (%rax,%rcx), %cl movq -0x10(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x10(%rbp) movb %cl, (%rax) jmp 0x785c1 jmp 0x78635 movq -0x10(%rbp), %rax movl -0x44(%rbp), %ecx addq %rcx, %rax movq %rax, -0x58(%rbp) movq -0x10(%rbp), %rax cmpq -0x58(%rbp), %rax jae 0x78633 movq -0x38(%rbp), %rax movq -0x10(%rbp), %rcx movzbl (%rcx), %ecx movb (%rax,%rcx), %cl movq -0x10(%rbp), %rax movb %cl, (%rax) movq -0x10(%rbp), %rax addq $0x1, %rax movq %rax, -0x10(%rbp) jmp 0x78607 jmp 0x78635 movl -0x44(%rbp), %edx movq -0x20(%rbp), %rax movl (%rax), %ecx subl %edx, %ecx movl %ecx, (%rax) movq -0x10(%rbp), %rax movq -0x40(%rbp), %rcx subq %rcx, %rax popq %rbp retq nop
my_strnxfrm_simple_internal: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov [rbp+var_30], r9 mov rax, [rbp+var_8] mov rax, [rax+58h] mov [rbp+var_38], rax mov rax, [rbp+var_10] mov [rbp+var_40], rax mov rax, [rbp+var_18] mov rcx, [rbp+var_20] mov ecx, [rcx] cmp rax, rcx jnb short loc_78589 mov rax, [rbp+var_18] mov [rbp+var_60], rax jmp short loc_78593 loc_78589: mov rax, [rbp+var_20] mov eax, [rax] mov [rbp+var_60], rax loc_78593: mov rax, [rbp+var_60] mov [rbp+var_44], eax mov eax, eax cmp rax, [rbp+var_30] jbe short loc_785A9 mov rax, [rbp+var_30] mov [rbp+var_44], eax loc_785A9: mov rax, [rbp+var_10] cmp rax, [rbp+var_28] jz short loc_785F9 mov rax, [rbp+var_28] mov ecx, [rbp+var_44] add rax, rcx mov [rbp+var_50], rax loc_785C1: mov rax, [rbp+var_28] cmp rax, [rbp+var_50] jnb short loc_785F7 mov rax, [rbp+var_38] mov rcx, [rbp+var_28] mov rdx, rcx add rdx, 1 mov [rbp+var_28], rdx movzx ecx, byte ptr [rcx] mov cl, [rax+rcx] mov rax, [rbp+var_10] mov rdx, rax add rdx, 1 mov [rbp+var_10], rdx mov [rax], cl jmp short loc_785C1 loc_785F7: jmp short loc_78635 loc_785F9: mov rax, [rbp+var_10] mov ecx, [rbp+var_44] add rax, rcx mov [rbp+var_58], rax loc_78607: mov rax, [rbp+var_10] cmp rax, [rbp+var_58] jnb short loc_78633 mov rax, [rbp+var_38] mov rcx, [rbp+var_10] movzx ecx, byte ptr [rcx] mov cl, [rax+rcx] mov rax, [rbp+var_10] mov [rax], cl mov rax, [rbp+var_10] add rax, 1 mov [rbp+var_10], rax jmp short loc_78607 loc_78633: jmp short $+2 loc_78635: mov edx, [rbp+var_44] mov rax, [rbp+var_20] mov ecx, [rax] sub ecx, edx mov [rax], ecx mov rax, [rbp+var_10] mov rcx, [rbp+var_40] sub rax, rcx pop rbp retn
_BYTE * my_strnxfrm_simple_internal( long long a1, unsigned __int8 *a2, unsigned long long a3, unsigned int *a4, unsigned __int8 *a5, unsigned long long a6) { unsigned __int8 *v6; // rcx unsigned __int8 *v7; // rax unsigned int v9; // [rsp+0h] [rbp-60h] int v10; // [rsp+1Ch] [rbp-44h] long long v11; // [rsp+28h] [rbp-38h] unsigned __int8 *v12; // [rsp+38h] [rbp-28h] unsigned __int8 *v14; // [rsp+50h] [rbp-10h] v14 = a2; v12 = a5; v11 = *(_QWORD *)(a1 + 88); if ( a3 >= *a4 ) v9 = *a4; else v9 = a3; v10 = v9; if ( v9 > a6 ) v10 = a6; if ( a2 == a5 ) { while ( v14 < &a2[v10] ) { *v14 = *(_BYTE *)(v11 + *v14); ++v14; } } else { while ( v12 < &a5[v10] ) { v6 = v12++; v7 = v14++; *v7 = *(_BYTE *)(v11 + *v6); } } *a4 -= v10; return (_BYTE *)(v14 - a2); }
my_strnxfrm_simple_internal: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV qword ptr [RBP + -0x30],R9 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x58] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x20] MOV ECX,dword ptr [RCX] CMP RAX,RCX JNC 0x00178589 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x60],RAX JMP 0x00178593 LAB_00178589: MOV RAX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX] MOV qword ptr [RBP + -0x60],RAX LAB_00178593: MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RBP + -0x44],EAX MOV EAX,EAX CMP RAX,qword ptr [RBP + -0x30] JBE 0x001785a9 MOV RAX,qword ptr [RBP + -0x30] MOV dword ptr [RBP + -0x44],EAX LAB_001785a9: MOV RAX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RBP + -0x28] JZ 0x001785f9 MOV RAX,qword ptr [RBP + -0x28] MOV ECX,dword ptr [RBP + -0x44] ADD RAX,RCX MOV qword ptr [RBP + -0x50],RAX LAB_001785c1: MOV RAX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RBP + -0x50] JNC 0x001785f7 MOV RAX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RBP + -0x28] MOV RDX,RCX ADD RDX,0x1 MOV qword ptr [RBP + -0x28],RDX MOVZX ECX,byte ptr [RCX] MOV CL,byte ptr [RAX + RCX*0x1] MOV RAX,qword ptr [RBP + -0x10] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x10],RDX MOV byte ptr [RAX],CL JMP 0x001785c1 LAB_001785f7: JMP 0x00178635 LAB_001785f9: MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RBP + -0x44] ADD RAX,RCX MOV qword ptr [RBP + -0x58],RAX LAB_00178607: MOV RAX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RBP + -0x58] JNC 0x00178633 MOV RAX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RBP + -0x10] MOVZX ECX,byte ptr [RCX] MOV CL,byte ptr [RAX + RCX*0x1] MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],CL MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x1 MOV qword ptr [RBP + -0x10],RAX JMP 0x00178607 LAB_00178633: JMP 0x00178635 LAB_00178635: MOV EDX,dword ptr [RBP + -0x44] MOV RAX,qword ptr [RBP + -0x20] MOV ECX,dword ptr [RAX] SUB ECX,EDX MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x40] SUB RAX,RCX POP RBP RET
long my_strnxfrm_simple_internal (long param_1,byte *param_2,ulong param_3,uint *param_4,byte *param_5,ulong param_6) { long lVar1; ulong local_68; uint local_4c; byte *local_30; byte *local_18; lVar1 = *(long *)(param_1 + 0x58); local_68 = param_3; if (*param_4 <= param_3) { local_68 = (ulong)*param_4; } local_4c = (uint)local_68; if (param_6 < (local_68 & 0xffffffff)) { local_4c = (uint)param_6; } if (param_2 == param_5) { for (local_18 = param_2; local_18 < param_2 + local_4c; local_18 = local_18 + 1) { *local_18 = *(byte *)(lVar1 + (ulong)*local_18); } } else { local_30 = param_5; local_18 = param_2; while (local_30 < param_5 + local_4c) { *local_18 = *(byte *)(lVar1 + (ulong)*local_30); local_30 = local_30 + 1; local_18 = local_18 + 1; } } *param_4 = *param_4 - local_4c; return (long)local_18 - (long)param_2; }
49,383
common_sampler_type_to_chr(common_sampler_type)
monkey531[P]llama/common/sampling.cpp
char common_sampler_type_to_chr(enum common_sampler_type cnstr) { switch (cnstr) { case COMMON_SAMPLER_TYPE_DRY: return 'd'; case COMMON_SAMPLER_TYPE_TOP_K: return 'k'; case COMMON_SAMPLER_TYPE_TYPICAL_P: return 'y'; case COMMON_SAMPLER_TYPE_TOP_P: return 'p'; case COMMON_SAMPLER_TYPE_MIN_P: return 'm'; case COMMON_SAMPLER_TYPE_TEMPERATURE: return 't'; case COMMON_SAMPLER_TYPE_XTC: return 'x'; case COMMON_SAMPLER_TYPE_INFILL: return 'i'; case COMMON_SAMPLER_TYPE_PENALTIES: return 'e'; default : return '?'; } }
O3
cpp
common_sampler_type_to_chr(common_sampler_type): decl %edi movb $0x3f, %al cmpl $0x9, %edi ja 0xce530 movl %edi, %eax leaq 0x26d63(%rip), %rcx # 0xf5290 movb (%rax,%rcx), %al retq
_Z26common_sampler_type_to_chr19common_sampler_type: dec edi mov al, 3Fh ; '?' cmp edi, 9 ja short locret_CE530 mov eax, edi lea rcx, aDkpmYtxie; "dkpm?ytxie" mov al, [rax+rcx] locret_CE530: retn
char common_sampler_type_to_chr(int a1) { unsigned int v1; // edi char result; // al v1 = a1 - 1; result = 63; if ( v1 <= 9 ) return aDkpmYtxie[v1]; return result; }
common_sampler_type_to_chr: DEC EDI MOV AL,0x3f CMP EDI,0x9 JA 0x001ce530 MOV EAX,EDI LEA RCX,[0x1f5290] MOV AL,byte ptr [RAX + RCX*0x1] LAB_001ce530: RET
/* common_sampler_type_to_chr(common_sampler_type) */ char common_sampler_type_to_chr(int param_1) { char cVar1; cVar1 = '?'; if (param_1 - 1U < 10) { cVar1 = "dkpm?ytxie"[param_1 - 1U]; } return cVar1; }
49,384
strmake_root
eloqsql/mysys/my_alloc.c
char *strmake_root(MEM_ROOT *root, const char *str, size_t len) { char *pos; if ((pos=alloc_root(root,len+1))) { if (len) memcpy(pos,str,len); pos[len]=0; } return pos; }
O3
c
strmake_root: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdx, %rbx movq %rsi, %r14 leaq 0x1(%rdx), %rsi callq 0x2db73 movq %rax, %r15 testq %rax, %rax je 0x2df6e testq %rbx, %rbx je 0x2df69 movq %r15, %rdi movq %r14, %rsi movq %rbx, %rdx callq 0x24300 movb $0x0, (%r15,%rbx) movq %r15, %rax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
strmake_root: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov rbx, rdx mov r14, rsi lea rsi, [rdx+1] call alloc_root mov r15, rax test rax, rax jz short loc_2DF6E test rbx, rbx jz short loc_2DF69 mov rdi, r15 mov rsi, r14 mov rdx, rbx call _memcpy loc_2DF69: mov byte ptr [r15+rbx], 0 loc_2DF6E: mov rax, r15 add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
char * strmake_root(long long a1, long long a2, long long a3) { char *v4; // rax char *v5; // r15 v4 = alloc_root(a1, a3 + 1); v5 = v4; if ( v4 ) { if ( a3 ) memcpy(v4, a2, a3); v5[a3] = 0; } return v5; }
strmake_root: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDX MOV R14,RSI LEA RSI,[RDX + 0x1] CALL 0x0012db73 MOV R15,RAX TEST RAX,RAX JZ 0x0012df6e TEST RBX,RBX JZ 0x0012df69 MOV RDI,R15 MOV RSI,R14 MOV RDX,RBX CALL 0x00124300 LAB_0012df69: MOV byte ptr [R15 + RBX*0x1],0x0 LAB_0012df6e: MOV RAX,R15 ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
void * strmake_root(int8 param_1,void *param_2,size_t param_3) { void *__dest; __dest = (void *)alloc_root(param_1,param_3 + 1); if (__dest != (void *)0x0) { if (param_3 != 0) { memcpy(__dest,param_2,param_3); } *(int1 *)((long)__dest + param_3) = 0; } return __dest; }
49,385
ma_store_length
eloqsql/storage/maria/ma_blockrec.c
uchar *ma_store_length(uchar *to, ulong nr) { if (nr < 251) { *to=(uchar) nr; return to+1; } if (nr < 65536) { if (nr <= 255) { to[0]= (uchar) 251; to[1]= (uchar) nr; return to+2; } to[0]= (uchar) 252; int2store(to+1, nr); return to+3; } if (nr < 16777216) { *to++= (uchar) 253; int3store(to, nr); return to+3; } *to++= (uchar) 254; int4store(to, nr); return to+4; }
O0
c
ma_store_length: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) cmpq $0xfb, -0x18(%rbp) jae 0x7a773 movq -0x18(%rbp), %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, (%rax) movq -0x10(%rbp), %rax addq $0x1, %rax movq %rax, -0x8(%rbp) jmp 0x7a867 cmpq $0x10000, -0x18(%rbp) # imm = 0x10000 jae 0x7a7de cmpq $0xff, -0x18(%rbp) ja 0x7a7ac movq -0x10(%rbp), %rax movb $-0x5, (%rax) movq -0x18(%rbp), %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x1(%rax) movq -0x10(%rbp), %rax addq $0x2, %rax movq %rax, -0x8(%rbp) jmp 0x7a867 movq -0x10(%rbp), %rax movb $-0x4, (%rax) movq -0x10(%rbp), %rax addq $0x1, %rax movq %rax, -0x20(%rbp) movq -0x18(%rbp), %rax movw %ax, %cx movq -0x20(%rbp), %rax movw %cx, (%rax) movq -0x10(%rbp), %rax addq $0x3, %rax movq %rax, -0x8(%rbp) jmp 0x7a867 cmpq $0x1000000, -0x18(%rbp) # imm = 0x1000000 jae 0x7a835 movq -0x10(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x10(%rbp) movb $-0x3, (%rax) movq -0x18(%rbp), %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, (%rax) movq -0x18(%rbp), %rax shrl $0x8, %eax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x1(%rax) movq -0x18(%rbp), %rax shrq $0x10, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x2(%rax) movq -0x10(%rbp), %rax addq $0x3, %rax movq %rax, -0x8(%rbp) jmp 0x7a867 movq -0x10(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x10(%rbp) movb $-0x2, (%rax) movq -0x10(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x18(%rbp), %rax movl %eax, %ecx movq -0x28(%rbp), %rax movl %ecx, (%rax) movq -0x10(%rbp), %rax addq $0x4, %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax popq %rbp retq nopl (%rax)
ma_store_length: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi cmp [rbp+var_18], 0FBh jnb short loc_7A773 mov rax, [rbp+var_18] mov cl, al mov rax, [rbp+var_10] mov [rax], cl mov rax, [rbp+var_10] add rax, 1 mov [rbp+var_8], rax jmp loc_7A867 loc_7A773: cmp [rbp+var_18], 10000h jnb short loc_7A7DE cmp [rbp+var_18], 0FFh ja short loc_7A7AC mov rax, [rbp+var_10] mov byte ptr [rax], 0FBh mov rax, [rbp+var_18] mov cl, al mov rax, [rbp+var_10] mov [rax+1], cl mov rax, [rbp+var_10] add rax, 2 mov [rbp+var_8], rax jmp loc_7A867 loc_7A7AC: mov rax, [rbp+var_10] mov byte ptr [rax], 0FCh mov rax, [rbp+var_10] add rax, 1 mov [rbp+var_20], rax mov rax, [rbp+var_18] mov cx, ax mov rax, [rbp+var_20] mov [rax], cx mov rax, [rbp+var_10] add rax, 3 mov [rbp+var_8], rax jmp loc_7A867 loc_7A7DE: cmp [rbp+var_18], 1000000h jnb short loc_7A835 mov rax, [rbp+var_10] mov rcx, rax add rcx, 1 mov [rbp+var_10], rcx mov byte ptr [rax], 0FDh mov rax, [rbp+var_18] mov cl, al mov rax, [rbp+var_10] mov [rax], cl mov rax, [rbp+var_18] shr eax, 8 mov cl, al mov rax, [rbp+var_10] mov [rax+1], cl mov rax, [rbp+var_18] shr rax, 10h mov cl, al mov rax, [rbp+var_10] mov [rax+2], cl mov rax, [rbp+var_10] add rax, 3 mov [rbp+var_8], rax jmp short loc_7A867 loc_7A835: mov rax, [rbp+var_10] mov rcx, rax add rcx, 1 mov [rbp+var_10], rcx mov byte ptr [rax], 0FEh mov rax, [rbp+var_10] mov [rbp+var_28], rax mov rax, [rbp+var_18] mov ecx, eax mov rax, [rbp+var_28] mov [rax], ecx mov rax, [rbp+var_10] add rax, 4 mov [rbp+var_8], rax loc_7A867: mov rax, [rbp+var_8] pop rbp retn
long long ma_store_length(long long a1, unsigned long long a2) { if ( a2 >= 0xFB ) { if ( a2 >= 0x10000 ) { if ( a2 >= 0x1000000 ) { *(_BYTE *)a1 = -2; *(_DWORD *)(a1 + 1) = a2; return a1 + 5; } else { *(_BYTE *)a1 = -3; *(_WORD *)(a1 + 1) = a2; *(_BYTE *)(a1 + 3) = BYTE2(a2); return a1 + 4; } } else if ( a2 > 0xFF ) { *(_BYTE *)a1 = -4; *(_WORD *)(a1 + 1) = a2; return a1 + 3; } else { *(_BYTE *)a1 = -5; *(_BYTE *)(a1 + 1) = a2; return a1 + 2; } } else { *(_BYTE *)a1 = a2; return a1 + 1; } }
ma_store_length: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI CMP qword ptr [RBP + -0x18],0xfb JNC 0x0017a773 MOV RAX,qword ptr [RBP + -0x18] MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],CL MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x1 MOV qword ptr [RBP + -0x8],RAX JMP 0x0017a867 LAB_0017a773: CMP qword ptr [RBP + -0x18],0x10000 JNC 0x0017a7de CMP qword ptr [RBP + -0x18],0xff JA 0x0017a7ac MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],0xfb MOV RAX,qword ptr [RBP + -0x18] MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x1],CL MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x2 MOV qword ptr [RBP + -0x8],RAX JMP 0x0017a867 LAB_0017a7ac: MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],0xfc MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x1 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x18] MOV CX,AX MOV RAX,qword ptr [RBP + -0x20] MOV word ptr [RAX],CX MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x3 MOV qword ptr [RBP + -0x8],RAX JMP 0x0017a867 LAB_0017a7de: CMP qword ptr [RBP + -0x18],0x1000000 JNC 0x0017a835 MOV RAX,qword ptr [RBP + -0x10] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x10],RCX MOV byte ptr [RAX],0xfd MOV RAX,qword ptr [RBP + -0x18] MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],CL MOV RAX,qword ptr [RBP + -0x18] SHR EAX,0x8 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x1],CL MOV RAX,qword ptr [RBP + -0x18] SHR RAX,0x10 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x2],CL MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x3 MOV qword ptr [RBP + -0x8],RAX JMP 0x0017a867 LAB_0017a835: MOV RAX,qword ptr [RBP + -0x10] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x10],RCX MOV byte ptr [RAX],0xfe MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x18] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x28] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x4 MOV qword ptr [RBP + -0x8],RAX LAB_0017a867: MOV RAX,qword ptr [RBP + -0x8] POP RBP RET
int1 * ma_store_length(int1 *param_1,ulong param_2) { int1 uVar1; int1 *local_10; uVar1 = (int1)param_2; if (param_2 < 0xfb) { *param_1 = uVar1; local_10 = param_1 + 1; } else if (param_2 < 0x10000) { if (param_2 < 0x100) { *param_1 = 0xfb; param_1[1] = uVar1; local_10 = param_1 + 2; } else { *param_1 = 0xfc; *(short *)(param_1 + 1) = (short)param_2; local_10 = param_1 + 3; } } else if (param_2 < 0x1000000) { *param_1 = 0xfd; param_1[1] = uVar1; param_1[2] = (char)(param_2 >> 8); param_1[3] = (char)(param_2 >> 0x10); local_10 = param_1 + 4; } else { *param_1 = 0xfe; *(int *)(param_1 + 1) = (int)param_2; local_10 = param_1 + 5; } return local_10; }
49,386
minja::MacroTemplateToken::MacroTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::shared_ptr<minja::VariableExpr>&&, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>>>&&)
monkey531[P]llama/common/minja.hpp
TemplateToken(Type type, const Location & location, SpaceHandling pre, SpaceHandling post) : type(type), location(location), pre_space(pre), post_space(post) {}
O3
cpp
minja::MacroTemplateToken::MacroTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::shared_ptr<minja::VariableExpr>&&, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>>>&&): leaq 0x91db9(%rip), %rax # 0x12a2f8 addq $0x10, %rax movq %rax, (%rdi) movl $0xd, 0x8(%rdi) movq (%rsi), %rax movq %rax, 0x10(%rdi) movq 0x8(%rsi), %rax movq %rax, 0x18(%rdi) testq %rax, %rax je 0x98577 movq 0x93a20(%rip), %r10 # 0x12bf88 cmpb $0x0, (%r10) je 0x98573 incl 0x8(%rax) jmp 0x98577 lock incl 0x8(%rax) movq 0x10(%rsi), %rax movq %rax, 0x20(%rdi) movl %edx, 0x28(%rdi) movl %ecx, 0x2c(%rdi) leaq 0x9285c(%rip), %rax # 0x12ade8 addq $0x10, %rax movq %rax, (%rdi) xorl %eax, %eax movq %rax, 0x38(%rdi) movups (%r8), %xmm0 movq %rax, 0x8(%r8) movups %xmm0, 0x30(%rdi) movq %rax, (%r8) movups (%r9), %xmm0 movups %xmm0, 0x40(%rdi) movq 0x10(%r9), %rcx movq %rcx, 0x50(%rdi) movq %rax, 0x10(%r9) xorps %xmm0, %xmm0 movups %xmm0, (%r9) retq
_ZN5minja18MacroTemplateTokenC2ERKNS_8LocationENS_13SpaceHandlingES4_OSt10shared_ptrINS_12VariableExprEEOSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_INS_10ExpressionEEESaISJ_EE: lea rax, _ZTVN5minja13TemplateTokenE; `vtable for'minja::TemplateToken add rax, 10h mov [rdi], rax mov dword ptr [rdi+8], 0Dh mov rax, [rsi] mov [rdi+10h], rax mov rax, [rsi+8] mov [rdi+18h], rax test rax, rax jz short loc_98577 mov r10, cs:__libc_single_threaded_ptr cmp byte ptr [r10], 0 jz short loc_98573 inc dword ptr [rax+8] jmp short loc_98577 loc_98573: lock inc dword ptr [rax+8] loc_98577: mov rax, [rsi+10h] mov [rdi+20h], rax mov [rdi+28h], edx mov [rdi+2Ch], ecx lea rax, _ZTVN5minja18MacroTemplateTokenE; `vtable for'minja::MacroTemplateToken add rax, 10h mov [rdi], rax xor eax, eax mov [rdi+38h], rax movups xmm0, xmmword ptr [r8] mov [r8+8], rax movups xmmword ptr [rdi+30h], xmm0 mov [r8], rax movups xmm0, xmmword ptr [r9] movups xmmword ptr [rdi+40h], xmm0 mov rcx, [r9+10h] mov [rdi+50h], rcx mov [r9+10h], rax xorps xmm0, xmm0 movups xmmword ptr [r9], xmm0 retn
long long minja::MacroTemplateToken::MacroTemplateToken( long long a1, _QWORD *a2, int a3, int a4, __int128 *a5, long long a6) { long long v6; // rax long long result; // rax __int128 v8; // xmm0 *(_QWORD *)a1 = &`vtable for'minja::TemplateToken + 2; *(_DWORD *)(a1 + 8) = 13; *(_QWORD *)(a1 + 16) = *a2; v6 = a2[1]; *(_QWORD *)(a1 + 24) = v6; if ( v6 ) { if ( _libc_single_threaded ) ++*(_DWORD *)(v6 + 8); else _InterlockedIncrement((volatile signed __int32 *)(v6 + 8)); } *(_QWORD *)(a1 + 32) = a2[2]; *(_DWORD *)(a1 + 40) = a3; *(_DWORD *)(a1 + 44) = a4; *(_QWORD *)a1 = &`vtable for'minja::MacroTemplateToken + 2; result = 0LL; *(_QWORD *)(a1 + 56) = 0LL; v8 = *a5; *((_QWORD *)a5 + 1) = 0LL; *(_OWORD *)(a1 + 48) = v8; *(_QWORD *)a5 = 0LL; *(_OWORD *)(a1 + 64) = *(_OWORD *)a6; *(_QWORD *)(a1 + 80) = *(_QWORD *)(a6 + 16); *(_QWORD *)(a6 + 16) = 0LL; *(_OWORD *)a6 = 0LL; return result; }
MacroTemplateToken: LEA RAX,[0x22a2f8] ADD RAX,0x10 MOV qword ptr [RDI],RAX MOV dword ptr [RDI + 0x8],0xd MOV RAX,qword ptr [RSI] MOV qword ptr [RDI + 0x10],RAX MOV RAX,qword ptr [RSI + 0x8] MOV qword ptr [RDI + 0x18],RAX TEST RAX,RAX JZ 0x00198577 MOV R10,qword ptr [0x0022bf88] CMP byte ptr [R10],0x0 JZ 0x00198573 INC dword ptr [RAX + 0x8] JMP 0x00198577 LAB_00198573: INC.LOCK dword ptr [RAX + 0x8] LAB_00198577: MOV RAX,qword ptr [RSI + 0x10] MOV qword ptr [RDI + 0x20],RAX MOV dword ptr [RDI + 0x28],EDX MOV dword ptr [RDI + 0x2c],ECX LEA RAX,[0x22ade8] ADD RAX,0x10 MOV qword ptr [RDI],RAX XOR EAX,EAX MOV qword ptr [RDI + 0x38],RAX MOVUPS XMM0,xmmword ptr [R8] MOV qword ptr [R8 + 0x8],RAX MOVUPS xmmword ptr [RDI + 0x30],XMM0 MOV qword ptr [R8],RAX MOVUPS XMM0,xmmword ptr [R9] MOVUPS xmmword ptr [RDI + 0x40],XMM0 MOV RCX,qword ptr [R9 + 0x10] MOV qword ptr [RDI + 0x50],RCX MOV qword ptr [R9 + 0x10],RAX XORPS XMM0,XMM0 MOVUPS xmmword ptr [R9],XMM0 RET
/* minja::MacroTemplateToken::MacroTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::shared_ptr<minja::VariableExpr>&&, std::vector<std::pair<std::__cxx11::string, std::shared_ptr<minja::Expression> >, std::allocator<std::pair<std::__cxx11::string, std::shared_ptr<minja::Expression> > > >&&) */ void __thiscall minja::MacroTemplateToken::MacroTemplateToken (MacroTemplateToken *this,int8 *param_1,int4 param_3,int4 param_4, int8 *param_5,int8 *param_6) { long lVar1; int8 uVar2; *(int ***)this = &PTR__TemplateToken_0022a308; *(int4 *)(this + 8) = 0xd; *(int8 *)(this + 0x10) = *param_1; lVar1 = param_1[1]; *(long *)(this + 0x18) = lVar1; if (lVar1 != 0) { if (*PTR___libc_single_threaded_0022bf88 == '\0') { LOCK(); *(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1; UNLOCK(); } else { *(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1; } } *(int8 *)(this + 0x20) = param_1[2]; *(int4 *)(this + 0x28) = param_3; *(int4 *)(this + 0x2c) = param_4; *(int ***)this = &PTR__MacroTemplateToken_0022adf8; *(int8 *)(this + 0x38) = 0; uVar2 = param_5[1]; param_5[1] = 0; *(int8 *)(this + 0x30) = *param_5; *(int8 *)(this + 0x38) = uVar2; *param_5 = 0; uVar2 = param_6[1]; *(int8 *)(this + 0x40) = *param_6; *(int8 *)(this + 0x48) = uVar2; *(int8 *)(this + 0x50) = param_6[2]; param_6[2] = 0; *param_6 = 0; param_6[1] = 0; return; }
49,387
list_cons
eloqsql/mysys/list.c
LIST *list_cons(void *data, LIST *list) { LIST *new_charset=(LIST*) my_malloc(key_memory_LIST, sizeof(LIST),MYF(MY_FAE)); if (!new_charset) return 0; new_charset->data=data; return list_add(list,new_charset); }
O3
c
list_cons: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rsi, %rbx movq %rdi, %r14 leaq 0xb74739(%rip), %rax # 0xc0a1fc movl (%rax), %edi movl $0x18, %esi movl $0x8, %edx callq 0xa11e5 testq %rax, %rax je 0x95b08 movq %r14, 0x10(%rax) testq %rbx, %rbx je 0x95af3 movq (%rbx), %rcx testq %rcx, %rcx je 0x95afc movq %rax, 0x8(%rcx) movq (%rbx), %rcx jmp 0x95afe movq $0x0, (%rax) jmp 0x95b04 xorl %ecx, %ecx movq %rcx, (%rax) movq %rax, (%rbx) movq %rbx, 0x8(%rax) popq %rbx popq %r14 popq %rbp retq
list_cons: push rbp mov rbp, rsp push r14 push rbx mov rbx, rsi mov r14, rdi lea rax, key_memory_LIST mov edi, [rax] mov esi, 18h mov edx, 8 call my_malloc test rax, rax jz short loc_95B08 mov [rax+10h], r14 test rbx, rbx jz short loc_95AF3 mov rcx, [rbx] test rcx, rcx jz short loc_95AFC mov [rcx+8], rax mov rcx, [rbx] jmp short loc_95AFE loc_95AF3: mov qword ptr [rax], 0 jmp short loc_95B04 loc_95AFC: xor ecx, ecx loc_95AFE: mov [rax], rcx mov [rbx], rax loc_95B04: mov [rax+8], rbx loc_95B08: pop rbx pop r14 pop rbp retn
_QWORD * list_cons(long long a1, long long *a2) { _QWORD *result; // rax long long v3; // rcx result = (_QWORD *)my_malloc(key_memory_LIST, 24LL, 8LL); if ( result ) { result[2] = a1; if ( a2 ) { if ( *a2 ) { *(_QWORD *)(*a2 + 8) = result; v3 = *a2; } else { v3 = 0LL; } *result = v3; *a2 = (long long)result; } else { *result = 0LL; } result[1] = a2; } return result; }
list_cons: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV RBX,RSI MOV R14,RDI LEA RAX,[0xd0a1fc] MOV EDI,dword ptr [RAX] MOV ESI,0x18 MOV EDX,0x8 CALL 0x001a11e5 TEST RAX,RAX JZ 0x00195b08 MOV qword ptr [RAX + 0x10],R14 TEST RBX,RBX JZ 0x00195af3 MOV RCX,qword ptr [RBX] TEST RCX,RCX JZ 0x00195afc MOV qword ptr [RCX + 0x8],RAX MOV RCX,qword ptr [RBX] JMP 0x00195afe LAB_00195af3: MOV qword ptr [RAX],0x0 JMP 0x00195b04 LAB_00195afc: XOR ECX,ECX LAB_00195afe: MOV qword ptr [RAX],RCX MOV qword ptr [RBX],RAX LAB_00195b04: MOV qword ptr [RAX + 0x8],RBX LAB_00195b08: POP RBX POP R14 POP RBP RET
void list_cons(long param_1,long *param_2) { long *plVar1; long lVar2; plVar1 = (long *)my_malloc(key_memory_LIST,0x18,8); if (plVar1 != (long *)0x0) { plVar1[2] = param_1; if (param_2 == (long *)0x0) { *plVar1 = 0; } else { if (*param_2 == 0) { lVar2 = 0; } else { *(long **)(*param_2 + 8) = plVar1; lVar2 = *param_2; } *plVar1 = lVar2; *param_2 = (long)plVar1; } plVar1[1] = (long)param_2; } return; }
49,388
fmt::v10::detail::thousands_sep_result<char> fmt::v10::detail::thousands_sep_impl<char>(fmt::v10::detail::locale_ref)
aimrt_mujoco_sim/_deps/fmt-src/include/fmt/format-inl.h
FMT_FUNC auto thousands_sep_impl(locale_ref loc) -> thousands_sep_result<Char> { auto& facet = std::use_facet<std::numpunct<Char>>(loc.get<std::locale>()); auto grouping = facet.grouping(); auto thousands_sep = grouping.empty() ? Char() : facet.thousands_sep(); return {std::move(grouping), thousands_sep}; }
O0
c
fmt::v10::detail::thousands_sep_result<char> fmt::v10::detail::thousands_sep_impl<char>(fmt::v10::detail::locale_ref): subq $0x88, %rsp movq %rdi, 0x10(%rsp) movq %rdi, %rax movq %rax, 0x18(%rsp) movq %rdi, 0x80(%rsp) movq %rsi, 0x78(%rsp) leaq 0x68(%rsp), %rdi movq %rdi, 0x20(%rsp) leaq 0x78(%rsp), %rsi callq 0xa2d30 movq 0x20(%rsp), %rdi callq 0x92000 movq %rax, 0x28(%rsp) jmp 0xad856 leaq 0x68(%rsp), %rdi callq 0x94970 movq 0x28(%rsp), %rax movq %rax, 0x70(%rsp) movq 0x70(%rsp), %rsi leaq 0x38(%rsp), %rdi callq 0x92840 leaq 0x38(%rsp), %rdi callq 0x8cff0 testb $0x1, %al jne 0xad889 jmp 0xad891 xorl %eax, %eax movb %al, 0xf(%rsp) jmp 0xad8ab movq 0x70(%rsp), %rdi callq 0x93d60 movb %al, 0xe(%rsp) jmp 0xad8a1 movb 0xe(%rsp), %al movb %al, 0xf(%rsp) jmp 0xad8ab movq 0x10(%rsp), %rdi movb 0xf(%rsp), %al movb %al, 0x37(%rsp) leaq 0x38(%rsp), %rsi callq 0x8e8b0 movq 0x10(%rsp), %rax movb 0x37(%rsp), %cl movb %cl, 0x20(%rax) leaq 0x38(%rsp), %rdi callq 0x96fb8 movq 0x18(%rsp), %rax addq $0x88, %rsp retq movq %rax, %rcx movl %edx, %eax movq %rcx, 0x60(%rsp) movl %eax, 0x5c(%rsp) leaq 0x68(%rsp), %rdi callq 0x94970 jmp 0xad917 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x60(%rsp) movl %eax, 0x5c(%rsp) leaq 0x38(%rsp), %rdi callq 0x96fb8 movq 0x60(%rsp), %rdi callq 0x90db0 nopw %cs:(%rax,%rax) nopl (%rax,%rax)
_ZN3fmt3v106detail18thousands_sep_implIcEENS1_20thousands_sep_resultIT_EENS1_10locale_refE: sub rsp, 88h mov [rsp+88h+var_78], rdi mov rax, rdi mov [rsp+88h+var_70], rax mov [rsp+88h+var_8], rdi mov [rsp+88h+var_10], rsi lea rdi, [rsp+88h+var_20] mov [rsp+88h+var_68], rdi lea rsi, [rsp+88h+var_10] call _ZNK3fmt3v106detail10locale_ref3getISt6localeEET_v; fmt::v10::detail::locale_ref::get<std::locale>(void) mov rdi, [rsp+88h+var_68] call __ZSt9use_facetINSt7__cxx118numpunctIcEEERKT_RKSt6locale; std::use_facet<std::numpunct<char>>(std::locale const&) mov [rsp+88h+var_60], rax jmp short $+2 loc_AD856: lea rdi, [rsp+88h+var_20]; this call __ZNSt6localeD1Ev; std::locale::~locale() mov rax, [rsp+88h+var_60] mov [rsp+88h+var_18], rax mov rsi, [rsp+88h+var_18] lea rdi, [rsp+88h+var_50] call __ZNKSt7__cxx118numpunctIcE8groupingEv; std::numpunct<char>::grouping(void) lea rdi, [rsp+88h+var_50] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void) test al, 1 jnz short loc_AD889 jmp short loc_AD891 loc_AD889: xor eax, eax mov [rsp+88h+var_79], al jmp short loc_AD8AB loc_AD891: mov rdi, [rsp+88h+var_18] call __ZNKSt7__cxx118numpunctIcE13thousands_sepEv; std::numpunct<char>::thousands_sep(void) mov [rsp+88h+var_7A], al jmp short $+2 loc_AD8A1: mov al, [rsp+88h+var_7A] mov [rsp+88h+var_79], al jmp short $+2 loc_AD8AB: mov rdi, [rsp+88h+var_78] mov al, [rsp+88h+var_79] mov [rsp+88h+var_51], al lea rsi, [rsp+88h+var_50] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EOS4_; std::string::basic_string(std::string&&) mov rax, [rsp+88h+var_78] mov cl, [rsp+88h+var_51] mov [rax+20h], cl lea rdi, [rsp+88h+var_50]; void * call j__ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rax, [rsp+88h+var_70] add rsp, 88h retn mov rcx, rax mov eax, edx mov [rsp+arg_58], rcx mov [rsp+arg_54], eax lea rdi, [rsp+arg_60]; this call __ZNSt6localeD1Ev; std::locale::~locale() jmp short loc_AD917 mov rcx, rax mov eax, edx mov [rsp+arg_58], rcx mov [rsp+arg_54], eax lea rdi, [rsp+arg_30]; void * call j__ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_AD917: mov rdi, [rsp+arg_58] call __Unwind_Resume
const std::locale * fmt::v10::detail::thousands_sep_impl<char>(const std::locale *a1, const std::locale *a2) { char v3; // [rsp+Fh] [rbp-79h] long long v4; // [rsp+28h] [rbp-60h] _BYTE v5[48]; // [rsp+38h] [rbp-50h] BYREF _BYTE v6[8]; // [rsp+68h] [rbp-20h] BYREF long long v7; // [rsp+70h] [rbp-18h] const std::locale *v8[2]; // [rsp+78h] [rbp-10h] BYREF v8[1] = a1; v8[0] = a2; fmt::v10::detail::locale_ref::get<std::locale>((std::locale *)v6, v8); v4 = std::use_facet<std::numpunct<char>>(v6); std::locale::~locale((std::locale *)v6); v7 = v4; std::numpunct<char>::grouping(v5, v4); if ( (std::string::empty(v5) & 1) != 0 ) v3 = 0; else v3 = std::numpunct<char>::thousands_sep(v7); std::string::basic_string(a1, v5); *((_BYTE *)a1 + 32) = v3; std::string::~string(v5); return a1; }
thousands_sep_impl<char>: SUB RSP,0x88 MOV qword ptr [RSP + 0x10],RDI MOV RAX,RDI MOV qword ptr [RSP + 0x18],RAX MOV qword ptr [RSP + 0x80],RDI MOV qword ptr [RSP + 0x78],RSI LEA RDI,[RSP + 0x68] MOV qword ptr [RSP + 0x20],RDI LEA RSI,[RSP + 0x78] CALL 0x001a2d30 MOV RDI,qword ptr [RSP + 0x20] LAB_001ad84a: CALL 0x00192000 LAB_001ad84f: MOV qword ptr [RSP + 0x28],RAX JMP 0x001ad856 LAB_001ad856: LEA RDI,[RSP + 0x68] CALL 0x00194970 MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x70],RAX MOV RSI,qword ptr [RSP + 0x70] LEA RDI,[RSP + 0x38] CALL 0x00192840 LEA RDI,[RSP + 0x38] CALL 0x0018cff0 TEST AL,0x1 JNZ 0x001ad889 JMP 0x001ad891 LAB_001ad889: XOR EAX,EAX MOV byte ptr [RSP + 0xf],AL JMP 0x001ad8ab LAB_001ad891: MOV RDI,qword ptr [RSP + 0x70] LAB_001ad896: CALL 0x00193d60 LAB_001ad89b: MOV byte ptr [RSP + 0xe],AL JMP 0x001ad8a1 LAB_001ad8a1: MOV AL,byte ptr [RSP + 0xe] MOV byte ptr [RSP + 0xf],AL JMP 0x001ad8ab LAB_001ad8ab: MOV RDI,qword ptr [RSP + 0x10] MOV AL,byte ptr [RSP + 0xf] MOV byte ptr [RSP + 0x37],AL LEA RSI,[RSP + 0x38] CALL 0x0018e8b0 MOV RAX,qword ptr [RSP + 0x10] MOV CL,byte ptr [RSP + 0x37] MOV byte ptr [RAX + 0x20],CL LEA RDI,[RSP + 0x38] CALL 0x00196fb8 MOV RAX,qword ptr [RSP + 0x18] ADD RSP,0x88 RET
/* fmt::v10::detail::thousands_sep_result<char> fmt::v10::detail::thousands_sep_impl<char>(fmt::v10::detail::locale_ref) */ detail * __thiscall fmt::v10::detail::thousands_sep_impl<char>(detail *this,int8 param_2) { numpunct *pnVar1; ulong uVar2; detail local_79; string local_50 [48]; locale local_20 [8]; numpunct *local_18; int8 local_10; detail *local_8; local_10 = param_2; local_8 = this; locale_ref::get<std::locale>(); /* try { // try from 001ad84a to 001ad84e has its CatchHandler @ 001ad8e5 */ pnVar1 = std::use_facet<std::__cxx11::numpunct<char>>(local_20); std::locale::~locale(local_20); local_18 = pnVar1; std::__cxx11::numpunct<char>::grouping(); uVar2 = std::__cxx11::string::empty(local_50); if ((uVar2 & 1) == 0) { /* try { // try from 001ad896 to 001ad89a has its CatchHandler @ 001ad8ff */ local_79 = (detail)std::__cxx11::numpunct<char>::thousands_sep(); } else { local_79 = (detail)0x0; } std::__cxx11::string::string((string *)this,local_50); this[0x20] = local_79; std::__cxx11::string::~string(local_50); return this; }
49,389
my_wc_mb_tis620
eloqsql/strings/ctype-tis620.c
static int my_wc_mb_tis620(CHARSET_INFO *cs __attribute__((unused)), my_wc_t wc, uchar *str, uchar *end __attribute__((unused))) { const uchar *pl; if (str >= end) return MY_CS_TOOSMALL; pl= uni_to_cs[(wc>>8) & 0xFF]; str[0]= pl ? pl[wc & 0xFF] : '\0'; return (!str[0] && wc) ? MY_CS_ILUNI : 1; }
O0
c
my_wc_mb_tis620: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x20(%rbp), %rax cmpq -0x28(%rbp), %rax jb 0x58597 movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B jmp 0x58612 movq -0x18(%rbp), %rcx shrq $0x8, %rcx andq $0xff, %rcx leaq 0x185bd3(%rip), %rax # 0x1de180 movq (%rax,%rcx,8), %rax movq %rax, -0x30(%rbp) cmpq $0x0, -0x30(%rbp) je 0x585d4 movq -0x30(%rbp), %rax movq -0x18(%rbp), %rcx andq $0xff, %rcx movzbl (%rax,%rcx), %eax movl %eax, -0x34(%rbp) jmp 0x585db xorl %eax, %eax movl %eax, -0x34(%rbp) jmp 0x585db movl -0x34(%rbp), %eax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, (%rax) movq -0x20(%rbp), %rcx xorl %eax, %eax cmpb $0x0, (%rcx) movb %al, -0x35(%rbp) jne 0x585ff cmpq $0x0, -0x18(%rbp) setne %al movb %al, -0x35(%rbp) movb -0x35(%rbp), %dl movl $0x1, %eax xorl %ecx, %ecx testb $0x1, %dl cmovnel %ecx, %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopw (%rax,%rax)
my_wc_mb_tis620: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov rax, [rbp+var_20] cmp rax, [rbp+var_28] jb short loc_58597 mov [rbp+var_4], 0FFFFFF9Bh jmp short loc_58612 loc_58597: mov rcx, [rbp+var_18] shr rcx, 8 and rcx, 0FFh lea rax, uni_to_cs_0 mov rax, [rax+rcx*8] mov [rbp+var_30], rax cmp [rbp+var_30], 0 jz short loc_585D4 mov rax, [rbp+var_30] mov rcx, [rbp+var_18] and rcx, 0FFh movzx eax, byte ptr [rax+rcx] mov [rbp+var_34], eax jmp short loc_585DB loc_585D4: xor eax, eax mov [rbp+var_34], eax jmp short $+2 loc_585DB: mov eax, [rbp+var_34] mov cl, al mov rax, [rbp+var_20] mov [rax], cl mov rcx, [rbp+var_20] xor eax, eax cmp byte ptr [rcx], 0 mov [rbp+var_35], al jnz short loc_585FF cmp [rbp+var_18], 0 setnz al mov [rbp+var_35], al loc_585FF: mov dl, [rbp+var_35] mov eax, 1 xor ecx, ecx test dl, 1 cmovnz eax, ecx mov [rbp+var_4], eax loc_58612: mov eax, [rbp+var_4] pop rbp retn
long long my_wc_mb_tis620(long long a1, long long a2, _BYTE *a3, unsigned long long a4) { bool v5; // [rsp+1h] [rbp-35h] char v6; // [rsp+2h] [rbp-34h] long long v7; // [rsp+6h] [rbp-30h] if ( (unsigned long long)a3 < a4 ) { v7 = (long long)*(&uni_to_cs_0 + BYTE1(a2)); if ( v7 ) v6 = *(_BYTE *)(v7 + (unsigned __int8)a2); else v6 = 0; *a3 = v6; v5 = 0; if ( !*a3 ) v5 = a2 != 0; return !v5; } else { return (unsigned int)-101; } }
my_wc_mb_tis620: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV RAX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [RBP + -0x28] JC 0x00158597 MOV dword ptr [RBP + -0x4],0xffffff9b JMP 0x00158612 LAB_00158597: MOV RCX,qword ptr [RBP + -0x18] SHR RCX,0x8 AND RCX,0xff LEA RAX,[0x2de180] MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RBP + -0x30],RAX CMP qword ptr [RBP + -0x30],0x0 JZ 0x001585d4 MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x18] AND RCX,0xff MOVZX EAX,byte ptr [RAX + RCX*0x1] MOV dword ptr [RBP + -0x34],EAX JMP 0x001585db LAB_001585d4: XOR EAX,EAX MOV dword ptr [RBP + -0x34],EAX JMP 0x001585db LAB_001585db: MOV EAX,dword ptr [RBP + -0x34] MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX],CL MOV RCX,qword ptr [RBP + -0x20] XOR EAX,EAX CMP byte ptr [RCX],0x0 MOV byte ptr [RBP + -0x35],AL JNZ 0x001585ff CMP qword ptr [RBP + -0x18],0x0 SETNZ AL MOV byte ptr [RBP + -0x35],AL LAB_001585ff: MOV DL,byte ptr [RBP + -0x35] MOV EAX,0x1 XOR ECX,ECX TEST DL,0x1 CMOVNZ EAX,ECX MOV dword ptr [RBP + -0x4],EAX LAB_00158612: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
uint my_wc_mb_tis620(int8 param_1,ulong param_2,char *param_3,char *param_4) { char cVar1; uint local_c; if (param_3 < param_4) { if (*(long *)(uni_to_cs + (param_2 >> 8 & 0xff) * 8) == 0) { cVar1 = '\0'; } else { cVar1 = *(char *)(*(long *)(uni_to_cs + (param_2 >> 8 & 0xff) * 8) + (param_2 & 0xff)); } *param_3 = cVar1; local_c = (uint)(*param_3 != '\0' || param_2 == 0); } else { local_c = 0xffffff9b; } return local_c; }
49,390
my_wc_mb_tis620
eloqsql/strings/ctype-tis620.c
static int my_wc_mb_tis620(CHARSET_INFO *cs __attribute__((unused)), my_wc_t wc, uchar *str, uchar *end __attribute__((unused))) { const uchar *pl; if (str >= end) return MY_CS_TOOSMALL; pl= uni_to_cs[(wc>>8) & 0xFF]; str[0]= pl ? pl[wc & 0xFF] : '\0'; return (!str[0] && wc) ? MY_CS_ILUNI : 1; }
O3
c
my_wc_mb_tis620: movl $0xffffff9b, %eax # imm = 0xFFFFFF9B cmpq %rcx, %rdx jae 0x41ab6 pushq %rbp movq %rsp, %rbp pushq %rbx movq %rsi, %rbx movzbl %bh, %eax leaq 0x2b2651(%rip), %rcx # 0x2f40e0 movq (%rcx,%rax,8), %rax testq %rax, %rax je 0x41aa0 movzbl %bl, %ecx movb (%rax,%rcx), %al jmp 0x41aa2 xorl %eax, %eax movb %al, (%rdx) testb %al, %al setne %al testq %rbx, %rbx sete %cl orb %al, %cl movzbl %cl, %eax popq %rbx popq %rbp retq
my_wc_mb_tis620: mov eax, 0FFFFFF9Bh cmp rdx, rcx jnb short locret_41AB6 push rbp mov rbp, rsp push rbx mov rbx, rsi movzx eax, bh lea rcx, uni_to_cs_0 mov rax, [rcx+rax*8] test rax, rax jz short loc_41AA0 movzx ecx, bl mov al, [rax+rcx] jmp short loc_41AA2 loc_41AA0: xor eax, eax loc_41AA2: mov [rdx], al test al, al setnz al test rbx, rbx setz cl or cl, al movzx eax, cl pop rbx pop rbp locret_41AB6: retn
long long my_wc_mb_tis620(long long a1, long long a2, _BYTE *a3, unsigned long long a4) { long long result; // rax long long v5; // rax char v6; // al result = 4294967195LL; if ( (unsigned long long)a3 < a4 ) { v5 = (long long)*(&uni_to_cs_0 + BYTE1(a2)); if ( v5 ) v6 = *(_BYTE *)(v5 + (unsigned __int8)a2); else v6 = 0; *a3 = v6; return (v6 != 0) | (unsigned __int8)(a2 == 0); } return result; }
my_wc_mb_tis620: MOV EAX,0xffffff9b CMP RDX,RCX JNC 0x00141ab6 PUSH RBP MOV RBP,RSP PUSH RBX MOV RBX,RSI MOVZX EAX,BH LEA RCX,[0x3f40e0] MOV RAX,qword ptr [RCX + RAX*0x8] TEST RAX,RAX JZ 0x00141aa0 MOVZX ECX,BL MOV AL,byte ptr [RAX + RCX*0x1] JMP 0x00141aa2 LAB_00141aa0: XOR EAX,EAX LAB_00141aa2: MOV byte ptr [RDX],AL TEST AL,AL SETNZ AL TEST RBX,RBX SETZ CL OR CL,AL MOVZX EAX,CL POP RBX POP RBP LAB_00141ab6: RET
ulong my_wc_mb_tis620(int8 param_1,ulong param_2,char *param_3,char *param_4) { char cVar1; ulong uVar2; uVar2 = 0xffffff9b; if (param_3 < param_4) { if (*(long *)(uni_to_cs + (param_2 >> 8 & 0xff) * 8) == 0) { cVar1 = '\0'; } else { cVar1 = *(char *)(*(long *)(uni_to_cs + (param_2 >> 8 & 0xff) * 8) + (param_2 & 0xff)); } *param_3 = cVar1; uVar2 = (ulong)(param_2 == 0 || cVar1 != '\0'); } return uVar2; }
49,391
mysql_close_options
eloqsql/libmariadb/libmariadb/mariadb_lib.c
static void mysql_close_options(MYSQL *mysql) { if (mysql->options.init_command) { char **begin= (char **)mysql->options.init_command->buffer; char **end= begin + mysql->options.init_command->elements; for (;begin < end; begin++) free(*begin); ma_delete_dynamic(mysql->options.init_command); free(mysql->options.init_command); } free(mysql->options.user); free(mysql->options.host); free(mysql->options.password); free(mysql->options.unix_socket); free(mysql->options.db); free(mysql->options.my_cnf_file); free(mysql->options.my_cnf_group); free(mysql->options.charset_dir); free(mysql->options.charset_name); free(mysql->options.bind_address); free(mysql->options.ssl_key); free(mysql->options.ssl_cert); free(mysql->options.ssl_ca); free(mysql->options.ssl_capath); free(mysql->options.ssl_cipher); if (mysql->options.extension) { struct mysql_async_context *ctxt; if ((ctxt = mysql->options.extension->async_context)) { my_context_destroy(&ctxt->async_context); free(ctxt); mysql->options.extension->async_context= 0; } free(mysql->options.extension->plugin_dir); free(mysql->options.extension->default_auth); free(mysql->options.extension->db_driver); free(mysql->options.extension->ssl_crl); free(mysql->options.extension->ssl_crlpath); free(mysql->options.extension->tls_fp); free(mysql->options.extension->tls_fp_list); free(mysql->options.extension->tls_pw); free(mysql->options.extension->tls_version); free(mysql->options.extension->url); free(mysql->options.extension->connection_handler); free(mysql->options.extension->proxy_header); if(ma_hashtbl_inited(&mysql->options.extension->connect_attrs)) ma_hashtbl_free(&mysql->options.extension->connect_attrs); if (ma_hashtbl_inited(&mysql->options.extension->userdata)) ma_hashtbl_free(&mysql->options.extension->userdata); free(mysql->options.extension->restricted_auth); free(mysql->options.extension->rpl_host); } free(mysql->options.extension); /* clear all pointer */ memset(&mysql->options, 0, sizeof(mysql->options)); }
O3
c
mysql_close_options: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx movq 0x3d8(%rdi), %rdi testq %rdi, %rdi je 0x2b301 movl 0x8(%rdi), %eax testq %rax, %rax je 0x2b2f0 movq (%rdi), %r14 leaq (%r14,%rax,8), %r15 movq (%r14), %rdi callq 0x14590 addq $0x8, %r14 cmpq %r15, %r14 jb 0x2b2d8 movq 0x3d8(%rbx), %rdi callq 0x41120 movq 0x3d8(%rbx), %rdi callq 0x14590 movq 0x3b8(%rbx), %rdi callq 0x14590 movq 0x3b0(%rbx), %rdi callq 0x14590 movq 0x3c0(%rbx), %rdi callq 0x14590 movq 0x3c8(%rbx), %rdi callq 0x14590 movq 0x3d0(%rbx), %rdi callq 0x14590 movq 0x3e0(%rbx), %rdi callq 0x14590 movq 0x3e8(%rbx), %rdi callq 0x14590 movq 0x3f0(%rbx), %rdi callq 0x14590 movq 0x3f8(%rbx), %rdi callq 0x14590 movq 0x448(%rbx), %rdi callq 0x14590 movq 0x400(%rbx), %rdi callq 0x14590 movq 0x408(%rbx), %rdi callq 0x14590 movq 0x410(%rbx), %rdi callq 0x14590 movq 0x418(%rbx), %rdi callq 0x14590 movq 0x420(%rbx), %rdi callq 0x14590 movq 0x480(%rbx), %rax testq %rax, %rax je 0x2b528 movq 0x28(%rax), %r14 testq %r14, %r14 je 0x2b3f5 leaq 0x38(%r14), %rdi callq 0x3f105 movq %r14, %rdi callq 0x14590 movq 0x480(%rbx), %rax movq $0x0, 0x28(%rax) movq 0x480(%rbx), %rax movq (%rax), %rdi callq 0x14590 movq 0x480(%rbx), %rax movq 0x8(%rax), %rdi callq 0x14590 movq 0x480(%rbx), %rax movq 0x88(%rax), %rdi callq 0x14590 movq 0x480(%rbx), %rax movq 0x10(%rax), %rdi callq 0x14590 movq 0x480(%rbx), %rax movq 0x18(%rax), %rdi callq 0x14590 movq 0x480(%rbx), %rax movq 0x90(%rax), %rdi callq 0x14590 movq 0x480(%rbx), %rax movq 0x98(%rax), %rdi callq 0x14590 movq 0x480(%rbx), %rax movq 0xa0(%rax), %rdi callq 0x14590 movq 0x480(%rbx), %rax movq 0xc0(%rax), %rdi callq 0x14590 movq 0x480(%rbx), %rax movq 0xb0(%rax), %rdi callq 0x14590 movq 0x480(%rbx), %rax movq 0xd0(%rax), %rdi callq 0x14590 movq 0x480(%rbx), %rax movq 0x130(%rax), %rdi callq 0x14590 movq 0x480(%rbx), %rdi cmpq $0x0, 0x48(%rdi) je 0x2b4e3 addq $0x30, %rdi callq 0x41d05 movq 0x480(%rbx), %rdi cmpq $0x0, 0xf8(%rdi) je 0x2b500 addq $0xe0, %rdi callq 0x41d05 movq 0x480(%rbx), %rdi movq 0x150(%rdi), %rdi callq 0x14590 movq 0x480(%rbx), %rax movq 0x158(%rax), %rdi callq 0x14590 movq 0x480(%rbx), %rdi jmp 0x2b52a xorl %edi, %edi addq $0x390, %rbx # imm = 0x390 callq 0x14590 movl $0xf8, %edx movq %rbx, %rdi xorl %esi, %esi addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp 0x14270
mysql_close_options: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov rbx, rdi mov rdi, [rdi+3D8h] test rdi, rdi jz short loc_2B301 mov eax, [rdi+8] test rax, rax jz short loc_2B2F0 mov r14, [rdi] lea r15, [r14+rax*8] loc_2B2D8: mov rdi, [r14] call _free add r14, 8 cmp r14, r15 jb short loc_2B2D8 mov rdi, [rbx+3D8h] loc_2B2F0: call ma_delete_dynamic mov rdi, [rbx+3D8h] call _free loc_2B301: mov rdi, [rbx+3B8h] call _free mov rdi, [rbx+3B0h] call _free mov rdi, [rbx+3C0h] call _free mov rdi, [rbx+3C8h] call _free mov rdi, [rbx+3D0h] call _free mov rdi, [rbx+3E0h] call _free mov rdi, [rbx+3E8h] call _free mov rdi, [rbx+3F0h] call _free mov rdi, [rbx+3F8h] call _free mov rdi, [rbx+448h] call _free mov rdi, [rbx+400h] call _free mov rdi, [rbx+408h] call _free mov rdi, [rbx+410h] call _free mov rdi, [rbx+418h] call _free mov rdi, [rbx+420h] call _free mov rax, [rbx+480h] test rax, rax jz loc_2B528 mov r14, [rax+28h] test r14, r14 jz short loc_2B3F5 lea rdi, [r14+38h] call my_context_destroy mov rdi, r14 call _free mov rax, [rbx+480h] mov qword ptr [rax+28h], 0 mov rax, [rbx+480h] loc_2B3F5: mov rdi, [rax] call _free mov rax, [rbx+480h] mov rdi, [rax+8] call _free mov rax, [rbx+480h] mov rdi, [rax+88h] call _free mov rax, [rbx+480h] mov rdi, [rax+10h] call _free mov rax, [rbx+480h] mov rdi, [rax+18h] call _free mov rax, [rbx+480h] mov rdi, [rax+90h] call _free mov rax, [rbx+480h] mov rdi, [rax+98h] call _free mov rax, [rbx+480h] mov rdi, [rax+0A0h] call _free mov rax, [rbx+480h] mov rdi, [rax+0C0h] call _free mov rax, [rbx+480h] mov rdi, [rax+0B0h] call _free mov rax, [rbx+480h] mov rdi, [rax+0D0h] call _free mov rax, [rbx+480h] mov rdi, [rax+130h] call _free mov rdi, [rbx+480h] cmp qword ptr [rdi+48h], 0 jz short loc_2B4E3 add rdi, 30h ; '0' call ma_hashtbl_free mov rdi, [rbx+480h] loc_2B4E3: cmp qword ptr [rdi+0F8h], 0 jz short loc_2B500 add rdi, 0E0h call ma_hashtbl_free mov rdi, [rbx+480h] loc_2B500: mov rdi, [rdi+150h] call _free mov rax, [rbx+480h] mov rdi, [rax+158h] call _free mov rdi, [rbx+480h] jmp short loc_2B52A loc_2B528: xor edi, edi loc_2B52A: add rbx, 390h call _free mov edx, 0F8h mov rdi, rbx xor esi, esi add rsp, 8 pop rbx pop r14 pop r15 pop rbp jmp _memset
long long mysql_close_options(_QWORD *a1) { long long v2; // rdi _QWORD *v3; // r14 unsigned long long v4; // r15 _QWORD *v5; // rax long long v6; // r14 _QWORD *v7; // rdi long long v8; // rdi v2 = a1[123]; if ( v2 ) { if ( *(_DWORD *)(v2 + 8) ) { v3 = *(_QWORD **)v2; v4 = *(_QWORD *)v2 + 8LL * *(unsigned int *)(v2 + 8); do free(*v3++); while ( (unsigned long long)v3 < v4 ); v2 = a1[123]; } ma_delete_dynamic(v2); free(a1[123]); } free(a1[119]); free(a1[118]); free(a1[120]); free(a1[121]); free(a1[122]); free(a1[124]); free(a1[125]); free(a1[126]); free(a1[127]); free(a1[137]); free(a1[128]); free(a1[129]); free(a1[130]); free(a1[131]); free(a1[132]); v5 = (_QWORD *)a1[144]; if ( v5 ) { v6 = v5[5]; if ( v6 ) { my_context_destroy(v6 + 56); free(v6); *(_QWORD *)(a1[144] + 40LL) = 0LL; v5 = (_QWORD *)a1[144]; } free(*v5); free(*(_QWORD *)(a1[144] + 8LL)); free(*(_QWORD *)(a1[144] + 136LL)); free(*(_QWORD *)(a1[144] + 16LL)); free(*(_QWORD *)(a1[144] + 24LL)); free(*(_QWORD *)(a1[144] + 144LL)); free(*(_QWORD *)(a1[144] + 152LL)); free(*(_QWORD *)(a1[144] + 160LL)); free(*(_QWORD *)(a1[144] + 192LL)); free(*(_QWORD *)(a1[144] + 176LL)); free(*(_QWORD *)(a1[144] + 208LL)); free(*(_QWORD *)(a1[144] + 304LL)); v7 = (_QWORD *)a1[144]; if ( v7[9] ) { ma_hashtbl_free(v7 + 6); v7 = (_QWORD *)a1[144]; } if ( v7[31] ) { ma_hashtbl_free(v7 + 28); v7 = (_QWORD *)a1[144]; } free(v7[42]); free(*(_QWORD *)(a1[144] + 344LL)); v8 = a1[144]; } else { v8 = 0LL; } free(v8); return memset(a1 + 114, 0LL, 248LL); }
mysql_close_options: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI MOV RDI,qword ptr [RDI + 0x3d8] TEST RDI,RDI JZ 0x0012b301 MOV EAX,dword ptr [RDI + 0x8] TEST RAX,RAX JZ 0x0012b2f0 MOV R14,qword ptr [RDI] LEA R15,[R14 + RAX*0x8] LAB_0012b2d8: MOV RDI,qword ptr [R14] CALL 0x00114590 ADD R14,0x8 CMP R14,R15 JC 0x0012b2d8 MOV RDI,qword ptr [RBX + 0x3d8] LAB_0012b2f0: CALL 0x00141120 MOV RDI,qword ptr [RBX + 0x3d8] CALL 0x00114590 LAB_0012b301: MOV RDI,qword ptr [RBX + 0x3b8] CALL 0x00114590 MOV RDI,qword ptr [RBX + 0x3b0] CALL 0x00114590 MOV RDI,qword ptr [RBX + 0x3c0] CALL 0x00114590 MOV RDI,qword ptr [RBX + 0x3c8] CALL 0x00114590 MOV RDI,qword ptr [RBX + 0x3d0] CALL 0x00114590 MOV RDI,qword ptr [RBX + 0x3e0] CALL 0x00114590 MOV RDI,qword ptr [RBX + 0x3e8] CALL 0x00114590 MOV RDI,qword ptr [RBX + 0x3f0] CALL 0x00114590 MOV RDI,qword ptr [RBX + 0x3f8] CALL 0x00114590 MOV RDI,qword ptr [RBX + 0x448] CALL 0x00114590 MOV RDI,qword ptr [RBX + 0x400] CALL 0x00114590 MOV RDI,qword ptr [RBX + 0x408] CALL 0x00114590 MOV RDI,qword ptr [RBX + 0x410] CALL 0x00114590 MOV RDI,qword ptr [RBX + 0x418] CALL 0x00114590 MOV RDI,qword ptr [RBX + 0x420] CALL 0x00114590 MOV RAX,qword ptr [RBX + 0x480] TEST RAX,RAX JZ 0x0012b528 MOV R14,qword ptr [RAX + 0x28] TEST R14,R14 JZ 0x0012b3f5 LEA RDI,[R14 + 0x38] CALL 0x0013f105 MOV RDI,R14 CALL 0x00114590 MOV RAX,qword ptr [RBX + 0x480] MOV qword ptr [RAX + 0x28],0x0 MOV RAX,qword ptr [RBX + 0x480] LAB_0012b3f5: MOV RDI,qword ptr [RAX] CALL 0x00114590 MOV RAX,qword ptr [RBX + 0x480] MOV RDI,qword ptr [RAX + 0x8] CALL 0x00114590 MOV RAX,qword ptr [RBX + 0x480] MOV RDI,qword ptr [RAX + 0x88] CALL 0x00114590 MOV RAX,qword ptr [RBX + 0x480] MOV RDI,qword ptr [RAX + 0x10] CALL 0x00114590 MOV RAX,qword ptr [RBX + 0x480] MOV RDI,qword ptr [RAX + 0x18] CALL 0x00114590 MOV RAX,qword ptr [RBX + 0x480] MOV RDI,qword ptr [RAX + 0x90] CALL 0x00114590 MOV RAX,qword ptr [RBX + 0x480] MOV RDI,qword ptr [RAX + 0x98] CALL 0x00114590 MOV RAX,qword ptr [RBX + 0x480] MOV RDI,qword ptr [RAX + 0xa0] CALL 0x00114590 MOV RAX,qword ptr [RBX + 0x480] MOV RDI,qword ptr [RAX + 0xc0] CALL 0x00114590 MOV RAX,qword ptr [RBX + 0x480] MOV RDI,qword ptr [RAX + 0xb0] CALL 0x00114590 MOV RAX,qword ptr [RBX + 0x480] MOV RDI,qword ptr [RAX + 0xd0] CALL 0x00114590 MOV RAX,qword ptr [RBX + 0x480] MOV RDI,qword ptr [RAX + 0x130] CALL 0x00114590 MOV RDI,qword ptr [RBX + 0x480] CMP qword ptr [RDI + 0x48],0x0 JZ 0x0012b4e3 ADD RDI,0x30 CALL 0x00141d05 MOV RDI,qword ptr [RBX + 0x480] LAB_0012b4e3: CMP qword ptr [RDI + 0xf8],0x0 JZ 0x0012b500 ADD RDI,0xe0 CALL 0x00141d05 MOV RDI,qword ptr [RBX + 0x480] LAB_0012b500: MOV RDI,qword ptr [RDI + 0x150] CALL 0x00114590 MOV RAX,qword ptr [RBX + 0x480] MOV RDI,qword ptr [RAX + 0x158] CALL 0x00114590 MOV RDI,qword ptr [RBX + 0x480] JMP 0x0012b52a LAB_0012b528: XOR EDI,EDI LAB_0012b52a: ADD RBX,0x390 CALL 0x00114590 MOV EDX,0xf8 MOV RDI,RBX XOR ESI,ESI ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP JMP 0x00114270
void mysql_close_options(long param_1) { int8 *puVar1; long *plVar2; long lVar3; void *pvVar4; int8 *puVar5; plVar2 = *(long **)(param_1 + 0x3d8); if (plVar2 != (long *)0x0) { if ((ulong)*(uint *)(plVar2 + 1) != 0) { puVar5 = (int8 *)*plVar2; puVar1 = puVar5 + *(uint *)(plVar2 + 1); do { free((void *)*puVar5); puVar5 = puVar5 + 1; } while (puVar5 < puVar1); plVar2 = *(long **)(param_1 + 0x3d8); } ma_delete_dynamic(plVar2); free(*(void **)(param_1 + 0x3d8)); } free(*(void **)(param_1 + 0x3b8)); free(*(void **)(param_1 + 0x3b0)); free(*(void **)(param_1 + 0x3c0)); free(*(void **)(param_1 + 0x3c8)); free(*(void **)(param_1 + 0x3d0)); free(*(void **)(param_1 + 0x3e0)); free(*(void **)(param_1 + 1000)); free(*(void **)(param_1 + 0x3f0)); free(*(void **)(param_1 + 0x3f8)); free(*(void **)(param_1 + 0x448)); free(*(void **)(param_1 + 0x400)); free(*(void **)(param_1 + 0x408)); free(*(void **)(param_1 + 0x410)); free(*(void **)(param_1 + 0x418)); free(*(void **)(param_1 + 0x420)); puVar1 = *(int8 **)(param_1 + 0x480); if (puVar1 == (int8 *)0x0) { pvVar4 = (void *)0x0; } else { pvVar4 = (void *)puVar1[5]; if (pvVar4 != (void *)0x0) { my_context_destroy((long)pvVar4 + 0x38); free(pvVar4); *(int8 *)(*(long *)(param_1 + 0x480) + 0x28) = 0; puVar1 = *(int8 **)(param_1 + 0x480); } free((void *)*puVar1); free(*(void **)(*(long *)(param_1 + 0x480) + 8)); free(*(void **)(*(long *)(param_1 + 0x480) + 0x88)); free(*(void **)(*(long *)(param_1 + 0x480) + 0x10)); free(*(void **)(*(long *)(param_1 + 0x480) + 0x18)); free(*(void **)(*(long *)(param_1 + 0x480) + 0x90)); free(*(void **)(*(long *)(param_1 + 0x480) + 0x98)); free(*(void **)(*(long *)(param_1 + 0x480) + 0xa0)); free(*(void **)(*(long *)(param_1 + 0x480) + 0xc0)); free(*(void **)(*(long *)(param_1 + 0x480) + 0xb0)); free(*(void **)(*(long *)(param_1 + 0x480) + 0xd0)); free(*(void **)(*(long *)(param_1 + 0x480) + 0x130)); lVar3 = *(long *)(param_1 + 0x480); if (*(long *)(lVar3 + 0x48) != 0) { ma_hashtbl_free(lVar3 + 0x30); lVar3 = *(long *)(param_1 + 0x480); } if (*(long *)(lVar3 + 0xf8) != 0) { ma_hashtbl_free(lVar3 + 0xe0); lVar3 = *(long *)(param_1 + 0x480); } free(*(void **)(lVar3 + 0x150)); free(*(void **)(*(long *)(param_1 + 0x480) + 0x158)); pvVar4 = *(void **)(param_1 + 0x480); } free(pvVar4); memset((void *)(param_1 + 0x390),0,0xf8); return; }
49,392
translog_buffer_increase_writers
eloqsql/storage/maria/ma_loghandler.c
static inline void translog_buffer_increase_writers(struct st_translog_buffer *buffer) { DBUG_ENTER("translog_buffer_increase_writers"); translog_buffer_lock_assert_owner(buffer); buffer->copy_to_buffer_in_progress++; DBUG_PRINT("info", ("copy_to_buffer_in_progress. Buffer #%u %p progress: %d", (uint) buffer->buffer_no, buffer, buffer->copy_to_buffer_in_progress)); DBUG_VOID_RETURN; }
O0
c
translog_buffer_increase_writers: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movl 0x100078(%rax), %ecx addl $0x1, %ecx movl %ecx, 0x100078(%rax) jmp 0x39f9d jmp 0x39f9f jmp 0x39fa1 popq %rbp retq nopw %cs:(%rax,%rax)
translog_buffer_increase_writers: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov ecx, [rax+100078h] add ecx, 1 mov [rax+100078h], ecx jmp short $+2 loc_39F9D: jmp short $+2 loc_39F9F: jmp short $+2 loc_39FA1: pop rbp retn
long long translog_buffer_increase_writers(long long a1) { long long result; // rax result = a1; ++*(_DWORD *)(a1 + 1048696); return result; }
translog_buffer_increase_writers: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x100078] ADD ECX,0x1 MOV dword ptr [RAX + 0x100078],ECX JMP 0x00139f9d LAB_00139f9d: JMP 0x00139f9f LAB_00139f9f: JMP 0x00139fa1 LAB_00139fa1: POP RBP RET
void translog_buffer_increase_writers(long param_1) { *(int *)((long)&Elf64_Phdr_ARRAY_00100040[1].p_type + param_1) = *(int *)((long)&Elf64_Phdr_ARRAY_00100040[1].p_type + param_1) + 1; return; }
49,393
mysql_real_query_start
eloqsql/libmariadb/libmariadb/mariadb_async.c
int STDCALL mysql_real_query_start(int *ret, MYSQL *mysql, const char *stmt_str, unsigned long length) { int res; struct mysql_async_context *b; struct mysql_real_query_params parms; b= mysql->options.extension->async_context; { WIN_SET_NONBLOCKING(mysql) parms.mysql= mysql; parms.stmt_str= stmt_str; parms.length= length; } b->active= 1; res= my_context_spawn(&b->async_context, mysql_real_query_start_internal, &parms); b->active= b->suspended= 0; if (res > 0) { /* Suspended. */ b->suspended= 1; return b->events_to_wait_for; } if (res < 0) { set_mariadb_error((mysql), CR_OUT_OF_MEMORY, unknown_sqlstate); *ret= 1; } else *ret= b->ret_result.r_int; return 0; }
O0
c
mysql_real_query_start: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x18(%rbp), %rax movq 0x480(%rax), %rax movq 0x28(%rax), %rax movq %rax, -0x38(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x20(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x28(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x38(%rbp), %rax movb $0x1, 0x14(%rax) movq -0x38(%rbp), %rdi addq $0x38, %rdi leaq 0xd6(%rip), %rsi # 0x3cd50 leaq -0x50(%rbp), %rdx callq 0x43ed0 movl %eax, -0x2c(%rbp) movq -0x38(%rbp), %rax movb $0x0, 0x15(%rax) movq -0x38(%rbp), %rax movb $0x0, 0x14(%rax) cmpl $0x0, -0x2c(%rbp) jle 0x3ccb2 movq -0x38(%rbp), %rax movb $0x1, 0x15(%rax) movq -0x38(%rbp), %rax movl (%rax), %eax movl %eax, -0x4(%rbp) jmp 0x3cd3d cmpl $0x0, -0x2c(%rbp) jge 0x3cd29 jmp 0x3ccba movq -0x18(%rbp), %rax movl $0x7d8, 0x90(%rax) # imm = 0x7D8 movq -0x18(%rbp), %rdi addq $0x297, %rdi # imm = 0x297 leaq 0x2a476(%rip), %rax # 0x67150 movq (%rax), %rsi movl $0x5, %edx callq 0x13210 movq -0x18(%rbp), %rax movb $0x0, 0x29c(%rax) movq -0x18(%rbp), %rdi addq $0x97, %rdi leaq 0x2a45c(%rip), %rax # 0x67160 movq 0x40(%rax), %rsi movl $0x1ff, %edx # imm = 0x1FF callq 0x13210 movq -0x18(%rbp), %rax movb $0x0, 0x296(%rax) movq -0x10(%rbp), %rax movl $0x1, (%rax) jmp 0x3cd36 movq -0x38(%rbp), %rax movl 0x8(%rax), %ecx movq -0x10(%rbp), %rax movl %ecx, (%rax) movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x50, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
mysql_real_query_start: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov rax, [rbp+var_18] mov rax, [rax+480h] mov rax, [rax+28h] mov [rbp+var_38], rax mov rax, [rbp+var_18] mov [rbp+var_50], rax mov rax, [rbp+var_20] mov [rbp+var_48], rax mov rax, [rbp+var_28] mov [rbp+var_40], rax mov rax, [rbp+var_38] mov byte ptr [rax+14h], 1 mov rdi, [rbp+var_38] add rdi, 38h ; '8' lea rsi, mysql_real_query_start_internal lea rdx, [rbp+var_50] call my_context_spawn mov [rbp+var_2C], eax mov rax, [rbp+var_38] mov byte ptr [rax+15h], 0 mov rax, [rbp+var_38] mov byte ptr [rax+14h], 0 cmp [rbp+var_2C], 0 jle short loc_3CCB2 mov rax, [rbp+var_38] mov byte ptr [rax+15h], 1 mov rax, [rbp+var_38] mov eax, [rax] mov [rbp+var_4], eax jmp loc_3CD3D loc_3CCB2: cmp [rbp+var_2C], 0 jge short loc_3CD29 jmp short $+2 loc_3CCBA: mov rax, [rbp+var_18] mov dword ptr [rax+90h], 7D8h mov rdi, [rbp+var_18] add rdi, 297h lea rax, SQLSTATE_UNKNOWN mov rsi, [rax] mov edx, 5 call _strncpy mov rax, [rbp+var_18] mov byte ptr [rax+29Ch], 0 mov rdi, [rbp+var_18] add rdi, 97h lea rax, client_errors mov rsi, [rax+40h] mov edx, 1FFh call _strncpy mov rax, [rbp+var_18] mov byte ptr [rax+296h], 0 mov rax, [rbp+var_10] mov dword ptr [rax], 1 jmp short loc_3CD36 loc_3CD29: mov rax, [rbp+var_38] mov ecx, [rax+8] mov rax, [rbp+var_10] mov [rax], ecx loc_3CD36: mov [rbp+var_4], 0 loc_3CD3D: mov eax, [rbp+var_4] add rsp, 50h pop rbp retn
long long mysql_real_query_start(_DWORD *a1, long long a2, long long a3, long long a4) { _QWORD v5[3]; // [rsp+0h] [rbp-50h] BYREF unsigned int *v6; // [rsp+18h] [rbp-38h] int v7; // [rsp+24h] [rbp-2Ch] long long v8; // [rsp+28h] [rbp-28h] long long v9; // [rsp+30h] [rbp-20h] long long v10; // [rsp+38h] [rbp-18h] _DWORD *v11; // [rsp+40h] [rbp-10h] v11 = a1; v10 = a2; v9 = a3; v8 = a4; v6 = *(unsigned int **)(*(_QWORD *)(a2 + 1152) + 40LL); v5[0] = a2; v5[1] = a3; v5[2] = a4; *((_BYTE *)v6 + 20) = 1; v7 = my_context_spawn(v6 + 14, mysql_real_query_start_internal, v5); *((_BYTE *)v6 + 21) = 0; *((_BYTE *)v6 + 20) = 0; if ( v7 <= 0 ) { if ( v7 >= 0 ) { *v11 = v6[2]; } else { *(_DWORD *)(v10 + 144) = 2008; strncpy(v10 + 663, SQLSTATE_UNKNOWN, 5LL); *(_BYTE *)(v10 + 668) = 0; strncpy(v10 + 151, client_errors[8], 511LL); *(_BYTE *)(v10 + 662) = 0; *v11 = 1; } return 0; } else { *((_BYTE *)v6 + 21) = 1; return *v6; } }
mysql_real_query_start: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x480] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x38] MOV byte ptr [RAX + 0x14],0x1 MOV RDI,qword ptr [RBP + -0x38] ADD RDI,0x38 LEA RSI,[0x13cd50] LEA RDX,[RBP + -0x50] CALL 0x00143ed0 MOV dword ptr [RBP + -0x2c],EAX MOV RAX,qword ptr [RBP + -0x38] MOV byte ptr [RAX + 0x15],0x0 MOV RAX,qword ptr [RBP + -0x38] MOV byte ptr [RAX + 0x14],0x0 CMP dword ptr [RBP + -0x2c],0x0 JLE 0x0013ccb2 MOV RAX,qword ptr [RBP + -0x38] MOV byte ptr [RAX + 0x15],0x1 MOV RAX,qword ptr [RBP + -0x38] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x4],EAX JMP 0x0013cd3d LAB_0013ccb2: CMP dword ptr [RBP + -0x2c],0x0 JGE 0x0013cd29 JMP 0x0013ccba LAB_0013ccba: MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0x90],0x7d8 MOV RDI,qword ptr [RBP + -0x18] ADD RDI,0x297 LEA RAX,[0x167150] MOV RSI,qword ptr [RAX] MOV EDX,0x5 CALL 0x00113210 MOV RAX,qword ptr [RBP + -0x18] MOV byte ptr [RAX + 0x29c],0x0 MOV RDI,qword ptr [RBP + -0x18] ADD RDI,0x97 LEA RAX,[0x167160] MOV RSI,qword ptr [RAX + 0x40] MOV EDX,0x1ff CALL 0x00113210 MOV RAX,qword ptr [RBP + -0x18] MOV byte ptr [RAX + 0x296],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX],0x1 JMP 0x0013cd36 LAB_0013cd29: MOV RAX,qword ptr [RBP + -0x38] MOV ECX,dword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX],ECX LAB_0013cd36: MOV dword ptr [RBP + -0x4],0x0 LAB_0013cd3d: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x50 POP RBP RET
int4 mysql_real_query_start(int4 *param_1,long param_2,int8 param_3,int8 param_4) { long local_58; int8 local_50; int8 local_48; int4 *local_40; int local_34; int8 local_30; int8 local_28; long local_20; int4 *local_18; int4 local_c; local_40 = *(int4 **)(*(long *)(param_2 + 0x480) + 0x28); *(int1 *)(local_40 + 5) = 1; local_58 = param_2; local_50 = param_3; local_48 = param_4; local_30 = param_4; local_28 = param_3; local_20 = param_2; local_18 = param_1; local_34 = my_context_spawn(local_40 + 0xe,mysql_real_query_start_internal,&local_58); *(int1 *)((long)local_40 + 0x15) = 0; *(int1 *)(local_40 + 5) = 0; if (local_34 < 1) { if (local_34 < 0) { *(int4 *)(local_20 + 0x90) = 0x7d8; strncpy((char *)(local_20 + 0x297),SQLSTATE_UNKNOWN,5); *(int1 *)(local_20 + 0x29c) = 0; strncpy((char *)(local_20 + 0x97),PTR_s_Client_run_out_of_memory_001671a0,0x1ff); *(int1 *)(local_20 + 0x296) = 0; *local_18 = 1; } else { *local_18 = local_40[2]; } local_c = 0; } else { *(int1 *)((long)local_40 + 0x15) = 1; local_c = *local_40; } return local_c; }
49,394
intx::internal::udivrem_by1(unsigned long*, int, unsigned long)
corpus-core[P]colibri-stateless/build_O0/_deps/intx-src/include/intx/intx.hpp
inline uint64_t udivrem_by1(uint64_t u[], int len, uint64_t d) noexcept { INTX_REQUIRE(len >= 2); const auto reciprocal = reciprocal_2by1(d); auto rem = u[len - 1]; // Set the top word as remainder. u[len - 1] = 0; // Reset the word being a part of the result quotient. auto it = &u[len - 2]; do { std::tie(*it, rem) = udivrem_2by1({*it, rem}, d, reciprocal); } while (it-- != &u[0]); return rem; }
O0
cpp
intx::internal::udivrem_by1(unsigned long*, int, unsigned long): pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq %rdx, -0x18(%rbp) cmpl $0x2, -0xc(%rbp) jl 0x60e7b jmp 0x60e9a leaq 0x7c48f(%rip), %rdi # 0xdd311 leaq 0x7c3df(%rip), %rsi # 0xdd268 movl $0x644, %edx # imm = 0x644 leaq 0x7c485(%rip), %rcx # 0xdd31a callq 0x23160 movq -0x18(%rbp), %rdi callq 0x61940 movq %rax, -0x20(%rbp) movq -0x8(%rbp), %rax movl -0xc(%rbp), %ecx subl $0x1, %ecx movslq %ecx, %rcx movq (%rax,%rcx,8), %rax movq %rax, -0x28(%rbp) movq -0x8(%rbp), %rax movl -0xc(%rbp), %ecx subl $0x1, %ecx movslq %ecx, %rcx movq $0x0, (%rax,%rcx,8) movq -0x8(%rbp), %rax movl -0xc(%rbp), %ecx subl $0x2, %ecx movslq %ecx, %rcx shlq $0x3, %rcx addq %rcx, %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rax movq (%rax), %rsi movq -0x28(%rbp), %rdx leaq -0x60(%rbp), %rdi callq 0x60120 movq -0x18(%rbp), %rdx movq -0x20(%rbp), %rcx movq -0x60(%rbp), %rdi movq -0x58(%rbp), %rsi callq 0x61b10 movq %rax, -0x50(%rbp) movq %rdx, -0x48(%rbp) leaq -0x40(%rbp), %rdi leaq -0x50(%rbp), %rsi callq 0x61cb0 movq -0x30(%rbp), %rsi leaq -0x70(%rbp), %rdi leaq -0x28(%rbp), %rdx callq 0x61cf0 leaq -0x70(%rbp), %rdi leaq -0x40(%rbp), %rsi callq 0x61d30 movq -0x30(%rbp), %rax movq %rax, %rcx addq $-0x8, %rcx movq %rcx, -0x30(%rbp) movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x60ee9 movq -0x28(%rbp), %rax addq $0x70, %rsp popq %rbp retq nopw (%rax,%rax)
_ZN4intx8internal11udivrem_by1EPmim: push rbp mov rbp, rsp sub rsp, 70h mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_18], rdx cmp [rbp+var_C], 2 jl short loc_60E7B jmp short loc_60E9A loc_60E7B: lea rdi, aLen2; "len >= 2" lea rsi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"... mov edx, 644h lea rcx, aUint64TIntxInt; "uint64_t intx::internal::udivrem_by1(ui"... call ___assert_fail loc_60E9A: mov rdi, [rbp+var_18]; this call _ZN4intx15reciprocal_2by1Em; intx::reciprocal_2by1(ulong) mov [rbp+var_20], rax mov rax, [rbp+var_8] mov ecx, [rbp+var_C] sub ecx, 1 movsxd rcx, ecx mov rax, [rax+rcx*8] mov [rbp+var_28], rax mov rax, [rbp+var_8] mov ecx, [rbp+var_C] sub ecx, 1 movsxd rcx, ecx mov qword ptr [rax+rcx*8], 0 mov rax, [rbp+var_8] mov ecx, [rbp+var_C] sub ecx, 2 movsxd rcx, ecx shl rcx, 3 add rax, rcx mov [rbp+var_30], rax loc_60EE9: mov rax, [rbp+var_30] mov rsi, [rax] mov rdx, [rbp+var_28] lea rdi, [rbp+var_60] call _ZN4intx4uintILj128EEC2Emm; intx::uint<128u>::uint(ulong,ulong) mov rdx, [rbp+var_18] mov rcx, [rbp+var_20] mov rdi, [rbp+var_60] mov rsi, [rbp+var_58] call _ZN4intx12udivrem_2by1ENS_4uintILj128EEEmm; intx::udivrem_2by1(intx::uint<128u>,ulong,ulong) mov [rbp+var_50], rax mov [rbp+var_48], rdx lea rdi, [rbp+var_40] lea rsi, [rbp+var_50] call _ZN4intx10div_resultImmEcvSt5tupleIJRmS3_EEEv; intx::div_result<ulong,ulong>::operator std::tuple<ulong &,ulong &>(void) mov rsi, [rbp+var_30] lea rdi, [rbp+var_70] lea rdx, [rbp+var_28] call _ZSt3tieIJmmEESt5tupleIJDpRT_EES3_; std::tie<ulong,ulong>(ulong,ulong &) lea rdi, [rbp+var_70] lea rsi, [rbp+var_40] call _ZNSt5tupleIJRmS0_EEaSEOS1_; std::tuple<ulong &,ulong &>::operator=(std::tuple<ulong &,ulong &>&&) mov rax, [rbp+var_30] mov rcx, rax add rcx, 0FFFFFFFFFFFFFFF8h mov [rbp+var_30], rcx mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_60EE9 mov rax, [rbp+var_28] add rsp, 70h pop rbp retn
long long intx::internal::udivrem_by1(intx::internal *this, unsigned long long *a2, intx *a3) { long long v3; // rdx intx::internal *v4; // rax _BYTE v6[16]; // [rsp+0h] [rbp-70h] BYREF _QWORD v7[2]; // [rsp+10h] [rbp-60h] BYREF _QWORD v8[2]; // [rsp+20h] [rbp-50h] BYREF _BYTE v9[16]; // [rsp+30h] [rbp-40h] BYREF long long *v10; // [rsp+40h] [rbp-30h] long long v11; // [rsp+48h] [rbp-28h] BYREF long long v12; // [rsp+50h] [rbp-20h] intx *v13; // [rsp+58h] [rbp-18h] int v14; // [rsp+64h] [rbp-Ch] intx::internal *v15; // [rsp+68h] [rbp-8h] v15 = this; v14 = (int)a2; v13 = a3; if ( (int)a2 < 2 ) __assert_fail( "len >= 2", "/workspace/llm4binary/github/2025_star3/corpus-core[P]colibri-stateless/build_O0/_deps/intx-src/include/intx/intx.hpp", 1604LL, "uint64_t intx::internal::udivrem_by1(uint64_t *, int, uint64_t)"); v12 = intx::reciprocal_2by1(v13, (unsigned long long)a2); v11 = *((_QWORD *)v15 + v14 - 1); *((_QWORD *)v15 + v14 - 1) = 0LL; v10 = (long long *)((char *)v15 + 8 * v14 - 16); do { intx::uint<128u>::uint(v7, *v10, v11); v8[0] = intx::udivrem_2by1(v7[0], v7[1], v13, v12); v8[1] = v3; intx::div_result<unsigned long,unsigned long>::operator std::tuple<unsigned long &,unsigned long &>(v9, v8); std::tie<unsigned long,unsigned long>(v6, v10, &v11); std::tuple<unsigned long &,unsigned long &>::operator=(v6, v9); v4 = (intx::internal *)v10--; } while ( v4 != v15 ); return v11; }
udivrem_by1: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV qword ptr [RBP + -0x18],RDX CMP dword ptr [RBP + -0xc],0x2 JL 0x00160e7b JMP 0x00160e9a LAB_00160e7b: LEA RDI,[0x1dd311] LEA RSI,[0x1dd268] MOV EDX,0x644 LEA RCX,[0x1dd31a] CALL 0x00123160 LAB_00160e9a: MOV RDI,qword ptr [RBP + -0x18] CALL 0x00161940 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RBP + -0xc] SUB ECX,0x1 MOVSXD RCX,ECX MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RBP + -0xc] SUB ECX,0x1 MOVSXD RCX,ECX MOV qword ptr [RAX + RCX*0x8],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RBP + -0xc] SUB ECX,0x2 MOVSXD RCX,ECX SHL RCX,0x3 ADD RAX,RCX MOV qword ptr [RBP + -0x30],RAX LAB_00160ee9: MOV RAX,qword ptr [RBP + -0x30] MOV RSI,qword ptr [RAX] MOV RDX,qword ptr [RBP + -0x28] LEA RDI,[RBP + -0x60] CALL 0x00160120 MOV RDX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x20] MOV RDI,qword ptr [RBP + -0x60] MOV RSI,qword ptr [RBP + -0x58] CALL 0x00161b10 MOV qword ptr [RBP + -0x50],RAX MOV qword ptr [RBP + -0x48],RDX LEA RDI,[RBP + -0x40] LEA RSI,[RBP + -0x50] CALL 0x00161cb0 MOV RSI,qword ptr [RBP + -0x30] LEA RDI,[RBP + -0x70] LEA RDX,[RBP + -0x28] CALL 0x00161cf0 LEA RDI,[RBP + -0x70] LEA RSI,[RBP + -0x40] CALL 0x00161d30 MOV RAX,qword ptr [RBP + -0x30] MOV RCX,RAX ADD RCX,-0x8 MOV qword ptr [RBP + -0x30],RCX MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x00160ee9 MOV RAX,qword ptr [RBP + -0x28] ADD RSP,0x70 POP RBP RET
/* intx::internal::udivrem_by1(unsigned long*, int, unsigned long) */ ulong intx::internal::udivrem_by1(ulong *param_1,int param_2,ulong param_3) { bool bVar1; int1 auVar2 [16]; tuple<unsigned_long&,unsigned_long&> local_78 [16]; intx *local_68; int8 local_60; int1 local_58 [16]; div_result local_48 [16]; ulong *local_38; ulong local_30; int8 local_28; ulong local_20; int local_14; ulong *local_10; local_20 = param_3; local_14 = param_2; local_10 = param_1; if (1 < param_2) { local_28 = reciprocal_2by1(param_3); local_30 = local_10[local_14 + -1]; local_10[local_14 + -1] = 0; local_38 = local_10 + (local_14 + -2); do { uint<128u>::uint((uint<128u> *)&local_68,*local_38,local_30); auVar2 = udivrem_2by1(local_68,local_60,local_20,local_28); local_58 = auVar2; div_result::operator_cast_to_tuple(local_48); std::tie<unsigned_long,unsigned_long>((ulong *)local_78,local_38); std::tuple<unsigned_long&,unsigned_long&>::operator=(local_78,(tuple *)local_48); bVar1 = local_38 != local_10; local_38 = local_38 + -1; } while (bVar1); return local_30; } /* WARNING: Subroutine does not return */ __assert_fail("len >= 2", "/workspace/llm4binary/github/2025_star3/corpus-core[P]colibri-stateless/build_O0/_deps/intx-src/include/intx/intx.hpp" ,0x644,"uint64_t intx::internal::udivrem_by1(uint64_t *, int, uint64_t)"); }
49,395
ftxui::ButtonOption::Animated(ftxui::Color, ftxui::Color)
Andrewchistyakov[P]flashcards_lyc/build_O3/_deps/ftxui-src/src/ftxui/component/component_options.cpp
ButtonOption ButtonOption::Animated(Color background, Color foreground) { // NOLINTBEGIN return ButtonOption::Animated( /*bakground=*/background, /*foreground=*/foreground, /*background_active=*/foreground, /*foreground_active=*/background); // NOLINTEND }
O3
cpp
ftxui::ButtonOption::Animated(ftxui::Color, ftxui::Color): pushq %rbx movq %rdi, %rbx movl %edx, %ecx movl %esi, %r8d callq 0x342a4 movq %rbx, %rax popq %rbx retq nop
_ZN5ftxui12ButtonOption8AnimatedENS_5ColorES1_: push rbx mov rbx, rdi mov ecx, edx mov r8d, esi call _ZN5ftxui12ButtonOption8AnimatedENS_5ColorES1_S1_S1_; ftxui::ButtonOption::Animated(ftxui::Color,ftxui::Color,ftxui::Color,ftxui::Color) mov rax, rbx pop rbx retn
long long ftxui::ButtonOption::Animated(long long a1, int a2, int a3) { ftxui::ButtonOption::Animated(a1, a2, a3, a3, a2); return a1; }
Animated: PUSH RBX MOV RBX,RDI MOV ECX,EDX MOV R8D,ESI CALL 0x001342a4 MOV RAX,RBX POP RBX RET
/* ftxui::ButtonOption::Animated(ftxui::Color, ftxui::Color) */ int8 ftxui::ButtonOption::Animated(int8 param_1) { Animated(); return param_1; }
49,396
minja::SliceExpr::~SliceExpr()
monkey531[P]llama/common/minja.hpp
SliceExpr(const Location & location, std::shared_ptr<Expression> && s, std::shared_ptr<Expression> && e) : Expression(location), start(std::move(s)), end(std::move(e)) {}
O3
cpp
minja::SliceExpr::~SliceExpr(): pushq %rbx movq %rdi, %rbx leaq 0x9c435(%rip), %rax # 0x1396d8 addq $0x10, %rax movq %rax, (%rdi) movq 0x38(%rdi), %rdi testq %rdi, %rdi je 0x9d2b8 callq 0x7b578 movq 0x28(%rbx), %rdi testq %rdi, %rdi je 0x9d2c6 callq 0x7b578 leaq 0x9c0db(%rip), %rax # 0x1393a8 addq $0x10, %rax movq %rax, (%rbx) movq 0x10(%rbx), %rdi testq %rdi, %rdi je 0x9d2e3 popq %rbx jmp 0x7b578 popq %rbx retq nop
_ZN5minja9SliceExprD2Ev: push rbx mov rbx, rdi lea rax, _ZTVN5minja9SliceExprE; `vtable for'minja::SliceExpr add rax, 10h mov [rdi], rax mov rdi, [rdi+38h] test rdi, rdi jz short loc_9D2B8 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_9D2B8: mov rdi, [rbx+28h] test rdi, rdi jz short loc_9D2C6 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_9D2C6: lea rax, _ZTVN5minja10ExpressionE; `vtable for'minja::Expression add rax, 10h mov [rbx], rax mov rdi, [rbx+10h] test rdi, rdi jz short loc_9D2E3 pop rbx jmp _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_9D2E3: pop rbx retn
void minja::SliceExpr::~SliceExpr(minja::SliceExpr *this) { volatile signed __int32 *v2; // rdi volatile signed __int32 *v3; // rdi volatile signed __int32 *v4; // rdi *(_QWORD *)this = &`vtable for'minja::SliceExpr + 2; v2 = (volatile signed __int32 *)*((_QWORD *)this + 7); if ( v2 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v2); v3 = (volatile signed __int32 *)*((_QWORD *)this + 5); if ( v3 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3); *(_QWORD *)this = &`vtable for'minja::Expression + 2; v4 = (volatile signed __int32 *)*((_QWORD *)this + 2); if ( v4 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v4); }
~SliceExpr: PUSH RBX MOV RBX,RDI LEA RAX,[0x2396d8] ADD RAX,0x10 MOV qword ptr [RDI],RAX MOV RDI,qword ptr [RDI + 0x38] TEST RDI,RDI JZ 0x0019d2b8 CALL 0x0017b578 LAB_0019d2b8: MOV RDI,qword ptr [RBX + 0x28] TEST RDI,RDI JZ 0x0019d2c6 CALL 0x0017b578 LAB_0019d2c6: LEA RAX,[0x2393a8] ADD RAX,0x10 MOV qword ptr [RBX],RAX MOV RDI,qword ptr [RBX + 0x10] TEST RDI,RDI JZ 0x0019d2e3 POP RBX JMP 0x0017b578 LAB_0019d2e3: POP RBX RET
/* minja::SliceExpr::~SliceExpr() */ void __thiscall minja::SliceExpr::~SliceExpr(SliceExpr *this) { *(int ***)this = &PTR_do_evaluate_002396e8; if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x38) != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x38)); } if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x28) != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x28)); } *(int ***)this = &PTR___cxa_pure_virtual_002393b8; if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10) != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10)); return; } return; }
49,397
my_caseup_ucs2
eloqsql/strings/ctype-ucs2.c
static size_t my_caseup_ucs2(CHARSET_INFO *cs, const char *src, size_t srclen, char *dst, size_t dstlen) { my_wc_t wc; int res; const char *srcend= src + srclen; char *dstend= dst + dstlen; MY_UNICASE_INFO *uni_plane= cs->caseinfo; DBUG_ASSERT(srclen <= dstlen); while ((src < srcend) && (res= my_ucs2_uni(cs, &wc, (uchar *)src, (uchar*) srcend)) > 0) { my_toupper_ucs2(uni_plane, &wc); if (res != my_uni_ucs2(cs, wc, (uchar*) dst, (uchar*) dstend)) break; src+= res; dst+= res; } return srclen; }
O3
c
my_caseup_ucs2: movq %rdx, %rax cmpq $0x2, %rdx jl 0x4745f pushq %rbp movq %rsp, %rbp leaq (%rsi,%rax), %rdx addq %rcx, %r8 movq 0x78(%rdi), %rdi addq $0x2, %rcx movzbl (%rsi), %r9d movzbl 0x1(%rsi), %r10d movq 0x8(%rdi), %r11 movq (%r11,%r9,8), %r11 testq %r11, %r11 je 0x47426 leaq (%r10,%r10,2), %r9 movl (%r11,%r9,4), %r9d jmp 0x4742d shll $0x8, %r9d orq %r10, %r9 cmpq %r8, %rcx ja 0x4745e cmpl $0xffff, %r9d # imm = 0xFFFF ja 0x4745e rolw $0x8, %r9w movw %r9w, -0x2(%rcx) leaq 0x2(%rsi), %r9 cmpq %rdx, %r9 jae 0x4745e addq $0x4, %rsi addq $0x2, %rcx cmpq %rdx, %rsi movq %r9, %rsi jbe 0x47406 popq %rbp retq
my_caseup_ucs2: mov rax, rdx cmp rdx, 2 jl short locret_4745F push rbp mov rbp, rsp lea rdx, [rsi+rax] add r8, rcx mov rdi, [rdi+78h] add rcx, 2 loc_47406: movzx r9d, byte ptr [rsi] movzx r10d, byte ptr [rsi+1] mov r11, [rdi+8] mov r11, [r11+r9*8] test r11, r11 jz short loc_47426 lea r9, [r10+r10*2] mov r9d, [r11+r9*4] jmp short loc_4742D loc_47426: shl r9d, 8 or r9, r10 loc_4742D: cmp rcx, r8 ja short loc_4745E cmp r9d, 0FFFFh ja short loc_4745E rol r9w, 8 mov [rcx-2], r9w lea r9, [rsi+2] cmp r9, rdx jnb short loc_4745E add rsi, 4 add rcx, 2 cmp rsi, rdx mov rsi, r9 jbe short loc_47406 loc_4745E: pop rbp locret_4745F: retn
long long my_caseup_ucs2(long long a1, unsigned __int8 *a2, long long a3, long long a4, long long a5) { long long result; // rax unsigned long long v6; // rdx unsigned long long v7; // r8 long long v8; // rdi unsigned long long v9; // rcx long long v10; // r9 long long v11; // r10 long long v12; // r11 unsigned int v13; // r9d bool v14; // cc result = a3; if ( a3 >= 2 ) { v6 = (unsigned long long)&a2[a3]; v7 = a4 + a5; v8 = *(_QWORD *)(a1 + 120); v9 = a4 + 2; do { v10 = *a2; v11 = a2[1]; v12 = *(_QWORD *)(*(_QWORD *)(v8 + 8) + 8 * v10); if ( v12 ) v13 = *(_DWORD *)(v12 + 12 * v11); else v13 = v11 | ((_DWORD)v10 << 8); if ( v9 > v7 ) break; if ( v13 > 0xFFFF ) break; *(_WORD *)(v9 - 2) = __ROL2__(v13, 8); if ( (unsigned long long)(a2 + 2) >= v6 ) break; v9 += 2LL; v14 = (unsigned long long)(a2 + 4) <= v6; a2 += 2; } while ( v14 ); } return result; }
my_caseup_ucs2: MOV RAX,RDX CMP RDX,0x2 JL 0x0014745f PUSH RBP MOV RBP,RSP LEA RDX,[RSI + RAX*0x1] ADD R8,RCX MOV RDI,qword ptr [RDI + 0x78] ADD RCX,0x2 LAB_00147406: MOVZX R9D,byte ptr [RSI] MOVZX R10D,byte ptr [RSI + 0x1] MOV R11,qword ptr [RDI + 0x8] MOV R11,qword ptr [R11 + R9*0x8] TEST R11,R11 JZ 0x00147426 LEA R9,[R10 + R10*0x2] MOV R9D,dword ptr [R11 + R9*0x4] JMP 0x0014742d LAB_00147426: SHL R9D,0x8 OR R9,R10 LAB_0014742d: CMP RCX,R8 JA 0x0014745e CMP R9D,0xffff JA 0x0014745e ROL R9W,0x8 MOV word ptr [RCX + -0x2],R9W LEA R9,[RSI + 0x2] CMP R9,RDX JNC 0x0014745e ADD RSI,0x4 ADD RCX,0x2 CMP RSI,RDX MOV RSI,R9 JBE 0x00147406 LAB_0014745e: POP RBP LAB_0014745f: RET
void my_caseup_ucs2(long param_1,byte *param_2,long param_3,long param_4,long param_5) { long lVar1; long lVar2; ulong uVar3; byte *pbVar4; byte *pbVar5; uint uVar6; if (1 < param_3) { lVar1 = *(long *)(param_1 + 0x78); uVar3 = param_4 + 2; pbVar4 = param_2; while( true ) { lVar2 = *(long *)(*(long *)(lVar1 + 8) + (ulong)*pbVar4 * 8); if (lVar2 == 0) { uVar6 = (uint)CONCAT11(*pbVar4,pbVar4[1]); } else { uVar6 = *(uint *)(lVar2 + (ulong)pbVar4[1] * 0xc); } if (((ulong)(param_5 + param_4) < uVar3) || (0xffff < uVar6)) break; *(ushort *)(uVar3 - 2) = (ushort)uVar6 << 8 | (ushort)uVar6 >> 8; if (param_2 + param_3 <= pbVar4 + 2) { return; } pbVar5 = pbVar4 + 4; uVar3 = uVar3 + 2; pbVar4 = pbVar4 + 2; if (param_2 + param_3 < pbVar5) { return; } } } return; }
49,398
google::protobuf::io::ConcatenatingInputStream::BackUp(int)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/io/zero_copy_stream_impl.cc
void ConcatenatingInputStream::BackUp(int count) { if (stream_count_ > 0) { streams_[0]->BackUp(count); } else { GOOGLE_LOG(DFATAL) << "Can't BackUp() after failed Next()."; } }
O0
cpp
google::protobuf::io::ConcatenatingInputStream::BackUp(int): subq $0x78, %rsp movq %rdi, 0x70(%rsp) movl %esi, 0x6c(%rsp) movq 0x70(%rsp), %rax movq %rax, 0x18(%rsp) cmpl $0x0, 0x10(%rax) jle 0x1efcc5 movq 0x18(%rsp), %rax movq 0x8(%rax), %rax movq (%rax), %rdi movl 0x6c(%rsp), %esi movq (%rdi), %rax callq *0x18(%rax) jmp 0x1efd34 leaq 0x20becf(%rip), %rdx # 0x3fbb9b leaq 0x30(%rsp), %rdi movq %rdi, 0x8(%rsp) movl $0x2, %esi movl $0x14d, %ecx # imm = 0x14D callq 0x219560 movq 0x8(%rsp), %rdi leaq 0x20bf4c(%rip), %rsi # 0x3fbc3d callq 0x218e20 movq %rax, 0x10(%rsp) jmp 0x1efcfd movq 0x10(%rsp), %rsi leaq 0x23(%rsp), %rdi callq 0x218fd0 jmp 0x1efd0e leaq 0x30(%rsp), %rdi callq 0x2195a0 jmp 0x1efd34 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x28(%rsp) movl %eax, 0x24(%rsp) leaq 0x30(%rsp), %rdi callq 0x2195a0 jmp 0x1efd39 addq $0x78, %rsp retq movq 0x28(%rsp), %rdi callq 0x21700 nopw %cs:(%rax,%rax)
_ZN6google8protobuf2io24ConcatenatingInputStream6BackUpEi: sub rsp, 78h mov [rsp+78h+var_8], rdi mov [rsp+78h+var_C], esi mov rax, [rsp+78h+var_8] mov [rsp+78h+var_60], rax cmp dword ptr [rax+10h], 0 jle short loc_1EFCC5 mov rax, [rsp+78h+var_60] mov rax, [rax+8] mov rdi, [rax] mov esi, [rsp+78h+var_C] mov rax, [rdi] call qword ptr [rax+18h] jmp short loc_1EFD34 loc_1EFCC5: lea rdx, aWorkspaceLlm4b_65; "/workspace/llm4binary/github2025/aimrt_"... lea rdi, [rsp+78h+var_48] mov [rsp+78h+var_70], rdi mov esi, 2 mov ecx, 14Dh call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int) mov rdi, [rsp+78h+var_70] lea rsi, aCanTBackupAfte; "Can't BackUp() after failed Next()." call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) mov [rsp+78h+var_68], rax jmp short $+2 loc_1EFCFD: mov rsi, [rsp+78h+var_68] lea rdi, [rsp+78h+var_55] call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &) jmp short $+2 loc_1EFD0E: lea rdi, [rsp+78h+var_48]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() jmp short loc_1EFD34 mov rcx, rax mov eax, edx mov [rsp+arg_20], rcx mov [rsp+arg_1C], eax lea rdi, [rsp+arg_28]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() jmp short loc_1EFD39 loc_1EFD34: add rsp, 78h retn loc_1EFD39: mov rdi, [rsp+arg_20] call __Unwind_Resume
void google::protobuf::io::ConcatenatingInputStream::BackUp( google::protobuf::io::ConcatenatingInputStream *this, unsigned int a2) { long long v2; // [rsp+10h] [rbp-68h] _BYTE v3[13]; // [rsp+23h] [rbp-55h] BYREF _BYTE v4[60]; // [rsp+30h] [rbp-48h] BYREF unsigned int v5; // [rsp+6Ch] [rbp-Ch] google::protobuf::io::ConcatenatingInputStream *v6; // [rsp+70h] [rbp-8h] v6 = this; v5 = a2; if ( *((int *)this + 4) <= 0 ) { google::protobuf::internal::LogMessage::LogMessage( v4, 2LL, "/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/io/zero_copy_stream_impl.cc", 333LL); v2 = google::protobuf::internal::LogMessage::operator<<(v4, "Can't BackUp() after failed Next()."); google::protobuf::internal::LogFinisher::operator=(v3, v2); google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v4); } else { (*(void ( **)(_QWORD, _QWORD))(***((_QWORD ***)this + 1) + 24LL))(**((_QWORD **)this + 1), v5); } }
_M_emplace_hint_unique<std::piecewise_construct_t_const&,std::tuple<std::__cxx11::string&&>,std::tuple<>>: SUB RSP,0x88 MOV qword ptr [RSP + 0x78],RSI MOV qword ptr [RSP + 0x70],RDI MOV qword ptr [RSP + 0x68],RDX MOV qword ptr [RSP + 0x60],RCX MOV qword ptr [RSP + 0x58],R8 MOV RDI,qword ptr [RSP + 0x70] MOV qword ptr [RSP + 0x18],RDI MOV RSI,qword ptr [RSP + 0x68] MOV RDX,qword ptr [RSP + 0x60] MOV RCX,qword ptr [RSP + 0x58] CALL 0x001effb0 MOV qword ptr [RSP + 0x50],RAX MOV RAX,qword ptr [RSP + 0x78] MOV qword ptr [RSP + 0x38],RAX MOV RDI,qword ptr [RSP + 0x50] LAB_001efce2: CALL 0x001eff00 MOV qword ptr [RSP + 0x20],RAX JMP 0x001efcee LAB_001efcee: MOV RDX,qword ptr [RSP + 0x20] MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RSP + 0x38] CALL 0x001f0010 MOV qword ptr [RSP + 0x8],RDX MOV qword ptr [RSP + 0x10],RAX JMP 0x001efd0e LAB_001efd0e: MOV RAX,qword ptr [RSP + 0x8] MOV RCX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x40],RCX MOV qword ptr [RSP + 0x48],RAX CMP qword ptr [RSP + 0x48],0x0 JZ 0x001efd85 MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RSP + 0x40] MOV RDX,qword ptr [RSP + 0x48] MOV RCX,qword ptr [RSP + 0x50] CALL 0x001f03a0 LAB_001efd43: MOV qword ptr [RSP],RAX JMP 0x001efd49 LAB_001efd49: MOV RAX,qword ptr [RSP] MOV qword ptr [RSP + 0x80],RAX JMP 0x001efdbf LAB_001efd85: MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RSP + 0x50] CALL 0x001e65b0 MOV RSI,qword ptr [RSP + 0x40] LEA RDI,[RSP + 0x80] CALL 0x001eff30 JMP 0x001efdbf LAB_001efdbf: MOV RAX,qword ptr [RSP + 0x80] ADD RSP,0x88 RET
/* std::_Rb_tree_iterator<std::pair<std::__cxx11::string const, google::protobuf::compiler::cpp::FileGenerator::ForwardDeclarations> > std::_Rb_tree<std::__cxx11::string, std::pair<std::__cxx11::string const, google::protobuf::compiler::cpp::FileGenerator::ForwardDeclarations>, std::_Select1st<std::pair<std::__cxx11::string const, google::protobuf::compiler::cpp::FileGenerator::ForwardDeclarations> >, std::less<std::__cxx11::string >, std::allocator<std::pair<std::__cxx11::string const, google::protobuf::compiler::cpp::FileGenerator::ForwardDeclarations> > >::_M_emplace_hint_unique<std::piecewise_construct_t const&, std::tuple<std::__cxx11::string&&>, std::tuple<> >(std::_Rb_tree_const_iterator<std::pair<std::__cxx11::string const, google::protobuf::compiler::cpp::FileGenerator::ForwardDeclarations> >, std::piecewise_construct_t const&, std::tuple<std::__cxx11::string&&>&&, std::tuple<>&&) */ int8 __thiscall std:: _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,google::protobuf::compiler::cpp::FileGenerator::ForwardDeclarations>,std::_Select1st<std::pair<std::__cxx11::string_const,google::protobuf::compiler::cpp::FileGenerator::ForwardDeclarations>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,google::protobuf::compiler::cpp::FileGenerator::ForwardDeclarations>>> :: _M_emplace_hint_unique<std::piecewise_construct_t_const&,std::tuple<std::__cxx11::string&&>,std::tuple<>> (_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,google::protobuf::compiler::cpp::FileGenerator::ForwardDeclarations>,std::_Select1st<std::pair<std::__cxx11::string_const,google::protobuf::compiler::cpp::FileGenerator::ForwardDeclarations>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,google::protobuf::compiler::cpp::FileGenerator::ForwardDeclarations>>> *this,int8 param_2,piecewise_construct_t *param_3,tuple *param_4,tuple *param_5) { _Rb_tree_node *p_Var1; int8 uVar2; int1 auVar3 [16]; int8 local_8; p_Var1 = _M_create_node<std::piecewise_construct_t_const&,std::tuple<std::__cxx11::string&&>,std::tuple<>> (this,param_3,param_4,param_5); /* try { // try from 001efce2 to 001efd42 has its CatchHandler @ 001efd57 */ uVar2 = _S_key(p_Var1); auVar3 = _M_get_insert_hint_unique_pos(this,param_2,uVar2); if (auVar3._8_8_ == (_Rb_tree_node_base *)0x0) { _M_drop_node(this,p_Var1); _Rb_tree_iterator<std::pair<std::__cxx11::string_const,google::protobuf::compiler::cpp::FileGenerator::ForwardDeclarations>> ::_Rb_tree_iterator((_Rb_tree_iterator<std::pair<std::__cxx11::string_const,google::protobuf::compiler::cpp::FileGenerator::ForwardDeclarations>> *)&local_8,auVar3._0_8_); } else { local_8 = _M_insert_node(this,auVar3._0_8_,auVar3._8_8_,p_Var1); } return local_8; }
49,399
google::protobuf::io::ConcatenatingInputStream::BackUp(int)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/io/zero_copy_stream_impl.cc
void ConcatenatingInputStream::BackUp(int count) { if (stream_count_ > 0) { streams_[0]->BackUp(count); } else { GOOGLE_LOG(DFATAL) << "Can't BackUp() after failed Next()."; } }
O3
cpp
google::protobuf::io::ConcatenatingInputStream::BackUp(int): pushq %rbx subq $0x40, %rsp cmpl $0x0, 0x10(%rdi) jle 0xfc064 movq 0x8(%rdi), %rax movq (%rax), %rdi movq (%rdi), %rax movq 0x18(%rax), %rax addq $0x40, %rsp popq %rbx jmpq *%rax leaq 0xf00e8(%rip), %rdx # 0x1ec153 leaq 0x8(%rsp), %rbx movq %rbx, %rdi movl $0x2, %esi movl $0x14d, %ecx # imm = 0x14D callq 0x1072ba leaq 0xf016c(%rip), %rsi # 0x1ec1f5 movq %rbx, %rdi callq 0x106db8 leaq 0x7(%rsp), %rdi movq %rax, %rsi callq 0x106e92 leaq 0x8(%rsp), %rdi callq 0x1072d8 addq $0x40, %rsp popq %rbx retq jmp 0xfc0b0 movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x1072d8 movq %rbx, %rdi callq 0x1f860 nop
_ZN6google8protobuf2io24ConcatenatingInputStream6BackUpEi: push rbx sub rsp, 40h cmp dword ptr [rdi+10h], 0 jle short loc_FC064 mov rax, [rdi+8] mov rdi, [rax] mov rax, [rdi] mov rax, [rax+18h] add rsp, 40h pop rbx jmp rax loc_FC064: lea rdx, aWorkspaceLlm4b_50; "/workspace/llm4binary/github2025/aimrt_"... lea rbx, [rsp+48h+var_40] mov rdi, rbx mov esi, 2 mov ecx, 14Dh call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int) lea rsi, aCanTBackupAfte; "Can't BackUp() after failed Next()." mov rdi, rbx call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) lea rdi, [rsp+48h+var_41] mov rsi, rax call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &) lea rdi, [rsp+48h+var_40]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() add rsp, 40h pop rbx retn jmp short $+2 loc_FC0B0: mov rbx, rax lea rdi, [rsp+arg_0]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() mov rdi, rbx call __Unwind_Resume
void google::protobuf::io::ConcatenatingInputStream::BackUp( google::protobuf::io::ConcatenatingInputStream *this) { long long v1; // rax char v2; // [rsp+7h] [rbp-41h] BYREF _BYTE v3[64]; // [rsp+8h] [rbp-40h] BYREF if ( *((int *)this + 4) <= 0 ) { google::protobuf::internal::LogMessage::LogMessage( v3, 2LL, "/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/io/zero_copy_stream_impl.cc", 333LL); v1 = google::protobuf::internal::LogMessage::operator<<(v3, "Can't BackUp() after failed Next()."); google::protobuf::internal::LogFinisher::operator=(&v2, v1); google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v3); } else { (*(void ( **)(_QWORD))(***((_QWORD ***)this + 1) + 24LL))(**((_QWORD **)this + 1)); } }
BackUp: PUSH RBX SUB RSP,0x40 CMP dword ptr [RDI + 0x10],0x0 JLE 0x001fc064 MOV RAX,qword ptr [RDI + 0x8] MOV RDI,qword ptr [RAX] MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0x18] ADD RSP,0x40 POP RBX JMP RAX LAB_001fc064: LEA RDX,[0x2ec153] LEA RBX,[RSP + 0x8] MOV RDI,RBX MOV ESI,0x2 MOV ECX,0x14d CALL 0x002072ba LAB_001fc082: LEA RSI,[0x2ec1f5] MOV RDI,RBX CALL 0x00206db8 LAB_001fc091: LEA RDI,[RSP + 0x7] MOV RSI,RAX CALL 0x00206e92 LAB_001fc09e: LEA RDI,[RSP + 0x8] CALL 0x002072d8 ADD RSP,0x40 POP RBX RET
/* google::protobuf::io::ConcatenatingInputStream::BackUp(int) */ void google::protobuf::io::ConcatenatingInputStream::BackUp(int param_1) { LogMessage *pLVar1; int4 in_register_0000003c; LogFinisher local_41; LogMessage local_40 [56]; if (0 < *(int *)(CONCAT44(in_register_0000003c,param_1) + 0x10)) { /* WARNING: Could not recover jumptable at 0x001fc062. Too many branches */ /* WARNING: Treating indirect jump as call */ (**(code **)(*(long *)**(int8 **)(CONCAT44(in_register_0000003c,param_1) + 8) + 0x18))(); return; } internal::LogMessage::LogMessage (local_40,2, "/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/io/zero_copy_stream_impl.cc" ,0x14d); /* try { // try from 001fc082 to 001fc090 has its CatchHandler @ 001fc0b0 */ pLVar1 = (LogMessage *) internal::LogMessage::operator<<(local_40,"Can\'t BackUp() after failed Next()."); /* try { // try from 001fc091 to 001fc09d has its CatchHandler @ 001fc0ae */ internal::LogFinisher::operator=(&local_41,pLVar1); internal::LogMessage::~LogMessage(local_40); return; }