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
65,300
my_strxfrm_pad_nweights_unicode
eloqsql/strings/ctype-utf8.c
size_t my_strxfrm_pad_nweights_unicode(uchar *str, uchar *strend, size_t nweights) { uchar *str0; DBUG_ASSERT(str && str <= strend); for (str0= str; str < strend && nweights; nweights--) { *str++= 0x00; if (str < strend) *str++= 0x20; } return str - str0; }
O3
c
my_strxfrm_pad_nweights_unicode: cmpq %rsi, %rdi setae %al testq %rdx, %rdx sete %cl orb %al, %cl movq %rdi, %rax jne 0x5762d pushq %rbp movq %rsp, %rbp decq %rdx movq %rdi, %rcx leaq 0x1(%rcx), %rax movb $0x0, (%rcx) cmpq %rsi, %rax jae 0x57617 movb $0x20, 0x1(%rcx) addq $0x2, %rcx movq %rcx, %rax addq $-0x1, %rdx setb %r8b cmpq %rsi, %rax jae 0x5762c movq %rax, %rcx testb %r8b, %r8b jne 0x57600 popq %rbp subq %rdi, %rax retq
my_strxfrm_pad_nweights_unicode: cmp rdi, rsi setnb al test rdx, rdx setz cl or cl, al mov rax, rdi jnz short loc_5762D push rbp mov rbp, rsp dec rdx mov rcx, rdi loc_57600: lea rax, [rcx+1] mov byte ptr [rcx], 0 cmp rax, rsi jnb short loc_57617 mov byte ptr [rcx+1], 20h ; ' ' add rcx, 2 mov rax, rcx loc_57617: add rdx, 0FFFFFFFFFFFFFFFFh setb r8b cmp rax, rsi jnb short loc_5762C mov rcx, rax test r8b, r8b jnz short loc_57600 loc_5762C: pop rbp loc_5762D: sub rax, rdi retn
long long my_strxfrm_pad_nweights_unicode(_BYTE *a1, unsigned long long a2, long long a3) { _BYTE *v3; // rax long long v4; // rdx _BYTE *v5; // rcx bool v6; // cf v3 = a1; if ( (unsigned long long)a1 < a2 && a3 != 0 ) { v4 = a3 - 1; v5 = a1; do { v3 = v5 + 1; *v5 = 0; if ( (unsigned long long)(v5 + 1) < a2 ) { v5[1] = 32; v3 = v5 + 2; } v6 = v4-- != 0; if ( (unsigned long long)v3 >= a2 ) break; v5 = v3; } while ( v6 ); } return v3 - a1; }
my_strxfrm_pad_nweights_unicode: CMP RDI,RSI SETNC AL TEST RDX,RDX SETZ CL OR CL,AL MOV RAX,RDI JNZ 0x0015762d PUSH RBP MOV RBP,RSP DEC RDX MOV RCX,RDI LAB_00157600: LEA RAX,[RCX + 0x1] MOV byte ptr [RCX],0x0 CMP RAX,RSI JNC 0x00157617 MOV byte ptr [RCX + 0x1],0x20 ADD RCX,0x2 MOV RAX,RCX LAB_00157617: ADD RDX,-0x1 SETC R8B CMP RAX,RSI JNC 0x0015762c MOV RCX,RAX TEST R8B,R8B JNZ 0x00157600 LAB_0015762c: POP RBP LAB_0015762d: SUB RAX,RDI RET
long my_strxfrm_pad_nweights_unicode(int1 *param_1,int1 *param_2,long param_3) { int1 *puVar1; int1 *puVar2; bool bVar3; puVar2 = param_1; if (param_3 != 0 && param_1 < param_2) { param_3 = param_3 + -1; puVar1 = param_1; do { puVar2 = puVar1 + 1; *puVar1 = 0; if (puVar2 < param_2) { puVar1[1] = 0x20; puVar2 = puVar1 + 2; } bVar3 = param_3 != 0; param_3 = param_3 + -1; } while ((puVar2 < param_2) && (puVar1 = puVar2, bVar3)); } return (long)puVar2 - (long)param_1; }
65,301
my_aes_get_size
eloqsql/mysys_ssl/my_crypt.cc
unsigned int my_aes_get_size(enum my_aes_mode mode __attribute__((unused)), unsigned int source_length) { #ifdef HAVE_EncryptAes128Ctr if (mode == MY_AES_CTR) return source_length; #ifdef HAVE_EncryptAes128Gcm if (mode == MY_AES_GCM) return source_length + MY_AES_BLOCK_SIZE; #endif #endif return (source_length / MY_AES_BLOCK_SIZE + 1) * MY_AES_BLOCK_SIZE; }
O3
cpp
my_aes_get_size: pushq %rbp movq %rsp, %rbp movl %esi, %eax cmpl $0x2, %edi je 0xd82d3 cmpl $0x3, %edi je 0xd82d0 andl $-0x10, %eax addl $0x10, %eax popq %rbp retq
my_aes_get_size: push rbp mov rbp, rsp mov eax, esi cmp edi, 2 jz short loc_D82D3 cmp edi, 3 jz short loc_D82D0 and eax, 0FFFFFFF0h loc_D82D0: add eax, 10h loc_D82D3: pop rbp retn
long long my_aes_get_size(int a1, unsigned int a2) { long long result; // rax result = a2; if ( a1 != 2 ) { if ( a1 != 3 ) LODWORD(result) = a2 & 0xFFFFFFF0; return (unsigned int)(result + 16); } return result; }
my_aes_get_size: PUSH RBP MOV RBP,RSP MOV EAX,ESI CMP EDI,0x2 JZ 0x001d82d3 CMP EDI,0x3 JZ 0x001d82d0 AND EAX,0xfffffff0 LAB_001d82d0: ADD EAX,0x10 LAB_001d82d3: POP RBP RET
uint my_aes_get_size(int param_1,uint param_2) { if (param_1 != 2) { if (param_1 != 3) { param_2 = param_2 & 0xfffffff0; } param_2 = param_2 + 0x10; } return param_2; }
65,302
maria_lock_database
eloqsql/storage/maria/ma_locking.c
int maria_lock_database(MARIA_HA *info, int lock_type) { int error; uint count; MARIA_SHARE *share= info->s; DBUG_ENTER("maria_lock_database"); DBUG_PRINT("enter",("lock_type: %d old lock %d r_locks: %u w_locks: %u " "global_changed: %d open_count: %u name: '%s'", lock_type, info->lock_type, share->r_locks, share->w_locks, share->global_changed, share->state.open_count, share->index_file_name.str)); if (share->options & HA_OPTION_READ_ONLY_DATA || info->lock_type == lock_type) DBUG_RETURN(0); if (lock_type == F_EXTRA_LCK) /* Used by TMP tables */ { ++share->w_locks; ++share->tot_locks; info->lock_type= lock_type; DBUG_RETURN(0); } error=0; if (!info->intern_lock_locked) mysql_mutex_lock(&share->intern_lock); if (share->kfile.file >= 0) /* May only be false on windows */ { switch (lock_type) { case F_UNLCK: maria_ftparser_call_deinitializer(info); if (info->lock_type == F_RDLCK) { count= --share->r_locks; if (share->lock_restore_status) (*share->lock_restore_status)(info); } else { count= --share->w_locks; if (share->lock.update_status) _ma_update_status_with_lock(info); } --share->tot_locks; if (info->lock_type == F_WRLCK && !share->w_locks) { /* pages of transactional tables get flushed at Checkpoint */ if (!share->base.born_transactional && !share->temporary && _ma_flush_table_files(info, share->delay_key_write ? MARIA_FLUSH_DATA : MARIA_FLUSH_DATA | MARIA_FLUSH_INDEX, FLUSH_KEEP, FLUSH_KEEP)) error= my_errno; } if (info->opt_flag & (READ_CACHE_USED | WRITE_CACHE_USED)) { if (end_io_cache(&info->rec_cache)) { error= my_errno; _ma_set_fatal_error(info, error); } } if (!count) { DBUG_PRINT("info",("changed: %u w_locks: %u", (uint) share->changed, share->w_locks)); if (share->changed && !share->w_locks) { #ifdef HAVE_MMAP if ((share->mmaped_length != share->state.state.data_file_length) && (share->nonmmaped_inserts > MAX_NONMAPPED_INSERTS)) { if (share->lock_key_trees) mysql_rwlock_wrlock(&share->mmap_lock); _ma_remap_file(info, share->state.state.data_file_length); share->nonmmaped_inserts= 0; if (share->lock_key_trees) mysql_rwlock_unlock(&share->mmap_lock); } #endif #ifdef MARIA_EXTERNAL_LOCKING share->state.process= share->last_process=share->this_process; share->state.unique= info->last_unique= info->this_unique; share->state.update_count= info->last_loop= ++info->this_loop; #endif /* transactional tables rather flush their state at Checkpoint */ if (!share->base.born_transactional) { if (_ma_state_info_write_sub(share->kfile.file, &share->state, MA_STATE_INFO_WRITE_DONT_MOVE_OFFSET)) error= my_errno; else { /* A value of 0 means below means "state flushed" */ share->changed= 0; } } if (maria_flush) { if (_ma_sync_table_files(info)) error= my_errno; } else share->not_flushed=1; if (error) _ma_set_fatal_error(info, error); } } info->opt_flag&= ~(READ_CACHE_USED | WRITE_CACHE_USED); info->lock_type= F_UNLCK; break; case F_RDLCK: if (info->lock_type == F_WRLCK) { /* Change RW to READONLY mysqld does not turn write locks to read locks, so we're never here in mysqld. */ share->w_locks--; share->r_locks++; info->lock_type=lock_type; break; } #ifdef MARIA_EXTERNAL_LOCKING if (!share->r_locks && !share->w_locks) { /* note that a transactional table should not do this */ if (_ma_state_info_read_dsk(share->kfile.file, &share->state)) { error=my_errno; break; } } #endif _ma_test_if_changed(info); share->r_locks++; share->tot_locks++; info->lock_type=lock_type; break; case F_WRLCK: if (info->lock_type == F_RDLCK) { /* Change READONLY to RW */ if (share->r_locks == 1) { share->r_locks--; share->w_locks++; info->lock_type=lock_type; break; } } #ifdef MARIA_EXTERNAL_LOCKING if (!(share->options & HA_OPTION_READ_ONLY_DATA)) { if (!share->w_locks) { if (!share->r_locks) { /* Note that transactional tables should not do this. If we enabled this code, we should make sure to skip it if born_transactional is true. We should not test now_transactional to decide if we can call _ma_state_info_read_dsk(), because it can temporarily be 0 (TRUNCATE on a partitioned table) and thus it would make a state modification below without mutex, confusing a concurrent checkpoint running. Even if this code was enabled only for non-transactional tables: in scenario LOCK TABLE t1 WRITE; INSERT INTO t1; DELETE FROM t1; state on disk read by DELETE is obsolete as it was not flushed at the end of INSERT. MyISAM same. It however causes no issue as maria_delete_all_rows() calls _ma_reset_status() thus is not influenced by the obsolete read values. */ if (_ma_state_info_read_dsk(share->kfile.file, &share->state)) { error=my_errno; break; } } } } #endif /* defined(MARIA_EXTERNAL_LOCKING) */ _ma_test_if_changed(info); info->lock_type=lock_type; info->invalidator=share->invalidator; share->w_locks++; share->tot_locks++; break; default: DBUG_ASSERT(0); break; /* Impossible */ } } #ifdef _WIN32 else { /* Check for bad file descriptors if this table is part of a merge union. Failing to capture this may cause a crash on windows if the table is renamed and later on referenced by the merge table. */ if( info->owned_by_merge && (info->s)->kfile.file < 0 ) { error = HA_ERR_NO_SUCH_TABLE; } } #endif if (!info->intern_lock_locked) mysql_mutex_unlock(&share->intern_lock); DBUG_RETURN(error); }
O3
c
maria_lock_database: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq (%rdi), %rbx xorl %r15d, %r15d testb $0x1, 0x722(%rbx) jne 0x43ff6 movl %esi, %r12d movq %rdi, %r14 cmpl %esi, 0x664(%rdi) je 0x43ff6 cmpl $-0x1, %r12d je 0x43e45 cmpb $0x0, 0x680(%r14) jne 0x43dda leaq 0x8f0(%rbx), %rdi cmpq $0x0, 0x930(%rbx) jne 0x440f7 callq 0x2b230 xorl %r15d, %r15d cmpl $0x0, 0x760(%rbx) js 0x43fcd testl %r12d, %r12d je 0x43e94 cmpl $0x1, %r12d je 0x43e61 cmpl $0x2, %r12d jne 0x43fcd movq %r14, %rdi callq 0x6ffed cmpl $0x0, 0x664(%r14) je 0x43f0a movl 0x7b0(%rbx), %r12d decl %r12d movl %r12d, 0x7b0(%rbx) cmpq $0x0, 0x8b0(%rbx) je 0x43f2c movq %r14, %rdi callq 0x44abe jmp 0x43f2c incl 0x7b0(%rbx) incl 0x7b8(%rbx) movl $0xffffffff, 0x664(%r14) # imm = 0xFFFFFFFF jmp 0x43ff6 cmpl $0x0, 0x664(%r14) jne 0x43eb8 cmpl $0x1, 0x7b4(%rbx) jne 0x43eb8 movl $0x0, 0x7b4(%rbx) incl 0x7b0(%rbx) movl $0x1, 0x664(%r14) jmp 0x43fcd cmpl $0x1, 0x664(%r14) jne 0x43ee2 movq 0x7b0(%rbx), %xmm0 paddd 0xc97d2(%rip), %xmm0 # 0x10d680 movq %xmm0, 0x7b0(%rbx) jmp 0x43efa movl $0x1, 0x664(%r14) movq 0x6f0(%rbx), %rax movq %rax, 0x3e0(%r14) incl 0x7b0(%rbx) incl 0x7b8(%rbx) jmp 0x43fcd movq 0x7b4(%rbx), %xmm0 pcmpeqd %xmm1, %xmm1 psubd %xmm1, %xmm0 movq %xmm0, 0x7b4(%rbx) movl $0x0, 0x664(%r14) jmp 0x43fcd movl 0x7b4(%rbx), %r12d decl %r12d movl %r12d, 0x7b4(%rbx) movq 0x8e8(%rbx), %rax testq %rax, %rax je 0x43f2c movq %r14, %rdi callq *%rax decl 0x7b8(%rbx) xorl %r15d, %r15d cmpl $0x1, 0x664(%r14) jne 0x43f88 cmpl $0x0, 0x7b0(%rbx) jne 0x43f88 cmpb $0x0, 0x44c(%rbx) jne 0x43f88 cmpb $0x0, 0x7d9(%rbx) jne 0x43f88 xorl %eax, %eax cmpb $0x0, 0x7e5(%rbx) sete %al leal 0x1(,%rax,2), %esi xorl %r15d, %r15d movq %r14, %rdi xorl %edx, %edx xorl %ecx, %ecx callq 0x3d4bc testl %eax, %eax je 0x43f88 callq 0xc5c9a movl (%rax), %r15d testb $0x12, 0x61c(%r14) je 0x43fb5 leaq 0x4b8(%r14), %rdi callq 0xb658f testl %eax, %eax je 0x43fb5 callq 0xc5c9a movl (%rax), %r15d movq %r14, %rdi movl %r15d, %esi callq 0x3dca8 testl %r12d, %r12d je 0x44002 andb $-0x13, 0x61c(%r14) movl $0x2, 0x664(%r14) cmpb $0x0, 0x680(%r14) jne 0x43ff6 movq 0x930(%rbx), %rdi addq $0x8f0, %rbx # imm = 0x8F0 testq %rdi, %rdi jne 0x4410d movq %rbx, %rdi callq 0x2b1f0 movl %r15d, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq cmpb $0x0, 0x7de(%rbx) je 0x43fba cmpl $0x0, 0x7b0(%rbx) jne 0x43fba movq 0x40(%rbx), %rsi cmpq %rsi, 0xa00(%rbx) je 0x44080 cmpl $0x3e9, 0xa08(%rbx) # imm = 0x3E9 jb 0x44080 cmpb $0x0, 0x7e3(%rbx) je 0x44046 leaq 0xb78(%rbx), %rdi callq 0x44137 movq 0x40(%rbx), %rsi movq %r14, %rdi callq 0x48dd9 movl $0x0, 0xa08(%rbx) cmpb $0x0, 0x7e3(%rbx) je 0x44080 leaq 0xb78(%rbx), %r12 movq 0xc08(%rbx), %rdi testq %rdi, %rdi jne 0x44122 movq %r12, %rdi callq 0xc8b1a cmpb $0x0, 0x44c(%rbx) jne 0x440b1 movl 0x760(%rbx), %edi movq %rbx, %rsi movl $0x1, %edx callq 0x3b8c6 testl %eax, %eax je 0x440aa callq 0xc5c9a movl (%rax), %r15d jmp 0x440b1 movb $0x0, 0x7de(%rbx) leaq 0x40bce0(%rip), %rax # 0x44fd98 cmpb $0x0, (%rax) je 0x440d3 movq %r14, %rdi callq 0x3d6d6 testl %eax, %eax je 0x440da callq 0xc5c9a movl (%rax), %r15d jmp 0x440da movb $0x1, 0x7e0(%rbx) testl %r15d, %r15d je 0x440ef movq %r14, %rdi movl %r15d, %esi callq 0x3dca8 jmp 0x43fba xorl %r15d, %r15d jmp 0x43fba leaq 0xbe23d(%rip), %rsi # 0x10233b movl $0x33, %edx callq 0x324c0 jmp 0x43dda leaq 0x374af4(%rip), %rax # 0x3b8c08 movq (%rax), %rax callq *0x160(%rax) jmp 0x43fee leaq 0x374adf(%rip), %rax # 0x3b8c08 movq (%rax), %rax callq *0x168(%rax) jmp 0x44078
maria_lock_database: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov rbx, [rdi] xor r15d, r15d test byte ptr [rbx+722h], 1 jnz loc_43FF6 mov r12d, esi mov r14, rdi cmp [rdi+664h], esi jz loc_43FF6 cmp r12d, 0FFFFFFFFh jz loc_43E45 cmp byte ptr [r14+680h], 0 jnz short loc_43DDA lea rdi, [rbx+8F0h] cmp qword ptr [rbx+930h], 0 jnz loc_440F7 call _pthread_mutex_lock loc_43DDA: xor r15d, r15d cmp dword ptr [rbx+760h], 0 js loc_43FCD test r12d, r12d jz loc_43E94 cmp r12d, 1 jz short loc_43E61 cmp r12d, 2 jnz loc_43FCD mov rdi, r14 call maria_ftparser_call_deinitializer cmp dword ptr [r14+664h], 0 jz loc_43F0A mov r12d, [rbx+7B0h] dec r12d mov [rbx+7B0h], r12d cmp qword ptr [rbx+8B0h], 0 jz loc_43F2C mov rdi, r14 call _ma_update_status_with_lock jmp loc_43F2C loc_43E45: inc dword ptr [rbx+7B0h] inc dword ptr [rbx+7B8h] mov dword ptr [r14+664h], 0FFFFFFFFh jmp loc_43FF6 loc_43E61: cmp dword ptr [r14+664h], 0 jnz short loc_43EB8 cmp dword ptr [rbx+7B4h], 1 jnz short loc_43EB8 mov dword ptr [rbx+7B4h], 0 inc dword ptr [rbx+7B0h] mov dword ptr [r14+664h], 1 jmp loc_43FCD loc_43E94: cmp dword ptr [r14+664h], 1 jnz short loc_43EE2 movq xmm0, qword ptr [rbx+7B0h] paddd xmm0, cs:xmmword_10D680 movq qword ptr [rbx+7B0h], xmm0 jmp short loc_43EFA loc_43EB8: mov dword ptr [r14+664h], 1 mov rax, [rbx+6F0h] mov [r14+3E0h], rax inc dword ptr [rbx+7B0h] inc dword ptr [rbx+7B8h] jmp loc_43FCD loc_43EE2: movq xmm0, qword ptr [rbx+7B4h] pcmpeqd xmm1, xmm1 psubd xmm0, xmm1 movq qword ptr [rbx+7B4h], xmm0 loc_43EFA: mov dword ptr [r14+664h], 0 jmp loc_43FCD loc_43F0A: mov r12d, [rbx+7B4h] dec r12d mov [rbx+7B4h], r12d mov rax, [rbx+8E8h] test rax, rax jz short loc_43F2C mov rdi, r14 call rax loc_43F2C: dec dword ptr [rbx+7B8h] xor r15d, r15d cmp dword ptr [r14+664h], 1 jnz short loc_43F88 cmp dword ptr [rbx+7B0h], 0 jnz short loc_43F88 cmp byte ptr [rbx+44Ch], 0 jnz short loc_43F88 cmp byte ptr [rbx+7D9h], 0 jnz short loc_43F88 xor eax, eax cmp byte ptr [rbx+7E5h], 0 setz al lea esi, ds:1[rax*2] xor r15d, r15d mov rdi, r14 xor edx, edx xor ecx, ecx call _ma_flush_table_files test eax, eax jz short loc_43F88 call _my_thread_var mov r15d, [rax] loc_43F88: test byte ptr [r14+61Ch], 12h jz short loc_43FB5 lea rdi, [r14+4B8h] call end_io_cache test eax, eax jz short loc_43FB5 call _my_thread_var mov r15d, [rax] mov rdi, r14 mov esi, r15d call _ma_set_fatal_error loc_43FB5: test r12d, r12d jz short loc_44002 loc_43FBA: and byte ptr [r14+61Ch], 0EDh mov dword ptr [r14+664h], 2 loc_43FCD: cmp byte ptr [r14+680h], 0 jnz short loc_43FF6 mov rdi, [rbx+930h] add rbx, 8F0h test rdi, rdi jnz loc_4410D loc_43FEE: mov rdi, rbx call _pthread_mutex_unlock loc_43FF6: mov eax, r15d pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_44002: cmp byte ptr [rbx+7DEh], 0 jz short loc_43FBA cmp dword ptr [rbx+7B0h], 0 jnz short loc_43FBA mov rsi, [rbx+40h] cmp [rbx+0A00h], rsi jz short loc_44080 cmp dword ptr [rbx+0A08h], 3E9h jb short loc_44080 cmp byte ptr [rbx+7E3h], 0 jz short loc_44046 lea rdi, [rbx+0B78h] call inline_mysql_rwlock_wrlock_0 mov rsi, [rbx+40h] loc_44046: mov rdi, r14 call _ma_remap_file mov dword ptr [rbx+0A08h], 0 cmp byte ptr [rbx+7E3h], 0 jz short loc_44080 lea r12, [rbx+0B78h] mov rdi, [rbx+0C08h] test rdi, rdi jnz loc_44122 loc_44078: mov rdi, r12 call my_rw_unlock loc_44080: cmp byte ptr [rbx+44Ch], 0 jnz short loc_440B1 mov edi, [rbx+760h] mov rsi, rbx mov edx, 1 call _ma_state_info_write_sub test eax, eax jz short loc_440AA call _my_thread_var mov r15d, [rax] jmp short loc_440B1 loc_440AA: mov byte ptr [rbx+7DEh], 0 loc_440B1: lea rax, maria_flush cmp byte ptr [rax], 0 jz short loc_440D3 mov rdi, r14 call _ma_sync_table_files test eax, eax jz short loc_440DA call _my_thread_var mov r15d, [rax] jmp short loc_440DA loc_440D3: mov byte ptr [rbx+7E0h], 1 loc_440DA: test r15d, r15d jz short loc_440EF mov rdi, r14 mov esi, r15d call _ma_set_fatal_error jmp loc_43FBA loc_440EF: xor r15d, r15d jmp loc_43FBA loc_440F7: lea rsi, aWorkspaceLlm4b_36; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 33h ; '3' call psi_mutex_lock jmp loc_43DDA loc_4410D: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp loc_43FEE loc_44122: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+168h] jmp loc_44078
long long maria_lock_database(long long a1, int a2) { long long v2; // rbx unsigned int v3; // r15d long long v5; // rdi long long v6; // rdx long long v7; // rcx long long v8; // r8 int v9; // r9d int v10; // r12d void ( *v11)(long long); // rax long long v12; // rdx long long v13; // rcx long long v14; // r8 int v15; // r9d long long v16; // rdi long long v17; // rbx long long v19; // rsi long long v20; // rdi int v21; // eax v2 = *(_QWORD *)a1; v3 = 0; if ( (*(_BYTE *)(*(_QWORD *)a1 + 1826LL) & 1) == 0 && *(_DWORD *)(a1 + 1636) != a2 ) { if ( a2 == -1 ) { ++*(_DWORD *)(v2 + 1968); ++*(_DWORD *)(v2 + 1976); *(_DWORD *)(a1 + 1636) = -1; } else { if ( !*(_BYTE *)(a1 + 1664) ) { v5 = v2 + 2288; if ( *(_QWORD *)(v2 + 2352) ) psi_mutex_lock(v5, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_locking.c", 0x33u); else pthread_mutex_lock(v5); } v3 = 0; if ( *(int *)(v2 + 1888) >= 0 ) { if ( a2 ) { if ( a2 == 1 ) { if ( *(_DWORD *)(a1 + 1636) || *(_DWORD *)(v2 + 1972) != 1 ) { *(_DWORD *)(a1 + 1636) = 1; *(_QWORD *)(a1 + 992) = *(_QWORD *)(v2 + 1776); ++*(_DWORD *)(v2 + 1968); ++*(_DWORD *)(v2 + 1976); } else { *(_DWORD *)(v2 + 1972) = 0; ++*(_DWORD *)(v2 + 1968); *(_DWORD *)(a1 + 1636) = 1; } } else if ( a2 == 2 ) { maria_ftparser_call_deinitializer(a1); if ( *(_DWORD *)(a1 + 1636) ) { v10 = *(_DWORD *)(v2 + 1968) - 1; *(_DWORD *)(v2 + 1968) = v10; if ( *(_QWORD *)(v2 + 2224) ) ma_update_status_with_lock(a1); } else { v10 = *(_DWORD *)(v2 + 1972) - 1; *(_DWORD *)(v2 + 1972) = v10; v11 = *(void ( **)(long long))(v2 + 2280); if ( v11 ) v11(a1); } --*(_DWORD *)(v2 + 1976); v3 = 0; if ( *(_DWORD *)(a1 + 1636) == 1 && !*(_DWORD *)(v2 + 1968) && !*(_BYTE *)(v2 + 1100) && !*(_BYTE *)(v2 + 2009) ) { v3 = 0; if ( (unsigned int)ma_flush_table_files((long long *)a1, 2 * (*(_BYTE *)(v2 + 2021) == 0) + 1, 0, 0) ) v3 = *(_DWORD *)my_thread_var(a1); } if ( (*(_BYTE *)(a1 + 1564) & 0x12) != 0 && (unsigned int)end_io_cache(a1 + 1208) ) { v3 = *(_DWORD *)my_thread_var(a1 + 1208); ma_set_fatal_error((_DWORD *)a1, v3, v12, v13, v14, v15); } if ( !v10 && *(_BYTE *)(v2 + 2014) && !*(_DWORD *)(v2 + 1968) ) { v19 = *(_QWORD *)(v2 + 64); if ( *(_QWORD *)(v2 + 2560) != v19 && *(_DWORD *)(v2 + 2568) >= 0x3E9u ) { if ( *(_BYTE *)(v2 + 2019) ) { inline_mysql_rwlock_wrlock_0(v2 + 2936); v19 = *(_QWORD *)(v2 + 64); } ma_remap_file(a1, v19); *(_DWORD *)(v2 + 2568) = 0; if ( *(_BYTE *)(v2 + 2019) ) { if ( *(_QWORD *)(v2 + 3080) ) PSI_server[45](); my_rw_unlock(v2 + 2936); } } if ( !*(_BYTE *)(v2 + 1100) ) { v20 = *(unsigned int *)(v2 + 1888); LOBYTE(v21) = ma_state_info_write_sub(v20, (__int128 *)v2, 1); if ( v21 ) v3 = *(_DWORD *)my_thread_var(v20); else *(_BYTE *)(v2 + 2014) = 0; } if ( maria_flush ) { if ( ma_sync_table_files((_DWORD *)a1) ) v3 = *(_DWORD *)my_thread_var(a1); } else { *(_BYTE *)(v2 + 2016) = 1; } if ( v3 ) ma_set_fatal_error((_DWORD *)a1, v3, v6, v7, v8, v9); else v3 = 0; } *(_BYTE *)(a1 + 1564) &= 0xEDu; *(_DWORD *)(a1 + 1636) = 2; } } else { if ( *(_DWORD *)(a1 + 1636) == 1 ) *(_QWORD *)(v2 + 1968) = _mm_add_epi32( _mm_loadl_epi64((const __m128i *)(v2 + 1968)), (__m128i)xmmword_10D680).m128i_u64[0]; else *(_QWORD *)(v2 + 1972) = _mm_sub_epi32(_mm_loadl_epi64((const __m128i *)(v2 + 1972)), (__m128i)-1LL).m128i_u64[0]; *(_DWORD *)(a1 + 1636) = 0; } } if ( !*(_BYTE *)(a1 + 1664) ) { v16 = *(_QWORD *)(v2 + 2352); v17 = v2 + 2288; if ( v16 ) PSI_server[44](); pthread_mutex_unlock(v17); } } } return v3; }
maria_lock_database: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV RBX,qword ptr [RDI] XOR R15D,R15D TEST byte ptr [RBX + 0x722],0x1 JNZ 0x00143ff6 MOV R12D,ESI MOV R14,RDI CMP dword ptr [RDI + 0x664],ESI JZ 0x00143ff6 CMP R12D,-0x1 JZ 0x00143e45 CMP byte ptr [R14 + 0x680],0x0 JNZ 0x00143dda LEA RDI,[RBX + 0x8f0] CMP qword ptr [RBX + 0x930],0x0 JNZ 0x001440f7 CALL 0x0012b230 LAB_00143dda: XOR R15D,R15D CMP dword ptr [RBX + 0x760],0x0 JS 0x00143fcd TEST R12D,R12D JZ 0x00143e94 CMP R12D,0x1 JZ 0x00143e61 CMP R12D,0x2 JNZ 0x00143fcd MOV RDI,R14 CALL 0x0016ffed CMP dword ptr [R14 + 0x664],0x0 JZ 0x00143f0a MOV R12D,dword ptr [RBX + 0x7b0] DEC R12D MOV dword ptr [RBX + 0x7b0],R12D CMP qword ptr [RBX + 0x8b0],0x0 JZ 0x00143f2c MOV RDI,R14 CALL 0x00144abe JMP 0x00143f2c LAB_00143e45: INC dword ptr [RBX + 0x7b0] INC dword ptr [RBX + 0x7b8] MOV dword ptr [R14 + 0x664],0xffffffff JMP 0x00143ff6 LAB_00143e61: CMP dword ptr [R14 + 0x664],0x0 JNZ 0x00143eb8 CMP dword ptr [RBX + 0x7b4],0x1 JNZ 0x00143eb8 MOV dword ptr [RBX + 0x7b4],0x0 INC dword ptr [RBX + 0x7b0] MOV dword ptr [R14 + 0x664],0x1 JMP 0x00143fcd LAB_00143e94: CMP dword ptr [R14 + 0x664],0x1 JNZ 0x00143ee2 MOVQ XMM0,qword ptr [RBX + 0x7b0] PADDD XMM0,xmmword ptr [0x0020d680] MOVQ qword ptr [RBX + 0x7b0],XMM0 JMP 0x00143efa LAB_00143eb8: MOV dword ptr [R14 + 0x664],0x1 MOV RAX,qword ptr [RBX + 0x6f0] MOV qword ptr [R14 + 0x3e0],RAX INC dword ptr [RBX + 0x7b0] INC dword ptr [RBX + 0x7b8] JMP 0x00143fcd LAB_00143ee2: MOVQ XMM0,qword ptr [RBX + 0x7b4] PCMPEQD XMM1,XMM1 PSUBD XMM0,XMM1 MOVQ qword ptr [RBX + 0x7b4],XMM0 LAB_00143efa: MOV dword ptr [R14 + 0x664],0x0 JMP 0x00143fcd LAB_00143f0a: MOV R12D,dword ptr [RBX + 0x7b4] DEC R12D MOV dword ptr [RBX + 0x7b4],R12D MOV RAX,qword ptr [RBX + 0x8e8] TEST RAX,RAX JZ 0x00143f2c MOV RDI,R14 CALL RAX LAB_00143f2c: DEC dword ptr [RBX + 0x7b8] XOR R15D,R15D CMP dword ptr [R14 + 0x664],0x1 JNZ 0x00143f88 CMP dword ptr [RBX + 0x7b0],0x0 JNZ 0x00143f88 CMP byte ptr [RBX + 0x44c],0x0 JNZ 0x00143f88 CMP byte ptr [RBX + 0x7d9],0x0 JNZ 0x00143f88 XOR EAX,EAX CMP byte ptr [RBX + 0x7e5],0x0 SETZ AL LEA ESI,[0x1 + RAX*0x2] XOR R15D,R15D MOV RDI,R14 XOR EDX,EDX XOR ECX,ECX CALL 0x0013d4bc TEST EAX,EAX JZ 0x00143f88 CALL 0x001c5c9a MOV R15D,dword ptr [RAX] LAB_00143f88: TEST byte ptr [R14 + 0x61c],0x12 JZ 0x00143fb5 LEA RDI,[R14 + 0x4b8] CALL 0x001b658f TEST EAX,EAX JZ 0x00143fb5 CALL 0x001c5c9a MOV R15D,dword ptr [RAX] MOV RDI,R14 MOV ESI,R15D CALL 0x0013dca8 LAB_00143fb5: TEST R12D,R12D JZ 0x00144002 LAB_00143fba: AND byte ptr [R14 + 0x61c],0xed MOV dword ptr [R14 + 0x664],0x2 LAB_00143fcd: CMP byte ptr [R14 + 0x680],0x0 JNZ 0x00143ff6 MOV RDI,qword ptr [RBX + 0x930] ADD RBX,0x8f0 TEST RDI,RDI JNZ 0x0014410d LAB_00143fee: MOV RDI,RBX CALL 0x0012b1f0 LAB_00143ff6: MOV EAX,R15D POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_00144002: CMP byte ptr [RBX + 0x7de],0x0 JZ 0x00143fba CMP dword ptr [RBX + 0x7b0],0x0 JNZ 0x00143fba MOV RSI,qword ptr [RBX + 0x40] CMP qword ptr [RBX + 0xa00],RSI JZ 0x00144080 CMP dword ptr [RBX + 0xa08],0x3e9 JC 0x00144080 CMP byte ptr [RBX + 0x7e3],0x0 JZ 0x00144046 LEA RDI,[RBX + 0xb78] CALL 0x00144137 MOV RSI,qword ptr [RBX + 0x40] LAB_00144046: MOV RDI,R14 CALL 0x00148dd9 MOV dword ptr [RBX + 0xa08],0x0 CMP byte ptr [RBX + 0x7e3],0x0 JZ 0x00144080 LEA R12,[RBX + 0xb78] MOV RDI,qword ptr [RBX + 0xc08] TEST RDI,RDI JNZ 0x00144122 LAB_00144078: MOV RDI,R12 CALL 0x001c8b1a LAB_00144080: CMP byte ptr [RBX + 0x44c],0x0 JNZ 0x001440b1 MOV EDI,dword ptr [RBX + 0x760] MOV RSI,RBX MOV EDX,0x1 CALL 0x0013b8c6 TEST EAX,EAX JZ 0x001440aa CALL 0x001c5c9a MOV R15D,dword ptr [RAX] JMP 0x001440b1 LAB_001440aa: MOV byte ptr [RBX + 0x7de],0x0 LAB_001440b1: LEA RAX,[0x54fd98] CMP byte ptr [RAX],0x0 JZ 0x001440d3 MOV RDI,R14 CALL 0x0013d6d6 TEST EAX,EAX JZ 0x001440da CALL 0x001c5c9a MOV R15D,dword ptr [RAX] JMP 0x001440da LAB_001440d3: MOV byte ptr [RBX + 0x7e0],0x1 LAB_001440da: TEST R15D,R15D JZ 0x001440ef MOV RDI,R14 MOV ESI,R15D CALL 0x0013dca8 JMP 0x00143fba LAB_001440ef: XOR R15D,R15D JMP 0x00143fba LAB_001440f7: LEA RSI,[0x20233b] MOV EDX,0x33 CALL 0x001324c0 JMP 0x00143dda LAB_0014410d: LEA RAX,[0x4b8c08] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x00143fee LAB_00144122: LEA RAX,[0x4b8c08] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x168] JMP 0x00144078
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ int maria_lock_database(long *param_1,int param_2) { long lVar1; int iVar2; int *piVar3; long lVar4; int iVar5; int iVar6; lVar1 = *param_1; iVar6 = 0; if (((*(byte *)(lVar1 + 0x722) & 1) == 0) && (iVar6 = 0, *(int *)((long)param_1 + 0x664) != param_2)) { if (param_2 == -1) { *(int *)(lVar1 + 0x7b0) = *(int *)(lVar1 + 0x7b0) + 1; *(int *)(lVar1 + 0x7b8) = *(int *)(lVar1 + 0x7b8) + 1; *(int4 *)((long)param_1 + 0x664) = 0xffffffff; } else { if ((char)param_1[0xd0] == '\0') { if (*(long *)(lVar1 + 0x930) == 0) { pthread_mutex_lock((pthread_mutex_t *)(lVar1 + 0x8f0)); } else { psi_mutex_lock((pthread_mutex_t *)(lVar1 + 0x8f0), "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_locking.c",0x33) ; } } iVar5 = 0; iVar6 = 0; if (-1 < *(int *)(lVar1 + 0x760)) { iVar6 = iVar5; if (param_2 == 0) { if (*(int *)((long)param_1 + 0x664) == 1) { *(ulong *)(lVar1 + 0x7b0) = CONCAT44((int)((ulong)*(int8 *)(lVar1 + 0x7b0) >> 0x20) + _UNK_0020d684, (int)*(int8 *)(lVar1 + 0x7b0) + _DAT_0020d680); } else { *(ulong *)(lVar1 + 0x7b4) = CONCAT44((int)((ulong)*(int8 *)(lVar1 + 0x7b4) >> 0x20) + 1, (int)*(int8 *)(lVar1 + 0x7b4) + 1); } *(int4 *)((long)param_1 + 0x664) = 0; } else if (param_2 == 1) { if ((*(int *)((long)param_1 + 0x664) == 0) && (*(int *)(lVar1 + 0x7b4) == 1)) { *(int4 *)(lVar1 + 0x7b4) = 0; *(int *)(lVar1 + 0x7b0) = *(int *)(lVar1 + 0x7b0) + 1; *(int4 *)((long)param_1 + 0x664) = 1; } else { *(int4 *)((long)param_1 + 0x664) = 1; param_1[0x7c] = *(long *)(lVar1 + 0x6f0); *(int *)(lVar1 + 0x7b0) = *(int *)(lVar1 + 0x7b0) + 1; *(int *)(lVar1 + 0x7b8) = *(int *)(lVar1 + 0x7b8) + 1; } } else if (param_2 == 2) { maria_ftparser_call_deinitializer(param_1); if (*(int *)((long)param_1 + 0x664) == 0) { iVar5 = *(int *)(lVar1 + 0x7b4) + -1; *(int *)(lVar1 + 0x7b4) = iVar5; if (*(code **)(lVar1 + 0x8e8) != (code *)0x0) { (**(code **)(lVar1 + 0x8e8))(param_1); } } else { iVar5 = *(int *)(lVar1 + 0x7b0) + -1; *(int *)(lVar1 + 0x7b0) = iVar5; if (*(long *)(lVar1 + 0x8b0) != 0) { _ma_update_status_with_lock(param_1); } } *(int *)(lVar1 + 0x7b8) = *(int *)(lVar1 + 0x7b8) + -1; iVar2 = 0; iVar6 = 0; if ((((*(int *)((long)param_1 + 0x664) == 1) && (iVar6 = iVar2, *(int *)(lVar1 + 0x7b0) == 0)) && (*(char *)(lVar1 + 0x44c) == '\0')) && (*(char *)(lVar1 + 0x7d9) == '\0')) { iVar6 = 0; iVar2 = _ma_flush_table_files (param_1,(*(char *)(lVar1 + 0x7e5) == '\0') * '\x02' + '\x01',0,0); if (iVar2 != 0) { piVar3 = (int *)_my_thread_var(); iVar6 = *piVar3; } } if ((*(byte *)((long)param_1 + 0x61c) & 0x12) != 0) { iVar2 = end_io_cache(param_1 + 0x97); if (iVar2 != 0) { piVar3 = (int *)_my_thread_var(); iVar6 = *piVar3; _ma_set_fatal_error(param_1,iVar6); } } if (((iVar5 == 0) && (*(char *)(lVar1 + 0x7de) != '\0')) && (*(int *)(lVar1 + 0x7b0) == 0) ) { lVar4 = *(long *)(lVar1 + 0x40); if ((*(long *)(lVar1 + 0xa00) != lVar4) && (1000 < *(uint *)(lVar1 + 0xa08))) { if (*(char *)(lVar1 + 0x7e3) != '\0') { inline_mysql_rwlock_wrlock(lVar1 + 0xb78); lVar4 = *(long *)(lVar1 + 0x40); } _ma_remap_file(param_1,lVar4); *(int4 *)(lVar1 + 0xa08) = 0; if (*(char *)(lVar1 + 0x7e3) != '\0') { if (*(long *)(lVar1 + 0xc08) != 0) { (**(code **)(PSI_server + 0x168))(); } my_rw_unlock(lVar1 + 0xb78); } } if (*(char *)(lVar1 + 0x44c) == '\0') { iVar5 = _ma_state_info_write_sub(*(int4 *)(lVar1 + 0x760),lVar1,1); if (iVar5 == 0) { *(int1 *)(lVar1 + 0x7de) = 0; } else { piVar3 = (int *)_my_thread_var(); iVar6 = *piVar3; } } if (maria_flush == '\0') { *(int1 *)(lVar1 + 0x7e0) = 1; } else { iVar5 = _ma_sync_table_files(param_1); if (iVar5 != 0) { piVar3 = (int *)_my_thread_var(); iVar6 = *piVar3; } } if (iVar6 == 0) { iVar6 = 0; } else { _ma_set_fatal_error(param_1,iVar6); } } *(byte *)((long)param_1 + 0x61c) = *(byte *)((long)param_1 + 0x61c) & 0xed; *(int4 *)((long)param_1 + 0x664) = 2; } } if ((char)param_1[0xd0] == '\0') { if (*(long *)(lVar1 + 0x930) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock((pthread_mutex_t *)(lVar1 + 0x8f0)); } } } return iVar6; }
65,303
wake_up_waiters
eloqsql/mysys/thr_lock.c
static void wake_up_waiters(THR_LOCK *lock) { THR_LOCK_DATA *data; enum thr_lock_type lock_type; DBUG_ENTER("wake_up_waiters"); check_locks(lock, "before waking up waiters", TL_UNLOCK, 1); if (!lock->write.data) /* If no active write locks */ { data=lock->write_wait.data; if (!lock->read.data) /* If no more locks in use */ { /* Release write-locks with TL_WRITE or TL_WRITE_ONLY priority first */ if (data && (data->type != TL_WRITE_LOW_PRIORITY || !lock->read_wait.data || lock->read_wait.data->type < TL_READ_HIGH_PRIORITY)) { if (lock->write_lock_count++ > max_write_lock_count) { /* Too many write locks in a row; Release all waiting read locks */ lock->write_lock_count=0; if (lock->read_wait.data) { DBUG_PRINT("info",("Freeing all read_locks because of max_write_lock_count")); free_all_read_locks(lock,0); goto end; } } for (;;) { if (((*data->prev)=data->next)) /* remove from wait-list */ data->next->prev= data->prev; else lock->write_wait.last=data->prev; (*lock->write.last)=data; /* Put in execute list */ data->prev=lock->write.last; data->next=0; lock->write.last= &data->next; if (data->type == TL_WRITE_CONCURRENT_INSERT && (*lock->check_status)(data->status_param)) data->type=TL_WRITE; /* Upgrade lock */ /* purecov: begin inspected */ DBUG_PRINT("lock",("giving write lock of type %d to thread: %lu", data->type, (ulong) data->owner->thread_id)); /* purecov: end */ { mysql_cond_t *cond= data->cond; data->cond=0; /* Mark thread free */ mysql_cond_signal(cond); /* Start waiting thread */ } if (data->type != TL_WRITE_ALLOW_WRITE || !lock->write_wait.data || lock->write_wait.data->type != TL_WRITE_ALLOW_WRITE) break; data=lock->write_wait.data; /* Free this too */ } if (data->type >= TL_WRITE_LOW_PRIORITY) goto end; /* Release possible read locks together with the write lock */ } if (lock->read_wait.data) free_all_read_locks(lock, data && (data->type == TL_WRITE_CONCURRENT_INSERT || data->type == TL_WRITE_ALLOW_WRITE)); else { DBUG_PRINT("lock",("No waiting read locks to free")); } } else if (data && (lock_type=data->type) <= TL_WRITE_DELAYED && ((lock_type != TL_WRITE_CONCURRENT_INSERT && lock_type != TL_WRITE_ALLOW_WRITE) || !lock->read_no_write_count)) { /* For DELAYED, ALLOW_READ, WRITE_ALLOW_WRITE or CONCURRENT_INSERT locks start WRITE locks together with the READ locks */ if (lock_type == TL_WRITE_CONCURRENT_INSERT && (*lock->check_status)(data->status_param)) { data->type=TL_WRITE; /* Upgrade lock */ if (lock->read_wait.data) free_all_read_locks(lock,0); goto end; } do { mysql_cond_t *cond= data->cond; if (((*data->prev)=data->next)) /* remove from wait-list */ data->next->prev= data->prev; else lock->write_wait.last=data->prev; (*lock->write.last)=data; /* Put in execute list */ data->prev=lock->write.last; lock->write.last= &data->next; data->next=0; /* Only one write lock */ data->cond=0; /* Mark thread free */ mysql_cond_signal(cond); /* Start waiting thread */ } while (lock_type == TL_WRITE_ALLOW_WRITE && (data=lock->write_wait.data) && data->type == TL_WRITE_ALLOW_WRITE); if (lock->read_wait.data) free_all_read_locks(lock, (lock_type == TL_WRITE_CONCURRENT_INSERT || lock_type == TL_WRITE_ALLOW_WRITE)); } else if (!data && lock->read_wait.data) free_all_read_locks(lock,0); } end: check_locks(lock, "after waking up waiters", TL_UNLOCK, 0); DBUG_VOID_RETURN; }
O3
c
wake_up_waiters: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax cmpq $0x0, 0x90(%rdi) je 0xad014 addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rdi, %rbx movq 0x80(%rdi), %r15 cmpq $0x0, 0x70(%rdi) je 0xad08e testq %r15, %r15 je 0xad15e movl 0x40(%r15), %r13d cmpl $0x9, %r13d jg 0xad005 leal -0x9(%r13), %r14d cmpl $-0x2, %r14d jb 0xad04b cmpl $0x0, 0xa8(%rbx) jne 0xad005 cmpl $0x8, %r13d jne 0xad2b9 movq 0x28(%r15), %rdi callq *0xd8(%rbx) testb %al, %al je 0xad2b9 movl $0xd, 0x40(%r15) cmpq $0x0, 0x60(%rbx) je 0xad005 movq %rbx, %rdi xorl %esi, %esi addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0xae630 testq %r15, %r15 je 0xad1d5 cmpl $0xb, 0x40(%r15) jne 0xad0b6 movq 0x60(%rbx), %rcx testq %rcx, %rcx je 0xad0b6 movl $0xb, %eax cmpl $0x3, 0x40(%rcx) jg 0xad410 movq 0xa0(%rbx), %rax leaq 0x1(%rax), %rcx movq %rcx, 0xa0(%rbx) leaq 0x2e64e9(%rip), %rcx # 0x3935b8 cmpq (%rcx), %rax jbe 0xad1ee movq $0x0, 0xa0(%rbx) movq 0x60(%rbx), %r12 testq %r12, %r12 je 0xad1ee leaq 0x60(%rbx), %rax movq 0x78(%rbx), %rcx movq %r12, (%rcx) movq 0x78(%rbx), %rcx movq %rcx, 0x10(%r12) movq 0x68(%rbx), %rcx movq %rcx, 0x78(%rbx) movq %rax, 0x68(%rbx) leaq 0x2e6941(%rip), %r15 # 0x393a58 movq 0x20(%r12), %r14 cmpl $0x5, 0x40(%r12) jne 0xad12a incl 0xa8(%rbx) movq $0x0, 0x20(%r12) movq 0x30(%r14), %rdi testq %rdi, %rdi jne 0xad153 movq %r14, %rdi callq 0x2a5d0 movq 0x8(%r12), %r12 testq %r12, %r12 jne 0xad117 jmp 0xad4cc movq (%r15), %rax callq *0x170(%rax) jmp 0xad13c movq 0x60(%rbx), %r15 testq %r15, %r15 je 0xad005 leaq 0x60(%rbx), %rax movq 0x78(%rbx), %rcx movq %r15, (%rcx) movq 0x78(%rbx), %rcx movq %rcx, 0x10(%r15) movq 0x68(%rbx), %rcx movq %rcx, 0x78(%rbx) movq %rax, 0x68(%rbx) leaq 0x2e68c7(%rip), %r12 # 0x393a58 movq 0x20(%r15), %r14 cmpl $0x5, 0x40(%r15) jne 0xad1a2 incl 0xa8(%rbx) movq $0x0, 0x20(%r15) movq 0x30(%r14), %rdi testq %rdi, %rdi jne 0xad1c9 movq %r14, %rdi callq 0x2a5d0 movq 0x8(%r15), %r15 testq %r15, %r15 jne 0xad191 jmp 0xad4cc movq (%r12), %rax callq *0x170(%rax) jmp 0xad1b3 movq 0x60(%rbx), %r15 testq %r15, %r15 je 0xad005 leaq 0x60(%rbx), %rcx movb $0x1, %r12b jmp 0xad42b leaq 0x88(%rbx), %r12 leaq 0x2e685c(%rip), %r13 # 0x393a58 leaq 0x8(%r15), %rax movq 0x8(%r15), %rcx movq 0x10(%r15), %rdx movq %rcx, (%rdx) leaq 0x10(%rcx), %rdx testq %rcx, %rcx movq 0x10(%r15), %rcx cmoveq %r12, %rdx movq %rcx, (%rdx) movq 0x98(%rbx), %rcx movq %r15, (%rcx) movq 0x98(%rbx), %rcx movq %rcx, 0x10(%r15) movq $0x0, 0x8(%r15) movq %rax, 0x98(%rbx) cmpl $0x8, 0x40(%r15) jne 0xad25e movq 0x28(%r15), %rdi callq *0xd8(%rbx) testb %al, %al je 0xad25e movl $0xd, 0x40(%r15) movq 0x20(%r15), %r14 movq $0x0, 0x20(%r15) movq 0x30(%r14), %rdi testq %rdi, %rdi jne 0xad2ad movq %r14, %rdi callq 0x2a5d0 movl 0x40(%r15), %eax cmpl $0x7, %eax jne 0xad407 movq 0x80(%rbx), %r15 movl $0x7, %eax testq %r15, %r15 je 0xad410 cmpl $0x7, 0x40(%r15) je 0xad1fc jmp 0xad410 movq (%r13), %rax callq *0x170(%rax) jmp 0xad273 movl %r14d, -0x2c(%rbp) leaq 0x88(%rbx), %r12 movq 0x20(%r15), %r14 leaq 0x8(%r15), %rax movq 0x8(%r15), %rcx movq 0x10(%r15), %rdx movq %rcx, (%rdx) leaq 0x10(%rcx), %rdx testq %rcx, %rcx movq 0x10(%r15), %rcx cmoveq %r12, %rdx movq %rcx, (%rdx) movq 0x98(%rbx), %rcx movq %r15, (%rcx) movq 0x98(%rbx), %rcx movq %rcx, 0x10(%r15) movq %rax, 0x98(%rbx) xorl %eax, %eax movq %rax, 0x8(%r15) movq %rax, 0x20(%r15) movq 0x30(%r14), %rdi testq %rdi, %rdi jne 0xad33b movq %r14, %rdi callq 0x2a5d0 cmpl $0x7, %r13d jne 0xad34d movq 0x80(%rbx), %r15 testq %r15, %r15 je 0xad34d cmpl $0x7, 0x40(%r15) je 0xad2c4 jmp 0xad34d leaq 0x2e6716(%rip), %rax # 0x393a58 movq (%rax), %rax callq *0x170(%rax) jmp 0xad318 movq 0x60(%rbx), %r15 testq %r15, %r15 movl -0x2c(%rbp), %r12d je 0xad005 leaq 0x60(%rbx), %rax leaq 0x78(%rbx), %r13 movq 0x78(%rbx), %rcx movq %r15, (%rcx) movq 0x78(%rbx), %rcx movq %rcx, 0x10(%r15) movq 0x68(%rbx), %rcx movq %rcx, 0x78(%rbx) movq %rax, 0x68(%rbx) movq 0x20(%r15), %r14 cmpl $0x5, 0x40(%r15) jne 0xad398 cmpl $-0x2, %r12d jae 0xad3b3 incl 0xa8(%rbx) movq $0x0, 0x20(%r15) movq 0x30(%r14), %rdi testq %rdi, %rdi jne 0xad3f5 movq %r14, %rdi callq 0x2a5d0 jmp 0xad3e7 leaq 0x8(%r15), %rax movq 0x8(%r15), %rcx movq 0x10(%r15), %rdx movq %rcx, (%rdx) leaq 0x10(%rcx), %rdx testq %rcx, %rcx movq 0x10(%r15), %rcx cmoveq %r13, %rdx movq %rcx, (%rdx) movq 0x68(%rbx), %rcx movq %r15, (%rcx) movq 0x68(%rbx), %rcx movq %rcx, 0x10(%r15) movq %rax, 0x68(%rbx) movq 0x8(%r15), %r15 testq %r15, %r15 jne 0xad381 jmp 0xad4cc leaq 0x2e665c(%rip), %rax # 0x393a58 movq (%rax), %rax callq *0x170(%rax) jmp 0xad3a9 cmpl $0xa, %eax jg 0xad005 movq 0x60(%rbx), %r15 testq %r15, %r15 je 0xad005 leaq 0x60(%rbx), %rcx addl $-0x9, %eax cmpl $-0x2, %eax setb %r12b leaq 0x78(%rbx), %r13 movq 0x78(%rbx), %rax movq %r15, (%rax) movq 0x78(%rbx), %rax movq %rax, 0x10(%r15) movq 0x68(%rbx), %rax movq %rax, 0x78(%rbx) movq %rcx, 0x68(%rbx) movq 0x20(%r15), %r14 cmpl $0x5, 0x40(%r15) jne 0xad460 testb %r12b, %r12b je 0xad47b incl 0xa8(%rbx) movq $0x0, 0x20(%r15) movq 0x30(%r14), %rdi testq %rdi, %rdi jne 0xad4ba movq %r14, %rdi callq 0x2a5d0 jmp 0xad4af leaq 0x8(%r15), %rax movq 0x8(%r15), %rcx movq 0x10(%r15), %rdx movq %rcx, (%rdx) leaq 0x10(%rcx), %rdx testq %rcx, %rcx movq 0x10(%r15), %rcx cmoveq %r13, %rdx movq %rcx, (%rdx) movq 0x68(%rbx), %rcx movq %r15, (%rcx) movq 0x68(%rbx), %rcx movq %rcx, 0x10(%r15) movq %rax, 0x68(%rbx) movq 0x8(%r15), %r15 testq %r15, %r15 jne 0xad44a jmp 0xad4cc leaq 0x2e6597(%rip), %rax # 0x393a58 movq (%rax), %rax callq *0x170(%rax) jmp 0xad471 movq 0x68(%rbx), %rax movq $0x0, (%rax) cmpq $0x0, 0x60(%rbx) jne 0xad005 movq $0x0, 0xa0(%rbx) jmp 0xad005
wake_up_waiters: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax cmp qword ptr [rdi+90h], 0 jz short loc_AD014 loc_AD005: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_AD014: mov rbx, rdi mov r15, [rdi+80h] cmp qword ptr [rdi+70h], 0 jz short loc_AD08E test r15, r15 jz loc_AD15E mov r13d, [r15+40h] cmp r13d, 9 jg short loc_AD005 lea r14d, [r13-9] cmp r14d, 0FFFFFFFEh jb short loc_AD04B cmp dword ptr [rbx+0A8h], 0 jnz short loc_AD005 loc_AD04B: cmp r13d, 8 jnz loc_AD2B9 mov rdi, [r15+28h] call qword ptr [rbx+0D8h] test al, al jz loc_AD2B9 mov dword ptr [r15+40h], 0Dh cmp qword ptr [rbx+60h], 0 jz short loc_AD005 mov rdi, rbx xor esi, esi add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp free_all_read_locks loc_AD08E: test r15, r15 jz loc_AD1D5 cmp dword ptr [r15+40h], 0Bh jnz short loc_AD0B6 mov rcx, [rbx+60h] test rcx, rcx jz short loc_AD0B6 mov eax, 0Bh cmp dword ptr [rcx+40h], 3 jg loc_AD410 loc_AD0B6: mov rax, [rbx+0A0h] lea rcx, [rax+1] mov [rbx+0A0h], rcx lea rcx, max_write_lock_count cmp rax, [rcx] jbe loc_AD1EE mov qword ptr [rbx+0A0h], 0 mov r12, [rbx+60h] test r12, r12 jz loc_AD1EE lea rax, [rbx+60h] mov rcx, [rbx+78h] mov [rcx], r12 mov rcx, [rbx+78h] mov [r12+10h], rcx mov rcx, [rbx+68h] mov [rbx+78h], rcx mov [rbx+68h], rax lea r15, PSI_server loc_AD117: mov r14, [r12+20h] cmp dword ptr [r12+40h], 5 jnz short loc_AD12A inc dword ptr [rbx+0A8h] loc_AD12A: mov qword ptr [r12+20h], 0 mov rdi, [r14+30h] test rdi, rdi jnz short loc_AD153 loc_AD13C: mov rdi, r14 call _pthread_cond_signal mov r12, [r12+8] test r12, r12 jnz short loc_AD117 jmp loc_AD4CC loc_AD153: mov rax, [r15] call qword ptr [rax+170h] jmp short loc_AD13C loc_AD15E: mov r15, [rbx+60h] test r15, r15 jz loc_AD005 lea rax, [rbx+60h] mov rcx, [rbx+78h] mov [rcx], r15 mov rcx, [rbx+78h] mov [r15+10h], rcx mov rcx, [rbx+68h] mov [rbx+78h], rcx mov [rbx+68h], rax lea r12, PSI_server loc_AD191: mov r14, [r15+20h] cmp dword ptr [r15+40h], 5 jnz short loc_AD1A2 inc dword ptr [rbx+0A8h] loc_AD1A2: mov qword ptr [r15+20h], 0 mov rdi, [r14+30h] test rdi, rdi jnz short loc_AD1C9 loc_AD1B3: mov rdi, r14 call _pthread_cond_signal mov r15, [r15+8] test r15, r15 jnz short loc_AD191 jmp loc_AD4CC loc_AD1C9: mov rax, [r12] call qword ptr [rax+170h] jmp short loc_AD1B3 loc_AD1D5: mov r15, [rbx+60h] test r15, r15 jz loc_AD005 lea rcx, [rbx+60h] mov r12b, 1 jmp loc_AD42B loc_AD1EE: lea r12, [rbx+88h] lea r13, PSI_server loc_AD1FC: lea rax, [r15+8] mov rcx, [r15+8] mov rdx, [r15+10h] mov [rdx], rcx lea rdx, [rcx+10h] test rcx, rcx mov rcx, [r15+10h] cmovz rdx, r12 mov [rdx], rcx mov rcx, [rbx+98h] mov [rcx], r15 mov rcx, [rbx+98h] mov [r15+10h], rcx mov qword ptr [r15+8], 0 mov [rbx+98h], rax cmp dword ptr [r15+40h], 8 jnz short loc_AD25E mov rdi, [r15+28h] call qword ptr [rbx+0D8h] test al, al jz short loc_AD25E mov dword ptr [r15+40h], 0Dh loc_AD25E: mov r14, [r15+20h] mov qword ptr [r15+20h], 0 mov rdi, [r14+30h] test rdi, rdi jnz short loc_AD2AD loc_AD273: mov rdi, r14 call _pthread_cond_signal mov eax, [r15+40h] cmp eax, 7 jnz loc_AD407 mov r15, [rbx+80h] mov eax, 7 test r15, r15 jz loc_AD410 cmp dword ptr [r15+40h], 7 jz loc_AD1FC jmp loc_AD410 loc_AD2AD: mov rax, [r13+0] call qword ptr [rax+170h] jmp short loc_AD273 loc_AD2B9: mov [rbp+var_2C], r14d lea r12, [rbx+88h] loc_AD2C4: mov r14, [r15+20h] lea rax, [r15+8] mov rcx, [r15+8] mov rdx, [r15+10h] mov [rdx], rcx lea rdx, [rcx+10h] test rcx, rcx mov rcx, [r15+10h] cmovz rdx, r12 mov [rdx], rcx mov rcx, [rbx+98h] mov [rcx], r15 mov rcx, [rbx+98h] mov [r15+10h], rcx mov [rbx+98h], rax xor eax, eax mov [r15+8], rax mov [r15+20h], rax mov rdi, [r14+30h] test rdi, rdi jnz short loc_AD33B loc_AD318: mov rdi, r14 call _pthread_cond_signal cmp r13d, 7 jnz short loc_AD34D mov r15, [rbx+80h] test r15, r15 jz short loc_AD34D cmp dword ptr [r15+40h], 7 jz short loc_AD2C4 jmp short loc_AD34D loc_AD33B: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+170h] jmp short loc_AD318 loc_AD34D: mov r15, [rbx+60h] test r15, r15 mov r12d, [rbp+var_2C] jz loc_AD005 lea rax, [rbx+60h] lea r13, [rbx+78h] mov rcx, [rbx+78h] mov [rcx], r15 mov rcx, [rbx+78h] mov [r15+10h], rcx mov rcx, [rbx+68h] mov [rbx+78h], rcx mov [rbx+68h], rax loc_AD381: mov r14, [r15+20h] cmp dword ptr [r15+40h], 5 jnz short loc_AD398 cmp r12d, 0FFFFFFFEh jnb short loc_AD3B3 inc dword ptr [rbx+0A8h] loc_AD398: mov qword ptr [r15+20h], 0 mov rdi, [r14+30h] test rdi, rdi jnz short loc_AD3F5 loc_AD3A9: mov rdi, r14 call _pthread_cond_signal jmp short loc_AD3E7 loc_AD3B3: lea rax, [r15+8] mov rcx, [r15+8] mov rdx, [r15+10h] mov [rdx], rcx lea rdx, [rcx+10h] test rcx, rcx mov rcx, [r15+10h] cmovz rdx, r13 mov [rdx], rcx mov rcx, [rbx+68h] mov [rcx], r15 mov rcx, [rbx+68h] mov [r15+10h], rcx mov [rbx+68h], rax loc_AD3E7: mov r15, [r15+8] test r15, r15 jnz short loc_AD381 jmp loc_AD4CC loc_AD3F5: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+170h] jmp short loc_AD3A9 loc_AD407: cmp eax, 0Ah jg loc_AD005 loc_AD410: mov r15, [rbx+60h] test r15, r15 jz loc_AD005 lea rcx, [rbx+60h] add eax, 0FFFFFFF7h cmp eax, 0FFFFFFFEh setb r12b loc_AD42B: lea r13, [rbx+78h] mov rax, [rbx+78h] mov [rax], r15 mov rax, [rbx+78h] mov [r15+10h], rax mov rax, [rbx+68h] mov [rbx+78h], rax mov [rbx+68h], rcx loc_AD44A: mov r14, [r15+20h] cmp dword ptr [r15+40h], 5 jnz short loc_AD460 test r12b, r12b jz short loc_AD47B inc dword ptr [rbx+0A8h] loc_AD460: mov qword ptr [r15+20h], 0 mov rdi, [r14+30h] test rdi, rdi jnz short loc_AD4BA loc_AD471: mov rdi, r14 call _pthread_cond_signal jmp short loc_AD4AF loc_AD47B: lea rax, [r15+8] mov rcx, [r15+8] mov rdx, [r15+10h] mov [rdx], rcx lea rdx, [rcx+10h] test rcx, rcx mov rcx, [r15+10h] cmovz rdx, r13 mov [rdx], rcx mov rcx, [rbx+68h] mov [rcx], r15 mov rcx, [rbx+68h] mov [r15+10h], rcx mov [rbx+68h], rax loc_AD4AF: mov r15, [r15+8] test r15, r15 jnz short loc_AD44A jmp short loc_AD4CC loc_AD4BA: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+170h] jmp short loc_AD471 loc_AD4CC: mov rax, [rbx+68h] mov qword ptr [rax], 0 cmp qword ptr [rbx+60h], 0 jnz loc_AD005 mov qword ptr [rbx+0A0h], 0 jmp loc_AD005
long long wake_up_waiters(long long a1) { long long result; // rax long long v3; // r15 int v4; // r13d long long v5; // rcx unsigned long long v6; // rax long long v7; // r12 long long v8; // r14 long long v9; // rdi long long v10; // r15 long long v11; // r14 long long v12; // rdi long long v13; // r15 long long v14; // rcx bool v15; // r12 long long v16; // rcx _QWORD *v17; // rdx long long v18; // r14 long long v19; // rdi long long v20; // r14 long long v21; // rcx _QWORD *v22; // rdx long long v23; // rdi long long v24; // r15 long long v25; // r14 long long v26; // rdi long long v27; // rcx _QWORD *v28; // rdx long long v29; // r14 long long v30; // rdi long long v31; // rcx _QWORD *v32; // rdx if ( *(_QWORD *)(a1 + 144) ) return result; v3 = *(_QWORD *)(a1 + 128); if ( !*(_QWORD *)(a1 + 112) ) { if ( v3 ) { if ( *(_DWORD *)(v3 + 64) != 11 || (v5 = *(_QWORD *)(a1 + 96)) == 0 || (result = 11LL, *(int *)(v5 + 64) <= 3) ) { v6 = *(_QWORD *)(a1 + 160); *(_QWORD *)(a1 + 160) = v6 + 1; if ( v6 > max_write_lock_count ) { *(_QWORD *)(a1 + 160) = 0LL; v7 = *(_QWORD *)(a1 + 96); if ( v7 ) { **(_QWORD **)(a1 + 120) = v7; *(_QWORD *)(v7 + 16) = *(_QWORD *)(a1 + 120); *(_QWORD *)(a1 + 120) = *(_QWORD *)(a1 + 104); *(_QWORD *)(a1 + 104) = a1 + 96; do { v8 = *(_QWORD *)(v7 + 32); if ( *(_DWORD *)(v7 + 64) == 5 ) ++*(_DWORD *)(a1 + 168); *(_QWORD *)(v7 + 32) = 0LL; v9 = *(_QWORD *)(v8 + 48); if ( v9 ) ((void ( *)(long long))PSI_server[46])(v9); pthread_cond_signal(v8); v7 = *(_QWORD *)(v7 + 8); } while ( v7 ); LABEL_80: result = *(_QWORD *)(a1 + 104); *(_QWORD *)result = 0LL; if ( !*(_QWORD *)(a1 + 96) ) *(_QWORD *)(a1 + 160) = 0LL; return result; } } while ( 1 ) { v16 = *(_QWORD *)(v3 + 8); **(_QWORD **)(v3 + 16) = v16; v17 = (_QWORD *)(v16 + 16); if ( !v16 ) v17 = (_QWORD *)(a1 + 136); *v17 = *(_QWORD *)(v3 + 16); **(_QWORD **)(a1 + 152) = v3; *(_QWORD *)(v3 + 16) = *(_QWORD *)(a1 + 152); *(_QWORD *)(v3 + 8) = 0LL; *(_QWORD *)(a1 + 152) = v3 + 8; if ( *(_DWORD *)(v3 + 64) == 8 && (*(unsigned __int8 ( **)(_QWORD))(a1 + 216))(*(_QWORD *)(v3 + 40)) ) *(_DWORD *)(v3 + 64) = 13; v18 = *(_QWORD *)(v3 + 32); *(_QWORD *)(v3 + 32) = 0LL; v19 = *(_QWORD *)(v18 + 48); if ( v19 ) ((void ( *)(long long))PSI_server[46])(v19); pthread_cond_signal(v18); result = *(unsigned int *)(v3 + 64); if ( (_DWORD)result != 7 ) break; v3 = *(_QWORD *)(a1 + 128); result = 7LL; if ( !v3 || *(_DWORD *)(v3 + 64) != 7 ) goto LABEL_67; } if ( (int)result > 10 ) return result; } LABEL_67: v13 = *(_QWORD *)(a1 + 96); if ( !v13 ) return result; v14 = a1 + 96; v15 = (unsigned int)(result - 9) < 0xFFFFFFFE; } else { v13 = *(_QWORD *)(a1 + 96); if ( !v13 ) return result; v14 = a1 + 96; v15 = 1; } **(_QWORD **)(a1 + 120) = v13; *(_QWORD *)(v13 + 16) = *(_QWORD *)(a1 + 120); *(_QWORD *)(a1 + 120) = *(_QWORD *)(a1 + 104); *(_QWORD *)(a1 + 104) = v14; while ( 1 ) { v29 = *(_QWORD *)(v13 + 32); if ( *(_DWORD *)(v13 + 64) == 5 ) { if ( !v15 ) { v31 = *(_QWORD *)(v13 + 8); **(_QWORD **)(v13 + 16) = v31; v32 = (_QWORD *)(v31 + 16); if ( !v31 ) v32 = (_QWORD *)(a1 + 120); *v32 = *(_QWORD *)(v13 + 16); **(_QWORD **)(a1 + 104) = v13; *(_QWORD *)(v13 + 16) = *(_QWORD *)(a1 + 104); *(_QWORD *)(a1 + 104) = v13 + 8; goto LABEL_79; } ++*(_DWORD *)(a1 + 168); } *(_QWORD *)(v13 + 32) = 0LL; v30 = *(_QWORD *)(v29 + 48); if ( v30 ) ((void ( *)(long long))PSI_server[46])(v30); pthread_cond_signal(v29); LABEL_79: v13 = *(_QWORD *)(v13 + 8); if ( !v13 ) goto LABEL_80; } } if ( !v3 ) { v10 = *(_QWORD *)(a1 + 96); if ( !v10 ) return result; **(_QWORD **)(a1 + 120) = v10; *(_QWORD *)(v10 + 16) = *(_QWORD *)(a1 + 120); *(_QWORD *)(a1 + 120) = *(_QWORD *)(a1 + 104); *(_QWORD *)(a1 + 104) = a1 + 96; do { v11 = *(_QWORD *)(v10 + 32); if ( *(_DWORD *)(v10 + 64) == 5 ) ++*(_DWORD *)(a1 + 168); *(_QWORD *)(v10 + 32) = 0LL; v12 = *(_QWORD *)(v11 + 48); if ( v12 ) ((void ( *)(long long))PSI_server[46])(v12); pthread_cond_signal(v11); v10 = *(_QWORD *)(v10 + 8); } while ( v10 ); goto LABEL_80; } v4 = *(_DWORD *)(v3 + 64); if ( v4 <= 9 && ((unsigned int)(v4 - 9) < 0xFFFFFFFE || !*(_DWORD *)(a1 + 168)) ) { if ( v4 == 8 ) { result = (*(long long ( **)(_QWORD))(a1 + 216))(*(_QWORD *)(v3 + 40)); if ( (_BYTE)result ) { *(_DWORD *)(v3 + 64) = 13; if ( *(_QWORD *)(a1 + 96) ) return free_all_read_locks(a1, 0LL); return result; } } do { v20 = *(_QWORD *)(v3 + 32); v21 = *(_QWORD *)(v3 + 8); **(_QWORD **)(v3 + 16) = v21; v22 = (_QWORD *)(v21 + 16); if ( !v21 ) v22 = (_QWORD *)(a1 + 136); *v22 = *(_QWORD *)(v3 + 16); **(_QWORD **)(a1 + 152) = v3; *(_QWORD *)(v3 + 16) = *(_QWORD *)(a1 + 152); *(_QWORD *)(a1 + 152) = v3 + 8; *(_QWORD *)(v3 + 8) = 0LL; *(_QWORD *)(v3 + 32) = 0LL; v23 = *(_QWORD *)(v20 + 48); if ( v23 ) ((void ( *)(long long))PSI_server[46])(v23); result = pthread_cond_signal(v20); if ( v4 != 7 ) break; v3 = *(_QWORD *)(a1 + 128); if ( !v3 ) break; } while ( *(_DWORD *)(v3 + 64) == 7 ); v24 = *(_QWORD *)(a1 + 96); if ( v24 ) { **(_QWORD **)(a1 + 120) = v24; *(_QWORD *)(v24 + 16) = *(_QWORD *)(a1 + 120); *(_QWORD *)(a1 + 120) = *(_QWORD *)(a1 + 104); *(_QWORD *)(a1 + 104) = a1 + 96; while ( 1 ) { v25 = *(_QWORD *)(v24 + 32); if ( *(_DWORD *)(v24 + 64) == 5 ) { if ( (unsigned int)(v4 - 9) >= 0xFFFFFFFE ) { v27 = *(_QWORD *)(v24 + 8); **(_QWORD **)(v24 + 16) = v27; v28 = (_QWORD *)(v27 + 16); if ( !v27 ) v28 = (_QWORD *)(a1 + 120); *v28 = *(_QWORD *)(v24 + 16); **(_QWORD **)(a1 + 104) = v24; *(_QWORD *)(v24 + 16) = *(_QWORD *)(a1 + 104); *(_QWORD *)(a1 + 104) = v24 + 8; goto LABEL_64; } ++*(_DWORD *)(a1 + 168); } *(_QWORD *)(v24 + 32) = 0LL; v26 = *(_QWORD *)(v25 + 48); if ( v26 ) ((void ( *)(long long))PSI_server[46])(v26); pthread_cond_signal(v25); LABEL_64: v24 = *(_QWORD *)(v24 + 8); if ( !v24 ) goto LABEL_80; } } } return result; }
wake_up_waiters: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX CMP qword ptr [RDI + 0x90],0x0 JZ 0x001ad014 LAB_001ad005: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001ad014: MOV RBX,RDI MOV R15,qword ptr [RDI + 0x80] CMP qword ptr [RDI + 0x70],0x0 JZ 0x001ad08e TEST R15,R15 JZ 0x001ad15e MOV R13D,dword ptr [R15 + 0x40] CMP R13D,0x9 JG 0x001ad005 LEA R14D,[R13 + -0x9] CMP R14D,-0x2 JC 0x001ad04b CMP dword ptr [RBX + 0xa8],0x0 JNZ 0x001ad005 LAB_001ad04b: CMP R13D,0x8 JNZ 0x001ad2b9 MOV RDI,qword ptr [R15 + 0x28] CALL qword ptr [RBX + 0xd8] TEST AL,AL JZ 0x001ad2b9 MOV dword ptr [R15 + 0x40],0xd CMP qword ptr [RBX + 0x60],0x0 JZ 0x001ad005 MOV RDI,RBX XOR ESI,ESI ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x001ae630 LAB_001ad08e: TEST R15,R15 JZ 0x001ad1d5 CMP dword ptr [R15 + 0x40],0xb JNZ 0x001ad0b6 MOV RCX,qword ptr [RBX + 0x60] TEST RCX,RCX JZ 0x001ad0b6 MOV EAX,0xb CMP dword ptr [RCX + 0x40],0x3 JG 0x001ad410 LAB_001ad0b6: MOV RAX,qword ptr [RBX + 0xa0] LEA RCX,[RAX + 0x1] MOV qword ptr [RBX + 0xa0],RCX LEA RCX,[0x4935b8] CMP RAX,qword ptr [RCX] JBE 0x001ad1ee MOV qword ptr [RBX + 0xa0],0x0 MOV R12,qword ptr [RBX + 0x60] TEST R12,R12 JZ 0x001ad1ee LEA RAX,[RBX + 0x60] MOV RCX,qword ptr [RBX + 0x78] MOV qword ptr [RCX],R12 MOV RCX,qword ptr [RBX + 0x78] MOV qword ptr [R12 + 0x10],RCX MOV RCX,qword ptr [RBX + 0x68] MOV qword ptr [RBX + 0x78],RCX MOV qword ptr [RBX + 0x68],RAX LEA R15,[0x493a58] LAB_001ad117: MOV R14,qword ptr [R12 + 0x20] CMP dword ptr [R12 + 0x40],0x5 JNZ 0x001ad12a INC dword ptr [RBX + 0xa8] LAB_001ad12a: MOV qword ptr [R12 + 0x20],0x0 MOV RDI,qword ptr [R14 + 0x30] TEST RDI,RDI JNZ 0x001ad153 LAB_001ad13c: MOV RDI,R14 CALL 0x0012a5d0 MOV R12,qword ptr [R12 + 0x8] TEST R12,R12 JNZ 0x001ad117 JMP 0x001ad4cc LAB_001ad153: MOV RAX,qword ptr [R15] CALL qword ptr [RAX + 0x170] JMP 0x001ad13c LAB_001ad15e: MOV R15,qword ptr [RBX + 0x60] TEST R15,R15 JZ 0x001ad005 LEA RAX,[RBX + 0x60] MOV RCX,qword ptr [RBX + 0x78] MOV qword ptr [RCX],R15 MOV RCX,qword ptr [RBX + 0x78] MOV qword ptr [R15 + 0x10],RCX MOV RCX,qword ptr [RBX + 0x68] MOV qword ptr [RBX + 0x78],RCX MOV qword ptr [RBX + 0x68],RAX LEA R12,[0x493a58] LAB_001ad191: MOV R14,qword ptr [R15 + 0x20] CMP dword ptr [R15 + 0x40],0x5 JNZ 0x001ad1a2 INC dword ptr [RBX + 0xa8] LAB_001ad1a2: MOV qword ptr [R15 + 0x20],0x0 MOV RDI,qword ptr [R14 + 0x30] TEST RDI,RDI JNZ 0x001ad1c9 LAB_001ad1b3: MOV RDI,R14 CALL 0x0012a5d0 MOV R15,qword ptr [R15 + 0x8] TEST R15,R15 JNZ 0x001ad191 JMP 0x001ad4cc LAB_001ad1c9: MOV RAX,qword ptr [R12] CALL qword ptr [RAX + 0x170] JMP 0x001ad1b3 LAB_001ad1d5: MOV R15,qword ptr [RBX + 0x60] TEST R15,R15 JZ 0x001ad005 LEA RCX,[RBX + 0x60] MOV R12B,0x1 JMP 0x001ad42b LAB_001ad1ee: LEA R12,[RBX + 0x88] LEA R13,[0x493a58] LAB_001ad1fc: LEA RAX,[R15 + 0x8] MOV RCX,qword ptr [R15 + 0x8] MOV RDX,qword ptr [R15 + 0x10] MOV qword ptr [RDX],RCX LEA RDX,[RCX + 0x10] TEST RCX,RCX MOV RCX,qword ptr [R15 + 0x10] CMOVZ RDX,R12 MOV qword ptr [RDX],RCX MOV RCX,qword ptr [RBX + 0x98] MOV qword ptr [RCX],R15 MOV RCX,qword ptr [RBX + 0x98] MOV qword ptr [R15 + 0x10],RCX MOV qword ptr [R15 + 0x8],0x0 MOV qword ptr [RBX + 0x98],RAX CMP dword ptr [R15 + 0x40],0x8 JNZ 0x001ad25e MOV RDI,qword ptr [R15 + 0x28] CALL qword ptr [RBX + 0xd8] TEST AL,AL JZ 0x001ad25e MOV dword ptr [R15 + 0x40],0xd LAB_001ad25e: MOV R14,qword ptr [R15 + 0x20] MOV qword ptr [R15 + 0x20],0x0 MOV RDI,qword ptr [R14 + 0x30] TEST RDI,RDI JNZ 0x001ad2ad LAB_001ad273: MOV RDI,R14 CALL 0x0012a5d0 MOV EAX,dword ptr [R15 + 0x40] CMP EAX,0x7 JNZ 0x001ad407 MOV R15,qword ptr [RBX + 0x80] MOV EAX,0x7 TEST R15,R15 JZ 0x001ad410 CMP dword ptr [R15 + 0x40],0x7 JZ 0x001ad1fc JMP 0x001ad410 LAB_001ad2ad: MOV RAX,qword ptr [R13] CALL qword ptr [RAX + 0x170] JMP 0x001ad273 LAB_001ad2b9: MOV dword ptr [RBP + -0x2c],R14D LEA R12,[RBX + 0x88] LAB_001ad2c4: MOV R14,qword ptr [R15 + 0x20] LEA RAX,[R15 + 0x8] MOV RCX,qword ptr [R15 + 0x8] MOV RDX,qword ptr [R15 + 0x10] MOV qword ptr [RDX],RCX LEA RDX,[RCX + 0x10] TEST RCX,RCX MOV RCX,qword ptr [R15 + 0x10] CMOVZ RDX,R12 MOV qword ptr [RDX],RCX MOV RCX,qword ptr [RBX + 0x98] MOV qword ptr [RCX],R15 MOV RCX,qword ptr [RBX + 0x98] MOV qword ptr [R15 + 0x10],RCX MOV qword ptr [RBX + 0x98],RAX XOR EAX,EAX MOV qword ptr [R15 + 0x8],RAX MOV qword ptr [R15 + 0x20],RAX MOV RDI,qword ptr [R14 + 0x30] TEST RDI,RDI JNZ 0x001ad33b LAB_001ad318: MOV RDI,R14 CALL 0x0012a5d0 CMP R13D,0x7 JNZ 0x001ad34d MOV R15,qword ptr [RBX + 0x80] TEST R15,R15 JZ 0x001ad34d CMP dword ptr [R15 + 0x40],0x7 JZ 0x001ad2c4 JMP 0x001ad34d LAB_001ad33b: LEA RAX,[0x493a58] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x170] JMP 0x001ad318 LAB_001ad34d: MOV R15,qword ptr [RBX + 0x60] TEST R15,R15 MOV R12D,dword ptr [RBP + -0x2c] JZ 0x001ad005 LEA RAX,[RBX + 0x60] LEA R13,[RBX + 0x78] MOV RCX,qword ptr [RBX + 0x78] MOV qword ptr [RCX],R15 MOV RCX,qword ptr [RBX + 0x78] MOV qword ptr [R15 + 0x10],RCX MOV RCX,qword ptr [RBX + 0x68] MOV qword ptr [RBX + 0x78],RCX MOV qword ptr [RBX + 0x68],RAX LAB_001ad381: MOV R14,qword ptr [R15 + 0x20] CMP dword ptr [R15 + 0x40],0x5 JNZ 0x001ad398 CMP R12D,-0x2 JNC 0x001ad3b3 INC dword ptr [RBX + 0xa8] LAB_001ad398: MOV qword ptr [R15 + 0x20],0x0 MOV RDI,qword ptr [R14 + 0x30] TEST RDI,RDI JNZ 0x001ad3f5 LAB_001ad3a9: MOV RDI,R14 CALL 0x0012a5d0 JMP 0x001ad3e7 LAB_001ad3b3: LEA RAX,[R15 + 0x8] MOV RCX,qword ptr [R15 + 0x8] MOV RDX,qword ptr [R15 + 0x10] MOV qword ptr [RDX],RCX LEA RDX,[RCX + 0x10] TEST RCX,RCX MOV RCX,qword ptr [R15 + 0x10] CMOVZ RDX,R13 MOV qword ptr [RDX],RCX MOV RCX,qword ptr [RBX + 0x68] MOV qword ptr [RCX],R15 MOV RCX,qword ptr [RBX + 0x68] MOV qword ptr [R15 + 0x10],RCX MOV qword ptr [RBX + 0x68],RAX LAB_001ad3e7: MOV R15,qword ptr [R15 + 0x8] TEST R15,R15 JNZ 0x001ad381 JMP 0x001ad4cc LAB_001ad3f5: LEA RAX,[0x493a58] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x170] JMP 0x001ad3a9 LAB_001ad407: CMP EAX,0xa JG 0x001ad005 LAB_001ad410: MOV R15,qword ptr [RBX + 0x60] TEST R15,R15 JZ 0x001ad005 LEA RCX,[RBX + 0x60] ADD EAX,-0x9 CMP EAX,-0x2 SETC R12B LAB_001ad42b: LEA R13,[RBX + 0x78] MOV RAX,qword ptr [RBX + 0x78] MOV qword ptr [RAX],R15 MOV RAX,qword ptr [RBX + 0x78] MOV qword ptr [R15 + 0x10],RAX MOV RAX,qword ptr [RBX + 0x68] MOV qword ptr [RBX + 0x78],RAX MOV qword ptr [RBX + 0x68],RCX LAB_001ad44a: MOV R14,qword ptr [R15 + 0x20] CMP dword ptr [R15 + 0x40],0x5 JNZ 0x001ad460 TEST R12B,R12B JZ 0x001ad47b INC dword ptr [RBX + 0xa8] LAB_001ad460: MOV qword ptr [R15 + 0x20],0x0 MOV RDI,qword ptr [R14 + 0x30] TEST RDI,RDI JNZ 0x001ad4ba LAB_001ad471: MOV RDI,R14 CALL 0x0012a5d0 JMP 0x001ad4af LAB_001ad47b: LEA RAX,[R15 + 0x8] MOV RCX,qword ptr [R15 + 0x8] MOV RDX,qword ptr [R15 + 0x10] MOV qword ptr [RDX],RCX LEA RDX,[RCX + 0x10] TEST RCX,RCX MOV RCX,qword ptr [R15 + 0x10] CMOVZ RDX,R13 MOV qword ptr [RDX],RCX MOV RCX,qword ptr [RBX + 0x68] MOV qword ptr [RCX],R15 MOV RCX,qword ptr [RBX + 0x68] MOV qword ptr [R15 + 0x10],RCX MOV qword ptr [RBX + 0x68],RAX LAB_001ad4af: MOV R15,qword ptr [R15 + 0x8] TEST R15,R15 JNZ 0x001ad44a JMP 0x001ad4cc LAB_001ad4ba: LEA RAX,[0x493a58] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x170] JMP 0x001ad471 LAB_001ad4cc: MOV RAX,qword ptr [RBX + 0x68] MOV qword ptr [RAX],0x0 CMP qword ptr [RBX + 0x60],0x0 JNZ 0x001ad005 MOV qword ptr [RBX + 0xa0],0x0 JMP 0x001ad005
void wake_up_waiters(long param_1) { ulong uVar1; pthread_cond_t *ppVar2; char cVar3; int iVar4; int8 *puVar5; long lVar6; long lVar7; bool bVar8; if (*(long *)(param_1 + 0x90) != 0) { return; } lVar7 = *(long *)(param_1 + 0x80); if (*(long *)(param_1 + 0x70) == 0) { if (lVar7 == 0) { lVar7 = *(long *)(param_1 + 0x60); if (lVar7 == 0) { return; } bVar8 = true; } else { if (((*(int *)(lVar7 + 0x40) != 0xb) || (*(long *)(param_1 + 0x60) == 0)) || (iVar4 = 0xb, *(int *)(*(long *)(param_1 + 0x60) + 0x40) < 4)) { uVar1 = *(ulong *)(param_1 + 0xa0); *(ulong *)(param_1 + 0xa0) = uVar1 + 1; if (max_write_lock_count < uVar1) { *(int8 *)(param_1 + 0xa0) = 0; lVar6 = *(long *)(param_1 + 0x60); if (lVar6 != 0) { **(long **)(param_1 + 0x78) = lVar6; *(int8 *)(lVar6 + 0x10) = *(int8 *)(param_1 + 0x78); *(int8 *)(param_1 + 0x78) = *(int8 *)(param_1 + 0x68); *(long *)(param_1 + 0x68) = param_1 + 0x60; do { ppVar2 = *(pthread_cond_t **)(lVar6 + 0x20); if (*(int *)(lVar6 + 0x40) == 5) { *(int *)(param_1 + 0xa8) = *(int *)(param_1 + 0xa8) + 1; } *(int8 *)(lVar6 + 0x20) = 0; if (ppVar2[1].__align != 0) { (**(code **)(PSI_server + 0x170))(); } pthread_cond_signal(ppVar2); lVar6 = *(long *)(lVar6 + 8); } while (lVar6 != 0); goto LAB_001ad4cc; } } while( true ) { lVar6 = *(long *)(lVar7 + 8); **(long **)(lVar7 + 0x10) = lVar6; puVar5 = (int8 *)(lVar6 + 0x10); if (lVar6 == 0) { puVar5 = (int8 *)(param_1 + 0x88); } *puVar5 = *(int8 *)(lVar7 + 0x10); **(long **)(param_1 + 0x98) = lVar7; *(int8 *)(lVar7 + 0x10) = *(int8 *)(param_1 + 0x98); *(int8 *)(lVar7 + 8) = 0; *(long *)(param_1 + 0x98) = lVar7 + 8; if ((*(int *)(lVar7 + 0x40) == 8) && (cVar3 = (**(code **)(param_1 + 0xd8))(*(int8 *)(lVar7 + 0x28)), cVar3 != '\0')) { *(int4 *)(lVar7 + 0x40) = 0xd; } ppVar2 = *(pthread_cond_t **)(lVar7 + 0x20); *(int8 *)(lVar7 + 0x20) = 0; if (ppVar2[1].__align != 0) { (**(code **)(PSI_server + 0x170))(); } pthread_cond_signal(ppVar2); iVar4 = *(int *)(lVar7 + 0x40); if (iVar4 != 7) break; lVar7 = *(long *)(param_1 + 0x80); iVar4 = 7; if ((lVar7 == 0) || (*(int *)(lVar7 + 0x40) != 7)) goto LAB_001ad410; } if (10 < iVar4) { return; } } LAB_001ad410: lVar7 = *(long *)(param_1 + 0x60); if (lVar7 == 0) { return; } bVar8 = iVar4 - 9U < 0xfffffffe; } **(long **)(param_1 + 0x78) = lVar7; *(int8 *)(lVar7 + 0x10) = *(int8 *)(param_1 + 0x78); *(int8 *)(param_1 + 0x78) = *(int8 *)(param_1 + 0x68); *(long *)(param_1 + 0x68) = param_1 + 0x60; do { ppVar2 = *(pthread_cond_t **)(lVar7 + 0x20); if (*(int *)(lVar7 + 0x40) == 5) { if (bVar8) { *(int *)(param_1 + 0xa8) = *(int *)(param_1 + 0xa8) + 1; goto LAB_001ad460; } lVar6 = *(long *)(lVar7 + 8); **(long **)(lVar7 + 0x10) = lVar6; puVar5 = (int8 *)(lVar6 + 0x10); if (lVar6 == 0) { puVar5 = (int8 *)(param_1 + 0x78); } *puVar5 = *(int8 *)(lVar7 + 0x10); **(long **)(param_1 + 0x68) = lVar7; *(int8 *)(lVar7 + 0x10) = *(int8 *)(param_1 + 0x68); *(long *)(param_1 + 0x68) = lVar7 + 8; } else { LAB_001ad460: *(int8 *)(lVar7 + 0x20) = 0; if (ppVar2[1].__align != 0) { (**(code **)(PSI_server + 0x170))(); } pthread_cond_signal(ppVar2); } lVar7 = *(long *)(lVar7 + 8); } while (lVar7 != 0); } else if (lVar7 == 0) { lVar7 = *(long *)(param_1 + 0x60); if (lVar7 == 0) { return; } **(long **)(param_1 + 0x78) = lVar7; *(int8 *)(lVar7 + 0x10) = *(int8 *)(param_1 + 0x78); *(int8 *)(param_1 + 0x78) = *(int8 *)(param_1 + 0x68); *(long *)(param_1 + 0x68) = param_1 + 0x60; do { ppVar2 = *(pthread_cond_t **)(lVar7 + 0x20); if (*(int *)(lVar7 + 0x40) == 5) { *(int *)(param_1 + 0xa8) = *(int *)(param_1 + 0xa8) + 1; } *(int8 *)(lVar7 + 0x20) = 0; if (ppVar2[1].__align != 0) { (**(code **)(PSI_server + 0x170))(); } pthread_cond_signal(ppVar2); lVar7 = *(long *)(lVar7 + 8); } while (lVar7 != 0); } else { iVar4 = *(int *)(lVar7 + 0x40); if (9 < iVar4) { return; } if ((0xfffffffd < iVar4 - 9U) && (*(int *)(param_1 + 0xa8) != 0)) { return; } if ((iVar4 == 8) && (cVar3 = (**(code **)(param_1 + 0xd8))(*(int8 *)(lVar7 + 0x28)), cVar3 != '\0')) { *(int4 *)(lVar7 + 0x40) = 0xd; if (*(long *)(param_1 + 0x60) == 0) { return; } free_all_read_locks(param_1,0); return; } do { ppVar2 = *(pthread_cond_t **)(lVar7 + 0x20); lVar6 = *(long *)(lVar7 + 8); **(long **)(lVar7 + 0x10) = lVar6; puVar5 = (int8 *)(lVar6 + 0x10); if (lVar6 == 0) { puVar5 = (int8 *)(param_1 + 0x88); } *puVar5 = *(int8 *)(lVar7 + 0x10); **(long **)(param_1 + 0x98) = lVar7; *(int8 *)(lVar7 + 0x10) = *(int8 *)(param_1 + 0x98); *(long *)(param_1 + 0x98) = lVar7 + 8; *(int8 *)(lVar7 + 8) = 0; *(int8 *)(lVar7 + 0x20) = 0; if (ppVar2[1].__align != 0) { (**(code **)(PSI_server + 0x170))(); } pthread_cond_signal(ppVar2); } while (((iVar4 == 7) && (lVar7 = *(long *)(param_1 + 0x80), lVar7 != 0)) && (*(int *)(lVar7 + 0x40) == 7)); lVar7 = *(long *)(param_1 + 0x60); if (lVar7 == 0) { return; } **(long **)(param_1 + 0x78) = lVar7; *(int8 *)(lVar7 + 0x10) = *(int8 *)(param_1 + 0x78); *(int8 *)(param_1 + 0x78) = *(int8 *)(param_1 + 0x68); *(long *)(param_1 + 0x68) = param_1 + 0x60; do { ppVar2 = *(pthread_cond_t **)(lVar7 + 0x20); if (*(int *)(lVar7 + 0x40) == 5) { if (iVar4 - 9U < 0xfffffffe) { *(int *)(param_1 + 0xa8) = *(int *)(param_1 + 0xa8) + 1; goto LAB_001ad398; } lVar6 = *(long *)(lVar7 + 8); **(long **)(lVar7 + 0x10) = lVar6; puVar5 = (int8 *)(lVar6 + 0x10); if (lVar6 == 0) { puVar5 = (int8 *)(param_1 + 0x78); } *puVar5 = *(int8 *)(lVar7 + 0x10); **(long **)(param_1 + 0x68) = lVar7; *(int8 *)(lVar7 + 0x10) = *(int8 *)(param_1 + 0x68); *(long *)(param_1 + 0x68) = lVar7 + 8; } else { LAB_001ad398: *(int8 *)(lVar7 + 0x20) = 0; if (ppVar2[1].__align != 0) { (**(code **)(PSI_server + 0x170))(); } pthread_cond_signal(ppVar2); } lVar7 = *(long *)(lVar7 + 8); } while (lVar7 != 0); } LAB_001ad4cc: **(int8 **)(param_1 + 0x68) = 0; if (*(long *)(param_1 + 0x60) == 0) { *(int8 *)(param_1 + 0xa0) = 0; } return; }
65,304
uf_endspace_selected
eloqsql/storage/myisam/mi_packrec.c
static void uf_endspace_selected(MI_COLUMNDEF *rec, MI_BIT_BUFF *bit_buff, uchar *to, uchar *end) { uint spaces; if (get_bit(bit_buff)) { if ((spaces=get_bits(bit_buff,rec->space_length_bits))+to > end) { bit_buff->error=1; return; } if (to+spaces != end) decode_bytes(rec,bit_buff,to,end-spaces); bfill((uchar*) end-spaces,spaces,' '); } else decode_bytes(rec,bit_buff,to,end); }
O0
c
uf_endspace_selected: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq -0x10(%rbp), %rax cmpl $0x0, 0x4(%rax) je 0xbcfba movq -0x10(%rbp), %rax movl (%rax), %eax movq -0x10(%rbp), %rdx movl 0x4(%rdx), %ecx addl $-0x1, %ecx movl %ecx, 0x4(%rdx) movl $0x1, %edx shll %cl, %edx movl %edx, %ecx andl %ecx, %eax cmpl $0x0, %eax jne 0xbcfe2 jmp 0xbd0af movq -0x10(%rbp), %rdi callq 0xbc0c0 movq -0x10(%rbp), %rax movl $0x1f, 0x4(%rax) movq -0x10(%rbp), %rax movl (%rax), %eax andl $0x80000000, %eax # imm = 0x80000000 cmpl $0x0, %eax je 0xbd0af movq -0x10(%rbp), %rax movl 0x4(%rax), %eax movq -0x8(%rbp), %rcx cmpl 0x1c(%rcx), %eax jb 0xbd025 movq -0x10(%rbp), %rax movl (%rax), %eax movq -0x8(%rbp), %rcx movl 0x1c(%rcx), %esi movq -0x10(%rbp), %rdx movl 0x4(%rdx), %ecx subl %esi, %ecx movl %ecx, 0x4(%rdx) shrl %cl, %eax movq -0x8(%rbp), %rcx movl 0x1c(%rcx), %ecx movl %ecx, %edx leaq 0x2027a3(%rip), %rcx # 0x2bf7c0 andl (%rcx,%rdx,4), %eax movl %eax, -0x28(%rbp) jmp 0xbd038 movq -0x10(%rbp), %rdi movq -0x8(%rbp), %rax movl 0x1c(%rax), %esi callq 0xba870 movl %eax, -0x28(%rbp) movl -0x28(%rbp), %ecx movl %ecx, -0x24(%rbp) movq -0x18(%rbp), %rax movl %ecx, %ecx addq %rcx, %rax cmpq -0x20(%rbp), %rax jbe 0xbd05a movq -0x10(%rbp), %rax movl $0x1, 0x28(%rax) jmp 0xbd0c4 movq -0x18(%rbp), %rax movl -0x24(%rbp), %ecx addq %rcx, %rax cmpq -0x20(%rbp), %rax je 0xbd08d movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx movq -0x20(%rbp), %rcx movl -0x24(%rbp), %eax movl %eax, %r8d xorl %eax, %eax subq %r8, %rax addq %rax, %rcx callq 0xbc7d0 movq -0x20(%rbp), %rdi movl -0x24(%rbp), %eax movl %eax, %ecx xorl %eax, %eax subq %rcx, %rax addq %rax, %rdi movl -0x24(%rbp), %eax movl %eax, %edx movl $0x20, %esi callq 0x2a2a0 jmp 0xbd0c4 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx movq -0x20(%rbp), %rcx callq 0xbc7d0 addq $0x30, %rsp popq %rbp retq nopw (%rax,%rax)
uf_endspace_selected_0: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov rax, [rbp+var_10] cmp dword ptr [rax+4], 0 jz short loc_BCFBA mov rax, [rbp+var_10] mov eax, [rax] mov rdx, [rbp+var_10] mov ecx, [rdx+4] add ecx, 0FFFFFFFFh mov [rdx+4], ecx mov edx, 1 shl edx, cl mov ecx, edx and eax, ecx cmp eax, 0 jnz short loc_BCFE2 jmp loc_BD0AF loc_BCFBA: mov rdi, [rbp+var_10] call fill_buffer_0 mov rax, [rbp+var_10] mov dword ptr [rax+4], 1Fh mov rax, [rbp+var_10] mov eax, [rax] and eax, 80000000h cmp eax, 0 jz loc_BD0AF loc_BCFE2: mov rax, [rbp+var_10] mov eax, [rax+4] mov rcx, [rbp+var_8] cmp eax, [rcx+1Ch] jb short loc_BD025 mov rax, [rbp+var_10] mov eax, [rax] mov rcx, [rbp+var_8] mov esi, [rcx+1Ch] mov rdx, [rbp+var_10] mov ecx, [rdx+4] sub ecx, esi mov [rdx+4], ecx shr eax, cl mov rcx, [rbp+var_8] mov ecx, [rcx+1Ch] mov edx, ecx lea rcx, mask_0 and eax, [rcx+rdx*4] mov [rbp+var_28], eax jmp short loc_BD038 loc_BD025: mov rdi, [rbp+var_10] mov rax, [rbp+var_8] mov esi, [rax+1Ch] call fill_and_get_bits_0 mov [rbp+var_28], eax loc_BD038: mov ecx, [rbp+var_28] mov [rbp+var_24], ecx mov rax, [rbp+var_18] mov ecx, ecx add rax, rcx cmp rax, [rbp+var_20] jbe short loc_BD05A mov rax, [rbp+var_10] mov dword ptr [rax+28h], 1 jmp short loc_BD0C4 loc_BD05A: mov rax, [rbp+var_18] mov ecx, [rbp+var_24] add rax, rcx cmp rax, [rbp+var_20] jz short loc_BD08D mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov rdx, [rbp+var_18] mov rcx, [rbp+var_20] mov eax, [rbp+var_24] mov r8d, eax xor eax, eax sub rax, r8 add rcx, rax call decode_bytes_0 loc_BD08D: mov rdi, [rbp+var_20] mov eax, [rbp+var_24] mov ecx, eax xor eax, eax sub rax, rcx add rdi, rax mov eax, [rbp+var_24] mov edx, eax mov esi, 20h ; ' ' call _memset jmp short loc_BD0C4 loc_BD0AF: mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov rdx, [rbp+var_18] mov rcx, [rbp+var_20] call decode_bytes_0 loc_BD0C4: add rsp, 30h pop rbp retn
long long uf_endspace_selected_0(long long a1, int *a2, _BYTE *a3, _BYTE *a4) { int v4; // eax int v5; // ecx unsigned int v6; // eax int v7; // ecx long long result; // rax unsigned int bits_0; // [rsp+8h] [rbp-28h] if ( a2[1] ) { v4 = *a2; v5 = a2[1] - 1; a2[1] = v5; if ( ((1 << v5) & v4) == 0 ) return decode_bytes_0(a1, (long long)a2, a3, a4); } else { fill_buffer_0((long long)a2); a2[1] = 31; if ( *a2 >= 0 ) return decode_bytes_0(a1, (long long)a2, a3, a4); } if ( (unsigned int)a2[1] < *(_DWORD *)(a1 + 28) ) { bits_0 = fill_and_get_bits_0(a2, *(_DWORD *)(a1 + 28)); } else { v6 = *a2; v7 = a2[1] - *(_DWORD *)(a1 + 28); a2[1] = v7; bits_0 = mask_0[*(unsigned int *)(a1 + 28)] & (v6 >> v7); } if ( &a3[bits_0] <= a4 ) { if ( &a3[bits_0] != a4 ) decode_bytes_0(a1, (long long)a2, a3, &a4[-bits_0]); return memset(&a4[-bits_0], 32LL, bits_0); } else { result = (long long)a2; a2[10] = 1; } return result; }
uf_endspace_selected: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV RAX,qword ptr [RBP + -0x10] CMP dword ptr [RAX + 0x4],0x0 JZ 0x001bcfba MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX] MOV RDX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RDX + 0x4] ADD ECX,-0x1 MOV dword ptr [RDX + 0x4],ECX MOV EDX,0x1 SHL EDX,CL MOV ECX,EDX AND EAX,ECX CMP EAX,0x0 JNZ 0x001bcfe2 JMP 0x001bd0af LAB_001bcfba: MOV RDI,qword ptr [RBP + -0x10] CALL 0x001bc0c0 MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x4],0x1f MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX] AND EAX,0x80000000 CMP EAX,0x0 JZ 0x001bd0af LAB_001bcfe2: MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x4] MOV RCX,qword ptr [RBP + -0x8] CMP EAX,dword ptr [RCX + 0x1c] JC 0x001bd025 MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX] MOV RCX,qword ptr [RBP + -0x8] MOV ESI,dword ptr [RCX + 0x1c] MOV RDX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RDX + 0x4] SUB ECX,ESI MOV dword ptr [RDX + 0x4],ECX SHR EAX,CL MOV RCX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RCX + 0x1c] MOV EDX,ECX LEA RCX,[0x3bf7c0] AND EAX,dword ptr [RCX + RDX*0x4] MOV dword ptr [RBP + -0x28],EAX JMP 0x001bd038 LAB_001bd025: MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x8] MOV ESI,dword ptr [RAX + 0x1c] CALL 0x001ba870 MOV dword ptr [RBP + -0x28],EAX LAB_001bd038: MOV ECX,dword ptr [RBP + -0x28] MOV dword ptr [RBP + -0x24],ECX MOV RAX,qword ptr [RBP + -0x18] MOV ECX,ECX ADD RAX,RCX CMP RAX,qword ptr [RBP + -0x20] JBE 0x001bd05a MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x28],0x1 JMP 0x001bd0c4 LAB_001bd05a: MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RBP + -0x24] ADD RAX,RCX CMP RAX,qword ptr [RBP + -0x20] JZ 0x001bd08d MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RBP + -0x24] MOV R8D,EAX XOR EAX,EAX SUB RAX,R8 ADD RCX,RAX CALL 0x001bc7d0 LAB_001bd08d: MOV RDI,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RBP + -0x24] MOV ECX,EAX XOR EAX,EAX SUB RAX,RCX ADD RDI,RAX MOV EAX,dword ptr [RBP + -0x24] MOV EDX,EAX MOV ESI,0x20 CALL 0x0012a2a0 JMP 0x001bd0c4 LAB_001bd0af: MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x20] CALL 0x001bc7d0 LAB_001bd0c4: ADD RSP,0x30 POP RBP RET
void uf_endspace_selected(long param_1,uint *param_2,long param_3,ulong param_4) { uint uVar1; uint local_30; if (param_2[1] == 0) { fill_buffer(param_2); param_2[1] = 0x1f; uVar1 = *param_2 & 0x80000000; } else { uVar1 = param_2[1]; param_2[1] = uVar1 - 1; uVar1 = *param_2 & 1 << ((byte)(uVar1 - 1) & 0x1f); } if (uVar1 == 0) { decode_bytes(param_1,param_2,param_3,param_4); } else { if (param_2[1] < *(uint *)(param_1 + 0x1c)) { local_30 = fill_and_get_bits(param_2,*(int4 *)(param_1 + 0x1c)); } else { uVar1 = param_2[1] - *(int *)(param_1 + 0x1c); param_2[1] = uVar1; local_30 = *param_2 >> ((byte)uVar1 & 0x1f) & *(uint *)(mask + (ulong)*(uint *)(param_1 + 0x1c) * 4); } if (param_4 < param_3 + (ulong)local_30) { param_2[10] = 1; } else { if (param_3 + (ulong)local_30 != param_4) { decode_bytes(param_1,param_2,param_3,param_4 - local_30); } memset((void *)(param_4 - local_30),0x20,(ulong)local_30); } } return; }
65,305
nglog::posix_strerror_r(int, char*, unsigned long)
ng-log[P]ng-log/src/logging.cc
NGLOG_NO_EXPORT int posix_strerror_r(int err, char* buf, size_t len) { // Sanity check input parameters if (buf == nullptr || len <= 0) { errno = EINVAL; return -1; } // Reset buf and errno, and try calling whatever version of strerror_r() // is implemented by glibc buf[0] = '\000'; int old_errno = errno; errno = 0; char* rc = reinterpret_cast<char*>(strerror_r(err, buf, len)); // Both versions set errno on failure if (errno) { // Should already be there, but better safe than sorry buf[0] = '\000'; return -1; } errno = old_errno; // POSIX is vague about whether the string will be terminated, although // is indirectly implies that typically ERANGE will be returned, instead // of truncating the string. This is different from the GNU implementation. // We play it safe by always terminating the string explicitly. buf[len - 1] = '\000'; // If the function succeeded, we can use its exit code to determine the // semantics implemented by glibc if (!rc) { return 0; } else { // GNU semantics detected if (rc == buf) { return 0; } else { buf[0] = '\000'; #if defined(NGLOG_OS_MACOSX) || defined(NGLOG_OS_FREEBSD) || \ defined(NGLOG_OS_OPENBSD) if (reinterpret_cast<intptr_t>(rc) < sys_nerr) { // This means an error on MacOSX or FreeBSD. return -1; } #endif strncat(buf, rc, len - 1); return 0; } } }
O0
cpp
nglog::posix_strerror_r(int, char*, unsigned long): pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movl %edi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) cmpq $0x0, -0x10(%rbp) je 0x132a1 cmpq $0x0, -0x18(%rbp) ja 0x132b8 callq 0x9080 movl $0x16, (%rax) movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x13368 movq -0x10(%rbp), %rax movb $0x0, (%rax) callq 0x9080 movl (%rax), %eax movl %eax, -0x1c(%rbp) callq 0x9080 movl $0x0, (%rax) movl -0x8(%rbp), %edi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx callq 0x9160 movq %rax, -0x28(%rbp) callq 0x9080 cmpl $0x0, (%rax) je 0x13302 movq -0x10(%rbp), %rax movb $0x0, (%rax) movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x13368 movl -0x1c(%rbp), %eax movl %eax, -0x2c(%rbp) callq 0x9080 movl -0x2c(%rbp), %ecx movl %ecx, (%rax) movq -0x10(%rbp), %rax movq -0x18(%rbp), %rcx subq $0x1, %rcx movb $0x0, (%rax,%rcx) cmpq $0x0, -0x28(%rbp) jne 0x13332 movl $0x0, -0x4(%rbp) jmp 0x13368 movq -0x28(%rbp), %rax cmpq -0x10(%rbp), %rax jne 0x13345 movl $0x0, -0x4(%rbp) jmp 0x13368 movq -0x10(%rbp), %rax movb $0x0, (%rax) movq -0x10(%rbp), %rdi movq -0x28(%rbp), %rsi movq -0x18(%rbp), %rdx subq $0x1, %rdx callq 0x94b0 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_ZN5nglog16posix_strerror_rEiPcm: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], edi mov [rbp+var_10], rsi mov [rbp+var_18], rdx cmp [rbp+var_10], 0 jz short loc_132A1 cmp [rbp+var_18], 0 ja short loc_132B8 loc_132A1: call ___errno_location mov dword ptr [rax], 16h mov [rbp+var_4], 0FFFFFFFFh jmp loc_13368 loc_132B8: mov rax, [rbp+var_10] mov byte ptr [rax], 0 call ___errno_location mov eax, [rax] mov [rbp+var_1C], eax call ___errno_location mov dword ptr [rax], 0 mov edi, [rbp+var_8] mov rsi, [rbp+var_10] mov rdx, [rbp+var_18] call _strerror_r mov [rbp+var_28], rax call ___errno_location cmp dword ptr [rax], 0 jz short loc_13302 mov rax, [rbp+var_10] mov byte ptr [rax], 0 mov [rbp+var_4], 0FFFFFFFFh jmp short loc_13368 loc_13302: mov eax, [rbp+var_1C] mov [rbp+var_2C], eax call ___errno_location mov ecx, [rbp+var_2C] mov [rax], ecx mov rax, [rbp+var_10] mov rcx, [rbp+var_18] sub rcx, 1 mov byte ptr [rax+rcx], 0 cmp [rbp+var_28], 0 jnz short loc_13332 mov [rbp+var_4], 0 jmp short loc_13368 loc_13332: mov rax, [rbp+var_28] cmp rax, [rbp+var_10] jnz short loc_13345 mov [rbp+var_4], 0 jmp short loc_13368 loc_13345: mov rax, [rbp+var_10] mov byte ptr [rax], 0 mov rdi, [rbp+var_10] mov rsi, [rbp+var_28] mov rdx, [rbp+var_18] sub rdx, 1 call _strncat mov [rbp+var_4], 0 loc_13368: mov eax, [rbp+var_4] add rsp, 30h pop rbp retn
long long nglog::posix_strerror_r(nglog *this, _BYTE *a2, char *a3) { long long v4; // [rsp+8h] [rbp-28h] int v5; // [rsp+14h] [rbp-1Ch] if ( a2 && a3 ) { *a2 = 0; v5 = *(_DWORD *)__errno_location(); *(_DWORD *)__errno_location() = 0; v4 = strerror_r((unsigned int)this, a2, a3); if ( *(_DWORD *)__errno_location() ) { *a2 = 0; return (unsigned int)-1; } else { *(_DWORD *)__errno_location() = v5; a3[(_QWORD)a2 - 1] = 0; if ( v4 ) { if ( (_BYTE *)v4 != a2 ) { *a2 = 0; strncat(a2, v4, a3 - 1); } return 0; } else { return 0; } } } else { *(_DWORD *)__errno_location() = 22; return (unsigned int)-1; } }
posix_strerror_r: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV dword ptr [RBP + -0x8],EDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX CMP qword ptr [RBP + -0x10],0x0 JZ 0x001132a1 CMP qword ptr [RBP + -0x18],0x0 JA 0x001132b8 LAB_001132a1: CALL 0x00109080 MOV dword ptr [RAX],0x16 MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x00113368 LAB_001132b8: MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],0x0 CALL 0x00109080 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x1c],EAX CALL 0x00109080 MOV dword ptr [RAX],0x0 MOV EDI,dword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] CALL 0x00109160 MOV qword ptr [RBP + -0x28],RAX CALL 0x00109080 CMP dword ptr [RAX],0x0 JZ 0x00113302 MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],0x0 MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x00113368 LAB_00113302: MOV EAX,dword ptr [RBP + -0x1c] MOV dword ptr [RBP + -0x2c],EAX CALL 0x00109080 MOV ECX,dword ptr [RBP + -0x2c] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x18] SUB RCX,0x1 MOV byte ptr [RAX + RCX*0x1],0x0 CMP qword ptr [RBP + -0x28],0x0 JNZ 0x00113332 MOV dword ptr [RBP + -0x4],0x0 JMP 0x00113368 LAB_00113332: MOV RAX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RBP + -0x10] JNZ 0x00113345 MOV dword ptr [RBP + -0x4],0x0 JMP 0x00113368 LAB_00113345: MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],0x0 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x28] MOV RDX,qword ptr [RBP + -0x18] SUB RDX,0x1 CALL 0x001094b0 MOV dword ptr [RBP + -0x4],0x0 LAB_00113368: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x30 POP RBP RET
/* nglog::posix_strerror_r(int, char*, unsigned long) */ int4 nglog::posix_strerror_r(int param_1,char *param_2,ulong param_3) { int iVar1; int *piVar2; char *__src; int4 local_c; if ((param_2 == (char *)0x0) || (param_3 == 0)) { piVar2 = __errno_location(); *piVar2 = 0x16; local_c = 0xffffffff; } else { *param_2 = '\0'; piVar2 = __errno_location(); iVar1 = *piVar2; piVar2 = __errno_location(); *piVar2 = 0; __src = strerror_r(param_1,param_2,param_3); piVar2 = __errno_location(); if (*piVar2 == 0) { piVar2 = __errno_location(); *piVar2 = iVar1; param_2[param_3 - 1] = '\0'; if (__src == (char *)0x0) { local_c = 0; } else if (__src == param_2) { local_c = 0; } else { *param_2 = '\0'; strncat(param_2,__src,param_3 - 1); local_c = 0; } } else { *param_2 = '\0'; local_c = 0xffffffff; } } return local_c; }
65,306
nglog::posix_strerror_r(int, char*, unsigned long)
ng-log[P]ng-log/src/logging.cc
NGLOG_NO_EXPORT int posix_strerror_r(int err, char* buf, size_t len) { // Sanity check input parameters if (buf == nullptr || len <= 0) { errno = EINVAL; return -1; } // Reset buf and errno, and try calling whatever version of strerror_r() // is implemented by glibc buf[0] = '\000'; int old_errno = errno; errno = 0; char* rc = reinterpret_cast<char*>(strerror_r(err, buf, len)); // Both versions set errno on failure if (errno) { // Should already be there, but better safe than sorry buf[0] = '\000'; return -1; } errno = old_errno; // POSIX is vague about whether the string will be terminated, although // is indirectly implies that typically ERANGE will be returned, instead // of truncating the string. This is different from the GNU implementation. // We play it safe by always terminating the string explicitly. buf[len - 1] = '\000'; // If the function succeeded, we can use its exit code to determine the // semantics implemented by glibc if (!rc) { return 0; } else { // GNU semantics detected if (rc == buf) { return 0; } else { buf[0] = '\000'; #if defined(NGLOG_OS_MACOSX) || defined(NGLOG_OS_FREEBSD) || \ defined(NGLOG_OS_OPENBSD) if (reinterpret_cast<intptr_t>(rc) < sys_nerr) { // This means an error on MacOSX or FreeBSD. return -1; } #endif strncat(buf, rc, len - 1); return 0; } } }
O2
cpp
nglog::posix_strerror_r(int, char*, unsigned long): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx testq %rsi, %rsi setne %al testq %rdx, %rdx setne %cl testb %cl, %al jne 0xc1be callq 0x7050 movl $0x16, (%rax) jmp 0xc1ee movq %rdx, %rbx movq %rsi, %r14 movl %edi, %ebp movb $0x0, (%rsi) callq 0x7050 movq %rax, %r15 movl (%rax), %r12d andl $0x0, (%rax) movl %ebp, %edi movq %r14, %rsi movq %rbx, %rdx callq 0x7110 cmpl $0x0, (%r15) je 0xc1fc movb $0x0, (%r14) pushq $-0x1 popq %rbp movl %ebp, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movl %r12d, (%r15) movb $0x0, -0x1(%r14,%rbx) testq %rax, %rax sete %cl cmpq %r14, %rax sete %dl xorl %ebp, %ebp orb %cl, %dl jne 0xc1f1 decq %rbx movb $0x0, (%r14) movq %r14, %rdi movq %rax, %rsi movq %rbx, %rdx callq 0x73b0 jmp 0xc1f1
_ZN5nglog16posix_strerror_rEiPcm: push rbp push r15 push r14 push r12 push rbx test rsi, rsi setnz al test rdx, rdx setnz cl test al, cl jnz short loc_C1BE call ___errno_location mov dword ptr [rax], 16h jmp short loc_C1EE loc_C1BE: mov rbx, rdx mov r14, rsi mov ebp, edi mov byte ptr [rsi], 0 call ___errno_location mov r15, rax mov r12d, [rax] and dword ptr [rax], 0 mov edi, ebp mov rsi, r14 mov rdx, rbx call _strerror_r cmp dword ptr [r15], 0 jz short loc_C1FC mov byte ptr [r14], 0 loc_C1EE: push 0FFFFFFFFFFFFFFFFh pop rbp loc_C1F1: mov eax, ebp pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_C1FC: mov [r15], r12d mov byte ptr [r14+rbx-1], 0 test rax, rax setz cl cmp rax, r14 setz dl xor ebp, ebp or dl, cl jnz short loc_C1F1 dec rbx mov byte ptr [r14], 0 mov rdi, r14 mov rsi, rax mov rdx, rbx call _strncat jmp short loc_C1F1
long long nglog::posix_strerror_r(nglog *this, _BYTE *a2, char *a3) { int *v4; // r15 int v5; // r12d long long v6; // rax unsigned int v7; // ebp if ( a3 == 0LL || a2 == 0LL ) { *(_DWORD *)__errno_location(this) = 22; return (unsigned int)-1; } *a2 = 0; v4 = (int *)((long long (*)(void))__errno_location)(); v5 = *v4; *v4 = 0; v6 = strerror_r((unsigned int)this, a2, a3); if ( *v4 ) { *a2 = 0; return (unsigned int)-1; } *v4 = v5; a3[(_QWORD)a2 - 1] = 0; v7 = 0; if ( v6 != 0 && v6 != (_QWORD)a2 ) { *a2 = 0; strncat(a2, v6, a3 - 1); } return v7; }
posix_strerror_r: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX TEST RSI,RSI SETNZ AL TEST RDX,RDX SETNZ CL TEST AL,CL JNZ 0x0010c1be CALL 0x00107050 MOV dword ptr [RAX],0x16 JMP 0x0010c1ee LAB_0010c1be: MOV RBX,RDX MOV R14,RSI MOV EBP,EDI MOV byte ptr [RSI],0x0 CALL 0x00107050 MOV R15,RAX MOV R12D,dword ptr [RAX] AND dword ptr [RAX],0x0 MOV EDI,EBP MOV RSI,R14 MOV RDX,RBX CALL 0x00107110 CMP dword ptr [R15],0x0 JZ 0x0010c1fc MOV byte ptr [R14],0x0 LAB_0010c1ee: PUSH -0x1 POP RBP LAB_0010c1f1: MOV EAX,EBP POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_0010c1fc: MOV dword ptr [R15],R12D MOV byte ptr [R14 + RBX*0x1 + -0x1],0x0 TEST RAX,RAX SETZ CL CMP RAX,R14 SETZ DL XOR EBP,EBP OR DL,CL JNZ 0x0010c1f1 DEC RBX MOV byte ptr [R14],0x0 MOV RDI,R14 MOV RSI,RAX MOV RDX,RBX CALL 0x001073b0 JMP 0x0010c1f1
/* nglog::posix_strerror_r(int, char*, unsigned long) */ int4 nglog::posix_strerror_r(int param_1,char *param_2,ulong param_3) { int iVar1; int *piVar2; char *__src; if (param_2 == (char *)0x0 || param_3 == 0) { piVar2 = __errno_location(); *piVar2 = 0x16; } else { *param_2 = '\0'; piVar2 = __errno_location(); iVar1 = *piVar2; *piVar2 = 0; __src = strerror_r(param_1,param_2,param_3); if (*piVar2 == 0) { *piVar2 = iVar1; param_2[param_3 - 1] = '\0'; if (__src == param_2 || __src == (char *)0x0) { return 0; } *param_2 = '\0'; strncat(param_2,__src,param_3 - 1); return 0; } *param_2 = '\0'; } return 0xffffffff; }
65,307
nglog::posix_strerror_r(int, char*, unsigned long)
ng-log[P]ng-log/src/logging.cc
NGLOG_NO_EXPORT int posix_strerror_r(int err, char* buf, size_t len) { // Sanity check input parameters if (buf == nullptr || len <= 0) { errno = EINVAL; return -1; } // Reset buf and errno, and try calling whatever version of strerror_r() // is implemented by glibc buf[0] = '\000'; int old_errno = errno; errno = 0; char* rc = reinterpret_cast<char*>(strerror_r(err, buf, len)); // Both versions set errno on failure if (errno) { // Should already be there, but better safe than sorry buf[0] = '\000'; return -1; } errno = old_errno; // POSIX is vague about whether the string will be terminated, although // is indirectly implies that typically ERANGE will be returned, instead // of truncating the string. This is different from the GNU implementation. // We play it safe by always terminating the string explicitly. buf[len - 1] = '\000'; // If the function succeeded, we can use its exit code to determine the // semantics implemented by glibc if (!rc) { return 0; } else { // GNU semantics detected if (rc == buf) { return 0; } else { buf[0] = '\000'; #if defined(NGLOG_OS_MACOSX) || defined(NGLOG_OS_FREEBSD) || \ defined(NGLOG_OS_OPENBSD) if (reinterpret_cast<intptr_t>(rc) < sys_nerr) { // This means an error on MacOSX or FreeBSD. return -1; } #endif strncat(buf, rc, len - 1); return 0; } } }
O3
cpp
nglog::posix_strerror_r(int, char*, unsigned long): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx testq %rsi, %rsi setne %al testq %rdx, %rdx setne %cl testb %cl, %al jne 0xdd3d callq 0x7050 movl $0x16, (%rax) jmp 0xdd70 movq %rdx, %rbx movq %rsi, %r14 movl %edi, %ebp movb $0x0, (%rsi) callq 0x7050 movq %rax, %r15 movl (%rax), %r12d movl $0x0, (%rax) movl %ebp, %edi movq %r14, %rsi movq %rbx, %rdx callq 0x70e0 cmpl $0x0, (%r15) je 0xdd80 movb $0x0, (%r14) movl $0xffffffff, %ebp # imm = 0xFFFFFFFF movl %ebp, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movl %r12d, (%r15) movb $0x0, -0x1(%r14,%rbx) testq %rax, %rax sete %cl cmpq %r14, %rax sete %dl xorl %ebp, %ebp orb %cl, %dl jne 0xdd75 decq %rbx movb $0x0, (%r14) movq %r14, %rdi movq %rax, %rsi movq %rbx, %rdx callq 0x7340 jmp 0xdd75
_ZN5nglog16posix_strerror_rEiPcm: push rbp push r15 push r14 push r12 push rbx test rsi, rsi setnz al test rdx, rdx setnz cl test al, cl jnz short loc_DD3D call ___errno_location mov dword ptr [rax], 16h jmp short loc_DD70 loc_DD3D: mov rbx, rdx mov r14, rsi mov ebp, edi mov byte ptr [rsi], 0 call ___errno_location mov r15, rax mov r12d, [rax] mov dword ptr [rax], 0 mov edi, ebp mov rsi, r14 mov rdx, rbx call _strerror_r cmp dword ptr [r15], 0 jz short loc_DD80 mov byte ptr [r14], 0 loc_DD70: mov ebp, 0FFFFFFFFh loc_DD75: mov eax, ebp pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_DD80: mov [r15], r12d mov byte ptr [r14+rbx-1], 0 test rax, rax setz cl cmp rax, r14 setz dl xor ebp, ebp or dl, cl jnz short loc_DD75 dec rbx mov byte ptr [r14], 0 mov rdi, r14 mov rsi, rax mov rdx, rbx call _strncat jmp short loc_DD75
long long nglog::posix_strerror_r(nglog *this, _BYTE *a2, char *a3) { int *v4; // r15 int v5; // r12d long long v6; // rax unsigned int v7; // ebp if ( a3 == 0LL || a2 == 0LL ) { *(_DWORD *)__errno_location(this) = 22; return (unsigned int)-1; } *a2 = 0; v4 = (int *)((long long (*)(void))__errno_location)(); v5 = *v4; *v4 = 0; v6 = strerror_r((unsigned int)this, a2, a3); if ( *v4 ) { *a2 = 0; return (unsigned int)-1; } *v4 = v5; a3[(_QWORD)a2 - 1] = 0; v7 = 0; if ( v6 != 0 && v6 != (_QWORD)a2 ) { *a2 = 0; strncat(a2, v6, a3 - 1); } return v7; }
posix_strerror_r: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX TEST RSI,RSI SETNZ AL TEST RDX,RDX SETNZ CL TEST AL,CL JNZ 0x0010dd3d CALL 0x00107050 MOV dword ptr [RAX],0x16 JMP 0x0010dd70 LAB_0010dd3d: MOV RBX,RDX MOV R14,RSI MOV EBP,EDI MOV byte ptr [RSI],0x0 CALL 0x00107050 MOV R15,RAX MOV R12D,dword ptr [RAX] MOV dword ptr [RAX],0x0 MOV EDI,EBP MOV RSI,R14 MOV RDX,RBX CALL 0x001070e0 CMP dword ptr [R15],0x0 JZ 0x0010dd80 MOV byte ptr [R14],0x0 LAB_0010dd70: MOV EBP,0xffffffff LAB_0010dd75: MOV EAX,EBP POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_0010dd80: MOV dword ptr [R15],R12D MOV byte ptr [R14 + RBX*0x1 + -0x1],0x0 TEST RAX,RAX SETZ CL CMP RAX,R14 SETZ DL XOR EBP,EBP OR DL,CL JNZ 0x0010dd75 DEC RBX MOV byte ptr [R14],0x0 MOV RDI,R14 MOV RSI,RAX MOV RDX,RBX CALL 0x00107340 JMP 0x0010dd75
/* nglog::posix_strerror_r(int, char*, unsigned long) */ int8 nglog::posix_strerror_r(int param_1,char *param_2,ulong param_3) { int iVar1; int *piVar2; char *__src; if (param_2 == (char *)0x0 || param_3 == 0) { piVar2 = __errno_location(); *piVar2 = 0x16; } else { *param_2 = '\0'; piVar2 = __errno_location(); iVar1 = *piVar2; *piVar2 = 0; __src = strerror_r(param_1,param_2,param_3); if (*piVar2 == 0) { *piVar2 = iVar1; param_2[param_3 - 1] = '\0'; if (__src == param_2 || __src == (char *)0x0) { return 0; } *param_2 = '\0'; strncat(param_2,__src,param_3 - 1); return 0; } *param_2 = '\0'; } return 0xffffffff; }
65,308
my_casedn_str_mb
eloqsql/strings/ctype-mb.c
size_t my_casedn_str_mb(CHARSET_INFO * cs, char *str) { register uint32 l; register const uchar *map= cs->to_lower; char *str_orig= str; while (*str) { /* Pointing after the '\0' is safe here. */ if ((l= my_ismbchar(cs, str, str + cs->mbmaxlen))) str+= l; else { *str= (char) map[(uchar)*str]; str++; } } return (size_t) (str - str_orig); }
O3
c
my_casedn_str_mb: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rsi, %rbx cmpb $0x0, (%rsi) movq %rsi, %rax je 0xb2fe4 movq %rdi, %r14 movq 0x48(%rdi), %r12 movq %rbx, %r15 movl 0x9c(%r14), %edx addq %r15, %rdx movq 0xb8(%r14), %rax movq %r14, %rdi movq %r15, %rsi callq *0xc0(%rax) cmpl $0x2, %eax jge 0xb2fd4 movzbl (%r15), %eax movb (%r12,%rax), %al movb %al, (%r15) movl $0x1, %ecx jmp 0xb2fd6 movl %eax, %ecx leaq (%r15,%rcx), %rax cmpb $0x0, (%r15,%rcx) movq %rax, %r15 jne 0xb2fa0 subq %rbx, %rax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
my_casedn_str_mb: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov rbx, rsi cmp byte ptr [rsi], 0 mov rax, rsi jz short loc_B2FE4 mov r14, rdi mov r12, [rdi+48h] mov r15, rbx loc_B2FA0: mov edx, [r14+9Ch] add rdx, r15 mov rax, [r14+0B8h] mov rdi, r14 mov rsi, r15 call qword ptr [rax+0C0h] cmp eax, 2 jge short loc_B2FD4 movzx eax, byte ptr [r15] mov al, [r12+rax] mov [r15], al mov ecx, 1 jmp short loc_B2FD6 loc_B2FD4: mov ecx, eax loc_B2FD6: lea rax, [r15+rcx] cmp byte ptr [r15+rcx], 0 mov r15, rax jnz short loc_B2FA0 loc_B2FE4: sub rax, rbx pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long my_casedn_str_mb(long long a1, _BYTE *a2) { _BYTE *v2; // rax long long v3; // r12 _BYTE *v4; // r15 int v5; // eax long long v6; // rcx bool v7; // zf v2 = a2; if ( *a2 ) { v3 = *(_QWORD *)(a1 + 72); v4 = a2; do { v5 = (*(long long ( **)(long long, _BYTE *, _BYTE *))(*(_QWORD *)(a1 + 184) + 192LL))( a1, v4, &v4[*(unsigned int *)(a1 + 156)]); if ( v5 >= 2 ) { v6 = (unsigned int)v5; } else { *v4 = *(_BYTE *)(v3 + (unsigned __int8)*v4); v6 = 1LL; } v2 = &v4[v6]; v7 = v4[v6] == 0; v4 += v6; } while ( !v7 ); } return v2 - a2; }
my_casedn_str_mb: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV RBX,RSI CMP byte ptr [RSI],0x0 MOV RAX,RSI JZ 0x001b2fe4 MOV R14,RDI MOV R12,qword ptr [RDI + 0x48] MOV R15,RBX LAB_001b2fa0: MOV EDX,dword ptr [R14 + 0x9c] ADD RDX,R15 MOV RAX,qword ptr [R14 + 0xb8] MOV RDI,R14 MOV RSI,R15 CALL qword ptr [RAX + 0xc0] CMP EAX,0x2 JGE 0x001b2fd4 MOVZX EAX,byte ptr [R15] MOV AL,byte ptr [R12 + RAX*0x1] MOV byte ptr [R15],AL MOV ECX,0x1 JMP 0x001b2fd6 LAB_001b2fd4: MOV ECX,EAX LAB_001b2fd6: LEA RAX,[R15 + RCX*0x1] CMP byte ptr [R15 + RCX*0x1],0x0 MOV R15,RAX JNZ 0x001b2fa0 LAB_001b2fe4: SUB RAX,RBX POP RBX POP R12 POP R14 POP R15 POP RBP RET
long my_casedn_str_mb(long param_1,byte *param_2) { byte *pbVar1; long lVar2; uint uVar3; byte *pbVar4; ulong uVar5; byte *pbVar6; pbVar4 = param_2; if (*param_2 != 0) { lVar2 = *(long *)(param_1 + 0x48); pbVar6 = param_2; do { uVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0)) (param_1,pbVar6,pbVar6 + *(uint *)(param_1 + 0x9c)); if ((int)uVar3 < 2) { *pbVar6 = *(byte *)(lVar2 + (ulong)*pbVar6); uVar5 = 1; } else { uVar5 = (ulong)uVar3; } pbVar4 = pbVar6 + uVar5; pbVar1 = pbVar6 + uVar5; pbVar6 = pbVar4; } while (*pbVar1 != 0); } return (long)pbVar4 - (long)param_2; }
65,309
mysql_client_plugin_init
eloqsql/build_O3/libmariadb/libmariadb/ma_client_plugin.c
int mysql_client_plugin_init() { MYSQL mysql; struct st_mysql_client_plugin **builtin; va_list unused; LINT_INIT_STRUCT(unused); if (initialized) return 0; memset(&mysql, 0, sizeof(mysql)); /* dummy mysql for set_mysql_extended_error */ pthread_mutex_init(&LOCK_load_client_plugin, NULL); ma_init_alloc_root(&mem_root, 128, 128); memset(&plugin_list, 0, sizeof(plugin_list)); initialized= 1; pthread_mutex_lock(&LOCK_load_client_plugin); for (builtin= mysql_client_builtins; *builtin; builtin++) add_plugin(&mysql, *builtin, 0, 0, unused); pthread_mutex_unlock(&LOCK_load_client_plugin); load_env_plugins(&mysql); return 0; }
O3
c
mysql_client_plugin_init: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x520, %rsp # imm = 0x520 movq %fs:0x28, %rax movq %rax, -0x28(%rbp) xorps %xmm0, %xmm0 movaps %xmm0, -0x540(%rbp) movq $0x0, -0x530(%rbp) cmpb $0x0, 0x25ac5(%rip) # 0x4fac0 jne 0x2a166 leaq -0x520(%rbp), %rdi movl $0x4f8, %edx # imm = 0x4F8 xorl %esi, %esi callq 0x13260 leaq 0x25aad(%rip), %rbx # 0x4fac8 movq %rbx, %rdi xorl %esi, %esi callq 0x136c0 leaq 0x25ac4(%rip), %rdi # 0x4faf0 movl $0x80, %esi movl $0x80, %edx callq 0x20a00 leaq 0x25aee(%rip), %rax # 0x4fb30 xorps %xmm0, %xmm0 movaps %xmm0, 0x30(%rax) movaps %xmm0, 0x20(%rax) movaps %xmm0, 0x10(%rax) movaps %xmm0, (%rax) movb $0x1, 0x25a65(%rip) # 0x4fac0 movq %rbx, %rdi callq 0x136b0 leaq 0x22fa6(%rip), %r15 # 0x4d010 movq (%r15), %rsi testq %rsi, %rsi je 0x2a09f addq $0x8, %r15 leaq -0x520(%rbp), %rbx leaq -0x540(%rbp), %r14 movq %rbx, %rdi xorl %edx, %edx xorl %ecx, %ecx movq %r14, %r8 callq 0x2a18c movq (%r15), %rsi addq $0x8, %r15 testq %rsi, %rsi jne 0x2a084 leaq 0x25a22(%rip), %rdi # 0x4fac8 callq 0x13330 leaq 0xede5(%rip), %rdi # 0x38e97 callq 0x135a0 testq %rax, %rax je 0x2a166 xorl %ecx, %ecx cmpb $0x0, (%rax,%rcx) je 0x2a0d9 incq %rcx cmpq $0x400, %rcx # imm = 0x400 jne 0x2a0c2 jmp 0x2a166 cmpq $0x3ff, %rcx # imm = 0x3FF ja 0x2a166 movq %rax, %rdi callq 0x137e0 movq %rax, %rbx movq %rax, %rdi movl $0x3b, %esi callq 0x13180 movq %rbx, %r15 testq %rax, %rax je 0x2a146 movq %rax, %r14 leaq -0x520(%rbp), %r12 movq %rbx, %r15 movb $0x0, (%r14) movq %r12, %rdi movq %r15, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx xorl %eax, %eax callq 0x2a731 movq %r14, %r15 incq %r15 movq %r15, %rdi movl $0x3b, %esi callq 0x13180 movq %rax, %r14 testq %rax, %rax jne 0x2a113 leaq -0x520(%rbp), %rdi movq %r15, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx xorl %eax, %eax callq 0x2a731 movq %rbx, %rdi callq 0x13570 movq %fs:0x28, %rax cmpq -0x28(%rbp), %rax jne 0x2a187 xorl %eax, %eax addq $0x520, %rsp # imm = 0x520 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq callq 0x13500
mysql_client_plugin_init: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx sub rsp, 520h mov rax, fs:28h mov [rbp+var_28], rax xorps xmm0, xmm0 movaps [rbp+var_540], xmm0 mov [rbp+var_530], 0 cmp cs:initialized, 0 jnz loc_2A166 lea rdi, [rbp+var_520] mov edx, 4F8h xor esi, esi call _memset lea rbx, LOCK_load_client_plugin mov rdi, rbx xor esi, esi call _pthread_mutex_init lea rdi, mem_root mov esi, 80h mov edx, 80h call ma_init_alloc_root lea rax, plugin_list xorps xmm0, xmm0 movaps xmmword ptr [rax+30h], xmm0 movaps xmmword ptr [rax+20h], xmm0 movaps xmmword ptr [rax+10h], xmm0 movaps xmmword ptr [rax], xmm0 mov cs:initialized, 1 mov rdi, rbx call _pthread_mutex_lock lea r15, mysql_client_builtins mov rsi, [r15] test rsi, rsi jz short loc_2A09F add r15, 8 lea rbx, [rbp+var_520] lea r14, [rbp+var_540] loc_2A084: mov rdi, rbx xor edx, edx xor ecx, ecx mov r8, r14 call add_plugin mov rsi, [r15] add r15, 8 test rsi, rsi jnz short loc_2A084 loc_2A09F: lea rdi, LOCK_load_client_plugin call _pthread_mutex_unlock lea rdi, aLibmysqlPlugin; "LIBMYSQL_PLUGINS" call _getenv test rax, rax jz loc_2A166 xor ecx, ecx loc_2A0C2: cmp byte ptr [rax+rcx], 0 jz short loc_2A0D9 inc rcx cmp rcx, 400h jnz short loc_2A0C2 jmp loc_2A166 loc_2A0D9: cmp rcx, 3FFh ja loc_2A166 mov rdi, rax call _strdup mov rbx, rax mov rdi, rax mov esi, 3Bh ; ';' call _strchr mov r15, rbx test rax, rax jz short loc_2A146 mov r14, rax lea r12, [rbp+var_520] mov r15, rbx loc_2A113: mov byte ptr [r14], 0 mov rdi, r12 mov rsi, r15 mov edx, 0FFFFFFFFh xor ecx, ecx xor eax, eax call mysql_load_plugin mov r15, r14 inc r15 mov rdi, r15 mov esi, 3Bh ; ';' call _strchr mov r14, rax test rax, rax jnz short loc_2A113 loc_2A146: lea rdi, [rbp+var_520] mov rsi, r15 mov edx, 0FFFFFFFFh xor ecx, ecx xor eax, eax call mysql_load_plugin mov rdi, rbx call _free loc_2A166: mov rax, fs:28h cmp rax, [rbp+var_28] jnz short loc_2A187 xor eax, eax add rsp, 520h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_2A187: call ___stack_chk_fail
long long mysql_client_plugin_init() { void *v0; // rsi void **v1; // r15 long long v2; // rax unsigned long long v3; // rcx long long v4; // rbx long long v5; // rax int v6; // r8d int v7; // r9d int v8; // r15d _BYTE *v9; // r14 __int128 v11; // [rsp+0h] [rbp-540h] BYREF long long v12; // [rsp+10h] [rbp-530h] _BYTE v13[1272]; // [rsp+20h] [rbp-520h] BYREF unsigned long long v14; // [rsp+518h] [rbp-28h] v14 = __readfsqword(0x28u); v11 = 0LL; v12 = 0LL; if ( !initialized ) { memset(v13, 0LL, sizeof(v13)); pthread_mutex_init(&LOCK_load_client_plugin, 0LL); ma_init_alloc_root((long long)&mem_root, 128LL, 128LL); plugin_list[3] = 0LL; plugin_list[2] = 0LL; plugin_list[1] = 0LL; plugin_list[0] = 0LL; initialized = 1; pthread_mutex_lock(&LOCK_load_client_plugin); v0 = mysql_client_builtins; if ( mysql_client_builtins ) { v1 = (void **)(&mysql_client_builtins + 1); do { ((void ( *)(_BYTE *, void *, _QWORD, _QWORD, __int128 *))add_plugin)(v13, v0, 0LL, 0LL, &v11); v0 = *v1++; } while ( v0 ); } pthread_mutex_unlock(&LOCK_load_client_plugin); v2 = getenv("LIBMYSQL_PLUGINS"); if ( v2 ) { v3 = 0LL; while ( *(_BYTE *)(v2 + v3) ) { if ( ++v3 == 1024 ) return 0LL; } if ( v3 <= 0x3FF ) { v4 = strdup(v2); v5 = strchr(v4, 59LL); v8 = v4; if ( v5 ) { v9 = (_BYTE *)v5; v8 = v4; do { *v9 = 0; mysql_load_plugin((unsigned int)v13, v8, -1, 0, v6, v7, v11); v8 = (_DWORD)v9 + 1; v9 = (_BYTE *)strchr(v9 + 1, 59LL); } while ( v9 ); } mysql_load_plugin((unsigned int)v13, v8, -1, 0, v6, v7, v11); free(v4); } } } return 0LL; }
mysql_client_plugin_init: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x520 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x28],RAX XORPS XMM0,XMM0 MOVAPS xmmword ptr [RBP + -0x540],XMM0 MOV qword ptr [RBP + -0x530],0x0 CMP byte ptr [0x0014fac0],0x0 JNZ 0x0012a166 LEA RDI,[RBP + -0x520] MOV EDX,0x4f8 XOR ESI,ESI CALL 0x00113260 LEA RBX,[0x14fac8] MOV RDI,RBX XOR ESI,ESI CALL 0x001136c0 LEA RDI,[0x14faf0] MOV ESI,0x80 MOV EDX,0x80 CALL 0x00120a00 LEA RAX,[0x14fb30] XORPS XMM0,XMM0 MOVAPS xmmword ptr [RAX + 0x30],XMM0 MOVAPS xmmword ptr [RAX + 0x20],XMM0 MOVAPS xmmword ptr [RAX + 0x10],XMM0 MOVAPS xmmword ptr [RAX],XMM0 MOV byte ptr [0x0014fac0],0x1 MOV RDI,RBX CALL 0x001136b0 LEA R15,[0x14d010] MOV RSI,qword ptr [R15] TEST RSI,RSI JZ 0x0012a09f ADD R15,0x8 LEA RBX,[RBP + -0x520] LEA R14,[RBP + -0x540] LAB_0012a084: MOV RDI,RBX XOR EDX,EDX XOR ECX,ECX MOV R8,R14 CALL 0x0012a18c MOV RSI,qword ptr [R15] ADD R15,0x8 TEST RSI,RSI JNZ 0x0012a084 LAB_0012a09f: LEA RDI,[0x14fac8] CALL 0x00113330 LEA RDI,[0x138e97] CALL 0x001135a0 TEST RAX,RAX JZ 0x0012a166 XOR ECX,ECX LAB_0012a0c2: CMP byte ptr [RAX + RCX*0x1],0x0 JZ 0x0012a0d9 INC RCX CMP RCX,0x400 JNZ 0x0012a0c2 JMP 0x0012a166 LAB_0012a0d9: CMP RCX,0x3ff JA 0x0012a166 MOV RDI,RAX CALL 0x001137e0 MOV RBX,RAX MOV RDI,RAX MOV ESI,0x3b CALL 0x00113180 MOV R15,RBX TEST RAX,RAX JZ 0x0012a146 MOV R14,RAX LEA R12,[RBP + -0x520] MOV R15,RBX LAB_0012a113: MOV byte ptr [R14],0x0 MOV RDI,R12 MOV RSI,R15 MOV EDX,0xffffffff XOR ECX,ECX XOR EAX,EAX CALL 0x0012a731 MOV R15,R14 INC R15 MOV RDI,R15 MOV ESI,0x3b CALL 0x00113180 MOV R14,RAX TEST RAX,RAX JNZ 0x0012a113 LAB_0012a146: LEA RDI,[RBP + -0x520] MOV RSI,R15 MOV EDX,0xffffffff XOR ECX,ECX XOR EAX,EAX CALL 0x0012a731 MOV RDI,RBX CALL 0x00113570 LAB_0012a166: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x28] JNZ 0x0012a187 XOR EAX,EAX ADD RSP,0x520 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_0012a187: CALL 0x00113500
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ int8 mysql_client_plugin_init(void) { char *pcVar1; char *__s; char *pcVar2; ulong uVar3; int *puVar4; int **ppuVar5; long in_FS_OFFSET; int8 local_548; int8 uStack_540; int8 local_538; int1 local_528 [1272]; long local_30; local_30 = *(long *)(in_FS_OFFSET + 0x28); local_548 = 0; uStack_540 = 0; local_538 = 0; if (initialized == '\0') { memset(local_528,0,0x4f8); pthread_mutex_init((pthread_mutex_t *)LOCK_load_client_plugin,(pthread_mutexattr_t *)0x0); ma_init_alloc_root(mem_root,0x80,0x80); _DAT_0014fb60 = 0; uRam000000000014fb68 = 0; _DAT_0014fb50 = 0; uRam000000000014fb58 = 0; _DAT_0014fb40 = 0; uRam000000000014fb48 = 0; plugin_list = 0; DAT_0014fb38 = 0; initialized = '\x01'; pthread_mutex_lock((pthread_mutex_t *)LOCK_load_client_plugin); if (mysql_client_builtins != (int *)0x0) { ppuVar5 = &PTR_mysql_old_password_client_plugin_0014d018; puVar4 = mysql_client_builtins; do { add_plugin(local_528,puVar4,0,0,&local_548); puVar4 = *ppuVar5; ppuVar5 = ppuVar5 + 1; } while (puVar4 != (int *)0x0); } pthread_mutex_unlock((pthread_mutex_t *)LOCK_load_client_plugin); pcVar1 = getenv("LIBMYSQL_PLUGINS"); if (pcVar1 != (char *)0x0) { uVar3 = 0; do { if (pcVar1[uVar3] == '\0') { if (uVar3 < 0x400) { __s = strdup(pcVar1); pcVar2 = strchr(__s,0x3b); pcVar1 = __s; if (pcVar2 != (char *)0x0) { do { *pcVar2 = '\0'; mysql_load_plugin(local_528,pcVar1,0xffffffff,0); pcVar1 = pcVar2 + 1; pcVar2 = strchr(pcVar1,0x3b); } while (pcVar2 != (char *)0x0); } mysql_load_plugin(local_528,pcVar1,0xffffffff,0); free(__s); } break; } uVar3 = uVar3 + 1; } while (uVar3 != 0x400); } } if (*(long *)(in_FS_OFFSET + 0x28) != local_30) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return 0; }
65,310
google::protobuf::internal::WireFormat::_InternalParse(google::protobuf::Message*, char const*, google::protobuf::internal::ParseContext*)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/wire_format.cc
const char* WireFormat::_InternalParse(Message* msg, const char* ptr, internal::ParseContext* ctx) { const Descriptor* descriptor = msg->GetDescriptor(); const Reflection* reflection = msg->GetReflection(); GOOGLE_DCHECK(descriptor); GOOGLE_DCHECK(reflection); if (descriptor->options().message_set_wire_format()) { MessageSetParser message_set{msg, descriptor, reflection}; return message_set.ParseMessageSet(ptr, ctx); } while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ReadTag(ptr, &tag); if (PROTOBUF_PREDICT_FALSE(ptr == nullptr)) return nullptr; if (tag == 0 || (tag & 7) == WireFormatLite::WIRETYPE_END_GROUP) { ctx->SetLastTag(tag); break; } const FieldDescriptor* field = nullptr; int field_number = WireFormatLite::GetTagFieldNumber(tag); field = descriptor->FindFieldByNumber(field_number); // If that failed, check if the field is an extension. if (field == nullptr && descriptor->IsExtensionNumber(field_number)) { if (ctx->data().pool == nullptr) { field = reflection->FindKnownExtensionByNumber(field_number); } else { field = ctx->data().pool->FindExtensionByNumber(descriptor, field_number); } } ptr = _InternalParseAndMergeField(msg, ptr, ctx, tag, reflection, field); if (PROTOBUF_PREDICT_FALSE(ptr == nullptr)) return nullptr; } return ptr; }
O3
cpp
google::protobuf::internal::WireFormat::_InternalParse(google::protobuf::Message*, char const*, google::protobuf::internal::ParseContext*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdx, %rbx movq %rsi, %r13 movq %rdi, %r14 movq %rsi, 0x8(%rsp) movq (%rdi), %rax callq *0x80(%rax) movq %rax, %r15 movq (%r14), %rax movq %r14, %rdi callq *0x80(%rax) movq %rdx, %r12 movq 0x20(%r15), %rax cmpb $0x0, 0x48(%rax) jne 0x87d19 movl 0x5c(%rbx), %edx movq %rbx, %rdi leaq 0x8(%rsp), %rsi callq 0x12fe7e movq 0x8(%rsp), %rdi testb %al, %al jne 0x87d00 movzbl (%rdi), %ebp leaq 0x1(%rdi), %rax testb %bpl, %bpl jns 0x87c54 movzbl (%rax), %eax movl %eax, %ecx shll $0x7, %ecx addl %ecx, %ebp addl $-0x80, %ebp testb %al, %al js 0x87cd7 addq $0x2, %rdi movq %rdi, %rax movq %rax, 0x8(%rsp) testl %ebp, %ebp je 0x87d05 movl %ebp, %ecx andl $0x7, %ecx cmpl $0x4, %ecx je 0x87d05 movl %ebp, %r13d shrl $0x3, %r13d movq %r15, %rdi movl %r13d, %esi callq 0x1799e2 testq %rax, %rax je 0x87cb1 movq 0x8(%rsp), %rsi movl %ebp, %ecx movq %r14, %rdi movq %rbx, %rdx movq %r12, %r8 movq %rax, %r9 callq 0x1613de movq %rax, 0x8(%rsp) testq %rax, %rax jne 0x87c0f jmp 0x87d36 movq %r15, %rdi movl %r13d, %esi callq 0x17a446 testq %rax, %rax je 0x87cef movq 0x60(%rbx), %rdi testq %rdi, %rdi je 0x87cf3 movq %r15, %rsi movl %r13d, %edx callq 0x1793e0 jmp 0x87c86 movl %ebp, %esi callq 0x135722 movq %rax, 0x8(%rsp) testq %rax, %rax je 0x87d36 movl %edx, %ebp jmp 0x87c59 xorl %eax, %eax jmp 0x87c86 movq %r12, %rdi movl %r13d, %esi callq 0x14d942 jmp 0x87c86 movq %rdi, %rax jmp 0x87d0a decl %ebp movl %ebp, 0x50(%rbx) addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x10(%rsp), %rdi movq %r14, (%rdi) movq %r15, 0x8(%rdi) movq %r12, 0x10(%rdi) movq %r13, %rsi movq %rbx, %rdx callq 0x87db6 jmp 0x87d0a xorl %eax, %eax jmp 0x87d0a
_ZN6google8protobuf8internal10WireFormat14_InternalParseEPNS0_7MessageEPKcPNS1_12ParseContextE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov rbx, rdx mov r13, rsi mov r14, rdi mov [rsp+58h+var_50], rsi mov rax, [rdi] call qword ptr [rax+80h] mov r15, rax mov rax, [r14] mov rdi, r14 call qword ptr [rax+80h] mov r12, rdx mov rax, [r15+20h] cmp byte ptr [rax+48h], 0 jnz loc_87D19 loc_87C0F: mov edx, [rbx+5Ch]; int mov rdi, rbx; this lea rsi, [rsp+58h+var_50]; char ** call _ZN6google8protobuf8internal18EpsCopyInputStream13DoneWithCheckEPPKci; google::protobuf::internal::EpsCopyInputStream::DoneWithCheck(char const**,int) mov rdi, [rsp+58h+var_50]; this test al, al jnz loc_87D00 movzx ebp, byte ptr [rdi] lea rax, [rdi+1] test bpl, bpl jns short loc_87C54 movzx eax, byte ptr [rax] mov ecx, eax shl ecx, 7 add ebp, ecx add ebp, 0FFFFFF80h test al, al js loc_87CD7 add rdi, 2 mov rax, rdi loc_87C54: mov [rsp+58h+var_50], rax loc_87C59: test ebp, ebp jz loc_87D05 mov ecx, ebp and ecx, 7 cmp ecx, 4 jz loc_87D05 mov r13d, ebp shr r13d, 3 mov rdi, r15; this mov esi, r13d; int call _ZNK6google8protobuf10Descriptor17FindFieldByNumberEi; google::protobuf::Descriptor::FindFieldByNumber(int) test rax, rax jz short loc_87CB1 loc_87C86: mov rsi, [rsp+58h+var_50]; google::protobuf::Message * mov ecx, ebp; google::protobuf::internal::ParseContext * mov rdi, r14; this mov rdx, rbx; char * mov r8, r12; google::protobuf::Reflection * mov r9, rax; google::protobuf::Reflection * call _ZN6google8protobuf8internal10WireFormat27_InternalParseAndMergeFieldEPNS0_7MessageEPKcPNS1_12ParseContextEmPKNS0_10ReflectionEPKNS0_15FieldDescriptorE; google::protobuf::internal::WireFormat::_InternalParseAndMergeField(google::protobuf::Message *,char const*,google::protobuf::internal::ParseContext *,ulong,google::protobuf::Reflection const*,google::protobuf::FieldDescriptor const*) mov [rsp+58h+var_50], rax test rax, rax jnz loc_87C0F jmp loc_87D36 loc_87CB1: mov rdi, r15; this mov esi, r13d; int call _ZNK6google8protobuf10Descriptor34FindExtensionRangeContainingNumberEi; google::protobuf::Descriptor::FindExtensionRangeContainingNumber(int) test rax, rax jz short loc_87CEF mov rdi, [rbx+60h]; this test rdi, rdi jz short loc_87CF3 mov rsi, r15; google::protobuf::Descriptor * mov edx, r13d; int call _ZNK6google8protobuf14DescriptorPool21FindExtensionByNumberEPKNS0_10DescriptorEi; google::protobuf::DescriptorPool::FindExtensionByNumber(google::protobuf::Descriptor const*,int) jmp short loc_87C86 loc_87CD7: mov esi, ebp; char * call _ZN6google8protobuf8internal15ReadTagFallbackEPKcj; google::protobuf::internal::ReadTagFallback(char const*,uint) mov [rsp+58h+var_50], rax test rax, rax jz short loc_87D36 mov ebp, edx jmp loc_87C59 loc_87CEF: xor eax, eax jmp short loc_87C86 loc_87CF3: mov rdi, r12; this mov esi, r13d; int call _ZNK6google8protobuf10Reflection26FindKnownExtensionByNumberEi; google::protobuf::Reflection::FindKnownExtensionByNumber(int) jmp short loc_87C86 loc_87D00: mov rax, rdi jmp short loc_87D0A loc_87D05: dec ebp mov [rbx+50h], ebp loc_87D0A: add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_87D19: lea rdi, [rsp+58h+var_48]; this mov [rdi], r14 mov [rdi+8], r15 mov [rdi+10h], r12 mov rsi, r13; char * mov rdx, rbx; google::protobuf::internal::ParseContext * call _ZN6google8protobuf8internal10WireFormat16MessageSetParser15ParseMessageSetEPKcPNS1_12ParseContextE; google::protobuf::internal::WireFormat::MessageSetParser::ParseMessageSet(char const*,google::protobuf::internal::ParseContext *) jmp short loc_87D0A loc_87D36: xor eax, eax jmp short loc_87D0A
google::protobuf::internal * google::protobuf::internal::WireFormat::_InternalParse( google::protobuf::internal::WireFormat *this, google::protobuf::Message *a2, char *a3, google::protobuf::internal::ParseContext *a4) { google::protobuf::Descriptor *v6; // r15 google::protobuf::Reflection *v7; // rdx google::protobuf::Reflection *v8; // r12 unsigned int v9; // edx unsigned int v10; // ebp google::protobuf::internal *result; // rax int v12; // eax int v13; // r13d const google::protobuf::Reflection *FieldByNumber; // rax google::protobuf::DescriptorPool *v15; // rdi unsigned int v16; // edx const google::protobuf::FieldDescriptor *v17; // [rsp+0h] [rbp-58h] google::protobuf::internal *v18; // [rsp+8h] [rbp-50h] BYREF _QWORD v19[9]; // [rsp+10h] [rbp-48h] BYREF v18 = a2; v6 = (google::protobuf::Descriptor *)(*(long long ( **)(google::protobuf::internal::WireFormat *, google::protobuf::Message *, char *, google::protobuf::internal::ParseContext *))(*(_QWORD *)this + 128LL))( this, a2, a3, a4); (*(void ( **)(google::protobuf::internal::WireFormat *))(*(_QWORD *)this + 128LL))(this); v8 = v7; if ( *(_BYTE *)(*((_QWORD *)v6 + 4) + 72LL) ) { v19[0] = this; v19[1] = v6; v19[2] = v7; return (google::protobuf::internal *)google::protobuf::internal::WireFormat::MessageSetParser::ParseMessageSet( (google::protobuf::internal::WireFormat::MessageSetParser *)v19, (const char *)a2, (google::protobuf::internal::ParseContext *)a3); } do { if ( (unsigned __int8)google::protobuf::internal::EpsCopyInputStream::DoneWithCheck( (google::protobuf::internal::EpsCopyInputStream *)a3, (const char **)&v18, *((_DWORD *)a3 + 23)) ) return v18; v10 = *(unsigned __int8 *)v18; result = (google::protobuf::internal *)((char *)v18 + 1); if ( (v10 & 0x80u) == 0 ) goto LABEL_6; v12 = *(unsigned __int8 *)result; v10 = (v12 << 7) + v10 - 128; if ( (v12 & 0x80u) == 0 ) { result = (google::protobuf::internal *)((char *)v18 + 2); LABEL_6: v18 = result; goto LABEL_7; } result = (google::protobuf::internal *)google::protobuf::internal::ReadTagFallback(v18, (const char *)v10, v9); v18 = result; if ( !result ) return 0LL; v10 = v16; LABEL_7: if ( !v10 || (v10 & 7) == 4 ) { *((_DWORD *)a3 + 20) = v10 - 1; return result; } v13 = v10 >> 3; FieldByNumber = (const google::protobuf::Reflection *)google::protobuf::Descriptor::FindFieldByNumber(v6, v10 >> 3); if ( !FieldByNumber ) { if ( google::protobuf::Descriptor::FindExtensionRangeContainingNumber(v6, v13) ) { v15 = (google::protobuf::DescriptorPool *)*((_QWORD *)a3 + 12); if ( v15 ) FieldByNumber = (const google::protobuf::Reflection *)google::protobuf::DescriptorPool::FindExtensionByNumber( v15, v6, v13); else FieldByNumber = (const google::protobuf::Reflection *)google::protobuf::Reflection::FindKnownExtensionByNumber( v8, v13); } else { FieldByNumber = 0LL; } } v18 = (google::protobuf::internal *)google::protobuf::internal::WireFormat::_InternalParseAndMergeField( this, v18, a3, (google::protobuf::internal::ParseContext *)v10, v8, FieldByNumber, v17); } while ( v18 ); return 0LL; }
_InternalParse: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,RDX MOV R13,RSI MOV R14,RDI MOV qword ptr [RSP + 0x8],RSI MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x80] MOV R15,RAX MOV RAX,qword ptr [R14] MOV RDI,R14 CALL qword ptr [RAX + 0x80] MOV R12,RDX MOV RAX,qword ptr [R15 + 0x20] CMP byte ptr [RAX + 0x48],0x0 JNZ 0x00187d19 LAB_00187c0f: MOV EDX,dword ptr [RBX + 0x5c] MOV RDI,RBX LEA RSI,[RSP + 0x8] CALL 0x0022fe7e MOV RDI,qword ptr [RSP + 0x8] TEST AL,AL JNZ 0x00187d00 MOVZX EBP,byte ptr [RDI] LEA RAX,[RDI + 0x1] TEST BPL,BPL JNS 0x00187c54 MOVZX EAX,byte ptr [RAX] MOV ECX,EAX SHL ECX,0x7 ADD EBP,ECX ADD EBP,-0x80 TEST AL,AL JS 0x00187cd7 ADD RDI,0x2 MOV RAX,RDI LAB_00187c54: MOV qword ptr [RSP + 0x8],RAX LAB_00187c59: TEST EBP,EBP JZ 0x00187d05 MOV ECX,EBP AND ECX,0x7 CMP ECX,0x4 JZ 0x00187d05 MOV R13D,EBP SHR R13D,0x3 MOV RDI,R15 MOV ESI,R13D CALL 0x002799e2 TEST RAX,RAX JZ 0x00187cb1 LAB_00187c86: MOV RSI,qword ptr [RSP + 0x8] MOV ECX,EBP MOV RDI,R14 MOV RDX,RBX MOV R8,R12 MOV R9,RAX CALL 0x002613de MOV qword ptr [RSP + 0x8],RAX TEST RAX,RAX JNZ 0x00187c0f JMP 0x00187d36 LAB_00187cb1: MOV RDI,R15 MOV ESI,R13D CALL 0x0027a446 TEST RAX,RAX JZ 0x00187cef MOV RDI,qword ptr [RBX + 0x60] TEST RDI,RDI JZ 0x00187cf3 MOV RSI,R15 MOV EDX,R13D CALL 0x002793e0 JMP 0x00187c86 LAB_00187cd7: MOV ESI,EBP CALL 0x00235722 MOV qword ptr [RSP + 0x8],RAX TEST RAX,RAX JZ 0x00187d36 MOV EBP,EDX JMP 0x00187c59 LAB_00187cef: XOR EAX,EAX JMP 0x00187c86 LAB_00187cf3: MOV RDI,R12 MOV ESI,R13D CALL 0x0024d942 JMP 0x00187c86 LAB_00187d00: MOV RAX,RDI JMP 0x00187d0a LAB_00187d05: DEC EBP MOV dword ptr [RBX + 0x50],EBP LAB_00187d0a: ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00187d19: LEA RDI,[RSP + 0x10] MOV qword ptr [RDI],R14 MOV qword ptr [RDI + 0x8],R15 MOV qword ptr [RDI + 0x10],R12 MOV RSI,R13 MOV RDX,RBX CALL 0x00187db6 JMP 0x00187d0a LAB_00187d36: XOR EAX,EAX JMP 0x00187d0a
/* google::protobuf::internal::WireFormat::_InternalParse(google::protobuf::Message*, char const*, google::protobuf::internal::ParseContext*) */ byte * google::protobuf::internal::WireFormat::_InternalParse (Message *param_1,char *param_2,ParseContext *param_3) { byte bVar1; byte bVar2; char cVar3; Descriptor *this; FieldDescriptor *pFVar4; long lVar5; byte *pbVar6; Reflection *this_00; uint uVar7; uint uVar8; int1 auVar9 [12]; byte *local_50; Message *local_48; Descriptor *local_40; Reflection *local_38; local_50 = (byte *)param_2; this = (Descriptor *)(**(code **)(*(long *)param_1 + 0x80))(); (**(code **)(*(long *)param_1 + 0x80))(param_1); if (*(char *)(*(long *)(this + 0x20) + 0x48) == '\0') { do { cVar3 = EpsCopyInputStream::DoneWithCheck ((EpsCopyInputStream *)param_3,(char **)&local_50,*(int *)(param_3 + 0x5c)); if (cVar3 != '\0') { return local_50; } bVar1 = *local_50; auVar9[8] = bVar1; auVar9._0_8_ = local_50 + 1; auVar9._9_3_ = 0; if ((char)bVar1 < '\0') { bVar2 = local_50[1]; uVar7 = ((uint)bVar1 + (uint)bVar2 * 0x80) - 0x80; if ((char)bVar2 < '\0') { auVar9 = ReadTagFallback((char *)local_50,uVar7); if (auVar9._0_8_ == 0) break; } else { auVar9._8_4_ = uVar7; auVar9._0_8_ = local_50 + 2; } } uVar7 = auVar9._8_4_; local_50 = auVar9._0_8_; if ((uVar7 == 0) || ((uVar7 & 7) == 4)) { *(uint *)(param_3 + 0x50) = uVar7 - 1; return local_50; } uVar8 = uVar7 >> 3; pFVar4 = (FieldDescriptor *)Descriptor::FindFieldByNumber(this,uVar8); if (pFVar4 == (FieldDescriptor *)0x0) { lVar5 = Descriptor::FindExtensionRangeContainingNumber(this,uVar8); if (lVar5 == 0) { pFVar4 = (FieldDescriptor *)0x0; } else if (*(DescriptorPool **)(param_3 + 0x60) == (DescriptorPool *)0x0) { pFVar4 = (FieldDescriptor *)Reflection::FindKnownExtensionByNumber(this_00,uVar8); } else { pFVar4 = (FieldDescriptor *) DescriptorPool::FindExtensionByNumber (*(DescriptorPool **)(param_3 + 0x60),this,uVar8); } } local_50 = (byte *)_InternalParseAndMergeField (param_1,(char *)local_50,param_3,(ulong)uVar7,this_00,pFVar4); } while (local_50 != (byte *)0x0); pbVar6 = (byte *)0x0; } else { local_48 = param_1; local_40 = this; local_38 = this_00; pbVar6 = (byte *)MessageSetParser::ParseMessageSet ((MessageSetParser *)&local_48,param_2,param_3); } return pbVar6; }
65,311
my_strnxfrm_simple_nopad
eloqsql/strings/ctype-simple.c
size_t my_strnxfrm_simple_nopad(CHARSET_INFO * cs, uchar *dst, size_t dstlen, uint nweights, const uchar *src, size_t srclen, uint flags) { uchar *d0= dst; dst= d0 + my_strnxfrm_simple_internal(cs, dst, dstlen, &nweights, src, srclen); return my_strxfrm_pad_desc_and_reverse_nopad(cs, d0, dst, d0 + dstlen, nweights, flags, 0); }
O0
c
my_strnxfrm_simple_nopad: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movl 0x10(%rbp), %eax movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movq %r8, -0x28(%rbp) movq %r9, -0x30(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx movq -0x28(%rbp), %r8 movq -0x30(%rbp), %r9 leaq -0x1c(%rbp), %rcx callq 0x51ac0 movq %rax, %rcx movq -0x40(%rbp), %rax addq %rcx, %rax movq %rax, -0x10(%rbp) movq -0x8(%rbp), %rdi movq -0x38(%rbp), %rsi movq -0x10(%rbp), %rdx movq -0x38(%rbp), %rcx addq -0x18(%rbp), %rcx movl -0x1c(%rbp), %r8d movl 0x10(%rbp), %r9d xorl %eax, %eax movl $0x0, (%rsp) callq 0x51e20 addq $0x50, %rsp popq %rbp retq nopl (%rax)
my_strnxfrm_simple_nopad: push rbp mov rbp, rsp sub rsp, 50h mov eax, [rbp+arg_0] mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_1C], ecx mov [rbp+var_28], r8 mov [rbp+var_30], r9 mov rax, [rbp+var_10] mov [rbp+var_38], rax mov rax, [rbp+var_38] mov [rbp+var_40], rax mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov rdx, [rbp+var_18] mov r8, [rbp+var_28] mov r9, [rbp+var_30] lea rcx, [rbp+var_1C] call my_strnxfrm_simple_internal mov rcx, rax mov rax, [rbp+var_40] add rax, rcx mov [rbp+var_10], rax mov rdi, [rbp+var_8] mov rsi, [rbp+var_38] mov rdx, [rbp+var_10] mov rcx, [rbp+var_38] add rcx, [rbp+var_18] mov r8d, [rbp+var_1C] mov r9d, [rbp+arg_0] xor eax, eax mov [rsp+50h+var_50], 0 call my_strxfrm_pad_desc_and_reverse_nopad add rsp, 50h pop rbp retn
long long my_strnxfrm_simple_nopad( long long a1, unsigned __int8 *a2, unsigned long long a3, unsigned int a4, unsigned __int8 *a5, unsigned long long a6, int a7) { _BYTE *v7; // rax unsigned int v9; // [rsp+34h] [rbp-1Ch] BYREF unsigned long long v10; // [rsp+38h] [rbp-18h] unsigned __int8 *v11; // [rsp+40h] [rbp-10h] long long v12; // [rsp+48h] [rbp-8h] v12 = a1; v11 = a2; v10 = a3; v9 = a4; v7 = my_strnxfrm_simple_internal(a1, a2, a3, &v9, a5, a6); v11 = &a2[(_QWORD)v7]; return my_strxfrm_pad_desc_and_reverse_nopad(v12, (_DWORD)a2, (int)v7 + (int)a2, (int)v10 + (int)a2, v9, a7, 0); }
my_strnxfrm_simple_nopad: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV EAX,dword ptr [RBP + 0x10] MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV dword ptr [RBP + -0x1c],ECX MOV qword ptr [RBP + -0x28],R8 MOV qword ptr [RBP + -0x30],R9 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x40],RAX MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] MOV R8,qword ptr [RBP + -0x28] MOV R9,qword ptr [RBP + -0x30] LEA RCX,[RBP + -0x1c] CALL 0x00151ac0 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x40] ADD RAX,RCX MOV qword ptr [RBP + -0x10],RAX MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x38] MOV RDX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x38] ADD RCX,qword ptr [RBP + -0x18] MOV R8D,dword ptr [RBP + -0x1c] MOV R9D,dword ptr [RBP + 0x10] XOR EAX,EAX MOV dword ptr [RSP],0x0 CALL 0x00151e20 ADD RSP,0x50 POP RBP RET
void my_strnxfrm_simple_nopad (int8 param_1,long param_2,long param_3,int4 param_4,int8 param_5, int8 param_6,int4 param_7) { int4 local_24; long local_20; long local_18; int8 local_10; local_24 = param_4; local_20 = param_3; local_18 = param_2; local_10 = param_1; local_18 = my_strnxfrm_simple_internal(param_1,param_2,param_3,&local_24,param_5,param_6); local_18 = param_2 + local_18; my_strxfrm_pad_desc_and_reverse_nopad (local_10,param_2,local_18,param_2 + local_20,local_24,param_7,0); return; }
65,312
get_logfile_by_number
eloqsql/storage/maria/ma_loghandler.c
static TRANSLOG_FILE *get_logfile_by_number(uint32 file_no) { TRANSLOG_FILE *file; DBUG_ENTER("get_logfile_by_number"); mysql_rwlock_rdlock(&log_descriptor.open_files_lock); if (log_descriptor.max_file - file_no >= log_descriptor.open_files.elements) { DBUG_PRINT("info", ("File #%u is not opened", file_no)); mysql_rwlock_unlock(&log_descriptor.open_files_lock); DBUG_RETURN(NULL); } DBUG_ASSERT(log_descriptor.max_file - log_descriptor.min_file + 1 == log_descriptor.open_files.elements); DBUG_ASSERT(log_descriptor.max_file >= file_no); DBUG_ASSERT(log_descriptor.min_file <= file_no); file= *dynamic_element(&log_descriptor.open_files, log_descriptor.max_file - file_no, TRANSLOG_FILE **); mysql_rwlock_unlock(&log_descriptor.open_files_lock); DBUG_PRINT("info", ("File %p File no: %u, File handler: %d", file, file_no, (file ? file->handler.file : -1))); DBUG_ASSERT(!file || file->number == file_no); DBUG_RETURN(file); }
O0
c
get_logfile_by_number: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl %edi, -0xc(%rbp) leaq 0x3f57be(%rip), %rdi # 0x488420 addq $0x258, %rdi # imm = 0x258 leaq 0xca853(%rip), %rsi # 0x15d4c3 movl $0x41d, %edx # imm = 0x41D callq 0x92d00 movl 0x3f59f0(%rip), %eax # 0x488670 subl -0xc(%rbp), %eax cmpl 0x3f59c7(%rip), %eax # 0x488650 jb 0x92cac jmp 0x92c8d jmp 0x92c8f leaq 0x3f578a(%rip), %rdi # 0x488420 addq $0x258, %rdi # imm = 0x258 callq 0x91b90 movq $0x0, -0x8(%rbp) jmp 0x92cf5 jmp 0x92cae jmp 0x92cb0 jmp 0x92cb2 jmp 0x92cb4 jmp 0x92cb6 jmp 0x92cb8 movq 0x3f5989(%rip), %rax # 0x488648 movl 0x3f59ab(%rip), %ecx # 0x488670 subl -0xc(%rbp), %ecx movl %ecx, %ecx movq (%rax,%rcx,8), %rax movq %rax, -0x18(%rbp) leaq 0x3f5747(%rip), %rdi # 0x488420 addq $0x258, %rdi # imm = 0x258 callq 0x91b90 jmp 0x92ce7 jmp 0x92ce9 jmp 0x92ceb jmp 0x92ced movq -0x18(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x20, %rsp popq %rbp retq nop
get_logfile_by_number: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_C], edi lea rdi, log_descriptor add rdi, 258h lea rsi, aWorkspaceLlm4b_19; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 41Dh call inline_mysql_rwlock_rdlock_2 mov eax, cs:dword_488670 sub eax, [rbp+var_C] cmp eax, cs:dword_488650 jb short loc_92CAC jmp short $+2 loc_92C8D: jmp short $+2 loc_92C8F: lea rdi, log_descriptor add rdi, 258h call inline_mysql_rwlock_unlock_4 mov [rbp+var_8], 0 jmp short loc_92CF5 loc_92CAC: jmp short $+2 loc_92CAE: jmp short $+2 loc_92CB0: jmp short $+2 loc_92CB2: jmp short $+2 loc_92CB4: jmp short $+2 loc_92CB6: jmp short $+2 loc_92CB8: mov rax, cs:qword_488648 mov ecx, cs:dword_488670 sub ecx, [rbp+var_C] mov ecx, ecx mov rax, [rax+rcx*8] mov [rbp+var_18], rax lea rdi, log_descriptor add rdi, 258h call inline_mysql_rwlock_unlock_4 jmp short $+2 loc_92CE7: jmp short $+2 loc_92CE9: jmp short $+2 loc_92CEB: jmp short $+2 loc_92CED: mov rax, [rbp+var_18] mov [rbp+var_8], rax loc_92CF5: mov rax, [rbp+var_8] add rsp, 20h pop rbp retn
long long get_logfile_by_number(int a1) { long long v2; // [rsp+8h] [rbp-18h] inline_mysql_rwlock_rdlock_2( &log_descriptor[75], "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c", 1053LL); if ( dword_488670 - a1 < (unsigned int)dword_488650 ) { v2 = *(_QWORD *)(qword_488648 + 8LL * (unsigned int)(dword_488670 - a1)); inline_mysql_rwlock_unlock_4((long long)&log_descriptor[75]); return v2; } else { inline_mysql_rwlock_unlock_4((long long)&log_descriptor[75]); return 0LL; } }
get_logfile_by_number: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV dword ptr [RBP + -0xc],EDI LEA RDI,[0x588420] ADD RDI,0x258 LEA RSI,[0x25d4c3] MOV EDX,0x41d CALL 0x00192d00 MOV EAX,dword ptr [0x00588670] SUB EAX,dword ptr [RBP + -0xc] CMP EAX,dword ptr [0x00588650] JC 0x00192cac JMP 0x00192c8d LAB_00192c8d: JMP 0x00192c8f LAB_00192c8f: LEA RDI,[0x588420] ADD RDI,0x258 CALL 0x00191b90 MOV qword ptr [RBP + -0x8],0x0 JMP 0x00192cf5 LAB_00192cac: JMP 0x00192cae LAB_00192cae: JMP 0x00192cb0 LAB_00192cb0: JMP 0x00192cb2 LAB_00192cb2: JMP 0x00192cb4 LAB_00192cb4: JMP 0x00192cb6 LAB_00192cb6: JMP 0x00192cb8 LAB_00192cb8: MOV RAX,qword ptr [0x00588648] MOV ECX,dword ptr [0x00588670] SUB ECX,dword ptr [RBP + -0xc] MOV ECX,ECX MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RBP + -0x18],RAX LEA RDI,[0x588420] ADD RDI,0x258 CALL 0x00191b90 JMP 0x00192ce7 LAB_00192ce7: JMP 0x00192ce9 LAB_00192ce9: JMP 0x00192ceb LAB_00192ceb: JMP 0x00192ced LAB_00192ced: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x8],RAX LAB_00192cf5: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x20 POP RBP RET
int8 get_logfile_by_number(int param_1) { int8 local_10; inline_mysql_rwlock_rdlock (&DAT_00588678,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c", 0x41d); if ((uint)(DAT_00588670 - param_1) < DAT_00588650) { local_10 = *(int8 *)(DAT_00588648 + (ulong)(uint)(DAT_00588670 - param_1) * 8); inline_mysql_rwlock_unlock(&DAT_00588678); } else { inline_mysql_rwlock_unlock(&DAT_00588678); local_10 = 0; } return local_10; }
65,313
OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<unsigned char, 512u, false>::allocate(unsigned int)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/../tmr/../tmr/../tmr/../tmr/../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<unsigned char, 512u, false>::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 $0x0, %rdi callq 0xcd100 movq %rax, %rcx movq -0x18(%rbp), %rax movq %rcx, 0x210(%rax) movq 0x210(%rax), %rcx movq %rcx, (%rax) movl -0xc(%rbp), %ecx movl %ecx, 0xc(%rax) addq $0x20, %rsp popq %rbp retq nopl (%rax)
_ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferIhLj512ELb0EE8allocateEj: 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, 0; unsigned __int64 call __Znwm; operator new(ulong) mov rcx, rax mov rax, [rbp+var_18] mov [rax+210h], rcx mov rcx, [rax+210h] 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<unsigned char,512u,false>::allocate( long long a1, unsigned int a2) { long long v2; // rcx long long result; // rax v2 = operator new(a2); result = a1; *(_QWORD *)(a1 + 528) = v2; *(_QWORD *)a1 = *(_QWORD *)(a1 + 528); *(_DWORD *)(a1 + 12) = a2; return result; }
65,314
OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<unsigned char, 512u, false>::allocate(unsigned int)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/../tmr/../tmr/../tmr/../tmr/../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<unsigned char, 512u, false>::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, 0x90(%r14) movq %rax, (%r14) movl %ebx, 0xc(%r14) addq $0x8, %rsp popq %rbx popq %r14 retq
_ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferIPNS0_3Tmr15SubdivisionPlanELj16ELb0EE8allocateEj: 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+90h], 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::Tmr::SubdivisionPlan *,16u,false>::allocate( long long a1, unsigned int a2) { long long result; // rax result = operator new(8LL * a2); *(_QWORD *)(a1 + 144) = 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 + 0x90],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::Tmr::SubdivisionPlan*, 16u, false>::allocate(unsigned int) */ void __thiscall OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan*,16u,false> ::allocate(StackBuffer<OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan*,16u,false> *this,uint param_1) { void *pvVar1; pvVar1 = operator_new((ulong)param_1 << 3); *(void **)(this + 0x90) = pvVar1; *(void **)this = pvVar1; *(uint *)(this + 0xc) = param_1; return; }
65,315
apply_shift
eloqsql/strings/ctype-uca.c
static my_bool apply_shift(MY_CHARSET_LOADER *loader, MY_COLL_RULES *rules, MY_COLL_RULE *r, int level, uint16 *to, size_t nweights) { /* Apply level difference. */ if (nweights) { to[nweights - 1]+= r->diff[level]; if (r->before_level == 1) /* Apply "&[before primary]" */ { if (nweights >= 2) { to[nweights - 2]--; /* Reset before */ if (rules->shift_after_method == my_shift_method_expand) { /* Special case. Don't let characters shifted after X and before next(X) intermix to each other. For example: "[shift-after-method expand] &0 < a &[before primary]1 < A". I.e. we reorder 'a' after '0', and then 'A' before '1'. 'a' must be sorted before 'A'. Note, there are no real collations in CLDR which shift after and before two neighbourgh characters. We need this just in case. Reserving 4096 (0x1000) weights for such cases is perfectly enough. */ to[nweights - 1]+= 0x1000; /* W3-TODO: const may vary on levels 2,3*/ } } else { my_snprintf(loader->error, sizeof(loader->error), "Can't reset before " "a primary ignorable character U+%04lX", r->base[0]); return TRUE; } } } else { /* Shift to an ignorable character, e.g.: & \u0000 < \u0001 */ DBUG_ASSERT(to[0] == 0); to[0]= r->diff[level]; } return FALSE; }
O0
c
apply_shift: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movq %r8, -0x30(%rbp) movq %r9, -0x38(%rbp) cmpq $0x0, -0x38(%rbp) je 0x504ba movq -0x20(%rbp), %rax movslq -0x24(%rbp), %rcx movl 0x80(%rax,%rcx,4), %esi movq -0x30(%rbp), %rax movq -0x38(%rbp), %rcx subq $0x1, %rcx movzwl (%rax,%rcx,2), %edx addl %esi, %edx movw %dx, (%rax,%rcx,2) movq -0x20(%rbp), %rax cmpq $0x1, 0x90(%rax) jne 0x504b8 cmpq $0x2, -0x38(%rbp) jb 0x50492 movq -0x30(%rbp), %rax movq -0x38(%rbp), %rcx subq $0x2, %rcx movw (%rax,%rcx,2), %dx addw $-0x1, %dx movw %dx, (%rax,%rcx,2) movq -0x18(%rbp), %rax cmpl $0x1, 0x30(%rax) jne 0x50490 movq -0x30(%rbp), %rax movq -0x38(%rbp), %rcx subq $0x1, %rcx movzwl (%rax,%rcx,2), %edx addl $0x1000, %edx # imm = 0x1000 movw %dx, (%rax,%rcx,2) jmp 0x504b6 movq -0x10(%rbp), %rdi movq -0x20(%rbp), %rax movq (%rax), %rcx movl $0x80, %esi leaq 0x2b84e(%rip), %rdx # 0x7bcf7 movb $0x0, %al callq 0x76040 movb $0x1, -0x1(%rbp) jmp 0x504db jmp 0x504b8 jmp 0x504d7 jmp 0x504bc jmp 0x504be movq -0x20(%rbp), %rax movslq -0x24(%rbp), %rcx movl 0x80(%rax,%rcx,4), %eax movw %ax, %cx movq -0x30(%rbp), %rax movw %cx, (%rax) movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
apply_shift: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_24], ecx mov [rbp+var_30], r8 mov [rbp+var_38], r9 cmp [rbp+var_38], 0 jz loc_504BA mov rax, [rbp+var_20] movsxd rcx, [rbp+var_24] mov esi, [rax+rcx*4+80h] mov rax, [rbp+var_30] mov rcx, [rbp+var_38] sub rcx, 1 movzx edx, word ptr [rax+rcx*2] add edx, esi mov [rax+rcx*2], dx mov rax, [rbp+var_20] cmp qword ptr [rax+90h], 1 jnz short loc_504B8 cmp [rbp+var_38], 2 jb short loc_50492 mov rax, [rbp+var_30] mov rcx, [rbp+var_38] sub rcx, 2 mov dx, [rax+rcx*2] add dx, 0FFFFh mov [rax+rcx*2], dx mov rax, [rbp+var_18] cmp dword ptr [rax+30h], 1 jnz short loc_50490 mov rax, [rbp+var_30] mov rcx, [rbp+var_38] sub rcx, 1 movzx edx, word ptr [rax+rcx*2] add edx, 1000h mov [rax+rcx*2], dx loc_50490: jmp short loc_504B6 loc_50492: mov rdi, [rbp+var_10] mov rax, [rbp+var_20] mov rcx, [rax] mov esi, 80h lea rdx, aCanTResetBefor; "Can't reset before a primary ignorable "... mov al, 0 call my_snprintf mov [rbp+var_1], 1 jmp short loc_504DB loc_504B6: jmp short $+2 loc_504B8: jmp short loc_504D7 loc_504BA: jmp short $+2 loc_504BC: jmp short $+2 loc_504BE: mov rax, [rbp+var_20] movsxd rcx, [rbp+var_24] mov eax, [rax+rcx*4+80h] mov cx, ax mov rax, [rbp+var_30] mov [rax], cx loc_504D7: mov [rbp+var_1], 0 loc_504DB: mov al, [rbp+var_1] add rsp, 40h pop rbp retn
char apply_shift(int a1, long long a2, _QWORD *a3, int a4, _WORD *a5, unsigned long long a6) { if ( !a6 ) { *a5 = *((_DWORD *)a3 + a4 + 32); return 0; } a5[a6 - 1] += *((_DWORD *)a3 + a4 + 32); if ( a3[18] != 1LL ) return 0; if ( a6 >= 2 ) { --a5[a6 - 2]; if ( *(_DWORD *)(a2 + 48) == 1 ) a5[a6 - 1] += 4096; return 0; } my_snprintf(a1, 128, (unsigned int)"Can't reset before a primary ignorable character U+%04lX", *a3, (_DWORD)a5, a6); return 1; }
apply_shift: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV dword ptr [RBP + -0x24],ECX MOV qword ptr [RBP + -0x30],R8 MOV qword ptr [RBP + -0x38],R9 CMP qword ptr [RBP + -0x38],0x0 JZ 0x001504ba MOV RAX,qword ptr [RBP + -0x20] MOVSXD RCX,dword ptr [RBP + -0x24] MOV ESI,dword ptr [RAX + RCX*0x4 + 0x80] MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x38] SUB RCX,0x1 MOVZX EDX,word ptr [RAX + RCX*0x2] ADD EDX,ESI MOV word ptr [RAX + RCX*0x2],DX MOV RAX,qword ptr [RBP + -0x20] CMP qword ptr [RAX + 0x90],0x1 JNZ 0x001504b8 CMP qword ptr [RBP + -0x38],0x2 JC 0x00150492 MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x38] SUB RCX,0x2 MOV DX,word ptr [RAX + RCX*0x2] ADD DX,-0x1 MOV word ptr [RAX + RCX*0x2],DX MOV RAX,qword ptr [RBP + -0x18] CMP dword ptr [RAX + 0x30],0x1 JNZ 0x00150490 MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x38] SUB RCX,0x1 MOVZX EDX,word ptr [RAX + RCX*0x2] ADD EDX,0x1000 MOV word ptr [RAX + RCX*0x2],DX LAB_00150490: JMP 0x001504b6 LAB_00150492: MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RAX] MOV ESI,0x80 LEA RDX,[0x17bcf7] MOV AL,0x0 CALL 0x00176040 MOV byte ptr [RBP + -0x1],0x1 JMP 0x001504db LAB_001504b6: JMP 0x001504b8 LAB_001504b8: JMP 0x001504d7 LAB_001504ba: JMP 0x001504bc LAB_001504bc: JMP 0x001504be LAB_001504be: MOV RAX,qword ptr [RBP + -0x20] MOVSXD RCX,dword ptr [RBP + -0x24] MOV EAX,dword ptr [RAX + RCX*0x4 + 0x80] MOV CX,AX MOV RAX,qword ptr [RBP + -0x30] MOV word ptr [RAX],CX LAB_001504d7: MOV byte ptr [RBP + -0x1],0x0 LAB_001504db: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x40 POP RBP RET
int1 apply_shift(int8 param_1,long param_2,int8 *param_3,int param_4,int2 *param_5, ulong param_6) { if (param_6 == 0) { *param_5 = (short)*(int4 *)((long)param_3 + (long)param_4 * 4 + 0x80); } else { param_5[param_6 - 1] = param_5[param_6 - 1] + (short)*(int4 *)((long)param_3 + (long)param_4 * 4 + 0x80); if (param_3[0x12] == 1) { if (param_6 < 2) { my_snprintf(param_1,0x80,"Can\'t reset before a primary ignorable character U+%04lX", *param_3); return 1; } param_5[param_6 - 2] = param_5[param_6 - 2] + -1; if (*(int *)(param_2 + 0x30) == 1) { param_5[param_6 - 1] = param_5[param_6 - 1] + 0x1000; } } } return 0; }
65,316
Catch::RunContext::testForMissingAssertions(Catch::Counts&)
AlayaLite/build_O3/_deps/libcoro-src/test/catch_amalgamated.cpp
std::uint64_t Counts::total() const { return passed + failed + failedButOk + skipped; }
O3
cpp
Catch::RunContext::testForMissingAssertions(Catch::Counts&): movq 0x8(%rsi), %rax addq (%rsi), %rax addq 0x10(%rsi), %rax addq 0x18(%rsi), %rax jne 0x5fa07 pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 movq 0xc8(%rdi), %rdi movq (%rdi), %rax callq *0x30(%rax) testb %al, %al je 0x5f9fd movq 0x1b8(%r14), %rax movq 0x40(%rax), %rcx cmpq 0x48(%rax), %rcx je 0x5fa0a xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r14 retq xorl %eax, %eax retq incq 0xd8(%r14) incq 0x8(%rbx) movb $0x1, %al jmp 0x5f9ff nop
_ZN5Catch10RunContext24testForMissingAssertionsERNS_6CountsE: mov rax, [rsi+8] add rax, [rsi] add rax, [rsi+10h] add rax, [rsi+18h] jnz short loc_5FA07 push r14 push rbx push rax mov rbx, rsi mov r14, rdi mov rdi, [rdi+0C8h] mov rax, [rdi] call qword ptr [rax+30h] test al, al jz short loc_5F9FD mov rax, [r14+1B8h] mov rcx, [rax+40h] cmp rcx, [rax+48h] jz short loc_5FA0A loc_5F9FD: xor eax, eax loc_5F9FF: add rsp, 8 pop rbx pop r14 retn loc_5FA07: xor eax, eax retn loc_5FA0A: inc qword ptr [r14+0D8h] inc qword ptr [rbx+8] mov al, 1 jmp short loc_5F9FF
char Catch::RunContext::testForMissingAssertions(Catch::RunContext *this, Catch::Counts *a2) { if ( *((_QWORD *)a2 + 3) + *((_QWORD *)a2 + 2) + *(_QWORD *)a2 + *((_QWORD *)a2 + 1) ) return 0; if ( !(*(unsigned __int8 ( **)(_QWORD))(**((_QWORD **)this + 25) + 48LL))(*((_QWORD *)this + 25)) || *(_QWORD *)(*((_QWORD *)this + 55) + 64LL) != *(_QWORD *)(*((_QWORD *)this + 55) + 72LL) ) { return 0; } ++*((_QWORD *)this + 27); ++*((_QWORD *)a2 + 1); return 1; }
testForMissingAssertions: MOV RAX,qword ptr [RSI + 0x8] ADD RAX,qword ptr [RSI] ADD RAX,qword ptr [RSI + 0x10] ADD RAX,qword ptr [RSI + 0x18] JNZ 0x0015fa07 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RSI MOV R14,RDI MOV RDI,qword ptr [RDI + 0xc8] MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x30] TEST AL,AL JZ 0x0015f9fd MOV RAX,qword ptr [R14 + 0x1b8] MOV RCX,qword ptr [RAX + 0x40] CMP RCX,qword ptr [RAX + 0x48] JZ 0x0015fa0a LAB_0015f9fd: XOR EAX,EAX LAB_0015f9ff: ADD RSP,0x8 POP RBX POP R14 RET LAB_0015fa07: XOR EAX,EAX RET LAB_0015fa0a: INC qword ptr [R14 + 0xd8] INC qword ptr [RBX + 0x8] MOV AL,0x1 JMP 0x0015f9ff
/* Catch::RunContext::testForMissingAssertions(Catch::Counts&) */ int8 __thiscall Catch::RunContext::testForMissingAssertions(RunContext *this,Counts *param_1) { long lVar1; char cVar2; int8 uVar3; if (*(long *)(param_1 + 8) + *(long *)param_1 + *(long *)(param_1 + 0x10) + *(long *)(param_1 + 0x18) == 0) { cVar2 = (**(code **)(**(long **)(this + 200) + 0x30))(); if ((cVar2 == '\0') || (lVar1 = *(long *)(this + 0x1b8), *(long *)(lVar1 + 0x40) != *(long *)(lVar1 + 0x48))) { uVar3 = 0; } else { *(long *)(this + 0xd8) = *(long *)(this + 0xd8) + 1; *(long *)(param_1 + 8) = *(long *)(param_1 + 8) + 1; uVar3 = CONCAT71((int7)((ulong)lVar1 >> 8),1); } return uVar3; } return 0; }
65,317
my_charpos_utf16
eloqsql/strings/ctype-ucs2.c
static size_t my_charpos_utf16(CHARSET_INFO *cs, const char *b, const char *e, size_t pos) { const char *b0= b; uint charlen; for ( ; pos; b+= charlen, pos--) { if (!(charlen= my_ismbchar(cs, b, e))) return (e + 2 - b0); /* Error, return pos outside the string */ } return (size_t) (pos ? (e + 2 - b0) : (b - b0)); }
O3
c
my_charpos_utf16: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %rbx movq %rsi, %r12 testq %rcx, %rcx je 0xc3e29 movq %rcx, %r15 movq %rdx, %r14 movq %rdi, %r13 movq %rbx, %r12 movq 0xb8(%r13), %rax movq %r13, %rdi movq %r12, %rsi movq %r14, %rdx callq *0xc0(%rax) cmpl $0x1, %eax jle 0xc3e22 movl %eax, %eax addq %rax, %r12 decq %r15 jne 0xc3dfb jmp 0xc3e29 addq $0x2, %r14 movq %r14, %r12 subq %rbx, %r12 movq %r12, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
my_charpos_utf16: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rsi mov r12, rsi test rcx, rcx jz short loc_C3E29 mov r15, rcx mov r14, rdx mov r13, rdi mov r12, rbx loc_C3DFB: mov rax, [r13+0B8h] mov rdi, r13 mov rsi, r12 mov rdx, r14 call qword ptr [rax+0C0h] cmp eax, 1 jle short loc_C3E22 mov eax, eax add r12, rax dec r15 jnz short loc_C3DFB jmp short loc_C3E29 loc_C3E22: add r14, 2 mov r12, r14 loc_C3E29: sub r12, rbx mov rax, r12 add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long my_charpos_utf16(long long a1, long long a2, long long a3, long long a4) { long long v4; // r12 long long v5; // r15 int v7; // eax v4 = a2; if ( a4 ) { v5 = a4; v4 = a2; while ( 1 ) { v7 = (*(long long ( **)(long long, long long, long long))(*(_QWORD *)(a1 + 184) + 192LL))(a1, v4, a3); if ( v7 <= 1 ) break; v4 += (unsigned int)v7; if ( !--v5 ) return v4 - a2; } v4 = a3 + 2; } return v4 - a2; }
my_charpos_utf16: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RSI MOV R12,RSI TEST RCX,RCX JZ 0x001c3e29 MOV R15,RCX MOV R14,RDX MOV R13,RDI MOV R12,RBX LAB_001c3dfb: MOV RAX,qword ptr [R13 + 0xb8] MOV RDI,R13 MOV RSI,R12 MOV RDX,R14 CALL qword ptr [RAX + 0xc0] CMP EAX,0x1 JLE 0x001c3e22 MOV EAX,EAX ADD R12,RAX DEC R15 JNZ 0x001c3dfb JMP 0x001c3e29 LAB_001c3e22: ADD R14,0x2 MOV R12,R14 LAB_001c3e29: SUB R12,RBX MOV RAX,R12 ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
long my_charpos_utf16(long param_1,long param_2,long param_3,long param_4) { uint uVar1; long lVar2; lVar2 = param_2; if (param_4 != 0) { do { uVar1 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,lVar2,param_3); if ((int)uVar1 < 2) { lVar2 = param_3 + 2; break; } lVar2 = lVar2 + (ulong)uVar1; param_4 = param_4 + -1; } while (param_4 != 0); } return lVar2 - param_2; }
65,318
my_scan_mb2
eloqsql/strings/ctype-ucs2.c
static size_t my_scan_mb2(CHARSET_INFO *cs __attribute__((unused)), const char *str, const char *end, int sequence_type) { const char *str0= str; my_wc_t wc; my_charset_conv_mb_wc mb_wc= cs->cset->mb_wc; int res; switch (sequence_type) { case MY_SEQ_SPACES: for (res= mb_wc(cs, &wc, (const uchar *) str, (const uchar *) end); res > 0 && wc == ' '; str+= res, res= mb_wc(cs, &wc, (const uchar *) str, (const uchar *) end)) { } return (size_t) (str - str0); case MY_SEQ_NONSPACES: DBUG_ASSERT(0); /* Not implemented */ /* pass through */ default: return 0; } }
O0
c
my_scan_mb2: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x10(%rbp), %rax movq 0xb8(%rax), %rax movq 0x28(%rax), %rax movq %rax, -0x40(%rbp) movl -0x24(%rbp), %eax movl %eax, -0x48(%rbp) subl $0x2, %eax je 0x5ab59 jmp 0x5ab4f movl -0x48(%rbp), %eax subl $0x3, %eax je 0x5abd0 jmp 0x5abd6 movq -0x40(%rbp), %rax movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rdx movq -0x20(%rbp), %rcx leaq -0x38(%rbp), %rsi callq *%rax movl %eax, -0x44(%rbp) xorl %eax, %eax cmpl $0x0, -0x44(%rbp) movb %al, -0x49(%rbp) jle 0x5ab88 cmpq $0x20, -0x38(%rbp) sete %al movb %al, -0x49(%rbp) movb -0x49(%rbp), %al testb $0x1, %al jne 0x5ab91 jmp 0x5abbf jmp 0x5ab93 movl -0x44(%rbp), %ecx movq -0x18(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x18(%rbp) movq -0x40(%rbp), %rax movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rdx movq -0x20(%rbp), %rcx leaq -0x38(%rbp), %rsi callq *%rax movl %eax, -0x44(%rbp) jmp 0x5ab72 movq -0x18(%rbp), %rax movq -0x30(%rbp), %rcx subq %rcx, %rax movq %rax, -0x8(%rbp) jmp 0x5abde jmp 0x5abd2 jmp 0x5abd4 jmp 0x5abd6 movq $0x0, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x50, %rsp popq %rbp retq nopl (%rax,%rax)
my_scan_mb2: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_24], ecx mov rax, [rbp+var_18] mov [rbp+var_30], rax mov rax, [rbp+var_10] mov rax, [rax+0B8h] mov rax, [rax+28h] mov [rbp+var_40], rax mov eax, [rbp+var_24] mov [rbp+var_48], eax sub eax, 2 jz short loc_5AB59 jmp short $+2 loc_5AB4F: mov eax, [rbp+var_48] sub eax, 3 jz short loc_5ABD0 jmp short loc_5ABD6 loc_5AB59: mov rax, [rbp+var_40] mov rdi, [rbp+var_10] mov rdx, [rbp+var_18] mov rcx, [rbp+var_20] lea rsi, [rbp+var_38] call rax mov [rbp+var_44], eax loc_5AB72: xor eax, eax cmp [rbp+var_44], 0 mov [rbp+var_49], al jle short loc_5AB88 cmp [rbp+var_38], 20h ; ' ' setz al mov [rbp+var_49], al loc_5AB88: mov al, [rbp+var_49] test al, 1 jnz short loc_5AB91 jmp short loc_5ABBF loc_5AB91: jmp short $+2 loc_5AB93: mov ecx, [rbp+var_44] mov rax, [rbp+var_18] movsxd rcx, ecx add rax, rcx mov [rbp+var_18], rax mov rax, [rbp+var_40] mov rdi, [rbp+var_10] mov rdx, [rbp+var_18] mov rcx, [rbp+var_20] lea rsi, [rbp+var_38] call rax mov [rbp+var_44], eax jmp short loc_5AB72 loc_5ABBF: mov rax, [rbp+var_18] mov rcx, [rbp+var_30] sub rax, rcx mov [rbp+var_8], rax jmp short loc_5ABDE loc_5ABD0: jmp short $+2 loc_5ABD2: jmp short $+2 loc_5ABD4: jmp short $+2 loc_5ABD6: mov [rbp+var_8], 0 loc_5ABDE: mov rax, [rbp+var_8] add rsp, 50h pop rbp retn
long long my_scan_mb2(long long a1, long long a2, long long a3, int a4) { bool v5; // [rsp+7h] [rbp-49h] int i; // [rsp+Ch] [rbp-44h] long long ( *v7)(long long, long long *, long long, long long); // [rsp+10h] [rbp-40h] long long v8; // [rsp+18h] [rbp-38h] BYREF long long v9; // [rsp+20h] [rbp-30h] int v10; // [rsp+2Ch] [rbp-24h] long long v11; // [rsp+30h] [rbp-20h] long long v12; // [rsp+38h] [rbp-18h] long long v13; // [rsp+40h] [rbp-10h] v13 = a1; v12 = a2; v11 = a3; v10 = a4; v9 = a2; v7 = *(long long ( **)(long long, long long *, long long, long long))(*(_QWORD *)(a1 + 184) + 40LL); if ( a4 != 2 ) return 0LL; for ( i = v7(v13, &v8, v12, v11); ; i = v7(v13, &v8, v12, v11) ) { v5 = 0; if ( i > 0 ) v5 = v8 == 32; if ( !v5 ) break; v12 += i; } return v12 - v9; }
my_scan_mb2: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV dword ptr [RBP + -0x24],ECX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0xb8] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RBP + -0x40],RAX MOV EAX,dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x48],EAX SUB EAX,0x2 JZ 0x0015ab59 JMP 0x0015ab4f LAB_0015ab4f: MOV EAX,dword ptr [RBP + -0x48] SUB EAX,0x3 JZ 0x0015abd0 JMP 0x0015abd6 LAB_0015ab59: MOV RAX,qword ptr [RBP + -0x40] MOV RDI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x20] LEA RSI,[RBP + -0x38] CALL RAX MOV dword ptr [RBP + -0x44],EAX LAB_0015ab72: XOR EAX,EAX CMP dword ptr [RBP + -0x44],0x0 MOV byte ptr [RBP + -0x49],AL JLE 0x0015ab88 CMP qword ptr [RBP + -0x38],0x20 SETZ AL MOV byte ptr [RBP + -0x49],AL LAB_0015ab88: MOV AL,byte ptr [RBP + -0x49] TEST AL,0x1 JNZ 0x0015ab91 JMP 0x0015abbf LAB_0015ab91: JMP 0x0015ab93 LAB_0015ab93: MOV ECX,dword ptr [RBP + -0x44] MOV RAX,qword ptr [RBP + -0x18] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x40] MOV RDI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x20] LEA RSI,[RBP + -0x38] CALL RAX MOV dword ptr [RBP + -0x44],EAX JMP 0x0015ab72 LAB_0015abbf: MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x30] SUB RAX,RCX MOV qword ptr [RBP + -0x8],RAX JMP 0x0015abde LAB_0015abd0: JMP 0x0015abd2 LAB_0015abd2: JMP 0x0015abd4 LAB_0015abd4: JMP 0x0015abd6 LAB_0015abd6: MOV qword ptr [RBP + -0x8],0x0 LAB_0015abde: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x50 POP RBP RET
long my_scan_mb2(long param_1,long param_2,int8 param_3,int param_4) { code *pcVar1; int local_4c; long local_40; long local_38; int local_2c; int8 local_28; long local_20; long local_18; long local_10; pcVar1 = *(code **)(*(long *)(param_1 + 0xb8) + 0x28); if (param_4 == 2) { local_38 = param_2; local_2c = param_4; local_28 = param_3; local_20 = param_2; local_18 = param_1; local_4c = (*pcVar1)(param_1,&local_40,param_2,param_3); while (0 < local_4c && local_40 == 0x20) { local_20 = local_20 + local_4c; local_4c = (*pcVar1)(local_18,&local_40,local_20,local_28); } local_10 = local_20 - local_38; } else { local_10 = 0; } return local_10; }
65,319
ma_state_info_write
eloqsql/storage/maria/ma_open.c
uint _ma_state_info_write(MARIA_SHARE *share, uint pWrite) { uint res; if (share->options & HA_OPTION_READ_ONLY_DATA) return 0; if (pWrite & MA_STATE_INFO_WRITE_LOCK) mysql_mutex_lock(&share->intern_lock); else if (maria_multi_threaded && !share->temporary) mysql_mutex_assert_owner(&share->intern_lock); if (share->base.born_transactional && translog_status == TRANSLOG_OK && !maria_in_recovery) { /* In a recovery, we want to set is_of_horizon to the LSN of the last record executed by Recovery, not the current EOF of the log (which is too new). Recovery does it by itself. */ share->state.is_of_horizon= translog_get_horizon(); DBUG_PRINT("info", ("is_of_horizon set to LSN " LSN_FMT "", LSN_IN_PARTS(share->state.is_of_horizon))); } res= _ma_state_info_write_sub(share->kfile.file, &share->state, pWrite); if (pWrite & MA_STATE_INFO_WRITE_LOCK) mysql_mutex_unlock(&share->intern_lock); /* If open_count != 0 we have to write the state again at close */ share->changed= share->state.open_count != 0; return res; }
O0
c
ma_state_info_write: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq -0x10(%rbp), %rax movq 0x720(%rax), %rax andq $0x10000, %rax # imm = 0x10000 cmpq $0x0, %rax je 0x8fa62 movl $0x0, -0x4(%rbp) jmp 0x8fb49 movl -0x14(%rbp), %eax andl $0x4, %eax cmpl $0x0, %eax je 0x8fa8b movq -0x10(%rbp), %rdi addq $0x8f0, %rdi # imm = 0x8F0 leaq 0xc8f23(%rip), %rsi # 0x1589a2 movl $0x5e3, %edx # imm = 0x5E3 callq 0x8cb90 jmp 0x8faaf leaq 0xbf177f(%rip), %rax # 0xc81211 movsbl (%rax), %eax cmpl $0x0, %eax je 0x8faad movq -0x10(%rbp), %rax cmpb $0x0, 0x7d9(%rax) jne 0x8faad jmp 0x8faa9 jmp 0x8faab jmp 0x8faad jmp 0x8faaf movq -0x10(%rbp), %rax movsbl 0x44c(%rax), %eax cmpl $0x0, %eax je 0x8faf0 leaq 0x3ef0ba(%rip), %rax # 0x47eb80 cmpl $0x1, (%rax) jne 0x8faf0 leaq 0xbf1740(%rip), %rax # 0xc81212 cmpb $0x0, (%rax) jne 0x8faf0 movb $0x0, %al callq 0x30e90 movq %rax, %rcx movq -0x10(%rbp), %rax movq %rcx, 0x180(%rax) jmp 0x8faee jmp 0x8faf0 movq -0x10(%rbp), %rax movl 0x760(%rax), %edi movq -0x10(%rbp), %rsi movl -0x14(%rbp), %edx callq 0x8fb60 movl %eax, -0x18(%rbp) movl -0x14(%rbp), %eax andl $0x4, %eax cmpl $0x0, %eax je 0x8fb24 movq -0x10(%rbp), %rdi addq $0x8f0, %rdi # imm = 0x8F0 callq 0x8f840 movq -0x10(%rbp), %rax cmpl $0x0, 0x16c(%rax) setne %al andb $0x1, %al movzbl %al, %eax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x7de(%rax) movl -0x18(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_ma_state_info_write: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov rax, [rbp+var_10] mov rax, [rax+720h] and rax, 10000h cmp rax, 0 jz short loc_8FA62 mov [rbp+var_4], 0 jmp loc_8FB49 loc_8FA62: mov eax, [rbp+var_14] and eax, 4 cmp eax, 0 jz short loc_8FA8B mov rdi, [rbp+var_10] add rdi, 8F0h lea rsi, aWorkspaceLlm4b_18; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 5E3h call inline_mysql_mutex_lock_13 jmp short loc_8FAAF loc_8FA8B: lea rax, maria_multi_threaded movsx eax, byte ptr [rax] cmp eax, 0 jz short loc_8FAAD mov rax, [rbp+var_10] cmp byte ptr [rax+7D9h], 0 jnz short loc_8FAAD jmp short $+2 loc_8FAA9: jmp short $+2 loc_8FAAB: jmp short $+2 loc_8FAAD: jmp short $+2 loc_8FAAF: mov rax, [rbp+var_10] movsx eax, byte ptr [rax+44Ch] cmp eax, 0 jz short loc_8FAF0 lea rax, translog_status cmp dword ptr [rax], 1 jnz short loc_8FAF0 lea rax, maria_in_recovery cmp byte ptr [rax], 0 jnz short loc_8FAF0 mov al, 0 call translog_get_horizon mov rcx, rax mov rax, [rbp+var_10] mov [rax+180h], rcx jmp short $+2 loc_8FAEE: jmp short $+2 loc_8FAF0: mov rax, [rbp+var_10] mov edi, [rax+760h] mov rsi, [rbp+var_10] mov edx, [rbp+var_14] call _ma_state_info_write_sub mov [rbp+var_18], eax mov eax, [rbp+var_14] and eax, 4 cmp eax, 0 jz short loc_8FB24 mov rdi, [rbp+var_10] add rdi, 8F0h call inline_mysql_mutex_unlock_14 loc_8FB24: mov rax, [rbp+var_10] cmp dword ptr [rax+16Ch], 0 setnz al and al, 1 movzx eax, al mov cl, al mov rax, [rbp+var_10] mov [rax+7DEh], cl mov eax, [rbp+var_18] mov [rbp+var_4], eax loc_8FB49: mov eax, [rbp+var_4] add rsp, 20h pop rbp retn
long long ma_state_info_write(long long a1, unsigned int a2) { unsigned int v3; // [rsp+8h] [rbp-18h] if ( (*(_QWORD *)(a1 + 1824) & 0x10000LL) != 0 ) { return 0; } else { if ( (a2 & 4) != 0 ) inline_mysql_mutex_lock_13( a1 + 2288, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_open.c", 0x5E3u); if ( *(_BYTE *)(a1 + 1100) && translog_status == 1 && !maria_in_recovery ) *(_QWORD *)(a1 + 384) = translog_get_horizon(); v3 = ma_state_info_write_sub(*(unsigned int *)(a1 + 1888), a1, a2); if ( (a2 & 4) != 0 ) inline_mysql_mutex_unlock_14(a1 + 2288); *(_BYTE *)(a1 + 2014) = *(_DWORD *)(a1 + 364) != 0; return v3; } }
_ma_state_info_write: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x720] AND RAX,0x10000 CMP RAX,0x0 JZ 0x0018fa62 MOV dword ptr [RBP + -0x4],0x0 JMP 0x0018fb49 LAB_0018fa62: MOV EAX,dword ptr [RBP + -0x14] AND EAX,0x4 CMP EAX,0x0 JZ 0x0018fa8b MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x8f0 LEA RSI,[0x2589a2] MOV EDX,0x5e3 CALL 0x0018cb90 JMP 0x0018faaf LAB_0018fa8b: LEA RAX,[0xd81211] MOVSX EAX,byte ptr [RAX] CMP EAX,0x0 JZ 0x0018faad MOV RAX,qword ptr [RBP + -0x10] CMP byte ptr [RAX + 0x7d9],0x0 JNZ 0x0018faad JMP 0x0018faa9 LAB_0018faa9: JMP 0x0018faab LAB_0018faab: JMP 0x0018faad LAB_0018faad: JMP 0x0018faaf LAB_0018faaf: MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX + 0x44c] CMP EAX,0x0 JZ 0x0018faf0 LEA RAX,[0x57eb80] CMP dword ptr [RAX],0x1 JNZ 0x0018faf0 LEA RAX,[0xd81212] CMP byte ptr [RAX],0x0 JNZ 0x0018faf0 MOV AL,0x0 CALL 0x00130e90 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x180],RCX JMP 0x0018faee LAB_0018faee: JMP 0x0018faf0 LAB_0018faf0: MOV RAX,qword ptr [RBP + -0x10] MOV EDI,dword ptr [RAX + 0x760] MOV RSI,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RBP + -0x14] CALL 0x0018fb60 MOV dword ptr [RBP + -0x18],EAX MOV EAX,dword ptr [RBP + -0x14] AND EAX,0x4 CMP EAX,0x0 JZ 0x0018fb24 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x8f0 CALL 0x0018f840 LAB_0018fb24: MOV RAX,qword ptr [RBP + -0x10] CMP dword ptr [RAX + 0x16c],0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x7de],CL MOV EAX,dword ptr [RBP + -0x18] MOV dword ptr [RBP + -0x4],EAX LAB_0018fb49: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x20 POP RBP RET
int4 _ma_state_info_write(long param_1,uint param_2) { int8 uVar1; int4 local_c; if ((*(ulong *)(param_1 + 0x720) & 0x10000) == 0) { if ((param_2 & 4) != 0) { inline_mysql_mutex_lock (param_1 + 0x8f0,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_open.c", 0x5e3); } if (((*(char *)(param_1 + 0x44c) != '\0') && (translog_status == 1)) && (maria_in_recovery == '\0')) { uVar1 = translog_get_horizon(); *(int8 *)(param_1 + 0x180) = uVar1; } local_c = _ma_state_info_write_sub(*(int4 *)(param_1 + 0x760),param_1,param_2); if ((param_2 & 4) != 0) { inline_mysql_mutex_unlock(param_1 + 0x8f0); } *(bool *)(param_1 + 0x7de) = *(int *)(param_1 + 0x16c) != 0; } else { local_c = 0; } return local_c; }
65,320
unsigned long nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::count<char const (&) [6], 0>(char const (&) [6]) const
monkey531[P]llama/common/./json.hpp
size_type count(KeyType && key) const // NOLINT(cppcoreguidelines-missing-std-forward) { for (auto it = this->begin(); it != this->end(); ++it) { if (m_compare(it->first, key)) { return 1; } } return 0; }
O2
cpp
unsigned long nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::count<char const (&) [6], 0>(char const (&) [6]) const: pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 movq (%rdi), %rcx movq %rcx, %r15 movq 0x8(%r14), %r12 cmpq %r12, %rcx je 0x7bd14 movq %r15, %rdi movq %rbx, %rsi callq 0x40c7a leaq 0x30(%r15), %rcx testb %al, %al je 0x7bcf5 xorl %eax, %eax cmpq %r12, %r15 setne %al addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
_ZNK8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE5countIRA6_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEmOSS_: push r15 push r14 push r12 push rbx push rax mov rbx, rsi mov r14, rdi mov rcx, [rdi] loc_7BCF5: mov r15, rcx mov r12, [r14+8] cmp rcx, r12 jz short loc_7BD14 mov rdi, r15 mov rsi, rbx call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) lea rcx, [r15+30h] test al, al jz short loc_7BCF5 loc_7BD14: xor eax, eax cmp r15, r12 setnz al add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn
_BOOL8 ZNK8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE5countIRA6_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEmOSS_( long long *a1) { long long v1; // rcx long long v2; // r15 long long v3; // r12 bool v4; // al v1 = *a1; do { v2 = v1; v3 = a1[1]; if ( v1 == v3 ) break; v4 = std::operator==<char>(v1); v1 = v2 + 48; } while ( !v4 ); return v2 != v3; }
_ZNK8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE5countIRA6_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEmOSS_: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RSI MOV R14,RDI MOV RCX,qword ptr [RDI] LAB_0017bcf5: MOV R15,RCX MOV R12,qword ptr [R14 + 0x8] CMP RCX,R12 JZ 0x0017bd14 MOV RDI,R15 MOV RSI,RBX CALL 0x00140c7a LEA RCX,[R15 + 0x30] TEST AL,AL JZ 0x0017bcf5 LAB_0017bd14: XOR EAX,EAX CMP R15,R12 SETNZ AL ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
bool _ZNK8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE5countIRA6_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEmOSS_ (int8 *param_1,char *param_2) { string *psVar1; string *psVar2; bool bVar3; string *psVar4; psVar2 = (string *)*param_1; do { psVar4 = psVar2; psVar1 = (string *)param_1[1]; if (psVar4 == psVar1) break; bVar3 = std::operator==(psVar4,param_2); psVar2 = psVar4 + 0x30; } while (!bVar3); return psVar4 != psVar1; }
65,321
Game::loadTextFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
GhostEscape/src/core/game.cpp
std::string Game::loadTextFile(const std::string &file_path) { std::ifstream file(file_path); std::string line; std::string text; while (std::getline(file, line)){ text += line + "\n"; } return text; }
O0
cpp
Game::loadTextFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %rbp movq %rsp, %rbp subq $0x2a0, %rsp # imm = 0x2A0 movq %rdi, -0x280(%rbp) movq %rdi, %rax movq %rax, -0x288(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x18(%rbp), %rsi leaq -0x220(%rbp), %rdi movl $0x8, %edx callq 0x66b0 leaq -0x240(%rbp), %rdi callq 0x65d0 movq -0x280(%rbp), %rdi movb $0x0, -0x241(%rbp) callq 0x65d0 leaq -0x220(%rbp), %rdi leaq -0x240(%rbp), %rsi callq 0x6080 movq %rax, -0x290(%rbp) jmp 0x7668 movq -0x290(%rbp), %rdi movq (%rdi), %rax movq -0x18(%rax), %rax addq %rax, %rdi callq 0x6530 movb %al, -0x291(%rbp) jmp 0x7686 movb -0x291(%rbp), %al testb $0x1, %al jne 0x7692 jmp 0x7708 leaq 0x1aa8c(%rip), %rdx # 0x22125 leaq -0x278(%rbp), %rdi leaq -0x240(%rbp), %rsi callq 0x7d00 jmp 0x76ae movq -0x280(%rbp), %rdi leaq -0x278(%rbp), %rsi callq 0x6550 jmp 0x76c3 leaq -0x278(%rbp), %rdi callq 0x62c0 jmp 0x764c movq %rax, %rcx movl %edx, %eax movq %rcx, -0x250(%rbp) movl %eax, -0x254(%rbp) jmp 0x774c movq %rax, %rcx movl %edx, %eax movq %rcx, -0x250(%rbp) movl %eax, -0x254(%rbp) leaq -0x278(%rbp), %rdi callq 0x62c0 jmp 0x774c movb $0x1, -0x241(%rbp) testb $0x1, -0x241(%rbp) jne 0x7724 movq -0x280(%rbp), %rdi callq 0x62c0 leaq -0x240(%rbp), %rdi callq 0x62c0 leaq -0x220(%rbp), %rdi callq 0x60e0 movq -0x288(%rbp), %rax addq $0x2a0, %rsp # imm = 0x2A0 popq %rbp retq movq -0x280(%rbp), %rdi callq 0x62c0 leaq -0x240(%rbp), %rdi callq 0x62c0 leaq -0x220(%rbp), %rdi callq 0x60e0 movq -0x250(%rbp), %rdi callq 0x6750 nopl (%rax)
_ZN4Game12loadTextFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push rbp mov rbp, rsp sub rsp, 2A0h mov [rbp+var_280], rdi mov rax, rdi mov [rbp+var_288], rax mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov rsi, [rbp+var_18] lea rdi, [rbp+var_220] mov edx, 8 call __ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1ERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode; std::ifstream::basic_ifstream(std::string const&,std::_Ios_Openmode) lea rdi, [rbp+var_240] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev; std::string::basic_string(void) mov rdi, [rbp+var_280] mov [rbp+var_241], 0 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev; std::string::basic_string(void) loc_764C: lea rdi, [rbp+var_220] lea rsi, [rbp+var_240] call __ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::getline<char,std::char_traits<char>,std::allocator<char>>(std::istream &,std::string &) mov [rbp+var_290], rax jmp short $+2 loc_7668: mov rdi, [rbp+var_290] mov rax, [rdi] mov rax, [rax-18h] add rdi, rax call __ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv; std::ios::operator bool(void) mov [rbp+var_291], al jmp short $+2 loc_7686: mov al, [rbp+var_291] test al, 1 jnz short loc_7692 jmp short loc_7708 loc_7692: lea rdx, unk_22125 lea rdi, [rbp+var_278] lea rsi, [rbp+var_240] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_; std::operator+<char>(std::string const&,char const*) jmp short $+2 loc_76AE: mov rdi, [rbp+var_280] lea rsi, [rbp+var_278] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_; std::string::operator+=(std::string const&) jmp short $+2 loc_76C3: lea rdi, [rbp+var_278] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp loc_764C mov rcx, rax mov eax, edx mov [rbp+var_250], rcx mov [rbp+var_254], eax jmp short loc_774C mov rcx, rax mov eax, edx mov [rbp+var_250], rcx mov [rbp+var_254], eax lea rdi, [rbp+var_278] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_774C loc_7708: mov [rbp+var_241], 1 test [rbp+var_241], 1 jnz short loc_7724 mov rdi, [rbp+var_280] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_7724: lea rdi, [rbp+var_240] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rbp+var_220] call __ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev; std::ifstream::~ifstream() mov rax, [rbp+var_288] add rsp, 2A0h pop rbp retn loc_774C: mov rdi, [rbp+var_280] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rbp+var_240] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rbp+var_220] call __ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev; std::ifstream::~ifstream() mov rdi, [rbp+var_250] call __Unwind_Resume
long long Game::loadTextFile(long long a1, long long a2, long long a3) { _QWORD *v4; // [rsp+10h] [rbp-290h] _BYTE v5[36]; // [rsp+28h] [rbp-278h] BYREF char v6; // [rsp+5Fh] [rbp-241h] _BYTE v7[32]; // [rsp+60h] [rbp-240h] BYREF _BYTE v8[520]; // [rsp+80h] [rbp-220h] BYREF long long v9; // [rsp+288h] [rbp-18h] long long v10; // [rsp+290h] [rbp-10h] long long v11; // [rsp+298h] [rbp-8h] v11 = a1; v10 = a2; v9 = a3; std::ifstream::basic_ifstream(v8, a3, 8LL); std::string::basic_string(v7); v6 = 0; std::string::basic_string(a1); while ( 1 ) { v4 = (_QWORD *)std::getline<char,std::char_traits<char>,std::allocator<char>>(v8, v7); if ( (std::ios::operator bool((char *)v4 + *(_QWORD *)(*v4 - 24LL)) & 1) == 0 ) break; std::operator+<char>(v5, v7, &unk_22125); std::string::operator+=(a1, v5); std::string::~string(v5); } v6 = 1; std::string::~string(v7); std::ifstream::~ifstream(v8); return a1; }
loadTextFile: PUSH RBP MOV RBP,RSP SUB RSP,0x2a0 MOV qword ptr [RBP + -0x280],RDI MOV RAX,RDI MOV qword ptr [RBP + -0x288],RAX MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV RSI,qword ptr [RBP + -0x18] LEA RDI,[RBP + -0x220] MOV EDX,0x8 CALL 0x001066b0 LEA RDI,[RBP + -0x240] CALL 0x001065d0 MOV RDI,qword ptr [RBP + -0x280] MOV byte ptr [RBP + -0x241],0x0 CALL 0x001065d0 LAB_0010764c: LEA RDI,[RBP + -0x220] LEA RSI,[RBP + -0x240] CALL 0x00106080 MOV qword ptr [RBP + -0x290],RAX JMP 0x00107668 LAB_00107668: MOV RDI,qword ptr [RBP + -0x290] MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + -0x18] ADD RDI,RAX CALL 0x00106530 MOV byte ptr [RBP + -0x291],AL JMP 0x00107686 LAB_00107686: MOV AL,byte ptr [RBP + -0x291] TEST AL,0x1 JNZ 0x00107692 JMP 0x00107708 LAB_00107692: LEA RDX,[0x122125] LEA RDI,[RBP + -0x278] LEA RSI,[RBP + -0x240] CALL 0x00107d00 JMP 0x001076ae LAB_001076ae: MOV RDI,qword ptr [RBP + -0x280] LEA RSI,[RBP + -0x278] CALL 0x00106550 LAB_001076c1: JMP 0x001076c3 LAB_001076c3: LEA RDI,[RBP + -0x278] CALL 0x001062c0 JMP 0x0010764c LAB_00107708: MOV byte ptr [RBP + -0x241],0x1 TEST byte ptr [RBP + -0x241],0x1 JNZ 0x00107724 MOV RDI,qword ptr [RBP + -0x280] CALL 0x001062c0 LAB_00107724: LEA RDI,[RBP + -0x240] CALL 0x001062c0 LEA RDI,[RBP + -0x220] CALL 0x001060e0 MOV RAX,qword ptr [RBP + -0x288] ADD RSP,0x2a0 POP RBP RET
/* WARNING: Removing unreachable block (ram,0x00107718) */ /* Game::loadTextFile(std::__cxx11::string const&) */ string * Game::loadTextFile(string *param_1) { bool bVar1; istream *piVar2; int8 in_RDX; string local_280 [55]; int1 local_249; string local_248 [32]; ifstream local_228 [536]; string *local_10; local_10 = param_1; std::ifstream::ifstream(local_228,in_RDX,8); std::__cxx11::string::string(local_248); local_249 = 0; std::__cxx11::string::string(param_1); while( true ) { /* try { // try from 0010764c to 001076ab has its CatchHandler @ 001076d4 */ piVar2 = std::getline<char,std::char_traits<char>,std::allocator<char>> ((istream *)local_228,local_248); bVar1 = std::ios::operator_cast_to_bool((ios *)(piVar2 + *(long *)(*(long *)piVar2 + -0x18))); if (!bVar1) break; std::operator+(local_280,(char *)local_248); /* try { // try from 001076ae to 001076c0 has its CatchHandler @ 001076e8 */ std::__cxx11::string::operator+=(param_1,local_280); std::__cxx11::string::~string(local_280); } local_249 = 1; std::__cxx11::string::~string(local_248); std::ifstream::~ifstream(local_228); return param_1; }
65,322
OpenSubdiv::v3_6_0::Far::PatchTable::getPatchIndex(int, int) const
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTable.cpp
int PatchTable::getPatchIndex(int arrayIndex, int patchIndex) const { PatchArray const & pa = getPatchArray(arrayIndex); assert(patchIndex<pa.numPatches); return pa.patchIndex + patchIndex; }
O3
cpp
OpenSubdiv::v3_6_0::Far::PatchTable::getPatchIndex(int, int) const: pushq %rax movq 0x8(%rdi), %rax movq 0x10(%rdi), %rcx subq %rax, %rcx shrq $0x2, %rcx imull $0xcccccccd, %ecx, %ecx # imm = 0xCCCCCCCD cmpl %esi, %ecx jle 0x6ab98 movslq %esi, %rcx leaq (%rcx,%rcx,4), %rcx cmpl %edx, 0x4(%rax,%rcx,4) jle 0x6abb7 leaq (%rax,%rcx,4), %rax addl 0xc(%rax), %edx movl %edx, %eax popq %rcx retq leaq 0x5189e(%rip), %rdi # 0xbc43d leaq 0x5136c(%rip), %rsi # 0xbbf12 leaq 0x518b6(%rip), %rcx # 0xbc463 movl $0x90, %edx callq 0x39540 leaq 0x5133b(%rip), %rdi # 0xbbef9 leaq 0x5134d(%rip), %rsi # 0xbbf12 leaq 0x513a2(%rip), %rcx # 0xbbf6e movl $0xdf, %edx callq 0x39540
_ZNK10OpenSubdiv6v3_6_03Far10PatchTable13getPatchIndexEii: push rax mov rax, [rdi+8] mov rcx, [rdi+10h] sub rcx, rax shr rcx, 2 imul ecx, 0CCCCCCCDh cmp ecx, esi jle short loc_6AB98 movsxd rcx, esi lea rcx, [rcx+rcx*4] cmp [rax+rcx*4+4], edx jle short loc_6ABB7 lea rax, [rax+rcx*4] add edx, [rax+0Ch] mov eax, edx pop rcx retn loc_6AB98: lea rdi, aArrayindexInde; "arrayIndex<(Index)GetNumPatchArrays()" lea rsi, aWorkspaceLlm4b_16; "/workspace/llm4binary/github/2025_star3"... lea rcx, aConstPatchtabl; "const PatchTable::PatchArray &OpenSubdi"... mov edx, 90h call ___assert_fail loc_6ABB7: lea rdi, aPatchindexPaNu; "patchIndex<pa.numPatches" lea rsi, aWorkspaceLlm4b_16; "/workspace/llm4binary/github/2025_star3"... lea rcx, aIntOpensubdivV_17; "int OpenSubdiv::v3_6_0::Far::PatchTable"... mov edx, 0DFh call ___assert_fail
long long OpenSubdiv::v3_6_0::Far::PatchTable::getPatchIndex( OpenSubdiv::v3_6_0::Far::PatchTable *this, signed int a2, int a3) { long long v3; // rax v3 = *((_QWORD *)this + 1); if ( (int)(-858993459 * ((unsigned long long)(*((_QWORD *)this + 2) - v3) >> 2)) <= a2 ) __assert_fail( "arrayIndex<(Index)GetNumPatchArrays()", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTable.cpp", 144LL, "const PatchTable::PatchArray &OpenSubdiv::v3_6_0::Far::PatchTable::getPatchArray(Index) const"); if ( *(_DWORD *)(v3 + 20LL * a2 + 4) <= a3 ) __assert_fail( "patchIndex<pa.numPatches", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTable.cpp", 223LL, "int OpenSubdiv::v3_6_0::Far::PatchTable::getPatchIndex(int, int) const"); return (unsigned int)(*(_DWORD *)(v3 + 20LL * a2 + 12) + a3); }
getPatchIndex: PUSH RAX MOV RAX,qword ptr [RDI + 0x8] MOV RCX,qword ptr [RDI + 0x10] SUB RCX,RAX SHR RCX,0x2 IMUL ECX,ECX,-0x33333333 CMP ECX,ESI JLE 0x0016ab98 MOVSXD RCX,ESI LEA RCX,[RCX + RCX*0x4] CMP dword ptr [RAX + RCX*0x4 + 0x4],EDX JLE 0x0016abb7 LEA RAX,[RAX + RCX*0x4] ADD EDX,dword ptr [RAX + 0xc] MOV EAX,EDX POP RCX RET LAB_0016ab98: LEA RDI,[0x1bc43d] LEA RSI,[0x1bbf12] LEA RCX,[0x1bc463] MOV EDX,0x90 CALL 0x00139540 LAB_0016abb7: LEA RDI,[0x1bbef9] LEA RSI,[0x1bbf12] LEA RCX,[0x1bbf6e] MOV EDX,0xdf CALL 0x00139540
/* OpenSubdiv::v3_6_0::Far::PatchTable::getPatchIndex(int, int) const */ int __thiscall OpenSubdiv::v3_6_0::Far::PatchTable::getPatchIndex(PatchTable *this,int param_1,int param_2) { long lVar1; lVar1 = *(long *)(this + 8); if ((int)((ulong)(*(long *)(this + 0x10) - lVar1) >> 2) * -0x33333333 <= param_1) { /* WARNING: Subroutine does not return */ __assert_fail("arrayIndex<(Index)GetNumPatchArrays()", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTable.cpp" ,0x90, "const PatchTable::PatchArray &OpenSubdiv::v3_6_0::Far::PatchTable::getPatchArray(Index) const" ); } if (param_2 < *(int *)(lVar1 + 4 + (long)param_1 * 0x14)) { return param_2 + *(int *)(lVar1 + (long)param_1 * 0x14 + 0xc); } /* WARNING: Subroutine does not return */ __assert_fail("patchIndex<pa.numPatches", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTable.cpp" ,0xdf,"int OpenSubdiv::v3_6_0::Far::PatchTable::getPatchIndex(int, int) const"); }
65,323
net_field_length
eloqsql/libmariadb/libmariadb/mariadb_lib.c
ulong net_field_length(uchar **packet) { reg1 uchar *pos= *packet; if (*pos < 251) { (*packet)++; return (ulong) *pos; } if (*pos == 251) { (*packet)++; return NULL_LENGTH; } if (*pos == 252) { (*packet)+=3; return (ulong) uint2korr(pos+1); } if (*pos == 253) { (*packet)+=4; return (ulong) uint3korr(pos+1); } (*packet)+=9; /* Must be 254 when here */ return (ulong) uint4korr(pos+1); }
O0
c
net_field_length: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax movzbl (%rax), %eax cmpl $0xfb, %eax jge 0x47f1f movq -0x10(%rbp), %rax movq (%rax), %rcx addq $0x1, %rcx movq %rcx, (%rax) movq -0x18(%rbp), %rax movzbl (%rax), %eax movq %rax, -0x8(%rbp) jmp 0x48014 movq -0x18(%rbp), %rax movzbl (%rax), %eax cmpl $0xfb, %eax jne 0x47f48 movq -0x10(%rbp), %rax movq (%rax), %rcx addq $0x1, %rcx movq %rcx, (%rax) movq $-0x1, -0x8(%rbp) jmp 0x48014 movq -0x18(%rbp), %rax movzbl (%rax), %eax cmpl $0xfc, %eax jne 0x47f8b movq -0x10(%rbp), %rax movq (%rax), %rcx addq $0x3, %rcx movq %rcx, (%rax) movq -0x18(%rbp), %rax movzbl 0x1(%rax), %eax movzwl %ax, %eax movq -0x18(%rbp), %rcx movzbl 0x2(%rcx), %ecx movzwl %cx, %ecx shll $0x8, %ecx addl %ecx, %eax movzwl %ax, %eax movq %rax, -0x8(%rbp) jmp 0x48014 movq -0x18(%rbp), %rax movzbl (%rax), %eax cmpl $0xfd, %eax jne 0x47fd1 movq -0x10(%rbp), %rax movq (%rax), %rcx addq $0x4, %rcx movq %rcx, (%rax) movq -0x18(%rbp), %rax movzbl 0x1(%rax), %eax movq -0x18(%rbp), %rcx movzbl 0x2(%rcx), %ecx shll $0x8, %ecx addl %ecx, %eax movq -0x18(%rbp), %rcx movzbl 0x3(%rcx), %ecx shll $0x10, %ecx addl %ecx, %eax movl %eax, %eax movq %rax, -0x8(%rbp) jmp 0x48014 movq -0x10(%rbp), %rax movq (%rax), %rcx addq $0x9, %rcx movq %rcx, (%rax) movq -0x18(%rbp), %rax movzbl 0x1(%rax), %eax movq -0x18(%rbp), %rcx movzbl 0x2(%rcx), %ecx shll $0x8, %ecx addl %ecx, %eax movq -0x18(%rbp), %rcx movzbl 0x3(%rcx), %ecx shll $0x10, %ecx addl %ecx, %eax movq -0x18(%rbp), %rcx movzbl 0x4(%rcx), %ecx shll $0x18, %ecx addl %ecx, %eax movl %eax, %eax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax popq %rbp retq nopw (%rax,%rax)
net_field_length: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_18], rax mov rax, [rbp+var_18] movzx eax, byte ptr [rax] cmp eax, 0FBh jge short loc_47F1F mov rax, [rbp+var_10] mov rcx, [rax] add rcx, 1 mov [rax], rcx mov rax, [rbp+var_18] movzx eax, byte ptr [rax] mov [rbp+var_8], rax jmp loc_48014 loc_47F1F: mov rax, [rbp+var_18] movzx eax, byte ptr [rax] cmp eax, 0FBh jnz short loc_47F48 mov rax, [rbp+var_10] mov rcx, [rax] add rcx, 1 mov [rax], rcx mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh jmp loc_48014 loc_47F48: mov rax, [rbp+var_18] movzx eax, byte ptr [rax] cmp eax, 0FCh jnz short loc_47F8B mov rax, [rbp+var_10] mov rcx, [rax] add rcx, 3 mov [rax], rcx mov rax, [rbp+var_18] movzx eax, byte ptr [rax+1] movzx eax, ax mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+2] movzx ecx, cx shl ecx, 8 add eax, ecx movzx eax, ax mov [rbp+var_8], rax jmp loc_48014 loc_47F8B: mov rax, [rbp+var_18] movzx eax, byte ptr [rax] cmp eax, 0FDh jnz short loc_47FD1 mov rax, [rbp+var_10] mov rcx, [rax] add rcx, 4 mov [rax], rcx mov rax, [rbp+var_18] movzx eax, byte ptr [rax+1] mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+2] shl ecx, 8 add eax, ecx mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+3] shl ecx, 10h add eax, ecx mov eax, eax mov [rbp+var_8], rax jmp short loc_48014 loc_47FD1: mov rax, [rbp+var_10] mov rcx, [rax] add rcx, 9 mov [rax], rcx mov rax, [rbp+var_18] movzx eax, byte ptr [rax+1] mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+2] shl ecx, 8 add eax, ecx mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+3] shl ecx, 10h add eax, ecx mov rcx, [rbp+var_18] movzx ecx, byte ptr [rcx+4] shl ecx, 18h add eax, ecx mov eax, eax mov [rbp+var_8], rax loc_48014: mov rax, [rbp+var_8] pop rbp retn
long long net_field_length(unsigned __int8 **a1) { int v1; // eax int v2; // ecx unsigned __int8 *v4; // [rsp+0h] [rbp-18h] v4 = *a1; if ( **a1 >= 0xFBu ) { if ( *v4 == 251 ) { ++*a1; return -1LL; } else if ( *v4 == 252 ) { *a1 += 3; return (unsigned __int16)((v4[2] << 8) + v4[1]); } else { if ( *v4 == 253 ) { *a1 += 4; v1 = (v4[2] << 8) + v4[1]; v2 = v4[3] << 16; } else { *a1 += 9; v1 = (v4[3] << 16) + (v4[2] << 8) + v4[1]; v2 = v4[4] << 24; } return (unsigned int)(v2 + v1); } } else { ++*a1; return *v4; } }
net_field_length: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] CMP EAX,0xfb JGE 0x00147f1f MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX] ADD RCX,0x1 MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] MOV qword ptr [RBP + -0x8],RAX JMP 0x00148014 LAB_00147f1f: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] CMP EAX,0xfb JNZ 0x00147f48 MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX] ADD RCX,0x1 MOV qword ptr [RAX],RCX MOV qword ptr [RBP + -0x8],-0x1 JMP 0x00148014 LAB_00147f48: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] CMP EAX,0xfc JNZ 0x00147f8b MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX] ADD RCX,0x3 MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + 0x1] MOVZX EAX,AX MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x2] MOVZX ECX,CX SHL ECX,0x8 ADD EAX,ECX MOVZX EAX,AX MOV qword ptr [RBP + -0x8],RAX JMP 0x00148014 LAB_00147f8b: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] CMP EAX,0xfd JNZ 0x00147fd1 MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX] ADD RCX,0x4 MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + 0x1] MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x2] SHL ECX,0x8 ADD EAX,ECX MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x3] SHL ECX,0x10 ADD EAX,ECX MOV EAX,EAX MOV qword ptr [RBP + -0x8],RAX JMP 0x00148014 LAB_00147fd1: MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX] ADD RCX,0x9 MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + 0x1] MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x2] SHL ECX,0x8 ADD EAX,ECX MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x3] SHL ECX,0x10 ADD EAX,ECX MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,byte ptr [RCX + 0x4] SHL ECX,0x18 ADD EAX,ECX MOV EAX,EAX MOV qword ptr [RBP + -0x8],RAX LAB_00148014: MOV RAX,qword ptr [RBP + -0x8] POP RBP RET
ulong net_field_length(long *param_1) { byte *pbVar1; ulong local_10; pbVar1 = (byte *)*param_1; if (*pbVar1 < 0xfb) { *param_1 = *param_1 + 1; local_10 = (ulong)*pbVar1; } else if (*pbVar1 == 0xfb) { *param_1 = *param_1 + 1; local_10 = 0xffffffffffffffff; } else if (*pbVar1 == 0xfc) { *param_1 = *param_1 + 3; local_10 = (ulong)((uint)pbVar1[1] + (uint)pbVar1[2] * 0x100 & 0xffff); } else if (*pbVar1 == 0xfd) { *param_1 = *param_1 + 4; local_10 = (ulong)((uint)pbVar1[1] + (uint)pbVar1[2] * 0x100 + (uint)pbVar1[3] * 0x10000); } else { *param_1 = *param_1 + 9; local_10 = (ulong)((uint)pbVar1[1] + (uint)pbVar1[2] * 0x100 + (uint)pbVar1[3] * 0x10000 + (uint)pbVar1[4] * 0x1000000); } return local_10; }
65,324
nglog::TruncateStdoutStderr()
ng-log[P]ng-log/src/logging.cc
static uint32 MaxLogSize() { return (FLAGS_max_log_size > 0 && FLAGS_max_log_size < 4096 ? FLAGS_max_log_size : 1); }
O3
cpp
nglog::TruncateStdoutStderr(): pushq %rbx leaq 0x292a7(%rip), %rax # 0x460cc movl (%rax), %eax leal -0x1(%rax), %ecx shll $0x14, %eax cmpl $0xfff, %ecx # imm = 0xFFF movl $0x100000, %ebx # imm = 0x100000 cmovbl %eax, %ebx leaq 0x16dc9(%rip), %rdi # 0x33c0b movl $0x100000, %edx # imm = 0x100000 movq %rbx, %rsi callq 0x1c6a4 leaq 0x16dc5(%rip), %rdi # 0x33c1b movl $0x100000, %edx # imm = 0x100000 movq %rbx, %rsi popq %rbx jmp 0x1c6a4
_ZN5nglog20TruncateStdoutStderrEv: push rbx lea rax, _ZN3fLU18FLAGS_max_log_sizeE; fLU::FLAGS_max_log_size mov eax, [rax] lea ecx, [rax-1]; unsigned __int64 shl eax, 14h cmp ecx, 0FFFh mov ebx, 100000h cmovb ebx, eax lea rdi, aProcSelfFd1; "/proc/self/fd/1" mov edx, 100000h; unsigned __int64 mov rsi, rbx; char * call _ZN5nglog15TruncateLogFileEPKcmm; nglog::TruncateLogFile(char const*,ulong,ulong) lea rdi, aProcSelfFd2; "/proc/self/fd/2" mov edx, 100000h; unsigned __int64 mov rsi, rbx; char * pop rbx jmp _ZN5nglog15TruncateLogFileEPKcmm; nglog::TruncateLogFile(char const*,ulong,ulong)
void nglog::TruncateStdoutStderr(nglog *this) { long long v1; // rbx v1 = 0x100000LL; if ( (unsigned int)(fLU::FLAGS_max_log_size - 1) < 0xFFF ) v1 = (unsigned int)(fLU::FLAGS_max_log_size << 20); nglog::TruncateLogFile((nglog *)"/proc/self/fd/1", (const char *)v1, 0x100000LL); nglog::TruncateLogFile((nglog *)"/proc/self/fd/2", (const char *)v1, 0x100000LL); }
TruncateStdoutStderr: PUSH RBX LEA RAX,[0x1460cc] MOV EAX,dword ptr [RAX] LEA ECX,[RAX + -0x1] SHL EAX,0x14 CMP ECX,0xfff MOV EBX,0x100000 CMOVC EBX,EAX LEA RDI,[0x133c0b] MOV EDX,0x100000 MOV RSI,RBX CALL 0x0011c6a4 LEA RDI,[0x133c1b] MOV EDX,0x100000 MOV RSI,RBX POP RBX JMP 0x0011c6a4
/* nglog::TruncateStdoutStderr() */ void nglog::TruncateStdoutStderr(void) { ulong uVar1; uVar1 = 0x100000; if (fLU::FLAGS_max_log_size - 1U < 0xfff) { uVar1 = (ulong)(uint)(fLU::FLAGS_max_log_size << 0x14); } TruncateLogFile("/proc/self/fd/1",uVar1,0x100000); TruncateLogFile("/proc/self/fd/2",uVar1,0x100000); return; }
65,325
quantize_row_q5_0_ref
monkey531[P]llama/ggml/src/ggml-quants.c
void quantize_row_q5_0_ref(const float * restrict x, block_q5_0 * restrict y, int64_t k) { static const int qk = QK5_0; assert(k % qk == 0); const int nb = k / qk; for (int i = 0; i < nb; i++) { float amax = 0.0f; // absolute max float max = 0.0f; for (int j = 0; j < qk; j++) { const float v = x[i*qk + j]; if (amax < fabsf(v)) { amax = fabsf(v); max = v; } } const float d = max / -16; const float id = d ? 1.0f/d : 0.0f; y[i].d = GGML_FP32_TO_FP16(d); uint32_t qh = 0; for (int j = 0; j < qk/2; ++j) { const float x0 = x[i*qk + 0 + j]*id; const float x1 = x[i*qk + qk/2 + j]*id; const uint8_t xi0 = MIN(31, (int8_t)(x0 + 16.5f)); const uint8_t xi1 = MIN(31, (int8_t)(x1 + 16.5f)); y[i].qs[j] = (xi0 & 0x0F) | ((xi1 & 0x0F) << 4); // get the 5-th bit and store it in qh at the right position qh |= ((xi0 & 0x10u) >> 4) << (j + 0); qh |= ((xi1 & 0x10u) >> 4) << (j + qk/2); } memcpy(&y[i].qh, &qh, sizeof(qh)); } }
O2
c
quantize_row_q5_0_ref: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdx, %rax movq %rsi, %rbx pushq $0x20 popq %rcx cqto idivq %rcx movq %rax, %r15 xorl %r12d, %r12d testl %r15d, %r15d cmovlel %r12d, %r15d movq %rdi, 0x8(%rsp) leaq 0x40(%rdi), %rax movq %rax, (%rsp) leaq 0x6(%rsi), %rbp pushq $0x1f popq %r14 movaps 0x1a8ed(%rip), %xmm5 # 0x4b020 cmpq %r15, %r12 je 0x30866 movl %r12d, %eax andl $0x7ffffff, %eax # imm = 0x7FFFFFF shlq $0x7, %rax movq (%rsp), %rcx leaq (%rcx,%rax), %r13 addq 0x8(%rsp), %rax xorps %xmm0, %xmm0 xorl %ecx, %ecx xorps %xmm1, %xmm1 cmpq $0x20, %rcx je 0x3078e movss (%rax,%rcx,4), %xmm2 movaps %xmm2, %xmm3 andps %xmm5, %xmm3 movaps %xmm1, %xmm4 cmpltss %xmm3, %xmm4 andps %xmm4, %xmm2 andnps %xmm0, %xmm4 orps %xmm2, %xmm4 maxss %xmm1, %xmm3 incq %rcx movaps %xmm4, %xmm0 movaps %xmm3, %xmm1 jmp 0x3075d mulss 0x1ed92(%rip), %xmm0 # 0x4f528 movss 0x1a8c2(%rip), %xmm1 # 0x4b060 divss %xmm0, %xmm1 movaps %xmm0, %xmm2 cmpneqss 0x1ed6a(%rip), %xmm2 # 0x4f518 andps %xmm1, %xmm2 movaps %xmm2, 0x10(%rsp) callq 0x30512 imulq $0x16, %r12, %rcx leaq (%rbx,%rcx), %rdx movw %ax, (%rbx,%rcx) xorl %eax, %eax xorl %esi, %esi movss 0x1ed59(%rip), %xmm1 # 0x4f52c cmpq $0x10, %rax je 0x30857 movss -0x40(%r13,%rax,4), %xmm0 mulss 0x10(%rsp), %xmm0 addss %xmm1, %xmm0 cvttss2si %xmm0, %ecx cmpb $0x1f, %cl jl 0x307f6 movl %r14d, %ecx movss (%r13,%rax,4), %xmm0 mulss 0x10(%rsp), %xmm0 addss %xmm1, %xmm0 cvttss2si %xmm0, %edi cmpb $0x1f, %dil jl 0x30814 movl %r14d, %edi movl %ecx, %r8d andb $0xf, %r8b movl %edi, %r9d shlb $0x4, %r9b orb %r8b, %r9b shrb $0x4, %cl andb $0x1, %cl movzbl %cl, %r8d movl %eax, %ecx shll %cl, %r8d shrb $0x4, %dil andb $0x1, %dil movzbl %dil, %edi orb $0x10, %cl shll %cl, %edi movb %r9b, (%rbp,%rax) orl %r8d, %edi orl %edi, %esi incq %rax jmp 0x307d3 movl %esi, 0x2(%rdx) incq %r12 addq $0x16, %rbp jmp 0x3072c addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
quantize_row_q5_0_ref: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov rax, rdx mov rbx, rsi push 20h ; ' ' pop rcx cqo idiv rcx mov r15, rax xor r12d, r12d test r15d, r15d cmovle r15d, r12d mov [rsp+58h+var_50], rdi lea rax, [rdi+40h] mov [rsp+58h+var_58], rax lea rbp, [rsi+6] push 1Fh pop r14 loc_3072C: movaps xmm5, cs:xmmword_4B020 cmp r12, r15 jz loc_30866 mov eax, r12d and eax, 7FFFFFFh shl rax, 7 mov rcx, [rsp+58h+var_58] lea r13, [rcx+rax] add rax, [rsp+58h+var_50] xorps xmm0, xmm0 xor ecx, ecx xorps xmm1, xmm1 loc_3075D: cmp rcx, 20h ; ' ' jz short loc_3078E movss xmm2, dword ptr [rax+rcx*4] movaps xmm3, xmm2 andps xmm3, xmm5 movaps xmm4, xmm1 cmpltss xmm4, xmm3 andps xmm2, xmm4 andnps xmm4, xmm0 orps xmm4, xmm2 maxss xmm3, xmm1 inc rcx movaps xmm0, xmm4 movaps xmm1, xmm3 jmp short loc_3075D loc_3078E: mulss xmm0, cs:dword_4F528 movss xmm1, cs:dword_4B060 divss xmm1, xmm0 movaps xmm2, xmm0 cmpneqss xmm2, cs:dword_4F518 andps xmm2, xmm1 movaps [rsp+58h+var_48], xmm2 call ggml_compute_fp32_to_fp16_0 imul rcx, r12, 16h lea rdx, [rbx+rcx] mov [rbx+rcx], ax xor eax, eax xor esi, esi movss xmm1, cs:dword_4F52C loc_307D3: cmp rax, 10h jz short loc_30857 movss xmm0, dword ptr [r13+rax*4-40h] mulss xmm0, dword ptr [rsp+58h+var_48] addss xmm0, xmm1 cvttss2si ecx, xmm0 cmp cl, 1Fh jl short loc_307F6 mov ecx, r14d loc_307F6: movss xmm0, dword ptr [r13+rax*4+0] mulss xmm0, dword ptr [rsp+58h+var_48] addss xmm0, xmm1 cvttss2si edi, xmm0 cmp dil, 1Fh jl short loc_30814 mov edi, r14d loc_30814: mov r8d, ecx and r8b, 0Fh mov r9d, edi shl r9b, 4 or r9b, r8b shr cl, 4 and cl, 1 movzx r8d, cl mov ecx, eax shl r8d, cl shr dil, 4 and dil, 1 movzx edi, dil or cl, 10h shl edi, cl mov [rbp+rax+0], r9b or edi, r8d or esi, edi inc rax jmp loc_307D3 loc_30857: mov [rdx+2], esi inc r12 add rbp, 16h jmp loc_3072C loc_30866: add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long quantize_row_q5_0_ref(long long a1, long long a2, long long a3) { long long v4; // r15 long long v5; // r12 long long result; // rax long long v7; // rbp unsigned long long v8; // rax long long v9; // r13 long long v10; // rax __m128 v11; // xmm0 long long v12; // rcx __m128 v13; // xmm1 __m128 v14; // xmm3 __m128 v15; // xmm4 __m128 v16; // xmm4 __m128 v17; // rt1 __int16 v18; // ax long long v19; // rdx int v20; // esi int v21; // ecx int v22; // edi long long v23; // [rsp+0h] [rbp-58h] float v25; // [rsp+10h] [rbp-48h] v4 = a3 / 32; v5 = 0LL; if ( (int)(a3 / 32) <= 0 ) v4 = 0LL; result = a1 + 64; v23 = a1 + 64; v7 = a2 + 6; while ( v5 != v4 ) { v8 = (unsigned long long)(v5 & 0x7FFFFFF) << 7; v9 = v23 + v8; v10 = a1 + v8; v11 = 0LL; v12 = 0LL; v13 = 0LL; while ( v12 != 32 ) { v14 = _mm_and_ps((__m128)*(unsigned int *)(v10 + 4 * v12), (__m128)xmmword_4B020); v15 = _mm_cmplt_ss(v13, v14); v16 = _mm_or_ps(_mm_andnot_ps(v15, v11), _mm_and_ps((__m128)*(unsigned int *)(v10 + 4 * v12), v15)); v14.m128_f32[0] = fmaxf(v14.m128_f32[0], v13.m128_f32[0]); ++v12; v11 = v16; v13 = v14; } v11.m128_f32[0] = v11.m128_f32[0] * -0.0625; v17.m128_i32[0] = 0; LODWORD(v25) = _mm_cmpneq_ss(v11, v17).m128_u32[0] & COERCE_UNSIGNED_INT(1.0 / v11.m128_f32[0]); v18 = ggml_compute_fp32_to_fp16_0((__m128i)v11); v19 = a2 + 22 * v5; *(_WORD *)v19 = v18; result = 0LL; v20 = 0; while ( result != 16 ) { v21 = (int)(float)((float)(*(float *)(v9 + 4 * result - 64) * v25) + 16.5); if ( (char)v21 >= 31 ) LOBYTE(v21) = 31; v22 = (int)(float)((float)(*(float *)(v9 + 4 * result) * v25) + 16.5); if ( (char)v22 >= 31 ) LOBYTE(v22) = 31; *(_BYTE *)(v7 + result) = v21 & 0xF | (16 * v22); v20 |= (((v21 & 0x10) != 0) << result) | (((v22 & 0x10) != 0) << (result | 0x10)); ++result; } *(_DWORD *)(v19 + 2) = v20; ++v5; v7 += 22LL; } return result; }
quantize_row_q5_0_ref: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RAX,RDX MOV RBX,RSI PUSH 0x20 POP RCX CQO IDIV RCX MOV R15,RAX XOR R12D,R12D TEST R15D,R15D CMOVLE R15D,R12D MOV qword ptr [RSP + 0x8],RDI LEA RAX,[RDI + 0x40] MOV qword ptr [RSP],RAX LEA RBP,[RSI + 0x6] PUSH 0x1f POP R14 LAB_0013072c: MOVAPS XMM5,xmmword ptr [0x0014b020] CMP R12,R15 JZ 0x00130866 MOV EAX,R12D AND EAX,0x7ffffff SHL RAX,0x7 MOV RCX,qword ptr [RSP] LEA R13,[RCX + RAX*0x1] ADD RAX,qword ptr [RSP + 0x8] XORPS XMM0,XMM0 XOR ECX,ECX XORPS XMM1,XMM1 LAB_0013075d: CMP RCX,0x20 JZ 0x0013078e MOVSS XMM2,dword ptr [RAX + RCX*0x4] MOVAPS XMM3,XMM2 ANDPS XMM3,XMM5 MOVAPS XMM4,XMM1 CMPLTSS XMM4,XMM3 ANDPS XMM2,XMM4 ANDNPS XMM4,XMM0 ORPS XMM4,XMM2 MAXSS XMM3,XMM1 INC RCX MOVAPS XMM0,XMM4 MOVAPS XMM1,XMM3 JMP 0x0013075d LAB_0013078e: MULSS XMM0,dword ptr [0x0014f528] MOVSS XMM1,dword ptr [0x0014b060] DIVSS XMM1,XMM0 MOVAPS XMM2,XMM0 CMPNEQSS XMM2,dword ptr [0x0014f518] ANDPS XMM2,XMM1 MOVAPS xmmword ptr [RSP + 0x10],XMM2 CALL 0x00130512 IMUL RCX,R12,0x16 LEA RDX,[RBX + RCX*0x1] MOV word ptr [RBX + RCX*0x1],AX XOR EAX,EAX XOR ESI,ESI MOVSS XMM1,dword ptr [0x0014f52c] LAB_001307d3: CMP RAX,0x10 JZ 0x00130857 MOVSS XMM0,dword ptr [R13 + RAX*0x4 + -0x40] MULSS XMM0,dword ptr [RSP + 0x10] ADDSS XMM0,XMM1 CVTTSS2SI ECX,XMM0 CMP CL,0x1f JL 0x001307f6 MOV ECX,R14D LAB_001307f6: MOVSS XMM0,dword ptr [R13 + RAX*0x4] MULSS XMM0,dword ptr [RSP + 0x10] ADDSS XMM0,XMM1 CVTTSS2SI EDI,XMM0 CMP DIL,0x1f JL 0x00130814 MOV EDI,R14D LAB_00130814: MOV R8D,ECX AND R8B,0xf MOV R9D,EDI SHL R9B,0x4 OR R9B,R8B SHR CL,0x4 AND CL,0x1 MOVZX R8D,CL MOV ECX,EAX SHL R8D,CL SHR DIL,0x4 AND DIL,0x1 MOVZX EDI,DIL OR CL,0x10 SHL EDI,CL MOV byte ptr [RBP + RAX*0x1],R9B OR EDI,R8D OR ESI,EDI INC RAX JMP 0x001307d3 LAB_00130857: MOV dword ptr [RDX + 0x2],ESI INC R12 ADD RBP,0x16 JMP 0x0013072c LAB_00130866: ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ void quantize_row_q5_0_ref(long param_1,long param_2,long param_3) { long lVar1; int2 uVar2; long lVar3; byte bVar4; long lVar5; long lVar6; uint uVar7; byte bVar8; ulong uVar9; ulong uVar10; float fVar11; float fVar12; float fVar13; uVar9 = 0; uVar10 = param_3 / 0x20 & 0xffffffff; if ((int)(param_3 / 0x20) < 1) { uVar10 = uVar9; } lVar6 = param_2 + 6; for (; uVar9 != uVar10; uVar9 = uVar9 + 1) { lVar3 = (ulong)((uint)uVar9 & 0x7ffffff) * 0x80; lVar1 = param_1 + 0x40 + lVar3; fVar11 = 0.0; fVar12 = 0.0; for (lVar5 = 0; lVar5 != 0x20; lVar5 = lVar5 + 1) { uVar7 = *(uint *)(lVar3 + param_1 + lVar5 * 4); fVar13 = (float)(uVar7 & _DAT_0014b020); fVar11 = (float)(~-(uint)(fVar12 < fVar13) & (uint)fVar11 | uVar7 & -(uint)(fVar12 < fVar13)); if (fVar13 <= fVar12) { fVar13 = fVar12; } fVar12 = fVar13; } fVar12 = (float)(-(uint)(fVar11 * _DAT_0014f528 != DAT_0014f518) & (uint)(DAT_0014b060 / (fVar11 * _DAT_0014f528))); uVar2 = ggml_compute_fp32_to_fp16(); *(int2 *)(param_2 + uVar9 * 0x16) = uVar2; fVar11 = DAT_0014f52c; uVar7 = 0; for (lVar3 = 0; lVar3 != 0x10; lVar3 = lVar3 + 1) { bVar4 = (byte)(int)(*(float *)(lVar1 + -0x40 + lVar3 * 4) * fVar12 + fVar11); if ('\x1e' < (char)bVar4) { bVar4 = 0x1f; } bVar8 = (byte)(int)(*(float *)(lVar1 + lVar3 * 4) * fVar12 + fVar11); if ('\x1e' < (char)bVar8) { bVar8 = 0x1f; } *(byte *)(lVar6 + lVar3) = bVar8 << 4 | bVar4 & 0xf; uVar7 = uVar7 | (uint)(bVar8 >> 4 & 1) << ((byte)lVar3 & 0x1f | 0x10) | (uint)(bVar4 >> 4 & 1) << ((byte)lVar3 & 0x1f); } *(uint *)(param_2 + uVar9 * 0x16 + 2) = uVar7; lVar6 = lVar6 + 0x16; } return; }
65,326
Diagnostics_area::set_ok_status(unsigned long long, unsigned long long, char const*)
eloqsql/sql/sql_error.cc
void Diagnostics_area::set_ok_status(ulonglong affected_rows, ulonglong last_insert_id, const char *message) { DBUG_ENTER("set_ok_status"); DBUG_ASSERT(!is_set() || (m_status == DA_OK_BULK && is_bulk_op())); /* In production, refuse to overwrite an error or a custom response with an OK packet. */ if (unlikely(is_error() || is_disabled())) return; /* When running a bulk operation, m_status will be DA_OK for the first operation and set to DA_OK_BULK for all following operations. */ if (m_status == DA_OK_BULK) { m_statement_warn_count+= current_statement_warn_count(); m_affected_rows+= affected_rows; } else { m_statement_warn_count= current_statement_warn_count(); m_affected_rows= affected_rows; m_status= (is_bulk_op() ? DA_OK_BULK : DA_OK); } m_last_insert_id= last_insert_id; if (message) strmake_buf(m_message, message); else m_message[0]= '\0'; DBUG_VOID_RETURN; }
O0
cpp
Diagnostics_area::set_ok_status(unsigned long long, unsigned long long, char const*): pushq %rbp movq %rsp, %rbp subq $0x250, %rsp # imm = 0x250 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x218(%rbp) movq %rsi, -0x220(%rbp) movq %rdx, -0x228(%rbp) movq %rcx, -0x230(%rbp) movq -0x218(%rbp), %rax movq %rax, -0x240(%rbp) jmp 0x998904 movq -0x240(%rbp), %rdi callq 0x856bf0 movb %al, %cl movb $0x1, %al testb $0x1, %cl movb %al, -0x241(%rbp) jne 0x998931 movq -0x240(%rbp), %rdi callq 0x99a140 movb %al, -0x241(%rbp) movb -0x241(%rbp), %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax je 0x998946 jmp 0x998a4c movq -0x240(%rbp), %rax cmpl $0x3, 0x234(%rax) jne 0x998992 movq -0x240(%rbp), %rdi callq 0x8dbe90 movq %rax, %rdx movq -0x240(%rbp), %rax movl 0x230(%rax), %ecx addq %rdx, %rcx movl %ecx, 0x230(%rax) movq -0x220(%rbp), %rcx addq 0x220(%rax), %rcx movq %rcx, 0x220(%rax) jmp 0x9989df movq -0x240(%rbp), %rdi callq 0x8dbe90 movq -0x240(%rbp), %rdi movl %eax, 0x230(%rdi) movq -0x220(%rbp), %rax movq %rax, 0x220(%rdi) callq 0x99a160 movb %al, %sil movq -0x240(%rbp), %rax movl $0x1, %ecx movl $0x3, %edx testb $0x1, %sil cmovnel %edx, %ecx movl %ecx, 0x234(%rax) movq -0x240(%rbp), %rax movq -0x228(%rbp), %rcx movq %rcx, 0x228(%rax) cmpq $0x0, -0x230(%rbp) je 0x998a3d leaq -0x210(%rbp), %rdi xorl %esi, %esi movl $0x200, %edx # imm = 0x200 callq 0x7754f0 movq -0x240(%rbp), %rdi movb $0x2, -0x210(%rbp) addq $0x1a, %rdi movq -0x230(%rbp), %rsi movl $0x1ff, %edx # imm = 0x1FF callq 0x1395640 movq %rax, -0x238(%rbp) jmp 0x998a48 movq -0x240(%rbp), %rax movb $0x0, 0x1a(%rax) jmp 0x998a4a jmp 0x998a4c movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x998a67 addq $0x250, %rsp # imm = 0x250 popq %rbp retq callq 0x7754c0 nopl (%rax)
_ZN16Diagnostics_area13set_ok_statusEyyPKc: push rbp mov rbp, rsp sub rsp, 250h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_218], rdi mov [rbp+var_220], rsi mov [rbp+var_228], rdx mov [rbp+var_230], rcx mov rax, [rbp+var_218] mov [rbp+var_240], rax jmp short $+2 loc_998904: mov rdi, [rbp+var_240]; this call _ZNK16Diagnostics_area8is_errorEv; Diagnostics_area::is_error(void) mov cl, al mov al, 1 test cl, 1 mov [rbp+var_241], al jnz short loc_998931 mov rdi, [rbp+var_240]; this call _ZNK16Diagnostics_area11is_disabledEv; Diagnostics_area::is_disabled(void) mov [rbp+var_241], al loc_998931: mov al, [rbp+var_241] and al, 1 movzx eax, al cmp eax, 0 jz short loc_998946 jmp loc_998A4C loc_998946: mov rax, [rbp+var_240] cmp dword ptr [rax+234h], 3 jnz short loc_998992 mov rdi, [rbp+var_240]; this call _ZNK16Diagnostics_area28current_statement_warn_countEv; Diagnostics_area::current_statement_warn_count(void) mov rdx, rax mov rax, [rbp+var_240] mov ecx, [rax+230h] add rcx, rdx mov [rax+230h], ecx mov rcx, [rbp+var_220] add rcx, [rax+220h] mov [rax+220h], rcx jmp short loc_9989DF loc_998992: mov rdi, [rbp+var_240]; this call _ZNK16Diagnostics_area28current_statement_warn_countEv; Diagnostics_area::current_statement_warn_count(void) mov rdi, [rbp+var_240]; this mov [rdi+230h], eax mov rax, [rbp+var_220] mov [rdi+220h], rax call _ZNK16Diagnostics_area10is_bulk_opEv; Diagnostics_area::is_bulk_op(void) mov sil, al mov rax, [rbp+var_240] mov ecx, 1 mov edx, 3 test sil, 1 cmovnz ecx, edx mov [rax+234h], ecx loc_9989DF: mov rax, [rbp+var_240] mov rcx, [rbp+var_228] mov [rax+228h], rcx cmp [rbp+var_230], 0 jz short loc_998A3D lea rdi, [rbp+var_210] xor esi, esi mov edx, 200h call _memset mov rdi, [rbp+var_240] mov [rbp+var_210], 2 add rdi, 1Ah mov rsi, [rbp+var_230] mov edx, 1FFh call strmake mov [rbp+var_238], rax jmp short loc_998A48 loc_998A3D: mov rax, [rbp+var_240] mov byte ptr [rax+1Ah], 0 loc_998A48: jmp short $+2 loc_998A4A: jmp short $+2 loc_998A4C: mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_998A67 add rsp, 250h pop rbp retn loc_998A67: call ___stack_chk_fail
unsigned long long Diagnostics_area::set_ok_status( Diagnostics_area *this, long long a2, long long a3, const char *a4) { char is_bulk_op; // si int v5; // ecx char is_disabled; // [rsp+Fh] [rbp-241h] char v10[520]; // [rsp+40h] [rbp-210h] BYREF unsigned long long v11; // [rsp+248h] [rbp-8h] v11 = __readfsqword(0x28u); is_disabled = 1; if ( !Diagnostics_area::is_error(this) ) is_disabled = Diagnostics_area::is_disabled(this); if ( (is_disabled & 1) == 0 ) { if ( *((_DWORD *)this + 141) == 3 ) { *((_DWORD *)this + 140) += Diagnostics_area::current_statement_warn_count(this); *((_QWORD *)this + 68) += a2; } else { *((_DWORD *)this + 140) = Diagnostics_area::current_statement_warn_count(this); *((_QWORD *)this + 68) = a2; is_bulk_op = Diagnostics_area::is_bulk_op(this); v5 = 1; if ( (is_bulk_op & 1) != 0 ) v5 = 3; *((_DWORD *)this + 141) = v5; } *((_QWORD *)this + 69) = a3; if ( a4 ) { memset(v10, 0LL, 512LL); v10[0] = 2; strmake((char *)this + 26, a4, 511LL); } else { *((_BYTE *)this + 26) = 0; } } return __readfsqword(0x28u); }
show_open_tables: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV dword ptr [RBP + -0x1c],ECX MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x10],0x3 MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x8],RCX CALL 0x00d2c470 MOV EAX,EAX MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX XOR EAX,EAX ADD RSP,0x20 POP RBP RET
/* show_open_tables(THD*, st_mysql_show_var*, char*, enum_var_type) */ int8 show_open_tables(int8 param_1,long param_2,ulong *param_3) { uint uVar1; *(int4 *)(param_2 + 0x10) = 3; *(ulong **)(param_2 + 8) = param_3; uVar1 = tc_records(); *param_3 = (ulong)uVar1; return 0; }
65,327
mi_find_last_pos
eloqsql/storage/myisam/mi_write.c
static uchar *_mi_find_last_pos(MI_KEYDEF *keyinfo, uchar *page, uchar *key, uint *return_key_length, uchar **after_key) { uint keys, length, UNINIT_VAR(last_length), key_ref_length; uchar *end,*lastpos,*prevpos; uchar key_buff[HA_MAX_KEY_BUFF]; DBUG_ENTER("_mi_find_last_pos"); key_ref_length=2; length=mi_getint(page)-key_ref_length; page+=key_ref_length; if (!(keyinfo->flag & (HA_PACK_KEY | HA_SPACE_PACK_USED | HA_VAR_LENGTH_KEY | HA_BINARY_PACK_KEY))) { keys=length/keyinfo->keylength-2; *return_key_length=length=keyinfo->keylength; end=page+keys*length; *after_key=end+length; memcpy(key,end,length); DBUG_RETURN(end); } end=page+length-key_ref_length; DBUG_ASSERT(page < end); *key='\0'; length=0; lastpos=page; do { prevpos=lastpos; lastpos=page; last_length=length; memcpy(key, key_buff, length); /* previous key */ if (!(length=(*keyinfo->get_key)(keyinfo,0,&page,key_buff))) { mi_print_error(keyinfo->share, HA_ERR_CRASHED); my_errno=HA_ERR_CRASHED; DBUG_RETURN(0); } } while (page < end); *return_key_length=last_length; *after_key=lastpos; DBUG_PRINT("exit",("returns: %p page: %p end: %p", prevpos, page, end)); DBUG_RETURN(prevpos); }
O0
c
mi_find_last_pos: pushq %rbp movq %rsp, %rbp subq $0x520, %rsp # imm = 0x520 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x4d0(%rbp) movq %rsi, -0x4d8(%rbp) movq %rdx, -0x4e0(%rbp) movq %rcx, -0x4e8(%rbp) movq %r8, -0x4f0(%rbp) movl -0x4fc(%rbp), %eax movl %eax, -0x4fc(%rbp) movl $0x2, -0x500(%rbp) movq -0x4d8(%rbp), %rax movzbl 0x1(%rax), %eax movzwl %ax, %eax movq -0x4d8(%rbp), %rcx movzbl (%rcx), %ecx movzwl %cx, %ecx shll $0x8, %ecx orl %ecx, %eax movzwl %ax, %eax andl $0x7fff, %eax # imm = 0x7FFF subl -0x500(%rbp), %eax movl %eax, -0x4f8(%rbp) movl -0x500(%rbp), %ecx movq -0x4d8(%rbp), %rax movl %ecx, %ecx addq %rcx, %rax movq %rax, -0x4d8(%rbp) movq -0x4d0(%rbp), %rax movzwl 0xa(%rax), %eax andl $0x2e, %eax cmpl $0x0, %eax jne 0xcf705 movl -0x4f8(%rbp), %eax movq -0x4d0(%rbp), %rcx movzwl 0x12(%rcx), %ecx xorl %edx, %edx divl %ecx subl $0x2, %eax movl %eax, -0x4f4(%rbp) movq -0x4d0(%rbp), %rax movzwl 0x12(%rax), %ecx movl %ecx, -0x4f8(%rbp) movq -0x4e8(%rbp), %rax movl %ecx, (%rax) movq -0x4d8(%rbp), %rax movl -0x4f4(%rbp), %ecx imull -0x4f8(%rbp), %ecx movl %ecx, %ecx addq %rcx, %rax movq %rax, -0x508(%rbp) movq -0x508(%rbp), %rcx movl -0x4f8(%rbp), %eax addq %rax, %rcx movq -0x4f0(%rbp), %rax movq %rcx, (%rax) movq -0x4e0(%rbp), %rdi movq -0x508(%rbp), %rsi movl -0x4f8(%rbp), %eax movl %eax, %edx callq 0x29090 movq -0x508(%rbp), %rax movq %rax, -0x4c8(%rbp) jmp 0xcf83d movq -0x4d8(%rbp), %rax movl -0x4f8(%rbp), %ecx addq %rcx, %rax movl -0x500(%rbp), %ecx movl %ecx, %edx xorl %ecx, %ecx subq %rdx, %rcx addq %rcx, %rax movq %rax, -0x508(%rbp) jmp 0xcf72e movq -0x4e0(%rbp), %rax movb $0x0, (%rax) movl $0x0, -0x4f8(%rbp) movq -0x4d8(%rbp), %rax movq %rax, -0x510(%rbp) movq -0x510(%rbp), %rax movq %rax, -0x518(%rbp) movq -0x4d8(%rbp), %rax movq %rax, -0x510(%rbp) movl -0x4f8(%rbp), %eax movl %eax, -0x4fc(%rbp) movq -0x4e0(%rbp), %rdi leaq -0x4c0(%rbp), %rsi movl -0x4f8(%rbp), %eax movl %eax, %edx callq 0x29090 movq -0x4d0(%rbp), %rax movq 0x48(%rax), %rax movq -0x4d0(%rbp), %rdi leaq -0x4c0(%rbp), %rcx xorl %esi, %esi leaq -0x4d8(%rbp), %rdx callq *%rax movl %eax, -0x4f8(%rbp) cmpl $0x0, %eax jne 0xcf7f5 movq -0x4d0(%rbp), %rax movq (%rax), %rax movq 0x268(%rax), %rsi movl $0x7e, %edi callq 0xb5e50 callq 0xfdd30 movl $0x7e, (%rax) movq $0x0, -0x4c8(%rbp) jmp 0xcf83d jmp 0xcf7f7 movq -0x4d8(%rbp), %rax cmpq -0x508(%rbp), %rax jb 0xcf750 movl -0x4fc(%rbp), %ecx movq -0x4e8(%rbp), %rax movl %ecx, (%rax) movq -0x510(%rbp), %rcx movq -0x4f0(%rbp), %rax movq %rcx, (%rax) jmp 0xcf82d jmp 0xcf82f movq -0x518(%rbp), %rax movq %rax, -0x4c8(%rbp) movq -0x4c8(%rbp), %rax movq %rax, -0x520(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0xcf86d movq -0x520(%rbp), %rax addq $0x520, %rsp # imm = 0x520 popq %rbp retq callq 0x29230 nopw %cs:(%rax,%rax)
_mi_find_last_pos: push rbp mov rbp, rsp sub rsp, 520h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_4D0], rdi mov [rbp+var_4D8], rsi mov [rbp+var_4E0], rdx mov [rbp+var_4E8], rcx mov [rbp+var_4F0], r8 mov eax, [rbp+var_4FC] mov [rbp+var_4FC], eax mov [rbp+var_500], 2 mov rax, [rbp+var_4D8] movzx eax, byte ptr [rax+1] movzx eax, ax mov rcx, [rbp+var_4D8] movzx ecx, byte ptr [rcx] movzx ecx, cx shl ecx, 8 or eax, ecx movzx eax, ax and eax, 7FFFh sub eax, [rbp+var_500] mov [rbp+var_4F8], eax mov ecx, [rbp+var_500] mov rax, [rbp+var_4D8] mov ecx, ecx add rax, rcx mov [rbp+var_4D8], rax mov rax, [rbp+var_4D0] movzx eax, word ptr [rax+0Ah] and eax, 2Eh cmp eax, 0 jnz loc_CF705 mov eax, [rbp+var_4F8] mov rcx, [rbp+var_4D0] movzx ecx, word ptr [rcx+12h] xor edx, edx div ecx sub eax, 2 mov [rbp+var_4F4], eax mov rax, [rbp+var_4D0] movzx ecx, word ptr [rax+12h] mov [rbp+var_4F8], ecx mov rax, [rbp+var_4E8] mov [rax], ecx mov rax, [rbp+var_4D8] mov ecx, [rbp+var_4F4] imul ecx, [rbp+var_4F8] mov ecx, ecx add rax, rcx mov [rbp+var_508], rax mov rcx, [rbp+var_508] mov eax, [rbp+var_4F8] add rcx, rax mov rax, [rbp+var_4F0] mov [rax], rcx mov rdi, [rbp+var_4E0] mov rsi, [rbp+var_508] mov eax, [rbp+var_4F8] mov edx, eax call _memcpy mov rax, [rbp+var_508] mov [rbp+var_4C8], rax jmp loc_CF83D loc_CF705: mov rax, [rbp+var_4D8] mov ecx, [rbp+var_4F8] add rax, rcx mov ecx, [rbp+var_500] mov edx, ecx xor ecx, ecx sub rcx, rdx add rax, rcx mov [rbp+var_508], rax jmp short $+2 loc_CF72E: mov rax, [rbp+var_4E0] mov byte ptr [rax], 0 mov [rbp+var_4F8], 0 mov rax, [rbp+var_4D8] mov [rbp+var_510], rax loc_CF750: mov rax, [rbp+var_510] mov [rbp+var_518], rax mov rax, [rbp+var_4D8] mov [rbp+var_510], rax mov eax, [rbp+var_4F8] mov [rbp+var_4FC], eax mov rdi, [rbp+var_4E0] lea rsi, [rbp+var_4C0] mov eax, [rbp+var_4F8] mov edx, eax call _memcpy mov rax, [rbp+var_4D0] mov rax, [rax+48h] mov rdi, [rbp+var_4D0] lea rcx, [rbp+var_4C0] xor esi, esi lea rdx, [rbp+var_4D8] call rax mov [rbp+var_4F8], eax cmp eax, 0 jnz short loc_CF7F5 mov rax, [rbp+var_4D0] mov rax, [rax] mov rsi, [rax+268h] mov edi, 7Eh ; '~' call mi_report_error call _my_thread_var mov dword ptr [rax], 7Eh ; '~' mov [rbp+var_4C8], 0 jmp short loc_CF83D loc_CF7F5: jmp short $+2 loc_CF7F7: mov rax, [rbp+var_4D8] cmp rax, [rbp+var_508] jb loc_CF750 mov ecx, [rbp+var_4FC] mov rax, [rbp+var_4E8] mov [rax], ecx mov rcx, [rbp+var_510] mov rax, [rbp+var_4F0] mov [rax], rcx jmp short $+2 loc_CF82D: jmp short $+2 loc_CF82F: mov rax, [rbp+var_518] mov [rbp+var_4C8], rax loc_CF83D: mov rax, [rbp+var_4C8] mov [rbp+var_520], rax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_CF86D mov rax, [rbp+var_520] add rsp, 520h pop rbp retn loc_CF86D: call ___stack_chk_fail
unsigned __int16 * mi_find_last_pos( long long a1, unsigned __int16 *a2, _BYTE *a3, unsigned int *a4, unsigned __int16 **a5) { const char *v5; // rsi unsigned __int16 *v7; // [rsp+8h] [rbp-518h] unsigned __int16 *v8; // [rsp+10h] [rbp-510h] char *v9; // [rsp+18h] [rbp-508h] unsigned long long v10; // [rsp+18h] [rbp-508h] unsigned int v11; // [rsp+24h] [rbp-4FCh] unsigned int v12; // [rsp+28h] [rbp-4F8h] unsigned int v13; // [rsp+28h] [rbp-4F8h] unsigned int v14; // [rsp+28h] [rbp-4F8h] unsigned int v15; // [rsp+2Ch] [rbp-4F4h] unsigned __int16 *v19; // [rsp+48h] [rbp-4D8h] BYREF long long v20; // [rsp+50h] [rbp-4D0h] _BYTE v22[1208]; // [rsp+60h] [rbp-4C0h] BYREF unsigned long long v23; // [rsp+518h] [rbp-8h] v23 = __readfsqword(0x28u); v20 = a1; v19 = a2; v12 = (_byteswap_ushort(*a2) & 0x7FFF) - 2; v19 = a2 + 1; if ( (*(_WORD *)(a1 + 10) & 0x2E) != 0 ) { v10 = (unsigned long long)v19 + v12 - 2; *a3 = 0; v14 = 0; v8 = v19; do { v7 = v8; v8 = v19; v11 = v14; memcpy(a3, v22, v14); v14 = (*(long long ( **)(long long, _QWORD, unsigned __int16 **, _BYTE *))(v20 + 72))(v20, 0LL, &v19, v22); if ( !v14 ) { v5 = *(const char **)(*(_QWORD *)v20 + 616LL); mi_report_error(126, (long long)v5); *(_DWORD *)my_thread_var(126LL, v5) = 126; return 0LL; } } while ( (unsigned long long)v19 < v10 ); *a4 = v11; *a5 = v8; return v7; } else { v15 = v12 / *(unsigned __int16 *)(v20 + 18) - 2; v13 = *(unsigned __int16 *)(v20 + 18); *a4 = v13; v9 = (char *)v19 + v13 * v15; *a5 = (unsigned __int16 *)&v9[v13]; memcpy(a3, v9, v13); return (unsigned __int16 *)v9; } }
_mi_find_last_pos: PUSH RBP MOV RBP,RSP SUB RSP,0x520 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x4d0],RDI MOV qword ptr [RBP + -0x4d8],RSI MOV qword ptr [RBP + -0x4e0],RDX MOV qword ptr [RBP + -0x4e8],RCX MOV qword ptr [RBP + -0x4f0],R8 MOV EAX,dword ptr [RBP + -0x4fc] MOV dword ptr [RBP + -0x4fc],EAX MOV dword ptr [RBP + -0x500],0x2 MOV RAX,qword ptr [RBP + -0x4d8] MOVZX EAX,byte ptr [RAX + 0x1] MOVZX EAX,AX MOV RCX,qword ptr [RBP + -0x4d8] MOVZX ECX,byte ptr [RCX] MOVZX ECX,CX SHL ECX,0x8 OR EAX,ECX MOVZX EAX,AX AND EAX,0x7fff SUB EAX,dword ptr [RBP + -0x500] MOV dword ptr [RBP + -0x4f8],EAX MOV ECX,dword ptr [RBP + -0x500] MOV RAX,qword ptr [RBP + -0x4d8] MOV ECX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x4d8],RAX MOV RAX,qword ptr [RBP + -0x4d0] MOVZX EAX,word ptr [RAX + 0xa] AND EAX,0x2e CMP EAX,0x0 JNZ 0x001cf705 MOV EAX,dword ptr [RBP + -0x4f8] MOV RCX,qword ptr [RBP + -0x4d0] MOVZX ECX,word ptr [RCX + 0x12] XOR EDX,EDX DIV ECX SUB EAX,0x2 MOV dword ptr [RBP + -0x4f4],EAX MOV RAX,qword ptr [RBP + -0x4d0] MOVZX ECX,word ptr [RAX + 0x12] MOV dword ptr [RBP + -0x4f8],ECX MOV RAX,qword ptr [RBP + -0x4e8] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x4d8] MOV ECX,dword ptr [RBP + -0x4f4] IMUL ECX,dword ptr [RBP + -0x4f8] MOV ECX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x508],RAX MOV RCX,qword ptr [RBP + -0x508] MOV EAX,dword ptr [RBP + -0x4f8] ADD RCX,RAX MOV RAX,qword ptr [RBP + -0x4f0] MOV qword ptr [RAX],RCX MOV RDI,qword ptr [RBP + -0x4e0] MOV RSI,qword ptr [RBP + -0x508] MOV EAX,dword ptr [RBP + -0x4f8] MOV EDX,EAX CALL 0x00129090 MOV RAX,qword ptr [RBP + -0x508] MOV qword ptr [RBP + -0x4c8],RAX JMP 0x001cf83d LAB_001cf705: MOV RAX,qword ptr [RBP + -0x4d8] MOV ECX,dword ptr [RBP + -0x4f8] ADD RAX,RCX MOV ECX,dword ptr [RBP + -0x500] MOV EDX,ECX XOR ECX,ECX SUB RCX,RDX ADD RAX,RCX MOV qword ptr [RBP + -0x508],RAX JMP 0x001cf72e LAB_001cf72e: MOV RAX,qword ptr [RBP + -0x4e0] MOV byte ptr [RAX],0x0 MOV dword ptr [RBP + -0x4f8],0x0 MOV RAX,qword ptr [RBP + -0x4d8] MOV qword ptr [RBP + -0x510],RAX LAB_001cf750: MOV RAX,qword ptr [RBP + -0x510] MOV qword ptr [RBP + -0x518],RAX MOV RAX,qword ptr [RBP + -0x4d8] MOV qword ptr [RBP + -0x510],RAX MOV EAX,dword ptr [RBP + -0x4f8] MOV dword ptr [RBP + -0x4fc],EAX MOV RDI,qword ptr [RBP + -0x4e0] LEA RSI,[RBP + -0x4c0] MOV EAX,dword ptr [RBP + -0x4f8] MOV EDX,EAX CALL 0x00129090 MOV RAX,qword ptr [RBP + -0x4d0] MOV RAX,qword ptr [RAX + 0x48] MOV RDI,qword ptr [RBP + -0x4d0] LEA RCX,[RBP + -0x4c0] XOR ESI,ESI LEA RDX,[RBP + -0x4d8] CALL RAX MOV dword ptr [RBP + -0x4f8],EAX CMP EAX,0x0 JNZ 0x001cf7f5 MOV RAX,qword ptr [RBP + -0x4d0] MOV RAX,qword ptr [RAX] MOV RSI,qword ptr [RAX + 0x268] MOV EDI,0x7e CALL 0x001b5e50 CALL 0x001fdd30 MOV dword ptr [RAX],0x7e MOV qword ptr [RBP + -0x4c8],0x0 JMP 0x001cf83d LAB_001cf7f5: JMP 0x001cf7f7 LAB_001cf7f7: MOV RAX,qword ptr [RBP + -0x4d8] CMP RAX,qword ptr [RBP + -0x508] JC 0x001cf750 MOV ECX,dword ptr [RBP + -0x4fc] MOV RAX,qword ptr [RBP + -0x4e8] MOV dword ptr [RAX],ECX MOV RCX,qword ptr [RBP + -0x510] MOV RAX,qword ptr [RBP + -0x4f0] MOV qword ptr [RAX],RCX JMP 0x001cf82d LAB_001cf82d: JMP 0x001cf82f LAB_001cf82f: MOV RAX,qword ptr [RBP + -0x518] MOV qword ptr [RBP + -0x4c8],RAX LAB_001cf83d: MOV RAX,qword ptr [RBP + -0x4c8] MOV qword ptr [RBP + -0x520],RAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x001cf86d MOV RAX,qword ptr [RBP + -0x520] ADD RSP,0x520 POP RBP RET LAB_001cf86d: CALL 0x00129230
byte * _mi_find_last_pos(long *param_1,byte *param_2,int1 *param_3,uint *param_4, int8 *param_5) { ushort uVar1; byte *pbVar2; byte *pbVar3; uint uVar4; byte *pbVar5; int4 *puVar6; uint uVar7; long in_FS_OFFSET; byte *local_518; uint local_500; byte *local_4e0; long *local_4d8; byte *local_4d0; int1 local_4c8 [1208]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); uVar4 = ((uint)param_2[1] | (*param_2 & 0x7f) << 8) - 2; local_518 = param_2 + 2; local_4e0 = local_518; local_4d8 = param_1; if ((*(ushort *)((long)param_1 + 10) & 0x2e) == 0) { uVar1 = *(ushort *)((long)param_1 + 0x12); uVar7 = (uint)*(ushort *)((long)param_1 + 0x12); *param_4 = uVar7; local_518 = local_518 + (uVar4 / uVar1 - 2) * uVar7; *param_5 = local_518 + uVar7; memcpy(param_3,local_518,(ulong)uVar7); local_4d0 = local_518; } else { pbVar5 = local_518 + ((ulong)uVar4 - 2); *param_3 = 0; local_500 = 0; uVar4 = local_500; do { local_500 = uVar4; pbVar3 = local_4e0; pbVar2 = local_518; local_518 = local_4e0; memcpy(param_3,local_4c8,(ulong)local_500); uVar4 = (*(code *)local_4d8[9])(local_4d8,0,&local_4e0,local_4c8); if (uVar4 == 0) { mi_report_error(0x7e,*(int8 *)(*local_4d8 + 0x268)); puVar6 = (int4 *)_my_thread_var(); *puVar6 = 0x7e; local_4d0 = (byte *)0x0; goto LAB_001cf83d; } } while (local_4e0 < pbVar5); *param_4 = local_500; *param_5 = pbVar3; local_4d0 = pbVar2; } LAB_001cf83d: if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return local_4d0; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
65,328
display
SDL3Lite/GL1_Tetrahedron.c
void display() { GLfloat i = 0; glClear(GL_COLOR_BUFFER_BIT); // Draw a white grid "floor" for the tetrahedron to sit on. glColor3f(1.0, 1.0, 1.0); glBegin(GL_LINES); for (i = -2.5; i <= 2.5; i += 0.25) { glVertex3f(i, 0, 2.5); glVertex3f(i, 0, -2.5); glVertex3f(2.5, 0, i); glVertex3f(-2.5, 0, i); } glEnd(); // Draw the tetrahedron. It is a four sided figure, so when defining it // with a triangle strip we have to repeat the last two vertices. glBegin(GL_TRIANGLE_STRIP); glColor3f(1.0f, 1.0f, 1.0f); glVertex3f( 0.0f, 2.0f, 0.0f); glColor3f(1.0f, 0.0f, 0.0f); glVertex3f(-1.0f, 0.0f, 1.0f); glColor3f(0.0f, 1.0f, 0.0f); glVertex3f( 1.0f, 0.0f, 1.0f); glColor3f(0.0f, 0.0f, 1.0f); glVertex3f( 0.0f, 0.0f, -1.4f); glColor3f(1.0f, 1.0f, 1.0f); glVertex3f( 0.0f, 2.0f, 0.0f); glColor3f(1.0f, 0.0f, 0.0f); glVertex3f(-1.0f, 0.0f, 1.0f); glEnd(); glFlush(); }
O0
c
display: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp xorps %xmm0, %xmm0 movss %xmm0, -0x4(%rbp) movl $0x4000, %edi # imm = 0x4000 callq *0x7935(%rip) # 0x1c120 movss 0x82d(%rip), %xmm2 # 0x15020 movaps %xmm2, %xmm0 movaps %xmm2, %xmm1 callq *0x7a91(%rip) # 0x1c290 movl $0x1, %edi callq *0x7a56(%rip) # 0x1c260 movss 0x80a(%rip), %xmm0 # 0x1501c movss %xmm0, -0x4(%rbp) movss -0x4(%rbp), %xmm0 cvtss2sd %xmm0, %xmm1 movsd 0x828(%rip), %xmm0 # 0x15050 ucomisd %xmm1, %xmm0 jb 0x148b9 movq 0x7e2f(%rip), %rax # 0x1c668 movss -0x4(%rbp), %xmm0 xorps %xmm1, %xmm1 movss 0x7e7(%rip), %xmm2 # 0x15030 callq *%rax movq 0x7e16(%rip), %rax # 0x1c668 movss -0x4(%rbp), %xmm0 xorps %xmm1, %xmm1 movss 0x7ba(%rip), %xmm2 # 0x1501c callq *%rax movq 0x7dfd(%rip), %rax # 0x1c668 movss -0x4(%rbp), %xmm2 movss 0x7b8(%rip), %xmm0 # 0x15030 xorps %xmm1, %xmm1 callq *%rax movq 0x7de4(%rip), %rax # 0x1c668 movss -0x4(%rbp), %xmm2 movss 0x78b(%rip), %xmm0 # 0x1501c xorps %xmm1, %xmm1 callq *%rax movss -0x4(%rbp), %xmm0 cvtss2sd %xmm0, %xmm0 movsd 0x7b1(%rip), %xmm1 # 0x15058 addsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -0x4(%rbp) jmp 0x14817 callq *0x7ac1(%rip) # 0x1c380 movl $0x5, %edi callq *0x7996(%rip) # 0x1c260 movss 0x74e(%rip), %xmm2 # 0x15020 movaps %xmm2, %xmm0 movaps %xmm2, %xmm1 callq *0x79b2(%rip) # 0x1c290 xorps %xmm2, %xmm2 movss 0x73f(%rip), %xmm1 # 0x15028 movaps %xmm2, %xmm0 callq *0x7d76(%rip) # 0x1c668 movss 0x726(%rip), %xmm0 # 0x15020 xorps %xmm2, %xmm2 movaps %xmm2, %xmm1 callq *0x798a(%rip) # 0x1c290 movss 0x716(%rip), %xmm0 # 0x15024 xorps %xmm1, %xmm1 movss 0x707(%rip), %xmm2 # 0x15020 callq *0x7d49(%rip) # 0x1c668 xorps %xmm2, %xmm2 movss 0x6f6(%rip), %xmm1 # 0x15020 movaps %xmm2, %xmm0 callq *0x795d(%rip) # 0x1c290 movss 0x6e5(%rip), %xmm2 # 0x15020 xorps %xmm1, %xmm1 movaps %xmm2, %xmm0 callq *0x7d21(%rip) # 0x1c668 xorps %xmm1, %xmm1 movss 0x6ce(%rip), %xmm2 # 0x15020 movaps %xmm1, %xmm0 callq *0x7935(%rip) # 0x1c290 xorps %xmm1, %xmm1 movss 0x6c6(%rip), %xmm2 # 0x1502c movaps %xmm1, %xmm0 callq *0x7cf9(%rip) # 0x1c668 movss 0x6a9(%rip), %xmm2 # 0x15020 movaps %xmm2, %xmm0 movaps %xmm2, %xmm1 callq *0x790d(%rip) # 0x1c290 xorps %xmm2, %xmm2 movss 0x69a(%rip), %xmm1 # 0x15028 movaps %xmm2, %xmm0 callq *0x7cd1(%rip) # 0x1c668 movss 0x681(%rip), %xmm0 # 0x15020 xorps %xmm2, %xmm2 movaps %xmm2, %xmm1 callq *0x78e5(%rip) # 0x1c290 movss 0x671(%rip), %xmm0 # 0x15024 xorps %xmm1, %xmm1 movss 0x662(%rip), %xmm2 # 0x15020 callq *0x7ca4(%rip) # 0x1c668 callq *0x79b6(%rip) # 0x1c380 callq *0x77a0(%rip) # 0x1c170 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
display: push rbp mov rbp, rsp sub rsp, 10h xorps xmm0, xmm0 movss [rbp+var_4], xmm0 mov edi, 4000h call cs:glClear movss xmm2, cs:dword_15020 movaps xmm0, xmm2 movaps xmm1, xmm2 call cs:glColor3f mov edi, 1 call cs:glBegin movss xmm0, cs:dword_1501C movss [rbp+var_4], xmm0 loc_14817: movss xmm0, [rbp+var_4] cvtss2sd xmm1, xmm0 movsd xmm0, cs:qword_15050 ucomisd xmm0, xmm1 jb loc_148B9 mov rax, cs:glVertex3f movss xmm0, [rbp+var_4] xorps xmm1, xmm1 movss xmm2, cs:dword_15030 call rax ; glVertex3f mov rax, cs:glVertex3f movss xmm0, [rbp+var_4] xorps xmm1, xmm1 movss xmm2, cs:dword_1501C call rax ; glVertex3f mov rax, cs:glVertex3f movss xmm2, [rbp+var_4] movss xmm0, cs:dword_15030 xorps xmm1, xmm1 call rax ; glVertex3f mov rax, cs:glVertex3f movss xmm2, [rbp+var_4] movss xmm0, cs:dword_1501C xorps xmm1, xmm1 call rax ; glVertex3f movss xmm0, [rbp+var_4] cvtss2sd xmm0, xmm0 movsd xmm1, cs:qword_15058 addsd xmm0, xmm1 cvtsd2ss xmm0, xmm0 movss [rbp+var_4], xmm0 jmp loc_14817 loc_148B9: call cs:glEnd mov edi, 5 call cs:glBegin movss xmm2, cs:dword_15020 movaps xmm0, xmm2 movaps xmm1, xmm2 call cs:glColor3f xorps xmm2, xmm2 movss xmm1, cs:dword_15028 movaps xmm0, xmm2 call cs:glVertex3f movss xmm0, cs:dword_15020 xorps xmm2, xmm2 movaps xmm1, xmm2 call cs:glColor3f movss xmm0, cs:dword_15024 xorps xmm1, xmm1 movss xmm2, cs:dword_15020 call cs:glVertex3f xorps xmm2, xmm2 movss xmm1, cs:dword_15020 movaps xmm0, xmm2 call cs:glColor3f movss xmm2, cs:dword_15020 xorps xmm1, xmm1 movaps xmm0, xmm2 call cs:glVertex3f xorps xmm1, xmm1 movss xmm2, cs:dword_15020 movaps xmm0, xmm1 call cs:glColor3f xorps xmm1, xmm1 movss xmm2, cs:dword_1502C movaps xmm0, xmm1 call cs:glVertex3f movss xmm2, cs:dword_15020 movaps xmm0, xmm2 movaps xmm1, xmm2 call cs:glColor3f xorps xmm2, xmm2 movss xmm1, cs:dword_15028 movaps xmm0, xmm2 call cs:glVertex3f movss xmm0, cs:dword_15020 xorps xmm2, xmm2 movaps xmm1, xmm2 call cs:glColor3f movss xmm0, cs:dword_15024 xorps xmm1, xmm1 movss xmm2, cs:dword_15020 call cs:glVertex3f call cs:glEnd call cs:glFlush add rsp, 10h pop rbp retn
long long display() { float v0; // xmm0_4 float i; // [rsp+Ch] [rbp-4h] glClear(0x4000LL); glColor3f(1.0, 1.0); glBegin(1LL); for ( i = -2.5; i <= 2.5; i = v0 ) { glVertex3f(COERCE_DOUBLE((unsigned long long)LODWORD(i)), 0.0); glVertex3f(COERCE_DOUBLE((unsigned long long)LODWORD(i)), 0.0); glVertex3f(COERCE_DOUBLE(1075838976LL), 0.0); glVertex3f(COERCE_DOUBLE(3223322624LL), 0.0); v0 = i + 0.25; } ((void (*)(void))glEnd)(); glBegin(5LL); glColor3f(1.0, 1.0); glVertex3f(0.0, 2.0); glColor3f(1.0, 0.0); glVertex3f(COERCE_DOUBLE(3212836864LL), 0.0); glColor3f(0.0, 1.0); glVertex3f(COERCE_DOUBLE(1065353216LL), 0.0); glColor3f(0.0, 0.0); glVertex3f(0.0, 0.0); glColor3f(1.0, 1.0); glVertex3f(0.0, 2.0); glColor3f(1.0, 0.0); glVertex3f(COERCE_DOUBLE(3212836864LL), 0.0); glEnd(-1.0, 0.0, 1.0); return glFlush(); }
display: PUSH RBP MOV RBP,RSP SUB RSP,0x10 XORPS XMM0,XMM0 MOVSS dword ptr [RBP + -0x4],XMM0 MOV EDI,0x4000 CALL qword ptr [0x0011c120] MOVSS XMM2,dword ptr [0x00115020] MOVAPS XMM0,XMM2 MOVAPS XMM1,XMM2 CALL qword ptr [0x0011c290] MOV EDI,0x1 CALL qword ptr [0x0011c260] MOVSS XMM0,dword ptr [0x0011501c] MOVSS dword ptr [RBP + -0x4],XMM0 LAB_00114817: MOVSS XMM0,dword ptr [RBP + -0x4] CVTSS2SD XMM1,XMM0 MOVSD XMM0,qword ptr [0x00115050] UCOMISD XMM0,XMM1 JC 0x001148b9 MOV RAX,qword ptr [0x0011c668] MOVSS XMM0,dword ptr [RBP + -0x4] XORPS XMM1,XMM1 MOVSS XMM2,dword ptr [0x00115030] CALL RAX MOV RAX,qword ptr [0x0011c668] MOVSS XMM0,dword ptr [RBP + -0x4] XORPS XMM1,XMM1 MOVSS XMM2,dword ptr [0x0011501c] CALL RAX MOV RAX,qword ptr [0x0011c668] MOVSS XMM2,dword ptr [RBP + -0x4] MOVSS XMM0,dword ptr [0x00115030] XORPS XMM1,XMM1 CALL RAX MOV RAX,qword ptr [0x0011c668] MOVSS XMM2,dword ptr [RBP + -0x4] MOVSS XMM0,dword ptr [0x0011501c] XORPS XMM1,XMM1 CALL RAX MOVSS XMM0,dword ptr [RBP + -0x4] CVTSS2SD XMM0,XMM0 MOVSD XMM1,qword ptr [0x00115058] ADDSD XMM0,XMM1 CVTSD2SS XMM0,XMM0 MOVSS dword ptr [RBP + -0x4],XMM0 JMP 0x00114817 LAB_001148b9: CALL qword ptr [0x0011c380] MOV EDI,0x5 CALL qword ptr [0x0011c260] MOVSS XMM2,dword ptr [0x00115020] MOVAPS XMM0,XMM2 MOVAPS XMM1,XMM2 CALL qword ptr [0x0011c290] XORPS XMM2,XMM2 MOVSS XMM1,dword ptr [0x00115028] MOVAPS XMM0,XMM2 CALL qword ptr [0x0011c668] MOVSS XMM0,dword ptr [0x00115020] XORPS XMM2,XMM2 MOVAPS XMM1,XMM2 CALL qword ptr [0x0011c290] MOVSS XMM0,dword ptr [0x00115024] XORPS XMM1,XMM1 MOVSS XMM2,dword ptr [0x00115020] CALL qword ptr [0x0011c668] XORPS XMM2,XMM2 MOVSS XMM1,dword ptr [0x00115020] MOVAPS XMM0,XMM2 CALL qword ptr [0x0011c290] MOVSS XMM2,dword ptr [0x00115020] XORPS XMM1,XMM1 MOVAPS XMM0,XMM2 CALL qword ptr [0x0011c668] XORPS XMM1,XMM1 MOVSS XMM2,dword ptr [0x00115020] MOVAPS XMM0,XMM1 CALL qword ptr [0x0011c290] XORPS XMM1,XMM1 MOVSS XMM2,dword ptr [0x0011502c] MOVAPS XMM0,XMM1 CALL qword ptr [0x0011c668] MOVSS XMM2,dword ptr [0x00115020] MOVAPS XMM0,XMM2 MOVAPS XMM1,XMM2 CALL qword ptr [0x0011c290] XORPS XMM2,XMM2 MOVSS XMM1,dword ptr [0x00115028] MOVAPS XMM0,XMM2 CALL qword ptr [0x0011c668] MOVSS XMM0,dword ptr [0x00115020] XORPS XMM2,XMM2 MOVAPS XMM1,XMM2 CALL qword ptr [0x0011c290] MOVSS XMM0,dword ptr [0x00115024] XORPS XMM1,XMM1 MOVSS XMM2,dword ptr [0x00115020] CALL qword ptr [0x0011c668] CALL qword ptr [0x0011c380] CALL qword ptr [0x0011c170] ADD RSP,0x10 POP RBP RET
void display(void) { int4 local_c; (*glClear)(0x4000); (*glColor3f)(DAT_00115020,DAT_00115020); (*glBegin)(1); local_c = DAT_0011501c; while( true ) { if (DAT_00115050 < (double)local_c) break; (*glVertex3f)(local_c,0,DAT_00115030); (*glVertex3f)(local_c,0,DAT_0011501c); (*glVertex3f)(DAT_00115030,0,local_c); (*glVertex3f)(DAT_0011501c,0,local_c); local_c = (float)((double)local_c + DAT_00115058); } (*glEnd)(); (*glBegin)(5); (*glColor3f)(DAT_00115020,DAT_00115020); (*glVertex3f)(0,DAT_00115028); (*glColor3f)(DAT_00115020,0); (*glVertex3f)(DAT_00115024,0,DAT_00115020); (*glColor3f)(0,DAT_00115020); (*glVertex3f)(DAT_00115020,0); (*glColor3f)(0,0,DAT_00115020); (*glVertex3f)(0,0,DAT_0011502c); (*glColor3f)(DAT_00115020,DAT_00115020); (*glVertex3f)(0,DAT_00115028); (*glColor3f)(DAT_00115020,0); (*glVertex3f)(DAT_00115024,0,DAT_00115020); (*glEnd)(); (*glFlush)(); return; }
65,329
ma_find_half_pos
eloqsql/storage/maria/ma_write.c
uchar *_ma_find_half_pos(MARIA_KEY *key, MARIA_PAGE *ma_page, uchar **after_key) { uint keys, length, key_ref_length, page_flag, nod_flag; uchar *page, *end, *lastpos; MARIA_HA *info= ma_page->info; MARIA_SHARE *share= info->s; MARIA_KEYDEF *keyinfo= key->keyinfo; DBUG_ENTER("_ma_find_half_pos"); nod_flag= ma_page->node; key_ref_length= share->keypage_header + nod_flag; page_flag= ma_page->flag; length= ma_page->size - key_ref_length; page= ma_page->buff+ key_ref_length; /* Point to first key */ if (!(keyinfo->flag & (HA_PACK_KEY | HA_SPACE_PACK_USED | HA_VAR_LENGTH_KEY | HA_BINARY_PACK_KEY)) && !(page_flag & KEYPAGE_FLAG_HAS_TRANSID)) { key_ref_length= keyinfo->keylength+nod_flag; key->data_length= keyinfo->keylength - info->s->rec_reflength; key->ref_length= info->s->rec_reflength; key->flag= 0; keys=length/(key_ref_length*2); end=page+keys*key_ref_length; *after_key=end+key_ref_length; memcpy(key->data, end, key_ref_length); DBUG_RETURN(end); } end=page+length/2-key_ref_length; /* This is aprox. half */ key->data[0]= 0; /* Safety */ do { lastpos=page; if (!(length= (*keyinfo->get_key)(key, page_flag, nod_flag, &page))) DBUG_RETURN(0); } while (page < end); *after_key= page; DBUG_PRINT("exit",("returns: %p page: %p half: %p", lastpos, page, end)); DBUG_RETURN(lastpos); }
O0
c
ma_find_half_pos: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x18(%rbp), %rax movq (%rax), %rax movq %rax, -0x58(%rbp) movq -0x58(%rbp), %rax movq (%rax), %rax movq %rax, -0x60(%rbp) movq -0x10(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x68(%rbp) movq -0x18(%rbp), %rax movl 0x28(%rax), %eax movl %eax, -0x34(%rbp) movq -0x60(%rbp), %rax movl 0x744(%rax), %eax addl -0x34(%rbp), %eax movl %eax, -0x2c(%rbp) movq -0x18(%rbp), %rax movl 0x2c(%rax), %eax movl %eax, -0x30(%rbp) movq -0x18(%rbp), %rax movl 0x20(%rax), %eax subl -0x2c(%rbp), %eax movl %eax, -0x28(%rbp) movq -0x18(%rbp), %rax movq 0x10(%rax), %rax movl -0x2c(%rbp), %ecx addq %rcx, %rax movq %rax, -0x40(%rbp) movq -0x68(%rbp), %rax movzwl 0xa2(%rax), %eax andl $0x2e, %eax cmpl $0x0, %eax jne 0x86a34 movl -0x30(%rbp), %eax andl $0x2, %eax cmpl $0x0, %eax jne 0x86a34 movq -0x68(%rbp), %rax movzwl 0xaa(%rax), %eax addl -0x34(%rbp), %eax movl %eax, -0x2c(%rbp) movq -0x68(%rbp), %rax movzwl 0xaa(%rax), %ecx movq -0x58(%rbp), %rax movq (%rax), %rax subl 0x740(%rax), %ecx movq -0x10(%rbp), %rax movl %ecx, 0x10(%rax) movq -0x58(%rbp), %rax movq (%rax), %rax movl 0x740(%rax), %ecx movq -0x10(%rbp), %rax movl %ecx, 0x14(%rax) movq -0x10(%rbp), %rax movl $0x0, 0x18(%rax) movl -0x28(%rbp), %eax movl -0x2c(%rbp), %ecx shll %ecx xorl %edx, %edx divl %ecx movl %eax, -0x24(%rbp) movq -0x40(%rbp), %rax movl -0x24(%rbp), %ecx imull -0x2c(%rbp), %ecx movl %ecx, %ecx addq %rcx, %rax movq %rax, -0x48(%rbp) movq -0x48(%rbp), %rcx movl -0x2c(%rbp), %eax addq %rax, %rcx movq -0x20(%rbp), %rax movq %rcx, (%rax) movq -0x10(%rbp), %rax movq (%rax), %rdi movq -0x48(%rbp), %rsi movl -0x2c(%rbp), %eax movl %eax, %edx callq 0x2a0b0 movq -0x48(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x86ab7 movq -0x40(%rbp), %rax movl -0x28(%rbp), %ecx shrl %ecx movl %ecx, %ecx addq %rcx, %rax movl -0x2c(%rbp), %ecx movl %ecx, %edx xorl %ecx, %ecx subq %rdx, %rcx addq %rcx, %rax movq %rax, -0x48(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movb $0x0, (%rax) movq -0x40(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x68(%rbp), %rax movq 0xe0(%rax), %rax movq -0x10(%rbp), %rdi movl -0x30(%rbp), %esi movl -0x34(%rbp), %edx leaq -0x40(%rbp), %rcx callq *%rax movl %eax, -0x28(%rbp) cmpl $0x0, %eax jne 0x86a94 jmp 0x86a8a movq $0x0, -0x8(%rbp) jmp 0x86ab7 jmp 0x86a96 movq -0x40(%rbp), %rax cmpq -0x48(%rbp), %rax jb 0x86a5d movq -0x40(%rbp), %rcx movq -0x20(%rbp), %rax movq %rcx, (%rax) jmp 0x86aad jmp 0x86aaf movq -0x50(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x70, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_ma_find_half_pos: push rbp mov rbp, rsp sub rsp, 70h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rax, [rbp+var_18] mov rax, [rax] mov [rbp+var_58], rax mov rax, [rbp+var_58] mov rax, [rax] mov [rbp+var_60], rax mov rax, [rbp+var_10] mov rax, [rax+8] mov [rbp+var_68], rax mov rax, [rbp+var_18] mov eax, [rax+28h] mov [rbp+var_34], eax mov rax, [rbp+var_60] mov eax, [rax+744h] add eax, [rbp+var_34] mov [rbp+var_2C], eax mov rax, [rbp+var_18] mov eax, [rax+2Ch] mov [rbp+var_30], eax mov rax, [rbp+var_18] mov eax, [rax+20h] sub eax, [rbp+var_2C] mov [rbp+var_28], eax mov rax, [rbp+var_18] mov rax, [rax+10h] mov ecx, [rbp+var_2C] add rax, rcx mov [rbp+var_40], rax mov rax, [rbp+var_68] movzx eax, word ptr [rax+0A2h] and eax, 2Eh cmp eax, 0 jnz loc_86A34 mov eax, [rbp+var_30] and eax, 2 cmp eax, 0 jnz loc_86A34 mov rax, [rbp+var_68] movzx eax, word ptr [rax+0AAh] add eax, [rbp+var_34] mov [rbp+var_2C], eax mov rax, [rbp+var_68] movzx ecx, word ptr [rax+0AAh] mov rax, [rbp+var_58] mov rax, [rax] sub ecx, [rax+740h] mov rax, [rbp+var_10] mov [rax+10h], ecx mov rax, [rbp+var_58] mov rax, [rax] mov ecx, [rax+740h] mov rax, [rbp+var_10] mov [rax+14h], ecx mov rax, [rbp+var_10] mov dword ptr [rax+18h], 0 mov eax, [rbp+var_28] mov ecx, [rbp+var_2C] shl ecx, 1 xor edx, edx div ecx mov [rbp+var_24], eax mov rax, [rbp+var_40] mov ecx, [rbp+var_24] imul ecx, [rbp+var_2C] mov ecx, ecx add rax, rcx mov [rbp+var_48], rax mov rcx, [rbp+var_48] mov eax, [rbp+var_2C] add rcx, rax mov rax, [rbp+var_20] mov [rax], rcx mov rax, [rbp+var_10] mov rdi, [rax] mov rsi, [rbp+var_48] mov eax, [rbp+var_2C] mov edx, eax call _memcpy mov rax, [rbp+var_48] mov [rbp+var_8], rax jmp loc_86AB7 loc_86A34: mov rax, [rbp+var_40] mov ecx, [rbp+var_28] shr ecx, 1 mov ecx, ecx add rax, rcx mov ecx, [rbp+var_2C] mov edx, ecx xor ecx, ecx sub rcx, rdx add rax, rcx mov [rbp+var_48], rax mov rax, [rbp+var_10] mov rax, [rax] mov byte ptr [rax], 0 loc_86A5D: mov rax, [rbp+var_40] mov [rbp+var_50], rax mov rax, [rbp+var_68] mov rax, [rax+0E0h] mov rdi, [rbp+var_10] mov esi, [rbp+var_30] mov edx, [rbp+var_34] lea rcx, [rbp+var_40] call rax mov [rbp+var_28], eax cmp eax, 0 jnz short loc_86A94 jmp short $+2 loc_86A8A: mov [rbp+var_8], 0 jmp short loc_86AB7 loc_86A94: jmp short $+2 loc_86A96: mov rax, [rbp+var_40] cmp rax, [rbp+var_48] jb short loc_86A5D mov rcx, [rbp+var_40] mov rax, [rbp+var_20] mov [rax], rcx jmp short $+2 loc_86AAD: jmp short $+2 loc_86AAF: mov rax, [rbp+var_50] mov [rbp+var_8], rax loc_86AB7: mov rax, [rbp+var_8] add rsp, 70h pop rbp retn
unsigned long long ma_find_half_pos(long long a1, long long **a2, unsigned long long *a3) { long long v4; // [rsp+8h] [rbp-68h] long long v5; // [rsp+10h] [rbp-60h] long long *v6; // [rsp+18h] [rbp-58h] unsigned long long v7; // [rsp+20h] [rbp-50h] unsigned long long v8; // [rsp+28h] [rbp-48h] unsigned long long v9; // [rsp+28h] [rbp-48h] unsigned long long v10; // [rsp+30h] [rbp-40h] BYREF unsigned int v11; // [rsp+3Ch] [rbp-34h] unsigned int v12; // [rsp+40h] [rbp-30h] unsigned int v13; // [rsp+44h] [rbp-2Ch] unsigned int v14; // [rsp+48h] [rbp-28h] unsigned int v15; // [rsp+4Ch] [rbp-24h] unsigned long long *v16; // [rsp+50h] [rbp-20h] long long **v17; // [rsp+58h] [rbp-18h] long long v18; // [rsp+60h] [rbp-10h] v18 = a1; v17 = a2; v16 = a3; v6 = *a2; v5 = **a2; v4 = *(_QWORD *)(a1 + 8); v11 = *((_DWORD *)a2 + 10); v13 = v11 + *(_DWORD *)(v5 + 1860); v12 = *((_DWORD *)a2 + 11); v14 = *((_DWORD *)a2 + 8) - v13; v10 = (unsigned long long)a2[2] + v13; if ( (*(_WORD *)(v4 + 162) & 0x2E) != 0 || (v12 & 2) != 0 ) { v9 = (v14 >> 1) + v10 - v13; **(_BYTE **)v18 = 0; do { v7 = v10; v14 = (*(long long ( **)(long long, _QWORD, _QWORD, unsigned long long *))(v4 + 224))(v18, v12, v11, &v10); if ( !v14 ) return 0LL; } while ( v10 < v9 ); *v16 = v10; return v7; } else { v13 = v11 + *(unsigned __int16 *)(v4 + 170); *(_DWORD *)(v18 + 16) = *(unsigned __int16 *)(v4 + 170) - *(_DWORD *)(*v6 + 1856); *(_DWORD *)(v18 + 20) = *(_DWORD *)(*v6 + 1856); *(_DWORD *)(v18 + 24) = 0; v15 = v14 / (2 * v13); v8 = v13 * v15 + v10; *v16 = v13 + v8; memcpy(*(_QWORD *)v18, v8, v13); return v8; } }
_ma_find_half_pos: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x58] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x60],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x68],RAX MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX + 0x28] MOV dword ptr [RBP + -0x34],EAX MOV RAX,qword ptr [RBP + -0x60] MOV EAX,dword ptr [RAX + 0x744] ADD EAX,dword ptr [RBP + -0x34] MOV dword ptr [RBP + -0x2c],EAX MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX + 0x2c] MOV dword ptr [RBP + -0x30],EAX MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX + 0x20] SUB EAX,dword ptr [RBP + -0x2c] MOV dword ptr [RBP + -0x28],EAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x10] MOV ECX,dword ptr [RBP + -0x2c] ADD RAX,RCX MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x68] MOVZX EAX,word ptr [RAX + 0xa2] AND EAX,0x2e CMP EAX,0x0 JNZ 0x00186a34 MOV EAX,dword ptr [RBP + -0x30] AND EAX,0x2 CMP EAX,0x0 JNZ 0x00186a34 MOV RAX,qword ptr [RBP + -0x68] MOVZX EAX,word ptr [RAX + 0xaa] ADD EAX,dword ptr [RBP + -0x34] MOV dword ptr [RBP + -0x2c],EAX MOV RAX,qword ptr [RBP + -0x68] MOVZX ECX,word ptr [RAX + 0xaa] MOV RAX,qword ptr [RBP + -0x58] MOV RAX,qword ptr [RAX] SUB ECX,dword ptr [RAX + 0x740] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x10],ECX MOV RAX,qword ptr [RBP + -0x58] MOV RAX,qword ptr [RAX] MOV ECX,dword ptr [RAX + 0x740] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x14],ECX MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x18],0x0 MOV EAX,dword ptr [RBP + -0x28] MOV ECX,dword ptr [RBP + -0x2c] SHL ECX,0x1 XOR EDX,EDX DIV ECX MOV dword ptr [RBP + -0x24],EAX MOV RAX,qword ptr [RBP + -0x40] MOV ECX,dword ptr [RBP + -0x24] IMUL ECX,dword ptr [RBP + -0x2c] MOV ECX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x48],RAX MOV RCX,qword ptr [RBP + -0x48] MOV EAX,dword ptr [RBP + -0x2c] ADD RCX,RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RBP + -0x48] MOV EAX,dword ptr [RBP + -0x2c] MOV EDX,EAX CALL 0x0012a0b0 MOV RAX,qword ptr [RBP + -0x48] MOV qword ptr [RBP + -0x8],RAX JMP 0x00186ab7 LAB_00186a34: MOV RAX,qword ptr [RBP + -0x40] MOV ECX,dword ptr [RBP + -0x28] SHR ECX,0x1 MOV ECX,ECX ADD RAX,RCX MOV ECX,dword ptr [RBP + -0x2c] MOV EDX,ECX XOR ECX,ECX SUB RCX,RDX ADD RAX,RCX MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV byte ptr [RAX],0x0 LAB_00186a5d: MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x68] MOV RAX,qword ptr [RAX + 0xe0] MOV RDI,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RBP + -0x30] MOV EDX,dword ptr [RBP + -0x34] LEA RCX,[RBP + -0x40] CALL RAX MOV dword ptr [RBP + -0x28],EAX CMP EAX,0x0 JNZ 0x00186a94 JMP 0x00186a8a LAB_00186a8a: MOV qword ptr [RBP + -0x8],0x0 JMP 0x00186ab7 LAB_00186a94: JMP 0x00186a96 LAB_00186a96: MOV RAX,qword ptr [RBP + -0x40] CMP RAX,qword ptr [RBP + -0x48] JC 0x00186a5d MOV RCX,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX],RCX JMP 0x00186aad LAB_00186aad: JMP 0x00186aaf LAB_00186aaf: MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RBP + -0x8],RAX LAB_00186ab7: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x70 POP RBP RET
void * _ma_find_half_pos(int8 *param_1,int8 *param_2,long *param_3) { long *plVar1; long lVar2; void *pvVar3; void *pvVar4; void *local_48; int local_3c; uint local_38; uint local_34; uint local_30; uint local_2c; long *local_28; int8 *local_20; int8 *local_18; void *local_10; plVar1 = (long *)*param_2; lVar2 = param_1[1]; local_3c = *(int *)(param_2 + 5); local_34 = *(int *)(*plVar1 + 0x744) + local_3c; local_38 = *(uint *)((long)param_2 + 0x2c); local_30 = *(int *)(param_2 + 4) - local_34; local_48 = (void *)(param_2[2] + (ulong)local_34); local_28 = param_3; local_20 = param_2; local_18 = param_1; if (((*(ushort *)(lVar2 + 0xa2) & 0x2e) == 0) && ((local_38 & 2) == 0)) { local_34 = (uint)*(ushort *)(lVar2 + 0xaa) + local_3c; *(uint *)(param_1 + 2) = (uint)*(ushort *)(lVar2 + 0xaa) - *(int *)(*plVar1 + 0x740); *(int4 *)((long)param_1 + 0x14) = *(int4 *)(*plVar1 + 0x740); *(int4 *)(param_1 + 3) = 0; local_2c = local_30 / (local_34 * 2); pvVar4 = (void *)((long)local_48 + (ulong)(local_2c * local_34)); *param_3 = (long)pvVar4 + (ulong)local_34; memcpy((void *)*param_1,pvVar4,(ulong)local_34); local_10 = pvVar4; } else { pvVar4 = (void *)((long)local_48 + ((ulong)(local_30 >> 1) - (ulong)local_34)); *(int1 *)*param_1 = 0; do { pvVar3 = local_48; local_30 = (**(code **)(lVar2 + 0xe0))(local_18,local_38,local_3c,&local_48); if (local_30 == 0) { return (void *)0x0; } } while (local_48 < pvVar4); *local_28 = (long)local_48; local_10 = pvVar3; } return local_10; }
65,330
process_tool_call(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&)
llama.cpp/common/chat.cpp
static common_chat_tool_call process_tool_call(const json & tool_call) { const auto & arguments = tool_call.at("arguments"); return { /* .name = */ tool_call.at("name"), /* .arguments = */ arguments.is_string() ? arguments.get<std::string>() : arguments.dump(), /* .id = */ tool_call.contains("id") ? tool_call.at("id") : "", }; }
O3
cpp
process_tool_call(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&): pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq %rsi, %r14 movq %rdi, %rbx leaq 0x82f21(%rip), %rsi # 0xd2e42 movq %r14, %rdi callq 0x54cdc movq %rax, %r15 leaq 0x85e80(%rip), %rsi # 0xd5db3 movq %r14, %rdi callq 0x54334 movq %rbx, %rdi movq %rax, %rsi callq 0x6c468 leaq 0x20(%rbx), %rdi cmpb $0x3, (%r15) jne 0x4ff5a movq %r15, %rsi callq 0x6c468 jmp 0x4ff72 movq %r15, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF movl $0x20, %ecx xorl %r8d, %r8d xorl %r9d, %r9d callq 0x53f1a leaq 0x81b8d(%rip), %rsi # 0xd1b06 movq %r14, %rdi callq 0x54ea0 testb %al, %al je 0x4ffa1 leaq 0x81b7a(%rip), %rsi # 0xd1b06 movq %r14, %rdi callq 0x54f02 movq %rsp, %rdi movq %rax, %rsi callq 0x56230 jmp 0x4ffb0 leaq 0x825e8(%rip), %rsi # 0xd2590 movq %rsp, %rdi callq 0x88c1e leaq 0x40(%rbx), %rdi movq %rsp, %rsi callq 0x6c468 movq %rsp, %rbx movq %rbx, %rdi xorl %esi, %esi callq 0x60b38 movq %rbx, %rdi callq 0x60bd8 addq $0x10, %rsp popq %rbx popq %r14 popq %r15 retq movq %rax, %r14 movq %rsp, %r15 movq %r15, %rdi xorl %esi, %esi callq 0x60b38 movq %r15, %rdi callq 0x60bd8 jmp 0x4fffd movq %rax, %r14 jmp 0x50015 movq %rax, %r14 movq 0x20(%rbx), %rdi leaq 0x30(%rbx), %rax cmpq %rax, %rdi je 0x50015 movq (%rax), %rsi incq %rsi callq 0x1d160 movq (%rbx), %rdi addq $0x10, %rbx cmpq %rbx, %rdi je 0x5002c movq (%rbx), %rsi incq %rsi callq 0x1d160 movq %r14, %rdi callq 0x1d8e0
_ZL17process_tool_callRKN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEE: push r15 push r14 push rbx sub rsp, 10h mov r14, rsi mov rbx, rdi lea rsi, aKeywordArgumen+9; "arguments" mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA10_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_ mov r15, rax lea rsi, aNamespacedSetO+2Fh; "name" mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA5_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_ mov rdi, rbx mov rsi, rax call _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 lea rdi, [rbx+20h] cmp byte ptr [r15], 3 jnz short loc_4FF5A mov rsi, r15 call _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 jmp short loc_4FF72 loc_4FF5A: mov rsi, r15 mov edx, 0FFFFFFFFh mov ecx, 20h ; ' ' xor r8d, r8d xor r9d, r9d call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dumpEicbNS0_6detail15error_handler_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::dump(int,char,bool,nlohmann::json_abi_v3_11_3::detail::error_handler_t) loc_4FF72: lea rsi, aToolCallId+0Ah; "id" mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA3_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_ test al, al jz short loc_4FFA1 lea rsi, aToolCallId+0Ah; "id" mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA3_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_ mov rdi, rsp mov rsi, rax call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) jmp short loc_4FFB0 loc_4FFA1: lea rsi, aExampleToolCal+1Dh; "" mov rdi, rsp call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA1_KcA1_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_ loc_4FFB0: lea rdi, [rbx+40h] mov rsi, rsp call _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 mov rbx, rsp mov rdi, rbx xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() add rsp, 10h pop rbx pop r14 pop r15 retn mov r14, rax mov r15, rsp mov rdi, r15 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() jmp short loc_4FFFD mov r14, rax jmp short loc_50015 mov r14, rax loc_4FFFD: mov rdi, [rbx+20h]; void * lea rax, [rbx+30h] cmp rdi, rax jz short loc_50015 mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_50015: mov rdi, [rbx]; void * add rbx, 10h cmp rdi, rbx jz short loc_5002C mov rsi, [rbx] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5002C: mov rdi, r14 call __Unwind_Resume
long long process_tool_call(long long a1, long long a2) { _BYTE *v3; // r15 long long v4; // rax long long v5; // rdi long long v6; // rax _BYTE v8[40]; // [rsp+0h] [rbp-28h] BYREF v3 = (_BYTE *)ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA10_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_( a2, "arguments"); v4 = ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA5_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_( a2, "name"); 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( a1, v4); v5 = a1 + 32; if ( *v3 == 3 ) 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( v5, v3); else nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::dump( v5, (_DWORD)v3, -1, 32, 0, 0); if ( (unsigned __int8)ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA3_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_( a2, "id") ) { v6 = ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA3_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_( a2, "id"); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( v8, v6); } else { ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA1_KcA1_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_( v8, ""); } 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( a1 + 64, 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>::assert_invariant( v8, 0LL); return nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v8); }
process_tool_call: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x10 MOV R14,RSI MOV RBX,RDI LEA RSI,[0x1d2e42] MOV RDI,R14 CALL 0x00154cdc MOV R15,RAX LEA RSI,[0x1d5db3] MOV RDI,R14 CALL 0x00154334 MOV RDI,RBX MOV RSI,RAX CALL 0x0016c468 LEA RDI,[RBX + 0x20] CMP byte ptr [R15],0x3 JNZ 0x0014ff5a LAB_0014ff50: MOV RSI,R15 CALL 0x0016c468 JMP 0x0014ff72 LAB_0014ff5a: MOV RSI,R15 MOV EDX,0xffffffff MOV ECX,0x20 XOR R8D,R8D XOR R9D,R9D CALL 0x00153f1a LAB_0014ff72: LEA RSI,[0x1d1b06] MOV RDI,R14 CALL 0x00154ea0 TEST AL,AL JZ 0x0014ffa1 LEA RSI,[0x1d1b06] MOV RDI,R14 CALL 0x00154f02 MOV RDI,RSP MOV RSI,RAX CALL 0x00156230 JMP 0x0014ffb0 LAB_0014ffa1: LEA RSI,[0x1d2590] MOV RDI,RSP CALL 0x00188c1e LAB_0014ffb0: LEA RDI,[RBX + 0x40] LAB_0014ffb4: MOV RSI,RSP CALL 0x0016c468 LAB_0014ffbc: MOV RBX,RSP MOV RDI,RBX XOR ESI,ESI CALL 0x00160b38 MOV RDI,RBX CALL 0x00160bd8 ADD RSP,0x10 POP RBX POP R14 POP R15 RET
/* process_tool_call(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, 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 process_tool_call(basic_json *param_1) { char *pcVar1; int8 uVar2; basic_json *pbVar3; char cVar4; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> abStack_28 [16]; pcVar1 = (char *)_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA10_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_ (); uVar2 = _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA5_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_ (); _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 (param_1,uVar2); if (*pcVar1 == '\x03') { /* try { // try from 0014ff50 to 0014ff71 has its CatchHandler @ 0014fff5 */ _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 (param_1 + 0x20,pcVar1); } else { nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::dump(param_1 + 0x20,pcVar1,0xffffffff,0x20,0,0); } /* try { // try from 0014ff72 to 0014ffaf has its CatchHandler @ 0014fffa */ cVar4 = _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA3_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_ (); if (cVar4 == '\0') { _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA1_KcA1_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_ (abStack_28,""); } else { pbVar3 = (basic_json *) _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA3_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_ (); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json(abStack_28,pbVar3); } /* try { // try from 0014ffb4 to 0014ffbb has its CatchHandler @ 0014ffdb */ _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 (param_1 + 0x40,abStack_28); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(abStack_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((data *)abStack_28); return; }
65,331
init_events_statements_history_long(unsigned long)
eloqsql/storage/perfschema/pfs_events_statements.cc
int init_events_statements_history_long(size_t events_statements_history_long_sizing) { events_statements_history_long_size= events_statements_history_long_sizing; events_statements_history_long_full= false; PFS_atomic::store_u32(&events_statements_history_long_index.m_u32, 0); if (events_statements_history_long_size == 0) return 0; events_statements_history_long_array= PFS_MALLOC_ARRAY(& builtin_memory_statements_history_long, events_statements_history_long_size, sizeof(PFS_events_statements), PFS_events_statements, MYF(MY_ZEROFILL)); if (events_statements_history_long_array == NULL) { cleanup_events_statements_history_long(); return 1; } if (pfs_max_digest_length > 0) { /* Size of each digest text array. */ size_t digest_text_size= pfs_max_digest_length * sizeof(unsigned char); h_long_stmts_digest_token_array= PFS_MALLOC_ARRAY(& builtin_memory_statements_history_long_tokens, events_statements_history_long_size, digest_text_size, unsigned char, MYF(MY_ZEROFILL)); if (h_long_stmts_digest_token_array == NULL) { cleanup_events_statements_history_long(); return 1; } } if (pfs_max_sqltext > 0) { /* Size of each sql text array. */ size_t sqltext_size= pfs_max_sqltext * sizeof(char); h_long_stmts_text_array= PFS_MALLOC_ARRAY(& builtin_memory_statements_history_long_sqltext, events_statements_history_long_size, sqltext_size, char, MYF(MY_ZEROFILL)); if (h_long_stmts_text_array == NULL) { cleanup_events_statements_history_long(); return 1; } } for (size_t index= 0; index < events_statements_history_long_size; index++) { events_statements_history_long_array[index].m_digest_storage.reset(h_long_stmts_digest_token_array + index * pfs_max_digest_length, pfs_max_digest_length); events_statements_history_long_array[index].m_sqltext= h_long_stmts_text_array + index * pfs_max_sqltext; } return 0; }
O0
cpp
init_events_statements_history_long(unsigned long): pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax movq %rax, 0x3b9709(%rip) # 0x410a80 movb $0x0, 0x3b9802(%rip) # 0x410b80 leaq 0x3b983b(%rip), %rdi # 0x410bc0 xorl %esi, %esi callq 0x32120 cmpq $0x0, 0x3b96ec(%rip) # 0x410a80 jne 0x573a2 movl $0x0, -0x4(%rbp) jmp 0x57543 movq 0x3b96d7(%rip), %rsi # 0x410a80 leaq 0x3b5650(%rip), %rdi # 0x40ca00 movl $0x590, %edx # imm = 0x590 movl $0x20, %ecx callq 0x39270 movq %rax, 0x3b983a(%rip) # 0x410c00 cmpq $0x0, 0x3b9832(%rip) # 0x410c00 jne 0x573e1 callq 0x57550 movl $0x1, -0x4(%rbp) jmp 0x57543 leaq 0x3b66d0(%rip), %rax # 0x40dab8 cmpq $0x0, (%rax) jbe 0x57440 leaq 0x3b66c3(%rip), %rax # 0x40dab8 movq (%rax), %rax shlq $0x0, %rax movq %rax, -0x18(%rbp) movq 0x3b9679(%rip), %rsi # 0x410a80 movq -0x18(%rbp), %rdx leaq 0x3b572e(%rip), %rdi # 0x40cb40 movl $0x20, %ecx callq 0x39270 movq %rax, 0x3b97e5(%rip) # 0x410c08 cmpq $0x0, 0x3b97dd(%rip) # 0x410c08 jne 0x5743e callq 0x57550 movl $0x1, -0x4(%rbp) jmp 0x57543 jmp 0x57440 leaq 0x3b6679(%rip), %rax # 0x40dac0 cmpq $0x0, (%rax) jbe 0x5749f leaq 0x3b666c(%rip), %rax # 0x40dac0 movq (%rax), %rax shlq $0x0, %rax movq %rax, -0x20(%rbp) movq 0x3b961a(%rip), %rsi # 0x410a80 movq -0x20(%rbp), %rdx leaq 0x3b580f(%rip), %rdi # 0x40cc80 movl $0x20, %ecx callq 0x39270 movq %rax, 0x3b978e(%rip) # 0x410c10 cmpq $0x0, 0x3b9786(%rip) # 0x410c10 jne 0x5749d callq 0x57550 movl $0x1, -0x4(%rbp) jmp 0x57543 jmp 0x5749f movq $0x0, -0x28(%rbp) movq -0x28(%rbp), %rax cmpq 0x3b95ce(%rip), %rax # 0x410a80 jae 0x5753c movq 0x3b9741(%rip), %rdi # 0x410c00 imulq $0x590, -0x28(%rbp), %rax # imm = 0x590 addq %rax, %rdi addq $0x560, %rdi # imm = 0x560 movq 0x3b9730(%rip), %rsi # 0x410c08 movq -0x28(%rbp), %rax leaq 0x3b65d5(%rip), %rcx # 0x40dab8 imulq (%rcx), %rax addq %rax, %rsi leaq 0x3b65c7(%rip), %rax # 0x40dab8 movq (%rax), %rdx callq 0x37700 movq 0x3b9710(%rip), %rcx # 0x410c10 movq -0x28(%rbp), %rax leaq 0x3b65b5(%rip), %rdx # 0x40dac0 imulq (%rdx), %rax addq %rax, %rcx movq 0x3b96e7(%rip), %rax # 0x410c00 imulq $0x590, -0x28(%rbp), %rdx # imm = 0x590 addq %rdx, %rax movq %rcx, 0x550(%rax) movq -0x28(%rbp), %rax addq $0x1, %rax movq %rax, -0x28(%rbp) jmp 0x574a7 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x30, %rsp popq %rbp retq nopl (%rax)
_Z35init_events_statements_history_longm: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov rax, [rbp+var_10] mov cs:events_statements_history_long_size, rax mov cs:events_statements_history_long_full, 0 lea rdi, events_statements_history_long_index; this xor esi, esi; unsigned int * call _ZN10PFS_atomic9store_u32EPjj; PFS_atomic::store_u32(uint *,uint) cmp cs:events_statements_history_long_size, 0 jnz short loc_573A2 mov [rbp+var_4], 0 jmp loc_57543 loc_573A2: mov rsi, cs:events_statements_history_long_size; unsigned __int64 lea rdi, builtin_memory_statements_history_long; PFS_builtin_memory_class * mov edx, 590h; unsigned __int64 mov ecx, 20h ; ' '; unsigned __int64 call _Z16pfs_malloc_arrayP24PFS_builtin_memory_classmmm; pfs_malloc_array(PFS_builtin_memory_class *,ulong,ulong,ulong) mov cs:events_statements_history_long_array, rax cmp cs:events_statements_history_long_array, 0 jnz short loc_573E1 call _Z38cleanup_events_statements_history_longv; cleanup_events_statements_history_long(void) mov [rbp+var_4], 1 jmp loc_57543 loc_573E1: lea rax, pfs_max_digest_length cmp qword ptr [rax], 0 jbe short loc_57440 lea rax, pfs_max_digest_length mov rax, [rax] shl rax, 0 mov [rbp+var_18], rax mov rsi, cs:events_statements_history_long_size; unsigned __int64 mov rdx, [rbp+var_18]; unsigned __int64 lea rdi, builtin_memory_statements_history_long_tokens; PFS_builtin_memory_class * mov ecx, 20h ; ' '; unsigned __int64 call _Z16pfs_malloc_arrayP24PFS_builtin_memory_classmmm; pfs_malloc_array(PFS_builtin_memory_class *,ulong,ulong,ulong) mov cs:_ZL31h_long_stmts_digest_token_array, rax; h_long_stmts_digest_token_array cmp cs:_ZL31h_long_stmts_digest_token_array, 0; h_long_stmts_digest_token_array jnz short loc_5743E call _Z38cleanup_events_statements_history_longv; cleanup_events_statements_history_long(void) mov [rbp+var_4], 1 jmp loc_57543 loc_5743E: jmp short $+2 loc_57440: lea rax, pfs_max_sqltext cmp qword ptr [rax], 0 jbe short loc_5749F lea rax, pfs_max_sqltext mov rax, [rax] shl rax, 0 mov [rbp+var_20], rax mov rsi, cs:events_statements_history_long_size; unsigned __int64 mov rdx, [rbp+var_20]; unsigned __int64 lea rdi, builtin_memory_statements_history_long_sqltext; PFS_builtin_memory_class * mov ecx, 20h ; ' '; unsigned __int64 call _Z16pfs_malloc_arrayP24PFS_builtin_memory_classmmm; pfs_malloc_array(PFS_builtin_memory_class *,ulong,ulong,ulong) mov cs:_ZL23h_long_stmts_text_array, rax; h_long_stmts_text_array cmp cs:_ZL23h_long_stmts_text_array, 0; h_long_stmts_text_array jnz short loc_5749D call _Z38cleanup_events_statements_history_longv; cleanup_events_statements_history_long(void) mov [rbp+var_4], 1 jmp loc_57543 loc_5749D: jmp short $+2 loc_5749F: mov [rbp+var_28], 0 loc_574A7: mov rax, [rbp+var_28] cmp rax, cs:events_statements_history_long_size jnb loc_5753C mov rdi, cs:events_statements_history_long_array imul rax, [rbp+var_28], 590h add rdi, rax add rdi, 560h; this mov rsi, cs:_ZL31h_long_stmts_digest_token_array; h_long_stmts_digest_token_array mov rax, [rbp+var_28] lea rcx, pfs_max_digest_length imul rax, [rcx] add rsi, rax; unsigned __int8 * lea rax, pfs_max_digest_length mov rdx, [rax]; unsigned __int64 call _ZN18sql_digest_storage5resetEPhm; sql_digest_storage::reset(uchar *,ulong) mov rcx, cs:_ZL23h_long_stmts_text_array; h_long_stmts_text_array mov rax, [rbp+var_28] lea rdx, pfs_max_sqltext imul rax, [rdx] add rcx, rax mov rax, cs:events_statements_history_long_array imul rdx, [rbp+var_28], 590h add rax, rdx mov [rax+550h], rcx mov rax, [rbp+var_28] add rax, 1 mov [rbp+var_28], rax jmp loc_574A7 loc_5753C: mov [rbp+var_4], 0 loc_57543: mov eax, [rbp+var_4] add rsp, 30h pop rbp retn
long long init_events_statements_history_long(unsigned long long a1) { unsigned long long i; // [rsp+8h] [rbp-28h] events_statements_history_long_size = a1; events_statements_history_long_full = 0; PFS_atomic::store_u32((PFS_atomic *)&events_statements_history_long_index, 0LL); if ( events_statements_history_long_size ) { events_statements_history_long_array = (void *)pfs_malloc_array( (PFS_builtin_memory_class *)&builtin_memory_statements_history_long, events_statements_history_long_size, 0x590uLL, 32); if ( events_statements_history_long_array && (!pfs_max_digest_length || (h_long_stmts_digest_token_array = (void *)pfs_malloc_array( (PFS_builtin_memory_class *)&builtin_memory_statements_history_long_tokens, events_statements_history_long_size, pfs_max_digest_length, 32)) != 0LL) && (!pfs_max_sqltext || (h_long_stmts_text_array = (void *)pfs_malloc_array( (PFS_builtin_memory_class *)&builtin_memory_statements_history_long_sqltext, events_statements_history_long_size, pfs_max_sqltext, 32)) != 0LL) ) { for ( i = 0LL; i < events_statements_history_long_size; ++i ) { sql_digest_storage::reset( (sql_digest_storage *)((char *)events_statements_history_long_array + 1424 * i + 1376), (unsigned __int8 *)h_long_stmts_digest_token_array + pfs_max_digest_length * i, pfs_max_digest_length); *((_QWORD *)events_statements_history_long_array + 178 * i + 170) = (char *)h_long_stmts_text_array + pfs_max_sqltext * i; } return 0; } else { cleanup_events_statements_history_long(); return 1; } } else { return 0; } }
init_events_statements_history_long: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [0x00510a80],RAX MOV byte ptr [0x00510b80],0x0 LEA RDI,[0x510bc0] XOR ESI,ESI CALL 0x00132120 CMP qword ptr [0x00510a80],0x0 JNZ 0x001573a2 MOV dword ptr [RBP + -0x4],0x0 JMP 0x00157543 LAB_001573a2: MOV RSI,qword ptr [0x00510a80] LEA RDI,[0x50ca00] MOV EDX,0x590 MOV ECX,0x20 CALL 0x00139270 MOV qword ptr [0x00510c00],RAX CMP qword ptr [0x00510c00],0x0 JNZ 0x001573e1 CALL 0x00157550 MOV dword ptr [RBP + -0x4],0x1 JMP 0x00157543 LAB_001573e1: LEA RAX,[0x50dab8] CMP qword ptr [RAX],0x0 JBE 0x00157440 LEA RAX,[0x50dab8] MOV RAX,qword ptr [RAX] SHL RAX,0x0 MOV qword ptr [RBP + -0x18],RAX MOV RSI,qword ptr [0x00510a80] MOV RDX,qword ptr [RBP + -0x18] LEA RDI,[0x50cb40] MOV ECX,0x20 CALL 0x00139270 MOV qword ptr [0x00510c08],RAX CMP qword ptr [0x00510c08],0x0 JNZ 0x0015743e CALL 0x00157550 MOV dword ptr [RBP + -0x4],0x1 JMP 0x00157543 LAB_0015743e: JMP 0x00157440 LAB_00157440: LEA RAX,[0x50dac0] CMP qword ptr [RAX],0x0 JBE 0x0015749f LEA RAX,[0x50dac0] MOV RAX,qword ptr [RAX] SHL RAX,0x0 MOV qword ptr [RBP + -0x20],RAX MOV RSI,qword ptr [0x00510a80] MOV RDX,qword ptr [RBP + -0x20] LEA RDI,[0x50cc80] MOV ECX,0x20 CALL 0x00139270 MOV qword ptr [0x00510c10],RAX CMP qword ptr [0x00510c10],0x0 JNZ 0x0015749d CALL 0x00157550 MOV dword ptr [RBP + -0x4],0x1 JMP 0x00157543 LAB_0015749d: JMP 0x0015749f LAB_0015749f: MOV qword ptr [RBP + -0x28],0x0 LAB_001574a7: MOV RAX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [0x00510a80] JNC 0x0015753c MOV RDI,qword ptr [0x00510c00] IMUL RAX,qword ptr [RBP + -0x28],0x590 ADD RDI,RAX ADD RDI,0x560 MOV RSI,qword ptr [0x00510c08] MOV RAX,qword ptr [RBP + -0x28] LEA RCX,[0x50dab8] IMUL RAX,qword ptr [RCX] ADD RSI,RAX LEA RAX,[0x50dab8] MOV RDX,qword ptr [RAX] CALL 0x00137700 MOV RCX,qword ptr [0x00510c10] MOV RAX,qword ptr [RBP + -0x28] LEA RDX,[0x50dac0] IMUL RAX,qword ptr [RDX] ADD RCX,RAX MOV RAX,qword ptr [0x00510c00] IMUL RDX,qword ptr [RBP + -0x28],0x590 ADD RAX,RDX MOV qword ptr [RAX + 0x550],RCX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x1 MOV qword ptr [RBP + -0x28],RAX JMP 0x001574a7 LAB_0015753c: MOV dword ptr [RBP + -0x4],0x0 LAB_00157543: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x30 POP RBP RET
/* init_events_statements_history_long(unsigned long) */ int4 init_events_statements_history_long(ulong param_1) { ulong local_30; int4 local_c; events_statements_history_long_full = 0; events_statements_history_long_size = param_1; PFS_atomic::store_u32((uint *)events_statements_history_long_index,0); if (events_statements_history_long_size == 0) { local_c = 0; } else { events_statements_history_long_array = pfs_malloc_array((PFS_builtin_memory_class *)builtin_memory_statements_history_long, events_statements_history_long_size,0x590,0x20); if (events_statements_history_long_array == 0) { cleanup_events_statements_history_long(); local_c = 1; } else if ((pfs_max_digest_length == 0) || (h_long_stmts_digest_token_array = pfs_malloc_array((PFS_builtin_memory_class *) builtin_memory_statements_history_long_tokens, events_statements_history_long_size,pfs_max_digest_length,0x20), h_long_stmts_digest_token_array != 0)) { if ((pfs_max_sqltext == 0) || (h_long_stmts_text_array = pfs_malloc_array((PFS_builtin_memory_class *) builtin_memory_statements_history_long_sqltext, events_statements_history_long_size,pfs_max_sqltext,0x20), h_long_stmts_text_array != 0)) { for (local_30 = 0; local_30 < events_statements_history_long_size; local_30 = local_30 + 1) { sql_digest_storage::reset ((sql_digest_storage *) (events_statements_history_long_array + local_30 * 0x590 + 0x560), (uchar *)(h_long_stmts_digest_token_array + local_30 * pfs_max_digest_length), pfs_max_digest_length); *(ulong *)(events_statements_history_long_array + local_30 * 0x590 + 0x550) = h_long_stmts_text_array + local_30 * pfs_max_sqltext; } local_c = 0; } else { cleanup_events_statements_history_long(); local_c = 1; } } else { cleanup_events_statements_history_long(); local_c = 1; } } return local_c; }
65,332
js_bound_function_finalizer
bluesky950520[P]quickjs/quickjs.c
static void js_bound_function_finalizer(JSRuntime *rt, JSValue val) { JSObject *p = JS_VALUE_GET_OBJ(val); JSBoundFunction *bf = p->u.bound_function; int i; JS_FreeValueRT(rt, bf->func_obj); JS_FreeValueRT(rt, bf->this_val); for(i = 0; i < bf->argc; i++) { JS_FreeValueRT(rt, bf->argv[i]); } js_free_rt(rt, bf); }
O0
c
js_bound_function_finalizer: subq $0x38, %rsp movq %rsi, 0x28(%rsp) movq %rdx, 0x30(%rsp) movq %rdi, 0x20(%rsp) movq 0x28(%rsp), %rax movq %rax, 0x18(%rsp) movq 0x18(%rsp), %rax movq 0x30(%rax), %rax movq %rax, 0x10(%rsp) movq 0x20(%rsp), %rdi movq 0x10(%rsp), %rax movq (%rax), %rsi movq 0x8(%rax), %rdx callq 0x2a000 movq 0x20(%rsp), %rdi movq 0x10(%rsp), %rax movq 0x10(%rax), %rsi movq 0x18(%rax), %rdx callq 0x2a000 movl $0x0, 0xc(%rsp) movl 0xc(%rsp), %eax movq 0x10(%rsp), %rcx cmpl 0x20(%rcx), %eax jge 0x61611 movq 0x20(%rsp), %rdi movq 0x10(%rsp), %rax addq $0x28, %rax movslq 0xc(%rsp), %rcx shlq $0x4, %rcx addq %rcx, %rax movq (%rax), %rsi movq 0x8(%rax), %rdx callq 0x2a000 movl 0xc(%rsp), %eax addl $0x1, %eax movl %eax, 0xc(%rsp) jmp 0x615d0 movq 0x20(%rsp), %rdi movq 0x10(%rsp), %rsi callq 0x27c50 addq $0x38, %rsp retq nopw %cs:(%rax,%rax)
js_bound_function_finalizer: sub rsp, 38h mov [rsp+38h+var_10], rsi mov [rsp+38h+var_8], rdx mov [rsp+38h+var_18], rdi mov rax, [rsp+38h+var_10] mov [rsp+38h+var_20], rax mov rax, [rsp+38h+var_20] mov rax, [rax+30h] mov [rsp+38h+var_28], rax mov rdi, [rsp+38h+var_18] mov rax, [rsp+38h+var_28] mov rsi, [rax] mov rdx, [rax+8] call JS_FreeValueRT mov rdi, [rsp+38h+var_18] mov rax, [rsp+38h+var_28] mov rsi, [rax+10h] mov rdx, [rax+18h] call JS_FreeValueRT mov [rsp+38h+var_2C], 0 loc_615D0: mov eax, [rsp+38h+var_2C] mov rcx, [rsp+38h+var_28] cmp eax, [rcx+20h] jge short loc_61611 mov rdi, [rsp+38h+var_18] mov rax, [rsp+38h+var_28] add rax, 28h ; '(' movsxd rcx, [rsp+38h+var_2C] shl rcx, 4 add rax, rcx mov rsi, [rax] mov rdx, [rax+8] call JS_FreeValueRT mov eax, [rsp+38h+var_2C] add eax, 1 mov [rsp+38h+var_2C], eax jmp short loc_615D0 loc_61611: mov rdi, [rsp+38h+var_18] mov rsi, [rsp+38h+var_28] call js_free_rt add rsp, 38h retn
void js_bound_function_finalizer(long long a1, long long a2) { int i; // [rsp+Ch] [rbp-2Ch] long long v3; // [rsp+10h] [rbp-28h] v3 = *(_QWORD *)(a2 + 48); JS_FreeValueRT(a1, *(_DWORD **)v3, *(_QWORD *)(v3 + 8)); JS_FreeValueRT(a1, *(_DWORD **)(v3 + 16), *(_QWORD *)(v3 + 24)); for ( i = 0; i < *(_DWORD *)(v3 + 32); ++i ) JS_FreeValueRT(a1, *(_DWORD **)(16LL * i + v3 + 40), *(_QWORD *)(16LL * i + v3 + 40 + 8)); js_free_rt(a1, v3); }
js_bound_function_finalizer: SUB RSP,0x38 MOV qword ptr [RSP + 0x28],RSI MOV qword ptr [RSP + 0x30],RDX MOV qword ptr [RSP + 0x20],RDI MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x18],RAX MOV RAX,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RAX + 0x30] MOV qword ptr [RSP + 0x10],RAX MOV RDI,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RAX] MOV RDX,qword ptr [RAX + 0x8] CALL 0x0012a000 MOV RDI,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RAX + 0x10] MOV RDX,qword ptr [RAX + 0x18] CALL 0x0012a000 MOV dword ptr [RSP + 0xc],0x0 LAB_001615d0: MOV EAX,dword ptr [RSP + 0xc] MOV RCX,qword ptr [RSP + 0x10] CMP EAX,dword ptr [RCX + 0x20] JGE 0x00161611 MOV RDI,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x10] ADD RAX,0x28 MOVSXD RCX,dword ptr [RSP + 0xc] SHL RCX,0x4 ADD RAX,RCX MOV RSI,qword ptr [RAX] MOV RDX,qword ptr [RAX + 0x8] CALL 0x0012a000 MOV EAX,dword ptr [RSP + 0xc] ADD EAX,0x1 MOV dword ptr [RSP + 0xc],EAX JMP 0x001615d0 LAB_00161611: MOV RDI,qword ptr [RSP + 0x20] MOV RSI,qword ptr [RSP + 0x10] CALL 0x00127c50 ADD RSP,0x38 RET
void js_bound_function_finalizer(int8 param_1,long param_2) { int8 *puVar1; int local_2c; puVar1 = *(int8 **)(param_2 + 0x30); JS_FreeValueRT(param_1,*puVar1,puVar1[1]); JS_FreeValueRT(param_1,puVar1[2],puVar1[3]); for (local_2c = 0; local_2c < *(int *)(puVar1 + 4); local_2c = local_2c + 1) { JS_FreeValueRT(param_1,puVar1[(long)local_2c * 2 + 5],(puVar1 + (long)local_2c * 2 + 5)[1]); } js_free_rt(param_1,puVar1); return; }
65,333
js_bound_function_finalizer
bluesky950520[P]quickjs/quickjs.c
static void js_bound_function_finalizer(JSRuntime *rt, JSValue val) { JSObject *p = JS_VALUE_GET_OBJ(val); JSBoundFunction *bf = p->u.bound_function; int i; JS_FreeValueRT(rt, bf->func_obj); JS_FreeValueRT(rt, bf->this_val); for(i = 0; i < bf->argc; i++) { JS_FreeValueRT(rt, bf->argv[i]); } js_free_rt(rt, bf); }
O2
c
js_bound_function_finalizer: pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rdi, %r14 movq 0x30(%rsi), %rbx movq (%rbx), %rsi movq 0x8(%rbx), %rdx callq 0x1bbe1 movq 0x10(%rbx), %rsi movq 0x18(%rbx), %rdx movq %r14, %rdi callq 0x1bbe1 leaq 0x30(%rbx), %r15 xorl %r12d, %r12d movslq 0x20(%rbx), %rax cmpq %rax, %r12 jge 0x3762f movq -0x8(%r15), %rsi movq (%r15), %rdx movq %r14, %rdi callq 0x1bbe1 incq %r12 addq $0x10, %r15 jmp 0x3760e movq %r14, %rdi movq %rbx, %rsi addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 jmp 0x1ac7b
js_bound_function_finalizer: push r15 push r14 push r12 push rbx push rax mov r14, rdi mov rbx, [rsi+30h] mov rsi, [rbx] mov rdx, [rbx+8] call JS_FreeValueRT mov rsi, [rbx+10h] mov rdx, [rbx+18h] mov rdi, r14 call JS_FreeValueRT lea r15, [rbx+30h] xor r12d, r12d loc_3760E: movsxd rax, dword ptr [rbx+20h] cmp r12, rax jge short loc_3762F mov rsi, [r15-8] mov rdx, [r15] mov rdi, r14 call JS_FreeValueRT inc r12 add r15, 10h jmp short loc_3760E loc_3762F: mov rdi, r14 mov rsi, rbx add rsp, 8 pop rbx pop r12 pop r14 pop r15 jmp js_free_rt
long long js_bound_function_finalizer(long long a1, long long a2) { long long v2; // rbx long long *v3; // r15 long long i; // r12 v2 = *(_QWORD *)(a2 + 48); JS_FreeValueRT(a1, *(unsigned int **)v2, *(_QWORD *)(v2 + 8)); JS_FreeValueRT(a1, *(unsigned int **)(v2 + 16), *(_QWORD *)(v2 + 24)); v3 = (long long *)(v2 + 48); for ( i = 0LL; i < *(int *)(v2 + 32); ++i ) { JS_FreeValueRT(a1, (unsigned int *)*(v3 - 1), *v3); v3 += 2; } return js_free_rt(a1, v2); }
js_bound_function_finalizer: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV R14,RDI MOV RBX,qword ptr [RSI + 0x30] MOV RSI,qword ptr [RBX] MOV RDX,qword ptr [RBX + 0x8] CALL 0x0011bbe1 MOV RSI,qword ptr [RBX + 0x10] MOV RDX,qword ptr [RBX + 0x18] MOV RDI,R14 CALL 0x0011bbe1 LEA R15,[RBX + 0x30] XOR R12D,R12D LAB_0013760e: MOVSXD RAX,dword ptr [RBX + 0x20] CMP R12,RAX JGE 0x0013762f MOV RSI,qword ptr [R15 + -0x8] MOV RDX,qword ptr [R15] MOV RDI,R14 CALL 0x0011bbe1 INC R12 ADD R15,0x10 JMP 0x0013760e LAB_0013762f: MOV RDI,R14 MOV RSI,RBX ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 JMP 0x0011ac7b
void js_bound_function_finalizer(int8 param_1,long param_2) { int8 *puVar1; long lVar2; int8 *puVar3; puVar1 = *(int8 **)(param_2 + 0x30); JS_FreeValueRT(param_1,*puVar1,puVar1[1]); JS_FreeValueRT(param_1,puVar1[2],puVar1[3]); puVar3 = puVar1 + 6; for (lVar2 = 0; lVar2 < *(int *)(puVar1 + 4); lVar2 = lVar2 + 1) { JS_FreeValueRT(param_1,puVar3[-1],*puVar3); puVar3 = puVar3 + 2; } js_free_rt(param_1,puVar1); return; }
65,334
Catch::splitStringRef(Catch::StringRef, char)
AlayaLite/build_O3/_deps/libcoro-src/test/catch_amalgamated.cpp
std::vector<StringRef> splitStringRef( StringRef str, char delimiter ) { std::vector<StringRef> subStrings; std::size_t start = 0; for(std::size_t pos = 0; pos < str.size(); ++pos ) { if( str[pos] == delimiter ) { if( pos - start > 1 ) subStrings.push_back( str.substr( start, pos-start ) ); start = pos+1; } } if( start < str.size() ) subStrings.push_back( str.substr( start, str.size()-start ) ); return subStrings; }
O3
cpp
Catch::splitStringRef(Catch::StringRef, char): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx xorps %xmm0, %xmm0 movups %xmm0, (%rdi) movq $0x0, 0x10(%rdi) testq %rdx, %rdx je 0x5c229 movl %ecx, %ebp leaq 0x823dc(%rip), %r12 # 0xde588 xorl %r13d, %r13d xorl %eax, %eax cmpb %bpl, (%r15,%r13) jne 0x5c20a movq %r13, %rcx subq %rax, %rcx cmpq $0x2, %rcx jb 0x5c21c movq %r14, %rdx subq %rax, %rdx cmpq %rcx, %rdx cmovaeq %rcx, %rdx cmpq %rax, %r14 movl $0x0, %ecx cmovbeq %rcx, %rdx leaq (%r15,%rax), %rcx cmpq %rax, %r14 cmovbeq %r12, %rcx movq %rcx, 0x8(%rsp) movq %rdx, 0x10(%rsp) movq 0x8(%rbx), %rsi cmpq 0x10(%rbx), %rsi je 0x5c20f movups 0x8(%rsp), %xmm0 movups %xmm0, (%rsi) addq $0x10, 0x8(%rbx) jmp 0x5c21c incq %r13 jmp 0x5c222 movq %rbx, %rdi leaq 0x8(%rsp), %rdx callq 0x88e1c incq %r13 movq %r13, %rax cmpq %r14, %r13 jne 0x5c1b1 jmp 0x5c22b xorl %eax, %eax subq %rax, %r14 jbe 0x5c263 addq %rax, %r15 movq %r15, 0x8(%rsp) movq %r14, 0x10(%rsp) movq 0x8(%rbx), %rsi cmpq 0x10(%rbx), %rsi je 0x5c256 movups 0x8(%rsp), %xmm0 movups %xmm0, (%rsi) addq $0x10, 0x8(%rbx) jmp 0x5c263 leaq 0x8(%rsp), %rdx movq %rbx, %rdi callq 0x88e1c movq %rbx, %rax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x5c277 movq %rax, %r14 movq (%rbx), %rdi testq %rdi, %rdi je 0x5c28e movq 0x10(%rbx), %rsi subq %rdi, %rsi callq 0x17150 movq %r14, %rdi callq 0x17740
_ZN5Catch14splitStringRefENS_9StringRefEc: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r14, rdx mov r15, rsi mov rbx, rdi xorps xmm0, xmm0 movups xmmword ptr [rdi], xmm0 mov qword ptr [rdi+10h], 0 test rdx, rdx jz loc_5C229 mov ebp, ecx lea r12, aWithExpansion_0+11h; "" xor r13d, r13d xor eax, eax loc_5C1B1: cmp [r15+r13], bpl jnz short loc_5C20A mov rcx, r13 sub rcx, rax cmp rcx, 2 jb short loc_5C21C mov rdx, r14 sub rdx, rax cmp rdx, rcx cmovnb rdx, rcx cmp r14, rax mov ecx, 0 cmovbe rdx, rcx lea rcx, [r15+rax] cmp r14, rax cmovbe rcx, r12 mov qword ptr [rsp+48h+var_40], rcx mov qword ptr [rsp+48h+var_40+8], rdx mov rsi, [rbx+8] cmp rsi, [rbx+10h] jz short loc_5C20F movups xmm0, [rsp+48h+var_40] movups xmmword ptr [rsi], xmm0 add qword ptr [rbx+8], 10h jmp short loc_5C21C loc_5C20A: inc r13 jmp short loc_5C222 loc_5C20F: mov rdi, rbx lea rdx, [rsp+48h+var_40] call _ZNSt6vectorIN5Catch9StringRefESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_; std::vector<Catch::StringRef>::_M_realloc_insert<Catch::StringRef>(__gnu_cxx::__normal_iterator<Catch::StringRef*,std::vector<Catch::StringRef>>,Catch::StringRef &&) loc_5C21C: inc r13 mov rax, r13 loc_5C222: cmp r13, r14 jnz short loc_5C1B1 jmp short loc_5C22B loc_5C229: xor eax, eax loc_5C22B: sub r14, rax jbe short loc_5C263 add r15, rax mov qword ptr [rsp+48h+var_40], r15 mov qword ptr [rsp+48h+var_40+8], r14 mov rsi, [rbx+8] cmp rsi, [rbx+10h] jz short loc_5C256 movups xmm0, [rsp+48h+var_40] movups xmmword ptr [rsi], xmm0 add qword ptr [rbx+8], 10h jmp short loc_5C263 loc_5C256: lea rdx, [rsp+48h+var_40] mov rdi, rbx call _ZNSt6vectorIN5Catch9StringRefESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_; std::vector<Catch::StringRef>::_M_realloc_insert<Catch::StringRef>(__gnu_cxx::__normal_iterator<Catch::StringRef*,std::vector<Catch::StringRef>>,Catch::StringRef &&) loc_5C263: mov rax, rbx add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short $+2 loc_5C277: mov r14, rax mov rdi, [rbx]; void * test rdi, rdi jz short loc_5C28E mov rsi, [rbx+10h] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5C28E: mov rdi, r14 call __Unwind_Resume
long long Catch::splitStringRef(long long a1, long long a2, unsigned long long a3, char a4) { long long v7; // r13 unsigned long long v8; // rax unsigned long long v9; // rdx char *v10; // rcx _OWORD *v11; // rsi bool v12; // cc unsigned long long v13; // r14 _OWORD *v14; // rsi _OWORD v16[4]; // [rsp+8h] [rbp-40h] BYREF *(_OWORD *)a1 = 0LL; *(_QWORD *)(a1 + 16) = 0LL; if ( a3 ) { v7 = 0LL; v8 = 0LL; do { if ( *(_BYTE *)(a2 + v7) == a4 ) { if ( v7 - v8 >= 2 ) { v9 = a3 - v8; if ( a3 - v8 >= v7 - v8 ) v9 = v7 - v8; if ( a3 <= v8 ) v9 = 0LL; v10 = (char *)(a2 + v8); if ( a3 <= v8 ) v10 = ""; *(_QWORD *)&v16[0] = v10; *((_QWORD *)&v16[0] + 1) = v9; v11 = *(_OWORD **)(a1 + 8); if ( v11 == *(_OWORD **)(a1 + 16) ) { std::vector<Catch::StringRef>::_M_realloc_insert<Catch::StringRef>(a1, v11, v16); } else { *v11 = v16[0]; *(_QWORD *)(a1 + 8) += 16LL; } } v8 = ++v7; } else { ++v7; } } while ( v7 != a3 ); } else { v8 = 0LL; } v12 = a3 <= v8; v13 = a3 - v8; if ( !v12 ) { *(_QWORD *)&v16[0] = v8 + a2; *((_QWORD *)&v16[0] + 1) = v13; v14 = *(_OWORD **)(a1 + 8); if ( v14 == *(_OWORD **)(a1 + 16) ) { std::vector<Catch::StringRef>::_M_realloc_insert<Catch::StringRef>(a1, v14, v16); } else { *v14 = v16[0]; *(_QWORD *)(a1 + 8) += 16LL; } } return a1; }
splitStringRef: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R14,RDX MOV R15,RSI MOV RBX,RDI XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI],XMM0 MOV qword ptr [RDI + 0x10],0x0 TEST RDX,RDX JZ 0x0015c229 MOV EBP,ECX LEA R12,[0x1de588] XOR R13D,R13D XOR EAX,EAX LAB_0015c1b1: CMP byte ptr [R15 + R13*0x1],BPL JNZ 0x0015c20a MOV RCX,R13 SUB RCX,RAX CMP RCX,0x2 JC 0x0015c21c MOV RDX,R14 SUB RDX,RAX CMP RDX,RCX CMOVNC RDX,RCX CMP R14,RAX MOV ECX,0x0 CMOVBE RDX,RCX LEA RCX,[R15 + RAX*0x1] CMP R14,RAX CMOVBE RCX,R12 MOV qword ptr [RSP + 0x8],RCX MOV qword ptr [RSP + 0x10],RDX MOV RSI,qword ptr [RBX + 0x8] CMP RSI,qword ptr [RBX + 0x10] JZ 0x0015c20f MOVUPS XMM0,xmmword ptr [RSP + 0x8] MOVUPS xmmword ptr [RSI],XMM0 ADD qword ptr [RBX + 0x8],0x10 JMP 0x0015c21c LAB_0015c20a: INC R13 JMP 0x0015c222 LAB_0015c20f: MOV RDI,RBX LEA RDX,[RSP + 0x8] CALL 0x00188e1c LAB_0015c21c: INC R13 MOV RAX,R13 LAB_0015c222: CMP R13,R14 JNZ 0x0015c1b1 JMP 0x0015c22b LAB_0015c229: XOR EAX,EAX LAB_0015c22b: SUB R14,RAX JBE 0x0015c263 ADD R15,RAX MOV qword ptr [RSP + 0x8],R15 MOV qword ptr [RSP + 0x10],R14 MOV RSI,qword ptr [RBX + 0x8] CMP RSI,qword ptr [RBX + 0x10] JZ 0x0015c256 MOVUPS XMM0,xmmword ptr [RSP + 0x8] MOVUPS xmmword ptr [RSI],XMM0 ADD qword ptr [RBX + 0x8],0x10 JMP 0x0015c263 LAB_0015c256: LEA RDX,[RSP + 0x8] MOV RDI,RBX CALL 0x00188e1c LAB_0015c263: MOV RAX,RBX ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* Catch::splitStringRef(Catch::StringRef, char) */ vector<Catch::StringRef,std::allocator<Catch::StringRef>> * Catch::splitStringRef (vector<Catch::StringRef,std::allocator<Catch::StringRef>> *param_1,long param_2, ulong param_3,char param_4) { long *plVar1; ulong uVar2; ulong uVar3; ulong uVar4; char *local_40; ulong uStack_38; *(int8 *)param_1 = 0; *(int8 *)(param_1 + 8) = 0; *(int8 *)(param_1 + 0x10) = 0; if (param_3 == 0) { uVar4 = 0; } else { uVar3 = 0; uVar4 = 0; do { if (*(char *)(param_2 + uVar3) == param_4) { uVar2 = uVar3 - uVar4; if (1 < uVar2) { uStack_38 = param_3 - uVar4; if (uVar2 <= param_3 - uVar4) { uStack_38 = uVar2; } if (param_3 <= uVar4) { uStack_38 = 0; } local_40 = (char *)(param_2 + uVar4); if (param_3 <= uVar4) { local_40 = ""; } plVar1 = *(long **)(param_1 + 8); if (plVar1 == *(long **)(param_1 + 0x10)) { /* try { // try from 0015c20f to 0015c21b has its CatchHandler @ 0015c277 */ std::vector<Catch::StringRef,std::allocator<Catch::StringRef>>:: _M_realloc_insert<Catch::StringRef>(param_1,plVar1,&local_40); } else { *plVar1 = (long)local_40; plVar1[1] = uStack_38; *(long *)(param_1 + 8) = *(long *)(param_1 + 8) + 0x10; } } uVar4 = uVar3 + 1; } uVar3 = uVar3 + 1; } while (uVar3 != param_3); } uStack_38 = param_3 - uVar4; if (uVar4 <= param_3 && uStack_38 != 0) { local_40 = (char *)(param_2 + uVar4); plVar1 = *(long **)(param_1 + 8); if (plVar1 == *(long **)(param_1 + 0x10)) { /* try { // try from 0015c256 to 0015c262 has its CatchHandler @ 0015c275 */ std::vector<Catch::StringRef,std::allocator<Catch::StringRef>>:: _M_realloc_insert<Catch::StringRef>(param_1,plVar1,&local_40); } else { *plVar1 = (long)local_40; plVar1[1] = uStack_38; *(long *)(param_1 + 8) = *(long *)(param_1 + 8) + 0x10; } } return param_1; }
65,335
stbi__bmp_set_mask_defaults(stbi__bmp_data*, int)
llama.cpp/examples/llava/../../common/stb_image.h
static int stbi__bmp_set_mask_defaults(stbi__bmp_data *info, int compress) { // BI_BITFIELDS specifies masks explicitly, don't override if (compress == 3) return 1; if (compress == 0) { if (info->bpp == 16) { info->mr = 31u << 10; info->mg = 31u << 5; info->mb = 31u << 0; } else if (info->bpp == 32) { info->mr = 0xffu << 16; info->mg = 0xffu << 8; info->mb = 0xffu << 0; info->ma = 0xffu << 24; info->all_a = 0; // if all_a is 0 at end, then we loaded alpha channel but it was all 0 } else { // otherwise, use defaults, which is all-0 info->mr = info->mg = info->mb = info->ma = 0; } return 1; } return 0; // error }
O3
c
stbi__bmp_set_mask_defaults(stbi__bmp_data*, int): testl %esi, %esi je 0x3192e retq movl (%rdi), %eax cmpl $0x20, %eax je 0x31950 cmpl $0x10, %eax jne 0x31963 movabsq $0x3e000007c00, %rax # imm = 0x3E000007C00 movq %rax, 0xc(%rdi) movl $0x1f, 0x14(%rdi) retq movaps 0x1cce9(%rip), %xmm0 # 0x4e640 movups %xmm0, 0xc(%rdi) movl $0x0, 0x1c(%rdi) retq addq $0xc, %rdi xorps %xmm0, %xmm0 movups %xmm0, (%rdi) retq
_ZL27stbi__bmp_set_mask_defaultsP14stbi__bmp_datai: test esi, esi jz short loc_3192E retn loc_3192E: mov eax, [rdi] cmp eax, 20h ; ' ' jz short loc_31950 cmp eax, 10h jnz short loc_31963 mov rax, 3E000007C00h mov [rdi+0Ch], rax mov dword ptr [rdi+14h], 1Fh retn loc_31950: movaps xmm0, cs:xmmword_4E640 movups xmmword ptr [rdi+0Ch], xmm0 mov dword ptr [rdi+1Ch], 0 retn loc_31963: add rdi, 0Ch xorps xmm0, xmm0 movups xmmword ptr [rdi], xmm0 retn
void stbi__bmp_set_mask_defaults(long long a1, int a2) { if ( !a2 ) { if ( *(_DWORD *)a1 == 32 ) { *(_OWORD *)(a1 + 12) = xmmword_4E640; *(_DWORD *)(a1 + 28) = 0; } else if ( *(_DWORD *)a1 == 16 ) { *(_QWORD *)(a1 + 12) = 0x3E000007C00LL; *(_DWORD *)(a1 + 20) = 31; } else { *(_OWORD *)(a1 + 12) = 0LL; } } }
stbi__bmp_set_mask_defaults: TEST ESI,ESI JZ 0x0013192e RET LAB_0013192e: MOV EAX,dword ptr [RDI] CMP EAX,0x20 JZ 0x00131950 CMP EAX,0x10 JNZ 0x00131963 MOV RAX,0x3e000007c00 MOV qword ptr [RDI + 0xc],RAX MOV dword ptr [RDI + 0x14],0x1f RET LAB_00131950: MOVAPS XMM0,xmmword ptr [0x0014e640] MOVUPS xmmword ptr [RDI + 0xc],XMM0 MOV dword ptr [RDI + 0x1c],0x0 RET LAB_00131963: ADD RDI,0xc XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI],XMM0 RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* stbi__bmp_set_mask_defaults(stbi__bmp_data*, int) */ void stbi__bmp_set_mask_defaults(stbi__bmp_data *param_1,int param_2) { int8 uVar1; uVar1 = _UNK_0014e648; if (param_2 != 0) { return; } if (*(int *)param_1 != 0x20) { if (*(int *)param_1 == 0x10) { *(int8 *)(param_1 + 0xc) = 0x3e000007c00; *(int4 *)(param_1 + 0x14) = 0x1f; return; } *(int8 *)(param_1 + 0xc) = 0; *(int8 *)(param_1 + 0x14) = 0; return; } *(int8 *)(param_1 + 0xc) = _DAT_0014e640; *(int8 *)(param_1 + 0x14) = uVar1; *(int4 *)(param_1 + 0x1c) = 0; return; }
65,336
coro::detail::make_task_self_deleting(coro::task<void>)
AlayaLite/build_O3/_deps/libcoro-src/src/detail/task_self_deleting.cpp
auto make_task_self_deleting(coro::task<void> user_task) -> task_self_deleting { co_await user_task; co_return; }
O3
cpp
coro::detail::make_task_self_deleting(coro::task<void>): pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx addq $0x10, %rdi cmpb $0x1, 0x28(%rbx) jne 0x9404 callq 0x9244 jmp 0x9412 movq 0x20(%rbx), %r14 callq 0x9244 testq %r14, %r14 je 0x9419 movq 0x20(%rbx), %rdi callq *0x8(%rdi) movl $0x30, %esi movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x32c0 movq %rax, %rdi callq 0x466e
_ZN4coro6detail23make_task_self_deletingENS_4taskIvEE_destroy: push r14 push rbx push rax mov rbx, rdi add rdi, 10h; this cmp byte ptr [rbx+28h], 1 jnz short loc_9404 call _ZN4coro6detail21promise_self_deletingD2Ev; coro::detail::promise_self_deleting::~promise_self_deleting() jmp short loc_9412 loc_9404: mov r14, [rbx+20h] call _ZN4coro6detail21promise_self_deletingD2Ev; coro::detail::promise_self_deleting::~promise_self_deleting() test r14, r14 jz short loc_9419 loc_9412: mov rdi, [rbx+20h] call qword ptr [rdi+8] loc_9419: mov esi, 30h ; '0'; unsigned __int64 mov rdi, rbx; void * add rsp, 8 pop rbx pop r14 jmp __ZdlPvm; operator delete(void *,ulong) mov rdi, rax call __clang_call_terminate
void coro::detail::make_task_self_deleting(_QWORD *a1) { coro::detail::promise_self_deleting *v2; // rdi long long v3; // r14 v2 = (coro::detail::promise_self_deleting *)(a1 + 2); if ( *((_BYTE *)a1 + 40) == 1 ) { coro::detail::promise_self_deleting::~promise_self_deleting(v2); LABEL_4: (*(void ( **)(_QWORD))(a1[4] + 8LL))(a1[4]); goto LABEL_5; } v3 = a1[4]; coro::detail::promise_self_deleting::~promise_self_deleting(v2); if ( v3 ) goto LABEL_4; LABEL_5: operator delete(a1, 0x30uLL); }
make_task_self_deleting: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI ADD RDI,0x10 CMP byte ptr [RBX + 0x28],0x1 JNZ 0x00109404 CALL 0x00109244 JMP 0x00109412 LAB_00109404: MOV R14,qword ptr [RBX + 0x20] CALL 0x00109244 TEST R14,R14 JZ 0x00109419 LAB_00109412: MOV RDI,qword ptr [RBX + 0x20] LAB_00109416: CALL qword ptr [RDI + 0x8] LAB_00109419: MOV ESI,0x30 MOV RDI,RBX ADD RSP,0x8 POP RBX POP R14 JMP 0x001032c0
/* coro::detail::make_task_self_deleting(coro::task<void>) [clone .destroy] */ void coro::detail::make_task_self_deleting(void *param_1) { long lVar1; if (*(char *)((long)param_1 + 0x28) == '\x01') { promise_self_deleting::~promise_self_deleting((promise_self_deleting *)((long)param_1 + 0x10)); } else { lVar1 = *(long *)((long)param_1 + 0x20); promise_self_deleting::~promise_self_deleting((promise_self_deleting *)((long)param_1 + 0x10)); if (lVar1 == 0) goto LAB_00109419; } /* try { // try from 00109416 to 00109418 has its CatchHandler @ 0010942d */ (**(code **)(*(long *)((long)param_1 + 0x20) + 8))(); LAB_00109419: operator_delete(param_1,0x30); return; }
65,337
testing::internal::(anonymous namespace)::PositiveAndNegativeUnitTestFilter::MatchesTest(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const
AlayaLite/build_O3/_deps/googletest-src/googletest/src/gtest.cc
bool MatchesTest(const std::string& test_suite_name, const std::string& test_name) const { return MatchesName(test_suite_name + "." + test_name); }
O3
cpp
testing::internal::(anonymous namespace)::PositiveAndNegativeUnitTestFilter::MatchesTest(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const: pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rcx, %r14 movq %rdi, %rbx leaq 0x18(%rsp), %r12 movq %r12, -0x10(%r12) addq %rsi, %rdx leaq 0x8(%rsp), %r15 movq %r15, %rdi callq 0x18f38 leaq 0x2a2a8(%rip), %rsi # 0x878c4 movq %r15, %rdi callq 0x25290 movq (%r14), %rsi movq 0x8(%r14), %rdx leaq 0x8(%rsp), %rdi callq 0x252d6 leaq 0x38(%rsp), %r14 movq %r14, -0x10(%r14) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x5d65c movq %rdx, 0x28(%rsp) movq (%rcx), %rdx movq %rdx, 0x38(%rsp) jmp 0x5d663 movups (%rcx), %xmm0 movups %xmm0, (%r14) movq 0x8(%rax), %rdx leaq 0x28(%rsp), %rsi movq %rdx, 0x8(%rsi) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) movq %rbx, %rdi callq 0x5cfae testb %al, %al je 0x5d6a3 addq $0x50, %rbx leaq 0x28(%rsp), %rsi movq %rbx, %rdi callq 0x5cfae movl %eax, %ebx xorb $0x1, %bl jmp 0x5d6a5 xorl %ebx, %ebx movq 0x28(%rsp), %rdi cmpq %r14, %rdi je 0x5d6bc movq 0x38(%rsp), %rsi incq %rsi callq 0x11120 movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x5d6d3 movq 0x18(%rsp), %rsi incq %rsi callq 0x11120 movl %ebx, %eax addq $0x48, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq jmp 0x5d6e3 movq %rax, %rbx jmp 0x5d702 movq %rax, %rbx movq 0x28(%rsp), %rdi cmpq %r14, %rdi je 0x5d702 movq 0x38(%rsp), %rsi incq %rsi callq 0x11120 movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x5d719 movq 0x18(%rsp), %rsi incq %rsi callq 0x11120 movq %rbx, %rdi callq 0x11760 nop
_ZNK7testing8internal12_GLOBAL__N_133PositiveAndNegativeUnitTestFilter11MatchesTestERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_: push r15 push r14 push r12 push rbx sub rsp, 48h mov r14, rcx mov rbx, rdi lea r12, [rsp+68h+var_50] mov [r12-10h], r12 add rdx, rsi lea r15, [rsp+68h+var_60] mov rdi, r15 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) lea rsi, asc_878C3+1; "." mov rdi, r15 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov rsi, [r14] mov rdx, [r14+8] lea rdi, [rsp+68h+var_60] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) lea r14, [rsp+68h+var_30] mov [r14-10h], r14 mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jz short loc_5D65C mov [rsp+68h+var_40], rdx mov rdx, [rcx] mov [rsp+68h+var_30], rdx jmp short loc_5D663 loc_5D65C: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [r14], xmm0 loc_5D663: mov rdx, [rax+8] lea rsi, [rsp+68h+var_40] mov [rsi+8], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 mov rdi, rbx call _ZNK7testing8internal12_GLOBAL__N_114UnitTestFilter11MatchesNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::`anonymous namespace'::UnitTestFilter::MatchesName(std::string const&) test al, al jz short loc_5D6A3 add rbx, 50h ; 'P' lea rsi, [rsp+68h+var_40] mov rdi, rbx call _ZNK7testing8internal12_GLOBAL__N_114UnitTestFilter11MatchesNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::`anonymous namespace'::UnitTestFilter::MatchesName(std::string const&) mov ebx, eax xor bl, 1 jmp short loc_5D6A5 loc_5D6A3: xor ebx, ebx loc_5D6A5: mov rdi, [rsp+68h+var_40]; void * cmp rdi, r14 jz short loc_5D6BC mov rsi, [rsp+68h+var_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5D6BC: mov rdi, [rsp+68h+var_60]; void * cmp rdi, r12 jz short loc_5D6D3 mov rsi, [rsp+68h+var_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5D6D3: mov eax, ebx add rsp, 48h pop rbx pop r12 pop r14 pop r15 retn jmp short $+2 loc_5D6E3: mov rbx, rax jmp short loc_5D702 mov rbx, rax mov rdi, [rsp+arg_20]; void * cmp rdi, r14 jz short loc_5D702 mov rsi, [rsp+arg_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5D702: mov rdi, [rsp+arg_0]; void * cmp rdi, r12 jz short loc_5D719 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5D719: mov rdi, rbx call __Unwind_Resume
long long testing::internal::`anonymous namespace'::PositiveAndNegativeUnitTestFilter::MatchesTest( long long *a1, _BYTE *a2, long long a3, long long a4) { _QWORD *v5; // rax _OWORD *v6; // rcx unsigned int v7; // eax unsigned int v8; // ebx void *v10[2]; // [rsp+8h] [rbp-60h] BYREF _QWORD v11[2]; // [rsp+18h] [rbp-50h] BYREF void *v12[2]; // [rsp+28h] [rbp-40h] BYREF _OWORD v13[3]; // [rsp+38h] [rbp-30h] BYREF v10[0] = v11; std::string::_M_construct<char *>((long long)v10, a2, (long long)&a2[a3]); std::string::append((long long)v10, (long long)"."); v5 = std::string::_M_append(v10, *(_BYTE **)a4, *(_QWORD *)(a4 + 8)); v12[0] = v13; v6 = v5 + 2; if ( (_QWORD *)*v5 == v5 + 2 ) { v13[0] = *v6; } else { v12[0] = *(void **)v5; *(_QWORD *)&v13[0] = *(_QWORD *)v6; } v12[1] = *((void **)v5 + 1); *v5 = v6; v5[1] = 0LL; *((_BYTE *)v5 + 16) = 0; if ( testing::internal::`anonymous namespace'::UnitTestFilter::MatchesName(a1, (long long *)v12) ) { LOBYTE(v7) = testing::internal::`anonymous namespace'::UnitTestFilter::MatchesName(a1 + 10, (long long *)v12); v8 = v7; LOBYTE(v8) = v7 ^ 1; } else { v8 = 0; } if ( v12[0] != v13 ) operator delete(v12[0], *(_QWORD *)&v13[0] + 1LL); if ( v10[0] != v11 ) operator delete(v10[0], v11[0] + 1LL); return v8; }
MatchesTest: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x48 MOV R14,RCX MOV RBX,RDI LEA R12,[RSP + 0x18] MOV qword ptr [R12 + -0x10],R12 ADD RDX,RSI LEA R15,[RSP + 0x8] MOV RDI,R15 CALL 0x00118f38 LAB_0015d615: LEA RSI,[0x1878c4] MOV RDI,R15 CALL 0x00125290 MOV RSI,qword ptr [R14] MOV RDX,qword ptr [R14 + 0x8] LAB_0015d62b: LEA RDI,[RSP + 0x8] CALL 0x001252d6 LEA R14,[RSP + 0x38] MOV qword ptr [R14 + -0x10],R14 MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JZ 0x0015d65c MOV qword ptr [RSP + 0x28],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x38],RDX JMP 0x0015d663 LAB_0015d65c: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [R14],XMM0 LAB_0015d663: MOV RDX,qword ptr [RAX + 0x8] LEA RSI,[RSP + 0x28] MOV qword ptr [RSI + 0x8],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 LAB_0015d67f: MOV RDI,RBX CALL 0x0015cfae TEST AL,AL JZ 0x0015d6a3 ADD RBX,0x50 LEA RSI,[RSP + 0x28] MOV RDI,RBX CALL 0x0015cfae LAB_0015d69c: MOV EBX,EAX XOR BL,0x1 JMP 0x0015d6a5 LAB_0015d6a3: XOR EBX,EBX LAB_0015d6a5: MOV RDI,qword ptr [RSP + 0x28] CMP RDI,R14 JZ 0x0015d6bc MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x00111120 LAB_0015d6bc: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R12 JZ 0x0015d6d3 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x00111120 LAB_0015d6d3: MOV EAX,EBX ADD RSP,0x48 POP RBX POP R12 POP R14 POP R15 RET
/* testing::internal::(anonymous namespace)::PositiveAndNegativeUnitTestFilter::MatchesTest(std::__cxx11::string const&, std::__cxx11::string const&) const */ uint testing::internal::(anonymous_namespace)::PositiveAndNegativeUnitTestFilter::MatchesTest (string *param_1,string *param_2) { char cVar1; uint uVar2; long *plVar3; int8 *in_RCX; long *plVar4; long in_RDX; long *local_60 [2]; long local_50 [2]; long *local_40; long local_38; long local_30; long lStack_28; local_60[0] = local_50; std::__cxx11::string::_M_construct<char*>((string *)local_60,param_2,param_2 + in_RDX); /* try { // try from 0015d615 to 0015d623 has its CatchHandler @ 0015d6e3 */ std::__cxx11::string::append((string *)local_60,"."); /* try { // try from 0015d62b to 0015d634 has its CatchHandler @ 0015d6e1 */ plVar3 = (long *)std::__cxx11::string::_M_append((string *)local_60,(char *)*in_RCX,in_RCX[1]); plVar4 = plVar3 + 2; if ((long *)*plVar3 == plVar4) { local_30 = *plVar4; lStack_28 = plVar3[3]; local_40 = &local_30; } else { local_30 = *plVar4; local_40 = (long *)*plVar3; } local_38 = plVar3[1]; *plVar3 = (long)plVar4; plVar3[1] = 0; *(int1 *)(plVar3 + 2) = 0; /* try { // try from 0015d67f to 0015d69b has its CatchHandler @ 0015d6e8 */ cVar1 = UnitTestFilter::MatchesName((UnitTestFilter *)param_1,(string *)&local_40); if (cVar1 == '\0') { uVar2 = 0; } else { uVar2 = UnitTestFilter::MatchesName((UnitTestFilter *)(param_1 + 0x50),(string *)&local_40); uVar2 = uVar2 ^ 1; } if (local_40 != &local_30) { operator_delete(local_40,local_30 + 1); } if (local_60[0] != local_50) { operator_delete(local_60[0],local_50[0] + 1); } return uVar2; }
65,338
u64toa_radix_d2
bluesky950520[P]quickjs/tests/test_conv.c
static size_t u64toa_radix_d2(char buf[minimum_length(65)], uint64_t n, unsigned base) { if (n < 2) { buf[0] = (char)('0' + n); buf[1] = '\0'; return 1; } size_t len = (64 - clz64(n)); char *end = buf + len; *end-- = '\0'; while (n >= 2) { uint32_t quo = n & 1; n >>= 1; *end-- = (char)('0' + quo); } *end-- = (char)('0' + n); return len; }
O0
c
u64toa_radix_d2: subq $0x38, %rsp movq %rdi, 0x28(%rsp) movq %rsi, 0x20(%rsp) movl %edx, 0x1c(%rsp) cmpq $0x2, 0x20(%rsp) jae 0xa993 movq 0x20(%rsp), %rax addq $0x30, %rax movb %al, %cl movq 0x28(%rsp), %rax movb %cl, (%rax) movq 0x28(%rsp), %rax movb $0x0, 0x1(%rax) movq $0x1, 0x30(%rsp) jmp 0xaa38 movq 0x20(%rsp), %rdi callq 0x4fa0 movl %eax, %ecx movl $0x40, %eax subl %ecx, %eax cltq movq %rax, 0x10(%rsp) movq 0x28(%rsp), %rax addq 0x10(%rsp), %rax movq %rax, 0x8(%rsp) movq 0x8(%rsp), %rax movq %rax, %rcx addq $-0x1, %rcx movq %rcx, 0x8(%rsp) movb $0x0, (%rax) cmpq $0x2, 0x20(%rsp) jb 0xaa10 movq 0x20(%rsp), %rax andq $0x1, %rax movl %eax, 0x4(%rsp) movq 0x20(%rsp), %rax shrq %rax movq %rax, 0x20(%rsp) movl 0x4(%rsp), %eax addl $0x30, %eax movb %al, %cl movq 0x8(%rsp), %rax movq %rax, %rdx addq $-0x1, %rdx movq %rdx, 0x8(%rsp) movb %cl, (%rax) jmp 0xa9d0 movq 0x20(%rsp), %rax addq $0x30, %rax movb %al, %cl movq 0x8(%rsp), %rax movq %rax, %rdx addq $-0x1, %rdx movq %rdx, 0x8(%rsp) movb %cl, (%rax) movq 0x10(%rsp), %rax movq %rax, 0x30(%rsp) movq 0x30(%rsp), %rax addq $0x38, %rsp retq nopw %cs:(%rax,%rax)
u64toa_radix_d2: sub rsp, 38h mov [rsp+38h+var_10], rdi mov [rsp+38h+var_18], rsi mov [rsp+38h+var_1C], edx cmp [rsp+38h+var_18], 2 jnb short loc_A993 mov rax, [rsp+38h+var_18] add rax, 30h ; '0' mov cl, al mov rax, [rsp+38h+var_10] mov [rax], cl mov rax, [rsp+38h+var_10] mov byte ptr [rax+1], 0 mov [rsp+38h+var_8], 1 jmp loc_AA38 loc_A993: mov rdi, [rsp+38h+var_18] call clz64 mov ecx, eax mov eax, 40h ; '@' sub eax, ecx cdqe mov [rsp+38h+var_28], rax mov rax, [rsp+38h+var_10] add rax, [rsp+38h+var_28] mov [rsp+38h+var_30], rax mov rax, [rsp+38h+var_30] mov rcx, rax add rcx, 0FFFFFFFFFFFFFFFFh mov [rsp+38h+var_30], rcx mov byte ptr [rax], 0 loc_A9D0: cmp [rsp+38h+var_18], 2 jb short loc_AA10 mov rax, [rsp+38h+var_18] and rax, 1 mov [rsp+38h+var_34], eax mov rax, [rsp+38h+var_18] shr rax, 1 mov [rsp+38h+var_18], rax mov eax, [rsp+38h+var_34] add eax, 30h ; '0' mov cl, al mov rax, [rsp+38h+var_30] mov rdx, rax add rdx, 0FFFFFFFFFFFFFFFFh mov [rsp+38h+var_30], rdx mov [rax], cl jmp short loc_A9D0 loc_AA10: mov rax, [rsp+38h+var_18] add rax, 30h ; '0' mov cl, al mov rax, [rsp+38h+var_30] mov rdx, rax add rdx, 0FFFFFFFFFFFFFFFFh mov [rsp+38h+var_30], rdx mov [rax], cl mov rax, [rsp+38h+var_28] mov [rsp+38h+var_8], rax loc_AA38: mov rax, [rsp+38h+var_8] add rsp, 38h retn
long long u64toa_radix_d2(_BYTE *a1, unsigned long long a2) { _BYTE *v2; // rax char v4; // [rsp+4h] [rbp-34h] _BYTE *v5; // [rsp+8h] [rbp-30h] long long v6; // [rsp+10h] [rbp-28h] unsigned long long v7; // [rsp+20h] [rbp-18h] v7 = a2; if ( a2 >= 2 ) { v6 = (int)(64 - clz64(a2)); v5 = &a1[v6 - 1]; a1[v6] = 0; while ( v7 >= 2 ) { v4 = v7 & 1; v7 >>= 1; v2 = v5--; *v2 = v4 + 48; } *v5 = v7 + 48; return v6; } else { *a1 = a2 + 48; a1[1] = 0; return 1LL; } }
u64toa_radix_d2: SUB RSP,0x38 MOV qword ptr [RSP + 0x28],RDI MOV qword ptr [RSP + 0x20],RSI MOV dword ptr [RSP + 0x1c],EDX CMP qword ptr [RSP + 0x20],0x2 JNC 0x0010a993 MOV RAX,qword ptr [RSP + 0x20] ADD RAX,0x30 MOV CL,AL MOV RAX,qword ptr [RSP + 0x28] MOV byte ptr [RAX],CL MOV RAX,qword ptr [RSP + 0x28] MOV byte ptr [RAX + 0x1],0x0 MOV qword ptr [RSP + 0x30],0x1 JMP 0x0010aa38 LAB_0010a993: MOV RDI,qword ptr [RSP + 0x20] CALL 0x00104fa0 MOV ECX,EAX MOV EAX,0x40 SUB EAX,ECX CDQE MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [RSP + 0x28] ADD RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x8],RAX MOV RAX,qword ptr [RSP + 0x8] MOV RCX,RAX ADD RCX,-0x1 MOV qword ptr [RSP + 0x8],RCX MOV byte ptr [RAX],0x0 LAB_0010a9d0: CMP qword ptr [RSP + 0x20],0x2 JC 0x0010aa10 MOV RAX,qword ptr [RSP + 0x20] AND RAX,0x1 MOV dword ptr [RSP + 0x4],EAX MOV RAX,qword ptr [RSP + 0x20] SHR RAX,0x1 MOV qword ptr [RSP + 0x20],RAX MOV EAX,dword ptr [RSP + 0x4] 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],CL JMP 0x0010a9d0 LAB_0010aa10: MOV RAX,qword ptr [RSP + 0x20] ADD RAX,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],CL MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x30],RAX LAB_0010aa38: MOV RAX,qword ptr [RSP + 0x30] ADD RSP,0x38 RET
long u64toa_radix_d2(char *param_1,ulong param_2) { byte bVar1; int iVar2; char *local_30; ulong local_18; long local_8; if (param_2 < 2) { *param_1 = (char)param_2 + '0'; param_1[1] = '\0'; local_8 = 1; } else { iVar2 = clz64(param_2); local_8 = (long)(0x40 - iVar2); local_30 = param_1 + local_8; *local_30 = '\0'; local_18 = param_2; while (local_30 = local_30 + -1, bVar1 = (byte)local_18, 1 < local_18) { local_18 = local_18 >> 1; *local_30 = (bVar1 & 1) + 0x30; } *local_30 = bVar1 + 0x30; } return local_8; }
65,339
u64toa_radix_d2
bluesky950520[P]quickjs/tests/test_conv.c
static size_t u64toa_radix_d2(char buf[minimum_length(65)], uint64_t n, unsigned base) { if (n < 2) { buf[0] = (char)('0' + n); buf[1] = '\0'; return 1; } size_t len = (64 - clz64(n)); char *end = buf + len; *end-- = '\0'; while (n >= 2) { uint32_t quo = n & 1; n >>= 1; *end-- = (char)('0' + quo); } *end-- = (char)('0' + n); return len; }
O2
c
u64toa_radix_d2: cmpq $0x1, %rsi ja 0x53d7 orb $0x30, %sil movb %sil, (%rdi) movb $0x0, 0x1(%rdi) pushq $0x1 popq %rax retq bsrq %rsi, %rcx xorq $0x3f, %rcx pushq $0x40 popq %rax subq %rcx, %rax movb $0x0, (%rdi,%rax) subq %rcx, %rdi addq $0x3f, %rdi cmpq $0x2, %rsi jb 0x5408 movl %esi, %ecx andb $0x1, %cl shrq %rsi orb $0x30, %cl movb %cl, (%rdi) decq %rdi jmp 0x53f0 movb $0x31, (%rdi) retq
u64toa_radix_d2: cmp rsi, 1 ja short loc_53D7 or sil, 30h mov [rdi], sil mov byte ptr [rdi+1], 0 push 1 pop rax retn loc_53D7: bsr rcx, rsi xor rcx, 3Fh push 40h ; '@' pop rax sub rax, rcx mov byte ptr [rdi+rax], 0 sub rdi, rcx add rdi, 3Fh ; '?' loc_53F0: cmp rsi, 2 jb short loc_5408 mov ecx, esi and cl, 1 shr rsi, 1 or cl, 30h mov [rdi], cl dec rdi jmp short loc_53F0 loc_5408: mov byte ptr [rdi], 31h ; '1' retn
long long u64toa_radix_d2(_BYTE *a1, unsigned long long a2) { long long result; // rax unsigned long long v3; // rcx _BYTE *v4; // rdi char v5; // cl if ( a2 > 1 ) { _BitScanReverse64(&v3, a2); v3 ^= 0x3FuLL; result = 64 - v3; a1[64 - v3] = 0; v4 = &a1[-v3 + 63]; while ( a2 >= 2 ) { v5 = a2 & 1; a2 >>= 1; *v4-- = v5 | 0x30; } *v4 = 49; } else { *a1 = a2 | 0x30; a1[1] = 0; return 1LL; } return result; }
u64toa_radix_d2: CMP RSI,0x1 JA 0x001053d7 OR SIL,0x30 MOV byte ptr [RDI],SIL MOV byte ptr [RDI + 0x1],0x0 PUSH 0x1 POP RAX RET LAB_001053d7: BSR RCX,RSI XOR RCX,0x3f PUSH 0x40 POP RAX SUB RAX,RCX MOV byte ptr [RDI + RAX*0x1],0x0 SUB RDI,RCX ADD RDI,0x3f LAB_001053f0: CMP RSI,0x2 JC 0x00105408 MOV ECX,ESI AND CL,0x1 SHR RSI,0x1 OR CL,0x30 MOV byte ptr [RDI],CL DEC RDI JMP 0x001053f0 LAB_00105408: MOV byte ptr [RDI],0x31 RET
long u64toa_radix_d2(byte *param_1,ulong param_2) { ulong uVar1; long lVar2; if (param_2 < 2) { *param_1 = (byte)param_2 | 0x30; param_1[1] = 0; return 1; } uVar1 = 0x3f; if (param_2 != 0) { for (; param_2 >> uVar1 == 0; uVar1 = uVar1 - 1) { } } lVar2 = 0x40 - (uVar1 ^ 0x3f); param_1[lVar2] = 0; param_1 = param_1 + (0x3f - (uVar1 ^ 0x3f)); for (; 1 < param_2; param_2 = param_2 >> 1) { *param_1 = (byte)param_2 & 1 | 0x30; param_1 = param_1 + -1; } *param_1 = 0x31; return lVar2; }
65,340
inline_mysql_file_pread
eloqsql/include/mysql/psi/mysql_file.h
static inline size_t inline_mysql_file_pread( #ifdef HAVE_PSI_FILE_INTERFACE const char *src_file, uint src_line, #endif File file, uchar *buffer, size_t count, my_off_t offset, myf flags) { size_t result; #ifdef HAVE_PSI_FILE_INTERFACE struct PSI_file_locker *locker; PSI_file_locker_state state; size_t bytes_read; locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_READ); if (psi_likely(locker != NULL)) { PSI_FILE_CALL(start_file_wait)(locker, count, src_file, src_line); result= my_pread(file, buffer, count, offset, flags); if (flags & (MY_NABP | MY_FNABP)) bytes_read= (result == 0) ? count : 0; else bytes_read= (result != MY_FILE_ERROR) ? result : 0; PSI_FILE_CALL(end_file_wait)(locker, bytes_read); return result; } #endif result= my_pread(file, buffer, count, offset, flags); return result; }
O0
c
inline_mysql_file_pread: pushq %rbp movq %rsp, %rbp subq $0xa0, %rsp movq 0x10(%rbp), %rax movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl %edx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq %r9, -0x30(%rbp) leaq 0x20693c(%rip), %rax # 0x2bf0b8 movq (%rax), %rax movq 0x158(%rax), %rax movl -0x18(%rbp), %esi leaq -0x88(%rbp), %rdi movl $0x6, %edx callq *%rax movq %rax, -0x40(%rbp) cmpq $0x0, -0x40(%rbp) setne %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0xb888f leaq 0x2068f2(%rip), %rax # 0x2bf0b8 movq (%rax), %rax movq 0x210(%rax), %rax movq -0x40(%rbp), %rdi movq -0x28(%rbp), %rsi movq -0x10(%rbp), %rdx movl -0x14(%rbp), %ecx callq *%rax movl -0x18(%rbp), %edi movq -0x20(%rbp), %rsi movq -0x28(%rbp), %rdx movq -0x30(%rbp), %rcx movq 0x10(%rbp), %r8 callq 0xf4010 movq %rax, -0x38(%rbp) movq 0x10(%rbp), %rax andq $0x6, %rax cmpq $0x0, %rax je 0xb883a cmpq $0x0, -0x38(%rbp) jne 0xb881f movq -0x28(%rbp), %rax movq %rax, -0x98(%rbp) jmp 0xb882a xorl %eax, %eax movq %rax, -0x98(%rbp) jmp 0xb882a movq -0x98(%rbp), %rax movq %rax, -0x90(%rbp) jmp 0xb8867 cmpq $-0x1, -0x38(%rbp) je 0xb884e movq -0x38(%rbp), %rax movq %rax, -0xa0(%rbp) jmp 0xb8859 xorl %eax, %eax movq %rax, -0xa0(%rbp) jmp 0xb8859 movq -0xa0(%rbp), %rax movq %rax, -0x90(%rbp) leaq 0x20684a(%rip), %rax # 0x2bf0b8 movq (%rax), %rax movq 0x218(%rax), %rax movq -0x40(%rbp), %rdi movq -0x90(%rbp), %rsi callq *%rax movq -0x38(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0xb88b3 movl -0x18(%rbp), %edi movq -0x20(%rbp), %rsi movq -0x28(%rbp), %rdx movq -0x30(%rbp), %rcx movq 0x10(%rbp), %r8 callq 0xf4010 movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0xa0, %rsp popq %rbp retq
inline_mysql_file_pread_7: push rbp mov rbp, rsp sub rsp, 0A0h mov rax, [rbp+arg_0] mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_18], edx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov [rbp+var_30], r9 lea rax, PSI_server mov rax, [rax] mov rax, [rax+158h] mov esi, [rbp+var_18] lea rdi, [rbp+var_88] mov edx, 6 call rax mov [rbp+var_40], rax cmp [rbp+var_40], 0 setnz al and al, 1 movzx eax, al cmp eax, 0 setnz al and al, 1 movzx eax, al cdqe cmp rax, 0 jz loc_B888F lea rax, PSI_server mov rax, [rax] mov rax, [rax+210h] mov rdi, [rbp+var_40] mov rsi, [rbp+var_28] mov rdx, [rbp+var_10] mov ecx, [rbp+var_14] call rax mov edi, [rbp+var_18] mov rsi, [rbp+var_20] mov rdx, [rbp+var_28] mov rcx, [rbp+var_30] mov r8, [rbp+arg_0] call my_pread mov [rbp+var_38], rax mov rax, [rbp+arg_0] and rax, 6 cmp rax, 0 jz short loc_B883A cmp [rbp+var_38], 0 jnz short loc_B881F mov rax, [rbp+var_28] mov [rbp+var_98], rax jmp short loc_B882A loc_B881F: xor eax, eax mov [rbp+var_98], rax jmp short $+2 loc_B882A: mov rax, [rbp+var_98] mov [rbp+var_90], rax jmp short loc_B8867 loc_B883A: cmp [rbp+var_38], 0FFFFFFFFFFFFFFFFh jz short loc_B884E mov rax, [rbp+var_38] mov [rbp+var_A0], rax jmp short loc_B8859 loc_B884E: xor eax, eax mov [rbp+var_A0], rax jmp short $+2 loc_B8859: mov rax, [rbp+var_A0] mov [rbp+var_90], rax loc_B8867: lea rax, PSI_server mov rax, [rax] mov rax, [rax+218h] mov rdi, [rbp+var_40] mov rsi, [rbp+var_90] call rax mov rax, [rbp+var_38] mov [rbp+var_8], rax jmp short loc_B88B3 loc_B888F: mov edi, [rbp+var_18] mov rsi, [rbp+var_20] mov rdx, [rbp+var_28] mov rcx, [rbp+var_30] mov r8, [rbp+arg_0] call my_pread mov [rbp+var_38], rax mov rax, [rbp+var_38] mov [rbp+var_8], rax loc_B88B3: mov rax, [rbp+var_8] add rsp, 0A0h pop rbp retn
long long inline_mysql_file_pread_7( long long a1, unsigned int a2, unsigned int a3, long long a4, long long a5, long long a6, long long a7) { long long v8; // [rsp+0h] [rbp-A0h] long long v9; // [rsp+8h] [rbp-98h] _BYTE v10[72]; // [rsp+18h] [rbp-88h] BYREF long long v11; // [rsp+60h] [rbp-40h] long long v12; // [rsp+68h] [rbp-38h] long long v13; // [rsp+70h] [rbp-30h] long long v14; // [rsp+78h] [rbp-28h] long long v15; // [rsp+80h] [rbp-20h] unsigned int v16; // [rsp+88h] [rbp-18h] unsigned int v17; // [rsp+8Ch] [rbp-14h] long long v18; // [rsp+90h] [rbp-10h] v18 = a1; v17 = a2; v16 = a3; v15 = a4; v14 = a5; v13 = a6; v11 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v10, a3, 6LL); if ( v11 ) { ((void ( *)(long long, long long, long long, _QWORD))PSI_server[66])(v11, v14, v18, v17); v12 = my_pread(v16, v15, v14, v13, a7); if ( (a7 & 6) != 0 ) { if ( v12 ) v9 = 0LL; else v9 = v14; ((void ( *)(long long, long long))PSI_server[67])(v11, v9); } else { if ( v12 == -1 ) v8 = 0LL; else v8 = v12; ((void ( *)(long long, long long))PSI_server[67])(v11, v8); } return v12; } else { return my_pread(v16, v15, v14, v13, a7); } }
inline_mysql_file_pread: PUSH RBP MOV RBP,RSP SUB RSP,0xa0 MOV RAX,qword ptr [RBP + 0x10] MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV dword ptr [RBP + -0x18],EDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV qword ptr [RBP + -0x30],R9 LEA RAX,[0x3bf0b8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x158] MOV ESI,dword ptr [RBP + -0x18] LEA RDI,[RBP + -0x88] MOV EDX,0x6 CALL RAX MOV qword ptr [RBP + -0x40],RAX CMP qword ptr [RBP + -0x40],0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x001b888f LEA RAX,[0x3bf0b8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x210] MOV RDI,qword ptr [RBP + -0x40] MOV RSI,qword ptr [RBP + -0x28] MOV RDX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RBP + -0x14] CALL RAX MOV EDI,dword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x30] MOV R8,qword ptr [RBP + 0x10] CALL 0x001f4010 MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + 0x10] AND RAX,0x6 CMP RAX,0x0 JZ 0x001b883a CMP qword ptr [RBP + -0x38],0x0 JNZ 0x001b881f MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x98],RAX JMP 0x001b882a LAB_001b881f: XOR EAX,EAX MOV qword ptr [RBP + -0x98],RAX JMP 0x001b882a LAB_001b882a: MOV RAX,qword ptr [RBP + -0x98] MOV qword ptr [RBP + -0x90],RAX JMP 0x001b8867 LAB_001b883a: CMP qword ptr [RBP + -0x38],-0x1 JZ 0x001b884e MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0xa0],RAX JMP 0x001b8859 LAB_001b884e: XOR EAX,EAX MOV qword ptr [RBP + -0xa0],RAX JMP 0x001b8859 LAB_001b8859: MOV RAX,qword ptr [RBP + -0xa0] MOV qword ptr [RBP + -0x90],RAX LAB_001b8867: LEA RAX,[0x3bf0b8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x218] MOV RDI,qword ptr [RBP + -0x40] MOV RSI,qword ptr [RBP + -0x90] CALL RAX MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x8],RAX JMP 0x001b88b3 LAB_001b888f: MOV EDI,dword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x30] MOV R8,qword ptr [RBP + 0x10] CALL 0x001f4010 MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x8],RAX LAB_001b88b3: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0xa0 POP RBP RET
long inline_mysql_file_pread (int8 param_1,int4 param_2,int4 param_3,int8 param_4, long param_5,int8 param_6,ulong param_7) { long local_a8; long local_a0; long local_98; int1 local_90 [72]; long local_48; long local_40; int8 local_38; long local_30; int8 local_28; int4 local_20; int4 local_1c; int8 local_18; long local_10; local_38 = param_6; local_30 = param_5; local_28 = param_4; local_20 = param_3; local_1c = param_2; local_18 = param_1; local_48 = (**(code **)(PSI_server + 0x158))(local_90,param_3,6); if (local_48 == 0) { local_10 = my_pread(local_20,local_28,local_30,local_38,param_7); } else { (**(code **)(PSI_server + 0x210))(local_48,local_30,local_18,local_1c); local_40 = my_pread(local_20,local_28,local_30,local_38,param_7); if ((param_7 & 6) == 0) { local_a8 = local_40; if (local_40 == -1) { local_a8 = 0; } local_98 = local_a8; } else { if (local_40 == 0) { local_a0 = local_30; } else { local_a0 = 0; } local_98 = local_a0; } (**(code **)(PSI_server + 0x218))(local_48,local_98); local_10 = local_40; } return local_10; }
65,341
inline_mysql_file_pread
eloqsql/include/mysql/psi/mysql_file.h
static inline size_t inline_mysql_file_pread( #ifdef HAVE_PSI_FILE_INTERFACE const char *src_file, uint src_line, #endif File file, uchar *buffer, size_t count, my_off_t offset, myf flags) { size_t result; #ifdef HAVE_PSI_FILE_INTERFACE struct PSI_file_locker *locker; PSI_file_locker_state state; size_t bytes_read; locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_READ); if (psi_likely(locker != NULL)) { PSI_FILE_CALL(start_file_wait)(locker, count, src_file, src_line); result= my_pread(file, buffer, count, offset, flags); if (flags & (MY_NABP | MY_FNABP)) bytes_read= (result == 0) ? count : 0; else bytes_read= (result != MY_FILE_ERROR) ? result : 0; PSI_FILE_CALL(end_file_wait)(locker, bytes_read); return result; } #endif result= my_pread(file, buffer, count, offset, flags); return result; }
O3
c
inline_mysql_file_pread: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rcx, %rbx movq %rdx, %r14 movl %esi, %r15d movl %edi, %r13d leaq 0x33e64b(%rip), %rax # 0x386010 movq (%rax), %rax leaq -0x70(%rbp), %rdi movl $0x6, %edx callq *0x158(%rax) testq %rax, %rax jne 0x47a07 movl $0x2, %r8d movl %r15d, %edi movq %r14, %rsi movq %rbx, %rdx xorl %ecx, %ecx callq 0xa01b0 movq %rax, %r14 movq %r14, %rax addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %r12 leaq 0x33e5ff(%rip), %rax # 0x386010 movq (%rax), %rax leaq 0x91d4a(%rip), %rdx # 0xd9765 movq %r12, %rdi movq %rbx, %rsi movl %r13d, %ecx callq *0x210(%rax) xorl %r13d, %r13d movl $0x2, %r8d movl %r15d, %edi movq %r14, %rsi movq %rbx, %rdx xorl %ecx, %ecx callq 0xa01b0 movq %rax, %r14 testq %rax, %rax cmoveq %rbx, %r13 leaq 0x33e5bc(%rip), %rax # 0x386010 movq (%rax), %rax movq %r12, %rdi movq %r13, %rsi callq *0x218(%rax) jmp 0x479f5
inline_mysql_file_pread_0: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h mov rbx, rcx mov r14, rdx mov r15d, esi mov r13d, edi lea rax, PSI_server mov rax, [rax] lea rdi, [rbp+var_70] mov edx, 6 call qword ptr [rax+158h] test rax, rax jnz short loc_47A07 mov r8d, 2 mov edi, r15d mov rsi, r14 mov rdx, rbx xor ecx, ecx call my_pread mov r14, rax loc_479F5: mov rax, r14 add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_47A07: mov r12, rax lea rax, PSI_server mov rax, [rax] lea rdx, aWorkspaceLlm4b_6; "/workspace/llm4binary/github2025/eloqsq"... mov rdi, r12 mov rsi, rbx mov ecx, r13d call qword ptr [rax+210h] xor r13d, r13d mov r8d, 2 mov edi, r15d mov rsi, r14 mov rdx, rbx xor ecx, ecx call my_pread mov r14, rax test rax, rax cmovz r13, rbx lea rax, PSI_server mov rax, [rax] mov rdi, r12 mov rsi, r13 call qword ptr [rax+218h] jmp short loc_479F5
long long inline_mysql_file_pread_0(unsigned int a1, long long a2, long long a3, long long a4) { long long v6; // rax long long v7; // r14 long long v9; // r12 long long v10; // r13 _BYTE v11[112]; // [rsp+0h] [rbp-70h] BYREF v6 = ((long long ( *)(_BYTE *, long long, long long))PSI_server[43])(v11, a2, 6LL); if ( !v6 ) return my_pread((unsigned int)a2, a3, a4, 0LL, 2LL); v9 = v6; ((void ( *)(long long, long long, const char *, _QWORD))PSI_server[66])( v6, a4, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_control_file.c", a1); v10 = 0LL; v7 = my_pread((unsigned int)a2, a3, a4, 0LL, 2LL); if ( !v7 ) v10 = a4; ((void ( *)(long long, long long))PSI_server[67])(v9, v10); return v7; }
inline_mysql_file_pread: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 MOV RBX,RCX MOV R14,RDX MOV R15D,ESI MOV R13D,EDI LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] LEA RDI,[RBP + -0x70] MOV EDX,0x6 CALL qword ptr [RAX + 0x158] TEST RAX,RAX JNZ 0x00147a07 MOV R8D,0x2 MOV EDI,R15D MOV RSI,R14 MOV RDX,RBX XOR ECX,ECX CALL 0x001a01b0 MOV R14,RAX LAB_001479f5: MOV RAX,R14 ADD RSP,0x48 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00147a07: MOV R12,RAX LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] LEA RDX,[0x1d9765] MOV RDI,R12 MOV RSI,RBX MOV ECX,R13D CALL qword ptr [RAX + 0x210] XOR R13D,R13D MOV R8D,0x2 MOV EDI,R15D MOV RSI,R14 MOV RDX,RBX XOR ECX,ECX CALL 0x001a01b0 MOV R14,RAX TEST RAX,RAX CMOVZ R13,RBX LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] MOV RDI,R12 MOV RSI,R13 CALL qword ptr [RAX + 0x218] JMP 0x001479f5
long inline_mysql_file_pread(int4 param_1,ulong param_2,int8 param_3,int8 param_4) { long lVar1; long lVar2; int8 uVar3; int1 local_78 [72]; lVar1 = (**(code **)(PSI_server + 0x158))(local_78,param_2,6); if (lVar1 == 0) { lVar2 = my_pread(param_2 & 0xffffffff,param_3,param_4,0,2); } else { (**(code **)(PSI_server + 0x210)) (lVar1,param_4, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_control_file.c",param_1); lVar2 = my_pread(param_2 & 0xffffffff,param_3,param_4,0,2); uVar3 = 0; if (lVar2 == 0) { uVar3 = param_4; } (**(code **)(PSI_server + 0x218))(lVar1,uVar3); } return lVar2; }
65,342
ModbusObject::disconnect(void*, void*)
serhmarch[P]ModbusBridge/modbus/src/ModbusObject.cpp
void ModbusObject::disconnect(void *object, void *methodOrFunc) { for (ModbusObjectPrivate::iterator it = d_ptr->begin(); it != d_ptr->end(); ) { for (std::list<void*>::iterator i = it->second.begin(); i != it->second.end(); ) { ModbusSlotBase<void> *callback = reinterpret_cast<ModbusSlotBase<void>*>(*i); bool del = false; if (object) { del = ((callback->object() == object) && ((methodOrFunc == nullptr) || (callback->methodOrFunction() == methodOrFunc))); } else if (callback->methodOrFunction() == methodOrFunc) { del = true; } if (del) { i = it->second.erase(i); delete callback; continue; } i++; } if (it->second.size() == 0) { it = d_ptr->erase(it); continue; } it++; } }
O1
cpp
ModbusObject::disconnect(void*, void*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %r14 movq %rdi, 0x10(%rsp) movq 0x8(%rdi), %rax movq 0x38(%rax), %rsi testq %rsi, %rsi je 0x8b20 movq %rdx, %rbx leaq 0x10(%rsi), %r15 movq %rsi, 0x8(%rsp) movq 0x10(%rsi), %r13 cmpq %r15, %r13 je 0x8af1 movq 0x10(%r13), %rbp movq (%rbp), %rax testq %r14, %r14 je 0x8aaf movq %rbp, %rdi callq *0x10(%rax) cmpq %r14, %rax jne 0x8aba testq %rbx, %rbx je 0x8ac0 movq (%rbp), %rax movq %rbp, %rdi callq *0x18(%rax) cmpq %rbx, %rax je 0x8ac0 movq (%r13), %r13 jmp 0x8a89 movq (%r13), %r12 movq 0x8(%rsp), %rax decq 0x20(%rax) movq %r13, %rdi callq 0x5500 movl $0x18, %esi movq %r13, %rdi callq 0x5310 movq (%rbp), %rax movq %rbp, %rdi callq *0x8(%rax) movq %r12, %r13 jmp 0x8a89 movq 0x8(%rsp), %rsi cmpq $0x0, 0x20(%rsi) je 0x8b02 movq (%rsi), %rsi jmp 0x8b17 movq 0x10(%rsp), %rax movq 0x8(%rax), %rdi addq $0x28, %rdi callq 0x8fae movq %rax, %rsi testq %rsi, %rsi jne 0x8a7c addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZN12ModbusObject10disconnectEPvS0_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r14, rsi mov [rsp+48h+var_38], rdi mov rax, [rdi+8] mov rsi, [rax+38h] test rsi, rsi jz loc_8B20 mov rbx, rdx loc_8A7C: lea r15, [rsi+10h] mov [rsp+48h+var_40], rsi mov r13, [rsi+10h] loc_8A89: cmp r13, r15 jz short loc_8AF1 mov rbp, [r13+10h] mov rax, [rbp+0] test r14, r14 jz short loc_8AAF mov rdi, rbp call qword ptr [rax+10h] cmp rax, r14 jnz short loc_8ABA test rbx, rbx jz short loc_8AC0 mov rax, [rbp+0] loc_8AAF: mov rdi, rbp call qword ptr [rax+18h] cmp rax, rbx jz short loc_8AC0 loc_8ABA: mov r13, [r13+0] jmp short loc_8A89 loc_8AC0: mov r12, [r13+0] mov rax, [rsp+48h+var_40] dec qword ptr [rax+20h] mov rdi, r13; this call __ZNSt8__detail15_List_node_base9_M_unhookEv; std::__detail::_List_node_base::_M_unhook(void) mov esi, 18h; unsigned __int64 mov rdi, r13; void * call __ZdlPvm; operator delete(void *,ulong) mov rax, [rbp+0] mov rdi, rbp call qword ptr [rax+8] mov r13, r12 jmp short loc_8A89 loc_8AF1: mov rsi, [rsp+48h+var_40] cmp qword ptr [rsi+20h], 0 jz short loc_8B02 mov rsi, [rsi] jmp short loc_8B17 loc_8B02: mov rax, [rsp+48h+var_38] mov rdi, [rax+8] add rdi, 28h ; '(' call _ZNSt10_HashtableIPvSt4pairIKS0_NSt7__cxx114listIS0_SaIS0_EEEESaIS7_ENSt8__detail10_Select1stESt8equal_toIS0_ESt4hashIS0_ENS9_18_Mod_range_hashingENS9_20_Default_ranged_hashENS9_20_Prime_rehash_policyENS9_17_Hashtable_traitsILb0ELb0ELb1EEEE5eraseENS9_20_Node_const_iteratorIS7_Lb0ELb0EEE; std::_Hashtable<void *,std::pair<void * const,std::list<void *>>,std::allocator<std::pair<void * const,std::list<void *>>>,std::__detail::_Select1st,std::equal_to<void *>,std::hash<void *>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::erase(std::__detail::_Node_const_iterator<std::pair<void * const,std::list<void *>>,false,false>) mov rsi, rax loc_8B17: test rsi, rsi jnz loc_8A7C loc_8B20: add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
_QWORD * ModbusObject::disconnect(ModbusObject *this, _QWORD *a2, _QWORD *a3) { _QWORD *result; // rax _QWORD *v5; // rsi std::__detail::_List_node_base *v7; // r13 long long *v8; // rbp long long v9; // rax std::__detail::_List_node_base *v10; // r12 result = (_QWORD *)*((_QWORD *)this + 1); v5 = (_QWORD *)result[7]; if ( !v5 ) return result; do { v7 = (std::__detail::_List_node_base *)v5[2]; while ( v7 != (std::__detail::_List_node_base *)(v5 + 2) ) { v8 = (long long *)*((_QWORD *)v7 + 2); v9 = *v8; if ( !a2 ) goto LABEL_8; result = (_QWORD *)(*(long long ( **)(_QWORD))(v9 + 16))(*((_QWORD *)v7 + 2)); if ( result != a2 ) goto LABEL_9; if ( a3 ) { v9 = *v8; LABEL_8: result = (_QWORD *)(*(long long ( **)(long long *))(v9 + 24))(v8); if ( result == a3 ) goto LABEL_10; LABEL_9: v7 = *(std::__detail::_List_node_base **)v7; } else { LABEL_10: v10 = *(std::__detail::_List_node_base **)v7; --v5[4]; std::__detail::_List_node_base::_M_unhook(v7); operator delete(v7, 0x18uLL); result = (_QWORD *)(*(long long ( **)(long long *))(*v8 + 8))(v8); v7 = v10; } } if ( v5[4] ) { v5 = (_QWORD *)*v5; } else { result = (_QWORD *)std::_Hashtable<void *,std::pair<void * const,std::list<void *>>,std::allocator<std::pair<void * const,std::list<void *>>>,std::__detail::_Select1st,std::equal_to<void *>,std::hash<void *>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::erase(*((_QWORD *)this + 1) + 40LL); v5 = result; } } while ( v5 ); return result; }
disconnect: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R14,RSI MOV qword ptr [RSP + 0x10],RDI MOV RAX,qword ptr [RDI + 0x8] MOV RSI,qword ptr [RAX + 0x38] TEST RSI,RSI JZ 0x00108b20 MOV RBX,RDX LAB_00108a7c: LEA R15,[RSI + 0x10] MOV qword ptr [RSP + 0x8],RSI MOV R13,qword ptr [RSI + 0x10] LAB_00108a89: CMP R13,R15 JZ 0x00108af1 MOV RBP,qword ptr [R13 + 0x10] MOV RAX,qword ptr [RBP] TEST R14,R14 JZ 0x00108aaf MOV RDI,RBP CALL qword ptr [RAX + 0x10] CMP RAX,R14 JNZ 0x00108aba TEST RBX,RBX JZ 0x00108ac0 MOV RAX,qword ptr [RBP] LAB_00108aaf: MOV RDI,RBP CALL qword ptr [RAX + 0x18] CMP RAX,RBX JZ 0x00108ac0 LAB_00108aba: MOV R13,qword ptr [R13] JMP 0x00108a89 LAB_00108ac0: MOV R12,qword ptr [R13] MOV RAX,qword ptr [RSP + 0x8] DEC qword ptr [RAX + 0x20] MOV RDI,R13 CALL 0x00105500 MOV ESI,0x18 MOV RDI,R13 CALL 0x00105310 MOV RAX,qword ptr [RBP] MOV RDI,RBP CALL qword ptr [RAX + 0x8] MOV R13,R12 JMP 0x00108a89 LAB_00108af1: MOV RSI,qword ptr [RSP + 0x8] CMP qword ptr [RSI + 0x20],0x0 JZ 0x00108b02 MOV RSI,qword ptr [RSI] JMP 0x00108b17 LAB_00108b02: MOV RAX,qword ptr [RSP + 0x10] MOV RDI,qword ptr [RAX + 0x8] ADD RDI,0x28 CALL 0x00108fae MOV RSI,RAX LAB_00108b17: TEST RSI,RSI JNZ 0x00108a7c LAB_00108b20: ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* ModbusObject::disconnect(void*, void*) */ void __thiscall ModbusObject::disconnect(ModbusObject *this,void *param_1,void *param_2) { long *plVar1; int8 *puVar2; void *pvVar3; long lVar4; int8 *puVar5; int8 *puVar6; puVar5 = *(int8 **)(*(long *)(this + 8) + 0x38); do { if (puVar5 == (int8 *)0x0) { return; } puVar6 = (int8 *)puVar5[2]; while (puVar6 != puVar5 + 2) { plVar1 = (long *)puVar6[2]; lVar4 = *plVar1; if (param_1 == (void *)0x0) { LAB_00108aaf: pvVar3 = (void *)(**(code **)(lVar4 + 0x18))(plVar1); if (pvVar3 != param_2) goto LAB_00108aba; LAB_00108ac0: puVar2 = (int8 *)*puVar6; puVar5[4] = puVar5[4] + -1; std::__detail::_List_node_base::_M_unhook(); operator_delete(puVar6,0x18); (**(code **)(*plVar1 + 8))(plVar1); puVar6 = puVar2; } else { pvVar3 = (void *)(**(code **)(lVar4 + 0x10))(plVar1); if (pvVar3 == param_1) { if (param_2 != (void *)0x0) { lVar4 = *plVar1; goto LAB_00108aaf; } goto LAB_00108ac0; } LAB_00108aba: puVar6 = (int8 *)*puVar6; } } if (puVar5[4] == 0) { puVar5 = (int8 *) std:: _Hashtable<void*,std::pair<void*const,std::__cxx11::list<void*,std::allocator<void*>>>,std::allocator<std::pair<void*const,std::__cxx11::list<void*,std::allocator<void*>>>>,std::__detail::_Select1st,std::equal_to<void*>,std::hash<void*>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>> ::erase((_Hashtable<void*,std::pair<void*const,std::__cxx11::list<void*,std::allocator<void*>>>,std::allocator<std::pair<void*const,std::__cxx11::list<void*,std::allocator<void*>>>>,std::__detail::_Select1st,std::equal_to<void*>,std::hash<void*>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>> *)(*(long *)(this + 8) + 0x28)); } else { puVar5 = (int8 *)*puVar5; } } while( true ); }
65,343
ModbusObject::disconnect(void*, void*)
serhmarch[P]ModbusBridge/modbus/src/ModbusObject.cpp
void ModbusObject::disconnect(void *object, void *methodOrFunc) { for (ModbusObjectPrivate::iterator it = d_ptr->begin(); it != d_ptr->end(); ) { for (std::list<void*>::iterator i = it->second.begin(); i != it->second.end(); ) { ModbusSlotBase<void> *callback = reinterpret_cast<ModbusSlotBase<void>*>(*i); bool del = false; if (object) { del = ((callback->object() == object) && ((methodOrFunc == nullptr) || (callback->methodOrFunction() == methodOrFunc))); } else if (callback->methodOrFunction() == methodOrFunc) { del = true; } if (del) { i = it->second.erase(i); delete callback; continue; } i++; } if (it->second.size() == 0) { it = d_ptr->erase(it); continue; } it++; } }
O3
cpp
ModbusObject::disconnect(void*, void*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %r14 movq %rdi, 0x10(%rsp) movq 0x8(%rdi), %rax movq 0x38(%rax), %rsi testq %rsi, %rsi je 0x8bf5 movq %rdx, %rbx leaq 0x10(%rsi), %r15 movq %rsi, 0x8(%rsp) movq 0x10(%rsi), %r13 cmpq %r15, %r13 je 0x8bc6 movq 0x10(%r13), %rbp movq (%rbp), %rax testq %r14, %r14 je 0x8b81 movq %rbp, %rdi callq *0x10(%rax) cmpq %r14, %rax jne 0x8b8c testq %rbx, %rbx je 0x8b92 movq (%rbp), %rax movq %rbp, %rdi callq *0x18(%rax) cmpq %rbx, %rax je 0x8b92 movq (%r13), %r12 jmp 0x8bbe movq (%r13), %r12 movq 0x8(%rsp), %rax decq 0x20(%rax) movq %r13, %rdi callq 0x5500 movl $0x18, %esi movq %r13, %rdi callq 0x5310 movq (%rbp), %rax movq %rbp, %rdi callq *0x8(%rax) movq %r12, %r13 cmpq %r15, %r12 jne 0x8b60 movq 0x8(%rsp), %rsi cmpq $0x0, 0x20(%rsi) je 0x8bd7 movq (%rsi), %rsi jmp 0x8bec movq 0x10(%rsp), %rax movq 0x8(%rax), %rdi addq $0x28, %rdi callq 0x90a6 movq %rax, %rsi testq %rsi, %rsi jne 0x8b4e addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZN12ModbusObject10disconnectEPvS0_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r14, rsi mov [rsp+48h+var_38], rdi mov rax, [rdi+8] mov rsi, [rax+38h] test rsi, rsi jz loc_8BF5 mov rbx, rdx loc_8B4E: lea r15, [rsi+10h] mov [rsp+48h+var_40], rsi mov r13, [rsi+10h] cmp r13, r15 jz short loc_8BC6 loc_8B60: mov rbp, [r13+10h] mov rax, [rbp+0] test r14, r14 jz short loc_8B81 mov rdi, rbp call qword ptr [rax+10h] cmp rax, r14 jnz short loc_8B8C test rbx, rbx jz short loc_8B92 mov rax, [rbp+0] loc_8B81: mov rdi, rbp call qword ptr [rax+18h] cmp rax, rbx jz short loc_8B92 loc_8B8C: mov r12, [r13+0] jmp short loc_8BBE loc_8B92: mov r12, [r13+0] mov rax, [rsp+48h+var_40] dec qword ptr [rax+20h] mov rdi, r13; this call __ZNSt8__detail15_List_node_base9_M_unhookEv; std::__detail::_List_node_base::_M_unhook(void) mov esi, 18h; unsigned __int64 mov rdi, r13; void * call __ZdlPvm; operator delete(void *,ulong) mov rax, [rbp+0] mov rdi, rbp call qword ptr [rax+8] loc_8BBE: mov r13, r12 cmp r12, r15 jnz short loc_8B60 loc_8BC6: mov rsi, [rsp+48h+var_40] cmp qword ptr [rsi+20h], 0 jz short loc_8BD7 mov rsi, [rsi] jmp short loc_8BEC loc_8BD7: mov rax, [rsp+48h+var_38] mov rdi, [rax+8] add rdi, 28h ; '(' call _ZNSt10_HashtableIPvSt4pairIKS0_NSt7__cxx114listIS0_SaIS0_EEEESaIS7_ENSt8__detail10_Select1stESt8equal_toIS0_ESt4hashIS0_ENS9_18_Mod_range_hashingENS9_20_Default_ranged_hashENS9_20_Prime_rehash_policyENS9_17_Hashtable_traitsILb0ELb0ELb1EEEE5eraseENS9_20_Node_const_iteratorIS7_Lb0ELb0EEE; std::_Hashtable<void *,std::pair<void * const,std::list<void *>>,std::allocator<std::pair<void * const,std::list<void *>>>,std::__detail::_Select1st,std::equal_to<void *>,std::hash<void *>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::erase(std::__detail::_Node_const_iterator<std::pair<void * const,std::list<void *>>,false,false>) mov rsi, rax loc_8BEC: test rsi, rsi jnz loc_8B4E loc_8BF5: add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
_QWORD * ModbusObject::disconnect(ModbusObject *this, _QWORD *a2, _QWORD *a3) { _QWORD *result; // rax _QWORD *v5; // rsi std::__detail::_List_node_base *v7; // r13 long long *v8; // rbp long long v9; // rax std::__detail::_List_node_base *v10; // r12 result = (_QWORD *)*((_QWORD *)this + 1); v5 = (_QWORD *)result[7]; if ( v5 ) { while ( 1 ) { v7 = (std::__detail::_List_node_base *)v5[2]; if ( v7 != (std::__detail::_List_node_base *)(v5 + 2) ) break; LABEL_11: if ( v5[4] ) { v5 = (_QWORD *)*v5; } else { result = (_QWORD *)std::_Hashtable<void *,std::pair<void * const,std::list<void *>>,std::allocator<std::pair<void * const,std::list<void *>>>,std::__detail::_Select1st,std::equal_to<void *>,std::hash<void *>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::erase(*((_QWORD *)this + 1) + 40LL); v5 = result; } if ( !v5 ) return result; } while ( 1 ) { v8 = (long long *)*((_QWORD *)v7 + 2); v9 = *v8; if ( a2 ) { result = (_QWORD *)(*(long long ( **)(_QWORD))(v9 + 16))(*((_QWORD *)v7 + 2)); if ( result != a2 ) goto LABEL_8; if ( !a3 ) goto LABEL_9; v9 = *v8; } result = (_QWORD *)(*(long long ( **)(long long *))(v9 + 24))(v8); if ( result == a3 ) { LABEL_9: v10 = *(std::__detail::_List_node_base **)v7; --v5[4]; std::__detail::_List_node_base::_M_unhook(v7); operator delete(v7, 0x18uLL); result = (_QWORD *)(*(long long ( **)(long long *))(*v8 + 8))(v8); goto LABEL_10; } LABEL_8: v10 = *(std::__detail::_List_node_base **)v7; LABEL_10: v7 = v10; if ( v10 == (std::__detail::_List_node_base *)(v5 + 2) ) goto LABEL_11; } } return result; }
disconnect: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R14,RSI MOV qword ptr [RSP + 0x10],RDI MOV RAX,qword ptr [RDI + 0x8] MOV RSI,qword ptr [RAX + 0x38] TEST RSI,RSI JZ 0x00108bf5 MOV RBX,RDX LAB_00108b4e: LEA R15,[RSI + 0x10] MOV qword ptr [RSP + 0x8],RSI MOV R13,qword ptr [RSI + 0x10] CMP R13,R15 JZ 0x00108bc6 LAB_00108b60: MOV RBP,qword ptr [R13 + 0x10] MOV RAX,qword ptr [RBP] TEST R14,R14 JZ 0x00108b81 MOV RDI,RBP CALL qword ptr [RAX + 0x10] CMP RAX,R14 JNZ 0x00108b8c TEST RBX,RBX JZ 0x00108b92 MOV RAX,qword ptr [RBP] LAB_00108b81: MOV RDI,RBP CALL qword ptr [RAX + 0x18] CMP RAX,RBX JZ 0x00108b92 LAB_00108b8c: MOV R12,qword ptr [R13] JMP 0x00108bbe LAB_00108b92: MOV R12,qword ptr [R13] MOV RAX,qword ptr [RSP + 0x8] DEC qword ptr [RAX + 0x20] MOV RDI,R13 CALL 0x00105500 MOV ESI,0x18 MOV RDI,R13 CALL 0x00105310 MOV RAX,qword ptr [RBP] MOV RDI,RBP CALL qword ptr [RAX + 0x8] LAB_00108bbe: MOV R13,R12 CMP R12,R15 JNZ 0x00108b60 LAB_00108bc6: MOV RSI,qword ptr [RSP + 0x8] CMP qword ptr [RSI + 0x20],0x0 JZ 0x00108bd7 MOV RSI,qword ptr [RSI] JMP 0x00108bec LAB_00108bd7: MOV RAX,qword ptr [RSP + 0x10] MOV RDI,qword ptr [RAX + 0x8] ADD RDI,0x28 CALL 0x001090a6 MOV RSI,RAX LAB_00108bec: TEST RSI,RSI JNZ 0x00108b4e LAB_00108bf5: ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* ModbusObject::disconnect(void*, void*) */ void __thiscall ModbusObject::disconnect(ModbusObject *this,void *param_1,void *param_2) { long *plVar1; int8 *puVar2; int8 *puVar3; void *pvVar4; long lVar5; int8 *puVar6; puVar6 = *(int8 **)(*(long *)(this + 8) + 0x38); do { if (puVar6 == (int8 *)0x0) { return; } puVar3 = (int8 *)puVar6[2]; while (puVar3 != puVar6 + 2) { plVar1 = (long *)puVar3[2]; lVar5 = *plVar1; if (param_1 == (void *)0x0) { LAB_00108b81: pvVar4 = (void *)(**(code **)(lVar5 + 0x18))(plVar1); if (pvVar4 != param_2) goto LAB_00108b8c; LAB_00108b92: puVar2 = (int8 *)*puVar3; puVar6[4] = puVar6[4] + -1; std::__detail::_List_node_base::_M_unhook(); operator_delete(puVar3,0x18); (**(code **)(*plVar1 + 8))(plVar1); puVar3 = puVar2; } else { pvVar4 = (void *)(**(code **)(lVar5 + 0x10))(plVar1); if (pvVar4 == param_1) { if (param_2 != (void *)0x0) { lVar5 = *plVar1; goto LAB_00108b81; } goto LAB_00108b92; } LAB_00108b8c: puVar3 = (int8 *)*puVar3; } } if (puVar6[4] == 0) { puVar6 = (int8 *) std:: _Hashtable<void*,std::pair<void*const,std::__cxx11::list<void*,std::allocator<void*>>>,std::allocator<std::pair<void*const,std::__cxx11::list<void*,std::allocator<void*>>>>,std::__detail::_Select1st,std::equal_to<void*>,std::hash<void*>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>> ::erase((_Hashtable<void*,std::pair<void*const,std::__cxx11::list<void*,std::allocator<void*>>>,std::allocator<std::pair<void*const,std::__cxx11::list<void*,std::allocator<void*>>>>,std::__detail::_Select1st,std::equal_to<void*>,std::hash<void*>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>> *)(*(long *)(this + 8) + 0x28)); } else { puVar6 = (int8 *)*puVar6; } } while( true ); }
65,344
check_mb_eucjpms
eloqsql/libmariadb/libmariadb/ma_charset.c
static unsigned int check_mb_eucjpms(const char *start, const char *end) { if (*((uchar *)start) < 0x80) { return 0; /* invalid eucjpms character */ } if (valid_eucjpms(start[0]) && (end - start) > 1 && valid_eucjpms(start[1])) { return 2; } if (valid_eucjpms_ss2(start[0]) && (end - start) > 1 && valid_eucjpms_kata(start[1])) { return 2; } if (valid_eucjpms_ss3(start[0]) && (end - start) > 2 && valid_eucjpms(start[1]) && valid_eucjpms(start[2])) { return 2; } return 0; }
O0
c
check_mb_eucjpms: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rax movzbl (%rax), %eax cmpl $0x80, %eax jge 0x46ce6 movl $0x0, -0x4(%rbp) jmp 0x46e2d movq -0x10(%rbp), %rax movsbl (%rax), %eax andl $0xff, %eax cmpl $0xa1, %eax jl 0x46d51 movq -0x10(%rbp), %rax movsbl (%rax), %eax andl $0xff, %eax cmpl $0xfe, %eax jg 0x46d51 movq -0x18(%rbp), %rax movq -0x10(%rbp), %rcx subq %rcx, %rax cmpq $0x1, %rax jle 0x46d51 movq -0x10(%rbp), %rax movsbl 0x1(%rax), %eax andl $0xff, %eax cmpl $0xa1, %eax jl 0x46d51 movq -0x10(%rbp), %rax movsbl 0x1(%rax), %eax andl $0xff, %eax cmpl $0xfe, %eax jg 0x46d51 movl $0x2, -0x4(%rbp) jmp 0x46e2d movq -0x10(%rbp), %rax movsbl (%rax), %eax andl $0xff, %eax cmpl $0x8e, %eax jne 0x46da9 movq -0x18(%rbp), %rax movq -0x10(%rbp), %rcx subq %rcx, %rax cmpq $0x1, %rax jle 0x46da9 movq -0x10(%rbp), %rax movsbl 0x1(%rax), %eax andl $0xff, %eax cmpl $0xa1, %eax jl 0x46da9 movq -0x10(%rbp), %rax movsbl 0x1(%rax), %eax andl $0xff, %eax cmpl $0xdf, %eax jg 0x46da9 movl $0x2, -0x4(%rbp) jmp 0x46e2d movq -0x10(%rbp), %rax movsbl (%rax), %eax andl $0xff, %eax cmpl $0x8f, %eax jne 0x46e26 movq -0x18(%rbp), %rax movq -0x10(%rbp), %rcx subq %rcx, %rax cmpq $0x2, %rax jle 0x46e26 movq -0x10(%rbp), %rax movsbl 0x1(%rax), %eax andl $0xff, %eax cmpl $0xa1, %eax jl 0x46e26 movq -0x10(%rbp), %rax movsbl 0x1(%rax), %eax andl $0xff, %eax cmpl $0xfe, %eax jg 0x46e26 movq -0x10(%rbp), %rax movsbl 0x2(%rax), %eax andl $0xff, %eax cmpl $0xa1, %eax jl 0x46e26 movq -0x10(%rbp), %rax movsbl 0x2(%rax), %eax andl $0xff, %eax cmpl $0xfe, %eax jg 0x46e26 movl $0x2, -0x4(%rbp) jmp 0x46e2d movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopw %cs:(%rax,%rax)
check_mb_eucjpms: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rax, [rbp+var_10] movzx eax, byte ptr [rax] cmp eax, 80h jge short loc_46CE6 mov [rbp+var_4], 0 jmp loc_46E2D loc_46CE6: mov rax, [rbp+var_10] movsx eax, byte ptr [rax] and eax, 0FFh cmp eax, 0A1h jl short loc_46D51 mov rax, [rbp+var_10] movsx eax, byte ptr [rax] and eax, 0FFh cmp eax, 0FEh jg short loc_46D51 mov rax, [rbp+var_18] mov rcx, [rbp+var_10] sub rax, rcx cmp rax, 1 jle short loc_46D51 mov rax, [rbp+var_10] movsx eax, byte ptr [rax+1] and eax, 0FFh cmp eax, 0A1h jl short loc_46D51 mov rax, [rbp+var_10] movsx eax, byte ptr [rax+1] and eax, 0FFh cmp eax, 0FEh jg short loc_46D51 mov [rbp+var_4], 2 jmp loc_46E2D loc_46D51: mov rax, [rbp+var_10] movsx eax, byte ptr [rax] and eax, 0FFh cmp eax, 8Eh jnz short loc_46DA9 mov rax, [rbp+var_18] mov rcx, [rbp+var_10] sub rax, rcx cmp rax, 1 jle short loc_46DA9 mov rax, [rbp+var_10] movsx eax, byte ptr [rax+1] and eax, 0FFh cmp eax, 0A1h jl short loc_46DA9 mov rax, [rbp+var_10] movsx eax, byte ptr [rax+1] and eax, 0FFh cmp eax, 0DFh jg short loc_46DA9 mov [rbp+var_4], 2 jmp loc_46E2D loc_46DA9: mov rax, [rbp+var_10] movsx eax, byte ptr [rax] and eax, 0FFh cmp eax, 8Fh jnz short loc_46E26 mov rax, [rbp+var_18] mov rcx, [rbp+var_10] sub rax, rcx cmp rax, 2 jle short loc_46E26 mov rax, [rbp+var_10] movsx eax, byte ptr [rax+1] and eax, 0FFh cmp eax, 0A1h jl short loc_46E26 mov rax, [rbp+var_10] movsx eax, byte ptr [rax+1] and eax, 0FFh cmp eax, 0FEh jg short loc_46E26 mov rax, [rbp+var_10] movsx eax, byte ptr [rax+2] and eax, 0FFh cmp eax, 0A1h jl short loc_46E26 mov rax, [rbp+var_10] movsx eax, byte ptr [rax+2] and eax, 0FFh cmp eax, 0FEh jg short loc_46E26 mov [rbp+var_4], 2 jmp short loc_46E2D loc_46E26: mov [rbp+var_4], 0 loc_46E2D: mov eax, [rbp+var_4] pop rbp retn
long long check_mb_eucjpms(unsigned __int8 *a1, long long a2) { if ( *a1 >= 0x80u ) { if ( *a1 < 0xA1u || *a1 == 255 || a2 - (long long)a1 <= 1 || a1[1] < 0xA1u || a1[1] == 255 ) { if ( *a1 == 142 && a2 - (long long)a1 > 1 && a1[1] >= 0xA1u && a1[1] <= 0xDFu ) { return 2; } else if ( *a1 != 143 || a2 - (long long)a1 <= 2 || a1[1] < 0xA1u || a1[1] == 255 || a1[2] < 0xA1u || a1[2] == 255 ) { return 0; } else { return 2; } } else { return 2; } } else { return 0; } }
check_mb_eucjpms: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX] CMP EAX,0x80 JGE 0x00146ce6 MOV dword ptr [RBP + -0x4],0x0 JMP 0x00146e2d LAB_00146ce6: MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX] AND EAX,0xff CMP EAX,0xa1 JL 0x00146d51 MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX] AND EAX,0xff CMP EAX,0xfe JG 0x00146d51 MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x10] SUB RAX,RCX CMP RAX,0x1 JLE 0x00146d51 MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX + 0x1] AND EAX,0xff CMP EAX,0xa1 JL 0x00146d51 MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX + 0x1] AND EAX,0xff CMP EAX,0xfe JG 0x00146d51 MOV dword ptr [RBP + -0x4],0x2 JMP 0x00146e2d LAB_00146d51: MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX] AND EAX,0xff CMP EAX,0x8e JNZ 0x00146da9 MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x10] SUB RAX,RCX CMP RAX,0x1 JLE 0x00146da9 MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX + 0x1] AND EAX,0xff CMP EAX,0xa1 JL 0x00146da9 MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX + 0x1] AND EAX,0xff CMP EAX,0xdf JG 0x00146da9 MOV dword ptr [RBP + -0x4],0x2 JMP 0x00146e2d LAB_00146da9: MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX] AND EAX,0xff CMP EAX,0x8f JNZ 0x00146e26 MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x10] SUB RAX,RCX CMP RAX,0x2 JLE 0x00146e26 MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX + 0x1] AND EAX,0xff CMP EAX,0xa1 JL 0x00146e26 MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX + 0x1] AND EAX,0xff CMP EAX,0xfe JG 0x00146e26 MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX + 0x2] AND EAX,0xff CMP EAX,0xa1 JL 0x00146e26 MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX + 0x2] AND EAX,0xff CMP EAX,0xfe JG 0x00146e26 MOV dword ptr [RBP + -0x4],0x2 JMP 0x00146e2d LAB_00146e26: MOV dword ptr [RBP + -0x4],0x0 LAB_00146e2d: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int4 check_mb_eucjpms(byte *param_1,long param_2) { int4 local_c; if (*param_1 < 0x80) { local_c = 0; } else if ((((*param_1 < 0xa1) || (0xfe < *param_1)) || (param_2 - (long)param_1 < 2)) || ((param_1[1] < 0xa1 || (0xfe < param_1[1])))) { if (((*param_1 == 0x8e) && ((1 < param_2 - (long)param_1 && (0xa0 < param_1[1])))) && (param_1[1] < 0xe0)) { local_c = 2; } else if (((((*param_1 == 0x8f) && (2 < param_2 - (long)param_1)) && (0xa0 < param_1[1])) && ((param_1[1] < 0xff && (0xa0 < param_1[2])))) && (param_1[2] < 0xff)) { local_c = 2; } else { local_c = 0; } } else { local_c = 2; } return local_c; }
65,345
check_mb_eucjpms
eloqsql/libmariadb/libmariadb/ma_charset.c
static unsigned int check_mb_eucjpms(const char *start, const char *end) { if (*((uchar *)start) < 0x80) { return 0; /* invalid eucjpms character */ } if (valid_eucjpms(start[0]) && (end - start) > 1 && valid_eucjpms(start[1])) { return 2; } if (valid_eucjpms_ss2(start[0]) && (end - start) > 1 && valid_eucjpms_kata(start[1])) { return 2; } if (valid_eucjpms_ss3(start[0]) && (end - start) > 2 && valid_eucjpms(start[1]) && valid_eucjpms(start[2])) { return 2; } return 0; }
O3
c
check_mb_eucjpms: pushq %rbp movq %rsp, %rbp movb (%rdi), %cl xorl %eax, %eax testb %cl, %cl jns 0x3196d leal 0x5f(%rcx), %eax cmpb $0x5e, %al setae %al subq %rdi, %rsi cmpq $0x2, %rsi setl %dl orb %al, %dl jne 0x3191f movb 0x1(%rdi), %cl incb %cl movl $0x2, %eax cmpb $-0x5e, %cl jb 0x3196b jmp 0x3196d cmpq $0x2, %rsi setl %al cmpb $-0x72, %cl setne %dl orb %al, %dl jne 0x31942 movb 0x1(%rdi), %cl addb $0x5f, %cl movl $0x2, %eax cmpb $0x3f, %cl jae 0x3196b jmp 0x3196d cmpb $-0x71, %cl setne %al cmpq $0x3, %rsi setl %cl orb %al, %cl jne 0x3196b movb 0x1(%rdi), %al incb %al cmpb $-0x5e, %al jb 0x3196b movb 0x2(%rdi), %cl incb %cl movl $0x2, %eax cmpb $-0x5f, %cl ja 0x3196d xorl %eax, %eax popq %rbp retq
check_mb_eucjpms: push rbp mov rbp, rsp mov cl, [rdi] xor eax, eax test cl, cl jns short loc_3196D lea eax, [rcx+5Fh] cmp al, 5Eh ; '^' setnb al sub rsi, rdi cmp rsi, 2 setl dl or dl, al jnz short loc_3191F mov cl, [rdi+1] inc cl mov eax, 2 cmp cl, 0A2h jb short loc_3196B jmp short loc_3196D loc_3191F: cmp rsi, 2 setl al cmp cl, 8Eh setnz dl or dl, al jnz short loc_31942 mov cl, [rdi+1] add cl, 5Fh ; '_' mov eax, 2 cmp cl, 3Fh ; '?' jnb short loc_3196B jmp short loc_3196D loc_31942: cmp cl, 8Fh setnz al cmp rsi, 3 setl cl or cl, al jnz short loc_3196B mov al, [rdi+1] inc al cmp al, 0A2h jb short loc_3196B mov cl, [rdi+2] inc cl mov eax, 2 cmp cl, 0A1h ja short loc_3196D loc_3196B: xor eax, eax loc_3196D: pop rbp retn
long long check_mb_eucjpms(char *a1, long long a2) { char v2; // cl long long result; // rax long long v4; // rsi v2 = *a1; result = 0LL; if ( *a1 < 0 ) { v4 = a2 - (_QWORD)a1; if ( (unsigned __int8)(v2 + 95) < 0x5Eu && v4 >= 2 ) { result = 2LL; if ( (unsigned __int8)(a1[1] + 1) >= 0xA2u ) return result; return 0LL; } if ( v4 < 2 || v2 != -114 ) { if ( v2 != -113 || v4 < 3 ) return 0LL; if ( (unsigned __int8)(a1[1] + 1) < 0xA2u ) return 0LL; result = 2LL; if ( (unsigned __int8)(a1[2] + 1) <= 0xA1u ) return 0LL; } else { result = 2LL; if ( (unsigned __int8)(a1[1] + 95) >= 0x3Fu ) return 0LL; } } return result; }
check_mb_eucjpms: PUSH RBP MOV RBP,RSP MOV CL,byte ptr [RDI] XOR EAX,EAX TEST CL,CL JNS 0x0013196d LEA EAX,[RCX + 0x5f] CMP AL,0x5e SETNC AL SUB RSI,RDI CMP RSI,0x2 SETL DL OR DL,AL JNZ 0x0013191f MOV CL,byte ptr [RDI + 0x1] INC CL MOV EAX,0x2 CMP CL,0xa2 JC 0x0013196b JMP 0x0013196d LAB_0013191f: CMP RSI,0x2 SETL AL CMP CL,0x8e SETNZ DL OR DL,AL JNZ 0x00131942 MOV CL,byte ptr [RDI + 0x1] ADD CL,0x5f MOV EAX,0x2 CMP CL,0x3f JNC 0x0013196b JMP 0x0013196d LAB_00131942: CMP CL,0x8f SETNZ AL CMP RSI,0x3 SETL CL OR CL,AL JNZ 0x0013196b MOV AL,byte ptr [RDI + 0x1] INC AL CMP AL,0xa2 JC 0x0013196b MOV CL,byte ptr [RDI + 0x2] INC CL MOV EAX,0x2 CMP CL,0xa1 JA 0x0013196d LAB_0013196b: XOR EAX,EAX LAB_0013196d: POP RBP RET
int8 check_mb_eucjpms(char *param_1,long param_2) { char cVar1; cVar1 = *param_1; if (-1 < cVar1) { return 0; } param_2 = param_2 - (long)param_1; if (param_2 < 2 || 0x5d < (byte)(cVar1 + 0x5fU)) { if (cVar1 == -0x72 && 1 < param_2) { if (0x3e < (byte)(param_1[1] + 0x5fU)) { return 0; } return 2; } if (param_2 < 3 || cVar1 != -0x71) { return 0; } if ((byte)(param_1[1] + 1U) < 0xa2) { return 0; } cVar1 = param_1[2]; } else { cVar1 = param_1[1]; } if ((byte)(cVar1 + 1U) < 0xa2) { return 0; } return 2; }
65,346
mysql_close_cont
eloqsql/libmariadb/libmariadb/mariadb_async.c
int STDCALL mysql_close_cont(MYSQL *sock, int ready_status) { int res; res= mysql_close_slow_part_cont(sock, ready_status); if (res) return res; mysql_close(sock); return 0; }
O0
c
mysql_close_cont: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq -0x10(%rbp), %rdi movl -0x14(%rbp), %esi callq 0x53fd0 movl %eax, -0x18(%rbp) cmpl $0x0, -0x18(%rbp) je 0x541bc movl -0x18(%rbp), %eax movl %eax, -0x4(%rbp) jmp 0x541cc movq -0x10(%rbp), %rdi callq 0x381f0 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
mysql_close_cont: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov rdi, [rbp+var_10] mov esi, [rbp+var_14] call mysql_close_slow_part_cont mov [rbp+var_18], eax cmp [rbp+var_18], 0 jz short loc_541BC mov eax, [rbp+var_18] mov [rbp+var_4], eax jmp short loc_541CC loc_541BC: mov rdi, [rbp+var_10] call mysql_close mov [rbp+var_4], 0 loc_541CC: mov eax, [rbp+var_4] add rsp, 20h pop rbp retn
long long mysql_close_cont(long long a1, unsigned int a2) { unsigned int v3; // [rsp+8h] [rbp-18h] v3 = mysql_close_slow_part_cont(a1, a2); if ( v3 ) { return v3; } else { mysql_close(a1); return 0; } }
mysql_close_cont: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV RDI,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RBP + -0x14] CALL 0x00153fd0 MOV dword ptr [RBP + -0x18],EAX CMP dword ptr [RBP + -0x18],0x0 JZ 0x001541bc MOV EAX,dword ptr [RBP + -0x18] MOV dword ptr [RBP + -0x4],EAX JMP 0x001541cc LAB_001541bc: MOV RDI,qword ptr [RBP + -0x10] CALL 0x001381f0 MOV dword ptr [RBP + -0x4],0x0 LAB_001541cc: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x20 POP RBP RET
int mysql_close_cont(int8 param_1,int4 param_2) { int4 local_c; local_c = mysql_close_slow_part_cont(param_1,param_2); if (local_c == 0) { mysql_close(param_1); local_c = 0; } return local_c; }
65,347
ma_set_data_pagecache_callbacks
eloqsql/storage/maria/ma_open.c
void _ma_set_data_pagecache_callbacks(PAGECACHE_FILE *file, MARIA_SHARE *share) { pagecache_file_set_null_hooks(file); file->callback_data= (uchar*) share; file->flush_log_callback= &maria_flush_log_for_page_none; /* Do nothing */ file->post_write_hook= maria_page_write_failure; if (share->temporary) { file->post_read_hook= &maria_page_crc_check_none; file->pre_write_hook= &maria_page_filler_set_none; } else { file->post_read_hook= &maria_page_crc_check_data; if (share->options & HA_OPTION_PAGE_CHECKSUM) file->pre_write_hook= &maria_page_crc_set_normal; else file->pre_write_hook= &maria_page_filler_set_normal; if (share->now_transactional) file->flush_log_callback= maria_flush_log_for_page; } if (MY_TEST(share->base.extra_options & MA_EXTRA_OPTIONS_ENCRYPTED)) { ma_crypt_set_data_pagecache_callbacks(file, share); } }
O3
c
ma_set_data_pagecache_callbacks: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rsi, %rbx movq %rdi, %r14 callq 0x73003 movq %rbx, 0x40(%r14) leaq 0x3d2b4(%rip), %rax # 0x74dd4 movq %rax, 0x38(%r14) leaq 0x3d243(%rip), %rax # 0x74d6e movq %rax, 0x30(%r14) cmpb $0x0, 0x7d9(%rbx) je 0x37b50 leaq 0x3d1e2(%rip), %rax # 0x74d21 movq %rax, 0x20(%r14) leaq 0x3d21c(%rip), %rax # 0x74d66 movq %rax, 0x28(%r14) jmp 0x37b8d leaq 0x3d120(%rip), %rax # 0x74c77 movq %rax, 0x20(%r14) btl $0xb, 0x720(%rbx) jb 0x37b6e leaq 0x3d1c0(%rip), %rax # 0x74d2c jmp 0x37b75 leaq 0x3d076(%rip), %rax # 0x74beb movq %rax, 0x28(%r14) cmpb $0x0, 0x7e7(%rbx) je 0x37b8d leaq 0x3d1fa(%rip), %rax # 0x74d83 movq %rax, 0x38(%r14) testb $0x1, 0x428(%rbx) jne 0x37b9b popq %rbx popq %r14 popq %rbp retq movq %r14, %rdi movq %rbx, %rsi popq %rbx popq %r14 popq %rbp jmp 0x756f3
_ma_set_data_pagecache_callbacks: push rbp mov rbp, rsp push r14 push rbx mov rbx, rsi mov r14, rdi call pagecache_file_set_null_hooks mov [r14+40h], rbx lea rax, maria_flush_log_for_page_none mov [r14+38h], rax lea rax, maria_page_write_failure mov [r14+30h], rax cmp byte ptr [rbx+7D9h], 0 jz short loc_37B50 lea rax, maria_page_crc_check_none mov [r14+20h], rax lea rax, maria_page_filler_set_none mov [r14+28h], rax jmp short loc_37B8D loc_37B50: lea rax, maria_page_crc_check_data mov [r14+20h], rax bt dword ptr [rbx+720h], 0Bh jb short loc_37B6E lea rax, maria_page_filler_set_normal jmp short loc_37B75 loc_37B6E: lea rax, maria_page_crc_set_normal loc_37B75: mov [r14+28h], rax cmp byte ptr [rbx+7E7h], 0 jz short loc_37B8D lea rax, maria_flush_log_for_page mov [r14+38h], rax loc_37B8D: test byte ptr [rbx+428h], 1 jnz short loc_37B9B pop rbx pop r14 pop rbp retn loc_37B9B: mov rdi, r14 mov rsi, rbx pop rbx pop r14 pop rbp jmp ma_crypt_set_data_pagecache_callbacks
long long ( * ma_set_data_pagecache_callbacks(_QWORD *a1, long long a2))() { long long ( *result)(); // rax pagecache_file_set_null_hooks(); a1[8] = a2; a1[7] = maria_flush_log_for_page_none; a1[6] = maria_page_write_failure; if ( *(_BYTE *)(a2 + 2009) ) { a1[4] = maria_page_crc_check_none; result = maria_page_filler_set_none; a1[5] = maria_page_filler_set_none; } else { a1[4] = maria_page_crc_check_data; if ( _bittest((const signed __int32 *)(a2 + 1824), 0xBu) ) result = maria_page_crc_set_normal; else result = maria_page_filler_set_normal; a1[5] = result; if ( *(_BYTE *)(a2 + 2023) ) { result = maria_flush_log_for_page; a1[7] = maria_flush_log_for_page; } } if ( (*(_BYTE *)(a2 + 1064) & 1) != 0 ) return (long long ( *)())ma_crypt_set_data_pagecache_callbacks(a1, a2); return result; }
_ma_set_data_pagecache_callbacks: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV RBX,RSI MOV R14,RDI CALL 0x00173003 MOV qword ptr [R14 + 0x40],RBX LEA RAX,[0x174dd4] MOV qword ptr [R14 + 0x38],RAX LEA RAX,[0x174d6e] MOV qword ptr [R14 + 0x30],RAX CMP byte ptr [RBX + 0x7d9],0x0 JZ 0x00137b50 LEA RAX,[0x174d21] MOV qword ptr [R14 + 0x20],RAX LEA RAX,[0x174d66] MOV qword ptr [R14 + 0x28],RAX JMP 0x00137b8d LAB_00137b50: LEA RAX,[0x174c77] MOV qword ptr [R14 + 0x20],RAX BT dword ptr [RBX + 0x720],0xb JC 0x00137b6e LEA RAX,[0x174d2c] JMP 0x00137b75 LAB_00137b6e: LEA RAX,[0x174beb] LAB_00137b75: MOV qword ptr [R14 + 0x28],RAX CMP byte ptr [RBX + 0x7e7],0x0 JZ 0x00137b8d LEA RAX,[0x174d83] MOV qword ptr [R14 + 0x38],RAX LAB_00137b8d: TEST byte ptr [RBX + 0x428],0x1 JNZ 0x00137b9b POP RBX POP R14 POP RBP RET LAB_00137b9b: MOV RDI,R14 MOV RSI,RBX POP RBX POP R14 POP RBP JMP 0x001756f3
void _ma_set_data_pagecache_callbacks(long param_1,long param_2) { code *pcVar1; pagecache_file_set_null_hooks(); *(long *)(param_1 + 0x40) = param_2; *(code **)(param_1 + 0x38) = maria_flush_log_for_page_none; *(code **)(param_1 + 0x30) = maria_page_write_failure; if (*(char *)(param_2 + 0x7d9) == '\0') { *(code **)(param_1 + 0x20) = maria_page_crc_check_data; if ((*(uint *)(param_2 + 0x720) >> 0xb & 1) == 0) { pcVar1 = maria_page_filler_set_normal; } else { pcVar1 = maria_page_crc_set_normal; } *(code **)(param_1 + 0x28) = pcVar1; if (*(char *)(param_2 + 0x7e7) != '\0') { *(code **)(param_1 + 0x38) = maria_flush_log_for_page; } } else { *(code **)(param_1 + 0x20) = maria_page_crc_check_none; *(code **)(param_1 + 0x28) = maria_page_filler_set_none; } if ((*(byte *)(param_2 + 0x428) & 1) == 0) { return; } ma_crypt_set_data_pagecache_callbacks(param_1,param_2); return; }
65,348
sessions::refresh_scoreboard()
untodesu[P]voxelius/game/server/sessions.cc
void sessions::refresh_scoreboard(void) { protocol::ScoreboardUpdate packet; for(std::size_t i = 0; i < sessions::max_players.get_value(); ++i) { if(!sessions_vector[i].peer) continue; packet.names.push_back(sessions_vector[i].client_username); } protocol::broadcast(globals::server_host, protocol::encode(packet)); }
O0
cpp
sessions::refresh_scoreboard(): pushq %rbp movq %rsp, %rbp subq $0x60, %rsp leaq -0x28(%rbp), %rdi callq 0x5d900 movq $0x0, -0x30(%rbp) movq -0x30(%rbp), %rax movq %rax, -0x48(%rbp) leaq 0x276598(%rip), %rdi # 0x2d13f0 callq 0x24710 movl %eax, -0x40(%rbp) jmp 0x5ae62 movq -0x48(%rbp), %rax movl -0x40(%rbp), %ecx movl %ecx, %ecx cmpq %rcx, %rax jae 0x5aedd movq -0x30(%rbp), %rsi leaq 0x27662d(%rip), %rdi # 0x2d14a8 callq 0x5d0c0 cmpq $0x0, 0x40(%rax) jne 0x5aea0 jmp 0x5aecc movq %rax, %rcx movl %edx, %eax movq %rcx, -0x38(%rbp) movl %eax, -0x3c(%rbp) leaq -0x28(%rbp), %rdi callq 0x5d9b0 jmp 0x5af1d leaq -0x18(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x30(%rbp), %rsi leaq 0x2765f5(%rip), %rdi # 0x2d14a8 callq 0x5d0c0 movq -0x50(%rbp), %rdi movq %rax, %rsi addq $0x10, %rsi callq 0x5d940 jmp 0x5aeca jmp 0x5aecc movq -0x30(%rbp), %rax addq $0x1, %rax movq %rax, -0x30(%rbp) jmp 0x5ae49 leaq 0x27636c(%rip), %rax # 0x2d1250 movq (%rax), %rax movq %rax, -0x60(%rbp) leaq -0x28(%rbp), %rdi movl $0x1, %esi callq 0xbd430 movq %rax, -0x58(%rbp) jmp 0x5aeff movq -0x58(%rbp), %rsi movq -0x60(%rbp), %rdi callq 0xbd7e0 jmp 0x5af0e leaq -0x28(%rbp), %rdi callq 0x5d9b0 addq $0x60, %rsp popq %rbp retq movq -0x38(%rbp), %rdi callq 0x1aff0 nopw %cs:(%rax,%rax)
_ZN8sessions18refresh_scoreboardEv: push rbp mov rbp, rsp sub rsp, 60h lea rdi, [rbp+var_28]; this call _ZN8protocol16ScoreboardUpdateC2Ev; protocol::ScoreboardUpdate::ScoreboardUpdate(void) mov [rbp+var_30], 0 loc_5AE49: mov rax, [rbp+var_30] mov [rbp+var_48], rax lea rdi, _ZN8sessions11max_playersE; sessions::max_players call _ZNK12ConfigNumberIjE9get_valueEv; ConfigNumber<uint>::get_value(void) mov [rbp+var_40], eax jmp short $+2 loc_5AE62: mov rax, [rbp+var_48] mov ecx, [rbp+var_40] mov ecx, ecx cmp rax, rcx jnb short loc_5AEDD mov rsi, [rbp+var_30] lea rdi, _ZL15sessions_vector; sessions_vector call _ZNSt6vectorI7SessionSaIS0_EEixEm; std::vector<Session>::operator[](ulong) cmp qword ptr [rax+40h], 0 jnz short loc_5AEA0 jmp short loc_5AECC mov rcx, rax mov eax, edx mov [rbp+var_38], rcx mov [rbp+var_3C], eax lea rdi, [rbp+var_28]; this call _ZN8protocol16ScoreboardUpdateD2Ev; protocol::ScoreboardUpdate::~ScoreboardUpdate() jmp short loc_5AF1D loc_5AEA0: lea rax, [rbp+var_18] mov [rbp+var_50], rax mov rsi, [rbp+var_30] lea rdi, _ZL15sessions_vector; sessions_vector call _ZNSt6vectorI7SessionSaIS0_EEixEm; std::vector<Session>::operator[](ulong) mov rdi, [rbp+var_50] mov rsi, rax add rsi, 10h call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_; std::vector<std::string>::push_back(std::string const&) jmp short $+2 loc_5AECA: jmp short $+2 loc_5AECC: mov rax, [rbp+var_30] add rax, 1 mov [rbp+var_30], rax jmp loc_5AE49 loc_5AEDD: lea rax, _ZN7globals11server_hostE; globals::server_host mov rax, [rax] mov [rbp+var_60], rax lea rdi, [rbp+var_28]; this mov esi, (offset dword_0+1); protocol::ScoreboardUpdate * call _ZN8protocol6encodeERKNS_16ScoreboardUpdateEj; protocol::encode(protocol::ScoreboardUpdate const&,uint) mov [rbp+var_58], rax jmp short $+2 loc_5AEFF: mov rsi, [rbp+var_58] mov rdi, [rbp+var_60] call _ZN8protocol9broadcastEP9_ENetHostP11_ENetPacket; protocol::broadcast(_ENetHost *,_ENetPacket *) jmp short $+2 loc_5AF0E: lea rdi, [rbp+var_28]; this call _ZN8protocol16ScoreboardUpdateD2Ev; protocol::ScoreboardUpdate::~ScoreboardUpdate() add rsp, 60h pop rbp retn loc_5AF1D: mov rdi, [rbp+var_38] call __Unwind_Resume
void sessions::refresh_scoreboard(sessions *this) { unsigned int v1; // edx long long v2; // rax long long v3; // [rsp+0h] [rbp-60h] long long v4; // [rsp+8h] [rbp-58h] unsigned long long i; // [rsp+30h] [rbp-30h] _BYTE v6[16]; // [rsp+38h] [rbp-28h] BYREF _BYTE v7[24]; // [rsp+48h] [rbp-18h] BYREF protocol::ScoreboardUpdate::ScoreboardUpdate((protocol::ScoreboardUpdate *)v6); for ( i = 0LL; i < (unsigned int)ConfigNumber<unsigned int>::get_value((long long)&sessions::max_players); ++i ) { if ( *(_QWORD *)(std::vector<Session>::operator[](&sessions_vector, i) + 64) ) { v2 = std::vector<Session>::operator[](&sessions_vector, i); std::vector<std::string>::push_back(v7, v2 + 16); } } v3 = globals::server_host; v4 = protocol::encode((protocol *)v6, (const protocol::ScoreboardUpdate *)((char *)&dword_0 + 1), v1); protocol::broadcast(v3, v4); protocol::ScoreboardUpdate::~ScoreboardUpdate((protocol::ScoreboardUpdate *)v6); }
refresh_scoreboard: PUSH RBP MOV RBP,RSP SUB RSP,0x60 LEA RDI,[RBP + -0x28] CALL 0x0015d900 MOV qword ptr [RBP + -0x30],0x0 LAB_0015ae49: MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x48],RAX LAB_0015ae51: LEA RDI,[0x3d13f0] CALL 0x00124710 MOV dword ptr [RBP + -0x40],EAX JMP 0x0015ae62 LAB_0015ae62: MOV RAX,qword ptr [RBP + -0x48] MOV ECX,dword ptr [RBP + -0x40] MOV ECX,ECX CMP RAX,RCX JNC 0x0015aedd MOV RSI,qword ptr [RBP + -0x30] LEA RDI,[0x3d14a8] CALL 0x0015d0c0 CMP qword ptr [RAX + 0x40],0x0 JNZ 0x0015aea0 JMP 0x0015aecc LAB_0015aea0: LEA RAX,[RBP + -0x18] MOV qword ptr [RBP + -0x50],RAX MOV RSI,qword ptr [RBP + -0x30] LEA RDI,[0x3d14a8] CALL 0x0015d0c0 MOV RDI,qword ptr [RBP + -0x50] MOV RSI,RAX ADD RSI,0x10 CALL 0x0015d940 JMP 0x0015aeca LAB_0015aeca: JMP 0x0015aecc LAB_0015aecc: MOV RAX,qword ptr [RBP + -0x30] ADD RAX,0x1 MOV qword ptr [RBP + -0x30],RAX JMP 0x0015ae49 LAB_0015aedd: LEA RAX,[0x3d1250] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x60],RAX LEA RDI,[RBP + -0x28] MOV ESI,0x1 CALL 0x001bd430 MOV qword ptr [RBP + -0x58],RAX JMP 0x0015aeff LAB_0015aeff: MOV RSI,qword ptr [RBP + -0x58] MOV RDI,qword ptr [RBP + -0x60] CALL 0x001bd7e0 LAB_0015af0c: JMP 0x0015af0e LAB_0015af0e: LEA RDI,[RBP + -0x28] CALL 0x0015d9b0 ADD RSP,0x60 POP RBP RET
/* sessions::refresh_scoreboard() */ void sessions::refresh_scoreboard(void) { _ENetHost *p_Var1; uint uVar2; long lVar3; _ENetPacket *p_Var4; ulong local_38; ScoreboardUpdate local_30 [16]; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> local_20 [24]; protocol::ScoreboardUpdate::ScoreboardUpdate(local_30); /* try { // try from 0015ae51 to 0015af0b has its CatchHandler @ 0015ae89 */ for (local_38 = 0; uVar2 = ConfigNumber<unsigned_int>::get_value((ConfigNumber<unsigned_int> *)max_players), p_Var1 = globals::server_host, local_38 < uVar2; local_38 = local_38 + 1) { lVar3 = std::vector<Session,std::allocator<Session>>::operator[] ((vector<Session,std::allocator<Session>> *)sessions_vector,local_38); if (*(long *)(lVar3 + 0x40) != 0) { lVar3 = std::vector<Session,std::allocator<Session>>::operator[] ((vector<Session,std::allocator<Session>> *)sessions_vector,local_38); std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::push_back (local_20,(string *)(lVar3 + 0x10)); } } p_Var4 = (_ENetPacket *)protocol::encode(local_30,1); protocol::broadcast(p_Var1,p_Var4); protocol::ScoreboardUpdate::~ScoreboardUpdate(local_30); return; }
65,349
store_page_range
eloqsql/storage/maria/ma_blockrec.c
static uchar *store_page_range(MARIA_SHARE *share, uchar *to, MARIA_BITMAP_BLOCK *block, ulong length, uint *tot_ranges) { uint data_size= FULL_PAGE_SIZE(share); ulong pages_left= (length + data_size -1) / data_size; uint page_count, ranges, empty_space; uchar *to_start; DBUG_ENTER("store_page_range"); to_start= to; to+= SUB_RANGE_SIZE; /* Store number of unused bytes at last page */ empty_space= (uint) (pages_left * data_size - length); int2store(to, empty_space); to+= BLOCK_FILLER_SIZE; ranges= 0; do { pgcache_page_no_t page; page= block->page; page_count= block->page_count; block++; if (page_count > pages_left) page_count= pages_left; page_store(to, page); to+= PAGE_STORE_SIZE; pagerange_store(to, page_count); to+= PAGERANGE_STORE_SIZE; ranges++; } while ((pages_left-= page_count)); /* Store number of ranges for this block */ int2store(to_start, ranges); (*tot_ranges)+= ranges; DBUG_RETURN(to); }
O0
c
store_page_range: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq -0x8(%rbp), %rax movl 0x7bc(%rax), %eax movq -0x8(%rbp), %rcx movl 0xc18(%rcx), %ecx addl $0x8, %ecx subl %ecx, %eax subl $0x4, %eax movl %eax, -0x2c(%rbp) movq -0x20(%rbp), %rax movl -0x2c(%rbp), %ecx addq %rcx, %rax subq $0x1, %rax movl -0x2c(%rbp), %ecx xorl %edx, %edx divq %rcx movq %rax, -0x38(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x10(%rbp), %rax addq $0x2, %rax movq %rax, -0x10(%rbp) movq -0x38(%rbp), %rax movl -0x2c(%rbp), %ecx imulq %rcx, %rax subq -0x20(%rbp), %rax movl %eax, -0x44(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x58(%rbp) movl -0x44(%rbp), %eax movw %ax, %cx movq -0x58(%rbp), %rax movw %cx, (%rax) movq -0x10(%rbp), %rax addq $0x2, %rax movq %rax, -0x10(%rbp) movl $0x0, -0x40(%rbp) movq -0x18(%rbp), %rax movq (%rax), %rax movq %rax, -0x60(%rbp) movq -0x18(%rbp), %rax movl 0x8(%rax), %eax movl %eax, -0x3c(%rbp) movq -0x18(%rbp), %rax addq $0x18, %rax movq %rax, -0x18(%rbp) movl -0x3c(%rbp), %eax cmpq -0x38(%rbp), %rax jbe 0x81f00 movq -0x38(%rbp), %rax movl %eax, -0x3c(%rbp) jmp 0x81f02 movq -0x10(%rbp), %rax movq %rax, -0x68(%rbp) movq -0x60(%rbp), %rax movl %eax, %ecx movq -0x68(%rbp), %rax movl %ecx, (%rax) movq -0x60(%rbp), %rax shrq $0x20, %rax movb %al, %cl movq -0x68(%rbp), %rax movb %cl, 0x4(%rax) movq -0x10(%rbp), %rax addq $0x5, %rax movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x70(%rbp) movl -0x3c(%rbp), %eax movw %ax, %cx movq -0x70(%rbp), %rax movw %cx, (%rax) movq -0x10(%rbp), %rax addq $0x2, %rax movq %rax, -0x10(%rbp) movl -0x40(%rbp), %eax addl $0x1, %eax movl %eax, -0x40(%rbp) movl -0x3c(%rbp), %eax movl %eax, %ecx movq -0x38(%rbp), %rax subq %rcx, %rax movq %rax, -0x38(%rbp) cmpq $0x0, %rax jne 0x81ecf jmp 0x81f79 movq -0x50(%rbp), %rax movq %rax, -0x78(%rbp) movl -0x40(%rbp), %eax movw %ax, %cx movq -0x78(%rbp), %rax movw %cx, (%rax) movl -0x40(%rbp), %ecx movq -0x28(%rbp), %rax addl (%rax), %ecx movl %ecx, (%rax) movq -0x10(%rbp), %rax movq %rax, -0x80(%rbp) movq -0x80(%rbp), %rax popq %rbp retq nopw (%rax,%rax)
store_page_range: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov rax, [rbp+var_8] mov eax, [rax+7BCh] mov rcx, [rbp+var_8] mov ecx, [rcx+0C18h] add ecx, 8 sub eax, ecx sub eax, 4 mov [rbp+var_2C], eax mov rax, [rbp+var_20] mov ecx, [rbp+var_2C] add rax, rcx sub rax, 1 mov ecx, [rbp+var_2C] xor edx, edx div rcx mov [rbp+var_38], rax mov rax, [rbp+var_10] mov [rbp+var_50], rax mov rax, [rbp+var_10] add rax, 2 mov [rbp+var_10], rax mov rax, [rbp+var_38] mov ecx, [rbp+var_2C] imul rax, rcx sub rax, [rbp+var_20] mov [rbp+var_44], eax mov rax, [rbp+var_10] mov [rbp+var_58], rax mov eax, [rbp+var_44] mov cx, ax mov rax, [rbp+var_58] mov [rax], cx mov rax, [rbp+var_10] add rax, 2 mov [rbp+var_10], rax mov [rbp+var_40], 0 loc_81ECF: mov rax, [rbp+var_18] mov rax, [rax] mov [rbp+var_60], rax mov rax, [rbp+var_18] mov eax, [rax+8] mov [rbp+var_3C], eax mov rax, [rbp+var_18] add rax, 18h mov [rbp+var_18], rax mov eax, [rbp+var_3C] cmp rax, [rbp+var_38] jbe short loc_81F00 mov rax, [rbp+var_38] mov [rbp+var_3C], eax loc_81F00: jmp short $+2 loc_81F02: mov rax, [rbp+var_10] mov [rbp+var_68], rax mov rax, [rbp+var_60] mov ecx, eax mov rax, [rbp+var_68] mov [rax], ecx mov rax, [rbp+var_60] shr rax, 20h mov cl, al mov rax, [rbp+var_68] mov [rax+4], cl mov rax, [rbp+var_10] add rax, 5 mov [rbp+var_10], rax mov rax, [rbp+var_10] mov [rbp+var_70], rax mov eax, [rbp+var_3C] mov cx, ax mov rax, [rbp+var_70] mov [rax], cx mov rax, [rbp+var_10] add rax, 2 mov [rbp+var_10], rax mov eax, [rbp+var_40] add eax, 1 mov [rbp+var_40], eax mov eax, [rbp+var_3C] mov ecx, eax mov rax, [rbp+var_38] sub rax, rcx mov [rbp+var_38], rax cmp rax, 0 jnz loc_81ECF jmp short $+2 loc_81F79: mov rax, [rbp+var_50] mov [rbp+var_78], rax mov eax, [rbp+var_40] mov cx, ax mov rax, [rbp+var_78] mov [rax], cx mov ecx, [rbp+var_40] mov rax, [rbp+var_28] add ecx, [rax] mov [rax], ecx mov rax, [rbp+var_10] mov [rbp+var_80], rax mov rax, [rbp+var_80] pop rbp retn
_WORD * store_page_range(long long a1, _WORD *a2, long long *a3, long long a4, _DWORD *a5) { long long v6; // [rsp+20h] [rbp-60h] int v7; // [rsp+40h] [rbp-40h] unsigned int v8; // [rsp+44h] [rbp-3Ch] unsigned long long v9; // [rsp+48h] [rbp-38h] unsigned int v10; // [rsp+54h] [rbp-2Ch] _WORD *v12; // [rsp+70h] [rbp-10h] v10 = *(_DWORD *)(a1 + 1980) - (*(_DWORD *)(a1 + 3096) + 8) - 4; v9 = ((unsigned long long)v10 + a4 - 1) / v10; a2[1] = v10 * v9 - a4; v12 = a2 + 2; v7 = 0; do { v6 = *a3; v8 = *((_DWORD *)a3 + 2); a3 += 3; if ( v8 > v9 ) v8 = v9; *(_DWORD *)v12 = v6; *((_BYTE *)v12 + 4) = BYTE4(v6); *(_WORD *)((char *)v12 + 5) = v8; v12 = (_WORD *)((char *)v12 + 7); ++v7; v9 -= v8; } while ( v9 ); *a2 = v7; *a5 += v7; return v12; }
store_page_range: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x7bc] MOV RCX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RCX + 0xc18] ADD ECX,0x8 SUB EAX,ECX SUB EAX,0x4 MOV dword ptr [RBP + -0x2c],EAX MOV RAX,qword ptr [RBP + -0x20] MOV ECX,dword ptr [RBP + -0x2c] ADD RAX,RCX SUB RAX,0x1 MOV ECX,dword ptr [RBP + -0x2c] XOR EDX,EDX DIV RCX MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x2 MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x38] MOV ECX,dword ptr [RBP + -0x2c] IMUL RAX,RCX SUB RAX,qword ptr [RBP + -0x20] MOV dword ptr [RBP + -0x44],EAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x58],RAX MOV EAX,dword ptr [RBP + -0x44] MOV CX,AX MOV RAX,qword ptr [RBP + -0x58] MOV word ptr [RAX],CX MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x2 MOV qword ptr [RBP + -0x10],RAX MOV dword ptr [RBP + -0x40],0x0 LAB_00181ecf: MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x60],RAX MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX + 0x8] MOV dword ptr [RBP + -0x3c],EAX MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x18 MOV qword ptr [RBP + -0x18],RAX MOV EAX,dword ptr [RBP + -0x3c] CMP RAX,qword ptr [RBP + -0x38] JBE 0x00181f00 MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RBP + -0x3c],EAX LAB_00181f00: JMP 0x00181f02 LAB_00181f02: MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x68],RAX MOV RAX,qword ptr [RBP + -0x60] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x68] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x60] SHR RAX,0x20 MOV CL,AL MOV RAX,qword ptr [RBP + -0x68] MOV byte ptr [RAX + 0x4],CL MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x5 MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x70],RAX MOV EAX,dword ptr [RBP + -0x3c] MOV CX,AX MOV RAX,qword ptr [RBP + -0x70] MOV word ptr [RAX],CX MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x2 MOV qword ptr [RBP + -0x10],RAX MOV EAX,dword ptr [RBP + -0x40] ADD EAX,0x1 MOV dword ptr [RBP + -0x40],EAX MOV EAX,dword ptr [RBP + -0x3c] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x38] SUB RAX,RCX MOV qword ptr [RBP + -0x38],RAX CMP RAX,0x0 JNZ 0x00181ecf JMP 0x00181f79 LAB_00181f79: MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RBP + -0x78],RAX MOV EAX,dword ptr [RBP + -0x40] MOV CX,AX MOV RAX,qword ptr [RBP + -0x78] MOV word ptr [RAX],CX MOV ECX,dword ptr [RBP + -0x40] MOV RAX,qword ptr [RBP + -0x28] ADD ECX,dword ptr [RAX] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x80],RAX MOV RAX,qword ptr [RBP + -0x80] POP RBP RET
int4 * store_page_range(long param_1,int2 *param_2,int8 *param_3,long param_4,int *param_5) { int8 uVar1; uint uVar2; int local_48; uint local_44; ulong local_40; int8 *local_20; int4 *local_18; uVar2 = (*(int *)(param_1 + 0x7bc) - (*(int *)(param_1 + 0xc18) + 8)) - 4; local_40 = ((param_4 + (ulong)uVar2) - 1) / (ulong)uVar2; param_2[1] = (short)local_40 * (short)uVar2 - (short)param_4; local_18 = (int4 *)(param_2 + 2); local_48 = 0; local_20 = param_3; do { uVar1 = *local_20; local_44 = *(uint *)(local_20 + 1); local_20 = local_20 + 3; if (local_40 < local_44) { local_44 = (uint)local_40; } *local_18 = (int)uVar1; *(char *)(local_18 + 1) = (char)((ulong)uVar1 >> 0x20); *(short *)((long)local_18 + 5) = (short)local_44; local_18 = (int4 *)((long)local_18 + 7); local_48 = local_48 + 1; local_40 = local_40 - local_44; } while (local_40 != 0); *param_2 = (short)local_48; *param_5 = local_48 + *param_5; return local_18; }
65,350
register_cond_class(char const*, unsigned int, int)
eloqsql/storage/perfschema/pfs_instr_class.cc
PFS_sync_key register_cond_class(const char *name, uint name_length, int flags) { /* See comments in register_mutex_class */ uint32 index; PFS_cond_class *entry; REGISTER_CLASS_BODY_PART(index, cond_class_array, cond_class_max, name, name_length) index= PFS_atomic::add_u32(&cond_class_dirty_count, 1); if (index < cond_class_max) { entry= &cond_class_array[index]; init_instr_class(entry, name, name_length, flags, PFS_CLASS_COND); entry->m_event_name_index= cond_class_start + index; entry->m_singleton= NULL; entry->m_enabled= false; /* disabled by default */ entry->m_timed= false; /* Set user-defined configuration options for this instrument */ configure_instr_class(entry); PFS_atomic::add_u32(&cond_class_allocated_count, 1); return (index + 1); } if (pfs_enabled) cond_class_lost++; return 0; }
O3
cpp
register_cond_class(char const*, unsigned int, int): pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %edx, -0x2c(%rbp) movl %esi, %r14d movq %rdi, -0x38(%rbp) movq 0x397944(%rip), %rbx # 0x3cd0a0 movl %esi, %r12d testq %rbx, %rbx je 0x357a7 movq 0x3979bd(%rip), %r15 # 0x3cd128 movl $0x1, %r13d xorl %edi, %edi shlq $0x8, %rdi cmpl %r14d, 0x94(%r15,%rdi) jne 0x3579c addq %r15, %rdi addq $0x14, %rdi movq -0x38(%rbp), %rsi movq %r12, %rdx callq 0x26170 testl %eax, %eax je 0x3586c movl %r13d, %edi incl %r13d cmpq %rdi, %rbx ja 0x35773 movl $0x1, %r13d lock xaddl %r13d, 0x398186(%rip) # 0x3cd93c cmpq %r13, 0x3978e3(%rip) # 0x3cd0a0 jbe 0x35859 movq 0x39795e(%rip), %rbx # 0x3cd128 movq %r13, %r15 shlq $0x8, %r15 leaq (%rbx,%r15), %rdi movq %rdi, -0x40(%rbp) movl $0xa0, %edx xorl %esi, %esi callq 0x261c0 addq %r15, %rbx addq $0x14, %rbx movq %rbx, %rdi movq -0x38(%rbp), %rsi movq %r12, %rdx callq 0x261a0 movb $0x0, 0x7f(%rbx) movl %r14d, 0x80(%rbx) movl -0x2c(%rbp), %eax movl %eax, -0xc(%rbx) movw $0x101, -0x10(%rbx) # imm = 0x101 movl $0x3, -0x14(%rbx) movq 0x2e1828(%rip), %rax # 0x317048 movq %rax, 0x84(%rbx) movl 0x3980eb(%rip), %eax # 0x3cd918 addl %r13d, %eax movl %eax, -0x4(%rbx) movq $0x0, 0xac(%rbx) movw $0x0, -0x10(%rbx) movq -0x40(%rbp), %rdi callq 0x34bb6 lock incl 0x3980e4(%rip) # 0x3cd938 incl %r13d jmp 0x3586c xorl %r13d, %r13d cmpb $0x0, 0x2e17bd(%rip) # 0x317020 je 0x3586c incq 0x39783c(%rip) # 0x3cd0a8 movl %r13d, %eax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_Z19register_cond_classPKcji: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov [rbp+var_2C], edx mov r14d, esi mov [rbp+var_38], rdi mov rbx, cs:cond_class_max mov r12d, esi test rbx, rbx jz short loc_357A7 mov r15, cs:cond_class_array mov r13d, 1 xor edi, edi loc_35773: shl rdi, 8 cmp [r15+rdi+94h], r14d jnz short loc_3579C add rdi, r15 add rdi, 14h mov rsi, [rbp+var_38] mov rdx, r12 call _strncmp test eax, eax jz loc_3586C loc_3579C: mov edi, r13d inc r13d cmp rbx, rdi ja short loc_35773 loc_357A7: mov r13d, 1 lock xadd cs:_ZL22cond_class_dirty_count, r13d; cond_class_dirty_count cmp cs:cond_class_max, r13 jbe loc_35859 mov rbx, cs:cond_class_array mov r15, r13 shl r15, 8 lea rdi, [rbx+r15] mov [rbp+var_40], rdi mov edx, 0A0h xor esi, esi call _memset add rbx, r15 add rbx, 14h mov rdi, rbx mov rsi, [rbp+var_38] mov rdx, r12 call _strncpy mov byte ptr [rbx+7Fh], 0 mov [rbx+80h], r14d mov eax, [rbp+var_2C] mov [rbx-0Ch], eax mov word ptr [rbx-10h], 101h mov dword ptr [rbx-14h], 3 mov rax, cs:off_317048 mov [rbx+84h], rax mov eax, cs:cond_class_start add eax, r13d mov [rbx-4], eax mov qword ptr [rbx+0ACh], 0 mov word ptr [rbx-10h], 0 mov rdi, [rbp+var_40] call _ZL21configure_instr_classP15PFS_instr_class; configure_instr_class(PFS_instr_class *) lock inc cs:_ZL26cond_class_allocated_count; cond_class_allocated_count inc r13d jmp short loc_3586C loc_35859: xor r13d, r13d cmp cs:pfs_enabled, 0 jz short loc_3586C inc cs:cond_class_lost loc_3586C: mov eax, r13d add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long register_cond_class(const char *a1, unsigned int a2, int a3) { unsigned long long v3; // rbx long long v4; // r15 unsigned int v5; // r13d unsigned long long v6; // rdi unsigned long long v7; // rdi unsigned long long v8; // r13 long long v9; // rbx long long v10; // rbx long long v12; // [rsp+0h] [rbp-40h] v3 = cond_class_max; if ( cond_class_max ) { v4 = cond_class_array; v5 = 1; v6 = 0LL; while ( 1 ) { v7 = v6 << 8; if ( *(_DWORD *)(v4 + v7 + 148) == a2 && !(unsigned int)strncmp(v4 + v7 + 20, a1, a2) ) break; v6 = v5++; if ( v3 <= v6 ) goto LABEL_6; } } else { LABEL_6: v8 = (unsigned int)_InterlockedExchangeAdd(&cond_class_dirty_count, 1u); if ( cond_class_max <= v8 ) { v5 = 0; if ( pfs_enabled ) ++cond_class_lost; } else { v9 = cond_class_array; v12 = cond_class_array + (v8 << 8); memset(v12, 0LL, 160LL); v10 = (v8 << 8) + v9 + 20; strncpy(v10, a1, a2); *(_BYTE *)(v10 + 127) = 0; *(_DWORD *)(v10 + 128) = a2; *(_DWORD *)(v10 - 12) = a3; *(_WORD *)(v10 - 16) = 257; *(_DWORD *)(v10 - 20) = 3; *(int **)(v10 + 132) = off_317048[0]; *(_DWORD *)(v10 - 4) = v8 + cond_class_start; *(_QWORD *)(v10 + 172) = 0LL; *(_WORD *)(v10 - 16) = 0; configure_instr_class(v12); _InterlockedIncrement(&cond_class_allocated_count); return (unsigned int)(v8 + 1); } } return v5; }
register_cond_class: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV dword ptr [RBP + -0x2c],EDX MOV R14D,ESI MOV qword ptr [RBP + -0x38],RDI MOV RBX,qword ptr [0x004cd0a0] MOV R12D,ESI TEST RBX,RBX JZ 0x001357a7 MOV R15,qword ptr [0x004cd128] MOV R13D,0x1 XOR EDI,EDI LAB_00135773: SHL RDI,0x8 CMP dword ptr [R15 + RDI*0x1 + 0x94],R14D JNZ 0x0013579c ADD RDI,R15 ADD RDI,0x14 MOV RSI,qword ptr [RBP + -0x38] MOV RDX,R12 CALL 0x00126170 TEST EAX,EAX JZ 0x0013586c LAB_0013579c: MOV EDI,R13D INC R13D CMP RBX,RDI JA 0x00135773 LAB_001357a7: MOV R13D,0x1 XADD.LOCK dword ptr [0x004cd93c],R13D CMP qword ptr [0x004cd0a0],R13 JBE 0x00135859 MOV RBX,qword ptr [0x004cd128] MOV R15,R13 SHL R15,0x8 LEA RDI,[RBX + R15*0x1] MOV qword ptr [RBP + -0x40],RDI MOV EDX,0xa0 XOR ESI,ESI CALL 0x001261c0 ADD RBX,R15 ADD RBX,0x14 MOV RDI,RBX MOV RSI,qword ptr [RBP + -0x38] MOV RDX,R12 CALL 0x001261a0 MOV byte ptr [RBX + 0x7f],0x0 MOV dword ptr [RBX + 0x80],R14D MOV EAX,dword ptr [RBP + -0x2c] MOV dword ptr [RBX + -0xc],EAX MOV word ptr [RBX + -0x10],0x101 MOV dword ptr [RBX + -0x14],0x3 MOV RAX,qword ptr [0x00417048] MOV qword ptr [RBX + 0x84],RAX MOV EAX,dword ptr [0x004cd918] ADD EAX,R13D MOV dword ptr [RBX + -0x4],EAX MOV qword ptr [RBX + 0xac],0x0 MOV word ptr [RBX + -0x10],0x0 MOV RDI,qword ptr [RBP + -0x40] CALL 0x00134bb6 INC.LOCK dword ptr [0x004cd938] INC R13D JMP 0x0013586c LAB_00135859: XOR R13D,R13D CMP byte ptr [0x00417020],0x0 JZ 0x0013586c INC qword ptr [0x004cd0a8] LAB_0013586c: MOV EAX,R13D ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* register_cond_class(char const*, unsigned int, int) */ ulong register_cond_class(char *param_1,uint param_2,int param_3) { PFS_instr_class *__s; bool bVar1; long lVar2; uint uVar3; int iVar4; int4 *puVar5; ulong uVar6; ulong uVar7; ulong uVar8; long lVar9; lVar2 = cond_class_array; uVar8 = cond_class_max; if (cond_class_max != 0) { uVar6 = 0; uVar7 = 1; do { if ((*(uint *)(lVar2 + 0x94 + uVar6 * 0x100) == param_2) && (iVar4 = strncmp((char *)(uVar6 * 0x100 + lVar2 + 0x14),param_1,(ulong)param_2), iVar4 == 0 )) { return uVar7; } bVar1 = uVar7 < uVar8; uVar6 = uVar7; uVar7 = (ulong)((int)uVar7 + 1); } while (bVar1); } uVar3 = cond_class_dirty_count; lVar2 = cond_class_array; LOCK(); iVar4 = cond_class_dirty_count + 1; UNLOCK(); if (cond_class_dirty_count < cond_class_max) { lVar9 = (ulong)cond_class_dirty_count * 0x100; __s = (PFS_instr_class *)(cond_class_array + lVar9); cond_class_dirty_count = iVar4; memset(__s,0,0xa0); puVar5 = (int4 *)(lVar2 + lVar9); strncpy((char *)(puVar5 + 5),param_1,(ulong)param_2); *(int1 *)((long)puVar5 + 0x93) = 0; puVar5[0x25] = param_2; puVar5[2] = param_3; *(int2 *)(puVar5 + 1) = 0x101; *puVar5 = 3; *(int8 *)(puVar5 + 0x26) = class_timers._24_8_; puVar5[4] = cond_class_start + uVar3; *(int8 *)(puVar5 + 0x30) = 0; *(int2 *)(puVar5 + 1) = 0; configure_instr_class(__s); LOCK(); cond_class_allocated_count = cond_class_allocated_count + 1; UNLOCK(); uVar8 = (ulong)(uVar3 + 1); } else { uVar8 = 0; cond_class_dirty_count = iVar4; if (pfs_enabled != '\0') { cond_class_lost = cond_class_lost + 1; } } return uVar8; }
65,351
add_rpc_devices(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
monkey531[P]llama/common/arg.cpp
static void add_rpc_devices(std::string servers) { auto rpc_servers = string_split<std::string>(servers, ','); if (rpc_servers.empty()) { throw std::invalid_argument("no RPC servers specified"); } ggml_backend_reg_t rpc_reg = ggml_backend_reg_by_name("RPC"); if (!rpc_reg) { throw std::invalid_argument("failed to find RPC backend"); } typedef ggml_backend_dev_t (*ggml_backend_rpc_add_device_t)(const char * endpoint); ggml_backend_rpc_add_device_t ggml_backend_rpc_add_device_fn = (ggml_backend_rpc_add_device_t) ggml_backend_reg_get_proc_address(rpc_reg, "ggml_backend_rpc_add_device"); if (!ggml_backend_rpc_add_device_fn) { throw std::invalid_argument("failed to find RPC device add function"); } for (const auto & server : rpc_servers) { ggml_backend_dev_t dev = ggml_backend_rpc_add_device_fn(server.c_str()); if (dev) { ggml_backend_device_register(dev); } else { throw std::invalid_argument("failed to register RPC device"); } } }
O0
cpp
add_rpc_devices(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>): subq $0xa8, %rsp movq %rdi, %rsi movq %rsi, 0xa0(%rsp) leaq 0x88(%rsp), %rdi movl $0x2c, %edx callq 0xf4850 leaq 0x88(%rsp), %rdi callq 0x6a090 testb $0x1, %al jne 0xf8737 jmp 0xf87ad movl $0x10, %edi callq 0x618c0 movq %rax, %rdi movq %rdi, %rax movq %rax, 0x38(%rsp) leaq 0x1601ca(%rip), %rsi # 0x25891d callq 0x61400 jmp 0xf875a movq 0x38(%rsp), %rdi movq 0x1fd7c2(%rip), %rsi # 0x2f5f28 movq 0x1fd7b3(%rip), %rdx # 0x2f5f20 callq 0x61ef0 jmp 0xf89ea movq 0x38(%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0x80(%rsp) movl %eax, 0x7c(%rsp) callq 0x62500 jmp 0xf89d0 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x80(%rsp) movl %eax, 0x7c(%rsp) jmp 0xf89d0 leaq 0x15c21a(%rip), %rdi # 0x2549ce callq 0x62420 movq %rax, 0x30(%rsp) jmp 0xf87c0 movq 0x30(%rsp), %rax movq %rax, 0x70(%rsp) cmpq $0x0, 0x70(%rsp) jne 0xf8832 movl $0x10, %edi callq 0x618c0 movq %rax, %rdi movq %rdi, %rax movq %rax, 0x28(%rsp) leaq 0x160148(%rip), %rsi # 0x258936 callq 0x61400 jmp 0xf87f5 movq 0x28(%rsp), %rdi movq 0x1fd727(%rip), %rsi # 0x2f5f28 movq 0x1fd718(%rip), %rdx # 0x2f5f20 callq 0x61ef0 jmp 0xf89ea movq 0x28(%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0x80(%rsp) movl %eax, 0x7c(%rsp) callq 0x62500 jmp 0xf89d0 movq 0x70(%rsp), %rdi leaq 0x160113(%rip), %rsi # 0x258951 callq 0x61520 movq %rax, 0x20(%rsp) jmp 0xf884a movq 0x20(%rsp), %rax movq %rax, 0x68(%rsp) cmpq $0x0, 0x68(%rsp) jne 0xf88bc movl $0x10, %edi callq 0x618c0 movq %rax, %rdi movq %rdi, %rax movq %rax, 0x18(%rsp) leaq 0x1600f5(%rip), %rsi # 0x25896d callq 0x61400 jmp 0xf887f movq 0x18(%rsp), %rdi movq 0x1fd69d(%rip), %rsi # 0x2f5f28 movq 0x1fd68e(%rip), %rdx # 0x2f5f20 callq 0x61ef0 jmp 0xf89ea movq 0x18(%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0x80(%rsp) movl %eax, 0x7c(%rsp) callq 0x62500 jmp 0xf89d0 leaq 0x88(%rsp), %rax movq %rax, 0x60(%rsp) movq 0x60(%rsp), %rdi callq 0x6a1a0 movq %rax, 0x58(%rsp) movq 0x60(%rsp), %rdi callq 0x6a1d0 movq %rax, 0x50(%rsp) leaq 0x58(%rsp), %rdi leaq 0x50(%rsp), %rsi callq 0x6a200 testb $0x1, %al jne 0xf88ff jmp 0xf89bb leaq 0x58(%rsp), %rdi callq 0x6a240 movq %rax, 0x48(%rsp) movq 0x68(%rsp), %rax movq %rax, 0x8(%rsp) movq 0x48(%rsp), %rdi callq 0x61230 movq %rax, %rdi movq 0x8(%rsp), %rax callq *%rax movq %rax, 0x10(%rsp) jmp 0xf8933 movq 0x10(%rsp), %rax movq %rax, 0x40(%rsp) cmpq $0x0, 0x40(%rsp) je 0xf8953 movq 0x40(%rsp), %rdi callq 0x625f0 jmp 0xf8951 jmp 0xf89aa movl $0x10, %edi callq 0x618c0 movq %rax, %rdi movq %rdi, %rax movq %rax, (%rsp) leaq 0x160026(%rip), %rsi # 0x258994 callq 0x61400 jmp 0xf8975 movq (%rsp), %rdi movq 0x1fd5a8(%rip), %rsi # 0x2f5f28 movq 0x1fd599(%rip), %rdx # 0x2f5f20 callq 0x61ef0 jmp 0xf89ea movq (%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0x80(%rsp) movl %eax, 0x7c(%rsp) callq 0x62500 jmp 0xf89d0 jmp 0xf89ac leaq 0x58(%rsp), %rdi callq 0x6a250 jmp 0xf88e7 leaq 0x88(%rsp), %rdi callq 0x6af60 addq $0xa8, %rsp retq leaq 0x88(%rsp), %rdi callq 0x6af60 movq 0x80(%rsp), %rdi callq 0x61ff0 nopw (%rax,%rax)
_ZL15add_rpc_devicesNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: sub rsp, 0A8h mov rsi, rdi mov [rsp+0A8h+var_8], rsi lea rdi, [rsp+0A8h+var_20] mov edx, 2Ch ; ',' call _ZL12string_splitINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt6vectorIT_SaIS7_EERKS5_c; string_split<std::string>(std::string const&,char) lea rdi, [rsp+0A8h+var_20] call _ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5emptyEv; std::vector<std::string>::empty(void) test al, 1 jnz short loc_F8737 jmp short loc_F87AD loc_F8737: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rdi, rax; this mov rax, rdi mov [rsp+0A8h+var_70], rax lea rsi, aNoRpcServersSp; "no RPC servers specified" call __ZNSt16invalid_argumentC1EPKc; std::invalid_argument::invalid_argument(char const*) jmp short $+2 loc_F875A: mov rdi, [rsp+0A8h+var_70]; void * mov rsi, cs:_ZTISt16invalid_argument_ptr; lptinfo mov rdx, cs:_ZNSt16invalid_argumentD1Ev_ptr; void (*)(void *) call ___cxa_throw jmp loc_F89EA mov rdi, [rsp+arg_30]; void * mov rcx, rax mov eax, edx mov [rsp+arg_78], rcx mov [rsp+arg_74], eax call ___cxa_free_exception jmp loc_F89D0 mov rcx, rax mov eax, edx mov [rsp+arg_78], rcx mov [rsp+arg_74], eax jmp loc_F89D0 loc_F87AD: lea rdi, aLlamaArgRpc+0Ah; "RPC" call _ggml_backend_reg_by_name mov [rsp+0A8h+var_78], rax jmp short $+2 loc_F87C0: mov rax, [rsp+0A8h+var_78] mov [rsp+0A8h+var_38], rax cmp [rsp+0A8h+var_38], 0 jnz short loc_F8832 mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rdi, rax; this mov rax, rdi mov [rsp+0A8h+var_80], rax lea rsi, aFailedToFindRp; "failed to find RPC backend" call __ZNSt16invalid_argumentC1EPKc; std::invalid_argument::invalid_argument(char const*) jmp short $+2 loc_F87F5: mov rdi, [rsp+0A8h+var_80]; void * mov rsi, cs:_ZTISt16invalid_argument_ptr; lptinfo mov rdx, cs:_ZNSt16invalid_argumentD1Ev_ptr; void (*)(void *) call ___cxa_throw jmp loc_F89EA mov rdi, [rsp+arg_20]; void * mov rcx, rax mov eax, edx mov [rsp+arg_78], rcx mov [rsp+arg_74], eax call ___cxa_free_exception jmp loc_F89D0 loc_F8832: mov rdi, [rsp+0A8h+var_38] lea rsi, aGgmlBackendRpc; "ggml_backend_rpc_add_device" call _ggml_backend_reg_get_proc_address mov [rsp+0A8h+var_88], rax jmp short $+2 loc_F884A: mov rax, [rsp+0A8h+var_88] mov [rsp+0A8h+var_40], rax cmp [rsp+0A8h+var_40], 0 jnz short loc_F88BC mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rdi, rax; this mov rax, rdi mov [rsp+0A8h+var_90], rax lea rsi, aFailedToFindRp_0; "failed to find RPC device add function" call __ZNSt16invalid_argumentC1EPKc; std::invalid_argument::invalid_argument(char const*) jmp short $+2 loc_F887F: mov rdi, [rsp+0A8h+var_90]; void * mov rsi, cs:_ZTISt16invalid_argument_ptr; lptinfo mov rdx, cs:_ZNSt16invalid_argumentD1Ev_ptr; void (*)(void *) call ___cxa_throw jmp loc_F89EA mov rdi, [rsp+arg_10]; void * mov rcx, rax mov eax, edx mov [rsp+arg_78], rcx mov [rsp+arg_74], eax call ___cxa_free_exception jmp loc_F89D0 loc_F88BC: lea rax, [rsp+0A8h+var_20] mov [rsp+0A8h+var_48], rax mov rdi, [rsp+0A8h+var_48] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5beginEv; std::vector<std::string>::begin(void) mov [rsp+0A8h+var_50], rax mov rdi, [rsp+0A8h+var_48] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE3endEv; std::vector<std::string>::end(void) mov [rsp+0A8h+var_58], rax loc_F88E7: lea rdi, [rsp+0A8h+var_50] lea rsi, [rsp+0A8h+var_58] call _ZN9__gnu_cxxneIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_; __gnu_cxx::operator!=<std::string *,std::vector<std::string>>(__gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>> const&,__gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>> const&) test al, 1 jnz short loc_F88FF jmp loc_F89BB loc_F88FF: lea rdi, [rsp+0A8h+var_50] call _ZNK9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEdeEv; __gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>::operator*(void) mov [rsp+0A8h+var_60], rax mov rax, [rsp+0A8h+var_40] mov [rsp+0A8h+var_A0], rax mov rdi, [rsp+0A8h+var_60] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void) mov rdi, rax mov rax, [rsp+0A8h+var_A0] call rax mov [rsp+0A8h+var_98], rax jmp short $+2 loc_F8933: mov rax, [rsp+0A8h+var_98] mov [rsp+0A8h+var_68], rax cmp [rsp+0A8h+var_68], 0 jz short loc_F8953 mov rdi, [rsp+0A8h+var_68] call _ggml_backend_device_register jmp short $+2 loc_F8951: jmp short loc_F89AA loc_F8953: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rdi, rax; this mov rax, rdi mov [rsp+0A8h+var_A8], rax lea rsi, aFailedToRegist; "failed to register RPC device" call __ZNSt16invalid_argumentC1EPKc; std::invalid_argument::invalid_argument(char const*) jmp short $+2 loc_F8975: mov rdi, [rsp+0A8h+var_A8]; void * mov rsi, cs:_ZTISt16invalid_argument_ptr; lptinfo mov rdx, cs:_ZNSt16invalid_argumentD1Ev_ptr; void (*)(void *) call ___cxa_throw jmp short loc_F89EA mov rdi, [rsp+0]; void * mov rcx, rax mov eax, edx mov [rsp+arg_78], rcx mov [rsp+arg_74], eax call ___cxa_free_exception jmp short loc_F89D0 loc_F89AA: jmp short $+2 loc_F89AC: lea rdi, [rsp+0A8h+var_50] call _ZN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEppEv; __gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>::operator++(void) jmp loc_F88E7 loc_F89BB: lea rdi, [rsp+0A8h+var_20] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() add rsp, 0A8h retn loc_F89D0: lea rdi, [rsp+arg_80] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() mov rdi, [rsp+arg_78] call __Unwind_Resume loc_F89EA: nop word ptr [rax+rax+00h]
long long add_rpc_devices(long long a1) { long long v1; // rax std::invalid_argument *v3; // [rsp+0h] [rbp-A8h] long long ( *v4)(long long); // [rsp+8h] [rbp-A0h] std::invalid_argument *v5; // [rsp+18h] [rbp-90h] std::invalid_argument *v6; // [rsp+28h] [rbp-80h] std::invalid_argument *exception; // [rsp+38h] [rbp-70h] long long v8; // [rsp+40h] [rbp-68h] long long v9; // [rsp+48h] [rbp-60h] long long v10; // [rsp+50h] [rbp-58h] BYREF _QWORD v11[2]; // [rsp+58h] [rbp-50h] BYREF long long proc_address; // [rsp+68h] [rbp-40h] long long v13; // [rsp+70h] [rbp-38h] long long v14[4]; // [rsp+88h] [rbp-20h] BYREF v14[3] = a1; string_split<std::string>((long long)v14, a1, 44); if ( (std::vector<std::string>::empty((long long)v14) & 1) != 0 ) { exception = (std::invalid_argument *)__cxa_allocate_exception(0x10uLL); std::invalid_argument::invalid_argument(exception, "no RPC servers specified"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::invalid_argument, (void (*)(void *))&std::invalid_argument::~invalid_argument); } v13 = ggml_backend_reg_by_name("RPC"); if ( !v13 ) { v6 = (std::invalid_argument *)__cxa_allocate_exception(0x10uLL); std::invalid_argument::invalid_argument(v6, "failed to find RPC backend"); __cxa_throw( v6, (struct type_info *)&`typeinfo for'std::invalid_argument, (void (*)(void *))&std::invalid_argument::~invalid_argument); } proc_address = ggml_backend_reg_get_proc_address(v13, "ggml_backend_rpc_add_device"); if ( !proc_address ) { v5 = (std::invalid_argument *)__cxa_allocate_exception(0x10uLL); std::invalid_argument::invalid_argument(v5, "failed to find RPC device add function"); __cxa_throw( v5, (struct type_info *)&`typeinfo for'std::invalid_argument, (void (*)(void *))&std::invalid_argument::~invalid_argument); } v11[1] = v14; v11[0] = std::vector<std::string>::begin((long long)v14); v10 = std::vector<std::string>::end((long long)v14); while ( __gnu_cxx::operator!=<std::string *,std::vector<std::string>>((long long)v11, (long long)&v10) ) { v9 = __gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>::operator*((long long)v11); v4 = (long long ( *)(long long))proc_address; v1 = std::string::c_str(v9); v8 = v4(v1); if ( !v8 ) { v3 = (std::invalid_argument *)__cxa_allocate_exception(0x10uLL); std::invalid_argument::invalid_argument(v3, "failed to register RPC device"); __cxa_throw( v3, (struct type_info *)&`typeinfo for'std::invalid_argument, (void (*)(void *))&std::invalid_argument::~invalid_argument); } ggml_backend_device_register(v8); __gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>::operator++(v11); } return std::vector<std::string>::~vector(v14); }
add_rpc_devices: SUB RSP,0xa8 MOV RSI,RDI MOV qword ptr [RSP + 0xa0],RSI LEA RDI,[RSP + 0x88] MOV EDX,0x2c CALL 0x001f4850 LEA RDI,[RSP + 0x88] CALL 0x0016a090 TEST AL,0x1 JNZ 0x001f8737 JMP 0x001f87ad LAB_001f8737: MOV EDI,0x10 CALL 0x001618c0 MOV RDI,RAX MOV RAX,RDI MOV qword ptr [RSP + 0x38],RAX LAB_001f874c: LEA RSI,[0x35891d] CALL 0x00161400 JMP 0x001f875a LAB_001f875a: MOV RDI,qword ptr [RSP + 0x38] MOV RSI,qword ptr [0x003f5f28] MOV RDX,qword ptr [0x003f5f20] CALL 0x00161ef0 LAB_001f87ad: LEA RDI,[0x3549ce] CALL 0x00162420 LAB_001f87b9: MOV qword ptr [RSP + 0x30],RAX JMP 0x001f87c0 LAB_001f87c0: MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x70],RAX CMP qword ptr [RSP + 0x70],0x0 JNZ 0x001f8832 MOV EDI,0x10 CALL 0x001618c0 MOV RDI,RAX MOV RAX,RDI MOV qword ptr [RSP + 0x28],RAX LAB_001f87e7: LEA RSI,[0x358936] CALL 0x00161400 JMP 0x001f87f5 LAB_001f87f5: MOV RDI,qword ptr [RSP + 0x28] MOV RSI,qword ptr [0x003f5f28] MOV RDX,qword ptr [0x003f5f20] CALL 0x00161ef0 LAB_001f8832: MOV RDI,qword ptr [RSP + 0x70] LAB_001f8837: LEA RSI,[0x358951] CALL 0x00161520 LAB_001f8843: MOV qword ptr [RSP + 0x20],RAX JMP 0x001f884a LAB_001f884a: MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x68],RAX CMP qword ptr [RSP + 0x68],0x0 JNZ 0x001f88bc MOV EDI,0x10 CALL 0x001618c0 MOV RDI,RAX MOV RAX,RDI MOV qword ptr [RSP + 0x18],RAX LAB_001f8871: LEA RSI,[0x35896d] CALL 0x00161400 JMP 0x001f887f LAB_001f887f: MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [0x003f5f28] MOV RDX,qword ptr [0x003f5f20] CALL 0x00161ef0 LAB_001f88bc: LEA RAX,[RSP + 0x88] MOV qword ptr [RSP + 0x60],RAX MOV RDI,qword ptr [RSP + 0x60] CALL 0x0016a1a0 MOV qword ptr [RSP + 0x58],RAX MOV RDI,qword ptr [RSP + 0x60] CALL 0x0016a1d0 MOV qword ptr [RSP + 0x50],RAX LAB_001f88e7: LEA RDI,[RSP + 0x58] LEA RSI,[RSP + 0x50] CALL 0x0016a200 TEST AL,0x1 JNZ 0x001f88ff JMP 0x001f89bb LAB_001f88ff: LEA RDI,[RSP + 0x58] CALL 0x0016a240 MOV qword ptr [RSP + 0x48],RAX MOV RAX,qword ptr [RSP + 0x68] MOV qword ptr [RSP + 0x8],RAX MOV RDI,qword ptr [RSP + 0x48] CALL 0x00161230 MOV RDI,RAX MOV RAX,qword ptr [RSP + 0x8] LAB_001f892a: CALL RAX MOV qword ptr [RSP + 0x10],RAX JMP 0x001f8933 LAB_001f8933: MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x40],RAX CMP qword ptr [RSP + 0x40],0x0 JZ 0x001f8953 MOV RDI,qword ptr [RSP + 0x40] CALL 0x001625f0 LAB_001f894f: JMP 0x001f8951 LAB_001f8951: JMP 0x001f89aa LAB_001f8953: MOV EDI,0x10 CALL 0x001618c0 MOV RDI,RAX MOV RAX,RDI MOV qword ptr [RSP],RAX LAB_001f8967: LEA RSI,[0x358994] CALL 0x00161400 JMP 0x001f8975 LAB_001f8975: MOV RDI,qword ptr [RSP] MOV RSI,qword ptr [0x003f5f28] MOV RDX,qword ptr [0x003f5f20] CALL 0x00161ef0 LAB_001f89aa: JMP 0x001f89ac LAB_001f89ac: LEA RDI,[RSP + 0x58] CALL 0x0016a250 JMP 0x001f88e7 LAB_001f89bb: LEA RDI,[RSP + 0x88] CALL 0x0016af60 ADD RSP,0xa8 RET
/* add_rpc_devices(std::__cxx11::string) */ void add_rpc_devices(int8 param_1) { code *pcVar1; bool bVar2; ulong uVar3; invalid_argument *piVar4; int8 uVar5; long lVar6; int8 local_58; int8 local_50; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *local_48; code *local_40; long local_38; string local_20 [24]; int8 local_8; local_8 = param_1; string_split<std::__cxx11::string>(local_20,(char)param_1); uVar3 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::empty ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_20); if ((uVar3 & 1) != 0) { piVar4 = (invalid_argument *)__cxa_allocate_exception(0x10); /* try { // try from 001f874c to 001f8757 has its CatchHandler @ 001f8777 */ std::invalid_argument::invalid_argument(piVar4,"no RPC servers specified"); /* try { // try from 001f875a to 001f8771 has its CatchHandler @ 001f8797 */ /* WARNING: Subroutine does not return */ __cxa_throw(piVar4,PTR_typeinfo_003f5f28,PTR__invalid_argument_003f5f20); } /* try { // try from 001f87ad to 001f87b8 has its CatchHandler @ 001f8797 */ local_38 = ggml_backend_reg_by_name("RPC"); if (local_38 == 0) { piVar4 = (invalid_argument *)__cxa_allocate_exception(0x10); /* try { // try from 001f87e7 to 001f87f2 has its CatchHandler @ 001f8812 */ std::invalid_argument::invalid_argument(piVar4,"failed to find RPC backend"); /* try { // try from 001f87f5 to 001f880c has its CatchHandler @ 001f8797 */ /* WARNING: Subroutine does not return */ __cxa_throw(piVar4,PTR_typeinfo_003f5f28,PTR__invalid_argument_003f5f20); } /* try { // try from 001f8837 to 001f8842 has its CatchHandler @ 001f8797 */ local_40 = (code *)ggml_backend_reg_get_proc_address(local_38,"ggml_backend_rpc_add_device"); if (local_40 == (code *)0x0) { piVar4 = (invalid_argument *)__cxa_allocate_exception(0x10); /* try { // try from 001f8871 to 001f887c has its CatchHandler @ 001f889c */ std::invalid_argument::invalid_argument(piVar4,"failed to find RPC device add function"); /* try { // try from 001f887f to 001f8896 has its CatchHandler @ 001f8797 */ /* WARNING: Subroutine does not return */ __cxa_throw(piVar4,PTR_typeinfo_003f5f28,PTR__invalid_argument_003f5f20); } local_48 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_20; local_50 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::begin(local_48) ; local_58 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::end(local_48); while( true ) { bVar2 = __gnu_cxx::operator!=((__normal_iterator *)&local_50,(__normal_iterator *)&local_58); if (!bVar2) { std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_20); return; } __gnu_cxx:: __normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>> ::operator*((__normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>> *)&local_50); pcVar1 = local_40; uVar5 = std::__cxx11::string::c_str(); /* try { // try from 001f892a to 001f894e has its CatchHandler @ 001f8797 */ lVar6 = (*pcVar1)(uVar5); if (lVar6 == 0) break; ggml_backend_device_register(lVar6); __gnu_cxx:: __normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>> ::operator++((__normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>> *)&local_50); } piVar4 = (invalid_argument *)__cxa_allocate_exception(0x10); /* try { // try from 001f8967 to 001f8972 has its CatchHandler @ 001f898e */ std::invalid_argument::invalid_argument(piVar4,"failed to register RPC device"); /* try { // try from 001f8975 to 001f898b has its CatchHandler @ 001f8797 */ /* WARNING: Subroutine does not return */ __cxa_throw(piVar4,PTR_typeinfo_003f5f28,PTR__invalid_argument_003f5f20); }
65,352
translog_start_buffer
eloqsql/storage/maria/ma_loghandler.c
static void translog_start_buffer(struct st_translog_buffer *buffer, struct st_buffer_cursor *cursor, uint buffer_no) { DBUG_ENTER("translog_start_buffer"); DBUG_PRINT("enter", ("Assign buffer: #%u (%p) offset: 0x%x(%u)", (uint) buffer->buffer_no, buffer, (uint) LSN_OFFSET(log_descriptor.horizon), (uint) LSN_OFFSET(log_descriptor.horizon))); DBUG_ASSERT(buffer_no == buffer->buffer_no); buffer->pre_force_close_horizon= buffer->prev_last_lsn= buffer->last_lsn= LSN_IMPOSSIBLE; DBUG_PRINT("info", ("last_lsn and prev_last_lsn set to 0 buffer: %p", buffer)); buffer->offset= log_descriptor.horizon; buffer->next_buffer_offset= LSN_IMPOSSIBLE; buffer->file= get_current_logfile(); buffer->overlay= 0; buffer->size= 0; buffer->skipped_data= 0; translog_cursor_init(cursor, buffer, buffer_no); DBUG_PRINT("info", ("file: #%ld (%d) init cursor #%u: %p " "chaser: %d Size: %lu (%lu)", (long) (buffer->file ? buffer->file->number : 0), (buffer->file ? buffer->file->handler.file : -1), (uint) cursor->buffer->buffer_no, cursor->buffer, cursor->chaser, (ulong) cursor->buffer->size, (ulong) (cursor->ptr - cursor->buffer->buffer))); translog_check_cursor(cursor); mysql_mutex_lock(&log_descriptor.dirty_buffer_mask_lock); log_descriptor.dirty_buffer_mask|= (1 << buffer->buffer_no); mysql_mutex_unlock(&log_descriptor.dirty_buffer_mask_lock); DBUG_VOID_RETURN; }
O0
c
translog_start_buffer: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) jmp 0x8a675 jmp 0x8a677 jmp 0x8a679 movq -0x8(%rbp), %rax movq $0x0, 0x100000(%rax) movq -0x8(%rbp), %rax movq $0x0, 0x100008(%rax) movq -0x8(%rbp), %rax movq $0x0, 0x100028(%rax) jmp 0x8a6a8 movq 0xbf11d9(%rip), %rcx # 0xc7b888 movq -0x8(%rbp), %rax movq %rcx, 0x100010(%rax) movq -0x8(%rbp), %rax movq $0x0, 0x100018(%rax) callq 0x95aa0 movq %rax, %rcx movq -0x8(%rbp), %rax movq %rcx, 0x100038(%rax) movq -0x8(%rbp), %rax movb $0x0, 0x100088(%rax) movq -0x8(%rbp), %rax movl $0x0, 0x100030(%rax) movq -0x8(%rbp), %rax movl $0x0, 0x100034(%rax) movq -0x10(%rbp), %rdi movq -0x8(%rbp), %rsi movl -0x14(%rbp), %eax movzbl %al, %edx callq 0x915b0 jmp 0x8a718 movq -0x10(%rbp), %rdi callq 0x8b650 leaq 0x3f0518(%rip), %rdi # 0x47ac40 addq $0x800c00, %rdi # imm = 0x800C00 leaq 0xc9911(%rip), %rsi # 0x154047 movl $0x87c, %edx # imm = 0x87C callq 0x88990 movq -0x8(%rbp), %rax movl 0x10008c(%rax), %ecx movl $0x1, %eax shll %cl, %eax movl %eax, %ecx movzbl 0xbf10de(%rip), %eax # 0xc7b838 orl %ecx, %eax movb %al, 0xbf10d6(%rip) # 0xc7b838 leaq 0x3f04d7(%rip), %rdi # 0x47ac40 addq $0x800c00, %rdi # imm = 0x800C00 callq 0x88a00 jmp 0x8a777 addq $0x20, %rsp popq %rbp retq nopl (%rax)
translog_start_buffer: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx jmp short $+2 loc_8A675: jmp short $+2 loc_8A677: jmp short $+2 loc_8A679: mov rax, [rbp+var_8] mov qword ptr [rax+100000h], 0 mov rax, [rbp+var_8] mov qword ptr [rax+100008h], 0 mov rax, [rbp+var_8] mov qword ptr [rax+100028h], 0 jmp short $+2 loc_8A6A8: mov rcx, cs:qword_C7B888 mov rax, [rbp+var_8] mov [rax+100010h], rcx mov rax, [rbp+var_8] mov qword ptr [rax+100018h], 0 call get_current_logfile mov rcx, rax mov rax, [rbp+var_8] mov [rax+100038h], rcx mov rax, [rbp+var_8] mov byte ptr ds:loc_100088[rax], 0 mov rax, [rbp+var_8] mov dword ptr [rax+100030h], 0 mov rax, [rbp+var_8] mov dword ptr ds:loc_100034[rax], 0 mov rdi, [rbp+var_10] mov rsi, [rbp+var_8] mov eax, [rbp+var_14] movzx edx, al call translog_cursor_init jmp short $+2 loc_8A718: mov rdi, [rbp+var_10] call translog_check_cursor lea rdi, log_descriptor add rdi, 800C00h lea rsi, aWorkspaceLlm4b_20; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 87Ch call inline_mysql_mutex_lock_11 mov rax, [rbp+var_8] mov ecx, dword ptr ds:loc_10008C[rax] mov eax, 1 shl eax, cl mov ecx, eax movzx eax, cs:byte_C7B838 or eax, ecx mov cs:byte_C7B838, al lea rdi, log_descriptor add rdi, 800C00h call inline_mysql_mutex_unlock_12 jmp short $+2 loc_8A777: add rsp, 20h pop rbp retn
long long translog_start_buffer(long long a1, long long a2, unsigned __int8 a3) { *(_QWORD *)(a1 + 0x100000) = 0LL; *(_QWORD *)(a1 + 1048584) = 0LL; *(_QWORD *)(a1 + 1048616) = 0LL; *(_QWORD *)(a1 + 1048592) = qword_C7B888; *(_QWORD *)(a1 + 1048600) = 0LL; *(_QWORD *)(a1 + 1048632) = get_current_logfile(); *((_BYTE *)&loc_100088 + a1) = 0; *(_DWORD *)(a1 + 1048624) = 0; *(_DWORD *)((char *)&loc_100034 + a1) = 0; translog_cursor_init(a2, a1, a3); translog_check_cursor(a2); inline_mysql_mutex_lock_11( (long long)&log_descriptor[1048960], (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c", 0x87Cu); byte_C7B838 |= 1 << *(_DWORD *)((char *)&loc_10008C + a1); return inline_mysql_mutex_unlock_12((long long)&log_descriptor[1048960]); }
translog_start_buffer: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX JMP 0x0018a675 LAB_0018a675: JMP 0x0018a677 LAB_0018a677: JMP 0x0018a679 LAB_0018a679: MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x100000],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x100008],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x100028],0x0 JMP 0x0018a6a8 LAB_0018a6a8: MOV RCX,qword ptr [0x00d7b888] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x100010],RCX MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x100018],0x0 CALL 0x00195aa0 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x100038],RCX MOV RAX,qword ptr [RBP + -0x8] MOV byte ptr [RAX + 0x100088],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x100030],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x100034],0x0 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RBP + -0x14] MOVZX EDX,AL CALL 0x001915b0 JMP 0x0018a718 LAB_0018a718: MOV RDI,qword ptr [RBP + -0x10] CALL 0x0018b650 LEA RDI,[0x57ac40] ADD RDI,0x800c00 LEA RSI,[0x254047] MOV EDX,0x87c CALL 0x00188990 MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x10008c] MOV EAX,0x1 SHL EAX,CL MOV ECX,EAX MOVZX EAX,byte ptr [0x00d7b838] OR EAX,ECX MOV byte ptr [0x00d7b838],AL LEA RDI,[0x57ac40] ADD RDI,0x800c00 CALL 0x00188a00 JMP 0x0018a777 LAB_0018a777: ADD RSP,0x20 POP RBP RET
void translog_start_buffer(long param_1,int8 param_2,int1 param_3) { byte *pbVar1; int8 uVar2; *(int8 *)(param_1 + 0x100000) = 0; *(int8 *)(Elf64_Ehdr_00100000.e_ident_pad + param_1 + -1) = 0; *(int8 *)(Elf64_Ehdr_00100000.e_ident_pad + param_1 + 0x1f) = 0; *(int8 *)(Elf64_Ehdr_00100000.e_ident_pad + param_1 + 7) = DAT_00d7b888; *(int8 *)(Elf64_Ehdr_00100000.e_ident_pad + param_1 + 0xf) = 0; uVar2 = get_current_logfile(); *(int8 *)(Elf64_Ehdr_00100000.e_ident_pad + param_1 + 0x2f) = uVar2; *(int1 *)((long)&Elf64_Phdr_ARRAY_00100040[1].p_vaddr + param_1) = 0; pbVar1 = Elf64_Ehdr_00100000.e_ident_pad + param_1 + 0x27; pbVar1[0] = 0; pbVar1[1] = 0; pbVar1[2] = 0; pbVar1[3] = 0; pbVar1 = Elf64_Ehdr_00100000.e_ident_pad + param_1 + 0x2b; pbVar1[0] = 0; pbVar1[1] = 0; pbVar1[2] = 0; pbVar1[3] = 0; translog_cursor_init(param_2,param_1,param_3); translog_check_cursor(param_2); inline_mysql_mutex_lock (&DAT_00d7b840,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c", 0x87c); DAT_00d7b838 = DAT_00d7b838 | (byte)(1 << ((byte)*(int4 *) ((long)&Elf64_Phdr_ARRAY_00100040[1].p_vaddr + param_1 + 4) & 0x1f)); inline_mysql_mutex_unlock(&DAT_00d7b840); return; }
65,353
void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*)
giladroyz[P]FindPeaks/build_O3/_deps/googletest-src/googletest/src/gtest.cc
Result HandleExceptionsInMethodIfSupported(T* object, Result (T::*method)(), const char* location) { // NOTE: The user code can affect the way in which Google Test handles // exceptions by setting GTEST_FLAG(catch_exceptions), but only before // RUN_ALL_TESTS() starts. It is technically possible to check the flag // after the exception is caught and either report or re-throw the // exception based on the flag's value: // // try { // // Perform the test method. // } catch (...) { // if (GTEST_FLAG_GET(catch_exceptions)) // // Report the exception as failure. // else // throw; // Re-throws the original exception. // } // // However, the purpose of this flag is to allow the program to drop into // the debugger when the exception is thrown. On most platforms, once the // control enters the catch block, the exception origin information is // lost and the debugger will stop the program at the point of the // re-throw in this function -- instead of at the point of the original // throw statement in the code under test. For this reason, we perform // the check early, sacrificing the ability to affect Google Test's // exception handling in the method where the exception is thrown. if (internal::GetUnitTestImpl()->catch_exceptions()) { #if GTEST_HAS_EXCEPTIONS try { return HandleSehExceptionsInMethodIfSupported(object, method, location); } catch (const AssertionException&) { // NOLINT // This failure was reported already. } catch (const internal::GoogleTestFailureException&) { // NOLINT // This exception type can only be thrown by a failed Google // Test assertion with the intention of letting another testing // framework catch it. Therefore we just re-throw it. throw; } catch (const std::exception& e) { // NOLINT internal::ReportFailureInUnknownLocation( TestPartResult::kFatalFailure, FormatCxxExceptionMessage(e.what(), location)); } catch (...) { // NOLINT internal::ReportFailureInUnknownLocation( TestPartResult::kFatalFailure, FormatCxxExceptionMessage(nullptr, location)); } return static_cast<Result>(0); #else return HandleSehExceptionsInMethodIfSupported(object, method, location); #endif // GTEST_HAS_EXCEPTIONS } else { return (object->*method)(); } }
O3
cpp
void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*): pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rcx, %rbx movq %rdx, %r15 movq %rsi, %r12 movq %rdi, %r14 callq 0x18c24 movq 0x24ed4(%rip), %rax # 0x597b0 addq %r15, %r14 cmpb $0x1, 0x2c8(%rax) jne 0x34908 testb $0x1, %r12b je 0x348f6 movq (%r14), %rax movq -0x1(%rax,%r12), %r12 movq %r14, %rdi callq *%r12 addq $0x28, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq testb $0x1, %r12b movq %r12, %rcx je 0x34919 movq (%r14), %rax movq -0x1(%rax,%rcx), %rcx movq %r14, %rdi addq $0x28, %rsp popq %rbx popq %r12 popq %r14 popq %r15 jmpq *%rcx movq %rdx, %r14 movq %rax, %rdi cmpl $0x4, %r14d jne 0x3493c callq 0x81f0 jmp 0x349b0 cmpl $0x3, %r14d je 0x349bc callq 0x81f0 cmpl $0x2, %r14d jne 0x34977 movq (%rax), %rcx movq %rax, %rdi callq *0x10(%rcx) leaq 0x8(%rsp), %rdi movq %rax, %rsi movq %rbx, %rdx callq 0x30887 leaq 0x8(%rsp), %rsi movl $0x2, %edi callq 0x200e2 jmp 0x34995 leaq 0x8(%rsp), %rdi xorl %esi, %esi movq %rbx, %rdx callq 0x30887 leaq 0x8(%rsp), %rsi movl $0x2, %edi callq 0x200e2 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x349b0 movq 0x18(%rsp), %rsi incq %rsi callq 0x84e0 callq 0x8910 xorl %eax, %eax jmp 0x348fc callq 0x81f0 callq 0x87e0 movq %rax, %rbx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x349e9 movq 0x18(%rsp), %rsi incq %rsi callq 0x84e0 jmp 0x349e9 movq %rax, %rbx callq 0x8910 jmp 0x34a22 movq %rax, %rbx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x34a13 movq 0x18(%rsp), %rsi incq %rsi callq 0x84e0 jmp 0x34a13 movq %rax, %rbx callq 0x8910 jmp 0x34a22 movq %rax, %rbx callq 0x8910 movq %rbx, %rdi callq 0x8990 movq %rax, %rdi callq 0x321df
_ZN7testing8internal35HandleExceptionsInMethodIfSupportedINS0_12UnitTestImplEbEET0_PT_MS4_FS3_vEPKc: push r15 push r14 push r12 push rbx sub rsp, 28h mov rbx, rcx mov r15, rdx mov r12, rsi mov r14, rdi call _ZN7testing8UnitTest11GetInstanceEv; testing::UnitTest::GetInstance(void) mov rax, cs:qword_597B0 add r14, r15 cmp byte ptr [rax+2C8h], 1 jnz short loc_34908 test r12b, 1 jz short loc_348F6 mov rax, [r14] mov r12, [rax+r12-1] loc_348F6: mov rdi, r14 call r12 loc_348FC: add rsp, 28h pop rbx pop r12 pop r14 pop r15 retn loc_34908: test r12b, 1 mov rcx, r12 jz short loc_34919 mov rax, [r14] mov rcx, [rax+rcx-1] loc_34919: mov rdi, r14 add rsp, 28h pop rbx pop r12 pop r14 pop r15 jmp rcx mov r14, rdx mov rdi, rax; void * cmp r14d, 4 jnz short loc_3493C call ___cxa_begin_catch jmp short loc_349B0 loc_3493C: cmp r14d, 3 jz short loc_349BC call ___cxa_begin_catch cmp r14d, 2 jnz short loc_34977 mov rcx, [rax] mov rdi, rax call qword ptr [rcx+10h] lea rdi, [rsp+48h+var_40] mov rsi, rax mov rdx, rbx call _ZN7testing8internalL25FormatCxxExceptionMessageB5cxx11EPKcS2_; testing::internal::FormatCxxExceptionMessage(char const*,char const*) lea rsi, [rsp+48h+var_40]; int mov edi, 2; int call _ZN7testing8internal30ReportFailureInUnknownLocationENS_14TestPartResult4TypeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::ReportFailureInUnknownLocation(testing::TestPartResult::Type,std::string const&) jmp short loc_34995 loc_34977: lea rdi, [rsp+48h+var_40] xor esi, esi mov rdx, rbx call _ZN7testing8internalL25FormatCxxExceptionMessageB5cxx11EPKcS2_; testing::internal::FormatCxxExceptionMessage(char const*,char const*) lea rsi, [rsp+48h+var_40]; int mov edi, 2; int call _ZN7testing8internal30ReportFailureInUnknownLocationENS_14TestPartResult4TypeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::ReportFailureInUnknownLocation(testing::TestPartResult::Type,std::string const&) loc_34995: lea rax, [rsp+48h+var_30] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_349B0 mov rsi, [rsp+48h+var_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_349B0: call ___cxa_end_catch xor eax, eax jmp loc_348FC loc_349BC: call ___cxa_begin_catch call ___cxa_rethrow mov rbx, rax lea rax, [rsp+48h+var_30] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_349E9 mov rsi, [rsp+48h+var_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_349E9 mov rbx, rax loc_349E9: call ___cxa_end_catch jmp short loc_34A22 mov rbx, rax lea rax, [rsp+48h+var_30] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_34A13 mov rsi, [rsp+48h+var_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_34A13 mov rbx, rax loc_34A13: call ___cxa_end_catch jmp short loc_34A22 mov rbx, rax call ___cxa_end_catch loc_34A22: mov rdi, rbx call __Unwind_Resume mov rdi, rax call __clang_call_terminate
long long testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,bool>( testing::UnitTest *a1, long long ( *a2)(_QWORD), long long a3) { long long ( *v4)(_QWORD *); // r12 _QWORD *v5; // r14 long long ( *v7)(_QWORD *); // rcx v4 = (long long ( *)(_QWORD *))a2; testing::UnitTest::GetInstance(a1); v5 = (_QWORD *)((char *)a1 + a3); if ( *((_BYTE *)qword_597B0 + 712) == 1 ) { if ( ((unsigned __int8)a2 & 1) != 0 ) v4 = *(long long ( **)(_QWORD *))((char *)a2 + *v5 - 1); return v4(v5); } else { v7 = (long long ( *)(_QWORD *))a2; if ( ((unsigned __int8)a2 & 1) != 0 ) v7 = *(long long ( **)(_QWORD *))((char *)a2 + *v5 - 1); return v7(v5); } }
HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,bool>: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,RCX MOV R15,RDX MOV R12,RSI MOV R14,RDI CALL 0x00118c24 MOV RAX,qword ptr [0x001597b0] ADD R14,R15 CMP byte ptr [RAX + 0x2c8],0x1 JNZ 0x00134908 TEST R12B,0x1 JZ 0x001348f6 MOV RAX,qword ptr [R14] MOV R12,qword ptr [RAX + R12*0x1 + -0x1] LAB_001348f6: MOV RDI,R14 CALL R12 LAB_001348fc: ADD RSP,0x28 POP RBX POP R12 POP R14 POP R15 RET LAB_00134908: TEST R12B,0x1 MOV RCX,R12 JZ 0x00134919 MOV RAX,qword ptr [R14] MOV RCX,qword ptr [RAX + RCX*0x1 + -0x1] LAB_00134919: MOV RDI,R14 ADD RSP,0x28 POP RBX POP R12 POP R14 POP R15 JMP RCX
/* bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) */ bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,bool> (UnitTestImpl *param_1,_func_bool *param_2,char *param_3) { bool bVar1; UnitTestImpl *pUVar2; UnitTest::GetInstance(); pUVar2 = param_1 + (long)param_3; if (*(char *)(UnitTest::GetInstance()::instance._64_8_ + 0x2c8) == '\x01') { if (((ulong)param_2 & 1) != 0) { param_2 = *(_func_bool **)(param_2 + *(long *)pUVar2 + -1); } /* try { // try from 001348f6 to 001348fb has its CatchHandler @ 00134929 */ bVar1 = (*param_2)(pUVar2); return bVar1; } if (((ulong)param_2 & 1) != 0) { param_2 = *(_func_bool **)(param_2 + *(long *)pUVar2 + -1); } /* WARNING: Could not recover jumptable at 0x00134927. Too many branches */ /* WARNING: Treating indirect jump as call */ bVar1 = (*param_2)(pUVar2); return bVar1; }
65,354
check_mb_euckr
eloqsql/libmariadb/libmariadb/ma_charset.c
static unsigned int check_mb_euckr(const char *start, const char *end) { if (end - start <= 1) { return 0; /* invalid length */ } if (*(uchar *)start < 0x80) { return 0; /* invalid euckr character */ } if (valid_euckr(start[1])) { return 2; } return 0; }
O3
c
check_mb_euckr: pushq %rbp movq %rsp, %rbp subq %rdi, %rsi xorl %eax, %eax cmpq $0x2, %rsi jl 0x316df cmpb $0x0, (%rdi) jns 0x316df movb 0x1(%rdi), %cl incb %cl xorl %eax, %eax cmpb $-0x5e, %cl setae %al addl %eax, %eax popq %rbp retq
check_mb_euckr: push rbp mov rbp, rsp sub rsi, rdi xor eax, eax cmp rsi, 2 jl short loc_316DF cmp byte ptr [rdi], 0 jns short loc_316DF mov cl, [rdi+1] inc cl xor eax, eax cmp cl, 0A2h setnb al add eax, eax loc_316DF: pop rbp retn
long long check_mb_euckr(char *a1, long long a2) { long long result; // rax result = 0LL; if ( a2 - (long long)a1 >= 2 && *a1 < 0 ) return 2 * (unsigned int)((unsigned __int8)(a1[1] + 1) >= 0xA2u); return result; }
check_mb_euckr: PUSH RBP MOV RBP,RSP SUB RSI,RDI XOR EAX,EAX CMP RSI,0x2 JL 0x001316df CMP byte ptr [RDI],0x0 JNS 0x001316df MOV CL,byte ptr [RDI + 0x1] INC CL XOR EAX,EAX CMP CL,0xa2 SETNC AL ADD EAX,EAX LAB_001316df: POP RBP RET
char check_mb_euckr(char *param_1,long param_2) { char cVar1; cVar1 = '\0'; if ((1 < param_2 - (long)param_1) && (*param_1 < '\0')) { cVar1 = (0xa1 < (byte)(param_1[1] + 1U)) * '\x02'; } return cVar1; }
65,355
get_collation_number
eloqsql/mysys/charset.c
uint get_collation_number(const char *name, myf flags) { uint id; char alias[64]; my_pthread_once(&charsets_initialized, init_available_charsets); if ((id= get_collation_number_internal(name))) return id; if ((name= get_collation_name_alias(name, alias, sizeof(alias),flags))) return get_collation_number_internal(name); return 0; }
O0
c
get_collation_number: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x60(%rbp) movq %rsi, -0x68(%rbp) leaq 0xba6d00(%rip), %rdi # 0xc839d4 leaq 0x85(%rip), %rsi # 0xdcd60 callq 0x2a240 movq -0x60(%rbp), %rdi callq 0xdcef0 movl %eax, -0x6c(%rbp) cmpl $0x0, %eax je 0xdccf9 movl -0x6c(%rbp), %eax movl %eax, -0x54(%rbp) jmp 0xdcd2e movq -0x60(%rbp), %rdi leaq -0x50(%rbp), %rsi movq -0x68(%rbp), %rcx movl $0x40, %edx callq 0xdcf90 movq %rax, -0x60(%rbp) cmpq $0x0, %rax je 0xdcd27 movq -0x60(%rbp), %rdi callq 0xdcef0 movl %eax, -0x54(%rbp) jmp 0xdcd2e movl $0x0, -0x54(%rbp) movl -0x54(%rbp), %eax movl %eax, -0x70(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0xdcd4f movl -0x70(%rbp), %eax addq $0x70, %rsp popq %rbp retq callq 0x2a270 nopw %cs:(%rax,%rax)
get_collation_number: push rbp mov rbp, rsp sub rsp, 70h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_60], rdi mov [rbp+var_68], rsi lea rdi, charsets_initialized lea rsi, init_available_charsets call _pthread_once mov rdi, [rbp+var_60] call get_collation_number_internal mov [rbp+var_6C], eax cmp eax, 0 jz short loc_DCCF9 mov eax, [rbp+var_6C] mov [rbp+var_54], eax jmp short loc_DCD2E loc_DCCF9: mov rdi, [rbp+var_60] lea rsi, [rbp+var_50] mov rcx, [rbp+var_68] mov edx, 40h ; '@' call get_collation_name_alias mov [rbp+var_60], rax cmp rax, 0 jz short loc_DCD27 mov rdi, [rbp+var_60] call get_collation_number_internal mov [rbp+var_54], eax jmp short loc_DCD2E loc_DCD27: mov [rbp+var_54], 0 loc_DCD2E: mov eax, [rbp+var_54] mov [rbp+var_70], eax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_DCD4F mov eax, [rbp+var_70] add rsp, 70h pop rbp retn loc_DCD4F: call ___stack_chk_fail
long long get_collation_number(long long a1, long long a2) { unsigned int collation_number_internal; // [rsp+4h] [rbp-6Ch] long long collation_name_alias; // [rsp+10h] [rbp-60h] _BYTE v6[72]; // [rsp+20h] [rbp-50h] BYREF unsigned long long v7; // [rsp+68h] [rbp-8h] v7 = __readfsqword(0x28u); pthread_once(&charsets_initialized, init_available_charsets); collation_number_internal = get_collation_number_internal(a1); if ( collation_number_internal ) { return collation_number_internal; } else { collation_name_alias = get_collation_name_alias(a1, v6, 64LL, a2); if ( collation_name_alias ) return (unsigned int)get_collation_number_internal(collation_name_alias); else return 0; } }
get_collation_number: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x60],RDI MOV qword ptr [RBP + -0x68],RSI LEA RDI,[0xd839d4] LEA RSI,[0x1dcd60] CALL 0x0012a240 MOV RDI,qword ptr [RBP + -0x60] CALL 0x001dcef0 MOV dword ptr [RBP + -0x6c],EAX CMP EAX,0x0 JZ 0x001dccf9 MOV EAX,dword ptr [RBP + -0x6c] MOV dword ptr [RBP + -0x54],EAX JMP 0x001dcd2e LAB_001dccf9: MOV RDI,qword ptr [RBP + -0x60] LEA RSI,[RBP + -0x50] MOV RCX,qword ptr [RBP + -0x68] MOV EDX,0x40 CALL 0x001dcf90 MOV qword ptr [RBP + -0x60],RAX CMP RAX,0x0 JZ 0x001dcd27 MOV RDI,qword ptr [RBP + -0x60] CALL 0x001dcef0 MOV dword ptr [RBP + -0x54],EAX JMP 0x001dcd2e LAB_001dcd27: MOV dword ptr [RBP + -0x54],0x0 LAB_001dcd2e: MOV EAX,dword ptr [RBP + -0x54] MOV dword ptr [RBP + -0x70],EAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x001dcd4f MOV EAX,dword ptr [RBP + -0x70] ADD RSP,0x70 POP RBP RET LAB_001dcd4f: CALL 0x0012a270
int get_collation_number(int8 param_1,int8 param_2) { long lVar1; long in_FS_OFFSET; int local_5c; int1 local_58 [72]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); pthread_once(&charsets_initialized,init_available_charsets); local_5c = get_collation_number_internal(param_1); if (local_5c == 0) { lVar1 = get_collation_name_alias(param_1,local_58,0x40,param_2); if (lVar1 == 0) { local_5c = 0; } else { local_5c = get_collation_number_internal(lVar1); } } if (*(long *)(in_FS_OFFSET + 0x28) != local_10) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return local_5c; }
65,356
ftxui::animation::easing::ElasticInOut(float)
Andrewchistyakov[P]flashcards_lyc/build_O3/_deps/ftxui-src/src/ftxui/component/animation.cpp
float ElasticInOut(float p) { if (p < 0.5f) { return 0.5f * std::sin(13.f * kPi2 * (2.f * p)) * std::pow(2.f, 10.f * ((2.f * p) - 1.f)); } return 0.5f * (std::sin(-13.f * kPi2 * ((2.f * p - 1.f) + 1.f)) * std::pow(2.f, -10.f * (2.f * p - 1.f)) + 2.f); }
O3
cpp
ftxui::animation::easing::ElasticInOut(float): pushq %rax movaps %xmm0, %xmm1 movss 0x5fff(%rip), %xmm0 # 0x3ce30 ucomiss %xmm1, %xmm0 jbe 0x36e80 addss %xmm1, %xmm1 movss %xmm1, 0x4(%rsp) movss 0x8570(%rip), %xmm0 # 0x3f3b8 mulss %xmm1, %xmm0 callq 0xb330 mulss 0x5fd7(%rip), %xmm0 # 0x3ce30 movss %xmm0, (%rsp) movss 0x4(%rsp), %xmm0 addss 0x8514(%rip), %xmm0 # 0x3f380 mulss 0x8530(%rip), %xmm0 # 0x3f3a4 callq 0xb800 mulss (%rsp), %xmm0 jmp 0x36ed8 addss %xmm1, %xmm1 addss 0x84f4(%rip), %xmm1 # 0x3f380 movss %xmm1, 0x4(%rsp) movss 0x5f8e(%rip), %xmm0 # 0x3ce28 addss %xmm1, %xmm0 mulss 0x8516(%rip), %xmm0 # 0x3f3bc callq 0xb330 movss %xmm0, (%rsp) movss 0x4(%rsp), %xmm0 mulss 0x84ea(%rip), %xmm0 # 0x3f3a8 callq 0xb800 mulss (%rsp), %xmm0 addss 0x84c8(%rip), %xmm0 # 0x3f398 mulss 0x5f58(%rip), %xmm0 # 0x3ce30 popq %rax retq
_ZN5ftxui9animation6easing12ElasticInOutEf: push rax movaps xmm1, xmm0 movss xmm0, cs:dword_3CE30 ucomiss xmm0, xmm1 jbe short loc_36E80 addss xmm1, xmm1 movss [rsp+8+var_4], xmm1 movss xmm0, cs:dword_3F3B8 mulss xmm0, xmm1 call _sinf mulss xmm0, cs:dword_3CE30 movss [rsp+8+var_8], xmm0 movss xmm0, [rsp+8+var_4] addss xmm0, cs:dword_3F380 mulss xmm0, cs:dword_3F3A4 call _exp2f mulss xmm0, [rsp+8+var_8] jmp short loc_36ED8 loc_36E80: addss xmm1, xmm1 addss xmm1, cs:dword_3F380 movss [rsp+8+var_4], xmm1 movss xmm0, cs:dword_3CE28 addss xmm0, xmm1 mulss xmm0, cs:dword_3F3BC call _sinf movss [rsp+8+var_8], xmm0 movss xmm0, [rsp+8+var_4] mulss xmm0, cs:dword_3F3A8 call _exp2f mulss xmm0, [rsp+8+var_8] addss xmm0, cs:dword_3F398 mulss xmm0, cs:dword_3CE30 loc_36ED8: pop rax retn
long long ftxui::animation::easing::ElasticInOut(ftxui::animation::easing *this, float a2) { long long v4; // [rsp+0h] [rbp-8h] if ( a2 >= 0.5 ) { *((float *)&v4 + 1) = (float)(a2 + a2) + -1.0; LODWORD(v4) = sinf(this, (float)(*((float *)&v4 + 1) + 1.0) * -20.420353); exp2f(this, *((float *)&v4 + 1) * -10.0); } else { *((float *)&v4 + 1) = a2 + a2; *(float *)&v4 = sinf(this, 20.420353 * (float)(a2 + a2)) * 0.5; exp2f(this, (float)((float)(a2 + a2) + -1.0) * 10.0); } return v4; }
ElasticInOut: PUSH RAX MOVAPS XMM1,XMM0 MOVSS XMM0,dword ptr [0x0013ce30] UCOMISS XMM0,XMM1 JBE 0x00136e80 ADDSS XMM1,XMM1 MOVSS dword ptr [RSP + 0x4],XMM1 MOVSS XMM0,dword ptr [0x0013f3b8] MULSS XMM0,XMM1 CALL 0x0010b330 MULSS XMM0,dword ptr [0x0013ce30] MOVSS dword ptr [RSP],XMM0 MOVSS XMM0,dword ptr [RSP + 0x4] ADDSS XMM0,dword ptr [0x0013f380] MULSS XMM0,dword ptr [0x0013f3a4] CALL 0x0010b800 MULSS XMM0,dword ptr [RSP] JMP 0x00136ed8 LAB_00136e80: ADDSS XMM1,XMM1 ADDSS XMM1,dword ptr [0x0013f380] MOVSS dword ptr [RSP + 0x4],XMM1 MOVSS XMM0,dword ptr [0x0013ce28] ADDSS XMM0,XMM1 MULSS XMM0,dword ptr [0x0013f3bc] CALL 0x0010b330 MOVSS dword ptr [RSP],XMM0 MOVSS XMM0,dword ptr [RSP + 0x4] MULSS XMM0,dword ptr [0x0013f3a8] CALL 0x0010b800 MULSS XMM0,dword ptr [RSP] ADDSS XMM0,dword ptr [0x0013f398] MULSS XMM0,dword ptr [0x0013ce30] LAB_00136ed8: POP RAX RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* ftxui::animation::easing::ElasticInOut(float) */ int8 ftxui::animation::easing::ElasticInOut(float param_1) { float fVar1; float fVar2; int8 local_8; if (DAT_0013ce30 <= param_1) { fVar2 = param_1 + param_1 + DAT_0013f380; fVar1 = sinf((DAT_0013ce28 + fVar2) * _DAT_0013f3bc); local_8 = CONCAT44(fVar2,fVar1); exp2f(fVar2 * _DAT_0013f3a8); } else { fVar2 = param_1 + param_1; fVar1 = sinf(DAT_0013f3b8 * fVar2); local_8 = CONCAT44(fVar2,fVar1 * DAT_0013ce30); exp2f((fVar2 + DAT_0013f380) * _DAT_0013f3a4); } return local_8; }
65,357
ma_update_status_with_lock
eloqsql/storage/maria/ma_state.c
void _ma_update_status_with_lock(MARIA_HA *info) { my_bool locked= 0; if (info->state == &info->state_save) { locked= 1; mysql_mutex_lock(&info->s->lock.mutex); } (*info->s->lock.update_status)(info->lock.status_param); if (locked) mysql_mutex_unlock(&info->s->lock.mutex); }
O0
c
ma_update_status_with_lock: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movb $0x0, -0x9(%rbp) movq -0x8(%rbp), %rax movq 0x20(%rax), %rax movq -0x8(%rbp), %rcx addq $0x28, %rcx cmpq %rcx, %rax jne 0x499ec movb $0x1, -0x9(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rdi addq $0x7f0, %rdi # imm = 0x7F0 addq $0x18, %rdi leaq 0x108977(%rip), %rsi # 0x152359 movl $0x168, %edx # imm = 0x168 callq 0x49520 movq -0x8(%rbp), %rax movq (%rax), %rax movq 0x8b0(%rax), %rax movq -0x8(%rbp), %rcx movq 0x6b8(%rcx), %rdi callq *%rax cmpb $0x0, -0x9(%rbp) je 0x49a24 movq -0x8(%rbp), %rax movq (%rax), %rdi addq $0x7f0, %rdi # imm = 0x7F0 addq $0x18, %rdi callq 0x49590 addq $0x10, %rsp popq %rbp retq nopw (%rax,%rax)
_ma_update_status_with_lock: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov [rbp+var_9], 0 mov rax, [rbp+var_8] mov rax, [rax+20h] mov rcx, [rbp+var_8] add rcx, 28h ; '(' cmp rax, rcx jnz short loc_499EC mov [rbp+var_9], 1 mov rax, [rbp+var_8] mov rdi, [rax] add rdi, 7F0h add rdi, 18h lea rsi, aWorkspaceLlm4b_7; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 168h call inline_mysql_mutex_lock_6 loc_499EC: mov rax, [rbp+var_8] mov rax, [rax] mov rax, [rax+8B0h] mov rcx, [rbp+var_8] mov rdi, [rcx+6B8h] call rax cmp [rbp+var_9], 0 jz short loc_49A24 mov rax, [rbp+var_8] mov rdi, [rax] add rdi, 7F0h add rdi, 18h call inline_mysql_mutex_unlock_6 loc_49A24: add rsp, 10h pop rbp retn
long long ma_update_status_with_lock(_QWORD *a1) { long long result; // rax char v2; // [rsp+7h] [rbp-9h] v2 = 0; if ( (_QWORD *)a1[4] == a1 + 5 ) { v2 = 1; inline_mysql_mutex_lock_6( *a1 + 2056LL, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_state.c", 0x168u); } result = (*(long long ( **)(_QWORD))(*a1 + 2224LL))(a1[215]); if ( v2 ) return inline_mysql_mutex_unlock_6(*a1 + 2056LL); return result; }
_ma_update_status_with_lock: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV byte ptr [RBP + -0x9],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x20] MOV RCX,qword ptr [RBP + -0x8] ADD RCX,0x28 CMP RAX,RCX JNZ 0x001499ec MOV byte ptr [RBP + -0x9],0x1 MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX] ADD RDI,0x7f0 ADD RDI,0x18 LEA RSI,[0x252359] MOV EDX,0x168 CALL 0x00149520 LAB_001499ec: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x8b0] MOV RCX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RCX + 0x6b8] CALL RAX CMP byte ptr [RBP + -0x9],0x0 JZ 0x00149a24 MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX] ADD RDI,0x7f0 ADD RDI,0x18 CALL 0x00149590 LAB_00149a24: ADD RSP,0x10 POP RBP RET
void _ma_update_status_with_lock(long *param_1) { long *plVar1; plVar1 = (long *)param_1[4]; if (plVar1 == param_1 + 5) { inline_mysql_mutex_lock (*param_1 + 0x808,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_state.c", 0x168); } (**(code **)(*param_1 + 0x8b0))(param_1[0xd7]); if (plVar1 == param_1 + 5) { inline_mysql_mutex_unlock(*param_1 + 0x808); } return; }
65,358
my_mb_wc_utf8mb4_no_range
eloqsql/strings/ctype-utf8.c
static int my_mb_wc_utf8mb4_no_range(CHARSET_INFO *cs __attribute__((unused)), my_wc_t *pwc, const uchar *s) { uchar c; c= s[0]; if (c < 0x80) { *pwc = c; return 1; } if (c < 0xc2) return MY_CS_ILSEQ; if (c < 0xe0) { if (!IS_CONTINUATION_BYTE(s[1])) return MY_CS_ILSEQ; *pwc= UTF8MB2_CODE(c, s[1]); return 2; } if (c < 0xf0) { if (!IS_UTF8MB3_STEP2(c, s[1], s[2])) return MY_CS_ILSEQ; *pwc= UTF8MB3_CODE(c, s[1], s[2]); return 3; } else if (c < 0xf5) { if (!IS_UTF8MB4_STEP2(c, s[1], s[2], s[3])) return MY_CS_ILSEQ; *pwc= UTF8MB4_CODE(c, s[1], s[2], s[3]); return 4; } return MY_CS_ILSEQ; }
O0
c
my_mb_wc_utf8mb4_no_range: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x20(%rbp), %rax movb (%rax), %al movb %al, -0x21(%rbp) movzbl -0x21(%rbp), %eax cmpl $0x80, %eax jge 0x9f18d movzbl -0x21(%rbp), %eax movl %eax, %ecx movq -0x18(%rbp), %rax movq %rcx, (%rax) movl $0x1, -0x4(%rbp) jmp 0x9f389 movzbl -0x21(%rbp), %eax cmpl $0xc2, %eax jge 0x9f1a4 movl $0x0, -0x4(%rbp) jmp 0x9f389 movzbl -0x21(%rbp), %eax cmpl $0xe0, %eax jge 0x9f200 movq -0x20(%rbp), %rax movzbl 0x1(%rax), %eax xorl $0x80, %eax cmpl $0x40, %eax jl 0x9f1cd movl $0x0, -0x4(%rbp) jmp 0x9f389 movzbl -0x21(%rbp), %eax andl $0x1f, %eax movslq %eax, %rcx shlq $0x6, %rcx movq -0x20(%rbp), %rax movzbl 0x1(%rax), %eax xorl $0x80, %eax cltq orq %rax, %rcx movq -0x18(%rbp), %rax movq %rcx, (%rax) movl $0x2, -0x4(%rbp) jmp 0x9f389 movzbl -0x21(%rbp), %eax cmpl $0xf0, %eax jge 0x9f2a2 movq -0x20(%rbp), %rax movzbl 0x1(%rax), %eax xorl $0x80, %eax cmpl $0x40, %eax jge 0x9f24d movq -0x20(%rbp), %rax movzbl 0x2(%rax), %eax xorl $0x80, %eax cmpl $0x40, %eax jge 0x9f24d movzbl -0x21(%rbp), %eax cmpl $0xe1, %eax jge 0x9f259 movq -0x20(%rbp), %rax movzbl 0x1(%rax), %eax cmpl $0xa0, %eax jge 0x9f259 movl $0x0, -0x4(%rbp) jmp 0x9f389 movzbl -0x21(%rbp), %eax andl $0xf, %eax movslq %eax, %rcx shlq $0xc, %rcx movq -0x20(%rbp), %rax movzbl 0x1(%rax), %eax xorl $0x80, %eax cltq shlq $0x6, %rax orq %rax, %rcx movq -0x20(%rbp), %rax movzbl 0x2(%rax), %eax xorl $0x80, %eax cltq orq %rax, %rcx movq -0x18(%rbp), %rax movq %rcx, (%rax) movl $0x3, -0x4(%rbp) jmp 0x9f389 movzbl -0x21(%rbp), %eax cmpl $0xf5, %eax jge 0x9f380 movq -0x20(%rbp), %rax movzbl 0x1(%rax), %eax xorl $0x80, %eax cmpl $0x40, %eax jge 0x9f31b movq -0x20(%rbp), %rax movzbl 0x2(%rax), %eax xorl $0x80, %eax cmpl $0x40, %eax jge 0x9f31b movq -0x20(%rbp), %rax movzbl 0x3(%rax), %eax xorl $0x80, %eax cmpl $0x40, %eax jge 0x9f31b movzbl -0x21(%rbp), %eax cmpl $0xf1, %eax jge 0x9f301 movq -0x20(%rbp), %rax movzbl 0x1(%rax), %eax cmpl $0x90, %eax jl 0x9f31b movzbl -0x21(%rbp), %eax cmpl $0xf3, %eax jle 0x9f324 movq -0x20(%rbp), %rax movzbl 0x1(%rax), %eax cmpl $0x8f, %eax jle 0x9f324 movl $0x0, -0x4(%rbp) jmp 0x9f389 movzbl -0x21(%rbp), %eax andl $0x7, %eax movslq %eax, %rcx shlq $0x12, %rcx movq -0x20(%rbp), %rax movzbl 0x1(%rax), %eax xorl $0x80, %eax cltq shlq $0xc, %rax orq %rax, %rcx movq -0x20(%rbp), %rax movzbl 0x2(%rax), %eax xorl $0x80, %eax cltq shlq $0x6, %rax orq %rax, %rcx movq -0x20(%rbp), %rax movzbl 0x3(%rax), %eax xorl $0x80, %eax cltq orq %rax, %rcx movq -0x18(%rbp), %rax movq %rcx, (%rax) movl $0x4, -0x4(%rbp) jmp 0x9f389 jmp 0x9f382 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nop
my_mb_wc_utf8mb4_no_range: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rax, [rbp+var_20] mov al, [rax] mov [rbp+var_21], al movzx eax, [rbp+var_21] cmp eax, 80h jge short loc_9F18D movzx eax, [rbp+var_21] mov ecx, eax mov rax, [rbp+var_18] mov [rax], rcx mov [rbp+var_4], 1 jmp loc_9F389 loc_9F18D: movzx eax, [rbp+var_21] cmp eax, 0C2h jge short loc_9F1A4 mov [rbp+var_4], 0 jmp loc_9F389 loc_9F1A4: movzx eax, [rbp+var_21] cmp eax, 0E0h jge short loc_9F200 mov rax, [rbp+var_20] movzx eax, byte ptr [rax+1] xor eax, 80h cmp eax, 40h ; '@' jl short loc_9F1CD mov [rbp+var_4], 0 jmp loc_9F389 loc_9F1CD: movzx eax, [rbp+var_21] and eax, 1Fh movsxd rcx, eax shl rcx, 6 mov rax, [rbp+var_20] movzx eax, byte ptr [rax+1] xor eax, 80h cdqe or rcx, rax mov rax, [rbp+var_18] mov [rax], rcx mov [rbp+var_4], 2 jmp loc_9F389 loc_9F200: movzx eax, [rbp+var_21] cmp eax, 0F0h jge loc_9F2A2 mov rax, [rbp+var_20] movzx eax, byte ptr [rax+1] xor eax, 80h cmp eax, 40h ; '@' jge short loc_9F24D mov rax, [rbp+var_20] movzx eax, byte ptr [rax+2] xor eax, 80h cmp eax, 40h ; '@' jge short loc_9F24D movzx eax, [rbp+var_21] cmp eax, 0E1h jge short loc_9F259 mov rax, [rbp+var_20] movzx eax, byte ptr [rax+1] cmp eax, 0A0h jge short loc_9F259 loc_9F24D: mov [rbp+var_4], 0 jmp loc_9F389 loc_9F259: movzx eax, [rbp+var_21] and eax, 0Fh movsxd rcx, eax shl rcx, 0Ch mov rax, [rbp+var_20] movzx eax, byte ptr [rax+1] xor eax, 80h cdqe shl rax, 6 or rcx, rax mov rax, [rbp+var_20] movzx eax, byte ptr [rax+2] xor eax, 80h cdqe or rcx, rax mov rax, [rbp+var_18] mov [rax], rcx mov [rbp+var_4], 3 jmp loc_9F389 loc_9F2A2: movzx eax, [rbp+var_21] cmp eax, 0F5h jge loc_9F380 mov rax, [rbp+var_20] movzx eax, byte ptr [rax+1] xor eax, 80h cmp eax, 40h ; '@' jge short loc_9F31B mov rax, [rbp+var_20] movzx eax, byte ptr [rax+2] xor eax, 80h cmp eax, 40h ; '@' jge short loc_9F31B mov rax, [rbp+var_20] movzx eax, byte ptr [rax+3] xor eax, 80h cmp eax, 40h ; '@' jge short loc_9F31B movzx eax, [rbp+var_21] cmp eax, 0F1h jge short loc_9F301 mov rax, [rbp+var_20] movzx eax, byte ptr [rax+1] cmp eax, 90h jl short loc_9F31B loc_9F301: movzx eax, [rbp+var_21] cmp eax, 0F3h jle short loc_9F324 mov rax, [rbp+var_20] movzx eax, byte ptr [rax+1] cmp eax, 8Fh jle short loc_9F324 loc_9F31B: mov [rbp+var_4], 0 jmp short loc_9F389 loc_9F324: movzx eax, [rbp+var_21] and eax, 7 movsxd rcx, eax shl rcx, 12h mov rax, [rbp+var_20] movzx eax, byte ptr [rax+1] xor eax, 80h cdqe shl rax, 0Ch or rcx, rax mov rax, [rbp+var_20] movzx eax, byte ptr [rax+2] xor eax, 80h cdqe shl rax, 6 or rcx, rax mov rax, [rbp+var_20] movzx eax, byte ptr [rax+3] xor eax, 80h cdqe or rcx, rax mov rax, [rbp+var_18] mov [rax], rcx mov [rbp+var_4], 4 jmp short loc_9F389 loc_9F380: jmp short $+2 loc_9F382: mov [rbp+var_4], 0 loc_9F389: mov eax, [rbp+var_4] pop rbp retn
long long my_mb_wc_utf8mb4_no_range(long long a1, unsigned long long *a2, unsigned __int8 *a3) { unsigned __int8 v4; // [rsp+1h] [rbp-21h] v4 = *a3; if ( *a3 >= 0x80u ) { if ( v4 >= 0xC2u ) { if ( v4 >= 0xE0u ) { if ( v4 >= 0xF0u ) { if ( v4 >= 0xF5u ) { return 0; } else if ( (a3[1] ^ 0x80) < 64 && (a3[2] ^ 0x80) < 64 && (a3[3] ^ 0x80) < 64 && (v4 >= 0xF1u || a3[1] >= 0x90u) && (v4 <= 0xF3u || a3[1] <= 0x8Fu) ) { *a2 = a3[3] ^ 0x80u | ((long long)(a3[2] ^ 0x80u) << 6) | ((long long)(a3[1] ^ 0x80u) << 12) | ((unsigned long long)(v4 & 7) << 18); return 4; } else { return 0; } } else if ( (a3[1] ^ 0x80) < 64 && (a3[2] ^ 0x80) < 64 && (v4 >= 0xE1u || a3[1] >= 0xA0u) ) { *a2 = a3[2] ^ 0x80u | ((long long)(a3[1] ^ 0x80u) << 6) | ((unsigned long long)(v4 & 0xF) << 12); return 3; } else { return 0; } } else if ( (a3[1] ^ 0x80) < 64 ) { *a2 = a3[1] ^ 0x80u | ((unsigned long long)(v4 & 0x1F) << 6); return 2; } else { return 0; } } else { return 0; } } else { *a2 = v4; return 1; } }
my_mb_wc_utf8mb4_no_range: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV RAX,qword ptr [RBP + -0x20] MOV AL,byte ptr [RAX] MOV byte ptr [RBP + -0x21],AL MOVZX EAX,byte ptr [RBP + -0x21] CMP EAX,0x80 JGE 0x0019f18d MOVZX EAX,byte ptr [RBP + -0x21] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x1 JMP 0x0019f389 LAB_0019f18d: MOVZX EAX,byte ptr [RBP + -0x21] CMP EAX,0xc2 JGE 0x0019f1a4 MOV dword ptr [RBP + -0x4],0x0 JMP 0x0019f389 LAB_0019f1a4: MOVZX EAX,byte ptr [RBP + -0x21] CMP EAX,0xe0 JGE 0x0019f200 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x1] XOR EAX,0x80 CMP EAX,0x40 JL 0x0019f1cd MOV dword ptr [RBP + -0x4],0x0 JMP 0x0019f389 LAB_0019f1cd: MOVZX EAX,byte ptr [RBP + -0x21] AND EAX,0x1f MOVSXD RCX,EAX SHL RCX,0x6 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x1] XOR EAX,0x80 CDQE OR RCX,RAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x2 JMP 0x0019f389 LAB_0019f200: MOVZX EAX,byte ptr [RBP + -0x21] CMP EAX,0xf0 JGE 0x0019f2a2 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x1] XOR EAX,0x80 CMP EAX,0x40 JGE 0x0019f24d MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x2] XOR EAX,0x80 CMP EAX,0x40 JGE 0x0019f24d MOVZX EAX,byte ptr [RBP + -0x21] CMP EAX,0xe1 JGE 0x0019f259 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x1] CMP EAX,0xa0 JGE 0x0019f259 LAB_0019f24d: MOV dword ptr [RBP + -0x4],0x0 JMP 0x0019f389 LAB_0019f259: MOVZX EAX,byte ptr [RBP + -0x21] AND EAX,0xf MOVSXD RCX,EAX SHL RCX,0xc MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x1] XOR EAX,0x80 CDQE SHL RAX,0x6 OR RCX,RAX MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x2] XOR EAX,0x80 CDQE OR RCX,RAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x3 JMP 0x0019f389 LAB_0019f2a2: MOVZX EAX,byte ptr [RBP + -0x21] CMP EAX,0xf5 JGE 0x0019f380 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x1] XOR EAX,0x80 CMP EAX,0x40 JGE 0x0019f31b MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x2] XOR EAX,0x80 CMP EAX,0x40 JGE 0x0019f31b MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x3] XOR EAX,0x80 CMP EAX,0x40 JGE 0x0019f31b MOVZX EAX,byte ptr [RBP + -0x21] CMP EAX,0xf1 JGE 0x0019f301 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x1] CMP EAX,0x90 JL 0x0019f31b LAB_0019f301: MOVZX EAX,byte ptr [RBP + -0x21] CMP EAX,0xf3 JLE 0x0019f324 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x1] CMP EAX,0x8f JLE 0x0019f324 LAB_0019f31b: MOV dword ptr [RBP + -0x4],0x0 JMP 0x0019f389 LAB_0019f324: MOVZX EAX,byte ptr [RBP + -0x21] AND EAX,0x7 MOVSXD RCX,EAX SHL RCX,0x12 MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x1] XOR EAX,0x80 CDQE SHL RAX,0xc OR RCX,RAX MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x2] XOR EAX,0x80 CDQE SHL RAX,0x6 OR RCX,RAX MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x3] XOR EAX,0x80 CDQE OR RCX,RAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x4 JMP 0x0019f389 LAB_0019f380: JMP 0x0019f382 LAB_0019f382: MOV dword ptr [RBP + -0x4],0x0 LAB_0019f389: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int4 my_mb_wc_utf8mb4_no_range(int8 param_1,ulong *param_2,byte *param_3) { byte bVar1; int4 local_c; bVar1 = *param_3; if (bVar1 < 0x80) { *param_2 = (ulong)bVar1; local_c = 1; } else if (bVar1 < 0xc2) { local_c = 0; } else if (bVar1 < 0xe0) { if ((param_3[1] ^ 0x80) < 0x40) { *param_2 = (long)(int)(bVar1 & 0x1f) << 6 | (long)(int)(param_3[1] ^ 0x80); local_c = 2; } else { local_c = 0; } } else if (bVar1 < 0xf0) { if ((((param_3[1] ^ 0x80) < 0x40) && ((param_3[2] ^ 0x80) < 0x40)) && ((0xe0 < bVar1 || (0x9f < param_3[1])))) { *param_2 = (long)(int)(bVar1 & 0xf) << 0xc | (long)(int)(param_3[1] ^ 0x80) << 6 | (long)(int)(param_3[2] ^ 0x80); local_c = 3; } else { local_c = 0; } } else if (bVar1 < 0xf5) { if ((((((param_3[1] ^ 0x80) < 0x40) && ((param_3[2] ^ 0x80) < 0x40)) && ((param_3[3] ^ 0x80) < 0x40)) && ((0xf0 < bVar1 || (0x8f < param_3[1])))) && ((bVar1 < 0xf4 || (param_3[1] < 0x90)))) { *param_2 = (long)(int)(bVar1 & 7) << 0x12 | (long)(int)(param_3[1] ^ 0x80) << 0xc | (long)(int)(param_3[2] ^ 0x80) << 6 | (long)(int)(param_3[3] ^ 0x80); local_c = 4; } else { local_c = 0; } } else { local_c = 0; } return local_c; }
65,359
my_caseup_8bit
eloqsql/strings/ctype-simple.c
size_t my_caseup_8bit(CHARSET_INFO * cs, const char *src, size_t srclen, char *dst, size_t dstlen __attribute__((unused))) { const char *end= src + srclen; register const uchar *map= cs->to_upper; DBUG_ASSERT(srclen <= dstlen); for ( ; src != end ; src++) *dst++= (char) map[(uchar) *src]; return srclen; }
O3
c
my_caseup_8bit: movq %rdx, %rax testq %rdx, %rdx je 0xb4f0f pushq %rbp movq %rsp, %rbp movq 0x50(%rdi), %rdx xorl %edi, %edi movzbl (%rsi,%rdi), %r8d movb (%rdx,%r8), %r8b movb %r8b, (%rcx,%rdi) incq %rdi cmpq %rdi, %rax jne 0xb4ef9 popq %rbp retq
my_caseup_8bit: mov rax, rdx test rdx, rdx jz short locret_B4F0F push rbp mov rbp, rsp mov rdx, [rdi+50h] xor edi, edi loc_B4EF9: movzx r8d, byte ptr [rsi+rdi] mov r8b, [rdx+r8] mov [rcx+rdi], r8b inc rdi cmp rax, rdi jnz short loc_B4EF9 pop rbp locret_B4F0F: retn
long long my_caseup_8bit(long long a1, long long a2, long long a3, long long a4) { long long result; // rax long long v5; // rdx long long v6; // rdi result = a3; if ( a3 ) { v5 = *(_QWORD *)(a1 + 80); v6 = 0LL; do { *(_BYTE *)(a4 + v6) = *(_BYTE *)(v5 + *(unsigned __int8 *)(a2 + v6)); ++v6; } while ( result != v6 ); } return result; }
my_caseup_8bit: MOV RAX,RDX TEST RDX,RDX JZ 0x001b4f0f PUSH RBP MOV RBP,RSP MOV RDX,qword ptr [RDI + 0x50] XOR EDI,EDI LAB_001b4ef9: MOVZX R8D,byte ptr [RSI + RDI*0x1] MOV R8B,byte ptr [RDX + R8*0x1] MOV byte ptr [RCX + RDI*0x1],R8B INC RDI CMP RAX,RDI JNZ 0x001b4ef9 POP RBP LAB_001b4f0f: RET
void my_caseup_8bit(long param_1,long param_2,long param_3,long param_4) { long lVar1; long lVar2; if (param_3 != 0) { lVar1 = *(long *)(param_1 + 0x50); lVar2 = 0; do { *(int1 *)(param_4 + lVar2) = *(int1 *)(lVar1 + (ulong)*(byte *)(param_2 + lVar2)); lVar2 = lVar2 + 1; } while (param_3 != lVar2); } return; }
65,360
google::protobuf::FieldDescriptor::DebugStringWithOptions[abi:cxx11](google::protobuf::DebugStringOptions const&) const
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc
std::string FieldDescriptor::DebugStringWithOptions( const DebugStringOptions& debug_string_options) const { std::string contents; int depth = 0; if (is_extension()) { strings::SubstituteAndAppend(&contents, "extend .$0 {\n", containing_type()->full_name()); depth = 1; } DebugString(depth, &contents, debug_string_options); if (is_extension()) { contents.append("}\n"); } return contents; }
O0
cpp
google::protobuf::FieldDescriptor::DebugStringWithOptions[abi:cxx11](google::protobuf::DebugStringOptions const&) const: subq $0x278, %rsp # imm = 0x278 movq %rdi, 0x48(%rsp) movq %rdi, %rax movq %rax, 0x50(%rsp) movq %rdi, 0x270(%rsp) movq %rsi, 0x268(%rsp) movq %rdx, 0x260(%rsp) movq 0x268(%rsp), %rax movq %rax, 0x58(%rsp) movb $0x0, 0x25f(%rsp) callq 0x13620 movq 0x58(%rsp), %rdi movl $0x0, 0x258(%rsp) callq 0x73300 movb %al, 0x67(%rsp) jmp 0x3f671 movb 0x67(%rsp), %al testb $0x1, %al jne 0x3f67e jmp 0x3f7df movq 0x58(%rsp), %rdi callq 0x73400 movq %rax, 0x40(%rsp) jmp 0x3f68f movq 0x40(%rsp), %rdi callq 0x163d0 movq %rax, 0x38(%rsp) jmp 0x3f6a0 movq 0x38(%rsp), %rsi leaq 0x218(%rsp), %rdi callq 0x769e0 jmp 0x3f6b4 leaq 0x1e8(%rsp), %rdi callq 0x76920 jmp 0x3f6c3 leaq 0x1b8(%rsp), %rdi callq 0x76920 jmp 0x3f6d2 leaq 0x188(%rsp), %rdi callq 0x76920 jmp 0x3f6e1 leaq 0x158(%rsp), %rdi callq 0x76920 jmp 0x3f6f0 leaq 0x128(%rsp), %rdi callq 0x76920 jmp 0x3f6ff leaq 0xf8(%rsp), %rdi callq 0x76920 jmp 0x3f70e leaq 0xc8(%rsp), %rdi callq 0x76920 jmp 0x3f71d leaq 0x98(%rsp), %rdi callq 0x76920 jmp 0x3f72c leaq 0x68(%rsp), %rdi callq 0x76920 jmp 0x3f738 movq 0x48(%rsp), %rdi movq %rsp, %rax leaq 0x68(%rsp), %rcx movq %rcx, 0x28(%rax) leaq 0x98(%rsp), %rcx movq %rcx, 0x20(%rax) leaq 0xc8(%rsp), %rcx movq %rcx, 0x18(%rax) leaq 0xf8(%rsp), %rcx movq %rcx, 0x10(%rax) leaq 0x128(%rsp), %rcx movq %rcx, 0x8(%rax) leaq 0x158(%rsp), %rcx movq %rcx, (%rax) leaq 0x1ae1e7(%rip), %rsi # 0x1ed972 leaq 0x218(%rsp), %rdx leaq 0x1e8(%rsp), %rcx leaq 0x1b8(%rsp), %r8 leaq 0x188(%rsp), %r9 callq 0x144ce0 jmp 0x3f7b2 movl $0x1, 0x258(%rsp) jmp 0x3f7df movq 0x48(%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0x250(%rsp) movl %eax, 0x24c(%rsp) callq 0x13290 jmp 0x3f857 movq 0x48(%rsp), %rdx movq 0x58(%rsp), %rdi movl 0x258(%rsp), %esi movq 0x260(%rsp), %rcx callq 0x3e2b0 jmp 0x3f7ff movq 0x58(%rsp), %rdi callq 0x73300 movb %al, 0x37(%rsp) jmp 0x3f80f movb 0x37(%rsp), %al testb $0x1, %al jne 0x3f819 jmp 0x3f82e movq 0x48(%rsp), %rdi leaq 0x1ae186(%rip), %rsi # 0x1ed9ab callq 0x193c0 jmp 0x3f82c jmp 0x3f82e movb $0x1, 0x25f(%rsp) testb $0x1, 0x25f(%rsp) jne 0x3f84a movq 0x48(%rsp), %rdi callq 0x13290 movq 0x50(%rsp), %rax addq $0x278, %rsp # imm = 0x278 retq movq 0x250(%rsp), %rdi callq 0x13750 nopw %cs:(%rax,%rax)
_ZNK6google8protobuf15FieldDescriptor22DebugStringWithOptionsB5cxx11ERKNS0_18DebugStringOptionsE: sub rsp, 278h mov [rsp+278h+var_230], rdi mov rax, rdi mov [rsp+278h+var_228], rax mov [rsp+278h+var_8], rdi mov [rsp+278h+var_10], rsi mov [rsp+278h+var_18], rdx mov rax, [rsp+278h+var_10] mov [rsp+278h+var_220], rax mov [rsp+278h+var_19], 0 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev; std::string::basic_string(void) mov rdi, [rsp+278h+var_220]; this mov [rsp+278h+var_20], 0 call _ZNK6google8protobuf15FieldDescriptor12is_extensionEv; google::protobuf::FieldDescriptor::is_extension(void) mov [rsp+278h+var_211], al jmp short $+2 loc_3F671: mov al, [rsp+278h+var_211] test al, 1 jnz short loc_3F67E jmp loc_3F7DF loc_3F67E: mov rdi, [rsp+278h+var_220]; this call _ZNK6google8protobuf15FieldDescriptor15containing_typeEv; google::protobuf::FieldDescriptor::containing_type(void) mov [rsp+278h+var_238], rax jmp short $+2 loc_3F68F: mov rdi, [rsp+278h+var_238] call _ZNK6google8protobuf10Descriptor9full_nameB5cxx11Ev; google::protobuf::Descriptor::full_name(void) mov [rsp+278h+var_240], rax jmp short $+2 loc_3F6A0: mov rsi, [rsp+278h+var_240] lea rdi, [rsp+278h+var_60] call _ZN6google8protobuf7strings8internal13SubstituteArgC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::strings::internal::SubstituteArg::SubstituteArg(std::string const&) jmp short $+2 loc_3F6B4: lea rdi, [rsp+278h+var_90]; this call _ZN6google8protobuf7strings8internal13SubstituteArgC2Ev; google::protobuf::strings::internal::SubstituteArg::SubstituteArg(void) jmp short $+2 loc_3F6C3: lea rdi, [rsp+278h+var_C0]; this call _ZN6google8protobuf7strings8internal13SubstituteArgC2Ev; google::protobuf::strings::internal::SubstituteArg::SubstituteArg(void) jmp short $+2 loc_3F6D2: lea rdi, [rsp+278h+var_F0]; this call _ZN6google8protobuf7strings8internal13SubstituteArgC2Ev; google::protobuf::strings::internal::SubstituteArg::SubstituteArg(void) jmp short $+2 loc_3F6E1: lea rdi, [rsp+278h+var_120]; this call _ZN6google8protobuf7strings8internal13SubstituteArgC2Ev; google::protobuf::strings::internal::SubstituteArg::SubstituteArg(void) jmp short $+2 loc_3F6F0: lea rdi, [rsp+278h+var_150]; this call _ZN6google8protobuf7strings8internal13SubstituteArgC2Ev; google::protobuf::strings::internal::SubstituteArg::SubstituteArg(void) jmp short $+2 loc_3F6FF: lea rdi, [rsp+278h+var_180]; this call _ZN6google8protobuf7strings8internal13SubstituteArgC2Ev; google::protobuf::strings::internal::SubstituteArg::SubstituteArg(void) jmp short $+2 loc_3F70E: lea rdi, [rsp+278h+var_1B0]; this call _ZN6google8protobuf7strings8internal13SubstituteArgC2Ev; google::protobuf::strings::internal::SubstituteArg::SubstituteArg(void) jmp short $+2 loc_3F71D: lea rdi, [rsp+278h+var_1E0]; this call _ZN6google8protobuf7strings8internal13SubstituteArgC2Ev; google::protobuf::strings::internal::SubstituteArg::SubstituteArg(void) jmp short $+2 loc_3F72C: lea rdi, [rsp+278h+var_210]; this call _ZN6google8protobuf7strings8internal13SubstituteArgC2Ev; google::protobuf::strings::internal::SubstituteArg::SubstituteArg(void) jmp short $+2 loc_3F738: mov rdi, [rsp+278h+var_230] mov rax, rsp lea rcx, [rsp+278h+var_210] mov [rax+28h], rcx lea rcx, [rsp+278h+var_1E0] mov [rax+20h], rcx lea rcx, [rsp+278h+var_1B0] mov [rax+18h], rcx lea rcx, [rsp+278h+var_180] mov [rax+10h], rcx lea rcx, [rsp+278h+var_150] mov [rax+8], rcx lea rcx, [rsp+278h+var_120] mov [rax], rcx lea rsi, aExtend0; "extend .$0 {\n" lea rdx, [rsp+278h+var_60] lea rcx, [rsp+278h+var_90] lea r8, [rsp+278h+var_C0] lea r9, [rsp+278h+var_F0] call _ZN6google8protobuf7strings19SubstituteAndAppendEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKcRKNS1_8internal13SubstituteArgESE_SE_SE_SE_SE_SE_SE_SE_SE_; google::protobuf::strings::SubstituteAndAppend(std::string *,char const*,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&,google::protobuf::strings::internal::SubstituteArg const&) jmp short $+2 loc_3F7B2: mov [rsp+278h+var_20], 1 jmp short loc_3F7DF mov rdi, [rsp+arg_40] mov rcx, rax mov eax, edx mov [rsp+arg_248], rcx mov [rsp+arg_244], eax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_3F857 loc_3F7DF: mov rdx, [rsp+278h+var_230] mov rdi, [rsp+278h+var_220] mov esi, [rsp+278h+var_20] mov rcx, [rsp+278h+var_18] call _ZNK6google8protobuf15FieldDescriptor11DebugStringEiPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_18DebugStringOptionsE; google::protobuf::FieldDescriptor::DebugString(int,std::string *,google::protobuf::DebugStringOptions const&) jmp short $+2 loc_3F7FF: mov rdi, [rsp+278h+var_220]; this call _ZNK6google8protobuf15FieldDescriptor12is_extensionEv; google::protobuf::FieldDescriptor::is_extension(void) mov [rsp+278h+var_241], al jmp short $+2 loc_3F80F: mov al, [rsp+278h+var_241] test al, 1 jnz short loc_3F819 jmp short loc_3F82E loc_3F819: mov rdi, [rsp+278h+var_230] lea rsi, a0_2+4; "}\n" call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) jmp short $+2 loc_3F82C: jmp short $+2 loc_3F82E: mov [rsp+278h+var_19], 1 test [rsp+278h+var_19], 1 jnz short loc_3F84A mov rdi, [rsp+278h+var_230] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_3F84A: mov rax, [rsp+278h+var_228] add rsp, 278h retn loc_3F857: mov rdi, [rsp+arg_248] call __Unwind_Resume
long long google::protobuf::FieldDescriptor::DebugStringWithOptions[abi:cxx11]( long long a1, google::protobuf::FieldDescriptor *a2, long long a3, double a4) { long long v5; // [rsp+38h] [rbp-240h] long long v6; // [rsp+40h] [rbp-238h] _BYTE v7[48]; // [rsp+68h] [rbp-210h] BYREF _BYTE v8[48]; // [rsp+98h] [rbp-1E0h] BYREF _BYTE v9[48]; // [rsp+C8h] [rbp-1B0h] BYREF _BYTE v10[48]; // [rsp+F8h] [rbp-180h] BYREF _BYTE v11[48]; // [rsp+128h] [rbp-150h] BYREF _BYTE v12[48]; // [rsp+158h] [rbp-120h] BYREF _BYTE v13[48]; // [rsp+188h] [rbp-F0h] BYREF _BYTE v14[48]; // [rsp+1B8h] [rbp-C0h] BYREF _BYTE v15[48]; // [rsp+1E8h] [rbp-90h] BYREF _BYTE v16[64]; // [rsp+218h] [rbp-60h] BYREF unsigned int v17; // [rsp+258h] [rbp-20h] char v18; // [rsp+25Fh] [rbp-19h] long long v19; // [rsp+260h] [rbp-18h] google::protobuf::FieldDescriptor *v20; // [rsp+268h] [rbp-10h] long long v21; // [rsp+270h] [rbp-8h] v21 = a1; v20 = a2; v19 = a3; v18 = 0; std::string::basic_string(a1); v17 = 0; if ( (google::protobuf::FieldDescriptor::is_extension(a2) & 1) != 0 ) { v6 = google::protobuf::FieldDescriptor::containing_type(a2); v5 = google::protobuf::Descriptor::full_name[abi:cxx11](v6); google::protobuf::strings::internal::SubstituteArg::SubstituteArg(v16, v5); google::protobuf::strings::internal::SubstituteArg::SubstituteArg((google::protobuf::strings::internal::SubstituteArg *)v15); google::protobuf::strings::internal::SubstituteArg::SubstituteArg((google::protobuf::strings::internal::SubstituteArg *)v14); google::protobuf::strings::internal::SubstituteArg::SubstituteArg((google::protobuf::strings::internal::SubstituteArg *)v13); google::protobuf::strings::internal::SubstituteArg::SubstituteArg((google::protobuf::strings::internal::SubstituteArg *)v12); google::protobuf::strings::internal::SubstituteArg::SubstituteArg((google::protobuf::strings::internal::SubstituteArg *)v11); google::protobuf::strings::internal::SubstituteArg::SubstituteArg((google::protobuf::strings::internal::SubstituteArg *)v10); google::protobuf::strings::internal::SubstituteArg::SubstituteArg((google::protobuf::strings::internal::SubstituteArg *)v9); google::protobuf::strings::internal::SubstituteArg::SubstituteArg((google::protobuf::strings::internal::SubstituteArg *)v8); google::protobuf::strings::internal::SubstituteArg::SubstituteArg((google::protobuf::strings::internal::SubstituteArg *)v7); google::protobuf::strings::SubstituteAndAppend(a1, "extend .$0 {\n", v16, v15, v14, v13); v17 = 1; } google::protobuf::FieldDescriptor::DebugString(a2, v17, a1, v19, a4); if ( (google::protobuf::FieldDescriptor::is_extension(a2) & 1) != 0 ) std::string::append(a1, (long long)"}\n"); return a1; }
DebugStringWithOptions[abi:cxx11]: SUB RSP,0x278 MOV qword ptr [RSP + 0x48],RDI MOV RAX,RDI MOV qword ptr [RSP + 0x50],RAX MOV qword ptr [RSP + 0x270],RDI MOV qword ptr [RSP + 0x268],RSI MOV qword ptr [RSP + 0x260],RDX MOV RAX,qword ptr [RSP + 0x268] MOV qword ptr [RSP + 0x58],RAX MOV byte ptr [RSP + 0x25f],0x0 CALL 0x00113620 MOV RDI,qword ptr [RSP + 0x58] MOV dword ptr [RSP + 0x258],0x0 LAB_0013f666: CALL 0x00173300 MOV byte ptr [RSP + 0x67],AL JMP 0x0013f671 LAB_0013f671: MOV AL,byte ptr [RSP + 0x67] TEST AL,0x1 JNZ 0x0013f67e JMP 0x0013f7df LAB_0013f67e: MOV RDI,qword ptr [RSP + 0x58] CALL 0x00173400 MOV qword ptr [RSP + 0x40],RAX JMP 0x0013f68f LAB_0013f68f: MOV RDI,qword ptr [RSP + 0x40] CALL 0x001163d0 MOV qword ptr [RSP + 0x38],RAX JMP 0x0013f6a0 LAB_0013f6a0: MOV RSI,qword ptr [RSP + 0x38] LEA RDI,[RSP + 0x218] CALL 0x001769e0 JMP 0x0013f6b4 LAB_0013f6b4: LEA RDI,[RSP + 0x1e8] CALL 0x00176920 JMP 0x0013f6c3 LAB_0013f6c3: LEA RDI,[RSP + 0x1b8] CALL 0x00176920 JMP 0x0013f6d2 LAB_0013f6d2: LEA RDI,[RSP + 0x188] CALL 0x00176920 JMP 0x0013f6e1 LAB_0013f6e1: LEA RDI,[RSP + 0x158] CALL 0x00176920 JMP 0x0013f6f0 LAB_0013f6f0: LEA RDI,[RSP + 0x128] CALL 0x00176920 JMP 0x0013f6ff LAB_0013f6ff: LEA RDI,[RSP + 0xf8] CALL 0x00176920 JMP 0x0013f70e LAB_0013f70e: LEA RDI,[RSP + 0xc8] CALL 0x00176920 JMP 0x0013f71d LAB_0013f71d: LEA RDI,[RSP + 0x98] CALL 0x00176920 JMP 0x0013f72c LAB_0013f72c: LEA RDI,[RSP + 0x68] CALL 0x00176920 JMP 0x0013f738 LAB_0013f738: MOV RDI,qword ptr [RSP + 0x48] MOV RAX,RSP LEA RCX,[RSP + 0x68] MOV qword ptr [RAX + 0x28],RCX LEA RCX,[RSP + 0x98] MOV qword ptr [RAX + 0x20],RCX LEA RCX,[RSP + 0xc8] MOV qword ptr [RAX + 0x18],RCX LEA RCX,[RSP + 0xf8] MOV qword ptr [RAX + 0x10],RCX LEA RCX,[RSP + 0x128] MOV qword ptr [RAX + 0x8],RCX LEA RCX,[RSP + 0x158] MOV qword ptr [RAX],RCX LEA RSI,[0x2ed972] LEA RDX,[RSP + 0x218] LEA RCX,[RSP + 0x1e8] LEA R8,[RSP + 0x1b8] LEA R9,[RSP + 0x188] CALL 0x00244ce0 JMP 0x0013f7b2 LAB_0013f7b2: MOV dword ptr [RSP + 0x258],0x1 JMP 0x0013f7df LAB_0013f7df: MOV RDX,qword ptr [RSP + 0x48] MOV RDI,qword ptr [RSP + 0x58] MOV ESI,dword ptr [RSP + 0x258] MOV RCX,qword ptr [RSP + 0x260] CALL 0x0013e2b0 JMP 0x0013f7ff LAB_0013f7ff: MOV RDI,qword ptr [RSP + 0x58] CALL 0x00173300 MOV byte ptr [RSP + 0x37],AL JMP 0x0013f80f LAB_0013f80f: MOV AL,byte ptr [RSP + 0x37] TEST AL,0x1 JNZ 0x0013f819 JMP 0x0013f82e LAB_0013f819: MOV RDI,qword ptr [RSP + 0x48] LEA RSI,[0x2ed9ab] CALL 0x001193c0 LAB_0013f82a: JMP 0x0013f82c LAB_0013f82c: JMP 0x0013f82e LAB_0013f82e: MOV byte ptr [RSP + 0x25f],0x1 TEST byte ptr [RSP + 0x25f],0x1 JNZ 0x0013f84a MOV RDI,qword ptr [RSP + 0x48] CALL 0x00113290 LAB_0013f84a: MOV RAX,qword ptr [RSP + 0x50] ADD RSP,0x278 RET
/* WARNING: Removing unreachable block (ram,0x0013f840) */ /* google::protobuf::FieldDescriptor::DebugStringWithOptions[abi:cxx11](google::protobuf::DebugStringOptions const&) const */ DebugStringOptions * google::protobuf::FieldDescriptor::DebugStringWithOptions_abi_cxx11_(DebugStringOptions *param_1) { byte bVar1; Descriptor *this; string *psVar2; DebugStringOptions *in_RDX; FieldDescriptor *in_RSI; SubstituteArg local_210 [48]; SubstituteArg local_1e0 [48]; SubstituteArg local_1b0 [48]; SubstituteArg local_180 [48]; SubstituteArg local_150 [48]; SubstituteArg local_120 [48]; SubstituteArg local_f0 [48]; SubstituteArg local_c0 [48]; SubstituteArg local_90 [48]; SubstituteArg local_60 [64]; int local_20; int1 local_19; DebugStringOptions *local_18; DebugStringOptions *local_8; local_19 = 0; local_18 = in_RDX; local_8 = param_1; std::__cxx11::string::string((string *)param_1); local_20 = 0; /* try { // try from 0013f666 to 0013f829 has its CatchHandler @ 0013f7bf */ bVar1 = is_extension(in_RSI); if ((bVar1 & 1) != 0) { this = (Descriptor *)containing_type(in_RSI); psVar2 = (string *)Descriptor::full_name_abi_cxx11_(this); strings::internal::SubstituteArg::SubstituteArg(local_60,psVar2); strings::internal::SubstituteArg::SubstituteArg(local_90); strings::internal::SubstituteArg::SubstituteArg(local_c0); strings::internal::SubstituteArg::SubstituteArg(local_f0); strings::internal::SubstituteArg::SubstituteArg(local_120); strings::internal::SubstituteArg::SubstituteArg(local_150); strings::internal::SubstituteArg::SubstituteArg(local_180); strings::internal::SubstituteArg::SubstituteArg(local_1b0); strings::internal::SubstituteArg::SubstituteArg(local_1e0); strings::internal::SubstituteArg::SubstituteArg(local_210); strings::SubstituteAndAppend ((string *)param_1,"extend .$0 {\n",local_60,local_90,local_c0,local_f0,local_120, local_150,local_180,local_1b0,local_1e0,local_210); local_20 = 1; } DebugString(in_RSI,local_20,(string *)param_1,local_18); bVar1 = is_extension(in_RSI); if ((bVar1 & 1) != 0) { std::__cxx11::string::append((string *)param_1,"}\n"); } return param_1; }
65,361
rlCheckRenderBatchLimit
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rlgl.h
bool rlCheckRenderBatchLimit(int vCount) { bool overflow = false; #if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2) if ((RLGL.State.vertexCounter + vCount) >= (RLGL.currentBatch->vertexBuffer[RLGL.currentBatch->currentBuffer].elementCount*4)) { overflow = true; // Store current primitive drawing mode and texture id int currentMode = RLGL.currentBatch->draws[RLGL.currentBatch->drawCounter - 1].mode; int currentTexture = RLGL.currentBatch->draws[RLGL.currentBatch->drawCounter - 1].textureId; rlDrawRenderBatch(RLGL.currentBatch); // NOTE: Stereo rendering is checked inside // Restore state of last batch so we can continue adding vertices RLGL.currentBatch->draws[RLGL.currentBatch->drawCounter - 1].mode = currentMode; RLGL.currentBatch->draws[RLGL.currentBatch->drawCounter - 1].textureId = currentTexture; } #endif return overflow; }
O0
c
rlCheckRenderBatchLimit: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movl %edi, -0x4(%rbp) movb $0x0, -0x5(%rbp) movl 0x1696eb(%rip), %eax # 0x21a200 addl -0x4(%rbp), %eax movq 0x1696b9(%rip), %rcx # 0x21a1d8 movq 0x8(%rcx), %rcx movq 0x1696ae(%rip), %rdx # 0x21a1d8 movslq 0x4(%rdx), %rdx imulq $0x48, %rdx, %rdx addq %rdx, %rcx movl (%rcx), %ecx shll $0x2, %ecx cmpl %ecx, %eax jl 0xb0bf0 movb $0x1, -0x5(%rbp) movq 0x16968b(%rip), %rax # 0x21a1d8 movq 0x10(%rax), %rax movq 0x169680(%rip), %rcx # 0x21a1d8 movl 0x18(%rcx), %ecx subl $0x1, %ecx movslq %ecx, %rcx shlq $0x4, %rcx addq %rcx, %rax movl (%rax), %eax movl %eax, -0xc(%rbp) movq 0x169664(%rip), %rax # 0x21a1d8 movq 0x10(%rax), %rax movq 0x169659(%rip), %rcx # 0x21a1d8 movl 0x18(%rcx), %ecx subl $0x1, %ecx movslq %ecx, %rcx shlq $0x4, %rcx addq %rcx, %rax movl 0xc(%rax), %eax movl %eax, -0x10(%rbp) movq 0x16963c(%rip), %rdi # 0x21a1d8 callq 0xb0c00 movl -0xc(%rbp), %ecx movq 0x16962d(%rip), %rax # 0x21a1d8 movq 0x10(%rax), %rax movq 0x169622(%rip), %rdx # 0x21a1d8 movl 0x18(%rdx), %edx subl $0x1, %edx movslq %edx, %rdx shlq $0x4, %rdx addq %rdx, %rax movl %ecx, (%rax) movl -0x10(%rbp), %ecx movq 0x169606(%rip), %rax # 0x21a1d8 movq 0x10(%rax), %rax movq 0x1695fb(%rip), %rdx # 0x21a1d8 movl 0x18(%rdx), %edx subl $0x1, %edx movslq %edx, %rdx shlq $0x4, %rdx addq %rdx, %rax movl %ecx, 0xc(%rax) movb -0x5(%rbp), %al andb $0x1, %al addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
rlCheckRenderBatchLimit: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_4], edi mov [rbp+var_5], 0 mov eax, cs:dword_21A200 add eax, [rbp+var_4] mov rcx, cs:RLGL mov rcx, [rcx+8] mov rdx, cs:RLGL movsxd rdx, dword ptr [rdx+4] imul rdx, 48h ; 'H' add rcx, rdx mov ecx, [rcx] shl ecx, 2 cmp eax, ecx jl loc_B0BF0 mov [rbp+var_5], 1 mov rax, cs:RLGL mov rax, [rax+10h] mov rcx, cs:RLGL mov ecx, [rcx+18h] sub ecx, 1 movsxd rcx, ecx shl rcx, 4 add rax, rcx mov eax, [rax] mov [rbp+var_C], eax mov rax, cs:RLGL mov rax, [rax+10h] mov rcx, cs:RLGL mov ecx, [rcx+18h] sub ecx, 1 movsxd rcx, ecx shl rcx, 4 add rax, rcx mov eax, [rax+0Ch] mov [rbp+var_10], eax mov rdi, cs:RLGL call rlDrawRenderBatch mov ecx, [rbp+var_C] mov rax, cs:RLGL mov rax, [rax+10h] mov rdx, cs:RLGL mov edx, [rdx+18h] sub edx, 1 movsxd rdx, edx shl rdx, 4 add rax, rdx mov [rax], ecx mov ecx, [rbp+var_10] mov rax, cs:RLGL mov rax, [rax+10h] mov rdx, cs:RLGL mov edx, [rdx+18h] sub edx, 1 movsxd rdx, edx shl rdx, 4 add rax, rdx mov [rax+0Ch], ecx loc_B0BF0: mov al, [rbp+var_5] and al, 1 add rsp, 10h pop rbp retn
char rlCheckRenderBatchLimit(int a1) { int v2; // [rsp+0h] [rbp-10h] int v3; // [rsp+4h] [rbp-Ch] char v4; // [rsp+Bh] [rbp-5h] v4 = 0; if ( a1 + dword_21A200 >= 4 * *(_DWORD *)(72LL * *(int *)(RLGL[0] + 4) + *(_QWORD *)(RLGL[0] + 8)) ) { v4 = 1; v3 = *(_DWORD *)(16LL * (*(_DWORD *)(RLGL[0] + 24) - 1) + *(_QWORD *)(RLGL[0] + 16)); v2 = *(_DWORD *)(16LL * (*(_DWORD *)(RLGL[0] + 24) - 1) + *(_QWORD *)(RLGL[0] + 16) + 12); rlDrawRenderBatch(RLGL[0]); *(_DWORD *)(16LL * (*(_DWORD *)(RLGL[0] + 24) - 1) + *(_QWORD *)(RLGL[0] + 16)) = v3; *(_DWORD *)(16LL * (*(_DWORD *)(RLGL[0] + 24) - 1) + *(_QWORD *)(RLGL[0] + 16) + 12) = v2; } return v4; }
rlCheckRenderBatchLimit: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV dword ptr [RBP + -0x4],EDI MOV byte ptr [RBP + -0x5],0x0 MOV EAX,dword ptr [0x0031a200] ADD EAX,dword ptr [RBP + -0x4] MOV RCX,qword ptr [0x0031a1d8] MOV RCX,qword ptr [RCX + 0x8] MOV RDX,qword ptr [0x0031a1d8] MOVSXD RDX,dword ptr [RDX + 0x4] IMUL RDX,RDX,0x48 ADD RCX,RDX MOV ECX,dword ptr [RCX] SHL ECX,0x2 CMP EAX,ECX JL 0x001b0bf0 MOV byte ptr [RBP + -0x5],0x1 MOV RAX,qword ptr [0x0031a1d8] MOV RAX,qword ptr [RAX + 0x10] MOV RCX,qword ptr [0x0031a1d8] MOV ECX,dword ptr [RCX + 0x18] SUB ECX,0x1 MOVSXD RCX,ECX SHL RCX,0x4 ADD RAX,RCX MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0xc],EAX MOV RAX,qword ptr [0x0031a1d8] MOV RAX,qword ptr [RAX + 0x10] MOV RCX,qword ptr [0x0031a1d8] MOV ECX,dword ptr [RCX + 0x18] SUB ECX,0x1 MOVSXD RCX,ECX SHL RCX,0x4 ADD RAX,RCX MOV EAX,dword ptr [RAX + 0xc] MOV dword ptr [RBP + -0x10],EAX MOV RDI,qword ptr [0x0031a1d8] CALL 0x001b0c00 MOV ECX,dword ptr [RBP + -0xc] MOV RAX,qword ptr [0x0031a1d8] MOV RAX,qword ptr [RAX + 0x10] MOV RDX,qword ptr [0x0031a1d8] MOV EDX,dword ptr [RDX + 0x18] SUB EDX,0x1 MOVSXD RDX,EDX SHL RDX,0x4 ADD RAX,RDX MOV dword ptr [RAX],ECX MOV ECX,dword ptr [RBP + -0x10] MOV RAX,qword ptr [0x0031a1d8] MOV RAX,qword ptr [RAX + 0x10] MOV RDX,qword ptr [0x0031a1d8] MOV EDX,dword ptr [RDX + 0x18] SUB EDX,0x1 MOVSXD RDX,EDX SHL RDX,0x4 ADD RAX,RDX MOV dword ptr [RAX + 0xc],ECX LAB_001b0bf0: MOV AL,byte ptr [RBP + -0x5] AND AL,0x1 ADD RSP,0x10 POP RBP RET
int8 rlCheckRenderBatchLimit(int param_1) { int4 uVar1; int4 uVar2; bool bVar3; uint uVar4; ulong uVar5; uVar4 = DAT_0031a200 + param_1; uVar5 = (ulong)uVar4; bVar3 = *(int *)(*(long *)(RLGL + 8) + (long)*(int *)(RLGL + 4) * 0x48) * 4 <= (int)uVar4; if (bVar3) { uVar1 = *(int4 *)(*(long *)(RLGL + 0x10) + (long)(*(int *)(RLGL + 0x18) + -1) * 0x10); uVar2 = *(int4 *) (*(long *)(RLGL + 0x10) + (long)(*(int *)(RLGL + 0x18) + -1) * 0x10 + 0xc); rlDrawRenderBatch(RLGL); *(int4 *)(*(long *)(RLGL + 0x10) + (long)(*(int *)(RLGL + 0x18) + -1) * 0x10) = uVar1; uVar5 = *(long *)(RLGL + 0x10) + (long)(*(int *)(RLGL + 0x18) + -1) * 0x10; *(int4 *)(uVar5 + 0xc) = uVar2; } return CONCAT71((int7)(uVar5 >> 8),bVar3); }
65,362
clip_n_mmproj_embd
monkey531[P]llama/examples/llava/clip.cpp
int clip_n_mmproj_embd(const struct clip_ctx * ctx) { if (ctx->proj_type == PROJECTOR_TYPE_LDP) { return ctx->vision_model.mm_model_block_1_block_2_1_b->ne[0]; } if (ctx->proj_type == PROJECTOR_TYPE_LDPV2) { return ctx->vision_model.mm_model_peg_0_b->ne[0]; } if (ctx->proj_type == PROJECTOR_TYPE_MLP) { return ctx->vision_model.mm_2_b->ne[0]; } if (ctx->proj_type == PROJECTOR_TYPE_MLP_NORM) { return ctx->vision_model.mm_3_b->ne[0]; } if (ctx->proj_type == PROJECTOR_TYPE_RESAMPLER) { if (ctx->minicpmv_version == 2) { return 4096; } else if (ctx->minicpmv_version == 3) { return 3584; } else if (ctx->minicpmv_version == 4) { return 3584; } } if (ctx->proj_type == PROJECTOR_TYPE_GLM_EDGE){ return ctx->vision_model.mm_model_mlp_3_w->ne[1]; } if (ctx->proj_type == PROJECTOR_TYPE_MERGER) { return ctx->vision_model.mm_1_b->ne[0]; } std::string proj_type = PROJECTOR_TYPE_NAMES[ctx->proj_type]; throw std::runtime_error(format("%s: don't support projector with: %s currently\n", __func__, proj_type.c_str())); }
O2
cpp
clip_n_mmproj_embd: pushq %rbp pushq %r14 pushq %rbx subq $0x40, %rsp movq %rdi, %rsi movl 0x338(%rdi), %eax cmpq $0x6, %rax ja 0x374be leaq 0x8e983(%rip), %rcx # 0xc5ddc movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq 0x158(%rsi), %rax jmp 0x374b2 movl 0x8(%rsi), %eax addl $-0x2, %eax cmpl $0x3, %eax jae 0x374be movl %eax, %eax leaq 0x8f029(%rip), %rcx # 0xc64a8 movl (%rcx,%rax,4), %eax jmp 0x374b5 movq 0x220(%rsi), %rax jmp 0x374b2 movq 0x2a0(%rsi), %rax jmp 0x374b2 movq 0x180(%rsi), %rax jmp 0x374b2 movq 0x1c8(%rsi), %rax movl 0x18(%rax), %eax jmp 0x374b5 movq 0x170(%rsi), %rax movl 0x10(%rax), %eax addq $0x40, %rsp popq %rbx popq %r14 popq %rbp retq addq $0x338, %rsi # imm = 0x338 leaq 0xead34(%rip), %rdi # 0x122200 callq 0x426a8 leaq 0x20(%rsp), %r14 movq %r14, %rdi movq %rax, %rsi callq 0x27120 pushq $0x10 popq %rdi callq 0x265e0 movq %rax, %rbx movq (%r14), %rcx leaq 0x8fb20(%rip), %rsi # 0xc7016 leaq 0x8fe58(%rip), %rdx # 0xc7355 movq %rsp, %rdi xorl %eax, %eax callq 0x3394a movb $0x1, %bpl movq %rsp, %rsi movq %rbx, %rdi callq 0x27450 xorl %ebp, %ebp movq 0xe9ad2(%rip), %rsi # 0x120ff0 movq 0xe9a33(%rip), %rdx # 0x120f58 movq %rbx, %rdi callq 0x275b0 movq %rax, %r14 movq %rsp, %rdi callq 0x27998 testb %bpl, %bpl jne 0x37542 jmp 0x3754a movq %rax, %r14 movq %rbx, %rdi callq 0x268f0 leaq 0x20(%rsp), %rdi callq 0x27998 movq %r14, %rdi callq 0x27660
clip_n_mmproj_embd: push rbp push r14 push rbx sub rsp, 40h mov rsi, rdi mov eax, [rdi+338h] cmp rax, 6; switch 7 cases ja short def_37460; jumptable 0000000000037460 default case lea rcx, jpt_37460 movsxd rax, ds:(jpt_37460 - 0C5DDCh)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_37462: mov rax, [rsi+158h]; jumptable 0000000000037460 case 0 jmp short loc_374B2 loc_3746B: mov eax, [rsi+8]; jumptable 0000000000037460 case 4 add eax, 0FFFFFFFEh cmp eax, 3 jnb short def_37460; jumptable 0000000000037460 default case mov eax, eax lea rcx, unk_C64A8 mov eax, [rcx+rax*4] jmp short loc_374B5 loc_37484: mov rax, [rsi+220h]; jumptable 0000000000037460 case 2 jmp short loc_374B2 loc_3748D: mov rax, [rsi+2A0h]; jumptable 0000000000037460 case 3 jmp short loc_374B2 loc_37496: mov rax, [rsi+180h]; jumptable 0000000000037460 case 1 jmp short loc_374B2 loc_3749F: mov rax, [rsi+1C8h]; jumptable 0000000000037460 case 5 mov eax, [rax+18h] jmp short loc_374B5 loc_374AB: mov rax, [rsi+170h]; jumptable 0000000000037460 case 6 loc_374B2: mov eax, [rax+10h] loc_374B5: add rsp, 40h pop rbx pop r14 pop rbp retn def_37460: add rsi, 338h; jumptable 0000000000037460 default case lea rdi, _ZL20PROJECTOR_TYPE_NAMESB5cxx11; PROJECTOR_TYPE_NAMES call _ZNSt3mapI14projector_typeNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS0_ESaISt4pairIKS0_S6_EEEixERSA_; std::map<projector_type,std::string>::operator[](projector_type const&) lea r14, [rsp+58h+var_38] mov rdi, r14 mov rsi, rax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&) push 10h pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rcx, [r14] lea rsi, aSDonTSupportPr; "%s: don't support projector with: %s cu"... lea rdx, aClipNMmprojEmb; "clip_n_mmproj_embd" mov rdi, rsp xor eax, eax call _ZL6formatB5cxx11PKcz; format(char const*,...) 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:lptinfo; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax mov rdi, rsp; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test bpl, bpl jnz short loc_37542 jmp short loc_3754A mov r14, rax loc_37542: mov rdi, rbx; void * call ___cxa_free_exception loc_3754A: lea rdi, [rsp+58h+var_38]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, r14 call __Unwind_Resume
long long clip_n_mmproj_embd( long long a1, __m128 a2, __m128 a3, __m128 a4, __m128 a5, double a6, double a7, __m128 a8, __m128 a9) { long long v9; // rax unsigned int v10; // eax long long result; // rax long long v12; // rax void *exception; // rbx long long v14; // r8 long long v15; // r9 __m128 v16; // xmm4 __m128 v17; // xmm5 _QWORD v18[4]; // [rsp+0h] [rbp-58h] BYREF long long v19[7]; // [rsp+20h] [rbp-38h] BYREF switch ( *(_DWORD *)(a1 + 824) ) { case 0: v9 = *(_QWORD *)(a1 + 344); goto LABEL_10; case 1: v9 = *(_QWORD *)(a1 + 384); goto LABEL_10; case 2: v9 = *(_QWORD *)(a1 + 544); goto LABEL_10; case 3: v9 = *(_QWORD *)(a1 + 672); goto LABEL_10; case 4: v10 = *(_DWORD *)(a1 + 8) - 2; if ( v10 >= 3 ) goto LABEL_12; result = dword_C64A8[v10]; break; case 5: return *(unsigned int *)(*(_QWORD *)(a1 + 456) + 24LL); case 6: v9 = *(_QWORD *)(a1 + 368); LABEL_10: result = *(unsigned int *)(v9 + 16); break; default: LABEL_12: v12 = std::map<projector_type,std::string>::operator[](&PROJECTOR_TYPE_NAMES[abi:cxx11], a1 + 824); std::string::basic_string(v19, v12); exception = __cxa_allocate_exception(0x10uLL); format[abi:cxx11]( v18, (long long)"%s: don't support projector with: %s currently\n", (long long)"clip_n_mmproj_embd", v19[0], v14, v15, a2, a3, a4, a5, v16, v17, a8, a9, v18[0]); std::runtime_error::runtime_error(exception, v18); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } return result; }
clip_n_mmproj_embd: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x40 MOV RSI,RDI MOV EAX,dword ptr [RDI + 0x338] CMP RAX,0x6 JA 0x001374be LEA RCX,[0x1c5ddc] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_0: MOV RAX,qword ptr [RSI + 0x158] JMP 0x001374b2 caseD_4: MOV EAX,dword ptr [RSI + 0x8] ADD EAX,-0x2 CMP EAX,0x3 JNC 0x001374be MOV EAX,EAX LEA RCX,[0x1c64a8] MOV EAX,dword ptr [RCX + RAX*0x4] JMP 0x001374b5 caseD_2: MOV RAX,qword ptr [RSI + 0x220] JMP 0x001374b2 caseD_3: MOV RAX,qword ptr [RSI + 0x2a0] JMP 0x001374b2 caseD_1: MOV RAX,qword ptr [RSI + 0x180] JMP 0x001374b2 caseD_5: MOV RAX,qword ptr [RSI + 0x1c8] MOV EAX,dword ptr [RAX + 0x18] JMP 0x001374b5 caseD_6: MOV RAX,qword ptr [RSI + 0x170] LAB_001374b2: MOV EAX,dword ptr [RAX + 0x10] LAB_001374b5: ADD RSP,0x40 POP RBX POP R14 POP RBP RET default: ADD RSI,0x338 LEA RDI,[0x222200] CALL 0x001426a8 LEA R14,[RSP + 0x20] MOV RDI,R14 MOV RSI,RAX CALL 0x00127120 PUSH 0x10 POP RDI CALL 0x001265e0 MOV RBX,RAX MOV RCX,qword ptr [R14] LAB_001374ef: LEA RSI,[0x1c7016] LEA RDX,[0x1c7355] MOV RDI,RSP XOR EAX,EAX CALL 0x0013394a MOV BPL,0x1 LAB_0013750a: MOV RSI,RSP MOV RDI,RBX CALL 0x00127450 XOR EBP,EBP MOV RSI,qword ptr [0x00220ff0] MOV RDX,qword ptr [0x00220f58] MOV RDI,RBX CALL 0x001275b0
int4 clip_n_mmproj_embd(long param_1) { uint uVar1; long lVar2; string *psVar3; runtime_error *this; string asStack_58 [32]; int8 local_38 [4]; switch(*(int4 *)(param_1 + 0x338)) { case 0: lVar2 = *(long *)(param_1 + 0x158); break; case 1: lVar2 = *(long *)(param_1 + 0x180); break; case 2: lVar2 = *(long *)(param_1 + 0x220); break; case 3: lVar2 = *(long *)(param_1 + 0x2a0); break; case 4: uVar1 = *(int *)(param_1 + 8) - 2; if (uVar1 < 3) { return *(int4 *)(&DAT_001c64a8 + (ulong)uVar1 * 4); } default: psVar3 = (string *) std:: map<projector_type,std::__cxx11::string,std::less<projector_type>,std::allocator<std::pair<projector_type_const,std::__cxx11::string>>> ::operator[]((map<projector_type,std::__cxx11::string,std::less<projector_type>,std::allocator<std::pair<projector_type_const,std::__cxx11::string>>> *)PROJECTOR_TYPE_NAMES_abi_cxx11_,(projector_type *)(param_1 + 0x338)); std::__cxx11::string::string((string *)local_38,psVar3); this = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001374ef to 00137506 has its CatchHandler @ 0013753f */ format_abi_cxx11_((char *)asStack_58,"%s: don\'t support projector with: %s currently\n", "clip_n_mmproj_embd",local_38[0]); /* try { // try from 0013750a to 0013752c has its CatchHandler @ 0013752d */ std::runtime_error::runtime_error(this,asStack_58); /* WARNING: Subroutine does not return */ __cxa_throw(this,PTR_typeinfo_00220ff0,PTR__runtime_error_00220f58); case 5: return *(int4 *)(*(long *)(param_1 + 0x1c8) + 0x18); case 6: lVar2 = *(long *)(param_1 + 0x170); } return *(int4 *)(lVar2 + 0x10); }
65,363
OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node::GetPatchPoint(int, int, unsigned short) const
NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/subdivisionPlan.cpp
Index SubdivisionPlan::Node::GetPatchPoint(int pointIndex, int quadrant, unsigned short maxLevel) const { uint32_t const* tree = plan->GetPatchTreeData().data(); Index offset = tree[patchPointsOffset()]; if (offset == INDEX_INVALID) return INDEX_INVALID; NodeDescriptor desc = GetDescriptor(); switch (desc.GetType()) { using enum NodeType; case NODE_REGULAR: case NODE_END: offset += pointIndex; break; case NODE_TERMINAL: { if (desc.GetDepth() >= maxLevel) { // if we hit the dynamic isolation cap, return the end-cap patch point // indices that are stored after the 5x5 grid of regular patch // point indices. if (desc.HasEndcap()) offset += pointIndex + catmarkTerminalPatchSize(); } else { // note : Z winding order is 0, 1, 3, 2 ! static int permuteTerminal[4][16] = { {0, 1, 2, 3, 5, 6, 7, 8, 10, 11, 12, 13, 15, 16, 17, 18}, {1, 2, 3, 4, 6, 7, 8, 9, 11, 12, 13, 14, 16, 17, 18, 19}, {5, 6, 7, 8, 10, 11, 12, 13, 15, 16, 17, 18, 20, 21, 22, 23}, {6, 7, 8, 9, 11, 12, 13, 14, 16, 17, 18, 19, 21, 22, 23, 24}, }; assert(quadrant != (int)desc.GetEvIndex() && quadrant >= 0 && quadrant < 4); offset += permuteTerminal[quadrant][pointIndex]; } } break; case NODE_RECURSIVE: offset = (desc.GetDepth() >= maxLevel) && desc.HasEndcap() ? offset + pointIndex : INDEX_INVALID; } assert(offset != INDEX_INVALID); return plan->_patchPoints[offset]; }
O0
cpp
OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node::GetPatchPoint(int, int, unsigned short) const: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movw %cx, %ax movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl %edx, -0x18(%rbp) movw %ax, -0x1a(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x40(%rbp) movq 0x8(%rax), %rdi callq 0xd56d0 movq %rax, %rdi callq 0xcd560 movq -0x40(%rbp), %rdi movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax movq %rax, -0x38(%rbp) callq 0xd2710 movl %eax, %ecx movq -0x38(%rbp), %rax movslq %ecx, %rcx movl (%rax,%rcx,4), %eax movl %eax, -0x2c(%rbp) cmpl $-0x1, -0x2c(%rbp) jne 0x1cc5d8 movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x1cc753 movq -0x40(%rbp), %rdi callq 0xce270 movl %eax, -0x30(%rbp) leaq -0x30(%rbp), %rdi callq 0xcb190 movzwl %ax, %ecx movq %rcx, -0x48(%rbp) subw $0x3, %ax ja 0x1cc712 movq -0x48(%rbp), %rax leaq 0x30763(%rip), %rcx # 0x1fcd6c movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movl -0x14(%rbp), %eax addl -0x2c(%rbp), %eax movl %eax, -0x2c(%rbp) jmp 0x1cc712 leaq -0x30(%rbp), %rdi callq 0xcfe90 movzwl -0x1a(%rbp), %ecx cmpl %ecx, %eax jb 0x1cc65a leaq -0x30(%rbp), %rdi callq 0xcfd70 testb $0x1, %al jne 0x1cc640 jmp 0x1cc658 movl -0x14(%rbp), %eax movl %eax, -0x4c(%rbp) callq 0xd33f0 movl %eax, %ecx movl -0x4c(%rbp), %eax addl %ecx, %eax addl -0x2c(%rbp), %eax movl %eax, -0x2c(%rbp) jmp 0x1cc6d5 movl -0x18(%rbp), %eax movl %eax, -0x54(%rbp) leaq -0x30(%rbp), %rdi callq 0xccd30 movl -0x54(%rbp), %ecx movl %eax, %edx xorl %eax, %eax cmpl %edx, %ecx movb %al, -0x4d(%rbp) je 0x1cc68c xorl %eax, %eax cmpl $0x0, -0x18(%rbp) movb %al, -0x4d(%rbp) jl 0x1cc68c cmpl $0x4, -0x18(%rbp) setl %al movb %al, -0x4d(%rbp) movb -0x4d(%rbp), %al testb $0x1, %al jne 0x1cc695 jmp 0x1cc697 jmp 0x1cc6b6 leaq 0x30920(%rip), %rdi # 0x1fcfbe leaq 0x30749(%rip), %rsi # 0x1fcdee movl $0x7a, %edx leaq 0x30951(%rip), %rcx # 0x1fd002 callq 0xc9440 movslq -0x18(%rbp), %rcx leaq 0x7f04f(%rip), %rax # 0x24b710 shlq $0x6, %rcx addq %rcx, %rax movslq -0x14(%rbp), %rcx movl (%rax,%rcx,4), %eax addl -0x2c(%rbp), %eax movl %eax, -0x2c(%rbp) jmp 0x1cc712 leaq -0x30(%rbp), %rdi callq 0xcfe90 movzwl -0x1a(%rbp), %ecx cmpl %ecx, %eax jb 0x1cc702 leaq -0x30(%rbp), %rdi callq 0xcfd70 testb $0x1, %al jne 0x1cc6f7 jmp 0x1cc702 movl -0x2c(%rbp), %eax addl -0x14(%rbp), %eax movl %eax, -0x58(%rbp) jmp 0x1cc70c movl $0xffffffff, %eax # imm = 0xFFFFFFFF movl %eax, -0x58(%rbp) jmp 0x1cc70c movl -0x58(%rbp), %eax movl %eax, -0x2c(%rbp) cmpl $-0x1, -0x2c(%rbp) je 0x1cc71a jmp 0x1cc739 leaq 0x30945(%rip), %rdi # 0x1fd066 leaq 0x306c6(%rip), %rsi # 0x1fcdee movl $0x82, %edx leaq 0x308ce(%rip), %rcx # 0x1fd002 callq 0xc9440 movq -0x40(%rbp), %rax movq 0x8(%rax), %rdi addq $0x58, %rdi movslq -0x2c(%rbp), %rsi callq 0xd09b0 movl (%rax), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x60, %rsp popq %rbp retq nopl (%rax)
_ZNK10OpenSubdiv6v3_6_03Tmr15SubdivisionPlan4Node13GetPatchPointEiit: push rbp mov rbp, rsp sub rsp, 60h mov ax, cx mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_18], edx mov [rbp+var_1A], ax mov rax, [rbp+var_10] mov [rbp+var_40], rax mov rdi, [rax+8]; this call __ZNK10OpenSubdiv6v3_6_03Tmr15SubdivisionPlan16GetPatchTreeDataEv; OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::GetPatchTreeData(void) mov rdi, rax call __ZNKSt6vectorIjSaIjEE4dataEv; std::vector<uint>::data(void) mov rdi, [rbp+var_40]; this mov [rbp+var_28], rax mov rax, [rbp+var_28] mov [rbp+var_38], rax call __ZNK10OpenSubdiv6v3_6_03Tmr8NodeBase17patchPointsOffsetEv; OpenSubdiv::v3_6_0::Tmr::NodeBase::patchPointsOffset(void) mov ecx, eax mov rax, [rbp+var_38] movsxd rcx, ecx mov eax, [rax+rcx*4] mov [rbp+var_2C], eax cmp [rbp+var_2C], 0FFFFFFFFh jnz short loc_1CC5D8 mov [rbp+var_4], 0FFFFFFFFh jmp loc_1CC753 loc_1CC5D8: mov rdi, [rbp+var_40]; this call __ZNK10OpenSubdiv6v3_6_03Tmr15SubdivisionPlan4Node13GetDescriptorEv; OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node::GetDescriptor(void) mov [rbp+var_30], eax lea rdi, [rbp+var_30]; this call __ZNK10OpenSubdiv6v3_6_03Tmr14NodeDescriptor7GetTypeEv; OpenSubdiv::v3_6_0::Tmr::NodeDescriptor::GetType(void) movzx ecx, ax mov [rbp+var_48], rcx sub ax, 3; switch 4 cases ja def_1CC610; jumptable 00000000001CC610 default case mov rax, [rbp+var_48] lea rcx, jpt_1CC610 movsxd rax, ds:(jpt_1CC610 - 1FCD6Ch)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_1CC612: mov eax, [rbp+var_14]; jumptable 00000000001CC610 cases 0,3 add eax, [rbp+var_2C] mov [rbp+var_2C], eax jmp def_1CC610; jumptable 00000000001CC610 default case loc_1CC620: lea rdi, [rbp+var_30]; jumptable 00000000001CC610 case 2 call __ZNK10OpenSubdiv6v3_6_03Tmr14NodeDescriptor8GetDepthEv; OpenSubdiv::v3_6_0::Tmr::NodeDescriptor::GetDepth(void) movzx ecx, [rbp+var_1A] cmp eax, ecx jb short loc_1CC65A lea rdi, [rbp+var_30]; this call __ZNK10OpenSubdiv6v3_6_03Tmr14NodeDescriptor9HasEndcapEv; OpenSubdiv::v3_6_0::Tmr::NodeDescriptor::HasEndcap(void) test al, 1 jnz short loc_1CC640 jmp short loc_1CC658 loc_1CC640: mov eax, [rbp+var_14] mov [rbp+var_4C], eax call __ZN10OpenSubdiv6v3_6_03Tmr8NodeBase24catmarkTerminalPatchSizeEv; OpenSubdiv::v3_6_0::Tmr::NodeBase::catmarkTerminalPatchSize(void) mov ecx, eax mov eax, [rbp+var_4C] add eax, ecx add eax, [rbp+var_2C] mov [rbp+var_2C], eax loc_1CC658: jmp short loc_1CC6D5 loc_1CC65A: mov eax, [rbp+var_18] mov [rbp+var_54], eax lea rdi, [rbp+var_30]; this call __ZNK10OpenSubdiv6v3_6_03Tmr14NodeDescriptor10GetEvIndexEv; OpenSubdiv::v3_6_0::Tmr::NodeDescriptor::GetEvIndex(void) mov ecx, [rbp+var_54] mov edx, eax xor eax, eax cmp ecx, edx mov [rbp+var_4D], al jz short loc_1CC68C xor eax, eax cmp [rbp+var_18], 0 mov [rbp+var_4D], al jl short loc_1CC68C cmp [rbp+var_18], 4 setl al mov [rbp+var_4D], al loc_1CC68C: mov al, [rbp+var_4D] test al, 1 jnz short loc_1CC695 jmp short loc_1CC697 loc_1CC695: jmp short loc_1CC6B6 loc_1CC697: lea rdi, aQuadrantIntDes; "quadrant != (int)desc.GetEvIndex() && q"... lea rsi, aWorkspaceLlm4b_46; "/workspace/llm4binary/github/2025_star3"... mov edx, 7Ah ; 'z' lea rcx, aIndexOpensubdi_1; "Index OpenSubdiv::v3_6_0::Tmr::Subdivis"... call ___assert_fail loc_1CC6B6: movsxd rcx, [rbp+var_18] lea rax, _ZZNK10OpenSubdiv6v3_6_03Tmr15SubdivisionPlan4Node13GetPatchPointEiitE15permuteTerminal; OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node::GetPatchPoint(int,int,ushort)::permuteTerminal shl rcx, 6 add rax, rcx movsxd rcx, [rbp+var_14] mov eax, [rax+rcx*4] add eax, [rbp+var_2C] mov [rbp+var_2C], eax loc_1CC6D5: jmp short def_1CC610; jumptable 00000000001CC610 default case loc_1CC6D7: lea rdi, [rbp+var_30]; jumptable 00000000001CC610 case 1 call __ZNK10OpenSubdiv6v3_6_03Tmr14NodeDescriptor8GetDepthEv; OpenSubdiv::v3_6_0::Tmr::NodeDescriptor::GetDepth(void) movzx ecx, [rbp+var_1A] cmp eax, ecx jb short loc_1CC702 lea rdi, [rbp+var_30]; this call __ZNK10OpenSubdiv6v3_6_03Tmr14NodeDescriptor9HasEndcapEv; OpenSubdiv::v3_6_0::Tmr::NodeDescriptor::HasEndcap(void) test al, 1 jnz short loc_1CC6F7 jmp short loc_1CC702 loc_1CC6F7: mov eax, [rbp+var_2C] add eax, [rbp+var_14] mov [rbp+var_58], eax jmp short loc_1CC70C loc_1CC702: mov eax, 0FFFFFFFFh mov [rbp+var_58], eax jmp short $+2 loc_1CC70C: mov eax, [rbp+var_58] mov [rbp+var_2C], eax def_1CC610: cmp [rbp+var_2C], 0FFFFFFFFh; jumptable 00000000001CC610 default case jz short loc_1CC71A jmp short loc_1CC739 loc_1CC71A: lea rdi, aOffsetIndexInv; "offset != INDEX_INVALID" lea rsi, aWorkspaceLlm4b_46; "/workspace/llm4binary/github/2025_star3"... mov edx, 82h lea rcx, aIndexOpensubdi_1; "Index OpenSubdiv::v3_6_0::Tmr::Subdivis"... call ___assert_fail loc_1CC739: mov rax, [rbp+var_40] mov rdi, [rax+8] add rdi, 58h ; 'X' movsxd rsi, [rbp+var_2C] call __ZNKSt6vectorIiSaIiEEixEm; std::vector<int>::operator[](ulong) mov eax, [rax] mov [rbp+var_4], eax loc_1CC753: mov eax, [rbp+var_4] add rsp, 60h pop rbp retn
long long OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node::GetPatchPoint( OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan **this, int a2, int a3, unsigned __int16 a4) { long long PatchTreeData; // rax unsigned int v5; // eax int v6; // eax unsigned int Depth; // eax int v9; // [rsp+8h] [rbp-58h] int v10; // [rsp+Ch] [rbp-54h] bool v11; // [rsp+13h] [rbp-4Dh] int v12; // [rsp+14h] [rbp-4Ch] int Descriptor; // [rsp+30h] [rbp-30h] BYREF int v14; // [rsp+34h] [rbp-2Ch] long long v15; // [rsp+38h] [rbp-28h] unsigned __int16 v16; // [rsp+46h] [rbp-1Ah] int v17; // [rsp+48h] [rbp-18h] int v18; // [rsp+4Ch] [rbp-14h] OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan **v19; // [rsp+50h] [rbp-10h] v19 = this; v18 = a2; v17 = a3; v16 = a4; PatchTreeData = OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::GetPatchTreeData(this[1]); v15 = std::vector<unsigned int>::data(PatchTreeData); v14 = *(_DWORD *)(v15 + 4LL * (int)OpenSubdiv::v3_6_0::Tmr::NodeBase::patchPointsOffset((OpenSubdiv::v3_6_0::Tmr::NodeBase *)this)); if ( v14 == -1 ) { return (unsigned int)-1; } else { Descriptor = OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node::GetDescriptor((OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node *)this); switch ( (unsigned __int16)OpenSubdiv::v3_6_0::Tmr::NodeDescriptor::GetType((OpenSubdiv::v3_6_0::Tmr::NodeDescriptor *)&Descriptor) ) { case 0u: case 3u: v14 += v18; break; case 1u: Depth = OpenSubdiv::v3_6_0::Tmr::NodeDescriptor::GetDepth((OpenSubdiv::v3_6_0::Tmr::NodeDescriptor *)&Descriptor); if ( Depth >= v16 && (OpenSubdiv::v3_6_0::Tmr::NodeDescriptor::HasEndcap((OpenSubdiv::v3_6_0::Tmr::NodeDescriptor *)&Descriptor) & 1) != 0 ) { v9 = v18 + v14; } else { v9 = -1; } v14 = v9; break; case 2u: v5 = OpenSubdiv::v3_6_0::Tmr::NodeDescriptor::GetDepth((OpenSubdiv::v3_6_0::Tmr::NodeDescriptor *)&Descriptor); if ( v5 < v16 ) { v10 = v17; v11 = 0; if ( v10 != (unsigned int)OpenSubdiv::v3_6_0::Tmr::NodeDescriptor::GetEvIndex((OpenSubdiv::v3_6_0::Tmr::NodeDescriptor *)&Descriptor) ) { v11 = 0; if ( v17 >= 0 ) v11 = v17 < 4; } if ( !v11 ) __assert_fail( "quadrant != (int)desc.GetEvIndex() && quadrant >= 0 && quadrant < 4", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/subdivisionPlan.cpp", 122LL, "Index OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node::GetPatchPoint(int, int, unsigned short) const"); v14 += OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node::GetPatchPoint(int,int,unsigned short)const::permuteTerminal[16 * (long long)v17 + v18]; } else if ( (OpenSubdiv::v3_6_0::Tmr::NodeDescriptor::HasEndcap((OpenSubdiv::v3_6_0::Tmr::NodeDescriptor *)&Descriptor) & 1) != 0 ) { v12 = v18; v6 = OpenSubdiv::v3_6_0::Tmr::NodeBase::catmarkTerminalPatchSize((OpenSubdiv::v3_6_0::Tmr::NodeBase *)&Descriptor); v14 += v6 + v12; } break; default: break; } if ( v14 == -1 ) __assert_fail( "offset != INDEX_INVALID", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/subdivisionPlan.cpp", 130LL, "Index OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node::GetPatchPoint(int, int, unsigned short) const"); return *(unsigned int *)std::vector<int>::operator[]((char *)this[1] + 88, v14); } }
65,364
OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node::GetPatchPoint(int, int, unsigned short) const
NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/subdivisionPlan.cpp
Index SubdivisionPlan::Node::GetPatchPoint(int pointIndex, int quadrant, unsigned short maxLevel) const { uint32_t const* tree = plan->GetPatchTreeData().data(); Index offset = tree[patchPointsOffset()]; if (offset == INDEX_INVALID) return INDEX_INVALID; NodeDescriptor desc = GetDescriptor(); switch (desc.GetType()) { using enum NodeType; case NODE_REGULAR: case NODE_END: offset += pointIndex; break; case NODE_TERMINAL: { if (desc.GetDepth() >= maxLevel) { // if we hit the dynamic isolation cap, return the end-cap patch point // indices that are stored after the 5x5 grid of regular patch // point indices. if (desc.HasEndcap()) offset += pointIndex + catmarkTerminalPatchSize(); } else { // note : Z winding order is 0, 1, 3, 2 ! static int permuteTerminal[4][16] = { {0, 1, 2, 3, 5, 6, 7, 8, 10, 11, 12, 13, 15, 16, 17, 18}, {1, 2, 3, 4, 6, 7, 8, 9, 11, 12, 13, 14, 16, 17, 18, 19}, {5, 6, 7, 8, 10, 11, 12, 13, 15, 16, 17, 18, 20, 21, 22, 23}, {6, 7, 8, 9, 11, 12, 13, 14, 16, 17, 18, 19, 21, 22, 23, 24}, }; assert(quadrant != (int)desc.GetEvIndex() && quadrant >= 0 && quadrant < 4); offset += permuteTerminal[quadrant][pointIndex]; } } break; case NODE_RECURSIVE: offset = (desc.GetDepth() >= maxLevel) && desc.HasEndcap() ? offset + pointIndex : INDEX_INVALID; } assert(offset != INDEX_INVALID); return plan->_patchPoints[offset]; }
O2
cpp
OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node::GetPatchPoint(int, int, unsigned short) const: pushq %rax movq 0x8(%rdi), %rax movq 0x40(%rax), %r8 movslq (%rdi), %r9 movl 0x4(%r8,%r9,4), %edi cmpl $-0x1, %edi je 0xb134e movl (%r8,%r9,4), %r8d movl %r8d, %r9d andl $0x3, %r9d leaq 0x1cfa4(%rip), %r10 # 0xce2d0 movslq (%r10,%r9,4), %r9 addq %r10, %r9 jmpq *%r9 testb $0x4, %r8b je 0xb13ac shrl $0x3, %r8d andl $0xf, %r8d movzwl %cx, %ecx cmpl %ecx, %r8d jae 0xb1399 jmp 0xb13ac pushq $-0x1 popq %rax jmp 0xb13aa movl %r8d, %r9d shrl $0x3, %r9d andl $0xf, %r9d movzwl %cx, %ecx cmpl %ecx, %r9d jae 0xb1390 cmpl $0x3, %edx ja 0xb13cb shrl $0x8, %r8d andl $0xf, %r8d cmpl %edx, %r8d je 0xb13cb movl %edx, %ecx movslq %esi, %rdx shlq $0x6, %rcx leaq 0x1cf78(%rip), %rsi # 0xce300 addq %rcx, %rsi movl (%rsi,%rdx,4), %esi jmp 0xb1399 testb $0x4, %r8b je 0xb13a0 addl $0x19, %esi addl %esi, %edi cmpl $-0x1, %edi je 0xb13ac movslq %edi, %rcx movq 0x58(%rax), %rax movl (%rax,%rcx,4), %eax popq %rcx retq leaq 0x1d2ff(%rip), %rdi # 0xce6b2 leaq 0x1d080(%rip), %rsi # 0xce43a leaq 0x1d28d(%rip), %rcx # 0xce64e movl $0x82, %edx callq 0x512a0 leaq 0x1d238(%rip), %rdi # 0xce60a leaq 0x1d061(%rip), %rsi # 0xce43a leaq 0x1d26e(%rip), %rcx # 0xce64e pushq $0x7a popq %rdx callq 0x512a0
_ZNK10OpenSubdiv6v3_6_03Tmr15SubdivisionPlan4Node13GetPatchPointEiit: push rax mov rax, [rdi+8] mov r8, [rax+40h] movsxd r9, dword ptr [rdi] mov edi, [r8+r9*4+4] cmp edi, 0FFFFFFFFh jz short loc_B134E mov r8d, [r8+r9*4] mov r9d, r8d and r9d, 3 lea r10, jpt_B1333 movsxd r9, ds:(jpt_B1333 - 0CE2D0h)[r10+r9*4]; switch 4 cases add r9, r10 jmp r9; switch jump loc_B1336: test r8b, 4; jumptable 00000000000B1333 case 1 jz short loc_B13AC shr r8d, 3 and r8d, 0Fh movzx ecx, cx cmp r8d, ecx jnb short loc_B1399; jumptable 00000000000B1333 cases 0,3 jmp short loc_B13AC loc_B134E: push 0FFFFFFFFFFFFFFFFh pop rax jmp short loc_B13AA loc_B1353: mov r9d, r8d; jumptable 00000000000B1333 case 2 shr r9d, 3 and r9d, 0Fh movzx ecx, cx cmp r9d, ecx jnb short loc_B1390 cmp edx, 3 ja short loc_B13CB shr r8d, 8 and r8d, 0Fh cmp r8d, edx jz short loc_B13CB mov ecx, edx movsxd rdx, esi shl rcx, 6 lea rsi, _ZZNK10OpenSubdiv6v3_6_03Tmr15SubdivisionPlan4Node13GetPatchPointEiitE15permuteTerminal; OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node::GetPatchPoint(int,int,ushort)::permuteTerminal add rsi, rcx mov esi, [rsi+rdx*4] jmp short loc_B1399; jumptable 00000000000B1333 cases 0,3 loc_B1390: test r8b, 4 jz short loc_B13A0 add esi, 19h loc_B1399: add edi, esi; jumptable 00000000000B1333 cases 0,3 cmp edi, 0FFFFFFFFh jz short loc_B13AC loc_B13A0: movsxd rcx, edi mov rax, [rax+58h] mov eax, [rax+rcx*4] loc_B13AA: pop rcx retn loc_B13AC: lea rdi, aOffsetIndexInv; "offset != INDEX_INVALID" lea rsi, aWorkspaceLlm4b_46; "/workspace/llm4binary/github/2025_star3"... lea rcx, aIndexOpensubdi_3; "Index OpenSubdiv::v3_6_0::Tmr::Subdivis"... mov edx, 82h call ___assert_fail loc_B13CB: lea rdi, aQuadrantIntDes; "quadrant != (int)desc.GetEvIndex() && q"... lea rsi, aWorkspaceLlm4b_46; "/workspace/llm4binary/github/2025_star3"... lea rcx, aIndexOpensubdi_3; "Index OpenSubdiv::v3_6_0::Tmr::Subdivis"... push 7Ah ; 'z' pop rdx call ___assert_fail
long long OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node::GetPatchPoint( OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node *this, int a2, unsigned int a3, unsigned __int16 a4) { long long v4; // rax long long v5; // r8 long long v6; // r9 int v7; // edi unsigned int v8; // r8d long long result; // rax v4 = *((_QWORD *)this + 1); v5 = *(_QWORD *)(v4 + 64); v6 = *(int *)this; v7 = *(_DWORD *)(v5 + 4 * v6 + 4); if ( v7 == -1 ) return -1LL; v8 = *(_DWORD *)(v5 + 4 * v6); switch ( v8 & 3 ) { case 0u: case 3u: goto LABEL_13; case 1u: if ( (v8 & 4) == 0 || ((v8 >> 3) & 0xF) < a4 ) goto LABEL_15; goto LABEL_13; case 2u: if ( ((v8 >> 3) & 0xF) >= a4 ) { if ( (v8 & 4) == 0 ) goto LABEL_14; a2 += 25; } else { if ( a3 > 3 || ((v8 >> 8) & 0xF) == a3 ) __assert_fail( "quadrant != (int)desc.GetEvIndex() && quadrant >= 0 && quadrant < 4", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/subdivisionPlan.cpp", 122LL, "Index OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node::GetPatchPoint(int, int, unsigned short) const"); a2 = OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node::GetPatchPoint(int,int,unsigned short)const::permuteTerminal[16 * (unsigned long long)a3 + a2]; } LABEL_13: v7 += a2; if ( v7 == -1 ) LABEL_15: __assert_fail( "offset != INDEX_INVALID", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/subdivisionPlan.cpp", 130LL, "Index OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node::GetPatchPoint(int, int, unsigned short) const"); LABEL_14: result = *(unsigned int *)(*(_QWORD *)(v4 + 88) + 4LL * v7); break; } return result; }
GetPatchPoint: PUSH RAX MOV RAX,qword ptr [RDI + 0x8] MOV R8,qword ptr [RAX + 0x40] MOVSXD R9,dword ptr [RDI] MOV EDI,dword ptr [R8 + R9*0x4 + 0x4] CMP EDI,-0x1 JZ 0x001b134e MOV R8D,dword ptr [R8 + R9*0x4] MOV R9D,R8D AND R9D,0x3 LEA R10,[0x1ce2d0] MOVSXD R9,dword ptr [R10 + R9*0x4] ADD R9,R10 switchD: JMP R9 caseD_1: TEST R8B,0x4 JZ 0x001b13ac SHR R8D,0x3 AND R8D,0xf MOVZX ECX,CX CMP R8D,ECX JNC 0x001b1399 JMP 0x001b13ac LAB_001b134e: PUSH -0x1 POP RAX JMP 0x001b13aa caseD_2: MOV R9D,R8D SHR R9D,0x3 AND R9D,0xf MOVZX ECX,CX CMP R9D,ECX JNC 0x001b1390 CMP EDX,0x3 JA 0x001b13cb SHR R8D,0x8 AND R8D,0xf CMP R8D,EDX JZ 0x001b13cb MOV ECX,EDX MOVSXD RDX,ESI SHL RCX,0x6 LEA RSI,[0x1ce300] ADD RSI,RCX MOV ESI,dword ptr [RSI + RDX*0x4] JMP 0x001b1399 LAB_001b1390: TEST R8B,0x4 JZ 0x001b13a0 ADD ESI,0x19 caseD_0: ADD EDI,ESI CMP EDI,-0x1 JZ 0x001b13ac LAB_001b13a0: MOVSXD RCX,EDI MOV RAX,qword ptr [RAX + 0x58] MOV EAX,dword ptr [RAX + RCX*0x4] LAB_001b13aa: POP RCX RET LAB_001b13ac: LEA RDI,[0x1ce6b2] LEA RSI,[0x1ce43a] LEA RCX,[0x1ce64e] MOV EDX,0x82 CALL 0x001512a0 LAB_001b13cb: LEA RDI,[0x1ce60a] LEA RSI,[0x1ce43a] LEA RCX,[0x1ce64e] PUSH 0x7a POP RDX CALL 0x001512a0
/* OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node::GetPatchPoint(int, int, unsigned short) const */ ulong __thiscall OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node::GetPatchPoint (Node *this,int param_1,int param_2,ushort param_3) { uint uVar1; long lVar2; int iVar3; lVar2 = *(long *)(*(long *)(this + 8) + 0x40); iVar3 = *(int *)(lVar2 + 4 + (long)*(int *)this * 4); if (iVar3 == -1) { return 0xffffffffffffffff; } uVar1 = *(uint *)(lVar2 + (long)*(int *)this * 4); switch(uVar1 & 3) { case 1: if (((uVar1 & 4) == 0) || ((uVar1 >> 3 & 0xf) < (uint)param_3)) goto LAB_001b13ac; break; case 2: if ((uVar1 >> 3 & 0xf) < (uint)param_3) { if ((3 < (uint)param_2) || ((uVar1 >> 8 & 0xf) == param_2)) { /* WARNING: Subroutine does not return */ __assert_fail("quadrant != (int)desc.GetEvIndex() && quadrant >= 0 && quadrant < 4", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/subdivisionPlan.cpp" ,0x7a, "Index OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node::GetPatchPoint(int, int, unsigned short) const" ); } param_1 = *(int *)(GetPatchPoint(int,int,unsigned_short)::permuteTerminal + (long)param_1 * 4 + (ulong)(uint)param_2 * 0x40); } else { if ((uVar1 & 4) == 0) goto LAB_001b13a0; param_1 = param_1 + 0x19; } } iVar3 = iVar3 + param_1; if (iVar3 != -1) { LAB_001b13a0: return (ulong)*(uint *)(*(long *)(*(long *)(this + 8) + 0x58) + (long)iVar3 * 4); } LAB_001b13ac: /* WARNING: Subroutine does not return */ __assert_fail("offset != INDEX_INVALID", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/subdivisionPlan.cpp" ,0x82, "Index OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node::GetPatchPoint(int, int, unsigned short) const" ); }
65,365
OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node::GetPatchPoint(int, int, unsigned short) const
NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/subdivisionPlan.cpp
Index SubdivisionPlan::Node::GetPatchPoint(int pointIndex, int quadrant, unsigned short maxLevel) const { uint32_t const* tree = plan->GetPatchTreeData().data(); Index offset = tree[patchPointsOffset()]; if (offset == INDEX_INVALID) return INDEX_INVALID; NodeDescriptor desc = GetDescriptor(); switch (desc.GetType()) { using enum NodeType; case NODE_REGULAR: case NODE_END: offset += pointIndex; break; case NODE_TERMINAL: { if (desc.GetDepth() >= maxLevel) { // if we hit the dynamic isolation cap, return the end-cap patch point // indices that are stored after the 5x5 grid of regular patch // point indices. if (desc.HasEndcap()) offset += pointIndex + catmarkTerminalPatchSize(); } else { // note : Z winding order is 0, 1, 3, 2 ! static int permuteTerminal[4][16] = { {0, 1, 2, 3, 5, 6, 7, 8, 10, 11, 12, 13, 15, 16, 17, 18}, {1, 2, 3, 4, 6, 7, 8, 9, 11, 12, 13, 14, 16, 17, 18, 19}, {5, 6, 7, 8, 10, 11, 12, 13, 15, 16, 17, 18, 20, 21, 22, 23}, {6, 7, 8, 9, 11, 12, 13, 14, 16, 17, 18, 19, 21, 22, 23, 24}, }; assert(quadrant != (int)desc.GetEvIndex() && quadrant >= 0 && quadrant < 4); offset += permuteTerminal[quadrant][pointIndex]; } } break; case NODE_RECURSIVE: offset = (desc.GetDepth() >= maxLevel) && desc.HasEndcap() ? offset + pointIndex : INDEX_INVALID; } assert(offset != INDEX_INVALID); return plan->_patchPoints[offset]; }
O3
cpp
OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node::GetPatchPoint(int, int, unsigned short) const: pushq %rax movq 0x8(%rdi), %rax movq 0x40(%rax), %r8 movslq (%rdi), %r9 movl 0x4(%r8,%r9,4), %edi cmpl $-0x1, %edi je 0xa8d92 movl (%r8,%r9,4), %r8d movl %r8d, %r9d andl $0x3, %r9d leaq 0x1e190(%rip), %r10 # 0xc6f00 movslq (%r10,%r9,4), %r9 addq %r10, %r9 jmpq *%r9 testb $0x4, %r8b je 0xa8df2 shrl $0x3, %r8d andl $0xf, %r8d movzwl %cx, %ecx cmpl %ecx, %r8d jae 0xa8ddf jmp 0xa8df2 movl $0xffffffff, %eax # imm = 0xFFFFFFFF jmp 0xa8df0 movl %r8d, %r9d shrl $0x3, %r9d andl $0xf, %r9d movzwl %cx, %ecx cmpl %ecx, %r9d jae 0xa8dd6 cmpl $0x3, %edx ja 0xa8e11 shrl $0x8, %r8d andl $0xf, %r8d cmpl %edx, %r8d je 0xa8e11 movl %edx, %ecx movslq %esi, %rdx shlq $0x6, %rcx leaq 0x1e172(%rip), %rsi # 0xc6f40 addq %rcx, %rsi movl (%rsi,%rdx,4), %esi jmp 0xa8ddf testb $0x4, %r8b je 0xa8de6 addl $0x19, %esi addl %esi, %edi cmpl $-0x1, %edi je 0xa8df2 movslq %edi, %rcx movq 0x58(%rax), %rax movl (%rax,%rcx,4), %eax popq %rcx retq leaq 0x1e4dd(%rip), %rdi # 0xc72d6 leaq 0x1e25e(%rip), %rsi # 0xc705e leaq 0x1e46b(%rip), %rcx # 0xc7272 movl $0x82, %edx callq 0x39540 leaq 0x1e416(%rip), %rdi # 0xc722e leaq 0x1e23f(%rip), %rsi # 0xc705e leaq 0x1e44c(%rip), %rcx # 0xc7272 movl $0x7a, %edx callq 0x39540
_ZNK10OpenSubdiv6v3_6_03Tmr15SubdivisionPlan4Node13GetPatchPointEiit: push rax mov rax, [rdi+8] mov r8, [rax+40h] movsxd r9, dword ptr [rdi] mov edi, [r8+r9*4+4] cmp edi, 0FFFFFFFFh jz short loc_A8D92 mov r8d, [r8+r9*4] mov r9d, r8d and r9d, 3 lea r10, jpt_A8D77 movsxd r9, ds:(jpt_A8D77 - 0C6F00h)[r10+r9*4]; switch 4 cases add r9, r10 jmp r9; switch jump loc_A8D7A: test r8b, 4; jumptable 00000000000A8D77 case 1 jz short loc_A8DF2 shr r8d, 3 and r8d, 0Fh movzx ecx, cx cmp r8d, ecx jnb short loc_A8DDF; jumptable 00000000000A8D77 cases 0,3 jmp short loc_A8DF2 loc_A8D92: mov eax, 0FFFFFFFFh jmp short loc_A8DF0 loc_A8D99: mov r9d, r8d; jumptable 00000000000A8D77 case 2 shr r9d, 3 and r9d, 0Fh movzx ecx, cx cmp r9d, ecx jnb short loc_A8DD6 cmp edx, 3 ja short loc_A8E11 shr r8d, 8 and r8d, 0Fh cmp r8d, edx jz short loc_A8E11 mov ecx, edx movsxd rdx, esi shl rcx, 6 lea rsi, _ZZNK10OpenSubdiv6v3_6_03Tmr15SubdivisionPlan4Node13GetPatchPointEiitE15permuteTerminal; OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node::GetPatchPoint(int,int,ushort)::permuteTerminal add rsi, rcx mov esi, [rsi+rdx*4] jmp short loc_A8DDF; jumptable 00000000000A8D77 cases 0,3 loc_A8DD6: test r8b, 4 jz short loc_A8DE6 add esi, 19h loc_A8DDF: add edi, esi; jumptable 00000000000A8D77 cases 0,3 cmp edi, 0FFFFFFFFh jz short loc_A8DF2 loc_A8DE6: movsxd rcx, edi mov rax, [rax+58h] mov eax, [rax+rcx*4] loc_A8DF0: pop rcx retn loc_A8DF2: lea rdi, aOffsetIndexInv; "offset != INDEX_INVALID" lea rsi, aWorkspaceLlm4b_50; "/workspace/llm4binary/github/2025_star3"... lea rcx, aIndexOpensubdi_3; "Index OpenSubdiv::v3_6_0::Tmr::Subdivis"... mov edx, 82h call ___assert_fail loc_A8E11: lea rdi, aQuadrantIntDes; "quadrant != (int)desc.GetEvIndex() && q"... lea rsi, aWorkspaceLlm4b_50; "/workspace/llm4binary/github/2025_star3"... lea rcx, aIndexOpensubdi_3; "Index OpenSubdiv::v3_6_0::Tmr::Subdivis"... mov edx, 7Ah ; 'z' call ___assert_fail
long long OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node::GetPatchPoint( OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node *this, int a2, unsigned int a3, unsigned __int16 a4) { long long v4; // rax long long v5; // r8 long long v6; // r9 int v7; // edi unsigned int v8; // r8d long long result; // rax v4 = *((_QWORD *)this + 1); v5 = *(_QWORD *)(v4 + 64); v6 = *(int *)this; v7 = *(_DWORD *)(v5 + 4 * v6 + 4); if ( v7 == -1 ) return 0xFFFFFFFFLL; v8 = *(_DWORD *)(v5 + 4 * v6); switch ( v8 & 3 ) { case 0u: case 3u: goto LABEL_13; case 1u: if ( (v8 & 4) == 0 || ((v8 >> 3) & 0xF) < a4 ) goto LABEL_15; goto LABEL_13; case 2u: if ( ((v8 >> 3) & 0xF) >= a4 ) { if ( (v8 & 4) == 0 ) goto LABEL_14; a2 += 25; } else { if ( a3 > 3 || ((v8 >> 8) & 0xF) == a3 ) __assert_fail( "quadrant != (int)desc.GetEvIndex() && quadrant >= 0 && quadrant < 4", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/subdivisionPlan.cpp", 122LL, "Index OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node::GetPatchPoint(int, int, unsigned short) const"); a2 = OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node::GetPatchPoint(int,int,unsigned short)const::permuteTerminal[16 * (unsigned long long)a3 + a2]; } LABEL_13: v7 += a2; if ( v7 == -1 ) LABEL_15: __assert_fail( "offset != INDEX_INVALID", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/subdivisionPlan.cpp", 130LL, "Index OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node::GetPatchPoint(int, int, unsigned short) const"); LABEL_14: result = *(unsigned int *)(*(_QWORD *)(v4 + 88) + 4LL * v7); break; } return result; }
GetPatchPoint: PUSH RAX MOV RAX,qword ptr [RDI + 0x8] MOV R8,qword ptr [RAX + 0x40] MOVSXD R9,dword ptr [RDI] MOV EDI,dword ptr [R8 + R9*0x4 + 0x4] CMP EDI,-0x1 JZ 0x001a8d92 MOV R8D,dword ptr [R8 + R9*0x4] MOV R9D,R8D AND R9D,0x3 LEA R10,[0x1c6f00] MOVSXD R9,dword ptr [R10 + R9*0x4] ADD R9,R10 switchD: JMP R9 caseD_1: TEST R8B,0x4 JZ 0x001a8df2 SHR R8D,0x3 AND R8D,0xf MOVZX ECX,CX CMP R8D,ECX JNC 0x001a8ddf JMP 0x001a8df2 LAB_001a8d92: MOV EAX,0xffffffff JMP 0x001a8df0 caseD_2: MOV R9D,R8D SHR R9D,0x3 AND R9D,0xf MOVZX ECX,CX CMP R9D,ECX JNC 0x001a8dd6 CMP EDX,0x3 JA 0x001a8e11 SHR R8D,0x8 AND R8D,0xf CMP R8D,EDX JZ 0x001a8e11 MOV ECX,EDX MOVSXD RDX,ESI SHL RCX,0x6 LEA RSI,[0x1c6f40] ADD RSI,RCX MOV ESI,dword ptr [RSI + RDX*0x4] JMP 0x001a8ddf LAB_001a8dd6: TEST R8B,0x4 JZ 0x001a8de6 ADD ESI,0x19 caseD_0: ADD EDI,ESI CMP EDI,-0x1 JZ 0x001a8df2 LAB_001a8de6: MOVSXD RCX,EDI MOV RAX,qword ptr [RAX + 0x58] MOV EAX,dword ptr [RAX + RCX*0x4] LAB_001a8df0: POP RCX RET LAB_001a8df2: LEA RDI,[0x1c72d6] LEA RSI,[0x1c705e] LEA RCX,[0x1c7272] MOV EDX,0x82 CALL 0x00139540 LAB_001a8e11: LEA RDI,[0x1c722e] LEA RSI,[0x1c705e] LEA RCX,[0x1c7272] MOV EDX,0x7a CALL 0x00139540
/* OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node::GetPatchPoint(int, int, unsigned short) const */ int4 __thiscall OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node::GetPatchPoint (Node *this,int param_1,int param_2,ushort param_3) { uint uVar1; long lVar2; int iVar3; lVar2 = *(long *)(*(long *)(this + 8) + 0x40); iVar3 = *(int *)(lVar2 + 4 + (long)*(int *)this * 4); if (iVar3 == -1) { return 0xffffffff; } uVar1 = *(uint *)(lVar2 + (long)*(int *)this * 4); switch(uVar1 & 3) { case 1: if (((uVar1 & 4) == 0) || ((uVar1 >> 3 & 0xf) < (uint)param_3)) goto LAB_001a8df2; break; case 2: if ((uVar1 >> 3 & 0xf) < (uint)param_3) { if ((3 < (uint)param_2) || ((uVar1 >> 8 & 0xf) == param_2)) { /* WARNING: Subroutine does not return */ __assert_fail("quadrant != (int)desc.GetEvIndex() && quadrant >= 0 && quadrant < 4", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/subdivisionPlan.cpp" ,0x7a, "Index OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node::GetPatchPoint(int, int, unsigned short) const" ); } param_1 = *(int *)(GetPatchPoint(int,int,unsigned_short)::permuteTerminal + (long)param_1 * 4 + (ulong)(uint)param_2 * 0x40); } else { if ((uVar1 & 4) == 0) goto LAB_001a8de6; param_1 = param_1 + 0x19; } } iVar3 = iVar3 + param_1; if (iVar3 != -1) { LAB_001a8de6: return *(int4 *)(*(long *)(*(long *)(this + 8) + 0x58) + (long)iVar3 * 4); } LAB_001a8df2: /* WARNING: Subroutine does not return */ __assert_fail("offset != INDEX_INVALID", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/subdivisionPlan.cpp" ,0x82, "Index OpenSubdiv::v3_6_0::Tmr::SubdivisionPlan::Node::GetPatchPoint(int, int, unsigned short) const" ); }
65,366
flatbuffers::Table::GetOptionalFieldOffset(unsigned short) const
mnn-tts/MNN/3rd_party/flatbuffers/include/flatbuffers/flatbuffers.h
voffset_t GetOptionalFieldOffset(voffset_t field) const { // The vtable offset is always at the start. auto vtable = GetVTable(); // The first element is the size of the vtable (fields + type id + itself). auto vtsize = ReadScalar<voffset_t>(vtable); // If the field we're accessing is outside the vtable, we're reading older // data, so it's the same as if the offset was 0 (not present). return field < vtsize ? ReadScalar<voffset_t>(vtable + field) : 0; }
O0
c
flatbuffers::Table::GetOptionalFieldOffset(unsigned short) const: subq $0x28, %rsp movw %si, %ax movq %rdi, 0x20(%rsp) movw %ax, 0x1e(%rsp) movq 0x20(%rsp), %rdi callq 0x9080 movq %rax, 0x10(%rsp) movq 0x10(%rsp), %rdi callq 0x90b0 movw %ax, 0xe(%rsp) movzwl 0x1e(%rsp), %eax movzwl 0xe(%rsp), %ecx cmpl %ecx, %eax jge 0x904a movq 0x10(%rsp), %rdi movzwl 0x1e(%rsp), %eax cltq addq %rax, %rdi callq 0x90b0 movzwl %ax, %eax movl %eax, 0x8(%rsp) jmp 0x9052 xorl %eax, %eax movl %eax, 0x8(%rsp) jmp 0x9052 movl 0x8(%rsp), %eax addq $0x28, %rsp retq nopl (%rax,%rax)
_ZNK11flatbuffers5Table22GetOptionalFieldOffsetEt: sub rsp, 28h mov ax, si mov [rsp+28h+var_8], rdi mov [rsp+28h+var_A], ax mov rdi, [rsp+28h+var_8]; this call _ZNK11flatbuffers5Table9GetVTableEv; flatbuffers::Table::GetVTable(void) mov [rsp+28h+var_18], rax mov rdi, [rsp+28h+var_18] call _ZN11flatbuffers10ReadScalarItEET_PKv; flatbuffers::ReadScalar<ushort>(void const*) mov [rsp+28h+var_1A], ax movzx eax, [rsp+28h+var_A] movzx ecx, [rsp+28h+var_1A] cmp eax, ecx jge short loc_904A mov rdi, [rsp+28h+var_18] movzx eax, [rsp+28h+var_A] cdqe add rdi, rax call _ZN11flatbuffers10ReadScalarItEET_PKv; flatbuffers::ReadScalar<ushort>(void const*) movzx eax, ax mov [rsp+28h+var_20], eax jmp short loc_9052 loc_904A: xor eax, eax mov [rsp+28h+var_20], eax jmp short $+2 loc_9052: mov eax, [rsp+28h+var_20] add rsp, 28h retn
long long flatbuffers::Table::GetOptionalFieldOffset(flatbuffers::Table *this, unsigned __int16 a2) { long long VTable; // [rsp+10h] [rbp-18h] VTable = flatbuffers::Table::GetVTable(this); if ( a2 >= (int)(unsigned __int16)flatbuffers::ReadScalar<unsigned short>(VTable) ) return 0; else return (unsigned __int16)flatbuffers::ReadScalar<unsigned short>(a2 + VTable); }
GetOptionalFieldOffset: SUB RSP,0x28 MOV AX,SI MOV qword ptr [RSP + 0x20],RDI MOV word ptr [RSP + 0x1e],AX MOV RDI,qword ptr [RSP + 0x20] CALL 0x00109080 MOV qword ptr [RSP + 0x10],RAX MOV RDI,qword ptr [RSP + 0x10] CALL 0x001090b0 MOV word ptr [RSP + 0xe],AX MOVZX EAX,word ptr [RSP + 0x1e] MOVZX ECX,word ptr [RSP + 0xe] CMP EAX,ECX JGE 0x0010904a MOV RDI,qword ptr [RSP + 0x10] MOVZX EAX,word ptr [RSP + 0x1e] CDQE ADD RDI,RAX CALL 0x001090b0 MOVZX EAX,AX MOV dword ptr [RSP + 0x8],EAX JMP 0x00109052 LAB_0010904a: XOR EAX,EAX MOV dword ptr [RSP + 0x8],EAX JMP 0x00109052 LAB_00109052: MOV EAX,dword ptr [RSP + 0x8] ADD RSP,0x28 RET
/* flatbuffers::Table::GetOptionalFieldOffset(unsigned short) const */ ushort __thiscall flatbuffers::Table::GetOptionalFieldOffset(Table *this,ushort param_1) { ushort uVar1; void *pvVar2; pvVar2 = (void *)GetVTable(this); uVar1 = ReadScalar<unsigned_short>(pvVar2); if (param_1 < uVar1) { uVar1 = ReadScalar<unsigned_short>((void *)((long)pvVar2 + (long)(int)(uint)param_1)); } else { uVar1 = 0; } return uVar1; }
65,367
my_hash_reset
eloqsql/mysys/hash.c
void my_hash_reset(HASH *hash) { DBUG_ENTER("my_hash_reset"); DBUG_PRINT("enter",("hash:%p", hash)); my_hash_free_elements(hash); reset_dynamic(&hash->array); /* Set row pointers so that the hash can be reused at once */ hash->blength= 1; DBUG_VOID_RETURN; }
O0
c
my_hash_reset: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) jmp 0xdf33e movq -0x8(%rbp), %rdi callq 0xdf2a0 movq -0x8(%rbp), %rax movl $0x0, 0x30(%rax) movq -0x8(%rbp), %rax movq $0x1, 0x10(%rax) jmp 0xdf360 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_hash_reset: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi jmp short $+2 loc_DF33E: mov rdi, [rbp+var_8] call my_hash_free_elements mov rax, [rbp+var_8] mov dword ptr [rax+30h], 0 mov rax, [rbp+var_8] mov qword ptr [rax+10h], 1 jmp short $+2 loc_DF360: add rsp, 10h pop rbp retn
unsigned long long my_hash_reset(unsigned long long a1) { unsigned long long result; // rax my_hash_free_elements(a1); *(_DWORD *)(a1 + 48) = 0; result = a1; *(_QWORD *)(a1 + 16) = 1LL; return result; }
my_hash_reset: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI JMP 0x001df33e LAB_001df33e: MOV RDI,qword ptr [RBP + -0x8] CALL 0x001df2a0 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x30],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x10],0x1 JMP 0x001df360 LAB_001df360: ADD RSP,0x10 POP RBP RET
void my_hash_reset(long param_1) { my_hash_free_elements(param_1); *(int4 *)(param_1 + 0x30) = 0; *(int8 *)(param_1 + 0x10) = 1; return; }
65,368
write_rest_of_head
eloqsql/storage/maria/ma_bitmap.c
static my_bool write_rest_of_head(MARIA_HA *info, uint position, ulong rest_length) { MARIA_SHARE *share= info->s; uint full_page_size= FULL_PAGE_SIZE(share); MARIA_BITMAP_BLOCK *block; DBUG_ENTER("write_rest_of_head"); DBUG_PRINT("enter", ("position: %u rest_length: %lu", position, rest_length)); if (position == 0) { /* Write out full pages */ uint pages= rest_length / full_page_size; rest_length%= full_page_size; if (rest_length >= MAX_TAIL_SIZE(share->block_size)) { /* Put tail on a full page */ pages++; rest_length= 0; } if (find_mid(info, pages, 1)) DBUG_RETURN(1); /* Insert empty block after full pages, to allow write_block_record() to split segment into used + free page */ block= dynamic_element(&info->bitmap_blocks, 2, MARIA_BITMAP_BLOCK*); block->page_count= 0; block->used= 0; } if (rest_length) { if (find_tail(info, rest_length, ELEMENTS_RESERVED_FOR_MAIN_PART - 1)) DBUG_RETURN(1); } else { /* Empty tail block */ block= dynamic_element(&info->bitmap_blocks, ELEMENTS_RESERVED_FOR_MAIN_PART - 1, MARIA_BITMAP_BLOCK *); block->page_count= 0; block->used= 0; } DBUG_RETURN(0); }
O0
c
write_rest_of_head: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax movl 0x7bc(%rax), %eax movq -0x28(%rbp), %rcx movl 0xc18(%rcx), %ecx addl $0x8, %ecx subl %ecx, %eax subl $0x4, %eax movl %eax, -0x2c(%rbp) jmp 0x61b9f cmpl $0x0, -0x14(%rbp) jne 0x61c39 movq -0x20(%rbp), %rax movl -0x2c(%rbp), %ecx xorl %edx, %edx divq %rcx movl %eax, -0x3c(%rbp) movl -0x2c(%rbp), %eax movl %eax, %ecx movq -0x20(%rbp), %rax xorl %edx, %edx divq %rcx movq %rdx, -0x20(%rbp) movq -0x20(%rbp), %rax movq -0x28(%rbp), %rcx imull $0x3, 0x7bc(%rcx), %ecx shrl $0x2, %ecx movl %ecx, %ecx cmpq %rcx, %rax jb 0x61bf4 movl -0x3c(%rbp), %eax addl $0x1, %eax movl %eax, -0x3c(%rbp) movq $0x0, -0x20(%rbp) movq -0x10(%rbp), %rdi movl -0x3c(%rbp), %eax movl %eax, %esi movl $0x1, %edx callq 0x64490 cmpb $0x0, %al je 0x61c13 jmp 0x61c0d movb $0x1, -0x1(%rbp) jmp 0x61c8e movq -0x10(%rbp), %rax movq 0x2c0(%rax), %rax addq $0x30, %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movl $0x0, 0x8(%rax) movq -0x38(%rbp), %rax movb $0x0, 0x14(%rax) cmpq $0x0, -0x20(%rbp) je 0x61c62 movq -0x10(%rbp), %rdi movq -0x20(%rbp), %rax movl %eax, %esi movl $0x3, %edx callq 0x64170 cmpb $0x0, %al je 0x61c60 jmp 0x61c5a movb $0x1, -0x1(%rbp) jmp 0x61c8e jmp 0x61c88 movq -0x10(%rbp), %rax movq 0x2c0(%rax), %rax addq $0x48, %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movl $0x0, 0x8(%rax) movq -0x38(%rbp), %rax movb $0x0, 0x14(%rax) jmp 0x61c8a movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x40, %rsp popq %rbp retq nopw (%rax,%rax)
write_rest_of_head: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_20], rdx mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_28], rax mov rax, [rbp+var_28] mov eax, [rax+7BCh] mov rcx, [rbp+var_28] mov ecx, [rcx+0C18h] add ecx, 8 sub eax, ecx sub eax, 4 mov [rbp+var_2C], eax jmp short $+2 loc_61B9F: cmp [rbp+var_14], 0 jnz loc_61C39 mov rax, [rbp+var_20] mov ecx, [rbp+var_2C] xor edx, edx div rcx mov [rbp+var_3C], eax mov eax, [rbp+var_2C] mov ecx, eax mov rax, [rbp+var_20] xor edx, edx div rcx mov [rbp+var_20], rdx mov rax, [rbp+var_20] mov rcx, [rbp+var_28] imul ecx, [rcx+7BCh], 3 shr ecx, 2 mov ecx, ecx cmp rax, rcx jb short loc_61BF4 mov eax, [rbp+var_3C] add eax, 1 mov [rbp+var_3C], eax mov [rbp+var_20], 0 loc_61BF4: mov rdi, [rbp+var_10] mov eax, [rbp+var_3C] mov esi, eax mov edx, 1 call find_mid cmp al, 0 jz short loc_61C13 jmp short $+2 loc_61C0D: mov [rbp+var_1], 1 jmp short loc_61C8E loc_61C13: mov rax, [rbp+var_10] mov rax, [rax+2C0h] add rax, 30h ; '0' mov [rbp+var_38], rax mov rax, [rbp+var_38] mov dword ptr [rax+8], 0 mov rax, [rbp+var_38] mov byte ptr [rax+14h], 0 loc_61C39: cmp [rbp+var_20], 0 jz short loc_61C62 mov rdi, [rbp+var_10] mov rax, [rbp+var_20] mov esi, eax mov edx, 3 call find_tail cmp al, 0 jz short loc_61C60 jmp short $+2 loc_61C5A: mov [rbp+var_1], 1 jmp short loc_61C8E loc_61C60: jmp short loc_61C88 loc_61C62: mov rax, [rbp+var_10] mov rax, [rax+2C0h] add rax, 48h ; 'H' mov [rbp+var_38], rax mov rax, [rbp+var_38] mov dword ptr [rax+8], 0 mov rax, [rbp+var_38] mov byte ptr [rax+14h], 0 loc_61C88: jmp short $+2 loc_61C8A: mov [rbp+var_1], 0 loc_61C8E: mov al, [rbp+var_1] add rsp, 40h pop rbp retn
char write_rest_of_head(_QWORD *a1, int a2, unsigned long long a3) { long long v3; // rax long long v4; // rax unsigned int v6; // [rsp+4h] [rbp-3Ch] unsigned int v7; // [rsp+14h] [rbp-2Ch] unsigned long long v8; // [rsp+20h] [rbp-20h] v8 = a3; v7 = *(_DWORD *)(*a1 + 1980LL) - (*(_DWORD *)(*a1 + 3096LL) + 8) - 4; if ( a2 ) { LABEL_7: if ( v8 ) { if ( (unsigned __int8)find_tail(a1, (unsigned int)v8, 3LL) ) return 1; } else { v4 = a1[88]; *(_DWORD *)(v4 + 80) = 0; *(_BYTE *)(v4 + 92) = 0; } return 0; } v6 = a3 / v7; v8 = a3 % v7; if ( v8 >= (unsigned int)(3 * *(_DWORD *)(*a1 + 1980LL)) >> 2 ) { ++v6; v8 = 0LL; } if ( !(unsigned __int8)find_mid(a1, v6, 1LL) ) { v3 = a1[88]; *(_DWORD *)(v3 + 56) = 0; *(_BYTE *)(v3 + 68) = 0; goto LABEL_7; } return 1; }
write_rest_of_head: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV qword ptr [RBP + -0x20],RDX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x28] MOV EAX,dword ptr [RAX + 0x7bc] MOV RCX,qword ptr [RBP + -0x28] MOV ECX,dword ptr [RCX + 0xc18] ADD ECX,0x8 SUB EAX,ECX SUB EAX,0x4 MOV dword ptr [RBP + -0x2c],EAX JMP 0x00161b9f LAB_00161b9f: CMP dword ptr [RBP + -0x14],0x0 JNZ 0x00161c39 MOV RAX,qword ptr [RBP + -0x20] MOV ECX,dword ptr [RBP + -0x2c] XOR EDX,EDX DIV RCX MOV dword ptr [RBP + -0x3c],EAX MOV EAX,dword ptr [RBP + -0x2c] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x20] XOR EDX,EDX DIV RCX MOV qword ptr [RBP + -0x20],RDX MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x28] IMUL ECX,dword ptr [RCX + 0x7bc],0x3 SHR ECX,0x2 MOV ECX,ECX CMP RAX,RCX JC 0x00161bf4 MOV EAX,dword ptr [RBP + -0x3c] ADD EAX,0x1 MOV dword ptr [RBP + -0x3c],EAX MOV qword ptr [RBP + -0x20],0x0 LAB_00161bf4: MOV RDI,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RBP + -0x3c] MOV ESI,EAX MOV EDX,0x1 CALL 0x00164490 CMP AL,0x0 JZ 0x00161c13 JMP 0x00161c0d LAB_00161c0d: MOV byte ptr [RBP + -0x1],0x1 JMP 0x00161c8e LAB_00161c13: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x2c0] ADD RAX,0x30 MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x8],0x0 MOV RAX,qword ptr [RBP + -0x38] MOV byte ptr [RAX + 0x14],0x0 LAB_00161c39: CMP qword ptr [RBP + -0x20],0x0 JZ 0x00161c62 MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x20] MOV ESI,EAX MOV EDX,0x3 CALL 0x00164170 CMP AL,0x0 JZ 0x00161c60 JMP 0x00161c5a LAB_00161c5a: MOV byte ptr [RBP + -0x1],0x1 JMP 0x00161c8e LAB_00161c60: JMP 0x00161c88 LAB_00161c62: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x2c0] ADD RAX,0x48 MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x8],0x0 MOV RAX,qword ptr [RBP + -0x38] MOV byte ptr [RAX + 0x14],0x0 LAB_00161c88: JMP 0x00161c8a LAB_00161c8a: MOV byte ptr [RBP + -0x1],0x0 LAB_00161c8e: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x40 POP RBP RET
int1 write_rest_of_head(long *param_1,int param_2,ulong param_3) { long lVar1; char cVar2; uint uVar3; int local_44; ulong local_28; lVar1 = *param_1; uVar3 = (*(int *)(lVar1 + 0x7bc) - (*(int *)(lVar1 + 0xc18) + 8)) - 4; local_28 = param_3; if (param_2 == 0) { local_44 = (int)(param_3 / uVar3); local_28 = param_3 % (ulong)uVar3; if ((uint)(*(int *)(lVar1 + 0x7bc) * 3) >> 2 <= local_28) { local_44 = local_44 + 1; local_28 = 0; } cVar2 = find_mid(param_1,local_44,1); if (cVar2 != '\0') { return 1; } lVar1 = param_1[0x58]; *(int4 *)(lVar1 + 0x38) = 0; *(int1 *)(lVar1 + 0x44) = 0; } if (local_28 == 0) { lVar1 = param_1[0x58]; *(int4 *)(lVar1 + 0x50) = 0; *(int1 *)(lVar1 + 0x5c) = 0; } else { cVar2 = find_tail(param_1,local_28 & 0xffffffff,3); if (cVar2 != '\0') { return 1; } } return 0; }
65,369
google::protobuf::compiler::java::ImmutablePrimitiveOneofFieldLiteGenerator::ImmutablePrimitiveOneofFieldLiteGenerator(google::protobuf::FieldDescriptor const*, int, google::protobuf::compiler::java::Context*)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/java/primitive_field_lite.cc
ImmutablePrimitiveOneofFieldLiteGenerator:: ImmutablePrimitiveOneofFieldLiteGenerator(const FieldDescriptor* descriptor, int messageBitIndex, Context* context) : ImmutablePrimitiveFieldLiteGenerator(descriptor, messageBitIndex, context) { const OneofGeneratorInfo* info = context->GetOneofGeneratorInfo(descriptor->containing_oneof()); SetCommonOneofVariables(descriptor, info, &variables_); }
O3
cpp
google::protobuf::compiler::java::ImmutablePrimitiveOneofFieldLiteGenerator::ImmutablePrimitiveOneofFieldLiteGenerator(google::protobuf::FieldDescriptor const*, int, google::protobuf::compiler::java::Context*): pushq %r15 pushq %r14 pushq %rbx movq %rcx, %r15 movq %rsi, %r14 movq %rdi, %rbx callq 0xe2d9c leaq 0x194b40(%rip), %rax # 0x27a160 movq %rax, (%rbx) testb $0x10, 0x1(%r14) je 0xe5630 movq 0x28(%r14), %rsi jmp 0xe5632 xorl %esi, %esi movq %r15, %rdi callq 0xcef84 leaq 0x10(%rbx), %rdx movq %r14, %rdi movq %rax, %rsi callq 0xd55f7 popq %rbx popq %r14 popq %r15 retq movq %rax, %r14 leaq 0x194aa7(%rip), %rax # 0x27a100 movq %rax, (%rbx) leaq 0x10(%rbx), %rdi callq 0x2e5e0 movq %rbx, %rdi callq 0xd46c6 movq %r14, %rdi callq 0x1f860 nop
_ZN6google8protobuf8compiler4java41ImmutablePrimitiveOneofFieldLiteGeneratorC2EPKNS0_15FieldDescriptorEiPNS2_7ContextE: push r15; int push r14; int push rbx; void * mov r15, rcx mov r14, rsi mov rbx, rdi call _ZN6google8protobuf8compiler4java36ImmutablePrimitiveFieldLiteGeneratorC2EPKNS0_15FieldDescriptorEiPNS2_7ContextE; google::protobuf::compiler::java::ImmutablePrimitiveFieldLiteGenerator::ImmutablePrimitiveFieldLiteGenerator(google::protobuf::FieldDescriptor const*,int,google::protobuf::compiler::java::Context *) lea rax, off_27A160 mov [rbx], rax test byte ptr [r14+1], 10h jz short loc_E5630 mov rsi, [r14+28h] jmp short loc_E5632 loc_E5630: xor esi, esi loc_E5632: mov rdi, r15 call _ZNK6google8protobuf8compiler4java7Context21GetOneofGeneratorInfoEPKNS0_15OneofDescriptorE; google::protobuf::compiler::java::Context::GetOneofGeneratorInfo(google::protobuf::OneofDescriptor const*) lea rdx, [rbx+10h]; int mov rdi, r14; int mov rsi, rax; int call _ZN6google8protobuf8compiler4java23SetCommonOneofVariablesEPKNS0_15FieldDescriptorEPKNS2_18OneofGeneratorInfoEPSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESF_St4lessISF_ESaISt4pairIKSF_SF_EEE; google::protobuf::compiler::java::SetCommonOneofVariables(google::protobuf::FieldDescriptor const*,google::protobuf::compiler::java::OneofGeneratorInfo const*,std::map<std::string,std::string> *) pop rbx pop r14 pop r15 retn mov r14, rax lea rax, off_27A100 mov [rbx], rax lea rdi, [rbx+10h] 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; this call _ZN6google8protobuf8compiler4java27ImmutableFieldLiteGeneratorD2Ev; google::protobuf::compiler::java::ImmutableFieldLiteGenerator::~ImmutableFieldLiteGenerator() mov rdi, r14 call __Unwind_Resume
void google::protobuf::compiler::java::ImmutablePrimitiveOneofFieldLiteGenerator::ImmutablePrimitiveOneofFieldLiteGenerator( google::protobuf::compiler::java::ImmutablePrimitiveOneofFieldLiteGenerator *this, const google::protobuf::OneofDescriptor **a2, int a3, google::protobuf::compiler::java::Context *a4) { const google::protobuf::OneofDescriptor *v6; // rsi char *OneofGeneratorInfo; // rax google::protobuf::compiler::java::ImmutablePrimitiveFieldLiteGenerator::ImmutablePrimitiveFieldLiteGenerator( this, (const google::protobuf::FieldDescriptor *)a2, a3, a4); *(_QWORD *)this = off_27A160; if ( (*((_BYTE *)a2 + 1) & 0x10) != 0 ) v6 = a2[5]; else v6 = 0LL; OneofGeneratorInfo = google::protobuf::compiler::java::Context::GetOneofGeneratorInfo(a4, v6); google::protobuf::compiler::java::SetCommonOneofVariables( (long long)a2, (_BYTE **)OneofGeneratorInfo, (long long)this + 16); }
ImmutablePrimitiveOneofFieldLiteGenerator: PUSH R15 PUSH R14 PUSH RBX MOV R15,RCX MOV R14,RSI MOV RBX,RDI CALL 0x001e2d9c LEA RAX,[0x37a160] MOV qword ptr [RBX],RAX TEST byte ptr [R14 + 0x1],0x10 JZ 0x001e5630 MOV RSI,qword ptr [R14 + 0x28] JMP 0x001e5632 LAB_001e5630: XOR ESI,ESI LAB_001e5632: MOV RDI,R15 CALL 0x001cef84 LEA RDX,[RBX + 0x10] MOV RDI,R14 MOV RSI,RAX CALL 0x001d55f7 LAB_001e5649: POP RBX POP R14 POP R15 RET
/* google::protobuf::compiler::java::ImmutablePrimitiveOneofFieldLiteGenerator::ImmutablePrimitiveOneofFieldLiteGenerator(google::protobuf::FieldDescriptor const*, int, google::protobuf::compiler::java::Context*) */ void __thiscall google::protobuf::compiler::java::ImmutablePrimitiveOneofFieldLiteGenerator:: ImmutablePrimitiveOneofFieldLiteGenerator (ImmutablePrimitiveOneofFieldLiteGenerator *this,FieldDescriptor *param_1,int param_2, Context *param_3) { OneofGeneratorInfo *pOVar1; OneofDescriptor *pOVar2; ImmutablePrimitiveFieldLiteGenerator::ImmutablePrimitiveFieldLiteGenerator ((ImmutablePrimitiveFieldLiteGenerator *)this,param_1,param_2,param_3); *(int ***)this = &PTR__ImmutablePrimitiveFieldLiteGenerator_0037a160; if (((byte)param_1[1] & 0x10) == 0) { pOVar2 = (OneofDescriptor *)0x0; } else { pOVar2 = *(OneofDescriptor **)(param_1 + 0x28); } /* try { // try from 001e5632 to 001e5648 has its CatchHandler @ 001e564f */ pOVar1 = (OneofGeneratorInfo *)Context::GetOneofGeneratorInfo(param_3,pOVar2); SetCommonOneofVariables(param_1,pOVar1,(map *)(this + 0x10)); return; }
65,370
wt_resource_create
eloqsql/mysys/waiting_threads.c
static void wt_resource_create(uchar *arg) { WT_RESOURCE *rc= (WT_RESOURCE*)(arg+LF_HASH_OVERHEAD); DBUG_ENTER("wt_resource_create"); bzero(rc, sizeof(*rc)); rc_rwlock_init(rc); mysql_cond_init(key_WT_RESOURCE_cond, &rc->cond, 0); my_init_dynamic_array(PSI_INSTRUMENT_ME, &rc->owners, sizeof(WT_THD *), 0, 5, MYF(0)); DBUG_VOID_RETURN; }
O0
c
wt_resource_create: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax leaq 0x59249(%rip), %rcx # 0x158770 movslq (%rcx), %rcx addq %rcx, %rax movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rdi xorl %esi, %esi movl $0x108, %edx # imm = 0x108 callq 0x2a2c0 movq -0x10(%rbp), %rdi callq 0x100290 leaq 0xb82423(%rip), %rax # 0xc81974 movl (%rax), %edi movq -0x10(%rbp), %rsi addq $0xa8, %rsi xorl %eax, %eax movl %eax, %edx callq 0x1002b0 movq -0x10(%rbp), %rsi addq $0xe0, %rsi xorl %r8d, %r8d movl $0x8, %edx xorl %eax, %eax movl %eax, %ecx movl $0x5, %r9d movl %r8d, %edi movq $0x0, (%rsp) callq 0xda1c0 jmp 0xff596 addq $0x20, %rsp popq %rbp retq nopl (%rax)
wt_resource_create: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov rax, [rbp+var_8] lea rcx, LF_HASH_OVERHEAD movsxd rcx, dword ptr [rcx] add rax, rcx mov [rbp+var_10], rax mov rdi, [rbp+var_10] xor esi, esi mov edx, 108h call _memset mov rdi, [rbp+var_10] call rc_rwlock_init lea rax, key_WT_RESOURCE_cond mov edi, [rax] mov rsi, [rbp+var_10] add rsi, 0A8h xor eax, eax mov edx, eax call inline_mysql_cond_init_5 mov rsi, [rbp+var_10] add rsi, 0E0h xor r8d, r8d mov edx, 8 xor eax, eax mov ecx, eax mov r9d, 5 mov edi, r8d mov [rsp+20h+var_20], 0 call init_dynamic_array2 jmp short $+2 loc_FF596: add rsp, 20h pop rbp retn
char wt_resource_create(long long a1) { long long v2; // [rsp+10h] [rbp-10h] v2 = LF_HASH_OVERHEAD + a1; memset(v2, 0LL, 264LL); rc_rwlock_init(v2); inline_mysql_cond_init_5(key_WT_RESOURCE_cond, v2 + 168, 0LL); return init_dynamic_array2(0, v2 + 224, 8u, 0LL, 0, 5, 0LL); }
wt_resource_create: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] LEA RCX,[0x258770] MOVSXD RCX,dword ptr [RCX] ADD RAX,RCX MOV qword ptr [RBP + -0x10],RAX MOV RDI,qword ptr [RBP + -0x10] XOR ESI,ESI MOV EDX,0x108 CALL 0x0012a2c0 MOV RDI,qword ptr [RBP + -0x10] CALL 0x00200290 LEA RAX,[0xd81974] MOV EDI,dword ptr [RAX] MOV RSI,qword ptr [RBP + -0x10] ADD RSI,0xa8 XOR EAX,EAX MOV EDX,EAX CALL 0x002002b0 MOV RSI,qword ptr [RBP + -0x10] ADD RSI,0xe0 XOR R8D,R8D MOV EDX,0x8 XOR EAX,EAX MOV ECX,EAX MOV R9D,0x5 MOV EDI,R8D MOV qword ptr [RSP],0x0 CALL 0x001da1c0 JMP 0x001ff596 LAB_001ff596: ADD RSP,0x20 POP RBP RET
void wt_resource_create(long param_1) { void *__s; __s = (void *)(param_1 + LF_HASH_OVERHEAD); memset(__s,0,0x108); rc_rwlock_init(__s); inline_mysql_cond_init(key_WT_RESOURCE_cond,(long)__s + 0xa8,0); init_dynamic_array2(0,(long)__s + 0xe0,8,0,0,5,0); return; }
65,371
my_wc_mb_filename
eloqsql/strings/ctype-utf8.c
static int my_wc_mb_filename(CHARSET_INFO *cs __attribute__((unused)), my_wc_t wc, uchar *s, uchar *e) { int code; static const char hex[]= "0123456789abcdef"; if (s >= e) return MY_CS_TOOSMALL; if (wc < 128 && filename_safe_char[wc]) { *s= (uchar) wc; return 1; } if (s + 3 > e) return MY_CS_TOOSMALL3; *s++= MY_FILENAME_ESCAPE; if ((wc >= 0x00C0 && wc <= 0x05FF && (code= uni_0C00_05FF[wc - 0x00C0])) || (wc >= 0x1E00 && wc <= 0x1FFF && (code= uni_1E00_1FFF[wc - 0x1E00])) || (wc >= 0x2160 && wc <= 0x217F && (code= uni_2160_217F[wc - 0x2160])) || (wc >= 0x24B0 && wc <= 0x24EF && (code= uni_24B0_24EF[wc - 0x24B0])) || (wc >= 0xFF20 && wc <= 0xFF5F && (code= uni_FF20_FF5F[wc - 0xFF20]))) { *s++= (code / 80) + 0x30; *s++= (code % 80) + 0x30; return 3; } /* Non letter */ if (s + 4 > e) return MY_CS_TOOSMALL5; *s++= hex[(wc >> 12) & 15]; *s++= hex[(wc >> 8) & 15]; *s++= hex[(wc >> 4) & 15]; *s++= hex[(wc) & 15]; return 5; }
O0
c
my_wc_mb_filename: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x20(%rbp), %rax cmpq -0x28(%rbp), %rax jb 0x685ca movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B jmp 0x68835 cmpq $0x80, -0x18(%rbp) jae 0x68600 movq -0x18(%rbp), %rcx leaq 0x148bf1(%rip), %rax # 0x1b11d0 movsbl (%rax,%rcx), %eax cmpl $0x0, %eax je 0x68600 movq -0x18(%rbp), %rax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, (%rax) movl $0x1, -0x4(%rbp) jmp 0x68835 movq -0x20(%rbp), %rax addq $0x3, %rax cmpq -0x28(%rbp), %rax jbe 0x6861a movl $0xffffff99, -0x4(%rbp) # imm = 0xFFFFFF99 jmp 0x68835 movq -0x20(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x20(%rbp) movb $0x40, (%rax) cmpq $0xc0, -0x18(%rbp) jb 0x68662 cmpq $0x5ff, -0x18(%rbp) # imm = 0x5FF ja 0x68662 movq -0x18(%rbp), %rcx subq $0xc0, %rcx leaq 0x14bd3e(%rip), %rax # 0x1b4390 movzwl (%rax,%rcx,2), %eax movl %eax, -0x2c(%rbp) cmpl $0x0, %eax jne 0x6872e cmpq $0x1e00, -0x18(%rbp) # imm = 0x1E00 jb 0x68698 cmpq $0x1fff, -0x18(%rbp) # imm = 0x1FFF ja 0x68698 movq -0x18(%rbp), %rcx subq $0x1e00, %rcx # imm = 0x1E00 leaq 0x31b4c8(%rip), %rax # 0x383b50 movzwl (%rax,%rcx,2), %eax movl %eax, -0x2c(%rbp) cmpl $0x0, %eax jne 0x6872e cmpq $0x2160, -0x18(%rbp) # imm = 0x2160 jb 0x686ca cmpq $0x217f, -0x18(%rbp) # imm = 0x217F ja 0x686ca movq -0x18(%rbp), %rcx subq $0x2160, %rcx # imm = 0x2160 leaq 0x14bb92(%rip), %rax # 0x1b4250 movzwl (%rax,%rcx,2), %eax movl %eax, -0x2c(%rbp) cmpl $0x0, %eax jne 0x6872e cmpq $0x24b0, -0x18(%rbp) # imm = 0x24B0 jb 0x686fc cmpq $0x24ef, -0x18(%rbp) # imm = 0x24EF ja 0x686fc movq -0x18(%rbp), %rcx subq $0x24b0, %rcx # imm = 0x24B0 leaq 0x14bba0(%rip), %rax # 0x1b4290 movzwl (%rax,%rcx,2), %eax movl %eax, -0x2c(%rbp) cmpl $0x0, %eax jne 0x6872e cmpq $0xff20, -0x18(%rbp) # imm = 0xFF20 jb 0x6877c cmpq $0xff5f, -0x18(%rbp) # imm = 0xFF5F ja 0x6877c movq -0x18(%rbp), %rcx subq $0xff20, %rcx # imm = 0xFF20 leaq 0x14bbee(%rip), %rax # 0x1b4310 movzwl (%rax,%rcx,2), %eax movl %eax, -0x2c(%rbp) cmpl $0x0, %eax je 0x6877c movl -0x2c(%rbp), %eax movl $0x50, %ecx cltd idivl %ecx addl $0x30, %eax movb %al, %cl movq -0x20(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x20(%rbp) movb %cl, (%rax) movl -0x2c(%rbp), %eax movl $0x50, %ecx cltd idivl %ecx addl $0x30, %edx movb %dl, %cl movq -0x20(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x20(%rbp) movb %cl, (%rax) movl $0x3, -0x4(%rbp) jmp 0x68835 movq -0x20(%rbp), %rax addq $0x4, %rax cmpq -0x28(%rbp), %rax jbe 0x68796 movl $0xffffff97, -0x4(%rbp) # imm = 0xFFFFFF97 jmp 0x68835 movq -0x18(%rbp), %rcx shrq $0xc, %rcx andq $0xf, %rcx leaq 0x14ba87(%rip), %rax # 0x1b4230 movb (%rax,%rcx), %cl movq -0x20(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x20(%rbp) movb %cl, (%rax) movq -0x18(%rbp), %rcx shrq $0x8, %rcx andq $0xf, %rcx leaq 0x14ba60(%rip), %rax # 0x1b4230 movb (%rax,%rcx), %cl movq -0x20(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x20(%rbp) movb %cl, (%rax) movq -0x18(%rbp), %rcx shrq $0x4, %rcx andq $0xf, %rcx leaq 0x14ba39(%rip), %rax # 0x1b4230 movb (%rax,%rcx), %cl movq -0x20(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x20(%rbp) movb %cl, (%rax) movq -0x18(%rbp), %rcx andq $0xf, %rcx leaq 0x14ba16(%rip), %rax # 0x1b4230 movb (%rax,%rcx), %cl movq -0x20(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x20(%rbp) movb %cl, (%rax) movl $0x5, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopw (%rax,%rax)
my_wc_mb_filename: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov rax, [rbp+var_20] cmp rax, [rbp+var_28] jb short loc_685CA mov [rbp+var_4], 0FFFFFF9Bh jmp loc_68835 loc_685CA: cmp [rbp+var_18], 80h jnb short loc_68600 mov rcx, [rbp+var_18] lea rax, filename_safe_char movsx eax, byte ptr [rax+rcx] cmp eax, 0 jz short loc_68600 mov rax, [rbp+var_18] mov cl, al mov rax, [rbp+var_20] mov [rax], cl mov [rbp+var_4], 1 jmp loc_68835 loc_68600: mov rax, [rbp+var_20] add rax, 3 cmp rax, [rbp+var_28] jbe short loc_6861A mov [rbp+var_4], 0FFFFFF99h jmp loc_68835 loc_6861A: mov rax, [rbp+var_20] mov rcx, rax add rcx, 1 mov [rbp+var_20], rcx mov byte ptr [rax], 40h ; '@' cmp [rbp+var_18], 0C0h jb short loc_68662 cmp [rbp+var_18], 5FFh ja short loc_68662 mov rcx, [rbp+var_18] sub rcx, 0C0h lea rax, uni_0C00_05FF movzx eax, word ptr [rax+rcx*2] mov [rbp+var_2C], eax cmp eax, 0 jnz loc_6872E loc_68662: cmp [rbp+var_18], 1E00h jb short loc_68698 cmp [rbp+var_18], 1FFFh ja short loc_68698 mov rcx, [rbp+var_18] sub rcx, 1E00h lea rax, uni_1E00_1FFF movzx eax, word ptr [rax+rcx*2] mov [rbp+var_2C], eax cmp eax, 0 jnz loc_6872E loc_68698: cmp [rbp+var_18], 2160h jb short loc_686CA cmp [rbp+var_18], 217Fh ja short loc_686CA mov rcx, [rbp+var_18] sub rcx, 2160h lea rax, uni_2160_217F movzx eax, word ptr [rax+rcx*2] mov [rbp+var_2C], eax cmp eax, 0 jnz short loc_6872E loc_686CA: cmp [rbp+var_18], 24B0h jb short loc_686FC cmp [rbp+var_18], 24EFh ja short loc_686FC mov rcx, [rbp+var_18] sub rcx, 24B0h lea rax, uni_24B0_24EF movzx eax, word ptr [rax+rcx*2] mov [rbp+var_2C], eax cmp eax, 0 jnz short loc_6872E loc_686FC: cmp [rbp+var_18], 0FF20h jb short loc_6877C cmp [rbp+var_18], 0FF5Fh ja short loc_6877C mov rcx, [rbp+var_18] sub rcx, 0FF20h lea rax, uni_FF20_FF5F movzx eax, word ptr [rax+rcx*2] mov [rbp+var_2C], eax cmp eax, 0 jz short loc_6877C loc_6872E: mov eax, [rbp+var_2C] mov ecx, 50h ; 'P' cdq idiv ecx add eax, 30h ; '0' mov cl, al mov rax, [rbp+var_20] mov rdx, rax add rdx, 1 mov [rbp+var_20], rdx mov [rax], cl mov eax, [rbp+var_2C] mov ecx, 50h ; 'P' cdq idiv ecx add edx, 30h ; '0' mov cl, dl mov rax, [rbp+var_20] mov rdx, rax add rdx, 1 mov [rbp+var_20], rdx mov [rax], cl mov [rbp+var_4], 3 jmp loc_68835 loc_6877C: mov rax, [rbp+var_20] add rax, 4 cmp rax, [rbp+var_28] jbe short loc_68796 mov [rbp+var_4], 0FFFFFF97h jmp loc_68835 loc_68796: mov rcx, [rbp+var_18] shr rcx, 0Ch and rcx, 0Fh lea rax, my_wc_mb_filename_hex; "0123456789abcdef" mov cl, [rax+rcx] mov rax, [rbp+var_20] mov rdx, rax add rdx, 1 mov [rbp+var_20], rdx mov [rax], cl mov rcx, [rbp+var_18] shr rcx, 8 and rcx, 0Fh lea rax, my_wc_mb_filename_hex; "0123456789abcdef" mov cl, [rax+rcx] mov rax, [rbp+var_20] mov rdx, rax add rdx, 1 mov [rbp+var_20], rdx mov [rax], cl mov rcx, [rbp+var_18] shr rcx, 4 and rcx, 0Fh lea rax, my_wc_mb_filename_hex; "0123456789abcdef" mov cl, [rax+rcx] mov rax, [rbp+var_20] mov rdx, rax add rdx, 1 mov [rbp+var_20], rdx mov [rax], cl mov rcx, [rbp+var_18] and rcx, 0Fh lea rax, my_wc_mb_filename_hex; "0123456789abcdef" mov cl, [rax+rcx] mov rax, [rbp+var_20] mov rdx, rax add rdx, 1 mov [rbp+var_20], rdx mov [rax], cl mov [rbp+var_4], 5 loc_68835: mov eax, [rbp+var_4] pop rbp retn
long long my_wc_mb_filename(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4) { int v5; // [rsp+0h] [rbp-2Ch] _BYTE *v6; // [rsp+Ch] [rbp-20h] if ( (unsigned long long)a3 < a4 ) { if ( a2 < 0x80 && filename_safe_char[a2] ) { *a3 = a2; return 1; } else if ( (unsigned long long)(a3 + 3) <= a4 ) { v6 = a3 + 1; *a3 = 64; if ( a2 >= 0xC0 && a2 <= 0x5FF && (v5 = uni_0C00_05FF[a2 - 192]) != 0 || a2 >= 0x1E00 && a2 <= 0x1FFF && (v5 = uni_1E00_1FFF[a2 - 7680]) != 0 || a2 >= 0x2160 && a2 <= 0x217F && (v5 = uni_2160_217F[a2 - 8544]) != 0 || a2 >= 0x24B0 && a2 <= 0x24EF && (v5 = uni_24B0_24EF[a2 - 9392]) != 0 || a2 >= 0xFF20 && a2 <= 0xFF5F && (v5 = uni_FF20_FF5F[a2 - 65312]) != 0 ) { *v6 = v5 / 80 + 48; a3[2] = v5 % 80 + 48; return 3; } else if ( (unsigned long long)(a3 + 5) <= a4 ) { *v6 = my_wc_mb_filename_hex[(unsigned __int16)a2 >> 12]; a3[2] = my_wc_mb_filename_hex[(a2 >> 8) & 0xF]; a3[3] = my_wc_mb_filename_hex[(unsigned __int8)a2 >> 4]; a3[4] = my_wc_mb_filename_hex[a2 & 0xF]; return 5; } else { return (unsigned int)-105; } } else { return (unsigned int)-103; } } else { return (unsigned int)-101; } }
my_wc_mb_filename: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV RAX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [RBP + -0x28] JC 0x001685ca MOV dword ptr [RBP + -0x4],0xffffff9b JMP 0x00168835 LAB_001685ca: CMP qword ptr [RBP + -0x18],0x80 JNC 0x00168600 MOV RCX,qword ptr [RBP + -0x18] LEA RAX,[0x2b11d0] MOVSX EAX,byte ptr [RAX + RCX*0x1] CMP EAX,0x0 JZ 0x00168600 MOV RAX,qword ptr [RBP + -0x18] MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX],CL MOV dword ptr [RBP + -0x4],0x1 JMP 0x00168835 LAB_00168600: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x3 CMP RAX,qword ptr [RBP + -0x28] JBE 0x0016861a MOV dword ptr [RBP + -0x4],0xffffff99 JMP 0x00168835 LAB_0016861a: MOV RAX,qword ptr [RBP + -0x20] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x20],RCX MOV byte ptr [RAX],0x40 CMP qword ptr [RBP + -0x18],0xc0 JC 0x00168662 CMP qword ptr [RBP + -0x18],0x5ff JA 0x00168662 MOV RCX,qword ptr [RBP + -0x18] SUB RCX,0xc0 LEA RAX,[0x2b4390] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV dword ptr [RBP + -0x2c],EAX CMP EAX,0x0 JNZ 0x0016872e LAB_00168662: CMP qword ptr [RBP + -0x18],0x1e00 JC 0x00168698 CMP qword ptr [RBP + -0x18],0x1fff JA 0x00168698 MOV RCX,qword ptr [RBP + -0x18] SUB RCX,0x1e00 LEA RAX,[0x483b50] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV dword ptr [RBP + -0x2c],EAX CMP EAX,0x0 JNZ 0x0016872e LAB_00168698: CMP qword ptr [RBP + -0x18],0x2160 JC 0x001686ca CMP qword ptr [RBP + -0x18],0x217f JA 0x001686ca MOV RCX,qword ptr [RBP + -0x18] SUB RCX,0x2160 LEA RAX,[0x2b4250] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV dword ptr [RBP + -0x2c],EAX CMP EAX,0x0 JNZ 0x0016872e LAB_001686ca: CMP qword ptr [RBP + -0x18],0x24b0 JC 0x001686fc CMP qword ptr [RBP + -0x18],0x24ef JA 0x001686fc MOV RCX,qword ptr [RBP + -0x18] SUB RCX,0x24b0 LEA RAX,[0x2b4290] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV dword ptr [RBP + -0x2c],EAX CMP EAX,0x0 JNZ 0x0016872e LAB_001686fc: CMP qword ptr [RBP + -0x18],0xff20 JC 0x0016877c CMP qword ptr [RBP + -0x18],0xff5f JA 0x0016877c MOV RCX,qword ptr [RBP + -0x18] SUB RCX,0xff20 LEA RAX,[0x2b4310] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV dword ptr [RBP + -0x2c],EAX CMP EAX,0x0 JZ 0x0016877c LAB_0016872e: MOV EAX,dword ptr [RBP + -0x2c] MOV ECX,0x50 CDQ IDIV ECX ADD EAX,0x30 MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x20],RDX MOV byte ptr [RAX],CL MOV EAX,dword ptr [RBP + -0x2c] MOV ECX,0x50 CDQ IDIV ECX ADD EDX,0x30 MOV CL,DL MOV RAX,qword ptr [RBP + -0x20] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x20],RDX MOV byte ptr [RAX],CL MOV dword ptr [RBP + -0x4],0x3 JMP 0x00168835 LAB_0016877c: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x4 CMP RAX,qword ptr [RBP + -0x28] JBE 0x00168796 MOV dword ptr [RBP + -0x4],0xffffff97 JMP 0x00168835 LAB_00168796: MOV RCX,qword ptr [RBP + -0x18] SHR RCX,0xc AND RCX,0xf LEA RAX,[0x2b4230] MOV CL,byte ptr [RAX + RCX*0x1] MOV RAX,qword ptr [RBP + -0x20] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x20],RDX MOV byte ptr [RAX],CL MOV RCX,qword ptr [RBP + -0x18] SHR RCX,0x8 AND RCX,0xf LEA RAX,[0x2b4230] MOV CL,byte ptr [RAX + RCX*0x1] MOV RAX,qword ptr [RBP + -0x20] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x20],RDX MOV byte ptr [RAX],CL MOV RCX,qword ptr [RBP + -0x18] SHR RCX,0x4 AND RCX,0xf LEA RAX,[0x2b4230] MOV CL,byte ptr [RAX + RCX*0x1] MOV RAX,qword ptr [RBP + -0x20] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x20],RDX MOV byte ptr [RAX],CL MOV RCX,qword ptr [RBP + -0x18] AND RCX,0xf LEA RAX,[0x2b4230] MOV CL,byte ptr [RAX + RCX*0x1] MOV RAX,qword ptr [RBP + -0x20] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x20],RDX MOV byte ptr [RAX],CL MOV dword ptr [RBP + -0x4],0x5 LAB_00168835: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int4 my_wc_mb_filename(int8 param_1,ulong param_2,int1 *param_3,int1 *param_4) { uint local_34; int4 local_c; if (param_3 < param_4) { if ((param_2 < 0x80) && (filename_safe_char[param_2] != '\0')) { *param_3 = (char)param_2; local_c = 1; } else if (param_4 < param_3 + 3) { local_c = 0xffffff99; } else { *param_3 = 0x40; if ((((((param_2 < 0xc0) || (0x5ff < param_2)) || (local_34 = (uint)*(ushort *)(uni_0C00_05FF + (param_2 - 0xc0) * 2), local_34 == 0)) && (((param_2 < 0x1e00 || (0x1fff < param_2)) || (local_34 = (uint)*(ushort *)(uni_1E00_1FFF + (param_2 - 0x1e00) * 2), local_34 == 0)))) && (((param_2 < 0x2160 || (0x217f < param_2)) || (local_34 = (uint)*(ushort *)(uni_2160_217F + (param_2 - 0x2160) * 2), local_34 == 0)) )) && ((((param_2 < 0x24b0 || (0x24ef < param_2)) || (local_34 = (uint)*(ushort *)(uni_24B0_24EF + (param_2 - 0x24b0) * 2), local_34 == 0)) && (((param_2 < 0xff20 || (0xff5f < param_2)) || (local_34 = (uint)*(ushort *)(uni_FF20_FF5F + (param_2 - 0xff20) * 2), local_34 == 0)))))) { if (param_4 < param_3 + 5) { local_c = 0xffffff97; } else { param_3[1] = "0123456789abcdef"[param_2 >> 0xc & 0xf]; param_3[2] = "0123456789abcdef"[param_2 >> 8 & 0xf]; param_3[3] = "0123456789abcdef"[param_2 >> 4 & 0xf]; param_3[4] = "0123456789abcdef"[param_2 & 0xf]; local_c = 5; } } else { param_3[1] = (char)(local_34 / 0x50) + '0'; param_3[2] = (char)(local_34 % 0x50) + '0'; local_c = 3; } } } else { local_c = 0xffffff9b; } return local_c; }
65,372
LEX::stmt_create_udf_function(DDL_options_st const&, enum_sp_aggregate_type, Lex_ident_sys_st const&, Item_result, st_mysql_const_lex_string const&)
eloqsql/sql/sql_lex.cc
bool LEX::stmt_create_udf_function(const DDL_options_st &options, enum_sp_aggregate_type agg_type, const Lex_ident_sys_st &name, Item_result return_type, const LEX_CSTRING &soname) { if (stmt_create_function_start(options)) return true; if (unlikely(is_native_function(thd, &name))) { my_error(ER_NATIVE_FCT_NAME_COLLISION, MYF(0), name.str); return true; } sql_command= SQLCOM_CREATE_FUNCTION; udf.name= name; udf.returns= return_type; udf.dl= soname.str; udf.type= agg_type == GROUP_AGGREGATE ? UDFTYPE_AGGREGATE : UDFTYPE_FUNCTION; stmt_create_routine_finalize(); return false; }
O0
cpp
LEX::stmt_create_udf_function(DDL_options_st const&, enum_sp_aggregate_type, Lex_ident_sys_st const&, Item_result, st_mysql_const_lex_string const&): pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) movq %rcx, -0x28(%rbp) movl %r8d, -0x2c(%rbp) movq %r9, -0x38(%rbp) movq -0x10(%rbp), %rdi movq %rdi, -0x40(%rbp) movq -0x18(%rbp), %rsi callq 0x9d1080 testb $0x1, %al jne 0x9c9e36 jmp 0x9c9e3f movb $0x1, -0x1(%rbp) jmp 0x9c9ed7 movq -0x40(%rbp), %rax movq 0xde8(%rax), %rdi movq -0x28(%rbp), %rsi callq 0x9af600 andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax je 0x9c9e7a movq -0x28(%rbp), %rax movq (%rax), %rdx movl $0x631, %edi # imm = 0x631 xorl %eax, %eax movl %eax, %esi movb $0x0, %al callq 0x131c1e0 movb $0x1, -0x1(%rbp) jmp 0x9c9ed7 movq -0x40(%rbp), %rdi movl $0x2a, 0x8(%rdi) movq -0x28(%rbp), %rax movq (%rax), %rcx movq %rcx, 0x1300(%rdi) movq 0x8(%rax), %rax movq %rax, 0x1308(%rdi) movl -0x2c(%rbp), %eax movl %eax, 0x1310(%rdi) movq -0x38(%rbp), %rax movq (%rax), %rax movq %rax, 0x1318(%rdi) movl -0x1c(%rbp), %edx movl $0x1, %eax movl $0x2, %ecx cmpl $0x2, %edx cmovel %ecx, %eax movl %eax, 0x1314(%rdi) callq 0x9cf340 movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al andb $0x1, %al addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_ZN3LEX24stmt_create_udf_functionERK14DDL_options_st22enum_sp_aggregate_typeRK16Lex_ident_sys_st11Item_resultRK25st_mysql_const_lex_string: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_1C], edx mov [rbp+var_28], rcx mov [rbp+var_2C], r8d mov [rbp+var_38], r9 mov rdi, [rbp+var_10]; this mov [rbp+var_40], rdi mov rsi, [rbp+var_18]; DDL_options_st * call _ZN3LEX26stmt_create_function_startERK14DDL_options_st; LEX::stmt_create_function_start(DDL_options_st const&) test al, 1 jnz short loc_9C9E36 jmp short loc_9C9E3F loc_9C9E36: mov [rbp+var_1], 1 jmp loc_9C9ED7 loc_9C9E3F: mov rax, [rbp+var_40] mov rdi, [rax+0DE8h] mov rsi, [rbp+var_28] call _Z18is_native_functionP3THDPK25st_mysql_const_lex_string; is_native_function(THD *,st_mysql_const_lex_string const*) and al, 1 movzx eax, al cmp eax, 0 jz short loc_9C9E7A mov rax, [rbp+var_28] mov rdx, [rax] mov edi, 631h xor eax, eax mov esi, eax mov al, 0 call my_error mov [rbp+var_1], 1 jmp short loc_9C9ED7 loc_9C9E7A: mov rdi, [rbp+var_40]; this mov dword ptr [rdi+8], 2Ah ; '*' mov rax, [rbp+var_28] mov rcx, [rax] mov [rdi+1300h], rcx mov rax, [rax+8] mov [rdi+1308h], rax mov eax, [rbp+var_2C] mov [rdi+1310h], eax mov rax, [rbp+var_38] mov rax, [rax] mov [rdi+1318h], rax mov edx, [rbp+var_1C] mov eax, 1 mov ecx, 2 cmp edx, 2 cmovz eax, ecx mov [rdi+1314h], eax call _ZN3LEX28stmt_create_routine_finalizeEv; LEX::stmt_create_routine_finalize(void) mov [rbp+var_1], 0 loc_9C9ED7: mov al, [rbp+var_1] and al, 1 add rsp, 40h pop rbp retn
char LEX::stmt_create_udf_function( long long a1, const DDL_options_st *a2, int a3, _QWORD *a4, int a5, _QWORD *a6) { int v6; // ecx int v7; // r8d int v8; // r9d int v9; // eax if ( (LEX::stmt_create_function_start((LEX *)a1, a2) & 1) != 0 ) return 1; if ( is_native_function(*(_QWORD *)(a1 + 3560), (long long)a4) ) { my_error(1585, 0, *a4, v6, v7, v8); return 1; } else { *(_DWORD *)(a1 + 8) = 42; *(_QWORD *)(a1 + 4864) = *a4; *(_QWORD *)(a1 + 4872) = a4[1]; *(_DWORD *)(a1 + 4880) = a5; *(_QWORD *)(a1 + 4888) = *a6; v9 = 1; if ( a3 == 2 ) v9 = 2; *(_DWORD *)(a1 + 4884) = v9; LEX::stmt_create_routine_finalize((LEX *)a1); return 0; } }
is_clear_all: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x20],RAX MOV qword ptr [RBP + -0x18],0x0 LAB_009c9e18: CMP qword ptr [RBP + -0x18],0x1 JNC 0x009c9e44 MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x18] CMP qword ptr [RAX + RCX*0x8],0x0 JZ 0x009c9e34 MOV byte ptr [RBP + -0x1],0x0 JMP 0x009c9e48 LAB_009c9e34: JMP 0x009c9e36 LAB_009c9e36: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x1 MOV qword ptr [RBP + -0x18],RAX JMP 0x009c9e18 LAB_009c9e44: MOV byte ptr [RBP + -0x1],0x1 LAB_009c9e48: MOV AL,byte ptr [RBP + -0x1] AND AL,0x1 POP RBP RET
/* Bitmap<64u>::is_clear_all() const */ int1 __thiscall Bitmap<64u>::is_clear_all(Bitmap<64u> *this) { bool bVar1; bVar1 = false; while( true ) { if (bVar1) { return 1; } if (*(long *)this != 0) break; bVar1 = true; } return 0; }
65,373
my_parse_charset_xml
eloqsql/strings/ctype.c
my_bool my_parse_charset_xml(MY_CHARSET_LOADER *loader, const char *buf, size_t len) { MY_XML_PARSER p; struct my_cs_file_info info; my_bool rc; my_charset_file_init(&info); my_xml_parser_create(&p); my_xml_set_enter_handler(&p,cs_enter); my_xml_set_value_handler(&p,cs_value); my_xml_set_leave_handler(&p,cs_leave); info.loader= loader; my_xml_set_user_data(&p, (void *) &info); rc= (my_xml_parse(&p,buf,len) == MY_XML_OK) ? FALSE : TRUE; my_xml_parser_free(&p); my_charset_file_free(&info); if (rc != MY_XML_OK) { const char *errstr= my_xml_error_string(&p); if (sizeof(loader->error) > 32 + strlen(errstr)) { /* We cannot use my_snprintf() here. See previous comment. */ sprintf(loader->error, "at line %d pos %d: %s", my_xml_error_lineno(&p)+1, (int) my_xml_error_pos(&p), my_xml_error_string(&p)); } } return rc; }
O3
c
my_parse_charset_xml: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x928, %rsp # imm = 0x928 movq %rdx, %r14 movq %rsi, %r12 movq %rdi, %rbx movq %fs:0x28, %rax movq %rax, -0x30(%rbp) leaq -0x260(%rbp), %r15 movl $0xc8, %edx movq %r15, %rdi xorl %esi, %esi callq 0x292c0 xorps %xmm0, %xmm0 movups %xmm0, -0x58(%r15) movups %xmm0, -0x4f(%r15) leaq -0x190(%rbp), %r13 movq %r13, %rdi callq 0xd7e40 leaq 0x10e(%rip), %rsi # 0xd0d21 movq %r13, %rdi callq 0xd7eb5 leaq 0x1ec(%rip), %rsi # 0xd0e0e movq %r13, %rdi callq 0xd7ea8 leaq 0x9e5(%rip), %rsi # 0xd1616 movq %r13, %rdi callq 0xd7ec2 movq %rbx, -0x948(%rbp) movq %rbx, 0xc8(%r15) leaq -0x940(%rbp), %rbx movq %r13, %rdi movq %rbx, %rsi callq 0xd7ecf movq %r13, %rdi movq %r12, %rsi movq %r14, %rdx callq 0xd73a0 movl %eax, %r14d movq %r13, %rdi callq 0xd7e7c movq -0x58(%r15), %rdi movq 0x7a8(%rbx), %rax callq *0x98(%rax) testl %r14d, %r14d je 0xd0cf5 leaq -0x190(%rbp), %rdi callq 0xd7edc movq %rax, %rdi callq 0x29350 addq $0x20, %rax cmpq $0x7f, %rax ja 0xd0cf5 leaq -0x190(%rbp), %rbx movq %rbx, %rdi callq 0xd7f19 leal 0x1(%rax), %r15d movq %rbx, %rdi callq 0xd7ee6 movq %rax, %r12 movq %rbx, %rdi callq 0xd7edc movq %rax, (%rsp) leaq 0xe419(%rip), %rcx # 0xdf0f0 movl $0x80, %edx movq -0x948(%rbp), %rdi movl $0x1, %esi movl %r15d, %r8d movl %r12d, %r9d xorl %eax, %eax callq 0x29970 testl %r14d, %r14d setne %al movq %fs:0x28, %rcx cmpq -0x30(%rbp), %rcx jne 0xd0d1c addq $0x928, %rsp # imm = 0x928 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0x29270
my_parse_charset_xml: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 928h mov r14, rdx mov r12, rsi mov rbx, rdi mov rax, fs:28h mov [rbp+var_30], rax lea r15, [rbp+var_260] mov edx, 0C8h mov rdi, r15 xor esi, esi call _memset xorps xmm0, xmm0 movups xmmword ptr [r15-58h], xmm0 movups xmmword ptr [r15-4Fh], xmm0 lea r13, [rbp+var_190] mov rdi, r13 call my_xml_parser_create lea rsi, cs_enter mov rdi, r13 call my_xml_set_enter_handler lea rsi, cs_value mov rdi, r13 call my_xml_set_value_handler lea rsi, cs_leave mov rdi, r13 call my_xml_set_leave_handler mov [rbp+var_948], rbx mov [r15+0C8h], rbx lea rbx, [rbp+var_940] mov rdi, r13 mov rsi, rbx call my_xml_set_user_data mov rdi, r13 mov rsi, r12 mov rdx, r14 call my_xml_parse mov r14d, eax mov rdi, r13 call my_xml_parser_free mov rdi, [r15-58h] mov rax, [rbx+7A8h] call qword ptr [rax+98h] test r14d, r14d jz short loc_D0CF5 lea rdi, [rbp+var_190] call my_xml_error_string mov rdi, rax call _strlen add rax, 20h ; ' ' cmp rax, 7Fh ja short loc_D0CF5 lea rbx, [rbp+var_190] mov rdi, rbx call my_xml_error_lineno lea r15d, [rax+1] mov rdi, rbx call my_xml_error_pos mov r12, rax mov rdi, rbx call my_xml_error_string mov [rsp+950h+var_950], rax lea rcx, aAtLineDPosDS; "at line %d pos %d: %s" mov edx, 80h mov rdi, [rbp+var_948] mov esi, 1 mov r8d, r15d mov r9d, r12d xor eax, eax call ___sprintf_chk loc_D0CF5: test r14d, r14d setnz al mov rcx, fs:28h cmp rcx, [rbp+var_30] jnz short loc_D0D1C add rsp, 928h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_D0D1C: call ___stack_chk_fail
bool my_parse_charset_xml(long long a1, long long a2, long long a3) { int v4; // r14d long long v5; // rax int v6; // r15d int v7; // r12d const char *v8; // rax _QWORD v10[220]; // [rsp+10h] [rbp-940h] BYREF _BYTE v11[200]; // [rsp+6F0h] [rbp-260h] BYREF long long v12; // [rsp+7B8h] [rbp-198h] _BYTE v13[352]; // [rsp+7C0h] [rbp-190h] BYREF unsigned long long v14; // [rsp+920h] [rbp-30h] v14 = __readfsqword(0x28u); memset(v11, 0LL, sizeof(v11)); memset(&v10[209], 0, 25); my_xml_parser_create(v13); my_xml_set_enter_handler(v13, cs_enter); my_xml_set_value_handler(v13, cs_value); my_xml_set_leave_handler(v13, cs_leave); v12 = a1; my_xml_set_user_data(v13, v10); v4 = my_xml_parse(v13, a2, a3); my_xml_parser_free(v13); (*(void ( **)(_QWORD))(v12 + 152))(v10[209]); if ( v4 ) { v5 = my_xml_error_string(v13); if ( (unsigned long long)(strlen(v5) + 32) <= 0x7F ) { v6 = my_xml_error_lineno(v13) + 1; v7 = my_xml_error_pos(v13); v8 = (const char *)my_xml_error_string(v13); __sprintf_chk(a1, 1LL, 128LL, "at line %d pos %d: %s", v6, v7, v8); } } return v4 != 0; }
my_parse_charset_xml: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x928 MOV R14,RDX MOV R12,RSI MOV RBX,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX LEA R15,[RBP + -0x260] MOV EDX,0xc8 MOV RDI,R15 XOR ESI,ESI CALL 0x001292c0 XORPS XMM0,XMM0 MOVUPS xmmword ptr [R15 + -0x58],XMM0 MOVUPS xmmword ptr [R15 + -0x4f],XMM0 LEA R13,[RBP + -0x190] MOV RDI,R13 CALL 0x001d7e40 LEA RSI,[0x1d0d21] MOV RDI,R13 CALL 0x001d7eb5 LEA RSI,[0x1d0e0e] MOV RDI,R13 CALL 0x001d7ea8 LEA RSI,[0x1d1616] MOV RDI,R13 CALL 0x001d7ec2 MOV qword ptr [RBP + -0x948],RBX MOV qword ptr [R15 + 0xc8],RBX LEA RBX,[RBP + -0x940] MOV RDI,R13 MOV RSI,RBX CALL 0x001d7ecf MOV RDI,R13 MOV RSI,R12 MOV RDX,R14 CALL 0x001d73a0 MOV R14D,EAX MOV RDI,R13 CALL 0x001d7e7c MOV RDI,qword ptr [R15 + -0x58] MOV RAX,qword ptr [RBX + 0x7a8] CALL qword ptr [RAX + 0x98] TEST R14D,R14D JZ 0x001d0cf5 LEA RDI,[RBP + -0x190] CALL 0x001d7edc MOV RDI,RAX CALL 0x00129350 ADD RAX,0x20 CMP RAX,0x7f JA 0x001d0cf5 LEA RBX,[RBP + -0x190] MOV RDI,RBX CALL 0x001d7f19 LEA R15D,[RAX + 0x1] MOV RDI,RBX CALL 0x001d7ee6 MOV R12,RAX MOV RDI,RBX CALL 0x001d7edc MOV qword ptr [RSP],RAX LEA RCX,[0x1df0f0] MOV EDX,0x80 MOV RDI,qword ptr [RBP + -0x948] MOV ESI,0x1 MOV R8D,R15D MOV R9D,R12D XOR EAX,EAX CALL 0x00129970 LAB_001d0cf5: TEST R14D,R14D SETNZ AL MOV RCX,qword ptr FS:[0x28] CMP RCX,qword ptr [RBP + -0x30] JNZ 0x001d0d1c ADD RSP,0x928 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001d0d1c: CALL 0x00129270
bool my_parse_charset_xml(long param_1,int8 param_2,int8 param_3) { int iVar1; int iVar2; int4 uVar3; char *__s; size_t sVar4; int8 uVar5; long in_FS_OFFSET; int1 local_948 [1672]; int8 local_2c0; int1 uStack_2b8; int7 uStack_2b7; int1 uStack_2b0; int8 uStack_2af; int1 local_268 [200]; long local_1a0; int1 local_198 [352]; long local_38; local_38 = *(long *)(in_FS_OFFSET + 0x28); memset(local_268,0,200); local_2c0 = 0; uStack_2b8 = 0; uStack_2b7 = 0; uStack_2b0 = 0; uStack_2af = 0; my_xml_parser_create(local_198); my_xml_set_enter_handler(local_198,cs_enter); my_xml_set_value_handler(local_198,cs_value); my_xml_set_leave_handler(local_198,cs_leave); local_1a0 = param_1; my_xml_set_user_data(local_198,local_948); iVar1 = my_xml_parse(local_198,param_2,param_3); my_xml_parser_free(local_198); (**(code **)(local_1a0 + 0x98))(local_2c0); if (iVar1 != 0) { __s = (char *)my_xml_error_string(local_198); sVar4 = strlen(__s); if (sVar4 + 0x20 < 0x80) { iVar2 = my_xml_error_lineno(local_198); uVar3 = my_xml_error_pos(local_198); uVar5 = my_xml_error_string(local_198); __sprintf_chk(param_1,1,0x80,"at line %d pos %d: %s",iVar2 + 1,uVar3,uVar5); } } if (*(long *)(in_FS_OFFSET + 0x28) == local_38) { return iVar1 != 0; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
65,374
minja::ExpressionNode::do_render(std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, std::shared_ptr<minja::Context> const&) const
monkey531[P]llama/common/minja.hpp
void do_render(std::ostringstream & out, const std::shared_ptr<Context> & context) const override { if (!expr) throw std::runtime_error("ExpressionNode.expr is null"); auto result = expr->evaluate(context); if (result.is_string()) { out << result.get<std::string>(); } else if (result.is_boolean()) { out << (result.get<bool>() ? "True" : "False"); } else if (!result.is_null()) { out << result.dump(); } }
O0
cpp
minja::ExpressionNode::do_render(std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, std::shared_ptr<minja::Context> const&) const: subq $0xe8, %rsp movq %rdi, 0xe0(%rsp) movq %rsi, 0xd8(%rsp) movq %rdx, 0xd0(%rsp) movq 0xe0(%rsp), %rdi movq %rdi, 0x28(%rsp) addq $0x20, %rdi callq 0x109d40 testb $0x1, %al jne 0x1502c7 movl $0x10, %edi callq 0x59660 movq %rax, %rdi movq %rdi, %rax movq %rax, 0x20(%rsp) leaq 0xbf1f5(%rip), %rsi # 0x20f47a callq 0x59450 jmp 0x15028c movq 0x20(%rsp), %rdi movq 0x14fd18(%rip), %rsi # 0x29ffb0 movq 0x14fcd9(%rip), %rdx # 0x29ff78 callq 0x59ac0 movq 0x20(%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0xc8(%rsp) movl %eax, 0xc4(%rsp) callq 0x59f20 jmp 0x150456 movq 0x28(%rsp), %rdi addq $0x20, %rdi callq 0x10fe70 movq %rax, %rsi movq 0xd0(%rsp), %rdx leaq 0x70(%rsp), %rdi callq 0x10fe80 leaq 0x70(%rsp), %rdi callq 0x111be0 testb $0x1, %al jne 0x1502fa jmp 0x150374 movq 0xd8(%rsp), %rax movq %rax, 0x18(%rsp) leaq 0x50(%rsp), %rdi leaq 0x70(%rsp), %rsi callq 0x112260 jmp 0x150318 movq 0x18(%rsp), %rdi leaq 0x50(%rsp), %rsi callq 0x59520 jmp 0x150329 leaq 0x50(%rsp), %rdi callq 0x5a4d8 jmp 0x15043a movq %rax, %rcx movl %edx, %eax movq %rcx, 0xc8(%rsp) movl %eax, 0xc4(%rsp) jmp 0x15044c movq %rax, %rcx movl %edx, %eax movq %rcx, 0xc8(%rsp) movl %eax, 0xc4(%rsp) leaq 0x50(%rsp), %rdi callq 0x5a4d8 jmp 0x15044c leaq 0x70(%rsp), %rdi callq 0x111bc0 testb $0x1, %al jne 0x150384 jmp 0x1503c8 movq 0xd8(%rsp), %rax movq %rax, 0x8(%rsp) leaq 0x70(%rsp), %rdi callq 0x112130 movb %al, 0x17(%rsp) jmp 0x1503a1 movq 0x8(%rsp), %rdi movb 0x17(%rsp), %cl leaq 0xbe0e2(%rip), %rax # 0x20e493 leaq 0xbe0e0(%rip), %rsi # 0x20e498 testb $0x1, %cl cmovneq %rax, %rsi callq 0x599f0 jmp 0x1503c6 jmp 0x150438 leaq 0x70(%rsp), %rdi callq 0x1115c0 testb $0x1, %al jne 0x150436 movq 0xd8(%rsp), %rax movq %rax, (%rsp) leaq 0x30(%rsp), %rdi leaq 0x70(%rsp), %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0x110850 jmp 0x1503fa movq (%rsp), %rdi leaq 0x30(%rsp), %rsi callq 0x59520 jmp 0x15040a leaq 0x30(%rsp), %rdi callq 0x5a4d8 jmp 0x150436 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xc8(%rsp) movl %eax, 0xc4(%rsp) leaq 0x30(%rsp), %rdi callq 0x5a4d8 jmp 0x15044c jmp 0x150438 jmp 0x15043a leaq 0x70(%rsp), %rdi callq 0x110320 addq $0xe8, %rsp retq leaq 0x70(%rsp), %rdi callq 0x110320 movq 0xc8(%rsp), %rdi callq 0x59b80 nopw %cs:(%rax,%rax) nopl (%rax)
_ZNK5minja14ExpressionNode9do_renderERNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEERKSt10shared_ptrINS_7ContextEE: sub rsp, 0E8h mov [rsp+0E8h+var_8], rdi mov qword ptr [rsp+0E8h+var_10], rsi mov [rsp+0E8h+var_18], rdx mov rdi, [rsp+0E8h+var_8] mov [rsp+0E8h+var_C0], rdi; __int64 add rdi, 20h ; ' ' call _ZNKSt12__shared_ptrIN5minja10ExpressionELN9__gnu_cxx12_Lock_policyE2EEcvbEv; std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator bool(void) test al, 1 jnz short loc_1502C7 mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rdi, rax; this mov rax, rdi mov [rsp+0E8h+var_C8], rax lea rsi, aExpressionnode; "ExpressionNode.expr is null" call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) jmp short $+2 loc_15028C: mov rdi, [rsp+0E8h+var_C8]; void * mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) call ___cxa_throw mov rdi, [rsp+0E8h+var_C8]; void * mov rcx, rax mov eax, edx mov [rsp+0E8h+var_20], rcx mov [rsp+0E8h+var_24], eax call ___cxa_free_exception jmp loc_150456 loc_1502C7: mov rdi, [rsp+0E8h+var_C0] add rdi, 20h ; ' ' call _ZNKSt19__shared_ptr_accessIN5minja10ExpressionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<minja::Expression,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void) mov rsi, rax mov rdx, [rsp+0E8h+var_18] lea rdi, [rsp+0E8h+var_78] call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&) lea rdi, [rsp+0E8h+var_78]; this call _ZNK5minja5Value9is_stringEv; minja::Value::is_string(void) test al, 1 jnz short loc_1502FA jmp short loc_150374 loc_1502FA: mov rax, qword ptr [rsp+0E8h+var_10] mov qword ptr [rsp+0E8h+var_D0], rax; int lea rdi, [rsp+0E8h+var_98]; int lea rsi, [rsp+0E8h+var_78]; int call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void) jmp short $+2 loc_150318: mov rdi, qword ptr [rsp+0E8h+var_D0] lea rsi, [rsp+0E8h+var_98] call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&) jmp short $+2 loc_150329: lea rdi, [rsp+0E8h+var_98]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp loc_15043A mov rcx, rax mov eax, edx mov [rsp+0E8h+var_20], rcx mov [rsp+0E8h+var_24], eax jmp loc_15044C mov rcx, rax mov eax, edx mov [rsp+0E8h+var_20], rcx mov [rsp+0E8h+var_24], eax lea rdi, [rsp+0E8h+var_98]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp loc_15044C loc_150374: lea rdi, [rsp+0E8h+var_78]; this call _ZNK5minja5Value10is_booleanEv; minja::Value::is_boolean(void) test al, 1 jnz short loc_150384 jmp short loc_1503C8 loc_150384: mov rax, qword ptr [rsp+0E8h+var_10] mov [rsp+0E8h+var_E0], rax lea rdi, [rsp+0E8h+var_78] call _ZNK5minja5Value3getIbEET_v; minja::Value::get<bool>(void) mov [rsp+0E8h+var_D1], al jmp short $+2 loc_1503A1: mov rdi, [rsp+0E8h+var_E0] mov cl, [rsp+0E8h+var_D1] lea rax, aTrue_0; "True" lea rsi, aFalse; "False" test cl, 1 cmovnz rsi, rax call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) jmp short $+2 loc_1503C6: jmp short loc_150438 loc_1503C8: lea rdi, [rsp+0E8h+var_78]; this call _ZNK5minja5Value7is_nullEv; minja::Value::is_null(void) test al, 1 jnz short loc_150436 mov rax, qword ptr [rsp+0E8h+var_10] mov [rsp+0E8h+var_E8], rax lea rdi, [rsp+0E8h+var_B8] lea rsi, [rsp+0E8h+var_78] mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) jmp short $+2 loc_1503FA: mov rdi, [rsp+0E8h+var_E8] lea rsi, [rsp+0E8h+var_B8] call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&) jmp short $+2 loc_15040A: lea rdi, [rsp+0E8h+var_B8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_150436 mov rcx, rax mov eax, edx mov [rsp+0E8h+var_20], rcx mov [rsp+0E8h+var_24], eax lea rdi, [rsp+0E8h+var_B8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_15044C loc_150436: jmp short $+2 loc_150438: jmp short $+2 loc_15043A: lea rdi, [rsp+0E8h+var_78]; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() add rsp, 0E8h retn loc_15044C: lea rdi, [rsp+0E8h+var_78]; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() loc_150456: mov rdi, [rsp+0E8h+var_20] call __Unwind_Resume
void minja::ExpressionNode::do_render(long long a1, long long a2, long long a3) { void (***v3)(void); // rax long long v4; // rdi const char *v5; // rsi long long v6; // [rsp+0h] [rbp-E8h] int v7[2]; // [rsp+18h] [rbp-D0h] std::runtime_error *exception; // [rsp+20h] [rbp-C8h] _BYTE v9[32]; // [rsp+30h] [rbp-B8h] BYREF int v10[8]; // [rsp+50h] [rbp-98h] BYREF int v11[21]; // [rsp+70h] [rbp-78h] BYREF long long v12; // [rsp+D0h] [rbp-18h] int v13[2]; // [rsp+D8h] [rbp-10h] long long v14; // [rsp+E0h] [rbp-8h] v14 = a1; *(_QWORD *)v13 = a2; v12 = a3; if ( !std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator bool((_QWORD *)(a1 + 32)) ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "ExpressionNode.expr is null"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } v3 = (void (***)(void))std::__shared_ptr_access<minja::Expression,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(a1 + 32); minja::Expression::evaluate((long long)v11, v3); if ( minja::Value::is_string((minja::Value *)v11) ) { *(_QWORD *)v7 = *(_QWORD *)v13; minja::Value::get<std::string>(v10, (minja::Value *)v11); std::operator<<<char>(*(_QWORD *)v7, v10); std::string::~string(v10); } else if ( (minja::Value::is_boolean((minja::Value *)v11) & 1) != 0 ) { v4 = *(_QWORD *)v13; v5 = "False"; if ( (minja::Value::get<bool>((minja::Value *)v11) & 1) != 0 ) v5 = "True"; std::operator<<<std::char_traits<char>>(v4, v5); } else if ( (minja::Value::is_null((minja::Value *)v11) & 1) == 0 ) { v6 = *(_QWORD *)v13; minja::Value::dump[abi:cxx11]((long long)v9, (long long)v11, 0xFFFFFFFF, 0); std::operator<<<char>(v6, v9); std::string::~string(v9); } minja::Value::~Value((minja::Value *)v11); }
65,375
minja::ExpressionNode::do_render(std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, std::shared_ptr<minja::Context> const&) const
monkey531[P]llama/common/minja.hpp
void do_render(std::ostringstream & out, const std::shared_ptr<Context> & context) const override { if (!expr) throw std::runtime_error("ExpressionNode.expr is null"); auto result = expr->evaluate(context); if (result.is_string()) { out << result.get<std::string>(); } else if (result.is_boolean()) { out << (result.get<bool>() ? "True" : "False"); } else if (!result.is_null()) { out << result.dump(); } }
O3
cpp
minja::ExpressionNode::do_render(std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char>>&, std::shared_ptr<minja::Context> const&) const: pushq %r14 pushq %rbx subq $0x78, %rsp movq %rsi, %rbx movq 0x20(%rdi), %rsi testq %rsi, %rsi je 0x9d0d9 leaq 0x28(%rsp), %r14 movq %r14, %rdi callq 0x8517e movzbl 0x40(%r14), %eax cmpl $0x4, %eax je 0x9cfca cmpl $0x3, %eax jne 0x9cff9 leaq 0x8(%rsp), %rdi leaq 0x28(%rsp), %rsi callq 0x865e0 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx movq %rbx, %rdi callq 0x1a9a0 jmp 0x9d03d leaq 0x28(%rsp), %rdi callq 0x864d0 leaq 0x51ae1(%rip), %rcx # 0xeeabc leaq 0x51adf(%rip), %rsi # 0xeeac1 testb %al, %al cmovneq %rcx, %rsi movzbl %al, %edx xorq $0x5, %rdx movq %rbx, %rdi callq 0x1a9a0 jmp 0x9d058 testb %al, %al jne 0x9d015 cmpq $0x0, 0x48(%rsp) jne 0x9d015 cmpq $0x0, 0x38(%rsp) jne 0x9d015 cmpq $0x0, 0x58(%rsp) je 0x9d058 leaq 0x8(%rsp), %rdi leaq 0x28(%rsp), %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0x85792 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx movq %rbx, %rdi callq 0x1a9a0 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x9d058 movq 0x18(%rsp), %rsi incq %rsi callq 0x1a890 leaq 0x68(%rsp), %rbx movq %rbx, %rdi xorl %esi, %esi callq 0x579d6 movq %rbx, %rdi callq 0x5cec4 movq -0x8(%rbx), %rdi testq %rdi, %rdi je 0x9d07d callq 0x6c8e8 movq 0x50(%rsp), %rdi testq %rdi, %rdi je 0x9d08c callq 0x6c8e8 movq 0x40(%rsp), %rdi testq %rdi, %rdi je 0x9d09b callq 0x6c8e8 movq 0x30(%rsp), %rdi testq %rdi, %rdi je 0x9d0d1 movq 0x8ced4(%rip), %rax # 0x129f80 cmpb $0x0, (%rax) je 0x9d0bc movl 0xc(%rdi), %eax leal -0x1(%rax), %ecx movl %ecx, 0xc(%rdi) jmp 0x9d0c6 movl $0xffffffff, %eax # imm = 0xFFFFFFFF lock xaddl %eax, 0xc(%rdi) cmpl $0x1, %eax jne 0x9d0d1 movq (%rdi), %rax callq *0x18(%rax) addq $0x78, %rsp popq %rbx popq %r14 retq movl $0x10, %edi callq 0x1a430 movq %rax, %r14 leaq 0x529b6(%rip), %rsi # 0xefaa3 movq %rax, %rdi callq 0x1a310 movq 0x8ceec(%rip), %rsi # 0x129fe8 movq 0x8ce55(%rip), %rdx # 0x129f58 movq %r14, %rdi callq 0x1aea0 jmp 0x9d10f jmp 0x9d13e movq %rax, %rbx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x9d141 movq 0x18(%rsp), %rsi incq %rsi callq 0x1a890 jmp 0x9d141 jmp 0x9d13e movq %rax, %rbx movq %r14, %rdi callq 0x1a640 jmp 0x9d14b movq %rax, %rbx leaq 0x28(%rsp), %rdi callq 0x85470 movq %rbx, %rdi callq 0x1af20 nop
_ZNK5minja14ExpressionNode9do_renderERNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEERKSt10shared_ptrINS_7ContextEE: push r14 push rbx sub rsp, 78h mov rbx, rsi mov rsi, [rdi+20h] test rsi, rsi jz loc_9D0D9 lea r14, [rsp+88h+var_60] mov rdi, r14 call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&) movzx eax, byte ptr [r14+40h] cmp eax, 4 jz short loc_9CFCA cmp eax, 3 jnz short loc_9CFF9 lea rdi, [rsp+88h+var_80] lea rsi, [rsp+88h+var_60] call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void) mov rsi, [rsp+88h+var_80] mov rdx, [rsp+88h+var_78] mov rdi, rbx call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) jmp short loc_9D03D loc_9CFCA: lea rdi, [rsp+88h+var_60] call _ZNK5minja5Value3getIbEET_v; minja::Value::get<bool>(void) lea rcx, aTrue_0; "True" lea rsi, aFalse; "False" test al, al cmovnz rsi, rcx movzx edx, al xor rdx, 5 mov rdi, rbx call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) jmp short loc_9D058 loc_9CFF9: test al, al jnz short loc_9D015 cmp [rsp+88h+var_40], 0 jnz short loc_9D015 cmp [rsp+88h+var_50], 0 jnz short loc_9D015 cmp [rsp+88h+var_30], 0 jz short loc_9D058 loc_9D015: lea rdi, [rsp+88h+var_80] lea rsi, [rsp+88h+var_60] mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) mov rsi, [rsp+88h+var_80] mov rdx, [rsp+88h+var_78] mov rdi, rbx call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) loc_9D03D: lea rax, [rsp+88h+var_70] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_9D058 mov rsi, [rsp+88h+var_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_9D058: lea rbx, [rsp+88h+var_20] mov rdi, rbx xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rdi, [rbx-8] test rdi, rdi jz short loc_9D07D call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_9D07D: mov rdi, [rsp+88h+var_38] test rdi, rdi jz short loc_9D08C call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_9D08C: mov rdi, [rsp+88h+var_48] test rdi, rdi jz short loc_9D09B call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_9D09B: mov rdi, [rsp+88h+var_58] test rdi, rdi jz short loc_9D0D1 mov rax, cs:__libc_single_threaded_ptr cmp byte ptr [rax], 0 jz short loc_9D0BC mov eax, [rdi+0Ch] lea ecx, [rax-1] mov [rdi+0Ch], ecx jmp short loc_9D0C6 loc_9D0BC: mov eax, 0FFFFFFFFh lock xadd [rdi+0Ch], eax loc_9D0C6: cmp eax, 1 jnz short loc_9D0D1 mov rax, [rdi] call qword ptr [rax+18h] loc_9D0D1: add rsp, 78h pop rbx pop r14 retn loc_9D0D9: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aExpressionnode; "ExpressionNode.expr is null" mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, r14; void * call ___cxa_throw jmp short loc_9D10F jmp short loc_9D13E loc_9D10F: mov rbx, rax lea rax, [rsp+88h+var_70] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_9D141 mov rsi, [rsp+88h+var_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_9D141 jmp short loc_9D13E mov rbx, rax mov rdi, r14; void * call ___cxa_free_exception jmp short loc_9D14B loc_9D13E: mov rbx, rax loc_9D141: lea rdi, [rsp+88h+var_60]; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() loc_9D14B: mov rdi, rbx call __Unwind_Resume
long long minja::ExpressionNode::do_render(long long a1, long long a2) { void (***v3)(void); // rsi unsigned __int8 v4; // al const char *v5; // rsi long long result; // rax long long v7; // rdi std::runtime_error *exception; // r14 long long *v9; // [rsp+8h] [rbp-80h] BYREF long long v10; // [rsp+10h] [rbp-78h] long long v11; // [rsp+18h] [rbp-70h] BYREF long long v12; // [rsp+28h] [rbp-60h] BYREF long long v13; // [rsp+30h] [rbp-58h] long long v14; // [rsp+38h] [rbp-50h] volatile signed __int32 *v15; // [rsp+40h] [rbp-48h] long long v16; // [rsp+48h] [rbp-40h] volatile signed __int32 *v17; // [rsp+50h] [rbp-38h] long long v18; // [rsp+58h] [rbp-30h] volatile signed __int32 *v19; // [rsp+60h] [rbp-28h] char v20[32]; // [rsp+68h] [rbp-20h] BYREF v3 = *(void (****)(void))(a1 + 32); if ( !v3 ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "ExpressionNode.expr is null"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } minja::Expression::evaluate((long long)&v12, v3); if ( v20[0] == 4 ) { v4 = minja::Value::get<bool>(&v12); v5 = "False"; if ( v4 ) v5 = "True"; std::__ostream_insert<char,std::char_traits<char>>(a2, v5, v4 ^ 5LL); } else { if ( v20[0] == 3 ) { minja::Value::get<std::string>((long long)&v9, &v12); std::__ostream_insert<char,std::char_traits<char>>(a2, v9, v10); } else { if ( !v20[0] && !v16 && !v14 && !v18 ) goto LABEL_15; minja::Value::dump[abi:cxx11]((long long)&v9, (long long)&v12, 0xFFFFFFFF, 0); std::__ostream_insert<char,std::char_traits<char>>(a2, v9, v10); } if ( v9 != &v11 ) operator delete(v9, v11 + 1); } LABEL_15: nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v20); result = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v20); if ( v19 ) result = std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v19); if ( v17 ) result = std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v17); if ( v15 ) result = std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v15); v7 = v13; if ( v13 ) { if ( _libc_single_threaded ) { result = *(unsigned int *)(v13 + 12); *(_DWORD *)(v13 + 12) = result - 1; } else { result = (unsigned int)_InterlockedExchangeAdd((volatile signed __int32 *)(v13 + 12), 0xFFFFFFFF); } if ( (_DWORD)result == 1 ) return (*(long long ( **)(long long, _QWORD))(*(_QWORD *)v7 + 24LL))(v7, 0LL); } return result; }
do_render: PUSH R14 PUSH RBX SUB RSP,0x78 MOV RBX,RSI MOV RSI,qword ptr [RDI + 0x20] TEST RSI,RSI JZ 0x0019d0d9 LEA R14,[RSP + 0x28] MOV RDI,R14 CALL 0x0018517e MOVZX EAX,byte ptr [R14 + 0x40] CMP EAX,0x4 JZ 0x0019cfca CMP EAX,0x3 JNZ 0x0019cff9 LAB_0019cfa7: LEA RDI,[RSP + 0x8] LEA RSI,[RSP + 0x28] CALL 0x001865e0 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] LAB_0019cfc0: MOV RDI,RBX CALL 0x0011a9a0 JMP 0x0019d03d LAB_0019cfca: LEA RDI,[RSP + 0x28] CALL 0x001864d0 LEA RCX,[0x1eeabc] LEA RSI,[0x1eeac1] TEST AL,AL CMOVNZ RSI,RCX MOVZX EDX,AL XOR RDX,0x5 MOV RDI,RBX CALL 0x0011a9a0 JMP 0x0019d058 LAB_0019cff9: TEST AL,AL JNZ 0x0019d015 CMP qword ptr [RSP + 0x48],0x0 JNZ 0x0019d015 CMP qword ptr [RSP + 0x38],0x0 JNZ 0x0019d015 CMP qword ptr [RSP + 0x58],0x0 JZ 0x0019d058 LAB_0019d015: LEA RDI,[RSP + 0x8] LEA RSI,[RSP + 0x28] MOV EDX,0xffffffff XOR ECX,ECX CALL 0x00185792 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] LAB_0019d035: MOV RDI,RBX CALL 0x0011a9a0 LAB_0019d03d: LEA RAX,[RSP + 0x18] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0019d058 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0011a890 LAB_0019d058: LEA RBX,[RSP + 0x68] MOV RDI,RBX XOR ESI,ESI CALL 0x001579d6 MOV RDI,RBX CALL 0x0015cec4 MOV RDI,qword ptr [RBX + -0x8] TEST RDI,RDI JZ 0x0019d07d CALL 0x0016c8e8 LAB_0019d07d: MOV RDI,qword ptr [RSP + 0x50] TEST RDI,RDI JZ 0x0019d08c CALL 0x0016c8e8 LAB_0019d08c: MOV RDI,qword ptr [RSP + 0x40] TEST RDI,RDI JZ 0x0019d09b CALL 0x0016c8e8 LAB_0019d09b: MOV RDI,qword ptr [RSP + 0x30] TEST RDI,RDI JZ 0x0019d0d1 MOV RAX,qword ptr [0x00229f80] CMP byte ptr [RAX],0x0 JZ 0x0019d0bc MOV EAX,dword ptr [RDI + 0xc] LEA ECX,[RAX + -0x1] MOV dword ptr [RDI + 0xc],ECX JMP 0x0019d0c6 LAB_0019d0bc: MOV EAX,0xffffffff XADD.LOCK dword ptr [RDI + 0xc],EAX LAB_0019d0c6: CMP EAX,0x1 JNZ 0x0019d0d1 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x18] LAB_0019d0d1: ADD RSP,0x78 POP RBX POP R14 RET LAB_0019d0d9: MOV EDI,0x10 CALL 0x0011a430 MOV R14,RAX LAB_0019d0e6: LEA RSI,[0x1efaa3] MOV RDI,RAX CALL 0x0011a310 LAB_0019d0f5: MOV RSI,qword ptr [0x00229fe8] MOV RDX,qword ptr [0x00229f58] MOV RDI,R14 CALL 0x0011aea0
/* minja::ExpressionNode::do_render(std::__cxx11::ostringstream&, std::shared_ptr<minja::Context> const&) const */ void minja::ExpressionNode::do_render(ostringstream *param_1,shared_ptr *param_2) { int *piVar1; bool bVar2; int iVar3; runtime_error *this; char *pcVar4; long *local_80; long local_78; long local_70 [2]; Expression local_60 [8]; long *local_58; long local_50; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_48; long local_40; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_38; long local_30; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_28; data local_20 [16]; if (*(shared_ptr **)(param_1 + 0x20) == (shared_ptr *)0x0) { this = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0019d0e6 to 0019d0f4 has its CatchHandler @ 0019d131 */ std::runtime_error::runtime_error(this,"ExpressionNode.expr is null"); /* WARNING: Subroutine does not return */ __cxa_throw(this,PTR_typeinfo_00229fe8,PTR__runtime_error_00229f58); } Expression::evaluate(local_60,*(shared_ptr **)(param_1 + 0x20)); if (local_20[0] == (data)0x4) { /* try { // try from 0019cfca to 0019cff6 has its CatchHandler @ 0019d13e */ bVar2 = Value::get<bool>((Value *)local_60); pcVar4 = "False"; if (bVar2) { pcVar4 = "True"; } std::__ostream_insert<char,std::char_traits<char>>((ostream *)param_2,pcVar4,(ulong)bVar2 ^ 5); } else { if (local_20[0] == (data)0x3) { /* try { // try from 0019cfa7 to 0019cfb5 has its CatchHandler @ 0019d12f */ Value::get<std::__cxx11::string>(); /* try { // try from 0019cfc0 to 0019cfc7 has its CatchHandler @ 0019d10f */ std::__ostream_insert<char,std::char_traits<char>> ((ostream *)param_2,(char *)local_80,local_78); } else { if ((((local_20[0] == (data)0x0) && (local_40 == 0)) && (local_50 == 0)) && (local_30 == 0)) goto LAB_0019d058; /* try { // try from 0019d015 to 0019d02a has its CatchHandler @ 0019d10d */ Value::dump_abi_cxx11_((int)&local_80,SUB81(local_60,0)); /* try { // try from 0019d035 to 0019d03c has its CatchHandler @ 0019d10b */ std::__ostream_insert<char,std::char_traits<char>> ((ostream *)param_2,(char *)local_80,local_78); } if (local_80 != local_70) { operator_delete(local_80,local_70[0] + 1); } } LAB_0019d058: nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_20,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_20); if (local_28 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_28); } if (local_38 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_38); } if (local_48 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_48); } if (local_58 != (long *)0x0) { if (*PTR___libc_single_threaded_00229f80 == '\0') { LOCK(); piVar1 = (int *)((long)local_58 + 0xc); iVar3 = *piVar1; *piVar1 = *piVar1 + -1; UNLOCK(); } else { iVar3 = *(int *)((long)local_58 + 0xc); *(int *)((long)local_58 + 0xc) = iVar3 + -1; } if (iVar3 == 1) { (**(code **)(*local_58 + 0x18))(); } } return; }
65,376
my_caseup_str_mb
eloqsql/strings/ctype-mb.c
size_t my_caseup_str_mb(CHARSET_INFO * cs, char *str) { register uint32 l; register const uchar *map= cs->to_upper; char *str_orig= str; while (*str) { /* Pointing after the '\0' is safe here. */ if ((l= my_ismbchar(cs, str, str + cs->mbmaxlen))) str+= l; else { *str= (char) map[(uchar)*str]; str++; } } return (size_t) (str - str_orig); }
O0
c
my_caseup_str_mb: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq 0x50(%rax), %rax movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x10(%rbp), %rax cmpb $0x0, (%rax) je 0x3fe87 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x10(%rbp), %rdx movq -0x8(%rbp), %rax movl 0x9c(%rax), %eax addq %rax, %rdx callq 0x3fea0 movl %eax, -0x14(%rbp) cmpl $0x0, %eax je 0x3fe65 movl -0x14(%rbp), %ecx movq -0x10(%rbp), %rax movl %ecx, %ecx addq %rcx, %rax movq %rax, -0x10(%rbp) jmp 0x3fe85 movq -0x20(%rbp), %rax movq -0x10(%rbp), %rcx movzbl (%rcx), %ecx movb (%rax,%rcx), %cl movq -0x10(%rbp), %rax movb %cl, (%rax) movq -0x10(%rbp), %rax addq $0x1, %rax movq %rax, -0x10(%rbp) jmp 0x3fe24 movq -0x10(%rbp), %rax movq -0x28(%rbp), %rcx subq %rcx, %rax addq $0x30, %rsp popq %rbp retq nopl (%rax,%rax)
my_caseup_str_mb: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] mov rax, [rax+50h] mov [rbp+var_20], rax mov rax, [rbp+var_10] mov [rbp+var_28], rax loc_3FE24: mov rax, [rbp+var_10] cmp byte ptr [rax], 0 jz short loc_3FE87 mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov rdx, [rbp+var_10] mov rax, [rbp+var_8] mov eax, [rax+9Ch] add rdx, rax call my_ismbchar_0 mov [rbp+var_14], eax cmp eax, 0 jz short loc_3FE65 mov ecx, [rbp+var_14] mov rax, [rbp+var_10] mov ecx, ecx add rax, rcx mov [rbp+var_10], rax jmp short loc_3FE85 loc_3FE65: mov rax, [rbp+var_20] mov rcx, [rbp+var_10] movzx ecx, byte ptr [rcx] mov cl, [rax+rcx] mov rax, [rbp+var_10] mov [rax], cl mov rax, [rbp+var_10] add rax, 1 mov [rbp+var_10], rax loc_3FE85: jmp short loc_3FE24 loc_3FE87: mov rax, [rbp+var_10] mov rcx, [rbp+var_28] sub rax, rcx add rsp, 30h pop rbp retn
_BYTE * my_caseup_str_mb(long long a1, _BYTE *a2) { long long v3; // [rsp+10h] [rbp-20h] unsigned int v4; // [rsp+1Ch] [rbp-14h] _BYTE *v5; // [rsp+20h] [rbp-10h] v5 = a2; v3 = *(_QWORD *)(a1 + 80); while ( *v5 ) { v4 = my_ismbchar_0(a1, v5, &v5[*(unsigned int *)(a1 + 156)]); if ( v4 ) { v5 += v4; } else { *v5 = *(_BYTE *)(v3 + (unsigned __int8)*v5); ++v5; } } return (_BYTE *)(v5 - a2); }
my_caseup_str_mb: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x50] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x28],RAX LAB_0013fe24: MOV RAX,qword ptr [RBP + -0x10] CMP byte ptr [RAX],0x0 JZ 0x0013fe87 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x9c] ADD RDX,RAX CALL 0x0013fea0 MOV dword ptr [RBP + -0x14],EAX CMP EAX,0x0 JZ 0x0013fe65 MOV ECX,dword ptr [RBP + -0x14] MOV RAX,qword ptr [RBP + -0x10] MOV ECX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x10],RAX JMP 0x0013fe85 LAB_0013fe65: MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x10] MOVZX ECX,byte ptr [RCX] MOV CL,byte ptr [RAX + RCX*0x1] MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],CL MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x1 MOV qword ptr [RBP + -0x10],RAX LAB_0013fe85: JMP 0x0013fe24 LAB_0013fe87: MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x28] SUB RAX,RCX ADD RSP,0x30 POP RBP RET
long my_caseup_str_mb(long param_1,byte *param_2) { long lVar1; uint uVar2; byte *local_18; lVar1 = *(long *)(param_1 + 0x50); local_18 = param_2; while (*local_18 != 0) { uVar2 = my_ismbchar(param_1,local_18,local_18 + *(uint *)(param_1 + 0x9c)); if (uVar2 == 0) { *local_18 = *(byte *)(lVar1 + (ulong)*local_18); local_18 = local_18 + 1; } else { local_18 = local_18 + uVar2; } } return (long)local_18 - (long)param_2; }
65,377
my_caseup_str_mb
eloqsql/strings/ctype-mb.c
size_t my_caseup_str_mb(CHARSET_INFO * cs, char *str) { register uint32 l; register const uchar *map= cs->to_upper; char *str_orig= str; while (*str) { /* Pointing after the '\0' is safe here. */ if ((l= my_ismbchar(cs, str, str + cs->mbmaxlen))) str+= l; else { *str= (char) map[(uchar)*str]; str++; } } return (size_t) (str - str_orig); }
O3
c
my_caseup_str_mb: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rsi, %rbx cmpb $0x0, (%rsi) movq %rsi, %rax je 0x363c8 movq %rdi, %r14 movq 0x50(%rdi), %r12 movq %rbx, %r15 movl 0x9c(%r14), %edx addq %r15, %rdx movq 0xb8(%r14), %rax movq %r14, %rdi movq %r15, %rsi callq *0xc0(%rax) cmpl $0x2, %eax jge 0x363b8 movzbl (%r15), %eax movb (%r12,%rax), %al movb %al, (%r15) movl $0x1, %ecx jmp 0x363ba movl %eax, %ecx leaq (%r15,%rcx), %rax cmpb $0x0, (%r15,%rcx) movq %rax, %r15 jne 0x36384 subq %rbx, %rax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
my_caseup_str_mb: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov rbx, rsi cmp byte ptr [rsi], 0 mov rax, rsi jz short loc_363C8 mov r14, rdi mov r12, [rdi+50h] mov r15, rbx loc_36384: mov edx, [r14+9Ch] add rdx, r15 mov rax, [r14+0B8h] mov rdi, r14 mov rsi, r15 call qword ptr [rax+0C0h] cmp eax, 2 jge short loc_363B8 movzx eax, byte ptr [r15] mov al, [r12+rax] mov [r15], al mov ecx, 1 jmp short loc_363BA loc_363B8: mov ecx, eax loc_363BA: lea rax, [r15+rcx] cmp byte ptr [r15+rcx], 0 mov r15, rax jnz short loc_36384 loc_363C8: sub rax, rbx pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long my_caseup_str_mb(long long a1, _BYTE *a2) { _BYTE *v2; // rax long long v3; // r12 _BYTE *v4; // r15 int v5; // eax long long v6; // rcx bool v7; // zf v2 = a2; if ( *a2 ) { v3 = *(_QWORD *)(a1 + 80); v4 = a2; do { v5 = (*(long long ( **)(long long, _BYTE *, _BYTE *))(*(_QWORD *)(a1 + 184) + 192LL))( a1, v4, &v4[*(unsigned int *)(a1 + 156)]); if ( v5 >= 2 ) { v6 = (unsigned int)v5; } else { *v4 = *(_BYTE *)(v3 + (unsigned __int8)*v4); v6 = 1LL; } v2 = &v4[v6]; v7 = v4[v6] == 0; v4 += v6; } while ( !v7 ); } return v2 - a2; }
my_caseup_str_mb: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV RBX,RSI CMP byte ptr [RSI],0x0 MOV RAX,RSI JZ 0x001363c8 MOV R14,RDI MOV R12,qword ptr [RDI + 0x50] MOV R15,RBX LAB_00136384: MOV EDX,dword ptr [R14 + 0x9c] ADD RDX,R15 MOV RAX,qword ptr [R14 + 0xb8] MOV RDI,R14 MOV RSI,R15 CALL qword ptr [RAX + 0xc0] CMP EAX,0x2 JGE 0x001363b8 MOVZX EAX,byte ptr [R15] MOV AL,byte ptr [R12 + RAX*0x1] MOV byte ptr [R15],AL MOV ECX,0x1 JMP 0x001363ba LAB_001363b8: MOV ECX,EAX LAB_001363ba: LEA RAX,[R15 + RCX*0x1] CMP byte ptr [R15 + RCX*0x1],0x0 MOV R15,RAX JNZ 0x00136384 LAB_001363c8: SUB RAX,RBX POP RBX POP R12 POP R14 POP R15 POP RBP RET
long my_caseup_str_mb(long param_1,byte *param_2) { byte *pbVar1; long lVar2; uint uVar3; byte *pbVar4; ulong uVar5; byte *pbVar6; pbVar4 = param_2; if (*param_2 != 0) { lVar2 = *(long *)(param_1 + 0x50); pbVar6 = param_2; do { uVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0)) (param_1,pbVar6,pbVar6 + *(uint *)(param_1 + 0x9c)); if ((int)uVar3 < 2) { *pbVar6 = *(byte *)(lVar2 + (ulong)*pbVar6); uVar5 = 1; } else { uVar5 = (ulong)uVar3; } pbVar4 = pbVar6 + uVar5; pbVar1 = pbVar6 + uVar5; pbVar6 = pbVar4; } while (*pbVar1 != 0); } return (long)pbVar4 - (long)param_2; }
65,378
PFS_buffer_scalable_container<PFS_mutex, 1024, 1024, PFS_buffer_default_array<PFS_mutex>, PFS_buffer_default_allocator<PFS_mutex>>::static_deallocate(PFS_mutex*)
eloqsql/storage/perfschema/pfs_buffer_container.h
static void static_deallocate(value_type *safe_pfs) { /* Find the containing page */ PFS_opaque_container_page *opaque_page= safe_pfs->m_page; array_type *page= reinterpret_cast<array_type *> (opaque_page); /* Mark the object free */ safe_pfs->m_lock.allocated_to_free(); /* Flag the containing page as not full. */ page->m_full= false; /* Find the containing buffer */ PFS_opaque_container *opaque_container= page->m_container; PFS_buffer_scalable_container *container; container= reinterpret_cast<container_type *> (opaque_container); /* Flag the overall container as not full. */ container->m_full= false; }
O0
c
PFS_buffer_scalable_container<PFS_mutex, 1024, 1024, PFS_buffer_default_array<PFS_mutex>, PFS_buffer_default_allocator<PFS_mutex>>::static_deallocate(PFS_mutex*): pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x18(%rbp) movq -0x8(%rbp), %rdi callq 0x31d50 movq -0x18(%rbp), %rax movb $0x0, (%rax) movq -0x18(%rbp), %rax movq 0x58(%rax), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax movb $0x0, 0x9(%rax) addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax)
_ZN29PFS_buffer_scalable_containerI9PFS_mutexLi1024ELi1024E24PFS_buffer_default_arrayIS0_E28PFS_buffer_default_allocatorIS0_EE17static_deallocateEPS0_: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov rax, [rax+8] mov [rbp+var_10], rax mov rax, [rbp+var_10] mov [rbp+var_18], rax mov rdi, [rbp+var_8]; this call _ZN8pfs_lock17allocated_to_freeEv; pfs_lock::allocated_to_free(void) mov rax, [rbp+var_18] mov byte ptr [rax], 0 mov rax, [rbp+var_18] mov rax, [rax+58h] mov [rbp+var_20], rax mov rax, [rbp+var_20] mov [rbp+var_28], rax mov rax, [rbp+var_28] mov byte ptr [rax+9], 0 add rsp, 30h pop rbp retn
long long PFS_buffer_scalable_container<PFS_mutex,1024,1024,PFS_buffer_default_array<PFS_mutex>,PFS_buffer_default_allocator<PFS_mutex>>::static_deallocate( pfs_lock *a1) { long long result; // rax long long v2; // [rsp+18h] [rbp-18h] v2 = *((_QWORD *)a1 + 1); pfs_lock::allocated_to_free(a1); *(_BYTE *)v2 = 0; result = *(_QWORD *)(v2 + 88); *(_BYTE *)(result + 9) = 0; return result; }
static_deallocate: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x18],RAX MOV RDI,qword ptr [RBP + -0x8] CALL 0x00131d50 MOV RAX,qword ptr [RBP + -0x18] MOV byte ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x58] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x28] MOV byte ptr [RAX + 0x9],0x0 ADD RSP,0x30 POP RBP RET
/* PFS_buffer_scalable_container<PFS_mutex, 1024, 1024, PFS_buffer_default_array<PFS_mutex>, PFS_buffer_default_allocator<PFS_mutex> >::static_deallocate(PFS_mutex*) */ void PFS_buffer_scalable_container<PFS_mutex,1024,1024,PFS_buffer_default_array<PFS_mutex>,PFS_buffer_default_allocator<PFS_mutex>> ::static_deallocate(PFS_mutex *param_1) { int1 *puVar1; puVar1 = *(int1 **)(param_1 + 8); pfs_lock::allocated_to_free((pfs_lock *)param_1); *puVar1 = 0; *(int1 *)(*(long *)(puVar1 + 0x58) + 9) = 0; return; }
65,379
ctz
bluesky950520[P]quickjs/libbf.c
static inline int ctz(limb_t a) { if (a == 0) { return LIMB_BITS; } else { #if LIMB_BITS == 64 return ctz64(a); #else return ctz32(a); #endif } }
O0
c
ctz: subq $0x18, %rsp movq %rdi, 0x8(%rsp) cmpq $0x0, 0x8(%rsp) jne 0xeef7b movl $0x40, 0x14(%rsp) jmp 0xeef89 movq 0x8(%rsp), %rdi callq 0xfc7e0 movl %eax, 0x14(%rsp) movl 0x14(%rsp), %eax addq $0x18, %rsp retq nopw %cs:(%rax,%rax)
ctz: sub rsp, 18h mov [rsp+18h+var_10], rdi cmp [rsp+18h+var_10], 0 jnz short loc_EEF7B mov [rsp+18h+var_4], 40h ; '@' jmp short loc_EEF89 loc_EEF7B: mov rdi, [rsp+18h+var_10] call ctz64 mov [rsp+18h+var_4], eax loc_EEF89: mov eax, [rsp+18h+var_4] add rsp, 18h retn
long long ctz(long long a1) { if ( a1 ) return (unsigned int)ctz64(a1); else return 64; }
ctz: SUB RSP,0x18 MOV qword ptr [RSP + 0x8],RDI CMP qword ptr [RSP + 0x8],0x0 JNZ 0x001eef7b MOV dword ptr [RSP + 0x14],0x40 JMP 0x001eef89 LAB_001eef7b: MOV RDI,qword ptr [RSP + 0x8] CALL 0x001fc7e0 MOV dword ptr [RSP + 0x14],EAX LAB_001eef89: MOV EAX,dword ptr [RSP + 0x14] ADD RSP,0x18 RET
int4 ctz(long param_1) { int4 local_4; if (param_1 == 0) { local_4 = 0x40; } else { local_4 = ctz64(param_1); } return local_4; }
65,380
mysql_load_plugin
eloqsql/build_O0/libmariadb/libmariadb/ma_client_plugin.c
struct st_mysql_client_plugin * STDCALL mysql_load_plugin(MYSQL *mysql, const char *name, int type, int argc, ...) { struct st_mysql_client_plugin *p; va_list args; va_start(args, argc); p= mysql_load_plugin_v(mysql, name, type, argc, args); va_end(args); return p; }
O0
c
mysql_load_plugin: pushq %rbp movq %rsp, %rbp subq $0xf0, %rsp testb %al, %al je 0x5b4cb movaps %xmm0, -0xc0(%rbp) movaps %xmm1, -0xb0(%rbp) movaps %xmm2, -0xa0(%rbp) movaps %xmm3, -0x90(%rbp) movaps %xmm4, -0x80(%rbp) movaps %xmm5, -0x70(%rbp) movaps %xmm6, -0x60(%rbp) movaps %xmm7, -0x50(%rbp) movq %r9, -0xc8(%rbp) movq %r8, -0xd0(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movl %ecx, -0x18(%rbp) leaq -0xf0(%rbp), %rax movq %rax, -0x30(%rbp) leaq 0x10(%rbp), %rax movq %rax, -0x38(%rbp) movl $0x30, -0x3c(%rbp) movl $0x20, -0x40(%rbp) movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movl -0x14(%rbp), %edx movl -0x18(%rbp), %ecx leaq -0x40(%rbp), %r8 callq 0x5b0a0 movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax addq $0xf0, %rsp popq %rbp retq
mysql_load_plugin: push rbp mov rbp, rsp sub rsp, 0F0h test al, al jz short loc_5B4CB movaps [rbp+var_C0], xmm0 movaps [rbp+var_B0], xmm1 movaps [rbp+var_A0], xmm2 movaps [rbp+var_90], xmm3 movaps [rbp+var_80], xmm4 movaps [rbp+var_70], xmm5 movaps [rbp+var_60], xmm6 movaps [rbp+var_50], xmm7 loc_5B4CB: mov [rbp+var_C8], r9 mov [rbp+var_D0], r8 mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx mov [rbp+var_18], ecx lea rax, [rbp+var_F0] mov [rbp+var_30], rax lea rax, [rbp+arg_0] mov [rbp+var_38], rax mov [rbp+var_3C], 30h ; '0' mov [rbp+var_40], 20h ; ' ' mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov edx, [rbp+var_14] mov ecx, [rbp+var_18] lea r8, [rbp+var_40] call mysql_load_plugin_v mov [rbp+var_20], rax mov rax, [rbp+var_20] add rsp, 0F0h pop rbp retn
void (**mysql_load_plugin(long long a1, const char *a2, signed int a3, unsigned int a4, ...))(void) { va_list va; // [rsp+B0h] [rbp-40h] BYREF unsigned int v6; // [rsp+D8h] [rbp-18h] signed int v7; // [rsp+DCh] [rbp-14h] const char *v8; // [rsp+E0h] [rbp-10h] long long v9; // [rsp+E8h] [rbp-8h] va_start(va, a4); v9 = a1; v8 = a2; v7 = a3; v6 = a4; return mysql_load_plugin_v(a1, a2, a3, a4, (long long)va); }
mysql_load_plugin: PUSH RBP MOV RBP,RSP SUB RSP,0xf0 TEST AL,AL JZ 0x0015b4cb MOVAPS xmmword ptr [RBP + -0xc0],XMM0 MOVAPS xmmword ptr [RBP + -0xb0],XMM1 MOVAPS xmmword ptr [RBP + -0xa0],XMM2 MOVAPS xmmword ptr [RBP + -0x90],XMM3 MOVAPS xmmword ptr [RBP + -0x80],XMM4 MOVAPS xmmword ptr [RBP + -0x70],XMM5 MOVAPS xmmword ptr [RBP + -0x60],XMM6 MOVAPS xmmword ptr [RBP + -0x50],XMM7 LAB_0015b4cb: MOV qword ptr [RBP + -0xc8],R9 MOV qword ptr [RBP + -0xd0],R8 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX MOV dword ptr [RBP + -0x18],ECX LEA RAX,[RBP + -0xf0] MOV qword ptr [RBP + -0x30],RAX LEA RAX,[RBP + 0x10] MOV qword ptr [RBP + -0x38],RAX MOV dword ptr [RBP + -0x3c],0x30 MOV dword ptr [RBP + -0x40],0x20 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RBP + -0x14] MOV ECX,dword ptr [RBP + -0x18] LEA R8,[RBP + -0x40] CALL 0x0015b0a0 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x20] ADD RSP,0xf0 POP RBP RET
int8 mysql_load_plugin(int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6,int8 param_7,int8 param_8, int8 param_9,int8 param_10,int4 param_11,int4 param_12, int8 param_13,int8 param_14) { char in_AL; int8 uVar1; int1 local_f8 [32]; int8 local_d8; int8 local_d0; int8 local_c8; int8 local_b8; int8 local_a8; int8 local_98; int8 local_88; int8 local_78; int8 local_68; int8 local_58; int4 local_48; int4 local_44; int1 *local_40; int1 *local_38; int4 local_20; int4 local_1c; int8 local_18; int8 local_10; if (in_AL != '\0') { local_c8 = param_1; local_b8 = param_2; local_a8 = param_3; local_98 = param_4; local_88 = param_5; local_78 = param_6; local_68 = param_7; local_58 = param_8; } local_38 = local_f8; local_40 = &stack0x00000008; local_44 = 0x30; local_48 = 0x20; local_d8 = param_13; local_d0 = param_14; local_20 = param_12; local_1c = param_11; local_18 = param_10; local_10 = param_9; uVar1 = mysql_load_plugin_v(param_9,param_10,param_11,param_12,&local_48); return uVar1; }
65,381
YAML::Node::Mark() const
aimrt_mujoco_sim/_deps/yaml-cpp-src/include/yaml-cpp/node/impl.h
inline Mark Node::Mark() const { if (!m_isValid) { throw InvalidNode(m_invalidKey); } return m_pNode ? m_pNode->mark() : Mark::null_mark(); }
O0
c
YAML::Node::Mark() const: subq $0x58, %rsp movq %rdi, 0x40(%rsp) movq 0x40(%rsp), %rax movq %rax, 0x8(%rsp) testb $0x1, (%rax) jne 0xe081c movl $0x40, %edi callq 0x8e630 movq 0x8(%rsp), %rsi movq %rax, %rdi movq %rdi, %rax movq %rax, (%rsp) addq $0x8, %rsi callq 0xdffa0 jmp 0xe07ec movq (%rsp), %rdi leaq 0x41a391(%rip), %rsi # 0x4fab88 leaq 0x45702(%rip), %rdx # 0x125f00 callq 0x90860 movq (%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0x38(%rsp) movl %eax, 0x34(%rsp) callq 0x93710 jmp 0xe0887 movq 0x8(%rsp), %rax cmpq $0x0, 0x38(%rax) je 0xe0847 movq 0x8(%rsp), %rax movq 0x38(%rax), %rdi callq 0xe1790 movq (%rax), %rcx movq %rcx, 0x4c(%rsp) movl 0x8(%rax), %eax movl %eax, 0x54(%rsp) jmp 0xe0867 callq 0xe0280 movl %edx, 0x28(%rsp) movq %rax, 0x20(%rsp) movq 0x20(%rsp), %rax movq %rax, 0x4c(%rsp) movl 0x28(%rsp), %eax movl %eax, 0x54(%rsp) movl 0x54(%rsp), %eax movl %eax, 0x18(%rsp) movq 0x4c(%rsp), %rax movq %rax, 0x10(%rsp) movq 0x10(%rsp), %rax movl 0x18(%rsp), %edx addq $0x58, %rsp retq movq 0x38(%rsp), %rdi callq 0x90db0 nopw %cs:(%rax,%rax) nopl (%rax,%rax)
_ZNK4YAML4Node4MarkEv: sub rsp, 58h mov [rsp+58h+var_18], rdi mov rax, [rsp+58h+var_18] mov [rsp+58h+var_50], rax test byte ptr [rax], 1 jnz short loc_E081C mov edi, 40h ; '@'; thrown_size call ___cxa_allocate_exception mov rsi, [rsp+58h+var_50] mov rdi, rax mov rax, rdi mov [rsp+58h+var_58], rax add rsi, 8 call _ZN4YAML11InvalidNodeC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; YAML::InvalidNode::InvalidNode(std::string const&) jmp short $+2 loc_E07EC: mov rdi, [rsp+58h+var_58]; void * lea rsi, _ZTIN4YAML11InvalidNodeE; lptinfo lea rdx, _ZN4YAML11InvalidNodeD2Ev; void (*)(void *) call ___cxa_throw mov rdi, [rsp+58h+var_58]; void * mov rcx, rax mov eax, edx mov [rsp+58h+var_20], rcx mov [rsp+58h+var_24], eax call ___cxa_free_exception jmp short loc_E0887 loc_E081C: mov rax, [rsp+58h+var_50] cmp qword ptr [rax+38h], 0 jz short loc_E0847 mov rax, [rsp+58h+var_50] mov rdi, [rax+38h]; this call _ZNK4YAML6detail4node4markEv; YAML::detail::node::mark(void) mov rcx, [rax] mov [rsp+58h+var_C], rcx mov eax, [rax+8] mov [rsp+58h+var_4], eax jmp short loc_E0867 loc_E0847: call _ZN4YAML4Mark9null_markEv; YAML::Mark::null_mark(void) mov [rsp+58h+var_30], edx mov [rsp+58h+var_38], rax mov rax, [rsp+58h+var_38] mov [rsp+58h+var_C], rax mov eax, [rsp+58h+var_30] mov [rsp+58h+var_4], eax loc_E0867: mov eax, [rsp+58h+var_4] mov [rsp+58h+var_40], eax mov rax, [rsp+58h+var_C] mov [rsp+58h+var_48], rax mov rax, [rsp+58h+var_48] mov edx, [rsp+58h+var_40] add rsp, 58h retn loc_E0887: mov rdi, [rsp+58h+var_20] call __Unwind_Resume
long long YAML::Node::Mark(YAML::detail::node **this) { YAML::Mark *exception; // [rsp+0h] [rbp-58h] if ( (*(_BYTE *)this & 1) == 0 ) { exception = (YAML::Mark *)__cxa_allocate_exception(0x40uLL); YAML::InvalidNode::InvalidNode(exception, (long long)(this + 1)); __cxa_throw(exception, (struct type_info *)&`typeinfo for'YAML::InvalidNode, YAML::InvalidNode::~InvalidNode); } if ( this[7] ) return *(_QWORD *)YAML::detail::node::mark(this[7]); else return YAML::Mark::null_mark((YAML::Mark *)this); }
Mark: SUB RSP,0x58 MOV qword ptr [RSP + 0x40],RDI MOV RAX,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0x8],RAX TEST byte ptr [RAX],0x1 JNZ 0x001e081c MOV EDI,0x40 CALL 0x0018e630 MOV RSI,qword ptr [RSP + 0x8] MOV RDI,RAX MOV RAX,RDI MOV qword ptr [RSP],RAX ADD RSI,0x8 LAB_001e07e5: CALL 0x001dffa0 LAB_001e07ea: JMP 0x001e07ec LAB_001e07ec: MOV RDI,qword ptr [RSP] LEA RSI,[0x5fab88] LEA RDX,[0x225f00] CALL 0x00190860 LAB_001e081c: MOV RAX,qword ptr [RSP + 0x8] CMP qword ptr [RAX + 0x38],0x0 JZ 0x001e0847 MOV RAX,qword ptr [RSP + 0x8] MOV RDI,qword ptr [RAX + 0x38] CALL 0x001e1790 MOV RCX,qword ptr [RAX] MOV qword ptr [RSP + 0x4c],RCX MOV EAX,dword ptr [RAX + 0x8] MOV dword ptr [RSP + 0x54],EAX JMP 0x001e0867 LAB_001e0847: CALL 0x001e0280 MOV dword ptr [RSP + 0x28],EDX MOV qword ptr [RSP + 0x20],RAX MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x4c],RAX MOV EAX,dword ptr [RSP + 0x28] MOV dword ptr [RSP + 0x54],EAX LAB_001e0867: MOV EAX,dword ptr [RSP + 0x54] MOV dword ptr [RSP + 0x18],EAX MOV RAX,qword ptr [RSP + 0x4c] MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [RSP + 0x10] MOV EDX,dword ptr [RSP + 0x18] ADD RSP,0x58 RET
/* YAML::Node::Mark() const */ int1 [16] __thiscall YAML::Node::Mark(Node *this) { InvalidNode *this_00; int1 (*pauVar1) [12]; int1 auVar2 [16]; int1 auVar3 [12]; if (((byte)*this & 1) == 0) { this_00 = (InvalidNode *)__cxa_allocate_exception(0x40); /* try { // try from 001e07e5 to 001e07e9 has its CatchHandler @ 001e0803 */ InvalidNode::InvalidNode(this_00,(string *)(this + 8)); /* WARNING: Subroutine does not return */ __cxa_throw(this_00,&InvalidNode::typeinfo,InvalidNode::~InvalidNode); } if (*(long *)(this + 0x38) == 0) { auVar3 = YAML::Mark::null_mark(); } else { pauVar1 = (int1 (*) [12])YAML::detail::node::mark(*(node **)(this + 0x38)); auVar3 = *pauVar1; } auVar2._12_4_ = 0; auVar2._0_12_ = auVar3; return auVar2; }
65,382
YAML::Node::Mark() const
aimrt_mujoco_sim/_deps/yaml-cpp-src/include/yaml-cpp/node/impl.h
inline Mark Node::Mark() const { if (!m_isValid) { throw InvalidNode(m_invalidKey); } return m_pNode ? m_pNode->mark() : Mark::null_mark(); }
O3
c
YAML::Node::Mark() const: pushq %r14 pushq %rbx pushq %rax movq %rdi, %r14 cmpb $0x0, (%rdi) je 0x47550 movq 0x38(%r14), %rax testq %rax, %rax je 0x4753c movq (%rax), %rax movq (%rax), %rcx movq 0x4(%rcx), %rax movl 0xc(%rcx), %edx jmp 0x47548 movl $0xffffffff, %edx # imm = 0xFFFFFFFF movq $-0x1, %rax addq $0x8, %rsp popq %rbx popq %r14 retq movl $0x40, %edi callq 0x2c800 movq %rax, %rbx addq $0x8, %r14 movq %rax, %rdi movq %r14, %rsi callq 0x47084 leaq 0x1c2065(%rip), %rsi # 0x2095d8 leaq 0x191b2(%rip), %rdx # 0x6072c movq %rbx, %rdi callq 0x2e0f0 movq %rax, %r14 movq %rbx, %rdi callq 0x2cc80 movq %r14, %rdi callq 0x2e220 nop
_ZNK4YAML4Node4MarkEv: push r14 push rbx push rax mov r14, rdi cmp byte ptr [rdi], 0 jz short loc_47550 mov rax, [r14+38h] test rax, rax jz short loc_4753C mov rax, [rax] mov rcx, [rax] mov rax, [rcx+4] mov edx, [rcx+0Ch] jmp short loc_47548 loc_4753C: mov edx, 0FFFFFFFFh mov rax, 0FFFFFFFFFFFFFFFFh loc_47548: add rsp, 8 pop rbx pop r14 retn loc_47550: mov edi, 40h ; '@'; thrown_size call ___cxa_allocate_exception mov rbx, rax add r14, 8 mov rdi, rax mov rsi, r14 call _ZN4YAML11InvalidNodeC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; YAML::InvalidNode::InvalidNode(std::string const&) lea rsi, _ZTIN4YAML11InvalidNodeE; lptinfo lea rdx, _ZN4YAML9ExceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax mov rdi, rbx; void * call ___cxa_free_exception mov rdi, r14 call __Unwind_Resume
long long YAML::Node::Mark(YAML::Node *this) { long long v1; // rax void *exception; // rbx int v4; // edx int v5; // ecx int v6; // r8d int v7; // r9d if ( !*(_BYTE *)this ) { exception = __cxa_allocate_exception(0x40uLL); YAML::InvalidNode::InvalidNode((_DWORD)exception, (_DWORD)this + 8, v4, v5, v6, v7); __cxa_throw(exception, (struct type_info *)&`typeinfo for'YAML::InvalidNode, YAML::Exception::~Exception); } v1 = *((_QWORD *)this + 7); if ( v1 ) return *(_QWORD *)(**(_QWORD **)v1 + 4LL); else return -1LL; }
Mark: PUSH R14 PUSH RBX PUSH RAX MOV R14,RDI CMP byte ptr [RDI],0x0 JZ 0x00147550 MOV RAX,qword ptr [R14 + 0x38] TEST RAX,RAX JZ 0x0014753c MOV RAX,qword ptr [RAX] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RCX + 0x4] MOV EDX,dword ptr [RCX + 0xc] JMP 0x00147548 LAB_0014753c: MOV EDX,0xffffffff MOV RAX,-0x1 LAB_00147548: ADD RSP,0x8 POP RBX POP R14 RET LAB_00147550: MOV EDI,0x40 CALL 0x0012c800 MOV RBX,RAX ADD R14,0x8 LAB_00147561: MOV RDI,RAX MOV RSI,R14 CALL 0x00147084 LAB_0014756c: LEA RSI,[0x3095d8] LEA RDX,[0x16072c] MOV RDI,RBX CALL 0x0012e0f0
/* YAML::Node::Mark() const */ int1 [16] __thiscall YAML::Node::Mark(Node *this) { long lVar1; int8 uVar2; InvalidNode *this_00; ulong uVar3; int1 auVar4 [16]; if (*this != (Node)0x0) { if (*(int8 **)(this + 0x38) == (int8 *)0x0) { uVar3 = 0xffffffff; uVar2 = 0xffffffffffffffff; } else { lVar1 = *(long *)**(int8 **)(this + 0x38); uVar2 = *(int8 *)(lVar1 + 4); uVar3 = (ulong)*(uint *)(lVar1 + 0xc); } auVar4._8_8_ = uVar3; auVar4._0_8_ = uVar2; return auVar4; } this_00 = (InvalidNode *)__cxa_allocate_exception(0x40); /* try { // try from 00147561 to 0014756b has its CatchHandler @ 00147582 */ InvalidNode::InvalidNode(this_00,(string *)(this + 8)); /* WARNING: Subroutine does not return */ __cxa_throw(this_00,&InvalidNode::typeinfo,BadInsert::~BadInsert); }
65,383
free_size_to_tail_pattern
eloqsql/storage/maria/ma_bitmap.c
static uint free_size_to_tail_pattern(MARIA_FILE_BITMAP *bitmap, uint size) { if (size >= bitmap->sizes[0]) return 0; /* Revert to empty page */ if (size < bitmap->sizes[6]) return 7; if (size < bitmap->sizes[5]) return 6; return 5; }
O0
c
free_size_to_tail_pattern: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl -0x14(%rbp), %eax movq -0x10(%rbp), %rcx cmpl 0x108(%rcx), %eax jb 0x49033 movl $0x0, -0x4(%rbp) jmp 0x4906a movl -0x14(%rbp), %eax movq -0x10(%rbp), %rcx cmpl 0x120(%rcx), %eax jae 0x4904b movl $0x7, -0x4(%rbp) jmp 0x4906a movl -0x14(%rbp), %eax movq -0x10(%rbp), %rcx cmpl 0x11c(%rcx), %eax jae 0x49063 movl $0x6, -0x4(%rbp) jmp 0x4906a movl $0x5, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nop
free_size_to_tail_pattern: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_14], esi mov eax, [rbp+var_14] mov rcx, [rbp+var_10] cmp eax, [rcx+108h] jb short loc_49033 mov [rbp+var_4], 0 jmp short loc_4906A loc_49033: mov eax, [rbp+var_14] mov rcx, [rbp+var_10] cmp eax, [rcx+120h] jnb short loc_4904B mov [rbp+var_4], 7 jmp short loc_4906A loc_4904B: mov eax, [rbp+var_14] mov rcx, [rbp+var_10] cmp eax, [rcx+11Ch] jnb short loc_49063 mov [rbp+var_4], 6 jmp short loc_4906A loc_49063: mov [rbp+var_4], 5 loc_4906A: mov eax, [rbp+var_4] pop rbp retn
long long free_size_to_tail_pattern(_DWORD *a1, unsigned int a2) { if ( a2 < a1[66] ) { if ( a2 >= a1[72] ) { if ( a2 >= a1[71] ) return 5; else return 6; } else { return 7; } } else { return 0; } }
free_size_to_tail_pattern: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV EAX,dword ptr [RBP + -0x14] MOV RCX,qword ptr [RBP + -0x10] CMP EAX,dword ptr [RCX + 0x108] JC 0x00149033 MOV dword ptr [RBP + -0x4],0x0 JMP 0x0014906a LAB_00149033: MOV EAX,dword ptr [RBP + -0x14] MOV RCX,qword ptr [RBP + -0x10] CMP EAX,dword ptr [RCX + 0x120] JNC 0x0014904b MOV dword ptr [RBP + -0x4],0x7 JMP 0x0014906a LAB_0014904b: MOV EAX,dword ptr [RBP + -0x14] MOV RCX,qword ptr [RBP + -0x10] CMP EAX,dword ptr [RCX + 0x11c] JNC 0x00149063 MOV dword ptr [RBP + -0x4],0x6 JMP 0x0014906a LAB_00149063: MOV dword ptr [RBP + -0x4],0x5 LAB_0014906a: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int4 free_size_to_tail_pattern(long param_1,uint param_2) { int4 local_c; if (param_2 < *(uint *)(param_1 + 0x108)) { if (param_2 < *(uint *)(param_1 + 0x120)) { local_c = 7; } else if (param_2 < *(uint *)(param_1 + 0x11c)) { local_c = 6; } else { local_c = 5; } } else { local_c = 0; } return local_c; }
65,384
translog_prev_buffer_flush_wait
eloqsql/storage/maria/ma_loghandler.c
my_bool translog_prev_buffer_flush_wait(struct st_translog_buffer *buffer) { TRANSLOG_ADDRESS offset= buffer->offset; TRANSLOG_FILE *file= buffer->file; uint8 ver= buffer->ver; DBUG_ENTER("translog_prev_buffer_flush_wait"); DBUG_PRINT("enter", ("buffer: %p #%u offset: " LSN_FMT " " "prev sent: " LSN_FMT " prev offset: " LSN_FMT, buffer, (uint) buffer->buffer_no, LSN_IN_PARTS(buffer->offset), LSN_IN_PARTS(buffer->prev_sent_to_disk), LSN_IN_PARTS(buffer->prev_buffer_offset))); translog_buffer_lock_assert_owner(buffer); if (buffer->prev_buffer_offset != buffer->prev_sent_to_disk) { do { mysql_cond_wait(&buffer->prev_sent_to_disk_cond, &buffer->mutex); if (buffer->file != file || buffer->offset != offset || buffer->ver != ver) DBUG_RETURN(1); /* some the thread flushed the buffer already */ } while(buffer->prev_buffer_offset != buffer->prev_sent_to_disk); } DBUG_RETURN(0); }
O0
c
translog_prev_buffer_flush_wait: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax movq 0x100010(%rax), %rax movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rax movq 0x100038(%rax), %rax movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rax movb 0x1000d9(%rax), %al movb %al, -0x21(%rbp) jmp 0x8a259 movq -0x10(%rbp), %rax movq 0x100020(%rax), %rax movq -0x10(%rbp), %rcx cmpq 0x1000e0(%rcx), %rax je 0x8a2f7 jmp 0x8a277 movq -0x10(%rbp), %rdi addq $0x1000e8, %rdi # imm = 0x1000E8 movq -0x10(%rbp), %rsi addq $0x100090, %rsi # imm = 0x100090 leaq 0xd322f(%rip), %rdx # 0x15d4c3 movl $0xa24, %ecx # imm = 0xA24 callq 0x8a310 movq -0x10(%rbp), %rax movq 0x100038(%rax), %rax cmpq -0x20(%rbp), %rax jne 0x8a2d3 movq -0x10(%rbp), %rax movq 0x100010(%rax), %rax cmpq -0x18(%rbp), %rax jne 0x8a2d3 movq -0x10(%rbp), %rax movzbl 0x1000d9(%rax), %eax movzbl -0x21(%rbp), %ecx cmpl %ecx, %eax je 0x8a2db jmp 0x8a2d5 movb $0x1, -0x1(%rbp) jmp 0x8a2fd jmp 0x8a2dd movq -0x10(%rbp), %rax movq 0x100020(%rax), %rax movq -0x10(%rbp), %rcx cmpq 0x1000e0(%rcx), %rax jne 0x8a277 jmp 0x8a2f7 jmp 0x8a2f9 movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
translog_prev_buffer_flush_wait: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov rax, [rbp+var_10] mov rax, [rax+100010h] mov [rbp+var_18], rax mov rax, [rbp+var_10] mov rax, qword ptr ds:loc_100038[rax] mov [rbp+var_20], rax mov rax, [rbp+var_10] mov al, [rax+1000D9h] mov [rbp+var_21], al jmp short $+2 loc_8A259: mov rax, [rbp+var_10] mov rax, [rax+100020h] mov rcx, [rbp+var_10] cmp rax, qword ptr ds:loc_1000E0[rcx] jz loc_8A2F7 jmp short $+2 loc_8A277: mov rdi, [rbp+var_10] add rdi, 1000E8h mov rsi, [rbp+var_10] add rsi, 100090h lea rdx, aWorkspaceLlm4b_19; "/workspace/llm4binary/github2025/eloqsq"... mov ecx, 0A24h call inline_mysql_cond_wait_1 mov rax, [rbp+var_10] mov rax, qword ptr ds:loc_100038[rax] cmp rax, [rbp+var_20] jnz short loc_8A2D3 mov rax, [rbp+var_10] mov rax, [rax+100010h] cmp rax, [rbp+var_18] jnz short loc_8A2D3 mov rax, [rbp+var_10] movzx eax, byte ptr [rax+1000D9h] movzx ecx, [rbp+var_21] cmp eax, ecx jz short loc_8A2DB loc_8A2D3: jmp short $+2 loc_8A2D5: mov [rbp+var_1], 1 jmp short loc_8A2FD loc_8A2DB: jmp short $+2 loc_8A2DD: mov rax, [rbp+var_10] mov rax, [rax+100020h] mov rcx, [rbp+var_10] cmp rax, qword ptr ds:loc_1000E0[rcx] jnz short loc_8A277 jmp short $+2 loc_8A2F7: jmp short $+2 loc_8A2F9: mov [rbp+var_1], 0 loc_8A2FD: mov al, [rbp+var_1] add rsp, 30h pop rbp retn
char translog_prev_buffer_flush_wait(long long a1) { unsigned __int8 v2; // [rsp+Fh] [rbp-21h] long long v3; // [rsp+10h] [rbp-20h] long long v4; // [rsp+18h] [rbp-18h] v4 = *(_QWORD *)(a1 + 1048592); v3 = *(_QWORD *)((char *)&loc_100038 + a1); v2 = *(_BYTE *)(a1 + 1048793); if ( *(_QWORD *)(a1 + 1048608) == *(_QWORD *)((char *)&loc_1000E0 + a1) ) return 0; while ( 1 ) { inline_mysql_cond_wait_1( a1 + 1048808, a1 + 1048720, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c", 2596LL); if ( *(_QWORD *)((char *)&loc_100038 + a1) != v3 || *(_QWORD *)(a1 + 1048592) != v4 || *(unsigned __int8 *)(a1 + 1048793) != v2 ) { break; } if ( *(_QWORD *)(a1 + 1048608) == *(_QWORD *)((char *)&loc_1000E0 + a1) ) return 0; } return 1; }
translog_prev_buffer_flush_wait: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x100010] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x100038] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x10] MOV AL,byte ptr [RAX + 0x1000d9] MOV byte ptr [RBP + -0x21],AL JMP 0x0018a259 LAB_0018a259: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x100020] MOV RCX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RCX + 0x1000e0] JZ 0x0018a2f7 JMP 0x0018a277 LAB_0018a277: MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x1000e8 MOV RSI,qword ptr [RBP + -0x10] ADD RSI,0x100090 LEA RDX,[0x25d4c3] MOV ECX,0xa24 CALL 0x0018a310 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x100038] CMP RAX,qword ptr [RBP + -0x20] JNZ 0x0018a2d3 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x100010] CMP RAX,qword ptr [RBP + -0x18] JNZ 0x0018a2d3 MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX + 0x1000d9] MOVZX ECX,byte ptr [RBP + -0x21] CMP EAX,ECX JZ 0x0018a2db LAB_0018a2d3: JMP 0x0018a2d5 LAB_0018a2d5: MOV byte ptr [RBP + -0x1],0x1 JMP 0x0018a2fd LAB_0018a2db: JMP 0x0018a2dd LAB_0018a2dd: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x100020] MOV RCX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RCX + 0x1000e0] JNZ 0x0018a277 JMP 0x0018a2f7 LAB_0018a2f7: JMP 0x0018a2f9 LAB_0018a2f9: MOV byte ptr [RBP + -0x1],0x0 LAB_0018a2fd: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x30 POP RBP RET
int8 translog_prev_buffer_flush_wait(long param_1) { char cVar1; long lVar2; long lVar3; long lVar4; int1 local_9; lVar2 = *(long *)(Elf64_Ehdr_00100000.e_ident_pad + param_1 + 7); lVar3 = *(long *)(Elf64_Ehdr_00100000.e_ident_pad + param_1 + 0x2f); cVar1 = *(char *)((long)&Elf64_Phdr_ARRAY_00100040[2].p_memsz + param_1 + 1); lVar4 = *(long *)(Elf64_Ehdr_00100000.e_ident_pad + param_1 + 0x17); if (lVar4 != *(long *)((long)&Elf64_Phdr_ARRAY_00100040[2].p_align + param_1)) { do { inline_mysql_cond_wait (param_1 + 0x1000e8,param_1 + 0x100090, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",0xa24); lVar4 = *(long *)(Elf64_Ehdr_00100000.e_ident_pad + param_1 + 0x2f); if (((lVar4 != lVar3) || (lVar4 = *(long *)(Elf64_Ehdr_00100000.e_ident_pad + param_1 + 7), lVar4 != lVar2)) || (lVar4 = 0, *(char *)((long)&Elf64_Phdr_ARRAY_00100040[2].p_memsz + param_1 + 1) != cVar1)) { local_9 = 1; goto LAB_0018a2fd; } lVar4 = *(long *)(Elf64_Ehdr_00100000.e_ident_pad + param_1 + 0x17); } while (lVar4 != *(long *)((long)&Elf64_Phdr_ARRAY_00100040[2].p_align + param_1)); } local_9 = 0; LAB_0018a2fd: return CONCAT71((int7)((ulong)lVar4 >> 8),local_9); }
65,385
testing::ScopedTrace::PushTrace(char const*, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest.cc
void ScopedTrace::PushTrace(const char* file, int line, std::string message) { internal::TraceInfo trace; trace.file = file; trace.line = line; trace.message.swap(message); UnitTest::GetInstance()->PushGTestTrace(trace); }
O0
cpp
testing::ScopedTrace::PushTrace(char const*, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>): subq $0x78, %rsp movq %rcx, 0x8(%rsp) movq %rdi, 0x70(%rsp) movq %rsi, 0x68(%rsp) movl %edx, 0x64(%rsp) movq %rcx, 0x58(%rsp) leaq 0x28(%rsp), %rdi callq 0x4f8c0 movq 0x8(%rsp), %rsi movq 0x68(%rsp), %rax movq %rax, 0x28(%rsp) movl 0x64(%rsp), %eax movl %eax, 0x30(%rsp) leaq 0x38(%rsp), %rdi callq 0x4f8e0 callq 0x1ece0 movq %rax, 0x10(%rsp) jmp 0x3f053 movq 0x10(%rsp), %rdi leaq 0x28(%rsp), %rsi callq 0x3c580 jmp 0x3f064 leaq 0x28(%rsp), %rdi callq 0x4fc10 addq $0x78, %rsp retq movq %rax, %rcx movl %edx, %eax movq %rcx, 0x20(%rsp) movl %eax, 0x1c(%rsp) leaq 0x28(%rsp), %rdi callq 0x4fc10 movq 0x20(%rsp), %rdi callq 0xb910 nopw %cs:(%rax,%rax)
_ZN7testing11ScopedTrace9PushTraceEPKciNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: sub rsp, 78h mov [rsp+78h+var_70], rcx mov [rsp+78h+var_8], rdi mov [rsp+78h+var_10], rsi mov [rsp+78h+var_14], edx mov [rsp+78h+var_20], rcx lea rdi, [rsp+78h+var_50]; this call _ZN7testing8internal9TraceInfoC2Ev; testing::internal::TraceInfo::TraceInfo(void) mov rsi, [rsp+78h+var_70] mov rax, [rsp+78h+var_10] mov [rsp+78h+var_50], rax mov eax, [rsp+78h+var_14] mov [rsp+78h+var_48], eax lea rdi, [rsp+78h+var_40]; this call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4swapERS4_; std::string::swap(std::string&) call _ZN7testing8UnitTest11GetInstanceEv; testing::UnitTest::GetInstance(void) mov [rsp+78h+var_68], rax jmp short $+2 loc_3F053: mov rdi, [rsp+78h+var_68]; this lea rsi, [rsp+78h+var_50]; testing::internal::TraceInfo * call _ZN7testing8UnitTest14PushGTestTraceERKNS_8internal9TraceInfoE; testing::UnitTest::PushGTestTrace(testing::internal::TraceInfo const&) jmp short $+2 loc_3F064: lea rdi, [rsp+78h+var_50]; this call _ZN7testing8internal9TraceInfoD2Ev; testing::internal::TraceInfo::~TraceInfo() add rsp, 78h retn mov rcx, rax mov eax, edx mov [rsp+arg_18], rcx mov [rsp+arg_14], eax lea rdi, [rsp+arg_20]; this call _ZN7testing8internal9TraceInfoD2Ev; testing::internal::TraceInfo::~TraceInfo() mov rdi, [rsp+arg_18] call __Unwind_Resume
void testing::ScopedTrace::PushTrace(long long a1, long long a2, int a3, long long a4) { testing::internal::UnitTestImpl **Instance; // [rsp+10h] [rbp-68h] long long v6; // [rsp+28h] [rbp-50h] BYREF int v7; // [rsp+30h] [rbp-48h] _BYTE v8[32]; // [rsp+38h] [rbp-40h] BYREF long long v9; // [rsp+58h] [rbp-20h] int v10; // [rsp+64h] [rbp-14h] long long v11; // [rsp+68h] [rbp-10h] long long v12; // [rsp+70h] [rbp-8h] v12 = a1; v11 = a2; v10 = a3; v9 = a4; testing::internal::TraceInfo::TraceInfo((testing::internal::TraceInfo *)&v6); v6 = v11; v7 = v10; std::string::swap(v8, a4); Instance = (testing::internal::UnitTestImpl **)testing::UnitTest::GetInstance((testing::UnitTest *)v8); testing::UnitTest::PushGTestTrace(Instance, (const testing::internal::TraceInfo *)&v6); testing::internal::TraceInfo::~TraceInfo((testing::internal::TraceInfo *)&v6); }
PushTrace: SUB RSP,0x78 MOV qword ptr [RSP + 0x8],RCX MOV qword ptr [RSP + 0x70],RDI MOV qword ptr [RSP + 0x68],RSI MOV dword ptr [RSP + 0x64],EDX MOV qword ptr [RSP + 0x58],RCX LEA RDI,[RSP + 0x28] CALL 0x0014f8c0 MOV RSI,qword ptr [RSP + 0x8] MOV RAX,qword ptr [RSP + 0x68] MOV qword ptr [RSP + 0x28],RAX MOV EAX,dword ptr [RSP + 0x64] MOV dword ptr [RSP + 0x30],EAX LEA RDI,[RSP + 0x38] CALL 0x0014f8e0 LAB_0013f047: CALL 0x0011ece0 MOV qword ptr [RSP + 0x10],RAX JMP 0x0013f053 LAB_0013f053: MOV RDI,qword ptr [RSP + 0x10] LEA RSI,[RSP + 0x28] CALL 0x0013c580 LAB_0013f062: JMP 0x0013f064 LAB_0013f064: LEA RDI,[RSP + 0x28] CALL 0x0014fc10 ADD RSP,0x78 RET
/* testing::ScopedTrace::PushTrace(char const*, int, std::__cxx11::string) */ void __thiscall testing::ScopedTrace::PushTrace (ScopedTrace *this,int8 param_1,int4 param_2,string *param_4) { UnitTest *this_00; int8 local_50; int4 local_48; string local_40 [32]; string *local_20; int4 local_14; int8 local_10; ScopedTrace *local_8; local_20 = param_4; local_14 = param_2; local_10 = param_1; local_8 = this; internal::TraceInfo::TraceInfo((TraceInfo *)&local_50); local_50 = local_10; local_48 = local_14; std::__cxx11::string::swap(local_40,param_4); /* try { // try from 0013f047 to 0013f061 has its CatchHandler @ 0013f073 */ this_00 = (UnitTest *)UnitTest::GetInstance(); UnitTest::PushGTestTrace(this_00,(TraceInfo *)&local_50); internal::TraceInfo::~TraceInfo((TraceInfo *)&local_50); return; }
65,386
translog_write_fixed_record
eloqsql/storage/maria/ma_loghandler.c
static my_bool translog_write_fixed_record(LSN *lsn, enum translog_record_type type, MARIA_HA *tbl_info, SHORT_TRANSACTION_ID short_trid, struct st_translog_parts *parts, TRN *trn, void *hook_arg) { struct st_translog_buffer *buffer_to_flush= NULL; uchar chunk1_header[1 + 2]; /* Max number of such LSNs per record is 2 */ uchar compressed_LSNs[MAX_NUMBER_OF_LSNS_PER_RECORD * COMPRESSED_LSN_MAX_STORE_SIZE]; LEX_CUSTRING *part; int rc= 1; DBUG_ENTER("translog_write_fixed_record"); DBUG_ASSERT((log_record_type_descriptor[type].rclass == LOGRECTYPE_FIXEDLENGTH && parts->record_length == log_record_type_descriptor[type].fixed_length) || (log_record_type_descriptor[type].rclass == LOGRECTYPE_PSEUDOFIXEDLENGTH && parts->record_length == log_record_type_descriptor[type].fixed_length)); translog_lock(); DBUG_PRINT("info", ("horizon: " LSN_FMT, LSN_IN_PARTS(log_descriptor.horizon))); DBUG_ASSERT(log_descriptor.bc.current_page_fill <= TRANSLOG_PAGE_SIZE); DBUG_PRINT("info", ("Page size: %u record: %u next cond: %d", log_descriptor.bc.current_page_fill, (parts->record_length + log_record_type_descriptor[type].compressed_LSN * 2 + 3), ((((uint) log_descriptor.bc.current_page_fill) + (parts->record_length + log_record_type_descriptor[type].compressed_LSN * 2 + 3)) > TRANSLOG_PAGE_SIZE))); /* check that there is enough place on current page. NOTE: compressing may increase page LSN size on two bytes for every LSN */ if ((((uint) log_descriptor.bc.current_page_fill) + (parts->record_length + log_record_type_descriptor[type].compressed_LSN * 2 + 3)) > TRANSLOG_PAGE_SIZE) { DBUG_PRINT("info", ("Next page")); if (translog_page_next(&log_descriptor.horizon, &log_descriptor.bc, &buffer_to_flush)) goto err; /* rc == 1 */ if (buffer_to_flush) translog_buffer_lock_assert_owner(buffer_to_flush); } set_lsn(lsn, log_descriptor.horizon); if (translog_set_lsn_for_files(LSN_FILE_NO(*lsn), LSN_FILE_NO(*lsn), *lsn, TRUE) || (log_record_type_descriptor[type].inwrite_hook && (*log_record_type_descriptor[type].inwrite_hook)(type, trn, tbl_info, lsn, hook_arg))) goto err; /* compress LSNs */ if (log_record_type_descriptor[type].rclass == LOGRECTYPE_PSEUDOFIXEDLENGTH) { DBUG_ASSERT(log_record_type_descriptor[type].compressed_LSN > 0); translog_relative_LSN_encode(parts, *lsn, log_record_type_descriptor[type]. compressed_LSN, compressed_LSNs); } /* Write the whole record at once (we know that there is enough place on the destination page) */ DBUG_ASSERT(parts->current != 0); /* first part is left for header */ part= parts->parts + (--parts->current); parts->total_record_length+= (translog_size_t) (part->length= 1 + 2); part->str= chunk1_header; *chunk1_header= (uchar) (type | TRANSLOG_CHUNK_FIXED); int2store(chunk1_header + 1, short_trid); rc= translog_write_parts_on_page(&log_descriptor.horizon, &log_descriptor.bc, parts->total_record_length, parts); log_descriptor.bc.buffer->last_lsn= *lsn; DBUG_PRINT("info", ("last_lsn set to " LSN_FMT " buffer: %p", LSN_IN_PARTS(log_descriptor.bc.buffer->last_lsn), log_descriptor.bc.buffer)); err: translog_unlock(); /* check if we switched buffer and need process it (current buffer is unlocked already => we will not delay other threads */ if (buffer_to_flush != NULL) { if (!rc) rc= translog_buffer_flush(buffer_to_flush); translog_buffer_unlock(buffer_to_flush); } DBUG_RETURN(rc); }
O0
c
translog_write_fixed_record: pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movw %cx, %ax movq 0x10(%rbp), %rcx movq %fs:0x28, %rcx movq %rcx, -0x8(%rbp) movq %rdi, -0x28(%rbp) movl %esi, -0x2c(%rbp) movq %rdx, -0x38(%rbp) movw %ax, -0x3a(%rbp) movq %r8, -0x48(%rbp) movq %r9, -0x50(%rbp) movq $0x0, -0x58(%rbp) movl $0x1, -0x6c(%rbp) jmp 0x8ebe7 callq 0x8a380 jmp 0x8ebee jmp 0x8ebf0 jmp 0x8ebf2 jmp 0x8ebf4 jmp 0x8ebf6 movzwl 0xbfa4a3(%rip), %eax # 0xc890a0 movq -0x48(%rbp), %rcx movl (%rcx), %ecx movl -0x2c(%rbp), %edx movl %edx, %esi leaq 0x3f8611(%rip), %rdx # 0x487220 imulq $0x48, %rsi, %rsi addq %rsi, %rdx movswl 0x20(%rdx), %edx shll %edx addl %edx, %ecx addl $0x3, %ecx addl %ecx, %eax cmpl $0x2000, %eax # imm = 0x2000 jbe 0x8ec63 jmp 0x8ec2c jmp 0x8ec2e leaq 0x3f97eb(%rip), %rsi # 0x488420 movq %rsi, %rdi addq $0x800c48, %rdi # imm = 0x800C48 addq $0x800c50, %rsi # imm = 0x800C50 leaq -0x58(%rbp), %rdx callq 0x93cf0 cmpb $0x0, %al je 0x8ec58 jmp 0x8edf1 cmpq $0x0, -0x58(%rbp) je 0x8ec61 jmp 0x8ec61 jmp 0x8ec63 movq -0x28(%rbp), %rdi movq 0xbfa3fa(%rip), %rsi # 0xc89068 callq 0x95680 movq -0x28(%rbp), %rax movq (%rax), %rax sarq $0x20, %rax movl %eax, %edi movq -0x28(%rbp), %rax movq (%rax), %rax sarq $0x20, %rax movl %eax, %esi movq -0x28(%rbp), %rax movq (%rax), %rdx movl $0x1, %ecx callq 0x956b0 movsbl %al, %eax cmpl $0x0, %eax jne 0x8ecf4 movl -0x2c(%rbp), %eax movl %eax, %ecx leaq 0x3f856e(%rip), %rax # 0x487220 imulq $0x48, %rcx, %rcx addq %rcx, %rax cmpq $0x0, 0x10(%rax) je 0x8ecf9 movl -0x2c(%rbp), %eax movl %eax, %ecx leaq 0x3f8554(%rip), %rax # 0x487220 imulq $0x48, %rcx, %rcx addq %rcx, %rax movq 0x10(%rax), %rax movl -0x2c(%rbp), %edi movq -0x50(%rbp), %rsi movq -0x38(%rbp), %rdx movq -0x28(%rbp), %rcx movq 0x10(%rbp), %r8 callq *%rax movsbl %al, %eax cmpl $0x0, %eax je 0x8ecf9 jmp 0x8edf1 movl -0x2c(%rbp), %eax movl %eax, %ecx leaq 0x3f851b(%rip), %rax # 0x487220 imulq $0x48, %rcx, %rcx addq %rcx, %rax cmpl $0x2, (%rax) jne 0x8ed40 jmp 0x8ed13 jmp 0x8ed15 movq -0x48(%rbp), %rdi movq -0x28(%rbp), %rax movq (%rax), %rsi movl -0x2c(%rbp), %eax movl %eax, %ecx leaq 0x3f84f4(%rip), %rax # 0x487220 imulq $0x48, %rcx, %rcx addq %rcx, %rax movswl 0x20(%rax), %edx leaq -0x20(%rbp), %rcx callq 0x93df0 jmp 0x8ed42 jmp 0x8ed44 movq -0x48(%rbp), %rax movq 0x10(%rax), %rax movq -0x48(%rbp), %rdx movl 0x8(%rdx), %ecx addl $-0x1, %ecx movl %ecx, 0x8(%rdx) movl %ecx, %ecx shlq $0x4, %rcx addq %rcx, %rax movq %rax, -0x68(%rbp) movq -0x68(%rbp), %rax movq $0x3, 0x8(%rax) movq -0x48(%rbp), %rax movl 0x4(%rax), %ecx addl $0x3, %ecx movl %ecx, 0x4(%rax) leaq -0x5b(%rbp), %rcx movq -0x68(%rbp), %rax movq %rcx, (%rax) movl -0x2c(%rbp), %eax orl $0x40, %eax movb %al, -0x5b(%rbp) leaq -0x5b(%rbp), %rax addq $0x1, %rax movq %rax, -0x78(%rbp) movw -0x3a(%rbp), %cx movq -0x78(%rbp), %rax movw %cx, (%rax) movq -0x48(%rbp), %rax movl 0x4(%rax), %edx movq -0x48(%rbp), %rcx leaq 0x3f9664(%rip), %rsi # 0x488420 movq %rsi, %rdi addq $0x800c48, %rdi # imm = 0x800C48 addq $0x800c50, %rsi # imm = 0x800C50 callq 0x95850 movsbl %al, %eax movl %eax, -0x6c(%rbp) movq -0x28(%rbp), %rax movq (%rax), %rcx movq 0xbfa2b2(%rip), %rax # 0xc89098 movq %rcx, 0x100000(%rax) jmp 0x8edef jmp 0x8edf1 callq 0x8a470 cmpq $0x0, -0x58(%rbp) je 0x8ee1b cmpl $0x0, -0x6c(%rbp) jne 0x8ee12 movq -0x58(%rbp), %rdi callq 0x90630 movsbl %al, %eax movl %eax, -0x6c(%rbp) movq -0x58(%rbp), %rdi callq 0x8a440 jmp 0x8ee1d movl -0x6c(%rbp), %eax movb %al, -0x79(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x8ee41 movb -0x79(%rbp), %al addq $0x80, %rsp popq %rbp retq callq 0x2a250 nopw %cs:(%rax,%rax)
translog_write_fixed_record: push rbp mov rbp, rsp sub rsp, 80h mov ax, cx mov rcx, [rbp+arg_0] mov rcx, fs:28h mov [rbp+var_8], rcx mov [rbp+var_28], rdi mov [rbp+var_2C], esi mov [rbp+var_38], rdx mov [rbp+var_3A], ax mov [rbp+var_48], r8 mov [rbp+var_50], r9 mov [rbp+var_58], 0 mov [rbp+var_6C], 1 jmp short $+2 loc_8EBE7: call translog_lock jmp short $+2 loc_8EBEE: jmp short $+2 loc_8EBF0: jmp short $+2 loc_8EBF2: jmp short $+2 loc_8EBF4: jmp short $+2 loc_8EBF6: movzx eax, cs:word_C890A0 mov rcx, [rbp+var_48] mov ecx, [rcx] mov edx, [rbp+var_2C] mov esi, edx lea rdx, log_record_type_descriptor imul rsi, 48h ; 'H' add rdx, rsi movsx edx, word ptr [rdx+20h] shl edx, 1 add ecx, edx add ecx, 3 add eax, ecx cmp eax, 2000h jbe short loc_8EC63 jmp short $+2 loc_8EC2C: jmp short $+2 loc_8EC2E: lea rsi, log_descriptor mov rdi, rsi add rdi, 800C48h add rsi, 800C50h lea rdx, [rbp+var_58] call translog_page_next cmp al, 0 jz short loc_8EC58 jmp loc_8EDF1 loc_8EC58: cmp [rbp+var_58], 0 jz short loc_8EC61 jmp short $+2 loc_8EC61: jmp short $+2 loc_8EC63: mov rdi, [rbp+var_28] mov rsi, cs:qword_C89068 call set_lsn mov rax, [rbp+var_28] mov rax, [rax] sar rax, 20h mov edi, eax mov rax, [rbp+var_28] mov rax, [rax] sar rax, 20h mov esi, eax mov rax, [rbp+var_28] mov rdx, [rax] mov ecx, 1 call translog_set_lsn_for_files movsx eax, al cmp eax, 0 jnz short loc_8ECF4 mov eax, [rbp+var_2C] mov ecx, eax lea rax, log_record_type_descriptor imul rcx, 48h ; 'H' add rax, rcx cmp qword ptr [rax+10h], 0 jz short loc_8ECF9 mov eax, [rbp+var_2C] mov ecx, eax lea rax, log_record_type_descriptor imul rcx, 48h ; 'H' add rax, rcx mov rax, [rax+10h] mov edi, [rbp+var_2C] mov rsi, [rbp+var_50] mov rdx, [rbp+var_38] mov rcx, [rbp+var_28] mov r8, [rbp+arg_0] call rax movsx eax, al cmp eax, 0 jz short loc_8ECF9 loc_8ECF4: jmp loc_8EDF1 loc_8ECF9: mov eax, [rbp+var_2C] mov ecx, eax lea rax, log_record_type_descriptor imul rcx, 48h ; 'H' add rax, rcx cmp dword ptr [rax], 2 jnz short loc_8ED40 jmp short $+2 loc_8ED13: jmp short $+2 loc_8ED15: mov rdi, [rbp+var_48] mov rax, [rbp+var_28] mov rsi, [rax] mov eax, [rbp+var_2C] mov ecx, eax lea rax, log_record_type_descriptor imul rcx, 48h ; 'H' add rax, rcx movsx edx, word ptr [rax+20h] lea rcx, [rbp+var_20] call translog_relative_LSN_encode loc_8ED40: jmp short $+2 loc_8ED42: jmp short $+2 loc_8ED44: mov rax, [rbp+var_48] mov rax, [rax+10h] mov rdx, [rbp+var_48] mov ecx, [rdx+8] add ecx, 0FFFFFFFFh mov [rdx+8], ecx mov ecx, ecx shl rcx, 4 add rax, rcx mov [rbp+var_68], rax mov rax, [rbp+var_68] mov qword ptr [rax+8], 3 mov rax, [rbp+var_48] mov ecx, [rax+4] add ecx, 3 mov [rax+4], ecx lea rcx, [rbp+var_5B] mov rax, [rbp+var_68] mov [rax], rcx mov eax, [rbp+var_2C] or eax, 40h mov [rbp+var_5B], al lea rax, [rbp+var_5B] add rax, 1 mov [rbp+var_78], rax mov cx, [rbp+var_3A] mov rax, [rbp+var_78] mov [rax], cx mov rax, [rbp+var_48] mov edx, [rax+4] mov rcx, [rbp+var_48] lea rsi, log_descriptor mov rdi, rsi add rdi, 800C48h add rsi, 800C50h call translog_write_parts_on_page movsx eax, al mov [rbp+var_6C], eax mov rax, [rbp+var_28] mov rcx, [rax] mov rax, cs:qword_C89098 mov [rax+100000h], rcx jmp short $+2 loc_8EDEF: jmp short $+2 loc_8EDF1: call translog_unlock cmp [rbp+var_58], 0 jz short loc_8EE1B cmp [rbp+var_6C], 0 jnz short loc_8EE12 mov rdi, [rbp+var_58] call translog_buffer_flush movsx eax, al mov [rbp+var_6C], eax loc_8EE12: mov rdi, [rbp+var_58] call translog_buffer_unlock loc_8EE1B: jmp short $+2 loc_8EE1D: mov eax, [rbp+var_6C] mov [rbp+var_79], al mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_8EE41 mov al, [rbp+var_79] add rsp, 80h pop rbp retn loc_8EE41: call ___stack_chk_fail
char translog_write_fixed_record( _QWORD *a1, unsigned int a2, long long a3, __int16 a4, long long a5, long long a6, long long a7) { long long v7; // rax unsigned int v8; // ecx int v10; // [rsp+14h] [rbp-6Ch] char v11; // [rsp+25h] [rbp-5Bh] BYREF __int16 v12; // [rsp+26h] [rbp-5Ah] long long v13; // [rsp+28h] [rbp-58h] BYREF long long v14; // [rsp+30h] [rbp-50h] long long v15; // [rsp+38h] [rbp-48h] __int16 v16; // [rsp+46h] [rbp-3Ah] long long v17; // [rsp+48h] [rbp-38h] unsigned int v18; // [rsp+54h] [rbp-2Ch] _QWORD *v19; // [rsp+58h] [rbp-28h] _BYTE v20[24]; // [rsp+60h] [rbp-20h] BYREF unsigned long long v21; // [rsp+78h] [rbp-8h] v21 = __readfsqword(0x28u); v19 = a1; v18 = a2; v17 = a3; v16 = a4; v15 = a5; v14 = a6; v13 = 0LL; v10 = 1; translog_lock(); if ( 2 * SLOWORD(log_record_type_descriptor[18 * a2 + 8]) + *(_DWORD *)v15 + 3 + (unsigned int)(unsigned __int16)word_C890A0 <= 0x2000 || !(unsigned __int8)translog_page_next(&log_descriptor[1048969], &log_descriptor[1048970], &v13) ) { set_lsn(v19, qword_C89068); if ( !(unsigned __int8)translog_set_lsn_for_files( (unsigned int)HIDWORD(*v19), (unsigned int)HIDWORD(*v19), *v19, 1LL) && (!*(_QWORD *)&log_record_type_descriptor[18 * v18 + 4] || !(*(unsigned __int8 ( **)(_QWORD, long long, long long, _QWORD *, long long))&log_record_type_descriptor[18 * v18 + 4])( v18, v14, v17, v19, a7)) ) { if ( log_record_type_descriptor[18 * v18] == 2 ) translog_relative_LSN_encode(v15, *v19, (unsigned int)SLOWORD(log_record_type_descriptor[18 * v18 + 8]), v20); v7 = *(_QWORD *)(v15 + 16); v8 = *(_DWORD *)(v15 + 8) - 1; *(_DWORD *)(v15 + 8) = v8; *(_QWORD *)(16LL * v8 + v7 + 8) = 3LL; *(_DWORD *)(v15 + 4) += 3; *(_QWORD *)(16LL * v8 + v7) = &v11; v11 = v18 | 0x40; v12 = v16; v10 = (char)translog_write_parts_on_page( &log_descriptor[1048969], &log_descriptor[1048970], *(unsigned int *)(v15 + 4), v15); *(_QWORD *)(qword_C89098 + 0x100000) = *v19; } } translog_unlock(); if ( v13 ) { if ( !v10 ) v10 = (unsigned __int8)translog_buffer_flush(v13); translog_buffer_unlock(v13); } return v10; }
translog_write_fixed_record: PUSH RBP MOV RBP,RSP SUB RSP,0x80 MOV AX,CX MOV RCX,qword ptr [RBP + 0x10] MOV RCX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RCX MOV qword ptr [RBP + -0x28],RDI MOV dword ptr [RBP + -0x2c],ESI MOV qword ptr [RBP + -0x38],RDX MOV word ptr [RBP + -0x3a],AX MOV qword ptr [RBP + -0x48],R8 MOV qword ptr [RBP + -0x50],R9 MOV qword ptr [RBP + -0x58],0x0 MOV dword ptr [RBP + -0x6c],0x1 JMP 0x0018ebe7 LAB_0018ebe7: CALL 0x0018a380 JMP 0x0018ebee LAB_0018ebee: JMP 0x0018ebf0 LAB_0018ebf0: JMP 0x0018ebf2 LAB_0018ebf2: JMP 0x0018ebf4 LAB_0018ebf4: JMP 0x0018ebf6 LAB_0018ebf6: MOVZX EAX,word ptr [0x00d890a0] MOV RCX,qword ptr [RBP + -0x48] MOV ECX,dword ptr [RCX] MOV EDX,dword ptr [RBP + -0x2c] MOV ESI,EDX LEA RDX,[0x587220] IMUL RSI,RSI,0x48 ADD RDX,RSI MOVSX EDX,word ptr [RDX + 0x20] SHL EDX,0x1 ADD ECX,EDX ADD ECX,0x3 ADD EAX,ECX CMP EAX,0x2000 JBE 0x0018ec63 JMP 0x0018ec2c LAB_0018ec2c: JMP 0x0018ec2e LAB_0018ec2e: LEA RSI,[0x588420] MOV RDI,RSI ADD RDI,0x800c48 ADD RSI,0x800c50 LEA RDX,[RBP + -0x58] CALL 0x00193cf0 CMP AL,0x0 JZ 0x0018ec58 JMP 0x0018edf1 LAB_0018ec58: CMP qword ptr [RBP + -0x58],0x0 JZ 0x0018ec61 JMP 0x0018ec61 LAB_0018ec61: JMP 0x0018ec63 LAB_0018ec63: MOV RDI,qword ptr [RBP + -0x28] MOV RSI,qword ptr [0x00d89068] CALL 0x00195680 MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX] SAR RAX,0x20 MOV EDI,EAX MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX] SAR RAX,0x20 MOV ESI,EAX MOV RAX,qword ptr [RBP + -0x28] MOV RDX,qword ptr [RAX] MOV ECX,0x1 CALL 0x001956b0 MOVSX EAX,AL CMP EAX,0x0 JNZ 0x0018ecf4 MOV EAX,dword ptr [RBP + -0x2c] MOV ECX,EAX LEA RAX,[0x587220] IMUL RCX,RCX,0x48 ADD RAX,RCX CMP qword ptr [RAX + 0x10],0x0 JZ 0x0018ecf9 MOV EAX,dword ptr [RBP + -0x2c] MOV ECX,EAX LEA RAX,[0x587220] IMUL RCX,RCX,0x48 ADD RAX,RCX MOV RAX,qword ptr [RAX + 0x10] MOV EDI,dword ptr [RBP + -0x2c] MOV RSI,qword ptr [RBP + -0x50] MOV RDX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RBP + -0x28] MOV R8,qword ptr [RBP + 0x10] CALL RAX MOVSX EAX,AL CMP EAX,0x0 JZ 0x0018ecf9 LAB_0018ecf4: JMP 0x0018edf1 LAB_0018ecf9: MOV EAX,dword ptr [RBP + -0x2c] MOV ECX,EAX LEA RAX,[0x587220] IMUL RCX,RCX,0x48 ADD RAX,RCX CMP dword ptr [RAX],0x2 JNZ 0x0018ed40 JMP 0x0018ed13 LAB_0018ed13: JMP 0x0018ed15 LAB_0018ed15: MOV RDI,qword ptr [RBP + -0x48] MOV RAX,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RAX] MOV EAX,dword ptr [RBP + -0x2c] MOV ECX,EAX LEA RAX,[0x587220] IMUL RCX,RCX,0x48 ADD RAX,RCX MOVSX EDX,word ptr [RAX + 0x20] LEA RCX,[RBP + -0x20] CALL 0x00193df0 LAB_0018ed40: JMP 0x0018ed42 LAB_0018ed42: JMP 0x0018ed44 LAB_0018ed44: MOV RAX,qword ptr [RBP + -0x48] MOV RAX,qword ptr [RAX + 0x10] MOV RDX,qword ptr [RBP + -0x48] MOV ECX,dword ptr [RDX + 0x8] ADD ECX,-0x1 MOV dword ptr [RDX + 0x8],ECX MOV ECX,ECX SHL RCX,0x4 ADD RAX,RCX MOV qword ptr [RBP + -0x68],RAX MOV RAX,qword ptr [RBP + -0x68] MOV qword ptr [RAX + 0x8],0x3 MOV RAX,qword ptr [RBP + -0x48] MOV ECX,dword ptr [RAX + 0x4] ADD ECX,0x3 MOV dword ptr [RAX + 0x4],ECX LEA RCX,[RBP + -0x5b] MOV RAX,qword ptr [RBP + -0x68] MOV qword ptr [RAX],RCX MOV EAX,dword ptr [RBP + -0x2c] OR EAX,0x40 MOV byte ptr [RBP + -0x5b],AL LEA RAX,[RBP + -0x5b] ADD RAX,0x1 MOV qword ptr [RBP + -0x78],RAX MOV CX,word ptr [RBP + -0x3a] MOV RAX,qword ptr [RBP + -0x78] MOV word ptr [RAX],CX MOV RAX,qword ptr [RBP + -0x48] MOV EDX,dword ptr [RAX + 0x4] MOV RCX,qword ptr [RBP + -0x48] LEA RSI,[0x588420] MOV RDI,RSI ADD RDI,0x800c48 ADD RSI,0x800c50 CALL 0x00195850 MOVSX EAX,AL MOV dword ptr [RBP + -0x6c],EAX MOV RAX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [0x00d89098] MOV qword ptr [RAX + 0x100000],RCX JMP 0x0018edef LAB_0018edef: JMP 0x0018edf1 LAB_0018edf1: CALL 0x0018a470 CMP qword ptr [RBP + -0x58],0x0 JZ 0x0018ee1b CMP dword ptr [RBP + -0x6c],0x0 JNZ 0x0018ee12 MOV RDI,qword ptr [RBP + -0x58] CALL 0x00190630 MOVSX EAX,AL MOV dword ptr [RBP + -0x6c],EAX LAB_0018ee12: MOV RDI,qword ptr [RBP + -0x58] CALL 0x0018a440 LAB_0018ee1b: JMP 0x0018ee1d LAB_0018ee1d: MOV EAX,dword ptr [RBP + -0x6c] MOV byte ptr [RBP + -0x79],AL MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x0018ee41 MOV AL,byte ptr [RBP + -0x79] ADD RSP,0x80 POP RBP RET LAB_0018ee41: CALL 0x0012a250
int8 translog_write_fixed_record (long *param_1,uint param_2,int8 param_3,int2 param_4,int *param_5, int8 param_6,int8 param_7) { int iVar1; char cVar2; char cVar3; long *plVar4; long in_FS_OFFSET; byte local_63; int2 local_62; long local_60; int8 local_58; int *local_50; int2 local_42; int8 local_40; uint local_34; long *local_30; int1 local_28 [24]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_60 = 0; cVar3 = '\x01'; local_58 = param_6; local_50 = param_5; local_42 = param_4; local_40 = param_3; local_34 = param_2; local_30 = param_1; translog_lock(); if (((uint)DAT_00d890a0 + *local_50 + *(short *)(log_record_type_descriptor + (ulong)local_34 * 0x48 + 0x20) * 2 + 3 < 0x2001) || (cVar2 = translog_page_next(&DAT_00d89068,&DAT_00d89070,&local_60), cVar2 == '\0') ) { set_lsn(local_30,DAT_00d89068); cVar2 = translog_set_lsn_for_files (*local_30 >> 0x20 & 0xffffffff,*local_30 >> 0x20 & 0xffffffff,*local_30,1); if ((cVar2 == '\0') && ((*(long *)(log_record_type_descriptor + (ulong)local_34 * 0x48 + 0x10) == 0 || (cVar2 = (**(code **)(log_record_type_descriptor + (ulong)local_34 * 0x48 + 0x10)) (local_34,local_58,local_40,local_30,param_7), cVar2 == '\0')))) { if (*(int *)(log_record_type_descriptor + (ulong)local_34 * 0x48) == 2) { translog_relative_LSN_encode (local_50,*local_30, (int)*(short *)(log_record_type_descriptor + (ulong)local_34 * 0x48 + 0x20), local_28); } iVar1 = local_50[2]; local_50[2] = iVar1 - 1U; plVar4 = (long *)(*(long *)(local_50 + 4) + (ulong)(iVar1 - 1U) * 0x10); plVar4[1] = 3; local_50[1] = local_50[1] + 3; *plVar4 = (long)&local_63; local_63 = (byte)local_34 | 0x40; local_62 = local_42; cVar3 = translog_write_parts_on_page(&DAT_00d89068,&DAT_00d89070,local_50[1],local_50); *(long *)(DAT_00d89098 + 0x100000) = *local_30; } } translog_unlock(); if (local_60 != 0) { if (cVar3 == '\0') { cVar3 = translog_buffer_flush(local_60); } translog_buffer_unlock(local_60); } if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),cVar3); } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
65,387
minja::CallExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const
llama.cpp/common/minja/minja.hpp
Value do_evaluate(const std::shared_ptr<Context> & context) const override { if (!object) throw std::runtime_error("CallExpr.object is null"); auto obj = object->evaluate(context); if (!obj.is_callable()) { throw std::runtime_error("Object is not callable: " + obj.dump(2)); } auto vargs = args.evaluate(context); return obj.call(context, vargs); }
O3
cpp
minja::CallExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const: pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0xa0, %rsp movq %rsi, %r15 movq 0x20(%rsi), %rsi testq %rsi, %rsi je 0xf4231 movq %rdx, %r14 movq %rdi, %rbx leaq 0x50(%rsp), %r12 movq %r12, %rdi callq 0xe9d3e cmpq $0x0, 0x30(%r12) je 0xf4263 addq $0x30, %r15 movq %rsp, %rdi movq %r15, %rsi movq %r14, %rdx callq 0xf22f2 leaq 0x50(%rsp), %rsi movq %rsp, %rcx movq %rbx, %rdi movq %r14, %rdx callq 0xd3860 leaq 0x18(%rsp), %rdi callq 0xd3f2a movq %rsp, %rdi callq 0xc7af6 leaq 0x90(%rsp), %r14 movq %r14, %rdi xorl %esi, %esi callq 0x9524a movq %r14, %rdi callq 0x3488a leaq 0x88(%rsp), %rdi callq 0x46496 leaq 0x78(%rsp), %rdi callq 0x46496 leaq 0x68(%rsp), %r14 movq %r14, %rdi callq 0x46496 movq -0x10(%r14), %rdi testq %rdi, %rdi je 0xf421e movq 0x79d9f(%rip), %rax # 0x16df98 cmpb $0x0, (%rax) je 0xf4209 movl 0xc(%rdi), %eax leal -0x1(%rax), %ecx movl %ecx, 0xc(%rdi) jmp 0xf4213 movl $0xffffffff, %eax # imm = 0xFFFFFFFF lock xaddl %eax, 0xc(%rdi) cmpl $0x1, %eax jne 0xf421e movq (%rdi), %rax callq *0x18(%rax) movq %rbx, %rax addq $0xa0, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movl $0x10, %edi callq 0x21660 movq %rax, %rbx leaq 0x37968(%rip), %rsi # 0x12bbad movq %rax, %rdi callq 0x21430 movq 0x79d6c(%rip), %rsi # 0x16dfc0 movq 0x79d25(%rip), %rdx # 0x16df80 movq %rbx, %rdi callq 0x21a80 movl $0x10, %edi callq 0x21660 movq %rax, %rbx leaq 0x30(%rsp), %rdi leaq 0x50(%rsp), %rsi movl $0x2, %edx xorl %ecx, %ecx callq 0xc030c leaq 0x37b55(%rip), %rsi # 0x12bde2 movq %rsp, %rdi leaq 0x30(%rsp), %rdx callq 0xba080 movb $0x1, %bpl movq %rsp, %rsi movq %rbx, %rdi callq 0x21480 xorl %ebp, %ebp movq 0x79d0f(%rip), %rsi # 0x16dfc0 movq 0x79cc8(%rip), %rdx # 0x16df80 movq %rbx, %rdi callq 0x21a80 movq %rax, %r14 leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xf42de movq 0x10(%rsp), %rsi incq %rsi callq 0x21180 leaq 0x40(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xf42f9 movq 0x40(%rsp), %rsi incq %rsi callq 0x21180 testb %bpl, %bpl jne 0xf4323 jmp 0xf4354 movq %rax, %r14 leaq 0x40(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xf4323 movq 0x40(%rsp), %rsi incq %rsi callq 0x21180 jmp 0xf4323 movq %rax, %r14 movq %rbx, %rdi callq 0x21f50 jmp 0xf4354 movq %rax, %r14 movq %rbx, %rdi callq 0x21f50 jmp 0xf435e movq %rax, %r14 leaq 0x18(%rsp), %rdi callq 0xd3f2a movq %rsp, %rdi callq 0xc7af6 jmp 0xf4354 movq %rax, %r14 leaq 0x50(%rsp), %rdi callq 0xc03a8 movq %r14, %rdi callq 0x21b20
_ZNK5minja8CallExpr11do_evaluateERKSt10shared_ptrINS_7ContextEE: push rbp push r15 push r14 push r12 push rbx sub rsp, 0A0h mov r15, rsi mov rsi, [rsi+20h] test rsi, rsi jz loc_F4231 mov r14, rdx mov rbx, rdi lea r12, [rsp+0C8h+var_78] mov rdi, r12 call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&) cmp qword ptr [r12+30h], 0 jz loc_F4263 add r15, 30h ; '0' mov rdi, rsp mov rsi, r15 mov rdx, r14 call _ZNK5minja19ArgumentsExpression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::ArgumentsExpression::evaluate(std::shared_ptr<minja::Context> const&) lea rsi, [rsp+0C8h+var_78] mov rcx, rsp mov rdi, rbx mov rdx, r14 call _ZNK5minja5Value4callERKSt10shared_ptrINS_7ContextEERNS_14ArgumentsValueE; minja::Value::call(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &) lea rdi, [rsp+0C8h+var_B0] call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5minja5ValueEESaIS9_EED2Ev; std::vector<std::pair<std::string,minja::Value>>::~vector() mov rdi, rsp call _ZNSt6vectorIN5minja5ValueESaIS1_EED2Ev; std::vector<minja::Value>::~vector() lea r14, [rsp+0C8h+var_38] 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() lea rdi, [rsp+0C8h+var_40] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() lea rdi, [rsp+0C8h+var_50] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() lea r14, [rsp+0C8h+var_60] mov rdi, r14 call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() mov rdi, [r14-10h] test rdi, rdi jz short loc_F421E mov rax, cs:_ZTISt19_Sp_make_shared_tag; `typeinfo for'std::_Sp_make_shared_tag cmp byte ptr [rax], 0 jz short loc_F4209 mov eax, [rdi+0Ch] lea ecx, [rax-1] mov [rdi+0Ch], ecx jmp short loc_F4213 loc_F4209: mov eax, 0FFFFFFFFh lock xadd [rdi+0Ch], eax loc_F4213: cmp eax, 1 jnz short loc_F421E mov rax, [rdi] call qword ptr [rax+18h] loc_F421E: mov rax, rbx add rsp, 0A0h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_F4231: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rsi, aMethodcallexpr+6; char * 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, rbx; void * call ___cxa_throw loc_F4263: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rdi, [rsp+0C8h+var_98] lea rsi, [rsp+0C8h+var_78] mov edx, 2 xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) lea rsi, aObjectIsNotCal; "Object is not callable: " mov rdi, rsp lea rdx, [rsp+0C8h+var_98] 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:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rax, [rsp+0C8h+var_B8] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_F42DE mov rsi, [rsp+0C8h+var_B8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_F42DE: lea rax, [rsp+0C8h+var_88] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_F42F9 mov rsi, [rsp+0C8h+var_88] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_F42F9: test bpl, bpl jnz short loc_F4323 jmp short loc_F4354 mov r14, rax lea rax, [rsp+0C8h+var_88] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_F4323 mov rsi, [rsp+0C8h+var_88] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_F4323 mov r14, rax loc_F4323: mov rdi, rbx; void * call ___cxa_free_exception jmp short loc_F4354 mov r14, rax mov rdi, rbx; void * call ___cxa_free_exception jmp short loc_F435E mov r14, rax lea rdi, [rsp+0C8h+var_B0] call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5minja5ValueEESaIS9_EED2Ev; std::vector<std::pair<std::string,minja::Value>>::~vector() mov rdi, rsp call _ZNSt6vectorIN5minja5ValueESaIS1_EED2Ev; std::vector<minja::Value>::~vector() jmp short loc_F4354 mov r14, rax loc_F4354: lea rdi, [rsp+0C8h+var_78]; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() loc_F435E: mov rdi, r14 call __Unwind_Resume
long long minja::CallExpr::do_evaluate(long long a1, long long a2) { void (***v3)(void); // rsi long long v5; // rdi signed __int32 v6; // eax std::runtime_error *exception; // rbx void *v9; // rbx __int128 v10; // [rsp+0h] [rbp-C8h] BYREF _QWORD v11[3]; // [rsp+18h] [rbp-B0h] BYREF _BYTE v12[16]; // [rsp+30h] [rbp-98h] BYREF _BYTE v13[8]; // [rsp+50h] [rbp-78h] BYREF long long v14; // [rsp+58h] [rbp-70h] volatile signed __int32 *v15; // [rsp+68h] [rbp-60h] BYREF volatile signed __int32 *v16[2]; // [rsp+78h] [rbp-50h] BYREF volatile signed __int32 *v17; // [rsp+88h] [rbp-40h] BYREF char v18[56]; // [rsp+90h] [rbp-38h] BYREF v3 = *(void (****)(void))(a2 + 32); if ( !v3 ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "CallExpr.object is null"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } minja::Expression::evaluate((long long)v13, v3); if ( !v16[1] ) { v9 = __cxa_allocate_exception(0x10uLL); minja::Value::dump[abi:cxx11]((long long)v12, (long long)v13, 2u, 0); std::operator+<char>(&v10, (long long)"Object is not callable: ", (long long)v12); std::runtime_error::runtime_error(v9, &v10); __cxa_throw( v9, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } minja::ArgumentsExpression::evaluate(&v10, (long long *)(a2 + 48)); minja::Value::call(a1, (long long)v13); std::vector<std::pair<std::string,minja::Value>>::~vector(v11); std::vector<minja::Value>::~vector(&v10); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v18); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v18); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v17); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v16); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v15); v5 = v14; if ( v14 ) { if ( _libc_single_threaded ) { v6 = *(_DWORD *)(v14 + 12); *(_DWORD *)(v14 + 12) = v6 - 1; } else { v6 = _InterlockedExchangeAdd((volatile signed __int32 *)(v14 + 12), 0xFFFFFFFF); } if ( v6 == 1 ) (*(void ( **)(long long, _QWORD))(*(_QWORD *)v5 + 24LL))(v5, 0LL); } return a1; }
do_evaluate: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0xa0 MOV R15,RSI MOV RSI,qword ptr [RSI + 0x20] TEST RSI,RSI JZ 0x001f4231 MOV R14,RDX MOV RBX,RDI LEA R12,[RSP + 0x50] MOV RDI,R12 CALL 0x001e9d3e CMP qword ptr [R12 + 0x30],0x0 JZ 0x001f4263 ADD R15,0x30 LAB_001f4178: MOV RDI,RSP MOV RSI,R15 MOV RDX,R14 CALL 0x001f22f2 LAB_001f4186: LEA RSI,[RSP + 0x50] MOV RCX,RSP MOV RDI,RBX MOV RDX,R14 CALL 0x001d3860 LAB_001f4199: LEA RDI,[RSP + 0x18] CALL 0x001d3f2a MOV RDI,RSP CALL 0x001c7af6 LEA R14,[RSP + 0x90] MOV RDI,R14 XOR ESI,ESI CALL 0x0019524a MOV RDI,R14 CALL 0x0013488a LEA RDI,[RSP + 0x88] CALL 0x00146496 LEA RDI,[RSP + 0x78] CALL 0x00146496 LEA R14,[RSP + 0x68] MOV RDI,R14 CALL 0x00146496 MOV RDI,qword ptr [R14 + -0x10] TEST RDI,RDI JZ 0x001f421e MOV RAX,qword ptr [0x0026df98] CMP byte ptr [RAX],0x0 JZ 0x001f4209 MOV EAX,dword ptr [RDI + 0xc] LEA ECX,[RAX + -0x1] MOV dword ptr [RDI + 0xc],ECX JMP 0x001f4213 LAB_001f4209: MOV EAX,0xffffffff XADD.LOCK dword ptr [RDI + 0xc],EAX LAB_001f4213: CMP EAX,0x1 JNZ 0x001f421e MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x18] LAB_001f421e: MOV RAX,RBX ADD RSP,0xa0 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_001f4231: MOV EDI,0x10 CALL 0x00121660 MOV RBX,RAX LAB_001f423e: LEA RSI,[0x22bbad] MOV RDI,RAX CALL 0x00121430 LAB_001f424d: MOV RSI,qword ptr [0x0026dfc0] MOV RDX,qword ptr [0x0026df80] MOV RDI,RBX CALL 0x00121a80 LAB_001f4263: MOV EDI,0x10 CALL 0x00121660 MOV RBX,RAX LAB_001f4270: LEA RDI,[RSP + 0x30] LEA RSI,[RSP + 0x50] MOV EDX,0x2 XOR ECX,ECX CALL 0x001c030c LAB_001f4286: LEA RSI,[0x22bde2] MOV RDI,RSP LEA RDX,[RSP + 0x30] CALL 0x001ba080 MOV BPL,0x1 LAB_001f429d: MOV RSI,RSP MOV RDI,RBX CALL 0x00121480 XOR EBP,EBP MOV RSI,qword ptr [0x0026dfc0] MOV RDX,qword ptr [0x0026df80] MOV RDI,RBX CALL 0x00121a80
/* minja::CallExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const */ CallExpr * __thiscall minja::CallExpr::do_evaluate(CallExpr *this,shared_ptr *param_1) { int *piVar1; int iVar2; runtime_error *prVar3; ArgumentsExpression aAStack_c8 [24]; vector<std::pair<std::__cxx11::string,minja::Value>,std::allocator<std::pair<std::__cxx11::string,minja::Value>>> local_b0 [24]; int1 local_98 [32]; Expression local_78 [8]; long *local_70; __shared_count<(__gnu_cxx::_Lock_policy)2> local_60 [16]; __shared_count<(__gnu_cxx::_Lock_policy)2> local_50 [8]; long local_48; __shared_count<(__gnu_cxx::_Lock_policy)2> local_40 [8]; data local_38 [16]; if (*(shared_ptr **)(param_1 + 0x20) == (shared_ptr *)0x0) { prVar3 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001f423e to 001f424c has its CatchHandler @ 001f432d */ std::runtime_error::runtime_error(prVar3,"CallExpr.object is null"); /* WARNING: Subroutine does not return */ __cxa_throw(prVar3,PTR_typeinfo_0026dfc0,PTR__runtime_error_0026df80); } Expression::evaluate(local_78,*(shared_ptr **)(param_1 + 0x20)); if (local_48 != 0) { /* try { // try from 001f4178 to 001f4185 has its CatchHandler @ 001f4351 */ ArgumentsExpression::evaluate(aAStack_c8,param_1 + 0x30); /* try { // try from 001f4186 to 001f4198 has its CatchHandler @ 001f433a */ Value::call(this,(ArgumentsValue *)local_78); std:: vector<std::pair<std::__cxx11::string,minja::Value>,std::allocator<std::pair<std::__cxx11::string,minja::Value>>> ::~vector(local_b0); std::vector<minja::Value,std::allocator<minja::Value>>::~vector ((vector<minja::Value,std::allocator<minja::Value>> *)aAStack_c8); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_40); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_50); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_60); if (local_70 != (long *)0x0) { if (*PTR___libc_single_threaded_0026df98 == '\0') { LOCK(); piVar1 = (int *)((long)local_70 + 0xc); iVar2 = *piVar1; *piVar1 = *piVar1 + -1; UNLOCK(); } else { iVar2 = *(int *)((long)local_70 + 0xc); *(int *)((long)local_70 + 0xc) = iVar2 + -1; } if (iVar2 == 1) { (**(code **)(*local_70 + 0x18))(); } } return this; } prVar3 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001f4270 to 001f4285 has its CatchHandler @ 001f4320 */ Value::dump_abi_cxx11_((int)local_98,SUB81(local_78,0)); /* try { // try from 001f4286 to 001f4299 has its CatchHandler @ 001f4300 */ std::operator+((char *)aAStack_c8,(string *)"Object is not callable: "); /* try { // try from 001f429d to 001f42bf has its CatchHandler @ 001f42c0 */ std::runtime_error::runtime_error(prVar3,(string *)aAStack_c8); /* WARNING: Subroutine does not return */ __cxa_throw(prVar3,PTR_typeinfo_0026dfc0,PTR__runtime_error_0026df80); }
65,388
fill_uchar
eloqsql/strings/ctype.c
static int fill_uchar(uchar *a,uint size,const char *str, size_t len) { uint i= 0; const char *s, *b, *e=str+len; for (s=str ; s < e ; i++) { for ( ; (s < e) && strchr(" \t\r\n",s[0]); s++) ; b=s; for ( ; (s < e) && !strchr(" \t\r\n",s[0]); s++) ; if (s == b || i > size) break; a[i]= (uchar) strtoul(b,NULL,16); } return 0; }
O0
c
fill_uchar: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movl $0x0, -0x24(%rbp) movq -0x18(%rbp), %rax addq -0x20(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rax cmpq -0x40(%rbp), %rax jae 0x14db76 jmp 0x14daa2 movq -0x30(%rbp), %rcx xorl %eax, %eax cmpq -0x40(%rbp), %rcx movb %al, -0x41(%rbp) jae 0x14dace movq -0x30(%rbp), %rax movsbl (%rax), %esi leaq 0x14573(%rip), %rdi # 0x162032 callq 0x2a440 cmpq $0x0, %rax setne %al movb %al, -0x41(%rbp) movb -0x41(%rbp), %al testb $0x1, %al jne 0x14dad7 jmp 0x14dae7 jmp 0x14dad9 movq -0x30(%rbp), %rax addq $0x1, %rax movq %rax, -0x30(%rbp) jmp 0x14daa2 movq -0x30(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x30(%rbp), %rcx xorl %eax, %eax cmpq -0x40(%rbp), %rcx movb %al, -0x42(%rbp) jae 0x14db1d movq -0x30(%rbp), %rax movsbl (%rax), %esi leaq 0x14526(%rip), %rdi # 0x162032 callq 0x2a440 cmpq $0x0, %rax setne %al xorb $-0x1, %al movb %al, -0x42(%rbp) movb -0x42(%rbp), %al testb $0x1, %al jne 0x14db26 jmp 0x14db36 jmp 0x14db28 movq -0x30(%rbp), %rax addq $0x1, %rax movq %rax, -0x30(%rbp) jmp 0x14daef movq -0x30(%rbp), %rax cmpq -0x38(%rbp), %rax je 0x14db48 movl -0x24(%rbp), %eax cmpl -0xc(%rbp), %eax jbe 0x14db4a jmp 0x14db76 movq -0x38(%rbp), %rdi xorl %eax, %eax movl %eax, %esi movl $0x10, %edx callq 0x2a0a0 movb %al, %dl movq -0x8(%rbp), %rax movl -0x24(%rbp), %ecx movb %dl, (%rax,%rcx) movl -0x24(%rbp), %eax addl $0x1, %eax movl %eax, -0x24(%rbp) jmp 0x14da92 xorl %eax, %eax addq $0x50, %rsp popq %rbp retq nop
fill_uchar: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_24], 0 mov rax, [rbp+var_18] add rax, [rbp+var_20] mov [rbp+var_40], rax mov rax, [rbp+var_18] mov [rbp+var_30], rax loc_14DA92: mov rax, [rbp+var_30] cmp rax, [rbp+var_40] jnb loc_14DB76 jmp short $+2 loc_14DAA2: mov rcx, [rbp+var_30] xor eax, eax cmp rcx, [rbp+var_40] mov [rbp+var_41], al jnb short loc_14DACE mov rax, [rbp+var_30] movsx esi, byte ptr [rax] lea rdi, asc_162032; " \t\r\n" call _strchr cmp rax, 0 setnz al mov [rbp+var_41], al loc_14DACE: mov al, [rbp+var_41] test al, 1 jnz short loc_14DAD7 jmp short loc_14DAE7 loc_14DAD7: jmp short $+2 loc_14DAD9: mov rax, [rbp+var_30] add rax, 1 mov [rbp+var_30], rax jmp short loc_14DAA2 loc_14DAE7: mov rax, [rbp+var_30] mov [rbp+var_38], rax loc_14DAEF: mov rcx, [rbp+var_30] xor eax, eax cmp rcx, [rbp+var_40] mov [rbp+var_42], al jnb short loc_14DB1D mov rax, [rbp+var_30] movsx esi, byte ptr [rax] lea rdi, asc_162032; " \t\r\n" call _strchr cmp rax, 0 setnz al xor al, 0FFh mov [rbp+var_42], al loc_14DB1D: mov al, [rbp+var_42] test al, 1 jnz short loc_14DB26 jmp short loc_14DB36 loc_14DB26: jmp short $+2 loc_14DB28: mov rax, [rbp+var_30] add rax, 1 mov [rbp+var_30], rax jmp short loc_14DAEF loc_14DB36: mov rax, [rbp+var_30] cmp rax, [rbp+var_38] jz short loc_14DB48 mov eax, [rbp+var_24] cmp eax, [rbp+var_C] jbe short loc_14DB4A loc_14DB48: jmp short loc_14DB76 loc_14DB4A: mov rdi, [rbp+var_38] xor eax, eax mov esi, eax mov edx, 10h call ___isoc23_strtoul mov dl, al mov rax, [rbp+var_8] mov ecx, [rbp+var_24] mov [rax+rcx], dl mov eax, [rbp+var_24] add eax, 1 mov [rbp+var_24], eax jmp loc_14DA92 loc_14DB76: xor eax, eax add rsp, 50h pop rbp retn
long long fill_uchar(long long a1, unsigned int a2, char *a3, long long a4) { char v5; // [rsp+Eh] [rbp-42h] bool v6; // [rsp+Fh] [rbp-41h] unsigned long long v7; // [rsp+10h] [rbp-40h] char *v8; // [rsp+18h] [rbp-38h] char *v9; // [rsp+20h] [rbp-30h] unsigned int v10; // [rsp+2Ch] [rbp-24h] v10 = 0; v7 = (unsigned long long)&a3[a4]; v9 = a3; while ( (unsigned long long)v9 < v7 ) { while ( 1 ) { v6 = 0; if ( (unsigned long long)v9 < v7 ) v6 = strchr(" \t\r\n", (unsigned int)*v9) != 0; if ( !v6 ) break; ++v9; } v8 = v9; while ( 1 ) { v5 = 0; if ( (unsigned long long)v9 < v7 ) v5 = ~(strchr(" \t\r\n", (unsigned int)*v9) != 0); if ( (v5 & 1) == 0 ) break; ++v9; } if ( v9 == v8 || v10 > a2 ) break; *(_BYTE *)(a1 + v10++) = __isoc23_strtoul(v8, 0LL, 16LL); } return 0LL; }
_ma_read_mempack_record: PUSH RBP MOV RBP,RSP SUB RSP,0xa0 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x70],RDI MOV qword ptr [RBP + -0x78],RSI MOV qword ptr [RBP + -0x80],RDX MOV RAX,qword ptr [RBP + -0x70] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x88],RAX CMP qword ptr [RBP + -0x80],-0x1 JNZ 0x0014daaa JMP 0x0014da9b LAB_0014da9b: CALL 0x001fe880 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x64],EAX JMP 0x0014db2d LAB_0014daaa: MOV RDI,qword ptr [RBP + -0x70] MOV RSI,qword ptr [RBP + -0x70] ADD RSI,0x290 MOV RCX,qword ptr [RBP + -0x70] ADD RCX,0x3a0 MOV R8,qword ptr [RBP + -0x70] ADD R8,0x460 MOV RAX,qword ptr [RBP + -0x88] MOV R9,qword ptr [RAX + 0x5f0] ADD R9,qword ptr [RBP + -0x80] LEA RDX,[RBP + -0x60] CALL 0x001502f0 MOV qword ptr [RBP + -0x90],RAX CMP RAX,0x0 JNZ 0x0014db05 JMP 0x0014daf9 LAB_0014daf9: CALL 0x001fe880 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x64],EAX JMP 0x0014db2d LAB_0014db05: JMP 0x0014db07 LAB_0014db07: MOV RDI,qword ptr [RBP + -0x70] MOV RSI,qword ptr [RBP + -0x70] ADD RSI,0x290 MOV RDX,qword ptr [RBP + -0x78] MOV RCX,qword ptr [RBP + -0x90] MOV R8,qword ptr [RBP + -0x48] CALL 0x0014d340 MOV dword ptr [RBP + -0x64],EAX LAB_0014db2d: MOV EAX,dword ptr [RBP + -0x64] MOV dword ptr [RBP + -0x94],EAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x0014db57 MOV EAX,dword ptr [RBP + -0x94] ADD RSP,0xa0 POP RBP RET LAB_0014db57: CALL 0x0012a270
int4 _ma_read_mempack_record(long *param_1,int8 param_2,long param_3) { int4 *puVar1; long lVar2; long in_FS_OFFSET; int4 local_6c; int1 local_68 [24]; int8 local_50; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); if (param_3 == -1) { puVar1 = (int4 *)_my_thread_var(); local_6c = *puVar1; } else { lVar2 = _ma_mempack_get_block_info (param_1,param_1 + 0x52,local_68,param_1 + 0x74,param_1 + 0x8c, *(long *)(*param_1 + 0x5f0) + param_3); if (lVar2 == 0) { puVar1 = (int4 *)_my_thread_var(); local_6c = *puVar1; } else { local_6c = _ma_pack_rec_unpack(param_1,param_1 + 0x52,param_2,lVar2,local_50); } } if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return local_6c; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
65,389
PVG_FT_Stroker_Set
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-ft-stroker.c
void PVG_FT_Stroker_Set(PVG_FT_Stroker stroker, PVG_FT_Fixed radius, PVG_FT_Stroker_LineCap line_cap, PVG_FT_Stroker_LineJoin line_join, PVG_FT_Fixed miter_limit) { stroker->radius = radius; stroker->line_cap = line_cap; stroker->line_join = line_join; stroker->miter_limit = miter_limit; /* ensure miter limit has sensible value */ if (stroker->miter_limit < 0x10000) stroker->miter_limit = 0x10000; /* save line join style: */ /* line join style can be temporarily changed when stroking curves */ stroker->line_join_saved = line_join; PVG_FT_Stroker_Rewind(stroker); }
O2
c
PVG_FT_Stroker_Set: movq %rsi, 0x68(%rdi) movl %edx, 0x54(%rdi) cmpq $0x10001, %r8 # imm = 0x10001 movl $0x10000, %eax # imm = 0x10000 cmovgeq %r8, %rax movl %ecx, 0x58(%rdi) movq %rax, 0x60(%rdi) movl %ecx, 0x5c(%rdi) jmp 0x353a3
PVG_FT_Stroker_Set: mov [rdi+68h], rsi mov [rdi+54h], edx cmp r8, offset loc_10001 mov eax, 10000h cmovge rax, r8 mov [rdi+58h], ecx mov [rdi+60h], rax mov [rdi+5Ch], ecx jmp PVG_FT_Stroker_Rewind
long long PVG_FT_Stroker_Set(long long a1, long long a2, int a3, int a4, long long a5) { long long v5; // rax *(_QWORD *)(a1 + 104) = a2; *(_DWORD *)(a1 + 84) = a3; v5 = 0x10000LL; if ( a5 >= (long long)&loc_10001 ) v5 = a5; *(_DWORD *)(a1 + 88) = a4; *(_QWORD *)(a1 + 96) = v5; *(_DWORD *)(a1 + 92) = a4; return PVG_FT_Stroker_Rewind(a1); }
PVG_FT_Stroker_Set: MOV qword ptr [RDI + 0x68],RSI MOV dword ptr [RDI + 0x54],EDX CMP R8,0x10001 MOV EAX,0x10000 CMOVGE RAX,R8 MOV dword ptr [RDI + 0x58],ECX MOV qword ptr [RDI + 0x60],RAX MOV dword ptr [RDI + 0x5c],ECX JMP 0x001353a3
void PVG_FT_Stroker_Set(long param_1,int8 param_2,int4 param_3,int4 param_4, long param_5) { long lVar1; *(int8 *)(param_1 + 0x68) = param_2; *(int4 *)(param_1 + 0x54) = param_3; lVar1 = 0x10000; if (0x10000 < param_5) { lVar1 = param_5; } *(int4 *)(param_1 + 0x58) = param_4; *(long *)(param_1 + 0x60) = lVar1; *(int4 *)(param_1 + 0x5c) = param_4; PVG_FT_Stroker_Rewind(); return; }
65,390
ggml_compute_forward_pad_f32
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c
static void ggml_compute_forward_pad_f32( const struct ggml_compute_params * params, struct ggml_tensor * dst) { const struct ggml_tensor * src0 = dst->src[0]; GGML_ASSERT(src0->nb[0] == sizeof(float)); GGML_ASSERT( dst->nb[0] == sizeof(float)); const int ith = params->ith; const int nth = params->nth; GGML_TENSOR_UNARY_OP_LOCALS float * dst_ptr = (float *) dst->data; // TODO: optimize for (int64_t i2 = 0; i2 < ne2; ++i2) { for (int64_t i1 = ith; i1 < ne1; i1 += nth) { for (int64_t i0 = 0; i0 < ne0; ++i0) { for (int64_t i3 = 0; i3 < ne3; ++i3) { const int64_t dst_idx = i3*(ne0*ne1*ne2) + i2*(ne0*ne1) + i1*ne0 + i0; const float * src_ptr = (const float *)((char *) src0->data + i3*nb03 + i2*nb02 + i1*nb01 + i0*nb00); if (i0 < ne00 && i1 < ne01 && i2 < ne02 && i3 < ne03) { dst_ptr[dst_idx] = *src_ptr; } else { dst_ptr[dst_idx] = 0; } } } } } }
O0
c
ggml_compute_forward_pad_f32: pushq %rbp movq %rsp, %rbp subq $0xe0, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rax movq 0x98(%rax), %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax cmpq $0x4, 0x30(%rax) je 0x3474e leaq 0x3f42e(%rip), %rdi # 0x73b62 movl $0x290b, %esi # imm = 0x290B leaq 0x3f481(%rip), %rdx # 0x73bc1 leaq 0x400f6(%rip), %rcx # 0x7483d movb $0x0, %al callq 0xe270 movq -0x10(%rbp), %rax cmpq $0x4, 0x30(%rax) je 0x3477a leaq 0x3f402(%rip), %rdi # 0x73b62 movl $0x290c, %esi # imm = 0x290C leaq 0x3f455(%rip), %rdx # 0x73bc1 leaq 0x400ae(%rip), %rcx # 0x74821 movb $0x0, %al callq 0xe270 movq -0x8(%rbp), %rax movl (%rax), %eax movl %eax, -0x1c(%rbp) movq -0x8(%rbp), %rax movl 0x4(%rax), %eax movl %eax, -0x20(%rbp) movq -0x18(%rbp), %rax movq 0x10(%rax), %rax movq %rax, -0x28(%rbp) movq -0x18(%rbp), %rax movq 0x18(%rax), %rax movq %rax, -0x30(%rbp) movq -0x18(%rbp), %rax movq 0x20(%rax), %rax movq %rax, -0x38(%rbp) movq -0x18(%rbp), %rax movq 0x28(%rax), %rax movq %rax, -0x40(%rbp) movq -0x18(%rbp), %rax movq 0x30(%rax), %rax movq %rax, -0x48(%rbp) movq -0x18(%rbp), %rax movq 0x38(%rax), %rax movq %rax, -0x50(%rbp) movq -0x18(%rbp), %rax movq 0x40(%rax), %rax movq %rax, -0x58(%rbp) movq -0x18(%rbp), %rax movq 0x48(%rax), %rax movq %rax, -0x60(%rbp) movq -0x10(%rbp), %rax movq 0x10(%rax), %rax movq %rax, -0x68(%rbp) movq -0x10(%rbp), %rax movq 0x18(%rax), %rax movq %rax, -0x70(%rbp) movq -0x10(%rbp), %rax movq 0x20(%rax), %rax movq %rax, -0x78(%rbp) movq -0x10(%rbp), %rax movq 0x28(%rax), %rax movq %rax, -0x80(%rbp) movq -0x10(%rbp), %rax movq 0x30(%rax), %rax movq %rax, -0x88(%rbp) movq -0x10(%rbp), %rax movq 0x38(%rax), %rax movq %rax, -0x90(%rbp) movq -0x10(%rbp), %rax movq 0x40(%rax), %rax movq %rax, -0x98(%rbp) movq -0x10(%rbp), %rax movq 0x48(%rax), %rax movq %rax, -0xa0(%rbp) movq -0x10(%rbp), %rax movq 0xf8(%rax), %rax movq %rax, -0xa8(%rbp) movq $0x0, -0xb0(%rbp) movq -0xb0(%rbp), %rax cmpq -0x78(%rbp), %rax jge 0x34a45 movslq -0x1c(%rbp), %rax movq %rax, -0xb8(%rbp) movq -0xb8(%rbp), %rax cmpq -0x70(%rbp), %rax jge 0x34a2c movq $0x0, -0xc0(%rbp) movq -0xc0(%rbp), %rax cmpq -0x68(%rbp), %rax jge 0x34a13 movq $0x0, -0xc8(%rbp) movq -0xc8(%rbp), %rax cmpq -0x80(%rbp), %rax jge 0x349fa movq -0xc8(%rbp), %rax movq -0x68(%rbp), %rcx imulq -0x70(%rbp), %rcx imulq -0x78(%rbp), %rcx imulq %rcx, %rax movq -0xb0(%rbp), %rcx movq -0x68(%rbp), %rdx imulq -0x70(%rbp), %rdx imulq %rdx, %rcx addq %rcx, %rax movq -0xb8(%rbp), %rcx imulq -0x68(%rbp), %rcx addq %rcx, %rax addq -0xc0(%rbp), %rax movq %rax, -0xd0(%rbp) movq -0x18(%rbp), %rax movq 0xf8(%rax), %rax movq -0xc8(%rbp), %rcx imulq -0x60(%rbp), %rcx addq %rcx, %rax movq -0xb0(%rbp), %rcx imulq -0x58(%rbp), %rcx addq %rcx, %rax movq -0xb8(%rbp), %rcx imulq -0x50(%rbp), %rcx addq %rcx, %rax movq -0xc0(%rbp), %rcx imulq -0x48(%rbp), %rcx addq %rcx, %rax movq %rax, -0xd8(%rbp) movq -0xc0(%rbp), %rax cmpq -0x28(%rbp), %rax jge 0x349ca movq -0xb8(%rbp), %rax cmpq -0x30(%rbp), %rax jge 0x349ca movq -0xb0(%rbp), %rax cmpq -0x38(%rbp), %rax jge 0x349ca movq -0xc8(%rbp), %rax cmpq -0x40(%rbp), %rax jge 0x349ca movq -0xd8(%rbp), %rax vmovss (%rax), %xmm0 movq -0xa8(%rbp), %rax movq -0xd0(%rbp), %rcx vmovss %xmm0, (%rax,%rcx,4) jmp 0x349e1 movq -0xa8(%rbp), %rax movq -0xd0(%rbp), %rcx vpxor %xmm0, %xmm0, %xmm0 vmovss %xmm0, (%rax,%rcx,4) jmp 0x349e3 movq -0xc8(%rbp), %rax addq $0x1, %rax movq %rax, -0xc8(%rbp) jmp 0x348ca jmp 0x349fc movq -0xc0(%rbp), %rax addq $0x1, %rax movq %rax, -0xc0(%rbp) jmp 0x348ae jmp 0x34a15 movslq -0x20(%rbp), %rax addq -0xb8(%rbp), %rax movq %rax, -0xb8(%rbp) jmp 0x34892 jmp 0x34a2e movq -0xb0(%rbp), %rax addq $0x1, %rax movq %rax, -0xb0(%rbp) jmp 0x34876 addq $0xe0, %rsp popq %rbp retq nop
ggml_compute_forward_pad_f32: push rbp mov rbp, rsp sub rsp, 0E0h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_10] mov rax, [rax+98h] mov [rbp+var_18], rax mov rax, [rbp+var_18] cmp qword ptr [rax+30h], 4 jz short loc_3474E lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... mov esi, 290Bh lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aSrc0Nb0SizeofF; "src0->nb[0] == sizeof(float)" mov al, 0 call _ggml_abort loc_3474E: mov rax, [rbp+var_10] cmp qword ptr [rax+30h], 4 jz short loc_3477A lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... mov esi, 290Ch lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aDstNb0SizeofFl; "dst->nb[0] == sizeof(float)" mov al, 0 call _ggml_abort loc_3477A: mov rax, [rbp+var_8] mov eax, [rax] mov [rbp+var_1C], eax mov rax, [rbp+var_8] mov eax, [rax+4] mov [rbp+var_20], eax mov rax, [rbp+var_18] mov rax, [rax+10h] mov [rbp+var_28], rax mov rax, [rbp+var_18] mov rax, [rax+18h] mov [rbp+var_30], rax mov rax, [rbp+var_18] mov rax, [rax+20h] mov [rbp+var_38], rax mov rax, [rbp+var_18] mov rax, [rax+28h] mov [rbp+var_40], rax mov rax, [rbp+var_18] mov rax, [rax+30h] mov [rbp+var_48], rax mov rax, [rbp+var_18] mov rax, [rax+38h] mov [rbp+var_50], rax mov rax, [rbp+var_18] mov rax, [rax+40h] mov [rbp+var_58], rax mov rax, [rbp+var_18] mov rax, [rax+48h] mov [rbp+var_60], rax mov rax, [rbp+var_10] mov rax, [rax+10h] mov [rbp+var_68], rax mov rax, [rbp+var_10] mov rax, [rax+18h] mov [rbp+var_70], rax mov rax, [rbp+var_10] mov rax, [rax+20h] mov [rbp+var_78], rax mov rax, [rbp+var_10] mov rax, [rax+28h] mov [rbp+var_80], rax mov rax, [rbp+var_10] mov rax, [rax+30h] mov [rbp+var_88], rax mov rax, [rbp+var_10] mov rax, [rax+38h] mov [rbp+var_90], rax mov rax, [rbp+var_10] mov rax, [rax+40h] mov [rbp+var_98], rax mov rax, [rbp+var_10] mov rax, [rax+48h] mov [rbp+var_A0], rax mov rax, [rbp+var_10] mov rax, [rax+0F8h] mov [rbp+var_A8], rax mov [rbp+var_B0], 0 loc_34876: mov rax, [rbp+var_B0] cmp rax, [rbp+var_78] jge loc_34A45 movsxd rax, [rbp+var_1C] mov [rbp+var_B8], rax loc_34892: mov rax, [rbp+var_B8] cmp rax, [rbp+var_70] jge loc_34A2C mov [rbp+var_C0], 0 loc_348AE: mov rax, [rbp+var_C0] cmp rax, [rbp+var_68] jge loc_34A13 mov [rbp+var_C8], 0 loc_348CA: mov rax, [rbp+var_C8] cmp rax, [rbp+var_80] jge loc_349FA mov rax, [rbp+var_C8] mov rcx, [rbp+var_68] imul rcx, [rbp+var_70] imul rcx, [rbp+var_78] imul rax, rcx mov rcx, [rbp+var_B0] mov rdx, [rbp+var_68] imul rdx, [rbp+var_70] imul rcx, rdx add rax, rcx mov rcx, [rbp+var_B8] imul rcx, [rbp+var_68] add rax, rcx add rax, [rbp+var_C0] mov [rbp+var_D0], rax mov rax, [rbp+var_18] mov rax, [rax+0F8h] mov rcx, [rbp+var_C8] imul rcx, [rbp+var_60] add rax, rcx mov rcx, [rbp+var_B0] imul rcx, [rbp+var_58] add rax, rcx mov rcx, [rbp+var_B8] imul rcx, [rbp+var_50] add rax, rcx mov rcx, [rbp+var_C0] imul rcx, [rbp+var_48] add rax, rcx mov [rbp+var_D8], rax mov rax, [rbp+var_C0] cmp rax, [rbp+var_28] jge short loc_349CA mov rax, [rbp+var_B8] cmp rax, [rbp+var_30] jge short loc_349CA mov rax, [rbp+var_B0] cmp rax, [rbp+var_38] jge short loc_349CA mov rax, [rbp+var_C8] cmp rax, [rbp+var_40] jge short loc_349CA mov rax, [rbp+var_D8] vmovss xmm0, dword ptr [rax] mov rax, [rbp+var_A8] mov rcx, [rbp+var_D0] vmovss dword ptr [rax+rcx*4], xmm0 jmp short loc_349E1 loc_349CA: mov rax, [rbp+var_A8] mov rcx, [rbp+var_D0] vpxor xmm0, xmm0, xmm0 vmovss dword ptr [rax+rcx*4], xmm0 loc_349E1: jmp short $+2 loc_349E3: mov rax, [rbp+var_C8] add rax, 1 mov [rbp+var_C8], rax jmp loc_348CA loc_349FA: jmp short $+2 loc_349FC: mov rax, [rbp+var_C0] add rax, 1 mov [rbp+var_C0], rax jmp loc_348AE loc_34A13: jmp short $+2 loc_34A15: movsxd rax, [rbp+var_20] add rax, [rbp+var_B8] mov [rbp+var_B8], rax jmp loc_34892 loc_34A2C: jmp short $+2 loc_34A2E: mov rax, [rbp+var_B0] add rax, 1 mov [rbp+var_B0], rax jmp loc_34876 loc_34A45: add rsp, 0E0h pop rbp retn
long long ggml_compute_forward_pad_f32(int *a1, _QWORD *a2, __m128 _XMM0) { long long result; // rax long long m; // [rsp+18h] [rbp-C8h] long long k; // [rsp+20h] [rbp-C0h] long long j; // [rsp+28h] [rbp-B8h] long long i; // [rsp+30h] [rbp-B0h] long long v13; // [rsp+38h] [rbp-A8h] long long v14; // [rsp+60h] [rbp-80h] long long v15; // [rsp+68h] [rbp-78h] long long v16; // [rsp+70h] [rbp-70h] long long v17; // [rsp+78h] [rbp-68h] long long v18; // [rsp+80h] [rbp-60h] long long v19; // [rsp+88h] [rbp-58h] long long v20; // [rsp+90h] [rbp-50h] long long v21; // [rsp+98h] [rbp-48h] long long v22; // [rsp+A0h] [rbp-40h] long long v23; // [rsp+A8h] [rbp-38h] long long v24; // [rsp+B0h] [rbp-30h] long long v25; // [rsp+B8h] [rbp-28h] int v26; // [rsp+C0h] [rbp-20h] int v27; // [rsp+C4h] [rbp-1Ch] _QWORD *v28; // [rsp+C8h] [rbp-18h] v28 = (_QWORD *)a2[19]; if ( v28[6] != 4LL ) *(double *)_XMM0.m128_u64 = ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c", 10507LL, "GGML_ASSERT(%s) failed", "src0->nb[0] == sizeof(float)"); if ( a2[6] != 4LL ) *(double *)_XMM0.m128_u64 = ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c", 10508LL, "GGML_ASSERT(%s) failed", "dst->nb[0] == sizeof(float)"); v27 = *a1; v26 = a1[1]; v25 = v28[2]; v24 = v28[3]; v23 = v28[4]; v22 = v28[5]; v21 = v28[6]; v20 = v28[7]; v19 = v28[8]; v18 = v28[9]; v17 = a2[2]; v16 = a2[3]; v15 = a2[4]; v14 = a2[5]; v13 = a2[31]; for ( i = 0LL; ; ++i ) { result = i; if ( i >= v15 ) break; for ( j = v27; j < v16; j += v26 ) { for ( k = 0LL; k < v17; ++k ) { for ( m = 0LL; m < v14; ++m ) { if ( k >= v25 || j >= v24 || i >= v23 || m >= v22 ) { _RAX = v13; _RCX = k + v17 * j + v16 * v17 * i + v15 * v16 * v17 * m; __asm { vpxor xmm0, xmm0, xmm0 vmovss dword ptr [rax+rcx*4], xmm0 } } else { _RAX = v21 * k + v20 * j + v19 * i + v18 * m + v28[31]; __asm { vmovss xmm0, dword ptr [rax] } _RAX = v13; _RCX = k + v17 * j + v16 * v17 * i + v15 * v16 * v17 * m; __asm { vmovss dword ptr [rax+rcx*4], xmm0 } } } } } } return result; }
ggml_compute_forward_pad_f32: PUSH RBP MOV RBP,RSP SUB RSP,0xe0 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x98] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x18] CMP qword ptr [RAX + 0x30],0x4 JZ 0x0013474e LEA RDI,[0x173b62] MOV ESI,0x290b LEA RDX,[0x173bc1] LEA RCX,[0x17483d] MOV AL,0x0 CALL 0x0010e270 LAB_0013474e: MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX + 0x30],0x4 JZ 0x0013477a LEA RDI,[0x173b62] MOV ESI,0x290c LEA RDX,[0x173bc1] LEA RCX,[0x174821] MOV AL,0x0 CALL 0x0010e270 LAB_0013477a: MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x1c],EAX MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x4] MOV dword ptr [RBP + -0x20],EAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x20] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x30] MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x38] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x40] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x48] MOV qword ptr [RBP + -0x60],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0x68],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RBP + -0x70],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x20] MOV qword ptr [RBP + -0x78],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RBP + -0x80],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x30] MOV qword ptr [RBP + -0x88],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x38] MOV qword ptr [RBP + -0x90],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x40] MOV qword ptr [RBP + -0x98],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x48] MOV qword ptr [RBP + -0xa0],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0xf8] MOV qword ptr [RBP + -0xa8],RAX MOV qword ptr [RBP + -0xb0],0x0 LAB_00134876: MOV RAX,qword ptr [RBP + -0xb0] CMP RAX,qword ptr [RBP + -0x78] JGE 0x00134a45 MOVSXD RAX,dword ptr [RBP + -0x1c] MOV qword ptr [RBP + -0xb8],RAX LAB_00134892: MOV RAX,qword ptr [RBP + -0xb8] CMP RAX,qword ptr [RBP + -0x70] JGE 0x00134a2c MOV qword ptr [RBP + -0xc0],0x0 LAB_001348ae: MOV RAX,qword ptr [RBP + -0xc0] CMP RAX,qword ptr [RBP + -0x68] JGE 0x00134a13 MOV qword ptr [RBP + -0xc8],0x0 LAB_001348ca: MOV RAX,qword ptr [RBP + -0xc8] CMP RAX,qword ptr [RBP + -0x80] JGE 0x001349fa MOV RAX,qword ptr [RBP + -0xc8] MOV RCX,qword ptr [RBP + -0x68] IMUL RCX,qword ptr [RBP + -0x70] IMUL RCX,qword ptr [RBP + -0x78] IMUL RAX,RCX MOV RCX,qword ptr [RBP + -0xb0] MOV RDX,qword ptr [RBP + -0x68] IMUL RDX,qword ptr [RBP + -0x70] IMUL RCX,RDX ADD RAX,RCX MOV RCX,qword ptr [RBP + -0xb8] IMUL RCX,qword ptr [RBP + -0x68] ADD RAX,RCX ADD RAX,qword ptr [RBP + -0xc0] MOV qword ptr [RBP + -0xd0],RAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0xf8] MOV RCX,qword ptr [RBP + -0xc8] IMUL RCX,qword ptr [RBP + -0x60] ADD RAX,RCX MOV RCX,qword ptr [RBP + -0xb0] IMUL RCX,qword ptr [RBP + -0x58] ADD RAX,RCX MOV RCX,qword ptr [RBP + -0xb8] IMUL RCX,qword ptr [RBP + -0x50] ADD RAX,RCX MOV RCX,qword ptr [RBP + -0xc0] IMUL RCX,qword ptr [RBP + -0x48] ADD RAX,RCX MOV qword ptr [RBP + -0xd8],RAX MOV RAX,qword ptr [RBP + -0xc0] CMP RAX,qword ptr [RBP + -0x28] JGE 0x001349ca MOV RAX,qword ptr [RBP + -0xb8] CMP RAX,qword ptr [RBP + -0x30] JGE 0x001349ca MOV RAX,qword ptr [RBP + -0xb0] CMP RAX,qword ptr [RBP + -0x38] JGE 0x001349ca MOV RAX,qword ptr [RBP + -0xc8] CMP RAX,qword ptr [RBP + -0x40] JGE 0x001349ca MOV RAX,qword ptr [RBP + -0xd8] VMOVSS XMM0,dword ptr [RAX] MOV RAX,qword ptr [RBP + -0xa8] MOV RCX,qword ptr [RBP + -0xd0] VMOVSS dword ptr [RAX + RCX*0x4],XMM0 JMP 0x001349e1 LAB_001349ca: MOV RAX,qword ptr [RBP + -0xa8] MOV RCX,qword ptr [RBP + -0xd0] VPXOR XMM0,XMM0,XMM0 VMOVSS dword ptr [RAX + RCX*0x4],XMM0 LAB_001349e1: JMP 0x001349e3 LAB_001349e3: MOV RAX,qword ptr [RBP + -0xc8] ADD RAX,0x1 MOV qword ptr [RBP + -0xc8],RAX JMP 0x001348ca LAB_001349fa: JMP 0x001349fc LAB_001349fc: MOV RAX,qword ptr [RBP + -0xc0] ADD RAX,0x1 MOV qword ptr [RBP + -0xc0],RAX JMP 0x001348ae LAB_00134a13: JMP 0x00134a15 LAB_00134a15: MOVSXD RAX,dword ptr [RBP + -0x20] ADD RAX,qword ptr [RBP + -0xb8] MOV qword ptr [RBP + -0xb8],RAX JMP 0x00134892 LAB_00134a2c: JMP 0x00134a2e LAB_00134a2e: MOV RAX,qword ptr [RBP + -0xb0] ADD RAX,0x1 MOV qword ptr [RBP + -0xb0],RAX JMP 0x00134876 LAB_00134a45: ADD RSP,0xe0 POP RBP RET
void ggml_compute_forward_pad_f32(int *param_1,long param_2) { int iVar1; int iVar2; long lVar3; long lVar4; long lVar5; long lVar6; long lVar7; long lVar8; long lVar9; long lVar10; long lVar11; long lVar12; long lVar13; long lVar14; long lVar15; long lVar16; long lVar17; long local_d0; long local_c8; long local_c0; long local_b8; lVar3 = *(long *)(param_2 + 0x98); if (*(long *)(lVar3 + 0x30) != 4) { ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c" ,0x290b,"GGML_ASSERT(%s) failed","src0->nb[0] == sizeof(float)"); } if (*(long *)(param_2 + 0x30) != 4) { ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c" ,0x290c,"GGML_ASSERT(%s) failed","dst->nb[0] == sizeof(float)"); } iVar1 = *param_1; iVar2 = param_1[1]; lVar4 = *(long *)(lVar3 + 0x10); lVar5 = *(long *)(lVar3 + 0x18); lVar6 = *(long *)(lVar3 + 0x20); lVar7 = *(long *)(lVar3 + 0x28); lVar8 = *(long *)(lVar3 + 0x30); lVar9 = *(long *)(lVar3 + 0x38); lVar10 = *(long *)(lVar3 + 0x40); lVar11 = *(long *)(lVar3 + 0x48); lVar12 = *(long *)(param_2 + 0x10); lVar13 = *(long *)(param_2 + 0x18); lVar14 = *(long *)(param_2 + 0x20); lVar15 = *(long *)(param_2 + 0x28); lVar16 = *(long *)(param_2 + 0xf8); for (local_b8 = 0; local_b8 < lVar14; local_b8 = local_b8 + 1) { for (local_c0 = (long)iVar1; local_c0 < lVar13; local_c0 = iVar2 + local_c0) { for (local_c8 = 0; local_c8 < lVar12; local_c8 = local_c8 + 1) { for (local_d0 = 0; local_d0 < lVar15; local_d0 = local_d0 + 1) { lVar17 = local_d0 * lVar12 * lVar13 * lVar14 + local_b8 * lVar12 * lVar13 + local_c0 * lVar12 + local_c8; if ((((local_c8 < lVar4) && (local_c0 < lVar5)) && (local_b8 < lVar6)) && (local_d0 < lVar7)) { *(int4 *)(lVar16 + lVar17 * 4) = *(int4 *) (*(long *)(lVar3 + 0xf8) + local_d0 * lVar11 + local_b8 * lVar10 + local_c0 * lVar9 + local_c8 * lVar8); } else { *(int4 *)(lVar16 + lVar17 * 4) = 0; } } } } } return; }
65,391
TIME_to_longlong_time_packed(st_mysql_time const*)
eloqsql/sql/compat56.cc
longlong TIME_to_longlong_time_packed(const MYSQL_TIME *ltime) { DBUG_ASSERT(ltime->year == 0); DBUG_ASSERT(ltime->month == 0); // Mix days with hours: "1 00:10:10" -> "24:10:10" long hms= ((ltime->day * 24 + ltime->hour) << 12) | (ltime->minute << 6) | ltime->second; longlong tmp= MY_PACKED_TIME_MAKE(hms, ltime->second_part); return ltime->neg ? -tmp : tmp; }
O3
cpp
TIME_to_longlong_time_packed(st_mysql_time const*): pushq %rbp movq %rsp, %rbp movl 0x8(%rdi), %eax movl 0x10(%rdi), %ecx leal (%rax,%rax,2), %eax shll $0x3, %eax addl 0xc(%rdi), %eax shll $0xc, %eax shll $0x6, %ecx orl %eax, %ecx orl 0x14(%rdi), %ecx shlq $0x18, %rcx addq 0x18(%rdi), %rcx movq %rcx, %rax negq %rax cmpb $0x0, 0x20(%rdi) cmoveq %rcx, %rax popq %rbp retq
_Z28TIME_to_longlong_time_packedPK13st_mysql_time: push rbp mov rbp, rsp mov eax, [rdi+8] mov ecx, [rdi+10h] lea eax, [rax+rax*2] shl eax, 3 add eax, [rdi+0Ch] shl eax, 0Ch shl ecx, 6 or ecx, eax or ecx, [rdi+14h] shl rcx, 18h add rcx, [rdi+18h] mov rax, rcx neg rax cmp byte ptr [rdi+20h], 0 cmovz rax, rcx pop rbp retn
unsigned long long TIME_to_longlong_time_packed(long long a1) { unsigned long long result; // rax result = -(long long)(*(_QWORD *)(a1 + 24) + ((unsigned long long)(*(_DWORD *)(a1 + 20) | (unsigned int)((*(_DWORD *)(a1 + 12) + 24 * *(_DWORD *)(a1 + 8)) << 12) | (*(_DWORD *)(a1 + 16) << 6)) << 24)); if ( !*(_BYTE *)(a1 + 32) ) return *(_QWORD *)(a1 + 24) + ((unsigned long long)(*(_DWORD *)(a1 + 20) | (unsigned int)((*(_DWORD *)(a1 + 12) + 24 * *(_DWORD *)(a1 + 8)) << 12) | (*(_DWORD *)(a1 + 16) << 6)) << 24); return result; }
TIME_to_longlong_time_packed: PUSH RBP MOV RBP,RSP MOV EAX,dword ptr [RDI + 0x8] MOV ECX,dword ptr [RDI + 0x10] LEA EAX,[RAX + RAX*0x2] SHL EAX,0x3 ADD EAX,dword ptr [RDI + 0xc] SHL EAX,0xc SHL ECX,0x6 OR ECX,EAX OR ECX,dword ptr [RDI + 0x14] SHL RCX,0x18 ADD RCX,qword ptr [RDI + 0x18] MOV RAX,RCX NEG RAX CMP byte ptr [RDI + 0x20],0x0 CMOVZ RAX,RCX POP RBP RET
/* TIME_to_longlong_time_packed(st_mysql_time const*) */ long TIME_to_longlong_time_packed(st_mysql_time *param_1) { long lVar1; long lVar2; lVar2 = (ulong)(*(int *)(param_1 + 0x10) << 6 | (*(int *)(param_1 + 8) * 0x18 + *(int *)(param_1 + 0xc)) * 0x1000 | *(uint *)(param_1 + 0x14)) * 0x1000000 + *(long *)(param_1 + 0x18); lVar1 = -lVar2; if (param_1[0x20] == (st_mysql_time)0x0) { lVar1 = lVar2; } return lVar1; }
65,392
bf_get_int64
bluesky950520[P]quickjs/libbf.c
int bf_get_int64(int64_t *pres, const bf_t *a, int flags) { uint64_t v; int ret; if (a->expn >= BF_EXP_INF) { ret = BF_ST_INVALID_OP; if (flags & BF_GET_INT_MOD) { v = 0; } else if (a->expn == BF_EXP_INF) { v = (uint64_t)INT64_MAX + a->sign; } else { v = INT64_MAX; } } else if (a->expn <= 0) { v = 0; ret = 0; } else if (a->expn <= 63) { #if LIMB_BITS == 32 if (a->expn <= 32) v = a->tab[a->len - 1] >> (LIMB_BITS - a->expn); else v = (((uint64_t)a->tab[a->len - 1] << 32) | get_limbz(a, a->len - 2)) >> (64 - a->expn); #else v = a->tab[a->len - 1] >> (LIMB_BITS - a->expn); #endif if (a->sign) v = -v; ret = 0; } else if (!(flags & BF_GET_INT_MOD)) { ret = BF_ST_INVALID_OP; if (a->sign) { uint64_t v1; v = (uint64_t)INT64_MAX + 1; if (a->expn == 64) { v1 = a->tab[a->len - 1]; #if LIMB_BITS == 32 v1 = (v1 << 32) | get_limbz(a, a->len - 2); #endif if (v1 == v) ret = 0; } } else { v = INT64_MAX; } } else { slimb_t bit_pos = a->len * LIMB_BITS - a->expn; v = get_bits(a->tab, a->len, bit_pos); #if LIMB_BITS == 32 v |= (uint64_t)get_bits(a->tab, a->len, bit_pos + 32) << 32; #endif if (a->sign) v = -v; ret = 0; } *pres = v; return ret; }
O1
c
bf_get_int64: movabsq $0x7fffffffffffffff, %r8 # imm = 0x7FFFFFFFFFFFFFFF movq 0x10(%rsi), %rcx leaq -0x2(%r8), %rax cmpq %rax, %rcx jle 0x88915 movl $0x1, %eax testb $0x1, %dl jne 0x88944 leaq -0x1(%r8), %rdx cmpq %rdx, %rcx jne 0x88947 movslq 0x8(%rsi), %rcx addq %rcx, %r8 jmp 0x88947 xorl %eax, %eax testq %rcx, %rcx jle 0x88944 cmpq $0x3f, %rcx jg 0x8894b movq 0x18(%rsi), %rdx movq 0x20(%rsi), %r8 movq -0x8(%r8,%rdx,8), %rdx negb %cl shrq %cl, %rdx movq %rdx, %r8 negq %r8 cmpl $0x0, 0x8(%rsi) cmoveq %rdx, %r8 jmp 0x88947 xorl %r8d, %r8d movq %r8, (%rdi) retq testb $0x1, %dl jne 0x88978 movl $0x1, %eax cmpl $0x0, 0x8(%rsi) je 0x88947 cmpq $0x40, %rcx jne 0x889b8 movq 0x18(%rsi), %rcx movq 0x20(%rsi), %rdx incq %r8 xorl %eax, %eax cmpq %r8, -0x8(%rdx,%rcx,8) setne %al jmp 0x88947 movq 0x18(%rsi), %r10 movq 0x20(%rsi), %r8 movq %r10, %rax shlq $0x6, %rax subq %rcx, %rax movq %rax, %rcx sarq $0x6, %rcx movl %eax, %edx andl $0x3f, %edx cmpq %r10, %rcx jae 0x889a1 movq (%r8,%rcx,8), %r9 jmp 0x889a4 xorl %r9d, %r9d testl %edx, %edx je 0x889cf leaq 0x1(%rcx), %r11 cmpq %r10, %r11 jae 0x889bd movq 0x8(%r8,%rcx,8), %r8 jmp 0x889c0 incq %r8 jmp 0x88947 xorl %r8d, %r8d movl %eax, %ecx shrq %cl, %r9 negb %dl movl %edx, %ecx shlq %cl, %r8 orq %r8, %r9 movq %r9, %r8 negq %r8 cmpl $0x0, 0x8(%rsi) cmoveq %r9, %r8 xorl %eax, %eax jmp 0x88947
bf_get_int64: mov r8, 7FFFFFFFFFFFFFFFh mov rcx, [rsi+10h] lea rax, [r8-2] cmp rcx, rax jle short loc_88915 mov eax, 1 test dl, 1 jnz short loc_88944 lea rdx, [r8-1] cmp rcx, rdx jnz short loc_88947 movsxd rcx, dword ptr [rsi+8] add r8, rcx jmp short loc_88947 loc_88915: xor eax, eax test rcx, rcx jle short loc_88944 cmp rcx, 3Fh ; '?' jg short loc_8894B mov rdx, [rsi+18h] mov r8, [rsi+20h] mov rdx, [r8+rdx*8-8] neg cl shr rdx, cl mov r8, rdx neg r8 cmp dword ptr [rsi+8], 0 cmovz r8, rdx jmp short loc_88947 loc_88944: xor r8d, r8d loc_88947: mov [rdi], r8 retn loc_8894B: test dl, 1 jnz short loc_88978 mov eax, 1 cmp dword ptr [rsi+8], 0 jz short loc_88947 cmp rcx, 40h ; '@' jnz short loc_889B8 mov rcx, [rsi+18h] mov rdx, [rsi+20h] inc r8 xor eax, eax cmp [rdx+rcx*8-8], r8 setnz al jmp short loc_88947 loc_88978: mov r10, [rsi+18h] mov r8, [rsi+20h] mov rax, r10 shl rax, 6 sub rax, rcx mov rcx, rax sar rcx, 6 mov edx, eax and edx, 3Fh cmp rcx, r10 jnb short loc_889A1 mov r9, [r8+rcx*8] jmp short loc_889A4 loc_889A1: xor r9d, r9d loc_889A4: test edx, edx jz short loc_889CF lea r11, [rcx+1] cmp r11, r10 jnb short loc_889BD mov r8, [r8+rcx*8+8] jmp short loc_889C0 loc_889B8: inc r8 jmp short loc_88947 loc_889BD: xor r8d, r8d loc_889C0: mov ecx, eax shr r9, cl neg dl mov ecx, edx shl r8, cl or r9, r8 loc_889CF: mov r8, r9 neg r8 cmp dword ptr [rsi+8], 0 cmovz r8, r9 xor eax, eax jmp loc_88947
_BOOL8 bf_get_int64(long long *a1, long long a2, char a3) { long long v3; // r8 long long v4; // rcx _BOOL8 result; // rax char v6; // cl unsigned long long v7; // r10 long long v8; // r8 char v9; // al unsigned long long v10; // rcx unsigned long long v11; // r9 long long v12; // r8 v3 = 0x7FFFFFFFFFFFFFFFLL; v4 = *(_QWORD *)(a2 + 16); if ( v4 > 0x7FFFFFFFFFFFFFFDLL ) { result = 1LL; if ( (a3 & 1) == 0 ) { if ( v4 == 0x7FFFFFFFFFFFFFFELL ) v3 = *(int *)(a2 + 8) + 0x7FFFFFFFFFFFFFFFLL; goto LABEL_11; } LABEL_10: v3 = 0LL; goto LABEL_11; } result = 0LL; if ( v4 <= 0 ) goto LABEL_10; if ( v4 > 63 ) { if ( (a3 & 1) != 0 ) { v7 = *(_QWORD *)(a2 + 24); v8 = *(_QWORD *)(a2 + 32); v9 = ((_BYTE)v7 << 6) - v4; v10 = (long long)((v7 << 6) - v4) >> 6; if ( v10 >= v7 ) v11 = 0LL; else v11 = *(_QWORD *)(v8 + 8 * v10); if ( (v9 & 0x3F) != 0 ) { if ( v10 + 1 >= v7 ) v12 = 0LL; else v12 = *(_QWORD *)(v8 + 8 * v10 + 8); v11 = (v12 << -(v9 & 0x3F)) | (v11 >> v9); } v3 = -(long long)v11; if ( !*(_DWORD *)(a2 + 8) ) v3 = v11; result = 0LL; } else { result = 1LL; if ( *(_DWORD *)(a2 + 8) ) { v3 = 0x8000000000000000LL; if ( v4 == 64 ) result = *(_QWORD *)(*(_QWORD *)(a2 + 32) + 8LL * *(_QWORD *)(a2 + 24) - 8) != 0x8000000000000000LL; } } } else { v6 = -(char)v4; v3 = -(*(_QWORD *)(*(_QWORD *)(a2 + 32) + 8LL * *(_QWORD *)(a2 + 24) - 8) >> v6); if ( !*(_DWORD *)(a2 + 8) ) v3 = *(_QWORD *)(*(_QWORD *)(a2 + 32) + 8LL * *(_QWORD *)(a2 + 24) - 8) >> v6; } LABEL_11: *a1 = v3; return result; }
bf_get_int64: MOV R8,0x7fffffffffffffff MOV RCX,qword ptr [RSI + 0x10] LEA RAX,[R8 + -0x2] CMP RCX,RAX JLE 0x00188915 MOV EAX,0x1 TEST DL,0x1 JNZ 0x00188944 LEA RDX,[R8 + -0x1] CMP RCX,RDX JNZ 0x00188947 MOVSXD RCX,dword ptr [RSI + 0x8] ADD R8,RCX JMP 0x00188947 LAB_00188915: XOR EAX,EAX TEST RCX,RCX JLE 0x00188944 CMP RCX,0x3f JG 0x0018894b MOV RDX,qword ptr [RSI + 0x18] MOV R8,qword ptr [RSI + 0x20] MOV RDX,qword ptr [R8 + RDX*0x8 + -0x8] NEG CL SHR RDX,CL MOV R8,RDX NEG R8 CMP dword ptr [RSI + 0x8],0x0 CMOVZ R8,RDX JMP 0x00188947 LAB_00188944: XOR R8D,R8D LAB_00188947: MOV qword ptr [RDI],R8 RET LAB_0018894b: TEST DL,0x1 JNZ 0x00188978 MOV EAX,0x1 CMP dword ptr [RSI + 0x8],0x0 JZ 0x00188947 CMP RCX,0x40 JNZ 0x001889b8 MOV RCX,qword ptr [RSI + 0x18] MOV RDX,qword ptr [RSI + 0x20] INC R8 XOR EAX,EAX CMP qword ptr [RDX + RCX*0x8 + -0x8],R8 SETNZ AL JMP 0x00188947 LAB_00188978: MOV R10,qword ptr [RSI + 0x18] MOV R8,qword ptr [RSI + 0x20] MOV RAX,R10 SHL RAX,0x6 SUB RAX,RCX MOV RCX,RAX SAR RCX,0x6 MOV EDX,EAX AND EDX,0x3f CMP RCX,R10 JNC 0x001889a1 MOV R9,qword ptr [R8 + RCX*0x8] JMP 0x001889a4 LAB_001889a1: XOR R9D,R9D LAB_001889a4: TEST EDX,EDX JZ 0x001889cf LEA R11,[RCX + 0x1] CMP R11,R10 JNC 0x001889bd MOV R8,qword ptr [R8 + RCX*0x8 + 0x8] JMP 0x001889c0 LAB_001889b8: INC R8 JMP 0x00188947 LAB_001889bd: XOR R8D,R8D LAB_001889c0: MOV ECX,EAX SHR R9,CL NEG DL MOV ECX,EDX SHL R8,CL OR R9,R8 LAB_001889cf: MOV R8,R9 NEG R8 CMP dword ptr [RSI + 0x8],0x0 CMOVZ R8,R9 XOR EAX,EAX JMP 0x00188947
bool bf_get_int64(ulong *param_1,long param_2,ulong param_3) { ulong uVar1; ulong uVar2; long lVar3; ulong uVar4; ulong uVar5; bool bVar6; lVar3 = *(long *)(param_2 + 0x10); uVar4 = 0x7fffffffffffffff; if (lVar3 < 0x7ffffffffffffffe) { bVar6 = false; if (0 < lVar3) { if (lVar3 < 0x40) { uVar2 = *(ulong *)(*(long *)(param_2 + 0x20) + -8 + *(long *)(param_2 + 0x18) * 8) >> (-(char)lVar3 & 0x3fU); uVar4 = -uVar2; if (*(int *)(param_2 + 8) == 0) { uVar4 = uVar2; } } else if ((param_3 & 1) == 0) { bVar6 = true; if (*(int *)(param_2 + 8) != 0) { if (lVar3 == 0x40) { bVar6 = *(long *)(*(long *)(param_2 + 0x20) + -8 + *(long *)(param_2 + 0x18) * 8) != -0x8000000000000000; uVar4 = 0x8000000000000000; } else { uVar4 = 0x8000000000000000; } } } else { uVar4 = *(ulong *)(param_2 + 0x18); uVar2 = uVar4 * 0x40 - lVar3; uVar1 = (long)uVar2 >> 6; if (uVar1 < uVar4) { uVar5 = *(ulong *)(*(long *)(param_2 + 0x20) + uVar1 * 8); } else { uVar5 = 0; } if ((uVar2 & 0x3f) != 0) { if (uVar1 + 1 < uVar4) { lVar3 = *(long *)(*(long *)(param_2 + 0x20) + 8 + uVar1 * 8); } else { lVar3 = 0; } uVar5 = uVar5 >> ((byte)uVar2 & 0x3f) | lVar3 << (-((byte)uVar2 & 0x3f) & 0x3f); } uVar4 = -uVar5; if (*(int *)(param_2 + 8) == 0) { uVar4 = uVar5; } bVar6 = false; } goto LAB_00188947; } } else { bVar6 = true; if ((param_3 & 1) == 0) { if (lVar3 == 0x7ffffffffffffffe) { uVar4 = (long)*(int *)(param_2 + 8) + 0x7fffffffffffffff; } goto LAB_00188947; } } uVar4 = 0; LAB_00188947: *param_1 = uVar4; return bVar6; }
65,393
OpenSubdiv::v3_6_0::Far::internal::WeightTable<double>::Point2ndDerivAccumulator::Add(unsigned long, OpenSubdiv::v3_6_0::Far::internal::Point2ndDerivWeight<double>)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/stencilBuilder.cpp
void Add(size_t i, Point2ndDerivWeight<REAL> weight) { _tbl->_weights[i] += weight.p; _tbl->_duWeights[i] += weight.du; _tbl->_dvWeights[i] += weight.dv; _tbl->_duuWeights[i] += weight.duu; _tbl->_duvWeights[i] += weight.duv; _tbl->_dvvWeights[i] += weight.dvv; }
O0
cpp
OpenSubdiv::v3_6_0::Far::internal::WeightTable<double>::Point2ndDerivAccumulator::Add(unsigned long, OpenSubdiv::v3_6_0::Far::internal::Point2ndDerivWeight<double>): pushq %rbp movq %rsp, %rbp subq $0x50, %rsp leaq 0x10(%rbp), %rcx movq %rcx, -0x28(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x20(%rbp) movsd (%rcx), %xmm0 movsd %xmm0, -0x50(%rbp) movq (%rax), %rdi addq $0x30, %rdi movq -0x10(%rbp), %rsi callq 0xcd590 movsd -0x50(%rbp), %xmm0 movq -0x28(%rbp), %rcx movq %rax, %rdx movq -0x20(%rbp), %rax addsd (%rdx), %xmm0 movsd %xmm0, (%rdx) movsd 0x8(%rcx), %xmm0 movsd %xmm0, -0x48(%rbp) movq (%rax), %rdi addq $0x48, %rdi movq -0x10(%rbp), %rsi callq 0xcd590 movsd -0x48(%rbp), %xmm0 movq -0x28(%rbp), %rcx movq %rax, %rdx movq -0x20(%rbp), %rax addsd (%rdx), %xmm0 movsd %xmm0, (%rdx) movsd 0x10(%rcx), %xmm0 movsd %xmm0, -0x40(%rbp) movq (%rax), %rdi addq $0x60, %rdi movq -0x10(%rbp), %rsi callq 0xcd590 movsd -0x40(%rbp), %xmm0 movq -0x28(%rbp), %rcx movq %rax, %rdx movq -0x20(%rbp), %rax addsd (%rdx), %xmm0 movsd %xmm0, (%rdx) movsd 0x18(%rcx), %xmm0 movsd %xmm0, -0x38(%rbp) movq (%rax), %rdi addq $0x78, %rdi movq -0x10(%rbp), %rsi callq 0xcd590 movsd -0x38(%rbp), %xmm0 movq -0x28(%rbp), %rcx movq %rax, %rdx movq -0x20(%rbp), %rax addsd (%rdx), %xmm0 movsd %xmm0, (%rdx) movsd 0x20(%rcx), %xmm0 movsd %xmm0, -0x30(%rbp) movq (%rax), %rdi addq $0x90, %rdi movq -0x10(%rbp), %rsi callq 0xcd590 movsd -0x30(%rbp), %xmm0 movq -0x28(%rbp), %rcx movq %rax, %rdx movq -0x20(%rbp), %rax addsd (%rdx), %xmm0 movsd %xmm0, (%rdx) movsd 0x28(%rcx), %xmm0 movsd %xmm0, -0x18(%rbp) movq (%rax), %rdi addq $0xa8, %rdi movq -0x10(%rbp), %rsi callq 0xcd590 movsd -0x18(%rbp), %xmm0 addsd (%rax), %xmm0 movsd %xmm0, (%rax) addq $0x50, %rsp popq %rbp retq nopl (%rax)
_ZN10OpenSubdiv6v3_6_03Far8internal11WeightTableIdE24Point2ndDerivAccumulator3AddEmNS2_19Point2ndDerivWeightIdEE: push rbp mov rbp, rsp sub rsp, 50h lea rcx, [rbp+arg_0] mov [rbp+var_28], rcx mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] mov [rbp+var_20], rax movsd xmm0, qword ptr [rcx] movsd [rbp+var_50], xmm0 mov rdi, [rax] add rdi, 30h ; '0' mov rsi, [rbp+var_10] call __ZNSt6vectorIdSaIdEEixEm; std::vector<double>::operator[](ulong) movsd xmm0, [rbp+var_50] mov rcx, [rbp+var_28] mov rdx, rax mov rax, [rbp+var_20] addsd xmm0, qword ptr [rdx] movsd qword ptr [rdx], xmm0 movsd xmm0, qword ptr [rcx+8] movsd [rbp+var_48], xmm0 mov rdi, [rax] add rdi, 48h ; 'H' mov rsi, [rbp+var_10] call __ZNSt6vectorIdSaIdEEixEm; std::vector<double>::operator[](ulong) movsd xmm0, [rbp+var_48] mov rcx, [rbp+var_28] mov rdx, rax mov rax, [rbp+var_20] addsd xmm0, qword ptr [rdx] movsd qword ptr [rdx], xmm0 movsd xmm0, qword ptr [rcx+10h] movsd [rbp+var_40], xmm0 mov rdi, [rax] add rdi, 60h ; '`' mov rsi, [rbp+var_10] call __ZNSt6vectorIdSaIdEEixEm; std::vector<double>::operator[](ulong) movsd xmm0, [rbp+var_40] mov rcx, [rbp+var_28] mov rdx, rax mov rax, [rbp+var_20] addsd xmm0, qword ptr [rdx] movsd qword ptr [rdx], xmm0 movsd xmm0, qword ptr [rcx+18h] movsd [rbp+var_38], xmm0 mov rdi, [rax] add rdi, 78h ; 'x' mov rsi, [rbp+var_10] call __ZNSt6vectorIdSaIdEEixEm; std::vector<double>::operator[](ulong) movsd xmm0, [rbp+var_38] mov rcx, [rbp+var_28] mov rdx, rax mov rax, [rbp+var_20] addsd xmm0, qword ptr [rdx] movsd qword ptr [rdx], xmm0 movsd xmm0, qword ptr [rcx+20h] movsd [rbp+var_30], xmm0 mov rdi, [rax] add rdi, 90h mov rsi, [rbp+var_10] call __ZNSt6vectorIdSaIdEEixEm; std::vector<double>::operator[](ulong) movsd xmm0, [rbp+var_30] mov rcx, [rbp+var_28] mov rdx, rax mov rax, [rbp+var_20] addsd xmm0, qword ptr [rdx] movsd qword ptr [rdx], xmm0 movsd xmm0, qword ptr [rcx+28h] movsd [rbp+var_18], xmm0 mov rdi, [rax] add rdi, 0A8h mov rsi, [rbp+var_10] call __ZNSt6vectorIdSaIdEEixEm; std::vector<double>::operator[](ulong) movsd xmm0, [rbp+var_18] addsd xmm0, qword ptr [rax] movsd qword ptr [rax], xmm0 add rsp, 50h pop rbp retn
double * OpenSubdiv::v3_6_0::Far::internal::WeightTable<double>::Point2ndDerivAccumulator::Add( _QWORD *a1, long long a2, double a3, double a4, double a5, double a6, double a7, double a8, double a9, double a10, double a11, double a12, double a13, double a14, double a15, double a16) { double *v12; // rax double *v13; // rax double *v14; // rax double *v15; // rax double *v16; // rax double *result; // rax v12 = (double *)std::vector<double>::operator[](*a1 + 48LL, a2); *v12 = a11 + *v12; v13 = (double *)std::vector<double>::operator[](*a1 + 72LL, a2); *v13 = a12 + *v13; v14 = (double *)std::vector<double>::operator[](*a1 + 96LL, a2); *v14 = a13 + *v14; v15 = (double *)std::vector<double>::operator[](*a1 + 120LL, a2); *v15 = a14 + *v15; v16 = (double *)std::vector<double>::operator[](*a1 + 144LL, a2); *v16 = a15 + *v16; result = (double *)std::vector<double>::operator[](*a1 + 168LL, a2); *result = a16 + *result; return result; }
65,394
OpenSubdiv::v3_6_0::Far::internal::WeightTable<double>::Point2ndDerivAccumulator::Add(unsigned long, OpenSubdiv::v3_6_0::Far::internal::Point2ndDerivWeight<double>)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/stencilBuilder.cpp
void Add(size_t i, Point2ndDerivWeight<REAL> weight) { _tbl->_weights[i] += weight.p; _tbl->_duWeights[i] += weight.du; _tbl->_dvWeights[i] += weight.dv; _tbl->_duuWeights[i] += weight.duu; _tbl->_duvWeights[i] += weight.duv; _tbl->_dvvWeights[i] += weight.dvv; }
O2
cpp
OpenSubdiv::v3_6_0::Far::internal::WeightTable<double>::Point2ndDerivAccumulator::Add(unsigned long, OpenSubdiv::v3_6_0::Far::internal::Point2ndDerivWeight<double>): movsd 0x8(%rsp), %xmm0 movq (%rdi), %rax movq 0x30(%rax), %rcx addsd (%rcx,%rsi,8), %xmm0 movsd %xmm0, (%rcx,%rsi,8) movsd 0x10(%rsp), %xmm0 movq 0x48(%rax), %rcx addsd (%rcx,%rsi,8), %xmm0 movsd %xmm0, (%rcx,%rsi,8) movsd 0x18(%rsp), %xmm0 movq 0x60(%rax), %rcx addsd (%rcx,%rsi,8), %xmm0 movsd %xmm0, (%rcx,%rsi,8) movsd 0x20(%rsp), %xmm0 movq 0x78(%rax), %rcx addsd (%rcx,%rsi,8), %xmm0 movsd %xmm0, (%rcx,%rsi,8) movsd 0x28(%rsp), %xmm0 movq 0x90(%rax), %rcx addsd (%rcx,%rsi,8), %xmm0 movsd %xmm0, (%rcx,%rsi,8) movsd 0x30(%rsp), %xmm0 movq 0xa8(%rax), %rax addsd (%rax,%rsi,8), %xmm0 movsd %xmm0, (%rax,%rsi,8) retq
_ZN10OpenSubdiv6v3_6_03Far8internal11WeightTableIdE24Point2ndDerivAccumulator3AddEmNS2_19Point2ndDerivWeightIdEE: movsd xmm0, [rsp+arg_0] mov rax, [rdi] mov rcx, [rax+30h] addsd xmm0, qword ptr [rcx+rsi*8] movsd qword ptr [rcx+rsi*8], xmm0 movsd xmm0, [rsp+arg_8] mov rcx, [rax+48h] addsd xmm0, qword ptr [rcx+rsi*8] movsd qword ptr [rcx+rsi*8], xmm0 movsd xmm0, [rsp+arg_10] mov rcx, [rax+60h] addsd xmm0, qword ptr [rcx+rsi*8] movsd qword ptr [rcx+rsi*8], xmm0 movsd xmm0, [rsp+arg_18] mov rcx, [rax+78h] addsd xmm0, qword ptr [rcx+rsi*8] movsd qword ptr [rcx+rsi*8], xmm0 movsd xmm0, [rsp+arg_20] mov rcx, [rax+90h] addsd xmm0, qword ptr [rcx+rsi*8] movsd qword ptr [rcx+rsi*8], xmm0 movsd xmm0, [rsp+arg_28] mov rax, [rax+0A8h] addsd xmm0, qword ptr [rax+rsi*8] movsd qword ptr [rax+rsi*8], xmm0 retn
long long OpenSubdiv::v3_6_0::Far::internal::WeightTable<double>::Point2ndDerivAccumulator::Add( long long a1, long long a2, double a3, double a4, double a5, double a6, double a7, double a8, double a9, double a10, double a11, double a12, double a13, double a14, double a15, double a16) { _QWORD *v12; // rax long long result; // rax v12 = *(_QWORD **)a1; *(double *)(*(_QWORD *)(*(_QWORD *)a1 + 48LL) + 8 * a2) = a11 + *(double *)(*(_QWORD *)(*(_QWORD *)a1 + 48LL) + 8 * a2); *(double *)(v12[9] + 8 * a2) = a12 + *(double *)(v12[9] + 8 * a2); *(double *)(v12[12] + 8 * a2) = a13 + *(double *)(v12[12] + 8 * a2); *(double *)(v12[15] + 8 * a2) = a14 + *(double *)(v12[15] + 8 * a2); *(double *)(v12[18] + 8 * a2) = a15 + *(double *)(v12[18] + 8 * a2); result = v12[21]; *(double *)(result + 8 * a2) = a16 + *(double *)(result + 8 * a2); return result; }
Add: MOVSD XMM0,qword ptr [RSP + 0x8] MOV RAX,qword ptr [RDI] MOV RCX,qword ptr [RAX + 0x30] ADDSD XMM0,qword ptr [RCX + RSI*0x8] MOVSD qword ptr [RCX + RSI*0x8],XMM0 MOVSD XMM0,qword ptr [RSP + 0x10] MOV RCX,qword ptr [RAX + 0x48] ADDSD XMM0,qword ptr [RCX + RSI*0x8] MOVSD qword ptr [RCX + RSI*0x8],XMM0 MOVSD XMM0,qword ptr [RSP + 0x18] MOV RCX,qword ptr [RAX + 0x60] ADDSD XMM0,qword ptr [RCX + RSI*0x8] MOVSD qword ptr [RCX + RSI*0x8],XMM0 MOVSD XMM0,qword ptr [RSP + 0x20] MOV RCX,qword ptr [RAX + 0x78] ADDSD XMM0,qword ptr [RCX + RSI*0x8] MOVSD qword ptr [RCX + RSI*0x8],XMM0 MOVSD XMM0,qword ptr [RSP + 0x28] MOV RCX,qword ptr [RAX + 0x90] ADDSD XMM0,qword ptr [RCX + RSI*0x8] MOVSD qword ptr [RCX + RSI*0x8],XMM0 MOVSD XMM0,qword ptr [RSP + 0x30] MOV RAX,qword ptr [RAX + 0xa8] ADDSD XMM0,qword ptr [RAX + RSI*0x8] MOVSD qword ptr [RAX + RSI*0x8],XMM0 RET
/* OpenSubdiv::v3_6_0::Far::internal::WeightTable<double>::Point2ndDerivAccumulator::Add(unsigned long, OpenSubdiv::v3_6_0::Far::internal::Point2ndDerivWeight<double>) */ void OpenSubdiv::v3_6_0::Far::internal::WeightTable<double>::Point2ndDerivAccumulator::Add (long *param_1,long param_2) { long lVar1; double in_stack_00000008; double in_stack_00000010; double in_stack_00000018; double in_stack_00000020; double in_stack_00000028; double in_stack_00000030; lVar1 = *param_1; *(double *)(*(long *)(lVar1 + 0x30) + param_2 * 8) = in_stack_00000008 + *(double *)(*(long *)(lVar1 + 0x30) + param_2 * 8); *(double *)(*(long *)(lVar1 + 0x48) + param_2 * 8) = in_stack_00000010 + *(double *)(*(long *)(lVar1 + 0x48) + param_2 * 8); *(double *)(*(long *)(lVar1 + 0x60) + param_2 * 8) = in_stack_00000018 + *(double *)(*(long *)(lVar1 + 0x60) + param_2 * 8); *(double *)(*(long *)(lVar1 + 0x78) + param_2 * 8) = in_stack_00000020 + *(double *)(*(long *)(lVar1 + 0x78) + param_2 * 8); *(double *)(*(long *)(lVar1 + 0x90) + param_2 * 8) = in_stack_00000028 + *(double *)(*(long *)(lVar1 + 0x90) + param_2 * 8); *(double *)(*(long *)(lVar1 + 0xa8) + param_2 * 8) = in_stack_00000030 + *(double *)(*(long *)(lVar1 + 0xa8) + param_2 * 8); return; }
65,395
lunasvg::skipOptionalSpacesOrDelimiter(std::basic_string_view<char, std::char_traits<char>>&, char)
dmazzella[P]pylunasvg/lunasvg/source/svgparserutils.h
constexpr bool skipOptionalSpacesOrDelimiter(std::string_view& input, char delimiter) { if(!input.empty() && !IS_WS(input.front()) && delimiter != input.front()) return false; if(skipOptionalSpaces(input)) { if(delimiter == input.front()) { input.remove_prefix(1); skipOptionalSpaces(input); } } return !input.empty(); }
O0
c
lunasvg::skipOptionalSpacesOrDelimiter(std::basic_string_view<char, std::char_traits<char>>&, char): pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movb %sil, %al movq %rdi, -0x10(%rbp) movb %al, -0x11(%rbp) movq -0x10(%rbp), %rdi callq 0x20620 testb $0x1, %al jne 0x34877 movq -0x10(%rbp), %rdi callq 0x20640 movsbl (%rax), %edi callq 0x33220 testb $0x1, %al jne 0x34877 movsbl -0x11(%rbp), %eax movl %eax, -0x18(%rbp) movq -0x10(%rbp), %rdi callq 0x20640 movq %rax, %rcx movl -0x18(%rbp), %eax movsbl (%rcx), %ecx cmpl %ecx, %eax je 0x34877 movb $0x0, -0x1(%rbp) jmp 0x348cc movq -0x10(%rbp), %rdi callq 0x332b0 testb $0x1, %al jne 0x34886 jmp 0x348bc movsbl -0x11(%rbp), %eax movl %eax, -0x1c(%rbp) movq -0x10(%rbp), %rdi callq 0x20640 movq %rax, %rcx movl -0x1c(%rbp), %eax movsbl (%rcx), %ecx cmpl %ecx, %eax jne 0x348ba movq -0x10(%rbp), %rdi movl $0x1, %esi callq 0x231b0 movq -0x10(%rbp), %rdi callq 0x332b0 jmp 0x348bc movq -0x10(%rbp), %rdi callq 0x20620 xorb $-0x1, %al andb $0x1, %al movb %al, -0x1(%rbp) movb -0x1(%rbp), %al andb $0x1, %al addq $0x20, %rsp popq %rbp retq nopw (%rax,%rax)
_ZN7lunasvg29skipOptionalSpacesOrDelimiterERSt17basic_string_viewIcSt11char_traitsIcEEc: push rbp mov rbp, rsp sub rsp, 20h mov al, sil mov [rbp+var_10], rdi mov [rbp+var_11], al mov rdi, [rbp+var_10] call _ZNKSt17basic_string_viewIcSt11char_traitsIcEE5emptyEv; std::string_view::empty(void) test al, 1 jnz short loc_34877 mov rdi, [rbp+var_10] call _ZNKSt17basic_string_viewIcSt11char_traitsIcEE5frontEv; std::string_view::front(void) movsx edi, byte ptr [rax]; this call _ZN7lunasvg5IS_WSEi; lunasvg::IS_WS(int) test al, 1 jnz short loc_34877 movsx eax, [rbp+var_11] mov [rbp+var_18], eax mov rdi, [rbp+var_10] call _ZNKSt17basic_string_viewIcSt11char_traitsIcEE5frontEv; std::string_view::front(void) mov rcx, rax mov eax, [rbp+var_18] movsx ecx, byte ptr [rcx] cmp eax, ecx jz short loc_34877 mov [rbp+var_1], 0 jmp short loc_348CC loc_34877: mov rdi, [rbp+var_10] call _ZN7lunasvg18skipOptionalSpacesERSt17basic_string_viewIcSt11char_traitsIcEE; lunasvg::skipOptionalSpaces(std::string_view &) test al, 1 jnz short loc_34886 jmp short loc_348BC loc_34886: movsx eax, [rbp+var_11] mov [rbp+var_1C], eax mov rdi, [rbp+var_10] call _ZNKSt17basic_string_viewIcSt11char_traitsIcEE5frontEv; std::string_view::front(void) mov rcx, rax mov eax, [rbp+var_1C] movsx ecx, byte ptr [rcx] cmp eax, ecx jnz short loc_348BA mov rdi, [rbp+var_10] mov esi, 1 call _ZNSt17basic_string_viewIcSt11char_traitsIcEE13remove_prefixEm; std::string_view::remove_prefix(ulong) mov rdi, [rbp+var_10] call _ZN7lunasvg18skipOptionalSpacesERSt17basic_string_viewIcSt11char_traitsIcEE; lunasvg::skipOptionalSpaces(std::string_view &) loc_348BA: jmp short $+2 loc_348BC: mov rdi, [rbp+var_10] call _ZNKSt17basic_string_viewIcSt11char_traitsIcEE5emptyEv; std::string_view::empty(void) xor al, 0FFh and al, 1 mov [rbp+var_1], al loc_348CC: mov al, [rbp+var_1] and al, 1 add rsp, 20h pop rbp retn
bool lunasvg::skipOptionalSpacesOrDelimiter(_QWORD *a1, char a2) { char *v2; // rax if ( std::string_view::empty(a1) || (v2 = (char *)std::string_view::front((long long)a1), lunasvg::IS_WS((lunasvg *)(unsigned int)*v2)) || a2 == *(char *)std::string_view::front((long long)a1) ) { if ( lunasvg::skipOptionalSpaces(a1) && a2 == *(char *)std::string_view::front((long long)a1) ) { std::string_view::remove_prefix(a1, 1LL); lunasvg::skipOptionalSpaces(a1); } return !std::string_view::empty(a1); } else { return 0; } }
skipOptionalSpacesOrDelimiter: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV AL,SIL MOV qword ptr [RBP + -0x10],RDI MOV byte ptr [RBP + -0x11],AL MOV RDI,qword ptr [RBP + -0x10] CALL 0x00120620 TEST AL,0x1 JNZ 0x00134877 MOV RDI,qword ptr [RBP + -0x10] CALL 0x00120640 MOVSX EDI,byte ptr [RAX] CALL 0x00133220 TEST AL,0x1 JNZ 0x00134877 MOVSX EAX,byte ptr [RBP + -0x11] MOV dword ptr [RBP + -0x18],EAX MOV RDI,qword ptr [RBP + -0x10] CALL 0x00120640 MOV RCX,RAX MOV EAX,dword ptr [RBP + -0x18] MOVSX ECX,byte ptr [RCX] CMP EAX,ECX JZ 0x00134877 MOV byte ptr [RBP + -0x1],0x0 JMP 0x001348cc LAB_00134877: MOV RDI,qword ptr [RBP + -0x10] CALL 0x001332b0 TEST AL,0x1 JNZ 0x00134886 JMP 0x001348bc LAB_00134886: MOVSX EAX,byte ptr [RBP + -0x11] MOV dword ptr [RBP + -0x1c],EAX MOV RDI,qword ptr [RBP + -0x10] CALL 0x00120640 MOV RCX,RAX MOV EAX,dword ptr [RBP + -0x1c] MOVSX ECX,byte ptr [RCX] CMP EAX,ECX JNZ 0x001348ba MOV RDI,qword ptr [RBP + -0x10] MOV ESI,0x1 CALL 0x001231b0 MOV RDI,qword ptr [RBP + -0x10] CALL 0x001332b0 LAB_001348ba: JMP 0x001348bc LAB_001348bc: MOV RDI,qword ptr [RBP + -0x10] CALL 0x00120620 XOR AL,0xff AND AL,0x1 MOV byte ptr [RBP + -0x1],AL LAB_001348cc: MOV AL,byte ptr [RBP + -0x1] AND AL,0x1 ADD RSP,0x20 POP RBP RET
/* lunasvg::skipOptionalSpacesOrDelimiter(std::basic_string_view<char, std::char_traits<char> >&, char) */ int8 lunasvg::skipOptionalSpacesOrDelimiter(basic_string_view *param_1,char param_2) { ulong uVar1; char *pcVar2; int1 local_9; uVar1 = std::basic_string_view<char,std::char_traits<char>>::empty ((basic_string_view<char,std::char_traits<char>> *)param_1); if ((uVar1 & 1) == 0) { pcVar2 = (char *)std::basic_string_view<char,std::char_traits<char>>::front ((basic_string_view<char,std::char_traits<char>> *)param_1); uVar1 = IS_WS((int)*pcVar2); if ((uVar1 & 1) == 0) { pcVar2 = (char *)std::basic_string_view<char,std::char_traits<char>>::front ((basic_string_view<char,std::char_traits<char>> *)param_1); uVar1 = (ulong)(uint)(int)param_2; if ((int)param_2 != (int)*pcVar2) { local_9 = 0; goto LAB_001348cc; } } } uVar1 = skipOptionalSpaces(param_1); if (((uVar1 & 1) != 0) && (pcVar2 = (char *)std::basic_string_view<char,std::char_traits<char>>::front ((basic_string_view<char,std::char_traits<char>> *)param_1), param_2 == *pcVar2)) { std::basic_string_view<char,std::char_traits<char>>::remove_prefix ((basic_string_view<char,std::char_traits<char>> *)param_1,1); skipOptionalSpaces(param_1); } uVar1 = std::basic_string_view<char,std::char_traits<char>>::empty ((basic_string_view<char,std::char_traits<char>> *)param_1); uVar1 = (uVar1 ^ 0xff) & 0xffffffffffffff01; local_9 = (int1)uVar1; LAB_001348cc: return CONCAT71((int7)(uVar1 >> 8),local_9); }
65,396
lunasvg::skipOptionalSpacesOrDelimiter(std::basic_string_view<char, std::char_traits<char>>&, char)
dmazzella[P]pylunasvg/lunasvg/source/svgparserutils.h
constexpr bool skipOptionalSpacesOrDelimiter(std::string_view& input, char delimiter) { if(!input.empty() && !IS_WS(input.front()) && delimiter != input.front()) return false; if(skipOptionalSpaces(input)) { if(delimiter == input.front()) { input.remove_prefix(1); skipOptionalSpaces(input); } } return !input.empty(); }
O2
c
lunasvg::skipOptionalSpacesOrDelimiter(std::basic_string_view<char, std::char_traits<char>>&, char): pushq %rbp pushq %rbx pushq %rax movl %esi, %ebp movq %rdi, %rbx cmpq $0x0, (%rdi) je 0x15cd4 movq 0x8(%rbx), %rax movzbl (%rax), %eax cmpq $0x20, %rax ja 0x15d09 movabsq $0x100002600, %rcx # imm = 0x100002600 btq %rax, %rcx jae 0x15d09 movq %rbx, %rdi callq 0x157fc testb %al, %al je 0x15cfb movq 0x8(%rbx), %rax cmpb %bpl, (%rax) jne 0x15cfb incq %rax movq %rax, 0x8(%rbx) decq (%rbx) movq %rbx, %rdi callq 0x157fc cmpq $0x0, (%rbx) setne %al addq $0x8, %rsp popq %rbx popq %rbp retq cmpb %bpl, %al je 0x15cd4 xorl %eax, %eax jmp 0x15d02
_ZN7lunasvg29skipOptionalSpacesOrDelimiterERSt17basic_string_viewIcSt11char_traitsIcEEc: push rbp push rbx push rax mov ebp, esi mov rbx, rdi cmp qword ptr [rdi], 0 jz short loc_15CD4 mov rax, [rbx+8] movzx eax, byte ptr [rax] cmp rax, 20h ; ' ' ja short loc_15D09 mov rcx, 100002600h bt rcx, rax jnb short loc_15D09 loc_15CD4: mov rdi, rbx call _ZN7lunasvg18skipOptionalSpacesERSt17basic_string_viewIcSt11char_traitsIcEE; lunasvg::skipOptionalSpaces(std::string_view &) test al, al jz short loc_15CFB mov rax, [rbx+8] cmp [rax], bpl jnz short loc_15CFB inc rax mov [rbx+8], rax dec qword ptr [rbx] mov rdi, rbx call _ZN7lunasvg18skipOptionalSpacesERSt17basic_string_viewIcSt11char_traitsIcEE; lunasvg::skipOptionalSpaces(std::string_view &) loc_15CFB: cmp qword ptr [rbx], 0 setnz al loc_15D02: add rsp, 8 pop rbx pop rbp retn loc_15D09: cmp al, bpl jz short loc_15CD4 xor eax, eax jmp short loc_15D02
bool lunasvg::skipOptionalSpacesOrDelimiter(long long a1, char a2) { unsigned long long v2; // rax long long v3; // rcx _BYTE *v4; // rax if ( *(_QWORD *)a1 ) { v2 = **(unsigned __int8 **)(a1 + 8); if ( v2 > 0x20 || (v3 = 0x100002600LL, !_bittest64(&v3, v2)) ) { if ( (_BYTE)v2 != a2 ) return 0; } } if ( lunasvg::skipOptionalSpaces((long long *)a1) ) { v4 = *(_BYTE **)(a1 + 8); if ( *v4 == a2 ) { *(_QWORD *)(a1 + 8) = v4 + 1; --*(_QWORD *)a1; lunasvg::skipOptionalSpaces((long long *)a1); } } return *(_QWORD *)a1 != 0LL; }
skipOptionalSpacesOrDelimiter: PUSH RBP PUSH RBX PUSH RAX MOV EBP,ESI MOV RBX,RDI CMP qword ptr [RDI],0x0 JZ 0x00115cd4 MOV RAX,qword ptr [RBX + 0x8] MOVZX EAX,byte ptr [RAX] CMP RAX,0x20 JA 0x00115d09 MOV RCX,0x100002600 BT RCX,RAX JNC 0x00115d09 LAB_00115cd4: MOV RDI,RBX CALL 0x001157fc TEST AL,AL JZ 0x00115cfb MOV RAX,qword ptr [RBX + 0x8] CMP byte ptr [RAX],BPL JNZ 0x00115cfb INC RAX MOV qword ptr [RBX + 0x8],RAX DEC qword ptr [RBX] MOV RDI,RBX CALL 0x001157fc LAB_00115cfb: CMP qword ptr [RBX],0x0 SETNZ AL LAB_00115d02: ADD RSP,0x8 POP RBX POP RBP RET LAB_00115d09: CMP AL,BPL JZ 0x00115cd4 XOR EAX,EAX JMP 0x00115d02
/* lunasvg::skipOptionalSpacesOrDelimiter(std::basic_string_view<char, std::char_traits<char> >&, char) */ bool lunasvg::skipOptionalSpacesOrDelimiter(basic_string_view *param_1,char param_2) { byte bVar1; char cVar2; if (*(long *)param_1 != 0) { bVar1 = **(byte **)(param_1 + 8); if (((0x20 < (ulong)bVar1) || ((0x100002600U >> ((ulong)bVar1 & 0x3f) & 1) == 0)) && (bVar1 != param_2)) { return false; } } cVar2 = skipOptionalSpaces(param_1); if ((cVar2 != '\0') && (**(char **)(param_1 + 8) == param_2)) { *(char **)(param_1 + 8) = *(char **)(param_1 + 8) + 1; *(long *)param_1 = *(long *)param_1 + -1; skipOptionalSpaces(param_1); } return *(long *)param_1 != 0; }
65,397
get_sys_var_lower_case_table_names
eloqsql/client/mysqldump.c
static int get_sys_var_lower_case_table_names() { int lower_case_table_names = 0; MYSQL_RES *table_res; MYSQL_ROW row; const char *show_var_query = "SHOW VARIABLES LIKE 'lower_case_table_names'"; if (mysql_query_with_error_report(mysql, &table_res, show_var_query)) return 0; /* In case of error, assume default value of 0 */ if ((row= mysql_fetch_row(table_res))) { lower_case_table_names= atoi(row[1]); mysql_free_result(table_res); } return lower_case_table_names; }
O0
c
get_sys_var_lower_case_table_names: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x0, -0x8(%rbp) leaq 0x97c55(%rip), %rax # 0xde32b movq %rax, -0x20(%rbp) movq 0x3bade7(%rip), %rdi # 0x4014c8 movq -0x20(%rbp), %rdx leaq -0x10(%rbp), %rsi callq 0x39350 cmpl $0x0, %eax je 0x466fc movl $0x0, -0x4(%rbp) jmp 0x4672e movq -0x10(%rbp), %rdi callq 0x51800 movq %rax, -0x18(%rbp) cmpq $0x0, %rax je 0x46728 movq -0x18(%rbp), %rax movq 0x8(%rax), %rdi callq 0x38330 movl %eax, -0x8(%rbp) movq -0x10(%rbp), %rdi callq 0x48d00 movl -0x8(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x20, %rsp popq %rbp retq nopw (%rax,%rax)
get_sys_var_lower_case_table_names: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], 0 lea rax, aShowVariablesL; "SHOW VARIABLES LIKE 'lower_case_table_n"... mov [rbp+var_20], rax mov rdi, cs:mysql mov rdx, [rbp+var_20] lea rsi, [rbp+var_10] call mysql_query_with_error_report cmp eax, 0 jz short loc_466FC mov [rbp+var_4], 0 jmp short loc_4672E loc_466FC: mov rdi, [rbp+var_10] call mysql_fetch_row mov [rbp+var_18], rax cmp rax, 0 jz short loc_46728 mov rax, [rbp+var_18] mov rdi, [rax+8] call _atoi mov [rbp+var_8], eax mov rdi, [rbp+var_10] call mysql_free_result loc_46728: mov eax, [rbp+var_8] mov [rbp+var_4], eax loc_4672E: mov eax, [rbp+var_4] add rsp, 20h pop rbp retn
long long get_sys_var_lower_case_table_names() { long long row; // [rsp+8h] [rbp-18h] long long v2; // [rsp+10h] [rbp-10h] BYREF unsigned int v3; // [rsp+18h] [rbp-8h] v3 = 0; if ( (unsigned int)mysql_query_with_error_report(mysql, &v2, (long long)"SHOW VARIABLES LIKE 'lower_case_table_names'") ) { return 0; } else { row = mysql_fetch_row(v2); if ( row ) { v3 = atoi(*(_QWORD *)(row + 8)); mysql_free_result(v2); } return v3; } }
get_sys_var_lower_case_table_names: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV dword ptr [RBP + -0x8],0x0 LEA RAX,[0x1de32b] MOV qword ptr [RBP + -0x20],RAX MOV RDI,qword ptr [0x005014c8] MOV RDX,qword ptr [RBP + -0x20] LEA RSI,[RBP + -0x10] CALL 0x00139350 CMP EAX,0x0 JZ 0x001466fc MOV dword ptr [RBP + -0x4],0x0 JMP 0x0014672e LAB_001466fc: MOV RDI,qword ptr [RBP + -0x10] CALL 0x00151800 MOV qword ptr [RBP + -0x18],RAX CMP RAX,0x0 JZ 0x00146728 MOV RAX,qword ptr [RBP + -0x18] MOV RDI,qword ptr [RAX + 0x8] CALL 0x00138330 MOV dword ptr [RBP + -0x8],EAX MOV RDI,qword ptr [RBP + -0x10] CALL 0x00148d00 LAB_00146728: MOV EAX,dword ptr [RBP + -0x8] MOV dword ptr [RBP + -0x4],EAX LAB_0014672e: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x20 POP RBP RET
int get_sys_var_lower_case_table_names(void) { int iVar1; long lVar2; int8 local_18; int local_10; int local_c; local_10 = 0; iVar1 = mysql_query_with_error_report (mysql,&local_18,"SHOW VARIABLES LIKE \'lower_case_table_names\'"); if (iVar1 == 0) { lVar2 = mysql_fetch_row(local_18); if (lVar2 != 0) { local_10 = atoi(*(char **)(lVar2 + 8)); mysql_free_result(local_18); } local_c = local_10; } else { local_c = 0; } return local_c; }
65,398
minja::TextNode::TextNode(minja::Location const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
monkey531[P]llama/common/minja.hpp
TextNode(const Location & location, const std::string& t) : TemplateNode(location), text(t) {}
O3
cpp
minja::TextNode::TextNode(minja::Location const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %rbx movq %rdi, %rbx leaq 0x8d931(%rip), %rax # 0x12b228 addq $0x10, %rax movq %rax, (%rdi) movq 0x20(%rdi), %rdi leaq 0x30(%rbx), %rax cmpq %rax, %rdi je 0x9d916 movq (%rax), %rsi incq %rsi callq 0x1a8d0 leaq 0x8d6bb(%rip), %rax # 0x12afd8 addq $0x10, %rax movq %rax, (%rbx) movq 0x10(%rbx), %rdi testq %rdi, %rdi je 0x9d933 popq %rbx jmp 0x6d59a popq %rbx retq nop
_ZN5minja8TextNodeD2Ev: push rbx mov rbx, rdi lea rax, _ZTVN5minja8TextNodeE; `vtable for'minja::TextNode add rax, 10h mov [rdi], rax mov rdi, [rdi+20h]; void * lea rax, [rbx+30h] cmp rdi, rax jz short loc_9D916 mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_9D916: lea rax, _ZTVN5minja12TemplateNodeE; `vtable for'minja::TemplateNode add rax, 10h mov [rbx], rax mov rdi, [rbx+10h] test rdi, rdi jz short loc_9D933 pop rbx jmp _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_9D933: pop rbx retn
void minja::TextNode::~TextNode(minja::TextNode *this) { char *v2; // rdi volatile signed __int32 *v3; // rdi *(_QWORD *)this = &`vtable for'minja::TextNode + 2; v2 = (char *)*((_QWORD *)this + 4); if ( v2 != (char *)this + 48 ) operator delete(v2, *((_QWORD *)this + 6) + 1LL); *(_QWORD *)this = &`vtable for'minja::TemplateNode + 2; v3 = (volatile signed __int32 *)*((_QWORD *)this + 2); if ( v3 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3); }
~TextNode: PUSH RBX MOV RBX,RDI LEA RAX,[0x22b228] ADD RAX,0x10 MOV qword ptr [RDI],RAX MOV RDI,qword ptr [RDI + 0x20] LEA RAX,[RBX + 0x30] CMP RDI,RAX JZ 0x0019d916 MOV RSI,qword ptr [RAX] INC RSI CALL 0x0011a8d0 LAB_0019d916: LEA RAX,[0x22afd8] ADD RAX,0x10 MOV qword ptr [RBX],RAX MOV RDI,qword ptr [RBX + 0x10] TEST RDI,RDI JZ 0x0019d933 POP RBX JMP 0x0016d59a LAB_0019d933: POP RBX RET
/* minja::TextNode::~TextNode() */ void __thiscall minja::TextNode::~TextNode(TextNode *this) { *(int ***)this = &PTR_do_render_0022b238; if (*(TextNode **)(this + 0x20) != this + 0x30) { operator_delete(*(TextNode **)(this + 0x20),*(long *)(this + 0x30) + 1); } *(int ***)this = &PTR___cxa_pure_virtual_0022afe8; if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10) != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10)); return; } return; }
65,399
parse_prefixed_json_tool_call_array(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long)
monkey531[P]llama/common/chat.cpp
static common_chat_msg parse_prefixed_json_tool_call_array(const std::string& input, const std::string & prefix, size_t rstrip_prefix = 0) { auto content_end = input.find(prefix); size_t tc_start = std::string::npos; common_chat_msg result; result.role = "assistant"; const auto process_tool_calls = [&](const json & tool_calls) { for (const auto & tool_call : tool_calls) { const auto & arguments = tool_call["arguments"]; result.tool_calls.push_back({ tool_call["name"], arguments.is_string() ? arguments.get<std::string>() : arguments.dump(), tool_call.contains("id") ? tool_call["id"] : "", }); } }; if (content_end == std::string::npos) { result.content = input; } else { tc_start = content_end + prefix.size() - rstrip_prefix; result.content = input.substr(0, content_end); auto tool_calls = json::parse(input.substr(tc_start)); process_tool_calls(tool_calls); } return result; }
O2
cpp
parse_prefixed_json_tool_call_array(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xf8, %rsp movq %rcx, %r15 movq %rdx, %r12 movq %rsi, %rbx movq %rdi, %r13 movq %rsi, %rdi movq %rdx, %rsi xorl %edx, %edx callq 0x24190 movq %rax, %r14 movq %r13, %rdi callq 0xa86a0 leaq 0xbec8(%rip), %rsi # 0xb22d3 movq %r13, 0x8(%rsp) movq %r13, %rdi callq 0x24110 cmpq $-0x1, %r14 je 0xa660d movq 0x8(%r12), %r12 leaq 0x50(%rsp), %rdi movq %rbx, %rsi xorl %edx, %edx movq %r14, %rcx callq 0x23950 subq %r15, %r14 addq %r12, %r14 movq 0x8(%rsp), %rax leaq 0x20(%rax), %rdi leaq 0x50(%rsp), %r15 movq %r15, %rsi callq 0x23ae0 movq %r15, %rdi callq 0x241d8 leaq 0x50(%rsp), %rdi pushq $-0x1 popq %rcx movq %rbx, %rsi movq %r14, %rdx callq 0x23950 xorps %xmm0, %xmm0 leaq 0xb0(%rsp), %rdx movaps %xmm0, 0x10(%rdx) movaps %xmm0, (%rdx) leaq 0x10(%rsp), %rdi leaq 0x50(%rsp), %rsi pushq $0x1 popq %rcx xorl %r8d, %r8d callq 0x7a30a leaq 0xb0(%rsp), %rdi callq 0x4768a leaq 0x50(%rsp), %r15 movq %r15, %rdi callq 0x241d8 leaq 0x20(%rsp), %r12 leaq 0x10(%rsp), %rbx movq %r12, %rdi movq %rbx, %rsi callq 0x677f8 leaq 0xd8(%rsp), %rdi movq %rbx, %rsi callq 0x67a64 movq 0x8(%rsp), %rax leaq 0x40(%rax), %rbx leaq 0x40(%rsp), %rbp movq %r12, %rdi leaq 0xd8(%rsp), %rsi callq 0x6729c testb %al, %al je 0xa65fc movq %r12, %rdi callq 0x67496 movq %rax, %r13 movq %rax, %rdi leaq 0xd177(%rip), %rsi # 0xb3688 callq 0x7a944 movq %rax, %r14 movq %r13, %rdi leaq 0xd701(%rip), %rsi # 0xb3c24 callq 0x7a944 movq %r15, %rdi movq %rax, %rsi callq 0x636fa cmpb $0x3, (%r14) jne 0xa6548 leaq 0x70(%rsp), %rdi movq %r14, %rsi callq 0x636fa jmp 0xa6561 leaq 0x70(%rsp), %rdi movq %r14, %rsi pushq $-0x1 popq %rdx pushq $0x20 popq %rcx xorl %r8d, %r8d xorl %r9d, %r9d callq 0x5cc14 movq %r13, %rdi leaq 0xc1c7(%rip), %rsi # 0xb2732 callq 0x7a922 testb %al, %al je 0xa6590 movq %r13, %rdi leaq 0xc1b4(%rip), %rsi # 0xb2732 callq 0x7a944 movq %rbp, %rdi movq %rax, %rsi callq 0x419f0 jmp 0xa659f movq %rbp, %rdi leaq 0x854f(%rip), %rsi # 0xaeae9 callq 0x87fce leaq 0x90(%rsp), %rdi movq %rbp, %rsi callq 0x636fa movq %rbx, %rdi movq %r15, %rsi callq 0xa8724 movq %r15, %rdi callq 0x89f92 movq %rbp, %rdi callq 0x41e54 movq 0x20(%rsp), %rax movzbl (%rax), %eax cmpl $0x2, %eax je 0xa65e7 cmpl $0x1, %eax jne 0xa65f2 addq $0x30, 0x28(%rsp) jmp 0xa64e4 addq $0x10, 0x30(%rsp) jmp 0xa64e4 incq 0x38(%rsp) jmp 0xa64e4 leaq 0x10(%rsp), %rdi callq 0x41e54 movq 0x8(%rsp), %r14 jmp 0xa661e movq 0x8(%rsp), %r14 leaq 0x20(%r14), %rdi movq %rbx, %rsi callq 0x234c0 movq %r14, %rax addq $0xf8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0xa6655 movq %rax, %rbx leaq 0xb0(%rsp), %rdi callq 0x4768a leaq 0x50(%rsp), %rdi callq 0x241d8 jmp 0xa66ad jmp 0xa6655 jmp 0xa6655 movq %rax, %rbx jmp 0xa66ad movq %rax, %rbx leaq 0x50(%rsp), %rdi callq 0x89f92 xorl %ebp, %ebp jmp 0xa6671 movq %rax, %rbx movb $0x1, %bpl leaq 0x40(%rsp), %rdi callq 0x41e54 testb %bpl, %bpl jne 0xa668a jmp 0xa66a3 movq %rax, %rbx jmp 0xa6694 movq %rax, %rbx leaq 0x70(%rsp), %rdi callq 0x241d8 leaq 0x50(%rsp), %rdi callq 0x241d8 jmp 0xa66a3 movq %rax, %rbx leaq 0x10(%rsp), %rdi callq 0x41e54 movq 0x8(%rsp), %rdi callq 0x5bf58 movq %rbx, %rdi callq 0x23fa0
_ZL35parse_prefixed_json_tool_call_arrayRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_m: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 0F8h mov r15, rcx mov r12, rdx mov rbx, rsi mov r13, rdi mov rdi, rsi mov rsi, rdx xor edx, edx call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findERKS4_m; std::string::find(std::string const&,ulong) mov r14, rax mov rdi, r13; this call _ZN15common_chat_msgC2Ev; common_chat_msg::common_chat_msg(void) lea rsi, aYouAreAHelpful+12h; "assistant" mov [rsp+128h+var_120], r13 mov rdi, r13 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEPKc; std::string::assign(char const*) cmp r14, 0FFFFFFFFFFFFFFFFh jz loc_A660D mov r12, [r12+8] lea rdi, [rsp+128h+var_D8] mov rsi, rbx xor edx, edx mov rcx, r14 call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong) sub r14, r15 add r14, r12 mov rax, [rsp+128h+var_120] lea rdi, [rax+20h] lea r15, [rsp+128h+var_D8] mov rsi, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&) mov rdi, r15; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+128h+var_D8] push 0FFFFFFFFFFFFFFFFh pop rcx mov rsi, rbx mov rdx, r14 call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong) xorps xmm0, xmm0 lea rdx, [rsp+128h+var_78] movaps xmmword ptr [rdx+10h], xmm0 movaps xmmword ptr [rdx], xmm0 lea rdi, [rsp+128h+var_118] lea rsi, [rsp+128h+var_D8] push 1 pop rcx xor r8d, r8d call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5parseIS9_EESD_OT_St8functionIFbiNS0_6detail13parse_event_tERSD_EEbb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::parse<std::string>(std::string &&,std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)>,bool,bool) lea rdi, [rsp+128h+var_78]; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() lea r15, [rsp+128h+var_D8] mov rdi, r15; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea r12, [rsp+128h+var_108] lea rbx, [rsp+128h+var_118] mov rdi, r12 mov rsi, rbx 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 rdi, [rsp+128h+var_50] mov rsi, rbx 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) mov rax, [rsp+128h+var_120] lea rbx, [rax+40h] lea rbp, [rsp+128h+var_E8] loc_A64E4: mov rdi, r12 lea rsi, [rsp+128h+var_50] 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_A65FC 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 r13, rax mov rdi, rax lea rsi, aKeywordArgumen+9; "arguments" call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERKSD_PT_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[]<char const>(char const *) mov r14, rax mov rdi, r13 lea rsi, aNamespacedSetO+2Fh; "name" call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERKSD_PT_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[]<char const>(char const *) mov rdi, r15 mov rsi, rax call _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 cmp byte ptr [r14], 3 jnz short loc_A6548 lea rdi, [rsp+128h+var_B8] mov rsi, r14 call _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 jmp short loc_A6561 loc_A6548: lea rdi, [rsp+128h+var_B8] mov rsi, r14 push 0FFFFFFFFFFFFFFFFh pop rdx push 20h ; ' ' pop rcx xor r8d, r8d xor r9d, r9d call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dumpEicbNS0_6detail15error_handler_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::dump(int,char,bool,nlohmann::json_abi_v3_11_3::detail::error_handler_t) loc_A6561: mov rdi, r13 lea rsi, aToolCallId+0Ah; "id" call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA3_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_ test al, al jz short loc_A6590 mov rdi, r13 lea rsi, aToolCallId+0Ah; "id" call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERKSD_PT_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[]<char const>(char const *) mov rdi, rbp mov rsi, rax call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) jmp short loc_A659F loc_A6590: mov rdi, rbp lea rsi, aErrorWhileHand_0+34h; "" call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA1_KcA1_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_ loc_A659F: lea rdi, [rsp+128h+var_98] mov rsi, rbp call _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 mov rdi, rbx mov rsi, r15 call _ZNSt6vectorI16common_tool_callSaIS0_EE12emplace_backIJS0_EEERS0_DpOT_; std::vector<common_tool_call>::emplace_back<common_tool_call>(common_tool_call &&) mov rdi, r15; this call _ZN16common_tool_callD2Ev; common_tool_call::~common_tool_call() mov rdi, rbp call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rax, [rsp+128h+var_108] movzx eax, byte ptr [rax] cmp eax, 2 jz short loc_A65E7 cmp eax, 1 jnz short loc_A65F2 add [rsp+128h+var_100], 30h ; '0' jmp loc_A64E4 loc_A65E7: add [rsp+128h+var_F8], 10h jmp loc_A64E4 loc_A65F2: inc [rsp+128h+var_F0] jmp loc_A64E4 loc_A65FC: lea rdi, [rsp+128h+var_118] 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 r14, [rsp+128h+var_120] jmp short loc_A661E loc_A660D: mov r14, [rsp+128h+var_120] lea rdi, [r14+20h] mov rsi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&) loc_A661E: mov rax, r14 add rsp, 0F8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_A6655 mov rbx, rax lea rdi, [rsp+arg_A8]; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() lea rdi, [rsp+arg_48]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_A66AD jmp short loc_A6655 jmp short $+2 loc_A6655: mov rbx, rax jmp short loc_A66AD mov rbx, rax lea rdi, [rsp+arg_48]; this call _ZN16common_tool_callD2Ev; common_tool_call::~common_tool_call() xor ebp, ebp jmp short loc_A6671 mov rbx, rax mov bpl, 1 loc_A6671: lea rdi, [rsp+arg_38] 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() test bpl, bpl jnz short loc_A668A jmp short loc_A66A3 mov rbx, rax jmp short loc_A6694 mov rbx, rax loc_A668A: lea rdi, [rsp+arg_68]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_A6694: lea rdi, [rsp+arg_48]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_A66A3 mov rbx, rax loc_A66A3: lea rdi, [rsp+arg_8] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() loc_A66AD: mov rdi, [rsp+arg_0]; this call _ZN15common_chat_msgD2Ev; common_chat_msg::~common_chat_msg() mov rdi, rbx call __Unwind_Resume
common_chat_msg * parse_prefixed_json_tool_call_array( common_chat_msg *this, long long a2, long long a3, long long a4) { long long v6; // r14 long long v7; // r12 long long v8; // r13 _BYTE *v9; // r14 long long v10; // rax unsigned __int8 *v11; // rax int v12; // eax common_chat_msg *v13; // r14 _BYTE v15[16]; // [rsp+10h] [rbp-118h] BYREF unsigned __int8 *v16; // [rsp+20h] [rbp-108h] BYREF long long v17; // [rsp+28h] [rbp-100h] long long v18; // [rsp+30h] [rbp-F8h] long long v19; // [rsp+38h] [rbp-F0h] unsigned __int8 v20[16]; // [rsp+40h] [rbp-E8h] BYREF long long v21[4]; // [rsp+50h] [rbp-D8h] BYREF _BYTE v22[32]; // [rsp+70h] [rbp-B8h] BYREF _BYTE v23[32]; // [rsp+90h] [rbp-98h] BYREF _BYTE v24[40]; // [rsp+B0h] [rbp-78h] BYREF _BYTE v25[80]; // [rsp+D8h] [rbp-50h] BYREF v6 = std::string::find(a2, a3, 0LL); common_chat_msg::common_chat_msg(this); std::string::assign(this, "assistant"); if ( v6 == -1 ) { v13 = this; std::string::_M_assign((char *)this + 32, a2); } else { v7 = *(_QWORD *)(a3 + 8); std::string::substr(v21, a2, 0LL, v6); std::string::operator=((char *)this + 32, v21); std::string::~string(v21); std::string::substr(v21, a2, v7 + v6 - a4, -1LL); memset(v24, 0, 32); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::parse<std::string>( v15, v21, (long long)v24, 1u, 0); std::_Function_base::~_Function_base((std::_Function_base *)v24); std::string::~string(v21); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)&v16, (long long)v15); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)v25, (long long)v15); 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)&v16) ) { v8 = 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*(&v16); v9 = (_BYTE *)nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>( v8, (long long)"arguments"); v10 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>( v8, (long long)"name"); 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)v21, v10); if ( *v9 == 3 ) 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)v22, (long long)v9); else nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::dump( (long long)v22, (long long)v9, -1, 32, 0, 0); if ( ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA3_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_(v8) ) { 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>::operator[]<char const>( v8, (long long)"id"); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( v20, v11); } else { ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA1_KcA1_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_((char *)v20); } 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)v23, (long long)v20); std::vector<common_tool_call>::emplace_back<common_tool_call>((char *)this + 64, v21); common_tool_call::~common_tool_call((common_tool_call *)v21); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v20); v12 = *v16; if ( v12 == 2 ) { v18 += 16LL; } else if ( v12 == 1 ) { v17 += 48LL; } else { ++v19; } } nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v15); return this; } return v13; }
parse_prefixed_json_tool_call_array: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xf8 MOV R15,RCX MOV R12,RDX MOV RBX,RSI MOV R13,RDI MOV RDI,RSI MOV RSI,RDX XOR EDX,EDX CALL 0x00124190 MOV R14,RAX MOV RDI,R13 CALL 0x001a86a0 LAB_001a6404: LEA RSI,[0x1b22d3] MOV qword ptr [RSP + 0x8],R13 MOV RDI,R13 CALL 0x00124110 CMP R14,-0x1 JZ 0x001a660d MOV R12,qword ptr [R12 + 0x8] LAB_001a6427: LEA RDI,[RSP + 0x50] MOV RSI,RBX XOR EDX,EDX MOV RCX,R14 CALL 0x00123950 SUB R14,R15 ADD R14,R12 MOV RAX,qword ptr [RSP + 0x8] LEA RDI,[RAX + 0x20] LEA R15,[RSP + 0x50] MOV RSI,R15 CALL 0x00123ae0 MOV RDI,R15 CALL 0x001241d8 LAB_001a645d: LEA RDI,[RSP + 0x50] PUSH -0x1 POP RCX MOV RSI,RBX MOV RDX,R14 CALL 0x00123950 XORPS XMM0,XMM0 LEA RDX,[RSP + 0xb0] MOVAPS xmmword ptr [RDX + 0x10],XMM0 MOVAPS xmmword ptr [RDX],XMM0 LAB_001a6482: LEA RDI,[RSP + 0x10] LEA RSI,[RSP + 0x50] PUSH 0x1 POP RCX XOR R8D,R8D CALL 0x0017a30a LEA RDI,[RSP + 0xb0] CALL 0x0014768a LEA R15,[RSP + 0x50] MOV RDI,R15 CALL 0x001241d8 LEA R12,[RSP + 0x20] LEA RBX,[RSP + 0x10] MOV RDI,R12 MOV RSI,RBX CALL 0x001677f8 LEA RDI,[RSP + 0xd8] MOV RSI,RBX CALL 0x00167a64 MOV RAX,qword ptr [RSP + 0x8] LEA RBX,[RAX + 0x40] LEA RBP,[RSP + 0x40] LAB_001a64e4: MOV RDI,R12 LEA RSI,[RSP + 0xd8] CALL 0x0016729c TEST AL,AL JZ 0x001a65fc MOV RDI,R12 CALL 0x00167496 MOV R13,RAX MOV RDI,RAX LEA RSI,[0x1b3688] CALL 0x0017a944 MOV R14,RAX MOV RDI,R13 LEA RSI,[0x1b3c24] CALL 0x0017a944 MOV RDI,R15 MOV RSI,RAX CALL 0x001636fa CMP byte ptr [R14],0x3 JNZ 0x001a6548 LAB_001a6539: LEA RDI,[RSP + 0x70] MOV RSI,R14 CALL 0x001636fa JMP 0x001a6561 LAB_001a6548: LEA RDI,[RSP + 0x70] MOV RSI,R14 PUSH -0x1 POP RDX PUSH 0x20 POP RCX XOR R8D,R8D XOR R9D,R9D CALL 0x0015cc14 LAB_001a6561: MOV RDI,R13 LEA RSI,[0x1b2732] CALL 0x0017a922 TEST AL,AL JZ 0x001a6590 MOV RDI,R13 LEA RSI,[0x1b2732] CALL 0x0017a944 MOV RDI,RBP MOV RSI,RAX CALL 0x001419f0 JMP 0x001a659f LAB_001a6590: MOV RDI,RBP LEA RSI,[0x1aeae9] CALL 0x00187fce LAB_001a659f: LEA RDI,[RSP + 0x90] MOV RSI,RBP CALL 0x001636fa LAB_001a65af: MOV RDI,RBX MOV RSI,R15 CALL 0x001a8724 MOV RDI,R15 CALL 0x00189f92 MOV RDI,RBP CALL 0x00141e54 MOV RAX,qword ptr [RSP + 0x20] MOVZX EAX,byte ptr [RAX] CMP EAX,0x2 JZ 0x001a65e7 CMP EAX,0x1 JNZ 0x001a65f2 ADD qword ptr [RSP + 0x28],0x30 JMP 0x001a64e4 LAB_001a65e7: ADD qword ptr [RSP + 0x30],0x10 JMP 0x001a64e4 LAB_001a65f2: INC qword ptr [RSP + 0x38] JMP 0x001a64e4 LAB_001a65fc: LEA RDI,[RSP + 0x10] CALL 0x00141e54 MOV R14,qword ptr [RSP + 0x8] JMP 0x001a661e LAB_001a660d: MOV R14,qword ptr [RSP + 0x8] LEA RDI,[R14 + 0x20] LAB_001a6616: MOV RSI,RBX CALL 0x001234c0 LAB_001a661e: MOV RAX,R14 ADD RSP,0xf8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* parse_prefixed_json_tool_call_array(std::__cxx11::string const&, std::__cxx11::string const&, unsigned long) */ string * parse_prefixed_json_tool_call_array(string *param_1,string *param_2,ulong param_3) { char cVar1; long lVar2; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *this; char *pcVar3; basic_json *pbVar4; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_118 [16]; char *local_108; long local_100; long local_f8; long local_f0; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_e8 [16]; string local_d8 [32]; int1 local_b8 [32]; int1 local_98 [32]; int8 local_78; int8 uStack_70; int8 local_68; int8 uStack_60; int1 local_50 [32]; lVar2 = std::__cxx11::string::find(param_2,param_3); common_chat_msg::common_chat_msg((common_chat_msg *)param_1); /* try { // try from 001a6404 to 001a6417 has its CatchHandler @ 001a6655 */ std::__cxx11::string::assign((char *)param_1); if (lVar2 == -1) { /* try { // try from 001a6616 to 001a661d has its CatchHandler @ 001a6633 */ std::__cxx11::string::_M_assign(param_1 + 0x20); } else { /* try { // try from 001a6427 to 001a6438 has its CatchHandler @ 001a6653 */ std::__cxx11::string::substr((ulong)local_d8,(ulong)param_2); std::__cxx11::string::operator=(param_1 + 0x20,local_d8); std::__cxx11::string::~string(local_d8); /* try { // try from 001a645d to 001a646f has its CatchHandler @ 001a6651 */ std::__cxx11::string::substr((ulong)local_d8,(ulong)param_2); local_68 = 0; uStack_60 = 0; local_78 = 0; uStack_70 = 0; /* try { // try from 001a6482 to 001a6496 has its CatchHandler @ 001a6635 */ nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::parse<std::__cxx11::string>(local_118,local_d8,&local_78,1,0); std::_Function_base::~_Function_base((_Function_base *)&local_78); std::__cxx11::string::~string(local_d8); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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( true ) { /* try { // try from 001a64e4 to 001a6532 has its CatchHandler @ 001a66a0 */ cVar1 = _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_108,local_50); if (cVar1 == '\0') break; 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> *)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*((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_108); pcVar3 = nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator[]<char_const>(this,"arguments"); pbVar4 = nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator[]<char_const>(this,"name"); _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 (local_d8,pbVar4); if (*pcVar3 == '\x03') { /* try { // try from 001a6539 to 001a6560 has its CatchHandler @ 001a6682 */ _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 (local_b8,pcVar3); } else { nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::dump(local_b8,pcVar3,0xffffffffffffffff,0x20,0,0); } /* try { // try from 001a6561 to 001a659e has its CatchHandler @ 001a6687 */ cVar1 = _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA3_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_ (this,"id"); if (cVar1 == '\0') { _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA1_KcA1_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_ (local_e8,""); } else { pbVar4 = nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator[]<char_const>(this,"id"); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json(local_e8,pbVar4); } /* try { // try from 001a659f to 001a65ae has its CatchHandler @ 001a666b */ _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 (local_98,local_e8); /* try { // try from 001a65af to 001a65b9 has its CatchHandler @ 001a665a */ std::vector<common_tool_call,std::allocator<common_tool_call>>::emplace_back<common_tool_call> ((vector<common_tool_call,std::allocator<common_tool_call>> *)(param_1 + 0x40), (common_tool_call *)local_d8); common_tool_call::~common_tool_call((common_tool_call *)local_d8); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)local_e8); if (*local_108 == '\x02') { local_f8 = local_f8 + 0x10; } else if (*local_108 == '\x01') { local_100 = local_100 + 0x30; } else { local_f0 = local_f0 + 1; } } nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)local_118); } return param_1; }