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
60,300
init_io_cache_ext
eloqsql/mysys/mf_iocache.c
int init_io_cache_ext(IO_CACHE *info, File file, size_t cachesize, enum cache_type type, my_off_t seek_offset, pbool use_async_io, myf cache_myflags, PSI_file_key file_key __attribute__((unused))) { size_t min_cache; my_off_t pos; my_off_t end_of_file= ~(my_off_t) 0; DBUG_ENTER("init_io_cache_ext"); DBUG_PRINT("enter",("cache:%p type: %d pos: %llu", info, (int) type, (ulonglong) seek_offset)); info->file= file; info->type= TYPE_NOT_SET; /* Don't set it until mutex are created */ info->pos_in_file= seek_offset; info->alloced_buffer = 0; info->buffer=0; info->seek_not_done= 0; info->next_file_user= NULL; if (file >= 0) { DBUG_ASSERT(!(cache_myflags & MY_ENCRYPT)); pos= mysql_file_tell(file, MYF(0)); if ((pos == (my_off_t) -1) && (my_errno == ESPIPE)) { /* This kind of object doesn't support seek() or tell(). Don't set a seek_not_done that will make us again try to seek() later and fail. Additionally, if we're supposed to start somewhere other than the the beginning of whatever this file is, then somebody made a bad assumption. */ DBUG_ASSERT(seek_offset == 0); } else info->seek_not_done= MY_TEST(seek_offset != pos); } else if (type == WRITE_CACHE && _my_b_encr_read) { cache_myflags|= MY_ENCRYPT; DBUG_ASSERT(seek_offset == 0); } info->disk_writes= 0; info->share=0; if (!cachesize && !(cachesize= my_default_record_cache_size)) DBUG_RETURN(1); /* No cache requested */ min_cache=use_async_io ? IO_SIZE*4 : IO_SIZE*2; if (type == READ_CACHE || type == SEQ_READ_APPEND) { /* Assume file isn't growing */ DBUG_ASSERT(!(cache_myflags & MY_ENCRYPT)); if (!(cache_myflags & MY_DONT_CHECK_FILESIZE)) { /* Calculate end of file to avoid allocating oversized buffers */ end_of_file= mysql_file_seek(file, 0L, MY_SEEK_END, MYF(0)); /* Need to reset seek_not_done now that we just did a seek. */ info->seek_not_done= end_of_file == seek_offset ? 0 : 1; if (end_of_file < seek_offset) end_of_file=seek_offset; /* Trim cache size if the file is very small */ if ((my_off_t) cachesize > end_of_file-seek_offset+IO_SIZE*2-1) { cachesize= (size_t) (end_of_file-seek_offset)+IO_SIZE*2-1; use_async_io=0; /* No need to use async */ } } } cache_myflags &= ~MY_DONT_CHECK_FILESIZE; if (type != READ_NET) { /* Retry allocating memory in smaller blocks until we get one */ cachesize= ((cachesize + min_cache-1) & ~(min_cache-1)); for (;;) { size_t buffer_block; /* Unset MY_WAIT_IF_FULL bit if it is set, to prevent conflict with MY_ZEROFILL. */ myf flags= (myf) (cache_myflags & ~(MY_WME | MY_WAIT_IF_FULL)); if (cachesize < min_cache) cachesize = min_cache; buffer_block= cachesize; if (type == SEQ_READ_APPEND) buffer_block *= 2; else if (cache_myflags & MY_ENCRYPT) buffer_block= 2*(buffer_block + MY_AES_BLOCK_SIZE) + sizeof(IO_CACHE_CRYPT); if (cachesize == min_cache) flags|= (myf) MY_WME; if ((info->buffer= (uchar*) my_malloc(key_memory_IO_CACHE, buffer_block, flags)) != 0) { if (type == SEQ_READ_APPEND) info->write_buffer= info->buffer + cachesize; else info->write_buffer= info->buffer; info->alloced_buffer= buffer_block; break; /* Enough memory found */ } if (cachesize == min_cache) DBUG_RETURN(2); /* Can't alloc cache */ /* Try with less memory */ cachesize= (cachesize*3/4 & ~(min_cache-1)); } } DBUG_PRINT("info",("init_io_cache_ext: cachesize = %lu", (ulong) cachesize)); info->read_length=info->buffer_length=cachesize; info->myflags=cache_myflags & ~(MY_NABP | MY_FNABP); info->request_pos= info->read_pos= info->write_pos = info->buffer; if (type == SEQ_READ_APPEND) { info->append_read_pos = info->write_pos = info->write_buffer; info->write_end = info->write_buffer + info->buffer_length; mysql_mutex_init(key_IO_CACHE_append_buffer_lock, &info->append_buffer_lock, MY_MUTEX_INIT_FAST); } #if defined(SAFE_MUTEX) else { /* Clear mutex so that safe_mutex will notice that it's not initialized */ bzero((char*) &info->append_buffer_lock, sizeof(info->append_buffer_lock)); } #endif if (type == WRITE_CACHE) info->write_end= info->buffer+info->buffer_length- (seek_offset & (IO_SIZE-1)); else info->read_end=info->buffer; /* Nothing in cache */ /* End_of_file may be changed by user later */ info->end_of_file= end_of_file; info->error=0; info->type= type; init_functions(info); DBUG_RETURN(0); }
O3
c
init_io_cache_ext: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x88, %rsp movq %rdx, %rbx movl %esi, %r15d movq %rdi, %r12 movq 0x10(%rbp), %r13 movl %esi, 0xd4(%rdi) xorl %eax, %eax movl %eax, 0xb0(%rdi) movq %r8, -0x48(%rbp) movq %r8, (%rdi) movq %rax, 0x100(%rdi) movq %rax, 0x20(%rdi) movl %eax, 0xe0(%rdi) movq %rax, 0xd8(%rdi) testl %esi, %esi movl %ecx, -0x2c(%rbp) js 0x2a7e6 movl %r9d, %r14d leaq 0x2d0401(%rip), %rax # 0x2fab88 movq (%rax), %rax leaq -0xb0(%rbp), %rdi movl %r15d, %esi movl $0x9, %edx callq *0x158(%rax) testq %rax, %rax jne 0x2aacb movl %r15d, %edi xorl %esi, %esi callq 0x30e9c movq %rax, %r13 cmpq $-0x1, %r13 movl %r14d, %r9d jne 0x2a7cb callq 0x3193e movl %r14d, %r9d cmpl $0x1d, (%rax) je 0x2a7dc xorl %eax, %eax cmpq -0x48(%rbp), %r13 setne %al movl %eax, 0xe0(%r12) movq 0x10(%rbp), %r13 movl -0x2c(%rbp), %r14d jmp 0x2a807 movl %ecx, %r14d leaq 0x34e7a8(%rip), %rax # 0x378f98 movq %r13, %rcx orq $0x40, %rcx cmpq $0x0, (%rax) cmoveq %r13, %rcx cmpl $0x2, %r14d cmoveq %rcx, %r13 xorl %eax, %eax movq %rax, 0xb8(%r12) movq %rax, 0x98(%r12) testq %rbx, %rbx jne 0x2a831 leaq 0x2cfe5b(%rip), %rax # 0x2fa680 movq (%rax), %rbx testq %rbx, %rbx je 0x2aab4 movq %r12, -0x40(%rbp) xorl %r12d, %r12d testb %r9b, %r9b setne %cl sete %dl movq $-0x1, -0x60(%rbp) cmpl $0x1, %r14d je 0x2a874 cmpl $0x3, %r14d je 0x2a874 cmpl $0x5, %r14d jne 0x2a8f3 movq -0x40(%rbp), %r12 movq 0x20(%r12), %rax movq $-0x1, %r15 jmp 0x2a9c1 testb %r13b, %r13b movq %r13, -0x38(%rbp) js 0x2a8f7 movb %dl, -0x50(%rbp) movb %cl, -0x58(%rbp) leaq 0x2d02fe(%rip), %rax # 0x2fab88 movq (%rax), %rax leaq -0xb0(%rbp), %rdi movl %r15d, %esi movl $0x8, %edx callq *0x158(%rax) testq %rax, %rax jne 0x2aae6 movl %r15d, %edi xorl %esi, %esi movl $0x2, %edx xorl %ecx, %ecx callq 0x30e38 xorl %esi, %esi movq -0x48(%rbp), %rdx cmpq %rdx, %rax cmovbeq %rdx, %rax setne %sil movq -0x40(%rbp), %rcx movl %esi, 0xe0(%rcx) movq %rax, -0x60(%rbp) subq %rdx, %rax addq $0x1fff, %rax # imm = 0x1FFF cmpq %rax, %rbx cmovaeq %rax, %rbx movb -0x58(%rbp), %cl movb -0x50(%rbp), %dl jmp 0x2a8f7 movq %r13, -0x38(%rbp) xorl %eax, %eax movb %dl, %al shll $0xd, %eax orq $-0x4000, %rax # imm = 0xC000 movq %rax, -0x58(%rbp) movb %cl, %r12b shll $0xd, %r12d addq $0x2000, %r12 # imm = 0x2000 leaq (%r12,%rbx), %r13 decq %r13 movq -0x38(%rbp), %r14 andl $0xffffff4f, %r14d # imm = 0xFFFFFF4F leaq 0x10(%r14), %rax movq %rax, -0x50(%rbp) andq -0x58(%rbp), %r13 cmpq %r12, %r13 movq %r12, %rbx cmovaq %r13, %rbx cmpl $0x3, -0x2c(%rbp) jne 0x2a94a leaq (%rbx,%rbx), %r15 jmp 0x2a95b movq %rbx, %r15 testb $0x40, -0x38(%rbp) je 0x2a95b leaq 0x48(,%rbx,2), %r15 cmpq %r13, %r12 movq -0x50(%rbp), %rdx cmovbq %r14, %rdx leaq 0x34f017(%rip), %rax # 0x379984 movl (%rax), %edi movq %r15, %rsi callq 0x300d9 movq -0x40(%rbp), %rcx movq %rax, 0x20(%rcx) testq %rax, %rax jne 0x2a997 cmpq %r13, %r12 jae 0x2aa64 leaq (%rbx,%rbx,2), %r13 shrq $0x2, %r13 jmp 0x2a930 xorl %ecx, %ecx movl -0x2c(%rbp), %r14d cmpl $0x3, %r14d cmoveq %rbx, %rcx addq %rax, %rcx movq -0x40(%rbp), %r12 movq %rcx, 0x30(%r12) movq %r15, 0x100(%r12) movq -0x38(%rbp), %r13 movq -0x60(%rbp), %r15 andl $0xffffff79, %r13d # imm = 0xFFFFFF79 movq %rbx, 0xe8(%r12) movq %rbx, 0xf0(%r12) movq %r13, 0xf8(%r12) movq %rax, 0x40(%r12) movq %rax, 0x10(%r12) movq %rax, 0x28(%r12) cmpl $0x3, %r14d jne 0x2aa6b movq 0x30(%r12), %rax movq %rax, 0x40(%r12) movq %rax, 0x38(%r12) addq %rax, %rbx movq %rbx, 0x48(%r12) leaq 0x34e5d1(%rip), %rax # 0x378fe4 movl (%rax), %edi movq %r15, %rbx leaq 0x50(%r12), %r15 leaq 0x2d0164(%rip), %rax # 0x2fab88 movq (%rax), %rax movq %r15, %rsi callq *0x40(%rax) movq %rax, 0x90(%r12) movq %r15, 0x88(%r12) xorps %xmm0, %xmm0 movups %xmm0, 0x78(%r12) leaq 0x34f283(%rip), %rsi # 0x379cd0 movq %r15, %rdi movq %rbx, %r15 callq 0x24550 movq 0x20(%r12), %rax movl $0x18, %ecx jmp 0x2aa8b movl $0x2, %eax jmp 0x2aab9 movl $0x18, %ecx cmpl $0x2, %r14d jne 0x2aa8b addq %rbx, %rax movq -0x48(%rbp), %rcx andl $0xfff, %ecx # imm = 0xFFF subq %rcx, %rax movl $0x48, %ecx movq %rax, (%r12,%rcx) movq %r15, 0x8(%r12) movl $0x0, 0xe4(%r12) movl %r14d, 0xb0(%r12) movq %r12, %rdi callq 0x2ab03 xorl %eax, %eax jmp 0x2aab9 movl $0x1, %eax addq $0x88, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq -0x68(%rbp), %r13 movq %rax, %rdi movl %r15d, %esi movq %r13, %rdx callq 0x24a4e movq (%r13), %r13 jmp 0x2a7b5 leaq -0x68(%rbp), %rcx movq %rax, %rdi movl %r15d, %esi movq %rcx, %r15 movq %rcx, %rdx callq 0x24aa6 movq (%r15), %rax jmp 0x2a8bc
init_io_cache_ext: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 88h mov rbx, rdx mov r15d, esi mov r12, rdi mov r13, [rbp+arg_0] mov [rdi+0D4h], esi xor eax, eax mov [rdi+0B0h], eax mov [rbp+var_48], r8 mov [rdi], r8 mov [rdi+100h], rax mov [rdi+20h], rax mov [rdi+0E0h], eax mov [rdi+0D8h], rax test esi, esi mov [rbp+var_2C], ecx js short loc_2A7E6 mov r14d, r9d lea rax, PSI_server mov rax, [rax] lea rdi, [rbp+var_B0] mov esi, r15d mov edx, 9 call qword ptr [rax+158h] test rax, rax jnz loc_2AACB mov edi, r15d xor esi, esi call my_tell mov r13, rax loc_2A7B5: cmp r13, 0FFFFFFFFFFFFFFFFh mov r9d, r14d jnz short loc_2A7CB call _my_thread_var mov r9d, r14d cmp dword ptr [rax], 1Dh jz short loc_2A7DC loc_2A7CB: xor eax, eax cmp r13, [rbp+var_48] setnz al mov [r12+0E0h], eax loc_2A7DC: mov r13, [rbp+arg_0] mov r14d, [rbp+var_2C] jmp short loc_2A807 loc_2A7E6: mov r14d, ecx lea rax, _my_b_encr_read mov rcx, r13 or rcx, 40h cmp qword ptr [rax], 0 cmovz rcx, r13 cmp r14d, 2 cmovz r13, rcx loc_2A807: xor eax, eax mov [r12+0B8h], rax mov [r12+98h], rax test rbx, rbx jnz short loc_2A831 lea rax, my_default_record_cache_size mov rbx, [rax] test rbx, rbx jz loc_2AAB4 loc_2A831: mov [rbp+var_40], r12 xor r12d, r12d test r9b, r9b setnz cl setz dl mov [rbp+var_60], 0FFFFFFFFFFFFFFFFh cmp r14d, 1 jz short loc_2A874 cmp r14d, 3 jz short loc_2A874 cmp r14d, 5 jnz loc_2A8F3 mov r12, [rbp+var_40] mov rax, [r12+20h] mov r15, 0FFFFFFFFFFFFFFFFh jmp loc_2A9C1 loc_2A874: test r13b, r13b mov [rbp+var_38], r13 js short loc_2A8F7 mov byte ptr [rbp+var_50], dl mov byte ptr [rbp+var_58], cl lea rax, PSI_server mov rax, [rax] lea rdi, [rbp+var_B0] mov esi, r15d mov edx, 8 call qword ptr [rax+158h] test rax, rax jnz loc_2AAE6 mov edi, r15d xor esi, esi mov edx, 2 xor ecx, ecx call my_seek loc_2A8BC: xor esi, esi mov rdx, [rbp+var_48] cmp rax, rdx cmovbe rax, rdx setnz sil mov rcx, [rbp+var_40] mov [rcx+0E0h], esi mov [rbp+var_60], rax sub rax, rdx add rax, 1FFFh cmp rbx, rax cmovnb rbx, rax mov cl, byte ptr [rbp+var_58] mov dl, byte ptr [rbp+var_50] jmp short loc_2A8F7 loc_2A8F3: mov [rbp+var_38], r13 loc_2A8F7: xor eax, eax mov al, dl shl eax, 0Dh or rax, 0FFFFFFFFFFFFC000h mov [rbp+var_58], rax mov r12b, cl shl r12d, 0Dh add r12, 2000h lea r13, [r12+rbx] dec r13 mov r14, [rbp+var_38] and r14d, 0FFFFFF4Fh lea rax, [r14+10h] mov [rbp+var_50], rax loc_2A930: and r13, [rbp+var_58] cmp r13, r12 mov rbx, r12 cmova rbx, r13 cmp [rbp+var_2C], 3 jnz short loc_2A94A lea r15, [rbx+rbx] jmp short loc_2A95B loc_2A94A: mov r15, rbx test byte ptr [rbp+var_38], 40h jz short loc_2A95B lea r15, ds:48h[rbx*2] loc_2A95B: cmp r12, r13 mov rdx, [rbp+var_50] cmovb rdx, r14 lea rax, key_memory_IO_CACHE mov edi, [rax] mov rsi, r15 call my_malloc mov rcx, [rbp+var_40] mov [rcx+20h], rax test rax, rax jnz short loc_2A997 cmp r12, r13 jnb loc_2AA64 lea r13, [rbx+rbx*2] shr r13, 2 jmp short loc_2A930 loc_2A997: xor ecx, ecx mov r14d, [rbp+var_2C] cmp r14d, 3 cmovz rcx, rbx add rcx, rax mov r12, [rbp+var_40] mov [r12+30h], rcx mov [r12+100h], r15 mov r13, [rbp+var_38] mov r15, [rbp+var_60] loc_2A9C1: and r13d, 0FFFFFF79h mov [r12+0E8h], rbx mov [r12+0F0h], rbx mov [r12+0F8h], r13 mov [r12+40h], rax mov [r12+10h], rax mov [r12+28h], rax cmp r14d, 3 jnz short loc_2AA6B mov rax, [r12+30h] mov [r12+40h], rax mov [r12+38h], rax add rbx, rax mov [r12+48h], rbx lea rax, key_IO_CACHE_append_buffer_lock mov edi, [rax] mov rbx, r15 lea r15, [r12+50h] lea rax, PSI_server mov rax, [rax] mov rsi, r15 call qword ptr [rax+40h] mov [r12+90h], rax mov [r12+88h], r15 xorps xmm0, xmm0 movups xmmword ptr [r12+78h], xmm0 lea rsi, my_fast_mutexattr mov rdi, r15 mov r15, rbx call _pthread_mutex_init mov rax, [r12+20h] mov ecx, 18h jmp short loc_2AA8B loc_2AA64: mov eax, 2 jmp short loc_2AAB9 loc_2AA6B: mov ecx, 18h cmp r14d, 2 jnz short loc_2AA8B add rax, rbx mov rcx, [rbp+var_48] and ecx, 0FFFh sub rax, rcx mov ecx, 48h ; 'H' loc_2AA8B: mov [r12+rcx], rax mov [r12+8], r15 mov dword ptr [r12+0E4h], 0 mov [r12+0B0h], r14d mov rdi, r12 call init_functions xor eax, eax jmp short loc_2AAB9 loc_2AAB4: mov eax, 1 loc_2AAB9: add rsp, 88h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_2AACB: lea r13, [rbp+var_68] mov rdi, rax mov esi, r15d mov rdx, r13 call init_io_cache_ext_cold_1 mov r13, [r13+0] jmp loc_2A7B5 loc_2AAE6: lea rcx, [rbp+var_68] mov rdi, rax mov esi, r15d mov r15, rcx mov rdx, rcx call init_io_cache_ext_cold_2 mov rax, [r15] jmp loc_2A8BC
long long init_io_cache_ext( long long a1, long long a2, unsigned long long a3, int a4, unsigned long long a5, unsigned int a6, long long a7) { unsigned long long v7; // rbx unsigned int v8; // r15d long long v10; // r13 unsigned int v11; // r14d long long v12; // rax long long v13; // rdi long long v14; // rcx long long v15; // r8 long long v16; // r13 _DWORD *v17; // rax int v18; // r14d int v19; // r12d long long v20; // r12 long long v21; // rax long long v22; // r15 long long v23; // rax unsigned long long v24; // rax int v25; // esi unsigned long long v26; // rdx bool v27; // zf unsigned long long v28; // rax unsigned long long v29; // r12 unsigned long long v30; // r13 unsigned long long v31; // r13 long long v32; // r15 unsigned long long v33; // rcx long long v34; // rax long long v35; // rcx _BYTE v37[72]; // [rsp+0h] [rbp-B0h] BYREF unsigned long long v38; // [rsp+48h] [rbp-68h] BYREF long long v39; // [rsp+50h] [rbp-60h] unsigned long long v40; // [rsp+58h] [rbp-58h] long long v41; // [rsp+60h] [rbp-50h] unsigned long long v42; // [rsp+68h] [rbp-48h] long long v43; // [rsp+70h] [rbp-40h] long long v44; // [rsp+78h] [rbp-38h] int v45; // [rsp+84h] [rbp-2Ch] v7 = a3; v8 = a2; v10 = a7; *(_DWORD *)(a1 + 212) = a2; *(_DWORD *)(a1 + 176) = 0; v42 = a5; *(_QWORD *)a1 = a5; *(_QWORD *)(a1 + 256) = 0LL; *(_QWORD *)(a1 + 32) = 0LL; *(_DWORD *)(a1 + 224) = 0; *(_QWORD *)(a1 + 216) = 0LL; v45 = a4; if ( (int)a2 < 0 ) { v18 = a4; v14 = a7 | 0x40; if ( !my_b_encr_read ) v14 = a7; if ( v18 == 2 ) v10 = v14; } else { v11 = a6; v12 = (*((long long ( **)(_BYTE *, _QWORD, long long))PSI_server + 43))(v37, (unsigned int)a2, 9LL); if ( v12 ) { v13 = v12; a2 = (unsigned int)a2; init_io_cache_ext_cold_1(v12, a2, &v38); v16 = v38; } else { v13 = (unsigned int)a2; a2 = 0LL; v16 = my_tell(v8, 0LL); } LOBYTE(a6) = v11; if ( v16 != -1 || (v17 = (_DWORD *)my_thread_var(v13, a2, a3, v14, v15, v11), LOBYTE(a6) = v11, *v17 != 29) ) *(_DWORD *)(a1 + 224) = v16 != v42; v10 = a7; v18 = v45; } *(_QWORD *)(a1 + 184) = 0LL; *(_QWORD *)(a1 + 152) = 0LL; if ( !v7 ) { v7 = my_default_record_cache_size; if ( !my_default_record_cache_size ) return 1LL; } v43 = a1; v19 = 0; LOBYTE(v14) = (_BYTE)a6 != 0; LOBYTE(a3) = (_BYTE)a6 == 0; v39 = -1LL; if ( v18 == 1 || v18 == 3 ) { v44 = v10; if ( (v10 & 0x80u) == 0LL ) { LOBYTE(v41) = (_BYTE)a6 == 0; LOBYTE(v40) = (_BYTE)a6 != 0; v23 = (*((long long ( **)(_BYTE *, _QWORD, long long))PSI_server + 43))(v37, v8, 8LL); if ( v23 ) { init_io_cache_ext_cold_2(v23, v8, &v38); v24 = v38; } else { v24 = my_seek(v8, 0LL, 2LL, 0LL); } v25 = 0; v26 = v42; v27 = v24 == v42; if ( v24 <= v42 ) v24 = v42; LOBYTE(v25) = !v27; *(_DWORD *)(v43 + 224) = v25; v39 = v24; v28 = v24 - v26 + 0x1FFF; if ( v7 >= v28 ) v7 = v28; LOBYTE(v14) = v40; LOBYTE(a3) = v41; } LABEL_27: v40 = ((unsigned __int8)a3 << 13) | 0xFFFFFFFFFFFFC000LL; LOBYTE(v19) = v14; v29 = (unsigned int)(v19 << 13) + 0x2000LL; v30 = v29 + v7 - 1; v41 = ((unsigned int)v44 & 0xFFFFFF4F) + 16LL; while ( 1 ) { v31 = v40 & v30; v7 = v29; if ( v31 > v29 ) v7 = v31; if ( v45 == 3 ) { v32 = 2 * v7; } else { v32 = v7; if ( (v44 & 0x40) != 0 ) v32 = 2 * v7 + 72; } v21 = my_malloc(key_memory_IO_CACHE, v32); *(_QWORD *)(v43 + 32) = v21; if ( v21 ) break; if ( v29 >= v31 ) return 2LL; v30 = (3 * v7) >> 2; } v33 = 0LL; v18 = v45; if ( v45 == 3 ) v33 = v7; v14 = v21 + v33; v20 = v43; *(_QWORD *)(v43 + 48) = v14; *(_QWORD *)(v20 + 256) = v32; LODWORD(v10) = v44; v22 = v39; goto LABEL_40; } if ( v18 != 5 ) { v44 = v10; goto LABEL_27; } v20 = v43; v21 = *(_QWORD *)(v43 + 32); v22 = -1LL; LABEL_40: *(_QWORD *)(v20 + 232) = v7; *(_QWORD *)(v20 + 240) = v7; *(_QWORD *)(v20 + 248) = (unsigned int)v10 & 0xFFFFFF79; *(_QWORD *)(v20 + 64) = v21; *(_QWORD *)(v20 + 16) = v21; *(_QWORD *)(v20 + 40) = v21; if ( v18 == 3 ) { v34 = *(_QWORD *)(v20 + 48); *(_QWORD *)(v20 + 64) = v34; *(_QWORD *)(v20 + 56) = v34; *(_QWORD *)(v20 + 72) = v34 + v7; *(_QWORD *)(v20 + 144) = (*((long long ( **)(_QWORD, long long, unsigned long long, long long))PSI_server + 8))( key_IO_CACHE_append_buffer_lock, v20 + 80, a3, v14); *(_QWORD *)(v20 + 136) = v20 + 80; *(_OWORD *)(v20 + 120) = 0LL; pthread_mutex_init(v20 + 80, &my_fast_mutexattr); v21 = *(_QWORD *)(v20 + 32); v35 = 24LL; } else { v35 = 24LL; if ( v18 == 2 ) { v21 = v7 + v21 - (v42 & 0xFFF); v35 = 72LL; } } *(_QWORD *)(v20 + v35) = v21; *(_QWORD *)(v20 + 8) = v22; *(_DWORD *)(v20 + 228) = 0; *(_DWORD *)(v20 + 176) = v18; init_functions(v20); return 0LL; }
init_io_cache_ext: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x88 MOV RBX,RDX MOV R15D,ESI MOV R12,RDI MOV R13,qword ptr [RBP + 0x10] MOV dword ptr [RDI + 0xd4],ESI XOR EAX,EAX MOV dword ptr [RDI + 0xb0],EAX MOV qword ptr [RBP + -0x48],R8 MOV qword ptr [RDI],R8 MOV qword ptr [RDI + 0x100],RAX MOV qword ptr [RDI + 0x20],RAX MOV dword ptr [RDI + 0xe0],EAX MOV qword ptr [RDI + 0xd8],RAX TEST ESI,ESI MOV dword ptr [RBP + -0x2c],ECX JS 0x0012a7e6 MOV R14D,R9D LEA RAX,[0x3fab88] MOV RAX,qword ptr [RAX] LEA RDI,[RBP + -0xb0] MOV ESI,R15D MOV EDX,0x9 CALL qword ptr [RAX + 0x158] TEST RAX,RAX JNZ 0x0012aacb MOV EDI,R15D XOR ESI,ESI CALL 0x00130e9c MOV R13,RAX LAB_0012a7b5: CMP R13,-0x1 MOV R9D,R14D JNZ 0x0012a7cb CALL 0x0013193e MOV R9D,R14D CMP dword ptr [RAX],0x1d JZ 0x0012a7dc LAB_0012a7cb: XOR EAX,EAX CMP R13,qword ptr [RBP + -0x48] SETNZ AL MOV dword ptr [R12 + 0xe0],EAX LAB_0012a7dc: MOV R13,qword ptr [RBP + 0x10] MOV R14D,dword ptr [RBP + -0x2c] JMP 0x0012a807 LAB_0012a7e6: MOV R14D,ECX LEA RAX,[0x478f98] MOV RCX,R13 OR RCX,0x40 CMP qword ptr [RAX],0x0 CMOVZ RCX,R13 CMP R14D,0x2 CMOVZ R13,RCX LAB_0012a807: XOR EAX,EAX MOV qword ptr [R12 + 0xb8],RAX MOV qword ptr [R12 + 0x98],RAX TEST RBX,RBX JNZ 0x0012a831 LEA RAX,[0x3fa680] MOV RBX,qword ptr [RAX] TEST RBX,RBX JZ 0x0012aab4 LAB_0012a831: MOV qword ptr [RBP + -0x40],R12 XOR R12D,R12D TEST R9B,R9B SETNZ CL SETZ DL MOV qword ptr [RBP + -0x60],-0x1 CMP R14D,0x1 JZ 0x0012a874 CMP R14D,0x3 JZ 0x0012a874 CMP R14D,0x5 JNZ 0x0012a8f3 MOV R12,qword ptr [RBP + -0x40] MOV RAX,qword ptr [R12 + 0x20] MOV R15,-0x1 JMP 0x0012a9c1 LAB_0012a874: TEST R13B,R13B MOV qword ptr [RBP + -0x38],R13 JS 0x0012a8f7 MOV byte ptr [RBP + -0x50],DL MOV byte ptr [RBP + -0x58],CL LEA RAX,[0x3fab88] MOV RAX,qword ptr [RAX] LEA RDI,[RBP + -0xb0] MOV ESI,R15D MOV EDX,0x8 CALL qword ptr [RAX + 0x158] TEST RAX,RAX JNZ 0x0012aae6 MOV EDI,R15D XOR ESI,ESI MOV EDX,0x2 XOR ECX,ECX CALL 0x00130e38 LAB_0012a8bc: XOR ESI,ESI MOV RDX,qword ptr [RBP + -0x48] CMP RAX,RDX CMOVBE RAX,RDX SETNZ SIL MOV RCX,qword ptr [RBP + -0x40] MOV dword ptr [RCX + 0xe0],ESI MOV qword ptr [RBP + -0x60],RAX SUB RAX,RDX ADD RAX,0x1fff CMP RBX,RAX CMOVNC RBX,RAX MOV CL,byte ptr [RBP + -0x58] MOV DL,byte ptr [RBP + -0x50] JMP 0x0012a8f7 LAB_0012a8f3: MOV qword ptr [RBP + -0x38],R13 LAB_0012a8f7: XOR EAX,EAX MOV AL,DL SHL EAX,0xd OR RAX,-0x4000 MOV qword ptr [RBP + -0x58],RAX MOV R12B,CL SHL R12D,0xd ADD R12,0x2000 LEA R13,[R12 + RBX*0x1] DEC R13 MOV R14,qword ptr [RBP + -0x38] AND R14D,0xffffff4f LEA RAX,[R14 + 0x10] MOV qword ptr [RBP + -0x50],RAX LAB_0012a930: AND R13,qword ptr [RBP + -0x58] CMP R13,R12 MOV RBX,R12 CMOVA RBX,R13 CMP dword ptr [RBP + -0x2c],0x3 JNZ 0x0012a94a LEA R15,[RBX + RBX*0x1] JMP 0x0012a95b LAB_0012a94a: MOV R15,RBX TEST byte ptr [RBP + -0x38],0x40 JZ 0x0012a95b LEA R15,[0x48 + RBX*0x2] LAB_0012a95b: CMP R12,R13 MOV RDX,qword ptr [RBP + -0x50] CMOVC RDX,R14 LEA RAX,[0x479984] MOV EDI,dword ptr [RAX] MOV RSI,R15 CALL 0x001300d9 MOV RCX,qword ptr [RBP + -0x40] MOV qword ptr [RCX + 0x20],RAX TEST RAX,RAX JNZ 0x0012a997 CMP R12,R13 JNC 0x0012aa64 LEA R13,[RBX + RBX*0x2] SHR R13,0x2 JMP 0x0012a930 LAB_0012a997: XOR ECX,ECX MOV R14D,dword ptr [RBP + -0x2c] CMP R14D,0x3 CMOVZ RCX,RBX ADD RCX,RAX MOV R12,qword ptr [RBP + -0x40] MOV qword ptr [R12 + 0x30],RCX MOV qword ptr [R12 + 0x100],R15 MOV R13,qword ptr [RBP + -0x38] MOV R15,qword ptr [RBP + -0x60] LAB_0012a9c1: AND R13D,0xffffff79 MOV qword ptr [R12 + 0xe8],RBX MOV qword ptr [R12 + 0xf0],RBX MOV qword ptr [R12 + 0xf8],R13 MOV qword ptr [R12 + 0x40],RAX MOV qword ptr [R12 + 0x10],RAX MOV qword ptr [R12 + 0x28],RAX CMP R14D,0x3 JNZ 0x0012aa6b MOV RAX,qword ptr [R12 + 0x30] MOV qword ptr [R12 + 0x40],RAX MOV qword ptr [R12 + 0x38],RAX ADD RBX,RAX MOV qword ptr [R12 + 0x48],RBX LEA RAX,[0x478fe4] MOV EDI,dword ptr [RAX] MOV RBX,R15 LEA R15,[R12 + 0x50] LEA RAX,[0x3fab88] MOV RAX,qword ptr [RAX] MOV RSI,R15 CALL qword ptr [RAX + 0x40] MOV qword ptr [R12 + 0x90],RAX MOV qword ptr [R12 + 0x88],R15 XORPS XMM0,XMM0 MOVUPS xmmword ptr [R12 + 0x78],XMM0 LEA RSI,[0x479cd0] MOV RDI,R15 MOV R15,RBX CALL 0x00124550 MOV RAX,qword ptr [R12 + 0x20] MOV ECX,0x18 JMP 0x0012aa8b LAB_0012aa64: MOV EAX,0x2 JMP 0x0012aab9 LAB_0012aa6b: MOV ECX,0x18 CMP R14D,0x2 JNZ 0x0012aa8b ADD RAX,RBX MOV RCX,qword ptr [RBP + -0x48] AND ECX,0xfff SUB RAX,RCX MOV ECX,0x48 LAB_0012aa8b: MOV qword ptr [R12 + RCX*0x1],RAX MOV qword ptr [R12 + 0x8],R15 MOV dword ptr [R12 + 0xe4],0x0 MOV dword ptr [R12 + 0xb0],R14D MOV RDI,R12 CALL 0x0012ab03 XOR EAX,EAX JMP 0x0012aab9 LAB_0012aab4: MOV EAX,0x1 LAB_0012aab9: ADD RSP,0x88 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0012aacb: LEA R13,[RBP + -0x68] MOV RDI,RAX MOV ESI,R15D MOV RDX,R13 CALL 0x00124a4e MOV R13,qword ptr [R13] JMP 0x0012a7b5 LAB_0012aae6: LEA RCX,[RBP + -0x68] MOV RDI,RAX MOV ESI,R15D MOV R15,RCX MOV RDX,RCX CALL 0x00124aa6 MOV RAX,qword ptr [R15] JMP 0x0012a8bc
int8 init_io_cache_ext(ulong *param_1,int param_2,ulong param_3,int param_4,ulong param_5,char param_6, ulong param_7) { pthread_mutex_t *__mutex; ulong *puVar1; int iVar2; long lVar3; ulong uVar4; int *piVar5; int8 uVar6; uint uVar7; uint uVar8; ulong uVar9; ulong uVar10; ulong uVar11; ulong uVar12; bool bVar13; int1 local_b8 [72]; ulong local_70; ulong local_68; ulong local_60; ulong local_58; ulong local_50; ulong *local_48; ulong local_40; int local_34; *(int *)((long)param_1 + 0xd4) = param_2; *(int4 *)(param_1 + 0x16) = 0; *param_1 = param_5; param_1[0x20] = 0; param_1[4] = 0; *(int4 *)(param_1 + 0x1c) = 0; param_1[0x1b] = 0; local_50 = param_5; local_34 = param_4; if (param_2 < 0) { uVar4 = param_7 | 0x40; if (_my_b_encr_read == 0) { uVar4 = param_7; } if (param_4 == 2) { param_7 = uVar4; } } else { lVar3 = (**(code **)(PSI_server + 0x158))(local_b8,param_2,9); if (lVar3 == 0) { uVar4 = my_tell(param_2,0); } else { init_io_cache_ext_cold_1(lVar3,param_2,&local_70); uVar4 = local_70; } if ((uVar4 != 0xffffffffffffffff) || (piVar5 = (int *)_my_thread_var(), *piVar5 != 0x1d)) { *(uint *)(param_1 + 0x1c) = (uint)(uVar4 != local_50); } } param_1[0x17] = 0; param_1[0x13] = 0; if ((param_3 == 0) && (param_3 = my_default_record_cache_size, my_default_record_cache_size == 0)) { uVar6 = 1; } else { bVar13 = param_6 == '\0'; uVar7 = (uint)!bVar13; uVar8 = (uint)bVar13; local_68 = 0xffffffffffffffff; local_48 = param_1; if ((local_34 == 1) || (local_34 == 3)) { uVar4 = param_7; if (-1 < (char)param_7) { local_58 = CONCAT71(local_58._1_7_,bVar13); local_60 = CONCAT71(local_60._1_7_,!bVar13); local_40 = param_7; lVar3 = (**(code **)(PSI_server + 0x158))(local_b8,param_2,8); if (lVar3 == 0) { local_70 = my_seek(param_2,0,2,0); } else { init_io_cache_ext_cold_2(lVar3,param_2,&local_70); } local_68 = local_70; if (local_70 <= local_50) { local_68 = local_50; } *(uint *)(local_48 + 0x1c) = (uint)(local_70 != local_50); uVar4 = (local_68 - local_50) + 0x1fff; if (uVar4 <= param_3) { param_3 = uVar4; } uVar7 = (uint)local_60 & 0xff; uVar8 = (uint)local_58 & 0xff; uVar4 = local_40; } } else { uVar4 = param_7; if (local_34 == 5) { uVar4 = param_1[4]; LAB_0012a9c1: iVar2 = local_34; puVar1 = local_48; uVar9 = local_68; local_48[0x1d] = param_3; local_48[0x1e] = param_3; local_48[0x1f] = (ulong)((uint)param_7 & 0xffffff79); local_48[8] = uVar4; local_48[2] = uVar4; local_48[5] = uVar4; if (local_34 == 3) { uVar4 = local_48[6]; local_48[8] = uVar4; local_48[7] = uVar4; local_48[9] = param_3 + uVar4; __mutex = (pthread_mutex_t *)(local_48 + 10); uVar4 = (**(code **)(PSI_server + 0x40))(key_IO_CACHE_append_buffer_lock,__mutex); puVar1[0x12] = uVar4; puVar1[0x11] = (ulong)__mutex; puVar1[0xf] = 0; puVar1[0x10] = 0; pthread_mutex_init(__mutex,(pthread_mutexattr_t *)&my_fast_mutexattr); uVar4 = puVar1[4]; lVar3 = 0x18; } else { lVar3 = 0x18; if (local_34 == 2) { uVar4 = (uVar4 + param_3) - (ulong)((uint)local_50 & 0xfff); lVar3 = 0x48; } } *(ulong *)((long)puVar1 + lVar3) = uVar4; puVar1[1] = uVar9; *(int4 *)((long)puVar1 + 0xe4) = 0; *(int *)(puVar1 + 0x16) = iVar2; init_functions(puVar1); return 0; } } local_40 = uVar4; local_60 = (ulong)(uVar8 << 0xd) | 0xffffffffffffc000; uVar9 = (ulong)(uVar7 << 0xd) + 0x2000; uVar10 = (uVar9 + param_3) - 1; uVar11 = (ulong)((uint)local_40 & 0xffffff4f); local_58 = uVar11 + 0x10; while( true ) { uVar10 = uVar10 & local_60; param_3 = uVar9; if (uVar9 < uVar10) { param_3 = uVar10; } if (local_34 == 3) { uVar12 = param_3 * 2; } else { uVar12 = param_3; if ((local_40 & 0x40) != 0) { uVar12 = param_3 * 2 + 0x48; } } uVar4 = local_58; if (uVar9 < uVar10) { uVar4 = uVar11; } uVar4 = my_malloc(key_memory_IO_CACHE,uVar12,uVar4); local_48[4] = uVar4; if (uVar4 != 0) { uVar9 = 0; if (local_34 == 3) { uVar9 = param_3; } local_48[6] = uVar9 + uVar4; local_48[0x20] = uVar12; param_7 = local_40; goto LAB_0012a9c1; } if (uVar10 <= uVar9) break; uVar10 = param_3 * 3 >> 2; } uVar6 = 2; } return uVar6; }
60,301
string_buffer_init2
bluesky950520[P]quickjs/quickjs.c
static int string_buffer_init2(JSContext *ctx, StringBuffer *s, int size, int is_wide) { s->ctx = ctx; s->size = size; s->len = 0; s->is_wide_char = is_wide; s->error_status = 0; s->str = js_alloc_string(ctx, size, is_wide); if (unlikely(!s->str)) { s->size = 0; return s->error_status = -1; } #ifdef DUMP_LEAKS /* the StringBuffer may reallocate the JSString, only link it at the end */ list_del(&s->str->link); #endif return 0; }
O0
c
string_buffer_init2: subq $0x28, %rsp movq %rdi, 0x18(%rsp) movq %rsi, 0x10(%rsp) movl %edx, 0xc(%rsp) movl %ecx, 0x8(%rsp) movq 0x18(%rsp), %rcx movq 0x10(%rsp), %rax movq %rcx, (%rax) movl 0xc(%rsp), %ecx movq 0x10(%rsp), %rax movl %ecx, 0x14(%rax) movq 0x10(%rsp), %rax movl $0x0, 0x10(%rax) movl 0x8(%rsp), %ecx movq 0x10(%rsp), %rax movl %ecx, 0x18(%rax) movq 0x10(%rsp), %rax movl $0x0, 0x1c(%rax) movq 0x18(%rsp), %rdi movl 0xc(%rsp), %esi movl 0x8(%rsp), %edx callq 0x2fa50 movq %rax, %rcx movq 0x10(%rsp), %rax movq %rcx, 0x8(%rax) movq 0x10(%rsp), %rax cmpq $0x0, 0x8(%rax) setne %al xorb $-0x1, %al xorb $-0x1, %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x53d53 movq 0x10(%rsp), %rax movl $0x0, 0x14(%rax) movq 0x10(%rsp), %rax movl $0xffffffff, 0x1c(%rax) # imm = 0xFFFFFFFF movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF jmp 0x53d5b movl $0x0, 0x24(%rsp) movl 0x24(%rsp), %eax addq $0x28, %rsp retq nopw %cs:(%rax,%rax)
string_buffer_init2: sub rsp, 28h mov [rsp+28h+var_10], rdi mov [rsp+28h+var_18], rsi mov [rsp+28h+var_1C], edx mov [rsp+28h+var_20], ecx mov rcx, [rsp+28h+var_10] mov rax, [rsp+28h+var_18] mov [rax], rcx mov ecx, [rsp+28h+var_1C] mov rax, [rsp+28h+var_18] mov [rax+14h], ecx mov rax, [rsp+28h+var_18] mov dword ptr [rax+10h], 0 mov ecx, [rsp+28h+var_20] mov rax, [rsp+28h+var_18] mov [rax+18h], ecx mov rax, [rsp+28h+var_18] mov dword ptr [rax+1Ch], 0 mov rdi, [rsp+28h+var_10] mov esi, [rsp+28h+var_1C] mov edx, [rsp+28h+var_20] call js_alloc_string mov rcx, rax mov rax, [rsp+28h+var_18] mov [rax+8], rcx mov rax, [rsp+28h+var_18] cmp qword ptr [rax+8], 0 setnz al xor al, 0FFh xor al, 0FFh xor al, 0FFh and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_53D53 mov rax, [rsp+28h+var_18] mov dword ptr [rax+14h], 0 mov rax, [rsp+28h+var_18] mov dword ptr [rax+1Ch], 0FFFFFFFFh mov [rsp+28h+var_4], 0FFFFFFFFh jmp short loc_53D5B loc_53D53: mov [rsp+28h+var_4], 0 loc_53D5B: mov eax, [rsp+28h+var_4] add rsp, 28h retn
long long string_buffer_init2(long long a1, long long a2, unsigned int a3, unsigned int a4) { *(_QWORD *)a2 = a1; *(_DWORD *)(a2 + 20) = a3; *(_DWORD *)(a2 + 16) = 0; *(_DWORD *)(a2 + 24) = a4; *(_DWORD *)(a2 + 28) = 0; *(_QWORD *)(a2 + 8) = js_alloc_string(a1, a3, a4); if ( *(_QWORD *)(a2 + 8) ) { return 0; } else { *(_DWORD *)(a2 + 20) = 0; *(_DWORD *)(a2 + 28) = -1; return (unsigned int)-1; } }
string_buffer_init2: SUB RSP,0x28 MOV qword ptr [RSP + 0x18],RDI MOV qword ptr [RSP + 0x10],RSI MOV dword ptr [RSP + 0xc],EDX MOV dword ptr [RSP + 0x8],ECX MOV RCX,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RAX],RCX MOV ECX,dword ptr [RSP + 0xc] MOV RAX,qword ptr [RSP + 0x10] MOV dword ptr [RAX + 0x14],ECX MOV RAX,qword ptr [RSP + 0x10] MOV dword ptr [RAX + 0x10],0x0 MOV ECX,dword ptr [RSP + 0x8] MOV RAX,qword ptr [RSP + 0x10] MOV dword ptr [RAX + 0x18],ECX MOV RAX,qword ptr [RSP + 0x10] MOV dword ptr [RAX + 0x1c],0x0 MOV RDI,qword ptr [RSP + 0x18] MOV ESI,dword ptr [RSP + 0xc] MOV EDX,dword ptr [RSP + 0x8] CALL 0x0012fa50 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RSP + 0x10] CMP qword ptr [RAX + 0x8],0x0 SETNZ AL XOR AL,0xff XOR AL,0xff XOR AL,0xff AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x00153d53 MOV RAX,qword ptr [RSP + 0x10] MOV dword ptr [RAX + 0x14],0x0 MOV RAX,qword ptr [RSP + 0x10] MOV dword ptr [RAX + 0x1c],0xffffffff MOV dword ptr [RSP + 0x24],0xffffffff JMP 0x00153d5b LAB_00153d53: MOV dword ptr [RSP + 0x24],0x0 LAB_00153d5b: MOV EAX,dword ptr [RSP + 0x24] ADD RSP,0x28 RET
int4 string_buffer_init2(int8 param_1,int8 *param_2,int4 param_3,int4 param_4) { int8 uVar1; int4 local_4; *param_2 = param_1; *(int4 *)((long)param_2 + 0x14) = param_3; *(int4 *)(param_2 + 2) = 0; *(int4 *)(param_2 + 3) = param_4; *(int4 *)((long)param_2 + 0x1c) = 0; uVar1 = js_alloc_string(param_1,param_3,param_4); param_2[1] = uVar1; if (param_2[1] == 0) { *(int4 *)((long)param_2 + 0x14) = 0; *(int4 *)((long)param_2 + 0x1c) = 0xffffffff; local_4 = 0xffffffff; } else { local_4 = 0; } return local_4; }
60,302
clip_image_f32_batch_free
monkey531[P]llama/examples/llava/clip.cpp
void clip_image_f32_batch_free(struct clip_image_f32_batch * batch) { if (batch->size > 0) { delete[] batch->data; batch->size = 0; } }
O3
cpp
clip_image_f32_batch_free: cmpq $0x0, 0x8(%rdi) je 0x31996 pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rdi, %rbx movq (%rdi), %r14 testq %r14, %r14 je 0x31983 movq -0x8(%r14), %r15 addq $-0x8, %r14 testq %r15, %r15 je 0x31970 movq %r15, %r12 shlq $0x5, %r12 movq -0x10(%r14,%r12), %rdi testq %rdi, %rdi je 0x3196a movq (%r14,%r12), %rsi subq %rdi, %rsi callq 0x1dc50 addq $-0x20, %r12 jne 0x31954 shlq $0x5, %r15 orq $0x8, %r15 movq %r14, %rdi movq %r15, %rsi callq 0x1e8b0 movq $0x0, 0x8(%rbx) addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
clip_image_f32_batch_free: cmp qword ptr [rdi+8], 0 jz short locret_31996 push r15 push r14 push r12 push rbx push rax mov rbx, rdi mov r14, [rdi] test r14, r14 jz short loc_31983 mov r15, [r14-8] add r14, 0FFFFFFFFFFFFFFF8h test r15, r15 jz short loc_31970 mov r12, r15 shl r12, 5 loc_31954: mov rdi, [r14+r12-10h]; void * test rdi, rdi jz short loc_3196A mov rsi, [r14+r12] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3196A: add r12, 0FFFFFFFFFFFFFFE0h jnz short loc_31954 loc_31970: shl r15, 5 or r15, 8 mov rdi, r14; void * mov rsi, r15; unsigned __int64 call __ZdaPvm; operator delete[](void *,ulong) loc_31983: mov qword ptr [rbx+8], 0 add rsp, 8 pop rbx pop r12 pop r14 pop r15 locret_31996: retn
void clip_image_f32_batch_free(long long *a1) { long long v2; // r14 long long v3; // r15 char *v4; // r14 long long v5; // r12 void *v6; // rdi if ( a1[1] ) { v2 = *a1; if ( *a1 ) { v3 = *(_QWORD *)(v2 - 8); v4 = (char *)(v2 - 8); if ( v3 ) { v5 = 32 * v3; do { v6 = *(void **)&v4[v5 - 16]; if ( v6 ) operator delete(v6, *(_QWORD *)&v4[v5] - (_QWORD)v6); v5 -= 32LL; } while ( v5 ); } operator delete[](v4, (32 * v3) | 8); } a1[1] = 0LL; } }
clip_image_f32_batch_free: CMP qword ptr [RDI + 0x8],0x0 JZ 0x00131996 PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RDI MOV R14,qword ptr [RDI] TEST R14,R14 JZ 0x00131983 MOV R15,qword ptr [R14 + -0x8] ADD R14,-0x8 TEST R15,R15 JZ 0x00131970 MOV R12,R15 SHL R12,0x5 LAB_00131954: MOV RDI,qword ptr [R14 + R12*0x1 + -0x10] TEST RDI,RDI JZ 0x0013196a MOV RSI,qword ptr [R14 + R12*0x1] SUB RSI,RDI CALL 0x0011dc50 LAB_0013196a: ADD R12,-0x20 JNZ 0x00131954 LAB_00131970: SHL R15,0x5 OR R15,0x8 MOV RDI,R14 MOV RSI,R15 CALL 0x0011e8b0 LAB_00131983: MOV qword ptr [RBX + 0x8],0x0 ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 LAB_00131996: RET
void clip_image_f32_batch_free(long *param_1) { long lVar1; long lVar2; void *pvVar3; long lVar4; if (param_1[1] != 0) { lVar1 = *param_1; if (lVar1 != 0) { lVar2 = *(long *)(lVar1 + -8); if (lVar2 != 0) { lVar4 = lVar2 << 5; do { pvVar3 = *(void **)(lVar1 + -0x18 + lVar4); if (pvVar3 != (void *)0x0) { operator_delete(pvVar3,*(long *)(lVar1 + -8 + lVar4) - (long)pvVar3); } lVar4 = lVar4 + -0x20; } while (lVar4 != 0); } operator_delete__((void *)(lVar1 + -8),lVar2 << 5 | 8); } param_1[1] = 0; } return; }
60,303
r3d_gbuffer_enable_stencil_write
r3d/src/r3d_core.c
void r3d_gbuffer_enable_stencil_write(void) { // Re-attach the depth/stencil buffer to the framebuffer glFramebufferTexture2D( GL_FRAMEBUFFER, GL_DEPTH_STENCIL_ATTACHMENT, GL_TEXTURE_2D, R3D.framebuffer.gBuffer.depth, 0 ); // Setup the stencil: write 1 everywhere where geometry exists glEnable(GL_STENCIL_TEST); glStencilMask(0xFF); // Permit writing to stencil buffer glStencilFunc(GL_ALWAYS, 1, 0xFF); // Always pass the test, write 1 glStencilOp(GL_KEEP, GL_KEEP, GL_REPLACE); // Replace stencil value with 1 }
O0
c
r3d_gbuffer_enable_stencil_write: pushq %rbp movq %rsp, %rbp leaq 0xadc5d(%rip), %rax # 0x21d3a8 movq (%rax), %rax leaq 0xdb8eb(%rip), %rcx # 0x24b040 movl 0x18(%rcx), %ecx movl $0x8d40, %edi # imm = 0x8D40 movl $0x821a, %esi # imm = 0x821A movl $0xde1, %edx # imm = 0xDE1 xorl %r8d, %r8d callq *%rax movl $0xb90, %edi # imm = 0xB90 leaq 0xadb18(%rip), %rax # 0x21d290 callq *(%rax) movl $0xff, %edi leaq 0xaeac2(%rip), %rax # 0x21e248 callq *(%rax) movl $0x207, %edi # imm = 0x207 movl $0x1, %esi movl $0xff, %edx leaq 0xaea9a(%rip), %rax # 0x21e238 callq *(%rax) movl $0x1e00, %esi # imm = 0x1E00 movl $0x1e01, %edx # imm = 0x1E01 leaq 0xaeaa7(%rip), %rax # 0x21e258 movl %esi, %edi callq *(%rax) popq %rbp retq nopw (%rax,%rax)
r3d_gbuffer_enable_stencil_write: push rbp mov rbp, rsp lea rax, glad_glFramebufferTexture2D mov rax, [rax] lea rcx, R3D mov ecx, [rcx+18h] mov edi, 8D40h mov esi, 821Ah mov edx, 0DE1h xor r8d, r8d call rax mov edi, 0B90h lea rax, glad_glEnable call qword ptr [rax] mov edi, 0FFh lea rax, glad_glStencilMask call qword ptr [rax] mov edi, 207h mov esi, 1 mov edx, 0FFh lea rax, glad_glStencilFunc call qword ptr [rax] mov esi, 1E00h mov edx, 1E01h lea rax, glad_glStencilOp mov edi, esi call qword ptr [rax] pop rbp retn
long long r3d_gbuffer_enable_stencil_write() { glad_glFramebufferTexture2D(36160LL, 33306LL, 3553LL, *(unsigned int *)&R3D[24], 0LL); glad_glEnable(2960LL); glad_glStencilMask(255LL); glad_glStencilFunc(519LL, 1LL, 255LL); return glad_glStencilOp(7680LL, 7680LL, 7681LL); }
60,304
r3d_gbuffer_enable_stencil_write
r3d/src/r3d_core.c
void r3d_gbuffer_enable_stencil_write(void) { // Re-attach the depth/stencil buffer to the framebuffer glFramebufferTexture2D( GL_FRAMEBUFFER, GL_DEPTH_STENCIL_ATTACHMENT, GL_TEXTURE_2D, R3D.framebuffer.gBuffer.depth, 0 ); // Setup the stencil: write 1 everywhere where geometry exists glEnable(GL_STENCIL_TEST); glStencilMask(0xFF); // Permit writing to stencil buffer glStencilFunc(GL_ALWAYS, 1, 0xFF); // Always pass the test, write 1 glStencilOp(GL_KEEP, GL_KEEP, GL_REPLACE); // Replace stencil value with 1 }
O3
c
r3d_gbuffer_enable_stencil_write: pushq %rbp movq %rsp, %rbp leaq 0xb2395(%rip), %rax # 0x183f28 leaq 0xe0026(%rip), %rcx # 0x1b1bc0 movl 0x18(%rcx), %ecx movl $0x8d40, %edi # imm = 0x8D40 movl $0x821a, %esi # imm = 0x821A movl $0xde1, %edx # imm = 0xDE1 xorl %r8d, %r8d callq *(%rax) leaq 0xb2258(%rip), %rax # 0x183e10 movl $0xb90, %edi # imm = 0xB90 callq *(%rax) leaq 0xb3202(%rip), %rax # 0x184dc8 movl $0xff, %edi callq *(%rax) leaq 0xb31e4(%rip), %rax # 0x184db8 movl $0x207, %edi # imm = 0x207 movl $0x1, %esi movl $0xff, %edx callq *(%rax) leaq 0xb31ec(%rip), %rax # 0x184dd8 movq (%rax), %rax movl $0x1e00, %edi # imm = 0x1E00 movl $0x1e00, %esi # imm = 0x1E00 movl $0x1e01, %edx # imm = 0x1E01 popq %rbp jmpq *%rax
r3d_gbuffer_enable_stencil_write: push rbp mov rbp, rsp lea rax, glad_glFramebufferTexture2D lea rcx, R3D mov ecx, [rcx+18h] mov edi, 8D40h mov esi, 821Ah mov edx, 0DE1h xor r8d, r8d call qword ptr [rax] lea rax, glad_glEnable mov edi, 0B90h call qword ptr [rax] lea rax, glad_glStencilMask mov edi, 0FFh call qword ptr [rax] lea rax, glad_glStencilFunc mov edi, 207h mov esi, 1 mov edx, 0FFh call qword ptr [rax] lea rax, glad_glStencilOp mov rax, [rax] mov edi, 1E00h mov esi, 1E00h mov edx, 1E01h pop rbp jmp rax
long long r3d_gbuffer_enable_stencil_write() { glad_glFramebufferTexture2D(36160LL, 33306LL, 3553LL, *(unsigned int *)&R3D[24], 0LL); glad_glEnable(2960LL); glad_glStencilMask(255LL); glad_glStencilFunc(519LL, 1LL, 255LL); return glad_glStencilOp(7680LL, 7680LL, 7681LL); }
r3d_gbuffer_enable_stencil_write: PUSH RBP MOV RBP,RSP LEA RAX,[0x283f28] LEA RCX,[0x2b1bc0] MOV ECX,dword ptr [RCX + 0x18] MOV EDI,0x8d40 MOV ESI,0x821a MOV EDX,0xde1 XOR R8D,R8D CALL qword ptr [RAX] LEA RAX,[0x283e10] MOV EDI,0xb90 CALL qword ptr [RAX] LEA RAX,[0x284dc8] MOV EDI,0xff CALL qword ptr [RAX] LEA RAX,[0x284db8] MOV EDI,0x207 MOV ESI,0x1 MOV EDX,0xff CALL qword ptr [RAX] LEA RAX,[0x284dd8] MOV RAX,qword ptr [RAX] MOV EDI,0x1e00 MOV ESI,0x1e00 MOV EDX,0x1e01 POP RBP JMP RAX
void r3d_gbuffer_enable_stencil_write(void) { (*glad_glFramebufferTexture2D)(0x8d40,0x821a,0xde1,DAT_002b1bd8,0); (*glad_glEnable)(0xb90); (*glad_glStencilMask)(0xff); (*glad_glStencilFunc)(0x207,1,0xff); /* WARNING: Could not recover jumptable at 0x001d1bff. Too many branches */ /* WARNING: Treating indirect jump as call */ (*glad_glStencilOp)(0x1e00,0x1e00,0x1e01); return; }
60,305
my_hash_sort_utf8mb4_nopad
eloqsql/strings/ctype-utf8.c
static void my_hash_sort_utf8mb4_nopad(CHARSET_INFO *cs, const uchar *s, size_t slen, ulong *nr1, ulong *nr2) { my_wc_t wc; int res; const uchar *e= s + slen; MY_UNICASE_INFO *uni_plane= cs->caseinfo; register ulong m1= *nr1, m2= *nr2; while ((res= my_mb_wc_utf8mb4(cs, &wc, (uchar*) s, (uchar*) e)) > 0) { my_tosort_unicode(uni_plane, &wc, cs->state); MY_HASH_ADD_16(m1, m2, (uint) (wc & 0xFFFF)); if (wc > 0xFFFF) { /* Put the highest byte only if it is non-zero, to make hash functions for utf8mb3 and utf8mb4 compatible for BMP characters. This is useful to keep order of records in test results, e.g. for "SHOW GRANTS". */ MY_HASH_ADD(m1, m2, (uint) ((wc >> 16) & 0xFF)); } s+= res; } *nr1= m1; *nr2= m2; }
O3
c
my_hash_sort_utf8mb4_nopad: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %rdx, %r15 movq %rsi, %r12 addq %rsi, %r15 movq %rdi, -0x30(%rbp) movq 0x78(%rdi), %r14 movq %rcx, -0x48(%rbp) movq (%rcx), %r13 movq %r8, -0x50(%rbp) movq (%r8), %rbx leaq -0x38(%rbp), %rdi movq %r15, %rdx callq 0x52002 testl %eax, %eax jle 0x52b06 movq -0x30(%rbp), %rcx movl 0xc(%rcx), %ecx movl %ecx, -0x3c(%rbp) movq %r14, -0x58(%rbp) movq (%r14), %rcx movq %rcx, -0x30(%rbp) movq -0x38(%rbp), %rcx movl $0xfffd, %esi # imm = 0xFFFD cmpq -0x30(%rbp), %rcx ja 0x52a5d movq -0x58(%rbp), %rdx movq 0x8(%rdx), %rsi movq %rcx, %rdx shrq $0x8, %rdx movq (%rsi,%rdx,8), %rsi testq %rsi, %rsi je 0x52a69 xorl %edx, %edx cmpw $0x0, -0x3c(%rbp) setns %dl movzbl %cl, %ecx leaq (%rcx,%rcx,2), %rcx leaq (%rsi,%rcx,4), %rcx movl 0x4(%rcx,%rdx,4), %esi movq %rsi, -0x38(%rbp) movl %esi, %edx shrl $0x8, %edx movq %rsi, %rcx movl %r13d, %esi andl $0x3f, %esi addq %rbx, %rsi movq %rcx, %rdi movl $0xff, %r8d andq %r8, %rdi imulq %rsi, %rdi movq %r13, %rsi shlq $0x8, %rsi addq %rdi, %rsi xorq %r13, %rsi movl %esi, %edi andl $0x3f, %edi addq %rbx, %rdi addq $0x3, %rdi andq %r8, %rdx imulq %rdi, %rdx movq %rsi, %r13 shlq $0x8, %r13 addq %rdx, %r13 xorq %rsi, %r13 leaq 0x6(%rbx), %r14 cmpq $0x10000, %rcx # imm = 0x10000 jb 0x52ae5 movl %r13d, %edx andl $0x3f, %edx addq %r14, %rdx shrl $0x10, %ecx movzbl %cl, %ecx imulq %rdx, %rcx movq %r13, %rdx shlq $0x8, %rdx addq %rcx, %rdx xorq %rdx, %r13 addq $0x9, %rbx movq %rbx, %r14 jmp 0x52ae8 movq %r14, %rbx movl %eax, %eax addq %rax, %r12 leaq -0x38(%rbp), %rdi movq %r12, %rsi movq %r15, %rdx callq 0x52002 testl %eax, %eax jg 0x52a1d jmp 0x52b09 movq %rbx, %r14 movq -0x48(%rbp), %rax movq %r13, (%rax) movq -0x50(%rbp), %rax movq %r14, (%rax) addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
my_hash_sort_utf8mb4_nopad: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov r15, rdx mov r12, rsi add r15, rsi mov [rbp+var_30], rdi mov r14, [rdi+78h] mov [rbp+var_48], rcx mov r13, [rcx] mov [rbp+var_50], r8 mov rbx, [r8] lea rdi, [rbp+var_38] mov rdx, r15 call my_mb_wc_utf8mb4_quick_0 test eax, eax jle loc_52B06 mov rcx, [rbp+var_30] mov ecx, [rcx+0Ch] mov [rbp+var_3C], ecx mov [rbp+var_58], r14 mov rcx, [r14] mov [rbp+var_30], rcx loc_52A1D: mov rcx, [rbp+var_38] mov esi, 0FFFDh cmp rcx, [rbp+var_30] ja short loc_52A5D mov rdx, [rbp+var_58] mov rsi, [rdx+8] mov rdx, rcx shr rdx, 8 mov rsi, [rsi+rdx*8] test rsi, rsi jz short loc_52A69 xor edx, edx cmp word ptr [rbp+var_3C], 0 setns dl movzx ecx, cl lea rcx, [rcx+rcx*2] lea rcx, [rsi+rcx*4] mov esi, [rcx+rdx*4+4] loc_52A5D: mov [rbp+var_38], rsi mov edx, esi shr edx, 8 mov rcx, rsi loc_52A69: mov esi, r13d and esi, 3Fh add rsi, rbx mov rdi, rcx mov r8d, 0FFh and rdi, r8 imul rdi, rsi mov rsi, r13 shl rsi, 8 add rsi, rdi xor rsi, r13 mov edi, esi and edi, 3Fh add rdi, rbx add rdi, 3 and rdx, r8 imul rdx, rdi mov r13, rsi shl r13, 8 add r13, rdx xor r13, rsi lea r14, [rbx+6] cmp rcx, 10000h jb short loc_52AE5 mov edx, r13d and edx, 3Fh add rdx, r14 shr ecx, 10h movzx ecx, cl imul rcx, rdx mov rdx, r13 shl rdx, 8 add rdx, rcx xor r13, rdx add rbx, 9 mov r14, rbx jmp short loc_52AE8 loc_52AE5: mov rbx, r14 loc_52AE8: mov eax, eax add r12, rax lea rdi, [rbp+var_38] mov rsi, r12 mov rdx, r15 call my_mb_wc_utf8mb4_quick_0 test eax, eax jg loc_52A1D jmp short loc_52B09 loc_52B06: mov r14, rbx loc_52B09: mov rax, [rbp+var_48] mov [rax], r13 mov rax, [rbp+var_50] mov [rax], r14 add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
_QWORD * my_hash_sort_utf8mb4_nopad( unsigned long long a1, unsigned __int8 *a2, long long a3, long long *a4, _QWORD *a5) { unsigned __int8 *v5; // r12 unsigned long long v6; // r15 unsigned long long *v7; // r14 long long v8; // r13 long long v9; // rbx int v10; // eax unsigned long long v11; // rcx long long v12; // rsi unsigned long long v13; // rdx long long v14; // rsi long long v15; // r14 _QWORD *result; // rax unsigned long long *v17; // [rsp+8h] [rbp-58h] int v20; // [rsp+24h] [rbp-3Ch] unsigned long long v21; // [rsp+28h] [rbp-38h] BYREF unsigned long long v22; // [rsp+30h] [rbp-30h] v5 = a2; v6 = (unsigned long long)&a2[a3]; v22 = a1; v7 = *(unsigned long long **)(a1 + 120); v8 = *a4; v9 = *a5; v10 = my_mb_wc_utf8mb4_quick_0(&v21, a2, (unsigned long long)&a2[a3]); if ( v10 > 0 ) { v20 = *(_DWORD *)(v22 + 12); v17 = v7; v22 = *v7; while ( 1 ) { v11 = v21; v12 = 65533LL; if ( v21 > v22 ) goto LABEL_6; v13 = v21 >> 8; v14 = *(_QWORD *)(v17[1] + 8 * (v21 >> 8)); if ( v14 ) break; LABEL_7: v8 ^= ((v9 + (v8 & 0x3F)) * (unsigned __int8)v11 + (v8 << 8)) ^ ((v9 + (((unsigned __int8)v8 ^ (unsigned __int8)((v9 + (v8 & 0x3F)) * v11)) & 0x3F) + 3) * (unsigned __int8)v13 + ((v8 ^ ((v9 + (v8 & 0x3F)) * (unsigned __int8)v11 + (v8 << 8))) << 8)); v15 = v9 + 6; if ( v11 < 0x10000 ) { v9 += 6LL; } else { v8 ^= (v15 + (v8 & 0x3F)) * BYTE2(v11) + (v8 << 8); v9 += 9LL; v15 = v9; } v5 += (unsigned int)v10; v10 = my_mb_wc_utf8mb4_quick_0(&v21, v5, v6); if ( v10 <= 0 ) goto LABEL_13; } v12 = *(unsigned int *)(v14 + 12LL * (unsigned __int8)v21 + 4LL * ((v20 & 0x8000u) == 0) + 4); LABEL_6: v21 = v12; LODWORD(v13) = (unsigned int)v12 >> 8; v11 = v12; goto LABEL_7; } v15 = v9; LABEL_13: *a4 = v8; result = a5; *a5 = v15; return result; }
my_hash_sort_utf8mb4_nopad: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV R15,RDX MOV R12,RSI ADD R15,RSI MOV qword ptr [RBP + -0x30],RDI MOV R14,qword ptr [RDI + 0x78] MOV qword ptr [RBP + -0x48],RCX MOV R13,qword ptr [RCX] MOV qword ptr [RBP + -0x50],R8 MOV RBX,qword ptr [R8] LEA RDI,[RBP + -0x38] MOV RDX,R15 CALL 0x00152002 TEST EAX,EAX JLE 0x00152b06 MOV RCX,qword ptr [RBP + -0x30] MOV ECX,dword ptr [RCX + 0xc] MOV dword ptr [RBP + -0x3c],ECX MOV qword ptr [RBP + -0x58],R14 MOV RCX,qword ptr [R14] MOV qword ptr [RBP + -0x30],RCX LAB_00152a1d: MOV RCX,qword ptr [RBP + -0x38] MOV ESI,0xfffd CMP RCX,qword ptr [RBP + -0x30] JA 0x00152a5d MOV RDX,qword ptr [RBP + -0x58] MOV RSI,qword ptr [RDX + 0x8] MOV RDX,RCX SHR RDX,0x8 MOV RSI,qword ptr [RSI + RDX*0x8] TEST RSI,RSI JZ 0x00152a69 XOR EDX,EDX CMP word ptr [RBP + -0x3c],0x0 SETNS DL MOVZX ECX,CL LEA RCX,[RCX + RCX*0x2] LEA RCX,[RSI + RCX*0x4] MOV ESI,dword ptr [RCX + RDX*0x4 + 0x4] LAB_00152a5d: MOV qword ptr [RBP + -0x38],RSI MOV EDX,ESI SHR EDX,0x8 MOV RCX,RSI LAB_00152a69: MOV ESI,R13D AND ESI,0x3f ADD RSI,RBX MOV RDI,RCX MOV R8D,0xff AND RDI,R8 IMUL RDI,RSI MOV RSI,R13 SHL RSI,0x8 ADD RSI,RDI XOR RSI,R13 MOV EDI,ESI AND EDI,0x3f ADD RDI,RBX ADD RDI,0x3 AND RDX,R8 IMUL RDX,RDI MOV R13,RSI SHL R13,0x8 ADD R13,RDX XOR R13,RSI LEA R14,[RBX + 0x6] CMP RCX,0x10000 JC 0x00152ae5 MOV EDX,R13D AND EDX,0x3f ADD RDX,R14 SHR ECX,0x10 MOVZX ECX,CL IMUL RCX,RDX MOV RDX,R13 SHL RDX,0x8 ADD RDX,RCX XOR R13,RDX ADD RBX,0x9 MOV R14,RBX JMP 0x00152ae8 LAB_00152ae5: MOV RBX,R14 LAB_00152ae8: MOV EAX,EAX ADD R12,RAX LEA RDI,[RBP + -0x38] MOV RSI,R12 MOV RDX,R15 CALL 0x00152002 TEST EAX,EAX JG 0x00152a1d JMP 0x00152b09 LAB_00152b06: MOV R14,RBX LAB_00152b09: MOV RAX,qword ptr [RBP + -0x48] MOV qword ptr [RAX],R13 MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RAX],R14 ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void my_hash_sort_utf8mb4_nopad(long param_1,long param_2,long param_3,ulong *param_4,long *param_5) { int4 uVar1; ulong *puVar2; uint uVar3; ulong uVar4; long lVar5; long lVar6; ulong uVar7; ulong uVar8; short local_44; ulong local_40; ulong local_38; param_3 = param_3 + param_2; puVar2 = *(ulong **)(param_1 + 0x78); uVar8 = *param_4; lVar6 = *param_5; local_38 = param_1; uVar3 = my_mb_wc_utf8mb4_quick(&local_40,param_2,param_3); if (0 < (int)uVar3) { uVar1 = *(int4 *)(local_38 + 0xc); local_38 = *puVar2; lVar5 = lVar6; do { uVar7 = 0xfffd; if (local_38 < local_40) { LAB_00152a5d: uVar4 = uVar7 >> 8; local_40 = uVar7; } else { uVar4 = local_40 >> 8; lVar6 = *(long *)(puVar2[1] + uVar4 * 8); if (lVar6 != 0) { local_44 = (short)uVar1; uVar7 = (ulong)*(uint *)(lVar6 + (local_40 & 0xff) * 0xc + 4 + (ulong)(-1 < local_44) * 4) ; goto LAB_00152a5d; } } uVar8 = uVar8 * 0x100 + (local_40 & 0xff) * ((ulong)((uint)uVar8 & 0x3f) + lVar5) ^ uVar8; uVar8 = uVar8 * 0x100 + (uVar4 & 0xff) * ((ulong)((uint)uVar8 & 0x3f) + lVar5 + 3) ^ uVar8; lVar6 = lVar5 + 6; if (0xffff < local_40) { uVar8 = uVar8 ^ uVar8 * 0x100 + (local_40 >> 0x10 & 0xff) * ((ulong)((uint)uVar8 & 0x3f) + lVar6); lVar6 = lVar5 + 9; } param_2 = param_2 + (ulong)uVar3; uVar3 = my_mb_wc_utf8mb4_quick(&local_40,param_2,param_3); lVar5 = lVar6; } while (0 < (int)uVar3); } *param_4 = uVar8; *param_5 = lVar6; return; }
60,306
mysql_stmt_close_cont
eloqsql/libmariadb/libmariadb/mariadb_async.c
int STDCALL mysql_stmt_close_cont(my_bool *ret, MYSQL_STMT *stmt, int ready_status) { MK_ASYNC_CONT_BODY( stmt->mysql, TRUE, r_my_bool) }
O3
c
mysql_stmt_close_cont: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx movq 0x38(%rsi), %rax movq 0x480(%rax), %rcx movq 0x28(%rcx), %r15 cmpb $0x0, 0x15(%r15) je 0x30072 movb $0x1, 0x14(%r15) movl %edx, 0x4(%r15) leaq 0x38(%r15), %rdi callq 0x31297 movb $0x0, 0x14(%r15) testl %eax, %eax jle 0x300d5 movl (%r15), %r15d jmp 0x3014b movl $0x7de, 0x90(%rax) # imm = 0x7DE movl $0x297, %edi # imm = 0x297 addq 0x38(%r14), %rdi leaq 0x1ed04(%rip), %rax # 0x4ed90 movq (%rax), %rsi movl $0x5, %edx callq 0x13220 movq 0x38(%r14), %rax xorl %r15d, %r15d movb %r15b, 0x29c(%rax) movl $0x97, %edi addq 0x38(%r14), %rdi leaq 0x1ece9(%rip), %rax # 0x4eda0 movq 0x70(%rax), %rsi movl $0x1ff, %edx # imm = 0x1FF callq 0x13220 movq 0x38(%r14), %rax movb %r15b, 0x296(%rax) movb $0x1, (%rbx) jmp 0x3014b movb $0x0, 0x15(%r15) js 0x300e2 movb 0x8(%r15), %al jmp 0x30146 movq 0x38(%r14), %rax movl $0x7d8, 0x90(%rax) # imm = 0x7D8 movl $0x297, %edi # imm = 0x297 addq 0x38(%r14), %rdi leaq 0x1ec90(%rip), %rax # 0x4ed90 movq (%rax), %rsi movl $0x5, %edx callq 0x13220 movq 0x38(%r14), %rax xorl %r15d, %r15d movb %r15b, 0x29c(%rax) movl $0x97, %edi addq 0x38(%r14), %rdi leaq 0x1ec75(%rip), %rax # 0x4eda0 movq 0x40(%rax), %rsi movl $0x1ff, %edx # imm = 0x1FF callq 0x13220 movq 0x38(%r14), %rax movb %r15b, 0x296(%rax) movb $0x1, %al movb %al, (%rbx) xorl %r15d, %r15d movl %r15d, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
mysql_stmt_close_cont: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov r14, rsi mov rbx, rdi mov rax, [rsi+38h] mov rcx, [rax+480h] mov r15, [rcx+28h] cmp byte ptr [r15+15h], 0 jz short loc_30072 mov byte ptr [r15+14h], 1 mov [r15+4], edx lea rdi, [r15+38h] call my_context_continue mov byte ptr [r15+14h], 0 test eax, eax jle short loc_300D5 mov r15d, [r15] jmp loc_3014B loc_30072: mov dword ptr [rax+90h], 7DEh mov edi, 297h add rdi, [r14+38h] lea rax, SQLSTATE_UNKNOWN mov rsi, [rax] mov edx, 5 call _strncpy mov rax, [r14+38h] xor r15d, r15d mov [rax+29Ch], r15b mov edi, 97h add rdi, [r14+38h] lea rax, client_errors mov rsi, [rax+70h] mov edx, 1FFh call _strncpy mov rax, [r14+38h] mov [rax+296h], r15b mov byte ptr [rbx], 1 jmp short loc_3014B loc_300D5: mov byte ptr [r15+15h], 0 js short loc_300E2 mov al, [r15+8] jmp short loc_30146 loc_300E2: mov rax, [r14+38h] mov dword ptr [rax+90h], 7D8h mov edi, 297h add rdi, [r14+38h] lea rax, SQLSTATE_UNKNOWN mov rsi, [rax] mov edx, 5 call _strncpy mov rax, [r14+38h] xor r15d, r15d mov [rax+29Ch], r15b mov edi, 97h add rdi, [r14+38h] lea rax, client_errors mov rsi, [rax+40h] mov edx, 1FFh call _strncpy mov rax, [r14+38h] mov [rax+296h], r15b mov al, 1 loc_30146: mov [rbx], al xor r15d, r15d loc_3014B: mov eax, r15d add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long mysql_stmt_close_cont(char *a1, long long a2, unsigned int a3) { long long v3; // rax unsigned int *v4; // r15 int v5; // eax unsigned int v6; // r15d char v7; // al v3 = *(_QWORD *)(a2 + 56); v4 = *(unsigned int **)(*(_QWORD *)(v3 + 1152) + 40LL); if ( *((_BYTE *)v4 + 21) ) { *((_BYTE *)v4 + 20) = 1; v4[1] = a3; v5 = my_context_continue(v4 + 14); *((_BYTE *)v4 + 20) = 0; if ( v5 <= 0 ) { *((_BYTE *)v4 + 21) = 0; if ( v5 < 0 ) { *(_DWORD *)(*(_QWORD *)(a2 + 56) + 144LL) = 2008; strncpy(*(_QWORD *)(a2 + 56) + 663LL, SQLSTATE_UNKNOWN, 5LL); *(_BYTE *)(*(_QWORD *)(a2 + 56) + 668LL) = 0; strncpy(*(_QWORD *)(a2 + 56) + 151LL, client_errors[8], 511LL); *(_BYTE *)(*(_QWORD *)(a2 + 56) + 662LL) = 0; v7 = 1; } else { v7 = *((_BYTE *)v4 + 8); } *a1 = v7; return 0; } else { return *v4; } } else { *(_DWORD *)(v3 + 144) = 2014; strncpy(*(_QWORD *)(a2 + 56) + 663LL, SQLSTATE_UNKNOWN, 5LL); v6 = 0; *(_BYTE *)(*(_QWORD *)(a2 + 56) + 668LL) = 0; strncpy(*(_QWORD *)(a2 + 56) + 151LL, client_errors[14], 511LL); *(_BYTE *)(*(_QWORD *)(a2 + 56) + 662LL) = 0; *a1 = 1; } return v6; }
mysql_stmt_close_cont: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI MOV RAX,qword ptr [RSI + 0x38] MOV RCX,qword ptr [RAX + 0x480] MOV R15,qword ptr [RCX + 0x28] CMP byte ptr [R15 + 0x15],0x0 JZ 0x00130072 MOV byte ptr [R15 + 0x14],0x1 MOV dword ptr [R15 + 0x4],EDX LEA RDI,[R15 + 0x38] CALL 0x00131297 MOV byte ptr [R15 + 0x14],0x0 TEST EAX,EAX JLE 0x001300d5 MOV R15D,dword ptr [R15] JMP 0x0013014b LAB_00130072: MOV dword ptr [RAX + 0x90],0x7de MOV EDI,0x297 ADD RDI,qword ptr [R14 + 0x38] LEA RAX,[0x14ed90] MOV RSI,qword ptr [RAX] MOV EDX,0x5 CALL 0x00113220 MOV RAX,qword ptr [R14 + 0x38] XOR R15D,R15D MOV byte ptr [RAX + 0x29c],R15B MOV EDI,0x97 ADD RDI,qword ptr [R14 + 0x38] LEA RAX,[0x14eda0] MOV RSI,qword ptr [RAX + 0x70] MOV EDX,0x1ff CALL 0x00113220 MOV RAX,qword ptr [R14 + 0x38] MOV byte ptr [RAX + 0x296],R15B MOV byte ptr [RBX],0x1 JMP 0x0013014b LAB_001300d5: MOV byte ptr [R15 + 0x15],0x0 JS 0x001300e2 MOV AL,byte ptr [R15 + 0x8] JMP 0x00130146 LAB_001300e2: MOV RAX,qword ptr [R14 + 0x38] MOV dword ptr [RAX + 0x90],0x7d8 MOV EDI,0x297 ADD RDI,qword ptr [R14 + 0x38] LEA RAX,[0x14ed90] MOV RSI,qword ptr [RAX] MOV EDX,0x5 CALL 0x00113220 MOV RAX,qword ptr [R14 + 0x38] XOR R15D,R15D MOV byte ptr [RAX + 0x29c],R15B MOV EDI,0x97 ADD RDI,qword ptr [R14 + 0x38] LEA RAX,[0x14eda0] MOV RSI,qword ptr [RAX + 0x40] MOV EDX,0x1ff CALL 0x00113220 MOV RAX,qword ptr [R14 + 0x38] MOV byte ptr [RAX + 0x296],R15B MOV AL,0x1 LAB_00130146: MOV byte ptr [RBX],AL XOR R15D,R15D LAB_0013014b: MOV EAX,R15D ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
int4 mysql_stmt_close_cont(int1 *param_1,long param_2,int4 param_3) { int4 *puVar1; int1 uVar2; int iVar3; int4 uVar4; puVar1 = *(int4 **)(*(long *)(*(long *)(param_2 + 0x38) + 0x480) + 0x28); if (*(char *)((long)puVar1 + 0x15) == '\0') { *(int4 *)(*(long *)(param_2 + 0x38) + 0x90) = 0x7de; strncpy((char *)(*(long *)(param_2 + 0x38) + 0x297),SQLSTATE_UNKNOWN,5); uVar4 = 0; *(int1 *)(*(long *)(param_2 + 0x38) + 0x29c) = 0; strncpy((char *)(*(long *)(param_2 + 0x38) + 0x97), PTR_s_Commands_out_of_sync__you_can_t_r_0014ee10,0x1ff); *(int1 *)(*(long *)(param_2 + 0x38) + 0x296) = 0; *param_1 = 1; } else { *(int1 *)(puVar1 + 5) = 1; puVar1[1] = param_3; iVar3 = my_context_continue(puVar1 + 0xe); *(int1 *)(puVar1 + 5) = 0; if (iVar3 < 1) { *(int1 *)((long)puVar1 + 0x15) = 0; if (iVar3 < 0) { *(int4 *)(*(long *)(param_2 + 0x38) + 0x90) = 0x7d8; strncpy((char *)(*(long *)(param_2 + 0x38) + 0x297),SQLSTATE_UNKNOWN,5); *(int1 *)(*(long *)(param_2 + 0x38) + 0x29c) = 0; strncpy((char *)(*(long *)(param_2 + 0x38) + 0x97),PTR_s_Client_run_out_of_memory_0014ede0, 0x1ff); *(int1 *)(*(long *)(param_2 + 0x38) + 0x296) = 0; uVar2 = 1; } else { uVar2 = *(int1 *)(puVar1 + 2); } *param_1 = uVar2; uVar4 = 0; } else { uVar4 = *puVar1; } } return uVar4; }
60,307
bool minja::Value::get<bool>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool) const
monkey531[P]llama/common/minja.hpp
T get(const std::string & key, T default_value) const { if (!contains(key)) return default_value; return at(key).get<T>(); }
O3
cpp
bool minja::Value::get<bool>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool) const: pushq %r15 pushq %r14 pushq %rbx subq $0x50, %rsp movl %edx, %ebx movq %rsi, %r15 movq %rdi, %r14 callq 0x95e52 testb %al, %al je 0xb6a32 movq %rsp, %rbx movq %rbx, %rdi movq %r15, %rsi callq 0x8c9f2 movq %r14, %rdi movq %rbx, %rsi callq 0x959f4 movq %rax, %rdi callq 0x899f4 movl %eax, %ebx leaq 0x40(%rsp), %r14 movq %r14, %rdi xorl %esi, %esi callq 0x5b2d4 movq %r14, %rdi callq 0x607c2 movq -0x8(%r14), %rdi testq %rdi, %rdi je 0xb69de callq 0x701e6 movq 0x28(%rsp), %rdi testq %rdi, %rdi je 0xb69ed callq 0x701e6 movq 0x18(%rsp), %rdi testq %rdi, %rdi je 0xb69fc callq 0x701e6 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0xb6a32 movq 0x7756b(%rip), %rax # 0x12df78 cmpb $0x0, (%rax) je 0xb6a1d movl 0xc(%rdi), %eax leal -0x1(%rax), %ecx movl %ecx, 0xc(%rdi) jmp 0xb6a27 movl $0xffffffff, %eax # imm = 0xFFFFFFFF lock xaddl %eax, 0xc(%rdi) cmpl $0x1, %eax jne 0xb6a32 movq (%rdi), %rax callq *0x18(%rax) movl %ebx, %eax addq $0x50, %rsp popq %rbx popq %r14 popq %r15 retq movq %rax, %rbx movq %rsp, %rdi callq 0x88994 movq %rbx, %rdi callq 0x1c030 nop
_ZNK5minja5Value3getIbEET_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES2_: push r15 push r14 push rbx sub rsp, 50h mov ebx, edx mov r15, rsi mov r14, rdi call _ZNK5minja5Value8containsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::contains(std::string const&) test al, al jz loc_B6A32 mov rbx, rsp mov rdi, rbx mov rsi, r15 call _ZN5minja5ValueC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::Value(std::string const&) mov rdi, r14; this mov rsi, rbx; minja::Value * call _ZN5minja5Value2atERKS0_; minja::Value::at(minja::Value const&) mov rdi, rax call _ZNK5minja5Value3getIbEET_v; minja::Value::get<bool>(void) mov ebx, eax lea r14, [rsp+68h+var_28] 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, [r14-8] test rdi, rdi jz short loc_B69DE call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_B69DE: mov rdi, [rsp+68h+var_40] test rdi, rdi jz short loc_B69ED call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_B69ED: mov rdi, [rsp+68h+var_50] test rdi, rdi jz short loc_B69FC call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_B69FC: mov rdi, [rsp+68h+var_60] test rdi, rdi jz short loc_B6A32 mov rax, cs:__libc_single_threaded_ptr cmp byte ptr [rax], 0 jz short loc_B6A1D mov eax, [rdi+0Ch] lea ecx, [rax-1] mov [rdi+0Ch], ecx jmp short loc_B6A27 loc_B6A1D: mov eax, 0FFFFFFFFh lock xadd [rdi+0Ch], eax loc_B6A27: cmp eax, 1 jnz short loc_B6A32 mov rax, [rdi] call qword ptr [rax+18h] loc_B6A32: mov eax, ebx add rsp, 50h pop rbx pop r14 pop r15 retn mov rbx, rax mov rdi, rsp; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() mov rdi, rbx call __Unwind_Resume
long long minja::Value::get<bool>(minja::Value *this, long long a2, unsigned int a3) { _QWORD *v4; // rax unsigned int v5; // eax long long v6; // rdi signed __int32 v7; // eax long long v9; // [rsp+0h] [rbp-68h] BYREF long long v10; // [rsp+8h] [rbp-60h] volatile signed __int32 *v11; // [rsp+18h] [rbp-50h] volatile signed __int32 *v12; // [rsp+28h] [rbp-40h] volatile signed __int32 *v13; // [rsp+38h] [rbp-30h] char v14[40]; // [rsp+40h] [rbp-28h] BYREF if ( minja::Value::contains((long long)this, a2) ) { minja::Value::Value((long long)&v9, a2); v4 = (_QWORD *)minja::Value::at(this, (const minja::Value *)&v9); LOBYTE(v5) = minja::Value::get<bool>(v4); a3 = v5; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v14); 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(v14); if ( v13 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v13); if ( v12 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v12); if ( v11 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v11); v6 = v10; if ( v10 ) { if ( _libc_single_threaded ) { v7 = *(_DWORD *)(v10 + 12); *(_DWORD *)(v10 + 12) = v7 - 1; } else { v7 = _InterlockedExchangeAdd((volatile signed __int32 *)(v10 + 12), 0xFFFFFFFF); } if ( v7 == 1 ) (*(void ( **)(long long, _QWORD))(*(_QWORD *)v6 + 24LL))(v6, 0LL); } } return a3; }
get<bool>: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x50 MOV EBX,EDX MOV R15,RSI MOV R14,RDI CALL 0x00195e52 TEST AL,AL JZ 0x001b6a32 MOV RBX,RSP MOV RDI,RBX MOV RSI,R15 CALL 0x0018c9f2 LAB_001b69a4: MOV RDI,R14 MOV RSI,RBX CALL 0x001959f4 MOV RDI,RAX CALL 0x001899f4 LAB_001b69b7: MOV EBX,EAX LEA R14,[RSP + 0x40] MOV RDI,R14 XOR ESI,ESI CALL 0x0015b2d4 MOV RDI,R14 CALL 0x001607c2 MOV RDI,qword ptr [R14 + -0x8] TEST RDI,RDI JZ 0x001b69de CALL 0x001701e6 LAB_001b69de: MOV RDI,qword ptr [RSP + 0x28] TEST RDI,RDI JZ 0x001b69ed CALL 0x001701e6 LAB_001b69ed: MOV RDI,qword ptr [RSP + 0x18] TEST RDI,RDI JZ 0x001b69fc CALL 0x001701e6 LAB_001b69fc: MOV RDI,qword ptr [RSP + 0x8] TEST RDI,RDI JZ 0x001b6a32 MOV RAX,qword ptr [0x0022df78] CMP byte ptr [RAX],0x0 JZ 0x001b6a1d MOV EAX,dword ptr [RDI + 0xc] LEA ECX,[RAX + -0x1] MOV dword ptr [RDI + 0xc],ECX JMP 0x001b6a27 LAB_001b6a1d: MOV EAX,0xffffffff XADD.LOCK dword ptr [RDI + 0xc],EAX LAB_001b6a27: CMP EAX,0x1 JNZ 0x001b6a32 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x18] LAB_001b6a32: MOV EAX,EBX ADD RSP,0x50 POP RBX POP R14 POP R15 RET
/* bool minja::Value::get<bool>(std::__cxx11::string const&, bool) const */ bool __thiscall minja::Value::get<bool>(Value *this,string *param_1,bool param_2) { int *piVar1; char cVar2; int iVar3; Value *this_00; Value aVStack_68 [8]; long *local_60; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_50; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_40; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_30; data local_28 [16]; cVar2 = contains(this,param_1); if (cVar2 != '\0') { Value(aVStack_68,param_1); /* try { // try from 001b69a4 to 001b69b6 has its CatchHandler @ 001b6a3e */ this_00 = (Value *)at(this,aVStack_68); param_2 = get<bool>(this_00); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_28,0)); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_28); if (local_30 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_30); } if (local_40 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_40); } if (local_50 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_50); } if (local_60 != (long *)0x0) { if (*PTR___libc_single_threaded_0022df78 == '\0') { LOCK(); piVar1 = (int *)((long)local_60 + 0xc); iVar3 = *piVar1; *piVar1 = *piVar1 + -1; UNLOCK(); } else { iVar3 = *(int *)((long)local_60 + 0xc); *(int *)((long)local_60 + 0xc) = iVar3 + -1; } if (iVar3 == 1) { (**(code **)(*local_60 + 0x18))(); } } } return param_2; }
60,308
minja::IfExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const
monkey531[P]llama/common/minja.hpp
Value do_evaluate(const std::shared_ptr<Context> & context) const override { if (!condition) throw std::runtime_error("IfExpr.condition is null"); if (!then_expr) throw std::runtime_error("IfExpr.then_expr is null"); if (condition->evaluate(context).to_bool()) { return then_expr->evaluate(context); } if (else_expr) { return else_expr->evaluate(context); } return nullptr; }
O1
cpp
minja::IfExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const: pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x50, %rsp movq %rsi, %r15 movq 0x20(%rsi), %rsi testq %rsi, %rsi je 0x59b25 cmpq $0x0, 0x30(%r15) je 0x59b43 movq %rdx, %r14 movq %rdi, %rbx movq %rsp, %r12 movq %r12, %rdi callq 0x3d950 movq %r12, %rdi callq 0x3db52 movl %eax, %ebp leaq 0x40(%rsp), %r12 movq %r12, %rdi xorl %esi, %esi callq 0x3dcd2 movq %r12, %rdi callq 0x4ac3e movq -0x8(%r12), %rdi testq %rdi, %rdi je 0x59a64 callq 0x2fde4 movq 0x28(%rsp), %rdi testq %rdi, %rdi je 0x59a73 callq 0x2fde4 movq 0x18(%rsp), %rdi testq %rdi, %rdi je 0x59a82 callq 0x2fde4 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x59ab8 movq 0x85505(%rip), %rax # 0xdef98 cmpb $0x0, (%rax) je 0x59aa3 movl 0xc(%rdi), %eax leal -0x1(%rax), %ecx movl %ecx, 0xc(%rdi) jmp 0x59aad movl $0xffffffff, %eax # imm = 0xFFFFFFFF lock xaddl %eax, 0xc(%rdi) cmpl $0x1, %eax jne 0x59ab8 movq (%rdi), %rax callq *0x18(%rax) testb %bpl, %bpl je 0x59ac3 movq 0x30(%r15), %rsi jmp 0x59acc movq 0x40(%r15), %rsi testq %rsi, %rsi je 0x59ae7 movq %rbx, %rdi movq %r14, %rdx callq 0x3d950 movq %rbx, %rax addq $0x50, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq leaq 0x40(%rbx), %r14 movq $0x0, 0x48(%rbx) xorps %xmm0, %xmm0 movups %xmm0, (%rbx) movups %xmm0, 0x10(%rbx) movups %xmm0, 0x20(%rbx) movups %xmm0, 0x30(%rbx) movb $0x0, 0x40(%rbx) movq %r14, %rdi movl $0x1, %esi callq 0x3dcd2 movq %r14, %rdi movl $0x1, %esi callq 0x3dcd2 jmp 0x59ad7 movl $0x10, %edi callq 0x18350 movq %rax, %r14 leaq 0x54bbe(%rip), %rsi # 0xae6f7 movq %rax, %rdi callq 0x18260 jmp 0x59b5f movl $0x10, %edi callq 0x18350 movq %rax, %r14 leaq 0x54bb9(%rip), %rsi # 0xae710 movq %rax, %rdi callq 0x18260 movq 0x8548a(%rip), %rsi # 0xdeff0 movq 0x85403(%rip), %rdx # 0xdef70 movq %r14, %rdi callq 0x18b30 jmp 0x59b77 movq %rax, %rbx movq %r14, %rdi callq 0x184f0 jmp 0x59b8f movq %rax, %rbx movq %rsp, %rdi callq 0x3dc46 movq %rbx, %rdi callq 0x18bb0 nop
_ZNK5minja6IfExpr11do_evaluateERKSt10shared_ptrINS_7ContextEE: push rbp push r15 push r14 push r12 push rbx sub rsp, 50h mov r15, rsi mov rsi, [rsi+20h] test rsi, rsi jz loc_59B25 cmp qword ptr [r15+30h], 0 jz loc_59B43 mov r14, rdx mov rbx, rdi mov r12, rsp mov rdi, r12 call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&) mov rdi, r12; this call _ZNK5minja5Value7to_boolEv; minja::Value::to_bool(void) mov ebp, eax lea r12, [rsp+78h+var_38] mov rdi, r12 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, r12 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, [r12-8] test rdi, rdi jz short loc_59A64 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_59A64: mov rdi, [rsp+78h+var_50] test rdi, rdi jz short loc_59A73 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_59A73: mov rdi, [rsp+78h+var_60] test rdi, rdi jz short loc_59A82 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_59A82: mov rdi, [rsp+78h+var_70] test rdi, rdi jz short loc_59AB8 mov rax, cs:__libc_single_threaded_ptr cmp byte ptr [rax], 0 jz short loc_59AA3 mov eax, [rdi+0Ch] lea ecx, [rax-1] mov [rdi+0Ch], ecx jmp short loc_59AAD loc_59AA3: mov eax, 0FFFFFFFFh lock xadd [rdi+0Ch], eax loc_59AAD: cmp eax, 1 jnz short loc_59AB8 mov rax, [rdi] call qword ptr [rax+18h] loc_59AB8: test bpl, bpl jz short loc_59AC3 mov rsi, [r15+30h] jmp short loc_59ACC loc_59AC3: mov rsi, [r15+40h] test rsi, rsi jz short loc_59AE7 loc_59ACC: mov rdi, rbx mov rdx, r14 call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&) loc_59AD7: mov rax, rbx add rsp, 50h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_59AE7: lea r14, [rbx+40h] mov qword ptr [rbx+48h], 0 xorps xmm0, xmm0 movups xmmword ptr [rbx], xmm0 movups xmmword ptr [rbx+10h], xmm0 movups xmmword ptr [rbx+20h], xmm0 movups xmmword ptr [rbx+30h], xmm0 mov byte ptr [rbx+40h], 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) 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) jmp short loc_59AD7 loc_59B25: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aIfexprConditio; "IfExpr.condition is null" mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) jmp short loc_59B5F loc_59B43: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aIfexprThenExpr; "IfExpr.then_expr is null" mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) loc_59B5F: mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, r14; void * call ___cxa_throw jmp short $+2 loc_59B77: mov rbx, rax mov rdi, r14; void * call ___cxa_free_exception jmp short loc_59B8F mov rbx, rax mov rdi, rsp; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() loc_59B8F: mov rdi, rbx call __Unwind_Resume
long long minja::IfExpr::do_evaluate(long long a1, _QWORD *a2) { void (***v3)(void); // rsi char v5; // bp long long v6; // rdi signed __int32 v7; // eax void (***v8)(void); // rsi std::runtime_error *exception; // r14 long long v11; // [rsp+0h] [rbp-78h] BYREF long long v12; // [rsp+8h] [rbp-70h] volatile signed __int32 *v13; // [rsp+18h] [rbp-60h] volatile signed __int32 *v14; // [rsp+28h] [rbp-50h] volatile signed __int32 *v15; // [rsp+38h] [rbp-40h] void *v16[7]; // [rsp+40h] [rbp-38h] BYREF v3 = (void (***)(void))a2[4]; if ( !v3 ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "IfExpr.condition is null"); goto LABEL_23; } if ( !a2[6] ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "IfExpr.then_expr is null"); LABEL_23: __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } minja::Expression::evaluate((long long)&v11, v3); v5 = minja::Value::to_bool((minja::Value *)&v11); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v16); 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(v16); if ( v15 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v15); if ( v14 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v14); if ( v13 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v13); v6 = v12; if ( v12 ) { if ( _libc_single_threaded ) { v7 = *(_DWORD *)(v12 + 12); *(_DWORD *)(v12 + 12) = v7 - 1; } else { v7 = _InterlockedExchangeAdd((volatile signed __int32 *)(v12 + 12), 0xFFFFFFFF); } if ( v7 == 1 ) (*(void ( **)(long long, _QWORD))(*(_QWORD *)v6 + 24LL))(v6, 0LL); } if ( v5 ) { v8 = (void (***)(void))a2[6]; } else { v8 = (void (***)(void))a2[8]; if ( !v8 ) { *(_QWORD *)(a1 + 72) = 0LL; *(_OWORD *)a1 = 0LL; *(_OWORD *)(a1 + 16) = 0LL; *(_OWORD *)(a1 + 32) = 0LL; *(_OWORD *)(a1 + 48) = 0LL; *(_BYTE *)(a1 + 64) = 0; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)(a1 + 64)); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)(a1 + 64)); return a1; } } minja::Expression::evaluate(a1, v8); return a1; }
do_evaluate: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x50 MOV R15,RSI MOV RSI,qword ptr [RSI + 0x20] TEST RSI,RSI JZ 0x00159b25 CMP qword ptr [R15 + 0x30],0x0 JZ 0x00159b43 MOV R14,RDX MOV RBX,RDI MOV R12,RSP MOV RDI,R12 CALL 0x0013d950 LAB_00159a34: MOV RDI,R12 CALL 0x0013db52 LAB_00159a3c: MOV EBP,EAX LEA R12,[RSP + 0x40] MOV RDI,R12 XOR ESI,ESI CALL 0x0013dcd2 MOV RDI,R12 CALL 0x0014ac3e MOV RDI,qword ptr [R12 + -0x8] TEST RDI,RDI JZ 0x00159a64 CALL 0x0012fde4 LAB_00159a64: MOV RDI,qword ptr [RSP + 0x28] TEST RDI,RDI JZ 0x00159a73 CALL 0x0012fde4 LAB_00159a73: MOV RDI,qword ptr [RSP + 0x18] TEST RDI,RDI JZ 0x00159a82 CALL 0x0012fde4 LAB_00159a82: MOV RDI,qword ptr [RSP + 0x8] TEST RDI,RDI JZ 0x00159ab8 MOV RAX,qword ptr [0x001def98] CMP byte ptr [RAX],0x0 JZ 0x00159aa3 MOV EAX,dword ptr [RDI + 0xc] LEA ECX,[RAX + -0x1] MOV dword ptr [RDI + 0xc],ECX JMP 0x00159aad LAB_00159aa3: MOV EAX,0xffffffff XADD.LOCK dword ptr [RDI + 0xc],EAX LAB_00159aad: CMP EAX,0x1 JNZ 0x00159ab8 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x18] LAB_00159ab8: TEST BPL,BPL JZ 0x00159ac3 MOV RSI,qword ptr [R15 + 0x30] JMP 0x00159acc LAB_00159ac3: MOV RSI,qword ptr [R15 + 0x40] TEST RSI,RSI JZ 0x00159ae7 LAB_00159acc: MOV RDI,RBX MOV RDX,R14 CALL 0x0013d950 LAB_00159ad7: MOV RAX,RBX ADD RSP,0x50 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_00159ae7: LEA R14,[RBX + 0x40] MOV qword ptr [RBX + 0x48],0x0 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX],XMM0 MOVUPS xmmword ptr [RBX + 0x10],XMM0 MOVUPS xmmword ptr [RBX + 0x20],XMM0 MOVUPS xmmword ptr [RBX + 0x30],XMM0 MOV byte ptr [RBX + 0x40],0x0 MOV RDI,R14 MOV ESI,0x1 CALL 0x0013dcd2 MOV RDI,R14 MOV ESI,0x1 CALL 0x0013dcd2 JMP 0x00159ad7 LAB_00159b25: MOV EDI,0x10 CALL 0x00118350 MOV R14,RAX LAB_00159b32: LEA RSI,[0x1ae6f7] MOV RDI,RAX CALL 0x00118260 LAB_00159b41: JMP 0x00159b5f LAB_00159b43: MOV EDI,0x10 CALL 0x00118350 MOV R14,RAX LAB_00159b50: LEA RSI,[0x1ae710] MOV RDI,RAX CALL 0x00118260 LAB_00159b5f: MOV RSI,qword ptr [0x001deff0] MOV RDX,qword ptr [0x001def70] MOV RDI,R14 CALL 0x00118b30
/* minja::IfExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const */ IfExpr * __thiscall minja::IfExpr::do_evaluate(IfExpr *this,shared_ptr *param_1) { int *piVar1; char cVar2; int iVar3; runtime_error *this_00; shared_ptr *psVar4; bool bVar5; Expression aEStack_78 [8]; long *local_70; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_60; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_50; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_40; data local_38 [16]; if (*(shared_ptr **)(param_1 + 0x20) == (shared_ptr *)0x0) { this_00 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 00159b32 to 00159b40 has its CatchHandler @ 00159b77 */ std::runtime_error::runtime_error(this_00,"IfExpr.condition is null"); } else { if (*(long *)(param_1 + 0x30) != 0) { Expression::evaluate(aEStack_78,*(shared_ptr **)(param_1 + 0x20)); /* try { // try from 00159a34 to 00159a3b has its CatchHandler @ 00159b84 */ cVar2 = Value::to_bool((Value *)aEStack_78); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_38,0)); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_38); if (local_40 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_40); } if (local_50 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_50); } if (local_60 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_60); } if (local_70 != (long *)0x0) { if (*PTR___libc_single_threaded_001def98 == '\0') { LOCK(); piVar1 = (int *)((long)local_70 + 0xc); iVar3 = *piVar1; *piVar1 = *piVar1 + -1; UNLOCK(); } else { iVar3 = *(int *)((long)local_70 + 0xc); *(int *)((long)local_70 + 0xc) = iVar3 + -1; } if (iVar3 == 1) { (**(code **)(*local_70 + 0x18))(); } } if (cVar2 == '\0') { psVar4 = *(shared_ptr **)(param_1 + 0x40); if (psVar4 == (shared_ptr *)0x0) { bVar5 = (bool)((char)this + '@'); *(int8 *)(this + 0x48) = 0; *(int8 *)this = 0; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; this[0x40] = (IfExpr)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(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); return this; } } else { psVar4 = *(shared_ptr **)(param_1 + 0x30); } Expression::evaluate((Expression *)this,psVar4); return this; } this_00 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 00159b50 to 00159b5e has its CatchHandler @ 00159b75 */ std::runtime_error::runtime_error(this_00,"IfExpr.then_expr is null"); } /* WARNING: Subroutine does not return */ __cxa_throw(this_00,PTR_typeinfo_001deff0,PTR__runtime_error_001def70); }
60,309
check_content
eloqsql/storage/maria/unittest/ma_test_loghandler_multithread-t.c
static my_bool check_content(uchar *ptr, ulong length) { ulong i; for (i= 0; i < length; i++) { if (((uchar)ptr[i]) != (i & 0xFF)) { fprintf(stderr, "Byte # %lu is %x instead of %x", i, (uint) ptr[i], (uint) (i & 0xFF)); return 1; } } return 0; }
O3
c
check_content: testq %rsi, %rsi je 0x30dc1 xorl %ecx, %ecx movzbl (%rdi,%rcx), %r8d cmpb %r8b, %cl jne 0x30dc4 incq %rcx cmpq %rcx, %rsi jne 0x30daf xorl %eax, %eax retq pushq %rbp movq %rsp, %rbp movq 0x3531d1(%rip), %rax # 0x383fa0 movq (%rax), %rdi movzbl %cl, %r9d leaq 0xa8855(%rip), %rdx # 0xd9632 movl $0x1, %esi xorl %eax, %eax callq 0x291f0 movb $0x1, %al popq %rbp retq
check_content: test rsi, rsi jz short loc_30DC1 xor ecx, ecx loc_30DAF: movzx r8d, byte ptr [rdi+rcx] cmp cl, r8b jnz short loc_30DC4 inc rcx cmp rsi, rcx jnz short loc_30DAF loc_30DC1: xor eax, eax retn loc_30DC4: push rbp mov rbp, rsp mov rax, cs:stderr_ptr mov rdi, [rax] movzx r9d, cl lea rdx, aByteLuIsXInste; "Byte # %lu is %x instead of %x" mov esi, 1 xor eax, eax call ___fprintf_chk mov al, 1 pop rbp retn
char check_content(long long a1, long long a2) { long long v2; // rcx int v3; // r8d if ( !a2 ) return 0; v2 = 0LL; while ( 1 ) { v3 = *(unsigned __int8 *)(a1 + v2); if ( (_BYTE)v2 != (_BYTE)v3 ) break; if ( a2 == ++v2 ) return 0; } __fprintf_chk(stderr, 1LL, "Byte # %lu is %x instead of %x", v2, v3, (unsigned __int8)v2); return 1; }
check_content: TEST RSI,RSI JZ 0x00130dc1 XOR ECX,ECX LAB_00130daf: MOVZX R8D,byte ptr [RDI + RCX*0x1] CMP CL,R8B JNZ 0x00130dc4 INC RCX CMP RSI,RCX JNZ 0x00130daf LAB_00130dc1: XOR EAX,EAX RET LAB_00130dc4: PUSH RBP MOV RBP,RSP MOV RAX,qword ptr [0x00483fa0] MOV RDI,qword ptr [RAX] MOVZX R9D,CL LEA RDX,[0x1d9632] MOV ESI,0x1 XOR EAX,EAX CALL 0x001291f0 MOV AL,0x1 POP RBP RET
int8 check_content(long param_1,ulong param_2) { ulong uVar1; if (param_2 != 0) { uVar1 = 0; do { if ((char)uVar1 != *(char *)(param_1 + uVar1)) { __fprintf_chk(*(int8 *)PTR_stderr_00483fa0,1,"Byte # %lu is %x instead of %x",uVar1, *(char *)(param_1 + uVar1),uVar1 & 0xff); return 1; } uVar1 = uVar1 + 1; } while (param_2 != uVar1); } return 0; }
60,310
char* fmt::v10::detail::format_uint<1u, char, unsigned long>(char*, unsigned long, int, bool)
aimrt_mujoco_sim/_deps/fmt-src/include/fmt/format.h
FMT_CONSTEXPR auto format_uint(Char* buffer, UInt value, int num_digits, bool upper = false) -> Char* { buffer += num_digits; Char* end = buffer; do { const char* digits = upper ? "0123456789ABCDEF" : "0123456789abcdef"; unsigned digit = static_cast<unsigned>(value & ((1 << BASE_BITS) - 1)); *--buffer = static_cast<Char>(BASE_BITS < 4 ? static_cast<char>('0' + digit) : digits[digit]); } while ((value >>= BASE_BITS) != 0); return end; }
O0
c
char* fmt::v10::detail::format_uint<1u, char, unsigned long>(char*, unsigned long, int, bool): movb %cl, %al movq %rdi, -0x8(%rsp) movq %rsi, -0x10(%rsp) movl %edx, -0x14(%rsp) andb $0x1, %al movb %al, -0x15(%rsp) movl -0x14(%rsp), %ecx movq -0x8(%rsp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x8(%rsp) movq -0x8(%rsp), %rax movq %rax, -0x20(%rsp) testb $0x1, -0x15(%rsp) je 0xa7229 leaq 0x106c28(%rip), %rax # 0x1ade4a movq %rax, -0x38(%rsp) jmp 0xa7237 leaq 0x106c2b(%rip), %rax # 0x1ade5b movq %rax, -0x38(%rsp) jmp 0xa7237 movq -0x38(%rsp), %rax movq %rax, -0x28(%rsp) movq -0x10(%rsp), %rax andq $0x1, %rax movl %eax, -0x2c(%rsp) movl -0x2c(%rsp), %eax addl $0x30, %eax movb %al, %cl movq -0x8(%rsp), %rax movq %rax, %rdx addq $-0x1, %rdx movq %rdx, -0x8(%rsp) movb %cl, -0x1(%rax) movq -0x10(%rsp), %rax shrq %rax movq %rax, -0x10(%rsp) cmpq $0x0, %rax jne 0xa7214 movq -0x20(%rsp), %rax retq nopw %cs:(%rax,%rax) nop
_ZN3fmt3v106detail11format_uintILj1EcmEEPT0_S4_T1_ib: mov al, cl mov [rsp+var_8], rdi mov [rsp+var_10], rsi mov [rsp+var_14], edx and al, 1 mov [rsp+var_15], al mov ecx, [rsp+var_14] mov rax, [rsp+var_8] movsxd rcx, ecx add rax, rcx mov [rsp+var_8], rax mov rax, [rsp+var_8] mov [rsp+var_20], rax loc_A7214: test [rsp+var_15], 1 jz short loc_A7229 lea rax, a0123456789abcd; "0123456789ABCDEF" mov [rsp+var_38], rax jmp short loc_A7237 loc_A7229: lea rax, a0123456789abcd_0; "0123456789abcdef" mov [rsp+var_38], rax jmp short $+2 loc_A7237: mov rax, [rsp+var_38] mov [rsp+var_28], rax mov rax, [rsp+var_10] and rax, 1 mov [rsp+var_2C], eax mov eax, [rsp+var_2C] add eax, 30h ; '0' mov cl, al mov rax, [rsp+var_8] mov rdx, rax add rdx, 0FFFFFFFFFFFFFFFFh mov [rsp+var_8], rdx mov [rax-1], cl mov rax, [rsp+var_10] shr rax, 1 mov [rsp+var_10], rax cmp rax, 0 jnz short loc_A7214 mov rax, [rsp+var_20] retn
long long fmt::v10::detail::format_uint<1u,char,unsigned long>(long long a1, unsigned long long a2, int a3) { long long v3; // rax long long v6; // [rsp+30h] [rbp-8h] v6 = a3 + a1; do { v3 = v6--; *(_BYTE *)(v3 - 1) = (a2 & 1) + 48; a2 >>= 1; } while ( a2 ); return a3 + a1; }
format_uint<1u,char,unsigned_long>: MOV AL,CL MOV qword ptr [RSP + -0x8],RDI MOV qword ptr [RSP + -0x10],RSI MOV dword ptr [RSP + -0x14],EDX AND AL,0x1 MOV byte ptr [RSP + -0x15],AL MOV ECX,dword ptr [RSP + -0x14] MOV RAX,qword ptr [RSP + -0x8] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RSP + -0x8],RAX MOV RAX,qword ptr [RSP + -0x8] MOV qword ptr [RSP + -0x20],RAX LAB_001a7214: TEST byte ptr [RSP + -0x15],0x1 JZ 0x001a7229 LEA RAX,[0x2ade4a] MOV qword ptr [RSP + -0x38],RAX JMP 0x001a7237 LAB_001a7229: LEA RAX,[0x2ade5b] MOV qword ptr [RSP + -0x38],RAX JMP 0x001a7237 LAB_001a7237: MOV RAX,qword ptr [RSP + -0x38] MOV qword ptr [RSP + -0x28],RAX MOV RAX,qword ptr [RSP + -0x10] AND RAX,0x1 MOV dword ptr [RSP + -0x2c],EAX MOV EAX,dword ptr [RSP + -0x2c] ADD EAX,0x30 MOV CL,AL MOV RAX,qword ptr [RSP + -0x8] MOV RDX,RAX ADD RDX,-0x1 MOV qword ptr [RSP + -0x8],RDX MOV byte ptr [RAX + -0x1],CL MOV RAX,qword ptr [RSP + -0x10] SHR RAX,0x1 MOV qword ptr [RSP + -0x10],RAX CMP RAX,0x0 JNZ 0x001a7214 MOV RAX,qword ptr [RSP + -0x20] RET
/* char* fmt::v10::detail::format_uint<1u, char, unsigned long>(char*, unsigned long, int, bool) */ char * fmt::v10::detail::format_uint<1u,char,unsigned_long> (char *param_1,ulong param_2,int param_3,bool param_4) { ulong local_10; char *local_8; local_10 = param_2; local_8 = param_1 + param_3; do { local_8[-1] = ((byte)local_10 & 1) + 0x30; local_10 = local_10 >> 1; local_8 = local_8 + -1; } while (local_10 != 0); return param_1 + param_3; }
60,311
link_to_file_list
eloqsql/mysys/mf_keycache.c
static void link_to_file_list(SIMPLE_KEY_CACHE_CB *keycache, BLOCK_LINK *block, int file, my_bool unlink_block) { DBUG_ASSERT(block->status & BLOCK_IN_USE); DBUG_ASSERT(block->hash_link && block->hash_link->block == block); DBUG_ASSERT(block->hash_link->file == file); if (unlink_block) unlink_changed(block); link_changed(block, &keycache->file_blocks[FILE_HASH(file, keycache)]); if (block->status & BLOCK_CHANGED) { block->status&= ~BLOCK_CHANGED; keycache->blocks_changed--; keycache->global_blocks_changed--; } }
O0
c
link_to_file_list: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movb %cl, %al movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movb %al, -0x15(%rbp) jmp 0xe50ca jmp 0xe50cc jmp 0xe50ce jmp 0xe50d0 jmp 0xe50d2 cmpb $0x0, -0x15(%rbp) je 0xe50e1 movq -0x10(%rbp), %rdi callq 0xe5290 movq -0x10(%rbp), %rdi movq -0x8(%rbp), %rax movq 0x130(%rax), %rsi movl -0x14(%rbp), %eax movq -0x8(%rbp), %rcx movl 0x3c(%rcx), %ecx subl $0x1, %ecx andl %ecx, %eax movl %eax, %eax shlq $0x3, %rax addq %rax, %rsi callq 0xe54f0 movq -0x10(%rbp), %rax movl 0x50(%rax), %eax andl $0x20, %eax cmpl $0x0, %eax je 0xe514f movq -0x10(%rbp), %rax movl 0x50(%rax), %ecx andl $-0x21, %ecx movl %ecx, 0x50(%rax) movq -0x8(%rbp), %rax movq 0x60(%rax), %rcx addq $-0x1, %rcx movq %rcx, 0x60(%rax) movq -0x8(%rbp), %rax movq 0x138(%rax), %rcx addq $-0x1, %rcx movq %rcx, 0x138(%rax) addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
link_to_file_list_0: push rbp mov rbp, rsp sub rsp, 20h mov al, cl mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx mov [rbp+var_15], al jmp short $+2 loc_E50CA: jmp short $+2 loc_E50CC: jmp short $+2 loc_E50CE: jmp short $+2 loc_E50D0: jmp short $+2 loc_E50D2: cmp [rbp+var_15], 0 jz short loc_E50E1 mov rdi, [rbp+var_10] call unlink_changed_0 loc_E50E1: mov rdi, [rbp+var_10] mov rax, [rbp+var_8] mov rsi, [rax+130h] mov eax, [rbp+var_14] mov rcx, [rbp+var_8] mov ecx, [rcx+3Ch] sub ecx, 1 and eax, ecx mov eax, eax shl rax, 3 add rsi, rax call link_changed_0 mov rax, [rbp+var_10] mov eax, [rax+50h] and eax, 20h cmp eax, 0 jz short loc_E514F mov rax, [rbp+var_10] mov ecx, [rax+50h] and ecx, 0FFFFFFDFh mov [rax+50h], ecx mov rax, [rbp+var_8] mov rcx, [rax+60h] add rcx, 0FFFFFFFFFFFFFFFFh mov [rax+60h], rcx mov rax, [rbp+var_8] mov rcx, [rax+138h] add rcx, 0FFFFFFFFFFFFFFFFh mov [rax+138h], rcx loc_E514F: add rsp, 20h pop rbp retn
long long link_to_file_list_0(long long a1, long long a2, unsigned int a3, char a4) { long long result; // rax if ( a4 ) unlink_changed_0(a2); link_changed_0(a2, 8LL * ((*(_DWORD *)(a1 + 60) - 1) & a3) + *(_QWORD *)(a1 + 304)); result = *(_DWORD *)(a2 + 80) & 0x20; if ( (_DWORD)result ) { *(_DWORD *)(a2 + 80) &= ~0x20u; --*(_QWORD *)(a1 + 96); result = a1; --*(_QWORD *)(a1 + 312); } return result; }
link_to_file_list: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV AL,CL MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX MOV byte ptr [RBP + -0x15],AL JMP 0x001e50ca LAB_001e50ca: JMP 0x001e50cc LAB_001e50cc: JMP 0x001e50ce LAB_001e50ce: JMP 0x001e50d0 LAB_001e50d0: JMP 0x001e50d2 LAB_001e50d2: CMP byte ptr [RBP + -0x15],0x0 JZ 0x001e50e1 MOV RDI,qword ptr [RBP + -0x10] CALL 0x001e5290 LAB_001e50e1: MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RAX + 0x130] MOV EAX,dword ptr [RBP + -0x14] MOV RCX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RCX + 0x3c] SUB ECX,0x1 AND EAX,ECX MOV EAX,EAX SHL RAX,0x3 ADD RSI,RAX CALL 0x001e54f0 MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x50] AND EAX,0x20 CMP EAX,0x0 JZ 0x001e514f MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RAX + 0x50] AND ECX,0xffffffdf MOV dword ptr [RAX + 0x50],ECX MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RAX + 0x60] ADD RCX,-0x1 MOV qword ptr [RAX + 0x60],RCX MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RAX + 0x138] ADD RCX,-0x1 MOV qword ptr [RAX + 0x138],RCX LAB_001e514f: ADD RSP,0x20 POP RBP RET
void link_to_file_list(long param_1,long param_2,uint param_3,char param_4) { if (param_4 != '\0') { unlink_changed(param_2); } link_changed(param_2,*(long *)(param_1 + 0x130) + (ulong)(param_3 & *(int *)(param_1 + 0x3c) - 1U) * 8); if ((*(uint *)(param_2 + 0x50) & 0x20) != 0) { *(uint *)(param_2 + 0x50) = *(uint *)(param_2 + 0x50) & 0xffffffdf; *(long *)(param_1 + 0x60) = *(long *)(param_1 + 0x60) + -1; *(long *)(param_1 + 0x138) = *(long *)(param_1 + 0x138) + -1; } return; }
60,312
link_to_file_list
eloqsql/mysys/mf_keycache.c
static void link_to_file_list(SIMPLE_KEY_CACHE_CB *keycache, BLOCK_LINK *block, int file, my_bool unlink_block) { DBUG_ASSERT(block->status & BLOCK_IN_USE); DBUG_ASSERT(block->hash_link && block->hash_link->block == block); DBUG_ASSERT(block->hash_link->file == file); if (unlink_block) unlink_changed(block); link_changed(block, &keycache->file_blocks[FILE_HASH(file, keycache)]); if (block->status & BLOCK_CHANGED) { block->status&= ~BLOCK_CHANGED; keycache->blocks_changed--; keycache->global_blocks_changed--; } }
O3
c
link_to_file_list: pushq %rbp movq %rsp, %rbp testb %cl, %cl je 0x9876e movq 0x10(%rsi), %rcx movq 0x18(%rsi), %rax testq %rcx, %rcx je 0x98769 movq %rax, 0x18(%rcx) movq 0x10(%rsi), %rcx jmp 0x9876b xorl %ecx, %ecx movq %rcx, (%rax) movq 0x130(%rdi), %rax movl 0x3c(%rdi), %ecx decl %ecx andl %edx, %ecx leaq (%rax,%rcx,8), %rax movq %rax, 0x18(%rsi) movq (%rax), %rcx movq %rcx, 0x10(%rsi) testq %rcx, %rcx je 0x98798 leaq 0x10(%rsi), %rdx movq %rdx, 0x18(%rcx) movq %rsi, (%rax) movl 0x50(%rsi), %eax testb $0x20, %al je 0x987b3 andl $-0x21, %eax movl %eax, 0x50(%rsi) decq 0x60(%rdi) decq 0x138(%rdi) popq %rbp retq
link_to_file_list_0: push rbp mov rbp, rsp test cl, cl jz short loc_9876E mov rcx, [rsi+10h] mov rax, [rsi+18h] test rcx, rcx jz short loc_98769 mov [rcx+18h], rax mov rcx, [rsi+10h] jmp short loc_9876B loc_98769: xor ecx, ecx loc_9876B: mov [rax], rcx loc_9876E: mov rax, [rdi+130h] mov ecx, [rdi+3Ch] dec ecx and ecx, edx lea rax, [rax+rcx*8] mov [rsi+18h], rax mov rcx, [rax] mov [rsi+10h], rcx test rcx, rcx jz short loc_98798 lea rdx, [rsi+10h] mov [rcx+18h], rdx loc_98798: mov [rax], rsi mov eax, [rsi+50h] test al, 20h jz short loc_987B3 and eax, 0FFFFFFDFh mov [rsi+50h], eax dec qword ptr [rdi+60h] dec qword ptr [rdi+138h] loc_987B3: pop rbp retn
long long link_to_file_list_0(long long a1, long long a2, int a3, char a4) { long long v4; // rcx _QWORD *v5; // rax long long v6; // rcx long long *v7; // rax long long v8; // rcx long long result; // rax if ( a4 ) { v4 = *(_QWORD *)(a2 + 16); v5 = *(_QWORD **)(a2 + 24); if ( v4 ) { *(_QWORD *)(v4 + 24) = v5; v6 = *(_QWORD *)(a2 + 16); } else { v6 = 0LL; } *v5 = v6; } v7 = (long long *)(*(_QWORD *)(a1 + 304) + 8LL * (a3 & (unsigned int)(*(_DWORD *)(a1 + 60) - 1))); *(_QWORD *)(a2 + 24) = v7; v8 = *v7; *(_QWORD *)(a2 + 16) = *v7; if ( v8 ) *(_QWORD *)(v8 + 24) = a2 + 16; *v7 = a2; result = *(unsigned int *)(a2 + 80); if ( (result & 0x20) != 0 ) { result = (unsigned int)result & 0xFFFFFFDF; *(_DWORD *)(a2 + 80) = result; --*(_QWORD *)(a1 + 96); --*(_QWORD *)(a1 + 312); } return result; }
link_to_file_list: PUSH RBP MOV RBP,RSP TEST CL,CL JZ 0x0019876e MOV RCX,qword ptr [RSI + 0x10] MOV RAX,qword ptr [RSI + 0x18] TEST RCX,RCX JZ 0x00198769 MOV qword ptr [RCX + 0x18],RAX MOV RCX,qword ptr [RSI + 0x10] JMP 0x0019876b LAB_00198769: XOR ECX,ECX LAB_0019876b: MOV qword ptr [RAX],RCX LAB_0019876e: MOV RAX,qword ptr [RDI + 0x130] MOV ECX,dword ptr [RDI + 0x3c] DEC ECX AND ECX,EDX LEA RAX,[RAX + RCX*0x8] MOV qword ptr [RSI + 0x18],RAX MOV RCX,qword ptr [RAX] MOV qword ptr [RSI + 0x10],RCX TEST RCX,RCX JZ 0x00198798 LEA RDX,[RSI + 0x10] MOV qword ptr [RCX + 0x18],RDX LAB_00198798: MOV qword ptr [RAX],RSI MOV EAX,dword ptr [RSI + 0x50] TEST AL,0x20 JZ 0x001987b3 AND EAX,0xffffffdf MOV dword ptr [RSI + 0x50],EAX DEC qword ptr [RDI + 0x60] DEC qword ptr [RDI + 0x138] LAB_001987b3: POP RBP RET
void link_to_file_list(long param_1,long param_2,uint param_3,char param_4) { long *plVar1; int8 *puVar2; long lVar3; int8 uVar4; if (param_4 != '\0') { puVar2 = *(int8 **)(param_2 + 0x18); if (*(long *)(param_2 + 0x10) == 0) { uVar4 = 0; } else { *(int8 **)(*(long *)(param_2 + 0x10) + 0x18) = puVar2; uVar4 = *(int8 *)(param_2 + 0x10); } *puVar2 = uVar4; } plVar1 = (long *)(*(long *)(param_1 + 0x130) + (ulong)(*(int *)(param_1 + 0x3c) - 1U & param_3) * 8); *(long **)(param_2 + 0x18) = plVar1; lVar3 = *plVar1; *(long *)(param_2 + 0x10) = lVar3; if (lVar3 != 0) { *(long *)(lVar3 + 0x18) = param_2 + 0x10; } *plVar1 = param_2; if ((*(uint *)(param_2 + 0x50) & 0x20) != 0) { *(uint *)(param_2 + 0x50) = *(uint *)(param_2 + 0x50) & 0xffffffdf; *(long *)(param_1 + 0x60) = *(long *)(param_1 + 0x60) + -1; *(long *)(param_1 + 0x138) = *(long *)(param_1 + 0x138) + -1; } return; }
60,313
my_read_charset_file
eloqsql/mysys/charset.c
static my_bool my_read_charset_file(MY_CHARSET_LOADER *loader, const char *filename, myf myflags) { uchar *buf; int fd; size_t len, tmp_len; MY_STAT stat_info; if (!my_stat(filename, &stat_info, MYF(myflags)) || ((len= (uint)stat_info.st_size) > MY_MAX_ALLOWED_BUF) || !(buf= (uchar*) my_malloc(key_memory_charset_loader,len,myflags))) return TRUE; if ((fd= mysql_file_open(key_file_charset, filename, O_RDONLY, myflags)) < 0) goto error; tmp_len= mysql_file_read(fd, buf, len, myflags); mysql_file_close(fd, myflags); if (tmp_len != len) goto error; if (my_parse_charset_xml(loader, (char *) buf, len)) { my_printf_error(EE_UNKNOWN_CHARSET, "Error while parsing '%s': %s\n", MYF(0), filename, loader->error); goto error; } my_free(buf); return FALSE; error: my_free(buf); return TRUE; }
O3
c
my_read_charset_file: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xf8, %rsp movq %rdx, %r12 movq %rsi, %r14 movq %rdi, %rbx leaq -0x120(%rbp), %rsi movq %r14, %rdi callq 0x2fff7 testq %rax, %rax je 0x298ec movl -0xf0(%rbp), %r13d cmpq $0x100000, %r13 # imm = 0x100000 ja 0x298ec leaq 0x3501e0(%rip), %rax # 0x3799b4 movl (%rax), %edi movq %r13, %rsi movq %r12, %rdx callq 0x300d9 testq %rax, %rax je 0x298ec movq %rax, %r15 movq %rbx, -0x38(%rbp) leaq 0x34f858(%rip), %rax # 0x379050 movl (%rax), %esi leaq 0x2d1387(%rip), %rax # 0x2fab88 movq (%rax), %rax leaq -0x90(%rbp), %rdi leaq -0x48(%rbp), %rbx movl $0x2, %edx movq %r14, %rcx movq %rbx, %r8 callq *0x148(%rax) movq %rax, (%rbx) testq %rax, %rax jne 0x298fe movq %r14, %rdi xorl %esi, %esi movq %r12, %rdx callq 0x30678 movl %eax, %ebx testl %ebx, %ebx js 0x298e4 leaq 0x2d133e(%rip), %rax # 0x2fab88 movq (%rax), %rax leaq -0x90(%rbp), %rdi movl %ebx, %esi movl $0x6, %edx callq *0x158(%rax) testq %rax, %rax jne 0x29947 movl %ebx, %edi movq %r15, %rsi movq %r13, %rdx movq %r12, %rcx callq 0x30c38 movq %rax, -0x30(%rbp) leaq 0x2d1303(%rip), %rax # 0x2fab88 movq (%rax), %rax leaq -0x90(%rbp), %rdi movl %ebx, %esi movl $0x4, %edx callq *0x158(%rax) testq %rax, %rax jne 0x299bb movl %ebx, %edi movq %r12, %rsi callq 0x3081d cmpq %r13, -0x30(%rbp) jne 0x298e4 movq -0x38(%rbp), %rdi movq %r15, %rsi movq %r13, %rdx callq 0x5cbb8 testb %al, %al je 0x298e4 leaq 0x3ab1e(%rip), %rsi # 0x643ed movl $0x16, %edi xorl %edx, %edx movq %r14, %rcx movq -0x38(%rbp), %r8 xorl %eax, %eax callq 0x2ce01 movq %r15, %rdi callq 0x30306 addq $0xf8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x2d1283(%rip), %rcx # 0x2fab88 movq (%rcx), %rcx leaq 0x3aaa5(%rip), %rsi # 0x643b4 movq %rax, %rdi movl $0x223, %edx # imm = 0x223 callq *0x1f0(%rcx) movq %r14, %rdi xorl %esi, %esi movq %r12, %rdx callq 0x30678 movl %eax, %ebx leaq 0x2d1255(%rip), %rax # 0x2fab88 movq (%rax), %rax movq -0x48(%rbp), %rdi movl %ebx, %esi callq *0x200(%rax) jmp 0x2983b movq %rax, %rcx leaq 0x2d1237(%rip), %rax # 0x2fab88 movq (%rax), %rax leaq 0x3aa59(%rip), %rdx # 0x643b4 movq %rcx, -0x40(%rbp) movq %rcx, %rdi movq %r13, %rsi movl $0x225, %ecx # imm = 0x225 callq *0x210(%rax) movl %ebx, %edi movq %r15, %rsi movq %r13, %rdx movq %r12, %rcx callq 0x30c38 xorl %esi, %esi testq %rax, %rax movl $0x0, %ecx cmoveq %r13, %rcx cmpq $-0x1, %rax movq %rax, -0x30(%rbp) cmovneq %rax, %rsi testb $0x6, %r12b cmovneq %rcx, %rsi leaq 0x2d11df(%rip), %rax # 0x2fab88 movq (%rax), %rax movq -0x40(%rbp), %rdi callq *0x218(%rax) jmp 0x2987e movq %rax, %rdi movl %ebx, %esi movq %r12, %rdx callq 0x249fa jmp 0x298af
my_read_charset_file: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 0F8h mov r12, rdx mov r14, rsi mov rbx, rdi lea rsi, [rbp+var_120] mov rdi, r14 call my_stat test rax, rax jz loc_298EC mov r13d, [rbp+var_F0] cmp r13, offset unk_100000 ja loc_298EC lea rax, key_memory_charset_loader mov edi, [rax] mov rsi, r13 mov rdx, r12 call my_malloc test rax, rax jz loc_298EC mov r15, rax mov [rbp+var_38], rbx lea rax, key_file_charset mov esi, [rax] lea rax, PSI_server mov rax, [rax] lea rdi, [rbp+var_90] lea rbx, [rbp+var_48] mov edx, 2 mov rcx, r14 mov r8, rbx call qword ptr [rax+148h] mov [rbx], rax test rax, rax jnz loc_298FE mov rdi, r14 xor esi, esi mov rdx, r12 call my_open mov ebx, eax loc_2983B: test ebx, ebx js loc_298E4 lea rax, PSI_server mov rax, [rax] lea rdi, [rbp+var_90] mov esi, ebx mov edx, 6 call qword ptr [rax+158h] test rax, rax jnz loc_29947 mov edi, ebx mov rsi, r15 mov rdx, r13 mov rcx, r12 call my_read mov [rbp+var_30], rax loc_2987E: lea rax, PSI_server mov rax, [rax] lea rdi, [rbp+var_90] mov esi, ebx mov edx, 4 call qword ptr [rax+158h] test rax, rax jnz loc_299BB mov edi, ebx mov rsi, r12 call my_close loc_298AF: cmp [rbp+var_30], r13 jnz short loc_298E4 mov rdi, [rbp+var_38] mov rsi, r15 mov rdx, r13 call my_parse_charset_xml test al, al jz short loc_298E4 lea rsi, aErrorWhilePars; "Error while parsing '%s': %s\n" mov edi, 16h xor edx, edx mov rcx, r14 mov r8, [rbp+var_38] xor eax, eax call my_printf_error loc_298E4: mov rdi, r15 call my_free loc_298EC: add rsp, 0F8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_298FE: lea rcx, PSI_server mov rcx, [rcx] lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"... mov rdi, rax mov edx, 223h call qword ptr [rcx+1F0h] mov rdi, r14 xor esi, esi mov rdx, r12 call my_open mov ebx, eax lea rax, PSI_server mov rax, [rax] mov rdi, [rbp+var_48] mov esi, ebx call qword ptr [rax+200h] jmp loc_2983B loc_29947: mov rcx, rax lea rax, PSI_server mov rax, [rax] lea rdx, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"... mov [rbp+var_40], rcx mov rdi, rcx mov rsi, r13 mov ecx, 225h call qword ptr [rax+210h] mov edi, ebx mov rsi, r15 mov rdx, r13 mov rcx, r12 call my_read xor esi, esi test rax, rax mov ecx, 0 cmovz rcx, r13 cmp rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_30], rax cmovnz rsi, rax test r12b, 6 cmovnz rsi, rcx lea rax, PSI_server mov rax, [rax] mov rdi, [rbp+var_40] call qword ptr [rax+218h] jmp loc_2987E loc_299BB: mov rdi, rax mov esi, ebx mov rdx, r12 call my_read_charset_file_cold_1 jmp loc_298AF
long long my_read_charset_file(long long a1, long long a2, long long a3) { int v4; // r14d long long result; // rax long long v6; // r13 long long v7; // r15 long long v8; // rax long long v9; // rbx long long v10; // rax long long v11; // rax int v12; // r9d long long v13; // rax long long v14; // rdx long long v15; // rsi long long v16; // rcx char v17[48]; // [rsp+0h] [rbp-120h] BYREF unsigned int v18; // [rsp+30h] [rbp-F0h] _BYTE v19[72]; // [rsp+90h] [rbp-90h] BYREF long long v20; // [rsp+D8h] [rbp-48h] BYREF long long v21; // [rsp+E0h] [rbp-40h] long long v22; // [rsp+E8h] [rbp-38h] long long v23; // [rsp+F0h] [rbp-30h] v4 = a2; result = my_stat(a2, v17, a3); if ( result ) { v6 = v18; if ( v18 <= (unsigned long long)&unk_100000 ) { result = my_malloc(key_memory_charset_loader, v18); if ( result ) { v7 = result; v22 = a1; v8 = (*((long long ( **)(_BYTE *, _QWORD, long long, long long, long long *))PSI_server + 41))( v19, key_file_charset, 2LL, a2, &v20); v20 = v8; if ( v8 ) { (*((void ( **)(long long, const char *, long long))PSI_server + 62))( v8, "/workspace/llm4binary/github2025/eloqsql/mysys/charset.c", 547LL); v9 = (unsigned int)my_open(a2, 0LL, a3); (*((void ( **)(long long, long long))PSI_server + 64))(v20, v9); } else { LODWORD(v9) = my_open(a2, 0LL, a3); } if ( (int)v9 >= 0 ) { v10 = (*((long long ( **)(_BYTE *, _QWORD, long long))PSI_server + 43))(v19, (unsigned int)v9, 6LL); if ( v10 ) { v21 = v10; (*((void ( **)(long long, long long, const char *, long long))PSI_server + 66))( v10, v6, "/workspace/llm4binary/github2025/eloqsql/mysys/charset.c", 549LL); v13 = my_read((unsigned int)v9, v7, v6, a3); v15 = 0LL; v16 = 0LL; if ( !v13 ) v16 = v6; v23 = v13; if ( v13 != -1 ) v15 = v13; if ( (a3 & 6) != 0 ) v15 = v16; (*((void ( **)(long long, long long, long long, long long))PSI_server + 67))(v21, v15, v14, v16); } else { v23 = my_read((unsigned int)v9, v7, v6, a3); } v11 = (*((long long ( **)(_BYTE *, _QWORD, long long))PSI_server + 43))(v19, (unsigned int)v9, 4LL); if ( v11 ) my_read_charset_file_cold_1(v11, v9, a3); else my_close((unsigned int)v9, a3); if ( v23 == v6 ) { if ( (unsigned __int8)my_parse_charset_xml(v22, v7, v6) ) my_printf_error(22, (unsigned int)"Error while parsing '%s': %s\n", 0, v4, v22, v12, v17[0]); } } return my_free(v7); } } } return result; }
my_read_charset_file: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xf8 MOV R12,RDX MOV R14,RSI MOV RBX,RDI LEA RSI,[RBP + -0x120] MOV RDI,R14 CALL 0x0012fff7 TEST RAX,RAX JZ 0x001298ec MOV R13D,dword ptr [RBP + -0xf0] CMP R13,0x100000 JA 0x001298ec LEA RAX,[0x4799b4] MOV EDI,dword ptr [RAX] MOV RSI,R13 MOV RDX,R12 CALL 0x001300d9 TEST RAX,RAX JZ 0x001298ec MOV R15,RAX MOV qword ptr [RBP + -0x38],RBX LEA RAX,[0x479050] MOV ESI,dword ptr [RAX] LEA RAX,[0x3fab88] MOV RAX,qword ptr [RAX] LEA RDI,[RBP + -0x90] LEA RBX,[RBP + -0x48] MOV EDX,0x2 MOV RCX,R14 MOV R8,RBX CALL qword ptr [RAX + 0x148] MOV qword ptr [RBX],RAX TEST RAX,RAX JNZ 0x001298fe MOV RDI,R14 XOR ESI,ESI MOV RDX,R12 CALL 0x00130678 MOV EBX,EAX LAB_0012983b: TEST EBX,EBX JS 0x001298e4 LEA RAX,[0x3fab88] MOV RAX,qword ptr [RAX] LEA RDI,[RBP + -0x90] MOV ESI,EBX MOV EDX,0x6 CALL qword ptr [RAX + 0x158] TEST RAX,RAX JNZ 0x00129947 MOV EDI,EBX MOV RSI,R15 MOV RDX,R13 MOV RCX,R12 CALL 0x00130c38 MOV qword ptr [RBP + -0x30],RAX LAB_0012987e: LEA RAX,[0x3fab88] MOV RAX,qword ptr [RAX] LEA RDI,[RBP + -0x90] MOV ESI,EBX MOV EDX,0x4 CALL qword ptr [RAX + 0x158] TEST RAX,RAX JNZ 0x001299bb MOV EDI,EBX MOV RSI,R12 CALL 0x0013081d LAB_001298af: CMP qword ptr [RBP + -0x30],R13 JNZ 0x001298e4 MOV RDI,qword ptr [RBP + -0x38] MOV RSI,R15 MOV RDX,R13 CALL 0x0015cbb8 TEST AL,AL JZ 0x001298e4 LEA RSI,[0x1643ed] MOV EDI,0x16 XOR EDX,EDX MOV RCX,R14 MOV R8,qword ptr [RBP + -0x38] XOR EAX,EAX CALL 0x0012ce01 LAB_001298e4: MOV RDI,R15 CALL 0x00130306 LAB_001298ec: ADD RSP,0xf8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001298fe: LEA RCX,[0x3fab88] MOV RCX,qword ptr [RCX] LEA RSI,[0x1643b4] MOV RDI,RAX MOV EDX,0x223 CALL qword ptr [RCX + 0x1f0] MOV RDI,R14 XOR ESI,ESI MOV RDX,R12 CALL 0x00130678 MOV EBX,EAX LEA RAX,[0x3fab88] MOV RAX,qword ptr [RAX] MOV RDI,qword ptr [RBP + -0x48] MOV ESI,EBX CALL qword ptr [RAX + 0x200] JMP 0x0012983b LAB_00129947: MOV RCX,RAX LEA RAX,[0x3fab88] MOV RAX,qword ptr [RAX] LEA RDX,[0x1643b4] MOV qword ptr [RBP + -0x40],RCX MOV RDI,RCX MOV RSI,R13 MOV ECX,0x225 CALL qword ptr [RAX + 0x210] MOV EDI,EBX MOV RSI,R15 MOV RDX,R13 MOV RCX,R12 CALL 0x00130c38 XOR ESI,ESI TEST RAX,RAX MOV ECX,0x0 CMOVZ RCX,R13 CMP RAX,-0x1 MOV qword ptr [RBP + -0x30],RAX CMOVNZ RSI,RAX TEST R12B,0x6 CMOVNZ RSI,RCX LEA RAX,[0x3fab88] MOV RAX,qword ptr [RAX] MOV RDI,qword ptr [RBP + -0x40] CALL qword ptr [RAX + 0x218] JMP 0x0012987e LAB_001299bb: MOV RDI,RAX MOV ESI,EBX MOV RDX,R12 CALL 0x001249fa JMP 0x001298af
void my_read_charset_file(int8 param_1,int8 param_2,ulong param_3) { char cVar1; int iVar2; long lVar3; long lVar4; ulong uVar5; ulong uVar6; ulong uVar7; int1 local_128 [48]; uint local_f8; int1 local_98 [72]; long local_50; long local_48; int8 local_40; ulong local_38; lVar3 = my_stat(param_2,local_128); if ((lVar3 != 0) && (uVar7 = (ulong)local_f8, uVar7 < 0x100001)) { lVar3 = my_malloc(key_memory_charset_loader,uVar7,param_3); if (lVar3 != 0) { local_40 = param_1; local_50 = (**(code **)(PSI_server + 0x148))(local_98,key_file_charset,2,param_2,&local_50); if (local_50 == 0) { iVar2 = my_open(param_2,0,param_3); } else { (**(code **)(PSI_server + 0x1f0)) (local_50,"/workspace/llm4binary/github2025/eloqsql/mysys/charset.c",0x223); iVar2 = my_open(param_2,0,param_3); (**(code **)(PSI_server + 0x200))(local_50,iVar2); } if (-1 < iVar2) { lVar4 = (**(code **)(PSI_server + 0x158))(local_98,iVar2,6); if (lVar4 == 0) { local_38 = my_read(iVar2,lVar3,uVar7,param_3); } else { local_48 = lVar4; (**(code **)(PSI_server + 0x210)) (lVar4,uVar7,"/workspace/llm4binary/github2025/eloqsql/mysys/charset.c",0x225); local_38 = my_read(iVar2,lVar3,uVar7,param_3); uVar5 = 0; if (local_38 == 0) { uVar5 = uVar7; } uVar6 = 0; if (local_38 != 0xffffffffffffffff) { uVar6 = local_38; } if ((param_3 & 6) != 0) { uVar6 = uVar5; } (**(code **)(PSI_server + 0x218))(local_48,uVar6); } lVar4 = (**(code **)(PSI_server + 0x158))(local_98,iVar2,4); if (lVar4 == 0) { my_close(iVar2,param_3); } else { my_read_charset_file_cold_1(lVar4,iVar2,param_3); } if (local_38 == uVar7) { cVar1 = my_parse_charset_xml(local_40,lVar3,uVar7); if (cVar1 != '\0') { my_printf_error(0x16,"Error while parsing \'%s\': %s\n",0,param_2,local_40); } } } my_free(lVar3); } } return; }
60,314
my_vsnprintf_mb2
eloqsql/strings/ctype-ucs2.c
static size_t my_vsnprintf_mb2(char *dst, size_t n, const char* fmt, va_list ap) { char *start=dst, *end= dst + n - 1; for (; *fmt ; fmt++) { if (fmt[0] != '%') { if (dst == end) /* End of buffer */ break; *dst++='\0'; *dst++= *fmt; /* Copy ordinary char */ continue; } fmt++; /* Skip if max size is used (to be compatible with printf) */ while ( (*fmt >= '0' && *fmt <= '9') || *fmt == '.' || *fmt == '-') fmt++; if (*fmt == 'l') fmt++; if (*fmt == 's') /* String parameter */ { char *par= va_arg(ap, char *); size_t plen; size_t left_len= (size_t)(end-dst); if (!par) par= (char*) "(null)"; plen= strlen(par); if (left_len <= plen * 2) plen = left_len / 2 - 1; for ( ; plen ; plen--, dst+=2, par++) { dst[0]= '\0'; dst[1]= par[0]; } continue; } else if (*fmt == 'd' || *fmt == 'u') /* Integer parameter */ { int iarg; char nbuf[16]; char *pbuf= nbuf; if ((size_t) (end - dst) < 32) break; iarg= va_arg(ap, int); if (*fmt == 'd') int10_to_str((long) iarg, nbuf, -10); else int10_to_str((long) (uint) iarg, nbuf,10); for (; pbuf[0]; pbuf++) { *dst++= '\0'; *dst++= *pbuf; } continue; } /* We come here on '%%', unknown code or too long parameter */ if (dst == end) break; *dst++= '\0'; *dst++= '%'; /* % used as % or unknown code */ } DBUG_ASSERT(dst <= end); *dst='\0'; /* End of errmessage */ return (size_t) (dst - start); }
O0
c
my_vsnprintf_mb2: pushq %rbp movq %rsp, %rbp subq $0xb0, %rsp movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x28(%rbp) movq %rsi, -0x30(%rbp) movq %rdx, -0x38(%rbp) movq %rcx, -0x40(%rbp) movq -0x28(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x28(%rbp), %rax addq -0x30(%rbp), %rax addq $-0x1, %rax movq %rax, -0x50(%rbp) movq -0x38(%rbp), %rax cmpb $0x0, (%rax) je 0xbadea movq -0x38(%rbp), %rax movsbl (%rax), %eax cmpl $0x25, %eax je 0xbab16 movq -0x28(%rbp), %rax cmpq -0x50(%rbp), %rax jne 0xbaae8 jmp 0xbadea movq -0x28(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x28(%rbp) movb $0x0, (%rax) movq -0x38(%rbp), %rax movb (%rax), %cl movq -0x28(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x28(%rbp) movb %cl, (%rax) jmp 0xbadd9 movq -0x38(%rbp), %rax addq $0x1, %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movsbl (%rax), %eax cmpl $0x30, %eax jl 0xbab3f movq -0x38(%rbp), %rax movsbl (%rax), %ecx movb $0x1, %al cmpl $0x39, %ecx movb %al, -0x79(%rbp) jle 0xbab60 movq -0x38(%rbp), %rax movsbl (%rax), %ecx movb $0x1, %al cmpl $0x2e, %ecx movb %al, -0x79(%rbp) je 0xbab60 movq -0x38(%rbp), %rax movsbl (%rax), %eax cmpl $0x2d, %eax sete %al movb %al, -0x79(%rbp) movb -0x79(%rbp), %al testb $0x1, %al jne 0xbab69 jmp 0xbab77 movq -0x38(%rbp), %rax addq $0x1, %rax movq %rax, -0x38(%rbp) jmp 0xbab22 movq -0x38(%rbp), %rax movsbl (%rax), %eax cmpl $0x6c, %eax jne 0xbab8f movq -0x38(%rbp), %rax addq $0x1, %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movsbl (%rax), %eax cmpl $0x73, %eax jne 0xbac93 movq -0x40(%rbp), %rax movq %rax, -0x88(%rbp) movl (%rax), %eax movl %eax, -0x80(%rbp) cmpl $0x28, %eax ja 0xbabd3 movq -0x88(%rbp), %rcx movl -0x80(%rbp), %edx movslq %edx, %rax addq 0x10(%rcx), %rax addl $0x8, %edx movl %edx, (%rcx) movq %rax, -0x90(%rbp) jmp 0xbabf0 movq -0x88(%rbp), %rcx movq 0x8(%rcx), %rax movq %rax, %rdx addq $0x8, %rdx movq %rdx, 0x8(%rcx) movq %rax, -0x90(%rbp) movq -0x90(%rbp), %rax movq (%rax), %rax movq %rax, -0x58(%rbp) movq -0x50(%rbp), %rax movq -0x28(%rbp), %rcx subq %rcx, %rax movq %rax, -0x68(%rbp) cmpq $0x0, -0x58(%rbp) jne 0xbac1f leaq 0x29d94(%rip), %rax # 0xe49af movq %rax, -0x58(%rbp) movq -0x58(%rbp), %rdi callq 0x38410 movq %rax, -0x60(%rbp) movq -0x68(%rbp), %rax movq -0x60(%rbp), %rcx shlq %rcx cmpq %rcx, %rax ja 0xbac4b movq -0x68(%rbp), %rax shrq %rax subq $0x1, %rax movq %rax, -0x60(%rbp) jmp 0xbac4d cmpq $0x0, -0x60(%rbp) je 0xbac8e movq -0x28(%rbp), %rax movb $0x0, (%rax) movq -0x58(%rbp), %rax movb (%rax), %cl movq -0x28(%rbp), %rax movb %cl, 0x1(%rax) movq -0x60(%rbp), %rax addq $-0x1, %rax movq %rax, -0x60(%rbp) movq -0x28(%rbp), %rax addq $0x2, %rax movq %rax, -0x28(%rbp) movq -0x58(%rbp), %rax addq $0x1, %rax movq %rax, -0x58(%rbp) jmp 0xbac4d jmp 0xbadd9 movq -0x38(%rbp), %rax movsbl (%rax), %eax cmpl $0x64, %eax je 0xbacaf movq -0x38(%rbp), %rax movsbl (%rax), %eax cmpl $0x75, %eax jne 0xbada7 leaq -0x20(%rbp), %rax movq %rax, -0x78(%rbp) movq -0x50(%rbp), %rax movq -0x28(%rbp), %rcx subq %rcx, %rax cmpq $0x20, %rax jae 0xbaccd jmp 0xbadea movq -0x40(%rbp), %rax movq %rax, -0xa0(%rbp) movl (%rax), %eax movl %eax, -0x94(%rbp) cmpl $0x28, %eax ja 0xbad07 movq -0xa0(%rbp), %rcx movl -0x94(%rbp), %edx movslq %edx, %rax addq 0x10(%rcx), %rax addl $0x8, %edx movl %edx, (%rcx) movq %rax, -0xa8(%rbp) jmp 0xbad24 movq -0xa0(%rbp), %rcx movq 0x8(%rcx), %rax movq %rax, %rdx addq $0x8, %rdx movq %rdx, 0x8(%rcx) movq %rax, -0xa8(%rbp) movq -0xa8(%rbp), %rax movl (%rax), %eax movl %eax, -0x6c(%rbp) movq -0x38(%rbp), %rax movsbl (%rax), %eax cmpl $0x64, %eax jne 0xbad50 movslq -0x6c(%rbp), %rdi leaq -0x20(%rbp), %rsi movl $0xfffffff6, %edx # imm = 0xFFFFFFF6 callq 0xd1ef0 jmp 0xbad63 movl -0x6c(%rbp), %eax movl %eax, %edi leaq -0x20(%rbp), %rsi movl $0xa, %edx callq 0xd1ef0 jmp 0xbad65 movq -0x78(%rbp), %rax cmpb $0x0, (%rax) je 0xbada5 movq -0x28(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x28(%rbp) movb $0x0, (%rax) movq -0x78(%rbp), %rax movb (%rax), %cl movq -0x28(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x28(%rbp) movb %cl, (%rax) movq -0x78(%rbp), %rax addq $0x1, %rax movq %rax, -0x78(%rbp) jmp 0xbad65 jmp 0xbadd9 jmp 0xbada9 movq -0x28(%rbp), %rax cmpq -0x50(%rbp), %rax jne 0xbadb5 jmp 0xbadea movq -0x28(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x28(%rbp) movb $0x0, (%rax) movq -0x28(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x28(%rbp) movb $0x25, (%rax) movq -0x38(%rbp), %rax addq $0x1, %rax movq %rax, -0x38(%rbp) jmp 0xbaac0 jmp 0xbadec jmp 0xbadee movq -0x28(%rbp), %rax movb $0x0, (%rax) movq -0x28(%rbp), %rax movq -0x48(%rbp), %rcx subq %rcx, %rax movq %rax, -0xb0(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0xbae29 movq -0xb0(%rbp), %rax addq $0xb0, %rsp popq %rbp retq callq 0x382c0 nop
my_vsnprintf_mb2: push rbp mov rbp, rsp sub rsp, 0B0h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_28], rdi mov [rbp+var_30], rsi mov [rbp+var_38], rdx mov [rbp+var_40], rcx mov rax, [rbp+var_28] mov [rbp+var_48], rax mov rax, [rbp+var_28] add rax, [rbp+var_30] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_50], rax loc_BAAC0: mov rax, [rbp+var_38] cmp byte ptr [rax], 0 jz loc_BADEA mov rax, [rbp+var_38] movsx eax, byte ptr [rax] cmp eax, 25h ; '%' jz short loc_BAB16 mov rax, [rbp+var_28] cmp rax, [rbp+var_50] jnz short loc_BAAE8 jmp loc_BADEA loc_BAAE8: mov rax, [rbp+var_28] mov rcx, rax add rcx, 1 mov [rbp+var_28], rcx mov byte ptr [rax], 0 mov rax, [rbp+var_38] mov cl, [rax] mov rax, [rbp+var_28] mov rdx, rax add rdx, 1 mov [rbp+var_28], rdx mov [rax], cl jmp loc_BADD9 loc_BAB16: mov rax, [rbp+var_38] add rax, 1 mov [rbp+var_38], rax loc_BAB22: mov rax, [rbp+var_38] movsx eax, byte ptr [rax] cmp eax, 30h ; '0' jl short loc_BAB3F mov rax, [rbp+var_38] movsx ecx, byte ptr [rax] mov al, 1 cmp ecx, 39h ; '9' mov [rbp+var_79], al jle short loc_BAB60 loc_BAB3F: mov rax, [rbp+var_38] movsx ecx, byte ptr [rax] mov al, 1 cmp ecx, 2Eh ; '.' mov [rbp+var_79], al jz short loc_BAB60 mov rax, [rbp+var_38] movsx eax, byte ptr [rax] cmp eax, 2Dh ; '-' setz al mov [rbp+var_79], al loc_BAB60: mov al, [rbp+var_79] test al, 1 jnz short loc_BAB69 jmp short loc_BAB77 loc_BAB69: mov rax, [rbp+var_38] add rax, 1 mov [rbp+var_38], rax jmp short loc_BAB22 loc_BAB77: mov rax, [rbp+var_38] movsx eax, byte ptr [rax] cmp eax, 6Ch ; 'l' jnz short loc_BAB8F mov rax, [rbp+var_38] add rax, 1 mov [rbp+var_38], rax loc_BAB8F: mov rax, [rbp+var_38] movsx eax, byte ptr [rax] cmp eax, 73h ; 's' jnz loc_BAC93 mov rax, [rbp+var_40] mov [rbp+var_88], rax mov eax, [rax] mov [rbp+var_80], eax cmp eax, 28h ; '(' ja short loc_BABD3 mov rcx, [rbp+var_88] mov edx, [rbp+var_80] movsxd rax, edx add rax, [rcx+10h] add edx, 8 mov [rcx], edx mov [rbp+var_90], rax jmp short loc_BABF0 loc_BABD3: mov rcx, [rbp+var_88] mov rax, [rcx+8] mov rdx, rax add rdx, 8 mov [rcx+8], rdx mov [rbp+var_90], rax loc_BABF0: mov rax, [rbp+var_90] mov rax, [rax] mov [rbp+var_58], rax mov rax, [rbp+var_50] mov rcx, [rbp+var_28] sub rax, rcx mov [rbp+var_68], rax cmp [rbp+var_58], 0 jnz short loc_BAC1F lea rax, aNull; "(null)" mov [rbp+var_58], rax loc_BAC1F: mov rdi, [rbp+var_58] call _strlen mov [rbp+var_60], rax mov rax, [rbp+var_68] mov rcx, [rbp+var_60] shl rcx, 1 cmp rax, rcx ja short loc_BAC4B mov rax, [rbp+var_68] shr rax, 1 sub rax, 1 mov [rbp+var_60], rax loc_BAC4B: jmp short $+2 loc_BAC4D: cmp [rbp+var_60], 0 jz short loc_BAC8E mov rax, [rbp+var_28] mov byte ptr [rax], 0 mov rax, [rbp+var_58] mov cl, [rax] mov rax, [rbp+var_28] mov [rax+1], cl mov rax, [rbp+var_60] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_60], rax mov rax, [rbp+var_28] add rax, 2 mov [rbp+var_28], rax mov rax, [rbp+var_58] add rax, 1 mov [rbp+var_58], rax jmp short loc_BAC4D loc_BAC8E: jmp loc_BADD9 loc_BAC93: mov rax, [rbp+var_38] movsx eax, byte ptr [rax] cmp eax, 64h ; 'd' jz short loc_BACAF mov rax, [rbp+var_38] movsx eax, byte ptr [rax] cmp eax, 75h ; 'u' jnz loc_BADA7 loc_BACAF: lea rax, [rbp+var_20] mov [rbp+var_78], rax mov rax, [rbp+var_50] mov rcx, [rbp+var_28] sub rax, rcx cmp rax, 20h ; ' ' jnb short loc_BACCD jmp loc_BADEA loc_BACCD: mov rax, [rbp+var_40] mov [rbp+var_A0], rax mov eax, [rax] mov [rbp+var_94], eax cmp eax, 28h ; '(' ja short loc_BAD07 mov rcx, [rbp+var_A0] mov edx, [rbp+var_94] movsxd rax, edx add rax, [rcx+10h] add edx, 8 mov [rcx], edx mov [rbp+var_A8], rax jmp short loc_BAD24 loc_BAD07: mov rcx, [rbp+var_A0] mov rax, [rcx+8] mov rdx, rax add rdx, 8 mov [rcx+8], rdx mov [rbp+var_A8], rax loc_BAD24: mov rax, [rbp+var_A8] mov eax, [rax] mov [rbp+var_6C], eax mov rax, [rbp+var_38] movsx eax, byte ptr [rax] cmp eax, 64h ; 'd' jnz short loc_BAD50 movsxd rdi, [rbp+var_6C] lea rsi, [rbp+var_20] mov edx, 0FFFFFFF6h call int10_to_str jmp short loc_BAD63 loc_BAD50: mov eax, [rbp+var_6C] mov edi, eax lea rsi, [rbp+var_20] mov edx, 0Ah call int10_to_str loc_BAD63: jmp short $+2 loc_BAD65: mov rax, [rbp+var_78] cmp byte ptr [rax], 0 jz short loc_BADA5 mov rax, [rbp+var_28] mov rcx, rax add rcx, 1 mov [rbp+var_28], rcx mov byte ptr [rax], 0 mov rax, [rbp+var_78] mov cl, [rax] mov rax, [rbp+var_28] mov rdx, rax add rdx, 1 mov [rbp+var_28], rdx mov [rax], cl mov rax, [rbp+var_78] add rax, 1 mov [rbp+var_78], rax jmp short loc_BAD65 loc_BADA5: jmp short loc_BADD9 loc_BADA7: jmp short $+2 loc_BADA9: mov rax, [rbp+var_28] cmp rax, [rbp+var_50] jnz short loc_BADB5 jmp short loc_BADEA loc_BADB5: mov rax, [rbp+var_28] mov rcx, rax add rcx, 1 mov [rbp+var_28], rcx mov byte ptr [rax], 0 mov rax, [rbp+var_28] mov rcx, rax add rcx, 1 mov [rbp+var_28], rcx mov byte ptr [rax], 25h ; '%' loc_BADD9: mov rax, [rbp+var_38] add rax, 1 mov [rbp+var_38], rax jmp loc_BAAC0 loc_BADEA: jmp short $+2 loc_BADEC: jmp short $+2 loc_BADEE: mov rax, [rbp+var_28] mov byte ptr [rax], 0 mov rax, [rbp+var_28] mov rcx, [rbp+var_48] sub rax, rcx mov [rbp+var_B0], rax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_BAE29 mov rax, [rbp+var_B0] add rsp, 0B0h pop rbp retn loc_BAE29: call ___stack_chk_fail
_BYTE * my_vsnprintf_mb2(_BYTE *a1, long long a2, _BYTE *a3, int *a4) { _BYTE *v4; // rax const char **v5; // rax unsigned int *v6; // rax _BYTE *v7; // rax _BYTE *v8; // rax int v10; // [rsp+1Ch] [rbp-94h] int v11; // [rsp+30h] [rbp-80h] bool v12; // [rsp+37h] [rbp-79h] _BYTE *v13; // [rsp+38h] [rbp-78h] unsigned int v14; // [rsp+44h] [rbp-6Ch] unsigned long long v15; // [rsp+48h] [rbp-68h] long long v16; // [rsp+50h] [rbp-60h] const char *v17; // [rsp+58h] [rbp-58h] long long v18; // [rsp+60h] [rbp-50h] _BYTE *v21; // [rsp+88h] [rbp-28h] _BYTE v22[24]; // [rsp+90h] [rbp-20h] BYREF unsigned long long v23; // [rsp+A8h] [rbp-8h] v23 = __readfsqword(0x28u); v21 = a1; v18 = (long long)&a1[a2 - 1]; while ( *a3 ) { if ( *a3 == 37 ) { ++a3; while ( 1 ) { if ( (char)*a3 < 48 || (v12 = 1, (char)*a3 > 57) ) { v12 = 1; if ( *a3 != 46 ) v12 = *a3 == 45; } if ( !v12 ) break; ++a3; } if ( *a3 == 108 ) ++a3; if ( *a3 == 115 ) { v11 = *a4; if ( (unsigned int)*a4 > 0x28 ) { v5 = (const char **)*((_QWORD *)a4 + 1); *((_QWORD *)a4 + 1) = v5 + 1; } else { v5 = (const char **)(*((_QWORD *)a4 + 2) + v11); *a4 = v11 + 8; } v17 = *v5; v15 = v18 - (_QWORD)v21; if ( !*v5 ) v17 = "(null)"; v16 = strlen(v17); if ( v15 <= 2 * v16 ) v16 = (v15 >> 1) - 1; while ( v16 ) { *v21 = 0; v21[1] = *v17; --v16; v21 += 2; ++v17; } } else if ( *a3 == 100 || *a3 == 117 ) { v13 = v22; if ( (unsigned long long)(v18 - (_QWORD)v21) < 0x20 ) break; v10 = *a4; if ( (unsigned int)*a4 > 0x28 ) { v6 = (unsigned int *)*((_QWORD *)a4 + 1); *((_QWORD *)a4 + 1) = v6 + 2; } else { v6 = (unsigned int *)(*((_QWORD *)a4 + 2) + v10); *a4 = v10 + 8; } v14 = *v6; if ( *a3 == 100 ) int10_to_str((int)v14, v22, 4294967286LL); else int10_to_str(v14, v22, 10LL); while ( *v13 ) { *v21 = 0; v7 = v21 + 1; v21 += 2; *v7 = *v13++; } } else { if ( v21 == (_BYTE *)v18 ) break; *v21 = 0; v8 = v21 + 1; v21 += 2; *v8 = 37; } } else { if ( v21 == (_BYTE *)v18 ) break; *v21 = 0; v4 = v21 + 1; v21 += 2; *v4 = *a3; } ++a3; } *v21 = 0; return (_BYTE *)(v21 - a1); }
my_vsnprintf_mb2: PUSH RBP MOV RBP,RSP SUB RSP,0xb0 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x28],RDI MOV qword ptr [RBP + -0x30],RSI MOV qword ptr [RBP + -0x38],RDX MOV qword ptr [RBP + -0x40],RCX MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,qword ptr [RBP + -0x30] ADD RAX,-0x1 MOV qword ptr [RBP + -0x50],RAX LAB_001baac0: MOV RAX,qword ptr [RBP + -0x38] CMP byte ptr [RAX],0x0 JZ 0x001badea MOV RAX,qword ptr [RBP + -0x38] MOVSX EAX,byte ptr [RAX] CMP EAX,0x25 JZ 0x001bab16 MOV RAX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RBP + -0x50] JNZ 0x001baae8 JMP 0x001badea LAB_001baae8: MOV RAX,qword ptr [RBP + -0x28] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x28],RCX MOV byte ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x38] MOV CL,byte ptr [RAX] MOV RAX,qword ptr [RBP + -0x28] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x28],RDX MOV byte ptr [RAX],CL JMP 0x001badd9 LAB_001bab16: MOV RAX,qword ptr [RBP + -0x38] ADD RAX,0x1 MOV qword ptr [RBP + -0x38],RAX LAB_001bab22: MOV RAX,qword ptr [RBP + -0x38] MOVSX EAX,byte ptr [RAX] CMP EAX,0x30 JL 0x001bab3f MOV RAX,qword ptr [RBP + -0x38] MOVSX ECX,byte ptr [RAX] MOV AL,0x1 CMP ECX,0x39 MOV byte ptr [RBP + -0x79],AL JLE 0x001bab60 LAB_001bab3f: MOV RAX,qword ptr [RBP + -0x38] MOVSX ECX,byte ptr [RAX] MOV AL,0x1 CMP ECX,0x2e MOV byte ptr [RBP + -0x79],AL JZ 0x001bab60 MOV RAX,qword ptr [RBP + -0x38] MOVSX EAX,byte ptr [RAX] CMP EAX,0x2d SETZ AL MOV byte ptr [RBP + -0x79],AL LAB_001bab60: MOV AL,byte ptr [RBP + -0x79] TEST AL,0x1 JNZ 0x001bab69 JMP 0x001bab77 LAB_001bab69: MOV RAX,qword ptr [RBP + -0x38] ADD RAX,0x1 MOV qword ptr [RBP + -0x38],RAX JMP 0x001bab22 LAB_001bab77: MOV RAX,qword ptr [RBP + -0x38] MOVSX EAX,byte ptr [RAX] CMP EAX,0x6c JNZ 0x001bab8f MOV RAX,qword ptr [RBP + -0x38] ADD RAX,0x1 MOV qword ptr [RBP + -0x38],RAX LAB_001bab8f: MOV RAX,qword ptr [RBP + -0x38] MOVSX EAX,byte ptr [RAX] CMP EAX,0x73 JNZ 0x001bac93 MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x88],RAX MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x80],EAX CMP EAX,0x28 JA 0x001babd3 MOV RCX,qword ptr [RBP + -0x88] MOV EDX,dword ptr [RBP + -0x80] MOVSXD RAX,EDX ADD RAX,qword ptr [RCX + 0x10] ADD EDX,0x8 MOV dword ptr [RCX],EDX MOV qword ptr [RBP + -0x90],RAX JMP 0x001babf0 LAB_001babd3: MOV RCX,qword ptr [RBP + -0x88] MOV RAX,qword ptr [RCX + 0x8] MOV RDX,RAX ADD RDX,0x8 MOV qword ptr [RCX + 0x8],RDX MOV qword ptr [RBP + -0x90],RAX LAB_001babf0: MOV RAX,qword ptr [RBP + -0x90] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x50] MOV RCX,qword ptr [RBP + -0x28] SUB RAX,RCX MOV qword ptr [RBP + -0x68],RAX CMP qword ptr [RBP + -0x58],0x0 JNZ 0x001bac1f LEA RAX,[0x1e49af] MOV qword ptr [RBP + -0x58],RAX LAB_001bac1f: MOV RDI,qword ptr [RBP + -0x58] CALL 0x00138410 MOV qword ptr [RBP + -0x60],RAX MOV RAX,qword ptr [RBP + -0x68] MOV RCX,qword ptr [RBP + -0x60] SHL RCX,0x1 CMP RAX,RCX JA 0x001bac4b MOV RAX,qword ptr [RBP + -0x68] SHR RAX,0x1 SUB RAX,0x1 MOV qword ptr [RBP + -0x60],RAX LAB_001bac4b: JMP 0x001bac4d LAB_001bac4d: CMP qword ptr [RBP + -0x60],0x0 JZ 0x001bac8e MOV RAX,qword ptr [RBP + -0x28] MOV byte ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x58] MOV CL,byte ptr [RAX] MOV RAX,qword ptr [RBP + -0x28] MOV byte ptr [RAX + 0x1],CL MOV RAX,qword ptr [RBP + -0x60] ADD RAX,-0x1 MOV qword ptr [RBP + -0x60],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x2 MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x58] ADD RAX,0x1 MOV qword ptr [RBP + -0x58],RAX JMP 0x001bac4d LAB_001bac8e: JMP 0x001badd9 LAB_001bac93: MOV RAX,qword ptr [RBP + -0x38] MOVSX EAX,byte ptr [RAX] CMP EAX,0x64 JZ 0x001bacaf MOV RAX,qword ptr [RBP + -0x38] MOVSX EAX,byte ptr [RAX] CMP EAX,0x75 JNZ 0x001bada7 LAB_001bacaf: LEA RAX,[RBP + -0x20] MOV qword ptr [RBP + -0x78],RAX MOV RAX,qword ptr [RBP + -0x50] MOV RCX,qword ptr [RBP + -0x28] SUB RAX,RCX CMP RAX,0x20 JNC 0x001baccd JMP 0x001badea LAB_001baccd: MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0xa0],RAX MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x94],EAX CMP EAX,0x28 JA 0x001bad07 MOV RCX,qword ptr [RBP + -0xa0] MOV EDX,dword ptr [RBP + -0x94] MOVSXD RAX,EDX ADD RAX,qword ptr [RCX + 0x10] ADD EDX,0x8 MOV dword ptr [RCX],EDX MOV qword ptr [RBP + -0xa8],RAX JMP 0x001bad24 LAB_001bad07: MOV RCX,qword ptr [RBP + -0xa0] MOV RAX,qword ptr [RCX + 0x8] MOV RDX,RAX ADD RDX,0x8 MOV qword ptr [RCX + 0x8],RDX MOV qword ptr [RBP + -0xa8],RAX LAB_001bad24: MOV RAX,qword ptr [RBP + -0xa8] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x6c],EAX MOV RAX,qword ptr [RBP + -0x38] MOVSX EAX,byte ptr [RAX] CMP EAX,0x64 JNZ 0x001bad50 MOVSXD RDI,dword ptr [RBP + -0x6c] LEA RSI,[RBP + -0x20] MOV EDX,0xfffffff6 CALL 0x001d1ef0 JMP 0x001bad63 LAB_001bad50: MOV EAX,dword ptr [RBP + -0x6c] MOV EDI,EAX LEA RSI,[RBP + -0x20] MOV EDX,0xa CALL 0x001d1ef0 LAB_001bad63: JMP 0x001bad65 LAB_001bad65: MOV RAX,qword ptr [RBP + -0x78] CMP byte ptr [RAX],0x0 JZ 0x001bada5 MOV RAX,qword ptr [RBP + -0x28] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x28],RCX MOV byte ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x78] MOV CL,byte ptr [RAX] MOV RAX,qword ptr [RBP + -0x28] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x28],RDX MOV byte ptr [RAX],CL MOV RAX,qword ptr [RBP + -0x78] ADD RAX,0x1 MOV qword ptr [RBP + -0x78],RAX JMP 0x001bad65 LAB_001bada5: JMP 0x001badd9 LAB_001bada7: JMP 0x001bada9 LAB_001bada9: MOV RAX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RBP + -0x50] JNZ 0x001badb5 JMP 0x001badea LAB_001badb5: MOV RAX,qword ptr [RBP + -0x28] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x28],RCX MOV byte ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x28] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x28],RCX MOV byte ptr [RAX],0x25 LAB_001badd9: MOV RAX,qword ptr [RBP + -0x38] ADD RAX,0x1 MOV qword ptr [RBP + -0x38],RAX JMP 0x001baac0 LAB_001badea: JMP 0x001badec LAB_001badec: JMP 0x001badee LAB_001badee: MOV RAX,qword ptr [RBP + -0x28] MOV byte ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x48] SUB RAX,RCX MOV qword ptr [RBP + -0xb0],RAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x001bae29 MOV RAX,qword ptr [RBP + -0xb0] ADD RSP,0xb0 POP RBP RET LAB_001bae29: CALL 0x001382c0
long my_vsnprintf_mb2(int1 *param_1,long param_2,char *param_3,uint *param_4) { uint uVar1; int1 *puVar2; char *pcVar3; int1 *puVar4; long in_FS_OFFSET; bool bVar5; int *local_b0; long *local_98; char *local_80; size_t local_68; char *local_60; char *local_40; int1 *local_30; char local_28 [24]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); puVar2 = param_1 + param_2 + -1; local_30 = param_1; for (local_40 = param_3; *local_40 != '\0'; local_40 = local_40 + 1) { if (*local_40 == '%') { do { pcVar3 = local_40; local_40 = pcVar3 + 1; if (((*local_40 < '0') || (bVar5 = true, '9' < *local_40)) && (bVar5 = true, *local_40 != '.')) { bVar5 = *local_40 == '-'; } } while (bVar5); if (*local_40 == 'l') { local_40 = pcVar3 + 2; } if (*local_40 == 's') { uVar1 = *param_4; if (uVar1 < 0x29) { local_98 = (long *)((long)(int)uVar1 + *(long *)(param_4 + 4)); *param_4 = uVar1 + 8; } else { local_98 = *(long **)(param_4 + 2); *(long **)(param_4 + 2) = local_98 + 1; } local_60 = (char *)*local_98; if (local_60 == (char *)0x0) { local_60 = "(null)"; } local_68 = strlen(local_60); if ((ulong)((long)puVar2 - (long)local_30) <= local_68 * 2) { local_68 = ((ulong)((long)puVar2 - (long)local_30) >> 1) - 1; } for (; local_68 != 0; local_68 = local_68 - 1) { *local_30 = 0; local_30[1] = *local_60; local_30 = local_30 + 2; local_60 = local_60 + 1; } } else if ((*local_40 == 'd') || (*local_40 == 'u')) { local_80 = local_28; if ((ulong)((long)puVar2 - (long)local_30) < 0x20) break; uVar1 = *param_4; if (uVar1 < 0x29) { local_b0 = (int *)((long)(int)uVar1 + *(long *)(param_4 + 4)); *param_4 = uVar1 + 8; } else { local_b0 = *(int **)(param_4 + 2); *(int **)(param_4 + 2) = local_b0 + 2; } if (*local_40 == 'd') { int10_to_str((long)*local_b0,local_28,0xfffffff6); } else { int10_to_str(*local_b0,local_28,10); } for (; *local_80 != '\0'; local_80 = local_80 + 1) { pcVar3 = local_30 + 1; *local_30 = 0; local_30 = local_30 + 2; *pcVar3 = *local_80; } } else { if (local_30 == puVar2) break; puVar4 = local_30 + 1; *local_30 = 0; local_30 = local_30 + 2; *puVar4 = 0x25; } } else { if (local_30 == puVar2) break; pcVar3 = local_30 + 1; *local_30 = 0; local_30 = local_30 + 2; *pcVar3 = *local_40; } } *local_30 = 0; if (*(long *)(in_FS_OFFSET + 0x28) != local_10) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return (long)local_30 - (long)param_1; }
60,315
my_casedn_ucs2
eloqsql/strings/ctype-ucs2.c
static size_t my_casedn_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_tolower_ucs2(uni_plane, &wc); if (res != my_uni_ucs2(cs, wc, (uchar*) dst, (uchar*) dstend)) break; src+= res; dst+= res; } return srclen; }
O0
c
my_casedn_ucs2: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq -0x10(%rbp), %rax addq -0x18(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x20(%rbp), %rax addq -0x28(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x8(%rbp), %rax movq 0x78(%rax), %rax movq %rax, -0x50(%rbp) jmp 0x620d2 jmp 0x620d4 movq -0x10(%rbp), %rcx xorl %eax, %eax cmpq -0x40(%rbp), %rcx movb %al, -0x51(%rbp) jae 0x62104 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rdx movq -0x40(%rbp), %rcx leaq -0x30(%rbp), %rsi callq 0x61f00 movl %eax, -0x34(%rbp) cmpl $0x0, %eax setg %al movb %al, -0x51(%rbp) movb -0x51(%rbp), %al testb $0x1, %al jne 0x6210d jmp 0x62167 movq -0x50(%rbp), %rdi leaq -0x30(%rbp), %rsi callq 0x66e90 movl -0x34(%rbp), %eax movl %eax, -0x58(%rbp) movq -0x8(%rbp), %rdi movq -0x30(%rbp), %rsi movq -0x20(%rbp), %rdx movq -0x48(%rbp), %rcx callq 0x61f30 movl %eax, %ecx movl -0x58(%rbp), %eax cmpl %ecx, %eax je 0x62140 jmp 0x62167 movl -0x34(%rbp), %ecx movq -0x10(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x10(%rbp) movl -0x34(%rbp), %ecx movq -0x20(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x20(%rbp) jmp 0x620d4 movq -0x18(%rbp), %rax addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_casedn_ucs2: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov rax, [rbp+var_10] add rax, [rbp+var_18] mov [rbp+var_40], rax mov rax, [rbp+var_20] add rax, [rbp+var_28] mov [rbp+var_48], rax mov rax, [rbp+var_8] mov rax, [rax+78h] mov [rbp+var_50], rax jmp short $+2 loc_620D2: jmp short $+2 loc_620D4: mov rcx, [rbp+var_10] xor eax, eax cmp rcx, [rbp+var_40] mov [rbp+var_51], al jnb short loc_62104 mov rdi, [rbp+var_8] mov rdx, [rbp+var_10] mov rcx, [rbp+var_40] lea rsi, [rbp+var_30] call my_ucs2_uni mov [rbp+var_34], eax cmp eax, 0 setnle al mov [rbp+var_51], al loc_62104: mov al, [rbp+var_51] test al, 1 jnz short loc_6210D jmp short loc_62167 loc_6210D: mov rdi, [rbp+var_50] lea rsi, [rbp+var_30] call my_tolower_ucs2 mov eax, [rbp+var_34] mov [rbp+var_58], eax mov rdi, [rbp+var_8] mov rsi, [rbp+var_30] mov rdx, [rbp+var_20] mov rcx, [rbp+var_48] call my_uni_ucs2 mov ecx, eax mov eax, [rbp+var_58] cmp eax, ecx jz short loc_62140 jmp short loc_62167 loc_62140: mov ecx, [rbp+var_34] mov rax, [rbp+var_10] movsxd rcx, ecx add rax, rcx mov [rbp+var_10], rax mov ecx, [rbp+var_34] mov rax, [rbp+var_20] movsxd rcx, ecx add rax, rcx mov [rbp+var_20], rax jmp loc_620D4 loc_62167: mov rax, [rbp+var_18] add rsp, 60h pop rbp retn
long long my_casedn_ucs2(long long a1, unsigned long long a2, long long a3, _BYTE *a4, long long a5, long long a6) { bool v7; // [rsp+Fh] [rbp-51h] long long v8; // [rsp+10h] [rbp-50h] unsigned long long v9; // [rsp+18h] [rbp-48h] unsigned long long v10; // [rsp+20h] [rbp-40h] int v11; // [rsp+2Ch] [rbp-34h] unsigned long long v12[2]; // [rsp+30h] [rbp-30h] BYREF _BYTE *v13; // [rsp+40h] [rbp-20h] long long v14; // [rsp+48h] [rbp-18h] unsigned long long v15; // [rsp+50h] [rbp-10h] long long v16; // [rsp+58h] [rbp-8h] v16 = a1; v15 = a2; v14 = a3; v13 = a4; v12[1] = a5; v10 = a3 + a2; v9 = (unsigned long long)&a4[a5]; v8 = *(_QWORD *)(a1 + 120); while ( 1 ) { v7 = 0; if ( v15 < v10 ) { v11 = my_ucs2_uni(v16, (long long)v12, v15, v10, a5, a6); v7 = v11 > 0; } if ( !v7 ) break; my_tolower_ucs2(v8, v12); if ( v11 != (unsigned int)my_uni_ucs2(v16, v12[0], v13, v9) ) break; v15 += v11; v13 += v11; } return v14; }
my_casedn_ucs2: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV RAX,qword ptr [RBP + -0x10] ADD RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x20] ADD RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x78] MOV qword ptr [RBP + -0x50],RAX JMP 0x001620d2 LAB_001620d2: JMP 0x001620d4 LAB_001620d4: MOV RCX,qword ptr [RBP + -0x10] XOR EAX,EAX CMP RCX,qword ptr [RBP + -0x40] MOV byte ptr [RBP + -0x51],AL JNC 0x00162104 MOV RDI,qword ptr [RBP + -0x8] MOV RDX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x40] LEA RSI,[RBP + -0x30] CALL 0x00161f00 MOV dword ptr [RBP + -0x34],EAX CMP EAX,0x0 SETG AL MOV byte ptr [RBP + -0x51],AL LAB_00162104: MOV AL,byte ptr [RBP + -0x51] TEST AL,0x1 JNZ 0x0016210d JMP 0x00162167 LAB_0016210d: MOV RDI,qword ptr [RBP + -0x50] LEA RSI,[RBP + -0x30] CALL 0x00166e90 MOV EAX,dword ptr [RBP + -0x34] MOV dword ptr [RBP + -0x58],EAX MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x30] MOV RDX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x48] CALL 0x00161f30 MOV ECX,EAX MOV EAX,dword ptr [RBP + -0x58] CMP EAX,ECX JZ 0x00162140 JMP 0x00162167 LAB_00162140: MOV ECX,dword ptr [RBP + -0x34] MOV RAX,qword ptr [RBP + -0x10] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x10],RAX MOV ECX,dword ptr [RBP + -0x34] MOV RAX,qword ptr [RBP + -0x20] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x20],RAX JMP 0x001620d4 LAB_00162167: MOV RAX,qword ptr [RBP + -0x18] ADD RSP,0x60 POP RBP RET
long my_casedn_ucs2(long param_1,ulong param_2,long param_3,long param_4,long param_5) { int8 uVar1; bool bVar2; int iVar3; int local_3c; int8 local_38; long local_30; long local_28; long local_20; ulong local_18; long local_10; uVar1 = *(int8 *)(param_1 + 0x78); local_30 = param_5; local_28 = param_4; local_20 = param_3; local_18 = param_2; local_10 = param_1; while( true ) { bVar2 = false; if (local_18 < param_2 + param_3) { local_3c = my_ucs2_uni(local_10,&local_38,local_18,param_2 + param_3); bVar2 = 0 < local_3c; } if (!bVar2) break; my_tolower_ucs2(uVar1,&local_38); iVar3 = my_uni_ucs2(local_10,local_38,local_28,param_4 + param_5); if (local_3c != iVar3) { return local_20; } local_18 = local_18 + (long)local_3c; local_28 = local_28 + local_3c; } return local_20; }
60,316
my_casedn_ucs2
eloqsql/strings/ctype-ucs2.c
static size_t my_casedn_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_tolower_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_casedn_ucs2: movq %rdx, %rax cmpq $0x2, %rdx jl 0x4bec2 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 0x4be89 leaq (%r10,%r10,2), %r9 movl 0x4(%r11,%r9,4), %r9d jmp 0x4be90 shll $0x8, %r9d orq %r10, %r9 cmpq %r8, %rcx ja 0x4bec1 cmpl $0xffff, %r9d # imm = 0xFFFF ja 0x4bec1 rolw $0x8, %r9w movw %r9w, -0x2(%rcx) leaq 0x2(%rsi), %r9 cmpq %rdx, %r9 jae 0x4bec1 addq $0x4, %rsi addq $0x2, %rcx cmpq %rdx, %rsi movq %r9, %rsi jbe 0x4be68 popq %rbp retq
my_casedn_ucs2: mov rax, rdx cmp rdx, 2 jl short locret_4BEC2 push rbp mov rbp, rsp lea rdx, [rsi+rax] add r8, rcx mov rdi, [rdi+78h] add rcx, 2 loc_4BE68: 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_4BE89 lea r9, [r10+r10*2] mov r9d, [r11+r9*4+4] jmp short loc_4BE90 loc_4BE89: shl r9d, 8 or r9, r10 loc_4BE90: cmp rcx, r8 ja short loc_4BEC1 cmp r9d, 0FFFFh ja short loc_4BEC1 rol r9w, 8 mov [rcx-2], r9w lea r9, [rsi+2] cmp r9, rdx jnb short loc_4BEC1 add rsi, 4 add rcx, 2 cmp rsi, rdx mov rsi, r9 jbe short loc_4BE68 loc_4BEC1: pop rbp locret_4BEC2: retn
long long my_casedn_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 + 4); 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_casedn_ucs2: MOV RAX,RDX CMP RDX,0x2 JL 0x0014bec2 PUSH RBP MOV RBP,RSP LEA RDX,[RSI + RAX*0x1] ADD R8,RCX MOV RDI,qword ptr [RDI + 0x78] ADD RCX,0x2 LAB_0014be68: 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 0x0014be89 LEA R9,[R10 + R10*0x2] MOV R9D,dword ptr [R11 + R9*0x4 + 0x4] JMP 0x0014be90 LAB_0014be89: SHL R9D,0x8 OR R9,R10 LAB_0014be90: CMP RCX,R8 JA 0x0014bec1 CMP R9D,0xffff JA 0x0014bec1 ROL R9W,0x8 MOV word ptr [RCX + -0x2],R9W LEA R9,[RSI + 0x2] CMP R9,RDX JNC 0x0014bec1 ADD RSI,0x4 ADD RCX,0x2 CMP RSI,RDX MOV RSI,R9 JBE 0x0014be68 LAB_0014bec1: POP RBP LAB_0014bec2: RET
void my_casedn_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 + 4 + (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; }
60,317
checkCircle(Shape*, Circle&)
11AgReS1SoR11[P]Graph/Common/FiguresStorage/test/test.cpp
void checkCircle(Shape* shape, Circle& circle) { Circle* circleFromJson = dynamic_cast<Circle*>(shape); REQUIRE(circleFromJson); REQUIRE(compareShape(*circleFromJson, circle)); REQUIRE(circleFromJson->radius == circle.radius); }
O1
cpp
checkCircle(Shape*, Circle&): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x80, %rsp movq %rsi, %rbx testq %rdi, %rdi je 0x1279a movq 0x7e736(%rip), %rsi # 0x90ec0 movq 0x7e70f(%rip), %rdx # 0x90ea0 xorl %ecx, %ecx callq 0x115a0 jmp 0x1279c xorl %eax, %eax leaq 0x8(%rsp), %r13 movq %rax, (%r13) leaq 0x5087c(%rip), %r12 # 0x63028 leaq 0x58(%rsp), %r14 movq %r12, (%r14) movq $0x17, 0x8(%r14) movl $0x1, (%rsp) leaq 0x50856(%rip), %rsi # 0x63020 leaq 0x508b9(%rip), %r8 # 0x6308a leaq 0x10(%rsp), %r15 movl $0x7, %edx movl $0xe, %r9d movq %r15, %rdi movq %r14, %rcx callq 0x1de4c movq %r13, (%r14) leaq 0x58(%rsp), %rsi movq %r15, %rdi callq 0x1529c leaq 0x10(%rsp), %rdi callq 0x1dee8 cmpb $0x0, 0x4b(%rsp) jne 0x1281f leaq 0x10(%rsp), %rsi movq 0x40(%rsi), %rdi movq (%rdi), %rax callq *0xa0(%rax) leaq 0x58(%rsp), %r14 movq %r12, (%r14) movq $0x18, 0x8(%r14) movl $0x1, (%rsp) leaq 0x507e3(%rip), %rsi # 0x63020 leaq 0x50855(%rip), %r8 # 0x63099 leaq 0x10(%rsp), %r15 movl $0x7, %edx movl $0x25, %r9d movq %r15, %rdi movq %r14, %rcx callq 0x1de4c movq 0x8(%rsp), %rdi movq %rbx, %rsi callq 0x12725 movb %al, (%r14) leaq 0x58(%rsp), %rsi movq %r15, %rdi callq 0x1531a leaq 0x10(%rsp), %rdi callq 0x1dee8 cmpb $0x0, 0x4b(%rsp) jne 0x1289f leaq 0x10(%rsp), %rsi movq 0x40(%rsi), %rdi movq (%rdi), %rax callq *0xa0(%rax) leaq 0x58(%rsp), %r14 movq %r12, (%r14) movq $0x19, 0x8(%r14) movl $0x1, (%rsp) leaq 0x50763(%rip), %rsi # 0x63020 leaq 0x507fb(%rip), %r8 # 0x630bf leaq 0x10(%rsp), %r15 movl $0x7, %edx movl $0x27, %r9d movq %r15, %rdi movq %r14, %rcx callq 0x1de4c movq 0x8(%rsp), %rax movl 0x5c(%rax), %eax movl 0x5c(%rbx), %ecx cmpl %ecx, %eax movb $0x1, 0x8(%r14) sete 0x9(%r14) leaq 0x7a8d3(%rip), %rdx # 0x8d1d0 movq %rdx, (%r14) movl %eax, 0xc(%r14) leaq 0x50b11(%rip), %rax # 0x6341c movq %rax, 0x10(%r14) movq $0x2, 0x18(%r14) movl %ecx, 0x20(%r14) leaq 0x58(%rsp), %rsi movq %r15, %rdi callq 0x1de8e leaq 0x58(%rsp), %rdi callq 0x2a990 leaq 0x10(%rsp), %rdi callq 0x1dee8 cmpb $0x0, 0x4b(%rsp) jne 0x12955 leaq 0x10(%rsp), %rsi movq 0x40(%rsi), %rdi movq (%rdi), %rax callq *0xa0(%rax) addq $0x80, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq jmp 0x1296a jmp 0x1296a movq %rax, %rdi callq 0x152ed movq %rax, %rbx leaq 0x58(%rsp), %rdi callq 0x2a990 movq %rbx, %rdi callq 0x11190 leaq 0x10(%rsp), %rdi callq 0x1df18 callq 0x11830 jmp 0x12932 movq %rax, %rbx callq 0x11830 jmp 0x129fa jmp 0x129f7 movq %rax, %rdi callq 0x11190 leaq 0x10(%rsp), %rdi callq 0x1df18 callq 0x11830 jmp 0x1287c movq %rax, %rbx callq 0x11830 jmp 0x129fa jmp 0x129f7 movq %rax, %rdi callq 0x11190 leaq 0x10(%rsp), %rdi callq 0x1df18 callq 0x11830 jmp 0x127fc movq %rax, %rbx callq 0x11830 jmp 0x129fa jmp 0x1296a movq %rax, %rbx leaq 0x10(%rsp), %rdi callq 0x152f8 movq %rbx, %rdi callq 0x11900
_Z11checkCircleP5ShapeR6Circle: push r15 push r14 push r13 push r12 push rbx sub rsp, 80h mov rbx, rsi test rdi, rdi jz short loc_1279A mov rsi, cs:lpstype; lpstype mov rdx, cs:lpdtype; lpdtype xor ecx, ecx; s2d call ___dynamic_cast jmp short loc_1279C loc_1279A: xor eax, eax loc_1279C: lea r13, [rsp+0A8h+var_A0] mov [r13+0], rax lea r12, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea r14, [rsp+0A8h+var_50] mov [r14], r12 mov qword ptr [r14+8], 17h mov [rsp+0A8h+var_A8], 1 lea rsi, aRequire; "REQUIRE" lea r8, aCirclefromjson; "circleFromJson" lea r15, [rsp+0A8h+var_98] mov edx, 7 mov r9d, 0Eh mov rdi, r15 mov rcx, r14 call _ZN5Catch16AssertionHandlerC2ENS_9StringRefERKNS_14SourceLineInfoES1_NS_17ResultDisposition5FlagsE; Catch::AssertionHandler::AssertionHandler(Catch::StringRef,Catch::SourceLineInfo const&,Catch::StringRef,Catch::ResultDisposition::Flags) mov [r14], r13 lea rsi, [rsp+0A8h+var_50] mov rdi, r15 call _ZN5Catch16AssertionHandler10handleExprIRP6CircleEEvRKNS_7ExprLhsIT_EE; Catch::AssertionHandler::handleExpr<Circle *&>(Catch::ExprLhs<Circle *&> const&) loc_127FC: lea rdi, [rsp+0A8h+var_98]; this call _ZN5Catch16AssertionHandler8completeEv; Catch::AssertionHandler::complete(void) cmp [rsp+0A8h+var_5D], 0 jnz short loc_1281F lea rsi, [rsp+0A8h+var_98] mov rdi, [rsi+40h] mov rax, [rdi] call qword ptr [rax+0A0h] loc_1281F: lea r14, [rsp+0A8h+var_50] mov [r14], r12 mov qword ptr [r14+8], 18h mov [rsp+0A8h+var_A8], 1 lea rsi, aRequire; "REQUIRE" lea r8, aCompareshapeCi; "compareShape(*circleFromJson, circle)" lea r15, [rsp+0A8h+var_98] mov edx, 7 mov r9d, 25h ; '%' mov rdi, r15 mov rcx, r14 call _ZN5Catch16AssertionHandlerC2ENS_9StringRefERKNS_14SourceLineInfoES1_NS_17ResultDisposition5FlagsE; Catch::AssertionHandler::AssertionHandler(Catch::StringRef,Catch::SourceLineInfo const&,Catch::StringRef,Catch::ResultDisposition::Flags) mov rdi, [rsp+0A8h+var_A0] mov rsi, rbx call _Z12compareShapeRK5ShapeS1_; compareShape(Shape const&,Shape const&) mov [r14], al lea rsi, [rsp+0A8h+var_50] mov rdi, r15 call _ZN5Catch16AssertionHandler10handleExprIbEEvRKNS_7ExprLhsIT_EE; Catch::AssertionHandler::handleExpr<bool>(Catch::ExprLhs<bool> const&) loc_1287C: lea rdi, [rsp+0A8h+var_98]; this call _ZN5Catch16AssertionHandler8completeEv; Catch::AssertionHandler::complete(void) cmp [rsp+0A8h+var_5D], 0 jnz short loc_1289F lea rsi, [rsp+0A8h+var_98] mov rdi, [rsi+40h] mov rax, [rdi] call qword ptr [rax+0A0h] loc_1289F: lea r14, [rsp+0A8h+var_50] mov [r14], r12 mov qword ptr [r14+8], 19h mov [rsp+0A8h+var_A8], 1 lea rsi, aRequire; "REQUIRE" lea r8, aCirclefromjson_0; "circleFromJson->radius == circle.radius" lea r15, [rsp+0A8h+var_98] mov edx, 7 mov r9d, 27h ; ''' mov rdi, r15 mov rcx, r14 call _ZN5Catch16AssertionHandlerC2ENS_9StringRefERKNS_14SourceLineInfoES1_NS_17ResultDisposition5FlagsE; Catch::AssertionHandler::AssertionHandler(Catch::StringRef,Catch::SourceLineInfo const&,Catch::StringRef,Catch::ResultDisposition::Flags) mov rax, [rsp+0A8h+var_A0] mov eax, [rax+5Ch] mov ecx, [rbx+5Ch] cmp eax, ecx mov byte ptr [r14+8], 1 setz byte ptr [r14+9] lea rdx, off_8D1D0 mov [r14], rdx mov [r14+0Ch], eax lea rax, asc_6341C; "==" mov [r14+10h], rax mov qword ptr [r14+18h], 2 mov [r14+20h], ecx lea rsi, [rsp+0A8h+var_50] mov rdi, r15 call _ZN5Catch16AssertionHandler10handleExprERKNS_20ITransientExpressionE; Catch::AssertionHandler::handleExpr(Catch::ITransientExpression const&) lea rdi, [rsp+0A8h+var_50]; this call _ZN5Catch20ITransientExpressionD2Ev; Catch::ITransientExpression::~ITransientExpression() loc_12932: lea rdi, [rsp+0A8h+var_98]; this call _ZN5Catch16AssertionHandler8completeEv; Catch::AssertionHandler::complete(void) cmp [rsp+0A8h+var_5D], 0 jnz short loc_12955 lea rsi, [rsp+0A8h+var_98] mov rdi, [rsi+40h] mov rax, [rdi] call qword ptr [rax+0A0h] loc_12955: add rsp, 80h pop rbx pop r12 pop r13 pop r14 pop r15 retn jmp short loc_1296A jmp short $+2 loc_1296A: mov rdi, rax call __clang_call_terminate mov rbx, rax lea rdi, [rsp+0A8h+var_50]; this call _ZN5Catch20ITransientExpressionD2Ev; Catch::ITransientExpression::~ITransientExpression() mov rdi, rbx; void * call ___cxa_begin_catch lea rdi, [rsp+0A8h+var_98]; this call _ZN5Catch16AssertionHandler33handleUnexpectedInflightExceptionEv; Catch::AssertionHandler::handleUnexpectedInflightException(void) call ___cxa_end_catch jmp short loc_12932 mov rbx, rax call ___cxa_end_catch jmp short loc_129FA jmp short loc_129F7 mov rdi, rax; void * call ___cxa_begin_catch lea rdi, [rsp+0A8h+var_98]; this call _ZN5Catch16AssertionHandler33handleUnexpectedInflightExceptionEv; Catch::AssertionHandler::handleUnexpectedInflightException(void) call ___cxa_end_catch jmp loc_1287C mov rbx, rax call ___cxa_end_catch jmp short loc_129FA jmp short loc_129F7 mov rdi, rax; void * call ___cxa_begin_catch lea rdi, [rsp+0A8h+var_98]; this call _ZN5Catch16AssertionHandler33handleUnexpectedInflightExceptionEv; Catch::AssertionHandler::handleUnexpectedInflightException(void) call ___cxa_end_catch jmp loc_127FC mov rbx, rax call ___cxa_end_catch jmp short loc_129FA jmp loc_1296A loc_129F7: mov rbx, rax loc_129FA: lea rdi, [rsp+0A8h+var_98]; this call _ZN5Catch16AssertionHandlerD2Ev; Catch::AssertionHandler::~AssertionHandler() mov rdi, rbx call __Unwind_Resume
long long checkCircle(const void *a1, const Shape *a2) { const Shape *v2; // rax int v3; // edx int v4; // ecx int v5; // r8d int v6; // r9d int v7; // eax int v8; // ecx long long result; // rax char v10; // [rsp+0h] [rbp-A8h] const Shape *v11; // [rsp+8h] [rbp-A0h] BYREF _BYTE v12[59]; // [rsp+10h] [rbp-98h] BYREF char v13; // [rsp+4Bh] [rbp-5Dh] long long v14; // [rsp+50h] [rbp-58h] const char *v15; // [rsp+58h] [rbp-50h] BYREF long long v16; // [rsp+60h] [rbp-48h] const char *v17; // [rsp+68h] [rbp-40h] long long v18; // [rsp+70h] [rbp-38h] int v19; // [rsp+78h] [rbp-30h] if ( a1 ) v2 = (const Shape *)__dynamic_cast( a1, (const struct __class_type_info *)&`typeinfo for'Shape, (const struct __class_type_info *)&`typeinfo for'Circle, 0LL); else v2 = 0LL; v11 = v2; v15 = "/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/test/test.cpp"; v16 = 23LL; Catch::AssertionHandler::AssertionHandler( (unsigned int)v12, (unsigned int)"REQUIRE", 7, (unsigned int)&v15, (unsigned int)"circleFromJson", 14, 1); v15 = (const char *)&v11; Catch::AssertionHandler::handleExpr<Circle *&>((unsigned int)v12, (unsigned int)&v15, v3, v4, v5, v6, v10); Catch::AssertionHandler::complete((Catch::AssertionHandler *)v12); if ( !v13 ) (*(void ( **)(long long))(*(_QWORD *)v14 + 160LL))(v14); v15 = "/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/test/test.cpp"; v16 = 24LL; Catch::AssertionHandler::AssertionHandler( (unsigned int)v12, (unsigned int)"REQUIRE", 7, (unsigned int)&v15, (unsigned int)"compareShape(*circleFromJson, circle)", 37, 1); LOBYTE(v15) = compareShape(v11, a2); Catch::AssertionHandler::handleExpr<bool>(v12, &v15); Catch::AssertionHandler::complete((Catch::AssertionHandler *)v12); if ( !v13 ) (*(void ( **)(long long))(*(_QWORD *)v14 + 160LL))(v14); v15 = "/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/test/test.cpp"; v16 = 25LL; Catch::AssertionHandler::AssertionHandler( (unsigned int)v12, (unsigned int)"REQUIRE", 7, (unsigned int)&v15, (unsigned int)"circleFromJson->radius == circle.radius", 39, 1); v7 = *((_DWORD *)v11 + 23); v8 = *((_DWORD *)a2 + 23); LOBYTE(v16) = 1; BYTE1(v16) = v7 == v8; v15 = (const char *)&off_8D1D0; HIDWORD(v16) = v7; v17 = "=="; v18 = 2LL; v19 = v8; Catch::AssertionHandler::handleExpr((Catch::AssertionHandler *)v12, (const Catch::ITransientExpression *)&v15); Catch::ITransientExpression::~ITransientExpression((Catch::ITransientExpression *)&v15); result = Catch::AssertionHandler::complete((Catch::AssertionHandler *)v12); if ( !v13 ) return (*(long long ( **)(long long))(*(_QWORD *)v14 + 160LL))(v14); return result; }
checkCircle: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x80 MOV RBX,RSI TEST RDI,RDI JZ 0x0011279a MOV RSI,qword ptr [0x00190ec0] MOV RDX,qword ptr [0x00190ea0] XOR ECX,ECX CALL 0x001115a0 JMP 0x0011279c LAB_0011279a: XOR EAX,EAX LAB_0011279c: LEA R13,[RSP + 0x8] MOV qword ptr [R13],RAX LEA R12,[0x163028] LEA R14,[RSP + 0x58] MOV qword ptr [R14],R12 MOV qword ptr [R14 + 0x8],0x17 MOV dword ptr [RSP],0x1 LEA RSI,[0x163020] LEA R8,[0x16308a] LEA R15,[RSP + 0x10] MOV EDX,0x7 MOV R9D,0xe MOV RDI,R15 MOV RCX,R14 CALL 0x0011de4c MOV qword ptr [R14],R13 LAB_001127ef: LEA RSI,[RSP + 0x58] MOV RDI,R15 CALL 0x0011529c LAB_001127fc: LEA RDI,[RSP + 0x10] CALL 0x0011dee8 CMP byte ptr [RSP + 0x4b],0x0 JNZ 0x0011281f LEA RSI,[RSP + 0x10] MOV RDI,qword ptr [RSI + 0x40] MOV RAX,qword ptr [RDI] LAB_00112819: CALL qword ptr [RAX + 0xa0] LAB_0011281f: LEA R14,[RSP + 0x58] MOV qword ptr [R14],R12 MOV qword ptr [R14 + 0x8],0x18 MOV dword ptr [RSP],0x1 LEA RSI,[0x163020] LEA R8,[0x163099] LEA R15,[RSP + 0x10] MOV EDX,0x7 MOV R9D,0x25 MOV RDI,R15 MOV RCX,R14 CALL 0x0011de4c MOV RDI,qword ptr [RSP + 0x8] MOV RSI,RBX CALL 0x00112725 MOV byte ptr [R14],AL LAB_0011286f: LEA RSI,[RSP + 0x58] MOV RDI,R15 CALL 0x0011531a LAB_0011287c: LEA RDI,[RSP + 0x10] CALL 0x0011dee8 CMP byte ptr [RSP + 0x4b],0x0 JNZ 0x0011289f LEA RSI,[RSP + 0x10] MOV RDI,qword ptr [RSI + 0x40] MOV RAX,qword ptr [RDI] LAB_00112899: CALL qword ptr [RAX + 0xa0] LAB_0011289f: LEA R14,[RSP + 0x58] MOV qword ptr [R14],R12 MOV qword ptr [R14 + 0x8],0x19 MOV dword ptr [RSP],0x1 LEA RSI,[0x163020] LEA R8,[0x1630bf] LEA R15,[RSP + 0x10] MOV EDX,0x7 MOV R9D,0x27 MOV RDI,R15 MOV RCX,R14 CALL 0x0011de4c MOV RAX,qword ptr [RSP + 0x8] MOV EAX,dword ptr [RAX + 0x5c] MOV ECX,dword ptr [RBX + 0x5c] CMP EAX,ECX MOV byte ptr [R14 + 0x8],0x1 SETZ byte ptr [R14 + 0x9] LEA RDX,[0x18d1d0] MOV qword ptr [R14],RDX MOV dword ptr [R14 + 0xc],EAX LEA RAX,[0x16341c] MOV qword ptr [R14 + 0x10],RAX MOV qword ptr [R14 + 0x18],0x2 MOV dword ptr [R14 + 0x20],ECX LAB_0011291b: LEA RSI,[RSP + 0x58] MOV RDI,R15 CALL 0x0011de8e LEA RDI,[RSP + 0x58] CALL 0x0012a990 LAB_00112932: LEA RDI,[RSP + 0x10] CALL 0x0011dee8 CMP byte ptr [RSP + 0x4b],0x0 JNZ 0x00112955 LEA RSI,[RSP + 0x10] MOV RDI,qword ptr [RSI + 0x40] MOV RAX,qword ptr [RDI] LAB_0011294f: CALL qword ptr [RAX + 0xa0] LAB_00112955: ADD RSP,0x80 POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* checkCircle(Shape*, Circle&) */ void checkCircle(Shape *param_1,Circle *param_2) { int1 uVar1; Shape *local_a0; AssertionHandler local_98 [59]; char local_5d; long *local_58; Shape **local_50; int8 local_48; int *local_40; int8 local_38; int local_30; if (param_1 == (Shape *)0x0) { local_a0 = (Shape *)0x0; } else { local_a0 = (Shape *)__dynamic_cast(param_1,PTR_typeinfo_00190ec0,PTR_typeinfo_00190ea0,0); } local_50 = (Shape **)0x163028; local_48 = 0x17; Catch::AssertionHandler::AssertionHandler(local_98,"REQUIRE",7,&local_50,"circleFromJson",0xe,1); /* try { // try from 001127ef to 001127fb has its CatchHandler @ 001129cc */ local_50 = &local_a0; Catch::AssertionHandler::handleExpr<Circle*&>(local_98,(ExprLhs *)&local_50); /* try { // try from 001127fc to 00112805 has its CatchHandler @ 001129f7 */ Catch::AssertionHandler::complete(local_98); if (local_5d == '\0') { /* try { // try from 00112819 to 0011281e has its CatchHandler @ 0011296a */ (**(code **)(*local_58 + 0xa0))(); } local_50 = (Shape **)0x163028; local_48 = 0x18; Catch::AssertionHandler::AssertionHandler (local_98,"REQUIRE",7,&local_50,"compareShape(*circleFromJson, circle)",0x25,1); uVar1 = compareShape(local_a0,(Shape *)param_2); local_50 = (Shape **)CONCAT71(local_50._1_7_,uVar1); /* try { // try from 0011286f to 0011287b has its CatchHandler @ 001129a4 */ Catch::AssertionHandler::handleExpr<bool>(local_98,(ExprLhs *)&local_50); /* try { // try from 0011287c to 00112885 has its CatchHandler @ 001129ca */ Catch::AssertionHandler::complete(local_98); if (local_5d == '\0') { /* try { // try from 00112899 to 0011289e has its CatchHandler @ 00112968 */ (**(code **)(*local_58 + 0xa0))(); } local_50 = (Shape **)0x163028; local_48 = 0x19; Catch::AssertionHandler::AssertionHandler (local_98,"REQUIRE",7,&local_50,"circleFromJson->radius == circle.radius",0x27,1); local_30 = *(int *)(param_2 + 0x5c); local_48._0_2_ = CONCAT11(*(int *)(local_a0 + 0x5c) == local_30,1); local_50 = (Shape **)&PTR_streamReconstructedExpression_0018d1d0; local_48 = CONCAT44(*(int *)(local_a0 + 0x5c),(int4)local_48); local_40 = &DAT_0016341c; local_38 = 2; /* try { // try from 0011291b to 00112927 has its CatchHandler @ 00112972 */ Catch::AssertionHandler::handleExpr(local_98,(ITransientExpression *)&local_50); Catch::ITransientExpression::~ITransientExpression((ITransientExpression *)&local_50); /* try { // try from 00112932 to 0011293b has its CatchHandler @ 001129a2 */ Catch::AssertionHandler::complete(local_98); if (local_5d == '\0') { /* try { // try from 0011294f to 00112954 has its CatchHandler @ 00112966 */ (**(code **)(*local_58 + 0xa0))(); } return; }
60,318
checkCircle(Shape*, Circle&)
11AgReS1SoR11[P]Graph/Common/FiguresStorage/test/test.cpp
void checkCircle(Shape* shape, Circle& circle) { Circle* circleFromJson = dynamic_cast<Circle*>(shape); REQUIRE(circleFromJson); REQUIRE(compareShape(*circleFromJson, circle)); REQUIRE(circleFromJson->radius == circle.radius); }
O2
cpp
checkCircle(Shape*, Circle&): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x80, %rsp movq %rsi, %rbx testq %rdi, %rdi je 0x12fa9 movq 0x7af3f(%rip), %rsi # 0x8ded8 movq 0x7af20(%rip), %rdx # 0x8dec0 xorl %ecx, %ecx callq 0x12670 jmp 0x12fab xorl %eax, %eax leaq 0x8(%rsp), %r13 movq %rax, (%r13) leaq 0x4306d(%rip), %r12 # 0x56028 leaq 0x58(%rsp), %r14 movq %r12, (%r14) movq $0x17, 0x8(%r14) movl $0x1, (%rsp) leaq 0x43047(%rip), %rsi # 0x56020 leaq 0x430aa(%rip), %r8 # 0x5608a leaq 0x10(%rsp), %r15 pushq $0x7 popq %rdx pushq $0xe popq %r9 movq %r15, %rdi movq %r14, %rcx callq 0x1cf74 movq %r13, (%r14) leaq 0x58(%rsp), %rsi movq %r15, %rdi callq 0x14fa4 leaq 0x10(%rsp), %rdi callq 0x1cffc leaq 0x10(%rsp), %rdi callq 0x15000 leaq 0x58(%rsp), %r14 movq %r12, (%r14) movq $0x18, 0x8(%r14) movl $0x1, (%rsp) leaq 0x42fe7(%rip), %rsi # 0x56020 leaq 0x43059(%rip), %r8 # 0x56099 leaq 0x10(%rsp), %r15 pushq $0x7 popq %rdx pushq $0x25 popq %r9 movq %r15, %rdi movq %r14, %rcx callq 0x1cf74 movq 0x8(%rsp), %rdi movq %rbx, %rsi callq 0x12f43 movb %al, (%r14) leaq 0x58(%rsp), %rsi movq %r15, %rdi callq 0x15022 leaq 0x10(%rsp), %rdi callq 0x1cffc leaq 0x10(%rsp), %rdi callq 0x15000 leaq 0x58(%rsp), %r14 movq %r12, (%r14) movq $0x19, 0x8(%r14) movl $0x1, (%rsp) leaq 0x42f7a(%rip), %rsi # 0x56020 leaq 0x43012(%rip), %r8 # 0x560bf leaq 0x10(%rsp), %r15 pushq $0x7 popq %rdx pushq $0x27 popq %r9 movq %r15, %rdi movq %r14, %rcx callq 0x1cf74 movq 0x8(%rsp), %rax movl 0x5c(%rax), %eax movl 0x5c(%rbx), %ecx cmpl %ecx, %eax movb $0x1, 0x8(%r14) sete 0x9(%r14) leaq 0x771ae(%rip), %rdx # 0x8a290 movq %rdx, (%r14) movl %eax, 0xc(%r14) leaq 0x4332c(%rip), %rax # 0x5641c movq %rax, 0x10(%r14) movq $0x2, 0x18(%r14) movl %ecx, 0x20(%r14) leaq 0x58(%rsp), %rsi movq %r15, %rdi callq 0x1cfb2 leaq 0x58(%rsp), %rdi callq 0x26f44 leaq 0x10(%rsp), %rdi callq 0x1cffc leaq 0x10(%rsp), %rdi callq 0x15000 addq $0x80, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq movq %rax, %rbx leaq 0x58(%rsp), %rdi callq 0x26f44 movq %rbx, %rdi callq 0x121e0 leaq 0x10(%rsp), %rdi callq 0x1d02c callq 0x12900 jmp 0x13117 movq %rax, %rbx callq 0x12900 jmp 0x131c7 jmp 0x131c4 movq %rax, %rdi callq 0x121e0 leaq 0x10(%rsp), %rdi callq 0x1d02c callq 0x12900 jmp 0x13074 movq %rax, %rbx callq 0x12900 jmp 0x131c7 jmp 0x131c4 movq %rax, %rdi callq 0x121e0 leaq 0x10(%rsp), %rdi callq 0x1d02c callq 0x12900 jmp 0x13007 movq %rax, %rbx callq 0x12900 jmp 0x131c7 movq %rax, %rdi callq 0x14ff5 movq %rax, %rbx leaq 0x10(%rsp), %rdi callq 0x15000 movq %rbx, %rdi callq 0x129c0
_Z11checkCircleP5ShapeR6Circle: push r15 push r14 push r13 push r12 push rbx sub rsp, 80h mov rbx, rsi test rdi, rdi jz short loc_12FA9 mov rsi, cs:lpstype; lpstype mov rdx, cs:lpdtype; lpdtype xor ecx, ecx; s2d call ___dynamic_cast jmp short loc_12FAB loc_12FA9: xor eax, eax loc_12FAB: lea r13, [rsp+0A8h+var_A0] mov [r13+0], rax lea r12, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea r14, [rsp+0A8h+var_50] mov [r14], r12 mov qword ptr [r14+8], 17h mov [rsp+0A8h+var_A8], 1 lea rsi, aRequire; "REQUIRE" lea r8, aCirclefromjson; "circleFromJson" lea r15, [rsp+0A8h+var_98] push 7 pop rdx push 0Eh pop r9 mov rdi, r15 mov rcx, r14 call _ZN5Catch16AssertionHandlerC2ENS_9StringRefERKNS_14SourceLineInfoES1_NS_17ResultDisposition5FlagsE; Catch::AssertionHandler::AssertionHandler(Catch::StringRef,Catch::SourceLineInfo const&,Catch::StringRef,Catch::ResultDisposition::Flags) mov [r14], r13 lea rsi, [rsp+0A8h+var_50] mov rdi, r15
long long checkCircle(Shape *a1, Circle *a2) { void *v2; // rax void *v4; // [rsp+8h] [rbp-A0h] BYREF _BYTE v5[72]; // [rsp+10h] [rbp-98h] BYREF _QWORD v6[10]; // [rsp+58h] [rbp-50h] BYREF if ( a1 ) v2 = __dynamic_cast( a1, (const struct __class_type_info *)&`typeinfo for'Shape, (const struct __class_type_info *)&`typeinfo for'Circle, 0LL); else v2 = 0LL; v4 = v2; v6[0] = "/workspace/llm4binary/github/2025_star3/11AgReS1SoR11[P]Graph/Common/FiguresStorage/test/test.cpp"; v6[1] = 23LL; Catch::AssertionHandler::AssertionHandler( (unsigned int)v5, (unsigned int)"REQUIRE", 7, (unsigned int)v6, (unsigned int)"circleFromJson", 14, 1); v6[0] = &v4; return sub_13002(v5, v6); }
checkCircle: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x80 MOV RBX,RSI TEST RDI,RDI JZ 0x00112fa9 MOV RSI,qword ptr [0x0018ded8] MOV RDX,qword ptr [0x0018dec0] XOR ECX,ECX CALL 0x00112670 JMP 0x00112fab LAB_00112fa9: XOR EAX,EAX LAB_00112fab: LEA R13,[RSP + 0x8] MOV qword ptr [R13],RAX LEA R12,[0x156028] LEA R14,[RSP + 0x58] MOV qword ptr [R14],R12 MOV qword ptr [R14 + 0x8],0x17 MOV dword ptr [RSP],0x1 LEA RSI,[0x156020] LEA R8,[0x15608a] LEA R15,[RSP + 0x10] PUSH 0x7 POP RDX PUSH 0xe POP R9 MOV RDI,R15 MOV RCX,R14 CALL 0x0011cf74 MOV qword ptr [R14],R13 LAB_00112ffa: LEA RSI,[RSP + 0x58] MOV RDI,R15 CALL 0x00114fa4 LAB_00113007: LEA RDI,[RSP + 0x10] CALL 0x0011cffc LAB_00113011: LEA RDI,[RSP + 0x10] CALL 0x00115000 LEA R14,[RSP + 0x58] MOV qword ptr [R14],R12 MOV qword ptr [R14 + 0x8],0x18 MOV dword ptr [RSP],0x1 LEA RSI,[0x156020] LEA R8,[0x156099] LEA R15,[RSP + 0x10] PUSH 0x7 POP RDX PUSH 0x25 POP R9 MOV RDI,R15 MOV RCX,R14 CALL 0x0011cf74 MOV RDI,qword ptr [RSP + 0x8] MOV RSI,RBX CALL 0x00112f43 MOV byte ptr [R14],AL LAB_00113067: LEA RSI,[RSP + 0x58] MOV RDI,R15 CALL 0x00115022 LAB_00113074: LEA RDI,[RSP + 0x10] CALL 0x0011cffc LAB_0011307e: LEA RDI,[RSP + 0x10] CALL 0x00115000 LEA R14,[RSP + 0x58] MOV qword ptr [R14],R12 MOV qword ptr [R14 + 0x8],0x19 MOV dword ptr [RSP],0x1 LEA RSI,[0x156020] LEA R8,[0x1560bf] LEA R15,[RSP + 0x10] PUSH 0x7 POP RDX PUSH 0x27 POP R9 MOV RDI,R15 MOV RCX,R14 CALL 0x0011cf74 MOV RAX,qword ptr [RSP + 0x8] MOV EAX,dword ptr [RAX + 0x5c] MOV ECX,dword ptr [RBX + 0x5c] CMP EAX,ECX MOV byte ptr [R14 + 0x8],0x1 SETZ byte ptr [R14 + 0x9] LEA RDX,[0x18a290] MOV qword ptr [R14],RDX MOV dword ptr [R14 + 0xc],EAX LEA RAX,[0x15641c] MOV qword ptr [R14 + 0x10],RAX MOV qword ptr [R14 + 0x18],0x2 MOV dword ptr [R14 + 0x20],ECX LAB_00113100: LEA RSI,[RSP + 0x58] MOV RDI,R15 CALL 0x0011cfb2 LEA RDI,[RSP + 0x58] CALL 0x00126f44 LAB_00113117: LEA RDI,[RSP + 0x10] CALL 0x0011cffc LAB_00113121: LEA RDI,[RSP + 0x10] CALL 0x00115000 ADD RSP,0x80 POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* checkCircle(Shape*, Circle&) */ void checkCircle(Shape *param_1,Circle *param_2) { int1 uVar1; Shape *local_a0; AssertionHandler local_98 [72]; Shape **local_50; int8 local_48; int *local_40; int8 local_38; int local_30; if (param_1 == (Shape *)0x0) { local_a0 = (Shape *)0x0; } else { local_a0 = (Shape *)__dynamic_cast(param_1,PTR_typeinfo_0018ded8,PTR_typeinfo_0018dec0,0); } local_50 = (Shape **)0x156028; local_48 = 0x17; Catch::AssertionHandler::AssertionHandler(local_98,"REQUIRE",7,&local_50,"circleFromJson",0xe,1); /* try { // try from 00112ffa to 00113006 has its CatchHandler @ 00113196 */ local_50 = &local_a0; Catch::AssertionHandler::handleExpr<Circle*&>(local_98,(ExprLhs *)&local_50); /* try { // try from 00113007 to 00113010 has its CatchHandler @ 001131c4 */ Catch::AssertionHandler::complete(local_98); Catch::AssertionHandler::~AssertionHandler(local_98); local_50 = (Shape **)0x156028; local_48 = 0x18; Catch::AssertionHandler::AssertionHandler (local_98,"REQUIRE",7,&local_50,"compareShape(*circleFromJson, circle)",0x25,1); uVar1 = compareShape(local_a0,(Shape *)param_2); local_50 = (Shape **)CONCAT71(local_50._1_7_,uVar1); /* try { // try from 00113067 to 00113073 has its CatchHandler @ 0011316e */ Catch::AssertionHandler::handleExpr<bool>(local_98,(ExprLhs *)&local_50); /* try { // try from 00113074 to 0011307d has its CatchHandler @ 00113194 */ Catch::AssertionHandler::complete(local_98); Catch::AssertionHandler::~AssertionHandler(local_98); local_50 = (Shape **)0x156028; local_48 = 0x19; Catch::AssertionHandler::AssertionHandler (local_98,"REQUIRE",7,&local_50,"circleFromJson->radius == circle.radius",0x27,1); local_30 = *(int *)(param_2 + 0x5c); local_48._0_2_ = CONCAT11(*(int *)(local_a0 + 0x5c) == local_30,1); local_50 = (Shape **)&PTR_streamReconstructedExpression_0018a290; local_48 = CONCAT44(*(int *)(local_a0 + 0x5c),(int4)local_48); local_40 = &DAT_0015641c; local_38 = 2; /* try { // try from 00113100 to 0011310c has its CatchHandler @ 0011313c */ Catch::AssertionHandler::handleExpr(local_98,(ITransientExpression *)&local_50); Catch::ITransientExpression::~ITransientExpression((ITransientExpression *)&local_50); /* try { // try from 00113117 to 00113120 has its CatchHandler @ 0011316c */ Catch::AssertionHandler::complete(local_98); Catch::AssertionHandler::~AssertionHandler(local_98); return; }
60,319
my_strntol_mb2_or_mb4
eloqsql/strings/ctype-ucs2.c
static long my_strntol_mb2_or_mb4(CHARSET_INFO *cs, const char *nptr, size_t l, int base, char **endptr, int *err) { int negative= 0; int overflow; int cnv; my_wc_t wc; my_charset_conv_mb_wc mb_wc= cs->cset->mb_wc; register unsigned int cutlim; register uint32 cutoff; register uint32 res; register const uchar *s= (const uchar*) nptr; register const uchar *e= (const uchar*) nptr+l; const uchar *save; *err= 0; do { if ((cnv= mb_wc(cs, &wc, s, e)) > 0) { switch (wc) { case ' ' : break; case '\t': break; case '-' : negative= !negative; break; case '+' : break; default : goto bs; } } else /* No more characters or bad multibyte sequence */ { if (endptr != NULL ) *endptr= (char*) s; err[0]= (cnv==MY_CS_ILSEQ) ? EILSEQ : EDOM; return 0; } s+= cnv; } while (1); bs: overflow= 0; res= 0; save= s; cutoff= ((uint32)~0L) / (uint32) base; cutlim= (uint) (((uint32)~0L) % (uint32) base); do { if ((cnv= mb_wc(cs, &wc, s, e)) > 0) { s+= cnv; if (wc >= '0' && wc <= '9') wc-= '0'; else if (wc >= 'A' && wc <= 'Z') wc= wc - 'A' + 10; else if (wc >= 'a' && wc <= 'z') wc= wc - 'a' + 10; else break; if ((int)wc >= base) break; if (res > cutoff || (res == cutoff && wc > cutlim)) overflow= 1; else { res*= (uint32) base; res+= wc; } } else if (cnv == MY_CS_ILSEQ) { if (endptr !=NULL ) *endptr = (char*) s; err[0]= EILSEQ; return 0; } else { /* No more characters */ break; } } while(1); if (endptr != NULL) *endptr = (char *) s; if (s == save) { err[0]= EDOM; return 0L; } if (negative) { if (res > (uint32) INT_MIN32) overflow= 1; } else if (res > INT_MAX32) overflow= 1; if (overflow) { err[0]= ERANGE; return negative ? INT_MIN32 : INT_MAX32; } return (negative ? -((long) res) : (long) res); }
O3
c
my_strntol_mb2_or_mb4: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %r8, -0x40(%rbp) movl %ecx, -0x34(%rbp) movq %rdx, %r13 movq %rsi, %r15 movq %rdi, %r14 movq 0xb8(%rdi), %rax movq 0x28(%rax), %r12 addq %rsi, %r13 movq %r9, -0x50(%rbp) movl $0x0, (%r9) leaq -0x30(%rbp), %rsi movq %r15, %rdx movq %r13, %rcx callq *%r12 testl %eax, %eax jle 0x7e8ee movl $0x0, -0x38(%rbp) leaq -0x30(%rbp), %rbx movq -0x30(%rbp), %rcx cmpq $0x2a, %rcx jg 0x7e8be cmpq $0x9, %rcx je 0x7e8d6 cmpq $0x20, %rcx je 0x7e8d6 jmp 0x7e920 cmpq $0x2b, %rcx je 0x7e8d6 cmpq $0x2d, %rcx jne 0x7e920 xorl %ecx, %ecx cmpl $0x0, -0x38(%rbp) sete %cl movl %ecx, -0x38(%rbp) movl %eax, %eax addq %rax, %r15 movq %r14, %rdi movq %rbx, %rsi movq %r15, %rdx movq %r13, %rcx callq *%r12 testl %eax, %eax jg 0x7e8a6 movq -0x40(%rbp), %rcx testq %rcx, %rcx je 0x7e8fa movq %r15, (%rcx) testl %eax, %eax movl $0x54, %eax movl $0x21, %ecx cmovel %eax, %ecx movq -0x50(%rbp), %rax movl %ecx, (%rax) xorl %eax, %eax addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0xffffffff, %eax # imm = 0xFFFFFFFF xorl %edx, %edx divl -0x34(%rbp) movl %edx, %ebx movl %eax, -0x44(%rbp) leaq -0x30(%rbp), %rsi movq %r14, %rdi movq %r15, %rdx movq %r13, %rcx callq *%r12 testl %eax, %eax jle 0x7e9e6 movl %ebx, %ecx movq %rcx, -0x60(%rbp) xorl %ecx, %ecx movq %r15, %rbx xorl %r8d, %r8d movq %rbx, %rsi movl %eax, %ebx addq %rsi, %rbx movq -0x30(%rbp), %rsi leaq -0x30(%rsi), %rax cmpq $0x9, %rax ja 0x7e971 movq %rax, -0x30(%rbp) jmp 0x7e996 leaq -0x41(%rsi), %rax cmpq $0x19, %rax ja 0x7e981 addq $-0x37, %rsi jmp 0x7e98f leaq -0x61(%rsi), %rax cmpq $0x19, %rax ja 0x7e9f6 addq $-0x57, %rsi movq %rsi, -0x30(%rbp) movq %rsi, %rax cmpl -0x34(%rbp), %eax jge 0x7e9f6 movl $0x1, %esi cmpl -0x44(%rbp), %ecx ja 0x7e9b9 jne 0x7e9b0 movl -0x44(%rbp), %edi cmpq -0x60(%rbp), %rax ja 0x7e9bb imull -0x34(%rbp), %ecx addl %eax, %ecx movl %r8d, %esi movl %ecx, %edi movl %edi, -0x54(%rbp) movl %esi, -0x58(%rbp) movq %r14, %rdi leaq -0x30(%rbp), %rsi movq %rbx, %rdx movq %r13, %rcx callq *%r12 movl -0x54(%rbp), %edi movl -0x58(%rbp), %esi movl %edi, %ecx movl %esi, %r8d testl %eax, %eax jg 0x7e955 jmp 0x7e9ed xorl %edi, %edi movq %r15, %rbx xorl %esi, %esi testl %eax, %eax je 0x7ea55 movl %esi, %r8d movl %edi, %ecx movq -0x40(%rbp), %rax testq %rax, %rax je 0x7ea02 movq %rbx, (%rax) cmpq %r15, %rbx je 0x7ea46 cmpl $0x80000001, %ecx # imm = 0x80000001 movl $0x1, %eax movl %r8d, %esi cmovael %eax, %esi testl %ecx, %ecx cmovsl %eax, %r8d movl -0x38(%rbp), %edi testl %edi, %edi cmovnel %esi, %r8d testl %r8d, %r8d je 0x7ea70 testl %edi, %edi movq -0x50(%rbp), %rax movl $0x22, (%rax) movl $0x7fffffff, %ecx # imm = 0x7FFFFFFF movq $-0x80000000, %rax # imm = 0x80000000 jmp 0x7ea7a movq -0x50(%rbp), %rax movl $0x21, (%rax) jmp 0x7e90f movq -0x40(%rbp), %rax testq %rax, %rax je 0x7ea61 movq %rbx, (%rax) movq -0x50(%rbp), %rax movl $0x54, (%rax) jmp 0x7e90f movl %ecx, %ecx movq %rcx, %rax negq %rax testl %edi, %edi cmoveq %rcx, %rax jmp 0x7e911
my_strntol_mb2_or_mb4: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov [rbp+var_40], r8 mov [rbp+var_34], ecx mov r13, rdx mov r15, rsi mov r14, rdi mov rax, [rdi+0B8h] mov r12, [rax+28h] add r13, rsi mov [rbp+var_50], r9 mov dword ptr [r9], 0 lea rsi, [rbp+var_30] mov rdx, r15 mov rcx, r13 call r12 test eax, eax jle short loc_7E8EE mov [rbp+var_38], 0 lea rbx, [rbp+var_30] loc_7E8A6: mov rcx, [rbp+var_30] cmp rcx, 2Ah ; '*' jg short loc_7E8BE cmp rcx, 9 jz short loc_7E8D6 cmp rcx, 20h ; ' ' jz short loc_7E8D6 jmp short loc_7E920 loc_7E8BE: cmp rcx, 2Bh ; '+' jz short loc_7E8D6 cmp rcx, 2Dh ; '-' jnz short loc_7E920 xor ecx, ecx cmp [rbp+var_38], 0 setz cl mov [rbp+var_38], ecx loc_7E8D6: mov eax, eax add r15, rax mov rdi, r14 mov rsi, rbx mov rdx, r15 mov rcx, r13 call r12 test eax, eax jg short loc_7E8A6 loc_7E8EE: mov rcx, [rbp+var_40] test rcx, rcx jz short loc_7E8FA mov [rcx], r15 loc_7E8FA: test eax, eax mov eax, 54h ; 'T' mov ecx, 21h ; '!' cmovz ecx, eax mov rax, [rbp+var_50] mov [rax], ecx loc_7E90F: xor eax, eax loc_7E911: add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_7E920: mov eax, 0FFFFFFFFh xor edx, edx div [rbp+var_34] mov ebx, edx mov [rbp+var_44], eax lea rsi, [rbp+var_30] mov rdi, r14 mov rdx, r15 mov rcx, r13 call r12 test eax, eax jle loc_7E9E6 mov ecx, ebx mov [rbp+var_60], rcx xor ecx, ecx mov rbx, r15 xor r8d, r8d loc_7E955: mov rsi, rbx mov ebx, eax add rbx, rsi mov rsi, [rbp+var_30] lea rax, [rsi-30h] cmp rax, 9 ja short loc_7E971 mov [rbp+var_30], rax jmp short loc_7E996 loc_7E971: lea rax, [rsi-41h] cmp rax, 19h ja short loc_7E981 add rsi, 0FFFFFFFFFFFFFFC9h jmp short loc_7E98F loc_7E981: lea rax, [rsi-61h] cmp rax, 19h ja short loc_7E9F6 add rsi, 0FFFFFFFFFFFFFFA9h loc_7E98F: mov [rbp+var_30], rsi mov rax, rsi loc_7E996: cmp eax, [rbp+var_34] jge short loc_7E9F6 mov esi, 1 cmp ecx, [rbp+var_44] ja short loc_7E9B9 jnz short loc_7E9B0 mov edi, [rbp+var_44] cmp rax, [rbp+var_60] ja short loc_7E9BB loc_7E9B0: imul ecx, [rbp+var_34] add ecx, eax mov esi, r8d loc_7E9B9: mov edi, ecx loc_7E9BB: mov [rbp+var_54], edi mov [rbp+var_58], esi mov rdi, r14 lea rsi, [rbp+var_30] mov rdx, rbx mov rcx, r13 call r12 mov edi, [rbp+var_54] mov esi, [rbp+var_58] mov ecx, edi mov r8d, esi test eax, eax jg loc_7E955 jmp short loc_7E9ED loc_7E9E6: xor edi, edi mov rbx, r15 xor esi, esi loc_7E9ED: test eax, eax jz short loc_7EA55 mov r8d, esi mov ecx, edi loc_7E9F6: mov rax, [rbp+var_40] test rax, rax jz short loc_7EA02 mov [rax], rbx loc_7EA02: cmp rbx, r15 jz short loc_7EA46 cmp ecx, 80000001h mov eax, 1 mov esi, r8d cmovnb esi, eax test ecx, ecx cmovs r8d, eax mov edi, [rbp+var_38] test edi, edi cmovnz r8d, esi test r8d, r8d jz short loc_7EA70 test edi, edi mov rax, [rbp+var_50] mov dword ptr [rax], 22h ; '"' mov ecx, 7FFFFFFFh mov rax, 0FFFFFFFF80000000h jmp short loc_7EA7A loc_7EA46: mov rax, [rbp+var_50] mov dword ptr [rax], 21h ; '!' jmp loc_7E90F loc_7EA55: mov rax, [rbp+var_40] test rax, rax jz short loc_7EA61 mov [rax], rbx loc_7EA61: mov rax, [rbp+var_50] mov dword ptr [rax], 54h ; 'T' jmp loc_7E90F loc_7EA70: mov ecx, ecx mov rax, rcx neg rax test edi, edi loc_7EA7A: cmovz rax, rcx jmp loc_7E911
long long my_strntol_mb2_or_mb4(long long a1, long long a2, long long a3, unsigned int a4, _QWORD *a5, int *a6) { long long v6; // r15 long long ( *v8)(long long, _QWORD *, long long, long long); // r12 long long v9; // r13 int v10; // eax int v11; // ecx long long result; // rax int v13; // eax long long v14; // rcx long long v15; // rbx long long v16; // r8 unsigned long long v17; // rax long long v18; // rsi unsigned int v19; // esi unsigned int v20; // edi int v21; // esi bool v22; // zf unsigned int v24; // [rsp+1Ch] [rbp-44h] BOOL v26; // [rsp+28h] [rbp-38h] _QWORD v28[6]; // [rsp+30h] [rbp-30h] BYREF v6 = a2; v8 = *(long long ( **)(long long, _QWORD *, long long, long long))(*(_QWORD *)(a1 + 184) + 40LL); v9 = a2 + a3; *a6 = 0; v10 = v8(a1, v28, a2, a2 + a3); if ( v10 <= 0 ) { LABEL_11: if ( a5 ) *a5 = v6; v11 = 33; if ( !v10 ) v11 = 84; *a6 = v11; return 0LL; } v26 = 0; while ( 1 ) { if ( v28[0] > 42LL ) { if ( v28[0] != 43LL ) { if ( v28[0] != 45LL ) break; v26 = !v26; } goto LABEL_10; } if ( v28[0] != 9LL && v28[0] != 32LL ) break; LABEL_10: v6 += (unsigned int)v10; v10 = v8(a1, v28, v6, v9); if ( v10 <= 0 ) goto LABEL_11; } v24 = 0xFFFFFFFF / a4; v13 = v8(a1, v28, v6, v9); if ( v13 > 0 ) { LODWORD(v14) = 0; v15 = v6; v16 = 0LL; while ( 1 ) { v15 += (unsigned int)v13; v17 = v28[0] - 48LL; if ( (unsigned long long)(v28[0] - 48LL) > 9 ) { if ( (unsigned long long)(v28[0] - 65LL) > 0x19 ) { if ( (unsigned long long)(v28[0] - 97LL) > 0x19 ) goto LABEL_37; v18 = v28[0] - 87LL; } else { v18 = v28[0] - 55LL; } v28[0] = v18; v17 = v18; } else { v28[0] -= 48LL; } if ( (int)v17 >= (int)a4 ) goto LABEL_37; v19 = 1; if ( (unsigned int)v14 <= v24 ) { if ( (_DWORD)v14 == v24 ) { v20 = 0xFFFFFFFF / a4; if ( v17 > 0xFFFFFFFF % a4 ) goto LABEL_32; } LODWORD(v14) = v17 + a4 * v14; v19 = v16; } v20 = v14; LABEL_32: v13 = ((long long ( *)(long long, _QWORD *, long long, long long, long long))v8)(a1, v28, v15, v9, v16); LODWORD(v14) = v20; v16 = v19; if ( v13 <= 0 ) goto LABEL_35; } } v20 = 0; v15 = v6; v19 = 0; LABEL_35: if ( !v13 ) { if ( a5 ) *a5 = v15; *a6 = 84; return 0LL; } LODWORD(v16) = v19; LODWORD(v14) = v20; LABEL_37: if ( a5 ) *a5 = v15; if ( v15 == v6 ) { *a6 = 33; return 0LL; } v21 = v16; if ( (unsigned int)v14 >= 0x80000001 ) v21 = 1; if ( (int)v14 < 0 ) LODWORD(v16) = 1; if ( v26 ) LODWORD(v16) = v21; if ( (_DWORD)v16 ) { v22 = !v26; *a6 = 34; v14 = 0x7FFFFFFFLL; result = 0xFFFFFFFF80000000LL; } else { v14 = (unsigned int)v14; result = -(long long)(unsigned int)v14; v22 = !v26; } if ( v22 ) return v14; return result; }
my_strntol_mb2_or_mb4: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV qword ptr [RBP + -0x40],R8 MOV dword ptr [RBP + -0x34],ECX MOV R13,RDX MOV R15,RSI MOV R14,RDI MOV RAX,qword ptr [RDI + 0xb8] MOV R12,qword ptr [RAX + 0x28] ADD R13,RSI MOV qword ptr [RBP + -0x50],R9 MOV dword ptr [R9],0x0 LEA RSI,[RBP + -0x30] MOV RDX,R15 MOV RCX,R13 CALL R12 TEST EAX,EAX JLE 0x0017e8ee MOV dword ptr [RBP + -0x38],0x0 LEA RBX,[RBP + -0x30] LAB_0017e8a6: MOV RCX,qword ptr [RBP + -0x30] CMP RCX,0x2a JG 0x0017e8be CMP RCX,0x9 JZ 0x0017e8d6 CMP RCX,0x20 JZ 0x0017e8d6 JMP 0x0017e920 LAB_0017e8be: CMP RCX,0x2b JZ 0x0017e8d6 CMP RCX,0x2d JNZ 0x0017e920 XOR ECX,ECX CMP dword ptr [RBP + -0x38],0x0 SETZ CL MOV dword ptr [RBP + -0x38],ECX LAB_0017e8d6: MOV EAX,EAX ADD R15,RAX MOV RDI,R14 MOV RSI,RBX MOV RDX,R15 MOV RCX,R13 CALL R12 TEST EAX,EAX JG 0x0017e8a6 LAB_0017e8ee: MOV RCX,qword ptr [RBP + -0x40] TEST RCX,RCX JZ 0x0017e8fa MOV qword ptr [RCX],R15 LAB_0017e8fa: TEST EAX,EAX MOV EAX,0x54 MOV ECX,0x21 CMOVZ ECX,EAX MOV RAX,qword ptr [RBP + -0x50] MOV dword ptr [RAX],ECX LAB_0017e90f: XOR EAX,EAX LAB_0017e911: ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0017e920: MOV EAX,0xffffffff XOR EDX,EDX DIV dword ptr [RBP + -0x34] MOV EBX,EDX MOV dword ptr [RBP + -0x44],EAX LEA RSI,[RBP + -0x30] MOV RDI,R14 MOV RDX,R15 MOV RCX,R13 CALL R12 TEST EAX,EAX JLE 0x0017e9e6 MOV ECX,EBX MOV qword ptr [RBP + -0x60],RCX XOR ECX,ECX MOV RBX,R15 XOR R8D,R8D LAB_0017e955: MOV RSI,RBX MOV EBX,EAX ADD RBX,RSI MOV RSI,qword ptr [RBP + -0x30] LEA RAX,[RSI + -0x30] CMP RAX,0x9 JA 0x0017e971 MOV qword ptr [RBP + -0x30],RAX JMP 0x0017e996 LAB_0017e971: LEA RAX,[RSI + -0x41] CMP RAX,0x19 JA 0x0017e981 ADD RSI,-0x37 JMP 0x0017e98f LAB_0017e981: LEA RAX,[RSI + -0x61] CMP RAX,0x19 JA 0x0017e9f6 ADD RSI,-0x57 LAB_0017e98f: MOV qword ptr [RBP + -0x30],RSI MOV RAX,RSI LAB_0017e996: CMP EAX,dword ptr [RBP + -0x34] JGE 0x0017e9f6 MOV ESI,0x1 CMP ECX,dword ptr [RBP + -0x44] JA 0x0017e9b9 JNZ 0x0017e9b0 MOV EDI,dword ptr [RBP + -0x44] CMP RAX,qword ptr [RBP + -0x60] JA 0x0017e9bb LAB_0017e9b0: IMUL ECX,dword ptr [RBP + -0x34] ADD ECX,EAX MOV ESI,R8D LAB_0017e9b9: MOV EDI,ECX LAB_0017e9bb: MOV dword ptr [RBP + -0x54],EDI MOV dword ptr [RBP + -0x58],ESI MOV RDI,R14 LEA RSI,[RBP + -0x30] MOV RDX,RBX MOV RCX,R13 CALL R12 MOV EDI,dword ptr [RBP + -0x54] MOV ESI,dword ptr [RBP + -0x58] MOV ECX,EDI MOV R8D,ESI TEST EAX,EAX JG 0x0017e955 JMP 0x0017e9ed LAB_0017e9e6: XOR EDI,EDI MOV RBX,R15 XOR ESI,ESI LAB_0017e9ed: TEST EAX,EAX JZ 0x0017ea55 MOV R8D,ESI MOV ECX,EDI LAB_0017e9f6: MOV RAX,qword ptr [RBP + -0x40] TEST RAX,RAX JZ 0x0017ea02 MOV qword ptr [RAX],RBX LAB_0017ea02: CMP RBX,R15 JZ 0x0017ea46 CMP ECX,0x80000001 MOV EAX,0x1 MOV ESI,R8D CMOVNC ESI,EAX TEST ECX,ECX CMOVS R8D,EAX MOV EDI,dword ptr [RBP + -0x38] TEST EDI,EDI CMOVNZ R8D,ESI TEST R8D,R8D JZ 0x0017ea70 TEST EDI,EDI MOV RAX,qword ptr [RBP + -0x50] MOV dword ptr [RAX],0x22 MOV ECX,0x7fffffff MOV RAX,-0x80000000 JMP 0x0017ea7a LAB_0017ea46: MOV RAX,qword ptr [RBP + -0x50] MOV dword ptr [RAX],0x21 JMP 0x0017e90f LAB_0017ea55: MOV RAX,qword ptr [RBP + -0x40] TEST RAX,RAX JZ 0x0017ea61 MOV qword ptr [RAX],RBX LAB_0017ea61: MOV RAX,qword ptr [RBP + -0x50] MOV dword ptr [RAX],0x54 JMP 0x0017e90f LAB_0017ea70: MOV ECX,ECX MOV RAX,RCX NEG RAX TEST EDI,EDI LAB_0017ea7a: CMOVZ RAX,RCX JMP 0x0017e911
ulong my_strntol_mb2_or_mb4 (long param_1,long param_2,long param_3,uint param_4,long *param_5, int4 *param_6) { code *pcVar1; bool bVar2; bool bVar3; bool bVar4; uint uVar5; uint uVar6; ulong uVar7; int4 uVar8; uint uVar9; ulong uVar10; long lVar11; ulong local_38; pcVar1 = *(code **)(*(long *)(param_1 + 0xb8) + 0x28); param_3 = param_3 + param_2; *param_6 = 0; uVar5 = (*pcVar1)(param_1,&local_38,param_2,param_3); if (0 < (int)uVar5) { bVar2 = false; do { if ((long)local_38 < 0x2b) { if ((local_38 != 9) && (local_38 != 0x20)) { LAB_0017e920: uVar5 = (uint)(0xffffffff / (ulong)param_4); uVar6 = (*pcVar1)(param_1,&local_38,param_2,param_3); lVar11 = param_2; if ((int)uVar6 < 1) { uVar9 = 0; bVar3 = false; goto LAB_0017e9ed; } uVar9 = 0; bVar3 = false; goto LAB_0017e955; } } else if (local_38 != 0x2b) { if (local_38 != 0x2d) goto LAB_0017e920; bVar2 = !bVar2; } param_2 = param_2 + (ulong)uVar5; uVar5 = (*pcVar1)(param_1,&local_38,param_2,param_3); } while (0 < (int)uVar5); } if (param_5 != (long *)0x0) { *param_5 = param_2; } uVar8 = 0x21; if (uVar5 == 0) { uVar8 = 0x54; } *param_6 = uVar8; return 0; while( true ) { if ((int)param_4 <= (int)uVar7) goto LAB_0017e9f6; uVar6 = uVar9; bVar4 = true; if ((uVar9 <= uVar5) && ((uVar9 != uVar5 || (uVar6 = uVar5, bVar4 = true, uVar7 <= 0xffffffffU % (ulong)param_4)))) { uVar6 = uVar9 * param_4 + (int)uVar7; bVar4 = bVar3; } bVar3 = bVar4; uVar9 = uVar6; local_38 = uVar7; uVar6 = (*pcVar1)(param_1,&local_38,lVar11,param_3); if ((int)uVar6 < 1) break; LAB_0017e955: lVar11 = (ulong)uVar6 + lVar11; uVar7 = local_38 - 0x30; if (9 < uVar7) { if (local_38 - 0x41 < 0x1a) { uVar7 = local_38 - 0x37; } else { if (0x19 < local_38 - 0x61) goto LAB_0017e9f6; uVar7 = local_38 - 0x57; } } } LAB_0017e9ed: if (uVar6 == 0) { if (param_5 != (long *)0x0) { *param_5 = lVar11; } *param_6 = 0x54; } else { LAB_0017e9f6: if (param_5 != (long *)0x0) { *param_5 = lVar11; } if (lVar11 != param_2) { bVar4 = bVar3; if (0x80000000 < uVar9) { bVar4 = true; } if ((int)uVar9 < 0) { bVar3 = true; } if (bVar2) { bVar3 = bVar4; } if (bVar3) { *param_6 = 0x22; uVar10 = 0x7fffffff; uVar7 = 0xffffffff80000000; } else { uVar10 = (ulong)uVar9; uVar7 = -uVar10; } if (!bVar2) { return uVar10; } return uVar7; } *param_6 = 0x21; } return 0; }
60,320
void (anonymous namespace)::tinyBLAS_Q0_AVX<block_q8_0, block_q8_0, float>::gemm<1, 1>(long, long, long, long)
llama.cpp/ggml/src/ggml-cpu/llamafile/sgemm.cpp
NOINLINE void gemm(int64_t m0, int64_t m, int64_t n0, int64_t n) { int64_t ytiles = (m - m0) / RM; int64_t xtiles = (n - n0) / RN; int64_t tiles = xtiles * ytiles; int64_t duty = (tiles + nth - 1) / nth; int64_t start = duty * ith; int64_t end = start + duty; if (end > tiles) end = tiles; for (int64_t job = start; job < end; ++job) { int64_t ii = m0 + job / xtiles * RM; int64_t jj = n0 + job % xtiles * RN; __m256 Cv[RN][RM] = {}; for (int64_t l = 0; l < k; ++l) for (int64_t j = 0; j < RN; ++j) for (int64_t i = 0; i < RM; ++i) { #if defined(__AVX2__) __m256 udTmp = updot(_mm256_sign_epi8(load(A + lda * (ii + i) + l), load(A + lda * (ii + i) + l)), _mm256_sign_epi8(load(B + ldb * (jj + j) + l), load(A + lda * (ii + i) + l))); #else __m128i ali0 = load0(A + lda * (ii + i) + l); __m128i ali1 = load1(A + lda * (ii + i) + l); __m128i blj0 = load0(B + ldb * (jj + j) + l); __m128i blj1 = load1(B + ldb * (jj + j) + l); __m128i sepAA0 = _mm_sign_epi8(ali0, ali0); __m128i sepAA1 = _mm_sign_epi8(ali1, ali1); __m128i sepBA0 = _mm_sign_epi8(blj0, ali0); __m128i sepBA1 = _mm_sign_epi8(blj1, ali1); // updot const __m128i oneFill = _mm_set1_epi16(1); __m128i mad0 = _mm_maddubs_epi16(sepAA0, sepBA0); __m128i mad1 = _mm_maddubs_epi16(sepAA1, sepBA1); __m256 udTmp = _mm256_cvtepi32_ps(MM256_SET_M128I(_mm_madd_epi16(oneFill, mad1), _mm_madd_epi16(oneFill, mad0))); #endif Cv[j][i] = madd(_mm256_set1_ps(unhalf(A[lda * (ii + i) + l].d) * unhalf(B[ldb * (jj + j) + l].d)), udTmp, Cv[j][i]); } for (int64_t j = 0; j < RN; ++j) for (int64_t i = 0; i < RM; ++i) C[ldc * (jj + j) + (ii + i)] = hsum(Cv[j][i]); } }
O3
cpp
void (anonymous namespace)::tinyBLAS_Q0_AVX<block_q8_0, block_q8_0, float>::gemm<1, 1>(long, long, long, long): pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx andq $-0x20, %rsp subq $0x140, %rsp # imm = 0x140 movq %r8, %rax movq %rsi, 0x38(%rsp) subq %rsi, %rdx movq %rdx, %r8 shrq $0x3f, %r8 addq %rdx, %r8 sarq %r8 movq %rcx, 0x40(%rsp) subq %rcx, %rax movabsq $0x5555555555555556, %rdx # imm = 0x5555555555555556 imulq %rdx movq %rdx, %rax shrq $0x3f, %rax addq %rdx, %rax movq %rax, 0x30(%rsp) imulq %rax, %r8 movslq 0x3c(%rdi), %rsi leaq (%r8,%rsi), %rax decq %rax cqto idivq %rsi movq %rdi, 0x10(%rsp) movslq 0x38(%rdi), %rcx imulq %rax, %rcx addq %rcx, %rax cmpq %r8, %rax cmovgeq %r8, %rax movq %rax, 0x28(%rsp) cmpq %rax, %rcx jge 0x65ce4 movq 0x10(%rsp), %rax movq 0x18(%rax), %rdx movq %rdx, 0x18(%rsp) movq (%rax), %rdx movq %rdx, 0x58(%rsp) movq 0x8(%rax), %rdx movq %rdx, 0x50(%rsp) movq 0x20(%rax), %r15 movq 0x28(%rax), %r12 movq 0x10(%rax), %rdx movq %rdx, 0x20(%rsp) movq 0x30(%rax), %r13 vxorps %xmm0, %xmm0, %xmm0 movq 0x17464(%rip), %rdi # 0x7cf60 vpbroadcastb 0xe05f(%rip), %ymm1 # 0x73b64 vpbroadcastw 0xe058(%rip), %ymm2 # 0x73b66 movq %rcx, 0x48(%rsp) movq %rcx, %rax cqto idivq 0x30(%rsp) leaq (%rdx,%rdx,2), %rdx addq 0x40(%rsp), %rdx vmovaps %ymm0, 0x100(%rsp) vmovaps %ymm0, 0xe0(%rsp) vmovaps %ymm0, 0xc0(%rsp) vmovaps %ymm0, 0xa0(%rsp) movq 0x38(%rsp), %rcx leaq (%rcx,%rax,2), %rax vmovaps %ymm0, 0x80(%rsp) vmovaps %ymm0, 0x60(%rsp) cmpq $0x0, 0x18(%rsp) jle 0x65c64 movq 0x10(%rsp), %rcx vmovdqa 0x40(%rcx), %xmm3 vinserti128 $0x1, %xmm3, %ymm3, %ymm3 xorl %ecx, %ecx leaq (%rcx,%rcx,8), %rsi movq 0x58(%rsp), %r8 leaq (%r8,%rsi,2), %rsi movq %rcx, %r8 shlq $0x5, %r8 leaq (%r8,%rcx,2), %r10 addq 0x50(%rsp), %r10 xorl %r8d, %r8d leaq (%r8,%rdx), %r9 imulq %r12, %r9 movq %r9, %rbx shlq $0x5, %rbx leaq (%rbx,%r9,2), %r9 vmovdqu 0x2(%r10,%r9), %ymm4 movzwl (%r10,%r9), %r9d vmovss (%rdi,%r9,4), %xmm5 movb $0x1, %r9b movq %r8, %rbx shlq $0x6, %rbx addq %rsp, %rbx addq $0x60, %rbx xorl %r14d, %r14d leaq (%r14,%rax), %r11 imulq %r15, %r11 leaq (%r11,%r11,8), %r11 vmovdqu 0x2(%rsi,%r11,2), %xmm6 vpsrlw $0x4, %xmm6, %xmm7 vinserti128 $0x1, %xmm7, %ymm6, %ymm6 vpand %ymm1, %ymm6, %ymm6 vpshufb %ymm6, %ymm3, %ymm6 vpsignb %ymm6, %ymm6, %ymm7 vpsignb %ymm6, %ymm4, %ymm6 vpmaddubsw %ymm6, %ymm7, %ymm6 vpmaddwd %ymm6, %ymm2, %ymm6 vcvtdq2ps %ymm6, %ymm6 movzwl (%rsi,%r11,2), %r11d vmulss (%rdi,%r11,4), %xmm5, %xmm7 vbroadcastss %xmm7, %ymm7 shlq $0x5, %r14 vfmadd213ps (%r14,%rbx), %ymm6, %ymm7 # ymm7 = (ymm6 * ymm7) + mem vmovaps %ymm7, (%r14,%rbx) movl $0x1, %r14d testb $0x1, %r9b movl $0x0, %r9d jne 0x65bd9 incq %r8 cmpq $0x3, %r8 jne 0x65ba0 incq %rcx cmpq 0x18(%rsp), %rcx jne 0x65b80 movq 0x20(%rsp), %rcx leaq (%rcx,%rax,4), %rax xorl %ecx, %ecx leaq (%rcx,%rdx), %rsi imulq %r13, %rsi leaq (%rax,%rsi,4), %rsi movb $0x1, %r8b xorl %r9d, %r9d movq %r9, %r10 shlq $0x5, %r10 movq %rcx, %r11 shlq $0x6, %r11 addq %rsp, %r11 addq $0x60, %r11 vmovaps 0x10(%r10,%r11), %xmm3 vaddps (%r10,%r11), %xmm3, %xmm3 vshufpd $0x1, %xmm3, %xmm3, %xmm4 # xmm4 = xmm3[1,0] vaddps %xmm4, %xmm3, %xmm3 vhaddps %xmm3, %xmm3, %xmm3 vmovss %xmm3, (%rsi,%r9,4) movl $0x1, %r9d testb $0x1, %r8b movl $0x0, %r8d jne 0x65c81 incq %rcx cmpq $0x3, %rcx jne 0x65c6f movq 0x48(%rsp), %rcx incq %rcx cmpq 0x28(%rsp), %rcx jne 0x65b0e leaq -0x28(%rbp), %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp vzeroupper retq
_ZN12_GLOBAL__N_115tinyBLAS_Q0_AVXI12block_iq4_nl10block_q8_0fE4gemmILi2ELi3EEEvllll: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx and rsp, 0FFFFFFFFFFFFFFE0h sub rsp, 140h mov rax, r8 mov [rsp+168h+var_130], rsi sub rdx, rsi mov r8, rdx shr r8, 3Fh add r8, rdx sar r8, 1 mov [rsp+168h+var_128], rcx sub rax, rcx mov rdx, 5555555555555556h imul rdx mov rax, rdx shr rax, 3Fh add rax, rdx mov [rsp+168h+var_138], rax imul r8, rax movsxd rsi, dword ptr [rdi+3Ch] lea rax, [r8+rsi] dec rax cqo idiv rsi mov [rsp+168h+var_158], rdi movsxd rcx, dword ptr [rdi+38h] imul rcx, rax add rax, rcx cmp rax, r8 cmovge rax, r8 mov [rsp+168h+var_140], rax cmp rcx, rax jge loc_65CE4 mov rax, [rsp+168h+var_158] mov rdx, [rax+18h] mov [rsp+168h+var_150], rdx mov rdx, [rax] mov [rsp+168h+var_110], rdx mov rdx, [rax+8] mov [rsp+168h+var_118], rdx mov r15, [rax+20h] mov r12, [rax+28h] mov rdx, [rax+10h] mov [rsp+168h+var_148], rdx mov r13, [rax+30h] vxorps xmm0, xmm0, xmm0 mov rdi, cs:ggml_table_f32_f16_ptr vpbroadcastb ymm1, cs:byte_73B64 vpbroadcastw ymm2, cs:word_73B66 loc_65B0E: mov [rsp+168h+var_120], rcx mov rax, rcx cqo idiv [rsp+168h+var_138] lea rdx, [rdx+rdx*2] add rdx, [rsp+168h+var_128] vmovaps [rsp+168h+var_68], ymm0 vmovaps [rsp+168h+var_88], ymm0 vmovaps [rsp+168h+var_A8], ymm0 vmovaps [rsp+168h+var_C8], ymm0 mov rcx, [rsp+168h+var_130] lea rax, [rcx+rax*2] vmovaps [rsp+168h+var_E8], ymm0 vmovaps [rsp+168h+var_108], ymm0 cmp [rsp+168h+var_150], 0 jle loc_65C64 mov rcx, [rsp+168h+var_158] vmovdqa xmm3, xmmword ptr [rcx+40h] vinserti128 ymm3, ymm3, xmm3, 1 xor ecx, ecx loc_65B80: lea rsi, [rcx+rcx*8] mov r8, [rsp+168h+var_110] lea rsi, [r8+rsi*2] mov r8, rcx shl r8, 5 lea r10, [r8+rcx*2] add r10, [rsp+168h+var_118] xor r8d, r8d loc_65BA0: lea r9, [r8+rdx] imul r9, r12 mov rbx, r9 shl rbx, 5 lea r9, [rbx+r9*2] vmovdqu ymm4, ymmword ptr [r10+r9+2] movzx r9d, word ptr [r10+r9] vmovss xmm5, dword ptr [rdi+r9*4] mov r9b, 1 mov rbx, r8 shl rbx, 6 add rbx, rsp add rbx, 60h ; '`' xor r14d, r14d loc_65BD9: lea r11, [r14+rax] imul r11, r15 lea r11, [r11+r11*8] vmovdqu xmm6, xmmword ptr [rsi+r11*2+2] vpsrlw xmm7, xmm6, 4 vinserti128 ymm6, ymm6, xmm7, 1 vpand ymm6, ymm6, ymm1 vpshufb ymm6, ymm3, ymm6 vpsignb ymm7, ymm6, ymm6 vpsignb ymm6, ymm4, ymm6 vpmaddubsw ymm6, ymm7, ymm6 vpmaddwd ymm6, ymm2, ymm6 vcvtdq2ps ymm6, ymm6 movzx r11d, word ptr [rsi+r11*2] vmulss xmm7, xmm5, dword ptr [rdi+r11*4] vbroadcastss ymm7, xmm7 shl r14, 5 vfmadd213ps ymm7, ymm6, ymmword ptr [r14+rbx] vmovaps ymmword ptr [r14+rbx], ymm7 mov r14d, 1 test r9b, 1 mov r9d, 0 jnz short loc_65BD9 inc r8 cmp r8, 3 jnz loc_65BA0 inc rcx cmp rcx, [rsp+168h+var_150] jnz loc_65B80 loc_65C64: mov rcx, [rsp+168h+var_148] lea rax, [rcx+rax*4] xor ecx, ecx loc_65C6F: lea rsi, [rcx+rdx] imul rsi, r13 lea rsi, [rax+rsi*4] mov r8b, 1 xor r9d, r9d loc_65C81: mov r10, r9 shl r10, 5 mov r11, rcx shl r11, 6 add r11, rsp add r11, 60h ; '`' vmovaps xmm3, xmmword ptr [r10+r11+10h] vaddps xmm3, xmm3, xmmword ptr [r10+r11] vshufpd xmm4, xmm3, xmm3, 1 vaddps xmm3, xmm3, xmm4 vhaddps xmm3, xmm3, xmm3 vmovss dword ptr [rsi+r9*4], xmm3 mov r9d, 1 test r8b, 1 mov r8d, 0 jnz short loc_65C81 inc rcx cmp rcx, 3 jnz short loc_65C6F mov rcx, [rsp+168h+var_120] inc rcx cmp rcx, [rsp+168h+var_140] jnz loc_65B0E loc_65CE4: lea rsp, [rbp-28h] pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp vzeroupper retn
long long `anonymous namespace'::tinyBLAS_Q0_AVX<block_iq4_nl,block_q8_0,float>::gemm<2,3>( long long *a1, long long a2, long long a3, long long a4, long long a5, __m128 _XMM0) { long long v9; // r8 long long v10; // rax long long v11; // rcx long long result; // rax long long v13; // r15 long long v14; // r12 long long v15; // r13 long long v20; // rdx long long v21; // rax long long i; // rcx long long j; // r8 char v32; // r9 long long v34; // r14 bool v49; // zf long long k; // rcx char v52; // r8 long long v62; // [rsp+18h] [rbp-150h] long long v63; // [rsp+20h] [rbp-148h] long long v64; // [rsp+28h] [rbp-140h] long long v65; // [rsp+30h] [rbp-138h] long long v68; // [rsp+48h] [rbp-120h] long long v69; // [rsp+50h] [rbp-118h] long long v70; // [rsp+58h] [rbp-110h] __m256 v71; // [rsp+60h] [rbp-108h] BYREF v65 = (a5 - a4) / 3; v9 = v65 * ((a3 - a2) / 2); v10 = (v9 + *((int *)a1 + 15) - 1) / *((int *)a1 + 15); v11 = v10 * *((int *)a1 + 14); result = v11 + v10; if ( result >= v9 ) result = v65 * ((a3 - a2) / 2); v64 = result; if ( v11 < result ) { v62 = a1[3]; v70 = *a1; v69 = a1[1]; v13 = a1[4]; v14 = a1[5]; v63 = a1[2]; v15 = a1[6]; __asm { vxorps xmm0, xmm0, xmm0 } _RDI = &ggml_table_f32_f16; __asm { vpbroadcastb ymm1, cs:byte_73B64 vpbroadcastw ymm2, cs:word_73B66 } do { v68 = v11; v20 = a4 + 3 * (v11 % v65); __asm { vmovaps [rsp+168h+var_68], ymm0 vmovaps [rsp+168h+var_88], ymm0 vmovaps [rsp+168h+var_A8], ymm0 vmovaps [rsp+168h+var_C8], ymm0 } v21 = a2 + 2 * (v11 / v65); __asm { vmovaps [rsp+168h+var_E8], ymm0 vmovaps [rsp+168h+var_108], ymm0 } if ( v62 > 0 ) { _RCX = a1; __asm { vmovdqa xmm3, xmmword ptr [rcx+40h] vinserti128 ymm3, ymm3, xmm3, 1 } for ( i = 0LL; i != v62; ++i ) { _RSI = v70 + 18 * i; _R10 = v69 + 34 * i; for ( j = 0LL; j != 3; ++j ) { _R9 = 34 * v14 * (j + v20); __asm { vmovdqu ymm4, ymmword ptr [r10+r9+2] } _R9 = *(unsigned __int16 *)(_R10 + _R9); __asm { vmovss xmm5, dword ptr [rdi+r9*4] } v32 = 1; _RBX = &v71 + 2 * j; v34 = 0LL; do { _R11 = 9 * v13 * (v34 + v21); __asm { vmovdqu xmm6, xmmword ptr [rsi+r11*2+2] vpsrlw xmm7, xmm6, 4 vinserti128 ymm6, ymm6, xmm7, 1 vpand ymm6, ymm6, ymm1 vpshufb ymm6, ymm3, ymm6 vpsignb ymm7, ymm6, ymm6 vpsignb ymm6, ymm4, ymm6 vpmaddubsw ymm6, ymm7, ymm6 vpmaddwd ymm6, ymm2, ymm6 vcvtdq2ps ymm6, ymm6 vmulss xmm7, xmm5, dword ptr [rdi+r11*4] vbroadcastss ymm7, xmm7 } _R14 = 32 * v34; __asm { vfmadd213ps ymm7, ymm6, ymmword ptr [r14+rbx] vmovaps ymmword ptr [r14+rbx], ymm7 } v34 = 1LL; v49 = (v32 & 1) == 0; v32 = 0; } while ( !v49 ); } } } result = v63 + 4 * v21; for ( k = 0LL; k != 3; ++k ) { _RSI = result + 4 * v15 * (k + v20); v52 = 1; _R9 = 0LL; do { _R10 = 32 * _R9; _R11 = &v71 + 2 * k; __asm { vmovaps xmm3, xmmword ptr [r10+r11+10h] vaddps xmm3, xmm3, xmmword ptr [r10+r11] vshufpd xmm4, xmm3, xmm3, 1 vaddps xmm3, xmm3, xmm4 vhaddps xmm3, xmm3, xmm3 vmovss dword ptr [rsi+r9*4], xmm3 } _R9 = 1LL; v49 = (v52 & 1) == 0; v52 = 0; } while ( !v49 ); } v11 = v68 + 1; } while ( v68 + 1 != v64 ); } __asm { vzeroupper } return result; }
gemm<2,3>: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX AND RSP,-0x20 SUB RSP,0x140 MOV RAX,R8 MOV qword ptr [RSP + 0x38],RSI SUB RDX,RSI MOV R8,RDX SHR R8,0x3f ADD R8,RDX SAR R8,0x1 MOV qword ptr [RSP + 0x40],RCX SUB RAX,RCX MOV RDX,0x5555555555555556 IMUL RDX MOV RAX,RDX SHR RAX,0x3f ADD RAX,RDX MOV qword ptr [RSP + 0x30],RAX IMUL R8,RAX MOVSXD RSI,dword ptr [RDI + 0x3c] LEA RAX,[R8 + RSI*0x1] DEC RAX CQO IDIV RSI MOV qword ptr [RSP + 0x10],RDI MOVSXD RCX,dword ptr [RDI + 0x38] IMUL RCX,RAX ADD RAX,RCX CMP RAX,R8 CMOVGE RAX,R8 MOV qword ptr [RSP + 0x28],RAX CMP RCX,RAX JGE 0x00165ce4 MOV RAX,qword ptr [RSP + 0x10] MOV RDX,qword ptr [RAX + 0x18] MOV qword ptr [RSP + 0x18],RDX MOV RDX,qword ptr [RAX] MOV qword ptr [RSP + 0x58],RDX MOV RDX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x50],RDX MOV R15,qword ptr [RAX + 0x20] MOV R12,qword ptr [RAX + 0x28] MOV RDX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0x20],RDX MOV R13,qword ptr [RAX + 0x30] VXORPS XMM0,XMM0,XMM0 MOV RDI,qword ptr [0x0017cf60] VPBROADCASTB YMM1,byte ptr [0x00173b64] VPBROADCASTW YMM2,word ptr [0x00173b66] LAB_00165b0e: MOV qword ptr [RSP + 0x48],RCX MOV RAX,RCX CQO IDIV qword ptr [RSP + 0x30] LEA RDX,[RDX + RDX*0x2] ADD RDX,qword ptr [RSP + 0x40] VMOVAPS ymmword ptr [RSP + 0x100],YMM0 VMOVAPS ymmword ptr [RSP + 0xe0],YMM0 VMOVAPS ymmword ptr [RSP + 0xc0],YMM0 VMOVAPS ymmword ptr [RSP + 0xa0],YMM0 MOV RCX,qword ptr [RSP + 0x38] LEA RAX,[RCX + RAX*0x2] VMOVAPS ymmword ptr [RSP + 0x80],YMM0 VMOVAPS ymmword ptr [RSP + 0x60],YMM0 CMP qword ptr [RSP + 0x18],0x0 JLE 0x00165c64 MOV RCX,qword ptr [RSP + 0x10] VMOVDQA XMM3,xmmword ptr [RCX + 0x40] VINSERTI128 YMM3,YMM3,XMM3,0x1 XOR ECX,ECX LAB_00165b80: LEA RSI,[RCX + RCX*0x8] MOV R8,qword ptr [RSP + 0x58] LEA RSI,[R8 + RSI*0x2] MOV R8,RCX SHL R8,0x5 LEA R10,[R8 + RCX*0x2] ADD R10,qword ptr [RSP + 0x50] XOR R8D,R8D LAB_00165ba0: LEA R9,[R8 + RDX*0x1] IMUL R9,R12 MOV RBX,R9 SHL RBX,0x5 LEA R9,[RBX + R9*0x2] VMOVDQU YMM4,ymmword ptr [R10 + R9*0x1 + 0x2] MOVZX R9D,word ptr [R10 + R9*0x1] VMOVSS XMM5,dword ptr [RDI + R9*0x4] MOV R9B,0x1 MOV RBX,R8 SHL RBX,0x6 ADD RBX,RSP ADD RBX,0x60 XOR R14D,R14D LAB_00165bd9: LEA R11,[R14 + RAX*0x1] IMUL R11,R15 LEA R11,[R11 + R11*0x8] VMOVDQU XMM6,xmmword ptr [RSI + R11*0x2 + 0x2] VPSRLW XMM7,XMM6,0x4 VINSERTI128 YMM6,YMM6,XMM7,0x1 VPAND YMM6,YMM6,YMM1 VPSHUFB YMM6,YMM3,YMM6 VPSIGNB YMM7,YMM6,YMM6 VPSIGNB YMM6,YMM4,YMM6 VPMADDUBSW YMM6,YMM7,YMM6 VPMADDWD YMM6,YMM2,YMM6 VCVTDQ2PS YMM6,YMM6 MOVZX R11D,word ptr [RSI + R11*0x2] VMULSS XMM7,XMM5,dword ptr [RDI + R11*0x4] VBROADCASTSS YMM7,XMM7 SHL R14,0x5 VFMADD213PS YMM7,YMM6,ymmword ptr [R14 + RBX*0x1] VMOVAPS ymmword ptr [R14 + RBX*0x1],YMM7 MOV R14D,0x1 TEST R9B,0x1 MOV R9D,0x0 JNZ 0x00165bd9 INC R8 CMP R8,0x3 JNZ 0x00165ba0 INC RCX CMP RCX,qword ptr [RSP + 0x18] JNZ 0x00165b80 LAB_00165c64: MOV RCX,qword ptr [RSP + 0x20] LEA RAX,[RCX + RAX*0x4] XOR ECX,ECX LAB_00165c6f: LEA RSI,[RCX + RDX*0x1] IMUL RSI,R13 LEA RSI,[RAX + RSI*0x4] MOV R8B,0x1 XOR R9D,R9D LAB_00165c81: MOV R10,R9 SHL R10,0x5 MOV R11,RCX SHL R11,0x6 ADD R11,RSP ADD R11,0x60 VMOVAPS XMM3,xmmword ptr [R10 + R11*0x1 + 0x10] VADDPS XMM3,XMM3,xmmword ptr [R10 + R11*0x1] VSHUFPD XMM4,XMM3,XMM3,0x1 VADDPS XMM3,XMM3,XMM4 VHADDPS XMM3,XMM3,XMM3 VMOVSS dword ptr [RSI + R9*0x4],XMM3 MOV R9D,0x1 TEST R8B,0x1 MOV R8D,0x0 JNZ 0x00165c81 INC RCX CMP RCX,0x3 JNZ 0x00165c6f MOV RCX,qword ptr [RSP + 0x48] INC RCX CMP RCX,qword ptr [RSP + 0x28] JNZ 0x00165b0e LAB_00165ce4: LEA RSP,[RBP + -0x28] POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP VZEROUPPER RET
/* void (anonymous namespace)::tinyBLAS_Q0_AVX<block_iq4_nl, block_q8_0, float>::gemm<2, 3>(long, long, long, long) */ void __thiscall (anonymous_namespace)::tinyBLAS_Q0_AVX<block_iq4_nl,block_q8_0,float>::gemm<2,3> (tinyBLAS_Q0_AVX<block_iq4_nl,block_q8_0,float> *this,long param_1,long param_2, long param_3,long param_4) { long lVar1; float *pfVar2; float *pfVar3; float fVar4; int1 auVar5 [16]; int1 auVar6 [32]; long lVar7; long lVar8; long lVar9; long lVar10; long lVar11; long lVar12; float fVar13; long lVar14; int *puVar15; bool bVar16; long lVar17; long lVar18; long lVar19; long lVar20; bool bVar21; long lVar22; long lVar23; long lVar24; long lVar25; long lVar26; long lVar27; int1 auVar28 [16]; int1 auVar29 [32]; int1 auVar30 [32]; int1 auVar31 [16]; int1 auVar32 [32]; int1 auVar33 [32]; int1 auVar34 [16]; int1 auVar35 [32]; int1 local_120 [4]; float afStack_11c [7]; int1 local_100 [32]; int1 local_e0 [32]; int1 local_c0 [32]; int1 local_a0 [32]; int1 local_80 [32]; puVar15 = PTR_ggml_table_f32_f16_0017cf60; lVar14 = (param_4 - param_3) / 3; lVar22 = ((param_2 - param_1) / 2) * lVar14; lVar17 = (lVar22 + *(int *)(this + 0x3c) + -1) / (long)*(int *)(this + 0x3c); lVar18 = *(int *)(this + 0x38) * lVar17; lVar17 = lVar17 + lVar18; if (lVar22 <= lVar17) { lVar17 = lVar22; } if (lVar18 < lVar17) { lVar22 = *(long *)(this + 0x18); lVar7 = *(long *)this; lVar8 = *(long *)(this + 8); lVar9 = *(long *)(this + 0x20); lVar10 = *(long *)(this + 0x28); lVar11 = *(long *)(this + 0x10); lVar12 = *(long *)(this + 0x30); auVar28 = ZEXT816(0) << 0x40; auVar29[1] = DAT_00173b64; auVar29[0] = DAT_00173b64; auVar29[2] = DAT_00173b64; auVar29[3] = DAT_00173b64; auVar29[4] = DAT_00173b64; auVar29[5] = DAT_00173b64; auVar29[6] = DAT_00173b64; auVar29[7] = DAT_00173b64; auVar29[8] = DAT_00173b64; auVar29[9] = DAT_00173b64; auVar29[10] = DAT_00173b64; auVar29[0xb] = DAT_00173b64; auVar29[0xc] = DAT_00173b64; auVar29[0xd] = DAT_00173b64; auVar29[0xe] = DAT_00173b64; auVar29[0xf] = DAT_00173b64; auVar29[0x10] = DAT_00173b64; auVar29[0x11] = DAT_00173b64; auVar29[0x12] = DAT_00173b64; auVar29[0x13] = DAT_00173b64; auVar29[0x14] = DAT_00173b64; auVar29[0x15] = DAT_00173b64; auVar29[0x16] = DAT_00173b64; auVar29[0x17] = DAT_00173b64; auVar29[0x18] = DAT_00173b64; auVar29[0x19] = DAT_00173b64; auVar29[0x1a] = DAT_00173b64; auVar29[0x1b] = DAT_00173b64; auVar29[0x1c] = DAT_00173b64; auVar29[0x1d] = DAT_00173b64; auVar29[0x1e] = DAT_00173b64; auVar29[0x1f] = DAT_00173b64; auVar30._2_2_ = DAT_00173b66; auVar30._0_2_ = DAT_00173b66; auVar30._4_2_ = DAT_00173b66; auVar30._6_2_ = DAT_00173b66; auVar30._8_2_ = DAT_00173b66; auVar30._10_2_ = DAT_00173b66; auVar30._12_2_ = DAT_00173b66; auVar30._14_2_ = DAT_00173b66; auVar30._16_2_ = DAT_00173b66; auVar30._18_2_ = DAT_00173b66; auVar30._20_2_ = DAT_00173b66; auVar30._22_2_ = DAT_00173b66; auVar30._24_2_ = DAT_00173b66; auVar30._26_2_ = DAT_00173b66; auVar30._28_2_ = DAT_00173b66; auVar30._30_2_ = DAT_00173b66; do { lVar20 = (lVar18 % lVar14) * 3 + param_3; local_80 = ZEXT1632(auVar28); local_a0 = ZEXT1632(auVar28); local_c0 = ZEXT1632(auVar28); local_e0 = local_c0; lVar1 = param_1 + (lVar18 / lVar14) * 2; local_100 = local_c0; _local_120 = local_c0; if (0 < lVar22) { auVar5 = *(int1 (*) [16])(this + 0x40); auVar32._0_16_ = ZEXT116(0) * auVar5 + ZEXT116(1) * auVar5; auVar32._16_16_ = ZEXT116(0) * SUB4816((int1 [48])0x0,0) + ZEXT116(1) * auVar5; lVar19 = 0; do { lVar24 = lVar7 + lVar19 * 0x12; lVar25 = lVar19 * 0x22 + lVar8; lVar23 = 0; do { lVar27 = (lVar23 + lVar20) * lVar10 * 0x22; auVar6 = *(int1 (*) [32])(lVar25 + 2 + lVar27); fVar4 = *(float *)(puVar15 + (ulong)*(ushort *)(lVar25 + lVar27) * 4); lVar27 = 0; bVar16 = true; do { bVar21 = bVar16; lVar26 = (lVar27 + lVar1) * lVar9; auVar5 = *(int1 (*) [16])(lVar24 + 2 + lVar26 * 0x12); auVar34 = vpsrlw_avx(auVar5,4); auVar33._0_16_ = ZEXT116(0) * auVar34 + ZEXT116(1) * auVar5; auVar33._16_16_ = ZEXT116(0) * SUB4816((int1 [48])0x0,0) + ZEXT116(1) * auVar34 ; auVar33 = vpand_avx2(auVar33,auVar29); auVar33 = vpshufb_avx2(auVar32,auVar33); auVar35 = vpsignb_avx2(auVar33,auVar33); auVar33 = vpsignb_avx2(auVar6,auVar33); auVar33 = vpmaddubsw_avx2(auVar35,auVar33); auVar33 = vpmaddwd_avx2(auVar30,auVar33); auVar33 = vcvtdq2ps_avx(auVar33); fVar13 = fVar4 * *(float *)(puVar15 + (ulong)*(ushort *)(lVar24 + lVar26 * 0x12) * 4); auVar35._4_4_ = fVar13; auVar35._0_4_ = fVar13; auVar35._8_4_ = fVar13; auVar35._12_4_ = fVar13; auVar35._16_4_ = fVar13; auVar35._20_4_ = fVar13; auVar35._24_4_ = fVar13; auVar35._28_4_ = fVar13; auVar5 = vfmadd213ps_fma(auVar35,auVar33, *(int1 (*) [32]) (local_120 + lVar27 * 0x20 + lVar23 * 0x40)); *(int1 (*) [32])(local_120 + lVar27 * 0x20 + lVar23 * 0x40) = ZEXT1632(auVar5); lVar27 = 1; bVar16 = false; } while (bVar21); lVar23 = lVar23 + 1; } while (lVar23 != 3); lVar19 = lVar19 + 1; } while (lVar19 != lVar22); } lVar19 = 0; do { lVar24 = 0; bVar16 = true; do { bVar21 = bVar16; pfVar3 = (float *)(local_120 + lVar24 * 0x20 + 0x10 + lVar19 * 0x40); pfVar2 = (float *)(local_120 + lVar24 * 0x20 + lVar19 * 0x40); auVar34._0_4_ = *pfVar3 + *pfVar2; auVar34._4_4_ = pfVar3[1] + pfVar2[1]; auVar34._8_4_ = pfVar3[2] + pfVar2[2]; auVar34._12_4_ = pfVar3[3] + pfVar2[3]; auVar5 = vshufpd_avx(auVar34,auVar34,1); auVar31._0_4_ = auVar34._0_4_ + auVar5._0_4_; auVar31._4_4_ = auVar34._4_4_ + auVar5._4_4_; auVar31._8_4_ = auVar34._8_4_ + auVar5._8_4_; auVar31._12_4_ = auVar34._12_4_ + auVar5._12_4_; auVar5 = vhaddps_avx(auVar31,auVar31); *(int *)(lVar11 + lVar1 * 4 + (lVar19 + lVar20) * lVar12 * 4 + lVar24 * 4) = auVar5._0_4_; lVar24 = 1; bVar16 = false; } while (bVar21); lVar19 = lVar19 + 1; } while (lVar19 != 3); lVar18 = lVar18 + 1; } while (lVar18 != lVar17); } return; }
60,321
aimrt::BufferArrayZeroCopyOutputStream::Next(void**, int*)
aimrt_mujoco_sim/_deps/aimrt-src/src/interface/aimrt_module_cpp_interface/../aimrt_module_protobuf_interface/util/protobuf_zero_copy_stream.h
bool Next(void** data, int* size) override { if (cur_buf_used_size_ == cur_block_size_) { aimrt_buffer_t new_buffer = allocator_ptr_->allocate( allocator_ptr_->impl, buffer_array_ptr_, cur_block_size_ <<= 1); if (new_buffer.data == nullptr) [[unlikely]] return false; *data = new_buffer.data; byte_count_ += (*size = cur_buf_used_size_ = cur_block_size_); } else { *data = static_cast<char*>(buffer_array_ptr_->data[buffer_array_ptr_->len - 1].data) + cur_buf_used_size_; byte_count_ += (*size = cur_block_size_ - cur_buf_used_size_); cur_buf_used_size_ = cur_block_size_; } return true; }
O3
c
aimrt::BufferArrayZeroCopyOutputStream::Next(void**, int*): pushq %r15 pushq %r14 pushq %rbx movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx movq 0x18(%rdi), %rax movq 0x20(%rdi), %rdx movq %rax, %rcx subq %rdx, %rcx jne 0x2e930 movq 0x8(%rbx), %rsi movq 0x10(%rbx), %rax movq 0x8(%rax), %rcx movq 0x18(%rax), %rdi addq %rdx, %rdx movq %rdx, 0x18(%rbx) callq *%rcx testq %rax, %rax je 0x2e95d movq %rax, (%r15) movq 0x18(%rbx), %rax movq %rax, 0x20(%rbx) movl %eax, (%r14) cltq addq %rax, 0x28(%rbx) jmp 0x2e955 movq 0x8(%rbx), %rsi movq (%rsi), %rdi movq 0x8(%rsi), %rsi shlq $0x4, %rsi addq -0x10(%rdi,%rsi), %rdx movq %rdx, (%r15) movl %ecx, (%r14) movslq %ecx, %rcx addq %rcx, 0x28(%rbx) movq %rax, 0x20(%rbx) movb $0x1, %al popq %rbx popq %r14 popq %r15 retq xorl %eax, %eax jmp 0x2e957
_ZN5aimrt31BufferArrayZeroCopyOutputStream4NextEPPvPi: push r15 push r14 push rbx mov r14, rdx mov r15, rsi mov rbx, rdi mov rax, [rdi+18h] mov rdx, [rdi+20h] mov rcx, rax sub rcx, rdx jnz short loc_2E930 mov rsi, [rbx+8] mov rax, [rbx+10h] mov rcx, [rax+8] mov rdi, [rax+18h] add rdx, rdx mov [rbx+18h], rdx call rcx test rax, rax jz short loc_2E95D mov [r15], rax mov rax, [rbx+18h] mov [rbx+20h], rax mov [r14], eax cdqe add [rbx+28h], rax jmp short loc_2E955 loc_2E930: mov rsi, [rbx+8] mov rdi, [rsi] mov rsi, [rsi+8] shl rsi, 4 add rdx, [rdi+rsi-10h] mov [r15], rdx mov [r14], ecx movsxd rcx, ecx add [rbx+28h], rcx mov [rbx+20h], rax loc_2E955: mov al, 1 loc_2E957: pop rbx pop r14 pop r15 retn loc_2E95D: xor eax, eax jmp short loc_2E957
char aimrt::BufferArrayZeroCopyOutputStream::Next( aimrt::BufferArrayZeroCopyOutputStream *this, void **a2, int *a3) { long long v6; // rax long long v7; // rdx int v8; // ecx long long v9; // rsi long long v10; // rax long long ( *v11)(long long, long long); // rcx long long v12; // rdi void *v13; // rax long long v14; // rax v6 = *((_QWORD *)this + 3); v7 = *((_QWORD *)this + 4); v8 = v6 - v7; if ( v6 != v7 ) { *a2 = (void *)(*(_QWORD *)(**((_QWORD **)this + 1) + 16LL * *(_QWORD *)(*((_QWORD *)this + 1) + 8LL) - 16) + v7); *a3 = v8; *((_QWORD *)this + 5) += v8; *((_QWORD *)this + 4) = v6; return 1; } v9 = *((_QWORD *)this + 1); v10 = *((_QWORD *)this + 2); v11 = *(long long ( **)(long long, long long))(v10 + 8); v12 = *(_QWORD *)(v10 + 24); *((_QWORD *)this + 3) = 2 * v7; v13 = (void *)v11(v12, v9); if ( v13 ) { *a2 = v13; v14 = *((_QWORD *)this + 3); *((_QWORD *)this + 4) = v14; *a3 = v14; *((_QWORD *)this + 5) += (int)v14; return 1; } return 0; }
Next: PUSH R15 PUSH R14 PUSH RBX MOV R14,RDX MOV R15,RSI MOV RBX,RDI MOV RAX,qword ptr [RDI + 0x18] MOV RDX,qword ptr [RDI + 0x20] MOV RCX,RAX SUB RCX,RDX JNZ 0x0012e930 MOV RSI,qword ptr [RBX + 0x8] MOV RAX,qword ptr [RBX + 0x10] MOV RCX,qword ptr [RAX + 0x8] MOV RDI,qword ptr [RAX + 0x18] ADD RDX,RDX MOV qword ptr [RBX + 0x18],RDX CALL RCX TEST RAX,RAX JZ 0x0012e95d MOV qword ptr [R15],RAX MOV RAX,qword ptr [RBX + 0x18] MOV qword ptr [RBX + 0x20],RAX MOV dword ptr [R14],EAX CDQE ADD qword ptr [RBX + 0x28],RAX JMP 0x0012e955 LAB_0012e930: MOV RSI,qword ptr [RBX + 0x8] MOV RDI,qword ptr [RSI] MOV RSI,qword ptr [RSI + 0x8] SHL RSI,0x4 ADD RDX,qword ptr [RDI + RSI*0x1 + -0x10] MOV qword ptr [R15],RDX MOV dword ptr [R14],ECX MOVSXD RCX,ECX ADD qword ptr [RBX + 0x28],RCX MOV qword ptr [RBX + 0x20],RAX LAB_0012e955: MOV AL,0x1 LAB_0012e957: POP RBX POP R14 POP R15 RET LAB_0012e95d: XOR EAX,EAX JMP 0x0012e957
/* aimrt::BufferArrayZeroCopyOutputStream::Next(void**, int*) */ int8 __thiscall aimrt::BufferArrayZeroCopyOutputStream::Next (BufferArrayZeroCopyOutputStream *this,void **param_1,int *param_2) { long lVar1; code *pcVar2; int8 uVar3; int iVar4; void *pvVar5; long lVar6; lVar6 = *(long *)(this + 0x18); lVar1 = *(long *)(this + 0x20); if (lVar6 - lVar1 == 0) { pcVar2 = *(code **)(*(long *)(this + 0x10) + 8); uVar3 = *(int8 *)(*(long *)(this + 0x10) + 0x18); *(long *)(this + 0x18) = lVar1 * 2; pvVar5 = (void *)(*pcVar2)(uVar3,*(int8 *)(this + 8)); if (pvVar5 == (void *)0x0) { return 0; } *param_1 = pvVar5; *(int8 *)(this + 0x20) = *(int8 *)(this + 0x18); iVar4 = (int)*(int8 *)(this + 0x18); *param_2 = iVar4; lVar6 = (long)iVar4; *(long *)(this + 0x28) = *(long *)(this + 0x28) + lVar6; } else { *param_1 = (void *)(lVar1 + *(long *)(**(long **)(this + 8) + -0x10 + (*(long **)(this + 8))[1] * 0x10)); iVar4 = (int)(lVar6 - lVar1); *param_2 = iVar4; *(long *)(this + 0x28) = *(long *)(this + 0x28) + (long)iVar4; *(long *)(this + 0x20) = lVar6; } return CONCAT71((int7)((ulong)lVar6 >> 8),1); }
60,322
pagecache_delete
eloqsql/storage/maria/ma_pagecache.c
my_bool pagecache_delete(PAGECACHE *pagecache, PAGECACHE_FILE *file, pgcache_page_no_t pageno, enum pagecache_page_lock lock, my_bool flush) { my_bool error= 0; enum pagecache_page_pin pin= lock_to_pin_one_phase[lock]; DBUG_ENTER("pagecache_delete"); DBUG_PRINT("enter", ("fd: %u page: %lu %s %s", (uint) file->file, (ulong) pageno, page_cache_page_lock_str[lock], page_cache_page_pin_str[pin])); DBUG_ASSERT(lock == PAGECACHE_LOCK_WRITE || lock == PAGECACHE_LOCK_LEFT_WRITELOCKED); DBUG_ASSERT(pin == PAGECACHE_PIN || pin == PAGECACHE_PIN_LEFT_PINNED); restart: DBUG_ASSERT(pageno < ((1ULL) << 40)); if (pagecache->can_be_used) { /* Key cache is used */ reg1 PAGECACHE_BLOCK_LINK *block; PAGECACHE_HASH_LINK **unused_start, *page_link; pagecache_pthread_mutex_lock(&pagecache->cache_lock); if (!pagecache->can_be_used) goto end; inc_counter_for_resize_op(pagecache); page_link= get_present_hash_link(pagecache, file, pageno, &unused_start); if (!page_link) { DBUG_PRINT("info", ("There is no such page in the cache")); dec_counter_for_resize_op(pagecache); pagecache_pthread_mutex_unlock(&pagecache->cache_lock); DBUG_RETURN(0); } block= page_link->block; if (block->status & (PCBLOCK_REASSIGNED | PCBLOCK_IN_SWITCH)) { DBUG_PRINT("info", ("Block %p already is %s", block, ((block->status & PCBLOCK_REASSIGNED) ? "reassigned" : "in switch"))); PCBLOCK_INFO(block); page_link->requests--; dec_counter_for_resize_op(pagecache); goto end; } /* See NOTE for pagecache_unlock about registering requests. */ if (pin == PAGECACHE_PIN) reg_requests(pagecache, block, 1); if (make_lock_and_pin(pagecache, block, lock, pin, FALSE)) { /* We failed to writelock the block, cache is unlocked, and last write lock is released, we will try to get the block again. */ if (pin == PAGECACHE_PIN) unreg_request(pagecache, block, 1); dec_counter_for_resize_op(pagecache); pagecache_pthread_mutex_unlock(&pagecache->cache_lock); dec_counter_for_resize_op(pagecache); DBUG_PRINT("info", ("restarting...")); goto restart; } /* we can't delete with opened direct link for write */ DBUG_ASSERT((block->status & PCBLOCK_DIRECT_W) == 0); error= pagecache_delete_internal(pagecache, block, page_link, flush); end: pagecache_pthread_mutex_unlock(&pagecache->cache_lock); } DBUG_RETURN(error); }
O0
c
pagecache_delete: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movb %r8b, %al movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movb %al, -0x25(%rbp) movb $0x0, -0x26(%rbp) movl -0x24(%rbp), %eax movl %eax, %ecx leaq 0x28e423(%rip), %rax # 0x2bd150 movl (%rax,%rcx,4), %eax movl %eax, -0x2c(%rbp) jmp 0x2ed35 jmp 0x2ed37 jmp 0x2ed39 jmp 0x2ed3b jmp 0x2ed3d jmp 0x2ed3f jmp 0x2ed41 jmp 0x2ed43 movq -0x10(%rbp), %rax cmpb $0x0, 0x1aa(%rax) je 0x2eeaf movq -0x10(%rbp), %rdi addq $0xc8, %rdi leaq 0x1226c4(%rip), %rsi # 0x15142a movl $0x107a, %edx # imm = 0x107A callq 0x2c4d0 movq -0x10(%rbp), %rax cmpb $0x0, 0x1aa(%rax) jne 0x2ed82 jmp 0x2ee9f movq -0x10(%rbp), %rdi callq 0x2c880 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rdx leaq -0x40(%rbp), %rcx callq 0x2eec0 movq %rax, -0x48(%rbp) cmpq $0x0, -0x48(%rbp) jne 0x2edd1 jmp 0x2edad jmp 0x2edaf movq -0x10(%rbp), %rdi callq 0x2d5b0 movq -0x10(%rbp), %rdi addq $0xc8, %rdi callq 0x2c540 movb $0x0, -0x1(%rbp) jmp 0x2eeb7 movq -0x48(%rbp), %rax movq 0x10(%rax), %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movzwl 0x74(%rax), %eax andl $0xc, %eax cmpl $0x0, %eax je 0x2ee10 jmp 0x2edef jmp 0x2edf1 jmp 0x2edf3 jmp 0x2edf5 movq -0x48(%rbp), %rax movl 0x68(%rax), %ecx addl $-0x1, %ecx movl %ecx, 0x68(%rax) movq -0x10(%rbp), %rdi callq 0x2d5b0 jmp 0x2ee9f cmpl $0x2, -0x2c(%rbp) jne 0x2ee28 movq -0x10(%rbp), %rdi movq -0x38(%rbp), %rsi movl $0x1, %edx callq 0x2efa0 movq -0x10(%rbp), %rdi movq -0x38(%rbp), %rsi movl -0x24(%rbp), %edx movl -0x2c(%rbp), %ecx xorl %r8d, %r8d callq 0x2d290 cmpb $0x0, %al je 0x2ee83 cmpl $0x2, -0x2c(%rbp) jne 0x2ee5a movq -0x10(%rbp), %rdi movq -0x38(%rbp), %rsi movl $0x1, %edx callq 0x2d430 movq -0x10(%rbp), %rdi callq 0x2d5b0 movq -0x10(%rbp), %rdi addq $0xc8, %rdi callq 0x2c540 movq -0x10(%rbp), %rdi callq 0x2d5b0 jmp 0x2ee7e jmp 0x2ed3f jmp 0x2ee85 jmp 0x2ee87 movq -0x10(%rbp), %rdi movq -0x38(%rbp), %rsi movq -0x48(%rbp), %rdx movsbl -0x25(%rbp), %ecx callq 0x2ea40 movb %al, -0x26(%rbp) movq -0x10(%rbp), %rdi addq $0xc8, %rdi callq 0x2c540 jmp 0x2eeb1 movb -0x26(%rbp), %al movb %al, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x50, %rsp popq %rbp retq
pagecache_delete: push rbp mov rbp, rsp sub rsp, 50h mov al, r8b mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_24], ecx mov [rbp+var_25], al mov [rbp+var_26], 0 mov eax, [rbp+var_24] mov ecx, eax lea rax, lock_to_pin_one_phase mov eax, [rax+rcx*4] mov [rbp+var_2C], eax jmp short $+2 loc_2ED35: jmp short $+2 loc_2ED37: jmp short $+2 loc_2ED39: jmp short $+2 loc_2ED3B: jmp short $+2 loc_2ED3D: jmp short $+2 loc_2ED3F: jmp short $+2 loc_2ED41: jmp short $+2 loc_2ED43: mov rax, [rbp+var_10] cmp byte ptr [rax+1AAh], 0 jz loc_2EEAF mov rdi, [rbp+var_10] add rdi, 0C8h lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 107Ah call inline_mysql_mutex_lock mov rax, [rbp+var_10] cmp byte ptr [rax+1AAh], 0 jnz short loc_2ED82 jmp loc_2EE9F loc_2ED82: mov rdi, [rbp+var_10] call inc_counter_for_resize_op mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] mov rdx, [rbp+var_20] lea rcx, [rbp+var_40] call get_present_hash_link mov [rbp+var_48], rax cmp [rbp+var_48], 0 jnz short loc_2EDD1 jmp short $+2 loc_2EDAD: jmp short $+2 loc_2EDAF: mov rdi, [rbp+var_10] call dec_counter_for_resize_op mov rdi, [rbp+var_10] add rdi, 0C8h call inline_mysql_mutex_unlock mov [rbp+var_1], 0 jmp loc_2EEB7 loc_2EDD1: mov rax, [rbp+var_48] mov rax, [rax+10h] mov [rbp+var_38], rax mov rax, [rbp+var_38] movzx eax, word ptr [rax+74h] and eax, 0Ch cmp eax, 0 jz short loc_2EE10 jmp short $+2 loc_2EDEF: jmp short $+2 loc_2EDF1: jmp short $+2 loc_2EDF3: jmp short $+2 loc_2EDF5: mov rax, [rbp+var_48] mov ecx, [rax+68h] add ecx, 0FFFFFFFFh mov [rax+68h], ecx mov rdi, [rbp+var_10] call dec_counter_for_resize_op jmp loc_2EE9F loc_2EE10: cmp [rbp+var_2C], 2 jnz short loc_2EE28 mov rdi, [rbp+var_10] mov rsi, [rbp+var_38] mov edx, 1 call reg_requests loc_2EE28: mov rdi, [rbp+var_10] mov rsi, [rbp+var_38] mov edx, [rbp+var_24] mov ecx, [rbp+var_2C] xor r8d, r8d call make_lock_and_pin cmp al, 0 jz short loc_2EE83 cmp [rbp+var_2C], 2 jnz short loc_2EE5A mov rdi, [rbp+var_10] mov rsi, [rbp+var_38] mov edx, 1 call unreg_request loc_2EE5A: mov rdi, [rbp+var_10] call dec_counter_for_resize_op mov rdi, [rbp+var_10] add rdi, 0C8h call inline_mysql_mutex_unlock mov rdi, [rbp+var_10] call dec_counter_for_resize_op jmp short $+2 loc_2EE7E: jmp loc_2ED3F loc_2EE83: jmp short $+2 loc_2EE85: jmp short $+2 loc_2EE87: mov rdi, [rbp+var_10] mov rsi, [rbp+var_38] mov rdx, [rbp+var_48] movsx ecx, [rbp+var_25] call pagecache_delete_internal mov [rbp+var_26], al loc_2EE9F: mov rdi, [rbp+var_10] add rdi, 0C8h call inline_mysql_mutex_unlock loc_2EEAF: jmp short $+2 loc_2EEB1: mov al, [rbp+var_26] mov [rbp+var_1], al loc_2EEB7: mov al, [rbp+var_1] add rsp, 50h pop rbp retn
char pagecache_delete(_QWORD *a1, long long a2, long long a3, unsigned int a4, bool a5) { long long present_hash_link; // [rsp+8h] [rbp-48h] _BYTE v7[8]; // [rsp+10h] [rbp-40h] BYREF long long v8; // [rsp+18h] [rbp-38h] int v9; // [rsp+24h] [rbp-2Ch] char v10; // [rsp+2Ah] [rbp-26h] bool v11; // [rsp+2Bh] [rbp-25h] unsigned int v12; // [rsp+2Ch] [rbp-24h] long long v13; // [rsp+30h] [rbp-20h] long long v14; // [rsp+38h] [rbp-18h] _QWORD *v15; // [rsp+40h] [rbp-10h] v15 = a1; v14 = a2; v13 = a3; v12 = a4; v11 = a5; v10 = 0; v9 = lock_to_pin_one_phase[a4]; while ( *((_BYTE *)v15 + 426) ) { inline_mysql_mutex_lock( (long long)(v15 + 25), (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0x107Au); if ( !*((_BYTE *)v15 + 426) ) goto LABEL_15; inc_counter_for_resize_op((long long)v15); present_hash_link = get_present_hash_link(v15, v14, v13, v7); if ( !present_hash_link ) { dec_counter_for_resize_op((long long)v15); inline_mysql_mutex_unlock((long long)(v15 + 25)); return 0; } v8 = *(_QWORD *)(present_hash_link + 16); if ( (*(_WORD *)(v8 + 116) & 0xC) != 0 ) { --*(_DWORD *)(present_hash_link + 104); dec_counter_for_resize_op((long long)v15); LABEL_15: inline_mysql_mutex_unlock((long long)(v15 + 25)); return v10; } if ( v9 == 2 ) reg_requests(v15, v8, 1LL); if ( !make_lock_and_pin((long long)v15, v8, v12, v9, 0) ) { v10 = pagecache_delete_internal(v15, v8, present_hash_link, v11); goto LABEL_15; } if ( v9 == 2 ) unreg_request(v15, v8, 1); dec_counter_for_resize_op((long long)v15); inline_mysql_mutex_unlock((long long)(v15 + 25)); dec_counter_for_resize_op((long long)v15); } return v10; }
pagecache_delete: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV AL,R8B MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV dword ptr [RBP + -0x24],ECX MOV byte ptr [RBP + -0x25],AL MOV byte ptr [RBP + -0x26],0x0 MOV EAX,dword ptr [RBP + -0x24] MOV ECX,EAX LEA RAX,[0x3bd150] MOV EAX,dword ptr [RAX + RCX*0x4] MOV dword ptr [RBP + -0x2c],EAX JMP 0x0012ed35 LAB_0012ed35: JMP 0x0012ed37 LAB_0012ed37: JMP 0x0012ed39 LAB_0012ed39: JMP 0x0012ed3b LAB_0012ed3b: JMP 0x0012ed3d LAB_0012ed3d: JMP 0x0012ed3f LAB_0012ed3f: JMP 0x0012ed41 LAB_0012ed41: JMP 0x0012ed43 LAB_0012ed43: MOV RAX,qword ptr [RBP + -0x10] CMP byte ptr [RAX + 0x1aa],0x0 JZ 0x0012eeaf MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0xc8 LEA RSI,[0x25142a] MOV EDX,0x107a CALL 0x0012c4d0 MOV RAX,qword ptr [RBP + -0x10] CMP byte ptr [RAX + 0x1aa],0x0 JNZ 0x0012ed82 JMP 0x0012ee9f LAB_0012ed82: MOV RDI,qword ptr [RBP + -0x10] CALL 0x0012c880 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x20] LEA RCX,[RBP + -0x40] CALL 0x0012eec0 MOV qword ptr [RBP + -0x48],RAX CMP qword ptr [RBP + -0x48],0x0 JNZ 0x0012edd1 JMP 0x0012edad LAB_0012edad: JMP 0x0012edaf LAB_0012edaf: MOV RDI,qword ptr [RBP + -0x10] CALL 0x0012d5b0 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0xc8 CALL 0x0012c540 MOV byte ptr [RBP + -0x1],0x0 JMP 0x0012eeb7 LAB_0012edd1: MOV RAX,qword ptr [RBP + -0x48] MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] MOVZX EAX,word ptr [RAX + 0x74] AND EAX,0xc CMP EAX,0x0 JZ 0x0012ee10 JMP 0x0012edef LAB_0012edef: JMP 0x0012edf1 LAB_0012edf1: JMP 0x0012edf3 LAB_0012edf3: JMP 0x0012edf5 LAB_0012edf5: MOV RAX,qword ptr [RBP + -0x48] MOV ECX,dword ptr [RAX + 0x68] ADD ECX,-0x1 MOV dword ptr [RAX + 0x68],ECX MOV RDI,qword ptr [RBP + -0x10] CALL 0x0012d5b0 JMP 0x0012ee9f LAB_0012ee10: CMP dword ptr [RBP + -0x2c],0x2 JNZ 0x0012ee28 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x38] MOV EDX,0x1 CALL 0x0012efa0 LAB_0012ee28: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x38] MOV EDX,dword ptr [RBP + -0x24] MOV ECX,dword ptr [RBP + -0x2c] XOR R8D,R8D CALL 0x0012d290 CMP AL,0x0 JZ 0x0012ee83 CMP dword ptr [RBP + -0x2c],0x2 JNZ 0x0012ee5a MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x38] MOV EDX,0x1 CALL 0x0012d430 LAB_0012ee5a: MOV RDI,qword ptr [RBP + -0x10] CALL 0x0012d5b0 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0xc8 CALL 0x0012c540 MOV RDI,qword ptr [RBP + -0x10] CALL 0x0012d5b0 JMP 0x0012ee7e LAB_0012ee7e: JMP 0x0012ed3f LAB_0012ee83: JMP 0x0012ee85 LAB_0012ee85: JMP 0x0012ee87 LAB_0012ee87: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x38] MOV RDX,qword ptr [RBP + -0x48] MOVSX ECX,byte ptr [RBP + -0x25] CALL 0x0012ea40 MOV byte ptr [RBP + -0x26],AL LAB_0012ee9f: MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0xc8 CALL 0x0012c540 LAB_0012eeaf: JMP 0x0012eeb1 LAB_0012eeb1: MOV AL,byte ptr [RBP + -0x26] MOV byte ptr [RBP + -0x1],AL LAB_0012eeb7: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x50 POP RBP RET
int8 pagecache_delete(long param_1,int8 param_2,int8 param_3,uint param_4,char param_5) { char cVar1; long lVar2; int7 extraout_var; int7 uVar3; int1 local_48 [8]; long local_40; int local_34; int1 local_2e; char local_2d; uint local_2c; int8 local_28; int8 local_20; long local_18; int1 local_9; local_2e = 0; local_34 = *(int *)(lock_to_pin_one_phase + (ulong)param_4 * 4); local_2d = param_5; local_2c = param_4; local_28 = param_3; local_20 = param_2; local_18 = param_1; do { if (*(char *)(local_18 + 0x1aa) == '\0') { LAB_0012eeaf: uVar3 = (int7)((ulong)local_18 >> 8); local_9 = local_2e; LAB_0012eeb7: return CONCAT71(uVar3,local_9); } inline_mysql_mutex_lock (local_18 + 200, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",0x107a); if (*(char *)(local_18 + 0x1aa) == '\0') goto LAB_0012ee9f; inc_counter_for_resize_op(local_18); lVar2 = get_present_hash_link(local_18,local_20,local_28,local_48); if (lVar2 == 0) { dec_counter_for_resize_op(local_18); inline_mysql_mutex_unlock(local_18 + 200); local_9 = 0; uVar3 = extraout_var; goto LAB_0012eeb7; } local_40 = *(long *)(lVar2 + 0x10); if ((*(ushort *)(local_40 + 0x74) & 0xc) != 0) { *(int *)(lVar2 + 0x68) = *(int *)(lVar2 + 0x68) + -1; dec_counter_for_resize_op(local_18); LAB_0012ee9f: local_18 = inline_mysql_mutex_unlock(local_18 + 200); goto LAB_0012eeaf; } if (local_34 == 2) { reg_requests(local_18,local_40,1); } cVar1 = make_lock_and_pin(local_18,local_40,local_2c,local_34,0); if (cVar1 == '\0') { local_2e = pagecache_delete_internal(local_18,local_40,lVar2,(int)local_2d); goto LAB_0012ee9f; } if (local_34 == 2) { unreg_request(local_18,local_40,1); } dec_counter_for_resize_op(local_18); inline_mysql_mutex_unlock(local_18 + 200); dec_counter_for_resize_op(local_18); } while( true ); }
60,323
history_state_free
eloqsql/storage/maria/ma_init.c
void history_state_free(MARIA_STATE_HISTORY_CLOSED *closed_history) { MARIA_STATE_HISTORY *history, *next; /* Free all active history In case of maria_open() this list should be empty as the history is moved to handler->share. */ for (history= closed_history->state_history; history ; history= next) { next= history->next; my_free(history); } my_free(closed_history); }
O3
c
history_state_free: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rdi, %rbx movq 0x8(%rdi), %rdi testq %rdi, %rdi je 0x330eb movq (%rdi), %r14 callq 0xa72ae movq %r14, %rdi testq %r14, %r14 jne 0x330db movq %rbx, %rdi popq %rbx popq %r14 popq %rbp jmp 0xa72ae
history_state_free: push rbp mov rbp, rsp push r14 push rbx mov rbx, rdi mov rdi, [rdi+8] test rdi, rdi jz short loc_330EB loc_330DB: mov r14, [rdi] call my_free mov rdi, r14 test r14, r14 jnz short loc_330DB loc_330EB: mov rdi, rbx pop rbx pop r14 pop rbp jmp my_free
long long history_state_free(long long a1) { _QWORD *v2; // rdi _QWORD *v3; // r14 v2 = *(_QWORD **)(a1 + 8); if ( v2 ) { do { v3 = (_QWORD *)*v2; my_free(v2); v2 = v3; } while ( v3 ); } return my_free(a1); }
history_state_free: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV RBX,RDI MOV RDI,qword ptr [RDI + 0x8] TEST RDI,RDI JZ 0x001330eb LAB_001330db: MOV R14,qword ptr [RDI] CALL 0x001a72ae MOV RDI,R14 TEST R14,R14 JNZ 0x001330db LAB_001330eb: MOV RDI,RBX POP RBX POP R14 POP RBP JMP 0x001a72ae
void history_state_free(long param_1) { int8 *puVar1; puVar1 = *(int8 **)(param_1 + 8); while (puVar1 != (int8 *)0x0) { puVar1 = (int8 *)*puVar1; my_free(); } my_free(param_1); return; }
60,324
minja::Parser::parseMathPlusMinus()
llama.cpp/common/minja/minja.hpp
std::shared_ptr<Expression> parseMathPlusMinus() { static std::regex plus_minus_tok(R"(\+|-(?![}%#]\}))"); auto left = parseMathMulDiv(); if (!left) throw std::runtime_error("Expected left side of 'math plus/minus' expression"); std::string op_str; while (!(op_str = consumeToken(plus_minus_tok)).empty()) { auto right = parseMathMulDiv(); if (!right) throw std::runtime_error("Expected right side of 'math plus/minus' expression"); auto op = op_str == "+" ? BinaryOpExpr::Op::Add : BinaryOpExpr::Op::Sub; left = std::make_shared<BinaryOpExpr>(get_location(), std::move(left), std::move(right), op); } return left; }
O3
cpp
minja::Parser::parseMathPlusMinus(): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x88, %rsp movq %rsi, %r14 movq %rdi, %rbp leaq 0x85414(%rip), %rax # 0x166530 movb (%rax), %al testb %al, %al movq %rdi, (%rsp) je 0xe1324 movq %rbp, %rdi movq %r14, %rsi callq 0xe1436 cmpq $0x0, (%rbp) je 0xe137f leaq 0x48(%rsp), %rax movq %rax, -0x10(%rax) movq $0x0, -0x8(%rax) movb $0x0, (%rax) leaq 0x18(%rsp), %r12 leaq 0x38(%rsp), %r13 leaq 0x82d9b(%rip), %rax # 0x163f00 addq $0x10, %rax movq %rax, 0x58(%rsp) movq %r12, %rdi movq %r14, %rsi leaq 0x85395(%rip), %rdx # 0x166510 movl $0x1, %ecx callq 0xde356 movq %r13, %rdi movq %r12, %rsi callq 0x218c0 movq 0x8(%rax), %r15 movq 0x18(%rsp), %rdi leaq 0x28(%rsp), %rax cmpq %rax, %rdi je 0xe11b0 movq 0x28(%rsp), %rsi incq %rsi callq 0x21170 testq %r15, %r15 je 0xe12bc leaq 0x8(%rsp), %rdi movq %r14, %rsi callq 0xe1436 cmpq $0x0, 0x8(%rsp) je 0xe12ed movq %r13, %rdi leaq 0x40bb1(%rip), %rsi # 0x121d8d callq 0x21f50 cmpl $0x1, %eax movl $0x2, %r15d sbbl $0x0, %r15d movq (%r14), %rax movq %rax, 0x18(%rsp) movq 0x8(%r14), %rax movq %rax, 0x20(%rsp) testq %rax, %rax je 0xe1219 movq 0x83d8d(%rip), %rcx # 0x164f98 cmpb $0x0, (%rcx) je 0xe1215 incl 0x8(%rax) jmp 0xe1219 lock incl 0x8(%rax) movq 0x20(%r14), %rax movq %r14, %rbx subq 0x10(%r14), %rax movq %rax, 0x28(%rsp) movl $0x58, %edi callq 0x21200 movq %rax, %r13 movabsq $0x100000001, %rax # imm = 0x100000001 movq %rax, 0x8(%r13) movq 0x58(%rsp), %rax movq %rax, (%r13) movq %r13, %r14 addq $0x10, %r14 movq %r14, %rdi movq %r12, %rsi movq (%rsp), %rbp movq %rbp, %rdx leaq 0x8(%rsp), %rcx movl %r15d, %r8d callq 0xeba6e xorps %xmm0, %xmm0 movaps %xmm0, 0x60(%rsp) movups (%rbp), %xmm0 movq %r14, (%rbp) movq %r13, 0x8(%rbp) movaps %xmm0, 0x70(%rsp) leaq 0x78(%rsp), %rdi callq 0x6fdfa leaq 0x68(%rsp), %rdi callq 0x6fdfa leaq 0x20(%rsp), %rdi callq 0x6fdfa leaq 0x10(%rsp), %rdi callq 0x6fdfa leaq 0x38(%rsp), %r13 movq %rbx, %r14 jmp 0xe116e movq 0x38(%rsp), %rdi leaq 0x48(%rsp), %rax cmpq %rax, %rdi je 0xe12d8 movq 0x48(%rsp), %rsi incq %rsi callq 0x21170 movq %rbp, %rax addq $0x88, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0x10, %edi callq 0x21630 movq %rax, %r15 leaq 0x41da2(%rip), %rsi # 0x1230a3 movq %rax, %rdi callq 0x21400 movq 0x83cb0(%rip), %rsi # 0x164fc0 movq 0x83c61(%rip), %rdx # 0x164f78 movq %r15, %rdi callq 0x21a50 jmp 0xe13b1 leaq 0x85205(%rip), %rdi # 0x166530 callq 0x21580 testl %eax, %eax je 0xe112a leaq 0x851d1(%rip), %rdi # 0x166510 leaq 0x41d1a(%rip), %rsi # 0x123060 movl $0x10, %edx callq 0x65714 leaq -0x7bb97(%rip), %rdi # 0x657c0 leaq 0x851b2(%rip), %rsi # 0x166510 leaq 0x846e3(%rip), %rdx # 0x165a48 callq 0x21ed0 leaq 0x851bf(%rip), %rdi # 0x166530 callq 0x21960 movq (%rsp), %rbp jmp 0xe112a movl $0x10, %edi callq 0x21630 movq %rax, %r15 leaq 0x41cdd(%rip), %rsi # 0x123070 movq %rax, %rdi callq 0x21400 movq 0x83c1e(%rip), %rsi # 0x164fc0 movq 0x83bcf(%rip), %rdx # 0x164f78 movq %r15, %rdi callq 0x21a50 movq %rax, %r14 leaq 0x85175(%rip), %rdi # 0x166530 callq 0x216b0 jmp 0xe142d movq %rax, %r14 jmp 0xe1420 movq %rax, %r14 movq %r15, %rdi callq 0x21ef0 jmp 0xe1420 movq %rax, %r14 jmp 0xe13f5 movq %rax, %r14 movq %r15, %rdi callq 0x21ef0 jmp 0xe13f5 jmp 0xe1401 movq %rax, %r14 leaq 0x20(%rsp), %rdi callq 0x6fdfa leaq 0x10(%rsp), %rdi callq 0x6fdfa jmp 0xe1404 movq %rax, %r14 movq 0x38(%rsp), %rdi leaq 0x48(%rsp), %rax cmpq %rax, %rdi je 0xe1420 movq 0x48(%rsp), %rsi incq %rsi callq 0x21170 movq (%rsp), %rdi addq $0x8, %rdi callq 0x6fdfa movq %r14, %rdi callq 0x21af0 nop
_ZN5minja6Parser18parseMathPlusMinusEv: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 88h mov r14, rsi mov rbp, rdi lea rax, _ZGVZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; `guard variable for'minja::Parser::parseMathPlusMinus(void)::plus_minus_tok mov al, [rax] test al, al mov qword ptr [rsp+0B8h+var_B8], rdi; int jz loc_E1324 loc_E112A: mov rdi, rbp; this mov rsi, r14 call _ZN5minja6Parser15parseMathMulDivEv; minja::Parser::parseMathMulDiv(void) cmp qword ptr [rbp+0], 0 jz loc_E137F lea rax, [rsp+0B8h+var_70] mov [rax-10h], rax mov qword ptr [rax-8], 0 mov byte ptr [rax], 0 lea r12, [rsp+0B8h+var_A0] lea r13, [rsp+0B8h+var_80] lea rax, _ZTVSt23_Sp_counted_ptr_inplaceIN5minja12BinaryOpExprESaIvELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<minja::BinaryOpExpr,std::allocator<void>,(__gnu_cxx::_Lock_policy)2> add rax, 10h mov [rsp+0B8h+var_60], rax loc_E116E: mov rdi, r12; int mov rsi, r14; int lea rdx, _ZZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; int mov ecx, 1; int call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling) mov rdi, r13 mov rsi, r12 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&) mov r15, [rax+8] mov rdi, [rsp+0B8h+var_A0]; void * lea rax, [rsp+0B8h+var_90] cmp rdi, rax jz short loc_E11B0 mov rsi, [rsp+0B8h+var_90] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_E11B0: test r15, r15 jz loc_E12BC lea rdi, [rsp+0B8h+var_B0]; this mov rsi, r14 call _ZN5minja6Parser15parseMathMulDivEv; minja::Parser::parseMathMulDiv(void) cmp [rsp+0B8h+var_B0], 0 jz loc_E12ED mov rdi, r13 lea rsi, asc_121D8C+1; "+" call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) cmp eax, 1 mov r15d, 2 sbb r15d, 0 mov rax, [r14] mov [rsp+0B8h+var_A0], rax mov rax, [r14+8] mov [rsp+0B8h+var_98], rax test rax, rax jz short loc_E1219 mov rcx, cs:_ZTISt19_Sp_make_shared_tag; `typeinfo for'std::_Sp_make_shared_tag cmp byte ptr [rcx], 0 jz short loc_E1215 inc dword ptr [rax+8] jmp short loc_E1219 loc_E1215: lock inc dword ptr [rax+8] loc_E1219: mov rax, [r14+20h] mov rbx, r14 sub rax, [r14+10h] mov [rsp+0B8h+var_90], rax mov edi, 58h ; 'X'; unsigned __int64 call __Znwm; operator new(ulong) mov r13, rax mov rax, 100000001h mov [r13+8], rax mov rax, [rsp+0B8h+var_60] mov [r13+0], rax mov r14, r13 add r14, 10h mov rdi, r14 mov rsi, r12 mov rbp, qword ptr [rsp+0B8h+var_B8] mov rdx, rbp lea rcx, [rsp+0B8h+var_B0] mov r8d, r15d call _ZN5minja12BinaryOpExprC2ERKNS_8LocationEOSt10shared_ptrINS_10ExpressionEES7_NS0_2OpE; minja::BinaryOpExpr::BinaryOpExpr(minja::Location const&,std::shared_ptr<minja::Expression> &&,std::shared_ptr<minja::Expression> &,minja::BinaryOpExpr::Op) xorps xmm0, xmm0 movaps [rsp+0B8h+var_58], xmm0 movups xmm0, xmmword ptr [rbp+0] mov [rbp+0], r14 mov [rbp+8], r13 movaps [rsp+0B8h+var_48], xmm0 lea rdi, [rsp+0B8h+var_48+8] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() lea rdi, [rsp+0B8h+var_58+8] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() lea rdi, [rsp+0B8h+var_98] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() lea rdi, [rsp+0B8h+var_A8] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() lea r13, [rsp+0B8h+var_80] mov r14, rbx jmp loc_E116E loc_E12BC: mov rdi, [rsp+0B8h+var_80]; void * lea rax, [rsp+0B8h+var_70] cmp rdi, rax jz short loc_E12D8 mov rsi, [rsp+0B8h+var_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_E12D8: mov rax, rbp add rsp, 88h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_E12ED: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r15, rax lea rsi, aExpectedRightS_4; "Expected right side of 'math plus/minus"... mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, r15; void * call ___cxa_throw jmp loc_E13B1 loc_E1324: lea rdi, _ZGVZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; __guard * call ___cxa_guard_acquire test eax, eax jz loc_E112A lea rdi, _ZZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; minja::Parser::parseMathPlusMinus(void)::plus_minus_tok lea rsi, asc_123060; "\\+|-(?![}%#]\\})" 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, _ZZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; obj lea rdx, __dso_handle; lpdso_handle call ___cxa_atexit lea rdi, _ZGVZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; __guard * call ___cxa_guard_release mov rbp, qword ptr [rsp+0B8h+var_B8] jmp loc_E112A loc_E137F: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r15, rax lea rsi, aExpectedLeftSi_4; "Expected left side of 'math plus/minus'"... mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, r15; void * call ___cxa_throw loc_E13B1: mov r14, rax lea rdi, _ZGVZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; __guard * call ___cxa_guard_abort jmp short loc_E142D mov r14, rax jmp short loc_E1420 mov r14, rax mov rdi, r15; void * call ___cxa_free_exception jmp short loc_E1420 mov r14, rax jmp short loc_E13F5 mov r14, rax mov rdi, r15; void * call ___cxa_free_exception jmp short loc_E13F5 jmp short loc_E1401 mov r14, rax lea rdi, [rsp+0B8h+var_98] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() loc_E13F5: lea rdi, [rsp+0B8h+var_A8] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() jmp short loc_E1404 loc_E1401: mov r14, rax loc_E1404: mov rdi, [rsp+0B8h+var_80]; void * lea rax, [rsp+0B8h+var_70] cmp rdi, rax jz short loc_E1420 mov rsi, [rsp+0B8h+var_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_E1420: mov rdi, qword ptr [rsp+0B8h+var_B8] add rdi, 8 call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() loc_E142D: mov rdi, r14 call __Unwind_Resume
minja::Parser * minja::Parser::parseMathPlusMinus(minja::Parser *this, long long a2) { minja::Parser *v2; // rbp long long v3; // r15 unsigned int v4; // r15d volatile signed __int32 *v5; // rax long long **v6; // r13 __int128 v7; // xmm0 std::runtime_error *v9; // r15 std::runtime_error *exception; // r15 long long v11; // [rsp+8h] [rbp-B0h] BYREF volatile signed __int32 *v12; // [rsp+10h] [rbp-A8h] BYREF void *v13; // [rsp+18h] [rbp-A0h] BYREF volatile signed __int32 *v14; // [rsp+20h] [rbp-98h] BYREF long long v15; // [rsp+28h] [rbp-90h] BYREF void *v16[2]; // [rsp+38h] [rbp-80h] BYREF _QWORD v17[2]; // [rsp+48h] [rbp-70h] BYREF long long *v18; // [rsp+58h] [rbp-60h] __int128 v19; // [rsp+60h] [rbp-58h] BYREF __int128 v20; // [rsp+70h] [rbp-48h] BYREF v2 = this; if ( !(_BYTE)`guard variable for'minja::Parser::parseMathPlusMinus(void)::plus_minus_tok[abi:cxx11] && __cxa_guard_acquire(&`guard variable for'minja::Parser::parseMathPlusMinus(void)::plus_minus_tok[abi:cxx11]) ) { std::basic_regex<char,std::regex_traits<char>>::basic_regex( (long long)&minja::Parser::parseMathPlusMinus(void)::plus_minus_tok[abi:cxx11], (long long)"\\+|-(?![}%#]\\})", 0x10u); __cxa_atexit( (void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex, &minja::Parser::parseMathPlusMinus(void)::plus_minus_tok[abi:cxx11], &_dso_handle); __cxa_guard_release(&`guard variable for'minja::Parser::parseMathPlusMinus(void)::plus_minus_tok[abi:cxx11]); v2 = this; } minja::Parser::parseMathMulDiv(v2); if ( !*(_QWORD *)v2 ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "Expected left side of 'math plus/minus' expression"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } v16[0] = v17; v16[1] = 0LL; LOBYTE(v17[0]) = 0; v18 = &`vtable for'std::_Sp_counted_ptr_inplace<minja::BinaryOpExpr,std::allocator<void>,(__gnu_cxx::_Lock_policy)2> + 2; while ( 1 ) { minja::Parser::consumeToken( &v13, a2, (long long)&minja::Parser::parseMathPlusMinus(void)::plus_minus_tok[abi:cxx11], 1u); v3 = *(_QWORD *)(std::string::operator=(v16, &v13) + 8); if ( v13 != &v15 ) operator delete(v13, v15 + 1); if ( !v3 ) break; minja::Parser::parseMathMulDiv((minja::Parser *)&v11); if ( !v11 ) { v9 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(v9, "Expected right side of 'math plus/minus' expression"); __cxa_throw( v9, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } v4 = (((unsigned int)std::string::compare(v16, "+") | 0x200000000uLL) - 1) >> 32; v13 = *(void **)a2; v5 = *(volatile signed __int32 **)(a2 + 8); v14 = v5; if ( v5 ) { if ( _libc_single_threaded ) ++*((_DWORD *)v5 + 2); else _InterlockedIncrement(v5 + 2); } v15 = *(_QWORD *)(a2 + 32) - *(_QWORD *)(a2 + 16); v6 = (long long **)operator new(0x58uLL); v6[1] = (long long *)0x100000001LL; *v6 = v18; v2 = this; minja::BinaryOpExpr::BinaryOpExpr(v6 + 2, &v13, this, &v11, v4); v19 = 0LL; v7 = *(_OWORD *)this; *(_QWORD *)this = v6 + 2; *((_QWORD *)this + 1) = v6; v20 = v7; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((volatile signed __int32 **)&v20 + 1); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((volatile signed __int32 **)&v19 + 1); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v14); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v12); } if ( v16[0] != v17 ) operator delete(v16[0], v17[0] + 1LL); return v2; }
parseMathPlusMinus: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x88 MOV R14,RSI MOV RBP,RDI LEA RAX,[0x266530] MOV AL,byte ptr [RAX] TEST AL,AL MOV qword ptr [RSP],RDI JZ 0x001e1324 LAB_001e112a: MOV RDI,RBP MOV RSI,R14 CALL 0x001e1436 CMP qword ptr [RBP],0x0 JZ 0x001e137f LEA RAX,[RSP + 0x48] MOV qword ptr [RAX + -0x10],RAX MOV qword ptr [RAX + -0x8],0x0 MOV byte ptr [RAX],0x0 LEA R12,[RSP + 0x18] LEA R13,[RSP + 0x38] LEA RAX,[0x263f00] ADD RAX,0x10 MOV qword ptr [RSP + 0x58],RAX LAB_001e116e: MOV RDI,R12 MOV RSI,R14 LEA RDX,[0x266510] MOV ECX,0x1 CALL 0x001de356 MOV RDI,R13 MOV RSI,R12 CALL 0x001218c0 MOV R15,qword ptr [RAX + 0x8] MOV RDI,qword ptr [RSP + 0x18] LEA RAX,[RSP + 0x28] CMP RDI,RAX JZ 0x001e11b0 MOV RSI,qword ptr [RSP + 0x28] INC RSI CALL 0x00121170 LAB_001e11b0: TEST R15,R15 JZ 0x001e12bc LAB_001e11b9: LEA RDI,[RSP + 0x8] MOV RSI,R14 CALL 0x001e1436 CMP qword ptr [RSP + 0x8],0x0 JZ 0x001e12ed MOV RDI,R13 LEA RSI,[0x221d8d] CALL 0x00121f50 CMP EAX,0x1 MOV R15D,0x2 SBB R15D,0x0 MOV RAX,qword ptr [R14] MOV qword ptr [RSP + 0x18],RAX MOV RAX,qword ptr [R14 + 0x8] MOV qword ptr [RSP + 0x20],RAX TEST RAX,RAX JZ 0x001e1219 MOV RCX,qword ptr [0x00264f98] CMP byte ptr [RCX],0x0 JZ 0x001e1215 INC dword ptr [RAX + 0x8] JMP 0x001e1219 LAB_001e1215: INC.LOCK dword ptr [RAX + 0x8] LAB_001e1219: MOV RAX,qword ptr [R14 + 0x20] MOV RBX,R14 SUB RAX,qword ptr [R14 + 0x10] MOV qword ptr [RSP + 0x28],RAX LAB_001e1229: MOV EDI,0x58 CALL 0x00121200 LAB_001e1233: MOV R13,RAX MOV RAX,0x100000001 MOV qword ptr [R13 + 0x8],RAX MOV RAX,qword ptr [RSP + 0x58] MOV qword ptr [R13],RAX MOV R14,R13 ADD R14,0x10 MOV RDI,R14 MOV RSI,R12 MOV RBP,qword ptr [RSP] MOV RDX,RBP LEA RCX,[RSP + 0x8] MOV R8D,R15D CALL 0x001eba6e XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP + 0x60],XMM0 MOVUPS XMM0,xmmword ptr [RBP] MOV qword ptr [RBP],R14 MOV qword ptr [RBP + 0x8],R13 MOVAPS xmmword ptr [RSP + 0x70],XMM0 LEA RDI,[RSP + 0x78] CALL 0x0016fdfa LEA RDI,[RSP + 0x68] CALL 0x0016fdfa LEA RDI,[RSP + 0x20] CALL 0x0016fdfa LEA RDI,[RSP + 0x10] CALL 0x0016fdfa LEA R13,[RSP + 0x38] MOV R14,RBX JMP 0x001e116e LAB_001e12bc: MOV RDI,qword ptr [RSP + 0x38] LEA RAX,[RSP + 0x48] CMP RDI,RAX JZ 0x001e12d8 MOV RSI,qword ptr [RSP + 0x48] INC RSI CALL 0x00121170 LAB_001e12d8: MOV RAX,RBP ADD RSP,0x88 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001e12ed: MOV EDI,0x10 CALL 0x00121630 MOV R15,RAX LAB_001e12fa: LEA RSI,[0x2230a3] MOV RDI,RAX CALL 0x00121400 LAB_001e1309: MOV RSI,qword ptr [0x00264fc0] MOV RDX,qword ptr [0x00264f78] MOV RDI,R15 CALL 0x00121a50 LAB_001e1324: LEA RDI,[0x266530] CALL 0x00121580 TEST EAX,EAX JZ 0x001e112a LAB_001e1338: LEA RDI,[0x266510] LEA RSI,[0x223060] MOV EDX,0x10 CALL 0x00165714 LAB_001e1350: LEA RDI,[0x1657c0] LEA RSI,[0x266510] LEA RDX,[0x265a48] CALL 0x00121ed0 LEA RDI,[0x266530] CALL 0x00121960 MOV RBP,qword ptr [RSP] JMP 0x001e112a LAB_001e137f: MOV EDI,0x10 CALL 0x00121630 MOV R15,RAX LAB_001e138c: LEA RSI,[0x223070] MOV RDI,RAX CALL 0x00121400 LAB_001e139b: MOV RSI,qword ptr [0x00264fc0] MOV RDX,qword ptr [0x00264f78] MOV RDI,R15 CALL 0x00121a50
/* minja::Parser::parseMathPlusMinus() */ long * minja::Parser::parseMathPlusMinus(void) { int iVar1; long lVar2; int8 *puVar3; runtime_error *prVar4; int8 *in_RSI; long *in_RDI; long local_b0; __shared_count<(__gnu_cxx::_Lock_policy)2> local_a8 [8]; long *local_a0; long local_98; long local_90 [2]; int1 *local_80; int8 local_78; int1 local_70; int7 uStack_6f; int **local_60; int8 local_58; int8 uStack_50; long local_48; long alStack_40 [2]; if (parseMathPlusMinus()::plus_minus_tok_abi_cxx11_ == '\0') { iVar1 = __cxa_guard_acquire(&parseMathPlusMinus()::plus_minus_tok_abi_cxx11_); if (iVar1 != 0) { /* try { // try from 001e1338 to 001e134f has its CatchHandler @ 001e13b1 */ std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex ((basic_regex<char,std::__cxx11::regex_traits<char>> *) parseMathPlusMinus()::plus_minus_tok_abi_cxx11_,"\\+|-(?![}%#]\\})",0x10); __cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex, parseMathPlusMinus()::plus_minus_tok_abi_cxx11_,&__dso_handle); __cxa_guard_release(&parseMathPlusMinus()::plus_minus_tok_abi_cxx11_); } } parseMathMulDiv(); if (*in_RDI != 0) { local_80 = &local_70; local_78 = 0; local_70 = 0; local_60 = &PTR___Sp_counted_base_00263f10; while( true ) { /* try { // try from 001e116e to 001e1184 has its CatchHandler @ 001e1401 */ consumeToken((string *)&local_a0,in_RSI,parseMathPlusMinus()::plus_minus_tok_abi_cxx11_,1); lVar2 = std::__cxx11::string::operator=((string *)&local_80,(string *)&local_a0); lVar2 = *(long *)(lVar2 + 8); if (local_a0 != local_90) { operator_delete(local_a0,local_90[0] + 1); } if (lVar2 == 0) break; /* try { // try from 001e11b9 to 001e11c5 has its CatchHandler @ 001e13e6 */ parseMathMulDiv(); if (local_b0 == 0) { prVar4 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001e12fa to 001e1308 has its CatchHandler @ 001e13d9 */ std::runtime_error::runtime_error (prVar4,"Expected right side of \'math plus/minus\' expression"); /* try { // try from 001e1309 to 001e131e has its CatchHandler @ 001e13d4 */ /* WARNING: Subroutine does not return */ __cxa_throw(prVar4,PTR_typeinfo_00264fc0,PTR__runtime_error_00264f78); } iVar1 = std::__cxx11::string::compare((char *)&local_80); local_a0 = (long *)*in_RSI; local_98 = in_RSI[1]; if (local_98 != 0) { if (*PTR___libc_single_threaded_00264f98 == '\0') { LOCK(); *(int *)(local_98 + 8) = *(int *)(local_98 + 8) + 1; UNLOCK(); } else { *(int *)(local_98 + 8) = *(int *)(local_98 + 8) + 1; } } local_90[0] = in_RSI[4] - in_RSI[2]; /* try { // try from 001e1229 to 001e1232 has its CatchHandler @ 001e13e8 */ puVar3 = (int8 *)operator_new(0x58); puVar3[1] = 0x100000001; *puVar3 = local_60; BinaryOpExpr::BinaryOpExpr ((BinaryOpExpr *)(puVar3 + 2),(string *)&local_a0,in_RDI,&local_b0, 2 - (uint)(iVar1 == 0)); local_58 = 0; uStack_50 = 0; local_48 = *in_RDI; alStack_40[0] = in_RDI[1]; *in_RDI = (long)(puVar3 + 2); in_RDI[1] = (long)puVar3; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)alStack_40); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&uStack_50); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&local_98); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_a8); } if (local_80 != &local_70) { operator_delete(local_80,CONCAT71(uStack_6f,local_70) + 1); } return in_RDI; } prVar4 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001e138c to 001e139a has its CatchHandler @ 001e13c7 */ std::runtime_error::runtime_error(prVar4,"Expected left side of \'math plus/minus\' expression"); /* try { // try from 001e139b to 001e13b0 has its CatchHandler @ 001e13c2 */ /* WARNING: Subroutine does not return */ __cxa_throw(prVar4,PTR_typeinfo_00264fc0,PTR__runtime_error_00264f78); }
60,325
lunasvg::Canvas::setColor(lunasvg::Color const&)
dmazzella[P]pylunasvg/lunasvg/source/graphics.h
constexpr uint8_t alpha() const { return (m_value >> 24) & 0xff; }
O3
c
lunasvg::Canvas::setColor(lunasvg::Color const&): movl (%rsi), %eax movl %eax, %ecx shrl $0x10, %ecx movl $0xff, %edx andl %edx, %ecx cvtsi2ss %ecx, %xmm0 movss 0x3580e(%rip), %xmm4 # 0x43148 divss %xmm4, %xmm0 movl %eax, %ecx shrl $0x8, %ecx andl %edx, %ecx cvtsi2ss %ecx, %xmm1 divss %xmm4, %xmm1 andl %eax, %edx cvtsi2ss %edx, %xmm2 shrl $0x18, %eax cvtsi2ss %eax, %xmm3 divss %xmm4, %xmm2 divss %xmm4, %xmm3 movq 0x8(%rdi), %rdi jmp 0x23863 nop
_ZN7lunasvg6Canvas8setColorERKNS_5ColorE: mov eax, [rsi] mov ecx, eax shr ecx, 10h mov edx, 0FFh and ecx, edx cvtsi2ss xmm0, ecx movss xmm4, cs:dword_43148 divss xmm0, xmm4 mov ecx, eax shr ecx, 8 and ecx, edx cvtsi2ss xmm1, ecx divss xmm1, xmm4 and edx, eax cvtsi2ss xmm2, edx shr eax, 18h cvtsi2ss xmm3, eax divss xmm2, xmm4 divss xmm3, xmm4 mov rdi, [rdi+8] jmp plutovg_canvas_set_rgba
long long lunasvg::Canvas::setColor(long long a1, _DWORD *a2) { return plutovg_canvas_set_rgba( *(_QWORD *)(a1 + 8), (float)(unsigned __int8)BYTE2(*a2) / 255.0, (float)(unsigned __int8)BYTE1(*a2) / 255.0, (float)(unsigned __int8)*a2 / 255.0, (float)HIBYTE(*a2) / 255.0); }
setColor: MOV EAX,dword ptr [RSI] MOV ECX,EAX SHR ECX,0x10 MOV EDX,0xff AND ECX,EDX CVTSI2SS XMM0,ECX MOVSS XMM4,dword ptr [0x00143148] DIVSS XMM0,XMM4 MOV ECX,EAX SHR ECX,0x8 AND ECX,EDX CVTSI2SS XMM1,ECX DIVSS XMM1,XMM4 AND EDX,EAX CVTSI2SS XMM2,EDX SHR EAX,0x18 CVTSI2SS XMM3,EAX DIVSS XMM2,XMM4 DIVSS XMM3,XMM4 MOV RDI,qword ptr [RDI + 0x8] JMP 0x00123863
/* lunasvg::Canvas::setColor(lunasvg::Color const&) */ void __thiscall lunasvg::Canvas::setColor(Canvas *this,Color *param_1) { uint uVar1; uVar1 = *(uint *)param_1; plutovg_canvas_set_rgba ((float)(uVar1 >> 0x10 & 0xff) / DAT_00143148,(float)(uVar1 >> 8 & 0xff) / DAT_00143148, (float)(uVar1 & 0xff) / DAT_00143148,(float)(uVar1 >> 0x18) / DAT_00143148, *(int8 *)(this + 8)); return; }
60,326
my_is_printable
eloqsql/strings/ctype.c
static inline my_bool my_is_printable(my_wc_t wc) { /* Blocks: U+0000 .. U+001F control U+0020 .. U+007E printable U+007F .. U+009F control U+00A0 .. U+00FF printable U+0100 .. U+10FFFF As of Unicode-6.1.0, this range does not have any characters of the "Cc" (Other, control) category. Should be mostly safe to print. Except for the surrogate halfs, which are encoding components, not real characters. */ if (wc >= 0x20 && wc <= 0x7E) /* Quickly detect ASCII printable */ return TRUE; if (wc <= 0x9F) /* The rest of U+0000..U+009F are control characters */ { /* NL, CR, TAB are Ok */ return (wc == '\r' || wc == '\n' || wc == '\t'); } /* Surrogate halfs (when alone) print badly in terminals: SELECT _ucs2 0xD800; Let's escape them as well. */ if (wc >= 0xD800 && wc <= 0xDFFF) return FALSE; return TRUE; }
O0
c
my_is_printable: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) cmpq $0x20, -0x10(%rbp) jb 0x6bc3c cmpq $0x7e, -0x10(%rbp) ja 0x6bc3c movb $0x1, -0x1(%rbp) jmp 0x6bc94 cmpq $0x9f, -0x10(%rbp) ja 0x6bc76 movb $0x1, %al cmpq $0xd, -0x10(%rbp) movb %al, -0x11(%rbp) je 0x6bc69 movb $0x1, %al cmpq $0xa, -0x10(%rbp) movb %al, -0x11(%rbp) je 0x6bc69 cmpq $0x9, -0x10(%rbp) sete %al movb %al, -0x11(%rbp) movb -0x11(%rbp), %al andb $0x1, %al movzbl %al, %eax movb %al, -0x1(%rbp) jmp 0x6bc94 cmpq $0xd800, -0x10(%rbp) # imm = 0xD800 jb 0x6bc90 cmpq $0xdfff, -0x10(%rbp) # imm = 0xDFFF ja 0x6bc90 movb $0x0, -0x1(%rbp) jmp 0x6bc94 movb $0x1, -0x1(%rbp) movb -0x1(%rbp), %al popq %rbp retq nopl (%rax)
my_is_printable: push rbp mov rbp, rsp mov [rbp+var_10], rdi cmp [rbp+var_10], 20h ; ' ' jb short loc_6BC3C cmp [rbp+var_10], 7Eh ; '~' ja short loc_6BC3C mov [rbp+var_1], 1 jmp short loc_6BC94 loc_6BC3C: cmp [rbp+var_10], 9Fh ja short loc_6BC76 mov al, 1 cmp [rbp+var_10], 0Dh mov [rbp+var_11], al jz short loc_6BC69 mov al, 1 cmp [rbp+var_10], 0Ah mov [rbp+var_11], al jz short loc_6BC69 cmp [rbp+var_10], 9 setz al mov [rbp+var_11], al loc_6BC69: mov al, [rbp+var_11] and al, 1 movzx eax, al mov [rbp+var_1], al jmp short loc_6BC94 loc_6BC76: cmp [rbp+var_10], 0D800h jb short loc_6BC90 cmp [rbp+var_10], 0DFFFh ja short loc_6BC90 mov [rbp+var_1], 0 jmp short loc_6BC94 loc_6BC90: mov [rbp+var_1], 1 loc_6BC94: mov al, [rbp+var_1] pop rbp retn
bool my_is_printable(unsigned long long a1) { bool v2; // [rsp+1h] [rbp-11h] if ( a1 >= 0x20 && a1 <= 0x7E ) return 1; if ( a1 > 0x9F ) return a1 < 0xD800 || a1 > 0xDFFF; v2 = 1; if ( a1 != 13 ) { v2 = 1; if ( a1 != 10 ) return a1 == 9; } return v2; }
my_is_printable: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI CMP qword ptr [RBP + -0x10],0x20 JC 0x0016bc3c CMP qword ptr [RBP + -0x10],0x7e JA 0x0016bc3c MOV byte ptr [RBP + -0x1],0x1 JMP 0x0016bc94 LAB_0016bc3c: CMP qword ptr [RBP + -0x10],0x9f JA 0x0016bc76 MOV AL,0x1 CMP qword ptr [RBP + -0x10],0xd MOV byte ptr [RBP + -0x11],AL JZ 0x0016bc69 MOV AL,0x1 CMP qword ptr [RBP + -0x10],0xa MOV byte ptr [RBP + -0x11],AL JZ 0x0016bc69 CMP qword ptr [RBP + -0x10],0x9 SETZ AL MOV byte ptr [RBP + -0x11],AL LAB_0016bc69: MOV AL,byte ptr [RBP + -0x11] AND AL,0x1 MOVZX EAX,AL MOV byte ptr [RBP + -0x1],AL JMP 0x0016bc94 LAB_0016bc76: CMP qword ptr [RBP + -0x10],0xd800 JC 0x0016bc90 CMP qword ptr [RBP + -0x10],0xdfff JA 0x0016bc90 MOV byte ptr [RBP + -0x1],0x0 JMP 0x0016bc94 LAB_0016bc90: MOV byte ptr [RBP + -0x1],0x1 LAB_0016bc94: MOV AL,byte ptr [RBP + -0x1] POP RBP RET
bool my_is_printable(ulong param_1) { int1 local_19; int1 local_9; if ((param_1 < 0x20) || (0x7e < param_1)) { if (param_1 < 0xa0) { local_19 = true; if ((param_1 != 0xd) && (local_19 = true, param_1 != 10)) { local_19 = param_1 == 9; } local_9 = local_19; } else if ((param_1 < 0xd800) || (0xdfff < param_1)) { local_9 = true; } else { local_9 = false; } } else { local_9 = true; } return local_9; }
60,327
nlohmann::json_abi_v3_11_3::detail::other_error nlohmann::json_abi_v3_11_3::detail::other_error::create<std::nullptr_t, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t)
monkey531[P]llama/common/json.hpp
static other_error create(int id_, const std::string& what_arg, BasicJsonContext context) { const std::string w = concat(exception::name("other_error", id_), exception::diagnostics(context), what_arg); return {id_, w.c_str()}; }
O0
cpp
nlohmann::json_abi_v3_11_3::detail::other_error nlohmann::json_abi_v3_11_3::detail::other_error::create<std::nullptr_t, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t): subq $0xd8, %rsp movq %rdi, 0x8(%rsp) movq %rdi, %rax movq %rax, 0x10(%rsp) movq %rdi, 0xd0(%rsp) movl %esi, 0xcc(%rsp) movq %rdx, 0xc0(%rsp) movq %rcx, 0xb8(%rsp) leaq 0x57(%rsp), %rdi movq %rdi, 0x18(%rsp) callq 0x52de0 movq 0x18(%rsp), %rdx leaq 0xf705b(%rip), %rsi # 0x1c5719 leaq 0x58(%rsp), %rdi callq 0x5bc60 jmp 0xce6ca movl 0xcc(%rsp), %edx leaq 0x78(%rsp), %rdi leaq 0x58(%rsp), %rsi callq 0xad520 jmp 0xce6e2 xorl %eax, %eax movl %eax, %esi leaq 0x20(%rsp), %rdi callq 0xcace0 jmp 0xce6f2 movq 0xc0(%rsp), %rcx leaq 0x98(%rsp), %rdi leaq 0x78(%rsp), %rsi leaq 0x20(%rsp), %rdx callq 0xad460 jmp 0xce713 leaq 0x20(%rsp), %rdi callq 0x53180 leaq 0x78(%rsp), %rdi callq 0x53180 leaq 0x58(%rsp), %rdi callq 0x53180 leaq 0x57(%rsp), %rdi callq 0x53160 movl 0xcc(%rsp), %eax movl %eax, 0x4(%rsp) leaq 0x98(%rsp), %rdi callq 0x521a0 movq 0x8(%rsp), %rdi movl 0x4(%rsp), %esi movq %rax, %rdx callq 0xcfe80 jmp 0xce766 leaq 0x98(%rsp), %rdi callq 0x53180 movq 0x10(%rsp), %rax addq $0xd8, %rsp retq movq %rax, %rcx movl %edx, %eax movq %rcx, 0x48(%rsp) movl %eax, 0x44(%rsp) jmp 0xce7dc movq %rax, %rcx movl %edx, %eax movq %rcx, 0x48(%rsp) movl %eax, 0x44(%rsp) jmp 0xce7d2 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x48(%rsp) movl %eax, 0x44(%rsp) jmp 0xce7c8 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x48(%rsp) movl %eax, 0x44(%rsp) leaq 0x20(%rsp), %rdi callq 0x53180 leaq 0x78(%rsp), %rdi callq 0x53180 leaq 0x58(%rsp), %rdi callq 0x53180 leaq 0x57(%rsp), %rdi callq 0x53160 jmp 0xce803 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x48(%rsp) movl %eax, 0x44(%rsp) leaq 0x98(%rsp), %rdi callq 0x53180 movq 0x48(%rsp), %rdi callq 0x529b0 nopl (%rax)
_ZN8nlohmann16json_abi_v3_11_36detail11other_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_: sub rsp, 0D8h mov [rsp+0D8h+var_D0], rdi; int mov rax, rdi mov qword ptr [rsp+0D8h+var_C8], rax; int mov [rsp+0D8h+var_8], rdi mov [rsp+0D8h+var_C], esi mov qword ptr [rsp+0D8h+var_18], rdx mov [rsp+0D8h+var_20], rcx lea rdi, [rsp+0D8h+var_81] mov qword ptr [rsp+0D8h+var_C0], rdi; int call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdx, qword ptr [rsp+0D8h+var_C0] lea rsi, aOtherError; "other_error" lea rdi, [rsp+0D8h+var_81+1] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_CE6CA: mov edx, [rsp+0D8h+var_C] lea rdi, [rsp+0D8h+var_60]; int lea rsi, [rsp+0D8h+var_81+1] call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int) jmp short $+2 loc_CE6E2: xor eax, eax mov esi, eax lea rdi, [rsp+0D8h+var_B8] call _ZN8nlohmann16json_abi_v3_11_36detail9exception11diagnosticsB5cxx11EDn; nlohmann::json_abi_v3_11_3::detail::exception::diagnostics(decltype(nullptr)) jmp short $+2 loc_CE6F2: mov rcx, qword ptr [rsp+0D8h+var_18]; int lea rdi, [rsp+0D8h+var_40]; int lea rsi, [rsp+0D8h+var_60]; int lea rdx, [rsp+0D8h+var_B8]; int 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&) jmp short $+2 loc_CE713: lea rdi, [rsp+0D8h+var_B8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rsp+0D8h+var_60]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rsp+0D8h+var_81+1]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rsp+0D8h+var_81] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() mov eax, [rsp+0D8h+var_C] mov [rsp+0D8h+var_D4], eax lea rdi, [rsp+0D8h+var_40] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void) mov rdi, [rsp+0D8h+var_D0]; this mov esi, [rsp+0D8h+var_D4]; int mov rdx, rax; char * call _ZN8nlohmann16json_abi_v3_11_36detail11other_errorC2EiPKc; nlohmann::json_abi_v3_11_3::detail::other_error::other_error(int,char const*) jmp short $+2 loc_CE766: lea rdi, [rsp+0D8h+var_40]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov rax, qword ptr [rsp+0D8h+var_C8] add rsp, 0D8h retn mov rcx, rax mov eax, edx mov [rsp+arg_40], rcx mov [rsp+arg_3C], eax jmp short loc_CE7DC mov rcx, rax mov eax, edx mov [rsp+arg_40], rcx mov [rsp+arg_3C], eax jmp short loc_CE7D2 mov rcx, rax mov eax, edx mov [rsp+arg_40], rcx mov [rsp+arg_3C], eax jmp short loc_CE7C8 mov rcx, rax mov eax, edx mov [rsp+arg_40], rcx mov [rsp+arg_3C], eax lea rdi, [rsp+arg_18]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_CE7C8: lea rdi, [rsp+arg_70]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_CE7D2: lea rdi, [rsp+arg_50]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_CE7DC: lea rdi, [rsp+arg_4F] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() jmp short loc_CE803 mov rcx, rax mov eax, edx mov [rsp+arg_40], rcx mov [rsp+arg_3C], eax lea rdi, [rsp+arg_90]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_CE803: mov rdi, [rsp+arg_40] call __Unwind_Resume
nlohmann::json_abi_v3_11_3::detail::other_error * ZN8nlohmann16json_abi_v3_11_36detail11other_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_( nlohmann::json_abi_v3_11_3::detail::other_error *a1, int a2, long long a3, long long a4) { const char *v4; // rax int v6; // [rsp+4h] [rbp-D4h] int v7[13]; // [rsp+20h] [rbp-B8h] BYREF int v8[8]; // [rsp+57h] [rbp-81h] BYREF int v9[8]; // [rsp+78h] [rbp-60h] BYREF int v10[8]; // [rsp+98h] [rbp-40h] BYREF long long v11; // [rsp+B8h] [rbp-20h] int v12[2]; // [rsp+C0h] [rbp-18h] int v13; // [rsp+CCh] [rbp-Ch] nlohmann::json_abi_v3_11_3::detail::other_error *v14; // [rsp+D0h] [rbp-8h] v14 = a1; v13 = a2; *(_QWORD *)v12 = a3; v11 = a4; std::allocator<char>::allocator(); std::string::basic_string<std::allocator<char>>((long long)v8 + 1, (long long)"other_error", (long long)v8); nlohmann::json_abi_v3_11_3::detail::exception::name(v9, (long long)v8 + 1, v13); nlohmann::json_abi_v3_11_3::detail::exception::diagnostics[abi:cxx11]((long long)v7, 0LL); nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,std::string,std::string const&>( (long long)v10, (long long)v9, (long long)v7, *(long long *)v12); std::string::~string(v7); std::string::~string(v9); std::string::~string((char *)v8 + 1); std::allocator<char>::~allocator(v8); v6 = v13; v4 = (const char *)std::string::c_str(v10); nlohmann::json_abi_v3_11_3::detail::other_error::other_error(a1, v6, v4); std::string::~string(v10); return a1; }
_ZN8nlohmann16json_abi_v3_11_36detail11other_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_: SUB RSP,0xd8 MOV qword ptr [RSP + 0x8],RDI MOV RAX,RDI MOV qword ptr [RSP + 0x10],RAX MOV qword ptr [RSP + 0xd0],RDI MOV dword ptr [RSP + 0xcc],ESI MOV qword ptr [RSP + 0xc0],RDX MOV qword ptr [RSP + 0xb8],RCX LEA RDI,[RSP + 0x57] MOV qword ptr [RSP + 0x18],RDI CALL 0x00152de0 MOV RDX,qword ptr [RSP + 0x18] LAB_001ce6b7: LEA RSI,[0x2c5719] LEA RDI,[RSP + 0x58] CALL 0x0015bc60 JMP 0x001ce6ca LAB_001ce6ca: MOV EDX,dword ptr [RSP + 0xcc] LAB_001ce6d1: LEA RDI,[RSP + 0x78] LEA RSI,[RSP + 0x58] CALL 0x001ad520 JMP 0x001ce6e2 LAB_001ce6e2: XOR EAX,EAX MOV ESI,EAX LEA RDI,[RSP + 0x20] CALL 0x001cace0 JMP 0x001ce6f2 LAB_001ce6f2: MOV RCX,qword ptr [RSP + 0xc0] LAB_001ce6fa: LEA RDI,[RSP + 0x98] LEA RSI,[RSP + 0x78] LEA RDX,[RSP + 0x20] CALL 0x001ad460 JMP 0x001ce713 LAB_001ce713: LEA RDI,[RSP + 0x20] CALL 0x00153180 LEA RDI,[RSP + 0x78] CALL 0x00153180 LEA RDI,[RSP + 0x58] CALL 0x00153180 LEA RDI,[RSP + 0x57] CALL 0x00153160 MOV EAX,dword ptr [RSP + 0xcc] MOV dword ptr [RSP + 0x4],EAX LEA RDI,[RSP + 0x98] CALL 0x001521a0 MOV RDI,qword ptr [RSP + 0x8] MOV ESI,dword ptr [RSP + 0x4] MOV RDX,RAX LAB_001ce75f: CALL 0x001cfe80 LAB_001ce764: JMP 0x001ce766 LAB_001ce766: LEA RDI,[RSP + 0x98] CALL 0x00153180 MOV RAX,qword ptr [RSP + 0x10] ADD RSP,0xd8 RET
other_error * _ZN8nlohmann16json_abi_v3_11_36detail11other_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ (other_error *param_1,int param_2,string *param_3,int8 param_4) { int iVar1; char *pcVar2; exception local_b8 [55]; allocator local_81; string local_80 [32]; exception local_60 [32]; detail local_40 [32]; int8 local_20; string *local_18; int local_c; other_error *local_8; local_20 = param_4; local_18 = param_3; local_c = param_2; local_8 = param_1; std::allocator<char>::allocator(); /* try { // try from 001ce6b7 to 001ce6c7 has its CatchHandler @ 001ce780 */ std::__cxx11::string::string<std::allocator<char>>(local_80,"other_error",&local_81); /* try { // try from 001ce6d1 to 001ce6df has its CatchHandler @ 001ce790 */ nlohmann::json_abi_v3_11_3::detail::exception::name(local_60,local_80,local_c); /* try { // try from 001ce6e2 to 001ce6ef has its CatchHandler @ 001ce7a0 */ nlohmann::json_abi_v3_11_3::detail::exception::diagnostics_abi_cxx11_ (local_b8,(_func_decltype_nullptr *)0x0); /* try { // try from 001ce6fa to 001ce710 has its CatchHandler @ 001ce7b0 */ nlohmann::json_abi_v3_11_3::detail:: concat<std::__cxx11::string,std::__cxx11::string,std::__cxx11::string,std::__cxx11::string_const&> (local_40,(string *)local_60,(string *)local_b8,local_18); std::__cxx11::string::~string((string *)local_b8); std::__cxx11::string::~string((string *)local_60); std::__cxx11::string::~string(local_80); std::allocator<char>::~allocator((allocator<char> *)&local_81); iVar1 = local_c; pcVar2 = (char *)std::__cxx11::string::c_str(); /* try { // try from 001ce75f to 001ce763 has its CatchHandler @ 001ce7e8 */ nlohmann::json_abi_v3_11_3::detail::other_error::other_error(param_1,iVar1,pcVar2); std::__cxx11::string::~string((string *)local_40); return param_1; }
60,328
OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<int, 40u, true>::allocate(unsigned int)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/../vtr/stackBuffer.h
inline void StackBuffer<TYPE,SIZE,POD_TYPE>::allocate(size_type capacity) { // Again, is alignment an issue here? C++ spec says new will return pointer // "suitably aligned" for conversion to pointers of other types, which implies // at least an alignment of 16. _dynamicData = static_cast<char*>(::operator new(capacity * sizeof(TYPE))); _data = reinterpret_cast<TYPE*>(_dynamicData); _capacity = capacity; }
O0
c
OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<int, 40u, true>::allocate(unsigned int): pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) movl -0xc(%rbp), %eax movl %eax, %edi shlq $0x3, %rdi callq 0xcd100 movq %rax, %rcx movq -0x18(%rbp), %rax movq %rcx, 0x30(%rax) movq 0x30(%rax), %rcx movq %rcx, (%rax) movl -0xc(%rbp), %ecx movl %ecx, 0xc(%rax) addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax)
_ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferIPNS0_3Far17PatchTableBuilder16LocalPointHelperELj4ELb0EE8allocateEj: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_C], esi mov rax, [rbp+var_8] mov [rbp+var_18], rax mov eax, [rbp+var_C] mov edi, eax shl rdi, 3; unsigned __int64 call __Znwm; operator new(ulong) mov rcx, rax mov rax, [rbp+var_18] mov [rax+30h], rcx mov rcx, [rax+30h] mov [rax], rcx mov ecx, [rbp+var_C] mov [rax+0Ch], ecx add rsp, 20h pop rbp retn
long long OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper *,4u,false>::allocate( long long a1, unsigned int a2) { long long v2; // rcx long long result; // rax v2 = operator new(8LL * a2); result = a1; *(_QWORD *)(a1 + 48) = v2; *(_QWORD *)a1 = *(_QWORD *)(a1 + 48); *(_DWORD *)(a1 + 12) = a2; return result; }
60,329
OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<int, 40u, true>::allocate(unsigned int)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/../vtr/stackBuffer.h
inline void StackBuffer<TYPE,SIZE,POD_TYPE>::allocate(size_type capacity) { // Again, is alignment an issue here? C++ spec says new will return pointer // "suitably aligned" for conversion to pointers of other types, which implies // at least an alignment of 16. _dynamicData = static_cast<char*>(::operator new(capacity * sizeof(TYPE))); _data = reinterpret_cast<TYPE*>(_dynamicData); _capacity = capacity; }
O2
c
OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<int, 40u, true>::allocate(unsigned int): pushq %r14 pushq %rbx pushq %rax movl %esi, %ebx movq %rdi, %r14 movl %esi, %edi shlq $0x3, %rdi callq 0x52790 movq %rax, 0x30(%r14) movq %rax, (%r14) movl %ebx, 0xc(%r14) addq $0x8, %rsp popq %rbx popq %r14 retq nop
_ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferIPNS0_3Far17PatchTableBuilder16LocalPointHelperELj4ELb0EE8allocateEj: push r14 push rbx push rax mov ebx, esi mov r14, rdi mov edi, esi shl rdi, 3; unsigned __int64 call __Znwm; operator new(ulong) mov [r14+30h], rax mov [r14], rax mov [r14+0Ch], ebx add rsp, 8 pop rbx pop r14 retn
long long OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper *,4u,false>::allocate( long long a1, unsigned int a2) { long long result; // rax result = operator new(8LL * a2); *(_QWORD *)(a1 + 48) = result; *(_QWORD *)a1 = result; *(_DWORD *)(a1 + 12) = a2; return result; }
allocate: PUSH R14 PUSH RBX PUSH RAX MOV EBX,ESI MOV R14,RDI MOV EDI,ESI SHL RDI,0x3 CALL 0x00152790 MOV qword ptr [R14 + 0x30],RAX MOV qword ptr [R14],RAX MOV dword ptr [R14 + 0xc],EBX ADD RSP,0x8 POP RBX POP R14 RET
/* OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper*, 4u, false>::allocate(unsigned int) */ void __thiscall OpenSubdiv::v3_6_0::Vtr::internal:: StackBuffer<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper*,4u,false>::allocate (StackBuffer<OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper*,4u,false> *this ,uint param_1) { void *pvVar1; pvVar1 = operator_new((ulong)param_1 << 3); *(void **)(this + 0x30) = pvVar1; *(void **)this = pvVar1; *(uint *)(this + 0xc) = param_1; return; }
60,330
psi_prlock_rdlock
eloqsql/mysys/my_thr_init.c
ATTRIBUTE_COLD int psi_prlock_rdlock(mysql_prlock_t *that, const char *file, uint line) { PSI_rwlock_locker_state state; PSI_rwlock_locker *locker= PSI_RWLOCK_CALL(start_rwlock_rdwait) (&state, that->m_psi, PSI_RWLOCK_READLOCK, file, line); int result= rw_pr_rdlock(&that->m_prlock); if (locker) PSI_RWLOCK_CALL(end_rwlock_rdwait)(locker, result); return result; }
O0
c
psi_prlock_rdlock: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) leaq 0x1b6276(%rip), %rax # 0x238fa0 movq (%rax), %rax movq 0x1a0(%rax), %rax movq -0x8(%rbp), %rcx movq 0x68(%rcx), %rsi movq -0x10(%rbp), %rcx movl -0x14(%rbp), %r8d leaq -0x48(%rbp), %rdi xorl %edx, %edx callq *%rax movq %rax, -0x50(%rbp) movq -0x8(%rbp), %rdi callq 0x86520 movl %eax, -0x54(%rbp) cmpq $0x0, -0x50(%rbp) je 0x82d7d leaq 0x1b6236(%rip), %rax # 0x238fa0 movq (%rax), %rax movq 0x1a8(%rax), %rax movq -0x50(%rbp), %rdi movl -0x54(%rbp), %esi callq *%rax movl -0x54(%rbp), %eax addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
psi_prlock_rdlock: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx lea rax, PSI_server mov rax, [rax] mov rax, [rax+1A0h] mov rcx, [rbp+var_8] mov rsi, [rcx+68h] mov rcx, [rbp+var_10] mov r8d, [rbp+var_14] lea rdi, [rbp+var_48] xor edx, edx call rax mov [rbp+var_50], rax mov rdi, [rbp+var_8] call rw_pr_rdlock mov [rbp+var_54], eax cmp [rbp+var_50], 0 jz short loc_82D7D lea rax, PSI_server mov rax, [rax] mov rax, [rax+1A8h] mov rdi, [rbp+var_50] mov esi, [rbp+var_54] call rax loc_82D7D: mov eax, [rbp+var_54] add rsp, 60h pop rbp retn
long long psi_prlock_rdlock(long long a1, long long a2, unsigned int a3) { unsigned int v4; // [rsp+Ch] [rbp-54h] long long v5; // [rsp+10h] [rbp-50h] _BYTE v6[52]; // [rsp+18h] [rbp-48h] BYREF unsigned int v7; // [rsp+4Ch] [rbp-14h] long long v8; // [rsp+50h] [rbp-10h] long long v9; // [rsp+58h] [rbp-8h] v9 = a1; v8 = a2; v7 = a3; v5 = ((long long ( *)(_BYTE *, _QWORD, _QWORD, long long, _QWORD))PSI_server[52])( v6, *(_QWORD *)(a1 + 104), 0LL, a2, a3); v4 = rw_pr_rdlock(v9); if ( v5 ) ((void ( *)(long long, _QWORD))PSI_server[53])(v5, v4); return v4; }
psi_prlock_rdlock: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX LEA RAX,[0x338fa0] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x1a0] MOV RCX,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RCX + 0x68] MOV RCX,qword ptr [RBP + -0x10] MOV R8D,dword ptr [RBP + -0x14] LEA RDI,[RBP + -0x48] XOR EDX,EDX CALL RAX MOV qword ptr [RBP + -0x50],RAX MOV RDI,qword ptr [RBP + -0x8] CALL 0x00186520 MOV dword ptr [RBP + -0x54],EAX CMP qword ptr [RBP + -0x50],0x0 JZ 0x00182d7d LEA RAX,[0x338fa0] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x1a8] MOV RDI,qword ptr [RBP + -0x50] MOV ESI,dword ptr [RBP + -0x54] CALL RAX LAB_00182d7d: MOV EAX,dword ptr [RBP + -0x54] ADD RSP,0x60 POP RBP RET
int4 psi_prlock_rdlock(long param_1,int8 param_2,int4 param_3) { int4 uVar1; long lVar2; int1 local_50 [52]; int4 local_1c; int8 local_18; long local_10; local_1c = param_3; local_18 = param_2; local_10 = param_1; lVar2 = (**(code **)(PSI_server + 0x1a0)) (local_50,*(int8 *)(param_1 + 0x68),0,param_2,param_3); uVar1 = rw_pr_rdlock(local_10); if (lVar2 != 0) { (**(code **)(PSI_server + 0x1a8))(lVar2,uVar1); } return uVar1; }
60,331
ConfigNumber<unsigned long>::~ConfigNumber()
untodesu[P]voxelius/core/config.hh
virtual ~ConfigNumber(void) = default;
O1
cpp
ConfigNumber<unsigned long>::~ConfigNumber(): pushq %rbx movq %rdi, %rbx leaq 0xd3d81(%rip), %rax # 0x1049d8 movq %rax, (%rdi) movq 0x20(%rdi), %rdi leaq 0x30(%rbx), %rax cmpq %rax, %rdi je 0x30c72 movq (%rax), %rsi incq %rsi callq 0x176b0 movl $0x40, %esi movq %rbx, %rdi popq %rbx jmp 0x176b0
_ZN12ConfigNumberImED0Ev: push rbx mov rbx, rdi lea rax, off_1049D8 mov [rdi], rax mov rdi, [rdi+20h]; void * lea rax, [rbx+30h] cmp rdi, rax jz short loc_30C72 mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_30C72: mov esi, 40h ; '@'; unsigned __int64 mov rdi, rbx; void * pop rbx jmp __ZdlPvm; operator delete(void *,ulong)
void ConfigNumber<unsigned long>::~ConfigNumber(_QWORD *a1) { _QWORD *v2; // rdi *a1 = &off_1049D8; v2 = (_QWORD *)a1[4]; if ( v2 != a1 + 6 ) operator delete(v2, a1[6] + 1LL); operator delete(a1, 0x40uLL); }
~ConfigNumber: PUSH RBX MOV RBX,RDI LEA RAX,[0x2049d8] MOV qword ptr [RDI],RAX MOV RDI,qword ptr [RDI + 0x20] LEA RAX,[RBX + 0x30] CMP RDI,RAX JZ 0x00130c72 MOV RSI,qword ptr [RAX] INC RSI CALL 0x001176b0 LAB_00130c72: MOV ESI,0x40 MOV RDI,RBX POP RBX JMP 0x001176b0
/* ConfigNumber<unsigned long>::~ConfigNumber() */ void __thiscall ConfigNumber<unsigned_long>::~ConfigNumber(ConfigNumber<unsigned_long> *this) { *(int ***)this = &PTR__ConfigNumber_002049d8; if (*(ConfigNumber<unsigned_long> **)(this + 0x20) != this + 0x30) { operator_delete(*(ConfigNumber<unsigned_long> **)(this + 0x20),*(long *)(this + 0x30) + 1); } operator_delete(this,0x40); return; }
60,332
ConfigNumber<unsigned long>::~ConfigNumber()
untodesu[P]voxelius/core/config.hh
virtual ~ConfigNumber(void) = default;
O3
cpp
ConfigNumber<unsigned long>::~ConfigNumber(): pushq %rbx movq %rdi, %rbx leaq 0xe15f7(%rip), %rax # 0x101a68 movq %rax, (%rdi) movq 0x18(%rdi), %rdi leaq 0x28(%rbx), %rax cmpq %rax, %rdi je 0x2048c movq (%rax), %rsi incq %rsi callq 0x166c0 movl $0x38, %esi movq %rbx, %rdi popq %rbx jmp 0x166c0
_ZN12ConfigNumberIiED0Ev: push rbx mov rbx, rdi lea rax, off_101A68 mov [rdi], rax mov rdi, [rdi+18h]; void * lea rax, [rbx+28h] cmp rdi, rax jz short loc_2048C mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_2048C: mov esi, 38h ; '8'; unsigned __int64 mov rdi, rbx; void * pop rbx jmp __ZdlPvm; operator delete(void *,ulong)
void ConfigNumber<int>::~ConfigNumber(_QWORD *a1) { _QWORD *v2; // rdi *a1 = &off_101A68; v2 = (_QWORD *)a1[3]; if ( v2 != a1 + 5 ) operator delete(v2, a1[5] + 1LL); operator delete(a1, 0x38uLL); }
~ConfigNumber: PUSH RBX MOV RBX,RDI LEA RAX,[0x201a68] MOV qword ptr [RDI],RAX MOV RDI,qword ptr [RDI + 0x18] LEA RAX,[RBX + 0x28] CMP RDI,RAX JZ 0x0012048c MOV RSI,qword ptr [RAX] INC RSI CALL 0x001166c0 LAB_0012048c: MOV ESI,0x38 MOV RDI,RBX POP RBX JMP 0x001166c0
/* ConfigNumber<int>::~ConfigNumber() */ void __thiscall ConfigNumber<int>::~ConfigNumber(ConfigNumber<int> *this) { *(int ***)this = &PTR__ConfigNumber_00201a68; if (*(ConfigNumber<int> **)(this + 0x18) != this + 0x28) { operator_delete(*(ConfigNumber<int> **)(this + 0x18),*(long *)(this + 0x28) + 1); } operator_delete(this,0x38); return; }
60,333
stbi__psd_decode_rle
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-stb-image.h
static int stbi__psd_decode_rle(stbi__context *s, stbi_uc *p, int pixelCount) { int count, nleft, len; count = 0; while ((nleft = pixelCount - count) > 0) { len = stbi__get8(s); if (len == 128) { // No-op. } else if (len < 128) { // Copy next len+1 bytes literally. len++; if (len > nleft) return 0; // corrupt data count += len; while (len) { *p = stbi__get8(s); p += 4; len--; } } else if (len > 128) { stbi_uc val; // Next -len+1 bytes in the dest are replicated from next source byte. // (Interpret len as a negative 8-bit int.) len = 257 - len; if (len > nleft) return 0; // corrupt data val = stbi__get8(s); count += len; while (len) { *p = val; p += 4; len--; } } } return 1; }
O1
c
stbi__psd_decode_rle: movl $0x1, %eax testl %edx, %edx jle 0x36d43 pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %edx, %ebx movq %rsi, %r14 movq %rdi, %r15 xorl %r12d, %r12d movl %edx, %r13d movl %edx, 0x4(%rsp) movq %r15, %rdi callq 0x35662 cmpb $-0x80, %al je 0x36d24 movzbl %al, %ebx testb %al, %al js 0x36cf3 cmpl %ebx, %r13d jbe 0x36d33 incl %ebx movl %ebx, %ebp movq %r15, %rdi callq 0x35662 movb %al, (%r14) addq $0x4, %r14 decl %ebp jne 0x36cd7 addl %ebx, %r12d movl 0x4(%rsp), %ebx jmp 0x36d24 movl $0x101, %ebp # imm = 0x101 subl %ebx, %ebp cmpl %r13d, %ebp ja 0x36d1b movq %r15, %rdi callq 0x35662 addl $0xfffffeff, %ebx # imm = 0xFFFFFEFF movb %al, (%r14) addq $0x4, %r14 incl %ebx jne 0x36d0d addl %ebp, %r12d cmpl %r13d, %ebp movl 0x4(%rsp), %ebx ja 0x36d33 movl %ebx, %r13d subl %r12d, %r13d jg 0x36cbb movl $0x1, %eax jmp 0x36d35 xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
stbi__psd_decode_rle: mov eax, 1 test edx, edx jle locret_36D43 push rbp push r15 push r14 push r13 push r12 push rbx push rax mov ebx, edx mov r14, rsi mov r15, rdi xor r12d, r12d mov r13d, edx mov [rsp+38h+var_34], edx loc_36CBB: mov rdi, r15 call stbi__get8 cmp al, 80h jz short loc_36D24 movzx ebx, al test al, al js short loc_36CF3 cmp r13d, ebx jbe short loc_36D33 inc ebx mov ebp, ebx loc_36CD7: mov rdi, r15 call stbi__get8 mov [r14], al add r14, 4 dec ebp jnz short loc_36CD7 add r12d, ebx mov ebx, [rsp+38h+var_34] jmp short loc_36D24 loc_36CF3: mov ebp, 101h sub ebp, ebx cmp ebp, r13d ja short loc_36D1B mov rdi, r15 call stbi__get8 add ebx, 0FFFFFEFFh loc_36D0D: mov [r14], al add r14, 4 inc ebx jnz short loc_36D0D add r12d, ebp loc_36D1B: cmp ebp, r13d mov ebx, [rsp+38h+var_34] ja short loc_36D33 loc_36D24: mov r13d, ebx sub r13d, r12d jg short loc_36CBB mov eax, 1 jmp short loc_36D35 loc_36D33: xor eax, eax loc_36D35: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp locret_36D43: retn
long long stbi__psd_decode_rle(long long a1, char *a2, int a3) { long long result; // rax int v4; // ebx int v6; // r12d unsigned int v7; // r13d unsigned __int8 v8; // al int v9; // ebx int v10; // ebx int v11; // ebp unsigned int v12; // ebp char v13; // al int v14; // ebx result = 1LL; if ( a3 > 0 ) { v4 = a3; v6 = 0; v7 = a3; while ( 1 ) { v8 = stbi__get8(a1); if ( v8 != 0x80 ) { v9 = v8; if ( (v8 & 0x80u) != 0 ) { v12 = 257 - v8; if ( v12 <= v7 ) { v13 = stbi__get8(a1); v14 = v9 - 257; do { *a2 = v13; a2 += 4; ++v14; } while ( v14 ); v6 += v12; } v4 = a3; if ( v12 > v7 ) return 0LL; } else { if ( v7 <= v8 ) return 0LL; v10 = v8 + 1; v11 = v10; do { *a2 = stbi__get8(a1); a2 += 4; --v11; } while ( v11 ); v6 += v10; v4 = a3; } } v7 = v4 - v6; if ( v4 <= v6 ) return 1LL; } } return result; }
stbi__psd_decode_rle: MOV EAX,0x1 TEST EDX,EDX JLE 0x00136d43 PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV EBX,EDX MOV R14,RSI MOV R15,RDI XOR R12D,R12D MOV R13D,EDX MOV dword ptr [RSP + 0x4],EDX LAB_00136cbb: MOV RDI,R15 CALL 0x00135662 CMP AL,0x80 JZ 0x00136d24 MOVZX EBX,AL TEST AL,AL JS 0x00136cf3 CMP R13D,EBX JBE 0x00136d33 INC EBX MOV EBP,EBX LAB_00136cd7: MOV RDI,R15 CALL 0x00135662 MOV byte ptr [R14],AL ADD R14,0x4 DEC EBP JNZ 0x00136cd7 ADD R12D,EBX MOV EBX,dword ptr [RSP + 0x4] JMP 0x00136d24 LAB_00136cf3: MOV EBP,0x101 SUB EBP,EBX CMP EBP,R13D JA 0x00136d1b MOV RDI,R15 CALL 0x00135662 ADD EBX,0xfffffeff LAB_00136d0d: MOV byte ptr [R14],AL ADD R14,0x4 INC EBX JNZ 0x00136d0d ADD R12D,EBP LAB_00136d1b: CMP EBP,R13D MOV EBX,dword ptr [RSP + 0x4] JA 0x00136d33 LAB_00136d24: MOV R13D,EBX SUB R13D,R12D JG 0x00136cbb MOV EAX,0x1 JMP 0x00136d35 LAB_00136d33: XOR EAX,EAX LAB_00136d35: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP LAB_00136d43: RET
int8 stbi__psd_decode_rle(int8 param_1,int1 *param_2,uint param_3) { byte bVar1; int1 uVar2; uint uVar3; int iVar4; uint uVar5; int iVar6; uint uVar7; if (0 < (int)param_3) { iVar6 = 0; uVar7 = param_3; do { bVar1 = stbi__get8(param_1); if (bVar1 != 0x80) { uVar3 = (uint)bVar1; if ((char)bVar1 < '\0') { uVar5 = 0x101 - uVar3; if (uVar5 <= uVar7) { uVar2 = stbi__get8(param_1); iVar4 = uVar3 - 0x101; do { *param_2 = uVar2; param_2 = param_2 + 4; iVar4 = iVar4 + 1; } while (iVar4 != 0); iVar6 = iVar6 + uVar5; } if (uVar7 < uVar5) { return 0; } } else { if (uVar7 <= uVar3) { return 0; } iVar4 = uVar3 + 1; do { uVar2 = stbi__get8(param_1); *param_2 = uVar2; param_2 = param_2 + 4; iVar4 = iVar4 + -1; } while (iVar4 != 0); iVar6 = iVar6 + uVar3 + 1; } } uVar7 = param_3 - iVar6; } while (uVar7 != 0 && iVar6 <= (int)param_3); } return 1; }
60,334
mi_search_next
eloqsql/storage/myisam/mi_search.c
int _mi_search_next(register MI_INFO *info, register MI_KEYDEF *keyinfo, uchar *key, uint key_length, uint nextflag, my_off_t pos) { int error; uint nod_flag; uchar lastkey[HA_MAX_KEY_BUFF]; DBUG_ENTER("_mi_search_next"); DBUG_PRINT("enter",("nextflag: %u lastpos: %llu int_keypos: %p", nextflag, info->lastpos, info->int_keypos)); DBUG_EXECUTE("key",_mi_print_key(DBUG_FILE,keyinfo->seg,key,key_length);); /* Force full read if we are at last key or if we are not on a leaf and the key tree has changed since we used it last time Note that even if the key tree has changed since last read, we can use the last read data from the leaf if we haven't used the buffer for something else. */ if (((nextflag & SEARCH_BIGGER) && info->int_keypos >= info->int_maxpos) || info->page_changed || (info->int_keytree_version != keyinfo->version && (info->int_nod_flag || info->buff_used))) DBUG_RETURN(_mi_search(info,keyinfo,key, USE_WHOLE_KEY, nextflag | SEARCH_SAVE_BUFF, pos)); if (info->buff_used) { if (!_mi_fetch_keypage(info,keyinfo,info->last_search_keypage, DFLT_INIT_HITS,info->buff,0)) DBUG_RETURN(-1); info->buff_used=0; } /* Last used buffer is in info->buff */ nod_flag=mi_test_if_nod(info->buff); if (nextflag & SEARCH_BIGGER) /* Next key */ { my_off_t tmp_pos=_mi_kpos(nod_flag,info->int_keypos); if (tmp_pos != HA_OFFSET_ERROR) { if ((error=_mi_search(info,keyinfo,key, USE_WHOLE_KEY, nextflag | SEARCH_SAVE_BUFF, tmp_pos)) <=0) DBUG_RETURN(error); } memcpy(lastkey,key,key_length); if (!(info->lastkey_length=(*keyinfo->get_key)(keyinfo,nod_flag, &info->int_keypos,lastkey))) DBUG_RETURN(-1); } else /* Previous key */ { uint length; /* Find start of previous key */ info->int_keypos=_mi_get_last_key(info,keyinfo,info->buff,lastkey, info->int_keypos, &length); if (!info->int_keypos) DBUG_RETURN(-1); if (info->int_keypos == info->buff+2) DBUG_RETURN(_mi_search(info,keyinfo,key, USE_WHOLE_KEY, nextflag | SEARCH_SAVE_BUFF, pos)); if ((error=_mi_search(info,keyinfo,key, USE_WHOLE_KEY, nextflag | SEARCH_SAVE_BUFF, _mi_kpos(nod_flag,info->int_keypos))) <= 0) DBUG_RETURN(error); /* QQ: We should be able to optimize away the following call */ if (! _mi_get_last_key(info,keyinfo,info->buff,lastkey, info->int_keypos,&info->lastkey_length)) DBUG_RETURN(-1); } memcpy(info->lastkey,lastkey,info->lastkey_length); info->lastpos=_mi_dpos(info,0,info->lastkey+info->lastkey_length); DBUG_PRINT("exit",("found key at %lu",(ulong) info->lastpos)); DBUG_RETURN(0); }
O3
c
mi_search_next: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x4d8, %rsp # imm = 0x4D8 movq %r9, %r13 movl %r8d, %r12d movq %rdx, %r15 movq %rsi, %r14 movq %rdi, %rbx movq %fs:0x28, %rax movq %rax, -0x30(%rbp) testb $0x8, %r12b je 0x87027 movq 0x128(%rbx), %rax cmpq 0x130(%rbx), %rax jae 0x87030 cmpb $0x0, 0x33c(%rbx) je 0x87071 movq %fs:0x28, %rax cmpq -0x30(%rbp), %rax jne 0x872ad orl $0x20, %r12d movq %rbx, %rdi movq %r14, %rsi movq %r15, %rdx movl $0x970, %ecx # imm = 0x970 movl %r12d, %r8d movq %r13, %r9 addq $0x4d8, %rsp # imm = 0x4D8 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x85363 movl 0x13c(%rbx), %eax cmpl 0x1c(%r14), %eax jne 0x870c5 cmpb $0x0, 0x33d(%rbx) je 0x870df movl %ecx, -0x4f4(%rbp) movq 0x100(%rbx), %r8 movq 0x198(%rbx), %rdx movq %rbx, %rdi movq %r14, %rsi movl $0x3, %ecx xorl %r9d, %r9d callq 0x84f68 testq %rax, %rax je 0x87265 movb $0x0, 0x33d(%rbx) movl -0x4f4(%rbp), %ecx jmp 0x870df cmpl $0x0, 0x138(%rbx) jne 0x87030 cmpb $0x0, 0x33d(%rbx) jne 0x87030 movq 0x100(%rbx), %rdx xorl %edi, %edi cmpb $0x0, (%rdx) jns 0x870f6 movq (%rbx), %rax movl 0x17c(%rax), %edi testb $0x8, %r12b movl %edi, -0x4f4(%rbp) jne 0x871b5 movq 0x128(%rbx), %r8 leaq -0x4f0(%rbp), %rcx leaq -0x4f8(%rbp), %r9 movq %rbx, %rdi movq %r14, %rsi callq 0x86dd2 movq %rax, 0x128(%rbx) testq %rax, %rax je 0x87265 movq 0x100(%rbx), %rcx addq $0x2, %rcx orl $0x20, %r12d cmpq %rcx, %rax je 0x8726d movl -0x4f4(%rbp), %edi movq %rax, %rsi callq 0x858e2 movq %rbx, %rdi movq %r14, %rsi movq %r15, %rdx movl $0x970, %ecx # imm = 0x970 movl %r12d, %r8d movq %rax, %r9 callq 0x85363 testl %eax, %eax jle 0x87286 movq 0x100(%rbx), %rdx movq 0x128(%rbx), %r8 leaq 0x1d8(%rbx), %r15 leaq -0x4f0(%rbp), %rcx movq %rbx, %rdi movq %r14, %rsi movq %r15, %r9 callq 0x86dd2 testq %rax, %rax je 0x87265 movl (%r15), %eax jmp 0x8722d movl %ecx, %r13d movq 0x128(%rbx), %rsi callq 0x858e2 cmpq $-0x1, %rax je 0x871ef orl $0x20, %r12d movq %rbx, %rdi movq %r14, %rsi movq %r15, %rdx movl $0x970, %ecx # imm = 0x970 movl %r12d, %r8d movq %rax, %r9 callq 0x85363 testl %eax, %eax jle 0x87286 leaq 0x128(%rbx), %r12 movl %r13d, %edx leaq -0x4f0(%rbp), %r13 movl $0x4b8, %ecx # imm = 0x4B8 movq %r13, %rdi movq %r15, %rsi callq 0x29410 movq %r14, %rdi movl -0x4f4(%rbp), %esi movq %r12, %rdx movq %r13, %rcx callq *0x48(%r14) movl %eax, 0x1d8(%rbx) testl %eax, %eax je 0x87265 movq 0x108(%rbx), %rdi movl %eax, %edx leaq -0x4f0(%rbp), %rsi callq 0x29080 movl 0x1d8(%rbx), %edx addq 0x108(%rbx), %rdx xorl %r12d, %r12d movq %rbx, %rdi xorl %esi, %esi callq 0x859c1 movq %rax, 0x170(%rbx) jmp 0x87289 movl $0xffffffff, %r12d # imm = 0xFFFFFFFF jmp 0x87289 movq %rbx, %rdi movq %r14, %rsi movq %r15, %rdx movl $0x970, %ecx # imm = 0x970 movl %r12d, %r8d movq %r13, %r9 callq 0x85363 movl %eax, %r12d movq %fs:0x28, %rax cmpq -0x30(%rbp), %rax jne 0x872ad movl %r12d, %eax addq $0x4d8, %rsp # imm = 0x4D8 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0x29250
_mi_search_next: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 4D8h mov r13, r9 mov r12d, r8d mov r15, rdx mov r14, rsi mov rbx, rdi mov rax, fs:28h mov [rbp+var_30], rax test r12b, 8 jz short loc_87027 mov rax, [rbx+128h] cmp rax, [rbx+130h] jnb short loc_87030 loc_87027: cmp byte ptr [rbx+33Ch], 0 jz short loc_87071 loc_87030: mov rax, fs:28h cmp rax, [rbp+var_30] jnz loc_872AD or r12d, 20h mov rdi, rbx mov rsi, r14 mov rdx, r15 mov ecx, 970h mov r8d, r12d mov r9, r13 add rsp, 4D8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp _mi_search loc_87071: mov eax, [rbx+13Ch] cmp eax, [r14+1Ch] jnz short loc_870C5 cmp byte ptr [rbx+33Dh], 0 jz short loc_870DF mov [rbp+var_4F4], ecx mov r8, [rbx+100h] mov rdx, [rbx+198h] mov rdi, rbx mov rsi, r14 mov ecx, 3 xor r9d, r9d call _mi_fetch_keypage test rax, rax jz loc_87265 mov byte ptr [rbx+33Dh], 0 mov ecx, [rbp+var_4F4] jmp short loc_870DF loc_870C5: cmp dword ptr [rbx+138h], 0 jnz loc_87030 cmp byte ptr [rbx+33Dh], 0 jnz loc_87030 loc_870DF: mov rdx, [rbx+100h] xor edi, edi cmp byte ptr [rdx], 0 jns short loc_870F6 mov rax, [rbx] mov edi, [rax+17Ch] loc_870F6: test r12b, 8 mov [rbp+var_4F4], edi jnz loc_871B5 mov r8, [rbx+128h] lea rcx, [rbp+var_4F0] lea r9, [rbp+var_4F8] mov rdi, rbx mov rsi, r14 call _mi_get_last_key mov [rbx+128h], rax test rax, rax jz loc_87265 mov rcx, [rbx+100h] add rcx, 2 or r12d, 20h cmp rax, rcx jz loc_8726D mov edi, [rbp+var_4F4] mov rsi, rax call _mi_kpos mov rdi, rbx mov rsi, r14 mov rdx, r15 mov ecx, 970h mov r8d, r12d mov r9, rax call _mi_search test eax, eax jle loc_87286 mov rdx, [rbx+100h] mov r8, [rbx+128h] lea r15, [rbx+1D8h] lea rcx, [rbp+var_4F0] mov rdi, rbx mov rsi, r14 mov r9, r15 call _mi_get_last_key test rax, rax jz loc_87265 mov eax, [r15] jmp short loc_8722D loc_871B5: mov r13d, ecx mov rsi, [rbx+128h] call _mi_kpos cmp rax, 0FFFFFFFFFFFFFFFFh jz short loc_871EF or r12d, 20h mov rdi, rbx mov rsi, r14 mov rdx, r15 mov ecx, 970h mov r8d, r12d mov r9, rax call _mi_search test eax, eax jle loc_87286 loc_871EF: lea r12, [rbx+128h] mov edx, r13d lea r13, [rbp+var_4F0] mov ecx, 4B8h mov rdi, r13 mov rsi, r15 call ___memcpy_chk mov rdi, r14 mov esi, [rbp+var_4F4] mov rdx, r12 mov rcx, r13 call qword ptr [r14+48h] mov [rbx+1D8h], eax test eax, eax jz short loc_87265 loc_8722D: mov rdi, [rbx+108h] mov edx, eax lea rsi, [rbp+var_4F0] call _memcpy mov edx, [rbx+1D8h] add rdx, [rbx+108h] xor r12d, r12d mov rdi, rbx xor esi, esi call _mi_dpos mov [rbx+170h], rax jmp short loc_87289 loc_87265: mov r12d, 0FFFFFFFFh jmp short loc_87289 loc_8726D: mov rdi, rbx mov rsi, r14 mov rdx, r15 mov ecx, 970h mov r8d, r12d mov r9, r13 call _mi_search loc_87286: mov r12d, eax loc_87289: mov rax, fs:28h cmp rax, [rbp+var_30] jnz short loc_872AD mov eax, r12d add rsp, 4D8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_872AD: call ___stack_chk_fail
long long mi_search_next(long long a1, long long a2, long long a3, unsigned int a4, int a5, long long a6) { char *v11; // rdx unsigned int v12; // edi char *last_key; // rax unsigned int v14; // r12d unsigned long long v15; // rax int v16; // eax unsigned int v17; // eax unsigned int v18; // r13d unsigned long long v19; // rax unsigned int v20; // r12d int v21; // [rsp+8h] [rbp-4F8h] BYREF unsigned int v22; // [rsp+Ch] [rbp-4F4h] _BYTE v23[1216]; // [rsp+10h] [rbp-4F0h] BYREF unsigned long long v24; // [rsp+4D0h] [rbp-30h] v24 = __readfsqword(0x28u); if ( (a5 & 8) != 0 && *(_QWORD *)(a1 + 296) >= *(_QWORD *)(a1 + 304) || *(_BYTE *)(a1 + 828) ) return mi_search(a1, a2, a3, 0x970u, a5 | 0x20u, a6); if ( *(_DWORD *)(a1 + 316) == *(_DWORD *)(a2 + 28) ) { if ( *(_BYTE *)(a1 + 829) ) { v22 = a4; if ( !mi_fetch_keypage((_QWORD *)a1, a2, *(_QWORD *)(a1 + 408)) ) return (unsigned int)-1; *(_BYTE *)(a1 + 829) = 0; a4 = v22; } } else if ( *(_DWORD *)(a1 + 312) || *(_BYTE *)(a1 + 829) ) { return mi_search(a1, a2, a3, 0x970u, a5 | 0x20u, a6); } v11 = *(char **)(a1 + 256); v12 = 0; if ( *v11 < 0 ) v12 = *(_DWORD *)(*(_QWORD *)a1 + 380LL); v22 = v12; if ( (a5 & 8) != 0 ) { v18 = a4; v19 = mi_kpos(v12, *(_QWORD *)(a1 + 296)); if ( v19 != -1LL ) { v16 = mi_search(a1, a2, a3, 0x970u, a5 | 0x20u, v19); if ( v16 <= 0 ) return (unsigned int)v16; } __memcpy_chk(v23, a3, v18, 1208LL); v17 = (*(long long ( **)(long long, _QWORD, long long, _BYTE *))(a2 + 72))(a2, v22, a1 + 296, v23); *(_DWORD *)(a1 + 472) = v17; if ( v17 ) goto LABEL_22; return (unsigned int)-1; } last_key = mi_get_last_key(a1, a2, v11, v23, *(_QWORD *)(a1 + 296), &v21); *(_QWORD *)(a1 + 296) = last_key; if ( !last_key ) return (unsigned int)-1; v14 = a5 | 0x20; if ( last_key == (char *)(*(_QWORD *)(a1 + 256) + 2LL) ) return (unsigned int)mi_search(a1, a2, a3, 0x970u, v14, a6); v15 = mi_kpos(v22, (long long)last_key); v16 = mi_search(a1, a2, a3, 0x970u, v14, v15); if ( v16 <= 0 ) return (unsigned int)v16; if ( !mi_get_last_key(a1, a2, *(char **)(a1 + 256), v23, *(_QWORD *)(a1 + 296), (_DWORD *)(a1 + 472)) ) return (unsigned int)-1; v17 = *(_DWORD *)(a1 + 472); LABEL_22: memcpy(*(_QWORD *)(a1 + 264), v23, v17); v20 = 0; *(_QWORD *)(a1 + 368) = mi_dpos((long long *)a1, 0, *(_QWORD *)(a1 + 264) + *(unsigned int *)(a1 + 472)); return v20; }
_mi_search_next: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x4d8 MOV R13,R9 MOV R12D,R8D MOV R15,RDX MOV R14,RSI MOV RBX,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX TEST R12B,0x8 JZ 0x00187027 MOV RAX,qword ptr [RBX + 0x128] CMP RAX,qword ptr [RBX + 0x130] JNC 0x00187030 LAB_00187027: CMP byte ptr [RBX + 0x33c],0x0 JZ 0x00187071 LAB_00187030: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x001872ad OR R12D,0x20 MOV RDI,RBX MOV RSI,R14 MOV RDX,R15 MOV ECX,0x970 MOV R8D,R12D MOV R9,R13 ADD RSP,0x4d8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x00185363 LAB_00187071: MOV EAX,dword ptr [RBX + 0x13c] CMP EAX,dword ptr [R14 + 0x1c] JNZ 0x001870c5 CMP byte ptr [RBX + 0x33d],0x0 JZ 0x001870df MOV dword ptr [RBP + -0x4f4],ECX MOV R8,qword ptr [RBX + 0x100] MOV RDX,qword ptr [RBX + 0x198] MOV RDI,RBX MOV RSI,R14 MOV ECX,0x3 XOR R9D,R9D CALL 0x00184f68 TEST RAX,RAX JZ 0x00187265 MOV byte ptr [RBX + 0x33d],0x0 MOV ECX,dword ptr [RBP + -0x4f4] JMP 0x001870df LAB_001870c5: CMP dword ptr [RBX + 0x138],0x0 JNZ 0x00187030 CMP byte ptr [RBX + 0x33d],0x0 JNZ 0x00187030 LAB_001870df: MOV RDX,qword ptr [RBX + 0x100] XOR EDI,EDI CMP byte ptr [RDX],0x0 JNS 0x001870f6 MOV RAX,qword ptr [RBX] MOV EDI,dword ptr [RAX + 0x17c] LAB_001870f6: TEST R12B,0x8 MOV dword ptr [RBP + -0x4f4],EDI JNZ 0x001871b5 MOV R8,qword ptr [RBX + 0x128] LEA RCX,[RBP + -0x4f0] LEA R9,[RBP + -0x4f8] MOV RDI,RBX MOV RSI,R14 CALL 0x00186dd2 MOV qword ptr [RBX + 0x128],RAX TEST RAX,RAX JZ 0x00187265 MOV RCX,qword ptr [RBX + 0x100] ADD RCX,0x2 OR R12D,0x20 CMP RAX,RCX JZ 0x0018726d MOV EDI,dword ptr [RBP + -0x4f4] MOV RSI,RAX CALL 0x001858e2 MOV RDI,RBX MOV RSI,R14 MOV RDX,R15 MOV ECX,0x970 MOV R8D,R12D MOV R9,RAX CALL 0x00185363 TEST EAX,EAX JLE 0x00187286 MOV RDX,qword ptr [RBX + 0x100] MOV R8,qword ptr [RBX + 0x128] LEA R15,[RBX + 0x1d8] LEA RCX,[RBP + -0x4f0] MOV RDI,RBX MOV RSI,R14 MOV R9,R15 CALL 0x00186dd2 TEST RAX,RAX JZ 0x00187265 MOV EAX,dword ptr [R15] JMP 0x0018722d LAB_001871b5: MOV R13D,ECX MOV RSI,qword ptr [RBX + 0x128] CALL 0x001858e2 CMP RAX,-0x1 JZ 0x001871ef OR R12D,0x20 MOV RDI,RBX MOV RSI,R14 MOV RDX,R15 MOV ECX,0x970 MOV R8D,R12D MOV R9,RAX CALL 0x00185363 TEST EAX,EAX JLE 0x00187286 LAB_001871ef: LEA R12,[RBX + 0x128] MOV EDX,R13D LEA R13,[RBP + -0x4f0] MOV ECX,0x4b8 MOV RDI,R13 MOV RSI,R15 CALL 0x00129410 MOV RDI,R14 MOV ESI,dword ptr [RBP + -0x4f4] MOV RDX,R12 MOV RCX,R13 CALL qword ptr [R14 + 0x48] MOV dword ptr [RBX + 0x1d8],EAX TEST EAX,EAX JZ 0x00187265 LAB_0018722d: MOV RDI,qword ptr [RBX + 0x108] MOV EDX,EAX LEA RSI,[RBP + -0x4f0] CALL 0x00129080 MOV EDX,dword ptr [RBX + 0x1d8] ADD RDX,qword ptr [RBX + 0x108] XOR R12D,R12D MOV RDI,RBX XOR ESI,ESI CALL 0x001859c1 MOV qword ptr [RBX + 0x170],RAX JMP 0x00187289 LAB_00187265: MOV R12D,0xffffffff JMP 0x00187289 LAB_0018726d: MOV RDI,RBX MOV RSI,R14 MOV RDX,R15 MOV ECX,0x970 MOV R8D,R12D MOV R9,R13 CALL 0x00185363 LAB_00187286: MOV R12D,EAX LAB_00187289: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x001872ad MOV EAX,R12D ADD RSP,0x4d8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001872ad: CALL 0x00129250
ulong _mi_search_next(long *param_1,long param_2,int8 param_3,int4 param_4,uint param_5, int8 param_6) { uint uVar1; ulong uVar2; long lVar3; int8 uVar4; long in_FS_OFFSET; int1 local_500 [4]; int4 local_4fc; int1 local_4f8 [1216]; long local_38; local_38 = *(long *)(in_FS_OFFSET + 0x28); if ((((param_5 & 8) == 0) || ((ulong)param_1[0x25] < (ulong)param_1[0x26])) && (*(char *)((long)param_1 + 0x33c) == '\0')) { if (*(int *)((long)param_1 + 0x13c) == *(int *)(param_2 + 0x1c)) { if (*(char *)((long)param_1 + 0x33d) == '\0') { LAB_001870df: local_4fc = 0; if (*(char *)param_1[0x20] < '\0') { local_4fc = *(int4 *)(*param_1 + 0x17c); } if ((param_5 & 8) == 0) { lVar3 = _mi_get_last_key(param_1,param_2,(char *)param_1[0x20],local_4f8,param_1[0x25], local_500); param_1[0x25] = lVar3; if (lVar3 == 0) goto LAB_00187265; if (lVar3 == param_1[0x20] + 2) { uVar1 = _mi_search(param_1,param_2,param_3,0x970,param_5 | 0x20,param_6); } else { uVar4 = _mi_kpos(local_4fc,lVar3); uVar1 = _mi_search(param_1,param_2,param_3,0x970,param_5 | 0x20,uVar4); if (0 < (int)uVar1) { lVar3 = _mi_get_last_key(param_1,param_2,param_1[0x20],local_4f8,param_1[0x25], param_1 + 0x3b); if (lVar3 != 0) { uVar1 = *(uint *)(param_1 + 0x3b); goto LAB_0018722d; } goto LAB_00187265; } } LAB_00187286: uVar2 = (ulong)uVar1; } else { lVar3 = _mi_kpos(local_4fc,param_1[0x25]); if (lVar3 != -1) { uVar1 = _mi_search(param_1,param_2,param_3,0x970,param_5 | 0x20,lVar3); if ((int)uVar1 < 1) goto LAB_00187286; } __memcpy_chk(local_4f8,param_3,param_4,0x4b8); uVar1 = (**(code **)(param_2 + 0x48))(param_2,local_4fc,param_1 + 0x25,local_4f8); *(uint *)(param_1 + 0x3b) = uVar1; if (uVar1 == 0) goto LAB_00187265; LAB_0018722d: memcpy((void *)param_1[0x21],local_4f8,(ulong)uVar1); uVar2 = 0; lVar3 = _mi_dpos(param_1,0,(ulong)*(uint *)(param_1 + 0x3b) + param_1[0x21]); param_1[0x2e] = lVar3; } } else { local_4fc = param_4; lVar3 = _mi_fetch_keypage(param_1,param_2,param_1[0x33],3,param_1[0x20],0); if (lVar3 != 0) { *(int1 *)((long)param_1 + 0x33d) = 0; param_4 = local_4fc; goto LAB_001870df; } LAB_00187265: uVar2 = 0xffffffff; } if (*(long *)(in_FS_OFFSET + 0x28) == local_38) { return uVar2; } goto LAB_001872ad; } if (((int)param_1[0x27] == 0) && (*(char *)((long)param_1 + 0x33d) == '\0')) goto LAB_001870df; } if (*(long *)(in_FS_OFFSET + 0x28) == local_38) { uVar2 = _mi_search(param_1,param_2,param_3,0x970,param_5 | 0x20,param_6); return uVar2; } LAB_001872ad: /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
60,335
double minja::Value::get<double>() const
monkey531[P]llama/common/minja.hpp
T get() const { if (is_primitive()) return primitive_.get<T>(); throw std::runtime_error("get<T> not defined for this value type: " + dump()); }
O1
cpp
double minja::Value::get<double>() const: pushq %rbp pushq %r14 pushq %rbx subq $0x40, %rsp movq %rdi, %r14 cmpq $0x0, 0x10(%rdi) jne 0x8b2ce cmpq $0x0, 0x20(%r14) jne 0x8b2ce cmpq $0x0, 0x30(%r14) jne 0x8b2ce addq $0x40, %r14 movq %rsp, %rbx movq $0x0, (%rbx) movq %r14, %rdi movq %rbx, %rsi callq 0x8bfd9 movsd (%rbx), %xmm0 addq $0x40, %rsp popq %rbx popq %r14 popq %rbp retq movl $0x10, %edi callq 0x1b480 movq %rax, %rbx leaq 0x20(%rsp), %rdi movq %r14, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0x8b3be leaq 0x6b6b5(%rip), %rsi # 0xf69ab movq %rsp, %rdi leaq 0x20(%rsp), %rdx callq 0x7d29b movb $0x1, %bpl movq %rsp, %rsi movq %rbx, %rdi callq 0x1bf20 xorl %ebp, %ebp movq 0xa7cce(%rip), %rsi # 0x132fe8 movq 0xa7c2f(%rip), %rdx # 0x132f50 movq %rbx, %rdi callq 0x1c040 movq %rax, %r14 leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x8b34f movq 0x10(%rsp), %rsi incq %rsi callq 0x1b930 jmp 0x8b34f movq %rax, %r14 movb $0x1, %bpl leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x8b372 movq 0x30(%rsp), %rsi incq %rsi callq 0x1b930 jmp 0x8b372 movq %rax, %r14 movb $0x1, %bpl testb %bpl, %bpl je 0x8b37f movq %rbx, %rdi callq 0x1b6c0 movq %r14, %rdi callq 0x1c0d0 nop
_ZNK5minja5Value3getIdEET_v: push rbp push r14 push rbx sub rsp, 40h mov r14, rdi cmp qword ptr [rdi+10h], 0 jnz short loc_8B2CE cmp qword ptr [r14+20h], 0 jnz short loc_8B2CE cmp qword ptr [r14+30h], 0 jnz short loc_8B2CE add r14, 40h ; '@' mov rbx, rsp mov qword ptr [rbx], 0 mov rdi, r14 mov rsi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEdTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_ movsd xmm0, qword ptr [rbx] add rsp, 40h pop rbx pop r14 pop rbp retn loc_8B2CE: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rdi, [rsp+58h+var_38] mov rsi, r14 mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) lea rsi, aGetTNotDefined; "get<T> not defined for this value type:"... mov rdi, rsp lea rdx, [rsp+58h+var_38] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) mov bpl, 1 mov rsi, rsp mov rdi, rbx call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) xor ebp, ebp mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rax, [rsp+58h+var_48] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_8B34F mov rsi, [rsp+58h+var_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_8B34F mov r14, rax mov bpl, 1 loc_8B34F: lea rax, [rsp+58h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_8B372 mov rsi, [rsp+58h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_8B372 mov r14, rax mov bpl, 1 loc_8B372: test bpl, bpl jz short loc_8B37F mov rdi, rbx; void * call ___cxa_free_exception loc_8B37F: mov rdi, r14 call __Unwind_Resume
get<double>: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x40 MOV R14,RDI CMP qword ptr [RDI + 0x10],0x0 JNZ 0x0018b2ce CMP qword ptr [R14 + 0x20],0x0 JNZ 0x0018b2ce CMP qword ptr [R14 + 0x30],0x0 JNZ 0x0018b2ce ADD R14,0x40 MOV RBX,RSP MOV qword ptr [RBX],0x0 MOV RDI,R14 MOV RSI,RBX CALL 0x0018bfd9 MOVSD XMM0,qword ptr [RBX] ADD RSP,0x40 POP RBX POP R14 POP RBP RET LAB_0018b2ce: MOV EDI,0x10 CALL 0x0011b480 MOV RBX,RAX LAB_0018b2db: LEA RDI,[RSP + 0x20] MOV RSI,R14 MOV EDX,0xffffffff XOR ECX,ECX CALL 0x0018b3be LAB_0018b2ef: LEA RSI,[0x1f69ab] MOV RDI,RSP LEA RDX,[RSP + 0x20] CALL 0x0017d29b MOV BPL,0x1 LAB_0018b306: MOV RSI,RSP MOV RDI,RBX CALL 0x0011bf20 XOR EBP,EBP MOV RSI,qword ptr [0x00232fe8] MOV RDX,qword ptr [0x00232f50] MOV RDI,RBX CALL 0x0011c040
/* double minja::Value::get<double>() const */ double __thiscall minja::Value::get<double>(Value *this) { runtime_error *this_00; double local_58 [4]; int1 local_38 [32]; if (((*(long *)(this + 0x10) == 0) && (*(long *)(this + 0x20) == 0)) && (*(long *)(this + 0x30) == 0)) { local_58[0] = 0.0; _ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEdTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_ (this + 0x40,local_58); return local_58[0]; } this_00 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0018b2db to 0018b2ee has its CatchHandler @ 0018b36c */ dump_abi_cxx11_((int)local_38,SUB81(this,0)); /* try { // try from 0018b2ef to 0018b302 has its CatchHandler @ 0018b349 */ std::operator+((char *)local_58,(string *)"get<T> not defined for this value type: "); /* try { // try from 0018b306 to 0018b328 has its CatchHandler @ 0018b329 */ std::runtime_error::runtime_error(this_00,(string *)local_58); /* WARNING: Subroutine does not return */ __cxa_throw(this_00,PTR_typeinfo_00232fe8,PTR__runtime_error_00232f50); }
60,336
gguf_set_val_bool
monkey531[P]llama/ggml/src/gguf.cpp
void gguf_set_val_bool(struct gguf_context * ctx, const char * key, bool val) { gguf_check_reserved_keys(key, val); gguf_remove_key(ctx, key); ctx->kv.emplace_back(key, val); }
O1
cpp
gguf_set_val_bool: pushq %r14 pushq %rbx subq $0x38, %rsp movq %rdi, %rbx movq %rsi, 0x10(%rsp) movb %dl, 0xe(%rsp) leaq 0x18(%rsp), %r14 leaq 0xf(%rsp), %rdx movq %r14, %rdi callq 0x17d00 leaq 0x1b8c1(%rip), %rsi # 0x59d81 movq %r14, %rdi callq 0x163e0 testl %eax, %eax je 0x3e513 leaq 0x28(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x3e4e7 movq 0x28(%rsp), %rsi incq %rsi callq 0x17080 leaq 0x10(%rsp), %r14 movq (%r14), %rsi movq %rbx, %rdi callq 0x17660 addq $0x8, %rbx leaq 0xe(%rsp), %rdx movq %rbx, %rdi movq %r14, %rsi callq 0x160c0 addq $0x38, %rsp popq %rbx popq %r14 retq leaq 0x1b7fb(%rip), %rdi # 0x59d15 leaq 0x1c054(%rip), %rdx # 0x5a575 movl $0x3a7, %esi # imm = 0x3A7 xorl %eax, %eax callq 0x17c70 movq %rax, %rbx leaq 0x28(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x3e54b movq 0x28(%rsp), %rsi incq %rsi callq 0x17080 movq %rbx, %rdi callq 0x17e30
gguf_set_val_bool: push r14 push rbx sub rsp, 38h mov rbx, rdi mov [rsp+48h+var_38], rsi mov [rsp+48h+var_3A], dl lea r14, [rsp+48h+var_30] lea rdx, [rsp+48h+var_39] mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rsi, aGeneralAlignme; "general.alignment" mov rdi, r14 call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz short loc_3E513 lea rax, [rsp+48h+var_20] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_3E4E7 mov rsi, [rsp+48h+var_20] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3E4E7: lea r14, [rsp+48h+var_38] mov rsi, [r14] mov rdi, rbx call _gguf_remove_key add rbx, 8 lea rdx, [rsp+48h+var_3A] mov rdi, rbx mov rsi, r14 call __ZNSt6vectorI7gguf_kvSaIS0_EE12emplace_backIJRPKcRbEEERS0_DpOT_; std::vector<gguf_kv>::emplace_back<char const*&,bool &>(char const*&,bool &) add rsp, 38h pop rbx pop r14 retn loc_3E513: lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGeneralAlignme_0; "general.alignment must be type u32" mov esi, 3A7h xor eax, eax call _ggml_abort mov rbx, rax lea rax, [rsp+48h+var_20] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_3E54B mov rsi, [rsp+48h+var_20] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3E54B: mov rdi, rbx call __Unwind_Resume
long long gguf_set_val_bool(long long a1, long long a2, char a3) { int v3; // ecx int v4; // r8d int v5; // r9d char v7; // [rsp+Eh] [rbp-3Ah] BYREF char v8; // [rsp+Fh] [rbp-39h] BYREF long long v9; // [rsp+10h] [rbp-38h] BYREF void *v10[2]; // [rsp+18h] [rbp-30h] BYREF long long v11; // [rsp+28h] [rbp-20h] BYREF v9 = a2; v7 = a3; std::string::basic_string<std::allocator<char>>(v10, a2, &v8); if ( !(unsigned int)std::string::compare(v10, "general.alignment") ) ggml_abort( (unsigned int)"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/ggml/src/gguf.cpp", 935, (unsigned int)"general.alignment must be type u32", v3, v4, v5); if ( v10[0] != &v11 ) operator delete(v10[0], v11 + 1); gguf_remove_key(a1, v9); return std::vector<gguf_kv>::emplace_back<char const*&,bool &>(a1 + 8, &v9, &v7); }
gguf_set_val_bool: PUSH R14 PUSH RBX SUB RSP,0x38 MOV RBX,RDI MOV qword ptr [RSP + 0x10],RSI MOV byte ptr [RSP + 0xe],DL LEA R14,[RSP + 0x18] LEA RDX,[RSP + 0xf] MOV RDI,R14 CALL 0x00117d00 LEA RSI,[0x159d81] MOV RDI,R14 CALL 0x001163e0 TEST EAX,EAX JZ 0x0013e513 LEA RAX,[RSP + 0x28] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0013e4e7 MOV RSI,qword ptr [RSP + 0x28] INC RSI CALL 0x00117080 LAB_0013e4e7: LEA R14,[RSP + 0x10] MOV RSI,qword ptr [R14] MOV RDI,RBX CALL 0x00117660 ADD RBX,0x8 LEA RDX,[RSP + 0xe] MOV RDI,RBX MOV RSI,R14 CALL 0x001160c0 ADD RSP,0x38 POP RBX POP R14 RET LAB_0013e513: LEA RDI,[0x159d15] LEA RDX,[0x15a575] MOV ESI,0x3a7 XOR EAX,EAX CALL 0x00117c70
void gguf_set_val_bool(long param_1,char *param_2,int1 param_3) { int iVar1; bool local_3a; allocator local_39; char *local_38; long *local_30 [2]; long local_20 [2]; local_3a = (bool)param_3; local_38 = param_2; std::__cxx11::string::string<std::allocator<char>>((string *)local_30,param_2,&local_39); iVar1 = std::__cxx11::string::compare((char *)local_30); if (iVar1 != 0) { if (local_30[0] != local_20) { operator_delete(local_30[0],local_20[0] + 1); } gguf_remove_key(param_1,local_38); std::vector<gguf_kv,std::allocator<gguf_kv>>::emplace_back<char_const*&,bool&> ((vector<gguf_kv,std::allocator<gguf_kv>> *)(param_1 + 8),&local_38,&local_3a); return; } /* try { // try from 0013e513 to 0013e52c has its CatchHandler @ 0013e52d */ /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/ggml/src/gguf.cpp",0x3a7, "general.alignment must be type u32"); }
60,337
gguf_set_val_bool
monkey531[P]llama/ggml/src/gguf.cpp
void gguf_set_val_bool(struct gguf_context * ctx, const char * key, bool val) { gguf_check_reserved_keys(key, val); gguf_remove_key(ctx, key); ctx->kv.emplace_back(key, val); }
O3
cpp
gguf_set_val_bool: pushq %r15 pushq %r14 pushq %rbx subq $0x30, %rsp movq %rsi, %r14 movq %rdi, %rbx movq %rsi, 0x8(%rsp) movb %dl, 0x6(%rsp) leaq 0x10(%rsp), %r15 leaq 0x7(%rsp), %rdx movq %r15, %rdi callq 0x17cf0 leaq 0x1bb55(%rip), %rsi # 0x59d41 movq %r15, %rdi callq 0x163e0 testl %eax, %eax je 0x3e23e leaq 0x20(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x3e213 movq 0x20(%rsp), %rsi incq %rsi callq 0x17070 movq %rbx, %rdi movq %r14, %rsi callq 0x17650 addq $0x8, %rbx leaq 0x8(%rsp), %rsi leaq 0x6(%rsp), %rdx movq %rbx, %rdi callq 0x160c0 addq $0x30, %rsp popq %rbx popq %r14 popq %r15 retq leaq 0x1ba90(%rip), %rdi # 0x59cd5 leaq 0x1c2e9(%rip), %rdx # 0x5a535 movl $0x3a7, %esi # imm = 0x3A7 xorl %eax, %eax callq 0x17c60 movq %rax, %rbx leaq 0x20(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x3e276 movq 0x20(%rsp), %rsi incq %rsi callq 0x17070 movq %rbx, %rdi callq 0x17e20
gguf_set_val_bool: push r15 push r14 push rbx sub rsp, 30h mov r14, rsi mov rbx, rdi mov [rsp+48h+var_40], rsi mov [rsp+48h+var_42], dl lea r15, [rsp+48h+var_38] lea rdx, [rsp+48h+var_41] mov rdi, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rsi, aGeneralAlignme; "general.alignment" mov rdi, r15 call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz short loc_3E23E lea rax, [rsp+48h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_3E213 mov rsi, [rsp+48h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3E213: mov rdi, rbx mov rsi, r14 call _gguf_remove_key add rbx, 8 lea rsi, [rsp+48h+var_40] lea rdx, [rsp+48h+var_42] mov rdi, rbx call __ZNSt6vectorI7gguf_kvSaIS0_EE12emplace_backIJRPKcRbEEERS0_DpOT_; std::vector<gguf_kv>::emplace_back<char const*&,bool &>(char const*&,bool &) add rsp, 30h pop rbx pop r14 pop r15 retn loc_3E23E: lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGeneralAlignme_0; "general.alignment must be type u32" mov esi, 3A7h xor eax, eax call _ggml_abort mov rbx, rax lea rax, [rsp+48h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_3E276 mov rsi, [rsp+48h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3E276: mov rdi, rbx call __Unwind_Resume
long long gguf_set_val_bool(long long a1, long long a2, char a3) { int v3; // ecx int v4; // r8d int v5; // r9d char v7; // [rsp+6h] [rbp-42h] BYREF char v8; // [rsp+7h] [rbp-41h] BYREF long long v9; // [rsp+8h] [rbp-40h] BYREF void *v10[2]; // [rsp+10h] [rbp-38h] BYREF long long v11; // [rsp+20h] [rbp-28h] BYREF v9 = a2; v7 = a3; std::string::basic_string<std::allocator<char>>(v10, a2, &v8); if ( !(unsigned int)std::string::compare(v10, "general.alignment") ) ggml_abort( (unsigned int)"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/ggml/src/gguf.cpp", 935, (unsigned int)"general.alignment must be type u32", v3, v4, v5); if ( v10[0] != &v11 ) operator delete(v10[0], v11 + 1); gguf_remove_key(a1, a2); return std::vector<gguf_kv>::emplace_back<char const*&,bool &>(a1 + 8, &v9, &v7); }
gguf_set_val_bool: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x30 MOV R14,RSI MOV RBX,RDI MOV qword ptr [RSP + 0x8],RSI MOV byte ptr [RSP + 0x6],DL LEA R15,[RSP + 0x10] LEA RDX,[RSP + 0x7] MOV RDI,R15 CALL 0x00117cf0 LEA RSI,[0x159d41] MOV RDI,R15 CALL 0x001163e0 TEST EAX,EAX JZ 0x0013e23e LEA RAX,[RSP + 0x20] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0013e213 MOV RSI,qword ptr [RSP + 0x20] INC RSI CALL 0x00117070 LAB_0013e213: MOV RDI,RBX MOV RSI,R14 CALL 0x00117650 ADD RBX,0x8 LEA RSI,[RSP + 0x8] LEA RDX,[RSP + 0x6] MOV RDI,RBX CALL 0x001160c0 ADD RSP,0x30 POP RBX POP R14 POP R15 RET LAB_0013e23e: LEA RDI,[0x159cd5] LEA RDX,[0x15a535] MOV ESI,0x3a7 XOR EAX,EAX CALL 0x00117c60
void gguf_set_val_bool(long param_1,char *param_2,int1 param_3) { int iVar1; bool local_42; allocator local_41; char *local_40; long *local_38 [2]; long local_28 [2]; local_42 = (bool)param_3; local_40 = param_2; std::__cxx11::string::string<std::allocator<char>>((string *)local_38,param_2,&local_41); iVar1 = std::__cxx11::string::compare((char *)local_38); if (iVar1 != 0) { if (local_38[0] != local_28) { operator_delete(local_38[0],local_28[0] + 1); } gguf_remove_key(param_1,param_2); std::vector<gguf_kv,std::allocator<gguf_kv>>::emplace_back<char_const*&,bool&> ((vector<gguf_kv,std::allocator<gguf_kv>> *)(param_1 + 8),&local_40,&local_42); return; } /* try { // try from 0013e23e to 0013e257 has its CatchHandler @ 0013e258 */ /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/ggml/src/gguf.cpp",0x3a7, "general.alignment must be type u32"); }
60,338
google::protobuf::StrCat[abi:cxx11](google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/stubs/strutil.cc
std::string StrCat(const AlphaNum &a, const AlphaNum &b, const AlphaNum &c, const AlphaNum &d, const AlphaNum &e, const AlphaNum &f) { std::string result; result.resize(a.size() + b.size() + c.size() + d.size() + e.size() + f.size()); char *const begin = &*result.begin(); char *out = Append4(begin, a, b, c, d); out = Append2(out, e, f); GOOGLE_DCHECK_EQ(out, begin + result.size()); return result; }
O0
cpp
google::protobuf::StrCat[abi:cxx11](google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&): subq $0x128, %rsp # imm = 0x128 movq %rdi, 0x70(%rsp) movq %rdi, %rax movq %rax, 0x78(%rsp) movq 0x130(%rsp), %rax movq %rdi, 0x120(%rsp) movq %rsi, 0x118(%rsp) movq %rdx, 0x110(%rsp) movq %rcx, 0x108(%rsp) movq %r8, 0x100(%rsp) movq %r9, 0xf8(%rsp) movb $0x0, 0xf7(%rsp) callq 0x13620 movq 0x118(%rsp), %rdi callq 0x30a80 movq %rax, 0x80(%rsp) jmp 0x2bc40 movq 0x110(%rsp), %rdi callq 0x30a80 movq %rax, 0x68(%rsp) jmp 0x2bc54 movq 0x68(%rsp), %rcx movq 0x80(%rsp), %rax addq %rcx, %rax movq %rax, 0x58(%rsp) movq 0x108(%rsp), %rdi callq 0x30a80 movq %rax, 0x60(%rsp) jmp 0x2bc7d movq 0x60(%rsp), %rcx movq 0x58(%rsp), %rax addq %rcx, %rax movq %rax, 0x48(%rsp) movq 0x100(%rsp), %rdi callq 0x30a80 movq %rax, 0x50(%rsp) jmp 0x2bca3 movq 0x50(%rsp), %rcx movq 0x48(%rsp), %rax addq %rcx, %rax movq %rax, 0x38(%rsp) movq 0xf8(%rsp), %rdi callq 0x30a80 movq %rax, 0x40(%rsp) jmp 0x2bcc9 movq 0x40(%rsp), %rcx movq 0x38(%rsp), %rax addq %rcx, %rax movq %rax, 0x28(%rsp) movq 0x130(%rsp), %rdi callq 0x30a80 movq %rax, 0x30(%rsp) jmp 0x2bcef movq 0x70(%rsp), %rdi movq 0x30(%rsp), %rax movq 0x28(%rsp), %rsi addq %rax, %rsi callq 0x13600 jmp 0x2bd08 movq 0x70(%rsp), %rdi callq 0x133b0 movq %rax, 0xd0(%rsp) leaq 0xd0(%rsp), %rdi callq 0x30a90 movq %rax, 0xd8(%rsp) movq 0xd8(%rsp), %rdi movq 0x118(%rsp), %rsi movq 0x110(%rsp), %rdx movq 0x108(%rsp), %rcx movq 0x100(%rsp), %r8 callq 0x2b770 movq %rax, 0x20(%rsp) jmp 0x2bd63 movq 0x20(%rsp), %rax movq %rax, 0xc8(%rsp) movq 0xc8(%rsp), %rdi movq 0xf8(%rsp), %rsi movq 0x130(%rsp), %rdx callq 0x2b150 movq %rax, 0x18(%rsp) jmp 0x2bd94 movq 0x18(%rsp), %rax movq %rax, 0xc8(%rsp) xorl %eax, %eax testb $0x1, %al jne 0x2bdac jmp 0x2bea9 movq 0x70(%rsp), %rdi movq 0xc8(%rsp), %rax movq %rax, 0x10(%rsp) movq 0xd8(%rsp), %rax movq %rax, 0x8(%rsp) callq 0x147d0 movq 0x8(%rsp), %rcx movq %rax, %rdx movq 0x10(%rsp), %rax addq %rdx, %rcx movb $0x0, 0x8f(%rsp) cmpq %rcx, %rax jne 0x2bdef jmp 0x2be46 leaq 0x1c0e9a(%rip), %rdx # 0x1ecc90 leaq 0x90(%rsp), %rdi movl $0x3, %esi movl $0x5f0, %ecx # imm = 0x5F0 callq 0x237e0 jmp 0x2be0f movb $0x1, 0x8f(%rsp) leaq 0x1c10d3(%rip), %rsi # 0x1ecef1 leaq 0x90(%rsp), %rdi callq 0x230a0 movq %rax, (%rsp) jmp 0x2be31 movq (%rsp), %rsi leaq 0x8e(%rsp), %rdi callq 0x23250 jmp 0x2be44 jmp 0x2be46 testb $0x1, 0x8f(%rsp) jne 0x2be52 jmp 0x2be5f leaq 0x90(%rsp), %rdi callq 0x23820 jmp 0x2bda1 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xe8(%rsp) movl %eax, 0xe4(%rsp) jmp 0x2bed2 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xe8(%rsp) movl %eax, 0xe4(%rsp) testb $0x1, 0x8f(%rsp) jne 0x2be9a jmp 0x2bea7 leaq 0x90(%rsp), %rdi callq 0x23820 jmp 0x2bed2 movb $0x1, 0xf7(%rsp) testb $0x1, 0xf7(%rsp) jne 0x2bec5 movq 0x70(%rsp), %rdi callq 0x13290 movq 0x78(%rsp), %rax addq $0x128, %rsp # imm = 0x128 retq movq 0x70(%rsp), %rdi callq 0x13290 movq 0xe8(%rsp), %rdi callq 0x13750 nopl (%rax)
_ZN6google8protobuf6StrCatB5cxx11ERKNS0_7strings8AlphaNumES4_S4_S4_S4_S4_: sub rsp, 128h mov [rsp+128h+var_B8], rdi mov rax, rdi mov [rsp+128h+var_B0], rax mov rax, [rsp+128h+arg_0] mov [rsp+128h+var_8], rdi mov [rsp+128h+var_10], rsi mov [rsp+128h+var_18], rdx mov [rsp+128h+var_20], rcx mov [rsp+128h+var_28], r8 mov [rsp+128h+var_30], r9 mov [rsp+128h+var_31], 0 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev; std::string::basic_string(void) mov rdi, [rsp+128h+var_10]; this call _ZNK6google8protobuf7strings8AlphaNum4sizeEv; google::protobuf::strings::AlphaNum::size(void) mov [rsp+128h+var_A8], rax jmp short $+2 loc_2BC40: mov rdi, [rsp+128h+var_18]; this call _ZNK6google8protobuf7strings8AlphaNum4sizeEv; google::protobuf::strings::AlphaNum::size(void) mov [rsp+128h+var_C0], rax jmp short $+2 loc_2BC54: mov rcx, [rsp+128h+var_C0] mov rax, [rsp+128h+var_A8] add rax, rcx mov [rsp+128h+var_D0], rax mov rdi, [rsp+128h+var_20]; this call _ZNK6google8protobuf7strings8AlphaNum4sizeEv; google::protobuf::strings::AlphaNum::size(void) mov [rsp+128h+var_C8], rax jmp short $+2 loc_2BC7D: mov rcx, [rsp+128h+var_C8] mov rax, [rsp+128h+var_D0] add rax, rcx mov [rsp+128h+var_E0], rax mov rdi, [rsp+128h+var_28]; this call _ZNK6google8protobuf7strings8AlphaNum4sizeEv; google::protobuf::strings::AlphaNum::size(void) mov [rsp+128h+var_D8], rax jmp short $+2 loc_2BCA3: mov rcx, [rsp+128h+var_D8] mov rax, [rsp+128h+var_E0] add rax, rcx mov [rsp+128h+var_F0], rax mov rdi, [rsp+128h+var_30]; this call _ZNK6google8protobuf7strings8AlphaNum4sizeEv; google::protobuf::strings::AlphaNum::size(void) mov [rsp+128h+var_E8], rax jmp short $+2 loc_2BCC9: mov rcx, [rsp+128h+var_E8] mov rax, [rsp+128h+var_F0] add rax, rcx mov [rsp+128h+var_100], rax mov rdi, [rsp+128h+arg_0]; this call _ZNK6google8protobuf7strings8AlphaNum4sizeEv; google::protobuf::strings::AlphaNum::size(void) mov [rsp+128h+var_F8], rax jmp short $+2 loc_2BCEF: mov rdi, [rsp+128h+var_B8] mov rax, [rsp+128h+var_F8] mov rsi, [rsp+128h+var_100] add rsi, rax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm; std::string::resize(ulong) jmp short $+2 loc_2BD08: mov rdi, [rsp+128h+var_B8] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv; std::string::begin(void) mov [rsp+128h+var_58], rax lea rdi, [rsp+128h+var_58] call _ZNK9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv; __gnu_cxx::__normal_iterator<char *,std::string>::operator*(void) mov [rsp+128h+var_50], rax mov rdi, [rsp+128h+var_50]; this mov rsi, [rsp+128h+var_10]; char * mov rdx, [rsp+128h+var_18]; google::protobuf::strings::AlphaNum * mov rcx, [rsp+128h+var_20]; google::protobuf::strings::AlphaNum * mov r8, [rsp+128h+var_28]; google::protobuf::strings::AlphaNum * call _ZN6google8protobufL7Append4EPcRKNS0_7strings8AlphaNumES5_S5_S5_; google::protobuf::Append4(char *,google::protobuf::strings::AlphaNum const&,google::protobuf::strings::AlphaNum const&,google::protobuf::strings::AlphaNum const&,google::protobuf::strings::AlphaNum const&) mov [rsp+128h+var_108], rax jmp short $+2 loc_2BD63: mov rax, [rsp+128h+var_108] mov [rsp+128h+var_60], rax mov rdi, [rsp+128h+var_60]; this mov rsi, [rsp+128h+var_30]; char * mov rdx, [rsp+128h+arg_0]; google::protobuf::strings::AlphaNum * call _ZN6google8protobufL7Append2EPcRKNS0_7strings8AlphaNumES5_; google::protobuf::Append2(char *,google::protobuf::strings::AlphaNum const&,google::protobuf::strings::AlphaNum const&) mov [rsp+128h+var_110], rax jmp short $+2 loc_2BD94: mov rax, [rsp+128h+var_110] mov [rsp+128h+var_60], rax loc_2BDA1: xor eax, eax test al, 1 jnz short loc_2BDAC jmp loc_2BEA9 loc_2BDAC: mov rdi, [rsp+128h+var_B8] mov rax, [rsp+128h+var_60] mov [rsp+128h+var_118], rax mov rax, [rsp+128h+var_50] mov [rsp+128h+var_120], rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv; std::string::size(void) mov rcx, [rsp+128h+var_120] mov rdx, rax mov rax, [rsp+128h+var_118] add rcx, rdx mov [rsp+128h+var_99], 0 cmp rax, rcx jnz short loc_2BDEF jmp short loc_2BE46 loc_2BDEF: lea rdx, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/aimrt_"... lea rdi, [rsp+128h+var_98] mov esi, 3 mov ecx, 5F0h call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int) jmp short $+2 loc_2BE0F: mov [rsp+128h+var_99], 1 lea rsi, aCheckFailedOut; "CHECK failed: (out) == (begin + result."... lea rdi, [rsp+128h+var_98] call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) mov [rsp+128h+var_128], rax jmp short $+2 loc_2BE31: mov rsi, [rsp+128h+var_128] lea rdi, [rsp+128h+var_9A] call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &) jmp short $+2 loc_2BE44: jmp short $+2 loc_2BE46: test [rsp+128h+var_99], 1 jnz short loc_2BE52 jmp short loc_2BE5F loc_2BE52: lea rdi, [rsp+128h+var_98]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() loc_2BE5F: jmp loc_2BDA1 mov rcx, rax mov eax, edx mov [rsp+arg_E0], rcx mov [rsp+arg_DC], eax jmp short loc_2BED2 mov rcx, rax mov eax, edx mov [rsp+arg_E0], rcx mov [rsp+arg_DC], eax test [rsp+arg_87], 1 jnz short loc_2BE9A jmp short loc_2BEA7 loc_2BE9A: lea rdi, [rsp+arg_88]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() loc_2BEA7: jmp short loc_2BED2 loc_2BEA9: mov [rsp+128h+var_31], 1 test [rsp+128h+var_31], 1 jnz short loc_2BEC5 mov rdi, [rsp+128h+var_B8] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_2BEC5: mov rax, [rsp+128h+var_B0] add rsp, 128h retn loc_2BED2: mov rdi, [rsp+arg_68] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov rdi, [rsp+arg_E0] call __Unwind_Resume
long long google::protobuf::StrCat[abi:cxx11]( long long a1, google::protobuf::strings::AlphaNum *a2, google::protobuf::strings::AlphaNum *a3, google::protobuf::strings::AlphaNum *a4, google::protobuf::strings::AlphaNum *a5, google::protobuf::strings::AlphaNum *a6, google::protobuf::strings::AlphaNum *a7) { const google::protobuf::strings::AlphaNum *v7; // r9 const google::protobuf::strings::AlphaNum *v8; // rcx google::protobuf *v10; // [rsp+20h] [rbp-108h] long long v11; // [rsp+28h] [rbp-100h] long long v12; // [rsp+30h] [rbp-F8h] long long v13; // [rsp+38h] [rbp-F0h] long long v14; // [rsp+48h] [rbp-E0h] long long v15; // [rsp+58h] [rbp-D0h] long long v16; // [rsp+80h] [rbp-A8h] long long v17; // [rsp+D0h] [rbp-58h] BYREF google::protobuf *v18; // [rsp+D8h] [rbp-50h] char v19; // [rsp+F7h] [rbp-31h] google::protobuf::strings::AlphaNum *v20; // [rsp+F8h] [rbp-30h] google::protobuf::strings::AlphaNum *v21; // [rsp+100h] [rbp-28h] google::protobuf::strings::AlphaNum *v22; // [rsp+108h] [rbp-20h] google::protobuf::strings::AlphaNum *v23; // [rsp+110h] [rbp-18h] google::protobuf::strings::AlphaNum *v24; // [rsp+118h] [rbp-10h] long long v25; // [rsp+120h] [rbp-8h] v25 = a1; v24 = a2; v23 = a3; v22 = a4; v21 = a5; v20 = a6; v19 = 0; std::string::basic_string(a1); v16 = google::protobuf::strings::AlphaNum::size(a2); v15 = google::protobuf::strings::AlphaNum::size(v23) + v16; v14 = google::protobuf::strings::AlphaNum::size(v22) + v15; v13 = google::protobuf::strings::AlphaNum::size(v21) + v14; v11 = google::protobuf::strings::AlphaNum::size(v20) + v13; v12 = google::protobuf::strings::AlphaNum::size(a7); std::string::resize(a1, v12 + v11); v17 = std::string::begin(a1); v18 = (google::protobuf *)__gnu_cxx::__normal_iterator<char *,std::string>::operator*(&v17); v10 = google::protobuf::Append4(v18, v24, v23, v22, v21, v7); google::protobuf::Append2(v10, v20, a7, v8); return a1; }
StrCat[abi:cxx11]: SUB RSP,0x128 MOV qword ptr [RSP + 0x70],RDI MOV RAX,RDI MOV qword ptr [RSP + 0x78],RAX MOV RAX,qword ptr [RSP + 0x130] MOV qword ptr [RSP + 0x120],RDI MOV qword ptr [RSP + 0x118],RSI MOV qword ptr [RSP + 0x110],RDX MOV qword ptr [RSP + 0x108],RCX MOV qword ptr [RSP + 0x100],R8 MOV qword ptr [RSP + 0xf8],R9 MOV byte ptr [RSP + 0xf7],0x0 CALL 0x00113620 MOV RDI,qword ptr [RSP + 0x118] LAB_0012bc31: CALL 0x00130a80 MOV qword ptr [RSP + 0x80],RAX JMP 0x0012bc40 LAB_0012bc40: MOV RDI,qword ptr [RSP + 0x110] CALL 0x00130a80 MOV qword ptr [RSP + 0x68],RAX JMP 0x0012bc54 LAB_0012bc54: MOV RCX,qword ptr [RSP + 0x68] MOV RAX,qword ptr [RSP + 0x80] ADD RAX,RCX MOV qword ptr [RSP + 0x58],RAX MOV RDI,qword ptr [RSP + 0x108] CALL 0x00130a80 MOV qword ptr [RSP + 0x60],RAX JMP 0x0012bc7d LAB_0012bc7d: MOV RCX,qword ptr [RSP + 0x60] MOV RAX,qword ptr [RSP + 0x58] ADD RAX,RCX MOV qword ptr [RSP + 0x48],RAX MOV RDI,qword ptr [RSP + 0x100] CALL 0x00130a80 MOV qword ptr [RSP + 0x50],RAX JMP 0x0012bca3 LAB_0012bca3: MOV RCX,qword ptr [RSP + 0x50] MOV RAX,qword ptr [RSP + 0x48] ADD RAX,RCX MOV qword ptr [RSP + 0x38],RAX MOV RDI,qword ptr [RSP + 0xf8] CALL 0x00130a80 MOV qword ptr [RSP + 0x40],RAX JMP 0x0012bcc9 LAB_0012bcc9: MOV RCX,qword ptr [RSP + 0x40] MOV RAX,qword ptr [RSP + 0x38] ADD RAX,RCX MOV qword ptr [RSP + 0x28],RAX MOV RDI,qword ptr [RSP + 0x130] CALL 0x00130a80 MOV qword ptr [RSP + 0x30],RAX JMP 0x0012bcef LAB_0012bcef: MOV RDI,qword ptr [RSP + 0x70] MOV RAX,qword ptr [RSP + 0x30] MOV RSI,qword ptr [RSP + 0x28] ADD RSI,RAX CALL 0x00113600 JMP 0x0012bd08 LAB_0012bd08: MOV RDI,qword ptr [RSP + 0x70] CALL 0x001133b0 MOV qword ptr [RSP + 0xd0],RAX LEA RDI,[RSP + 0xd0] CALL 0x00130a90 MOV qword ptr [RSP + 0xd8],RAX MOV RDI,qword ptr [RSP + 0xd8] MOV RSI,qword ptr [RSP + 0x118] MOV RDX,qword ptr [RSP + 0x110] MOV RCX,qword ptr [RSP + 0x108] MOV R8,qword ptr [RSP + 0x100] CALL 0x0012b770 MOV qword ptr [RSP + 0x20],RAX JMP 0x0012bd63 LAB_0012bd63: MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0xc8],RAX MOV RDI,qword ptr [RSP + 0xc8] MOV RSI,qword ptr [RSP + 0xf8] MOV RDX,qword ptr [RSP + 0x130] CALL 0x0012b150 MOV qword ptr [RSP + 0x18],RAX JMP 0x0012bd94 LAB_0012bd94: MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0xc8],RAX LAB_0012bda1: XOR EAX,EAX TEST AL,0x1 JNZ 0x0012bdac JMP 0x0012bea9 LAB_0012bdac: MOV RDI,qword ptr [RSP + 0x70] MOV RAX,qword ptr [RSP + 0xc8] MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [RSP + 0xd8] MOV qword ptr [RSP + 0x8],RAX CALL 0x001147d0 MOV RCX,qword ptr [RSP + 0x8] MOV RDX,RAX MOV RAX,qword ptr [RSP + 0x10] ADD RCX,RDX MOV byte ptr [RSP + 0x8f],0x0 CMP RAX,RCX JNZ 0x0012bdef JMP 0x0012be46 LAB_0012bdef: LEA RDX,[0x2ecc90] LEA RDI,[RSP + 0x90] MOV ESI,0x3 MOV ECX,0x5f0 CALL 0x001237e0 JMP 0x0012be0f LAB_0012be0f: MOV byte ptr [RSP + 0x8f],0x1 LAB_0012be17: LEA RSI,[0x2ecef1] LEA RDI,[RSP + 0x90] CALL 0x001230a0 MOV qword ptr [RSP],RAX JMP 0x0012be31 LAB_0012be31: MOV RSI,qword ptr [RSP] LEA RDI,[RSP + 0x8e] CALL 0x00123250 LAB_0012be42: JMP 0x0012be44 LAB_0012be44: JMP 0x0012be46 LAB_0012be46: TEST byte ptr [RSP + 0x8f],0x1 JNZ 0x0012be52 JMP 0x0012be5f LAB_0012be52: LEA RDI,[RSP + 0x90] CALL 0x00123820 LAB_0012be5f: JMP 0x0012bda1 LAB_0012bea9: MOV byte ptr [RSP + 0xf7],0x1 TEST byte ptr [RSP + 0xf7],0x1 JNZ 0x0012bec5 MOV RDI,qword ptr [RSP + 0x70] CALL 0x00113290 LAB_0012bec5: MOV RAX,qword ptr [RSP + 0x78] ADD RSP,0x128 RET
/* WARNING: Removing unreachable block (ram,0x0012bdac) */ /* WARNING: Removing unreachable block (ram,0x0012bdef) */ /* WARNING: Removing unreachable block (ram,0x0012bded) */ /* WARNING: Removing unreachable block (ram,0x0012be46) */ /* WARNING: Removing unreachable block (ram,0x0012be52) */ /* WARNING: Removing unreachable block (ram,0x0012be50) */ /* WARNING: Removing unreachable block (ram,0x0012be5f) */ /* WARNING: Removing unreachable block (ram,0x0012bebb) */ /* google::protobuf::StrCat[abi:cxx11](google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&) */ protobuf * __thiscall google::protobuf::StrCat_abi_cxx11_ (protobuf *this,AlphaNum *param_1,AlphaNum *param_2,AlphaNum *param_3,AlphaNum *param_4, AlphaNum *param_5,AlphaNum *param_6) { char *pcVar1; int8 local_58; char *local_50; int1 local_31; AlphaNum *local_30; AlphaNum *local_28; AlphaNum *local_20; AlphaNum *local_18; AlphaNum *local_10; protobuf *local_8; local_31 = 0; local_30 = param_5; local_28 = param_4; local_20 = param_3; local_18 = param_2; local_10 = param_1; local_8 = this; std::__cxx11::string::string((string *)this); /* try { // try from 0012bc31 to 0012be0c has its CatchHandler @ 0012be64 */ strings::AlphaNum::size(local_10); strings::AlphaNum::size(local_18); strings::AlphaNum::size(local_20); strings::AlphaNum::size(local_28); strings::AlphaNum::size(local_30); strings::AlphaNum::size(param_6); std::__cxx11::string::resize((ulong)this); local_58 = std::__cxx11::string::begin(); local_50 = (char *)__gnu_cxx::__normal_iterator<char*,std::__cxx11::string>::operator* ((__normal_iterator<char*,std::__cxx11::string> *)&local_58); pcVar1 = (char *)Append4(local_50,local_10,local_18,local_20,local_28); Append2(pcVar1,local_30,param_6); return this; }
60,339
ggml_backend_cpu_graph_plan_create(ggml_backend*, ggml_cgraph const*)
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.cpp
static ggml_backend_graph_plan_t ggml_backend_cpu_graph_plan_create(ggml_backend_t backend, const struct ggml_cgraph * cgraph) { struct ggml_backend_cpu_context * cpu_ctx = (struct ggml_backend_cpu_context *)backend->context; struct ggml_backend_plan_cpu * cpu_plan = new ggml_backend_plan_cpu; cpu_plan->cplan = ggml_graph_plan(cgraph, cpu_ctx->n_threads, cpu_ctx->threadpool); cpu_plan->cgraph = *cgraph; // FIXME: deep copy if (cpu_plan->cplan.work_size > 0) { cpu_plan->cplan.work_data = new uint8_t[cpu_plan->cplan.work_size]; if (cpu_plan->cplan.work_data == NULL) { delete cpu_plan; return NULL; } } cpu_plan->cplan.abort_callback = cpu_ctx->abort_callback; cpu_plan->cplan.abort_callback_data = cpu_ctx->abort_callback_data; return cpu_plan; }
O0
cpp
ggml_backend_cpu_graph_plan_create(ggml_backend*, ggml_cgraph const*): pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rax movq 0x78(%rax), %rax movq %rax, -0x20(%rbp) movl $0x80, %edi callq 0xdac0 movq %rax, -0x28(%rbp) movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rax movl (%rax), %edx movq -0x20(%rbp), %rax movq 0x8(%rax), %rcx leaq -0x58(%rbp), %rdi callq 0xe540 movq -0x28(%rbp), %rdi leaq -0x58(%rbp), %rsi movl $0x30, %edx callq 0xd8a0 movq -0x18(%rbp), %rsi movq -0x28(%rbp), %rdi addq $0x30, %rdi movl $0x50, %edx callq 0xd8a0 movq -0x28(%rbp), %rax cmpq $0x0, (%rax) jbe 0x3e7b1 movq -0x28(%rbp), %rax movq (%rax), %rdi callq 0xd040 movq %rax, %rcx movq -0x28(%rbp), %rax movq %rcx, 0x8(%rax) movq -0x28(%rbp), %rax cmpq $0x0, 0x8(%rax) jne 0x3e7af movq -0x28(%rbp), %rax movq %rax, -0x60(%rbp) cmpq $0x0, %rax je 0x3e7a5 movq -0x60(%rbp), %rdi movl $0x80, %esi callq 0xdb00 movq $0x0, -0x8(%rbp) jmp 0x3e7d9 jmp 0x3e7b1 movq -0x20(%rbp), %rax movq 0x20(%rax), %rcx movq -0x28(%rbp), %rax movq %rcx, 0x20(%rax) movq -0x20(%rbp), %rax movq 0x28(%rax), %rcx movq -0x28(%rbp), %rax movq %rcx, 0x28(%rax) movq -0x28(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_ZL34ggml_backend_cpu_graph_plan_createP12ggml_backendPK11ggml_cgraph: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rax, [rbp+var_10] mov rax, [rax+78h] mov [rbp+var_20], rax mov edi, 80h; unsigned __int64 call __Znwm; operator new(ulong) mov [rbp+var_28], rax mov rsi, [rbp+var_18] mov rax, [rbp+var_20] mov edx, [rax] mov rax, [rbp+var_20] mov rcx, [rax+8] lea rdi, [rbp+var_58] call _ggml_graph_plan mov rdi, [rbp+var_28] lea rsi, [rbp+var_58] mov edx, 30h ; '0' call _memcpy mov rsi, [rbp+var_18] mov rdi, [rbp+var_28] add rdi, 30h ; '0' mov edx, 50h ; 'P' call _memcpy mov rax, [rbp+var_28] cmp qword ptr [rax], 0 jbe short loc_3E7B1 mov rax, [rbp+var_28] mov rdi, [rax]; unsigned __int64 call __Znam; operator new[](ulong) mov rcx, rax mov rax, [rbp+var_28] mov [rax+8], rcx mov rax, [rbp+var_28] cmp qword ptr [rax+8], 0 jnz short loc_3E7AF mov rax, [rbp+var_28] mov [rbp+var_60], rax cmp rax, 0 jz short loc_3E7A5 mov rdi, [rbp+var_60]; void * mov esi, 80h; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3E7A5: mov [rbp+var_8], 0 jmp short loc_3E7D9 loc_3E7AF: jmp short $+2 loc_3E7B1: mov rax, [rbp+var_20] mov rcx, [rax+20h] mov rax, [rbp+var_28] mov [rax+20h], rcx mov rax, [rbp+var_20] mov rcx, [rax+28h] mov rax, [rbp+var_28] mov [rax+28h], rcx mov rax, [rbp+var_28] mov [rbp+var_8], rax loc_3E7D9: mov rax, [rbp+var_8] add rsp, 60h pop rbp retn
_QWORD * ggml_backend_cpu_graph_plan_create(long long a1, long long a2) { long long v2; // rax _BYTE v4[48]; // [rsp+8h] [rbp-58h] BYREF _QWORD *v5; // [rsp+38h] [rbp-28h] long long v6; // [rsp+40h] [rbp-20h] long long v7; // [rsp+48h] [rbp-18h] long long v8; // [rsp+50h] [rbp-10h] v8 = a1; v7 = a2; v6 = *(_QWORD *)(a1 + 120); v5 = (_QWORD *)operator new(0x80uLL); ggml_graph_plan((long long)v4, a2, *(_DWORD *)v6, *(_QWORD *)(v6 + 8)); memcpy(v5, v4, 48LL); memcpy(v5 + 6, v7, 80LL); if ( !*v5 || (v2 = operator new[](*v5), (v5[1] = v2) != 0LL) ) { v5[4] = *(_QWORD *)(v6 + 32); v5[5] = *(_QWORD *)(v6 + 40); return v5; } else { if ( v5 ) operator delete(v5, 0x80uLL); return 0LL; } }
ggml_backend_cpu_graph_plan_create: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x78] MOV qword ptr [RBP + -0x20],RAX MOV EDI,0x80 CALL 0x0010dac0 MOV qword ptr [RBP + -0x28],RAX MOV RSI,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x20] MOV EDX,dword ptr [RAX] MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RAX + 0x8] LEA RDI,[RBP + -0x58] CALL 0x0010e540 MOV RDI,qword ptr [RBP + -0x28] LEA RSI,[RBP + -0x58] MOV EDX,0x30 CALL 0x0010d8a0 MOV RSI,qword ptr [RBP + -0x18] MOV RDI,qword ptr [RBP + -0x28] ADD RDI,0x30 MOV EDX,0x50 CALL 0x0010d8a0 MOV RAX,qword ptr [RBP + -0x28] CMP qword ptr [RAX],0x0 JBE 0x0013e7b1 MOV RAX,qword ptr [RBP + -0x28] MOV RDI,qword ptr [RAX] CALL 0x0010d040 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RBP + -0x28] CMP qword ptr [RAX + 0x8],0x0 JNZ 0x0013e7af MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x60],RAX CMP RAX,0x0 JZ 0x0013e7a5 MOV RDI,qword ptr [RBP + -0x60] MOV ESI,0x80 CALL 0x0010db00 LAB_0013e7a5: MOV qword ptr [RBP + -0x8],0x0 JMP 0x0013e7d9 LAB_0013e7af: JMP 0x0013e7b1 LAB_0013e7b1: MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RAX + 0x20] MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RAX + 0x20],RCX MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RAX + 0x28] MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RAX + 0x28],RCX MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x8],RAX LAB_0013e7d9: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x60 POP RBP RET
/* ggml_backend_cpu_graph_plan_create(ggml_backend*, ggml_cgraph const*) */ ulong * ggml_backend_cpu_graph_plan_create(ggml_backend *param_1,ggml_cgraph *param_2) { void *pvVar1; int1 local_60 [48]; ulong *local_30; int4 *local_28; ggml_cgraph *local_20; ggml_backend *local_18; local_28 = *(int4 **)(param_1 + 0x78); local_20 = param_2; local_18 = param_1; local_30 = (ulong *)operator_new(0x80); ggml_graph_plan(local_60,local_20,*local_28,*(int8 *)(local_28 + 2)); memcpy(local_30,local_60,0x30); memcpy(local_30 + 6,local_20,0x50); if (*local_30 != 0) { pvVar1 = operator_new__(*local_30); local_30[1] = (ulong)pvVar1; if (local_30[1] == 0) { if (local_30 != (ulong *)0x0) { operator_delete(local_30,0x80); } return (ulong *)0x0; } } local_30[4] = *(ulong *)(local_28 + 8); local_30[5] = *(ulong *)(local_28 + 10); return local_30; }
60,340
ggml_backend_cpu_graph_plan_create(ggml_backend*, ggml_cgraph const*)
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.cpp
static ggml_backend_graph_plan_t ggml_backend_cpu_graph_plan_create(ggml_backend_t backend, const struct ggml_cgraph * cgraph) { struct ggml_backend_cpu_context * cpu_ctx = (struct ggml_backend_cpu_context *)backend->context; struct ggml_backend_plan_cpu * cpu_plan = new ggml_backend_plan_cpu; cpu_plan->cplan = ggml_graph_plan(cgraph, cpu_ctx->n_threads, cpu_ctx->threadpool); cpu_plan->cgraph = *cgraph; // FIXME: deep copy if (cpu_plan->cplan.work_size > 0) { cpu_plan->cplan.work_data = new uint8_t[cpu_plan->cplan.work_size]; if (cpu_plan->cplan.work_data == NULL) { delete cpu_plan; return NULL; } } cpu_plan->cplan.abort_callback = cpu_ctx->abort_callback; cpu_plan->cplan.abort_callback_data = cpu_ctx->abort_callback_data; return cpu_plan; }
O2
cpp
ggml_backend_cpu_graph_plan_create(ggml_backend*, ggml_cgraph const*): pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x38, %rsp movq %rsi, %r14 movq 0x78(%rdi), %r12 movl $0x80, %edi callq 0x8700 movq %rax, %rbx movl (%r12), %edx movq 0x8(%r12), %rcx leaq 0x8(%rsp), %r15 movq %r15, %rdi movq %r14, %rsi callq 0x8cc0 vmovups (%r15), %ymm0 vmovups 0x10(%r15), %ymm1 vmovups %ymm1, 0x10(%rbx) vmovups %ymm0, (%rbx) vmovups (%r14), %ymm0 vmovups 0x20(%r14), %ymm1 vmovups 0x30(%r14), %ymm2 vmovups %ymm2, 0x60(%rbx) vmovups %ymm1, 0x50(%rbx) vmovups %ymm0, 0x30(%rbx) movq (%rbx), %rdi testq %rdi, %rdi je 0x25f73 vzeroupper callq 0x8040 movq %rax, 0x8(%rbx) vmovups 0x20(%r12), %xmm0 vmovups %xmm0, 0x20(%rbx) movq %rbx, %rax addq $0x38, %rsp popq %rbx popq %r12 popq %r14 popq %r15 vzeroupper retq
_ZL34ggml_backend_cpu_graph_plan_createP12ggml_backendPK11ggml_cgraph: push r15 push r14 push r12 push rbx sub rsp, 38h mov r14, rsi mov r12, [rdi+78h] mov edi, 80h; unsigned __int64 call __Znwm; operator new(ulong) mov rbx, rax mov edx, [r12] mov rcx, [r12+8] lea r15, [rsp+58h+var_50] mov rdi, r15 mov rsi, r14 call _ggml_graph_plan vmovups ymm0, ymmword ptr [r15] vmovups ymm1, ymmword ptr [r15+10h] vmovups ymmword ptr [rbx+10h], ymm1 vmovups ymmword ptr [rbx], ymm0 vmovups ymm0, ymmword ptr [r14] vmovups ymm1, ymmword ptr [r14+20h] vmovups ymm2, ymmword ptr [r14+30h] vmovups ymmword ptr [rbx+60h], ymm2 vmovups ymmword ptr [rbx+50h], ymm1 vmovups ymmword ptr [rbx+30h], ymm0 mov rdi, [rbx]; unsigned __int64 test rdi, rdi jz short loc_25F73 vzeroupper call __Znam; operator new[](ulong) mov [rbx+8], rax loc_25F73: vmovups xmm0, xmmword ptr [r12+20h] vmovups xmmword ptr [rbx+20h], xmm0 mov rax, rbx add rsp, 38h pop rbx pop r12 pop r14 pop r15 vzeroupper retn
unsigned long long * ggml_backend_cpu_graph_plan_create(long long a1, long long a2, __m128 a3) { unsigned long long *result; // rax _BYTE v14[80]; // [rsp+8h] [rbp-50h] BYREF _R14 = a2; _R12 = *(_QWORD *)(a1 + 120); _RBX = (unsigned long long *)operator new(0x80uLL); _R15 = v14; ggml_graph_plan((long long)v14, a2, *(_DWORD *)_R12, *(_QWORD *)(_R12 + 8), a3); __asm { vmovups ymm0, ymmword ptr [r15] vmovups ymm1, ymmword ptr [r15+10h] vmovups ymmword ptr [rbx+10h], ymm1 vmovups ymmword ptr [rbx], ymm0 vmovups ymm0, ymmword ptr [r14] vmovups ymm1, ymmword ptr [r14+20h] vmovups ymm2, ymmword ptr [r14+30h] vmovups ymmword ptr [rbx+60h], ymm2 vmovups ymmword ptr [rbx+50h], ymm1 vmovups ymmword ptr [rbx+30h], ymm0 } if ( *_RBX ) { __asm { vzeroupper } _RBX[1] = operator new[](*_RBX); } __asm { vmovups xmm0, xmmword ptr [r12+20h] vmovups xmmword ptr [rbx+20h], xmm0 } result = _RBX; __asm { vzeroupper } return result; }
ggml_backend_cpu_graph_plan_create: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x38 MOV R14,RSI MOV R12,qword ptr [RDI + 0x78] MOV EDI,0x80 CALL 0x00108700 MOV RBX,RAX MOV EDX,dword ptr [R12] MOV RCX,qword ptr [R12 + 0x8] LEA R15,[RSP + 0x8] MOV RDI,R15 MOV RSI,R14 CALL 0x00108cc0 VMOVUPS YMM0,ymmword ptr [R15] VMOVUPS YMM1,ymmword ptr [R15 + 0x10] VMOVUPS ymmword ptr [RBX + 0x10],YMM1 VMOVUPS ymmword ptr [RBX],YMM0 VMOVUPS YMM0,ymmword ptr [R14] VMOVUPS YMM1,ymmword ptr [R14 + 0x20] VMOVUPS YMM2,ymmword ptr [R14 + 0x30] VMOVUPS ymmword ptr [RBX + 0x60],YMM2 VMOVUPS ymmword ptr [RBX + 0x50],YMM1 VMOVUPS ymmword ptr [RBX + 0x30],YMM0 MOV RDI,qword ptr [RBX] TEST RDI,RDI JZ 0x00125f73 VZEROUPPER CALL 0x00108040 MOV qword ptr [RBX + 0x8],RAX LAB_00125f73: VMOVUPS XMM0,xmmword ptr [R12 + 0x20] VMOVUPS xmmword ptr [RBX + 0x20],XMM0 MOV RAX,RBX ADD RSP,0x38 POP RBX POP R12 POP R14 POP R15 VZEROUPPER RET
/* ggml_backend_cpu_graph_plan_create(ggml_backend*, ggml_cgraph const*) */ ulong * ggml_backend_cpu_graph_plan_create(ggml_backend *param_1,ggml_cgraph *param_2) { int4 *puVar1; ulong uVar2; ulong uVar3; ulong uVar4; ulong uVar5; ulong uVar6; ulong uVar7; ulong uVar8; ulong uVar9; ulong uVar10; ulong uVar11; ulong uVar12; ulong *puVar13; void *pvVar14; ulong local_50; ulong uStack_48; ulong uStack_40; ulong uStack_38; ulong uStack_30; ulong uStack_28; puVar1 = *(int4 **)(param_1 + 0x78); puVar13 = (ulong *)operator_new(0x80); ggml_graph_plan(&local_50,param_2,*puVar1,*(int8 *)(puVar1 + 2)); puVar13[2] = uStack_40; puVar13[3] = uStack_38; puVar13[4] = uStack_30; puVar13[5] = uStack_28; *puVar13 = local_50; puVar13[1] = uStack_48; puVar13[2] = uStack_40; puVar13[3] = uStack_38; uVar2 = *(ulong *)param_2; uVar3 = *(ulong *)(param_2 + 8); uVar4 = *(ulong *)(param_2 + 0x10); uVar5 = *(ulong *)(param_2 + 0x18); uVar6 = *(ulong *)(param_2 + 0x20); uVar7 = *(ulong *)(param_2 + 0x28); uVar8 = *(ulong *)(param_2 + 0x30); uVar9 = *(ulong *)(param_2 + 0x38); uVar10 = *(ulong *)(param_2 + 0x38); uVar11 = *(ulong *)(param_2 + 0x40); uVar12 = *(ulong *)(param_2 + 0x48); puVar13[0xc] = *(ulong *)(param_2 + 0x30); puVar13[0xd] = uVar10; puVar13[0xe] = uVar11; puVar13[0xf] = uVar12; puVar13[10] = uVar6; puVar13[0xb] = uVar7; puVar13[0xc] = uVar8; puVar13[0xd] = uVar9; puVar13[6] = uVar2; puVar13[7] = uVar3; puVar13[8] = uVar4; puVar13[9] = uVar5; if (*puVar13 != 0) { pvVar14 = operator_new__(*puVar13); puVar13[1] = (ulong)pvVar14; } uVar2 = *(ulong *)(puVar1 + 10); puVar13[4] = *(ulong *)(puVar1 + 8); puVar13[5] = uVar2; return puVar13; }
60,341
ggml_backend_cpu_graph_plan_create(ggml_backend*, ggml_cgraph const*)
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.cpp
static ggml_backend_graph_plan_t ggml_backend_cpu_graph_plan_create(ggml_backend_t backend, const struct ggml_cgraph * cgraph) { struct ggml_backend_cpu_context * cpu_ctx = (struct ggml_backend_cpu_context *)backend->context; struct ggml_backend_plan_cpu * cpu_plan = new ggml_backend_plan_cpu; cpu_plan->cplan = ggml_graph_plan(cgraph, cpu_ctx->n_threads, cpu_ctx->threadpool); cpu_plan->cgraph = *cgraph; // FIXME: deep copy if (cpu_plan->cplan.work_size > 0) { cpu_plan->cplan.work_data = new uint8_t[cpu_plan->cplan.work_size]; if (cpu_plan->cplan.work_data == NULL) { delete cpu_plan; return NULL; } } cpu_plan->cplan.abort_callback = cpu_ctx->abort_callback; cpu_plan->cplan.abort_callback_data = cpu_ctx->abort_callback_data; return cpu_plan; }
O3
cpp
ggml_backend_cpu_graph_plan_create(ggml_backend*, ggml_cgraph const*): pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x38, %rsp movq %rsi, %r14 movq 0x78(%rdi), %r12 movl $0x80, %edi callq 0x8620 movq %rax, %rbx movl (%r12), %edx movq 0x8(%r12), %rcx leaq 0x8(%rsp), %r15 movq %r15, %rdi movq %r14, %rsi callq 0x8b40 vmovups (%r15), %ymm0 vmovups 0x10(%r15), %ymm1 vmovups %ymm1, 0x10(%rbx) vmovups %ymm0, (%rbx) vmovups (%r14), %ymm0 vmovups 0x20(%r14), %ymm1 vmovups 0x30(%r14), %ymm2 vmovups %ymm2, 0x60(%rbx) vmovups %ymm1, 0x50(%rbx) vmovups %ymm0, 0x30(%rbx) movq (%rbx), %rdi testq %rdi, %rdi je 0x287cb vzeroupper callq 0x8040 movq %rax, 0x8(%rbx) vmovups 0x20(%r12), %xmm0 vmovups %xmm0, 0x20(%rbx) movq %rbx, %rax addq $0x38, %rsp popq %rbx popq %r12 popq %r14 popq %r15 vzeroupper retq
_ZL34ggml_backend_cpu_graph_plan_createP12ggml_backendPK11ggml_cgraph: push r15 push r14 push r12 push rbx sub rsp, 38h mov r14, rsi mov r12, [rdi+78h] mov edi, 80h; unsigned __int64 call __Znwm; operator new(ulong) mov rbx, rax mov edx, [r12] mov rcx, [r12+8] lea r15, [rsp+58h+var_50] mov rdi, r15 mov rsi, r14 call _ggml_graph_plan vmovups ymm0, ymmword ptr [r15] vmovups ymm1, ymmword ptr [r15+10h] vmovups ymmword ptr [rbx+10h], ymm1 vmovups ymmword ptr [rbx], ymm0 vmovups ymm0, ymmword ptr [r14] vmovups ymm1, ymmword ptr [r14+20h] vmovups ymm2, ymmword ptr [r14+30h] vmovups ymmword ptr [rbx+60h], ymm2 vmovups ymmword ptr [rbx+50h], ymm1 vmovups ymmword ptr [rbx+30h], ymm0 mov rdi, [rbx]; unsigned __int64 test rdi, rdi jz short loc_287CB vzeroupper call __Znam; operator new[](ulong) mov [rbx+8], rax loc_287CB: vmovups xmm0, xmmword ptr [r12+20h] vmovups xmmword ptr [rbx+20h], xmm0 mov rax, rbx add rsp, 38h pop rbx pop r12 pop r14 pop r15 vzeroupper retn
unsigned long long * ggml_backend_cpu_graph_plan_create(long long a1, long long a2, __m128 a3) { unsigned long long *result; // rax _BYTE v14[80]; // [rsp+8h] [rbp-50h] BYREF _R14 = a2; _R12 = *(_QWORD *)(a1 + 120); _RBX = (unsigned long long *)operator new(0x80uLL); _R15 = v14; ggml_graph_plan((long long)v14, a2, *(_DWORD *)_R12, *(_QWORD *)(_R12 + 8), a3); __asm { vmovups ymm0, ymmword ptr [r15] vmovups ymm1, ymmword ptr [r15+10h] vmovups ymmword ptr [rbx+10h], ymm1 vmovups ymmword ptr [rbx], ymm0 vmovups ymm0, ymmword ptr [r14] vmovups ymm1, ymmword ptr [r14+20h] vmovups ymm2, ymmword ptr [r14+30h] vmovups ymmword ptr [rbx+60h], ymm2 vmovups ymmword ptr [rbx+50h], ymm1 vmovups ymmword ptr [rbx+30h], ymm0 } if ( *_RBX ) { __asm { vzeroupper } _RBX[1] = operator new[](*_RBX); } __asm { vmovups xmm0, xmmword ptr [r12+20h] vmovups xmmword ptr [rbx+20h], xmm0 } result = _RBX; __asm { vzeroupper } return result; }
ggml_backend_cpu_graph_plan_create: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x38 MOV R14,RSI MOV R12,qword ptr [RDI + 0x78] MOV EDI,0x80 CALL 0x00108620 MOV RBX,RAX MOV EDX,dword ptr [R12] MOV RCX,qword ptr [R12 + 0x8] LEA R15,[RSP + 0x8] MOV RDI,R15 MOV RSI,R14 CALL 0x00108b40 VMOVUPS YMM0,ymmword ptr [R15] VMOVUPS YMM1,ymmword ptr [R15 + 0x10] VMOVUPS ymmword ptr [RBX + 0x10],YMM1 VMOVUPS ymmword ptr [RBX],YMM0 VMOVUPS YMM0,ymmword ptr [R14] VMOVUPS YMM1,ymmword ptr [R14 + 0x20] VMOVUPS YMM2,ymmword ptr [R14 + 0x30] VMOVUPS ymmword ptr [RBX + 0x60],YMM2 VMOVUPS ymmword ptr [RBX + 0x50],YMM1 VMOVUPS ymmword ptr [RBX + 0x30],YMM0 MOV RDI,qword ptr [RBX] TEST RDI,RDI JZ 0x001287cb VZEROUPPER CALL 0x00108040 MOV qword ptr [RBX + 0x8],RAX LAB_001287cb: VMOVUPS XMM0,xmmword ptr [R12 + 0x20] VMOVUPS xmmword ptr [RBX + 0x20],XMM0 MOV RAX,RBX ADD RSP,0x38 POP RBX POP R12 POP R14 POP R15 VZEROUPPER RET
/* ggml_backend_cpu_graph_plan_create(ggml_backend*, ggml_cgraph const*) */ ulong * ggml_backend_cpu_graph_plan_create(ggml_backend *param_1,ggml_cgraph *param_2) { int4 *puVar1; ulong uVar2; ulong uVar3; ulong uVar4; ulong uVar5; ulong uVar6; ulong uVar7; ulong uVar8; ulong uVar9; ulong uVar10; ulong uVar11; ulong uVar12; ulong *puVar13; void *pvVar14; ulong local_50; ulong uStack_48; ulong uStack_40; ulong uStack_38; ulong uStack_30; ulong uStack_28; puVar1 = *(int4 **)(param_1 + 0x78); puVar13 = (ulong *)operator_new(0x80); ggml_graph_plan(&local_50,param_2,*puVar1,*(int8 *)(puVar1 + 2)); puVar13[2] = uStack_40; puVar13[3] = uStack_38; puVar13[4] = uStack_30; puVar13[5] = uStack_28; *puVar13 = local_50; puVar13[1] = uStack_48; puVar13[2] = uStack_40; puVar13[3] = uStack_38; uVar2 = *(ulong *)param_2; uVar3 = *(ulong *)(param_2 + 8); uVar4 = *(ulong *)(param_2 + 0x10); uVar5 = *(ulong *)(param_2 + 0x18); uVar6 = *(ulong *)(param_2 + 0x20); uVar7 = *(ulong *)(param_2 + 0x28); uVar8 = *(ulong *)(param_2 + 0x30); uVar9 = *(ulong *)(param_2 + 0x38); uVar10 = *(ulong *)(param_2 + 0x38); uVar11 = *(ulong *)(param_2 + 0x40); uVar12 = *(ulong *)(param_2 + 0x48); puVar13[0xc] = *(ulong *)(param_2 + 0x30); puVar13[0xd] = uVar10; puVar13[0xe] = uVar11; puVar13[0xf] = uVar12; puVar13[10] = uVar6; puVar13[0xb] = uVar7; puVar13[0xc] = uVar8; puVar13[0xd] = uVar9; puVar13[6] = uVar2; puVar13[7] = uVar3; puVar13[8] = uVar4; puVar13[9] = uVar5; if (*puVar13 != 0) { pvVar14 = operator_new__(*puVar13); puVar13[1] = (ulong)pvVar14; } uVar2 = *(ulong *)(puVar1 + 10); puVar13[4] = *(ulong *)(puVar1 + 8); puVar13[5] = uVar2; return puVar13; }
60,342
ma_crypt_data_post_read_hook
eloqsql/storage/maria/ma_crypt.c
static my_bool ma_crypt_data_post_read_hook(int res, PAGECACHE_IO_HOOK_ARGS *args) { MARIA_SHARE *share= (MARIA_SHARE*) args->data; const uint size= share->block_size; const uchar page_type= args->page[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK; const uint32 key_version_offset= (page_type <= TAIL_PAGE) ? KEY_VERSION_OFFSET : FULL_PAGE_KEY_VERSION_OFFSET; if (res == 0) { const uchar *src= args->page; uchar* dst= args->crypt_buf; uint pageno= (uint)args->pageno; LSN lsn= lsn_korr(src); const uint head= (page_type <= TAIL_PAGE) ? PAGE_HEADER_SIZE(share) : FULL_PAGE_HEADER_SIZE(share); const uint tail= CRC_SIZE; const uint32 key_version= uint4korr(src + key_version_offset); /* 1 - copy head */ memcpy(dst, src, head); /* 2 - decrypt page */ res= ma_decrypt(share, share->crypt_data, src + head, dst + head, size - (head + tail), pageno, lsn, key_version); /* 3 - copy tail */ memcpy(dst + size - tail, src + size - tail, tail); /* 4 clear key version to get correct crc */ int4store(dst + key_version_offset, 0); } if (args->crypt_buf != NULL) { uchar *tmp= args->page; args->page= args->crypt_buf; args->crypt_buf= NULL; my_free(tmp); } return maria_page_crc_check_data(res, args); }
O0
c
ma_crypt_data_post_read_hook: pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movl %edi, -0x4(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rax movq 0x10(%rax), %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax movl 0x7bc(%rax), %eax movl %eax, -0x1c(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movzbl 0x7(%rax), %eax andl $0x7, %eax movb %al, -0x1d(%rbp) movzbl -0x1d(%rbp), %edx movl $0x8, %eax movl $0xc, %ecx cmpl $0x2, %edx cmovlel %ecx, %eax movl %eax, -0x24(%rbp) cmpl $0x0, -0x4(%rbp) jne 0x9d336 movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x30(%rbp) movq -0x10(%rbp), %rax movq 0x18(%rax), %rax movq %rax, -0x38(%rbp) movq -0x10(%rbp), %rax movq 0x8(%rax), %rax movl %eax, -0x3c(%rbp) movq -0x30(%rbp), %rax movzbl (%rax), %eax movq -0x30(%rbp), %rcx movzbl 0x1(%rcx), %ecx shll $0x8, %ecx orl %ecx, %eax movq -0x30(%rbp), %rcx movzbl 0x2(%rcx), %ecx shll $0x10, %ecx orl %ecx, %eax movl %eax, %eax shlq $0x20, %rax movq -0x30(%rbp), %rcx movl 0x3(%rcx), %ecx orq %rcx, %rax movq %rax, -0x48(%rbp) movzbl -0x1d(%rbp), %eax cmpl $0x2, %eax jg 0x9d27f movq -0x18(%rbp), %rax movl 0xc18(%rax), %eax addl $0xc, %eax movl %eax, -0x6c(%rbp) jmp 0x9d28f movq -0x18(%rbp), %rax movl 0xc18(%rax), %eax addl $0x8, %eax movl %eax, -0x6c(%rbp) movl -0x6c(%rbp), %eax movl %eax, -0x4c(%rbp) movl $0x4, -0x50(%rbp) movq -0x30(%rbp), %rax movl -0x24(%rbp), %ecx movl (%rax,%rcx), %eax movl %eax, -0x54(%rbp) movq -0x38(%rbp), %rdi movq -0x30(%rbp), %rsi movl -0x4c(%rbp), %eax movl %eax, %edx callq 0x29090 movq -0x18(%rbp), %rdi movq -0x18(%rbp), %rax movq 0xc20(%rax), %rsi movq -0x30(%rbp), %rdx movl -0x4c(%rbp), %eax addq %rax, %rdx movq -0x38(%rbp), %rcx movl -0x4c(%rbp), %eax addq %rax, %rcx movl -0x1c(%rbp), %r8d movl -0x4c(%rbp), %eax addl $0x4, %eax subl %eax, %r8d movl -0x3c(%rbp), %r9d movq -0x48(%rbp), %r10 movl -0x54(%rbp), %eax movq %r10, (%rsp) movl %eax, 0x8(%rsp) callq 0x9db10 movl %eax, -0x4(%rbp) movq -0x38(%rbp), %rax movl -0x1c(%rbp), %ecx movq -0x30(%rbp), %rdx movl -0x1c(%rbp), %esi movl -0x4(%rdx,%rsi), %edx movl %edx, -0x4(%rax,%rcx) movq -0x38(%rbp), %rax movl -0x24(%rbp), %ecx addq %rcx, %rax movq %rax, -0x60(%rbp) movq -0x60(%rbp), %rax movl $0x0, (%rax) jmp 0x9d336 movq -0x10(%rbp), %rax cmpq $0x0, 0x18(%rax) je 0x9d370 movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x68(%rbp) movq -0x10(%rbp), %rax movq 0x18(%rax), %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) movq -0x10(%rbp), %rax movq $0x0, 0x18(%rax) movq -0x68(%rbp), %rdi callq 0xf5510 movl -0x4(%rbp), %edi movq -0x10(%rbp), %rsi callq 0x9bdc0 addq $0x80, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
ma_crypt_data_post_read_hook: push rbp mov rbp, rsp sub rsp, 80h mov [rbp+var_4], edi mov [rbp+var_10], rsi mov rax, [rbp+var_10] mov rax, [rax+10h] mov [rbp+var_18], rax mov rax, [rbp+var_18] mov eax, [rax+7BCh] mov [rbp+var_1C], eax mov rax, [rbp+var_10] mov rax, [rax] movzx eax, byte ptr [rax+7] and eax, 7 mov [rbp+var_1D], al movzx edx, [rbp+var_1D] mov eax, 8 mov ecx, 0Ch cmp edx, 2 cmovle eax, ecx mov [rbp+var_24], eax cmp [rbp+var_4], 0 jnz loc_9D336 mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_30], rax mov rax, [rbp+var_10] mov rax, [rax+18h] mov [rbp+var_38], rax mov rax, [rbp+var_10] mov rax, [rax+8] mov [rbp+var_3C], eax mov rax, [rbp+var_30] movzx eax, byte ptr [rax] mov rcx, [rbp+var_30] movzx ecx, byte ptr [rcx+1] shl ecx, 8 or eax, ecx mov rcx, [rbp+var_30] movzx ecx, byte ptr [rcx+2] shl ecx, 10h or eax, ecx mov eax, eax shl rax, 20h mov rcx, [rbp+var_30] mov ecx, [rcx+3] or rax, rcx mov [rbp+var_48], rax movzx eax, [rbp+var_1D] cmp eax, 2 jg short loc_9D27F mov rax, [rbp+var_18] mov eax, [rax+0C18h] add eax, 0Ch mov [rbp+var_6C], eax jmp short loc_9D28F loc_9D27F: mov rax, [rbp+var_18] mov eax, [rax+0C18h] add eax, 8 mov [rbp+var_6C], eax loc_9D28F: mov eax, [rbp+var_6C] mov [rbp+var_4C], eax mov [rbp+var_50], 4 mov rax, [rbp+var_30] mov ecx, [rbp+var_24] mov eax, [rax+rcx] mov [rbp+var_54], eax mov rdi, [rbp+var_38] mov rsi, [rbp+var_30] mov eax, [rbp+var_4C] mov edx, eax call _memcpy mov rdi, [rbp+var_18] mov rax, [rbp+var_18] mov rsi, [rax+0C20h] mov rdx, [rbp+var_30] mov eax, [rbp+var_4C] add rdx, rax mov rcx, [rbp+var_38] mov eax, [rbp+var_4C] add rcx, rax mov r8d, [rbp+var_1C] mov eax, [rbp+var_4C] add eax, 4 sub r8d, eax mov r9d, [rbp+var_3C] mov r10, [rbp+var_48] mov eax, [rbp+var_54] mov [rsp+80h+var_80], r10 mov [rsp+80h+var_78], eax call ma_decrypt mov [rbp+var_4], eax mov rax, [rbp+var_38] mov ecx, [rbp+var_1C] mov rdx, [rbp+var_30] mov esi, [rbp+var_1C] mov edx, [rdx+rsi-4] mov [rax+rcx-4], edx mov rax, [rbp+var_38] mov ecx, [rbp+var_24] add rax, rcx mov [rbp+var_60], rax mov rax, [rbp+var_60] mov dword ptr [rax], 0 jmp short $+2 loc_9D336: mov rax, [rbp+var_10] cmp qword ptr [rax+18h], 0 jz short loc_9D370 mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_68], rax mov rax, [rbp+var_10] mov rcx, [rax+18h] mov rax, [rbp+var_10] mov [rax], rcx mov rax, [rbp+var_10] mov qword ptr [rax+18h], 0 mov rdi, [rbp+var_68] call my_free loc_9D370: mov edi, [rbp+var_4] mov rsi, [rbp+var_10] call maria_page_crc_check_data add rsp, 80h pop rbp retn
bool ma_crypt_data_post_read_hook(int a1, _QWORD *a2) { int v2; // eax unsigned int v3; // eax long long v5; // [rsp+18h] [rbp-68h] int v6; // [rsp+2Ch] [rbp-54h] unsigned int v7; // [rsp+34h] [rbp-4Ch] unsigned long long v8; // [rsp+38h] [rbp-48h] int v9; // [rsp+44h] [rbp-3Ch] long long v10; // [rsp+48h] [rbp-38h] unsigned __int16 *v11; // [rsp+50h] [rbp-30h] unsigned int v12; // [rsp+5Ch] [rbp-24h] unsigned __int8 v13; // [rsp+63h] [rbp-1Dh] unsigned int v14; // [rsp+64h] [rbp-1Ch] long long v15; // [rsp+68h] [rbp-18h] int v16; // [rsp+7Ch] [rbp-4h] v16 = a1; v15 = a2[2]; v14 = *(_DWORD *)(v15 + 1980); v13 = *(_BYTE *)(*a2 + 7LL) & 7; v2 = 8; if ( v13 <= 2u ) v2 = 12; v12 = v2; if ( !a1 ) { v11 = (unsigned __int16 *)*a2; v10 = a2[3]; v9 = a2[1]; v8 = *(unsigned int *)((char *)v11 + 3) | ((unsigned long long)((*((unsigned __int8 *)v11 + 2) << 16) | (unsigned int)*v11) << 32); if ( v13 > 2u ) v3 = *(_DWORD *)(v15 + 3096) + 8; else v3 = *(_DWORD *)(v15 + 3096) + 12; v7 = v3; v6 = *(_DWORD *)((char *)v11 + v12); memcpy(v10, v11, v3); v16 = ma_decrypt( v15, *(_QWORD *)(v15 + 3104), v7 + (unsigned int)v11, v7 + (unsigned int)v10, v14 - (v7 + 4), v9, v8, v6); *(_DWORD *)(v10 + v14 - 4) = *(_DWORD *)((char *)v11 + v14 - 4); *(_DWORD *)(v12 + v10) = 0; } if ( a2[3] ) { v5 = *a2; *a2 = a2[3]; a2[3] = 0LL; my_free(v5); } return maria_page_crc_check_data(v16, (long long)a2); }
ma_crypt_data_post_read_hook: PUSH RBP MOV RBP,RSP SUB RSP,0x80 MOV dword ptr [RBP + -0x4],EDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX + 0x7bc] MOV dword ptr [RBP + -0x1c],EAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOVZX EAX,byte ptr [RAX + 0x7] AND EAX,0x7 MOV byte ptr [RBP + -0x1d],AL MOVZX EDX,byte ptr [RBP + -0x1d] MOV EAX,0x8 MOV ECX,0xc CMP EDX,0x2 CMOVLE EAX,ECX MOV dword ptr [RBP + -0x24],EAX CMP dword ptr [RBP + -0x4],0x0 JNZ 0x0019d336 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] MOV dword ptr [RBP + -0x3c],EAX MOV RAX,qword ptr [RBP + -0x30] MOVZX EAX,byte ptr [RAX] MOV RCX,qword ptr [RBP + -0x30] MOVZX ECX,byte ptr [RCX + 0x1] SHL ECX,0x8 OR EAX,ECX MOV RCX,qword ptr [RBP + -0x30] MOVZX ECX,byte ptr [RCX + 0x2] SHL ECX,0x10 OR EAX,ECX MOV EAX,EAX SHL RAX,0x20 MOV RCX,qword ptr [RBP + -0x30] MOV ECX,dword ptr [RCX + 0x3] OR RAX,RCX MOV qword ptr [RBP + -0x48],RAX MOVZX EAX,byte ptr [RBP + -0x1d] CMP EAX,0x2 JG 0x0019d27f MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX + 0xc18] ADD EAX,0xc MOV dword ptr [RBP + -0x6c],EAX JMP 0x0019d28f LAB_0019d27f: MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX + 0xc18] ADD EAX,0x8 MOV dword ptr [RBP + -0x6c],EAX LAB_0019d28f: MOV EAX,dword ptr [RBP + -0x6c] MOV dword ptr [RBP + -0x4c],EAX MOV dword ptr [RBP + -0x50],0x4 MOV RAX,qword ptr [RBP + -0x30] MOV ECX,dword ptr [RBP + -0x24] MOV EAX,dword ptr [RAX + RCX*0x1] MOV dword ptr [RBP + -0x54],EAX MOV RDI,qword ptr [RBP + -0x38] MOV RSI,qword ptr [RBP + -0x30] MOV EAX,dword ptr [RBP + -0x4c] MOV EDX,EAX CALL 0x00129090 MOV RDI,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RAX + 0xc20] MOV RDX,qword ptr [RBP + -0x30] MOV EAX,dword ptr [RBP + -0x4c] ADD RDX,RAX MOV RCX,qword ptr [RBP + -0x38] MOV EAX,dword ptr [RBP + -0x4c] ADD RCX,RAX MOV R8D,dword ptr [RBP + -0x1c] MOV EAX,dword ptr [RBP + -0x4c] ADD EAX,0x4 SUB R8D,EAX MOV R9D,dword ptr [RBP + -0x3c] MOV R10,qword ptr [RBP + -0x48] MOV EAX,dword ptr [RBP + -0x54] MOV qword ptr [RSP],R10 MOV dword ptr [RSP + 0x8],EAX CALL 0x0019db10 MOV dword ptr [RBP + -0x4],EAX MOV RAX,qword ptr [RBP + -0x38] MOV ECX,dword ptr [RBP + -0x1c] MOV RDX,qword ptr [RBP + -0x30] MOV ESI,dword ptr [RBP + -0x1c] MOV EDX,dword ptr [RDX + RSI*0x1 + -0x4] MOV dword ptr [RAX + RCX*0x1 + -0x4],EDX MOV RAX,qword ptr [RBP + -0x38] MOV ECX,dword ptr [RBP + -0x24] ADD RAX,RCX MOV qword ptr [RBP + -0x60],RAX MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX],0x0 JMP 0x0019d336 LAB_0019d336: MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX + 0x18],0x0 JZ 0x0019d370 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x68],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x18] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x18],0x0 MOV RDI,qword ptr [RBP + -0x68] CALL 0x001f5510 LAB_0019d370: MOV EDI,dword ptr [RBP + -0x4] MOV RSI,qword ptr [RBP + -0x10] CALL 0x0019bdc0 ADD RSP,0x80 POP RBP RET
void ma_crypt_data_post_read_hook(int param_1,long *param_2) { uint uVar1; int4 uVar2; int4 uVar3; long lVar4; int3 *__src; void *__dest; ulong uVar5; int3 uVar6; byte bVar7; uint uVar8; uint local_74; int local_c; lVar4 = param_2[2]; uVar1 = *(uint *)(lVar4 + 0x7bc); bVar7 = *(byte *)(*param_2 + 7) & 7; uVar8 = 8; if (bVar7 < 3) { uVar8 = 0xc; } local_c = param_1; if (param_1 == 0) { __src = (int3 *)*param_2; __dest = (void *)param_2[3]; uVar5 = param_2[1]; uVar6 = *__src; uVar2 = *(int4 *)((long)__src + 3); if (bVar7 < 3) { local_74 = *(int *)(lVar4 + 0xc18) + 0xc; } else { local_74 = *(int *)(lVar4 + 0xc18) + 8; } uVar3 = *(int4 *)((long)__src + (ulong)uVar8); memcpy(__dest,__src,(ulong)local_74); local_c = ma_decrypt(lVar4,*(int8 *)(lVar4 + 0xc20),(long)__src + (ulong)local_74, (long)__dest + (ulong)local_74,uVar1 - (local_74 + 4),uVar5 & 0xffffffff, (ulong)CONCAT34(uVar6,uVar2),uVar3); *(int4 *)((long)__dest + ((ulong)uVar1 - 4)) = *(int4 *)((long)__src + ((ulong)uVar1 - 4)); *(int4 *)((long)__dest + (ulong)uVar8) = 0; } if (param_2[3] != 0) { lVar4 = *param_2; *param_2 = param_2[3]; param_2[3] = 0; my_free(lVar4); } maria_page_crc_check_data(local_c,param_2); return; }
60,343
ma_crypt_data_post_read_hook
eloqsql/storage/maria/ma_crypt.c
static my_bool ma_crypt_data_post_read_hook(int res, PAGECACHE_IO_HOOK_ARGS *args) { MARIA_SHARE *share= (MARIA_SHARE*) args->data; const uint size= share->block_size; const uchar page_type= args->page[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK; const uint32 key_version_offset= (page_type <= TAIL_PAGE) ? KEY_VERSION_OFFSET : FULL_PAGE_KEY_VERSION_OFFSET; if (res == 0) { const uchar *src= args->page; uchar* dst= args->crypt_buf; uint pageno= (uint)args->pageno; LSN lsn= lsn_korr(src); const uint head= (page_type <= TAIL_PAGE) ? PAGE_HEADER_SIZE(share) : FULL_PAGE_HEADER_SIZE(share); const uint tail= CRC_SIZE; const uint32 key_version= uint4korr(src + key_version_offset); /* 1 - copy head */ memcpy(dst, src, head); /* 2 - decrypt page */ res= ma_decrypt(share, share->crypt_data, src + head, dst + head, size - (head + tail), pageno, lsn, key_version); /* 3 - copy tail */ memcpy(dst + size - tail, src + size - tail, tail); /* 4 clear key version to get correct crc */ int4store(dst + key_version_offset, 0); } if (args->crypt_buf != NULL) { uchar *tmp= args->page; args->page= args->crypt_buf; args->crypt_buf= NULL; my_free(tmp); } return maria_page_crc_check_data(res, args); }
O3
c
ma_crypt_data_post_read_hook: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %rsi, %rbx movl %edi, %r12d testl %edi, %edi jne 0x71f56 movq (%rbx), %r14 movq 0x10(%rbx), %r15 movl 0x7bc(%r15), %ecx movq %rcx, -0x48(%rbp) movb 0x7(%r14), %al andb $0x7, %al xorl %ecx, %ecx cmpb $0x3, %al setb %cl movq 0x18(%rbx), %r12 movl 0x8(%rbx), %eax movl %eax, -0x2c(%rbp) movzwl (%r14), %eax shlq $0x20, %rax movzbl 0x2(%r14), %edx shlq $0x30, %rdx orq %rax, %rdx movl 0x3(%r14), %eax orq %rdx, %rax movq %rax, -0x58(%rbp) movl 0xc18(%r15), %eax leal (,%rcx,4), %edx movq %rdx, -0x50(%rbp) leal 0x8(%rax,%rcx,4), %r13d movl 0x8(%r14,%rdx), %eax movq %rax, -0x40(%rbp) movq %r12, %rdi movq %r12, -0x38(%rbp) movq %r14, %rsi movq %r13, %rdx callq 0x29080 movq %r15, %rdi movq 0xc20(%r15), %rsi leaq (%r14,%r13), %rdx leaq (%r12,%r13), %rcx movq -0x48(%rbp), %r15 movl %r15d, %r8d subl %r13d, %r8d addl $-0x4, %r8d movl -0x2c(%rbp), %r9d pushq -0x40(%rbp) pushq -0x58(%rbp) callq 0x723a0 addq $0x10, %rsp movl %eax, %r12d movl -0x4(%r14,%r15), %eax movq -0x38(%rbp), %rdx movl %eax, -0x4(%rdx,%r15) movq -0x50(%rbp), %rax movl $0x0, 0x8(%rdx,%rax) movq 0x18(%rbx), %rax testq %rax, %rax je 0x71f72 movq (%rbx), %rdi movq %rax, (%rbx) movq $0x0, 0x18(%rbx) callq 0xa1586 movl %r12d, %edi movq %rbx, %rsi addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x71343
ma_crypt_data_post_read_hook: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov rbx, rsi mov r12d, edi test edi, edi jnz loc_71F56 mov r14, [rbx] mov r15, [rbx+10h] mov ecx, [r15+7BCh] mov [rbp+var_48], rcx mov al, [r14+7] and al, 7 xor ecx, ecx cmp al, 3 setb cl mov r12, [rbx+18h] mov eax, [rbx+8] mov [rbp+var_2C], eax movzx eax, word ptr [r14] shl rax, 20h movzx edx, byte ptr [r14+2] shl rdx, 30h or rdx, rax mov eax, [r14+3] or rax, rdx mov [rbp+var_58], rax mov eax, [r15+0C18h] lea edx, ds:0[rcx*4] mov [rbp+var_50], rdx lea r13d, [rax+rcx*4+8] mov eax, [r14+rdx+8] mov [rbp+var_40], rax mov rdi, r12 mov [rbp+var_38], r12 mov rsi, r14 mov rdx, r13 call _memcpy mov rdi, r15 mov rsi, [r15+0C20h] lea rdx, [r14+r13] lea rcx, [r12+r13] mov r15, [rbp+var_48] mov r8d, r15d sub r8d, r13d add r8d, 0FFFFFFFCh mov r9d, [rbp+var_2C] push [rbp+var_40] push [rbp+var_58] call ma_decrypt add rsp, 10h mov r12d, eax mov eax, [r14+r15-4] mov rdx, [rbp+var_38] mov [rdx+r15-4], eax mov rax, [rbp+var_50] mov dword ptr [rdx+rax+8], 0 loc_71F56: mov rax, [rbx+18h] test rax, rax jz short loc_71F72 mov rdi, [rbx] mov [rbx], rax mov qword ptr [rbx+18h], 0 call my_free loc_71F72: mov edi, r12d mov rsi, rbx add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp maria_page_crc_check_data
char ma_crypt_data_post_read_hook(int a1, _QWORD *a2) { int v2; // r12d unsigned __int16 *v3; // r14 long long v4; // r15 BOOL v5; // ecx unsigned int v6; // r13d long long v7; // rax long long v8; // rdi unsigned long long v10; // [rsp+8h] [rbp-58h] long long v11; // [rsp+10h] [rbp-50h] long long v12; // [rsp+18h] [rbp-48h] int v13; // [rsp+20h] [rbp-40h] long long v14; // [rsp+28h] [rbp-38h] int v15; // [rsp+34h] [rbp-2Ch] v2 = a1; if ( !a1 ) { v3 = (unsigned __int16 *)*a2; v4 = a2[2]; v12 = *(unsigned int *)(v4 + 1980); v5 = (*(_BYTE *)(*a2 + 7LL) & 7u) < 3; v15 = *((_DWORD *)a2 + 2); v10 = ((unsigned long long)*v3 << 32) | ((unsigned long long)*((unsigned __int8 *)v3 + 2) << 48) | *(unsigned int *)((char *)v3 + 3); v11 = (unsigned int)(4 * v5); v6 = *(_DWORD *)(v4 + 3096) + 4 * v5 + 8; v13 = *(_DWORD *)(*a2 + v11 + 8); v14 = a2[3]; memcpy(v14, *a2, v6); v2 = ma_decrypt( v4, *(_QWORD *)(v4 + 3104), (unsigned int)v3 + v6, (unsigned int)v14 + v6, (unsigned int)v12 - v6 - 4, v15, v10, v13); *(_DWORD *)(v14 + v12 - 4) = *(_DWORD *)((char *)v3 + v12 - 4); *(_DWORD *)(v14 + v11 + 8) = 0; } v7 = a2[3]; if ( v7 ) { v8 = *a2; *a2 = v7; a2[3] = 0LL; my_free(v8); } return maria_page_crc_check_data(v2, (long long)a2); }
ma_crypt_data_post_read_hook: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV RBX,RSI MOV R12D,EDI TEST EDI,EDI JNZ 0x00171f56 MOV R14,qword ptr [RBX] MOV R15,qword ptr [RBX + 0x10] MOV ECX,dword ptr [R15 + 0x7bc] MOV qword ptr [RBP + -0x48],RCX MOV AL,byte ptr [R14 + 0x7] AND AL,0x7 XOR ECX,ECX CMP AL,0x3 SETC CL MOV R12,qword ptr [RBX + 0x18] MOV EAX,dword ptr [RBX + 0x8] MOV dword ptr [RBP + -0x2c],EAX MOVZX EAX,word ptr [R14] SHL RAX,0x20 MOVZX EDX,byte ptr [R14 + 0x2] SHL RDX,0x30 OR RDX,RAX MOV EAX,dword ptr [R14 + 0x3] OR RAX,RDX MOV qword ptr [RBP + -0x58],RAX MOV EAX,dword ptr [R15 + 0xc18] LEA EDX,[RCX*0x4] MOV qword ptr [RBP + -0x50],RDX LEA R13D,[RAX + RCX*0x4 + 0x8] MOV EAX,dword ptr [R14 + RDX*0x1 + 0x8] MOV qword ptr [RBP + -0x40],RAX MOV RDI,R12 MOV qword ptr [RBP + -0x38],R12 MOV RSI,R14 MOV RDX,R13 CALL 0x00129080 MOV RDI,R15 MOV RSI,qword ptr [R15 + 0xc20] LEA RDX,[R14 + R13*0x1] LEA RCX,[R12 + R13*0x1] MOV R15,qword ptr [RBP + -0x48] MOV R8D,R15D SUB R8D,R13D ADD R8D,-0x4 MOV R9D,dword ptr [RBP + -0x2c] PUSH qword ptr [RBP + -0x40] PUSH qword ptr [RBP + -0x58] CALL 0x001723a0 ADD RSP,0x10 MOV R12D,EAX MOV EAX,dword ptr [R14 + R15*0x1 + -0x4] MOV RDX,qword ptr [RBP + -0x38] MOV dword ptr [RDX + R15*0x1 + -0x4],EAX MOV RAX,qword ptr [RBP + -0x50] MOV dword ptr [RDX + RAX*0x1 + 0x8],0x0 LAB_00171f56: MOV RAX,qword ptr [RBX + 0x18] TEST RAX,RAX JZ 0x00171f72 MOV RDI,qword ptr [RBX] MOV qword ptr [RBX],RAX MOV qword ptr [RBX + 0x18],0x0 CALL 0x001a1586 LAB_00171f72: MOV EDI,R12D MOV RSI,RBX ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x00171343
void ma_crypt_data_post_read_hook(int param_1,long *param_2) { ushort uVar1; uint uVar2; uint uVar3; int4 uVar4; ushort *__src; long lVar5; void *__dest; long lVar6; ushort uVar7; ulong uVar8; uint uVar9; bool bVar10; ulong __n; if (param_1 == 0) { __src = (ushort *)*param_2; lVar5 = param_2[2]; uVar2 = *(uint *)(lVar5 + 0x7bc); bVar10 = (*(byte *)((long)__src + 7) & 7) < 3; __dest = (void *)param_2[3]; lVar6 = param_2[1]; uVar1 = *__src; uVar7 = __src[1]; uVar3 = *(uint *)((long)__src + 3); uVar8 = (ulong)((uint)bVar10 * 4); uVar9 = *(int *)(lVar5 + 0xc18) + 8 + (uint)bVar10 * 4; __n = (ulong)uVar9; uVar4 = *(int4 *)((long)__src + uVar8 + 8); memcpy(__dest,__src,__n); param_1 = ma_decrypt(lVar5,*(int8 *)(lVar5 + 0xc20),(long)__src + __n,(long)__dest + __n, (uVar2 - uVar9) + -4,(int)lVar6, (ulong)uVar3 | (ulong)(byte)uVar7 << 0x30 | (ulong)uVar1 << 0x20,uVar4); *(int4 *)((long)__dest + ((ulong)uVar2 - 4)) = *(int4 *)((long)__src + ((ulong)uVar2 - 4)); *(int4 *)((long)__dest + uVar8 + 8) = 0; } if (param_2[3] != 0) { lVar5 = *param_2; *param_2 = param_2[3]; param_2[3] = 0; my_free(lVar5); } maria_page_crc_check_data(param_1,param_2); return; }
60,344
output_format::open_single_output(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
msxemulator/build_O0/_deps/pico_sdk-src/tools/pioasm/pio_assembler.cpp
FILE *output_format::open_single_output(std::string destination) { FILE *out = destination == "-" ? stdout : fopen(destination.c_str(), "w"); if (!out) { std::cerr << "Can't open output file '" << destination << "'" << std::endl; } return out; }
O0
cpp
output_format::open_single_output(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>): subq $0x38, %rsp movq %rsi, 0x10(%rsp) movq %rdi, %rax movq 0x10(%rsp), %rdi movq %rdi, 0x18(%rsp) movq %rax, 0x30(%rsp) movq %rdi, 0x28(%rsp) leaq 0x40a7b(%rip), %rsi # 0x53382 callq 0x146a0 testb $0x1, %al jne 0x12912 jmp 0x12923 movq 0x5e667(%rip), %rax # 0x70f80 movq (%rax), %rax movq %rax, 0x8(%rsp) jmp 0x12941 movq 0x18(%rsp), %rdi callq 0x7180 movq %rax, %rdi leaq 0x436a2(%rip), %rsi # 0x55fd9 callq 0x7400 movq %rax, 0x8(%rsp) movq 0x8(%rsp), %rax movq %rax, 0x20(%rsp) cmpq $0x0, 0x20(%rsp) jne 0x12991 movq 0x5e68e(%rip), %rdi # 0x70fe8 leaq 0x414f7(%rip), %rsi # 0x53e58 callq 0x7350 movq 0x18(%rsp), %rsi movq %rax, %rdi callq 0x7310 movq %rax, %rdi leaq 0x414f2(%rip), %rsi # 0x53e6f callq 0x7350 movq %rax, %rdi movq 0x5e604(%rip), %rsi # 0x70f90 callq 0x73a0 movq 0x20(%rsp), %rax addq $0x38, %rsp retq nopl (%rax,%rax)
_ZN13output_format18open_single_outputENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: sub rsp, 38h mov [rsp+38h+var_28], rsi mov rax, rdi mov rdi, [rsp+38h+var_28] mov [rsp+38h+var_20], rdi mov [rsp+38h+var_8], rax mov [rsp+38h+var_10], rdi lea rsi, asc_53382; "-" call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) test al, 1 jnz short loc_12912 jmp short loc_12923 loc_12912: mov rax, cs:stdout_ptr mov rax, [rax] mov [rsp+38h+var_30], rax jmp short loc_12941 loc_12923: mov rdi, [rsp+38h+var_20] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void) mov rdi, rax lea rsi, aFatalErrorScan+2Ah; "w" call _fopen mov [rsp+38h+var_30], rax loc_12941: mov rax, [rsp+38h+var_30] mov [rsp+38h+var_18], rax cmp [rsp+38h+var_18], 0 jnz short loc_12991 mov rdi, cs:_ZSt4cerr_ptr lea rsi, aCanTOpenOutput; "Can't open output file '" call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov rsi, [rsp+38h+var_20] mov rdi, rax call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&) mov rdi, rax lea rsi, aCanTOpenOutput+17h; "'" call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov rdi, rax mov rsi, cs:_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6__ptr call __ZNSolsEPFRSoS_E; std::ostream::operator<<(std::ostream & (*)(std::ostream &)) loc_12991: mov rax, [rsp+38h+var_18] add rsp, 38h retn
long long output_format::open_single_output(long long a1, long long a2) { long long v2; // rax long long v3; // rax long long v4; // rax long long v5; // rax long long v7; // [rsp+8h] [rbp-30h] if ( (std::operator==<char>(a2, "-") & 1) != 0 ) { v7 = stdout; } else { v2 = std::string::c_str(a2); v7 = fopen(v2, "w"); } if ( !v7 ) { v3 = std::operator<<<std::char_traits<char>>(&std::cerr, "Can't open output file '"); v4 = std::operator<<<char>(v3, a2); v5 = std::operator<<<std::char_traits<char>>(v4, "'"); std::ostream::operator<<(v5, &std::endl<char,std::char_traits<char>>); } return v7; }
open_single_output: SUB RSP,0x38 MOV qword ptr [RSP + 0x10],RSI MOV RAX,RDI MOV RDI,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x18],RDI MOV qword ptr [RSP + 0x30],RAX MOV qword ptr [RSP + 0x28],RDI LEA RSI,[0x153382] CALL 0x001146a0 TEST AL,0x1 JNZ 0x00112912 JMP 0x00112923 LAB_00112912: MOV RAX,qword ptr [0x00170f80] MOV RAX,qword ptr [RAX] MOV qword ptr [RSP + 0x8],RAX JMP 0x00112941 LAB_00112923: MOV RDI,qword ptr [RSP + 0x18] CALL 0x00107180 MOV RDI,RAX LEA RSI,[0x155fd9] CALL 0x00107400 MOV qword ptr [RSP + 0x8],RAX LAB_00112941: MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x20],RAX CMP qword ptr [RSP + 0x20],0x0 JNZ 0x00112991 MOV RDI,qword ptr [0x00170fe8] LEA RSI,[0x153e58] CALL 0x00107350 MOV RSI,qword ptr [RSP + 0x18] MOV RDI,RAX CALL 0x00107310 MOV RDI,RAX LEA RSI,[0x153e6f] CALL 0x00107350 MOV RDI,RAX MOV RSI,qword ptr [0x00170f90] CALL 0x001073a0 LAB_00112991: MOV RAX,qword ptr [RSP + 0x20] ADD RSP,0x38 RET
/* output_format::open_single_output(std::__cxx11::string) */ FILE * __thiscall output_format::open_single_output(int8 param_1,string *param_2) { bool bVar1; char *__filename; ostream *poVar2; FILE *local_30; bVar1 = std::operator==(param_2,"-"); if (bVar1) { local_30 = *(FILE **)PTR_stdout_00170f80; } else { __filename = (char *)std::__cxx11::string::c_str(); local_30 = fopen(__filename,"w"); } if (local_30 == (FILE *)0x0) { poVar2 = std::operator<<((ostream *)PTR_cerr_00170fe8,"Can\'t open output file \'"); poVar2 = std::operator<<(poVar2,param_2); poVar2 = std::operator<<(poVar2,"\'"); std::ostream::operator<< (poVar2,(_func_ostream_ptr_ostream_ptr *)PTR_endl<char,std_char_traits<char>>_00170f90 ); } return local_30; }
60,345
my_time_init
eloqsql/mysys/my_getsystime.c
void my_time_init() { #ifdef _WIN32 compile_time_assert(sizeof(LARGE_INTEGER) == sizeof(query_performance_frequency)); QueryPerformanceFrequency((LARGE_INTEGER *)&query_performance_frequency); DBUG_ASSERT(query_performance_frequency); #endif }
O3
c
my_time_init: pushq %rbp movq %rsp, %rbp popq %rbp retq
my_time_init: push rbp mov rbp, rsp pop rbp retn
void my_time_init() { ; }
my_time_init: PUSH RBP MOV RBP,RSP POP RBP RET
void my_time_init(void) { return; }
60,346
quantize_q4_1
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-quants.c
size_t quantize_q4_1(const float * restrict src, void * restrict dst, int64_t nrow, int64_t n_per_row, const float * quant_weights) { if (!quant_weights) { quantize_row_q4_1_ref(src, dst, (int64_t)nrow*n_per_row); return nrow * ggml_row_size(GGML_TYPE_Q4_1, n_per_row); } size_t row_size = ggml_row_size(GGML_TYPE_Q4_1, n_per_row); char * qrow = (char *)dst; for (int64_t row = 0; row < nrow; ++row) { quantize_row_q4_1_impl(src, (block_q4_1*)qrow, n_per_row, quant_weights); src += n_per_row; qrow += row_size; } return nrow * row_size; }
O3
c
quantize_q4_1: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x128, %rsp # imm = 0x128 movq %rcx, %r14 movq %rdx, %rbx movq %rsi, %rbp movq %rdi, %r12 movq %r8, 0x30(%rsp) testq %r8, %r8 je 0x321da movl $0x3, %edi movq %r14, %rsi callq 0x178b0 testq %rbx, %rbx jle 0x321f9 cvtsi2ss %r14, %xmm0 movss %xmm0, 0x1c(%rsp) movq %r14, %rcx shrq $0x5, %rcx movq %rcx, 0x58(%rsp) leaq (,%r14,4), %rcx movq %rcx, 0x38(%rsp) xorl %ecx, %ecx movq %rbx, 0x48(%rsp) movq %r14, 0x28(%rsp) movq %rax, 0x40(%rsp) movq %rcx, 0x50(%rsp) movq %r12, 0x10(%rsp) testq %r14, %r14 jle 0x321ab xorps %xmm1, %xmm1 xorl %eax, %eax movq 0x28(%rsp), %rcx movq 0x10(%rsp), %rdx movss (%rdx,%rax,4), %xmm0 mulss %xmm0, %xmm0 addss %xmm0, %xmm1 incq %rax cmpq %rax, %rcx jne 0x31fe2 cmpq $0x20, %rcx jl 0x321ab divss 0x1c(%rsp), %xmm1 movq 0x30(%rsp), %rbx movq 0x10(%rsp), %r12 xorl %r14d, %r14d movss %xmm1, 0xc(%rsp) movq %r14, %r13 shlq $0x7, %r13 addq 0x10(%rsp), %r13 xorl %r15d, %r15d movss (%rbx,%r15,4), %xmm2 movss (%r12,%r15,4), %xmm0 mulss %xmm0, %xmm0 addss %xmm1, %xmm0 ucomiss 0x1f280(%rip), %xmm0 # 0x512c4 jb 0x3204c sqrtss %xmm0, %xmm0 jmp 0x32063 movss %xmm2, 0x20(%rsp) callq 0x17f80 movss 0x20(%rsp), %xmm2 movss 0xc(%rsp), %xmm1 mulss %xmm0, %xmm2 movss %xmm2, 0xa0(%rsp,%r15,4) incq %r15 cmpq $0x20, %r15 jne 0x32029 leaq 0x80(%rsp), %rax movq %rax, (%rsp) movl $0x20, %edi movl $0xf, %esi movq %r13, %rdx leaq 0xa0(%rsp), %rcx leaq 0x60(%rsp), %r8 leaq 0x24(%rsp), %r9 callq 0x3bef2 movss 0x24(%rsp), %xmm2 movaps %xmm0, %xmm1 unpcklps %xmm2, %xmm0 # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1] movaps 0x19fc3(%rip), %xmm3 # 0x4c080 xorps %xmm3, %xmm2 unpcklps %xmm2, %xmm1 # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1] movaps %xmm1, %xmm2 paddd %xmm1, %xmm2 pxor %xmm3, %xmm2 movdqa %xmm2, %xmm3 pcmpgtd 0x1eda6(%rip), %xmm3 # 0x50e80 movdqa %xmm1, %xmm4 pand 0x1edaa(%rip), %xmm4 # 0x50e90 paddd 0x1edb2(%rip), %xmm4 # 0x50ea0 pand %xmm3, %xmm4 pandn 0x1edb6(%rip), %xmm3 # 0x50eb0 por %xmm4, %xmm3 andps 0x19f1b(%rip), %xmm0 # 0x4c020 mulps 0x1ed54(%rip), %xmm0 # 0x50e60 mulps 0x1ed5d(%rip), %xmm0 # 0x50e70 addps %xmm0, %xmm3 movaps %xmm3, %xmm0 psrld $0xd, %xmm0 pand 0x1ed9a(%rip), %xmm0 # 0x50ec0 andps 0x1eda3(%rip), %xmm3 # 0x50ed0 paddd %xmm0, %xmm3 pcmpgtd 0x1edb7(%rip), %xmm2 # 0x50ef0 movdqa %xmm2, %xmm0 pandn %xmm3, %xmm0 psrld $0x10, %xmm1 pand 0x1ed92(%rip), %xmm1 # 0x50ee0 pand 0x1edaa(%rip), %xmm2 # 0x50f00 por %xmm1, %xmm2 movss 0xc(%rsp), %xmm1 por %xmm0, %xmm2 leaq (%r14,%r14,4), %rax pshuflw $0xe8, %xmm2, %xmm0 # xmm0 = xmm2[0,2,2,3,4,5,6,7] movd %xmm0, (%rbp,%rax,4) movdqa 0x70(%rsp), %xmm0 psllw $0x4, %xmm0 pand 0x1ecca(%rip), %xmm0 # 0x50e50 por 0x60(%rsp), %xmm0 movdqu %xmm0, 0x4(%rbp,%rax,4) incq %r14 movl $0x80, %eax addq %rax, %r12 addq %rax, %rbx cmpq 0x58(%rsp), %r14 jne 0x3201a movq 0x10(%rsp), %r12 addq 0x38(%rsp), %r12 movq 0x40(%rsp), %rax addq %rax, %rbp movq 0x50(%rsp), %rcx incq %rcx movq 0x48(%rsp), %rbx cmpq %rbx, %rcx movq 0x28(%rsp), %r14 jne 0x31fc0 jmp 0x321f9 movq %r14, %rdx imulq %rbx, %rdx movq %r12, %rdi movq %rbp, %rsi callq 0x17c50 movl $0x3, %edi movq %r14, %rsi callq 0x178b0 imulq %rbx, %rax addq $0x128, %rsp # imm = 0x128 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
quantize_q4_1: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 128h mov r14, rcx mov rbx, rdx mov rbp, rsi mov r12, rdi mov [rsp+158h+var_128], r8 test r8, r8 jz loc_321DA mov edi, 3 mov rsi, r14 call _ggml_row_size test rbx, rbx jle loc_321F9 cvtsi2ss xmm0, r14 movss [rsp+158h+var_13C], xmm0 mov rcx, r14 shr rcx, 5 mov [rsp+158h+var_100], rcx lea rcx, ds:0[r14*4] mov [rsp+158h+var_120], rcx xor ecx, ecx mov [rsp+158h+var_110], rbx mov [rsp+158h+var_130], r14 mov [rsp+158h+var_118], rax loc_31FC0: mov [rsp+158h+var_108], rcx mov [rsp+158h+var_148], r12 test r14, r14 jle loc_321AB xorps xmm1, xmm1 xor eax, eax mov rcx, [rsp+158h+var_130] mov rdx, [rsp+158h+var_148] loc_31FE2: movss xmm0, dword ptr [rdx+rax*4] mulss xmm0, xmm0 addss xmm1, xmm0 inc rax cmp rcx, rax jnz short loc_31FE2 cmp rcx, 20h ; ' ' jl loc_321AB divss xmm1, [rsp+158h+var_13C] mov rbx, [rsp+158h+var_128] mov r12, [rsp+158h+var_148] xor r14d, r14d movss [rsp+158h+var_14C], xmm1 loc_3201A: mov r13, r14 shl r13, 7 add r13, [rsp+158h+var_148] xor r15d, r15d loc_32029: movss xmm2, dword ptr [rbx+r15*4] movss xmm0, dword ptr [r12+r15*4] mulss xmm0, xmm0 addss xmm0, xmm1 ucomiss xmm0, cs:dword_512C4 jb short loc_3204C sqrtss xmm0, xmm0 jmp short loc_32063 loc_3204C: movss [rsp+158h+var_138], xmm2 call _sqrtf movss xmm2, [rsp+158h+var_138] movss xmm1, [rsp+158h+var_14C] loc_32063: mulss xmm2, xmm0 movss [rsp+r15*4+158h+var_B8], xmm2 inc r15 cmp r15, 20h ; ' ' jnz short loc_32029 lea rax, [rsp+158h+var_D8] mov [rsp+158h+var_158], rax mov edi, 20h ; ' ' mov esi, 0Fh mov rdx, r13 lea rcx, [rsp+158h+var_B8] lea r8, [rsp+158h+var_F8] lea r9, [rsp+158h+var_134] call make_qkx3_quants movss xmm2, [rsp+158h+var_134] movaps xmm1, xmm0 unpcklps xmm0, xmm2 movaps xmm3, cs:xmmword_4C080 xorps xmm2, xmm3 unpcklps xmm1, xmm2 movaps xmm2, xmm1 paddd xmm2, xmm1 pxor xmm2, xmm3 movdqa xmm3, xmm2 pcmpgtd xmm3, cs:xmmword_50E80 movdqa xmm4, xmm1 pand xmm4, cs:xmmword_50E90 paddd xmm4, cs:xmmword_50EA0 pand xmm4, xmm3 pandn xmm3, cs:xmmword_50EB0 por xmm3, xmm4 andps xmm0, cs:xmmword_4C020 mulps xmm0, cs:xmmword_50E60 mulps xmm0, cs:xmmword_50E70 addps xmm3, xmm0 movaps xmm0, xmm3 psrld xmm0, 0Dh pand xmm0, cs:xmmword_50EC0 andps xmm3, cs:xmmword_50ED0 paddd xmm3, xmm0 pcmpgtd xmm2, cs:xmmword_50EF0 movdqa xmm0, xmm2 pandn xmm0, xmm3 psrld xmm1, 10h pand xmm1, cs:xmmword_50EE0 pand xmm2, cs:xmmword_50F00 por xmm2, xmm1 movss xmm1, [rsp+158h+var_14C] por xmm2, xmm0 lea rax, [r14+r14*4] pshuflw xmm0, xmm2, 0E8h movd dword ptr [rbp+rax*4+0], xmm0 movdqa xmm0, [rsp+158h+var_E8] psllw xmm0, 4 pand xmm0, cs:xmmword_50E50 por xmm0, [rsp+158h+var_F8] movdqu xmmword ptr [rbp+rax*4+4], xmm0 inc r14 mov eax, 80h add r12, rax add rbx, rax cmp r14, [rsp+158h+var_100] jnz loc_3201A loc_321AB: mov r12, [rsp+158h+var_148] add r12, [rsp+158h+var_120] mov rax, [rsp+158h+var_118] add rbp, rax mov rcx, [rsp+158h+var_108] inc rcx mov rbx, [rsp+158h+var_110] cmp rcx, rbx mov r14, [rsp+158h+var_130] jnz loc_31FC0 jmp short loc_321F9 loc_321DA: mov rdx, r14 imul rdx, rbx mov rdi, r12 mov rsi, rbp call _quantize_row_q4_1_ref mov edi, 3 mov rsi, r14 call _ggml_row_size loc_321F9: imul rax, rbx add rsp, 128h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
unsigned long long quantize_q4_1(long long a1, long long a2, long long a3, long long a4, long long a5, double a6) { long long v6; // r14 long long v7; // rbx long long v8; // rbp long long v9; // r12 unsigned long long v10; // rax long long v11; // rcx float v12; // xmm1_4 long long v13; // rax float v14; // xmm1_4 long long v15; // rbx long long v16; // r14 long long i; // r15 float v18; // xmm2_4 __m128 v19; // xmm0 __m128i v20; // xmm1 __m128i v21; // xmm2 __m128i v22; // xmm3 __m128 v23; // xmm3 __m128i v24; // xmm2 __m128i v25; // xmm0 __m128i v26; // xmm2 long long v27; // rax double v28; // xmm0_8 float v30; // [rsp+Ch] [rbp-14Ch] long long v31; // [rsp+10h] [rbp-148h] float v32; // [rsp+1Ch] [rbp-13Ch] float v33; // [rsp+20h] [rbp-138h] unsigned int v34; // [rsp+24h] [rbp-134h] BYREF long long v35; // [rsp+28h] [rbp-130h] long long v36; // [rsp+30h] [rbp-128h] long long v37; // [rsp+38h] [rbp-120h] unsigned long long v38; // [rsp+40h] [rbp-118h] long long v39; // [rsp+48h] [rbp-110h] long long v40; // [rsp+50h] [rbp-108h] unsigned long long v41; // [rsp+58h] [rbp-100h] __m128i v42; // [rsp+60h] [rbp-F8h] BYREF __m128i v43; // [rsp+70h] [rbp-E8h] BYREF char v44[32]; // [rsp+80h] [rbp-D8h] BYREF float v45[46]; // [rsp+A0h] [rbp-B8h] BYREF v6 = a4; v7 = a3; v8 = a2; v9 = a1; v36 = a5; if ( a5 ) { v10 = ggml_row_size(3u, a4, a6); if ( v7 > 0 ) { v32 = (float)(int)v6; v41 = (unsigned long long)v6 >> 5; v37 = 4 * v6; v11 = 0LL; v39 = v7; v35 = v6; v38 = v10; do { v40 = v11; v31 = v9; if ( v6 > 0 ) { v12 = 0.0; v13 = 0LL; do { v12 = v12 + (float)(*(float *)(v9 + 4 * v13) * *(float *)(v9 + 4 * v13)); ++v13; } while ( v35 != v13 ); if ( v35 >= 32 ) { v14 = v12 / v32; v15 = v36; v16 = 0LL; v30 = v14; do { for ( i = 0LL; i != 32; ++i ) { v18 = *(float *)(v15 + 4 * i); v19 = (__m128)*(unsigned int *)(v9 + 4 * i); v19.m128_f32[0] = (float)(v19.m128_f32[0] * v19.m128_f32[0]) + v14; if ( v19.m128_f32[0] < 0.0 ) { v33 = *(float *)(v15 + 4 * i); *(double *)v19.m128_u64 = sqrtf(*(double *)v19.m128_u64); v18 = v33; v14 = v30; } else { v19.m128_f32[0] = fsqrt(v19.m128_f32[0]); } v45[i] = v18 * v19.m128_f32[0]; } *(double *)v19.m128_u64 = make_qkx3_quants( 32, 15, (int)v31 + ((_DWORD)v16 << 7), (unsigned int)v45, (unsigned int)&v42, (unsigned int)&v34, (long long)v44); v20 = (__m128i)_mm_unpacklo_ps(v19, _mm_xor_ps((__m128)v34, (__m128)xmmword_4C080)); v21 = _mm_xor_si128(_mm_add_epi32(v20, v20), (__m128i)xmmword_4C080); v22 = _mm_cmpgt_epi32(v21, (__m128i)xmmword_50E80); v23 = _mm_add_ps( (__m128)_mm_or_si128( _mm_andnot_si128(v22, (__m128i)xmmword_50EB0), _mm_and_si128( _mm_add_epi32(_mm_and_si128(v20, (__m128i)xmmword_50E90), (__m128i)xmmword_50EA0), v22)), _mm_mul_ps( _mm_mul_ps( _mm_and_ps(_mm_unpacklo_ps(v19, (__m128)v34), (__m128)xmmword_4C020), (__m128)xmmword_50E60), (__m128)xmmword_50E70)); v24 = _mm_cmpgt_epi32(v21, (__m128i)xmmword_50EF0); v25 = _mm_andnot_si128( v24, _mm_add_epi32( (__m128i)_mm_and_ps(v23, (__m128)xmmword_50ED0), _mm_and_si128(_mm_srli_epi32((__m128i)v23, 0xDu), (__m128i)xmmword_50EC0))); v26 = _mm_or_si128( _mm_and_si128(v24, (__m128i)xmmword_50F00), _mm_and_si128(_mm_srli_epi32(v20, 0x10u), (__m128i)xmmword_50EE0)); v14 = v30; v27 = 5 * v16; *(_DWORD *)(v8 + 4 * v27) = _mm_cvtsi128_si32(_mm_shufflelo_epi16(_mm_or_si128(v26, v25), 232)); *(__m128i *)(v8 + 4 * v27 + 4) = _mm_or_si128( _mm_and_si128( _mm_slli_epi16(_mm_load_si128(&v43), 4u), (__m128i)xmmword_50E50), v42); ++v16; v9 += 128LL; v15 += 128LL; } while ( v16 != v41 ); } } v9 = v37 + v31; v10 = v38; v8 += v38; v11 = v40 + 1; v7 = v39; v6 = v35; } while ( v40 + 1 != v39 ); } } else { quantize_row_q4_1_ref(a1, a2, a3 * a4); v10 = ggml_row_size(3u, v6, v28); } return v7 * v10; }
quantize_q4_1: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x128 MOV R14,RCX MOV RBX,RDX MOV RBP,RSI MOV R12,RDI MOV qword ptr [RSP + 0x30],R8 TEST R8,R8 JZ 0x001321da MOV EDI,0x3 MOV RSI,R14 CALL 0x001178b0 TEST RBX,RBX JLE 0x001321f9 CVTSI2SS XMM0,R14 MOVSS dword ptr [RSP + 0x1c],XMM0 MOV RCX,R14 SHR RCX,0x5 MOV qword ptr [RSP + 0x58],RCX LEA RCX,[R14*0x4] MOV qword ptr [RSP + 0x38],RCX XOR ECX,ECX MOV qword ptr [RSP + 0x48],RBX MOV qword ptr [RSP + 0x28],R14 MOV qword ptr [RSP + 0x40],RAX LAB_00131fc0: MOV qword ptr [RSP + 0x50],RCX MOV qword ptr [RSP + 0x10],R12 TEST R14,R14 JLE 0x001321ab XORPS XMM1,XMM1 XOR EAX,EAX MOV RCX,qword ptr [RSP + 0x28] MOV RDX,qword ptr [RSP + 0x10] LAB_00131fe2: MOVSS XMM0,dword ptr [RDX + RAX*0x4] MULSS XMM0,XMM0 ADDSS XMM1,XMM0 INC RAX CMP RCX,RAX JNZ 0x00131fe2 CMP RCX,0x20 JL 0x001321ab DIVSS XMM1,dword ptr [RSP + 0x1c] MOV RBX,qword ptr [RSP + 0x30] MOV R12,qword ptr [RSP + 0x10] XOR R14D,R14D MOVSS dword ptr [RSP + 0xc],XMM1 LAB_0013201a: MOV R13,R14 SHL R13,0x7 ADD R13,qword ptr [RSP + 0x10] XOR R15D,R15D LAB_00132029: MOVSS XMM2,dword ptr [RBX + R15*0x4] MOVSS XMM0,dword ptr [R12 + R15*0x4] MULSS XMM0,XMM0 ADDSS XMM0,XMM1 UCOMISS XMM0,dword ptr [0x001512c4] JC 0x0013204c SQRTSS XMM0,XMM0 JMP 0x00132063 LAB_0013204c: MOVSS dword ptr [RSP + 0x20],XMM2 CALL 0x00117f80 MOVSS XMM2,dword ptr [RSP + 0x20] MOVSS XMM1,dword ptr [RSP + 0xc] LAB_00132063: MULSS XMM2,XMM0 MOVSS dword ptr [RSP + R15*0x4 + 0xa0],XMM2 INC R15 CMP R15,0x20 JNZ 0x00132029 LEA RAX,[RSP + 0x80] MOV qword ptr [RSP],RAX MOV EDI,0x20 MOV ESI,0xf MOV RDX,R13 LEA RCX,[RSP + 0xa0] LEA R8,[RSP + 0x60] LEA R9,[RSP + 0x24] CALL 0x0013bef2 MOVSS XMM2,dword ptr [RSP + 0x24] MOVAPS XMM1,XMM0 UNPCKLPS XMM0,XMM2 MOVAPS XMM3,xmmword ptr [0x0014c080] XORPS XMM2,XMM3 UNPCKLPS XMM1,XMM2 MOVAPS XMM2,XMM1 PADDD XMM2,XMM1 PXOR XMM2,XMM3 MOVDQA XMM3,XMM2 PCMPGTD XMM3,xmmword ptr [0x00150e80] MOVDQA XMM4,XMM1 PAND XMM4,xmmword ptr [0x00150e90] PADDD XMM4,xmmword ptr [0x00150ea0] PAND XMM4,XMM3 PANDN XMM3,xmmword ptr [0x00150eb0] POR XMM3,XMM4 ANDPS XMM0,xmmword ptr [0x0014c020] MULPS XMM0,xmmword ptr [0x00150e60] MULPS XMM0,xmmword ptr [0x00150e70] ADDPS XMM3,XMM0 MOVAPS XMM0,XMM3 PSRLD XMM0,0xd PAND XMM0,xmmword ptr [0x00150ec0] ANDPS XMM3,xmmword ptr [0x00150ed0] PADDD XMM3,XMM0 PCMPGTD XMM2,xmmword ptr [0x00150ef0] MOVDQA XMM0,XMM2 PANDN XMM0,XMM3 PSRLD XMM1,0x10 PAND XMM1,xmmword ptr [0x00150ee0] PAND XMM2,xmmword ptr [0x00150f00] POR XMM2,XMM1 MOVSS XMM1,dword ptr [RSP + 0xc] POR XMM2,XMM0 LEA RAX,[R14 + R14*0x4] PSHUFLW XMM0,XMM2,0xe8 MOVD dword ptr [RBP + RAX*0x4],XMM0 MOVDQA XMM0,xmmword ptr [RSP + 0x70] PSLLW XMM0,0x4 PAND XMM0,xmmword ptr [0x00150e50] POR XMM0,xmmword ptr [RSP + 0x60] MOVDQU xmmword ptr [RBP + RAX*0x4 + 0x4],XMM0 INC R14 MOV EAX,0x80 ADD R12,RAX ADD RBX,RAX CMP R14,qword ptr [RSP + 0x58] JNZ 0x0013201a LAB_001321ab: MOV R12,qword ptr [RSP + 0x10] ADD R12,qword ptr [RSP + 0x38] MOV RAX,qword ptr [RSP + 0x40] ADD RBP,RAX MOV RCX,qword ptr [RSP + 0x50] INC RCX MOV RBX,qword ptr [RSP + 0x48] CMP RCX,RBX MOV R14,qword ptr [RSP + 0x28] JNZ 0x00131fc0 JMP 0x001321f9 LAB_001321da: MOV RDX,R14 IMUL RDX,RBX MOV RDI,R12 MOV RSI,RBP CALL 0x00117c50 MOV EDI,0x3 MOV RSI,R14 CALL 0x001178b0 LAB_001321f9: IMUL RAX,RBX ADD RSP,0x128 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ long quantize_q4_1(long param_1,long param_2,long param_3,ulong param_4,long param_5) { ulong uVar1; long lVar2; long lVar3; long lVar4; float fVar5; uint extraout_XMM0_Da; uint extraout_XMM0_Db; int1 auVar6 [16]; float fVar7; uint uVar8; uint uVar9; uint uVar11; uint uVar12; uint uVar13; int1 auVar10 [16]; uint uVar14; float fVar15; uint uVar17; uint uVar18; float fVar19; uint uVar20; float fVar21; int1 auVar16 [16]; uint local_134; ulong local_130; long local_128; long local_120; long local_118; long local_110; long local_108; ulong local_100; int1 local_f8 [16]; int1 local_e8 [16]; int1 local_d8 [32]; float local_b8 [34]; local_128 = param_5; if (param_5 == 0) { quantize_row_q4_1_ref(param_1,param_2,param_4 * param_3); local_118 = ggml_row_size(3,param_4); } else { local_118 = ggml_row_size(3,param_4); if (0 < param_3) { local_100 = param_4 >> 5; local_120 = param_4 * 4; local_108 = 0; local_130 = param_4; local_110 = param_3; do { if (0 < (long)local_130) { fVar7 = 0.0; uVar1 = 0; do { fVar15 = *(float *)(param_1 + uVar1 * 4); fVar7 = fVar7 + fVar15 * fVar15; uVar1 = uVar1 + 1; } while (local_130 != uVar1); if (0x1f < (long)local_130) { uVar1 = 0; lVar2 = local_128; lVar3 = param_1; do { lVar4 = 0; do { fVar15 = *(float *)(lVar2 + lVar4 * 4); fVar5 = *(float *)(lVar3 + lVar4 * 4); fVar5 = fVar5 * fVar5 + fVar7 / (float)(long)param_4; if (fVar5 < DAT_001512c4) { fVar5 = sqrtf(fVar5); } else { fVar5 = SQRT(fVar5); } local_b8[lVar4] = fVar15 * fVar5; lVar4 = lVar4 + 1; } while (lVar4 != 0x20); make_qkx3_quants(0x20,0xf,uVar1 * 0x80 + param_1,local_b8,local_f8,&local_134,local_d8 ); uVar8 = local_134 ^ _DAT_0014c080; uVar9 = extraout_XMM0_Da * 2 ^ _DAT_0014c080; uVar11 = uVar8 * 2 ^ _UNK_0014c084; uVar12 = extraout_XMM0_Db * 2 ^ _UNK_0014c088; uVar13 = _UNK_0014c084 * 2 ^ _UNK_0014c08c; uVar14 = -(uint)(_DAT_00150e80 < (int)uVar9); uVar17 = -(uint)(_UNK_00150e84 < (int)uVar11); uVar18 = -(uint)(_UNK_00150e88 < (int)uVar12); uVar20 = -(uint)(_UNK_00150e8c < (int)uVar13); fVar15 = (float)(~uVar14 & _DAT_00150eb0 | (extraout_XMM0_Da & _DAT_00150e90) + _DAT_00150ea0 & uVar14) + (float)(extraout_XMM0_Da & _DAT_0014c020) * _DAT_00150e60 * _DAT_00150e70; fVar5 = (float)(~uVar17 & _UNK_00150eb4 | (uVar8 & _UNK_00150e94) + _UNK_00150ea4 & uVar17) + (float)(local_134 & _UNK_0014c024) * _UNK_00150e64 * _UNK_00150e74; fVar19 = (float)(~uVar18 & _UNK_00150eb8 | (extraout_XMM0_Db & _UNK_00150e98) + _UNK_00150ea8 & uVar18) + (float)(extraout_XMM0_Db & _UNK_0014c028) * _UNK_00150e68 * _UNK_00150e78; fVar21 = (float)(~uVar20 & _UNK_00150ebc | (_UNK_0014c084 & _UNK_00150e9c) + _UNK_00150eac & uVar20) + _UNK_00150e6c * 0.0 * _UNK_00150e7c; auVar16._0_4_ = ((uint)fVar15 & _DAT_00150ed0) + ((uint)fVar15 >> 0xd & _DAT_00150ec0) ; auVar16._4_4_ = ((uint)fVar5 & _UNK_00150ed4) + ((uint)fVar5 >> 0xd & _UNK_00150ec4); auVar16._8_4_ = ((uint)fVar19 & _UNK_00150ed8) + ((uint)fVar19 >> 0xd & _UNK_00150ec8) ; auVar16._12_4_ = ((uint)fVar21 & _UNK_00150edc) + ((uint)fVar21 >> 0xd & _UNK_00150ecc); auVar10._0_4_ = -(uint)(_DAT_00150ef0 < (int)uVar9); auVar10._4_4_ = -(uint)(_UNK_00150ef4 < (int)uVar11); auVar10._8_4_ = -(uint)(_UNK_00150ef8 < (int)uVar12); auVar10._12_4_ = -(uint)(_UNK_00150efc < (int)uVar13); auVar6._0_4_ = extraout_XMM0_Da >> 0x10; auVar6._4_4_ = uVar8 >> 0x10; auVar6._8_4_ = extraout_XMM0_Db >> 0x10; auVar6._12_4_ = _UNK_0014c084 >> 0x10; auVar6 = pshuflw(~auVar10 & auVar16, auVar10 & _DAT_00150f00 | auVar6 & _DAT_00150ee0 | ~auVar10 & auVar16 ,0xe8); *(int *)(param_2 + uVar1 * 0x14) = auVar6._0_4_; auVar6 = psllw(local_e8,4); *(int1 (*) [16])(param_2 + 4 + uVar1 * 0x14) = auVar6 & _DAT_00150e50 | local_f8 ; uVar1 = uVar1 + 1; lVar3 = lVar3 + 0x80; lVar2 = lVar2 + 0x80; } while (uVar1 != local_100); } } param_1 = param_1 + local_120; param_2 = param_2 + local_118; local_108 = local_108 + 1; param_3 = local_110; } while (local_108 != local_110); } } return local_118 * param_3; }
60,347
testing::internal::FlagToEnvVar[abi:cxx11](char const*)
giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/src/gtest-port.cc
static std::string FlagToEnvVar(const char* flag) { const std::string full_flag = (Message() << GTEST_FLAG_PREFIX_ << flag).GetString(); Message env_var; for (size_t i = 0; i != full_flag.length(); i++) { env_var << ToUpper(full_flag.c_str()[i]); } return env_var.GetString(); }
O1
cpp
testing::internal::FlagToEnvVar[abi:cxx11](char const*): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x30, %rsp movq %rsi, %r15 movq %rdi, %rbx leaq 0x8(%rsp), %r14 movq %r14, %rdi callq 0x1cd64 movq (%r14), %r14 leaq 0x10(%r14), %r12 leaq 0x2acd2(%rip), %rsi # 0x422a5 movl $0x6, %r13d movl $0x6, %edx movq %r12, %rdi callq 0x85b0 testq %r15, %r15 je 0x175f8 movq %r15, %rdi callq 0x8200 movq %rax, %r13 jmp 0x175ff leaq 0x28fea(%rip), %r15 # 0x405e9 movq %r12, %rdi movq %r15, %rsi movq %r13, %rdx callq 0x85b0 leaq 0x10(%rsp), %rdi movq %r14, %rsi callq 0x1cfc7 testq %r14, %r14 je 0x17628 movq (%r14), %rax movq %r14, %rdi callq *0x8(%rax) leaq 0x8(%rsp), %rdi callq 0x1cd64 cmpq $0x0, 0x18(%rsp) je 0x17678 movq 0x8(%rsp), %r14 addq $0x10, %r14 xorl %r12d, %r12d leaq 0x7(%rsp), %r15 movq 0x10(%rsp), %rax movzbl (%rax,%r12), %edi callq 0x8a00 movb %al, 0x7(%rsp) movl $0x1, %edx movq %r14, %rdi movq %r15, %rsi callq 0x85b0 incq %r12 cmpq 0x18(%rsp), %r12 jne 0x1764b movq 0x8(%rsp), %r14 movq %rbx, %rdi movq %r14, %rsi callq 0x1cfc7 testq %r14, %r14 je 0x17696 movq (%r14), %rax movq %r14, %rdi callq *0x8(%rax) leaq 0x20(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x176b1 movq 0x20(%rsp), %rsi incq %rsi callq 0x84e0 movq %rbx, %rax addq $0x30, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq jmp 0x176dc movq %rax, %rbx jmp 0x176f8 movq %rax, %rbx testq %r14, %r14 je 0x17713 movq (%r14), %rax movq %r14, %rdi callq *0x8(%rax) jmp 0x17713 movq %rax, %rbx movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x176ef movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x8(%rsp) leaq 0x20(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x17713 movq 0x20(%rsp), %rsi incq %rsi callq 0x84e0 movq %rbx, %rdi callq 0x8990
_ZN7testing8internalL12FlagToEnvVarB5cxx11EPKc: push r15 push r14 push r13 push r12 push rbx sub rsp, 30h mov r15, rsi mov rbx, rdi lea r14, [rsp+58h+var_50] mov rdi, r14; this call _ZN7testing7MessageC2Ev; testing::Message::Message(void) mov r14, [r14] lea r12, [r14+10h] lea rsi, aGtest; "gtest_" mov r13d, 6 mov edx, 6 mov rdi, r12 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) test r15, r15 jz short loc_175F8 mov rdi, r15 call _strlen mov r13, rax jmp short loc_175FF loc_175F8: lea r15, aNull; "(null)" loc_175FF: mov rdi, r12 mov rsi, r15 mov rdx, r13 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rdi, [rsp+58h+var_48] mov rsi, r14 call _ZN7testing8internal20StringStreamToStringEPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE; testing::internal::StringStreamToString(std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>> *) test r14, r14 jz short loc_17628 mov rax, [r14] mov rdi, r14 call qword ptr [rax+8] loc_17628: lea rdi, [rsp+58h+var_50]; this call _ZN7testing7MessageC2Ev; testing::Message::Message(void) cmp [rsp+58h+var_40], 0 jz short loc_17678 mov r14, [rsp+58h+var_50] add r14, 10h xor r12d, r12d lea r15, [rsp+58h+var_51] loc_1764B: mov rax, [rsp+58h+var_48] movzx edi, byte ptr [rax+r12] call _toupper mov [rsp+58h+var_51], al mov edx, 1 mov rdi, r14 mov rsi, r15 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) inc r12 cmp r12, [rsp+58h+var_40] jnz short loc_1764B loc_17678: mov r14, [rsp+58h+var_50] mov rdi, rbx mov rsi, r14 call _ZN7testing8internal20StringStreamToStringEPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE; testing::internal::StringStreamToString(std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>> *) test r14, r14 jz short loc_17696 mov rax, [r14] mov rdi, r14 call qword ptr [rax+8] loc_17696: lea rax, [rsp+58h+var_38] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_176B1 mov rsi, [rsp+58h+var_38] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_176B1: mov rax, rbx add rsp, 30h pop rbx pop r12 pop r13 pop r14 pop r15 retn jmp short loc_176DC mov rbx, rax jmp short loc_176F8 mov rbx, rax test r14, r14 jz short loc_17713 mov rax, [r14] mov rdi, r14 call qword ptr [rax+8] jmp short loc_17713 loc_176DC: mov rbx, rax mov rdi, [rsp+arg_0] test rdi, rdi jz short loc_176EF mov rax, [rdi] call qword ptr [rax+8] loc_176EF: mov [rsp+arg_0], 0 loc_176F8: lea rax, [rsp+arg_18] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_17713 mov rsi, [rsp+arg_18] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_17713: mov rdi, rbx call __Unwind_Resume
long long testing::internal::FlagToEnvVar[abi:cxx11](long long a1, const char *a2) { const char *v2; // r15 long long v3; // r14 long long v4; // r13 int v5; // edx int v6; // ecx int v7; // r8d int v8; // r9d int v9; // edx int v10; // ecx int v11; // r8d int v12; // r9d long long v13; // r14 long long i; // r12 long long v15; // r14 char v17; // [rsp+7h] [rbp-51h] BYREF long long v18; // [rsp+8h] [rbp-50h] BYREF unsigned __int8 *v19; // [rsp+10h] [rbp-48h] BYREF long long v20; // [rsp+18h] [rbp-40h] long long v21; // [rsp+20h] [rbp-38h] BYREF v2 = a2; testing::Message::Message((testing::Message *)&v18); v3 = v18; v4 = 6LL; std::__ostream_insert<char,std::char_traits<char>>(v18 + 16, "gtest_", 6LL); if ( a2 ) v4 = strlen(a2); else v2 = "(null)"; std::__ostream_insert<char,std::char_traits<char>>(v3 + 16, v2, v4); testing::internal::StringStreamToString((unsigned int)&v19, v3, v5, v6, v7, v8); if ( v3 ) (*(void ( **)(long long))(*(_QWORD *)v3 + 8LL))(v3); testing::Message::Message((testing::Message *)&v18); if ( v20 ) { v13 = v18 + 16; for ( i = 0LL; i != v20; ++i ) { v17 = toupper(v19[i]); std::__ostream_insert<char,std::char_traits<char>>(v13, &v17, 1LL); } } v15 = v18; testing::internal::StringStreamToString(a1, v18, v9, v10, v11, v12); if ( v15 ) (*(void ( **)(long long))(*(_QWORD *)v15 + 8LL))(v15); if ( v19 != (unsigned __int8 *)&v21 ) operator delete(v19, v21 + 1); return a1; }
FlagToEnvVar[abi:cxx11]: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x30 MOV R15,RSI MOV RBX,RDI LEA R14,[RSP + 0x8] MOV RDI,R14 CALL 0x0011cd64 MOV R14,qword ptr [R14] LEA R12,[R14 + 0x10] LAB_001175cc: LEA RSI,[0x1422a5] MOV R13D,0x6 MOV EDX,0x6 MOV RDI,R12 CALL 0x001085b0 TEST R15,R15 JZ 0x001175f8 MOV RDI,R15 CALL 0x00108200 MOV R13,RAX JMP 0x001175ff LAB_001175f8: LEA R15,[0x1405e9] LAB_001175ff: MOV RDI,R12 MOV RSI,R15 MOV RDX,R13 CALL 0x001085b0 LEA RDI,[RSP + 0x10] MOV RSI,R14 CALL 0x0011cfc7 LAB_0011761a: TEST R14,R14 JZ 0x00117628 MOV RAX,qword ptr [R14] MOV RDI,R14 CALL qword ptr [RAX + 0x8] LAB_00117628: LEA RDI,[RSP + 0x8] CALL 0x0011cd64 CMP qword ptr [RSP + 0x18],0x0 JZ 0x00117678 MOV R14,qword ptr [RSP + 0x8] ADD R14,0x10 XOR R12D,R12D LEA R15,[RSP + 0x7] LAB_0011764b: MOV RAX,qword ptr [RSP + 0x10] MOVZX EDI,byte ptr [RAX + R12*0x1] CALL 0x00108a00 MOV byte ptr [RSP + 0x7],AL LAB_0011765e: MOV EDX,0x1 MOV RDI,R14 MOV RSI,R15 CALL 0x001085b0 INC R12 CMP R12,qword ptr [RSP + 0x18] JNZ 0x0011764b LAB_00117678: MOV R14,qword ptr [RSP + 0x8] LAB_0011767d: MOV RDI,RBX MOV RSI,R14 CALL 0x0011cfc7 LAB_00117688: TEST R14,R14 JZ 0x00117696 MOV RAX,qword ptr [R14] MOV RDI,R14 CALL qword ptr [RAX + 0x8] LAB_00117696: LEA RAX,[RSP + 0x20] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001176b1 MOV RSI,qword ptr [RSP + 0x20] INC RSI CALL 0x001084e0 LAB_001176b1: MOV RAX,RBX ADD RSP,0x30 POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* testing::internal::FlagToEnvVar[abi:cxx11](char const*) */ internal * __thiscall testing::internal::FlagToEnvVar_abi_cxx11_(internal *this,char *param_1) { long *plVar1; int iVar2; long lVar3; size_t sVar4; ostream *poVar5; char local_51; long *local_50; long *local_48; long local_40; long local_38 [2]; Message::Message((Message *)&local_50); plVar1 = local_50; poVar5 = (ostream *)(local_50 + 2); /* try { // try from 001175cc to 00117619 has its CatchHandler @ 001176c9 */ sVar4 = 6; std::__ostream_insert<char,std::char_traits<char>>(poVar5,"gtest_",6); if (param_1 == (char *)0x0) { param_1 = "(null)"; } else { sVar4 = strlen(param_1); } std::__ostream_insert<char,std::char_traits<char>>(poVar5,param_1,sVar4); StringStreamToString((stringstream *)&local_48); if (plVar1 != (long *)0x0) { (**(code **)(*plVar1 + 8))(plVar1); } /* try { // try from 00117628 to 00117631 has its CatchHandler @ 001176c4 */ Message::Message((Message *)&local_50); if (local_40 != 0) { poVar5 = (ostream *)(local_50 + 2); lVar3 = 0; do { iVar2 = toupper((uint)*(byte *)((long)local_48 + lVar3)); local_51 = (char)iVar2; /* try { // try from 0011765e to 0011766d has its CatchHandler @ 001176dc */ std::__ostream_insert<char,std::char_traits<char>>(poVar5,&local_51,1); lVar3 = lVar3 + 1; } while (lVar3 != local_40); } /* try { // try from 0011767d to 00117687 has its CatchHandler @ 001176c2 */ StringStreamToString((stringstream *)this); if (local_50 != (long *)0x0) { (**(code **)(*local_50 + 8))(local_50); } if (local_48 != local_38) { operator_delete(local_48,local_38[0] + 1); } return this; }
60,348
free_resources
eloqsql/client/mysqldump.c
static void free_resources() { if (md_result_file && md_result_file != stdout) my_fclose(md_result_file, MYF(0)); if (get_table_name_result) mysql_free_result(get_table_name_result); if (routine_res) mysql_free_result(routine_res); if (routine_list_res) mysql_free_result(routine_list_res); if (mysql) { mysql_close(mysql); mysql= 0; } my_free(order_by); my_free(opt_password); my_free(current_host); free_root(&glob_root, MYF(0)); if (my_hash_inited(&ignore_database)) my_hash_free(&ignore_database); if (my_hash_inited(&ignore_table)) my_hash_free(&ignore_table); if (my_hash_inited(&ignore_data)) my_hash_free(&ignore_data); dynstr_free(&extended_row); dynstr_free(&dynamic_where); dynstr_free(&insert_pat); dynstr_free(&select_field_names); if (defaults_argv) free_defaults(defaults_argv); mysql_library_end(); my_end(my_end_arg); }
O3
c
free_resources: pushq %rbp movq %rsp, %rbp movq 0x387b2c(%rip), %rdi # 0x3c4480 testq %rdi, %rdi je 0x3c96c movq 0x30c658(%rip), %rax # 0x348fb8 cmpq (%rax), %rdi je 0x3c96c xorl %esi, %esi callq 0x67ce5 movq 0x387f2d(%rip), %rdi # 0x3c48a0 testq %rdi, %rdi je 0x3c97d callq 0x44fbe movq 0x387f24(%rip), %rdi # 0x3c48a8 testq %rdi, %rdi je 0x3c98e callq 0x44fbe movq 0x387f1b(%rip), %rdi # 0x3c48b0 testq %rdi, %rdi je 0x3c99f callq 0x44fbe movq 0x387af2(%rip), %rdi # 0x3c4498 testq %rdi, %rdi je 0x3c9bb callq 0x48d84 movq $0x0, 0x387add(%rip) # 0x3c4498 movq 0x387ef6(%rip), %rdi # 0x3c48b8 callq 0x6b256 movq 0x387c0a(%rip), %rdi # 0x3c45d8 callq 0x6b256 movq 0x387bee(%rip), %rdi # 0x3c45c8 callq 0x6b256 leaq 0x387eda(%rip), %rdi # 0x3c48c0 xorl %esi, %esi callq 0x6738f cmpq $0x0, 0x387c7b(%rip) # 0x3c4670 je 0x3ca03 leaq 0x387c62(%rip), %rdi # 0x3c4660 callq 0x654ad cmpq $0x0, 0x387cd5(%rip) # 0x3c46e0 je 0x3ca19 leaq 0x387cbc(%rip), %rdi # 0x3c46d0 callq 0x654ad cmpq $0x0, 0x387d2f(%rip) # 0x3c4750 je 0x3ca2f leaq 0x387d16(%rip), %rdi # 0x3c4740 callq 0x654ad leaq 0x387bda(%rip), %rdi # 0x3c4610 callq 0x6ceab leaq 0x387ebe(%rip), %rdi # 0x3c4900 callq 0x6ceab leaq 0x387ed2(%rip), %rdi # 0x3c4920 callq 0x6ceab leaq 0x387ee6(%rip), %rdi # 0x3c4940 callq 0x6ceab movq 0x387bf2(%rip), %rdi # 0x3c4658 testq %rdi, %rdi je 0x3ca70 callq 0x64ee7 callq 0x4b4a5 movl 0x387d41(%rip), %edi # 0x3c47bc popq %rbp jmp 0x6a98f
free_resources: push rbp mov rbp, rsp mov rdi, cs:md_result_file test rdi, rdi jz short loc_3C96C mov rax, cs:stdout_ptr cmp rdi, [rax] jz short loc_3C96C xor esi, esi call my_fclose loc_3C96C: mov rdi, cs:get_table_name_result test rdi, rdi jz short loc_3C97D call mysql_free_result loc_3C97D: mov rdi, cs:routine_res test rdi, rdi jz short loc_3C98E call mysql_free_result loc_3C98E: mov rdi, cs:routine_list_res test rdi, rdi jz short loc_3C99F call mysql_free_result loc_3C99F: mov rdi, cs:mysql test rdi, rdi jz short loc_3C9BB call mysql_close mov cs:mysql, 0 loc_3C9BB: mov rdi, cs:order_by call my_free mov rdi, cs:opt_password call my_free mov rdi, cs:current_host call my_free lea rdi, glob_root xor esi, esi call free_root cmp cs:qword_3C4670, 0 jz short loc_3CA03 lea rdi, ignore_database call my_hash_free loc_3CA03: cmp cs:qword_3C46E0, 0 jz short loc_3CA19 lea rdi, ignore_table call my_hash_free loc_3CA19: cmp cs:qword_3C4750, 0 jz short loc_3CA2F lea rdi, ignore_data call my_hash_free loc_3CA2F: lea rdi, extended_row call dynstr_free lea rdi, dynamic_where call dynstr_free lea rdi, insert_pat call dynstr_free lea rdi, select_field_names call dynstr_free mov rdi, cs:defaults_argv test rdi, rdi jz short loc_3CA70 call free_defaults loc_3CA70: call mysql_server_end mov edi, cs:my_end_arg pop rbp jmp my_end
long long free_resources(double a1) { if ( md_result_file && md_result_file != stdout ) my_fclose(md_result_file, 0LL); if ( get_table_name_result ) mysql_free_result(get_table_name_result); if ( routine_res ) mysql_free_result(routine_res); if ( routine_list_res ) mysql_free_result(routine_list_res); if ( mysql ) { mysql_close(mysql, a1); mysql = 0LL; } my_free(order_by); my_free(opt_password); my_free(current_host); free_root(&glob_root, 0LL); if ( qword_3C4670 ) my_hash_free(&ignore_database); if ( qword_3C46E0 ) my_hash_free(&ignore_table); if ( qword_3C4750 ) my_hash_free(&ignore_data); dynstr_free(&extended_row); dynstr_free(&dynamic_where); dynstr_free(&insert_pat); dynstr_free(&select_field_names); if ( defaults_argv ) free_defaults(); mysql_server_end(); return my_end((unsigned int)my_end_arg); }
free_resources: PUSH RBP MOV RBP,RSP MOV RDI,qword ptr [0x004c4480] TEST RDI,RDI JZ 0x0013c96c MOV RAX,qword ptr [0x00448fb8] CMP RDI,qword ptr [RAX] JZ 0x0013c96c XOR ESI,ESI CALL 0x00167ce5 LAB_0013c96c: MOV RDI,qword ptr [0x004c48a0] TEST RDI,RDI JZ 0x0013c97d CALL 0x00144fbe LAB_0013c97d: MOV RDI,qword ptr [0x004c48a8] TEST RDI,RDI JZ 0x0013c98e CALL 0x00144fbe LAB_0013c98e: MOV RDI,qword ptr [0x004c48b0] TEST RDI,RDI JZ 0x0013c99f CALL 0x00144fbe LAB_0013c99f: MOV RDI,qword ptr [0x004c4498] TEST RDI,RDI JZ 0x0013c9bb CALL 0x00148d84 MOV qword ptr [0x004c4498],0x0 LAB_0013c9bb: MOV RDI,qword ptr [0x004c48b8] CALL 0x0016b256 MOV RDI,qword ptr [0x004c45d8] CALL 0x0016b256 MOV RDI,qword ptr [0x004c45c8] CALL 0x0016b256 LEA RDI,[0x4c48c0] XOR ESI,ESI CALL 0x0016738f CMP qword ptr [0x004c4670],0x0 JZ 0x0013ca03 LEA RDI,[0x4c4660] CALL 0x001654ad LAB_0013ca03: CMP qword ptr [0x004c46e0],0x0 JZ 0x0013ca19 LEA RDI,[0x4c46d0] CALL 0x001654ad LAB_0013ca19: CMP qword ptr [0x004c4750],0x0 JZ 0x0013ca2f LEA RDI,[0x4c4740] CALL 0x001654ad LAB_0013ca2f: LEA RDI,[0x4c4610] CALL 0x0016ceab LEA RDI,[0x4c4900] CALL 0x0016ceab LEA RDI,[0x4c4920] CALL 0x0016ceab LEA RDI,[0x4c4940] CALL 0x0016ceab MOV RDI,qword ptr [0x004c4658] TEST RDI,RDI JZ 0x0013ca70 CALL 0x00164ee7 LAB_0013ca70: CALL 0x0014b4a5 MOV EDI,dword ptr [0x004c47bc] POP RBP JMP 0x0016a98f
void free_resources(void) { if ((md_result_file != 0) && (md_result_file != *(long *)PTR_stdout_00448fb8)) { my_fclose(md_result_file,0); } if (get_table_name_result != 0) { mysql_free_result(); } if (routine_res != 0) { mysql_free_result(); } if (routine_list_res != 0) { mysql_free_result(); } if (mysql != 0) { mysql_close(); mysql = 0; } my_free(order_by); my_free(opt_password); my_free(current_host); free_root(glob_root,0); if (ignore_database._16_8_ != 0) { my_hash_free(ignore_database); } if (ignore_table._16_8_ != 0) { my_hash_free(ignore_table); } if (ignore_data._16_8_ != 0) { my_hash_free(ignore_data); } dynstr_free(&extended_row); dynstr_free(&dynamic_where); dynstr_free(&insert_pat); dynstr_free(&select_field_names); if (defaults_argv != 0) { free_defaults(); } mysql_server_end(); my_end(my_end_arg); return; }
60,349
AuthSession::InitHandlers()
SylCore-WoTLK/src/server/apps/authserver/Server/AuthSession.cpp
std::unordered_map<uint8, AuthHandler> AuthSession::InitHandlers() { std::unordered_map<uint8, AuthHandler> handlers; handlers[AUTH_LOGON_CHALLENGE] = { STATUS_CHALLENGE, AUTH_LOGON_CHALLENGE_INITIAL_SIZE, &AuthSession::HandleLogonChallenge }; handlers[AUTH_LOGON_PROOF] = { STATUS_LOGON_PROOF, sizeof(AUTH_LOGON_PROOF_C), &AuthSession::HandleLogonProof }; handlers[AUTH_RECONNECT_CHALLENGE] = { STATUS_CHALLENGE, AUTH_LOGON_CHALLENGE_INITIAL_SIZE, &AuthSession::HandleReconnectChallenge }; handlers[AUTH_RECONNECT_PROOF] = { STATUS_RECONNECT_PROOF, sizeof(AUTH_RECONNECT_PROOF_C), &AuthSession::HandleReconnectProof }; handlers[REALM_LIST] = { STATUS_AUTHED, REALM_LIST_PACKET_SIZE, &AuthSession::HandleRealmList }; return handlers; }
O3
cpp
AuthSession::InitHandlers(): pushq %r14 pushq %rbx pushq %rax 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) leaq 0x7(%rsp), %rsi movb $0x0, (%rsi) callq 0x47f8e movl $0x0, (%rax) movq $0x4, 0x4(%rax) leaq 0xf6(%rip), %rcx # 0x4088c movq %rcx, 0xc(%rax) movq $0x0, 0x14(%rax) leaq 0x6(%rsp), %rsi movb $0x1, (%rsi) movq %rbx, %rdi callq 0x47f8e movl $0x1, (%rax) movq $0x4b, 0x4(%rax) leaq 0x631(%rip), %rcx # 0x40df8 movq %rcx, 0xc(%rax) movq $0x0, 0x14(%rax) leaq 0x5(%rsp), %rsi movb $0x2, (%rsi) movq %rbx, %rdi callq 0x47f8e movl $0x0, (%rax) movq $0x4, 0x4(%rax) leaq 0x20b6(%rip), %rcx # 0x428ae movq %rcx, 0xc(%rax) movq $0x0, 0x14(%rax) leaq 0x4(%rsp), %rsi movb $0x3, (%rsi) movq %rbx, %rdi callq 0x47f8e movl $0x2, (%rax) movq $0x3a, 0x4(%rax) leaq 0x25f1(%rip), %rcx # 0x42e1a movq %rcx, 0xc(%rax) movq $0x0, 0x14(%rax) leaq 0x3(%rsp), %rsi movb $0x10, (%rsi) movq %rbx, %rdi callq 0x47f8e movl $0x3, (%rax) movq $0x5, 0x4(%rax) leaq 0x2ce6(%rip), %rcx # 0x43540 movq %rcx, 0xc(%rax) movq $0x0, 0x14(%rax) movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r14 retq jmp 0x40879 jmp 0x40879 jmp 0x40879 jmp 0x40879 movq %rax, %r14 movq %rbx, %rdi callq 0x47608 movq %r14, %rdi callq 0x1bba0
_ZN11AuthSession12InitHandlersEv: push r14 push rbx push rax 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 lea rsi, [rsp+18h+var_11] mov byte ptr [rsi], 0 call _ZNSt8__detail9_Map_baseIhSt4pairIKh11AuthHandlerESaIS4_ENS_10_Select1stESt8equal_toIhESt4hashIhENS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb0ELb0ELb1EEELb1EEixEOh; std::__detail::_Map_base<uchar,std::pair<uchar const,AuthHandler>,std::allocator<std::pair<uchar const,AuthHandler>>,std::__detail::_Select1st,std::equal_to<uchar>,std::hash<uchar>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>::operator[](uchar &&) mov dword ptr [rax], 0 mov qword ptr [rax+4], 4 lea rcx, _ZN11AuthSession20HandleLogonChallengeEv; AuthSession::HandleLogonChallenge(void) mov [rax+0Ch], rcx mov qword ptr [rax+14h], 0 lea rsi, [rsp+18h+var_12] mov byte ptr [rsi], 1 mov rdi, rbx call _ZNSt8__detail9_Map_baseIhSt4pairIKh11AuthHandlerESaIS4_ENS_10_Select1stESt8equal_toIhESt4hashIhENS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb0ELb0ELb1EEELb1EEixEOh; std::__detail::_Map_base<uchar,std::pair<uchar const,AuthHandler>,std::allocator<std::pair<uchar const,AuthHandler>>,std::__detail::_Select1st,std::equal_to<uchar>,std::hash<uchar>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>::operator[](uchar &&) mov dword ptr [rax], 1 mov qword ptr [rax+4], 4Bh ; 'K' lea rcx, _ZN11AuthSession16HandleLogonProofEv; AuthSession::HandleLogonProof(void) mov [rax+0Ch], rcx mov qword ptr [rax+14h], 0 lea rsi, [rsp+18h+var_13] mov byte ptr [rsi], 2 mov rdi, rbx call _ZNSt8__detail9_Map_baseIhSt4pairIKh11AuthHandlerESaIS4_ENS_10_Select1stESt8equal_toIhESt4hashIhENS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb0ELb0ELb1EEELb1EEixEOh; std::__detail::_Map_base<uchar,std::pair<uchar const,AuthHandler>,std::allocator<std::pair<uchar const,AuthHandler>>,std::__detail::_Select1st,std::equal_to<uchar>,std::hash<uchar>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>::operator[](uchar &&) mov dword ptr [rax], 0 mov qword ptr [rax+4], 4 lea rcx, _ZN11AuthSession24HandleReconnectChallengeEv; AuthSession::HandleReconnectChallenge(void) mov [rax+0Ch], rcx mov qword ptr [rax+14h], 0 lea rsi, [rsp+18h+var_14] mov byte ptr [rsi], 3 mov rdi, rbx call _ZNSt8__detail9_Map_baseIhSt4pairIKh11AuthHandlerESaIS4_ENS_10_Select1stESt8equal_toIhESt4hashIhENS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb0ELb0ELb1EEELb1EEixEOh; std::__detail::_Map_base<uchar,std::pair<uchar const,AuthHandler>,std::allocator<std::pair<uchar const,AuthHandler>>,std::__detail::_Select1st,std::equal_to<uchar>,std::hash<uchar>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>::operator[](uchar &&) mov dword ptr [rax], 2 mov qword ptr [rax+4], 3Ah ; ':' lea rcx, _ZN11AuthSession20HandleReconnectProofEv; AuthSession::HandleReconnectProof(void) mov [rax+0Ch], rcx mov qword ptr [rax+14h], 0 lea rsi, [rsp+18h+var_15] mov byte ptr [rsi], 10h mov rdi, rbx call _ZNSt8__detail9_Map_baseIhSt4pairIKh11AuthHandlerESaIS4_ENS_10_Select1stESt8equal_toIhESt4hashIhENS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb0ELb0ELb1EEELb1EEixEOh; std::__detail::_Map_base<uchar,std::pair<uchar const,AuthHandler>,std::allocator<std::pair<uchar const,AuthHandler>>,std::__detail::_Select1st,std::equal_to<uchar>,std::hash<uchar>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>::operator[](uchar &&) mov dword ptr [rax], 3 mov qword ptr [rax+4], 5 lea rcx, _ZN11AuthSession15HandleRealmListEv; AuthSession::HandleRealmList(void) mov [rax+0Ch], rcx mov qword ptr [rax+14h], 0 mov rax, rbx add rsp, 8 pop rbx pop r14 retn jmp short loc_40879 jmp short loc_40879 jmp short loc_40879 jmp short $+2 loc_40879: mov r14, rax mov rdi, rbx call _ZNSt10_HashtableIhSt4pairIKh11AuthHandlerESaIS3_ENSt8__detail10_Select1stESt8equal_toIhESt4hashIhENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb0ELb0ELb1EEEED2Ev; std::_Hashtable<uchar,std::pair<uchar const,AuthHandler>,std::allocator<std::pair<uchar const,AuthHandler>>,std::__detail::_Select1st,std::equal_to<uchar>,std::hash<uchar>,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, r14 call __Unwind_Resume
AuthSession * AuthSession::InitHandlers(AuthSession *this) { long long v1; // rax long long v2; // rax long long v3; // rax long long v4; // rax long long v5; // rax char v7; // [rsp+1h] [rbp-15h] BYREF char v8; // [rsp+2h] [rbp-14h] BYREF char v9; // [rsp+3h] [rbp-13h] BYREF char v10; // [rsp+4h] [rbp-12h] BYREF _BYTE v11[17]; // [rsp+5h] [rbp-11h] BYREF *(_QWORD *)this = (char *)this + 48; *((_QWORD *)this + 1) = 1LL; *((_OWORD *)this + 1) = 0LL; *((_DWORD *)this + 8) = 1065353216; *(_OWORD *)((char *)this + 40) = 0LL; v11[0] = 0; v1 = std::__detail::_Map_base<unsigned char,std::pair<unsigned char const,AuthHandler>,std::allocator<std::pair<unsigned char const,AuthHandler>>,std::__detail::_Select1st,std::equal_to<unsigned char>,std::hash<unsigned char>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>::operator[]( this, v11); *(_DWORD *)v1 = 0; *(_QWORD *)(v1 + 4) = 4LL; *(_QWORD *)(v1 + 12) = AuthSession::HandleLogonChallenge; *(_QWORD *)(v1 + 20) = 0LL; v10 = 1; v2 = std::__detail::_Map_base<unsigned char,std::pair<unsigned char const,AuthHandler>,std::allocator<std::pair<unsigned char const,AuthHandler>>,std::__detail::_Select1st,std::equal_to<unsigned char>,std::hash<unsigned char>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>::operator[]( this, &v10); *(_DWORD *)v2 = 1; *(_QWORD *)(v2 + 4) = 75LL; *(_QWORD *)(v2 + 12) = AuthSession::HandleLogonProof; *(_QWORD *)(v2 + 20) = 0LL; v9 = 2; v3 = std::__detail::_Map_base<unsigned char,std::pair<unsigned char const,AuthHandler>,std::allocator<std::pair<unsigned char const,AuthHandler>>,std::__detail::_Select1st,std::equal_to<unsigned char>,std::hash<unsigned char>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>::operator[]( this, &v9); *(_DWORD *)v3 = 0; *(_QWORD *)(v3 + 4) = 4LL; *(_QWORD *)(v3 + 12) = AuthSession::HandleReconnectChallenge; *(_QWORD *)(v3 + 20) = 0LL; v8 = 3; v4 = std::__detail::_Map_base<unsigned char,std::pair<unsigned char const,AuthHandler>,std::allocator<std::pair<unsigned char const,AuthHandler>>,std::__detail::_Select1st,std::equal_to<unsigned char>,std::hash<unsigned char>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>::operator[]( this, &v8); *(_DWORD *)v4 = 2; *(_QWORD *)(v4 + 4) = 58LL; *(_QWORD *)(v4 + 12) = AuthSession::HandleReconnectProof; *(_QWORD *)(v4 + 20) = 0LL; v7 = 16; v5 = std::__detail::_Map_base<unsigned char,std::pair<unsigned char const,AuthHandler>,std::allocator<std::pair<unsigned char const,AuthHandler>>,std::__detail::_Select1st,std::equal_to<unsigned char>,std::hash<unsigned char>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>::operator[]( this, &v7); *(_DWORD *)v5 = 3; *(_QWORD *)(v5 + 4) = 5LL; *(_QWORD *)(v5 + 12) = AuthSession::HandleRealmList; *(_QWORD *)(v5 + 20) = 0LL; return this; }
InitHandlers: PUSH R14 PUSH RBX PUSH RAX 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 LEA RSI,[RSP + 0x7] MOV byte ptr [RSI],0x0 LAB_0014077c: CALL 0x00147f8e MOV dword ptr [RAX],0x0 MOV qword ptr [RAX + 0x4],0x4 LEA RCX,[0x14088c] MOV qword ptr [RAX + 0xc],RCX MOV qword ptr [RAX + 0x14],0x0 LEA RSI,[RSP + 0x6] MOV byte ptr [RSI],0x1 LAB_001407aa: MOV RDI,RBX CALL 0x00147f8e MOV dword ptr [RAX],0x1 MOV qword ptr [RAX + 0x4],0x4b LEA RCX,[0x140df8] MOV qword ptr [RAX + 0xc],RCX MOV qword ptr [RAX + 0x14],0x0 LEA RSI,[RSP + 0x5] MOV byte ptr [RSI],0x2 LAB_001407db: MOV RDI,RBX CALL 0x00147f8e MOV dword ptr [RAX],0x0 MOV qword ptr [RAX + 0x4],0x4 LEA RCX,[0x1428ae] MOV qword ptr [RAX + 0xc],RCX MOV qword ptr [RAX + 0x14],0x0 LEA RSI,[RSP + 0x4] MOV byte ptr [RSI],0x3 LAB_0014080c: MOV RDI,RBX CALL 0x00147f8e MOV dword ptr [RAX],0x2 MOV qword ptr [RAX + 0x4],0x3a LEA RCX,[0x142e1a] MOV qword ptr [RAX + 0xc],RCX MOV qword ptr [RAX + 0x14],0x0 LEA RSI,[RSP + 0x3] MOV byte ptr [RSI],0x10 LAB_0014083d: MOV RDI,RBX CALL 0x00147f8e LAB_00140845: MOV dword ptr [RAX],0x3 MOV qword ptr [RAX + 0x4],0x5 LEA RCX,[0x143540] MOV qword ptr [RAX + 0xc],RCX MOV qword ptr [RAX + 0x14],0x0 MOV RAX,RBX ADD RSP,0x8 POP RBX POP R14 RET
/* AuthSession::InitHandlers() */ AuthSession * __thiscall AuthSession::InitHandlers(AuthSession *this) { ulong in_RAX; int4 *puVar1; int8 uStack_18; *(AuthSession **)this = this + 0x30; *(int8 *)(this + 8) = 1; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int4 *)(this + 0x20) = 0x3f800000; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x30) = 0; uStack_18 = in_RAX & 0xffffffffffffff; /* try { // try from 0014077c to 00140780 has its CatchHandler @ 00140879 */ puVar1 = (int4 *) std::__detail:: _Map_base<unsigned_char,std::pair<unsigned_char_const,AuthHandler>,std::allocator<std::pair<unsigned_char_const,AuthHandler>>,std::__detail::_Select1st,std::equal_to<unsigned_char>,std::hash<unsigned_char>,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<unsigned_char,std::pair<unsigned_char_const,AuthHandler>,std::allocator<std::pair<unsigned_char_const,AuthHandler>>,std::__detail::_Select1st,std::equal_to<unsigned_char>,std::hash<unsigned_char>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true> *)this,(uchar *)((long)&uStack_18 + 7)); *puVar1 = 0; *(int8 *)(puVar1 + 1) = 4; *(code **)(puVar1 + 3) = HandleLogonChallenge; *(int8 *)(puVar1 + 5) = 0; uStack_18._0_7_ = CONCAT16(1,(int6)uStack_18); /* try { // try from 001407aa to 001407b1 has its CatchHandler @ 00140877 */ puVar1 = (int4 *) std::__detail:: _Map_base<unsigned_char,std::pair<unsigned_char_const,AuthHandler>,std::allocator<std::pair<unsigned_char_const,AuthHandler>>,std::__detail::_Select1st,std::equal_to<unsigned_char>,std::hash<unsigned_char>,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<unsigned_char,std::pair<unsigned_char_const,AuthHandler>,std::allocator<std::pair<unsigned_char_const,AuthHandler>>,std::__detail::_Select1st,std::equal_to<unsigned_char>,std::hash<unsigned_char>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true> *)this,(uchar *)((long)&uStack_18 + 6)); *puVar1 = 1; *(int8 *)(puVar1 + 1) = 0x4b; *(code **)(puVar1 + 3) = HandleLogonProof; *(int8 *)(puVar1 + 5) = 0; uStack_18._0_6_ = CONCAT15(2,(int5)uStack_18); /* try { // try from 001407db to 001407e2 has its CatchHandler @ 00140875 */ puVar1 = (int4 *) std::__detail:: _Map_base<unsigned_char,std::pair<unsigned_char_const,AuthHandler>,std::allocator<std::pair<unsigned_char_const,AuthHandler>>,std::__detail::_Select1st,std::equal_to<unsigned_char>,std::hash<unsigned_char>,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<unsigned_char,std::pair<unsigned_char_const,AuthHandler>,std::allocator<std::pair<unsigned_char_const,AuthHandler>>,std::__detail::_Select1st,std::equal_to<unsigned_char>,std::hash<unsigned_char>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true> *)this,(uchar *)((long)&uStack_18 + 5)); *puVar1 = 0; *(int8 *)(puVar1 + 1) = 4; *(code **)(puVar1 + 3) = HandleReconnectChallenge; *(int8 *)(puVar1 + 5) = 0; uStack_18._0_5_ = CONCAT14(3,(int4)uStack_18); /* try { // try from 0014080c to 00140813 has its CatchHandler @ 00140873 */ puVar1 = (int4 *) std::__detail:: _Map_base<unsigned_char,std::pair<unsigned_char_const,AuthHandler>,std::allocator<std::pair<unsigned_char_const,AuthHandler>>,std::__detail::_Select1st,std::equal_to<unsigned_char>,std::hash<unsigned_char>,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<unsigned_char,std::pair<unsigned_char_const,AuthHandler>,std::allocator<std::pair<unsigned_char_const,AuthHandler>>,std::__detail::_Select1st,std::equal_to<unsigned_char>,std::hash<unsigned_char>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true> *)this,(uchar *)((long)&uStack_18 + 4)); *puVar1 = 2; *(int8 *)(puVar1 + 1) = 0x3a; *(code **)(puVar1 + 3) = HandleReconnectProof; *(int8 *)(puVar1 + 5) = 0; uStack_18._0_4_ = CONCAT13(0x10,(int3)uStack_18); /* try { // try from 0014083d to 00140844 has its CatchHandler @ 00140871 */ puVar1 = (int4 *) std::__detail:: _Map_base<unsigned_char,std::pair<unsigned_char_const,AuthHandler>,std::allocator<std::pair<unsigned_char_const,AuthHandler>>,std::__detail::_Select1st,std::equal_to<unsigned_char>,std::hash<unsigned_char>,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<unsigned_char,std::pair<unsigned_char_const,AuthHandler>,std::allocator<std::pair<unsigned_char_const,AuthHandler>>,std::__detail::_Select1st,std::equal_to<unsigned_char>,std::hash<unsigned_char>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true> *)this,(uchar *)((long)&uStack_18 + 3)); *puVar1 = 3; *(int8 *)(puVar1 + 1) = 5; *(code **)(puVar1 + 3) = HandleRealmList; *(int8 *)(puVar1 + 5) = 0; return this; }
60,350
mysql_server_init
eloqsql/libmariadb/libmariadb/mariadb_lib.c
int STDCALL mysql_server_init(int argc __attribute__((unused)), char **argv __attribute__((unused)), char **groups __attribute__((unused))) { #ifdef _WIN32 BOOL ret = InitOnceExecuteOnce(&init_once, win_init_once, NULL, NULL); return ret? 0: 1; #else return pthread_once(&init_once, mysql_once_init); #endif }
O3
c
mysql_server_init: pushq %rbp movq %rsp, %rbp leaq 0x338a6(%rip), %rdi # 0x4e120 leaq 0x4a33(%rip), %rsi # 0x1f2b4 popq %rbp jmp 0x13400
mysql_server_init: push rbp mov rbp, rsp lea rdi, init_once lea rsi, mysql_once_init pop rbp jmp _pthread_once
long long mysql_server_init() { return pthread_once(&init_once, mysql_once_init); }
mysql_server_init: PUSH RBP MOV RBP,RSP LEA RDI,[0x14e120] LEA RSI,[0x11f2b4] POP RBP JMP 0x00113400
void mysql_server_init(void) { pthread_once(&init_once,mysql_once_init); return; }
60,351
my_coll_parser_exec
eloqsql/strings/ctype-uca.c
static int my_coll_parser_exec(MY_COLL_RULE_PARSER *p) { if (!my_coll_parser_scan_settings(p)) return 0; while (my_coll_parser_curr(p)->term == MY_COLL_LEXEM_RESET) { if (!my_coll_parser_scan_rule(p)) return 0; } /* Make sure no unparsed input data left */ return my_coll_parser_scan_term(p, MY_COLL_LEXEM_EOF); }
O0
c
my_coll_parser_exec: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rdi callq 0x55800 cmpl $0x0, %eax jne 0x551d3 movl $0x0, -0x4(%rbp) jmp 0x5520a jmp 0x551d5 movq -0x10(%rbp), %rdi callq 0x55330 cmpl $0x4, (%rax) jne 0x551fc movq -0x10(%rbp), %rdi callq 0x55850 cmpl $0x0, %eax jne 0x551fa movl $0x0, -0x4(%rbp) jmp 0x5520a jmp 0x551d5 movq -0x10(%rbp), %rdi xorl %esi, %esi callq 0x55900 movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_coll_parser_exec: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_10], rdi mov rdi, [rbp+var_10] call my_coll_parser_scan_settings cmp eax, 0 jnz short loc_551D3 mov [rbp+var_4], 0 jmp short loc_5520A loc_551D3: jmp short $+2 loc_551D5: mov rdi, [rbp+var_10] call my_coll_parser_curr cmp dword ptr [rax], 4 jnz short loc_551FC mov rdi, [rbp+var_10] call my_coll_parser_scan_rule cmp eax, 0 jnz short loc_551FA mov [rbp+var_4], 0 jmp short loc_5520A loc_551FA: jmp short loc_551D5 loc_551FC: mov rdi, [rbp+var_10] xor esi, esi call my_coll_parser_scan_term mov [rbp+var_4], eax loc_5520A: mov eax, [rbp+var_4] add rsp, 10h pop rbp retn
long long my_coll_parser_exec(long long a1) { if ( (unsigned int)my_coll_parser_scan_settings(a1) ) { while ( *(_DWORD *)my_coll_parser_curr(a1) == 4 ) { if ( !(unsigned int)my_coll_parser_scan_rule(a1) ) return 0; } return (unsigned int)my_coll_parser_scan_term(a1, 0LL); } else { return 0; } }
my_coll_parser_exec: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x10],RDI MOV RDI,qword ptr [RBP + -0x10] CALL 0x00155800 CMP EAX,0x0 JNZ 0x001551d3 MOV dword ptr [RBP + -0x4],0x0 JMP 0x0015520a LAB_001551d3: JMP 0x001551d5 LAB_001551d5: MOV RDI,qword ptr [RBP + -0x10] CALL 0x00155330 CMP dword ptr [RAX],0x4 JNZ 0x001551fc MOV RDI,qword ptr [RBP + -0x10] CALL 0x00155850 CMP EAX,0x0 JNZ 0x001551fa MOV dword ptr [RBP + -0x4],0x0 JMP 0x0015520a LAB_001551fa: JMP 0x001551d5 LAB_001551fc: MOV RDI,qword ptr [RBP + -0x10] XOR ESI,ESI CALL 0x00155900 MOV dword ptr [RBP + -0x4],EAX LAB_0015520a: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x10 POP RBP RET
int4 my_coll_parser_exec(int8 param_1) { int iVar1; int4 uVar2; int *piVar3; iVar1 = my_coll_parser_scan_settings(param_1); while( true ) { if (iVar1 == 0) { return 0; } piVar3 = (int *)my_coll_parser_curr(param_1); if (*piVar3 != 4) break; iVar1 = my_coll_parser_scan_rule(param_1); } uVar2 = my_coll_parser_scan_term(param_1,0); return uVar2; }
60,352
plutovg_color_init_rgba
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-paint.c
void plutovg_color_init_rgba(plutovg_color_t* color, float r, float g, float b, float a) { color->r = plutovg_clamp(r, 0.f, 1.f); color->g = plutovg_clamp(g, 0.f, 1.f); color->b = plutovg_clamp(b, 0.f, 1.f); color->a = plutovg_clamp(a, 0.f, 1.f); }
O0
c
plutovg_color_init_rgba: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movss %xmm0, -0xc(%rbp) movss %xmm1, -0x10(%rbp) movss %xmm2, -0x14(%rbp) movss %xmm3, -0x18(%rbp) xorps %xmm0, %xmm0 ucomiss -0xc(%rbp), %xmm0 jbe 0x5dbff xorps %xmm0, %xmm0 movss %xmm0, -0x1c(%rbp) jmp 0x5dc34 movss -0xc(%rbp), %xmm0 movss 0x2e4bc(%rip), %xmm1 # 0x8c0c8 ucomiss %xmm1, %xmm0 jbe 0x5dc20 movss 0x2e4af(%rip), %xmm0 # 0x8c0c8 movss %xmm0, -0x20(%rbp) jmp 0x5dc2a movss -0xc(%rbp), %xmm0 movss %xmm0, -0x20(%rbp) movss -0x20(%rbp), %xmm0 movss %xmm0, -0x1c(%rbp) movss -0x1c(%rbp), %xmm0 movq -0x8(%rbp), %rax movss %xmm0, (%rax) xorps %xmm0, %xmm0 ucomiss -0x10(%rbp), %xmm0 jbe 0x5dc54 xorps %xmm0, %xmm0 movss %xmm0, -0x24(%rbp) jmp 0x5dc89 movss -0x10(%rbp), %xmm0 movss 0x2e467(%rip), %xmm1 # 0x8c0c8 ucomiss %xmm1, %xmm0 jbe 0x5dc75 movss 0x2e45a(%rip), %xmm0 # 0x8c0c8 movss %xmm0, -0x28(%rbp) jmp 0x5dc7f movss -0x10(%rbp), %xmm0 movss %xmm0, -0x28(%rbp) movss -0x28(%rbp), %xmm0 movss %xmm0, -0x24(%rbp) movss -0x24(%rbp), %xmm0 movq -0x8(%rbp), %rax movss %xmm0, 0x4(%rax) xorps %xmm0, %xmm0 ucomiss -0x14(%rbp), %xmm0 jbe 0x5dcaa xorps %xmm0, %xmm0 movss %xmm0, -0x2c(%rbp) jmp 0x5dcdf movss -0x14(%rbp), %xmm0 movss 0x2e411(%rip), %xmm1 # 0x8c0c8 ucomiss %xmm1, %xmm0 jbe 0x5dccb movss 0x2e404(%rip), %xmm0 # 0x8c0c8 movss %xmm0, -0x30(%rbp) jmp 0x5dcd5 movss -0x14(%rbp), %xmm0 movss %xmm0, -0x30(%rbp) movss -0x30(%rbp), %xmm0 movss %xmm0, -0x2c(%rbp) movss -0x2c(%rbp), %xmm0 movq -0x8(%rbp), %rax movss %xmm0, 0x8(%rax) xorps %xmm0, %xmm0 ucomiss -0x18(%rbp), %xmm0 jbe 0x5dd00 xorps %xmm0, %xmm0 movss %xmm0, -0x34(%rbp) jmp 0x5dd35 movss -0x18(%rbp), %xmm0 movss 0x2e3bb(%rip), %xmm1 # 0x8c0c8 ucomiss %xmm1, %xmm0 jbe 0x5dd21 movss 0x2e3ae(%rip), %xmm0 # 0x8c0c8 movss %xmm0, -0x38(%rbp) jmp 0x5dd2b movss -0x18(%rbp), %xmm0 movss %xmm0, -0x38(%rbp) movss -0x38(%rbp), %xmm0 movss %xmm0, -0x34(%rbp) movss -0x34(%rbp), %xmm0 movq -0x8(%rbp), %rax movss %xmm0, 0xc(%rax) popq %rbp retq nopw %cs:(%rax,%rax)
plutovg_color_init_rgba: push rbp mov rbp, rsp mov [rbp+var_8], rdi movss [rbp+var_C], xmm0 movss [rbp+var_10], xmm1 movss [rbp+var_14], xmm2 movss [rbp+var_18], xmm3 xorps xmm0, xmm0 ucomiss xmm0, [rbp+var_C] jbe short loc_5DBFF xorps xmm0, xmm0 movss [rbp+var_1C], xmm0 jmp short loc_5DC34 loc_5DBFF: movss xmm0, [rbp+var_C] movss xmm1, cs:flt_8C0C8 ucomiss xmm0, xmm1 jbe short loc_5DC20 movss xmm0, cs:flt_8C0C8 movss [rbp+var_20], xmm0 jmp short loc_5DC2A loc_5DC20: movss xmm0, [rbp+var_C] movss [rbp+var_20], xmm0 loc_5DC2A: movss xmm0, [rbp+var_20] movss [rbp+var_1C], xmm0 loc_5DC34: movss xmm0, [rbp+var_1C] mov rax, [rbp+var_8] movss dword ptr [rax], xmm0 xorps xmm0, xmm0 ucomiss xmm0, [rbp+var_10] jbe short loc_5DC54 xorps xmm0, xmm0 movss [rbp+var_24], xmm0 jmp short loc_5DC89 loc_5DC54: movss xmm0, [rbp+var_10] movss xmm1, cs:flt_8C0C8 ucomiss xmm0, xmm1 jbe short loc_5DC75 movss xmm0, cs:flt_8C0C8 movss [rbp+var_28], xmm0 jmp short loc_5DC7F loc_5DC75: movss xmm0, [rbp+var_10] movss [rbp+var_28], xmm0 loc_5DC7F: movss xmm0, [rbp+var_28] movss [rbp+var_24], xmm0 loc_5DC89: movss xmm0, [rbp+var_24] mov rax, [rbp+var_8] movss dword ptr [rax+4], xmm0 xorps xmm0, xmm0 ucomiss xmm0, [rbp+var_14] jbe short loc_5DCAA xorps xmm0, xmm0 movss [rbp+var_2C], xmm0 jmp short loc_5DCDF loc_5DCAA: movss xmm0, [rbp+var_14] movss xmm1, cs:flt_8C0C8 ucomiss xmm0, xmm1 jbe short loc_5DCCB movss xmm0, cs:flt_8C0C8 movss [rbp+var_30], xmm0 jmp short loc_5DCD5 loc_5DCCB: movss xmm0, [rbp+var_14] movss [rbp+var_30], xmm0 loc_5DCD5: movss xmm0, [rbp+var_30] movss [rbp+var_2C], xmm0 loc_5DCDF: movss xmm0, [rbp+var_2C] mov rax, [rbp+var_8] movss dword ptr [rax+8], xmm0 xorps xmm0, xmm0 ucomiss xmm0, [rbp+var_18] jbe short loc_5DD00 xorps xmm0, xmm0 movss [rbp+var_34], xmm0 jmp short loc_5DD35 loc_5DD00: movss xmm0, [rbp+var_18] movss xmm1, cs:flt_8C0C8 ucomiss xmm0, xmm1 jbe short loc_5DD21 movss xmm0, cs:flt_8C0C8 movss [rbp+var_38], xmm0 jmp short loc_5DD2B loc_5DD21: movss xmm0, [rbp+var_18] movss [rbp+var_38], xmm0 loc_5DD2B: movss xmm0, [rbp+var_38] movss [rbp+var_34], xmm0 loc_5DD35: movss xmm0, [rbp+var_34] mov rax, [rbp+var_8] movss dword ptr [rax+0Ch], xmm0 pop rbp retn
float * plutovg_color_init_rgba(float *a1, float a2, float a3, float a4, float a5) { float *result; // rax float v6; // [rsp+0h] [rbp-38h] float v7; // [rsp+4h] [rbp-34h] float v8; // [rsp+8h] [rbp-30h] float v9; // [rsp+Ch] [rbp-2Ch] float v10; // [rsp+10h] [rbp-28h] float v11; // [rsp+14h] [rbp-24h] float v12; // [rsp+18h] [rbp-20h] float v13; // [rsp+1Ch] [rbp-1Ch] if ( a2 >= 0.0 ) { if ( a2 <= 1.0 ) v12 = a2; else v12 = 1.0; v13 = v12; } else { v13 = 0.0; } *a1 = v13; if ( a3 >= 0.0 ) { if ( a3 <= 1.0 ) v10 = a3; else v10 = 1.0; v11 = v10; } else { v11 = 0.0; } a1[1] = v11; if ( a4 >= 0.0 ) { if ( a4 <= 1.0 ) v8 = a4; else v8 = 1.0; v9 = v8; } else { v9 = 0.0; } a1[2] = v9; if ( a5 >= 0.0 ) { if ( a5 <= 1.0 ) v6 = a5; else v6 = 1.0; v7 = v6; } else { v7 = 0.0; } result = a1; a1[3] = v7; return result; }
plutovg_color_init_rgba: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOVSS dword ptr [RBP + -0xc],XMM0 MOVSS dword ptr [RBP + -0x10],XMM1 MOVSS dword ptr [RBP + -0x14],XMM2 MOVSS dword ptr [RBP + -0x18],XMM3 XORPS XMM0,XMM0 UCOMISS XMM0,dword ptr [RBP + -0xc] JBE 0x0015dbff XORPS XMM0,XMM0 MOVSS dword ptr [RBP + -0x1c],XMM0 JMP 0x0015dc34 LAB_0015dbff: MOVSS XMM0,dword ptr [RBP + -0xc] MOVSS XMM1,dword ptr [0x0018c0c8] UCOMISS XMM0,XMM1 JBE 0x0015dc20 MOVSS XMM0,dword ptr [0x0018c0c8] MOVSS dword ptr [RBP + -0x20],XMM0 JMP 0x0015dc2a LAB_0015dc20: MOVSS XMM0,dword ptr [RBP + -0xc] MOVSS dword ptr [RBP + -0x20],XMM0 LAB_0015dc2a: MOVSS XMM0,dword ptr [RBP + -0x20] MOVSS dword ptr [RBP + -0x1c],XMM0 LAB_0015dc34: MOVSS XMM0,dword ptr [RBP + -0x1c] MOV RAX,qword ptr [RBP + -0x8] MOVSS dword ptr [RAX],XMM0 XORPS XMM0,XMM0 UCOMISS XMM0,dword ptr [RBP + -0x10] JBE 0x0015dc54 XORPS XMM0,XMM0 MOVSS dword ptr [RBP + -0x24],XMM0 JMP 0x0015dc89 LAB_0015dc54: MOVSS XMM0,dword ptr [RBP + -0x10] MOVSS XMM1,dword ptr [0x0018c0c8] UCOMISS XMM0,XMM1 JBE 0x0015dc75 MOVSS XMM0,dword ptr [0x0018c0c8] MOVSS dword ptr [RBP + -0x28],XMM0 JMP 0x0015dc7f LAB_0015dc75: MOVSS XMM0,dword ptr [RBP + -0x10] MOVSS dword ptr [RBP + -0x28],XMM0 LAB_0015dc7f: MOVSS XMM0,dword ptr [RBP + -0x28] MOVSS dword ptr [RBP + -0x24],XMM0 LAB_0015dc89: MOVSS XMM0,dword ptr [RBP + -0x24] MOV RAX,qword ptr [RBP + -0x8] MOVSS dword ptr [RAX + 0x4],XMM0 XORPS XMM0,XMM0 UCOMISS XMM0,dword ptr [RBP + -0x14] JBE 0x0015dcaa XORPS XMM0,XMM0 MOVSS dword ptr [RBP + -0x2c],XMM0 JMP 0x0015dcdf LAB_0015dcaa: MOVSS XMM0,dword ptr [RBP + -0x14] MOVSS XMM1,dword ptr [0x0018c0c8] UCOMISS XMM0,XMM1 JBE 0x0015dccb MOVSS XMM0,dword ptr [0x0018c0c8] MOVSS dword ptr [RBP + -0x30],XMM0 JMP 0x0015dcd5 LAB_0015dccb: MOVSS XMM0,dword ptr [RBP + -0x14] MOVSS dword ptr [RBP + -0x30],XMM0 LAB_0015dcd5: MOVSS XMM0,dword ptr [RBP + -0x30] MOVSS dword ptr [RBP + -0x2c],XMM0 LAB_0015dcdf: MOVSS XMM0,dword ptr [RBP + -0x2c] MOV RAX,qword ptr [RBP + -0x8] MOVSS dword ptr [RAX + 0x8],XMM0 XORPS XMM0,XMM0 UCOMISS XMM0,dword ptr [RBP + -0x18] JBE 0x0015dd00 XORPS XMM0,XMM0 MOVSS dword ptr [RBP + -0x34],XMM0 JMP 0x0015dd35 LAB_0015dd00: MOVSS XMM0,dword ptr [RBP + -0x18] MOVSS XMM1,dword ptr [0x0018c0c8] UCOMISS XMM0,XMM1 JBE 0x0015dd21 MOVSS XMM0,dword ptr [0x0018c0c8] MOVSS dword ptr [RBP + -0x38],XMM0 JMP 0x0015dd2b LAB_0015dd21: MOVSS XMM0,dword ptr [RBP + -0x18] MOVSS dword ptr [RBP + -0x38],XMM0 LAB_0015dd2b: MOVSS XMM0,dword ptr [RBP + -0x38] MOVSS dword ptr [RBP + -0x34],XMM0 LAB_0015dd35: MOVSS XMM0,dword ptr [RBP + -0x34] MOV RAX,qword ptr [RBP + -0x8] MOVSS dword ptr [RAX + 0xc],XMM0 POP RBP RET
void plutovg_color_init_rgba(float param_1,float param_2,float param_3,float param_4,float *param_5) { float local_40; float local_3c; float local_38; float local_34; float local_30; float local_2c; float local_28; float local_24; if (0.0 <= param_1) { local_28 = param_1; if (DAT_0018c0c8 < param_1) { local_28 = DAT_0018c0c8; } local_24 = local_28; } else { local_24 = 0.0; } *param_5 = local_24; if (0.0 <= param_2) { local_30 = param_2; if (DAT_0018c0c8 < param_2) { local_30 = DAT_0018c0c8; } local_2c = local_30; } else { local_2c = 0.0; } param_5[1] = local_2c; if (0.0 <= param_3) { local_38 = param_3; if (DAT_0018c0c8 < param_3) { local_38 = DAT_0018c0c8; } local_34 = local_38; } else { local_34 = 0.0; } param_5[2] = local_34; if (0.0 <= param_4) { local_40 = param_4; if (DAT_0018c0c8 < param_4) { local_40 = DAT_0018c0c8; } local_3c = local_40; } else { local_3c = 0.0; } param_5[3] = local_3c; return; }
60,353
my_strndup
eloqsql/mysys/my_malloc.c
char *my_strndup(PSI_memory_key key, const char *from, size_t length, myf my_flags) { char *ptr; DBUG_ENTER("my_strndup"); if ((ptr= (char*) my_malloc(key, length+1, my_flags))) { memcpy(ptr, from, length); ptr[length]= 0; } DBUG_RETURN(ptr); }
O0
c
my_strndup: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movl %edi, -0x4(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movl -0x4(%rbp), %edi movq -0x18(%rbp), %rsi addq $0x1, %rsi movq -0x20(%rbp), %rdx callq 0xf3820 movq %rax, -0x28(%rbp) cmpq $0x0, %rax je 0xf3d62 movq -0x28(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx callq 0x2a090 movq -0x28(%rbp), %rax movq -0x18(%rbp), %rcx movb $0x0, (%rax,%rcx) jmp 0xf3d64 movq -0x28(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rax addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_strndup: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_4], edi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov edi, [rbp+var_4] mov rsi, [rbp+var_18] add rsi, 1 mov rdx, [rbp+var_20] call my_malloc mov [rbp+var_28], rax cmp rax, 0 jz short loc_F3D62 mov rdi, [rbp+var_28] mov rsi, [rbp+var_10] mov rdx, [rbp+var_18] call _memcpy mov rax, [rbp+var_28] mov rcx, [rbp+var_18] mov byte ptr [rax+rcx], 0 loc_F3D62: jmp short $+2 loc_F3D64: mov rax, [rbp+var_28] mov [rbp+var_30], rax mov rax, [rbp+var_30] add rsp, 30h pop rbp retn
long long my_strndup(unsigned int a1, long long a2, long long a3, int a4) { long long v5; // [rsp+8h] [rbp-28h] v5 = my_malloc(a1, (const char *)(a3 + 1), a4); if ( v5 ) { memcpy(v5, a2, a3); *(_BYTE *)(v5 + a3) = 0; } return v5; }
my_strndup: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV dword ptr [RBP + -0x4],EDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV EDI,dword ptr [RBP + -0x4] MOV RSI,qword ptr [RBP + -0x18] ADD RSI,0x1 MOV RDX,qword ptr [RBP + -0x20] CALL 0x001f3820 MOV qword ptr [RBP + -0x28],RAX CMP RAX,0x0 JZ 0x001f3d62 MOV RDI,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] CALL 0x0012a090 MOV RAX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x18] MOV byte ptr [RAX + RCX*0x1],0x0 LAB_001f3d62: JMP 0x001f3d64 LAB_001f3d64: MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x30] ADD RSP,0x30 POP RBP RET
void * my_strndup(int4 param_1,void *param_2,size_t param_3,int8 param_4) { void *__dest; __dest = (void *)my_malloc(param_1,param_3 + 1,param_4); if (__dest != (void *)0x0) { memcpy(__dest,param_2,param_3); *(int1 *)((long)__dest + param_3) = 0; } return __dest; }
60,354
my_strndup
eloqsql/mysys/my_malloc.c
char *my_strndup(PSI_memory_key key, const char *from, size_t length, myf my_flags) { char *ptr; DBUG_ENTER("my_strndup"); if ((ptr= (char*) my_malloc(key, length+1, my_flags))) { memcpy(ptr, from, length); ptr[length]= 0; } DBUG_RETURN(ptr); }
O3
c
my_strndup: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdx, %rbx movq %rsi, %r14 leaq 0x1(%rdx), %rsi movq %rcx, %rdx callq 0x9fdb5 movq %rax, %r15 testq %rax, %rax je 0xa0103 movq %r15, %rdi movq %r14, %rsi movq %rbx, %rdx callq 0x29080 movb $0x0, (%r15,%rbx) movq %r15, %rax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq nopl (%rax)
my_strndup: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov rbx, rdx mov r14, rsi lea rsi, [rdx+1] mov rdx, rcx call my_malloc mov r15, rax test rax, rax jz short loc_A0103 mov rdi, r15 mov rsi, r14 mov rdx, rbx call _memcpy mov byte ptr [r15+rbx], 0 loc_A0103: mov rax, r15 add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long my_strndup(unsigned int a1, long long a2, long long a3, int a4) { long long v5; // rax long long v6; // r15 v5 = my_malloc(a1, a3 + 1, a4); v6 = v5; if ( v5 ) { memcpy(v5, a2, a3); *(_BYTE *)(v6 + a3) = 0; } return v6; }
my_strndup: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDX MOV R14,RSI LEA RSI,[RDX + 0x1] MOV RDX,RCX CALL 0x0019fdb5 MOV R15,RAX TEST RAX,RAX JZ 0x001a0103 MOV RDI,R15 MOV RSI,R14 MOV RDX,RBX CALL 0x00129080 MOV byte ptr [R15 + RBX*0x1],0x0 LAB_001a0103: MOV RAX,R15 ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
void * my_strndup(int8 param_1,void *param_2,size_t param_3,int8 param_4) { void *__dest; __dest = (void *)my_malloc(param_1,param_3 + 1,param_4); if (__dest != (void *)0x0) { memcpy(__dest,param_2,param_3); *(int1 *)((long)__dest + param_3) = 0; } return __dest; }
60,355
Field_blob_compressed::val_real()
eloqsql/sql/field.cc
double Field_blob_compressed::val_real(void) { DBUG_ASSERT(marked_for_read()); THD *thd= get_thd(); String buf; val_str(&buf, &buf); return Converter_strntod_with_warn(thd, Warn_filter(thd), field_charset(), buf.ptr(), buf.length()).result(); }
O0
cpp
Field_blob_compressed::val_real(): pushq %rbp movq %rsp, %rbp subq $0xa0, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x68(%rbp) jmp 0xcef329 movq -0x68(%rbp), %rdi callq 0x9865b0 movq %rax, -0x10(%rbp) leaq -0x30(%rbp), %rdi movq %rdi, -0x70(%rbp) callq 0x81bd10 movq -0x68(%rbp), %rdi movq -0x70(%rbp), %rdx movq %rdx, %rsi callq 0xcef2a0 jmp 0xcef355 movq -0x10(%rbp), %rsi movq %rsi, -0x78(%rbp) leaq -0x5a(%rbp), %rdi callq 0xcd7e50 jmp 0xcef368 movq -0x68(%rbp), %rdi callq 0xb40950 movq %rax, -0x80(%rbp) jmp 0xcef377 leaq -0x28(%rbp), %rdi callq 0x81bf20 movq %rax, -0x88(%rbp) jmp 0xcef389 leaq -0x28(%rbp), %rdi callq 0x81be40 movl %eax, -0x8c(%rbp) jmp 0xcef39a movq -0x88(%rbp), %r8 movq -0x80(%rbp), %rcx movq -0x78(%rbp), %rsi movl -0x8c(%rbp), %eax movl %eax, %eax movl %eax, %r9d movzwl -0x5a(%rbp), %edx leaq -0x58(%rbp), %rdi callq 0x8e8ed0 jmp 0xcef3c3 leaq -0x58(%rbp), %rdi callq 0x8e8f50 movsd %xmm0, -0x98(%rbp) jmp 0xcef3d6 leaq -0x30(%rbp), %rdi callq 0x81bf40 movsd -0x98(%rbp), %xmm0 addq $0xa0, %rsp popq %rbp retq movq %rax, %rcx movl %edx, %eax movq %rcx, -0x38(%rbp) movl %eax, -0x3c(%rbp) leaq -0x30(%rbp), %rdi callq 0x81bf40 movq -0x38(%rbp), %rdi callq 0x775a20 nop
_ZN21Field_blob_compressed8val_realEv: push rbp mov rbp, rsp sub rsp, 0A0h mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov [rbp+var_68], rax jmp short $+2 loc_CEF329: mov rdi, [rbp+var_68]; this call _ZNK5Field7get_thdEv; Field::get_thd(void) mov [rbp+var_10], rax lea rdi, [rbp+var_30]; this mov [rbp+var_70], rdi call _ZN6StringC2Ev; String::String(void) mov rdi, [rbp+var_68]; this mov rdx, [rbp+var_70]; String * mov rsi, rdx; String * call _ZN21Field_blob_compressed7val_strEP6StringS1_; Field_blob_compressed::val_str(String *,String *) jmp short $+2 loc_CEF355: mov rsi, [rbp+var_10]; THD * mov [rbp+var_78], rsi lea rdi, [rbp+var_5A]; this call _ZN12Value_source11Warn_filterC2EPK3THD; Value_source::Warn_filter::Warn_filter(THD const*) jmp short $+2 loc_CEF368: mov rdi, [rbp+var_68]; this call _ZNK9Field_str13field_charsetEv; Field_str::field_charset(void) mov [rbp+var_80], rax jmp short $+2 loc_CEF377: lea rdi, [rbp+var_28]; this call _ZNK13Binary_string3ptrEv; Binary_string::ptr(void) mov [rbp+var_88], rax jmp short $+2 loc_CEF389: lea rdi, [rbp+var_28]; this call _ZNK13Binary_string6lengthEv; Binary_string::length(void) mov [rbp+var_8C], eax jmp short $+2 loc_CEF39A: mov r8, [rbp+var_88] mov rcx, [rbp+var_80] mov rsi, [rbp+var_78] mov eax, [rbp+var_8C] mov eax, eax mov r9d, eax movzx edx, [rbp+var_5A] lea rdi, [rbp+var_58] call _ZN12Value_source27Converter_strntod_with_warnC2EP3THDNS_11Warn_filterEPK15charset_info_stPKcm; Value_source::Converter_strntod_with_warn::Converter_strntod_with_warn(THD *,Value_source::Warn_filter,charset_info_st const*,char const*,ulong) jmp short $+2 loc_CEF3C3: lea rdi, [rbp+var_58]; this call _ZNK12Value_source17Converter_strntod6resultEv; Value_source::Converter_strntod::result(void) movsd [rbp+var_98], xmm0 jmp short $+2 loc_CEF3D6: lea rdi, [rbp+var_30]; void * call _ZN6StringD2Ev; String::~String() movsd xmm0, [rbp+var_98] add rsp, 0A0h pop rbp retn mov rcx, rax mov eax, edx mov [rbp+var_38], rcx mov [rbp+var_3C], eax lea rdi, [rbp+var_30]; void * call _ZN6StringD2Ev; String::~String() mov rdi, [rbp+var_38] call __Unwind_Resume
double Field_blob_compressed::val_real(Field_blob_compressed *this) { double v2; // [rsp+8h] [rbp-98h] unsigned int v3; // [rsp+14h] [rbp-8Ch] const char *v4; // [rsp+18h] [rbp-88h] const charset_info_st *v5; // [rsp+20h] [rbp-80h] THD *v6; // [rsp+28h] [rbp-78h] unsigned __int16 v7; // [rsp+46h] [rbp-5Ah] BYREF _BYTE v8[28]; // [rsp+48h] [rbp-58h] BYREF char v9[8]; // [rsp+70h] [rbp-30h] BYREF _BYTE v10[24]; // [rsp+78h] [rbp-28h] BYREF THD *thd; // [rsp+90h] [rbp-10h] Field_blob_compressed *v12; // [rsp+98h] [rbp-8h] v12 = this; thd = (THD *)Field::get_thd(this); String::String((String *)v9); Field_blob_compressed::val_str((const unsigned __int8 **)this, (String *)v9, (String *)v9); v6 = thd; Value_source::Warn_filter::Warn_filter((Value_source::Warn_filter *)&v7, thd); v5 = (const charset_info_st *)Field_str::field_charset(this); v4 = (const char *)Binary_string::ptr((Binary_string *)v10); v3 = Binary_string::length((Binary_string *)v10); Value_source::Converter_strntod_with_warn::Converter_strntod_with_warn( (Value_source::Converter_strntod *)v8, (long long)v6, v7, v5, v4, v3); v2 = Value_source::Converter_strntod::result((Value_source::Converter_strntod *)v8); String::~String(v9); return v2; }
Item_func_hybrid_field_type_val_int: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RDI,qword ptr [RBP + -0x10] CALL 0x00d01610 ADD RSP,0x10 POP RBP RET
/* Type_handler_int_result::Item_func_hybrid_field_type_val_int(Item_func_hybrid_field_type*) const */ void __thiscall Type_handler_int_result::Item_func_hybrid_field_type_val_int (Type_handler_int_result *this,Item_func_hybrid_field_type *param_1) { Item_func_hybrid_field_type::val_int_from_int_op(param_1); return; }
60,356
js_object_assign
bluesky950520[P]quickjs/quickjs.c
static JSValue js_object_assign(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { // Object.assign(obj, source1) JSValue obj, s; int i; s = JS_UNDEFINED; obj = JS_ToObject(ctx, argv[0]); if (JS_IsException(obj)) goto exception; for (i = 1; i < argc; i++) { if (!JS_IsNull(argv[i]) && !JS_IsUndefined(argv[i])) { s = JS_ToObject(ctx, argv[i]); if (JS_IsException(s)) goto exception; if (JS_CopyDataProperties(ctx, obj, s, JS_UNDEFINED, TRUE)) goto exception; JS_FreeValue(ctx, s); } } return obj; exception: JS_FreeValue(ctx, obj); JS_FreeValue(ctx, s); return JS_EXCEPTION; }
O0
c
js_object_assign: subq $0xb8, %rsp movq %rsi, 0x98(%rsp) movq %rdx, 0xa0(%rsp) movq %rdi, 0x90(%rsp) movl %ecx, 0x8c(%rsp) movq %r8, 0x80(%rsp) movl $0x0, 0x48(%rsp) movq $0x3, 0x50(%rsp) movq 0x48(%rsp), %rax movq %rax, 0x60(%rsp) movq 0x50(%rsp), %rax movq %rax, 0x68(%rsp) movq 0x90(%rsp), %rdi movq 0x80(%rsp), %rax movq (%rax), %rsi movq 0x8(%rax), %rdx callq 0x364b0 movq %rax, 0x38(%rsp) movq %rdx, 0x40(%rsp) movq 0x38(%rsp), %rax movq %rax, 0x70(%rsp) movq 0x40(%rsp), %rax movq %rax, 0x78(%rsp) movq 0x70(%rsp), %rdi movq 0x78(%rsp), %rsi callq 0x22a00 cmpl $0x0, %eax je 0xbea96 jmp 0xbebf9 movl $0x1, 0x5c(%rsp) movl 0x5c(%rsp), %eax cmpl 0x8c(%rsp), %eax jge 0xbebdd movq 0x80(%rsp), %rax movslq 0x5c(%rsp), %rcx shlq $0x4, %rcx addq %rcx, %rax movq (%rax), %rdi movq 0x8(%rax), %rsi callq 0x2cf80 cmpl $0x0, %eax jne 0xbebcb movq 0x80(%rsp), %rax movslq 0x5c(%rsp), %rcx shlq $0x4, %rcx addq %rcx, %rax movq (%rax), %rdi movq 0x8(%rax), %rsi callq 0x2cfa0 cmpl $0x0, %eax jne 0xbebcb movq 0x90(%rsp), %rdi movq 0x80(%rsp), %rax movslq 0x5c(%rsp), %rcx shlq $0x4, %rcx addq %rcx, %rax movq (%rax), %rsi movq 0x8(%rax), %rdx callq 0x364b0 movq %rax, 0x28(%rsp) movq %rdx, 0x30(%rsp) movq 0x28(%rsp), %rax movq %rax, 0x60(%rsp) movq 0x30(%rsp), %rax movq %rax, 0x68(%rsp) movq 0x60(%rsp), %rdi movq 0x68(%rsp), %rsi callq 0x22a00 cmpl $0x0, %eax je 0xbeb60 jmp 0xbebf9 movq 0x90(%rsp), %rdi movl $0x0, 0x18(%rsp) movq $0x3, 0x20(%rsp) movq 0x70(%rsp), %rsi movq 0x78(%rsp), %rdx movq 0x60(%rsp), %rcx movq 0x68(%rsp), %r8 leaq 0x18(%rsp), %rax movl $0x1, %r9d movq (%rax), %r10 movq %r10, (%rsp) movq 0x8(%rax), %rax movq %rax, 0x8(%rsp) callq 0x68e80 cmpl $0x0, %eax je 0xbebb4 jmp 0xbebf9 movq 0x90(%rsp), %rdi movq 0x60(%rsp), %rsi movq 0x68(%rsp), %rdx callq 0x229d0 jmp 0xbebcd movl 0x5c(%rsp), %eax addl $0x1, %eax movl %eax, 0x5c(%rsp) jmp 0xbea9e movq 0x70(%rsp), %rax movq %rax, 0xa8(%rsp) movq 0x78(%rsp), %rax movq %rax, 0xb0(%rsp) jmp 0xbec3e movq 0x90(%rsp), %rdi movq 0x70(%rsp), %rsi movq 0x78(%rsp), %rdx callq 0x229d0 movq 0x90(%rsp), %rdi movq 0x60(%rsp), %rsi movq 0x68(%rsp), %rdx callq 0x229d0 movl $0x0, 0xa8(%rsp) movq $0x6, 0xb0(%rsp) movq 0xa8(%rsp), %rax movq 0xb0(%rsp), %rdx addq $0xb8, %rsp retq nopw %cs:(%rax,%rax)
js_object_assign: sub rsp, 0B8h mov [rsp+0B8h+var_20], rsi mov [rsp+0B8h+var_18], rdx mov [rsp+0B8h+var_28], rdi mov [rsp+0B8h+var_2C], ecx mov [rsp+0B8h+var_38], r8 mov dword ptr [rsp+0B8h+var_70], 0 mov [rsp+0B8h+var_68], 3 mov rax, [rsp+0B8h+var_70] mov [rsp+0B8h+var_58], rax mov rax, [rsp+0B8h+var_68] mov [rsp+0B8h+var_50], rax mov rdi, [rsp+0B8h+var_28] mov rax, [rsp+0B8h+var_38] mov rsi, [rax] mov rdx, [rax+8] call JS_ToObject mov [rsp+0B8h+var_80], rax mov [rsp+0B8h+var_78], rdx mov rax, [rsp+0B8h+var_80] mov [rsp+0B8h+var_48], rax mov rax, [rsp+0B8h+var_78] mov [rsp+0B8h+var_40], rax mov rdi, [rsp+0B8h+var_48] mov rsi, [rsp+0B8h+var_40] call JS_IsException_1 cmp eax, 0 jz short loc_BEA96 jmp loc_BEBF9 loc_BEA96: mov [rsp+0B8h+var_5C], 1 loc_BEA9E: mov eax, [rsp+0B8h+var_5C] cmp eax, [rsp+0B8h+var_2C] jge loc_BEBDD mov rax, [rsp+0B8h+var_38] movsxd rcx, [rsp+0B8h+var_5C] shl rcx, 4 add rax, rcx mov rdi, [rax] mov rsi, [rax+8] call JS_IsNull_0 cmp eax, 0 jnz loc_BEBCB mov rax, [rsp+0B8h+var_38] movsxd rcx, [rsp+0B8h+var_5C] shl rcx, 4 add rax, rcx mov rdi, [rax] mov rsi, [rax+8] call JS_IsUndefined_0 cmp eax, 0 jnz loc_BEBCB mov rdi, [rsp+0B8h+var_28] mov rax, [rsp+0B8h+var_38] movsxd rcx, [rsp+0B8h+var_5C] shl rcx, 4 add rax, rcx mov rsi, [rax] mov rdx, [rax+8] call JS_ToObject mov [rsp+0B8h+var_90], rax mov [rsp+0B8h+var_88], rdx mov rax, [rsp+0B8h+var_90] mov [rsp+0B8h+var_58], rax mov rax, [rsp+0B8h+var_88] mov [rsp+0B8h+var_50], rax mov rdi, [rsp+0B8h+var_58] mov rsi, [rsp+0B8h+var_50] call JS_IsException_1 cmp eax, 0 jz short loc_BEB60 jmp loc_BEBF9 loc_BEB60: mov rdi, [rsp+0B8h+var_28] mov [rsp+0B8h+var_A0], 0 mov [rsp+0B8h+var_98], 3 mov rsi, [rsp+0B8h+var_48] mov rdx, [rsp+0B8h+var_40] mov rcx, [rsp+0B8h+var_58] mov r8, [rsp+0B8h+var_50] lea rax, [rsp+0B8h+var_A0] mov r9d, 1 mov r10, [rax] mov [rsp+0B8h+var_B8], r10 mov rax, [rax+8] mov [rsp+0B8h+var_B0], rax call JS_CopyDataProperties cmp eax, 0 jz short loc_BEBB4 jmp short loc_BEBF9 loc_BEBB4: mov rdi, [rsp+0B8h+var_28] mov rsi, [rsp+0B8h+var_58] mov rdx, [rsp+0B8h+var_50] call JS_FreeValue loc_BEBCB: jmp short $+2 loc_BEBCD: mov eax, [rsp+0B8h+var_5C] add eax, 1 mov [rsp+0B8h+var_5C], eax jmp loc_BEA9E loc_BEBDD: mov rax, [rsp+0B8h+var_48] mov [rsp+0B8h+var_10], rax mov rax, [rsp+0B8h+var_40] mov [rsp+0B8h+var_8], rax jmp short loc_BEC3E loc_BEBF9: mov rdi, [rsp+0B8h+var_28] mov rsi, [rsp+0B8h+var_48] mov rdx, [rsp+0B8h+var_40] call JS_FreeValue mov rdi, [rsp+0B8h+var_28] mov rsi, [rsp+0B8h+var_58] mov rdx, [rsp+0B8h+var_50] call JS_FreeValue mov dword ptr [rsp+0B8h+var_10], 0 mov [rsp+0B8h+var_8], 6 loc_BEC3E: mov rax, [rsp+0B8h+var_10] mov rdx, [rsp+0B8h+var_8] add rsp, 0B8h retn
_DWORD * js_object_assign( long long a1, __m128 a2, __m128 a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, long long a10, long long a11, long long a12, long long a13, long long a14) { long long v14; // rdx long long v15; // r8 long long v16; // r9 __m128 v17; // xmm4 __m128 v18; // xmm5 long long v19; // rdx double v20; // xmm4_8 double v21; // xmm5_8 long long v23; // [rsp+18h] [rbp-A0h] _DWORD *v24; // [rsp+28h] [rbp-90h] _DWORD *v25; // [rsp+38h] [rbp-80h] long long v26; // [rsp+48h] [rbp-70h] int i; // [rsp+5Ch] [rbp-5Ch] long long v28; // [rsp+60h] [rbp-58h] long long v29; // [rsp+68h] [rbp-50h] long long v30; // [rsp+78h] [rbp-40h] int v32; // [rsp+8Ch] [rbp-2Ch] long long v33; // [rsp+A8h] [rbp-10h] v32 = a12; LODWORD(v26) = 0; v28 = v26; v29 = 3LL; v25 = JS_ToObject(a1, *(_DWORD **)a13, *(_QWORD *)(a13 + 8), a2, a3, a4, a5, a6, a7, a8, a9, a12, a13, a14); v30 = v14; if ( JS_IsException_1((long long)v25, v14) ) { LABEL_11: JS_FreeValue(a1, (long long)v25, v30); JS_FreeValue(a1, v28, v29); LODWORD(v33) = 0; } else { for ( i = 1; i < v32; ++i ) { if ( !JS_IsNull_0(*(_QWORD *)(16LL * i + a13), *(_QWORD *)(16LL * i + a13 + 8)) && !JS_IsUndefined_0(*(_QWORD *)(16LL * i + a13), *(_QWORD *)(16LL * i + a13 + 8)) ) { v24 = JS_ToObject( a1, *(_DWORD **)(16LL * i + a13), *(_QWORD *)(16LL * i + a13 + 8), a2, a3, a4, a5, v17, v18, a8, a9, 16LL * i, v15, v16); v28 = (long long)v24; v29 = v19; if ( JS_IsException_1((long long)v24, v19) ) goto LABEL_11; LODWORD(v23) = 0; if ( (unsigned int)JS_CopyDataProperties( a1, (long long)v25, v30, (long long)v24, v29, 1, a2, a3, a4, a5, v20, v21, a8, a9, v23, 3) ) goto LABEL_11; JS_FreeValue(a1, (long long)v24, v29); } } return v25; } return (_DWORD *)v33; }
js_object_assign: SUB RSP,0xb8 MOV qword ptr [RSP + 0x98],RSI MOV qword ptr [RSP + 0xa0],RDX MOV qword ptr [RSP + 0x90],RDI MOV dword ptr [RSP + 0x8c],ECX MOV qword ptr [RSP + 0x80],R8 MOV dword ptr [RSP + 0x48],0x0 MOV qword ptr [RSP + 0x50],0x3 MOV RAX,qword ptr [RSP + 0x48] MOV qword ptr [RSP + 0x60],RAX MOV RAX,qword ptr [RSP + 0x50] MOV qword ptr [RSP + 0x68],RAX MOV RDI,qword ptr [RSP + 0x90] MOV RAX,qword ptr [RSP + 0x80] MOV RSI,qword ptr [RAX] MOV RDX,qword ptr [RAX + 0x8] CALL 0x001364b0 MOV qword ptr [RSP + 0x38],RAX MOV qword ptr [RSP + 0x40],RDX MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x70],RAX MOV RAX,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0x78],RAX MOV RDI,qword ptr [RSP + 0x70] MOV RSI,qword ptr [RSP + 0x78] CALL 0x00122a00 CMP EAX,0x0 JZ 0x001bea96 JMP 0x001bebf9 LAB_001bea96: MOV dword ptr [RSP + 0x5c],0x1 LAB_001bea9e: MOV EAX,dword ptr [RSP + 0x5c] CMP EAX,dword ptr [RSP + 0x8c] JGE 0x001bebdd MOV RAX,qword ptr [RSP + 0x80] MOVSXD RCX,dword ptr [RSP + 0x5c] SHL RCX,0x4 ADD RAX,RCX MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RAX + 0x8] CALL 0x0012cf80 CMP EAX,0x0 JNZ 0x001bebcb MOV RAX,qword ptr [RSP + 0x80] MOVSXD RCX,dword ptr [RSP + 0x5c] SHL RCX,0x4 ADD RAX,RCX MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RAX + 0x8] CALL 0x0012cfa0 CMP EAX,0x0 JNZ 0x001bebcb MOV RDI,qword ptr [RSP + 0x90] MOV RAX,qword ptr [RSP + 0x80] MOVSXD RCX,dword ptr [RSP + 0x5c] SHL RCX,0x4 ADD RAX,RCX MOV RSI,qword ptr [RAX] MOV RDX,qword ptr [RAX + 0x8] CALL 0x001364b0 MOV qword ptr [RSP + 0x28],RAX MOV qword ptr [RSP + 0x30],RDX MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x60],RAX MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x68],RAX MOV RDI,qword ptr [RSP + 0x60] MOV RSI,qword ptr [RSP + 0x68] CALL 0x00122a00 CMP EAX,0x0 JZ 0x001beb60 JMP 0x001bebf9 LAB_001beb60: MOV RDI,qword ptr [RSP + 0x90] MOV dword ptr [RSP + 0x18],0x0 MOV qword ptr [RSP + 0x20],0x3 MOV RSI,qword ptr [RSP + 0x70] MOV RDX,qword ptr [RSP + 0x78] MOV RCX,qword ptr [RSP + 0x60] MOV R8,qword ptr [RSP + 0x68] LEA RAX,[RSP + 0x18] MOV R9D,0x1 MOV R10,qword ptr [RAX] MOV qword ptr [RSP],R10 MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x8],RAX CALL 0x00168e80 CMP EAX,0x0 JZ 0x001bebb4 JMP 0x001bebf9 LAB_001bebb4: MOV RDI,qword ptr [RSP + 0x90] MOV RSI,qword ptr [RSP + 0x60] MOV RDX,qword ptr [RSP + 0x68] CALL 0x001229d0 LAB_001bebcb: JMP 0x001bebcd LAB_001bebcd: MOV EAX,dword ptr [RSP + 0x5c] ADD EAX,0x1 MOV dword ptr [RSP + 0x5c],EAX JMP 0x001bea9e LAB_001bebdd: MOV RAX,qword ptr [RSP + 0x70] MOV qword ptr [RSP + 0xa8],RAX MOV RAX,qword ptr [RSP + 0x78] MOV qword ptr [RSP + 0xb0],RAX JMP 0x001bec3e LAB_001bebf9: MOV RDI,qword ptr [RSP + 0x90] MOV RSI,qword ptr [RSP + 0x70] MOV RDX,qword ptr [RSP + 0x78] CALL 0x001229d0 MOV RDI,qword ptr [RSP + 0x90] MOV RSI,qword ptr [RSP + 0x60] MOV RDX,qword ptr [RSP + 0x68] CALL 0x001229d0 MOV dword ptr [RSP + 0xa8],0x0 MOV qword ptr [RSP + 0xb0],0x6 LAB_001bec3e: MOV RAX,qword ptr [RSP + 0xa8] MOV RDX,qword ptr [RSP + 0xb0] ADD RSP,0xb8 RET
int1 [16] js_object_assign(int8 param_1,int8 param_2,int8 param_3,int param_4, int8 *param_5) { int iVar1; int1 auVar5 [16]; int1 auVar6 [16]; uint uStack_9c; uint uStack_6c; int local_5c; int8 local_58; int8 local_50; int4 local_10; int4 uStack_c; int8 local_8; int8 uVar2; int8 uVar3; int8 uVar4; auVar6._8_8_ = 3; auVar6._0_8_ = (ulong)uStack_6c << 0x20; auVar5 = JS_ToObject(param_1,*param_5,param_5[1]); local_8 = auVar5._8_8_; uVar2 = auVar5._0_8_; iVar1 = JS_IsException(uVar2,local_8); if (iVar1 == 0) { for (local_5c = 1; local_5c < param_4; local_5c = local_5c + 1) { iVar1 = JS_IsNull(param_5[(long)local_5c * 2],(param_5 + (long)local_5c * 2)[1]); if ((iVar1 == 0) && (iVar1 = JS_IsUndefined(param_5[(long)local_5c * 2],(param_5 + (long)local_5c * 2)[1]), iVar1 == 0)) { auVar6 = JS_ToObject(param_1,param_5[(long)local_5c * 2],(param_5 + (long)local_5c * 2)[1]); uVar4 = auVar6._8_8_; uVar3 = auVar6._0_8_; iVar1 = JS_IsException(uVar3,uVar4); if ((iVar1 != 0) || (iVar1 = JS_CopyDataProperties (param_1,uVar2,local_8,uVar3,uVar4,1,(ulong)uStack_9c << 0x20,3), iVar1 != 0)) goto LAB_001bebf9; JS_FreeValue(param_1,uVar3,uVar4); } } local_10 = auVar5._0_4_; uStack_c = auVar5._4_4_; } else { LAB_001bebf9: local_50 = auVar6._8_8_; local_58 = auVar6._0_8_; JS_FreeValue(param_1,uVar2,local_8); JS_FreeValue(param_1,local_58,local_50); local_10 = 0; local_8 = 6; } auVar5._4_4_ = uStack_c; auVar5._0_4_ = local_10; auVar5._8_8_ = local_8; return auVar5; }
60,357
js_object_assign
bluesky950520[P]quickjs/quickjs.c
static JSValue js_object_assign(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { // Object.assign(obj, source1) JSValue obj, s; int i; s = JS_UNDEFINED; obj = JS_ToObject(ctx, argv[0]); if (JS_IsException(obj)) goto exception; for (i = 1; i < argc; i++) { if (!JS_IsNull(argv[i]) && !JS_IsUndefined(argv[i])) { s = JS_ToObject(ctx, argv[i]); if (JS_IsException(s)) goto exception; if (JS_CopyDataProperties(ctx, obj, s, JS_UNDEFINED, TRUE)) goto exception; JS_FreeValue(ctx, s); } } return obj; exception: JS_FreeValue(ctx, obj); JS_FreeValue(ctx, s); return JS_EXCEPTION; }
O3
c
js_object_assign: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %r8, %r13 movl %ecx, %ebp movq %rdi, %r15 movq (%r8), %rsi movq 0x8(%r8), %rdx callq 0x268d8 movq %rax, %rsi movq %rdx, %rbx cmpl $0x6, %ebx jne 0x7231d movl $0x3, %r12d xorl %ebp, %ebp jmp 0x723e7 cmpl $0x2, %ebp jl 0x7242e movq %rsi, 0x18(%rsp) movq %rbx, 0x20(%rsp) movl %ebp, %r14d shlq $0x4, %r14 addq $-0x10, %r14 xorl %ebx, %ebx movq 0x18(%r13,%rbx), %rdx movl %edx, %eax andl $-0x2, %eax cmpl $0x2, %eax je 0x723c4 movq 0x10(%r13,%rbx), %rsi movq %r15, %rdi callq 0x268d8 movq %rax, %rbp movq %rdx, %r12 cmpl $0x6, %r12d je 0x723dd movl $0x0, 0x28(%rsp) movq $0x3, 0x30(%rsp) movups 0x28(%rsp), %xmm0 movups %xmm0, (%rsp) movq %r15, %rdi movq 0x18(%rsp), %rsi movq 0x20(%rsp), %rdx movq %rbp, %rcx movq %r12, %r8 movl $0x1, %r9d callq 0x40bdc testl %eax, %eax jne 0x723dd cmpl $-0x9, %r12d jb 0x723c4 movq 0x18(%r15), %rdi movl (%rbp), %eax leal -0x1(%rax), %ecx movl %ecx, (%rbp) cmpl $0x1, %eax jg 0x723c4 movq %rbp, %rsi movq %r12, %rdx callq 0x20d90 addq $0x10, %rbx cmpq %rbx, %r14 jne 0x7233d movq 0x20(%rsp), %rbx movq 0x18(%rsp), %rsi jmp 0x7242e movq 0x20(%rsp), %rbx movq 0x18(%rsp), %rsi movq 0x18(%r15), %rdi cmpl $-0x9, %ebx jb 0x72408 movl (%rsi), %eax leal -0x1(%rax), %ecx movl %ecx, (%rsi) cmpl $0x1, %eax jg 0x72408 movq %rbx, %rdx callq 0x20d90 movq 0x18(%r15), %rdi movl $0x6, %ebx cmpl $-0x9, %r12d jb 0x7242c movl (%rbp), %eax leal -0x1(%rax), %ecx movl %ecx, (%rbp) cmpl $0x1, %eax jg 0x7242c movq %rbp, %rsi movq %r12, %rdx callq 0x20d90 xorl %esi, %esi movq %rsi, %rax movq %rbx, %rdx addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
js_object_assign: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov r13, r8 mov ebp, ecx mov r15, rdi mov rsi, [r8] mov rdx, [r8+8] call JS_ToObject mov rsi, rax mov rbx, rdx cmp ebx, 6 jnz short loc_7231D mov r12d, 3 xor ebp, ebp jmp loc_723E7 loc_7231D: cmp ebp, 2 jl loc_7242E mov [rsp+68h+var_50], rsi mov [rsp+68h+var_48], rbx mov r14d, ebp shl r14, 4 add r14, 0FFFFFFFFFFFFFFF0h xor ebx, ebx loc_7233D: mov rdx, [r13+rbx+18h] mov eax, edx and eax, 0FFFFFFFEh cmp eax, 2 jz short loc_723C4 mov rsi, [r13+rbx+10h] mov rdi, r15 call JS_ToObject mov rbp, rax mov r12, rdx cmp r12d, 6 jz short loc_723DD mov dword ptr [rsp+68h+var_40], 0 mov qword ptr [rsp+68h+var_40+8], 3 movups xmm0, [rsp+68h+var_40] movups [rsp+68h+var_68], xmm0 mov rdi, r15 mov rsi, [rsp+68h+var_50] mov rdx, [rsp+68h+var_48] mov rcx, rbp mov r8, r12 mov r9d, 1 call JS_CopyDataProperties test eax, eax jnz short loc_723DD cmp r12d, 0FFFFFFF7h jb short loc_723C4 mov rdi, [r15+18h] mov eax, [rbp+0] lea ecx, [rax-1] mov [rbp+0], ecx cmp eax, 1 jg short loc_723C4 mov rsi, rbp mov rdx, r12 call js_free_value_rt loc_723C4: add rbx, 10h cmp r14, rbx jnz loc_7233D mov rbx, [rsp+68h+var_48] mov rsi, [rsp+68h+var_50] jmp short loc_7242E loc_723DD: mov rbx, [rsp+68h+var_48] mov rsi, [rsp+68h+var_50] loc_723E7: mov rdi, [r15+18h] cmp ebx, 0FFFFFFF7h jb short loc_72408 mov eax, [rsi] lea ecx, [rax-1] mov [rsi], ecx cmp eax, 1 jg short loc_72408 mov rdx, rbx call js_free_value_rt mov rdi, [r15+18h] loc_72408: mov ebx, 6 cmp r12d, 0FFFFFFF7h jb short loc_7242C mov eax, [rbp+0] lea ecx, [rax-1] mov [rbp+0], ecx cmp eax, 1 jg short loc_7242C mov rsi, rbp mov rdx, r12 call js_free_value_rt loc_7242C: xor esi, esi loc_7242E: mov rax, rsi mov rdx, rbx add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
_QWORD * js_object_assign( long long a1, __m128 a2, __m128 a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, long long a10, long long a11, long long a12, long long *a13, long long a14) { int v15; // ebp long long v17; // rax unsigned long long v18; // rdx long long v19; // rcx long long v20; // r8 long long v21; // r9 __m128 v22; // xmm4 __m128 v23; // xmm5 _QWORD *v24; // rsi long long v25; // rbx long long v26; // r12 _QWORD *v27; // rbp long long v28; // r14 unsigned long long v29; // rbx long long v30; // rax long long v31; // rdx double v32; // xmm4_8 double v33; // xmm5_8 long long v34; // rdi int v35; // eax long long v36; // rdi int v37; // eax long long v38; // rcx int v39; // eax long long v40; // rcx unsigned long long v42; // [rsp+18h] [rbp-50h] unsigned long long v43; // [rsp+20h] [rbp-48h] __m128 v44; // [rsp+28h] [rbp-40h] v15 = a12; v17 = JS_ToObject(a1, *a13, a13[1], a12, (long long)a13, a14, a2, a3, a4, a5, a6, a7, a8, a9); v24 = (_QWORD *)v17; v25 = v18; if ( (_DWORD)v18 == 6 ) { v26 = 3LL; v27 = 0LL; LABEL_14: v36 = *(_QWORD *)(a1 + 24); if ( (unsigned int)v25 >= 0xFFFFFFF7 ) { v37 = *(_DWORD *)v24; v38 = (unsigned int)(*(_DWORD *)v24 - 1); *(_DWORD *)v24 = v38; if ( v37 <= 1 ) { js_free_value_rt(v36, v24, v25, v38, v20, v21); v36 = *(_QWORD *)(a1 + 24); } } if ( (unsigned int)v26 >= 0xFFFFFFF7 ) { v39 = *(_DWORD *)v27; v40 = (unsigned int)(*(_DWORD *)v27 - 1); *(_DWORD *)v27 = v40; if ( v39 <= 1 ) js_free_value_rt(v36, v27, v26, v40, v20, v21); } return 0LL; } else if ( v15 >= 2 ) { v42 = v17; v43 = v18; v28 = 16LL * (unsigned int)v15 - 16; v29 = 0LL; while ( 1 ) { if ( (a13[v29 / 8 + 3] & 0xFFFFFFFE) != 2 ) { v30 = JS_ToObject(a1, a13[v29 / 8 + 2], a13[v29 / 8 + 3], v19, v20, v21, a2, a3, a4, a5, v22, v23, a8, a9); v27 = (_QWORD *)v30; v26 = v31; if ( (_DWORD)v31 == 6 || (v44.m128_i32[0] = 0, v44.m128_u64[1] = 3LL, a2 = v44, (unsigned int)JS_CopyDataProperties( a1, v42, v43, v30, v31, 1, *(double *)v44.m128_u64, a3, a4, a5, v32, v33, a8, a9, v44.m128_i64[0], 3)) ) { v25 = v43; v24 = (_QWORD *)v42; goto LABEL_14; } if ( (unsigned int)v26 >= 0xFFFFFFF7 ) { v34 = *(_QWORD *)(a1 + 24); v35 = *(_DWORD *)v27; v19 = (unsigned int)(*(_DWORD *)v27 - 1); *(_DWORD *)v27 = v19; if ( v35 <= 1 ) js_free_value_rt(v34, v27, v26, v19, v20, v21); } } v29 += 16LL; if ( v28 == v29 ) return (_QWORD *)v42; } } return v24; }
js_object_assign: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV R13,R8 MOV EBP,ECX MOV R15,RDI MOV RSI,qword ptr [R8] MOV RDX,qword ptr [R8 + 0x8] CALL 0x001268d8 MOV RSI,RAX MOV RBX,RDX CMP EBX,0x6 JNZ 0x0017231d MOV R12D,0x3 XOR EBP,EBP JMP 0x001723e7 LAB_0017231d: CMP EBP,0x2 JL 0x0017242e MOV qword ptr [RSP + 0x18],RSI MOV qword ptr [RSP + 0x20],RBX MOV R14D,EBP SHL R14,0x4 ADD R14,-0x10 XOR EBX,EBX LAB_0017233d: MOV RDX,qword ptr [R13 + RBX*0x1 + 0x18] MOV EAX,EDX AND EAX,0xfffffffe CMP EAX,0x2 JZ 0x001723c4 MOV RSI,qword ptr [R13 + RBX*0x1 + 0x10] MOV RDI,R15 CALL 0x001268d8 MOV RBP,RAX MOV R12,RDX CMP R12D,0x6 JZ 0x001723dd MOV dword ptr [RSP + 0x28],0x0 MOV qword ptr [RSP + 0x30],0x3 MOVUPS XMM0,xmmword ptr [RSP + 0x28] MOVUPS xmmword ptr [RSP],XMM0 MOV RDI,R15 MOV RSI,qword ptr [RSP + 0x18] MOV RDX,qword ptr [RSP + 0x20] MOV RCX,RBP MOV R8,R12 MOV R9D,0x1 CALL 0x00140bdc TEST EAX,EAX JNZ 0x001723dd CMP R12D,-0x9 JC 0x001723c4 MOV RDI,qword ptr [R15 + 0x18] MOV EAX,dword ptr [RBP] LEA ECX,[RAX + -0x1] MOV dword ptr [RBP],ECX CMP EAX,0x1 JG 0x001723c4 MOV RSI,RBP MOV RDX,R12 CALL 0x00120d90 LAB_001723c4: ADD RBX,0x10 CMP R14,RBX JNZ 0x0017233d MOV RBX,qword ptr [RSP + 0x20] MOV RSI,qword ptr [RSP + 0x18] JMP 0x0017242e LAB_001723dd: MOV RBX,qword ptr [RSP + 0x20] MOV RSI,qword ptr [RSP + 0x18] LAB_001723e7: MOV RDI,qword ptr [R15 + 0x18] CMP EBX,-0x9 JC 0x00172408 MOV EAX,dword ptr [RSI] LEA ECX,[RAX + -0x1] MOV dword ptr [RSI],ECX CMP EAX,0x1 JG 0x00172408 MOV RDX,RBX CALL 0x00120d90 MOV RDI,qword ptr [R15 + 0x18] LAB_00172408: MOV EBX,0x6 CMP R12D,-0x9 JC 0x0017242c MOV EAX,dword ptr [RBP] LEA ECX,[RAX + -0x1] MOV dword ptr [RBP],ECX CMP EAX,0x1 JG 0x0017242c MOV RSI,RBP MOV RDX,R12 CALL 0x00120d90 LAB_0017242c: XOR ESI,ESI LAB_0017242e: MOV RAX,RSI MOV RDX,RBX ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int1 [16] js_object_assign(long param_1,int8 param_2,int8 param_3,uint param_4,int8 *param_5 ) { int iVar1; int *piVar2; long lVar3; int *piVar4; int8 uVar5; int1 auVar6 [16]; int1 auVar7 [16]; auVar6 = JS_ToObject(param_1,*param_5,param_5[1]); piVar2 = auVar6._0_8_; if (auVar6._8_4_ == 6) { auVar7 = ZEXT816(3) << 0x40; LAB_001723e7: piVar4 = auVar7._0_8_; uVar5 = *(int8 *)(param_1 + 0x18); if ((0xfffffff6 < auVar6._8_4_) && (iVar1 = *piVar2, *piVar2 = iVar1 + -1, iVar1 < 2)) { js_free_value_rt(uVar5,piVar2,auVar6._8_8_); uVar5 = *(int8 *)(param_1 + 0x18); } if ((0xfffffff6 < auVar7._8_4_) && (iVar1 = *piVar4, *piVar4 = iVar1 + -1, iVar1 < 2)) { js_free_value_rt(uVar5,piVar4,auVar7._8_8_); } auVar6 = ZEXT816(6) << 0x40; } else if (1 < (int)param_4) { lVar3 = 0; do { if (((uint)*(int8 *)((long)param_5 + lVar3 + 0x18) & 0xfffffffe) != 2) { auVar7 = JS_ToObject(param_1,*(int8 *)((long)param_5 + lVar3 + 0x10)); piVar4 = auVar7._0_8_; if ((auVar7._8_4_ == 6) || (iVar1 = JS_CopyDataProperties(param_1,piVar2,auVar6._8_8_,piVar4,auVar7._8_8_,1,0,3), iVar1 != 0)) goto LAB_001723e7; if (0xfffffff6 < auVar7._8_4_) { uVar5 = *(int8 *)(param_1 + 0x18); iVar1 = *piVar4; *piVar4 = iVar1 + -1; if (iVar1 < 2) { js_free_value_rt(uVar5,piVar4,auVar7._8_8_); } } } lVar3 = lVar3 + 0x10; } while ((ulong)param_4 * 0x10 + -0x10 != lVar3); } return auVar6; }
60,358
lf_hash_destroy
eloqsql/mysys/lf_hash.cc
void lf_hash_destroy(LF_HASH *hash) { LF_SLIST *el, **head= (LF_SLIST **)lf_dynarray_value(&hash->array, 0); if (head) { el= *head; while (el) { intptr next= el->link; if (el->hashnr & 1) lf_alloc_direct_free(&hash->alloc, el); /* normal node */ else my_free(el); /* dummy node */ el= (LF_SLIST *)next; } } lf_alloc_destroy(&hash->alloc); lf_dynarray_destroy(&hash->array); }
O3
cpp
lf_hash_destroy: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx xorl %esi, %esi callq 0xac74c testq %rax, %rax je 0xac9e6 movq (%rax), %r14 testq %r14, %r14 je 0xac9e6 movq (%r14), %r15 testb $0x1, 0x18(%r14) je 0xac9d6 movq 0x88(%rbx), %rax testq %rax, %rax je 0xac9d6 movq %r14, %rdi callq *%rax movq %r14, %rdi callq 0xa6612 movq %r15, %r14 testq %r15, %r15 jne 0xac9bb leaq 0x28(%rbx), %rdi callq 0xac4fd movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp 0xac6cb
lf_hash_destroy: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov rbx, rdi xor esi, esi call lf_dynarray_value test rax, rax jz short loc_AC9E6 mov r14, [rax] test r14, r14 jz short loc_AC9E6 loc_AC9BB: mov r15, [r14] test byte ptr [r14+18h], 1 jz short loc_AC9D6 mov rax, [rbx+88h] test rax, rax jz short loc_AC9D6 mov rdi, r14 call rax loc_AC9D6: mov rdi, r14 call my_free mov r14, r15 test r15, r15 jnz short loc_AC9BB loc_AC9E6: lea rdi, [rbx+28h] call lf_alloc_destroy mov rdi, rbx add rsp, 8 pop rbx pop r14 pop r15 pop rbp jmp lf_dynarray_destroy
long long lf_hash_destroy(long long a1) { long long *v1; // rax long long v2; // r14 long long v3; // r15 void ( *v4)(long long); // rax v1 = (long long *)lf_dynarray_value(a1, 0); if ( v1 ) { v2 = *v1; if ( *v1 ) { do { v3 = *(_QWORD *)v2; if ( (*(_BYTE *)(v2 + 24) & 1) != 0 ) { v4 = *(void ( **)(long long))(a1 + 136); if ( v4 ) v4(v2); } my_free(v2); v2 = v3; } while ( v3 ); } } lf_alloc_destroy(a1 + 40); return lf_dynarray_destroy(a1); }
lf_hash_destroy: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI XOR ESI,ESI CALL 0x001ac74c TEST RAX,RAX JZ 0x001ac9e6 MOV R14,qword ptr [RAX] TEST R14,R14 JZ 0x001ac9e6 LAB_001ac9bb: MOV R15,qword ptr [R14] TEST byte ptr [R14 + 0x18],0x1 JZ 0x001ac9d6 MOV RAX,qword ptr [RBX + 0x88] TEST RAX,RAX JZ 0x001ac9d6 MOV RDI,R14 CALL RAX LAB_001ac9d6: MOV RDI,R14 CALL 0x001a6612 MOV R14,R15 TEST R15,R15 JNZ 0x001ac9bb LAB_001ac9e6: LEA RDI,[RBX + 0x28] CALL 0x001ac4fd MOV RDI,RBX ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP JMP 0x001ac6cb
void lf_hash_destroy(long param_1) { int8 *puVar1; int8 *puVar2; puVar2 = (int8 *)lf_dynarray_value(param_1,0); if (puVar2 != (int8 *)0x0) { puVar2 = (int8 *)*puVar2; while (puVar2 != (int8 *)0x0) { puVar1 = (int8 *)*puVar2; if (((*(byte *)(puVar2 + 3) & 1) != 0) && (*(code **)(param_1 + 0x88) != (code *)0x0)) { (**(code **)(param_1 + 0x88))(puVar2); } my_free(puVar2); puVar2 = puVar1; } } lf_alloc_destroy(param_1 + 0x28); lf_dynarray_destroy(param_1); return; }
60,359
google::protobuf::compiler::objectivec::MessageFieldGenerator::~MessageFieldGenerator()
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/objectivec/objectivec_message_field.cc
void MessageFieldGenerator::DetermineForwardDeclarations( std::set<std::string>* fwd_decls, bool include_external_types) const { ObjCObjFieldGenerator::DetermineForwardDeclarations( fwd_decls, include_external_types); // Within a file there is no requirement on the order of the messages, so // local references need a forward declaration. External files (not WKTs), // need one when requested. if ((include_external_types && !IsProtobufLibraryBundledProtoFile(descriptor_->message_type()->file())) || descriptor_->file() == descriptor_->message_type()->file()) { // Class name is already in "storage_type". fwd_decls->insert("@class " + variable("storage_type")); } }
O0
cpp
google::protobuf::compiler::objectivec::MessageFieldGenerator::~MessageFieldGenerator(): subq $0x18, %rsp movq %rdi, 0x10(%rsp) movq 0x10(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0x1d6b40 movq 0x8(%rsp), %rdi callq 0x21620 addq $0x18, %rsp retq nopw (%rax,%rax)
_ZN6google8protobuf8compiler10objectivec21MessageFieldGeneratorD0Ev: sub rsp, 18h mov [rsp+18h+var_8], rdi mov rdi, [rsp+18h+var_8]; this mov [rsp+18h+var_10], rdi call _ZN6google8protobuf8compiler10objectivec21MessageFieldGeneratorD2Ev; google::protobuf::compiler::objectivec::MessageFieldGenerator::~MessageFieldGenerator() mov rdi, [rsp+18h+var_10]; void * call __ZdlPv; operator delete(void *) add rsp, 18h retn
void google::protobuf::compiler::objectivec::MessageFieldGenerator::~MessageFieldGenerator( google::protobuf::compiler::objectivec::MessageFieldGenerator *this) { google::protobuf::compiler::objectivec::MessageFieldGenerator::~MessageFieldGenerator(this); operator delete(this); }
60,360
google::protobuf::compiler::objectivec::MessageFieldGenerator::~MessageFieldGenerator()
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/objectivec/objectivec_message_field.cc
void MessageFieldGenerator::DetermineForwardDeclarations( std::set<std::string>* fwd_decls, bool include_external_types) const { ObjCObjFieldGenerator::DetermineForwardDeclarations( fwd_decls, include_external_types); // Within a file there is no requirement on the order of the messages, so // local references need a forward declaration. External files (not WKTs), // need one when requested. if ((include_external_types && !IsProtobufLibraryBundledProtoFile(descriptor_->message_type()->file())) || descriptor_->file() == descriptor_->message_type()->file()) { // Class name is already in "storage_type". fwd_decls->insert("@class " + variable("storage_type")); } }
O3
cpp
google::protobuf::compiler::objectivec::MessageFieldGenerator::~MessageFieldGenerator(): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x48, %rsp movl %edx, %ebp movq %rsi, %rbx movq %rdi, %r14 callq 0xeeb88 testl %ebp, %ebp je 0xf113b movq 0x8(%r14), %rdi callq 0x11d7ce movq 0x10(%rax), %rdi callq 0x4e6df testb %al, %al je 0xf1152 movq 0x8(%r14), %rdi movq 0x10(%rdi), %r15 callq 0x11d7ce cmpq 0x10(%rax), %r15 jne 0xf11f6 leaq 0xf5502(%rip), %rdx # 0x1e665b leaq 0x28(%rsp), %r15 movq %r15, %rdi movq %r14, %rsi callq 0xbee0a leaq 0xf5a2d(%rip), %rcx # 0x1e6b9d movl $0x7, %r8d movq %r15, %rdi xorl %esi, %esi xorl %edx, %edx callq 0x1f550 leaq 0x18(%rsp), %r14 movq %r14, -0x10(%r14) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0xf11a9 movq %rdx, 0x8(%rsp) movq (%rcx), %rdx movq %rdx, 0x18(%rsp) jmp 0xf11b0 movups (%rcx), %xmm0 movups %xmm0, (%r14) movq 0x8(%rax), %rdx leaq 0x8(%rsp), %rsi movq %rdx, 0x8(%rsi) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) movq %rbx, %rdi callq 0x329e0 movq 0x8(%rsp), %rdi cmpq %r14, %rdi je 0xf11e3 callq 0x1f4a0 leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xf11f6 callq 0x1f4a0 addq $0x48, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r14, %rdi je 0xf1218 callq 0x1f4a0 jmp 0xf1218 movq %rax, %rbx leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xf122b callq 0x1f4a0 movq %rbx, %rdi callq 0x1f860 nop
_ZNK6google8protobuf8compiler10objectivec21MessageFieldGenerator28DetermineForwardDeclarationsEPSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessISA_ESaISA_EEb: push rbp push r15 push r14 push rbx sub rsp, 48h mov ebp, edx mov rbx, rsi mov r14, rdi call _ZNK6google8protobuf8compiler10objectivec14FieldGenerator28DetermineForwardDeclarationsEPSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessISA_ESaISA_EEb; google::protobuf::compiler::objectivec::FieldGenerator::DetermineForwardDeclarations(std::set<std::string> *,bool) test ebp, ebp jz short loc_F113B mov rdi, [r14+8]; this call _ZNK6google8protobuf15FieldDescriptor12message_typeEv; google::protobuf::FieldDescriptor::message_type(void) mov rdi, [rax+10h] call _ZN6google8protobuf8compiler10objectivec33IsProtobufLibraryBundledProtoFileEPKNS0_14FileDescriptorE; google::protobuf::compiler::objectivec::IsProtobufLibraryBundledProtoFile(google::protobuf::FileDescriptor const*) test al, al jz short loc_F1152 loc_F113B: mov rdi, [r14+8]; this mov r15, [rdi+10h] call _ZNK6google8protobuf15FieldDescriptor12message_typeEv; google::protobuf::FieldDescriptor::message_type(void) cmp r15, [rax+10h] jnz loc_F11F6 loc_F1152: lea rdx, aArrayStorageTy+6; "storage_type" lea r15, [rsp+68h+var_40] mov rdi, r15 mov rsi, r14 call _ZNK6google8protobuf8compiler10objectivec14FieldGenerator8variableB5cxx11EPKc; google::protobuf::compiler::objectivec::FieldGenerator::variable(char const*) lea rcx, aClass_1; "@class " mov r8d, 7 mov rdi, r15 xor esi, esi xor edx, edx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong) lea r14, [rsp+68h+var_50] mov [r14-10h], r14 mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jz short loc_F11A9 mov [rsp+68h+var_60], rdx mov rdx, [rcx] mov [rsp+68h+var_50], rdx jmp short loc_F11B0 loc_F11A9: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [r14], xmm0 loc_F11B0: mov rdx, [rax+8] lea rsi, [rsp+68h+var_60] mov [rsi+8], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 mov rdi, rbx call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St9_IdentityIS5_ESt4lessIS5_ESaIS5_EE16_M_insert_uniqueIS5_EESt4pairISt17_Rb_tree_iteratorIS5_EbEOT_; std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::_M_insert_unique<std::string>(std::string &&) mov rdi, [rsp+68h+var_60]; void * cmp rdi, r14 jz short loc_F11E3 call __ZdlPv; operator delete(void *) loc_F11E3: lea rax, [rsp+68h+var_30] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_F11F6 call __ZdlPv; operator delete(void *) loc_F11F6: add rsp, 48h pop rbx pop r14 pop r15 pop rbp retn mov rbx, rax mov rdi, [rsp+arg_0]; void * cmp rdi, r14 jz short loc_F1218 call __ZdlPv; operator delete(void *) jmp short loc_F1218 mov rbx, rax loc_F1218: lea rax, [rsp+arg_30] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_F122B call __ZdlPv; operator delete(void *) loc_F122B: mov rdi, rbx call __Unwind_Resume
void google::protobuf::compiler::objectivec::MessageFieldGenerator::DetermineForwardDeclarations( long long a1, const google::protobuf::FileDescriptor *a2, int a3) { long long v5; // rax google::protobuf::FieldDescriptor *v6; // rdi long long v7; // r15 long long v8; // rax __int128 *v9; // rcx long long v10; // rdx void *v11; // [rsp+8h] [rbp-60h] BYREF long long v12; // [rsp+10h] [rbp-58h] __int128 v13; // [rsp+18h] [rbp-50h] BYREF void *v14[2]; // [rsp+28h] [rbp-40h] BYREF char v15; // [rsp+38h] [rbp-30h] BYREF google::protobuf::compiler::objectivec::FieldGenerator::DetermineForwardDeclarations(); if ( a3 && (v5 = google::protobuf::FieldDescriptor::message_type(*(google::protobuf::FieldDescriptor **)(a1 + 8)), !(unsigned __int8)google::protobuf::compiler::objectivec::IsProtobufLibraryBundledProtoFile( *(google::protobuf::compiler::objectivec **)(v5 + 16), a2)) || (v6 = *(google::protobuf::FieldDescriptor **)(a1 + 8), v7 = *((_QWORD *)v6 + 2), v7 == *(_QWORD *)(google::protobuf::FieldDescriptor::message_type(v6) + 16)) ) { google::protobuf::compiler::objectivec::FieldGenerator::variable[abi:cxx11](v14, a1, (long long)"storage_type"); v8 = std::string::replace(v14, 0LL, 0LL, "@class ", 7LL); v11 = &v13; v9 = (__int128 *)(v8 + 16); if ( *(_QWORD *)v8 == v8 + 16 ) { v13 = *v9; } else { v11 = *(void **)v8; *(_QWORD *)&v13 = *(_QWORD *)v9; } v12 = *(_QWORD *)(v8 + 8); v10 = v12; *(_QWORD *)v8 = v9; *(_QWORD *)(v8 + 8) = 0LL; *(_BYTE *)(v8 + 16) = 0; std::_Rb_tree<std::string,std::string,std::_Identity<std::string>,std::less<std::string>,std::allocator<std::string>>::_M_insert_unique<std::string>( (long long)a2, (long long)&v11, v10); if ( v11 != &v13 ) operator delete(v11); if ( v14[0] != &v15 ) operator delete(v14[0]); } }
DetermineForwardDeclarations: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x48 MOV EBP,EDX MOV RBX,RSI MOV R14,RDI CALL 0x001eeb88 TEST EBP,EBP JZ 0x001f113b MOV RDI,qword ptr [R14 + 0x8] CALL 0x0021d7ce MOV RDI,qword ptr [RAX + 0x10] CALL 0x0014e6df TEST AL,AL JZ 0x001f1152 LAB_001f113b: MOV RDI,qword ptr [R14 + 0x8] MOV R15,qword ptr [RDI + 0x10] CALL 0x0021d7ce CMP R15,qword ptr [RAX + 0x10] JNZ 0x001f11f6 LAB_001f1152: LEA RDX,[0x2e665b] LEA R15,[RSP + 0x28] MOV RDI,R15 MOV RSI,R14 CALL 0x001bee0a LAB_001f1169: LEA RCX,[0x2e6b9d] MOV R8D,0x7 MOV RDI,R15 XOR ESI,ESI XOR EDX,EDX CALL 0x0011f550 LEA R14,[RSP + 0x18] MOV qword ptr [R14 + -0x10],R14 MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JZ 0x001f11a9 MOV qword ptr [RSP + 0x8],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x18],RDX JMP 0x001f11b0 LAB_001f11a9: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [R14],XMM0 LAB_001f11b0: MOV RDX,qword ptr [RAX + 0x8] LEA RSI,[RSP + 0x8] MOV qword ptr [RSI + 0x8],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 LAB_001f11cc: MOV RDI,RBX CALL 0x001329e0 LAB_001f11d4: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R14 JZ 0x001f11e3 CALL 0x0011f4a0 LAB_001f11e3: LEA RAX,[RSP + 0x38] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001f11f6 CALL 0x0011f4a0 LAB_001f11f6: ADD RSP,0x48 POP RBX POP R14 POP R15 POP RBP RET
/* google::protobuf::compiler::objectivec::MessageFieldGenerator::DetermineForwardDeclarations(std::set<std::__cxx11::string, std::less<std::__cxx11::string >, std::allocator<std::__cxx11::string > >*, bool) const */ void __thiscall google::protobuf::compiler::objectivec::MessageFieldGenerator::DetermineForwardDeclarations (MessageFieldGenerator *this,set *param_1,bool param_2) { char cVar1; long lVar2; long lVar3; long *plVar4; long *plVar5; int7 in_register_00000011; long *local_60; long local_58; long local_50; long lStack_48; int1 *local_40 [2]; int1 local_30 [16]; FieldGenerator::DetermineForwardDeclarations((set *)this,SUB81(param_1,0)); if ((int)CONCAT71(in_register_00000011,param_2) != 0) { lVar2 = FieldDescriptor::message_type(*(FieldDescriptor **)(this + 8)); cVar1 = IsProtobufLibraryBundledProtoFile(*(FileDescriptor **)(lVar2 + 0x10)); if (cVar1 == '\0') goto LAB_001f1152; } lVar2 = *(long *)(*(FieldDescriptor **)(this + 8) + 0x10); lVar3 = FieldDescriptor::message_type(*(FieldDescriptor **)(this + 8)); if (lVar2 != *(long *)(lVar3 + 0x10)) { return; } LAB_001f1152: FieldGenerator::variable_abi_cxx11_((char *)local_40); /* try { // try from 001f1169 to 001f1181 has its CatchHandler @ 001f1215 */ plVar4 = (long *)std::__cxx11::string::replace((ulong)local_40,0,(char *)0x0,0x2e6b9d); plVar5 = plVar4 + 2; if ((long *)*plVar4 == plVar5) { local_50 = *plVar5; lStack_48 = plVar4[3]; local_60 = &local_50; } else { local_50 = *plVar5; local_60 = (long *)*plVar4; } local_58 = plVar4[1]; *plVar4 = (long)plVar5; plVar4[1] = 0; *(int1 *)(plVar4 + 2) = 0; /* try { // try from 001f11cc to 001f11d3 has its CatchHandler @ 001f1201 */ std:: _Rb_tree<std::__cxx11::string,std::__cxx11::string,std::_Identity<std::__cxx11::string>,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>> ::_M_insert_unique<std::__cxx11::string> ((_Rb_tree<std::__cxx11::string,std::__cxx11::string,std::_Identity<std::__cxx11::string>,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>> *)param_1,(string *)&local_60); if (local_60 != &local_50) { operator_delete(local_60); } if (local_40[0] != local_30) { operator_delete(local_40[0]); } return; }
60,361
google::protobuf::(anonymous namespace)::TypeMap<google::protobuf::(anonymous namespace)::IntT, char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, google::protobuf::SourceCodeInfo, google::protobuf::FileDescriptorTables, google::protobuf::MessageOptions, google::protobuf::FieldOptions, google::protobuf::EnumOptions, google::protobuf::EnumValueOptions, google::protobuf::ExtensionRangeOptions, google::protobuf::OneofOptions, google::protobuf::ServiceOptions, google::protobuf::MethodOptions, google::protobuf::FileOptions> google::protobuf::(anonymous namespace)::CalculateEnds<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, google::protobuf::SourceCodeInfo, google::protobuf::FileDescriptorTables, google::protobuf::MessageOptions, google::protobuf::FieldOptions, google::protobuf::EnumOptions, google::protobuf::EnumValueOptions, google::protobuf::ExtensionRangeOptions, google::protobuf::OneofOptions, google::protobuf::ServiceOptions, google::protobuf::MethodOptions, google::protobuf::FileOptions>(google::protobuf::(anonymous namespace)::TypeMap<google::protobuf::(anonymous namespace)::IntT, char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, google::protobuf::SourceCodeInfo, google::protobuf::FileDescriptorTables, google::protobuf::MessageOptions, google::protobuf::FieldOptions, google::protobuf::EnumOptions, google::protobuf::EnumValueOptions, google::protobuf::ExtensionRangeOptions, google::protobuf::OneofOptions, google::protobuf::ServiceOptions, google::protobuf::MethodOptions, google::protobuf::FileOptions> const&)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc
TypeMap<IntT, T...> CalculateEnds(const TypeMap<IntT, T...>& sizes) { int total = 0; TypeMap<IntT, T...> out; Fold({(out.template Get<T>() = total += sizeof(T) * sizes.template Get<T>())...}); return out; }
O0
cpp
google::protobuf::(anonymous namespace)::TypeMap<google::protobuf::(anonymous namespace)::IntT, char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, google::protobuf::SourceCodeInfo, google::protobuf::FileDescriptorTables, google::protobuf::MessageOptions, google::protobuf::FieldOptions, google::protobuf::EnumOptions, google::protobuf::EnumValueOptions, google::protobuf::ExtensionRangeOptions, google::protobuf::OneofOptions, google::protobuf::ServiceOptions, google::protobuf::MethodOptions, google::protobuf::FileOptions> google::protobuf::(anonymous namespace)::CalculateEnds<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, google::protobuf::SourceCodeInfo, google::protobuf::FileDescriptorTables, google::protobuf::MessageOptions, google::protobuf::FieldOptions, google::protobuf::EnumOptions, google::protobuf::EnumValueOptions, google::protobuf::ExtensionRangeOptions, google::protobuf::OneofOptions, google::protobuf::ServiceOptions, google::protobuf::MethodOptions, google::protobuf::FileOptions>(google::protobuf::(anonymous namespace)::TypeMap<google::protobuf::(anonymous namespace)::IntT, char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, google::protobuf::SourceCodeInfo, google::protobuf::FileDescriptorTables, google::protobuf::MessageOptions, google::protobuf::FieldOptions, google::protobuf::EnumOptions, google::protobuf::EnumValueOptions, google::protobuf::ExtensionRangeOptions, google::protobuf::OneofOptions, google::protobuf::ServiceOptions, google::protobuf::MethodOptions, google::protobuf::FileOptions> const&): subq $0x108, %rsp # imm = 0x108 movq %rdi, 0xb8(%rsp) movq %rdi, %rax movq %rax, 0xd0(%rsp) movq %rsi, 0x100(%rsp) movl $0x0, 0xfc(%rsp) callq 0x272a20 movq 0x100(%rsp), %rdi callq 0x276220 movq 0xb8(%rsp), %rdi movslq (%rax), %rcx shlq $0x0, %rcx movslq 0xfc(%rsp), %rax addq %rcx, %rax movl %eax, 0x4(%rsp) movl %eax, 0xfc(%rsp) callq 0x273c30 movq %rax, %rsi movl 0x4(%rsp), %eax movl %eax, (%rsi) leaq 0xdb(%rsp), %rdi callq 0x2795c0 leaq 0xdb(%rsp), %rax addq $0x1, %rax movq %rax, 0x8(%rsp) movq 0x100(%rsp), %rdi callq 0x276230 movq 0xb8(%rsp), %rdi movslq (%rax), %rcx shlq $0x5, %rcx movslq 0xfc(%rsp), %rax addq %rcx, %rax movl %eax, 0x14(%rsp) movl %eax, 0xfc(%rsp) callq 0x271c30 movq 0x8(%rsp), %rdi movq %rax, %rsi movl 0x14(%rsp), %eax movl %eax, (%rsi) callq 0x2795c0 leaq 0xdb(%rsp), %rax addq $0x2, %rax movq %rax, 0x18(%rsp) movq 0x100(%rsp), %rdi callq 0x276350 movq 0xb8(%rsp), %rdi movslq (%rax), %rax imulq $0x30, %rax, %rcx movslq 0xfc(%rsp), %rax addq %rcx, %rax movl %eax, 0x24(%rsp) movl %eax, 0xfc(%rsp) callq 0x273960 movq 0x18(%rsp), %rdi movq %rax, %rsi movl 0x24(%rsp), %eax movl %eax, (%rsi) callq 0x2795c0 leaq 0xdb(%rsp), %rax addq $0x3, %rax movq %rax, 0x28(%rsp) movq 0x100(%rsp), %rdi callq 0x276470 movq 0xb8(%rsp), %rdi movslq (%rax), %rax imulq $0x160, %rax, %rcx # imm = 0x160 movslq 0xfc(%rsp), %rax addq %rcx, %rax movl %eax, 0x34(%rsp) movl %eax, 0xfc(%rsp) callq 0x273940 movq 0x28(%rsp), %rdi movq %rax, %rsi movl 0x34(%rsp), %eax movl %eax, (%rsi) callq 0x2795c0 leaq 0xdb(%rsp), %rax addq $0x4, %rax movq %rax, 0x38(%rsp) movq 0x100(%rsp), %rdi callq 0x276590 movq 0xb8(%rsp), %rdi movslq (%rax), %rax imulq $0x50, %rax, %rcx movslq 0xfc(%rsp), %rax addq %rcx, %rax movl %eax, 0x44(%rsp) movl %eax, 0xfc(%rsp) callq 0x2742c0 movq 0x38(%rsp), %rdi movq %rax, %rsi movl 0x44(%rsp), %eax movl %eax, (%rsi) callq 0x2795c0 leaq 0xdb(%rsp), %rax addq $0x5, %rax movq %rax, 0x48(%rsp) movq 0x100(%rsp), %rdi callq 0x2766b0 movq 0xb8(%rsp), %rdi movslq (%rax), %rax imulq $0x58, %rax, %rcx movslq 0xfc(%rsp), %rax addq %rcx, %rax movl %eax, 0x54(%rsp) movl %eax, 0xfc(%rsp) callq 0x274ea0 movq 0x48(%rsp), %rdi movq %rax, %rsi movl 0x54(%rsp), %eax movl %eax, (%rsi) callq 0x2795c0 leaq 0xdb(%rsp), %rax addq $0x6, %rax movq %rax, 0x58(%rsp) movq 0x100(%rsp), %rdi callq 0x2767d0 movq 0xb8(%rsp), %rdi movslq (%rax), %rax imulq $0x50, %rax, %rcx movslq 0xfc(%rsp), %rax addq %rcx, %rax movl %eax, 0x64(%rsp) movl %eax, 0xfc(%rsp) callq 0x274890 movq 0x58(%rsp), %rdi movq %rax, %rsi movl 0x64(%rsp), %eax movl %eax, (%rsi) callq 0x2795c0 leaq 0xdb(%rsp), %rax addq $0x7, %rax movq %rax, 0x68(%rsp) movq 0x100(%rsp), %rdi callq 0x2768f0 movq 0xb8(%rsp), %rdi movslq (%rax), %rax imulq $0x50, %rax, %rcx movslq 0xfc(%rsp), %rax addq %rcx, %rax movl %eax, 0x74(%rsp) movl %eax, 0xfc(%rsp) callq 0x274990 movq 0x68(%rsp), %rdi movq %rax, %rsi movl 0x74(%rsp), %eax movl %eax, (%rsi) callq 0x2795c0 leaq 0xdb(%rsp), %rax addq $0x8, %rax movq %rax, 0x78(%rsp) movq 0x100(%rsp), %rdi callq 0x276a10 movq 0xb8(%rsp), %rdi movslq (%rax), %rax imulq $0x48, %rax, %rcx movslq 0xfc(%rsp), %rax addq %rcx, %rax movl %eax, 0x84(%rsp) movl %eax, 0xfc(%rsp) callq 0x2743c0 movq 0x78(%rsp), %rdi movq %rax, %rsi movl 0x84(%rsp), %eax movl %eax, (%rsi) callq 0x2795c0 leaq 0xdb(%rsp), %rax addq $0x9, %rax movq %rax, 0x88(%rsp) movq 0x100(%rsp), %rdi callq 0x276b30 movq 0xb8(%rsp), %rdi movslq (%rax), %rax imulq $0x48, %rax, %rcx movslq 0xfc(%rsp), %rax addq %rcx, %rax movl %eax, 0x94(%rsp) movl %eax, 0xfc(%rsp) callq 0x2745c0 movq 0x88(%rsp), %rdi movq %rax, %rsi movl 0x94(%rsp), %eax movl %eax, (%rsi) callq 0x2795c0 leaq 0xdb(%rsp), %rax addq $0xa, %rax movq %rax, 0x98(%rsp) movq 0x100(%rsp), %rdi callq 0x276c50 movq 0xb8(%rsp), %rdi movslq (%rax), %rax imulq $0x50, %rax, %rcx movslq 0xfc(%rsp), %rax addq %rcx, %rax movl %eax, 0xa4(%rsp) movl %eax, 0xfc(%rsp) callq 0x273c40 movq 0x98(%rsp), %rdi movq %rax, %rsi movl 0xa4(%rsp), %eax movl %eax, (%rsi) callq 0x2795c0 leaq 0xdb(%rsp), %rax addq $0xb, %rax movq %rax, 0xa8(%rsp) movq 0x100(%rsp), %rdi callq 0x276d70 movq 0xb8(%rsp), %rdi movslq (%rax), %rax imulq $0x50, %rax, %rcx movslq 0xfc(%rsp), %rax addq %rcx, %rax movl %eax, 0xb4(%rsp) movl %eax, 0xfc(%rsp) callq 0x273e40 movq 0xa8(%rsp), %rdi movq %rax, %rsi movl 0xb4(%rsp), %eax movl %eax, (%rsi) callq 0x2795c0 leaq 0xdb(%rsp), %rax addq $0xc, %rax movq %rax, 0xc0(%rsp) movq 0x100(%rsp), %rdi callq 0x276e90 movq 0xb8(%rsp), %rdi movslq (%rax), %rax imulq $0xa8, %rax, %rcx movslq 0xfc(%rsp), %rax addq %rcx, %rax movl %eax, 0xcc(%rsp) movl %eax, 0xfc(%rsp) callq 0x273950 movq 0xc0(%rsp), %rdi movq %rax, %rsi movl 0xcc(%rsp), %eax movl %eax, (%rsi) callq 0x2795c0 leaq 0xdb(%rsp), %rax movq %rax, 0xe8(%rsp) movq $0xd, 0xf0(%rsp) movq 0xe8(%rsp), %rdi movq 0xf0(%rsp), %rsi callq 0x271be0 movq 0xd0(%rsp), %rax addq $0x108, %rsp # imm = 0x108 retq
_ZN6google8protobuf12_GLOBAL__N_113CalculateEndsIJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEEENS1_7TypeMapINS1_4IntTEJDpT_EEERKSO_: sub rsp, 108h mov [rsp+108h+var_50], rdi mov rax, rdi mov [rsp+108h+var_38], rax mov [rsp+108h+var_8], rsi mov [rsp+108h+var_C], 0 call _ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEEC2Ev; google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::TypeMap(void) mov rdi, [rsp+108h+var_8] call _ZNK6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetIcEERKiv; google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<char>(void) mov rdi, [rsp+108h+var_50] movsxd rcx, dword ptr [rax] shl rcx, 0 movsxd rax, [rsp+108h+var_C] add rax, rcx mov [rsp+108h+var_104], eax mov [rsp+108h+var_C], eax call _ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetIcEERiv; google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<char>(void) mov rsi, rax mov eax, [rsp+108h+var_104] mov [rsi], eax lea rdi, [rsp+108h+var_2D] call _ZN6google8protobuf12_GLOBAL__N_115ExpressionEaterC2IRiEEOT_; google::protobuf::`anonymous namespace'::ExpressionEater::ExpressionEater<int &>(int &) lea rax, [rsp+108h+var_2D] add rax, 1 mov [rsp+108h+var_100], rax mov rdi, [rsp+108h+var_8] call _ZNK6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetIS9_EERKiv; google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<std::string>(void) mov rdi, [rsp+108h+var_50] movsxd rcx, dword ptr [rax] shl rcx, 5 movsxd rax, [rsp+108h+var_C] add rax, rcx mov [rsp+108h+var_F4], eax mov [rsp+108h+var_C], eax call _ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetIS9_EERiv; google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<std::string>(void) mov rdi, [rsp+108h+var_100] mov rsi, rax mov eax, [rsp+108h+var_F4] mov [rsi], eax call _ZN6google8protobuf12_GLOBAL__N_115ExpressionEaterC2IRiEEOT_; google::protobuf::`anonymous namespace'::ExpressionEater::ExpressionEater<int &>(int &) lea rax, [rsp+108h+var_2D] add rax, 2 mov [rsp+108h+var_F0], rax mov rdi, [rsp+108h+var_8] call _ZNK6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISA_EERKiv; google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::SourceCodeInfo>(void) mov rdi, [rsp+108h+var_50] movsxd rax, dword ptr [rax] imul rcx, rax, 30h ; '0' movsxd rax, [rsp+108h+var_C] add rax, rcx mov [rsp+108h+var_E4], eax mov [rsp+108h+var_C], eax call _ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISA_EERiv; google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::SourceCodeInfo>(void) mov rdi, [rsp+108h+var_F0] mov rsi, rax mov eax, [rsp+108h+var_E4] mov [rsi], eax call _ZN6google8protobuf12_GLOBAL__N_115ExpressionEaterC2IRiEEOT_; google::protobuf::`anonymous namespace'::ExpressionEater::ExpressionEater<int &>(int &) lea rax, [rsp+108h+var_2D] add rax, 3 mov [rsp+108h+var_E0], rax mov rdi, [rsp+108h+var_8] call _ZNK6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISB_EERKiv; google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::FileDescriptorTables>(void) mov rdi, [rsp+108h+var_50] movsxd rax, dword ptr [rax] imul rcx, rax, 160h movsxd rax, [rsp+108h+var_C] add rax, rcx mov [rsp+108h+var_D4], eax mov [rsp+108h+var_C], eax call _ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISB_EERiv; google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::FileDescriptorTables>(void) mov rdi, [rsp+108h+var_E0] mov rsi, rax mov eax, [rsp+108h+var_D4] mov [rsi], eax call _ZN6google8protobuf12_GLOBAL__N_115ExpressionEaterC2IRiEEOT_; google::protobuf::`anonymous namespace'::ExpressionEater::ExpressionEater<int &>(int &) lea rax, [rsp+108h+var_2D] add rax, 4 mov [rsp+108h+var_D0], rax mov rdi, [rsp+108h+var_8] call _ZNK6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISC_EERKiv; google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::MessageOptions>(void) mov rdi, [rsp+108h+var_50] movsxd rax, dword ptr [rax] imul rcx, rax, 50h ; 'P' movsxd rax, [rsp+108h+var_C] add rax, rcx mov [rsp+108h+var_C4], eax mov [rsp+108h+var_C], eax call _ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISC_EERiv; google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::MessageOptions>(void) mov rdi, [rsp+108h+var_D0] mov rsi, rax mov eax, [rsp+108h+var_C4] mov [rsi], eax call _ZN6google8protobuf12_GLOBAL__N_115ExpressionEaterC2IRiEEOT_; google::protobuf::`anonymous namespace'::ExpressionEater::ExpressionEater<int &>(int &) lea rax, [rsp+108h+var_2D] add rax, 5 mov [rsp+108h+var_C0], rax mov rdi, [rsp+108h+var_8] call _ZNK6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISD_EERKiv; google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::FieldOptions>(void) mov rdi, [rsp+108h+var_50] movsxd rax, dword ptr [rax] imul rcx, rax, 58h ; 'X' movsxd rax, [rsp+108h+var_C] add rax, rcx mov [rsp+108h+var_B4], eax mov [rsp+108h+var_C], eax call _ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISD_EERiv; google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::FieldOptions>(void) mov rdi, [rsp+108h+var_C0] mov rsi, rax mov eax, [rsp+108h+var_B4] mov [rsi], eax call _ZN6google8protobuf12_GLOBAL__N_115ExpressionEaterC2IRiEEOT_; google::protobuf::`anonymous namespace'::ExpressionEater::ExpressionEater<int &>(int &) lea rax, [rsp+108h+var_2D] add rax, 6 mov [rsp+108h+var_B0], rax mov rdi, [rsp+108h+var_8] call _ZNK6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISE_EERKiv; google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::EnumOptions>(void) mov rdi, [rsp+108h+var_50] movsxd rax, dword ptr [rax] imul rcx, rax, 50h ; 'P' movsxd rax, [rsp+108h+var_C] add rax, rcx mov [rsp+108h+var_A4], eax mov [rsp+108h+var_C], eax call _ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISE_EERiv; google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::EnumOptions>(void) mov rdi, [rsp+108h+var_B0] mov rsi, rax mov eax, [rsp+108h+var_A4] mov [rsi], eax call _ZN6google8protobuf12_GLOBAL__N_115ExpressionEaterC2IRiEEOT_; google::protobuf::`anonymous namespace'::ExpressionEater::ExpressionEater<int &>(int &) lea rax, [rsp+108h+var_2D] add rax, 7 mov [rsp+108h+var_A0], rax mov rdi, [rsp+108h+var_8] call _ZNK6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISF_EERKiv; google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::EnumValueOptions>(void) mov rdi, [rsp+108h+var_50] movsxd rax, dword ptr [rax] imul rcx, rax, 50h ; 'P' movsxd rax, [rsp+108h+var_C] add rax, rcx mov [rsp+108h+var_94], eax mov [rsp+108h+var_C], eax call _ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISF_EERiv; google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::EnumValueOptions>(void) mov rdi, [rsp+108h+var_A0] mov rsi, rax mov eax, [rsp+108h+var_94] mov [rsi], eax call _ZN6google8protobuf12_GLOBAL__N_115ExpressionEaterC2IRiEEOT_; google::protobuf::`anonymous namespace'::ExpressionEater::ExpressionEater<int &>(int &) lea rax, [rsp+108h+var_2D] add rax, 8 mov [rsp+108h+var_90], rax mov rdi, [rsp+108h+var_8] call _ZNK6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISG_EERKiv; google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::ExtensionRangeOptions>(void) mov rdi, [rsp+108h+var_50] movsxd rax, dword ptr [rax] imul rcx, rax, 48h ; 'H' movsxd rax, [rsp+108h+var_C] add rax, rcx mov [rsp+108h+var_84], eax mov [rsp+108h+var_C], eax call _ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISG_EERiv; google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::ExtensionRangeOptions>(void) mov rdi, [rsp+108h+var_90] mov rsi, rax mov eax, [rsp+108h+var_84] mov [rsi], eax call _ZN6google8protobuf12_GLOBAL__N_115ExpressionEaterC2IRiEEOT_; google::protobuf::`anonymous namespace'::ExpressionEater::ExpressionEater<int &>(int &) lea rax, [rsp+108h+var_2D] add rax, 9 mov [rsp+108h+var_80], rax mov rdi, [rsp+108h+var_8] call _ZNK6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISH_EERKiv; google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::OneofOptions>(void) mov rdi, [rsp+108h+var_50] movsxd rax, dword ptr [rax] imul rcx, rax, 48h ; 'H' movsxd rax, [rsp+108h+var_C] add rax, rcx mov [rsp+108h+var_74], eax mov [rsp+108h+var_C], eax call _ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISH_EERiv; google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::OneofOptions>(void) mov rdi, [rsp+108h+var_80] mov rsi, rax mov eax, [rsp+108h+var_74] mov [rsi], eax call _ZN6google8protobuf12_GLOBAL__N_115ExpressionEaterC2IRiEEOT_; google::protobuf::`anonymous namespace'::ExpressionEater::ExpressionEater<int &>(int &) lea rax, [rsp+108h+var_2D] add rax, 0Ah mov [rsp+108h+var_70], rax mov rdi, [rsp+108h+var_8] call _ZNK6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISI_EERKiv; google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::ServiceOptions>(void) mov rdi, [rsp+108h+var_50] movsxd rax, dword ptr [rax] imul rcx, rax, 50h ; 'P' movsxd rax, [rsp+108h+var_C] add rax, rcx mov [rsp+108h+var_64], eax mov [rsp+108h+var_C], eax call _ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISI_EERiv; google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::ServiceOptions>(void) mov rdi, [rsp+108h+var_70] mov rsi, rax mov eax, [rsp+108h+var_64] mov [rsi], eax call _ZN6google8protobuf12_GLOBAL__N_115ExpressionEaterC2IRiEEOT_; google::protobuf::`anonymous namespace'::ExpressionEater::ExpressionEater<int &>(int &) lea rax, [rsp+108h+var_2D] add rax, 0Bh mov [rsp+108h+var_60], rax mov rdi, [rsp+108h+var_8] call _ZNK6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISJ_EERKiv; google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::MethodOptions>(void) mov rdi, [rsp+108h+var_50] movsxd rax, dword ptr [rax] imul rcx, rax, 50h ; 'P' movsxd rax, [rsp+108h+var_C] add rax, rcx mov [rsp+108h+var_54], eax mov [rsp+108h+var_C], eax call _ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISJ_EERiv; google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::MethodOptions>(void) mov rdi, [rsp+108h+var_60] mov rsi, rax mov eax, [rsp+108h+var_54] mov [rsi], eax call _ZN6google8protobuf12_GLOBAL__N_115ExpressionEaterC2IRiEEOT_; google::protobuf::`anonymous namespace'::ExpressionEater::ExpressionEater<int &>(int &) lea rax, [rsp+108h+var_2D] add rax, 0Ch mov [rsp+108h+var_48], rax mov rdi, [rsp+108h+var_8] call _ZNK6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISK_EERKiv; google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::FileOptions>(void) mov rdi, [rsp+108h+var_50] movsxd rax, dword ptr [rax] imul rcx, rax, 0A8h movsxd rax, [rsp+108h+var_C] add rax, rcx mov [rsp+108h+var_3C], eax mov [rsp+108h+var_C], eax call _ZN6google8protobuf12_GLOBAL__N_17TypeMapINS1_4IntTEJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE3GetISK_EERiv; google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::FileOptions>(void) mov rdi, [rsp+108h+var_48] mov rsi, rax mov eax, [rsp+108h+var_3C] mov [rsi], eax call _ZN6google8protobuf12_GLOBAL__N_115ExpressionEaterC2IRiEEOT_; google::protobuf::`anonymous namespace'::ExpressionEater::ExpressionEater<int &>(int &) lea rax, [rsp+108h+var_2D] mov [rsp+108h+var_20], rax mov [rsp+108h+var_18], 0Dh mov rdi, [rsp+108h+var_20] mov rsi, [rsp+108h+var_18] call _ZN6google8protobuf12_GLOBAL__N_14FoldESt16initializer_listINS1_15ExpressionEaterEE; google::protobuf::`anonymous namespace'::Fold(std::initializer_list<google::protobuf::`anonymous namespace'::ExpressionEater>) mov rax, [rsp+108h+var_38] add rsp, 108h retn
long long google::protobuf::`anonymous namespace'::CalculateEnds<char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>( long long a1, long long a2) { _DWORD *v2; // rax _DWORD *v3; // rax _DWORD *v4; // rax _DWORD *v5; // rax _DWORD *v6; // rax _DWORD *v7; // rax _DWORD *v8; // rax _DWORD *v9; // rax _DWORD *v10; // rax _DWORD *v11; // rax _DWORD *v12; // rax _DWORD *v13; // rax int v15; // [rsp+14h] [rbp-F4h] int v16; // [rsp+24h] [rbp-E4h] int v17; // [rsp+34h] [rbp-D4h] int v18; // [rsp+44h] [rbp-C4h] int v19; // [rsp+54h] [rbp-B4h] int v20; // [rsp+64h] [rbp-A4h] int v21; // [rsp+74h] [rbp-94h] int v22; // [rsp+84h] [rbp-84h] int v23; // [rsp+94h] [rbp-74h] int v24; // [rsp+A4h] [rbp-64h] int v25; // [rsp+B4h] [rbp-54h] int v26; // [rsp+CCh] [rbp-3Ch] char v27; // [rsp+DBh] [rbp-2Dh] BYREF int v28; // [rsp+DCh] [rbp-2Ch] BYREF __int128 v29; // [rsp+E0h] [rbp-28h] BYREF long long v30; // [rsp+F0h] [rbp-18h] int v31; // [rsp+FCh] [rbp-Ch] long long v32; // [rsp+100h] [rbp-8h] v32 = a2; v31 = 0; google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::TypeMap(a1); v31 = *(_DWORD *)google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<char>(a2); *(_DWORD *)google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<char>(a1) = v31; google::protobuf::`anonymous namespace'::ExpressionEater::ExpressionEater<int &>(&v27); v2 = (_DWORD *)google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<std::string>(v32); v31 += 32 * *v2; v15 = v31; *(_DWORD *)google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<std::string>(a1) = v15; google::protobuf::`anonymous namespace'::ExpressionEater::ExpressionEater<int &>(&v28); v3 = (_DWORD *)google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::SourceCodeInfo>(v32); v31 += 48 * *v3; v16 = v31; *(_DWORD *)google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::SourceCodeInfo>(a1) = v16; google::protobuf::`anonymous namespace'::ExpressionEater::ExpressionEater<int &>((char *)&v28 + 1); v4 = (_DWORD *)google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::FileDescriptorTables>(v32); v31 += 352 * *v4; v17 = v31; *(_DWORD *)google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::FileDescriptorTables>(a1) = v17; google::protobuf::`anonymous namespace'::ExpressionEater::ExpressionEater<int &>((char *)&v28 + 2); v5 = (_DWORD *)google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::MessageOptions>(v32); v31 += 80 * *v5; v18 = v31; *(_DWORD *)google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::MessageOptions>(a1) = v18; google::protobuf::`anonymous namespace'::ExpressionEater::ExpressionEater<int &>((char *)&v28 + 3); v6 = (_DWORD *)google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::FieldOptions>(v32); v31 += 88 * *v6; v19 = v31; *(_DWORD *)google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::FieldOptions>(a1) = v19; google::protobuf::`anonymous namespace'::ExpressionEater::ExpressionEater<int &>(&v29); v7 = (_DWORD *)google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::EnumOptions>(v32); v31 += 80 * *v7; v20 = v31; *(_DWORD *)google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::EnumOptions>(a1) = v20; google::protobuf::`anonymous namespace'::ExpressionEater::ExpressionEater<int &>((char *)&v29 + 1); v8 = (_DWORD *)google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::EnumValueOptions>(v32); v31 += 80 * *v8; v21 = v31; *(_DWORD *)google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::EnumValueOptions>(a1) = v21; google::protobuf::`anonymous namespace'::ExpressionEater::ExpressionEater<int &>((char *)&v29 + 2); v9 = (_DWORD *)google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::ExtensionRangeOptions>(v32); v31 += 72 * *v9; v22 = v31; *(_DWORD *)google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::ExtensionRangeOptions>(a1) = v22; google::protobuf::`anonymous namespace'::ExpressionEater::ExpressionEater<int &>((char *)&v29 + 3); v10 = (_DWORD *)google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::OneofOptions>(v32); v31 += 72 * *v10; v23 = v31; *(_DWORD *)google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::OneofOptions>(a1) = v23; google::protobuf::`anonymous namespace'::ExpressionEater::ExpressionEater<int &>((char *)&v29 + 4); v11 = (_DWORD *)google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::ServiceOptions>(v32); v31 += 80 * *v11; v24 = v31; *(_DWORD *)google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::ServiceOptions>(a1) = v24; google::protobuf::`anonymous namespace'::ExpressionEater::ExpressionEater<int &>((char *)&v29 + 5); v12 = (_DWORD *)google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::MethodOptions>(v32); v31 += 80 * *v12; v25 = v31; *(_DWORD *)google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::MethodOptions>(a1) = v25; google::protobuf::`anonymous namespace'::ExpressionEater::ExpressionEater<int &>((char *)&v29 + 6); v13 = (_DWORD *)google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::FileOptions>(v32); v31 += 168 * *v13; v26 = v31; *(_DWORD *)google::protobuf::`anonymous namespace'::TypeMap<google::protobuf::`anonymous namespace'::IntT,char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::Get<google::protobuf::FileOptions>(a1) = v26; google::protobuf::`anonymous namespace'::ExpressionEater::ExpressionEater<int &>((char *)&v29 + 7); *((_QWORD *)&v29 + 1) = &v27; v30 = 13LL; google::protobuf::`anonymous namespace'::Fold(); return a1; }
Next: SUB RSP,0x98 MOV qword ptr [RSP + 0x88],RDI MOV RAX,qword ptr [RSP + 0x88] MOV qword ptr [RSP + 0x20],RAX LAB_0027889c: XOR EAX,EAX TEST AL,0x1 JNZ 0x002788a7 JMP 0x00278949 LAB_002788a7: MOV RAX,qword ptr [RSP + 0x20] MOV EAX,dword ptr [RAX + 0x1c] MOV byte ptr [RSP + 0x4f],0x0 CMP EAX,0x10 JLE 0x002788bb JMP 0x0027890b LAB_002788bb: LEA RDX,[0x4e3df8] LEA RDI,[RSP + 0x50] MOV qword ptr [RSP + 0x10],RDI MOV ESI,0x3 MOV ECX,0x9f CALL 0x0029a670 MOV RDI,qword ptr [RSP + 0x10] MOV byte ptr [RSP + 0x4f],0x1 LAB_002788e5: LEA RSI,[0x4e3e62] CALL 0x00299f30 MOV qword ptr [RSP + 0x18],RAX JMP 0x002788f8 LAB_002788f8: MOV RSI,qword ptr [RSP + 0x18] LEA RDI,[RSP + 0x3b] CALL 0x0029a0e0 LAB_00278907: JMP 0x00278909 LAB_00278909: JMP 0x0027890b LAB_0027890b: TEST byte ptr [RSP + 0x4f],0x1 JNZ 0x00278914 JMP 0x0027891e LAB_00278914: LEA RDI,[RSP + 0x50] CALL 0x0029a6b0 LAB_0027891e: JMP 0x0027889c LAB_00278949: MOV RDI,qword ptr [RSP + 0x20] XOR ESI,ESI MOV EDX,0xffffffff CALL 0x0027a9d0 MOV qword ptr [RSP + 0x30],RAX CMP qword ptr [RSP + 0x30],0x0 JNZ 0x00278986 MOV RDI,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RDI + 0x8] MOV qword ptr [RDI],RAX CALL 0x0027ade0 MOV qword ptr [RSP + 0x90],0x0 JMP 0x002789e3 LAB_00278986: MOV RSI,qword ptr [RSP + 0x20] MOV RCX,qword ptr [RSI + 0x8] MOV RAX,qword ptr [RSP + 0x30] SUB RCX,RAX MOVSXD RAX,dword ptr [RSI + 0x1c] SUB RAX,RCX MOV dword ptr [RSI + 0x1c],EAX MOV RAX,qword ptr [RSI + 0x8] MOV qword ptr [RSP + 0x8],RAX MOV dword ptr [RSP + 0x2c],0x0 ADD RSI,0x1c LEA RDI,[RSP + 0x2c] CALL 0x0018e5f0 MOV RCX,qword ptr [RSP + 0x8] MOV RDX,RAX MOV RAX,qword ptr [RSP + 0x20] MOVSXD RDX,dword ptr [RDX] ADD RCX,RDX MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x90],RAX LAB_002789e3: MOV RAX,qword ptr [RSP + 0x90] ADD RSP,0x98 RET
/* WARNING: Removing unreachable block (ram,0x002788a7) */ /* WARNING: Removing unreachable block (ram,0x002788bb) */ /* WARNING: Removing unreachable block (ram,0x002788b9) */ /* WARNING: Removing unreachable block (ram,0x0027890b) */ /* WARNING: Removing unreachable block (ram,0x00278914) */ /* WARNING: Removing unreachable block (ram,0x00278912) */ /* WARNING: Removing unreachable block (ram,0x0027891e) */ /* google::protobuf::internal::EpsCopyInputStream::Next() */ long __thiscall google::protobuf::internal::EpsCopyInputStream::Next(EpsCopyInputStream *this) { long lVar1; int *piVar2; int local_6c; long local_68; EpsCopyInputStream *local_10; long local_8; local_10 = this; local_68 = NextBuffer(this,0,-1); if (local_68 == 0) { *(int8 *)this = *(int8 *)(this + 8); SetEndOfStream(this); local_8 = 0; } else { *(int *)(this + 0x1c) = *(int *)(this + 0x1c) - ((int)*(int8 *)(this + 8) - (int)local_68) ; lVar1 = *(long *)(this + 8); local_6c = 0; piVar2 = std::min<int>(&local_6c,(int *)(this + 0x1c)); *(long *)this = lVar1 + *piVar2; local_8 = local_68; } return local_8; }
60,362
ma_update_status
eloqsql/storage/maria/ma_state.c
void _ma_update_status(void* param) { MARIA_HA *info=(MARIA_HA*) param; /* Because someone may have closed the table we point at, we only update the state if its our own state. This isn't a problem as we are always pointing at our own lock or at a read lock. (This is enforced by thr_multi_lock.c) */ if (info->state == &info->state_save) { MARIA_SHARE *share= info->s; #ifndef DBUG_OFF DBUG_PRINT("info",("updating status: key_file: %ld data_file: %ld", (long) info->state->key_file_length, (long) info->state->data_file_length)); if (info->state->key_file_length < share->state.state.key_file_length || info->state->data_file_length < share->state.state.data_file_length) DBUG_PRINT("warning",("old info: key_file: %ld data_file: %ld", (long) share->state.state.key_file_length, (long) share->state.state.data_file_length)); #endif /* we are going to modify the state without lock's log, this would break recovery if done with a transactional table. */ DBUG_ASSERT(!info->s->base.born_transactional); share->state.state= *info->state; info->state= &share->state.state; #ifdef HAVE_QUERY_CACHE DBUG_PRINT("info", ("invalidator... '%s' (status update)", info->s->data_file_name.str)); DBUG_ASSERT(info->s->chst_invalidator != NULL); (*info->s->chst_invalidator)((const char *)info->s->data_file_name.str); #endif } info->append_insert_at_end= 0; }
O0
c
ma_update_status: 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 0x20(%rax), %rax movq -0x10(%rbp), %rcx addq $0x28, %rcx cmpq %rcx, %rax jne 0x4a894 movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x18(%rbp) jmp 0x4a846 movq -0x18(%rbp), %rdi addq $0x18, %rdi movq -0x10(%rbp), %rax movq 0x20(%rax), %rsi movl $0x38, %edx callq 0x2a090 movq -0x18(%rbp), %rcx addq $0x18, %rcx movq -0x10(%rbp), %rax movq %rcx, 0x20(%rax) jmp 0x4a872 jmp 0x4a874 jmp 0x4a876 movq -0x10(%rbp), %rax movq (%rax), %rax movq 0x6f8(%rax), %rax movq -0x10(%rbp), %rcx movq (%rcx), %rcx movq 0x5c0(%rcx), %rdi callq *%rax movq -0x10(%rbp), %rax movb $0x0, 0x681(%rax) addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_ma_update_status: 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+20h] mov rcx, [rbp+var_10] add rcx, 28h ; '(' cmp rax, rcx jnz short loc_4A894 mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_18], rax jmp short $+2 loc_4A846: mov rdi, [rbp+var_18] add rdi, 18h mov rax, [rbp+var_10] mov rsi, [rax+20h] mov edx, 38h ; '8' call _memcpy mov rcx, [rbp+var_18] add rcx, 18h mov rax, [rbp+var_10] mov [rax+20h], rcx jmp short $+2 loc_4A872: jmp short $+2 loc_4A874: jmp short $+2 loc_4A876: mov rax, [rbp+var_10] mov rax, [rax] mov rax, [rax+6F8h] mov rcx, [rbp+var_10] mov rcx, [rcx] mov rdi, [rcx+5C0h] call rax loc_4A894: mov rax, [rbp+var_10] mov byte ptr [rax+681h], 0 add rsp, 20h pop rbp retn
_QWORD * ma_update_status(_QWORD *a1) { _QWORD *result; // rax long long v2; // [rsp+8h] [rbp-18h] if ( (_QWORD *)a1[4] == a1 + 5 ) { v2 = *a1; memcpy(*a1 + 24LL, a1[4], 56LL); a1[4] = v2 + 24; (*(void ( **)(_QWORD))(*a1 + 1784LL))(*(_QWORD *)(*a1 + 1472LL)); } result = a1; *((_BYTE *)a1 + 1665) = 0; return result; }
_ma_update_status: 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 + 0x20] MOV RCX,qword ptr [RBP + -0x10] ADD RCX,0x28 CMP RAX,RCX JNZ 0x0014a894 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x18],RAX JMP 0x0014a846 LAB_0014a846: MOV RDI,qword ptr [RBP + -0x18] ADD RDI,0x18 MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX + 0x20] MOV EDX,0x38 CALL 0x0012a090 MOV RCX,qword ptr [RBP + -0x18] ADD RCX,0x18 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x20],RCX JMP 0x0014a872 LAB_0014a872: JMP 0x0014a874 LAB_0014a874: JMP 0x0014a876 LAB_0014a876: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x6f8] MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX] MOV RDI,qword ptr [RCX + 0x5c0] CALL RAX LAB_0014a894: MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x681],0x0 ADD RSP,0x20 POP RBP RET
void _ma_update_status(long *param_1) { long lVar1; if ((long *)param_1[4] == param_1 + 5) { lVar1 = *param_1; memcpy((void *)(lVar1 + 0x18),(void *)param_1[4],0x38); param_1[4] = lVar1 + 0x18; (**(code **)(*param_1 + 0x6f8))(*(int8 *)(*param_1 + 0x5c0)); } *(int1 *)((long)param_1 + 0x681) = 0; return; }
60,363
maria_page_get_lsn
eloqsql/storage/maria/ma_blockrec.c
TRANSLOG_ADDRESS maria_page_get_lsn(uchar *page, pgcache_page_no_t page_no __attribute__((unused)), uchar* data_ptr __attribute__((unused))) { #ifndef DBUG_OFF const MARIA_SHARE *share= (MARIA_SHARE*)data_ptr; DBUG_ASSERT(share->page_type == PAGECACHE_LSN_PAGE && share->now_transactional); #endif return lsn_korr(page); }
O3
c
maria_page_get_lsn: pushq %rbp movq %rsp, %rbp movzwl (%rdi), %eax shlq $0x20, %rax movzbl 0x2(%rdi), %ecx shlq $0x30, %rcx orq %rax, %rcx movl 0x3(%rdi), %eax orq %rcx, %rax popq %rbp retq
maria_page_get_lsn: push rbp mov rbp, rsp movzx eax, word ptr [rdi] shl rax, 20h movzx ecx, byte ptr [rdi+2] shl rcx, 30h or rcx, rax mov eax, [rdi+3] or rax, rcx pop rbp retn
unsigned long long maria_page_get_lsn(unsigned __int16 *a1) { return ((unsigned long long)*a1 << 32) | ((unsigned long long)*((unsigned __int8 *)a1 + 2) << 48) | *(unsigned int *)((char *)a1 + 3); }
maria_page_get_lsn: PUSH RBP MOV RBP,RSP MOVZX EAX,word ptr [RDI] SHL RAX,0x20 MOVZX ECX,byte ptr [RDI + 0x2] SHL RCX,0x30 OR RCX,RAX MOV EAX,dword ptr [RDI + 0x3] OR RAX,RCX POP RBP RET
ulong maria_page_get_lsn(ushort *param_1) { return (ulong)*(uint *)((long)param_1 + 3) | (ulong)(byte)param_1[1] << 0x30 | (ulong)*param_1 << 0x20; }
60,364
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::end_object()
monkey531[P]llama/common/json.hpp
bool end_object() { JSON_ASSERT(!ref_stack.empty()); JSON_ASSERT(ref_stack.back()->is_object()); ref_stack.back()->set_parents(); ref_stack.pop_back(); return true; }
O2
cpp
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::end_object(): pushq %rax movq 0x10(%rdi), %rax cmpq %rax, 0x8(%rdi) je 0x452c6 movq -0x8(%rax), %rcx cmpb $0x1, (%rcx) jne 0x452e2 addq $-0x8, %rax movq %rax, 0x10(%rdi) movb $0x1, %al popq %rcx retq leaq 0x6c919(%rip), %rdi # 0xb1be6 leaq 0x66e6c(%rip), %rdx # 0xac140 leaq 0x6d905(%rip), %rcx # 0xb2be0 movl $0x1aeb, %esi # imm = 0x1AEB jmp 0x452fc leaq 0x6c8fd(%rip), %rdi # 0xb1be6 leaq 0x66e50(%rip), %rdx # 0xac140 leaq 0x6d897(%rip), %rcx # 0xb2b8e movl $0x1aec, %esi # imm = 0x1AEC xorl %eax, %eax callq 0x24e90 nop
_ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE10end_objectEv: push rax mov rax, [rdi+10h] cmp [rdi+8], rax jz short loc_452C6 mov rcx, [rax-8] cmp byte ptr [rcx], 1 jnz short loc_452E2 add rax, 0FFFFFFFFFFFFFFF8h mov [rdi+10h], rax mov al, 1 pop rcx retn loc_452C6: lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aRefStackEmpty; "!ref_stack.empty()" mov esi, 1AEBh jmp short loc_452FC loc_452E2: lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aRefStackBackIs+20h; "ref_stack.back()->is_object()" mov esi, 1AECh loc_452FC: xor eax, eax call _ggml_abort nop
char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::end_object( long long a1) { long long v1; // rax long long v3; // rsi v1 = *(_QWORD *)(a1 + 16); if ( *(_QWORD *)(a1 + 8) == v1 ) { v3 = 6891LL; ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 6891LL, "GGML_ASSERT(%s) failed", "!ref_stack.empty()"); } else { if ( **(_BYTE **)(v1 - 8) == 1 ) { *(_QWORD *)(a1 + 16) = v1 - 8; return 1; } v3 = 6892LL; ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 6892LL, "GGML_ASSERT(%s) failed", "ref_stack.back()->is_object()"); } return nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::key( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", v3); }
end_object: PUSH RAX MOV RAX,qword ptr [RDI + 0x10] CMP qword ptr [RDI + 0x8],RAX JZ 0x001452c6 MOV RCX,qword ptr [RAX + -0x8] CMP byte ptr [RCX],0x1 JNZ 0x001452e2 ADD RAX,-0x8 MOV qword ptr [RDI + 0x10],RAX MOV AL,0x1 POP RCX RET LAB_001452c6: LEA RDI,[0x1b1be6] LEA RDX,[0x1ac140] LEA RCX,[0x1b2be0] MOV ESI,0x1aeb JMP 0x001452fc LAB_001452e2: LEA RDI,[0x1b1be6] LEA RDX,[0x1ac140] LEA RCX,[0x1b2b8e] MOV ESI,0x1aec LAB_001452fc: XOR EAX,EAX CALL 0x00124e90
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::end_object() */ int8 __thiscall nlohmann::json_abi_v3_11_3::detail:: json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::end_object(json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *this) { long lVar1; char *pcVar2; int8 uVar3; lVar1 = *(long *)(this + 0x10); if (*(long *)(this + 8) == lVar1) { pcVar2 = "!ref_stack.empty()"; uVar3 = 0x1aeb; } else { if (**(char **)(lVar1 + -8) == '\x01') { *(long *)(this + 0x10) = lVar1 + -8; return CONCAT71((int7)((ulong)(lVar1 + -8) >> 8),1); } pcVar2 = "ref_stack.back()->is_object()"; uVar3 = 0x1aec; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",uVar3, "GGML_ASSERT(%s) failed",pcVar2); }
60,365
lf_hash_insert
eloqsql/mysys/lf_hash.cc
int lf_hash_insert(LF_HASH *hash, LF_PINS *pins, const void *data) { int csize, bucket, hashnr; LF_SLIST *node, **el; node= (LF_SLIST *)lf_alloc_new(pins); if (unlikely(!node)) return -1; hash->initializer(hash, node + 1, data); node->key= hash_key(hash, (uchar *)(node+1), &node->keylen); hashnr= hash->hash_function(hash->charset, node->key, node->keylen) & INT_MAX32; bucket= hashnr % hash->size; el= (LF_SLIST **)lf_dynarray_lvalue(&hash->array, bucket); if (unlikely(!el)) return -1; if (*el == NULL && unlikely(initialize_bucket(hash, el, bucket, pins))) return -1; node->hashnr= my_reverse_bits(hashnr) | 1; /* normal node */ if (l_insert(el, hash->charset, node, pins, hash->flags)) { lf_alloc_free(pins, node); return 1; } csize= hash->size; if ((my_atomic_add32(&hash->count, 1)+1.0) / csize > MAX_LOAD) my_atomic_cas32(&hash->size, &csize, csize*2); return 0; }
O3
cpp
lf_hash_insert: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdx, %r15 movq %rsi, %r14 movq %rdi, %rbx movq %rsi, %rdi callq 0x280ab pushq $-0x1 popq %rdx testq %rax, %rax je 0x24e2e movq %rax, %r12 movq %r14, -0x30(%rbp) leaq 0x20(%rax), %r14 movq %rbx, %rdi movq %r14, %rsi movq %r15, %rdx callq *0x98(%rbx) movq %r12, %r15 addq $0x10, %r15 movq 0x90(%rbx), %rax testq %rax, %rax je 0x24d07 movq %r14, %rdi movq %r15, %rsi xorl %edx, %edx callq *%rax movq %rax, %r14 movq (%r15), %rdx jmp 0x24d19 movl 0xb4(%rbx), %edx movq %rdx, (%r15) movl 0xb0(%rbx), %eax addq %rax, %r14 movq %r12, -0x38(%rbp) movq %r14, 0x8(%r12) movq 0xa8(%rbx), %rdi movq %r14, %rsi callq *0xa0(%rbx) movl %eax, %r13d movl %eax, %r12d andl $0x7fffffff, %r12d # imm = 0x7FFFFFFF movl %r12d, %eax xorl %edx, %edx idivl 0xc0(%rbx) movl %edx, %r15d movq %rbx, %rdi movl %edx, %esi callq 0x24b54 testq %rax, %rax je 0x24e5e movq %rax, %r14 cmpq $0x0, (%rax) je 0x24e3f movl $0xff, %eax movl %r13d, %ecx andl %eax, %ecx leaq 0x3cf92(%rip), %rdx # 0x61d10 movzbl (%rdx,%rcx), %ecx shll $0x18, %ecx movl %r13d, %esi shrl $0x8, %esi andl %eax, %esi movzbl (%rdx,%rsi), %esi shll $0x10, %esi orl %ecx, %esi shrl $0x10, %r13d andl %eax, %r13d movzbl (%rdx,%r13), %eax shll $0x8, %eax orl %esi, %eax shrl $0x18, %r12d movzbl (%rdx,%r12), %ecx orl %eax, %ecx orl $0x1, %ecx movq -0x38(%rbp), %r15 movl %ecx, 0x18(%r15) movq 0xa8(%rbx), %rsi movl 0xbc(%rbx), %r8d movq %r14, %rdi movq %r15, %rdx movq -0x30(%rbp), %r14 movq %r14, %rcx callq 0x28559 testq %rax, %rax je 0x24df2 movq %r14, %rdi movq %r15, %rsi callq 0x27f83 pushq $0x1 popq %rdx jmp 0x24e2e movl 0xc0(%rbx), %eax pushq $0x1 popq %rcx lock xaddl %ecx, 0xc4(%rbx) cvtsi2sd %ecx, %xmm0 movsd 0x382c9(%rip), %xmm1 # 0x5d0d8 addsd %xmm1, %xmm0 cvtsi2sd %eax, %xmm2 divsd %xmm2, %xmm0 xorl %edx, %edx ucomisd %xmm1, %xmm0 jbe 0x24e2e leal (%rax,%rax), %ecx lock cmpxchgl %ecx, 0xc0(%rbx) movl %edx, %eax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rbx, %rdi movq %r14, %rsi movl %r15d, %edx movq -0x30(%rbp), %rcx callq 0x24e62 pushq $-0x1 popq %rdx testl %eax, %eax je 0x24d6d jmp 0x24e2e pushq $-0x1 jmp 0x24def
lf_hash_insert: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r15, rdx mov r14, rsi mov rbx, rdi mov rdi, rsi call lf_alloc_new push 0FFFFFFFFFFFFFFFFh pop rdx test rax, rax jz loc_24E2E mov r12, rax mov [rbp+var_30], r14 lea r14, [rax+20h] mov rdi, rbx mov rsi, r14 mov rdx, r15 call qword ptr [rbx+98h] mov r15, r12 add r15, 10h mov rax, [rbx+90h] test rax, rax jz short loc_24D07 mov rdi, r14 mov rsi, r15 xor edx, edx call rax mov r14, rax mov rdx, [r15] jmp short loc_24D19 loc_24D07: mov edx, [rbx+0B4h] mov [r15], rdx mov eax, [rbx+0B0h] add r14, rax loc_24D19: mov [rbp+var_38], r12 mov [r12+8], r14 mov rdi, [rbx+0A8h] mov rsi, r14 call qword ptr [rbx+0A0h] mov r13d, eax mov r12d, eax and r12d, 7FFFFFFFh mov eax, r12d xor edx, edx idiv dword ptr [rbx+0C0h] mov r15d, edx mov rdi, rbx mov esi, edx call lf_dynarray_lvalue test rax, rax jz loc_24E5E mov r14, rax cmp qword ptr [rax], 0 jz loc_24E3F loc_24D6D: mov eax, 0FFh mov ecx, r13d and ecx, eax lea rdx, _my_bits_reverse_table movzx ecx, byte ptr [rdx+rcx] shl ecx, 18h mov esi, r13d shr esi, 8 and esi, eax movzx esi, byte ptr [rdx+rsi] shl esi, 10h or esi, ecx shr r13d, 10h and r13d, eax movzx eax, byte ptr [rdx+r13] shl eax, 8 or eax, esi shr r12d, 18h movzx ecx, byte ptr [rdx+r12] or ecx, eax or ecx, 1 mov r15, [rbp+var_38] mov [r15+18h], ecx mov rsi, [rbx+0A8h] mov r8d, [rbx+0BCh] mov rdi, r14 mov rdx, r15 mov r14, [rbp+var_30] mov rcx, r14 call _ZL8l_insertPP8LF_SLISTPK15charset_info_stS0_P7LF_PINSj; l_insert(LF_SLIST **,charset_info_st const*,LF_SLIST *,LF_PINS *,uint) test rax, rax jz short loc_24DF2 mov rdi, r14 mov rsi, r15 call lf_pinbox_free push 1 loc_24DEF: pop rdx jmp short loc_24E2E loc_24DF2: mov eax, [rbx+0C0h] push 1 pop rcx lock xadd [rbx+0C4h], ecx cvtsi2sd xmm0, ecx movsd xmm1, cs:qword_5D0D8 addsd xmm0, xmm1 cvtsi2sd xmm2, eax divsd xmm0, xmm2 xor edx, edx ucomisd xmm0, xmm1 jbe short loc_24E2E lea ecx, [rax+rax] lock cmpxchg [rbx+0C0h], ecx loc_24E2E: mov eax, edx add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_24E3F: mov rdi, rbx mov rsi, r14 mov edx, r15d mov rcx, [rbp+var_30] call _ZL17initialize_bucketP10st_lf_hashPP8LF_SLISTjP7LF_PINS; initialize_bucket(st_lf_hash *,LF_SLIST **,uint,LF_PINS *) push 0FFFFFFFFFFFFFFFFh pop rdx test eax, eax jz loc_24D6D jmp short loc_24E2E loc_24E5E: push 0FFFFFFFFFFFFFFFFh jmp short loc_24DEF
long long lf_hash_insert(long long a1, long long a2, long long a3) { long long v4; // rax unsigned int v5; // edx long long v6; // r12 long long v7; // r14 long long *v8; // r15 long long ( *v9)(long long, long long, _QWORD); // rax long long v10; // r14 long long v11; // rdx int v12; // r13d unsigned int v13; // r15d _QWORD *v14; // rax _QWORD *v15; // r14 signed __int32 v16; // eax int v18; // eax v4 = lf_alloc_new(a2); v5 = -1; if ( v4 ) { v6 = v4; v7 = v4 + 32; (*(void ( **)(long long, long long, long long))(a1 + 152))(a1, v4 + 32, a3); v8 = (long long *)(v6 + 16); v9 = *(long long ( **)(long long, long long, _QWORD))(a1 + 144); if ( v9 ) { v10 = v9(v7, v6 + 16, 0LL); v11 = *v8; } else { v11 = *(unsigned int *)(a1 + 180); *v8 = v11; v10 = *(unsigned int *)(a1 + 176) + v7; } *(_QWORD *)(v6 + 8) = v10; v12 = (*(long long ( **)(_QWORD, long long, long long))(a1 + 160))(*(_QWORD *)(a1 + 168), v10, v11); v13 = (v12 & 0x7FFFFFFFu) % (long long)*(int *)(a1 + 192); v14 = (_QWORD *)lf_dynarray_lvalue(a1, v13); if ( !v14 ) return (unsigned int)-1; v15 = v14; if ( !*v14 ) { v18 = initialize_bucket(a1, v14, v13, a2); v5 = -1; if ( v18 ) return v5; } *(_DWORD *)(v6 + 24) = (my_bits_reverse_table[(unsigned __int8)v12] << 24) | (my_bits_reverse_table[BYTE1(v12)] << 16) | (my_bits_reverse_table[BYTE2(v12)] << 8) | my_bits_reverse_table[(v12 & 0x7FFFFFFFu) >> 24] | 1; if ( l_insert(v15, *(_QWORD *)(a1 + 168), v6, a2, *(unsigned int *)(a1 + 188)) ) { lf_pinbox_free(a2, v6); return 1; } v16 = *(_DWORD *)(a1 + 192); v5 = 0; if ( ((double)_InterlockedExchangeAdd((volatile signed __int32 *)(a1 + 196), 1u) + 1.0) / (double)v16 > 1.0 ) _InterlockedCompareExchange((volatile signed __int32 *)(a1 + 192), 2 * v16, v16); } return v5; }
lf_hash_insert: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R15,RDX MOV R14,RSI MOV RBX,RDI MOV RDI,RSI CALL 0x001280ab PUSH -0x1 POP RDX TEST RAX,RAX JZ 0x00124e2e MOV R12,RAX MOV qword ptr [RBP + -0x30],R14 LEA R14,[RAX + 0x20] MOV RDI,RBX MOV RSI,R14 MOV RDX,R15 CALL qword ptr [RBX + 0x98] MOV R15,R12 ADD R15,0x10 MOV RAX,qword ptr [RBX + 0x90] TEST RAX,RAX JZ 0x00124d07 MOV RDI,R14 MOV RSI,R15 XOR EDX,EDX CALL RAX MOV R14,RAX MOV RDX,qword ptr [R15] JMP 0x00124d19 LAB_00124d07: MOV EDX,dword ptr [RBX + 0xb4] MOV qword ptr [R15],RDX MOV EAX,dword ptr [RBX + 0xb0] ADD R14,RAX LAB_00124d19: MOV qword ptr [RBP + -0x38],R12 MOV qword ptr [R12 + 0x8],R14 MOV RDI,qword ptr [RBX + 0xa8] MOV RSI,R14 CALL qword ptr [RBX + 0xa0] MOV R13D,EAX MOV R12D,EAX AND R12D,0x7fffffff MOV EAX,R12D XOR EDX,EDX IDIV dword ptr [RBX + 0xc0] MOV R15D,EDX MOV RDI,RBX MOV ESI,EDX CALL 0x00124b54 TEST RAX,RAX JZ 0x00124e5e MOV R14,RAX CMP qword ptr [RAX],0x0 JZ 0x00124e3f LAB_00124d6d: MOV EAX,0xff MOV ECX,R13D AND ECX,EAX LEA RDX,[0x161d10] MOVZX ECX,byte ptr [RDX + RCX*0x1] SHL ECX,0x18 MOV ESI,R13D SHR ESI,0x8 AND ESI,EAX MOVZX ESI,byte ptr [RDX + RSI*0x1] SHL ESI,0x10 OR ESI,ECX SHR R13D,0x10 AND R13D,EAX MOVZX EAX,byte ptr [RDX + R13*0x1] SHL EAX,0x8 OR EAX,ESI SHR R12D,0x18 MOVZX ECX,byte ptr [RDX + R12*0x1] OR ECX,EAX OR ECX,0x1 MOV R15,qword ptr [RBP + -0x38] MOV dword ptr [R15 + 0x18],ECX MOV RSI,qword ptr [RBX + 0xa8] MOV R8D,dword ptr [RBX + 0xbc] MOV RDI,R14 MOV RDX,R15 MOV R14,qword ptr [RBP + -0x30] MOV RCX,R14 CALL 0x00128559 TEST RAX,RAX JZ 0x00124df2 MOV RDI,R14 MOV RSI,R15 CALL 0x00127f83 PUSH 0x1 LAB_00124def: POP RDX JMP 0x00124e2e LAB_00124df2: MOV EAX,dword ptr [RBX + 0xc0] PUSH 0x1 POP RCX XADD.LOCK dword ptr [RBX + 0xc4],ECX CVTSI2SD XMM0,ECX MOVSD XMM1,qword ptr [0x0015d0d8] ADDSD XMM0,XMM1 CVTSI2SD XMM2,EAX DIVSD XMM0,XMM2 XOR EDX,EDX UCOMISD XMM0,XMM1 JBE 0x00124e2e LEA ECX,[RAX + RAX*0x1] CMPXCHG.LOCK dword ptr [RBX + 0xc0],ECX LAB_00124e2e: MOV EAX,EDX ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00124e3f: MOV RDI,RBX MOV RSI,R14 MOV EDX,R15D MOV RCX,qword ptr [RBP + -0x30] CALL 0x00124e62 PUSH -0x1 POP RDX TEST EAX,EAX JZ 0x00124d6d JMP 0x00124e2e LAB_00124e5e: PUSH -0x1 JMP 0x00124def
int4 lf_hash_insert(st_lf_hash *param_1,LF_PINS *param_2,int8 param_3) { st_lf_hash *psVar1; int iVar2; uint uVar3; int iVar4; LF_SLIST *pLVar5; LF_SLIST *pLVar6; LF_SLIST **ppLVar7; long lVar8; int4 uVar9; ulong uVar10; LF_SLIST *pLVar11; pLVar5 = (LF_SLIST *)lf_alloc_new(param_2); uVar9 = 0xffffffff; if (pLVar5 != (LF_SLIST *)0x0) { pLVar6 = pLVar5 + 0x20; (**(code **)(param_1 + 0x98))(param_1,pLVar6,param_3); pLVar11 = pLVar5 + 0x10; if (*(code **)(param_1 + 0x90) == (code *)0x0) { uVar10 = (ulong)*(uint *)(param_1 + 0xb4); *(ulong *)pLVar11 = uVar10; pLVar6 = pLVar6 + *(uint *)(param_1 + 0xb0); } else { pLVar6 = (LF_SLIST *)(**(code **)(param_1 + 0x90))(pLVar6,pLVar11,0); uVar10 = *(ulong *)pLVar11; } *(LF_SLIST **)(pLVar5 + 8) = pLVar6; uVar3 = (**(code **)(param_1 + 0xa0))(*(int8 *)(param_1 + 0xa8),pLVar6,uVar10); uVar10 = (long)(ulong)(uVar3 & 0x7fffffff) % (long)*(int *)(param_1 + 0xc0); ppLVar7 = (LF_SLIST **)lf_dynarray_lvalue(param_1,uVar10 & 0xffffffff); if (ppLVar7 == (LF_SLIST **)0x0) { uVar9 = 0xffffffff; } else { if ((*ppLVar7 == (LF_SLIST *)0x0) && (iVar4 = initialize_bucket(param_1,ppLVar7,(uint)uVar10,param_2), iVar4 != 0)) { return 0xffffffff; } *(uint *)(pLVar5 + 0x18) = (uint)(byte)_my_bits_reverse_table[(uVar3 & 0x7fffffff) >> 0x18] | (uint)(byte)_my_bits_reverse_table[uVar3 >> 0x10 & 0xff] << 8 | (uint)(byte)_my_bits_reverse_table[uVar3 >> 8 & 0xff] << 0x10 | (uint)(byte)_my_bits_reverse_table[uVar3 & 0xff] << 0x18 | 1; lVar8 = l_insert(ppLVar7,*(charset_info_st **)(param_1 + 0xa8),pLVar5,param_2, *(uint *)(param_1 + 0xbc)); if (lVar8 == 0) { iVar2 = *(int *)(param_1 + 0xc0); LOCK(); psVar1 = param_1 + 0xc4; iVar4 = *(int *)psVar1; *(int *)psVar1 = *(int *)psVar1 + 1; UNLOCK(); uVar9 = 0; if (DAT_0015d0d8 < ((double)iVar4 + DAT_0015d0d8) / (double)iVar2) { LOCK(); if (iVar2 == *(int *)(param_1 + 0xc0)) { *(int *)(param_1 + 0xc0) = iVar2 * 2; } UNLOCK(); uVar9 = 0; } } else { lf_pinbox_free(param_2,pLVar5); uVar9 = 1; } } } return uVar9; }
60,366
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 0x512cf 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 0x51296 leaq (%r10,%r10,2), %r9 movl (%r11,%r9,4), %r9d jmp 0x5129d shll $0x8, %r9d orq %r10, %r9 cmpq %r8, %rcx ja 0x512ce cmpl $0xffff, %r9d # imm = 0xFFFF ja 0x512ce rolw $0x8, %r9w movw %r9w, -0x2(%rcx) leaq 0x2(%rsi), %r9 cmpq %rdx, %r9 jae 0x512ce addq $0x4, %rsi addq $0x2, %rcx cmpq %rdx, %rsi movq %r9, %rsi jbe 0x51276 popq %rbp retq
my_caseup_ucs2: mov rax, rdx cmp rdx, 2 jl short locret_512CF push rbp mov rbp, rsp lea rdx, [rsi+rax] add r8, rcx mov rdi, [rdi+78h] add rcx, 2 loc_51276: 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_51296 lea r9, [r10+r10*2] mov r9d, [r11+r9*4] jmp short loc_5129D loc_51296: shl r9d, 8 or r9, r10 loc_5129D: cmp rcx, r8 ja short loc_512CE cmp r9d, 0FFFFh ja short loc_512CE rol r9w, 8 mov [rcx-2], r9w lea r9, [rsi+2] cmp r9, rdx jnb short loc_512CE add rsi, 4 add rcx, 2 cmp rsi, rdx mov rsi, r9 jbe short loc_51276 loc_512CE: pop rbp locret_512CF: 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 0x001512cf PUSH RBP MOV RBP,RSP LEA RDX,[RSI + RAX*0x1] ADD R8,RCX MOV RDI,qword ptr [RDI + 0x78] ADD RCX,0x2 LAB_00151276: 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 0x00151296 LEA R9,[R10 + R10*0x2] MOV R9D,dword ptr [R11 + R9*0x4] JMP 0x0015129d LAB_00151296: SHL R9D,0x8 OR R9,R10 LAB_0015129d: CMP RCX,R8 JA 0x001512ce CMP R9D,0xffff JA 0x001512ce ROL R9W,0x8 MOV word ptr [RCX + -0x2],R9W LEA R9,[RSI + 0x2] CMP R9,RDX JNC 0x001512ce ADD RSI,0x4 ADD RCX,0x2 CMP RSI,RDX MOV RSI,R9 JBE 0x00151276 LAB_001512ce: POP RBP LAB_001512cf: 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; }
60,367
js_finrec_mark
bluesky950520[P]quickjs/quickjs.c
static void js_finrec_mark(JSRuntime *rt, JSValue val, JS_MarkFunc *mark_func) { JSFinalizationRegistryData *frd = JS_GetOpaque(val, JS_CLASS_FINALIZATION_REGISTRY); if (frd) { JS_MarkValue(rt, frd->cb, mark_func); struct list_head *el; list_for_each(el, &frd->entries) { JSFinRecEntry *fre = list_entry(el, JSFinRecEntry, link); JS_MarkValue(rt, fre->held_val, mark_func); JS_MarkValue(rt, fre->token, mark_func); } } }
O2
c
js_finrec_mark: pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx cmpl $-0x1, %edx jne 0x6ef58 cmpw $0x3b, 0x6(%rsi) jne 0x6ef58 movq 0x30(%rsi), %r15 testq %r15, %r15 je 0x6ef58 movq %rcx, %rbx movq %rdi, %r14 movl $0xfffffffe, %r12d # imm = 0xFFFFFFFE movl 0x20(%r15), %eax andl $-0x2, %eax movq %r15, %r13 cmpl %r12d, %eax jne 0x6ef28 leaq 0x18(%r15), %rax movq %r15, %r13 movq (%rax), %rsi movq %r14, %rdi callq *%rbx movq 0x8(%r13), %r13 cmpq %r15, %r13 je 0x6ef58 movl 0x38(%r13), %eax andl $-0x2, %eax cmpl %r12d, %eax jne 0x6ef46 movq 0x30(%r13), %rsi movq %r14, %rdi callq *%rbx movl 0x48(%r13), %eax andl $-0x2, %eax cmpl %r12d, %eax jne 0x6ef28 leaq 0x40(%r13), %rax jmp 0x6ef20 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq
js_finrec_mark: push r15 push r14 push r13 push r12 push rbx cmp edx, 0FFFFFFFFh jnz short loc_6EF58 cmp word ptr [rsi+6], 3Bh ; ';' jnz short loc_6EF58 mov r15, [rsi+30h] test r15, r15 jz short loc_6EF58 mov rbx, rcx mov r14, rdi mov r12d, 0FFFFFFFEh mov eax, [r15+20h] and eax, 0FFFFFFFEh mov r13, r15 cmp eax, r12d jnz short loc_6EF28 lea rax, [r15+18h] mov r13, r15 loc_6EF20: mov rsi, [rax] mov rdi, r14 call rbx loc_6EF28: mov r13, [r13+8] cmp r13, r15 jz short loc_6EF58 mov eax, [r13+38h] and eax, 0FFFFFFFEh cmp eax, r12d jnz short loc_6EF46 mov rsi, [r13+30h] mov rdi, r14 call rbx loc_6EF46: mov eax, [r13+48h] and eax, 0FFFFFFFEh cmp eax, r12d jnz short loc_6EF28 lea rax, [r13+40h] jmp short loc_6EF20 loc_6EF58: pop rbx pop r12 pop r13 pop r14 pop r15 retn
void js_finrec_mark(long long a1, long long a2, int a3, void ( *a4)(long long, _QWORD)) { long long v4; // r15 long long v6; // r13 _QWORD *v7; // rax if ( a3 == -1 && *(_WORD *)(a2 + 6) == 59 ) { v4 = *(_QWORD *)(a2 + 48); if ( v4 ) { v6 = *(_QWORD *)(a2 + 48); if ( (*(_DWORD *)(v4 + 32) & 0xFFFFFFFE) != 0xFFFFFFFE ) goto LABEL_7; v7 = (_QWORD *)(v4 + 24); v6 = *(_QWORD *)(a2 + 48); LABEL_6: a4(a1, *v7); LABEL_7: while ( 1 ) { v6 = *(_QWORD *)(v6 + 8); if ( v6 == v4 ) break; if ( (*(_DWORD *)(v6 + 56) & 0xFFFFFFFE) == 0xFFFFFFFE ) a4(a1, *(_QWORD *)(v6 + 48)); if ( (*(_DWORD *)(v6 + 72) & 0xFFFFFFFE) == 0xFFFFFFFE ) { v7 = (_QWORD *)(v6 + 64); goto LABEL_6; } } } } }
js_finrec_mark: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX CMP EDX,-0x1 JNZ 0x0016ef58 CMP word ptr [RSI + 0x6],0x3b JNZ 0x0016ef58 MOV R15,qword ptr [RSI + 0x30] TEST R15,R15 JZ 0x0016ef58 MOV RBX,RCX MOV R14,RDI MOV R12D,0xfffffffe MOV EAX,dword ptr [R15 + 0x20] AND EAX,0xfffffffe MOV R13,R15 CMP EAX,R12D JNZ 0x0016ef28 LEA RAX,[R15 + 0x18] MOV R13,R15 LAB_0016ef20: MOV RSI,qword ptr [RAX] MOV RDI,R14 CALL RBX LAB_0016ef28: MOV R13,qword ptr [R13 + 0x8] CMP R13,R15 JZ 0x0016ef58 MOV EAX,dword ptr [R13 + 0x38] AND EAX,0xfffffffe CMP EAX,R12D JNZ 0x0016ef46 MOV RSI,qword ptr [R13 + 0x30] MOV RDI,R14 CALL RBX LAB_0016ef46: MOV EAX,dword ptr [R13 + 0x48] AND EAX,0xfffffffe CMP EAX,R12D JNZ 0x0016ef28 LEA RAX,[R13 + 0x40] JMP 0x0016ef20 LAB_0016ef58: POP RBX POP R12 POP R13 POP R14 POP R15 RET
void js_finrec_mark(int8 param_1,long param_2,int param_3,code *param_4) { long lVar1; int8 *puVar2; long lVar3; if (((param_3 == -1) && (*(short *)(param_2 + 6) == 0x3b)) && (lVar1 = *(long *)(param_2 + 0x30), lVar1 != 0)) { lVar3 = lVar1; if ((*(uint *)(lVar1 + 0x20) & 0xfffffffe) != 0xfffffffe) goto LAB_0016ef28; puVar2 = (int8 *)(lVar1 + 0x18); do { (*param_4)(param_1,*puVar2); LAB_0016ef28: do { lVar3 = *(long *)(lVar3 + 8); if (lVar3 == lVar1) { return; } if ((*(uint *)(lVar3 + 0x38) & 0xfffffffe) == 0xfffffffe) { (*param_4)(param_1,*(int8 *)(lVar3 + 0x30)); } } while ((*(uint *)(lVar3 + 0x48) & 0xfffffffe) != 0xfffffffe); puVar2 = (int8 *)(lVar3 + 0x40); } while( true ); } return; }
60,368
skip
eloqsql/libmariadb/unittest/mytap/tap.c
void skip(int how_many, char const *const fmt, ...) { char reason[80]; if (fmt && *fmt) { va_list ap; va_start(ap, fmt); vsnprintf(reason, sizeof(reason), fmt, ap); va_end(ap); } else reason[0] = '\0'; while (how_many-- > 0) { va_list ap; memset((char*) &ap, 0, sizeof(ap)); /* Keep compiler happy */ vemit_tap(1, NULL, ap); emit_dir("skip", reason); emit_endl(); } }
O3
c
skip: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x128, %rsp # imm = 0x128 movl %edi, %ebx movq %rdx, -0x140(%rbp) movq %rcx, -0x138(%rbp) movq %r8, -0x130(%rbp) movq %r9, -0x128(%rbp) testb %al, %al je 0x15c04 movaps %xmm0, -0x120(%rbp) movaps %xmm1, -0x110(%rbp) movaps %xmm2, -0x100(%rbp) movaps %xmm3, -0xf0(%rbp) movaps %xmm4, -0xe0(%rbp) movaps %xmm5, -0xd0(%rbp) movaps %xmm6, -0xc0(%rbp) movaps %xmm7, -0xb0(%rbp) movq %fs:0x28, %rax movq %rax, -0x30(%rbp) testq %rsi, %rsi je 0x15c62 movq %rsi, %r10 cmpb $0x0, (%rsi) je 0x15c62 leaq -0x150(%rbp), %rax leaq -0xa0(%rbp), %r9 movq %rax, 0x10(%r9) leaq 0x10(%rbp), %rax movq %rax, 0x8(%r9) movabsq $0x3000000010, %rax # imm = 0x3000000010 movq %rax, (%r9) leaq -0x80(%rbp), %rdi movl $0x50, %esi movl $0x50, %ecx movl $0x1, %edx movq %r10, %r8 callq 0x13380 jmp 0x15c66 movb $0x0, -0x80(%rbp) testl %ebx, %ebx jle 0x15cf2 incl %ebx movq 0x33339(%rip), %r13 # 0x48fb0 leaq 0x1f979(%rip), %r15 # 0x355f7 leaq -0x80(%rbp), %r14 leaq 0x1f96d(%rip), %r12 # 0x355f6 movq (%r13), %rdi movl 0x35304(%rip), %r8d # 0x4af98 incl %r8d movl %r8d, 0x352fa(%rip) # 0x4af98 movl $0x1, %esi leaq 0x1fc7f(%rip), %rdx # 0x35929 movq %r15, %rcx movq %r15, %r9 xorl %eax, %eax callq 0x13740 movq (%r13), %rdi movl $0x1, %esi leaq 0x1fc75(%rip), %rdx # 0x3593c leaq 0x1fc0b(%rip), %rcx # 0x358d9 movq %r14, %r8 xorl %eax, %eax callq 0x13740 movq (%r13), %rdi movl $0x1, %esi movq %r12, %rdx xorl %eax, %eax callq 0x13740 decl %ebx cmpl $0x1, %ebx ja 0x15c89 movq %fs:0x28, %rax cmpq -0x30(%rbp), %rax jne 0x15d13 addq $0x128, %rsp # imm = 0x128 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0x13500
skip: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 128h mov ebx, edi mov [rbp+var_140], rdx mov [rbp+var_138], rcx mov [rbp+var_130], r8 mov [rbp+var_128], r9 test al, al jz short loc_15C04 movaps [rbp+var_120], xmm0 movaps [rbp+var_110], xmm1 movaps [rbp+var_100], xmm2 movaps [rbp+var_F0], xmm3 movaps [rbp+var_E0], xmm4 movaps [rbp+var_D0], xmm5 movaps [rbp+var_C0], xmm6 movaps [rbp+var_B0], xmm7 loc_15C04: mov rax, fs:28h mov [rbp+var_30], rax test rsi, rsi jz short loc_15C62 mov r10, rsi cmp byte ptr [rsi], 0 jz short loc_15C62 lea rax, [rbp+var_150] lea r9, [rbp+var_A0] mov [r9+10h], rax lea rax, [rbp+arg_0] mov [r9+8], rax mov rax, 3000000010h mov [r9], rax lea rdi, [rbp+var_80] mov esi, 50h ; 'P' mov ecx, 50h ; 'P' mov edx, 1 mov r8, r10 call ___vsnprintf_chk jmp short loc_15C66 loc_15C62: mov [rbp+var_80], 0 loc_15C66: test ebx, ebx jle loc_15CF2 inc ebx mov r13, cs:stdout_ptr lea r15, aExecuteTestWit+29h; "" lea r14, [rbp+var_80] lea r12, aExecuteTestWit+28h; "\n" loc_15C89: mov rdi, [r13+0] mov r8d, cs:dword_4AF98 inc r8d mov cs:dword_4AF98, r8d mov esi, 1 lea rdx, aSokDS; "%sok %d%s" mov rcx, r15 mov r9, r15 xor eax, eax call ___fprintf_chk mov rdi, [r13+0] mov esi, 1 lea rdx, aSS_1; " # %s %s" lea rcx, aSkip; "skip" mov r8, r14 xor eax, eax call ___fprintf_chk mov rdi, [r13+0] mov esi, 1 mov rdx, r12 xor eax, eax call ___fprintf_chk dec ebx cmp ebx, 1 ja short loc_15C89 loc_15CF2: mov rax, fs:28h cmp rax, [rbp+var_30] jnz short loc_15D13 add rsp, 128h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_15D13: call ___stack_chk_fail
unsigned long long skip(int a1, _BYTE *a2, ...) { unsigned int v2; // ebx va_list va; // [rsp+B0h] [rbp-A0h] BYREF char v5[80]; // [rsp+D0h] [rbp-80h] BYREF unsigned long long v6; // [rsp+120h] [rbp-30h] v6 = __readfsqword(0x28u); if ( a2 && *a2 ) { va_start(va, a2); __vsnprintf_chk(v5, 80LL, 1LL, 80LL, a2, va); } else { v5[0] = 0; } if ( a1 > 0 ) { v2 = a1 + 1; do { __fprintf_chk(stdout, 1LL, "%sok %d%s", "", ++dword_4AF98, ""); __fprintf_chk(stdout, 1LL, " # %s %s", "skip", v5); __fprintf_chk(stdout, 1LL, "\n"); --v2; } while ( v2 > 1 ); } return __readfsqword(0x28u); }
skip: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x128 MOV EBX,EDI MOV qword ptr [RBP + -0x140],RDX MOV qword ptr [RBP + -0x138],RCX MOV qword ptr [RBP + -0x130],R8 MOV qword ptr [RBP + -0x128],R9 TEST AL,AL JZ 0x00115c04 MOVAPS xmmword ptr [RBP + -0x120],XMM0 MOVAPS xmmword ptr [RBP + -0x110],XMM1 MOVAPS xmmword ptr [RBP + -0x100],XMM2 MOVAPS xmmword ptr [RBP + -0xf0],XMM3 MOVAPS xmmword ptr [RBP + -0xe0],XMM4 MOVAPS xmmword ptr [RBP + -0xd0],XMM5 MOVAPS xmmword ptr [RBP + -0xc0],XMM6 MOVAPS xmmword ptr [RBP + -0xb0],XMM7 LAB_00115c04: MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX TEST RSI,RSI JZ 0x00115c62 MOV R10,RSI CMP byte ptr [RSI],0x0 JZ 0x00115c62 LEA RAX,[RBP + -0x150] LEA R9,[RBP + -0xa0] MOV qword ptr [R9 + 0x10],RAX LEA RAX,[RBP + 0x10] MOV qword ptr [R9 + 0x8],RAX MOV RAX,0x3000000010 MOV qword ptr [R9],RAX LEA RDI,[RBP + -0x80] MOV ESI,0x50 MOV ECX,0x50 MOV EDX,0x1 MOV R8,R10 CALL 0x00113380 JMP 0x00115c66 LAB_00115c62: MOV byte ptr [RBP + -0x80],0x0 LAB_00115c66: TEST EBX,EBX JLE 0x00115cf2 INC EBX MOV R13,qword ptr [0x00148fb0] LEA R15,[0x1355f7] LEA R14,[RBP + -0x80] LEA R12,[0x1355f6] LAB_00115c89: MOV RDI,qword ptr [R13] MOV R8D,dword ptr [0x0014af98] INC R8D MOV dword ptr [0x0014af98],R8D MOV ESI,0x1 LEA RDX,[0x135929] MOV RCX,R15 MOV R9,R15 XOR EAX,EAX CALL 0x00113740 MOV RDI,qword ptr [R13] MOV ESI,0x1 LEA RDX,[0x13593c] LEA RCX,[0x1358d9] MOV R8,R14 XOR EAX,EAX CALL 0x00113740 MOV RDI,qword ptr [R13] MOV ESI,0x1 MOV RDX,R12 XOR EAX,EAX CALL 0x00113740 DEC EBX CMP EBX,0x1 JA 0x00115c89 LAB_00115cf2: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x00115d13 ADD RSP,0x128 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00115d13: CALL 0x00113500
void skip(int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6,int8 param_7,int8 param_8,int param_9, char *param_10,int8 param_11,int8 param_12,int8 param_13, int8 param_14) { int *puVar1; char in_AL; uint uVar2; long in_FS_OFFSET; int1 local_158 [16]; int8 local_148; int8 local_140; int8 local_138; int8 local_130; int8 local_128; int8 local_118; int8 local_108; int8 local_f8; int8 local_e8; int8 local_d8; int8 local_c8; int8 local_b8; int8 local_a8; int1 *local_a0; int1 *local_98; int1 local_88 [80]; long local_38; if (in_AL != '\0') { local_128 = param_1; local_118 = param_2; local_108 = param_3; local_f8 = param_4; local_e8 = param_5; local_d8 = param_6; local_c8 = param_7; local_b8 = param_8; } local_38 = *(long *)(in_FS_OFFSET + 0x28); local_148 = param_11; local_140 = param_12; local_138 = param_13; local_130 = param_14; if ((param_10 == (char *)0x0) || (*param_10 == '\0')) { local_88[0] = 0; } else { local_98 = local_158; local_a0 = &stack0x00000008; local_a8 = 0x3000000010; __vsnprintf_chk(local_88,0x50,1,0x50,param_10); } puVar1 = PTR_stdout_00148fb0; if (0 < param_9) { uVar2 = param_9 + 1; do { DAT_0014af98 = DAT_0014af98 + 1; __fprintf_chk(*(int8 *)puVar1,1,"%sok %d%s","",DAT_0014af98,""); __fprintf_chk(*(int8 *)puVar1,1," # %s %s",&DAT_001358d9,local_88); __fprintf_chk(*(int8 *)puVar1,1,"\n"); uVar2 = uVar2 - 1; } while (1 < uVar2); } if (*(long *)(in_FS_OFFSET + 0x28) == local_38) { return; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
60,369
PFS_buffer_scalable_container<PFS_cond, 256, 256, PFS_buffer_default_array<PFS_cond>, PFS_buffer_default_allocator<PFS_cond>>::allocate(pfs_dirty_state*)
eloqsql/storage/perfschema/pfs_buffer_container.h
value_type *allocate(pfs_dirty_state *dirty_state) { if (m_full) { m_lost++; return NULL; } uint index; uint monotonic; uint monotonic_max; uint current_page_count; value_type *pfs; array_type *array; void *addr; void * volatile * typed_addr; void *ptr; /* 1: Try to find an available record within the existing pages */ current_page_count= PFS_atomic::load_u32(& m_max_page_index.m_u32); if (current_page_count != 0) { monotonic= PFS_atomic::load_u32(& m_monotonic.m_u32); monotonic_max= monotonic + current_page_count; while (monotonic < monotonic_max) { /* Scan in the [0 .. current_page_count - 1] range, in parallel with m_monotonic (see below) */ index= monotonic % current_page_count; /* Atomic Load, array= m_pages[index] */ addr= & m_pages[index]; typed_addr= static_cast<void * volatile *>(addr); ptr= my_atomic_loadptr(typed_addr); array= static_cast<array_type *>(ptr); if (array != NULL) { pfs= array->allocate(dirty_state); if (pfs != NULL) { /* Keep a pointer to the parent page, for deallocate(). */ pfs->m_page= reinterpret_cast<PFS_opaque_container_page *> (array); return pfs; } } /* Parallel scans collaborate to increase the common monotonic scan counter. Note that when all the existing page are full, one thread will eventually add a new page, and cause m_max_page_index to increase, which fools all the modulo logic for scans already in progress, because the monotonic counter is not folded to the same place (sometime modulo N, sometime modulo N+1). This is actually ok: since all the pages are full anyway, there is nothing to miss, so better increase the monotonic counter faster and then move on to the detection of new pages, in part 2: below. */ monotonic= PFS_atomic::add_u32(& m_monotonic.m_u32, 1); }; } /* 2: Try to add a new page, beyond the m_max_page_index limit */ while (current_page_count < m_max_page_count) { /* Peek for pages added by collaborating threads */ /* (2-a) Atomic Load, array= m_pages[current_page_count] */ addr= & m_pages[current_page_count]; typed_addr= static_cast<void * volatile *>(addr); ptr= my_atomic_loadptr(typed_addr); array= static_cast<array_type *>(ptr); if (array == NULL) { // ================================================================== // BEGIN CRITICAL SECTION -- buffer expand // ================================================================== /* On a fresh started server, buffers are typically empty. When a sudden load spike is seen by the server, multiple threads may want to expand the buffer at the same time. Using a compare and swap to allow multiple pages to be added, possibly freeing duplicate pages on collisions, does not work well because the amount of code involved when creating a new page can be significant (PFS_thread), causing MANY collisions between (2-b) and (2-d). A huge number of collisions (which can happen when thousands of new connections hits the server after a restart) leads to a huge memory consumption, and to OOM. To mitigate this, we use here a mutex, to enforce that only ONE page is added at a time, so that scaling the buffer happens in a predictable and controlled manner. */ pthread_mutex_lock(& m_critical_section); /* Peek again for pages added by collaborating threads, this time as the only thread allowed to expand the buffer */ /* (2-b) Atomic Load, array= m_pages[current_page_count] */ ptr= my_atomic_loadptr(typed_addr); array= static_cast<array_type *>(ptr); if (array == NULL) { /* (2-c) Found no page, allocate a new one */ array= new array_type(); builtin_memory_scalable_buffer.count_alloc(sizeof (array_type)); array->m_max= get_page_logical_size(current_page_count); int rc= m_allocator->alloc_array(array); if (rc != 0) { m_allocator->free_array(array); delete array; builtin_memory_scalable_buffer.count_free(sizeof (array_type)); m_lost++; pthread_mutex_unlock(& m_critical_section); return NULL; } /* Keep a pointer to this container, for static_deallocate(). */ array->m_container= reinterpret_cast<PFS_opaque_container *> (this); /* (2-d) Atomic STORE, m_pages[current_page_count] = array */ ptr= array; my_atomic_storeptr(typed_addr, ptr); /* Advertise the new page */ PFS_atomic::add_u32(& m_max_page_index.m_u32, 1); } pthread_mutex_unlock(& m_critical_section); // ================================================================== // END CRITICAL SECTION -- buffer expand // ================================================================== } assert(array != NULL); pfs= array->allocate(dirty_state); if (pfs != NULL) { /* Keep a pointer to the parent page, for deallocate(). */ pfs->m_page= reinterpret_cast<PFS_opaque_container_page *> (array); return pfs; } current_page_count++; } m_lost++; m_full= true; return NULL; }
O0
c
PFS_buffer_scalable_container<PFS_cond, 256, 256, PFS_buffer_default_array<PFS_cond>, PFS_buffer_default_allocator<PFS_cond>>::allocate(pfs_dirty_state*): pushq %rbp movq %rsp, %rbp subq $0xa0, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x88(%rbp) testb $0x1, 0x9(%rax) je 0x535d2 movq -0x88(%rbp), %rax movq (%rax), %rcx addq $0x1, %rcx movq %rcx, (%rax) movq $0x0, -0x8(%rbp) jmp 0x53922 movq -0x88(%rbp), %rdi addq $0x58, %rdi callq 0x379d0 movl %eax, -0x28(%rbp) cmpl $0x0, -0x28(%rbp) je 0x536b6 movq -0x88(%rbp), %rdi addq $0x18, %rdi callq 0x379d0 movl %eax, -0x20(%rbp) movl -0x20(%rbp), %eax addl -0x28(%rbp), %eax movl %eax, -0x24(%rbp) movl -0x20(%rbp), %eax cmpl -0x24(%rbp), %eax jae 0x536b4 movl -0x20(%rbp), %eax movl -0x28(%rbp), %ecx xorl %edx, %edx divl %ecx movq -0x88(%rbp), %rax movl %edx, -0x1c(%rbp) movl -0x1c(%rbp), %ecx leaq 0xa8(%rax,%rcx,8), %rax movq %rax, -0x40(%rbp) movq -0x40(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x48(%rbp), %rax movq (%rax), %rax movq %rax, -0x58(%rbp) movq -0x58(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x50(%rbp), %rax movq %rax, -0x38(%rbp) cmpq $0x0, -0x38(%rbp) je 0x53697 movq -0x38(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0x539e0 movq %rax, -0x30(%rbp) cmpq $0x0, -0x30(%rbp) je 0x53695 movq -0x38(%rbp), %rcx movq -0x30(%rbp), %rax movq %rcx, 0x8(%rax) movq -0x30(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x53922 jmp 0x53697 movq -0x88(%rbp), %rdi addq $0x18, %rdi movl $0x1, %esi callq 0x37ac0 movl %eax, -0x20(%rbp) jmp 0x5360b jmp 0x536b6 jmp 0x536b8 movq -0x88(%rbp), %rcx movl -0x28(%rbp), %eax cmpq 0x98(%rcx), %rax jae 0x53905 movq -0x88(%rbp), %rax movl -0x28(%rbp), %ecx leaq 0xa8(%rax,%rcx,8), %rax movq %rax, -0x40(%rbp) movq -0x40(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x48(%rbp), %rax movq (%rax), %rax movq %rax, -0x60(%rbp) movq -0x60(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x50(%rbp), %rax movq %rax, -0x38(%rbp) cmpq $0x0, -0x38(%rbp) jne 0x538c9 movq -0x88(%rbp), %rdi addq $0x20b0, %rdi # imm = 0x20B0 callq 0x264b0 movq -0x48(%rbp), %rax movq (%rax), %rax movq %rax, -0x68(%rbp) movq -0x68(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x50(%rbp), %rax movq %rax, -0x38(%rbp) cmpq $0x0, -0x38(%rbp) jne 0x538b6 movl $0x60, %edi callq 0x26310 movq %rax, %rdi movq %rdi, -0x98(%rbp) movq %rdi, %rax movq %rax, -0x90(%rbp) xorps %xmm0, %xmm0 movaps %xmm0, 0x50(%rdi) movaps %xmm0, 0x40(%rdi) movaps %xmm0, 0x30(%rdi) movaps %xmm0, 0x20(%rdi) movaps %xmm0, 0x10(%rdi) movaps %xmm0, (%rdi) callq 0x53ab0 jmp 0x5378b movq -0x90(%rbp), %rax movq %rax, -0x38(%rbp) leaq 0x3b64e3(%rip), %rdi # 0x409c80 movl $0x60, %esi callq 0x37b10 movq -0x88(%rbp), %rdi movl -0x28(%rbp), %esi callq 0x53ad0 movl %eax, %ecx movq -0x88(%rbp), %rax movl %ecx, %ecx movl %ecx, %edx movq -0x38(%rbp), %rcx movq %rdx, 0x50(%rcx) movq 0x20a8(%rax), %rdi movq -0x38(%rbp), %rsi callq 0x53b10 movl %eax, -0x78(%rbp) cmpl $0x0, -0x78(%rbp) je 0x5387e movq -0x88(%rbp), %rax movq 0x20a8(%rax), %rdi movq -0x38(%rbp), %rsi callq 0x53990 movq -0x38(%rbp), %rax movq %rax, -0xa0(%rbp) cmpq $0x0, %rax je 0x53821 movq -0xa0(%rbp), %rdi movl $0x60, %esi callq 0x26320 leaq 0x3b6458(%rip), %rdi # 0x409c80 movl $0x60, %esi callq 0x37c20 movq -0x88(%rbp), %rdi movq (%rdi), %rax addq $0x1, %rax movq %rax, (%rdi) addq $0x20b0, %rdi # imm = 0x20B0 callq 0x26260 movq $0x0, -0x8(%rbp) jmp 0x53922 movq -0x90(%rbp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, -0x70(%rbp) movl %eax, -0x74(%rbp) movl $0x60, %esi callq 0x26320 jmp 0x5392f movq -0x88(%rbp), %rdi movq -0x38(%rbp), %rax movq %rdi, 0x58(%rax) movq -0x38(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x48(%rbp), %rcx movq -0x50(%rbp), %rax movq %rax, -0x80(%rbp) movq -0x80(%rbp), %rax xchgq %rax, (%rcx) addq $0x58, %rdi movl $0x1, %esi callq 0x37ac0 movq -0x88(%rbp), %rdi addq $0x20b0, %rdi # imm = 0x20B0 callq 0x26260 movq -0x38(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0x539e0 movq %rax, -0x30(%rbp) cmpq $0x0, -0x30(%rbp) je 0x538f7 movq -0x38(%rbp), %rcx movq -0x30(%rbp), %rax movq %rcx, 0x8(%rax) movq -0x30(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x53922 movl -0x28(%rbp), %eax addl $0x1, %eax movl %eax, -0x28(%rbp) jmp 0x536b8 movq -0x88(%rbp), %rax movq (%rax), %rcx addq $0x1, %rcx movq %rcx, (%rax) movb $0x1, 0x9(%rax) movq $0x0, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0xa0, %rsp popq %rbp retq movq -0x70(%rbp), %rdi callq 0x265e0 nopl (%rax,%rax)
_ZN29PFS_buffer_scalable_containerI11PFS_programLi1024ELi1024E24PFS_buffer_default_arrayIS0_E28PFS_buffer_default_allocatorIS0_EE8allocateEP15pfs_dirty_state: push rbp mov rbp, rsp sub rsp, 0A0h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rax, [rbp+var_10] mov [rbp+var_88], rax test byte ptr [rax+9], 1 jz short loc_535D2 mov rax, [rbp+var_88] mov rcx, [rax] add rcx, 1 mov [rax], rcx mov [rbp+var_8], 0 jmp loc_53922 loc_535D2: mov rdi, [rbp+var_88] add rdi, 58h ; 'X'; this call _ZN10PFS_atomic8load_u32EPj; PFS_atomic::load_u32(uint *) mov [rbp+var_28], eax cmp [rbp+var_28], 0 jz loc_536B6 mov rdi, [rbp+var_88] add rdi, 18h; this call _ZN10PFS_atomic8load_u32EPj; PFS_atomic::load_u32(uint *) mov [rbp+var_20], eax mov eax, [rbp+var_20] add eax, [rbp+var_28] mov [rbp+var_24], eax loc_5360B: mov eax, [rbp+var_20] cmp eax, [rbp+var_24] jnb loc_536B4 mov eax, [rbp+var_20] mov ecx, [rbp+var_28] xor edx, edx; unsigned int div ecx mov rax, [rbp+var_88] mov [rbp+var_1C], edx mov ecx, [rbp+var_1C] lea rax, [rax+rcx*8+0A8h] mov [rbp+var_40], rax mov rax, [rbp+var_40] mov [rbp+var_48], rax mov rax, [rbp+var_48] mov rax, [rax] mov [rbp+var_58], rax mov rax, [rbp+var_58] mov [rbp+var_50], rax mov rax, [rbp+var_50] mov [rbp+var_38], rax cmp [rbp+var_38], 0 jz short loc_53697 mov rdi, [rbp+var_38] mov rsi, [rbp+var_18] call _ZN24PFS_buffer_default_arrayI11PFS_programE8allocateEP15pfs_dirty_state; PFS_buffer_default_array<PFS_program>::allocate(pfs_dirty_state *) mov [rbp+var_30], rax cmp [rbp+var_30], 0 jz short loc_53695 mov rcx, [rbp+var_38] mov rax, [rbp+var_30] mov [rax+8], rcx mov rax, [rbp+var_30] mov [rbp+var_8], rax jmp loc_53922 loc_53695: jmp short $+2 loc_53697: mov rdi, [rbp+var_88] add rdi, 18h; this mov esi, (offset dword_0+1); unsigned int * call _ZN10PFS_atomic7add_u32EPjj; PFS_atomic::add_u32(uint *,uint) mov [rbp+var_20], eax jmp loc_5360B loc_536B4: jmp short $+2 loc_536B6: jmp short $+2 loc_536B8: mov rcx, [rbp+var_88] mov eax, [rbp+var_28] cmp rax, [rcx+98h] jnb loc_53905 mov rax, [rbp+var_88] mov ecx, [rbp+var_28] lea rax, [rax+rcx*8+0A8h] mov [rbp+var_40], rax mov rax, [rbp+var_40] mov [rbp+var_48], rax mov rax, [rbp+var_48] mov rax, [rax] mov [rbp+var_60], rax mov rax, [rbp+var_60] mov [rbp+var_50], rax mov rax, [rbp+var_50] mov [rbp+var_38], rax cmp [rbp+var_38], 0 jnz loc_538C9 mov rdi, [rbp+var_88] add rdi, 20B0h call _pthread_mutex_lock mov rax, [rbp+var_48] mov rax, [rax] mov [rbp+var_68], rax mov rax, [rbp+var_68] mov [rbp+var_50], rax mov rax, [rbp+var_50] mov [rbp+var_38], rax cmp [rbp+var_38], 0 jnz loc_538B6 mov edi, 60h ; '`'; unsigned __int64 call __Znwm; operator new(ulong) mov rdi, rax mov [rbp+var_98], rdi mov rax, rdi mov [rbp+var_90], rax xorps xmm0, xmm0 movaps xmmword ptr [rdi+50h], xmm0 movaps xmmword ptr [rdi+40h], xmm0 movaps xmmword ptr [rdi+30h], xmm0 movaps xmmword ptr [rdi+20h], xmm0 movaps xmmword ptr [rdi+10h], xmm0 movaps xmmword ptr [rdi], xmm0 call _ZN24PFS_buffer_default_arrayI11PFS_programEC2Ev; PFS_buffer_default_array<PFS_program>::PFS_buffer_default_array(void) jmp short $+2 loc_5378B: mov rax, [rbp+var_90] mov [rbp+var_38], rax lea rdi, builtin_memory_scalable_buffer; this mov esi, 60h ; '`'; unsigned __int64 call _ZN24PFS_builtin_memory_class11count_allocEm; PFS_builtin_memory_class::count_alloc(ulong) mov rdi, [rbp+var_88] mov esi, [rbp+var_28] call _ZN29PFS_buffer_scalable_containerI11PFS_programLi1024ELi1024E24PFS_buffer_default_arrayIS0_E28PFS_buffer_default_allocatorIS0_EE21get_page_logical_sizeEj; PFS_buffer_scalable_container<PFS_program,1024,1024,PFS_buffer_default_array<PFS_program>,PFS_buffer_default_allocator<PFS_program>>::get_page_logical_size(uint) mov ecx, eax mov rax, [rbp+var_88] mov ecx, ecx mov edx, ecx mov rcx, [rbp+var_38] mov [rcx+50h], rdx mov rdi, [rax+20A8h] mov rsi, [rbp+var_38] call _ZN28PFS_buffer_default_allocatorI11PFS_programE11alloc_arrayEP24PFS_buffer_default_arrayIS0_E; PFS_buffer_default_allocator<PFS_program>::alloc_array(PFS_buffer_default_array<PFS_program> *) mov [rbp+var_78], eax cmp [rbp+var_78], 0 jz loc_5387E mov rax, [rbp+var_88] mov rdi, [rax+20A8h] mov rsi, [rbp+var_38] call _ZN28PFS_buffer_default_allocatorI11PFS_programE10free_arrayEP24PFS_buffer_default_arrayIS0_E; PFS_buffer_default_allocator<PFS_program>::free_array(PFS_buffer_default_array<PFS_program> *) mov rax, [rbp+var_38] mov [rbp+var_A0], rax cmp rax, 0 jz short loc_53821 mov rdi, [rbp+var_A0]; void * mov esi, 60h ; '`'; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_53821: lea rdi, builtin_memory_scalable_buffer; this mov esi, 60h ; '`'; unsigned __int64 call _ZN24PFS_builtin_memory_class10count_freeEm; PFS_builtin_memory_class::count_free(ulong) mov rdi, [rbp+var_88] mov rax, [rdi] add rax, 1 mov [rdi], rax add rdi, 20B0h call _pthread_mutex_unlock mov [rbp+var_8], 0 jmp loc_53922 mov rdi, [rbp+var_90]; void * mov rcx, rax mov eax, edx mov [rbp+var_70], rcx mov [rbp+var_74], eax mov esi, 60h ; '`'; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp loc_5392F loc_5387E: mov rdi, [rbp+var_88] mov rax, [rbp+var_38] mov [rax+58h], rdi mov rax, [rbp+var_38] mov [rbp+var_50], rax mov rcx, [rbp+var_48] mov rax, [rbp+var_50] mov [rbp+var_80], rax mov rax, [rbp+var_80] xchg rax, [rcx] add rdi, 58h ; 'X'; this mov esi, (offset dword_0+1); unsigned int * call _ZN10PFS_atomic7add_u32EPjj; PFS_atomic::add_u32(uint *,uint) loc_538B6: mov rdi, [rbp+var_88] add rdi, 20B0h call _pthread_mutex_unlock loc_538C9: mov rdi, [rbp+var_38] mov rsi, [rbp+var_18] call _ZN24PFS_buffer_default_arrayI11PFS_programE8allocateEP15pfs_dirty_state; PFS_buffer_default_array<PFS_program>::allocate(pfs_dirty_state *) mov [rbp+var_30], rax cmp [rbp+var_30], 0 jz short loc_538F7 mov rcx, [rbp+var_38] mov rax, [rbp+var_30] mov [rax+8], rcx mov rax, [rbp+var_30] mov [rbp+var_8], rax jmp short loc_53922 loc_538F7: mov eax, [rbp+var_28] add eax, 1 mov [rbp+var_28], eax jmp loc_536B8 loc_53905: mov rax, [rbp+var_88] mov rcx, [rax] add rcx, 1 mov [rax], rcx mov byte ptr [rax+9], 1 mov [rbp+var_8], 0 loc_53922: mov rax, [rbp+var_8] add rsp, 0A0h pop rbp retn loc_5392F: mov rdi, [rbp+var_70] call __Unwind_Resume
long long PFS_buffer_scalable_container<PFS_program,1024,1024,PFS_buffer_default_array<PFS_program>,PFS_buffer_default_allocator<PFS_program>>::allocate( long long a1, unsigned int *a2) { _OWORD *v3; // [rsp+10h] [rbp-90h] volatile long long *v4; // [rsp+58h] [rbp-48h] long long v5; // [rsp+68h] [rbp-38h] volatile long long v6; // [rsp+68h] [rbp-38h] long long v7; // [rsp+70h] [rbp-30h] long long v8; // [rsp+70h] [rbp-30h] unsigned int u32; // [rsp+78h] [rbp-28h] unsigned int v10; // [rsp+7Ch] [rbp-24h] unsigned int v11; // [rsp+80h] [rbp-20h] if ( (*(_BYTE *)(a1 + 9) & 1) != 0 ) { ++*(_QWORD *)a1; return 0LL; } u32 = PFS_atomic::load_u32((PFS_atomic *)(a1 + 88), a2); if ( !u32 ) goto LABEL_10; v11 = PFS_atomic::load_u32((PFS_atomic *)(a1 + 24), a2); v10 = u32 + v11; while ( v11 < v10 ) { v5 = *(_QWORD *)(a1 + 8LL * (v11 % u32) + 168); if ( v5 ) { v7 = PFS_buffer_default_array<PFS_program>::allocate(v5, a2); if ( v7 ) { *(_QWORD *)(v7 + 8) = v5; return v7; } } v11 = PFS_atomic::add_u32((PFS_atomic *)(a1 + 24), (unsigned int *)((char *)&dword_0 + 1)); } while ( 1 ) { LABEL_10: if ( (unsigned long long)u32 >= *(_QWORD *)(a1 + 152) ) { ++*(_QWORD *)a1; *(_BYTE *)(a1 + 9) = 1; return 0LL; } v4 = (volatile long long *)(a1 + 8LL * u32 + 168); v6 = *v4; if ( !*v4 ) break; LABEL_19: v8 = PFS_buffer_default_array<PFS_program>::allocate(v6, a2); if ( v8 ) { *(_QWORD *)(v8 + 8) = v6; return v8; } ++u32; } pthread_mutex_lock(a1 + 8368); v6 = *v4; if ( *v4 ) { LABEL_18: pthread_mutex_unlock(a1 + 8368); goto LABEL_19; } v3 = (_OWORD *)operator new(0x60uLL); v3[5] = 0LL; v3[4] = 0LL; v3[3] = 0LL; v3[2] = 0LL; v3[1] = 0LL; *v3 = 0LL; PFS_buffer_default_array<PFS_program>::PFS_buffer_default_array(); v6 = (volatile long long)v3; PFS_builtin_memory_class::count_alloc((PFS_builtin_memory_class *)&builtin_memory_scalable_buffer, 0x60uLL); *((_QWORD *)v3 + 10) = (unsigned int)PFS_buffer_scalable_container<PFS_program,1024,1024,PFS_buffer_default_array<PFS_program>,PFS_buffer_default_allocator<PFS_program>>::get_page_logical_size( a1, u32); if ( !(unsigned int)PFS_buffer_default_allocator<PFS_program>::alloc_array(*(_QWORD *)(a1 + 8360), v3) ) { *((_QWORD *)v3 + 11) = a1; _InterlockedExchange64(v4, (long long)v3); PFS_atomic::add_u32((PFS_atomic *)(a1 + 88), (unsigned int *)((char *)&dword_0 + 1)); goto LABEL_18; } PFS_buffer_default_allocator<PFS_program>::free_array(*(_QWORD *)(a1 + 8360), v3); if ( v3 ) operator delete(v3, 0x60uLL); PFS_builtin_memory_class::count_free((PFS_builtin_memory_class *)&builtin_memory_scalable_buffer, 0x60uLL); ++*(_QWORD *)a1; pthread_mutex_unlock(a1 + 8368); return 0LL; }
allocate: PUSH RBP MOV RBP,RSP SUB RSP,0xa0 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x88],RAX TEST byte ptr [RAX + 0x9],0x1 JZ 0x001535d2 MOV RAX,qword ptr [RBP + -0x88] MOV RCX,qword ptr [RAX] ADD RCX,0x1 MOV qword ptr [RAX],RCX MOV qword ptr [RBP + -0x8],0x0 JMP 0x00153922 LAB_001535d2: MOV RDI,qword ptr [RBP + -0x88] ADD RDI,0x58 CALL 0x001379d0 MOV dword ptr [RBP + -0x28],EAX CMP dword ptr [RBP + -0x28],0x0 JZ 0x001536b6 MOV RDI,qword ptr [RBP + -0x88] ADD RDI,0x18 CALL 0x001379d0 MOV dword ptr [RBP + -0x20],EAX MOV EAX,dword ptr [RBP + -0x20] ADD EAX,dword ptr [RBP + -0x28] MOV dword ptr [RBP + -0x24],EAX LAB_0015360b: MOV EAX,dword ptr [RBP + -0x20] CMP EAX,dword ptr [RBP + -0x24] JNC 0x001536b4 MOV EAX,dword ptr [RBP + -0x20] MOV ECX,dword ptr [RBP + -0x28] XOR EDX,EDX DIV ECX MOV RAX,qword ptr [RBP + -0x88] MOV dword ptr [RBP + -0x1c],EDX MOV ECX,dword ptr [RBP + -0x1c] LEA RAX,[RAX + RCX*0x8 + 0xa8] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x48] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x58] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RBP + -0x38],RAX CMP qword ptr [RBP + -0x38],0x0 JZ 0x00153697 MOV RDI,qword ptr [RBP + -0x38] MOV RSI,qword ptr [RBP + -0x18] CALL 0x001539e0 MOV qword ptr [RBP + -0x30],RAX CMP qword ptr [RBP + -0x30],0x0 JZ 0x00153695 MOV RCX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x8],RAX JMP 0x00153922 LAB_00153695: JMP 0x00153697 LAB_00153697: MOV RDI,qword ptr [RBP + -0x88] ADD RDI,0x18 MOV ESI,0x1 CALL 0x00137ac0 MOV dword ptr [RBP + -0x20],EAX JMP 0x0015360b LAB_001536b4: JMP 0x001536b6 LAB_001536b6: JMP 0x001536b8 LAB_001536b8: MOV RCX,qword ptr [RBP + -0x88] MOV EAX,dword ptr [RBP + -0x28] CMP RAX,qword ptr [RCX + 0x98] JNC 0x00153905 MOV RAX,qword ptr [RBP + -0x88] MOV ECX,dword ptr [RBP + -0x28] LEA RAX,[RAX + RCX*0x8 + 0xa8] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x48] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x60],RAX MOV RAX,qword ptr [RBP + -0x60] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RBP + -0x38],RAX CMP qword ptr [RBP + -0x38],0x0 JNZ 0x001538c9 MOV RDI,qword ptr [RBP + -0x88] ADD RDI,0x20b0 CALL 0x001264b0 MOV RAX,qword ptr [RBP + -0x48] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x68],RAX MOV RAX,qword ptr [RBP + -0x68] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RBP + -0x38],RAX CMP qword ptr [RBP + -0x38],0x0 JNZ 0x001538b6 MOV EDI,0x60 CALL 0x00126310 MOV RDI,RAX MOV qword ptr [RBP + -0x98],RDI MOV RAX,RDI MOV qword ptr [RBP + -0x90],RAX XORPS XMM0,XMM0 MOVAPS xmmword ptr [RDI + 0x50],XMM0 MOVAPS xmmword ptr [RDI + 0x40],XMM0 MOVAPS xmmword ptr [RDI + 0x30],XMM0 MOVAPS xmmword ptr [RDI + 0x20],XMM0 MOVAPS xmmword ptr [RDI + 0x10],XMM0 MOVAPS xmmword ptr [RDI],XMM0 LAB_00153784: CALL 0x00153ab0 LAB_00153789: JMP 0x0015378b LAB_0015378b: MOV RAX,qword ptr [RBP + -0x90] MOV qword ptr [RBP + -0x38],RAX LEA RDI,[0x509c80] MOV ESI,0x60 CALL 0x00137b10 MOV RDI,qword ptr [RBP + -0x88] MOV ESI,dword ptr [RBP + -0x28] CALL 0x00153ad0 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x88] MOV ECX,ECX MOV EDX,ECX MOV RCX,qword ptr [RBP + -0x38] MOV qword ptr [RCX + 0x50],RDX MOV RDI,qword ptr [RAX + 0x20a8] MOV RSI,qword ptr [RBP + -0x38] CALL 0x00153b10 MOV dword ptr [RBP + -0x78],EAX CMP dword ptr [RBP + -0x78],0x0 JZ 0x0015387e MOV RAX,qword ptr [RBP + -0x88] MOV RDI,qword ptr [RAX + 0x20a8] MOV RSI,qword ptr [RBP + -0x38] CALL 0x00153990 MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0xa0],RAX CMP RAX,0x0 JZ 0x00153821 MOV RDI,qword ptr [RBP + -0xa0] MOV ESI,0x60 CALL 0x00126320 LAB_00153821: LEA RDI,[0x509c80] MOV ESI,0x60 CALL 0x00137c20 MOV RDI,qword ptr [RBP + -0x88] MOV RAX,qword ptr [RDI] ADD RAX,0x1 MOV qword ptr [RDI],RAX ADD RDI,0x20b0 CALL 0x00126260 MOV qword ptr [RBP + -0x8],0x0 JMP 0x00153922 LAB_0015387e: MOV RDI,qword ptr [RBP + -0x88] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0x58],RDI MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x50],RAX MOV RCX,qword ptr [RBP + -0x48] MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RBP + -0x80],RAX MOV RAX,qword ptr [RBP + -0x80] XCHG qword ptr [RCX],RAX ADD RDI,0x58 MOV ESI,0x1 CALL 0x00137ac0 LAB_001538b6: MOV RDI,qword ptr [RBP + -0x88] ADD RDI,0x20b0 CALL 0x00126260 LAB_001538c9: MOV RDI,qword ptr [RBP + -0x38] MOV RSI,qword ptr [RBP + -0x18] CALL 0x001539e0 MOV qword ptr [RBP + -0x30],RAX CMP qword ptr [RBP + -0x30],0x0 JZ 0x001538f7 MOV RCX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x8],RAX JMP 0x00153922 LAB_001538f7: MOV EAX,dword ptr [RBP + -0x28] ADD EAX,0x1 MOV dword ptr [RBP + -0x28],EAX JMP 0x001536b8 LAB_00153905: MOV RAX,qword ptr [RBP + -0x88] MOV RCX,qword ptr [RAX] ADD RCX,0x1 MOV qword ptr [RAX],RCX MOV byte ptr [RAX + 0x9],0x1 MOV qword ptr [RBP + -0x8],0x0 LAB_00153922: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0xa0 POP RBP RET
/* PFS_buffer_scalable_container<PFS_program, 1024, 1024, PFS_buffer_default_array<PFS_program>, PFS_buffer_default_allocator<PFS_program> >::allocate(pfs_dirty_state*) */ long __thiscall PFS_buffer_scalable_container<PFS_program,1024,1024,PFS_buffer_default_array<PFS_program>,PFS_buffer_default_allocator<PFS_program>> ::allocate(PFS_buffer_scalable_container<PFS_program,1024,1024,PFS_buffer_default_array<PFS_program>,PFS_buffer_default_allocator<PFS_program>> *this,pfs_dirty_state *param_1) { PFS_buffer_scalable_container<PFS_program,1024,1024,PFS_buffer_default_array<PFS_program>,PFS_buffer_default_allocator<PFS_program>> *pPVar1; PFS_buffer_default_array<PFS_program> *this_00; uint uVar2; int iVar3; long lVar4; PFS_buffer_default_array<PFS_program> *local_40; uint local_30; uint local_28; if (((byte)this[9] & 1) == 0) { local_30 = PFS_atomic::load_u32((uint *)(this + 0x58)); if (local_30 != 0) { local_28 = PFS_atomic::load_u32((uint *)(this + 0x18)); uVar2 = local_28 + local_30; while (local_28 < uVar2) { this_00 = *(PFS_buffer_default_array<PFS_program> **) (this + (ulong)(local_28 % local_30) * 8 + 0xa8); if ((this_00 != (PFS_buffer_default_array<PFS_program> *)0x0) && (lVar4 = PFS_buffer_default_array<PFS_program>::allocate(this_00,param_1), lVar4 != 0)) { *(PFS_buffer_default_array<PFS_program> **)(lVar4 + 8) = this_00; return lVar4; } local_28 = PFS_atomic::add_u32((uint *)(this + 0x18),1); } } for (; (ulong)local_30 < *(ulong *)(this + 0x98); local_30 = local_30 + 1) { pPVar1 = this + (ulong)local_30 * 8 + 0xa8; local_40 = *(PFS_buffer_default_array<PFS_program> **)pPVar1; if (local_40 == (PFS_buffer_default_array<PFS_program> *)0x0) { pthread_mutex_lock((pthread_mutex_t *)(this + 0x20b0)); local_40 = *(PFS_buffer_default_array<PFS_program> **)pPVar1; if (local_40 == (PFS_buffer_default_array<PFS_program> *)0x0) { local_40 = (PFS_buffer_default_array<PFS_program> *)operator_new(0x60); *(int8 *)(local_40 + 0x50) = 0; *(int8 *)(local_40 + 0x58) = 0; *(int8 *)(local_40 + 0x40) = 0; *(int8 *)(local_40 + 0x48) = 0; *(int8 *)(local_40 + 0x30) = 0; *(int8 *)(local_40 + 0x38) = 0; *(int8 *)(local_40 + 0x20) = 0; *(int8 *)(local_40 + 0x28) = 0; *(int8 *)(local_40 + 0x10) = 0; *(int8 *)(local_40 + 0x18) = 0; *(int8 *)local_40 = 0; *(int8 *)(local_40 + 8) = 0; /* try { // try from 00153784 to 00153788 has its CatchHandler @ 0015385c */ PFS_buffer_default_array<PFS_program>::PFS_buffer_default_array(local_40); PFS_builtin_memory_class::count_alloc ((PFS_builtin_memory_class *)builtin_memory_scalable_buffer,0x60); uVar2 = get_page_logical_size(this,local_30); *(ulong *)(local_40 + 0x50) = (ulong)uVar2; iVar3 = PFS_buffer_default_allocator<PFS_program>::alloc_array (*(PFS_buffer_default_allocator<PFS_program> **)(this + 0x20a8), (PFS_buffer_default_array *)local_40); if (iVar3 != 0) { PFS_buffer_default_allocator<PFS_program>::free_array (*(PFS_buffer_default_allocator<PFS_program> **)(this + 0x20a8), (PFS_buffer_default_array *)local_40); if (local_40 != (PFS_buffer_default_array<PFS_program> *)0x0) { operator_delete(local_40,0x60); } PFS_builtin_memory_class::count_free ((PFS_builtin_memory_class *)builtin_memory_scalable_buffer,0x60); *(long *)this = *(long *)this + 1; pthread_mutex_unlock((pthread_mutex_t *)(this + 0x20b0)); return 0; } *(PFS_buffer_scalable_container<PFS_program,1024,1024,PFS_buffer_default_array<PFS_program>,PFS_buffer_default_allocator<PFS_program>> **)(local_40 + 0x58) = this; LOCK(); *(PFS_buffer_default_array<PFS_program> **)pPVar1 = local_40; UNLOCK(); PFS_atomic::add_u32((uint *)(this + 0x58),1); } pthread_mutex_unlock((pthread_mutex_t *)(this + 0x20b0)); } lVar4 = PFS_buffer_default_array<PFS_program>::allocate(local_40,param_1); if (lVar4 != 0) { *(PFS_buffer_default_array<PFS_program> **)(lVar4 + 8) = local_40; return lVar4; } } *(long *)this = *(long *)this + 1; this[9] = (PFS_buffer_scalable_container<PFS_program,1024,1024,PFS_buffer_default_array<PFS_program>,PFS_buffer_default_allocator<PFS_program>> )0x1; } else { *(long *)this = *(long *)this + 1; } return 0; }
60,370
PFS_buffer_scalable_container<PFS_cond, 256, 256, PFS_buffer_default_array<PFS_cond>, PFS_buffer_default_allocator<PFS_cond>>::allocate(pfs_dirty_state*)
eloqsql/storage/perfschema/pfs_buffer_container.h
value_type *allocate(pfs_dirty_state *dirty_state) { if (m_full) { m_lost++; return NULL; } uint index; uint monotonic; uint monotonic_max; uint current_page_count; value_type *pfs; array_type *array; void *addr; void * volatile * typed_addr; void *ptr; /* 1: Try to find an available record within the existing pages */ current_page_count= PFS_atomic::load_u32(& m_max_page_index.m_u32); if (current_page_count != 0) { monotonic= PFS_atomic::load_u32(& m_monotonic.m_u32); monotonic_max= monotonic + current_page_count; while (monotonic < monotonic_max) { /* Scan in the [0 .. current_page_count - 1] range, in parallel with m_monotonic (see below) */ index= monotonic % current_page_count; /* Atomic Load, array= m_pages[index] */ addr= & m_pages[index]; typed_addr= static_cast<void * volatile *>(addr); ptr= my_atomic_loadptr(typed_addr); array= static_cast<array_type *>(ptr); if (array != NULL) { pfs= array->allocate(dirty_state); if (pfs != NULL) { /* Keep a pointer to the parent page, for deallocate(). */ pfs->m_page= reinterpret_cast<PFS_opaque_container_page *> (array); return pfs; } } /* Parallel scans collaborate to increase the common monotonic scan counter. Note that when all the existing page are full, one thread will eventually add a new page, and cause m_max_page_index to increase, which fools all the modulo logic for scans already in progress, because the monotonic counter is not folded to the same place (sometime modulo N, sometime modulo N+1). This is actually ok: since all the pages are full anyway, there is nothing to miss, so better increase the monotonic counter faster and then move on to the detection of new pages, in part 2: below. */ monotonic= PFS_atomic::add_u32(& m_monotonic.m_u32, 1); }; } /* 2: Try to add a new page, beyond the m_max_page_index limit */ while (current_page_count < m_max_page_count) { /* Peek for pages added by collaborating threads */ /* (2-a) Atomic Load, array= m_pages[current_page_count] */ addr= & m_pages[current_page_count]; typed_addr= static_cast<void * volatile *>(addr); ptr= my_atomic_loadptr(typed_addr); array= static_cast<array_type *>(ptr); if (array == NULL) { // ================================================================== // BEGIN CRITICAL SECTION -- buffer expand // ================================================================== /* On a fresh started server, buffers are typically empty. When a sudden load spike is seen by the server, multiple threads may want to expand the buffer at the same time. Using a compare and swap to allow multiple pages to be added, possibly freeing duplicate pages on collisions, does not work well because the amount of code involved when creating a new page can be significant (PFS_thread), causing MANY collisions between (2-b) and (2-d). A huge number of collisions (which can happen when thousands of new connections hits the server after a restart) leads to a huge memory consumption, and to OOM. To mitigate this, we use here a mutex, to enforce that only ONE page is added at a time, so that scaling the buffer happens in a predictable and controlled manner. */ pthread_mutex_lock(& m_critical_section); /* Peek again for pages added by collaborating threads, this time as the only thread allowed to expand the buffer */ /* (2-b) Atomic Load, array= m_pages[current_page_count] */ ptr= my_atomic_loadptr(typed_addr); array= static_cast<array_type *>(ptr); if (array == NULL) { /* (2-c) Found no page, allocate a new one */ array= new array_type(); builtin_memory_scalable_buffer.count_alloc(sizeof (array_type)); array->m_max= get_page_logical_size(current_page_count); int rc= m_allocator->alloc_array(array); if (rc != 0) { m_allocator->free_array(array); delete array; builtin_memory_scalable_buffer.count_free(sizeof (array_type)); m_lost++; pthread_mutex_unlock(& m_critical_section); return NULL; } /* Keep a pointer to this container, for static_deallocate(). */ array->m_container= reinterpret_cast<PFS_opaque_container *> (this); /* (2-d) Atomic STORE, m_pages[current_page_count] = array */ ptr= array; my_atomic_storeptr(typed_addr, ptr); /* Advertise the new page */ PFS_atomic::add_u32(& m_max_page_index.m_u32, 1); } pthread_mutex_unlock(& m_critical_section); // ================================================================== // END CRITICAL SECTION -- buffer expand // ================================================================== } assert(array != NULL); pfs= array->allocate(dirty_state); if (pfs != NULL) { /* Keep a pointer to the parent page, for deallocate(). */ pfs->m_page= reinterpret_cast<PFS_opaque_container_page *> (array); return pfs; } current_page_count++; } m_lost++; m_full= true; return NULL; }
O3
c
PFS_buffer_scalable_container<PFS_cond, 256, 256, PFS_buffer_default_array<PFS_cond>, PFS_buffer_default_allocator<PFS_cond>>::allocate(pfs_dirty_state*): pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rsi, -0x38(%rbp) movq %rdi, %rbx cmpb $0x1, 0x9(%rdi) jne 0x33a78 incq (%rbx) jmp 0x33bd2 movl 0x58(%rbx), %r12d testl %r12d, %r12d je 0x33ac0 movl 0x18(%rbx), %eax leal (%rax,%r12), %r14d cmpl %r14d, %eax jae 0x33ac0 xorl %edx, %edx divl %r12d movq 0xa8(%rbx,%rdx,8), %r15 testq %r15, %r15 je 0x33ab4 movq %r15, %rdi movq -0x38(%rbp), %rsi callq 0x3482a testq %rax, %rax jne 0x33be9 movl $0x1, %eax lock xaddl %eax, 0x18(%rbx) jmp 0x33a88 cmpq %r12, 0x98(%rbx) jbe 0x33bcb leaq 0x8b0(%rbx), %r14 leal 0x1(%r12), %r15d movl $0xc0, %eax addq 0x2e34d3(%rip), %rax # 0x316fb8 movq %rax, -0x48(%rbp) movq %r14, -0x30(%rbp) movq 0xa8(%rbx,%r12,8), %r13 movl %r15d, %eax movq %rax, -0x40(%rbp) testq %r13, %r13 jne 0x33b9f movq %r14, %rdi callq 0x264d0 movq 0xa8(%rbx,%r12,8), %r13 testq %r13, %r13 jne 0x33b97 movl $0x60, %edi callq 0x26330 movq %rax, %r13 xorps %xmm0, %xmm0 movaps %xmm0, (%rax) movaps %xmm0, 0x10(%rax) movaps %xmm0, 0x20(%rax) movaps %xmm0, 0x30(%rax) movaps %xmm0, 0x40(%rax) movaps %xmm0, 0x50(%rax) movl $0x60, %esi movq -0x48(%rbp), %rdi callq 0x3445a movq -0x40(%rbp), %rax cmpq %rax, 0x98(%rbx) movl 0xa0(%rbx), %eax movl $0x100, %ecx # imm = 0x100 cmovaq %rcx, %rax movq %rax, 0x50(%r13) movq 0x8a8(%rbx), %rdi movq %r13, %rsi callq 0x34890 testl %eax, %eax jne 0x33bef movq %rbx, 0x58(%r13) movq %r13, %rax xchgq %rax, 0xa8(%rbx,%r12,8) lock incl 0x58(%rbx) movq -0x30(%rbp), %r14 movq %r14, %rdi callq 0x26250 movq %r13, %rdi movq -0x38(%rbp), %rsi callq 0x3482a testq %rax, %rax jne 0x33be3 incl %r15d movq -0x40(%rbp), %rax movq %rax, %r12 cmpq %rax, 0x98(%rbx) movq -0x30(%rbp), %r14 ja 0x33aed incq (%rbx) movb $0x1, 0x9(%rbx) xorl %eax, %eax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %r13, 0x8(%rax) jmp 0x33bd4 movq %r15, 0x8(%rax) jmp 0x33bd4 movq 0x8a8(%rbx), %rax movq (%rax), %rdi movq 0x48(%r13), %rcx movq 0x50(%r13), %rsi movl $0x140, %edx # imm = 0x140 callq 0x2cdb1 movl $0x60, %esi movq %r13, %rdi callq 0x26340 movl $0xc0, %edi addq 0x2e3394(%rip), %rdi # 0x316fb8 movl $0x60, %esi callq 0x34490 incq (%rbx) movq -0x30(%rbp), %rdi callq 0x26250 jmp 0x33bd2
_ZN29PFS_buffer_scalable_containerI10PFS_socketLi256ELi256E24PFS_buffer_default_arrayIS0_E28PFS_buffer_default_allocatorIS0_EE8allocateEP15pfs_dirty_state: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov [rbp+var_38], rsi mov rbx, rdi cmp byte ptr [rdi+9], 1 jnz short loc_33A78 inc qword ptr [rbx] jmp loc_33BD2 loc_33A78: mov r12d, [rbx+58h] test r12d, r12d jz short loc_33AC0 mov eax, [rbx+18h] lea r14d, [rax+r12] loc_33A88: cmp eax, r14d jnb short loc_33AC0 xor edx, edx div r12d mov r15, [rbx+rdx*8+0A8h] test r15, r15 jz short loc_33AB4 mov rdi, r15 mov rsi, [rbp+var_38] call _ZN24PFS_buffer_default_arrayI10PFS_socketE8allocateEP15pfs_dirty_state; PFS_buffer_default_array<PFS_socket>::allocate(pfs_dirty_state *) test rax, rax jnz loc_33BE9 loc_33AB4: mov eax, 1 lock xadd [rbx+18h], eax jmp short loc_33A88 loc_33AC0: cmp [rbx+98h], r12 jbe loc_33BCB lea r14, [rbx+8B0h] lea r15d, [r12+1] mov eax, 0C0h add rax, cs:builtin_memory_scalable_buffer_ptr mov [rbp+var_48], rax mov [rbp+var_30], r14 loc_33AED: mov r13, [rbx+r12*8+0A8h] mov eax, r15d mov [rbp+var_40], rax test r13, r13 jnz loc_33B9F mov rdi, r14 call _pthread_mutex_lock mov r13, [rbx+r12*8+0A8h] test r13, r13 jnz short loc_33B97 mov edi, 60h ; '`'; unsigned __int64 call __Znwm; operator new(ulong) mov r13, rax xorps xmm0, xmm0 movaps xmmword ptr [rax], xmm0 movaps xmmword ptr [rax+10h], xmm0 movaps xmmword ptr [rax+20h], xmm0 movaps xmmword ptr [rax+30h], xmm0 movaps xmmword ptr [rax+40h], xmm0 movaps xmmword ptr [rax+50h], xmm0 mov esi, 60h ; '`'; unsigned __int64 mov rdi, [rbp+var_48]; this call _ZN15PFS_memory_stat19count_builtin_allocEm; PFS_memory_stat::count_builtin_alloc(ulong) mov rax, [rbp+var_40] cmp [rbx+98h], rax mov eax, [rbx+0A0h] mov ecx, 100h cmova rax, rcx mov [r13+50h], rax mov rdi, [rbx+8A8h] mov rsi, r13 call _ZN28PFS_buffer_default_allocatorI10PFS_socketE11alloc_arrayEP24PFS_buffer_default_arrayIS0_E; PFS_buffer_default_allocator<PFS_socket>::alloc_array(PFS_buffer_default_array<PFS_socket> *) test eax, eax jnz short loc_33BEF mov [r13+58h], rbx mov rax, r13 xchg rax, [rbx+r12*8+0A8h] lock inc dword ptr [rbx+58h] mov r14, [rbp+var_30] loc_33B97: mov rdi, r14 call _pthread_mutex_unlock loc_33B9F: mov rdi, r13 mov rsi, [rbp+var_38] call _ZN24PFS_buffer_default_arrayI10PFS_socketE8allocateEP15pfs_dirty_state; PFS_buffer_default_array<PFS_socket>::allocate(pfs_dirty_state *) test rax, rax jnz short loc_33BE3 inc r15d mov rax, [rbp+var_40] mov r12, rax cmp [rbx+98h], rax mov r14, [rbp+var_30] ja loc_33AED loc_33BCB: inc qword ptr [rbx] mov byte ptr [rbx+9], 1 loc_33BD2: xor eax, eax loc_33BD4: add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_33BE3: mov [rax+8], r13 jmp short loc_33BD4 loc_33BE9: mov [rax+8], r15 jmp short loc_33BD4 loc_33BEF: mov rax, [rbx+8A8h] mov rdi, [rax] mov rcx, [r13+48h] mov rsi, [r13+50h] mov edx, 140h call _Z14pfs_free_arrayP24PFS_builtin_memory_classmmPv; pfs_free_array(PFS_builtin_memory_class *,ulong,ulong,void *) mov esi, 60h ; '`'; unsigned __int64 mov rdi, r13; void * call __ZdlPvm; operator delete(void *,ulong) mov edi, 0C0h add rdi, cs:builtin_memory_scalable_buffer_ptr; this mov esi, 60h ; '`'; unsigned __int64 call _ZN15PFS_memory_stat18count_builtin_freeEm; PFS_memory_stat::count_builtin_free(ulong) inc qword ptr [rbx] mov rdi, [rbp+var_30] call _pthread_mutex_unlock jmp short loc_33BD2
long long PFS_buffer_scalable_container<PFS_socket,256,256,PFS_buffer_default_array<PFS_socket>,PFS_buffer_default_allocator<PFS_socket>>::allocate( long long a1, long long a2) { unsigned long long v2; // r12 unsigned __int32 v3; // eax unsigned __int32 v4; // r14d long long v5; // rdx long long v6; // r15 long long result; // rax long long v8; // r14 unsigned int v9; // r15d long long v10; // r13 long long v11; // rax unsigned long long v12; // [rsp+10h] [rbp-40h] if ( *(_BYTE *)(a1 + 9) == 1 ) { ++*(_QWORD *)a1; return 0LL; } v2 = *(unsigned int *)(a1 + 88); if ( (_DWORD)v2 ) { v3 = *(_DWORD *)(a1 + 24); v4 = v3 + v2; while ( v3 < v4 ) { v5 = v3 % (unsigned int)v2; v6 = *(_QWORD *)(a1 + 8 * v5 + 168); if ( v6 ) { result = PFS_buffer_default_array<PFS_socket>::allocate(*(_QWORD *)(a1 + 8 * v5 + 168), a2); if ( result ) { *(_QWORD *)(result + 8) = v6; return result; } } v3 = _InterlockedExchangeAdd((volatile signed __int32 *)(a1 + 24), 1u); } } if ( *(_QWORD *)(a1 + 152) <= v2 ) { LABEL_20: ++*(_QWORD *)a1; *(_BYTE *)(a1 + 9) = 1; return 0LL; } v8 = a1 + 2224; v9 = v2 + 1; while ( 1 ) { v10 = *(_QWORD *)(a1 + 8 * v2 + 168); v12 = v9; if ( v10 ) goto LABEL_18; pthread_mutex_lock(v8); v10 = *(_QWORD *)(a1 + 8 * v2 + 168); if ( !v10 ) break; LABEL_17: pthread_mutex_unlock(v8); LABEL_18: result = PFS_buffer_default_array<PFS_socket>::allocate(v10, a2); if ( result ) { *(_QWORD *)(result + 8) = v10; return result; } ++v9; v2 = v12; v8 = a1 + 2224; if ( *(_QWORD *)(a1 + 152) <= v12 ) goto LABEL_20; } v10 = operator new(0x60uLL); *(_OWORD *)v10 = 0LL; *(_OWORD *)(v10 + 16) = 0LL; *(_OWORD *)(v10 + 32) = 0LL; *(_OWORD *)(v10 + 48) = 0LL; *(_OWORD *)(v10 + 64) = 0LL; *(_OWORD *)(v10 + 80) = 0LL; PFS_memory_stat::count_builtin_alloc((PFS_memory_stat *)((char *)&builtin_memory_scalable_buffer + 192), 0x60uLL); v11 = *(unsigned int *)(a1 + 160); if ( *(_QWORD *)(a1 + 152) > (unsigned long long)v9 ) v11 = 256LL; *(_QWORD *)(v10 + 80) = v11; if ( !(unsigned int)PFS_buffer_default_allocator<PFS_socket>::alloc_array(*(_QWORD *)(a1 + 2216), v10) ) { *(_QWORD *)(v10 + 88) = a1; _InterlockedExchange64((volatile long long *)(a1 + 8 * v2 + 168), v10); _InterlockedIncrement((volatile signed __int32 *)(a1 + 88)); v8 = a1 + 2224; goto LABEL_17; } pfs_free_array(**(_QWORD **)(a1 + 2216), *(_QWORD *)(v10 + 80), 320LL, *(_QWORD *)(v10 + 72)); operator delete((void *)v10, 0x60uLL); PFS_memory_stat::count_builtin_free((PFS_memory_stat *)((char *)&builtin_memory_scalable_buffer + 192), 0x60uLL); ++*(_QWORD *)a1; pthread_mutex_unlock(a1 + 2224); return 0LL; }
allocate: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV qword ptr [RBP + -0x38],RSI MOV RBX,RDI CMP byte ptr [RDI + 0x9],0x1 JNZ 0x00133a78 INC qword ptr [RBX] JMP 0x00133bd2 LAB_00133a78: MOV R12D,dword ptr [RBX + 0x58] TEST R12D,R12D JZ 0x00133ac0 MOV EAX,dword ptr [RBX + 0x18] LEA R14D,[RAX + R12*0x1] LAB_00133a88: CMP EAX,R14D JNC 0x00133ac0 XOR EDX,EDX DIV R12D MOV R15,qword ptr [RBX + RDX*0x8 + 0xa8] TEST R15,R15 JZ 0x00133ab4 MOV RDI,R15 MOV RSI,qword ptr [RBP + -0x38] CALL 0x0013482a TEST RAX,RAX JNZ 0x00133be9 LAB_00133ab4: MOV EAX,0x1 XADD.LOCK dword ptr [RBX + 0x18],EAX JMP 0x00133a88 LAB_00133ac0: CMP qword ptr [RBX + 0x98],R12 JBE 0x00133bcb LEA R14,[RBX + 0x8b0] LEA R15D,[R12 + 0x1] MOV EAX,0xc0 ADD RAX,qword ptr [0x00416fb8] MOV qword ptr [RBP + -0x48],RAX MOV qword ptr [RBP + -0x30],R14 LAB_00133aed: MOV R13,qword ptr [RBX + R12*0x8 + 0xa8] MOV EAX,R15D MOV qword ptr [RBP + -0x40],RAX TEST R13,R13 JNZ 0x00133b9f MOV RDI,R14 CALL 0x001264d0 MOV R13,qword ptr [RBX + R12*0x8 + 0xa8] TEST R13,R13 JNZ 0x00133b97 MOV EDI,0x60 CALL 0x00126330 MOV R13,RAX XORPS XMM0,XMM0 MOVAPS xmmword ptr [RAX],XMM0 MOVAPS xmmword ptr [RAX + 0x10],XMM0 MOVAPS xmmword ptr [RAX + 0x20],XMM0 MOVAPS xmmword ptr [RAX + 0x30],XMM0 MOVAPS xmmword ptr [RAX + 0x40],XMM0 MOVAPS xmmword ptr [RAX + 0x50],XMM0 MOV ESI,0x60 MOV RDI,qword ptr [RBP + -0x48] CALL 0x0013445a MOV RAX,qword ptr [RBP + -0x40] CMP qword ptr [RBX + 0x98],RAX MOV EAX,dword ptr [RBX + 0xa0] MOV ECX,0x100 CMOVA RAX,RCX MOV qword ptr [R13 + 0x50],RAX MOV RDI,qword ptr [RBX + 0x8a8] MOV RSI,R13 CALL 0x00134890 TEST EAX,EAX JNZ 0x00133bef MOV qword ptr [R13 + 0x58],RBX MOV RAX,R13 XCHG qword ptr [RBX + R12*0x8 + 0xa8],RAX INC.LOCK dword ptr [RBX + 0x58] MOV R14,qword ptr [RBP + -0x30] LAB_00133b97: MOV RDI,R14 CALL 0x00126250 LAB_00133b9f: MOV RDI,R13 MOV RSI,qword ptr [RBP + -0x38] CALL 0x0013482a TEST RAX,RAX JNZ 0x00133be3 INC R15D MOV RAX,qword ptr [RBP + -0x40] MOV R12,RAX CMP qword ptr [RBX + 0x98],RAX MOV R14,qword ptr [RBP + -0x30] JA 0x00133aed LAB_00133bcb: INC qword ptr [RBX] MOV byte ptr [RBX + 0x9],0x1 LAB_00133bd2: XOR EAX,EAX LAB_00133bd4: ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00133be3: MOV qword ptr [RAX + 0x8],R13 JMP 0x00133bd4 LAB_00133be9: MOV qword ptr [RAX + 0x8],R15 JMP 0x00133bd4 LAB_00133bef: MOV RAX,qword ptr [RBX + 0x8a8] MOV RDI,qword ptr [RAX] MOV RCX,qword ptr [R13 + 0x48] MOV RSI,qword ptr [R13 + 0x50] MOV EDX,0x140 CALL 0x0012cdb1 MOV ESI,0x60 MOV RDI,R13 CALL 0x00126340 MOV EDI,0xc0 ADD RDI,qword ptr [0x00416fb8] MOV ESI,0x60 CALL 0x00134490 INC qword ptr [RBX] MOV RDI,qword ptr [RBP + -0x30] CALL 0x00126250 JMP 0x00133bd2
/* PFS_buffer_scalable_container<PFS_socket, 256, 256, PFS_buffer_default_array<PFS_socket>, PFS_buffer_default_allocator<PFS_socket> >::allocate(pfs_dirty_state*) */ long __thiscall PFS_buffer_scalable_container<PFS_socket,256,256,PFS_buffer_default_array<PFS_socket>,PFS_buffer_default_allocator<PFS_socket>> ::allocate(PFS_buffer_scalable_container<PFS_socket,256,256,PFS_buffer_default_array<PFS_socket>,PFS_buffer_default_allocator<PFS_socket>> *this,pfs_dirty_state *param_1) { PFS_buffer_scalable_container<PFS_socket,256,256,PFS_buffer_default_array<PFS_socket>,PFS_buffer_default_allocator<PFS_socket>> *pPVar1; pthread_mutex_t *__mutex; uint uVar2; int iVar3; long lVar4; PFS_memory_stat *this_00; ulong uVar5; PFS_buffer_default_array<PFS_socket> *pPVar6; ulong uVar7; ulong uVar8; uint uVar9; uint uVar10; if (this[9] == (PFS_buffer_scalable_container<PFS_socket,256,256,PFS_buffer_default_array<PFS_socket>,PFS_buffer_default_allocator<PFS_socket>> )0x1) { *(long *)this = *(long *)this + 1; } else { uVar10 = *(uint *)(this + 0x58); uVar8 = (ulong)uVar10; if (uVar10 != 0) { uVar2 = *(uint *)(this + 0x18); uVar9 = uVar2 + uVar10; while (uVar2 < uVar9) { pPVar6 = *(PFS_buffer_default_array<PFS_socket> **) (this + ((ulong)uVar2 % uVar8) * 8 + 0xa8); if ((pPVar6 != (PFS_buffer_default_array<PFS_socket> *)0x0) && (lVar4 = PFS_buffer_default_array<PFS_socket>::allocate(pPVar6,param_1), lVar4 != 0)) { *(PFS_buffer_default_array<PFS_socket> **)(lVar4 + 8) = pPVar6; return lVar4; } LOCK(); pPVar1 = this + 0x18; uVar2 = *(uint *)pPVar1; *(uint *)pPVar1 = *(uint *)pPVar1 + 1; UNLOCK(); } } if (uVar8 < *(ulong *)(this + 0x98)) { __mutex = (pthread_mutex_t *)(this + 0x8b0); this_00 = (PFS_memory_stat *)(PTR_builtin_memory_scalable_buffer_00416fb8 + 0xc0); do { uVar10 = uVar10 + 1; pPVar6 = *(PFS_buffer_default_array<PFS_socket> **)(this + uVar8 * 8 + 0xa8); uVar5 = (ulong)uVar10; if (pPVar6 == (PFS_buffer_default_array<PFS_socket> *)0x0) { pthread_mutex_lock(__mutex); pPVar6 = *(PFS_buffer_default_array<PFS_socket> **)(this + uVar8 * 8 + 0xa8); if (pPVar6 == (PFS_buffer_default_array<PFS_socket> *)0x0) { pPVar6 = (PFS_buffer_default_array<PFS_socket> *)operator_new(0x60); *(int8 *)pPVar6 = 0; *(int8 *)((PFS_buffer_default_array *)pPVar6 + 8) = 0; *(int8 *)((PFS_buffer_default_array *)pPVar6 + 0x10) = 0; *(int8 *)((PFS_buffer_default_array *)pPVar6 + 0x18) = 0; *(int8 *)((PFS_buffer_default_array *)pPVar6 + 0x20) = 0; *(int8 *)((PFS_buffer_default_array *)pPVar6 + 0x28) = 0; *(int8 *)((PFS_buffer_default_array *)pPVar6 + 0x30) = 0; *(int8 *)((PFS_buffer_default_array *)pPVar6 + 0x38) = 0; *(int8 *)((PFS_buffer_default_array *)pPVar6 + 0x40) = 0; *(int8 *)((PFS_buffer_default_array *)pPVar6 + 0x48) = 0; *(int8 *)((PFS_buffer_default_array *)pPVar6 + 0x50) = 0; *(int8 *)((PFS_buffer_default_array *)pPVar6 + 0x58) = 0; PFS_memory_stat::count_builtin_alloc(this_00,0x60); uVar7 = (ulong)*(uint *)(this + 0xa0); if (uVar5 < *(ulong *)(this + 0x98)) { uVar7 = 0x100; } *(ulong *)((PFS_buffer_default_array *)pPVar6 + 0x50) = uVar7; iVar3 = PFS_buffer_default_allocator<PFS_socket>::alloc_array (*(PFS_buffer_default_allocator<PFS_socket> **)(this + 0x8a8), (PFS_buffer_default_array *)pPVar6); if (iVar3 != 0) { pfs_free_array((PFS_builtin_memory_class *)**(int8 **)(this + 0x8a8), *(ulong *)((PFS_buffer_default_array *)pPVar6 + 0x50),0x140, *(void **)((PFS_buffer_default_array *)pPVar6 + 0x48)); operator_delete(pPVar6,0x60); PFS_memory_stat::count_builtin_free ((PFS_memory_stat *)(PTR_builtin_memory_scalable_buffer_00416fb8 + 0xc0), 0x60); *(long *)this = *(long *)this + 1; pthread_mutex_unlock(__mutex); return 0; } *(PFS_buffer_scalable_container<PFS_socket,256,256,PFS_buffer_default_array<PFS_socket>,PFS_buffer_default_allocator<PFS_socket>> **)((PFS_buffer_default_array *)pPVar6 + 0x58) = this; LOCK(); *(PFS_buffer_default_array<PFS_socket> **)(this + uVar8 * 8 + 0xa8) = pPVar6; UNLOCK(); LOCK(); *(int *)(this + 0x58) = *(int *)(this + 0x58) + 1; UNLOCK(); } pthread_mutex_unlock(__mutex); } lVar4 = PFS_buffer_default_array<PFS_socket>::allocate(pPVar6,param_1); if (lVar4 != 0) { *(PFS_buffer_default_array<PFS_socket> **)(lVar4 + 8) = pPVar6; return lVar4; } uVar8 = uVar5; } while (uVar5 < *(ulong *)(this + 0x98)); } *(long *)this = *(long *)this + 1; this[9] = (PFS_buffer_scalable_container<PFS_socket,256,256,PFS_buffer_default_array<PFS_socket>,PFS_buffer_default_allocator<PFS_socket>> )0x1; } return 0; }
60,371
Vector4Subtract
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/raymath.h
RMAPI Vector4 Vector4Subtract(Vector4 v1, Vector4 v2) { Vector4 result = { v1.x - v2.x, v1.y - v2.y, v1.z - v2.z, v1.w - v2.w }; return result; }
O1
c
Vector4Subtract: subps %xmm2, %xmm0 subps %xmm3, %xmm1 retq
Vector4Subtract: subps xmm0, xmm2 subps xmm1, xmm3 retn
__m128 Vector4Subtract(__m128 a1, double a2, __m128 a3) { return _mm_sub_ps(a1, a3); }
Vector4Subtract: SUBPS XMM0,XMM2 SUBPS XMM1,XMM3 RET
int8 Vector4Subtract(int8 param_1,int8 param_2,int8 param_3) { return CONCAT44((float)((ulong)param_1 >> 0x20) - (float)((ulong)param_3 >> 0x20), (float)param_1 - (float)param_3); }
60,372
Vector4Subtract
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/raymath.h
RMAPI Vector4 Vector4Subtract(Vector4 v1, Vector4 v2) { Vector4 result = { v1.x - v2.x, v1.y - v2.y, v1.z - v2.z, v1.w - v2.w }; return result; }
O2
c
Vector4Subtract: subps %xmm2, %xmm0 subps %xmm3, %xmm1 retq
Vector4Subtract: subps xmm0, xmm2 subps xmm1, xmm3 retn
__m128 Vector4Subtract(__m128 a1, double a2, __m128 a3) { return _mm_sub_ps(a1, a3); }
Vector4Subtract: SUBPS XMM0,XMM2 SUBPS XMM1,XMM3 RET
int8 Vector4Subtract(int8 param_1,int8 param_2,int8 param_3) { return CONCAT44((float)((ulong)param_1 >> 0x20) - (float)((ulong)param_3 >> 0x20), (float)param_1 - (float)param_3); }
60,373
Vector4Subtract
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/raymath.h
RMAPI Vector4 Vector4Subtract(Vector4 v1, Vector4 v2) { Vector4 result = { v1.x - v2.x, v1.y - v2.y, v1.z - v2.z, v1.w - v2.w }; return result; }
O3
c
Vector4Subtract: subps %xmm2, %xmm0 subps %xmm3, %xmm1 retq
Vector4Subtract: subps xmm0, xmm2 subps xmm1, xmm3 retn
__m128 Vector4Subtract(__m128 a1, double a2, __m128 a3) { return _mm_sub_ps(a1, a3); }
Vector4Subtract: SUBPS XMM0,XMM2 SUBPS XMM1,XMM3 RET
int8 Vector4Subtract(int8 param_1,int8 param_2,int8 param_3) { return CONCAT44((float)((ulong)param_1 >> 0x20) - (float)((ulong)param_3 >> 0x20), (float)param_1 - (float)param_3); }
60,374
my_convert_using_func
eloqsql/strings/ctype.c
uint32 my_convert_using_func(char *to, size_t to_length, CHARSET_INFO *to_cs, my_charset_conv_wc_mb wc_mb, const char *from, size_t from_length, CHARSET_INFO *from_cs, my_charset_conv_mb_wc mb_wc, uint *errors) { int cnvres; my_wc_t wc; const uchar *from_end= (const uchar*) from + from_length; char *to_start= to; uchar *to_end= (uchar*) to + to_length; uint error_count= 0; while (1) { if ((cnvres= (*mb_wc)(from_cs, &wc, (uchar*) from, from_end)) > 0) from+= cnvres; else if (cnvres == MY_CS_ILSEQ) { error_count++; from++; wc= '?'; } else if (cnvres > MY_CS_TOOSMALL) { /* A correct multibyte sequence detected But it doesn't have Unicode mapping. */ error_count++; from+= (-cnvres); wc= '?'; } else { if ((uchar *) from >= from_end) break; /* End of line */ /* Incomplete byte sequence */ error_count++; from++; wc= '?'; } outp: if ((cnvres= (*wc_mb)(to_cs, wc, (uchar*) to, to_end)) > 0) to+= cnvres; else if (cnvres == MY_CS_ILUNI && wc != '?') { error_count++; wc= '?'; goto outp; } else break; } *errors= error_count; return (uint32) (to - to_start); }
O0
c
my_convert_using_func: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq 0x20(%rbp), %rax movq 0x18(%rbp), %rax movq 0x10(%rbp), %rax 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 -0x28(%rbp), %rax addq -0x30(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x8(%rbp), %rax addq -0x10(%rbp), %rax movq %rax, -0x58(%rbp) movl $0x0, -0x5c(%rbp) movq 0x18(%rbp), %rax movq 0x10(%rbp), %rdi movq -0x28(%rbp), %rdx movq -0x48(%rbp), %rcx leaq -0x40(%rbp), %rsi callq *%rax movl %eax, -0x34(%rbp) cmpl $0x0, %eax jle 0xbc4b4 movl -0x34(%rbp), %ecx movq -0x28(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x28(%rbp) jmp 0xbc532 cmpl $0x0, -0x34(%rbp) jne 0xbc4d9 movl -0x5c(%rbp), %eax addl $0x1, %eax movl %eax, -0x5c(%rbp) movq -0x28(%rbp), %rax addq $0x1, %rax movq %rax, -0x28(%rbp) movq $0x3f, -0x40(%rbp) jmp 0xbc530 cmpl $-0x65, -0x34(%rbp) jle 0xbc505 movl -0x5c(%rbp), %eax addl $0x1, %eax movl %eax, -0x5c(%rbp) xorl %ecx, %ecx subl -0x34(%rbp), %ecx movq -0x28(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x28(%rbp) movq $0x3f, -0x40(%rbp) jmp 0xbc52e movq -0x28(%rbp), %rax cmpq -0x48(%rbp), %rax jb 0xbc511 jmp 0xbc58c movl -0x5c(%rbp), %eax addl $0x1, %eax movl %eax, -0x5c(%rbp) movq -0x28(%rbp), %rax addq $0x1, %rax movq %rax, -0x28(%rbp) movq $0x3f, -0x40(%rbp) jmp 0xbc530 jmp 0xbc532 jmp 0xbc534 movq -0x20(%rbp), %rax movq -0x18(%rbp), %rdi movq -0x40(%rbp), %rsi movq -0x8(%rbp), %rdx movq -0x58(%rbp), %rcx callq *%rax movl %eax, -0x34(%rbp) cmpl $0x0, %eax jle 0xbc565 movl -0x34(%rbp), %ecx movq -0x8(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x8(%rbp) jmp 0xbc587 cmpl $0x0, -0x34(%rbp) jne 0xbc585 cmpq $0x3f, -0x40(%rbp) je 0xbc585 movl -0x5c(%rbp), %eax addl $0x1, %eax movl %eax, -0x5c(%rbp) movq $0x3f, -0x40(%rbp) jmp 0xbc534 jmp 0xbc58c jmp 0xbc483 movl -0x5c(%rbp), %ecx movq 0x20(%rbp), %rax movl %ecx, (%rax) movq -0x8(%rbp), %rax movq -0x50(%rbp), %rcx subq %rcx, %rax addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_convert_using_func: push rbp mov rbp, rsp sub rsp, 60h mov rax, [rbp+arg_10] mov rax, [rbp+arg_8] mov rax, [rbp+arg_0] mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov [rbp+var_30], r9 mov rax, [rbp+var_28] add rax, [rbp+var_30] mov [rbp+var_48], rax mov rax, [rbp+var_8] mov [rbp+var_50], rax mov rax, [rbp+var_8] add rax, [rbp+var_10] mov [rbp+var_58], rax mov [rbp+var_5C], 0 loc_BC483: mov rax, [rbp+arg_8] mov rdi, [rbp+arg_0] mov rdx, [rbp+var_28] mov rcx, [rbp+var_48] lea rsi, [rbp+var_40] call rax mov [rbp+var_34], eax cmp eax, 0 jle short loc_BC4B4 mov ecx, [rbp+var_34] mov rax, [rbp+var_28] movsxd rcx, ecx add rax, rcx mov [rbp+var_28], rax jmp short loc_BC532 loc_BC4B4: cmp [rbp+var_34], 0 jnz short loc_BC4D9 mov eax, [rbp+var_5C] add eax, 1 mov [rbp+var_5C], eax mov rax, [rbp+var_28] add rax, 1 mov [rbp+var_28], rax mov [rbp+var_40], 3Fh ; '?' jmp short loc_BC530 loc_BC4D9: cmp [rbp+var_34], 0FFFFFF9Bh jle short loc_BC505 mov eax, [rbp+var_5C] add eax, 1 mov [rbp+var_5C], eax xor ecx, ecx sub ecx, [rbp+var_34] mov rax, [rbp+var_28] movsxd rcx, ecx add rax, rcx mov [rbp+var_28], rax mov [rbp+var_40], 3Fh ; '?' jmp short loc_BC52E loc_BC505: mov rax, [rbp+var_28] cmp rax, [rbp+var_48] jb short loc_BC511 jmp short loc_BC58C loc_BC511: mov eax, [rbp+var_5C] add eax, 1 mov [rbp+var_5C], eax mov rax, [rbp+var_28] add rax, 1 mov [rbp+var_28], rax mov [rbp+var_40], 3Fh ; '?' loc_BC52E: jmp short $+2 loc_BC530: jmp short $+2 loc_BC532: jmp short $+2 loc_BC534: mov rax, [rbp+var_20] mov rdi, [rbp+var_18] mov rsi, [rbp+var_40] mov rdx, [rbp+var_8] mov rcx, [rbp+var_58] call rax mov [rbp+var_34], eax cmp eax, 0 jle short loc_BC565 mov ecx, [rbp+var_34] mov rax, [rbp+var_8] movsxd rcx, ecx add rax, rcx mov [rbp+var_8], rax jmp short loc_BC587 loc_BC565: cmp [rbp+var_34], 0 jnz short loc_BC585 cmp [rbp+var_40], 3Fh ; '?' jz short loc_BC585 mov eax, [rbp+var_5C] add eax, 1 mov [rbp+var_5C], eax mov [rbp+var_40], 3Fh ; '?' jmp short loc_BC534 loc_BC585: jmp short loc_BC58C loc_BC587: jmp loc_BC483 loc_BC58C: mov ecx, [rbp+var_5C] mov rax, [rbp+arg_10] mov [rax], ecx mov rax, [rbp+var_8] mov rcx, [rbp+var_50] sub rax, rcx add rsp, 60h pop rbp retn
long long my_convert_using_func( long long a1, long long a2, long long a3, long long ( *a4)(long long, long long, long long, long long), unsigned long long a5, long long a6, long long a7, long long ( *a8)(long long, long long *, unsigned long long, unsigned long long), _DWORD *a9) { int v10; // [rsp+4h] [rbp-5Ch] unsigned long long v11; // [rsp+18h] [rbp-48h] long long v12; // [rsp+20h] [rbp-40h] BYREF int v13; // [rsp+2Ch] [rbp-34h] long long v14; // [rsp+30h] [rbp-30h] unsigned long long v15; // [rsp+38h] [rbp-28h] long long ( *v16)(long long, long long, long long, long long); // [rsp+40h] [rbp-20h] long long v17; // [rsp+48h] [rbp-18h] long long v18; // [rsp+50h] [rbp-10h] long long v19; // [rsp+58h] [rbp-8h] v19 = a1; v18 = a2; v17 = a3; v16 = a4; v15 = a5; v14 = a6; v11 = a6 + a5; v10 = 0; while ( 1 ) { v13 = a8(a7, &v12, v15, v11); if ( v13 > 0 ) { v15 += v13; goto LABEL_10; } if ( !v13 ) { ++v10; ++v15; v12 = 63LL; goto LABEL_10; } if ( v13 > -101 ) { ++v10; v15 += -v13; v12 = 63LL; goto LABEL_10; } if ( v15 >= v11 ) break; ++v10; ++v15; v12 = 63LL; LABEL_10: while ( 1 ) { v13 = v16(v17, v12, v19, a2 + a1); if ( v13 > 0 ) break; if ( v13 || v12 == 63 ) goto LABEL_15; ++v10; v12 = 63LL; } v19 += v13; } LABEL_15: *a9 = v10; return v19 - a1; }
my_convert_using_func: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV RAX,qword ptr [RBP + 0x20] MOV RAX,qword ptr [RBP + 0x18] MOV RAX,qword ptr [RBP + 0x10] MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV qword ptr [RBP + -0x30],R9 MOV RAX,qword ptr [RBP + -0x28] ADD RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x8] ADD RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x58],RAX MOV dword ptr [RBP + -0x5c],0x0 LAB_001bc483: MOV RAX,qword ptr [RBP + 0x18] MOV RDI,qword ptr [RBP + 0x10] MOV RDX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x48] LEA RSI,[RBP + -0x40] CALL RAX MOV dword ptr [RBP + -0x34],EAX CMP EAX,0x0 JLE 0x001bc4b4 MOV ECX,dword ptr [RBP + -0x34] MOV RAX,qword ptr [RBP + -0x28] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x28],RAX JMP 0x001bc532 LAB_001bc4b4: CMP dword ptr [RBP + -0x34],0x0 JNZ 0x001bc4d9 MOV EAX,dword ptr [RBP + -0x5c] ADD EAX,0x1 MOV dword ptr [RBP + -0x5c],EAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x1 MOV qword ptr [RBP + -0x28],RAX MOV qword ptr [RBP + -0x40],0x3f JMP 0x001bc530 LAB_001bc4d9: CMP dword ptr [RBP + -0x34],-0x65 JLE 0x001bc505 MOV EAX,dword ptr [RBP + -0x5c] ADD EAX,0x1 MOV dword ptr [RBP + -0x5c],EAX XOR ECX,ECX SUB ECX,dword ptr [RBP + -0x34] MOV RAX,qword ptr [RBP + -0x28] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x28],RAX MOV qword ptr [RBP + -0x40],0x3f JMP 0x001bc52e LAB_001bc505: MOV RAX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RBP + -0x48] JC 0x001bc511 JMP 0x001bc58c LAB_001bc511: MOV EAX,dword ptr [RBP + -0x5c] ADD EAX,0x1 MOV dword ptr [RBP + -0x5c],EAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x1 MOV qword ptr [RBP + -0x28],RAX MOV qword ptr [RBP + -0x40],0x3f LAB_001bc52e: JMP 0x001bc530 LAB_001bc530: JMP 0x001bc532 LAB_001bc532: JMP 0x001bc534 LAB_001bc534: MOV RAX,qword ptr [RBP + -0x20] MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x40] MOV RDX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RBP + -0x58] CALL RAX MOV dword ptr [RBP + -0x34],EAX CMP EAX,0x0 JLE 0x001bc565 MOV ECX,dword ptr [RBP + -0x34] MOV RAX,qword ptr [RBP + -0x8] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x8],RAX JMP 0x001bc587 LAB_001bc565: CMP dword ptr [RBP + -0x34],0x0 JNZ 0x001bc585 CMP qword ptr [RBP + -0x40],0x3f JZ 0x001bc585 MOV EAX,dword ptr [RBP + -0x5c] ADD EAX,0x1 MOV dword ptr [RBP + -0x5c],EAX MOV qword ptr [RBP + -0x40],0x3f JMP 0x001bc534 LAB_001bc585: JMP 0x001bc58c LAB_001bc587: JMP 0x001bc483 LAB_001bc58c: MOV ECX,dword ptr [RBP + -0x5c] MOV RAX,qword ptr [RBP + 0x20] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RBP + -0x50] SUB RAX,RCX ADD RSP,0x60 POP RBP RET
long my_convert_using_func (long param_1,long param_2,int8 param_3,code *param_4,ulong param_5, long param_6,int8 param_7,code *param_8,int *param_9) { int local_64; long local_48; int local_3c; long local_38; ulong local_30; code *local_28; int8 local_20; long local_18; long local_10; local_64 = 0; local_38 = param_6; local_30 = param_5; local_28 = param_4; local_20 = param_3; local_18 = param_2; local_10 = param_1; do { local_3c = (*param_8)(param_7,&local_48,local_30); if (local_3c < 1) { if (local_3c == 0) { local_30 = local_30 + 1; } else if (local_3c < -100) { if (param_5 + param_6 <= local_30) { LAB_001bc58c: *param_9 = local_64; return local_10 - param_1; } local_30 = local_30 + 1; } else { local_30 = local_30 + (long)-local_3c; } local_64 = local_64 + 1; local_48 = 0x3f; } else { local_30 = local_30 + (long)local_3c; } while (local_3c = (*local_28)(local_20,local_48,local_10,param_1 + param_2), local_3c < 1) { if ((local_3c != 0) || (local_48 == 0x3f)) goto LAB_001bc58c; local_64 = local_64 + 1; local_48 = 0x3f; local_3c = 0; } local_10 = local_10 + local_3c; } while( true ); }
60,375
mysql_stmt_free_result_start
eloqsql/libmariadb/libmariadb/mariadb_async.c
int STDCALL mysql_stmt_free_result_start(my_bool *ret, MYSQL_STMT *stmt) { MK_ASYNC_START_BODY( mysql_stmt_free_result, stmt->mysql, { WIN_SET_NONBLOCKING(stmt->mysql) parms.stmt= stmt; }, TRUE, r_my_bool, /* If stmt->mysql==NULL then we will not block so can call directly. */ if (!stmt->mysql) { *ret= mysql_stmt_free_result(stmt); return 0; }) }
O0
c
mysql_stmt_free_result_start: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x18(%rbp), %rax cmpq $0x0, 0x38(%rax) jne 0x6f8f8 movq -0x18(%rbp), %rdi callq 0x5b8c0 movb %al, %cl movq -0x10(%rbp), %rax movb %cl, (%rax) movl $0x0, -0x4(%rbp) jmp 0x6fa06 movq -0x18(%rbp), %rax movq 0x38(%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 0xe2(%rip), %rsi # 0x6fa10 leaq -0x30(%rbp), %rdx callq 0x70f10 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 0x6f966 movq -0x28(%rbp), %rax movb $0x1, 0x15(%rax) movq -0x28(%rbp), %rax movl (%rax), %eax movl %eax, -0x4(%rbp) jmp 0x6fa06 cmpl $0x0, -0x1c(%rbp) jge 0x6f9f2 jmp 0x6f972 movq -0x18(%rbp), %rax movq 0x38(%rax), %rax movl $0x7d8, 0x90(%rax) # imm = 0x7D8 movq -0x18(%rbp), %rax movq 0x38(%rax), %rdi addq $0x297, %rdi # imm = 0x297 leaq 0x1da036(%rip), %rax # 0x2499d0 movq (%rax), %rsi movl $0x5, %edx callq 0x38140 movq -0x18(%rbp), %rax movq 0x38(%rax), %rax movb $0x0, 0x29c(%rax) movq -0x18(%rbp), %rax movq 0x38(%rax), %rdi addq $0x97, %rdi leaq 0x1da014(%rip), %rax # 0x2499e0 movq 0x40(%rax), %rsi movl $0x1ff, %edx # imm = 0x1FF callq 0x38140 movq -0x18(%rbp), %rax movq 0x38(%rax), %rax movb $0x0, 0x296(%rax) movq -0x10(%rbp), %rax movb $0x1, (%rax) jmp 0x6f9ff movq -0x28(%rbp), %rax movb 0x8(%rax), %cl movq -0x10(%rbp), %rax movb %cl, (%rax) movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x30, %rsp popq %rbp retq nop
mysql_stmt_free_result_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+38h], 0 jnz short loc_6F8F8 mov rdi, [rbp+var_18] call mysql_stmt_free_result mov cl, al mov rax, [rbp+var_10] mov [rax], cl mov [rbp+var_4], 0 jmp loc_6FA06 loc_6F8F8: mov rax, [rbp+var_18] mov rax, [rax+38h] 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_stmt_free_result_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_6F966 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_6FA06 loc_6F966: cmp [rbp+var_1C], 0 jge loc_6F9F2 jmp short $+2 loc_6F972: mov rax, [rbp+var_18] mov rax, [rax+38h] mov dword ptr [rax+90h], 7D8h mov rax, [rbp+var_18] mov rdi, [rax+38h] add rdi, 297h lea rax, SQLSTATE_UNKNOWN mov rsi, [rax] mov edx, 5 call _strncpy mov rax, [rbp+var_18] mov rax, [rax+38h] mov byte ptr [rax+29Ch], 0 mov rax, [rbp+var_18] mov rdi, [rax+38h] add rdi, 97h lea rax, client_errors mov rsi, [rax+40h] mov edx, 1FFh call _strncpy mov rax, [rbp+var_18] mov rax, [rax+38h] mov byte ptr [rax+296h], 0 mov rax, [rbp+var_10] mov byte ptr [rax], 1 jmp short loc_6F9FF loc_6F9F2: mov rax, [rbp+var_28] mov cl, [rax+8] mov rax, [rbp+var_10] mov [rax], cl loc_6F9FF: mov [rbp+var_4], 0 loc_6FA06: mov eax, [rbp+var_4] add rsp, 30h pop rbp retn
long long mysql_stmt_free_result_start(_BYTE *a1, long long a2) { long long v3; // [rsp+0h] [rbp-30h] BYREF _BYTE *v4; // [rsp+8h] [rbp-28h] int v5; // [rsp+14h] [rbp-1Ch] long long v6; // [rsp+18h] [rbp-18h] _BYTE *v7; // [rsp+20h] [rbp-10h] v7 = a1; v6 = a2; if ( *(_QWORD *)(a2 + 56) ) { v4 = *(_BYTE **)(*(_QWORD *)(*(_QWORD *)(v6 + 56) + 1152LL) + 40LL); v3 = v6; v4[20] = 1; v5 = my_context_spawn(v4 + 56, mysql_stmt_free_result_start_internal, &v3); v4[21] = 0; v4[20] = 0; if ( v5 <= 0 ) { if ( v5 >= 0 ) { *v7 = v4[8]; } else { *(_DWORD *)(*(_QWORD *)(v6 + 56) + 144LL) = 2008; strncpy(*(_QWORD *)(v6 + 56) + 663LL, SQLSTATE_UNKNOWN, 5LL); *(_BYTE *)(*(_QWORD *)(v6 + 56) + 668LL) = 0; strncpy(*(_QWORD *)(v6 + 56) + 151LL, client_errors[8], 511LL); *(_BYTE *)(*(_QWORD *)(v6 + 56) + 662LL) = 0; *v7 = 1; } return 0; } else { v4[21] = 1; return *(unsigned int *)v4; } } else { *v7 = mysql_stmt_free_result(v6); return 0; } }
mysql_stmt_free_result_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 + 0x38],0x0 JNZ 0x0016f8f8 MOV RDI,qword ptr [RBP + -0x18] CALL 0x0015b8c0 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],CL MOV dword ptr [RBP + -0x4],0x0 JMP 0x0016fa06 LAB_0016f8f8: MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x38] 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,[0x16fa10] LEA RDX,[RBP + -0x30] CALL 0x00170f10 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 0x0016f966 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 0x0016fa06 LAB_0016f966: CMP dword ptr [RBP + -0x1c],0x0 JGE 0x0016f9f2 JMP 0x0016f972 LAB_0016f972: MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x38] MOV dword ptr [RAX + 0x90],0x7d8 MOV RAX,qword ptr [RBP + -0x18] MOV RDI,qword ptr [RAX + 0x38] ADD RDI,0x297 LEA RAX,[0x3499d0] MOV RSI,qword ptr [RAX] MOV EDX,0x5 CALL 0x00138140 MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x38] MOV byte ptr [RAX + 0x29c],0x0 MOV RAX,qword ptr [RBP + -0x18] MOV RDI,qword ptr [RAX + 0x38] ADD RDI,0x97 LEA RAX,[0x3499e0] MOV RSI,qword ptr [RAX + 0x40] MOV EDX,0x1ff CALL 0x00138140 MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x38] MOV byte ptr [RAX + 0x296],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],0x1 JMP 0x0016f9ff LAB_0016f9f2: MOV RAX,qword ptr [RBP + -0x28] MOV CL,byte ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],CL LAB_0016f9ff: MOV dword ptr [RBP + -0x4],0x0 LAB_0016fa06: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x30 POP RBP RET
int4 mysql_stmt_free_result_start(int1 *param_1,long param_2) { int1 uVar1; long local_38; int4 *local_30; int local_24; long local_20; int1 *local_18; int4 local_c; local_20 = param_2; local_18 = param_1; if (*(long *)(param_2 + 0x38) == 0) { uVar1 = mysql_stmt_free_result(param_2); *local_18 = uVar1; local_c = 0; } else { local_30 = *(int4 **)(*(long *)(*(long *)(param_2 + 0x38) + 0x480) + 0x28); *(int1 *)(local_30 + 5) = 1; local_38 = param_2; local_24 = my_context_spawn(local_30 + 0xe,mysql_stmt_free_result_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 + 0x38) + 0x90) = 0x7d8; strncpy((char *)(*(long *)(local_20 + 0x38) + 0x297),SQLSTATE_UNKNOWN,5); *(int1 *)(*(long *)(local_20 + 0x38) + 0x29c) = 0; strncpy((char *)(*(long *)(local_20 + 0x38) + 0x97),PTR_s_Client_run_out_of_memory_00349a20, 0x1ff); *(int1 *)(*(long *)(local_20 + 0x38) + 0x296) = 0; *local_18 = 1; } else { *local_18 = *(int1 *)(local_30 + 2); } local_c = 0; } else { *(int1 *)((long)local_30 + 0x15) = 1; local_c = *local_30; } } return local_c; }
60,376
translog_flush_set_new_goal_and_wait
eloqsql/storage/maria/ma_loghandler.c
void translog_flush_set_new_goal_and_wait(TRANSLOG_ADDRESS lsn) { int flush_no= log_descriptor.flush_no; DBUG_ENTER("translog_flush_set_new_goal_and_wait"); DBUG_PRINT("enter", ("LSN: " LSN_FMT, LSN_IN_PARTS(lsn))); mysql_mutex_assert_owner(&log_descriptor.log_flush_lock); if (cmp_translog_addr(lsn, log_descriptor.next_pass_max_lsn) > 0) { log_descriptor.next_pass_max_lsn= lsn; log_descriptor.max_lsn_requester= pthread_self(); mysql_cond_broadcast(&log_descriptor.new_goal_cond); } while (flush_no == log_descriptor.flush_no) { mysql_cond_wait(&log_descriptor.log_flush_cond, &log_descriptor.log_flush_lock); } DBUG_VOID_RETURN; }
O0
c
translog_flush_set_new_goal_and_wait: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movl 0xc242a2(%rip), %eax # 0xc7b534 movl %eax, -0xc(%rbp) jmp 0x57297 jmp 0x57299 jmp 0x5729b movq -0x8(%rbp), %rax subq 0xc24292(%rip), %rax # 0xc7b538 cmpq $0x0, %rax jle 0x572d6 movq -0x8(%rbp), %rax movq %rax, 0xc24281(%rip) # 0xc7b538 callq 0x2a540 movq %rax, 0xc2427d(%rip) # 0xc7b540 leaq 0x423396(%rip), %rdi # 0x47a660 addq $0x800d88, %rdi # imm = 0x800D88 callq 0x57320 jmp 0x572d8 movl -0xc(%rbp), %eax movl 0xc24253(%rip), %ecx # 0xc7b534 cmpl %ecx, %eax jne 0x57310 leaq 0x423374(%rip), %rsi # 0x47a660 movq %rsi, %rdi addq $0x800d50, %rdi # imm = 0x800D50 addq $0x800d08, %rsi # imm = 0x800D08 leaq 0xfbcb5(%rip), %rdx # 0x152fb9 movl $0x1eac, %ecx # imm = 0x1EAC callq 0x51400 jmp 0x572d8 jmp 0x57312 jmp 0x57314 addq $0x10, %rsp popq %rbp retq nopw (%rax,%rax)
translog_flush_set_new_goal_and_wait: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov eax, cs:dword_C7B534 mov [rbp+var_C], eax jmp short $+2 loc_57297: jmp short $+2 loc_57299: jmp short $+2 loc_5729B: mov rax, [rbp+var_8] sub rax, cs:qword_C7B538 cmp rax, 0 jle short loc_572D6 mov rax, [rbp+var_8] mov cs:qword_C7B538, rax call _pthread_self mov cs:qword_C7B540, rax lea rdi, log_descriptor add rdi, 800D88h call inline_mysql_cond_broadcast_0 loc_572D6: jmp short $+2 loc_572D8: mov eax, [rbp+var_C] mov ecx, cs:dword_C7B534 cmp eax, ecx jnz short loc_57310 lea rsi, log_descriptor mov rdi, rsi add rdi, 800D50h add rsi, 800D08h lea rdx, aWorkspaceLlm4b_11; "/workspace/llm4binary/github2025/eloqsq"... mov ecx, 1EACh call inline_mysql_cond_wait_1 jmp short loc_572D8 loc_57310: jmp short $+2 loc_57312: jmp short $+2 loc_57314: add rsp, 10h pop rbp retn
long long translog_flush_set_new_goal_and_wait(long long a1) { long long result; // rax unsigned int v2; // [rsp+4h] [rbp-Ch] v2 = dword_C7B534; if ( a1 - qword_C7B538 > 0 ) { qword_C7B538 = a1; qword_C7B540 = pthread_self(); inline_mysql_cond_broadcast_0(&log_descriptor[1049009]); } while ( 1 ) { result = v2; if ( v2 != dword_C7B534 ) break; inline_mysql_cond_wait_1( (long long)&log_descriptor[1049002], (long long)&log_descriptor[1048993], (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c", 0x1EACu); } return result; }
translog_flush_set_new_goal_and_wait: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV EAX,dword ptr [0x00d7b534] MOV dword ptr [RBP + -0xc],EAX JMP 0x00157297 LAB_00157297: JMP 0x00157299 LAB_00157299: JMP 0x0015729b LAB_0015729b: MOV RAX,qword ptr [RBP + -0x8] SUB RAX,qword ptr [0x00d7b538] CMP RAX,0x0 JLE 0x001572d6 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [0x00d7b538],RAX CALL 0x0012a540 MOV qword ptr [0x00d7b540],RAX LEA RDI,[0x57a660] ADD RDI,0x800d88 CALL 0x00157320 LAB_001572d6: JMP 0x001572d8 LAB_001572d8: MOV EAX,dword ptr [RBP + -0xc] MOV ECX,dword ptr [0x00d7b534] CMP EAX,ECX JNZ 0x00157310 LEA RSI,[0x57a660] MOV RDI,RSI ADD RDI,0x800d50 ADD RSI,0x800d08 LEA RDX,[0x252fb9] MOV ECX,0x1eac CALL 0x00151400 JMP 0x001572d8 LAB_00157310: JMP 0x00157312 LAB_00157312: JMP 0x00157314 LAB_00157314: ADD RSP,0x10 POP RBP RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ void translog_flush_set_new_goal_and_wait(long param_1) { int iVar1; iVar1 = _DAT_00d7b534; if (0 < param_1 - _DAT_00d7b538) { _DAT_00d7b538 = param_1; _DAT_00d7b540 = pthread_self(); inline_mysql_cond_broadcast(&DAT_00d7b3e8); } while (iVar1 == _DAT_00d7b534) { inline_mysql_cond_wait (&DAT_00d7b3b0,&DAT_00d7b368, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",0x1eac); } return; }
60,377
unreg_request
eloqsql/mysys/mf_keycache.c
static void unreg_request(SIMPLE_KEY_CACHE_CB *keycache, BLOCK_LINK *block, int at_end) { DBUG_ASSERT(block->status & (BLOCK_READ | BLOCK_IN_USE)); DBUG_ASSERT(block->hash_link); /*backptr to block NULL from free_block()*/ DBUG_ASSERT(block->requests); DBUG_ASSERT(block->prev_changed && *block->prev_changed == block); DBUG_ASSERT(!block->next_used); DBUG_ASSERT(!block->prev_used); /* Unregister the request, but do not link erroneous blocks into the LRU ring. */ if (!--block->requests && !(block->status & BLOCK_ERROR)) { my_bool hot; if (block->hits_left) block->hits_left--; hot= !block->hits_left && at_end && keycache->warm_blocks > keycache->min_warm_blocks; if (hot) { if (block->temperature == BLOCK_WARM) keycache->warm_blocks--; block->temperature= BLOCK_HOT; KEYCACHE_DBUG_PRINT("unreg_request", ("#warm_blocks: %lu", keycache->warm_blocks)); } link_block(keycache, block, hot, (my_bool)at_end); block->last_hit_time= keycache->keycache_time; keycache->keycache_time++; /* At this place, the block might be in the LRU ring or not. If an evicter was waiting for a block, it was selected for eviction and not linked in the LRU ring. */ /* Check if we should link a hot block to the warm block sub-chain. It is possible that we select the same block as above. But it can also be another block. In any case a block from the LRU ring is selected. In other words it works even if the above block was selected for eviction and not linked in the LRU ring. Since this happens only if the LRU ring is empty, the block selected below would be NULL and the rest of the function skipped. */ block= keycache->used_ins; if (block && keycache->keycache_time - block->last_hit_time > keycache->age_threshold) { unlink_block(keycache, block); link_block(keycache, block, 0, 0); if (block->temperature != BLOCK_WARM) { keycache->warm_blocks++; block->temperature= BLOCK_WARM; } KEYCACHE_DBUG_PRINT("unreg_request", ("#warm_blocks: %lu", keycache->warm_blocks)); } } }
O3
c
unreg_request: decl 0x38(%rsi) je 0x980b2 retq pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rsi, %r14 testb $0x1, 0x50(%rsi) jne 0x98198 movq %rdi, %rbx movl 0x58(%r14), %eax testl %eax, %eax je 0x980dc decl %eax movl %eax, 0x58(%r14) sete %al jmp 0x980de movb $0x1, %al testl %edx, %edx sete %cl xorb $0x1, %al orb %cl, %al jne 0x98136 movq 0x68(%rbx), %rax cmpq 0x20(%rbx), %rax jbe 0x98136 cmpl $0x1, 0x54(%r14) jne 0x98101 decq %rax movq %rax, 0x68(%rbx) movl $0x2, 0x54(%r14) movq 0xb8(%rbx), %rax testq %rax, %rax je 0x9819d movq (%rax), %rcx movq %r14, 0x8(%rcx) movq (%rax), %rcx movq %rcx, (%r14) movq %rax, 0x8(%r14) movq %r14, (%rax) movq %r14, 0xb8(%rbx) jmp 0x98146 movsbl %dl, %ecx movq %rbx, %rdi movq %r14, %rsi xorl %edx, %edx callq 0x98b13 movq 0x30(%rbx), %rax movq %rax, 0x60(%r14) incq %rax movq %rax, 0x30(%rbx) movq 0xb8(%rbx), %r14 testq %r14, %r14 je 0x98198 subq 0x60(%r14), %rax cmpq 0x28(%rbx), %rax jbe 0x98198 movq %rbx, %rdi movq %r14, %rsi callq 0x98abc movq %rbx, %rdi movq %r14, %rsi xorl %edx, %edx xorl %ecx, %ecx callq 0x98b13 cmpl $0x1, 0x54(%r14) je 0x98198 incq 0x68(%rbx) movl $0x1, 0x54(%r14) popq %rbx popq %r14 popq %rbp retq movq %r14, (%r14) movq %r14, 0xb8(%rbx) movq %r14, 0xb0(%rbx) movq %r14, 0x8(%r14) jmp 0x98146
unreg_request_0: dec dword ptr [rsi+38h] jz short loc_980B2 retn loc_980B2: push rbp mov rbp, rsp push r14 push rbx mov r14, rsi test byte ptr [rsi+50h], 1 jnz loc_98198 mov rbx, rdi mov eax, [r14+58h] test eax, eax jz short loc_980DC dec eax mov [r14+58h], eax setz al jmp short loc_980DE loc_980DC: mov al, 1 loc_980DE: test edx, edx setz cl xor al, 1 or al, cl jnz short loc_98136 mov rax, [rbx+68h] cmp rax, [rbx+20h] jbe short loc_98136 cmp dword ptr [r14+54h], 1 jnz short loc_98101 dec rax mov [rbx+68h], rax loc_98101: mov dword ptr [r14+54h], 2 mov rax, [rbx+0B8h] test rax, rax jz loc_9819D mov rcx, [rax] mov [rcx+8], r14 mov rcx, [rax] mov [r14], rcx mov [r14+8], rax mov [rax], r14 mov [rbx+0B8h], r14 jmp short loc_98146 loc_98136: movsx ecx, dl mov rdi, rbx mov rsi, r14 xor edx, edx call link_block_0 loc_98146: mov rax, [rbx+30h] mov [r14+60h], rax inc rax mov [rbx+30h], rax mov r14, [rbx+0B8h] test r14, r14 jz short loc_98198 sub rax, [r14+60h] cmp rax, [rbx+28h] jbe short loc_98198 mov rdi, rbx mov rsi, r14 call unlink_block_0 mov rdi, rbx mov rsi, r14 xor edx, edx xor ecx, ecx call link_block_0 cmp dword ptr [r14+54h], 1 jz short loc_98198 inc qword ptr [rbx+68h] mov dword ptr [r14+54h], 1 loc_98198: pop rbx pop r14 pop rbp retn loc_9819D: mov [r14], r14 mov [rbx+0B8h], r14 mov [rbx+0B0h], r14 mov [r14+8], r14 jmp short loc_98146
void unreg_request_0(_QWORD *a1, long long a2, long long a3) { bool v3; // zf int v4; // eax int v5; // eax bool v6; // al unsigned long long v7; // rax long long v8; // rax long long v9; // rax long long v10; // rax long long v11; // r14 v3 = (*(_DWORD *)(a2 + 56))-- == 1; if ( v3 && (*(_BYTE *)(a2 + 80) & 1) == 0 ) { v4 = *(_DWORD *)(a2 + 88); if ( v4 ) { v5 = v4 - 1; *(_DWORD *)(a2 + 88) = v5; v6 = v5 == 0; } else { v6 = 1; } if ( (_DWORD)a3 == 0 || !v6 || (v7 = a1[13], v7 <= a1[4]) ) { link_block_0(a1, a2, 0LL, (unsigned int)(char)a3); } else { if ( *(_DWORD *)(a2 + 84) == 1 ) a1[13] = v7 - 1; *(_DWORD *)(a2 + 84) = 2; v8 = a1[23]; if ( v8 ) { *(_QWORD *)(*(_QWORD *)v8 + 8LL) = a2; *(_QWORD *)a2 = *(_QWORD *)v8; *(_QWORD *)(a2 + 8) = v8; *(_QWORD *)v8 = a2; a1[23] = a2; } else { *(_QWORD *)a2 = a2; a1[23] = a2; a1[22] = a2; *(_QWORD *)(a2 + 8) = a2; } } v9 = a1[6]; *(_QWORD *)(a2 + 96) = v9; v10 = v9 + 1; a1[6] = v10; v11 = a1[23]; if ( v11 && (unsigned long long)(v10 - *(_QWORD *)(v11 + 96)) > a1[5] ) { unlink_block_0(a1, a1[23], a3); link_block_0(a1, v11, 0LL, 0LL); if ( *(_DWORD *)(v11 + 84) != 1 ) { ++a1[13]; *(_DWORD *)(v11 + 84) = 1; } } } }
unreg_request: DEC dword ptr [RSI + 0x38] JZ 0x001980b2 RET LAB_001980b2: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV R14,RSI TEST byte ptr [RSI + 0x50],0x1 JNZ 0x00198198 MOV RBX,RDI MOV EAX,dword ptr [R14 + 0x58] TEST EAX,EAX JZ 0x001980dc DEC EAX MOV dword ptr [R14 + 0x58],EAX SETZ AL JMP 0x001980de LAB_001980dc: MOV AL,0x1 LAB_001980de: TEST EDX,EDX SETZ CL XOR AL,0x1 OR AL,CL JNZ 0x00198136 MOV RAX,qword ptr [RBX + 0x68] CMP RAX,qword ptr [RBX + 0x20] JBE 0x00198136 CMP dword ptr [R14 + 0x54],0x1 JNZ 0x00198101 DEC RAX MOV qword ptr [RBX + 0x68],RAX LAB_00198101: MOV dword ptr [R14 + 0x54],0x2 MOV RAX,qword ptr [RBX + 0xb8] TEST RAX,RAX JZ 0x0019819d MOV RCX,qword ptr [RAX] MOV qword ptr [RCX + 0x8],R14 MOV RCX,qword ptr [RAX] MOV qword ptr [R14],RCX MOV qword ptr [R14 + 0x8],RAX MOV qword ptr [RAX],R14 MOV qword ptr [RBX + 0xb8],R14 JMP 0x00198146 LAB_00198136: MOVSX ECX,DL MOV RDI,RBX MOV RSI,R14 XOR EDX,EDX CALL 0x00198b13 LAB_00198146: MOV RAX,qword ptr [RBX + 0x30] MOV qword ptr [R14 + 0x60],RAX INC RAX MOV qword ptr [RBX + 0x30],RAX MOV R14,qword ptr [RBX + 0xb8] TEST R14,R14 JZ 0x00198198 SUB RAX,qword ptr [R14 + 0x60] CMP RAX,qword ptr [RBX + 0x28] JBE 0x00198198 MOV RDI,RBX MOV RSI,R14 CALL 0x00198abc MOV RDI,RBX MOV RSI,R14 XOR EDX,EDX XOR ECX,ECX CALL 0x00198b13 CMP dword ptr [R14 + 0x54],0x1 JZ 0x00198198 INC qword ptr [RBX + 0x68] MOV dword ptr [R14 + 0x54],0x1 LAB_00198198: POP RBX POP R14 POP RBP RET LAB_0019819d: MOV qword ptr [R14],R14 MOV qword ptr [RBX + 0xb8],R14 MOV qword ptr [RBX + 0xb0],R14 MOV qword ptr [R14 + 0x8],R14 JMP 0x00198146
void unreg_request(long param_1,long *param_2,int param_3) { long *plVar1; long lVar2; int iVar3; long lVar4; bool bVar5; plVar1 = param_2 + 7; *(int *)plVar1 = (int)*plVar1 + -1; if ((int)*plVar1 != 0) { return; } if ((*(byte *)(param_2 + 10) & 1) == 0) { if ((int)param_2[0xb] == 0) { bVar5 = true; } else { iVar3 = (int)param_2[0xb] + -1; bVar5 = iVar3 == 0; *(int *)(param_2 + 0xb) = iVar3; } if (((bool)(bVar5 ^ 1U | param_3 == 0)) || (*(ulong *)(param_1 + 0x68) <= *(ulong *)(param_1 + 0x20))) { link_block(param_1,param_2,0,(int)(char)param_3); } else { if (*(int *)((long)param_2 + 0x54) == 1) { *(ulong *)(param_1 + 0x68) = *(ulong *)(param_1 + 0x68) - 1; } *(int4 *)((long)param_2 + 0x54) = 2; plVar1 = *(long **)(param_1 + 0xb8); if (plVar1 == (long *)0x0) { *param_2 = (long)param_2; *(long **)(param_1 + 0xb8) = param_2; *(long **)(param_1 + 0xb0) = param_2; param_2[1] = (long)param_2; } else { *(long **)(*plVar1 + 8) = param_2; *param_2 = *plVar1; param_2[1] = (long)plVar1; *plVar1 = (long)param_2; *(long **)(param_1 + 0xb8) = param_2; } } lVar4 = *(long *)(param_1 + 0x30); param_2[0xc] = lVar4; lVar4 = lVar4 + 1; *(long *)(param_1 + 0x30) = lVar4; lVar2 = *(long *)(param_1 + 0xb8); if ((lVar2 != 0) && (*(ulong *)(param_1 + 0x28) < (ulong)(lVar4 - *(long *)(lVar2 + 0x60)))) { unlink_block(param_1,lVar2); link_block(param_1,lVar2,0,0); if (*(int *)(lVar2 + 0x54) != 1) { *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1; *(int4 *)(lVar2 + 0x54) = 1; } } } return; }
60,378
ma_free_root
eloqsql/libmariadb/libmariadb/ma_alloc.c
void ma_free_root(MA_MEM_ROOT *root, myf MyFlags) { reg1 MA_USED_MEM *next,*old; if (!root) return; /* purecov: inspected */ if (!(MyFlags & MY_KEEP_PREALLOC)) root->pre_alloc=0; for ( next=root->used; next ;) { old=next; next= next->next ; if (old != root->pre_alloc) free(old); } for (next= root->free ; next ; ) { old=next; next= next->next ; if (old != root->pre_alloc) free(old); } root->used=root->free=0; if (root->pre_alloc) { root->free=root->pre_alloc; root->free->left=root->pre_alloc->size-ALIGN_SIZE(sizeof(MA_USED_MEM)); root->free->next=0; } }
O0
c
ma_free_root: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) cmpq $0x0, -0x8(%rbp) jne 0xad27b jmp 0xad369 movl -0xc(%rbp), %eax andl $0x1, %eax cmpl $0x0, %eax jne 0xad292 movq -0x8(%rbp), %rax movq $0x0, 0x10(%rax) movq -0x8(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x18(%rbp) cmpq $0x0, -0x18(%rbp) je 0xad2d1 movq -0x18(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x18(%rbp), %rax movq (%rax), %rax movq %rax, -0x18(%rbp) movq -0x20(%rbp), %rax movq -0x8(%rbp), %rcx cmpq 0x10(%rcx), %rax je 0xad2cf movq -0x20(%rbp), %rdi callq 0x3a1a0 jmp 0xad29e movq -0x8(%rbp), %rax movq (%rax), %rax movq %rax, -0x18(%rbp) cmpq $0x0, -0x18(%rbp) je 0xad30f movq -0x18(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x18(%rbp), %rax movq (%rax), %rax movq %rax, -0x18(%rbp) movq -0x20(%rbp), %rax movq -0x8(%rbp), %rcx cmpq 0x10(%rcx), %rax je 0xad30d movq -0x20(%rbp), %rdi callq 0x3a1a0 jmp 0xad2dc movq -0x8(%rbp), %rax movq $0x0, (%rax) movq -0x8(%rbp), %rax movq $0x0, 0x8(%rax) movq -0x8(%rbp), %rax cmpq $0x0, 0x10(%rax) je 0xad369 movq -0x8(%rbp), %rax movq 0x10(%rax), %rcx movq -0x8(%rbp), %rax movq %rcx, (%rax) movq -0x8(%rbp), %rax movq 0x10(%rax), %rax movq 0x10(%rax), %rcx subq $0x18, %rcx movq -0x8(%rbp), %rax movq (%rax), %rax movq %rcx, 0x8(%rax) movq -0x8(%rbp), %rax movq (%rax), %rax movq $0x0, (%rax) addq $0x20, %rsp popq %rbp retq nop
ma_free_root: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_C], esi cmp [rbp+var_8], 0 jnz short loc_AD27B jmp loc_AD369 loc_AD27B: mov eax, [rbp+var_C] and eax, 1 cmp eax, 0 jnz short loc_AD292 mov rax, [rbp+var_8] mov qword ptr [rax+10h], 0 loc_AD292: mov rax, [rbp+var_8] mov rax, [rax+8] mov [rbp+var_18], rax loc_AD29E: cmp [rbp+var_18], 0 jz short loc_AD2D1 mov rax, [rbp+var_18] mov [rbp+var_20], rax mov rax, [rbp+var_18] mov rax, [rax] mov [rbp+var_18], rax mov rax, [rbp+var_20] mov rcx, [rbp+var_8] cmp rax, [rcx+10h] jz short loc_AD2CF mov rdi, [rbp+var_20] call _free loc_AD2CF: jmp short loc_AD29E loc_AD2D1: mov rax, [rbp+var_8] mov rax, [rax] mov [rbp+var_18], rax loc_AD2DC: cmp [rbp+var_18], 0 jz short loc_AD30F mov rax, [rbp+var_18] mov [rbp+var_20], rax mov rax, [rbp+var_18] mov rax, [rax] mov [rbp+var_18], rax mov rax, [rbp+var_20] mov rcx, [rbp+var_8] cmp rax, [rcx+10h] jz short loc_AD30D mov rdi, [rbp+var_20] call _free loc_AD30D: jmp short loc_AD2DC loc_AD30F: mov rax, [rbp+var_8] mov qword ptr [rax], 0 mov rax, [rbp+var_8] mov qword ptr [rax+8], 0 mov rax, [rbp+var_8] cmp qword ptr [rax+10h], 0 jz short loc_AD369 mov rax, [rbp+var_8] mov rcx, [rax+10h] mov rax, [rbp+var_8] mov [rax], rcx mov rax, [rbp+var_8] mov rax, [rax+10h] mov rcx, [rax+10h] sub rcx, 18h mov rax, [rbp+var_8] mov rax, [rax] mov [rax+8], rcx mov rax, [rbp+var_8] mov rax, [rax] mov qword ptr [rax], 0 loc_AD369: add rsp, 20h pop rbp retn
_QWORD * ma_free_root(_QWORD *a1, char a2) { _QWORD *result; // rax _QWORD *v3; // [rsp+0h] [rbp-20h] _QWORD *v4; // [rsp+0h] [rbp-20h] _QWORD *v5; // [rsp+8h] [rbp-18h] _QWORD *v6; // [rsp+8h] [rbp-18h] if ( a1 ) { if ( (a2 & 1) == 0 ) a1[2] = 0LL; v5 = (_QWORD *)a1[1]; while ( v5 ) { v3 = v5; v5 = (_QWORD *)*v5; if ( v3 != (_QWORD *)a1[2] ) free(v3); } v6 = (_QWORD *)*a1; while ( v6 ) { v4 = v6; v6 = (_QWORD *)*v6; if ( v4 != (_QWORD *)a1[2] ) free(v4); } *a1 = 0LL; a1[1] = 0LL; result = a1; if ( a1[2] ) { *a1 = a1[2]; *(_QWORD *)(*a1 + 8LL) = *(_QWORD *)(a1[2] + 16LL) - 24LL; result = (_QWORD *)*a1; *(_QWORD *)*a1 = 0LL; } } return result; }
ma_free_root: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI CMP qword ptr [RBP + -0x8],0x0 JNZ 0x001ad27b JMP 0x001ad369 LAB_001ad27b: MOV EAX,dword ptr [RBP + -0xc] AND EAX,0x1 CMP EAX,0x0 JNZ 0x001ad292 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x10],0x0 LAB_001ad292: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x18],RAX LAB_001ad29e: CMP qword ptr [RBP + -0x18],0x0 JZ 0x001ad2d1 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,qword ptr [RCX + 0x10] JZ 0x001ad2cf MOV RDI,qword ptr [RBP + -0x20] CALL 0x0013a1a0 LAB_001ad2cf: JMP 0x001ad29e LAB_001ad2d1: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x18],RAX LAB_001ad2dc: CMP qword ptr [RBP + -0x18],0x0 JZ 0x001ad30f MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,qword ptr [RCX + 0x10] JZ 0x001ad30d MOV RDI,qword ptr [RBP + -0x20] CALL 0x0013a1a0 LAB_001ad30d: JMP 0x001ad2dc LAB_001ad30f: MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x8],0x0 MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x10],0x0 JZ 0x001ad369 MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RAX + 0x10] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x10] MOV RCX,qword ptr [RAX + 0x10] SUB RCX,0x18 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RAX],0x0 LAB_001ad369: ADD RSP,0x20 POP RBP RET
void ma_free_root(long *param_1,uint param_2) { int8 *puVar1; int8 *local_20; if (param_1 != (long *)0x0) { if ((param_2 & 1) == 0) { param_1[2] = 0; } puVar1 = (int8 *)param_1[1]; while (local_20 = puVar1, local_20 != (int8 *)0x0) { puVar1 = (int8 *)*local_20; if (local_20 != (int8 *)param_1[2]) { free(local_20); } } puVar1 = (int8 *)*param_1; while (local_20 = puVar1, local_20 != (int8 *)0x0) { puVar1 = (int8 *)*local_20; if (local_20 != (int8 *)param_1[2]) { free(local_20); } } *param_1 = 0; param_1[1] = 0; if (param_1[2] != 0) { *param_1 = param_1[2]; *(long *)(*param_1 + 8) = *(long *)(param_1[2] + 0x10) + -0x18; *(int8 *)*param_1 = 0; } } return; }
60,379
mi_keylength_part
eloqsql/storage/myisam/mi_search.c
uint _mi_keylength_part(MI_KEYDEF *keyinfo, register uchar *key, HA_KEYSEG *end) { reg1 HA_KEYSEG *keyseg; uchar *start= key; for (keyseg=keyinfo->seg ; keyseg != end ; keyseg++) { if (keyseg->flag & HA_NULL_PART) if (!*key++) continue; if (keyseg->flag & (HA_SPACE_PACK | HA_BLOB_PART | HA_VAR_LENGTH_PART)) { uint length; get_key_length(length,key); key+=length; } else key+= keyseg->length; } return (uint) (key-start); }
O3
c
mi_keylength_part: movq 0x28(%rdi), %rcx movq %rsi, %rax cmpq %rdx, %rcx je 0x86c40 pushq %rbp movq %rsp, %rbp movq %rsi, %rax movzwl 0x12(%rcx), %edi testb $0x10, %dil je 0x86bff cmpb $0x0, (%rax) leaq 0x1(%rax), %rax je 0x86c36 testb $0x29, %dil je 0x86c19 movzbl (%rax), %edi cmpq $0xff, %rdi je 0x86c1f movl $0x1, %r8d jmp 0x86c30 movzwl 0x14(%rcx), %edi jmp 0x86c33 movzwl 0x1(%rax), %edi rolw $0x8, %di movzwl %di, %edi movl $0x3, %r8d addq %r8, %rax addq %rdi, %rax addq $0x20, %rcx cmpq %rdx, %rcx jne 0x86bec popq %rbp subl %esi, %eax retq
_mi_keylength_part: mov rcx, [rdi+28h] mov rax, rsi cmp rcx, rdx jz short loc_86C40 push rbp mov rbp, rsp mov rax, rsi loc_86BEC: movzx edi, word ptr [rcx+12h] test dil, 10h jz short loc_86BFF cmp byte ptr [rax], 0 lea rax, [rax+1] jz short loc_86C36 loc_86BFF: test dil, 29h jz short loc_86C19 movzx edi, byte ptr [rax] cmp rdi, 0FFh jz short loc_86C1F mov r8d, 1 jmp short loc_86C30 loc_86C19: movzx edi, word ptr [rcx+14h] jmp short loc_86C33 loc_86C1F: movzx edi, word ptr [rax+1] rol di, 8 movzx edi, di mov r8d, 3 loc_86C30: add rax, r8 loc_86C33: add rax, rdi loc_86C36: add rcx, 20h ; ' ' cmp rcx, rdx jnz short loc_86BEC pop rbp loc_86C40: sub eax, esi retn
long long mi_keylength_part(long long a1, unsigned __int8 *a2, long long a3) { long long v3; // rcx unsigned __int8 *v4; // rax __int16 v5; // di bool v6; // zf long long v7; // rdi long long v8; // r8 v3 = *(_QWORD *)(a1 + 40); LODWORD(v4) = (_DWORD)a2; if ( v3 != a3 ) { v4 = a2; do { v5 = *(_WORD *)(v3 + 18); if ( (v5 & 0x10) == 0 || (v6 = *v4 == 0, ++v4, !v6) ) { if ( (v5 & 0x29) != 0 ) { v7 = *v4; if ( v7 == 255 ) { v7 = (unsigned __int16)__ROL2__(*(_WORD *)(v4 + 1), 8); v8 = 3LL; } else { v8 = 1LL; } v4 += v8; } else { v7 = *(unsigned __int16 *)(v3 + 20); } v4 += v7; } v3 += 32LL; } while ( v3 != a3 ); } return (unsigned int)((_DWORD)v4 - (_DWORD)a2); }
_mi_keylength_part: MOV RCX,qword ptr [RDI + 0x28] MOV RAX,RSI CMP RCX,RDX JZ 0x00186c40 PUSH RBP MOV RBP,RSP MOV RAX,RSI LAB_00186bec: MOVZX EDI,word ptr [RCX + 0x12] TEST DIL,0x10 JZ 0x00186bff CMP byte ptr [RAX],0x0 LEA RAX,[RAX + 0x1] JZ 0x00186c36 LAB_00186bff: TEST DIL,0x29 JZ 0x00186c19 MOVZX EDI,byte ptr [RAX] CMP RDI,0xff JZ 0x00186c1f MOV R8D,0x1 JMP 0x00186c30 LAB_00186c19: MOVZX EDI,word ptr [RCX + 0x14] JMP 0x00186c33 LAB_00186c1f: MOVZX EDI,word ptr [RAX + 0x1] ROL DI,0x8 MOVZX EDI,DI MOV R8D,0x3 LAB_00186c30: ADD RAX,R8 LAB_00186c33: ADD RAX,RDI LAB_00186c36: ADD RCX,0x20 CMP RCX,RDX JNZ 0x00186bec POP RBP LAB_00186c40: SUB EAX,ESI RET
int _mi_keylength_part(long param_1,byte *param_2,long param_3) { byte bVar1; long lVar2; int iVar3; ulong uVar4; long lVar5; iVar3 = (int)param_2; for (lVar2 = *(long *)(param_1 + 0x28); lVar2 != param_3; lVar2 = lVar2 + 0x20) { if (((*(ushort *)(lVar2 + 0x12) & 0x10) == 0) || (bVar1 = *param_2, param_2 = param_2 + 1, bVar1 != 0)) { if ((*(ushort *)(lVar2 + 0x12) & 0x29) == 0) { uVar4 = (ulong)*(ushort *)(lVar2 + 0x14); } else { uVar4 = (ulong)*param_2; if (uVar4 == 0xff) { uVar4 = (ulong)(ushort)(*(ushort *)(param_2 + 1) << 8 | *(ushort *)(param_2 + 1) >> 8); lVar5 = 3; } else { lVar5 = 1; } param_2 = param_2 + lVar5; } param_2 = param_2 + uVar4; } } return (int)param_2 - iVar3; }
60,380
unsigned long nlohmann::json_abi_v3_11_3::detail::hash<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> const&)
monkey531[P]llama/common/json.hpp
constexpr value_t type() const noexcept { return m_data.m_type; }
O2
cpp
unsigned long nlohmann::json_abi_v3_11_3::detail::hash<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> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xf8, %rsp movzbl (%rdi), %r15d cmpq $0x9, %r15 ja 0x822cb movq %rdi, %r14 leaq 0x2f84f(%rip), %rax # 0xb1828 movslq (%rax,%r15,4), %rcx addq %rax, %rcx jmpq *%rcx movl %r15d, %eax shll $0x6, %eax movl %r15d, %ecx shrl $0x2, %ecx orl %eax, %ecx movl $0x9e3779b9, %ebx # imm = 0x9E3779B9 addq %rcx, %rbx jmp 0x8229a movq %r14, %rdi callq 0x823da leaq 0x18(%rsp), %rdi movq %rax, %rsi callq 0x39c0a jmp 0x82281 movl $0x9e3779b9, %r12d # imm = 0x9E3779B9 movq %r14, %rdi callq 0x8233a movl %r15d, %ecx shll $0x6, %ecx movl %r15d, %ebx shrl $0x2, %ebx orl %ecx, %ebx addq 0x8(%rax), %rbx addq %r12, %rbx subq (%rax), %rbx xorq %r15, %rbx movq %r14, %rdi callq 0x8233a movzbl 0x20(%rax), %eax movq %rbx, %rcx shlq $0x6, %rcx orq %rax, %rcx movq %rbx, %r15 shrq $0x2, %r15 addq %r12, %r15 addq %rcx, %r15 xorq %rbx, %r15 movq %r14, %rdi callq 0x8233a movq 0x18(%rax), %rcx addq %r12, %rcx leaq -0x1(%r12), %rdx cmpb $0x0, 0x20(%rax) cmovneq %rcx, %rdx movq %r15, %rax shlq $0x6, %rax addq %rdx, %rax movq %r15, %rbx shrq $0x2, %rbx addq %rax, %rbx xorq %r15, %rbx movq %r14, %rdi callq 0x8233a movq (%rax), %rcx movq 0x8(%rax), %rax cmpq %rax, %rcx je 0x8229d movzbl (%rcx), %edx movq %rbx, %rsi shlq $0x6, %rsi movq %rbx, %rdi shrq $0x2, %rdi addq %r12, %rsi addq %rdi, %rsi addq %rdx, %rsi xorq %rsi, %rbx incq %rcx jmp 0x820a8 movl $0x9e3779b9, %ebp # imm = 0x9E3779B9 movq %r14, %rdi callq 0x41202 movq %rax, %rbx movl %r15d, %eax shll $0x6, %eax movl %r15d, %ecx shrl $0x2, %ecx orl %eax, %ecx addq %rbp, %rbx addq %rcx, %rbx xorq %r15, %rbx leaq 0x10(%rsp), %r12 movq %r14, (%r12) leaq 0x18(%rsp), %r14 movq %r14, %rdi movq %r12, %rsi callq 0x7ca22 leaq 0x88(%rsp), %r15 movq %r15, %rdi movq %r12, %rsi callq 0x7ca54 leaq 0xf(%rsp), %r12 movq %r14, %rdi movq %r15, %rsi callq 0x66d58 testb %al, %al je 0x822b2 movq %r14, %rdi callq 0x7ca86 movq %r12, %rdi movq %rax, %rsi callq 0x39c0a movq %rax, %r13 movq %r14, %rdi callq 0x66f52 movq %rax, %rdi callq 0x81fb0 movq %rbx, %rcx shlq $0x6, %rcx movq %rbx, %rdx shrq $0x2, %rdx addq %rbp, %rcx addq %rdx, %rcx addq %r13, %rcx xorq %rbx, %rcx movq %rcx, %rdx shlq $0x6, %rdx movq %rcx, %rbx shrq $0x2, %rbx addq %rbp, %rdx addq %rax, %rbx addq %rdx, %rbx xorq %rcx, %rbx movq %r14, %rdi callq 0x7caf4 jmp 0x8212b movl $0x9e3779b9, %r13d # imm = 0x9E3779B9 movq %r14, %rdi callq 0x41202 movq %rax, %rbx movl %r15d, %eax shll $0x6, %eax movl %r15d, %ecx shrl $0x2, %ecx orl %eax, %ecx addq %r13, %rbx addq %rcx, %rbx xorq %r15, %rbx leaq 0x18(%rsp), %r15 movq %r15, %rdi movq %r14, %rsi callq 0x672b4 leaq 0x88(%rsp), %r12 movq %r12, %rdi movq %r14, %rsi callq 0x67520 movq %r15, %rdi movq %r12, %rsi callq 0x66d58 testb %al, %al je 0x8229d movq %r15, %rdi callq 0x66f52 movq %rax, %rdi callq 0x81fb0 movq %rbx, %rcx shlq $0x6, %rcx movq %rbx, %rdx shrq $0x2, %rdx addq %r13, %rcx addq %rdx, %rcx addq %rax, %rcx xorq %rcx, %rbx movq %r15, %rdi callq 0x66eea jmp 0x821ed movq %r14, %rdi callq 0x824fe jmp 0x82281 movq %r14, %rdi callq 0x63078 movl $0x9e3779b9, %ecx # imm = 0x9E3779B9 leaq 0x1(%rcx), %rdx testb %al, %al cmoveq %rcx, %rdx movl %r15d, %eax shll $0x6, %eax movl %r15d, %ebx shrl $0x2, %ebx orl %eax, %ebx jmp 0x82297 movq %r14, %rdi callq 0x62566 jmp 0x82281 movq %r14, %rdi callq 0x62d46 leaq 0x18(%rsp), %rdi callq 0x82312 movl %r15d, %ecx shll $0x6, %ecx movl %r15d, %edx shrl $0x2, %edx orl %ecx, %edx movl $0x9e3779b9, %ebx # imm = 0x9E3779B9 addq %rax, %rbx addq %rdx, %rbx xorq %r15, %rbx movq %rbx, %rax addq $0xf8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x88(%rsp), %rdi callq 0x7cb06 leaq 0x18(%rsp), %rdi callq 0x7cb06 jmp 0x8229d leaq 0x2c90a(%rip), %rdi # 0xaebdc leaq 0x2c94d(%rip), %rdx # 0xaec26 leaq 0x2a3f3(%rip), %rcx # 0xac6d3 movl $0x17d9, %esi # imm = 0x17D9 xorl %eax, %eax callq 0x23e40 jmp 0x822f0 jmp 0x822f0 movq %rax, %rbx leaq 0x88(%rsp), %rdi callq 0x7cb06 leaq 0x18(%rsp), %rdi callq 0x7cb06 movq %rbx, %rdi callq 0x23f10
_ZN8nlohmann16json_abi_v3_11_36detail4hashINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEEmRKT_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 0F8h movzx r15d, byte ptr [rdi] cmp r15, 9; switch 10 cases ja def_81FE0; jumptable 0000000000081FE0 default case mov r14, rdi lea rax, jpt_81FE0 movsxd rcx, ds:(jpt_81FE0 - 0B1828h)[rax+r15*4] add rcx, rax jmp rcx; switch jump loc_81FE2: mov eax, r15d; jumptable 0000000000081FE0 cases 0,9 shl eax, 6 mov ecx, r15d shr ecx, 2 or ecx, eax mov ebx, 9E3779B9h add rbx, rcx jmp loc_8229A loc_81FFD: mov rdi, r14; jumptable 0000000000081FE0 case 3 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE12get_ref_implIRKS9_KSD_EET_RT0_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::get_ref_impl<std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const &) lea rdi, [rsp+128h+var_110] mov rsi, rax call _ZNKSt4hashINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclERKS5_; std::hash<std::string>::operator()(std::string const&) jmp loc_82281 loc_82017: mov r12d, 9E3779B9h; jumptable 0000000000081FE0 case 8 mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10get_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>::get_binary(void) mov ecx, r15d shl ecx, 6 mov ebx, r15d shr ebx, 2 or ebx, ecx add rbx, [rax+8] add rbx, r12 sub rbx, [rax] xor rbx, r15 mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10get_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>::get_binary(void) movzx eax, byte ptr [rax+20h] mov rcx, rbx shl rcx, 6 or rcx, rax mov r15, rbx shr r15, 2 add r15, r12 add r15, rcx xor r15, rbx mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10get_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>::get_binary(void) mov rcx, [rax+18h] add rcx, r12 lea rdx, [r12-1] cmp byte ptr [rax+20h], 0 cmovnz rdx, rcx mov rax, r15 shl rax, 6 add rax, rdx mov rbx, r15 shr rbx, 2 add rbx, rax xor rbx, r15 mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10get_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>::get_binary(void) mov rcx, [rax] mov rax, [rax+8] loc_820A8: cmp rcx, rax jz loc_8229D movzx edx, byte ptr [rcx] mov rsi, rbx shl rsi, 6 mov rdi, rbx shr rdi, 2 add rsi, r12 add rsi, rdi add rsi, rdx xor rbx, rsi inc rcx jmp short loc_820A8 loc_820D3: mov ebp, 9E3779B9h; jumptable 0000000000081FE0 case 1 mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4sizeEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::size(void) mov rbx, rax mov eax, r15d shl eax, 6 mov ecx, r15d shr ecx, 2 or ecx, eax add rbx, rbp add rbx, rcx xor rbx, r15 lea r12, [rsp+128h+var_118] mov [r12], r14 lea r14, [rsp+128h+var_110] mov rdi, r14 mov rsi, r12 call _ZNK8nlohmann16json_abi_v3_11_36detail15iteration_proxyINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEE5beginEv; nlohmann::json_abi_v3_11_3::detail::iteration_proxy<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::begin(void) lea r15, [rsp+128h+var_A0] mov rdi, r15 mov rsi, r12 call _ZNK8nlohmann16json_abi_v3_11_36detail15iteration_proxyINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEE3endEv; nlohmann::json_abi_v3_11_3::detail::iteration_proxy<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::end(void) lea r12, [rsp+128h+var_119] loc_8212B: mov rdi, r14 mov rsi, r15 call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ test al, al jz loc_822B2 mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEE3keyEv; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::key(void) mov rdi, r12 mov rsi, rax call _ZNKSt4hashINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclERKS5_; std::hash<std::string>::operator()(std::string const&) mov r13, rax mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEdeEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator*(void) mov rdi, rax call _ZN8nlohmann16json_abi_v3_11_36detail4hashINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEEmRKT_; nlohmann::json_abi_v3_11_3::detail::hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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, rbx shl rcx, 6 mov rdx, rbx shr rdx, 2 add rcx, rbp add rcx, rdx add rcx, r13 xor rcx, rbx mov rdx, rcx shl rdx, 6 mov rbx, rcx shr rbx, 2 add rdx, rbp add rbx, rax add rbx, rdx xor rbx, rcx mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEEppEv; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::operator++(void) jmp short loc_8212B loc_821A2: mov r13d, 9E3779B9h; jumptable 0000000000081FE0 case 2 mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4sizeEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::size(void) mov rbx, rax mov eax, r15d shl eax, 6 mov ecx, r15d shr ecx, 2 or ecx, eax add rbx, r13 add rbx, rcx xor rbx, r15 lea r15, [rsp+128h+var_110] mov rdi, r15 mov rsi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6cbeginEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::cbegin(void) lea r12, [rsp+128h+var_A0] mov rdi, r12 mov rsi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4cendEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::cend(void) loc_821ED: mov rdi, r15 mov rsi, r12 call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ test al, al jz loc_8229D mov rdi, r15 call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEdeEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator*(void) mov rdi, rax call _ZN8nlohmann16json_abi_v3_11_36detail4hashINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEEmRKT_; nlohmann::json_abi_v3_11_3::detail::hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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, rbx shl rcx, 6 mov rdx, rbx shr rdx, 2 add rcx, r13 add rcx, rdx add rcx, rax xor rbx, rcx mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEppEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator++(void) jmp short loc_821ED loc_82234: mov rdi, r14; jumptable 0000000000081FE0 case 6 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implImTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE jmp short loc_82281 loc_8223E: mov rdi, r14; jumptable 0000000000081FE0 case 4 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIbTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE mov ecx, 9E3779B9h lea rdx, [rcx+1] test al, al cmovz rdx, rcx mov eax, r15d shl eax, 6 mov ebx, r15d shr ebx, 2 or ebx, eax jmp short loc_82297 loc_82265: mov rdi, r14; jumptable 0000000000081FE0 case 5 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIlTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE jmp short loc_82281 loc_8226F: mov rdi, r14; jumptable 0000000000081FE0 case 7 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIdTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE lea rdi, [rsp+128h+var_110] call _ZNKSt4hashIdEclEd; std::hash<double>::operator()(double) loc_82281: mov ecx, r15d shl ecx, 6 mov edx, r15d shr edx, 2 or edx, ecx mov ebx, 9E3779B9h add rbx, rax loc_82297: add rbx, rdx loc_8229A: xor rbx, r15 loc_8229D: mov rax, rbx add rsp, 0F8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_822B2: lea rdi, [rsp+128h+var_A0] call _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::~iteration_proxy_value() lea rdi, [rsp+128h+var_110] call _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::~iteration_proxy_value() jmp short loc_8229D def_81FE0: lea rdi, aWorkspaceLlm4b_0; jumptable 0000000000081FE0 default case lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aAdvancedOption+0ABh; "false" mov esi, 17D9h xor eax, eax call _ggml_abort jmp short loc_822F0 jmp short $+2 loc_822F0: mov rbx, rax lea rdi, [rsp+128h+var_A0] call _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::~iteration_proxy_value() lea rdi, [rsp+128h+var_110] call _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::~iteration_proxy_value() mov rdi, rbx call __Unwind_Resume
unsigned long long nlohmann::json_abi_v3_11_3::detail::hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( unsigned __int8 *a1) { long long v1; // r15 long long v2; // rbx long long v3; // rax long long v4; // rax _QWORD *binary; // rax unsigned long long v6; // rbx unsigned long long v7; // r15 long long v8; // rax long long v9; // rdx unsigned long long v10; // rbx unsigned __int8 **v11; // rax unsigned __int8 *v12; // rcx unsigned __int8 *v13; // rax long long v14; // rax long long v15; // r13 long long v16; // rax long long v17; // rax char v18; // al long long v19; // rdx long long v20; // rbx double v21; // xmm0_8 long long v23; // rbx char v24; // [rsp+Fh] [rbp-119h] BYREF unsigned __int8 *v25; // [rsp+10h] [rbp-118h] BYREF unsigned __int8 *v26[14]; // [rsp+18h] [rbp-110h] BYREF _BYTE v27[160]; // [rsp+88h] [rbp-A0h] BYREF v1 = *a1; switch ( *a1 ) { case 0u: case 9u: v2 = (((_DWORD)v1 << 6) | ((unsigned int)v1 >> 2)) + 2654435769LL; goto LABEL_23; case 1u: v10 = v1 ^ ((((_DWORD)v1 << 6) | ((unsigned int)v1 >> 2)) + nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::size(a1) + 2654435769LL); v25 = a1; nlohmann::json_abi_v3_11_3::detail::iteration_proxy<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::begin( (long long)v26, (long long *)&v25); nlohmann::json_abi_v3_11_3::detail::iteration_proxy<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::end( (long long)v27, (long long *)&v25); while ( ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_((long long)v26) ) { v14 = nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::key(v26); v15 = std::hash<std::string>::operator()((long long)&v24, v14); v16 = nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator*(v26); v10 ^= (v15 + (v10 >> 2) + (v10 << 6) + 2654435769u) ^ (((v10 ^ (v15 + (v10 >> 2) + (v10 << 6) + 2654435769u)) << 6) + 2654435769u + nlohmann::json_abi_v3_11_3::detail::hash<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>>(v16) + ((v10 ^ (v15 + (v10 >> 2) + (v10 << 6) + 2654435769u)) >> 2)); nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::operator++((long long)v26); } nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::~iteration_proxy_value((long long)v27); nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::~iteration_proxy_value((long long)v26); return v10; case 2u: v10 = v1 ^ ((((_DWORD)v1 << 6) | ((unsigned int)v1 >> 2)) + nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::size(a1) + 2654435769LL); 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>::cbegin( (long long)v26, (long long)a1); 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>::cend( (long long)v27, (long long)a1); while ( ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_((long long)v26) ) { v17 = nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator*(v26); v10 ^= nlohmann::json_abi_v3_11_3::detail::hash<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>>(v17) + (v10 >> 2) + (v10 << 6) + 2654435769u; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator++(v26); } return v10; case 3u: v3 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::get_ref_impl<std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>(a1); v4 = std::hash<std::string>::operator()((long long)v26, v3); goto LABEL_21; case 4u: v18 = ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIbTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE((long long)a1); v19 = 2654435770LL; if ( !v18 ) v19 = 2654435769LL; v20 = ((_DWORD)v1 << 6) | ((unsigned int)v1 >> 2); goto LABEL_22; case 5u: v4 = ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIlTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE((long long)a1); goto LABEL_21; case 6u: v4 = ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implImTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE(a1); goto LABEL_21; case 7u: v21 = ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIdTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE((long long)a1); v4 = std::hash<double>::operator()(v26, v21); LABEL_21: v19 = ((_DWORD)v1 << 6) | ((unsigned int)v1 >> 2); v20 = v4 + 2654435769LL; LABEL_22: v2 = v19 + v20; LABEL_23: v10 = v1 ^ v2; break; case 8u: binary = (_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>::get_binary(a1); v6 = v1 ^ (binary[1] + (((_DWORD)v1 << 6) | ((unsigned int)v1 >> 2)) + 2654435769LL - *binary); v7 = v6 ^ ((*(unsigned __int8 *)(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::get_binary(a1) + 32) | (v6 << 6)) + (v6 >> 2) + 2654435769u); v8 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::get_binary(a1); v9 = 2654435768LL; if ( *(_BYTE *)(v8 + 32) ) v9 = *(_QWORD *)(v8 + 24) + 2654435769LL; v10 = v7 ^ (v9 + (v7 << 6) + (v7 >> 2)); v11 = (unsigned __int8 **)nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::get_binary(a1); v12 = *v11; v13 = v11[1]; while ( v12 != v13 ) v10 ^= *v12++ + (v10 >> 2) + (v10 << 6) + 2654435769u; break; default: v23 = ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 6105LL, "GGML_ASSERT(%s) failed", "false"); nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::~iteration_proxy_value((long long)v27); nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::~iteration_proxy_value((long long)v26); _Unwind_Resume(v23); } return v10; }
hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xf8 MOVZX R15D,byte ptr [RDI] CMP R15,0x9 JA 0x001822cb MOV R14,RDI LEA RAX,[0x1b1828] MOVSXD RCX,dword ptr [RAX + R15*0x4] ADD RCX,RAX switchD: JMP RCX caseD_0: MOV EAX,R15D SHL EAX,0x6 MOV ECX,R15D SHR ECX,0x2 OR ECX,EAX MOV EBX,0x9e3779b9 ADD RBX,RCX JMP 0x0018229a caseD_3: MOV RDI,R14 CALL 0x001823da LEA RDI,[RSP + 0x18] MOV RSI,RAX CALL 0x00139c0a JMP 0x00182281 caseD_8: MOV R12D,0x9e3779b9 MOV RDI,R14 CALL 0x0018233a MOV ECX,R15D SHL ECX,0x6 MOV EBX,R15D SHR EBX,0x2 OR EBX,ECX ADD RBX,qword ptr [RAX + 0x8] ADD RBX,R12 SUB RBX,qword ptr [RAX] XOR RBX,R15 MOV RDI,R14 CALL 0x0018233a MOVZX EAX,byte ptr [RAX + 0x20] MOV RCX,RBX SHL RCX,0x6 OR RCX,RAX MOV R15,RBX SHR R15,0x2 ADD R15,R12 ADD R15,RCX XOR R15,RBX MOV RDI,R14 CALL 0x0018233a MOV RCX,qword ptr [RAX + 0x18] ADD RCX,R12 LEA RDX,[R12 + -0x1] CMP byte ptr [RAX + 0x20],0x0 CMOVNZ RDX,RCX MOV RAX,R15 SHL RAX,0x6 ADD RAX,RDX MOV RBX,R15 SHR RBX,0x2 ADD RBX,RAX XOR RBX,R15 MOV RDI,R14 CALL 0x0018233a MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x8] LAB_001820a8: CMP RCX,RAX JZ 0x0018229d MOVZX EDX,byte ptr [RCX] MOV RSI,RBX SHL RSI,0x6 MOV RDI,RBX SHR RDI,0x2 ADD RSI,R12 ADD RSI,RDI ADD RSI,RDX XOR RBX,RSI INC RCX JMP 0x001820a8 caseD_1: MOV EBP,0x9e3779b9 MOV RDI,R14 CALL 0x00141202 MOV RBX,RAX MOV EAX,R15D SHL EAX,0x6 MOV ECX,R15D SHR ECX,0x2 OR ECX,EAX ADD RBX,RBP ADD RBX,RCX XOR RBX,R15 LEA R12,[RSP + 0x10] MOV qword ptr [R12],R14 LEA R14,[RSP + 0x18] MOV RDI,R14 MOV RSI,R12 CALL 0x0017ca22 LEA R15,[RSP + 0x88] MOV RDI,R15 MOV RSI,R12 CALL 0x0017ca54 LEA R12,[RSP + 0xf] LAB_0018212b: MOV RDI,R14 MOV RSI,R15 CALL 0x00166d58 TEST AL,AL JZ 0x001822b2 LAB_0018213e: MOV RDI,R14 CALL 0x0017ca86 MOV RDI,R12 MOV RSI,RAX CALL 0x00139c0a MOV R13,RAX LAB_00182154: MOV RDI,R14 CALL 0x00166f52 MOV RDI,RAX CALL 0x00181fb0 MOV RCX,RBX SHL RCX,0x6 MOV RDX,RBX SHR RDX,0x2 ADD RCX,RBP ADD RCX,RDX ADD RCX,R13 XOR RCX,RBX MOV RDX,RCX SHL RDX,0x6 MOV RBX,RCX SHR RBX,0x2 ADD RDX,RBP ADD RBX,RAX ADD RBX,RDX XOR RBX,RCX LAB_00182198: MOV RDI,R14 CALL 0x0017caf4 LAB_001821a0: JMP 0x0018212b caseD_2: MOV R13D,0x9e3779b9 MOV RDI,R14 CALL 0x00141202 MOV RBX,RAX MOV EAX,R15D SHL EAX,0x6 MOV ECX,R15D SHR ECX,0x2 OR ECX,EAX ADD RBX,R13 ADD RBX,RCX XOR RBX,R15 LEA R15,[RSP + 0x18] MOV RDI,R15 MOV RSI,R14 CALL 0x001672b4 LEA R12,[RSP + 0x88] MOV RDI,R12 MOV RSI,R14 CALL 0x00167520 LAB_001821ed: MOV RDI,R15 MOV RSI,R12 CALL 0x00166d58 TEST AL,AL JZ 0x0018229d MOV RDI,R15 CALL 0x00166f52 MOV RDI,RAX CALL 0x00181fb0 MOV RCX,RBX SHL RCX,0x6 MOV RDX,RBX SHR RDX,0x2 ADD RCX,R13 ADD RCX,RDX ADD RCX,RAX XOR RBX,RCX MOV RDI,R15 CALL 0x00166eea JMP 0x001821ed caseD_6: MOV RDI,R14 CALL 0x001824fe JMP 0x00182281 caseD_4: MOV RDI,R14 CALL 0x00163078 MOV ECX,0x9e3779b9 LEA RDX,[RCX + 0x1] TEST AL,AL CMOVZ RDX,RCX MOV EAX,R15D SHL EAX,0x6 MOV EBX,R15D SHR EBX,0x2 OR EBX,EAX JMP 0x00182297 caseD_5: MOV RDI,R14 CALL 0x00162566 JMP 0x00182281 caseD_7: MOV RDI,R14 CALL 0x00162d46 LEA RDI,[RSP + 0x18] CALL 0x00182312 LAB_00182281: MOV ECX,R15D SHL ECX,0x6 MOV EDX,R15D SHR EDX,0x2 OR EDX,ECX MOV EBX,0x9e3779b9 ADD RBX,RAX LAB_00182297: ADD RBX,RDX LAB_0018229a: XOR RBX,R15 LAB_0018229d: MOV RAX,RBX ADD RSP,0xf8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001822b2: LEA RDI,[RSP + 0x88] CALL 0x0017cb06 LEA RDI,[RSP + 0x18] CALL 0x0017cb06 JMP 0x0018229d default: LEA RDI,[0x1aebdc] LEA RDX,[0x1aec26] LEA RCX,[0x1ac6d3] MOV ESI,0x17d9 XOR EAX,EAX CALL 0x00123e40
/* unsigned long nlohmann::json_abi_v3_11_3::detail::hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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> const&) */ ulong nlohmann::json_abi_v3_11_3::detail:: hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (basic_json *param_1) { byte bVar1; char cVar2; string *psVar3; long *plVar4; long lVar5; long lVar6; int8 *puVar7; basic_json *pbVar8; byte *pbVar9; ulong uVar10; ulong uVar11; ulong uVar12; double dVar13; hash<std::__cxx11::string> local_119; basic_json *local_118; hash<std::__cxx11::string> local_110 [112]; iteration_proxy<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>> local_a0 [112]; bVar1 = *param_1; uVar12 = (ulong)bVar1; switch(uVar12) { case 0: case 9: uVar11 = (ulong)((uint)(bVar1 >> 2) | (uint)bVar1 << 6) + 0x9e3779b9; goto LAB_0018229a; case 1: lVar5 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::size((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)param_1); uVar12 = lVar5 + 0x9e3779b9 + (ulong)((uint)(bVar1 >> 2) | (uint)bVar1 << 6) ^ uVar12; local_118 = param_1; iteration_proxy<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>> ::begin((iteration_proxy<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>> *)local_110); iteration_proxy<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>> ::end(local_a0); /* try { // try from 0018212b to 00182135 has its CatchHandler @ 001822f0 */ while (cVar2 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ ((iteration_proxy<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>> *)local_110,local_a0), cVar2 != '\0') { /* try { // try from 0018213e to 00182145 has its CatchHandler @ 001822ec */ psVar3 = (string *) iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>> ::key((iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>> *)local_110); lVar5 = std::hash<std::__cxx11::string>::operator()(&local_119,psVar3); /* try { // try from 00182154 to 00182163 has its CatchHandler @ 001822ee */ pbVar8 = (basic_json *) 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> ::operator*((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)local_110); uVar10 = hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (pbVar8); uVar12 = uVar12 * 0x40 + 0x9e3779b9 + (uVar12 >> 2) + lVar5 ^ uVar12; uVar12 = (uVar12 >> 2) + uVar10 + uVar12 * 0x40 + 0x9e3779b9 ^ uVar12; /* try { // try from 00182198 to 0018219f has its CatchHandler @ 001822f0 */ iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>> ::operator++((iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>> *)local_110); } iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>> ::~iteration_proxy_value ((iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>> *)local_a0); iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>> ::~iteration_proxy_value ((iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>> *)local_110); return uVar12; case 2: lVar5 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::size((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)param_1); uVar12 = lVar5 + 0x9e3779b9 + (ulong)((uint)(bVar1 >> 2) | (uint)bVar1 << 6) ^ uVar12; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::cbegin(); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::cend(); while (cVar2 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ ((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> *)local_110,local_a0), cVar2 != '\0') { pbVar8 = (basic_json *) 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> ::operator*((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)local_110); uVar10 = hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (pbVar8); uVar12 = uVar12 ^ uVar12 * 0x40 + 0x9e3779b9 + (uVar12 >> 2) + uVar10; 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> ::operator++((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)local_110); } return uVar12; case 3: psVar3 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> :: get_ref_impl<std::__cxx11::string_const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> (param_1); lVar5 = std::hash<std::__cxx11::string>::operator()(local_110,psVar3); break; case 4: cVar2 = _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIbTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE (param_1); uVar10 = 0x9e3779ba; if (cVar2 == '\0') { uVar10 = 0x9e3779b9; } uVar11 = (ulong)((uint)(bVar1 >> 2) | (uint)bVar1 << 6); goto LAB_00182297; case 5: lVar5 = _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIlTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE (param_1); break; case 6: lVar5 = _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implImTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE (param_1); break; case 7: dVar13 = (double)_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIdTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE (param_1); lVar5 = std::hash<double>::operator()((hash<double> *)local_110,dVar13); break; case 8: plVar4 = (long *)basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::get_binary((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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); uVar12 = ((ulong)((uint)(bVar1 >> 2) | (uint)bVar1 << 6) + plVar4[1] + 0x9e3779b9) - *plVar4 ^ uVar12; lVar5 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::get_binary((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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); uVar12 = (uVar12 >> 2) + 0x9e3779b9 + (uVar12 << 6 | (ulong)*(byte *)(lVar5 + 0x20)) ^ uVar12; lVar6 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::get_binary((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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); lVar5 = 0x9e3779b8; if (*(char *)(lVar6 + 0x20) != '\0') { lVar5 = *(long *)(lVar6 + 0x18) + 0x9e3779b9; } uVar12 = (uVar12 >> 2) + uVar12 * 0x40 + lVar5 ^ uVar12; puVar7 = (int8 *) basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::get_binary((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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); for (pbVar9 = (byte *)*puVar7; pbVar9 != (byte *)puVar7[1]; pbVar9 = pbVar9 + 1) { uVar12 = uVar12 ^ uVar12 * 0x40 + 0x9e3779b9 + (uVar12 >> 2) + (ulong)*pbVar9; } return uVar12; default: /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x17d9, "GGML_ASSERT(%s) failed","false"); } uVar10 = (ulong)((uint)(bVar1 >> 2) | (uint)bVar1 << 6); uVar11 = lVar5 + 0x9e3779b9; LAB_00182297: uVar11 = uVar11 + uVar10; LAB_0018229a: return uVar11 ^ uVar12; }
60,381
unsigned long nlohmann::json_abi_v3_11_3::detail::hash<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> const&)
monkey531[P]llama/common/json.hpp
constexpr value_t type() const noexcept { return m_data.m_type; }
O3
cpp
unsigned long nlohmann::json_abi_v3_11_3::detail::hash<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> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x108, %rsp # imm = 0x108 movzbl (%rdi), %r12d cmpq $0x9, %r12 ja 0xb109b movq %rdi, %r14 leaq 0x3cb5e(%rip), %rax # 0xed838 movslq (%rax,%r12,4), %rcx addq %rax, %rcx jmpq *%rcx movl %r12d, %eax shll $0x6, %eax movl %r12d, %ecx shrl $0x2, %ecx orl %eax, %ecx jmp 0xb0fd5 movq %r14, %rdi callq 0xb11c6 leaq 0x8(%rsp), %rdi movq %rax, %rsi callq 0x548ee jmp 0xb0f95 movl $0x9e3779b9, %r15d # imm = 0x9E3779B9 movq %r14, %rdi callq 0xb1112 movl %r12d, %ecx shll $0x6, %ecx movl %r12d, %ebx shrl $0x2, %ebx orl %ecx, %ebx addq 0x8(%rax), %rbx addq %r15, %rbx subq (%rax), %rbx xorq %r12, %rbx movq %r14, %rdi callq 0xb1112 movzbl 0x20(%rax), %eax movq %rbx, %rcx shlq $0x6, %rcx orq %rax, %rcx movq %rbx, %r12 shrq $0x2, %r12 addq %r15, %r12 addq %rcx, %r12 xorq %rbx, %r12 movq %r14, %rdi callq 0xb1112 movq 0x18(%rax), %rcx addq %r15, %rcx leaq -0x1(%r15), %rdx cmpb $0x0, 0x20(%rax) cmovneq %rcx, %rdx movq %r12, %rax shlq $0x6, %rax addq %rdx, %rax movq %r12, %rbx shrq $0x2, %rbx addq %rax, %rbx xorq %r12, %rbx movq %r14, %rdi callq 0xb1112 movq (%rax), %rcx movq 0x8(%rax), %rax cmpq %rax, %rcx je 0xb1020 movzbl (%rcx), %edx movq %rbx, %rsi shlq $0x6, %rsi movq %rbx, %rdi shrq $0x2, %rdi addq %r15, %rsi addq %rdi, %rsi addq %rdx, %rsi xorq %rsi, %rbx incq %rcx jmp 0xb0da0 movl $0x9e3779b9, %r15d # imm = 0x9E3779B9 movq %r14, %rdi callq 0x5c900 movq %rax, %rbx movl %r12d, %eax shll $0x6, %eax movl %r12d, %ecx shrl $0x2, %ecx orl %eax, %ecx addq %r15, %rbx addq %rcx, %rbx xorq %r12, %rbx leaq 0x78(%rsp), %r13 movq %r14, (%r13) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%r13) movabsq $-0x8000000000000000, %rbp # imm = 0x8000000000000000 movq %rbp, 0x18(%r13) movq %r13, %rdi callq 0x8bfc4 leaq 0x8(%rsp), %r12 movq %r12, %rdi movq %r13, %rsi xorl %edx, %edx callq 0xb4ad8 leaq 0xe8(%rsp), %r13 movq %r14, (%r13) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%r13) movq %rbp, 0x18(%r13) movq %r13, %rdi callq 0x8c30e leaq 0x78(%rsp), %rdi movq %r13, %rsi xorl %edx, %edx callq 0xb4ad8 movq %r12, %rdi leaq 0x78(%rsp), %rsi callq 0x8c036 testb %al, %al jne 0xb1035 movq %r12, %rdi callq 0xa99c6 movq %r13, %rdi movq %rax, %rsi callq 0x548ee movq %rax, %r14 movq %r12, %rdi callq 0x8bcca movq %rax, %rdi callq 0xb0cb1 movq %rax, %rbp movq %r12, %rdi callq 0x8bc7c movq %rbx, %rax shlq $0x6, %rax movq %rbx, %rcx shrq $0x2, %rcx addq %r15, %rax addq %rcx, %rax addq %r14, %rax xorq %rbx, %rax movq %rax, %rcx shlq $0x6, %rcx movq %rax, %rbx shrq $0x2, %rbx addq %r15, %rcx addq %rbp, %rbx addq %rcx, %rbx xorq %rax, %rbx incq 0x28(%rsp) jmp 0xb0e5b movl $0x9e3779b9, %r13d # imm = 0x9E3779B9 movq %r14, %rdi callq 0x5c900 movq %rax, %r15 movl %r12d, %eax shll $0x6, %eax movl %r12d, %ecx shrl $0x2, %ecx orl %eax, %ecx addq %r13, %r15 addq %rcx, %r15 xorq %r12, %r15 leaq 0x8(%rsp), %rbx movq %r14, (%rbx) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%rbx) movabsq $-0x8000000000000000, %rbp # imm = 0x8000000000000000 movq %rbp, 0x18(%rbx) movq %rbx, %rdi callq 0x8bfc4 leaq 0x78(%rsp), %r12 movq %r14, (%r12) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%r12) movq %rbp, 0x18(%r12) movq %r12, %rdi callq 0x8c30e movq %rbx, %rdi movq %r12, %rsi callq 0x8c036 testb %al, %al je 0xb104b movq %r15, %rbx jmp 0xb1020 leaq 0x8(%rsp), %rbx movq $0x0, (%rbx) movq %r14, %rdi movq %rbx, %rsi callq 0xb1306 jmp 0xb0fc4 leaq 0x8(%rsp), %rbx movb $0x0, (%rbx) movq %r14, %rdi movq %rbx, %rsi callq 0x86785 movzbl (%rbx), %eax movl %r12d, %ecx shll $0x6, %ecx movl %r12d, %edx shrl $0x2, %edx orl %ecx, %edx movl $0x9e3779b9, %ebx # imm = 0x9E3779B9 addq %rax, %rbx jmp 0xb101a leaq 0x8(%rsp), %rbx movq $0x0, (%rbx) movq %r14, %rdi movq %rbx, %rsi callq 0x8582d movl %r12d, %eax shll $0x6, %eax movl %r12d, %ecx shrl $0x2, %ecx orl %eax, %ecx addq (%rbx), %rcx movl $0x9e3779b9, %ebx # imm = 0x9E3779B9 addq %rcx, %rbx jmp 0xb101d leaq 0x8(%rsp), %rbx movq $0x0, (%rbx) movq %r14, %rdi movq %rbx, %rsi callq 0x863df movsd (%rbx), %xmm0 leaq 0x8(%rsp), %rdi callq 0xb10e0 movl %r12d, %ecx shll $0x6, %ecx movl %r12d, %edx shrl $0x2, %edx orl %ecx, %edx addq %rax, %rdx movl $0x9e3779b9, %ebx # imm = 0x9E3779B9 addq %rdx, %rbx xorq %r12, %rbx movq %rbx, %rax addq $0x108, %rsp # imm = 0x108 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x78(%rsp), %rdi callq 0xa9a34 leaq 0x8(%rsp), %rdi callq 0xa9a34 jmp 0xb1020 leaq 0x8(%rsp), %r14 leaq 0x78(%rsp), %r12 movq %r15, %rbx movq %r14, %rdi callq 0x8bcca movq %rax, %rdi callq 0xb0cb1 shlq $0x6, %rbx movq %r15, %rcx shrq $0x2, %rcx addq %r13, %rbx addq %rcx, %rbx addq %rax, %rbx xorq %r15, %rbx movq %r14, %rdi callq 0x8bc7c movq %r14, %rdi movq %r12, %rsi callq 0x8c036 movq %rbx, %r15 testb %al, %al je 0xb1058 jmp 0xb1020 leaq 0x39b37(%rip), %rdi # 0xeabd9 leaq 0x39b7a(%rip), %rdx # 0xeac23 leaq 0x37623(%rip), %rcx # 0xe86d3 movl $0x17d9, %esi # imm = 0x17D9 xorl %eax, %eax callq 0x1ae30 jmp 0xb10c0 jmp 0xb10c0 movq %rax, %rbx leaq 0x78(%rsp), %rdi callq 0xa9a34 leaq 0x8(%rsp), %rdi callq 0xa9a34 movq %rbx, %rdi callq 0x1af20 nop
_ZN8nlohmann16json_abi_v3_11_36detail4hashINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEEmRKT_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 108h movzx r12d, byte ptr [rdi] cmp r12, 9; switch 10 cases ja def_B0CE1; jumptable 00000000000B0CE1 default case mov r14, rdi lea rax, jpt_B0CE1 movsxd rcx, ds:(jpt_B0CE1 - 0ED838h)[rax+r12*4] add rcx, rax jmp rcx; switch jump loc_B0CE3: mov eax, r12d; jumptable 00000000000B0CE1 cases 0,9 shl eax, 6 mov ecx, r12d shr ecx, 2 or ecx, eax jmp loc_B0FD5 loc_B0CF6: mov rdi, r14; jumptable 00000000000B0CE1 case 3 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE12get_ref_implIRKS9_KSD_EET_RT0_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::get_ref_impl<std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const &) lea rdi, [rsp+138h+var_130] mov rsi, rax call _ZNKSt4hashINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclERKS5_; std::hash<std::string>::operator()(std::string const&) jmp loc_B0F95 loc_B0D10: mov r15d, 9E3779B9h; jumptable 00000000000B0CE1 case 8 mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10get_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>::get_binary(void) mov ecx, r12d shl ecx, 6 mov ebx, r12d shr ebx, 2 or ebx, ecx add rbx, [rax+8] add rbx, r15 sub rbx, [rax] xor rbx, r12 mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10get_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>::get_binary(void) movzx eax, byte ptr [rax+20h] mov rcx, rbx shl rcx, 6 or rcx, rax mov r12, rbx shr r12, 2 add r12, r15 add r12, rcx xor r12, rbx mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10get_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>::get_binary(void) mov rcx, [rax+18h] add rcx, r15 lea rdx, [r15-1] cmp byte ptr [rax+20h], 0 cmovnz rdx, rcx mov rax, r12 shl rax, 6 add rax, rdx mov rbx, r12 shr rbx, 2 add rbx, rax xor rbx, r12 mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10get_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>::get_binary(void) mov rcx, [rax] mov rax, [rax+8] loc_B0DA0: cmp rcx, rax jz loc_B1020 movzx edx, byte ptr [rcx] mov rsi, rbx shl rsi, 6 mov rdi, rbx shr rdi, 2 add rsi, r15 add rsi, rdi add rsi, rdx xor rbx, rsi inc rcx jmp short loc_B0DA0 loc_B0DCB: mov r15d, 9E3779B9h; jumptable 00000000000B0CE1 case 1 mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4sizeEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::size(void) mov rbx, rax mov eax, r12d shl eax, 6 mov ecx, r12d shr ecx, 2 or ecx, eax add rbx, r15 add rbx, rcx xor rbx, r12 lea r13, [rsp+138h+var_C0] mov [r13+0], r14 xorps xmm0, xmm0 movups xmmword ptr [r13+8], xmm0 mov rbp, 8000000000000000h mov [r13+18h], rbp mov rdi, r13 call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE9set_beginEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::set_begin(void) lea r12, [rsp+138h+var_130] mov rdi, r12 mov rsi, r13 xor edx, edx call _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEEC2ESI_m; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::iteration_proxy_value(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>,ulong) lea r13, [rsp+138h+var_50] mov [r13+0], r14 xorps xmm0, xmm0 movups xmmword ptr [r13+8], xmm0 mov [r13+18h], rbp mov rdi, r13 call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_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> const>::set_end(void) lea rdi, [rsp+138h+var_C0] mov rsi, r13 xor edx, edx call _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEEC2ESI_m; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::iteration_proxy_value(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>,ulong) loc_B0E5B: mov rdi, r12 lea rsi, [rsp+138h+var_C0] call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ test al, al jnz loc_B1035 mov rdi, r12 call _ZNK8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEE3keyEv; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::key(void) mov rdi, r13 mov rsi, rax call _ZNKSt4hashINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclERKS5_; std::hash<std::string>::operator()(std::string const&) mov r14, rax mov rdi, r12 call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEdeEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator*(void) mov rdi, rax call _ZN8nlohmann16json_abi_v3_11_36detail4hashINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEEmRKT_; nlohmann::json_abi_v3_11_3::detail::hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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 rbp, rax mov rdi, r12 call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEppEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator++(void) mov rax, rbx shl rax, 6 mov rcx, rbx shr rcx, 2 add rax, r15 add rax, rcx add rax, r14 xor rax, rbx mov rcx, rax shl rcx, 6 mov rbx, rax shr rbx, 2 add rcx, r15 add rbx, rbp add rbx, rcx xor rbx, rax inc [rsp+138h+var_110] jmp loc_B0E5B loc_B0EDF: mov r13d, 9E3779B9h; jumptable 00000000000B0CE1 case 2 mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4sizeEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::size(void) mov r15, rax mov eax, r12d shl eax, 6 mov ecx, r12d shr ecx, 2 or ecx, eax add r15, r13 add r15, rcx xor r15, r12 lea rbx, [rsp+138h+var_130] mov [rbx], r14 xorps xmm0, xmm0 movups xmmword ptr [rbx+8], xmm0 mov rbp, 8000000000000000h mov [rbx+18h], rbp mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE9set_beginEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::set_begin(void) lea r12, [rsp+138h+var_C0] mov [r12], r14 xorps xmm0, xmm0 movups xmmword ptr [r12+8], xmm0 mov [r12+18h], rbp mov rdi, r12 call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_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> const>::set_end(void) mov rdi, rbx mov rsi, r12 call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ test al, al jz loc_B104B mov rbx, r15 jmp loc_B1020 loc_B0F66: lea rbx, [rsp+138h+var_130]; jumptable 00000000000B0CE1 case 6 mov qword ptr [rbx], 0 mov rdi, r14 mov rsi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEmTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_ jmp short loc_B0FC4 loc_B0F7F: lea rbx, [rsp+138h+var_130]; jumptable 00000000000B0CE1 case 4 mov byte ptr [rbx], 0 mov rdi, r14 mov rsi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEEvRKT_RNSG_9boolean_tE; 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::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>::boolean_t &) movzx eax, byte ptr [rbx] loc_B0F95: mov ecx, r12d shl ecx, 6 mov edx, r12d shr edx, 2 or edx, ecx mov ebx, 9E3779B9h add rbx, rax jmp short loc_B101A loc_B0FAD: lea rbx, [rsp+138h+var_130]; jumptable 00000000000B0CE1 case 5 mov qword ptr [rbx], 0 mov rdi, r14 mov rsi, rbx call _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_ loc_B0FC4: mov eax, r12d shl eax, 6 mov ecx, r12d shr ecx, 2 or ecx, eax add rcx, [rbx] loc_B0FD5: mov ebx, 9E3779B9h add rbx, rcx jmp short loc_B101D loc_B0FDF: lea rbx, [rsp+138h+var_130]; jumptable 00000000000B0CE1 case 7 mov qword ptr [rbx], 0 mov rdi, r14 mov rsi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEdTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_ movsd xmm0, qword ptr [rbx] lea rdi, [rsp+138h+var_130] call _ZNKSt4hashIdEclEd; std::hash<double>::operator()(double) mov ecx, r12d shl ecx, 6 mov edx, r12d shr edx, 2 or edx, ecx add rdx, rax mov ebx, 9E3779B9h loc_B101A: add rbx, rdx loc_B101D: xor rbx, r12 loc_B1020: mov rax, rbx add rsp, 108h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_B1035: lea rdi, [rsp+138h+var_C0] call _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::~iteration_proxy_value() lea rdi, [rsp+138h+var_130] call _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::~iteration_proxy_value() jmp short loc_B1020 loc_B104B: lea r14, [rsp+138h+var_130] lea r12, [rsp+138h+var_C0] mov rbx, r15 loc_B1058: mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEdeEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator*(void) mov rdi, rax call _ZN8nlohmann16json_abi_v3_11_36detail4hashINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEEmRKT_; nlohmann::json_abi_v3_11_3::detail::hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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&) shl rbx, 6 mov rcx, r15 shr rcx, 2 add rbx, r13 add rbx, rcx add rbx, rax xor rbx, r15 mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEppEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator++(void) mov rdi, r14 mov rsi, r12 call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ mov r15, rbx test al, al jz short loc_B1058 jmp short loc_B1020 def_B0CE1: lea rdi, aWorkspaceLlm4b_0; jumptable 00000000000B0CE1 default case lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aAdvancedOption+0ABh; "false" mov esi, 17D9h xor eax, eax call _ggml_abort jmp short loc_B10C0 jmp short $+2 loc_B10C0: mov rbx, rax lea rdi, [rsp+138h+var_C0] call _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::~iteration_proxy_value() lea rdi, [rsp+138h+var_130] call _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::~iteration_proxy_value() mov rdi, rbx call __Unwind_Resume
unsigned long long nlohmann::json_abi_v3_11_3::detail::hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( unsigned __int8 *a1) { long long v1; // r12 unsigned __int8 *v2; // rcx long long v3; // rax long long v4; // rax _QWORD *binary; // rax unsigned long long v6; // rbx unsigned long long v7; // r12 long long v8; // rax long long v9; // rdx unsigned long long v10; // rbx unsigned __int8 **v11; // rax unsigned __int8 *v12; // rcx unsigned __int8 *v13; // rax long long v14; // rax long long v15; // r14 long long v16; // rax long long v17; // rbp unsigned long long v18; // r15 long long v19; // rdx long long v20; // rbx long long v21; // rbx long long v23; // rax long long v24; // rbx unsigned __int8 *v25; // [rsp+8h] [rbp-130h] BYREF __int128 v26; // [rsp+10h] [rbp-128h] unsigned long long v27; // [rsp+20h] [rbp-118h] long long v28; // [rsp+28h] [rbp-110h] unsigned __int8 *v29; // [rsp+78h] [rbp-C0h] BYREF __int128 v30; // [rsp+80h] [rbp-B8h] unsigned long long v31; // [rsp+90h] [rbp-A8h] unsigned __int8 *v32; // [rsp+E8h] [rbp-50h] BYREF __int128 v33; // [rsp+F0h] [rbp-48h] unsigned long long v34; // [rsp+100h] [rbp-38h] v1 = *a1; switch ( *a1 ) { case 0u: case 9u: v2 = (unsigned __int8 *)(((_DWORD)v1 << 6) | ((unsigned int)v1 >> 2)); goto LABEL_19; case 1u: v10 = v1 ^ ((((_DWORD)v1 << 6) | ((unsigned int)v1 >> 2)) + nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::size(a1) + 2654435769LL); v29 = a1; v30 = 0LL; v31 = 0x8000000000000000LL; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::set_begin(&v29); nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::iteration_proxy_value( &v25, &v29, 0LL); v32 = a1; v33 = 0LL; v34 = 0x8000000000000000LL; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::set_end(&v32); nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::iteration_proxy_value( &v29, &v32, 0LL); while ( !(unsigned __int8)ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_( &v25, &v29) ) { v14 = nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::key(&v25); v15 = std::hash<std::string>::operator()((long long)&v32, v14); v16 = nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator*(&v25); v17 = nlohmann::json_abi_v3_11_3::detail::hash<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>>(v16); nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator++(&v25); v10 ^= (v15 + (v10 >> 2) + (v10 << 6) + 2654435769u) ^ (((v10 ^ (v15 + (v10 >> 2) + (v10 << 6) + 2654435769u)) << 6) + 2654435769u + v17 + ((v10 ^ (v15 + (v10 >> 2) + (v10 << 6) + 2654435769u)) >> 2)); ++v28; } nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::~iteration_proxy_value(&v29); nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::~iteration_proxy_value(&v25); return v10; case 2u: v18 = v1 ^ ((((_DWORD)v1 << 6) | ((unsigned int)v1 >> 2)) + nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::size(a1) + 2654435769LL); v25 = a1; v26 = 0LL; v27 = 0x8000000000000000LL; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::set_begin(&v25); v29 = a1; v30 = 0LL; v31 = 0x8000000000000000LL; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::set_end(&v29); if ( (unsigned __int8)ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_( &v25, &v29) ) return v18; v10 = v18; do { v23 = nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator*(&v25); v10 = v18 ^ (nlohmann::json_abi_v3_11_3::detail::hash<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>>(v23) + (v18 >> 2) + (v10 << 6) + 2654435769u); nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator++(&v25); v18 = v10; } while ( !(unsigned __int8)ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_( &v25, &v29) ); return v10; case 3u: v3 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::get_ref_impl<std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>(a1); v4 = std::hash<std::string>::operator()((long long)&v25, v3); goto LABEL_16; case 4u: LOBYTE(v25) = 0; 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::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( a1, (unsigned __int8 *)&v25); v4 = (unsigned __int8)v25; LABEL_16: v19 = ((_DWORD)v1 << 6) | ((unsigned int)v1 >> 2); v20 = v4 + 2654435769LL; goto LABEL_21; case 5u: v25 = 0LL; 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_( a1, &v25); goto LABEL_18; case 6u: v25 = 0LL; ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEmTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_( a1, &v25); LABEL_18: v2 = &v25[((_DWORD)v1 << 6) | ((unsigned int)v1 >> 2)]; LABEL_19: v21 = (long long)(v2 + 2654435769LL); goto LABEL_22; case 7u: v25 = 0LL; ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEdTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_( a1, (double *)&v25); v19 = std::hash<double>::operator()(&v25, *(double *)&v25) + (((_DWORD)v1 << 6) | ((unsigned int)v1 >> 2)); v20 = 2654435769LL; LABEL_21: v21 = v19 + v20; LABEL_22: v10 = v1 ^ v21; break; case 8u: binary = (_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>::get_binary(a1); v6 = v1 ^ (binary[1] + (((_DWORD)v1 << 6) | ((unsigned int)v1 >> 2)) + 2654435769LL - *binary); v7 = v6 ^ ((*(unsigned __int8 *)(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::get_binary(a1) + 32) | (v6 << 6)) + (v6 >> 2) + 2654435769u); v8 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::get_binary(a1); v9 = 2654435768LL; if ( *(_BYTE *)(v8 + 32) ) v9 = *(_QWORD *)(v8 + 24) + 2654435769LL; v10 = v7 ^ (v9 + (v7 << 6) + (v7 >> 2)); v11 = (unsigned __int8 **)nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::get_binary(a1); v12 = *v11; v13 = v11[1]; while ( v12 != v13 ) v10 ^= *v12++ + (v10 >> 2) + (v10 << 6) + 2654435769u; break; default: v24 = ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 6105LL, "GGML_ASSERT(%s) failed", "false"); nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::~iteration_proxy_value(&v29); nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::~iteration_proxy_value(&v25); _Unwind_Resume(v24); } return v10; }
hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x108 MOVZX R12D,byte ptr [RDI] CMP R12,0x9 JA 0x001b109b MOV R14,RDI LEA RAX,[0x1ed838] MOVSXD RCX,dword ptr [RAX + R12*0x4] ADD RCX,RAX switchD: JMP RCX caseD_0: MOV EAX,R12D SHL EAX,0x6 MOV ECX,R12D SHR ECX,0x2 OR ECX,EAX JMP 0x001b0fd5 caseD_3: MOV RDI,R14 CALL 0x001b11c6 LEA RDI,[RSP + 0x8] MOV RSI,RAX CALL 0x001548ee JMP 0x001b0f95 caseD_8: MOV R15D,0x9e3779b9 MOV RDI,R14 CALL 0x001b1112 MOV ECX,R12D SHL ECX,0x6 MOV EBX,R12D SHR EBX,0x2 OR EBX,ECX ADD RBX,qword ptr [RAX + 0x8] ADD RBX,R15 SUB RBX,qword ptr [RAX] XOR RBX,R12 MOV RDI,R14 CALL 0x001b1112 MOVZX EAX,byte ptr [RAX + 0x20] MOV RCX,RBX SHL RCX,0x6 OR RCX,RAX MOV R12,RBX SHR R12,0x2 ADD R12,R15 ADD R12,RCX XOR R12,RBX MOV RDI,R14 CALL 0x001b1112 MOV RCX,qword ptr [RAX + 0x18] ADD RCX,R15 LEA RDX,[R15 + -0x1] CMP byte ptr [RAX + 0x20],0x0 CMOVNZ RDX,RCX MOV RAX,R12 SHL RAX,0x6 ADD RAX,RDX MOV RBX,R12 SHR RBX,0x2 ADD RBX,RAX XOR RBX,R12 MOV RDI,R14 CALL 0x001b1112 MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x8] LAB_001b0da0: CMP RCX,RAX JZ 0x001b1020 MOVZX EDX,byte ptr [RCX] MOV RSI,RBX SHL RSI,0x6 MOV RDI,RBX SHR RDI,0x2 ADD RSI,R15 ADD RSI,RDI ADD RSI,RDX XOR RBX,RSI INC RCX JMP 0x001b0da0 caseD_1: MOV R15D,0x9e3779b9 MOV RDI,R14 CALL 0x0015c900 MOV RBX,RAX MOV EAX,R12D SHL EAX,0x6 MOV ECX,R12D SHR ECX,0x2 OR ECX,EAX ADD RBX,R15 ADD RBX,RCX XOR RBX,R12 LEA R13,[RSP + 0x78] MOV qword ptr [R13],R14 XORPS XMM0,XMM0 MOVUPS xmmword ptr [R13 + 0x8],XMM0 MOV RBP,-0x8000000000000000 MOV qword ptr [R13 + 0x18],RBP MOV RDI,R13 CALL 0x0018bfc4 LEA R12,[RSP + 0x8] MOV RDI,R12 MOV RSI,R13 XOR EDX,EDX CALL 0x001b4ad8 LEA R13,[RSP + 0xe8] MOV qword ptr [R13],R14 XORPS XMM0,XMM0 MOVUPS xmmword ptr [R13 + 0x8],XMM0 MOV qword ptr [R13 + 0x18],RBP MOV RDI,R13 CALL 0x0018c30e LEA RDI,[RSP + 0x78] MOV RSI,R13 XOR EDX,EDX CALL 0x001b4ad8 LAB_001b0e5b: MOV RDI,R12 LEA RSI,[RSP + 0x78] CALL 0x0018c036 TEST AL,AL JNZ 0x001b1035 LAB_001b0e70: MOV RDI,R12 CALL 0x001a99c6 MOV RDI,R13 MOV RSI,RAX CALL 0x001548ee MOV R14,RAX LAB_001b0e86: MOV RDI,R12 CALL 0x0018bcca MOV RDI,RAX CALL 0x001b0cb1 LAB_001b0e96: MOV RBP,RAX MOV RDI,R12 CALL 0x0018bc7c LAB_001b0ea1: MOV RAX,RBX SHL RAX,0x6 MOV RCX,RBX SHR RCX,0x2 ADD RAX,R15 ADD RAX,RCX ADD RAX,R14 XOR RAX,RBX MOV RCX,RAX SHL RCX,0x6 MOV RBX,RAX SHR RBX,0x2 ADD RCX,R15 ADD RBX,RBP ADD RBX,RCX XOR RBX,RAX INC qword ptr [RSP + 0x28] JMP 0x001b0e5b caseD_2: MOV R13D,0x9e3779b9 MOV RDI,R14 CALL 0x0015c900 MOV R15,RAX MOV EAX,R12D SHL EAX,0x6 MOV ECX,R12D SHR ECX,0x2 OR ECX,EAX ADD R15,R13 ADD R15,RCX XOR R15,R12 LEA RBX,[RSP + 0x8] MOV qword ptr [RBX],R14 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0x8],XMM0 MOV RBP,-0x8000000000000000 MOV qword ptr [RBX + 0x18],RBP MOV RDI,RBX CALL 0x0018bfc4 LEA R12,[RSP + 0x78] MOV qword ptr [R12],R14 XORPS XMM0,XMM0 MOVUPS xmmword ptr [R12 + 0x8],XMM0 MOV qword ptr [R12 + 0x18],RBP MOV RDI,R12 CALL 0x0018c30e MOV RDI,RBX MOV RSI,R12 CALL 0x0018c036 TEST AL,AL JZ 0x001b104b MOV RBX,R15 JMP 0x001b1020 caseD_6: LEA RBX,[RSP + 0x8] MOV qword ptr [RBX],0x0 MOV RDI,R14 MOV RSI,RBX CALL 0x001b1306 JMP 0x001b0fc4 caseD_4: LEA RBX,[RSP + 0x8] MOV byte ptr [RBX],0x0 MOV RDI,R14 MOV RSI,RBX CALL 0x00186785 MOVZX EAX,byte ptr [RBX] LAB_001b0f95: MOV ECX,R12D SHL ECX,0x6 MOV EDX,R12D SHR EDX,0x2 OR EDX,ECX MOV EBX,0x9e3779b9 ADD RBX,RAX JMP 0x001b101a caseD_5: LEA RBX,[RSP + 0x8] MOV qword ptr [RBX],0x0 MOV RDI,R14 MOV RSI,RBX CALL 0x0018582d LAB_001b0fc4: MOV EAX,R12D SHL EAX,0x6 MOV ECX,R12D SHR ECX,0x2 OR ECX,EAX ADD RCX,qword ptr [RBX] LAB_001b0fd5: MOV EBX,0x9e3779b9 ADD RBX,RCX JMP 0x001b101d caseD_7: LEA RBX,[RSP + 0x8] MOV qword ptr [RBX],0x0 MOV RDI,R14 MOV RSI,RBX CALL 0x001863df MOVSD XMM0,qword ptr [RBX] LEA RDI,[RSP + 0x8] CALL 0x001b10e0 MOV ECX,R12D SHL ECX,0x6 MOV EDX,R12D SHR EDX,0x2 OR EDX,ECX ADD RDX,RAX MOV EBX,0x9e3779b9 LAB_001b101a: ADD RBX,RDX LAB_001b101d: XOR RBX,R12 LAB_001b1020: MOV RAX,RBX ADD RSP,0x108 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001b1035: LEA RDI,[RSP + 0x78] CALL 0x001a9a34 LEA RDI,[RSP + 0x8] CALL 0x001a9a34 JMP 0x001b1020 LAB_001b104b: LEA R14,[RSP + 0x8] LEA R12,[RSP + 0x78] MOV RBX,R15 LAB_001b1058: MOV RDI,R14 CALL 0x0018bcca MOV RDI,RAX CALL 0x001b0cb1 SHL RBX,0x6 MOV RCX,R15 SHR RCX,0x2 ADD RBX,R13 ADD RBX,RCX ADD RBX,RAX XOR RBX,R15 MOV RDI,R14 CALL 0x0018bc7c MOV RDI,R14 MOV RSI,R12 CALL 0x0018c036 MOV R15,RBX TEST AL,AL JZ 0x001b1058 JMP 0x001b1020 default: LEA RDI,[0x1eabd9] LEA RDX,[0x1eac23] LEA RCX,[0x1e86d3] MOV ESI,0x17d9 XOR EAX,EAX CALL 0x0011ae30
/* unsigned long nlohmann::json_abi_v3_11_3::detail::hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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> const&) */ ulong nlohmann::json_abi_v3_11_3::detail:: hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (basic_json *param_1) { basic_json bVar1; char cVar2; string *psVar3; ulong uVar4; long *plVar5; long lVar6; long lVar7; int8 *puVar8; byte *pbVar9; ulong uVar10; basic_json *pbVar11; ulong uVar12; basic_json *local_130; int8 local_128; int8 uStack_120; int8 local_118; long local_110; basic_json *local_c0; int8 local_b8; int8 uStack_b0; int8 local_a8; basic_json *local_50; int8 local_48; int8 uStack_40; int8 local_38; bVar1 = *param_1; uVar12 = (ulong)(byte)bVar1; local_c0 = param_1; switch(uVar12) { case 0: case 9: pbVar11 = (basic_json *)(ulong)((uint)((byte)bVar1 >> 2) | (uint)(byte)bVar1 << 6); goto LAB_001b0fd5; case 1: lVar6 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::size((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)param_1); uVar12 = lVar6 + 0x9e3779b9 + (ulong)((uint)((byte)bVar1 >> 2) | (uint)(byte)bVar1 << 6) ^ uVar12; local_b8 = 0; uStack_b0 = 0; local_a8 = 0x8000000000000000; 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> ::set_begin((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> *)&local_c0); iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>> ::iteration_proxy_value ((iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>> *)&local_130, (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> *)&local_c0,0); local_48 = 0; uStack_40 = 0; local_38 = 0x8000000000000000; local_50 = param_1; iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> ::set_end((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> *)&local_50); iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>> ::iteration_proxy_value ((iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>> *)&local_c0, (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> *)&local_50,0); /* try { // try from 001b0e5b to 001b0e67 has its CatchHandler @ 001b10c0 */ while (cVar2 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ ((iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>> *)&local_130,&local_c0), cVar2 == '\0') { /* try { // try from 001b0e70 to 001b0e77 has its CatchHandler @ 001b10bc */ psVar3 = (string *) iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>> ::key((iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>> *)&local_130); lVar6 = std::hash<std::__cxx11::string>::operator() ((hash<std::__cxx11::string> *)&local_50,psVar3); /* try { // try from 001b0e86 to 001b0e95 has its CatchHandler @ 001b10be */ pbVar11 = (basic_json *) 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> ::operator*((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_130); uVar10 = hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (pbVar11); /* try { // try from 001b0e96 to 001b0ea0 has its CatchHandler @ 001b10c0 */ 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> ::operator++((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_130); uVar12 = uVar12 * 0x40 + 0x9e3779b9 + (uVar12 >> 2) + lVar6 ^ uVar12; uVar12 = (uVar12 >> 2) + uVar10 + uVar12 * 0x40 + 0x9e3779b9 ^ uVar12; local_110 = local_110 + 1; } iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>> ::~iteration_proxy_value ((iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>> *)&local_c0); iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>> ::~iteration_proxy_value ((iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>> *)&local_130); break; case 2: lVar6 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::size((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)param_1); uVar12 = lVar6 + 0x9e3779b9 + (ulong)((uint)((byte)bVar1 >> 2) | (uint)(byte)bVar1 << 6) ^ uVar12; local_128 = 0; uStack_120 = 0; local_118 = 0x8000000000000000; local_130 = param_1; iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> ::set_begin((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> *)&local_130); local_b8 = 0; uStack_b0 = 0; local_a8 = 0x8000000000000000; 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> ::set_end((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> *)&local_c0); cVar2 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ ((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> *)&local_130, (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> *)&local_c0); if (cVar2 == '\0') { do { pbVar11 = (basic_json *) 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> ::operator*((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_130); uVar10 = hash<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (pbVar11); uVar12 = uVar12 * 0x40 + 0x9e3779b9 + (uVar12 >> 2) + uVar10 ^ uVar12; 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> ::operator++((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> *)&local_130); cVar2 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_ ((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> *)&local_130,&local_c0); } while (cVar2 == '\0'); } break; case 3: psVar3 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> :: get_ref_impl<std::__cxx11::string_const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const> (param_1); uVar4 = std::hash<std::__cxx11::string>::operator() ((hash<std::__cxx11::string> *)&local_130,psVar3); goto LAB_001b0f95; case 4: local_130 = (basic_json *)((ulong)local_130 & 0xffffffffffffff00); from_json<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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,(boolean_t *)&local_130); uVar4 = (ulong)local_130 & 0xff; LAB_001b0f95: uVar10 = (ulong)((uint)((byte)bVar1 >> 2) | (uint)(byte)bVar1 << 6); lVar6 = uVar4 + 0x9e3779b9; LAB_001b101a: pbVar11 = (basic_json *)(lVar6 + uVar10); LAB_001b101d: uVar12 = (ulong)pbVar11 ^ uVar12; break; case 5: local_130 = (basic_json *)0x0; _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_ (param_1,&local_130); goto LAB_001b0fc4; case 6: local_130 = (basic_json *)0x0; _ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEmTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_ (param_1,&local_130); LAB_001b0fc4: pbVar11 = local_130 + ((uint)((byte)bVar1 >> 2) | (uint)(byte)bVar1 << 6); LAB_001b0fd5: pbVar11 = pbVar11 + 0x9e3779b9; goto LAB_001b101d; case 7: local_130 = (basic_json *)0x0; _ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEdTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_ (param_1,&local_130); lVar6 = std::hash<double>::operator()((hash<double> *)&local_130,(double)local_130); uVar10 = (ulong)((uint)((byte)bVar1 >> 2) | (uint)(byte)bVar1 << 6) + lVar6; lVar6 = 0x9e3779b9; goto LAB_001b101a; case 8: plVar5 = (long *)basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::get_binary((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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); uVar12 = ((ulong)((uint)((byte)bVar1 >> 2) | (uint)(byte)bVar1 << 6) + plVar5[1] + 0x9e3779b9) - *plVar5 ^ uVar12; lVar6 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::get_binary((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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); uVar12 = (uVar12 >> 2) + 0x9e3779b9 + (uVar12 << 6 | (ulong)*(byte *)(lVar6 + 0x20)) ^ uVar12; lVar7 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::get_binary((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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); lVar6 = 0x9e3779b8; if (*(char *)(lVar7 + 0x20) != '\0') { lVar6 = *(long *)(lVar7 + 0x18) + 0x9e3779b9; } uVar12 = (uVar12 >> 2) + uVar12 * 0x40 + lVar6 ^ uVar12; puVar8 = (int8 *) basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::get_binary((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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); for (pbVar9 = (byte *)*puVar8; pbVar9 != (byte *)puVar8[1]; pbVar9 = pbVar9 + 1) { uVar12 = uVar12 ^ uVar12 * 0x40 + 0x9e3779b9 + (uVar12 >> 2) + (ulong)*pbVar9; } break; default: /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x17d9, "GGML_ASSERT(%s) failed","false"); } return uVar12; }
60,382
trim(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
monkey531[P]llama/src/llama-chat.cpp
static std::string trim(const std::string & str) { size_t start = 0; size_t end = str.size(); while (start < end && isspace(str[start])) { start += 1; } while (end > start && isspace(str[end - 1])) { end -= 1; } return str.substr(start, end - start); }
O3
cpp
trim(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 movq (%rsi), %rbp movq 0x8(%rsi), %r13 xorl %r15d, %r15d testq %r13, %r13 je 0x9c45b movsbl (%rbp,%r15), %edi callq 0x643b0 testl %eax, %eax je 0x9c45b incq %r15 cmpq %r15, %r13 jne 0x9c441 movq %r13, %r15 cmpq %r13, %r15 movq %r13, %r12 cmovbq %r15, %r12 cmpq %r15, %r13 jbe 0x9c482 movsbl -0x1(%rbp,%r13), %edi decq %r13 callq 0x643b0 testl %eax, %eax jne 0x9c465 incq %r13 movq %r13, %r12 subq %r15, %r12 movq %r14, %rdi movq %rbx, %rsi movq %r15, %rdx movq %r12, %rcx addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x68270
_ZL4trimRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rsi mov r14, rdi mov rbp, [rsi] mov r13, [rsi+8] xor r15d, r15d test r13, r13 jz short loc_9C45B loc_9C441: movsx edi, byte ptr [rbp+r15+0] call _isspace test eax, eax jz short loc_9C45B inc r15 cmp r13, r15 jnz short loc_9C441 mov r15, r13 loc_9C45B: cmp r15, r13 mov r12, r13 cmovb r12, r15 loc_9C465: cmp r13, r15 jbe short loc_9C482 movsx edi, byte ptr [rbp+r13-1] dec r13 call _isspace test eax, eax jnz short loc_9C465 inc r13 mov r12, r13 loc_9C482: sub r12, r15 mov rdi, r14 mov rsi, rbx mov rdx, r15 mov rcx, r12 add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
long long trim(long long a1, long long *a2) { long long v3; // rbp unsigned long long v4; // r13 unsigned long long v5; // r15 unsigned long long v6; // r12 long long v7; // rdi v3 = *a2; v4 = a2[1]; v5 = 0LL; if ( v4 ) { while ( (unsigned int)isspace((unsigned int)*(char *)(v3 + v5)) ) { if ( v4 == ++v5 ) { v5 = v4; break; } } } v6 = v4; if ( v5 < v4 ) v6 = v5; while ( v4 > v5 ) { v7 = (unsigned int)*(char *)(v3 + v4-- - 1); if ( !(unsigned int)isspace(v7) ) { v6 = v4 + 1; return std::string::substr(a1, a2, v5, v6 - v5); } } return std::string::substr(a1, a2, v5, v6 - v5); }
trim: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RSI MOV R14,RDI MOV RBP,qword ptr [RSI] MOV R13,qword ptr [RSI + 0x8] XOR R15D,R15D TEST R13,R13 JZ 0x0019c45b LAB_0019c441: MOVSX EDI,byte ptr [RBP + R15*0x1] CALL 0x001643b0 TEST EAX,EAX JZ 0x0019c45b INC R15 CMP R13,R15 JNZ 0x0019c441 MOV R15,R13 LAB_0019c45b: CMP R15,R13 MOV R12,R13 CMOVC R12,R15 LAB_0019c465: CMP R13,R15 JBE 0x0019c482 MOVSX EDI,byte ptr [RBP + R13*0x1 + -0x1] DEC R13 CALL 0x001643b0 TEST EAX,EAX JNZ 0x0019c465 INC R13 MOV R12,R13 LAB_0019c482: SUB R12,R15 MOV RDI,R14 MOV RSI,RBX MOV RDX,R15 MOV RCX,R12 ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x00168270
/* trim(std::__cxx11::string const&) */ void trim(string *param_1) { char *pcVar1; long lVar2; int iVar3; long *in_RSI; ulong uVar4; ulong uVar5; ulong uVar6; lVar2 = *in_RSI; uVar4 = in_RSI[1]; uVar5 = 0; uVar6 = uVar5; if (uVar4 != 0) { do { iVar3 = isspace((int)*(char *)(lVar2 + uVar5)); uVar6 = uVar5; if (iVar3 == 0) break; uVar5 = uVar5 + 1; uVar6 = uVar4; } while (uVar4 != uVar5); } do { if (uVar4 <= uVar6) break; pcVar1 = (char *)(lVar2 + -1 + uVar4); uVar4 = uVar4 - 1; iVar3 = isspace((int)*pcVar1); } while (iVar3 != 0); std::__cxx11::string::substr((ulong)param_1,(ulong)in_RSI); return; }
60,383
SET_file
xtate/src/generate-modules/addr-list-gen.c
static ConfRes SET_file(void *conf, const char *name, const char *value) { UNUSEDPARM(conf); UNUSEDPARM(name); addrlist_conf.fp = fopen(value, "rb"); if (addrlist_conf.fp == NULL) { LOG(LEVEL_ERROR, "(list generator) %s: %s\n", value, strerror(errno)); return Conf_ERR; } return Conf_OK; }
O3
c
SET_file: pushq %rbx movq %rdx, %rbx leaq 0x3da7f(%rip), %rsi # 0x5d004 movq %rdx, %rdi callq 0x15e00 movq %rax, %rcx movq %rax, 0x183901(%rip) # 0x1a2e98 xorl %eax, %eax testq %rcx, %rcx jne 0x1f5c8 callq 0x15b70 movl (%rax), %edi callq 0x15810 leaq 0x41657(%rip), %rsi # 0x60c08 movl $0xffffffff, %edi # imm = 0xFFFFFFFF movq %rbx, %rdx movq %rax, %rcx xorl %eax, %eax callq 0x536da movl $0x1, %eax popq %rbx retq
SET_file: push rbx mov rbx, rdx lea rsi, unk_5D004 mov rdi, rdx call _fopen mov rcx, rax mov cs:addrlist_conf, rax xor eax, eax test rcx, rcx jnz short loc_1F5C8 call ___errno_location mov edi, [rax] call _strerror lea rsi, aListGeneratorS_0; "(list generator) %s: %s\n" mov edi, 0FFFFFFFFh mov rdx, rbx mov rcx, rax xor eax, eax call LOG mov eax, 1 loc_1F5C8: pop rbx retn
long long SET_file(long long a1, long long a2, long long a3) { int v3; // ebx long long v5; // rdx long long v6; // r8 long long result; // rax unsigned int *v8; // rax int v9; // eax int v10; // r8d int v11; // r9d v3 = a3; addrlist_conf = fopen(a3, &unk_5D004); result = 0LL; if ( !addrlist_conf ) { v8 = (unsigned int *)__errno_location(a3, &unk_5D004, v5, 0LL, v6); v9 = strerror(*v8); LOG(-1, (unsigned int)"(list generator) %s: %s\n", v3, v9, v10, v11); return 1LL; } return result; }
SET_file: PUSH RBX MOV RBX,RDX LEA RSI,[0x15d004] MOV RDI,RDX CALL 0x00115e00 MOV RCX,RAX MOV qword ptr [0x002a2e98],RAX XOR EAX,EAX TEST RCX,RCX JNZ 0x0011f5c8 CALL 0x00115b70 MOV EDI,dword ptr [RAX] CALL 0x00115810 LEA RSI,[0x160c08] MOV EDI,0xffffffff MOV RDX,RBX MOV RCX,RAX XOR EAX,EAX CALL 0x001536da MOV EAX,0x1 LAB_0011f5c8: POP RBX RET
bool SET_file(int8 param_1,int8 param_2,char *param_3) { int *piVar1; char *pcVar2; bool bVar3; addrlist_conf = fopen(param_3,"rb"); bVar3 = addrlist_conf == (FILE *)0x0; if (bVar3) { piVar1 = __errno_location(); pcVar2 = strerror(*piVar1); LOG(0xffffffff,"(list generator) %s: %s\n",param_3,pcVar2); } return bVar3; }
60,384
httplib::ClientImpl::~ClientImpl()
hkr04[P]cpp-mcp/common/httplib.h
inline ClientImpl::~ClientImpl() { std::lock_guard<std::mutex> guard(socket_mutex_); shutdown_socket(socket_); close_socket(socket_); }
O1
c
httplib::ClientImpl::~ClientImpl(): pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx leaq 0x476e0(%rip), %rax # 0x5c360 movq %rax, (%rdi) leaq 0x58(%rdi), %r14 movq %r14, %rdi callq 0x87f0 testl %eax, %eax jne 0x14e9f movl 0x50(%rbx), %edi cmpl $-0x1, %edi je 0x14ca9 movl $0x2, %esi callq 0x8760 movl 0x50(%rbx), %edi cmpl $-0x1, %edi je 0x14cbd callq 0x8a50 movl $0xffffffff, 0x50(%rbx) # imm = 0xFFFFFFFF movq %r14, %rdi callq 0x8440 movq 0x310(%rbx), %rax testq %rax, %rax je 0x14ce2 leaq 0x300(%rbx), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq 0x2e0(%rbx), %rdi leaq 0x2f0(%rbx), %rax cmpq %rax, %rdi je 0x14d00 movq (%rax), %rsi incq %rsi callq 0x8580 movq 0x2c0(%rbx), %rdi leaq 0x2d0(%rbx), %rax cmpq %rax, %rdi je 0x14d1e movq (%rax), %rsi incq %rsi callq 0x8580 movq 0x2a0(%rbx), %rdi leaq 0x2b0(%rbx), %rax cmpq %rax, %rdi je 0x14d3c movq (%rax), %rsi incq %rsi callq 0x8580 movq 0x278(%rbx), %rdi leaq 0x288(%rbx), %rax cmpq %rax, %rdi je 0x14d5a movq (%rax), %rsi incq %rsi callq 0x8580 movq 0x258(%rbx), %rdi leaq 0x268(%rbx), %rax cmpq %rax, %rdi je 0x14d78 movq (%rax), %rsi incq %rsi callq 0x8580 movq 0x240(%rbx), %rax testq %rax, %rax je 0x14d95 leaq 0x230(%rbx), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq 0x200(%rbx), %rdi leaq 0x210(%rbx), %rax cmpq %rax, %rdi je 0x14db3 movq (%rax), %rsi incq %rsi callq 0x8580 movq 0x1e0(%rbx), %rdi leaq 0x1f0(%rbx), %rax cmpq %rax, %rdi je 0x14dd1 movq (%rax), %rsi incq %rsi callq 0x8580 movq 0x1c0(%rbx), %rdi leaq 0x1d0(%rbx), %rax cmpq %rax, %rdi je 0x14def movq (%rax), %rsi incq %rsi callq 0x8580 movq 0x168(%rbx), %rdi leaq 0x178(%rbx), %rax cmpq %rax, %rdi je 0x14e0d movq (%rax), %rsi incq %rsi callq 0x8580 movq 0x148(%rbx), %rdi leaq 0x158(%rbx), %rax cmpq %rax, %rdi je 0x14e2b movq (%rax), %rsi incq %rsi callq 0x8580 movq 0x138(%rbx), %rax testq %rax, %rax je 0x14e48 leaq 0x128(%rbx), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax leaq 0xf0(%rbx), %rdi callq 0x16ecc leaq 0xc0(%rbx), %rdi callq 0x16fa0 movq 0x30(%rbx), %rdi leaq 0x40(%rbx), %rax cmpq %rax, %rdi je 0x14e78 movq (%rax), %rsi incq %rsi callq 0x8580 movq 0x8(%rbx), %rdi addq $0x18, %rbx cmpq %rbx, %rdi je 0x14e97 movq (%rbx), %rsi incq %rsi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x8580 addq $0x8, %rsp popq %rbx popq %r14 retq movl %eax, %edi callq 0x8380 jmp 0x14eac jmp 0x14eac jmp 0x14eac movq %rax, %rdi callq 0xae2d
_ZN7httplib10ClientImplD2Ev: push r14 push rbx push rax mov rbx, rdi lea rax, off_5C360 mov [rdi], rax lea r14, [rdi+58h] mov rdi, r14 call _pthread_mutex_lock test eax, eax jnz loc_14E9F mov edi, [rbx+50h] cmp edi, 0FFFFFFFFh jz short loc_14CA9 mov esi, 2 call _shutdown loc_14CA9: mov edi, [rbx+50h] cmp edi, 0FFFFFFFFh jz short loc_14CBD call _close mov dword ptr [rbx+50h], 0FFFFFFFFh loc_14CBD: mov rdi, r14 call _pthread_mutex_unlock mov rax, [rbx+310h] test rax, rax jz short loc_14CE2 lea rdi, [rbx+300h] mov rsi, rdi mov edx, 3 call rax loc_14CE2: mov rdi, [rbx+2E0h]; void * lea rax, [rbx+2F0h] cmp rdi, rax jz short loc_14D00 mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_14D00: mov rdi, [rbx+2C0h]; void * lea rax, [rbx+2D0h] cmp rdi, rax jz short loc_14D1E mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_14D1E: mov rdi, [rbx+2A0h]; void * lea rax, [rbx+2B0h] cmp rdi, rax jz short loc_14D3C mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_14D3C: mov rdi, [rbx+278h]; void * lea rax, [rbx+288h] cmp rdi, rax jz short loc_14D5A mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_14D5A: mov rdi, [rbx+258h]; void * lea rax, [rbx+268h] cmp rdi, rax jz short loc_14D78 mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_14D78: mov rax, [rbx+240h] test rax, rax jz short loc_14D95 lea rdi, [rbx+230h] mov rsi, rdi mov edx, 3 call rax loc_14D95: mov rdi, [rbx+200h]; void * lea rax, [rbx+210h] cmp rdi, rax jz short loc_14DB3 mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_14DB3: mov rdi, [rbx+1E0h]; void * lea rax, [rbx+1F0h] cmp rdi, rax jz short loc_14DD1 mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_14DD1: mov rdi, [rbx+1C0h]; void * lea rax, [rbx+1D0h] cmp rdi, rax jz short loc_14DEF mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_14DEF: mov rdi, [rbx+168h]; void * lea rax, [rbx+178h] cmp rdi, rax jz short loc_14E0D mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_14E0D: mov rdi, [rbx+148h]; void * lea rax, [rbx+158h] cmp rdi, rax jz short loc_14E2B mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_14E2B: mov rax, [rbx+138h] test rax, rax jz short loc_14E48 lea rdi, [rbx+128h] mov rsi, rdi mov edx, 3 call rax loc_14E48: lea rdi, [rbx+0F0h] call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESaIS8_ENSt8__detail10_Select1stEN7httplib6detail11case_ignore8equal_toENSE_4hashENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb0EEEED2Ev; std::_Hashtable<std::string,std::pair<std::string const,std::string>,std::allocator<std::pair<std::string const,std::string>>,std::__detail::_Select1st,httplib::detail::case_ignore::equal_to,httplib::detail::case_ignore::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,false>>::~_Hashtable() lea rdi, [rbx+0C0h] call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree() mov rdi, [rbx+30h]; void * lea rax, [rbx+40h] cmp rdi, rax jz short loc_14E78 mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_14E78: mov rdi, [rbx+8]; void * add rbx, 18h cmp rdi, rbx jz short loc_14E97 mov rsi, [rbx] inc rsi; unsigned __int64 add rsp, 8 pop rbx pop r14 jmp __ZdlPvm; operator delete(void *,ulong) loc_14E97: add rsp, 8 pop rbx pop r14 retn loc_14E9F: mov edi, eax; int call __ZSt20__throw_system_errori; std::__throw_system_error(int) jmp short loc_14EAC jmp short loc_14EAC jmp short $+2 loc_14EAC: mov rdi, rax call __clang_call_terminate
void httplib::ClientImpl::~ClientImpl(httplib::ClientImpl *this) { char *v2; // r14 int v3; // eax long long v4; // rdi long long v5; // rdi void ( *v6)(char *, char *, long long); // rax char *v7; // rdi char *v8; // rdi char *v9; // rdi char *v10; // rdi char *v11; // rdi void ( *v12)(char *, char *, long long); // rax char *v13; // rdi char *v14; // rdi char *v15; // rdi char *v16; // rdi char *v17; // rdi void ( *v18)(char *, char *, long long); // rax char *v19; // rdi _QWORD *v20; // rdi _QWORD *v21; // rbx *(_QWORD *)this = off_5C360; v2 = (char *)this + 88; v3 = pthread_mutex_lock((char *)this + 88); if ( v3 ) std::__throw_system_error(v3); v4 = *((unsigned int *)this + 20); if ( (_DWORD)v4 != -1 ) shutdown(v4, 2LL); v5 = *((unsigned int *)this + 20); if ( (_DWORD)v5 != -1 ) { close(v5); *((_DWORD *)this + 20) = -1; } pthread_mutex_unlock(v2); v6 = (void ( *)(char *, char *, long long))*((_QWORD *)this + 98); if ( v6 ) v6((char *)this + 768, (char *)this + 768, 3LL); v7 = (char *)*((_QWORD *)this + 92); if ( v7 != (char *)this + 752 ) operator delete(v7, *((_QWORD *)this + 94) + 1LL); v8 = (char *)*((_QWORD *)this + 88); if ( v8 != (char *)this + 720 ) operator delete(v8, *((_QWORD *)this + 90) + 1LL); v9 = (char *)*((_QWORD *)this + 84); if ( v9 != (char *)this + 688 ) operator delete(v9, *((_QWORD *)this + 86) + 1LL); v10 = (char *)*((_QWORD *)this + 79); if ( v10 != (char *)this + 648 ) operator delete(v10, *((_QWORD *)this + 81) + 1LL); v11 = (char *)*((_QWORD *)this + 75); if ( v11 != (char *)this + 616 ) operator delete(v11, *((_QWORD *)this + 77) + 1LL); v12 = (void ( *)(char *, char *, long long))*((_QWORD *)this + 72); if ( v12 ) v12((char *)this + 560, (char *)this + 560, 3LL); v13 = (char *)*((_QWORD *)this + 64); if ( v13 != (char *)this + 528 ) operator delete(v13, *((_QWORD *)this + 66) + 1LL); v14 = (char *)*((_QWORD *)this + 60); if ( v14 != (char *)this + 496 ) operator delete(v14, *((_QWORD *)this + 62) + 1LL); v15 = (char *)*((_QWORD *)this + 56); if ( v15 != (char *)this + 464 ) operator delete(v15, *((_QWORD *)this + 58) + 1LL); v16 = (char *)*((_QWORD *)this + 45); if ( v16 != (char *)this + 376 ) operator delete(v16, *((_QWORD *)this + 47) + 1LL); v17 = (char *)*((_QWORD *)this + 41); if ( v17 != (char *)this + 344 ) operator delete(v17, *((_QWORD *)this + 43) + 1LL); v18 = (void ( *)(char *, char *, long long))*((_QWORD *)this + 39); if ( v18 ) v18((char *)this + 296, (char *)this + 296, 3LL); std::_Hashtable<std::string,std::pair<std::string const,std::string>,std::allocator<std::pair<std::string const,std::string>>,std::__detail::_Select1st,httplib::detail::case_ignore::equal_to,httplib::detail::case_ignore::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,false>>::~_Hashtable((char *)this + 240); std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree((char *)this + 192); v19 = (char *)*((_QWORD *)this + 6); if ( v19 != (char *)this + 64 ) operator delete(v19, *((_QWORD *)this + 8) + 1LL); v20 = (_QWORD *)*((_QWORD *)this + 1); v21 = (_QWORD *)((char *)this + 24); if ( v20 != v21 ) operator delete(v20, *v21 + 1LL); }
~ClientImpl: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI LEA RAX,[0x15c360] MOV qword ptr [RDI],RAX LEA R14,[RDI + 0x58] MOV RDI,R14 CALL 0x001087f0 TEST EAX,EAX JNZ 0x00114e9f MOV EDI,dword ptr [RBX + 0x50] CMP EDI,-0x1 JZ 0x00114ca9 MOV ESI,0x2 CALL 0x00108760 LAB_00114ca9: MOV EDI,dword ptr [RBX + 0x50] CMP EDI,-0x1 JZ 0x00114cbd LAB_00114cb1: CALL 0x00108a50 MOV dword ptr [RBX + 0x50],0xffffffff LAB_00114cbd: MOV RDI,R14 CALL 0x00108440 MOV RAX,qword ptr [RBX + 0x310] TEST RAX,RAX JZ 0x00114ce2 LEA RDI,[RBX + 0x300] LAB_00114cd8: MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_00114ce2: MOV RDI,qword ptr [RBX + 0x2e0] LEA RAX,[RBX + 0x2f0] CMP RDI,RAX JZ 0x00114d00 MOV RSI,qword ptr [RAX] INC RSI CALL 0x00108580 LAB_00114d00: MOV RDI,qword ptr [RBX + 0x2c0] LEA RAX,[RBX + 0x2d0] CMP RDI,RAX JZ 0x00114d1e MOV RSI,qword ptr [RAX] INC RSI CALL 0x00108580 LAB_00114d1e: MOV RDI,qword ptr [RBX + 0x2a0] LEA RAX,[RBX + 0x2b0] CMP RDI,RAX JZ 0x00114d3c MOV RSI,qword ptr [RAX] INC RSI CALL 0x00108580 LAB_00114d3c: MOV RDI,qword ptr [RBX + 0x278] LEA RAX,[RBX + 0x288] CMP RDI,RAX JZ 0x00114d5a MOV RSI,qword ptr [RAX] INC RSI CALL 0x00108580 LAB_00114d5a: MOV RDI,qword ptr [RBX + 0x258] LEA RAX,[RBX + 0x268] CMP RDI,RAX JZ 0x00114d78 MOV RSI,qword ptr [RAX] INC RSI CALL 0x00108580 LAB_00114d78: MOV RAX,qword ptr [RBX + 0x240] TEST RAX,RAX JZ 0x00114d95 LEA RDI,[RBX + 0x230] LAB_00114d8b: MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_00114d95: MOV RDI,qword ptr [RBX + 0x200] LEA RAX,[RBX + 0x210] CMP RDI,RAX JZ 0x00114db3 MOV RSI,qword ptr [RAX] INC RSI CALL 0x00108580 LAB_00114db3: MOV RDI,qword ptr [RBX + 0x1e0] LEA RAX,[RBX + 0x1f0] CMP RDI,RAX JZ 0x00114dd1 MOV RSI,qword ptr [RAX] INC RSI CALL 0x00108580 LAB_00114dd1: MOV RDI,qword ptr [RBX + 0x1c0] LEA RAX,[RBX + 0x1d0] CMP RDI,RAX JZ 0x00114def MOV RSI,qword ptr [RAX] INC RSI CALL 0x00108580 LAB_00114def: MOV RDI,qword ptr [RBX + 0x168] LEA RAX,[RBX + 0x178] CMP RDI,RAX JZ 0x00114e0d MOV RSI,qword ptr [RAX] INC RSI CALL 0x00108580 LAB_00114e0d: MOV RDI,qword ptr [RBX + 0x148] LEA RAX,[RBX + 0x158] CMP RDI,RAX JZ 0x00114e2b MOV RSI,qword ptr [RAX] INC RSI CALL 0x00108580 LAB_00114e2b: MOV RAX,qword ptr [RBX + 0x138] TEST RAX,RAX JZ 0x00114e48 LEA RDI,[RBX + 0x128] LAB_00114e3e: MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_00114e48: LEA RDI,[RBX + 0xf0] CALL 0x00116ecc LEA RDI,[RBX + 0xc0] CALL 0x00116fa0 MOV RDI,qword ptr [RBX + 0x30] LEA RAX,[RBX + 0x40] CMP RDI,RAX JZ 0x00114e78 MOV RSI,qword ptr [RAX] INC RSI CALL 0x00108580 LAB_00114e78: MOV RDI,qword ptr [RBX + 0x8] ADD RBX,0x18 CMP RDI,RBX JZ 0x00114e97 MOV RSI,qword ptr [RBX] INC RSI ADD RSP,0x8 POP RBX POP R14 JMP 0x00108580 LAB_00114e97: ADD RSP,0x8 POP RBX POP R14 RET LAB_00114e9f: MOV EDI,EAX CALL 0x00108380
/* httplib::ClientImpl::~ClientImpl() */ void __thiscall httplib::ClientImpl::~ClientImpl(ClientImpl *this) { int iVar1; *(int ***)this = &PTR__ClientImpl_0015c360; iVar1 = pthread_mutex_lock((pthread_mutex_t *)(this + 0x58)); if (iVar1 != 0) { /* try { // try from 00114e9f to 00114ea5 has its CatchHandler @ 00114eac */ /* WARNING: Subroutine does not return */ std::__throw_system_error(iVar1); } if (*(int *)(this + 0x50) != -1) { shutdown(*(int *)(this + 0x50),2); } if (*(int *)(this + 0x50) != -1) { /* try { // try from 00114cb1 to 00114cb5 has its CatchHandler @ 00114eac */ close(*(int *)(this + 0x50)); *(int4 *)(this + 0x50) = 0xffffffff; } pthread_mutex_unlock((pthread_mutex_t *)(this + 0x58)); if (*(code **)(this + 0x310) != (code *)0x0) { /* try { // try from 00114cd8 to 00114ce1 has its CatchHandler @ 00114eaa */ (**(code **)(this + 0x310))(this + 0x300,this + 0x300,3); } if (*(ClientImpl **)(this + 0x2e0) != this + 0x2f0) { operator_delete(*(ClientImpl **)(this + 0x2e0),*(long *)(this + 0x2f0) + 1); } if (*(ClientImpl **)(this + 0x2c0) != this + 0x2d0) { operator_delete(*(ClientImpl **)(this + 0x2c0),*(long *)(this + 0x2d0) + 1); } if (*(ClientImpl **)(this + 0x2a0) != this + 0x2b0) { operator_delete(*(ClientImpl **)(this + 0x2a0),*(long *)(this + 0x2b0) + 1); } if (*(ClientImpl **)(this + 0x278) != this + 0x288) { operator_delete(*(ClientImpl **)(this + 0x278),*(long *)(this + 0x288) + 1); } if (*(ClientImpl **)(this + 600) != this + 0x268) { operator_delete(*(ClientImpl **)(this + 600),*(long *)(this + 0x268) + 1); } if (*(code **)(this + 0x240) != (code *)0x0) { /* try { // try from 00114d8b to 00114d94 has its CatchHandler @ 00114ea8 */ (**(code **)(this + 0x240))(this + 0x230,this + 0x230,3); } if (*(ClientImpl **)(this + 0x200) != this + 0x210) { operator_delete(*(ClientImpl **)(this + 0x200),*(long *)(this + 0x210) + 1); } if (*(ClientImpl **)(this + 0x1e0) != this + 0x1f0) { operator_delete(*(ClientImpl **)(this + 0x1e0),*(long *)(this + 0x1f0) + 1); } if (*(ClientImpl **)(this + 0x1c0) != this + 0x1d0) { operator_delete(*(ClientImpl **)(this + 0x1c0),*(long *)(this + 0x1d0) + 1); } if (*(ClientImpl **)(this + 0x168) != this + 0x178) { operator_delete(*(ClientImpl **)(this + 0x168),*(long *)(this + 0x178) + 1); } if (*(ClientImpl **)(this + 0x148) != this + 0x158) { operator_delete(*(ClientImpl **)(this + 0x148),*(long *)(this + 0x158) + 1); } if (*(code **)(this + 0x138) != (code *)0x0) { /* try { // try from 00114e3e to 00114e47 has its CatchHandler @ 00114ea6 */ (**(code **)(this + 0x138))(this + 0x128,this + 0x128,3); } std:: _Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::__detail::_Select1st,httplib::detail::case_ignore::equal_to,httplib::detail::case_ignore::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,false>> ::~_Hashtable((_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::__detail::_Select1st,httplib::detail::case_ignore::equal_to,httplib::detail::case_ignore::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,false>> *)(this + 0xf0)); std:: _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>> ::~_Rb_tree((_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>> *)(this + 0xc0)); if (*(ClientImpl **)(this + 0x30) != this + 0x40) { operator_delete(*(ClientImpl **)(this + 0x30),*(long *)(this + 0x40) + 1); } if (*(ClientImpl **)(this + 8) != this + 0x18) { operator_delete(*(ClientImpl **)(this + 8),*(long *)(this + 0x18) + 1); return; } return; }
60,385
httplib::ClientImpl::~ClientImpl()
hkr04[P]cpp-mcp/common/httplib.h
inline ClientImpl::~ClientImpl() { std::lock_guard<std::mutex> guard(socket_mutex_); shutdown_socket(socket_); close_socket(socket_); }
O3
c
httplib::ClientImpl::~ClientImpl(): pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx leaq 0x47bba(%rip), %rax # 0x5c378 movq %rax, (%rdi) leaq 0x58(%rdi), %r14 movq %r14, %rdi callq 0x87f0 testl %eax, %eax jne 0x149dd movl 0x50(%rbx), %edi cmpl $-0x1, %edi je 0x147fb movl $0x2, %esi callq 0x8760 movl 0x50(%rbx), %edi cmpl $-0x1, %edi je 0x147fb callq 0x8a50 movl $0xffffffff, 0x50(%rbx) # imm = 0xFFFFFFFF movq %r14, %rdi callq 0x8440 movq 0x310(%rbx), %rax testq %rax, %rax je 0x14820 leaq 0x300(%rbx), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq 0x2e0(%rbx), %rdi leaq 0x2f0(%rbx), %rax cmpq %rax, %rdi je 0x1483e movq (%rax), %rsi incq %rsi callq 0x8580 movq 0x2c0(%rbx), %rdi leaq 0x2d0(%rbx), %rax cmpq %rax, %rdi je 0x1485c movq (%rax), %rsi incq %rsi callq 0x8580 movq 0x2a0(%rbx), %rdi leaq 0x2b0(%rbx), %rax cmpq %rax, %rdi je 0x1487a movq (%rax), %rsi incq %rsi callq 0x8580 movq 0x278(%rbx), %rdi leaq 0x288(%rbx), %rax cmpq %rax, %rdi je 0x14898 movq (%rax), %rsi incq %rsi callq 0x8580 movq 0x258(%rbx), %rdi leaq 0x268(%rbx), %rax cmpq %rax, %rdi je 0x148b6 movq (%rax), %rsi incq %rsi callq 0x8580 movq 0x240(%rbx), %rax testq %rax, %rax je 0x148d3 leaq 0x230(%rbx), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq 0x200(%rbx), %rdi leaq 0x210(%rbx), %rax cmpq %rax, %rdi je 0x148f1 movq (%rax), %rsi incq %rsi callq 0x8580 movq 0x1e0(%rbx), %rdi leaq 0x1f0(%rbx), %rax cmpq %rax, %rdi je 0x1490f movq (%rax), %rsi incq %rsi callq 0x8580 movq 0x1c0(%rbx), %rdi leaq 0x1d0(%rbx), %rax cmpq %rax, %rdi je 0x1492d movq (%rax), %rsi incq %rsi callq 0x8580 movq 0x168(%rbx), %rdi leaq 0x178(%rbx), %rax cmpq %rax, %rdi je 0x1494b movq (%rax), %rsi incq %rsi callq 0x8580 movq 0x148(%rbx), %rdi leaq 0x158(%rbx), %rax cmpq %rax, %rdi je 0x14969 movq (%rax), %rsi incq %rsi callq 0x8580 movq 0x138(%rbx), %rax testq %rax, %rax je 0x14986 leaq 0x128(%rbx), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax leaq 0xf0(%rbx), %rdi callq 0x16918 leaq 0xc0(%rbx), %rdi callq 0x169ec movq 0x30(%rbx), %rdi leaq 0x40(%rbx), %rax cmpq %rax, %rdi je 0x149b6 movq (%rax), %rsi incq %rsi callq 0x8580 movq 0x8(%rbx), %rdi addq $0x18, %rbx cmpq %rbx, %rdi je 0x149d5 movq (%rbx), %rsi incq %rsi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x8580 addq $0x8, %rsp popq %rbx popq %r14 retq movl %eax, %edi callq 0x8380 jmp 0x149ea jmp 0x149ea jmp 0x149ea movq %rax, %rdi callq 0xac01
_ZN7httplib10ClientImplD2Ev: push r14 push rbx push rax mov rbx, rdi lea rax, off_5C378 mov [rdi], rax lea r14, [rdi+58h] mov rdi, r14 call _pthread_mutex_lock test eax, eax jnz loc_149DD mov edi, [rbx+50h] cmp edi, 0FFFFFFFFh jz short loc_147FB mov esi, 2 call _shutdown mov edi, [rbx+50h] cmp edi, 0FFFFFFFFh jz short loc_147FB call _close mov dword ptr [rbx+50h], 0FFFFFFFFh loc_147FB: mov rdi, r14 call _pthread_mutex_unlock mov rax, [rbx+310h] test rax, rax jz short loc_14820 lea rdi, [rbx+300h] mov rsi, rdi mov edx, 3 call rax loc_14820: mov rdi, [rbx+2E0h]; void * lea rax, [rbx+2F0h] cmp rdi, rax jz short loc_1483E mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1483E: mov rdi, [rbx+2C0h]; void * lea rax, [rbx+2D0h] cmp rdi, rax jz short loc_1485C mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1485C: mov rdi, [rbx+2A0h]; void * lea rax, [rbx+2B0h] cmp rdi, rax jz short loc_1487A mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1487A: mov rdi, [rbx+278h]; void * lea rax, [rbx+288h] cmp rdi, rax jz short loc_14898 mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_14898: mov rdi, [rbx+258h]; void * lea rax, [rbx+268h] cmp rdi, rax jz short loc_148B6 mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_148B6: mov rax, [rbx+240h] test rax, rax jz short loc_148D3 lea rdi, [rbx+230h] mov rsi, rdi mov edx, 3 call rax loc_148D3: mov rdi, [rbx+200h]; void * lea rax, [rbx+210h] cmp rdi, rax jz short loc_148F1 mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_148F1: mov rdi, [rbx+1E0h]; void * lea rax, [rbx+1F0h] cmp rdi, rax jz short loc_1490F mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1490F: mov rdi, [rbx+1C0h]; void * lea rax, [rbx+1D0h] cmp rdi, rax jz short loc_1492D mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1492D: mov rdi, [rbx+168h]; void * lea rax, [rbx+178h] cmp rdi, rax jz short loc_1494B mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1494B: mov rdi, [rbx+148h]; void * lea rax, [rbx+158h] cmp rdi, rax jz short loc_14969 mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_14969: mov rax, [rbx+138h] test rax, rax jz short loc_14986 lea rdi, [rbx+128h] mov rsi, rdi mov edx, 3 call rax loc_14986: lea rdi, [rbx+0F0h] call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESaIS8_ENSt8__detail10_Select1stEN7httplib6detail11case_ignore8equal_toENSE_4hashENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb0EEEED2Ev; std::_Hashtable<std::string,std::pair<std::string const,std::string>,std::allocator<std::pair<std::string const,std::string>>,std::__detail::_Select1st,httplib::detail::case_ignore::equal_to,httplib::detail::case_ignore::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,false>>::~_Hashtable() lea rdi, [rbx+0C0h] call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree() mov rdi, [rbx+30h]; void * lea rax, [rbx+40h] cmp rdi, rax jz short loc_149B6 mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_149B6: mov rdi, [rbx+8]; void * add rbx, 18h cmp rdi, rbx jz short loc_149D5 mov rsi, [rbx] inc rsi; unsigned __int64 add rsp, 8 pop rbx pop r14 jmp __ZdlPvm; operator delete(void *,ulong) loc_149D5: add rsp, 8 pop rbx pop r14 retn loc_149DD: mov edi, eax; int call __ZSt20__throw_system_errori; std::__throw_system_error(int) jmp short loc_149EA jmp short loc_149EA jmp short $+2 loc_149EA: mov rdi, rax call __clang_call_terminate
void httplib::ClientImpl::~ClientImpl(httplib::ClientImpl *this) { char *v2; // r14 int v3; // eax long long v4; // rdi long long v5; // rdi void ( *v6)(char *, char *, long long); // rax char *v7; // rdi char *v8; // rdi char *v9; // rdi char *v10; // rdi char *v11; // rdi void ( *v12)(char *, char *, long long); // rax char *v13; // rdi char *v14; // rdi char *v15; // rdi char *v16; // rdi char *v17; // rdi void ( *v18)(char *, char *, long long); // rax char *v19; // rdi _QWORD *v20; // rdi _QWORD *v21; // rbx *(_QWORD *)this = off_5C378; v2 = (char *)this + 88; v3 = pthread_mutex_lock((char *)this + 88); if ( v3 ) std::__throw_system_error(v3); v4 = *((unsigned int *)this + 20); if ( (_DWORD)v4 != -1 ) { shutdown(v4, 2LL); v5 = *((unsigned int *)this + 20); if ( (_DWORD)v5 != -1 ) { close(v5); *((_DWORD *)this + 20) = -1; } } pthread_mutex_unlock(v2); v6 = (void ( *)(char *, char *, long long))*((_QWORD *)this + 98); if ( v6 ) v6((char *)this + 768, (char *)this + 768, 3LL); v7 = (char *)*((_QWORD *)this + 92); if ( v7 != (char *)this + 752 ) operator delete(v7, *((_QWORD *)this + 94) + 1LL); v8 = (char *)*((_QWORD *)this + 88); if ( v8 != (char *)this + 720 ) operator delete(v8, *((_QWORD *)this + 90) + 1LL); v9 = (char *)*((_QWORD *)this + 84); if ( v9 != (char *)this + 688 ) operator delete(v9, *((_QWORD *)this + 86) + 1LL); v10 = (char *)*((_QWORD *)this + 79); if ( v10 != (char *)this + 648 ) operator delete(v10, *((_QWORD *)this + 81) + 1LL); v11 = (char *)*((_QWORD *)this + 75); if ( v11 != (char *)this + 616 ) operator delete(v11, *((_QWORD *)this + 77) + 1LL); v12 = (void ( *)(char *, char *, long long))*((_QWORD *)this + 72); if ( v12 ) v12((char *)this + 560, (char *)this + 560, 3LL); v13 = (char *)*((_QWORD *)this + 64); if ( v13 != (char *)this + 528 ) operator delete(v13, *((_QWORD *)this + 66) + 1LL); v14 = (char *)*((_QWORD *)this + 60); if ( v14 != (char *)this + 496 ) operator delete(v14, *((_QWORD *)this + 62) + 1LL); v15 = (char *)*((_QWORD *)this + 56); if ( v15 != (char *)this + 464 ) operator delete(v15, *((_QWORD *)this + 58) + 1LL); v16 = (char *)*((_QWORD *)this + 45); if ( v16 != (char *)this + 376 ) operator delete(v16, *((_QWORD *)this + 47) + 1LL); v17 = (char *)*((_QWORD *)this + 41); if ( v17 != (char *)this + 344 ) operator delete(v17, *((_QWORD *)this + 43) + 1LL); v18 = (void ( *)(char *, char *, long long))*((_QWORD *)this + 39); if ( v18 ) v18((char *)this + 296, (char *)this + 296, 3LL); std::_Hashtable<std::string,std::pair<std::string const,std::string>,std::allocator<std::pair<std::string const,std::string>>,std::__detail::_Select1st,httplib::detail::case_ignore::equal_to,httplib::detail::case_ignore::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,false>>::~_Hashtable((char *)this + 240); std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree((char *)this + 192); v19 = (char *)*((_QWORD *)this + 6); if ( v19 != (char *)this + 64 ) operator delete(v19, *((_QWORD *)this + 8) + 1LL); v20 = (_QWORD *)*((_QWORD *)this + 1); v21 = (_QWORD *)((char *)this + 24); if ( v20 != v21 ) operator delete(v20, *v21 + 1LL); }
~ClientImpl: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI LEA RAX,[0x15c378] MOV qword ptr [RDI],RAX LEA R14,[RDI + 0x58] MOV RDI,R14 CALL 0x001087f0 TEST EAX,EAX JNZ 0x001149dd MOV EDI,dword ptr [RBX + 0x50] CMP EDI,-0x1 JZ 0x001147fb MOV ESI,0x2 CALL 0x00108760 MOV EDI,dword ptr [RBX + 0x50] CMP EDI,-0x1 JZ 0x001147fb LAB_001147ef: CALL 0x00108a50 MOV dword ptr [RBX + 0x50],0xffffffff LAB_001147fb: MOV RDI,R14 CALL 0x00108440 MOV RAX,qword ptr [RBX + 0x310] TEST RAX,RAX JZ 0x00114820 LEA RDI,[RBX + 0x300] LAB_00114816: MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_00114820: MOV RDI,qword ptr [RBX + 0x2e0] LEA RAX,[RBX + 0x2f0] CMP RDI,RAX JZ 0x0011483e MOV RSI,qword ptr [RAX] INC RSI CALL 0x00108580 LAB_0011483e: MOV RDI,qword ptr [RBX + 0x2c0] LEA RAX,[RBX + 0x2d0] CMP RDI,RAX JZ 0x0011485c MOV RSI,qword ptr [RAX] INC RSI CALL 0x00108580 LAB_0011485c: MOV RDI,qword ptr [RBX + 0x2a0] LEA RAX,[RBX + 0x2b0] CMP RDI,RAX JZ 0x0011487a MOV RSI,qword ptr [RAX] INC RSI CALL 0x00108580 LAB_0011487a: MOV RDI,qword ptr [RBX + 0x278] LEA RAX,[RBX + 0x288] CMP RDI,RAX JZ 0x00114898 MOV RSI,qword ptr [RAX] INC RSI CALL 0x00108580 LAB_00114898: MOV RDI,qword ptr [RBX + 0x258] LEA RAX,[RBX + 0x268] CMP RDI,RAX JZ 0x001148b6 MOV RSI,qword ptr [RAX] INC RSI CALL 0x00108580 LAB_001148b6: MOV RAX,qword ptr [RBX + 0x240] TEST RAX,RAX JZ 0x001148d3 LEA RDI,[RBX + 0x230] LAB_001148c9: MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_001148d3: MOV RDI,qword ptr [RBX + 0x200] LEA RAX,[RBX + 0x210] CMP RDI,RAX JZ 0x001148f1 MOV RSI,qword ptr [RAX] INC RSI CALL 0x00108580 LAB_001148f1: MOV RDI,qword ptr [RBX + 0x1e0] LEA RAX,[RBX + 0x1f0] CMP RDI,RAX JZ 0x0011490f MOV RSI,qword ptr [RAX] INC RSI CALL 0x00108580 LAB_0011490f: MOV RDI,qword ptr [RBX + 0x1c0] LEA RAX,[RBX + 0x1d0] CMP RDI,RAX JZ 0x0011492d MOV RSI,qword ptr [RAX] INC RSI CALL 0x00108580 LAB_0011492d: MOV RDI,qword ptr [RBX + 0x168] LEA RAX,[RBX + 0x178] CMP RDI,RAX JZ 0x0011494b MOV RSI,qword ptr [RAX] INC RSI CALL 0x00108580 LAB_0011494b: MOV RDI,qword ptr [RBX + 0x148] LEA RAX,[RBX + 0x158] CMP RDI,RAX JZ 0x00114969 MOV RSI,qword ptr [RAX] INC RSI CALL 0x00108580 LAB_00114969: MOV RAX,qword ptr [RBX + 0x138] TEST RAX,RAX JZ 0x00114986 LEA RDI,[RBX + 0x128] LAB_0011497c: MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_00114986: LEA RDI,[RBX + 0xf0] CALL 0x00116918 LEA RDI,[RBX + 0xc0] CALL 0x001169ec MOV RDI,qword ptr [RBX + 0x30] LEA RAX,[RBX + 0x40] CMP RDI,RAX JZ 0x001149b6 MOV RSI,qword ptr [RAX] INC RSI CALL 0x00108580 LAB_001149b6: MOV RDI,qword ptr [RBX + 0x8] ADD RBX,0x18 CMP RDI,RBX JZ 0x001149d5 MOV RSI,qword ptr [RBX] INC RSI ADD RSP,0x8 POP RBX POP R14 JMP 0x00108580 LAB_001149d5: ADD RSP,0x8 POP RBX POP R14 RET LAB_001149dd: MOV EDI,EAX CALL 0x00108380
/* httplib::ClientImpl::~ClientImpl() */ void __thiscall httplib::ClientImpl::~ClientImpl(ClientImpl *this) { int iVar1; *(int ***)this = &PTR__ClientImpl_0015c378; iVar1 = pthread_mutex_lock((pthread_mutex_t *)(this + 0x58)); if (iVar1 != 0) { /* try { // try from 001149dd to 001149e3 has its CatchHandler @ 001149ea */ /* WARNING: Subroutine does not return */ std::__throw_system_error(iVar1); } if (*(int *)(this + 0x50) != -1) { shutdown(*(int *)(this + 0x50),2); if (*(int *)(this + 0x50) != -1) { /* try { // try from 001147ef to 001147f3 has its CatchHandler @ 001149ea */ close(*(int *)(this + 0x50)); *(int4 *)(this + 0x50) = 0xffffffff; } } pthread_mutex_unlock((pthread_mutex_t *)(this + 0x58)); if (*(code **)(this + 0x310) != (code *)0x0) { /* try { // try from 00114816 to 0011481f has its CatchHandler @ 001149e8 */ (**(code **)(this + 0x310))(this + 0x300,this + 0x300,3); } if (*(ClientImpl **)(this + 0x2e0) != this + 0x2f0) { operator_delete(*(ClientImpl **)(this + 0x2e0),*(long *)(this + 0x2f0) + 1); } if (*(ClientImpl **)(this + 0x2c0) != this + 0x2d0) { operator_delete(*(ClientImpl **)(this + 0x2c0),*(long *)(this + 0x2d0) + 1); } if (*(ClientImpl **)(this + 0x2a0) != this + 0x2b0) { operator_delete(*(ClientImpl **)(this + 0x2a0),*(long *)(this + 0x2b0) + 1); } if (*(ClientImpl **)(this + 0x278) != this + 0x288) { operator_delete(*(ClientImpl **)(this + 0x278),*(long *)(this + 0x288) + 1); } if (*(ClientImpl **)(this + 600) != this + 0x268) { operator_delete(*(ClientImpl **)(this + 600),*(long *)(this + 0x268) + 1); } if (*(code **)(this + 0x240) != (code *)0x0) { /* try { // try from 001148c9 to 001148d2 has its CatchHandler @ 001149e6 */ (**(code **)(this + 0x240))(this + 0x230,this + 0x230,3); } if (*(ClientImpl **)(this + 0x200) != this + 0x210) { operator_delete(*(ClientImpl **)(this + 0x200),*(long *)(this + 0x210) + 1); } if (*(ClientImpl **)(this + 0x1e0) != this + 0x1f0) { operator_delete(*(ClientImpl **)(this + 0x1e0),*(long *)(this + 0x1f0) + 1); } if (*(ClientImpl **)(this + 0x1c0) != this + 0x1d0) { operator_delete(*(ClientImpl **)(this + 0x1c0),*(long *)(this + 0x1d0) + 1); } if (*(ClientImpl **)(this + 0x168) != this + 0x178) { operator_delete(*(ClientImpl **)(this + 0x168),*(long *)(this + 0x178) + 1); } if (*(ClientImpl **)(this + 0x148) != this + 0x158) { operator_delete(*(ClientImpl **)(this + 0x148),*(long *)(this + 0x158) + 1); } if (*(code **)(this + 0x138) != (code *)0x0) { /* try { // try from 0011497c to 00114985 has its CatchHandler @ 001149e4 */ (**(code **)(this + 0x138))(this + 0x128,this + 0x128,3); } std:: _Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::__detail::_Select1st,httplib::detail::case_ignore::equal_to,httplib::detail::case_ignore::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,false>> ::~_Hashtable((_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::__detail::_Select1st,httplib::detail::case_ignore::equal_to,httplib::detail::case_ignore::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,false>> *)(this + 0xf0)); std:: _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>> ::~_Rb_tree((_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>> *)(this + 0xc0)); if (*(ClientImpl **)(this + 0x30) != this + 0x40) { operator_delete(*(ClientImpl **)(this + 0x30),*(long *)(this + 0x40) + 1); } if (*(ClientImpl **)(this + 8) != this + 0x18) { operator_delete(*(ClientImpl **)(this + 8),*(long *)(this + 0x18) + 1); return; } return; }
60,386
getopt_compare_strings
eloqsql/mysys/my_getopt.c
my_bool getopt_compare_strings(register const char *s, register const char *t, uint length) { char const *end= s + length; DBUG_ENTER("getopt_compare_strings"); for (;s != end ; s++, t++) { if ((*s != '-' ? *s : '_') != (*t != '-' ? *t : '_')) DBUG_RETURN(1); } DBUG_RETURN(0); }
O0
c
getopt_compare_strings: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) movq -0x10(%rbp), %rax movl -0x1c(%rbp), %ecx addq %rcx, %rax movq %rax, -0x28(%rbp) movq -0x10(%rbp), %rax cmpq -0x28(%rbp), %rax je 0x26362 movq -0x10(%rbp), %rax movsbl (%rax), %eax cmpl $0x2d, %eax je 0x262ff movq -0x10(%rbp), %rax movsbl (%rax), %eax movl %eax, -0x2c(%rbp) jmp 0x26309 movl $0x5f, %eax movl %eax, -0x2c(%rbp) jmp 0x26309 movl -0x2c(%rbp), %eax movl %eax, -0x30(%rbp) movq -0x18(%rbp), %rax movsbl (%rax), %eax cmpl $0x2d, %eax je 0x26327 movq -0x18(%rbp), %rax movsbl (%rax), %eax movl %eax, -0x34(%rbp) jmp 0x26331 movl $0x5f, %eax movl %eax, -0x34(%rbp) jmp 0x26331 movl -0x30(%rbp), %eax movl -0x34(%rbp), %ecx cmpl %ecx, %eax je 0x26343 jmp 0x2633d movb $0x1, -0x1(%rbp) jmp 0x26368 jmp 0x26345 movq -0x10(%rbp), %rax addq $0x1, %rax movq %rax, -0x10(%rbp) movq -0x18(%rbp), %rax addq $0x1, %rax movq %rax, -0x18(%rbp) jmp 0x262dd jmp 0x26364 movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al popq %rbp retq nopl (%rax)
getopt_compare_strings: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_1C], edx mov rax, [rbp+var_10] mov ecx, [rbp+var_1C] add rax, rcx mov [rbp+var_28], rax loc_262DD: mov rax, [rbp+var_10] cmp rax, [rbp+var_28] jz short loc_26362 mov rax, [rbp+var_10] movsx eax, byte ptr [rax] cmp eax, 2Dh ; '-' jz short loc_262FF mov rax, [rbp+var_10] movsx eax, byte ptr [rax] mov [rbp+var_2C], eax jmp short loc_26309 loc_262FF: mov eax, 5Fh ; '_' mov [rbp+var_2C], eax jmp short $+2 loc_26309: mov eax, [rbp+var_2C] mov [rbp+var_30], eax mov rax, [rbp+var_18] movsx eax, byte ptr [rax] cmp eax, 2Dh ; '-' jz short loc_26327 mov rax, [rbp+var_18] movsx eax, byte ptr [rax] mov [rbp+var_34], eax jmp short loc_26331 loc_26327: mov eax, 5Fh ; '_' mov [rbp+var_34], eax jmp short $+2 loc_26331: mov eax, [rbp+var_30] mov ecx, [rbp+var_34] cmp eax, ecx jz short loc_26343 jmp short $+2 loc_2633D: mov [rbp+var_1], 1 jmp short loc_26368 loc_26343: jmp short $+2 loc_26345: mov rax, [rbp+var_10] add rax, 1 mov [rbp+var_10], rax mov rax, [rbp+var_18] add rax, 1 mov [rbp+var_18], rax jmp loc_262DD loc_26362: jmp short $+2 loc_26364: mov [rbp+var_1], 0 loc_26368: mov al, [rbp+var_1] pop rbp retn
char getopt_compare_strings(_BYTE *a1, _BYTE *a2, int a3) { int v4; // [rsp+0h] [rbp-34h] int v5; // [rsp+8h] [rbp-2Ch] _BYTE *i; // [rsp+24h] [rbp-10h] for ( i = a1; i != &a1[a3]; ++i ) { if ( *i == 45 ) v5 = 95; else v5 = (char)*i; if ( *a2 == 45 ) v4 = 95; else v4 = (char)*a2; if ( v5 != v4 ) return 1; ++a2; } return 0; }
getopt_compare_strings: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV dword ptr [RBP + -0x1c],EDX MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RBP + -0x1c] ADD RAX,RCX MOV qword ptr [RBP + -0x28],RAX LAB_001262dd: MOV RAX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RBP + -0x28] JZ 0x00126362 MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX] CMP EAX,0x2d JZ 0x001262ff MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX] MOV dword ptr [RBP + -0x2c],EAX JMP 0x00126309 LAB_001262ff: MOV EAX,0x5f MOV dword ptr [RBP + -0x2c],EAX JMP 0x00126309 LAB_00126309: MOV EAX,dword ptr [RBP + -0x2c] MOV dword ptr [RBP + -0x30],EAX MOV RAX,qword ptr [RBP + -0x18] MOVSX EAX,byte ptr [RAX] CMP EAX,0x2d JZ 0x00126327 MOV RAX,qword ptr [RBP + -0x18] MOVSX EAX,byte ptr [RAX] MOV dword ptr [RBP + -0x34],EAX JMP 0x00126331 LAB_00126327: MOV EAX,0x5f MOV dword ptr [RBP + -0x34],EAX JMP 0x00126331 LAB_00126331: MOV EAX,dword ptr [RBP + -0x30] MOV ECX,dword ptr [RBP + -0x34] CMP EAX,ECX JZ 0x00126343 JMP 0x0012633d LAB_0012633d: MOV byte ptr [RBP + -0x1],0x1 JMP 0x00126368 LAB_00126343: JMP 0x00126345 LAB_00126345: MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x1 MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x1 MOV qword ptr [RBP + -0x18],RAX JMP 0x001262dd LAB_00126362: JMP 0x00126364 LAB_00126364: MOV byte ptr [RBP + -0x1],0x0 LAB_00126368: MOV AL,byte ptr [RBP + -0x1] POP RBP RET
int1 getopt_compare_strings(char *param_1,char *param_2,uint param_3) { char cVar1; char cVar2; char *local_20; char *local_18; local_20 = param_2; local_18 = param_1; while( true ) { if (local_18 == param_1 + param_3) { return 0; } if (*local_18 == '-') { cVar1 = '_'; } else { cVar1 = *local_18; } if (*local_20 == '-') { cVar2 = '_'; } else { cVar2 = *local_20; } if (cVar1 != cVar2) break; local_18 = local_18 + 1; local_20 = local_20 + 1; } return 1; }
60,387
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::scan_number()
llama.cpp/common/json.hpp
token_type scan_number() // lgtm [cpp/use-of-goto] { // reset token_buffer to store the number's bytes reset(); // the type of the parsed number; initially set to unsigned; will be // changed if minus sign, decimal point or exponent is read token_type number_type = token_type::value_unsigned; // state (init): we just found out we need to scan a number switch (current) { case '-': { add(current); goto scan_number_minus; } case '0': { add(current); goto scan_number_zero; } case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { add(current); goto scan_number_any1; } // all other characters are rejected outside scan_number() default: // LCOV_EXCL_LINE JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE } scan_number_minus: // state: we just parsed a leading minus sign number_type = token_type::value_integer; switch (get()) { case '0': { add(current); goto scan_number_zero; } case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { add(current); goto scan_number_any1; } default: { error_message = "invalid number; expected digit after '-'"; return token_type::parse_error; } } scan_number_zero: // state: we just parse a zero (maybe with a leading minus sign) switch (get()) { case '.': { add(decimal_point_char); goto scan_number_decimal1; } case 'e': case 'E': { add(current); goto scan_number_exponent; } default: goto scan_number_done; } scan_number_any1: // state: we just parsed a number 0-9 (maybe with a leading minus sign) switch (get()) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { add(current); goto scan_number_any1; } case '.': { add(decimal_point_char); goto scan_number_decimal1; } case 'e': case 'E': { add(current); goto scan_number_exponent; } default: goto scan_number_done; } scan_number_decimal1: // state: we just parsed a decimal point number_type = token_type::value_float; switch (get()) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { add(current); goto scan_number_decimal2; } default: { error_message = "invalid number; expected digit after '.'"; return token_type::parse_error; } } scan_number_decimal2: // we just parsed at least one number after a decimal point switch (get()) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { add(current); goto scan_number_decimal2; } case 'e': case 'E': { add(current); goto scan_number_exponent; } default: goto scan_number_done; } scan_number_exponent: // we just parsed an exponent number_type = token_type::value_float; switch (get()) { case '+': case '-': { add(current); goto scan_number_sign; } case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { add(current); goto scan_number_any2; } default: { error_message = "invalid number; expected '+', '-', or digit after exponent"; return token_type::parse_error; } } scan_number_sign: // we just parsed an exponent sign switch (get()) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { add(current); goto scan_number_any2; } default: { error_message = "invalid number; expected digit after exponent sign"; return token_type::parse_error; } } scan_number_any2: // we just parsed a number after the exponent or exponent sign switch (get()) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { add(current); goto scan_number_any2; } default: goto scan_number_done; } scan_number_done: // unget the character after the number (we only read it to know that // we are done scanning a number) unget(); char* endptr = nullptr; // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg) errno = 0; // try to parse integers first and fall back to floats if (number_type == token_type::value_unsigned) { const auto x = std::strtoull(token_buffer.data(), &endptr, 10); // we checked the number format before JSON_ASSERT(endptr == token_buffer.data() + token_buffer.size()); if (errno == 0) { value_unsigned = static_cast<number_unsigned_t>(x); if (value_unsigned == x) { return token_type::value_unsigned; } } } else if (number_type == token_type::value_integer) { const auto x = std::strtoll(token_buffer.data(), &endptr, 10); // we checked the number format before JSON_ASSERT(endptr == token_buffer.data() + token_buffer.size()); if (errno == 0) { value_integer = static_cast<number_integer_t>(x); if (value_integer == x) { return token_type::value_integer; } } } // this code is reached if we parse a floating-point number or if an // integer conversion above failed strtof(value_float, token_buffer.data(), &endptr); // we checked the number format before JSON_ASSERT(endptr == token_buffer.data() + token_buffer.size()); return token_type::value_float; }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::scan_number(): pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx callq 0xe78c4 movl 0x14(%rbx), %eax leal -0x31(%rax), %ecx cmpl $0x9, %ecx jae 0xe763e leaq 0x50(%rbx), %r14 movl $0x5, %ebp movsbl %al, %esi movq %r14, %rdi callq 0x26750 leaq 0x50(%rbx), %r14 movq %rbx, %rdi callq 0x27332 leal -0x30(%rax), %ecx cmpl $0xa, %ecx jae 0xe754e movsbl 0x14(%rbx), %esi movq %r14, %rdi callq 0x26750 jmp 0xe7530 cmpl $0x2e, %eax je 0xe76b0 cmpl $0x45, %eax je 0xe770c cmpl $0x65, %eax je 0xe770c movq %rbx, %rdi callq 0xe7860 movq $0x0, (%rsp) callq 0x263d0 movq %rax, %r14 movl $0x0, (%rax) movq 0x50(%rbx), %rdi movq %rsp, %r15 movq %r15, %rsi movl $0xa, %edx cmpl $0x5, %ebp jne 0xe75c3 callq 0x25ff0 movq 0x50(%rbx), %rcx addq 0x58(%rbx), %rcx cmpq %rcx, (%r15) jne 0xe7806 cmpl $0x0, (%r14) jne 0xe75df movl $0x5, %ecx movl $0x80, %edx jmp 0xe7635 callq 0x25f30 movq 0x50(%rbx), %rcx addq 0x58(%rbx), %rcx cmpq %rcx, (%r15) jne 0xe7822 cmpl $0x0, (%r14) je 0xe762b movq 0x50(%rbx), %rdi movq %rsp, %r14 movq %r14, %rsi callq 0x26840 movsd %xmm0, 0x88(%rbx) movq 0x50(%rbx), %rax addq 0x58(%rbx), %rax movl $0x7, %ecx cmpq %rax, (%r14) je 0xe7746 leaq 0x9ac31(%rip), %rdi # 0x182244 leaq 0x8b7f8(%rip), %rdx # 0x172e12 leaq 0x8ebf8(%rip), %rcx # 0x176219 movl $0x21d6, %esi # imm = 0x21D6 jmp 0xe7858 movl $0x6, %ecx movl $0x78, %edx movq %rax, (%rbx,%rdx) jmp 0xe7746 cmpl $0x30, %eax je 0xe767e cmpl $0x2d, %eax jne 0xe783e leaq 0x50(%rbx), %r14 movq %r14, %rdi movl $0x2d, %esi callq 0x26750 movq %rbx, %rdi callq 0x27332 leal -0x31(%rax), %ecx cmpl $0x9, %ecx jae 0xe77df movl 0x14(%rbx), %eax movl $0x6, %ebp jmp 0xe7521 leaq 0x50(%rbx), %rdi movl $0x30, %esi callq 0x26750 movl $0x5, %ebp movq %rbx, %rdi callq 0x27332 cmpl $0x65, %eax je 0xe7708 cmpl $0x45, %eax je 0xe7708 cmpl $0x2e, %eax jne 0xe7569 leaq 0x50(%rbx), %r14 movsbl 0x90(%rbx), %esi movq %r14, %rdi callq 0x26750 movq %rbx, %rdi callq 0x27332 addl $-0x30, %eax cmpl $0x9, %eax ja 0xe76ff leaq 0x50(%rbx), %r14 movsbl 0x14(%rbx), %esi movq %r14, %rdi callq 0x26750 movq %rbx, %rdi callq 0x27332 leal -0x30(%rax), %ecx cmpl $0xa, %ecx jb 0xe76d3 cmpl $0x65, %eax je 0xe770c cmpl $0x45, %eax jne 0xe7793 jmp 0xe770c leaq 0x8ea7c(%rip), %rax # 0x176182 jmp 0xe773d leaq 0x50(%rbx), %r14 movsbl 0x14(%rbx), %esi movq %r14, %rdi callq 0x26750 movq %rbx, %rdi callq 0x27332 leal -0x30(%rax), %ecx cmpl $0xa, %ecx jb 0xe7753 cmpl $0x2d, %eax je 0xe77b3 cmpl $0x2b, %eax je 0xe77b3 leaq 0x8ea6e(%rip), %rax # 0x1761ab movq %rax, 0x70(%rbx) movl $0xe, %ecx movl %ecx, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq leaq 0x50(%rbx), %r14 movsbl 0x14(%rbx), %esi movq %r14, %rdi callq 0x26750 movq %rbx, %rdi callq 0x27332 addl $-0x30, %eax cmpl $0x9, %eax ja 0xe7793 leaq 0x50(%rbx), %r14 movsbl 0x14(%rbx), %esi movq %r14, %rdi callq 0x26750 movq %rbx, %rdi callq 0x27332 addl $-0x30, %eax cmpl $0xa, %eax jb 0xe7777 movq %rbx, %rdi callq 0xe7860 movq $0x0, (%rsp) callq 0x263d0 movl $0x0, (%rax) jmp 0xe75df movsbl 0x14(%rbx), %esi leaq 0x50(%rbx), %r14 movq %r14, %rdi callq 0x26750 movq %rbx, %rdi callq 0x27332 addl $-0x30, %eax cmpl $0xa, %eax jb 0xe7757 leaq 0x8ea0c(%rip), %rax # 0x1761e6 jmp 0xe773d cmpl $0x30, %eax je 0xe77f0 leaq 0x8e96e(%rip), %rax # 0x176159 jmp 0xe773d movsbl 0x14(%rbx), %esi movq %r14, %rdi callq 0x26750 movl $0x6, %ebp jmp 0xe7691 leaq 0x9aa37(%rip), %rdi # 0x182244 leaq 0x8b5fe(%rip), %rdx # 0x172e12 leaq 0x8e9fe(%rip), %rcx # 0x176219 movl $0x21b5, %esi # imm = 0x21B5 jmp 0xe7858 leaq 0x9aa1b(%rip), %rdi # 0x182244 leaq 0x8b5e2(%rip), %rdx # 0x172e12 leaq 0x8e9e2(%rip), %rcx # 0x176219 movl $0x21c5, %esi # imm = 0x21C5 jmp 0xe7858 leaq 0x9a9ff(%rip), %rdi # 0x182244 leaq 0x8b5c6(%rip), %rdx # 0x172e12 leaq 0x97a8f(%rip), %rcx # 0x17f2e2 movl $0x20be, %esi # imm = 0x20BE xorl %eax, %eax callq 0x26090 nop
_ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE11scan_numberEv: push rbp push r15 push r14 push rbx push rax mov rbx, rdi call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE5resetEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::reset(void) mov eax, [rbx+14h] lea ecx, [rax-31h] cmp ecx, 9 jnb loc_E763E lea r14, [rbx+50h] mov ebp, 5 loc_E7521: movsx esi, al mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) lea r14, [rbx+50h] loc_E7530: mov rdi, rbx; this call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(void) lea ecx, [rax-30h] cmp ecx, 0Ah jnb short loc_E754E movsx esi, byte ptr [rbx+14h] mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) jmp short loc_E7530 loc_E754E: cmp eax, 2Eh ; '.' jz loc_E76B0 cmp eax, 45h ; 'E' jz loc_E770C cmp eax, 65h ; 'e' jz loc_E770C loc_E7569: mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE5ungetEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::unget(void) mov [rsp+28h+var_28], 0 call ___errno_location mov r14, rax mov dword ptr [rax], 0 mov rdi, [rbx+50h] mov r15, rsp mov rsi, r15 mov edx, 0Ah cmp ebp, 5 jnz short loc_E75C3 call _strtoull mov rcx, [rbx+50h] add rcx, [rbx+58h] cmp [r15], rcx jnz loc_E7806 cmp dword ptr [r14], 0 jnz short loc_E75DF mov ecx, 5 mov edx, 80h jmp short loc_E7635 loc_E75C3: call _strtoll mov rcx, [rbx+50h] add rcx, [rbx+58h] cmp [r15], rcx jnz loc_E7822 cmp dword ptr [r14], 0 jz short loc_E762B loc_E75DF: mov rdi, [rbx+50h] mov r14, rsp mov rsi, r14 call _strtod movsd qword ptr [rbx+88h], xmm0 mov rax, [rbx+50h] add rax, [rbx+58h] mov ecx, 7 cmp [r14], rax jz loc_E7746 lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aEndptrTokenBuf; "endptr == token_buffer.data() + token_b"... mov esi, 21D6h jmp loc_E7858 loc_E762B: mov ecx, 6 mov edx, 78h ; 'x' loc_E7635: mov [rbx+rdx], rax jmp loc_E7746 loc_E763E: cmp eax, 30h ; '0' jz short loc_E767E cmp eax, 2Dh ; '-' jnz loc_E783E lea r14, [rbx+50h] mov rdi, r14 mov esi, 2Dh ; '-' call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov rdi, rbx; this call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(void) lea ecx, [rax-31h] cmp ecx, 9 jnb loc_E77DF mov eax, [rbx+14h] mov ebp, 6 jmp loc_E7521 loc_E767E: lea rdi, [rbx+50h] mov esi, 30h ; '0' call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov ebp, 5 loc_E7691: mov rdi, rbx; this call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(void) cmp eax, 65h ; 'e' jz short loc_E7708 cmp eax, 45h ; 'E' jz short loc_E7708 cmp eax, 2Eh ; '.' jnz loc_E7569 lea r14, [rbx+50h] loc_E76B0: movsx esi, byte ptr [rbx+90h] mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov rdi, rbx; this call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(void) add eax, 0FFFFFFD0h cmp eax, 9 ja short loc_E76FF lea r14, [rbx+50h] loc_E76D3: movsx esi, byte ptr [rbx+14h] mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov rdi, rbx; this call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(void) lea ecx, [rax-30h] cmp ecx, 0Ah jb short loc_E76D3 cmp eax, 65h ; 'e' jz short loc_E770C cmp eax, 45h ; 'E' jnz loc_E7793 jmp short loc_E770C loc_E76FF: lea rax, aInvalidNumberE; "invalid number; expected digit after '."... jmp short loc_E773D loc_E7708: lea r14, [rbx+50h] loc_E770C: movsx esi, byte ptr [rbx+14h] mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov rdi, rbx; this call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(void) lea ecx, [rax-30h] cmp ecx, 0Ah jb short loc_E7753 cmp eax, 2Dh ; '-' jz loc_E77B3 cmp eax, 2Bh ; '+' jz short loc_E77B3 lea rax, aInvalidNumberE_0; "invalid number; expected '+', '-', or d"... loc_E773D: mov [rbx+70h], rax mov ecx, 0Eh loc_E7746: mov eax, ecx add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn loc_E7753: lea r14, [rbx+50h] loc_E7757: movsx esi, byte ptr [rbx+14h] mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov rdi, rbx; this call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(void) add eax, 0FFFFFFD0h cmp eax, 9 ja short loc_E7793 lea r14, [rbx+50h] loc_E7777: movsx esi, byte ptr [rbx+14h] mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov rdi, rbx; this call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(void) add eax, 0FFFFFFD0h cmp eax, 0Ah jb short loc_E7777 loc_E7793: mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE5ungetEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::unget(void) mov [rsp+28h+var_28], 0 call ___errno_location mov dword ptr [rax], 0 jmp loc_E75DF loc_E77B3: movsx esi, byte ptr [rbx+14h] lea r14, [rbx+50h] mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov rdi, rbx; this call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(void) add eax, 0FFFFFFD0h cmp eax, 0Ah jb short loc_E7757 lea rax, aInvalidNumberE_1; "invalid number; expected digit after ex"... jmp loc_E773D loc_E77DF: cmp eax, 30h ; '0' jz short loc_E77F0 lea rax, aInvalidNumberE_2; "invalid number; expected digit after '-"... jmp loc_E773D loc_E77F0: movsx esi, byte ptr [rbx+14h] mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov ebp, 6 jmp loc_E7691 loc_E7806: lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aEndptrTokenBuf; "endptr == token_buffer.data() + token_b"... mov esi, 21B5h jmp short loc_E7858 loc_E7822: lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aEndptrTokenBuf; "endptr == token_buffer.data() + token_b"... mov esi, 21C5h jmp short loc_E7858 loc_E783E: lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aAdvancedOption+0ABh; "false" mov esi, 20BEh loc_E7858: xor eax, eax call _ggml_abort nop
long long nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::scan_number( __m128i *this) { long long v1; // rax __int32 v3; // eax __m128i *v4; // r14 int v5; // ebp __m128i *v6; // r14 int v7; // eax _DWORD *v8; // r14 long long v9; // rdi long long v10; // rax unsigned int v11; // ecx long long v12; // rdx int v13; // eax int v14; // eax int v15; // eax const char *v16; // rax int v17; // eax __m128i *v19; // r14 _QWORD v20[5]; // [rsp+0h] [rbp-28h] BYREF v20[0] = v1; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::reset(this); v3 = this[1].m128i_i32[1]; if ( (unsigned int)(v3 - 49) >= 9 ) { if ( v3 == 48 ) { std::string::push_back(&this[5], 48LL); v5 = 5; } else { if ( v3 != 45 ) { ggml_abort( "/workspace/llm4binary/github2025/llama.cpp/common/json.hpp", 8382LL, "GGML_ASSERT(%s) failed", "false"); return nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::unget("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp"); } v4 = this + 5; std::string::push_back(&this[5], 45LL); v13 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(this); if ( (unsigned int)(v13 - 49) < 9 ) { v3 = this[1].m128i_i32[1]; v5 = 6; goto LABEL_3; } if ( v13 != 48 ) { v16 = "invalid number; expected digit after '-'"; goto LABEL_40; } std::string::push_back(&this[5], (unsigned int)this[1].m128i_i8[4]); v5 = 6; } v14 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(this); if ( v14 == 101 || v14 == 69 ) { v6 = this + 5; goto LABEL_36; } if ( v14 != 46 ) goto LABEL_9; v6 = this + 5; LABEL_28: std::string::push_back(v6, (unsigned int)this[9].m128i_i8[0]); if ( (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(this) - 48 > 9 ) { v16 = "invalid number; expected digit after '.'"; LABEL_40: this[7].m128i_i64[0] = (long long)v16; return 14; } v6 = this + 5; do { std::string::push_back(&this[5], (unsigned int)this[1].m128i_i8[4]); v15 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(this); } while ( (unsigned int)(v15 - 48) < 0xA ); if ( v15 != 101 && v15 != 69 ) { LABEL_45: nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::unget(this); v20[0] = 0LL; *(_DWORD *)__errno_location(this) = 0; goto LABEL_15; } LABEL_36: std::string::push_back(v6, (unsigned int)this[1].m128i_i8[4]); v17 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(this); if ( (unsigned int)(v17 - 48) < 0xA ) { v19 = this + 5; } else { if ( v17 != 45 && v17 != 43 ) { v16 = "invalid number; expected '+', '-', or digit after exponent"; goto LABEL_40; } v19 = this + 5; std::string::push_back(&this[5], (unsigned int)this[1].m128i_i8[4]); if ( (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(this) - 48 >= 0xA ) { v16 = "invalid number; expected digit after exponent sign"; goto LABEL_40; } } std::string::push_back(v19, (unsigned int)this[1].m128i_i8[4]); if ( (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(this) - 48 <= 9 ) { do std::string::push_back(&this[5], (unsigned int)this[1].m128i_i8[4]); while ( (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(this) - 48 < 0xA ); } goto LABEL_45; } v4 = this + 5; v5 = 5; LABEL_3: std::string::push_back(v4, (unsigned int)(char)v3); v6 = this + 5; while ( 1 ) { v7 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(this); if ( (unsigned int)(v7 - 48) >= 0xA ) break; std::string::push_back(&this[5], (unsigned int)this[1].m128i_i8[4]); } if ( v7 == 46 ) goto LABEL_28; if ( v7 == 69 || v7 == 101 ) goto LABEL_36; LABEL_9: nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::unget(this); v20[0] = 0LL; v8 = (_DWORD *)__errno_location(this); *v8 = 0; v9 = this[5].m128i_i64[0]; if ( v5 == 5 ) { v10 = strtoull(v9, v20, 10LL); if ( v20[0] != this[5].m128i_i64[1] + this[5].m128i_i64[0] ) { ggml_abort( "/workspace/llm4binary/github2025/llama.cpp/common/json.hpp", 8629LL, "GGML_ASSERT(%s) failed", "endptr == token_buffer.data() + token_buffer.size()"); return nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::unget("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp"); } if ( !*v8 ) { v11 = 5; v12 = 16LL; LABEL_18: this->m128i_i64[v12] = v10; return v11; } } else { v10 = strtoll(v9, v20, 10LL); if ( v20[0] != this[5].m128i_i64[1] + this[5].m128i_i64[0] ) { ggml_abort( "/workspace/llm4binary/github2025/llama.cpp/common/json.hpp", 8645LL, "GGML_ASSERT(%s) failed", "endptr == token_buffer.data() + token_buffer.size()"); return nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::unget("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp"); } if ( !*v8 ) { v11 = 6; v12 = 15LL; goto LABEL_18; } } LABEL_15: *(double *)&this[8].m128i_i64[1] = strtod(this[5].m128i_i64[0], v20); v11 = 7; if ( v20[0] == this[5].m128i_i64[1] + this[5].m128i_i64[0] ) return v11; ggml_abort( "/workspace/llm4binary/github2025/llama.cpp/common/json.hpp", 8662LL, "GGML_ASSERT(%s) failed", "endptr == token_buffer.data() + token_buffer.size()"); return nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::unget("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp"); }
scan_number: PUSH RBP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI CALL 0x001e78c4 MOV EAX,dword ptr [RBX + 0x14] LEA ECX,[RAX + -0x31] CMP ECX,0x9 JNC 0x001e763e LEA R14,[RBX + 0x50] MOV EBP,0x5 LAB_001e7521: MOVSX ESI,AL MOV RDI,R14 CALL 0x00126750 LEA R14,[RBX + 0x50] LAB_001e7530: MOV RDI,RBX CALL 0x00127332 LEA ECX,[RAX + -0x30] CMP ECX,0xa JNC 0x001e754e MOVSX ESI,byte ptr [RBX + 0x14] MOV RDI,R14 CALL 0x00126750 JMP 0x001e7530 LAB_001e754e: CMP EAX,0x2e JZ 0x001e76b0 CMP EAX,0x45 JZ 0x001e770c CMP EAX,0x65 JZ 0x001e770c LAB_001e7569: MOV RDI,RBX CALL 0x001e7860 MOV qword ptr [RSP],0x0 CALL 0x001263d0 MOV R14,RAX MOV dword ptr [RAX],0x0 MOV RDI,qword ptr [RBX + 0x50] MOV R15,RSP MOV RSI,R15 MOV EDX,0xa CMP EBP,0x5 JNZ 0x001e75c3 CALL 0x00125ff0 MOV RCX,qword ptr [RBX + 0x50] ADD RCX,qword ptr [RBX + 0x58] CMP qword ptr [R15],RCX JNZ 0x001e7806 CMP dword ptr [R14],0x0 JNZ 0x001e75df MOV ECX,0x5 MOV EDX,0x80 JMP 0x001e7635 LAB_001e75c3: CALL 0x00125f30 MOV RCX,qword ptr [RBX + 0x50] ADD RCX,qword ptr [RBX + 0x58] CMP qword ptr [R15],RCX JNZ 0x001e7822 CMP dword ptr [R14],0x0 JZ 0x001e762b LAB_001e75df: MOV RDI,qword ptr [RBX + 0x50] MOV R14,RSP MOV RSI,R14 CALL 0x00126840 MOVSD qword ptr [RBX + 0x88],XMM0 MOV RAX,qword ptr [RBX + 0x50] ADD RAX,qword ptr [RBX + 0x58] MOV ECX,0x7 CMP qword ptr [R14],RAX JZ 0x001e7746 LEA RDI,[0x282244] LEA RDX,[0x272e12] LEA RCX,[0x276219] MOV ESI,0x21d6 JMP 0x001e7858 LAB_001e762b: MOV ECX,0x6 MOV EDX,0x78 LAB_001e7635: MOV qword ptr [RBX + RDX*0x1],RAX JMP 0x001e7746 LAB_001e763e: CMP EAX,0x30 JZ 0x001e767e CMP EAX,0x2d JNZ 0x001e783e LEA R14,[RBX + 0x50] MOV RDI,R14 MOV ESI,0x2d CALL 0x00126750 MOV RDI,RBX CALL 0x00127332 LEA ECX,[RAX + -0x31] CMP ECX,0x9 JNC 0x001e77df MOV EAX,dword ptr [RBX + 0x14] MOV EBP,0x6 JMP 0x001e7521 LAB_001e767e: LEA RDI,[RBX + 0x50] MOV ESI,0x30 CALL 0x00126750 MOV EBP,0x5 LAB_001e7691: MOV RDI,RBX CALL 0x00127332 CMP EAX,0x65 JZ 0x001e7708 CMP EAX,0x45 JZ 0x001e7708 CMP EAX,0x2e JNZ 0x001e7569 LEA R14,[RBX + 0x50] LAB_001e76b0: MOVSX ESI,byte ptr [RBX + 0x90] MOV RDI,R14 CALL 0x00126750 MOV RDI,RBX CALL 0x00127332 ADD EAX,-0x30 CMP EAX,0x9 JA 0x001e76ff LEA R14,[RBX + 0x50] LAB_001e76d3: MOVSX ESI,byte ptr [RBX + 0x14] MOV RDI,R14 CALL 0x00126750 MOV RDI,RBX CALL 0x00127332 LEA ECX,[RAX + -0x30] CMP ECX,0xa JC 0x001e76d3 CMP EAX,0x65 JZ 0x001e770c CMP EAX,0x45 JNZ 0x001e7793 JMP 0x001e770c LAB_001e76ff: LEA RAX,[0x276182] JMP 0x001e773d LAB_001e7708: LEA R14,[RBX + 0x50] LAB_001e770c: MOVSX ESI,byte ptr [RBX + 0x14] MOV RDI,R14 CALL 0x00126750 MOV RDI,RBX CALL 0x00127332 LEA ECX,[RAX + -0x30] CMP ECX,0xa JC 0x001e7753 CMP EAX,0x2d JZ 0x001e77b3 CMP EAX,0x2b JZ 0x001e77b3 LEA RAX,[0x2761ab] LAB_001e773d: MOV qword ptr [RBX + 0x70],RAX MOV ECX,0xe LAB_001e7746: MOV EAX,ECX ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET LAB_001e7753: LEA R14,[RBX + 0x50] LAB_001e7757: MOVSX ESI,byte ptr [RBX + 0x14] MOV RDI,R14 CALL 0x00126750 MOV RDI,RBX CALL 0x00127332 ADD EAX,-0x30 CMP EAX,0x9 JA 0x001e7793 LEA R14,[RBX + 0x50] LAB_001e7777: MOVSX ESI,byte ptr [RBX + 0x14] MOV RDI,R14 CALL 0x00126750 MOV RDI,RBX CALL 0x00127332 ADD EAX,-0x30 CMP EAX,0xa JC 0x001e7777 LAB_001e7793: MOV RDI,RBX CALL 0x001e7860 MOV qword ptr [RSP],0x0 CALL 0x001263d0 MOV dword ptr [RAX],0x0 JMP 0x001e75df LAB_001e77b3: MOVSX ESI,byte ptr [RBX + 0x14] LEA R14,[RBX + 0x50] MOV RDI,R14 CALL 0x00126750 MOV RDI,RBX CALL 0x00127332 ADD EAX,-0x30 CMP EAX,0xa JC 0x001e7757 LEA RAX,[0x2761e6] JMP 0x001e773d LAB_001e77df: CMP EAX,0x30 JZ 0x001e77f0 LEA RAX,[0x276159] JMP 0x001e773d LAB_001e77f0: MOVSX ESI,byte ptr [RBX + 0x14] MOV RDI,R14 CALL 0x00126750 MOV EBP,0x6 JMP 0x001e7691 LAB_001e7806: LEA RDI,[0x282244] LEA RDX,[0x272e12] LEA RCX,[0x276219] MOV ESI,0x21b5 JMP 0x001e7858 LAB_001e7822: LEA RDI,[0x282244] LEA RDX,[0x272e12] LEA RCX,[0x276219] MOV ESI,0x21c5 JMP 0x001e7858 LAB_001e783e: LEA RDI,[0x282244] LEA RDX,[0x272e12] LEA RCX,[0x27f2e2] MOV ESI,0x20be LAB_001e7858: XOR EAX,EAX CALL 0x00126090
/* nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::scan_number() */ int8 __thiscall nlohmann::json_abi_v3_11_3::detail:: lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter> ::scan_number(lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter> *this) { char cVar1; int iVar2; int iVar3; char *in_RAX; int *piVar4; ulonglong uVar5; int8 uVar6; char *pcVar7; long lVar8; double dVar9; char *local_28; local_28 = in_RAX; reset(this); iVar3 = *(int *)(this + 0x14); cVar1 = (char)this; if (iVar3 - 0x31U < 9) { iVar3 = 5; LAB_001e7521: std::__cxx11::string::push_back(cVar1 + 'P'); while (iVar2 = get(this), iVar2 - 0x30U < 10) { std::__cxx11::string::push_back(cVar1 + 'P'); } if (iVar2 == 0x2e) { LAB_001e76b0: std::__cxx11::string::push_back(cVar1 + 'P'); iVar3 = get(this); if (9 < iVar3 - 0x30U) { pcVar7 = "invalid number; expected digit after \'.\'"; goto LAB_001e773d; } do { std::__cxx11::string::push_back(cVar1 + 'P'); iVar3 = get(this); } while (iVar3 - 0x30U < 10); if ((iVar3 == 0x65) || (iVar3 == 0x45)) goto LAB_001e770c; goto LAB_001e7793; } if ((iVar2 == 0x45) || (iVar2 == 0x65)) goto LAB_001e770c; LAB_001e7569: unget(this); local_28 = (char *)0x0; piVar4 = __errno_location(); *piVar4 = 0; if (iVar3 == 5) { uVar5 = strtoull(*(char **)(this + 0x50),&local_28,10); if (local_28 != (char *)(*(long *)(this + 0x50) + *(long *)(this + 0x58))) { pcVar7 = "endptr == token_buffer.data() + token_buffer.size()"; uVar6 = 0x21b5; goto LAB_001e7858; } if (*piVar4 == 0) { uVar6 = 5; lVar8 = 0x80; LAB_001e7635: *(ulonglong *)(this + lVar8) = uVar5; return uVar6; } } else { uVar5 = strtoll(*(char **)(this + 0x50),&local_28,10); if (local_28 != (char *)(*(long *)(this + 0x50) + *(long *)(this + 0x58))) { pcVar7 = "endptr == token_buffer.data() + token_buffer.size()"; uVar6 = 0x21c5; goto LAB_001e7858; } if (*piVar4 == 0) { uVar6 = 6; lVar8 = 0x78; goto LAB_001e7635; } } } else { if (iVar3 == 0x30) { std::__cxx11::string::push_back(cVar1 + 'P'); iVar3 = 5; } else { if (iVar3 != 0x2d) { pcVar7 = "false"; uVar6 = 0x20be; goto LAB_001e7858; } std::__cxx11::string::push_back(cVar1 + 'P'); iVar3 = get(this); if (iVar3 - 0x31U < 9) { iVar3 = 6; goto LAB_001e7521; } if (iVar3 != 0x30) { pcVar7 = "invalid number; expected digit after \'-\'"; goto LAB_001e773d; } std::__cxx11::string::push_back(cVar1 + 'P'); iVar3 = 6; } iVar2 = get(this); if ((iVar2 != 0x65) && (iVar2 != 0x45)) { if (iVar2 != 0x2e) goto LAB_001e7569; goto LAB_001e76b0; } LAB_001e770c: std::__cxx11::string::push_back(cVar1 + 'P'); iVar3 = get(this); if (9 < iVar3 - 0x30U) { if ((iVar3 != 0x2d) && (iVar3 != 0x2b)) { pcVar7 = "invalid number; expected \'+\', \'-\', or digit after exponent"; LAB_001e773d: *(char **)(this + 0x70) = pcVar7; return 0xe; } std::__cxx11::string::push_back(cVar1 + 'P'); iVar3 = get(this); if (9 < iVar3 - 0x30U) { pcVar7 = "invalid number; expected digit after exponent sign"; goto LAB_001e773d; } } std::__cxx11::string::push_back(cVar1 + 'P'); iVar3 = get(this); if (iVar3 - 0x30U < 10) { do { std::__cxx11::string::push_back(cVar1 + 'P'); iVar3 = get(this); } while (iVar3 - 0x30U < 10); } LAB_001e7793: unget(this); local_28 = (char *)0x0; piVar4 = __errno_location(); *piVar4 = 0; } dVar9 = strtod(*(char **)(this + 0x50),&local_28); *(double *)(this + 0x88) = dVar9; if (local_28 == (char *)(*(long *)(this + 0x50) + *(long *)(this + 0x58))) { return 7; } pcVar7 = "endptr == token_buffer.data() + token_buffer.size()"; uVar6 = 0x21d6; LAB_001e7858: /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",uVar6, "GGML_ASSERT(%s) failed",pcVar7); }
60,388
Cache::setByte(unsigned int, unsigned char, unsigned int*)
EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/src/Cache.cpp
void Cache::setByte(uint32_t addr, uint8_t val, uint32_t *cycles) { this->referenceCounter++; this->statistics.numWrite++; // If in cache, write to it directly int blockId; if ((blockId = this->getBlockId(addr)) != -1) { uint32_t offset = this->getOffset(addr); this->statistics.numHit++; this->statistics.totalCycles += this->policy.hitLatency; this->blocks[blockId].modified = true; this->blocks[blockId].lastReference = this->referenceCounter; this->blocks[blockId].data[offset] = val; if (!this->writeBack) { this->writeBlockToLowerLevel(this->blocks[blockId]); this->statistics.totalCycles += this->policy.missLatency; } if (cycles) *cycles = this->policy.hitLatency; return; } // Else, load the data from cache // TODO: implement bypassing this->statistics.numMiss++; this->statistics.totalCycles += this->policy.missLatency; if (this->writeAllocate) { this->loadBlockFromLowerLevel(addr, cycles); if ((blockId = this->getBlockId(addr)) != -1) { uint32_t offset = this->getOffset(addr); this->blocks[blockId].modified = true; this->blocks[blockId].lastReference = this->referenceCounter; this->blocks[blockId].data[offset] = val; return; } else { fprintf(stderr, "Error: data not in top level cache!\n"); exit(-1); } } else { if (this->lowerCache == nullptr) { this->memory->setByteNoCache(addr, val); } else { this->lowerCache->setByte(addr, val); } } }
O0
cpp
Cache::setByte(unsigned int, unsigned char, unsigned int*): subq $0x48, %rsp movb %dl, %al movq %rdi, 0x40(%rsp) movl %esi, 0x3c(%rsp) movb %al, 0x3b(%rsp) movq %rcx, 0x30(%rsp) movq 0x40(%rsp), %rdi movq %rdi, 0x18(%rsp) movl 0x18(%rdi), %eax addl $0x1, %eax movl %eax, 0x18(%rdi) movl 0x4(%rdi), %eax addl $0x1, %eax movl %eax, 0x4(%rdi) movl 0x3c(%rsp), %esi callq 0x25eb0 movl %eax, 0x2c(%rsp) cmpl $-0x1, %eax je 0x26795 movq 0x18(%rsp), %rdi movl 0x3c(%rsp), %esi callq 0x26230 movq 0x18(%rsp), %rdi movl %eax, 0x28(%rsp) movl 0x8(%rdi), %eax addl $0x1, %eax movl %eax, 0x8(%rdi) movl 0x40(%rdi), %eax addq 0x10(%rdi), %rax movq %rax, 0x10(%rdi) addq $0x48, %rdi movslq 0x2c(%rsp), %rsi callq 0x26e50 movq 0x18(%rsp), %rdi movb $0x1, 0x1(%rax) movl 0x18(%rdi), %eax movl %eax, 0x10(%rsp) addq $0x48, %rdi movslq 0x2c(%rsp), %rsi callq 0x26e50 movl 0x10(%rsp), %ecx movq 0x18(%rsp), %rdi movl %ecx, 0x10(%rax) movb 0x3b(%rsp), %al movb %al, 0x17(%rsp) addq $0x48, %rdi movslq 0x2c(%rsp), %rsi callq 0x26e50 movq %rax, %rdi addq $0x18, %rdi movl 0x28(%rsp), %eax movl %eax, %esi callq 0x26e70 movb 0x17(%rsp), %dl movq %rax, %rcx movq 0x18(%rsp), %rax movb %dl, (%rcx) testb $0x1, 0x1c(%rax) jne 0x26779 movq 0x18(%rsp), %rdi addq $0x48, %rdi movslq 0x2c(%rsp), %rsi callq 0x26e50 movq 0x18(%rsp), %rdi movq %rax, %rsi callq 0x268d0 movq 0x18(%rsp), %rax movl 0x44(%rax), %ecx addq 0x10(%rax), %rcx movq %rcx, 0x10(%rax) cmpq $0x0, 0x30(%rsp) je 0x26790 movq 0x18(%rsp), %rax movl 0x40(%rax), %ecx movq 0x30(%rsp), %rax movl %ecx, (%rax) jmp 0x268c5 movq 0x18(%rsp), %rax movl 0xc(%rax), %ecx addl $0x1, %ecx movl %ecx, 0xc(%rax) movl 0x44(%rax), %ecx addq 0x10(%rax), %rcx movq %rcx, 0x10(%rax) testb $0x1, 0x1d(%rax) je 0x26883 movq 0x18(%rsp), %rdi movl 0x3c(%rsp), %esi movq 0x30(%rsp), %rdx callq 0x26270 movq 0x18(%rsp), %rdi movl 0x3c(%rsp), %esi callq 0x25eb0 movl %eax, 0x2c(%rsp) cmpl $-0x1, %eax je 0x26861 movq 0x18(%rsp), %rdi movl 0x3c(%rsp), %esi callq 0x26230 movq 0x18(%rsp), %rdi movl %eax, 0x24(%rsp) addq $0x48, %rdi movslq 0x2c(%rsp), %rsi callq 0x26e50 movq 0x18(%rsp), %rdi movb $0x1, 0x1(%rax) movl 0x18(%rdi), %eax movl %eax, 0x8(%rsp) addq $0x48, %rdi movslq 0x2c(%rsp), %rsi callq 0x26e50 movl 0x8(%rsp), %ecx movq 0x18(%rsp), %rdi movl %ecx, 0x10(%rax) movb 0x3b(%rsp), %al movb %al, 0xf(%rsp) addq $0x48, %rdi movslq 0x2c(%rsp), %rsi callq 0x26e50 movq %rax, %rdi addq $0x18, %rdi movl 0x24(%rsp), %eax movl %eax, %esi callq 0x26e70 movb 0xf(%rsp), %cl movb %cl, (%rax) jmp 0x268c5 movq 0xc770(%rip), %rax # 0x32fd8 movq (%rax), %rdi leaq 0x3bc3(%rip), %rsi # 0x2a435 movb $0x0, %al callq 0x15320 movl $0xffffffff, %edi # imm = 0xFFFFFFFF callq 0x15260 movq 0x18(%rsp), %rax cmpq $0x0, 0x28(%rax) jne 0x268a8 movq 0x18(%rsp), %rax movq 0x20(%rax), %rdi movl 0x3c(%rsp), %esi movzbl 0x3b(%rsp), %edx callq 0x1e8f0 jmp 0x268c3 movq 0x18(%rsp), %rax movq 0x28(%rax), %rdi movl 0x3c(%rsp), %esi xorl %eax, %eax movl %eax, %ecx movzbl 0x3b(%rsp), %edx callq 0x26660 jmp 0x268c5 addq $0x48, %rsp retq nopw (%rax,%rax)
_ZN5Cache7setByteEjhPj: sub rsp, 48h mov al, dl mov [rsp+48h+var_8], rdi mov [rsp+48h+var_C], esi mov [rsp+48h+var_D], al mov [rsp+48h+var_18], rcx mov rdi, [rsp+48h+var_8]; this mov [rsp+48h+var_30], rdi mov eax, [rdi+18h] add eax, 1 mov [rdi+18h], eax mov eax, [rdi+4] add eax, 1 mov [rdi+4], eax mov esi, [rsp+48h+var_C]; unsigned int call _ZN5Cache10getBlockIdEj; Cache::getBlockId(uint) mov [rsp+48h+var_1C], eax cmp eax, 0FFFFFFFFh jz loc_26795 mov rdi, [rsp+48h+var_30]; this mov esi, [rsp+48h+var_C]; unsigned int call _ZN5Cache9getOffsetEj; Cache::getOffset(uint) mov rdi, [rsp+48h+var_30] mov [rsp+48h+var_20], eax mov eax, [rdi+8] add eax, 1 mov [rdi+8], eax mov eax, [rdi+40h] add rax, [rdi+10h] mov [rdi+10h], rax add rdi, 48h ; 'H' movsxd rsi, [rsp+48h+var_1C] call _ZNSt6vectorIN5Cache5BlockESaIS1_EEixEm; std::vector<Cache::Block>::operator[](ulong) mov rdi, [rsp+48h+var_30] mov byte ptr [rax+1], 1 mov eax, [rdi+18h] mov [rsp+48h+var_38], eax add rdi, 48h ; 'H' movsxd rsi, [rsp+48h+var_1C] call _ZNSt6vectorIN5Cache5BlockESaIS1_EEixEm; std::vector<Cache::Block>::operator[](ulong) mov ecx, [rsp+48h+var_38] mov rdi, [rsp+48h+var_30] mov [rax+10h], ecx mov al, [rsp+48h+var_D] mov [rsp+48h+var_31], al add rdi, 48h ; 'H' movsxd rsi, [rsp+48h+var_1C] call _ZNSt6vectorIN5Cache5BlockESaIS1_EEixEm; std::vector<Cache::Block>::operator[](ulong) mov rdi, rax add rdi, 18h mov eax, [rsp+48h+var_20] mov esi, eax call _ZNSt6vectorIhSaIhEEixEm; std::vector<uchar>::operator[](ulong) mov dl, [rsp+48h+var_31] mov rcx, rax mov rax, [rsp+48h+var_30] mov [rcx], dl test byte ptr [rax+1Ch], 1 jnz short loc_26779 mov rdi, [rsp+48h+var_30] add rdi, 48h ; 'H' movsxd rsi, [rsp+48h+var_1C] call _ZNSt6vectorIN5Cache5BlockESaIS1_EEixEm; std::vector<Cache::Block>::operator[](ulong) mov rdi, [rsp+48h+var_30]; this mov rsi, rax; Cache::Block * call _ZN5Cache22writeBlockToLowerLevelERNS_5BlockE; Cache::writeBlockToLowerLevel(Cache::Block &) mov rax, [rsp+48h+var_30] mov ecx, [rax+44h] add rcx, [rax+10h] mov [rax+10h], rcx loc_26779: cmp [rsp+48h+var_18], 0 jz short loc_26790 mov rax, [rsp+48h+var_30] mov ecx, [rax+40h] mov rax, [rsp+48h+var_18] mov [rax], ecx loc_26790: jmp loc_268C5 loc_26795: mov rax, [rsp+48h+var_30] mov ecx, [rax+0Ch] add ecx, 1 mov [rax+0Ch], ecx mov ecx, [rax+44h] add rcx, [rax+10h] mov [rax+10h], rcx test byte ptr [rax+1Dh], 1 jz loc_26883 mov rdi, [rsp+48h+var_30]; this mov esi, [rsp+48h+var_C]; unsigned int mov rdx, [rsp+48h+var_18]; unsigned int * call _ZN5Cache23loadBlockFromLowerLevelEjPj; Cache::loadBlockFromLowerLevel(uint,uint *) mov rdi, [rsp+48h+var_30]; this mov esi, [rsp+48h+var_C]; unsigned int call _ZN5Cache10getBlockIdEj; Cache::getBlockId(uint) mov [rsp+48h+var_1C], eax cmp eax, 0FFFFFFFFh jz short loc_26861 mov rdi, [rsp+48h+var_30]; this mov esi, [rsp+48h+var_C]; unsigned int call _ZN5Cache9getOffsetEj; Cache::getOffset(uint) mov rdi, [rsp+48h+var_30] mov [rsp+48h+var_24], eax add rdi, 48h ; 'H' movsxd rsi, [rsp+48h+var_1C] call _ZNSt6vectorIN5Cache5BlockESaIS1_EEixEm; std::vector<Cache::Block>::operator[](ulong) mov rdi, [rsp+48h+var_30] mov byte ptr [rax+1], 1 mov eax, [rdi+18h] mov [rsp+48h+var_40], eax add rdi, 48h ; 'H' movsxd rsi, [rsp+48h+var_1C] call _ZNSt6vectorIN5Cache5BlockESaIS1_EEixEm; std::vector<Cache::Block>::operator[](ulong) mov ecx, [rsp+48h+var_40] mov rdi, [rsp+48h+var_30] mov [rax+10h], ecx mov al, [rsp+48h+var_D] mov [rsp+48h+var_39], al add rdi, 48h ; 'H' movsxd rsi, [rsp+48h+var_1C] call _ZNSt6vectorIN5Cache5BlockESaIS1_EEixEm; std::vector<Cache::Block>::operator[](ulong) mov rdi, rax add rdi, 18h mov eax, [rsp+48h+var_24] mov esi, eax call _ZNSt6vectorIhSaIhEEixEm; std::vector<uchar>::operator[](ulong) mov cl, [rsp+48h+var_39] mov [rax], cl jmp short loc_268C5 loc_26861: mov rax, cs:stderr_ptr mov rdi, [rax] lea rsi, aErrorDataNotIn; "Error: data not in top level cache!\n" mov al, 0 call _fprintf mov edi, 0FFFFFFFFh call _exit loc_26883: mov rax, [rsp+48h+var_30] cmp qword ptr [rax+28h], 0 jnz short loc_268A8 mov rax, [rsp+48h+var_30] mov rdi, [rax+20h]; this mov esi, [rsp+48h+var_C]; unsigned int movzx edx, [rsp+48h+var_D]; unsigned __int8 call _ZN13MemoryManager14setByteNoCacheEjh; MemoryManager::setByteNoCache(uint,uchar) jmp short loc_268C3 loc_268A8: mov rax, [rsp+48h+var_30] mov rdi, [rax+28h]; this mov esi, [rsp+48h+var_C]; unsigned int xor eax, eax mov ecx, eax; unsigned int * movzx edx, [rsp+48h+var_D]; unsigned __int8 call _ZN5Cache7setByteEjhPj; Cache::setByte(uint,uchar,uint *) loc_268C3: jmp short $+2 loc_268C5: add rsp, 48h retn
char Cache::setByte( Cache *this, unsigned int a2, char a3, unsigned int *a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, double a9, double a10, __m128 a11, __m128 a12) { double v12; // xmm4_8 double v13; // xmm5_8 long long v14; // rax _BYTE *v15; // rcx _BYTE *v16; // rax Cache::Block *v17; // rax long long v18; // rax int v20; // [rsp+8h] [rbp-40h] int v21; // [rsp+10h] [rbp-38h] unsigned int Offset; // [rsp+24h] [rbp-24h] unsigned int v23; // [rsp+28h] [rbp-20h] int BlockId; // [rsp+2Ch] [rbp-1Ch] int v25; // [rsp+2Ch] [rbp-1Ch] ++*((_DWORD *)this + 6); ++*((_DWORD *)this + 1); BlockId = Cache::getBlockId(this, a2); if ( BlockId == -1 ) { ++*((_DWORD *)this + 3); *((_QWORD *)this + 2) += *((unsigned int *)this + 17); if ( (*((_BYTE *)this + 29) & 1) != 0 ) { Cache::loadBlockFromLowerLevel(this, a2, a4, a5, a6, a7, a8, v12, v13, a11, a12); v25 = Cache::getBlockId(this, a2); if ( v25 == -1 ) { fprintf(stderr, "Error: data not in top level cache!\n"); exit(0xFFFFFFFFLL); } Offset = Cache::getOffset(this, a2); *(_BYTE *)(std::vector<Cache::Block>::operator[]((char *)this + 72, v25) + 1) = 1; v20 = *((_DWORD *)this + 6); *(_DWORD *)(std::vector<Cache::Block>::operator[]((char *)this + 72, v25) + 16) = v20; v18 = std::vector<Cache::Block>::operator[]((char *)this + 72, v25); v16 = (_BYTE *)std::vector<unsigned char>::operator[](v18 + 24, Offset); *v16 = a3; } else if ( *((_QWORD *)this + 5) ) { LOBYTE(v16) = Cache::setByte(*((Cache **)this + 5), a2, a3, 0LL); } else { LOBYTE(v16) = MemoryManager::setByteNoCache( *((MemoryManager **)this + 4), a2, a3, a5, a6, a7, a8, v12, v13, a11, a12); } } else { v23 = Cache::getOffset(this, a2); ++*((_DWORD *)this + 2); *((_QWORD *)this + 2) += *((unsigned int *)this + 16); *(_BYTE *)(std::vector<Cache::Block>::operator[]((char *)this + 72, BlockId) + 1) = 1; v21 = *((_DWORD *)this + 6); *(_DWORD *)(std::vector<Cache::Block>::operator[]((char *)this + 72, BlockId) + 16) = v21; v14 = std::vector<Cache::Block>::operator[]((char *)this + 72, BlockId); v15 = (_BYTE *)std::vector<unsigned char>::operator[](v14 + 24, v23); LOBYTE(v16) = (_BYTE)this; *v15 = a3; if ( (*((_BYTE *)this + 28) & 1) == 0 ) { v17 = (Cache::Block *)std::vector<Cache::Block>::operator[]((char *)this + 72, BlockId); Cache::writeBlockToLowerLevel(this, v17); LOBYTE(v16) = (_BYTE)this; *((_QWORD *)this + 2) += *((unsigned int *)this + 17); } if ( a4 ) { LOBYTE(v16) = (_BYTE)a4; *a4 = *((_DWORD *)this + 16); } } return (char)v16; }
setByte: SUB RSP,0x48 MOV AL,DL MOV qword ptr [RSP + 0x40],RDI MOV dword ptr [RSP + 0x3c],ESI MOV byte ptr [RSP + 0x3b],AL MOV qword ptr [RSP + 0x30],RCX MOV RDI,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0x18],RDI MOV EAX,dword ptr [RDI + 0x18] ADD EAX,0x1 MOV dword ptr [RDI + 0x18],EAX MOV EAX,dword ptr [RDI + 0x4] ADD EAX,0x1 MOV dword ptr [RDI + 0x4],EAX MOV ESI,dword ptr [RSP + 0x3c] CALL 0x00125eb0 MOV dword ptr [RSP + 0x2c],EAX CMP EAX,-0x1 JZ 0x00126795 MOV RDI,qword ptr [RSP + 0x18] MOV ESI,dword ptr [RSP + 0x3c] CALL 0x00126230 MOV RDI,qword ptr [RSP + 0x18] MOV dword ptr [RSP + 0x28],EAX MOV EAX,dword ptr [RDI + 0x8] ADD EAX,0x1 MOV dword ptr [RDI + 0x8],EAX MOV EAX,dword ptr [RDI + 0x40] ADD RAX,qword ptr [RDI + 0x10] MOV qword ptr [RDI + 0x10],RAX ADD RDI,0x48 MOVSXD RSI,dword ptr [RSP + 0x2c] CALL 0x00126e50 MOV RDI,qword ptr [RSP + 0x18] MOV byte ptr [RAX + 0x1],0x1 MOV EAX,dword ptr [RDI + 0x18] MOV dword ptr [RSP + 0x10],EAX ADD RDI,0x48 MOVSXD RSI,dword ptr [RSP + 0x2c] CALL 0x00126e50 MOV ECX,dword ptr [RSP + 0x10] MOV RDI,qword ptr [RSP + 0x18] MOV dword ptr [RAX + 0x10],ECX MOV AL,byte ptr [RSP + 0x3b] MOV byte ptr [RSP + 0x17],AL ADD RDI,0x48 MOVSXD RSI,dword ptr [RSP + 0x2c] CALL 0x00126e50 MOV RDI,RAX ADD RDI,0x18 MOV EAX,dword ptr [RSP + 0x28] MOV ESI,EAX CALL 0x00126e70 MOV DL,byte ptr [RSP + 0x17] MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x18] MOV byte ptr [RCX],DL TEST byte ptr [RAX + 0x1c],0x1 JNZ 0x00126779 MOV RDI,qword ptr [RSP + 0x18] ADD RDI,0x48 MOVSXD RSI,dword ptr [RSP + 0x2c] CALL 0x00126e50 MOV RDI,qword ptr [RSP + 0x18] MOV RSI,RAX CALL 0x001268d0 MOV RAX,qword ptr [RSP + 0x18] MOV ECX,dword ptr [RAX + 0x44] ADD RCX,qword ptr [RAX + 0x10] MOV qword ptr [RAX + 0x10],RCX LAB_00126779: CMP qword ptr [RSP + 0x30],0x0 JZ 0x00126790 MOV RAX,qword ptr [RSP + 0x18] MOV ECX,dword ptr [RAX + 0x40] MOV RAX,qword ptr [RSP + 0x30] MOV dword ptr [RAX],ECX LAB_00126790: JMP 0x001268c5 LAB_00126795: MOV RAX,qword ptr [RSP + 0x18] MOV ECX,dword ptr [RAX + 0xc] ADD ECX,0x1 MOV dword ptr [RAX + 0xc],ECX MOV ECX,dword ptr [RAX + 0x44] ADD RCX,qword ptr [RAX + 0x10] MOV qword ptr [RAX + 0x10],RCX TEST byte ptr [RAX + 0x1d],0x1 JZ 0x00126883 MOV RDI,qword ptr [RSP + 0x18] MOV ESI,dword ptr [RSP + 0x3c] MOV RDX,qword ptr [RSP + 0x30] CALL 0x00126270 MOV RDI,qword ptr [RSP + 0x18] MOV ESI,dword ptr [RSP + 0x3c] CALL 0x00125eb0 MOV dword ptr [RSP + 0x2c],EAX CMP EAX,-0x1 JZ 0x00126861 MOV RDI,qword ptr [RSP + 0x18] MOV ESI,dword ptr [RSP + 0x3c] CALL 0x00126230 MOV RDI,qword ptr [RSP + 0x18] MOV dword ptr [RSP + 0x24],EAX ADD RDI,0x48 MOVSXD RSI,dword ptr [RSP + 0x2c] CALL 0x00126e50 MOV RDI,qword ptr [RSP + 0x18] MOV byte ptr [RAX + 0x1],0x1 MOV EAX,dword ptr [RDI + 0x18] MOV dword ptr [RSP + 0x8],EAX ADD RDI,0x48 MOVSXD RSI,dword ptr [RSP + 0x2c] CALL 0x00126e50 MOV ECX,dword ptr [RSP + 0x8] MOV RDI,qword ptr [RSP + 0x18] MOV dword ptr [RAX + 0x10],ECX MOV AL,byte ptr [RSP + 0x3b] MOV byte ptr [RSP + 0xf],AL ADD RDI,0x48 MOVSXD RSI,dword ptr [RSP + 0x2c] CALL 0x00126e50 MOV RDI,RAX ADD RDI,0x18 MOV EAX,dword ptr [RSP + 0x24] MOV ESI,EAX CALL 0x00126e70 MOV CL,byte ptr [RSP + 0xf] MOV byte ptr [RAX],CL JMP 0x001268c5 LAB_00126861: MOV RAX,qword ptr [0x00132fd8] MOV RDI,qword ptr [RAX] LEA RSI,[0x12a435] MOV AL,0x0 CALL 0x00115320 MOV EDI,0xffffffff CALL 0x00115260 LAB_00126883: MOV RAX,qword ptr [RSP + 0x18] CMP qword ptr [RAX + 0x28],0x0 JNZ 0x001268a8 MOV RAX,qword ptr [RSP + 0x18] MOV RDI,qword ptr [RAX + 0x20] MOV ESI,dword ptr [RSP + 0x3c] MOVZX EDX,byte ptr [RSP + 0x3b] CALL 0x0011e8f0 JMP 0x001268c3 LAB_001268a8: MOV RAX,qword ptr [RSP + 0x18] MOV RDI,qword ptr [RAX + 0x28] MOV ESI,dword ptr [RSP + 0x3c] XOR EAX,EAX MOV ECX,EAX MOVZX EDX,byte ptr [RSP + 0x3b] CALL 0x00126660 LAB_001268c3: JMP 0x001268c5 LAB_001268c5: ADD RSP,0x48 RET
/* Cache::setByte(unsigned int, unsigned char, unsigned int*) */ void __thiscall Cache::setByte(Cache *this,uint param_1,uchar param_2,uint *param_3) { int4 uVar1; int iVar2; uint uVar3; long lVar4; uchar *puVar5; Block *pBVar6; *(int *)(this + 0x18) = *(int *)(this + 0x18) + 1; *(int *)(this + 4) = *(int *)(this + 4) + 1; iVar2 = getBlockId(this,param_1); if (iVar2 == -1) { *(int *)(this + 0xc) = *(int *)(this + 0xc) + 1; *(ulong *)(this + 0x10) = (ulong)*(uint *)(this + 0x44) + *(long *)(this + 0x10); if (((byte)this[0x1d] & 1) == 0) { if (*(long *)(this + 0x28) == 0) { MemoryManager::setByteNoCache(*(MemoryManager **)(this + 0x20),param_1,param_2); } else { setByte(*(Cache **)(this + 0x28),param_1,param_2,(uint *)0x0); } } else { loadBlockFromLowerLevel(this,param_1,param_3); iVar2 = getBlockId(this,param_1); if (iVar2 == -1) { fprintf(*(FILE **)PTR_stderr_00132fd8,"Error: data not in top level cache!\n"); /* WARNING: Subroutine does not return */ exit(-1); } uVar3 = getOffset(this,param_1); lVar4 = std::vector<Cache::Block,std::allocator<Cache::Block>>::operator[] ((vector<Cache::Block,std::allocator<Cache::Block>> *)(this + 0x48), (long)iVar2); *(int1 *)(lVar4 + 1) = 1; uVar1 = *(int4 *)(this + 0x18); lVar4 = std::vector<Cache::Block,std::allocator<Cache::Block>>::operator[] ((vector<Cache::Block,std::allocator<Cache::Block>> *)(this + 0x48), (long)iVar2); *(int4 *)(lVar4 + 0x10) = uVar1; lVar4 = std::vector<Cache::Block,std::allocator<Cache::Block>>::operator[] ((vector<Cache::Block,std::allocator<Cache::Block>> *)(this + 0x48), (long)iVar2); puVar5 = (uchar *)std::vector<unsigned_char,std::allocator<unsigned_char>>::operator[] ((vector<unsigned_char,std::allocator<unsigned_char>> *) (lVar4 + 0x18),(ulong)uVar3); *puVar5 = param_2; } } else { uVar3 = getOffset(this,param_1); *(int *)(this + 8) = *(int *)(this + 8) + 1; *(ulong *)(this + 0x10) = (ulong)*(uint *)(this + 0x40) + *(long *)(this + 0x10); lVar4 = std::vector<Cache::Block,std::allocator<Cache::Block>>::operator[] ((vector<Cache::Block,std::allocator<Cache::Block>> *)(this + 0x48), (long)iVar2); *(int1 *)(lVar4 + 1) = 1; uVar1 = *(int4 *)(this + 0x18); lVar4 = std::vector<Cache::Block,std::allocator<Cache::Block>>::operator[] ((vector<Cache::Block,std::allocator<Cache::Block>> *)(this + 0x48), (long)iVar2); *(int4 *)(lVar4 + 0x10) = uVar1; lVar4 = std::vector<Cache::Block,std::allocator<Cache::Block>>::operator[] ((vector<Cache::Block,std::allocator<Cache::Block>> *)(this + 0x48), (long)iVar2); puVar5 = (uchar *)std::vector<unsigned_char,std::allocator<unsigned_char>>::operator[] ((vector<unsigned_char,std::allocator<unsigned_char>> *) (lVar4 + 0x18),(ulong)uVar3); *puVar5 = param_2; if (((byte)this[0x1c] & 1) == 0) { pBVar6 = (Block *)std::vector<Cache::Block,std::allocator<Cache::Block>>::operator[] ((vector<Cache::Block,std::allocator<Cache::Block>> *) (this + 0x48),(long)iVar2); writeBlockToLowerLevel(this,pBVar6); *(ulong *)(this + 0x10) = (ulong)*(uint *)(this + 0x44) + *(long *)(this + 0x10); } if (param_3 != (uint *)0x0) { *param_3 = *(uint *)(this + 0x40); } } return; }
60,389
Cache::setByte(unsigned int, unsigned char, unsigned int*)
EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/src/Cache.cpp
void Cache::setByte(uint32_t addr, uint8_t val, uint32_t *cycles) { this->referenceCounter++; this->statistics.numWrite++; // If in cache, write to it directly int blockId; if ((blockId = this->getBlockId(addr)) != -1) { uint32_t offset = this->getOffset(addr); this->statistics.numHit++; this->statistics.totalCycles += this->policy.hitLatency; this->blocks[blockId].modified = true; this->blocks[blockId].lastReference = this->referenceCounter; this->blocks[blockId].data[offset] = val; if (!this->writeBack) { this->writeBlockToLowerLevel(this->blocks[blockId]); this->statistics.totalCycles += this->policy.missLatency; } if (cycles) *cycles = this->policy.hitLatency; return; } // Else, load the data from cache // TODO: implement bypassing this->statistics.numMiss++; this->statistics.totalCycles += this->policy.missLatency; if (this->writeAllocate) { this->loadBlockFromLowerLevel(addr, cycles); if ((blockId = this->getBlockId(addr)) != -1) { uint32_t offset = this->getOffset(addr); this->blocks[blockId].modified = true; this->blocks[blockId].lastReference = this->referenceCounter; this->blocks[blockId].data[offset] = val; return; } else { fprintf(stderr, "Error: data not in top level cache!\n"); exit(-1); } } else { if (this->lowerCache == nullptr) { this->memory->setByteNoCache(addr, val); } else { this->lowerCache->setByte(addr, val); } } }
O1
cpp
Cache::setByte(unsigned int, unsigned char, unsigned int*): pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rcx, %r15 movl %edx, %ebp movl %esi, %r14d movq %rdi, %rbx incl 0x18(%rdi) incl 0x4(%rdi) movl %r14d, %esi callq 0x1368e cmpl $-0x1, %eax jne 0x13ba4 incl 0xc(%rbx) movl 0x44(%rbx), %eax addq %rax, 0x10(%rbx) cmpb $0x1, 0x1d(%rbx) je 0x13c2a movq 0x28(%rbx), %rdi movl $0x0, %r15d testq %rdi, %rdi jne 0x13b51 movq 0x20(%rbx), %rdi movzbl %bpl, %edx movl %r14d, %esi addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp 0xec1a movl 0x34(%rbx), %esi movl $0xffffffff, %edx # imm = 0xFFFFFFFF movl $0xffffffff, %ecx # imm = 0xFFFFFFFF testl %esi, %esi je 0x13bd0 xorl %ecx, %ecx cmpl $0x1, %esi je 0x13bd0 cmpl $0x2, %esi jb 0x13bd0 xorl %ecx, %ecx movl %esi, %edi shrl %edi incl %ecx cmpl $0x3, %esi movl %edi, %esi ja 0x13bc5 shll %cl, %edx notl %edx incl 0x8(%rbx) movl 0x40(%rbx), %ecx addq %rcx, 0x10(%rbx) andl %r14d, %edx cltq movq 0x48(%rbx), %rcx leaq (%rax,%rax,2), %rsi shlq $0x4, %rsi movb $0x1, 0x1(%rcx,%rsi) movl 0x18(%rbx), %eax movl %eax, 0x10(%rcx,%rsi) movq 0x18(%rcx,%rsi), %rax movb %bpl, (%rax,%rdx) cmpb $0x0, 0x1c(%rbx) jne 0x13c1d addq 0x48(%rbx), %rsi movq %rbx, %rdi callq 0x13cae movl 0x44(%rbx), %eax addq %rax, 0x10(%rbx) testq %r15, %r15 je 0x13c9e movl 0x40(%rbx), %eax movl %eax, (%r15) jmp 0x13c9e movq %rbx, %rdi movl %r14d, %esi movq %r15, %rdx callq 0x13914 movq %rbx, %rdi movl %r14d, %esi callq 0x1368e cmpl $-0x1, %eax je 0x13ca9 movl 0x34(%rbx), %esi movl $0xffffffff, %edx # imm = 0xFFFFFFFF movl $0xffffffff, %ecx # imm = 0xFFFFFFFF testl %esi, %esi je 0x13c74 xorl %ecx, %ecx cmpl $0x1, %esi je 0x13c74 cmpl $0x2, %esi jb 0x13c74 xorl %ecx, %ecx movl %esi, %edi shrl %edi incl %ecx cmpl $0x3, %esi movl %edi, %esi ja 0x13c69 shll %cl, %edx notl %edx andl %r14d, %edx cltq movq 0x48(%rbx), %rcx leaq (%rax,%rax,2), %rax shlq $0x4, %rax movb $0x1, 0x1(%rcx,%rax) movl 0x18(%rbx), %esi movl %esi, 0x10(%rcx,%rax) movq 0x18(%rcx,%rax), %rax movb %bpl, (%rax,%rdx) addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq callq 0xb5c1
_ZN5Cache7setByteEjhPj: push rbp push r15 push r14 push rbx push rax mov r15, rcx mov ebp, edx mov r14d, esi loc_13B51: mov rbx, rdi inc dword ptr [rdi+18h] inc dword ptr [rdi+4] mov esi, r14d; unsigned int call _ZN5Cache10getBlockIdEj; Cache::getBlockId(uint) cmp eax, 0FFFFFFFFh jnz short loc_13BA4 inc dword ptr [rbx+0Ch] mov eax, [rbx+44h] add [rbx+10h], rax cmp byte ptr [rbx+1Dh], 1 jz loc_13C2A mov rdi, [rbx+28h] mov r15d, 0 test rdi, rdi jnz short loc_13B51 mov rdi, [rbx+20h]; this movzx edx, bpl; unsigned __int8 mov esi, r14d; unsigned int add rsp, 8 pop rbx pop r14 pop r15 pop rbp jmp _ZN13MemoryManager14setByteNoCacheEjh; MemoryManager::setByteNoCache(uint,uchar) loc_13BA4: mov esi, [rbx+34h] mov edx, 0FFFFFFFFh mov ecx, 0FFFFFFFFh test esi, esi jz short loc_13BD0 xor ecx, ecx cmp esi, 1 jz short loc_13BD0 cmp esi, 2 jb short loc_13BD0 xor ecx, ecx mov edi, esi loc_13BC5: shr edi, 1 inc ecx cmp esi, 3 mov esi, edi ja short loc_13BC5 loc_13BD0: shl edx, cl not edx inc dword ptr [rbx+8] mov ecx, [rbx+40h] add [rbx+10h], rcx and edx, r14d cdqe mov rcx, [rbx+48h] lea rsi, [rax+rax*2] shl rsi, 4 mov byte ptr [rcx+rsi+1], 1 mov eax, [rbx+18h] mov [rcx+rsi+10h], eax mov rax, [rcx+rsi+18h] mov [rax+rdx], bpl cmp byte ptr [rbx+1Ch], 0 jnz short loc_13C1D add rsi, [rbx+48h] mov rdi, rbx call _ZN5Cache22writeBlockToLowerLevelERNS_5BlockE; Cache::writeBlockToLowerLevel(Cache::Block &) mov eax, [rbx+44h] add [rbx+10h], rax loc_13C1D: test r15, r15 jz short loc_13C9E mov eax, [rbx+40h] mov [r15], eax jmp short loc_13C9E loc_13C2A: mov rdi, rbx; this mov esi, r14d; unsigned int mov rdx, r15; unsigned int * call _ZN5Cache23loadBlockFromLowerLevelEjPj; Cache::loadBlockFromLowerLevel(uint,uint *) mov rdi, rbx; this mov esi, r14d; unsigned int call _ZN5Cache10getBlockIdEj; Cache::getBlockId(uint) cmp eax, 0FFFFFFFFh jz short loc_13CA9 mov esi, [rbx+34h] mov edx, 0FFFFFFFFh mov ecx, 0FFFFFFFFh test esi, esi jz short loc_13C74 xor ecx, ecx cmp esi, 1 jz short loc_13C74 cmp esi, 2 jb short loc_13C74 xor ecx, ecx mov edi, esi loc_13C69: shr edi, 1 inc ecx cmp esi, 3 mov esi, edi ja short loc_13C69 loc_13C74: shl edx, cl not edx and edx, r14d cdqe mov rcx, [rbx+48h] lea rax, [rax+rax*2] shl rax, 4 mov byte ptr [rcx+rax+1], 1 mov esi, [rbx+18h] mov [rcx+rax+10h], esi mov rax, [rcx+rax+18h] mov [rax+rdx], bpl loc_13C9E: add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn loc_13CA9: call _ZN5Cache7setByteEjhPj_cold_1; Cache::setByte(uint,uchar,uint *) [clone]
char Cache::setByte( Cache *this, unsigned int a2, unsigned __int8 a3, unsigned int *a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, double a9, double a10, __m128 a11, __m128 a12) { Cache *v15; // rbx int BlockId; // eax long long v17; // rcx long long v18; // r8 long long v19; // r9 __m128 v20; // xmm4 __m128 v21; // xmm5 long long v22; // rax unsigned int v23; // esi char v24; // cl unsigned int v25; // edi bool v26; // cc long long v27; // rdx long long v28; // rcx long long v29; // rsi int v30; // eax unsigned int v31; // esi char v32; // cl unsigned int v33; // edi long long v34; // rdx long long v35; // rcx long long v36; // rax while ( 1 ) { v15 = this; ++*((_DWORD *)this + 6); ++*((_DWORD *)this + 1); BlockId = Cache::getBlockId(this, a2); if ( BlockId != -1 ) break; ++*((_DWORD *)this + 3); *((_QWORD *)this + 2) += *((unsigned int *)this + 17); if ( *((_BYTE *)this + 29) == 1 ) { Cache::loadBlockFromLowerLevel( (MemoryManager **)this, a2, a4, *(double *)a5.m128_u64, *(double *)a6.m128_u64, a7, a8, *(double *)v20.m128_u64, *(double *)v21.m128_u64, a11, a12); v30 = Cache::getBlockId(this, a2); if ( v30 == -1 ) Cache::setByte(this); v31 = *((_DWORD *)this + 13); v32 = -1; if ( v31 ) { v32 = 0; if ( v31 != 1 ) { v32 = 0; v33 = *((_DWORD *)this + 13); do { v33 >>= 1; ++v32; v26 = v31 <= 3; v31 = v33; } while ( !v26 ); } } v34 = a2 & ~(-1 << v32); v35 = *((_QWORD *)v15 + 9); v36 = 48LL * v30; *(_BYTE *)(v35 + v36 + 1) = 1; *(_DWORD *)(v35 + v36 + 16) = *((_DWORD *)v15 + 6); v22 = *(_QWORD *)(v35 + v36 + 24); *(_BYTE *)(v22 + v34) = a3; return v22; } this = (Cache *)*((_QWORD *)this + 5); a4 = 0LL; if ( !this ) { LOBYTE(v22) = MemoryManager::setByteNoCache( *((MemoryManager **)v15 + 4), a2, a3, v17, v18, v19, a5, a6, a7, a8, v20, v21, a11, a12); return v22; } } v23 = *((_DWORD *)this + 13); v24 = -1; if ( v23 ) { v24 = 0; if ( v23 != 1 ) { v24 = 0; v25 = *((_DWORD *)this + 13); do { v25 >>= 1; ++v24; v26 = v23 <= 3; v23 = v25; } while ( !v26 ); } } ++*((_DWORD *)v15 + 2); *((_QWORD *)v15 + 2) += *((unsigned int *)v15 + 16); v27 = a2 & ~(-1 << v24); v28 = *((_QWORD *)v15 + 9); v29 = 48LL * BlockId; *(_BYTE *)(v28 + v29 + 1) = 1; *(_DWORD *)(v28 + v29 + 16) = *((_DWORD *)v15 + 6); v22 = *(_QWORD *)(v28 + v29 + 24); *(_BYTE *)(v22 + v27) = a3; if ( !*((_BYTE *)v15 + 28) ) { Cache::writeBlockToLowerLevel(v15, *((_QWORD *)v15 + 9) + v29); v22 = *((unsigned int *)v15 + 17); *((_QWORD *)v15 + 2) += v22; } if ( a4 ) { LODWORD(v22) = *((_DWORD *)v15 + 16); *a4 = v22; } return v22; }
setByte: PUSH RBP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV R15,RCX MOV EBP,EDX MOV R14D,ESI LAB_00113b51: MOV RBX,RDI INC dword ptr [RDI + 0x18] INC dword ptr [RDI + 0x4] MOV ESI,R14D CALL 0x0011368e CMP EAX,-0x1 JNZ 0x00113ba4 INC dword ptr [RBX + 0xc] MOV EAX,dword ptr [RBX + 0x44] ADD qword ptr [RBX + 0x10],RAX CMP byte ptr [RBX + 0x1d],0x1 JZ 0x00113c2a MOV RDI,qword ptr [RBX + 0x28] MOV R15D,0x0 TEST RDI,RDI JNZ 0x00113b51 MOV RDI,qword ptr [RBX + 0x20] MOVZX EDX,BPL MOV ESI,R14D ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP JMP 0x0010ec1a LAB_00113ba4: MOV ESI,dword ptr [RBX + 0x34] MOV EDX,0xffffffff MOV ECX,0xffffffff TEST ESI,ESI JZ 0x00113bd0 XOR ECX,ECX CMP ESI,0x1 JZ 0x00113bd0 CMP ESI,0x2 JC 0x00113bd0 XOR ECX,ECX MOV EDI,ESI LAB_00113bc5: SHR EDI,0x1 INC ECX CMP ESI,0x3 MOV ESI,EDI JA 0x00113bc5 LAB_00113bd0: SHL EDX,CL NOT EDX INC dword ptr [RBX + 0x8] MOV ECX,dword ptr [RBX + 0x40] ADD qword ptr [RBX + 0x10],RCX AND EDX,R14D CDQE MOV RCX,qword ptr [RBX + 0x48] LEA RSI,[RAX + RAX*0x2] SHL RSI,0x4 MOV byte ptr [RCX + RSI*0x1 + 0x1],0x1 MOV EAX,dword ptr [RBX + 0x18] MOV dword ptr [RCX + RSI*0x1 + 0x10],EAX MOV RAX,qword ptr [RCX + RSI*0x1 + 0x18] MOV byte ptr [RAX + RDX*0x1],BPL CMP byte ptr [RBX + 0x1c],0x0 JNZ 0x00113c1d ADD RSI,qword ptr [RBX + 0x48] MOV RDI,RBX CALL 0x00113cae MOV EAX,dword ptr [RBX + 0x44] ADD qword ptr [RBX + 0x10],RAX LAB_00113c1d: TEST R15,R15 JZ 0x00113c9e MOV EAX,dword ptr [RBX + 0x40] MOV dword ptr [R15],EAX JMP 0x00113c9e LAB_00113c2a: MOV RDI,RBX MOV ESI,R14D MOV RDX,R15 CALL 0x00113914 MOV RDI,RBX MOV ESI,R14D CALL 0x0011368e CMP EAX,-0x1 JZ 0x00113ca9 MOV ESI,dword ptr [RBX + 0x34] MOV EDX,0xffffffff MOV ECX,0xffffffff TEST ESI,ESI JZ 0x00113c74 XOR ECX,ECX CMP ESI,0x1 JZ 0x00113c74 CMP ESI,0x2 JC 0x00113c74 XOR ECX,ECX MOV EDI,ESI LAB_00113c69: SHR EDI,0x1 INC ECX CMP ESI,0x3 MOV ESI,EDI JA 0x00113c69 LAB_00113c74: SHL EDX,CL NOT EDX AND EDX,R14D CDQE MOV RCX,qword ptr [RBX + 0x48] LEA RAX,[RAX + RAX*0x2] SHL RAX,0x4 MOV byte ptr [RCX + RAX*0x1 + 0x1],0x1 MOV ESI,dword ptr [RBX + 0x18] MOV dword ptr [RCX + RAX*0x1 + 0x10],ESI MOV RAX,qword ptr [RCX + RAX*0x1 + 0x18] MOV byte ptr [RAX + RDX*0x1],BPL LAB_00113c9e: ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET LAB_00113ca9: CALL 0x0010b5c1
/* Cache::setByte(unsigned int, unsigned char, unsigned int*) */ void Cache::setByte(uint param_1,uchar param_2,uint *param_3) { long lVar1; bool bVar2; uchar uVar3; int iVar4; long lVar5; byte bVar6; uint *in_RCX; uint *extraout_RDX; int7 in_register_00000031; Block *pBVar7; uint uVar8; int4 in_register_0000003c; Cache *this; Cache *pCVar9; ulong uVar10; uint uVar11; uVar3 = (uchar)param_3; pCVar9 = (Cache *)CONCAT44(in_register_0000003c,param_1); while( true ) { this = pCVar9; *(int *)(this + 0x18) = *(int *)(this + 0x18) + 1; *(int *)(this + 4) = *(int *)(this + 4) + 1; uVar11 = (uint)CONCAT71(in_register_00000031,param_2); iVar4 = getBlockId(this,uVar11); if (iVar4 != -1) { uVar8 = *(uint *)(this + 0x34); bVar6 = 0xff; if (uVar8 != 0) { bVar6 = 0; if ((uVar8 != 1) && (bVar6 = 0, 1 < uVar8)) { bVar6 = 0; do { bVar6 = bVar6 + 1; bVar2 = 3 < uVar8; uVar8 = uVar8 >> 1; } while (bVar2); } } *(int *)(this + 8) = *(int *)(this + 8) + 1; *(ulong *)(this + 0x10) = *(long *)(this + 0x10) + (ulong)*(uint *)(this + 0x40); lVar1 = *(long *)(this + 0x48); lVar5 = (long)iVar4 * 0x30; *(int1 *)(lVar1 + 1 + lVar5) = 1; *(int4 *)(lVar1 + 0x10 + lVar5) = *(int4 *)(this + 0x18); *(uchar *)(*(long *)(lVar1 + 0x18 + lVar5) + (ulong)(~(-1 << (bVar6 & 0x1f)) & uVar11)) = uVar3; if (this[0x1c] == (Cache)0x0) { writeBlockToLowerLevel(this,(Block *)(lVar5 + *(long *)(this + 0x48))); *(ulong *)(this + 0x10) = *(long *)(this + 0x10) + (ulong)*(uint *)(this + 0x44); } if (in_RCX != (uint *)0x0) { *in_RCX = *(uint *)(this + 0x40); } return; } *(int *)(this + 0xc) = *(int *)(this + 0xc) + 1; *(ulong *)(this + 0x10) = *(long *)(this + 0x10) + (ulong)*(uint *)(this + 0x44); if (this[0x1d] == (Cache)0x1) break; in_RCX = (uint *)0x0; pCVar9 = *(Cache **)(this + 0x28); if (*(Cache **)(this + 0x28) == (Cache *)0x0) { MemoryManager::setByteNoCache(*(MemoryManager **)(this + 0x20),uVar11,uVar3); return; } } loadBlockFromLowerLevel(this,uVar11,in_RCX); pBVar7 = (Block *)(CONCAT71(in_register_00000031,param_2) & 0xffffffff); pCVar9 = this; iVar4 = getBlockId(this,uVar11); if (iVar4 != -1) { uVar8 = *(uint *)(this + 0x34); bVar6 = 0xff; if (uVar8 != 0) { bVar6 = 0; if ((uVar8 != 1) && (bVar6 = 0, 1 < uVar8)) { bVar6 = 0; do { bVar6 = bVar6 + 1; bVar2 = 3 < uVar8; uVar8 = uVar8 >> 1; } while (bVar2); } } lVar1 = *(long *)(this + 0x48); lVar5 = (long)iVar4 * 0x30; *(int1 *)(lVar1 + 1 + lVar5) = 1; *(int4 *)(lVar1 + 0x10 + lVar5) = *(int4 *)(this + 0x18); *(uchar *)(*(long *)(lVar1 + 0x18 + lVar5) + (ulong)(~(-1 << (bVar6 & 0x1f)) & uVar11)) = uVar3; return; } setByte((uint)pCVar9,(uchar)pBVar7,extraout_RDX); iVar4 = getAddr(pCVar9,pBVar7); if (*(long *)(pCVar9 + 0x28) == 0) { if (*(int *)(pBVar7 + 0xc) != 0) { uVar10 = 0; do { MemoryManager::setByteNoCache (*(MemoryManager **)(pCVar9 + 0x20),iVar4 + (int)uVar10, *(uchar *)(*(long *)(pBVar7 + 0x18) + uVar10)); uVar10 = uVar10 + 1; } while (uVar10 < *(uint *)(pBVar7 + 0xc)); } } else if (*(int *)(pBVar7 + 0xc) != 0) { uVar10 = 0; do { setByte((uint)*(int8 *)(pCVar9 + 0x28),(char)iVar4 + (char)uVar10, (uint *)(ulong)*(byte *)(*(long *)(pBVar7 + 0x18) + uVar10)); uVar10 = uVar10 + 1; } while (uVar10 < *(uint *)(pBVar7 + 0xc)); } return; }
60,390
Cache::setByte(unsigned int, unsigned char, unsigned int*)
EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/src/Cache.cpp
void Cache::setByte(uint32_t addr, uint8_t val, uint32_t *cycles) { this->referenceCounter++; this->statistics.numWrite++; // If in cache, write to it directly int blockId; if ((blockId = this->getBlockId(addr)) != -1) { uint32_t offset = this->getOffset(addr); this->statistics.numHit++; this->statistics.totalCycles += this->policy.hitLatency; this->blocks[blockId].modified = true; this->blocks[blockId].lastReference = this->referenceCounter; this->blocks[blockId].data[offset] = val; if (!this->writeBack) { this->writeBlockToLowerLevel(this->blocks[blockId]); this->statistics.totalCycles += this->policy.missLatency; } if (cycles) *cycles = this->policy.hitLatency; return; } // Else, load the data from cache // TODO: implement bypassing this->statistics.numMiss++; this->statistics.totalCycles += this->policy.missLatency; if (this->writeAllocate) { this->loadBlockFromLowerLevel(addr, cycles); if ((blockId = this->getBlockId(addr)) != -1) { uint32_t offset = this->getOffset(addr); this->blocks[blockId].modified = true; this->blocks[blockId].lastReference = this->referenceCounter; this->blocks[blockId].data[offset] = val; return; } else { fprintf(stderr, "Error: data not in top level cache!\n"); exit(-1); } } else { if (this->lowerCache == nullptr) { this->memory->setByteNoCache(addr, val); } else { this->lowerCache->setByte(addr, val); } } }
O3
cpp
Cache::setByte(unsigned int, unsigned char, unsigned int*): pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rcx, %r15 movl %edx, %ebp movl %esi, %r14d movq %rdi, %rbx incl 0x18(%rdi) incl 0x4(%rdi) movl %r14d, %esi callq 0x135b0 cmpl $-0x1, %eax jne 0x13a34 incl 0xc(%rbx) movl 0x44(%rbx), %eax addq %rax, 0x10(%rbx) cmpb $0x1, 0x1d(%rbx) je 0x13ab3 movq 0x28(%rbx), %rdi movl $0x0, %r15d testq %rdi, %rdi jne 0x139e1 movq 0x20(%rbx), %rdi movzbl %bpl, %edx movl %r14d, %esi addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp 0xeb9a movl 0x34(%rbx), %esi movl $0xffffffff, %edx # imm = 0xFFFFFFFF movl $0xffffffff, %ecx # imm = 0xFFFFFFFF testl %esi, %esi je 0x13a59 xorl %ecx, %ecx cmpl $0x1, %esi je 0x13a59 movl %esi, %edi shrl %edi incl %ecx cmpl $0x3, %esi movl %edi, %esi ja 0x13a4e shll %cl, %edx notl %edx incl 0x8(%rbx) movl 0x40(%rbx), %ecx addq %rcx, 0x10(%rbx) andl %r14d, %edx cltq movq 0x48(%rbx), %rcx leaq (%rax,%rax,2), %rsi shlq $0x4, %rsi movb $0x1, 0x1(%rcx,%rsi) movl 0x18(%rbx), %eax movl %eax, 0x10(%rcx,%rsi) movq 0x18(%rcx,%rsi), %rax movb %bpl, (%rax,%rdx) cmpb $0x0, 0x1c(%rbx) jne 0x13aa6 addq 0x48(%rbx), %rsi movq %rbx, %rdi callq 0x13b30 movl 0x44(%rbx), %eax addq %rax, 0x10(%rbx) testq %r15, %r15 je 0x13b20 movl 0x40(%rbx), %eax movl %eax, (%r15) jmp 0x13b20 movq %rbx, %rdi movl %r14d, %esi movq %r15, %rdx callq 0x13804 movq %rbx, %rdi movl %r14d, %esi callq 0x135b0 cmpl $-0x1, %eax je 0x13b2b movl 0x34(%rbx), %esi movl $0xffffffff, %edx # imm = 0xFFFFFFFF movl $0xffffffff, %ecx # imm = 0xFFFFFFFF testl %esi, %esi je 0x13af6 xorl %ecx, %ecx cmpl $0x1, %esi je 0x13af6 movl %esi, %edi shrl %edi incl %ecx cmpl $0x3, %esi movl %edi, %esi ja 0x13aeb shll %cl, %edx notl %edx andl %r14d, %edx cltq movq 0x48(%rbx), %rcx leaq (%rax,%rax,2), %rax shlq $0x4, %rax movb $0x1, 0x1(%rcx,%rax) movl 0x18(%rbx), %esi movl %esi, 0x10(%rcx,%rax) movq 0x18(%rcx,%rax), %rax movb %bpl, (%rax,%rdx) addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq callq 0xb5c2
_ZN5Cache7setByteEjhPj: push rbp push r15 push r14 push rbx push rax mov r15, rcx mov ebp, edx mov r14d, esi loc_139E1: mov rbx, rdi inc dword ptr [rdi+18h] inc dword ptr [rdi+4] mov esi, r14d; unsigned int call _ZN5Cache10getBlockIdEj; Cache::getBlockId(uint) cmp eax, 0FFFFFFFFh jnz short loc_13A34 inc dword ptr [rbx+0Ch] mov eax, [rbx+44h] add [rbx+10h], rax cmp byte ptr [rbx+1Dh], 1 jz loc_13AB3 mov rdi, [rbx+28h] mov r15d, 0 test rdi, rdi jnz short loc_139E1 mov rdi, [rbx+20h]; this movzx edx, bpl; unsigned __int8 mov esi, r14d; unsigned int add rsp, 8 pop rbx pop r14 pop r15 pop rbp jmp _ZN13MemoryManager14setByteNoCacheEjh; MemoryManager::setByteNoCache(uint,uchar) loc_13A34: mov esi, [rbx+34h] mov edx, 0FFFFFFFFh mov ecx, 0FFFFFFFFh test esi, esi jz short loc_13A59 xor ecx, ecx cmp esi, 1 jz short loc_13A59 mov edi, esi loc_13A4E: shr edi, 1 inc ecx cmp esi, 3 mov esi, edi ja short loc_13A4E loc_13A59: shl edx, cl not edx inc dword ptr [rbx+8] mov ecx, [rbx+40h] add [rbx+10h], rcx and edx, r14d cdqe mov rcx, [rbx+48h] lea rsi, [rax+rax*2] shl rsi, 4 mov byte ptr [rcx+rsi+1], 1 mov eax, [rbx+18h] mov [rcx+rsi+10h], eax mov rax, [rcx+rsi+18h] mov [rax+rdx], bpl cmp byte ptr [rbx+1Ch], 0 jnz short loc_13AA6 add rsi, [rbx+48h] mov rdi, rbx call _ZN5Cache22writeBlockToLowerLevelERNS_5BlockE; Cache::writeBlockToLowerLevel(Cache::Block &) mov eax, [rbx+44h] add [rbx+10h], rax loc_13AA6: test r15, r15 jz short loc_13B20 mov eax, [rbx+40h] mov [r15], eax jmp short loc_13B20 loc_13AB3: mov rdi, rbx; this mov esi, r14d; unsigned int mov rdx, r15; unsigned int * call _ZN5Cache23loadBlockFromLowerLevelEjPj; Cache::loadBlockFromLowerLevel(uint,uint *) mov rdi, rbx; this mov esi, r14d; unsigned int call _ZN5Cache10getBlockIdEj; Cache::getBlockId(uint) cmp eax, 0FFFFFFFFh jz short loc_13B2B mov esi, [rbx+34h] mov edx, 0FFFFFFFFh mov ecx, 0FFFFFFFFh test esi, esi jz short loc_13AF6 xor ecx, ecx cmp esi, 1 jz short loc_13AF6 mov edi, esi loc_13AEB: shr edi, 1 inc ecx cmp esi, 3 mov esi, edi ja short loc_13AEB loc_13AF6: shl edx, cl not edx and edx, r14d cdqe mov rcx, [rbx+48h] lea rax, [rax+rax*2] shl rax, 4 mov byte ptr [rcx+rax+1], 1 mov esi, [rbx+18h] mov [rcx+rax+10h], esi mov rax, [rcx+rax+18h] mov [rax+rdx], bpl loc_13B20: add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn loc_13B2B: call _ZN5Cache7setByteEjhPj_cold_1; Cache::setByte(uint,uchar,uint *) [clone]
char Cache::setByte( Cache *this, unsigned int a2, unsigned __int8 a3, unsigned int *a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, double a9, double a10, __m128 a11, __m128 a12) { Cache *v15; // rbx int BlockId; // eax long long v17; // rcx long long v18; // r8 long long v19; // r9 __m128 v20; // xmm4 __m128 v21; // xmm5 long long v22; // rax unsigned int v23; // esi char v24; // cl unsigned int v25; // edi bool v26; // cc long long v27; // rdx long long v28; // rcx long long v29; // rsi int v30; // eax unsigned int v31; // esi char v32; // cl unsigned int v33; // edi long long v34; // rdx long long v35; // rcx long long v36; // rax while ( 1 ) { v15 = this; ++*((_DWORD *)this + 6); ++*((_DWORD *)this + 1); BlockId = Cache::getBlockId(this, a2); if ( BlockId != -1 ) break; ++*((_DWORD *)this + 3); *((_QWORD *)this + 2) += *((unsigned int *)this + 17); if ( *((_BYTE *)this + 29) == 1 ) { Cache::loadBlockFromLowerLevel( (MemoryManager **)this, a2, a4, *(double *)a5.m128_u64, a6, a7, a8, *(double *)v20.m128_u64, *(double *)v21.m128_u64, a11, a12); v30 = Cache::getBlockId(this, a2); if ( v30 == -1 ) Cache::setByte(this); v31 = *((_DWORD *)this + 13); v32 = -1; if ( v31 ) { v32 = 0; if ( v31 != 1 ) { v33 = *((_DWORD *)this + 13); do { v33 >>= 1; ++v32; v26 = v31 <= 3; v31 = v33; } while ( !v26 ); } } v34 = a2 & ~(-1 << v32); v35 = *((_QWORD *)v15 + 9); v36 = 48LL * v30; *(_BYTE *)(v35 + v36 + 1) = 1; *(_DWORD *)(v35 + v36 + 16) = *((_DWORD *)v15 + 6); v22 = *(_QWORD *)(v35 + v36 + 24); *(_BYTE *)(v22 + v34) = a3; return v22; } this = (Cache *)*((_QWORD *)this + 5); a4 = 0LL; if ( !this ) { LOBYTE(v22) = MemoryManager::setByteNoCache( *((MemoryManager **)v15 + 4), a2, a3, v17, v18, v19, a5, a6, a7, a8, v20, v21, a11, a12); return v22; } } v23 = *((_DWORD *)this + 13); v24 = -1; if ( v23 ) { v24 = 0; if ( v23 != 1 ) { v25 = *((_DWORD *)this + 13); do { v25 >>= 1; ++v24; v26 = v23 <= 3; v23 = v25; } while ( !v26 ); } } ++*((_DWORD *)v15 + 2); *((_QWORD *)v15 + 2) += *((unsigned int *)v15 + 16); v27 = a2 & ~(-1 << v24); v28 = *((_QWORD *)v15 + 9); v29 = 48LL * BlockId; *(_BYTE *)(v28 + v29 + 1) = 1; *(_DWORD *)(v28 + v29 + 16) = *((_DWORD *)v15 + 6); v22 = *(_QWORD *)(v28 + v29 + 24); *(_BYTE *)(v22 + v27) = a3; if ( !*((_BYTE *)v15 + 28) ) { Cache::writeBlockToLowerLevel(v15, *((_QWORD *)v15 + 9) + v29); v22 = *((unsigned int *)v15 + 17); *((_QWORD *)v15 + 2) += v22; } if ( a4 ) { LODWORD(v22) = *((_DWORD *)v15 + 16); *a4 = v22; } return v22; }
setByte: PUSH RBP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV R15,RCX MOV EBP,EDX MOV R14D,ESI LAB_001139e1: MOV RBX,RDI INC dword ptr [RDI + 0x18] INC dword ptr [RDI + 0x4] MOV ESI,R14D CALL 0x001135b0 CMP EAX,-0x1 JNZ 0x00113a34 INC dword ptr [RBX + 0xc] MOV EAX,dword ptr [RBX + 0x44] ADD qword ptr [RBX + 0x10],RAX CMP byte ptr [RBX + 0x1d],0x1 JZ 0x00113ab3 MOV RDI,qword ptr [RBX + 0x28] MOV R15D,0x0 TEST RDI,RDI JNZ 0x001139e1 MOV RDI,qword ptr [RBX + 0x20] MOVZX EDX,BPL MOV ESI,R14D ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP JMP 0x0010eb9a LAB_00113a34: MOV ESI,dword ptr [RBX + 0x34] MOV EDX,0xffffffff MOV ECX,0xffffffff TEST ESI,ESI JZ 0x00113a59 XOR ECX,ECX CMP ESI,0x1 JZ 0x00113a59 MOV EDI,ESI LAB_00113a4e: SHR EDI,0x1 INC ECX CMP ESI,0x3 MOV ESI,EDI JA 0x00113a4e LAB_00113a59: SHL EDX,CL NOT EDX INC dword ptr [RBX + 0x8] MOV ECX,dword ptr [RBX + 0x40] ADD qword ptr [RBX + 0x10],RCX AND EDX,R14D CDQE MOV RCX,qword ptr [RBX + 0x48] LEA RSI,[RAX + RAX*0x2] SHL RSI,0x4 MOV byte ptr [RCX + RSI*0x1 + 0x1],0x1 MOV EAX,dword ptr [RBX + 0x18] MOV dword ptr [RCX + RSI*0x1 + 0x10],EAX MOV RAX,qword ptr [RCX + RSI*0x1 + 0x18] MOV byte ptr [RAX + RDX*0x1],BPL CMP byte ptr [RBX + 0x1c],0x0 JNZ 0x00113aa6 ADD RSI,qword ptr [RBX + 0x48] MOV RDI,RBX CALL 0x00113b30 MOV EAX,dword ptr [RBX + 0x44] ADD qword ptr [RBX + 0x10],RAX LAB_00113aa6: TEST R15,R15 JZ 0x00113b20 MOV EAX,dword ptr [RBX + 0x40] MOV dword ptr [R15],EAX JMP 0x00113b20 LAB_00113ab3: MOV RDI,RBX MOV ESI,R14D MOV RDX,R15 CALL 0x00113804 MOV RDI,RBX MOV ESI,R14D CALL 0x001135b0 CMP EAX,-0x1 JZ 0x00113b2b MOV ESI,dword ptr [RBX + 0x34] MOV EDX,0xffffffff MOV ECX,0xffffffff TEST ESI,ESI JZ 0x00113af6 XOR ECX,ECX CMP ESI,0x1 JZ 0x00113af6 MOV EDI,ESI LAB_00113aeb: SHR EDI,0x1 INC ECX CMP ESI,0x3 MOV ESI,EDI JA 0x00113aeb LAB_00113af6: SHL EDX,CL NOT EDX AND EDX,R14D CDQE MOV RCX,qword ptr [RBX + 0x48] LEA RAX,[RAX + RAX*0x2] SHL RAX,0x4 MOV byte ptr [RCX + RAX*0x1 + 0x1],0x1 MOV ESI,dword ptr [RBX + 0x18] MOV dword ptr [RCX + RAX*0x1 + 0x10],ESI MOV RAX,qword ptr [RCX + RAX*0x1 + 0x18] MOV byte ptr [RAX + RDX*0x1],BPL LAB_00113b20: ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET LAB_00113b2b: CALL 0x0010b5c2
/* Cache::setByte(unsigned int, unsigned char, unsigned int*) */ void Cache::setByte(uint param_1,uchar param_2,uint *param_3) { long lVar1; bool bVar2; uchar uVar3; int iVar4; long lVar5; byte bVar6; byte bVar7; uint *in_RCX; uint *extraout_RDX; int7 in_register_00000031; Block *pBVar8; uint uVar9; int4 in_register_0000003c; Cache *this; Cache *pCVar10; ulong uVar11; uint uVar12; uVar3 = (uchar)param_3; pCVar10 = (Cache *)CONCAT44(in_register_0000003c,param_1); while( true ) { this = pCVar10; *(int *)(this + 0x18) = *(int *)(this + 0x18) + 1; *(int *)(this + 4) = *(int *)(this + 4) + 1; uVar12 = (uint)CONCAT71(in_register_00000031,param_2); iVar4 = getBlockId(this,uVar12); if (iVar4 != -1) { uVar9 = *(uint *)(this + 0x34); bVar6 = 0xff; if (uVar9 != 0) { bVar7 = 0; bVar6 = 0; if (uVar9 != 1) { do { bVar6 = bVar7 + 1; bVar2 = 3 < uVar9; uVar9 = uVar9 >> 1; bVar7 = bVar6; } while (bVar2); } } *(int *)(this + 8) = *(int *)(this + 8) + 1; *(ulong *)(this + 0x10) = *(long *)(this + 0x10) + (ulong)*(uint *)(this + 0x40); lVar1 = *(long *)(this + 0x48); lVar5 = (long)iVar4 * 0x30; *(int1 *)(lVar1 + 1 + lVar5) = 1; *(int4 *)(lVar1 + 0x10 + lVar5) = *(int4 *)(this + 0x18); *(uchar *)(*(long *)(lVar1 + 0x18 + lVar5) + (ulong)(~(-1 << (bVar6 & 0x1f)) & uVar12)) = uVar3; if (this[0x1c] == (Cache)0x0) { writeBlockToLowerLevel(this,(Block *)(lVar5 + *(long *)(this + 0x48))); *(ulong *)(this + 0x10) = *(long *)(this + 0x10) + (ulong)*(uint *)(this + 0x44); } if (in_RCX != (uint *)0x0) { *in_RCX = *(uint *)(this + 0x40); } return; } *(int *)(this + 0xc) = *(int *)(this + 0xc) + 1; *(ulong *)(this + 0x10) = *(long *)(this + 0x10) + (ulong)*(uint *)(this + 0x44); if (this[0x1d] == (Cache)0x1) break; in_RCX = (uint *)0x0; pCVar10 = *(Cache **)(this + 0x28); if (*(Cache **)(this + 0x28) == (Cache *)0x0) { MemoryManager::setByteNoCache(*(MemoryManager **)(this + 0x20),uVar12,uVar3); return; } } loadBlockFromLowerLevel(this,uVar12,in_RCX); pBVar8 = (Block *)(CONCAT71(in_register_00000031,param_2) & 0xffffffff); pCVar10 = this; iVar4 = getBlockId(this,uVar12); if (iVar4 != -1) { uVar9 = *(uint *)(this + 0x34); bVar6 = 0xff; if (uVar9 != 0) { bVar7 = 0; bVar6 = 0; if (uVar9 != 1) { do { bVar6 = bVar7 + 1; bVar2 = 3 < uVar9; uVar9 = uVar9 >> 1; bVar7 = bVar6; } while (bVar2); } } lVar1 = *(long *)(this + 0x48); lVar5 = (long)iVar4 * 0x30; *(int1 *)(lVar1 + 1 + lVar5) = 1; *(int4 *)(lVar1 + 0x10 + lVar5) = *(int4 *)(this + 0x18); *(uchar *)(*(long *)(lVar1 + 0x18 + lVar5) + (ulong)(~(-1 << (bVar6 & 0x1f)) & uVar12)) = uVar3; return; } setByte((uint)pCVar10,(uchar)pBVar8,extraout_RDX); iVar4 = getAddr(pCVar10,pBVar8); if (*(long *)(pCVar10 + 0x28) == 0) { if (*(int *)(pBVar8 + 0xc) != 0) { uVar11 = 0; do { MemoryManager::setByteNoCache (*(MemoryManager **)(pCVar10 + 0x20),iVar4 + (int)uVar11, *(uchar *)(*(long *)(pBVar8 + 0x18) + uVar11)); uVar11 = uVar11 + 1; } while (uVar11 < *(uint *)(pBVar8 + 0xc)); } } else if (*(int *)(pBVar8 + 0xc) != 0) { uVar11 = 0; do { setByte((uint)*(int8 *)(pCVar10 + 0x28),(char)iVar4 + (char)uVar11, (uint *)(ulong)*(byte *)(*(long *)(pBVar8 + 0x18) + uVar11)); uVar11 = uVar11 + 1; } while (uVar11 < *(uint *)(pBVar8 + 0xc)); } return; }
60,391
init_slave_io_cache
eloqsql/mysys/mf_iocache.c
int init_slave_io_cache(IO_CACHE *master, IO_CACHE *slave) { uchar *slave_buf; DBUG_ASSERT(master->type == READ_CACHE); DBUG_ASSERT(!master->share); DBUG_ASSERT(master->alloced_buffer); if (!(slave_buf= (uchar*)my_malloc(PSI_INSTRUMENT_ME, master->alloced_buffer, MYF(0)))) { return 1; } memcpy(slave, master, sizeof(IO_CACHE)); slave->buffer= slave_buf; memcpy(slave->buffer, master->buffer, master->alloced_buffer); slave->read_pos= slave->buffer + (master->read_pos - master->buffer); slave->read_end= slave->buffer + (master->read_end - master->buffer); if (master->next_file_user) { IO_CACHE *p; for (p= master->next_file_user; p->next_file_user !=master; p= p->next_file_user) {} p->next_file_user= slave; slave->next_file_user= master; } else { slave->next_file_user= master; master->next_file_user= slave; } return 0; }
O3
c
init_slave_io_cache: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 movq 0x100(%rdi), %rsi xorl %edi, %edi xorl %edx, %edx callq 0x84505 testq %rax, %rax je 0x7b709 movq %rax, %r15 movl $0x108, %edx # imm = 0x108 movq %rbx, %rdi movq %r14, %rsi callq 0x3a0c0 movq %r15, 0x20(%rbx) movq 0x20(%r14), %rsi movq 0x100(%r14), %rdx movq %r15, %rdi callq 0x3a0c0 movq 0x20(%rbx), %rax movq 0x10(%r14), %rcx subq 0x20(%r14), %rcx addq %rax, %rcx movq %rcx, 0x10(%rbx) movq 0x18(%r14), %rcx subq 0x20(%r14), %rcx addq %rax, %rcx movq %rcx, 0x18(%rbx) movq 0xd8(%r14), %rax testq %rax, %rax je 0x7b710 movq %rax, %rcx movq 0xd8(%rax), %rax cmpq %r14, %rax jne 0x7b6ea movq %rbx, 0xd8(%rcx) movq %r14, 0xd8(%rbx) jmp 0x7b71e movl $0x1, %eax jmp 0x7b720 movq %r14, 0xd8(%rbx) movq %rbx, 0xd8(%r14) xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
init_slave_io_cache: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov rbx, rsi mov r14, rdi mov rsi, [rdi+100h] xor edi, edi xor edx, edx call my_malloc test rax, rax jz short loc_7B709 mov r15, rax mov edx, 108h mov rdi, rbx mov rsi, r14 call _memcpy mov [rbx+20h], r15 mov rsi, [r14+20h] mov rdx, [r14+100h] mov rdi, r15 call _memcpy mov rax, [rbx+20h] mov rcx, [r14+10h] sub rcx, [r14+20h] add rcx, rax mov [rbx+10h], rcx mov rcx, [r14+18h] sub rcx, [r14+20h] add rcx, rax mov [rbx+18h], rcx mov rax, [r14+0D8h] test rax, rax jz short loc_7B710 loc_7B6EA: mov rcx, rax mov rax, [rax+0D8h] cmp rax, r14 jnz short loc_7B6EA mov [rcx+0D8h], rbx mov [rbx+0D8h], r14 jmp short loc_7B71E loc_7B709: mov eax, 1 jmp short loc_7B720 loc_7B710: mov [rbx+0D8h], r14 mov [r14+0D8h], rbx loc_7B71E: xor eax, eax loc_7B720: add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long init_slave_io_cache(_QWORD *a1, _QWORD *a2) { long long v2; // rax long long v3; // rcx long long v4; // r8 long long v5; // r9 long long v6; // r15 long long v7; // rcx long long v8; // r8 long long v9; // r9 long long v10; // rax _QWORD *v11; // rax _QWORD *v12; // rcx v2 = my_malloc(0LL, a1[32]); if ( !v2 ) return 1LL; v6 = v2; memcpy(a2, a1, 264LL, v3, v4, v5); a2[4] = v6; memcpy(v6, a1[4], a1[32], v7, v8, v9); v10 = a2[4]; a2[2] = v10 + a1[2] - a1[4]; a2[3] = v10 + a1[3] - a1[4]; v11 = (_QWORD *)a1[27]; if ( v11 ) { do { v12 = v11; v11 = (_QWORD *)v11[27]; } while ( v11 != a1 ); v12[27] = a2; a2[27] = a1; } else { a2[27] = a1; a1[27] = a2; } return 0LL; }
init_slave_io_cache: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RSI MOV R14,RDI MOV RSI,qword ptr [RDI + 0x100] XOR EDI,EDI XOR EDX,EDX CALL 0x00184505 TEST RAX,RAX JZ 0x0017b709 MOV R15,RAX MOV EDX,0x108 MOV RDI,RBX MOV RSI,R14 CALL 0x0013a0c0 MOV qword ptr [RBX + 0x20],R15 MOV RSI,qword ptr [R14 + 0x20] MOV RDX,qword ptr [R14 + 0x100] MOV RDI,R15 CALL 0x0013a0c0 MOV RAX,qword ptr [RBX + 0x20] MOV RCX,qword ptr [R14 + 0x10] SUB RCX,qword ptr [R14 + 0x20] ADD RCX,RAX MOV qword ptr [RBX + 0x10],RCX MOV RCX,qword ptr [R14 + 0x18] SUB RCX,qword ptr [R14 + 0x20] ADD RCX,RAX MOV qword ptr [RBX + 0x18],RCX MOV RAX,qword ptr [R14 + 0xd8] TEST RAX,RAX JZ 0x0017b710 LAB_0017b6ea: MOV RCX,RAX MOV RAX,qword ptr [RAX + 0xd8] CMP RAX,R14 JNZ 0x0017b6ea MOV qword ptr [RCX + 0xd8],RBX MOV qword ptr [RBX + 0xd8],R14 JMP 0x0017b71e LAB_0017b709: MOV EAX,0x1 JMP 0x0017b720 LAB_0017b710: MOV qword ptr [RBX + 0xd8],R14 MOV qword ptr [R14 + 0xd8],RBX LAB_0017b71e: XOR EAX,EAX LAB_0017b720: ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
int8 init_slave_io_cache(void *param_1,void *param_2) { void *pvVar1; void *pvVar2; int8 uVar3; pvVar1 = (void *)my_malloc(0,*(int8 *)((long)param_1 + 0x100),0); if (pvVar1 == (void *)0x0) { uVar3 = 1; } else { memcpy(param_2,param_1,0x108); *(void **)((long)param_2 + 0x20) = pvVar1; memcpy(pvVar1,*(void **)((long)param_1 + 0x20),*(size_t *)((long)param_1 + 0x100)); *(long *)((long)param_2 + 0x10) = (*(long *)((long)param_1 + 0x10) - *(long *)((long)param_1 + 0x20)) + *(long *)((long)param_2 + 0x20); *(long *)((long)param_2 + 0x18) = (*(long *)((long)param_1 + 0x18) - *(long *)((long)param_1 + 0x20)) + *(long *)((long)param_2 + 0x20); pvVar1 = *(void **)((long)param_1 + 0xd8); if (*(void **)((long)param_1 + 0xd8) == (void *)0x0) { *(void **)((long)param_2 + 0xd8) = param_1; *(void **)((long)param_1 + 0xd8) = param_2; } else { do { pvVar2 = pvVar1; pvVar1 = *(void **)((long)pvVar2 + 0xd8); } while (pvVar1 != param_1); *(void **)((long)pvVar2 + 0xd8) = param_2; *(void **)((long)param_2 + 0xd8) = param_1; } uVar3 = 0; } return uVar3; }
60,392
my_wc_mb_sjis
eloqsql/strings/ctype-sjis.c
static int my_wc_mb_sjis(CHARSET_INFO *cs __attribute__((unused)), my_wc_t wc, uchar *s, uchar *e) { int code; if ((int) wc < 0x80) /* ASCII: [U+0000..U+007F] -> [00-7F] */ { /* This branch is for performance purposes on ASCII range, to avoid using unicode_to_cp932[]: about 10% improvement. */ if (wc == 0x5c) { /* Special case when converting from Unicode to SJIS: U+005C -> [81][5F] FULL WIDTH REVERSE SOLIDUS */ code= MB2(0x815F); goto mb; } if (s >= e) return MY_CS_TOOSMALL; s[0]= (uchar) wc; /* ASCII */ return 1; } if (wc > 0xFFFF || !(code= unicode_to_sjis[wc])) /* Bad Unicode code point */ return MY_CS_ILUNI; if (code <= 0xFF) { /* JIS-X-0201 HALF WIDTH KATAKANA [U+FF61..U+FF9F] -> [A1..DF] */ if (s >= e) return MY_CS_TOOSMALL; s[0]= code; return 1; } mb: if (s + 2 > e) return MY_CS_TOOSMALL2; MY_PUT_MB2(s, code); /* JIS-X-0208 */ return 2; }
O3
c
my_wc_mb_sjis: pushq %rbp movq %rsp, %rbp cmpl $0x7f, %esi jg 0x4000e movl $0x815f, %edi # imm = 0x815F cmpq $0x5c, %rsi je 0x40044 movl $0xffffff9b, %eax # imm = 0xFFFFFF9B cmpq %rcx, %rdx jae 0x4005e movb %sil, (%rdx) jmp 0x4003d xorl %eax, %eax cmpq $0xffff, %rsi # imm = 0xFFFF ja 0x4005e leaq 0x189710(%rip), %rdi # 0x1c9730 movzwl (%rdi,%rsi,2), %edi testl %edi, %edi je 0x4005e cmpl $0xff, %edi ja 0x40044 movl $0xffffff9b, %eax # imm = 0xFFFFFF9B cmpq %rcx, %rdx jae 0x4005e movb %dil, (%rdx) movl $0x1, %eax jmp 0x4005e leaq 0x2(%rdx), %rsi movl $0xffffff9a, %eax # imm = 0xFFFFFF9A cmpq %rcx, %rsi ja 0x4005e rolw $0x8, %di movw %di, (%rdx) movl $0x2, %eax popq %rbp retq
my_wc_mb_sjis: push rbp mov rbp, rsp cmp esi, 7Fh jg short loc_4000E mov edi, 815Fh cmp rsi, 5Ch ; '\' jz short loc_40044 mov eax, 0FFFFFF9Bh cmp rdx, rcx jnb short loc_4005E mov [rdx], sil jmp short loc_4003D loc_4000E: xor eax, eax cmp rsi, 0FFFFh ja short loc_4005E lea rdi, unicode_to_sjis movzx edi, word ptr [rdi+rsi*2] test edi, edi jz short loc_4005E cmp edi, 0FFh ja short loc_40044 mov eax, 0FFFFFF9Bh cmp rdx, rcx jnb short loc_4005E mov [rdx], dil loc_4003D: mov eax, 1 jmp short loc_4005E loc_40044: lea rsi, [rdx+2] mov eax, 0FFFFFF9Ah cmp rsi, rcx ja short loc_4005E rol di, 8 mov [rdx], di mov eax, 2 loc_4005E: pop rbp retn
long long my_wc_mb_sjis(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4) { unsigned int v4; // edi long long result; // rax if ( (int)a2 <= 127 ) { LOWORD(v4) = -32417; if ( a2 != 92 ) { result = 4294967195LL; if ( (unsigned long long)a3 >= a4 ) return result; *a3 = a2; return 1LL; } LABEL_11: result = 4294967194LL; if ( (unsigned long long)(a3 + 2) <= a4 ) { *(_WORD *)a3 = __ROL2__(v4, 8); return 2LL; } return result; } result = 0LL; if ( a2 <= 0xFFFF ) { v4 = unicode_to_sjis[a2]; if ( unicode_to_sjis[a2] ) { if ( v4 <= 0xFF ) { result = 4294967195LL; if ( (unsigned long long)a3 >= a4 ) return result; *a3 = v4; return 1LL; } goto LABEL_11; } } return result; }
my_wc_mb_sjis: PUSH RBP MOV RBP,RSP CMP ESI,0x7f JG 0x0014000e MOV EDI,0x815f CMP RSI,0x5c JZ 0x00140044 MOV EAX,0xffffff9b CMP RDX,RCX JNC 0x0014005e MOV byte ptr [RDX],SIL JMP 0x0014003d LAB_0014000e: XOR EAX,EAX CMP RSI,0xffff JA 0x0014005e LEA RDI,[0x2c9730] MOVZX EDI,word ptr [RDI + RSI*0x2] TEST EDI,EDI JZ 0x0014005e CMP EDI,0xff JA 0x00140044 MOV EAX,0xffffff9b CMP RDX,RCX JNC 0x0014005e MOV byte ptr [RDX],DIL LAB_0014003d: MOV EAX,0x1 JMP 0x0014005e LAB_00140044: LEA RSI,[RDX + 0x2] MOV EAX,0xffffff9a CMP RSI,RCX JA 0x0014005e ROL DI,0x8 MOV word ptr [RDX],DI MOV EAX,0x2 LAB_0014005e: POP RBP RET
int8 my_wc_mb_sjis(int8 param_1,ulong param_2,ushort *param_3,ushort *param_4) { ushort uVar1; if ((int)param_2 < 0x80) { uVar1 = 0x815f; if (param_2 == 0x5c) { LAB_00140044: if (param_4 < param_3 + 1) { return 0xffffff9a; } *param_3 = uVar1 << 8 | uVar1 >> 8; return 2; } if (param_4 <= param_3) { return 0xffffff9b; } *(char *)param_3 = (char)param_2; } else { if (0xffff < param_2) { return 0; } uVar1 = *(ushort *)(unicode_to_sjis + param_2 * 2); if (uVar1 == 0) { return 0; } if (0xff < uVar1) goto LAB_00140044; if (param_4 <= param_3) { return 0xffffff9b; } *(char *)param_3 = (char)uVar1; } return 1; }
60,393
ftxui::Screen::PixelAt(int, int)
Andrewchistyakov[P]flashcards_lyc/build_O1/_deps/ftxui-src/src/ftxui/screen/screen.cpp
Pixel& Screen::PixelAt(int x, int y) { return stencil.Contain(x, y) ? pixels_[y][x] : dev_null_pixel(); }
O1
cpp
ftxui::Screen::PixelAt(int, int): pushq %rbp pushq %r14 pushq %rbx movl %edx, %ebp movl %esi, %ebx movq %rdi, %r14 callq 0x39ccc testb %al, %al je 0x3a552 movslq %ebp, %rax movq 0x18(%r14), %rcx leaq (%rax,%rax,2), %rdx movslq %ebx, %rax leaq (%rax,%rax,2), %rax shlq $0x4, %rax addq (%rcx,%rdx,8), %rax jmp 0x3a55e callq 0x3a5b1 leaq 0x20e22(%rip), %rax # 0x5b380 popq %rbx popq %r14 popq %rbp retq nop
_ZN5ftxui6Screen7PixelAtEii: push rbp push r14 push rbx mov ebp, edx mov ebx, esi mov r14, rdi call _ZNK5ftxui3Box7ContainEii; ftxui::Box::Contain(int,int) test al, al jz short loc_3A552 movsxd rax, ebp mov rcx, [r14+18h] lea rdx, [rax+rax*2] movsxd rax, ebx lea rax, [rax+rax*2] shl rax, 4 add rax, [rcx+rdx*8] jmp short loc_3A55E loc_3A552: call _ZN5ftxui12_GLOBAL__N_114dev_null_pixelEv; ftxui::`anonymous namespace'::dev_null_pixel(void) lea rax, _ZZN5ftxui12_GLOBAL__N_114dev_null_pixelEvE5pixel; ftxui::`anonymous namespace'::dev_null_pixel(void)::pixel loc_3A55E: pop rbx pop r14 pop rbp retn
void * ftxui::Screen::PixelAt(ftxui::Screen *this, int a2, int a3) { if ( ftxui::Box::Contain(this, a2, a3) ) return (void *)(*(_QWORD *)(*((_QWORD *)this + 3) + 24LL * a3) + 48LL * a2); ftxui::`anonymous namespace'::dev_null_pixel(this); return &ftxui::`anonymous namespace'::dev_null_pixel(void)::pixel; }
PixelAt: PUSH RBP PUSH R14 PUSH RBX MOV EBP,EDX MOV EBX,ESI MOV R14,RDI CALL 0x00139ccc TEST AL,AL JZ 0x0013a552 MOVSXD RAX,EBP MOV RCX,qword ptr [R14 + 0x18] LEA RDX,[RAX + RAX*0x2] MOVSXD RAX,EBX LEA RAX,[RAX + RAX*0x2] SHL RAX,0x4 ADD RAX,qword ptr [RCX + RDX*0x8] JMP 0x0013a55e LAB_0013a552: CALL 0x0013a5b1 LEA RAX,[0x15b380] LAB_0013a55e: POP RBX POP R14 POP RBP RET
/* ftxui::Screen::PixelAt(int, int) */ int1 * __thiscall ftxui::Screen::PixelAt(Screen *this,int param_1,int param_2) { char cVar1; int1 *puVar2; cVar1 = Box::Contain((Box *)this,param_1,param_2); if (cVar1 == '\0') { (anonymous_namespace)::dev_null_pixel(); puVar2 = (anonymous_namespace)::dev_null_pixel()::pixel; } else { puVar2 = (int1 *) ((long)param_1 * 0x30 + *(long *)(*(long *)(this + 0x18) + (long)param_2 * 0x18)); } return puVar2; }
60,394
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::get_impl<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, 0>(nlohmann::json_abi_v3_11_3::detail::priority_tag<0u>) const
monkey531[P]llama/common/./json.hpp
const noexcept(noexcept( JSONSerializer<ValueType>::from_json(std::declval<const basic_json_t&>(), std::declval<ValueType&>()))) { auto ret = ValueType(); JSONSerializer<ValueType>::from_json(*this, ret); return ret; }
O3
cpp
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::get_impl<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, 0>(nlohmann::json_abi_v3_11_3::detail::priority_tag<0u>) const: pushq %r15 pushq %r14 pushq %rbx movq %rdi, %rbx leaq 0x10(%rdi), %r15 movq %r15, (%rdi) movq $0x0, 0x8(%rdi) movb $0x0, 0x10(%rdi) movq %rsi, %rdi movq %rbx, %rsi callq 0x3f9f7 movq %rbx, %rax popq %rbx popq %r14 popq %r15 retq movq %rax, %r14 movq (%rbx), %rdi cmpq %r15, %rdi je 0x3f9ef movq (%r15), %rsi incq %rsi callq 0x186a0 movq %r14, %rdi callq 0x18b90
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE: push r15 push r14 push rbx mov rbx, rdi lea r15, [rdi+10h] mov [rdi], r15 mov qword ptr [rdi+8], 0 mov byte ptr [rdi+10h], 0 mov rdi, rsi mov rsi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEEvRKT_RNSG_8string_tE; 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::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>::string_t &) mov rax, rbx pop rbx pop r14 pop r15 retn mov r14, rax mov rdi, [rbx]; void * cmp rdi, r15 jz short loc_3F9EF mov rsi, [r15] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_3F9EF: mov rdi, r14 call __Unwind_Resume
long long ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE( long long a1, long long a2) { *(_QWORD *)a1 = a1 + 16; *(_QWORD *)(a1 + 8) = 0LL; *(_BYTE *)(a1 + 16) = 0; 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::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( a2, a1); return a1; }
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RDI LEA R15,[RDI + 0x10] MOV qword ptr [RDI],R15 MOV qword ptr [RDI + 0x8],0x0 MOV byte ptr [RDI + 0x10],0x0 LAB_0013f9c5: MOV RDI,RSI MOV RSI,RBX CALL 0x0013f9f7 LAB_0013f9d0: MOV RAX,RBX POP RBX POP R14 POP R15 RET
string_t * _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE (string_t *param_1,basic_json *param_2) { *(string_t **)param_1 = param_1 + 0x10; *(int8 *)(param_1 + 8) = 0; param_1[0x10] = (string_t)0x0; /* try { // try from 0013f9c5 to 0013f9cf has its CatchHandler @ 0013f9d9 */ 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::string,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,param_1); return param_1; }
60,395
do_add
fabiosvm[P]rak/src/vm.c
static void do_add(RakVM *vm, RakChunk *chunk, uint32_t *ip, RakValue *slots, RakError *err) { rak_vm_add(vm, err); if (!rak_is_ok(err)) return; dispatch(vm, chunk, ip + 1, slots, err); }
O3
c
do_add: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %r8, %rbx movq %rcx, 0x10(%rsp) movq %rdx, %r15 movq %rsi, %r12 movq %rdi, %r13 movq 0x8(%rdi), %rax movq -0x10(%rax), %rdi movq -0x8(%rax), %rsi movq (%rax), %r14 movq 0x8(%rax), %xmm1 movq %xmm1, %rbp cmpl $0x4, %edi je 0x9496 cmpl $0x3, %edi je 0x943a cmpl $0x2, %edi jne 0x9515 cmpl $0x2, %r14d jne 0x9560 movq %rsi, %xmm0 addsd %xmm0, %xmm1 movsd %xmm1, 0x8(%rsp) callq 0x8235 movq 0x8(%r13), %rax movq $0x2, -0x10(%rax) movsd 0x8(%rsp), %xmm0 movsd %xmm0, -0x8(%rax) jmp 0x94fb cmpl $0x3, %r14d jne 0x953e movq %rsi, %rdi movq %rbx, %rsi callq 0x7ee8 cmpb $0x1, (%rbx) jne 0x957c movq %rax, %r14 movq %rax, %rdi movq %rbp, %rsi movq %rbx, %rdx callq 0x807f cmpb $0x0, (%rbx) je 0x95c3 incl (%r14) movq 0x8(%r13), %rax movq -0x10(%rax), %rdi movq -0x8(%rax), %rsi callq 0x8235 movq 0x8(%r13), %rax movabsq $0x200000003, %rcx # imm = 0x200000003 jmp 0x94f3 cmpl $0x4, %r14d jne 0x954f movq %rsi, %rdi movq %rbx, %rsi callq 0x242e cmpb $0x1, (%rbx) jne 0x957c movq %rax, %r14 movq %rax, %rdi movq %rbp, %rsi movq %rbx, %rdx callq 0x278c cmpb $0x0, (%rbx) je 0x95cd incl (%r14) movq 0x8(%r13), %rax movq -0x10(%rax), %rdi movq -0x8(%rax), %rsi callq 0x8235 movq 0x8(%r13), %rax movabsq $0x200000003, %rcx # imm = 0x200000003 incq %rcx movq %rcx, -0x10(%rax) movq %r14, -0x8(%rax) movq 0x8(%r13), %rax movq (%rax), %rdi movq 0x8(%rax), %rsi addq $-0x10, %rax movq %rax, 0x8(%r13) callq 0x8235 jmp 0x957c callq 0x8154 movq %rax, %rbp movl %r14d, %edi callq 0x8154 leaq 0x15db(%rip), %rsi # 0xab07 movq %rbx, %rdi movq %rbp, %rdx movq %rax, %rcx xorl %eax, %eax callq 0x666c jmp 0x957c movl %r14d, %edi callq 0x8154 leaq 0x1589(%rip), %rsi # 0xaad6 jmp 0x956f movl %r14d, %edi callq 0x8154 leaq 0x1591(%rip), %rsi # 0xaaef jmp 0x956f movl %r14d, %edi callq 0x8154 leaq 0x154e(%rip), %rsi # 0xaabd movq %rbx, %rdi movq %rax, %rdx xorl %eax, %eax callq 0x666c cmpb $0x1, (%rbx) jne 0x95b4 movzbl 0x4(%r15), %eax addq $0x4, %r15 leaq 0x575f(%rip), %r9 # 0xecf0 movq %r13, %rdi movq %r12, %rsi movq %r15, %rdx movq 0x10(%rsp), %rcx movq %rbx, %r8 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmpq *(%r9,%rax,8) addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %r14, %rdi callq 0x7f2d jmp 0x957c movq %r14, %rdi callq 0x2473 jmp 0x957c
do_add: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov rbx, r8 mov [rsp+48h+var_38], rcx mov r15, rdx mov r12, rsi mov r13, rdi mov rax, [rdi+8] mov rdi, [rax-10h] mov rsi, [rax-8] mov r14, [rax] movq xmm1, qword ptr [rax+8] movq rbp, xmm1 cmp edi, 4 jz loc_9496 cmp edi, 3 jz short loc_943A cmp edi, 2 jnz loc_9515 cmp r14d, 2 jnz loc_9560 movq xmm0, rsi addsd xmm1, xmm0 movsd [rsp+48h+var_40], xmm1 call rak_value_release mov rax, [r13+8] mov qword ptr [rax-10h], 2 movsd xmm0, [rsp+48h+var_40] movsd qword ptr [rax-8], xmm0 jmp loc_94FB loc_943A: cmp r14d, 3 jnz loc_953E mov rdi, rsi mov rsi, rbx call rak_string_new_copy cmp byte ptr [rbx], 1 jnz loc_957C mov r14, rax mov rdi, rax mov rsi, rbp mov rdx, rbx call rak_string_inplace_concat cmp byte ptr [rbx], 0 jz loc_95C3 inc dword ptr [r14] mov rax, [r13+8] mov rdi, [rax-10h] mov rsi, [rax-8] call rak_value_release mov rax, [r13+8] mov rcx, 200000003h jmp short loc_94F3 loc_9496: cmp r14d, 4 jnz loc_954F mov rdi, rsi mov rsi, rbx call rak_array_new_copy cmp byte ptr [rbx], 1 jnz loc_957C mov r14, rax mov rdi, rax mov rsi, rbp mov rdx, rbx call rak_array_inplace_concat cmp byte ptr [rbx], 0 jz loc_95CD inc dword ptr [r14] mov rax, [r13+8] mov rdi, [rax-10h] mov rsi, [rax-8] call rak_value_release mov rax, [r13+8] mov rcx, 200000003h inc rcx loc_94F3: mov [rax-10h], rcx mov [rax-8], r14 loc_94FB: mov rax, [r13+8] mov rdi, [rax] mov rsi, [rax+8] add rax, 0FFFFFFFFFFFFFFF0h mov [r13+8], rax call rak_value_release jmp short loc_957C loc_9515: call rak_type_to_cstr mov rbp, rax mov edi, r14d call rak_type_to_cstr lea rsi, aCannotAddSAndS; "cannot add %s and %s" mov rdi, rbx mov rdx, rbp mov rcx, rax xor eax, eax call rak_error_set jmp short loc_957C loc_953E: mov edi, r14d call rak_type_to_cstr lea rsi, aCannotAddStrin; "cannot add string and %s" jmp short loc_956F loc_954F: mov edi, r14d call rak_type_to_cstr lea rsi, aCannotAddArray; "cannot add array and %s" jmp short loc_956F loc_9560: mov edi, r14d call rak_type_to_cstr lea rsi, aCannotAddNumbe; "cannot add number and %s" loc_956F: mov rdi, rbx mov rdx, rax xor eax, eax call rak_error_set loc_957C: cmp byte ptr [rbx], 1 jnz short loc_95B4 movzx eax, byte ptr [r15+4] add r15, 4 lea r9, dispatchTable mov rdi, r13 mov rsi, r12 mov rdx, r15 mov rcx, [rsp+48h+var_38] mov r8, rbx add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp ds:(dispatchTable - 0ECF0h)[r9+rax*8] loc_95B4: add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_95C3: mov rdi, r14 call rak_string_free jmp short loc_957C loc_95CD: mov rdi, r14 call rak_array_free jmp short loc_957C
long long do_add(long long a1, long long a2, long long a3, long long a4, _BYTE *a5) { double *v9; // rax long long v10; // rdi double v11; // rsi double v12; // r14 long long v13; // xmm1_8 long long v14; // rax long long result; // rax _DWORD *v16; // r14 long long v17; // rax long long v18; // rcx long long *v19; // rax long long v20; // rdi _DWORD *v21; // rsi const char *v22; // rsi v9 = *(double **)(a1 + 8); v10 = *((_QWORD *)v9 - 2); v11 = *(v9 - 1); v12 = *v9; v13 = *((long long *)v9 + 1); if ( (_DWORD)v10 != 4 ) { if ( (_DWORD)v10 != 3 ) { if ( (_DWORD)v10 != 2 ) { rak_type_to_cstr(v10); rak_type_to_cstr(LODWORD(v12)); result = rak_error_set(a5, (long long)"cannot add %s and %s"); goto LABEL_21; } if ( LODWORD(v12) == 2 ) { rak_value_release(2, *(_DWORD **)&v11); v14 = *(_QWORD *)(a1 + 8); *(_QWORD *)(v14 - 16) = 2LL; *(double *)(v14 - 8) = *(double *)&v13 + v11; LABEL_15: v19 = *(long long **)(a1 + 8); v20 = *v19; v21 = (_DWORD *)v19[1]; *(_QWORD *)(a1 + 8) = v19 - 2; result = rak_value_release(v20, v21); goto LABEL_21; } rak_type_to_cstr(LODWORD(v12)); v22 = "cannot add number and %s"; goto LABEL_20; } if ( LODWORD(v12) == 3 ) { result = rak_string_new_copy(*((_QWORD *)v9 - 1), a5); if ( *a5 != 1 ) goto LABEL_21; v16 = (_DWORD *)result; rak_string_inplace_concat(result, v13, a5); if ( *a5 ) { ++*v16; rak_value_release(*(_QWORD *)(*(_QWORD *)(a1 + 8) - 16LL), *(_DWORD **)(*(_QWORD *)(a1 + 8) - 8LL)); v17 = *(_QWORD *)(a1 + 8); v18 = 0x200000003LL; LABEL_14: *(_QWORD *)(v17 - 16) = v18; *(_QWORD *)(v17 - 8) = v16; goto LABEL_15; } result = rak_string_free((long long)v16); goto LABEL_21; } rak_type_to_cstr(LODWORD(v12)); v22 = "cannot add string and %s"; LABEL_20: result = rak_error_set(a5, (long long)v22); goto LABEL_21; } if ( LODWORD(v12) != 4 ) { rak_type_to_cstr(LODWORD(v12)); v22 = "cannot add array and %s"; goto LABEL_20; } result = rak_array_new_copy(*((_QWORD *)v9 - 1), a5); if ( *a5 != 1 ) goto LABEL_21; v16 = (_DWORD *)result; rak_array_inplace_concat(result, v13, a5); if ( *a5 ) { ++*v16; rak_value_release(*(_QWORD *)(*(_QWORD *)(a1 + 8) - 16LL), *(_DWORD **)(*(_QWORD *)(a1 + 8) - 8LL)); v17 = *(_QWORD *)(a1 + 8); v18 = 0x200000004LL; goto LABEL_14; } result = rak_array_free((long long)v16); LABEL_21: if ( *a5 == 1 ) ((void ( __noreturn *)(long long, long long, long long))*(&dispatchTable + *(unsigned __int8 *)(a3 + 4)))( a1, a2, a3 + 4); return result; }
do_add: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV RBX,R8 MOV qword ptr [RSP + 0x10],RCX MOV R15,RDX MOV R12,RSI MOV R13,RDI MOV RAX,qword ptr [RDI + 0x8] MOV RDI,qword ptr [RAX + -0x10] MOV RSI,qword ptr [RAX + -0x8] MOV R14,qword ptr [RAX] MOVQ XMM1,qword ptr [RAX + 0x8] MOVQ RBP,XMM1 CMP EDI,0x4 JZ 0x00109496 CMP EDI,0x3 JZ 0x0010943a CMP EDI,0x2 JNZ 0x00109515 CMP R14D,0x2 JNZ 0x00109560 MOVQ XMM0,RSI ADDSD XMM1,XMM0 MOVSD qword ptr [RSP + 0x8],XMM1 CALL 0x00108235 MOV RAX,qword ptr [R13 + 0x8] MOV qword ptr [RAX + -0x10],0x2 MOVSD XMM0,qword ptr [RSP + 0x8] MOVSD qword ptr [RAX + -0x8],XMM0 JMP 0x001094fb LAB_0010943a: CMP R14D,0x3 JNZ 0x0010953e MOV RDI,RSI MOV RSI,RBX CALL 0x00107ee8 CMP byte ptr [RBX],0x1 JNZ 0x0010957c MOV R14,RAX MOV RDI,RAX MOV RSI,RBP MOV RDX,RBX CALL 0x0010807f CMP byte ptr [RBX],0x0 JZ 0x001095c3 INC dword ptr [R14] MOV RAX,qword ptr [R13 + 0x8] MOV RDI,qword ptr [RAX + -0x10] MOV RSI,qword ptr [RAX + -0x8] CALL 0x00108235 MOV RAX,qword ptr [R13 + 0x8] MOV RCX,0x200000003 JMP 0x001094f3 LAB_00109496: CMP R14D,0x4 JNZ 0x0010954f MOV RDI,RSI MOV RSI,RBX CALL 0x0010242e CMP byte ptr [RBX],0x1 JNZ 0x0010957c MOV R14,RAX MOV RDI,RAX MOV RSI,RBP MOV RDX,RBX CALL 0x0010278c CMP byte ptr [RBX],0x0 JZ 0x001095cd INC dword ptr [R14] MOV RAX,qword ptr [R13 + 0x8] MOV RDI,qword ptr [RAX + -0x10] MOV RSI,qword ptr [RAX + -0x8] CALL 0x00108235 MOV RAX,qword ptr [R13 + 0x8] MOV RCX,0x200000003 INC RCX LAB_001094f3: MOV qword ptr [RAX + -0x10],RCX MOV qword ptr [RAX + -0x8],R14 LAB_001094fb: MOV RAX,qword ptr [R13 + 0x8] MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RAX + 0x8] ADD RAX,-0x10 MOV qword ptr [R13 + 0x8],RAX CALL 0x00108235 JMP 0x0010957c LAB_00109515: CALL 0x00108154 MOV RBP,RAX MOV EDI,R14D CALL 0x00108154 LEA RSI,[0x10ab07] MOV RDI,RBX MOV RDX,RBP MOV RCX,RAX XOR EAX,EAX CALL 0x0010666c JMP 0x0010957c LAB_0010953e: MOV EDI,R14D CALL 0x00108154 LEA RSI,[0x10aad6] JMP 0x0010956f LAB_0010954f: MOV EDI,R14D CALL 0x00108154 LEA RSI,[0x10aaef] JMP 0x0010956f LAB_00109560: MOV EDI,R14D CALL 0x00108154 LEA RSI,[0x10aabd] LAB_0010956f: MOV RDI,RBX MOV RDX,RAX XOR EAX,EAX CALL 0x0010666c LAB_0010957c: CMP byte ptr [RBX],0x1 JNZ 0x001095b4 MOVZX EAX,byte ptr [R15 + 0x4] ADD R15,0x4 LEA R9,[0x10ecf0] MOV RDI,R13 MOV RSI,R12 MOV RDX,R15 MOV RCX,qword ptr [RSP + 0x10] MOV R8,RBX ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP qword ptr [R9 + RAX*0x8] LAB_001095b4: ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001095c3: MOV RDI,R14 CALL 0x00107f2d JMP 0x0010957c LAB_001095cd: MOV RDI,R14 CALL 0x00102473 JMP 0x0010957c
void do_add(long param_1,int8 param_2,long param_3,int8 param_4,char *param_5) { double dVar1; ulong *puVar2; double dVar3; ulong uVar4; int8 *puVar5; int *piVar6; long lVar7; int8 uVar8; int8 uVar9; char *pcVar10; int iVar11; int iVar12; puVar2 = *(ulong **)(param_1 + 8); dVar3 = (double)puVar2[-1]; uVar4 = *puVar2; dVar1 = (double)puVar2[1]; iVar11 = (int)puVar2[-2]; iVar12 = (int)uVar4; if (iVar11 == 4) { if (iVar12 != 4) { uVar9 = rak_type_to_cstr(uVar4 & 0xffffffff); pcVar10 = "cannot add array and %s"; goto LAB_0010956f; } piVar6 = (int *)rak_array_new_copy(dVar3,param_5); if (*param_5 != '\x01') goto LAB_0010957c; rak_array_inplace_concat(piVar6,dVar1,param_5); if (*param_5 == '\0') { rak_array_free(piVar6); goto LAB_0010957c; } *piVar6 = *piVar6 + 1; rak_value_release(*(int8 *)(*(long *)(param_1 + 8) + -0x10), *(int8 *)(*(long *)(param_1 + 8) + -8)); lVar7 = *(long *)(param_1 + 8); uVar9 = 0x200000004; LAB_001094f3: *(int8 *)(lVar7 + -0x10) = uVar9; *(int **)(lVar7 + -8) = piVar6; } else { if (iVar11 == 3) { if (iVar12 == 3) { piVar6 = (int *)rak_string_new_copy(dVar3,param_5); if (*param_5 != '\x01') goto LAB_0010957c; rak_string_inplace_concat(piVar6,dVar1,param_5); if (*param_5 == '\0') { rak_string_free(piVar6); goto LAB_0010957c; } *piVar6 = *piVar6 + 1; rak_value_release(*(int8 *)(*(long *)(param_1 + 8) + -0x10), *(int8 *)(*(long *)(param_1 + 8) + -8)); lVar7 = *(long *)(param_1 + 8); uVar9 = 0x200000003; goto LAB_001094f3; } uVar9 = rak_type_to_cstr(uVar4 & 0xffffffff); pcVar10 = "cannot add string and %s"; LAB_0010956f: rak_error_set(param_5,pcVar10,uVar9); goto LAB_0010957c; } if (iVar11 != 2) { uVar9 = rak_type_to_cstr(); uVar8 = rak_type_to_cstr(uVar4 & 0xffffffff); rak_error_set(param_5,"cannot add %s and %s",uVar9,uVar8); goto LAB_0010957c; } if (iVar12 != 2) { uVar9 = rak_type_to_cstr(uVar4 & 0xffffffff); pcVar10 = "cannot add number and %s"; goto LAB_0010956f; } rak_value_release(); lVar7 = *(long *)(param_1 + 8); *(int8 *)(lVar7 + -0x10) = 2; *(double *)(lVar7 + -8) = dVar1 + dVar3; } puVar5 = *(int8 **)(param_1 + 8); uVar9 = *puVar5; uVar8 = puVar5[1]; *(int8 **)(param_1 + 8) = puVar5 + -2; rak_value_release(uVar9,uVar8); LAB_0010957c: if (*param_5 == '\x01') { /* WARNING: Could not recover jumptable at 0x001095b0. Too many branches */ /* WARNING: Treating indirect jump as call */ (**(code **)(dispatchTable + (ulong)*(byte *)(param_3 + 4) * 8)) (param_1,param_2,param_3 + 4,param_4,param_5); return; } return; }
60,396
BranchPredictor::predict(unsigned int, unsigned int, long, long, long)
EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/src/BranchPredictor.cpp
bool BranchPredictor::predict(uint32_t pc, uint32_t insttype, int64_t op1, int64_t op2, int64_t offset) { switch (this->strategy) { case NT: return false; case AT: return true; case BTFNT: { if (offset >= 0) { return false; } else { return true; } } break; case BPB: { PredictorState state = this->predbuf[pc % PRED_BUF_SIZE]; if (state == STRONG_TAKEN || state == WEAK_TAKEN) { return true; } else if (state == STRONG_NOT_TAKEN || state == WEAK_NOT_TAKEN) { return false; } else { dbgprintf("Strange Prediction Buffer!\n"); } } break; default: dbgprintf("Unknown Branch Perdiction Strategy!\n"); break; } return false; }
O0
cpp
BranchPredictor::predict(unsigned int, unsigned int, long, long, long): subq $0x48, %rsp movq %rdi, 0x38(%rsp) movl %esi, 0x34(%rsp) movl %edx, 0x30(%rsp) movq %rcx, 0x28(%rsp) movq %r8, 0x20(%rsp) movq %r9, 0x18(%rsp) movq 0x38(%rsp), %rax movq %rax, (%rsp) movl (%rax), %eax movq %rax, 0x8(%rsp) subq $0x3, %rax ja 0x2576a movq 0x8(%rsp), %rax leaq 0x4c66(%rip), %rcx # 0x2a34c movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movb $0x0, 0x47(%rsp) jmp 0x2577d movb $0x1, 0x47(%rsp) jmp 0x2577d cmpq $0x0, 0x18(%rsp) jl 0x2570f movb $0x0, 0x47(%rsp) jmp 0x2577d movb $0x1, 0x47(%rsp) jmp 0x2577d movq (%rsp), %rax movl 0x34(%rsp), %ecx andl $0xfff, %ecx # imm = 0xFFF movl %ecx, %ecx movl 0x4(%rax,%rcx,4), %eax movl %eax, 0x14(%rsp) cmpl $0x0, 0x14(%rsp) je 0x2573c cmpl $0x1, 0x14(%rsp) jne 0x25743 movb $0x1, 0x47(%rsp) jmp 0x2577d cmpl $0x3, 0x14(%rsp) je 0x25751 cmpl $0x2, 0x14(%rsp) jne 0x25758 movb $0x0, 0x47(%rsp) jmp 0x2577d leaq 0x4c0d(%rip), %rdi # 0x2a36c movb $0x0, %al callq 0x167d0 jmp 0x25768 jmp 0x25778 leaq 0x4c17(%rip), %rdi # 0x2a388 movb $0x0, %al callq 0x167d0 movb $0x0, 0x47(%rsp) movb 0x47(%rsp), %al andb $0x1, %al addq $0x48, %rsp retq nopl (%rax,%rax)
_ZN15BranchPredictor7predictEjjlll: sub rsp, 48h mov [rsp+48h+var_10], rdi mov [rsp+48h+var_14], esi mov [rsp+48h+var_18], edx mov [rsp+48h+var_20], rcx mov [rsp+48h+var_28], r8 mov [rsp+48h+var_30], r9 mov rax, [rsp+48h+var_10] mov [rsp+48h+var_48], rax mov eax, [rax] mov [rsp+48h+var_40], rax sub rax, 3; switch 4 cases ja def_256ED; jumptable 00000000000256ED default case mov rax, [rsp+48h+var_40] lea rcx, jpt_256ED movsxd rax, ds:(jpt_256ED - 2A34Ch)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_256EF: mov [rsp+48h+var_1], 0; jumptable 00000000000256ED case 1 jmp loc_2577D loc_256F9: mov [rsp+48h+var_1], 1; jumptable 00000000000256ED case 0 jmp short loc_2577D loc_25700: cmp [rsp+48h+var_30], 0; jumptable 00000000000256ED case 2 jl short loc_2570F mov [rsp+48h+var_1], 0 jmp short loc_2577D loc_2570F: mov [rsp+48h+var_1], 1 jmp short loc_2577D loc_25716: mov rax, [rsp+48h+var_48]; jumptable 00000000000256ED case 3 mov ecx, [rsp+48h+var_14] and ecx, 0FFFh mov ecx, ecx mov eax, [rax+rcx*4+4] mov [rsp+48h+var_34], eax cmp [rsp+48h+var_34], 0 jz short loc_2573C cmp [rsp+48h+var_34], 1 jnz short loc_25743 loc_2573C: mov [rsp+48h+var_1], 1 jmp short loc_2577D loc_25743: cmp [rsp+48h+var_34], 3 jz short loc_25751 cmp [rsp+48h+var_34], 2 jnz short loc_25758 loc_25751: mov [rsp+48h+var_1], 0 jmp short loc_2577D loc_25758: lea rdi, aStrangePredict; "Strange Prediction Buffer!\n" mov al, 0 call _Z9dbgprintfPKcz; dbgprintf(char const*,...) jmp short $+2 loc_25768: jmp short loc_25778 def_256ED: lea rdi, aUnknownBranchP; jumptable 00000000000256ED default case mov al, 0 call _Z9dbgprintfPKcz; dbgprintf(char const*,...) loc_25778: mov [rsp+48h+var_1], 0 loc_2577D: mov al, [rsp+48h+var_1] and al, 1 add rsp, 48h retn
bool BranchPredictor::predict( BranchPredictor *this, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { long long v14; // rcx unsigned int v16; // [rsp+14h] [rbp-34h] bool v17; // [rsp+47h] [rbp-1h] switch ( *(_DWORD *)this ) { case 0: v17 = 1; break; case 1: v17 = 0; break; case 2: v17 = a6 < 0; break; case 3: v14 = a2 & 0xFFF; v16 = *((_DWORD *)this + v14 + 1); if ( v16 > 1 ) { if ( v16 != 3 && v16 != 2 ) { dbgprintf( "Strange Prediction Buffer!\n", a2, a3, v14, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, (char)this); goto LABEL_12; } v17 = 0; } else { v17 = 1; } break; default: dbgprintf( "Unknown Branch Perdiction Strategy!\n", a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, (char)this); LABEL_12: v17 = 0; break; } return v17; }
predict: SUB RSP,0x48 MOV qword ptr [RSP + 0x38],RDI MOV dword ptr [RSP + 0x34],ESI MOV dword ptr [RSP + 0x30],EDX MOV qword ptr [RSP + 0x28],RCX MOV qword ptr [RSP + 0x20],R8 MOV qword ptr [RSP + 0x18],R9 MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RSP],RAX MOV EAX,dword ptr [RAX] MOV qword ptr [RSP + 0x8],RAX SUB RAX,0x3 JA 0x0012576a MOV RAX,qword ptr [RSP + 0x8] LEA RCX,[0x12a34c] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_1: MOV byte ptr [RSP + 0x47],0x0 JMP 0x0012577d caseD_0: MOV byte ptr [RSP + 0x47],0x1 JMP 0x0012577d caseD_2: CMP qword ptr [RSP + 0x18],0x0 JL 0x0012570f MOV byte ptr [RSP + 0x47],0x0 JMP 0x0012577d LAB_0012570f: MOV byte ptr [RSP + 0x47],0x1 JMP 0x0012577d caseD_3: MOV RAX,qword ptr [RSP] MOV ECX,dword ptr [RSP + 0x34] AND ECX,0xfff MOV ECX,ECX MOV EAX,dword ptr [RAX + RCX*0x4 + 0x4] MOV dword ptr [RSP + 0x14],EAX CMP dword ptr [RSP + 0x14],0x0 JZ 0x0012573c CMP dword ptr [RSP + 0x14],0x1 JNZ 0x00125743 LAB_0012573c: MOV byte ptr [RSP + 0x47],0x1 JMP 0x0012577d LAB_00125743: CMP dword ptr [RSP + 0x14],0x3 JZ 0x00125751 CMP dword ptr [RSP + 0x14],0x2 JNZ 0x00125758 LAB_00125751: MOV byte ptr [RSP + 0x47],0x0 JMP 0x0012577d LAB_00125758: LEA RDI,[0x12a36c] MOV AL,0x0 CALL 0x001167d0 JMP 0x00125768 LAB_00125768: JMP 0x00125778 default: LEA RDI,[0x12a388] MOV AL,0x0 CALL 0x001167d0 LAB_00125778: MOV byte ptr [RSP + 0x47],0x0 LAB_0012577d: MOV AL,byte ptr [RSP + 0x47] AND AL,0x1 ADD RSP,0x48 RET
/* BranchPredictor::predict(unsigned int, unsigned int, long, long, long) */ int1 BranchPredictor::predict(uint param_1,uint param_2,long param_3,long param_4,long param_5) { int iVar1; int4 in_register_0000003c; long in_R9; int1 local_1; switch(*(int4 *)CONCAT44(in_register_0000003c,param_1)) { case 0: local_1 = 1; break; case 1: local_1 = 0; break; case 2: if (in_R9 < 0) { local_1 = 1; } else { local_1 = 0; } break; case 3: iVar1 = ((int4 *)CONCAT44(in_register_0000003c,param_1))[(ulong)(param_2 & 0xfff) + 1]; if ((iVar1 == 0) || (iVar1 == 1)) { return 1; } if ((iVar1 == 3) || (iVar1 == 2)) { return 0; } dbgprintf("Strange Prediction Buffer!\n"); goto LAB_00125778; default: dbgprintf("Unknown Branch Perdiction Strategy!\n"); LAB_00125778: local_1 = 0; } return local_1; }
60,397
BranchPredictor::predict(unsigned int, unsigned int, long, long, long)
EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/src/BranchPredictor.cpp
bool BranchPredictor::predict(uint32_t pc, uint32_t insttype, int64_t op1, int64_t op2, int64_t offset) { switch (this->strategy) { case NT: return false; case AT: return true; case BTFNT: { if (offset >= 0) { return false; } else { return true; } } break; case BPB: { PredictorState state = this->predbuf[pc % PRED_BUF_SIZE]; if (state == STRONG_TAKEN || state == WEAK_TAKEN) { return true; } else if (state == STRONG_NOT_TAKEN || state == WEAK_NOT_TAKEN) { return false; } else { dbgprintf("Strange Prediction Buffer!\n"); } } break; default: dbgprintf("Unknown Branch Perdiction Strategy!\n"); break; } return false; }
O1
cpp
BranchPredictor::predict(unsigned int, unsigned int, long, long, long): pushq %rax movl (%rdi), %ecx cmpq $0x3, %rcx ja 0x1332d leaq 0x2f02(%rip), %rdx # 0x161f0 movslq (%rdx,%rcx,4), %rcx addq %rdx, %rcx jmpq *%rcx movb $0x1, %al jmp 0x13329 movq %r9, %rax shrq $0x3f, %rax jmp 0x13329 andl $0xfff, %esi # imm = 0xFFF movl 0x4(%rdi,%rsi,4), %eax cmpl $0x2, %eax jae 0x13317 movb $0x1, %al jmp 0x13321 andl $-0x2, %eax cmpl $0x2, %eax jne 0x1333d xorl %eax, %eax xorl %ecx, %ecx testb %cl, %cl je 0x13329 xorl %eax, %eax andb $0x1, %al popq %rcx retq leaq 0x2ef8(%rip), %rdi # 0x1622c xorl %eax, %eax callq 0xb3b0 jmp 0x13327 leaq 0x2ecc(%rip), %rdi # 0x16210 xorl %eax, %eax callq 0xb3b0 movb $0x1, %cl jmp 0x13323 nop
_ZN15BranchPredictor7predictEjjlll: push rax mov ecx, [rdi] cmp rcx, 3; switch 4 cases ja short def_132F5; jumptable 00000000000132F5 default case lea rdx, jpt_132F5 movsxd rcx, ds:(jpt_132F5 - 161F0h)[rdx+rcx*4] add rcx, rdx jmp rcx; switch jump loc_132F7: mov al, 1; jumptable 00000000000132F5 case 0 jmp short loc_13329 loc_132FB: mov rax, r9; jumptable 00000000000132F5 case 2 shr rax, 3Fh jmp short loc_13329 loc_13304: and esi, 0FFFh; jumptable 00000000000132F5 case 3 mov eax, [rdi+rsi*4+4] cmp eax, 2 jnb short loc_13317 mov al, 1 jmp short loc_13321 loc_13317: and eax, 0FFFFFFFEh cmp eax, 2 jnz short loc_1333D xor eax, eax loc_13321: xor ecx, ecx loc_13323: test cl, cl jz short loc_13329 loc_13327: xor eax, eax; jumptable 00000000000132F5 case 1 loc_13329: and al, 1 pop rcx retn def_132F5: lea rdi, aUnknownBranchP; jumptable 00000000000132F5 default case xor eax, eax call _Z9dbgprintfPKcz; dbgprintf(char const*,...) jmp short loc_13327; jumptable 00000000000132F5 case 1 loc_1333D: lea rdi, aStrangePredict; "Strange Prediction Buffer!\n" xor eax, eax call _Z9dbgprintfPKcz; dbgprintf(char const*,...) mov cl, 1 jmp short loc_13323
char BranchPredictor::predict( BranchPredictor *this, long long a2, long long a3, long long a4, long long a5, unsigned long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { char v14; // al long long v15; // rcx unsigned long long v16; // rax long long v17; // rsi unsigned int v18; // eax char v19; // cl char v21; // [rsp-8h] [rbp-8h] v21 = v14; v15 = *(unsigned int *)this; switch ( *(_DWORD *)this ) { case 0: LOBYTE(v16) = 1; return v16 & 1; case 1: goto LABEL_10; case 2: v16 = a6 >> 63; return v16 & 1; case 3: v17 = a2 & 0xFFF; v18 = *((_DWORD *)this + v17 + 1); if ( v18 < 2 ) { LOBYTE(v16) = 1; LABEL_8: v19 = 0; goto LABEL_9; } if ( (v18 & 0xFFFFFFFE) == 2 ) { LOBYTE(v16) = 0; goto LABEL_8; } LOBYTE(v16) = dbgprintf( "Strange Prediction Buffer!\n", v17, a3, v15, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v21); v19 = 1; LABEL_9: if ( v19 ) LABEL_10: LOBYTE(v16) = 0; return v16 & 1; default: dbgprintf("Unknown Branch Perdiction Strategy!\n", a2, a3, v15, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v14); goto LABEL_10; } }
predict: PUSH RAX MOV ECX,dword ptr [RDI] CMP RCX,0x3 JA 0x0011332d LEA RDX,[0x1161f0] MOVSXD RCX,dword ptr [RDX + RCX*0x4] ADD RCX,RDX switchD: JMP RCX caseD_0: MOV AL,0x1 JMP 0x00113329 caseD_2: MOV RAX,R9 SHR RAX,0x3f JMP 0x00113329 caseD_3: AND ESI,0xfff MOV EAX,dword ptr [RDI + RSI*0x4 + 0x4] CMP EAX,0x2 JNC 0x00113317 MOV AL,0x1 JMP 0x00113321 LAB_00113317: AND EAX,0xfffffffe CMP EAX,0x2 JNZ 0x0011333d XOR EAX,EAX LAB_00113321: XOR ECX,ECX LAB_00113323: TEST CL,CL JZ 0x00113329 caseD_1: XOR EAX,EAX LAB_00113329: AND AL,0x1 POP RCX RET default: LEA RDI,[0x11622c] XOR EAX,EAX CALL 0x0010b3b0 JMP 0x00113327 LAB_0011333d: LEA RDI,[0x116210] XOR EAX,EAX CALL 0x0010b3b0 MOV CL,0x1 JMP 0x00113323
/* BranchPredictor::predict(unsigned int, unsigned int, long, long, long) */ ulong BranchPredictor::predict(uint param_1,uint param_2,long param_3,long param_4,long param_5) { uint uVar1; bool bVar2; int8 in_RAX; ulong uVar3; int4 in_register_0000003c; ulong in_R9; switch(*(int4 *)CONCAT44(in_register_0000003c,param_1)) { case 0: uVar3 = CONCAT71((int7)((ulong)in_RAX >> 8),1); goto LAB_00113329; case 1: break; case 2: uVar3 = in_R9 >> 0x3f; goto LAB_00113329; case 3: uVar1 = ((int4 *)CONCAT44(in_register_0000003c,param_1))[(ulong)(param_2 & 0xfff) + 1]; if (uVar1 < 2) { uVar3 = CONCAT71((uint7)(uint3)(uVar1 >> 8),1); LAB_00113321: bVar2 = false; } else { if ((uVar1 & 0xfffffffe) == 2) { uVar3 = 0; goto LAB_00113321; } uVar3 = dbgprintf("Strange Prediction Buffer!\n"); bVar2 = true; } if (!bVar2) goto LAB_00113329; break; default: dbgprintf("Unknown Branch Perdiction Strategy!\n"); } uVar3 = 0; LAB_00113329: return uVar3 & 0xffffffffffffff01; }
60,398
BranchPredictor::predict(unsigned int, unsigned int, long, long, long)
EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/src/BranchPredictor.cpp
bool BranchPredictor::predict(uint32_t pc, uint32_t insttype, int64_t op1, int64_t op2, int64_t offset) { switch (this->strategy) { case NT: return false; case AT: return true; case BTFNT: { if (offset >= 0) { return false; } else { return true; } } break; case BPB: { PredictorState state = this->predbuf[pc % PRED_BUF_SIZE]; if (state == STRONG_TAKEN || state == WEAK_TAKEN) { return true; } else if (state == STRONG_NOT_TAKEN || state == WEAK_NOT_TAKEN) { return false; } else { dbgprintf("Strange Prediction Buffer!\n"); } } break; default: dbgprintf("Unknown Branch Perdiction Strategy!\n"); break; } return false; }
O2
cpp
BranchPredictor::predict(unsigned int, unsigned int, long, long, long): pushq %rbx movl (%rdi), %eax cmpq $0x3, %rax ja 0x1319d leaq 0x3052(%rip), %rcx # 0x161bc movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movb $0x1, %bl jmp 0x131b6 movq %r9, %rbx shrq $0x3f, %rbx jmp 0x131b6 andl $0xfff, %esi # imm = 0xFFF movl 0x4(%rdi,%rsi,4), %eax movb $0x1, %bl cmpl $0x2, %eax jb 0x131b6 andl $-0x2, %eax cmpl $0x2, %eax jne 0x131a6 xorl %ebx, %ebx jmp 0x131b6 leaq 0x3054(%rip), %rdi # 0x161f8 jmp 0x131ad leaq 0x302f(%rip), %rdi # 0x161dc xorl %ebx, %ebx xorl %eax, %eax callq 0xcefb movl %ebx, %eax popq %rbx retq
_ZN15BranchPredictor7predictEjjlll: push rbx mov eax, [rdi] cmp rax, 3; switch 4 cases ja short def_13171; jumptable 0000000000013171 default case lea rcx, jpt_13171 movsxd rax, ds:(jpt_13171 - 161BCh)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_13173: mov bl, 1; jumptable 0000000000013171 case 0 jmp short loc_131B6 loc_13177: mov rbx, r9; jumptable 0000000000013171 case 2 shr rbx, 3Fh jmp short loc_131B6 loc_13180: and esi, 0FFFh; jumptable 0000000000013171 case 3 mov eax, [rdi+rsi*4+4] mov bl, 1 cmp eax, 2 jb short loc_131B6 and eax, 0FFFFFFFEh cmp eax, 2 jnz short loc_131A6 loc_13199: xor ebx, ebx; jumptable 0000000000013171 case 1 jmp short loc_131B6 def_13171: lea rdi, aUnknownBranchP; jumptable 0000000000013171 default case jmp short loc_131AD loc_131A6: lea rdi, aStrangePredict; "Strange Prediction Buffer!\n" loc_131AD: xor ebx, ebx xor eax, eax call _Z9dbgprintfPKcz; dbgprintf(char const*,...) loc_131B6: mov eax, ebx pop rbx retn
unsigned long long BranchPredictor::predict( BranchPredictor *this, long long a2, long long a3, long long a4, long long a5, unsigned long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { long long v14; // rbx unsigned int v15; // eax const char *v16; // rdi char v18; // [rsp+0h] [rbp-8h] switch ( *(_DWORD *)this ) { case 0: LOBYTE(v14) = 1; return (unsigned int)v14; case 1: goto LABEL_6; case 2: return a6 >> 63; case 3: a2 &= 0xFFFu; v15 = *((_DWORD *)this + a2 + 1); LOBYTE(v14) = 1; if ( v15 < 2 ) return (unsigned int)v14; if ( (v15 & 0xFFFFFFFE) == 2 ) { LABEL_6: LODWORD(v14) = 0; } else { v16 = "Strange Prediction Buffer!\n"; LABEL_9: LODWORD(v14) = 0; dbgprintf(v16, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v18); } return (unsigned int)v14; default: v16 = "Unknown Branch Perdiction Strategy!\n"; goto LABEL_9; } }
predict: PUSH RBX MOV EAX,dword ptr [RDI] CMP RAX,0x3 JA 0x0011319d LEA RCX,[0x1161bc] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_0: MOV BL,0x1 JMP 0x001131b6 caseD_2: MOV RBX,R9 SHR RBX,0x3f JMP 0x001131b6 caseD_3: AND ESI,0xfff MOV EAX,dword ptr [RDI + RSI*0x4 + 0x4] MOV BL,0x1 CMP EAX,0x2 JC 0x001131b6 AND EAX,0xfffffffe CMP EAX,0x2 JNZ 0x001131a6 caseD_1: XOR EBX,EBX JMP 0x001131b6 default: LEA RDI,[0x1161f8] JMP 0x001131ad LAB_001131a6: LEA RDI,[0x1161dc] LAB_001131ad: XOR EBX,EBX XOR EAX,EAX CALL 0x0010cefb LAB_001131b6: MOV EAX,EBX POP RBX RET
/* BranchPredictor::predict(unsigned int, unsigned int, long, long, long) */ ulong BranchPredictor::predict(uint param_1,uint param_2,long param_3,long param_4,long param_5) { uint uVar1; int8 unaff_RBX; int7 uVar3; ulong uVar2; int4 in_register_00000034; ulong uVar4; int4 in_register_0000003c; char *pcVar5; ulong in_R9; uVar4 = CONCAT44(in_register_00000034,param_2); uVar3 = (int7)((ulong)unaff_RBX >> 8); switch(*(int4 *)CONCAT44(in_register_0000003c,param_1)) { case 0: uVar2 = CONCAT71(uVar3,1); break; case 2: uVar2 = in_R9 >> 0x3f; break; case 3: uVar4 = (ulong)(param_2 & 0xfff); uVar1 = ((int4 *)CONCAT44(in_register_0000003c,param_1))[uVar4 + 1]; uVar2 = CONCAT71(uVar3,1); if (uVar1 < 2) break; if ((uVar1 & 0xfffffffe) != 2) { pcVar5 = "Strange Prediction Buffer!\n"; param_4 = (long)&switchD_00113171::switchdataD_001161bc; goto LAB_001131ad; } case 1: uVar2 = 0; break; default: pcVar5 = "Unknown Branch Perdiction Strategy!\n"; LAB_001131ad: uVar2 = 0; dbgprintf(pcVar5,uVar4,param_3,param_4); } return uVar2 & 0xffffffff; }
60,399
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>::push_back(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/./json.hpp
void push_back(const basic_json& val) { // push_back only works for null objects or arrays if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_array()))) { JSON_THROW(type_error::create(308, detail::concat("cannot use push_back() with ", type_name()), this)); } // transform null object into an array if (is_null()) { m_data.m_type = value_t::array; m_data.m_value = value_t::array; assert_invariant(); } // add element to array const auto old_capacity = m_data.m_value.array->capacity(); m_data.m_value.array->push_back(val); set_parent(m_data.m_value.array->back(), old_capacity); }
O3
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&): pushq %rbp pushq %r14 pushq %rbx subq $0x30, %rsp movq %rsi, %rbx movq %rdi, %r14 movzbl (%rdi), %eax testl %eax, %eax jne 0x9219e movb $0x2, (%r14) movl $0x18, %edi callq 0x25270 xorps %xmm0, %xmm0 movups %xmm0, (%rax) movq $0x0, 0x10(%rax) movq %rax, 0x8(%r14) movq %r14, %rdi movl $0x1, %esi callq 0x4adea jmp 0x921a3 cmpl $0x2, %eax jne 0x921b7 movq 0x8(%r14), %rdi movq %rbx, %rsi addq $0x30, %rsp popq %rbx popq %r14 popq %rbp jmp 0x92848 movl $0x20, %edi callq 0x25790 movq %rax, %rbx movq %r14, %rdi callq 0x63928 leaq 0x8(%rsp), %rdx movq %rax, (%rdx) leaq 0xe1ac7(%rip), %rsi # 0x173ca2 leaq 0x10(%rsp), %rdi callq 0x638a0 movb $0x1, %bpl leaq 0x10(%rsp), %rdx movq %rbx, %rdi movl $0x134, %esi # imm = 0x134 movq %r14, %rcx callq 0x636cc xorl %ebp, %ebp leaq 0x1480da(%rip), %rsi # 0x1da2e0 leaq -0xdfab(%rip), %rdx # 0x84262 movq %rbx, %rdi callq 0x25c00 movq %rax, %r14 leaq 0x20(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x92233 movq 0x20(%rsp), %rsi incq %rsi callq 0x251b0 testb %bpl, %bpl jne 0x9223d jmp 0x92245 movq %rax, %r14 movq %rbx, %rdi callq 0x26150 movq %r14, %rdi callq 0x25ca0 nop
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backERKSD_: push rbp; void * push r14; int push rbx; __int64 sub rsp, 30h mov rbx, rsi mov r14, rdi movzx eax, byte ptr [rdi] test eax, eax jnz short loc_9219E mov byte ptr [r14], 2 mov edi, 18h; unsigned __int64 call __Znwm; operator new(ulong) xorps xmm0, xmm0 movups xmmword ptr [rax], xmm0 mov qword ptr [rax+10h], 0 mov [r14+8], rax 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) jmp short loc_921A3 loc_9219E: cmp eax, 2 jnz short loc_921B7 loc_921A3: mov rdi, [r14+8] mov rsi, rbx add rsp, 30h pop rbx pop r14 pop rbp jmp _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE9push_backERKSD_; 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>>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) loc_921B7: 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, aCannotUsePushB; "cannot use push_back() with " 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, 134h; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rax, [rsp+48h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_92233 mov rsi, [rsp+48h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_92233: test bpl, bpl jnz short loc_9223D jmp short loc_92245 mov r14, rax loc_9223D: mov rdi, rbx; void * call ___cxa_free_exception loc_92245: mov rdi, r14 call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::push_back( long long a1, long long a2) { long long v2; // rax nlohmann::json_abi_v3_11_3::detail::exception *exception; // rbx const char *v5; // [rsp+8h] [rbp-40h] BYREF _QWORD v6[2]; // [rsp+10h] [rbp-38h] BYREF if ( *(_BYTE *)a1 ) { if ( *(_BYTE *)a1 != 2 ) { exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL); v5 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((unsigned __int8 *)a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>( (long long)v6, (long long)"cannot use push_back() with ", &v5); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_( exception, 308, v6); __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); } } else { *(_BYTE *)a1 = 2; v2 = operator new(0x18uLL); *(_OWORD *)v2 = 0LL; *(_QWORD *)(v2 + 16) = 0LL; *(_QWORD *)(a1 + 8) = v2; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1); } return 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>>::push_back( *(_QWORD *)(a1 + 8), a2); }
push_back: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x30 MOV RBX,RSI MOV R14,RDI MOVZX EAX,byte ptr [RDI] TEST EAX,EAX JNZ 0x0019219e MOV byte ptr [R14],0x2 MOV EDI,0x18 CALL 0x00125270 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX],XMM0 MOV qword ptr [RAX + 0x10],0x0 MOV qword ptr [R14 + 0x8],RAX MOV RDI,R14 MOV ESI,0x1 CALL 0x0014adea JMP 0x001921a3 LAB_0019219e: CMP EAX,0x2 JNZ 0x001921b7 LAB_001921a3: MOV RDI,qword ptr [R14 + 0x8] MOV RSI,RBX ADD RSP,0x30 POP RBX POP R14 POP RBP JMP 0x00192848 LAB_001921b7: MOV EDI,0x20 CALL 0x00125790 MOV RBX,RAX MOV RDI,R14 CALL 0x00163928 LEA RDX,[RSP + 0x8] MOV qword ptr [RDX],RAX LAB_001921d4: LEA RSI,[0x273ca2] LEA RDI,[RSP + 0x10] CALL 0x001638a0 MOV BPL,0x1 LAB_001921e8: LEA RDX,[RSP + 0x10] MOV RDI,RBX MOV ESI,0x134 MOV RCX,R14 CALL 0x001636cc XOR EBP,EBP LEA RSI,[0x2da2e0] LEA RDX,[0x184262] MOV RDI,RBX CALL 0x00125c00
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, 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 __thiscall nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::push_back(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *this,basic_json *param_1) { int8 *puVar1; int8 uVar2; char *local_40; detail local_38 [32]; if (*this == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x0) { *this = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x2; puVar1 = (int8 *)operator_new(0x18); *puVar1 = 0; puVar1[1] = 0; puVar1[2] = 0; *(int8 **)(this + 8) = puVar1; assert_invariant(SUB81(this,0)); } else if (*this != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x2) { uVar2 = __cxa_allocate_exception(0x20); local_40 = (char *)type_name(this); /* try { // try from 001921d4 to 001921e4 has its CatchHandler @ 0019223a */ detail::concat<std::__cxx11::string,char_const(&)[29],char_const*> (local_38,"cannot use push_back() with ",&local_40); /* try { // try from 001921e8 to 00192214 has its CatchHandler @ 00192215 */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar2,0x134,local_38,this); /* WARNING: Subroutine does not return */ __cxa_throw(uVar2,&detail::type_error::typeinfo,detail::exception::~exception); } std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::push_back(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)(this + 8),param_1); return; }